@vertexvis/api-client-node 0.30.2 → 0.30.3

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
@@ -26,6 +26,9 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setBasicAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI } from './base';
29
+ export const AccountRelationshipDataTypeEnum = {
30
+ Account: 'account',
31
+ };
29
32
  export const BatchOperationOpEnum = {
30
33
  Add: 'add',
31
34
  };
@@ -63,6 +66,15 @@ export const CreateFileCollectionRequestDataTypeEnum = {
63
66
  export const CreateFileJobRequestDataTypeEnum = {
64
67
  FileJob: 'file-job',
65
68
  };
69
+ export const CreatePermissionGrantDataTypeEnum = {
70
+ PermissionGrant: 'permission-grant',
71
+ };
72
+ export const CreatePermissionGrantDataAttributesCapabilityEnum = {
73
+ Read: 'read',
74
+ };
75
+ export const CreateSceneExpressionAlterationRequestDataTypeEnum = {
76
+ SceneAlterationExpression: 'scene-alteration-expression',
77
+ };
66
78
  export const CreateSceneItemRequestDataAttributesResolutionRuleEnum = {
67
79
  AsSpecified: 'as-specified',
68
80
  LatestIteration: 'latest-iteration',
@@ -92,6 +104,9 @@ export const FileRelationshipDataTypeEnum = {
92
104
  export const GeometrySetRelationshipDataTypeEnum = {
93
105
  GeometrySet: 'geometry-set',
94
106
  };
107
+ export const GranteeAccountTypeEnum = {
108
+ Account: 'account',
109
+ };
95
110
  export const PartDataRelationshipsPartRevisionsTypeEnum = {
96
111
  PartRevision: 'part-revision',
97
112
  };
@@ -104,6 +119,12 @@ export const PartRelationshipDataTypeEnum = {
104
119
  export const PartRenditionRelationshipDataTypeEnum = {
105
120
  PartRendition: 'part-rendition',
106
121
  };
122
+ export const PartsDomainSubjectDomainEnum = {
123
+ Parts: 'parts',
124
+ };
125
+ export const PermissionGrantDataTypeEnum = {
126
+ PermissionGrant: 'permission-grant',
127
+ };
107
128
  export const PropertyDateTypeTypeEnum = {
108
129
  Date: 'date',
109
130
  };
@@ -113,6 +134,9 @@ export const PropertyDoubleTypeTypeEnum = {
113
134
  export const PropertyLongTypeTypeEnum = {
114
135
  Long: 'long',
115
136
  };
137
+ export const PropertySetDomainSubjectDomainEnum = {
138
+ PropertySets: 'property-sets',
139
+ };
116
140
  export const PropertySetRelationshipDataTypeEnum = {
117
141
  PropertySet: 'property-set',
118
142
  };
@@ -144,6 +168,28 @@ export const QueryByIdDataAttributesTypeEnum = {
144
168
  export const QueryByMetadataDataTypeEnum = {
145
169
  QueryByMetadata: 'query-by-metadata',
146
170
  };
171
+ export const QueryByRootTypeEnum = {
172
+ QueryByRoot: 'query-by-root',
173
+ };
174
+ export const QueryBySceneItemIdTypeEnum = {
175
+ Id: 'query-by-id',
176
+ SuppliedId: 'query-by-supplied-id',
177
+ };
178
+ export const QueryBySceneItemIdsTypeEnum = {
179
+ QueryByCollection: 'query-by-collection',
180
+ };
181
+ export const QueryBySceneItemMetadataTypeEnum = {
182
+ QueryByMetadata: 'query-by-metadata',
183
+ };
184
+ export const SceneItemAndExpressionTypeEnum = {
185
+ And: 'and',
186
+ };
187
+ export const SceneItemOrExpressionTypeEnum = {
188
+ Or: 'or',
189
+ };
190
+ export const SceneItemQueryOperandTypeEnum = {
191
+ QueryOperand: 'query-operand',
192
+ };
147
193
  export const SceneItemRelationshipDataTypeEnum = {
148
194
  SceneItem: 'scene-item',
149
195
  };
@@ -4834,10 +4880,11 @@ export const PartsApiAxiosParamCreator = function (configuration) {
4834
4880
  * @param {string} [pageCursor] The cursor for the next page of items.
4835
4881
  * @param {number} [pageSize] The number of items to return.
4836
4882
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
4883
+ * @param {string} [filterOwnerId] Owner ID to filter on.
4837
4884
  * @param {*} [options] Override http request option.
4838
4885
  * @throws {RequiredError}
4839
4886
  */
4840
- getParts: (pageCursor, pageSize, filterSuppliedId, options = {}) => __awaiter(this, void 0, void 0, function* () {
4887
+ getParts: (pageCursor, pageSize, filterSuppliedId, filterOwnerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
4841
4888
  var _d;
4842
4889
  const localVarPath = `/parts`;
4843
4890
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -4861,6 +4908,9 @@ export const PartsApiAxiosParamCreator = function (configuration) {
4861
4908
  if (filterSuppliedId !== undefined) {
4862
4909
  localVarQueryParameter['filter[suppliedId]'] = filterSuppliedId;
4863
4910
  }
4911
+ if (filterOwnerId !== undefined) {
4912
+ localVarQueryParameter['filter[ownerId]'] = filterOwnerId;
4913
+ }
4864
4914
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4865
4915
  let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
4866
4916
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4951,12 +5001,13 @@ export const PartsApiFp = function (configuration) {
4951
5001
  * @param {string} [pageCursor] The cursor for the next page of items.
4952
5002
  * @param {number} [pageSize] The number of items to return.
4953
5003
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
5004
+ * @param {string} [filterOwnerId] Owner ID to filter on.
4954
5005
  * @param {*} [options] Override http request option.
4955
5006
  * @throws {RequiredError}
4956
5007
  */
4957
- getParts(pageCursor, pageSize, filterSuppliedId, options) {
5008
+ getParts(pageCursor, pageSize, filterSuppliedId, filterOwnerId, options) {
4958
5009
  return __awaiter(this, void 0, void 0, function* () {
4959
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getParts(pageCursor, pageSize, filterSuppliedId, options);
5010
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getParts(pageCursor, pageSize, filterSuppliedId, filterOwnerId, options);
4960
5011
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4961
5012
  });
4962
5013
  },
@@ -5020,12 +5071,13 @@ export const PartsApiFactory = function (configuration, basePath, axios) {
5020
5071
  * @param {string} [pageCursor] The cursor for the next page of items.
5021
5072
  * @param {number} [pageSize] The number of items to return.
5022
5073
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
5074
+ * @param {string} [filterOwnerId] Owner ID to filter on.
5023
5075
  * @param {*} [options] Override http request option.
5024
5076
  * @throws {RequiredError}
5025
5077
  */
5026
- getParts(pageCursor, pageSize, filterSuppliedId, options) {
5078
+ getParts(pageCursor, pageSize, filterSuppliedId, filterOwnerId, options) {
5027
5079
  return localVarFp
5028
- .getParts(pageCursor, pageSize, filterSuppliedId, options)
5080
+ .getParts(pageCursor, pageSize, filterSuppliedId, filterOwnerId, options)
5029
5081
  .then((request) => request(axios, basePath));
5030
5082
  },
5031
5083
  /**
@@ -5093,7 +5145,7 @@ export class PartsApi extends BaseAPI {
5093
5145
  */
5094
5146
  getParts(requestParameters = {}, options) {
5095
5147
  return PartsApiFp(this.configuration)
5096
- .getParts(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSuppliedId, options)
5148
+ .getParts(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSuppliedId, requestParameters.filterOwnerId, options)
5097
5149
  .then((request) => request(this.axios, this.basePath));
5098
5150
  }
5099
5151
  /**
@@ -5109,6 +5161,329 @@ export class PartsApi extends BaseAPI {
5109
5161
  .then((request) => request(this.axios, this.basePath));
5110
5162
  }
5111
5163
  }
5164
+ /**
5165
+ * PermissionGrantsApi - axios parameter creator
5166
+ * @export
5167
+ */
5168
+ export const PermissionGrantsApiAxiosParamCreator = function (configuration) {
5169
+ return {
5170
+ /**
5171
+ * Create a permission grant for a grantee to a subject resource
5172
+ * @summary Create a permission grant for a grantee to a subject resource
5173
+ * @param {CreatePermissionGrant} createPermissionGrant
5174
+ * @param {*} [options] Override http request option.
5175
+ * @throws {RequiredError}
5176
+ */
5177
+ createPermissionGrant: (createPermissionGrant, options = {}) => __awaiter(this, void 0, void 0, function* () {
5178
+ var _a;
5179
+ // verify required parameter 'createPermissionGrant' is not null or undefined
5180
+ assertParamExists('createPermissionGrant', 'createPermissionGrant', createPermissionGrant);
5181
+ const localVarPath = `/permission-grants`;
5182
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5183
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5184
+ let baseOptions;
5185
+ if (configuration) {
5186
+ baseOptions = configuration.baseOptions;
5187
+ }
5188
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5189
+ const localVarHeaderParameter = {};
5190
+ const localVarQueryParameter = {};
5191
+ // authentication OAuth2 required
5192
+ // oauth required
5193
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
5194
+ localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
5195
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5196
+ let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
5197
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5198
+ localVarRequestOptions.data = serializeDataIfNeeded(createPermissionGrant, localVarRequestOptions, configuration);
5199
+ return {
5200
+ url: toPathString(localVarUrlObj),
5201
+ options: localVarRequestOptions,
5202
+ };
5203
+ }),
5204
+ /**
5205
+ * Get a permission grant by ID
5206
+ * @summary Get a permission grant by ID
5207
+ * @param {string} id The permission grant ID.
5208
+ * @param {*} [options] Override http request option.
5209
+ * @throws {RequiredError}
5210
+ */
5211
+ getPermissionGrant: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
5212
+ var _b;
5213
+ // verify required parameter 'id' is not null or undefined
5214
+ assertParamExists('getPermissionGrant', 'id', id);
5215
+ const localVarPath = `/permission-grants/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5216
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5217
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5218
+ let baseOptions;
5219
+ if (configuration) {
5220
+ baseOptions = configuration.baseOptions;
5221
+ }
5222
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5223
+ const localVarHeaderParameter = {};
5224
+ const localVarQueryParameter = {};
5225
+ // authentication OAuth2 required
5226
+ // oauth required
5227
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
5228
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5229
+ let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
5230
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5231
+ return {
5232
+ url: toPathString(localVarUrlObj),
5233
+ options: localVarRequestOptions,
5234
+ };
5235
+ }),
5236
+ /**
5237
+ * List all permission grants
5238
+ * @summary List all permission grants
5239
+ * @param {string} [pageCursor] The cursor for the next page of items.
5240
+ * @param {number} [pageSize] The number of items to return.
5241
+ * @param {*} [options] Override http request option.
5242
+ * @throws {RequiredError}
5243
+ */
5244
+ listPermissionGrants: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
5245
+ var _c;
5246
+ const localVarPath = `/permission-grants`;
5247
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5248
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5249
+ let baseOptions;
5250
+ if (configuration) {
5251
+ baseOptions = configuration.baseOptions;
5252
+ }
5253
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5254
+ const localVarHeaderParameter = {};
5255
+ const localVarQueryParameter = {};
5256
+ // authentication OAuth2 required
5257
+ // oauth required
5258
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
5259
+ if (pageCursor !== undefined) {
5260
+ localVarQueryParameter['page[cursor]'] = pageCursor;
5261
+ }
5262
+ if (pageSize !== undefined) {
5263
+ localVarQueryParameter['page[size]'] = pageSize;
5264
+ }
5265
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5266
+ let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
5267
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5268
+ return {
5269
+ url: toPathString(localVarUrlObj),
5270
+ options: localVarRequestOptions,
5271
+ };
5272
+ }),
5273
+ /**
5274
+ * Remove a permission grant by ID
5275
+ * @summary Remove a permission grant by ID
5276
+ * @param {string} id The permission grant ID.
5277
+ * @param {*} [options] Override http request option.
5278
+ * @throws {RequiredError}
5279
+ */
5280
+ removePermissionGrant: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
5281
+ var _d;
5282
+ // verify required parameter 'id' is not null or undefined
5283
+ assertParamExists('removePermissionGrant', 'id', id);
5284
+ const localVarPath = `/permission-grants/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5285
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5286
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5287
+ let baseOptions;
5288
+ if (configuration) {
5289
+ baseOptions = configuration.baseOptions;
5290
+ }
5291
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5292
+ const localVarHeaderParameter = {};
5293
+ const localVarQueryParameter = {};
5294
+ // authentication OAuth2 required
5295
+ // oauth required
5296
+ yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
5297
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5298
+ let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
5299
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5300
+ return {
5301
+ url: toPathString(localVarUrlObj),
5302
+ options: localVarRequestOptions,
5303
+ };
5304
+ }),
5305
+ };
5306
+ };
5307
+ /**
5308
+ * PermissionGrantsApi - functional programming interface
5309
+ * @export
5310
+ */
5311
+ export const PermissionGrantsApiFp = function (configuration) {
5312
+ const localVarAxiosParamCreator = PermissionGrantsApiAxiosParamCreator(configuration);
5313
+ return {
5314
+ /**
5315
+ * Create a permission grant for a grantee to a subject resource
5316
+ * @summary Create a permission grant for a grantee to a subject resource
5317
+ * @param {CreatePermissionGrant} createPermissionGrant
5318
+ * @param {*} [options] Override http request option.
5319
+ * @throws {RequiredError}
5320
+ */
5321
+ createPermissionGrant(createPermissionGrant, options) {
5322
+ return __awaiter(this, void 0, void 0, function* () {
5323
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPermissionGrant(createPermissionGrant, options);
5324
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5325
+ });
5326
+ },
5327
+ /**
5328
+ * Get a permission grant by ID
5329
+ * @summary Get a permission grant by ID
5330
+ * @param {string} id The permission grant ID.
5331
+ * @param {*} [options] Override http request option.
5332
+ * @throws {RequiredError}
5333
+ */
5334
+ getPermissionGrant(id, options) {
5335
+ return __awaiter(this, void 0, void 0, function* () {
5336
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPermissionGrant(id, options);
5337
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5338
+ });
5339
+ },
5340
+ /**
5341
+ * List all permission grants
5342
+ * @summary List all permission grants
5343
+ * @param {string} [pageCursor] The cursor for the next page of items.
5344
+ * @param {number} [pageSize] The number of items to return.
5345
+ * @param {*} [options] Override http request option.
5346
+ * @throws {RequiredError}
5347
+ */
5348
+ listPermissionGrants(pageCursor, pageSize, options) {
5349
+ return __awaiter(this, void 0, void 0, function* () {
5350
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPermissionGrants(pageCursor, pageSize, options);
5351
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5352
+ });
5353
+ },
5354
+ /**
5355
+ * Remove a permission grant by ID
5356
+ * @summary Remove a permission grant by ID
5357
+ * @param {string} id The permission grant ID.
5358
+ * @param {*} [options] Override http request option.
5359
+ * @throws {RequiredError}
5360
+ */
5361
+ removePermissionGrant(id, options) {
5362
+ return __awaiter(this, void 0, void 0, function* () {
5363
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removePermissionGrant(id, options);
5364
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5365
+ });
5366
+ },
5367
+ };
5368
+ };
5369
+ /**
5370
+ * PermissionGrantsApi - factory interface
5371
+ * @export
5372
+ */
5373
+ export const PermissionGrantsApiFactory = function (configuration, basePath, axios) {
5374
+ const localVarFp = PermissionGrantsApiFp(configuration);
5375
+ return {
5376
+ /**
5377
+ * Create a permission grant for a grantee to a subject resource
5378
+ * @summary Create a permission grant for a grantee to a subject resource
5379
+ * @param {CreatePermissionGrant} createPermissionGrant
5380
+ * @param {*} [options] Override http request option.
5381
+ * @throws {RequiredError}
5382
+ */
5383
+ createPermissionGrant(createPermissionGrant, options) {
5384
+ return localVarFp
5385
+ .createPermissionGrant(createPermissionGrant, options)
5386
+ .then((request) => request(axios, basePath));
5387
+ },
5388
+ /**
5389
+ * Get a permission grant by ID
5390
+ * @summary Get a permission grant by ID
5391
+ * @param {string} id The permission grant ID.
5392
+ * @param {*} [options] Override http request option.
5393
+ * @throws {RequiredError}
5394
+ */
5395
+ getPermissionGrant(id, options) {
5396
+ return localVarFp
5397
+ .getPermissionGrant(id, options)
5398
+ .then((request) => request(axios, basePath));
5399
+ },
5400
+ /**
5401
+ * List all permission grants
5402
+ * @summary List all permission grants
5403
+ * @param {string} [pageCursor] The cursor for the next page of items.
5404
+ * @param {number} [pageSize] The number of items to return.
5405
+ * @param {*} [options] Override http request option.
5406
+ * @throws {RequiredError}
5407
+ */
5408
+ listPermissionGrants(pageCursor, pageSize, options) {
5409
+ return localVarFp
5410
+ .listPermissionGrants(pageCursor, pageSize, options)
5411
+ .then((request) => request(axios, basePath));
5412
+ },
5413
+ /**
5414
+ * Remove a permission grant by ID
5415
+ * @summary Remove a permission grant by ID
5416
+ * @param {string} id The permission grant ID.
5417
+ * @param {*} [options] Override http request option.
5418
+ * @throws {RequiredError}
5419
+ */
5420
+ removePermissionGrant(id, options) {
5421
+ return localVarFp
5422
+ .removePermissionGrant(id, options)
5423
+ .then((request) => request(axios, basePath));
5424
+ },
5425
+ };
5426
+ };
5427
+ /**
5428
+ * PermissionGrantsApi - object-oriented interface
5429
+ * @export
5430
+ * @class PermissionGrantsApi
5431
+ * @extends {BaseAPI}
5432
+ */
5433
+ export class PermissionGrantsApi extends BaseAPI {
5434
+ /**
5435
+ * Create a permission grant for a grantee to a subject resource
5436
+ * @summary Create a permission grant for a grantee to a subject resource
5437
+ * @param {PermissionGrantsApiCreatePermissionGrantRequest} requestParameters Request parameters.
5438
+ * @param {*} [options] Override http request option.
5439
+ * @throws {RequiredError}
5440
+ * @memberof PermissionGrantsApi
5441
+ */
5442
+ createPermissionGrant(requestParameters, options) {
5443
+ return PermissionGrantsApiFp(this.configuration)
5444
+ .createPermissionGrant(requestParameters.createPermissionGrant, options)
5445
+ .then((request) => request(this.axios, this.basePath));
5446
+ }
5447
+ /**
5448
+ * Get a permission grant by ID
5449
+ * @summary Get a permission grant by ID
5450
+ * @param {PermissionGrantsApiGetPermissionGrantRequest} requestParameters Request parameters.
5451
+ * @param {*} [options] Override http request option.
5452
+ * @throws {RequiredError}
5453
+ * @memberof PermissionGrantsApi
5454
+ */
5455
+ getPermissionGrant(requestParameters, options) {
5456
+ return PermissionGrantsApiFp(this.configuration)
5457
+ .getPermissionGrant(requestParameters.id, options)
5458
+ .then((request) => request(this.axios, this.basePath));
5459
+ }
5460
+ /**
5461
+ * List all permission grants
5462
+ * @summary List all permission grants
5463
+ * @param {PermissionGrantsApiListPermissionGrantsRequest} requestParameters Request parameters.
5464
+ * @param {*} [options] Override http request option.
5465
+ * @throws {RequiredError}
5466
+ * @memberof PermissionGrantsApi
5467
+ */
5468
+ listPermissionGrants(requestParameters = {}, options) {
5469
+ return PermissionGrantsApiFp(this.configuration)
5470
+ .listPermissionGrants(requestParameters.pageCursor, requestParameters.pageSize, options)
5471
+ .then((request) => request(this.axios, this.basePath));
5472
+ }
5473
+ /**
5474
+ * Remove a permission grant by ID
5475
+ * @summary Remove a permission grant by ID
5476
+ * @param {PermissionGrantsApiRemovePermissionGrantRequest} requestParameters Request parameters.
5477
+ * @param {*} [options] Override http request option.
5478
+ * @throws {RequiredError}
5479
+ * @memberof PermissionGrantsApi
5480
+ */
5481
+ removePermissionGrant(requestParameters, options) {
5482
+ return PermissionGrantsApiFp(this.configuration)
5483
+ .removePermissionGrant(requestParameters.id, options)
5484
+ .then((request) => request(this.axios, this.basePath));
5485
+ }
5486
+ }
5112
5487
  /**
5113
5488
  * PmiApi - axios parameter creator
5114
5489
  * @export
@@ -5418,16 +5793,16 @@ export const SceneAlterationsApiAxiosParamCreator = function (configuration) {
5418
5793
  /**
5419
5794
  * Create a `scene-alteration` for a `scene-view`.
5420
5795
  * @param {string} id The `scene-view` ID.
5421
- * @param {CreateSceneAlterationRequest} createSceneAlterationRequest
5796
+ * @param {CreateSceneAlterationRequest | CreateSceneExpressionAlterationRequest} createSceneAlterationRequestCreateSceneExpressionAlterationRequest
5422
5797
  * @param {*} [options] Override http request option.
5423
5798
  * @throws {RequiredError}
5424
5799
  */
5425
- createSceneAlteration: (id, createSceneAlterationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
5800
+ createSceneAlteration: (id, createSceneAlterationRequestCreateSceneExpressionAlterationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
5426
5801
  var _a;
5427
5802
  // verify required parameter 'id' is not null or undefined
5428
5803
  assertParamExists('createSceneAlteration', 'id', id);
5429
- // verify required parameter 'createSceneAlterationRequest' is not null or undefined
5430
- assertParamExists('createSceneAlteration', 'createSceneAlterationRequest', createSceneAlterationRequest);
5804
+ // verify required parameter 'createSceneAlterationRequestCreateSceneExpressionAlterationRequest' is not null or undefined
5805
+ assertParamExists('createSceneAlteration', 'createSceneAlterationRequestCreateSceneExpressionAlterationRequest', createSceneAlterationRequestCreateSceneExpressionAlterationRequest);
5431
5806
  const localVarPath = `/scene-views/{id}/scene-alterations`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5432
5807
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5433
5808
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5445,7 +5820,7 @@ export const SceneAlterationsApiAxiosParamCreator = function (configuration) {
5445
5820
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5446
5821
  let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
5447
5822
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5448
- localVarRequestOptions.data = serializeDataIfNeeded(createSceneAlterationRequest, localVarRequestOptions, configuration);
5823
+ localVarRequestOptions.data = serializeDataIfNeeded(createSceneAlterationRequestCreateSceneExpressionAlterationRequest, localVarRequestOptions, configuration);
5449
5824
  return {
5450
5825
  url: toPathString(localVarUrlObj),
5451
5826
  options: localVarRequestOptions,
@@ -5556,13 +5931,13 @@ export const SceneAlterationsApiFp = function (configuration) {
5556
5931
  /**
5557
5932
  * Create a `scene-alteration` for a `scene-view`.
5558
5933
  * @param {string} id The `scene-view` ID.
5559
- * @param {CreateSceneAlterationRequest} createSceneAlterationRequest
5934
+ * @param {CreateSceneAlterationRequest | CreateSceneExpressionAlterationRequest} createSceneAlterationRequestCreateSceneExpressionAlterationRequest
5560
5935
  * @param {*} [options] Override http request option.
5561
5936
  * @throws {RequiredError}
5562
5937
  */
5563
- createSceneAlteration(id, createSceneAlterationRequest, options) {
5938
+ createSceneAlteration(id, createSceneAlterationRequestCreateSceneExpressionAlterationRequest, options) {
5564
5939
  return __awaiter(this, void 0, void 0, function* () {
5565
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSceneAlteration(id, createSceneAlterationRequest, options);
5940
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSceneAlteration(id, createSceneAlterationRequestCreateSceneExpressionAlterationRequest, options);
5566
5941
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5567
5942
  });
5568
5943
  },
@@ -5614,13 +5989,13 @@ export const SceneAlterationsApiFactory = function (configuration, basePath, axi
5614
5989
  /**
5615
5990
  * Create a `scene-alteration` for a `scene-view`.
5616
5991
  * @param {string} id The `scene-view` ID.
5617
- * @param {CreateSceneAlterationRequest} createSceneAlterationRequest
5992
+ * @param {CreateSceneAlterationRequest | CreateSceneExpressionAlterationRequest} createSceneAlterationRequestCreateSceneExpressionAlterationRequest
5618
5993
  * @param {*} [options] Override http request option.
5619
5994
  * @throws {RequiredError}
5620
5995
  */
5621
- createSceneAlteration(id, createSceneAlterationRequest, options) {
5996
+ createSceneAlteration(id, createSceneAlterationRequestCreateSceneExpressionAlterationRequest, options) {
5622
5997
  return localVarFp
5623
- .createSceneAlteration(id, createSceneAlterationRequest, options)
5998
+ .createSceneAlteration(id, createSceneAlterationRequestCreateSceneExpressionAlterationRequest, options)
5624
5999
  .then((request) => request(axios, basePath));
5625
6000
  },
5626
6001
  /**
@@ -5674,7 +6049,7 @@ export class SceneAlterationsApi extends BaseAPI {
5674
6049
  */
5675
6050
  createSceneAlteration(requestParameters, options) {
5676
6051
  return SceneAlterationsApiFp(this.configuration)
5677
- .createSceneAlteration(requestParameters.id, requestParameters.createSceneAlterationRequest, options)
6052
+ .createSceneAlteration(requestParameters.id, requestParameters.createSceneAlterationRequestCreateSceneExpressionAlterationRequest, options)
5678
6053
  .then((request) => request(this.axios, this.basePath));
5679
6054
  }
5680
6055
  /**
@@ -1 +1 @@
1
- export declare const version = "0.30.2";
1
+ export declare const version = "0.30.3";
@@ -1 +1 @@
1
- export const version = '0.30.2';
1
+ export const version = '0.30.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertexvis/api-client-node",
3
- "version": "0.30.2",
3
+ "version": "0.30.3",
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)",