gqlmodel

package
v0.0.0-...-7d6b287 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyOptions = rerror.NewE(i18n.T("Options could not be empty!"))
View Source
var ErrInvalidTypeProperty = rerror.NewE(i18n.T("invalid type property"))
View Source
var ErrMultipleReference = rerror.NewE(i18n.T("multiple reference is not supported"))

Functions

func FromFile

func FromFile(f *graphql.Upload) *file.File

func FromPreviewType

func FromPreviewType(p *PreviewType) *asset.PreviewType

func FromRole

func FromRole(r Role) workspace.Role

func FromSchemaTypeProperty

func FromSchemaTypeProperty(tp *SchemaFieldTypePropertyInput, t SchemaFieldType, multiple bool) (tpRes *schema.TypeProperty, dv *value.Multiple, err error)

func FromTileType

func FromTileType(tt TileType) workspacesettings.TileType

func FromValue

func FromValue(t SchemaFieldType, v any) *value.Value

func FromValueType

func FromValueType(t SchemaFieldType) value.Type

func MarshalCursor

func MarshalCursor(t usecasex.Cursor) graphql.Marshaler

func MarshalLang

func MarshalLang(t language.Tag) graphql.Marshaler

func MarshalMap

func MarshalMap(val map[string]string) graphql.Marshaler

func MarshalURL

func MarshalURL(t url.URL) graphql.Marshaler

func ToID

func ToID[A idx.Type](a ID) (idx.ID[A], error)

func ToID2

func ToID2[A, B idx.Type](a, b ID) (ai idx.ID[A], bi idx.ID[B], err error)

func ToID3

func ToID3[A, B, C idx.Type](a, b, c ID) (ai idx.ID[A], bi idx.ID[B], ci idx.ID[C], err error)

func ToIDRef

func ToIDRef[A idx.Type](a *ID) *idx.ID[A]

func ToIDs

func ToIDs[A idx.Type](a []ID) ([]idx.ID[A], error)

func ToItemParam

func ToItemParam(field *ItemFieldInput) *interfaces.ItemFieldParam

func ToItemQuery

func ToItemQuery(inp SearchItemInput) *item.Query

func ToStringIDRef

func ToStringIDRef[T idx.Type](a *ID) *idx.StringID[T]

func ToTheme

func ToTheme(t *Theme) *user.Theme

func ToValue

func ToValue(v *value.Multiple, multiple bool) any

func UnmarshalCursor

func UnmarshalCursor(v interface{}) (usecasex.Cursor, error)

func UnmarshalLang

func UnmarshalLang(v interface{}) (language.Tag, error)

func UnmarshalMap

func UnmarshalMap(v interface{}) (map[string]string, error)

func UnmarshalURL

func UnmarshalURL(v interface{}) (url.URL, error)

Types

type AddCommentInput

type AddCommentInput struct {
	ThreadID ID     `json:"threadId"`
	Content  string `json:"content"`
}

type AddIntegrationToWorkspaceInput

type AddIntegrationToWorkspaceInput struct {
	WorkspaceID   ID   `json:"workspaceId"`
	IntegrationID ID   `json:"integrationId"`
	Role          Role `json:"role"`
}

type AddUsersToWorkspaceInput

type AddUsersToWorkspaceInput struct {
	WorkspaceID ID             `json:"workspaceId"`
	Users       []*MemberInput `json:"users"`
}

type AddUsersToWorkspacePayload

type AddUsersToWorkspacePayload struct {
	Workspace *Workspace `json:"workspace"`
}

type AndCondition

type AndCondition struct {
	Conditions []Condition `json:"conditions"`
}

func (AndCondition) IsCondition

func (AndCondition) IsCondition()

type AndConditionInput

type AndConditionInput struct {
	Conditions []*ConditionInput `json:"conditions"`
}

type ApproveRequestInput

type ApproveRequestInput struct {
	RequestID ID `json:"requestId"`
}

type ArchiveExtractionStatus

type ArchiveExtractionStatus string
const (
	ArchiveExtractionStatusSkipped    ArchiveExtractionStatus = "SKIPPED"
	ArchiveExtractionStatusPending    ArchiveExtractionStatus = "PENDING"
	ArchiveExtractionStatusInProgress ArchiveExtractionStatus = "IN_PROGRESS"
	ArchiveExtractionStatusDone       ArchiveExtractionStatus = "DONE"
	ArchiveExtractionStatusFailed     ArchiveExtractionStatus = "FAILED"
)

func (ArchiveExtractionStatus) IsValid

func (e ArchiveExtractionStatus) IsValid() bool

func (ArchiveExtractionStatus) MarshalGQL

func (e ArchiveExtractionStatus) MarshalGQL(w io.Writer)

func (ArchiveExtractionStatus) String

func (e ArchiveExtractionStatus) String() string

func (*ArchiveExtractionStatus) UnmarshalGQL

func (e *ArchiveExtractionStatus) UnmarshalGQL(v interface{}) error

type Asset

type Asset struct {
	ID                      ID                       `json:"id"`
	Project                 *Project                 `json:"project"`
	ProjectID               ID                       `json:"projectId"`
	CreatedAt               time.Time                `json:"createdAt"`
	CreatedBy               Operator                 `json:"createdBy"`
	CreatedByType           OperatorType             `json:"createdByType"`
	CreatedByID             ID                       `json:"createdById"`
	Items                   []*AssetItem             `json:"items,omitempty"`
	Size                    int64                    `json:"size"`
	PreviewType             *PreviewType             `json:"previewType,omitempty"`
	UUID                    string                   `json:"uuid"`
	Thread                  *Thread                  `json:"thread,omitempty"`
	ThreadID                ID                       `json:"threadId"`
	URL                     string                   `json:"url"`
	FileName                string                   `json:"fileName"`
	ArchiveExtractionStatus *ArchiveExtractionStatus `json:"archiveExtractionStatus,omitempty"`
}

func ToAsset

func ToAsset(a *asset.Asset, urlResolver func(a *asset.Asset) string) *Asset

func (Asset) GetID

func (this Asset) GetID() ID

func (Asset) IsNode

func (Asset) IsNode()

type AssetConnection

type AssetConnection struct {
	Edges      []*AssetEdge `json:"edges"`
	Nodes      []*Asset     `json:"nodes"`
	PageInfo   *PageInfo    `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

type AssetEdge

type AssetEdge struct {
	Cursor usecasex.Cursor `json:"cursor"`
	Node   *Asset          `json:"node,omitempty"`
}

type AssetFile

type AssetFile struct {
	Name        string   `json:"name"`
	Size        int64    `json:"size"`
	ContentType *string  `json:"contentType,omitempty"`
	Path        string   `json:"path"`
	FilePaths   []string `json:"filePaths,omitempty"`
}

func ToAssetFile

func ToAssetFile(a *asset.File) *AssetFile

type AssetItem

type AssetItem struct {
	ItemID  ID `json:"itemId"`
	ModelID ID `json:"modelId"`
}

type AssetSort

type AssetSort struct {
	SortBy    AssetSortType  `json:"sortBy"`
	Direction *SortDirection `json:"direction,omitempty"`
}

func (*AssetSort) Into

func (s *AssetSort) Into() *usecasex.Sort

type AssetSortType

type AssetSortType string
const (
	AssetSortTypeDate AssetSortType = "DATE"
	AssetSortTypeSize AssetSortType = "SIZE"
	AssetSortTypeName AssetSortType = "NAME"
)

func (AssetSortType) IsValid

func (e AssetSortType) IsValid() bool

func (AssetSortType) MarshalGQL

func (e AssetSortType) MarshalGQL(w io.Writer)

func (AssetSortType) String

func (e AssetSortType) String() string

func (*AssetSortType) UnmarshalGQL

func (e *AssetSortType) UnmarshalGQL(v interface{}) error

type BasicFieldCondition

type BasicFieldCondition struct {
	FieldID  *FieldSelector `json:"fieldId"`
	Operator BasicOperator  `json:"operator"`
	Value    any            `json:"value"`
}

func (BasicFieldCondition) IsCondition

func (BasicFieldCondition) IsCondition()

type BasicFieldConditionInput

type BasicFieldConditionInput struct {
	FieldID  *FieldSelectorInput `json:"fieldId"`
	Operator BasicOperator       `json:"operator"`
	Value    any                 `json:"value"`
}

type BasicOperator

type BasicOperator string
const (
	BasicOperatorEquals    BasicOperator = "EQUALS"
	BasicOperatorNotEquals BasicOperator = "NOT_EQUALS"
)

func (BasicOperator) Into

func (e BasicOperator) Into() view.BasicOperator

func (BasicOperator) IsValid

func (e BasicOperator) IsValid() bool

func (BasicOperator) MarshalGQL

func (e BasicOperator) MarshalGQL(w io.Writer)

func (BasicOperator) String

func (e BasicOperator) String() string

func (*BasicOperator) UnmarshalGQL

func (e *BasicOperator) UnmarshalGQL(v interface{}) error

type BoolFieldCondition

type BoolFieldCondition struct {
	FieldID  *FieldSelector `json:"fieldId"`
	Operator BoolOperator   `json:"operator"`
	Value    bool           `json:"value"`
}

func (BoolFieldCondition) IsCondition

func (BoolFieldCondition) IsCondition()

type BoolFieldConditionInput

type BoolFieldConditionInput struct {
	FieldID  *FieldSelectorInput `json:"fieldId"`
	Operator BoolOperator        `json:"operator"`
	Value    bool                `json:"value"`
}

type BoolOperator

type BoolOperator string
const (
	BoolOperatorEquals    BoolOperator = "EQUALS"
	BoolOperatorNotEquals BoolOperator = "NOT_EQUALS"
)

func (BoolOperator) Into

func (e BoolOperator) Into() view.BoolOperator

func (BoolOperator) IsValid

func (e BoolOperator) IsValid() bool

func (BoolOperator) MarshalGQL

func (e BoolOperator) MarshalGQL(w io.Writer)

func (BoolOperator) String

func (e BoolOperator) String() string

func (*BoolOperator) UnmarshalGQL

func (e *BoolOperator) UnmarshalGQL(v interface{}) error

type CesiumResourceProps

type CesiumResourceProps struct {
	Name                 string `json:"name"`
	URL                  string `json:"url"`
	Image                string `json:"image"`
	CesiumIonAssetID     string `json:"cesiumIonAssetId"`
	CesiumIonAccessToken string `json:"cesiumIonAccessToken"`
}

type CesiumResourcePropsInput

type CesiumResourcePropsInput struct {
	Name                 string `json:"name"`
	URL                  string `json:"url"`
	Image                string `json:"image"`
	CesiumIonAssetID     string `json:"cesiumIonAssetId"`
	CesiumIonAccessToken string `json:"cesiumIonAccessToken"`
}

type Column

type Column struct {
	Field   *FieldSelector `json:"field"`
	Visible bool           `json:"visible"`
}

func ToFieldSelectorList

func ToFieldSelectorList(columns *view.ColumnList) []*Column

type ColumnSelectionInput

type ColumnSelectionInput struct {
	Field   *FieldSelectorInput `json:"field"`
	Visible bool                `json:"visible"`
}

func (ColumnSelectionInput) Into

func (i ColumnSelectionInput) Into() view.Column

type Comment

type Comment struct {
	ID          ID           `json:"id"`
	ThreadID    ID           `json:"threadId"`
	WorkspaceID ID           `json:"workspaceId"`
	Author      Operator     `json:"author,omitempty"`
	AuthorType  OperatorType `json:"authorType"`
	AuthorID    ID           `json:"authorId"`
	Content     string       `json:"content"`
	CreatedAt   time.Time    `json:"createdAt"`
}

func ToComment

func ToComment(c *thread.Comment, th *thread.Thread) *Comment

type CommentPayload

type CommentPayload struct {
	Thread  *Thread  `json:"thread"`
	Comment *Comment `json:"comment"`
}

type Condition

type Condition interface {
	IsCondition()
}

func ToFilter

func ToFilter(i *view.Condition) Condition

type ConditionInput

type ConditionInput struct {
	And      *AndConditionInput           `json:"and,omitempty"`
	Or       *OrConditionInput            `json:"or,omitempty"`
	Basic    *BasicFieldConditionInput    `json:"basic,omitempty"`
	Nullable *NullableFieldConditionInput `json:"nullable,omitempty"`
	Multiple *MultipleFieldConditionInput `json:"multiple,omitempty"`
	Bool     *BoolFieldConditionInput     `json:"bool,omitempty"`
	String   *StringFieldConditionInput   `json:"string,omitempty"`
	Number   *NumberFieldConditionInput   `json:"number,omitempty"`
	Time     *TimeFieldConditionInput     `json:"time,omitempty"`
}

func (*ConditionInput) Into

func (i *ConditionInput) Into() *view.Condition

type CorrespondingFieldInput

type CorrespondingFieldInput struct {
	FieldID     *ID    `json:"fieldId,omitempty"`
	Title       string `json:"title"`
	Key         string `json:"key"`
	Description string `json:"description"`
	Required    bool   `json:"required"`
}

type CreateAssetInput

type CreateAssetInput struct {
	ProjectID         ID              `json:"projectId"`
	File              *graphql.Upload `json:"file,omitempty"`
	URL               *string         `json:"url,omitempty"`
	Token             *string         `json:"token,omitempty"`
	SkipDecompression *bool           `json:"skipDecompression,omitempty"`
}

type CreateAssetPayload

type CreateAssetPayload struct {
	Asset *Asset `json:"asset"`
}

type CreateAssetUploadInput

type CreateAssetUploadInput struct {
	ProjectID     ID      `json:"projectId"`
	Filename      *string `json:"filename,omitempty"`
	ContentLength *int    `json:"contentLength,omitempty"`
	Cursor        *string `json:"cursor,omitempty"`
}

type CreateAssetUploadPayload

type CreateAssetUploadPayload struct {
	Token         string  `json:"token"`
	URL           string  `json:"url"`
	ContentType   *string `json:"contentType,omitempty"`
	ContentLength int     `json:"contentLength"`
	Next          *string `json:"next,omitempty"`
}

type CreateFieldInput

type CreateFieldInput struct {
	ModelID      *ID                           `json:"modelId,omitempty"`
	GroupID      *ID                           `json:"groupId,omitempty"`
	Type         SchemaFieldType               `json:"type"`
	Title        string                        `json:"title"`
	Metadata     *bool                         `json:"metadata,omitempty"`
	Description  *string                       `json:"description,omitempty"`
	Key          string                        `json:"key"`
	Multiple     bool                          `json:"multiple"`
	Unique       bool                          `json:"unique"`
	Required     bool                          `json:"required"`
	IsTitle      bool                          `json:"isTitle"`
	TypeProperty *SchemaFieldTypePropertyInput `json:"typeProperty"`
}

type CreateGroupInput

type CreateGroupInput struct {
	ProjectID   ID      `json:"projectId"`
	Name        string  `json:"name"`
	Key         string  `json:"key"`
	Description *string `json:"description,omitempty"`
}

type CreateIntegrationInput

type CreateIntegrationInput struct {
	Name        string          `json:"name"`
	Description *string         `json:"description,omitempty"`
	LogoURL     url.URL         `json:"logoUrl"`
	Type        IntegrationType `json:"type"`
}

type CreateItemInput

type CreateItemInput struct {
	SchemaID   ID                `json:"schemaId"`
	ModelID    ID                `json:"modelId"`
	MetadataID *ID               `json:"metadataId,omitempty"`
	OriginalID *ID               `json:"originalId,omitempty"`
	Fields     []*ItemFieldInput `json:"fields"`
}

type CreateModelInput

type CreateModelInput struct {
	ProjectID   ID      `json:"projectId"`
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	Key         *string `json:"key,omitempty"`
}

type CreateProjectInput

type CreateProjectInput struct {
	WorkspaceID  ID      `json:"workspaceId"`
	Name         *string `json:"name,omitempty"`
	Description  *string `json:"description,omitempty"`
	Alias        *string `json:"alias,omitempty"`
	RequestRoles []Role  `json:"requestRoles,omitempty"`
}

type CreateRequestInput

type CreateRequestInput struct {
	ProjectID   ID                  `json:"projectId"`
	Title       string              `json:"title"`
	Description *string             `json:"description,omitempty"`
	State       *RequestState       `json:"state,omitempty"`
	ReviewersID []ID                `json:"reviewersId,omitempty"`
	Items       []*RequestItemInput `json:"items"`
}

type CreateThreadInput

type CreateThreadInput struct {
	WorkspaceID ID `json:"workspaceId"`
}

type CreateViewInput

type CreateViewInput struct {
	Name      string                  `json:"name"`
	ModelID   ID                      `json:"modelId"`
	ProjectID ID                      `json:"projectId"`
	Sort      *ItemSortInput          `json:"sort,omitempty"`
	Filter    *ConditionInput         `json:"filter,omitempty"`
	Columns   []*ColumnSelectionInput `json:"columns,omitempty"`
}

type CreateWebhookInput

type CreateWebhookInput struct {
	IntegrationID ID                   `json:"integrationId"`
	Name          string               `json:"name"`
	URL           url.URL              `json:"url"`
	Active        bool                 `json:"active"`
	Trigger       *WebhookTriggerInput `json:"trigger"`
	Secret        string               `json:"secret"`
}

type CreateWorkspaceInput

type CreateWorkspaceInput struct {
	Name string `json:"name"`
}

type CreateWorkspacePayload

type CreateWorkspacePayload struct {
	Workspace *Workspace `json:"workspace"`
}

type DecompressAssetInput

type DecompressAssetInput struct {
	AssetID ID `json:"assetId"`
}

type DecompressAssetPayload

type DecompressAssetPayload struct {
	Asset *Asset `json:"asset"`
}

type DeleteAssetInput

type DeleteAssetInput struct {
	AssetID ID `json:"assetId"`
}

type DeleteAssetPayload

type DeleteAssetPayload struct {
	AssetID ID `json:"assetId"`
}

type DeleteCommentInput

type DeleteCommentInput struct {
	ThreadID  ID `json:"threadId"`
	CommentID ID `json:"commentId"`
}

type DeleteCommentPayload

type DeleteCommentPayload struct {
	Thread    *Thread `json:"thread"`
	CommentID ID      `json:"commentId"`
}

type DeleteFieldInput

type DeleteFieldInput struct {
	ModelID  *ID   `json:"modelId,omitempty"`
	GroupID  *ID   `json:"groupId,omitempty"`
	FieldID  ID    `json:"fieldId"`
	Metadata *bool `json:"metadata,omitempty"`
}

type DeleteFieldPayload

type DeleteFieldPayload struct {
	FieldID ID `json:"fieldId"`
}

type DeleteGroupInput

type DeleteGroupInput struct {
	GroupID ID `json:"groupId"`
}

type DeleteGroupPayload

type DeleteGroupPayload struct {
	GroupID ID `json:"groupId"`
}

type DeleteIntegrationInput

type DeleteIntegrationInput struct {
	IntegrationID ID `json:"integrationId"`
}

type DeleteIntegrationPayload

type DeleteIntegrationPayload struct {
	IntegrationID ID `json:"integrationId"`
}

type DeleteItemInput

type DeleteItemInput struct {
	ItemID ID `json:"itemId"`
}

type DeleteItemPayload

type DeleteItemPayload struct {
	ItemID ID `json:"itemId"`
}

type DeleteMeInput

type DeleteMeInput struct {
	UserID ID `json:"userId"`
}

type DeleteMePayload

type DeleteMePayload struct {
	UserID ID `json:"userId"`
}

type DeleteModelInput

type DeleteModelInput struct {
	ModelID ID `json:"modelId"`
}

type DeleteModelPayload

type DeleteModelPayload struct {
	ModelID ID `json:"modelId"`
}

type DeleteProjectInput

type DeleteProjectInput struct {
	ProjectID ID `json:"projectId"`
}

type DeleteProjectPayload

type DeleteProjectPayload struct {
	ProjectID ID `json:"projectId"`
}

type DeleteRequestInput

type DeleteRequestInput struct {
	ProjectID  ID   `json:"projectId"`
	RequestsID []ID `json:"requestsId"`
}

type DeleteRequestPayload

type DeleteRequestPayload struct {
	Requests []ID `json:"requests"`
}

type DeleteViewInput

type DeleteViewInput struct {
	ViewID ID `json:"viewId"`
}

type DeleteViewPayload

type DeleteViewPayload struct {
	ViewID ID `json:"viewId"`
}

type DeleteWebhookInput

type DeleteWebhookInput struct {
	IntegrationID ID `json:"integrationId"`
	WebhookID     ID `json:"webhookId"`
}

type DeleteWebhookPayload

type DeleteWebhookPayload struct {
	WebhookID ID `json:"webhookId"`
}

type DeleteWorkspaceInput

type DeleteWorkspaceInput struct {
	WorkspaceID ID `json:"workspaceId"`
}

type DeleteWorkspacePayload

type DeleteWorkspacePayload struct {
	WorkspaceID ID `json:"workspaceId"`
}

type FieldPayload

type FieldPayload struct {
	Field *SchemaField `json:"field"`
}

type FieldSelector

type FieldSelector struct {
	Type FieldType `json:"type"`
	ID   *ID       `json:"id,omitempty"`
}

func ToFieldSelector

func ToFieldSelector(field view.FieldSelector) *FieldSelector

type FieldSelectorInput

type FieldSelectorInput struct {
	ID   *ID       `json:"id,omitempty"`
	Type FieldType `json:"type"`
}

func (FieldSelectorInput) Into

type FieldType

type FieldType string
const (
	FieldTypeID               FieldType = "ID"
	FieldTypeCreationDate     FieldType = "CREATION_DATE"
	FieldTypeCreationUser     FieldType = "CREATION_USER"
	FieldTypeModificationDate FieldType = "MODIFICATION_DATE"
	FieldTypeModificationUser FieldType = "MODIFICATION_USER"
	FieldTypeStatus           FieldType = "STATUS"
	FieldTypeField            FieldType = "FIELD"
	FieldTypeMetaField        FieldType = "META_FIELD"
)

func ToFieldType

func ToFieldType(fieldType view.FieldType) FieldType

func (FieldType) Into

func (e FieldType) Into() view.FieldType

func (FieldType) IsValid

func (e FieldType) IsValid() bool

func (FieldType) MarshalGQL

func (e FieldType) MarshalGQL(w io.Writer)

func (FieldType) String

func (e FieldType) String() string

func (*FieldType) UnmarshalGQL

func (e *FieldType) UnmarshalGQL(v interface{}) error

type FieldsPayload

type FieldsPayload struct {
	Fields []*SchemaField `json:"fields"`
}

type GeometryEditorSupportedType

type GeometryEditorSupportedType string
const (
	GeometryEditorSupportedTypePoint      GeometryEditorSupportedType = "POINT"
	GeometryEditorSupportedTypeLinestring GeometryEditorSupportedType = "LINESTRING"
	GeometryEditorSupportedTypePolygon    GeometryEditorSupportedType = "POLYGON"
	GeometryEditorSupportedTypeAny        GeometryEditorSupportedType = "ANY"
)

func (GeometryEditorSupportedType) IsValid

func (e GeometryEditorSupportedType) IsValid() bool

func (GeometryEditorSupportedType) MarshalGQL

func (e GeometryEditorSupportedType) MarshalGQL(w io.Writer)

func (GeometryEditorSupportedType) String

func (*GeometryEditorSupportedType) UnmarshalGQL

func (e *GeometryEditorSupportedType) UnmarshalGQL(v interface{}) error

type GeometryObjectSupportedType

type GeometryObjectSupportedType string
const (
	GeometryObjectSupportedTypePoint              GeometryObjectSupportedType = "POINT"
	GeometryObjectSupportedTypeMultipoint         GeometryObjectSupportedType = "MULTIPOINT"
	GeometryObjectSupportedTypeLinestring         GeometryObjectSupportedType = "LINESTRING"
	GeometryObjectSupportedTypeMultilinestring    GeometryObjectSupportedType = "MULTILINESTRING"
	GeometryObjectSupportedTypePolygon            GeometryObjectSupportedType = "POLYGON"
	GeometryObjectSupportedTypeMultipolygon       GeometryObjectSupportedType = "MULTIPOLYGON"
	GeometryObjectSupportedTypeGeometrycollection GeometryObjectSupportedType = "GEOMETRYCOLLECTION"
)

func (GeometryObjectSupportedType) IsValid

func (e GeometryObjectSupportedType) IsValid() bool

func (GeometryObjectSupportedType) MarshalGQL

func (e GeometryObjectSupportedType) MarshalGQL(w io.Writer)

func (GeometryObjectSupportedType) String

func (*GeometryObjectSupportedType) UnmarshalGQL

func (e *GeometryObjectSupportedType) UnmarshalGQL(v interface{}) error

type Group

type Group struct {
	ID          ID             `json:"id"`
	SchemaID    ID             `json:"schemaId"`
	ProjectID   ID             `json:"projectId"`
	Name        string         `json:"name"`
	Description string         `json:"description"`
	Key         string         `json:"key"`
	Schema      *Schema        `json:"schema"`
	Project     *Project       `json:"project"`
	Fields      []*SchemaField `json:"fields"`
	Order       int            `json:"order"`
}

func ToGroup

func ToGroup(g *group.Group) *Group

func (Group) GetID

func (this Group) GetID() ID

func (Group) IsNode

func (Group) IsNode()

type GroupPayload

type GroupPayload struct {
	Group *Group `json:"group"`
}

type GroupsPayload

type GroupsPayload struct {
	Groups []*Group `json:"groups"`
}

type ID

type ID string

func IDFrom

func IDFrom[T idx.Type](i idx.ID[T]) ID

func IDFromRef

func IDFromRef[T idx.Type](i *idx.ID[T]) *ID

func IDFromStringRef

func IDFromStringRef[T idx.Type](i *idx.StringID[T]) *ID

type Integration

type Integration struct {
	ID          ID                 `json:"id"`
	Name        string             `json:"name"`
	Description *string            `json:"description,omitempty"`
	LogoURL     url.URL            `json:"logoUrl"`
	IType       IntegrationType    `json:"iType"`
	DeveloperID ID                 `json:"developerId"`
	Developer   *User              `json:"developer"`
	Config      *IntegrationConfig `json:"config,omitempty"`
	CreatedAt   time.Time          `json:"createdAt"`
	UpdatedAt   time.Time          `json:"updatedAt"`
}

func (Integration) GetID

func (this Integration) GetID() ID

func (Integration) IsNode

func (Integration) IsNode()

func (Integration) IsOperator

func (Integration) IsOperator()

type IntegrationConfig

type IntegrationConfig struct {
	Token    string     `json:"token"`
	Webhooks []*Webhook `json:"webhooks"`
}

type IntegrationPayload

type IntegrationPayload struct {
	Integration *Integration `json:"integration"`
}

type IntegrationType

type IntegrationType string
const (
	IntegrationTypePublic  IntegrationType = "Public"
	IntegrationTypePrivate IntegrationType = "Private"
)

func ToIntegrationType

func ToIntegrationType(t integration.Type) IntegrationType

func (IntegrationType) IsValid

func (e IntegrationType) IsValid() bool

func (IntegrationType) MarshalGQL

func (e IntegrationType) MarshalGQL(w io.Writer)

func (IntegrationType) String

func (e IntegrationType) String() string

func (*IntegrationType) UnmarshalGQL

func (e *IntegrationType) UnmarshalGQL(v interface{}) error

type Item

type Item struct {
	ID                     ID           `json:"id"`
	SchemaID               ID           `json:"schemaId"`
	ThreadID               ID           `json:"threadId"`
	ModelID                ID           `json:"modelId"`
	ProjectID              ID           `json:"projectId"`
	IntegrationID          *ID          `json:"integrationId,omitempty"`
	UpdatedByUserID        *ID          `json:"updatedByUserId,omitempty"`
	UpdatedByIntegrationID *ID          `json:"updatedByIntegrationId,omitempty"`
	UserID                 *ID          `json:"userId,omitempty"`
	MetadataID             *ID          `json:"metadataId,omitempty"`
	IsMetadata             bool         `json:"isMetadata"`
	OriginalID             *ID          `json:"originalId,omitempty"`
	CreatedBy              Operator     `json:"createdBy,omitempty"`
	Schema                 *Schema      `json:"schema"`
	Model                  *Model       `json:"model"`
	Status                 ItemStatus   `json:"status"`
	Project                *Project     `json:"project"`
	Thread                 *Thread      `json:"thread"`
	Fields                 []*ItemField `json:"fields"`
	Assets                 []*Asset     `json:"assets"`
	ReferencedItems        []*Item      `json:"referencedItems,omitempty"`
	Requests               []*Request   `json:"requests,omitempty"`
	CreatedAt              time.Time    `json:"createdAt"`
	UpdatedAt              time.Time    `json:"updatedAt"`
	UpdatedBy              Operator     `json:"updatedBy,omitempty"`
	Version                string       `json:"version"`
	Metadata               *Item        `json:"metadata,omitempty"`
	Original               *Item        `json:"original,omitempty"`
	Title                  *string      `json:"title,omitempty"`
}

func ToItem

func ToItem(vi item.Versioned, s *schema.Schema, gsList schema.List) *Item

func (Item) GetID

func (this Item) GetID() ID

func (Item) IsNode

func (Item) IsNode()

type ItemConnection

type ItemConnection struct {
	Edges      []*ItemEdge `json:"edges"`
	Nodes      []*Item     `json:"nodes"`
	PageInfo   *PageInfo   `json:"pageInfo"`
	TotalCount int         `json:"totalCount"`
}

type ItemEdge

type ItemEdge struct {
	Cursor usecasex.Cursor `json:"cursor"`
	Node   *Item           `json:"node,omitempty"`
}

type ItemField

type ItemField struct {
	SchemaFieldID ID              `json:"schemaFieldId"`
	ItemGroupID   *ID             `json:"itemGroupId,omitempty"`
	Type          SchemaFieldType `json:"type"`
	Value         any             `json:"value,omitempty"`
}

type ItemFieldInput

type ItemFieldInput struct {
	SchemaFieldID ID              `json:"schemaFieldId"`
	ItemGroupID   *ID             `json:"itemGroupId,omitempty"`
	Type          SchemaFieldType `json:"type"`
	Value         any             `json:"value"`
}

type ItemPayload

type ItemPayload struct {
	Item *Item `json:"item"`
}

type ItemQueryInput

type ItemQueryInput struct {
	Project ID      `json:"project"`
	Model   ID      `json:"model"`
	Schema  *ID     `json:"schema,omitempty"`
	Q       *string `json:"q,omitempty"`
}

type ItemSort

type ItemSort struct {
	Field     *FieldSelector `json:"field"`
	Direction *SortDirection `json:"direction,omitempty"`
}

func ToSort

func ToSort(i *view.Sort) *ItemSort

type ItemSortInput

type ItemSortInput struct {
	Field     *FieldSelectorInput `json:"field"`
	Direction *SortDirection      `json:"direction,omitempty"`
}

func (*ItemSortInput) Into

func (s *ItemSortInput) Into() *view.Sort

type ItemStatus

type ItemStatus string
const (
	ItemStatusDraft        ItemStatus = "DRAFT"
	ItemStatusPublic       ItemStatus = "PUBLIC"
	ItemStatusReview       ItemStatus = "REVIEW"
	ItemStatusPublicReview ItemStatus = "PUBLIC_REVIEW"
	ItemStatusPublicDraft  ItemStatus = "PUBLIC_DRAFT"
)

func ToItemStatus

func ToItemStatus(in item.Status) ItemStatus

func (ItemStatus) IsValid

func (e ItemStatus) IsValid() bool

func (ItemStatus) MarshalGQL

func (e ItemStatus) MarshalGQL(w io.Writer)

func (ItemStatus) String

func (e ItemStatus) String() string

func (*ItemStatus) UnmarshalGQL

func (e *ItemStatus) UnmarshalGQL(v interface{}) error

type KeyAvailability

type KeyAvailability struct {
	Key       string `json:"key"`
	Available bool   `json:"available"`
}

type Me

type Me struct {
	ID            ID             `json:"id"`
	Name          string         `json:"name"`
	Email         string         `json:"email"`
	Lang          language.Tag   `json:"lang"`
	Theme         Theme          `json:"theme"`
	Host          *string        `json:"host,omitempty"`
	MyWorkspaceID ID             `json:"myWorkspaceId"`
	Auths         []string       `json:"auths"`
	Workspaces    []*Workspace   `json:"workspaces"`
	MyWorkspace   *Workspace     `json:"myWorkspace,omitempty"`
	Integrations  []*Integration `json:"integrations"`
}

func ToMe

func ToMe(u *user.User) *Me

type MemberInput

type MemberInput struct {
	UserID ID   `json:"userId"`
	Role   Role `json:"role"`
}

type Model

type Model struct {
	ID               ID        `json:"id"`
	ProjectID        ID        `json:"projectId"`
	SchemaID         ID        `json:"schemaId"`
	MetadataSchemaID *ID       `json:"metadataSchemaId,omitempty"`
	Name             string    `json:"name"`
	Description      string    `json:"description"`
	Key              string    `json:"key"`
	Project          *Project  `json:"project"`
	Schema           *Schema   `json:"schema"`
	MetadataSchema   *Schema   `json:"metadataSchema,omitempty"`
	Public           bool      `json:"public"`
	CreatedAt        time.Time `json:"createdAt"`
	UpdatedAt        time.Time `json:"updatedAt"`
	Order            *int      `json:"order,omitempty"`
}

func ToModel

func ToModel(m *model.Model) *Model

func (Model) GetID

func (this Model) GetID() ID

func (Model) IsNode

func (Model) IsNode()

type ModelConnection

type ModelConnection struct {
	Edges      []*ModelEdge `json:"edges"`
	Nodes      []*Model     `json:"nodes"`
	PageInfo   *PageInfo    `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

type ModelEdge

type ModelEdge struct {
	Cursor usecasex.Cursor `json:"cursor"`
	Node   *Model          `json:"node,omitempty"`
}

type ModelPayload

type ModelPayload struct {
	Model *Model `json:"model"`
}

type ModelsPayload

type ModelsPayload struct {
	Models []*Model `json:"models"`
}

type MultipleFieldCondition

type MultipleFieldCondition struct {
	FieldID  *FieldSelector   `json:"fieldId"`
	Operator MultipleOperator `json:"operator"`
	Value    []any            `json:"value"`
}

func (MultipleFieldCondition) IsCondition

func (MultipleFieldCondition) IsCondition()

type MultipleFieldConditionInput

type MultipleFieldConditionInput struct {
	FieldID  *FieldSelectorInput `json:"fieldId"`
	Operator MultipleOperator    `json:"operator"`
	Value    []any               `json:"value"`
}

type MultipleOperator

type MultipleOperator string
const (
	MultipleOperatorIncludesAny    MultipleOperator = "INCLUDES_ANY"
	MultipleOperatorNotIncludesAny MultipleOperator = "NOT_INCLUDES_ANY"
	MultipleOperatorIncludesAll    MultipleOperator = "INCLUDES_ALL"
	MultipleOperatorNotIncludesAll MultipleOperator = "NOT_INCLUDES_ALL"
)

func (MultipleOperator) Into

func (MultipleOperator) IsValid

func (e MultipleOperator) IsValid() bool

func (MultipleOperator) MarshalGQL

func (e MultipleOperator) MarshalGQL(w io.Writer)

func (MultipleOperator) String

func (e MultipleOperator) String() string

func (*MultipleOperator) UnmarshalGQL

func (e *MultipleOperator) UnmarshalGQL(v interface{}) error

type Mutation

type Mutation struct {
}

type Node

type Node interface {
	IsNode()
	GetID() ID
}

type NodeType

type NodeType string
const (
	NodeTypeUser              NodeType = "USER"
	NodeTypeWorkspace         NodeType = "WORKSPACE"
	NodeTypeProject           NodeType = "PROJECT"
	NodeTypeAsset             NodeType = "ASSET"
	NodeTypeRequest           NodeType = "REQUEST"
	NodeTypeModel             NodeType = "Model"
	NodeTypeSchema            NodeType = "Schema"
	NodeTypeItem              NodeType = "Item"
	NodeTypeView              NodeType = "View"
	NodeTypeIntegration       NodeType = "Integration"
	NodeTypeGroup             NodeType = "Group"
	NodeTypeWorkspaceSettings NodeType = "WorkspaceSettings"
)

func (NodeType) IsValid

func (e NodeType) IsValid() bool

func (NodeType) MarshalGQL

func (e NodeType) MarshalGQL(w io.Writer)

func (NodeType) String

func (e NodeType) String() string

func (*NodeType) UnmarshalGQL

func (e *NodeType) UnmarshalGQL(v interface{}) error

type NullableFieldCondition

type NullableFieldCondition struct {
	FieldID  *FieldSelector   `json:"fieldId"`
	Operator NullableOperator `json:"operator"`
}

func (NullableFieldCondition) IsCondition

func (NullableFieldCondition) IsCondition()

type NullableFieldConditionInput

type NullableFieldConditionInput struct {
	FieldID  *FieldSelectorInput `json:"fieldId"`
	Operator NullableOperator    `json:"operator"`
}

type NullableOperator

type NullableOperator string
const (
	NullableOperatorEmpty    NullableOperator = "EMPTY"
	NullableOperatorNotEmpty NullableOperator = "NOT_EMPTY"
)

func (NullableOperator) Into

func (NullableOperator) IsValid

func (e NullableOperator) IsValid() bool

func (NullableOperator) MarshalGQL

func (e NullableOperator) MarshalGQL(w io.Writer)

func (NullableOperator) String

func (e NullableOperator) String() string

func (*NullableOperator) UnmarshalGQL

func (e *NullableOperator) UnmarshalGQL(v interface{}) error

type NumberFieldCondition

type NumberFieldCondition struct {
	FieldID  *FieldSelector `json:"fieldId"`
	Operator NumberOperator `json:"operator"`
	Value    float64        `json:"value"`
}

func (NumberFieldCondition) IsCondition

func (NumberFieldCondition) IsCondition()

type NumberFieldConditionInput

type NumberFieldConditionInput struct {
	FieldID  *FieldSelectorInput `json:"fieldId"`
	Operator NumberOperator      `json:"operator"`
	Value    float64             `json:"value"`
}

type NumberOperator

type NumberOperator string
const (
	NumberOperatorGreaterThan          NumberOperator = "GREATER_THAN"
	NumberOperatorLessThan             NumberOperator = "LESS_THAN"
	NumberOperatorGreaterThanOrEqualTo NumberOperator = "GREATER_THAN_OR_EQUAL_TO"
	NumberOperatorLessThanOrEqualTo    NumberOperator = "LESS_THAN_OR_EQUAL_TO"
)

func (NumberOperator) Into

func (NumberOperator) IsValid

func (e NumberOperator) IsValid() bool

func (NumberOperator) MarshalGQL

func (e NumberOperator) MarshalGQL(w io.Writer)

func (NumberOperator) String

func (e NumberOperator) String() string

func (*NumberOperator) UnmarshalGQL

func (e *NumberOperator) UnmarshalGQL(v interface{}) error

type Operator

type Operator interface {
	IsOperator()
}

type OperatorInput

type OperatorInput struct {
	Basic    *BasicOperator    `json:"basic,omitempty"`
	Nullable *NullableOperator `json:"nullable,omitempty"`
	Bool     *BoolOperator     `json:"bool,omitempty"`
	String   *StringOperator   `json:"string,omitempty"`
	Number   *NumberOperator   `json:"number,omitempty"`
	Time     *TimeOperator     `json:"time,omitempty"`
}

type OperatorType

type OperatorType string
const (
	OperatorTypeUser        OperatorType = "User"
	OperatorTypeIntegration OperatorType = "Integration"
)

func (OperatorType) IsValid

func (e OperatorType) IsValid() bool

func (OperatorType) MarshalGQL

func (e OperatorType) MarshalGQL(w io.Writer)

func (OperatorType) String

func (e OperatorType) String() string

func (*OperatorType) UnmarshalGQL

func (e *OperatorType) UnmarshalGQL(v interface{}) error

type OrCondition

type OrCondition struct {
	Conditions []Condition `json:"conditions"`
}

func (OrCondition) IsCondition

func (OrCondition) IsCondition()

type OrConditionInput

type OrConditionInput struct {
	Conditions []*ConditionInput `json:"conditions"`
}

type PageInfo

type PageInfo struct {
	StartCursor     *usecasex.Cursor `json:"startCursor,omitempty"`
	EndCursor       *usecasex.Cursor `json:"endCursor,omitempty"`
	HasNextPage     bool             `json:"hasNextPage"`
	HasPreviousPage bool             `json:"hasPreviousPage"`
}

func ToPageInfo

func ToPageInfo(p *usecasex.PageInfo) *PageInfo

type Pagination

type Pagination struct {
	First  *int             `json:"first,omitempty"`
	Last   *int             `json:"last,omitempty"`
	Offset *int             `json:"offset,omitempty"`
	After  *usecasex.Cursor `json:"after,omitempty"`
	Before *usecasex.Cursor `json:"before,omitempty"`
}

func (*Pagination) Into

func (p *Pagination) Into() *usecasex.Pagination

type PreviewType

type PreviewType string
const (
	PreviewTypeImage      PreviewType = "IMAGE"
	PreviewTypeImageSVG   PreviewType = "IMAGE_SVG"
	PreviewTypeGeo        PreviewType = "GEO"
	PreviewTypeGeo3dTiles PreviewType = "GEO_3D_TILES"
	PreviewTypeGeoMvt     PreviewType = "GEO_MVT"
	PreviewTypeModel3d    PreviewType = "MODEL_3D"
	PreviewTypeCSV        PreviewType = "CSV"
	PreviewTypeUnknown    PreviewType = "UNKNOWN"
)

func ToPreviewType

func ToPreviewType(p *asset.PreviewType) *PreviewType

func (PreviewType) IsValid

func (e PreviewType) IsValid() bool

func (PreviewType) MarshalGQL

func (e PreviewType) MarshalGQL(w io.Writer)

func (PreviewType) String

func (e PreviewType) String() string

func (*PreviewType) UnmarshalGQL

func (e *PreviewType) UnmarshalGQL(v interface{}) error

type Project

type Project struct {
	ID           ID                  `json:"id"`
	Name         string              `json:"name"`
	Description  string              `json:"description"`
	Alias        string              `json:"alias"`
	WorkspaceID  ID                  `json:"workspaceId"`
	Workspace    *Workspace          `json:"workspace,omitempty"`
	CreatedAt    time.Time           `json:"createdAt"`
	UpdatedAt    time.Time           `json:"updatedAt"`
	Publication  *ProjectPublication `json:"publication,omitempty"`
	RequestRoles []Role              `json:"requestRoles,omitempty"`
}

func ToProject

func ToProject(p *project.Project) *Project

func (Project) GetID

func (this Project) GetID() ID

func (Project) IsNode

func (Project) IsNode()

type ProjectAliasAvailability

type ProjectAliasAvailability struct {
	Alias     string `json:"alias"`
	Available bool   `json:"available"`
}

type ProjectConnection

type ProjectConnection struct {
	Edges      []*ProjectEdge `json:"edges"`
	Nodes      []*Project     `json:"nodes"`
	PageInfo   *PageInfo      `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

type ProjectEdge

type ProjectEdge struct {
	Cursor usecasex.Cursor `json:"cursor"`
	Node   *Project        `json:"node,omitempty"`
}

type ProjectPayload

type ProjectPayload struct {
	Project *Project `json:"project"`
}

type ProjectPublication

type ProjectPublication struct {
	Scope       ProjectPublicationScope `json:"scope"`
	AssetPublic bool                    `json:"assetPublic"`
	Token       *string                 `json:"token,omitempty"`
}

func ToProjectPublication

func ToProjectPublication(p *project.Publication) *ProjectPublication

type ProjectPublicationScope

type ProjectPublicationScope string
const (
	ProjectPublicationScopePublic  ProjectPublicationScope = "PUBLIC"
	ProjectPublicationScopeLimited ProjectPublicationScope = "LIMITED"
	ProjectPublicationScopePrivate ProjectPublicationScope = "PRIVATE"
)

func (ProjectPublicationScope) IsValid

func (e ProjectPublicationScope) IsValid() bool

func (ProjectPublicationScope) MarshalGQL

func (e ProjectPublicationScope) MarshalGQL(w io.Writer)

func (ProjectPublicationScope) String

func (e ProjectPublicationScope) String() string

func (*ProjectPublicationScope) UnmarshalGQL

func (e *ProjectPublicationScope) UnmarshalGQL(v interface{}) error

type PublishItemInput

type PublishItemInput struct {
	ItemIds []ID `json:"itemIds"`
}

type PublishItemPayload

type PublishItemPayload struct {
	Items []*Item `json:"items"`
}

type PublishModelInput

type PublishModelInput struct {
	ModelID ID   `json:"modelId"`
	Status  bool `json:"status"`
}

type PublishModelPayload

type PublishModelPayload struct {
	ModelID ID   `json:"modelId"`
	Status  bool `json:"status"`
}

type Query

type Query struct {
}

type RegenerateIntegrationTokenInput

type RegenerateIntegrationTokenInput struct {
	IntegrationID ID `json:"integrationId"`
}

type RegeneratePublicAPITokenInput

type RegeneratePublicAPITokenInput struct {
	ProjectID ID `json:"projectId"`
}

type RemoveIntegrationFromWorkspaceInput

type RemoveIntegrationFromWorkspaceInput struct {
	WorkspaceID   ID `json:"workspaceId"`
	IntegrationID ID `json:"integrationId"`
}

type RemoveIntegrationFromWorkspacePayload

type RemoveIntegrationFromWorkspacePayload struct {
	Workspace *Workspace `json:"workspace"`
}

type RemoveMultipleMembersFromWorkspaceInput

type RemoveMultipleMembersFromWorkspaceInput struct {
	WorkspaceID ID   `json:"workspaceId"`
	UserIds     []ID `json:"userIds"`
}

type RemoveMultipleMembersFromWorkspacePayload

type RemoveMultipleMembersFromWorkspacePayload struct {
	Workspace *Workspace `json:"workspace"`
}

type RemoveMyAuthInput

type RemoveMyAuthInput struct {
	Auth string `json:"auth"`
}

type Request

type Request struct {
	ID          ID             `json:"id"`
	Items       []*RequestItem `json:"items"`
	Title       string         `json:"title"`
	Description *string        `json:"description,omitempty"`
	CreatedByID ID             `json:"createdById"`
	WorkspaceID ID             `json:"workspaceId"`
	ProjectID   ID             `json:"projectId"`
	ThreadID    ID             `json:"threadId"`
	ReviewersID []ID           `json:"reviewersId"`
	State       RequestState   `json:"state"`
	CreatedAt   time.Time      `json:"createdAt"`
	UpdatedAt   time.Time      `json:"updatedAt"`
	ApprovedAt  *time.Time     `json:"approvedAt,omitempty"`
	ClosedAt    *time.Time     `json:"closedAt,omitempty"`
	Thread      *Thread        `json:"thread,omitempty"`
	CreatedBy   *User          `json:"createdBy,omitempty"`
	Workspace   *Workspace     `json:"workspace,omitempty"`
	Project     *Project       `json:"project,omitempty"`
	Reviewers   []*User        `json:"reviewers"`
}

func ToRequest

func ToRequest(req *request.Request) *Request

func (Request) GetID

func (this Request) GetID() ID

func (Request) IsNode

func (Request) IsNode()

type RequestConnection

type RequestConnection struct {
	Edges      []*RequestEdge `json:"edges"`
	Nodes      []*Request     `json:"nodes"`
	PageInfo   *PageInfo      `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

type RequestEdge

type RequestEdge struct {
	Cursor usecasex.Cursor `json:"cursor"`
	Node   *Request        `json:"node,omitempty"`
}

type RequestItem

type RequestItem struct {
	ItemID  ID             `json:"itemId"`
	Version *string        `json:"version,omitempty"`
	Ref     *string        `json:"ref,omitempty"`
	Item    *VersionedItem `json:"item,omitempty"`
}

type RequestItemInput

type RequestItemInput struct {
	ItemID  ID      `json:"itemId"`
	Version *string `json:"version,omitempty"`
}

type RequestPayload

type RequestPayload struct {
	Request *Request `json:"request"`
}

type RequestState

type RequestState string
const (
	RequestStateDraft    RequestState = "DRAFT"
	RequestStateWaiting  RequestState = "WAITING"
	RequestStateClosed   RequestState = "CLOSED"
	RequestStateApproved RequestState = "APPROVED"
)

func ToRequestState

func ToRequestState(s request.State) RequestState

func (RequestState) IsValid

func (e RequestState) IsValid() bool

func (RequestState) MarshalGQL

func (e RequestState) MarshalGQL(w io.Writer)

func (RequestState) String

func (e RequestState) String() string

func (*RequestState) UnmarshalGQL

func (e *RequestState) UnmarshalGQL(v interface{}) error

type Resource

type Resource interface {
	IsResource()
}

func ToResource

func ToResource(r *workspacesettings.Resource) Resource

type ResourceInput

type ResourceInput struct {
	Tile    *TileResourceInput    `json:"tile,omitempty"`
	Terrain *TerrainResourceInput `json:"terrain,omitempty"`
}

type ResourceList

type ResourceList struct {
	Resources        []Resource `json:"resources"`
	SelectedResource *ID        `json:"selectedResource,omitempty"`
	Enabled          *bool      `json:"enabled,omitempty"`
}

func ToResourceList

func ToResourceList(resource *workspacesettings.ResourceList) *ResourceList

type ResourcesListInput

type ResourcesListInput struct {
	Resources        []*ResourceInput `json:"resources"`
	SelectedResource *ID              `json:"selectedResource,omitempty"`
	Enabled          *bool            `json:"enabled,omitempty"`
}

type Role

type Role string
const (
	RoleReader     Role = "READER"
	RoleWriter     Role = "WRITER"
	RoleOwner      Role = "OWNER"
	RoleMaintainer Role = "MAINTAINER"
)

func ToRole

func ToRole(r workspace.Role) Role

func (Role) IsValid

func (e Role) IsValid() bool

func (Role) MarshalGQL

func (e Role) MarshalGQL(w io.Writer)

func (Role) String

func (e Role) String() string

func (*Role) UnmarshalGQL

func (e *Role) UnmarshalGQL(v interface{}) error

type Schema

type Schema struct {
	ID           ID             `json:"id"`
	ProjectID    ID             `json:"projectId"`
	Fields       []*SchemaField `json:"fields"`
	TitleFieldID *ID            `json:"titleFieldId,omitempty"`
	TitleField   *SchemaField   `json:"titleField,omitempty"`
	Project      *Project       `json:"project"`
}

func ToSchema

func ToSchema(s *schema.Schema) *Schema

func (Schema) GetID

func (this Schema) GetID() ID

func (Schema) IsNode

func (Schema) IsNode()

type SchemaField

type SchemaField struct {
	ID           ID                      `json:"id"`
	ModelID      *ID                     `json:"modelId,omitempty"`
	GroupID      *ID                     `json:"groupId,omitempty"`
	Model        *Model                  `json:"model,omitempty"`
	Group        *Group                  `json:"group,omitempty"`
	Type         SchemaFieldType         `json:"type"`
	TypeProperty SchemaFieldTypeProperty `json:"typeProperty,omitempty"`
	Key          string                  `json:"key"`
	Title        string                  `json:"title"`
	Order        *int                    `json:"order,omitempty"`
	Description  *string                 `json:"description,omitempty"`
	Multiple     bool                    `json:"multiple"`
	Unique       bool                    `json:"unique"`
	Required     bool                    `json:"required"`
	IsTitle      bool                    `json:"isTitle"`
	CreatedAt    time.Time               `json:"createdAt"`
	UpdatedAt    time.Time               `json:"updatedAt"`
}

func ToSchemaField

func ToSchemaField(sf *schema.Field, titleField *id.FieldID) *SchemaField

type SchemaFieldAsset

type SchemaFieldAsset struct {
	DefaultValue any `json:"defaultValue,omitempty"`
}

func (SchemaFieldAsset) IsSchemaFieldTypeProperty

func (SchemaFieldAsset) IsSchemaFieldTypeProperty()

type SchemaFieldAssetInput

type SchemaFieldAssetInput struct {
	DefaultValue any `json:"defaultValue,omitempty"`
}

type SchemaFieldBool

type SchemaFieldBool struct {
	DefaultValue any `json:"defaultValue,omitempty"`
}

func (SchemaFieldBool) IsSchemaFieldTypeProperty

func (SchemaFieldBool) IsSchemaFieldTypeProperty()

type SchemaFieldBoolInput

type SchemaFieldBoolInput struct {
	DefaultValue any `json:"defaultValue,omitempty"`
}

type SchemaFieldCheckbox

type SchemaFieldCheckbox struct {
	DefaultValue any `json:"defaultValue,omitempty"`
}

func (SchemaFieldCheckbox) IsSchemaFieldTypeProperty

func (SchemaFieldCheckbox) IsSchemaFieldTypeProperty()

type SchemaFieldCheckboxInput

type SchemaFieldCheckboxInput struct {
	DefaultValue any `json:"defaultValue,omitempty"`
}

type SchemaFieldDate

type SchemaFieldDate struct {
	DefaultValue any `json:"defaultValue,omitempty"`
}

func (SchemaFieldDate) IsSchemaFieldTypeProperty

func (SchemaFieldDate) IsSchemaFieldTypeProperty()

type SchemaFieldDateInput

type SchemaFieldDateInput struct {
	DefaultValue any `json:"defaultValue,omitempty"`
}

type SchemaFieldGeometryEditor

type SchemaFieldGeometryEditor struct {
	DefaultValue   any                           `json:"defaultValue,omitempty"`
	SupportedTypes []GeometryEditorSupportedType `json:"supportedTypes"`
}

func (SchemaFieldGeometryEditor) IsSchemaFieldTypeProperty

func (SchemaFieldGeometryEditor) IsSchemaFieldTypeProperty()

type SchemaFieldGeometryEditorInput

type SchemaFieldGeometryEditorInput struct {
	DefaultValue   any                           `json:"defaultValue,omitempty"`
	SupportedTypes []GeometryEditorSupportedType `json:"supportedTypes"`
}

type SchemaFieldGeometryObject

type SchemaFieldGeometryObject struct {
	DefaultValue   any                           `json:"defaultValue,omitempty"`
	SupportedTypes []GeometryObjectSupportedType `json:"supportedTypes"`
}

func (SchemaFieldGeometryObject) IsSchemaFieldTypeProperty

func (SchemaFieldGeometryObject) IsSchemaFieldTypeProperty()

type SchemaFieldGeometryObjectInput

type SchemaFieldGeometryObjectInput struct {
	DefaultValue   any                           `json:"defaultValue,omitempty"`
	SupportedTypes []GeometryObjectSupportedType `json:"supportedTypes"`
}

type SchemaFieldGroup

type SchemaFieldGroup struct {
	GroupID ID `json:"groupId"`
}

func (SchemaFieldGroup) IsSchemaFieldTypeProperty

func (SchemaFieldGroup) IsSchemaFieldTypeProperty()

type SchemaFieldGroupInput

type SchemaFieldGroupInput struct {
	GroupID ID `json:"groupId"`
}

type SchemaFieldInteger

type SchemaFieldInteger struct {
	DefaultValue any  `json:"defaultValue,omitempty"`
	Min          *int `json:"min,omitempty"`
	Max          *int `json:"max,omitempty"`
}

func (SchemaFieldInteger) IsSchemaFieldTypeProperty

func (SchemaFieldInteger) IsSchemaFieldTypeProperty()

type SchemaFieldIntegerInput

type SchemaFieldIntegerInput struct {
	DefaultValue any  `json:"defaultValue,omitempty"`
	Min          *int `json:"min,omitempty"`
	Max          *int `json:"max,omitempty"`
}

type SchemaFieldLineStringInput

type SchemaFieldLineStringInput struct {
	DefaultValue any `json:"defaultValue,omitempty"`
}

type SchemaFieldMarkdown

type SchemaFieldMarkdown struct {
	DefaultValue any  `json:"defaultValue,omitempty"`
	MaxLength    *int `json:"maxLength,omitempty"`
}

func (SchemaFieldMarkdown) IsSchemaFieldTypeProperty

func (SchemaFieldMarkdown) IsSchemaFieldTypeProperty()

type SchemaFieldNumber

type SchemaFieldNumber struct {
	DefaultValue any      `json:"defaultValue,omitempty"`
	Min          *float64 `json:"min,omitempty"`
	Max          *float64 `json:"max,omitempty"`
}

func (SchemaFieldNumber) IsSchemaFieldTypeProperty

func (SchemaFieldNumber) IsSchemaFieldTypeProperty()

type SchemaFieldNumberInput

type SchemaFieldNumberInput struct {
	DefaultValue any      `json:"defaultValue,omitempty"`
	Min          *float64 `json:"min,omitempty"`
	Max          *float64 `json:"max,omitempty"`
}

type SchemaFieldReference

type SchemaFieldReference struct {
	ModelID              ID           `json:"modelId"`
	SchemaID             ID           `json:"schemaId"`
	Schema               *Schema      `json:"schema"`
	CorrespondingFieldID *ID          `json:"correspondingFieldId,omitempty"`
	CorrespondingField   *SchemaField `json:"correspondingField,omitempty"`
}

func (SchemaFieldReference) IsSchemaFieldTypeProperty

func (SchemaFieldReference) IsSchemaFieldTypeProperty()

type SchemaFieldReferenceInput

type SchemaFieldReferenceInput struct {
	ModelID            ID                       `json:"modelId"`
	SchemaID           ID                       `json:"schemaId"`
	CorrespondingField *CorrespondingFieldInput `json:"correspondingField,omitempty"`
}

type SchemaFieldRichText

type SchemaFieldRichText struct {
	DefaultValue any  `json:"defaultValue,omitempty"`
	MaxLength    *int `json:"maxLength,omitempty"`
}

func (SchemaFieldRichText) IsSchemaFieldTypeProperty

func (SchemaFieldRichText) IsSchemaFieldTypeProperty()

type SchemaFieldRichTextInput

type SchemaFieldRichTextInput struct {
	DefaultValue any  `json:"defaultValue,omitempty"`
	MaxLength    *int `json:"maxLength,omitempty"`
}

type SchemaFieldSelect

type SchemaFieldSelect struct {
	Values       []string `json:"values"`
	DefaultValue any      `json:"defaultValue,omitempty"`
}

func (SchemaFieldSelect) IsSchemaFieldTypeProperty

func (SchemaFieldSelect) IsSchemaFieldTypeProperty()

type SchemaFieldSelectInput

type SchemaFieldSelectInput struct {
	Values       []string `json:"values"`
	DefaultValue any      `json:"defaultValue,omitempty"`
}

type SchemaFieldTag

type SchemaFieldTag struct {
	Tags         []*SchemaFieldTagValue `json:"tags"`
	DefaultValue any                    `json:"defaultValue,omitempty"`
}

func (SchemaFieldTag) IsSchemaFieldTypeProperty

func (SchemaFieldTag) IsSchemaFieldTypeProperty()

type SchemaFieldTagColor

type SchemaFieldTagColor string
const (
	SchemaFieldTagColorMagenta  SchemaFieldTagColor = "MAGENTA"
	SchemaFieldTagColorRed      SchemaFieldTagColor = "RED"
	SchemaFieldTagColorVolcano  SchemaFieldTagColor = "VOLCANO"
	SchemaFieldTagColorOrange   SchemaFieldTagColor = "ORANGE"
	SchemaFieldTagColorGold     SchemaFieldTagColor = "GOLD"
	SchemaFieldTagColorLime     SchemaFieldTagColor = "LIME"
	SchemaFieldTagColorGreen    SchemaFieldTagColor = "GREEN"
	SchemaFieldTagColorCyan     SchemaFieldTagColor = "CYAN"
	SchemaFieldTagColorBlue     SchemaFieldTagColor = "BLUE"
	SchemaFieldTagColorGeekblue SchemaFieldTagColor = "GEEKBLUE"
	SchemaFieldTagColorPurple   SchemaFieldTagColor = "PURPLE"
)

func ToSchemaFieldTagColor

func ToSchemaFieldTagColor(c schema.TagColor) SchemaFieldTagColor

func (SchemaFieldTagColor) IsValid

func (e SchemaFieldTagColor) IsValid() bool

func (SchemaFieldTagColor) MarshalGQL

func (e SchemaFieldTagColor) MarshalGQL(w io.Writer)

func (SchemaFieldTagColor) String

func (e SchemaFieldTagColor) String() string

func (*SchemaFieldTagColor) UnmarshalGQL

func (e *SchemaFieldTagColor) UnmarshalGQL(v interface{}) error

type SchemaFieldTagInput

type SchemaFieldTagInput struct {
	Tags         []*SchemaFieldTagValueInput `json:"tags"`
	DefaultValue any                         `json:"defaultValue,omitempty"`
}

type SchemaFieldTagValue

type SchemaFieldTagValue struct {
	ID    ID                  `json:"id"`
	Name  string              `json:"name"`
	Color SchemaFieldTagColor `json:"color"`
}

type SchemaFieldTagValueInput

type SchemaFieldTagValueInput struct {
	ID    *ID                  `json:"id,omitempty"`
	Name  *string              `json:"name,omitempty"`
	Color *SchemaFieldTagColor `json:"color,omitempty"`
}

type SchemaFieldText

type SchemaFieldText struct {
	DefaultValue any  `json:"defaultValue,omitempty"`
	MaxLength    *int `json:"maxLength,omitempty"`
}

func (SchemaFieldText) IsSchemaFieldTypeProperty

func (SchemaFieldText) IsSchemaFieldTypeProperty()

type SchemaFieldTextArea

type SchemaFieldTextArea struct {
	DefaultValue any  `json:"defaultValue,omitempty"`
	MaxLength    *int `json:"maxLength,omitempty"`
}

func (SchemaFieldTextArea) IsSchemaFieldTypeProperty

func (SchemaFieldTextArea) IsSchemaFieldTypeProperty()

type SchemaFieldTextAreaInput

type SchemaFieldTextAreaInput struct {
	DefaultValue any  `json:"defaultValue,omitempty"`
	MaxLength    *int `json:"maxLength,omitempty"`
}

type SchemaFieldTextInput

type SchemaFieldTextInput struct {
	DefaultValue any  `json:"defaultValue,omitempty"`
	MaxLength    *int `json:"maxLength,omitempty"`
}

type SchemaFieldType

type SchemaFieldType string
const (
	SchemaFieldTypeText           SchemaFieldType = "Text"
	SchemaFieldTypeTextArea       SchemaFieldType = "TextArea"
	SchemaFieldTypeRichText       SchemaFieldType = "RichText"
	SchemaFieldTypeMarkdownText   SchemaFieldType = "MarkdownText"
	SchemaFieldTypeAsset          SchemaFieldType = "Asset"
	SchemaFieldTypeDate           SchemaFieldType = "Date"
	SchemaFieldTypeBool           SchemaFieldType = "Bool"
	SchemaFieldTypeSelect         SchemaFieldType = "Select"
	SchemaFieldTypeTag            SchemaFieldType = "Tag"
	SchemaFieldTypeInteger        SchemaFieldType = "Integer"
	SchemaFieldTypeNumber         SchemaFieldType = "Number"
	SchemaFieldTypeReference      SchemaFieldType = "Reference"
	SchemaFieldTypeCheckbox       SchemaFieldType = "Checkbox"
	SchemaFieldTypeURL            SchemaFieldType = "URL"
	SchemaFieldTypeGroup          SchemaFieldType = "Group"
	SchemaFieldTypeGeometryObject SchemaFieldType = "GeometryObject"
	SchemaFieldTypeGeometryEditor SchemaFieldType = "GeometryEditor"
)

func ToValueType

func ToValueType(t value.Type) SchemaFieldType

func (SchemaFieldType) IsValid

func (e SchemaFieldType) IsValid() bool

func (SchemaFieldType) MarshalGQL

func (e SchemaFieldType) MarshalGQL(w io.Writer)

func (SchemaFieldType) String

func (e SchemaFieldType) String() string

func (*SchemaFieldType) UnmarshalGQL

func (e *SchemaFieldType) UnmarshalGQL(v interface{}) error

type SchemaFieldTypeProperty

type SchemaFieldTypeProperty interface {
	IsSchemaFieldTypeProperty()
}

func ToSchemaFieldTypeProperty

func ToSchemaFieldTypeProperty(tp *schema.TypeProperty, dv *value.Multiple, multiple bool) (res SchemaFieldTypeProperty)

type SchemaFieldTypePropertyInput

type SchemaFieldTypePropertyInput struct {
	Text           *SchemaFieldTextInput           `json:"text,omitempty"`
	TextArea       *SchemaFieldTextAreaInput       `json:"textArea,omitempty"`
	RichText       *SchemaFieldRichTextInput       `json:"richText,omitempty"`
	MarkdownText   *SchemaMarkdownTextInput        `json:"markdownText,omitempty"`
	Asset          *SchemaFieldAssetInput          `json:"asset,omitempty"`
	Date           *SchemaFieldDateInput           `json:"date,omitempty"`
	Bool           *SchemaFieldBoolInput           `json:"bool,omitempty"`
	Select         *SchemaFieldSelectInput         `json:"select,omitempty"`
	Tag            *SchemaFieldTagInput            `json:"tag,omitempty"`
	Checkbox       *SchemaFieldCheckboxInput       `json:"checkbox,omitempty"`
	Integer        *SchemaFieldIntegerInput        `json:"integer,omitempty"`
	Number         *SchemaFieldNumberInput         `json:"number,omitempty"`
	Reference      *SchemaFieldReferenceInput      `json:"reference,omitempty"`
	URL            *SchemaFieldURLInput            `json:"url,omitempty"`
	Group          *SchemaFieldGroupInput          `json:"group,omitempty"`
	GeometryObject *SchemaFieldGeometryObjectInput `json:"geometryObject,omitempty"`
	GeometryEditor *SchemaFieldGeometryEditorInput `json:"geometryEditor,omitempty"`
}

type SchemaFieldURL

type SchemaFieldURL struct {
	DefaultValue any `json:"defaultValue,omitempty"`
}

func (SchemaFieldURL) IsSchemaFieldTypeProperty

func (SchemaFieldURL) IsSchemaFieldTypeProperty()

type SchemaFieldURLInput

type SchemaFieldURLInput struct {
	DefaultValue any `json:"defaultValue,omitempty"`
}

type SchemaMarkdownTextInput

type SchemaMarkdownTextInput struct {
	DefaultValue any  `json:"defaultValue,omitempty"`
	MaxLength    *int `json:"maxLength,omitempty"`
}

type SearchItemInput

type SearchItemInput struct {
	Query      *ItemQueryInput `json:"query"`
	Sort       *ItemSortInput  `json:"sort,omitempty"`
	Filter     *ConditionInput `json:"filter,omitempty"`
	Pagination *Pagination     `json:"pagination,omitempty"`
}

type Sort

type Sort struct {
	Key      string `json:"key"`
	Reverted *bool  `json:"reverted,omitempty"`
}

func (*Sort) Into

func (s *Sort) Into() *usecasex.Sort

type SortDirection

type SortDirection string
const (
	SortDirectionAsc  SortDirection = "ASC"
	SortDirectionDesc SortDirection = "DESC"
)

func ToDirection

func ToDirection(direction view.Direction) *SortDirection

func (*SortDirection) Into

func (s *SortDirection) Into() view.Direction

func (SortDirection) IsValid

func (e SortDirection) IsValid() bool

func (SortDirection) MarshalGQL

func (e SortDirection) MarshalGQL(w io.Writer)

func (SortDirection) String

func (e SortDirection) String() string

func (*SortDirection) UnmarshalGQL

func (e *SortDirection) UnmarshalGQL(v interface{}) error

type StringFieldCondition

type StringFieldCondition struct {
	FieldID  *FieldSelector `json:"fieldId"`
	Operator StringOperator `json:"operator"`
	Value    string         `json:"value"`
}

func (StringFieldCondition) IsCondition

func (StringFieldCondition) IsCondition()

type StringFieldConditionInput

type StringFieldConditionInput struct {
	FieldID  *FieldSelectorInput `json:"fieldId"`
	Operator StringOperator      `json:"operator"`
	Value    string              `json:"value"`
}

type StringOperator

type StringOperator string
const (
	StringOperatorContains      StringOperator = "CONTAINS"
	StringOperatorNotContains   StringOperator = "NOT_CONTAINS"
	StringOperatorStartsWith    StringOperator = "STARTS_WITH"
	StringOperatorEndsWith      StringOperator = "ENDS_WITH"
	StringOperatorNotStartsWith StringOperator = "NOT_STARTS_WITH"
	StringOperatorNotEndsWith   StringOperator = "NOT_ENDS_WITH"
)

func (StringOperator) Into

func (StringOperator) IsValid

func (e StringOperator) IsValid() bool

func (StringOperator) MarshalGQL

func (e StringOperator) MarshalGQL(w io.Writer)

func (StringOperator) String

func (e StringOperator) String() string

func (*StringOperator) UnmarshalGQL

func (e *StringOperator) UnmarshalGQL(v interface{}) error

type TerrainResource

type TerrainResource struct {
	ID    ID                   `json:"id"`
	Type  TerrainType          `json:"type"`
	Props *CesiumResourceProps `json:"props,omitempty"`
}

func (TerrainResource) IsResource

func (TerrainResource) IsResource()

type TerrainResourceInput

type TerrainResourceInput struct {
	ID    ID                        `json:"id"`
	Type  TerrainType               `json:"type"`
	Props *CesiumResourcePropsInput `json:"props,omitempty"`
}

type TerrainType

type TerrainType string
const (
	TerrainTypeCesiumWorldTerrain TerrainType = "CESIUM_WORLD_TERRAIN"
	TerrainTypeArcGisTerrain      TerrainType = "ARC_GIS_TERRAIN"
	TerrainTypeCesiumIon          TerrainType = "CESIUM_ION"
)

func (TerrainType) IsValid

func (e TerrainType) IsValid() bool

func (TerrainType) MarshalGQL

func (e TerrainType) MarshalGQL(w io.Writer)

func (TerrainType) String

func (e TerrainType) String() string

func (*TerrainType) UnmarshalGQL

func (e *TerrainType) UnmarshalGQL(v interface{}) error

type Theme

type Theme string
const (
	ThemeDefault Theme = "DEFAULT"
	ThemeLight   Theme = "LIGHT"
	ThemeDark    Theme = "DARK"
)

func (Theme) IsValid

func (e Theme) IsValid() bool

func (Theme) MarshalGQL

func (e Theme) MarshalGQL(w io.Writer)

func (Theme) String

func (e Theme) String() string

func (*Theme) UnmarshalGQL

func (e *Theme) UnmarshalGQL(v interface{}) error

type Thread

type Thread struct {
	ID          ID         `json:"id"`
	Workspace   *Workspace `json:"workspace,omitempty"`
	WorkspaceID ID         `json:"workspaceId"`
	Comments    []*Comment `json:"comments"`
}

func ToThread

func ToThread(th *thread.Thread) *Thread

type ThreadPayload

type ThreadPayload struct {
	Thread *Thread `json:"thread"`
}

type TileResource

type TileResource struct {
	ID    ID                `json:"id"`
	Type  TileType          `json:"type"`
	Props *URLResourceProps `json:"props,omitempty"`
}

func (TileResource) IsResource

func (TileResource) IsResource()

type TileResourceInput

type TileResourceInput struct {
	ID    ID                     `json:"id"`
	Type  TileType               `json:"type"`
	Props *URLResourcePropsInput `json:"props,omitempty"`
}

type TileType

type TileType string
const (
	TileTypeDefault             TileType = "DEFAULT"
	TileTypeLabelled            TileType = "LABELLED"
	TileTypeRoadMap             TileType = "ROAD_MAP"
	TileTypeOpenStreetMap       TileType = "OPEN_STREET_MAP"
	TileTypeEsriTopography      TileType = "ESRI_TOPOGRAPHY"
	TileTypeEarthAtNight        TileType = "EARTH_AT_NIGHT"
	TileTypeJapanGsiStandardMap TileType = "JAPAN_GSI_STANDARD_MAP"
	TileTypeURL                 TileType = "URL"
)

func ToTileType

func ToTileType(tt workspacesettings.TileType) TileType

func (TileType) IsValid

func (e TileType) IsValid() bool

func (TileType) MarshalGQL

func (e TileType) MarshalGQL(w io.Writer)

func (TileType) String

func (e TileType) String() string

func (*TileType) UnmarshalGQL

func (e *TileType) UnmarshalGQL(v interface{}) error

type TimeFieldCondition

type TimeFieldCondition struct {
	FieldID  *FieldSelector `json:"fieldId"`
	Operator TimeOperator   `json:"operator"`
	Value    time.Time      `json:"value"`
}

func (TimeFieldCondition) IsCondition

func (TimeFieldCondition) IsCondition()

type TimeFieldConditionInput

type TimeFieldConditionInput struct {
	FieldID  *FieldSelectorInput `json:"fieldId"`
	Operator TimeOperator        `json:"operator"`
	Value    time.Time           `json:"value"`
}

type TimeOperator

type TimeOperator string
const (
	TimeOperatorBefore      TimeOperator = "BEFORE"
	TimeOperatorAfter       TimeOperator = "AFTER"
	TimeOperatorBeforeOrOn  TimeOperator = "BEFORE_OR_ON"
	TimeOperatorAfterOrOn   TimeOperator = "AFTER_OR_ON"
	TimeOperatorOfThisWeek  TimeOperator = "OF_THIS_WEEK"
	TimeOperatorOfThisMonth TimeOperator = "OF_THIS_MONTH"
	TimeOperatorOfThisYear  TimeOperator = "OF_THIS_YEAR"
)

func (TimeOperator) Into

func (e TimeOperator) Into() view.TimeOperator

func (TimeOperator) IsValid

func (e TimeOperator) IsValid() bool

func (TimeOperator) MarshalGQL

func (e TimeOperator) MarshalGQL(w io.Writer)

func (TimeOperator) String

func (e TimeOperator) String() string

func (*TimeOperator) UnmarshalGQL

func (e *TimeOperator) UnmarshalGQL(v interface{}) error

type URLResourceProps

type URLResourceProps struct {
	Name  string `json:"name"`
	URL   string `json:"url"`
	Image string `json:"image"`
}

type URLResourcePropsInput

type URLResourcePropsInput struct {
	Name  string `json:"name"`
	URL   string `json:"url"`
	Image string `json:"image"`
}

type UnpublishItemInput

type UnpublishItemInput struct {
	ItemIds []ID `json:"itemIds"`
}

type UnpublishItemPayload

type UnpublishItemPayload struct {
	Items []*Item `json:"items"`
}

type UpdateAssetInput

type UpdateAssetInput struct {
	ID          ID           `json:"id"`
	PreviewType *PreviewType `json:"previewType,omitempty"`
}

type UpdateAssetPayload

type UpdateAssetPayload struct {
	Asset *Asset `json:"asset"`
}

type UpdateCommentInput

type UpdateCommentInput struct {
	ThreadID  ID     `json:"threadId"`
	CommentID ID     `json:"commentId"`
	Content   string `json:"content"`
}

type UpdateFieldInput

type UpdateFieldInput struct {
	ModelID      *ID                           `json:"modelId,omitempty"`
	GroupID      *ID                           `json:"groupId,omitempty"`
	FieldID      ID                            `json:"fieldId"`
	Title        *string                       `json:"title,omitempty"`
	Description  *string                       `json:"description,omitempty"`
	Order        *int                          `json:"order,omitempty"`
	Metadata     *bool                         `json:"metadata,omitempty"`
	Key          *string                       `json:"key,omitempty"`
	Required     *bool                         `json:"required,omitempty"`
	Unique       *bool                         `json:"unique,omitempty"`
	Multiple     *bool                         `json:"multiple,omitempty"`
	IsTitle      *bool                         `json:"isTitle,omitempty"`
	TypeProperty *SchemaFieldTypePropertyInput `json:"typeProperty,omitempty"`
}

type UpdateGroupInput

type UpdateGroupInput struct {
	GroupID     ID      `json:"groupId"`
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	Key         *string `json:"key,omitempty"`
}

type UpdateGroupsOrderInput

type UpdateGroupsOrderInput struct {
	GroupIds []ID `json:"groupIds"`
}

type UpdateIntegrationInput

type UpdateIntegrationInput struct {
	IntegrationID ID       `json:"integrationId"`
	Name          *string  `json:"name,omitempty"`
	Description   *string  `json:"description,omitempty"`
	LogoURL       *url.URL `json:"logoUrl,omitempty"`
}

type UpdateIntegrationOfWorkspaceInput

type UpdateIntegrationOfWorkspaceInput struct {
	WorkspaceID   ID   `json:"workspaceId"`
	IntegrationID ID   `json:"integrationId"`
	Role          Role `json:"role"`
}

type UpdateItemInput

type UpdateItemInput struct {
	ItemID     ID                `json:"itemId"`
	MetadataID *ID               `json:"metadataId,omitempty"`
	OriginalID *ID               `json:"originalId,omitempty"`
	Fields     []*ItemFieldInput `json:"fields"`
	Version    *string           `json:"version,omitempty"`
}

type UpdateMeInput

type UpdateMeInput struct {
	Name                 *string       `json:"name,omitempty"`
	Email                *string       `json:"email,omitempty"`
	Lang                 *language.Tag `json:"lang,omitempty"`
	Theme                *Theme        `json:"theme,omitempty"`
	Password             *string       `json:"password,omitempty"`
	PasswordConfirmation *string       `json:"passwordConfirmation,omitempty"`
}

type UpdateMePayload

type UpdateMePayload struct {
	Me *Me `json:"me"`
}

type UpdateMemberOfWorkspacePayload

type UpdateMemberOfWorkspacePayload struct {
	Workspace *Workspace `json:"workspace"`
}

type UpdateModelInput

type UpdateModelInput struct {
	ModelID     ID      `json:"modelId"`
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	Key         *string `json:"key,omitempty"`
	Public      bool    `json:"public"`
}

type UpdateModelsOrderInput

type UpdateModelsOrderInput struct {
	ModelIds []ID `json:"modelIds"`
}

type UpdateProjectInput

type UpdateProjectInput struct {
	ProjectID    ID                             `json:"projectId"`
	Name         *string                        `json:"name,omitempty"`
	Description  *string                        `json:"description,omitempty"`
	Alias        *string                        `json:"alias,omitempty"`
	Publication  *UpdateProjectPublicationInput `json:"publication,omitempty"`
	RequestRoles []Role                         `json:"requestRoles,omitempty"`
}

type UpdateProjectPublicationInput

type UpdateProjectPublicationInput struct {
	Scope       *ProjectPublicationScope `json:"scope,omitempty"`
	AssetPublic *bool                    `json:"assetPublic,omitempty"`
}

type UpdateRequestInput

type UpdateRequestInput struct {
	RequestID   ID                  `json:"requestId"`
	Title       *string             `json:"title,omitempty"`
	Description *string             `json:"description,omitempty"`
	State       *RequestState       `json:"state,omitempty"`
	ReviewersID []ID                `json:"reviewersId,omitempty"`
	Items       []*RequestItemInput `json:"items,omitempty"`
}

type UpdateUserOfWorkspaceInput

type UpdateUserOfWorkspaceInput struct {
	WorkspaceID ID   `json:"workspaceId"`
	UserID      ID   `json:"userId"`
	Role        Role `json:"role"`
}

type UpdateViewInput

type UpdateViewInput struct {
	ViewID  ID                      `json:"viewId"`
	Name    *string                 `json:"name,omitempty"`
	Sort    *ItemSortInput          `json:"sort,omitempty"`
	Filter  *ConditionInput         `json:"filter,omitempty"`
	Columns []*ColumnSelectionInput `json:"columns,omitempty"`
}

type UpdateViewsOrderInput

type UpdateViewsOrderInput struct {
	ViewIds []ID `json:"viewIds"`
}

type UpdateWebhookInput

type UpdateWebhookInput struct {
	IntegrationID ID                   `json:"integrationId"`
	WebhookID     ID                   `json:"webhookId"`
	Name          *string              `json:"name,omitempty"`
	URL           *url.URL             `json:"url,omitempty"`
	Active        *bool                `json:"active,omitempty"`
	Trigger       *WebhookTriggerInput `json:"trigger,omitempty"`
	Secret        *string              `json:"secret,omitempty"`
}

type UpdateWorkspaceInput

type UpdateWorkspaceInput struct {
	WorkspaceID ID     `json:"workspaceId"`
	Name        string `json:"name"`
}

type UpdateWorkspacePayload

type UpdateWorkspacePayload struct {
	Workspace *Workspace `json:"workspace"`
}

type UpdateWorkspaceSettingsInput

type UpdateWorkspaceSettingsInput struct {
	ID       ID                  `json:"id"`
	Tiles    *ResourcesListInput `json:"tiles,omitempty"`
	Terrains *ResourcesListInput `json:"terrains,omitempty"`
}

type UpdateWorkspaceSettingsPayload

type UpdateWorkspaceSettingsPayload struct {
	WorkspaceSettings *WorkspaceSettings `json:"workspaceSettings"`
}

type User

type User struct {
	ID    ID      `json:"id"`
	Name  string  `json:"name"`
	Email string  `json:"email"`
	Host  *string `json:"host,omitempty"`
}

func SimpleToUser

func SimpleToUser(u *user.Simple) *User

func ToUser

func ToUser(u *user.User) *User

func (User) GetID

func (this User) GetID() ID

func (User) IsNode

func (User) IsNode()

func (User) IsOperator

func (User) IsOperator()

type VersionedItem

type VersionedItem struct {
	Version string   `json:"version"`
	Parents []string `json:"parents,omitempty"`
	Refs    []string `json:"refs"`
	Value   *Item    `json:"value"`
}

func ToVersionedItem

func ToVersionedItem(v *version.Value[*item.Item], s *schema.Schema, gsList schema.List) *VersionedItem

type View

type View struct {
	ID        ID        `json:"id"`
	Name      string    `json:"name"`
	ModelID   ID        `json:"modelId"`
	ProjectID ID        `json:"projectId"`
	Sort      *ItemSort `json:"sort,omitempty"`
	Filter    Condition `json:"filter,omitempty"`
	Columns   []*Column `json:"columns,omitempty"`
	Order     int       `json:"order"`
}

func ToView

func ToView(i *view.View) *View

func (View) GetID

func (this View) GetID() ID

func (View) IsNode

func (View) IsNode()

type ViewPayload

type ViewPayload struct {
	View *View `json:"view"`
}

type ViewsPayload

type ViewsPayload struct {
	Views []*View `json:"views"`
}

type Webhook

type Webhook struct {
	ID        ID              `json:"id"`
	Name      string          `json:"name"`
	URL       url.URL         `json:"url"`
	Active    bool            `json:"active"`
	Trigger   *WebhookTrigger `json:"trigger"`
	Secret    string          `json:"secret"`
	CreatedAt time.Time       `json:"createdAt"`
	UpdatedAt time.Time       `json:"updatedAt"`
}

func ToWebhook

func ToWebhook(w *integration.Webhook) *Webhook

func ToWebhooks

func ToWebhooks(ws []*integration.Webhook) []*Webhook

type WebhookPayload

type WebhookPayload struct {
	Webhook *Webhook `json:"webhook"`
}

type WebhookTrigger

type WebhookTrigger struct {
	OnItemCreate      *bool `json:"onItemCreate,omitempty"`
	OnItemUpdate      *bool `json:"onItemUpdate,omitempty"`
	OnItemDelete      *bool `json:"onItemDelete,omitempty"`
	OnItemPublish     *bool `json:"onItemPublish,omitempty"`
	OnItemUnPublish   *bool `json:"onItemUnPublish,omitempty"`
	OnAssetUpload     *bool `json:"onAssetUpload,omitempty"`
	OnAssetDecompress *bool `json:"onAssetDecompress,omitempty"`
	OnAssetDelete     *bool `json:"onAssetDelete,omitempty"`
}

type WebhookTriggerInput

type WebhookTriggerInput struct {
	OnItemCreate      *bool `json:"onItemCreate,omitempty"`
	OnItemUpdate      *bool `json:"onItemUpdate,omitempty"`
	OnItemDelete      *bool `json:"onItemDelete,omitempty"`
	OnItemPublish     *bool `json:"onItemPublish,omitempty"`
	OnItemUnPublish   *bool `json:"onItemUnPublish,omitempty"`
	OnAssetUpload     *bool `json:"onAssetUpload,omitempty"`
	OnAssetDecompress *bool `json:"onAssetDecompress,omitempty"`
	OnAssetDelete     *bool `json:"onAssetDelete,omitempty"`
}

type Workspace

type Workspace struct {
	ID       ID                `json:"id"`
	Name     string            `json:"name"`
	Members  []WorkspaceMember `json:"members"`
	Personal bool              `json:"personal"`
}

func ToWorkspace

func ToWorkspace(t *workspace.Workspace) *Workspace

func (Workspace) GetID

func (this Workspace) GetID() ID

func (Workspace) IsNode

func (Workspace) IsNode()

type WorkspaceIntegrationMember

type WorkspaceIntegrationMember struct {
	IntegrationID ID           `json:"integrationId"`
	Role          Role         `json:"role"`
	Active        bool         `json:"active"`
	InvitedByID   ID           `json:"invitedById"`
	InvitedBy     *User        `json:"invitedBy,omitempty"`
	Integration   *Integration `json:"integration,omitempty"`
}

func (WorkspaceIntegrationMember) IsWorkspaceMember

func (WorkspaceIntegrationMember) IsWorkspaceMember()

type WorkspaceMember

type WorkspaceMember interface {
	IsWorkspaceMember()
}

type WorkspaceSettings

type WorkspaceSettings struct {
	ID       ID            `json:"id"`
	Tiles    *ResourceList `json:"tiles,omitempty"`
	Terrains *ResourceList `json:"terrains,omitempty"`
}

func (WorkspaceSettings) GetID

func (this WorkspaceSettings) GetID() ID

func (WorkspaceSettings) IsNode

func (WorkspaceSettings) IsNode()

type WorkspaceUserMember

type WorkspaceUserMember struct {
	UserID ID      `json:"userId"`
	Role   Role    `json:"role"`
	Host   *string `json:"host,omitempty"`
	User   *User   `json:"user,omitempty"`
}

func (WorkspaceUserMember) IsWorkspaceMember

func (WorkspaceUserMember) IsWorkspaceMember()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL