Skip to content

[PLAT-4296] [v0.22.5] Releasing latest changes around scene annotations #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 71 additions & 9 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1404,11 +1404,11 @@ export interface CreateSceneAnnotationRequestData {
*/
export interface CreateSceneAnnotationRequestDataAttributes {
/**
* A JSON string that describes the annotation type and its data. JSON data is limited to 16kb.
* @type {string}
* The data describing how to render this annotation.
* @type {SceneAnnotationCalloutDataType | SceneAnnotationCustomDataType}
* @memberof CreateSceneAnnotationRequestDataAttributes
*/
data: string;
data: SceneAnnotationCalloutDataType | SceneAnnotationCustomDataType;
/**
* A customer provided ID used for correlation.
* @type {string}
Expand Down Expand Up @@ -4333,6 +4333,68 @@ export interface SceneAnnotation {
*/
links?: { [key: string]: Link };
}
/**
* A type that describes a callout annotation.
* @export
* @interface SceneAnnotationCalloutDataType
*/
export interface SceneAnnotationCalloutDataType {
/**
* The type of annotation.
* @type {string}
* @memberof SceneAnnotationCalloutDataType
*/
type: string;
/**
*
* @type {Vector3}
* @memberof SceneAnnotationCalloutDataType
*/
position: Vector3;
/**
* An optional icon to display for this annotation. See [documentation](https://github.com/Vertexvis/vertex-web-sdk/tree/master/packages/viewer/src/components/viewer-icon#properties) for possible values.
* @type {string}
* @memberof SceneAnnotationCalloutDataType
*/
icon?: string;
/**
* A hex color value.
* @type {string}
* @memberof SceneAnnotationCalloutDataType
*/
primaryColor?: string;
/**
* A hex color value.
* @type {string}
* @memberof SceneAnnotationCalloutDataType
*/
accentColor?: string;
}
/**
* A type that describes a custom user provided annotation.
* @export
* @interface SceneAnnotationCustomDataType
*/
export interface SceneAnnotationCustomDataType {
/**
* The type of annotation.
* @type {string}
* @memberof SceneAnnotationCustomDataType
*/
type: string;
/**
* The type of annotation.
* @type {string}
* @memberof SceneAnnotationCustomDataType
*/
jsonType: string;
/**
* An encoded JSON string associated with the custom annotation.
* @type {string}
* @memberof SceneAnnotationCustomDataType
*/
json: string;
}
/**
*
* @export
Expand Down Expand Up @@ -4383,11 +4445,11 @@ export interface SceneAnnotationDataAttributes {
*/
modifiedAt: string;
/**
* A JSON string that describes the annotation type and its data. JSON data is limited to 16kb.
* @type {string}
* The data describing how to render this annotation.
* @type {SceneAnnotationCalloutDataType | SceneAnnotationCustomDataType}
* @memberof SceneAnnotationDataAttributes
*/
data: string;
data: SceneAnnotationCalloutDataType | SceneAnnotationCustomDataType;
/**
*
* @type {string}
Expand Down Expand Up @@ -6081,11 +6143,11 @@ export interface UpdateSceneAnnotationRequestData {
*/
export interface UpdateSceneAnnotationRequestDataAttributes {
/**
* A JSON string that describes the annotation type and its data. JSON data is limited to 16kb.
* @type {string}
* The data describing how to render this annotation.
* @type {SceneAnnotationCalloutDataType | SceneAnnotationCustomDataType}
* @memberof UpdateSceneAnnotationRequestDataAttributes
*/
data?: string;
data?: SceneAnnotationCalloutDataType | SceneAnnotationCustomDataType;
/**
* A customer provided ID used for correlation.
* @type {string}
Expand Down
2 changes: 1 addition & 1 deletion client/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '0.22.4';
export const version = '0.22.5';
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vertexvis/api-client-node",
"version": "0.22.4",
"version": "0.22.5",
"description": "The Vertex REST API client for Node.js.",
"license": "MIT",
"author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
Expand Down
117 changes: 92 additions & 25 deletions spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9741,13 +9741,64 @@ components:
- id
- type
type: object
SceneAnnotationJson:
description:
A JSON string that describes the annotation type and its data.
JSON data is limited to 16kb.
example: '{"type":"my-annotation","anchor":{"x":0,"y":0,"z":0}}'
maxLength: 16384
type: string
SceneAnnotationCalloutDataType:
description: A type that describes a callout annotation.
properties:
type:
description: The type of annotation.
example: callout
maxLength: 32
type: string
position:
$ref: '#/components/schemas/Vector3'
icon:
description: |
An optional icon to display for this annotation. See [documentation](https://github.com/Vertexvis/vertex-web-sdk/tree/master/packages/viewer/src/components/viewer-icon#properties) for possible values.
example: comment-show
maxLength: 64
type: string
primaryColor:
description: A hex color value.
example: '#FFFFFF'
maxLength: 7
minLength: 7
pattern: ^#[0-9a-fA-F]{6}$
type: string
accentColor:
description: A hex color value.
example: '#FFFFFF'
maxLength: 7
minLength: 7
pattern: ^#[0-9a-fA-F]{6}$
type: string
required:
- position
- type
type: object
SceneAnnotationCustomDataType:
additionalProperties: false
description: A type that describes a custom user provided annotation.
properties:
type:
description: The type of annotation.
example: custom
maxLength: 32
type: string
jsonType:
description: The type of annotation.
example: my-annotation-type
maxLength: 32
type: string
json:
description: An encoded JSON string associated with the custom annotation.
example: '{"label":"my annotation","anchor":{"x":0,"y":0,"z":0}}'
maxLength: 16384
type: string
required:
- json
- jsonType
- type
type: object
SceneAnnotationData:
additionalProperties: false
properties:
Expand Down Expand Up @@ -10507,6 +10558,13 @@ components:
- color
- width
type: object
HexColor:
description: A hex color value.
example: '#FFFFFF'
maxLength: 7
minLength: 7
pattern: ^#[0-9a-fA-F]{6}$
type: string
ExportConfig:
description: Describes the options for configuring a file export.
discriminator:
Expand Down Expand Up @@ -11704,12 +11762,15 @@ components:
CreateSceneAnnotationRequest_data_attributes:
properties:
data:
description:
A JSON string that describes the annotation type and its data.
JSON data is limited to 16kb.
example: '{"type":"my-annotation","anchor":{"x":0,"y":0,"z":0}}'
maxLength: 16384
type: string
description: The data describing how to render this annotation.
discriminator:
mapping:
callout: '#/components/schemas/SceneAnnotationCalloutDataType'
custom: '#/components/schemas/SceneAnnotationCustomDataType'
propertyName: type
oneOf:
- $ref: '#/components/schemas/SceneAnnotationCalloutDataType'
- $ref: '#/components/schemas/SceneAnnotationCustomDataType'
suppliedId:
description: A customer provided ID used for correlation.
example: PN12345
Expand All @@ -11734,12 +11795,15 @@ components:
UpdateSceneAnnotationRequest_data_attributes:
properties:
data:
description:
A JSON string that describes the annotation type and its data.
JSON data is limited to 16kb.
example: '{"type":"my-annotation","anchor":{"x":0,"y":0,"z":0}}'
maxLength: 16384
type: string
description: The data describing how to render this annotation.
discriminator:
mapping:
callout: '#/components/schemas/SceneAnnotationCalloutDataType'
custom: '#/components/schemas/SceneAnnotationCustomDataType'
propertyName: type
oneOf:
- $ref: '#/components/schemas/SceneAnnotationCalloutDataType'
- $ref: '#/components/schemas/SceneAnnotationCustomDataType'
suppliedId:
description: A customer provided ID used for correlation.
example: PN12345
Expand Down Expand Up @@ -12610,12 +12674,15 @@ components:
format: date-time
type: string
data:
description:
A JSON string that describes the annotation type and its data.
JSON data is limited to 16kb.
example: '{"type":"my-annotation","anchor":{"x":0,"y":0,"z":0}}'
maxLength: 16384
type: string
description: The data describing how to render this annotation.
discriminator:
mapping:
callout: '#/components/schemas/SceneAnnotationCalloutDataType'
custom: '#/components/schemas/SceneAnnotationCustomDataType'
propertyName: type
oneOf:
- $ref: '#/components/schemas/SceneAnnotationCalloutDataType'
- $ref: '#/components/schemas/SceneAnnotationCustomDataType'
suppliedId:
example: some-string
maxLength: 1024
Expand Down
Loading