@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/esm/api.js
CHANGED
|
@@ -72,6 +72,9 @@ export const PartDataRelationshipsPartRevisionsTypeEnum = {
|
|
|
72
72
|
export const PartRelationshipDataTypeEnum = {
|
|
73
73
|
Part: 'part',
|
|
74
74
|
};
|
|
75
|
+
export const PartRenditionRelationshipDataTypeEnum = {
|
|
76
|
+
PartRendition: 'part-rendition',
|
|
77
|
+
};
|
|
75
78
|
/**
|
|
76
79
|
* Resource object type.
|
|
77
80
|
* @export
|
|
@@ -1122,6 +1125,113 @@ export class BatchesApi extends BaseAPI {
|
|
|
1122
1125
|
.then((request) => request(this.axios, this.basePath));
|
|
1123
1126
|
}
|
|
1124
1127
|
}
|
|
1128
|
+
/**
|
|
1129
|
+
* DefaultApi - axios parameter creator
|
|
1130
|
+
* @export
|
|
1131
|
+
*/
|
|
1132
|
+
export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1133
|
+
return {
|
|
1134
|
+
/**
|
|
1135
|
+
*
|
|
1136
|
+
* @param {string} id The `part-revision` ID.
|
|
1137
|
+
* @param {CreatePartRenditionRequest} createPartRenditionRequest
|
|
1138
|
+
* @param {*} [options] Override http request option.
|
|
1139
|
+
* @throws {RequiredError}
|
|
1140
|
+
*/
|
|
1141
|
+
createPartRendition: (id, createPartRenditionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1142
|
+
var _a;
|
|
1143
|
+
// verify required parameter 'id' is not null or undefined
|
|
1144
|
+
assertParamExists('createPartRendition', 'id', id);
|
|
1145
|
+
// verify required parameter 'createPartRenditionRequest' is not null or undefined
|
|
1146
|
+
assertParamExists('createPartRendition', 'createPartRenditionRequest', createPartRenditionRequest);
|
|
1147
|
+
const localVarPath = `/part-revisions/{id}/part-renditions`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1148
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1149
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1150
|
+
let baseOptions;
|
|
1151
|
+
if (configuration) {
|
|
1152
|
+
baseOptions = configuration.baseOptions;
|
|
1153
|
+
}
|
|
1154
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1155
|
+
const localVarHeaderParameter = {};
|
|
1156
|
+
const localVarQueryParameter = {};
|
|
1157
|
+
// authentication OAuth2 required
|
|
1158
|
+
// oauth required
|
|
1159
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1160
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1161
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1162
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
1163
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1164
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPartRenditionRequest, localVarRequestOptions, configuration);
|
|
1165
|
+
return {
|
|
1166
|
+
url: toPathString(localVarUrlObj),
|
|
1167
|
+
options: localVarRequestOptions,
|
|
1168
|
+
};
|
|
1169
|
+
}),
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
1172
|
+
/**
|
|
1173
|
+
* DefaultApi - functional programming interface
|
|
1174
|
+
* @export
|
|
1175
|
+
*/
|
|
1176
|
+
export const DefaultApiFp = function (configuration) {
|
|
1177
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
|
|
1178
|
+
return {
|
|
1179
|
+
/**
|
|
1180
|
+
*
|
|
1181
|
+
* @param {string} id The `part-revision` ID.
|
|
1182
|
+
* @param {CreatePartRenditionRequest} createPartRenditionRequest
|
|
1183
|
+
* @param {*} [options] Override http request option.
|
|
1184
|
+
* @throws {RequiredError}
|
|
1185
|
+
*/
|
|
1186
|
+
createPartRendition(id, createPartRenditionRequest, options) {
|
|
1187
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1188
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPartRendition(id, createPartRenditionRequest, options);
|
|
1189
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1190
|
+
});
|
|
1191
|
+
},
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
/**
|
|
1195
|
+
* DefaultApi - factory interface
|
|
1196
|
+
* @export
|
|
1197
|
+
*/
|
|
1198
|
+
export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1199
|
+
const localVarFp = DefaultApiFp(configuration);
|
|
1200
|
+
return {
|
|
1201
|
+
/**
|
|
1202
|
+
*
|
|
1203
|
+
* @param {string} id The `part-revision` ID.
|
|
1204
|
+
* @param {CreatePartRenditionRequest} createPartRenditionRequest
|
|
1205
|
+
* @param {*} [options] Override http request option.
|
|
1206
|
+
* @throws {RequiredError}
|
|
1207
|
+
*/
|
|
1208
|
+
createPartRendition(id, createPartRenditionRequest, options) {
|
|
1209
|
+
return localVarFp
|
|
1210
|
+
.createPartRendition(id, createPartRenditionRequest, options)
|
|
1211
|
+
.then((request) => request(axios, basePath));
|
|
1212
|
+
},
|
|
1213
|
+
};
|
|
1214
|
+
};
|
|
1215
|
+
/**
|
|
1216
|
+
* DefaultApi - object-oriented interface
|
|
1217
|
+
* @export
|
|
1218
|
+
* @class DefaultApi
|
|
1219
|
+
* @extends {BaseAPI}
|
|
1220
|
+
*/
|
|
1221
|
+
export class DefaultApi extends BaseAPI {
|
|
1222
|
+
/**
|
|
1223
|
+
*
|
|
1224
|
+
* @param {DefaultApiCreatePartRenditionRequest} requestParameters Request parameters.
|
|
1225
|
+
* @param {*} [options] Override http request option.
|
|
1226
|
+
* @throws {RequiredError}
|
|
1227
|
+
* @memberof DefaultApi
|
|
1228
|
+
*/
|
|
1229
|
+
createPartRendition(requestParameters, options) {
|
|
1230
|
+
return DefaultApiFp(this.configuration)
|
|
1231
|
+
.createPartRendition(requestParameters.id, requestParameters.createPartRenditionRequest, options)
|
|
1232
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1125
1235
|
/**
|
|
1126
1236
|
* ExportsApi - axios parameter creator
|
|
1127
1237
|
* @export
|
|
@@ -5746,7 +5856,7 @@ export const ScenesApiAxiosParamCreator = function (configuration) {
|
|
|
5746
5856
|
* @param {number} [pageSize] The number of items to return.
|
|
5747
5857
|
* @param {string} [filterName] Comma-separated list of names to filter on.
|
|
5748
5858
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
5749
|
-
* @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `
|
|
5859
|
+
* @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.
|
|
5750
5860
|
* @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`.
|
|
5751
5861
|
* @param {*} [options] Override http request option.
|
|
5752
5862
|
* @throws {RequiredError}
|
|
@@ -5931,7 +6041,7 @@ export const ScenesApiFp = function (configuration) {
|
|
|
5931
6041
|
* @param {number} [pageSize] The number of items to return.
|
|
5932
6042
|
* @param {string} [filterName] Comma-separated list of names to filter on.
|
|
5933
6043
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
5934
|
-
* @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `
|
|
6044
|
+
* @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.
|
|
5935
6045
|
* @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`.
|
|
5936
6046
|
* @param {*} [options] Override http request option.
|
|
5937
6047
|
* @throws {RequiredError}
|
|
@@ -6029,7 +6139,7 @@ export const ScenesApiFactory = function (configuration, basePath, axios) {
|
|
|
6029
6139
|
* @param {number} [pageSize] The number of items to return.
|
|
6030
6140
|
* @param {string} [filterName] Comma-separated list of names to filter on.
|
|
6031
6141
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
6032
|
-
* @param {string} [fieldsScene] Comma-separated list of fields to return in response. An empty value returns no fields. `
|
|
6142
|
+
* @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.
|
|
6033
6143
|
* @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`.
|
|
6034
6144
|
* @param {*} [options] Override http request option.
|
|
6035
6145
|
* @throws {RequiredError}
|
|
@@ -6481,9 +6591,10 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
|
|
|
6481
6591
|
};
|
|
6482
6592
|
}),
|
|
6483
6593
|
/**
|
|
6484
|
-
* 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.
|
|
6594
|
+
* 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.
|
|
6485
6595
|
* @param {string} id The `queued-translation` ID.
|
|
6486
6596
|
* @param {*} [options] Override http request option.
|
|
6597
|
+
* @deprecated
|
|
6487
6598
|
* @throws {RequiredError}
|
|
6488
6599
|
*/
|
|
6489
6600
|
getQueuedTranslation: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -6543,16 +6654,16 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
|
|
|
6543
6654
|
};
|
|
6544
6655
|
}),
|
|
6545
6656
|
/**
|
|
6546
|
-
* Get
|
|
6657
|
+
* Get all current translation jobs in progress.
|
|
6547
6658
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6548
6659
|
* @param {number} [pageSize] The number of items to return.
|
|
6549
6660
|
* @param {string} [filterStatus] Status to filter on.
|
|
6550
6661
|
* @param {*} [options] Override http request option.
|
|
6551
6662
|
* @throws {RequiredError}
|
|
6552
6663
|
*/
|
|
6553
|
-
|
|
6664
|
+
getQueuedTranslationJobs: (pageCursor, pageSize, filterStatus, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6554
6665
|
var _e;
|
|
6555
|
-
const localVarPath = `/queued-
|
|
6666
|
+
const localVarPath = `/queued-translation-jobs`;
|
|
6556
6667
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6557
6668
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6558
6669
|
let baseOptions;
|
|
@@ -6582,6 +6693,47 @@ export const TranslationInspectionsApiAxiosParamCreator = function (configuratio
|
|
|
6582
6693
|
options: localVarRequestOptions,
|
|
6583
6694
|
};
|
|
6584
6695
|
}),
|
|
6696
|
+
/**
|
|
6697
|
+
* This has been deprecated and replaced by **queued-translation-jobs** - Get `queued-translation`s.
|
|
6698
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6699
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6700
|
+
* @param {string} [filterStatus] Status to filter on.
|
|
6701
|
+
* @param {*} [options] Override http request option.
|
|
6702
|
+
* @deprecated
|
|
6703
|
+
* @throws {RequiredError}
|
|
6704
|
+
*/
|
|
6705
|
+
getQueuedTranslations: (pageCursor, pageSize, filterStatus, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6706
|
+
var _f;
|
|
6707
|
+
const localVarPath = `/queued-translations`;
|
|
6708
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6709
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6710
|
+
let baseOptions;
|
|
6711
|
+
if (configuration) {
|
|
6712
|
+
baseOptions = configuration.baseOptions;
|
|
6713
|
+
}
|
|
6714
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6715
|
+
const localVarHeaderParameter = {};
|
|
6716
|
+
const localVarQueryParameter = {};
|
|
6717
|
+
// authentication OAuth2 required
|
|
6718
|
+
// oauth required
|
|
6719
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6720
|
+
if (pageCursor !== undefined) {
|
|
6721
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
6722
|
+
}
|
|
6723
|
+
if (pageSize !== undefined) {
|
|
6724
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
6725
|
+
}
|
|
6726
|
+
if (filterStatus !== undefined) {
|
|
6727
|
+
localVarQueryParameter['filter[status]'] = filterStatus;
|
|
6728
|
+
}
|
|
6729
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6730
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
6731
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6732
|
+
return {
|
|
6733
|
+
url: toPathString(localVarUrlObj),
|
|
6734
|
+
options: localVarRequestOptions,
|
|
6735
|
+
};
|
|
6736
|
+
}),
|
|
6585
6737
|
};
|
|
6586
6738
|
};
|
|
6587
6739
|
/**
|
|
@@ -6616,9 +6768,10 @@ export const TranslationInspectionsApiFp = function (configuration) {
|
|
|
6616
6768
|
});
|
|
6617
6769
|
},
|
|
6618
6770
|
/**
|
|
6619
|
-
* 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.
|
|
6771
|
+
* 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.
|
|
6620
6772
|
* @param {string} id The `queued-translation` ID.
|
|
6621
6773
|
* @param {*} [options] Override http request option.
|
|
6774
|
+
* @deprecated
|
|
6622
6775
|
* @throws {RequiredError}
|
|
6623
6776
|
*/
|
|
6624
6777
|
getQueuedTranslation(id, options) {
|
|
@@ -6640,11 +6793,26 @@ export const TranslationInspectionsApiFp = function (configuration) {
|
|
|
6640
6793
|
});
|
|
6641
6794
|
},
|
|
6642
6795
|
/**
|
|
6643
|
-
* Get
|
|
6796
|
+
* Get all current translation jobs in progress.
|
|
6797
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6798
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6799
|
+
* @param {string} [filterStatus] Status to filter on.
|
|
6800
|
+
* @param {*} [options] Override http request option.
|
|
6801
|
+
* @throws {RequiredError}
|
|
6802
|
+
*/
|
|
6803
|
+
getQueuedTranslationJobs(pageCursor, pageSize, filterStatus, options) {
|
|
6804
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6805
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQueuedTranslationJobs(pageCursor, pageSize, filterStatus, options);
|
|
6806
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6807
|
+
});
|
|
6808
|
+
},
|
|
6809
|
+
/**
|
|
6810
|
+
* This has been deprecated and replaced by **queued-translation-jobs** - Get `queued-translation`s.
|
|
6644
6811
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6645
6812
|
* @param {number} [pageSize] The number of items to return.
|
|
6646
6813
|
* @param {string} [filterStatus] Status to filter on.
|
|
6647
6814
|
* @param {*} [options] Override http request option.
|
|
6815
|
+
* @deprecated
|
|
6648
6816
|
* @throws {RequiredError}
|
|
6649
6817
|
*/
|
|
6650
6818
|
getQueuedTranslations(pageCursor, pageSize, filterStatus, options) {
|
|
@@ -6685,9 +6853,10 @@ export const TranslationInspectionsApiFactory = function (configuration, basePat
|
|
|
6685
6853
|
.then((request) => request(axios, basePath));
|
|
6686
6854
|
},
|
|
6687
6855
|
/**
|
|
6688
|
-
* 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.
|
|
6856
|
+
* 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.
|
|
6689
6857
|
* @param {string} id The `queued-translation` ID.
|
|
6690
6858
|
* @param {*} [options] Override http request option.
|
|
6859
|
+
* @deprecated
|
|
6691
6860
|
* @throws {RequiredError}
|
|
6692
6861
|
*/
|
|
6693
6862
|
getQueuedTranslation(id, options) {
|
|
@@ -6707,13 +6876,27 @@ export const TranslationInspectionsApiFactory = function (configuration, basePat
|
|
|
6707
6876
|
.then((request) => request(axios, basePath));
|
|
6708
6877
|
},
|
|
6709
6878
|
/**
|
|
6710
|
-
* Get
|
|
6879
|
+
* Get all current translation jobs in progress.
|
|
6711
6880
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6712
6881
|
* @param {number} [pageSize] The number of items to return.
|
|
6713
6882
|
* @param {string} [filterStatus] Status to filter on.
|
|
6714
6883
|
* @param {*} [options] Override http request option.
|
|
6715
6884
|
* @throws {RequiredError}
|
|
6716
6885
|
*/
|
|
6886
|
+
getQueuedTranslationJobs(pageCursor, pageSize, filterStatus, options) {
|
|
6887
|
+
return localVarFp
|
|
6888
|
+
.getQueuedTranslationJobs(pageCursor, pageSize, filterStatus, options)
|
|
6889
|
+
.then((request) => request(axios, basePath));
|
|
6890
|
+
},
|
|
6891
|
+
/**
|
|
6892
|
+
* This has been deprecated and replaced by **queued-translation-jobs** - Get `queued-translation`s.
|
|
6893
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6894
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6895
|
+
* @param {string} [filterStatus] Status to filter on.
|
|
6896
|
+
* @param {*} [options] Override http request option.
|
|
6897
|
+
* @deprecated
|
|
6898
|
+
* @throws {RequiredError}
|
|
6899
|
+
*/
|
|
6717
6900
|
getQueuedTranslations(pageCursor, pageSize, filterStatus, options) {
|
|
6718
6901
|
return localVarFp
|
|
6719
6902
|
.getQueuedTranslations(pageCursor, pageSize, filterStatus, options)
|
|
@@ -6753,9 +6936,10 @@ export class TranslationInspectionsApi extends BaseAPI {
|
|
|
6753
6936
|
.then((request) => request(this.axios, this.basePath));
|
|
6754
6937
|
}
|
|
6755
6938
|
/**
|
|
6756
|
-
* 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.
|
|
6939
|
+
* 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.
|
|
6757
6940
|
* @param {TranslationInspectionsApiGetQueuedTranslationRequest} requestParameters Request parameters.
|
|
6758
6941
|
* @param {*} [options] Override http request option.
|
|
6942
|
+
* @deprecated
|
|
6759
6943
|
* @throws {RequiredError}
|
|
6760
6944
|
* @memberof TranslationInspectionsApi
|
|
6761
6945
|
*/
|
|
@@ -6777,9 +6961,22 @@ export class TranslationInspectionsApi extends BaseAPI {
|
|
|
6777
6961
|
.then((request) => request(this.axios, this.basePath));
|
|
6778
6962
|
}
|
|
6779
6963
|
/**
|
|
6780
|
-
* Get
|
|
6964
|
+
* Get all current translation jobs in progress.
|
|
6965
|
+
* @param {TranslationInspectionsApiGetQueuedTranslationJobsRequest} requestParameters Request parameters.
|
|
6966
|
+
* @param {*} [options] Override http request option.
|
|
6967
|
+
* @throws {RequiredError}
|
|
6968
|
+
* @memberof TranslationInspectionsApi
|
|
6969
|
+
*/
|
|
6970
|
+
getQueuedTranslationJobs(requestParameters = {}, options) {
|
|
6971
|
+
return TranslationInspectionsApiFp(this.configuration)
|
|
6972
|
+
.getQueuedTranslationJobs(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterStatus, options)
|
|
6973
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6974
|
+
}
|
|
6975
|
+
/**
|
|
6976
|
+
* This has been deprecated and replaced by **queued-translation-jobs** - Get `queued-translation`s.
|
|
6781
6977
|
* @param {TranslationInspectionsApiGetQueuedTranslationsRequest} requestParameters Request parameters.
|
|
6782
6978
|
* @param {*} [options] Override http request option.
|
|
6979
|
+
* @deprecated
|
|
6783
6980
|
* @throws {RequiredError}
|
|
6784
6981
|
* @memberof TranslationInspectionsApi
|
|
6785
6982
|
*/
|
|
@@ -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.
|
|
@@ -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/esm/client/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.
|
|
1
|
+
export declare const version = "0.22.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.
|
|
1
|
+
export const version = '0.22.0';
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertexvis/api-client-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "The Vertex REST API client for Node.js.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
"typescript"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"axios": "^
|
|
36
|
+
"axios": "^1.5.0",
|
|
37
37
|
"p-limit": "^3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/jest": "^27.0",
|
|
41
41
|
"@types/node": "^16",
|
|
42
|
-
"@vertexvis/eslint-config-vertexvis-typescript": "^0.
|
|
43
|
-
"eslint": "^
|
|
44
|
-
"eslint-plugin-promise": "^
|
|
45
|
-
"eslint-plugin-simple-import-sort": "^
|
|
46
|
-
"eslint-plugin-tsdoc": "^0.2",
|
|
47
|
-
"jest": "^
|
|
42
|
+
"@vertexvis/eslint-config-vertexvis-typescript": "^0.5.1",
|
|
43
|
+
"eslint": "^8.49.0",
|
|
44
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
45
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
46
|
+
"eslint-plugin-tsdoc": "^0.2.17",
|
|
47
|
+
"jest": "^29.7.0",
|
|
48
48
|
"pinst": "^2.1",
|
|
49
|
-
"prettier": "^
|
|
50
|
-
"ts-jest": "^
|
|
49
|
+
"prettier": "^3.0.3",
|
|
50
|
+
"ts-jest": "^29.1.1",
|
|
51
51
|
"typedoc": "^0.22",
|
|
52
52
|
"typescript": "4.5.x"
|
|
53
53
|
},
|