flexinet-api 0.0.761-prerelease0 → 0.0.764-prerelease0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## flexinet-api@0.0.761-prerelease0
1
+ ## flexinet-api@0.0.764-prerelease0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install flexinet-api@0.0.761-prerelease0 --save
39
+ npm install flexinet-api@0.0.764-prerelease0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -921,6 +921,21 @@ export interface Item {
921
921
  */
922
922
  'product': Product;
923
923
  }
924
+ /**
925
+ *
926
+ * @export
927
+ * @enum {string}
928
+ */
929
+
930
+ export const Locale = {
931
+ EnUs: 'en-us',
932
+ RoRo: 'ro-ro',
933
+ HuHu: 'hu-hu'
934
+ } as const;
935
+
936
+ export type Locale = typeof Locale[keyof typeof Locale];
937
+
938
+
924
939
  /**
925
940
  *
926
941
  * @export
@@ -1065,10 +1080,10 @@ export interface Notification {
1065
1080
  'kind': NotificationKind;
1066
1081
  /**
1067
1082
  *
1068
- * @type {Array<string>}
1083
+ * @type {Array<NotificationReferencesInner>}
1069
1084
  * @memberof Notification
1070
1085
  */
1071
- 'references'?: Array<string>;
1086
+ 'references'?: Array<NotificationReferencesInner>;
1072
1087
  }
1073
1088
 
1074
1089
 
@@ -1176,6 +1191,12 @@ export interface NotificationPreference {
1176
1191
  }
1177
1192
 
1178
1193
 
1194
+ /**
1195
+ * @type NotificationReferencesInner
1196
+ * @export
1197
+ */
1198
+ export type NotificationReferencesInner = Order | Product | Promotion;
1199
+
1179
1200
  /**
1180
1201
  *
1181
1202
  * @export
@@ -1373,6 +1394,12 @@ export interface Preferences {
1373
1394
  * @interface PreferencesRequest
1374
1395
  */
1375
1396
  export interface PreferencesRequest {
1397
+ /**
1398
+ *
1399
+ * @type {Locale}
1400
+ * @memberof PreferencesRequest
1401
+ */
1402
+ 'preferredLocale'?: Locale;
1376
1403
  /**
1377
1404
  *
1378
1405
  * @type {Array<NotificationPreference>}
@@ -1380,6 +1407,8 @@ export interface PreferencesRequest {
1380
1407
  */
1381
1408
  'notificationPreferences': Array<NotificationPreference>;
1382
1409
  }
1410
+
1411
+
1383
1412
  /**
1384
1413
  *
1385
1414
  * @export
@@ -1689,6 +1718,12 @@ export interface ProductRequest {
1689
1718
  * @memberof ProductRequest
1690
1719
  */
1691
1720
  'updatedAt': string;
1721
+ /**
1722
+ *
1723
+ * @type {User}
1724
+ * @memberof ProductRequest
1725
+ */
1726
+ 'user'?: User;
1692
1727
  }
1693
1728
 
1694
1729
 
@@ -7208,6 +7243,45 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
7208
7243
 
7209
7244
 
7210
7245
 
7246
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7247
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7248
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7249
+
7250
+ return {
7251
+ url: toPathString(localVarUrlObj),
7252
+ options: localVarRequestOptions,
7253
+ };
7254
+ },
7255
+ /**
7256
+ * List product requests
7257
+ * @summary List product requests
7258
+ * @param {string} [nextToken] This is the pagination token
7259
+ * @param {*} [options] Override http request option.
7260
+ * @throws {RequiredError}
7261
+ */
7262
+ listUserProductRequests: async (nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7263
+ const localVarPath = `/users/products/requests`;
7264
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7265
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7266
+ let baseOptions;
7267
+ if (configuration) {
7268
+ baseOptions = configuration.baseOptions;
7269
+ }
7270
+
7271
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7272
+ const localVarHeaderParameter = {} as any;
7273
+ const localVarQueryParameter = {} as any;
7274
+
7275
+ // authentication customerJWT required
7276
+ // http bearer authentication required
7277
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7278
+
7279
+ if (nextToken !== undefined) {
7280
+ localVarQueryParameter['nextToken'] = nextToken;
7281
+ }
7282
+
7283
+
7284
+
7211
7285
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7212
7286
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7213
7287
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -7441,6 +7515,17 @@ export const ProductApiFp = function(configuration?: Configuration) {
7441
7515
  const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options);
7442
7516
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7443
7517
  },
7518
+ /**
7519
+ * List product requests
7520
+ * @summary List product requests
7521
+ * @param {string} [nextToken] This is the pagination token
7522
+ * @param {*} [options] Override http request option.
7523
+ * @throws {RequiredError}
7524
+ */
7525
+ async listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestsResponse>> {
7526
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProductRequests(nextToken, options);
7527
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7528
+ },
7444
7529
  /**
7445
7530
  * List existing products for the user
7446
7531
  * @summary List existing products
@@ -7578,6 +7663,16 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
7578
7663
  listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse> {
7579
7664
  return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
7580
7665
  },
7666
+ /**
7667
+ * List product requests
7668
+ * @summary List product requests
7669
+ * @param {string} [nextToken] This is the pagination token
7670
+ * @param {*} [options] Override http request option.
7671
+ * @throws {RequiredError}
7672
+ */
7673
+ listUserProductRequests(nextToken?: string, options?: any): AxiosPromise<ProductRequestsResponse> {
7674
+ return localVarFp.listUserProductRequests(nextToken, options).then((request) => request(axios, basePath));
7675
+ },
7581
7676
  /**
7582
7677
  * List existing products for the user
7583
7678
  * @summary List existing products
@@ -7731,6 +7826,18 @@ export class ProductApi extends BaseAPI {
7731
7826
  return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
7732
7827
  }
7733
7828
 
7829
+ /**
7830
+ * List product requests
7831
+ * @summary List product requests
7832
+ * @param {string} [nextToken] This is the pagination token
7833
+ * @param {*} [options] Override http request option.
7834
+ * @throws {RequiredError}
7835
+ * @memberof ProductApi
7836
+ */
7837
+ public listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig) {
7838
+ return ProductApiFp(this.configuration).listUserProductRequests(nextToken, options).then((request) => request(this.axios, this.basePath));
7839
+ }
7840
+
7734
7841
  /**
7735
7842
  * List existing products for the user
7736
7843
  * @summary List existing products
package/dist/api.d.ts CHANGED
@@ -860,6 +860,17 @@ export interface Item {
860
860
  */
861
861
  'product': Product;
862
862
  }
863
+ /**
864
+ *
865
+ * @export
866
+ * @enum {string}
867
+ */
868
+ export declare const Locale: {
869
+ readonly EnUs: "en-us";
870
+ readonly RoRo: "ro-ro";
871
+ readonly HuHu: "hu-hu";
872
+ };
873
+ export type Locale = typeof Locale[keyof typeof Locale];
863
874
  /**
864
875
  *
865
876
  * @export
@@ -1008,10 +1019,10 @@ export interface Notification {
1008
1019
  'kind': NotificationKind;
1009
1020
  /**
1010
1021
  *
1011
- * @type {Array<string>}
1022
+ * @type {Array<NotificationReferencesInner>}
1012
1023
  * @memberof Notification
1013
1024
  */
1014
- 'references'?: Array<string>;
1025
+ 'references'?: Array<NotificationReferencesInner>;
1015
1026
  }
1016
1027
  /**
1017
1028
  *
@@ -1107,6 +1118,11 @@ export interface NotificationPreference {
1107
1118
  */
1108
1119
  'kind': NotificationKind;
1109
1120
  }
1121
+ /**
1122
+ * @type NotificationReferencesInner
1123
+ * @export
1124
+ */
1125
+ export type NotificationReferencesInner = Order | Product | Promotion;
1110
1126
  /**
1111
1127
  *
1112
1128
  * @export
@@ -1297,6 +1313,12 @@ export interface Preferences {
1297
1313
  * @interface PreferencesRequest
1298
1314
  */
1299
1315
  export interface PreferencesRequest {
1316
+ /**
1317
+ *
1318
+ * @type {Locale}
1319
+ * @memberof PreferencesRequest
1320
+ */
1321
+ 'preferredLocale'?: Locale;
1300
1322
  /**
1301
1323
  *
1302
1324
  * @type {Array<NotificationPreference>}
@@ -1603,6 +1625,12 @@ export interface ProductRequest {
1603
1625
  * @memberof ProductRequest
1604
1626
  */
1605
1627
  'updatedAt': string;
1628
+ /**
1629
+ *
1630
+ * @type {User}
1631
+ * @memberof ProductRequest
1632
+ */
1633
+ 'user'?: User;
1606
1634
  }
1607
1635
  /**
1608
1636
  *
@@ -5167,6 +5195,14 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
5167
5195
  * @throws {RequiredError}
5168
5196
  */
5169
5197
  listProducts: (kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5198
+ /**
5199
+ * List product requests
5200
+ * @summary List product requests
5201
+ * @param {string} [nextToken] This is the pagination token
5202
+ * @param {*} [options] Override http request option.
5203
+ * @throws {RequiredError}
5204
+ */
5205
+ listUserProductRequests: (nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5170
5206
  /**
5171
5207
  * List existing products for the user
5172
5208
  * @summary List existing products
@@ -5276,6 +5312,14 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
5276
5312
  * @throws {RequiredError}
5277
5313
  */
5278
5314
  listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
5315
+ /**
5316
+ * List product requests
5317
+ * @summary List product requests
5318
+ * @param {string} [nextToken] This is the pagination token
5319
+ * @param {*} [options] Override http request option.
5320
+ * @throws {RequiredError}
5321
+ */
5322
+ listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestsResponse>>;
5279
5323
  /**
5280
5324
  * List existing products for the user
5281
5325
  * @summary List existing products
@@ -5385,6 +5429,14 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
5385
5429
  * @throws {RequiredError}
5386
5430
  */
5387
5431
  listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
5432
+ /**
5433
+ * List product requests
5434
+ * @summary List product requests
5435
+ * @param {string} [nextToken] This is the pagination token
5436
+ * @param {*} [options] Override http request option.
5437
+ * @throws {RequiredError}
5438
+ */
5439
+ listUserProductRequests(nextToken?: string, options?: any): AxiosPromise<ProductRequestsResponse>;
5388
5440
  /**
5389
5441
  * List existing products for the user
5390
5442
  * @summary List existing products
@@ -5505,6 +5557,15 @@ export declare class ProductApi extends BaseAPI {
5505
5557
  * @memberof ProductApi
5506
5558
  */
5507
5559
  listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
5560
+ /**
5561
+ * List product requests
5562
+ * @summary List product requests
5563
+ * @param {string} [nextToken] This is the pagination token
5564
+ * @param {*} [options] Override http request option.
5565
+ * @throws {RequiredError}
5566
+ * @memberof ProductApi
5567
+ */
5568
+ listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequestsResponse, any>>;
5508
5569
  /**
5509
5570
  * List existing products for the user
5510
5571
  * @summary List existing products
package/dist/api.js CHANGED
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.PromotionSortByField = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
26
- exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = void 0;
27
- exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = void 0;
25
+ exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.PromotionSortByField = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
26
+ exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = void 0;
27
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -103,6 +103,16 @@ exports.Feature = {
103
103
  SalesBudget: 'sales_budget',
104
104
  CustomDeals: 'custom_deals'
105
105
  };
106
+ /**
107
+ *
108
+ * @export
109
+ * @enum {string}
110
+ */
111
+ exports.Locale = {
112
+ EnUs: 'en-us',
113
+ RoRo: 'ro-ro',
114
+ HuHu: 'hu-hu'
115
+ };
106
116
  /**
107
117
  *
108
118
  * @export
@@ -3510,6 +3520,38 @@ const ProductApiAxiosParamCreator = function (configuration) {
3510
3520
  options: localVarRequestOptions,
3511
3521
  };
3512
3522
  }),
3523
+ /**
3524
+ * List product requests
3525
+ * @summary List product requests
3526
+ * @param {string} [nextToken] This is the pagination token
3527
+ * @param {*} [options] Override http request option.
3528
+ * @throws {RequiredError}
3529
+ */
3530
+ listUserProductRequests: (nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
3531
+ const localVarPath = `/users/products/requests`;
3532
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3533
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3534
+ let baseOptions;
3535
+ if (configuration) {
3536
+ baseOptions = configuration.baseOptions;
3537
+ }
3538
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3539
+ const localVarHeaderParameter = {};
3540
+ const localVarQueryParameter = {};
3541
+ // authentication customerJWT required
3542
+ // http bearer authentication required
3543
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3544
+ if (nextToken !== undefined) {
3545
+ localVarQueryParameter['nextToken'] = nextToken;
3546
+ }
3547
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3548
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3549
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3550
+ return {
3551
+ url: (0, common_1.toPathString)(localVarUrlObj),
3552
+ options: localVarRequestOptions,
3553
+ };
3554
+ }),
3513
3555
  /**
3514
3556
  * List existing products for the user
3515
3557
  * @summary List existing products
@@ -3733,6 +3775,19 @@ const ProductApiFp = function (configuration) {
3733
3775
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3734
3776
  });
3735
3777
  },
3778
+ /**
3779
+ * List product requests
3780
+ * @summary List product requests
3781
+ * @param {string} [nextToken] This is the pagination token
3782
+ * @param {*} [options] Override http request option.
3783
+ * @throws {RequiredError}
3784
+ */
3785
+ listUserProductRequests(nextToken, options) {
3786
+ return __awaiter(this, void 0, void 0, function* () {
3787
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProductRequests(nextToken, options);
3788
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3789
+ });
3790
+ },
3736
3791
  /**
3737
3792
  * List existing products for the user
3738
3793
  * @summary List existing products
@@ -3874,6 +3929,16 @@ const ProductApiFactory = function (configuration, basePath, axios) {
3874
3929
  listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
3875
3930
  return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
3876
3931
  },
3932
+ /**
3933
+ * List product requests
3934
+ * @summary List product requests
3935
+ * @param {string} [nextToken] This is the pagination token
3936
+ * @param {*} [options] Override http request option.
3937
+ * @throws {RequiredError}
3938
+ */
3939
+ listUserProductRequests(nextToken, options) {
3940
+ return localVarFp.listUserProductRequests(nextToken, options).then((request) => request(axios, basePath));
3941
+ },
3877
3942
  /**
3878
3943
  * List existing products for the user
3879
3944
  * @summary List existing products
@@ -4018,6 +4083,17 @@ class ProductApi extends base_1.BaseAPI {
4018
4083
  listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
4019
4084
  return (0, exports.ProductApiFp)(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
4020
4085
  }
4086
+ /**
4087
+ * List product requests
4088
+ * @summary List product requests
4089
+ * @param {string} [nextToken] This is the pagination token
4090
+ * @param {*} [options] Override http request option.
4091
+ * @throws {RequiredError}
4092
+ * @memberof ProductApi
4093
+ */
4094
+ listUserProductRequests(nextToken, options) {
4095
+ return (0, exports.ProductApiFp)(this.configuration).listUserProductRequests(nextToken, options).then((request) => request(this.axios, this.basePath));
4096
+ }
4021
4097
  /**
4022
4098
  * List existing products for the user
4023
4099
  * @summary List existing products
package/dist/esm/api.d.ts CHANGED
@@ -860,6 +860,17 @@ export interface Item {
860
860
  */
861
861
  'product': Product;
862
862
  }
863
+ /**
864
+ *
865
+ * @export
866
+ * @enum {string}
867
+ */
868
+ export declare const Locale: {
869
+ readonly EnUs: "en-us";
870
+ readonly RoRo: "ro-ro";
871
+ readonly HuHu: "hu-hu";
872
+ };
873
+ export type Locale = typeof Locale[keyof typeof Locale];
863
874
  /**
864
875
  *
865
876
  * @export
@@ -1008,10 +1019,10 @@ export interface Notification {
1008
1019
  'kind': NotificationKind;
1009
1020
  /**
1010
1021
  *
1011
- * @type {Array<string>}
1022
+ * @type {Array<NotificationReferencesInner>}
1012
1023
  * @memberof Notification
1013
1024
  */
1014
- 'references'?: Array<string>;
1025
+ 'references'?: Array<NotificationReferencesInner>;
1015
1026
  }
1016
1027
  /**
1017
1028
  *
@@ -1107,6 +1118,11 @@ export interface NotificationPreference {
1107
1118
  */
1108
1119
  'kind': NotificationKind;
1109
1120
  }
1121
+ /**
1122
+ * @type NotificationReferencesInner
1123
+ * @export
1124
+ */
1125
+ export type NotificationReferencesInner = Order | Product | Promotion;
1110
1126
  /**
1111
1127
  *
1112
1128
  * @export
@@ -1297,6 +1313,12 @@ export interface Preferences {
1297
1313
  * @interface PreferencesRequest
1298
1314
  */
1299
1315
  export interface PreferencesRequest {
1316
+ /**
1317
+ *
1318
+ * @type {Locale}
1319
+ * @memberof PreferencesRequest
1320
+ */
1321
+ 'preferredLocale'?: Locale;
1300
1322
  /**
1301
1323
  *
1302
1324
  * @type {Array<NotificationPreference>}
@@ -1603,6 +1625,12 @@ export interface ProductRequest {
1603
1625
  * @memberof ProductRequest
1604
1626
  */
1605
1627
  'updatedAt': string;
1628
+ /**
1629
+ *
1630
+ * @type {User}
1631
+ * @memberof ProductRequest
1632
+ */
1633
+ 'user'?: User;
1606
1634
  }
1607
1635
  /**
1608
1636
  *
@@ -5167,6 +5195,14 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
5167
5195
  * @throws {RequiredError}
5168
5196
  */
5169
5197
  listProducts: (kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5198
+ /**
5199
+ * List product requests
5200
+ * @summary List product requests
5201
+ * @param {string} [nextToken] This is the pagination token
5202
+ * @param {*} [options] Override http request option.
5203
+ * @throws {RequiredError}
5204
+ */
5205
+ listUserProductRequests: (nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5170
5206
  /**
5171
5207
  * List existing products for the user
5172
5208
  * @summary List existing products
@@ -5276,6 +5312,14 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
5276
5312
  * @throws {RequiredError}
5277
5313
  */
5278
5314
  listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
5315
+ /**
5316
+ * List product requests
5317
+ * @summary List product requests
5318
+ * @param {string} [nextToken] This is the pagination token
5319
+ * @param {*} [options] Override http request option.
5320
+ * @throws {RequiredError}
5321
+ */
5322
+ listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestsResponse>>;
5279
5323
  /**
5280
5324
  * List existing products for the user
5281
5325
  * @summary List existing products
@@ -5385,6 +5429,14 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
5385
5429
  * @throws {RequiredError}
5386
5430
  */
5387
5431
  listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
5432
+ /**
5433
+ * List product requests
5434
+ * @summary List product requests
5435
+ * @param {string} [nextToken] This is the pagination token
5436
+ * @param {*} [options] Override http request option.
5437
+ * @throws {RequiredError}
5438
+ */
5439
+ listUserProductRequests(nextToken?: string, options?: any): AxiosPromise<ProductRequestsResponse>;
5388
5440
  /**
5389
5441
  * List existing products for the user
5390
5442
  * @summary List existing products
@@ -5505,6 +5557,15 @@ export declare class ProductApi extends BaseAPI {
5505
5557
  * @memberof ProductApi
5506
5558
  */
5507
5559
  listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
5560
+ /**
5561
+ * List product requests
5562
+ * @summary List product requests
5563
+ * @param {string} [nextToken] This is the pagination token
5564
+ * @param {*} [options] Override http request option.
5565
+ * @throws {RequiredError}
5566
+ * @memberof ProductApi
5567
+ */
5568
+ listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequestsResponse, any>>;
5508
5569
  /**
5509
5570
  * List existing products for the user
5510
5571
  * @summary List existing products
package/dist/esm/api.js CHANGED
@@ -98,6 +98,16 @@ export const Feature = {
98
98
  SalesBudget: 'sales_budget',
99
99
  CustomDeals: 'custom_deals'
100
100
  };
101
+ /**
102
+ *
103
+ * @export
104
+ * @enum {string}
105
+ */
106
+ export const Locale = {
107
+ EnUs: 'en-us',
108
+ RoRo: 'ro-ro',
109
+ HuHu: 'hu-hu'
110
+ };
101
111
  /**
102
112
  *
103
113
  * @export
@@ -3461,6 +3471,38 @@ export const ProductApiAxiosParamCreator = function (configuration) {
3461
3471
  options: localVarRequestOptions,
3462
3472
  };
3463
3473
  }),
3474
+ /**
3475
+ * List product requests
3476
+ * @summary List product requests
3477
+ * @param {string} [nextToken] This is the pagination token
3478
+ * @param {*} [options] Override http request option.
3479
+ * @throws {RequiredError}
3480
+ */
3481
+ listUserProductRequests: (nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
3482
+ const localVarPath = `/users/products/requests`;
3483
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3484
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3485
+ let baseOptions;
3486
+ if (configuration) {
3487
+ baseOptions = configuration.baseOptions;
3488
+ }
3489
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3490
+ const localVarHeaderParameter = {};
3491
+ const localVarQueryParameter = {};
3492
+ // authentication customerJWT required
3493
+ // http bearer authentication required
3494
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3495
+ if (nextToken !== undefined) {
3496
+ localVarQueryParameter['nextToken'] = nextToken;
3497
+ }
3498
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3499
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3500
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3501
+ return {
3502
+ url: toPathString(localVarUrlObj),
3503
+ options: localVarRequestOptions,
3504
+ };
3505
+ }),
3464
3506
  /**
3465
3507
  * List existing products for the user
3466
3508
  * @summary List existing products
@@ -3683,6 +3725,19 @@ export const ProductApiFp = function (configuration) {
3683
3725
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3684
3726
  });
3685
3727
  },
3728
+ /**
3729
+ * List product requests
3730
+ * @summary List product requests
3731
+ * @param {string} [nextToken] This is the pagination token
3732
+ * @param {*} [options] Override http request option.
3733
+ * @throws {RequiredError}
3734
+ */
3735
+ listUserProductRequests(nextToken, options) {
3736
+ return __awaiter(this, void 0, void 0, function* () {
3737
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProductRequests(nextToken, options);
3738
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3739
+ });
3740
+ },
3686
3741
  /**
3687
3742
  * List existing products for the user
3688
3743
  * @summary List existing products
@@ -3823,6 +3878,16 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
3823
3878
  listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
3824
3879
  return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
3825
3880
  },
3881
+ /**
3882
+ * List product requests
3883
+ * @summary List product requests
3884
+ * @param {string} [nextToken] This is the pagination token
3885
+ * @param {*} [options] Override http request option.
3886
+ * @throws {RequiredError}
3887
+ */
3888
+ listUserProductRequests(nextToken, options) {
3889
+ return localVarFp.listUserProductRequests(nextToken, options).then((request) => request(axios, basePath));
3890
+ },
3826
3891
  /**
3827
3892
  * List existing products for the user
3828
3893
  * @summary List existing products
@@ -3966,6 +4031,17 @@ export class ProductApi extends BaseAPI {
3966
4031
  listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
3967
4032
  return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
3968
4033
  }
4034
+ /**
4035
+ * List product requests
4036
+ * @summary List product requests
4037
+ * @param {string} [nextToken] This is the pagination token
4038
+ * @param {*} [options] Override http request option.
4039
+ * @throws {RequiredError}
4040
+ * @memberof ProductApi
4041
+ */
4042
+ listUserProductRequests(nextToken, options) {
4043
+ return ProductApiFp(this.configuration).listUserProductRequests(nextToken, options).then((request) => request(this.axios, this.basePath));
4044
+ }
3969
4045
  /**
3970
4046
  * List existing products for the user
3971
4047
  * @summary List existing products
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.761-prerelease0",
3
+ "version": "0.0.764-prerelease0",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {