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/dist/esm/api.d.ts CHANGED
@@ -181,12 +181,6 @@ export interface Balance {
181
181
  * @memberof Balance
182
182
  */
183
183
  'beneficiary': Beneficiary;
184
- /**
185
- *
186
- * @type {TransactionCurrencyKind}
187
- * @memberof Balance
188
- */
189
- 'currency': TransactionCurrencyKind;
190
184
  }
191
185
  /**
192
186
  *
@@ -212,12 +206,6 @@ export interface BalanceUpdateRequest {
212
206
  * @memberof BalanceUpdateRequest
213
207
  */
214
208
  'transactionKind'?: TransactionKind;
215
- /**
216
- *
217
- * @type {TransactionCurrencyKind}
218
- * @memberof BalanceUpdateRequest
219
- */
220
- 'currency'?: TransactionCurrencyKind;
221
209
  }
222
210
  /**
223
211
  *
@@ -243,12 +231,6 @@ export interface BalanceWithBeneficiaryRef {
243
231
  * @memberof BalanceWithBeneficiaryRef
244
232
  */
245
233
  'beneficiaryRef': BeneficiaryWithRef;
246
- /**
247
- *
248
- * @type {TransactionCurrencyKind}
249
- * @memberof BalanceWithBeneficiaryRef
250
- */
251
- 'currency': TransactionCurrencyKind;
252
234
  }
253
235
  /**
254
236
  *
@@ -668,14 +650,54 @@ export declare const Condition: {
668
650
  };
669
651
  export type Condition = typeof Condition[keyof typeof Condition];
670
652
  /**
671
- * @type CustomDealRestriction
653
+ *
672
654
  * @export
655
+ * @interface CustomDealRestriction
673
656
  */
674
- export type CustomDealRestriction = {
675
- kind: 'minTurnover';
676
- } & MinTurnoverRestriction | {
677
- kind: 'required';
678
- } & RequiredRestriction;
657
+ export interface CustomDealRestriction {
658
+ /**
659
+ *
660
+ * @type {string}
661
+ * @memberof CustomDealRestriction
662
+ */
663
+ 'tagKey': string;
664
+ /**
665
+ *
666
+ * @type {string}
667
+ * @memberof CustomDealRestriction
668
+ */
669
+ 'tagValue': string;
670
+ /**
671
+ *
672
+ * @type {number}
673
+ * @memberof CustomDealRestriction
674
+ */
675
+ 'minTurnoverPercent': number;
676
+ /**
677
+ *
678
+ * @type {CustomDealRestrictionPriority}
679
+ * @memberof CustomDealRestriction
680
+ */
681
+ 'priority': CustomDealRestrictionPriority;
682
+ /**
683
+ *
684
+ * @type {number}
685
+ * @memberof CustomDealRestriction
686
+ */
687
+ 'points': number;
688
+ /**
689
+ *
690
+ * @type {string}
691
+ * @memberof CustomDealRestriction
692
+ */
693
+ 'createdAt': string;
694
+ /**
695
+ *
696
+ * @type {string}
697
+ * @memberof CustomDealRestriction
698
+ */
699
+ 'updatedAt': string;
700
+ }
679
701
  /**
680
702
  *
681
703
  * @export
@@ -687,6 +709,43 @@ export declare const CustomDealRestrictionPriority: {
687
709
  readonly High: "high";
688
710
  };
689
711
  export type CustomDealRestrictionPriority = typeof CustomDealRestrictionPriority[keyof typeof CustomDealRestrictionPriority];
712
+ /**
713
+ *
714
+ * @export
715
+ * @interface CustomDealRestrictionRequest
716
+ */
717
+ export interface CustomDealRestrictionRequest {
718
+ /**
719
+ *
720
+ * @type {string}
721
+ * @memberof CustomDealRestrictionRequest
722
+ */
723
+ 'tagKey': string;
724
+ /**
725
+ *
726
+ * @type {string}
727
+ * @memberof CustomDealRestrictionRequest
728
+ */
729
+ 'tagValue': string;
730
+ /**
731
+ *
732
+ * @type {number}
733
+ * @memberof CustomDealRestrictionRequest
734
+ */
735
+ 'minTurnoverPercent': number;
736
+ /**
737
+ *
738
+ * @type {CustomDealRestrictionPriority}
739
+ * @memberof CustomDealRestrictionRequest
740
+ */
741
+ 'priority': CustomDealRestrictionPriority;
742
+ /**
743
+ *
744
+ * @type {number}
745
+ * @memberof CustomDealRestrictionRequest
746
+ */
747
+ 'points': number;
748
+ }
690
749
  /**
691
750
  *
692
751
  * @export
@@ -875,6 +934,12 @@ export interface MetricsAggregation {
875
934
  * @memberof MetricsAggregation
876
935
  */
877
936
  'total': MetricsCollection;
937
+ /**
938
+ *
939
+ * @type {string}
940
+ * @memberof MetricsAggregation
941
+ */
942
+ 'updatedAt'?: string;
878
943
  }
879
944
  /**
880
945
  *
@@ -895,66 +960,6 @@ export interface MetricsCollection {
895
960
  */
896
961
  'total': Metrics;
897
962
  }
898
- /**
899
- *
900
- * @export
901
- * @interface MinTurnoverRestriction
902
- */
903
- export interface MinTurnoverRestriction {
904
- /**
905
- *
906
- * @type {string}
907
- * @memberof MinTurnoverRestriction
908
- */
909
- 'kind': MinTurnoverRestrictionKindEnum;
910
- /**
911
- *
912
- * @type {Array<MinTurnoverRestrictionValue>}
913
- * @memberof MinTurnoverRestriction
914
- */
915
- 'values': Array<MinTurnoverRestrictionValue>;
916
- }
917
- export declare const MinTurnoverRestrictionKindEnum: {
918
- readonly MinTurnover: "minTurnover";
919
- };
920
- export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
921
- /**
922
- *
923
- * @export
924
- * @interface MinTurnoverRestrictionValue
925
- */
926
- export interface MinTurnoverRestrictionValue {
927
- /**
928
- *
929
- * @type {string}
930
- * @memberof MinTurnoverRestrictionValue
931
- */
932
- 'tagKey': string;
933
- /**
934
- *
935
- * @type {string}
936
- * @memberof MinTurnoverRestrictionValue
937
- */
938
- 'tagValue': string;
939
- /**
940
- *
941
- * @type {number}
942
- * @memberof MinTurnoverRestrictionValue
943
- */
944
- 'minTurnoverPercent': number;
945
- /**
946
- *
947
- * @type {CustomDealRestrictionPriority}
948
- * @memberof MinTurnoverRestrictionValue
949
- */
950
- 'priority': CustomDealRestrictionPriority;
951
- /**
952
- *
953
- * @type {number}
954
- * @memberof MinTurnoverRestrictionValue
955
- */
956
- 'points': number;
957
- }
958
963
  /**
959
964
  *
960
965
  * @export
@@ -2141,12 +2146,6 @@ export interface Promotion {
2141
2146
  * @memberof Promotion
2142
2147
  */
2143
2148
  'status'?: PromotionStatus;
2144
- /**
2145
- *
2146
- * @type {string}
2147
- * @memberof Promotion
2148
- */
2149
- 'reference'?: string;
2150
2149
  }
2151
2150
  /**
2152
2151
  * @type PromotionBeneficiariesResponse
@@ -2361,18 +2360,6 @@ export interface PromotionRequest {
2361
2360
  * @memberof PromotionRequest
2362
2361
  */
2363
2362
  'notificationConfig'?: PromotionNotificationConfig;
2364
- /**
2365
- *
2366
- * @type {PromotionType}
2367
- * @memberof PromotionRequest
2368
- */
2369
- 'type'?: PromotionType;
2370
- /**
2371
- *
2372
- * @type {string}
2373
- * @memberof PromotionRequest
2374
- */
2375
- 'reference'?: string;
2376
2363
  }
2377
2364
  /**
2378
2365
  *
@@ -2547,29 +2534,6 @@ export declare const ReportTypesResponseTypesEnum: {
2547
2534
  readonly PromotionExpanded: "promotion_expanded";
2548
2535
  };
2549
2536
  export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
2550
- /**
2551
- *
2552
- * @export
2553
- * @interface RequiredRestriction
2554
- */
2555
- export interface RequiredRestriction {
2556
- /**
2557
- *
2558
- * @type {string}
2559
- * @memberof RequiredRestriction
2560
- */
2561
- 'kind': RequiredRestrictionKindEnum;
2562
- /**
2563
- *
2564
- * @type {Array<string>}
2565
- * @memberof RequiredRestriction
2566
- */
2567
- 'tagKeys': Array<string>;
2568
- }
2569
- export declare const RequiredRestrictionKindEnum: {
2570
- readonly Required: "required";
2571
- };
2572
- export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
2573
2537
  /**
2574
2538
  * @type Rule
2575
2539
  * @export
@@ -3367,24 +3331,7 @@ export interface Transaction {
3367
3331
  * @memberof Transaction
3368
3332
  */
3369
3333
  'createdAt': string;
3370
- /**
3371
- *
3372
- * @type {TransactionCurrencyKind}
3373
- * @memberof Transaction
3374
- */
3375
- 'currency': TransactionCurrencyKind;
3376
3334
  }
3377
- /**
3378
- *
3379
- * @export
3380
- * @enum {string}
3381
- */
3382
- export declare const TransactionCurrencyKind: {
3383
- readonly Points: "points";
3384
- readonly CustomDealBudget: "customDealBudget";
3385
- readonly SalesBudget: "salesBudget";
3386
- };
3387
- export type TransactionCurrencyKind = typeof TransactionCurrencyKind[keyof typeof TransactionCurrencyKind];
3388
3335
  /**
3389
3336
  *
3390
3337
  * @export
@@ -3636,12 +3583,6 @@ export interface UpdatePromotionRequest {
3636
3583
  * @memberof UpdatePromotionRequest
3637
3584
  */
3638
3585
  'notificationConfig'?: PromotionNotificationConfig;
3639
- /**
3640
- *
3641
- * @type {string}
3642
- * @memberof UpdatePromotionRequest
3643
- */
3644
- 'reference'?: string;
3645
3586
  }
3646
3587
  /**
3647
3588
  *
@@ -4923,11 +4864,11 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
4923
4864
  /**
4924
4865
  * Create custom deal restrictions
4925
4866
  * @summary Create custom deal restrictions
4926
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
4867
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
4927
4868
  * @param {*} [options] Override http request option.
4928
4869
  * @throws {RequiredError}
4929
4870
  */
4930
- createCustomDealRestrictions: (customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4871
+ createCustomDealRestrictions: (customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4931
4872
  /**
4932
4873
  * List custom deal restrictions
4933
4874
  * @summary List custom deal restrictions
@@ -4944,11 +4885,11 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
4944
4885
  /**
4945
4886
  * Create custom deal restrictions
4946
4887
  * @summary Create custom deal restrictions
4947
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
4888
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
4948
4889
  * @param {*} [options] Override http request option.
4949
4890
  * @throws {RequiredError}
4950
4891
  */
4951
- createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
4892
+ createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
4952
4893
  /**
4953
4894
  * List custom deal restrictions
4954
4895
  * @summary List custom deal restrictions
@@ -4965,11 +4906,11 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
4965
4906
  /**
4966
4907
  * Create custom deal restrictions
4967
4908
  * @summary Create custom deal restrictions
4968
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
4909
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
4969
4910
  * @param {*} [options] Override http request option.
4970
4911
  * @throws {RequiredError}
4971
4912
  */
4972
- createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void>;
4913
+ createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: any): AxiosPromise<void>;
4973
4914
  /**
4974
4915
  * List custom deal restrictions
4975
4916
  * @summary List custom deal restrictions
@@ -4988,12 +4929,12 @@ export declare class CustomDealsApi extends BaseAPI {
4988
4929
  /**
4989
4930
  * Create custom deal restrictions
4990
4931
  * @summary Create custom deal restrictions
4991
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
4932
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
4992
4933
  * @param {*} [options] Override http request option.
4993
4934
  * @throws {RequiredError}
4994
4935
  * @memberof CustomDealsApi
4995
4936
  */
4996
- createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
4937
+ createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
4997
4938
  /**
4998
4939
  * List custom deal restrictions
4999
4940
  * @summary List custom deal restrictions
package/dist/esm/api.js CHANGED
@@ -110,9 +110,6 @@ export const Locale = {
110
110
  RoRo: 'ro-ro',
111
111
  HuHu: 'hu-hu'
112
112
  };
113
- export const MinTurnoverRestrictionKindEnum = {
114
- MinTurnover: 'minTurnover'
115
- };
116
113
  /**
117
114
  *
118
115
  * @export
@@ -287,9 +284,6 @@ export const ReportTypesResponseTypesEnum = {
287
284
  Promotion: 'promotion',
288
285
  PromotionExpanded: 'promotion_expanded'
289
286
  };
290
- export const RequiredRestrictionKindEnum = {
291
- Required: 'required'
292
- };
293
287
  /**
294
288
  *
295
289
  * @export
@@ -358,16 +352,6 @@ export const TargetMu = {
358
352
  Product: 'product',
359
353
  AdditionalMu: 'additionalMU'
360
354
  };
361
- /**
362
- *
363
- * @export
364
- * @enum {string}
365
- */
366
- export const TransactionCurrencyKind = {
367
- Points: 'points',
368
- CustomDealBudget: 'customDealBudget',
369
- SalesBudget: 'salesBudget'
370
- };
371
355
  /**
372
356
  *
373
357
  * @export
@@ -1829,13 +1813,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
1829
1813
  /**
1830
1814
  * Create custom deal restrictions
1831
1815
  * @summary Create custom deal restrictions
1832
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
1816
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
1833
1817
  * @param {*} [options] Override http request option.
1834
1818
  * @throws {RequiredError}
1835
1819
  */
1836
- createCustomDealRestrictions: (customDealRestriction, options = {}) => __awaiter(this, void 0, void 0, function* () {
1837
- // verify required parameter 'customDealRestriction' is not null or undefined
1838
- assertParamExists('createCustomDealRestrictions', 'customDealRestriction', customDealRestriction);
1820
+ createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1821
+ // verify required parameter 'customDealRestrictionRequest' is not null or undefined
1822
+ assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
1839
1823
  const localVarPath = `/admins/custom-deals/restrictions`;
1840
1824
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1841
1825
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1853,7 +1837,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
1853
1837
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1854
1838
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1855
1839
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1856
- localVarRequestOptions.data = serializeDataIfNeeded(customDealRestriction, localVarRequestOptions, configuration);
1840
+ localVarRequestOptions.data = serializeDataIfNeeded(customDealRestrictionRequest, localVarRequestOptions, configuration);
1857
1841
  return {
1858
1842
  url: toPathString(localVarUrlObj),
1859
1843
  options: localVarRequestOptions,
@@ -1899,13 +1883,13 @@ export const CustomDealsApiFp = function (configuration) {
1899
1883
  /**
1900
1884
  * Create custom deal restrictions
1901
1885
  * @summary Create custom deal restrictions
1902
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
1886
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
1903
1887
  * @param {*} [options] Override http request option.
1904
1888
  * @throws {RequiredError}
1905
1889
  */
1906
- createCustomDealRestrictions(customDealRestriction, options) {
1890
+ createCustomDealRestrictions(customDealRestrictionRequest, options) {
1907
1891
  return __awaiter(this, void 0, void 0, function* () {
1908
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
1892
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
1909
1893
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1910
1894
  });
1911
1895
  },
@@ -1933,12 +1917,12 @@ export const CustomDealsApiFactory = function (configuration, basePath, axios) {
1933
1917
  /**
1934
1918
  * Create custom deal restrictions
1935
1919
  * @summary Create custom deal restrictions
1936
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
1920
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
1937
1921
  * @param {*} [options] Override http request option.
1938
1922
  * @throws {RequiredError}
1939
1923
  */
1940
- createCustomDealRestrictions(customDealRestriction, options) {
1941
- return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
1924
+ createCustomDealRestrictions(customDealRestrictionRequest, options) {
1925
+ return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
1942
1926
  },
1943
1927
  /**
1944
1928
  * List custom deal restrictions
@@ -1961,13 +1945,13 @@ export class CustomDealsApi extends BaseAPI {
1961
1945
  /**
1962
1946
  * Create custom deal restrictions
1963
1947
  * @summary Create custom deal restrictions
1964
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
1948
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
1965
1949
  * @param {*} [options] Override http request option.
1966
1950
  * @throws {RequiredError}
1967
1951
  * @memberof CustomDealsApi
1968
1952
  */
1969
- createCustomDealRestrictions(customDealRestriction, options) {
1970
- return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
1953
+ createCustomDealRestrictions(customDealRestrictionRequest, options) {
1954
+ return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
1971
1955
  }
1972
1956
  /**
1973
1957
  * List custom deal restrictions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.1237-prerelease0",
3
+ "version": "0.0.1238",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {