@vertexvis/api-client-node 0.22.6 → 0.23.1
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.d.ts +712 -4
- package/dist/cjs/api.js +576 -12
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/esm/api.d.ts +712 -4
- package/dist/esm/api.js +566 -10
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/package.json +1 -1
package/dist/cjs/api.js
CHANGED
|
@@ -26,8 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
exports.BatchesApiFp = exports.BatchesApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.WebhookSubscriptionDataAttributesStatusEnum = exports.WebhookEventDataRelationshipsOwnerDataTypeEnum = exports.ViewRepByPredefinedIdOpIdEnum = exports.ViewRepByPredefinedIdOpTypeEnum = exports.ViewRepByIdOpTypeEnum = exports.ViewRenBySuppliedIdOpTypeEnum = exports.ViewRenByIdOpTypeEnum = exports.ViewDefaultRenOpTypeEnum = exports.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = exports.UpdateSceneRequestDataAttributesStateEnum = exports.UpdateItemToDefaultRenditionOperationTypeEnum = exports.UpdateAccountRequestDataAttributesStatusEnum = exports.SelectOpTypeEnum = exports.SceneViewStateRelationshipDataTypeEnum = exports.SceneViewRelationshipDataTypeEnum = exports.SceneRelationshipDataTypeEnum = exports.SceneItemRelationshipDataTypeEnum = exports.QueryByIdDataAttributesTypeEnum = exports.QueryByIdDataTypeEnum = exports.QueryByCollectionDataAttributesTypeEnum = exports.QueryByCollectionDataTypeEnum = exports.QueryAll = exports.PartRenditionRelationshipDataTypeEnum = exports.PartRelationshipDataTypeEnum = exports.PartDataRelationshipsPartRevisionsTypeEnum = exports.GeometrySetRelationshipDataTypeEnum = exports.FileRelationshipDataTypeEnum = exports.ExportStateRelationshipDataTypeEnum = exports.ExportRelationshipDataTypeEnum = exports.DeselectOperationTypeEnum = exports.ClearTransformOpTypeEnum = exports.ClearRepOpTypeEnum = exports.ClearRenOpTypeEnum = exports.ClearMaterialOpTypeEnum = exports.ChangeVisibilityOpTypeEnum = exports.ChangeTransformOpTypeEnum = exports.ChangeMaterialOpTypeEnum = exports.CameraFitTypeEnum = exports.BatchOperationRefTypeEnum = exports.BatchOperationOpEnum = void 0;
|
|
29
|
-
exports.
|
|
30
|
-
exports.WebhookSubscriptionsApi = exports.WebhookSubscriptionsApiFactory = exports.WebhookSubscriptionsApiFp = exports.WebhookSubscriptionsApiAxiosParamCreator = exports.TranslationInspectionsApi = exports.TranslationInspectionsApiFactory = exports.TranslationInspectionsApiFp = exports.TranslationInspectionsApiAxiosParamCreator = exports.StreamKeysApi = exports.StreamKeysApiFactory = exports.StreamKeysApiFp = exports.StreamKeysApiAxiosParamCreator = exports.ScenesApi = exports.ScenesApiFactory = exports.ScenesApiFp = exports.ScenesApiAxiosParamCreator = exports.SceneViewsApi = exports.SceneViewsApiFactory = exports.SceneViewsApiFp = exports.SceneViewsApiAxiosParamCreator = exports.SceneViewStatesApi = exports.SceneViewStatesApiFactory = exports.SceneViewStatesApiFp = exports.SceneViewStatesApiAxiosParamCreator = exports.SceneSynchronizationsApi = exports.SceneSynchronizationsApiFactory = exports.SceneSynchronizationsApiFp = exports.SceneSynchronizationsApiAxiosParamCreator = void 0;
|
|
29
|
+
exports.SceneAnnotationsApi = exports.SceneAnnotationsApiFactory = exports.SceneAnnotationsApiFp = exports.SceneAnnotationsApiAxiosParamCreator = exports.SceneAlterationsApi = exports.SceneAlterationsApiFactory = exports.SceneAlterationsApiFp = exports.SceneAlterationsApiAxiosParamCreator = exports.PmiApi = exports.PmiApiFactory = exports.PmiApiFp = exports.PmiApiAxiosParamCreator = exports.PartsApi = exports.PartsApiFactory = exports.PartsApiFp = exports.PartsApiAxiosParamCreator = exports.PartRevisionsApi = exports.PartRevisionsApiFactory = exports.PartRevisionsApiFp = exports.PartRevisionsApiAxiosParamCreator = exports.PartRenditionsApi = exports.PartRenditionsApiFactory = exports.PartRenditionsApiFp = exports.PartRenditionsApiAxiosParamCreator = exports.Oauth2Api = exports.Oauth2ApiFactory = exports.Oauth2ApiFp = exports.Oauth2ApiAxiosParamCreator = exports.ModelViewsApi = exports.ModelViewsApiFactory = exports.ModelViewsApiFp = exports.ModelViewsApiAxiosParamCreator = exports.HitsApi = exports.HitsApiFactory = exports.HitsApiFp = exports.HitsApiAxiosParamCreator = exports.GeometrySetsApi = exports.GeometrySetsApiFactory = exports.GeometrySetsApiFp = exports.GeometrySetsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.ExportsApi = exports.ExportsApiFactory = exports.ExportsApiFp = exports.ExportsApiAxiosParamCreator = exports.BatchesApi = exports.BatchesApiFactory = void 0;
|
|
30
|
+
exports.WebhookSubscriptionsApi = exports.WebhookSubscriptionsApiFactory = exports.WebhookSubscriptionsApiFp = exports.WebhookSubscriptionsApiAxiosParamCreator = exports.TranslationInspectionsApi = exports.TranslationInspectionsApiFactory = exports.TranslationInspectionsApiFp = exports.TranslationInspectionsApiAxiosParamCreator = exports.StreamKeysApi = exports.StreamKeysApiFactory = exports.StreamKeysApiFp = exports.StreamKeysApiAxiosParamCreator = exports.ScenesApi = exports.ScenesApiFactory = exports.ScenesApiFp = exports.ScenesApiAxiosParamCreator = exports.SceneViewsApi = exports.SceneViewsApiFactory = exports.SceneViewsApiFp = exports.SceneViewsApiAxiosParamCreator = exports.SceneViewStatesApi = exports.SceneViewStatesApiFactory = exports.SceneViewStatesApiFp = exports.SceneViewStatesApiAxiosParamCreator = exports.SceneSynchronizationsApi = exports.SceneSynchronizationsApiFactory = exports.SceneSynchronizationsApiFp = exports.SceneSynchronizationsApiAxiosParamCreator = exports.SceneItemsApi = exports.SceneItemsApiFactory = exports.SceneItemsApiFp = exports.SceneItemsApiAxiosParamCreator = exports.SceneItemOverridesApi = exports.SceneItemOverridesApiFactory = exports.SceneItemOverridesApiFp = exports.SceneItemOverridesApiAxiosParamCreator = void 0;
|
|
31
31
|
const axios_1 = __importDefault(require("axios"));
|
|
32
32
|
// Some imports not used depending on template conditions
|
|
33
33
|
// @ts-ignore
|
|
@@ -1558,6 +1558,42 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
1558
1558
|
options: localVarRequestOptions,
|
|
1559
1559
|
};
|
|
1560
1560
|
}),
|
|
1561
|
+
/**
|
|
1562
|
+
* Update a `file`.
|
|
1563
|
+
* @param {string} id The `file` ID.
|
|
1564
|
+
* @param {UpdateFileRequest} updateFileRequest
|
|
1565
|
+
* @param {*} [options] Override http request option.
|
|
1566
|
+
* @throws {RequiredError}
|
|
1567
|
+
*/
|
|
1568
|
+
updateFile: (id, updateFileRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1569
|
+
var _e;
|
|
1570
|
+
// verify required parameter 'id' is not null or undefined
|
|
1571
|
+
(0, common_1.assertParamExists)('updateFile', 'id', id);
|
|
1572
|
+
// verify required parameter 'updateFileRequest' is not null or undefined
|
|
1573
|
+
(0, common_1.assertParamExists)('updateFile', 'updateFileRequest', updateFileRequest);
|
|
1574
|
+
const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1575
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1576
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1577
|
+
let baseOptions;
|
|
1578
|
+
if (configuration) {
|
|
1579
|
+
baseOptions = configuration.baseOptions;
|
|
1580
|
+
}
|
|
1581
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1582
|
+
const localVarHeaderParameter = {};
|
|
1583
|
+
const localVarQueryParameter = {};
|
|
1584
|
+
// authentication OAuth2 required
|
|
1585
|
+
// oauth required
|
|
1586
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1587
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1588
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1589
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
1590
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1591
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFileRequest, localVarRequestOptions, configuration);
|
|
1592
|
+
return {
|
|
1593
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1594
|
+
options: localVarRequestOptions,
|
|
1595
|
+
};
|
|
1596
|
+
}),
|
|
1561
1597
|
/**
|
|
1562
1598
|
* Upload a `file`. Once uploaded, create either parts or geometry sets via the createPart or createGeometrySet APIs.
|
|
1563
1599
|
* @param {string} id The `file` ID.
|
|
@@ -1566,7 +1602,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
1566
1602
|
* @throws {RequiredError}
|
|
1567
1603
|
*/
|
|
1568
1604
|
uploadFile: (id, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1569
|
-
var
|
|
1605
|
+
var _f;
|
|
1570
1606
|
// verify required parameter 'id' is not null or undefined
|
|
1571
1607
|
(0, common_1.assertParamExists)('uploadFile', 'id', id);
|
|
1572
1608
|
// verify required parameter 'body' is not null or undefined
|
|
@@ -1586,7 +1622,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
1586
1622
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1587
1623
|
localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
|
|
1588
1624
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1589
|
-
let headersFromBaseOptions = (
|
|
1625
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
1590
1626
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1591
1627
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1592
1628
|
return {
|
|
@@ -1654,6 +1690,19 @@ const FilesApiFp = function (configuration) {
|
|
|
1654
1690
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1655
1691
|
});
|
|
1656
1692
|
},
|
|
1693
|
+
/**
|
|
1694
|
+
* Update a `file`.
|
|
1695
|
+
* @param {string} id The `file` ID.
|
|
1696
|
+
* @param {UpdateFileRequest} updateFileRequest
|
|
1697
|
+
* @param {*} [options] Override http request option.
|
|
1698
|
+
* @throws {RequiredError}
|
|
1699
|
+
*/
|
|
1700
|
+
updateFile(id, updateFileRequest, options) {
|
|
1701
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1702
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFile(id, updateFileRequest, options);
|
|
1703
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1704
|
+
});
|
|
1705
|
+
},
|
|
1657
1706
|
/**
|
|
1658
1707
|
* Upload a `file`. Once uploaded, create either parts or geometry sets via the createPart or createGeometrySet APIs.
|
|
1659
1708
|
* @param {string} id The `file` ID.
|
|
@@ -1723,6 +1772,18 @@ const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
1723
1772
|
.getFiles(pageCursor, pageSize, filterSuppliedId, options)
|
|
1724
1773
|
.then((request) => request(axios, basePath));
|
|
1725
1774
|
},
|
|
1775
|
+
/**
|
|
1776
|
+
* Update a `file`.
|
|
1777
|
+
* @param {string} id The `file` ID.
|
|
1778
|
+
* @param {UpdateFileRequest} updateFileRequest
|
|
1779
|
+
* @param {*} [options] Override http request option.
|
|
1780
|
+
* @throws {RequiredError}
|
|
1781
|
+
*/
|
|
1782
|
+
updateFile(id, updateFileRequest, options) {
|
|
1783
|
+
return localVarFp
|
|
1784
|
+
.updateFile(id, updateFileRequest, options)
|
|
1785
|
+
.then((request) => request(axios, basePath));
|
|
1786
|
+
},
|
|
1726
1787
|
/**
|
|
1727
1788
|
* Upload a `file`. Once uploaded, create either parts or geometry sets via the createPart or createGeometrySet APIs.
|
|
1728
1789
|
* @param {string} id The `file` ID.
|
|
@@ -1793,6 +1854,18 @@ class FilesApi extends base_1.BaseAPI {
|
|
|
1793
1854
|
.getFiles(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSuppliedId, options)
|
|
1794
1855
|
.then((request) => request(this.axios, this.basePath));
|
|
1795
1856
|
}
|
|
1857
|
+
/**
|
|
1858
|
+
* Update a `file`.
|
|
1859
|
+
* @param {FilesApiUpdateFileRequest} requestParameters Request parameters.
|
|
1860
|
+
* @param {*} [options] Override http request option.
|
|
1861
|
+
* @throws {RequiredError}
|
|
1862
|
+
* @memberof FilesApi
|
|
1863
|
+
*/
|
|
1864
|
+
updateFile(requestParameters, options) {
|
|
1865
|
+
return (0, exports.FilesApiFp)(this.configuration)
|
|
1866
|
+
.updateFile(requestParameters.id, requestParameters.updateFileRequest, options)
|
|
1867
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1868
|
+
}
|
|
1796
1869
|
/**
|
|
1797
1870
|
* Upload a `file`. Once uploaded, create either parts or geometry sets via the createPart or createGeometrySet APIs.
|
|
1798
1871
|
* @param {FilesApiUploadFileRequest} requestParameters Request parameters.
|
|
@@ -2260,6 +2333,278 @@ class HitsApi extends base_1.BaseAPI {
|
|
|
2260
2333
|
}
|
|
2261
2334
|
}
|
|
2262
2335
|
exports.HitsApi = HitsApi;
|
|
2336
|
+
/**
|
|
2337
|
+
* ModelViewsApi - axios parameter creator
|
|
2338
|
+
* @export
|
|
2339
|
+
*/
|
|
2340
|
+
const ModelViewsApiAxiosParamCreator = function (configuration) {
|
|
2341
|
+
return {
|
|
2342
|
+
/**
|
|
2343
|
+
* Get the details of a `model-view`.
|
|
2344
|
+
* @param {string} id The `model-view` ID.
|
|
2345
|
+
* @param {*} [options] Override http request option.
|
|
2346
|
+
* @throws {RequiredError}
|
|
2347
|
+
*/
|
|
2348
|
+
getModelView: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2349
|
+
var _a;
|
|
2350
|
+
// verify required parameter 'id' is not null or undefined
|
|
2351
|
+
(0, common_1.assertParamExists)('getModelView', 'id', id);
|
|
2352
|
+
const localVarPath = `/model-views/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2353
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2354
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2355
|
+
let baseOptions;
|
|
2356
|
+
if (configuration) {
|
|
2357
|
+
baseOptions = configuration.baseOptions;
|
|
2358
|
+
}
|
|
2359
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2360
|
+
const localVarHeaderParameter = {};
|
|
2361
|
+
const localVarQueryParameter = {};
|
|
2362
|
+
// authentication OAuth2 required
|
|
2363
|
+
// oauth required
|
|
2364
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2365
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2366
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
2367
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2368
|
+
return {
|
|
2369
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2370
|
+
options: localVarRequestOptions,
|
|
2371
|
+
};
|
|
2372
|
+
}),
|
|
2373
|
+
/**
|
|
2374
|
+
* Get a paged list of `model-views` for a part revision.
|
|
2375
|
+
* @param {string} id The `part-revision` ID.
|
|
2376
|
+
* @param {boolean} [filterHasAnnotations] Filter model views that contain or do not contain annotations.
|
|
2377
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2378
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2379
|
+
* @param {*} [options] Override http request option.
|
|
2380
|
+
* @throws {RequiredError}
|
|
2381
|
+
*/
|
|
2382
|
+
getPartRevisionModelViews: (id, filterHasAnnotations, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2383
|
+
var _b;
|
|
2384
|
+
// verify required parameter 'id' is not null or undefined
|
|
2385
|
+
(0, common_1.assertParamExists)('getPartRevisionModelViews', 'id', id);
|
|
2386
|
+
const localVarPath = `/part-revisions/{id}/model-views`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2387
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2388
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2389
|
+
let baseOptions;
|
|
2390
|
+
if (configuration) {
|
|
2391
|
+
baseOptions = configuration.baseOptions;
|
|
2392
|
+
}
|
|
2393
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2394
|
+
const localVarHeaderParameter = {};
|
|
2395
|
+
const localVarQueryParameter = {};
|
|
2396
|
+
// authentication OAuth2 required
|
|
2397
|
+
// oauth required
|
|
2398
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2399
|
+
if (filterHasAnnotations !== undefined) {
|
|
2400
|
+
localVarQueryParameter['filter[hasAnnotations]'] = filterHasAnnotations;
|
|
2401
|
+
}
|
|
2402
|
+
if (pageCursor !== undefined) {
|
|
2403
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
2404
|
+
}
|
|
2405
|
+
if (pageSize !== undefined) {
|
|
2406
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
2407
|
+
}
|
|
2408
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2409
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
2410
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2411
|
+
return {
|
|
2412
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2413
|
+
options: localVarRequestOptions,
|
|
2414
|
+
};
|
|
2415
|
+
}),
|
|
2416
|
+
/**
|
|
2417
|
+
* Get a paged list of `model-views` for a scene item.
|
|
2418
|
+
* @param {string} id The `scene-item` ID.
|
|
2419
|
+
* @param {boolean} [filterHasAnnotations] Filter model views that contain or do not contain annotations.
|
|
2420
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2421
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2422
|
+
* @param {*} [options] Override http request option.
|
|
2423
|
+
* @throws {RequiredError}
|
|
2424
|
+
*/
|
|
2425
|
+
getSceneItemModelViews: (id, filterHasAnnotations, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2426
|
+
var _c;
|
|
2427
|
+
// verify required parameter 'id' is not null or undefined
|
|
2428
|
+
(0, common_1.assertParamExists)('getSceneItemModelViews', 'id', id);
|
|
2429
|
+
const localVarPath = `/scene-items/{id}/model-views`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2430
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2431
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2432
|
+
let baseOptions;
|
|
2433
|
+
if (configuration) {
|
|
2434
|
+
baseOptions = configuration.baseOptions;
|
|
2435
|
+
}
|
|
2436
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2437
|
+
const localVarHeaderParameter = {};
|
|
2438
|
+
const localVarQueryParameter = {};
|
|
2439
|
+
// authentication OAuth2 required
|
|
2440
|
+
// oauth required
|
|
2441
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2442
|
+
if (filterHasAnnotations !== undefined) {
|
|
2443
|
+
localVarQueryParameter['filter[hasAnnotations]'] = filterHasAnnotations;
|
|
2444
|
+
}
|
|
2445
|
+
if (pageCursor !== undefined) {
|
|
2446
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
2447
|
+
}
|
|
2448
|
+
if (pageSize !== undefined) {
|
|
2449
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
2450
|
+
}
|
|
2451
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2452
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
2453
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2454
|
+
return {
|
|
2455
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2456
|
+
options: localVarRequestOptions,
|
|
2457
|
+
};
|
|
2458
|
+
}),
|
|
2459
|
+
};
|
|
2460
|
+
};
|
|
2461
|
+
exports.ModelViewsApiAxiosParamCreator = ModelViewsApiAxiosParamCreator;
|
|
2462
|
+
/**
|
|
2463
|
+
* ModelViewsApi - functional programming interface
|
|
2464
|
+
* @export
|
|
2465
|
+
*/
|
|
2466
|
+
const ModelViewsApiFp = function (configuration) {
|
|
2467
|
+
const localVarAxiosParamCreator = (0, exports.ModelViewsApiAxiosParamCreator)(configuration);
|
|
2468
|
+
return {
|
|
2469
|
+
/**
|
|
2470
|
+
* Get the details of a `model-view`.
|
|
2471
|
+
* @param {string} id The `model-view` ID.
|
|
2472
|
+
* @param {*} [options] Override http request option.
|
|
2473
|
+
* @throws {RequiredError}
|
|
2474
|
+
*/
|
|
2475
|
+
getModelView(id, options) {
|
|
2476
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2477
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelView(id, options);
|
|
2478
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2479
|
+
});
|
|
2480
|
+
},
|
|
2481
|
+
/**
|
|
2482
|
+
* Get a paged list of `model-views` for a part revision.
|
|
2483
|
+
* @param {string} id The `part-revision` ID.
|
|
2484
|
+
* @param {boolean} [filterHasAnnotations] Filter model views that contain or do not contain annotations.
|
|
2485
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2486
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2487
|
+
* @param {*} [options] Override http request option.
|
|
2488
|
+
* @throws {RequiredError}
|
|
2489
|
+
*/
|
|
2490
|
+
getPartRevisionModelViews(id, filterHasAnnotations, pageCursor, pageSize, options) {
|
|
2491
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2492
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPartRevisionModelViews(id, filterHasAnnotations, pageCursor, pageSize, options);
|
|
2493
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2494
|
+
});
|
|
2495
|
+
},
|
|
2496
|
+
/**
|
|
2497
|
+
* Get a paged list of `model-views` for a scene item.
|
|
2498
|
+
* @param {string} id The `scene-item` ID.
|
|
2499
|
+
* @param {boolean} [filterHasAnnotations] Filter model views that contain or do not contain annotations.
|
|
2500
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2501
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2502
|
+
* @param {*} [options] Override http request option.
|
|
2503
|
+
* @throws {RequiredError}
|
|
2504
|
+
*/
|
|
2505
|
+
getSceneItemModelViews(id, filterHasAnnotations, pageCursor, pageSize, options) {
|
|
2506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2507
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItemModelViews(id, filterHasAnnotations, pageCursor, pageSize, options);
|
|
2508
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2509
|
+
});
|
|
2510
|
+
},
|
|
2511
|
+
};
|
|
2512
|
+
};
|
|
2513
|
+
exports.ModelViewsApiFp = ModelViewsApiFp;
|
|
2514
|
+
/**
|
|
2515
|
+
* ModelViewsApi - factory interface
|
|
2516
|
+
* @export
|
|
2517
|
+
*/
|
|
2518
|
+
const ModelViewsApiFactory = function (configuration, basePath, axios) {
|
|
2519
|
+
const localVarFp = (0, exports.ModelViewsApiFp)(configuration);
|
|
2520
|
+
return {
|
|
2521
|
+
/**
|
|
2522
|
+
* Get the details of a `model-view`.
|
|
2523
|
+
* @param {string} id The `model-view` ID.
|
|
2524
|
+
* @param {*} [options] Override http request option.
|
|
2525
|
+
* @throws {RequiredError}
|
|
2526
|
+
*/
|
|
2527
|
+
getModelView(id, options) {
|
|
2528
|
+
return localVarFp
|
|
2529
|
+
.getModelView(id, options)
|
|
2530
|
+
.then((request) => request(axios, basePath));
|
|
2531
|
+
},
|
|
2532
|
+
/**
|
|
2533
|
+
* Get a paged list of `model-views` for a part revision.
|
|
2534
|
+
* @param {string} id The `part-revision` ID.
|
|
2535
|
+
* @param {boolean} [filterHasAnnotations] Filter model views that contain or do not contain annotations.
|
|
2536
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2537
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2538
|
+
* @param {*} [options] Override http request option.
|
|
2539
|
+
* @throws {RequiredError}
|
|
2540
|
+
*/
|
|
2541
|
+
getPartRevisionModelViews(id, filterHasAnnotations, pageCursor, pageSize, options) {
|
|
2542
|
+
return localVarFp
|
|
2543
|
+
.getPartRevisionModelViews(id, filterHasAnnotations, pageCursor, pageSize, options)
|
|
2544
|
+
.then((request) => request(axios, basePath));
|
|
2545
|
+
},
|
|
2546
|
+
/**
|
|
2547
|
+
* Get a paged list of `model-views` for a scene item.
|
|
2548
|
+
* @param {string} id The `scene-item` ID.
|
|
2549
|
+
* @param {boolean} [filterHasAnnotations] Filter model views that contain or do not contain annotations.
|
|
2550
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2551
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2552
|
+
* @param {*} [options] Override http request option.
|
|
2553
|
+
* @throws {RequiredError}
|
|
2554
|
+
*/
|
|
2555
|
+
getSceneItemModelViews(id, filterHasAnnotations, pageCursor, pageSize, options) {
|
|
2556
|
+
return localVarFp
|
|
2557
|
+
.getSceneItemModelViews(id, filterHasAnnotations, pageCursor, pageSize, options)
|
|
2558
|
+
.then((request) => request(axios, basePath));
|
|
2559
|
+
},
|
|
2560
|
+
};
|
|
2561
|
+
};
|
|
2562
|
+
exports.ModelViewsApiFactory = ModelViewsApiFactory;
|
|
2563
|
+
/**
|
|
2564
|
+
* ModelViewsApi - object-oriented interface
|
|
2565
|
+
* @export
|
|
2566
|
+
* @class ModelViewsApi
|
|
2567
|
+
* @extends {BaseAPI}
|
|
2568
|
+
*/
|
|
2569
|
+
class ModelViewsApi extends base_1.BaseAPI {
|
|
2570
|
+
/**
|
|
2571
|
+
* Get the details of a `model-view`.
|
|
2572
|
+
* @param {ModelViewsApiGetModelViewRequest} requestParameters Request parameters.
|
|
2573
|
+
* @param {*} [options] Override http request option.
|
|
2574
|
+
* @throws {RequiredError}
|
|
2575
|
+
* @memberof ModelViewsApi
|
|
2576
|
+
*/
|
|
2577
|
+
getModelView(requestParameters, options) {
|
|
2578
|
+
return (0, exports.ModelViewsApiFp)(this.configuration)
|
|
2579
|
+
.getModelView(requestParameters.id, options)
|
|
2580
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2581
|
+
}
|
|
2582
|
+
/**
|
|
2583
|
+
* Get a paged list of `model-views` for a part revision.
|
|
2584
|
+
* @param {ModelViewsApiGetPartRevisionModelViewsRequest} requestParameters Request parameters.
|
|
2585
|
+
* @param {*} [options] Override http request option.
|
|
2586
|
+
* @throws {RequiredError}
|
|
2587
|
+
* @memberof ModelViewsApi
|
|
2588
|
+
*/
|
|
2589
|
+
getPartRevisionModelViews(requestParameters, options) {
|
|
2590
|
+
return (0, exports.ModelViewsApiFp)(this.configuration)
|
|
2591
|
+
.getPartRevisionModelViews(requestParameters.id, requestParameters.filterHasAnnotations, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
2592
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2593
|
+
}
|
|
2594
|
+
/**
|
|
2595
|
+
* Get a paged list of `model-views` for a scene item.
|
|
2596
|
+
* @param {ModelViewsApiGetSceneItemModelViewsRequest} requestParameters Request parameters.
|
|
2597
|
+
* @param {*} [options] Override http request option.
|
|
2598
|
+
* @throws {RequiredError}
|
|
2599
|
+
* @memberof ModelViewsApi
|
|
2600
|
+
*/
|
|
2601
|
+
getSceneItemModelViews(requestParameters, options) {
|
|
2602
|
+
return (0, exports.ModelViewsApiFp)(this.configuration)
|
|
2603
|
+
.getSceneItemModelViews(requestParameters.id, requestParameters.filterHasAnnotations, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
2604
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
exports.ModelViewsApi = ModelViewsApi;
|
|
2263
2608
|
/**
|
|
2264
2609
|
* Oauth2Api - axios parameter creator
|
|
2265
2610
|
* @export
|
|
@@ -3807,6 +4152,123 @@ class PartsApi extends base_1.BaseAPI {
|
|
|
3807
4152
|
}
|
|
3808
4153
|
}
|
|
3809
4154
|
exports.PartsApi = PartsApi;
|
|
4155
|
+
/**
|
|
4156
|
+
* PmiApi - axios parameter creator
|
|
4157
|
+
* @export
|
|
4158
|
+
*/
|
|
4159
|
+
const PmiApiAxiosParamCreator = function (configuration) {
|
|
4160
|
+
return {
|
|
4161
|
+
/**
|
|
4162
|
+
* List `pmi-annotation`s.
|
|
4163
|
+
* @param {string} [filterModelViewId] Filter annotations belonging to a model view.
|
|
4164
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4165
|
+
* @param {number} [pageSize] The number of items to return.
|
|
4166
|
+
* @param {*} [options] Override http request option.
|
|
4167
|
+
* @throws {RequiredError}
|
|
4168
|
+
*/
|
|
4169
|
+
getPmiAnnotations: (filterModelViewId, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4170
|
+
var _a;
|
|
4171
|
+
const localVarPath = `/pmi-annotations`;
|
|
4172
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4173
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4174
|
+
let baseOptions;
|
|
4175
|
+
if (configuration) {
|
|
4176
|
+
baseOptions = configuration.baseOptions;
|
|
4177
|
+
}
|
|
4178
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4179
|
+
const localVarHeaderParameter = {};
|
|
4180
|
+
const localVarQueryParameter = {};
|
|
4181
|
+
// authentication OAuth2 required
|
|
4182
|
+
// oauth required
|
|
4183
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
4184
|
+
if (filterModelViewId !== undefined) {
|
|
4185
|
+
localVarQueryParameter['filter[modelViewId]'] = filterModelViewId;
|
|
4186
|
+
}
|
|
4187
|
+
if (pageCursor !== undefined) {
|
|
4188
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
4189
|
+
}
|
|
4190
|
+
if (pageSize !== undefined) {
|
|
4191
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
4192
|
+
}
|
|
4193
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4194
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
4195
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4196
|
+
return {
|
|
4197
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4198
|
+
options: localVarRequestOptions,
|
|
4199
|
+
};
|
|
4200
|
+
}),
|
|
4201
|
+
};
|
|
4202
|
+
};
|
|
4203
|
+
exports.PmiApiAxiosParamCreator = PmiApiAxiosParamCreator;
|
|
4204
|
+
/**
|
|
4205
|
+
* PmiApi - functional programming interface
|
|
4206
|
+
* @export
|
|
4207
|
+
*/
|
|
4208
|
+
const PmiApiFp = function (configuration) {
|
|
4209
|
+
const localVarAxiosParamCreator = (0, exports.PmiApiAxiosParamCreator)(configuration);
|
|
4210
|
+
return {
|
|
4211
|
+
/**
|
|
4212
|
+
* List `pmi-annotation`s.
|
|
4213
|
+
* @param {string} [filterModelViewId] Filter annotations belonging to a model view.
|
|
4214
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4215
|
+
* @param {number} [pageSize] The number of items to return.
|
|
4216
|
+
* @param {*} [options] Override http request option.
|
|
4217
|
+
* @throws {RequiredError}
|
|
4218
|
+
*/
|
|
4219
|
+
getPmiAnnotations(filterModelViewId, pageCursor, pageSize, options) {
|
|
4220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4221
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPmiAnnotations(filterModelViewId, pageCursor, pageSize, options);
|
|
4222
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4223
|
+
});
|
|
4224
|
+
},
|
|
4225
|
+
};
|
|
4226
|
+
};
|
|
4227
|
+
exports.PmiApiFp = PmiApiFp;
|
|
4228
|
+
/**
|
|
4229
|
+
* PmiApi - factory interface
|
|
4230
|
+
* @export
|
|
4231
|
+
*/
|
|
4232
|
+
const PmiApiFactory = function (configuration, basePath, axios) {
|
|
4233
|
+
const localVarFp = (0, exports.PmiApiFp)(configuration);
|
|
4234
|
+
return {
|
|
4235
|
+
/**
|
|
4236
|
+
* List `pmi-annotation`s.
|
|
4237
|
+
* @param {string} [filterModelViewId] Filter annotations belonging to a model view.
|
|
4238
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4239
|
+
* @param {number} [pageSize] The number of items to return.
|
|
4240
|
+
* @param {*} [options] Override http request option.
|
|
4241
|
+
* @throws {RequiredError}
|
|
4242
|
+
*/
|
|
4243
|
+
getPmiAnnotations(filterModelViewId, pageCursor, pageSize, options) {
|
|
4244
|
+
return localVarFp
|
|
4245
|
+
.getPmiAnnotations(filterModelViewId, pageCursor, pageSize, options)
|
|
4246
|
+
.then((request) => request(axios, basePath));
|
|
4247
|
+
},
|
|
4248
|
+
};
|
|
4249
|
+
};
|
|
4250
|
+
exports.PmiApiFactory = PmiApiFactory;
|
|
4251
|
+
/**
|
|
4252
|
+
* PmiApi - object-oriented interface
|
|
4253
|
+
* @export
|
|
4254
|
+
* @class PmiApi
|
|
4255
|
+
* @extends {BaseAPI}
|
|
4256
|
+
*/
|
|
4257
|
+
class PmiApi extends base_1.BaseAPI {
|
|
4258
|
+
/**
|
|
4259
|
+
* List `pmi-annotation`s.
|
|
4260
|
+
* @param {PmiApiGetPmiAnnotationsRequest} requestParameters Request parameters.
|
|
4261
|
+
* @param {*} [options] Override http request option.
|
|
4262
|
+
* @throws {RequiredError}
|
|
4263
|
+
* @memberof PmiApi
|
|
4264
|
+
*/
|
|
4265
|
+
getPmiAnnotations(requestParameters = {}, options) {
|
|
4266
|
+
return (0, exports.PmiApiFp)(this.configuration)
|
|
4267
|
+
.getPmiAnnotations(requestParameters.filterModelViewId, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
4268
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4269
|
+
}
|
|
4270
|
+
}
|
|
4271
|
+
exports.PmiApi = PmiApi;
|
|
3810
4272
|
/**
|
|
3811
4273
|
* SceneAlterationsApi - axios parameter creator
|
|
3812
4274
|
* @export
|
|
@@ -4225,6 +4687,53 @@ const SceneAnnotationsApiAxiosParamCreator = function (configuration) {
|
|
|
4225
4687
|
options: localVarRequestOptions,
|
|
4226
4688
|
};
|
|
4227
4689
|
}),
|
|
4690
|
+
/**
|
|
4691
|
+
* Get `scene-annotation-sets` for a `scene`.
|
|
4692
|
+
* @param {string} id The `scene` ID.
|
|
4693
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4694
|
+
* @param {number} [pageSize] The number of items to return.
|
|
4695
|
+
* @param {string} [filterId] Comma-separated list of IDs to filter on.
|
|
4696
|
+
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
4697
|
+
* @param {*} [options] Override http request option.
|
|
4698
|
+
* @throws {RequiredError}
|
|
4699
|
+
*/
|
|
4700
|
+
getSceneAnnotationSets: (id, pageCursor, pageSize, filterId, filterSuppliedId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4701
|
+
var _d;
|
|
4702
|
+
// verify required parameter 'id' is not null or undefined
|
|
4703
|
+
(0, common_1.assertParamExists)('getSceneAnnotationSets', 'id', id);
|
|
4704
|
+
const localVarPath = `/scenes/{id}/scene-annotation-sets`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
4705
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4706
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4707
|
+
let baseOptions;
|
|
4708
|
+
if (configuration) {
|
|
4709
|
+
baseOptions = configuration.baseOptions;
|
|
4710
|
+
}
|
|
4711
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4712
|
+
const localVarHeaderParameter = {};
|
|
4713
|
+
const localVarQueryParameter = {};
|
|
4714
|
+
// authentication OAuth2 required
|
|
4715
|
+
// oauth required
|
|
4716
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
4717
|
+
if (pageCursor !== undefined) {
|
|
4718
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
4719
|
+
}
|
|
4720
|
+
if (pageSize !== undefined) {
|
|
4721
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
4722
|
+
}
|
|
4723
|
+
if (filterId !== undefined) {
|
|
4724
|
+
localVarQueryParameter['filter[id]'] = filterId;
|
|
4725
|
+
}
|
|
4726
|
+
if (filterSuppliedId !== undefined) {
|
|
4727
|
+
localVarQueryParameter['filter[suppliedId]'] = filterSuppliedId;
|
|
4728
|
+
}
|
|
4729
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4730
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
4731
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4732
|
+
return {
|
|
4733
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4734
|
+
options: localVarRequestOptions,
|
|
4735
|
+
};
|
|
4736
|
+
}),
|
|
4228
4737
|
/**
|
|
4229
4738
|
* Update the attributes of an annotation. **Preview:** This is a preview API and is subject to change.
|
|
4230
4739
|
* @param {string} id The `scene-annotation` ID.
|
|
@@ -4233,7 +4742,7 @@ const SceneAnnotationsApiAxiosParamCreator = function (configuration) {
|
|
|
4233
4742
|
* @throws {RequiredError}
|
|
4234
4743
|
*/
|
|
4235
4744
|
updateSceneAnnotation: (id, updateSceneAnnotationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4236
|
-
var
|
|
4745
|
+
var _e;
|
|
4237
4746
|
// verify required parameter 'id' is not null or undefined
|
|
4238
4747
|
(0, common_1.assertParamExists)('updateSceneAnnotation', 'id', id);
|
|
4239
4748
|
// verify required parameter 'updateSceneAnnotationRequest' is not null or undefined
|
|
@@ -4253,7 +4762,7 @@ const SceneAnnotationsApiAxiosParamCreator = function (configuration) {
|
|
|
4253
4762
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
4254
4763
|
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
4255
4764
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4256
|
-
let headersFromBaseOptions = (
|
|
4765
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
4257
4766
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4258
4767
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSceneAnnotationRequest, localVarRequestOptions, configuration);
|
|
4259
4768
|
return {
|
|
@@ -4309,6 +4818,22 @@ const SceneAnnotationsApiFp = function (configuration) {
|
|
|
4309
4818
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4310
4819
|
});
|
|
4311
4820
|
},
|
|
4821
|
+
/**
|
|
4822
|
+
* Get `scene-annotation-sets` for a `scene`.
|
|
4823
|
+
* @param {string} id The `scene` ID.
|
|
4824
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4825
|
+
* @param {number} [pageSize] The number of items to return.
|
|
4826
|
+
* @param {string} [filterId] Comma-separated list of IDs to filter on.
|
|
4827
|
+
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
4828
|
+
* @param {*} [options] Override http request option.
|
|
4829
|
+
* @throws {RequiredError}
|
|
4830
|
+
*/
|
|
4831
|
+
getSceneAnnotationSets(id, pageCursor, pageSize, filterId, filterSuppliedId, options) {
|
|
4832
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4833
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneAnnotationSets(id, pageCursor, pageSize, filterId, filterSuppliedId, options);
|
|
4834
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4835
|
+
});
|
|
4836
|
+
},
|
|
4312
4837
|
/**
|
|
4313
4838
|
* Update the attributes of an annotation. **Preview:** This is a preview API and is subject to change.
|
|
4314
4839
|
* @param {string} id The `scene-annotation` ID.
|
|
@@ -4367,6 +4892,21 @@ const SceneAnnotationsApiFactory = function (configuration, basePath, axios) {
|
|
|
4367
4892
|
.deleteSceneAnnotation(id, options)
|
|
4368
4893
|
.then((request) => request(axios, basePath));
|
|
4369
4894
|
},
|
|
4895
|
+
/**
|
|
4896
|
+
* Get `scene-annotation-sets` for a `scene`.
|
|
4897
|
+
* @param {string} id The `scene` ID.
|
|
4898
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4899
|
+
* @param {number} [pageSize] The number of items to return.
|
|
4900
|
+
* @param {string} [filterId] Comma-separated list of IDs to filter on.
|
|
4901
|
+
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
4902
|
+
* @param {*} [options] Override http request option.
|
|
4903
|
+
* @throws {RequiredError}
|
|
4904
|
+
*/
|
|
4905
|
+
getSceneAnnotationSets(id, pageCursor, pageSize, filterId, filterSuppliedId, options) {
|
|
4906
|
+
return localVarFp
|
|
4907
|
+
.getSceneAnnotationSets(id, pageCursor, pageSize, filterId, filterSuppliedId, options)
|
|
4908
|
+
.then((request) => request(axios, basePath));
|
|
4909
|
+
},
|
|
4370
4910
|
/**
|
|
4371
4911
|
* Update the attributes of an annotation. **Preview:** This is a preview API and is subject to change.
|
|
4372
4912
|
* @param {string} id The `scene-annotation` ID.
|
|
@@ -4425,6 +4965,18 @@ class SceneAnnotationsApi extends base_1.BaseAPI {
|
|
|
4425
4965
|
.deleteSceneAnnotation(requestParameters.id, options)
|
|
4426
4966
|
.then((request) => request(this.axios, this.basePath));
|
|
4427
4967
|
}
|
|
4968
|
+
/**
|
|
4969
|
+
* Get `scene-annotation-sets` for a `scene`.
|
|
4970
|
+
* @param {SceneAnnotationsApiGetSceneAnnotationSetsRequest} requestParameters Request parameters.
|
|
4971
|
+
* @param {*} [options] Override http request option.
|
|
4972
|
+
* @throws {RequiredError}
|
|
4973
|
+
* @memberof SceneAnnotationsApi
|
|
4974
|
+
*/
|
|
4975
|
+
getSceneAnnotationSets(requestParameters, options) {
|
|
4976
|
+
return (0, exports.SceneAnnotationsApiFp)(this.configuration)
|
|
4977
|
+
.getSceneAnnotationSets(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterId, requestParameters.filterSuppliedId, options)
|
|
4978
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4979
|
+
}
|
|
4428
4980
|
/**
|
|
4429
4981
|
* Update the attributes of an annotation. **Preview:** This is a preview API and is subject to change.
|
|
4430
4982
|
* @param {SceneAnnotationsApiUpdateSceneAnnotationRequest} requestParameters Request parameters.
|
|
@@ -7593,11 +8145,13 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
7593
8145
|
* Get all current translation jobs in progress.
|
|
7594
8146
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
7595
8147
|
* @param {number} [pageSize] The number of items to return.
|
|
8148
|
+
* @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
|
|
7596
8149
|
* @param {string} [filterStatus] Status to filter on.
|
|
8150
|
+
* @param {FilterExpression} [filterCompletedAt] The completion date and time to filter on.
|
|
7597
8151
|
* @param {*} [options] Override http request option.
|
|
7598
8152
|
* @throws {RequiredError}
|
|
7599
8153
|
*/
|
|
7600
|
-
getQueuedTranslationJobs: (pageCursor, pageSize, filterStatus, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
8154
|
+
getQueuedTranslationJobs: (pageCursor, pageSize, sort, filterStatus, filterCompletedAt, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7601
8155
|
var _e;
|
|
7602
8156
|
const localVarPath = `/queued-translation-jobs`;
|
|
7603
8157
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -7618,9 +8172,15 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
7618
8172
|
if (pageSize !== undefined) {
|
|
7619
8173
|
localVarQueryParameter['page[size]'] = pageSize;
|
|
7620
8174
|
}
|
|
8175
|
+
if (sort !== undefined) {
|
|
8176
|
+
localVarQueryParameter['sort'] = sort;
|
|
8177
|
+
}
|
|
7621
8178
|
if (filterStatus !== undefined) {
|
|
7622
8179
|
localVarQueryParameter['filter[status]'] = filterStatus;
|
|
7623
8180
|
}
|
|
8181
|
+
if (filterCompletedAt !== undefined) {
|
|
8182
|
+
localVarQueryParameter['filter[completedAt]'] = filterCompletedAt;
|
|
8183
|
+
}
|
|
7624
8184
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7625
8185
|
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
7626
8186
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7733,13 +8293,15 @@ const TranslationInspectionsApiFp = function (configuration) {
|
|
|
7733
8293
|
* Get all current translation jobs in progress.
|
|
7734
8294
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
7735
8295
|
* @param {number} [pageSize] The number of items to return.
|
|
8296
|
+
* @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
|
|
7736
8297
|
* @param {string} [filterStatus] Status to filter on.
|
|
8298
|
+
* @param {FilterExpression} [filterCompletedAt] The completion date and time to filter on.
|
|
7737
8299
|
* @param {*} [options] Override http request option.
|
|
7738
8300
|
* @throws {RequiredError}
|
|
7739
8301
|
*/
|
|
7740
|
-
getQueuedTranslationJobs(pageCursor, pageSize, filterStatus, options) {
|
|
8302
|
+
getQueuedTranslationJobs(pageCursor, pageSize, sort, filterStatus, filterCompletedAt, options) {
|
|
7741
8303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7742
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQueuedTranslationJobs(pageCursor, pageSize, filterStatus, options);
|
|
8304
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQueuedTranslationJobs(pageCursor, pageSize, sort, filterStatus, filterCompletedAt, options);
|
|
7743
8305
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
7744
8306
|
});
|
|
7745
8307
|
},
|
|
@@ -7817,13 +8379,15 @@ const TranslationInspectionsApiFactory = function (configuration, basePath, axio
|
|
|
7817
8379
|
* Get all current translation jobs in progress.
|
|
7818
8380
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
7819
8381
|
* @param {number} [pageSize] The number of items to return.
|
|
8382
|
+
* @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
|
|
7820
8383
|
* @param {string} [filterStatus] Status to filter on.
|
|
8384
|
+
* @param {FilterExpression} [filterCompletedAt] The completion date and time to filter on.
|
|
7821
8385
|
* @param {*} [options] Override http request option.
|
|
7822
8386
|
* @throws {RequiredError}
|
|
7823
8387
|
*/
|
|
7824
|
-
getQueuedTranslationJobs(pageCursor, pageSize, filterStatus, options) {
|
|
8388
|
+
getQueuedTranslationJobs(pageCursor, pageSize, sort, filterStatus, filterCompletedAt, options) {
|
|
7825
8389
|
return localVarFp
|
|
7826
|
-
.getQueuedTranslationJobs(pageCursor, pageSize, filterStatus, options)
|
|
8390
|
+
.getQueuedTranslationJobs(pageCursor, pageSize, sort, filterStatus, filterCompletedAt, options)
|
|
7827
8391
|
.then((request) => request(axios, basePath));
|
|
7828
8392
|
},
|
|
7829
8393
|
/**
|
|
@@ -7908,7 +8472,7 @@ class TranslationInspectionsApi extends base_1.BaseAPI {
|
|
|
7908
8472
|
*/
|
|
7909
8473
|
getQueuedTranslationJobs(requestParameters = {}, options) {
|
|
7910
8474
|
return (0, exports.TranslationInspectionsApiFp)(this.configuration)
|
|
7911
|
-
.getQueuedTranslationJobs(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterStatus, options)
|
|
8475
|
+
.getQueuedTranslationJobs(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sort, requestParameters.filterStatus, requestParameters.filterCompletedAt, options)
|
|
7912
8476
|
.then((request) => request(this.axios, this.basePath));
|
|
7913
8477
|
}
|
|
7914
8478
|
/**
|