flexinet-api 0.0.413-prerelease0 → 0.0.415-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.413-prerelease0
1
+ ## flexinet-api@0.0.415-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.413-prerelease0 --save
39
+ npm install flexinet-api@0.0.415-prerelease0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -5973,6 +5973,65 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
5973
5973
 
5974
5974
 
5975
5975
 
5976
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5977
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5978
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5979
+
5980
+ return {
5981
+ url: toPathString(localVarUrlObj),
5982
+ options: localVarRequestOptions,
5983
+ };
5984
+ },
5985
+ /**
5986
+ * List existing products for the user
5987
+ * @summary List existing products
5988
+ * @param {ProductKind} [kind] The product kind
5989
+ * @param {string} [nextToken] This is the pagination token
5990
+ * @param {string} [categoryID] The product category ID
5991
+ * @param {string} [search] search string
5992
+ * @param {ProductAvailability} [availability] The product availability
5993
+ * @param {*} [options] Override http request option.
5994
+ * @throws {RequiredError}
5995
+ */
5996
+ listUserProducts: async (kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5997
+ const localVarPath = `/users/products`;
5998
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5999
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6000
+ let baseOptions;
6001
+ if (configuration) {
6002
+ baseOptions = configuration.baseOptions;
6003
+ }
6004
+
6005
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6006
+ const localVarHeaderParameter = {} as any;
6007
+ const localVarQueryParameter = {} as any;
6008
+
6009
+ // authentication jwt required
6010
+ // http bearer authentication required
6011
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6012
+
6013
+ if (kind !== undefined) {
6014
+ localVarQueryParameter['kind'] = kind;
6015
+ }
6016
+
6017
+ if (nextToken !== undefined) {
6018
+ localVarQueryParameter['nextToken'] = nextToken;
6019
+ }
6020
+
6021
+ if (categoryID !== undefined) {
6022
+ localVarQueryParameter['categoryID'] = categoryID;
6023
+ }
6024
+
6025
+ if (search !== undefined) {
6026
+ localVarQueryParameter['search'] = search;
6027
+ }
6028
+
6029
+ if (availability !== undefined) {
6030
+ localVarQueryParameter['availability'] = availability;
6031
+ }
6032
+
6033
+
6034
+
5976
6035
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5977
6036
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5978
6037
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6153,6 +6212,21 @@ export const ProductApiFp = function(configuration?: Configuration) {
6153
6212
  const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options);
6154
6213
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6155
6214
  },
6215
+ /**
6216
+ * List existing products for the user
6217
+ * @summary List existing products
6218
+ * @param {ProductKind} [kind] The product kind
6219
+ * @param {string} [nextToken] This is the pagination token
6220
+ * @param {string} [categoryID] The product category ID
6221
+ * @param {string} [search] search string
6222
+ * @param {ProductAvailability} [availability] The product availability
6223
+ * @param {*} [options] Override http request option.
6224
+ * @throws {RequiredError}
6225
+ */
6226
+ async listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
6227
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, options);
6228
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6229
+ },
6156
6230
  /**
6157
6231
  * Update a product by id
6158
6232
  * @summary Update a product by id
@@ -6284,6 +6358,20 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
6284
6358
  listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse> {
6285
6359
  return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
6286
6360
  },
6361
+ /**
6362
+ * List existing products for the user
6363
+ * @summary List existing products
6364
+ * @param {ProductKind} [kind] The product kind
6365
+ * @param {string} [nextToken] This is the pagination token
6366
+ * @param {string} [categoryID] The product category ID
6367
+ * @param {string} [search] search string
6368
+ * @param {ProductAvailability} [availability] The product availability
6369
+ * @param {*} [options] Override http request option.
6370
+ * @throws {RequiredError}
6371
+ */
6372
+ listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: any): AxiosPromise<ProductsResponse> {
6373
+ return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, options).then((request) => request(axios, basePath));
6374
+ },
6287
6375
  /**
6288
6376
  * Update a product by id
6289
6377
  * @summary Update a product by id
@@ -6434,6 +6522,22 @@ export class ProductApi extends BaseAPI {
6434
6522
  return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
6435
6523
  }
6436
6524
 
6525
+ /**
6526
+ * List existing products for the user
6527
+ * @summary List existing products
6528
+ * @param {ProductKind} [kind] The product kind
6529
+ * @param {string} [nextToken] This is the pagination token
6530
+ * @param {string} [categoryID] The product category ID
6531
+ * @param {string} [search] search string
6532
+ * @param {ProductAvailability} [availability] The product availability
6533
+ * @param {*} [options] Override http request option.
6534
+ * @throws {RequiredError}
6535
+ * @memberof ProductApi
6536
+ */
6537
+ public listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig) {
6538
+ return ProductApiFp(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, options).then((request) => request(this.axios, this.basePath));
6539
+ }
6540
+
6437
6541
  /**
6438
6542
  * Update a product by id
6439
6543
  * @summary Update a product by id
@@ -7743,125 +7847,6 @@ export class PromotionApi extends BaseAPI {
7743
7847
 
7744
7848
 
7745
7849
 
7746
- /**
7747
- * RewardApi - axios parameter creator
7748
- * @export
7749
- */
7750
- export const RewardApiAxiosParamCreator = function (configuration?: Configuration) {
7751
- return {
7752
- /**
7753
- * List existing products for the user
7754
- * @summary List existing products
7755
- * @param {ProductKind} [kind] The product kind
7756
- * @param {string} [nextToken] This is the pagination token
7757
- * @param {*} [options] Override http request option.
7758
- * @throws {RequiredError}
7759
- */
7760
- listUserProducts: async (kind?: ProductKind, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7761
- const localVarPath = `/users/products`;
7762
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7763
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7764
- let baseOptions;
7765
- if (configuration) {
7766
- baseOptions = configuration.baseOptions;
7767
- }
7768
-
7769
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7770
- const localVarHeaderParameter = {} as any;
7771
- const localVarQueryParameter = {} as any;
7772
-
7773
- // authentication jwt required
7774
- // http bearer authentication required
7775
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7776
-
7777
- if (kind !== undefined) {
7778
- localVarQueryParameter['kind'] = kind;
7779
- }
7780
-
7781
- if (nextToken !== undefined) {
7782
- localVarQueryParameter['nextToken'] = nextToken;
7783
- }
7784
-
7785
-
7786
-
7787
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7788
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7789
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7790
-
7791
- return {
7792
- url: toPathString(localVarUrlObj),
7793
- options: localVarRequestOptions,
7794
- };
7795
- },
7796
- }
7797
- };
7798
-
7799
- /**
7800
- * RewardApi - functional programming interface
7801
- * @export
7802
- */
7803
- export const RewardApiFp = function(configuration?: Configuration) {
7804
- const localVarAxiosParamCreator = RewardApiAxiosParamCreator(configuration)
7805
- return {
7806
- /**
7807
- * List existing products for the user
7808
- * @summary List existing products
7809
- * @param {ProductKind} [kind] The product kind
7810
- * @param {string} [nextToken] This is the pagination token
7811
- * @param {*} [options] Override http request option.
7812
- * @throws {RequiredError}
7813
- */
7814
- async listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
7815
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProducts(kind, nextToken, options);
7816
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7817
- },
7818
- }
7819
- };
7820
-
7821
- /**
7822
- * RewardApi - factory interface
7823
- * @export
7824
- */
7825
- export const RewardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7826
- const localVarFp = RewardApiFp(configuration)
7827
- return {
7828
- /**
7829
- * List existing products for the user
7830
- * @summary List existing products
7831
- * @param {ProductKind} [kind] The product kind
7832
- * @param {string} [nextToken] This is the pagination token
7833
- * @param {*} [options] Override http request option.
7834
- * @throws {RequiredError}
7835
- */
7836
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: any): AxiosPromise<ProductsResponse> {
7837
- return localVarFp.listUserProducts(kind, nextToken, options).then((request) => request(axios, basePath));
7838
- },
7839
- };
7840
- };
7841
-
7842
- /**
7843
- * RewardApi - object-oriented interface
7844
- * @export
7845
- * @class RewardApi
7846
- * @extends {BaseAPI}
7847
- */
7848
- export class RewardApi extends BaseAPI {
7849
- /**
7850
- * List existing products for the user
7851
- * @summary List existing products
7852
- * @param {ProductKind} [kind] The product kind
7853
- * @param {string} [nextToken] This is the pagination token
7854
- * @param {*} [options] Override http request option.
7855
- * @throws {RequiredError}
7856
- * @memberof RewardApi
7857
- */
7858
- public listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig) {
7859
- return RewardApiFp(this.configuration).listUserProducts(kind, nextToken, options).then((request) => request(this.axios, this.basePath));
7860
- }
7861
- }
7862
-
7863
-
7864
-
7865
7850
  /**
7866
7851
  * SegmentApi - axios parameter creator
7867
7852
  * @export
package/dist/api.d.ts CHANGED
@@ -4286,6 +4286,18 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
4286
4286
  * @throws {RequiredError}
4287
4287
  */
4288
4288
  listProducts: (kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4289
+ /**
4290
+ * List existing products for the user
4291
+ * @summary List existing products
4292
+ * @param {ProductKind} [kind] The product kind
4293
+ * @param {string} [nextToken] This is the pagination token
4294
+ * @param {string} [categoryID] The product category ID
4295
+ * @param {string} [search] search string
4296
+ * @param {ProductAvailability} [availability] The product availability
4297
+ * @param {*} [options] Override http request option.
4298
+ * @throws {RequiredError}
4299
+ */
4300
+ listUserProducts: (kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4289
4301
  /**
4290
4302
  * Update a product by id
4291
4303
  * @summary Update a product by id
@@ -4390,6 +4402,18 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
4390
4402
  * @throws {RequiredError}
4391
4403
  */
4392
4404
  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>>;
4405
+ /**
4406
+ * List existing products for the user
4407
+ * @summary List existing products
4408
+ * @param {ProductKind} [kind] The product kind
4409
+ * @param {string} [nextToken] This is the pagination token
4410
+ * @param {string} [categoryID] The product category ID
4411
+ * @param {string} [search] search string
4412
+ * @param {ProductAvailability} [availability] The product availability
4413
+ * @param {*} [options] Override http request option.
4414
+ * @throws {RequiredError}
4415
+ */
4416
+ listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
4393
4417
  /**
4394
4418
  * Update a product by id
4395
4419
  * @summary Update a product by id
@@ -4494,6 +4518,18 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
4494
4518
  * @throws {RequiredError}
4495
4519
  */
4496
4520
  listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
4521
+ /**
4522
+ * List existing products for the user
4523
+ * @summary List existing products
4524
+ * @param {ProductKind} [kind] The product kind
4525
+ * @param {string} [nextToken] This is the pagination token
4526
+ * @param {string} [categoryID] The product category ID
4527
+ * @param {string} [search] search string
4528
+ * @param {ProductAvailability} [availability] The product availability
4529
+ * @param {*} [options] Override http request option.
4530
+ * @throws {RequiredError}
4531
+ */
4532
+ listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: any): AxiosPromise<ProductsResponse>;
4497
4533
  /**
4498
4534
  * Update a product by id
4499
4535
  * @summary Update a product by id
@@ -4610,6 +4646,19 @@ export declare class ProductApi extends BaseAPI {
4610
4646
  * @memberof ProductApi
4611
4647
  */
4612
4648
  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>>;
4649
+ /**
4650
+ * List existing products for the user
4651
+ * @summary List existing products
4652
+ * @param {ProductKind} [kind] The product kind
4653
+ * @param {string} [nextToken] This is the pagination token
4654
+ * @param {string} [categoryID] The product category ID
4655
+ * @param {string} [search] search string
4656
+ * @param {ProductAvailability} [availability] The product availability
4657
+ * @param {*} [options] Override http request option.
4658
+ * @throws {RequiredError}
4659
+ * @memberof ProductApi
4660
+ */
4661
+ listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
4613
4662
  /**
4614
4663
  * Update a product by id
4615
4664
  * @summary Update a product by id
@@ -5249,69 +5298,6 @@ export declare class PromotionApi extends BaseAPI {
5249
5298
  */
5250
5299
  updatePromotion(id: string, updatePromotionRequest: UpdatePromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
5251
5300
  }
5252
- /**
5253
- * RewardApi - axios parameter creator
5254
- * @export
5255
- */
5256
- export declare const RewardApiAxiosParamCreator: (configuration?: Configuration) => {
5257
- /**
5258
- * List existing products for the user
5259
- * @summary List existing products
5260
- * @param {ProductKind} [kind] The product kind
5261
- * @param {string} [nextToken] This is the pagination token
5262
- * @param {*} [options] Override http request option.
5263
- * @throws {RequiredError}
5264
- */
5265
- listUserProducts: (kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5266
- };
5267
- /**
5268
- * RewardApi - functional programming interface
5269
- * @export
5270
- */
5271
- export declare const RewardApiFp: (configuration?: Configuration) => {
5272
- /**
5273
- * List existing products for the user
5274
- * @summary List existing products
5275
- * @param {ProductKind} [kind] The product kind
5276
- * @param {string} [nextToken] This is the pagination token
5277
- * @param {*} [options] Override http request option.
5278
- * @throws {RequiredError}
5279
- */
5280
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
5281
- };
5282
- /**
5283
- * RewardApi - factory interface
5284
- * @export
5285
- */
5286
- export declare const RewardApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5287
- /**
5288
- * List existing products for the user
5289
- * @summary List existing products
5290
- * @param {ProductKind} [kind] The product kind
5291
- * @param {string} [nextToken] This is the pagination token
5292
- * @param {*} [options] Override http request option.
5293
- * @throws {RequiredError}
5294
- */
5295
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: any): AxiosPromise<ProductsResponse>;
5296
- };
5297
- /**
5298
- * RewardApi - object-oriented interface
5299
- * @export
5300
- * @class RewardApi
5301
- * @extends {BaseAPI}
5302
- */
5303
- export declare class RewardApi extends BaseAPI {
5304
- /**
5305
- * List existing products for the user
5306
- * @summary List existing products
5307
- * @param {ProductKind} [kind] The product kind
5308
- * @param {string} [nextToken] This is the pagination token
5309
- * @param {*} [options] Override http request option.
5310
- * @throws {RequiredError}
5311
- * @memberof RewardApi
5312
- */
5313
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
5314
- }
5315
5301
  /**
5316
5302
  * SegmentApi - axios parameter creator
5317
5303
  * @export
package/dist/api.js CHANGED
@@ -23,8 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.ProgressState = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = void 0;
26
- exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.RewardApi = exports.RewardApiFactory = exports.RewardApiFp = exports.RewardApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ListProgressIntervalEnum = 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 = void 0;
27
- exports.UserApi = exports.UserApiFactory = exports.UserApiFp = void 0;
26
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ListProgressIntervalEnum = 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 = void 0;
28
27
  const axios_1 = require("axios");
29
28
  // Some imports not used depending on template conditions
30
29
  // @ts-ignore
@@ -2888,6 +2887,54 @@ const ProductApiAxiosParamCreator = function (configuration) {
2888
2887
  options: localVarRequestOptions,
2889
2888
  };
2890
2889
  }),
2890
+ /**
2891
+ * List existing products for the user
2892
+ * @summary List existing products
2893
+ * @param {ProductKind} [kind] The product kind
2894
+ * @param {string} [nextToken] This is the pagination token
2895
+ * @param {string} [categoryID] The product category ID
2896
+ * @param {string} [search] search string
2897
+ * @param {ProductAvailability} [availability] The product availability
2898
+ * @param {*} [options] Override http request option.
2899
+ * @throws {RequiredError}
2900
+ */
2901
+ listUserProducts: (kind, nextToken, categoryID, search, availability, options = {}) => __awaiter(this, void 0, void 0, function* () {
2902
+ const localVarPath = `/users/products`;
2903
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2904
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2905
+ let baseOptions;
2906
+ if (configuration) {
2907
+ baseOptions = configuration.baseOptions;
2908
+ }
2909
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2910
+ const localVarHeaderParameter = {};
2911
+ const localVarQueryParameter = {};
2912
+ // authentication jwt required
2913
+ // http bearer authentication required
2914
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2915
+ if (kind !== undefined) {
2916
+ localVarQueryParameter['kind'] = kind;
2917
+ }
2918
+ if (nextToken !== undefined) {
2919
+ localVarQueryParameter['nextToken'] = nextToken;
2920
+ }
2921
+ if (categoryID !== undefined) {
2922
+ localVarQueryParameter['categoryID'] = categoryID;
2923
+ }
2924
+ if (search !== undefined) {
2925
+ localVarQueryParameter['search'] = search;
2926
+ }
2927
+ if (availability !== undefined) {
2928
+ localVarQueryParameter['availability'] = availability;
2929
+ }
2930
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2931
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2932
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2933
+ return {
2934
+ url: (0, common_1.toPathString)(localVarUrlObj),
2935
+ options: localVarRequestOptions,
2936
+ };
2937
+ }),
2891
2938
  /**
2892
2939
  * Update a product by id
2893
2940
  * @summary Update a product by id
@@ -3072,6 +3119,23 @@ const ProductApiFp = function (configuration) {
3072
3119
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3073
3120
  });
3074
3121
  },
3122
+ /**
3123
+ * List existing products for the user
3124
+ * @summary List existing products
3125
+ * @param {ProductKind} [kind] The product kind
3126
+ * @param {string} [nextToken] This is the pagination token
3127
+ * @param {string} [categoryID] The product category ID
3128
+ * @param {string} [search] search string
3129
+ * @param {ProductAvailability} [availability] The product availability
3130
+ * @param {*} [options] Override http request option.
3131
+ * @throws {RequiredError}
3132
+ */
3133
+ listUserProducts(kind, nextToken, categoryID, search, availability, options) {
3134
+ return __awaiter(this, void 0, void 0, function* () {
3135
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, options);
3136
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3137
+ });
3138
+ },
3075
3139
  /**
3076
3140
  * Update a product by id
3077
3141
  * @summary Update a product by id
@@ -3205,6 +3269,20 @@ const ProductApiFactory = function (configuration, basePath, axios) {
3205
3269
  listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
3206
3270
  return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
3207
3271
  },
3272
+ /**
3273
+ * List existing products for the user
3274
+ * @summary List existing products
3275
+ * @param {ProductKind} [kind] The product kind
3276
+ * @param {string} [nextToken] This is the pagination token
3277
+ * @param {string} [categoryID] The product category ID
3278
+ * @param {string} [search] search string
3279
+ * @param {ProductAvailability} [availability] The product availability
3280
+ * @param {*} [options] Override http request option.
3281
+ * @throws {RequiredError}
3282
+ */
3283
+ listUserProducts(kind, nextToken, categoryID, search, availability, options) {
3284
+ return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, options).then((request) => request(axios, basePath));
3285
+ },
3208
3286
  /**
3209
3287
  * Update a product by id
3210
3288
  * @summary Update a product by id
@@ -3345,6 +3423,21 @@ class ProductApi extends base_1.BaseAPI {
3345
3423
  listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
3346
3424
  return (0, exports.ProductApiFp)(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
3347
3425
  }
3426
+ /**
3427
+ * List existing products for the user
3428
+ * @summary List existing products
3429
+ * @param {ProductKind} [kind] The product kind
3430
+ * @param {string} [nextToken] This is the pagination token
3431
+ * @param {string} [categoryID] The product category ID
3432
+ * @param {string} [search] search string
3433
+ * @param {ProductAvailability} [availability] The product availability
3434
+ * @param {*} [options] Override http request option.
3435
+ * @throws {RequiredError}
3436
+ * @memberof ProductApi
3437
+ */
3438
+ listUserProducts(kind, nextToken, categoryID, search, availability, options) {
3439
+ return (0, exports.ProductApiFp)(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, options).then((request) => request(this.axios, this.basePath));
3440
+ }
3348
3441
  /**
3349
3442
  * Update a product by id
3350
3443
  * @summary Update a product by id
@@ -4555,117 +4648,6 @@ class PromotionApi extends base_1.BaseAPI {
4555
4648
  }
4556
4649
  }
4557
4650
  exports.PromotionApi = PromotionApi;
4558
- /**
4559
- * RewardApi - axios parameter creator
4560
- * @export
4561
- */
4562
- const RewardApiAxiosParamCreator = function (configuration) {
4563
- return {
4564
- /**
4565
- * List existing products for the user
4566
- * @summary List existing products
4567
- * @param {ProductKind} [kind] The product kind
4568
- * @param {string} [nextToken] This is the pagination token
4569
- * @param {*} [options] Override http request option.
4570
- * @throws {RequiredError}
4571
- */
4572
- listUserProducts: (kind, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
4573
- const localVarPath = `/users/products`;
4574
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4575
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4576
- let baseOptions;
4577
- if (configuration) {
4578
- baseOptions = configuration.baseOptions;
4579
- }
4580
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4581
- const localVarHeaderParameter = {};
4582
- const localVarQueryParameter = {};
4583
- // authentication jwt required
4584
- // http bearer authentication required
4585
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4586
- if (kind !== undefined) {
4587
- localVarQueryParameter['kind'] = kind;
4588
- }
4589
- if (nextToken !== undefined) {
4590
- localVarQueryParameter['nextToken'] = nextToken;
4591
- }
4592
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4593
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4594
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4595
- return {
4596
- url: (0, common_1.toPathString)(localVarUrlObj),
4597
- options: localVarRequestOptions,
4598
- };
4599
- }),
4600
- };
4601
- };
4602
- exports.RewardApiAxiosParamCreator = RewardApiAxiosParamCreator;
4603
- /**
4604
- * RewardApi - functional programming interface
4605
- * @export
4606
- */
4607
- const RewardApiFp = function (configuration) {
4608
- const localVarAxiosParamCreator = (0, exports.RewardApiAxiosParamCreator)(configuration);
4609
- return {
4610
- /**
4611
- * List existing products for the user
4612
- * @summary List existing products
4613
- * @param {ProductKind} [kind] The product kind
4614
- * @param {string} [nextToken] This is the pagination token
4615
- * @param {*} [options] Override http request option.
4616
- * @throws {RequiredError}
4617
- */
4618
- listUserProducts(kind, nextToken, options) {
4619
- return __awaiter(this, void 0, void 0, function* () {
4620
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProducts(kind, nextToken, options);
4621
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
4622
- });
4623
- },
4624
- };
4625
- };
4626
- exports.RewardApiFp = RewardApiFp;
4627
- /**
4628
- * RewardApi - factory interface
4629
- * @export
4630
- */
4631
- const RewardApiFactory = function (configuration, basePath, axios) {
4632
- const localVarFp = (0, exports.RewardApiFp)(configuration);
4633
- return {
4634
- /**
4635
- * List existing products for the user
4636
- * @summary List existing products
4637
- * @param {ProductKind} [kind] The product kind
4638
- * @param {string} [nextToken] This is the pagination token
4639
- * @param {*} [options] Override http request option.
4640
- * @throws {RequiredError}
4641
- */
4642
- listUserProducts(kind, nextToken, options) {
4643
- return localVarFp.listUserProducts(kind, nextToken, options).then((request) => request(axios, basePath));
4644
- },
4645
- };
4646
- };
4647
- exports.RewardApiFactory = RewardApiFactory;
4648
- /**
4649
- * RewardApi - object-oriented interface
4650
- * @export
4651
- * @class RewardApi
4652
- * @extends {BaseAPI}
4653
- */
4654
- class RewardApi extends base_1.BaseAPI {
4655
- /**
4656
- * List existing products for the user
4657
- * @summary List existing products
4658
- * @param {ProductKind} [kind] The product kind
4659
- * @param {string} [nextToken] This is the pagination token
4660
- * @param {*} [options] Override http request option.
4661
- * @throws {RequiredError}
4662
- * @memberof RewardApi
4663
- */
4664
- listUserProducts(kind, nextToken, options) {
4665
- return (0, exports.RewardApiFp)(this.configuration).listUserProducts(kind, nextToken, options).then((request) => request(this.axios, this.basePath));
4666
- }
4667
- }
4668
- exports.RewardApi = RewardApi;
4669
4651
  /**
4670
4652
  * SegmentApi - axios parameter creator
4671
4653
  * @export
package/dist/esm/api.d.ts CHANGED
@@ -4286,6 +4286,18 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
4286
4286
  * @throws {RequiredError}
4287
4287
  */
4288
4288
  listProducts: (kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4289
+ /**
4290
+ * List existing products for the user
4291
+ * @summary List existing products
4292
+ * @param {ProductKind} [kind] The product kind
4293
+ * @param {string} [nextToken] This is the pagination token
4294
+ * @param {string} [categoryID] The product category ID
4295
+ * @param {string} [search] search string
4296
+ * @param {ProductAvailability} [availability] The product availability
4297
+ * @param {*} [options] Override http request option.
4298
+ * @throws {RequiredError}
4299
+ */
4300
+ listUserProducts: (kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4289
4301
  /**
4290
4302
  * Update a product by id
4291
4303
  * @summary Update a product by id
@@ -4390,6 +4402,18 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
4390
4402
  * @throws {RequiredError}
4391
4403
  */
4392
4404
  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>>;
4405
+ /**
4406
+ * List existing products for the user
4407
+ * @summary List existing products
4408
+ * @param {ProductKind} [kind] The product kind
4409
+ * @param {string} [nextToken] This is the pagination token
4410
+ * @param {string} [categoryID] The product category ID
4411
+ * @param {string} [search] search string
4412
+ * @param {ProductAvailability} [availability] The product availability
4413
+ * @param {*} [options] Override http request option.
4414
+ * @throws {RequiredError}
4415
+ */
4416
+ listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
4393
4417
  /**
4394
4418
  * Update a product by id
4395
4419
  * @summary Update a product by id
@@ -4494,6 +4518,18 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
4494
4518
  * @throws {RequiredError}
4495
4519
  */
4496
4520
  listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
4521
+ /**
4522
+ * List existing products for the user
4523
+ * @summary List existing products
4524
+ * @param {ProductKind} [kind] The product kind
4525
+ * @param {string} [nextToken] This is the pagination token
4526
+ * @param {string} [categoryID] The product category ID
4527
+ * @param {string} [search] search string
4528
+ * @param {ProductAvailability} [availability] The product availability
4529
+ * @param {*} [options] Override http request option.
4530
+ * @throws {RequiredError}
4531
+ */
4532
+ listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: any): AxiosPromise<ProductsResponse>;
4497
4533
  /**
4498
4534
  * Update a product by id
4499
4535
  * @summary Update a product by id
@@ -4610,6 +4646,19 @@ export declare class ProductApi extends BaseAPI {
4610
4646
  * @memberof ProductApi
4611
4647
  */
4612
4648
  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>>;
4649
+ /**
4650
+ * List existing products for the user
4651
+ * @summary List existing products
4652
+ * @param {ProductKind} [kind] The product kind
4653
+ * @param {string} [nextToken] This is the pagination token
4654
+ * @param {string} [categoryID] The product category ID
4655
+ * @param {string} [search] search string
4656
+ * @param {ProductAvailability} [availability] The product availability
4657
+ * @param {*} [options] Override http request option.
4658
+ * @throws {RequiredError}
4659
+ * @memberof ProductApi
4660
+ */
4661
+ listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
4613
4662
  /**
4614
4663
  * Update a product by id
4615
4664
  * @summary Update a product by id
@@ -5249,69 +5298,6 @@ export declare class PromotionApi extends BaseAPI {
5249
5298
  */
5250
5299
  updatePromotion(id: string, updatePromotionRequest: UpdatePromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
5251
5300
  }
5252
- /**
5253
- * RewardApi - axios parameter creator
5254
- * @export
5255
- */
5256
- export declare const RewardApiAxiosParamCreator: (configuration?: Configuration) => {
5257
- /**
5258
- * List existing products for the user
5259
- * @summary List existing products
5260
- * @param {ProductKind} [kind] The product kind
5261
- * @param {string} [nextToken] This is the pagination token
5262
- * @param {*} [options] Override http request option.
5263
- * @throws {RequiredError}
5264
- */
5265
- listUserProducts: (kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5266
- };
5267
- /**
5268
- * RewardApi - functional programming interface
5269
- * @export
5270
- */
5271
- export declare const RewardApiFp: (configuration?: Configuration) => {
5272
- /**
5273
- * List existing products for the user
5274
- * @summary List existing products
5275
- * @param {ProductKind} [kind] The product kind
5276
- * @param {string} [nextToken] This is the pagination token
5277
- * @param {*} [options] Override http request option.
5278
- * @throws {RequiredError}
5279
- */
5280
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
5281
- };
5282
- /**
5283
- * RewardApi - factory interface
5284
- * @export
5285
- */
5286
- export declare const RewardApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5287
- /**
5288
- * List existing products for the user
5289
- * @summary List existing products
5290
- * @param {ProductKind} [kind] The product kind
5291
- * @param {string} [nextToken] This is the pagination token
5292
- * @param {*} [options] Override http request option.
5293
- * @throws {RequiredError}
5294
- */
5295
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: any): AxiosPromise<ProductsResponse>;
5296
- };
5297
- /**
5298
- * RewardApi - object-oriented interface
5299
- * @export
5300
- * @class RewardApi
5301
- * @extends {BaseAPI}
5302
- */
5303
- export declare class RewardApi extends BaseAPI {
5304
- /**
5305
- * List existing products for the user
5306
- * @summary List existing products
5307
- * @param {ProductKind} [kind] The product kind
5308
- * @param {string} [nextToken] This is the pagination token
5309
- * @param {*} [options] Override http request option.
5310
- * @throws {RequiredError}
5311
- * @memberof RewardApi
5312
- */
5313
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
5314
- }
5315
5301
  /**
5316
5302
  * SegmentApi - axios parameter creator
5317
5303
  * @export
package/dist/esm/api.js CHANGED
@@ -2843,6 +2843,54 @@ export const ProductApiAxiosParamCreator = function (configuration) {
2843
2843
  options: localVarRequestOptions,
2844
2844
  };
2845
2845
  }),
2846
+ /**
2847
+ * List existing products for the user
2848
+ * @summary List existing products
2849
+ * @param {ProductKind} [kind] The product kind
2850
+ * @param {string} [nextToken] This is the pagination token
2851
+ * @param {string} [categoryID] The product category ID
2852
+ * @param {string} [search] search string
2853
+ * @param {ProductAvailability} [availability] The product availability
2854
+ * @param {*} [options] Override http request option.
2855
+ * @throws {RequiredError}
2856
+ */
2857
+ listUserProducts: (kind, nextToken, categoryID, search, availability, options = {}) => __awaiter(this, void 0, void 0, function* () {
2858
+ const localVarPath = `/users/products`;
2859
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2860
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2861
+ let baseOptions;
2862
+ if (configuration) {
2863
+ baseOptions = configuration.baseOptions;
2864
+ }
2865
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2866
+ const localVarHeaderParameter = {};
2867
+ const localVarQueryParameter = {};
2868
+ // authentication jwt required
2869
+ // http bearer authentication required
2870
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2871
+ if (kind !== undefined) {
2872
+ localVarQueryParameter['kind'] = kind;
2873
+ }
2874
+ if (nextToken !== undefined) {
2875
+ localVarQueryParameter['nextToken'] = nextToken;
2876
+ }
2877
+ if (categoryID !== undefined) {
2878
+ localVarQueryParameter['categoryID'] = categoryID;
2879
+ }
2880
+ if (search !== undefined) {
2881
+ localVarQueryParameter['search'] = search;
2882
+ }
2883
+ if (availability !== undefined) {
2884
+ localVarQueryParameter['availability'] = availability;
2885
+ }
2886
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2887
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2888
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2889
+ return {
2890
+ url: toPathString(localVarUrlObj),
2891
+ options: localVarRequestOptions,
2892
+ };
2893
+ }),
2846
2894
  /**
2847
2895
  * Update a product by id
2848
2896
  * @summary Update a product by id
@@ -3026,6 +3074,23 @@ export const ProductApiFp = function (configuration) {
3026
3074
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3027
3075
  });
3028
3076
  },
3077
+ /**
3078
+ * List existing products for the user
3079
+ * @summary List existing products
3080
+ * @param {ProductKind} [kind] The product kind
3081
+ * @param {string} [nextToken] This is the pagination token
3082
+ * @param {string} [categoryID] The product category ID
3083
+ * @param {string} [search] search string
3084
+ * @param {ProductAvailability} [availability] The product availability
3085
+ * @param {*} [options] Override http request option.
3086
+ * @throws {RequiredError}
3087
+ */
3088
+ listUserProducts(kind, nextToken, categoryID, search, availability, options) {
3089
+ return __awaiter(this, void 0, void 0, function* () {
3090
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, options);
3091
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3092
+ });
3093
+ },
3029
3094
  /**
3030
3095
  * Update a product by id
3031
3096
  * @summary Update a product by id
@@ -3158,6 +3223,20 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
3158
3223
  listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
3159
3224
  return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
3160
3225
  },
3226
+ /**
3227
+ * List existing products for the user
3228
+ * @summary List existing products
3229
+ * @param {ProductKind} [kind] The product kind
3230
+ * @param {string} [nextToken] This is the pagination token
3231
+ * @param {string} [categoryID] The product category ID
3232
+ * @param {string} [search] search string
3233
+ * @param {ProductAvailability} [availability] The product availability
3234
+ * @param {*} [options] Override http request option.
3235
+ * @throws {RequiredError}
3236
+ */
3237
+ listUserProducts(kind, nextToken, categoryID, search, availability, options) {
3238
+ return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, options).then((request) => request(axios, basePath));
3239
+ },
3161
3240
  /**
3162
3241
  * Update a product by id
3163
3242
  * @summary Update a product by id
@@ -3297,6 +3376,21 @@ export class ProductApi extends BaseAPI {
3297
3376
  listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
3298
3377
  return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
3299
3378
  }
3379
+ /**
3380
+ * List existing products for the user
3381
+ * @summary List existing products
3382
+ * @param {ProductKind} [kind] The product kind
3383
+ * @param {string} [nextToken] This is the pagination token
3384
+ * @param {string} [categoryID] The product category ID
3385
+ * @param {string} [search] search string
3386
+ * @param {ProductAvailability} [availability] The product availability
3387
+ * @param {*} [options] Override http request option.
3388
+ * @throws {RequiredError}
3389
+ * @memberof ProductApi
3390
+ */
3391
+ listUserProducts(kind, nextToken, categoryID, search, availability, options) {
3392
+ return ProductApiFp(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, options).then((request) => request(this.axios, this.basePath));
3393
+ }
3300
3394
  /**
3301
3395
  * Update a product by id
3302
3396
  * @summary Update a product by id
@@ -4498,113 +4592,6 @@ export class PromotionApi extends BaseAPI {
4498
4592
  return PromotionApiFp(this.configuration).updatePromotion(id, updatePromotionRequest, options).then((request) => request(this.axios, this.basePath));
4499
4593
  }
4500
4594
  }
4501
- /**
4502
- * RewardApi - axios parameter creator
4503
- * @export
4504
- */
4505
- export const RewardApiAxiosParamCreator = function (configuration) {
4506
- return {
4507
- /**
4508
- * List existing products for the user
4509
- * @summary List existing products
4510
- * @param {ProductKind} [kind] The product kind
4511
- * @param {string} [nextToken] This is the pagination token
4512
- * @param {*} [options] Override http request option.
4513
- * @throws {RequiredError}
4514
- */
4515
- listUserProducts: (kind, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
4516
- const localVarPath = `/users/products`;
4517
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4518
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4519
- let baseOptions;
4520
- if (configuration) {
4521
- baseOptions = configuration.baseOptions;
4522
- }
4523
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4524
- const localVarHeaderParameter = {};
4525
- const localVarQueryParameter = {};
4526
- // authentication jwt required
4527
- // http bearer authentication required
4528
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4529
- if (kind !== undefined) {
4530
- localVarQueryParameter['kind'] = kind;
4531
- }
4532
- if (nextToken !== undefined) {
4533
- localVarQueryParameter['nextToken'] = nextToken;
4534
- }
4535
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4536
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4537
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4538
- return {
4539
- url: toPathString(localVarUrlObj),
4540
- options: localVarRequestOptions,
4541
- };
4542
- }),
4543
- };
4544
- };
4545
- /**
4546
- * RewardApi - functional programming interface
4547
- * @export
4548
- */
4549
- export const RewardApiFp = function (configuration) {
4550
- const localVarAxiosParamCreator = RewardApiAxiosParamCreator(configuration);
4551
- return {
4552
- /**
4553
- * List existing products for the user
4554
- * @summary List existing products
4555
- * @param {ProductKind} [kind] The product kind
4556
- * @param {string} [nextToken] This is the pagination token
4557
- * @param {*} [options] Override http request option.
4558
- * @throws {RequiredError}
4559
- */
4560
- listUserProducts(kind, nextToken, options) {
4561
- return __awaiter(this, void 0, void 0, function* () {
4562
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProducts(kind, nextToken, options);
4563
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4564
- });
4565
- },
4566
- };
4567
- };
4568
- /**
4569
- * RewardApi - factory interface
4570
- * @export
4571
- */
4572
- export const RewardApiFactory = function (configuration, basePath, axios) {
4573
- const localVarFp = RewardApiFp(configuration);
4574
- return {
4575
- /**
4576
- * List existing products for the user
4577
- * @summary List existing products
4578
- * @param {ProductKind} [kind] The product kind
4579
- * @param {string} [nextToken] This is the pagination token
4580
- * @param {*} [options] Override http request option.
4581
- * @throws {RequiredError}
4582
- */
4583
- listUserProducts(kind, nextToken, options) {
4584
- return localVarFp.listUserProducts(kind, nextToken, options).then((request) => request(axios, basePath));
4585
- },
4586
- };
4587
- };
4588
- /**
4589
- * RewardApi - object-oriented interface
4590
- * @export
4591
- * @class RewardApi
4592
- * @extends {BaseAPI}
4593
- */
4594
- export class RewardApi extends BaseAPI {
4595
- /**
4596
- * List existing products for the user
4597
- * @summary List existing products
4598
- * @param {ProductKind} [kind] The product kind
4599
- * @param {string} [nextToken] This is the pagination token
4600
- * @param {*} [options] Override http request option.
4601
- * @throws {RequiredError}
4602
- * @memberof RewardApi
4603
- */
4604
- listUserProducts(kind, nextToken, options) {
4605
- return RewardApiFp(this.configuration).listUserProducts(kind, nextToken, options).then((request) => request(this.axios, this.basePath));
4606
- }
4607
- }
4608
4595
  /**
4609
4596
  * SegmentApi - axios parameter creator
4610
4597
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.413-prerelease0",
3
+ "version": "0.0.415-prerelease0",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {