flexinet-api 0.0.320-prerelease0 → 0.0.323-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 CHANGED
@@ -1,4 +1,4 @@
1
- ## flexinet-api@0.0.320-prerelease0
1
+ ## flexinet-api@0.0.323-prerelease0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install flexinet-api@0.0.320-prerelease0 --save
39
+ npm install flexinet-api@0.0.323-prerelease0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -730,18 +730,6 @@ export interface EventCreationRequest {
730
730
  * @memberof EventCreationRequest
731
731
  */
732
732
  'kind': EventCreationRequestKindEnum;
733
- /**
734
- *
735
- * @type {string}
736
- * @memberof EventCreationRequest
737
- */
738
- 'timestamp': string;
739
- /**
740
- *
741
- * @type {string}
742
- * @memberof EventCreationRequest
743
- */
744
- 'id': string;
745
733
  }
746
734
 
747
735
  export const EventCreationRequestKindEnum = {
@@ -754,7 +742,7 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
754
742
  * @type EventCreationRequestDetails
755
743
  * @export
756
744
  */
757
- export type EventCreationRequestDetails = object;
745
+ export type EventCreationRequestDetails = TransactionEventDetails;
758
746
 
759
747
  /**
760
748
  *
@@ -1710,7 +1698,7 @@ export interface Promotion {
1710
1698
  * @type {BeneficiaryKind}
1711
1699
  * @memberof Promotion
1712
1700
  */
1713
- 'beneficiaryKind'?: BeneficiaryKind;
1701
+ 'beneficiaryKind': BeneficiaryKind;
1714
1702
  /**
1715
1703
  *
1716
1704
  * @type {Array<string>}
@@ -2622,6 +2610,89 @@ export interface Transaction {
2622
2610
  }
2623
2611
 
2624
2612
 
2613
+ /**
2614
+ *
2615
+ * @export
2616
+ * @interface TransactionEventDetails
2617
+ */
2618
+ export interface TransactionEventDetails {
2619
+ /**
2620
+ *
2621
+ * @type {string}
2622
+ * @memberof TransactionEventDetails
2623
+ */
2624
+ 'clientRef': string;
2625
+ /**
2626
+ *
2627
+ * @type {string}
2628
+ * @memberof TransactionEventDetails
2629
+ */
2630
+ 'userRef'?: string;
2631
+ /**
2632
+ *
2633
+ * @type {string}
2634
+ * @memberof TransactionEventDetails
2635
+ */
2636
+ 'reference': string;
2637
+ /**
2638
+ *
2639
+ * @type {TransactionEventKind}
2640
+ * @memberof TransactionEventDetails
2641
+ */
2642
+ 'kind': TransactionEventKind;
2643
+ /**
2644
+ *
2645
+ * @type {{ [key: string]: string; }}
2646
+ * @memberof TransactionEventDetails
2647
+ */
2648
+ 'tags': { [key: string]: string; };
2649
+ /**
2650
+ *
2651
+ * @type {number}
2652
+ * @memberof TransactionEventDetails
2653
+ */
2654
+ 'value': number;
2655
+ /**
2656
+ *
2657
+ * @type {number}
2658
+ * @memberof TransactionEventDetails
2659
+ */
2660
+ 'quantity': number;
2661
+ /**
2662
+ *
2663
+ * @type {number}
2664
+ * @memberof TransactionEventDetails
2665
+ */
2666
+ 'liter': number;
2667
+ /**
2668
+ *
2669
+ * @type {string}
2670
+ * @memberof TransactionEventDetails
2671
+ */
2672
+ 'timestamp': string;
2673
+ /**
2674
+ *
2675
+ * @type {string}
2676
+ * @memberof TransactionEventDetails
2677
+ */
2678
+ 'originalTimestamp'?: string;
2679
+ }
2680
+
2681
+
2682
+ /**
2683
+ *
2684
+ * @export
2685
+ * @enum {string}
2686
+ */
2687
+
2688
+ export const TransactionEventKind = {
2689
+ Pending: 'pending',
2690
+ Completed: 'completed'
2691
+ } as const;
2692
+
2693
+ export type TransactionEventKind = typeof TransactionEventKind[keyof typeof TransactionEventKind];
2694
+
2695
+
2625
2696
  /**
2626
2697
  *
2627
2698
  * @export
@@ -4325,9 +4396,9 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4325
4396
  * @param {*} [options] Override http request option.
4326
4397
  * @throws {RequiredError}
4327
4398
  */
4328
- importEvent: async (eventCreationRequest: Array<EventCreationRequest>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4399
+ importEvents: async (eventCreationRequest: Array<EventCreationRequest>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4329
4400
  // verify required parameter 'eventCreationRequest' is not null or undefined
4330
- assertParamExists('importEvent', 'eventCreationRequest', eventCreationRequest)
4401
+ assertParamExists('importEvents', 'eventCreationRequest', eventCreationRequest)
4331
4402
  const localVarPath = `/admins/events`;
4332
4403
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4333
4404
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4375,8 +4446,8 @@ export const DefaultApiFp = function(configuration?: Configuration) {
4375
4446
  * @param {*} [options] Override http request option.
4376
4447
  * @throws {RequiredError}
4377
4448
  */
4378
- async importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4379
- const localVarAxiosArgs = await localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
4449
+ async importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.importEvents(eventCreationRequest, options);
4380
4451
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4381
4452
  },
4382
4453
  }
@@ -4396,8 +4467,8 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4396
4467
  * @param {*} [options] Override http request option.
4397
4468
  * @throws {RequiredError}
4398
4469
  */
4399
- importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void> {
4400
- return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
4470
+ importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void> {
4471
+ return localVarFp.importEvents(eventCreationRequest, options).then((request) => request(axios, basePath));
4401
4472
  },
4402
4473
  };
4403
4474
  };
@@ -4417,8 +4488,8 @@ export class DefaultApi extends BaseAPI {
4417
4488
  * @throws {RequiredError}
4418
4489
  * @memberof DefaultApi
4419
4490
  */
4420
- public importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) {
4421
- return DefaultApiFp(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
4491
+ public importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) {
4492
+ return DefaultApiFp(this.configuration).importEvents(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
4422
4493
  }
4423
4494
  }
4424
4495
 
@@ -6531,7 +6602,7 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
6531
6602
  assertParamExists('claimPromotionProgress', 'id', id)
6532
6603
  // verify required parameter 'progressID' is not null or undefined
6533
6604
  assertParamExists('claimPromotionProgress', 'progressID', progressID)
6534
- const localVarPath = `/adminspromotions/{id}/progress/{progressID}/claims`
6605
+ const localVarPath = `/admins/promotions/{id}/progress/{progressID}/claims`
6535
6606
  .replace(`{${"id"}}`, encodeURIComponent(String(id)))
6536
6607
  .replace(`{${"progressID"}}`, encodeURIComponent(String(progressID)));
6537
6608
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
package/dist/api.d.ts CHANGED
@@ -688,18 +688,6 @@ export interface EventCreationRequest {
688
688
  * @memberof EventCreationRequest
689
689
  */
690
690
  'kind': EventCreationRequestKindEnum;
691
- /**
692
- *
693
- * @type {string}
694
- * @memberof EventCreationRequest
695
- */
696
- 'timestamp': string;
697
- /**
698
- *
699
- * @type {string}
700
- * @memberof EventCreationRequest
701
- */
702
- 'id': string;
703
691
  }
704
692
  export declare const EventCreationRequestKindEnum: {
705
693
  readonly Transaction: "transaction";
@@ -709,7 +697,7 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
709
697
  * @type EventCreationRequestDetails
710
698
  * @export
711
699
  */
712
- export type EventCreationRequestDetails = object;
700
+ export type EventCreationRequestDetails = TransactionEventDetails;
713
701
  /**
714
702
  *
715
703
  * @export
@@ -1622,7 +1610,7 @@ export interface Promotion {
1622
1610
  * @type {BeneficiaryKind}
1623
1611
  * @memberof Promotion
1624
1612
  */
1625
- 'beneficiaryKind'?: BeneficiaryKind;
1613
+ 'beneficiaryKind': BeneficiaryKind;
1626
1614
  /**
1627
1615
  *
1628
1616
  * @type {Array<string>}
@@ -2486,6 +2474,85 @@ export interface Transaction {
2486
2474
  */
2487
2475
  'createdAt': string;
2488
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];
2489
2556
  /**
2490
2557
  *
2491
2558
  * @export
@@ -3547,7 +3614,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
3547
3614
  * @param {*} [options] Override http request option.
3548
3615
  * @throws {RequiredError}
3549
3616
  */
3550
- importEvent: (eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3617
+ importEvents: (eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3551
3618
  };
3552
3619
  /**
3553
3620
  * DefaultApi - functional programming interface
@@ -3561,7 +3628,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3561
3628
  * @param {*} [options] Override http request option.
3562
3629
  * @throws {RequiredError}
3563
3630
  */
3564
- importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3631
+ importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3565
3632
  };
3566
3633
  /**
3567
3634
  * DefaultApi - factory interface
@@ -3575,7 +3642,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3575
3642
  * @param {*} [options] Override http request option.
3576
3643
  * @throws {RequiredError}
3577
3644
  */
3578
- importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void>;
3645
+ importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void>;
3579
3646
  };
3580
3647
  /**
3581
3648
  * DefaultApi - object-oriented interface
@@ -3592,7 +3659,7 @@ export declare class DefaultApi extends BaseAPI {
3592
3659
  * @throws {RequiredError}
3593
3660
  * @memberof DefaultApi
3594
3661
  */
3595
- importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3662
+ importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3596
3663
  }
3597
3664
  /**
3598
3665
  * IntegrationApi - axios parameter creator
package/dist/api.js CHANGED
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
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.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;
25
+ 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.TransactionEventKind = 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.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 = exports.CustomDealsApiAxiosParamCreator = void 0;
27
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -243,6 +243,15 @@ exports.TargetMu = {
243
243
  Product: 'product',
244
244
  Liter: 'liter'
245
245
  };
246
+ /**
247
+ *
248
+ * @export
249
+ * @enum {string}
250
+ */
251
+ exports.TransactionEventKind = {
252
+ Pending: 'pending',
253
+ Completed: 'completed'
254
+ };
246
255
  /**
247
256
  *
248
257
  * @export
@@ -1467,9 +1476,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1467
1476
  * @param {*} [options] Override http request option.
1468
1477
  * @throws {RequiredError}
1469
1478
  */
1470
- importEvent: (eventCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1479
+ importEvents: (eventCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1471
1480
  // verify required parameter 'eventCreationRequest' is not null or undefined
1472
- (0, common_1.assertParamExists)('importEvent', 'eventCreationRequest', eventCreationRequest);
1481
+ (0, common_1.assertParamExists)('importEvents', 'eventCreationRequest', eventCreationRequest);
1473
1482
  const localVarPath = `/admins/events`;
1474
1483
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1475
1484
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1510,9 +1519,9 @@ const DefaultApiFp = function (configuration) {
1510
1519
  * @param {*} [options] Override http request option.
1511
1520
  * @throws {RequiredError}
1512
1521
  */
1513
- importEvent(eventCreationRequest, options) {
1522
+ importEvents(eventCreationRequest, options) {
1514
1523
  return __awaiter(this, void 0, void 0, function* () {
1515
- const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
1524
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvents(eventCreationRequest, options);
1516
1525
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1517
1526
  });
1518
1527
  },
@@ -1533,8 +1542,8 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1533
1542
  * @param {*} [options] Override http request option.
1534
1543
  * @throws {RequiredError}
1535
1544
  */
1536
- importEvent(eventCreationRequest, options) {
1537
- return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
1545
+ importEvents(eventCreationRequest, options) {
1546
+ return localVarFp.importEvents(eventCreationRequest, options).then((request) => request(axios, basePath));
1538
1547
  },
1539
1548
  };
1540
1549
  };
@@ -1554,8 +1563,8 @@ class DefaultApi extends base_1.BaseAPI {
1554
1563
  * @throws {RequiredError}
1555
1564
  * @memberof DefaultApi
1556
1565
  */
1557
- importEvent(eventCreationRequest, options) {
1558
- return (0, exports.DefaultApiFp)(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
1566
+ importEvents(eventCreationRequest, options) {
1567
+ return (0, exports.DefaultApiFp)(this.configuration).importEvents(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
1559
1568
  }
1560
1569
  }
1561
1570
  exports.DefaultApi = DefaultApi;
@@ -3508,7 +3517,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
3508
3517
  (0, common_1.assertParamExists)('claimPromotionProgress', 'id', id);
3509
3518
  // verify required parameter 'progressID' is not null or undefined
3510
3519
  (0, common_1.assertParamExists)('claimPromotionProgress', 'progressID', progressID);
3511
- const localVarPath = `/adminspromotions/{id}/progress/{progressID}/claims`
3520
+ const localVarPath = `/admins/promotions/{id}/progress/{progressID}/claims`
3512
3521
  .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3513
3522
  .replace(`{${"progressID"}}`, encodeURIComponent(String(progressID)));
3514
3523
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
package/dist/esm/api.d.ts CHANGED
@@ -688,18 +688,6 @@ export interface EventCreationRequest {
688
688
  * @memberof EventCreationRequest
689
689
  */
690
690
  'kind': EventCreationRequestKindEnum;
691
- /**
692
- *
693
- * @type {string}
694
- * @memberof EventCreationRequest
695
- */
696
- 'timestamp': string;
697
- /**
698
- *
699
- * @type {string}
700
- * @memberof EventCreationRequest
701
- */
702
- 'id': string;
703
691
  }
704
692
  export declare const EventCreationRequestKindEnum: {
705
693
  readonly Transaction: "transaction";
@@ -709,7 +697,7 @@ export type EventCreationRequestKindEnum = typeof EventCreationRequestKindEnum[k
709
697
  * @type EventCreationRequestDetails
710
698
  * @export
711
699
  */
712
- export type EventCreationRequestDetails = object;
700
+ export type EventCreationRequestDetails = TransactionEventDetails;
713
701
  /**
714
702
  *
715
703
  * @export
@@ -1622,7 +1610,7 @@ export interface Promotion {
1622
1610
  * @type {BeneficiaryKind}
1623
1611
  * @memberof Promotion
1624
1612
  */
1625
- 'beneficiaryKind'?: BeneficiaryKind;
1613
+ 'beneficiaryKind': BeneficiaryKind;
1626
1614
  /**
1627
1615
  *
1628
1616
  * @type {Array<string>}
@@ -2486,6 +2474,85 @@ export interface Transaction {
2486
2474
  */
2487
2475
  'createdAt': string;
2488
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];
2489
2556
  /**
2490
2557
  *
2491
2558
  * @export
@@ -3547,7 +3614,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
3547
3614
  * @param {*} [options] Override http request option.
3548
3615
  * @throws {RequiredError}
3549
3616
  */
3550
- importEvent: (eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3617
+ importEvents: (eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3551
3618
  };
3552
3619
  /**
3553
3620
  * DefaultApi - functional programming interface
@@ -3561,7 +3628,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3561
3628
  * @param {*} [options] Override http request option.
3562
3629
  * @throws {RequiredError}
3563
3630
  */
3564
- importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3631
+ importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
3565
3632
  };
3566
3633
  /**
3567
3634
  * DefaultApi - factory interface
@@ -3575,7 +3642,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3575
3642
  * @param {*} [options] Override http request option.
3576
3643
  * @throws {RequiredError}
3577
3644
  */
3578
- importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void>;
3645
+ importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: any): AxiosPromise<void>;
3579
3646
  };
3580
3647
  /**
3581
3648
  * DefaultApi - object-oriented interface
@@ -3592,7 +3659,7 @@ export declare class DefaultApi extends BaseAPI {
3592
3659
  * @throws {RequiredError}
3593
3660
  * @memberof DefaultApi
3594
3661
  */
3595
- importEvent(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3662
+ importEvents(eventCreationRequest: Array<EventCreationRequest>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3596
3663
  }
3597
3664
  /**
3598
3665
  * IntegrationApi - axios parameter creator
package/dist/esm/api.js CHANGED
@@ -238,6 +238,15 @@ export const TargetMu = {
238
238
  Product: 'product',
239
239
  Liter: 'liter'
240
240
  };
241
+ /**
242
+ *
243
+ * @export
244
+ * @enum {string}
245
+ */
246
+ export const TransactionEventKind = {
247
+ Pending: 'pending',
248
+ Completed: 'completed'
249
+ };
241
250
  /**
242
251
  *
243
252
  * @export
@@ -1438,9 +1447,9 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
1438
1447
  * @param {*} [options] Override http request option.
1439
1448
  * @throws {RequiredError}
1440
1449
  */
1441
- importEvent: (eventCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1450
+ importEvents: (eventCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1442
1451
  // verify required parameter 'eventCreationRequest' is not null or undefined
1443
- assertParamExists('importEvent', 'eventCreationRequest', eventCreationRequest);
1452
+ assertParamExists('importEvents', 'eventCreationRequest', eventCreationRequest);
1444
1453
  const localVarPath = `/admins/events`;
1445
1454
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1446
1455
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1480,9 +1489,9 @@ export const DefaultApiFp = function (configuration) {
1480
1489
  * @param {*} [options] Override http request option.
1481
1490
  * @throws {RequiredError}
1482
1491
  */
1483
- importEvent(eventCreationRequest, options) {
1492
+ importEvents(eventCreationRequest, options) {
1484
1493
  return __awaiter(this, void 0, void 0, function* () {
1485
- const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvent(eventCreationRequest, options);
1494
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.importEvents(eventCreationRequest, options);
1486
1495
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1487
1496
  });
1488
1497
  },
@@ -1502,8 +1511,8 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
1502
1511
  * @param {*} [options] Override http request option.
1503
1512
  * @throws {RequiredError}
1504
1513
  */
1505
- importEvent(eventCreationRequest, options) {
1506
- return localVarFp.importEvent(eventCreationRequest, options).then((request) => request(axios, basePath));
1514
+ importEvents(eventCreationRequest, options) {
1515
+ return localVarFp.importEvents(eventCreationRequest, options).then((request) => request(axios, basePath));
1507
1516
  },
1508
1517
  };
1509
1518
  };
@@ -1522,8 +1531,8 @@ export class DefaultApi extends BaseAPI {
1522
1531
  * @throws {RequiredError}
1523
1532
  * @memberof DefaultApi
1524
1533
  */
1525
- importEvent(eventCreationRequest, options) {
1526
- return DefaultApiFp(this.configuration).importEvent(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
1534
+ importEvents(eventCreationRequest, options) {
1535
+ return DefaultApiFp(this.configuration).importEvents(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
1527
1536
  }
1528
1537
  }
1529
1538
  /**
@@ -3455,7 +3464,7 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
3455
3464
  assertParamExists('claimPromotionProgress', 'id', id);
3456
3465
  // verify required parameter 'progressID' is not null or undefined
3457
3466
  assertParamExists('claimPromotionProgress', 'progressID', progressID);
3458
- const localVarPath = `/adminspromotions/{id}/progress/{progressID}/claims`
3467
+ const localVarPath = `/admins/promotions/{id}/progress/{progressID}/claims`
3459
3468
  .replace(`{${"id"}}`, encodeURIComponent(String(id)))
3460
3469
  .replace(`{${"progressID"}}`, encodeURIComponent(String(progressID)));
3461
3470
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.320-prerelease0",
3
+ "version": "0.0.323-prerelease0",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {