flexinet-api 0.0.401-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.401-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.401-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
@@ -476,6 +476,12 @@ export interface Client {
476
476
  * @memberof Client
477
477
  */
478
478
  'updatedAt': string;
479
+ /**
480
+ *
481
+ * @type {User}
482
+ * @memberof Client
483
+ */
484
+ 'manager'?: User;
479
485
  }
480
486
  /**
481
487
  *
@@ -501,6 +507,12 @@ export interface ClientCreationRequest {
501
507
  * @memberof ClientCreationRequest
502
508
  */
503
509
  'additionalProperties': { [key: string]: string; };
510
+ /**
511
+ *
512
+ * @type {string}
513
+ * @memberof ClientCreationRequest
514
+ */
515
+ 'managerId'?: string;
504
516
  }
505
517
  /**
506
518
  *
@@ -5961,6 +5973,65 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
5961
5973
 
5962
5974
 
5963
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
+
5964
6035
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5965
6036
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5966
6037
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6141,6 +6212,21 @@ export const ProductApiFp = function(configuration?: Configuration) {
6141
6212
  const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options);
6142
6213
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6143
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
+ },
6144
6230
  /**
6145
6231
  * Update a product by id
6146
6232
  * @summary Update a product by id
@@ -6272,6 +6358,20 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
6272
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> {
6273
6359
  return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
6274
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
+ },
6275
6375
  /**
6276
6376
  * Update a product by id
6277
6377
  * @summary Update a product by id
@@ -6422,6 +6522,22 @@ export class ProductApi extends BaseAPI {
6422
6522
  return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
6423
6523
  }
6424
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
+
6425
6541
  /**
6426
6542
  * Update a product by id
6427
6543
  * @summary Update a product by id
@@ -7731,125 +7847,6 @@ export class PromotionApi extends BaseAPI {
7731
7847
 
7732
7848
 
7733
7849
 
7734
- /**
7735
- * RewardApi - axios parameter creator
7736
- * @export
7737
- */
7738
- export const RewardApiAxiosParamCreator = function (configuration?: Configuration) {
7739
- return {
7740
- /**
7741
- * List existing products for the user
7742
- * @summary List existing products
7743
- * @param {ProductKind} [kind] The product kind
7744
- * @param {string} [nextToken] This is the pagination token
7745
- * @param {*} [options] Override http request option.
7746
- * @throws {RequiredError}
7747
- */
7748
- listUserProducts: async (kind?: ProductKind, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7749
- const localVarPath = `/users/products`;
7750
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7751
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7752
- let baseOptions;
7753
- if (configuration) {
7754
- baseOptions = configuration.baseOptions;
7755
- }
7756
-
7757
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7758
- const localVarHeaderParameter = {} as any;
7759
- const localVarQueryParameter = {} as any;
7760
-
7761
- // authentication jwt required
7762
- // http bearer authentication required
7763
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7764
-
7765
- if (kind !== undefined) {
7766
- localVarQueryParameter['kind'] = kind;
7767
- }
7768
-
7769
- if (nextToken !== undefined) {
7770
- localVarQueryParameter['nextToken'] = nextToken;
7771
- }
7772
-
7773
-
7774
-
7775
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7776
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7777
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7778
-
7779
- return {
7780
- url: toPathString(localVarUrlObj),
7781
- options: localVarRequestOptions,
7782
- };
7783
- },
7784
- }
7785
- };
7786
-
7787
- /**
7788
- * RewardApi - functional programming interface
7789
- * @export
7790
- */
7791
- export const RewardApiFp = function(configuration?: Configuration) {
7792
- const localVarAxiosParamCreator = RewardApiAxiosParamCreator(configuration)
7793
- return {
7794
- /**
7795
- * List existing products for the user
7796
- * @summary List existing products
7797
- * @param {ProductKind} [kind] The product kind
7798
- * @param {string} [nextToken] This is the pagination token
7799
- * @param {*} [options] Override http request option.
7800
- * @throws {RequiredError}
7801
- */
7802
- async listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
7803
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProducts(kind, nextToken, options);
7804
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7805
- },
7806
- }
7807
- };
7808
-
7809
- /**
7810
- * RewardApi - factory interface
7811
- * @export
7812
- */
7813
- export const RewardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7814
- const localVarFp = RewardApiFp(configuration)
7815
- return {
7816
- /**
7817
- * List existing products for the user
7818
- * @summary List existing products
7819
- * @param {ProductKind} [kind] The product kind
7820
- * @param {string} [nextToken] This is the pagination token
7821
- * @param {*} [options] Override http request option.
7822
- * @throws {RequiredError}
7823
- */
7824
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: any): AxiosPromise<ProductsResponse> {
7825
- return localVarFp.listUserProducts(kind, nextToken, options).then((request) => request(axios, basePath));
7826
- },
7827
- };
7828
- };
7829
-
7830
- /**
7831
- * RewardApi - object-oriented interface
7832
- * @export
7833
- * @class RewardApi
7834
- * @extends {BaseAPI}
7835
- */
7836
- export class RewardApi extends BaseAPI {
7837
- /**
7838
- * List existing products for the user
7839
- * @summary List existing products
7840
- * @param {ProductKind} [kind] The product kind
7841
- * @param {string} [nextToken] This is the pagination token
7842
- * @param {*} [options] Override http request option.
7843
- * @throws {RequiredError}
7844
- * @memberof RewardApi
7845
- */
7846
- public listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig) {
7847
- return RewardApiFp(this.configuration).listUserProducts(kind, nextToken, options).then((request) => request(this.axios, this.basePath));
7848
- }
7849
- }
7850
-
7851
-
7852
-
7853
7850
  /**
7854
7851
  * SegmentApi - axios parameter creator
7855
7852
  * @export
package/dist/api.d.ts CHANGED
@@ -444,6 +444,12 @@ export interface Client {
444
444
  * @memberof Client
445
445
  */
446
446
  'updatedAt': string;
447
+ /**
448
+ *
449
+ * @type {User}
450
+ * @memberof Client
451
+ */
452
+ 'manager'?: User;
447
453
  }
448
454
  /**
449
455
  *
@@ -471,6 +477,12 @@ export interface ClientCreationRequest {
471
477
  'additionalProperties': {
472
478
  [key: string]: string;
473
479
  };
480
+ /**
481
+ *
482
+ * @type {string}
483
+ * @memberof ClientCreationRequest
484
+ */
485
+ 'managerId'?: string;
474
486
  }
475
487
  /**
476
488
  *
@@ -4274,6 +4286,18 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
4274
4286
  * @throws {RequiredError}
4275
4287
  */
4276
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>;
4277
4301
  /**
4278
4302
  * Update a product by id
4279
4303
  * @summary Update a product by id
@@ -4378,6 +4402,18 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
4378
4402
  * @throws {RequiredError}
4379
4403
  */
4380
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>>;
4381
4417
  /**
4382
4418
  * Update a product by id
4383
4419
  * @summary Update a product by id
@@ -4482,6 +4518,18 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
4482
4518
  * @throws {RequiredError}
4483
4519
  */
4484
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>;
4485
4533
  /**
4486
4534
  * Update a product by id
4487
4535
  * @summary Update a product by id
@@ -4598,6 +4646,19 @@ export declare class ProductApi extends BaseAPI {
4598
4646
  * @memberof ProductApi
4599
4647
  */
4600
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>>;
4601
4662
  /**
4602
4663
  * Update a product by id
4603
4664
  * @summary Update a product by id
@@ -5237,69 +5298,6 @@ export declare class PromotionApi extends BaseAPI {
5237
5298
  */
5238
5299
  updatePromotion(id: string, updatePromotionRequest: UpdatePromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
5239
5300
  }
5240
- /**
5241
- * RewardApi - axios parameter creator
5242
- * @export
5243
- */
5244
- export declare const RewardApiAxiosParamCreator: (configuration?: Configuration) => {
5245
- /**
5246
- * List existing products for the user
5247
- * @summary List existing products
5248
- * @param {ProductKind} [kind] The product kind
5249
- * @param {string} [nextToken] This is the pagination token
5250
- * @param {*} [options] Override http request option.
5251
- * @throws {RequiredError}
5252
- */
5253
- listUserProducts: (kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5254
- };
5255
- /**
5256
- * RewardApi - functional programming interface
5257
- * @export
5258
- */
5259
- export declare const RewardApiFp: (configuration?: Configuration) => {
5260
- /**
5261
- * List existing products for the user
5262
- * @summary List existing products
5263
- * @param {ProductKind} [kind] The product kind
5264
- * @param {string} [nextToken] This is the pagination token
5265
- * @param {*} [options] Override http request option.
5266
- * @throws {RequiredError}
5267
- */
5268
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
5269
- };
5270
- /**
5271
- * RewardApi - factory interface
5272
- * @export
5273
- */
5274
- export declare const RewardApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5275
- /**
5276
- * List existing products for the user
5277
- * @summary List existing products
5278
- * @param {ProductKind} [kind] The product kind
5279
- * @param {string} [nextToken] This is the pagination token
5280
- * @param {*} [options] Override http request option.
5281
- * @throws {RequiredError}
5282
- */
5283
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: any): AxiosPromise<ProductsResponse>;
5284
- };
5285
- /**
5286
- * RewardApi - object-oriented interface
5287
- * @export
5288
- * @class RewardApi
5289
- * @extends {BaseAPI}
5290
- */
5291
- export declare class RewardApi extends BaseAPI {
5292
- /**
5293
- * List existing products for the user
5294
- * @summary List existing products
5295
- * @param {ProductKind} [kind] The product kind
5296
- * @param {string} [nextToken] This is the pagination token
5297
- * @param {*} [options] Override http request option.
5298
- * @throws {RequiredError}
5299
- * @memberof RewardApi
5300
- */
5301
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
5302
- }
5303
5301
  /**
5304
5302
  * SegmentApi - axios parameter creator
5305
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
@@ -444,6 +444,12 @@ export interface Client {
444
444
  * @memberof Client
445
445
  */
446
446
  'updatedAt': string;
447
+ /**
448
+ *
449
+ * @type {User}
450
+ * @memberof Client
451
+ */
452
+ 'manager'?: User;
447
453
  }
448
454
  /**
449
455
  *
@@ -471,6 +477,12 @@ export interface ClientCreationRequest {
471
477
  'additionalProperties': {
472
478
  [key: string]: string;
473
479
  };
480
+ /**
481
+ *
482
+ * @type {string}
483
+ * @memberof ClientCreationRequest
484
+ */
485
+ 'managerId'?: string;
474
486
  }
475
487
  /**
476
488
  *
@@ -4274,6 +4286,18 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
4274
4286
  * @throws {RequiredError}
4275
4287
  */
4276
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>;
4277
4301
  /**
4278
4302
  * Update a product by id
4279
4303
  * @summary Update a product by id
@@ -4378,6 +4402,18 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
4378
4402
  * @throws {RequiredError}
4379
4403
  */
4380
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>>;
4381
4417
  /**
4382
4418
  * Update a product by id
4383
4419
  * @summary Update a product by id
@@ -4482,6 +4518,18 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
4482
4518
  * @throws {RequiredError}
4483
4519
  */
4484
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>;
4485
4533
  /**
4486
4534
  * Update a product by id
4487
4535
  * @summary Update a product by id
@@ -4598,6 +4646,19 @@ export declare class ProductApi extends BaseAPI {
4598
4646
  * @memberof ProductApi
4599
4647
  */
4600
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>>;
4601
4662
  /**
4602
4663
  * Update a product by id
4603
4664
  * @summary Update a product by id
@@ -5237,69 +5298,6 @@ export declare class PromotionApi extends BaseAPI {
5237
5298
  */
5238
5299
  updatePromotion(id: string, updatePromotionRequest: UpdatePromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
5239
5300
  }
5240
- /**
5241
- * RewardApi - axios parameter creator
5242
- * @export
5243
- */
5244
- export declare const RewardApiAxiosParamCreator: (configuration?: Configuration) => {
5245
- /**
5246
- * List existing products for the user
5247
- * @summary List existing products
5248
- * @param {ProductKind} [kind] The product kind
5249
- * @param {string} [nextToken] This is the pagination token
5250
- * @param {*} [options] Override http request option.
5251
- * @throws {RequiredError}
5252
- */
5253
- listUserProducts: (kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5254
- };
5255
- /**
5256
- * RewardApi - functional programming interface
5257
- * @export
5258
- */
5259
- export declare const RewardApiFp: (configuration?: Configuration) => {
5260
- /**
5261
- * List existing products for the user
5262
- * @summary List existing products
5263
- * @param {ProductKind} [kind] The product kind
5264
- * @param {string} [nextToken] This is the pagination token
5265
- * @param {*} [options] Override http request option.
5266
- * @throws {RequiredError}
5267
- */
5268
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
5269
- };
5270
- /**
5271
- * RewardApi - factory interface
5272
- * @export
5273
- */
5274
- export declare const RewardApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5275
- /**
5276
- * List existing products for the user
5277
- * @summary List existing products
5278
- * @param {ProductKind} [kind] The product kind
5279
- * @param {string} [nextToken] This is the pagination token
5280
- * @param {*} [options] Override http request option.
5281
- * @throws {RequiredError}
5282
- */
5283
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: any): AxiosPromise<ProductsResponse>;
5284
- };
5285
- /**
5286
- * RewardApi - object-oriented interface
5287
- * @export
5288
- * @class RewardApi
5289
- * @extends {BaseAPI}
5290
- */
5291
- export declare class RewardApi extends BaseAPI {
5292
- /**
5293
- * List existing products for the user
5294
- * @summary List existing products
5295
- * @param {ProductKind} [kind] The product kind
5296
- * @param {string} [nextToken] This is the pagination token
5297
- * @param {*} [options] Override http request option.
5298
- * @throws {RequiredError}
5299
- * @memberof RewardApi
5300
- */
5301
- listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
5302
- }
5303
5301
  /**
5304
5302
  * SegmentApi - axios parameter creator
5305
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.401-prerelease0",
3
+ "version": "0.0.415-prerelease0",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {