flexinet-api 0.0.736-prerelease0 → 0.0.737-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 +64 -76
- package/dist/api.d.ts +50 -39
- package/dist/api.js +25 -68
- package/dist/esm/api.d.ts +50 -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.737-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.737-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}
|
|
@@ -865,6 +896,19 @@ export interface FeaturesResponse {
|
|
|
865
896
|
*/
|
|
866
897
|
'features': Array<Feature>;
|
|
867
898
|
}
|
|
899
|
+
/**
|
|
900
|
+
*
|
|
901
|
+
* @export
|
|
902
|
+
* @interface GenerateApiKeyRequest
|
|
903
|
+
*/
|
|
904
|
+
export interface GenerateApiKeyRequest {
|
|
905
|
+
/**
|
|
906
|
+
*
|
|
907
|
+
* @type {ApiKeyCreationRequest}
|
|
908
|
+
* @memberof GenerateApiKeyRequest
|
|
909
|
+
*/
|
|
910
|
+
'tag'?: ApiKeyCreationRequest;
|
|
911
|
+
}
|
|
868
912
|
/**
|
|
869
913
|
*
|
|
870
914
|
* @export
|
|
@@ -5541,10 +5585,11 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5541
5585
|
/**
|
|
5542
5586
|
* 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
5587
|
* @summary Generate API key for the current tenant
|
|
5588
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
5544
5589
|
* @param {*} [options] Override http request option.
|
|
5545
5590
|
* @throws {RequiredError}
|
|
5546
5591
|
*/
|
|
5547
|
-
generateApiKey: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5592
|
+
generateApiKey: async (generateApiKeyRequest?: GenerateApiKeyRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5548
5593
|
const localVarPath = `/admins/integrations/apikey`;
|
|
5549
5594
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5550
5595
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5563,9 +5608,12 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5563
5608
|
|
|
5564
5609
|
|
|
5565
5610
|
|
|
5611
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5612
|
+
|
|
5566
5613
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5567
5614
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5568
5615
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5616
|
+
localVarRequestOptions.data = serializeDataIfNeeded(generateApiKeyRequest, localVarRequestOptions, configuration)
|
|
5569
5617
|
|
|
5570
5618
|
return {
|
|
5571
5619
|
url: toPathString(localVarUrlObj),
|
|
@@ -5641,39 +5689,6 @@ export const IntegrationApiAxiosParamCreator = function (configuration?: Configu
|
|
|
5641
5689
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5642
5690
|
localVarRequestOptions.data = serializeDataIfNeeded(webhook, localVarRequestOptions, configuration)
|
|
5643
5691
|
|
|
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
5692
|
return {
|
|
5678
5693
|
url: toPathString(localVarUrlObj),
|
|
5679
5694
|
options: localVarRequestOptions,
|
|
@@ -5692,11 +5707,12 @@ export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
|
5692
5707
|
/**
|
|
5693
5708
|
* 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
5709
|
* @summary Generate API key for the current tenant
|
|
5710
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
5695
5711
|
* @param {*} [options] Override http request option.
|
|
5696
5712
|
* @throws {RequiredError}
|
|
5697
5713
|
*/
|
|
5698
|
-
async generateApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>> {
|
|
5699
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.generateApiKey(options);
|
|
5714
|
+
async generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>> {
|
|
5715
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateApiKey(generateApiKeyRequest, options);
|
|
5700
5716
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5701
5717
|
},
|
|
5702
5718
|
/**
|
|
@@ -5720,16 +5736,6 @@ export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
|
5720
5736
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setWebhook(webhook, options);
|
|
5721
5737
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5722
5738
|
},
|
|
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
5739
|
}
|
|
5734
5740
|
};
|
|
5735
5741
|
|
|
@@ -5743,11 +5749,12 @@ export const IntegrationApiFactory = function (configuration?: Configuration, ba
|
|
|
5743
5749
|
/**
|
|
5744
5750
|
* 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
5751
|
* @summary Generate API key for the current tenant
|
|
5752
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
5746
5753
|
* @param {*} [options] Override http request option.
|
|
5747
5754
|
* @throws {RequiredError}
|
|
5748
5755
|
*/
|
|
5749
|
-
generateApiKey(options?: any): AxiosPromise<ApiKey> {
|
|
5750
|
-
return localVarFp.generateApiKey(options).then((request) => request(axios, basePath));
|
|
5756
|
+
generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: any): AxiosPromise<ApiKey> {
|
|
5757
|
+
return localVarFp.generateApiKey(generateApiKeyRequest, options).then((request) => request(axios, basePath));
|
|
5751
5758
|
},
|
|
5752
5759
|
/**
|
|
5753
5760
|
* List all webhooks for current tenant
|
|
@@ -5768,15 +5775,6 @@ export const IntegrationApiFactory = function (configuration?: Configuration, ba
|
|
|
5768
5775
|
setWebhook(webhook: Webhook, options?: any): AxiosPromise<void> {
|
|
5769
5776
|
return localVarFp.setWebhook(webhook, options).then((request) => request(axios, basePath));
|
|
5770
5777
|
},
|
|
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
5778
|
};
|
|
5781
5779
|
};
|
|
5782
5780
|
|
|
@@ -5790,12 +5788,13 @@ export class IntegrationApi extends BaseAPI {
|
|
|
5790
5788
|
/**
|
|
5791
5789
|
* 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
5790
|
* @summary Generate API key for the current tenant
|
|
5791
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
5793
5792
|
* @param {*} [options] Override http request option.
|
|
5794
5793
|
* @throws {RequiredError}
|
|
5795
5794
|
* @memberof IntegrationApi
|
|
5796
5795
|
*/
|
|
5797
|
-
public generateApiKey(options?: AxiosRequestConfig) {
|
|
5798
|
-
return IntegrationApiFp(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
5796
|
+
public generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig) {
|
|
5797
|
+
return IntegrationApiFp(this.configuration).generateApiKey(generateApiKeyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5799
5798
|
}
|
|
5800
5799
|
|
|
5801
5800
|
/**
|
|
@@ -5820,17 +5819,6 @@ export class IntegrationApi extends BaseAPI {
|
|
|
5820
5819
|
public setWebhook(webhook: Webhook, options?: AxiosRequestConfig) {
|
|
5821
5820
|
return IntegrationApiFp(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
|
|
5822
5821
|
}
|
|
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
5822
|
}
|
|
5835
5823
|
|
|
5836
5824
|
|
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}
|
|
@@ -812,6 +835,19 @@ export interface FeaturesResponse {
|
|
|
812
835
|
*/
|
|
813
836
|
'features': Array<Feature>;
|
|
814
837
|
}
|
|
838
|
+
/**
|
|
839
|
+
*
|
|
840
|
+
* @export
|
|
841
|
+
* @interface GenerateApiKeyRequest
|
|
842
|
+
*/
|
|
843
|
+
export interface GenerateApiKeyRequest {
|
|
844
|
+
/**
|
|
845
|
+
*
|
|
846
|
+
* @type {ApiKeyCreationRequest}
|
|
847
|
+
* @memberof GenerateApiKeyRequest
|
|
848
|
+
*/
|
|
849
|
+
'tag'?: ApiKeyCreationRequest;
|
|
850
|
+
}
|
|
815
851
|
/**
|
|
816
852
|
*
|
|
817
853
|
* @export
|
|
@@ -4437,10 +4473,11 @@ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configura
|
|
|
4437
4473
|
/**
|
|
4438
4474
|
* 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
4475
|
* @summary Generate API key for the current tenant
|
|
4476
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
4440
4477
|
* @param {*} [options] Override http request option.
|
|
4441
4478
|
* @throws {RequiredError}
|
|
4442
4479
|
*/
|
|
4443
|
-
generateApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4480
|
+
generateApiKey: (generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4444
4481
|
/**
|
|
4445
4482
|
* List all webhooks for current tenant
|
|
4446
4483
|
* @summary List webhooks
|
|
@@ -4456,13 +4493,6 @@ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configura
|
|
|
4456
4493
|
* @throws {RequiredError}
|
|
4457
4494
|
*/
|
|
4458
4495
|
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
4496
|
};
|
|
4467
4497
|
/**
|
|
4468
4498
|
* IntegrationApi - functional programming interface
|
|
@@ -4472,10 +4502,11 @@ export declare const IntegrationApiFp: (configuration?: Configuration) => {
|
|
|
4472
4502
|
/**
|
|
4473
4503
|
* 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
4504
|
* @summary Generate API key for the current tenant
|
|
4505
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
4475
4506
|
* @param {*} [options] Override http request option.
|
|
4476
4507
|
* @throws {RequiredError}
|
|
4477
4508
|
*/
|
|
4478
|
-
generateApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
|
|
4509
|
+
generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
|
|
4479
4510
|
/**
|
|
4480
4511
|
* List all webhooks for current tenant
|
|
4481
4512
|
* @summary List webhooks
|
|
@@ -4491,13 +4522,6 @@ export declare const IntegrationApiFp: (configuration?: Configuration) => {
|
|
|
4491
4522
|
* @throws {RequiredError}
|
|
4492
4523
|
*/
|
|
4493
4524
|
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
4525
|
};
|
|
4502
4526
|
/**
|
|
4503
4527
|
* IntegrationApi - factory interface
|
|
@@ -4507,10 +4531,11 @@ export declare const IntegrationApiFactory: (configuration?: Configuration, base
|
|
|
4507
4531
|
/**
|
|
4508
4532
|
* 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
4533
|
* @summary Generate API key for the current tenant
|
|
4534
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
4510
4535
|
* @param {*} [options] Override http request option.
|
|
4511
4536
|
* @throws {RequiredError}
|
|
4512
4537
|
*/
|
|
4513
|
-
generateApiKey(options?: any): AxiosPromise<ApiKey>;
|
|
4538
|
+
generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: any): AxiosPromise<ApiKey>;
|
|
4514
4539
|
/**
|
|
4515
4540
|
* List all webhooks for current tenant
|
|
4516
4541
|
* @summary List webhooks
|
|
@@ -4526,13 +4551,6 @@ export declare const IntegrationApiFactory: (configuration?: Configuration, base
|
|
|
4526
4551
|
* @throws {RequiredError}
|
|
4527
4552
|
*/
|
|
4528
4553
|
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
4554
|
};
|
|
4537
4555
|
/**
|
|
4538
4556
|
* IntegrationApi - object-oriented interface
|
|
@@ -4544,11 +4562,12 @@ export declare class IntegrationApi extends BaseAPI {
|
|
|
4544
4562
|
/**
|
|
4545
4563
|
* 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
4564
|
* @summary Generate API key for the current tenant
|
|
4565
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
4547
4566
|
* @param {*} [options] Override http request option.
|
|
4548
4567
|
* @throws {RequiredError}
|
|
4549
4568
|
* @memberof IntegrationApi
|
|
4550
4569
|
*/
|
|
4551
|
-
generateApiKey(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
|
|
4570
|
+
generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
|
|
4552
4571
|
/**
|
|
4553
4572
|
* List all webhooks for current tenant
|
|
4554
4573
|
* @summary List webhooks
|
|
@@ -4566,14 +4585,6 @@ export declare class IntegrationApi extends BaseAPI {
|
|
|
4566
4585
|
* @memberof IntegrationApi
|
|
4567
4586
|
*/
|
|
4568
4587
|
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
4588
|
}
|
|
4578
4589
|
/**
|
|
4579
4590
|
* 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 {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
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: (generateApiKeyRequest, 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)(generateApiKeyRequest, 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 {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
2182
2168
|
* @param {*} [options] Override http request option.
|
|
2183
2169
|
* @throws {RequiredError}
|
|
2184
2170
|
*/
|
|
2185
|
-
generateApiKey(options) {
|
|
2171
|
+
generateApiKey(generateApiKeyRequest, options) {
|
|
2186
2172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2187
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(options);
|
|
2173
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(generateApiKeyRequest, 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 {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
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(generateApiKeyRequest, options) {
|
|
2220
|
+
return localVarFp.generateApiKey(generateApiKeyRequest, 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 {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
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(generateApiKeyRequest, options) {
|
|
2260
|
+
return (0, exports.IntegrationApiFp)(this.configuration).generateApiKey(generateApiKeyRequest, 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}
|
|
@@ -812,6 +835,19 @@ export interface FeaturesResponse {
|
|
|
812
835
|
*/
|
|
813
836
|
'features': Array<Feature>;
|
|
814
837
|
}
|
|
838
|
+
/**
|
|
839
|
+
*
|
|
840
|
+
* @export
|
|
841
|
+
* @interface GenerateApiKeyRequest
|
|
842
|
+
*/
|
|
843
|
+
export interface GenerateApiKeyRequest {
|
|
844
|
+
/**
|
|
845
|
+
*
|
|
846
|
+
* @type {ApiKeyCreationRequest}
|
|
847
|
+
* @memberof GenerateApiKeyRequest
|
|
848
|
+
*/
|
|
849
|
+
'tag'?: ApiKeyCreationRequest;
|
|
850
|
+
}
|
|
815
851
|
/**
|
|
816
852
|
*
|
|
817
853
|
* @export
|
|
@@ -4437,10 +4473,11 @@ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configura
|
|
|
4437
4473
|
/**
|
|
4438
4474
|
* 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
4475
|
* @summary Generate API key for the current tenant
|
|
4476
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
4440
4477
|
* @param {*} [options] Override http request option.
|
|
4441
4478
|
* @throws {RequiredError}
|
|
4442
4479
|
*/
|
|
4443
|
-
generateApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4480
|
+
generateApiKey: (generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4444
4481
|
/**
|
|
4445
4482
|
* List all webhooks for current tenant
|
|
4446
4483
|
* @summary List webhooks
|
|
@@ -4456,13 +4493,6 @@ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configura
|
|
|
4456
4493
|
* @throws {RequiredError}
|
|
4457
4494
|
*/
|
|
4458
4495
|
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
4496
|
};
|
|
4467
4497
|
/**
|
|
4468
4498
|
* IntegrationApi - functional programming interface
|
|
@@ -4472,10 +4502,11 @@ export declare const IntegrationApiFp: (configuration?: Configuration) => {
|
|
|
4472
4502
|
/**
|
|
4473
4503
|
* 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
4504
|
* @summary Generate API key for the current tenant
|
|
4505
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
4475
4506
|
* @param {*} [options] Override http request option.
|
|
4476
4507
|
* @throws {RequiredError}
|
|
4477
4508
|
*/
|
|
4478
|
-
generateApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
|
|
4509
|
+
generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
|
|
4479
4510
|
/**
|
|
4480
4511
|
* List all webhooks for current tenant
|
|
4481
4512
|
* @summary List webhooks
|
|
@@ -4491,13 +4522,6 @@ export declare const IntegrationApiFp: (configuration?: Configuration) => {
|
|
|
4491
4522
|
* @throws {RequiredError}
|
|
4492
4523
|
*/
|
|
4493
4524
|
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
4525
|
};
|
|
4502
4526
|
/**
|
|
4503
4527
|
* IntegrationApi - factory interface
|
|
@@ -4507,10 +4531,11 @@ export declare const IntegrationApiFactory: (configuration?: Configuration, base
|
|
|
4507
4531
|
/**
|
|
4508
4532
|
* 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
4533
|
* @summary Generate API key for the current tenant
|
|
4534
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
4510
4535
|
* @param {*} [options] Override http request option.
|
|
4511
4536
|
* @throws {RequiredError}
|
|
4512
4537
|
*/
|
|
4513
|
-
generateApiKey(options?: any): AxiosPromise<ApiKey>;
|
|
4538
|
+
generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: any): AxiosPromise<ApiKey>;
|
|
4514
4539
|
/**
|
|
4515
4540
|
* List all webhooks for current tenant
|
|
4516
4541
|
* @summary List webhooks
|
|
@@ -4526,13 +4551,6 @@ export declare const IntegrationApiFactory: (configuration?: Configuration, base
|
|
|
4526
4551
|
* @throws {RequiredError}
|
|
4527
4552
|
*/
|
|
4528
4553
|
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
4554
|
};
|
|
4537
4555
|
/**
|
|
4538
4556
|
* IntegrationApi - object-oriented interface
|
|
@@ -4544,11 +4562,12 @@ export declare class IntegrationApi extends BaseAPI {
|
|
|
4544
4562
|
/**
|
|
4545
4563
|
* 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
4564
|
* @summary Generate API key for the current tenant
|
|
4565
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
4547
4566
|
* @param {*} [options] Override http request option.
|
|
4548
4567
|
* @throws {RequiredError}
|
|
4549
4568
|
* @memberof IntegrationApi
|
|
4550
4569
|
*/
|
|
4551
|
-
generateApiKey(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
|
|
4570
|
+
generateApiKey(generateApiKeyRequest?: GenerateApiKeyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
|
|
4552
4571
|
/**
|
|
4553
4572
|
* List all webhooks for current tenant
|
|
4554
4573
|
* @summary List webhooks
|
|
@@ -4566,14 +4585,6 @@ export declare class IntegrationApi extends BaseAPI {
|
|
|
4566
4585
|
* @memberof IntegrationApi
|
|
4567
4586
|
*/
|
|
4568
4587
|
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
4588
|
}
|
|
4578
4589
|
/**
|
|
4579
4590
|
* 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 {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
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: (generateApiKeyRequest, 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(generateApiKeyRequest, 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 {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
2144
2130
|
* @param {*} [options] Override http request option.
|
|
2145
2131
|
* @throws {RequiredError}
|
|
2146
2132
|
*/
|
|
2147
|
-
generateApiKey(options) {
|
|
2133
|
+
generateApiKey(generateApiKeyRequest, options) {
|
|
2148
2134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2149
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(options);
|
|
2135
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(generateApiKeyRequest, 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 {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
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(generateApiKeyRequest, options) {
|
|
2181
|
+
return localVarFp.generateApiKey(generateApiKeyRequest, 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 {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
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(generateApiKeyRequest, options) {
|
|
2220
|
+
return IntegrationApiFp(this.configuration).generateApiKey(generateApiKeyRequest, 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
|