@vertexvis/api-client-node 0.21.3 → 0.22.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 +651 -73
- package/dist/cjs/api.js +300 -10
- package/dist/cjs/base.d.ts +1 -1
- package/dist/cjs/base.js +1 -1
- package/dist/cjs/client/helpers/index.d.ts +1 -1
- package/dist/cjs/client/helpers/index.js +1 -1
- package/dist/cjs/client/helpers/scenes.d.ts +6 -0
- package/dist/cjs/client/helpers/scenes.js +5 -4
- package/dist/cjs/client/index.d.ts +1 -1
- package/dist/cjs/client/index.js +1 -1
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/cjs/common.d.ts +1 -1
- package/dist/cjs/common.js +1 -1
- package/dist/cjs/configuration.d.ts +1 -1
- package/dist/cjs/configuration.js +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/api.d.ts +651 -73
- package/dist/esm/api.js +293 -7
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/client/helpers/index.d.ts +1 -1
- package/dist/esm/client/helpers/index.js +1 -1
- package/dist/esm/client/helpers/scenes.d.ts +6 -0
- package/dist/esm/client/helpers/scenes.js +2 -2
- package/dist/esm/client/index.d.ts +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +10 -10
package/dist/cjs/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vertex Platform API
|
|
6
|
-
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples
|
|
6
|
+
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples: - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
9
|
* Contact: support@vertexvis.com
|
|
@@ -25,9 +25,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.WebhookSubscriptionsApi = exports.WebhookSubscriptionsApiFactory = exports.WebhookSubscriptionsApiFp = exports.WebhookSubscriptionsApiAxiosParamCreator = exports.TranslationInspectionsApi = exports.TranslationInspectionsApiFactory = void 0;
|
|
28
|
+
exports.BatchesApiFactory = 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.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.SceneViewsApiAxiosParamCreator = exports.SceneViewStatesApi = exports.SceneViewStatesApiFactory = exports.SceneViewStatesApiFp = exports.SceneViewStatesApiAxiosParamCreator = exports.SceneItemsApi = exports.SceneItemsApiFactory = exports.SceneItemsApiFp = exports.SceneItemsApiAxiosParamCreator = exports.SceneItemOverridesApi = exports.SceneItemOverridesApiFactory = exports.SceneItemOverridesApiFp = exports.SceneItemOverridesApiAxiosParamCreator = exports.SceneAlterationsApi = exports.SceneAlterationsApiFactory = exports.SceneAlterationsApiFp = exports.SceneAlterationsApiAxiosParamCreator = 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.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 = 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 = void 0;
|
|
31
31
|
const axios_1 = __importDefault(require("axios"));
|
|
32
32
|
// Some imports not used depending on template conditions
|
|
33
33
|
// @ts-ignore
|
|
@@ -44,19 +44,25 @@ exports.CameraFitTypeEnum = {
|
|
|
44
44
|
FitVisibleSceneItems: 'fit-visible-scene-items',
|
|
45
45
|
Reset: 'reset',
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
47
|
+
exports.ChangeMaterialOpTypeEnum = {
|
|
48
48
|
ChangeMaterial: 'change-material',
|
|
49
49
|
};
|
|
50
|
-
exports.
|
|
50
|
+
exports.ChangeTransformOpTypeEnum = {
|
|
51
51
|
ChangeTransform: 'change-transform',
|
|
52
52
|
};
|
|
53
|
-
exports.
|
|
53
|
+
exports.ChangeVisibilityOpTypeEnum = {
|
|
54
54
|
ChangeVisibility: 'change-visibility',
|
|
55
55
|
};
|
|
56
|
-
exports.
|
|
56
|
+
exports.ClearMaterialOpTypeEnum = {
|
|
57
57
|
ClearMaterial: 'clear-material',
|
|
58
58
|
};
|
|
59
|
-
exports.
|
|
59
|
+
exports.ClearRenOpTypeEnum = {
|
|
60
|
+
ClearRendition: 'clear-rendition',
|
|
61
|
+
};
|
|
62
|
+
exports.ClearRepOpTypeEnum = {
|
|
63
|
+
ClearRepresentation: 'clear-representation',
|
|
64
|
+
};
|
|
65
|
+
exports.ClearTransformOpTypeEnum = {
|
|
60
66
|
ClearTransform: 'clear-transform',
|
|
61
67
|
};
|
|
62
68
|
exports.DeselectOperationTypeEnum = {
|
|
@@ -80,6 +86,9 @@ exports.PartDataRelationshipsPartRevisionsTypeEnum = {
|
|
|
80
86
|
exports.PartRelationshipDataTypeEnum = {
|
|
81
87
|
Part: 'part',
|
|
82
88
|
};
|
|
89
|
+
exports.PartRenditionRelationshipDataTypeEnum = {
|
|
90
|
+
PartRendition: 'part-rendition',
|
|
91
|
+
};
|
|
83
92
|
/**
|
|
84
93
|
* Resource object type.
|
|
85
94
|
* @export
|
|
@@ -114,7 +123,7 @@ exports.SceneViewRelationshipDataTypeEnum = {
|
|
|
114
123
|
exports.SceneViewStateRelationshipDataTypeEnum = {
|
|
115
124
|
SceneViewState: 'scene-view-state',
|
|
116
125
|
};
|
|
117
|
-
exports.
|
|
126
|
+
exports.SelectOpTypeEnum = {
|
|
118
127
|
Select: 'select',
|
|
119
128
|
};
|
|
120
129
|
exports.UpdateAccountRequestDataAttributesStatusEnum = {
|
|
@@ -129,6 +138,25 @@ exports.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = {
|
|
|
129
138
|
Active: 'active',
|
|
130
139
|
Paused: 'paused',
|
|
131
140
|
};
|
|
141
|
+
exports.ViewDefaultRenOpTypeEnum = {
|
|
142
|
+
ViewDefaultRendition: 'view-default-rendition',
|
|
143
|
+
};
|
|
144
|
+
exports.ViewRenByIdOpTypeEnum = {
|
|
145
|
+
ViewRenditionById: 'view-rendition-by-id',
|
|
146
|
+
};
|
|
147
|
+
exports.ViewRenBySuppliedIdOpTypeEnum = {
|
|
148
|
+
ViewRenditionBySuppliedId: 'view-rendition-by-supplied-id',
|
|
149
|
+
};
|
|
150
|
+
exports.ViewRepByIdOpTypeEnum = {
|
|
151
|
+
ViewRepresentationById: 'view-representation-by-id',
|
|
152
|
+
};
|
|
153
|
+
exports.ViewRepByPredefinedIdOpTypeEnum = {
|
|
154
|
+
ViewRepresentationByPredefinedId: 'view-representation-by-predefined-id',
|
|
155
|
+
};
|
|
156
|
+
exports.ViewRepByPredefinedIdOpIdEnum = {
|
|
157
|
+
Empty: 'empty',
|
|
158
|
+
EntirePart: 'entire-part',
|
|
159
|
+
};
|
|
132
160
|
exports.WebhookEventDataRelationshipsOwnerDataTypeEnum = {
|
|
133
161
|
Account: 'account',
|
|
134
162
|
};
|
|
@@ -2576,6 +2604,268 @@ class Oauth2Api extends base_1.BaseAPI {
|
|
|
2576
2604
|
}
|
|
2577
2605
|
}
|
|
2578
2606
|
exports.Oauth2Api = Oauth2Api;
|
|
2607
|
+
/**
|
|
2608
|
+
* PartRenditionsApi - axios parameter creator
|
|
2609
|
+
* @export
|
|
2610
|
+
*/
|
|
2611
|
+
const PartRenditionsApiAxiosParamCreator = function (configuration) {
|
|
2612
|
+
return {
|
|
2613
|
+
/**
|
|
2614
|
+
*
|
|
2615
|
+
* @param {string} id The `part-revision` ID.
|
|
2616
|
+
* @param {CreatePartRenditionRequest} createPartRenditionRequest
|
|
2617
|
+
* @param {*} [options] Override http request option.
|
|
2618
|
+
* @throws {RequiredError}
|
|
2619
|
+
*/
|
|
2620
|
+
createPartRendition: (id, createPartRenditionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2621
|
+
var _a;
|
|
2622
|
+
// verify required parameter 'id' is not null or undefined
|
|
2623
|
+
(0, common_1.assertParamExists)('createPartRendition', 'id', id);
|
|
2624
|
+
// verify required parameter 'createPartRenditionRequest' is not null or undefined
|
|
2625
|
+
(0, common_1.assertParamExists)('createPartRendition', 'createPartRenditionRequest', createPartRenditionRequest);
|
|
2626
|
+
const localVarPath = `/part-revisions/{id}/part-renditions`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2627
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2628
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2629
|
+
let baseOptions;
|
|
2630
|
+
if (configuration) {
|
|
2631
|
+
baseOptions = configuration.baseOptions;
|
|
2632
|
+
}
|
|
2633
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2634
|
+
const localVarHeaderParameter = {};
|
|
2635
|
+
const localVarQueryParameter = {};
|
|
2636
|
+
// authentication OAuth2 required
|
|
2637
|
+
// oauth required
|
|
2638
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2639
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
2640
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2641
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
2642
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2643
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPartRenditionRequest, localVarRequestOptions, configuration);
|
|
2644
|
+
return {
|
|
2645
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2646
|
+
options: localVarRequestOptions,
|
|
2647
|
+
};
|
|
2648
|
+
}),
|
|
2649
|
+
/**
|
|
2650
|
+
* Get a `part-rendition` by ID.
|
|
2651
|
+
* @param {string} id The `part-rendition` ID.
|
|
2652
|
+
* @param {*} [options] Override http request option.
|
|
2653
|
+
* @throws {RequiredError}
|
|
2654
|
+
*/
|
|
2655
|
+
getPartRendition: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2656
|
+
var _b;
|
|
2657
|
+
// verify required parameter 'id' is not null or undefined
|
|
2658
|
+
(0, common_1.assertParamExists)('getPartRendition', 'id', id);
|
|
2659
|
+
const localVarPath = `/part-renditions/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2660
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2661
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2662
|
+
let baseOptions;
|
|
2663
|
+
if (configuration) {
|
|
2664
|
+
baseOptions = configuration.baseOptions;
|
|
2665
|
+
}
|
|
2666
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2667
|
+
const localVarHeaderParameter = {};
|
|
2668
|
+
const localVarQueryParameter = {};
|
|
2669
|
+
// authentication OAuth2 required
|
|
2670
|
+
// oauth required
|
|
2671
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2672
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2673
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
2674
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2675
|
+
return {
|
|
2676
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2677
|
+
options: localVarRequestOptions,
|
|
2678
|
+
};
|
|
2679
|
+
}),
|
|
2680
|
+
/**
|
|
2681
|
+
* Get `part-renditions` with an optional filter.
|
|
2682
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2683
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2684
|
+
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
2685
|
+
* @param {string} [filterRevisionId] A revision ID to filter on.
|
|
2686
|
+
* @param {*} [options] Override http request option.
|
|
2687
|
+
* @throws {RequiredError}
|
|
2688
|
+
*/
|
|
2689
|
+
getPartRenditions: (pageCursor, pageSize, filterSuppliedId, filterRevisionId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2690
|
+
var _c;
|
|
2691
|
+
const localVarPath = `/part-renditions`;
|
|
2692
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2693
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2694
|
+
let baseOptions;
|
|
2695
|
+
if (configuration) {
|
|
2696
|
+
baseOptions = configuration.baseOptions;
|
|
2697
|
+
}
|
|
2698
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2699
|
+
const localVarHeaderParameter = {};
|
|
2700
|
+
const localVarQueryParameter = {};
|
|
2701
|
+
// authentication OAuth2 required
|
|
2702
|
+
// oauth required
|
|
2703
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2704
|
+
if (pageCursor !== undefined) {
|
|
2705
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
2706
|
+
}
|
|
2707
|
+
if (pageSize !== undefined) {
|
|
2708
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
2709
|
+
}
|
|
2710
|
+
if (filterSuppliedId !== undefined) {
|
|
2711
|
+
localVarQueryParameter['filter[suppliedId]'] = filterSuppliedId;
|
|
2712
|
+
}
|
|
2713
|
+
if (filterRevisionId !== undefined) {
|
|
2714
|
+
localVarQueryParameter['filter[revisionId]'] = filterRevisionId;
|
|
2715
|
+
}
|
|
2716
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2717
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
2718
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2719
|
+
return {
|
|
2720
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2721
|
+
options: localVarRequestOptions,
|
|
2722
|
+
};
|
|
2723
|
+
}),
|
|
2724
|
+
};
|
|
2725
|
+
};
|
|
2726
|
+
exports.PartRenditionsApiAxiosParamCreator = PartRenditionsApiAxiosParamCreator;
|
|
2727
|
+
/**
|
|
2728
|
+
* PartRenditionsApi - functional programming interface
|
|
2729
|
+
* @export
|
|
2730
|
+
*/
|
|
2731
|
+
const PartRenditionsApiFp = function (configuration) {
|
|
2732
|
+
const localVarAxiosParamCreator = (0, exports.PartRenditionsApiAxiosParamCreator)(configuration);
|
|
2733
|
+
return {
|
|
2734
|
+
/**
|
|
2735
|
+
*
|
|
2736
|
+
* @param {string} id The `part-revision` ID.
|
|
2737
|
+
* @param {CreatePartRenditionRequest} createPartRenditionRequest
|
|
2738
|
+
* @param {*} [options] Override http request option.
|
|
2739
|
+
* @throws {RequiredError}
|
|
2740
|
+
*/
|
|
2741
|
+
createPartRendition(id, createPartRenditionRequest, options) {
|
|
2742
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2743
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPartRendition(id, createPartRenditionRequest, options);
|
|
2744
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2745
|
+
});
|
|
2746
|
+
},
|
|
2747
|
+
/**
|
|
2748
|
+
* Get a `part-rendition` by ID.
|
|
2749
|
+
* @param {string} id The `part-rendition` ID.
|
|
2750
|
+
* @param {*} [options] Override http request option.
|
|
2751
|
+
* @throws {RequiredError}
|
|
2752
|
+
*/
|
|
2753
|
+
getPartRendition(id, options) {
|
|
2754
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2755
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPartRendition(id, options);
|
|
2756
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2757
|
+
});
|
|
2758
|
+
},
|
|
2759
|
+
/**
|
|
2760
|
+
* Get `part-renditions` with an optional filter.
|
|
2761
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2762
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2763
|
+
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
2764
|
+
* @param {string} [filterRevisionId] A revision ID to filter on.
|
|
2765
|
+
* @param {*} [options] Override http request option.
|
|
2766
|
+
* @throws {RequiredError}
|
|
2767
|
+
*/
|
|
2768
|
+
getPartRenditions(pageCursor, pageSize, filterSuppliedId, filterRevisionId, options) {
|
|
2769
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2770
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPartRenditions(pageCursor, pageSize, filterSuppliedId, filterRevisionId, options);
|
|
2771
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2772
|
+
});
|
|
2773
|
+
},
|
|
2774
|
+
};
|
|
2775
|
+
};
|
|
2776
|
+
exports.PartRenditionsApiFp = PartRenditionsApiFp;
|
|
2777
|
+
/**
|
|
2778
|
+
* PartRenditionsApi - factory interface
|
|
2779
|
+
* @export
|
|
2780
|
+
*/
|
|
2781
|
+
const PartRenditionsApiFactory = function (configuration, basePath, axios) {
|
|
2782
|
+
const localVarFp = (0, exports.PartRenditionsApiFp)(configuration);
|
|
2783
|
+
return {
|
|
2784
|
+
/**
|
|
2785
|
+
*
|
|
2786
|
+
* @param {string} id The `part-revision` ID.
|
|
2787
|
+
* @param {CreatePartRenditionRequest} createPartRenditionRequest
|
|
2788
|
+
* @param {*} [options] Override http request option.
|
|
2789
|
+
* @throws {RequiredError}
|
|
2790
|
+
*/
|
|
2791
|
+
createPartRendition(id, createPartRenditionRequest, options) {
|
|
2792
|
+
return localVarFp
|
|
2793
|
+
.createPartRendition(id, createPartRenditionRequest, options)
|
|
2794
|
+
.then((request) => request(axios, basePath));
|
|
2795
|
+
},
|
|
2796
|
+
/**
|
|
2797
|
+
* Get a `part-rendition` by ID.
|
|
2798
|
+
* @param {string} id The `part-rendition` ID.
|
|
2799
|
+
* @param {*} [options] Override http request option.
|
|
2800
|
+
* @throws {RequiredError}
|
|
2801
|
+
*/
|
|
2802
|
+
getPartRendition(id, options) {
|
|
2803
|
+
return localVarFp
|
|
2804
|
+
.getPartRendition(id, options)
|
|
2805
|
+
.then((request) => request(axios, basePath));
|
|
2806
|
+
},
|
|
2807
|
+
/**
|
|
2808
|
+
* Get `part-renditions` with an optional filter.
|
|
2809
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
2810
|
+
* @param {number} [pageSize] The number of items to return.
|
|
2811
|
+
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
2812
|
+
* @param {string} [filterRevisionId] A revision ID to filter on.
|
|
2813
|
+
* @param {*} [options] Override http request option.
|
|
2814
|
+
* @throws {RequiredError}
|
|
2815
|
+
*/
|
|
2816
|
+
getPartRenditions(pageCursor, pageSize, filterSuppliedId, filterRevisionId, options) {
|
|
2817
|
+
return localVarFp
|
|
2818
|
+
.getPartRenditions(pageCursor, pageSize, filterSuppliedId, filterRevisionId, options)
|
|
2819
|
+
.then((request) => request(axios, basePath));
|
|
2820
|
+
},
|
|
2821
|
+
};
|
|
2822
|
+
};
|
|
2823
|
+
exports.PartRenditionsApiFactory = PartRenditionsApiFactory;
|
|
2824
|
+
/**
|
|
2825
|
+
* PartRenditionsApi - object-oriented interface
|
|
2826
|
+
* @export
|
|
2827
|
+
* @class PartRenditionsApi
|
|
2828
|
+
* @extends {BaseAPI}
|
|
2829
|
+
*/
|
|
2830
|
+
class PartRenditionsApi extends base_1.BaseAPI {
|
|
2831
|
+
/**
|
|
2832
|
+
*
|
|
2833
|
+
* @param {PartRenditionsApiCreatePartRenditionRequest} requestParameters Request parameters.
|
|
2834
|
+
* @param {*} [options] Override http request option.
|
|
2835
|
+
* @throws {RequiredError}
|
|
2836
|
+
* @memberof PartRenditionsApi
|
|
2837
|
+
*/
|
|
2838
|
+
createPartRendition(requestParameters, options) {
|
|
2839
|
+
return (0, exports.PartRenditionsApiFp)(this.configuration)
|
|
2840
|
+
.createPartRendition(requestParameters.id, requestParameters.createPartRenditionRequest, options)
|
|
2841
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2842
|
+
}
|
|
2843
|
+
/**
|
|
2844
|
+
* Get a `part-rendition` by ID.
|
|
2845
|
+
* @param {PartRenditionsApiGetPartRenditionRequest} requestParameters Request parameters.
|
|
2846
|
+
* @param {*} [options] Override http request option.
|
|
2847
|
+
* @throws {RequiredError}
|
|
2848
|
+
* @memberof PartRenditionsApi
|
|
2849
|
+
*/
|
|
2850
|
+
getPartRendition(requestParameters, options) {
|
|
2851
|
+
return (0, exports.PartRenditionsApiFp)(this.configuration)
|
|
2852
|
+
.getPartRendition(requestParameters.id, options)
|
|
2853
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2854
|
+
}
|
|
2855
|
+
/**
|
|
2856
|
+
* Get `part-renditions` with an optional filter.
|
|
2857
|
+
* @param {PartRenditionsApiGetPartRenditionsRequest} requestParameters Request parameters.
|
|
2858
|
+
* @param {*} [options] Override http request option.
|
|
2859
|
+
* @throws {RequiredError}
|
|
2860
|
+
* @memberof PartRenditionsApi
|
|
2861
|
+
*/
|
|
2862
|
+
getPartRenditions(requestParameters = {}, options) {
|
|
2863
|
+
return (0, exports.PartRenditionsApiFp)(this.configuration)
|
|
2864
|
+
.getPartRenditions(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSuppliedId, requestParameters.filterRevisionId, options)
|
|
2865
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2866
|
+
}
|
|
2867
|
+
}
|
|
2868
|
+
exports.PartRenditionsApi = PartRenditionsApi;
|
|
2579
2869
|
/**
|
|
2580
2870
|
* PartRevisionsApi - axios parameter creator
|
|
2581
2871
|
* @export
|
package/dist/cjs/base.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vertex Platform API
|
|
3
|
-
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples
|
|
3
|
+
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples: - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
6
|
* Contact: support@vertexvis.com
|
package/dist/cjs/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vertex Platform API
|
|
6
|
-
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples
|
|
6
|
+
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples: - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
9
|
* Contact: support@vertexvis.com
|
|
@@ -13,7 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
__exportStar(require("./exports"), exports);
|
|
14
14
|
__exportStar(require("./files"), exports);
|
|
15
15
|
__exportStar(require("./parts"), exports);
|
|
16
|
-
__exportStar(require("./scenes"), exports);
|
|
17
16
|
__exportStar(require("./queued-jobs"), exports);
|
|
18
17
|
__exportStar(require("./scene-items"), exports);
|
|
19
18
|
__exportStar(require("./scene-views"), exports);
|
|
19
|
+
__exportStar(require("./scenes"), exports);
|
|
@@ -92,6 +92,12 @@ export interface QueuedSceneItem {
|
|
|
92
92
|
* Create a scene with scene items.
|
|
93
93
|
*/
|
|
94
94
|
export declare function createSceneAndSceneItems({ client, createSceneItemReqs, createSceneReq, failFast, onMsg, onProgress, parallelism, polling, returnQueued, verbose, }: CreateSceneAndSceneItemsReq): Promise<CreateSceneAndSceneItemsRes>;
|
|
95
|
+
/**
|
|
96
|
+
* This async function takes a long list of create scene item data and handles
|
|
97
|
+
* batch based scene item creation. Batch operation results and errors are
|
|
98
|
+
* returned to the caller.
|
|
99
|
+
*/
|
|
100
|
+
export declare const createSceneItemBatch: ({ client, createSceneItemReqs: createItemReqs, failFast, onProgress, limit, sceneId, polling, }: CreateSceneItemBatchReq) => Promise<CreateSceneItemBatchRes>;
|
|
95
101
|
/**
|
|
96
102
|
* Create scene items within a scene.
|
|
97
103
|
*/
|
|
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.updateScene = exports.renderScene = exports.pollSceneReady = exports.deleteAllScenes = exports.createSceneItems = exports.createSceneAndSceneItems = void 0;
|
|
15
|
+
exports.updateScene = exports.renderScene = exports.pollSceneReady = exports.deleteAllScenes = exports.createSceneItems = exports.createSceneItemBatch = exports.createSceneAndSceneItems = void 0;
|
|
16
16
|
const p_limit_1 = __importDefault(require("p-limit"));
|
|
17
17
|
const process_1 = require("process");
|
|
18
18
|
const index_1 = require("../../index");
|
|
@@ -101,7 +101,7 @@ function createSceneAndSceneItems({ client, createSceneItemReqs, createSceneReq,
|
|
|
101
101
|
// until all scene items have been created at each depth.
|
|
102
102
|
const { batchOps: queuedBatchOps, batchErrors: queuedBatchErrors, itemErrors: batchItemErrors, } =
|
|
103
103
|
// eslint-disable-next-line no-await-in-loop
|
|
104
|
-
yield createSceneItemBatch({
|
|
104
|
+
yield (0, exports.createSceneItemBatch)({
|
|
105
105
|
client,
|
|
106
106
|
createSceneItemReqs: createItemReqs,
|
|
107
107
|
failFast,
|
|
@@ -139,7 +139,7 @@ function createSceneAndSceneItems({ client, createSceneItemReqs, createSceneReq,
|
|
|
139
139
|
// wait for placeholders to be created
|
|
140
140
|
const { itemResults: placeholderItemResults } =
|
|
141
141
|
// eslint-disable-next-line no-await-in-loop
|
|
142
|
-
yield createSceneItemBatch({
|
|
142
|
+
yield (0, exports.createSceneItemBatch)({
|
|
143
143
|
client,
|
|
144
144
|
createSceneItemReqs: retries,
|
|
145
145
|
failFast,
|
|
@@ -286,12 +286,13 @@ const createSceneItemBatch = ({ client, createSceneItemReqs: createItemReqs, fai
|
|
|
286
286
|
});
|
|
287
287
|
return { batchOps, batchErrors, itemErrors, itemResults };
|
|
288
288
|
});
|
|
289
|
+
exports.createSceneItemBatch = createSceneItemBatch;
|
|
289
290
|
/**
|
|
290
291
|
* Create scene items within a scene.
|
|
291
292
|
*/
|
|
292
293
|
function createSceneItems({ client, createSceneItemReqs, failFast, limit, sceneId, }) {
|
|
293
294
|
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
-
const batchSize =
|
|
295
|
+
const batchSize = 200;
|
|
295
296
|
const opChunks = (0, utils_1.arrayChunked)(createSceneItemReqs.map((req) => ({
|
|
296
297
|
data: req.data,
|
|
297
298
|
op: index_1.BatchOperationOpEnum.Add,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VertexClient } from './index';
|
|
2
|
+
export * from './helpers/index';
|
|
2
3
|
export * from './utils';
|
|
3
4
|
export * from './vertex-client';
|
|
4
|
-
export * from './helpers/index';
|
|
5
5
|
/** Common helper arguments. */
|
|
6
6
|
export interface BaseReq {
|
|
7
7
|
/** An instance of {@link VertexClient}. */
|
package/dist/cjs/client/index.js
CHANGED
|
@@ -10,6 +10,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./helpers/index"), exports);
|
|
13
14
|
__exportStar(require("./utils"), exports);
|
|
14
15
|
__exportStar(require("./vertex-client"), exports);
|
|
15
|
-
__exportStar(require("./helpers/index"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.
|
|
1
|
+
export declare const version = "0.22.1";
|
package/dist/cjs/common.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vertex Platform API
|
|
3
|
-
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples
|
|
3
|
+
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples: - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
6
|
* Contact: support@vertexvis.com
|
package/dist/cjs/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vertex Platform API
|
|
6
|
-
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples
|
|
6
|
+
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples: - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
9
|
* Contact: support@vertexvis.com
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Vertex Platform API
|
|
3
|
-
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples
|
|
3
|
+
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples: - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
6
|
* Contact: support@vertexvis.com
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Vertex Platform API
|
|
6
|
-
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples
|
|
6
|
+
* The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples: - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
9
|
* Contact: support@vertexvis.com
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -12,5 +12,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./api"), exports);
|
|
14
14
|
__exportStar(require("./base"), exports);
|
|
15
|
-
__exportStar(require("./configuration"), exports);
|
|
16
15
|
__exportStar(require("./client"), exports);
|
|
16
|
+
__exportStar(require("./configuration"), exports);
|