@vertexvis/api-client-node 0.22.3 → 0.22.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -4060,6 +4060,325 @@ export class SceneAlterationsApi extends BaseAPI {
4060
4060
  .then((request) => request(this.axios, this.basePath));
4061
4061
  }
4062
4062
  }
4063
+ /**
4064
+ * SceneAnnotationsApi - axios parameter creator
4065
+ * @export
4066
+ */
4067
+ export const SceneAnnotationsApiAxiosParamCreator = function (configuration) {
4068
+ return {
4069
+ /**
4070
+ * Create an annotation belonging to an annotation set. **Preview:** This is a preview API and is subject to change.
4071
+ * @param {string} id The `scene-annotation-set` ID.
4072
+ * @param {CreateSceneAnnotationRequest} createSceneAnnotationRequest
4073
+ * @param {*} [options] Override http request option.
4074
+ * @throws {RequiredError}
4075
+ */
4076
+ createSceneAnnotation: (id, createSceneAnnotationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4077
+ var _a;
4078
+ // verify required parameter 'id' is not null or undefined
4079
+ assertParamExists('createSceneAnnotation', 'id', id);
4080
+ // verify required parameter 'createSceneAnnotationRequest' is not null or undefined
4081
+ assertParamExists('createSceneAnnotation', 'createSceneAnnotationRequest', createSceneAnnotationRequest);
4082
+ const localVarPath = `/scene-annotation-sets/{id}/scene-annotations`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4083
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4084
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4085
+ let baseOptions;
4086
+ if (configuration) {
4087
+ baseOptions = configuration.baseOptions;
4088
+ }
4089
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4090
+ const localVarHeaderParameter = {};
4091
+ const localVarQueryParameter = {};
4092
+ // authentication OAuth2 required
4093
+ // oauth required
4094
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
4095
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
4096
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4097
+ let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
4098
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4099
+ localVarRequestOptions.data = serializeDataIfNeeded(createSceneAnnotationRequest, localVarRequestOptions, configuration);
4100
+ return {
4101
+ url: toPathString(localVarUrlObj),
4102
+ options: localVarRequestOptions,
4103
+ };
4104
+ }),
4105
+ /**
4106
+ * Create an annotation set that is associated with a scene. **Preview:** This is a preview API and is subject to change.
4107
+ * @param {string} id The `scene` ID.
4108
+ * @param {CreateSceneAnnotationSetRequest} createSceneAnnotationSetRequest
4109
+ * @param {*} [options] Override http request option.
4110
+ * @throws {RequiredError}
4111
+ */
4112
+ createSceneAnnotationSet: (id, createSceneAnnotationSetRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4113
+ var _b;
4114
+ // verify required parameter 'id' is not null or undefined
4115
+ assertParamExists('createSceneAnnotationSet', 'id', id);
4116
+ // verify required parameter 'createSceneAnnotationSetRequest' is not null or undefined
4117
+ assertParamExists('createSceneAnnotationSet', 'createSceneAnnotationSetRequest', createSceneAnnotationSetRequest);
4118
+ const localVarPath = `/scenes/{id}/scene-annotation-sets`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4119
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4120
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4121
+ let baseOptions;
4122
+ if (configuration) {
4123
+ baseOptions = configuration.baseOptions;
4124
+ }
4125
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4126
+ const localVarHeaderParameter = {};
4127
+ const localVarQueryParameter = {};
4128
+ // authentication OAuth2 required
4129
+ // oauth required
4130
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
4131
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
4132
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4133
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
4134
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4135
+ localVarRequestOptions.data = serializeDataIfNeeded(createSceneAnnotationSetRequest, localVarRequestOptions, configuration);
4136
+ return {
4137
+ url: toPathString(localVarUrlObj),
4138
+ options: localVarRequestOptions,
4139
+ };
4140
+ }),
4141
+ /**
4142
+ * Delete a scene annotation. **Preview:** This is a preview API and is subject to change.
4143
+ * @param {string} id The `scene-annotation` ID.
4144
+ * @param {*} [options] Override http request option.
4145
+ * @throws {RequiredError}
4146
+ */
4147
+ deleteSceneAnnotation: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
4148
+ var _c;
4149
+ // verify required parameter 'id' is not null or undefined
4150
+ assertParamExists('deleteSceneAnnotation', 'id', id);
4151
+ const localVarPath = `/scene-annotations/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4153
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4154
+ let baseOptions;
4155
+ if (configuration) {
4156
+ baseOptions = configuration.baseOptions;
4157
+ }
4158
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4159
+ const localVarHeaderParameter = {};
4160
+ const localVarQueryParameter = {};
4161
+ // authentication OAuth2 required
4162
+ // oauth required
4163
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
4164
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4165
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
4166
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4167
+ return {
4168
+ url: toPathString(localVarUrlObj),
4169
+ options: localVarRequestOptions,
4170
+ };
4171
+ }),
4172
+ /**
4173
+ * Update the attributes of an annotation. **Preview:** This is a preview API and is subject to change.
4174
+ * @param {string} id The `scene-annotation` ID.
4175
+ * @param {UpdateSceneAnnotationRequest} updateSceneAnnotationRequest
4176
+ * @param {*} [options] Override http request option.
4177
+ * @throws {RequiredError}
4178
+ */
4179
+ updateSceneAnnotation: (id, updateSceneAnnotationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4180
+ var _d;
4181
+ // verify required parameter 'id' is not null or undefined
4182
+ assertParamExists('updateSceneAnnotation', 'id', id);
4183
+ // verify required parameter 'updateSceneAnnotationRequest' is not null or undefined
4184
+ assertParamExists('updateSceneAnnotation', 'updateSceneAnnotationRequest', updateSceneAnnotationRequest);
4185
+ const localVarPath = `/scene-annotations/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4186
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4187
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4188
+ let baseOptions;
4189
+ if (configuration) {
4190
+ baseOptions = configuration.baseOptions;
4191
+ }
4192
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
4193
+ const localVarHeaderParameter = {};
4194
+ const localVarQueryParameter = {};
4195
+ // authentication OAuth2 required
4196
+ // oauth required
4197
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
4198
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
4199
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4200
+ let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
4201
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4202
+ localVarRequestOptions.data = serializeDataIfNeeded(updateSceneAnnotationRequest, localVarRequestOptions, configuration);
4203
+ return {
4204
+ url: toPathString(localVarUrlObj),
4205
+ options: localVarRequestOptions,
4206
+ };
4207
+ }),
4208
+ };
4209
+ };
4210
+ /**
4211
+ * SceneAnnotationsApi - functional programming interface
4212
+ * @export
4213
+ */
4214
+ export const SceneAnnotationsApiFp = function (configuration) {
4215
+ const localVarAxiosParamCreator = SceneAnnotationsApiAxiosParamCreator(configuration);
4216
+ return {
4217
+ /**
4218
+ * Create an annotation belonging to an annotation set. **Preview:** This is a preview API and is subject to change.
4219
+ * @param {string} id The `scene-annotation-set` ID.
4220
+ * @param {CreateSceneAnnotationRequest} createSceneAnnotationRequest
4221
+ * @param {*} [options] Override http request option.
4222
+ * @throws {RequiredError}
4223
+ */
4224
+ createSceneAnnotation(id, createSceneAnnotationRequest, options) {
4225
+ return __awaiter(this, void 0, void 0, function* () {
4226
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSceneAnnotation(id, createSceneAnnotationRequest, options);
4227
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4228
+ });
4229
+ },
4230
+ /**
4231
+ * Create an annotation set that is associated with a scene. **Preview:** This is a preview API and is subject to change.
4232
+ * @param {string} id The `scene` ID.
4233
+ * @param {CreateSceneAnnotationSetRequest} createSceneAnnotationSetRequest
4234
+ * @param {*} [options] Override http request option.
4235
+ * @throws {RequiredError}
4236
+ */
4237
+ createSceneAnnotationSet(id, createSceneAnnotationSetRequest, options) {
4238
+ return __awaiter(this, void 0, void 0, function* () {
4239
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSceneAnnotationSet(id, createSceneAnnotationSetRequest, options);
4240
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4241
+ });
4242
+ },
4243
+ /**
4244
+ * Delete a scene annotation. **Preview:** This is a preview API and is subject to change.
4245
+ * @param {string} id The `scene-annotation` ID.
4246
+ * @param {*} [options] Override http request option.
4247
+ * @throws {RequiredError}
4248
+ */
4249
+ deleteSceneAnnotation(id, options) {
4250
+ return __awaiter(this, void 0, void 0, function* () {
4251
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSceneAnnotation(id, options);
4252
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4253
+ });
4254
+ },
4255
+ /**
4256
+ * Update the attributes of an annotation. **Preview:** This is a preview API and is subject to change.
4257
+ * @param {string} id The `scene-annotation` ID.
4258
+ * @param {UpdateSceneAnnotationRequest} updateSceneAnnotationRequest
4259
+ * @param {*} [options] Override http request option.
4260
+ * @throws {RequiredError}
4261
+ */
4262
+ updateSceneAnnotation(id, updateSceneAnnotationRequest, options) {
4263
+ return __awaiter(this, void 0, void 0, function* () {
4264
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSceneAnnotation(id, updateSceneAnnotationRequest, options);
4265
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4266
+ });
4267
+ },
4268
+ };
4269
+ };
4270
+ /**
4271
+ * SceneAnnotationsApi - factory interface
4272
+ * @export
4273
+ */
4274
+ export const SceneAnnotationsApiFactory = function (configuration, basePath, axios) {
4275
+ const localVarFp = SceneAnnotationsApiFp(configuration);
4276
+ return {
4277
+ /**
4278
+ * Create an annotation belonging to an annotation set. **Preview:** This is a preview API and is subject to change.
4279
+ * @param {string} id The `scene-annotation-set` ID.
4280
+ * @param {CreateSceneAnnotationRequest} createSceneAnnotationRequest
4281
+ * @param {*} [options] Override http request option.
4282
+ * @throws {RequiredError}
4283
+ */
4284
+ createSceneAnnotation(id, createSceneAnnotationRequest, options) {
4285
+ return localVarFp
4286
+ .createSceneAnnotation(id, createSceneAnnotationRequest, options)
4287
+ .then((request) => request(axios, basePath));
4288
+ },
4289
+ /**
4290
+ * Create an annotation set that is associated with a scene. **Preview:** This is a preview API and is subject to change.
4291
+ * @param {string} id The `scene` ID.
4292
+ * @param {CreateSceneAnnotationSetRequest} createSceneAnnotationSetRequest
4293
+ * @param {*} [options] Override http request option.
4294
+ * @throws {RequiredError}
4295
+ */
4296
+ createSceneAnnotationSet(id, createSceneAnnotationSetRequest, options) {
4297
+ return localVarFp
4298
+ .createSceneAnnotationSet(id, createSceneAnnotationSetRequest, options)
4299
+ .then((request) => request(axios, basePath));
4300
+ },
4301
+ /**
4302
+ * Delete a scene annotation. **Preview:** This is a preview API and is subject to change.
4303
+ * @param {string} id The `scene-annotation` ID.
4304
+ * @param {*} [options] Override http request option.
4305
+ * @throws {RequiredError}
4306
+ */
4307
+ deleteSceneAnnotation(id, options) {
4308
+ return localVarFp
4309
+ .deleteSceneAnnotation(id, options)
4310
+ .then((request) => request(axios, basePath));
4311
+ },
4312
+ /**
4313
+ * Update the attributes of an annotation. **Preview:** This is a preview API and is subject to change.
4314
+ * @param {string} id The `scene-annotation` ID.
4315
+ * @param {UpdateSceneAnnotationRequest} updateSceneAnnotationRequest
4316
+ * @param {*} [options] Override http request option.
4317
+ * @throws {RequiredError}
4318
+ */
4319
+ updateSceneAnnotation(id, updateSceneAnnotationRequest, options) {
4320
+ return localVarFp
4321
+ .updateSceneAnnotation(id, updateSceneAnnotationRequest, options)
4322
+ .then((request) => request(axios, basePath));
4323
+ },
4324
+ };
4325
+ };
4326
+ /**
4327
+ * SceneAnnotationsApi - object-oriented interface
4328
+ * @export
4329
+ * @class SceneAnnotationsApi
4330
+ * @extends {BaseAPI}
4331
+ */
4332
+ export class SceneAnnotationsApi extends BaseAPI {
4333
+ /**
4334
+ * Create an annotation belonging to an annotation set. **Preview:** This is a preview API and is subject to change.
4335
+ * @param {SceneAnnotationsApiCreateSceneAnnotationRequest} requestParameters Request parameters.
4336
+ * @param {*} [options] Override http request option.
4337
+ * @throws {RequiredError}
4338
+ * @memberof SceneAnnotationsApi
4339
+ */
4340
+ createSceneAnnotation(requestParameters, options) {
4341
+ return SceneAnnotationsApiFp(this.configuration)
4342
+ .createSceneAnnotation(requestParameters.id, requestParameters.createSceneAnnotationRequest, options)
4343
+ .then((request) => request(this.axios, this.basePath));
4344
+ }
4345
+ /**
4346
+ * Create an annotation set that is associated with a scene. **Preview:** This is a preview API and is subject to change.
4347
+ * @param {SceneAnnotationsApiCreateSceneAnnotationSetRequest} requestParameters Request parameters.
4348
+ * @param {*} [options] Override http request option.
4349
+ * @throws {RequiredError}
4350
+ * @memberof SceneAnnotationsApi
4351
+ */
4352
+ createSceneAnnotationSet(requestParameters, options) {
4353
+ return SceneAnnotationsApiFp(this.configuration)
4354
+ .createSceneAnnotationSet(requestParameters.id, requestParameters.createSceneAnnotationSetRequest, options)
4355
+ .then((request) => request(this.axios, this.basePath));
4356
+ }
4357
+ /**
4358
+ * Delete a scene annotation. **Preview:** This is a preview API and is subject to change.
4359
+ * @param {SceneAnnotationsApiDeleteSceneAnnotationRequest} requestParameters Request parameters.
4360
+ * @param {*} [options] Override http request option.
4361
+ * @throws {RequiredError}
4362
+ * @memberof SceneAnnotationsApi
4363
+ */
4364
+ deleteSceneAnnotation(requestParameters, options) {
4365
+ return SceneAnnotationsApiFp(this.configuration)
4366
+ .deleteSceneAnnotation(requestParameters.id, options)
4367
+ .then((request) => request(this.axios, this.basePath));
4368
+ }
4369
+ /**
4370
+ * Update the attributes of an annotation. **Preview:** This is a preview API and is subject to change.
4371
+ * @param {SceneAnnotationsApiUpdateSceneAnnotationRequest} requestParameters Request parameters.
4372
+ * @param {*} [options] Override http request option.
4373
+ * @throws {RequiredError}
4374
+ * @memberof SceneAnnotationsApi
4375
+ */
4376
+ updateSceneAnnotation(requestParameters, options) {
4377
+ return SceneAnnotationsApiFp(this.configuration)
4378
+ .updateSceneAnnotation(requestParameters.id, requestParameters.updateSceneAnnotationRequest, options)
4379
+ .then((request) => request(this.axios, this.basePath));
4380
+ }
4381
+ }
4063
4382
  /**
4064
4383
  * SceneItemOverridesApi - axios parameter creator
4065
4384
  * @export
@@ -1 +1 @@
1
- export declare const version = "0.22.3";
1
+ export declare const version = "0.22.4";
@@ -1 +1 @@
1
- export const version = '0.22.3';
1
+ export const version = '0.22.4';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertexvis/api-client-node",
3
- "version": "0.22.3",
3
+ "version": "0.22.4",
4
4
  "description": "The Vertex REST API client for Node.js.",
5
5
  "license": "MIT",
6
6
  "author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",