Documentation ¶
Index ¶
- Variables
- func AreItemsReferenced(i1, i2 *Item, s1, s2 *schema.Schema) (*id.FieldID, *id.FieldID)
- type AssetID
- type AssetIDList
- type Builder
- func (b *Builder) Build() (*Item, error)
- func (b *Builder) Fields(fields []*Field) *Builder
- func (b *Builder) ID(id ID) *Builder
- func (b *Builder) Integration(id IntegrationID) *Builder
- func (b *Builder) IsMetadata(im bool) *Builder
- func (b *Builder) MetadataItem(id *ID) *Builder
- func (b *Builder) Model(mid ModelID) *Builder
- func (b *Builder) MustBuild() *Item
- func (b *Builder) NewID() *Builder
- func (b *Builder) NewThread() *Builder
- func (b *Builder) OriginalItem(id *ID) *Builder
- func (b *Builder) Project(pid ProjectID) *Builder
- func (b *Builder) Schema(sid schema.ID) *Builder
- func (b *Builder) Thread(tid ThreadID) *Builder
- func (b *Builder) Timestamp(createdAt time.Time) *Builder
- func (b *Builder) UpdatedByIntegration(id *IntegrationID) *Builder
- func (b *Builder) UpdatedByUser(id *UserID) *Builder
- func (b *Builder) User(id UserID) *Builder
- type Field
- type FieldChange
- type FieldChangeType
- type FieldChanges
- type FieldID
- type FieldIDList
- type FieldMap
- type Fields
- type ID
- type IDList
- type IntegrationID
- type Item
- func (i *Item) AssetIDs() AssetIDList
- func (i *Item) ClearField(fid FieldID)
- func (i *Item) ClearReferenceFields()
- func (i *Item) Field(f FieldID) *Field
- func (i *Item) FieldByItemGroupAndID(fid FieldID, igID ItemGroupID) *Field
- func (i *Item) Fields() Fields
- func (i *Item) FilterFields(list FieldIDList) *Item
- func (i *Item) GetFirstGeometryField() (*Field, bool)
- func (i *Item) GetTitle(s *schema.Schema) *string
- func (i *Item) HasField(fid FieldID, value any) bool
- func (i *Item) ID() ID
- func (i *Item) Integration() *IntegrationID
- func (i *Item) IsMetadata() bool
- func (i *Item) MetadataItem() *ID
- func (i *Item) Model() ModelID
- func (i *Item) OriginalItem() *ID
- func (i *Item) Project() ProjectID
- func (i *Item) Schema() SchemaID
- func (i *Item) SetMetadataItem(iid id.ItemID)
- func (i *Item) SetOriginalItem(iid id.ItemID)
- func (i *Item) SetUpdatedByIntegration(u IntegrationID)
- func (i *Item) SetUpdatedByUser(u UserID)
- func (i *Item) Thread() ThreadID
- func (i *Item) Timestamp() time.Time
- func (i *Item) UpdateFields(fields []*Field)
- func (i *Item) UpdatedByIntegration() *IntegrationID
- func (i *Item) UpdatedByUser() *UserID
- func (i *Item) User() *UserID
- type ItemGroupID
- type ItemModelSchema
- type List
- type ModelID
- type ProjectID
- type Query
- func (q *Query) Fields() view.FieldSelectorList
- func (q *Query) Filter() *view.Condition
- func (q *Query) HasItemFields() bool
- func (q *Query) HasMetaFields() bool
- func (q *Query) ItemFields() view.FieldSelectorList
- func (q *Query) Keyword() string
- func (q *Query) MetaFields() view.FieldSelectorList
- func (q *Query) Model() id.ModelID
- func (q *Query) Project() id.ProjectID
- func (q *Query) Ref() *version.Ref
- func (q *Query) Schema() *id.SchemaID
- func (q *Query) Sort() *view.Sort
- func (q *Query) WithFilter(filter *view.Condition) *Query
- func (q *Query) WithSort(sort *view.Sort) *Query
- type SchemaID
- type Status
- type ThreadID
- type UserID
- type Versioned
- type VersionedList
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var FieldIDFrom = id.FieldIDFrom
View Source
var FieldIDFromRef = id.FieldIDFromRef
View Source
var IDFrom = id.ItemIDFrom
View Source
var IDFromRef = id.ItemIDFromRef
View Source
var MustFieldID = id.MustFieldID
View Source
var MustID = id.MustItemID
View Source
var MustThreadID = id.MustThreadID
View Source
var NewFieldID = id.NewFieldID
View Source
var NewID = id.NewItemID
View Source
var NewThreadID = id.NewThreadID
View Source
var ThreadIDFrom = id.ThreadIDFrom
View Source
var ThreadIDFromRef = id.ThreadIDFromRef
Functions ¶
Types ¶
type AssetIDList ¶
type AssetIDList = id.AssetIDList
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) Integration ¶
func (b *Builder) Integration(id IntegrationID) *Builder
func (*Builder) IsMetadata ¶
func (*Builder) MetadataItem ¶
func (*Builder) OriginalItem ¶
func (*Builder) UpdatedByIntegration ¶
func (b *Builder) UpdatedByIntegration(id *IntegrationID) *Builder
func (*Builder) UpdatedByUser ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) IsGeometryField ¶
func (*Field) ItemGroup ¶
func (f *Field) ItemGroup() *ItemGroupID
type FieldChange ¶
type FieldChangeType ¶
type FieldChangeType string
const ( FieldChangeTypeAdd FieldChangeType = "add" FieldChangeTypeUpdate FieldChangeType = "update" FieldChangeTypeDelete FieldChangeType = "delete" )
type FieldChanges ¶
type FieldChanges []FieldChange
func CompareFields ¶
func CompareFields(n, o Fields) FieldChanges
type FieldIDList ¶
type FieldIDList = id.FieldIDList
type Fields ¶
type Fields []*Field
func (Fields) FieldsByGroup ¶
func (f Fields) FieldsByGroup(iid id.ItemGroupID) []*Field
type IDList ¶
type IDList = id.ItemIDList
type IntegrationID ¶
type IntegrationID = id.IntegrationID
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (*Item) AssetIDs ¶
func (i *Item) AssetIDs() AssetIDList
func (*Item) ClearField ¶
func (*Item) ClearReferenceFields ¶
func (i *Item) ClearReferenceFields()
func (*Item) FieldByItemGroupAndID ¶
func (i *Item) FieldByItemGroupAndID(fid FieldID, igID ItemGroupID) *Field
func (*Item) FilterFields ¶
func (i *Item) FilterFields(list FieldIDList) *Item
func (*Item) GetFirstGeometryField ¶
func (*Item) Integration ¶
func (i *Item) Integration() *IntegrationID
func (*Item) IsMetadata ¶
func (*Item) MetadataItem ¶
func (*Item) OriginalItem ¶
func (*Item) SetMetadataItem ¶
func (*Item) SetOriginalItem ¶
func (*Item) SetUpdatedByIntegration ¶
func (i *Item) SetUpdatedByIntegration(u IntegrationID)
func (*Item) SetUpdatedByUser ¶
func (*Item) UpdateFields ¶
func (*Item) UpdatedByIntegration ¶
func (i *Item) UpdatedByIntegration() *IntegrationID
func (*Item) UpdatedByUser ¶
type ItemGroupID ¶
type ItemGroupID = id.ItemGroupID
type ItemModelSchema ¶
type List ¶
type List []*Item
func (List) FilterFields ¶
func (l List) FilterFields(lids FieldIDList) List
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) Fields ¶
func (q *Query) Fields() view.FieldSelectorList
func (*Query) HasItemFields ¶
func (*Query) HasMetaFields ¶
func (*Query) ItemFields ¶
func (q *Query) ItemFields() view.FieldSelectorList
func (*Query) MetaFields ¶
func (q *Query) MetaFields() view.FieldSelectorList
type UserID ¶
type UserID = accountdomain.UserID
type VersionedList ¶
type VersionedList []Versioned
func (VersionedList) FilterFields ¶
func (l VersionedList) FilterFields(fields FieldIDList) VersionedList
func (VersionedList) Item ¶
func (l VersionedList) Item(iid ID) Versioned
func (VersionedList) Unwrap ¶
func (l VersionedList) Unwrap() List
Source Files ¶
Click to show internal directories.
Click to hide internal directories.