Documentation
¶
Overview ¶
Package integrationapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- Constants
- Variables
- func BuildCSVHeaders(s *schema.Schema) []string
- func FromValueType(t *ValueType) value.Type
- func New(obj any, v string) (res any, err error)
- func RowFromItem(itm *item.Item, nonGeoFields []*schema.Field) ([]string, bool)
- func ToValue(v *value.Value, sf *schema.Field, assets *AssetContext) any
- func ToValues(v *value.Multiple, sf *schema.Field, assets *AssetContext) any
- type Asset
- type AssetArchiveExtractionStatus
- type AssetBatchDeleteJSONBody
- type AssetBatchDeleteJSONRequestBody
- type AssetCommentCreateJSONBody
- type AssetCommentCreateJSONRequestBody
- type AssetCommentUpdateJSONBody
- type AssetCommentUpdateJSONRequestBody
- type AssetContext
- type AssetCreateJSONBody
- type AssetCreateJSONRequestBody
- type AssetCreateMultipartBody
- type AssetCreateMultipartRequestBody
- type AssetEmbedding
- type AssetFilterParams
- type AssetFilterParamsDir
- type AssetFilterParamsSort
- type AssetIdParam
- type AssetParam
- type AssetPreviewType
- type AssetUploadCreateJSONBody
- type AssetUploadCreateJSONRequestBody
- type Comment
- type CommentAuthorType
- type CommentIdParam
- type Condition
- type ConditionBasicOperator
- type ConditionBoolOperator
- type ConditionMultipleOperator
- type ConditionNullableOperator
- type ConditionNumberOperator
- type ConditionStringOperator
- type ConditionTimeOperator
- type CopyModelJSONBody
- type CopyModelJSONRequestBody
- type Event
- type Feature
- type FeatureCollection
- type FeatureCollectionType
- type FeatureType
- type Field
- type FieldChange
- type FieldCreateJSONBody
- type FieldCreateJSONRequestBody
- type FieldCreateWithProjectJSONBody
- type FieldCreateWithProjectJSONRequestBody
- type FieldIdOrKeyParam
- type FieldIdParam
- type FieldSelector
- type FieldSelectorType
- type FieldUpdateJSONBody
- type FieldUpdateJSONRequestBody
- type FieldUpdateWithProjectJSONBody
- type FieldUpdateWithProjectJSONRequestBody
- type File
- type GeoJSON
- type Geometry
- type GeometryCollection
- type GeometryCollectionType
- type GeometryType
- type Geometry_Coordinates
- func (t Geometry_Coordinates) AsLineString() (LineString, error)
- func (t Geometry_Coordinates) AsMultiLineString() (MultiLineString, error)
- func (t Geometry_Coordinates) AsMultiPoint() (MultiPoint, error)
- func (t Geometry_Coordinates) AsMultiPolygon() (MultiPolygon, error)
- func (t Geometry_Coordinates) AsPoint() (Point, error)
- func (t Geometry_Coordinates) AsPolygon() (Polygon, error)
- func (t *Geometry_Coordinates) FromLineString(v LineString) error
- func (t *Geometry_Coordinates) FromMultiLineString(v MultiLineString) error
- func (t *Geometry_Coordinates) FromMultiPoint(v MultiPoint) error
- func (t *Geometry_Coordinates) FromMultiPolygon(v MultiPolygon) error
- func (t *Geometry_Coordinates) FromPoint(v Point) error
- func (t *Geometry_Coordinates) FromPolygon(v Polygon) error
- func (t Geometry_Coordinates) MarshalJSON() ([]byte, error)
- func (t *Geometry_Coordinates) MergeLineString(v LineString) error
- func (t *Geometry_Coordinates) MergeMultiLineString(v MultiLineString) error
- func (t *Geometry_Coordinates) MergeMultiPoint(v MultiPoint) error
- func (t *Geometry_Coordinates) MergeMultiPolygon(v MultiPolygon) error
- func (t *Geometry_Coordinates) MergePoint(v Point) error
- func (t *Geometry_Coordinates) MergePolygon(v Polygon) error
- func (t *Geometry_Coordinates) UnmarshalJSON(b []byte) error
- type Group
- type GroupCreateJSONBody
- type GroupCreateJSONRequestBody
- type GroupCreateParams
- type GroupFilterParams
- type GroupIdOrKeyParam
- type GroupIdParam
- type GroupUpdateJSONBody
- type GroupUpdateJSONRequestBody
- type GroupUpdateWithProjectJSONBody
- type GroupUpdateWithProjectJSONRequestBody
- type Item
- type ItemCommentCreateJSONBody
- type ItemCommentCreateJSONRequestBody
- type ItemCommentUpdateJSONBody
- type ItemCommentUpdateJSONRequestBody
- type ItemCreateJSONBody
- type ItemCreateJSONRequestBody
- type ItemCreateWithProjectJSONBody
- type ItemCreateWithProjectJSONRequestBody
- type ItemFilterJSONBody
- type ItemFilterJSONRequestBody
- type ItemFilterParams
- type ItemFilterParamsDir
- type ItemFilterParamsRef
- type ItemFilterParamsSort
- type ItemFilterWithProjectParams
- type ItemFilterWithProjectParamsDir
- type ItemFilterWithProjectParamsRef
- type ItemFilterWithProjectParamsSort
- type ItemGetParams
- type ItemGetParamsRef
- type ItemIdParam
- type ItemModelSchema
- type ItemModelSchemaItemChange
- type ItemUpdateJSONBody
- type ItemUpdateJSONRequestBody
- type ItemsAsCSVParams
- type ItemsAsCSVParamsRef
- type ItemsAsGeoJSONParams
- type ItemsAsGeoJSONParamsRef
- type ItemsWithProjectAsCSVParams
- type ItemsWithProjectAsCSVParamsRef
- type ItemsWithProjectAsGeoJSONParams
- type ItemsWithProjectAsGeoJSONParamsRef
- type KeywordParam
- type LineString
- type Model
- type ModelCreateJSONBody
- type ModelCreateJSONRequestBody
- type ModelCreateParams
- type ModelFilterParams
- type ModelIdOrKeyParam
- type ModelIdParam
- type ModelImportJSONBody
- type ModelImportJSONBodyFormat
- type ModelImportJSONBodyStrategy
- type ModelImportJSONRequestBody
- type ModelImportMultipartBody
- type ModelImportMultipartBodyFormat
- type ModelImportMultipartBodyStrategy
- type ModelImportMultipartRequestBody
- type ModelUpdateJSONBody
- type ModelUpdateJSONRequestBody
- type ModelUpdateWithProjectJSONBody
- type ModelUpdateWithProjectJSONRequestBody
- type MultiLineString
- type MultiPoint
- type MultiPolygon
- type Operator
- type OperatorIntegration
- type OperatorMachine
- type OperatorUser
- type PageParam
- type PerPageParam
- type Point
- type Polygon
- type Project
- type ProjectCreateJSONBody
- type ProjectCreateJSONRequestBody
- type ProjectCreateParams
- type ProjectFilterParams
- type ProjectIdAlias
- type ProjectIdOrAliasParam
- type ProjectIdParam
- type ProjectPublication
- type ProjectPublicationScope
- type ProjectRequestRole
- type ProjectUpdateJSONBody
- type ProjectUpdateJSONRequestBody
- type RefOrVersion
- type RefOrVersionRef
- type RefParam
- type Schema
- type SchemaField
- type SchemaFilterParams
- type SchemaIdParam
- type SchemaJSON
- type SchemaJSONProperties
- type SortDirParam
- type SortParam
- type TagResponse
- type ValueType
- type Version
- type VersionedItem
- type WorkspaceIdParam
Constants ¶
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
Variables ¶
var (
ErrUnsupportedEntity = rerror.NewE(i18n.T("unsupported entity"))
)
Functions ¶
func FromValueType ¶
Types ¶
type Asset ¶
type Asset struct {
ArchiveExtractionStatus *AssetArchiveExtractionStatus `json:"archiveExtractionStatus,omitempty"`
ContentType *string `json:"contentType,omitempty"`
CreatedAt time.Time `json:"createdAt"`
File *File `json:"file,omitempty"`
Id id.AssetID `json:"id"`
Name *string `json:"name,omitempty"`
PreviewType *AssetPreviewType `json:"previewType,omitempty"`
ProjectId id.ProjectID `json:"projectId"`
Public bool `json:"public"`
TotalSize *float32 `json:"totalSize,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
Url string `json:"url"`
}
Asset defines model for asset.
type AssetArchiveExtractionStatus ¶
type AssetArchiveExtractionStatus string
AssetArchiveExtractionStatus defines model for Asset.ArchiveExtractionStatus.
const ( Done AssetArchiveExtractionStatus = "done" Failed AssetArchiveExtractionStatus = "failed" InProgress AssetArchiveExtractionStatus = "in_progress" Pending AssetArchiveExtractionStatus = "pending" )
Defines values for AssetArchiveExtractionStatus.
func ToAssetArchiveExtractionStatus ¶
func ToAssetArchiveExtractionStatus(s *asset.ArchiveExtractionStatus) *AssetArchiveExtractionStatus
type AssetBatchDeleteJSONBody ¶
AssetBatchDeleteJSONBody defines parameters for AssetBatchDelete.
type AssetBatchDeleteJSONRequestBody ¶
type AssetBatchDeleteJSONRequestBody AssetBatchDeleteJSONBody
AssetBatchDeleteJSONRequestBody defines body for AssetBatchDelete for application/json ContentType.
type AssetCommentCreateJSONBody ¶
type AssetCommentCreateJSONBody struct {
Content *string `json:"content,omitempty"`
}
AssetCommentCreateJSONBody defines parameters for AssetCommentCreate.
type AssetCommentCreateJSONRequestBody ¶
type AssetCommentCreateJSONRequestBody AssetCommentCreateJSONBody
AssetCommentCreateJSONRequestBody defines body for AssetCommentCreate for application/json ContentType.
type AssetCommentUpdateJSONBody ¶
type AssetCommentUpdateJSONBody struct {
Content *string `json:"content,omitempty"`
}
AssetCommentUpdateJSONBody defines parameters for AssetCommentUpdate.
type AssetCommentUpdateJSONRequestBody ¶
type AssetCommentUpdateJSONRequestBody AssetCommentUpdateJSONBody
AssetCommentUpdateJSONRequestBody defines body for AssetCommentUpdate for application/json ContentType.
type AssetContext ¶
func (*AssetContext) ResolveAsset ¶
func (c *AssetContext) ResolveAsset(id asset.ID) *Asset
type AssetCreateJSONBody ¶
type AssetCreateJSONBody struct {
ContentEncoding *string `json:"contentEncoding,omitempty"`
SkipDecompression *bool `json:"skipDecompression"`
Token *string `json:"token,omitempty"`
Url *string `json:"url,omitempty"`
}
AssetCreateJSONBody defines parameters for AssetCreate.
type AssetCreateJSONRequestBody ¶
type AssetCreateJSONRequestBody AssetCreateJSONBody
AssetCreateJSONRequestBody defines body for AssetCreate for application/json ContentType.
type AssetCreateMultipartBody ¶
type AssetCreateMultipartBody struct {
ContentEncoding *string `json:"contentEncoding,omitempty"`
ContentType *string `json:"contentType,omitempty"`
File *openapi_types.File `json:"file,omitempty"`
SkipDecompression *bool `json:"skipDecompression,omitempty"`
}
AssetCreateMultipartBody defines parameters for AssetCreate.
type AssetCreateMultipartRequestBody ¶
type AssetCreateMultipartRequestBody AssetCreateMultipartBody
AssetCreateMultipartRequestBody defines body for AssetCreate for multipart/form-data ContentType.
type AssetEmbedding ¶
type AssetEmbedding string
AssetEmbedding defines model for assetEmbedding.
const ( All AssetEmbedding = "all" False AssetEmbedding = "false" True AssetEmbedding = "true" )
Defines values for AssetEmbedding.
type AssetFilterParams ¶
type AssetFilterParams struct {
// Sort Used to define the order of the response list
Sort *AssetFilterParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
// Dir Used to define the order direction of the response list, will be ignored if the order is not presented
Dir *AssetFilterParamsDir `form:"dir,omitempty" json:"dir,omitempty"`
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
// Keyword keyword string
Keyword *KeywordParam `form:"keyword,omitempty" json:"keyword,omitempty"`
}
AssetFilterParams defines parameters for AssetFilter.
type AssetFilterParamsDir ¶
type AssetFilterParamsDir string
AssetFilterParamsDir defines parameters for AssetFilter.
const ( AssetFilterParamsDirAsc AssetFilterParamsDir = "asc" AssetFilterParamsDirDesc AssetFilterParamsDir = "desc" )
Defines values for AssetFilterParamsDir.
type AssetFilterParamsSort ¶
type AssetFilterParamsSort string
AssetFilterParamsSort defines parameters for AssetFilter.
const ( AssetFilterParamsSortCreatedAt AssetFilterParamsSort = "createdAt" AssetFilterParamsSortUpdatedAt AssetFilterParamsSort = "updatedAt" )
Defines values for AssetFilterParamsSort.
type AssetPreviewType ¶
type AssetPreviewType string
AssetPreviewType defines model for Asset.PreviewType.
const ( Csv AssetPreviewType = "csv" Geo AssetPreviewType = "geo" Geo3dTiles AssetPreviewType = "geo_3d_Tiles" GeoMvt AssetPreviewType = "geo_mvt" Image AssetPreviewType = "image" ImageSvg AssetPreviewType = "image_svg" Model3d AssetPreviewType = "model_3d" Unknown AssetPreviewType = "unknown" )
Defines values for AssetPreviewType.
func ToPreviewType ¶
func ToPreviewType(pt *asset.PreviewType) *AssetPreviewType
type AssetUploadCreateJSONBody ¶
type AssetUploadCreateJSONBody struct {
ContentEncoding *string `json:"contentEncoding,omitempty"`
ContentLength *int `json:"contentLength,omitempty"`
ContentType *string `json:"contentType,omitempty"`
Cursor *string `json:"cursor,omitempty"`
Name *string `json:"name,omitempty"`
}
AssetUploadCreateJSONBody defines parameters for AssetUploadCreate.
type AssetUploadCreateJSONRequestBody ¶
type AssetUploadCreateJSONRequestBody AssetUploadCreateJSONBody
AssetUploadCreateJSONRequestBody defines body for AssetUploadCreate for application/json ContentType.
type Comment ¶
type Comment struct {
AuthorId *any `json:"authorId,omitempty"`
AuthorType *CommentAuthorType `json:"authorType,omitempty"`
Content *string `json:"content,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty"`
Id *id.CommentID `json:"id,omitempty"`
}
Comment defines model for comment.
func NewComment ¶
type CommentAuthorType ¶
type CommentAuthorType string
CommentAuthorType defines model for Comment.AuthorType.
const ( Integrtaion CommentAuthorType = "integrtaion" User CommentAuthorType = "user" )
Defines values for CommentAuthorType.
type CommentIdParam ¶
CommentIdParam defines model for commentIdParam.
type Condition ¶
type Condition struct {
And *[]Condition `json:"and,omitempty"`
Basic *struct {
FieldId *FieldSelector `json:"fieldId,omitempty"`
Operator *ConditionBasicOperator `json:"operator,omitempty"`
Value *interface{} `json:"value,omitempty"`
} `json:"basic,omitempty"`
Bool *struct {
FieldId FieldSelector `json:"fieldId"`
Operator ConditionBoolOperator `json:"operator"`
Value bool `json:"value"`
} `json:"bool,omitempty"`
Multiple *struct {
FieldId FieldSelector `json:"fieldId"`
Operator ConditionMultipleOperator `json:"operator"`
Value []interface{} `json:"value"`
} `json:"multiple,omitempty"`
Nullable *struct {
FieldId *FieldSelector `json:"fieldId,omitempty"`
Operator *ConditionNullableOperator `json:"operator,omitempty"`
} `json:"nullable,omitempty"`
Number *struct {
FieldId FieldSelector `json:"fieldId"`
Operator ConditionNumberOperator `json:"operator"`
Value float32 `json:"value"`
} `json:"number,omitempty"`
Or *[]Condition `json:"or,omitempty"`
String *struct {
FieldId FieldSelector `json:"fieldId"`
Operator ConditionStringOperator `json:"operator"`
Value string `json:"value"`
} `json:"string,omitempty"`
Time *struct {
FieldId FieldSelector `json:"fieldId"`
Operator ConditionTimeOperator `json:"operator"`
Value time.Time `json:"value"`
} `json:"time,omitempty"`
}
Condition defines model for condition.
type ConditionBasicOperator ¶
type ConditionBasicOperator string
ConditionBasicOperator defines model for Condition.Basic.Operator.
const ( ConditionBasicOperatorEquals ConditionBasicOperator = "equals" ConditionBasicOperatorNotEquals ConditionBasicOperator = "notEquals" )
Defines values for ConditionBasicOperator.
func (ConditionBasicOperator) Into ¶
func (e ConditionBasicOperator) Into() view.BasicOperator
type ConditionBoolOperator ¶
type ConditionBoolOperator string
ConditionBoolOperator defines model for Condition.Bool.Operator.
const ( ConditionBoolOperatorEquals ConditionBoolOperator = "equals" ConditionBoolOperatorNotEquals ConditionBoolOperator = "notEquals" )
Defines values for ConditionBoolOperator.
func (ConditionBoolOperator) Into ¶
func (e ConditionBoolOperator) Into() view.BoolOperator
type ConditionMultipleOperator ¶
type ConditionMultipleOperator string
ConditionMultipleOperator defines model for Condition.Multiple.Operator.
const ( IncludesAll ConditionMultipleOperator = "includesAll" IncludesAny ConditionMultipleOperator = "includesAny" NotIncludesAll ConditionMultipleOperator = "notIncludesAll" NotIncludesAny ConditionMultipleOperator = "notIncludesAny" )
Defines values for ConditionMultipleOperator.
func (ConditionMultipleOperator) Into ¶
func (e ConditionMultipleOperator) Into() view.MultipleOperator
type ConditionNullableOperator ¶
type ConditionNullableOperator string
ConditionNullableOperator defines model for Condition.Nullable.Operator.
const ( Empty ConditionNullableOperator = "empty" NotEmpty ConditionNullableOperator = "notEmpty" )
Defines values for ConditionNullableOperator.
func (ConditionNullableOperator) Into ¶
func (e ConditionNullableOperator) Into() view.NullableOperator
type ConditionNumberOperator ¶
type ConditionNumberOperator string
ConditionNumberOperator defines model for Condition.Number.Operator.
const ( GreaterThan ConditionNumberOperator = "greaterThan" GreaterThanOrEqualTo ConditionNumberOperator = "greaterThanOrEqualTo" LessThan ConditionNumberOperator = "lessThan" LessThanOrEqualTo ConditionNumberOperator = "lessThanOrEqualTo" )
Defines values for ConditionNumberOperator.
func (ConditionNumberOperator) Into ¶
func (e ConditionNumberOperator) Into() view.NumberOperator
type ConditionStringOperator ¶
type ConditionStringOperator string
ConditionStringOperator defines model for Condition.String.Operator.
const ( Contains ConditionStringOperator = "contains" EndsWith ConditionStringOperator = "endsWith" NotContains ConditionStringOperator = "notContains" NotEndsWith ConditionStringOperator = "notEndsWith" NotStartsWith ConditionStringOperator = "notStartsWith" StartsWith ConditionStringOperator = "startsWith" )
Defines values for ConditionStringOperator.
func (ConditionStringOperator) Into ¶
func (e ConditionStringOperator) Into() view.StringOperator
type ConditionTimeOperator ¶
type ConditionTimeOperator string
ConditionTimeOperator defines model for Condition.Time.Operator.
const ( After ConditionTimeOperator = "after" AfterOrOn ConditionTimeOperator = "afterOrOn" Before ConditionTimeOperator = "before" BeforeOrOn ConditionTimeOperator = "beforeOrOn" OfThisMonth ConditionTimeOperator = "ofThisMonth" OfThisWeek ConditionTimeOperator = "ofThisWeek" OfThisYear ConditionTimeOperator = "ofThisYear" )
Defines values for ConditionTimeOperator.
func (ConditionTimeOperator) Into ¶
func (e ConditionTimeOperator) Into() view.TimeOperator
type CopyModelJSONBody ¶
type CopyModelJSONBody struct {
Key *string `json:"key,omitempty"`
Name *string `json:"name,omitempty"`
}
CopyModelJSONBody defines parameters for CopyModel.
type CopyModelJSONRequestBody ¶
type CopyModelJSONRequestBody CopyModelJSONBody
CopyModelJSONRequestBody defines body for CopyModel for application/json ContentType.
type Event ¶
type Feature ¶
type Feature struct {
Geometry *Geometry `json:"geometry,omitempty"`
Id *id.ItemID `json:"id,omitempty"`
Properties *orderedmap.OrderedMap `json:"properties,omitempty"`
Type *FeatureType `json:"type,omitempty"`
}
Feature defines model for Feature.
type FeatureCollection ¶
type FeatureCollection struct {
Features *[]Feature `json:"features,omitempty"`
Type *FeatureCollectionType `json:"type,omitempty"`
}
FeatureCollection defines model for FeatureCollection.
func FeatureCollectionFromItems ¶
func FeatureCollectionFromItems(ver item.VersionedList, s *schema.Schema) (*FeatureCollection, error)
GeoJSON
type FeatureCollectionType ¶
type FeatureCollectionType string
FeatureCollectionType defines model for FeatureCollection.Type.
const (
FeatureCollectionTypeFeatureCollection FeatureCollectionType = "FeatureCollection"
)
Defines values for FeatureCollectionType.
type FeatureType ¶
type FeatureType string
FeatureType defines model for Feature.Type.
const (
FeatureTypeFeature FeatureType = "Feature"
)
Defines values for FeatureType.
type Field ¶
type Field struct {
Group *id.ItemGroupID `json:"group,omitempty"`
Id *id.FieldID `json:"id,omitempty"`
Key *string `json:"key,omitempty"`
Type *ValueType `json:"type,omitempty"`
Value *interface{} `json:"value,omitempty"`
}
Field defines model for field.
type FieldChange ¶
type FieldChange struct {
ID item.FieldID `json:"id"`
Type item.FieldChangeType `json:"type"`
CurrentValue any `json:"currentValue"`
PreviousValue any `json:"previousValue"`
}
func NewItemFieldChanges ¶
func NewItemFieldChanges(changes item.FieldChanges) []FieldChange
type FieldCreateJSONBody ¶
type FieldCreateJSONBody struct {
Key *string `json:"key,omitempty"`
Multiple *bool `json:"multiple,omitempty"`
Required *bool `json:"required,omitempty"`
Type *ValueType `json:"type,omitempty"`
}
FieldCreateJSONBody defines parameters for FieldCreate.
type FieldCreateJSONRequestBody ¶
type FieldCreateJSONRequestBody FieldCreateJSONBody
FieldCreateJSONRequestBody defines body for FieldCreate for application/json ContentType.
type FieldCreateWithProjectJSONBody ¶
type FieldCreateWithProjectJSONBody struct {
Key *string `json:"key,omitempty"`
Multiple *bool `json:"multiple,omitempty"`
Required *bool `json:"required,omitempty"`
Type *ValueType `json:"type,omitempty"`
}
FieldCreateWithProjectJSONBody defines parameters for FieldCreateWithProject.
type FieldCreateWithProjectJSONRequestBody ¶
type FieldCreateWithProjectJSONRequestBody FieldCreateWithProjectJSONBody
FieldCreateWithProjectJSONRequestBody defines body for FieldCreateWithProject for application/json ContentType.
type FieldIdOrKeyParam ¶
type FieldIdOrKeyParam = schema.FieldIDOrKey
FieldIdOrKeyParam defines model for fieldIdOrKeyParam.
type FieldSelector ¶
type FieldSelector struct {
FieldId *id.FieldID `json:"fieldId,omitempty"`
Type *FieldSelectorType `json:"type,omitempty"`
}
FieldSelector defines model for fieldSelector.
func (FieldSelector) Into ¶
func (i FieldSelector) Into() view.FieldSelector
type FieldSelectorType ¶
type FieldSelectorType string
FieldSelectorType defines model for FieldSelector.Type.
const ( FieldSelectorTypeCreationDate FieldSelectorType = "creationDate" FieldSelectorTypeCreationUser FieldSelectorType = "creationUser" FieldSelectorTypeField FieldSelectorType = "field" FieldSelectorTypeId FieldSelectorType = "id" FieldSelectorTypeMetaField FieldSelectorType = "metaField" FieldSelectorTypeModificationDate FieldSelectorType = "modificationDate" FieldSelectorTypeModificationUser FieldSelectorType = "modificationUser" FieldSelectorTypeStatus FieldSelectorType = "status" )
Defines values for FieldSelectorType.
func (FieldSelectorType) Into ¶
func (e FieldSelectorType) Into() view.FieldType
type FieldUpdateJSONBody ¶
type FieldUpdateJSONBody struct {
Key *string `json:"key,omitempty"`
Multiple *bool `json:"multiple,omitempty"`
Required *bool `json:"required,omitempty"`
Type *ValueType `json:"type,omitempty"`
}
FieldUpdateJSONBody defines parameters for FieldUpdate.
type FieldUpdateJSONRequestBody ¶
type FieldUpdateJSONRequestBody FieldUpdateJSONBody
FieldUpdateJSONRequestBody defines body for FieldUpdate for application/json ContentType.
type FieldUpdateWithProjectJSONBody ¶
type FieldUpdateWithProjectJSONBody struct {
Key *string `json:"key,omitempty"`
Multiple *bool `json:"multiple,omitempty"`
Required *bool `json:"required,omitempty"`
Type *ValueType `json:"type,omitempty"`
}
FieldUpdateWithProjectJSONBody defines parameters for FieldUpdateWithProject.
type FieldUpdateWithProjectJSONRequestBody ¶
type FieldUpdateWithProjectJSONRequestBody FieldUpdateWithProjectJSONBody
FieldUpdateWithProjectJSONRequestBody defines body for FieldUpdateWithProject for application/json ContentType.
type File ¶
type File struct {
Children *[]File `json:"children,omitempty"`
ContentType *string `json:"contentType,omitempty"`
Name *string `json:"name,omitempty"`
Path *string `json:"path,omitempty"`
Size *float32 `json:"size,omitempty"`
}
File defines model for file.
type Geometry ¶
type Geometry struct {
Coordinates *Geometry_Coordinates `json:"coordinates,omitempty"`
Geometries *[]Geometry `json:"geometries,omitempty"`
Type *GeometryType `json:"type,omitempty"`
}
Geometry defines model for Geometry.
type GeometryCollection ¶
type GeometryCollection struct {
Geometries *[]Geometry `json:"geometries,omitempty"`
Type *GeometryCollectionType `json:"type,omitempty"`
}
GeometryCollection defines model for GeometryCollection.
type GeometryCollectionType ¶
type GeometryCollectionType string
GeometryCollectionType defines model for GeometryCollection.Type.
const (
GeometryCollectionTypeGeometryCollection GeometryCollectionType = "GeometryCollection"
)
Defines values for GeometryCollectionType.
type GeometryType ¶
type GeometryType string
GeometryType defines model for Geometry.Type.
const ( GeometryTypeGeometryCollection GeometryType = "GeometryCollection" GeometryTypeLineString GeometryType = "LineString" GeometryTypeMultiLineString GeometryType = "MultiLineString" GeometryTypeMultiPoint GeometryType = "MultiPoint" GeometryTypeMultiPolygon GeometryType = "MultiPolygon" GeometryTypePoint GeometryType = "Point" GeometryTypePolygon GeometryType = "Polygon" )
Defines values for GeometryType.
type Geometry_Coordinates ¶
type Geometry_Coordinates struct {
// contains filtered or unexported fields
}
Geometry_Coordinates defines model for Geometry.Coordinates.
func (Geometry_Coordinates) AsLineString ¶
func (t Geometry_Coordinates) AsLineString() (LineString, error)
AsLineString returns the union data inside the Geometry_Coordinates as a LineString
func (Geometry_Coordinates) AsMultiLineString ¶
func (t Geometry_Coordinates) AsMultiLineString() (MultiLineString, error)
AsMultiLineString returns the union data inside the Geometry_Coordinates as a MultiLineString
func (Geometry_Coordinates) AsMultiPoint ¶
func (t Geometry_Coordinates) AsMultiPoint() (MultiPoint, error)
AsMultiPoint returns the union data inside the Geometry_Coordinates as a MultiPoint
func (Geometry_Coordinates) AsMultiPolygon ¶
func (t Geometry_Coordinates) AsMultiPolygon() (MultiPolygon, error)
AsMultiPolygon returns the union data inside the Geometry_Coordinates as a MultiPolygon
func (Geometry_Coordinates) AsPoint ¶
func (t Geometry_Coordinates) AsPoint() (Point, error)
AsPoint returns the union data inside the Geometry_Coordinates as a Point
func (Geometry_Coordinates) AsPolygon ¶
func (t Geometry_Coordinates) AsPolygon() (Polygon, error)
AsPolygon returns the union data inside the Geometry_Coordinates as a Polygon
func (*Geometry_Coordinates) FromLineString ¶
func (t *Geometry_Coordinates) FromLineString(v LineString) error
FromLineString overwrites any union data inside the Geometry_Coordinates as the provided LineString
func (*Geometry_Coordinates) FromMultiLineString ¶
func (t *Geometry_Coordinates) FromMultiLineString(v MultiLineString) error
FromMultiLineString overwrites any union data inside the Geometry_Coordinates as the provided MultiLineString
func (*Geometry_Coordinates) FromMultiPoint ¶
func (t *Geometry_Coordinates) FromMultiPoint(v MultiPoint) error
FromMultiPoint overwrites any union data inside the Geometry_Coordinates as the provided MultiPoint
func (*Geometry_Coordinates) FromMultiPolygon ¶
func (t *Geometry_Coordinates) FromMultiPolygon(v MultiPolygon) error
FromMultiPolygon overwrites any union data inside the Geometry_Coordinates as the provided MultiPolygon
func (*Geometry_Coordinates) FromPoint ¶
func (t *Geometry_Coordinates) FromPoint(v Point) error
FromPoint overwrites any union data inside the Geometry_Coordinates as the provided Point
func (*Geometry_Coordinates) FromPolygon ¶
func (t *Geometry_Coordinates) FromPolygon(v Polygon) error
FromPolygon overwrites any union data inside the Geometry_Coordinates as the provided Polygon
func (Geometry_Coordinates) MarshalJSON ¶
func (t Geometry_Coordinates) MarshalJSON() ([]byte, error)
func (*Geometry_Coordinates) MergeLineString ¶
func (t *Geometry_Coordinates) MergeLineString(v LineString) error
MergeLineString performs a merge with any union data inside the Geometry_Coordinates, using the provided LineString
func (*Geometry_Coordinates) MergeMultiLineString ¶
func (t *Geometry_Coordinates) MergeMultiLineString(v MultiLineString) error
MergeMultiLineString performs a merge with any union data inside the Geometry_Coordinates, using the provided MultiLineString
func (*Geometry_Coordinates) MergeMultiPoint ¶
func (t *Geometry_Coordinates) MergeMultiPoint(v MultiPoint) error
MergeMultiPoint performs a merge with any union data inside the Geometry_Coordinates, using the provided MultiPoint
func (*Geometry_Coordinates) MergeMultiPolygon ¶
func (t *Geometry_Coordinates) MergeMultiPolygon(v MultiPolygon) error
MergeMultiPolygon performs a merge with any union data inside the Geometry_Coordinates, using the provided MultiPolygon
func (*Geometry_Coordinates) MergePoint ¶
func (t *Geometry_Coordinates) MergePoint(v Point) error
MergePoint performs a merge with any union data inside the Geometry_Coordinates, using the provided Point
func (*Geometry_Coordinates) MergePolygon ¶
func (t *Geometry_Coordinates) MergePolygon(v Polygon) error
MergePolygon performs a merge with any union data inside the Geometry_Coordinates, using the provided Polygon
func (*Geometry_Coordinates) UnmarshalJSON ¶
func (t *Geometry_Coordinates) UnmarshalJSON(b []byte) error
type Group ¶
type Group struct {
Description string `json:"description"`
Fields []SchemaField `json:"fields"`
Id id.GroupID `json:"id"`
Key string `json:"key"`
Name string `json:"name"`
ProjectId id.ProjectID `json:"projectId"`
Schema Schema `json:"schema"`
SchemaId id.SchemaID `json:"schemaId"`
}
Group defines model for group.
type GroupCreateJSONBody ¶
type GroupCreateJSONBody struct {
Description *string `json:"description,omitempty"`
Key string `json:"key"`
Name string `json:"name"`
}
GroupCreateJSONBody defines parameters for GroupCreate.
type GroupCreateJSONRequestBody ¶
type GroupCreateJSONRequestBody GroupCreateJSONBody
GroupCreateJSONRequestBody defines body for GroupCreate for application/json ContentType.
type GroupCreateParams ¶
type GroupCreateParams struct {
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
// Sort Used to define the order of the response list
Sort *SortParam `form:"sort,omitempty" json:"sort,omitempty"`
// Dir Used to define the order direction of the response list, will be ignored if the order is not presented
Dir *SortDirParam `form:"dir,omitempty" json:"dir,omitempty"`
}
GroupCreateParams defines parameters for GroupCreate.
type GroupFilterParams ¶
type GroupFilterParams struct {
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
// Sort Used to define the order of the response list
Sort *SortParam `form:"sort,omitempty" json:"sort,omitempty"`
// Dir Used to define the order direction of the response list, will be ignored if the order is not presented
Dir *SortDirParam `form:"dir,omitempty" json:"dir,omitempty"`
}
GroupFilterParams defines parameters for GroupFilter.
type GroupIdOrKeyParam ¶
GroupIdOrKeyParam defines model for groupIdOrKeyParam.
type GroupUpdateJSONBody ¶
type GroupUpdateJSONBody struct {
Description *string `json:"description,omitempty"`
Key *string `json:"key,omitempty"`
Name *string `json:"name,omitempty"`
}
GroupUpdateJSONBody defines parameters for GroupUpdate.
type GroupUpdateJSONRequestBody ¶
type GroupUpdateJSONRequestBody GroupUpdateJSONBody
GroupUpdateJSONRequestBody defines body for GroupUpdate for application/json ContentType.
type GroupUpdateWithProjectJSONBody ¶
type GroupUpdateWithProjectJSONBody struct {
Description *string `json:"description,omitempty"`
Key *string `json:"key,omitempty"`
Name *string `json:"name,omitempty"`
}
GroupUpdateWithProjectJSONBody defines parameters for GroupUpdateWithProject.
type GroupUpdateWithProjectJSONRequestBody ¶
type GroupUpdateWithProjectJSONRequestBody GroupUpdateWithProjectJSONBody
GroupUpdateWithProjectJSONRequestBody defines body for GroupUpdateWithProject for application/json ContentType.
type Item ¶
type Item struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
Fields *[]Field `json:"fields,omitempty"`
Id *id.ItemID `json:"id,omitempty"`
IsMetadata *bool `json:"isMetadata,omitempty"`
MetadataItemId *id.ItemID `json:"metadataItemId,omitempty"`
ModelId *string `json:"modelId,omitempty"`
OriginalItemId *id.ItemID `json:"originalItemId,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
Item defines model for item.
type ItemCommentCreateJSONBody ¶
type ItemCommentCreateJSONBody struct {
Content *string `json:"content,omitempty"`
}
ItemCommentCreateJSONBody defines parameters for ItemCommentCreate.
type ItemCommentCreateJSONRequestBody ¶
type ItemCommentCreateJSONRequestBody ItemCommentCreateJSONBody
ItemCommentCreateJSONRequestBody defines body for ItemCommentCreate for application/json ContentType.
type ItemCommentUpdateJSONBody ¶
type ItemCommentUpdateJSONBody struct {
Content *string `json:"content,omitempty"`
}
ItemCommentUpdateJSONBody defines parameters for ItemCommentUpdate.
type ItemCommentUpdateJSONRequestBody ¶
type ItemCommentUpdateJSONRequestBody ItemCommentUpdateJSONBody
ItemCommentUpdateJSONRequestBody defines body for ItemCommentUpdate for application/json ContentType.
type ItemCreateJSONBody ¶
type ItemCreateJSONBody struct {
Fields *[]Field `json:"fields,omitempty"`
MetadataFields *[]Field `json:"metadataFields,omitempty"`
}
ItemCreateJSONBody defines parameters for ItemCreate.
type ItemCreateJSONRequestBody ¶
type ItemCreateJSONRequestBody ItemCreateJSONBody
ItemCreateJSONRequestBody defines body for ItemCreate for application/json ContentType.
type ItemCreateWithProjectJSONBody ¶
type ItemCreateWithProjectJSONBody struct {
Fields *[]Field `json:"fields,omitempty"`
MetadataFields *[]Field `json:"metadataFields,omitempty"`
}
ItemCreateWithProjectJSONBody defines parameters for ItemCreateWithProject.
type ItemCreateWithProjectJSONRequestBody ¶
type ItemCreateWithProjectJSONRequestBody ItemCreateWithProjectJSONBody
ItemCreateWithProjectJSONRequestBody defines body for ItemCreateWithProject for application/json ContentType.
type ItemFilterJSONBody ¶
type ItemFilterJSONBody struct {
Filter *Condition `json:"filter,omitempty"`
}
ItemFilterJSONBody defines parameters for ItemFilter.
type ItemFilterJSONRequestBody ¶
type ItemFilterJSONRequestBody ItemFilterJSONBody
ItemFilterJSONRequestBody defines body for ItemFilter for application/json ContentType.
type ItemFilterParams ¶
type ItemFilterParams struct {
// Sort Used to define the order of the response list
Sort *ItemFilterParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
// Dir Used to define the order direction of the response list, will be ignored if the order is not presented
Dir *ItemFilterParamsDir `form:"dir,omitempty" json:"dir,omitempty"`
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
// Ref Used to select a ref or ver
Ref *ItemFilterParamsRef `form:"ref,omitempty" json:"ref,omitempty"`
// Asset Specifies whether asset data are embedded in the results
Asset *AssetParam `form:"asset,omitempty" json:"asset,omitempty"`
// Keyword keyword string
Keyword *KeywordParam `form:"keyword,omitempty" json:"keyword,omitempty"`
}
ItemFilterParams defines parameters for ItemFilter.
type ItemFilterParamsDir ¶
type ItemFilterParamsDir string
ItemFilterParamsDir defines parameters for ItemFilter.
const ( ItemFilterParamsDirAsc ItemFilterParamsDir = "asc" ItemFilterParamsDirDesc ItemFilterParamsDir = "desc" )
Defines values for ItemFilterParamsDir.
type ItemFilterParamsRef ¶
type ItemFilterParamsRef string
ItemFilterParamsRef defines parameters for ItemFilter.
const ( ItemFilterParamsRefLatest ItemFilterParamsRef = "latest" ItemFilterParamsRefPublic ItemFilterParamsRef = "public" )
Defines values for ItemFilterParamsRef.
type ItemFilterParamsSort ¶
type ItemFilterParamsSort string
ItemFilterParamsSort defines parameters for ItemFilter.
const ( ItemFilterParamsSortCreatedAt ItemFilterParamsSort = "createdAt" ItemFilterParamsSortUpdatedAt ItemFilterParamsSort = "updatedAt" )
Defines values for ItemFilterParamsSort.
type ItemFilterWithProjectParams ¶
type ItemFilterWithProjectParams struct {
// Sort Used to define the order of the response list
Sort *ItemFilterWithProjectParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
// Dir Used to define the order direction of the response list, will be ignored if the order is not presented
Dir *ItemFilterWithProjectParamsDir `form:"dir,omitempty" json:"dir,omitempty"`
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
// Ref Used to select a ref or ver
Ref *ItemFilterWithProjectParamsRef `form:"ref,omitempty" json:"ref,omitempty"`
// Asset Specifies whether asset data are embedded in the results
Asset *AssetParam `form:"asset,omitempty" json:"asset,omitempty"`
}
ItemFilterWithProjectParams defines parameters for ItemFilterWithProject.
type ItemFilterWithProjectParamsDir ¶
type ItemFilterWithProjectParamsDir string
ItemFilterWithProjectParamsDir defines parameters for ItemFilterWithProject.
const ( ItemFilterWithProjectParamsDirAsc ItemFilterWithProjectParamsDir = "asc" ItemFilterWithProjectParamsDirDesc ItemFilterWithProjectParamsDir = "desc" )
Defines values for ItemFilterWithProjectParamsDir.
type ItemFilterWithProjectParamsRef ¶
type ItemFilterWithProjectParamsRef string
ItemFilterWithProjectParamsRef defines parameters for ItemFilterWithProject.
const ( ItemFilterWithProjectParamsRefLatest ItemFilterWithProjectParamsRef = "latest" ItemFilterWithProjectParamsRefPublic ItemFilterWithProjectParamsRef = "public" )
Defines values for ItemFilterWithProjectParamsRef.
type ItemFilterWithProjectParamsSort ¶
type ItemFilterWithProjectParamsSort string
ItemFilterWithProjectParamsSort defines parameters for ItemFilterWithProject.
const ( ItemFilterWithProjectParamsSortCreatedAt ItemFilterWithProjectParamsSort = "createdAt" ItemFilterWithProjectParamsSortUpdatedAt ItemFilterWithProjectParamsSort = "updatedAt" )
Defines values for ItemFilterWithProjectParamsSort.
type ItemGetParams ¶
type ItemGetParams struct {
// Ref Used to select a ref or ver
Ref *ItemGetParamsRef `form:"ref,omitempty" json:"ref,omitempty"`
// Asset Specifies whether asset data are embedded in the results
Asset *AssetParam `form:"asset,omitempty" json:"asset,omitempty"`
}
ItemGetParams defines parameters for ItemGet.
type ItemGetParamsRef ¶
type ItemGetParamsRef string
ItemGetParamsRef defines parameters for ItemGet.
const ( ItemGetParamsRefLatest ItemGetParamsRef = "latest" ItemGetParamsRefPublic ItemGetParamsRef = "public" )
Defines values for ItemGetParamsRef.
type ItemModelSchema ¶
type ItemModelSchema struct {
Item Item `json:"item"`
ReferencedItems []*VersionedItem `json:"referencedItems,omitempty"`
Model Model `json:"model"`
Schema Schema `json:"schema"`
Changes []FieldChange `json:"changes,omitempty"`
}
func NewItemModelSchema ¶
func NewItemModelSchema(i item.ItemModelSchema, assets *AssetContext) ItemModelSchema
type ItemModelSchemaItemChange ¶
type ItemModelSchemaItemChange struct {
Item Item `json:"item"`
Model Model `json:"model"`
Schema Schema `json:"schema"`
Changes []FieldChange `json:"changes"`
}
type ItemUpdateJSONBody ¶
type ItemUpdateJSONBody struct {
Asset *AssetEmbedding `json:"asset,omitempty"`
Fields *[]Field `json:"fields,omitempty"`
MetadataFields *[]Field `json:"metadataFields,omitempty"`
}
ItemUpdateJSONBody defines parameters for ItemUpdate.
type ItemUpdateJSONRequestBody ¶
type ItemUpdateJSONRequestBody ItemUpdateJSONBody
ItemUpdateJSONRequestBody defines body for ItemUpdate for application/json ContentType.
type ItemsAsCSVParams ¶
type ItemsAsCSVParams struct {
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
// Ref Used to select a ref or ver
Ref *ItemsAsCSVParamsRef `form:"ref,omitempty" json:"ref,omitempty"`
}
ItemsAsCSVParams defines parameters for ItemsAsCSV.
type ItemsAsCSVParamsRef ¶
type ItemsAsCSVParamsRef string
ItemsAsCSVParamsRef defines parameters for ItemsAsCSV.
const ( ItemsAsCSVParamsRefLatest ItemsAsCSVParamsRef = "latest" ItemsAsCSVParamsRefPublic ItemsAsCSVParamsRef = "public" )
Defines values for ItemsAsCSVParamsRef.
type ItemsAsGeoJSONParams ¶
type ItemsAsGeoJSONParams struct {
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
// Ref Used to select a ref or ver
Ref *ItemsAsGeoJSONParamsRef `form:"ref,omitempty" json:"ref,omitempty"`
}
ItemsAsGeoJSONParams defines parameters for ItemsAsGeoJSON.
type ItemsAsGeoJSONParamsRef ¶
type ItemsAsGeoJSONParamsRef string
ItemsAsGeoJSONParamsRef defines parameters for ItemsAsGeoJSON.
const ( ItemsAsGeoJSONParamsRefLatest ItemsAsGeoJSONParamsRef = "latest" ItemsAsGeoJSONParamsRefPublic ItemsAsGeoJSONParamsRef = "public" )
Defines values for ItemsAsGeoJSONParamsRef.
type ItemsWithProjectAsCSVParams ¶
type ItemsWithProjectAsCSVParams struct {
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
// Ref Used to select a ref or ver
Ref *ItemsWithProjectAsCSVParamsRef `form:"ref,omitempty" json:"ref,omitempty"`
}
ItemsWithProjectAsCSVParams defines parameters for ItemsWithProjectAsCSV.
type ItemsWithProjectAsCSVParamsRef ¶
type ItemsWithProjectAsCSVParamsRef string
ItemsWithProjectAsCSVParamsRef defines parameters for ItemsWithProjectAsCSV.
const ( ItemsWithProjectAsCSVParamsRefLatest ItemsWithProjectAsCSVParamsRef = "latest" ItemsWithProjectAsCSVParamsRefPublic ItemsWithProjectAsCSVParamsRef = "public" )
Defines values for ItemsWithProjectAsCSVParamsRef.
type ItemsWithProjectAsGeoJSONParams ¶
type ItemsWithProjectAsGeoJSONParams struct {
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
// Ref Used to select a ref or ver
Ref *ItemsWithProjectAsGeoJSONParamsRef `form:"ref,omitempty" json:"ref,omitempty"`
}
ItemsWithProjectAsGeoJSONParams defines parameters for ItemsWithProjectAsGeoJSON.
type ItemsWithProjectAsGeoJSONParamsRef ¶
type ItemsWithProjectAsGeoJSONParamsRef string
ItemsWithProjectAsGeoJSONParamsRef defines parameters for ItemsWithProjectAsGeoJSON.
const ( Latest ItemsWithProjectAsGeoJSONParamsRef = "latest" Public ItemsWithProjectAsGeoJSONParamsRef = "public" )
Defines values for ItemsWithProjectAsGeoJSONParamsRef.
type Model ¶
type Model struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
Description *string `json:"description,omitempty"`
Id *id.ModelID `json:"id,omitempty"`
Key *string `json:"key,omitempty"`
LastModified *time.Time `json:"lastModified,omitempty"`
MetadataSchema *Schema `json:"metadataSchema,omitempty"`
MetadataSchemaId *id.SchemaID `json:"metadataSchemaId,omitempty"`
Name *string `json:"name,omitempty"`
ProjectId *id.ProjectID `json:"projectId,omitempty"`
Public *bool `json:"public,omitempty"`
Schema *Schema `json:"schema,omitempty"`
SchemaId *id.SchemaID `json:"schemaId,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}
Model defines model for model.
type ModelCreateJSONBody ¶
type ModelCreateJSONBody struct {
Description *string `json:"description,omitempty"`
Key *string `json:"key,omitempty"`
Name *string `json:"name,omitempty"`
}
ModelCreateJSONBody defines parameters for ModelCreate.
type ModelCreateJSONRequestBody ¶
type ModelCreateJSONRequestBody ModelCreateJSONBody
ModelCreateJSONRequestBody defines body for ModelCreate for application/json ContentType.
type ModelCreateParams ¶
type ModelCreateParams struct {
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}
ModelCreateParams defines parameters for ModelCreate.
type ModelFilterParams ¶
type ModelFilterParams struct {
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}
ModelFilterParams defines parameters for ModelFilter.
type ModelIdOrKeyParam ¶
ModelIdOrKeyParam defines model for modelIdOrKeyParam.
type ModelImportJSONBody ¶
type ModelImportJSONBody struct {
AsBackground *bool `json:"asBackground,omitempty"`
AssetId id.AssetID `json:"assetId"`
Format ModelImportJSONBodyFormat `json:"format"`
GeometryFieldKey *string `json:"geometryFieldKey,omitempty"`
MutateSchema *bool `json:"mutateSchema,omitempty"`
Strategy ModelImportJSONBodyStrategy `json:"strategy"`
}
ModelImportJSONBody defines parameters for ModelImport.
type ModelImportJSONBodyFormat ¶
type ModelImportJSONBodyFormat string
ModelImportJSONBodyFormat defines parameters for ModelImport.
const ( ModelImportJSONBodyFormatGeoJson ModelImportJSONBodyFormat = "geoJson" ModelImportJSONBodyFormatJson ModelImportJSONBodyFormat = "json" )
Defines values for ModelImportJSONBodyFormat.
type ModelImportJSONBodyStrategy ¶
type ModelImportJSONBodyStrategy string
ModelImportJSONBodyStrategy defines parameters for ModelImport.
const ( ModelImportJSONBodyStrategyInsert ModelImportJSONBodyStrategy = "insert" ModelImportJSONBodyStrategyUpdate ModelImportJSONBodyStrategy = "update" ModelImportJSONBodyStrategyUpsert ModelImportJSONBodyStrategy = "upsert" )
Defines values for ModelImportJSONBodyStrategy.
type ModelImportJSONRequestBody ¶
type ModelImportJSONRequestBody ModelImportJSONBody
ModelImportJSONRequestBody defines body for ModelImport for application/json ContentType.
type ModelImportMultipartBody ¶
type ModelImportMultipartBody struct {
File *openapi_types.File `json:"file,omitempty"`
Format ModelImportMultipartBodyFormat `json:"format"`
GeometryFieldKey *string `json:"geometryFieldKey,omitempty"`
MutateSchema *bool `json:"mutateSchema,omitempty"`
Strategy ModelImportMultipartBodyStrategy `json:"strategy"`
}
ModelImportMultipartBody defines parameters for ModelImport.
type ModelImportMultipartBodyFormat ¶
type ModelImportMultipartBodyFormat string
ModelImportMultipartBodyFormat defines parameters for ModelImport.
const ( ModelImportMultipartBodyFormatGeoJson ModelImportMultipartBodyFormat = "geoJson" ModelImportMultipartBodyFormatJson ModelImportMultipartBodyFormat = "json" )
Defines values for ModelImportMultipartBodyFormat.
type ModelImportMultipartBodyStrategy ¶
type ModelImportMultipartBodyStrategy string
ModelImportMultipartBodyStrategy defines parameters for ModelImport.
const ( ModelImportMultipartBodyStrategyInsert ModelImportMultipartBodyStrategy = "insert" ModelImportMultipartBodyStrategyUpdate ModelImportMultipartBodyStrategy = "update" ModelImportMultipartBodyStrategyUpsert ModelImportMultipartBodyStrategy = "upsert" )
Defines values for ModelImportMultipartBodyStrategy.
type ModelImportMultipartRequestBody ¶
type ModelImportMultipartRequestBody ModelImportMultipartBody
ModelImportMultipartRequestBody defines body for ModelImport for multipart/form-data ContentType.
type ModelUpdateJSONBody ¶
type ModelUpdateJSONBody struct {
Description *string `json:"description,omitempty"`
Key *string `json:"key,omitempty"`
Name *string `json:"name,omitempty"`
}
ModelUpdateJSONBody defines parameters for ModelUpdate.
type ModelUpdateJSONRequestBody ¶
type ModelUpdateJSONRequestBody ModelUpdateJSONBody
ModelUpdateJSONRequestBody defines body for ModelUpdate for application/json ContentType.
type ModelUpdateWithProjectJSONBody ¶
type ModelUpdateWithProjectJSONBody struct {
Description *string `json:"description,omitempty"`
Key *string `json:"key,omitempty"`
Name *string `json:"name,omitempty"`
}
ModelUpdateWithProjectJSONBody defines parameters for ModelUpdateWithProject.
type ModelUpdateWithProjectJSONRequestBody ¶
type ModelUpdateWithProjectJSONRequestBody ModelUpdateWithProjectJSONBody
ModelUpdateWithProjectJSONRequestBody defines body for ModelUpdateWithProject for application/json ContentType.
type MultiLineString ¶
type MultiLineString = []LineString
MultiLineString defines model for MultiLineString.
type Operator ¶
type Operator struct {
User *OperatorUser `json:"user,omitempty"`
Integration *OperatorIntegration `json:"integration,omitempty"`
Machine *OperatorMachine `json:"machine,omitempty"`
}
func NewOperator ¶
type OperatorIntegration ¶
type OperatorIntegration struct {
ID string `json:"id"`
}
type OperatorMachine ¶
type OperatorMachine struct{}
type OperatorUser ¶
type OperatorUser struct {
ID string `json:"id"`
}
type Project ¶
type Project struct {
Alias string `json:"alias"`
CreatedAt time.Time `json:"createdAt"`
Description string `json:"description"`
Id id.ProjectID `json:"id"`
Name string `json:"name"`
Publication *ProjectPublication `json:"publication,omitempty"`
RequestRoles *[]ProjectRequestRole `json:"requestRoles,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
WorkspaceId accountdomain.WorkspaceID `json:"workspaceId"`
}
Project defines model for project.
func NewProject ¶
type ProjectCreateJSONBody ¶
type ProjectCreateJSONBody struct {
Alias *string `json:"alias,omitempty"`
Description *string `json:"description,omitempty"`
Name *string `json:"name,omitempty"`
RequestRoles *[]ProjectRequestRole `json:"requestRoles,omitempty"`
}
ProjectCreateJSONBody defines parameters for ProjectCreate.
type ProjectCreateJSONRequestBody ¶
type ProjectCreateJSONRequestBody ProjectCreateJSONBody
ProjectCreateJSONRequestBody defines body for ProjectCreate for application/json ContentType.
type ProjectCreateParams ¶
type ProjectCreateParams struct {
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}
ProjectCreateParams defines parameters for ProjectCreate.
type ProjectFilterParams ¶
type ProjectFilterParams struct {
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}
ProjectFilterParams defines parameters for ProjectFilter.
type ProjectIdAlias ¶
type ProjectIdOrAliasParam ¶
ProjectIdOrAliasParam defines model for projectIdOrAliasParam.
type ProjectIdParam ¶
ProjectIdParam defines model for projectIdParam.
type ProjectPublication ¶
type ProjectPublication struct {
AssetPublic *bool `json:"assetPublic,omitempty"`
Scope *ProjectPublicationScope `json:"scope,omitempty"`
Token *string `json:"token,omitempty"`
}
ProjectPublication defines model for projectPublication.
type ProjectPublicationScope ¶
type ProjectPublicationScope string
ProjectPublicationScope defines model for ProjectPublication.Scope.
const ( LIMITED ProjectPublicationScope = "LIMITED" PRIVATE ProjectPublicationScope = "PRIVATE" PUBLIC ProjectPublicationScope = "PUBLIC" )
Defines values for ProjectPublicationScope.
func ToProjectPublicationScope ¶
func ToProjectPublicationScope(p project.PublicationScope) *ProjectPublicationScope
type ProjectRequestRole ¶
type ProjectRequestRole string
ProjectRequestRole defines model for projectRequestRole.
const ( MAINTAINER ProjectRequestRole = "MAINTAINER" OWNER ProjectRequestRole = "OWNER" READER ProjectRequestRole = "READER" WRITER ProjectRequestRole = "WRITER" )
Defines values for ProjectRequestRole.
func ToRequestRole ¶
func ToRequestRole(r workspace.Role) *ProjectRequestRole
type ProjectUpdateJSONBody ¶
type ProjectUpdateJSONBody struct {
Alias *string `json:"alias,omitempty"`
Description *string `json:"description,omitempty"`
Name *string `json:"name,omitempty"`
Publication *ProjectPublication `json:"publication,omitempty"`
RequestRoles *[]ProjectRequestRole `json:"requestRoles,omitempty"`
}
ProjectUpdateJSONBody defines parameters for ProjectUpdate.
type ProjectUpdateJSONRequestBody ¶
type ProjectUpdateJSONRequestBody ProjectUpdateJSONBody
ProjectUpdateJSONRequestBody defines body for ProjectUpdate for application/json ContentType.
type RefOrVersion ¶
type RefOrVersion struct {
Ref *RefOrVersionRef `json:"ref,omitempty"`
Version *openapi_types.UUID `json:"version,omitempty"`
}
RefOrVersion defines model for refOrVersion.
type RefOrVersionRef ¶
type RefOrVersionRef string
RefOrVersionRef defines model for RefOrVersion.Ref.
const ( RefOrVersionRefLatest RefOrVersionRef = "latest" RefOrVersionRefPublic RefOrVersionRef = "public" )
Defines values for RefOrVersionRef.
type Schema ¶
type Schema struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
Fields *[]SchemaField `json:"fields,omitempty"`
Id *id.SchemaID `json:"id,omitempty"`
ProjectId *id.ProjectID `json:"projectId,omitempty"`
TitleField *id.FieldID `json:"titleField,omitempty"`
}
Schema defines model for schema.
type SchemaField ¶
type SchemaField struct {
Id *id.FieldID `json:"id,omitempty"`
Key *string `json:"key,omitempty"`
Multiple *bool `json:"multiple,omitempty"`
Required *bool `json:"required,omitempty"`
Type *ValueType `json:"type,omitempty"`
}
SchemaField defines model for schemaField.
type SchemaFilterParams ¶
type SchemaFilterParams struct {
// Sort Used to define the order of the response list
Sort *SortParam `form:"sort,omitempty" json:"sort,omitempty"`
// Dir Used to define the order direction of the response list, will be ignored if the order is not presented
Dir *SortDirParam `form:"dir,omitempty" json:"dir,omitempty"`
// Page Used to select the page
Page *PageParam `form:"page,omitempty" json:"page,omitempty"`
// PerPage Used to select the page
PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
// Keyword keyword string
Keyword *KeywordParam `form:"keyword,omitempty" json:"keyword,omitempty"`
}
SchemaFilterParams defines parameters for SchemaFilter.
type SchemaIdParam ¶
SchemaIdParam defines model for schemaIdParam.
type SchemaJSON ¶
type SchemaJSON struct {
Id *string `json:"$id,omitempty"`
Schema *string `json:"$schema,omitempty"`
Description *string `json:"description,omitempty"`
Properties map[string]SchemaJSONProperties `json:"properties"`
Title *string `json:"title,omitempty"`
Type string `json:"type"`
}
SchemaJSON defines model for schemaJSON.
type SchemaJSONProperties ¶
type SchemaJSONProperties struct {
Description *string `json:"description,omitempty"`
Format *string `json:"format,omitempty"`
Items *SchemaJSON `json:"items,omitempty"`
MaxLength *int `json:"maxLength,omitempty"`
Maximum *float64 `json:"maximum,omitempty"`
Minimum *float64 `json:"minimum,omitempty"`
Title *string `json:"title,omitempty"`
Type string `json:"type"`
}
SchemaJSONProperties defines model for schemaJSONProperties.
type SortDirParam ¶
type SortDirParam string
SortDirParam defines model for sortDirParam.
const ( SortDirParamAsc SortDirParam = "asc" SortDirParamDesc SortDirParam = "desc" )
Defines values for SortDirParam.
type TagResponse ¶
type TagResponse struct {
Color *string `json:"color,omitempty"`
Id *id.TagID `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
}
TagResponse defines model for tagResponse.
type ValueType ¶
type ValueType string
ValueType defines model for valueType.
const ( ValueTypeAsset ValueType = "asset" ValueTypeBool ValueType = "bool" ValueTypeCheckbox ValueType = "checkbox" ValueTypeDate ValueType = "date" ValueTypeGeometryEditor ValueType = "geometryEditor" ValueTypeGeometryObject ValueType = "geometryObject" ValueTypeGroup ValueType = "group" ValueTypeInteger ValueType = "integer" ValueTypeMarkdown ValueType = "markdown" ValueTypeNumber ValueType = "number" ValueTypeReference ValueType = "reference" ValueTypeRichText ValueType = "richText" ValueTypeSelect ValueType = "select" ValueTypeTag ValueType = "tag" ValueTypeText ValueType = "text" ValueTypeTextArea ValueType = "textArea" ValueTypeUrl ValueType = "url" )
Defines values for ValueType.
func ToValueType ¶
type Version ¶
type Version struct {
Parents *[]openapi_types.UUID `json:"parents,omitempty"`
Refs *[]openapi_types.UUID `json:"refs,omitempty"`
Version *openapi_types.UUID `json:"version,omitempty"`
}
Version defines model for version.
type VersionedItem ¶
type VersionedItem struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
Fields *[]Field `json:"fields,omitempty"`
Id *id.ItemID `json:"id,omitempty"`
IsMetadata *bool `json:"isMetadata,omitempty"`
MetadataFields *[]Field `json:"metadataFields,omitempty"`
ModelId *string `json:"modelId,omitempty"`
Parents *[]openapi_types.UUID `json:"parents,omitempty"`
ReferencedItems *[]VersionedItem `json:"referencedItems,omitempty"`
Refs *[]string `json:"refs,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
Version *openapi_types.UUID `json:"version,omitempty"`
}
VersionedItem defines model for versionedItem.
func NewVersionedItem ¶
func NewVersionedItem(ver item.Versioned, s *schema.Schema, assets *AssetContext, f *[]VersionedItem, ms *schema.Schema, mi item.Versioned, sgl schema.List) VersionedItem
type WorkspaceIdParam ¶
type WorkspaceIdParam = accountdomain.WorkspaceID
WorkspaceIdParam defines model for workspaceIdParam.