flexinet-api 0.0.318-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 +269 -119
- package/dist/api.d.ts +186 -52
- package/dist/api.js +160 -120
- package/dist/esm/api.d.ts +186 -52
- package/dist/esm/api.js +150 -115
- 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
|
}
|
|
@@ -3928,8 +4062,8 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3928
4062
|
*/
|
|
3929
4063
|
approveProduct: (id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3930
4064
|
/**
|
|
3931
|
-
*
|
|
3932
|
-
* @summary
|
|
4065
|
+
* Create multiple products
|
|
4066
|
+
* @summary Create multiple products
|
|
3933
4067
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
3934
4068
|
* @param {*} [options] Override http request option.
|
|
3935
4069
|
* @throws {RequiredError}
|
|
@@ -4032,8 +4166,8 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
4032
4166
|
*/
|
|
4033
4167
|
approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestApprovalResponse>>;
|
|
4034
4168
|
/**
|
|
4035
|
-
*
|
|
4036
|
-
* @summary
|
|
4169
|
+
* Create multiple products
|
|
4170
|
+
* @summary Create multiple products
|
|
4037
4171
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
4038
4172
|
* @param {*} [options] Override http request option.
|
|
4039
4173
|
* @throws {RequiredError}
|
|
@@ -4136,8 +4270,8 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
4136
4270
|
*/
|
|
4137
4271
|
approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: any): AxiosPromise<ProductRequestApprovalResponse>;
|
|
4138
4272
|
/**
|
|
4139
|
-
*
|
|
4140
|
-
* @summary
|
|
4273
|
+
* Create multiple products
|
|
4274
|
+
* @summary Create multiple products
|
|
4141
4275
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
4142
4276
|
* @param {*} [options] Override http request option.
|
|
4143
4277
|
* @throws {RequiredError}
|
|
@@ -4243,8 +4377,8 @@ export declare class ProductApi extends BaseAPI {
|
|
|
4243
4377
|
*/
|
|
4244
4378
|
approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequestApprovalResponse, any>>;
|
|
4245
4379
|
/**
|
|
4246
|
-
*
|
|
4247
|
-
* @summary
|
|
4380
|
+
* Create multiple products
|
|
4381
|
+
* @summary Create multiple products
|
|
4248
4382
|
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
4249
4383
|
* @param {*} [options] Override http request option.
|
|
4250
4384
|
* @throws {RequiredError}
|