flexinet-api 0.0.319-prerelease0 → 0.0.321-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/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 {Order}
298
+ * @type {CallbackOrderDetails}
248
299
  * @memberof CallbackOrder
249
300
  */
250
- 'order'?: Order;
301
+ 'order': CallbackOrderDetails;
251
302
  /**
252
303
  *
253
304
  * @type {string}
254
305
  * @memberof CallbackOrder
255
306
  */
256
- 'id'?: string;
307
+ 'id': string;
257
308
  /**
258
309
  *
259
310
  * @type {string}
260
311
  * @memberof CallbackOrder
261
312
  */
262
- 'status'?: string;
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
  *
@@ -581,18 +688,6 @@ export interface EventCreationRequest {
581
688
  * @memberof EventCreationRequest
582
689
  */
583
690
  'kind': EventCreationRequestKindEnum;
584
- /**
585
- *
586
- * @type {string}
587
- * @memberof EventCreationRequest
588
- */
589
- 'timestamp': string;
590
- /**
591
- *
592
- * @type {string}
593
- * @memberof EventCreationRequest
594
- */
595
- 'id': string;
596
691
  }
597
692
  export declare const EventCreationRequestKindEnum: {
598
693
  readonly Transaction: "transaction";
@@ -602,7 +697,7 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
602
697
  * @type EventCreationRequestDetails
603
698
  * @export
604
699
  */
605
- export type EventCreationRequestDetails = object;
700
+ export type EventCreationRequestDetails = TransactionEventDetails;
606
701
  /**
607
702
  *
608
703
  * @export
@@ -1515,7 +1610,7 @@ export interface Promotion {
1515
1610
  * @type {BeneficiaryKind}
1516
1611
  * @memberof Promotion
1517
1612
  */
1518
- 'beneficiaryKind'?: BeneficiaryKind;
1613
+ 'beneficiaryKind': BeneficiaryKind;
1519
1614
  /**
1520
1615
  *
1521
1616
  * @type {Array<string>}
@@ -2379,6 +2474,85 @@ export interface Transaction {
2379
2474
  */
2380
2475
  'createdAt': string;
2381
2476
  }
2477
+ /**
2478
+ *
2479
+ * @export
2480
+ * @interface TransactionEventDetails
2481
+ */
2482
+ export interface TransactionEventDetails {
2483
+ /**
2484
+ *
2485
+ * @type {string}
2486
+ * @memberof TransactionEventDetails
2487
+ */
2488
+ 'clientRef': string;
2489
+ /**
2490
+ *
2491
+ * @type {string}
2492
+ * @memberof TransactionEventDetails
2493
+ */
2494
+ 'userRef'?: string;
2495
+ /**
2496
+ *
2497
+ * @type {string}
2498
+ * @memberof TransactionEventDetails
2499
+ */
2500
+ 'reference': string;
2501
+ /**
2502
+ *
2503
+ * @type {TransactionEventKind}
2504
+ * @memberof TransactionEventDetails
2505
+ */
2506
+ 'kind': TransactionEventKind;
2507
+ /**
2508
+ *
2509
+ * @type {{ [key: string]: string; }}
2510
+ * @memberof TransactionEventDetails
2511
+ */
2512
+ 'tags': {
2513
+ [key: string]: string;
2514
+ };
2515
+ /**
2516
+ *
2517
+ * @type {number}
2518
+ * @memberof TransactionEventDetails
2519
+ */
2520
+ 'value': number;
2521
+ /**
2522
+ *
2523
+ * @type {number}
2524
+ * @memberof TransactionEventDetails
2525
+ */
2526
+ 'quantity': number;
2527
+ /**
2528
+ *
2529
+ * @type {number}
2530
+ * @memberof TransactionEventDetails
2531
+ */
2532
+ 'liter': number;
2533
+ /**
2534
+ *
2535
+ * @type {string}
2536
+ * @memberof TransactionEventDetails
2537
+ */
2538
+ 'timestamp': string;
2539
+ /**
2540
+ *
2541
+ * @type {string}
2542
+ * @memberof TransactionEventDetails
2543
+ */
2544
+ 'originalTimestamp'?: string;
2545
+ }
2546
+ /**
2547
+ *
2548
+ * @export
2549
+ * @enum {string}
2550
+ */
2551
+ export declare const TransactionEventKind: {
2552
+ readonly Pending: "pending";
2553
+ readonly Completed: "completed";
2554
+ };
2555
+ export type TransactionEventKind = typeof TransactionEventKind[keyof typeof TransactionEventKind];
2382
2556
  /**
2383
2557
  *
2384
2558
  * @export
@@ -2772,6 +2946,7 @@ export interface Webhook {
2772
2946
  */
2773
2947
  export declare const WebhookKind: {
2774
2948
  readonly Order: "order";
2949
+ readonly Prod: "prod";
2775
2950
  };
2776
2951
  export type WebhookKind = typeof WebhookKind[keyof typeof WebhookKind];
2777
2952
  /**
@@ -3433,20 +3608,71 @@ export declare class CustomDealsApi extends BaseAPI {
3433
3608
  */
3434
3609
  export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
3435
3610
  /**
3436
- * 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.
3437
- * @summary Generate API key for the current tenant
3611
+ * Import events to the system to be processed
3612
+ * @summary Add event
3613
+ * @param {Array<EventCreationRequest>} eventCreationRequest Entities
3438
3614
  * @param {*} [options] Override http request option.
3439
3615
  * @throws {RequiredError}
3440
3616
  */
