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/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/api.js
CHANGED
|
@@ -23,7 +23,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.ProgressState = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = void 0;
|
|
26
|
-
exports.
|
|
26
|
+
exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.RewardApi = exports.RewardApiFactory = exports.RewardApiFp = exports.RewardApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ListProgressIntervalEnum = 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 = void 0;
|
|
27
|
+
exports.UserApi = exports.UserApiFactory = void 0;
|
|
27
28
|
const axios_1 = require("axios");
|
|
28
29
|
// Some imports not used depending on template conditions
|
|
29
30
|
// @ts-ignore
|
|
@@ -277,7 +278,8 @@ exports.UserSource = {
|
|
|
277
278
|
* @enum {string}
|
|
278
279
|
*/
|
|
279
280
|
exports.WebhookKind = {
|
|
280
|
-
Order: 'order'
|
|
281
|
+
Order: 'order',
|
|
282
|
+
Prod: 'prod'
|
|
281
283
|
};
|
|
282
284
|
/**
|
|
283
285
|
* AuditApi - axios parameter creator
|
|
@@ -1459,13 +1461,16 @@ exports.CustomDealsApi = CustomDealsApi;
|
|
|
1459
1461
|
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1460
1462
|
return {
|
|
1461
1463
|
/**
|
|
1462
|
-
*
|
|
1463
|
-
* @summary
|
|
1464
|
+
* Import events to the system to be processed
|
|
1465
|
+
* @summary Add event
|
|
1466
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1464
1467
|
* @param {*} [options] Override http request option.
|
|
1465
1468
|
* @throws {RequiredError}
|
|
1466
1469
|
*/
|
|
1467
|
-
|
|
1468
|
-
|
|
1470
|
+
importEvent: (eventCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1471
|
+
// verify required parameter 'eventCreationRequest' is not null or undefined
|
|
1472
|
+
(0, common_1.assertParamExists)('importEvent', 'eventCreationRequest', eventCreationRequest);
|
|
1473
|
+
const localVarPath = `/admins/events`;
|
|
1469
1474
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1470
1475
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1471
1476
|
let baseOptions;
|
|
@@ -1478,14 +1483,26 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1478
1483
|
// authentication jwt required
|
|
1479
1484
|
// http bearer authentication required
|
|
1480
1485
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1486
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1481
1487
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1482
1488
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1483
1489
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1490
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(eventCreationRequest, localVarRequestOptions, configuration);
|
|
1484
1491
|
return {
|
|
1485
1492
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1486
1493
|
options: localVarRequestOptions,
|
|
1487
1494
|
};
|
|
1488
1495
|
}),
|
|
1496
|
+
};
|
|
1497
|
+
};
|
|
1498
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
1499
|
+
/**
|
|
1500
|
+
* DefaultApi - functional programming interface
|
|
1501
|
+
* @export
|
|
1502
|
+
*/
|
|
1503
|
+
const DefaultApiFp = function (configuration) {
|
|
1504
|
+
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
1505
|
+
return {
|
|
1489
1506
|
/**
|
|
1490
1507
|
* Import events to the system to be processed
|
|
1491
1508
|
* @summary Add event
|
|
@@ -1493,10 +1510,69 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1493
1510
|
* @param {*} [options] Override http request option.
|
|
1494
1511
|
* @throws {RequiredError}
|
|
1495
1512
|
*/
|
|
1496
|
-
importEvent
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1513
|
+
importEvent(eventCreationRequest, options) {
|
|
1514
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1515
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
|
|
1516
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1517
|
+
});
|
|
1518
|
+
},
|
|
1519
|
+
};
|
|
1520
|
+
};
|
|
1521
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
1522
|
+
/**
|
|
1523
|
+
* DefaultApi - factory interface
|
|
1524
|
+
* @export
|
|
1525
|
+
*/
|
|
1526
|
+
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1527
|
+
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
1528
|
+
return {
|
|
1529
|
+
/**
|
|
1530
|
+
* Import events to the system to be processed
|
|
1531
|
+
* @summary Add event
|
|
1532
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1533
|
+
* @param {*} [options] Override http request option.
|
|
1534
|
+
* @throws {RequiredError}
|
|
1535
|
+
*/
|
|
1536
|
+
importEvent(eventCreationRequest, options) {
|
|
1537
|
+
return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
|
|
1538
|
+
},
|
|
1539
|
+
};
|
|
1540
|
+
};
|
|
1541
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
1542
|
+
/**
|
|
1543
|
+
* DefaultApi - object-oriented interface
|
|
1544
|
+
* @export
|
|
1545
|
+
* @class DefaultApi
|
|
1546
|
+
* @extends {BaseAPI}
|
|
1547
|
+
*/
|
|
1548
|
+
class DefaultApi extends base_1.BaseAPI {
|
|
1549
|
+
/**
|
|
1550
|
+
* Import events to the system to be processed
|
|
1551
|
+
* @summary Add event
|
|
1552
|
+
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1553
|
+
* @param {*} [options] Override http request option.
|
|
1554
|
+
* @throws {RequiredError}
|
|
1555
|
+
* @memberof DefaultApi
|
|
1556
|
+
*/
|
|
1557
|
+
importEvent(eventCreationRequest, options) {
|
|
1558
|
+
return (0, exports.DefaultApiFp)(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
exports.DefaultApi = DefaultApi;
|
|
1562
|
+
/**
|
|
1563
|
+
* IntegrationApi - axios parameter creator
|
|
1564
|
+
* @export
|
|
1565
|
+
*/
|
|
1566
|
+
const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
1567
|
+
return {
|
|
1568
|
+
/**
|
|
1569
|
+
* 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.
|
|
1570
|
+
* @summary Generate API key for the current tenant
|
|
1571
|
+
* @param {*} [options] Override http request option.
|
|
1572
|
+
* @throws {RequiredError}
|
|
1573
|
+
*/
|
|
1574
|
+
generateApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1575
|
+
const localVarPath = `/admins/integrations/apikey`;
|
|
1500
1576
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1501
1577
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1502
1578
|
let baseOptions;
|
|
@@ -1509,11 +1585,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1509
1585
|
// authentication jwt required
|
|
1510
1586
|
// http bearer authentication required
|
|
1511
1587
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1512
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1513
1588
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1514
1589
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1515
1590
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1516
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(eventCreationRequest, localVarRequestOptions, configuration);
|
|
1517
1591
|
return {
|
|
1518
1592
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1519
1593
|
options: localVarRequestOptions,
|
|
@@ -1609,13 +1683,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1609
1683
|
}),
|
|
1610
1684
|
};
|
|
1611
1685
|
};
|
|
1612
|
-
exports.
|
|
1686
|
+
exports.IntegrationApiAxiosParamCreator = IntegrationApiAxiosParamCreator;
|
|
1613
1687
|
/**
|
|
1614
|
-
*
|
|
1688
|
+
* IntegrationApi - functional programming interface
|
|
1615
1689
|
* @export
|
|
1616
1690
|
*/
|
|
1617
|
-
const
|
|
1618
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
1691
|
+
const IntegrationApiFp = function (configuration) {
|
|
1692
|
+
const localVarAxiosParamCreator = (0, exports.IntegrationApiAxiosParamCreator)(configuration);
|
|
1619
1693
|
return {
|
|
1620
1694
|
/**
|
|
1621
1695
|
* 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.
|
|
@@ -1629,19 +1703,6 @@ const DefaultApiFp = function (configuration) {
|
|
|
1629
1703
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1630
1704
|
});
|
|
1631
1705
|
},
|
|
1632
|
-
/**
|
|
1633
|
-
* Import events to the system to be processed
|
|
1634
|
-
* @summary Add event
|
|
1635
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1636
|
-
* @param {*} [options] Override http request option.
|
|
1637
|
-
* @throws {RequiredError}
|
|
1638
|
-
*/
|
|
1639
|
-
importEvent(eventCreationRequest, options) {
|
|
1640
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1641
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
|
|
1642
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1643
|
-
});
|
|
1644
|
-
},
|
|
1645
1706
|
/**
|
|
1646
1707
|
* List all webhooks for current tenant
|
|
1647
1708
|
* @summary List webhooks
|
|
@@ -1681,13 +1742,13 @@ const DefaultApiFp = function (configuration) {
|
|
|
1681
1742
|
},
|
|
1682
1743
|
};
|
|
1683
1744
|
};
|
|
1684
|
-
exports.
|
|
1745
|
+
exports.IntegrationApiFp = IntegrationApiFp;
|
|
1685
1746
|
/**
|
|
1686
|
-
*
|
|
1747
|
+
* IntegrationApi - factory interface
|
|
1687
1748
|
* @export
|
|
1688
1749
|
*/
|
|
1689
|
-
const
|
|
1690
|
-
const localVarFp = (0, exports.
|
|
1750
|
+
const IntegrationApiFactory = function (configuration, basePath, axios) {
|
|
1751
|
+
const localVarFp = (0, exports.IntegrationApiFp)(configuration);
|
|
1691
1752
|
return {
|
|
1692
1753
|
/**
|
|
1693
1754
|
* 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.
|
|
@@ -1698,16 +1759,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1698
1759
|
generateApiKey(options) {
|
|
1699
1760
|
return localVarFp.generateApiKey(options).then((request) => request(axios, basePath));
|
|
1700
1761
|
},
|
|
1701
|
-
/**
|
|
1702
|
-
* Import events to the system to be processed
|
|
1703
|
-
* @summary Add event
|
|
1704
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1705
|
-
* @param {*} [options] Override http request option.
|
|
1706
|
-
* @throws {RequiredError}
|
|
1707
|
-
*/
|
|
1708
|
-
importEvent(eventCreationRequest, options) {
|
|
1709
|
-
return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
|
|
1710
|
-
},
|
|
1711
1762
|
/**
|
|
1712
1763
|
* List all webhooks for current tenant
|
|
1713
1764
|
* @summary List webhooks
|
|
@@ -1738,44 +1789,33 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1738
1789
|
},
|
|
1739
1790
|
};
|
|
1740
1791
|
};
|
|
1741
|
-
exports.
|
|
1792
|
+
exports.IntegrationApiFactory = IntegrationApiFactory;
|
|
1742
1793
|
/**
|
|
1743
|
-
*
|
|
1794
|
+
* IntegrationApi - object-oriented interface
|
|
1744
1795
|
* @export
|
|
1745
|
-
* @class
|
|
1796
|
+
* @class IntegrationApi
|
|
1746
1797
|
* @extends {BaseAPI}
|
|
1747
1798
|
*/
|
|
1748
|
-
class
|
|
1799
|
+
class IntegrationApi extends base_1.BaseAPI {
|
|
1749
1800
|
/**
|
|
1750
1801
|
* 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.
|
|
1751
1802
|
* @summary Generate API key for the current tenant
|
|
1752
1803
|
* @param {*} [options] Override http request option.
|
|
1753
1804
|
* @throws {RequiredError}
|
|
1754
|
-
* @memberof
|
|
1805
|
+
* @memberof IntegrationApi
|
|
1755
1806
|
*/
|
|
1756
1807
|
generateApiKey(options) {
|
|
1757
|
-
return (0, exports.
|
|
1758
|
-
}
|
|
1759
|
-
/**
|
|
1760
|
-
* Import events to the system to be processed
|
|
1761
|
-
* @summary Add event
|
|
1762
|
-
* @param {Array<EventCreationRequest>} eventCreationRequest Entities
|
|
1763
|
-
* @param {*} [options] Override http request option.
|
|
1764
|
-
* @throws {RequiredError}
|
|
1765
|
-
* @memberof DefaultApi
|
|
1766
|
-
*/
|
|
1767
|
-
importEvent(eventCreationRequest, options) {
|
|
1768
|
-
return (0, exports.DefaultApiFp)(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1808
|
+
return (0, exports.IntegrationApiFp)(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
1769
1809
|
}
|
|
1770
1810
|
/**
|
|
1771
1811
|
* List all webhooks for current tenant
|
|
1772
1812
|
* @summary List webhooks
|
|
1773
1813
|
* @param {*} [options] Override http request option.
|
|
1774
1814
|
* @throws {RequiredError}
|
|
1775
|
-
* @memberof
|
|
1815
|
+
* @memberof IntegrationApi
|
|
1776
1816
|
*/
|
|
1777
1817
|
listWebhooks(options) {
|
|
1778
|
-
return (0, exports.
|
|
1818
|
+
return (0, exports.IntegrationApiFp)(this.configuration).listWebhooks(options).then((request) => request(this.axios, this.basePath));
|
|
1779
1819
|
}
|
|
1780
1820
|
/**
|
|
1781
1821
|
* Set up webhook url for a given integration
|
|
@@ -1783,23 +1823,23 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1783
1823
|
* @param {Webhook} webhook webhook data
|
|
1784
1824
|
* @param {*} [options] Override http request option.
|
|
1785
1825
|
* @throws {RequiredError}
|
|
1786
|
-
* @memberof
|
|
1826
|
+
* @memberof IntegrationApi
|
|
1787
1827
|
*/
|
|
1788
1828
|
setWebhook(webhook, options) {
|
|
1789
|
-
return (0, exports.
|
|
1829
|
+
return (0, exports.IntegrationApiFp)(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
|
|
1790
1830
|
}
|
|
1791
1831
|
/**
|
|
1792
1832
|
* Test API key security scheme
|
|
1793
1833
|
* @summary Test API key security scheme
|
|
1794
1834
|
* @param {*} [options] Override http request option.
|
|
1795
1835
|
* @throws {RequiredError}
|
|
1796
|
-
* @memberof
|
|
1836
|
+
* @memberof IntegrationApi
|
|
1797
1837
|
*/
|
|
1798
1838
|
testApiKey(options) {
|
|
1799
|
-
return (0, exports.
|
|
1839
|
+
return (0, exports.IntegrationApiFp)(this.configuration).testApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
1800
1840
|
}
|
|
1801
1841
|
}
|
|
1802
|
-
exports.
|
|
1842
|
+
exports.IntegrationApi = IntegrationApi;
|
|
1803
1843
|
/**
|
|
1804
1844
|
* NotificationApi - axios parameter creator
|
|
1805
1845
|
* @export
|