flexinet-api 0.0.1298-prerelease0 → 0.0.1303

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.js CHANGED
@@ -106,12 +106,10 @@ export const Feature = {
106
106
  * @enum {string}
107
107
  */
108
108
  export const Locale = {
109
- EnUs: 'en-us',
110
- RoRo: 'ro-ro',
111
- HuHu: 'hu-hu'
112
- };
113
- export const MinTurnoverRestrictionKindEnum = {
114
- MinTurnover: 'minTurnover'
109
+ EnUs: 'en-US',
110
+ RoRo: 'ro-RO',
111
+ HuHu: 'hu-HU',
112
+ DeDe: 'de-DE'
115
113
  };
116
114
  /**
117
115
  *
@@ -153,8 +151,7 @@ export const NotificationStatus = {
153
151
  */
154
152
  export const OrderKind = {
155
153
  Webshop: 'webshop',
156
- Promotions: 'promotions',
157
- SalesBudget: 'sales_budget'
154
+ Promotions: 'promotions'
158
155
  };
159
156
  /**
160
157
  *
@@ -288,9 +285,6 @@ export const ReportTypesResponseTypesEnum = {
288
285
  Promotion: 'promotion',
289
286
  PromotionExpanded: 'promotion_expanded'
290
287
  };
291
- export const RequiredRestrictionKindEnum = {
292
- Required: 'required'
293
- };
294
288
  /**
295
289
  *
296
290
  * @export
@@ -359,16 +353,6 @@ export const TargetMu = {
359
353
  Product: 'product',
360
354
  AdditionalMu: 'additionalMU'
361
355
  };
362
- /**
363
- *
364
- * @export
365
- * @enum {string}
366
- */
367
- export const TransactionCurrencyKind = {
368
- Points: 'points',
369
- CustomDealBudget: 'customDealBudget',
370
- SalesBudget: 'salesBudget'
371
- };
372
356
  /**
373
357
  *
374
358
  * @export
@@ -398,8 +382,7 @@ export const TransactionSource = {
398
382
  Promotion: 'promotion',
399
383
  Manual: 'manual',
400
384
  Expiry: 'expiry',
401
- Transfer: 'transfer',
402
- SalesBudget: 'sales_budget'
385
+ Transfer: 'transfer'
403
386
  };
404
387
  /**
405
388
  *
@@ -1026,6 +1009,37 @@ export const BulkApiAxiosParamCreator = function (configuration) {
1026
1009
  options: localVarRequestOptions,
1027
1010
  };
1028
1011
  }),
1012
+ /**
1013
+ * Update multiple clients
1014
+ * @summary Update multiple clients
1015
+ * @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
1016
+ * @param {*} [options] Override http request option.
1017
+ * @throws {RequiredError}
1018
+ */
1019
+ bulkUpdateClients: (clientsBulkUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1020
+ const localVarPath = `/admins/clients/bulk`;
1021
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1022
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1023
+ let baseOptions;
1024
+ if (configuration) {
1025
+ baseOptions = configuration.baseOptions;
1026
+ }
1027
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1028
+ const localVarHeaderParameter = {};
1029
+ const localVarQueryParameter = {};
1030
+ // authentication systemJWT required
1031
+ // http bearer authentication required
1032
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1033
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1034
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1035
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1036
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1037
+ localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkUpdateRequest, localVarRequestOptions, configuration);
1038
+ return {
1039
+ url: toPathString(localVarUrlObj),
1040
+ options: localVarRequestOptions,
1041
+ };
1042
+ }),
1029
1043
  };
1030
1044
  };
1031
1045
  /**
@@ -1074,6 +1088,19 @@ export const BulkApiFp = function (configuration) {
1074
1088
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1075
1089
  });
1076
1090
  },
1091
+ /**
1092
+ * Update multiple clients
1093
+ * @summary Update multiple clients
1094
+ * @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
1095
+ * @param {*} [options] Override http request option.
1096
+ * @throws {RequiredError}
1097
+ */
1098
+ bulkUpdateClients(clientsBulkUpdateRequest, options) {
1099
+ return __awaiter(this, void 0, void 0, function* () {
1100
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
1101
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1102
+ });
1103
+ },
1077
1104
  };
1078
1105
  };
1079
1106
  /**
@@ -1113,6 +1140,16 @@ export const BulkApiFactory = function (configuration, basePath, axios) {
1113
1140
  bulkCreateTags(tagsBulkCreationRequest, options) {
1114
1141
  return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
1115
1142
  },
1143
+ /**
1144
+ * Update multiple clients
1145
+ * @summary Update multiple clients
1146
+ * @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
1147
+ * @param {*} [options] Override http request option.
1148
+ * @throws {RequiredError}
1149
+ */
1150
+ bulkUpdateClients(clientsBulkUpdateRequest, options) {
1151
+ return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
1152
+ },
1116
1153
  };
1117
1154
  };
1118
1155
  /**
@@ -1155,6 +1192,17 @@ export class BulkApi extends BaseAPI {
1155
1192
  bulkCreateTags(tagsBulkCreationRequest, options) {
1156
1193
  return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
1157
1194
  }
1195
+ /**
1196
+ * Update multiple clients
1197
+ * @summary Update multiple clients
1198
+ * @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
1199
+ * @param {*} [options] Override http request option.
1200
+ * @throws {RequiredError}
1201
+ * @memberof BulkApi
1202
+ */
1203
+ bulkUpdateClients(clientsBulkUpdateRequest, options) {
1204
+ return BulkApiFp(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
1205
+ }
1158
1206
  }
1159
1207
  /**
1160
1208
  * CategoryApi - axios parameter creator
@@ -1831,13 +1879,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
1831
1879
  /**
1832
1880
  * Create custom deal restrictions
1833
1881
  * @summary Create custom deal restrictions
1834
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
1882
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
1835
1883
  * @param {*} [options] Override http request option.
1836
1884
  * @throws {RequiredError}
1837
1885
  */
1838
- createCustomDealRestrictions: (customDealRestriction, options = {}) => __awaiter(this, void 0, void 0, function* () {
1839
- // verify required parameter 'customDealRestriction' is not null or undefined
1840
- assertParamExists('createCustomDealRestrictions', 'customDealRestriction', customDealRestriction);
1886
+ createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1887
+ // verify required parameter 'customDealRestrictionRequest' is not null or undefined
1888
+ assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
1841
1889
  const localVarPath = `/admins/custom-deals/restrictions`;
1842
1890
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1843
1891
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1855,75 +1903,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
1855
1903
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1856
1904
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1857
1905
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1858
- localVarRequestOptions.data = serializeDataIfNeeded(customDealRestriction, localVarRequestOptions, configuration);
1859
- return {
1860
- url: toPathString(localVarUrlObj),
1861
- options: localVarRequestOptions,
1862
- };
1863
- }),
1864
- /**
1865
- * Get custom deal min target value
1866
- * @summary Get custom deal min target value
1867
- * @param {string} startingAt start at
1868
- * @param {string} endingAt end at
1869
- * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
1870
- * @param {Array<string>} beneficiaryValues beneficiary values
1871
- * @param {string} tagKey tag key
1872
- * @param {string} tagValue tag value
1873
- * @param {*} [options] Override http request option.
1874
- * @throws {RequiredError}
1875
- */
1876
- getCustomDealMinTargetValue: (startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
1877
- // verify required parameter 'startingAt' is not null or undefined
1878
- assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt);
1879
- // verify required parameter 'endingAt' is not null or undefined
1880
- assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt);
1881
- // verify required parameter 'beneficiaryKind' is not null or undefined
1882
- assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind);
1883
- // verify required parameter 'beneficiaryValues' is not null or undefined
1884
- assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues);
1885
- // verify required parameter 'tagKey' is not null or undefined
1886
- assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey);
1887
- // verify required parameter 'tagValue' is not null or undefined
1888
- assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue);
1889
- const localVarPath = `/admins/custom-deals/min-target-value`;
1890
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1891
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1892
- let baseOptions;
1893
- if (configuration) {
1894
- baseOptions = configuration.baseOptions;
1895
- }
1896
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1897
- const localVarHeaderParameter = {};
1898
- const localVarQueryParameter = {};
1899
- // authentication systemJWT required
1900
- // http bearer authentication required
1901
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1902
- if (startingAt !== undefined) {
1903
- localVarQueryParameter['startingAt'] = (startingAt instanceof Date) ?
1904
- startingAt.toISOString() :
1905
- startingAt;
1906
- }
1907
- if (endingAt !== undefined) {
1908
- localVarQueryParameter['endingAt'] = (endingAt instanceof Date) ?
1909
- endingAt.toISOString() :
1910
- endingAt;
1911
- }
1912
- if (beneficiaryKind !== undefined) {
1913
- localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
1914
- }
1915
- if (beneficiaryValues) {
1916
- localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
1917
- }
1918
- if (tagKey !== undefined) {
1919
- localVarQueryParameter['tagKey'] = tagKey;
1920
- }
1921
- if (tagValue !== undefined) {
1922
- localVarQueryParameter['tagValue'] = tagValue;
1923
- }
1924
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1925
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1926
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1906
+ localVarRequestOptions.data = serializeDataIfNeeded(customDealRestrictionRequest, localVarRequestOptions, configuration);
1927
1907
  return {
1928
1908
  url: toPathString(localVarUrlObj),
1929
1909
  options: localVarRequestOptions,
@@ -1969,31 +1949,13 @@ export const CustomDealsApiFp = function (configuration) {
1969
1949
  /**
1970
1950
  * Create custom deal restrictions
1971
1951
  * @summary Create custom deal restrictions
1972
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
1952
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
1973
1953
  * @param {*} [options] Override http request option.
1974
1954
  * @throws {RequiredError}
1975
1955
  */
1976
- createCustomDealRestrictions(customDealRestriction, options) {
1956
+ createCustomDealRestrictions(customDealRestrictionRequest, options) {
1977
1957
  return __awaiter(this, void 0, void 0, function* () {
1978
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
1979
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1980
- });
1981
- },
1982
- /**
1983
- * Get custom deal min target value
1984
- * @summary Get custom deal min target value
1985
- * @param {string} startingAt start at
1986
- * @param {string} endingAt end at
1987
- * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
1988
- * @param {Array<string>} beneficiaryValues beneficiary values
1989
- * @param {string} tagKey tag key
1990
- * @param {string} tagValue tag value
1991
- * @param {*} [options] Override http request option.
1992
- * @throws {RequiredError}
1993
- */
1994
- getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
1995
- return __awaiter(this, void 0, void 0, function* () {
1996
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
1958
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
1997
1959
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1998
1960
  });
1999
1961
  },
@@ -2021,27 +1983,12 @@ export const CustomDealsApiFactory = function (configuration, basePath, axios) {
2021
1983
  /**
2022
1984
  * Create custom deal restrictions
2023
1985
  * @summary Create custom deal restrictions
2024
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
1986
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
2025
1987
  * @param {*} [options] Override http request option.
2026
1988
  * @throws {RequiredError}
2027
1989
  */
2028
- createCustomDealRestrictions(customDealRestriction, options) {
2029
- return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
2030
- },
2031
- /**
2032
- * Get custom deal min target value
2033
- * @summary Get custom deal min target value
2034
- * @param {string} startingAt start at
2035
- * @param {string} endingAt end at
2036
- * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2037
- * @param {Array<string>} beneficiaryValues beneficiary values
2038
- * @param {string} tagKey tag key
2039
- * @param {string} tagValue tag value
2040
- * @param {*} [options] Override http request option.
2041
- * @throws {RequiredError}
2042
- */
2043
- getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
2044
- return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
1990
+ createCustomDealRestrictions(customDealRestrictionRequest, options) {
1991
+ return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
2045
1992
  },
2046
1993
  /**
2047
1994
  * List custom deal restrictions
@@ -2064,29 +2011,13 @@ export class CustomDealsApi extends BaseAPI {
2064
2011
  /**
2065
2012
  * Create custom deal restrictions
2066
2013
  * @summary Create custom deal restrictions
2067
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
2014
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
2068
2015
  * @param {*} [options] Override http request option.
2069
2016
  * @throws {RequiredError}
2070
2017
  * @memberof CustomDealsApi
2071
2018
  */
2072
- createCustomDealRestrictions(customDealRestriction, options) {
2073
- return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
2074
- }
2075
- /**
2076
- * Get custom deal min target value
2077
- * @summary Get custom deal min target value
2078
- * @param {string} startingAt start at
2079
- * @param {string} endingAt end at
2080
- * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2081
- * @param {Array<string>} beneficiaryValues beneficiary values
2082
- * @param {string} tagKey tag key
2083
- * @param {string} tagValue tag value
2084
- * @param {*} [options] Override http request option.
2085
- * @throws {RequiredError}
2086
- * @memberof CustomDealsApi
2087
- */
2088
- getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
2089
- return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
2019
+ createCustomDealRestrictions(customDealRestrictionRequest, options) {
2020
+ return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
2090
2021
  }
2091
2022
  /**
2092
2023
  * List custom deal restrictions
@@ -2502,6 +2433,34 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
2502
2433
  * @throws {RequiredError}
2503
2434
  */
2504
2435
  getPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
2436
+ const localVarPath = `/admins/preferences`;
2437
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2438
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2439
+ let baseOptions;
2440
+ if (configuration) {
2441
+ baseOptions = configuration.baseOptions;
2442
+ }
2443
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2444
+ const localVarHeaderParameter = {};
2445
+ const localVarQueryParameter = {};
2446
+ // authentication customerJWT required
2447
+ // http bearer authentication required
2448
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2449
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2450
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2451
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2452
+ return {
2453
+ url: toPathString(localVarUrlObj),
2454
+ options: localVarRequestOptions,
2455
+ };
2456
+ }),
2457
+ /**
2458
+ * Get preferences for the authenticated user
2459
+ * @summary Get preferences
2460
+ * @param {*} [options] Override http request option.
2461
+ * @throws {RequiredError}
2462
+ */
2463
+ getUserPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
2505
2464
  const localVarPath = `/users/preferences`;
2506
2465
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2507
2466
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2601,7 +2560,7 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
2601
2560
  updatePreferences: (preferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2602
2561
  // verify required parameter 'preferencesRequest' is not null or undefined
2603
2562
  assertParamExists('updatePreferences', 'preferencesRequest', preferencesRequest);
2604
- const localVarPath = `/users/preferences`;
2563
+ const localVarPath = `/admins/preferences`;
2605
2564
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2606
2565
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2607
2566
  let baseOptions;
@@ -2624,6 +2583,39 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
2624
2583
  options: localVarRequestOptions,
2625
2584
  };
2626
2585
  }),
2586
+ /**
2587
+ * Update preferences for the authenticated user
2588
+ * @summary Update preferences
2589
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
2590
+ * @param {*} [options] Override http request option.
2591
+ * @throws {RequiredError}
2592
+ */
2593
+ updateUserPreferences: (userPreferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2594
+ // verify required parameter 'userPreferencesRequest' is not null or undefined
2595
+ assertParamExists('updateUserPreferences', 'userPreferencesRequest', userPreferencesRequest);
2596
+ const localVarPath = `/users/preferences`;
2597
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2598
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2599
+ let baseOptions;
2600
+ if (configuration) {
2601
+ baseOptions = configuration.baseOptions;
2602
+ }
2603
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2604
+ const localVarHeaderParameter = {};
2605
+ const localVarQueryParameter = {};
2606
+ // authentication customerJWT required
2607
+ // http bearer authentication required
2608
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2609
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2610
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2611
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2612
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2613
+ localVarRequestOptions.data = serializeDataIfNeeded(userPreferencesRequest, localVarRequestOptions, configuration);
2614
+ return {
2615
+ url: toPathString(localVarUrlObj),
2616
+ options: localVarRequestOptions,
2617
+ };
2618
+ }),
2627
2619
  };
2628
2620
  };
2629
2621
  /**
@@ -2671,6 +2663,18 @@ export const NotificationApiFp = function (configuration) {
2671
2663
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2672
2664
  });
2673
2665
  },
2666
+ /**
2667
+ * Get preferences for the authenticated user
2668
+ * @summary Get preferences
2669
+ * @param {*} [options] Override http request option.
2670
+ * @throws {RequiredError}
2671
+ */
2672
+ getUserPreferences(options) {
2673
+ return __awaiter(this, void 0, void 0, function* () {
2674
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserPreferences(options);
2675
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2676
+ });
2677
+ },
2674
2678
  /**
2675
2679
  * List paginated notifications
2676
2680
  * @summary List notifications
@@ -2711,6 +2715,19 @@ export const NotificationApiFp = function (configuration) {
2711
2715
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2712
2716
  });
2713
2717
  },
2718
+ /**
2719
+ * Update preferences for the authenticated user
2720
+ * @summary Update preferences
2721
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
2722
+ * @param {*} [options] Override http request option.
2723
+ * @throws {RequiredError}
2724
+ */
2725
+ updateUserPreferences(userPreferencesRequest, options) {
2726
+ return __awaiter(this, void 0, void 0, function* () {
2727
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserPreferences(userPreferencesRequest, options);
2728
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2729
+ });
2730
+ },
2714
2731
  };
2715
2732
  };
2716
2733
  /**
@@ -2749,6 +2766,15 @@ export const NotificationApiFactory = function (configuration, basePath, axios)
2749
2766
  getPreferences(options) {
2750
2767
  return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
2751
2768
  },
2769
+ /**
2770
+ * Get preferences for the authenticated user
2771
+ * @summary Get preferences
2772
+ * @param {*} [options] Override http request option.
2773
+ * @throws {RequiredError}
2774
+ */
2775
+ getUserPreferences(options) {
2776
+ return localVarFp.getUserPreferences(options).then((request) => request(axios, basePath));
2777
+ },
2752
2778
  /**
2753
2779
  * List paginated notifications
2754
2780
  * @summary List notifications
@@ -2780,6 +2806,16 @@ export const NotificationApiFactory = function (configuration, basePath, axios)
2780
2806
  updatePreferences(preferencesRequest, options) {
2781
2807
  return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
2782
2808
  },
2809
+ /**
2810
+ * Update preferences for the authenticated user
2811
+ * @summary Update preferences
2812
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
2813
+ * @param {*} [options] Override http request option.
2814
+ * @throws {RequiredError}
2815
+ */
2816
+ updateUserPreferences(userPreferencesRequest, options) {
2817
+ return localVarFp.updateUserPreferences(userPreferencesRequest, options).then((request) => request(axios, basePath));
2818
+ },
2783
2819
  };
2784
2820
  };
2785
2821
  /**
@@ -2821,6 +2857,16 @@ export class NotificationApi extends BaseAPI {
2821
2857
  getPreferences(options) {
2822
2858
  return NotificationApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
2823
2859
  }
2860
+ /**
2861
+ * Get preferences for the authenticated user
2862
+ * @summary Get preferences
2863
+ * @param {*} [options] Override http request option.
2864
+ * @throws {RequiredError}
2865
+ * @memberof NotificationApi
2866
+ */
2867
+ getUserPreferences(options) {
2868
+ return NotificationApiFp(this.configuration).getUserPreferences(options).then((request) => request(this.axios, this.basePath));
2869
+ }
2824
2870
  /**
2825
2871
  * List paginated notifications
2826
2872
  * @summary List notifications
@@ -2855,6 +2901,17 @@ export class NotificationApi extends BaseAPI {
2855
2901
  updatePreferences(preferencesRequest, options) {
2856
2902
  return NotificationApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
2857
2903
  }
2904
+ /**
2905
+ * Update preferences for the authenticated user
2906
+ * @summary Update preferences
2907
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
2908
+ * @param {*} [options] Override http request option.
2909
+ * @throws {RequiredError}
2910
+ * @memberof NotificationApi
2911
+ */
2912
+ updateUserPreferences(userPreferencesRequest, options) {
2913
+ return NotificationApiFp(this.configuration).updateUserPreferences(userPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
2914
+ }
2858
2915
  }
2859
2916
  /**
2860
2917
  * OrderApi - axios parameter creator
@@ -2862,37 +2919,6 @@ export class NotificationApi extends BaseAPI {
2862
2919
  */
2863
2920
  export const OrderApiAxiosParamCreator = function (configuration) {
2864
2921
  return {
2865
- /**
2866
- * Create a product order. If successful the value of the product will be deducted from the used balance.
2867
- * @summary Create an order for a product
2868
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
2869
- * @param {*} [options] Override http request option.
2870
- * @throws {RequiredError}
2871
- */
2872
- createAdminOrder: (adminOrderCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2873
- const localVarPath = `/admins/orders`;
2874
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2875
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2876
- let baseOptions;
2877
- if (configuration) {
2878
- baseOptions = configuration.baseOptions;
2879
- }
2880
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2881
- const localVarHeaderParameter = {};
2882
- const localVarQueryParameter = {};
2883
- // authentication systemJWT required
2884
- // http bearer authentication required
2885
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2886
- localVarHeaderParameter['Content-Type'] = 'application/json';
2887
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2888
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2889
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2890
- localVarRequestOptions.data = serializeDataIfNeeded(adminOrderCreationRequest, localVarRequestOptions, configuration);
2891
- return {
2892
- url: toPathString(localVarUrlObj),
2893
- options: localVarRequestOptions,
2894
- };
2895
- }),
2896
2922
  /**
2897
2923
  * Create a product order. If successful the value of the product will be deducted from the used balance.
2898
2924
  * @summary Create an order for a product
@@ -2999,12 +3025,10 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2999
3025
  * @param {string} [createdBefore] Filter orders created before the specified date
3000
3026
  * @param {Array<string>} [userIDs] Filter by user ids
3001
3027
  * @param {Array<string>} [clientIDs] Filter by client ids
3002
- * @param {OrderKind} [kind] Filter by kind
3003
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
3004
3028
  * @param {*} [options] Override http request option.
3005
3029
  * @throws {RequiredError}
3006
3030
  */
3007
- listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options = {}) => __awaiter(this, void 0, void 0, function* () {
3031
+ listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
3008
3032
  const localVarPath = `/admins/orders`;
3009
3033
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3010
3034
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3046,12 +3070,6 @@ export const OrderApiAxiosParamCreator = function (configuration) {
3046
3070
  if (clientIDs) {
3047
3071
  localVarQueryParameter['clientIDs'] = clientIDs;
3048
3072
  }
3049
- if (kind !== undefined) {
3050
- localVarQueryParameter['kind'] = kind;
3051
- }
3052
- if (source !== undefined) {
3053
- localVarQueryParameter['source'] = source;
3054
- }
3055
3073
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3056
3074
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3057
3075
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3129,19 +3147,6 @@ export const OrderApiAxiosParamCreator = function (configuration) {
3129
3147
  export const OrderApiFp = function (configuration) {
3130
3148
  const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration);
3131
3149
  return {
3132
- /**
3133
- * Create a product order. If successful the value of the product will be deducted from the used balance.
3134
- * @summary Create an order for a product
3135
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
3136
- * @param {*} [options] Override http request option.
3137
- * @throws {RequiredError}
3138
- */
3139
- createAdminOrder(adminOrderCreationRequest, options) {
3140
- return __awaiter(this, void 0, void 0, function* () {
3141
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
3142
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3143
- });
3144
- },
3145
3150
  /**
3146
3151
  * Create a product order. If successful the value of the product will be deducted from the used balance.
3147
3152
  * @summary Create an order for a product
@@ -3192,14 +3197,12 @@ export const OrderApiFp = function (configuration) {
3192
3197
  * @param {string} [createdBefore] Filter orders created before the specified date
3193
3198
  * @param {Array<string>} [userIDs] Filter by user ids
3194
3199
  * @param {Array<string>} [clientIDs] Filter by client ids
3195
- * @param {OrderKind} [kind] Filter by kind
3196
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
3197
3200
  * @param {*} [options] Override http request option.
3198
3201
  * @throws {RequiredError}
3199
3202
  */
3200
- listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
3203
+ listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
3201
3204
  return __awaiter(this, void 0, void 0, function* () {
3202
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options);
3205
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
3203
3206
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3204
3207
  });
3205
3208
  },
@@ -3231,16 +3234,6 @@ export const OrderApiFp = function (configuration) {
3231
3234
  export const OrderApiFactory = function (configuration, basePath, axios) {
3232
3235
  const localVarFp = OrderApiFp(configuration);
3233
3236
  return {
3234
- /**
3235
- * Create a product order. If successful the value of the product will be deducted from the used balance.
3236
- * @summary Create an order for a product
3237
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
3238
- * @param {*} [options] Override http request option.
3239
- * @throws {RequiredError}
3240
- */
3241
- createAdminOrder(adminOrderCreationRequest, options) {
3242
- return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
3243
- },
3244
3237
  /**
3245
3238
  * Create a product order. If successful the value of the product will be deducted from the used balance.
3246
3239
  * @summary Create an order for a product
@@ -3282,13 +3275,11 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
3282
3275
  * @param {string} [createdBefore] Filter orders created before the specified date
3283
3276
  * @param {Array<string>} [userIDs] Filter by user ids
3284
3277
  * @param {Array<string>} [clientIDs] Filter by client ids
3285
- * @param {OrderKind} [kind] Filter by kind
3286
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
3287
3278
  * @param {*} [options] Override http request option.
3288
3279
  * @throws {RequiredError}
3289
3280
  */
3290
- listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
3291
- return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(axios, basePath));
3281
+ listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
3282
+ return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
3292
3283
  },
3293
3284
  /**
3294
3285
  * List existing orders
@@ -3315,17 +3306,6 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
3315
3306
  * @extends {BaseAPI}
3316
3307
  */
3317
3308
  export class OrderApi extends BaseAPI {
3318
- /**
3319
- * Create a product order. If successful the value of the product will be deducted from the used balance.
3320
- * @summary Create an order for a product
3321
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
3322
- * @param {*} [options] Override http request option.
3323
- * @throws {RequiredError}
3324
- * @memberof OrderApi
3325
- */
3326
- createAdminOrder(adminOrderCreationRequest, options) {
3327
- return OrderApiFp(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
3328
- }
3329
3309
  /**
3330
3310
  * Create a product order. If successful the value of the product will be deducted from the used balance.
3331
3311
  * @summary Create an order for a product
@@ -3370,14 +3350,12 @@ export class OrderApi extends BaseAPI {
3370
3350
  * @param {string} [createdBefore] Filter orders created before the specified date
3371
3351
  * @param {Array<string>} [userIDs] Filter by user ids
3372
3352
  * @param {Array<string>} [clientIDs] Filter by client ids
3373
- * @param {OrderKind} [kind] Filter by kind
3374
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
3375
3353
  * @param {*} [options] Override http request option.
3376
3354
  * @throws {RequiredError}
3377
3355
  * @memberof OrderApi
3378
3356
  */
3379
- listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
3380
- return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(this.axios, this.basePath));
3357
+ listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
3358
+ return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
3381
3359
  }
3382
3360
  /**
3383
3361
  * List existing orders