flexinet-api 0.0.1297 → 0.0.1299

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.1297
1
+ ## flexinet-api@0.0.1299
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.1297 --save
39
+ npm install flexinet-api@0.0.1299 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -968,9 +968,10 @@ export interface Item {
968
968
  */
969
969
 
970
970
  export const Locale = {
971
- EnUs: 'en-us',
972
- RoRo: 'ro-ro',
973
- HuHu: 'hu-hu'
971
+ EnUs: 'en-US',
972
+ RoRo: 'ro-RO',
973
+ HuHu: 'hu-HU',
974
+ DeDe: 'de-DE'
974
975
  } as const;
975
976
 
976
977
  export type Locale = typeof Locale[keyof typeof Locale];
@@ -1500,7 +1501,15 @@ export interface Preferences {
1500
1501
  * @memberof Preferences
1501
1502
  */
1502
1503
  'promotionConfig': PromotionConfig;
1504
+ /**
1505
+ *
1506
+ * @type {Locale}
1507
+ * @memberof Preferences
1508
+ */
1509
+ 'locale'?: Locale;
1503
1510
  }
1511
+
1512
+
1504
1513
  /**
1505
1514
  *
1506
1515
  * @export
@@ -1513,12 +1522,6 @@ export interface PreferencesRequest {
1513
1522
  * @memberof PreferencesRequest
1514
1523
  */
1515
1524
  'preferredLocale'?: Locale;
1516
- /**
1517
- *
1518
- * @type {Array<NotificationPreference>}
1519
- * @memberof PreferencesRequest
1520
- */
1521
- 'notificationPreferences': Array<NotificationPreference>;
1522
1525
  }
1523
1526
 
1524
1527
 
@@ -3507,11 +3510,13 @@ export interface Tenant {
3507
3510
  'azureEntraClientID': string;
3508
3511
  /**
3509
3512
  *
3510
- * @type {string}
3513
+ * @type {Locale}
3511
3514
  * @memberof Tenant
3512
3515
  */
3513
- 'locale': string;
3516
+ 'locale': Locale;
3514
3517
  }
3518
+
3519
+
3515
3520
  /**
3516
3521
  *
3517
3522
  * @export
@@ -4066,6 +4071,27 @@ export interface UserOrderListResponse {
4066
4071
  */
4067
4072
  'nextToken'?: string;
4068
4073
  }
4074
+ /**
4075
+ *
4076
+ * @export
4077
+ * @interface UserPreferencesRequest
4078
+ */
4079
+ export interface UserPreferencesRequest {
4080
+ /**
4081
+ *
4082
+ * @type {Locale}
4083
+ * @memberof UserPreferencesRequest
4084
+ */
4085
+ 'preferredLocale'?: Locale;
4086
+ /**
4087
+ *
4088
+ * @type {Array<NotificationPreference>}
4089
+ * @memberof UserPreferencesRequest
4090
+ */
4091
+ 'notificationPreferences': Array<NotificationPreference>;
4092
+ }
4093
+
4094
+
4069
4095
  /**
4070
4096
  *
4071
4097
  * @export
@@ -6580,6 +6606,40 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
6580
6606
  * @throws {RequiredError}
6581
6607
  */
6582
6608
  getPreferences: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6609
+ const localVarPath = `/admins/preferences`;
6610
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6611
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6612
+ let baseOptions;
6613
+ if (configuration) {
6614
+ baseOptions = configuration.baseOptions;
6615
+ }
6616
+
6617
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6618
+ const localVarHeaderParameter = {} as any;
6619
+ const localVarQueryParameter = {} as any;
6620
+
6621
+ // authentication customerJWT required
6622
+ // http bearer authentication required
6623
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6624
+
6625
+
6626
+
6627
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6628
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6629
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6630
+
6631
+ return {
6632
+ url: toPathString(localVarUrlObj),
6633
+ options: localVarRequestOptions,
6634
+ };
6635
+ },
6636
+ /**
6637
+ * Get preferences for the authenticated user
6638
+ * @summary Get preferences
6639
+ * @param {*} [options] Override http request option.
6640
+ * @throws {RequiredError}
6641
+ */
6642
+ getUserPreferences: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6583
6643
  const localVarPath = `/users/preferences`;
6584
6644
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6585
6645
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6699,7 +6759,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
6699
6759
  updatePreferences: async (preferencesRequest: PreferencesRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6700
6760
  // verify required parameter 'preferencesRequest' is not null or undefined
6701
6761
  assertParamExists('updatePreferences', 'preferencesRequest', preferencesRequest)
6702
- const localVarPath = `/users/preferences`;
6762
+ const localVarPath = `/admins/preferences`;
6703
6763
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6704
6764
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6705
6765
  let baseOptions;
@@ -6724,6 +6784,46 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
6724
6784
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6725
6785
  localVarRequestOptions.data = serializeDataIfNeeded(preferencesRequest, localVarRequestOptions, configuration)
6726
6786
 
6787
+ return {
6788
+ url: toPathString(localVarUrlObj),
6789
+ options: localVarRequestOptions,
6790
+ };
6791
+ },
6792
+ /**
6793
+ * Update preferences for the authenticated user
6794
+ * @summary Update preferences
6795
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
6796
+ * @param {*} [options] Override http request option.
6797
+ * @throws {RequiredError}
6798
+ */
6799
+ updateUserPreferences: async (userPreferencesRequest: UserPreferencesRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6800
+ // verify required parameter 'userPreferencesRequest' is not null or undefined
6801
+ assertParamExists('updateUserPreferences', 'userPreferencesRequest', userPreferencesRequest)
6802
+ const localVarPath = `/users/preferences`;
6803
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6804
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6805
+ let baseOptions;
6806
+ if (configuration) {
6807
+ baseOptions = configuration.baseOptions;
6808
+ }
6809
+
6810
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
6811
+ const localVarHeaderParameter = {} as any;
6812
+ const localVarQueryParameter = {} as any;
6813
+
6814
+ // authentication customerJWT required
6815
+ // http bearer authentication required
6816
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6817
+
6818
+
6819
+
6820
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6821
+
6822
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6823
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6824
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6825
+ localVarRequestOptions.data = serializeDataIfNeeded(userPreferencesRequest, localVarRequestOptions, configuration)
6826
+
6727
6827
  return {
6728
6828
  url: toPathString(localVarUrlObj),
6729
6829
  options: localVarRequestOptions,
@@ -6771,6 +6871,16 @@ export const NotificationApiFp = function(configuration?: Configuration) {
6771
6871
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPreferences(options);
6772
6872
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6773
6873
  },
6874
+ /**
6875
+ * Get preferences for the authenticated user
6876
+ * @summary Get preferences
6877
+ * @param {*} [options] Override http request option.
6878
+ * @throws {RequiredError}
6879
+ */
6880
+ async getUserPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>> {
6881
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPreferences(options);
6882
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6883
+ },
6774
6884
  /**
6775
6885
  * List paginated notifications
6776
6886
  * @summary List notifications
@@ -6805,6 +6915,17 @@ export const NotificationApiFp = function(configuration?: Configuration) {
6805
6915
  const localVarAxiosArgs = await localVarAxiosParamCreator.updatePreferences(preferencesRequest, options);
6806
6916
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6807
6917
  },
6918
+ /**
6919
+ * Update preferences for the authenticated user
6920
+ * @summary Update preferences
6921
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
6922
+ * @param {*} [options] Override http request option.
6923
+ * @throws {RequiredError}
6924
+ */
6925
+ async updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6926
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserPreferences(userPreferencesRequest, options);
6927
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6928
+ },
6808
6929
  }
6809
6930
  };
6810
6931
 
@@ -6844,6 +6965,15 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
6844
6965
  getPreferences(options?: any): AxiosPromise<Preferences> {
6845
6966
  return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
6846
6967
  },
6968
+ /**
6969
+ * Get preferences for the authenticated user
6970
+ * @summary Get preferences
6971
+ * @param {*} [options] Override http request option.
6972
+ * @throws {RequiredError}
6973
+ */
6974
+ getUserPreferences(options?: any): AxiosPromise<Preferences> {
6975
+ return localVarFp.getUserPreferences(options).then((request) => request(axios, basePath));
6976
+ },
6847
6977
  /**
6848
6978
  * List paginated notifications
6849
6979
  * @summary List notifications
@@ -6875,6 +7005,16 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
6875
7005
  updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void> {
6876
7006
  return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
6877
7007
  },
7008
+ /**
7009
+ * Update preferences for the authenticated user
7010
+ * @summary Update preferences
7011
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
7012
+ * @param {*} [options] Override http request option.
7013
+ * @throws {RequiredError}
7014
+ */
7015
+ updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: any): AxiosPromise<void> {
7016
+ return localVarFp.updateUserPreferences(userPreferencesRequest, options).then((request) => request(axios, basePath));
7017
+ },
6878
7018
  };
6879
7019
  };
6880
7020
 
@@ -6920,6 +7060,17 @@ export class NotificationApi extends BaseAPI {
6920
7060
  return NotificationApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
6921
7061
  }
6922
7062
 
