flexinet-api 0.0.319-prerelease0 → 0.0.320-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 +216 -66
- package/dist/api.d.ts +178 -44
- package/dist/api.js +107 -67
- package/dist/esm/api.d.ts +178 -44
- package/dist/esm/api.js +97 -62
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
|
@@ -236,6 +236,57 @@ export interface BulkNotificationsReadRequest {
|
|
|
236
236
|
*/
|
|
237
237
|
'notificationIds': Array<string>;
|
|
238
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @export
|
|
242
|
+
* @interface CallbackBeneficiaryDetails
|
|
243
|
+
*/
|
|
244
|
+
export interface CallbackBeneficiaryDetails {
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @type {string}
|
|
248
|
+
* @memberof CallbackBeneficiaryDetails
|
|
249
|
+
*/
|
|
250
|
+
'value': string;
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @type {BeneficiaryKind}
|
|
254
|
+
* @memberof CallbackBeneficiaryDetails
|
|
255
|
+
*/
|
|
256
|
+
'kind': BeneficiaryKind;
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @type {string}
|
|
260
|
+
* @memberof CallbackBeneficiaryDetails
|
|
261
|
+
*/
|
|
262
|
+
'reference'?: string;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* @type CallbackEvent
|
|
266
|
+
* @export
|
|
267
|
+
*/
|
|
268
|
+
export type CallbackEvent = {
|
|
269
|
+
kind: 'order';
|
|
270
|
+
} & CallbackOrder;
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @export
|
|
274
|
+
* @interface CallbackItemDetails
|
|
275
|
+
*/
|
|
276
|
+
export interface CallbackItemDetails {
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @type {number}
|
|
280
|
+
* @memberof CallbackItemDetails
|
|
281
|
+
*/
|
|
282
|
+
'qty': number;
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @type {CallbackProductDetails}
|
|
286
|
+
* @memberof CallbackItemDetails
|
|
287
|
+
*/
|
|
288
|
+
'product': CallbackProductDetails;
|
|
289
|
+
}
|
|
239
290
|
/**
|
|
240
291
|
*
|
|
241
292
|
* @export
|
|
@@ -244,22 +295,78 @@ export interface BulkNotificationsReadRequest {
|
|
|
244
295
|
export interface CallbackOrder {
|
|
245
296
|
/**
|
|
246
297
|
*
|
|
247
|
-
* @type {
|
|
298
|
+
* @type {CallbackOrderDetails}
|
|
248
299
|
* @memberof CallbackOrder
|
|
249
300
|
*/
|
|
250
|
-
'order'
|
|
301
|
+
'order': CallbackOrderDetails;
|
|
251
302
|
/**
|
|
252
303
|
*
|
|
253
304
|
* @type {string}
|
|
254
305
|
* @memberof CallbackOrder
|
|
255
306
|
*/
|
|
256
|
-
'id'
|
|
307
|
+
'id': string;
|
|
257
308
|
/**
|
|
258
309
|
*
|
|
259
310
|
* @type {string}
|
|
260
311
|
* @memberof CallbackOrder
|
|
261
312
|
*/
|
|
262
|
-
'status'
|
|
313
|
+
'status': string;
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @type {WebhookKind}
|
|
317
|
+
* @memberof CallbackOrder
|
|
318
|
+
*/
|
|
319
|
+
'kind': WebhookKind;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @export
|
|
324
|
+
* @interface CallbackOrderDetails
|
|
325
|
+
*/
|
|
326
|
+
export interface CallbackOrderDetails {
|
|
327
|
+
/**
|
|
328
|
+
*
|
|
329
|
+
* @type {CallbackBeneficiaryDetails}
|
|
330
|
+
* @memberof CallbackOrderDetails
|
|
331
|
+
*/
|
|
332
|
+
'beneficiary': CallbackBeneficiaryDetails;
|
|
333
|
+
/**
|
|
334
|
+
*
|
|
335
|
+
* @type {Array<CallbackItemDetails>}
|
|
336
|
+
* @memberof CallbackOrderDetails
|
|
337
|
+
*/
|
|
338
|
+
'items': Array<CallbackItemDetails>;
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @type {string}
|
|
342
|
+
* @memberof CallbackOrderDetails
|
|
343
|
+
*/
|
|
344
|
+
'id': string;
|
|
345
|
+
/**
|
|
346
|
+
*
|
|
347
|
+
* @type {string}
|
|
348
|
+
* @memberof CallbackOrderDetails
|
|
349
|
+
*/
|
|
350
|
+
'createdAt'?: string;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
*
|
|
354
|
+
* @export
|
|
355
|
+
* @interface CallbackProductDetails
|
|
356
|
+
*/
|
|
357
|
+
export interface CallbackProductDetails {
|
|
358
|
+
/**
|
|
359
|
+
*
|
|
360
|
+
* @type {string}
|
|
361
|
+
* @memberof CallbackProductDetails
|
|
362
|
+
*/
|
|
363
|
+
'id': string;
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @type {string}
|
|
367
|
+
* @memberof CallbackProductDetails
|
|
368
|
+
*/
|
|
369
|
+
'productCode': string;
|
|
263
370
|
}
|
|
264
371
|
/**
|
|
265
372
|
*
|
|
@@ -2772,6 +2879,7 @@ export interface Webhook {
|
|
|
2772
2879
|
*/
|
|
2773
2880
|
export declare const WebhookKind: {
|
|
2774
2881
|
readonly Order: "order";
|
|
2882
|
+
readonly Prod: "prod";
|
|
2775
2883
|
};
|
|
2776
2884
|
export type WebhookKind = typeof WebhookKind[keyof typeof WebhookKind];
|
|
2777
2885
|
/**
|
|
@@ -3433,12 +3541,19 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
|
3433
3541
|
*/
|
|
3434
3542
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3435
3543
|
/**
|
|
3436
|
-
*
|
|
3437
|
-
* @summary
|
|
3544
|
+
* Import events to the system to be processed
|
|
3545
|
+
* @summary Add event
|
|
3546
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
3438
3547
|
* @param {*} [options] Override http request option.
|
|
3439
3548
|
* @throws {RequiredError}
|
|
3440
3549
|
*/
|
|
3441
|
-
|
|
3550
|
+
importEvent: (eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3551
|
+
};
|
|
3552
|
+
/**
|
|
3553
|
+
* DefaultApi - functional programming interface
|
|
3554
|
+
* @export
|
|
3555
|
+
*/
|
|
3556
|
+
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
3442
3557
|
/**
|
|
3443
3558
|
* Import events to the system to be processed
|
|
3444
3559
|
* @summary Add event
|
|
@@ -3446,7 +3561,51 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3446
3561
|
* @param {*} [options] Override http request option.
|
|
3447
3562
|
* @throws {RequiredError}
|
|
3448
3563
|
*/
|
|
3449
|
-
importEvent
|
|
3564
|
+
importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
3565
|
+
};
|
|
3566
|
+
/**
|
|
3567
|
+
* DefaultApi - factory interface
|
|
3568
|
+
* @export
|
|
3569
|
+
*/
|
|
3570
|
+
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3571
|
+
/**
|
|
3572
|
+
* Import events to the system to be processed
|
|
3573
|
+
* @summary Add event
|
|
3574
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
3575
|
+
* @param {*} [options] Override http request option.
|
|
3576
|
+
* @throws {RequiredError}
|
|
3577
|
+
*/
|
|
3578
|
+
importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void>;
|
|
3579
|
+
};
|
|
3580
|
+
/**
|
|
3581
|
+
* DefaultApi - object-oriented interface
|
|
3582
|
+
* @export
|
|
3583
|
+
* @class DefaultApi
|
|
3584
|
+
* @extends {BaseAPI}
|
|
3585
|
+
*/
|
|
3586
|
+
export declare class DefaultApi extends BaseAPI {
|
|
3587
|
+
/**
|
|
3588
|
+
* Import events to the system to be processed
|
|
3589
|
+
* @summary Add event
|
|
3590
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
3591
|
+
* @param {*} [options] Override http request option.
|
|
3592
|
+
* @throws {RequiredError}
|
|
3593
|
+
* @memberof DefaultApi
|
|
3594
|
+
*/
|
|
3595
|
+
importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3596
|
+
}
|
|
3597
|
+
/**
|
|
3598
|
+
* IntegrationApi - axios parameter creator
|
|
3599
|
+
* @export
|
|
3600
|
+
*/
|
|
3601
|
+
export declare const IntegrationApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3602
|
+
/**
|
|
3603
|
+
* 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.
|
|
3604
|
+
* @summary Generate API key for the current tenant
|
|
3605
|
+
* @param {*} [options] Override http request option.
|
|
3606
|
+
* @throws {RequiredError}
|
|
3607
|
+
*/
|
|
3608
|
+
generateApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3450
3609
|
/**
|
|
3451
3610
|
* List all webhooks for current tenant
|
|
3452
3611
|
* @summary List webhooks
|
|
@@ -3471,10 +3630,10 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3471
3630
|
testApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3472
3631
|
};
|
|
3473
3632
|
/**
|
|
3474
|
-
*
|
|
3633
|
+
* IntegrationApi - functional programming interface
|
|
3475
3634
|
* @export
|
|
3476
3635
|
*/
|
|
3477
|
-
export declare const
|
|
3636
|
+
export declare const IntegrationApiFp: (configuration?: Configuration) => {
|
|
3478
3637
|
/**
|
|
3479
3638
|
* 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.
|
|
3480
3639
|
* @summary Generate API key for the current tenant
|
|
@@ -3482,14 +3641,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3482
3641
|
* @throws {RequiredError}
|
|
3483
3642
|
*/
|
|
3484
3643
|
generateApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKey>>;
|
|
3485
|
-
/**
|
|
3486
|
-
* Import events to the system to be processed
|
|
3487
|
-
* @summary Add event
|
|
3488
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
3489
|
-
* @param {*} [options] Override http request option.
|
|
3490
|
-
* @throws {RequiredError}
|
|
3491
|
-
*/
|
|
3492
|
-
importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
3493
3644
|
/**
|
|
3494
3645
|
* List all webhooks for current tenant
|
|
3495
3646
|
* @summary List webhooks
|
|
@@ -3514,10 +3665,10 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3514
3665
|
testApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
3515
3666
|
};
|
|
3516
3667
|
/**
|
|
3517
|
-
*
|
|
3668
|
+
* IntegrationApi - factory interface
|
|
3518
3669
|
* @export
|
|
3519
3670
|
*/
|
|
3520
|
-
export declare const
|
|
3671
|
+
export declare const IntegrationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3521
3672
|
/**
|
|
3522
3673
|
* 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.
|
|
3523
3674
|
* @summary Generate API key for the current tenant
|
|
@@ -3525,14 +3676,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3525
3676
|
* @throws {RequiredError}
|
|
3526
3677
|
*/
|
|
3527
3678
|
generateApiKey(options?: any): AxiosPromise<ApiKey>;
|
|
3528
|
-
/**
|
|
3529
|
-
* Import events to the system to be processed
|
|
3530
|
-
* @summary Add event
|
|
3531
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
3532
|
-
* @param {*} [options] Override http request option.
|
|
3533
|
-
* @throws {RequiredError}
|
|
3534
|
-
*/
|
|
3535
|
-
importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void>;
|
|
3536
3679
|
/**
|
|
3537
3680
|
* List all webhooks for current tenant
|
|
3538
3681
|
* @summary List webhooks
|
|
@@ -3557,35 +3700,26 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3557
3700
|
testApiKey(options?: any): AxiosPromise<void>;
|
|
3558
3701
|
};
|
|
3559
3702
|
/**
|
|
3560
|
-
*
|
|
3703
|
+
* IntegrationApi - object-oriented interface
|
|
3561
3704
|
* @export
|
|
3562
|
-
* @class
|
|
3705
|
+
* @class IntegrationApi
|
|
3563
3706
|
* @extends {BaseAPI}
|
|
3564
3707
|
*/
|
|
3565
|
-
export declare class
|
|
3708
|
+
export declare class IntegrationApi extends BaseAPI {
|
|
3566
3709
|
/**
|
|
3567
3710
|
* 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.
|
|
3568
3711
|
* @summary Generate API key for the current tenant
|
|
3569
3712
|
* @param {*} [options] Override http request option.
|
|
3570
3713
|
* @throws {RequiredError}
|
|
3571
|
-
* @memberof
|
|
3714
|
+
* @memberof IntegrationApi
|
|
3572
3715
|
*/
|
|
3573
3716
|
generateApiKey(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKey, any>>;
|
|
3574
|
-
/**
|
|
3575
|
-
* Import events to the system to be processed
|
|
3576
|
-
* @summary Add event
|
|
3577
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
3578
|
-
* @param {*} [options] Override http request option.
|
|
3579
|
-
* @throws {RequiredError}
|
|
3580
|
-
* @memberof DefaultApi
|
|
3581
|
-
*/
|
|
3582
|
-
importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3583
3717
|
/**
|
|
3584
3718
|
* List all webhooks for current tenant
|
|
3585
3719
|
* @summary List webhooks
|
|
3586
3720
|
* @param {*} [options] Override http request option.
|
|
3587
3721
|
* @throws {RequiredError}
|
|
3588
|
-
* @memberof
|
|
3722
|
+
* @memberof IntegrationApi
|
|
3589
3723
|
*/
|
|
3590
3724
|
listWebhooks(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WebhooksResponse, any>>;
|
|
3591
3725
|
/**
|
|
@@ -3594,7 +3728,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3594
3728
|
* @param {Webhook} webhook webhook data
|
|
3595
3729
|
* @param {*} [options] Override http request option.
|
|
3596
3730
|
* @throws {RequiredError}
|
|
3597
|
-
* @memberof
|
|
3731
|
+
* @memberof IntegrationApi
|
|
3598
3732
|
*/
|
|
3599
3733
|
setWebhook(webhook: Webhook, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3600
3734
|
/**
|
|
@@ -3602,7 +3736,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3602
3736
|
* @summary Test API key security scheme
|
|
3603
3737
|
* @param {*} [options] Override http request option.
|
|
3604
3738
|
* @throws {RequiredError}
|
|
3605
|
-
* @memberof
|
|
3739
|
+
* @memberof IntegrationApi
|
|
3606
3740
|
*/
|
|
3607
3741
|
testApiKey(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3608
3742
|
}
|
package/dist/esm/api.js
CHANGED
|
@@ -273,7 +273,8 @@ export const UserSource = {
|
|
|
273
273
|
* @enum {string}
|
|
274
274
|
*/
|
|
275
275
|
export const WebhookKind = {
|
|
276
|
-
Order: 'order'
|
|
276
|
+
Order: 'order',
|
|
277
|
+
Prod: 'prod'
|
|
277
278
|
};
|
|
278
279
|
/**
|
|
279
280
|
* AuditApi - axios parameter creator
|
|
@@ -1431,13 +1432,16 @@ export class CustomDealsApi extends BaseAPI {
|
|
|
1431
1432
|
export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1432
1433
|
return {
|
|
1433
1434
|
/**
|
|
1434
|
-
*
|
|
1435
|
-
* @summary
|
|
1435
|
+
* Import events to the system to be processed
|
|
1436
|
+
* @summary Add event
|
|
1437
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1436
1438
|
* @param {*} [options] Override http request option.
|
|
1437
1439
|
* @throws {RequiredError}
|
|
1438
1440
|
*/
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
+
importEvent: (eventCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1442
|
+
// verify required parameter 'eventCreationRequest' is not null or undefined
|
|
1443
|
+
assertParamExists('importEvent', 'eventCreationRequest', eventCreationRequest);
|
|
1444
|
+
const localVarPath = `/admins/events`;
|
|
1441
1445
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1442
1446
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1443
1447
|
let baseOptions;
|
|
@@ -1450,14 +1454,25 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1450
1454
|
// authentication jwt required
|
|
1451
1455
|
// http bearer authentication required
|
|
1452
1456
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1457
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1453
1458
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1454
1459
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1455
1460
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1461
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventCreationRequest, localVarRequestOptions, configuration);
|
|
1456
1462
|
return {
|
|
1457
1463
|
url: toPathString(localVarUrlObj),
|
|
1458
1464
|
options: localVarRequestOptions,
|
|
1459
1465
|
};
|
|
1460
1466
|
}),
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
/**
|
|
1470
|
+
* DefaultApi - functional programming interface
|
|
1471
|
+
* @export
|
|
1472
|
+
*/
|
|
1473
|
+
export const DefaultApiFp = function (configuration) {
|
|
1474
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
|
|
1475
|
+
return {
|
|
1461
1476
|
/**
|
|
1462
1477
|
* Import events to the system to be processed
|
|
1463
1478
|
* @summary Add event
|
|
@@ -1465,10 +1480,66 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1465
1480
|
* @param {*} [options] Override http request option.
|
|
1466
1481
|
* @throws {RequiredError}
|
|
1467
1482
|
*/
|
|
1468
|
-
importEvent
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1483
|
+
importEvent(eventCreationRequest, options) {
|
|
1484
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1485
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
|
|
1486
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1487
|
+
});
|
|
1488
|
+
},
|
|
1489
|
+
};
|
|
1490
|
+
};
|
|
1491
|
+
/**
|
|
1492
|
+
* DefaultApi - factory interface
|
|
1493
|
+
* @export
|
|
1494
|
+
*/
|
|
1495
|
+
export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1496
|
+
const localVarFp = DefaultApiFp(configuration);
|
|
1497
|
+
return {
|
|
1498
|
+
/**
|
|
1499
|
+
* Import events to the system to be processed
|
|
1500
|
+
* @summary Add event
|
|
1501
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1502
|
+
* @param {*} [options] Override http request option.
|
|
1503
|
+
* @throws {RequiredError}
|
|
1504
|
+
*/
|
|
1505
|
+
importEvent(eventCreationRequest, options) {
|
|
1506
|
+
return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
|
|
1507
|
+
},
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
/**
|
|
1511
|
+
* DefaultApi - object-oriented interface
|
|
1512
|
+
* @export
|
|
1513
|
+
* @class DefaultApi
|
|
1514
|
+
* @extends {BaseAPI}
|
|
1515
|
+
*/
|
|
1516
|
+
export class DefaultApi extends BaseAPI {
|
|
1517
|
+
/**
|
|
1518
|
+
* Import events to the system to be processed
|
|
1519
|
+
* @summary Add event
|
|
1520
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1521
|
+
* @param {*} [options] Override http request option.
|
|
1522
|
+
* @throws {RequiredError}
|
|
1523
|
+
* @memberof DefaultApi
|
|
1524
|
+
*/
|
|
1525
|
+
importEvent(eventCreationRequest, options) {
|
|
1526
|
+
return DefaultApiFp(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* IntegrationApi - axios parameter creator
|
|
1531
|
+
* @export
|
|
1532
|
+
*/
|
|
1533
|
+
export const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
1534
|
+
return {
|
|
1535
|
+
/**
|
|
1536
|
+
* 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.
|
|
1537
|
+
* @summary Generate API key for the current tenant
|
|
1538
|
+
* @param {*} [options] Override http request option.
|
|
1539
|
+
* @throws {RequiredError}
|
|
1540
|
+
*/
|
|
1541
|
+
generateApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1542
|
+
const localVarPath = `/admins/integrations/apikey`;
|
|
1472
1543
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1473
1544
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1474
1545
|
let baseOptions;
|
|
@@ -1481,11 +1552,9 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1481
1552
|
// authentication jwt required
|
|
1482
1553
|
// http bearer authentication required
|
|
1483
1554
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1484
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1485
1555
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1486
1556
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1487
1557
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1488
|
-
localVarRequestOptions.data = serializeDataIfNeeded(eventCreationRequest, localVarRequestOptions, configuration);
|
|
1489
1558
|
return {
|
|
1490
1559
|
url: toPathString(localVarUrlObj),
|
|
1491
1560
|
options: localVarRequestOptions,
|
|
@@ -1582,11 +1651,11 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1582
1651
|
};
|
|
1583
1652
|
};
|
|
1584
1653
|
/**
|
|
1585
|
-
*
|
|
1654
|
+
* IntegrationApi - functional programming interface
|
|
1586
1655
|
* @export
|
|
1587
1656
|
*/
|
|
1588
|
-
export const
|
|
1589
|
-
const localVarAxiosParamCreator =
|
|
1657
|
+
export const IntegrationApiFp = function (configuration) {
|
|
1658
|
+
const localVarAxiosParamCreator = IntegrationApiAxiosParamCreator(configuration);
|
|
1590
1659
|
return {
|
|
1591
1660
|
/**
|
|
1592
1661
|
* 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.
|
|
@@ -1600,19 +1669,6 @@ export const DefaultApiFp = function (configuration) {
|
|
|
1600
1669
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1601
1670
|
});
|
|
1602
1671
|
},
|
|
1603
|
-
/**
|
|
1604
|
-
* Import events to the system to be processed
|
|
1605
|
-
* @summary Add event
|
|
1606
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1607
|
-
* @param {*} [options] Override http request option.
|
|
1608
|
-
* @throws {RequiredError}
|
|
1609
|
-
*/
|
|
1610
|
-
importEvent(eventCreationRequest, options) {
|
|
1611
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1612
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
|
|
1613
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1614
|
-
});
|
|
1615
|
-
},
|
|
1616
1672
|
/**
|
|
1617
1673
|
* List all webhooks for current tenant
|
|
1618
1674
|
* @summary List webhooks
|
|
@@ -1653,11 +1709,11 @@ export const DefaultApiFp = function (configuration) {
|
|
|
1653
1709
|
};
|
|
1654
1710
|
};
|
|
1655
1711
|
/**
|
|
1656
|
-
*
|
|
1712
|
+
* IntegrationApi - factory interface
|
|
1657
1713
|
* @export
|
|
1658
1714
|
*/
|
|
1659
|
-
export const
|
|
1660
|
-
const localVarFp =
|
|
1715
|
+
export const IntegrationApiFactory = function (configuration, basePath, axios) {
|
|
1716
|
+
const localVarFp = IntegrationApiFp(configuration);
|
|
1661
1717
|
return {
|
|
1662
1718
|
/**
|
|
1663
1719
|
* 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.
|
|
@@ -1668,16 +1724,6 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1668
1724
|
generateApiKey(options) {
|
|
1669
1725
|
return localVarFp.generateApiKey(options).then((request) => request(axios, basePath));
|
|
1670
1726
|
},
|
|
1671
|
-
/**
|
|
1672
|
-
* Import events to the system to be processed
|
|
1673
|
-
* @summary Add event
|
|
1674
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1675
|
-
* @param {*} [options] Override http request option.
|
|
1676
|
-
* @throws {RequiredError}
|
|
1677
|
-
*/
|
|
1678
|
-
importEvent(eventCreationRequest, options) {
|
|
1679
|
-
return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
|
|
1680
|
-
},
|
|
1681
1727
|
/**
|
|
1682
1728
|
* List all webhooks for current tenant
|
|
1683
1729
|
* @summary List webhooks
|
|
@@ -1709,42 +1755,31 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1709
1755
|
};
|
|
1710
1756
|
};
|
|
1711
1757
|
/**
|
|
1712
|
-
*
|
|
1758
|
+
* IntegrationApi - object-oriented interface
|
|
1713
1759
|
* @export
|
|
1714
|
-
* @class
|
|
1760
|
+
* @class IntegrationApi
|
|
1715
1761
|
* @extends {BaseAPI}
|
|
1716
1762
|
*/
|
|
1717
|
-
export class
|
|
1763
|
+
export class IntegrationApi extends BaseAPI {
|
|
1718
1764
|
/**
|
|
1719
1765
|
* 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.
|
|
1720
1766
|
* @summary Generate API key for the current tenant
|
|
1721
1767
|
* @param {*} [options] Override http request option.
|
|
1722
1768
|
* @throws {RequiredError}
|
|
1723
|
-
* @memberof
|
|
1769
|
+
* @memberof IntegrationApi
|
|
1724
1770
|
*/
|
|
1725
1771
|
generateApiKey(options) {
|
|
1726
|
-
return
|
|
1727
|
-
}
|
|
1728
|
-
/**
|
|
1729
|
-
* Import events to the system to be processed
|
|
1730
|
-
* @summary Add event
|
|
1731
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1732
|
-
* @param {*} [options] Override http request option.
|
|
1733
|
-
* @throws {RequiredError}
|
|
1734
|
-
* @memberof DefaultApi
|
|
1735
|
-
*/
|
|
1736
|
-
importEvent(eventCreationRequest, options) {
|
|
1737
|
-
return DefaultApiFp(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1772
|
+
return IntegrationApiFp(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
1738
1773
|
}
|
|
1739
1774
|
/**
|
|
1740
1775
|
* List all webhooks for current tenant
|
|
1741
1776
|
* @summary List webhooks
|
|
1742
1777
|
* @param {*} [options] Override http request option.
|
|
1743
1778
|
* @throws {RequiredError}
|
|
1744
|
-
* @memberof
|
|
1779
|
+
* @memberof IntegrationApi
|
|
1745
1780
|
*/
|
|
1746
1781
|
listWebhooks(options) {
|
|
1747
|
-
return
|
|
1782
|
+
return IntegrationApiFp(this.configuration).listWebhooks(options).then((request) => request(this.axios, this.basePath));
|
|
1748
1783
|
}
|
|
1749
1784
|
/**
|
|
1750
1785
|
* Set up webhook url for a given integration
|
|
@@ -1752,20 +1787,20 @@ export class DefaultApi extends BaseAPI {
|
|
|
1752
1787
|
* @param {Webhook} webhook webhook data
|
|
1753
1788
|
* @param {*} [options] Override http request option.
|
|
1754
1789
|
* @throws {RequiredError}
|
|
1755
|
-
* @memberof
|
|
1790
|
+
* @memberof IntegrationApi
|
|
1756
1791
|
*/
|
|
1757
1792
|
setWebhook(webhook, options) {
|
|
1758
|
-
return
|
|
1793
|
+
return IntegrationApiFp(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
|
|
1759
1794
|
}
|
|
1760
1795
|
/**
|
|
1761
1796
|
* Test API key security scheme
|
|
1762
1797
|
* @summary Test API key security scheme
|
|
1763
1798
|
* @param {*} [options] Override http request option.
|
|
1764
1799
|
* @throws {RequiredError}
|
|
1765
|
-
* @memberof
|
|
1800
|
+
* @memberof IntegrationApi
|
|
1766
1801
|
*/
|
|
1767
1802
|
testApiKey(options) {
|
|
1768
|
-
return
|
|
1803
|
+
return IntegrationApiFp(this.configuration).testApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
1769
1804
|
}
|
|
1770
1805
|
}
|
|
1771
1806
|
/**
|