@vertexvis/api-client-node 0.20.6 → 0.20.8

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/cjs/api.js CHANGED
@@ -4230,7 +4230,7 @@ const SceneItemsApiAxiosParamCreator = function (configuration) {
4230
4230
  /**
4231
4231
  * Get a `scene-item` by ID.
4232
4232
  * @param {string} id The `scene-item` ID.
4233
- * @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested.
4233
+ * @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`, `worldTransform` and `metadata` are only returned if explicitly requested.
4234
4234
  * @param {*} [options] Override http request option.
4235
4235
  * @throws {RequiredError}
4236
4236
  */
@@ -4408,7 +4408,7 @@ const SceneItemsApiFp = function (configuration) {
4408
4408
  /**
4409
4409
  * Get a `scene-item` by ID.
4410
4410
  * @param {string} id The `scene-item` ID.
4411
- * @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested.
4411
+ * @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`, `worldTransform` and `metadata` are only returned if explicitly requested.
4412
4412
  * @param {*} [options] Override http request option.
4413
4413
  * @throws {RequiredError}
4414
4414
  */
@@ -4506,7 +4506,7 @@ const SceneItemsApiFactory = function (configuration, basePath, axios) {
4506
4506
  /**
4507
4507
  * Get a `scene-item` by ID.
4508
4508
  * @param {string} id The `scene-item` ID.
4509
- * @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested.
4509
+ * @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`, `worldTransform` and `metadata` are only returned if explicitly requested.
4510
4510
  * @param {*} [options] Override http request option.
4511
4511
  * @throws {RequiredError}
4512
4512
  */
@@ -5197,7 +5197,7 @@ const SceneViewsApiAxiosParamCreator = function (configuration) {
5197
5197
  * Get a `scene-item` within a view by ID.
5198
5198
  * @param {string} id The `scene-view` ID.
5199
5199
  * @param {string} itemId The `scene-item` ID.
5200
- * @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested.
5200
+ * @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`, `worldTransform` and `metadata` are only returned if explicitly requested.
5201
5201
  * @param {string} [include] Comma-separated list of relationships to include in response.
5202
5202
  * @param {*} [options] Override http request option.
5203
5203
  * @throws {RequiredError}
@@ -5374,7 +5374,7 @@ const SceneViewsApiFp = function (configuration) {
5374
5374
  * Get a `scene-item` within a view by ID.
5375
5375
  * @param {string} id The `scene-view` ID.
5376
5376
  * @param {string} itemId The `scene-item` ID.
5377
- * @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested.
5377
+ * @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`, `worldTransform` and `metadata` are only returned if explicitly requested.
5378
5378
  * @param {string} [include] Comma-separated list of relationships to include in response.
5379
5379
  * @param {*} [options] Override http request option.
5380
5380
  * @throws {RequiredError}
@@ -5473,7 +5473,7 @@ const SceneViewsApiFactory = function (configuration, basePath, axios) {
5473
5473
  * Get a `scene-item` within a view by ID.
5474
5474
  * @param {string} id The `scene-view` ID.
5475
5475
  * @param {string} itemId The `scene-item` ID.
5476
- * @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested.
5476
+ * @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`, `worldTransform` and `metadata` are only returned if explicitly requested.
5477
5477
  * @param {string} [include] Comma-separated list of relationships to include in response.
5478
5478
  * @param {*} [options] Override http request option.
5479
5479
  * @throws {RequiredError}
@@ -5705,7 +5705,7 @@ const ScenesApiAxiosParamCreator = function (configuration) {
5705
5705
  /**
5706
5706
  * Get a `scene` by ID.
5707
5707
  * @param {string} id The `scene` ID.
5708
- * @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `sceneItemCount` is only returned if explicitly requested.
5708
+ * @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `sceneItemCount` and `metadata` are only returned if explicitly requested.
5709
5709
  * @param {*} [options] Override http request option.
5710
5710
  * @throws {RequiredError}
5711
5711
  */
@@ -5742,10 +5742,11 @@ const ScenesApiAxiosParamCreator = function (configuration) {
5742
5742
  * @param {number} [pageSize] The number of items to return.
5743
5743
  * @param {string} [filterName] Comma-separated list of names to filter on.
5744
5744
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
5745
+ * @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `sceneItemCount` and `metadata` are only returned if explicitly requested.
5745
5746
  * @param {*} [options] Override http request option.
5746
5747
  * @throws {RequiredError}
5747
5748
  */
5748
- getScenes: (pageCursor, pageSize, filterName, filterSuppliedId, options = {}) => __awaiter(this, void 0, void 0, function* () {
5749
+ getScenes: (pageCursor, pageSize, filterName, filterSuppliedId, fieldsScene, options = {}) => __awaiter(this, void 0, void 0, function* () {
5749
5750
  const localVarPath = `/scenes`;
5750
5751
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5751
5752
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -5771,6 +5772,9 @@ const ScenesApiAxiosParamCreator = function (configuration) {
5771
5772
  if (filterSuppliedId !== undefined) {
5772
5773
  localVarQueryParameter['filter[suppliedId]'] = filterSuppliedId;
5773
5774
  }
5775
+ if (fieldsScene !== undefined) {
5776
+ localVarQueryParameter['fields[scene]'] = fieldsScene;
5777
+ }
5774
5778
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5775
5779
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5776
5780
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5901,7 +5905,7 @@ const ScenesApiFp = function (configuration) {
5901
5905
  /**
5902
5906
  * Get a `scene` by ID.
5903
5907
  * @param {string} id The `scene` ID.
5904
- * @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `sceneItemCount` is only returned if explicitly requested.
5908
+ * @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `sceneItemCount` and `metadata` are only returned if explicitly requested.
5905
5909
  * @param {*} [options] Override http request option.
5906
5910
  * @throws {RequiredError}
5907
5911
  */
@@ -5917,12 +5921,13 @@ const ScenesApiFp = function (configuration) {
5917
5921
  * @param {number} [pageSize] The number of items to return.
5918
5922
  * @param {string} [filterName] Comma-separated list of names to filter on.
5919
5923
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
5924
+ * @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `sceneItemCount` and `metadata` are only returned if explicitly requested.
5920
5925
  * @param {*} [options] Override http request option.
5921
5926
  * @throws {RequiredError}
5922
5927
  */
5923
- getScenes(pageCursor, pageSize, filterName, filterSuppliedId, options) {
5928
+ getScenes(pageCursor, pageSize, filterName, filterSuppliedId, fieldsScene, options) {
5924
5929
  return __awaiter(this, void 0, void 0, function* () {
5925
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getScenes(pageCursor, pageSize, filterName, filterSuppliedId, options);
5930
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getScenes(pageCursor, pageSize, filterName, filterSuppliedId, fieldsScene, options);
5926
5931
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
5927
5932
  });
5928
5933
  },
@@ -5999,7 +6004,7 @@ const ScenesApiFactory = function (configuration, basePath, axios) {
5999
6004
  /**
6000
6005
  * Get a `scene` by ID.
6001
6006
  * @param {string} id The `scene` ID.
6002
- * @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `sceneItemCount` is only returned if explicitly requested.
6007
+ * @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `sceneItemCount` and `metadata` are only returned if explicitly requested.
6003
6008
  * @param {*} [options] Override http request option.
6004
6009
  * @throws {RequiredError}
6005
6010
  */
@@ -6014,12 +6019,13 @@ const ScenesApiFactory = function (configuration, basePath, axios) {
6014
6019
  * @param {number} [pageSize] The number of items to return.
6015
6020
  * @param {string} [filterName] Comma-separated list of names to filter on.
6016
6021
  * @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
6022
+ * @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `sceneItemCount` and `metadata` are only returned if explicitly requested.
6017
6023
  * @param {*} [options] Override http request option.
6018
6024
  * @throws {RequiredError}
6019
6025
  */
6020
- getScenes(pageCursor, pageSize, filterName, filterSuppliedId, options) {
6026
+ getScenes(pageCursor, pageSize, filterName, filterSuppliedId, fieldsScene, options) {
6021
6027
  return localVarFp
6022
- .getScenes(pageCursor, pageSize, filterName, filterSuppliedId, options)
6028
+ .getScenes(pageCursor, pageSize, filterName, filterSuppliedId, fieldsScene, options)
6023
6029
  .then((request) => request(axios, basePath));
6024
6030
  },
6025
6031
  /**
@@ -6114,7 +6120,7 @@ class ScenesApi extends base_1.BaseAPI {
6114
6120
  */
6115
6121
  getScenes(requestParameters = {}, options) {
6116
6122
  return (0, exports.ScenesApiFp)(this.configuration)
6117
- .getScenes(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterName, requestParameters.filterSuppliedId, options)
6123
+ .getScenes(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterName, requestParameters.filterSuppliedId, requestParameters.fieldsScene, options)
6118
6124
  .then((request) => request(this.axios, this.basePath));
6119
6125
  }
6120
6126
  /**
@@ -6494,6 +6500,36 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
6494
6500
  options: localVarRequestOptions,
6495
6501
  };
6496
6502
  }),
6503
+ /**
6504
+ * Get a `queued-translation-job`. The response is either the status if `running` or `error` or, upon completion, the `part-revision` that was created. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
6505
+ * @param {string} id The `queued-translation` ID.
6506
+ * @param {*} [options] Override http request option.
6507
+ * @throws {RequiredError}
6508
+ */
6509
+ getQueuedTranslationJob: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
6510
+ // verify required parameter 'id' is not null or undefined
6511
+ (0, common_1.assertParamExists)('getQueuedTranslationJob', 'id', id);
6512
+ const localVarPath = `/queued-translation-jobs/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6513
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6514
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6515
+ let baseOptions;
6516
+ if (configuration) {
6517
+ baseOptions = configuration.baseOptions;
6518
+ }
6519
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6520
+ const localVarHeaderParameter = {};
6521
+ const localVarQueryParameter = {};
6522
+ // authentication OAuth2 required
6523
+ // oauth required
6524
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
6525
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6526
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6527
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6528
+ return {
6529
+ url: (0, common_1.toPathString)(localVarUrlObj),
6530
+ options: localVarRequestOptions,
6531
+ };
6532
+ }),
6497
6533
  /**
6498
6534
  * Get `queued-translation`s.
6499
6535
  * @param {string} [pageCursor] The cursor for the next page of items.
@@ -6579,6 +6615,18 @@ const TranslationInspectionsApiFp = function (configuration) {
6579
6615
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
6580
6616
  });
6581
6617
  },
6618
+ /**
6619
+ * Get a `queued-translation-job`. The response is either the status if `running` or `error` or, upon completion, the `part-revision` that was created. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
6620
+ * @param {string} id The `queued-translation` ID.
6621
+ * @param {*} [options] Override http request option.
6622
+ * @throws {RequiredError}
6623
+ */
6624
+ getQueuedTranslationJob(id, options) {
6625
+ return __awaiter(this, void 0, void 0, function* () {
6626
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getQueuedTranslationJob(id, options);
6627
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
6628
+ });
6629
+ },
6582
6630
  /**
6583
6631
  * Get `queued-translation`s.
6584
6632
  * @param {string} [pageCursor] The cursor for the next page of items.
@@ -6636,6 +6684,17 @@ const TranslationInspectionsApiFactory = function (configuration, basePath, axio
6636
6684
  .getQueuedTranslation(id, options)
6637
6685
  .then((request) => request(axios, basePath));
6638
6686
  },
6687
+ /**
6688
+ * Get a `queued-translation-job`. The response is either the status if `running` or `error` or, upon completion, the `part-revision` that was created. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
6689
+ * @param {string} id The `queued-translation` ID.
6690
+ * @param {*} [options] Override http request option.
6691
+ * @throws {RequiredError}
6692
+ */
6693
+ getQueuedTranslationJob(id, options) {
6694
+ return localVarFp
6695
+ .getQueuedTranslationJob(id, options)
6696
+ .then((request) => request(axios, basePath));
6697
+ },
6639
6698
  /**
6640
6699
  * Get `queued-translation`s.
6641
6700
  * @param {string} [pageCursor] The cursor for the next page of items.
@@ -6695,6 +6754,18 @@ class TranslationInspectionsApi extends base_1.BaseAPI {
6695
6754
  .getQueuedTranslation(requestParameters.id, options)
6696
6755
  .then((request) => request(this.axios, this.basePath));
6697
6756
  }
6757
+ /**
6758
+ * Get a `queued-translation-job`. The response is either the status if `running` or `error` or, upon completion, the `part-revision` that was created. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
6759
+ * @param {TranslationInspectionsApiGetQueuedTranslationJobRequest} requestParameters Request parameters.
6760
+ * @param {*} [options] Override http request option.
6761
+ * @throws {RequiredError}
6762
+ * @memberof TranslationInspectionsApi
6763
+ */
6764
+ getQueuedTranslationJob(requestParameters, options) {
6765
+ return (0, exports.TranslationInspectionsApiFp)(this.configuration)
6766
+ .getQueuedTranslationJob(requestParameters.id, options)
6767
+ .then((request) => request(this.axios, this.basePath));
6768
+ }
6698
6769
  /**
6699
6770
  * Get `queued-translation`s.
6700
6771
  * @param {TranslationInspectionsApiGetQueuedTranslationsRequest} requestParameters Request parameters.
@@ -1 +1 @@
1
- export declare const version = "0.20.6";
1
+ export declare const version = "0.20.8";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '0.20.6';
4
+ exports.version = '0.20.8';