@vertexvis/api-client-node 0.14.7 → 0.15.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 +1380 -183
- package/dist/cjs/api.js +941 -25
- package/dist/cjs/client/helpers/files.d.ts +7 -4
- package/dist/cjs/client/helpers/files.js +24 -4
- package/dist/cjs/client/helpers/parts.d.ts +6 -3
- package/dist/cjs/client/helpers/parts.js +2 -1
- package/dist/cjs/client/helpers/scenes.js +1 -1
- package/dist/cjs/client/index.d.ts +1 -1
- 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 +4 -2
- package/dist/cjs/client/vertex-client.js +2 -0
- package/dist/esm/api.d.ts +1380 -183
- package/dist/esm/api.js +930 -23
- package/dist/esm/client/helpers/files.d.ts +7 -4
- package/dist/esm/client/helpers/files.js +21 -4
- package/dist/esm/client/helpers/parts.d.ts +6 -3
- package/dist/esm/client/helpers/parts.js +2 -1
- package/dist/esm/client/helpers/scenes.js +1 -1
- package/dist/esm/client/index.d.ts +1 -1
- 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 +4 -2
- package/dist/esm/client/vertex-client.js +3 -1
- package/package.json +1 -1
package/dist/cjs/api.js
CHANGED
|
@@ -25,8 +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.
|
|
28
|
+
exports.HitsApiAxiosParamCreator = exports.GeometrySetsApi = exports.GeometrySetsApiFactory = exports.GeometrySetsApiFp = exports.GeometrySetsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = 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.DeselectOperationTypeEnum = exports.ClearTransformOperationTypeEnum = exports.ClearMaterialOperationTypeEnum = exports.ChangeVisibilityOperationTypeEnum = exports.ChangeTransformOperationTypeEnum = exports.ChangeMaterialOperationTypeEnum = exports.CameraFitTypeEnum = exports.BatchOperationRefTypeEnum = exports.BatchOperationOpEnum = void 0;
|
|
29
|
+
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.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 = void 0;
|
|
30
|
+
exports.WebhookSubscriptionsApi = void 0;
|
|
30
31
|
const axios_1 = __importDefault(require("axios"));
|
|
31
32
|
// Some imports not used depending on template conditions
|
|
32
33
|
// @ts-ignore
|
|
@@ -233,6 +234,15 @@ var SelectOperationTypeEnum;
|
|
|
233
234
|
(function (SelectOperationTypeEnum) {
|
|
234
235
|
SelectOperationTypeEnum["Select"] = "select";
|
|
235
236
|
})(SelectOperationTypeEnum = exports.SelectOperationTypeEnum || (exports.SelectOperationTypeEnum = {}));
|
|
237
|
+
/**
|
|
238
|
+
* @export
|
|
239
|
+
* @enum {string}
|
|
240
|
+
*/
|
|
241
|
+
var UpdateAccountRequestDataAttributesStatusEnum;
|
|
242
|
+
(function (UpdateAccountRequestDataAttributesStatusEnum) {
|
|
243
|
+
UpdateAccountRequestDataAttributesStatusEnum["Active"] = "active";
|
|
244
|
+
UpdateAccountRequestDataAttributesStatusEnum["Disabled"] = "disabled";
|
|
245
|
+
})(UpdateAccountRequestDataAttributesStatusEnum = exports.UpdateAccountRequestDataAttributesStatusEnum || (exports.UpdateAccountRequestDataAttributesStatusEnum = {}));
|
|
236
246
|
/**
|
|
237
247
|
* @export
|
|
238
248
|
* @enum {string}
|
|
@@ -244,30 +254,788 @@ var UpdateSceneRequestDataAttributesStateEnum;
|
|
|
244
254
|
})(UpdateSceneRequestDataAttributesStateEnum = exports.UpdateSceneRequestDataAttributesStateEnum || (exports.UpdateSceneRequestDataAttributesStateEnum = {}));
|
|
245
255
|
/**
|
|
246
256
|
* @export
|
|
247
|
-
* @enum {string}
|
|
257
|
+
* @enum {string}
|
|
258
|
+
*/
|
|
259
|
+
var UpdateWebhookSubscriptionRequestDataAttributesStatusEnum;
|
|
260
|
+
(function (UpdateWebhookSubscriptionRequestDataAttributesStatusEnum) {
|
|
261
|
+
UpdateWebhookSubscriptionRequestDataAttributesStatusEnum["Active"] = "active";
|
|
262
|
+
UpdateWebhookSubscriptionRequestDataAttributesStatusEnum["Paused"] = "paused";
|
|
263
|
+
})(UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = exports.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum || (exports.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = {}));
|
|
264
|
+
/**
|
|
265
|
+
* @export
|
|
266
|
+
* @enum {string}
|
|
267
|
+
*/
|
|
268
|
+
var WebhookEventDataRelationshipsOwnerDataTypeEnum;
|
|
269
|
+
(function (WebhookEventDataRelationshipsOwnerDataTypeEnum) {
|
|
270
|
+
WebhookEventDataRelationshipsOwnerDataTypeEnum["Account"] = "account";
|
|
271
|
+
})(WebhookEventDataRelationshipsOwnerDataTypeEnum = exports.WebhookEventDataRelationshipsOwnerDataTypeEnum || (exports.WebhookEventDataRelationshipsOwnerDataTypeEnum = {}));
|
|
272
|
+
/**
|
|
273
|
+
* @export
|
|
274
|
+
* @enum {string}
|
|
275
|
+
*/
|
|
276
|
+
var WebhookSubscriptionDataAttributesStatusEnum;
|
|
277
|
+
(function (WebhookSubscriptionDataAttributesStatusEnum) {
|
|
278
|
+
WebhookSubscriptionDataAttributesStatusEnum["Active"] = "active";
|
|
279
|
+
WebhookSubscriptionDataAttributesStatusEnum["Paused"] = "paused";
|
|
280
|
+
})(WebhookSubscriptionDataAttributesStatusEnum = exports.WebhookSubscriptionDataAttributesStatusEnum || (exports.WebhookSubscriptionDataAttributesStatusEnum = {}));
|
|
281
|
+
/**
|
|
282
|
+
* AccountsApi - axios parameter creator
|
|
283
|
+
* @export
|
|
284
|
+
*/
|
|
285
|
+
const AccountsApiAxiosParamCreator = function (configuration) {
|
|
286
|
+
return {
|
|
287
|
+
/**
|
|
288
|
+
* Create an `account`.
|
|
289
|
+
* @param {CreateAccountRequest} createAccountRequest
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
createAccount: (createAccountRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
294
|
+
// verify required parameter 'createAccountRequest' is not null or undefined
|
|
295
|
+
(0, common_1.assertParamExists)('createAccount', 'createAccountRequest', createAccountRequest);
|
|
296
|
+
const localVarPath = `/accounts`;
|
|
297
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
298
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
299
|
+
let baseOptions;
|
|
300
|
+
if (configuration) {
|
|
301
|
+
baseOptions = configuration.baseOptions;
|
|
302
|
+
}
|
|
303
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
304
|
+
const localVarHeaderParameter = {};
|
|
305
|
+
const localVarQueryParameter = {};
|
|
306
|
+
// authentication OAuth2Internal required
|
|
307
|
+
// oauth required
|
|
308
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2Internal', ['accounts.*', 'accounts.write'], configuration);
|
|
309
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
310
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
311
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
313
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAccountRequest, localVarRequestOptions, configuration);
|
|
314
|
+
return {
|
|
315
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
316
|
+
options: localVarRequestOptions,
|
|
317
|
+
};
|
|
318
|
+
}),
|
|
319
|
+
/**
|
|
320
|
+
* Create an `application` for an `account`.
|
|
321
|
+
* @param {string} id The `account` ID.
|
|
322
|
+
* @param {AdminCreateApplicationRequest} adminCreateApplicationRequest
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
createApplicationForAccount: (id, adminCreateApplicationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
327
|
+
// verify required parameter 'id' is not null or undefined
|
|
328
|
+
(0, common_1.assertParamExists)('createApplicationForAccount', 'id', id);
|
|
329
|
+
// verify required parameter 'adminCreateApplicationRequest' is not null or undefined
|
|
330
|
+
(0, common_1.assertParamExists)('createApplicationForAccount', 'adminCreateApplicationRequest', adminCreateApplicationRequest);
|
|
331
|
+
const localVarPath = `/accounts/{id}/applications`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
332
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
333
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
334
|
+
let baseOptions;
|
|
335
|
+
if (configuration) {
|
|
336
|
+
baseOptions = configuration.baseOptions;
|
|
337
|
+
}
|
|
338
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
339
|
+
const localVarHeaderParameter = {};
|
|
340
|
+
const localVarQueryParameter = {};
|
|
341
|
+
// authentication OAuth2Internal required
|
|
342
|
+
// oauth required
|
|
343
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2Internal', ['accounts.*', 'accounts.write'], configuration);
|
|
344
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
345
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
346
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
347
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
348
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminCreateApplicationRequest, localVarRequestOptions, configuration);
|
|
349
|
+
return {
|
|
350
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
351
|
+
options: localVarRequestOptions,
|
|
352
|
+
};
|
|
353
|
+
}),
|
|
354
|
+
/**
|
|
355
|
+
* Delete an `account`.
|
|
356
|
+
* @param {string} id The `account` ID.
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
deleteAccount: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
// verify required parameter 'id' is not null or undefined
|
|
362
|
+
(0, common_1.assertParamExists)('deleteAccount', 'id', id);
|
|
363
|
+
const localVarPath = `/accounts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
364
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
365
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
366
|
+
let baseOptions;
|
|
367
|
+
if (configuration) {
|
|
368
|
+
baseOptions = configuration.baseOptions;
|
|
369
|
+
}
|
|
370
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
371
|
+
const localVarHeaderParameter = {};
|
|
372
|
+
const localVarQueryParameter = {};
|
|
373
|
+
// authentication OAuth2Internal required
|
|
374
|
+
// oauth required
|
|
375
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2Internal', ['accounts.*', 'accounts.write'], configuration);
|
|
376
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
377
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
379
|
+
return {
|
|
380
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
381
|
+
options: localVarRequestOptions,
|
|
382
|
+
};
|
|
383
|
+
}),
|
|
384
|
+
/**
|
|
385
|
+
* Get an `account`.
|
|
386
|
+
* @param {string} id The `account` ID.
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
*/
|
|
390
|
+
getAccount: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
391
|
+
// verify required parameter 'id' is not null or undefined
|
|
392
|
+
(0, common_1.assertParamExists)('getAccount', 'id', id);
|
|
393
|
+
const localVarPath = `/accounts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
394
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
395
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
396
|
+
let baseOptions;
|
|
397
|
+
if (configuration) {
|
|
398
|
+
baseOptions = configuration.baseOptions;
|
|
399
|
+
}
|
|
400
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
401
|
+
const localVarHeaderParameter = {};
|
|
402
|
+
const localVarQueryParameter = {};
|
|
403
|
+
// authentication OAuth2Internal required
|
|
404
|
+
// oauth required
|
|
405
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2Internal', ['accounts.*', 'accounts.read'], configuration);
|
|
406
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
407
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
408
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
409
|
+
return {
|
|
410
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
411
|
+
options: localVarRequestOptions,
|
|
412
|
+
};
|
|
413
|
+
}),
|
|
414
|
+
/**
|
|
415
|
+
* Update an `account`.
|
|
416
|
+
* @param {string} id The `account` ID.
|
|
417
|
+
* @param {UpdateAccountRequest} updateAccountRequest
|
|
418
|
+
* @param {*} [options] Override http request option.
|
|
419
|
+
* @throws {RequiredError}
|
|
420
|
+
*/
|
|
421
|
+
updateAccount: (id, updateAccountRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
422
|
+
// verify required parameter 'id' is not null or undefined
|
|
423
|
+
(0, common_1.assertParamExists)('updateAccount', 'id', id);
|
|
424
|
+
// verify required parameter 'updateAccountRequest' is not null or undefined
|
|
425
|
+
(0, common_1.assertParamExists)('updateAccount', 'updateAccountRequest', updateAccountRequest);
|
|
426
|
+
const localVarPath = `/accounts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
427
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
428
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
429
|
+
let baseOptions;
|
|
430
|
+
if (configuration) {
|
|
431
|
+
baseOptions = configuration.baseOptions;
|
|
432
|
+
}
|
|
433
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
434
|
+
const localVarHeaderParameter = {};
|
|
435
|
+
const localVarQueryParameter = {};
|
|
436
|
+
// authentication OAuth2Internal required
|
|
437
|
+
// oauth required
|
|
438
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2Internal', ['accounts.*', 'accounts.write'], configuration);
|
|
439
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
440
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
441
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
442
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
443
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateAccountRequest, localVarRequestOptions, configuration);
|
|
444
|
+
return {
|
|
445
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
446
|
+
options: localVarRequestOptions,
|
|
447
|
+
};
|
|
448
|
+
}),
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
|
|
452
|
+
/**
|
|
453
|
+
* AccountsApi - functional programming interface
|
|
454
|
+
* @export
|
|
455
|
+
*/
|
|
456
|
+
const AccountsApiFp = function (configuration) {
|
|
457
|
+
const localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
|
|
458
|
+
return {
|
|
459
|
+
/**
|
|
460
|
+
* Create an `account`.
|
|
461
|
+
* @param {CreateAccountRequest} createAccountRequest
|
|
462
|
+
* @param {*} [options] Override http request option.
|
|
463
|
+
* @throws {RequiredError}
|
|
464
|
+
*/
|
|
465
|
+
createAccount(createAccountRequest, options) {
|
|
466
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
467
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAccount(createAccountRequest, options);
|
|
468
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
469
|
+
});
|
|
470
|
+
},
|
|
471
|
+
/**
|
|
472
|
+
* Create an `application` for an `account`.
|
|
473
|
+
* @param {string} id The `account` ID.
|
|
474
|
+
* @param {AdminCreateApplicationRequest} adminCreateApplicationRequest
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
createApplicationForAccount(id, adminCreateApplicationRequest, options) {
|
|
479
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
480
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplicationForAccount(id, adminCreateApplicationRequest, options);
|
|
481
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
482
|
+
});
|
|
483
|
+
},
|
|
484
|
+
/**
|
|
485
|
+
* Delete an `account`.
|
|
486
|
+
* @param {string} id The `account` ID.
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
deleteAccount(id, options) {
|
|
491
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
492
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAccount(id, options);
|
|
493
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
494
|
+
});
|
|
495
|
+
},
|
|
496
|
+
/**
|
|
497
|
+
* Get an `account`.
|
|
498
|
+
* @param {string} id The `account` ID.
|
|
499
|
+
* @param {*} [options] Override http request option.
|
|
500
|
+
* @throws {RequiredError}
|
|
501
|
+
*/
|
|
502
|
+
getAccount(id, options) {
|
|
503
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
504
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccount(id, options);
|
|
505
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
506
|
+
});
|
|
507
|
+
},
|
|
508
|
+
/**
|
|
509
|
+
* Update an `account`.
|
|
510
|
+
* @param {string} id The `account` ID.
|
|
511
|
+
* @param {UpdateAccountRequest} updateAccountRequest
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
*/
|
|
515
|
+
updateAccount(id, updateAccountRequest, options) {
|
|
516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
517
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAccount(id, updateAccountRequest, options);
|
|
518
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
519
|
+
});
|
|
520
|
+
},
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
exports.AccountsApiFp = AccountsApiFp;
|
|
524
|
+
/**
|
|
525
|
+
* AccountsApi - factory interface
|
|
526
|
+
* @export
|
|
527
|
+
*/
|
|
528
|
+
const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
529
|
+
const localVarFp = (0, exports.AccountsApiFp)(configuration);
|
|
530
|
+
return {
|
|
531
|
+
/**
|
|
532
|
+
* Create an `account`.
|
|
533
|
+
* @param {CreateAccountRequest} createAccountRequest
|
|
534
|
+
* @param {*} [options] Override http request option.
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
*/
|
|
537
|
+
createAccount(createAccountRequest, options) {
|
|
538
|
+
return localVarFp
|
|
539
|
+
.createAccount(createAccountRequest, options)
|
|
540
|
+
.then((request) => request(axios, basePath));
|
|
541
|
+
},
|
|
542
|
+
/**
|
|
543
|
+
* Create an `application` for an `account`.
|
|
544
|
+
* @param {string} id The `account` ID.
|
|
545
|
+
* @param {AdminCreateApplicationRequest} adminCreateApplicationRequest
|
|
546
|
+
* @param {*} [options] Override http request option.
|
|
547
|
+
* @throws {RequiredError}
|
|
548
|
+
*/
|
|
549
|
+
createApplicationForAccount(id, adminCreateApplicationRequest, options) {
|
|
550
|
+
return localVarFp
|
|
551
|
+
.createApplicationForAccount(id, adminCreateApplicationRequest, options)
|
|
552
|
+
.then((request) => request(axios, basePath));
|
|
553
|
+
},
|
|
554
|
+
/**
|
|
555
|
+
* Delete an `account`.
|
|
556
|
+
* @param {string} id The `account` ID.
|
|
557
|
+
* @param {*} [options] Override http request option.
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
*/
|
|
560
|
+
deleteAccount(id, options) {
|
|
561
|
+
return localVarFp
|
|
562
|
+
.deleteAccount(id, options)
|
|
563
|
+
.then((request) => request(axios, basePath));
|
|
564
|
+
},
|
|
565
|
+
/**
|
|
566
|
+
* Get an `account`.
|
|
567
|
+
* @param {string} id The `account` ID.
|
|
568
|
+
* @param {*} [options] Override http request option.
|
|
569
|
+
* @throws {RequiredError}
|
|
570
|
+
*/
|
|
571
|
+
getAccount(id, options) {
|
|
572
|
+
return localVarFp
|
|
573
|
+
.getAccount(id, options)
|
|
574
|
+
.then((request) => request(axios, basePath));
|
|
575
|
+
},
|
|
576
|
+
/**
|
|
577
|
+
* Update an `account`.
|
|
578
|
+
* @param {string} id The `account` ID.
|
|
579
|
+
* @param {UpdateAccountRequest} updateAccountRequest
|
|
580
|
+
* @param {*} [options] Override http request option.
|
|
581
|
+
* @throws {RequiredError}
|
|
582
|
+
*/
|
|
583
|
+
updateAccount(id, updateAccountRequest, options) {
|
|
584
|
+
return localVarFp
|
|
585
|
+
.updateAccount(id, updateAccountRequest, options)
|
|
586
|
+
.then((request) => request(axios, basePath));
|
|
587
|
+
},
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
exports.AccountsApiFactory = AccountsApiFactory;
|
|
591
|
+
/**
|
|
592
|
+
* AccountsApi - object-oriented interface
|
|
593
|
+
* @export
|
|
594
|
+
* @class AccountsApi
|
|
595
|
+
* @extends {BaseAPI}
|
|
596
|
+
*/
|
|
597
|
+
class AccountsApi extends base_1.BaseAPI {
|
|
598
|
+
/**
|
|
599
|
+
* Create an `account`.
|
|
600
|
+
* @param {AccountsApiCreateAccountRequest} requestParameters Request parameters.
|
|
601
|
+
* @param {*} [options] Override http request option.
|
|
602
|
+
* @throws {RequiredError}
|
|
603
|
+
* @memberof AccountsApi
|
|
604
|
+
*/
|
|
605
|
+
createAccount(requestParameters, options) {
|
|
606
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
607
|
+
.createAccount(requestParameters.createAccountRequest, options)
|
|
608
|
+
.then((request) => request(this.axios, this.basePath));
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* Create an `application` for an `account`.
|
|
612
|
+
* @param {AccountsApiCreateApplicationForAccountRequest} requestParameters Request parameters.
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
* @memberof AccountsApi
|
|
616
|
+
*/
|
|
617
|
+
createApplicationForAccount(requestParameters, options) {
|
|
618
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
619
|
+
.createApplicationForAccount(requestParameters.id, requestParameters.adminCreateApplicationRequest, options)
|
|
620
|
+
.then((request) => request(this.axios, this.basePath));
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Delete an `account`.
|
|
624
|
+
* @param {AccountsApiDeleteAccountRequest} requestParameters Request parameters.
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
* @memberof AccountsApi
|
|
628
|
+
*/
|
|
629
|
+
deleteAccount(requestParameters, options) {
|
|
630
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
631
|
+
.deleteAccount(requestParameters.id, options)
|
|
632
|
+
.then((request) => request(this.axios, this.basePath));
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Get an `account`.
|
|
636
|
+
* @param {AccountsApiGetAccountRequest} requestParameters Request parameters.
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
* @memberof AccountsApi
|
|
640
|
+
*/
|
|
641
|
+
getAccount(requestParameters, options) {
|
|
642
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
643
|
+
.getAccount(requestParameters.id, options)
|
|
644
|
+
.then((request) => request(this.axios, this.basePath));
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Update an `account`.
|
|
648
|
+
* @param {AccountsApiUpdateAccountRequest} requestParameters Request parameters.
|
|
649
|
+
* @param {*} [options] Override http request option.
|
|
650
|
+
* @throws {RequiredError}
|
|
651
|
+
* @memberof AccountsApi
|
|
652
|
+
*/
|
|
653
|
+
updateAccount(requestParameters, options) {
|
|
654
|
+
return (0, exports.AccountsApiFp)(this.configuration)
|
|
655
|
+
.updateAccount(requestParameters.id, requestParameters.updateAccountRequest, options)
|
|
656
|
+
.then((request) => request(this.axios, this.basePath));
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
exports.AccountsApi = AccountsApi;
|
|
660
|
+
/**
|
|
661
|
+
* ApplicationsApi - axios parameter creator
|
|
662
|
+
* @export
|
|
663
|
+
*/
|
|
664
|
+
const ApplicationsApiAxiosParamCreator = function (configuration) {
|
|
665
|
+
return {
|
|
666
|
+
/**
|
|
667
|
+
* Create an OAuth2 `application`.
|
|
668
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
669
|
+
* @param {*} [options] Override http request option.
|
|
670
|
+
* @throws {RequiredError}
|
|
671
|
+
*/
|
|
672
|
+
createApplication: (createApplicationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
673
|
+
// verify required parameter 'createApplicationRequest' is not null or undefined
|
|
674
|
+
(0, common_1.assertParamExists)('createApplication', 'createApplicationRequest', createApplicationRequest);
|
|
675
|
+
const localVarPath = `/applications`;
|
|
676
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
677
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
678
|
+
let baseOptions;
|
|
679
|
+
if (configuration) {
|
|
680
|
+
baseOptions = configuration.baseOptions;
|
|
681
|
+
}
|
|
682
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
683
|
+
const localVarHeaderParameter = {};
|
|
684
|
+
const localVarQueryParameter = {};
|
|
685
|
+
// authentication OAuth2 required
|
|
686
|
+
// oauth required
|
|
687
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
688
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
689
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
690
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
691
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
692
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createApplicationRequest, localVarRequestOptions, configuration);
|
|
693
|
+
return {
|
|
694
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
695
|
+
options: localVarRequestOptions,
|
|
696
|
+
};
|
|
697
|
+
}),
|
|
698
|
+
/**
|
|
699
|
+
* Delete an `application`.
|
|
700
|
+
* @param {string} id The `application` ID.
|
|
701
|
+
* @param {*} [options] Override http request option.
|
|
702
|
+
* @throws {RequiredError}
|
|
703
|
+
*/
|
|
704
|
+
deleteApplication: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
705
|
+
// verify required parameter 'id' is not null or undefined
|
|
706
|
+
(0, common_1.assertParamExists)('deleteApplication', 'id', id);
|
|
707
|
+
const localVarPath = `/applications/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
708
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
709
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
710
|
+
let baseOptions;
|
|
711
|
+
if (configuration) {
|
|
712
|
+
baseOptions = configuration.baseOptions;
|
|
713
|
+
}
|
|
714
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
715
|
+
const localVarHeaderParameter = {};
|
|
716
|
+
const localVarQueryParameter = {};
|
|
717
|
+
// authentication OAuth2 required
|
|
718
|
+
// oauth required
|
|
719
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
720
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
721
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
722
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
723
|
+
return {
|
|
724
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
725
|
+
options: localVarRequestOptions,
|
|
726
|
+
};
|
|
727
|
+
}),
|
|
728
|
+
/**
|
|
729
|
+
* Get an `application`.
|
|
730
|
+
* @param {string} id The `application` ID.
|
|
731
|
+
* @param {*} [options] Override http request option.
|
|
732
|
+
* @throws {RequiredError}
|
|
733
|
+
*/
|
|
734
|
+
getApplication: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
735
|
+
// verify required parameter 'id' is not null or undefined
|
|
736
|
+
(0, common_1.assertParamExists)('getApplication', 'id', id);
|
|
737
|
+
const localVarPath = `/applications/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
738
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
739
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
740
|
+
let baseOptions;
|
|
741
|
+
if (configuration) {
|
|
742
|
+
baseOptions = configuration.baseOptions;
|
|
743
|
+
}
|
|
744
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
745
|
+
const localVarHeaderParameter = {};
|
|
746
|
+
const localVarQueryParameter = {};
|
|
747
|
+
// authentication OAuth2 required
|
|
748
|
+
// oauth required
|
|
749
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
750
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
751
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
752
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
753
|
+
return {
|
|
754
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
755
|
+
options: localVarRequestOptions,
|
|
756
|
+
};
|
|
757
|
+
}),
|
|
758
|
+
/**
|
|
759
|
+
* Get `applications`.
|
|
760
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
761
|
+
* @param {number} [pageSize] The number of items to return.
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
*/
|
|
765
|
+
getApplications: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
766
|
+
const localVarPath = `/applications`;
|
|
767
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
768
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
769
|
+
let baseOptions;
|
|
770
|
+
if (configuration) {
|
|
771
|
+
baseOptions = configuration.baseOptions;
|
|
772
|
+
}
|
|
773
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
774
|
+
const localVarHeaderParameter = {};
|
|
775
|
+
const localVarQueryParameter = {};
|
|
776
|
+
// authentication OAuth2 required
|
|
777
|
+
// oauth required
|
|
778
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
779
|
+
if (pageCursor !== undefined) {
|
|
780
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
781
|
+
}
|
|
782
|
+
if (pageSize !== undefined) {
|
|
783
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
784
|
+
}
|
|
785
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
786
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
787
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
788
|
+
return {
|
|
789
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
790
|
+
options: localVarRequestOptions,
|
|
791
|
+
};
|
|
792
|
+
}),
|
|
793
|
+
/**
|
|
794
|
+
* Update an `application`.
|
|
795
|
+
* @param {string} id The `application` ID.
|
|
796
|
+
* @param {UpdateApplicationRequest} updateApplicationRequest
|
|
797
|
+
* @param {*} [options] Override http request option.
|
|
798
|
+
* @throws {RequiredError}
|
|
799
|
+
*/
|
|
800
|
+
updateApplication: (id, updateApplicationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
801
|
+
// verify required parameter 'id' is not null or undefined
|
|
802
|
+
(0, common_1.assertParamExists)('updateApplication', 'id', id);
|
|
803
|
+
// verify required parameter 'updateApplicationRequest' is not null or undefined
|
|
804
|
+
(0, common_1.assertParamExists)('updateApplication', 'updateApplicationRequest', updateApplicationRequest);
|
|
805
|
+
const localVarPath = `/applications/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
806
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
807
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
808
|
+
let baseOptions;
|
|
809
|
+
if (configuration) {
|
|
810
|
+
baseOptions = configuration.baseOptions;
|
|
811
|
+
}
|
|
812
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
813
|
+
const localVarHeaderParameter = {};
|
|
814
|
+
const localVarQueryParameter = {};
|
|
815
|
+
// authentication OAuth2 required
|
|
816
|
+
// oauth required
|
|
817
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
818
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
819
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
820
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
821
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
822
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateApplicationRequest, localVarRequestOptions, configuration);
|
|
823
|
+
return {
|
|
824
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
825
|
+
options: localVarRequestOptions,
|
|
826
|
+
};
|
|
827
|
+
}),
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
exports.ApplicationsApiAxiosParamCreator = ApplicationsApiAxiosParamCreator;
|
|
831
|
+
/**
|
|
832
|
+
* ApplicationsApi - functional programming interface
|
|
833
|
+
* @export
|
|
248
834
|
*/
|
|
249
|
-
|
|
250
|
-
(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
835
|
+
const ApplicationsApiFp = function (configuration) {
|
|
836
|
+
const localVarAxiosParamCreator = (0, exports.ApplicationsApiAxiosParamCreator)(configuration);
|
|
837
|
+
return {
|
|
838
|
+
/**
|
|
839
|
+
* Create an OAuth2 `application`.
|
|
840
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
841
|
+
* @param {*} [options] Override http request option.
|
|
842
|
+
* @throws {RequiredError}
|
|
843
|
+
*/
|
|
844
|
+
createApplication(createApplicationRequest, options) {
|
|
845
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
846
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplication(createApplicationRequest, options);
|
|
847
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
848
|
+
});
|
|
849
|
+
},
|
|
850
|
+
/**
|
|
851
|
+
* Delete an `application`.
|
|
852
|
+
* @param {string} id The `application` ID.
|
|
853
|
+
* @param {*} [options] Override http request option.
|
|
854
|
+
* @throws {RequiredError}
|
|
855
|
+
*/
|
|
856
|
+
deleteApplication(id, options) {
|
|
857
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
858
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteApplication(id, options);
|
|
859
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
860
|
+
});
|
|
861
|
+
},
|
|
862
|
+
/**
|
|
863
|
+
* Get an `application`.
|
|
864
|
+
* @param {string} id The `application` ID.
|
|
865
|
+
* @param {*} [options] Override http request option.
|
|
866
|
+
* @throws {RequiredError}
|
|
867
|
+
*/
|
|
868
|
+
getApplication(id, options) {
|
|
869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
870
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApplication(id, options);
|
|
871
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
872
|
+
});
|
|
873
|
+
},
|
|
874
|
+
/**
|
|
875
|
+
* Get `applications`.
|
|
876
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
877
|
+
* @param {number} [pageSize] The number of items to return.
|
|
878
|
+
* @param {*} [options] Override http request option.
|
|
879
|
+
* @throws {RequiredError}
|
|
880
|
+
*/
|
|
881
|
+
getApplications(pageCursor, pageSize, options) {
|
|
882
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
883
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApplications(pageCursor, pageSize, options);
|
|
884
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
885
|
+
});
|
|
886
|
+
},
|
|
887
|
+
/**
|
|
888
|
+
* Update an `application`.
|
|
889
|
+
* @param {string} id The `application` ID.
|
|
890
|
+
* @param {UpdateApplicationRequest} updateApplicationRequest
|
|
891
|
+
* @param {*} [options] Override http request option.
|
|
892
|
+
* @throws {RequiredError}
|
|
893
|
+
*/
|
|
894
|
+
updateApplication(id, updateApplicationRequest, options) {
|
|
895
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
896
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateApplication(id, updateApplicationRequest, options);
|
|
897
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
898
|
+
});
|
|
899
|
+
},
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
exports.ApplicationsApiFp = ApplicationsApiFp;
|
|
254
903
|
/**
|
|
904
|
+
* ApplicationsApi - factory interface
|
|
255
905
|
* @export
|
|
256
|
-
* @enum {string}
|
|
257
906
|
*/
|
|
258
|
-
|
|
259
|
-
(
|
|
260
|
-
|
|
261
|
-
|
|
907
|
+
const ApplicationsApiFactory = function (configuration, basePath, axios) {
|
|
908
|
+
const localVarFp = (0, exports.ApplicationsApiFp)(configuration);
|
|
909
|
+
return {
|
|
910
|
+
/**
|
|
911
|
+
* Create an OAuth2 `application`.
|
|
912
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
*/
|
|
916
|
+
createApplication(createApplicationRequest, options) {
|
|
917
|
+
return localVarFp
|
|
918
|
+
.createApplication(createApplicationRequest, options)
|
|
919
|
+
.then((request) => request(axios, basePath));
|
|
920
|
+
},
|
|
921
|
+
/**
|
|
922
|
+
* Delete an `application`.
|
|
923
|
+
* @param {string} id The `application` ID.
|
|
924
|
+
* @param {*} [options] Override http request option.
|
|
925
|
+
* @throws {RequiredError}
|
|
926
|
+
*/
|
|
927
|
+
deleteApplication(id, options) {
|
|
928
|
+
return localVarFp
|
|
929
|
+
.deleteApplication(id, options)
|
|
930
|
+
.then((request) => request(axios, basePath));
|
|
931
|
+
},
|
|
932
|
+
/**
|
|
933
|
+
* Get an `application`.
|
|
934
|
+
* @param {string} id The `application` ID.
|
|
935
|
+
* @param {*} [options] Override http request option.
|
|
936
|
+
* @throws {RequiredError}
|
|
937
|
+
*/
|
|
938
|
+
getApplication(id, options) {
|
|
939
|
+
return localVarFp
|
|
940
|
+
.getApplication(id, options)
|
|
941
|
+
.then((request) => request(axios, basePath));
|
|
942
|
+
},
|
|
943
|
+
/**
|
|
944
|
+
* Get `applications`.
|
|
945
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
946
|
+
* @param {number} [pageSize] The number of items to return.
|
|
947
|
+
* @param {*} [options] Override http request option.
|
|
948
|
+
* @throws {RequiredError}
|
|
949
|
+
*/
|
|
950
|
+
getApplications(pageCursor, pageSize, options) {
|
|
951
|
+
return localVarFp
|
|
952
|
+
.getApplications(pageCursor, pageSize, options)
|
|
953
|
+
.then((request) => request(axios, basePath));
|
|
954
|
+
},
|
|
955
|
+
/**
|
|
956
|
+
* Update an `application`.
|
|
957
|
+
* @param {string} id The `application` ID.
|
|
958
|
+
* @param {UpdateApplicationRequest} updateApplicationRequest
|
|
959
|
+
* @param {*} [options] Override http request option.
|
|
960
|
+
* @throws {RequiredError}
|
|
961
|
+
*/
|
|
962
|
+
updateApplication(id, updateApplicationRequest, options) {
|
|
963
|
+
return localVarFp
|
|
964
|
+
.updateApplication(id, updateApplicationRequest, options)
|
|
965
|
+
.then((request) => request(axios, basePath));
|
|
966
|
+
},
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
exports.ApplicationsApiFactory = ApplicationsApiFactory;
|
|
262
970
|
/**
|
|
971
|
+
* ApplicationsApi - object-oriented interface
|
|
263
972
|
* @export
|
|
264
|
-
* @
|
|
973
|
+
* @class ApplicationsApi
|
|
974
|
+
* @extends {BaseAPI}
|
|
265
975
|
*/
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
976
|
+
class ApplicationsApi extends base_1.BaseAPI {
|
|
977
|
+
/**
|
|
978
|
+
* Create an OAuth2 `application`.
|
|
979
|
+
* @param {ApplicationsApiCreateApplicationRequest} requestParameters Request parameters.
|
|
980
|
+
* @param {*} [options] Override http request option.
|
|
981
|
+
* @throws {RequiredError}
|
|
982
|
+
* @memberof ApplicationsApi
|
|
983
|
+
*/
|
|
984
|
+
createApplication(requestParameters, options) {
|
|
985
|
+
return (0, exports.ApplicationsApiFp)(this.configuration)
|
|
986
|
+
.createApplication(requestParameters.createApplicationRequest, options)
|
|
987
|
+
.then((request) => request(this.axios, this.basePath));
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* Delete an `application`.
|
|
991
|
+
* @param {ApplicationsApiDeleteApplicationRequest} requestParameters Request parameters.
|
|
992
|
+
* @param {*} [options] Override http request option.
|
|
993
|
+
* @throws {RequiredError}
|
|
994
|
+
* @memberof ApplicationsApi
|
|
995
|
+
*/
|
|
996
|
+
deleteApplication(requestParameters, options) {
|
|
997
|
+
return (0, exports.ApplicationsApiFp)(this.configuration)
|
|
998
|
+
.deleteApplication(requestParameters.id, options)
|
|
999
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Get an `application`.
|
|
1003
|
+
* @param {ApplicationsApiGetApplicationRequest} requestParameters Request parameters.
|
|
1004
|
+
* @param {*} [options] Override http request option.
|
|
1005
|
+
* @throws {RequiredError}
|
|
1006
|
+
* @memberof ApplicationsApi
|
|
1007
|
+
*/
|
|
1008
|
+
getApplication(requestParameters, options) {
|
|
1009
|
+
return (0, exports.ApplicationsApiFp)(this.configuration)
|
|
1010
|
+
.getApplication(requestParameters.id, options)
|
|
1011
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* Get `applications`.
|
|
1015
|
+
* @param {ApplicationsApiGetApplicationsRequest} requestParameters Request parameters.
|
|
1016
|
+
* @param {*} [options] Override http request option.
|
|
1017
|
+
* @throws {RequiredError}
|
|
1018
|
+
* @memberof ApplicationsApi
|
|
1019
|
+
*/
|
|
1020
|
+
getApplications(requestParameters = {}, options) {
|
|
1021
|
+
return (0, exports.ApplicationsApiFp)(this.configuration)
|
|
1022
|
+
.getApplications(requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
1023
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Update an `application`.
|
|
1027
|
+
* @param {ApplicationsApiUpdateApplicationRequest} requestParameters Request parameters.
|
|
1028
|
+
* @param {*} [options] Override http request option.
|
|
1029
|
+
* @throws {RequiredError}
|
|
1030
|
+
* @memberof ApplicationsApi
|
|
1031
|
+
*/
|
|
1032
|
+
updateApplication(requestParameters, options) {
|
|
1033
|
+
return (0, exports.ApplicationsApiFp)(this.configuration)
|
|
1034
|
+
.updateApplication(requestParameters.id, requestParameters.updateApplicationRequest, options)
|
|
1035
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
exports.ApplicationsApi = ApplicationsApi;
|
|
271
1039
|
/**
|
|
272
1040
|
* BatchesApi - axios parameter creator
|
|
273
1041
|
* @export
|
|
@@ -1342,6 +2110,80 @@ exports.HitsApi = HitsApi;
|
|
|
1342
2110
|
*/
|
|
1343
2111
|
const Oauth2ApiAxiosParamCreator = function (configuration) {
|
|
1344
2112
|
return {
|
|
2113
|
+
/**
|
|
2114
|
+
* Accept Consent Challenge to login.
|
|
2115
|
+
* @param {string} challenge Challenge ID from oauth2 flow
|
|
2116
|
+
* @param {AdminConsentAcceptRequest} [adminConsentAcceptRequest]
|
|
2117
|
+
* @param {*} [options] Override http request option.
|
|
2118
|
+
* @throws {RequiredError}
|
|
2119
|
+
*/
|
|
2120
|
+
adminAcceptConsent: (challenge, adminConsentAcceptRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2121
|
+
// verify required parameter 'challenge' is not null or undefined
|
|
2122
|
+
(0, common_1.assertParamExists)('adminAcceptConsent', 'challenge', challenge);
|
|
2123
|
+
const localVarPath = `/oauth2/auth/requests/consent/accept`;
|
|
2124
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2125
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2126
|
+
let baseOptions;
|
|
2127
|
+
if (configuration) {
|
|
2128
|
+
baseOptions = configuration.baseOptions;
|
|
2129
|
+
}
|
|
2130
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2131
|
+
const localVarHeaderParameter = {};
|
|
2132
|
+
const localVarQueryParameter = {};
|
|
2133
|
+
// authentication OAuth2Internal required
|
|
2134
|
+
// oauth required
|
|
2135
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2Internal', [], configuration);
|
|
2136
|
+
if (challenge !== undefined) {
|
|
2137
|
+
localVarQueryParameter['challenge'] = challenge;
|
|
2138
|
+
}
|
|
2139
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
2140
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2141
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2142
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2143
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminConsentAcceptRequest, localVarRequestOptions, configuration);
|
|
2144
|
+
return {
|
|
2145
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2146
|
+
options: localVarRequestOptions,
|
|
2147
|
+
};
|
|
2148
|
+
}),
|
|
2149
|
+
/**
|
|
2150
|
+
* Accept Login Challenge with subject & login challenge
|
|
2151
|
+
* @param {string} loginChallenge Login Challenge ID from oauth2 flow
|
|
2152
|
+
* @param {AdminLoginAcceptRequest} adminLoginAcceptRequest
|
|
2153
|
+
* @param {*} [options] Override http request option.
|
|
2154
|
+
* @throws {RequiredError}
|
|
2155
|
+
*/
|
|
2156
|
+
adminAcceptLogin: (loginChallenge, adminLoginAcceptRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2157
|
+
// verify required parameter 'loginChallenge' is not null or undefined
|
|
2158
|
+
(0, common_1.assertParamExists)('adminAcceptLogin', 'loginChallenge', loginChallenge);
|
|
2159
|
+
// verify required parameter 'adminLoginAcceptRequest' is not null or undefined
|
|
2160
|
+
(0, common_1.assertParamExists)('adminAcceptLogin', 'adminLoginAcceptRequest', adminLoginAcceptRequest);
|
|
2161
|
+
const localVarPath = `/oauth2/auth/requests/login/accept`;
|
|
2162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2163
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2164
|
+
let baseOptions;
|
|
2165
|
+
if (configuration) {
|
|
2166
|
+
baseOptions = configuration.baseOptions;
|
|
2167
|
+
}
|
|
2168
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2169
|
+
const localVarHeaderParameter = {};
|
|
2170
|
+
const localVarQueryParameter = {};
|
|
2171
|
+
// authentication OAuth2Internal required
|
|
2172
|
+
// oauth required
|
|
2173
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2Internal', [], configuration);
|
|
2174
|
+
if (loginChallenge !== undefined) {
|
|
2175
|
+
localVarQueryParameter['login_challenge'] = loginChallenge;
|
|
2176
|
+
}
|
|
2177
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
2178
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2179
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2180
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2181
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminLoginAcceptRequest, localVarRequestOptions, configuration);
|
|
2182
|
+
return {
|
|
2183
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2184
|
+
options: localVarRequestOptions,
|
|
2185
|
+
};
|
|
2186
|
+
}),
|
|
1345
2187
|
/**
|
|
1346
2188
|
* Create an OAuth2 access token. For details, see our [Authentication](https://developer.vertexvis.com/docs/guides/authentication) guide.
|
|
1347
2189
|
* @param {string} grantType
|
|
@@ -1437,6 +2279,32 @@ exports.Oauth2ApiAxiosParamCreator = Oauth2ApiAxiosParamCreator;
|
|
|
1437
2279
|
const Oauth2ApiFp = function (configuration) {
|
|
1438
2280
|
const localVarAxiosParamCreator = (0, exports.Oauth2ApiAxiosParamCreator)(configuration);
|
|
1439
2281
|
return {
|
|
2282
|
+
/**
|
|
2283
|
+
* Accept Consent Challenge to login.
|
|
2284
|
+
* @param {string} challenge Challenge ID from oauth2 flow
|
|
2285
|
+
* @param {AdminConsentAcceptRequest} [adminConsentAcceptRequest]
|
|
2286
|
+
* @param {*} [options] Override http request option.
|
|
2287
|
+
* @throws {RequiredError}
|
|
2288
|
+
*/
|
|
2289
|
+
adminAcceptConsent(challenge, adminConsentAcceptRequest, options) {
|
|
2290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2291
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAcceptConsent(challenge, adminConsentAcceptRequest, options);
|
|
2292
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2293
|
+
});
|
|
2294
|
+
},
|
|
2295
|
+
/**
|
|
2296
|
+
* Accept Login Challenge with subject & login challenge
|
|
2297
|
+
* @param {string} loginChallenge Login Challenge ID from oauth2 flow
|
|
2298
|
+
* @param {AdminLoginAcceptRequest} adminLoginAcceptRequest
|
|
2299
|
+
* @param {*} [options] Override http request option.
|
|
2300
|
+
* @throws {RequiredError}
|
|
2301
|
+
*/
|
|
2302
|
+
adminAcceptLogin(loginChallenge, adminLoginAcceptRequest, options) {
|
|
2303
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2304
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAcceptLogin(loginChallenge, adminLoginAcceptRequest, options);
|
|
2305
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2306
|
+
});
|
|
2307
|
+
},
|
|
1440
2308
|
/**
|
|
1441
2309
|
* Create an OAuth2 access token. For details, see our [Authentication](https://developer.vertexvis.com/docs/guides/authentication) guide.
|
|
1442
2310
|
* @param {string} grantType
|
|
@@ -1475,6 +2343,30 @@ exports.Oauth2ApiFp = Oauth2ApiFp;
|
|
|
1475
2343
|
const Oauth2ApiFactory = function (configuration, basePath, axios) {
|
|
1476
2344
|
const localVarFp = (0, exports.Oauth2ApiFp)(configuration);
|
|
1477
2345
|
return {
|
|
2346
|
+
/**
|
|
2347
|
+
* Accept Consent Challenge to login.
|
|
2348
|
+
* @param {string} challenge Challenge ID from oauth2 flow
|
|
2349
|
+
* @param {AdminConsentAcceptRequest} [adminConsentAcceptRequest]
|
|
2350
|
+
* @param {*} [options] Override http request option.
|
|
2351
|
+
* @throws {RequiredError}
|
|
2352
|
+
*/
|
|
2353
|
+
adminAcceptConsent(challenge, adminConsentAcceptRequest, options) {
|
|
2354
|
+
return localVarFp
|
|
2355
|
+
.adminAcceptConsent(challenge, adminConsentAcceptRequest, options)
|
|
2356
|
+
.then((request) => request(axios, basePath));
|
|
2357
|
+
},
|
|
2358
|
+
/**
|
|
2359
|
+
* Accept Login Challenge with subject & login challenge
|
|
2360
|
+
* @param {string} loginChallenge Login Challenge ID from oauth2 flow
|
|
2361
|
+
* @param {AdminLoginAcceptRequest} adminLoginAcceptRequest
|
|
2362
|
+
* @param {*} [options] Override http request option.
|
|
2363
|
+
* @throws {RequiredError}
|
|
2364
|
+
*/
|
|
2365
|
+
adminAcceptLogin(loginChallenge, adminLoginAcceptRequest, options) {
|
|
2366
|
+
return localVarFp
|
|
2367
|
+
.adminAcceptLogin(loginChallenge, adminLoginAcceptRequest, options)
|
|
2368
|
+
.then((request) => request(axios, basePath));
|
|
2369
|
+
},
|
|
1478
2370
|
/**
|
|
1479
2371
|
* Create an OAuth2 access token. For details, see our [Authentication](https://developer.vertexvis.com/docs/guides/authentication) guide.
|
|
1480
2372
|
* @param {string} grantType
|
|
@@ -1511,6 +2403,30 @@ exports.Oauth2ApiFactory = Oauth2ApiFactory;
|
|
|
1511
2403
|
* @extends {BaseAPI}
|
|
1512
2404
|
*/
|
|
1513
2405
|
class Oauth2Api extends base_1.BaseAPI {
|
|
2406
|
+
/**
|
|
2407
|
+
* Accept Consent Challenge to login.
|
|
2408
|
+
* @param {Oauth2ApiAdminAcceptConsentRequest} requestParameters Request parameters.
|
|
2409
|
+
* @param {*} [options] Override http request option.
|
|
2410
|
+
* @throws {RequiredError}
|
|
2411
|
+
* @memberof Oauth2Api
|
|
2412
|
+
*/
|
|
2413
|
+
adminAcceptConsent(requestParameters, options) {
|
|
2414
|
+
return (0, exports.Oauth2ApiFp)(this.configuration)
|
|
2415
|
+
.adminAcceptConsent(requestParameters.challenge, requestParameters.adminConsentAcceptRequest, options)
|
|
2416
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2417
|
+
}
|
|
2418
|
+
/**
|
|
2419
|
+
* Accept Login Challenge with subject & login challenge
|
|
2420
|
+
* @param {Oauth2ApiAdminAcceptLoginRequest} requestParameters Request parameters.
|
|
2421
|
+
* @param {*} [options] Override http request option.
|
|
2422
|
+
* @throws {RequiredError}
|
|
2423
|
+
* @memberof Oauth2Api
|
|
2424
|
+
*/
|
|
2425
|
+
adminAcceptLogin(requestParameters, options) {
|
|
2426
|
+
return (0, exports.Oauth2ApiFp)(this.configuration)
|
|
2427
|
+
.adminAcceptLogin(requestParameters.loginChallenge, requestParameters.adminLoginAcceptRequest, options)
|
|
2428
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2429
|
+
}
|
|
1514
2430
|
/**
|
|
1515
2431
|
* Create an OAuth2 access token. For details, see our [Authentication](https://developer.vertexvis.com/docs/guides/authentication) guide.
|
|
1516
2432
|
* @param {Oauth2ApiCreateTokenRequest} requestParameters Request parameters.
|
|
@@ -3161,7 +4077,7 @@ const SceneItemsApiAxiosParamCreator = function (configuration) {
|
|
|
3161
4077
|
/**
|
|
3162
4078
|
* Get a `scene-item` by ID.
|
|
3163
4079
|
* @param {string} id The `scene-item` ID.
|
|
3164
|
-
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`
|
|
4080
|
+
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested.
|
|
3165
4081
|
* @param {*} [options] Override http request option.
|
|
3166
4082
|
* @throws {RequiredError}
|
|
3167
4083
|
*/
|
|
@@ -3339,7 +4255,7 @@ const SceneItemsApiFp = function (configuration) {
|
|
|
3339
4255
|
/**
|
|
3340
4256
|
* Get a `scene-item` by ID.
|
|
3341
4257
|
* @param {string} id The `scene-item` ID.
|
|
3342
|
-
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`
|
|
4258
|
+
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested.
|
|
3343
4259
|
* @param {*} [options] Override http request option.
|
|
3344
4260
|
* @throws {RequiredError}
|
|
3345
4261
|
*/
|
|
@@ -3437,7 +4353,7 @@ const SceneItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
3437
4353
|
/**
|
|
3438
4354
|
* Get a `scene-item` by ID.
|
|
3439
4355
|
* @param {string} id The `scene-item` ID.
|
|
3440
|
-
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`
|
|
4356
|
+
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested.
|
|
3441
4357
|
* @param {*} [options] Override http request option.
|
|
3442
4358
|
* @throws {RequiredError}
|
|
3443
4359
|
*/
|
|
@@ -4116,7 +5032,7 @@ const SceneViewsApiAxiosParamCreator = function (configuration) {
|
|
|
4116
5032
|
* Get a `scene-item` within a view by ID.
|
|
4117
5033
|
* @param {string} id The `scene-view` ID.
|
|
4118
5034
|
* @param {string} itemId The `scene-item` ID.
|
|
4119
|
-
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`
|
|
5035
|
+
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested.
|
|
4120
5036
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
4121
5037
|
* @param {*} [options] Override http request option.
|
|
4122
5038
|
* @throws {RequiredError}
|
|
@@ -4293,7 +5209,7 @@ const SceneViewsApiFp = function (configuration) {
|
|
|
4293
5209
|
* Get a `scene-item` within a view by ID.
|
|
4294
5210
|
* @param {string} id The `scene-view` ID.
|
|
4295
5211
|
* @param {string} itemId The `scene-item` ID.
|
|
4296
|
-
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`
|
|
5212
|
+
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested.
|
|
4297
5213
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
4298
5214
|
* @param {*} [options] Override http request option.
|
|
4299
5215
|
* @throws {RequiredError}
|
|
@@ -4392,7 +5308,7 @@ const SceneViewsApiFactory = function (configuration, basePath, axios) {
|
|
|
4392
5308
|
* Get a `scene-item` within a view by ID.
|
|
4393
5309
|
* @param {string} id The `scene-view` ID.
|
|
4394
5310
|
* @param {string} itemId The `scene-item` ID.
|
|
4395
|
-
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`
|
|
5311
|
+
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox` and `metadata` are only returned if explicitly requested.
|
|
4396
5312
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
4397
5313
|
* @param {*} [options] Override http request option.
|
|
4398
5314
|
* @throws {RequiredError}
|