integrationapi

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

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

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

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

View Source
const (
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

View Source
var (
	ErrUnsupportedEntity = rerror.NewE(i18n.T("unsupported entity"))
)

Functions

func BuildCSVHeaders

func BuildCSVHeaders(s *schema.Schema) []string

CSV

func FromValueType

func FromValueType(t *ValueType) value.Type

func New

func New(obj any, v string, urlResolver asset.URLResolver) (res any, err error)

func RowFromItem

func RowFromItem(itm *item.Item, nonGeoFields []*schema.Field) ([]string, bool)

func ToValue

func ToValue(v *value.Value, sf *schema.Field, assets *AssetContext) any

func ToValues

func ToValues(v *value.Multiple, sf *schema.Field, assets *AssetContext) any

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"`
	TotalSize               *float32                      `json:"totalSize,omitempty"`
	UpdatedAt               time.Time                     `json:"updatedAt"`
	Url                     string                        `json:"url"`
}

Asset defines model for asset.

func NewAsset

func NewAsset(a *asset.Asset, f *asset.File, url string, all bool) *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.

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

type AssetContext struct {
	Map     asset.Map
	Files   map[asset.ID]*asset.File
	BaseURL func(a *asset.Asset) string
	All     bool
}

func (*AssetContext) ResolveAsset

func (c *AssetContext) ResolveAsset(id asset.ID) *Asset

type AssetCreateJSONBody

type AssetCreateJSONBody struct {
	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 {
	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 AssetIdParam

type AssetIdParam = id.AssetID

AssetIdParam defines model for assetIdParam.

type AssetParam

type AssetParam = AssetEmbedding

AssetParam defines model for assetParam.

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 {
	ContentLength *int    `json:"contentLength,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

func NewComment(c *thread.Comment) *Comment

type CommentAuthorType

type CommentAuthorType string

CommentAuthorType defines model for Comment.AuthorType.

const (
	Integrtaion CommentAuthorType = "integrtaion"
	User        CommentAuthorType = "user"
)

Defines values for CommentAuthorType.

type CommentIdParam

type CommentIdParam = id.CommentID

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.

func (*Condition) Into

func (i *Condition) Into() *view.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

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

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

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

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

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

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

type Event

type Event struct {
	ID        string          `json:"eventId"`
	Type      string          `json:"type"`
	Timestamp time.Time       `json:"timestamp"`
	Data      any             `json:"data"`
	Project   *ProjectIdAlias `json:"project"`
	Operator  Operator        `json:"operator"`
}

func NewEvent

func NewEvent(e *event.Event[any], v string, urlResolver asset.URLResolver) (Event, error)

func NewEventWith

func NewEventWith(e *event.Event[any], override any, v string, urlResolver asset.URLResolver) (Event, error)

type Feature

type Feature struct {
	Geometry   *Geometry               `json:"geometry,omitempty"`
	Id         *id.ItemID              `json:"id,omitempty"`
	Properties *map[string]interface{} `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 FieldIdParam

type FieldIdParam = id.FieldID

FieldIdParam defines model for fieldIdParam.

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.

func ToAssetFile

func ToAssetFile(f *asset.File, all bool) *File

type GeoJSON

type GeoJSON = FeatureCollection

GeoJSON defines model for GeoJSON.

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

func NewItem

func NewItem(i *item.Item, ss schema.List, assets *AssetContext) 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 ItemIdParam

type ItemIdParam = id.ItemID

ItemIdParam defines model for itemIdParam.

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 KeywordParam

type KeywordParam = string

KeywordParam defines model for keywordParam.

type LineString

type LineString = []Point

LineString defines model for LineString.

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.

func NewModel

func NewModel(m *model.Model, sp *schema.Package, lastModified time.Time) 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

type ModelIdOrKeyParam = model.IDOrKey

ModelIdOrKeyParam defines model for modelIdOrKeyParam.

type ModelIdParam

type ModelIdParam = id.ModelID

ModelIdParam defines model for modelIdParam.

type ModelImportJSONBody

type ModelImportJSONBody struct {
	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 MultiPoint

type MultiPoint = []Point

MultiPoint defines model for MultiPoint.

type MultiPolygon

type MultiPolygon = []Polygon

MultiPolygon defines model for MultiPolygon.

type Operator

type Operator struct {
	User        *OperatorUser        `json:"user,omitempty"`
	Integration *OperatorIntegration `json:"integration,omitempty"`
	Machine     *OperatorMachine     `json:"machine,omitempty"`
}

func NewOperator

func NewOperator(o operator.Operator) Operator

type OperatorIntegration

type OperatorIntegration struct {
	ID string `json:"id"`
}

type OperatorMachine

type OperatorMachine struct{}

type OperatorUser

type OperatorUser struct {
	ID string `json:"id"`
}

type PageParam

type PageParam = int

PageParam defines model for pageParam.

type PerPageParam

type PerPageParam = int

PerPageParam defines model for perPageParam.

type Point

type Point = []float64

Point defines model for Point.

type Polygon

type Polygon = [][]Point

Polygon defines model for Polygon.

type Project

type Project struct {
	Alias       *string                    `json:"alias,omitempty"`
	CreatedAt   *time.Time                 `json:"createdAt,omitempty"`
	Description *string                    `json:"description,omitempty"`
	Id          *id.ProjectID              `json:"id,omitempty"`
	Name        *string                    `json:"name,omitempty"`
	UpdatedAt   *time.Time                 `json:"updatedAt,omitempty"`
	WorkspaceId *accountdomain.WorkspaceID `json:"workspaceId,omitempty"`
}

Project defines model for project.

func NewProject

func NewProject(p *project.Project) Project

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 ProjectIdAlias struct {
	ID    string `json:"id"`
	Alias string `json:"alias"`
}

type ProjectIdOrAliasParam

type ProjectIdOrAliasParam = project.IDOrAlias

ProjectIdOrAliasParam defines model for projectIdOrAliasParam.

type ProjectIdParam

type ProjectIdParam = id.ProjectID

ProjectIdParam defines model for projectIdParam.

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 RefParam

type RefParam string

RefParam defines model for refParam.

const (
	RefParamLatest RefParam = "latest"
	RefParamPublic RefParam = "public"
)

Defines values for RefParam.

type Schema

type Schema struct {
	TitleField *id.FieldID    `json:"TitleField,omitempty"`
	CreatedAt  *time.Time     `json:"createdAt,omitempty"`
	Fields     *[]SchemaField `json:"fields,omitempty"`
	Id         *id.SchemaID   `json:"id,omitempty"`
	ProjectId  *id.ProjectID  `json:"projectId,omitempty"`
}

Schema defines model for schema.

func NewSchema

func NewSchema(i *schema.Schema) 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 {
	// 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

type SchemaIdParam = id.SchemaID

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 SortParam

type SortParam string

SortParam defines model for sortParam.

const (
	SortParamCreatedAt SortParam = "createdAt"
	SortParamUpdatedAt SortParam = "updatedAt"
)

Defines values for SortParam.

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

func ToValueType(t value.Type) ValueType

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.

Jump to

Keyboard shortcuts

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