7063
+ /**
7064
+ * Get preferences for the authenticated user
7065
+ * @summary Get preferences
7066
+ * @param {*} [options] Override http request option.
7067
+ * @throws {RequiredError}
7068
+ * @memberof NotificationApi
7069
+ */
7070
+ public getUserPreferences(options?: AxiosRequestConfig) {
7071
+ return NotificationApiFp(this.configuration).getUserPreferences(options).then((request) => request(this.axios, this.basePath));
7072
+ }
7073
+
6923
7074
  /**
6924
7075
  * List paginated notifications
6925
7076
  * @summary List notifications
@@ -6956,6 +7107,18 @@ export class NotificationApi extends BaseAPI {
6956
7107
  public updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig) {
6957
7108
  return NotificationApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
6958
7109
  }
7110
+
7111
+ /**
7112
+ * Update preferences for the authenticated user
7113
+ * @summary Update preferences
7114
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
7115
+ * @param {*} [options] Override http request option.
7116
+ * @throws {RequiredError}
7117
+ * @memberof NotificationApi
7118
+ */
7119
+ public updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig) {
7120
+ return NotificationApiFp(this.configuration).updateUserPreferences(userPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
7121
+ }
6959
7122
  }
6960
7123
 
6961
7124
 
package/dist/api.d.ts CHANGED
@@ -906,9 +906,10 @@ export interface Item {
906
906
  * @enum {string}
907
907
  */
908
908
  export declare const Locale: {
909
- readonly EnUs: "en-us";
910
- readonly RoRo: "ro-ro";
911
- readonly HuHu: "hu-hu";
909
+ readonly EnUs: "en-US";
910
+ readonly RoRo: "ro-RO";
911
+ readonly HuHu: "hu-HU";
912
+ readonly DeDe: "de-DE";
912
913
  };
913
914
  export type Locale = typeof Locale[keyof typeof Locale];
914
915
  /**
@@ -1416,6 +1417,12 @@ export interface Preferences {
1416
1417
  * @memberof Preferences
1417
1418
  */
1418
1419
  'promotionConfig': PromotionConfig;
1420
+ /**
1421
+ *
1422
+ * @type {Locale}
1423
+ * @memberof Preferences
1424
+ */
1425
+ 'locale'?: Locale;
1419
1426
  }
1420
1427
  /**
1421
1428
  *
@@ -1429,12 +1436,6 @@ export interface PreferencesRequest {
1429
1436
  * @memberof PreferencesRequest
1430
1437
  */
1431
1438
  'preferredLocale'?: Locale;
1432
- /**
1433
- *
1434
- * @type {Array<NotificationPreference>}
1435
- * @memberof PreferencesRequest
1436
- */
1437
- 'notificationPreferences': Array<NotificationPreference>;
1438
1439
  }
1439
1440
  /**
1440
1441
  *
@@ -3328,10 +3329,10 @@ export interface Tenant {
3328
3329
  'azureEntraClientID': string;
3329
3330
  /**
3330
3331
  *
3331
- * @type {string}
3332
+ * @type {Locale}
3332
3333
  * @memberof Tenant
3333
3334
  */
3334
- 'locale': string;
3335
+ 'locale': Locale;
3335
3336
  }
3336
3337
  /**
3337
3338
  *
@@ -3875,6 +3876,25 @@ export interface UserOrderListResponse {
3875
3876
  */
3876
3877
  'nextToken'?: string;
3877
3878
  }
3879
+ /**
3880
+ *
3881
+ * @export
3882
+ * @interface UserPreferencesRequest
3883
+ */
3884
+ export interface UserPreferencesRequest {
3885
+ /**
3886
+ *
3887
+ * @type {Locale}
3888
+ * @memberof UserPreferencesRequest
3889
+ */
3890
+ 'preferredLocale'?: Locale;
3891
+ /**
3892
+ *
3893
+ * @type {Array<NotificationPreference>}
3894
+ * @memberof UserPreferencesRequest
3895
+ */
3896
+ 'notificationPreferences': Array<NotificationPreference>;
3897
+ }
3878
3898
  /**
3879
3899
  *
3880
3900
  * @export
@@ -5229,6 +5249,13 @@ export declare const NotificationApiAxiosParamCreator: (configuration?: Configur
5229
5249
  * @throws {RequiredError}
5230
5250
  */
5231
5251
  getPreferences: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
5252
+ /**
5253
+ * Get preferences for the authenticated user
5254
+ * @summary Get preferences
5255
+ * @param {*} [options] Override http request option.
5256
+ * @throws {RequiredError}
5257
+ */
5258
+ getUserPreferences: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
5232
5259
  /**
5233
5260
  * List paginated notifications
5234
5261
  * @summary List notifications
@@ -5254,6 +5281,14 @@ export declare const NotificationApiAxiosParamCreator: (configuration?: Configur
5254
5281
  * @throws {RequiredError}
5255
5282
  */
