gqlmodel

package
v0.0.0-...-55990d1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllPosition = []Position{
	PositionLeft,
	PositionRight,
}
View Source
var AllVisualizer = []Visualizer{
	VisualizerCesium,
}

Functions

func AssetSortTypeFrom

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) workspace.Role

func FromSceneWidgetAreaPadding

func FromSceneWidgetAreaPadding(p *WidgetAreaPaddingInput) *scene.WidgetAreaPadding

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 FromStoryPositionRef

func FromStoryPositionRef(v *Position) *storytelling.Position

func FromValueType

func FromValueType(t ValueType) value.Type

func FromWidgetAlignType

func FromWidgetAlignType(a *WidgetAreaAlign) *scene.WidgetAlignType

func MarshalArray

func MarshalArray(a Array) graphql.Marshaler

func MarshalCursor

func MarshalCursor(t usecasex.Cursor) graphql.Marshaler

func MarshalDatasetFieldID

func MarshalDatasetFieldID(t id.DatasetFieldID) graphql.Marshaler

func MarshalJSON

func MarshalJSON(b JSON) 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

func MarshalPropertyFieldID(t id.PropertyFieldID) graphql.Marshaler

func MarshalPropertySchemaGroupID

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 ToGoJsonRef

func ToGoJsonRef(p JSON) *map[string]any

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 ToID4

func ToID4[A, B, C, D idx.Type](a, b, c, d ID) (ai idx.ID[A], bi idx.ID[B], ci idx.ID[C], di idx.ID[D], 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 ToNLSConfig

func ToNLSConfig(p JSON) *nlslayer.Config

func ToNLSLayerType

func ToNLSLayerType(p string) nlslayer.LayerType

func ToPagination

func ToPagination(pagination *Pagination) *usecasex.Pagination

func ToPluginID

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

func ToPluginID2

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

func ToPluginIDRef

func ToPluginIDRef(a *ID) *id.PluginID

func ToPropertyLatLng

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

func ToPropertySchemaID

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

func ToPropertySchemaIDRef

func ToPropertySchemaIDRef(a *ID) *id.PropertySchemaID

func ToPropertyValue

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

func ToStoryBgColor

func ToStoryBgColor(bg string) *string

func ToStringIDRef

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

func ToStyleValue

func ToStyleValue(p JSON) *scene.StyleValue

func ToTheme

func ToTheme(t *Theme) *user.Theme

func UnmarshalCursor

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

func UnmarshalDatasetFieldID

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

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

func UnmarshalPropertySchemaGroupID

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

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

type AddClusterPayload

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

type AddCustomPropertySchemaInput

type AddCustomPropertySchemaInput struct {
	LayerID ID   `json:"layerId"`
	Schema  JSON `json:"schema,omitempty"`
}

type AddDatasetSchemaInput

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

type AddDatasetSchemaPayload

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

type AddGeoJSONFeatureInput

type AddGeoJSONFeatureInput struct {
	Type       string `json:"type"`
	Geometry   JSON   `json:"geometry"`
	Properties JSON   `json:"properties,omitempty"`
	LayerID    ID     `json:"layerId"`
}

type AddInfoboxFieldInput

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

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,omitempty"`
	ExtensionID           *ID     `json:"extensionId,omitempty"`
	Index                 *int    `json:"index,omitempty"`
	LinkedDatasetSchemaID *ID     `json:"linkedDatasetSchemaID,omitempty"`
	Name                  *string `json:"name,omitempty"`
	RepresentativeFieldID *ID     `json:"representativeFieldId,omitempty"`
}

type AddLayerGroupPayload

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

type AddLayerItemInput

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

type AddLayerItemPayload

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

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 AddNLSInfoboxBlockInput

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

type AddNLSInfoboxBlockPayload

type AddNLSInfoboxBlockPayload struct {
	InfoboxBlock *InfoboxBlock `json:"infoboxBlock"`
	Layer        NLSLayer      `json:"layer"`
}

type AddNLSLayerSimpleInput

type AddNLSLayerSimpleInput struct {
	LayerType string `json:"layerType"`
	Title     string `json:"title"`
	SceneID   ID     `json:"sceneId"`
	Config    JSON   `json:"config,omitempty"`
	Index     *int   `json:"index,omitempty"`
	Visible   *bool  `json:"visible,omitempty"`
	Schema    JSON   `json:"schema,omitempty"`
}

type AddNLSLayerSimplePayload

type AddNLSLayerSimplePayload struct {
	Layers *NLSLayerSimple `json:"layers"`
}

type AddPropertyItemInput

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

type AddStyleInput

type AddStyleInput struct {
	SceneID ID     `json:"sceneId"`
	Name    string `json:"name"`
	Value   JSON   `json:"value"`
}

type AddStylePayload

type AddStylePayload struct {
	Style *Style `json:"style"`
}

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 Array

type Array []any

func UnmarshalArray

func UnmarshalArray(v interface{}) (Array, error)

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,omitempty"`
}

func ToAsset

func ToAsset(a *asset.Asset) *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 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 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

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

func ToCluster

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 CreateNLSInfoboxInput

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

type CreateNLSInfoboxPayload

type CreateNLSInfoboxPayload struct {
	Layer NLSLayer `json:"layer"`
}

type CreateProjectInput

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

type CreateSceneInput

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

type CreateScenePayload

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

type CreateStoryBlockInput

type CreateStoryBlockInput struct {
	StoryID     ID   `json:"storyId"`
	PageID      ID   `json:"pageId"`
	PluginID    ID   `json:"pluginId"`
	ExtensionID ID   `json:"extensionId"`
	Index       *int `json:"index,omitempty"`
}

type CreateStoryBlockPayload

type CreateStoryBlockPayload struct {
	Block *StoryBlock `json:"block"`
	Page  *StoryPage  `json:"page"`
	Story *Story      `json:"story"`
	Index int         `json:"index"`
}

type CreateStoryInput

type CreateStoryInput struct {
	SceneID ID     `json:"sceneId"`
	Title   string `json:"title"`
	Index   *int   `json:"index,omitempty"`
}

type CreateStoryPageInput

type CreateStoryPageInput struct {
	SceneID         ID      `json:"sceneId"`
	StoryID         ID      `json:"storyId"`
	Title           *string `json:"title,omitempty"`
	Swipeable       *bool   `json:"swipeable,omitempty"`
	Layers          []ID    `json:"layers,omitempty"`
	SwipeableLayers []ID    `json:"swipeableLayers,omitempty"`
	Index           *int    `json:"index,omitempty"`
}

type CreateTagGroupInput

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

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,omitempty"`
	LinkedDatasetSchemaID *ID    `json:"linkedDatasetSchemaID,omitempty"`
	LinkedDatasetID       *ID    `json:"linkedDatasetID,omitempty"`
	LinkedDatasetField    *ID    `json:"linkedDatasetField,omitempty"`
}

type CreateTagItemPayload

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

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,omitempty"`
	Name     *string         `json:"name,omitempty"`
}

func ToDataset

func ToDataset(ds *dataset.Dataset) *Dataset

func (*Dataset) Field

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

func (Dataset) GetID

func (this Dataset) GetID() ID

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 usecasex.Cursor `json:"cursor"`
	Node   *Dataset        `json:"node,omitempty"`
}

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,omitempty"`
	Schema   *DatasetSchema      `json:"schema,omitempty"`
	Field    *DatasetSchemaField `json:"field,omitempty"`
	ValueRef *Dataset            `json:"valueRef,omitempty"`
}

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,omitempty"`
	Dynamic               *bool                 `json:"dynamic,omitempty"`
	Datasets              *DatasetConnection    `json:"datasets"`
	Scene                 *Scene                `json:"scene,omitempty"`
	RepresentativeField   *DatasetSchemaField   `json:"representativeField,omitempty"`
}

func ToDatasetSchema

func ToDatasetSchema(ds *dataset.Schema) *DatasetSchema

func (*DatasetSchema) Field

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

func (DatasetSchema) GetID

func (this DatasetSchema) GetID() ID

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 usecasex.Cursor `json:"cursor"`
	Node   *DatasetSchema  `json:"node,omitempty"`
}

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,omitempty"`
	Schema   *DatasetSchema `json:"schema,omitempty"`
	Ref      *DatasetSchema `json:"ref,omitempty"`
}

func (DatasetSchemaField) GetID

func (this DatasetSchemaField) GetID() ID

func (DatasetSchemaField) IsNode

func (DatasetSchemaField) IsNode()

type DeleteGeoJSONFeatureInput

type DeleteGeoJSONFeatureInput struct {
	FeatureID ID `json:"featureId"`
	LayerID   ID `json:"layerId"`
}

type DeleteGeoJSONFeaturePayload

type DeleteGeoJSONFeaturePayload struct {
	DeletedFeatureID ID `json:"deletedFeatureId"`
}

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 DeleteStoryInput

type DeleteStoryInput struct {
	SceneID ID `json:"sceneId"`
	StoryID ID `json:"storyId"`
}

type DeleteStoryPageInput

type DeleteStoryPageInput struct {
	SceneID ID `json:"sceneId"`
	StoryID ID `json:"storyId"`
	PageID  ID `json:"pageId"`
}

type DeleteStoryPagePayload

type DeleteStoryPagePayload struct {
	PageID ID     `json:"pageId"`
	Story  *Story `json:"story"`
}

type DeleteStoryPayload

type DeleteStoryPayload struct {
	StoryID ID `json:"storyId"`
}

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 DuplicateNLSLayerInput

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

type DuplicateNLSLayerPayload

type DuplicateNLSLayerPayload struct {
	Layer NLSLayer `json:"layer"`
}

type DuplicateStoryPageInput

type DuplicateStoryPageInput struct {
	SceneID ID `json:"sceneId"`
	StoryID ID `json:"storyId"`
	PageID  ID `json:"pageId"`
}

type DuplicateStyleInput

type DuplicateStyleInput struct {
	StyleID ID `json:"styleId"`
}

type DuplicateStylePayload

type DuplicateStylePayload struct {
	Style *Style `json:"style"`
}

type Feature

type Feature struct {
	Type       string   `json:"type"`
	Geometry   Geometry `json:"geometry"`
	ID         ID       `json:"id"`
	Properties JSON     `json:"properties,omitempty"`
}

type FeatureCollection

type FeatureCollection struct {
	Type     string     `json:"type"`
	Features []*Feature `json:"features"`
}

type Geometry

type Geometry interface {
	IsGeometry()
}

type GeometryCollection

type GeometryCollection struct {
	Type       string     `json:"type"`
	Geometries []Geometry `json:"geometries"`
}

func (GeometryCollection) IsGeometry

func (GeometryCollection) IsGeometry()

type ID

type ID string

func IDFrom

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

func IDFromList

func IDFromList[T idx.Type](i idx.List[T]) []ID

func IDFromPluginID

func IDFromPluginID(i id.PluginID) ID

func IDFromPluginIDRef

func IDFromPluginIDRef(i *id.PluginID) *ID

func IDFromPropertySchemaID

func IDFromPropertySchemaID(i id.PropertySchemaID) ID

func IDFromPropertySchemaIDRef

func IDFromPropertySchemaIDRef(i *id.PropertySchemaID) *ID

func IDFromRef

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

func IDFromString

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

func IDFromStringRef

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,omitempty"`
}

type ImportDatasetInput

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

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,omitempty"`
	Layer           Layer           `json:"layer"`
	Property        *Property       `json:"property,omitempty"`
	LinkedDataset   *Dataset        `json:"linkedDataset,omitempty"`
	Merged          *MergedInfobox  `json:"merged,omitempty"`
	Scene           *Scene          `json:"scene,omitempty"`
}

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 InfoboxBlock

type InfoboxBlock struct {
	ID          ID               `json:"id"`
	SceneID     ID               `json:"sceneId"`
	LayerID     ID               `json:"layerId"`
	PropertyID  ID               `json:"propertyId"`
	Property    *Property        `json:"property,omitempty"`
	PluginID    ID               `json:"pluginId"`
	Plugin      *Plugin          `json:"plugin,omitempty"`
	ExtensionID ID               `json:"extensionId"`
	Extension   *PluginExtension `json:"extension,omitempty"`
	Scene       *Scene           `json:"scene,omitempty"`
}

func ToInfoboxBlocks

func ToInfoboxBlocks(bl []*nlslayer.InfoboxBlock, parentSceneID id.SceneID) []*InfoboxBlock

func ToNLSInfoboxBlock

func ToNLSInfoboxBlock(ibf *nlslayer.InfoboxBlock, parentSceneID id.SceneID) *InfoboxBlock

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,omitempty"`
	Layer           Layer               `json:"layer"`
	Infobox         *Infobox            `json:"infobox"`
	Property        *Property           `json:"property,omitempty"`
	Plugin          *Plugin             `json:"plugin,omitempty"`
	Extension       *PluginExtension    `json:"extension,omitempty"`
	LinkedDataset   *Dataset            `json:"linkedDataset,omitempty"`
	Merged          *MergedInfoboxField `json:"merged,omitempty"`
	Scene           *Scene              `json:"scene,omitempty"`
	ScenePlugin     *ScenePlugin        `json:"scenePlugin,omitempty"`
}

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 JSON

