@vertexvis/api-client-node 0.23.1 → 0.23.4
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 +654 -1
- package/dist/cjs/api.js +335 -3
- package/dist/cjs/client/helpers/parts.d.ts +3 -1
- package/dist/cjs/client/helpers/parts.js +13 -4
- package/dist/cjs/client/helpers/queued-jobs.js +8 -1
- package/dist/cjs/client/utils.d.ts +2 -1
- package/dist/cjs/client/utils.js +4 -2
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/esm/api.d.ts +654 -1
- package/dist/esm/api.js +323 -0
- package/dist/esm/client/helpers/parts.d.ts +3 -1
- package/dist/esm/client/helpers/parts.js +13 -4
- package/dist/esm/client/helpers/queued-jobs.js +8 -1
- package/dist/esm/client/utils.d.ts +2 -1
- package/dist/esm/client/utils.js +4 -2
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/package.json +1 -1
package/dist/cjs/api.js
CHANGED
|
@@ -25,9 +25,10 @@ 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.
|
|
28
|
+
exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.WebhookSubscriptionDataAttributesStatusEnum = exports.WebhookEventDataRelationshipsOwnerDataTypeEnum = exports.ViewRepByPredefinedIdOpIdEnum = exports.ViewRepByPredefinedIdOpTypeEnum = exports.ViewRepByIdOpTypeEnum = exports.ViewRenBySuppliedIdOpTypeEnum = exports.ViewRenByIdOpTypeEnum = exports.ViewDefaultRenOpTypeEnum = exports.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = exports.UpdateSceneRequestDataAttributesStateEnum = exports.UpdateItemToDefaultRenditionOperationTypeEnum = exports.UpdateAccountRequestDataAttributesStatusEnum = exports.SelectOpTypeEnum = exports.SceneViewStateRelationshipDataTypeEnum = exports.SceneViewRelationshipDataTypeEnum = exports.SceneRelationshipDataTypeEnum = exports.SceneItemRelationshipDataTypeEnum = exports.QueryByIdDataAttributesTypeEnum = exports.QueryByIdDataTypeEnum = exports.QueryByCollectionDataAttributesTypeEnum = exports.QueryByCollectionDataTypeEnum = exports.QueryAll = exports.PropertyStringTypeTypeEnum = exports.PropertySetRelationshipDataTypeEnum = exports.PropertyLongTypeTypeEnum = exports.PropertyKeyTypeCategoryEnum = exports.PropertyDoubleTypeTypeEnum = exports.PropertyDateTypeTypeEnum = exports.PartRenditionRelationshipDataTypeEnum = exports.PartRelationshipDataTypeEnum = exports.PartInstanceRelationshipDataTypeEnum = 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.PmiApiAxiosParamCreator = exports.PartsApi = exports.PartsApiFactory = exports.PartsApiFp = exports.PartsApiAxiosParamCreator = exports.PartRevisionsApi = exports.PartRevisionsApiFactory = exports.PartRevisionsApiFp = exports.PartRevisionsApiAxiosParamCreator = exports.PartRevisionInstancesApi = exports.PartRevisionInstancesApiFactory = exports.PartRevisionInstancesApiFp = exports.PartRevisionInstancesApiAxiosParamCreator = exports.PartRenditionsApi = exports.PartRenditionsApiFactory = exports.PartRenditionsApiFp = exports.PartRenditionsApiAxiosParamCreator = exports.Oauth2Api = exports.Oauth2ApiFactory = exports.Oauth2ApiFp = exports.Oauth2ApiAxiosParamCreator = exports.ModelViewsApi = exports.ModelViewsApiFactory = exports.ModelViewsApiFp = exports.ModelViewsApiAxiosParamCreator = exports.HitsApi = exports.HitsApiFactory = exports.HitsApiFp = exports.HitsApiAxiosParamCreator = exports.GeometrySetsApi = exports.GeometrySetsApiFactory = exports.GeometrySetsApiFp = exports.GeometrySetsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.ExportsApi = exports.ExportsApiFactory = exports.ExportsApiFp = exports.ExportsApiAxiosParamCreator = exports.BatchesApi = exports.BatchesApiFactory = exports.BatchesApiFp = exports.BatchesApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AccountsApi = void 0;
|
|
30
|
+
exports.WebhookSubscriptionsApiFactory = exports.WebhookSubscriptionsApiFp = exports.WebhookSubscriptionsApiAxiosParamCreator = exports.TranslationInspectionsApi = exports.TranslationInspectionsApiFactory = exports.TranslationInspectionsApiFp = exports.TranslationInspectionsApiAxiosParamCreator = exports.StreamKeysApi = exports.StreamKeysApiFactory = exports.StreamKeysApiFp = exports.StreamKeysApiAxiosParamCreator = exports.ScenesApi = exports.ScenesApiFactory = exports.ScenesApiFp = exports.ScenesApiAxiosParamCreator = exports.SceneViewsApi = exports.SceneViewsApiFactory = exports.SceneViewsApiFp = exports.SceneViewsApiAxiosParamCreator = exports.SceneViewStatesApi = exports.SceneViewStatesApiFactory = exports.SceneViewStatesApiFp = exports.SceneViewStatesApiAxiosParamCreator = exports.SceneSynchronizationsApi = exports.SceneSynchronizationsApiFactory = exports.SceneSynchronizationsApiFp = exports.SceneSynchronizationsApiAxiosParamCreator = exports.SceneItemsApi = exports.SceneItemsApiFactory = exports.SceneItemsApiFp = exports.SceneItemsApiAxiosParamCreator = exports.SceneItemOverridesApi = exports.SceneItemOverridesApiFactory = exports.SceneItemOverridesApiFp = exports.SceneItemOverridesApiAxiosParamCreator = exports.SceneAnnotationsApi = exports.SceneAnnotationsApiFactory = exports.SceneAnnotationsApiFp = exports.SceneAnnotationsApiAxiosParamCreator = exports.SceneAlterationsApi = exports.SceneAlterationsApiFactory = exports.SceneAlterationsApiFp = exports.SceneAlterationsApiAxiosParamCreator = exports.PropertyEntriesApi = exports.PropertyEntriesApiFactory = exports.PropertyEntriesApiFp = exports.PropertyEntriesApiAxiosParamCreator = exports.PmiApi = exports.PmiApiFactory = exports.PmiApiFp = void 0;
|
|
31
|
+
exports.WebhookSubscriptionsApi = void 0;
|
|
31
32
|
const axios_1 = __importDefault(require("axios"));
|
|
32
33
|
// Some imports not used depending on template conditions
|
|
33
34
|
// @ts-ignore
|
|
@@ -83,12 +84,35 @@ exports.GeometrySetRelationshipDataTypeEnum = {
|
|
|
83
84
|
exports.PartDataRelationshipsPartRevisionsTypeEnum = {
|
|
84
85
|
PartRevision: 'part-revision',
|
|
85
86
|
};
|
|
87
|
+
exports.PartInstanceRelationshipDataTypeEnum = {
|
|
88
|
+
PartInstance: 'part-instance',
|
|
89
|
+
};
|
|
86
90
|
exports.PartRelationshipDataTypeEnum = {
|
|
87
91
|
Part: 'part',
|
|
88
92
|
};
|
|
89
93
|
exports.PartRenditionRelationshipDataTypeEnum = {
|
|
90
94
|
PartRendition: 'part-rendition',
|
|
91
95
|
};
|
|
96
|
+
exports.PropertyDateTypeTypeEnum = {
|
|
97
|
+
Date: 'date',
|
|
98
|
+
};
|
|
99
|
+
exports.PropertyDoubleTypeTypeEnum = {
|
|
100
|
+
Double: 'double',
|
|
101
|
+
};
|
|
102
|
+
exports.PropertyKeyTypeCategoryEnum = {
|
|
103
|
+
Vendor: 'vendor',
|
|
104
|
+
Vertex: 'vertex',
|
|
105
|
+
User: 'user',
|
|
106
|
+
};
|
|
107
|
+
exports.PropertyLongTypeTypeEnum = {
|
|
108
|
+
Long: 'long',
|
|
109
|
+
};
|
|
110
|
+
exports.PropertySetRelationshipDataTypeEnum = {
|
|
111
|
+
PropertySet: 'property-set',
|
|
112
|
+
};
|
|
113
|
+
exports.PropertyStringTypeTypeEnum = {
|
|
114
|
+
String: 'string',
|
|
115
|
+
};
|
|
92
116
|
/**
|
|
93
117
|
* Resource object type.
|
|
94
118
|
* @export
|
|
@@ -3220,6 +3244,123 @@ class PartRenditionsApi extends base_1.BaseAPI {
|
|
|
3220
3244
|
}
|
|
3221
3245
|
}
|
|
3222
3246
|
exports.PartRenditionsApi = PartRenditionsApi;
|
|
3247
|
+
/**
|
|
3248
|
+
* PartRevisionInstancesApi - axios parameter creator
|
|
3249
|
+
* @export
|
|
3250
|
+
*/
|
|
3251
|
+
const PartRevisionInstancesApiAxiosParamCreator = function (configuration) {
|
|
3252
|
+
return {
|
|
3253
|
+
/**
|
|
3254
|
+
* Gets a page of \'part-revision\' instances. An instance is an occurence of a revision that is a child of a parent revision. The returned data will have the ordinal used for ordering and the transform matrix for each occurrence.
|
|
3255
|
+
* @param {string} [filterParent] Parent ID to filter on.
|
|
3256
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
3257
|
+
* @param {number} [pageSize] The number of items to return.
|
|
3258
|
+
* @param {*} [options] Override http request option.
|
|
3259
|
+
* @throws {RequiredError}
|
|
3260
|
+
*/
|
|
3261
|
+
getPartRevisionInstanceList: (filterParent, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3262
|
+
var _a;
|
|
3263
|
+
const localVarPath = `/part-revision-instances`;
|
|
3264
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3265
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3266
|
+
let baseOptions;
|
|
3267
|
+
if (configuration) {
|
|
3268
|
+
baseOptions = configuration.baseOptions;
|
|
3269
|
+
}
|
|
3270
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3271
|
+
const localVarHeaderParameter = {};
|
|
3272
|
+
const localVarQueryParameter = {};
|
|
3273
|
+
// authentication OAuth2 required
|
|
3274
|
+
// oauth required
|
|
3275
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
3276
|
+
if (filterParent !== undefined) {
|
|
3277
|
+
localVarQueryParameter['filter[parent]'] = filterParent;
|
|
3278
|
+
}
|
|
3279
|
+
if (pageCursor !== undefined) {
|
|
3280
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
3281
|
+
}
|
|
3282
|
+
if (pageSize !== undefined) {
|
|
3283
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
3284
|
+
}
|
|
3285
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3286
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
3287
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3288
|
+
return {
|
|
3289
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3290
|
+
options: localVarRequestOptions,
|
|
3291
|
+
};
|
|
3292
|
+
}),
|
|
3293
|
+
};
|
|
3294
|
+
};
|
|
3295
|
+
exports.PartRevisionInstancesApiAxiosParamCreator = PartRevisionInstancesApiAxiosParamCreator;
|
|
3296
|
+
/**
|
|
3297
|
+
* PartRevisionInstancesApi - functional programming interface
|
|
3298
|
+
* @export
|
|
3299
|
+
*/
|
|
3300
|
+
const PartRevisionInstancesApiFp = function (configuration) {
|
|
3301
|
+
const localVarAxiosParamCreator = (0, exports.PartRevisionInstancesApiAxiosParamCreator)(configuration);
|
|
3302
|
+
return {
|
|
3303
|
+
/**
|
|
3304
|
+
* Gets a page of \'part-revision\' instances. An instance is an occurence of a revision that is a child of a parent revision. The returned data will have the ordinal used for ordering and the transform matrix for each occurrence.
|
|
3305
|
+
* @param {string} [filterParent] Parent ID to filter on.
|
|
3306
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
3307
|
+
* @param {number} [pageSize] The number of items to return.
|
|
3308
|
+
* @param {*} [options] Override http request option.
|
|
3309
|
+
* @throws {RequiredError}
|
|
3310
|
+
*/
|
|
3311
|
+
getPartRevisionInstanceList(filterParent, pageCursor, pageSize, options) {
|
|
3312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3313
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPartRevisionInstanceList(filterParent, pageCursor, pageSize, options);
|
|
3314
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3315
|
+
});
|
|
3316
|
+
},
|
|
3317
|
+
};
|
|
3318
|
+
};
|
|
3319
|
+
exports.PartRevisionInstancesApiFp = PartRevisionInstancesApiFp;
|
|
3320
|
+
/**
|
|
3321
|
+
* PartRevisionInstancesApi - factory interface
|
|
3322
|
+
* @export
|
|
3323
|
+
*/
|
|
3324
|
+
const PartRevisionInstancesApiFactory = function (configuration, basePath, axios) {
|
|
3325
|
+
const localVarFp = (0, exports.PartRevisionInstancesApiFp)(configuration);
|
|
3326
|
+
return {
|
|
3327
|
+
/**
|
|
3328
|
+
* Gets a page of \'part-revision\' instances. An instance is an occurence of a revision that is a child of a parent revision. The returned data will have the ordinal used for ordering and the transform matrix for each occurrence.
|
|
3329
|
+
* @param {string} [filterParent] Parent ID to filter on.
|
|
3330
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
3331
|
+
* @param {number} [pageSize] The number of items to return.
|
|
3332
|
+
* @param {*} [options] Override http request option.
|
|
3333
|
+
* @throws {RequiredError}
|
|
3334
|
+
*/
|
|
3335
|
+
getPartRevisionInstanceList(filterParent, pageCursor, pageSize, options) {
|
|
3336
|
+
return localVarFp
|
|
3337
|
+
.getPartRevisionInstanceList(filterParent, pageCursor, pageSize, options)
|
|
3338
|
+
.then((request) => request(axios, basePath));
|
|
3339
|
+
},
|
|
3340
|
+
};
|
|
3341
|
+
};
|
|
3342
|
+
exports.PartRevisionInstancesApiFactory = PartRevisionInstancesApiFactory;
|
|
3343
|
+
/**
|
|
3344
|
+
* PartRevisionInstancesApi - object-oriented interface
|
|
3345
|
+
* @export
|
|
3346
|
+
* @class PartRevisionInstancesApi
|
|
3347
|
+
* @extends {BaseAPI}
|
|
3348
|
+
*/
|
|
3349
|
+
class PartRevisionInstancesApi extends base_1.BaseAPI {
|
|
3350
|
+
/**
|
|
3351
|
+
* Gets a page of \'part-revision\' instances. An instance is an occurence of a revision that is a child of a parent revision. The returned data will have the ordinal used for ordering and the transform matrix for each occurrence.
|
|
3352
|
+
* @param {PartRevisionInstancesApiGetPartRevisionInstanceListRequest} requestParameters Request parameters.
|
|
3353
|
+
* @param {*} [options] Override http request option.
|
|
3354
|
+
* @throws {RequiredError}
|
|
3355
|
+
* @memberof PartRevisionInstancesApi
|
|
3356
|
+
*/
|
|
3357
|
+
getPartRevisionInstanceList(requestParameters = {}, options) {
|
|
3358
|
+
return (0, exports.PartRevisionInstancesApiFp)(this.configuration)
|
|
3359
|
+
.getPartRevisionInstanceList(requestParameters.filterParent, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
3360
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3361
|
+
}
|
|
3362
|
+
}
|
|
3363
|
+
exports.PartRevisionInstancesApi = PartRevisionInstancesApi;
|
|
3223
3364
|
/**
|
|
3224
3365
|
* PartRevisionsApi - axios parameter creator
|
|
3225
3366
|
* @export
|
|
@@ -4269,6 +4410,197 @@ class PmiApi extends base_1.BaseAPI {
|
|
|
4269
4410
|
}
|
|
4270
4411
|
}
|
|
4271
4412
|
exports.PmiApi = PmiApi;
|
|
4413
|
+
/**
|
|
4414
|
+
* PropertyEntriesApi - axios parameter creator
|
|
4415
|
+
* @export
|
|
4416
|
+
*/
|
|
4417
|
+
const PropertyEntriesApiAxiosParamCreator = function (configuration) {
|
|
4418
|
+
return {
|
|
4419
|
+
/**
|
|
4420
|
+
* Get `property-entries` by a resource ID **Preview:** This is a preview API and is subject to change.
|
|
4421
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4422
|
+
* @param {number} [pageSize] The number of items to return.
|
|
4423
|
+
* @param {string} [filterResourceId] A resource ID to filter on
|
|
4424
|
+
* @param {string} [filterResourceType] The provided type for the resource ids
|
|
4425
|
+
* @param {*} [options] Override http request option.
|
|
4426
|
+
* @throws {RequiredError}
|
|
4427
|
+
*/
|
|
4428
|
+
getPropertyEntries: (pageCursor, pageSize, filterResourceId, filterResourceType, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4429
|
+
var _a;
|
|
4430
|
+
const localVarPath = `/property-entries`;
|
|
4431
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4432
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4433
|
+
let baseOptions;
|
|
4434
|
+
if (configuration) {
|
|
4435
|
+
baseOptions = configuration.baseOptions;
|
|
4436
|
+
}
|
|
4437
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4438
|
+
const localVarHeaderParameter = {};
|
|
4439
|
+
const localVarQueryParameter = {};
|
|
4440
|
+
// authentication OAuth2 required
|
|
4441
|
+
// oauth required
|
|
4442
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
4443
|
+
if (pageCursor !== undefined) {
|
|
4444
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
4445
|
+
}
|
|
4446
|
+
if (pageSize !== undefined) {
|
|
4447
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
4448
|
+
}
|
|
4449
|
+
if (filterResourceId !== undefined) {
|
|
4450
|
+
localVarQueryParameter['filter[resourceId]'] = filterResourceId;
|
|
4451
|
+
}
|
|
4452
|
+
if (filterResourceType !== undefined) {
|
|
4453
|
+
localVarQueryParameter['filter[resourceType]'] = filterResourceType;
|
|
4454
|
+
}
|
|
4455
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4456
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
4457
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4458
|
+
return {
|
|
4459
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4460
|
+
options: localVarRequestOptions,
|
|
4461
|
+
};
|
|
4462
|
+
}),
|
|
4463
|
+
/**
|
|
4464
|
+
* Upsert property-entries for a provided resource. **Preview:** This is a preview API and is subject to change.
|
|
4465
|
+
* @param {UpsertPropertyEntriesRequest} upsertPropertyEntriesRequest
|
|
4466
|
+
* @param {*} [options] Override http request option.
|
|
4467
|
+
* @throws {RequiredError}
|
|
4468
|
+
*/
|
|
4469
|
+
upsertPropertyEntries: (upsertPropertyEntriesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4470
|
+
var _b;
|
|
4471
|
+
// verify required parameter 'upsertPropertyEntriesRequest' is not null or undefined
|
|
4472
|
+
(0, common_1.assertParamExists)('upsertPropertyEntries', 'upsertPropertyEntriesRequest', upsertPropertyEntriesRequest);
|
|
4473
|
+
const localVarPath = `/property-entries`;
|
|
4474
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4475
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4476
|
+
let baseOptions;
|
|
4477
|
+
if (configuration) {
|
|
4478
|
+
baseOptions = configuration.baseOptions;
|
|
4479
|
+
}
|
|
4480
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4481
|
+
const localVarHeaderParameter = {};
|
|
4482
|
+
const localVarQueryParameter = {};
|
|
4483
|
+
// authentication OAuth2 required
|
|
4484
|
+
// oauth required
|
|
4485
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
4486
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
4487
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4488
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
4489
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4490
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(upsertPropertyEntriesRequest, localVarRequestOptions, configuration);
|
|
4491
|
+
return {
|
|
4492
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4493
|
+
options: localVarRequestOptions,
|
|
4494
|
+
};
|
|
4495
|
+
}),
|
|
4496
|
+
};
|
|
4497
|
+
};
|
|
4498
|
+
exports.PropertyEntriesApiAxiosParamCreator = PropertyEntriesApiAxiosParamCreator;
|
|
4499
|
+
/**
|
|
4500
|
+
* PropertyEntriesApi - functional programming interface
|
|
4501
|
+
* @export
|
|
4502
|
+
*/
|
|
4503
|
+
const PropertyEntriesApiFp = function (configuration) {
|
|
4504
|
+
const localVarAxiosParamCreator = (0, exports.PropertyEntriesApiAxiosParamCreator)(configuration);
|
|
4505
|
+
return {
|
|
4506
|
+
/**
|
|
4507
|
+
* Get `property-entries` by a resource ID **Preview:** This is a preview API and is subject to change.
|
|
4508
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4509
|
+
* @param {number} [pageSize] The number of items to return.
|
|
4510
|
+
* @param {string} [filterResourceId] A resource ID to filter on
|
|
4511
|
+
* @param {string} [filterResourceType] The provided type for the resource ids
|
|
4512
|
+
* @param {*} [options] Override http request option.
|
|
4513
|
+
* @throws {RequiredError}
|
|
4514
|
+
*/
|
|
4515
|
+
getPropertyEntries(pageCursor, pageSize, filterResourceId, filterResourceType, options) {
|
|
4516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4517
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPropertyEntries(pageCursor, pageSize, filterResourceId, filterResourceType, options);
|
|
4518
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4519
|
+
});
|
|
4520
|
+
},
|
|
4521
|
+
/**
|
|
4522
|
+
* Upsert property-entries for a provided resource. **Preview:** This is a preview API and is subject to change.
|
|
4523
|
+
* @param {UpsertPropertyEntriesRequest} upsertPropertyEntriesRequest
|
|
4524
|
+
* @param {*} [options] Override http request option.
|
|
4525
|
+
* @throws {RequiredError}
|
|
4526
|
+
*/
|
|
4527
|
+
upsertPropertyEntries(upsertPropertyEntriesRequest, options) {
|
|
4528
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4529
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.upsertPropertyEntries(upsertPropertyEntriesRequest, options);
|
|
4530
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4531
|
+
});
|
|
4532
|
+
},
|
|
4533
|
+
};
|
|
4534
|
+
};
|
|
4535
|
+
exports.PropertyEntriesApiFp = PropertyEntriesApiFp;
|
|
4536
|
+
/**
|
|
4537
|
+
* PropertyEntriesApi - factory interface
|
|
4538
|
+
* @export
|
|
4539
|
+
*/
|
|
4540
|
+
const PropertyEntriesApiFactory = function (configuration, basePath, axios) {
|
|
4541
|
+
const localVarFp = (0, exports.PropertyEntriesApiFp)(configuration);
|
|
4542
|
+
return {
|
|
4543
|
+
/**
|
|
4544
|
+
* Get `property-entries` by a resource ID **Preview:** This is a preview API and is subject to change.
|
|
4545
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4546
|
+
* @param {number} [pageSize] The number of items to return.
|
|
4547
|
+
* @param {string} [filterResourceId] A resource ID to filter on
|
|
4548
|
+
* @param {string} [filterResourceType] The provided type for the resource ids
|
|
4549
|
+
* @param {*} [options] Override http request option.
|
|
4550
|
+
* @throws {RequiredError}
|
|
4551
|
+
*/
|
|
4552
|
+
getPropertyEntries(pageCursor, pageSize, filterResourceId, filterResourceType, options) {
|
|
4553
|
+
return localVarFp
|
|
4554
|
+
.getPropertyEntries(pageCursor, pageSize, filterResourceId, filterResourceType, options)
|
|
4555
|
+
.then((request) => request(axios, basePath));
|
|
4556
|
+
},
|
|
4557
|
+
/**
|
|
4558
|
+
* Upsert property-entries for a provided resource. **Preview:** This is a preview API and is subject to change.
|
|
4559
|
+
* @param {UpsertPropertyEntriesRequest} upsertPropertyEntriesRequest
|
|
4560
|
+
* @param {*} [options] Override http request option.
|
|
4561
|
+
* @throws {RequiredError}
|
|
4562
|
+
*/
|
|
4563
|
+
upsertPropertyEntries(upsertPropertyEntriesRequest, options) {
|
|
4564
|
+
return localVarFp
|
|
4565
|
+
.upsertPropertyEntries(upsertPropertyEntriesRequest, options)
|
|
4566
|
+
.then((request) => request(axios, basePath));
|
|
4567
|
+
},
|
|
4568
|
+
};
|
|
4569
|
+
};
|
|
4570
|
+
exports.PropertyEntriesApiFactory = PropertyEntriesApiFactory;
|
|
4571
|
+
/**
|
|
4572
|
+
* PropertyEntriesApi - object-oriented interface
|
|
4573
|
+
* @export
|
|
4574
|
+
* @class PropertyEntriesApi
|
|
4575
|
+
* @extends {BaseAPI}
|
|
4576
|
+
*/
|
|
4577
|
+
class PropertyEntriesApi extends base_1.BaseAPI {
|
|
4578
|
+
/**
|
|
4579
|
+
* Get `property-entries` by a resource ID **Preview:** This is a preview API and is subject to change.
|
|
4580
|
+
* @param {PropertyEntriesApiGetPropertyEntriesRequest} requestParameters Request parameters.
|
|
4581
|
+
* @param {*} [options] Override http request option.
|
|
4582
|
+
* @throws {RequiredError}
|
|
4583
|
+
* @memberof PropertyEntriesApi
|
|
4584
|
+
*/
|
|
4585
|
+
getPropertyEntries(requestParameters = {}, options) {
|
|
4586
|
+
return (0, exports.PropertyEntriesApiFp)(this.configuration)
|
|
4587
|
+
.getPropertyEntries(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterResourceId, requestParameters.filterResourceType, options)
|
|
4588
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4589
|
+
}
|
|
4590
|
+
/**
|
|
4591
|
+
* Upsert property-entries for a provided resource. **Preview:** This is a preview API and is subject to change.
|
|
4592
|
+
* @param {PropertyEntriesApiUpsertPropertyEntriesRequest} requestParameters Request parameters.
|
|
4593
|
+
* @param {*} [options] Override http request option.
|
|
4594
|
+
* @throws {RequiredError}
|
|
4595
|
+
* @memberof PropertyEntriesApi
|
|
4596
|
+
*/
|
|
4597
|
+
upsertPropertyEntries(requestParameters, options) {
|
|
4598
|
+
return (0, exports.PropertyEntriesApiFp)(this.configuration)
|
|
4599
|
+
.upsertPropertyEntries(requestParameters.upsertPropertyEntriesRequest, options)
|
|
4600
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4601
|
+
}
|
|
4602
|
+
}
|
|
4603
|
+
exports.PropertyEntriesApi = PropertyEntriesApi;
|
|
4272
4604
|
/**
|
|
4273
4605
|
* SceneAlterationsApi - axios parameter creator
|
|
4274
4606
|
* @export
|
|
@@ -33,6 +33,8 @@ export interface GetPartRevisionBySuppliedIdReq extends BaseReq {
|
|
|
33
33
|
readonly suppliedPartId: string;
|
|
34
34
|
/** A supplied part revision ID. */
|
|
35
35
|
readonly suppliedRevisionId: string;
|
|
36
|
+
/** An optional supplied part revision iteration ID. */
|
|
37
|
+
readonly suppliedIterationId?: string;
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
40
|
* Create part and file resources if they don't already exist.
|
|
@@ -59,7 +61,7 @@ export declare function deleteAllParts({ client, pageSize, exceptions, }: Delete
|
|
|
59
61
|
*
|
|
60
62
|
* @param args - The {@link GetPartRevisionBySuppliedIdReq}.
|
|
61
63
|
*/
|
|
62
|
-
export declare function getPartRevisionBySuppliedId({ client, suppliedPartId, suppliedRevisionId, }: GetPartRevisionBySuppliedIdReq): Promise<PartRevisionData | undefined>;
|
|
64
|
+
export declare function getPartRevisionBySuppliedId({ client, suppliedPartId, suppliedRevisionId, suppliedIterationId, }: GetPartRevisionBySuppliedIdReq): Promise<PartRevisionData | undefined>;
|
|
63
65
|
/**
|
|
64
66
|
* Render a part revision.
|
|
65
67
|
*
|
|
@@ -36,18 +36,27 @@ function createPartFromFile(_a) {
|
|
|
36
36
|
const createPartRequest = createPartReq(file.id);
|
|
37
37
|
const suppliedPartId = createPartRequest.data.attributes.suppliedId;
|
|
38
38
|
const suppliedRevisionId = createPartRequest.data.attributes.suppliedRevisionId;
|
|
39
|
+
const suppliedIterationId = createPartRequest.data.attributes.suppliedIterationId;
|
|
39
40
|
if (suppliedPartId && suppliedRevisionId) {
|
|
40
41
|
const existingPartRev = yield getPartRevisionBySuppliedId({
|
|
41
42
|
client,
|
|
42
43
|
suppliedPartId,
|
|
43
44
|
suppliedRevisionId,
|
|
45
|
+
suppliedIterationId,
|
|
44
46
|
verbose,
|
|
45
47
|
onMsg,
|
|
46
48
|
});
|
|
47
49
|
if (existingPartRev) {
|
|
48
50
|
if (verbose) {
|
|
49
|
-
|
|
50
|
-
`'${
|
|
51
|
+
if (suppliedIterationId) {
|
|
52
|
+
onMsg(`part-revision with suppliedId '${suppliedPartId}', suppliedRevisionId ` +
|
|
53
|
+
`'${suppliedRevisionId}' and suppliedIterationId ` +
|
|
54
|
+
`'${suppliedIterationId}' already exists, using it, ${existingPartRev.id}`);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
onMsg(`part-revision with suppliedId '${suppliedPartId}' and suppliedRevisionId ` +
|
|
58
|
+
`'${suppliedRevisionId}' already exists, using it, ${existingPartRev.id}`);
|
|
59
|
+
}
|
|
51
60
|
}
|
|
52
61
|
return {
|
|
53
62
|
partRevision: existingPartRev,
|
|
@@ -121,7 +130,7 @@ exports.deleteAllParts = deleteAllParts;
|
|
|
121
130
|
*
|
|
122
131
|
* @param args - The {@link GetPartRevisionBySuppliedIdReq}.
|
|
123
132
|
*/
|
|
124
|
-
function getPartRevisionBySuppliedId({ client, suppliedPartId, suppliedRevisionId, }) {
|
|
133
|
+
function getPartRevisionBySuppliedId({ client, suppliedPartId, suppliedRevisionId, suppliedIterationId, }) {
|
|
125
134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
126
135
|
const existingPart = yield (0, index_1.getBySuppliedId)(() => client.parts.getParts({
|
|
127
136
|
pageSize: 1,
|
|
@@ -132,7 +141,7 @@ function getPartRevisionBySuppliedId({ client, suppliedPartId, suppliedRevisionI
|
|
|
132
141
|
id: existingPart.id,
|
|
133
142
|
pageSize: 1,
|
|
134
143
|
filterSuppliedId: (0, index_1.encodeIfNotEncoded)(suppliedRevisionId),
|
|
135
|
-
}), suppliedRevisionId);
|
|
144
|
+
}), suppliedRevisionId, suppliedIterationId);
|
|
136
145
|
if (existingPartRev)
|
|
137
146
|
return existingPartRev;
|
|
138
147
|
}
|
|
@@ -97,7 +97,7 @@ function pollQueuedJob({ id, getQueuedJob, allow404 = false, limit, polling: { i
|
|
|
97
97
|
}
|
|
98
98
|
exports.pollQueuedJob = pollQueuedJob;
|
|
99
99
|
function isPollError(r) {
|
|
100
|
-
return isQueuedJobError(r) || (0, utils_1.isFailure)(r);
|
|
100
|
+
return isQueuedJobError(r) || isQueuedJobRunning(r) || (0, utils_1.isFailure)(r);
|
|
101
101
|
}
|
|
102
102
|
exports.isPollError = isPollError;
|
|
103
103
|
function isBatch(obj) {
|
|
@@ -127,12 +127,19 @@ function completeJob(r) {
|
|
|
127
127
|
function isQueuedJobError(obj) {
|
|
128
128
|
return (0, utils_1.isQueuedJob)(obj) && isStatusError(obj);
|
|
129
129
|
}
|
|
130
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
|
131
|
+
function isQueuedJobRunning(obj) {
|
|
132
|
+
return (0, utils_1.isQueuedJob)(obj) && isStatusRunning(obj);
|
|
133
|
+
}
|
|
130
134
|
function isStatusComplete(job) {
|
|
131
135
|
return job.data.attributes.status === 'complete';
|
|
132
136
|
}
|
|
133
137
|
function isStatusError(job) {
|
|
134
138
|
return job.data.attributes.status === 'error';
|
|
135
139
|
}
|
|
140
|
+
function isStatusRunning(job) {
|
|
141
|
+
return job.data.attributes.status === 'running';
|
|
142
|
+
}
|
|
136
143
|
function isClientError(res) {
|
|
137
144
|
var _a;
|
|
138
145
|
return (0, utils_1.isFailure)(res) && ((_a = (0, utils_1.head)([...res.errors.values()])) === null || _a === void 0 ? void 0 : _a.id) === ClientErrorId;
|
|
@@ -75,10 +75,11 @@ export declare function envVar(key: string): string;
|
|
|
75
75
|
export declare function getBySuppliedId<T extends {
|
|
76
76
|
attributes: {
|
|
77
77
|
suppliedId?: string;
|
|
78
|
+
suppliedIterationId?: string;
|
|
78
79
|
};
|
|
79
80
|
}, TRes extends {
|
|
80
81
|
data: T[];
|
|
81
|
-
}>(getter: () => Promise<AxiosResponse<TRes>>, suppliedId?: string): Promise<T | undefined>;
|
|
82
|
+
}>(getter: () => Promise<AxiosResponse<TRes>>, suppliedId?: string, suppliedIterationId?: string): Promise<T | undefined>;
|
|
82
83
|
/**
|
|
83
84
|
* Get an Error message produced by {@link VertexClient}.
|
|
84
85
|
*
|
package/dist/cjs/client/utils.js
CHANGED
|
@@ -102,15 +102,17 @@ exports.envVar = envVar;
|
|
|
102
102
|
* @param suppliedId - ID to match.
|
|
103
103
|
* @returns Item if and only if it matches ID.
|
|
104
104
|
*/
|
|
105
|
-
function getBySuppliedId(getter, suppliedId) {
|
|
105
|
+
function getBySuppliedId(getter, suppliedId, suppliedIterationId) {
|
|
106
106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
107
107
|
if (!suppliedId)
|
|
108
108
|
return undefined;
|
|
109
109
|
const res = yield getter();
|
|
110
110
|
if (res.data.data.length > 0) {
|
|
111
111
|
const item = head(res.data.data);
|
|
112
|
-
if (item.attributes.suppliedId === suppliedId
|
|
112
|
+
if (item.attributes.suppliedId === suppliedId &&
|
|
113
|
+
item.attributes.suppliedIterationId === suppliedIterationId) {
|
|
113
114
|
return item;
|
|
115
|
+
}
|
|
114
116
|
}
|
|
115
117
|
return undefined;
|
|
116
118
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.23.
|
|
1
|
+
export declare const version = "0.23.4";
|