5256
5283
  updatePreferences: (preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5284
+ /**
5285
+ * Update preferences for the authenticated user
5286
+ * @summary Update preferences
5287
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
5288
+ * @param {*} [options] Override http request option.
5289
+ * @throws {RequiredError}
5290
+ */
5291
+ updateUserPreferences: (userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5257
5292
  };
5258
5293
  /**
5259
5294
  * NotificationApi - functional programming interface
@@ -5283,6 +5318,13 @@ export declare const NotificationApiFp: (configuration?: Configuration) => {
5283
5318
  * @throws {RequiredError}
5284
5319
  */
5285
5320
  getPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>>;
5321
+ /**
5322
+ * Get preferences for the authenticated user
5323
+ * @summary Get preferences
5324
+ * @param {*} [options] Override http request option.
5325
+ * @throws {RequiredError}
5326
+ */
5327
+ getUserPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>>;
5286
5328
  /**
5287
5329
  * List paginated notifications
5288
5330
  * @summary List notifications
@@ -5308,6 +5350,14 @@ export declare const NotificationApiFp: (configuration?: Configuration) => {
5308
5350
  * @throws {RequiredError}
5309
5351
  */
5310
5352
  updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5353
+ /**
5354
+ * Update preferences for the authenticated user
5355
+ * @summary Update preferences
5356
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
5357
+ * @param {*} [options] Override http request option.
5358
+ * @throws {RequiredError}
5359
+ */
5360
+ updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5311
5361
  };
5312
5362
  /**
5313
5363
  * NotificationApi - factory interface
@@ -5337,6 +5387,13 @@ export declare const NotificationApiFactory: (configuration?: Configuration, bas
5337
5387
  * @throws {RequiredError}
5338
5388
  */
5339
5389
  getPreferences(options?: any): AxiosPromise<Preferences>;
5390
+ /**
5391
+ * Get preferences for the authenticated user
5392
+ * @summary Get preferences
5393
+ * @param {*} [options] Override http request option.
5394
+ * @throws {RequiredError}
5395
+ */
5396
+ getUserPreferences(options?: any): AxiosPromise<Preferences>;
5340
5397
  /**
5341
5398
  * List paginated notifications
5342
5399
  * @summary List notifications
@@ -5362,6 +5419,14 @@ export declare const NotificationApiFactory: (configuration?: Configuration, bas
5362
5419
  * @throws {RequiredError}
5363
5420
  */
5364
5421
  updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void>;
5422
+ /**
5423
+ * Update preferences for the authenticated user
5424
+ * @summary Update preferences
5425
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
5426
+ * @param {*} [options] Override http request option.
5427
+ * @throws {RequiredError}
5428
+ */
5429
+ updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: any): AxiosPromise<void>;
5365
5430
  };
5366
5431
  /**
5367
5432
  * NotificationApi - object-oriented interface
@@ -5396,6 +5461,14 @@ export declare class NotificationApi extends BaseAPI {
5396
5461
  * @memberof NotificationApi
5397
5462
  */
5398
5463
  getPreferences(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Preferences, any>>;
5464
+ /**
5465
+ * Get preferences for the authenticated user
5466
+ * @summary Get preferences
5467
+ * @param {*} [options] Override http request option.
5468
+ * @throws {RequiredError}
5469
+ * @memberof NotificationApi
5470
+ */
5471
+ getUserPreferences(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Preferences, any>>;
5399
5472
  /**
5400
5473
  * List paginated notifications
5401
5474
  * @summary List notifications
@@ -5424,6 +5497,15 @@ export declare class NotificationApi extends BaseAPI {
5424
5497
  * @memberof NotificationApi
5425
5498
  */
5426
5499
  updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
5500
+ /**
5501
+ * Update preferences for the authenticated user
5502
+ * @summary Update preferences
5503
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
5504
+ * @param {*} [options] Override http request option.
5505
+ * @throws {RequiredError}
5506
+ * @memberof NotificationApi
5507
+ */
5508
+ updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
5427
5509
  }
5428
5510
  /**
5429
5511
  * OrderApi - axios parameter creator
package/dist/api.js CHANGED
@@ -111,9 +111,10 @@ exports.Feature = {
111
111
  * @enum {string}
112
112
  */
113
113
  exports.Locale = {
114
- EnUs: 'en-us',
115
- RoRo: 'ro-ro',
116
- HuHu: 'hu-hu'
114
+ EnUs: 'en-US',
115
+ RoRo: 'ro-RO',
116
+ HuHu: 'hu-HU',
117
+ DeDe: 'de-DE'
117
118
  };
118
119
  /**
119
120
  *
@@ -2473,6 +2474,34 @@ const NotificationApiAxiosParamCreator = function (configuration) {
2473
2474
  * @throws {RequiredError}
2474
2475
  */
2475
2476
  getPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
2477
+ const localVarPath = `/admins/preferences`;
2478
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2479
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2480
+ let baseOptions;
2481
+ if (configuration) {
2482
+ baseOptions = configuration.baseOptions;
2483
+ }
2484
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2485
+ const localVarHeaderParameter = {};
2486
+ const localVarQueryParameter = {};
2487
+ // authentication customerJWT required
2488
+ // http bearer authentication required
2489
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2490
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2491
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2492
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2493
+ return {
2494
+ url: (0, common_1.toPathString)(localVarUrlObj),
2495
+ options: localVarRequestOptions,
2496
+ };
2497
+ }),
2498
+ /**
2499
+ * Get preferences for the authenticated user
2500
+ * @summary Get preferences
2501
+ * @param {*} [options] Override http request option.
2502
+ * @throws {RequiredError}
2503
+ */
2504
+ getUserPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
2476
2505
  const localVarPath = `/users/preferences`;
2477
2506
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2478
2507
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2572,7 +2601,7 @@ const NotificationApiAxiosParamCreator = function (configuration) {
2572
2601
  updatePreferences: (preferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2573
2602
  // verify required parameter 'preferencesRequest' is not null or undefined
2574
2603
  (0, common_1.assertParamExists)('updatePreferences', 'preferencesRequest', preferencesRequest);
2575
- const localVarPath = `/users/preferences`;
2604
+ const localVarPath = `/admins/preferences`;
2576
2605
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2577
2606
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2578
2607
  let baseOptions;
@@ -2595,6 +2624,39 @@ const NotificationApiAxiosParamCreator = function (configuration) {
2595
2624
  options: localVarRequestOptions,
2596
2625
  };
2597
2626
  }),
2627
+ /**
2628
+ * Update preferences for the authenticated user
2629
+ * @summary Update preferences
2630
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
2631
+ * @param {*} [options] Override http request option.
2632
+ * @throws {RequiredError}
2633
+ */
2634
+ updateUserPreferences: (userPreferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2635
+ // verify required parameter 'userPreferencesRequest' is not null or undefined
2636
+ (0, common_1.assertParamExists)('updateUserPreferences', 'userPreferencesRequest', userPreferencesRequest);
2637
+ const localVarPath = `/users/preferences`;
2638
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2639
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2640
+ let baseOptions;
2641
+ if (configuration) {
2642
+ baseOptions = configuration.baseOptions;
2643
+ }
2644
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2645
+ const localVarHeaderParameter = {};
2646
+ const localVarQueryParameter = {};
2647
+ // authentication customerJWT required
2648
+ // http bearer authentication required
2649
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2650
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2651
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2652
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2653
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2654
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userPreferencesRequest, localVarRequestOptions, configuration);
2655
+ return {
2656
+ url: (0, common_1.toPathString)(localVarUrlObj),
2657
+ options: localVarRequestOptions,
2658
+ };
2659
+ }),
2598
2660
  };
2599
2661
  };
2600
2662
  exports.NotificationApiAxiosParamCreator = NotificationApiAxiosParamCreator;
@@ -2643,6 +2705,18 @@ const NotificationApiFp = function (configuration) {
2643
2705
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2644
2706
  });
2645
2707
  },
2708
+ /**
2709
+ * Get preferences for the authenticated user
2710
+ * @summary Get preferences
2711
+ * @param {*} [options] Override http request option.
2712
+ * @throws {RequiredError}
2713
+ */
2714
+ getUserPreferences(options) {
2715
+ return __awaiter(this, void 0, void 0, function* () {
2716
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserPreferences(options);
2717
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2718
+ });
2719
+ },
2646
2720
  /**
2647
2721
  * List paginated notifications
2648
2722
  * @summary List notifications
@@ -2683,6 +2757,19 @@ const NotificationApiFp = function (configuration) {
2683
2757
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2684
2758
  });
2685
2759
  },
2760
+ /**
2761
+ * Update preferences for the authenticated user
2762
+ * @summary Update preferences
2763
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
2764
+ * @param {*} [options] Override http request option.
2765
+ * @throws {RequiredError}
2766
+ */
2767
+ updateUserPreferences(userPreferencesRequest, options) {
2768
+ return __awaiter(this, void 0, void 0, function* () {
2769
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserPreferences(userPreferencesRequest, options);
2770
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2771
+ });
2772
+ },
2686
2773
  };
