Documentation ¶
Index ¶
- Variables
- func AssetSortTypeFrom(ast *AssetSortType) *asset.SortType
- func BoolToRef(b bool) *bool
- func FromFile(f *graphql.Upload) *file.File
- func FromLayerEncodingFormat(v LayerEncodingFormat) decoding.LayerEncodingFormat
- func FromListOperation(op ListOperation) interfaces.ListOperation
- func FromPointer(schemaItem *id.PropertySchemaGroupID, item *ID, field *id.PropertyFieldID) *property.Pointer
- func FromPropertyFieldLink(datasetSchema, ds, fields []ID) (*property.Links, error)
- func FromPropertyValueAndType(v interface{}, t ValueType) *property.Value
- func FromPublishmentStatus(v PublishmentStatus) project.PublishmentStatus
- func FromRole(r Role) user.Role
- func FromSceneWidgetAreaType(t WidgetAreaType) scene.WidgetAreaType
- func FromSceneWidgetLocation(l *WidgetLocationInput) *scene.WidgetLocation
- func FromSceneWidgetSectionType(t WidgetSectionType) scene.WidgetSectionType
- func FromSceneWidgetZoneType(t WidgetZoneType) scene.WidgetZoneType
- func FromValueType(t ValueType) value.Type
- func FromWidgetAlignType(a *WidgetAreaAlign) *scene.WidgetAlignType
- func MarshalCursor(t usecase.Cursor) graphql.Marshaler
- func MarshalDatasetFieldID(t id.DatasetFieldID) graphql.Marshaler
- func MarshalLang(t language.Tag) graphql.Marshaler
- func MarshalMap(val map[string]string) graphql.Marshaler
- func MarshalPluginExtensionID(t id.PluginExtensionID) graphql.Marshaler
- func MarshalPluginID(t id.PluginID) graphql.Marshaler
- func MarshalPropertyFieldID(t id.PropertyFieldID) graphql.Marshaler
- func MarshalPropertySchemaGroupID(t id.PropertySchemaGroupID) graphql.Marshaler
- func MarshalPropertySchemaID(t id.PropertySchemaID) graphql.Marshaler
- func MarshalURL(t url.URL) graphql.Marshaler
- func RefToIndex(i *int) int
- func RefToString(s *string) string
- func ToDatasetValue(v *dataset.Value) *interface{}
- func ToID[A idx.Type](a ID) (idx.ID[A], error)
- func ToID2[A, B idx.Type](a, b ID) (ai idx.ID[A], bi idx.ID[B], err error)
- func ToID3[A, B, C idx.Type](a, b, c ID) (ai idx.ID[A], bi idx.ID[B], ci idx.ID[C], err error)
- func ToIDRef[A idx.Type](a *ID) *idx.ID[A]
- func ToPagination(pagination *Pagination) *usecase.Pagination
- func ToPluginID(a ID) (id.PluginID, error)
- func ToPluginID2(a, b ID) (ai id.PluginID, bi id.PluginID, err error)
- func ToPluginIDRef(a *ID) *id.PluginID
- func ToPropertyLatLng(lat, lng *float64) *property.LatLng
- func ToPropertySchemaID(a ID) (id.PropertySchemaID, error)
- func ToPropertySchemaIDRef(a *ID) *id.PropertySchemaID
- func ToPropertyValue(v *property.Value) *interface{}
- func ToStringIDRef[T idx.Type](a *ID) *idx.StringID[T]
- func ToTheme(t *Theme) *user.Theme
- func UnmarshalCursor(v interface{}) (usecase.Cursor, error)
- func UnmarshalDatasetFieldID(v interface{}) (id.DatasetFieldID, error)
- func UnmarshalLang(v interface{}) (language.Tag, error)
- func UnmarshalMap(v interface{}) (map[string]string, error)
- func UnmarshalPluginExtensionID(v interface{}) (id.PluginExtensionID, error)
- func UnmarshalPluginID(v interface{}) (id.PluginID, error)
- func UnmarshalPropertyFieldID(v interface{}) (id.PropertyFieldID, error)
- func UnmarshalPropertySchemaGroupID(v interface{}) (id.PropertySchemaGroupID, error)
- func UnmarshalPropertySchemaID(v interface{}) (id.PropertySchemaID, error)
- func UnmarshalURL(v interface{}) (url.URL, error)
- type AddClusterInput
- type AddClusterPayload
- type AddDatasetSchemaInput
- type AddDatasetSchemaPayload
- type AddDynamicDatasetInput
- type AddDynamicDatasetPayload
- type AddDynamicDatasetSchemaInput
- type AddDynamicDatasetSchemaPayload
- type AddInfoboxFieldInput
- type AddInfoboxFieldPayload
- type AddLayerGroupInput
- type AddLayerGroupPayload
- type AddLayerItemInput
- type AddLayerItemPayload
- type AddMemberToTeamInput
- type AddMemberToTeamPayload
- type AddPropertyItemInput
- type AddWidgetInput
- type AddWidgetPayload
- type Asset
- type AssetConnection
- type AssetEdge
- type AssetSortType
- type AttachTagItemToGroupInput
- type AttachTagItemToGroupPayload
- type AttachTagToLayerInput
- type AttachTagToLayerPayload
- type Camera
- type Cluster
- type CreateAssetInput
- type CreateAssetPayload
- type CreateInfoboxInput
- type CreateInfoboxPayload
- type CreateProjectInput
- type CreateSceneInput
- type CreateScenePayload
- type CreateTagGroupInput
- type CreateTagGroupPayload
- type CreateTagItemInput
- type CreateTagItemPayload
- type CreateTeamInput
- type CreateTeamPayload
- type Dataset
- type DatasetConnection
- type DatasetEdge
- type DatasetField
- type DatasetSchema
- type DatasetSchemaConnection
- type DatasetSchemaEdge
- type DatasetSchemaField
- type DeleteMeInput
- type DeleteMePayload
- type DeleteProjectInput
- type DeleteProjectPayload
- type DeleteTeamInput
- type DeleteTeamPayload
- type DetachTagFromLayerInput
- type DetachTagFromLayerPayload
- type DetachTagItemFromGroupInput
- type DetachTagItemFromGroupPayload
- type ID
- func IDFrom[T idx.Type](i idx.ID[T]) ID
- func IDFromPluginID(i id.PluginID) ID
- func IDFromPluginIDRef(i *id.PluginID) *ID
- func IDFromPropertySchemaID(i id.PropertySchemaID) ID
- func IDFromPropertySchemaIDRef(i *id.PropertySchemaID) *ID
- func IDFromRef[T idx.Type](i *idx.ID[T]) *ID
- func IDFromStringRef[T idx.Type](i *idx.StringID[T]) *ID
- type ImportDatasetFromGoogleSheetInput
- type ImportDatasetInput
- type ImportDatasetPayload
- type ImportLayerInput
- type ImportLayerPayload
- type Infobox
- type InfoboxField
- type InstallPluginInput
- type InstallPluginPayload
- type LatLng
- type LatLngHeight
- type Layer
- type LayerEncodingFormat
- type LayerGroup
- type LayerItem
- type LayerTag
- type LayerTagGroup
- type LayerTagItem
- type LinkDatasetToPropertyValueInput
- type ListOperation
- type Me
- type MergedInfobox
- type MergedInfoboxField
- type MergedLayer
- type MergedProperty
- type MergedPropertyField
- type MergedPropertyGroup
- type MoveInfoboxFieldInput
- type MoveInfoboxFieldPayload
- type MoveLayerInput
- type MoveLayerPayload
- type MovePropertyItemInput
- type Node
- type NodeType
- type PageInfo
- type Pagination
- type Plugin
- type PluginExtension
- type PluginExtensionType
- type PluginMetadata
- type Project
- type ProjectAliasAvailability
- type ProjectConnection
- type ProjectEdge
- type ProjectPayload
- type Property
- type PropertyCondition
- type PropertyField
- type PropertyFieldLink
- type PropertyFieldPayload
- type PropertyGroup
- type PropertyGroupList
- type PropertyItem
- type PropertyItemPayload
- type PropertyLinkableFields
- type PropertySchema
- type PropertySchemaField
- type PropertySchemaFieldChoice
- type PropertySchemaFieldUI
- type PropertySchemaGroup
- type PublishProjectInput
- type PublishmentStatus
- type Rect
- type RemoveAssetInput
- type RemoveAssetPayload
- type RemoveClusterInput
- type RemoveClusterPayload
- type RemoveDatasetSchemaInput
- type RemoveDatasetSchemaPayload
- type RemoveInfoboxFieldInput
- type RemoveInfoboxFieldPayload
- type RemoveInfoboxInput
- type RemoveInfoboxPayload
- type RemoveLayerInput
- type RemoveLayerPayload
- type RemoveMemberFromTeamInput
- type RemoveMemberFromTeamPayload
- type RemoveMyAuthInput
- type RemovePropertyFieldInput
- type RemovePropertyItemInput
- type RemoveTagInput
- type RemoveTagPayload
- type RemoveWidgetInput
- type RemoveWidgetPayload
- type Role
- type Scene
- type ScenePlugin
- type SceneWidget
- type SignupInput
- type SignupPayload
- type SyncDatasetInput
- type SyncDatasetPayload
- type Tag
- type TagGroup
- type TagItem
- type Team
- type TeamMember
- type TextAlign
- type Theme
- type Typography
- type UninstallPluginInput
- type UninstallPluginPayload
- type UnlinkPropertyValueInput
- type UpdateClusterInput
- type UpdateClusterPayload
- type UpdateDatasetSchemaInput
- type UpdateDatasetSchemaPayload
- type UpdateLayerInput
- type UpdateLayerPayload
- type UpdateMeInput
- type UpdateMePayload
- type UpdateMemberOfTeamInput
- type UpdateMemberOfTeamPayload
- type UpdateProjectInput
- type UpdatePropertyItemInput
- type UpdatePropertyItemOperationInput
- type UpdatePropertyValueInput
- type UpdateTagInput
- type UpdateTagPayload
- type UpdateTeamInput
- type UpdateTeamPayload
- type UpdateWidgetAlignSystemInput
- type UpdateWidgetAlignSystemPayload
- type UpdateWidgetInput
- type UpdateWidgetPayload
- type UpgradePluginInput
- type UpgradePluginPayload
- type UploadFileToPropertyInput
- type UploadPluginInput
- type UploadPluginPayload
- type User
- type ValueType
- type Visualizer
- type WidgetAlignSystem
- type WidgetArea
- type WidgetAreaAlign
- type WidgetAreaType
- type WidgetExtendable
- type WidgetLayout
- type WidgetLocation
- type WidgetLocationInput
- type WidgetSection
- type WidgetSectionType
- type WidgetZone
- type WidgetZoneType
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAssetSortType = []AssetSortType{ AssetSortTypeDate, AssetSortTypeSize, AssetSortTypeName, }
View Source
var AllLayerEncodingFormat = []LayerEncodingFormat{ LayerEncodingFormatKml, LayerEncodingFormatCzml, LayerEncodingFormatGeojson, LayerEncodingFormatShape, LayerEncodingFormatReearth, }
View Source
var AllListOperation = []ListOperation{ ListOperationAdd, ListOperationMove, ListOperationRemove, }
View Source
var AllNodeType = []NodeType{ NodeTypeAsset, NodeTypeUser, NodeTypeTeam, NodeTypeProject, NodeTypePlugin, NodeTypeScene, NodeTypePropertySchema, NodeTypeProperty, NodeTypeDatasetSchema, NodeTypeDataset, NodeTypeLayerGroup, NodeTypeLayerItem, }
View Source
var AllPluginExtensionType = []PluginExtensionType{ PluginExtensionTypePrimitive, PluginExtensionTypeWidget, PluginExtensionTypeBlock, PluginExtensionTypeVisualizer, PluginExtensionTypeInfobox, }
View Source
var AllPropertySchemaFieldUI = []PropertySchemaFieldUI{ PropertySchemaFieldUILayer, PropertySchemaFieldUIMultiline, PropertySchemaFieldUISelection, PropertySchemaFieldUIColor, PropertySchemaFieldUIRange, PropertySchemaFieldUISlider, PropertySchemaFieldUIImage, PropertySchemaFieldUIVideo, PropertySchemaFieldUIFile, PropertySchemaFieldUICameraPose, PropertySchemaFieldUIDatetime, }
View Source
var AllPublishmentStatus = []PublishmentStatus{ PublishmentStatusPublic, PublishmentStatusLimited, PublishmentStatusPrivate, }
View Source
var AllRole = []Role{ RoleReader, RoleWriter, RoleOwner, }
View Source
var AllTextAlign = []TextAlign{ TextAlignLeft, TextAlignCenter, TextAlignRight, TextAlignJustify, TextAlignJustifyAll, }
View Source
var AllTheme = []Theme{ ThemeDefault, ThemeLight, ThemeDark, }
View Source
var AllValueType = []ValueType{ ValueTypeBool, ValueTypeNumber, ValueTypeString, ValueTypeRef, ValueTypeURL, ValueTypeLatlng, ValueTypeLatlngheight, ValueTypeCamera, ValueTypeTypography, ValueTypeCoordinates, ValueTypePolygon, ValueTypeRect, }
View Source
var AllVisualizer = []Visualizer{ VisualizerCesium, }
View Source
var AllWidgetAreaAlign = []WidgetAreaAlign{ WidgetAreaAlignStart, WidgetAreaAlignCentered, WidgetAreaAlignEnd, }
View Source
var AllWidgetAreaType = []WidgetAreaType{ WidgetAreaTypeTop, WidgetAreaTypeMiddle, WidgetAreaTypeBottom, }
View Source
var AllWidgetSectionType = []WidgetSectionType{ WidgetSectionTypeLeft, WidgetSectionTypeCenter, WidgetSectionTypeRight, }
View Source
var AllWidgetZoneType = []WidgetZoneType{ WidgetZoneTypeInner, WidgetZoneTypeOuter, }
Functions ¶
func AssetSortTypeFrom ¶ added in v0.6.0
func AssetSortTypeFrom(ast *AssetSortType) *asset.SortType
func FromLayerEncodingFormat ¶
func FromLayerEncodingFormat(v LayerEncodingFormat) decoding.LayerEncodingFormat
func FromListOperation ¶
func FromListOperation(op ListOperation) interfaces.ListOperation
func FromPointer ¶
func FromPointer(schemaItem *id.PropertySchemaGroupID, item *ID, field *id.PropertyFieldID) *property.Pointer
func FromPropertyFieldLink ¶
func FromPublishmentStatus ¶
func FromPublishmentStatus(v PublishmentStatus) project.PublishmentStatus
func FromSceneWidgetAreaType ¶
func FromSceneWidgetAreaType(t WidgetAreaType) scene.WidgetAreaType
func FromSceneWidgetLocation ¶
func FromSceneWidgetLocation(l *WidgetLocationInput) *scene.WidgetLocation
func FromSceneWidgetSectionType ¶
func FromSceneWidgetSectionType(t WidgetSectionType) scene.WidgetSectionType
func FromSceneWidgetZoneType ¶
func FromSceneWidgetZoneType(t WidgetZoneType) scene.WidgetZoneType
func FromValueType ¶ added in v0.3.0
func FromWidgetAlignType ¶
func FromWidgetAlignType(a *WidgetAreaAlign) *scene.WidgetAlignType
func MarshalDatasetFieldID ¶ added in v0.6.1
func MarshalDatasetFieldID(t id.DatasetFieldID) graphql.Marshaler
func MarshalPluginExtensionID ¶
func MarshalPluginExtensionID(t id.PluginExtensionID) graphql.Marshaler
func MarshalPropertyFieldID ¶ added in v0.6.1
func MarshalPropertyFieldID(t id.PropertyFieldID) graphql.Marshaler
func MarshalPropertySchemaGroupID ¶ added in v0.2.0
func MarshalPropertySchemaGroupID(t id.PropertySchemaGroupID) graphql.Marshaler
func MarshalPropertySchemaID ¶
func MarshalPropertySchemaID(t id.PropertySchemaID) graphql.Marshaler
func RefToIndex ¶
func RefToString ¶
func ToDatasetValue ¶
func ToPagination ¶ added in v0.6.0
func ToPagination(pagination *Pagination) *usecase.Pagination
func ToPluginID2 ¶ added in v0.6.1
func ToPluginIDRef ¶ added in v0.6.1
func ToPropertyLatLng ¶
func ToPropertySchemaID ¶ added in v0.6.1
func ToPropertySchemaID(a ID) (id.PropertySchemaID, error)
func ToPropertySchemaIDRef ¶ added in v0.6.1
func ToPropertySchemaIDRef(a *ID) *id.PropertySchemaID
func ToPropertyValue ¶
func UnmarshalCursor ¶
func UnmarshalDatasetFieldID ¶ added in v0.6.1
func UnmarshalDatasetFieldID(v interface{}) (id.DatasetFieldID, error)
func UnmarshalLang ¶
func UnmarshalMap ¶
func UnmarshalPluginExtensionID ¶
func UnmarshalPluginExtensionID(v interface{}) (id.PluginExtensionID, error)
func UnmarshalPluginID ¶
func UnmarshalPropertyFieldID ¶ added in v0.6.1
func UnmarshalPropertyFieldID(v interface{}) (id.PropertyFieldID, error)
func UnmarshalPropertySchemaGroupID ¶ added in v0.2.0
func UnmarshalPropertySchemaGroupID(v interface{}) (id.PropertySchemaGroupID, error)
func UnmarshalPropertySchemaID ¶
func UnmarshalPropertySchemaID(v interface{}) (id.PropertySchemaID, error)
func UnmarshalURL ¶
Types ¶
type AddClusterInput ¶ added in v0.3.0
type AddClusterPayload ¶ added in v0.3.0
type AddDatasetSchemaInput ¶
type AddDatasetSchemaPayload ¶
type AddDatasetSchemaPayload struct {
DatasetSchema *DatasetSchema `json:"datasetSchema"`
}
type AddDynamicDatasetInput ¶
type AddDynamicDatasetPayload ¶
type AddDynamicDatasetPayload struct { DatasetSchema *DatasetSchema `json:"datasetSchema"` Dataset *Dataset `json:"dataset"` }
type AddDynamicDatasetSchemaInput ¶
type AddDynamicDatasetSchemaInput struct {
SceneID ID `json:"sceneId"`
}
type AddDynamicDatasetSchemaPayload ¶
type AddDynamicDatasetSchemaPayload struct {
DatasetSchema *DatasetSchema `json:"datasetSchema"`
}
type AddInfoboxFieldInput ¶
type AddInfoboxFieldPayload ¶
type AddInfoboxFieldPayload struct { InfoboxField *InfoboxField `json:"infoboxField"` Layer Layer `json:"layer"` }
type AddLayerGroupInput ¶
type AddLayerGroupInput struct { ParentLayerID ID `json:"parentLayerId"` PluginID *ID `json:"pluginId"` ExtensionID *ID `json:"extensionId"` Index *int `json:"index"` LinkedDatasetSchemaID *ID `json:"linkedDatasetSchemaID"` Name *string `json:"name"` RepresentativeFieldID *ID `json:"representativeFieldId"` }
type AddLayerGroupPayload ¶
type AddLayerGroupPayload struct { Layer *LayerGroup `json:"layer"` ParentLayer *LayerGroup `json:"parentLayer"` Index *int `json:"index"` }
type AddLayerItemInput ¶
type AddLayerItemPayload ¶
type AddLayerItemPayload struct { Layer *LayerItem `json:"layer"` ParentLayer *LayerGroup `json:"parentLayer"` Index *int `json:"index"` }
type AddMemberToTeamInput ¶
type AddMemberToTeamPayload ¶
type AddMemberToTeamPayload struct {
Team *Team `json:"team"`
}
type AddPropertyItemInput ¶
type AddWidgetInput ¶
type AddWidgetPayload ¶
type AddWidgetPayload struct { Scene *Scene `json:"scene"` SceneWidget *SceneWidget `json:"sceneWidget"` }
type Asset ¶
type AssetConnection ¶
type AssetSortType ¶ added in v0.6.0
type AssetSortType string
const ( AssetSortTypeDate AssetSortType = "DATE" AssetSortTypeSize AssetSortType = "SIZE" AssetSortTypeName AssetSortType = "NAME" )
func (AssetSortType) IsValid ¶ added in v0.6.0
func (e AssetSortType) IsValid() bool
func (AssetSortType) MarshalGQL ¶ added in v0.6.0
func (e AssetSortType) MarshalGQL(w io.Writer)
func (AssetSortType) String ¶ added in v0.6.0
func (e AssetSortType) String() string
func (*AssetSortType) UnmarshalGQL ¶ added in v0.6.0
func (e *AssetSortType) UnmarshalGQL(v interface{}) error
type AttachTagItemToGroupPayload ¶
type AttachTagItemToGroupPayload struct {
Tag *TagGroup `json:"tag"`
}
type AttachTagToLayerInput ¶
type AttachTagToLayerPayload ¶
type AttachTagToLayerPayload struct {
Layer Layer `json:"layer"`
}
type Cluster ¶ added in v0.3.0
type CreateAssetInput ¶
type CreateAssetPayload ¶
type CreateAssetPayload struct {
Asset *Asset `json:"asset"`
}
type CreateInfoboxInput ¶
type CreateInfoboxInput struct {
LayerID ID `json:"layerId"`
}
type CreateInfoboxPayload ¶
type CreateInfoboxPayload struct {
Layer Layer `json:"layer"`
}
type CreateProjectInput ¶
type CreateSceneInput ¶
type CreateSceneInput struct {
ProjectID ID `json:"projectId"`
}
type CreateScenePayload ¶
type CreateScenePayload struct {
Scene *Scene `json:"scene"`
}
type CreateTagGroupInput ¶
type CreateTagGroupPayload ¶
type CreateTagGroupPayload struct {
Tag *TagGroup `json:"tag"`
}
type CreateTagItemInput ¶
type CreateTagItemPayload ¶
type CreateTeamInput ¶
type CreateTeamInput struct {
Name string `json:"name"`
}
type CreateTeamPayload ¶
type CreateTeamPayload struct {
Team *Team `json:"team"`
}
type Dataset ¶
type Dataset struct { ID ID `json:"id"` Source string `json:"source"` SchemaID ID `json:"schemaId"` Fields []*DatasetField `json:"fields"` Schema *DatasetSchema `json:"schema"` Name *string `json:"name"` }
func (*Dataset) Field ¶
func (d *Dataset) Field(id ID) *DatasetField
type DatasetConnection ¶
type DatasetConnection struct { Edges []*DatasetEdge `json:"edges"` Nodes []*Dataset `json:"nodes"` PageInfo *PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
type DatasetEdge ¶
type DatasetField ¶
type DatasetField struct { FieldID ID `json:"fieldId"` SchemaID ID `json:"schemaId"` Source string `json:"source"` Type ValueType `json:"type"` Value interface{} `json:"value"` Schema *DatasetSchema `json:"schema"` Field *DatasetSchemaField `json:"field"` ValueRef *Dataset `json:"valueRef"` }
func ToDatasetField ¶
func ToDatasetField(f *dataset.Field, parent *dataset.Dataset) *DatasetField
type DatasetSchema ¶
type DatasetSchema struct { ID ID `json:"id"` Source string `json:"source"` Name string `json:"name"` SceneID ID `json:"sceneId"` Fields []*DatasetSchemaField `json:"fields"` TotalCount int `json:"totalCount"` RepresentativeFieldID *ID `json:"representativeFieldId"` Dynamic *bool `json:"dynamic"` Datasets *DatasetConnection `json:"datasets"` Scene *Scene `json:"scene"` RepresentativeField *DatasetSchemaField `json:"representativeField"` }
func ToDatasetSchema ¶
func ToDatasetSchema(ds *dataset.Schema) *DatasetSchema
func (*DatasetSchema) Field ¶
func (d *DatasetSchema) Field(id ID) *DatasetSchemaField
func (DatasetSchema) IsNode ¶
func (DatasetSchema) IsNode()
type DatasetSchemaConnection ¶
type DatasetSchemaConnection struct { Edges []*DatasetSchemaEdge `json:"edges"` Nodes []*DatasetSchema `json:"nodes"` PageInfo *PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
type DatasetSchemaEdge ¶
type DatasetSchemaEdge struct { Cursor usecase.Cursor `json:"cursor"` Node *DatasetSchema `json:"node"` }
type DatasetSchemaField ¶
type DatasetSchemaField struct { ID ID `json:"id"` Source string `json:"source"` Name string `json:"name"` Type ValueType `json:"type"` SchemaID ID `json:"schemaId"` RefID *ID `json:"refId"` Schema *DatasetSchema `json:"schema"` Ref *DatasetSchema `json:"ref"` }
func (DatasetSchemaField) IsNode ¶
func (DatasetSchemaField) IsNode()
type DeleteMeInput ¶
type DeleteMeInput struct {
UserID ID `json:"userId"`
}
type DeleteMePayload ¶
type DeleteMePayload struct {
UserID ID `json:"userId"`
}
type DeleteProjectInput ¶
type DeleteProjectInput struct {
ProjectID ID `json:"projectId"`
}
type DeleteProjectPayload ¶
type DeleteProjectPayload struct {
ProjectID ID `json:"projectId"`
}
type DeleteTeamInput ¶
type DeleteTeamInput struct {
TeamID ID `json:"teamId"`
}
type DeleteTeamPayload ¶
type DeleteTeamPayload struct {
TeamID ID `json:"teamId"`
}
type DetachTagFromLayerInput ¶
type DetachTagFromLayerPayload ¶
type DetachTagFromLayerPayload struct {
Layer Layer `json:"layer"`
}
type DetachTagItemFromGroupPayload ¶
type DetachTagItemFromGroupPayload struct {
Tag *TagGroup `json:"tag"`
}
type ID ¶ added in v0.6.1
type ID string
func IDFromPluginID ¶ added in v0.6.1
func IDFromPluginIDRef ¶ added in v0.6.1
func IDFromPropertySchemaID ¶ added in v0.6.1
func IDFromPropertySchemaID(i id.PropertySchemaID) ID
func IDFromPropertySchemaIDRef ¶ added in v0.6.1
func IDFromPropertySchemaIDRef(i *id.PropertySchemaID) *ID
type ImportDatasetInput ¶
type ImportDatasetPayload ¶
type ImportDatasetPayload struct {
DatasetSchema *DatasetSchema `json:"datasetSchema"`
}
type ImportLayerInput ¶
type ImportLayerInput struct { LayerID ID `json:"layerId"` File graphql.Upload `json:"file"` Format LayerEncodingFormat `json:"format"` }
type ImportLayerPayload ¶
type ImportLayerPayload struct { Layers []Layer `json:"layers"` ParentLayer *LayerGroup `json:"parentLayer"` }
type Infobox ¶
type Infobox struct { SceneID ID `json:"sceneId"` LayerID ID `json:"layerId"` PropertyID ID `json:"propertyId"` Fields []*InfoboxField `json:"fields"` LinkedDatasetID *ID `json:"linkedDatasetId"` Layer Layer `json:"layer"` Property *Property `json:"property"` LinkedDataset *Dataset `json:"linkedDataset"` Merged *MergedInfobox `json:"merged"` Scene *Scene `json:"scene"` }
func (*Infobox) Field ¶
func (d *Infobox) Field(id ID) *InfoboxField
type InfoboxField ¶
type InfoboxField struct { ID ID `json:"id"` SceneID ID `json:"sceneId"` LayerID ID `json:"layerId"` PropertyID ID `json:"propertyId"` PluginID ID `json:"pluginId"` ExtensionID ID `json:"extensionId"` LinkedDatasetID *ID `json:"linkedDatasetId"` Layer Layer `json:"layer"` Infobox *Infobox `json:"infobox"` Property *Property `json:"property"` Plugin *Plugin `json:"plugin"` Extension *PluginExtension `json:"extension"` LinkedDataset *Dataset `json:"linkedDataset"` Merged *MergedInfoboxField `json:"merged"` Scene *Scene `json:"scene"` ScenePlugin *ScenePlugin `json:"scenePlugin"` }
func ToInfoboxField ¶
func ToInfoboxField(ibf *layer.InfoboxField, parentSceneID id.SceneID, parentDatasetID *id.DatasetID) *InfoboxField
type InstallPluginInput ¶
type InstallPluginPayload ¶
type InstallPluginPayload struct { Scene *Scene `json:"scene"` ScenePlugin *ScenePlugin `json:"scenePlugin"` }
type LatLngHeight ¶
type LayerEncodingFormat ¶
type LayerEncodingFormat string
const ( LayerEncodingFormatKml LayerEncodingFormat = "KML" LayerEncodingFormatCzml LayerEncodingFormat = "CZML" LayerEncodingFormatGeojson LayerEncodingFormat = "GEOJSON" LayerEncodingFormatShape LayerEncodingFormat = "SHAPE" LayerEncodingFormatReearth LayerEncodingFormat = "REEARTH" )
func (LayerEncodingFormat) IsValid ¶
func (e LayerEncodingFormat) IsValid() bool
func (LayerEncodingFormat) MarshalGQL ¶
func (e LayerEncodingFormat) MarshalGQL(w io.Writer)
func (LayerEncodingFormat) String ¶
func (e LayerEncodingFormat) String() string
func (*LayerEncodingFormat) UnmarshalGQL ¶
func (e *LayerEncodingFormat) UnmarshalGQL(v interface{}) error
type LayerGroup ¶
type LayerGroup struct { ID ID `json:"id"` SceneID ID `json:"sceneId"` Name string `json:"name"` IsVisible bool `json:"isVisible"` PropertyID *ID `json:"propertyId"` PluginID *ID `json:"pluginId"` ExtensionID *ID `json:"extensionId"` Infobox *Infobox `json:"infobox"` ParentID *ID `json:"parentId"` LinkedDatasetSchemaID *ID `json:"linkedDatasetSchemaId"` Root bool `json:"root"` LayerIds []ID `json:"layerIds"` Tags []LayerTag `json:"tags"` Parent *LayerGroup `json:"parent"` Property *Property `json:"property"` Plugin *Plugin `json:"plugin"` Extension *PluginExtension `json:"extension"` LinkedDatasetSchema *DatasetSchema `json:"linkedDatasetSchema"` Layers []Layer `json:"layers"` Scene *Scene `json:"scene"` ScenePlugin *ScenePlugin `json:"scenePlugin"` }
func ToLayerGroup ¶
func ToLayerGroup(l *layer.Group, parent *id.LayerID) *LayerGroup
func (LayerGroup) IsLayer ¶
func (LayerGroup) IsLayer()
func (LayerGroup) IsNode ¶
func (LayerGroup) IsNode()
type LayerItem ¶
type LayerItem struct { ID ID `json:"id"` SceneID ID `json:"sceneId"` Name string `json:"name"` IsVisible bool `json:"isVisible"` PropertyID *ID `json:"propertyId"` PluginID *ID `json:"pluginId"` ExtensionID *ID `json:"extensionId"` Infobox *Infobox `json:"infobox"` ParentID *ID `json:"parentId"` LinkedDatasetID *ID `json:"linkedDatasetId"` Tags []LayerTag `json:"tags"` Parent *LayerGroup `json:"parent"` Property *Property `json:"property"` Plugin *Plugin `json:"plugin"` Extension *PluginExtension `json:"extension"` LinkedDataset *Dataset `json:"linkedDataset"` Merged *MergedLayer `json:"merged"` Scene *Scene `json:"scene"` ScenePlugin *ScenePlugin `json:"scenePlugin"` }
type LayerTag ¶ added in v0.3.0
type LayerTag interface {
IsLayerTag()
}
func ToLayerTag ¶ added in v0.3.0
type LayerTagGroup ¶ added in v0.3.0
type LayerTagGroup struct { TagID ID `json:"tagId"` Children []*LayerTagItem `json:"children"` Tag Tag `json:"tag"` }
func ToLayerTagGroup ¶ added in v0.3.0
func ToLayerTagGroup(t *layer.TagGroup) *LayerTagGroup
func (LayerTagGroup) IsLayerTag ¶ added in v0.3.0
func (LayerTagGroup) IsLayerTag()
type LayerTagItem ¶ added in v0.3.0
func ToLayerTagItem ¶ added in v0.3.0
func ToLayerTagItem(t *layer.TagItem) *LayerTagItem
func (LayerTagItem) IsLayerTag ¶ added in v0.3.0
func (LayerTagItem) IsLayerTag()
type LinkDatasetToPropertyValueInput ¶
type LinkDatasetToPropertyValueInput struct { PropertyID ID `json:"propertyId"` SchemaGroupID *ID `json:"schemaGroupId"` ItemID *ID `json:"itemId"` FieldID ID `json:"fieldId"` DatasetSchemaIds []ID `json:"datasetSchemaIds"` DatasetSchemaFieldIds []ID `json:"datasetSchemaFieldIds"` DatasetIds []ID `json:"datasetIds"` }
type ListOperation ¶
type ListOperation string
const ( ListOperationAdd ListOperation = "ADD" ListOperationMove ListOperation = "MOVE" ListOperationRemove ListOperation = "REMOVE" )
func (ListOperation) IsValid ¶
func (e ListOperation) IsValid() bool
func (ListOperation) MarshalGQL ¶
func (e ListOperation) MarshalGQL(w io.Writer)
func (ListOperation) String ¶
func (e ListOperation) String() string
func (*ListOperation) UnmarshalGQL ¶
func (e *ListOperation) UnmarshalGQL(v interface{}) error
type Me ¶ added in v0.6.1
type MergedInfobox ¶
type MergedInfobox struct { SceneID ID `json:"sceneID"` Property *MergedProperty `json:"property"` Fields []*MergedInfoboxField `json:"fields"` Scene *Scene `json:"scene"` }
func ToMergedInfobox ¶
func ToMergedInfobox(ib *layer.MergedInfobox, sceneID id.SceneID) *MergedInfobox
func (*MergedInfobox) Field ¶
func (d *MergedInfobox) Field(id ID) *MergedInfoboxField
type MergedInfoboxField ¶
type MergedInfoboxField struct { OriginalID ID `json:"originalId"` SceneID ID `json:"sceneID"` PluginID ID `json:"pluginId"` ExtensionID ID `json:"extensionId"` Property *MergedProperty `json:"property"` Plugin *Plugin `json:"plugin"` Extension *PluginExtension `json:"extension"` Scene *Scene `json:"scene"` ScenePlugin *ScenePlugin `json:"scenePlugin"` }
func ToMergedInfoboxField ¶
func ToMergedInfoboxField(ibf *layer.MergedInfoboxField, sceneID id.SceneID) *MergedInfoboxField
type MergedLayer ¶
type MergedLayer struct { OriginalID ID `json:"originalId"` ParentID *ID `json:"parentId"` SceneID ID `json:"sceneID"` Property *MergedProperty `json:"property"` Infobox *MergedInfobox `json:"infobox"` Original *LayerItem `json:"original"` Parent *LayerGroup `json:"parent"` Scene *Scene `json:"scene"` }
func ToMergedLayer ¶
func ToMergedLayer(layer *layer.Merged) *MergedLayer
type MergedProperty ¶
type MergedProperty struct { OriginalID *ID `json:"originalId"` ParentID *ID `json:"parentId"` SchemaID *ID `json:"schemaId"` LinkedDatasetID *ID `json:"linkedDatasetId"` Original *Property `json:"original"` Parent *Property `json:"parent"` Schema *PropertySchema `json:"schema"` LinkedDataset *Dataset `json:"linkedDataset"` Groups []*MergedPropertyGroup `json:"groups"` }
func ToMergedProperty ¶
func ToMergedProperty(m *property.Merged) *MergedProperty
func ToMergedPropertyFromMetadata ¶
func ToMergedPropertyFromMetadata(m *property.MergedMetadata) *MergedProperty
func (*MergedProperty) GroupByOriginal ¶
func (d *MergedProperty) GroupByOriginal(id ID) *MergedPropertyGroup
func (*MergedProperty) GroupByParent ¶
func (d *MergedProperty) GroupByParent(id ID) *MergedPropertyGroup
func (*MergedProperty) PropertyID ¶
func (d *MergedProperty) PropertyID() *ID
type MergedPropertyField ¶
type MergedPropertyField struct { SchemaID ID `json:"schemaId"` FieldID ID `json:"fieldId"` Value interface{} `json:"value"` Type ValueType `json:"type"` Links []*PropertyFieldLink `json:"links"` Overridden bool `json:"overridden"` Schema *PropertySchema `json:"schema"` Field *PropertySchemaField `json:"field"` ActualValue interface{} `json:"actualValue"` }
func ToMergedPropertyField ¶
func ToMergedPropertyField(f *property.MergedField, s id.PropertySchemaID) *MergedPropertyField
type MergedPropertyGroup ¶
type MergedPropertyGroup struct { OriginalPropertyID *ID `json:"originalPropertyId"` ParentPropertyID *ID `json:"parentPropertyId"` OriginalID *ID `json:"originalId"` ParentID *ID `json:"parentId"` SchemaGroupID ID `json:"schemaGroupId"` SchemaID *ID `json:"schemaId"` LinkedDatasetID *ID `json:"linkedDatasetId"` Fields []*MergedPropertyField `json:"fields"` Groups []*MergedPropertyGroup `json:"groups"` OriginalProperty *Property `json:"originalProperty"` ParentProperty *Property `json:"parentProperty"` Original *PropertyGroup `json:"original"` Parent *PropertyGroup `json:"parent"` Schema *PropertySchema `json:"schema"` LinkedDataset *Dataset `json:"linkedDataset"` }
func ToMergedPropertyGroup ¶
func ToMergedPropertyGroup(f *property.MergedGroup, p *property.Merged) *MergedPropertyGroup
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 MoveInfoboxFieldPayload ¶
type MoveLayerInput ¶
type MoveLayerPayload ¶
type MoveLayerPayload struct { LayerID ID `json:"layerId"` FromParentLayer *LayerGroup `json:"fromParentLayer"` ToParentLayer *LayerGroup `json:"toParentLayer"` Index int `json:"index"` }
type MovePropertyItemInput ¶
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) MarshalGQL ¶
func (*NodeType) UnmarshalGQL ¶
type PageInfo ¶
type PageInfo struct { StartCursor *usecase.Cursor `json:"startCursor"` EndCursor *usecase.Cursor `json:"endCursor"` HasNextPage bool `json:"hasNextPage"` HasPreviousPage bool `json:"hasPreviousPage"` }
func NewEmptyPageInfo ¶
func NewEmptyPageInfo() *PageInfo
func ToPageInfo ¶
type Pagination ¶ added in v0.6.0
type Plugin ¶
type Plugin struct { ID ID `json:"id"` SceneID *ID `json:"sceneId"` Name string `json:"name"` Version string `json:"version"` Description string `json:"description"` Author string `json:"author"` RepositoryURL string `json:"repositoryUrl"` PropertySchemaID *ID `json:"propertySchemaId"` Extensions []*PluginExtension `json:"extensions"` ScenePlugin *ScenePlugin `json:"scenePlugin"` AllTranslatedDescription map[string]string `json:"allTranslatedDescription"` AllTranslatedName map[string]string `json:"allTranslatedName"` Scene *Scene `json:"scene"` TranslatedName string `json:"translatedName"` TranslatedDescription string `json:"translatedDescription"` PropertySchema *PropertySchema `json:"propertySchema"` }
func (*Plugin) Extension ¶
func (d *Plugin) Extension(id ID) *PluginExtension
type PluginExtension ¶
type PluginExtension struct { ExtensionID ID `json:"extensionId"` PluginID ID `json:"pluginId"` Type PluginExtensionType `json:"type"` Name string `json:"name"` Description string `json:"description"` Icon string `json:"icon"` SingleOnly *bool `json:"singleOnly"` WidgetLayout *WidgetLayout `json:"widgetLayout"` Visualizer *Visualizer `json:"visualizer"` PropertySchemaID ID `json:"propertySchemaId"` AllTranslatedName map[string]string `json:"allTranslatedName"` AllTranslatedDescription map[string]string `json:"allTranslatedDescription"` Plugin *Plugin `json:"plugin"` SceneWidget *SceneWidget `json:"sceneWidget"` PropertySchema *PropertySchema `json:"propertySchema"` TranslatedName string `json:"translatedName"` TranslatedDescription string `json:"translatedDescription"` }
type PluginExtensionType ¶
type PluginExtensionType string
const ( PluginExtensionTypePrimitive PluginExtensionType = "PRIMITIVE" PluginExtensionTypeWidget PluginExtensionType = "WIDGET" PluginExtensionTypeBlock PluginExtensionType = "BLOCK" PluginExtensionTypeVisualizer PluginExtensionType = "VISUALIZER" PluginExtensionTypeInfobox PluginExtensionType = "INFOBOX" )
func ToPluginExtensionType ¶
func ToPluginExtensionType(t plugin.ExtensionType) PluginExtensionType
func (PluginExtensionType) IsValid ¶
func (e PluginExtensionType) IsValid() bool
func (PluginExtensionType) MarshalGQL ¶
func (e PluginExtensionType) MarshalGQL(w io.Writer)
func (PluginExtensionType) String ¶
func (e PluginExtensionType) String() string
func (*PluginExtensionType) UnmarshalGQL ¶
func (e *PluginExtensionType) UnmarshalGQL(v interface{}) error
type PluginMetadata ¶
type PluginMetadata struct { Name string `json:"name"` Description string `json:"description"` Author string `json:"author"` ThumbnailURL string `json:"thumbnailUrl"` CreatedAt time.Time `json:"createdAt"` }
func ToPluginMetadata ¶
func ToPluginMetadata(t *plugin.Metadata) *PluginMetadata
type Project ¶
type Project struct { ID ID `json:"id"` IsArchived bool `json:"isArchived"` IsBasicAuthActive bool `json:"isBasicAuthActive"` BasicAuthUsername string `json:"basicAuthUsername"` BasicAuthPassword string `json:"basicAuthPassword"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` PublishedAt *time.Time `json:"publishedAt"` Name string `json:"name"` Description string `json:"description"` Alias string `json:"alias"` PublicTitle string `json:"publicTitle"` PublicDescription string `json:"publicDescription"` PublicImage string `json:"publicImage"` PublicNoIndex bool `json:"publicNoIndex"` ImageURL *url.URL `json:"imageUrl"` TeamID ID `json:"teamId"` Visualizer Visualizer `json:"visualizer"` PublishmentStatus PublishmentStatus `json:"publishmentStatus"` Team *Team `json:"team"` Scene *Scene `json:"scene"` }
type ProjectConnection ¶
type ProjectConnection struct { Edges []*ProjectEdge `json:"edges"` Nodes []*Project `json:"nodes"` PageInfo *PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
type ProjectEdge ¶
type ProjectPayload ¶
type ProjectPayload struct {
Project *Project `json:"project"`
}
type Property ¶
type Property struct { ID ID `json:"id"` SchemaID ID `json:"schemaId"` Items []PropertyItem `json:"items"` Schema *PropertySchema `json:"schema"` Layer Layer `json:"layer"` Merged *MergedProperty `json:"merged"` }
func ToProperty ¶
func (*Property) Field ¶
func (d *Property) Field(id id.PropertyFieldID) *PropertyField
func (*Property) Item ¶
func (d *Property) Item(id ID) PropertyItem
type PropertyCondition ¶
type PropertyCondition struct { FieldID ID `json:"fieldId"` Type ValueType `json:"type"` Value interface{} `json:"value"` }
func ToPropertyConditon ¶
func ToPropertyConditon(c *property.Condition) *PropertyCondition
type PropertyField ¶
type PropertyField struct { ID string `json:"id"` ParentID ID `json:"parentId"` SchemaID ID `json:"schemaId"` FieldID ID `json:"fieldId"` Links []*PropertyFieldLink `json:"links"` Type ValueType `json:"type"` Value interface{} `json:"value"` Parent *Property `json:"parent"` Schema *PropertySchema `json:"schema"` Field *PropertySchemaField `json:"field"` ActualValue interface{} `json:"actualValue"` }
type PropertyFieldLink ¶
type PropertyFieldLink struct { DatasetID *ID `json:"datasetId"` DatasetSchemaID ID `json:"datasetSchemaId"` DatasetSchemaFieldID ID `json:"datasetSchemaFieldId"` Dataset *Dataset `json:"dataset"` DatasetField *DatasetField `json:"datasetField"` DatasetSchema *DatasetSchema `json:"datasetSchema"` DatasetSchemaField *DatasetSchemaField `json:"datasetSchemaField"` }
func ToPropertyFieldLink ¶
func ToPropertyFieldLink(link *property.Link) *PropertyFieldLink
func ToPropertyFieldLinks ¶
func ToPropertyFieldLinks(flinks *property.Links) []*PropertyFieldLink
func (*PropertyFieldLink) Copy ¶
func (l *PropertyFieldLink) Copy() *PropertyFieldLink
type PropertyFieldPayload ¶
type PropertyFieldPayload struct { Property *Property `json:"property"` PropertyField *PropertyField `json:"propertyField"` }
type PropertyGroup ¶
type PropertyGroup struct { ID ID `json:"id"` SchemaID ID `json:"schemaId"` SchemaGroupID ID `json:"schemaGroupId"` Fields []*PropertyField `json:"fields"` Schema *PropertySchema `json:"schema"` SchemaGroup *PropertySchemaGroup `json:"schemaGroup"` }
func ToPropertyGroup ¶
func (*PropertyGroup) Field ¶
func (d *PropertyGroup) Field(id ID) *PropertyField
func (PropertyGroup) IsPropertyItem ¶
func (PropertyGroup) IsPropertyItem()
type PropertyGroupList ¶
type PropertyGroupList struct { ID ID `json:"id"` SchemaID ID `json:"schemaId"` SchemaGroupID ID `json:"schemaGroupId"` Groups []*PropertyGroup `json:"groups"` Schema *PropertySchema `json:"schema"` SchemaGroup *PropertySchemaGroup `json:"schemaGroup"` }
func ToPropertyGroupList ¶
func ToPropertyGroupList(gl *property.GroupList, p *property.Property) *PropertyGroupList
func (*PropertyGroupList) Group ¶
func (d *PropertyGroupList) Group(id ID) *PropertyGroup
func (PropertyGroupList) IsPropertyItem ¶
func (PropertyGroupList) IsPropertyItem()
type PropertyItemPayload ¶
type PropertyItemPayload struct { Property *Property `json:"property"` PropertyItem PropertyItem `json:"propertyItem"` }
type PropertyLinkableFields ¶
type PropertyLinkableFields struct { SchemaID ID `json:"schemaId"` Latlng *ID `json:"latlng"` URL *ID `json:"url"` LatlngField *PropertySchemaField `json:"latlngField"` URLField *PropertySchemaField `json:"urlField"` Schema *PropertySchema `json:"schema"` }
func ToPropertyLinkableFields ¶
func ToPropertyLinkableFields(sid id.PropertySchemaID, l property.LinkableFields) *PropertyLinkableFields
type PropertySchema ¶
type PropertySchema struct { ID ID `json:"id"` Groups []*PropertySchemaGroup `json:"groups"` LinkableFields *PropertyLinkableFields `json:"linkableFields"` }
func ToPropertySchema ¶
func ToPropertySchema(propertySchema *property.Schema) *PropertySchema
func (*PropertySchema) Field ¶
func (d *PropertySchema) Field(id ID) *PropertySchemaField
func (*PropertySchema) Group ¶
func (d *PropertySchema) Group(id ID) *PropertySchemaGroup
type PropertySchemaField ¶
type PropertySchemaField struct { FieldID ID `json:"fieldId"` Type ValueType `json:"type"` Title string `json:"title"` Description string `json:"description"` Prefix *string `json:"prefix"` Suffix *string `json:"suffix"` DefaultValue interface{} `json:"defaultValue"` UI *PropertySchemaFieldUI `json:"ui"` Min *float64 `json:"min"` Max *float64 `json:"max"` Choices []*PropertySchemaFieldChoice `json:"choices"` IsAvailableIf *PropertyCondition `json:"isAvailableIf"` AllTranslatedTitle map[string]string `json:"allTranslatedTitle"` AllTranslatedDescription map[string]string `json:"allTranslatedDescription"` TranslatedTitle string `json:"translatedTitle"` TranslatedDescription string `json:"translatedDescription"` }
func ToPropertySchemaField ¶
func ToPropertySchemaField(f *property.SchemaField) *PropertySchemaField
type PropertySchemaFieldUI ¶
type PropertySchemaFieldUI string
const ( PropertySchemaFieldUILayer PropertySchemaFieldUI = "LAYER" PropertySchemaFieldUIMultiline PropertySchemaFieldUI = "MULTILINE" PropertySchemaFieldUISelection PropertySchemaFieldUI = "SELECTION" PropertySchemaFieldUIColor PropertySchemaFieldUI = "COLOR" PropertySchemaFieldUIRange PropertySchemaFieldUI = "RANGE" PropertySchemaFieldUISlider PropertySchemaFieldUI = "SLIDER" PropertySchemaFieldUIImage PropertySchemaFieldUI = "IMAGE" PropertySchemaFieldUIVideo PropertySchemaFieldUI = "VIDEO" PropertySchemaFieldUIFile PropertySchemaFieldUI = "FILE" PropertySchemaFieldUICameraPose PropertySchemaFieldUI = "CAMERA_POSE" PropertySchemaFieldUIDatetime PropertySchemaFieldUI = "DATETIME" )
func ToPropertySchemaFieldUI ¶
func ToPropertySchemaFieldUI(ui *property.SchemaFieldUI) *PropertySchemaFieldUI
func (PropertySchemaFieldUI) IsValid ¶
func (e PropertySchemaFieldUI) IsValid() bool
func (PropertySchemaFieldUI) MarshalGQL ¶
func (e PropertySchemaFieldUI) MarshalGQL(w io.Writer)
func (PropertySchemaFieldUI) String ¶
func (e PropertySchemaFieldUI) String() string
func (*PropertySchemaFieldUI) UnmarshalGQL ¶
func (e *PropertySchemaFieldUI) UnmarshalGQL(v interface{}) error
type PropertySchemaGroup ¶
type PropertySchemaGroup struct { SchemaGroupID ID `json:"schemaGroupId"` SchemaID ID `json:"schemaId"` Fields []*PropertySchemaField `json:"fields"` IsList bool `json:"isList"` IsAvailableIf *PropertyCondition `json:"isAvailableIf"` Title *string `json:"title"` AllTranslatedTitle map[string]string `json:"allTranslatedTitle"` RepresentativeFieldID *ID `json:"representativeFieldId"` RepresentativeField *PropertySchemaField `json:"representativeField"` Schema *PropertySchema `json:"schema"` TranslatedTitle string `json:"translatedTitle"` }
func ToPropertySchemaGroup ¶
func ToPropertySchemaGroup(g *property.SchemaGroup, s property.SchemaID) *PropertySchemaGroup
type PublishProjectInput ¶
type PublishProjectInput struct { ProjectID ID `json:"projectId"` Alias *string `json:"alias"` Status PublishmentStatus `json:"status"` }
type PublishmentStatus ¶
type PublishmentStatus string
const ( PublishmentStatusPublic PublishmentStatus = "PUBLIC" PublishmentStatusLimited PublishmentStatus = "LIMITED" PublishmentStatusPrivate PublishmentStatus = "PRIVATE" )
func ToPublishmentStatus ¶
func ToPublishmentStatus(v project.PublishmentStatus) PublishmentStatus
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 RemoveAssetInput ¶
type RemoveAssetInput struct {
AssetID ID `json:"assetId"`
}
type RemoveAssetPayload ¶
type RemoveAssetPayload struct {
AssetID ID `json:"assetId"`
}
type RemoveClusterInput ¶ added in v0.3.0
type RemoveClusterPayload ¶ added in v0.3.0
type RemoveDatasetSchemaPayload ¶
type RemoveDatasetSchemaPayload struct {
SchemaID ID `json:"schemaId"`
}
type RemoveInfoboxFieldInput ¶
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 RemoveMemberFromTeamPayload ¶
type RemoveMemberFromTeamPayload struct {
Team *Team `json:"team"`
}
type RemoveMyAuthInput ¶
type RemoveMyAuthInput struct {
Auth string `json:"auth"`
}
type RemovePropertyItemInput ¶
type RemoveTagInput ¶
type RemoveTagInput struct {
TagID ID `json:"tagID"`
}
type RemoveTagPayload ¶
type RemoveWidgetInput ¶
type RemoveWidgetPayload ¶
type Scene ¶
type Scene struct { ID ID `json:"id"` ProjectID ID `json:"projectId"` TeamID ID `json:"teamId"` PropertyID ID `json:"propertyId"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` RootLayerID ID `json:"rootLayerId"` Widgets []*SceneWidget `json:"widgets"` Plugins []*ScenePlugin `json:"plugins"` WidgetAlignSystem *WidgetAlignSystem `json:"widgetAlignSystem"` DynamicDatasetSchemas []*DatasetSchema `json:"dynamicDatasetSchemas"` Project *Project `json:"project"` Team *Team `json:"team"` Property *Property `json:"property"` RootLayer *LayerGroup `json:"rootLayer"` DatasetSchemas *DatasetSchemaConnection `json:"datasetSchemas"` TagIds []ID `json:"tagIds"` Tags []Tag `json:"tags"` Clusters []*Cluster `json:"clusters"` }
func (*Scene) Plugin ¶
func (s *Scene) Plugin(pluginID ID) *ScenePlugin
func (*Scene) Widget ¶
func (s *Scene) Widget(pluginID, extensionID ID) *SceneWidget
type ScenePlugin ¶
type ScenePlugin struct { PluginID ID `json:"pluginId"` PropertyID *ID `json:"propertyId"` Plugin *Plugin `json:"plugin"` Property *Property `json:"property"` }
func ToScenePlugin ¶
func ToScenePlugin(sp *scene.Plugin) *ScenePlugin
type SceneWidget ¶
type SceneWidget struct { ID ID `json:"id"` PluginID ID `json:"pluginId"` ExtensionID ID `json:"extensionId"` PropertyID ID `json:"propertyId"` Enabled bool `json:"enabled"` Extended bool `json:"extended"` Plugin *Plugin `json:"plugin"` Extension *PluginExtension `json:"extension"` Property *Property `json:"property"` }
func ToSceneWidget ¶
func ToSceneWidget(w *scene.Widget) *SceneWidget
type SignupInput ¶
type SignupPayload ¶
type SyncDatasetInput ¶
type SyncDatasetPayload ¶
type SyncDatasetPayload struct { SceneID ID `json:"sceneId"` URL string `json:"url"` DatasetSchema []*DatasetSchema `json:"datasetSchema"` Dataset []*Dataset `json:"dataset"` }
type TagGroup ¶
type TagGroup struct { ID ID `json:"id"` SceneID ID `json:"sceneId"` Label string `json:"label"` TagIds []ID `json:"tagIds"` Tags []*TagItem `json:"tags"` Scene *Scene `json:"scene"` Layers []Layer `json:"layers"` }
func ToTagGroup ¶
type TagItem ¶
type TagItem struct { ID ID `json:"id"` SceneID ID `json:"sceneId"` Label string `json:"label"` ParentID *ID `json:"parentId"` LinkedDatasetID *ID `json:"linkedDatasetID"` LinkedDatasetSchemaID *ID `json:"linkedDatasetSchemaID"` LinkedDatasetFieldID *ID `json:"linkedDatasetFieldID"` LinkedDatasetSchema *DatasetSchema `json:"linkedDatasetSchema"` LinkedDataset *Dataset `json:"linkedDataset"` LinkedDatasetField *DatasetField `json:"linkedDatasetField"` Parent *TagGroup `json:"parent"` Layers []Layer `json:"layers"` }
type Team ¶
type Team struct { ID ID `json:"id"` Name string `json:"name"` Members []*TeamMember `json:"members"` Personal bool `json:"personal"` Assets *AssetConnection `json:"assets"` Projects *ProjectConnection `json:"projects"` }
type TeamMember ¶
type TextAlign ¶
type TextAlign string
func ToTextAlign ¶
func (TextAlign) MarshalGQL ¶
func (*TextAlign) UnmarshalGQL ¶
type Typography ¶
type UninstallPluginInput ¶
type UninstallPluginPayload ¶
type UpdateClusterInput ¶ added in v0.3.0
type UpdateClusterPayload ¶ added in v0.3.0
type UpdateDatasetSchemaPayload ¶
type UpdateDatasetSchemaPayload struct {
DatasetSchema *DatasetSchema `json:"datasetSchema"`
}
type UpdateLayerInput ¶
type UpdateLayerPayload ¶
type UpdateLayerPayload struct {
Layer Layer `json:"layer"`
}
type UpdateMeInput ¶
type UpdateMePayload ¶
type UpdateMePayload struct {
Me *Me `json:"me"`
}
type UpdateMemberOfTeamInput ¶
type UpdateMemberOfTeamPayload ¶
type UpdateMemberOfTeamPayload struct {
Team *Team `json:"team"`
}
type UpdateProjectInput ¶
type UpdateProjectInput struct { ProjectID ID `json:"projectId"` Name *string `json:"name"` Description *string `json:"description"` Archived *bool `json:"archived"` IsBasicAuthActive *bool `json:"isBasicAuthActive"` BasicAuthUsername *string `json:"basicAuthUsername"` BasicAuthPassword *string `json:"basicAuthPassword"` Alias *string `json:"alias"` ImageURL *url.URL `json:"imageUrl"` PublicTitle *string `json:"publicTitle"` PublicDescription *string `json:"publicDescription"` PublicImage *string `json:"publicImage"` PublicNoIndex *bool `json:"publicNoIndex"` DeleteImageURL *bool `json:"deleteImageUrl"` DeletePublicImage *bool `json:"deletePublicImage"` }
type UpdatePropertyItemInput ¶
type UpdatePropertyItemInput struct { PropertyID ID `json:"propertyId"` SchemaGroupID ID `json:"schemaGroupId"` Operations []*UpdatePropertyItemOperationInput `json:"operations"` }
type UpdatePropertyItemOperationInput ¶
type UpdatePropertyItemOperationInput struct { Operation ListOperation `json:"operation"` ItemID *ID `json:"itemId"` Index *int `json:"index"` NameFieldValue interface{} `json:"nameFieldValue"` NameFieldType *ValueType `json:"nameFieldType"` }
type UpdateTagInput ¶
type UpdateTagPayload ¶
type UpdateTagPayload struct {
Tag Tag `json:"tag"`
}
type UpdateTeamInput ¶
type UpdateTeamPayload ¶
type UpdateTeamPayload struct {
Team *Team `json:"team"`
}
type UpdateWidgetAlignSystemInput ¶
type UpdateWidgetAlignSystemInput struct { SceneID ID `json:"sceneId"` Location *WidgetLocationInput `json:"location"` Align *WidgetAreaAlign `json:"align"` }
type UpdateWidgetAlignSystemPayload ¶
type UpdateWidgetAlignSystemPayload struct {
Scene *Scene `json:"scene"`
}
type UpdateWidgetInput ¶
type UpdateWidgetPayload ¶
type UpdateWidgetPayload struct { Scene *Scene `json:"scene"` SceneWidget *SceneWidget `json:"sceneWidget"` }
type UpgradePluginInput ¶
type UpgradePluginPayload ¶
type UpgradePluginPayload struct { Scene *Scene `json:"scene"` ScenePlugin *ScenePlugin `json:"scenePlugin"` }
type UploadPluginInput ¶
type UploadPluginPayload ¶
type UploadPluginPayload struct { Plugin *Plugin `json:"plugin"` Scene *Scene `json:"scene"` ScenePlugin *ScenePlugin `json:"scenePlugin"` }
type ValueType ¶
type ValueType string
const ( ValueTypeBool ValueType = "BOOL" ValueTypeNumber ValueType = "NUMBER" ValueTypeString ValueType = "STRING" ValueTypeRef ValueType = "REF" ValueTypeURL ValueType = "URL" ValueTypeLatlng ValueType = "LATLNG" ValueTypeLatlngheight ValueType = "LATLNGHEIGHT" ValueTypeCamera ValueType = "CAMERA" ValueTypeTypography ValueType = "TYPOGRAPHY" ValueTypeCoordinates ValueType = "COORDINATES" ValueTypePolygon ValueType = "POLYGON" ValueTypeRect ValueType = "RECT" )
func ToValueType ¶ added in v0.3.0
func (ValueType) MarshalGQL ¶
func (*ValueType) UnmarshalGQL ¶
type Visualizer ¶
type Visualizer string
const (
VisualizerCesium Visualizer = "CESIUM"
)
func ToVisualizer ¶
func ToVisualizer(v visualizer.Visualizer) Visualizer
func ToVisualizerRef ¶
func ToVisualizerRef(v visualizer.Visualizer) *Visualizer
func (Visualizer) IsValid ¶
func (e Visualizer) IsValid() bool
func (Visualizer) MarshalGQL ¶
func (e Visualizer) MarshalGQL(w io.Writer)
func (Visualizer) String ¶
func (e Visualizer) String() string
func (*Visualizer) UnmarshalGQL ¶
func (e *Visualizer) UnmarshalGQL(v interface{}) error
type WidgetAlignSystem ¶
type WidgetAlignSystem struct { Inner *WidgetZone `json:"inner"` Outer *WidgetZone `json:"outer"` }
func ToWidgetAlignSystem ¶
func ToWidgetAlignSystem(sas *scene.WidgetAlignSystem) *WidgetAlignSystem
type WidgetArea ¶
type WidgetArea struct { WidgetIds []ID `json:"widgetIds"` Align WidgetAreaAlign `json:"align"` }
func ToWidgetArea ¶
func ToWidgetArea(a *scene.WidgetArea) *WidgetArea
type WidgetAreaAlign ¶
type WidgetAreaAlign string
const ( WidgetAreaAlignStart WidgetAreaAlign = "START" WidgetAreaAlignCentered WidgetAreaAlign = "CENTERED" WidgetAreaAlignEnd WidgetAreaAlign = "END" )
func ToWidgetAlignType ¶
func ToWidgetAlignType(s scene.WidgetAlignType) WidgetAreaAlign
func (WidgetAreaAlign) IsValid ¶
func (e WidgetAreaAlign) IsValid() bool
func (WidgetAreaAlign) MarshalGQL ¶
func (e WidgetAreaAlign) MarshalGQL(w io.Writer)
func (WidgetAreaAlign) String ¶
func (e WidgetAreaAlign) String() string
func (*WidgetAreaAlign) UnmarshalGQL ¶
func (e *WidgetAreaAlign) UnmarshalGQL(v interface{}) error
type WidgetAreaType ¶
type WidgetAreaType string
const ( WidgetAreaTypeTop WidgetAreaType = "TOP" WidgetAreaTypeMiddle WidgetAreaType = "MIDDLE" WidgetAreaTypeBottom WidgetAreaType = "BOTTOM" )
func ToPluginWidgetAreaType ¶
func ToPluginWidgetAreaType(t plugin.WidgetAreaType) WidgetAreaType
func (WidgetAreaType) IsValid ¶
func (e WidgetAreaType) IsValid() bool
func (WidgetAreaType) MarshalGQL ¶
func (e WidgetAreaType) MarshalGQL(w io.Writer)
func (WidgetAreaType) String ¶
func (e WidgetAreaType) String() string
func (*WidgetAreaType) UnmarshalGQL ¶
func (e *WidgetAreaType) UnmarshalGQL(v interface{}) error
type WidgetExtendable ¶
type WidgetLayout ¶
type WidgetLayout struct { Extendable *WidgetExtendable `json:"extendable"` Extended bool `json:"extended"` Floating bool `json:"floating"` DefaultLocation *WidgetLocation `json:"defaultLocation"` }
func ToPluginWidgetLayout ¶
func ToPluginWidgetLayout(wl *plugin.WidgetLayout) *WidgetLayout
type WidgetLocation ¶
type WidgetLocation struct { Zone WidgetZoneType `json:"zone"` Section WidgetSectionType `json:"section"` Area WidgetAreaType `json:"area"` }
func ToPluginWidgetLocation ¶
func ToPluginWidgetLocation(l *plugin.WidgetLocation) *WidgetLocation
type WidgetLocationInput ¶
type WidgetLocationInput struct { Zone WidgetZoneType `json:"zone"` Section WidgetSectionType `json:"section"` Area WidgetAreaType `json:"area"` }
type WidgetSection ¶
type WidgetSection struct { Top *WidgetArea `json:"top"` Middle *WidgetArea `json:"middle"` Bottom *WidgetArea `json:"bottom"` }
func ToWidgetSection ¶
func ToWidgetSection(s *scene.WidgetSection) *WidgetSection
type WidgetSectionType ¶
type WidgetSectionType string
const ( WidgetSectionTypeLeft WidgetSectionType = "LEFT" WidgetSectionTypeCenter WidgetSectionType = "CENTER" WidgetSectionTypeRight WidgetSectionType = "RIGHT" )
func ToPluginWidgetSectionType ¶
func ToPluginWidgetSectionType(t plugin.WidgetSectionType) WidgetSectionType
func (WidgetSectionType) IsValid ¶
func (e WidgetSectionType) IsValid() bool
func (WidgetSectionType) MarshalGQL ¶
func (e WidgetSectionType) MarshalGQL(w io.Writer)
func (WidgetSectionType) String ¶
func (e WidgetSectionType) String() string
func (*WidgetSectionType) UnmarshalGQL ¶
func (e *WidgetSectionType) UnmarshalGQL(v interface{}) error
type WidgetZone ¶
type WidgetZone struct { Left *WidgetSection `json:"left"` Center *WidgetSection `json:"center"` Right *WidgetSection `json:"right"` }
func ToWidgetZone ¶
func ToWidgetZone(z *scene.WidgetZone) *WidgetZone
type WidgetZoneType ¶
type WidgetZoneType string
const ( WidgetZoneTypeInner WidgetZoneType = "INNER" WidgetZoneTypeOuter WidgetZoneType = "OUTER" )
func ToPluginWidgetZoneType ¶
func ToPluginWidgetZoneType(t plugin.WidgetZoneType) WidgetZoneType
func (WidgetZoneType) IsValid ¶
func (e WidgetZoneType) IsValid() bool
func (WidgetZoneType) MarshalGQL ¶
func (e WidgetZoneType) MarshalGQL(w io.Writer)
func (WidgetZoneType) String ¶
func (e WidgetZoneType) String() string
func (*WidgetZoneType) UnmarshalGQL ¶
func (e *WidgetZoneType) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.