@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/esm/api.js
CHANGED
|
@@ -226,6 +226,15 @@ export var SelectOperationTypeEnum;
|
|
|
226
226
|
(function (SelectOperationTypeEnum) {
|
|
227
227
|
SelectOperationTypeEnum["Select"] = "select";
|
|
228
228
|
})(SelectOperationTypeEnum || (SelectOperationTypeEnum = {}));
|
|
229
|
+
/**
|
|
230
|
+
* @export
|
|
231
|
+
* @enum {string}
|
|
232
|
+
*/
|
|
233
|
+
export var UpdateAccountRequestDataAttributesStatusEnum;
|
|
234
|
+
(function (UpdateAccountRequestDataAttributesStatusEnum) {
|
|
235
|
+
UpdateAccountRequestDataAttributesStatusEnum["Active"] = "active";
|
|
236
|
+
UpdateAccountRequestDataAttributesStatusEnum["Disabled"] = "disabled";
|
|
237
|
+
})(UpdateAccountRequestDataAttributesStatusEnum || (UpdateAccountRequestDataAttributesStatusEnum = {}));
|
|
229
238
|
/**
|
|
230
239
|
* @export
|
|
231
240
|
* @enum {string}
|
|
@@ -237,30 +246,780 @@ export var UpdateSceneRequestDataAttributesStateEnum;
|
|
|
237
246
|
})(UpdateSceneRequestDataAttributesStateEnum || (UpdateSceneRequestDataAttributesStateEnum = {}));
|
|
238
247
|
/**
|
|
239
248
|
* @export
|
|
240
|
-
* @enum {string}
|
|
249
|
+
* @enum {string}
|
|
250
|
+
*/
|
|
251
|
+
export var UpdateWebhookSubscriptionRequestDataAttributesStatusEnum;
|
|
252
|
+
(function (UpdateWebhookSubscriptionRequestDataAttributesStatusEnum) {
|
|
253
|
+
UpdateWebhookSubscriptionRequestDataAttributesStatusEnum["Active"] = "active";
|
|
254
|
+
UpdateWebhookSubscriptionRequestDataAttributesStatusEnum["Paused"] = "paused";
|
|
255
|
+
})(UpdateWebhookSubscriptionRequestDataAttributesStatusEnum || (UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = {}));
|
|
256
|
+
/**
|
|
257
|
+
* @export
|
|
258
|
+
* @enum {string}
|
|
259
|
+
*/
|
|
260
|
+
export var WebhookEventDataRelationshipsOwnerDataTypeEnum;
|
|
261
|
+
(function (WebhookEventDataRelationshipsOwnerDataTypeEnum) {
|
|
262
|
+
WebhookEventDataRelationshipsOwnerDataTypeEnum["Account"] = "account";
|
|
263
|
+
})(WebhookEventDataRelationshipsOwnerDataTypeEnum || (WebhookEventDataRelationshipsOwnerDataTypeEnum = {}));
|
|
264
|
+
/**
|
|
265
|
+
* @export
|
|
266
|
+
* @enum {string}
|
|
267
|
+
*/
|
|
268
|
+
export var WebhookSubscriptionDataAttributesStatusEnum;
|
|
269
|
+
(function (WebhookSubscriptionDataAttributesStatusEnum) {
|
|
270
|
+
WebhookSubscriptionDataAttributesStatusEnum["Active"] = "active";
|
|
271
|
+
WebhookSubscriptionDataAttributesStatusEnum["Paused"] = "paused";
|
|
272
|
+
})(WebhookSubscriptionDataAttributesStatusEnum || (WebhookSubscriptionDataAttributesStatusEnum = {}));
|
|
273
|
+
/**
|
|
274
|
+
* AccountsApi - axios parameter creator
|
|
275
|
+
* @export
|
|
276
|
+
*/
|
|
277
|
+
export const AccountsApiAxiosParamCreator = function (configuration) {
|
|
278
|
+
return {
|
|
279
|
+
/**
|
|
280
|
+
* Create an `account`.
|
|
281
|
+
* @param {CreateAccountRequest} createAccountRequest
|
|
282
|
+
* @param {*} [options] Override http request option.
|
|
283
|
+
* @throws {RequiredError}
|
|
284
|
+
*/
|
|
285
|
+
createAccount: (createAccountRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
286
|
+
// verify required parameter 'createAccountRequest' is not null or undefined
|
|
287
|
+
assertParamExists('createAccount', 'createAccountRequest', createAccountRequest);
|
|
288
|
+
const localVarPath = `/accounts`;
|
|
289
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
290
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
291
|
+
let baseOptions;
|
|
292
|
+
if (configuration) {
|
|
293
|
+
baseOptions = configuration.baseOptions;
|
|
294
|
+
}
|
|
295
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
296
|
+
const localVarHeaderParameter = {};
|
|
297
|
+
const localVarQueryParameter = {};
|
|
298
|
+
// authentication OAuth2Internal required
|
|
299
|
+
// oauth required
|
|
300
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2Internal', ['accounts.*', 'accounts.write'], configuration);
|
|
301
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
302
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
303
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
304
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
305
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createAccountRequest, localVarRequestOptions, configuration);
|
|
306
|
+
return {
|
|
307
|
+
url: toPathString(localVarUrlObj),
|
|
308
|
+
options: localVarRequestOptions,
|
|
309
|
+
};
|
|
310
|
+
}),
|
|
311
|
+
/**
|
|
312
|
+
* Create an `application` for an `account`.
|
|
313
|
+
* @param {string} id The `account` ID.
|
|
314
|
+
* @param {AdminCreateApplicationRequest} adminCreateApplicationRequest
|
|
315
|
+
* @param {*} [options] Override http request option.
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
*/
|
|
318
|
+
createApplicationForAccount: (id, adminCreateApplicationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
319
|
+
// verify required parameter 'id' is not null or undefined
|
|
320
|
+
assertParamExists('createApplicationForAccount', 'id', id);
|
|
321
|
+
// verify required parameter 'adminCreateApplicationRequest' is not null or undefined
|
|
322
|
+
assertParamExists('createApplicationForAccount', 'adminCreateApplicationRequest', adminCreateApplicationRequest);
|
|
323
|
+
const localVarPath = `/accounts/{id}/applications`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
324
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
325
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
326
|
+
let baseOptions;
|
|
327
|
+
if (configuration) {
|
|
328
|
+
baseOptions = configuration.baseOptions;
|
|
329
|
+
}
|
|
330
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
331
|
+
const localVarHeaderParameter = {};
|
|
332
|
+
const localVarQueryParameter = {};
|
|
333
|
+
// authentication OAuth2Internal required
|
|
334
|
+
// oauth required
|
|
335
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2Internal', ['accounts.*', 'accounts.write'], configuration);
|
|
336
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
337
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
338
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
339
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
340
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminCreateApplicationRequest, localVarRequestOptions, configuration);
|
|
341
|
+
return {
|
|
342
|
+
url: toPathString(localVarUrlObj),
|
|
343
|
+
options: localVarRequestOptions,
|
|
344
|
+
};
|
|
345
|
+
}),
|
|
346
|
+
/**
|
|
347
|
+
* Delete an `account`.
|
|
348
|
+
* @param {string} id The `account` ID.
|
|
349
|
+
* @param {*} [options] Override http request option.
|
|
350
|
+
* @throws {RequiredError}
|
|
351
|
+
*/
|
|
352
|
+
deleteAccount: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
353
|
+
// verify required parameter 'id' is not null or undefined
|
|
354
|
+
assertParamExists('deleteAccount', 'id', id);
|
|
355
|
+
const localVarPath = `/accounts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
356
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
357
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
358
|
+
let baseOptions;
|
|
359
|
+
if (configuration) {
|
|
360
|
+
baseOptions = configuration.baseOptions;
|
|
361
|
+
}
|
|
362
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
363
|
+
const localVarHeaderParameter = {};
|
|
364
|
+
const localVarQueryParameter = {};
|
|
365
|
+
// authentication OAuth2Internal required
|
|
366
|
+
// oauth required
|
|
367
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2Internal', ['accounts.*', 'accounts.write'], configuration);
|
|
368
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
369
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
370
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
371
|
+
return {
|
|
372
|
+
url: toPathString(localVarUrlObj),
|
|
373
|
+
options: localVarRequestOptions,
|
|
374
|
+
};
|
|
375
|
+
}),
|
|
376
|
+
/**
|
|
377
|
+
* Get an `account`.
|
|
378
|
+
* @param {string} id The `account` ID.
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
getAccount: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
383
|
+
// verify required parameter 'id' is not null or undefined
|
|
384
|
+
assertParamExists('getAccount', 'id', id);
|
|
385
|
+
const localVarPath = `/accounts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
386
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
387
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
388
|
+
let baseOptions;
|
|
389
|
+
if (configuration) {
|
|
390
|
+
baseOptions = configuration.baseOptions;
|
|
391
|
+
}
|
|
392
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
393
|
+
const localVarHeaderParameter = {};
|
|
394
|
+
const localVarQueryParameter = {};
|
|
395
|
+
// authentication OAuth2Internal required
|
|
396
|
+
// oauth required
|
|
397
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2Internal', ['accounts.*', 'accounts.read'], configuration);
|
|
398
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
399
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
400
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
401
|
+
return {
|
|
402
|
+
url: toPathString(localVarUrlObj),
|
|
403
|
+
options: localVarRequestOptions,
|
|
404
|
+
};
|
|
405
|
+
}),
|
|
406
|
+
/**
|
|
407
|
+
* Update an `account`.
|
|
408
|
+
* @param {string} id The `account` ID.
|
|
409
|
+
* @param {UpdateAccountRequest} updateAccountRequest
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
updateAccount: (id, updateAccountRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
// verify required parameter 'id' is not null or undefined
|
|
415
|
+
assertParamExists('updateAccount', 'id', id);
|
|
416
|
+
// verify required parameter 'updateAccountRequest' is not null or undefined
|
|
417
|
+
assertParamExists('updateAccount', 'updateAccountRequest', updateAccountRequest);
|
|
418
|
+
const localVarPath = `/accounts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
419
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
420
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
421
|
+
let baseOptions;
|
|
422
|
+
if (configuration) {
|
|
423
|
+
baseOptions = configuration.baseOptions;
|
|
424
|
+
}
|
|
425
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
426
|
+
const localVarHeaderParameter = {};
|
|
427
|
+
const localVarQueryParameter = {};
|
|
428
|
+
// authentication OAuth2Internal required
|
|
429
|
+
// oauth required
|
|
430
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2Internal', ['accounts.*', 'accounts.write'], configuration);
|
|
431
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
432
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
433
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
434
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
435
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateAccountRequest, localVarRequestOptions, configuration);
|
|
436
|
+
return {
|
|
437
|
+
url: toPathString(localVarUrlObj),
|
|
438
|
+
options: localVarRequestOptions,
|
|
439
|
+
};
|
|
440
|
+
}),
|
|
441
|
+
};
|
|
442
|
+
};
|
|
443
|
+
/**
|
|
444
|
+
* AccountsApi - functional programming interface
|
|
445
|
+
* @export
|
|
446
|
+
*/
|
|
447
|
+
export const AccountsApiFp = function (configuration) {
|
|
448
|
+
const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration);
|
|
449
|
+
return {
|
|
450
|
+
/**
|
|
451
|
+
* Create an `account`.
|
|
452
|
+
* @param {CreateAccountRequest} createAccountRequest
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
*/
|
|
456
|
+
createAccount(createAccountRequest, options) {
|
|
457
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAccount(createAccountRequest, options);
|
|
459
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
460
|
+
});
|
|
461
|
+
},
|
|
462
|
+
/**
|
|
463
|
+
* Create an `application` for an `account`.
|
|
464
|
+
* @param {string} id The `account` ID.
|
|
465
|
+
* @param {AdminCreateApplicationRequest} adminCreateApplicationRequest
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
*/
|
|
469
|
+
createApplicationForAccount(id, adminCreateApplicationRequest, options) {
|
|
470
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
471
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplicationForAccount(id, adminCreateApplicationRequest, options);
|
|
472
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
473
|
+
});
|
|
474
|
+
},
|
|
475
|
+
/**
|
|
476
|
+
* Delete an `account`.
|
|
477
|
+
* @param {string} id The `account` ID.
|
|
478
|
+
* @param {*} [options] Override http request option.
|
|
479
|
+
* @throws {RequiredError}
|
|
480
|
+
*/
|
|
481
|
+
deleteAccount(id, options) {
|
|
482
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
483
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAccount(id, options);
|
|
484
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
485
|
+
});
|
|
486
|
+
},
|
|
487
|
+
/**
|
|
488
|
+
* Get an `account`.
|
|
489
|
+
* @param {string} id The `account` ID.
|
|
490
|
+
* @param {*} [options] Override http request option.
|
|
491
|
+
* @throws {RequiredError}
|
|
492
|
+
*/
|
|
493
|
+
getAccount(id, options) {
|
|
494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
495
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccount(id, options);
|
|
496
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
497
|
+
});
|
|
498
|
+
},
|
|
499
|
+
/**
|
|
500
|
+
* Update an `account`.
|
|
501
|
+
* @param {string} id The `account` ID.
|
|
502
|
+
* @param {UpdateAccountRequest} updateAccountRequest
|
|
503
|
+
* @param {*} [options] Override http request option.
|
|
504
|
+
* @throws {RequiredError}
|
|
505
|
+
*/
|
|
506
|
+
updateAccount(id, updateAccountRequest, options) {
|
|
507
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
508
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAccount(id, updateAccountRequest, options);
|
|
509
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
510
|
+
});
|
|
511
|
+
},
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
/**
|
|
515
|
+
* AccountsApi - factory interface
|
|
516
|
+
* @export
|
|
517
|
+
*/
|
|
518
|
+
export const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
519
|
+
const localVarFp = AccountsApiFp(configuration);
|
|
520
|
+
return {
|
|
521
|
+
/**
|
|
522
|
+
* Create an `account`.
|
|
523
|
+
* @param {CreateAccountRequest} createAccountRequest
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
createAccount(createAccountRequest, options) {
|
|
528
|
+
return localVarFp
|
|
529
|
+
.createAccount(createAccountRequest, options)
|
|
530
|
+
.then((request) => request(axios, basePath));
|
|
531
|
+
},
|
|
532
|
+
/**
|
|
533
|
+
* Create an `application` for an `account`.
|
|
534
|
+
* @param {string} id The `account` ID.
|
|
535
|
+
* @param {AdminCreateApplicationRequest} adminCreateApplicationRequest
|
|
536
|
+
* @param {*} [options] Override http request option.
|
|
537
|
+
* @throws {RequiredError}
|
|
538
|
+
*/
|
|
539
|
+
createApplicationForAccount(id, adminCreateApplicationRequest, options) {
|
|
540
|
+
return localVarFp
|
|
541
|
+
.createApplicationForAccount(id, adminCreateApplicationRequest, options)
|
|
542
|
+
.then((request) => request(axios, basePath));
|
|
543
|
+
},
|
|
544
|
+
/**
|
|
545
|
+
* Delete an `account`.
|
|
546
|
+
* @param {string} id The `account` ID.
|
|
547
|
+
* @param {*} [options] Override http request option.
|
|
548
|
+
* @throws {RequiredError}
|
|
549
|
+
*/
|
|
550
|
+
deleteAccount(id, options) {
|
|
551
|
+
return localVarFp
|
|
552
|
+
.deleteAccount(id, options)
|
|
553
|
+
.then((request) => request(axios, basePath));
|
|
554
|
+
},
|
|
555
|
+
/**
|
|
556
|
+
* Get an `account`.
|
|
557
|
+
* @param {string} id The `account` ID.
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
*/
|
|
561
|
+
getAccount(id, options) {
|
|
562
|
+
return localVarFp
|
|
563
|
+
.getAccount(id, options)
|
|
564
|
+
.then((request) => request(axios, basePath));
|
|
565
|
+
},
|
|
566
|
+
/**
|
|
567
|
+
* Update an `account`.
|
|
568
|
+
* @param {string} id The `account` ID.
|
|
569
|
+
* @param {UpdateAccountRequest} updateAccountRequest
|
|
570
|
+
* @param {*} [options] Override http request option.
|
|
571
|
+
* @throws {RequiredError}
|
|
572
|
+
*/
|
|
573
|
+
updateAccount(id, updateAccountRequest, options) {
|
|
574
|
+
return localVarFp
|
|
575
|
+
.updateAccount(id, updateAccountRequest, options)
|
|
576
|
+
.then((request) => request(axios, basePath));
|
|
577
|
+
},
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
/**
|
|
581
|
+
* AccountsApi - object-oriented interface
|
|
582
|
+
* @export
|
|
583
|
+
* @class AccountsApi
|
|
584
|
+
* @extends {BaseAPI}
|
|
585
|
+
*/
|
|
586
|
+
export class AccountsApi extends BaseAPI {
|
|
587
|
+
/**
|
|
588
|
+
* Create an `account`.
|
|
589
|
+
* @param {AccountsApiCreateAccountRequest} requestParameters Request parameters.
|
|
590
|
+
* @param {*} [options] Override http request option.
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
* @memberof AccountsApi
|
|
593
|
+
*/
|
|
594
|
+
createAccount(requestParameters, options) {
|
|
595
|
+
return AccountsApiFp(this.configuration)
|
|
596
|
+
.createAccount(requestParameters.createAccountRequest, options)
|
|
597
|
+
.then((request) => request(this.axios, this.basePath));
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Create an `application` for an `account`.
|
|
601
|
+
* @param {AccountsApiCreateApplicationForAccountRequest} requestParameters Request parameters.
|
|
602
|
+
* @param {*} [options] Override http request option.
|
|
603
|
+
* @throws {RequiredError}
|
|
604
|
+
* @memberof AccountsApi
|
|
605
|
+
*/
|
|
606
|
+
createApplicationForAccount(requestParameters, options) {
|
|
607
|
+
return AccountsApiFp(this.configuration)
|
|
608
|
+
.createApplicationForAccount(requestParameters.id, requestParameters.adminCreateApplicationRequest, options)
|
|
609
|
+
.then((request) => request(this.axios, this.basePath));
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Delete an `account`.
|
|
613
|
+
* @param {AccountsApiDeleteAccountRequest} requestParameters Request parameters.
|
|
614
|
+
* @param {*} [options] Override http request option.
|
|
615
|
+
* @throws {RequiredError}
|
|
616
|
+
* @memberof AccountsApi
|
|
617
|
+
*/
|
|
618
|
+
deleteAccount(requestParameters, options) {
|
|
619
|
+
return AccountsApiFp(this.configuration)
|
|
620
|
+
.deleteAccount(requestParameters.id, options)
|
|
621
|
+
.then((request) => request(this.axios, this.basePath));
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Get an `account`.
|
|
625
|
+
* @param {AccountsApiGetAccountRequest} requestParameters Request parameters.
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
* @memberof AccountsApi
|
|
629
|
+
*/
|
|
630
|
+
getAccount(requestParameters, options) {
|
|
631
|
+
return AccountsApiFp(this.configuration)
|
|
632
|
+
.getAccount(requestParameters.id, options)
|
|
633
|
+
.then((request) => request(this.axios, this.basePath));
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Update an `account`.
|
|
637
|
+
* @param {AccountsApiUpdateAccountRequest} requestParameters Request parameters.
|
|
638
|
+
* @param {*} [options] Override http request option.
|
|
639
|
+
* @throws {RequiredError}
|
|
640
|
+
* @memberof AccountsApi
|
|
641
|
+
*/
|
|
642
|
+
updateAccount(requestParameters, options) {
|
|
643
|
+
return AccountsApiFp(this.configuration)
|
|
644
|
+
.updateAccount(requestParameters.id, requestParameters.updateAccountRequest, options)
|
|
645
|
+
.then((request) => request(this.axios, this.basePath));
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* ApplicationsApi - axios parameter creator
|
|
650
|
+
* @export
|
|
651
|
+
*/
|
|
652
|
+
export const ApplicationsApiAxiosParamCreator = function (configuration) {
|
|
653
|
+
return {
|
|
654
|
+
/**
|
|
655
|
+
* Create an OAuth2 `application`.
|
|
656
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
*/
|
|
660
|
+
createApplication: (createApplicationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
661
|
+
// verify required parameter 'createApplicationRequest' is not null or undefined
|
|
662
|
+
assertParamExists('createApplication', 'createApplicationRequest', createApplicationRequest);
|
|
663
|
+
const localVarPath = `/applications`;
|
|
664
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
665
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
666
|
+
let baseOptions;
|
|
667
|
+
if (configuration) {
|
|
668
|
+
baseOptions = configuration.baseOptions;
|
|
669
|
+
}
|
|
670
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
671
|
+
const localVarHeaderParameter = {};
|
|
672
|
+
const localVarQueryParameter = {};
|
|
673
|
+
// authentication OAuth2 required
|
|
674
|
+
// oauth required
|
|
675
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
676
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
677
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
678
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
679
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
680
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createApplicationRequest, localVarRequestOptions, configuration);
|
|
681
|
+
return {
|
|
682
|
+
url: toPathString(localVarUrlObj),
|
|
683
|
+
options: localVarRequestOptions,
|
|
684
|
+
};
|
|
685
|
+
}),
|
|
686
|
+
/**
|
|
687
|
+
* Delete an `application`.
|
|
688
|
+
* @param {string} id The `application` ID.
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
*/
|
|
692
|
+
deleteApplication: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
693
|
+
// verify required parameter 'id' is not null or undefined
|
|
694
|
+
assertParamExists('deleteApplication', 'id', id);
|
|
695
|
+
const localVarPath = `/applications/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
696
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
697
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
698
|
+
let baseOptions;
|
|
699
|
+
if (configuration) {
|
|
700
|
+
baseOptions = configuration.baseOptions;
|
|
701
|
+
}
|
|
702
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
703
|
+
const localVarHeaderParameter = {};
|
|
704
|
+
const localVarQueryParameter = {};
|
|
705
|
+
// authentication OAuth2 required
|
|
706
|
+
// oauth required
|
|
707
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
708
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
709
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
710
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
711
|
+
return {
|
|
712
|
+
url: toPathString(localVarUrlObj),
|
|
713
|
+
options: localVarRequestOptions,
|
|
714
|
+
};
|
|
715
|
+
}),
|
|
716
|
+
/**
|
|
717
|
+
* Get an `application`.
|
|
718
|
+
* @param {string} id The `application` ID.
|
|
719
|
+
* @param {*} [options] Override http request option.
|
|
720
|
+
* @throws {RequiredError}
|
|
721
|
+
*/
|
|
722
|
+
getApplication: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
723
|
+
// verify required parameter 'id' is not null or undefined
|
|
724
|
+
assertParamExists('getApplication', 'id', id);
|
|
725
|
+
const localVarPath = `/applications/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
726
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
727
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
728
|
+
let baseOptions;
|
|
729
|
+
if (configuration) {
|
|
730
|
+
baseOptions = configuration.baseOptions;
|
|
731
|
+
}
|
|
732
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
733
|
+
const localVarHeaderParameter = {};
|
|
734
|
+
const localVarQueryParameter = {};
|
|
735
|
+
// authentication OAuth2 required
|
|
736
|
+
// oauth required
|
|
737
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
738
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
739
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
740
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
741
|
+
return {
|
|
742
|
+
url: toPathString(localVarUrlObj),
|
|
743
|
+
options: localVarRequestOptions,
|
|
744
|
+
};
|
|
745
|
+
}),
|
|
746
|
+
/**
|
|
747
|
+
* Get `applications`.
|
|
748
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
749
|
+
* @param {number} [pageSize] The number of items to return.
|
|
750
|
+
* @param {*} [options] Override http request option.
|
|
751
|
+
* @throws {RequiredError}
|
|
752
|
+
*/
|
|
753
|
+
getApplications: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
754
|
+
const localVarPath = `/applications`;
|
|
755
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
756
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
757
|
+
let baseOptions;
|
|
758
|
+
if (configuration) {
|
|
759
|
+
baseOptions = configuration.baseOptions;
|
|
760
|
+
}
|
|
761
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
762
|
+
const localVarHeaderParameter = {};
|
|
763
|
+
const localVarQueryParameter = {};
|
|
764
|
+
// authentication OAuth2 required
|
|
765
|
+
// oauth required
|
|
766
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
767
|
+
if (pageCursor !== undefined) {
|
|
768
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
769
|
+
}
|
|
770
|
+
if (pageSize !== undefined) {
|
|
771
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
772
|
+
}
|
|
773
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
774
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
775
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
776
|
+
return {
|
|
777
|
+
url: toPathString(localVarUrlObj),
|
|
778
|
+
options: localVarRequestOptions,
|
|
779
|
+
};
|
|
780
|
+
}),
|
|
781
|
+
/**
|
|
782
|
+
* Update an `application`.
|
|
783
|
+
* @param {string} id The `application` ID.
|
|
784
|
+
* @param {UpdateApplicationRequest} updateApplicationRequest
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
updateApplication: (id, updateApplicationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
789
|
+
// verify required parameter 'id' is not null or undefined
|
|
790
|
+
assertParamExists('updateApplication', 'id', id);
|
|
791
|
+
// verify required parameter 'updateApplicationRequest' is not null or undefined
|
|
792
|
+
assertParamExists('updateApplication', 'updateApplicationRequest', updateApplicationRequest);
|
|
793
|
+
const localVarPath = `/applications/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
794
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
795
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
796
|
+
let baseOptions;
|
|
797
|
+
if (configuration) {
|
|
798
|
+
baseOptions = configuration.baseOptions;
|
|
799
|
+
}
|
|
800
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
801
|
+
const localVarHeaderParameter = {};
|
|
802
|
+
const localVarQueryParameter = {};
|
|
803
|
+
// authentication OAuth2 required
|
|
804
|
+
// oauth required
|
|
805
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
806
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
807
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
808
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
809
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
810
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateApplicationRequest, localVarRequestOptions, configuration);
|
|
811
|
+
return {
|
|
812
|
+
url: toPathString(localVarUrlObj),
|
|
813
|
+
options: localVarRequestOptions,
|
|
814
|
+
};
|
|
815
|
+
}),
|
|
816
|
+
};
|
|
817
|
+
};
|
|
818
|
+
/**
|
|
819
|
+
* ApplicationsApi - functional programming interface
|
|
820
|
+
* @export
|
|
241
821
|
*/
|
|
242
|
-
export
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
822
|
+
export const ApplicationsApiFp = function (configuration) {
|
|
823
|
+
const localVarAxiosParamCreator = ApplicationsApiAxiosParamCreator(configuration);
|
|
824
|
+
return {
|
|
825
|
+
/**
|
|
826
|
+
* Create an OAuth2 `application`.
|
|
827
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
828
|
+
* @param {*} [options] Override http request option.
|
|
829
|
+
* @throws {RequiredError}
|
|
830
|
+
*/
|
|
831
|
+
createApplication(createApplicationRequest, options) {
|
|
832
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
833
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplication(createApplicationRequest, options);
|
|
834
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
835
|
+
});
|
|
836
|
+
},
|
|
837
|
+
/**
|
|
838
|
+
* Delete an `application`.
|
|
839
|
+
* @param {string} id The `application` ID.
|
|
840
|
+
* @param {*} [options] Override http request option.
|
|
841
|
+
* @throws {RequiredError}
|
|
842
|
+
*/
|
|
843
|
+
deleteApplication(id, options) {
|
|
844
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
845
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteApplication(id, options);
|
|
846
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
847
|
+
});
|
|
848
|
+
},
|
|
849
|
+
/**
|
|
850
|
+
* Get an `application`.
|
|
851
|
+
* @param {string} id The `application` ID.
|
|
852
|
+
* @param {*} [options] Override http request option.
|
|
853
|
+
* @throws {RequiredError}
|
|
854
|
+
*/
|
|
855
|
+
getApplication(id, options) {
|
|
856
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
857
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApplication(id, options);
|
|
858
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
859
|
+
});
|
|
860
|
+
},
|
|
861
|
+
/**
|
|
862
|
+
* Get `applications`.
|
|
863
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
864
|
+
* @param {number} [pageSize] The number of items to return.
|
|
865
|
+
* @param {*} [options] Override http request option.
|
|
866
|
+
* @throws {RequiredError}
|
|
867
|
+
*/
|
|
868
|
+
getApplications(pageCursor, pageSize, options) {
|
|
869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
870
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApplications(pageCursor, pageSize, options);
|
|
871
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
872
|
+
});
|
|
873
|
+
},
|
|
874
|
+
/**
|
|
875
|
+
* Update an `application`.
|
|
876
|
+
* @param {string} id The `application` ID.
|
|
877
|
+
* @param {UpdateApplicationRequest} updateApplicationRequest
|
|
878
|
+
* @param {*} [options] Override http request option.
|
|
879
|
+
* @throws {RequiredError}
|
|
880
|
+
*/
|
|
881
|
+
updateApplication(id, updateApplicationRequest, options) {
|
|
882
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
883
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateApplication(id, updateApplicationRequest, options);
|
|
884
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
885
|
+
});
|
|
886
|
+
},
|
|
887
|
+
};
|
|
888
|
+
};
|
|
247
889
|
/**
|
|
890
|
+
* ApplicationsApi - factory interface
|
|
248
891
|
* @export
|
|
249
|
-
* @enum {string}
|
|
250
892
|
*/
|
|
251
|
-
export
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
893
|
+
export const ApplicationsApiFactory = function (configuration, basePath, axios) {
|
|
894
|
+
const localVarFp = ApplicationsApiFp(configuration);
|
|
895
|
+
return {
|
|
896
|
+
/**
|
|
897
|
+
* Create an OAuth2 `application`.
|
|
898
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
899
|
+
* @param {*} [options] Override http request option.
|
|
900
|
+
* @throws {RequiredError}
|
|
901
|
+
*/
|
|
902
|
+
createApplication(createApplicationRequest, options) {
|
|
903
|
+
return localVarFp
|
|
904
|
+
.createApplication(createApplicationRequest, options)
|
|
905
|
+
.then((request) => request(axios, basePath));
|
|
906
|
+
},
|
|
907
|
+
/**
|
|
908
|
+
* Delete an `application`.
|
|
909
|
+
* @param {string} id The `application` ID.
|
|
910
|
+
* @param {*} [options] Override http request option.
|
|
911
|
+
* @throws {RequiredError}
|
|
912
|
+
*/
|
|
913
|
+
deleteApplication(id, options) {
|
|
914
|
+
return localVarFp
|
|
915
|
+
.deleteApplication(id, options)
|
|
916
|
+
.then((request) => request(axios, basePath));
|
|
917
|
+
},
|
|
918
|
+
/**
|
|
919
|
+
* Get an `application`.
|
|
920
|
+
* @param {string} id The `application` ID.
|
|
921
|
+
* @param {*} [options] Override http request option.
|
|
922
|
+
* @throws {RequiredError}
|
|
923
|
+
*/
|
|
924
|
+
getApplication(id, options) {
|
|
925
|
+
return localVarFp
|
|
926
|
+
.getApplication(id, options)
|
|
927
|
+
.then((request) => request(axios, basePath));
|
|
928
|
+
},
|
|
929
|
+
/**
|
|
930
|
+
* Get `applications`.
|
|
931
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
932
|
+
* @param {number} [pageSize] The number of items to return.
|
|
933
|
+
* @param {*} [options] Override http request option.
|
|
934
|
+
* @throws {RequiredError}
|
|
935
|
+
*/
|
|
936
|
+
getApplications(pageCursor, pageSize, options) {
|
|
937
|
+
return localVarFp
|
|
938
|
+
.getApplications(pageCursor, pageSize, options)
|
|
939
|
+
.then((request) => request(axios, basePath));
|
|
940
|
+
},
|
|
941
|
+
/**
|
|
942
|
+
* Update an `application`.
|
|
943
|
+
* @param {string} id The `application` ID.
|
|
944
|
+
* @param {UpdateApplicationRequest} updateApplicationRequest
|
|
945
|
+
* @param {*} [options] Override http request option.
|
|
946
|
+
* @throws {RequiredError}
|
|
947
|
+
*/
|
|
948
|
+
updateApplication(id, updateApplicationRequest, options) {
|
|
949
|
+
return localVarFp
|
|
950
|
+
.updateApplication(id, updateApplicationRequest, options)
|
|
951
|
+
.then((request) => request(axios, basePath));
|
|
952
|
+
},
|
|
953
|
+
};
|
|
954
|
+
};
|
|
255
955
|
/**
|
|
956
|
+
* ApplicationsApi - object-oriented interface
|
|
256
957
|
* @export
|
|
257
|
-
* @
|
|
958
|
+
* @class ApplicationsApi
|
|
959
|
+
* @extends {BaseAPI}
|
|
258
960
|
*/
|
|
259
|
-
export
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
961
|
+
export class ApplicationsApi extends BaseAPI {
|
|
962
|
+
/**
|
|
963
|
+
* Create an OAuth2 `application`.
|
|
964
|
+
* @param {ApplicationsApiCreateApplicationRequest} requestParameters Request parameters.
|
|
965
|
+
* @param {*} [options] Override http request option.
|
|
966
|
+
* @throws {RequiredError}
|
|
967
|
+
* @memberof ApplicationsApi
|
|
968
|
+
*/
|
|
969
|
+
createApplication(requestParameters, options) {
|
|
970
|
+
return ApplicationsApiFp(this.configuration)
|
|
971
|
+
.createApplication(requestParameters.createApplicationRequest, options)
|
|
972
|
+
.then((request) => request(this.axios, this.basePath));
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
* Delete an `application`.
|
|
976
|
+
* @param {ApplicationsApiDeleteApplicationRequest} requestParameters Request parameters.
|
|
977
|
+
* @param {*} [options] Override http request option.
|
|
978
|
+
* @throws {RequiredError}
|
|
979
|
+
* @memberof ApplicationsApi
|
|
980
|
+
*/
|
|
981
|
+
deleteApplication(requestParameters, options) {
|
|
982
|
+
return ApplicationsApiFp(this.configuration)
|
|
983
|
+
.deleteApplication(requestParameters.id, options)
|
|
984
|
+
.then((request) => request(this.axios, this.basePath));
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Get an `application`.
|
|
988
|
+
* @param {ApplicationsApiGetApplicationRequest} requestParameters Request parameters.
|
|
989
|
+
* @param {*} [options] Override http request option.
|
|
990
|
+
* @throws {RequiredError}
|
|
991
|
+
* @memberof ApplicationsApi
|
|
992
|
+
*/
|
|
993
|
+
getApplication(requestParameters, options) {
|
|
994
|
+
return ApplicationsApiFp(this.configuration)
|
|
995
|
+
.getApplication(requestParameters.id, options)
|
|
996
|
+
.then((request) => request(this.axios, this.basePath));
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Get `applications`.
|
|
1000
|
+
* @param {ApplicationsApiGetApplicationsRequest} requestParameters Request parameters.
|
|
1001
|
+
* @param {*} [options] Override http request option.
|
|
1002
|
+
* @throws {RequiredError}
|
|
1003
|
+
* @memberof ApplicationsApi
|
|
1004
|
+
*/
|
|
1005
|
+
getApplications(requestParameters = {}, options) {
|
|
1006
|
+
return ApplicationsApiFp(this.configuration)
|
|
1007
|
+
.getApplications(requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
1008
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Update an `application`.
|
|
1012
|
+
* @param {ApplicationsApiUpdateApplicationRequest} requestParameters Request parameters.
|
|
1013
|
+
* @param {*} [options] Override http request option.
|
|
1014
|
+
* @throws {RequiredError}
|
|
1015
|
+
* @memberof ApplicationsApi
|
|
1016
|
+
*/
|
|
1017
|
+
updateApplication(requestParameters, options) {
|
|
1018
|
+
return ApplicationsApiFp(this.configuration)
|
|
1019
|
+
.updateApplication(requestParameters.id, requestParameters.updateApplicationRequest, options)
|
|
1020
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
264
1023
|
/**
|
|
265
1024
|
* BatchesApi - axios parameter creator
|
|
266
1025
|
* @export
|
|
@@ -1319,6 +2078,80 @@ export class HitsApi extends BaseAPI {
|
|
|
1319
2078
|
*/
|
|
1320
2079
|
export const Oauth2ApiAxiosParamCreator = function (configuration) {
|
|
1321
2080
|
return {
|
|
2081
|
+
/**
|
|
2082
|
+
* Accept Consent Challenge to login.
|
|
2083
|
+
* @param {string} challenge Challenge ID from oauth2 flow
|
|
2084
|
+
* @param {AdminConsentAcceptRequest} [adminConsentAcceptRequest]
|
|
2085
|
+
* @param {*} [options] Override http request option.
|
|
2086
|
+
* @throws {RequiredError}
|
|
2087
|
+
*/
|
|
2088
|
+
adminAcceptConsent: (challenge, adminConsentAcceptRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2089
|
+
// verify required parameter 'challenge' is not null or undefined
|
|
2090
|
+
assertParamExists('adminAcceptConsent', 'challenge', challenge);
|
|
2091
|
+
const localVarPath = `/oauth2/auth/requests/consent/accept`;
|
|
2092
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2093
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2094
|
+
let baseOptions;
|
|
2095
|
+
if (configuration) {
|
|
2096
|
+
baseOptions = configuration.baseOptions;
|
|
2097
|
+
}
|
|
2098
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2099
|
+
const localVarHeaderParameter = {};
|
|
2100
|
+
const localVarQueryParameter = {};
|
|
2101
|
+
// authentication OAuth2Internal required
|
|
2102
|
+
// oauth required
|
|
2103
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2Internal', [], configuration);
|
|
2104
|
+
if (challenge !== undefined) {
|
|
2105
|
+
localVarQueryParameter['challenge'] = challenge;
|
|
2106
|
+
}
|
|
2107
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
2108
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2109
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2110
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2111
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminConsentAcceptRequest, localVarRequestOptions, configuration);
|
|
2112
|
+
return {
|
|
2113
|
+
url: toPathString(localVarUrlObj),
|
|
2114
|
+
options: localVarRequestOptions,
|
|
2115
|
+
};
|
|
2116
|
+
}),
|
|
2117
|
+
/**
|
|
2118
|
+
* Accept Login Challenge with subject & login challenge
|
|
2119
|
+
* @param {string} loginChallenge Login Challenge ID from oauth2 flow
|
|
2120
|
+
* @param {AdminLoginAcceptRequest} adminLoginAcceptRequest
|
|
2121
|
+
* @param {*} [options] Override http request option.
|
|
2122
|
+
* @throws {RequiredError}
|
|
2123
|
+
*/
|
|
2124
|
+
adminAcceptLogin: (loginChallenge, adminLoginAcceptRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2125
|
+
// verify required parameter 'loginChallenge' is not null or undefined
|
|
2126
|
+
assertParamExists('adminAcceptLogin', 'loginChallenge', loginChallenge);
|
|
2127
|
+
// verify required parameter 'adminLoginAcceptRequest' is not null or undefined
|
|
2128
|
+
assertParamExists('adminAcceptLogin', 'adminLoginAcceptRequest', adminLoginAcceptRequest);
|
|
2129
|
+
const localVarPath = `/oauth2/auth/requests/login/accept`;
|
|
2130
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2131
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2132
|
+
let baseOptions;
|
|
2133
|
+
if (configuration) {
|
|
2134
|
+
baseOptions = configuration.baseOptions;
|
|
2135
|
+
}
|
|
2136
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2137
|
+
const localVarHeaderParameter = {};
|
|
2138
|
+
const localVarQueryParameter = {};
|
|
2139
|
+
// authentication OAuth2Internal required
|
|
2140
|
+
// oauth required
|
|
2141
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2Internal', [], configuration);
|
|
2142
|
+
if (loginChallenge !== undefined) {
|
|
2143
|
+
localVarQueryParameter['login_challenge'] = loginChallenge;
|
|
2144
|
+
}
|
|
2145
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
2146
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
2147
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2148
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2149
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminLoginAcceptRequest, localVarRequestOptions, configuration);
|
|
2150
|
+
return {
|
|
2151
|
+
url: toPathString(localVarUrlObj),
|
|
2152
|
+
options: localVarRequestOptions,
|
|
2153
|
+
};
|
|
2154
|
+
}),
|
|
1322
2155
|
/**
|
|
1323
2156
|
* Create an OAuth2 access token. For details, see our [Authentication](https://developer.vertexvis.com/docs/guides/authentication) guide.
|
|
1324
2157
|
* @param {string} grantType
|
|
@@ -1413,6 +2246,32 @@ export const Oauth2ApiAxiosParamCreator = function (configuration) {
|
|
|
1413
2246
|
export const Oauth2ApiFp = function (configuration) {
|
|
1414
2247
|
const localVarAxiosParamCreator = Oauth2ApiAxiosParamCreator(configuration);
|
|
1415
2248
|
return {
|
|
2249
|
+
/**
|
|
2250
|
+
* Accept Consent Challenge to login.
|
|
2251
|
+
* @param {string} challenge Challenge ID from oauth2 flow
|
|
2252
|
+
* @param {AdminConsentAcceptRequest} [adminConsentAcceptRequest]
|
|
2253
|
+
* @param {*} [options] Override http request option.
|
|
2254
|
+
* @throws {RequiredError}
|
|
2255
|
+
*/
|
|
2256
|
+
adminAcceptConsent(challenge, adminConsentAcceptRequest, options) {
|
|
2257
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2258
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAcceptConsent(challenge, adminConsentAcceptRequest, options);
|
|
2259
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2260
|
+
});
|
|
2261
|
+
},
|
|
2262
|
+
/**
|
|
2263
|
+
* Accept Login Challenge with subject & login challenge
|
|
2264
|
+
* @param {string} loginChallenge Login Challenge ID from oauth2 flow
|
|
2265
|
+
* @param {AdminLoginAcceptRequest} adminLoginAcceptRequest
|
|
2266
|
+
* @param {*} [options] Override http request option.
|
|
2267
|
+
* @throws {RequiredError}
|
|
2268
|
+
*/
|
|
2269
|
+
adminAcceptLogin(loginChallenge, adminLoginAcceptRequest, options) {
|
|
2270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2271
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminAcceptLogin(loginChallenge, adminLoginAcceptRequest, options);
|
|
2272
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2273
|
+
});
|
|
2274
|
+
},
|
|
1416
2275
|
/**
|
|
1417
2276
|
* Create an OAuth2 access token. For details, see our [Authentication](https://developer.vertexvis.com/docs/guides/authentication) guide.
|
|
1418
2277
|
* @param {string} grantType
|
|
@@ -1450,6 +2309,30 @@ export const Oauth2ApiFp = function (configuration) {
|
|
|
1450
2309
|
export const Oauth2ApiFactory = function (configuration, basePath, axios) {
|
|
1451
2310
|
const localVarFp = Oauth2ApiFp(configuration);
|
|
1452
2311
|
return {
|
|
2312
|
+
/**
|
|
2313
|
+
* Accept Consent Challenge to login.
|
|
2314
|
+
* @param {string} challenge Challenge ID from oauth2 flow
|
|
2315
|
+
* @param {AdminConsentAcceptRequest} [adminConsentAcceptRequest]
|
|
2316
|
+
* @param {*} [options] Override http request option.
|
|
2317
|
+
* @throws {RequiredError}
|
|
2318
|
+
*/
|
|
2319
|
+
adminAcceptConsent(challenge, adminConsentAcceptRequest, options) {
|
|
2320
|
+
return localVarFp
|
|
2321
|
+
.adminAcceptConsent(challenge, adminConsentAcceptRequest, options)
|
|
2322
|
+
.then((request) => request(axios, basePath));
|
|
2323
|
+
},
|
|
2324
|
+
/**
|
|
2325
|
+
* Accept Login Challenge with subject & login challenge
|
|
2326
|
+
* @param {string} loginChallenge Login Challenge ID from oauth2 flow
|
|
2327
|
+
* @param {AdminLoginAcceptRequest} adminLoginAcceptRequest
|
|
2328
|
+
* @param {*} [options] Override http request option.
|
|
2329
|
+
* @throws {RequiredError}
|
|
2330
|
+
*/
|
|
2331
|
+
adminAcceptLogin(loginChallenge, adminLoginAcceptRequest, options) {
|
|
2332
|
+
return localVarFp
|
|
2333
|
+
.adminAcceptLogin(loginChallenge, adminLoginAcceptRequest, options)
|
|
2334
|
+
.then((request) => request(axios, basePath));
|
|
2335
|
+
},
|
|
1453
2336
|
/**
|
|
1454
2337
|
* Create an OAuth2 access token. For details, see our [Authentication](https://developer.vertexvis.com/docs/guides/authentication) guide.
|
|
1455
2338
|
* @param {string} grantType
|
|
@@ -1485,6 +2368,30 @@ export const Oauth2ApiFactory = function (configuration, basePath, axios) {
|
|
|
1485
2368
|
* @extends {BaseAPI}
|
|
1486
2369
|
*/
|
|
1487
2370
|
export class Oauth2Api extends BaseAPI {
|
|
2371
|
+
/**
|
|
2372
|
+
* Accept Consent Challenge to login.
|
|
2373
|
+
* @param {Oauth2ApiAdminAcceptConsentRequest} requestParameters Request parameters.
|
|
2374
|
+
* @param {*} [options] Override http request option.
|
|
2375
|
+
* @throws {RequiredError}
|
|
2376
|
+
* @memberof Oauth2Api
|
|
2377
|
+
*/
|
|
2378
|
+
adminAcceptConsent(requestParameters, options) {
|
|
2379
|
+
return Oauth2ApiFp(this.configuration)
|
|
2380
|
+
.adminAcceptConsent(requestParameters.challenge, requestParameters.adminConsentAcceptRequest, options)
|
|
2381
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2382
|
+
}
|
|
2383
|
+
/**
|
|
2384
|
+
* Accept Login Challenge with subject & login challenge
|
|
2385
|
+
* @param {Oauth2ApiAdminAcceptLoginRequest} requestParameters Request parameters.
|
|
2386
|
+
* @param {*} [options] Override http request option.
|
|
2387
|
+
* @throws {RequiredError}
|
|
2388
|
+
* @memberof Oauth2Api
|
|
2389
|
+
*/
|
|
2390
|
+
adminAcceptLogin(requestParameters, options) {
|
|
2391
|
+
return Oauth2ApiFp(this.configuration)
|
|
2392
|
+
.adminAcceptLogin(requestParameters.loginChallenge, requestParameters.adminLoginAcceptRequest, options)
|
|
2393
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2394
|
+
}
|
|
1488
2395
|
/**
|
|
1489
2396
|
* Create an OAuth2 access token. For details, see our [Authentication](https://developer.vertexvis.com/docs/guides/authentication) guide.
|
|
1490
2397
|
* @param {Oauth2ApiCreateTokenRequest} requestParameters Request parameters.
|
|
@@ -3118,7 +4025,7 @@ export const SceneItemsApiAxiosParamCreator = function (configuration) {
|
|
|
3118
4025
|
/**
|
|
3119
4026
|
* Get a `scene-item` by ID.
|
|
3120
4027
|
* @param {string} id The `scene-item` ID.
|
|
3121
|
-
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`
|
|
4028
|
+
* @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.
|
|
3122
4029
|
* @param {*} [options] Override http request option.
|
|
3123
4030
|
* @throws {RequiredError}
|
|
3124
4031
|
*/
|
|
@@ -3295,7 +4202,7 @@ export const SceneItemsApiFp = function (configuration) {
|
|
|
3295
4202
|
/**
|
|
3296
4203
|
* Get a `scene-item` by ID.
|
|
3297
4204
|
* @param {string} id The `scene-item` ID.
|
|
3298
|
-
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`
|
|
4205
|
+
* @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.
|
|
3299
4206
|
* @param {*} [options] Override http request option.
|
|
3300
4207
|
* @throws {RequiredError}
|
|
3301
4208
|
*/
|
|
@@ -3392,7 +4299,7 @@ export const SceneItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
3392
4299
|
/**
|
|
3393
4300
|
* Get a `scene-item` by ID.
|
|
3394
4301
|
* @param {string} id The `scene-item` ID.
|
|
3395
|
-
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`
|
|
4302
|
+
* @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.
|
|
3396
4303
|
* @param {*} [options] Override http request option.
|
|
3397
4304
|
* @throws {RequiredError}
|
|
3398
4305
|
*/
|
|
@@ -4065,7 +4972,7 @@ export const SceneViewsApiAxiosParamCreator = function (configuration) {
|
|
|
4065
4972
|
* Get a `scene-item` within a view by ID.
|
|
4066
4973
|
* @param {string} id The `scene-view` ID.
|
|
4067
4974
|
* @param {string} itemId The `scene-item` ID.
|
|
4068
|
-
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`
|
|
4975
|
+
* @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.
|
|
4069
4976
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
4070
4977
|
* @param {*} [options] Override http request option.
|
|
4071
4978
|
* @throws {RequiredError}
|
|
@@ -4241,7 +5148,7 @@ export const SceneViewsApiFp = function (configuration) {
|
|
|
4241
5148
|
* Get a `scene-item` within a view by ID.
|
|
4242
5149
|
* @param {string} id The `scene-view` ID.
|
|
4243
5150
|
* @param {string} itemId The `scene-item` ID.
|
|
4244
|
-
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`
|
|
5151
|
+
* @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.
|
|
4245
5152
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
4246
5153
|
* @param {*} [options] Override http request option.
|
|
4247
5154
|
* @throws {RequiredError}
|
|
@@ -4339,7 +5246,7 @@ export const SceneViewsApiFactory = function (configuration, basePath, axios) {
|
|
|
4339
5246
|
* Get a `scene-item` within a view by ID.
|
|
4340
5247
|
* @param {string} id The `scene-view` ID.
|
|
4341
5248
|
* @param {string} itemId The `scene-item` ID.
|
|
4342
|
-
* @param {string} [fieldsSceneItem] Comma-separated list of fields to return in response. An empty value returns no fields. `boundingBox`
|
|
5249
|
+
* @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.
|
|
4343
5250
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
4344
5251
|
* @param {*} [options] Override http request option.
|
|
4345
5252
|
* @throws {RequiredError}
|