@vertexvis/api-client-node 0.22.0 → 0.22.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 +399 -119
- package/dist/cjs/api.js +297 -121
- package/dist/cjs/base.d.ts +1 -1
- package/dist/cjs/base.js +1 -1
- package/dist/cjs/client/helpers/queued-jobs.d.ts +1 -1
- package/dist/cjs/client/helpers/queued-jobs.js +7 -4
- 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 +5 -0
- 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/esm/api.d.ts +399 -119
- package/dist/esm/api.js +290 -114
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/client/helpers/queued-jobs.d.ts +1 -1
- package/dist/esm/client/helpers/queued-jobs.js +7 -4
- 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 +5 -0
- 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/package.json +2 -2
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 = exports.TranslationInspectionsApiFp = exports.TranslationInspectionsApiAxiosParamCreator = exports.StreamKeysApi = exports.StreamKeysApiFactory = exports.StreamKeysApiFp = 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 = {
|
|
@@ -117,7 +123,7 @@ exports.SceneViewRelationshipDataTypeEnum = {
|
|
|
117
123
|
exports.SceneViewStateRelationshipDataTypeEnum = {
|
|
118
124
|
SceneViewState: 'scene-view-state',
|
|
119
125
|
};
|
|
120
|
-
exports.
|
|
126
|
+
exports.SelectOpTypeEnum = {
|
|
121
127
|
Select: 'select',
|
|
122
128
|
};
|
|
123
129
|
exports.UpdateAccountRequestDataAttributesStatusEnum = {
|
|
@@ -132,6 +138,25 @@ exports.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = {
|
|
|
132
138
|
Active: 'active',
|
|
133
139
|
Paused: 'paused',
|
|
134
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
|
+
};
|
|
135
160
|
exports.WebhookEventDataRelationshipsOwnerDataTypeEnum = {
|
|
136
161
|
Account: 'account',
|
|
137
162
|
};
|
|
@@ -1145,117 +1170,6 @@ class BatchesApi extends base_1.BaseAPI {
|
|
|
1145
1170
|
}
|
|
1146
1171
|
}
|
|
1147
1172
|
exports.BatchesApi = BatchesApi;
|
|
1148
|
-
/**
|
|
1149
|
-
* DefaultApi - axios parameter creator
|
|
1150
|
-
* @export
|
|
1151
|
-
*/
|
|
1152
|
-
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1153
|
-
return {
|
|
1154
|
-
/**
|
|
1155
|
-
*
|
|
1156
|
-
* @param {string} id The `part-revision` ID.
|
|
1157
|
-
* @param {CreatePartRenditionRequest} createPartRenditionRequest
|
|
1158
|
-
* @param {*} [options] Override http request option.
|
|
1159
|
-
* @throws {RequiredError}
|
|
1160
|
-
*/
|
|
1161
|
-
createPartRendition: (id, createPartRenditionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1162
|
-
var _a;
|
|
1163
|
-
// verify required parameter 'id' is not null or undefined
|
|
1164
|
-
(0, common_1.assertParamExists)('createPartRendition', 'id', id);
|
|
1165
|
-
// verify required parameter 'createPartRenditionRequest' is not null or undefined
|
|
1166
|
-
(0, common_1.assertParamExists)('createPartRendition', 'createPartRenditionRequest', createPartRenditionRequest);
|
|
1167
|
-
const localVarPath = `/part-revisions/{id}/part-renditions`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1168
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1169
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1170
|
-
let baseOptions;
|
|
1171
|
-
if (configuration) {
|
|
1172
|
-
baseOptions = configuration.baseOptions;
|
|
1173
|
-
}
|
|
1174
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1175
|
-
const localVarHeaderParameter = {};
|
|
1176
|
-
const localVarQueryParameter = {};
|
|
1177
|
-
// authentication OAuth2 required
|
|
1178
|
-
// oauth required
|
|
1179
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1180
|
-
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1181
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1182
|
-
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
1183
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1184
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPartRenditionRequest, localVarRequestOptions, configuration);
|
|
1185
|
-
return {
|
|
1186
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1187
|
-
options: localVarRequestOptions,
|
|
1188
|
-
};
|
|
1189
|
-
}),
|
|
1190
|
-
};
|
|
1191
|
-
};
|
|
1192
|
-
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
1193
|
-
/**
|
|
1194
|
-
* DefaultApi - functional programming interface
|
|
1195
|
-
* @export
|
|
1196
|
-
*/
|
|
1197
|
-
const DefaultApiFp = function (configuration) {
|
|
1198
|
-
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
1199
|
-
return {
|
|
1200
|
-
/**
|
|
1201
|
-
*
|
|
1202
|
-
* @param {string} id The `part-revision` ID.
|
|
1203
|
-
* @param {CreatePartRenditionRequest} createPartRenditionRequest
|
|
1204
|
-
* @param {*} [options] Override http request option.
|
|
1205
|
-
* @throws {RequiredError}
|
|
1206
|
-
*/
|
|
1207
|
-
createPartRendition(id, createPartRenditionRequest, options) {
|
|
1208
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1209
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPartRendition(id, createPartRenditionRequest, options);
|
|
1210
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1211
|
-
});
|
|
1212
|
-
},
|
|
1213
|
-
};
|
|
1214
|
-
};
|
|
1215
|
-
exports.DefaultApiFp = DefaultApiFp;
|
|
1216
|
-
/**
|
|
1217
|
-
* DefaultApi - factory interface
|
|
1218
|
-
* @export
|
|
1219
|
-
*/
|
|
1220
|
-
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1221
|
-
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
1222
|
-
return {
|
|
1223
|
-
/**
|
|
1224
|
-
*
|
|
1225
|
-
* @param {string} id The `part-revision` ID.
|
|
1226
|
-
* @param {CreatePartRenditionRequest} createPartRenditionRequest
|
|
1227
|
-
* @param {*} [options] Override http request option.
|
|
1228
|
-
* @throws {RequiredError}
|
|
1229
|
-
*/
|
|
1230
|
-
createPartRendition(id, createPartRenditionRequest, options) {
|
|
1231
|
-
return localVarFp
|
|
1232
|
-
.createPartRendition(id, createPartRenditionRequest, options)
|
|
1233
|
-
.then((request) => request(axios, basePath));
|
|
1234
|
-
},
|
|
1235
|
-
};
|
|
1236
|
-
};
|
|
1237
|
-
exports.DefaultApiFactory = DefaultApiFactory;
|
|
1238
|
-
/**
|
|
1239
|
-
* DefaultApi - object-oriented interface
|
|
1240
|
-
* @export
|
|
1241
|
-
* @class DefaultApi
|
|
1242
|
-
* @extends {BaseAPI}
|
|
1243
|
-
*/
|
|
1244
|
-
class DefaultApi extends base_1.BaseAPI {
|
|
1245
|
-
/**
|
|
1246
|
-
*
|
|
1247
|
-
* @param {DefaultApiCreatePartRenditionRequest} requestParameters Request parameters.
|
|
1248
|
-
* @param {*} [options] Override http request option.
|
|
1249
|
-
* @throws {RequiredError}
|
|
1250
|
-
* @memberof DefaultApi
|
|
1251
|
-
*/
|
|
1252
|
-
createPartRendition(requestParameters, options) {
|
|
1253
|
-
return (0, exports.DefaultApiFp)(this.configuration)
|
|
1254
|
-
.createPartRendition(requestParameters.id, requestParameters.createPartRenditionRequest, options)
|
|
1255
|
-
.then((request) => request(this.axios, this.basePath));
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
exports.DefaultApi = DefaultApi;
|
|
1259
1173
|
/**
|
|
1260
1174
|
* ExportsApi - axios parameter creator
|
|
1261
1175
|
* @export
|
|
@@ -2690,6 +2604,268 @@ class Oauth2Api extends base_1.BaseAPI {
|
|
|
2690
2604
|
}
|
|
2691
2605
|
}
|
|
2692
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;
|
|
2693
2869
|
/**
|
|
2694
2870
|
* PartRevisionsApi - axios parameter creator
|
|
2695
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
|
|
@@ -32,7 +32,7 @@ interface PollJobRes<T> {
|
|
|
32
32
|
* @param req - {@link PollQueuedJobReq}.
|
|
33
33
|
* @returns {@link PollQueuedJobRes}.
|
|
34
34
|
*/
|
|
35
|
-
export declare function pollQueuedJob<T>({ id, getQueuedJob, allow404, limit, polling: { intervalMs, maxAttempts }, }: PollQueuedJobReq): Promise<PollQueuedJobRes<T>>;
|
|
35
|
+
export declare function pollQueuedJob<T>({ id, getQueuedJob, allow404, limit, polling: { intervalMs, maxAttempts, backoff }, }: PollQueuedJobReq): Promise<PollQueuedJobRes<T>>;
|
|
36
36
|
export declare function isPollError<T>(r: PollRes<T>): r is QueuedJob | Failure;
|
|
37
37
|
export declare function isBatch(obj: PollRes<Batch>): obj is Batch;
|
|
38
38
|
export declare function throwOnError<T>(r: PollQueuedJobRes<T>): never;
|
|
@@ -29,7 +29,8 @@ const Debug = false;
|
|
|
29
29
|
* @param req - {@link PollQueuedJobReq}.
|
|
30
30
|
* @returns {@link PollQueuedJobRes}.
|
|
31
31
|
*/
|
|
32
|
-
function pollQueuedJob({ id, getQueuedJob, allow404 = false, limit, polling: { intervalMs, maxAttempts }, }) {
|
|
32
|
+
function pollQueuedJob({ id, getQueuedJob, allow404 = false, limit, polling: { intervalMs, maxAttempts, backoff }, }) {
|
|
33
|
+
var _a, _b;
|
|
33
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
35
|
function poll(attempt) {
|
|
35
36
|
var _a, _b;
|
|
@@ -72,7 +73,8 @@ function pollQueuedJob({ id, getQueuedJob, allow404 = false, limit, polling: { i
|
|
|
72
73
|
});
|
|
73
74
|
}
|
|
74
75
|
let attempts = 1;
|
|
75
|
-
let
|
|
76
|
+
let backoffMs = (_a = backoff === null || backoff === void 0 ? void 0 : backoff[attempts]) !== null && _a !== void 0 ? _a : 0;
|
|
77
|
+
const pollRes = yield poll(attempts);
|
|
76
78
|
/* eslint-disable no-await-in-loop */
|
|
77
79
|
while (!completeJob(pollRes.res) &&
|
|
78
80
|
(allowed404(allow404, pollRes.status) ||
|
|
@@ -80,8 +82,9 @@ function pollQueuedJob({ id, getQueuedJob, allow404 = false, limit, polling: { i
|
|
|
80
82
|
isClientError(pollRes.res)) &&
|
|
81
83
|
attempts <= maxAttempts) {
|
|
82
84
|
attempts += 1;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
backoffMs = (_b = backoff === null || backoff === void 0 ? void 0 : backoff[attempts]) !== null && _b !== void 0 ? _b : backoffMs;
|
|
86
|
+
yield (0, utils_1.delay)(intervalMs + backoffMs);
|
|
87
|
+
yield poll(attempts);
|
|
85
88
|
}
|
|
86
89
|
/* eslint-enable no-await-in-loop */
|
|
87
90
|
// At this point, the result is one of the following,
|
|
@@ -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,
|
|
@@ -26,6 +26,11 @@ export interface Polling {
|
|
|
26
26
|
readonly intervalMs: number;
|
|
27
27
|
/** Maximum number of polling attempts. */
|
|
28
28
|
readonly maxAttempts: number;
|
|
29
|
+
/**
|
|
30
|
+
* A map of polling attempt numbers to a delay in milliseconds.
|
|
31
|
+
* Once the attempts are reach, the backoff will be added to `intervalMs`.
|
|
32
|
+
*/
|
|
33
|
+
readonly backoff?: Record<number, number | undefined>;
|
|
29
34
|
}
|
|
30
35
|
/**
|
|
31
36
|
* Render image arguments. Render functions return Streams. Here's an
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.22.
|
|
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
|