@vertexvis/api-client-node 0.21.2 → 0.22.0
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 +415 -49
- package/dist/cjs/api.js +217 -16
- package/dist/cjs/client/helpers/files.d.ts +2 -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/parts.d.ts +2 -1
- 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/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/api.d.ts +415 -49
- package/dist/esm/api.js +210 -13
- package/dist/esm/client/helpers/files.d.ts +2 -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/parts.d.ts +2 -1
- 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/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +10 -10
package/dist/cjs/api.js
CHANGED
|
@@ -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.ExportsApiFactory = exports.ExportsApiFp = exports.ExportsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.BatchesApi = 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.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = exports.UpdateSceneRequestDataAttributesStateEnum = exports.UpdateAccountRequestDataAttributesStatusEnum = exports.SelectOperationTypeEnum = 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.ClearTransformOperationTypeEnum = exports.ClearMaterialOperationTypeEnum = exports.ChangeVisibilityOperationTypeEnum = exports.ChangeTransformOperationTypeEnum = exports.ChangeMaterialOperationTypeEnum = exports.CameraFitTypeEnum = exports.BatchOperationRefTypeEnum = exports.BatchOperationOpEnum = void 0;
|
|
29
|
+
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.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.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 = 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 = void 0;
|
|
31
31
|
const axios_1 = __importDefault(require("axios"));
|
|
32
32
|
// Some imports not used depending on template conditions
|
|
33
33
|
// @ts-ignore
|
|
@@ -80,6 +80,9 @@ exports.PartDataRelationshipsPartRevisionsTypeEnum = {
|
|
|
80
80
|
exports.PartRelationshipDataTypeEnum = {
|
|
81
81
|
Part: 'part',
|
|
82
82
|
};
|
|
83
|
+
exports.PartRenditionRelationshipDataTypeEnum = {
|
|
84
|
+
PartRendition: 'part-rendition',
|
|
85
|
+
};
|
|
83
86
|
/**
|
|
84
87
|
* Resource object type.
|
|
85
88
|
* @export
|
|
@@ -1142,6 +1145,117 @@ class BatchesApi extends base_1.BaseAPI {
|
|
|
1142
1145
|
}
|
|
1143
1146
|
}
|
|
1144
1147
|
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;
|
|
1145
1259
|
/**
|
|
1146
1260
|
* ExportsApi - axios parameter creator
|
|
1147
1261
|
* @export
|
|
@@ -5814,7 +5928,7 @@ const ScenesApiAxiosParamCreator = function (configuration) {
|
|
|
5814
5928
|
* @param {number} [pageSize] The number of items to return.
|
|
5815
5929
|
* @param {string} [filterName] Comma-separated list of names to filter on.
|
|
5816
5930
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
5817
|
-
* @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `
|
|
5931
|
+
* @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `metadata` is only returned if explicitly requested.
|
|
5818
5932
|
* @param {{ [key: string]: string; }} [filterMetadata] Filter scenes that contain all the given metadata key-value pairs. Should be specified in query parameter map notation: `filter[metadata][key1]=value1&filter[metadata][key]=value2`.
|
|
5819
5933
|
* @param {*} [options] Override http request option.
|
|
5820
5934
|
* @throws {RequiredError}
|
|
@@ -6000,7 +6114,7 @@ const ScenesApiFp = function (configuration) {
|
|
|
6000
6114
|
* @param {number} [pageSize] The number of items to return.
|
|
6001
6115
|
* @param {string} [filterName] Comma-separated list of names to filter on.
|
|
6002
6116
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
6003
|
-
* @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `
|
|
6117
|
+
* @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `metadata` is only returned if explicitly requested.
|
|
6004
6118
|
* @param {{ [key: string]: string; }} [filterMetadata] Filter scenes that contain all the given metadata key-value pairs. Should be specified in query parameter map notation: `filter[metadata][key1]=value1&filter[metadata][key]=value2`.
|
|
6005
6119
|
* @param {*} [options] Override http request option.
|
|
6006
6120
|
* @throws {RequiredError}
|
|
@@ -6099,7 +6213,7 @@ const ScenesApiFactory = function (configuration, basePath, axios) {
|
|
|
6099
6213
|
* @param {number} [pageSize] The number of items to return.
|
|
6100
6214
|
* @param {string} [filterName] Comma-separated list of names to filter on.
|
|
6101
6215
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
6102
|
-
* @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `
|
|
6216
|
+
* @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `metadata` is only returned if explicitly requested.
|
|
6103
6217
|
* @param {{ [key: string]: string; }} [filterMetadata] Filter scenes that contain all the given metadata key-value pairs. Should be specified in query parameter map notation: `filter[metadata][key1]=value1&filter[metadata][key]=value2`.
|
|
6104
6218
|
* @param {*} [options] Override http request option.
|
|
6105
6219
|
* @throws {RequiredError}
|
|
@@ -6557,9 +6671,10 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
6557
6671
|
};
|
|
6558
6672
|
}),
|
|
6559
6673
|
/**
|
|
6560
|
-
* Get a `queued-translation`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `part-revision`. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
|
|
6674
|
+
* This has been deprecated and replaced by **queued-translation-jobs/{id}** - Get a `queued-translation`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `part-revision`. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
|
|
6561
6675
|
* @param {string} id The `queued-translation` ID.
|
|
6562
6676
|
* @param {*} [options] Override http request option.
|
|
6677
|
+
* @deprecated
|
|
6563
6678
|
* @throws {RequiredError}
|
|
6564
6679
|
*/
|
|
6565
6680
|
getQueuedTranslation: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6619,16 +6734,16 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
6619
6734
|
};
|
|
6620
6735
|
}),
|
|
6621
6736
|
/**
|
|
6622
|
-
* Get
|
|
6737
|
+
* Get all current translation jobs in progress.
|
|
6623
6738
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6624
6739
|
* @param {number} [pageSize] The number of items to return.
|
|
6625
6740
|
* @param {string} [filterStatus] Status to filter on.
|
|
6626
6741
|
* @param {*} [options] Override http request option.
|
|
6627
6742
|
* @throws {RequiredError}
|
|
6628
6743
|
*/
|
|
6629
|
-
|
|
6744
|
+
getQueuedTranslationJobs: (pageCursor, pageSize, filterStatus, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6630
6745
|
var _e;
|
|
6631
|
-
const localVarPath = `/queued-
|
|
6746
|
+
const localVarPath = `/queued-translation-jobs`;
|
|
6632
6747
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6633
6748
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6634
6749
|
let baseOptions;
|
|
@@ -6658,6 +6773,47 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
6658
6773
|
options: localVarRequestOptions,
|
|
6659
6774
|
};
|
|
6660
6775
|
}),
|
|
6776
|
+
/**
|
|
6777
|
+
* This has been deprecated and replaced by **queued-translation-jobs** - Get `queued-translation`s.
|
|
6778
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6779
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6780
|
+
* @param {string} [filterStatus] Status to filter on.
|
|
6781
|
+
* @param {*} [options] Override http request option.
|
|
6782
|
+
* @deprecated
|
|
6783
|
+
* @throws {RequiredError}
|
|
6784
|
+
*/
|
|
6785
|
+
getQueuedTranslations: (pageCursor, pageSize, filterStatus, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6786
|
+
var _f;
|
|
6787
|
+
const localVarPath = `/queued-translations`;
|
|
6788
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6789
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6790
|
+
let baseOptions;
|
|
6791
|
+
if (configuration) {
|
|
6792
|
+
baseOptions = configuration.baseOptions;
|
|
6793
|
+
}
|
|
6794
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6795
|
+
const localVarHeaderParameter = {};
|
|
6796
|
+
const localVarQueryParameter = {};
|
|
6797
|
+
// authentication OAuth2 required
|
|
6798
|
+
// oauth required
|
|
6799
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6800
|
+
if (pageCursor !== undefined) {
|
|
6801
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
6802
|
+
}
|
|
6803
|
+
if (pageSize !== undefined) {
|
|
6804
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
6805
|
+
}
|
|
6806
|
+
if (filterStatus !== undefined) {
|
|
6807
|
+
localVarQueryParameter['filter[status]'] = filterStatus;
|
|
6808
|
+
}
|
|
6809
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6810
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
6811
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6812
|
+
return {
|
|
6813
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6814
|
+
options: localVarRequestOptions,
|
|
6815
|
+
};
|
|
6816
|
+
}),
|
|
6661
6817
|
};
|
|
6662
6818
|
};
|
|
6663
6819
|
exports.TranslationInspectionsApiAxiosParamCreator = TranslationInspectionsApiAxiosParamCreator;
|
|
@@ -6693,9 +6849,10 @@ const TranslationInspectionsApiFp = function (configuration) {
|
|
|
6693
6849
|
});
|
|
6694
6850
|
},
|
|
6695
6851
|
/**
|
|
6696
|
-
* Get a `queued-translation`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `part-revision`. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
|
|
6852
|
+
* This has been deprecated and replaced by **queued-translation-jobs/{id}** - Get a `queued-translation`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `part-revision`. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
|
|
6697
6853
|
* @param {string} id The `queued-translation` ID.
|
|
6698
6854
|
* @param {*} [options] Override http request option.
|
|
6855
|
+
* @deprecated
|
|
6699
6856
|
* @throws {RequiredError}
|
|
6700
6857
|
*/
|
|
6701
6858
|
getQueuedTranslation(id, options) {
|
|
@@ -6717,11 +6874,26 @@ const TranslationInspectionsApiFp = function (configuration) {
|
|
|
6717
6874
|
});
|
|
6718
6875
|
},
|
|
6719
6876
|
/**
|
|
6720
|
-
* Get
|
|
6877
|
+
* Get all current translation jobs in progress.
|
|
6878
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6879
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6880
|
+
* @param {string} [filterStatus] Status to filter on.
|
|
6881
|
+
* @param {*} [options] Override http request option.
|
|
6882
|
+
* @throws {RequiredError}
|
|
6883
|
+
*/
|
|
6884
|
+
getQueuedTranslationJobs(pageCursor, pageSize, filterStatus, options) {
|
|
6885
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6886
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQueuedTranslationJobs(pageCursor, pageSize, filterStatus, options);
|
|
6887
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6888
|
+
});
|
|
6889
|
+
},
|
|
6890
|
+
/**
|
|
6891
|
+
* This has been deprecated and replaced by **queued-translation-jobs** - Get `queued-translation`s.
|
|
6721
6892
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6722
6893
|
* @param {number} [pageSize] The number of items to return.
|
|
6723
6894
|
* @param {string} [filterStatus] Status to filter on.
|
|
6724
6895
|
* @param {*} [options] Override http request option.
|
|
6896
|
+
* @deprecated
|
|
6725
6897
|
* @throws {RequiredError}
|
|
6726
6898
|
*/
|
|
6727
6899
|
getQueuedTranslations(pageCursor, pageSize, filterStatus, options) {
|
|
@@ -6763,9 +6935,10 @@ const TranslationInspectionsApiFactory = function (configuration, basePath, axio
|
|
|
6763
6935
|
.then((request) => request(axios, basePath));
|
|
6764
6936
|
},
|
|
6765
6937
|
/**
|
|
6766
|
-
* Get a `queued-translation`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `part-revision`. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
|
|
6938
|
+
* This has been deprecated and replaced by **queued-translation-jobs/{id}** - Get a `queued-translation`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `part-revision`. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
|
|
6767
6939
|
* @param {string} id The `queued-translation` ID.
|
|
6768
6940
|
* @param {*} [options] Override http request option.
|
|
6941
|
+
* @deprecated
|
|
6769
6942
|
* @throws {RequiredError}
|
|
6770
6943
|
*/
|
|
6771
6944
|
getQueuedTranslation(id, options) {
|
|
@@ -6785,13 +6958,27 @@ const TranslationInspectionsApiFactory = function (configuration, basePath, axio
|
|
|
6785
6958
|
.then((request) => request(axios, basePath));
|
|
6786
6959
|
},
|
|
6787
6960
|
/**
|
|
6788
|
-
* Get
|
|
6961
|
+
* Get all current translation jobs in progress.
|
|
6789
6962
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6790
6963
|
* @param {number} [pageSize] The number of items to return.
|
|
6791
6964
|
* @param {string} [filterStatus] Status to filter on.
|
|
6792
6965
|
* @param {*} [options] Override http request option.
|
|
6793
6966
|
* @throws {RequiredError}
|
|
6794
6967
|
*/
|
|
6968
|
+
getQueuedTranslationJobs(pageCursor, pageSize, filterStatus, options) {
|
|
6969
|
+
return localVarFp
|
|
6970
|
+
.getQueuedTranslationJobs(pageCursor, pageSize, filterStatus, options)
|
|
6971
|
+
.then((request) => request(axios, basePath));
|
|
6972
|
+
},
|
|
6973
|
+
/**
|
|
6974
|
+
* This has been deprecated and replaced by **queued-translation-jobs** - Get `queued-translation`s.
|
|
6975
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6976
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6977
|
+
* @param {string} [filterStatus] Status to filter on.
|
|
6978
|
+
* @param {*} [options] Override http request option.
|
|
6979
|
+
* @deprecated
|
|
6980
|
+
* @throws {RequiredError}
|
|
6981
|
+
*/
|
|
6795
6982
|
getQueuedTranslations(pageCursor, pageSize, filterStatus, options) {
|
|
6796
6983
|
return localVarFp
|
|
6797
6984
|
.getQueuedTranslations(pageCursor, pageSize, filterStatus, options)
|
|
@@ -6832,9 +7019,10 @@ class TranslationInspectionsApi extends base_1.BaseAPI {
|
|
|
6832
7019
|
.then((request) => request(this.axios, this.basePath));
|
|
6833
7020
|
}
|
|
6834
7021
|
/**
|
|
6835
|
-
* Get a `queued-translation`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `part-revision`. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
|
|
7022
|
+
* This has been deprecated and replaced by **queued-translation-jobs/{id}** - Get a `queued-translation`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `part-revision`. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
|
|
6836
7023
|
* @param {TranslationInspectionsApiGetQueuedTranslationRequest} requestParameters Request parameters.
|
|
6837
7024
|
* @param {*} [options] Override http request option.
|
|
7025
|
+
* @deprecated
|
|
6838
7026
|
* @throws {RequiredError}
|
|
6839
7027
|
* @memberof TranslationInspectionsApi
|
|
6840
7028
|
*/
|
|
@@ -6856,9 +7044,22 @@ class TranslationInspectionsApi extends base_1.BaseAPI {
|
|
|
6856
7044
|
.then((request) => request(this.axios, this.basePath));
|
|
6857
7045
|
}
|
|
6858
7046
|
/**
|
|
6859
|
-
* Get
|
|
7047
|
+
* Get all current translation jobs in progress.
|
|
7048
|
+
* @param {TranslationInspectionsApiGetQueuedTranslationJobsRequest} requestParameters Request parameters.
|
|
7049
|
+
* @param {*} [options] Override http request option.
|
|
7050
|
+
* @throws {RequiredError}
|
|
7051
|
+
* @memberof TranslationInspectionsApi
|
|
7052
|
+
*/
|
|
7053
|
+
getQueuedTranslationJobs(requestParameters = {}, options) {
|
|
7054
|
+
return (0, exports.TranslationInspectionsApiFp)(this.configuration)
|
|
7055
|
+
.getQueuedTranslationJobs(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterStatus, options)
|
|
7056
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7057
|
+
}
|
|
7058
|
+
/**
|
|
7059
|
+
* This has been deprecated and replaced by **queued-translation-jobs** - Get `queued-translation`s.
|
|
6860
7060
|
* @param {TranslationInspectionsApiGetQueuedTranslationsRequest} requestParameters Request parameters.
|
|
6861
7061
|
* @param {*} [options] Override http request option.
|
|
7062
|
+
* @deprecated
|
|
6862
7063
|
* @throws {RequiredError}
|
|
6863
7064
|
* @memberof TranslationInspectionsApi
|
|
6864
7065
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
import { ReadStream } from 'fs';
|
|
2
3
|
import { BaseReq, DeleteReq } from '../../client/index';
|
|
3
4
|
import { CreateFileRequest, FileMetadataData } from '../../index';
|
|
4
5
|
/** Upload file arguments. */
|
|
@@ -6,7 +7,7 @@ export interface UploadFileReq extends BaseReq {
|
|
|
6
7
|
/** A {@link CreateFileRequest}. */
|
|
7
8
|
readonly createFileReq: CreateFileRequest;
|
|
8
9
|
/** File data. */
|
|
9
|
-
readonly fileData: Buffer;
|
|
10
|
+
readonly fileData: Buffer | ReadStream;
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* Delete all files.
|
|
@@ -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);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { AxiosResponse } from 'axios';
|
|
3
|
+
import { ReadStream } from 'fs';
|
|
3
4
|
import { CreateFileRequest, CreateGeometrySetRequest, CreatePartRequest, Failure, Part, PartData, PartRevisionData, QueuedJob } from '../../index';
|
|
4
5
|
import { BaseReq, DeleteReq, Polling, RenderImageReq } from '../index';
|
|
5
6
|
/** Create parts from file arguments. */
|
|
@@ -9,7 +10,7 @@ export interface CreatePartFromFileReq extends BaseReq {
|
|
|
9
10
|
/** Function returning a {@link CreatePartRequest}. */
|
|
10
11
|
readonly createPartReq: (fileId: string) => CreatePartRequest;
|
|
11
12
|
/** File data. */
|
|
12
|
-
readonly fileData: Buffer;
|
|
13
|
+
readonly fileData: Buffer | ReadStream;
|
|
13
14
|
/** {@link Polling} */
|
|
14
15
|
readonly polling?: Polling;
|
|
15
16
|
/** Whether or not to return queued translation. */
|
|
@@ -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.0";
|
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);
|