@vertexvis/api-client-node 0.23.0 → 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 +548 -0
- package/dist/cjs/api.js +466 -4
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/esm/api.d.ts +548 -0
- package/dist/esm/api.js +456 -2
- 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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.23.
|
|
1
|
+
export declare const version = "0.23.1";
|