3441
- generateApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
3617
+ importEvents: (eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3618
+ };
3619
+ /**
3620
+ * DefaultApi - functional programming interface
3621
+ * @export
3622
+ */
3623
+ export declare const DefaultApiFp: (configuration?: Configuration) => {
3624
+ /**
3625
+ * Import events to the system to be processed
3626
+ * @summary Add event
3627
+ * @param {Array<EventCreationRequest>} eventCreationRequest Entities
3628
+ * @param {*} [options] Override http request option.
3629
+ * @throws {RequiredError}
3630
+ */
3631
+ importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3632
+ };
3633
+ /**
3634
+ * DefaultApi - factory interface
3635
+ * @export
3636
+ */
3637
+ export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3638
+ /**
3639
+ * Import events to the system to be processed
3640
+ * @summary Add event
3641
+ * @param {Array<EventCreationRequest>} eventCreationRequest Entities
3642
+ * @param {*} [options] Override http request option.
3643
+ * @throws {RequiredError}
3644
+ */
3645
+ importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void>;
3646
+ };
3647
+ /**
3648
+ * DefaultApi - object-oriented interface
3649
+ * @export
3650
+ * @class DefaultApi
3651
+ * @extends {BaseAPI}
3652
+ */
3653
+ export declare class DefaultApi extends BaseAPI {
3442
3654
  /**
3443
3655
  * Import events to the system to be processed
3444
3656
  * @summary Add event
3445
3657
  * @param {Array<EventCreationRequest>} eventCreationRequest Entities
3446
3658
  * @param {*} [options] Override http request option.
3447
3659
  * @throws {RequiredError}
3660
+ * @memberof DefaultApi
3448
3661
  */
3449
- importEvent: (eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3662
+ importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3663
+ }
3664
+ /**
3665
+ * IntegrationApi - axios parameter creator
3666
+ * @export
3667
+ */
3668
+ export declare const IntegrationApiAxiosParamCreator: (configuration?: Configuration) => {
3669
+ /**
3670
+ * 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.
3671
+ * @summary Generate API key for the current tenant
3672
+ * @param {*} [options] Override http request option.
3673
+ * @throws {RequiredError}
3674
+ */
3675
+ generateApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
3450
3676
  /**
3451
3677
  * List all webhooks for current tenant
3452
3678
  * @summary List webhooks
@@ -3471,10 +3697,10 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
3471
3697
  testApiKey: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
3472
3698
  };
3473
3699
  /**
3474
- * DefaultApi - functional programming interface
3700
+ * IntegrationApi - functional programming interface
3475
3701
  * @export
3476
3702
  */
3477
- export declare const DefaultApiFp: (configuration?: Configuration) => {
3703
+ export declare const IntegrationApiFp: (configuration?: Configuration) => {
3478
3704
  /**
3479
3705
  * 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
3706
  * @summary Generate API key for the current tenant
@@ -3482,14 +3708,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3482
3708
  * @throws {RequiredError}
3483
3709
  */
3484
3710
  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
3711
  /**
3494
3712
  * List all webhooks for current tenant
3495
3713
  * @summary List webhooks
@@ -3514,10 +3732,10 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3514
3732
  testApiKey(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3515
3733
  };
3516
3734
  /**
3517
- * DefaultApi - factory interface
3735
+ * IntegrationApi - factory interface
3518
3736
  * @export
3519
3737
  */
3520
- export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3738
+ export declare const IntegrationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3521
3739
  /**
3522
3740
  * 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
3741
  * @summary Generate API key for the current tenant
@@ -3525,14 +3743,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3525
3743
  * @throws {RequiredError}
3526
3744
  */
3527
3745
  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
3746
  /**
3537
3747
  * List all webhooks for current tenant
3538
3748
  * @summary List webhooks
@@ -3557,35 +3767,26 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3557
3767
  testApiKey(options?: any): AxiosPromise<void>;
3558
3768
  };
3559
3769
  /**
3560
- * DefaultApi - object-oriented interface
3770
+ * IntegrationApi - object-oriented interface
3561
3771
  * @export
3562
- * @class DefaultApi
3772
+ * @class IntegrationApi
3563
3773
  * @extends {BaseAPI}
3564
3774
  */
3565
- export declare class DefaultApi extends BaseAPI {
3775
+ export declare class IntegrationApi extends BaseAPI {
3566
3776
  /**
3567
3777
  * 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
3778
  * @summary Generate API key for the current tenant
3569
3779
  * @param {*} [options] Override http request option.
3570
3780
  * @throws {RequiredError}
3571
- * @memberof DefaultApi
3781
+ * @memberof IntegrationApi
3572
3782
  */
3573
3783
  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
3784
  /**
3584
3785
  * List all webhooks for current tenant
3585
3786
  * @summary List webhooks
3586
3787
  * @param {*} [options] Override http request option.
3587
3788
  * @throws {RequiredError}
3588
- * @memberof DefaultApi
3789
+ * @memberof IntegrationApi
3589
3790
  */
3590
3791
  listWebhooks(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WebhooksResponse, any>>;
3591
3792
  /**
@@ -3594,7 +3795,7 @@ export declare class DefaultApi extends BaseAPI {
3594
3795
  * @param {Webhook} webhook webhook data
3595
3796
  * @param {*} [options] Override http request option.
3596
3797
  * @throws {RequiredError}
3597
- * @memberof DefaultApi
3798
+ * @memberof IntegrationApi
3598
3799
  */
3599
3800
  setWebhook(webhook: Webhook, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3600
3801
  /**
@@ -3602,7 +3803,7 @@ export declare class DefaultApi extends BaseAPI {
3602
3803
  * @summary Test API key security scheme
3603
3804
  * @param {*} [options] Override http request option.
3604
3805
  * @throws {RequiredError}
3605
- * @memberof DefaultApi
3806
+ * @memberof IntegrationApi
3606
3807
  */
3607
3808
  testApiKey(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3608
3809
  }