2687
2774
  };
2688
2775
  exports.NotificationApiFp = NotificationApiFp;
@@ -2722,6 +2809,15 @@ const NotificationApiFactory = function (configuration, basePath, axios) {
2722
2809
  getPreferences(options) {
2723
2810
  return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
2724
2811
  },
2812
+ /**
2813
+ * Get preferences for the authenticated user
2814
+ * @summary Get preferences
2815
+ * @param {*} [options] Override http request option.
2816
+ * @throws {RequiredError}
2817
+ */
2818
+ getUserPreferences(options) {
2819
+ return localVarFp.getUserPreferences(options).then((request) => request(axios, basePath));
2820
+ },
2725
2821
  /**
2726
2822
  * List paginated notifications
2727
2823
  * @summary List notifications
@@ -2753,6 +2849,16 @@ const NotificationApiFactory = function (configuration, basePath, axios) {
2753
2849
  updatePreferences(preferencesRequest, options) {
2754
2850
  return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
2755
2851
  },
2852
+ /**
2853
+ * Update preferences for the authenticated user
2854
+ * @summary Update preferences
2855
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
2856
+ * @param {*} [options] Override http request option.
2857
+ * @throws {RequiredError}
2858
+ */
2859
+ updateUserPreferences(userPreferencesRequest, options) {
2860
+ return localVarFp.updateUserPreferences(userPreferencesRequest, options).then((request) => request(axios, basePath));
2861
+ },
2756
2862
  };
2757
2863
  };
2758
2864
  exports.NotificationApiFactory = NotificationApiFactory;
@@ -2795,6 +2901,16 @@ class NotificationApi extends base_1.BaseAPI {
2795
2901
  getPreferences(options) {
2796
2902
  return (0, exports.NotificationApiFp)(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
2797
2903
  }
2904
+ /**
2905
+ * Get preferences for the authenticated user
2906
+ * @summary Get preferences
2907
+ * @param {*} [options] Override http request option.
2908
+ * @throws {RequiredError}
2909
+ * @memberof NotificationApi
2910
+ */
2911
+ getUserPreferences(options) {
2912
+ return (0, exports.NotificationApiFp)(this.configuration).getUserPreferences(options).then((request) => request(this.axios, this.basePath));
2913
+ }
2798
2914
  /**
2799
2915
  * List paginated notifications
2800
2916
  * @summary List notifications
@@ -2829,6 +2945,17 @@ class NotificationApi extends base_1.BaseAPI {
2829
2945
  updatePreferences(preferencesRequest, options) {
2830
2946
  return (0, exports.NotificationApiFp)(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
2831
2947
  }
2948
+ /**
2949
+ * Update preferences for the authenticated user
2950
+ * @summary Update preferences
2951
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
2952
+ * @param {*} [options] Override http request option.
2953
+ * @throws {RequiredError}
2954
+ * @memberof NotificationApi
2955
+ */
2956
+ updateUserPreferences(userPreferencesRequest, options) {
2957
+ return (0, exports.NotificationApiFp)(this.configuration).updateUserPreferences(userPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
2958
+ }
2832
2959
  }
2833
2960
  exports.NotificationApi = NotificationApi;
2834
2961
  /**
package/dist/esm/api.d.ts CHANGED
@@ -906,9 +906,10 @@ export interface Item {
906
906
  * @enum {string}
907
907
  */
908
908
  export declare const Locale: {
909
- readonly EnUs: "en-us";
910
- readonly RoRo: "ro-ro";
911
- readonly HuHu: "hu-hu";
909
+ readonly EnUs: "en-US";
910
+ readonly RoRo: "ro-RO";
911
+ readonly HuHu: "hu-HU";
912
+ readonly DeDe: "de-DE";
912
913
  };
913
914
  export type Locale = typeof Locale[keyof typeof Locale];
914
915
  /**
@@ -1416,6 +1417,12 @@ export interface Preferences {
1416
1417
  * @memberof Preferences
1417
1418
  */
1418
1419
  'promotionConfig': PromotionConfig;
1420
+ /**
1421
+ *
1422
+ * @type {Locale}
1423
+ * @memberof Preferences
1424
+ */
1425
+ 'locale'?: Locale;
1419
1426
  }
1420
1427
  /**
1421
1428
  *
@@ -1429,12 +1436,6 @@ export interface PreferencesRequest {
1429
1436
  * @memberof PreferencesRequest
1430
1437
  */
1431
1438
  'preferredLocale'?: Locale;
1432
- /**
1433
- *
1434
- * @type {Array<NotificationPreference>}
1435
- * @memberof PreferencesRequest
1436
- */
1437
- 'notificationPreferences': Array<NotificationPreference>;
1438
1439
  }
1439
1440
  /**
1440
1441
  *
@@ -3328,10 +3329,10 @@ export interface Tenant {
3328
3329
  'azureEntraClientID': string;
3329
3330
  /**
3330
3331
  *
3331
- * @type {string}
3332
+ * @type {Locale}
3332
3333
  * @memberof Tenant
3333
3334
  */
3334
- 'locale': string;
3335
+ 'locale': Locale;
3335
3336
  }
3336
3337
  /**
3337
3338
  *
@@ -3875,6 +3876,25 @@ export interface UserOrderListResponse {
3875
3876
  */
3876
3877
  'nextToken'?: string;
3877
3878
  }
3879
+ /**
3880
+ *
3881
+ * @export
3882
+ * @interface UserPreferencesRequest
3883
+ */
3884
+ export interface UserPreferencesRequest {
3885
+ /**
3886
+ *
3887
+ * @type {Locale}
3888
+ * @memberof UserPreferencesRequest
3889
+ */
3890
+ 'preferredLocale'?: Locale;
3891
+ /**
3892
+ *
3893
+ * @type {Array<NotificationPreference>}
3894
+ * @memberof UserPreferencesRequest
3895
+ */
3896
+ 'notificationPreferences': Array<NotificationPreference>;
3897
+ }
3878
3898
  /**
3879
3899
  *
3880
3900
  * @export
@@ -5229,6 +5249,13 @@ export declare const NotificationApiAxiosParamCreator: (configuration?: Configur
5229
5249
  * @throws {RequiredError}
5230
5250
  */
5231
5251
  getPreferences: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
5252
+ /**
5253
+ * Get preferences for the authenticated user
5254
+ * @summary Get preferences
5255
+ * @param {*} [options] Override http request option.
5256
+ * @throws {RequiredError}
5257
+ */
5258
+ getUserPreferences: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
5232
5259
  /**
5233
5260
  * List paginated notifications
5234
5261
  * @summary List notifications
@@ -5254,6 +5281,14 @@ export declare const NotificationApiAxiosParamCreator: (configuration?: Configur
5254
5281
  * @throws {RequiredError}
5255
5282
  */
5256
5283
  updatePreferences: (preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5284
+ /**
5285
+ * Update preferences for the authenticated user
5286
+ * @summary Update preferences
5287
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
5288
+ * @param {*} [options] Override http request option.
5289
+ * @throws {RequiredError}
5290
+ */
5291
+ updateUserPreferences: (userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5257
5292
  };
5258
5293
  /**
5259
5294
  * NotificationApi - functional programming interface
@@ -5283,6 +5318,13 @@ export declare const NotificationApiFp: (configuration?: Configuration) => {
5283
5318
  * @throws {RequiredError}
5284
5319
  */
5285
5320
  getPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>>;
5321
+ /**
5322
+ * Get preferences for the authenticated user
5323
+ * @summary Get preferences
5324
+ * @param {*} [options] Override http request option.
5325
+ * @throws {RequiredError}
5326
+ */
5327
+ getUserPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>>;
5286
5328
  /**
5287
5329
  * List paginated notifications
5288
5330
  * @summary List notifications
@@ -5308,6 +5350,14 @@ export declare const NotificationApiFp: (configuration?: Configuration) => {
5308
5350
  * @throws {RequiredError}
5309
5351
  */
5310
5352
  updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5353
+ /**
5354
+ * Update preferences for the authenticated user
5355
+ * @summary Update preferences
5356
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
5357
+ * @param {*} [options] Override http request option.
5358
+ * @throws {RequiredError}
5359
+ */
5360
+ updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
5311
5361
  };
5312
5362
  /**
5313
5363
  * NotificationApi - factory interface
@@ -5337,6 +5387,13 @@ export declare const NotificationApiFactory: (configuration?: Configuration, bas
5337
5387
  * @throws {RequiredError}
5338
5388
  */
5339
5389
  getPreferences(options?: any): AxiosPromise<Preferences>;
5390
+ /**
5391
+ * Get preferences for the authenticated user
5392
+ * @summary Get preferences
5393
+ * @param {*} [options] Override http request option.
5394
+ * @throws {RequiredError}
5395
+ */
5396
+ getUserPreferences(options?: any): AxiosPromise<Preferences>;
5340
5397
  /**
5341
5398
  * List paginated notifications
5342
5399
  * @summary List notifications
@@ -5362,6 +5419,14 @@ export declare const NotificationApiFactory: (configuration?: Configuration, bas
5362
5419
  * @throws {RequiredError}
5363
5420
  */
5364
5421
  updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void>;
5422
+ /**
5423
+ * Update preferences for the authenticated user
5424
+ * @summary Update preferences
5425
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
5426
+ * @param {*} [options] Override http request option.
5427
+ * @throws {RequiredError}
5428
+ */
5429
+ updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: any): AxiosPromise<void>;
5365
5430
  };
5366
5431
  /**
5367
5432
  * NotificationApi - object-oriented interface
@@ -5396,6 +5461,14 @@ export declare class NotificationApi extends BaseAPI {
5396
5461
  * @memberof NotificationApi
5397
5462
  */
5398
5463
  getPreferences(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Preferences, any>>;
5464
+ /**
5465
+ * Get preferences for the authenticated user
5466
+ * @summary Get preferences
5467
+ * @param {*} [options] Override http request option.
5468
+ * @throws {RequiredError}
5469
+ * @memberof NotificationApi
5470
+ */
5471
+ getUserPreferences(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Preferences, any>>;
5399
5472
  /**
5400
5473
  * List paginated notifications
5401
5474
  * @summary List notifications
@@ -5424,6 +5497,15 @@ export declare class NotificationApi extends BaseAPI {
5424
5497
  * @memberof NotificationApi
5425
5498
  */
5426
5499
  updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
5500
+ /**
5501
+ * Update preferences for the authenticated user
5502
+ * @summary Update preferences
5503
+ * @param {UserPreferencesRequest} userPreferencesRequest notification preferences
5504
+ * @param {*} [options] Override http request option.
5505
+ * @throws {RequiredError}
5506
+ * @memberof NotificationApi
5507
+ */
5508
+ updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
5427
5509
  }
5428
5510
  /**
5429
5511
  * OrderApi - axios parameter creator
package/dist/esm/api.js CHANGED
@@ -106,9 +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'
109
+ EnUs: 'en-US',
110
+ RoRo: 'ro-RO',
111
+ HuHu: 'hu-HU',
112
+ DeDe: 'de-DE'
112
113
  };
113
114
  /**
114
115
  *
@@ -2432,6 +2433,34 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
2432
2433
  * @throws {RequiredError}
2433
2434
  */
2434
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* () {
2435
2464
  const localVarPath = `/users/preferences`;
2436
2465
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2437
2466
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2531,7 +2560,7 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
2531
2560
  updatePreferences: (preferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2532
2561
  // verify required parameter 'preferencesRequest' is not null or undefined
2533
2562
  assertParamExists('updatePreferences', 'preferencesRequest', preferencesRequest);
2534
- const localVarPath = `/users/preferences`;
2563
+ const localVarPath = `/admins/preferences`;
2535
2564
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2536
2565
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2537
2566
  let baseOptions;
@@ -2554,6 +2583,39 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
2554
2583
  options: localVarRequestOptions,
2555
2584
  };
2556
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
+ }),
2557
2619
  };
2558
2620
  };
2559
2621
  /**
@@ -2601,6 +2663,18 @@ export const NotificationApiFp = function (configuration) {
2601
2663
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2602
2664
  });
2603
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
+ },
2604
2678
  /**
2605
2679
  * List paginated notifications
2606
2680
  * @summary List notifications
@@ -2641,6 +2715,19 @@ export const NotificationApiFp = function (configuration) {
2641
2715
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2642
2716
  });
2643
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
+ },
2644
2731
  };
2645
2732
  };
2646
2733
  /**
@@ -2679,6 +2766,15 @@ export const NotificationApiFactory = function (configuration, basePath, axios)
2679
2766
  getPreferences(options) {
2680
2767
  return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
2681
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
+ },
2682
2778
  /**
2683
2779
  * List paginated notifications
2684
2780
  * @summary List notifications
@@ -2710,6 +2806,16 @@ export const NotificationApiFactory = function (configuration, basePath, axios)
2710
2806
  updatePreferences(preferencesRequest, options) {
2711
2807
  return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
2712
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
+ },
2713
2819
  };
2714
2820
  };
2715
2821
  /**
@@ -2751,6 +2857,16 @@ export class NotificationApi extends BaseAPI {
2751
2857
  getPreferences(options) {
2752
2858
  return NotificationApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
2753
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
+ }
2754
2870
  /**
2755
2871
  * List paginated notifications
2756
2872
  * @summary List notifications
@@ -2785,6 +2901,17 @@ export class NotificationApi extends BaseAPI {
2785
2901
  updatePreferences(preferencesRequest, options) {
2786
2902
  return NotificationApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
2787
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
+ }
2788
2915
  }
2789
2916
  /**
2790
2917
  * OrderApi - axios parameter creator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.1297",
3
+ "version": "0.0.1299",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {