flexinet-api 0.0.736-prerelease0 → 0.0.738-prerelease0
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/README.md +2 -2
- package/api.ts +51 -76
- package/dist/api.d.ts +37 -39
- package/dist/api.js +25 -68
- package/dist/esm/api.d.ts +37 -39
- package/dist/esm/api.js +22 -65
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.738-prerelease0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install flexinet-api@0.0.
|
|
39
|
+
npm install flexinet-api@0.0.738-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -35,7 +35,44 @@ export interface ApiKey {
|
|
|
35
35
|
* @memberof ApiKey
|
|
36
36
|
*/
|
|
37
37
|
'key': string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ApiKeyKind}
|
|
41
|
+
* @memberof ApiKey
|
|
42
|
+
*/
|
|
43
|
+
'kind': ApiKeyKind;
|
|
38
44
|
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @export
|
|
50
|
+
* @interface ApiKeyCreationRequest
|
|
51
|
+
*/
|
|
52
|
+
export interface ApiKeyCreationRequest {
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {ApiKeyKind}
|
|
56
|
+
* @memberof ApiKeyCreationRequest
|
|
57
|
+
*/
|
|
58
|
+
'kind'?: ApiKeyKind;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @export
|
|
65
|
+
* @enum {string}
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
export const ApiKeyKind = {
|
|
69
|
+
Webhook: 'webhook',
|
|
70
|
+
Api: 'api'
|
|
71
|
+
} as const;
|
|
72
|
+
|
|
73
|
+
export type ApiKeyKind = typeof ApiKeyKind[keyof typeof ApiKeyKind];
|
|
74
|
+
|
|
75
|
+
|
|
39
76
|
/**
|
|
40
77
|
*
|
|
41
78
|
* @export
|
|
@@ -420,12 +457,6 @@ export interface CallbackOrder {
|
|
|
420
457
|
* @memberof CallbackOrder
|
|
421
458
|
*/
|
|
422
459
|
'id': string;
|
|
423
|
-
/**
|
|
424
|
-
*
|
|
425
|
-
* @type {string}
|
|
426
|
-
* @memberof CallbackOrder
|
|
427
|
-
*/
|
|
428
|
-
'status': string;
|
|
429
460
|
/**
|
|
430
461
|
*
|
|
431
462
|
* @type {WebhookKind}
|
|
@@ -5541,10 +5572,11 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5541
5572
|
/**
|
|
5542
5573
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
5543
5574
|
* @summary Generate API key for the current tenant
|
|
5575
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
5544
5576
|
* @param {*} [options] Override http request option.
|
|
5545
5577
|
* @throws {RequiredError}
|
|
5546
5578
|
*/
|
|
5547
|
-
generateApiKey: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5579
|
+
generateApiKey: async (apiKeyCreationRequest?: ApiKeyCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5548
5580
|
const localVarPath = `/admins/integrations/apikey`;
|
|
5549
5581
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5550
5582
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5563,9 +5595,12 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5563
5595
|
|
|
5564
5596
|
|
|
5565
5597
|
|
|
5598
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5599
|
+
|
|
5566
5600
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5567
5601
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5568
5602
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5603
|
+
localVarRequestOptions.data = serializeDataIfNeeded(apiKeyCreationRequest, localVarRequestOptions, configuration)
|
|
5569
5604
|
|
|
5570
5605
|
return {
|
|
5571
5606
|
url: toPathString(localVarUrlObj),
|
|
@@ -5641,39 +5676,6 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5641
5676
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5642
5677
|
localVarRequestOptions.data = serializeDataIfNeeded(webhook, localVarRequestOptions, configuration)
|
|
5643
5678
|
|
|
5644
|
-
return {
|
|
5645
|
-
url: toPathString(localVarUrlObj),
|
|
5646
|
-
options: localVarRequestOptions,
|
|
5647
|
-
};
|
|
5648
|
-
},
|
|
5649
|
-
/**
|
|
5650
|
-
* Test API key security scheme
|
|
5651
|
-
* @summary Test API key security scheme
|
|
5652
|
-
* @param {*} [options] Override http request option.
|
|
5653
|
-
* @throws {RequiredError}
|
|
5654
|
-
*/
|
|
5655
|
-
testApiKey: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5656
|
-
const localVarPath = `/admins/integrations/apikey`;
|
|
5657
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5658
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5659
|
-
let baseOptions;
|
|
5660
|
-
if (configuration) {
|
|
5661
|
-
baseOptions = configuration.baseOptions;
|
|
5662
|
-
}
|
|
5663
|
-
|
|
5664
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5665
|
-
const localVarHeaderParameter = {} as any;
|
|
5666
|
-
const localVarQueryParameter = {} as any;
|
|
5667
|
-
|
|
5668
|
-
// authentication ApiKeyAuth required
|
|
5669
|
-
await setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration)
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5674
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5675
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5676
|
-
|
|
5677
5679
|
return {
|
|
5678
5680
|
url: toPathString(localVarUrlObj),
|
|
5679
5681
|
options: localVarRequestOptions,
|
|
@@ -5692,11 +5694,12 @@ export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
|
5692
5694
|
/**
|
|
5693
5695
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
5694
5696
|
* @summary Generate API key for the current tenant
|
|
5697
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
5695
5698
|
* @param {*} [options] Override http request option.
|
|
5696
5699
|
* @throws {RequiredError}
|
|
5697
5700
|
*/
|
|
5698
|
-
async generateApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>> {
|
|
5699
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.generateApiKey(options);
|
|
5701
|
+
async generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>> {
|
|
5702
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateApiKey(apiKeyCreationRequest, options);
|
|
5700
5703
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5701
5704
|
},
|
|
5702
5705
|
/**
|
|
@@ -5720,16 +5723,6 @@ export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
|
5720
5723
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setWebhook(webhook, options);
|
|
5721
5724
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5722
5725
|
},
|
|
5723
|
-
/**
|
|
5724
|
-
* Test API key security scheme
|
|
5725
|
-
* @summary Test API key security scheme
|
|
5726
|
-
* @param {*} [options] Override http request option.
|
|
5727
|
-
* @throws {RequiredError}
|
|
5728
|
-
*/
|
|
5729
|
-
async testApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
5730
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.testApiKey(options);
|
|
5731
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5732
|
-
},
|
|
5733
5726
|
}
|
|
5734
5727
|
};
|
|
5735
5728
|
|
|
@@ -5743,11 +5736,12 @@ export const IntegrationApiFactory = function (configuration?: Configuration, ba
|
|
|
5743
5736
|
/**
|
|
5744
5737
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
5745
5738
|
* @summary Generate API key for the current tenant
|
|
5739
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
5746
5740
|
* @param {*} [options] Override http request option.
|
|
5747
5741
|
* @throws {RequiredError}
|
|
5748
5742
|
*/
|
|
5749
|
-
generateApiKey(options?: any): AxiosPromise<ApiKey> {
|
|
5750
|
-
return localVarFp.generateApiKey(options).then((request) => request(axios, basePath));
|
|
5743
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: any): AxiosPromise<ApiKey> {
|
|
5744
|
+
return localVarFp.generateApiKey(apiKeyCreationRequest, options).then((request) => request(axios, basePath));
|
|
5751
5745
|
},
|
|
5752
5746
|
/**
|
|
5753
5747
|
* List all webhooks for current tenant
|
|
@@ -5768,15 +5762,6 @@ export const IntegrationApiFactory = function (configuration?: Configuration, ba
|
|
|
5768
5762
|
setWebhook(webhook: Webhook, options?: any): AxiosPromise<void> {
|
|
5769
5763
|
return localVarFp.setWebhook(webhook, options).then((request) => request(axios, basePath));
|
|
5770
5764
|
},
|
|
5771
|
-
/**
|
|
5772
|
-
* Test API key security scheme
|
|
5773
|
-
* @summary Test API key security scheme
|
|
5774
|
-
* @param {*} [options] Override http request option.
|
|
5775
|
-
* @throws {RequiredError}
|
|
5776
|
-
*/
|
|
5777
|
-
testApiKey(options?: any): AxiosPromise<void> {
|
|
5778
|
-
return localVarFp.testApiKey(options).then((request) => request(axios, basePath));
|
|
5779
|
-
},
|
|
5780
5765
|
};
|
|
5781
5766
|
};
|
|
5782
5767
|
|
|
@@ -5790,12 +5775,13 @@ export class IntegrationApi extends BaseAPI {
|
|
|
5790
5775
|
/**
|
|
5791
5776
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
5792
5777
|
* @summary Generate API key for the current tenant
|
|
5778
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
5793
5779
|
* @param {*} [options] Override http request option.
|
|
5794
5780
|
* @throws {RequiredError}
|
|
5795
5781
|
* @memberof IntegrationApi
|
|
5796
5782
|
*/
|
|
5797
|
-
public generateApiKey(options?: AxiosRequestConfig) {
|
|
5798
|
-
return IntegrationApiFp(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
5783
|
+
public generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig) {
|
|
5784
|
+
return IntegrationApiFp(this.configuration).generateApiKey(apiKeyCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5799
5785
|
}
|
|
5800
5786
|
|
|
5801
5787
|
/**
|
|
@@ -5820,17 +5806,6 @@ export class IntegrationApi extends BaseAPI {
|
|
|
5820
5806
|
public setWebhook(webhook: Webhook, options?: AxiosRequestConfig) {
|
|
5821
5807
|
return IntegrationApiFp(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
|
|
5822
5808
|
}
|
|
5823
|
-
|
|
5824
|
-
/**
|
|
5825
|
-
* Test API key security scheme
|
|
5826
|
-
* @summary Test API key security scheme
|
|
5827
|
-
* @param {*} [options] Override http request option.
|
|
5828
|
-
* @throws {RequiredError}
|
|
5829
|
-
* @memberof IntegrationApi
|
|
5830
|
-
*/
|
|
5831
|
-
public testApiKey(options?: AxiosRequestConfig) {
|
|
5832
|
-
return IntegrationApiFp(this.configuration).testApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
5833
|
-
}
|
|
5834
5809
|
}
|
|
5835
5810
|
|
|
5836
5811
|
|
package/dist/api.d.ts
CHANGED
|
@@ -25,7 +25,36 @@ export interface ApiKey {
|
|
|
25
25
|
* @memberof ApiKey
|
|
26
26
|
*/
|
|
27
27
|
'key': string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ApiKeyKind}
|
|
31
|
+
* @memberof ApiKey
|
|
32
|
+
*/
|
|
33
|
+
'kind': ApiKeyKind;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface ApiKeyCreationRequest
|
|
39
|
+
*/
|
|
40
|
+
export interface ApiKeyCreationRequest {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {ApiKeyKind}
|
|
44
|
+
* @memberof ApiKeyCreationRequest
|
|
45
|
+
*/
|
|
46
|
+
'kind'?: ApiKeyKind;
|
|
28
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @export
|
|
51
|
+
* @enum {string}
|
|
52
|
+
*/
|
|
53
|
+
export declare const ApiKeyKind: {
|
|
54
|
+
readonly Webhook: "webhook";
|
|
55
|
+
readonly Api: "api";
|
|
56
|
+
};
|
|
57
|
+
export type ApiKeyKind = typeof ApiKeyKind[keyof typeof ApiKeyKind];
|
|
29
58
|
/**
|
|
30
59
|
*
|
|
31
60
|
* @export
|
|
@@ -385,12 +414,6 @@ export interface CallbackOrder {
|
|
|
385
414
|
* @memberof CallbackOrder
|
|
386
415
|
*/
|
|
387
416
|
'id': string;
|
|
388
|
-
/**
|
|
389
|
-
*
|
|
390
|
-
* @type {string}
|
|
391
|
-
* @memberof CallbackOrder
|
|
392
|
-
*/
|
|
393
|
-
'status': string;
|
|
394
417
|
/**
|
|
395
418
|
*
|
|
396
419
|
* @type {WebhookKind}
|
|
@@ -4437,10 +4460,11 @@ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configura
|
|
|
4437
4460
|
/**
|
|
4438
4461
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4439
4462
|
* @summary Generate API key for the current tenant
|
|
4463
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4440
4464
|
* @param {*} [options] Override http request option.
|
|
4441
4465
|
* @throws {RequiredError}
|
|
4442
4466
|
*/
|
|
4443
|
-
generateApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4467
|
+
generateApiKey: (apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4444
4468
|
/**
|
|
4445
4469
|
* List all webhooks for current tenant
|
|
4446
4470
|
* @summary List webhooks
|
|
@@ -4456,13 +4480,6 @@ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configura
|
|
|
4456
4480
|
* @throws {RequiredError}
|
|
4457
4481
|
*/
|
|
4458
4482
|
setWebhook: (webhook: Webhook, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4459
|
-
/**
|
|
4460
|
-
* Test API key security scheme
|
|
4461
|
-
* @summary Test API key security scheme
|
|
4462
|
-
* @param {*} [options] Override http request option.
|
|
4463
|
-
* @throws {RequiredError}
|
|
4464
|
-
*/
|
|
4465
|
-
testApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4466
4483
|
};
|
|
4467
4484
|
/**
|
|
4468
4485
|
* IntegrationApi - functional programming interface
|
|
@@ -4472,10 +4489,11 @@ export declare const IntegrationApiFp: (configuration?: Configuration) => {
|
|
|
4472
4489
|
/**
|
|
4473
4490
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4474
4491
|
* @summary Generate API key for the current tenant
|
|
4492
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4475
4493
|
* @param {*} [options] Override http request option.
|
|
4476
4494
|
* @throws {RequiredError}
|
|
4477
4495
|
*/
|
|
4478
|
-
generateApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
|
|
4496
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
|
|
4479
4497
|
/**
|
|
4480
4498
|
* List all webhooks for current tenant
|
|
4481
4499
|
* @summary List webhooks
|
|
@@ -4491,13 +4509,6 @@ export declare const IntegrationApiFp: (configuration?: Configuration) => {
|
|
|
4491
4509
|
* @throws {RequiredError}
|
|
4492
4510
|
*/
|
|
4493
4511
|
setWebhook(webhook: Webhook, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4494
|
-
/**
|
|
4495
|
-
* Test API key security scheme
|
|
4496
|
-
* @summary Test API key security scheme
|
|
4497
|
-
* @param {*} [options] Override http request option.
|
|
4498
|
-
* @throws {RequiredError}
|
|
4499
|
-
*/
|
|
4500
|
-
testApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4501
4512
|
};
|
|
4502
4513
|
/**
|
|
4503
4514
|
* IntegrationApi - factory interface
|
|
@@ -4507,10 +4518,11 @@ export declare const IntegrationApiFactory: (configuration?: Configuration, base
|
|
|
4507
4518
|
/**
|
|
4508
4519
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4509
4520
|
* @summary Generate API key for the current tenant
|
|
4521
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4510
4522
|
* @param {*} [options] Override http request option.
|
|
4511
4523
|
* @throws {RequiredError}
|
|
4512
4524
|
*/
|
|
4513
|
-
generateApiKey(options?: any): AxiosPromise<ApiKey>;
|
|
4525
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: any): AxiosPromise<ApiKey>;
|
|
4514
4526
|
/**
|
|
4515
4527
|
* List all webhooks for current tenant
|
|
4516
4528
|
* @summary List webhooks
|
|
@@ -4526,13 +4538,6 @@ export declare const IntegrationApiFactory: (configuration?: Configuration, base
|
|
|
4526
4538
|
* @throws {RequiredError}
|
|
4527
4539
|
*/
|
|
4528
4540
|
setWebhook(webhook: Webhook, options?: any): AxiosPromise<void>;
|
|
4529
|
-
/**
|
|
4530
|
-
* Test API key security scheme
|
|
4531
|
-
* @summary Test API key security scheme
|
|
4532
|
-
* @param {*} [options] Override http request option.
|
|
4533
|
-
* @throws {RequiredError}
|
|
4534
|
-
*/
|
|
4535
|
-
testApiKey(options?: any): AxiosPromise<void>;
|
|
4536
4541
|
};
|
|
4537
4542
|
/**
|
|
4538
4543
|
* IntegrationApi - object-oriented interface
|
|
@@ -4544,11 +4549,12 @@ export declare class IntegrationApi extends BaseAPI {
|
|
|
4544
4549
|
/**
|
|
4545
4550
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4546
4551
|
* @summary Generate API key for the current tenant
|
|
4552
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4547
4553
|
* @param {*} [options] Override http request option.
|
|
4548
4554
|
* @throws {RequiredError}
|
|
4549
4555
|
* @memberof IntegrationApi
|
|
4550
4556
|
*/
|
|
4551
|
-
generateApiKey(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
|
|
4557
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
|
|
4552
4558
|
/**
|
|
4553
4559
|
* List all webhooks for current tenant
|
|
4554
4560
|
* @summary List webhooks
|
|
@@ -4566,14 +4572,6 @@ export declare class IntegrationApi extends BaseAPI {
|
|
|
4566
4572
|
* @memberof IntegrationApi
|
|
4567
4573
|
*/
|
|
4568
4574
|
setWebhook(webhook: Webhook, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4569
|
-
/**
|
|
4570
|
-
* Test API key security scheme
|
|
4571
|
-
* @summary Test API key security scheme
|
|
4572
|
-
* @param {*} [options] Override http request option.
|
|
4573
|
-
* @throws {RequiredError}
|
|
4574
|
-
* @memberof IntegrationApi
|
|
4575
|
-
*/
|
|
4576
|
-
testApiKey(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4577
4575
|
}
|
|
4578
4576
|
/**
|
|
4579
4577
|
* NotificationApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -22,15 +22,24 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = void 0;
|
|
25
|
+
exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.PromotionSortByField = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
|
|
26
|
+
exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = void 0;
|
|
27
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const common_1 = require("./common");
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
const base_1 = require("./base");
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @enum {string}
|
|
38
|
+
*/
|
|
39
|
+
exports.ApiKeyKind = {
|
|
40
|
+
Webhook: 'webhook',
|
|
41
|
+
Api: 'api'
|
|
42
|
+
};
|
|
34
43
|
exports.AuditLogActionEnum = {
|
|
35
44
|
Create: 'create',
|
|
36
45
|
Update: 'update'
|
|
@@ -2053,10 +2062,11 @@ const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
2053
2062
|
/**
|
|
2054
2063
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2055
2064
|
* @summary Generate API key for the current tenant
|
|
2065
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2056
2066
|
* @param {*} [options] Override http request option.
|
|
2057
2067
|
* @throws {RequiredError}
|
|
2058
2068
|
*/
|
|
2059
|
-
generateApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2069
|
+
generateApiKey: (apiKeyCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2060
2070
|
const localVarPath = `/admins/integrations/apikey`;
|
|
2061
2071
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2062
2072
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2070,9 +2080,11 @@ const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
2070
2080
|
// authentication systemJWT required
|
|
2071
2081
|
// http bearer authentication required
|
|
2072
2082
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2083
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2073
2084
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2074
2085
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2075
2086
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2087
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(apiKeyCreationRequest, localVarRequestOptions, configuration);
|
|
2076
2088
|
return {
|
|
2077
2089
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2078
2090
|
options: localVarRequestOptions,
|
|
@@ -2139,33 +2151,6 @@ const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
2139
2151
|
options: localVarRequestOptions,
|
|
2140
2152
|
};
|
|
2141
2153
|
}),
|
|
2142
|
-
/**
|
|
2143
|
-
* Test API key security scheme
|
|
2144
|
-
* @summary Test API key security scheme
|
|
2145
|
-
* @param {*} [options] Override http request option.
|
|
2146
|
-
* @throws {RequiredError}
|
|
2147
|
-
*/
|
|
2148
|
-
testApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2149
|
-
const localVarPath = `/admins/integrations/apikey`;
|
|
2150
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2151
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2152
|
-
let baseOptions;
|
|
2153
|
-
if (configuration) {
|
|
2154
|
-
baseOptions = configuration.baseOptions;
|
|
2155
|
-
}
|
|
2156
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2157
|
-
const localVarHeaderParameter = {};
|
|
2158
|
-
const localVarQueryParameter = {};
|
|
2159
|
-
// authentication ApiKeyAuth required
|
|
2160
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
2161
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2162
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2163
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2164
|
-
return {
|
|
2165
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2166
|
-
options: localVarRequestOptions,
|
|
2167
|
-
};
|
|
2168
|
-
}),
|
|
2169
2154
|
};
|
|
2170
2155
|
};
|
|
2171
2156
|
exports.IntegrationApiAxiosParamCreator = IntegrationApiAxiosParamCreator;
|
|
@@ -2179,12 +2164,13 @@ const IntegrationApiFp = function (configuration) {
|
|
|
2179
2164
|
/**
|
|
2180
2165
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2181
2166
|
* @summary Generate API key for the current tenant
|
|
2167
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2182
2168
|
* @param {*} [options] Override http request option.
|
|
2183
2169
|
* @throws {RequiredError}
|
|
2184
2170
|
*/
|
|
2185
|
-
generateApiKey(options) {
|
|
2171
|
+
generateApiKey(apiKeyCreationRequest, options) {
|
|
2186
2172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2187
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(options);
|
|
2173
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(apiKeyCreationRequest, options);
|
|
2188
2174
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2189
2175
|
});
|
|
2190
2176
|
},
|
|
@@ -2213,18 +2199,6 @@ const IntegrationApiFp = function (configuration) {
|
|
|
2213
2199
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2214
2200
|
});
|
|
2215
2201
|
},
|
|
2216
|
-
/**
|
|
2217
|
-
* Test API key security scheme
|
|
2218
|
-
* @summary Test API key security scheme
|
|
2219
|
-
* @param {*} [options] Override http request option.
|
|
2220
|
-
* @throws {RequiredError}
|
|
2221
|
-
*/
|
|
2222
|
-
testApiKey(options) {
|
|
2223
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2224
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.testApiKey(options);
|
|
2225
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2226
|
-
});
|
|
2227
|
-
},
|
|
2228
2202
|
};
|
|
2229
2203
|
};
|
|
2230
2204
|
exports.IntegrationApiFp = IntegrationApiFp;
|
|
@@ -2238,11 +2212,12 @@ const IntegrationApiFactory = function (configuration, basePath, axios) {
|
|
|
2238
2212
|
/**
|
|
2239
2213
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2240
2214
|
* @summary Generate API key for the current tenant
|
|
2215
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2241
2216
|
* @param {*} [options] Override http request option.
|
|
2242
2217
|
* @throws {RequiredError}
|
|
2243
2218
|
*/
|
|
2244
|
-
generateApiKey(options) {
|
|
2245
|
-
return localVarFp.generateApiKey(options).then((request) => request(axios, basePath));
|
|
2219
|
+
generateApiKey(apiKeyCreationRequest, options) {
|
|
2220
|
+
return localVarFp.generateApiKey(apiKeyCreationRequest, options).then((request) => request(axios, basePath));
|
|
2246
2221
|
},
|
|
2247
2222
|
/**
|
|
2248
2223
|
* List all webhooks for current tenant
|
|
@@ -2263,15 +2238,6 @@ const IntegrationApiFactory = function (configuration, basePath, axios) {
|
|
|
2263
2238
|
setWebhook(webhook, options) {
|
|
2264
2239
|
return localVarFp.setWebhook(webhook, options).then((request) => request(axios, basePath));
|
|
2265
2240
|
},
|
|
2266
|
-
/**
|
|
2267
|
-
* Test API key security scheme
|
|
2268
|
-
* @summary Test API key security scheme
|
|
2269
|
-
* @param {*} [options] Override http request option.
|
|
2270
|
-
* @throws {RequiredError}
|
|
2271
|
-
*/
|
|
2272
|
-
testApiKey(options) {
|
|
2273
|
-
return localVarFp.testApiKey(options).then((request) => request(axios, basePath));
|
|
2274
|
-
},
|
|
2275
2241
|
};
|
|
2276
2242
|
};
|
|
2277
2243
|
exports.IntegrationApiFactory = IntegrationApiFactory;
|
|
@@ -2285,12 +2251,13 @@ class IntegrationApi extends base_1.BaseAPI {
|
|
|
2285
2251
|
/**
|
|
2286
2252
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2287
2253
|
* @summary Generate API key for the current tenant
|
|
2254
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2288
2255
|
* @param {*} [options] Override http request option.
|
|
2289
2256
|
* @throws {RequiredError}
|
|
2290
2257
|
* @memberof IntegrationApi
|
|
2291
2258
|
*/
|
|
2292
|
-
generateApiKey(options) {
|
|
2293
|
-
return (0, exports.IntegrationApiFp)(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
2259
|
+
generateApiKey(apiKeyCreationRequest, options) {
|
|
2260
|
+
return (0, exports.IntegrationApiFp)(this.configuration).generateApiKey(apiKeyCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2294
2261
|
}
|
|
2295
2262
|
/**
|
|
2296
2263
|
* List all webhooks for current tenant
|
|
@@ -2313,16 +2280,6 @@ class IntegrationApi extends base_1.BaseAPI {
|
|
|
2313
2280
|
setWebhook(webhook, options) {
|
|
2314
2281
|
return (0, exports.IntegrationApiFp)(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
|
|
2315
2282
|
}
|
|
2316
|
-
/**
|
|
2317
|
-
* Test API key security scheme
|
|
2318
|
-
* @summary Test API key security scheme
|
|
2319
|
-
* @param {*} [options] Override http request option.
|
|
2320
|
-
* @throws {RequiredError}
|
|
2321
|
-
* @memberof IntegrationApi
|
|
2322
|
-
*/
|
|
2323
|
-
testApiKey(options) {
|
|
2324
|
-
return (0, exports.IntegrationApiFp)(this.configuration).testApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
2325
|
-
}
|
|
2326
2283
|
}
|
|
2327
2284
|
exports.IntegrationApi = IntegrationApi;
|
|
2328
2285
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -25,7 +25,36 @@ export interface ApiKey {
|
|
|
25
25
|
* @memberof ApiKey
|
|
26
26
|
*/
|
|
27
27
|
'key': string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ApiKeyKind}
|
|
31
|
+
* @memberof ApiKey
|
|
32
|
+
*/
|
|
33
|
+
'kind': ApiKeyKind;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface ApiKeyCreationRequest
|
|
39
|
+
*/
|
|
40
|
+
export interface ApiKeyCreationRequest {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {ApiKeyKind}
|
|
44
|
+
* @memberof ApiKeyCreationRequest
|
|
45
|
+
*/
|
|
46
|
+
'kind'?: ApiKeyKind;
|
|
28
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @export
|
|
51
|
+
* @enum {string}
|
|
52
|
+
*/
|
|
53
|
+
export declare const ApiKeyKind: {
|
|
54
|
+
readonly Webhook: "webhook";
|
|
55
|
+
readonly Api: "api";
|
|
56
|
+
};
|
|
57
|
+
export type ApiKeyKind = typeof ApiKeyKind[keyof typeof ApiKeyKind];
|
|
29
58
|
/**
|
|
30
59
|
*
|
|
31
60
|
* @export
|
|
@@ -385,12 +414,6 @@ export interface CallbackOrder {
|
|
|
385
414
|
* @memberof CallbackOrder
|
|
386
415
|
*/
|
|
387
416
|
'id': string;
|
|
388
|
-
/**
|
|
389
|
-
*
|
|
390
|
-
* @type {string}
|
|
391
|
-
* @memberof CallbackOrder
|
|
392
|
-
*/
|
|
393
|
-
'status': string;
|
|
394
417
|
/**
|
|
395
418
|
*
|
|
396
419
|
* @type {WebhookKind}
|
|
@@ -4437,10 +4460,11 @@ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configura
|
|
|
4437
4460
|
/**
|
|
4438
4461
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4439
4462
|
* @summary Generate API key for the current tenant
|
|
4463
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4440
4464
|
* @param {*} [options] Override http request option.
|
|
4441
4465
|
* @throws {RequiredError}
|
|
4442
4466
|
*/
|
|
4443
|
-
generateApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4467
|
+
generateApiKey: (apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4444
4468
|
/**
|
|
4445
4469
|
* List all webhooks for current tenant
|
|
4446
4470
|
* @summary List webhooks
|
|
@@ -4456,13 +4480,6 @@ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configura
|
|
|
4456
4480
|
* @throws {RequiredError}
|
|
4457
4481
|
*/
|
|
4458
4482
|
setWebhook: (webhook: Webhook, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4459
|
-
/**
|
|
4460
|
-
* Test API key security scheme
|
|
4461
|
-
* @summary Test API key security scheme
|
|
4462
|
-
* @param {*} [options] Override http request option.
|
|
4463
|
-
* @throws {RequiredError}
|
|
4464
|
-
*/
|
|
4465
|
-
testApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4466
4483
|
};
|
|
4467
4484
|
/**
|
|
4468
4485
|
* IntegrationApi - functional programming interface
|
|
@@ -4472,10 +4489,11 @@ export declare const IntegrationApiFp: (configuration?: Configuration) => {
|
|
|
4472
4489
|
/**
|
|
4473
4490
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4474
4491
|
* @summary Generate API key for the current tenant
|
|
4492
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4475
4493
|
* @param {*} [options] Override http request option.
|
|
4476
4494
|
* @throws {RequiredError}
|
|
4477
4495
|
*/
|
|
4478
|
-
generateApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
|
|
4496
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
|
|
4479
4497
|
/**
|
|
4480
4498
|
* List all webhooks for current tenant
|
|
4481
4499
|
* @summary List webhooks
|
|
@@ -4491,13 +4509,6 @@ export declare const IntegrationApiFp: (configuration?: Configuration) => {
|
|
|
4491
4509
|
* @throws {RequiredError}
|
|
4492
4510
|
*/
|
|
4493
4511
|
setWebhook(webhook: Webhook, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4494
|
-
/**
|
|
4495
|
-
* Test API key security scheme
|
|
4496
|
-
* @summary Test API key security scheme
|
|
4497
|
-
* @param {*} [options] Override http request option.
|
|
4498
|
-
* @throws {RequiredError}
|
|
4499
|
-
*/
|
|
4500
|
-
testApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4501
4512
|
};
|
|
4502
4513
|
/**
|
|
4503
4514
|
* IntegrationApi - factory interface
|
|
@@ -4507,10 +4518,11 @@ export declare const IntegrationApiFactory: (configuration?: Configuration, base
|
|
|
4507
4518
|
/**
|
|
4508
4519
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4509
4520
|
* @summary Generate API key for the current tenant
|
|
4521
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4510
4522
|
* @param {*} [options] Override http request option.
|
|
4511
4523
|
* @throws {RequiredError}
|
|
4512
4524
|
*/
|
|
4513
|
-
generateApiKey(options?: any): AxiosPromise<ApiKey>;
|
|
4525
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: any): AxiosPromise<ApiKey>;
|
|
4514
4526
|
/**
|
|
4515
4527
|
* List all webhooks for current tenant
|
|
4516
4528
|
* @summary List webhooks
|
|
@@ -4526,13 +4538,6 @@ export declare const IntegrationApiFactory: (configuration?: Configuration, base
|
|
|
4526
4538
|
* @throws {RequiredError}
|
|
4527
4539
|
*/
|
|
4528
4540
|
setWebhook(webhook: Webhook, options?: any): AxiosPromise<void>;
|
|
4529
|
-
/**
|
|
4530
|
-
* Test API key security scheme
|
|
4531
|
-
* @summary Test API key security scheme
|
|
4532
|
-
* @param {*} [options] Override http request option.
|
|
4533
|
-
* @throws {RequiredError}
|
|
4534
|
-
*/
|
|
4535
|
-
testApiKey(options?: any): AxiosPromise<void>;
|
|
4536
4541
|
};
|
|
4537
4542
|
/**
|
|
4538
4543
|
* IntegrationApi - object-oriented interface
|
|
@@ -4544,11 +4549,12 @@ export declare class IntegrationApi extends BaseAPI {
|
|
|
4544
4549
|
/**
|
|
4545
4550
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
4546
4551
|
* @summary Generate API key for the current tenant
|
|
4552
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
4547
4553
|
* @param {*} [options] Override http request option.
|
|
4548
4554
|
* @throws {RequiredError}
|
|
4549
4555
|
* @memberof IntegrationApi
|
|
4550
4556
|
*/
|
|
4551
|
-
generateApiKey(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
|
|
4557
|
+
generateApiKey(apiKeyCreationRequest?: ApiKeyCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
|
|
4552
4558
|
/**
|
|
4553
4559
|
* List all webhooks for current tenant
|
|
4554
4560
|
* @summary List webhooks
|
|
@@ -4566,14 +4572,6 @@ export declare class IntegrationApi extends BaseAPI {
|
|
|
4566
4572
|
* @memberof IntegrationApi
|
|
4567
4573
|
*/
|
|
4568
4574
|
setWebhook(webhook: Webhook, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4569
|
-
/**
|
|
4570
|
-
* Test API key security scheme
|
|
4571
|
-
* @summary Test API key security scheme
|
|
4572
|
-
* @param {*} [options] Override http request option.
|
|
4573
|
-
* @throws {RequiredError}
|
|
4574
|
-
* @memberof IntegrationApi
|
|
4575
|
-
*/
|
|
4576
|
-
testApiKey(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4577
4575
|
}
|
|
4578
4576
|
/**
|
|
4579
4577
|
* NotificationApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -26,6 +26,15 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI } from './base';
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @enum {string}
|
|
33
|
+
*/
|
|
34
|
+
export const ApiKeyKind = {
|
|
35
|
+
Webhook: 'webhook',
|
|
36
|
+
Api: 'api'
|
|
37
|
+
};
|
|
29
38
|
export const AuditLogActionEnum = {
|
|
30
39
|
Create: 'create',
|
|
31
40
|
Update: 'update'
|
|
@@ -2016,10 +2025,11 @@ export const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
2016
2025
|
/**
|
|
2017
2026
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2018
2027
|
* @summary Generate API key for the current tenant
|
|
2028
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2019
2029
|
* @param {*} [options] Override http request option.
|
|
2020
2030
|
* @throws {RequiredError}
|
|
2021
2031
|
*/
|
|
2022
|
-
generateApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2032
|
+
generateApiKey: (apiKeyCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2023
2033
|
const localVarPath = `/admins/integrations/apikey`;
|
|
2024
2034
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2025
2035
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2033,9 +2043,11 @@ export const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
2033
2043
|
// authentication systemJWT required
|
|
2034
2044
|
// http bearer authentication required
|
|
2035
2045
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2046
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2036
2047
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2037
2048
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2038
2049
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2050
|
+
localVarRequestOptions.data = serializeDataIfNeeded(apiKeyCreationRequest, localVarRequestOptions, configuration);
|
|
2039
2051
|
return {
|
|
2040
2052
|
url: toPathString(localVarUrlObj),
|
|
2041
2053
|
options: localVarRequestOptions,
|
|
@@ -2102,33 +2114,6 @@ export const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
2102
2114
|
options: localVarRequestOptions,
|
|
2103
2115
|
};
|
|
2104
2116
|
}),
|
|
2105
|
-
/**
|
|
2106
|
-
* Test API key security scheme
|
|
2107
|
-
* @summary Test API key security scheme
|
|
2108
|
-
* @param {*} [options] Override http request option.
|
|
2109
|
-
* @throws {RequiredError}
|
|
2110
|
-
*/
|
|
2111
|
-
testApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2112
|
-
const localVarPath = `/admins/integrations/apikey`;
|
|
2113
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2114
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2115
|
-
let baseOptions;
|
|
2116
|
-
if (configuration) {
|
|
2117
|
-
baseOptions = configuration.baseOptions;
|
|
2118
|
-
}
|
|
2119
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2120
|
-
const localVarHeaderParameter = {};
|
|
2121
|
-
const localVarQueryParameter = {};
|
|
2122
|
-
// authentication ApiKeyAuth required
|
|
2123
|
-
yield setApiKeyToObject(localVarHeaderParameter, "X-API-Key", configuration);
|
|
2124
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2125
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2126
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2127
|
-
return {
|
|
2128
|
-
url: toPathString(localVarUrlObj),
|
|
2129
|
-
options: localVarRequestOptions,
|
|
2130
|
-
};
|
|
2131
|
-
}),
|
|
2132
2117
|
};
|
|
2133
2118
|
};
|
|
2134
2119
|
/**
|
|
@@ -2141,12 +2126,13 @@ export const IntegrationApiFp = function (configuration) {
|
|
|
2141
2126
|
/**
|
|
2142
2127
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2143
2128
|
* @summary Generate API key for the current tenant
|
|
2129
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2144
2130
|
* @param {*} [options] Override http request option.
|
|
2145
2131
|
* @throws {RequiredError}
|
|
2146
2132
|
*/
|
|
2147
|
-
generateApiKey(options) {
|
|
2133
|
+
generateApiKey(apiKeyCreationRequest, options) {
|
|
2148
2134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2149
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(options);
|
|
2135
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(apiKeyCreationRequest, options);
|
|
2150
2136
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2151
2137
|
});
|
|
2152
2138
|
},
|
|
@@ -2175,18 +2161,6 @@ export const IntegrationApiFp = function (configuration) {
|
|
|
2175
2161
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2176
2162
|
});
|
|
2177
2163
|
},
|
|
2178
|
-
/**
|
|
2179
|
-
* Test API key security scheme
|
|
2180
|
-
* @summary Test API key security scheme
|
|
2181
|
-
* @param {*} [options] Override http request option.
|
|
2182
|
-
* @throws {RequiredError}
|
|
2183
|
-
*/
|
|
2184
|
-
testApiKey(options) {
|
|
2185
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2186
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.testApiKey(options);
|
|
2187
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2188
|
-
});
|
|
2189
|
-
},
|
|
2190
2164
|
};
|
|
2191
2165
|
};
|
|
2192
2166
|
/**
|
|
@@ -2199,11 +2173,12 @@ export const IntegrationApiFactory = function (configuration, basePath, axios) {
|
|
|
2199
2173
|
/**
|
|
2200
2174
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2201
2175
|
* @summary Generate API key for the current tenant
|
|
2176
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2202
2177
|
* @param {*} [options] Override http request option.
|
|
2203
2178
|
* @throws {RequiredError}
|
|
2204
2179
|
*/
|
|
2205
|
-
generateApiKey(options) {
|
|
2206
|
-
return localVarFp.generateApiKey(options).then((request) => request(axios, basePath));
|
|
2180
|
+
generateApiKey(apiKeyCreationRequest, options) {
|
|
2181
|
+
return localVarFp.generateApiKey(apiKeyCreationRequest, options).then((request) => request(axios, basePath));
|
|
2207
2182
|
},
|
|
2208
2183
|
/**
|
|
2209
2184
|
* List all webhooks for current tenant
|
|
@@ -2224,15 +2199,6 @@ export const IntegrationApiFactory = function (configuration, basePath, axios) {
|
|
|
2224
2199
|
setWebhook(webhook, options) {
|
|
2225
2200
|
return localVarFp.setWebhook(webhook, options).then((request) => request(axios, basePath));
|
|
2226
2201
|
},
|
|
2227
|
-
/**
|
|
2228
|
-
* Test API key security scheme
|
|
2229
|
-
* @summary Test API key security scheme
|
|
2230
|
-
* @param {*} [options] Override http request option.
|
|
2231
|
-
* @throws {RequiredError}
|
|
2232
|
-
*/
|
|
2233
|
-
testApiKey(options) {
|
|
2234
|
-
return localVarFp.testApiKey(options).then((request) => request(axios, basePath));
|
|
2235
|
-
},
|
|
2236
2202
|
};
|
|
2237
2203
|
};
|
|
2238
2204
|
/**
|
|
@@ -2245,12 +2211,13 @@ export class IntegrationApi extends BaseAPI {
|
|
|
2245
2211
|
/**
|
|
2246
2212
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2247
2213
|
* @summary Generate API key for the current tenant
|
|
2214
|
+
* @param {ApiKeyCreationRequest} [apiKeyCreationRequest]
|
|
2248
2215
|
* @param {*} [options] Override http request option.
|
|
2249
2216
|
* @throws {RequiredError}
|
|
2250
2217
|
* @memberof IntegrationApi
|
|
2251
2218
|
*/
|
|
2252
|
-
generateApiKey(options) {
|
|
2253
|
-
return IntegrationApiFp(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
2219
|
+
generateApiKey(apiKeyCreationRequest, options) {
|
|
2220
|
+
return IntegrationApiFp(this.configuration).generateApiKey(apiKeyCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2254
2221
|
}
|
|
2255
2222
|
/**
|
|
2256
2223
|
* List all webhooks for current tenant
|
|
@@ -2273,16 +2240,6 @@ export class IntegrationApi extends BaseAPI {
|
|
|
2273
2240
|
setWebhook(webhook, options) {
|
|
2274
2241
|
return IntegrationApiFp(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
|
|
2275
2242
|
}
|
|
2276
|
-
/**
|
|
2277
|
-
* Test API key security scheme
|
|
2278
|
-
* @summary Test API key security scheme
|
|
2279
|
-
* @param {*} [options] Override http request option.
|
|
2280
|
-
* @throws {RequiredError}
|
|
2281
|
-
* @memberof IntegrationApi
|
|
2282
|
-
*/
|
|
2283
|
-
testApiKey(options) {
|
|
2284
|
-
return IntegrationApiFp(this.configuration).testApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
2285
|
-
}
|
|
2286
2243
|
}
|
|
2287
2244
|
/**
|
|
2288
2245
|
* NotificationApi - axios parameter creator
|