type JSON map[string]any

func UnmarshalJSON

func UnmarshalJSON(v interface{}) (JSON, error)

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()
	GetID() ID
	GetSceneID() ID
	GetName() string
	GetIsVisible() bool
	GetPropertyID() *ID
	GetPluginID() *ID
	GetExtensionID() *ID
	GetInfobox() *Infobox
	GetParentID() *ID
	GetParent() *LayerGroup
	GetProperty() *Property
	GetPlugin() *Plugin
	GetExtension() *PluginExtension
	GetScenePlugin() *ScenePlugin
	GetTags() []LayerTag
}

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,omitempty"`
	PluginID              *ID              `json:"pluginId,omitempty"`
	ExtensionID           *ID              `json:"extensionId,omitempty"`
	Infobox               *Infobox         `json:"infobox,omitempty"`
	ParentID              *ID              `json:"parentId,omitempty"`
	LinkedDatasetSchemaID *ID              `json:"linkedDatasetSchemaId,omitempty"`
	Root                  bool             `json:"root"`
	LayerIds              []ID             `json:"layerIds"`
	Tags                  []LayerTag       `json:"tags"`
	Parent                *LayerGroup      `json:"parent,omitempty"`
	Property              *Property        `json:"property,omitempty"`
	Plugin                *Plugin          `json:"plugin,omitempty"`
	Extension             *PluginExtension `json:"extension,omitempty"`
	LinkedDatasetSchema   *DatasetSchema   `json:"linkedDatasetSchema,omitempty"`
	Layers                []Layer          `json:"layers"`
	Scene                 *Scene           `json:"scene,omitempty"`
	ScenePlugin           *ScenePlugin     `json:"scenePlugin,omitempty"`
}

func ToLayerGroup

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

func (LayerGroup) GetExtension

func (this LayerGroup) GetExtension() *PluginExtension

func (LayerGroup) GetExtensionID

func (this LayerGroup) GetExtensionID() *ID

func (LayerGroup) GetID

func (this LayerGroup) GetID() ID

func (LayerGroup) GetInfobox

func (this LayerGroup) GetInfobox() *Infobox

func (LayerGroup) GetIsVisible

func (this LayerGroup) GetIsVisible() bool

func (LayerGroup) GetName

func (this LayerGroup) GetName() string

func (LayerGroup) GetParent

func (this LayerGroup) GetParent() *LayerGroup

func (LayerGroup) GetParentID

func (this LayerGroup) GetParentID() *ID

func (LayerGroup) GetPlugin

func (this LayerGroup) GetPlugin() *Plugin

func (LayerGroup) GetPluginID

func (this LayerGroup) GetPluginID() *ID

func (LayerGroup) GetProperty

func (this LayerGroup) GetProperty() *Property

func (LayerGroup) GetPropertyID

func (this LayerGroup) GetPropertyID() *ID

func (LayerGroup) GetSceneID

func (this LayerGroup) GetSceneID() ID

func (LayerGroup) GetScenePlugin

func (this LayerGroup) GetScenePlugin() *ScenePlugin

func (LayerGroup) GetTags

func (this LayerGroup) GetTags() []LayerTag

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,omitempty"`
	PluginID        *ID              `json:"pluginId,omitempty"`
	ExtensionID     *ID              `json:"extensionId,omitempty"`
	Infobox         *Infobox         `json:"infobox,omitempty"`
	ParentID        *ID              `json:"parentId,omitempty"`
	LinkedDatasetID *ID              `json:"linkedDatasetId,omitempty"`
	Tags            []LayerTag       `json:"tags"`
	Parent          *LayerGroup      `json:"parent,omitempty"`
	Property        *Property        `json:"property,omitempty"`
	Plugin          *Plugin          `json:"plugin,omitempty"`
	Extension       *PluginExtension `json:"extension,omitempty"`
	LinkedDataset   *Dataset         `json:"linkedDataset,omitempty"`
	Merged          *MergedLayer     `json:"merged,omitempty"`
	Scene           *Scene           `json:"scene,omitempty"`
	ScenePlugin     *ScenePlugin     `json:"scenePlugin,omitempty"`
}

func ToLayerItem

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

func (LayerItem) GetExtension

func (this LayerItem) GetExtension() *PluginExtension

func (LayerItem) GetExtensionID

func (this LayerItem) GetExtensionID() *ID

func (LayerItem) GetID

func (this LayerItem) GetID() ID

func (LayerItem) GetInfobox

func (this LayerItem) GetInfobox() *Infobox

func (LayerItem) GetIsVisible

func (this LayerItem) GetIsVisible() bool

func (LayerItem) GetName

func (this LayerItem) GetName() string

func (LayerItem) GetParent

func (this LayerItem) GetParent() *LayerGroup

func (LayerItem) GetParentID

func (this LayerItem) GetParentID() *ID

func (LayerItem) GetPlugin

func (this LayerItem) GetPlugin() *Plugin

func (LayerItem) GetPluginID

func (this LayerItem) GetPluginID() *ID

func (LayerItem) GetProperty

func (this LayerItem) GetProperty() *Property

func (LayerItem) GetPropertyID

func (this LayerItem) GetPropertyID() *ID

func (LayerItem) GetSceneID

func (this LayerItem) GetSceneID() ID

func (LayerItem) GetScenePlugin

func (this LayerItem) GetScenePlugin() *ScenePlugin

func (LayerItem) GetTags

func (this LayerItem) GetTags() []LayerTag

func (LayerItem) IsLayer

func (LayerItem) IsLayer()

func (LayerItem) IsNode

func (LayerItem) IsNode()

type LayerTag

type LayerTag interface {
	IsLayerTag()
	GetTagID() ID
	GetTag() Tag
}

func ToLayerTag

func ToLayerTag(l layer.Tag) LayerTag

func ToLayerTagList

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

type LayerTagGroup

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

func ToLayerTagGroup

func ToLayerTagGroup(t *layer.TagGroup) *LayerTagGroup

func (LayerTagGroup) GetTag

func (this LayerTagGroup) GetTag() Tag

func (LayerTagGroup) GetTagID

func (this LayerTagGroup) GetTagID() ID

func (LayerTagGroup) IsLayerTag

func (LayerTagGroup) IsLayerTag()

type LayerTagItem

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

func ToLayerTagItem

func ToLayerTagItem(t *layer.TagItem) *LayerTagItem

func (LayerTagItem) GetTag

func (this LayerTagItem) GetTag() Tag

func (LayerTagItem) GetTagID

func (this LayerTagItem) GetTagID() ID

func (LayerTagItem) IsLayerTag

func (LayerTagItem) IsLayerTag()

type LineString

type LineString struct {
	Type                  string      `json:"type"`
	LineStringCoordinates [][]float64 `json:"lineStringCoordinates"`
}

func (LineString) IsGeometry

func (LineString) IsGeometry()

type LinkDatasetToPropertyValueInput

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

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

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,omitempty"`
}

func ToMe

func ToMe(u *user.User) *Me

type MergedInfobox

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

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,omitempty"`
	Plugin      *Plugin          `json:"plugin,omitempty"`
	Extension   *PluginExtension `json:"extension,omitempty"`
	Scene       *Scene           `json:"scene,omitempty"`
	ScenePlugin *ScenePlugin     `json:"scenePlugin,omitempty"`
}

func ToMergedInfoboxField

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

type MergedLayer

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

func ToMergedLayer

func ToMergedLayer(layer *layer.Merged) *MergedLayer

type MergedProperty

type MergedProperty struct {
	OriginalID      *ID                    `json:"originalId,omitempty"`
	ParentID        *ID                    `json:"parentId,omitempty"`
	SchemaID        *ID                    `json:"schemaId,omitempty"`
	LinkedDatasetID *ID                    `json:"linkedDatasetId,omitempty"`
	Original        *Property              `json:"original,omitempty"`
	Parent          *Property              `json:"parent,omitempty"`
	Schema          *PropertySchema        `json:"schema,omitempty"`
	LinkedDataset   *Dataset               `json:"linkedDataset,omitempty"`
	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,omitempty"`
	Type        ValueType            `json:"type"`
	Links       []*PropertyFieldLink `json:"links,omitempty"`
	Overridden  bool                 `json:"overridden"`
	Schema      *PropertySchema      `json:"schema,omitempty"`
	Field       *PropertySchemaField `json:"field,omitempty"`
	ActualValue interface{}          `json:"actualValue,omitempty"`
}

type MergedPropertyGroup

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

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,omitempty"`
	Index       *int `json:"index,omitempty"`
}

type MoveLayerPayload

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

type MoveNLSInfoboxBlockInput

type MoveNLSInfoboxBlockInput struct {
	LayerID        ID  `json:"layerId"`
	InfoboxBlockID ID  `json:"infoboxBlockId"`
	Index          int `json:"index"`
}

type MoveNLSInfoboxBlockPayload

type MoveNLSInfoboxBlockPayload struct {
	InfoboxBlockID ID       `json:"infoboxBlockId"`
	Layer          NLSLayer `json:"layer"`
	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 MoveStoryBlockInput

type MoveStoryBlockInput struct {
	StoryID ID  `json:"storyId"`
	PageID  ID  `json:"pageId"`
	BlockID ID  `json:"blockId"`
	Index   int `json:"index"`
}

type MoveStoryBlockPayload

type MoveStoryBlockPayload struct {
	Page    *StoryPage `json:"page"`
	Story   *Story     `json:"story"`
	BlockID ID         `json:"blockId"`
	Index   int        `json:"index"`
}

type MoveStoryInput

type MoveStoryInput struct {
	SceneID ID  `json:"sceneId"`
	StoryID ID  `json:"storyId"`
	Index   int `json:"index"`
}

type MoveStoryPageInput

type MoveStoryPageInput struct {
	StoryID ID  `json:"storyId"`
	PageID  ID  `json:"pageId"`
	Index   int `json:"index"`
}

type MoveStoryPagePayload

type MoveStoryPagePayload struct {
	Page  *StoryPage `json:"page"`
	Story *Story     `json:"story"`
	Index int        `json:"index"`
}

type MoveStoryPayload

type MoveStoryPayload struct {
	StoryID ID       `json:"storyId"`
	Index   int      `json:"index"`
	Stories []*Story `json:"stories"`
}

type MultiPolygon

type MultiPolygon struct {
	Type                    string          `json:"type"`
	MultiPolygonCoordinates [][][][]float64 `json:"multiPolygonCoordinates"`
}

func (MultiPolygon) IsGeometry

func (MultiPolygon) IsGeometry()

type Mutation

type Mutation struct {
}

type NLSInfobox

type NLSInfobox struct {
	ID         ID              `json:"id"`
	SceneID    ID              `json:"sceneId"`
	LayerID    ID              `json:"layerId"`
	PropertyID ID              `json:"propertyId"`
	Blocks     []*InfoboxBlock `json:"blocks"`
	Property   *Property       `json:"property,omitempty"`
	Scene      *Scene          `json:"scene,omitempty"`
}

func ToNLSInfobox

func ToNLSInfobox(ib *nlslayer.Infobox, parent id.NLSLayerID, parentSceneID id.SceneID) *NLSInfobox

func (*NLSInfobox) Block

func (d *NLSInfobox) Block(id ID) *InfoboxBlock

type NLSLayer

type NLSLayer interface {
	IsNLSLayer()
	GetID() ID
	GetLayerType() string
	GetSceneID() ID
	GetConfig() JSON
	GetTitle() string
	GetVisible() bool
	GetInfobox() *NLSInfobox
	GetIsSketch() bool
	GetSketch() *SketchInfo
}

func ToNLSLayer

func ToNLSLayer(l nlslayer.NLSLayer, parent *id.NLSLayerID) NLSLayer

func ToNLSLayers

func ToNLSLayers(layers nlslayer.NLSLayerList, parent *id.NLSLayerID) []NLSLayer

type NLSLayerGroup

type NLSLayerGroup struct {
	ID          ID          `json:"id"`
	LayerType   string      `json:"layerType"`
	SceneID     ID          `json:"sceneId"`
	Children    []NLSLayer  `json:"children"`
	ChildrenIds []ID        `json:"childrenIds"`
	Config      JSON        `json:"config,omitempty"`
	Title       string      `json:"title"`
	Visible     bool        `json:"visible"`
	Infobox     *NLSInfobox `json:"infobox,omitempty"`
	Scene       *Scene      `json:"scene,omitempty"`
	IsSketch    bool        `json:"isSketch"`
	Sketch      *SketchInfo `json:"sketch,omitempty"`
}

func ToNLSLayerGroup

func ToNLSLayerGroup(l *nlslayer.NLSLayerGroup, parent *id.NLSLayerID) *NLSLayerGroup

func (NLSLayerGroup) GetConfig

func (this NLSLayerGroup) GetConfig() JSON

func (NLSLayerGroup) GetID

func (this NLSLayerGroup) GetID() ID

func (NLSLayerGroup) GetInfobox

func (this NLSLayerGroup) GetInfobox() *NLSInfobox

func (NLSLayerGroup) GetIsSketch

func (this NLSLayerGroup) GetIsSketch() bool

func (NLSLayerGroup) GetLayerType

func (this NLSLayerGroup) GetLayerType() string

func (NLSLayerGroup) GetSceneID

func (this NLSLayerGroup) GetSceneID() ID

func (NLSLayerGroup) GetSketch

func (this NLSLayerGroup) GetSketch() *SketchInfo

func (NLSLayerGroup) GetTitle

func (this NLSLayerGroup) GetTitle() string

func (NLSLayerGroup) GetVisible

func (this NLSLayerGroup) GetVisible() bool

func (NLSLayerGroup) IsNLSLayer

func (NLSLayerGroup) IsNLSLayer()

type NLSLayerSimple

type NLSLayerSimple struct {
	ID        ID          `json:"id"`
	LayerType string      `json:"layerType"`
	SceneID   ID          `json:"sceneId"`
	Config    JSON        `json:"config,omitempty"`
	Title     string      `json:"title"`
	Visible   bool        `json:"visible"`
	Infobox   *NLSInfobox `json:"infobox,omitempty"`
	Scene     *Scene      `json:"scene,omitempty"`
	IsSketch  bool        `json:"isSketch"`
	Sketch    *SketchInfo `json:"sketch,omitempty"`
}

func ToNLSLayerSimple

func ToNLSLayerSimple(l *nlslayer.NLSLayerSimple) *NLSLayerSimple

func (NLSLayerSimple) GetConfig

func (this NLSLayerSimple) GetConfig() JSON

func (NLSLayerSimple) GetID

func (this NLSLayerSimple) GetID() ID

func (NLSLayerSimple) GetInfobox

func (this NLSLayerSimple) GetInfobox() *NLSInfobox

func (NLSLayerSimple) GetIsSketch

func (this NLSLayerSimple) GetIsSketch() bool

func (NLSLayerSimple) GetLayerType

func (this NLSLayerSimple) GetLayerType() string

func (NLSLayerSimple) GetSceneID

func (this NLSLayerSimple) GetSceneID() ID

func (NLSLayerSimple) GetSketch

func (this NLSLayerSimple) GetSketch() *SketchInfo

func (NLSLayerSimple) GetTitle

func (this NLSLayerSimple) GetTitle() string

func (NLSLayerSimple) GetVisible

func (this NLSLayerSimple) GetVisible() bool

func (NLSLayerSimple) IsNLSLayer

func (NLSLayerSimple) IsNLSLayer()

type Node

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

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     *usecasex.Cursor `json:"startCursor,omitempty"`
	EndCursor       *usecasex.Cursor `json:"endCursor,omitempty"`
	HasNextPage     bool             `json:"hasNextPage"`
	HasPreviousPage bool             `json:"hasPreviousPage"`
}

func NewEmptyPageInfo

func NewEmptyPageInfo() *PageInfo

func ToPageInfo

func ToPageInfo(p *usecasex.PageInfo) *PageInfo

type PageLayerInput

type PageLayerInput struct {
	SceneID   ID    `json:"sceneId"`
	StoryID   ID    `json:"storyId"`
	PageID    ID    `json:"pageId"`
	Swipeable *bool `json:"swipeable,omitempty"`
	LayerID   ID    `json:"layerId"`
}

type Pagination

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

type Plugin

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

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,omitempty"`
	WidgetLayout             *WidgetLayout       `json:"widgetLayout,omitempty"`
	Visualizer               *Visualizer         `json:"visualizer,omitempty"`
	PropertySchemaID         ID                  `json:"propertySchemaId"`
	AllTranslatedName        map[string]string   `json:"allTranslatedName,omitempty"`
	AllTranslatedDescription map[string]string   `json:"allTranslatedDescription,omitempty"`
	Plugin                   *Plugin             `json:"plugin,omitempty"`
	SceneWidget              *SceneWidget        `json:"sceneWidget,omitempty"`
	PropertySchema           *PropertySchema     `json:"propertySchema,omitempty"`
	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"
	PluginExtensionTypeCluster      PluginExtensionType = "Cluster"
	PluginExtensionTypeStory        PluginExtensionType = "Story"
	PluginExtensionTypeStoryPage    PluginExtensionType = "StoryPage"
	PluginExtensionTypeStoryBlock   PluginExtensionType = "StoryBlock"
	PluginExtensionTypeInfoboxBlock PluginExtensionType = "InfoboxBlock"
)

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 Point

type Point struct {
	Type             string    `json:"type"`
	PointCoordinates []float64 `json:"pointCoordinates"`
}

func (Point) IsGeometry

func (Point) IsGeometry()

type Policy

type Policy struct {
	ID                    ID     `json:"id"`
	Name                  string `json:"name"`
	ProjectCount          *int   `json:"projectCount,omitempty"`
	MemberCount           *int   `json:"memberCount,omitempty"`
	PublishedProjectCount *int   `json:"publishedProjectCount,omitempty"`
	LayerCount            *int   `json:"layerCount,omitempty"`
	AssetStorageSize      *int64 `json:"assetStorageSize,omitempty"`
	DatasetSchemaCount    *int   `json:"datasetSchemaCount,omitempty"`
	DatasetCount          *int   `json:"datasetCount,omitempty"`
}

func ToPolicy

func ToPolicy(p *policy.Policy) *Policy

type Polygon

type Polygon struct {
	Type               string        `json:"type"`
	PolygonCoordinates [][][]float64 `json:"polygonCoordinates"`
}

func (Polygon) IsGeometry

func (Polygon) IsGeometry()

type Position

type Position string
const (
	PositionLeft  Position = "LEFT"
	PositionRight Position = "RIGHT"
)

func ToStoryPosition

func ToStoryPosition(v storytelling.Position) Position

func (Position) IsValid

func (e Position) IsValid() bool

func (Position) MarshalGQL

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

func (Position) String

func (e Position) String() string

func (*Position) UnmarshalGQL

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

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,omitempty"`
	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,omitempty"`
	TeamID            ID                `json:"teamId"`
	Visualizer        Visualizer        `json:"visualizer"`
	PublishmentStatus PublishmentStatus `json:"publishmentStatus"`
	Team              *Team             `json:"team,omitempty"`
	Scene             *Scene            `json:"scene,omitempty"`
	CoreSupport       bool              `json:"coreSupport"`
	EnableGa          bool              `json:"enableGa"`
	TrackingID        string            `json:"trackingId"`
}

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 Property

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

func ToProperty

func ToProperty(property *property.Property) *Property

func (*Property) Field

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

func (Property) GetID

func (this Property) GetID() ID

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,omitempty"`
}

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,omitempty"`
	Type        ValueType            `json:"type"`
	Value       interface{}          `json:"value,omitempty"`
	Parent      *Property            `json:"parent,omitempty"`
	Schema      *PropertySchema      `json:"schema,omitempty"`
	Field       *PropertySchemaField `json:"field,omitempty"`
	ActualValue interface{}          `json:"actualValue,omitempty"`
}

func ToPropertyField

func ToPropertyField(f *property.Field, parent *property.Property, gl *property.GroupList, g *property.Group) *PropertyField
type PropertyFieldLink struct {
	DatasetID            *ID                 `json:"datasetId,omitempty"`
	DatasetSchemaID      ID                  `json:"datasetSchemaId"`
	DatasetSchemaFieldID ID                  `json:"datasetSchemaFieldId"`
	Dataset              *Dataset            `json:"dataset,omitempty"`
	DatasetField         *DatasetField       `json:"datasetField,omitempty"`
	DatasetSchema        *DatasetSchema      `json:"datasetSchema,omitempty"`
	DatasetSchemaField   *DatasetSchemaField `json:"datasetSchemaField,omitempty"`
}
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,omitempty"`
}

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,omitempty"`
	SchemaGroup   *PropertySchemaGroup `json:"schemaGroup,omitempty"`
}

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,omitempty"`
	SchemaGroup   *PropertySchemaGroup `json:"schemaGroup,omitempty"`
}

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,omitempty"`
}

type PropertyLinkableFields

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

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,omitempty"`
	Suffix                   *string                      `json:"suffix,omitempty"`
	DefaultValue             interface{}                  `json:"defaultValue,omitempty"`
	UI                       *PropertySchemaFieldUI       `json:"ui,omitempty"`
	Min                      *float64                     `json:"min,omitempty"`
	Max                      *float64                     `json:"max,omitempty"`
	Choices                  []*PropertySchemaFieldChoice `json:"choices,omitempty"`
	IsAvailableIf            *PropertyCondition           `json:"isAvailableIf,omitempty"`
	AllTranslatedTitle       map[string]string            `json:"allTranslatedTitle,omitempty"`
	AllTranslatedDescription map[string]string            `json:"allTranslatedDescription,omitempty"`
	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,omitempty"`
	AllTranslatedTitle map[string]string `json:"allTranslatedTitle,omitempty"`
	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"
	PropertySchemaFieldUIMargin     PropertySchemaFieldUI = "MARGIN"
	PropertySchemaFieldUIPadding    PropertySchemaFieldUI = "PADDING"
)

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"`
	Collection            *string                `json:"collection,omitempty"`
	IsList                bool                   `json:"isList"`
	IsAvailableIf         *PropertyCondition     `json:"isAvailableIf,omitempty"`
	Title                 *string                `json:"title,omitempty"`
	AllTranslatedTitle    map[string]string      `json:"allTranslatedTitle,omitempty"`
	RepresentativeFieldID *ID                    `json:"representativeFieldId,omitempty"`
	RepresentativeField   *PropertySchemaField   `json:"representativeField,omitempty"`
	Schema                *PropertySchema        `json:"schema,omitempty"`
	TranslatedTitle       string                 `json:"translatedTitle"`
}

type PublishProjectInput

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

type PublishStoryInput

type PublishStoryInput struct {
	StoryID ID                `json:"storyId"`
	Alias   *string           `json:"alias,omitempty"`
	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 Query

type Query struct {
}

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

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

type RemoveClusterPayload

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

type RemoveDatasetSchemaInput

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

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 RemoveNLSInfoboxBlockInput

type RemoveNLSInfoboxBlockInput struct {
	LayerID        ID `json:"layerId"`
	InfoboxBlockID ID `json:"infoboxBlockId"`
}

type RemoveNLSInfoboxBlockPayload

type RemoveNLSInfoboxBlockPayload struct {
	InfoboxBlockID ID       `json:"infoboxBlockId"`
	Layer          NLSLayer `json:"layer"`
}

type RemoveNLSInfoboxInput

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

type RemoveNLSInfoboxPayload

type RemoveNLSInfoboxPayload struct {
	Layer NLSLayer `json:"layer"`
}

type RemoveNLSLayerInput

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

type RemoveNLSLayerPayload

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

type RemovePropertyFieldInput

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

type RemovePropertyItemInput

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

type RemoveStoryBlockInput

type RemoveStoryBlockInput struct {
	StoryID ID `json:"storyId"`
	PageID  ID `json:"pageId"`
	BlockID ID `json:"blockId"`
}

type RemoveStoryBlockPayload

type RemoveStoryBlockPayload struct {
	BlockID ID         `json:"blockId"`
	Page    *StoryPage `json:"page"`
	Story   *Story     `json:"story"`
}

type RemoveStyleInput

type RemoveStyleInput struct {
	StyleID ID `json:"styleId"`
}

type RemoveStylePayload

type RemoveStylePayload struct {
	StyleID ID `json:"styleId"`
}

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"
	RoleMaintainer Role = "MAINTAINER"
	RoleOwner      Role = "OWNER"
)

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 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,omitempty"`
	Project           *Project                 `json:"project,omitempty"`
	Team              *Team                    `json:"team,omitempty"`
	Property          *Property                `json:"property,omitempty"`
	RootLayer         *LayerGroup              `json:"rootLayer,omitempty"`
	NewLayers         []NLSLayer               `json:"newLayers"`
	Stories           []*Story                 `json:"stories"`
	Styles            []*Style                 `json:"styles"`
	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) GetID

func (this Scene) GetID() ID

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,omitempty"`
	Plugin     *Plugin   `json:"plugin,omitempty"`
	Property   *Property `json:"property,omitempty"`
}

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,omitempty"`
	Extension   *PluginExtension `json:"extension,omitempty"`
	Property    *Property        `json:"property,omitempty"`
}

func ToSceneWidget

func ToSceneWidget(w *scene.Widget) *SceneWidget

type SignupInput

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

type SignupPayload

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

type SketchInfo

type SketchInfo struct {
	CustomPropertySchema JSON               `json:"customPropertySchema,omitempty"`
	FeatureCollection    *FeatureCollection `json:"featureCollection,omitempty"`
}

func ToNLSLayerSketchInfo

func ToNLSLayerSketchInfo(si *nlslayer.SketchInfo) *SketchInfo

type Spacing

type Spacing struct {
	Top    float64 `json:"top"`
	Bottom float64 `json:"bottom"`
	Left   float64 `json:"left"`
	Right  float64 `json:"right"`
}

type Story

type Story struct {
	ID                ID                `json:"id"`
	Title             string            `json:"title"`
	Alias             string            `json:"alias"`
	PropertyID        ID                `json:"propertyId"`
	Property          *Property         `json:"property,omitempty"`
	Pages             []*StoryPage      `json:"pages"`
	PublishmentStatus PublishmentStatus `json:"publishmentStatus"`
	CreatedAt         time.Time         `json:"createdAt"`
	UpdatedAt         time.Time         `json:"updatedAt"`
	PublishedAt       *time.Time        `json:"publishedAt,omitempty"`
	SceneID           ID                `json:"sceneId"`
	Scene             *Scene            `json:"scene,omitempty"`
	PanelPosition     Position          `json:"panelPosition"`
	BgColor           *string           `json:"bgColor,omitempty"`
	IsBasicAuthActive bool              `json:"isBasicAuthActive"`
	BasicAuthUsername string            `json:"basicAuthUsername"`
	BasicAuthPassword string            `json:"basicAuthPassword"`
	PublicTitle       string            `json:"publicTitle"`
	PublicDescription string            `json:"publicDescription"`
	PublicImage       string            `json:"publicImage"`
	PublicNoIndex     bool              `json:"publicNoIndex"`
}

func ToStories

func ToStories(sl storytelling.StoryList) []*Story

func ToStory

func ToStory(s *storytelling.Story) *Story

func (Story) GetID

func (this Story) GetID() ID

func (Story) IsNode

func (Story) IsNode()

type StoryBlock

type StoryBlock struct {
	ID              ID               `json:"id"`
	PluginID        ID               `json:"pluginId"`
	Plugin          *Plugin          `json:"plugin,omitempty"`
	ExtensionID     ID               `json:"extensionId"`
	Extension       *PluginExtension `json:"extension,omitempty"`
	PropertyID      ID               `json:"propertyId"`
	Property        *Property        `json:"property,omitempty"`
	LinkedDatasetID *ID              `json:"linkedDatasetId,omitempty"`
}

func ToBlock

func ToBlock(b *storytelling.Block) *StoryBlock

func ToBlocks

func ToBlocks(bl storytelling.BlockList) []*StoryBlock

func (StoryBlock) GetID

func (this StoryBlock) GetID() ID

func (StoryBlock) IsNode

func (StoryBlock) IsNode()

type StoryPage

type StoryPage struct {
	ID                 ID            `json:"id"`
	Title              string        `json:"title"`
	Blocks             []*StoryBlock `json:"blocks"`
	Swipeable          bool          `json:"swipeable"`
	LayersIds          []ID          `json:"layersIds"`
	Layers             []Layer       `json:"layers"`
	SwipeableLayersIds []ID          `json:"swipeableLayersIds,omitempty"`
	SwipeableLayers    []Layer       `json:"swipeableLayers,omitempty"`
	PropertyID         ID            `json:"propertyId"`
	Property           *Property     `json:"property,omitempty"`
	CreatedAt          time.Time     `json:"createdAt"`
	SceneID            ID            `json:"sceneId"`
	Scene              *Scene        `json:"scene,omitempty"`
}

func ToPage

func ToPage(p *storytelling.Page) *StoryPage

func ToPages

func ToPages(pl *storytelling.PageList) []*StoryPage

func (StoryPage) GetID

func (this StoryPage) GetID() ID

func (StoryPage) IsNode

func (StoryPage) IsNode()

type StoryPagePayload

type StoryPagePayload struct {
	Page  *StoryPage `json:"page"`
	Story *Story     `json:"story"`
}

type StoryPayload

type StoryPayload struct {
	Story *Story `json:"story"`
}

type Style

type Style struct {
	ID      ID     `json:"id"`
	Name    string `json:"name"`
	Value   JSON   `json:"value"`
	SceneID ID     `json:"sceneId"`
	Scene   *Scene `json:"scene,omitempty"`
}

func ToStyle

func ToStyle(v *scene.Style) *Style

func ToStyles

func ToStyles(styles scene.StyleList) []*Style

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()
	GetID() ID
	GetSceneID() ID
	GetLabel() string
	GetLayers() []Layer
}

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,omitempty"`
	Tags    []*TagItem `json:"tags"`
	Scene   *Scene     `json:"scene,omitempty"`
	Layers  []Layer    `json:"layers"`
}

func ToTagGroup

func ToTagGroup(tg *tag.Group) *TagGroup

func (TagGroup) GetID

func (this TagGroup) GetID() ID

func (TagGroup) GetLabel

func (this TagGroup) GetLabel() string

func (TagGroup) GetLayers

func (this TagGroup) GetLayers() []Layer

func (TagGroup) GetSceneID

func (this TagGroup) GetSceneID() ID

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,omitempty"`
	LinkedDatasetID       *ID            `json:"linkedDatasetID,omitempty"`
	LinkedDatasetSchemaID *ID            `json:"linkedDatasetSchemaID,omitempty"`
	LinkedDatasetFieldID  *ID            `json:"linkedDatasetFieldID,omitempty"`
	LinkedDatasetSchema   *DatasetSchema `json:"linkedDatasetSchema,omitempty"`
	LinkedDataset         *Dataset       `json:"linkedDataset,omitempty"`
	LinkedDatasetField    *DatasetField  `json:"linkedDatasetField,omitempty"`
	Parent                *TagGroup      `json:"parent,omitempty"`
	Layers                []Layer        `json:"layers"`
}

func ToTagItem

func ToTagItem(ti *tag.Item) *TagItem

func (TagItem) GetID

func (this TagItem) GetID() ID

func (TagItem) GetLabel

func (this TagItem) GetLabel() string

func (TagItem) GetLayers

func (this TagItem) GetLayers() []Layer

func (TagItem) GetSceneID

func (this TagItem) GetSceneID() ID

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"`
	PolicyID *ID                `json:"policyId,omitempty"`
	Policy   *Policy            `json:"policy,omitempty"`
	Assets   *AssetConnection   `json:"assets"`
	Projects *ProjectConnection `json:"projects"`
}

func ToWorkspace

func ToWorkspace(t *workspace.Workspace) *Team

func (Team) GetID

func (this Team) GetID() ID

func (Team) IsNode

func (Team) IsNode()

type TeamMember

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

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 Timeline

type Timeline struct {
	CurrentTime *string `json:"currentTime,omitempty"`
	StartTime   *string `json:"startTime,omitempty"`
	EndTime     *string `json:"endTime,omitempty"`
}

type Typography

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

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,omitempty"`
	ItemID        *ID `json:"itemId,omitempty"`
	FieldID       ID  `json:"fieldId"`
}

type UpdateClusterInput

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

type UpdateClusterPayload

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,omitempty"`
}

type UpdateGeoJSONFeatureInput

type UpdateGeoJSONFeatureInput struct {
	FeatureID  ID   `json:"featureId"`
	Geometry   JSON `json:"geometry,omitempty"`
	Properties JSON `json:"properties,omitempty"`
	LayerID    ID   `json:"layerId"`
}

type UpdateLayerInput

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

type UpdateLayerPayload

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

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 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 UpdateNLSLayerInput

type UpdateNLSLayerInput struct {
	LayerID ID      `json:"layerId"`
	Name    *string `json:"name,omitempty"`
	Visible *bool   `json:"visible,omitempty"`
	Config  JSON    `json:"config,omitempty"`
}

type UpdateNLSLayerPayload

type UpdateNLSLayerPayload struct {
	Layer NLSLayer `json:"layer"`
}

type UpdateProjectInput

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

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,omitempty"`
	Index          *int          `json:"index,omitempty"`
	NameFieldValue interface{}   `json:"nameFieldValue,omitempty"`
	NameFieldType  *ValueType    `json:"nameFieldType,omitempty"`
}

type UpdatePropertyValueInput

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

type UpdateStoryInput

type UpdateStoryInput struct {
	SceneID           ID        `json:"sceneId"`
	StoryID           ID        `json:"storyId"`
	Title             *string   `json:"title,omitempty"`
	Index             *int      `json:"index,omitempty"`
	PanelPosition     *Position `json:"panelPosition,omitempty"`
	BgColor           *string   `json:"bgColor,omitempty"`
	IsBasicAuthActive *bool     `json:"isBasicAuthActive,omitempty"`
	BasicAuthUsername *string   `json:"basicAuthUsername,omitempty"`
	BasicAuthPassword *string   `json:"basicAuthPassword,omitempty"`
	Alias             *string   `json:"alias,omitempty"`
	PublicTitle       *string   `json:"publicTitle,omitempty"`
	PublicDescription *string   `json:"publicDescription,omitempty"`
	PublicImage       *string   `json:"publicImage,omitempty"`
	PublicNoIndex     *bool     `json:"publicNoIndex,omitempty"`
	DeletePublicImage *bool     `json:"deletePublicImage,omitempty"`
}

type UpdateStoryPageInput

type UpdateStoryPageInput struct {
	SceneID         ID      `json:"sceneId"`
	StoryID         ID      `json:"storyId"`
	PageID          ID      `json:"pageId"`
	Title           *string `json:"title,omitempty"`
	Swipeable       *bool   `json:"swipeable,omitempty"`
	Layers          []ID    `json:"layers,omitempty"`
	SwipeableLayers []ID    `json:"swipeableLayers,omitempty"`
	Index           *int    `json:"index,omitempty"`
}

type UpdateStyleInput

type UpdateStyleInput struct {
	StyleID ID      `json:"styleId"`
	Name    *string `json:"name,omitempty"`
	Value   JSON    `json:"value,omitempty"`
}

type UpdateStylePayload

type UpdateStylePayload struct {
	Style *Style `json:"style"`
}

type UpdateTagInput

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

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,omitempty"`
	Padding    *WidgetAreaPaddingInput `json:"padding,omitempty"`
	Gap        *int                    `json:"gap,omitempty"`
	Centered   *bool                   `json:"centered,omitempty"`
	Background *string                 `json:"background,omitempty"`
}

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,omitempty"`
	Location *WidgetLocationInput `json:"location,omitempty"`
	Extended *bool                `json:"extended,omitempty"`
	Index    *int                 `json:"index,omitempty"`
}

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,omitempty"`
	ItemID        *ID            `json:"itemId,omitempty"`
	FieldID       ID             `json:"fieldId"`
	File          graphql.Upload `json:"file"`
}

type UploadPluginInput

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

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"`
	Host  *string `json:"host,omitempty"`
}

func ToUser

func ToUser(u *user.User) *User

func ToUserFromSimple

func ToUserFromSimple(u *user.Simple) *User

func (User) GetID

func (this User) GetID() ID

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"
	ValueTypeSpacing      ValueType = "SPACING"
	ValueTypeArray        ValueType = "ARRAY"
	ValueTypeTimeline     ValueType = "TIMELINE"
)

func ToValueType

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,omitempty"`
	Outer *WidgetZone `json:"outer,omitempty"`
}

func ToWidgetAlignSystem

func ToWidgetAlignSystem(sas *scene.WidgetAlignSystem) *WidgetAlignSystem

type WidgetArea

type WidgetArea struct {
	WidgetIds  []ID               `json:"widgetIds"`
	Align      WidgetAreaAlign    `json:"align"`
	Padding    *WidgetAreaPadding `json:"padding,omitempty"`
	Gap        *int               `json:"gap,omitempty"`
	Centered   bool               `json:"centered"`
	Background *string            `json:"background,omitempty"`
}

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 WidgetAreaPadding

type WidgetAreaPadding struct {
	Top    int `json:"top"`
	Bottom int `json:"bottom"`
	Left   int `json:"left"`
	Right  int `json:"right"`
}

func ToWidgetAreaPadding

func ToWidgetAreaPadding(p *scene.WidgetAreaPadding) *WidgetAreaPadding

type WidgetAreaPaddingInput

type WidgetAreaPaddingInput struct {
	Top    int `json:"top"`
	Bottom int `json:"bottom"`
	Left   int `json:"left"`
	Right  int `json:"right"`
}

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,omitempty"`
}

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,omitempty"`
	Middle *WidgetArea `json:"middle,omitempty"`
	Bottom *WidgetArea `json:"bottom,omitempty"`
}

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,omitempty"`
	Center *WidgetSection `json:"center,omitempty"`
	Right  *WidgetSection `json:"right,omitempty"`
}

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