@vertexvis/api-client-node 0.23.0 → 0.23.2
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/helpers/queued-jobs.js +8 -1
- 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/helpers/queued-jobs.js +8 -1
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -1534,6 +1534,42 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
1534
1534
|
options: localVarRequestOptions,
|
|
1535
1535
|
};
|
|
1536
1536
|
}),
|
|
1537
|
+
/**
|
|
1538
|
+
* Update a `file`.
|
|
1539
|
+
* @param {string} id The `file` ID.
|
|
1540
|
+
* @param {UpdateFileRequest} updateFileRequest
|
|
1541
|
+
* @param {*} [options] Override http request option.
|
|
1542
|
+
* @throws {RequiredError}
|
|
1543
|
+
*/
|
|
1544
|
+
updateFile: (id, updateFileRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1545
|
+
var _e;
|
|
1546
|
+
// verify required parameter 'id' is not null or undefined
|
|
1547
|
+
assertParamExists('updateFile', 'id', id);
|
|
1548
|
+
// verify required parameter 'updateFileRequest' is not null or undefined
|
|
1549
|
+
assertParamExists('updateFile', 'updateFileRequest', updateFileRequest);
|
|
1550
|
+
const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1551
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1552
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1553
|
+
let baseOptions;
|
|
1554
|
+
if (configuration) {
|
|
1555
|
+
baseOptions = configuration.baseOptions;
|
|
1556
|
+
}
|
|
1557
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1558
|
+
const localVarHeaderParameter = {};
|
|
1559
|
+
const localVarQueryParameter = {};
|
|
1560
|
+
// authentication OAuth2 required
|
|
1561
|
+
// oauth required
|
|
1562
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1563
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1564
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1565
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
1566
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1567
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateFileRequest, localVarRequestOptions, configuration);
|
|
1568
|
+
return {
|
|
1569
|
+
url: toPathString(localVarUrlObj),
|
|
1570
|
+
options: localVarRequestOptions,
|
|
1571
|
+
};
|
|
1572
|
+
}),
|
|
1537
1573
|
/**
|
|
1538
1574
|
* Upload a `file`. Once uploaded, create either parts or geometry sets via the createPart or createGeometrySet APIs.
|
|
1539
1575
|
* @param {string} id The `file` ID.
|
|
@@ -1542,7 +1578,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
1542
1578
|
* @throws {RequiredError}
|
|
1543
1579
|
*/
|
|
1544
1580
|
uploadFile: (id, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1545
|
-
var
|
|
1581
|
+
var _f;
|
|
1546
1582
|
// verify required parameter 'id' is not null or undefined
|
|
1547
1583
|
assertParamExists('uploadFile', 'id', id);
|
|
1548
1584
|
// verify required parameter 'body' is not null or undefined
|
|
@@ -1562,7 +1598,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
1562
1598
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1563
1599
|
localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
|
|
1564
1600
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1565
|
-
let headersFromBaseOptions = (
|
|
1601
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
1566
1602
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1567
1603
|
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
1568
1604
|
return {
|
|
@@ -1629,6 +1665,19 @@ export const FilesApiFp = function (configuration) {
|
|
|
1629
1665
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1630
1666
|
});
|
|
1631
1667
|
},
|
|
1668
|
+
/**
|
|
1669
|
+
* Update a `file`.
|
|
1670
|
+
* @param {string} id The `file` ID.
|
|
1671
|
+
* @param {UpdateFileRequest} updateFileRequest
|
|
1672
|
+
* @param {*} [options] Override http request option.
|
|
1673
|
+
* @throws {RequiredError}
|
|
1674
|
+
*/
|
|
1675
|
+
updateFile(id, updateFileRequest, options) {
|
|
1676
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1677
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFile(id, updateFileRequest, options);
|
|
1678
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1679
|
+
});
|
|
1680
|
+
},
|
|
1632
1681
|
/**
|
|
1633
1682
|
* Upload a `file`. Once uploaded, create either parts or geometry sets via the createPart or createGeometrySet APIs.
|
|
1634
1683
|
* @param {string} id The `file` ID.
|
|
@@ -1697,6 +1746,18 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
1697
1746
|
.getFiles(pageCursor, pageSize, filterSuppliedId, options)
|
|
1698
1747
|
.then((request) => request(axios, basePath));
|
|
1699
1748
|
},
|
|
1749
|
+
/**
|
|
1750
|
+
* Update a `file`.
|
|
1751
|
+
* @param {string} id The `file` ID.
|
|
1752
|
+
* @param {UpdateFileRequest} updateFileRequest
|
|
1753
|
+
* @param {*} [options] Override http request option.
|
|
1754
|
+
* @throws {RequiredError}
|
|
1755
|
+
*/
|
|
1756
|
+
updateFile(id, updateFileRequest, options) {
|
|
1757
|
+
return localVarFp
|
|
1758
|
+
.updateFile(id, updateFileRequest, options)
|
|
1759
|
+
.then((request) => request(axios, basePath));
|
|
1760
|
+
},
|
|
1700
1761
|
/**
|
|
1701
1762
|
* Upload a `file`. Once uploaded, create either parts or geometry sets via the createPart or createGeometrySet APIs.
|
|
1702
1763
|
* @param {string} id The `file` ID.
|
|
@@ -1766,6 +1827,18 @@ export class FilesApi extends BaseAPI {
|
|
|
1766
1827
|
.getFiles(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSuppliedId, options)
|
|
1767
1828
|
.then((request) => request(this.axios, this.basePath));
|
|
1768
1829
|
}
|
|
1830
|
+
/**
|
|
1831
|
+
* Update a `file`.
|
|
1832
|
+
* @param {FilesApiUpdateFileRequest} requestParameters Request parameters.
|
|
1833
|
+
* @param {*} [options] Override http request option.
|
|
1834
|
+
* @throws {RequiredError}
|
|
1835
|
+
* @memberof FilesApi
|
|
1836
|
+
*/
|
|
1837
|
+
updateFile(requestParameters, options) {
|
|
1838
|
+
return FilesApiFp(this.configuration)
|
|
1839
|
+
.updateFile(requestParameters.id, requestParameters.updateFileRequest, options)
|
|
1840
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1841
|
+
}
|
|
1769
1842
|
/**
|
|
1770
1843
|
* Upload a `file`. Once uploaded, create either parts or geometry sets via the createPart or createGeometrySet APIs.
|
|
1771
1844
|
* @param {FilesApiUploadFileRequest} requestParameters Request parameters.
|
|
@@ -2224,6 +2297,274 @@ export class HitsApi extends BaseAPI {
|
|
|
2224
2297
|
.then((request) => request(this.axios, this.basePath));
|
|
2225
2298
|
}
|
|
2226
2299
|
}
|
|
2300
|
+
/**
|
|
2301
|
+
* ModelViewsApi - axios parameter creator
|
|
2302
|
+
* @export
|
|
2303
|
+
*/
|
|
2304
|
+
export const ModelViewsApiAxiosParamCreator = function (configuration) {
|
|
2305
|
+
return {
|
|
2306
|
+
/**
|
|
2307
|
+
* Get the details of a `model-view`.
|
|
2308
|
+
* @param {string} id The `model-view` ID.
|
|
2309
|
+
* @param {*} [options] Override http request option.
|
|
2310
|
+
* @throws {RequiredError}
|
|
2311
|
+
*/
|
|
2312
|
+
getModelView: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2313
|
+
var _a;
|
|
2314
|
+
// verify required parameter 'id' is not null or undefined
|
|
2315
|
+
assertParamExists('getModelView', 'id', id);
|
|
2316
|
+
const localVarPath = `/model-views/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2318
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2319
|
+
let baseOptions;
|
|
2320
|
+
if (configuration) {
|
|
2321
|
+
baseOptions = configuration.baseOptions;
|
|
2322
|
+
}
|
|
2323
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2324
|
+
const localVarHeaderParameter = {};
|
|
2325
|
+
const localVarQueryParameter = {};
|
|
2326
|
+
// authentication OAuth2 required
|
|
2327
|
+
// oauth required
|
|
2328
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2329
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2330
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
2331
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2332
|
+
return {
|
|
2333
|
+
url: toPathString(localVarUrlObj),
|
|
2334
|
+
options: localVarRequestOptions,
|
|
2335
|
+
};
|
|
2336
|
+
}),
|
|
2337
|
+
/**
|
|
2338
|
+
* Get a paged list of `model-views` for a part revision.
|
|
2339
|
+
* @param {string} id The `part-revision` ID.
|
|
2340
|
+
* @param {boolean} [filterHasAnnotations] Filter model views that contain or do not contain annotations.
|
|
2341
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2342
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2343
|
+
* @param {*} [options] Override http request option.
|
|
2344
|
+
* @throws {RequiredError}
|
|
2345
|
+
*/
|
|
2346
|
+
getPartRevisionModelViews: (id, filterHasAnnotations, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2347
|
+
var _b;
|
|
2348
|
+
// verify required parameter 'id' is not null or undefined
|
|
2349
|
+
assertParamExists('getPartRevisionModelViews', 'id', id);
|
|
2350
|
+
const localVarPath = `/part-revisions/{id}/model-views`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2351
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2352
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2353
|
+
let baseOptions;
|
|
2354
|
+
if (configuration) {
|
|
2355
|
+
baseOptions = configuration.baseOptions;
|
|
2356
|
+
}
|
|
2357
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2358
|
+
const localVarHeaderParameter = {};
|
|
2359
|
+
const localVarQueryParameter = {};
|
|
2360
|
+
// authentication OAuth2 required
|
|
2361
|
+
// oauth required
|
|
2362
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2363
|
+
if (filterHasAnnotations !== undefined) {
|
|
2364
|
+
localVarQueryParameter['filter[hasAnnotations]'] = filterHasAnnotations;
|
|
2365
|
+
}
|
|
2366
|
+
if (pageCursor !== undefined) {
|
|
2367
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
2368
|
+
}
|
|
2369
|
+
if (pageSize !== undefined) {
|
|
2370
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
2371
|
+
}
|
|
2372
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2373
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
2374
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2375
|
+
return {
|
|
2376
|
+
url: toPathString(localVarUrlObj),
|
|
2377
|
+
options: localVarRequestOptions,
|
|
2378
|
+
};
|
|
2379
|
+
}),
|
|
2380
|
+
/**
|
|
2381
|
+
* Get a paged list of `model-views` for a scene item.
|
|
2382
|
+
* @param {string} id The `scene-item` ID.
|
|
2383
|
+
* @param {boolean} [filterHasAnnotations] Filter model views that contain or do not contain annotations.
|
|
2384
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2385
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2386
|
+
* @param {*} [options] Override http request option.
|
|
2387
|
+
* @throws {RequiredError}
|
|
2388
|
+
*/
|
|
2389
|
+
getSceneItemModelViews: (id, filterHasAnnotations, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2390
|
+
var _c;
|
|
2391
|
+
// verify required parameter 'id' is not null or undefined
|
|
2392
|
+
assertParamExists('getSceneItemModelViews', 'id', id);
|
|
2393
|
+
const localVarPath = `/scene-items/{id}/model-views`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2394
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2395
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2396
|
+
let baseOptions;
|
|
2397
|
+
if (configuration) {
|
|
2398
|
+
baseOptions = configuration.baseOptions;
|
|
2399
|
+
}
|
|
2400
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2401
|
+
const localVarHeaderParameter = {};
|
|
2402
|
+
const localVarQueryParameter = {};
|
|
2403
|
+
// authentication OAuth2 required
|
|
2404
|
+
// oauth required
|
|
2405
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2406
|
+
if (filterHasAnnotations !== undefined) {
|
|
2407
|
+
localVarQueryParameter['filter[hasAnnotations]'] = filterHasAnnotations;
|
|
2408
|
+
}
|
|
2409
|
+
if (pageCursor !== undefined) {
|
|
2410
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
2411
|
+
}
|
|
2412
|
+
if (pageSize !== undefined) {
|
|
2413
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
2414
|
+
}
|
|
2415
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2416
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
2417
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2418
|
+
return {
|
|
2419
|
+
url: toPathString(localVarUrlObj),
|
|
2420
|
+
options: localVarRequestOptions,
|
|
2421
|
+
};
|
|
2422
|
+
}),
|
|
2423
|
+
};
|
|
2424
|
+
};
|
|
2425
|
+
/**
|
|
2426
|
+
* ModelViewsApi - functional programming interface
|
|
2427
|
+
* @export
|
|
2428
|
+
*/
|
|
2429
|
+
export const ModelViewsApiFp = function (configuration) {
|
|
2430
|
+
const localVarAxiosParamCreator = ModelViewsApiAxiosParamCreator(configuration);
|
|
2431
|
+
return {
|
|
2432
|
+
/**
|
|
2433
|
+
* Get the details of a `model-view`.
|
|
2434
|
+
* @param {string} id The `model-view` ID.
|
|
2435
|
+
* @param {*} [options] Override http request option.
|
|
2436
|
+
* @throws {RequiredError}
|
|
2437
|
+
*/
|
|
2438
|
+
getModelView(id, options) {
|
|
2439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2440
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getModelView(id, options);
|
|
2441
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2442
|
+
});
|
|
2443
|
+
},
|
|
2444
|
+
/**
|
|
2445
|
+
* Get a paged list of `model-views` for a part revision.
|
|
2446
|
+
* @param {string} id The `part-revision` ID.
|
|
2447
|
+
* @param {boolean} [filterHasAnnotations] Filter model views that contain or do not contain annotations.
|
|
2448
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2449
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2450
|
+
* @param {*} [options] Override http request option.
|
|
2451
|
+
* @throws {RequiredError}
|
|
2452
|
+
*/
|
|
2453
|
+
getPartRevisionModelViews(id, filterHasAnnotations, pageCursor, pageSize, options) {
|
|
2454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2455
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPartRevisionModelViews(id, filterHasAnnotations, pageCursor, pageSize, options);
|
|
2456
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2457
|
+
});
|
|
2458
|
+
},
|
|
2459
|
+
/**
|
|
2460
|
+
* Get a paged list of `model-views` for a scene item.
|
|
2461
|
+
* @param {string} id The `scene-item` ID.
|
|
2462
|
+
* @param {boolean} [filterHasAnnotations] Filter model views that contain or do not contain annotations.
|
|
2463
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2464
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2465
|
+
* @param {*} [options] Override http request option.
|
|
2466
|
+
* @throws {RequiredError}
|
|
2467
|
+
*/
|
|
2468
|
+
getSceneItemModelViews(id, filterHasAnnotations, pageCursor, pageSize, options) {
|
|
2469
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2470
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItemModelViews(id, filterHasAnnotations, pageCursor, pageSize, options);
|
|
2471
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2472
|
+
});
|
|
2473
|
+
},
|
|
2474
|
+
};
|
|
2475
|
+
};
|
|
2476
|
+
/**
|
|
2477
|
+
* ModelViewsApi - factory interface
|
|
2478
|
+
* @export
|
|
2479
|
+
*/
|
|
2480
|
+
export const ModelViewsApiFactory = function (configuration, basePath, axios) {
|
|
2481
|
+
const localVarFp = ModelViewsApiFp(configuration);
|
|
2482
|
+
return {
|
|
2483
|
+
/**
|
|
2484
|
+
* Get the details of a `model-view`.
|
|
2485
|
+
* @param {string} id The `model-view` ID.
|
|
2486
|
+
* @param {*} [options] Override http request option.
|
|
2487
|
+
* @throws {RequiredError}
|
|
2488
|
+
*/
|
|
2489
|
+
getModelView(id, options) {
|
|
2490
|
+
return localVarFp
|
|
2491
|
+
.getModelView(id, options)
|
|
2492
|
+
.then((request) => request(axios, basePath));
|
|
2493
|
+
},
|
|
2494
|
+
/**
|
|
2495
|
+
* Get a paged list of `model-views` for a part revision.
|
|
2496
|
+
* @param {string} id The `part-revision` ID.
|
|
2497
|
+
* @param {boolean} [filterHasAnnotations] Filter model views that contain or do not contain annotations.
|
|
2498
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2499
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2500
|
+
* @param {*} [options] Override http request option.
|
|
2501
|
+
* @throws {RequiredError}
|
|
2502
|
+
*/
|
|
2503
|
+
getPartRevisionModelViews(id, filterHasAnnotations, pageCursor, pageSize, options) {
|
|
2504
|
+
return localVarFp
|
|
2505
|
+
.getPartRevisionModelViews(id, filterHasAnnotations, pageCursor, pageSize, options)
|
|
2506
|
+
.then((request) => request(axios, basePath));
|
|
2507
|
+
},
|
|
2508
|
+
/**
|
|
2509
|
+
* Get a paged list of `model-views` for a scene item.
|
|
2510
|
+
* @param {string} id The `scene-item` ID.
|
|
2511
|
+
* @param {boolean} [filterHasAnnotations] Filter model views that contain or do not contain annotations.
|
|
2512
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2513
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2514
|
+
* @param {*} [options] Override http request option.
|
|
2515
|
+
* @throws {RequiredError}
|
|
2516
|
+
*/
|
|
2517
|
+
getSceneItemModelViews(id, filterHasAnnotations, pageCursor, pageSize, options) {
|
|
2518
|
+
return localVarFp
|
|
2519
|
+
.getSceneItemModelViews(id, filterHasAnnotations, pageCursor, pageSize, options)
|
|
2520
|
+
.then((request) => request(axios, basePath));
|
|
2521
|
+
},
|
|
2522
|
+
};
|
|
2523
|
+
};
|
|
2524
|
+
/**
|
|
2525
|
+
* ModelViewsApi - object-oriented interface
|
|
2526
|
+
* @export
|
|
2527
|
+
* @class ModelViewsApi
|
|
2528
|
+
* @extends {BaseAPI}
|
|
2529
|
+
*/
|
|
2530
|
+
export class ModelViewsApi extends BaseAPI {
|
|
2531
|
+
/**
|
|
2532
|
+
* Get the details of a `model-view`.
|
|
2533
|
+
* @param {ModelViewsApiGetModelViewRequest} requestParameters Request parameters.
|
|
2534
|
+
* @param {*} [options] Override http request option.
|
|
2535
|
+
* @throws {RequiredError}
|
|
2536
|
+
* @memberof ModelViewsApi
|
|
2537
|
+
*/
|
|
2538
|
+
getModelView(requestParameters, options) {
|
|
2539
|
+
return ModelViewsApiFp(this.configuration)
|
|
2540
|
+
.getModelView(requestParameters.id, options)
|
|
2541
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2542
|
+
}
|
|
2543
|
+
/**
|
|
2544
|
+
* Get a paged list of `model-views` for a part revision.
|
|
2545
|
+
* @param {ModelViewsApiGetPartRevisionModelViewsRequest} requestParameters Request parameters.
|
|
2546
|
+
* @param {*} [options] Override http request option.
|
|
2547
|
+
* @throws {RequiredError}
|
|
2548
|
+
* @memberof ModelViewsApi
|
|
2549
|
+
*/
|
|
2550
|
+
getPartRevisionModelViews(requestParameters, options) {
|
|
2551
|
+
return ModelViewsApiFp(this.configuration)
|
|
2552
|
+
.getPartRevisionModelViews(requestParameters.id, requestParameters.filterHasAnnotations, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
2553
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2554
|
+
}
|
|
2555
|
+
/**
|
|
2556
|
+
* Get a paged list of `model-views` for a scene item.
|
|
2557
|
+
* @param {ModelViewsApiGetSceneItemModelViewsRequest} requestParameters Request parameters.
|
|
2558
|
+
* @param {*} [options] Override http request option.
|
|
2559
|
+
* @throws {RequiredError}
|
|
2560
|
+
* @memberof ModelViewsApi
|
|
2561
|
+
*/
|
|
2562
|
+
getSceneItemModelViews(requestParameters, options) {
|
|
2563
|
+
return ModelViewsApiFp(this.configuration)
|
|
2564
|
+
.getSceneItemModelViews(requestParameters.id, requestParameters.filterHasAnnotations, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
2565
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2227
2568
|
/**
|
|
2228
2569
|
* Oauth2Api - axios parameter creator
|
|
2229
2570
|
* @export
|
|
@@ -3755,6 +4096,119 @@ export class PartsApi extends BaseAPI {
|
|
|
3755
4096
|
.then((request) => request(this.axios, this.basePath));
|
|
3756
4097
|
}
|
|
3757
4098
|
}
|
|
4099
|
+
/**
|
|
4100
|
+
* PmiApi - axios parameter creator
|
|
4101
|
+
* @export
|
|
4102
|
+
*/
|
|
4103
|
+
export const PmiApiAxiosParamCreator = function (configuration) {
|
|
4104
|
+
return {
|
|
4105
|
+
/**
|
|
4106
|
+
* List `pmi-annotation`s.
|
|
4107
|
+
* @param {string} [filterModelViewId] Filter annotations belonging to a model view.
|
|
4108
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4109
|
+
* @param {number} [pageSize] The number of items to return.
|
|
4110
|
+
* @param {*} [options] Override http request option.
|
|
4111
|
+
* @throws {RequiredError}
|
|
4112
|
+
*/
|
|
4113
|
+
getPmiAnnotations: (filterModelViewId, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4114
|
+
var _a;
|
|
4115
|
+
const localVarPath = `/pmi-annotations`;
|
|
4116
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4117
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4118
|
+
let baseOptions;
|
|
4119
|
+
if (configuration) {
|
|
4120
|
+
baseOptions = configuration.baseOptions;
|
|
4121
|
+
}
|
|
4122
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4123
|
+
const localVarHeaderParameter = {};
|
|
4124
|
+
const localVarQueryParameter = {};
|
|
4125
|
+
// authentication OAuth2 required
|
|
4126
|
+
// oauth required
|
|
4127
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
4128
|
+
if (filterModelViewId !== undefined) {
|
|
4129
|
+
localVarQueryParameter['filter[modelViewId]'] = filterModelViewId;
|
|
4130
|
+
}
|
|
4131
|
+
if (pageCursor !== undefined) {
|
|
4132
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
4133
|
+
}
|
|
4134
|
+
if (pageSize !== undefined) {
|
|
4135
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
4136
|
+
}
|
|
4137
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4138
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
4139
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4140
|
+
return {
|
|
4141
|
+
url: toPathString(localVarUrlObj),
|
|
4142
|
+
options: localVarRequestOptions,
|
|
4143
|
+
};
|
|
4144
|
+
}),
|
|
4145
|
+
};
|
|
4146
|
+
};
|
|
4147
|
+
/**
|
|
4148
|
+
* PmiApi - functional programming interface
|
|
4149
|
+
* @export
|
|
4150
|
+
*/
|
|
4151
|
+
export const PmiApiFp = function (configuration) {
|
|
4152
|
+
const localVarAxiosParamCreator = PmiApiAxiosParamCreator(configuration);
|
|
4153
|
+
return {
|
|
4154
|
+
/**
|
|
4155
|
+
* List `pmi-annotation`s.
|
|
4156
|
+
* @param {string} [filterModelViewId] Filter annotations belonging to a model view.
|
|
4157
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4158
|
+
* @param {number} [pageSize] The number of items to return.
|
|
4159
|
+
* @param {*} [options] Override http request option.
|
|
4160
|
+
* @throws {RequiredError}
|
|
4161
|
+
*/
|
|
4162
|
+
getPmiAnnotations(filterModelViewId, pageCursor, pageSize, options) {
|
|
4163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4164
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPmiAnnotations(filterModelViewId, pageCursor, pageSize, options);
|
|
4165
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4166
|
+
});
|
|
4167
|
+
},
|
|
4168
|
+
};
|
|
4169
|
+
};
|
|
4170
|
+
/**
|
|
4171
|
+
* PmiApi - factory interface
|
|
4172
|
+
* @export
|
|
4173
|
+
*/
|
|
4174
|
+
export const PmiApiFactory = function (configuration, basePath, axios) {
|
|
4175
|
+
const localVarFp = PmiApiFp(configuration);
|
|
4176
|
+
return {
|
|
4177
|
+
/**
|
|
4178
|
+
* List `pmi-annotation`s.
|
|
4179
|
+
* @param {string} [filterModelViewId] Filter annotations belonging to a model view.
|
|
4180
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4181
|
+
* @param {number} [pageSize] The number of items to return.
|
|
4182
|
+
* @param {*} [options] Override http request option.
|
|
4183
|
+
* @throws {RequiredError}
|
|
4184
|
+
*/
|
|
4185
|
+
getPmiAnnotations(filterModelViewId, pageCursor, pageSize, options) {
|
|
4186
|
+
return localVarFp
|
|
4187
|
+
.getPmiAnnotations(filterModelViewId, pageCursor, pageSize, options)
|
|
4188
|
+
.then((request) => request(axios, basePath));
|
|
4189
|
+
},
|
|
4190
|
+
};
|
|
4191
|
+
};
|
|
4192
|
+
/**
|
|
4193
|
+
* PmiApi - object-oriented interface
|
|
4194
|
+
* @export
|
|
4195
|
+
* @class PmiApi
|
|
4196
|
+
* @extends {BaseAPI}
|
|
4197
|
+
*/
|
|
4198
|
+
export class PmiApi extends BaseAPI {
|
|
4199
|
+
/**
|
|
4200
|
+
* List `pmi-annotation`s.
|
|
4201
|
+
* @param {PmiApiGetPmiAnnotationsRequest} requestParameters Request parameters.
|
|
4202
|
+
* @param {*} [options] Override http request option.
|
|
4203
|
+
* @throws {RequiredError}
|
|
4204
|
+
* @memberof PmiApi
|
|
4205
|
+
*/
|
|
4206
|
+
getPmiAnnotations(requestParameters = {}, options) {
|
|
4207
|
+
return PmiApiFp(this.configuration)
|
|
4208
|
+
.getPmiAnnotations(requestParameters.filterModelViewId, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
4209
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4210
|
+
}
|
|
4211
|
+
}
|
|
3758
4212
|
/**
|
|
3759
4213
|
* SceneAlterationsApi - axios parameter creator
|
|
3760
4214
|
* @export
|
|
@@ -90,7 +90,7 @@ export function pollQueuedJob({ id, getQueuedJob, allow404 = false, limit, polli
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
export function isPollError(r) {
|
|
93
|
-
return isQueuedJobError(r) || isFailure(r);
|
|
93
|
+
return isQueuedJobError(r) || isQueuedJobRunning(r) || isFailure(r);
|
|
94
94
|
}
|
|
95
95
|
export function isBatch(obj) {
|
|
96
96
|
const b = obj;
|
|
@@ -117,12 +117,19 @@ function completeJob(r) {
|
|
|
117
117
|
function isQueuedJobError(obj) {
|
|
118
118
|
return isQueuedJob(obj) && isStatusError(obj);
|
|
119
119
|
}
|
|
120
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
|
121
|
+
function isQueuedJobRunning(obj) {
|
|
122
|
+
return isQueuedJob(obj) && isStatusRunning(obj);
|
|
123
|
+
}
|
|
120
124
|
function isStatusComplete(job) {
|
|
121
125
|
return job.data.attributes.status === 'complete';
|
|
122
126
|
}
|
|
123
127
|
function isStatusError(job) {
|
|
124
128
|
return job.data.attributes.status === 'error';
|
|
125
129
|
}
|
|
130
|
+
function isStatusRunning(job) {
|
|
131
|
+
return job.data.attributes.status === 'running';
|
|
132
|
+
}
|
|
126
133
|
function isClientError(res) {
|
|
127
134
|
var _a;
|
|
128
135
|
return isFailure(res) && ((_a = head([...res.errors.values()])) === null || _a === void 0 ? void 0 : _a.id) === ClientErrorId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.23.
|
|
1
|
+
export declare const version = "0.23.2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.23.
|
|
1
|
+
export const version = '0.23.2';
|
package/package.json
CHANGED