gqlmodel

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllVisualizer = []Visualizer{
	VisualizerCesium,
}

Functions

func AssetSortTypeFrom added in v0.6.0

func AssetSortTypeFrom(ast *AssetSortType) *asset.SortType

func BoolToRef

func BoolToRef(b bool) *bool

func FromFile

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

func FromListOperation

func FromListOperation(op ListOperation) interfaces.ListOperation

func FromPointer

func FromPointer(schemaItem *id.PropertySchemaGroupID, item *ID, field *id.PropertyFieldID) *property.Pointer
func FromPropertyFieldLink(datasetSchema, ds, fields []ID) (*property.Links, error)

func FromPropertyValueAndType

func FromPropertyValueAndType(v interface{}, t ValueType) *property.Value

func FromRole

func FromRole(r Role) user.Role

func FromSceneWidgetAreaType

func FromSceneWidgetAreaType(t WidgetAreaType) scene.WidgetAreaType

func FromSceneWidgetLocation

func FromSceneWidgetLocation(l *WidgetLocationInput) *scene.WidgetLocation

func FromSceneWidgetSectionType

func FromSceneWidgetSectionType(t WidgetSectionType) scene.WidgetSectionType

func FromSceneWidgetZoneType

func FromSceneWidgetZoneType(t WidgetZoneType) scene.WidgetZoneType

func FromValueType added in v0.3.0

func FromValueType(t ValueType) value.Type

func FromWidgetAlignType

func FromWidgetAlignType(a *WidgetAreaAlign) *scene.WidgetAlignType

func MarshalCursor

func MarshalCursor(t usecase.Cursor) graphql.Marshaler

func MarshalDatasetFieldID added in v0.6.1

func MarshalDatasetFieldID(t id.DatasetFieldID) graphql.Marshaler

func MarshalLang

func MarshalLang(t language.Tag) graphql.Marshaler

func MarshalMap

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

func MarshalPluginExtensionID

func MarshalPluginExtensionID(t id.PluginExtensionID) graphql.Marshaler

func MarshalPluginID

func MarshalPluginID(t id.PluginID) graphql.Marshaler

func MarshalPropertyFieldID added in v0.6.1

func MarshalPropertyFieldID(t id.PropertyFieldID) graphql.Marshaler

func MarshalPropertySchemaGroupID added in v0.2.0

func MarshalPropertySchemaGroupID(t id.PropertySchemaGroupID) graphql.Marshaler

func MarshalPropertySchemaID

func MarshalPropertySchemaID(t id.PropertySchemaID) graphql.Marshaler

func MarshalURL

func MarshalURL(t url.URL) graphql.Marshaler

func RefToIndex

func RefToIndex(i *int) int

func RefToString

func RefToString(s *string) string

func ToDatasetValue

func ToDatasetValue(v *dataset.Value) *interface{}

func ToID added in v0.6.1

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

func ToID2 added in v0.6.1

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

func ToID3 added in v0.6.1

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 added in v0.6.1

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

func ToPagination added in v0.6.0

func ToPagination(pagination *Pagination) *usecase.Pagination

func ToPluginID added in v0.6.1

func ToPluginID(a ID) (id.PluginID, error)

func ToPluginID2 added in v0.6.1

func ToPluginID2(a, b ID) (ai id.PluginID, bi id.PluginID, err error)

func ToPluginIDRef added in v0.6.1

func ToPluginIDRef(a *ID) *id.PluginID

func ToPropertyLatLng

func ToPropertyLatLng(lat, lng *float64) *property.LatLng

func ToPropertySchemaID added in v0.6.1

func ToPropertySchemaID(a ID) (id.PropertySchemaID, error)

func ToPropertySchemaIDRef added in v0.6.1

func ToPropertySchemaIDRef(a *ID) *id.PropertySchemaID

func ToPropertyValue

func ToPropertyValue(v *property.Value) *interface{}

func ToStringIDRef added in v0.6.1

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

func ToTheme

func ToTheme(t *Theme) *user.Theme

func UnmarshalCursor

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

func UnmarshalDatasetFieldID added in v0.6.1

func UnmarshalDatasetFieldID(v interface{}) (id.DatasetFieldID, error)

func UnmarshalLang

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

func UnmarshalMap

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

func UnmarshalPluginExtensionID

func UnmarshalPluginExtensionID(v interface{}) (id.PluginExtensionID, error)

func UnmarshalPluginID

func UnmarshalPluginID(v interface{}) (id.PluginID, error)

func UnmarshalPropertyFieldID added in v0.6.1

func UnmarshalPropertyFieldID(v interface{}) (id.PropertyFieldID, error)

func UnmarshalPropertySchemaGroupID added in v0.2.0

func UnmarshalPropertySchemaGroupID(v interface{}) (id.PropertySchemaGroupID, error)

func UnmarshalPropertySchemaID

func UnmarshalPropertySchemaID(v interface{}) (id.PropertySchemaID, error)

func UnmarshalURL

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

Types

type AddClusterInput added in v0.3.0

type AddClusterInput struct {
	SceneID ID     `json:"sceneId"`
	Name    string `json:"name"`
}

type AddClusterPayload added in v0.3.0

type AddClusterPayload struct {
	Scene   *Scene   `json:"scene"`
	Cluster *Cluster `json:"cluster"`
}

type AddDatasetSchemaInput

type AddDatasetSchemaInput struct {
	SceneID             ID     `json:"sceneId"`
	Name                string `json:"name"`
	Representativefield *ID    `json:"representativefield"`
}

type AddDatasetSchemaPayload

type AddDatasetSchemaPayload struct {
	DatasetSchema *DatasetSchema `json:"datasetSchema"`
}

type AddDynamicDatasetInput

type AddDynamicDatasetInput struct {
	DatasetSchemaID ID       `json:"datasetSchemaId"`
	Author          string   `json:"author"`
	Content         string   `json:"content"`
	Lat             *float64 `json:"lat"`
	Lng             *float64 `json:"lng"`
	Target          *string  `json:"target"`
}

type AddDynamicDatasetPayload

type AddDynamicDatasetPayload struct {
	DatasetSchema *DatasetSchema `json:"datasetSchema"`
	Dataset       *Dataset       `json:"dataset"`
}

type AddDynamicDatasetSchemaInput

type AddDynamicDatasetSchemaInput struct {
	SceneID ID `json:"sceneId"`
}

type AddDynamicDatasetSchemaPayload

type AddDynamicDatasetSchemaPayload struct {
	DatasetSchema *DatasetSchema `json:"datasetSchema"`
}

type AddInfoboxFieldInput

type AddInfoboxFieldInput struct {
	LayerID     ID   `json:"layerId"`
	PluginID    ID   `json:"pluginId"`
	ExtensionID ID   `json:"extensionId"`
	Index       *int `json:"index"`
}

type AddInfoboxFieldPayload

type AddInfoboxFieldPayload struct {
	InfoboxField *InfoboxField `json:"infoboxField"`
	Layer        Layer         `json:"layer"`
}

type AddLayerGroupInput

type AddLayerGroupInput struct {
	ParentLayerID         ID      `json:"parentLayerId"`
	PluginID              *ID     `json:"pluginId"`
	ExtensionID           *ID     `json:"extensionId"`
	Index                 *int    `json:"index"`
	LinkedDatasetSchemaID *ID     `json:"linkedDatasetSchemaID"`
	Name                  *string `json:"name"`
	RepresentativeFieldID *ID     `json:"representativeFieldId"`
}

type AddLayerGroupPayload

type AddLayerGroupPayload struct {
	Layer       *LayerGroup `json:"layer"`
	ParentLayer *LayerGroup `json:"parentLayer"`
	Index       *int        `json:"index"`
}

type AddLayerItemInput

type AddLayerItemInput struct {
	ParentLayerID ID       `json:"parentLayerId"`
	PluginID      ID       `json:"pluginId"`
	ExtensionID   ID       `json:"extensionId"`
	Index         *int     `json:"index"`
	Name          *string  `json:"name"`
	Lat           *float64 `json:"lat"`
	Lng           *float64 `json:"lng"`
}

type AddLayerItemPayload

type AddLayerItemPayload struct {
	Layer       *LayerItem  `json:"layer"`
	ParentLayer *LayerGroup `json:"parentLayer"`
	Index       *int        `json:"index"`
}

type AddMemberToTeamInput

type AddMemberToTeamInput struct {
	TeamID ID   `json:"teamId"`
	UserID ID   `json:"userId"`
	Role   Role `json:"role"`
}

type AddMemberToTeamPayload

type AddMemberToTeamPayload struct {
	Team *Team `json:"team"`
}

type AddPropertyItemInput

type AddPropertyItemInput struct {
	PropertyID     ID          `json:"propertyId"`
	SchemaGroupID  ID          `json:"schemaGroupId"`
	Index          *int        `json:"index"`
	NameFieldValue interface{} `json:"nameFieldValue"`
	NameFieldType  *ValueType  `json:"nameFieldType"`
}

type AddWidgetInput

type AddWidgetInput struct {
	SceneID     ID `json:"sceneId"`
	PluginID    ID `json:"pluginId"`
	ExtensionID ID `json:"extensionId"`
}

type AddWidgetPayload

type AddWidgetPayload struct {
	Scene       *Scene       `json:"scene"`
	SceneWidget *SceneWidget `json:"sceneWidget"`
}

