flexinet-api 0.0.1237-prerelease0 → 0.0.1238

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.1237-prerelease0
1
+ ## flexinet-api@0.0.1238
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.1237-prerelease0 --save
39
+ npm install flexinet-api@0.0.1238 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -206,15 +206,7 @@ export interface Balance {
206
206
  * @memberof Balance
207
207
  */
208
208
  'beneficiary': Beneficiary;
209
- /**
210
- *
211
- * @type {TransactionCurrencyKind}
212
- * @memberof Balance
213
- */
214
- 'currency': TransactionCurrencyKind;
215
209
  }
216
-
217
-
218
210
  /**
219
211
  *
220
212
  * @export
@@ -239,12 +231,6 @@ export interface BalanceUpdateRequest {
239
231
  * @memberof BalanceUpdateRequest
240
232
  */
241
233
  'transactionKind'?: TransactionKind;
242
- /**
243
- *
244
- * @type {TransactionCurrencyKind}
245
- * @memberof BalanceUpdateRequest
246
- */
247
- 'currency'?: TransactionCurrencyKind;
248
234
  }
249
235
 
250
236
 
@@ -272,15 +258,7 @@ export interface BalanceWithBeneficiaryRef {
272
258
  * @memberof BalanceWithBeneficiaryRef
273
259
  */
274
260
  'beneficiaryRef': BeneficiaryWithRef;
275
- /**
276
- *
277
- * @type {TransactionCurrencyKind}
278
- * @memberof BalanceWithBeneficiaryRef
279
- */
280
- 'currency': TransactionCurrencyKind;
281
261
  }
282
-
283
-
284
262
  /**
285
263
  *
286
264
  * @export
@@ -717,10 +695,55 @@ export type Condition = typeof Condition[keyof typeof Condition];
717
695
 
718
696
 
719
697
  /**
720
- * @type CustomDealRestriction
698
+ *
721
699
  * @export
700
+ * @interface CustomDealRestriction
722
701
  */
723
- export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction | { kind: 'required' } & RequiredRestriction;
702
+ export interface CustomDealRestriction {
703
+ /**
704
+ *
705
+ * @type {string}
706
+ * @memberof CustomDealRestriction
707
+ */
708
+ 'tagKey': string;
709
+ /**
710
+ *
711
+ * @type {string}
712
+ * @memberof CustomDealRestriction
713
+ */
714
+ 'tagValue': string;
715
+ /**
716
+ *
717
+ * @type {number}
718
+ * @memberof CustomDealRestriction
719
+ */
720
+ 'minTurnoverPercent': number;
721
+ /**
722
+ *
723
+ * @type {CustomDealRestrictionPriority}
724
+ * @memberof CustomDealRestriction
725
+ */
726
+ 'priority': CustomDealRestrictionPriority;
727
+ /**
728
+ *
729
+ * @type {number}
730
+ * @memberof CustomDealRestriction
731
+ */
732
+ 'points': number;
733
+ /**
734
+ *
735
+ * @type {string}
736
+ * @memberof CustomDealRestriction
737
+ */
738
+ 'createdAt': string;
739
+ /**
740
+ *
741
+ * @type {string}
742
+ * @memberof CustomDealRestriction
743
+ */
744
+ 'updatedAt': string;
745
+ }
746
+
724
747
 
725
748
  /**
726
749
  *
@@ -737,6 +760,45 @@ export const CustomDealRestrictionPriority = {
737
760
  export type CustomDealRestrictionPriority = typeof CustomDealRestrictionPriority[keyof typeof CustomDealRestrictionPriority];
738
761
 
739
762
 
763
+ /**
764
+ *
765
+ * @export
766
+ * @interface CustomDealRestrictionRequest
767
+ */
768
+ export interface CustomDealRestrictionRequest {
769
+ /**
770
+ *
771
+ * @type {string}
772
+ * @memberof CustomDealRestrictionRequest
773
+ */
774
+ 'tagKey': string;
775
+ /**
776
+ *
777
+ * @type {string}
778
+ * @memberof CustomDealRestrictionRequest
779
+ */
780
+ 'tagValue': string;
781
+ /**
782
+ *
783
+ * @type {number}
784
+ * @memberof CustomDealRestrictionRequest
785
+ */
786
+ 'minTurnoverPercent': number;
787
+ /**
788
+ *
789
+ * @type {CustomDealRestrictionPriority}
790
+ * @memberof CustomDealRestrictionRequest
791
+ */
792
+ 'priority': CustomDealRestrictionPriority;
793
+ /**
794
+ *
795
+ * @type {number}
796
+ * @memberof CustomDealRestrictionRequest
797
+ */
798
+ 'points': number;
799
+ }
800
+
801
+
740
802
  /**
741
803
  *
742
804
  * @export
@@ -931,6 +993,12 @@ export interface MetricsAggregation {
931
993
  * @memberof MetricsAggregation
932
994
  */
933
995
  'total': MetricsCollection;
996
+ /**
997
+ *
998
+ * @type {string}
999
+ * @memberof MetricsAggregation
1000
+ */
1001
+ 'updatedAt'?: string;
934
1002
  }
935
1003
  /**
936
1004
  *
@@ -951,71 +1019,6 @@ export interface MetricsCollection {
951
1019
  */
952
1020
  'total': Metrics;
953
1021
  }
954
- /**
955
- *
956
- * @export
957
- * @interface MinTurnoverRestriction
958
- */
959
- export interface MinTurnoverRestriction {
960
- /**
961
- *
962
- * @type {string}
963
- * @memberof MinTurnoverRestriction
964
- */
965
- 'kind': MinTurnoverRestrictionKindEnum;
966
- /**
967
- *
968
- * @type {Array<MinTurnoverRestrictionValue>}
969
- * @memberof MinTurnoverRestriction
970
- */
971
- 'values': Array<MinTurnoverRestrictionValue>;
972
- }
973
-
974
- export const MinTurnoverRestrictionKindEnum = {
975
- MinTurnover: 'minTurnover'
976
- } as const;
977
-
978
- export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
979
-
980
- /**
981
- *
982
- * @export
983
- * @interface MinTurnoverRestrictionValue
984
- */
985
- export interface MinTurnoverRestrictionValue {
986
- /**
987
- *
988
- * @type {string}
989
- * @memberof MinTurnoverRestrictionValue
990
- */
991
- 'tagKey': string;
992
- /**
993
- *
994
- * @type {string}
995
- * @memberof MinTurnoverRestrictionValue
996
- */
997
- 'tagValue': string;
998
- /**
999
- *
1000
- * @type {number}
1001
- * @memberof MinTurnoverRestrictionValue
1002
- */
1003
- 'minTurnoverPercent': number;
1004
- /**
1005
- *
1006
- * @type {CustomDealRestrictionPriority}
1007
- * @memberof MinTurnoverRestrictionValue
1008
- */
1009
- 'priority': CustomDealRestrictionPriority;
1010
- /**
1011
- *
1012
- * @type {number}
1013
- * @memberof MinTurnoverRestrictionValue
1014
- */
1015
- 'points': number;
1016
- }
1017
-
1018
-
1019
1022
  /**
1020
1023
  *
1021
1024
  * @export
@@ -2268,12 +2271,6 @@ export interface Promotion {
2268
2271
  * @memberof Promotion
2269
2272
  */
2270
2273
  'status'?: PromotionStatus;
2271
- /**
2272
- *
2273
- * @type {string}
2274
- * @memberof Promotion
2275
- */
2276
- 'reference'?: string;
2277
2274
  }
2278
2275
 
2279
2276
 
@@ -2487,18 +2484,6 @@ export interface PromotionRequest {
2487
2484
  * @memberof PromotionRequest
2488
2485
  */
2489
2486
  'notificationConfig'?: PromotionNotificationConfig;
2490
- /**
2491
- *
2492
- * @type {PromotionType}
2493
- * @memberof PromotionRequest
2494
- */
2495
- 'type'?: PromotionType;
2496
- /**
2497
- *
2498
- * @type {string}
2499
- * @memberof PromotionRequest
2500
- */
2501
- 'reference'?: string;
2502
2487
  }
2503
2488
  /**
2504
2489
  *
@@ -2694,32 +2679,6 @@ export const ReportTypesResponseTypesEnum = {
2694
2679
 
2695
2680
  export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
2696
2681
 
2697
- /**
2698
- *
2699
- * @export
2700
- * @interface RequiredRestriction
2701
- */
2702
- export interface RequiredRestriction {
2703
- /**
2704
- *
2705
- * @type {string}
2706
- * @memberof RequiredRestriction
2707
- */
2708
- 'kind': RequiredRestrictionKindEnum;
2709
- /**
2710
- *
2711
- * @type {Array<string>}
2712
- * @memberof RequiredRestriction
2713
- */
2714
- 'tagKeys': Array<string>;
2715
- }
2716
-
2717
- export const RequiredRestrictionKindEnum = {
2718
- Required: 'required'
2719
- } as const;
2720
-
2721
- export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
2722
-
2723
2682
  /**
2724
2683
  * @type Rule
2725
2684
  * @export
@@ -3551,30 +3510,9 @@ export interface Transaction {
3551
3510
  * @memberof Transaction
3552
3511
  */
3553
3512
  'createdAt': string;
3554
- /**
3555
- *
3556
- * @type {TransactionCurrencyKind}
3557
- * @memberof Transaction
3558
- */
3559
- 'currency': TransactionCurrencyKind;
3560
3513
  }
3561
3514
 
3562
3515
 
3563
- /**
3564
- *
3565
- * @export
3566
- * @enum {string}
3567
- */
3568
-
3569
- export const TransactionCurrencyKind = {
3570
- Points: 'points',
3571
- CustomDealBudget: 'customDealBudget',
3572
- SalesBudget: 'salesBudget'
3573
- } as const;
3574
-
3575
- export type TransactionCurrencyKind = typeof TransactionCurrencyKind[keyof typeof TransactionCurrencyKind];
3576
-
3577
-
3578
3516
  /**
3579
3517
  *
3580
3518
  * @export
@@ -3835,12 +3773,6 @@ export interface UpdatePromotionRequest {
3835
3773
  * @memberof UpdatePromotionRequest
3836
3774
  */
3837
3775
  'notificationConfig'?: PromotionNotificationConfig;
3838
- /**
3839
- *
3840
- * @type {string}
3841
- * @memberof UpdatePromotionRequest
3842
- */
3843
- 'reference'?: string;
3844
3776
  }
3845
3777
 
3846
3778
 
@@ -5917,13 +5849,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
5917
5849
  /**
5918
5850
  * Create custom deal restrictions
5919
5851
  * @summary Create custom deal restrictions
5920
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
5852
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
5921
5853
  * @param {*} [options] Override http request option.
5922
5854
  * @throws {RequiredError}
5923
5855
  */
5924
- createCustomDealRestrictions: async (customDealRestriction: CustomDealRestriction, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5925
- // verify required parameter 'customDealRestriction' is not null or undefined
5926
- assertParamExists('createCustomDealRestrictions', 'customDealRestriction', customDealRestriction)
5856
+ createCustomDealRestrictions: async (customDealRestrictionRequest: CustomDealRestrictionRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5857
+ // verify required parameter 'customDealRestrictionRequest' is not null or undefined
5858
+ assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest)
5927
5859
  const localVarPath = `/admins/custom-deals/restrictions`;
5928
5860
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5929
5861
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5947,7 +5879,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
5947
5879
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5948
5880
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5949
5881
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5950
- localVarRequestOptions.data = serializeDataIfNeeded(customDealRestriction, localVarRequestOptions, configuration)
5882
+ localVarRequestOptions.data = serializeDataIfNeeded(customDealRestrictionRequest, localVarRequestOptions, configuration)
5951
5883
 
5952
5884
  return {
5953
5885
  url: toPathString(localVarUrlObj),
@@ -6001,12 +5933,12 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
6001
5933
  /**
6002
5934
  * Create custom deal restrictions
6003
5935
  * @summary Create custom deal restrictions
6004
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
5936
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
6005
5937
  * @param {*} [options] Override http request option.
6006
5938
  * @throws {RequiredError}
6007
5939
  */
6008
- async createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6009
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
5940
+ async createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
5941
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
6010
5942
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6011
5943
  },
6012
5944
  /**
@@ -6032,12 +5964,12 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
6032
5964
  /**
6033
5965
  * Create custom deal restrictions
6034
5966
  * @summary Create custom deal restrictions
6035
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
5967
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
6036
5968
  * @param {*} [options] Override http request option.
6037
5969
  * @throws {RequiredError}
6038
5970
  */
6039
- createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void> {
6040
- return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
5971
+ createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: any): AxiosPromise<void> {
5972
+ return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
6041
5973
  },
6042
5974
  /**
6043
5975
  * List custom deal restrictions
@@ -6061,13 +5993,13 @@ export class CustomDealsApi extends BaseAPI {
6061
5993
  /**
6062
5994
  * Create custom deal restrictions
6063
5995
  * @summary Create custom deal restrictions
6064
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
5996
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
6065
5997
  * @param {*} [options] Override http request option.
6066
5998
  * @throws {RequiredError}
6067
5999
  * @memberof CustomDealsApi
6068
6000
  */
6069
- public createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) {
6070
- return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
6001
+ public createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig) {
6002
+ return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
6071
6003
  }
6072
6004
 
6073
6005
  /**