@vertexvis/api-client-node 0.16.0 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api.d.ts +412 -0
- package/dist/cjs/api.js +244 -3
- package/dist/cjs/client/helpers/exports.d.ts +15 -0
- package/dist/cjs/client/helpers/exports.js +39 -0
- package/dist/cjs/client/helpers/index.d.ts +1 -0
- package/dist/cjs/client/helpers/index.js +1 -0
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/cjs/client/vertex-client.d.ts +2 -1
- package/dist/cjs/client/vertex-client.js +1 -0
- package/dist/esm/api.d.ts +412 -0
- package/dist/esm/api.js +237 -0
- package/dist/esm/client/helpers/exports.d.ts +15 -0
- package/dist/esm/client/helpers/exports.js +35 -0
- package/dist/esm/client/helpers/index.d.ts +1 -0
- package/dist/esm/client/helpers/index.js +1 -0
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/dist/esm/client/vertex-client.d.ts +2 -1
- package/dist/esm/client/vertex-client.js +2 -1
- package/package.json +1 -1
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 = void 0;
|
|
28
|
+
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 = 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.PartRelationshipDataTypeEnum = exports.PartDataRelationshipsPartRevisionsTypeEnum = exports.MetadataValueTypeEnum = 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.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.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 = void 0;
|
|
30
|
+
exports.WebhookSubscriptionsApi = exports.WebhookSubscriptionsApiFactory = exports.WebhookSubscriptionsApiFp = exports.WebhookSubscriptionsApiAxiosParamCreator = exports.TranslationInspectionsApi = exports.TranslationInspectionsApiFactory = exports.TranslationInspectionsApiFp = void 0;
|
|
31
31
|
const axios_1 = __importDefault(require("axios"));
|
|
32
32
|
// Some imports not used depending on template conditions
|
|
33
33
|
// @ts-ignore
|
|
@@ -62,6 +62,12 @@ exports.ClearTransformOperationTypeEnum = {
|
|
|
62
62
|
exports.DeselectOperationTypeEnum = {
|
|
63
63
|
Deselect: 'deselect',
|
|
64
64
|
};
|
|
65
|
+
exports.ExportRelationshipDataTypeEnum = {
|
|
66
|
+
Scene: 'scene',
|
|
67
|
+
};
|
|
68
|
+
exports.ExportStateRelationshipDataTypeEnum = {
|
|
69
|
+
SceneViewState: 'scene-view-state',
|
|
70
|
+
};
|
|
65
71
|
exports.FileRelationshipDataTypeEnum = {
|
|
66
72
|
File: 'file',
|
|
67
73
|
};
|
|
@@ -1130,6 +1136,241 @@ class BatchesApi extends base_1.BaseAPI {
|
|
|
1130
1136
|
}
|
|
1131
1137
|
}
|
|
1132
1138
|
exports.BatchesApi = BatchesApi;
|
|
1139
|
+
/**
|
|
1140
|
+
* ExportsApi - axios parameter creator
|
|
1141
|
+
* @export
|
|
1142
|
+
*/
|
|
1143
|
+
const ExportsApiAxiosParamCreator = function (configuration) {
|
|
1144
|
+
return {
|
|
1145
|
+
/**
|
|
1146
|
+
* Create an `export`. This API is asynchronous, returning the location of a `queued-export`. Check the status via the getQueuedExport API.
|
|
1147
|
+
* @param {CreateExportRequest} createExportRequest
|
|
1148
|
+
* @param {*} [options] Override http request option.
|
|
1149
|
+
* @throws {RequiredError}
|
|
1150
|
+
*/
|
|
1151
|
+
createExport: (createExportRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1152
|
+
// verify required parameter 'createExportRequest' is not null or undefined
|
|
1153
|
+
(0, common_1.assertParamExists)('createExport', 'createExportRequest', createExportRequest);
|
|
1154
|
+
const localVarPath = `/exports`;
|
|
1155
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1156
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1157
|
+
let baseOptions;
|
|
1158
|
+
if (configuration) {
|
|
1159
|
+
baseOptions = configuration.baseOptions;
|
|
1160
|
+
}
|
|
1161
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1162
|
+
const localVarHeaderParameter = {};
|
|
1163
|
+
const localVarQueryParameter = {};
|
|
1164
|
+
// authentication OAuth2 required
|
|
1165
|
+
// oauth required
|
|
1166
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1167
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1168
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1169
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1170
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1171
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createExportRequest, localVarRequestOptions, configuration);
|
|
1172
|
+
return {
|
|
1173
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1174
|
+
options: localVarRequestOptions,
|
|
1175
|
+
};
|
|
1176
|
+
}),
|
|
1177
|
+
/**
|
|
1178
|
+
* Get an `export` by ID.
|
|
1179
|
+
* @param {string} id The `export` ID.
|
|
1180
|
+
* @param {*} [options] Override http request option.
|
|
1181
|
+
* @throws {RequiredError}
|
|
1182
|
+
*/
|
|
1183
|
+
getExport: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1184
|
+
// verify required parameter 'id' is not null or undefined
|
|
1185
|
+
(0, common_1.assertParamExists)('getExport', 'id', id);
|
|
1186
|
+
const localVarPath = `/exports/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1187
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1188
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1189
|
+
let baseOptions;
|
|
1190
|
+
if (configuration) {
|
|
1191
|
+
baseOptions = configuration.baseOptions;
|
|
1192
|
+
}
|
|
1193
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1194
|
+
const localVarHeaderParameter = {};
|
|
1195
|
+
const localVarQueryParameter = {};
|
|
1196
|
+
// authentication OAuth2 required
|
|
1197
|
+
// oauth required
|
|
1198
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1199
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1200
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1201
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1202
|
+
return {
|
|
1203
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1204
|
+
options: localVarRequestOptions,
|
|
1205
|
+
};
|
|
1206
|
+
}),
|
|
1207
|
+
/**
|
|
1208
|
+
* Get a `queued-export`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `export`.
|
|
1209
|
+
* @param {string} id The `queued-export` ID.
|
|
1210
|
+
* @param {*} [options] Override http request option.
|
|
1211
|
+
* @throws {RequiredError}
|
|
1212
|
+
*/
|
|
1213
|
+
getQueuedExport: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1214
|
+
// verify required parameter 'id' is not null or undefined
|
|
1215
|
+
(0, common_1.assertParamExists)('getQueuedExport', 'id', id);
|
|
1216
|
+
const localVarPath = `/queued-exports/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1218
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1219
|
+
let baseOptions;
|
|
1220
|
+
if (configuration) {
|
|
1221
|
+
baseOptions = configuration.baseOptions;
|
|
1222
|
+
}
|
|
1223
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1224
|
+
const localVarHeaderParameter = {};
|
|
1225
|
+
const localVarQueryParameter = {};
|
|
1226
|
+
// authentication OAuth2 required
|
|
1227
|
+
// oauth required
|
|
1228
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1229
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1230
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1231
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1232
|
+
return {
|
|
1233
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1234
|
+
options: localVarRequestOptions,
|
|
1235
|
+
};
|
|
1236
|
+
}),
|
|
1237
|
+
};
|
|
1238
|
+
};
|
|
1239
|
+
exports.ExportsApiAxiosParamCreator = ExportsApiAxiosParamCreator;
|
|
1240
|
+
/**
|
|
1241
|
+
* ExportsApi - functional programming interface
|
|
1242
|
+
* @export
|
|
1243
|
+
*/
|
|
1244
|
+
const ExportsApiFp = function (configuration) {
|
|
1245
|
+
const localVarAxiosParamCreator = (0, exports.ExportsApiAxiosParamCreator)(configuration);
|
|
1246
|
+
return {
|
|
1247
|
+
/**
|
|
1248
|
+
* Create an `export`. This API is asynchronous, returning the location of a `queued-export`. Check the status via the getQueuedExport API.
|
|
1249
|
+
* @param {CreateExportRequest} createExportRequest
|
|
1250
|
+
* @param {*} [options] Override http request option.
|
|
1251
|
+
* @throws {RequiredError}
|
|
1252
|
+
*/
|
|
1253
|
+
createExport(createExportRequest, options) {
|
|
1254
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1255
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createExport(createExportRequest, options);
|
|
1256
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1257
|
+
});
|
|
1258
|
+
},
|
|
1259
|
+
/**
|
|
1260
|
+
* Get an `export` by ID.
|
|
1261
|
+
* @param {string} id The `export` ID.
|
|
1262
|
+
* @param {*} [options] Override http request option.
|
|
1263
|
+
* @throws {RequiredError}
|
|
1264
|
+
*/
|
|
1265
|
+
getExport(id, options) {
|
|
1266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1267
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getExport(id, options);
|
|
1268
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1269
|
+
});
|
|
1270
|
+
},
|
|
1271
|
+
/**
|
|
1272
|
+
* Get a `queued-export`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `export`.
|
|
1273
|
+
* @param {string} id The `queued-export` ID.
|
|
1274
|
+
* @param {*} [options] Override http request option.
|
|
1275
|
+
* @throws {RequiredError}
|
|
1276
|
+
*/
|
|
1277
|
+
getQueuedExport(id, options) {
|
|
1278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1279
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQueuedExport(id, options);
|
|
1280
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1281
|
+
});
|
|
1282
|
+
},
|
|
1283
|
+
};
|
|
1284
|
+
};
|
|
1285
|
+
exports.ExportsApiFp = ExportsApiFp;
|
|
1286
|
+
/**
|
|
1287
|
+
* ExportsApi - factory interface
|
|
1288
|
+
* @export
|
|
1289
|
+
*/
|
|
1290
|
+
const ExportsApiFactory = function (configuration, basePath, axios) {
|
|
1291
|
+
const localVarFp = (0, exports.ExportsApiFp)(configuration);
|
|
1292
|
+
return {
|
|
1293
|
+
/**
|
|
1294
|
+
* Create an `export`. This API is asynchronous, returning the location of a `queued-export`. Check the status via the getQueuedExport API.
|
|
1295
|
+
* @param {CreateExportRequest} createExportRequest
|
|
1296
|
+
* @param {*} [options] Override http request option.
|
|
1297
|
+
* @throws {RequiredError}
|
|
1298
|
+
*/
|
|
1299
|
+
createExport(createExportRequest, options) {
|
|
1300
|
+
return localVarFp
|
|
1301
|
+
.createExport(createExportRequest, options)
|
|
1302
|
+
.then((request) => request(axios, basePath));
|
|
1303
|
+
},
|
|
1304
|
+
/**
|
|
1305
|
+
* Get an `export` by ID.
|
|
1306
|
+
* @param {string} id The `export` ID.
|
|
1307
|
+
* @param {*} [options] Override http request option.
|
|
1308
|
+
* @throws {RequiredError}
|
|
1309
|
+
*/
|
|
1310
|
+
getExport(id, options) {
|
|
1311
|
+
return localVarFp
|
|
1312
|
+
.getExport(id, options)
|
|
1313
|
+
.then((request) => request(axios, basePath));
|
|
1314
|
+
},
|
|
1315
|
+
/**
|
|
1316
|
+
* Get a `queued-export`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `export`.
|
|
1317
|
+
* @param {string} id The `queued-export` ID.
|
|
1318
|
+
* @param {*} [options] Override http request option.
|
|
1319
|
+
* @throws {RequiredError}
|
|
1320
|
+
*/
|
|
1321
|
+
getQueuedExport(id, options) {
|
|
1322
|
+
return localVarFp
|
|
1323
|
+
.getQueuedExport(id, options)
|
|
1324
|
+
.then((request) => request(axios, basePath));
|
|
1325
|
+
},
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
exports.ExportsApiFactory = ExportsApiFactory;
|
|
1329
|
+
/**
|
|
1330
|
+
* ExportsApi - object-oriented interface
|
|
1331
|
+
* @export
|
|
1332
|
+
* @class ExportsApi
|
|
1333
|
+
* @extends {BaseAPI}
|
|
1334
|
+
*/
|
|
1335
|
+
class ExportsApi extends base_1.BaseAPI {
|
|
1336
|
+
/**
|
|
1337
|
+
* Create an `export`. This API is asynchronous, returning the location of a `queued-export`. Check the status via the getQueuedExport API.
|
|
1338
|
+
* @param {ExportsApiCreateExportRequest} requestParameters Request parameters.
|
|
1339
|
+
* @param {*} [options] Override http request option.
|
|
1340
|
+
* @throws {RequiredError}
|
|
1341
|
+
* @memberof ExportsApi
|
|
1342
|
+
*/
|
|
1343
|
+
createExport(requestParameters, options) {
|
|
1344
|
+
return (0, exports.ExportsApiFp)(this.configuration)
|
|
1345
|
+
.createExport(requestParameters.createExportRequest, options)
|
|
1346
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Get an `export` by ID.
|
|
1350
|
+
* @param {ExportsApiGetExportRequest} requestParameters Request parameters.
|
|
1351
|
+
* @param {*} [options] Override http request option.
|
|
1352
|
+
* @throws {RequiredError}
|
|
1353
|
+
* @memberof ExportsApi
|
|
1354
|
+
*/
|
|
1355
|
+
getExport(requestParameters, options) {
|
|
1356
|
+
return (0, exports.ExportsApiFp)(this.configuration)
|
|
1357
|
+
.getExport(requestParameters.id, options)
|
|
1358
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* Get a `queued-export`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `export`.
|
|
1362
|
+
* @param {ExportsApiGetQueuedExportRequest} requestParameters Request parameters.
|
|
1363
|
+
* @param {*} [options] Override http request option.
|
|
1364
|
+
* @throws {RequiredError}
|
|
1365
|
+
* @memberof ExportsApi
|
|
1366
|
+
*/
|
|
1367
|
+
getQueuedExport(requestParameters, options) {
|
|
1368
|
+
return (0, exports.ExportsApiFp)(this.configuration)
|
|
1369
|
+
.getQueuedExport(requestParameters.id, options)
|
|
1370
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
exports.ExportsApi = ExportsApi;
|
|
1133
1374
|
/**
|
|
1134
1375
|
* FilesApi - axios parameter creator
|
|
1135
1376
|
* @export
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CreateExportRequest, Export } from '../../index';
|
|
2
|
+
import { BaseReq } from '../index';
|
|
3
|
+
/**
|
|
4
|
+
* Create export arguments.
|
|
5
|
+
*/
|
|
6
|
+
export interface CreateExportReq extends BaseReq {
|
|
7
|
+
/** Function returning a {@link CreateExportRequest}. */
|
|
8
|
+
readonly createExportReq: () => CreateExportRequest;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Create an export.
|
|
12
|
+
*
|
|
13
|
+
* @param args - The {@link CreateExportReq}.
|
|
14
|
+
*/
|
|
15
|
+
export declare function createExport({ client, createExportReq, onMsg, verbose, }: CreateExportReq): Promise<Export>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.createExport = void 0;
|
|
13
|
+
const index_1 = require("../index");
|
|
14
|
+
/**
|
|
15
|
+
* Create an export.
|
|
16
|
+
*
|
|
17
|
+
* @param args - The {@link CreateExportReq}.
|
|
18
|
+
*/
|
|
19
|
+
function createExport({ client, createExportReq, onMsg = console.log, verbose, }) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const res = yield client.exports.createExport({
|
|
22
|
+
createExportRequest: createExportReq(),
|
|
23
|
+
});
|
|
24
|
+
const queuedId = res.data.data.id;
|
|
25
|
+
if (verbose)
|
|
26
|
+
onMsg(`Created export with queued-export ${queuedId}`);
|
|
27
|
+
const pollRes = yield (0, index_1.pollQueuedJob)({
|
|
28
|
+
id: queuedId,
|
|
29
|
+
getQueuedJob: (id) => client.exports.getQueuedExport({ id }),
|
|
30
|
+
polling: { intervalMs: index_1.PollIntervalMs, maxAttempts: index_1.MaxAttempts },
|
|
31
|
+
});
|
|
32
|
+
if ((0, index_1.isPollError)(pollRes.res))
|
|
33
|
+
(0, index_1.throwOnError)(pollRes);
|
|
34
|
+
if (verbose)
|
|
35
|
+
onMsg(`Completed export ${pollRes.res.data.id}`);
|
|
36
|
+
return pollRes.res;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
exports.createExport = createExport;
|
|
@@ -10,6 +10,7 @@ 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("./exports"), exports);
|
|
13
14
|
__exportStar(require("./files"), exports);
|
|
14
15
|
__exportStar(require("./parts"), exports);
|
|
15
16
|
__exportStar(require("./scenes"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.
|
|
1
|
+
export declare const version = "0.17.2";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { AccountsApi, ApplicationsApi, BatchesApi, Configuration, FilesApi, GeometrySetsApi, HitsApi, Oauth2Api, OAuth2Token, PartRevisionsApi, PartsApi, SceneAlterationsApi, SceneItemOverridesApi, SceneItemsApi, ScenesApi, SceneViewsApi, SceneViewStatesApi, StreamKeysApi, TranslationInspectionsApi, WebhookSubscriptionsApi } from '../index';
|
|
2
|
+
import { AccountsApi, ApplicationsApi, BatchesApi, Configuration, ExportsApi, FilesApi, GeometrySetsApi, HitsApi, Oauth2Api, OAuth2Token, PartRevisionsApi, PartsApi, SceneAlterationsApi, SceneItemOverridesApi, SceneItemsApi, ScenesApi, SceneViewsApi, SceneViewStatesApi, StreamKeysApi, TranslationInspectionsApi, WebhookSubscriptionsApi } from '../index';
|
|
3
3
|
import { BasePath } from './index';
|
|
4
4
|
/**
|
|
5
5
|
* Static `build` function arguments.
|
|
@@ -72,6 +72,7 @@ export declare class VertexClient {
|
|
|
72
72
|
accounts: AccountsApi;
|
|
73
73
|
applications: ApplicationsApi;
|
|
74
74
|
batches: BatchesApi;
|
|
75
|
+
exports: ExportsApi;
|
|
75
76
|
files: FilesApi;
|
|
76
77
|
geometrySets: GeometrySetsApi;
|
|
77
78
|
hits: HitsApi;
|
|
@@ -79,6 +79,7 @@ class VertexClient {
|
|
|
79
79
|
this.accounts = new index_1.AccountsApi(this.config, undefined, axiosInst);
|
|
80
80
|
this.applications = new index_1.ApplicationsApi(this.config, undefined, axiosInst);
|
|
81
81
|
this.batches = new index_1.BatchesApi(this.config, undefined, axiosInst);
|
|
82
|
+
this.exports = new index_1.ExportsApi(this.config, undefined, axiosInst);
|
|
82
83
|
this.files = new index_1.FilesApi(this.config, undefined, axiosInst);
|
|
83
84
|
this.geometrySets = new index_1.GeometrySetsApi(this.config, undefined, axiosInst);
|
|
84
85
|
this.hits = new index_1.HitsApi(this.config, undefined, axiosInst);
|