type Asset

type Asset struct {
	ID          ID        `json:"id"`
	CreatedAt   time.Time `json:"createdAt"`
	TeamID      ID        `json:"teamId"`
	Name        string    `json:"name"`
	Size        int64     `json:"size"`
	URL         string    `json:"url"`
	ContentType string    `json:"contentType"`
	Team        *Team     `json:"team"`
}

func ToAsset

func ToAsset(a *asset.Asset) *Asset

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 usecase.Cursor `json:"cursor"`
	Node   *Asset         `json:"node"`
}

type AssetSortType added in v0.6.0

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

func (AssetSortType) IsValid added in v0.6.0

func (e AssetSortType) IsValid() bool

func (AssetSortType) MarshalGQL added in v0.6.0

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

func (AssetSortType) String added in v0.6.0

func (e AssetSortType) String() string

func (*AssetSortType) UnmarshalGQL added in v0.6.0

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

type AttachTagItemToGroupInput

type AttachTagItemToGroupInput struct {
	ItemID  ID `json:"itemID"`
	GroupID ID `json:"groupID"`
}

type AttachTagItemToGroupPayload

type AttachTagItemToGroupPayload struct {
	Tag *TagGroup `json:"tag"`
}

type AttachTagToLayerInput

type AttachTagToLayerInput struct {
	TagID   ID `json:"tagID"`
	LayerID ID `json:"layerID"`
}

type AttachTagToLayerPayload

type AttachTagToLayerPayload struct {
	Layer Layer `json:"layer"`
}

type Camera

type Camera struct {
	Lat      float64 `json:"lat"`
	Lng      float64 `json:"lng"`
	Altitude float64 `json:"altitude"`
	Heading  float64 `json:"heading"`
	Pitch    float64 `json:"pitch"`
	Roll     float64 `json:"roll"`
	Fov      float64 `json:"fov"`
}

type Cluster added in v0.3.0

type Cluster struct {
	ID         ID        `json:"id"`
	Name       string    `json:"name"`
	PropertyID ID        `json:"propertyId"`
	Property   *Property `json:"property"`
}

func ToCluster added in v0.3.0

func ToCluster(c *scene.Cluster) *Cluster

type CreateAssetInput

type CreateAssetInput struct {
	TeamID ID             `json:"teamId"`
	File   graphql.Upload `json:"file"`
}

type CreateAssetPayload

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

type CreateInfoboxInput

type CreateInfoboxInput struct {
	LayerID ID `json:"layerId"`
}

type CreateInfoboxPayload

type CreateInfoboxPayload struct {
	Layer Layer `json:"layer"`
}

type CreateProjectInput

type CreateProjectInput struct {
	TeamID      ID         `json:"teamId"`
	Visualizer  Visualizer `json:"visualizer"`
	Name        *string    `json:"name"`
	Description *string    `json:"description"`
	ImageURL    *url.URL   `json:"imageUrl"`
	Alias       *string    `json:"alias"`
	Archived    *bool      `json:"archived"`
}

type CreateSceneInput

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

type CreateScenePayload

type CreateScenePayload struct {
	Scene *Scene `json:"scene"`
}

type CreateTagGroupInput

type CreateTagGroupInput struct {
	SceneID ID     `json:"sceneId"`
	Label   string `json:"label"`
	Tags    []ID   `json:"tags"`
}

type CreateTagGroupPayload

type CreateTagGroupPayload struct {
	Tag *TagGroup `json:"tag"`
}

type CreateTagItemInput

type CreateTagItemInput struct {
	SceneID               ID     `json:"sceneId"`
	Label                 string `json:"label"`
	Parent                *ID    `json:"parent"`
	LinkedDatasetSchemaID *ID    `json:"linkedDatasetSchemaID"`
	LinkedDatasetID       *ID    `json:"linkedDatasetID"`
	LinkedDatasetField    *ID    `json:"linkedDatasetField"`
}

type CreateTagItemPayload

type CreateTagItemPayload struct {
	Tag    *TagItem  `json:"tag"`
	Parent *TagGroup `json:"parent"`
}

type CreateTeamInput

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

type CreateTeamPayload

type CreateTeamPayload struct {
	Team *Team `json:"team"`
}

type Dataset

type Dataset struct {
	ID       ID              `json:"id"`
	Source   string          `json:"source"`
	SchemaID ID              `json:"schemaId"`
	Fields   []*DatasetField `json:"fields"`
	Schema   *DatasetSchema  `json:"schema"`
	Name     *string         `json:"name"`
}

func ToDataset

func ToDataset(ds *dataset.Dataset) *Dataset

func (*Dataset) Field

func (d *Dataset) Field(id ID) *DatasetField

func (Dataset) IsNode

func (Dataset) IsNode()

type DatasetConnection

type DatasetConnection struct {
	Edges      []*DatasetEdge `json:"edges"`
	Nodes      []*Dataset     `json:"nodes"`
	PageInfo   *PageInfo      `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

type DatasetEdge

type DatasetEdge struct {
	Cursor usecase.Cursor `json:"cursor"`
	Node   *Dataset       `json:"node"`
}

type DatasetField

type DatasetField struct {
	FieldID  ID                  `json:"fieldId"`
	SchemaID ID                  `json:"schemaId"`
	Source   string              `json:"source"`
	Type     ValueType           `json:"type"`
	Value    interface{}         `json:"value"`
	Schema   *DatasetSchema      `json:"schema"`
	Field    *DatasetSchemaField `json:"field"`
	ValueRef *Dataset            `json:"valueRef"`
}

func ToDatasetField

func ToDatasetField(f *dataset.Field, parent *dataset.Dataset) *DatasetField

type DatasetSchema

type DatasetSchema struct {
	ID                    ID                    `json:"id"`
	Source                string                `json:"source"`
	Name                  string                `json:"name"`
	SceneID               ID                    `json:"sceneId"`
	Fields                []*DatasetSchemaField `json:"fields"`
	TotalCount            int                   `json:"totalCount"`
	RepresentativeFieldID *ID                   `json:"representativeFieldId"`
	Dynamic               *bool                 `json:"dynamic"`
	Datasets              *DatasetConnection    `json:"datasets"`
	Scene                 *Scene                `json:"scene"`
	RepresentativeField   *DatasetSchemaField   `json:"representativeField"`
}

func ToDatasetSchema

func ToDatasetSchema(ds *dataset.Schema) *DatasetSchema

func (*DatasetSchema) Field

func (d *DatasetSchema) Field(id ID) *DatasetSchemaField

func (DatasetSchema) IsNode

func (DatasetSchema) IsNode()

type DatasetSchemaConnection

type DatasetSchemaConnection struct {
	Edges      []*DatasetSchemaEdge `json:"edges"`
	Nodes      []*DatasetSchema     `json:"nodes"`
	PageInfo   *PageInfo            `json:"pageInfo"`
	TotalCount int                  `json:"totalCount"`
}

type DatasetSchemaEdge

type DatasetSchemaEdge struct {
	Cursor usecase.Cursor `json:"cursor"`
	Node   *DatasetSchema `json:"node"`
}

type DatasetSchemaField

type DatasetSchemaField struct {
	ID       ID             `json:"id"`
	Source   string         `json:"source"`
	Name     string         `json:"name"`
	Type     ValueType      `json:"type"`
	SchemaID ID             `json:"schemaId"`
	RefID    *ID            `json:"refId"`
	Schema   *DatasetSchema `json:"schema"`
	Ref      *DatasetSchema `json:"ref"`
}

func (DatasetSchemaField) IsNode

func (DatasetSchemaField) IsNode()

type DeleteMeInput

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

type DeleteMePayload

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

type DeleteProjectInput

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

type DeleteProjectPayload

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

type DeleteTeamInput

type DeleteTeamInput struct {
	TeamID ID `json:"teamId"`
}

type DeleteTeamPayload

type DeleteTeamPayload struct {
	TeamID ID `json:"teamId"`
}

type DetachTagFromLayerInput

type DetachTagFromLayerInput struct {
	TagID   ID `json:"tagID"`
	LayerID ID `json:"layerID"`
}

type DetachTagFromLayerPayload

type DetachTagFromLayerPayload struct {
	Layer Layer `json:"layer"`
}

type DetachTagItemFromGroupInput

type DetachTagItemFromGroupInput struct {
	ItemID  ID `json:"itemID"`
	GroupID ID `json:"groupID"`
}

type DetachTagItemFromGroupPayload

type DetachTagItemFromGroupPayload struct {
	Tag *TagGroup `json:"tag"`
}

type ID added in v0.6.1

type ID string

func IDFrom added in v0.6.1

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

func IDFromPluginID added in v0.6.1

func IDFromPluginID(i id.PluginID) ID

func IDFromPluginIDRef added in v0.6.1

func IDFromPluginIDRef(i *id.PluginID) *ID

func IDFromPropertySchemaID added in v0.6.1

func IDFromPropertySchemaID(i id.PropertySchemaID) ID

func IDFromPropertySchemaIDRef added in v0.6.1

func IDFromPropertySchemaIDRef(i *id.PropertySchemaID) *ID

func IDFromRef added in v0.6.1

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

func IDFromStringRef added in v0.6.1

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

type ImportDatasetFromGoogleSheetInput

type ImportDatasetFromGoogleSheetInput struct {
	AccessToken     string `json:"accessToken"`
	FileID          string `json:"fileId"`
	SheetName       string `json:"sheetName"`
	SceneID         ID     `json:"sceneId"`
	DatasetSchemaID *ID    `json:"datasetSchemaId"`
}

type ImportDatasetInput

type ImportDatasetInput struct {
	File            graphql.Upload `json:"file"`
	SceneID         ID             `json:"sceneId"`
	DatasetSchemaID *ID            `json:"datasetSchemaId"`
}

type ImportDatasetPayload

type ImportDatasetPayload struct {
	DatasetSchema *DatasetSchema `json:"datasetSchema"`
}

type ImportLayerInput

type ImportLayerInput struct {
	LayerID ID                  `json:"layerId"`
	File    graphql.Upload      `json:"file"`
	Format  LayerEncodingFormat `json:"format"`
}

type ImportLayerPayload

type ImportLayerPayload struct {
	Layers      []Layer     `json:"layers"`
	ParentLayer *LayerGroup `json:"parentLayer"`
}

type Infobox

type Infobox struct {
	SceneID         ID              `json:"sceneId"`
	LayerID         ID              `json:"layerId"`
	PropertyID      ID              `json:"propertyId"`
	Fields          []*InfoboxField `json:"fields"`
	LinkedDatasetID *ID             `json:"linkedDatasetId"`
	Layer           Layer           `json:"layer"`
	Property        *Property       `json:"property"`
	LinkedDataset   *Dataset        `json:"linkedDataset"`
	Merged          *MergedInfobox  `json:"merged"`
	Scene           *Scene          `json:"scene"`
}

func ToInfobox

func ToInfobox(ib *layer.Infobox, parent id.LayerID, parentSceneID id.SceneID, parentDatasetID *id.DatasetID) *Infobox

func (*Infobox) Field

func (d *Infobox) Field(id ID) *InfoboxField

type InfoboxField

type InfoboxField struct {
	ID              ID                  `json:"id"`
	SceneID         ID                  `json:"sceneId"`
	LayerID         ID                  `json:"layerId"`
	PropertyID      ID                  `json:"propertyId"`
	PluginID        ID                  `json:"pluginId"`
	ExtensionID     ID                  `json:"extensionId"`
	LinkedDatasetID *ID                 `json:"linkedDatasetId"`
	Layer           Layer               `json:"layer"`
	Infobox         *Infobox            `json:"infobox"`
	Property        *Property           `json:"property"`
	Plugin          *Plugin             `json:"plugin"`
	Extension       *PluginExtension    `json:"extension"`
	LinkedDataset   *Dataset            `json:"linkedDataset"`
	Merged          *MergedInfoboxField `json:"merged"`
	Scene           *Scene              `json:"scene"`
	ScenePlugin     *ScenePlugin        `json:"scenePlugin"`
}

func ToInfoboxField

func ToInfoboxField(ibf *layer.InfoboxField, parentSceneID id.SceneID, parentDatasetID *id.DatasetID) *InfoboxField

type InstallPluginInput

type InstallPluginInput struct {
	SceneID  ID `json:"sceneId"`
	PluginID ID `json:"pluginId"`
}

type InstallPluginPayload

type InstallPluginPayload struct {
	Scene       *Scene       `json:"scene"`
	ScenePlugin *ScenePlugin `json:"scenePlugin"`
}

type LatLng

type LatLng struct {
	Lat float64 `json:"lat"`
	Lng float64 `json:"lng"`
}

type LatLngHeight

type LatLngHeight struct {
	Lat    float64 `json:"lat"`
	Lng    float64 `json:"lng"`
	Height float64 `json:"height"`
}

type Layer

type Layer interface {
	IsLayer()
}

func AttachParentLayer

func AttachParentLayer(layers []*Layer, parent ID) []Layer

func ToLayer

func ToLayer(l layer.Layer, parent *id.LayerID) Layer

func ToLayers

func ToLayers(layers layer.List, parent *id.LayerID) []Layer

type LayerEncodingFormat

type LayerEncodingFormat string
const (
	LayerEncodingFormatKml     LayerEncodingFormat = "KML"
	LayerEncodingFormatCzml    LayerEncodingFormat = "CZML"
	LayerEncodingFormatGeojson LayerEncodingFormat = "GEOJSON"
	LayerEncodingFormatShape   LayerEncodingFormat = "SHAPE"
	LayerEncodingFormatReearth LayerEncodingFormat = "REEARTH"
)

func (LayerEncodingFormat) IsValid

func (e LayerEncodingFormat) IsValid() bool

func (LayerEncodingFormat) MarshalGQL

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

func (LayerEncodingFormat) String

func (e LayerEncodingFormat) String() string

func (*LayerEncodingFormat) UnmarshalGQL

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

type LayerGroup

type LayerGroup struct {
	ID                    ID               `json:"id"`
	SceneID               ID               `json:"sceneId"`
	Name                  string           `json:"name"`
	IsVisible             bool             `json:"isVisible"`
	PropertyID            *ID              `json:"propertyId"`
	PluginID              *ID              `json:"pluginId"`
	ExtensionID           *ID              `json:"extensionId"`
	Infobox               *Infobox         `json:"infobox"`
	ParentID              *ID              `json:"parentId"`
	LinkedDatasetSchemaID *ID              `json:"linkedDatasetSchemaId"`
	Root                  bool             `json:"root"`
	LayerIds              []ID             `json:"layerIds"`
	Tags                  []LayerTag       `json:"tags"`
	Parent                *LayerGroup      `json:"parent"`
	Property              *Property        `json:"property"`
	Plugin                *Plugin          `json:"plugin"`
	Extension             *PluginExtension `json:"extension"`
	LinkedDatasetSchema   *DatasetSchema   `json:"linkedDatasetSchema"`
	Layers                []Layer          `json:"layers"`
	Scene                 *Scene           `json:"scene"`
	ScenePlugin           *ScenePlugin     `json:"scenePlugin"`
}

func ToLayerGroup

func ToLayerGroup(l *layer.Group, parent *id.LayerID) *LayerGroup

func (LayerGroup) IsLayer

func (LayerGroup) IsLayer()

func (LayerGroup) IsNode

func (LayerGroup) IsNode()

type LayerItem

type LayerItem struct {
	ID              ID               `json:"id"`
	SceneID         ID               `json:"sceneId"`
	Name            string           `json:"name"`
	IsVisible       bool             `json:"isVisible"`
	PropertyID      *ID              `json:"propertyId"`
	PluginID        *ID              `json:"pluginId"`
	ExtensionID     *ID              `json:"extensionId"`
	Infobox         *Infobox         `json:"infobox"`
	ParentID        *ID              `json:"parentId"`
	LinkedDatasetID *ID              `json:"linkedDatasetId"`
	Tags            []LayerTag       `json:"tags"`
	Parent          *LayerGroup      `json:"parent"`
	Property        *Property        `json:"property"`
	Plugin          *Plugin          `json:"plugin"`
	Extension       *PluginExtension `json:"extension"`
	LinkedDataset   *Dataset         `json:"linkedDataset"`
	Merged          *MergedLayer     `json:"merged"`
	Scene           *Scene           `json:"scene"`
	ScenePlugin     *ScenePlugin     `json:"scenePlugin"`
}

func ToLayerItem

func ToLayerItem(l *layer.Item, parent *id.LayerID) *LayerItem

func (LayerItem) IsLayer

func (LayerItem) IsLayer()

func (LayerItem) IsNode

func (LayerItem) IsNode()

type LayerTag added in v0.3.0

type LayerTag interface {
	IsLayerTag()
}

func ToLayerTag added in v0.3.0

func ToLayerTag(l layer.Tag) LayerTag

func ToLayerTagList added in v0.3.0

func ToLayerTagList(t *layer.TagList, sid id.SceneID) []LayerTag

type LayerTagGroup added in v0.3.0

type LayerTagGroup struct {
	TagID    ID              `json:"tagId"`
	Children []*LayerTagItem `json:"children"`
	Tag      Tag             `json:"tag"`
}

func ToLayerTagGroup added in v0.3.0

func ToLayerTagGroup(t *layer.TagGroup) *LayerTagGroup

func (LayerTagGroup) IsLayerTag added in v0.3.0

func (LayerTagGroup) IsLayerTag()

type LayerTagItem added in v0.3.0

type LayerTagItem struct {
	TagID ID  `json:"tagId"`
	Tag   Tag `json:"tag"`
}

func ToLayerTagItem added in v0.3.0

func ToLayerTagItem(t *layer.TagItem) *LayerTagItem

func (LayerTagItem) IsLayerTag added in v0.3.0

func (LayerTagItem) IsLayerTag()

type LinkDatasetToPropertyValueInput

type LinkDatasetToPropertyValueInput struct {
	PropertyID            ID   `json:"propertyId"`
	SchemaGroupID         *ID  `json:"schemaGroupId"`
	ItemID                *ID  `json:"itemId"`
	FieldID               ID   `json:"fieldId"`
	DatasetSchemaIds      []ID `json:"datasetSchemaIds"`
	DatasetSchemaFieldIds []ID `json:"datasetSchemaFieldIds"`
	DatasetIds            []ID `json:"datasetIds"`
}

type ListOperation

type ListOperation string
const (
	ListOperationAdd    ListOperation = "ADD"
	ListOperationMove   ListOperation = "MOVE"
	ListOperationRemove ListOperation = "REMOVE"
)

func (ListOperation) IsValid

func (e ListOperation) IsValid() bool

func (ListOperation) MarshalGQL

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

func (ListOperation) String

func (e ListOperation) String() string

func (*ListOperation) UnmarshalGQL

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

type Me added in v0.6.1

type Me struct {
	ID       ID           `json:"id"`
	Name     string       `json:"name"`
	Email    string       `json:"email"`
	Lang     language.Tag `json:"lang"`
	Theme    Theme        `json:"theme"`
	MyTeamID ID           `json:"myTeamId"`
	Auths    []string     `json:"auths"`
	Teams    []*Team      `json:"teams"`
	MyTeam   *Team        `json:"myTeam"`
}

func ToMe added in v0.6.1

func ToMe(u *user.User) *Me

type MergedInfobox

type MergedInfobox struct {
	SceneID  ID                    `json:"sceneID"`
	Property *MergedProperty       `json:"property"`
	Fields   []*MergedInfoboxField `json:"fields"`
	Scene    *Scene                `json:"scene"`
}

func ToMergedInfobox

func ToMergedInfobox(ib *layer.MergedInfobox, sceneID id.SceneID) *MergedInfobox

func (*MergedInfobox) Field

func (d *MergedInfobox) Field(id ID) *MergedInfoboxField

type MergedInfoboxField

type MergedInfoboxField struct {
	OriginalID  ID               `json:"originalId"`
	SceneID     ID               `json:"sceneID"`
	PluginID    ID               `json:"pluginId"`
	ExtensionID ID               `json:"extensionId"`
	Property    *MergedProperty  `json:"property"`
	Plugin      *Plugin          `json:"plugin"`
	Extension   *PluginExtension `json:"extension"`
	Scene       *Scene           `json:"scene"`
	ScenePlugin *ScenePlugin     `json:"scenePlugin"`
}

func ToMergedInfoboxField

func ToMergedInfoboxField(ibf *layer.MergedInfoboxField, sceneID id.SceneID) *MergedInfoboxField

type MergedLayer

type MergedLayer struct {
	OriginalID ID              `json:"originalId"`
	ParentID   *ID             `json:"parentId"`
	SceneID    ID              `json:"sceneID"`
	Property   *MergedProperty `json:"property"`
	Infobox    *MergedInfobox  `json:"infobox"`
	Original   *LayerItem      `json:"original"`
	Parent     *LayerGroup     `json:"parent"`
	Scene      *Scene          `json:"scene"`
}

func ToMergedLayer

func ToMergedLayer(layer *layer.Merged) *MergedLayer

type MergedProperty

type MergedProperty struct {
	OriginalID      *ID                    `json:"originalId"`
	ParentID        *ID                    `json:"parentId"`
	SchemaID        *ID                    `json:"schemaId"`
	LinkedDatasetID *ID                    `json:"linkedDatasetId"`
	Original        *Property              `json:"original"`
	Parent          *Property              `json:"parent"`
	Schema          *PropertySchema        `json:"schema"`
	LinkedDataset   *Dataset               `json:"linkedDataset"`
	Groups          []*MergedPropertyGroup `json:"groups"`
}

func ToMergedProperty

func ToMergedProperty(m *property.Merged) *MergedProperty

func ToMergedPropertyFromMetadata

func ToMergedPropertyFromMetadata(m *property.MergedMetadata) *MergedProperty

func (*MergedProperty) GroupByOriginal

func (d *MergedProperty) GroupByOriginal(id ID) *MergedPropertyGroup

func (*MergedProperty) GroupByParent

func (d *MergedProperty) GroupByParent(id ID) *MergedPropertyGroup

func (*MergedProperty) PropertyID

func (d *MergedProperty) PropertyID() *ID

type MergedPropertyField

type MergedPropertyField struct {
	SchemaID    ID                   `json:"schemaId"`
	FieldID     ID                   `json:"fieldId"`
	Value       interface{}          `json:"value"`
	Type        ValueType            `json:"type"`
	Links       []*PropertyFieldLink `json:"links"`
	Overridden  bool                 `json:"overridden"`
	Schema      *PropertySchema      `json:"schema"`
	Field       *PropertySchemaField `json:"field"`
	ActualValue interface{}          `json:"actualValue"`
}

type MergedPropertyGroup

type MergedPropertyGroup struct {
	OriginalPropertyID *ID                    `json:"originalPropertyId"`
	ParentPropertyID   *ID                    `json:"parentPropertyId"`
	OriginalID         *ID                    `json:"originalId"`
	ParentID           *ID                    `json:"parentId"`
	SchemaGroupID      ID                     `json:"schemaGroupId"`
	SchemaID           *ID                    `json:"schemaId"`
	LinkedDatasetID    *ID                    `json:"linkedDatasetId"`
	Fields             []*MergedPropertyField `json:"fields"`
	Groups             []*MergedPropertyGroup `json:"groups"`
	OriginalProperty   *Property              `json:"originalProperty"`
	ParentProperty     *Property              `json:"parentProperty"`
	Original           *PropertyGroup         `json:"original"`
	Parent             *PropertyGroup         `json:"parent"`
	Schema             *PropertySchema        `json:"schema"`
	LinkedDataset      *Dataset               `json:"linkedDataset"`
}

func (*MergedPropertyGroup) GroupByOriginal

func (d *MergedPropertyGroup) GroupByOriginal(id ID) *MergedPropertyGroup

func (*MergedPropertyGroup) GroupByParent

func (d *MergedPropertyGroup) GroupByParent(id ID) *MergedPropertyGroup

func (*MergedPropertyGroup) PropertyID

func (d *MergedPropertyGroup) PropertyID() *ID

type MoveInfoboxFieldInput

type MoveInfoboxFieldInput struct {
	LayerID        ID  `json:"layerId"`
	InfoboxFieldID ID  `json:"infoboxFieldId"`
	Index          int `json:"index"`
}

type MoveInfoboxFieldPayload

type MoveInfoboxFieldPayload struct {
	InfoboxFieldID ID    `json:"infoboxFieldId"`
	Layer          Layer `json:"layer"`
	Index          int   `json:"index"`
}

type MoveLayerInput

type MoveLayerInput struct {
	LayerID     ID   `json:"layerId"`
	DestLayerID *ID  `json:"destLayerId"`
	Index       *int `json:"index"`
}

type MoveLayerPayload

type MoveLayerPayload struct {
	LayerID         ID          `json:"layerId"`
	FromParentLayer *LayerGroup `json:"fromParentLayer"`
	ToParentLayer   *LayerGroup `json:"toParentLayer"`
	Index           int         `json:"index"`
}

type MovePropertyItemInput

type MovePropertyItemInput struct {
	PropertyID    ID  `json:"propertyId"`
	SchemaGroupID ID  `json:"schemaGroupId"`
	ItemID        ID  `json:"itemId"`
	Index         int `json:"index"`
}

type Node

type Node interface {
	IsNode()
}

type NodeType

type NodeType string
const (
	NodeTypeAsset          NodeType = "ASSET"
	NodeTypeUser           NodeType = "USER"
	NodeTypeTeam           NodeType = "TEAM"
	NodeTypeProject        NodeType = "PROJECT"
	NodeTypePlugin         NodeType = "PLUGIN"
	NodeTypeScene          NodeType = "SCENE"
	NodeTypePropertySchema NodeType = "PROPERTY_SCHEMA"
	NodeTypeProperty       NodeType = "PROPERTY"
	NodeTypeDatasetSchema  NodeType = "DATASET_SCHEMA"
	NodeTypeDataset        NodeType = "DATASET"
	NodeTypeLayerGroup     NodeType = "LAYER_GROUP"
	NodeTypeLayerItem      NodeType = "LAYER_ITEM"
)

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 PageInfo

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

func NewEmptyPageInfo

func NewEmptyPageInfo() *PageInfo

func ToPageInfo

func ToPageInfo(p *usecase.PageInfo) *PageInfo

type Pagination added in v0.6.0

type Pagination struct {
	First  *int            `json:"first"`
	Last   *int            `json:"last"`
	After  *usecase.Cursor `json:"after"`
	Before *usecase.Cursor `json:"before"`
}

type Plugin

type Plugin struct {
	ID                       ID                 `json:"id"`
	SceneID                  *ID                `json:"sceneId"`
	Name                     string             `json:"name"`
	Version                  string             `json:"version"`
	Description              string             `json:"description"`
	Author                   string             `json:"author"`
	RepositoryURL            string             `json:"repositoryUrl"`
	PropertySchemaID         *ID                `json:"propertySchemaId"`
	Extensions               []*PluginExtension `json:"extensions"`
	ScenePlugin              *ScenePlugin       `json:"scenePlugin"`
	AllTranslatedDescription map[string]string  `json:"allTranslatedDescription"`
	AllTranslatedName        map[string]string  `json:"allTranslatedName"`
	Scene                    *Scene             `json:"scene"`
	TranslatedName           string             `json:"translatedName"`
	TranslatedDescription    string             `json:"translatedDescription"`
	PropertySchema           *PropertySchema    `json:"propertySchema"`
}

func ToPlugin

func ToPlugin(p *plugin.Plugin) *Plugin

func (*Plugin) Extension

func (d *Plugin) Extension(id ID) *PluginExtension

type PluginExtension

type PluginExtension struct {
	ExtensionID              ID                  `json:"extensionId"`
	PluginID                 ID                  `json:"pluginId"`
	Type                     PluginExtensionType `json:"type"`
	Name                     string              `json:"name"`
	Description              string              `json:"description"`
	Icon                     string              `json:"icon"`
	SingleOnly               *bool               `json:"singleOnly"`
	WidgetLayout             *WidgetLayout       `json:"widgetLayout"`
	Visualizer               *Visualizer         `json:"visualizer"`
	PropertySchemaID         ID                  `json:"propertySchemaId"`
	AllTranslatedName        map[string]string   `json:"allTranslatedName"`
	AllTranslatedDescription map[string]string   `json:"allTranslatedDescription"`
	Plugin                   *Plugin             `json:"plugin"`
	SceneWidget              *SceneWidget        `json:"sceneWidget"`
	PropertySchema           *PropertySchema     `json:"propertySchema"`
	TranslatedName           string              `json:"translatedName"`
	TranslatedDescription    string              `json:"translatedDescription"`
}

type PluginExtensionType

type PluginExtensionType string
const (
	PluginExtensionTypePrimitive  PluginExtensionType = "PRIMITIVE"
	PluginExtensionTypeWidget     PluginExtensionType = "WIDGET"
	PluginExtensionTypeBlock      PluginExtensionType = "BLOCK"
	PluginExtensionTypeVisualizer PluginExtensionType = "VISUALIZER"
	PluginExtensionTypeInfobox    PluginExtensionType = "INFOBOX"
)

func ToPluginExtensionType

func ToPluginExtensionType(t plugin.ExtensionType) PluginExtensionType

func (PluginExtensionType) IsValid

func (e PluginExtensionType) IsValid() bool

func (PluginExtensionType) MarshalGQL

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

func (PluginExtensionType) String

func (e PluginExtensionType) String() string

func (*PluginExtensionType) UnmarshalGQL

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

type PluginMetadata

type PluginMetadata struct {
	Name         string    `json:"name"`
	Description  string    `json:"description"`
	Author       string    `json:"author"`
	ThumbnailURL string    `json:"thumbnailUrl"`
	CreatedAt    time.Time `json:"createdAt"`
}

func ToPluginMetadata

func ToPluginMetadata(t *plugin.Metadata) *PluginMetadata

type Project

type Project struct {
	ID                ID                `json:"id"`
	IsArchived        bool              `json:"isArchived"`
	IsBasicAuthActive bool              `json:"isBasicAuthActive"`
	BasicAuthUsername string            `json:"basicAuthUsername"`
	BasicAuthPassword string            `json:"basicAuthPassword"`
	CreatedAt         time.Time         `json:"createdAt"`
	UpdatedAt         time.Time         `json:"updatedAt"`
	PublishedAt       *time.Time        `json:"publishedAt"`
	Name              string            `json:"name"`
	Description       string            `json:"description"`
	Alias             string            `json:"alias"`
	PublicTitle       string            `json:"publicTitle"`
	PublicDescription string            `json:"publicDescription"`
	PublicImage       string            `json:"publicImage"`
	PublicNoIndex     bool              `json:"publicNoIndex"`
	ImageURL          *url.URL          `json:"imageUrl"`
	TeamID            ID                `json:"teamId"`
	Visualizer        Visualizer        `json:"visualizer"`
	PublishmentStatus PublishmentStatus `json:"publishmentStatus"`
	Team              *Team             `json:"team"`
	Scene             *Scene            `json:"scene"`
}

func ToProject

func ToProject(p *project.Project) *Project

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 usecase.Cursor `json:"cursor"`
	Node   *Project       `json:"node"`
}

type ProjectPayload

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

type Property

type Property struct {
	ID       ID              `json:"id"`
	SchemaID ID              `json:"schemaId"`
	Items    []PropertyItem  `json:"items"`
	Schema   *PropertySchema `json:"schema"`
	Layer    Layer           `json:"layer"`
	Merged   *MergedProperty `json:"merged"`
}

func ToProperty

func ToProperty(property *property.Property) *Property

func (*Property) Field

func (d *Property) Field(id id.PropertyFieldID) *PropertyField

func (Property) IsNode

func (Property) IsNode()

func (*Property) Item

func (d *Property) Item(id ID) PropertyItem

type PropertyCondition

type PropertyCondition struct {
	FieldID ID          `json:"fieldId"`
	Type    ValueType   `json:"type"`
	Value   interface{} `json:"value"`
}

func ToPropertyConditon

func ToPropertyConditon(c *property.Condition) *PropertyCondition

type PropertyField

type PropertyField struct {
	ID          string               `json:"id"`
	ParentID    ID                   `json:"parentId"`
	SchemaID    ID                   `json:"schemaId"`
	FieldID     ID                   `json:"fieldId"`
	Links       []*PropertyFieldLink `json:"links"`
	Type        ValueType            `json:"type"`
	Value       interface{}          `json:"value"`
	Parent      *Property            `json:"parent"`
	Schema      *PropertySchema      `json:"schema"`
	Field       *PropertySchemaField `json:"field"`
	ActualValue interface{}          `json:"actualValue"`
}

func ToPropertyField

func ToPropertyField(f *property.Field, parent *property.Property, gl *property.GroupList, g *property.Group) *PropertyField
type PropertyFieldLink struct {
	DatasetID            *ID                 `json:"datasetId"`
	DatasetSchemaID      ID                  `json:"datasetSchemaId"`
	DatasetSchemaFieldID ID                  `json:"datasetSchemaFieldId"`
	Dataset              *Dataset            `json:"dataset"`
	DatasetField         *DatasetField       `json:"datasetField"`
	DatasetSchema        *DatasetSchema      `json:"datasetSchema"`
	DatasetSchemaField   *DatasetSchemaField `json:"datasetSchemaField"`
}
func ToPropertyFieldLink(link *property.Link) *PropertyFieldLink
func ToPropertyFieldLinks(flinks *property.Links) []*PropertyFieldLink

func (*PropertyFieldLink) Copy

type PropertyFieldPayload

type PropertyFieldPayload struct {
	Property      *Property      `json:"property"`
	PropertyField *PropertyField `json:"propertyField"`
}

type PropertyGroup

type PropertyGroup struct {
	ID            ID                   `json:"id"`
	SchemaID      ID                   `json:"schemaId"`
	SchemaGroupID ID                   `json:"schemaGroupId"`
	Fields        []*PropertyField     `json:"fields"`
	Schema        *PropertySchema      `json:"schema"`
	SchemaGroup   *PropertySchemaGroup `json:"schemaGroup"`
}

func (*PropertyGroup) Field

func (d *PropertyGroup) Field(id ID) *PropertyField

func (PropertyGroup) IsPropertyItem

func (PropertyGroup) IsPropertyItem()

type PropertyGroupList

type PropertyGroupList struct {
	ID            ID                   `json:"id"`
	SchemaID      ID                   `json:"schemaId"`
	SchemaGroupID ID                   `json:"schemaGroupId"`
	Groups        []*PropertyGroup     `json:"groups"`
	Schema        *PropertySchema      `json:"schema"`
	SchemaGroup   *PropertySchemaGroup `json:"schemaGroup"`
}

func ToPropertyGroupList

func ToPropertyGroupList(gl *property.GroupList, p *property.Property) *PropertyGroupList

func (*PropertyGroupList) Group

func (d *PropertyGroupList) Group(id ID) *PropertyGroup

func (PropertyGroupList) IsPropertyItem

func (PropertyGroupList) IsPropertyItem()

type PropertyItem

type PropertyItem interface {
	IsPropertyItem()
}

type PropertyItemPayload

type PropertyItemPayload struct {
	Property     *Property    `json:"property"`
	PropertyItem PropertyItem `json:"propertyItem"`
}

type PropertyLinkableFields

type PropertyLinkableFields struct {
	SchemaID    ID                   `json:"schemaId"`
	Latlng      *ID                  `json:"latlng"`
	URL         *ID                  `json:"url"`
	LatlngField *PropertySchemaField `json:"latlngField"`
	URLField    *PropertySchemaField `json:"urlField"`
	Schema      *PropertySchema      `json:"schema"`
}

type PropertySchema

type PropertySchema struct {
	ID             ID                      `json:"id"`
	Groups         []*PropertySchemaGroup  `json:"groups"`
	LinkableFields *PropertyLinkableFields `json:"linkableFields"`
}

func ToPropertySchema

func ToPropertySchema(propertySchema *property.Schema) *PropertySchema

func (*PropertySchema) Field

func (d *PropertySchema) Field(id ID) *PropertySchemaField

func (*PropertySchema) Group

func (d *PropertySchema) Group(id ID) *PropertySchemaGroup

type PropertySchemaField

type PropertySchemaField struct {
	FieldID                  ID                           `json:"fieldId"`
	Type                     ValueType                    `json:"type"`
	Title                    string                       `json:"title"`
	Description              string                       `json:"description"`
	Prefix                   *string                      `json:"prefix"`
	Suffix                   *string                      `json:"suffix"`
	DefaultValue             interface{}                  `json:"defaultValue"`
	UI                       *PropertySchemaFieldUI       `json:"ui"`
	Min                      *float64                     `json:"min"`
	Max                      *float64                     `json:"max"`
	Choices                  []*PropertySchemaFieldChoice `json:"choices"`
	IsAvailableIf            *PropertyCondition           `json:"isAvailableIf"`
	AllTranslatedTitle       map[string]string            `json:"allTranslatedTitle"`
	AllTranslatedDescription map[string]string            `json:"allTranslatedDescription"`
	TranslatedTitle          string                       `json:"translatedTitle"`
	TranslatedDescription    string                       `json:"translatedDescription"`
}

func ToPropertySchemaField

func ToPropertySchemaField(f *property.SchemaField) *PropertySchemaField

type PropertySchemaFieldChoice

type PropertySchemaFieldChoice struct {
	Key                string            `json:"key"`
	Title              string            `json:"title"`
	Icon               *string           `json:"icon"`
	AllTranslatedTitle map[string]string `json:"allTranslatedTitle"`
	TranslatedTitle    string            `json:"translatedTitle"`
}

type PropertySchemaFieldUI

type PropertySchemaFieldUI string
const (
	PropertySchemaFieldUILayer      PropertySchemaFieldUI = "LAYER"
	PropertySchemaFieldUIMultiline  PropertySchemaFieldUI = "MULTILINE"
	PropertySchemaFieldUISelection  PropertySchemaFieldUI = "SELECTION"
	PropertySchemaFieldUIColor      PropertySchemaFieldUI = "COLOR"
	PropertySchemaFieldUIRange      PropertySchemaFieldUI = "RANGE"
	PropertySchemaFieldUISlider     PropertySchemaFieldUI = "SLIDER"
	PropertySchemaFieldUIImage      PropertySchemaFieldUI = "IMAGE"
	PropertySchemaFieldUIVideo      PropertySchemaFieldUI = "VIDEO"
	PropertySchemaFieldUIFile       PropertySchemaFieldUI = "FILE"
	PropertySchemaFieldUICameraPose PropertySchemaFieldUI = "CAMERA_POSE"
	PropertySchemaFieldUIDatetime   PropertySchemaFieldUI = "DATETIME"
)

func ToPropertySchemaFieldUI

func ToPropertySchemaFieldUI(ui *property.SchemaFieldUI) *PropertySchemaFieldUI

func (PropertySchemaFieldUI) IsValid

func (e PropertySchemaFieldUI) IsValid() bool

func (PropertySchemaFieldUI) MarshalGQL

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

func (PropertySchemaFieldUI) String

func (e PropertySchemaFieldUI) String() string

func (*PropertySchemaFieldUI) UnmarshalGQL

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

type PropertySchemaGroup

type PropertySchemaGroup struct {
	SchemaGroupID         ID                     `json:"schemaGroupId"`
	SchemaID              ID                     `json:"schemaId"`
	Fields                []*PropertySchemaField `json:"fields"`
	IsList                bool                   `json:"isList"`
	IsAvailableIf         *PropertyCondition     `json:"isAvailableIf"`
	Title                 *string                `json:"title"`
	AllTranslatedTitle    map[string]string      `json:"allTranslatedTitle"`
	RepresentativeFieldID *ID                    `json:"representativeFieldId"`
	RepresentativeField   *PropertySchemaField   `json:"representativeField"`
	Schema                *PropertySchema        `json:"schema"`
	TranslatedTitle       string                 `json:"translatedTitle"`
}

type PublishProjectInput

type PublishProjectInput struct {
	ProjectID ID                `json:"projectId"`
	Alias     *string           `json:"alias"`
	Status    PublishmentStatus `json:"status"`
}

type PublishmentStatus

type PublishmentStatus string
const (
	PublishmentStatusPublic  PublishmentStatus = "PUBLIC"
	PublishmentStatusLimited PublishmentStatus = "LIMITED"
	PublishmentStatusPrivate PublishmentStatus = "PRIVATE"
)

func (PublishmentStatus) IsValid

func (e PublishmentStatus) IsValid() bool

func (PublishmentStatus) MarshalGQL

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

func (PublishmentStatus) String

func (e PublishmentStatus) String() string

func (*PublishmentStatus) UnmarshalGQL

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

type Rect

type Rect struct {
	West  float64 `json:"west"`
	South float64 `json:"south"`
	East  float64 `json:"east"`
	North float64 `json:"north"`
}

type RemoveAssetInput

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

type RemoveAssetPayload

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

type RemoveClusterInput added in v0.3.0

type RemoveClusterInput struct {
	ClusterID ID `json:"clusterId"`
	SceneID   ID `json:"sceneId"`
}

type RemoveClusterPayload added in v0.3.0

type RemoveClusterPayload struct {
	Scene     *Scene `json:"scene"`
	ClusterID ID     `json:"clusterId"`
}

type RemoveDatasetSchemaInput

type RemoveDatasetSchemaInput struct {
	SchemaID ID    `json:"schemaId"`
	Force    *bool `json:"force"`
}

type RemoveDatasetSchemaPayload

type RemoveDatasetSchemaPayload struct {
	SchemaID ID `json:"schemaId"`
}

type RemoveInfoboxFieldInput

type RemoveInfoboxFieldInput struct {
	LayerID        ID `json:"layerId"`
	InfoboxFieldID ID `json:"infoboxFieldId"`
}

type RemoveInfoboxFieldPayload

type RemoveInfoboxFieldPayload struct {
	InfoboxFieldID ID    `json:"infoboxFieldId"`
	Layer          Layer `json:"layer"`
}

type RemoveInfoboxInput

type RemoveInfoboxInput struct {
	LayerID ID `json:"layerId"`
}

type RemoveInfoboxPayload

type RemoveInfoboxPayload struct {
	Layer Layer `json:"layer"`
}

type RemoveLayerInput

type RemoveLayerInput struct {
	LayerID ID `json:"layerId"`
}

type RemoveLayerPayload

type RemoveLayerPayload struct {
	LayerID     ID          `json:"layerId"`
	ParentLayer *LayerGroup `json:"parentLayer"`
}

type RemoveMemberFromTeamInput

type RemoveMemberFromTeamInput struct {
	TeamID ID `json:"teamId"`
	UserID ID `json:"userId"`
}

type RemoveMemberFromTeamPayload

type RemoveMemberFromTeamPayload struct {
	Team *Team `json:"team"`
}

type RemoveMyAuthInput

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

type RemovePropertyFieldInput

type RemovePropertyFieldInput struct {
	PropertyID    ID  `json:"propertyId"`
	SchemaGroupID *ID `json:"schemaGroupId"`
	ItemID        *ID `json:"itemId"`
	FieldID       ID  `json:"fieldId"`
}

type RemovePropertyItemInput

type RemovePropertyItemInput struct {
	PropertyID    ID `json:"propertyId"`
	SchemaGroupID ID `json:"schemaGroupId"`
	ItemID        ID `json:"itemId"`
}

type RemoveTagInput

type RemoveTagInput struct {
	TagID ID `json:"tagID"`
}

type RemoveTagPayload

type RemoveTagPayload struct {
	TagID         ID      `json:"tagId"`
	UpdatedLayers []Layer `json:"updatedLayers"`
}

type RemoveWidgetInput

type RemoveWidgetInput struct {
	SceneID  ID `json:"sceneId"`
	WidgetID ID `json:"widgetId"`
}

type RemoveWidgetPayload

type RemoveWidgetPayload struct {
	Scene    *Scene `json:"scene"`
	WidgetID ID     `json:"widgetId"`
}

type Role

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

func ToRole added in v0.6.1

func ToRole(r user.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 Scene

type Scene struct {
	ID                    ID                       `json:"id"`
	ProjectID             ID                       `json:"projectId"`
	TeamID                ID                       `json:"teamId"`
	PropertyID            ID                       `json:"propertyId"`
	CreatedAt             time.Time                `json:"createdAt"`
	UpdatedAt             time.Time                `json:"updatedAt"`
	RootLayerID           ID                       `json:"rootLayerId"`
	Widgets               []*SceneWidget           `json:"widgets"`
	Plugins               []*ScenePlugin           `json:"plugins"`
	WidgetAlignSystem     *WidgetAlignSystem       `json:"widgetAlignSystem"`
	DynamicDatasetSchemas []*DatasetSchema         `json:"dynamicDatasetSchemas"`
	Project               *Project                 `json:"project"`
	Team                  *Team                    `json:"team"`
	Property              *Property                `json:"property"`
	RootLayer             *LayerGroup              `json:"rootLayer"`
	DatasetSchemas        *DatasetSchemaConnection `json:"datasetSchemas"`
	TagIds                []ID                     `json:"tagIds"`
	Tags                  []Tag                    `json:"tags"`
	Clusters              []*Cluster               `json:"clusters"`
}

func ToScene

func ToScene(scene *scene.Scene) *Scene

func (Scene) IsNode

func (Scene) IsNode()

func (*Scene) Plugin

func (s *Scene) Plugin(pluginID ID) *ScenePlugin

func (*Scene) Widget

func (s *Scene) Widget(pluginID, extensionID ID) *SceneWidget

type ScenePlugin

type ScenePlugin struct {
	PluginID   ID        `json:"pluginId"`
	PropertyID *ID       `json:"propertyId"`
	Plugin     *Plugin   `json:"plugin"`
	Property   *Property `json:"property"`
}

func ToScenePlugin

func ToScenePlugin(sp *scene.Plugin) *ScenePlugin

type SceneWidget

type SceneWidget struct {
	ID          ID               `json:"id"`
	PluginID    ID               `json:"pluginId"`
	ExtensionID ID               `json:"extensionId"`
	PropertyID  ID               `json:"propertyId"`
	Enabled     bool             `json:"enabled"`
	Extended    bool             `json:"extended"`
	Plugin      *Plugin          `json:"plugin"`
	Extension   *PluginExtension `json:"extension"`
	Property    *Property        `json:"property"`
}

func ToSceneWidget

func ToSceneWidget(w *scene.Widget) *SceneWidget

type SignupInput

type SignupInput struct {
	Lang   *language.Tag `json:"lang"`
	Theme  *Theme        `json:"theme"`
	UserID *ID           `json:"userId"`
	TeamID *ID           `json:"teamId"`
	Secret *string       `json:"secret"`
}

type SignupPayload

type SignupPayload struct {
	User *User `json:"user"`
	Team *Team `json:"team"`
}

type SyncDatasetInput

type SyncDatasetInput struct {
	SceneID ID     `json:"sceneId"`
	URL     string `json:"url"`
}

type SyncDatasetPayload

type SyncDatasetPayload struct {
	SceneID       ID               `json:"sceneId"`
	URL           string           `json:"url"`
	DatasetSchema []*DatasetSchema `json:"datasetSchema"`
	Dataset       []*Dataset       `json:"dataset"`
}

type Tag

type Tag interface {
	IsTag()
}

func ToTag

func ToTag(t tag.Tag) Tag

type TagGroup

type TagGroup struct {
	ID      ID         `json:"id"`
	SceneID ID         `json:"sceneId"`
	Label   string     `json:"label"`
	TagIds  []ID       `json:"tagIds"`
	Tags    []*TagItem `json:"tags"`
	Scene   *Scene     `json:"scene"`
	Layers  []Layer    `json:"layers"`
}

func ToTagGroup

func ToTagGroup(tg *tag.Group) *TagGroup

func (TagGroup) IsTag

func (TagGroup) IsTag()

type TagItem

type TagItem struct {
	ID                    ID             `json:"id"`
	SceneID               ID             `json:"sceneId"`
	Label                 string         `json:"label"`
	ParentID              *ID            `json:"parentId"`
	LinkedDatasetID       *ID            `json:"linkedDatasetID"`
	LinkedDatasetSchemaID *ID            `json:"linkedDatasetSchemaID"`
	LinkedDatasetFieldID  *ID            `json:"linkedDatasetFieldID"`
	LinkedDatasetSchema   *DatasetSchema `json:"linkedDatasetSchema"`
	LinkedDataset         *Dataset       `json:"linkedDataset"`
	LinkedDatasetField    *DatasetField  `json:"linkedDatasetField"`
	Parent                *TagGroup      `json:"parent"`
	Layers                []Layer        `json:"layers"`
}

func ToTagItem

func ToTagItem(ti *tag.Item) *TagItem

func (TagItem) IsTag

func (TagItem) IsTag()

type Team

type Team struct {
	ID       ID                 `json:"id"`
	Name     string             `json:"name"`
	Members  []*TeamMember      `json:"members"`
	Personal bool               `json:"personal"`
	Assets   *AssetConnection   `json:"assets"`
	Projects *ProjectConnection `json:"projects"`
}

func ToTeam

func ToTeam(t *user.Team) *Team

func (Team) IsNode

func (Team) IsNode()

type TeamMember

type TeamMember struct {
	UserID ID    `json:"userId"`
	Role   Role  `json:"role"`
	User   *User `json:"user"`
}

type TextAlign

type TextAlign string
const (
	TextAlignLeft       TextAlign = "LEFT"
	TextAlignCenter     TextAlign = "CENTER"
	TextAlignRight      TextAlign = "RIGHT"
	TextAlignJustify    TextAlign = "JUSTIFY"
	TextAlignJustifyAll TextAlign = "JUSTIFY_ALL"
)

func ToTextAlign

func ToTextAlign(t *property.TextAlign) *TextAlign

func (TextAlign) IsValid

func (e TextAlign) IsValid() bool

func (TextAlign) MarshalGQL

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

func (TextAlign) String

func (e TextAlign) String() string

func (*TextAlign) UnmarshalGQL

func (e *TextAlign) 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 Typography

type Typography struct {
	FontFamily *string    `json:"fontFamily"`
	FontWeight *string    `json:"fontWeight"`
	FontSize   *int       `json:"fontSize"`
	Color      *string    `json:"color"`
	TextAlign  *TextAlign `json:"textAlign"`
	Bold       *bool      `json:"bold"`
	Italic     *bool      `json:"italic"`
	Underline  *bool      `json:"underline"`
}

type UninstallPluginInput

type UninstallPluginInput struct {
	SceneID  ID `json:"sceneId"`
	PluginID ID `json:"pluginId"`
}

type UninstallPluginPayload

type UninstallPluginPayload struct {
	PluginID ID     `json:"pluginId"`
	Scene    *Scene `json:"scene"`
}

type UnlinkPropertyValueInput

type UnlinkPropertyValueInput struct {
	PropertyID    ID  `json:"propertyId"`
	SchemaGroupID *ID `json:"schemaGroupId"`
	ItemID        *ID `json:"itemId"`
	FieldID       ID  `json:"fieldId"`
}

type UpdateClusterInput added in v0.3.0

type UpdateClusterInput struct {
	ClusterID  ID      `json:"clusterId"`
	SceneID    ID      `json:"sceneId"`
	Name       *string `json:"name"`
	PropertyID *ID     `json:"propertyId"`
}

type UpdateClusterPayload added in v0.3.0

type UpdateClusterPayload struct {
	Scene   *Scene   `json:"scene"`
	Cluster *Cluster `json:"cluster"`
}

type UpdateDatasetSchemaInput

type UpdateDatasetSchemaInput struct {
	SchemaID ID     `json:"schemaId"`
	Name     string `json:"name"`
}

type UpdateDatasetSchemaPayload

type UpdateDatasetSchemaPayload struct {
	DatasetSchema *DatasetSchema `json:"datasetSchema"`
}

type UpdateLayerInput

type UpdateLayerInput struct {
	LayerID ID      `json:"layerId"`
	Name    *string `json:"name"`
	Visible *bool   `json:"visible"`
}

type UpdateLayerPayload

type UpdateLayerPayload struct {
	Layer Layer `json:"layer"`
}

type UpdateMeInput

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

type UpdateMePayload

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

type UpdateMemberOfTeamInput

type UpdateMemberOfTeamInput struct {
	TeamID ID   `json:"teamId"`
	UserID ID   `json:"userId"`
	Role   Role `json:"role"`
}

type UpdateMemberOfTeamPayload

type UpdateMemberOfTeamPayload struct {
	Team *Team `json:"team"`
}

type UpdateProjectInput

type UpdateProjectInput struct {
	ProjectID         ID       `json:"projectId"`
	Name              *string  `json:"name"`
	Description       *string  `json:"description"`
	Archived          *bool    `json:"archived"`
	IsBasicAuthActive *bool    `json:"isBasicAuthActive"`
	BasicAuthUsername *string  `json:"basicAuthUsername"`
	BasicAuthPassword *string  `json:"basicAuthPassword"`
	Alias             *string  `json:"alias"`
	ImageURL          *url.URL `json:"imageUrl"`
	PublicTitle       *string  `json:"publicTitle"`
	PublicDescription *string  `json:"publicDescription"`
	PublicImage       *string  `json:"publicImage"`
	PublicNoIndex     *bool    `json:"publicNoIndex"`
	DeleteImageURL    *bool    `json:"deleteImageUrl"`
	DeletePublicImage *bool    `json:"deletePublicImage"`
}

type UpdatePropertyItemInput

type UpdatePropertyItemInput struct {
	PropertyID    ID                                  `json:"propertyId"`
	SchemaGroupID ID                                  `json:"schemaGroupId"`
	Operations    []*UpdatePropertyItemOperationInput `json:"operations"`
}

type UpdatePropertyItemOperationInput

type UpdatePropertyItemOperationInput struct {
	Operation      ListOperation `json:"operation"`
	ItemID         *ID           `json:"itemId"`
	Index          *int          `json:"index"`
	NameFieldValue interface{}   `json:"nameFieldValue"`
	NameFieldType  *ValueType    `json:"nameFieldType"`
}

type UpdatePropertyValueInput

type UpdatePropertyValueInput struct {
	PropertyID    ID          `json:"propertyId"`
	SchemaGroupID *ID         `json:"schemaGroupId"`
	ItemID        *ID         `json:"itemId"`
	FieldID       ID          `json:"fieldId"`
	Value         interface{} `json:"value"`
	Type          ValueType   `json:"type"`
}

type UpdateTagInput

type UpdateTagInput struct {
	TagID   ID      `json:"tagId"`
	SceneID ID      `json:"sceneId"`
	Label   *string `json:"label"`
}

type UpdateTagPayload

type UpdateTagPayload struct {
	Tag Tag `json:"tag"`
}

type UpdateTeamInput

type UpdateTeamInput struct {
	TeamID ID     `json:"teamId"`
	Name   string `json:"name"`
}

type UpdateTeamPayload

type UpdateTeamPayload struct {
	Team *Team `json:"team"`
}

type UpdateWidgetAlignSystemInput

type UpdateWidgetAlignSystemInput struct {
	SceneID  ID                   `json:"sceneId"`
	Location *WidgetLocationInput `json:"location"`
	Align    *WidgetAreaAlign     `json:"align"`
}

type UpdateWidgetAlignSystemPayload

type UpdateWidgetAlignSystemPayload struct {
	Scene *Scene `json:"scene"`
}

type UpdateWidgetInput

type UpdateWidgetInput struct {
	SceneID  ID                   `json:"sceneId"`
	WidgetID ID                   `json:"widgetId"`
	Enabled  *bool                `json:"enabled"`
	Location *WidgetLocationInput `json:"location"`
	Extended *bool                `json:"extended"`
	Index    *int                 `json:"index"`
}

type UpdateWidgetPayload

type UpdateWidgetPayload struct {
	Scene       *Scene       `json:"scene"`
	SceneWidget *SceneWidget `json:"sceneWidget"`
}

type UpgradePluginInput

type UpgradePluginInput struct {
	SceneID    ID `json:"sceneId"`
	PluginID   ID `json:"pluginId"`
	ToPluginID ID `json:"toPluginId"`
}

type UpgradePluginPayload

type UpgradePluginPayload struct {
	Scene       *Scene       `json:"scene"`
	ScenePlugin *ScenePlugin `json:"scenePlugin"`
}

type UploadFileToPropertyInput

type UploadFileToPropertyInput struct {
	PropertyID    ID             `json:"propertyId"`
	SchemaGroupID *ID            `json:"schemaGroupId"`
	ItemID        *ID            `json:"itemId"`
	FieldID       ID             `json:"fieldId"`
	File          graphql.Upload `json:"file"`
}

type UploadPluginInput

type UploadPluginInput struct {
	SceneID ID              `json:"sceneId"`
	File    *graphql.Upload `json:"file"`
	URL     *url.URL        `json:"url"`
}

type UploadPluginPayload

type UploadPluginPayload struct {
	Plugin      *Plugin      `json:"plugin"`
	Scene       *Scene       `json:"scene"`
	ScenePlugin *ScenePlugin `json:"scenePlugin"`
}

type User

type User struct {
	ID    ID     `json:"id"`
	Name  string `json:"name"`
	Email string `json:"email"`
}

func ToUser

func ToUser(u *user.User) *User

func (User) IsNode

func (User) IsNode()

type ValueType

type ValueType string
const (
	ValueTypeBool         ValueType = "BOOL"
	ValueTypeNumber       ValueType = "NUMBER"
	ValueTypeString       ValueType = "STRING"
	ValueTypeRef          ValueType = "REF"
	ValueTypeURL          ValueType = "URL"
	ValueTypeLatlng       ValueType = "LATLNG"
	ValueTypeLatlngheight ValueType = "LATLNGHEIGHT"
	ValueTypeCamera       ValueType = "CAMERA"
	ValueTypeTypography   ValueType = "TYPOGRAPHY"
	ValueTypeCoordinates  ValueType = "COORDINATES"
	ValueTypePolygon      ValueType = "POLYGON"
	ValueTypeRect         ValueType = "RECT"
)

func ToValueType added in v0.3.0

func ToValueType(t value.Type) ValueType

func (ValueType) IsValid

func (e ValueType) IsValid() bool

func (ValueType) MarshalGQL

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

func (ValueType) String

func (e ValueType) String() string

func (*ValueType) UnmarshalGQL

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

type Visualizer

type Visualizer string
const (
	VisualizerCesium Visualizer = "CESIUM"
)

func ToVisualizer

func ToVisualizer(v visualizer.Visualizer) Visualizer

func ToVisualizerRef

func ToVisualizerRef(v visualizer.Visualizer) *Visualizer

func (Visualizer) IsValid

func (e Visualizer) IsValid() bool

func (Visualizer) MarshalGQL

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

func (Visualizer) String

func (e Visualizer) String() string

func (*Visualizer) UnmarshalGQL

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

type WidgetAlignSystem

type WidgetAlignSystem struct {
	Inner *WidgetZone `json:"inner"`
	Outer *WidgetZone `json:"outer"`
}

func ToWidgetAlignSystem

func ToWidgetAlignSystem(sas *scene.WidgetAlignSystem) *WidgetAlignSystem

type WidgetArea

type WidgetArea struct {
	WidgetIds []ID            `json:"widgetIds"`
	Align     WidgetAreaAlign `json:"align"`
}

func ToWidgetArea

func ToWidgetArea(a *scene.WidgetArea) *WidgetArea

type WidgetAreaAlign

type WidgetAreaAlign string
const (
	WidgetAreaAlignStart    WidgetAreaAlign = "START"
	WidgetAreaAlignCentered WidgetAreaAlign = "CENTERED"
	WidgetAreaAlignEnd      WidgetAreaAlign = "END"
)

func ToWidgetAlignType

func ToWidgetAlignType(s scene.WidgetAlignType) WidgetAreaAlign

func (WidgetAreaAlign) IsValid

func (e WidgetAreaAlign) IsValid() bool

func (WidgetAreaAlign) MarshalGQL

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

func (WidgetAreaAlign) String

func (e WidgetAreaAlign) String() string

func (*WidgetAreaAlign) UnmarshalGQL

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

type WidgetAreaType

type WidgetAreaType string
const (
	WidgetAreaTypeTop    WidgetAreaType = "TOP"
	WidgetAreaTypeMiddle WidgetAreaType = "MIDDLE"
	WidgetAreaTypeBottom WidgetAreaType = "BOTTOM"
)

func ToPluginWidgetAreaType

func ToPluginWidgetAreaType(t plugin.WidgetAreaType) WidgetAreaType

func (WidgetAreaType) IsValid

func (e WidgetAreaType) IsValid() bool

func (WidgetAreaType) MarshalGQL

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

func (WidgetAreaType) String

func (e WidgetAreaType) String() string

func (*WidgetAreaType) UnmarshalGQL

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

type WidgetExtendable

type WidgetExtendable struct {
	Vertically   bool `json:"vertically"`
	Horizontally bool `json:"horizontally"`
}

type WidgetLayout

type WidgetLayout struct {
	Extendable      *WidgetExtendable `json:"extendable"`
	Extended        bool              `json:"extended"`
	Floating        bool              `json:"floating"`
	DefaultLocation *WidgetLocation   `json:"defaultLocation"`
}

func ToPluginWidgetLayout

func ToPluginWidgetLayout(wl *plugin.WidgetLayout) *WidgetLayout

type WidgetLocation

type WidgetLocation struct {
	Zone    WidgetZoneType    `json:"zone"`
	Section WidgetSectionType `json:"section"`
	Area    WidgetAreaType    `json:"area"`
}

func ToPluginWidgetLocation

func ToPluginWidgetLocation(l *plugin.WidgetLocation) *WidgetLocation

type WidgetLocationInput

type WidgetLocationInput struct {
	Zone    WidgetZoneType    `json:"zone"`
	Section WidgetSectionType `json:"section"`
	Area    WidgetAreaType    `json:"area"`
}

type WidgetSection

type WidgetSection struct {
	Top    *WidgetArea `json:"top"`
	Middle *WidgetArea `json:"middle"`
	Bottom *WidgetArea `json:"bottom"`
}

func ToWidgetSection

func ToWidgetSection(s *scene.WidgetSection) *WidgetSection

type WidgetSectionType

type WidgetSectionType string
const (
	WidgetSectionTypeLeft   WidgetSectionType = "LEFT"
	WidgetSectionTypeCenter WidgetSectionType = "CENTER"
	WidgetSectionTypeRight  WidgetSectionType = "RIGHT"
)

func ToPluginWidgetSectionType

func ToPluginWidgetSectionType(t plugin.WidgetSectionType) WidgetSectionType

func (WidgetSectionType) IsValid

func (e WidgetSectionType) IsValid() bool

func (WidgetSectionType) MarshalGQL

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

func (WidgetSectionType) String

func (e WidgetSectionType) String() string

func (*WidgetSectionType) UnmarshalGQL

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

type WidgetZone

type WidgetZone struct {
	Left   *WidgetSection `json:"left"`
	Center *WidgetSection `json:"center"`
	Right  *WidgetSection `json:"right"`
}

func ToWidgetZone

func ToWidgetZone(z *scene.WidgetZone) *WidgetZone

type WidgetZoneType

type WidgetZoneType string
const (
	WidgetZoneTypeInner WidgetZoneType = "INNER"
	WidgetZoneTypeOuter WidgetZoneType = "OUTER"
)

func ToPluginWidgetZoneType

func ToPluginWidgetZoneType(t plugin.WidgetZoneType) WidgetZoneType

func (WidgetZoneType) IsValid

func (e WidgetZoneType) IsValid() bool

func (WidgetZoneType) MarshalGQL

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

func (WidgetZoneType) String

func (e WidgetZoneType) String() string

func (*WidgetZoneType) UnmarshalGQL

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

Jump to

Keyboard shortcuts

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