flexinet-api 0.0.274-prerelease0 → 0.0.318-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/api.ts CHANGED
@@ -1158,6 +1158,19 @@ export const ProductAvailability = {
1158
1158
  export type ProductAvailability = typeof ProductAvailability[keyof typeof ProductAvailability];
1159
1159
 
1160
1160
 
1161
+ /**
1162
+ *
1163
+ * @export
1164
+ * @interface ProductBulkCreationRequest
1165
+ */
1166
+ export interface ProductBulkCreationRequest {
1167
+ /**
1168
+ *
1169
+ * @type {Array<ProductCreationRequest>}
1170
+ * @memberof ProductBulkCreationRequest
1171
+ */
1172
+ 'products': Array<ProductCreationRequest>;
1173
+ }
1161
1174
  /**
1162
1175
  *
1163
1176
  * @export
@@ -2698,6 +2711,12 @@ export interface User {
2698
2711
  * @memberof User
2699
2712
  */
2700
2713
  'updatedAt': string;
2714
+ /**
2715
+ *
2716
+ * @type {User}
2717
+ * @memberof User
2718
+ */
2719
+ 'manager'?: User;
2701
2720
  /**
2702
2721
  *
2703
2722
  * @type {UserDetails}
@@ -2736,6 +2755,111 @@ export interface UserListResponse {
2736
2755
  */
2737
2756
  'hasMore': boolean;
2738
2757
  }
2758
+ /**
2759
+ *
2760
+ * @export
2761
+ * @interface UserPromotion
2762
+ */
2763
+ export interface UserPromotion {
2764
+ /**
2765
+ *
2766
+ * @type {string}
2767
+ * @memberof UserPromotion
2768
+ */
2769
+ 'id': string;
2770
+ /**
2771
+ *
2772
+ * @type {string}
2773
+ * @memberof UserPromotion
2774
+ */
2775
+ 'name': string;
2776
+ /**
2777
+ *
2778
+ * @type {string}
2779
+ * @memberof UserPromotion
2780
+ */
2781
+ 'description': string;
2782
+ /**
2783
+ *
2784
+ * @type {Target}
2785
+ * @memberof UserPromotion
2786
+ */
2787
+ 'target': Target;
2788
+ /**
2789
+ *
2790
+ * @type {boolean}
2791
+ * @memberof UserPromotion
2792
+ */
2793
+ 'repeatable': boolean;
2794
+ /**
2795
+ *
2796
+ * @type {number}
2797
+ * @memberof UserPromotion
2798
+ */
2799
+ 'repeatCount'?: number;
2800
+ /**
2801
+ *
2802
+ * @type {Array<RuleGroup>}
2803
+ * @memberof UserPromotion
2804
+ */
2805
+ 'ruleGroups': Array<RuleGroup>;
2806
+ /**
2807
+ *
2808
+ * @type {string}
2809
+ * @memberof UserPromotion
2810
+ */
2811
+ 'brandLogoURL': string;
2812
+ /**
2813
+ *
2814
+ * @type {string}
2815
+ * @memberof UserPromotion
2816
+ */
2817
+ 'imageURL': string;
2818
+ /**
2819
+ *
2820
+ * @type {string}
2821
+ * @memberof UserPromotion
2822
+ */
2823
+ 'startAt': string;
2824
+ /**
2825
+ *
2826
+ * @type {string}
2827
+ * @memberof UserPromotion
2828
+ */
2829
+ 'endAt': string;
2830
+ /**
2831
+ *
2832
+ * @type {{ [key: string]: string; }}
2833
+ * @memberof UserPromotion
2834
+ */
2835
+ 'tags': { [key: string]: string; };
2836
+ /**
2837
+ *
2838
+ * @type {Repetition}
2839
+ * @memberof UserPromotion
2840
+ */
2841
+ 'repetition'?: Repetition;
2842
+ /**
2843
+ *
2844
+ * @type {string}
2845
+ * @memberof UserPromotion
2846
+ */
2847
+ 'createdAt': string;
2848
+ /**
2849
+ *
2850
+ * @type {string}
2851
+ * @memberof UserPromotion
2852
+ */
2853
+ 'updatedAt'?: string;
2854
+ /**
2855
+ *
2856
+ * @type {Array<Period>}
2857
+ * @memberof UserPromotion
2858
+ */
2859
+ 'periods'?: Array<Period>;
2860
+ }
2861
+
2862
+
2739
2863
  /**
2740
2864
  *
2741
2865
  * @export
@@ -3061,6 +3185,40 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
3061
3185
 
3062
3186
 
3063
3187
 
3188
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3189
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3190
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3191
+
3192
+ return {
3193
+ url: toPathString(localVarUrlObj),
3194
+ options: localVarRequestOptions,
3195
+ };
3196
+ },
3197
+ /**
3198
+ * Get balance for the user
3199
+ * @summary Get balance
3200
+ * @param {*} [options] Override http request option.
3201
+ * @throws {RequiredError}
3202
+ */
3203
+ getUserBalance: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3204
+ const localVarPath = `/users/balances`;
3205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3206
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3207
+ let baseOptions;
3208
+ if (configuration) {
3209
+ baseOptions = configuration.baseOptions;
3210
+ }
3211
+
3212
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3213
+ const localVarHeaderParameter = {} as any;
3214
+ const localVarQueryParameter = {} as any;
3215
+
3216
+ // authentication jwt required
3217
+ // http bearer authentication required
3218
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3219
+
3220
+
3221
+
3064
3222
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3065
3223
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3066
3224
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3168,6 +3326,16 @@ export const BalanceApiFp = function(configuration?: Configuration) {
3168
3326
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBalance(beneficiaryValue, kind, options);
3169
3327
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3170
3328
  },
3329
+ /**
3330
+ * Get balance for the user
3331
+ * @summary Get balance
3332
+ * @param {*} [options] Override http request option.
3333
+ * @throws {RequiredError}
3334
+ */
3335
+ async getUserBalance(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Balance>> {
3336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBalance(options);
3337
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3338
+ },
3171
3339
  /**
3172
3340
  * Transfer balance
3173
3341
  * @summary Transfer balance
@@ -3213,6 +3381,15 @@ export const BalanceApiFactory = function (configuration?: Configuration, basePa
3213
3381
  getBalance(beneficiaryValue: string, kind: BeneficiaryKind, options?: any): AxiosPromise<Balance> {
3214
3382
  return localVarFp.getBalance(beneficiaryValue, kind, options).then((request) => request(axios, basePath));
3215
3383
  },
3384
+ /**
3385
+ * Get balance for the user
3386
+ * @summary Get balance
3387
+ * @param {*} [options] Override http request option.
3388
+ * @throws {RequiredError}
3389
+ */
3390
+ getUserBalance(options?: any): AxiosPromise<Balance> {
3391
+ return localVarFp.getUserBalance(options).then((request) => request(axios, basePath));
3392
+ },
3216
3393
  /**
3217
3394
  * Transfer balance
3218
3395
  * @summary Transfer balance
@@ -3258,6 +3435,17 @@ export class BalanceApi extends BaseAPI {
3258
3435
  return BalanceApiFp(this.configuration).getBalance(beneficiaryValue, kind, options).then((request) => request(this.axios, this.basePath));
3259
3436
  }
3260
3437
 
3438
+ /**
3439
+ * Get balance for the user
3440
+ * @summary Get balance
3441
+ * @param {*} [options] Override http request option.
3442
+ * @throws {RequiredError}
3443
+ * @memberof BalanceApi
3444
+ */
3445
+ public getUserBalance(options?: AxiosRequestConfig) {
3446
+ return BalanceApiFp(this.configuration).getUserBalance(options).then((request) => request(this.axios, this.basePath));
3447
+ }
3448
+
3261
3449
  /**
3262
3450
  * Transfer balance
3263
3451
  * @summary Transfer balance
@@ -4405,7 +4593,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
4405
4593
  bulkMarkNotificationAsRead: async (bulkNotificationsReadRequest: BulkNotificationsReadRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4406
4594
  // verify required parameter 'bulkNotificationsReadRequest' is not null or undefined
4407
4595
  assertParamExists('bulkMarkNotificationAsRead', 'bulkNotificationsReadRequest', bulkNotificationsReadRequest)
4408
- const localVarPath = `/notifications/read`;
4596
+ const localVarPath = `/users/notifications/read`;
4409
4597
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4410
4598
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4411
4599
  let baseOptions;
@@ -4441,7 +4629,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
4441
4629
  getNotification: async (notificationID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4442
4630
  // verify required parameter 'notificationID' is not null or undefined
4443
4631
  assertParamExists('getNotification', 'notificationID', notificationID)
4444
- const localVarPath = `/notifications/{notificationID}`
4632
+ const localVarPath = `/users/notifications/{notificationID}`
4445
4633
  .replace(`{${"notificationID"}}`, encodeURIComponent(String(notificationID)));
4446
4634
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4447
4635
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4474,7 +4662,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
4474
4662
  * @throws {RequiredError}
4475
4663
  */
4476
4664
  listNotifications: async (nextToken?: string, status?: NotificationStatus, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4477
- const localVarPath = `/notifications`;
4665
+ const localVarPath = `/users/notifications`;
4478
4666
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4479
4667
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4480
4668
  let baseOptions;
@@ -4515,7 +4703,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
4515
4703
  markNotificationAsRead: async (notificationID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4516
4704
  // verify required parameter 'notificationID' is not null or undefined
4517
4705
  assertParamExists('markNotificationAsRead', 'notificationID', notificationID)
4518
- const localVarPath = `/notifications/{notificationID}`
4706
+ const localVarPath = `/users/notifications/{notificationID}`
4519
4707
  .replace(`{${"notificationID"}}`, encodeURIComponent(String(notificationID)));
4520
4708
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4521
4709
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5040,6 +5228,44 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
5040
5228
  options: localVarRequestOptions,
5041
5229
  };
5042
5230
  },
5231
+ /**
5232
+ * Get a product by id
5233
+ * @summary Get a product by id
5234
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
5235
+ * @param {*} [options] Override http request option.
5236
+ * @throws {RequiredError}
5237
+ */
5238
+ bulkCreateProducts: async (productBulkCreationRequest?: ProductBulkCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5239
+ const localVarPath = `/products/bulk`;
5240
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5241
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5242
+ let baseOptions;
5243
+ if (configuration) {
5244
+ baseOptions = configuration.baseOptions;
5245
+ }
5246
+
5247
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5248
+ const localVarHeaderParameter = {} as any;
5249
+ const localVarQueryParameter = {} as any;
5250
+
5251
+ // authentication jwt required
5252
+ // http bearer authentication required
5253
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5254
+
5255
+
5256
+
5257
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5258
+
5259
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5260
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5261
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5262
+ localVarRequestOptions.data = serializeDataIfNeeded(productBulkCreationRequest, localVarRequestOptions, configuration)
5263
+
5264
+ return {
5265
+ url: toPathString(localVarUrlObj),
5266
+ options: localVarRequestOptions,
5267
+ };
5268
+ },
5043
5269
  /**
5044
5270
  * Create a new product
5045
5271
  * @summary Create a new product
@@ -5086,7 +5312,7 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
5086
5312
  * @throws {RequiredError}
5087
5313
  */
5088
5314
  createProductRequest: async (productRequestCreationRequest?: ProductRequestCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5089
- const localVarPath = `/products/requests`;
5315
+ const localVarPath = `/users/products/requests`;
5090
5316
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5091
5317
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5092
5318
  let baseOptions;
@@ -5213,6 +5439,44 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
5213
5439
 
5214
5440
 
5215
5441
 
5442
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5443
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5444
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5445
+
5446
+ return {
5447
+ url: toPathString(localVarUrlObj),
5448
+ options: localVarRequestOptions,
5449
+ };
5450
+ },
5451
+ /**
5452
+ * Get a product by id, if user is allowed to see it
5453
+ * @summary Get a product by id
5454
+ * @param {string} id The product id
5455
+ * @param {*} [options] Override http request option.
5456
+ * @throws {RequiredError}
5457
+ */
5458
+ getUserProductById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5459
+ // verify required parameter 'id' is not null or undefined
5460
+ assertParamExists('getUserProductById', 'id', id)
5461
+ const localVarPath = `/users/products/{id}`
5462
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
5463
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5464
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5465
+ let baseOptions;
5466
+ if (configuration) {
5467
+ baseOptions = configuration.baseOptions;
5468
+ }
5469
+
5470
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5471
+ const localVarHeaderParameter = {} as any;
5472
+ const localVarQueryParameter = {} as any;
5473
+
5474
+ // authentication jwt required
5475
+ // http bearer authentication required
5476
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5477
+
5478
+
5479
+
5216
5480
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5217
5481
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5218
5482
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -5409,6 +5673,17 @@ export const ProductApiFp = function(configuration?: Configuration) {
5409
5673
  const localVarAxiosArgs = await localVarAxiosParamCreator.approveProduct(id, productRequestApprovalRequest, options);
5410
5674
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5411
5675
  },
5676
+ /**
5677
+ * Get a product by id
5678
+ * @summary Get a product by id
5679
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
5680
+ * @param {*} [options] Override http request option.
5681
+ * @throws {RequiredError}
5682
+ */
5683
+ async bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Product>>> {
5684
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateProducts(productBulkCreationRequest, options);
5685
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5686
+ },
5412
5687
  /**
5413
5688
  * Create a new product
5414
5689
  * @summary Create a new product
@@ -5463,6 +5738,17 @@ export const ProductApiFp = function(configuration?: Configuration) {
5463
5738
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProductRequestById(id, options);
5464
5739
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5465
5740
  },
5741
+ /**
5742
+ * Get a product by id, if user is allowed to see it
5743
+ * @summary Get a product by id
5744
+ * @param {string} id The product id
5745
+ * @param {*} [options] Override http request option.
5746
+ * @throws {RequiredError}
5747
+ */
5748
+ async getUserProductById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Product>> {
5749
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserProductById(id, options);
5750
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5751
+ },
5466
5752
  /**
5467
5753
  * List existing product requests
5468
5754
  * @summary List existing product requests
@@ -5527,6 +5813,16 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
5527
5813
  approveProduct(id: string, productRequestApprovalRequest?: ProductRequestApprovalRequest, options?: any): AxiosPromise<ProductRequestApprovalResponse> {
5528
5814
  return localVarFp.approveProduct(id, productRequestApprovalRequest, options).then((request) => request(axios, basePath));
5529
5815
  },
5816
+ /**
5817
+ * Get a product by id
5818
+ * @summary Get a product by id
5819
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
5820
+ * @param {*} [options] Override http request option.
5821
+ * @throws {RequiredError}
5822
+ */
5823
+ bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: any): AxiosPromise<Array<Product>> {
5824
+ return localVarFp.bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(axios, basePath));
5825
+ },
5530
5826
  /**
5531
5827
  * Create a new product
5532
5828
  * @summary Create a new product
@@ -5576,6 +5872,16 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
5576
5872
  getProductRequestById(id: string, options?: any): AxiosPromise<ProductRequestApprovalResponse> {
5577
5873
  return localVarFp.getProductRequestById(id, options).then((request) => request(axios, basePath));
5578
5874
  },
5875
+ /**
5876
+ * Get a product by id, if user is allowed to see it
5877
+ * @summary Get a product by id
5878
+ * @param {string} id The product id
5879
+ * @param {*} [options] Override http request option.
5880
+ * @throws {RequiredError}
5881
+ */
5882
+ getUserProductById(id: string, options?: any): AxiosPromise<Product> {
5883
+ return localVarFp.getUserProductById(id, options).then((request) => request(axios, basePath));
5884
+ },
5579
5885
  /**
5580
5886
  * List existing product requests
5581
5887
  * @summary List existing product requests
@@ -5640,9 +5946,21 @@ export class ProductApi extends BaseAPI {
5640
5946
  }
5641
5947
 
5642
5948
  /**
5643
- * Create a new product
5644
- * @summary Create a new product
5645
- * @param {ProductCreationRequest | null} [productCreationRequest]
5949
+ * Get a product by id
5950
+ * @summary Get a product by id
5951
+ * @param {ProductBulkCreationRequest} [productBulkCreationRequest]
5952
+ * @param {*} [options] Override http request option.
5953
+ * @throws {RequiredError}
5954
+ * @memberof ProductApi
5955
+ */
5956
+ public bulkCreateProducts(productBulkCreationRequest?: ProductBulkCreationRequest, options?: AxiosRequestConfig) {
5957
+ return ProductApiFp(this.configuration).bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
5958
+ }
5959
+
5960
+ /**
5961
+ * Create a new product
5962
+ * @summary Create a new product
5963
+ * @param {ProductCreationRequest | null} [productCreationRequest]
5646
5964
  * @param {*} [options] Override http request option.
5647
5965
  * @throws {RequiredError}
5648
5966
  * @memberof ProductApi
@@ -5698,6 +6016,18 @@ export class ProductApi extends BaseAPI {
5698
6016
  return ProductApiFp(this.configuration).getProductRequestById(id, options).then((request) => request(this.axios, this.basePath));
5699
6017
  }
5700
6018
 
6019
+ /**
6020
+ * Get a product by id, if user is allowed to see it
6021
+ * @summary Get a product by id
6022
+ * @param {string} id The product id
6023
+ * @param {*} [options] Override http request option.
6024
+ * @throws {RequiredError}
6025
+ * @memberof ProductApi
6026
+ */
6027
+ public getUserProductById(id: string, options?: AxiosRequestConfig) {
6028
+ return ProductApiFp(this.configuration).getUserProductById(id, options).then((request) => request(this.axios, this.basePath));
6029
+ }
6030
+
5701
6031
  /**
5702
6032
  * List existing product requests
5703
6033
  * @summary List existing product requests
@@ -5807,6 +6137,54 @@ export const ProgressApiAxiosParamCreator = function (configuration?: Configurat
5807
6137
 
5808
6138
 
5809
6139
 
6140
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6141
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6142
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6143
+
6144
+ return {
6145
+ url: toPathString(localVarUrlObj),
6146
+ options: localVarRequestOptions,
6147
+ };
6148
+ },
6149
+ /**
6150
+ * List users progress of a promotion
6151
+ * @summary List promotion\'s progress
6152
+ * @param {string} id Promotion ID
6153
+ * @param {number} [periodID] Period ID
6154
+ * @param {string} [nextToken] This is the pagination token
6155
+ * @param {*} [options] Override http request option.
6156
+ * @throws {RequiredError}
6157
+ */
6158
+ listUserProgress: async (id: string, periodID?: number, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6159
+ // verify required parameter 'id' is not null or undefined
6160
+ assertParamExists('listUserProgress', 'id', id)
6161
+ const localVarPath = `/users/promotions/{id}/progress`
6162
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6163
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6164
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6165
+ let baseOptions;
6166
+ if (configuration) {
6167
+ baseOptions = configuration.baseOptions;
6168
+ }
6169
+
6170
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6171
+ const localVarHeaderParameter = {} as any;
6172
+ const localVarQueryParameter = {} as any;
6173
+
6174
+ // authentication jwt required
6175
+ // http bearer authentication required
6176
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6177
+
6178
+ if (periodID !== undefined) {
6179
+ localVarQueryParameter['periodID'] = periodID;
6180
+ }
6181
+
6182
+ if (nextToken !== undefined) {
6183
+ localVarQueryParameter['nextToken'] = nextToken;
6184
+ }
6185
+
6186
+
6187
+
5810
6188
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5811
6189
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5812
6190
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -5842,6 +6220,19 @@ export const ProgressApiFp = function(configuration?: Configuration) {
5842
6220
  const localVarAxiosArgs = await localVarAxiosParamCreator.listProgress(id, periodID, userID, clientID, interval, nextToken, options);
5843
6221
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5844
6222
  },
6223
+ /**
6224
+ * List users progress of a promotion
6225
+ * @summary List promotion\'s progress
6226
+ * @param {string} id Promotion ID
6227
+ * @param {number} [periodID] Period ID
6228
+ * @param {string} [nextToken] This is the pagination token
6229
+ * @param {*} [options] Override http request option.
6230
+ * @throws {RequiredError}
6231
+ */
6232
+ async listUserProgress(id: string, periodID?: number, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProgressResponse>> {
6233
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProgress(id, periodID, nextToken, options);
6234
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6235
+ },
5845
6236
  }
5846
6237
  };
5847
6238
 
@@ -5867,6 +6258,18 @@ export const ProgressApiFactory = function (configuration?: Configuration, baseP
5867
6258
  listProgress(id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: any): AxiosPromise<ProgressResponse> {
5868
6259
  return localVarFp.listProgress(id, periodID, userID, clientID, interval, nextToken, options).then((request) => request(axios, basePath));
5869
6260
  },
6261
+ /**
6262
+ * List users progress of a promotion
6263
+ * @summary List promotion\'s progress
6264
+ * @param {string} id Promotion ID
6265
+ * @param {number} [periodID] Period ID
6266
+ * @param {string} [nextToken] This is the pagination token
6267
+ * @param {*} [options] Override http request option.
6268
+ * @throws {RequiredError}
6269
+ */
6270
+ listUserProgress(id: string, periodID?: number, nextToken?: string, options?: any): AxiosPromise<ProgressResponse> {
6271
+ return localVarFp.listUserProgress(id, periodID, nextToken, options).then((request) => request(axios, basePath));
6272
+ },
5870
6273
  };
5871
6274
  };
5872
6275
 
@@ -5893,6 +6296,20 @@ export class ProgressApi extends BaseAPI {
5893
6296
  public listProgress(id: string, periodID?: number, userID?: string, clientID?: string, interval?: ListProgressIntervalEnum, nextToken?: string, options?: AxiosRequestConfig) {
5894
6297
  return ProgressApiFp(this.configuration).listProgress(id, periodID, userID, clientID, interval, nextToken, options).then((request) => request(this.axios, this.basePath));
5895
6298
  }
6299
+
6300
+ /**
6301
+ * List users progress of a promotion
6302
+ * @summary List promotion\'s progress
6303
+ * @param {string} id Promotion ID
6304
+ * @param {number} [periodID] Period ID
6305
+ * @param {string} [nextToken] This is the pagination token
6306
+ * @param {*} [options] Override http request option.
6307
+ * @throws {RequiredError}
6308
+ * @memberof ProgressApi
6309
+ */
6310
+ public listUserProgress(id: string, periodID?: number, nextToken?: string, options?: AxiosRequestConfig) {
6311
+ return ProgressApiFp(this.configuration).listUserProgress(id, periodID, nextToken, options).then((request) => request(this.axios, this.basePath));
6312
+ }
5896
6313
  }
5897
6314
 
5898
6315
  /**
@@ -6168,6 +6585,44 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
6168
6585
 
6169
6586
 
6170
6587
 
6588
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6589
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6590
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6591
+
6592
+ return {
6593
+ url: toPathString(localVarUrlObj),
6594
+ options: localVarRequestOptions,
6595
+ };
6596
+ },
6597
+ /**
6598
+ * Get promotion by id, if user is allowed to see it
6599
+ * @summary Get promotion
6600
+ * @param {string} id Promotion id
6601
+ * @param {*} [options] Override http request option.
6602
+ * @throws {RequiredError}
6603
+ */
6604
+ getUserPromotion: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6605
+ // verify required parameter 'id' is not null or undefined
6606
+ assertParamExists('getUserPromotion', 'id', id)
6607
+ const localVarPath = `/users/promotions/{id}`
6608
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6609
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6610
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6611
+ let baseOptions;
6612
+ if (configuration) {
6613
+ baseOptions = configuration.baseOptions;
6614
+ }
6615
+
6616
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6617
+ const localVarHeaderParameter = {} as any;
6618
+ const localVarQueryParameter = {} as any;
6619
+
6620
+ // authentication jwt required
6621
+ // http bearer authentication required
6622
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6623
+
6624
+
6625
+
6171
6626
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6172
6627
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6173
6628
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6251,6 +6706,69 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
6251
6706
 
6252
6707
 
6253
6708
 
6709
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6710
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6711
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6712
+
6713
+ return {
6714
+ url: toPathString(localVarUrlObj),
6715
+ options: localVarRequestOptions,
6716
+ };
6717
+ },
6718
+ /**
6719
+ * List users promotions
6720
+ * @summary List promotions
6721
+ * @param {string} [nextToken] This is the pagination token
6722
+ * @param {string} [tags] tags to filter by, format is key1&#x3D;value1;key2&#x3D;value2. Should be url encoded.
6723
+ * @param {string} [startAtAfter] start time after time
6724
+ * @param {string} [endAtBefore] end time before time
6725
+ * @param {string} [search] search by name or description
6726
+ * @param {*} [options] Override http request option.
6727
+ * @throws {RequiredError}
6728
+ */
6729
+ listUserPromotions: async (nextToken?: string, tags?: string, startAtAfter?: string, endAtBefore?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6730
+ const localVarPath = `/users/promotions`;
6731
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6732
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6733
+ let baseOptions;
6734
+ if (configuration) {
6735
+ baseOptions = configuration.baseOptions;
6736
+ }
6737
+
6738
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6739
+ const localVarHeaderParameter = {} as any;
6740
+ const localVarQueryParameter = {} as any;
6741
+
6742
+ // authentication jwt required
6743
+ // http bearer authentication required
6744
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6745
+
6746
+ if (nextToken !== undefined) {
6747
+ localVarQueryParameter['nextToken'] = nextToken;
6748
+ }
6749
+
6750
+ if (tags !== undefined) {
6751
+ localVarQueryParameter['tags'] = tags;
6752
+ }
6753
+
6754
+ if (startAtAfter !== undefined) {
6755
+ localVarQueryParameter['startAtAfter'] = (startAtAfter as any instanceof Date) ?
6756
+ (startAtAfter as any).toISOString() :
6757
+ startAtAfter;
6758
+ }
6759
+
6760
+ if (endAtBefore !== undefined) {
6761
+ localVarQueryParameter['endAtBefore'] = (endAtBefore as any instanceof Date) ?
6762
+ (endAtBefore as any).toISOString() :
6763
+ endAtBefore;
6764
+ }
6765
+
6766
+ if (search !== undefined) {
6767
+ localVarQueryParameter['search'] = search;
6768
+ }
6769
+
6770
+
6771
+
6254
6772
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6255
6773
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6256
6774
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6394,6 +6912,17 @@ export const PromotionApiFp = function(configuration?: Configuration) {
6394
6912
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPromotion(id, options);
6395
6913
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6396
6914
  },
6915
+ /**
6916
+ * Get promotion by id, if user is allowed to see it
6917
+ * @summary Get promotion
6918
+ * @param {string} id Promotion id
6919
+ * @param {*} [options] Override http request option.
6920
+ * @throws {RequiredError}
6921
+ */
6922
+ async getUserPromotion(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotion>> {
6923
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPromotion(id, options);
6924
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6925
+ },
6397
6926
  /**
6398
6927
  * List all promotions
6399
6928
  * @summary List promotions
@@ -6413,6 +6942,21 @@ export const PromotionApiFp = function(configuration?: Configuration) {
6413
6942
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options);
6414
6943
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6415
6944
  },
6945
+ /**
6946
+ * List users promotions
6947
+ * @summary List promotions
6948
+ * @param {string} [nextToken] This is the pagination token
6949
+ * @param {string} [tags] tags to filter by, format is key1&#x3D;value1;key2&#x3D;value2. Should be url encoded.
6950
+ * @param {string} [startAtAfter] start time after time
6951
+ * @param {string} [endAtBefore] end time before time
6952
+ * @param {string} [search] search by name or description
6953
+ * @param {*} [options] Override http request option.
6954
+ * @throws {RequiredError}
6955
+ */
6956
+ async listUserPromotions(nextToken?: string, tags?: string, startAtAfter?: string, endAtBefore?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
6957
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startAtAfter, endAtBefore, search, options);
6958
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6959
+ },
6416
6960
  /**
6417
6961
  * Update promotion by id
6418
6962
  * @summary Update promotion
@@ -6508,6 +7052,16 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
6508
7052
  getPromotion(id: string, options?: any): AxiosPromise<Promotion> {
6509
7053
  return localVarFp.getPromotion(id, options).then((request) => request(axios, basePath));
6510
7054
  },
7055
+ /**
7056
+ * Get promotion by id, if user is allowed to see it
7057
+ * @summary Get promotion
7058
+ * @param {string} id Promotion id
7059
+ * @param {*} [options] Override http request option.
7060
+ * @throws {RequiredError}
7061
+ */
7062
+ getUserPromotion(id: string, options?: any): AxiosPromise<UserPromotion> {
7063
+ return localVarFp.getUserPromotion(id, options).then((request) => request(axios, basePath));
7064
+ },
6511
7065
  /**
6512
7066
  * List all promotions
6513
7067
  * @summary List promotions
@@ -6526,6 +7080,20 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
6526
7080
  listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, clientID?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse> {
6527
7081
  return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options).then((request) => request(axios, basePath));
6528
7082
  },
7083
+ /**
7084
+ * List users promotions
7085
+ * @summary List promotions
7086
+ * @param {string} [nextToken] This is the pagination token
7087
+ * @param {string} [tags] tags to filter by, format is key1&#x3D;value1;key2&#x3D;value2. Should be url encoded.
7088
+ * @param {string} [startAtAfter] start time after time
7089
+ * @param {string} [endAtBefore] end time before time
7090
+ * @param {string} [search] search by name or description
7091
+ * @param {*} [options] Override http request option.
7092
+ * @throws {RequiredError}
7093
+ */
7094
+ listUserPromotions(nextToken?: string, tags?: string, startAtAfter?: string, endAtBefore?: string, search?: string, options?: any): AxiosPromise<PromotionsResponse> {
7095
+ return localVarFp.listUserPromotions(nextToken, tags, startAtAfter, endAtBefore, search, options).then((request) => request(axios, basePath));
7096
+ },
6529
7097
  /**
6530
7098
  * Update promotion by id
6531
7099
  * @summary Update promotion
@@ -6634,6 +7202,18 @@ export class PromotionApi extends BaseAPI {
6634
7202
  return PromotionApiFp(this.configuration).getPromotion(id, options).then((request) => request(this.axios, this.basePath));
6635
7203
  }
6636
7204
 
7205
+ /**
7206
+ * Get promotion by id, if user is allowed to see it
7207
+ * @summary Get promotion
7208
+ * @param {string} id Promotion id
7209
+ * @param {*} [options] Override http request option.
7210
+ * @throws {RequiredError}
7211
+ * @memberof PromotionApi
7212
+ */
7213
+ public getUserPromotion(id: string, options?: AxiosRequestConfig) {
7214
+ return PromotionApiFp(this.configuration).getUserPromotion(id, options).then((request) => request(this.axios, this.basePath));
7215
+ }
7216
+
6637
7217
  /**
6638
7218
  * List all promotions
6639
7219
  * @summary List promotions
@@ -6654,6 +7234,22 @@ export class PromotionApi extends BaseAPI {
6654
7234
  return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options).then((request) => request(this.axios, this.basePath));
6655
7235
  }
6656
7236
 
7237
+ /**
7238
+ * List users promotions
7239
+ * @summary List promotions
7240
+ * @param {string} [nextToken] This is the pagination token
7241
+ * @param {string} [tags] tags to filter by, format is key1&#x3D;value1;key2&#x3D;value2. Should be url encoded.
7242
+ * @param {string} [startAtAfter] start time after time
7243
+ * @param {string} [endAtBefore] end time before time
7244
+ * @param {string} [search] search by name or description
7245
+ * @param {*} [options] Override http request option.
7246
+ * @throws {RequiredError}
7247
+ * @memberof PromotionApi
7248
+ */
7249
+ public listUserPromotions(nextToken?: string, tags?: string, startAtAfter?: string, endAtBefore?: string, search?: string, options?: AxiosRequestConfig) {
7250
+ return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startAtAfter, endAtBefore, search, options).then((request) => request(this.axios, this.basePath));
7251
+ }
7252
+
6657
7253
  /**
6658
7254
  * Update promotion by id
6659
7255
  * @summary Update promotion
@@ -6670,6 +7266,125 @@ export class PromotionApi extends BaseAPI {
6670
7266
 
6671
7267
 
6672
7268
 
7269
+ /**
7270
+ * RewardApi - axios parameter creator
7271
+ * @export
7272
+ */
7273
+ export const RewardApiAxiosParamCreator = function (configuration?: Configuration) {
7274
+ return {
7275
+ /**
7276
+ * List existing products for the user
7277
+ * @summary List existing products
7278
+ * @param {ProductKind} [kind] The product kind
7279
+ * @param {string} [nextToken] This is the pagination token
7280
+ * @param {*} [options] Override http request option.
7281
+ * @throws {RequiredError}
7282
+ */
7283
+ listUserProducts: async (kind?: ProductKind, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7284
+ const localVarPath = `/users/products`;
7285
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7286
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7287
+ let baseOptions;
7288
+ if (configuration) {
7289
+ baseOptions = configuration.baseOptions;
7290
+ }
7291
+
7292
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7293
+ const localVarHeaderParameter = {} as any;
7294
+ const localVarQueryParameter = {} as any;
7295
+
7296
+ // authentication jwt required
7297
+ // http bearer authentication required
7298
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7299
+
7300
+ if (kind !== undefined) {
7301
+ localVarQueryParameter['kind'] = kind;
7302
+ }
7303
+
7304
+ if (nextToken !== undefined) {
7305
+ localVarQueryParameter['nextToken'] = nextToken;
7306
+ }
7307
+
7308
+
7309
+
7310
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7311
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7312
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7313
+
7314
+ return {
7315
+ url: toPathString(localVarUrlObj),
7316
+ options: localVarRequestOptions,
7317
+ };
7318
+ },
7319
+ }
7320
+ };
7321
+
7322
+ /**
7323
+ * RewardApi - functional programming interface
7324
+ * @export
7325
+ */
7326
+ export const RewardApiFp = function(configuration?: Configuration) {
7327
+ const localVarAxiosParamCreator = RewardApiAxiosParamCreator(configuration)
7328
+ return {
7329
+ /**
7330
+ * List existing products for the user
7331
+ * @summary List existing products
7332
+ * @param {ProductKind} [kind] The product kind
7333
+ * @param {string} [nextToken] This is the pagination token
7334
+ * @param {*} [options] Override http request option.
7335
+ * @throws {RequiredError}
7336
+ */
7337
+ async listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
7338
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProducts(kind, nextToken, options);
7339
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7340
+ },
7341
+ }
7342
+ };
7343
+
7344
+ /**
7345
+ * RewardApi - factory interface
7346
+ * @export
7347
+ */
7348
+ export const RewardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7349
+ const localVarFp = RewardApiFp(configuration)
7350
+ return {
7351
+ /**
7352
+ * List existing products for the user
7353
+ * @summary List existing products
7354
+ * @param {ProductKind} [kind] The product kind
7355
+ * @param {string} [nextToken] This is the pagination token
7356
+ * @param {*} [options] Override http request option.
7357
+ * @throws {RequiredError}
7358
+ */
7359
+ listUserProducts(kind?: ProductKind, nextToken?: string, options?: any): AxiosPromise<ProductsResponse> {
7360
+ return localVarFp.listUserProducts(kind, nextToken, options).then((request) => request(axios, basePath));
7361
+ },
7362
+ };
7363
+ };
7364
+
7365
+ /**
7366
+ * RewardApi - object-oriented interface
7367
+ * @export
7368
+ * @class RewardApi
7369
+ * @extends {BaseAPI}
7370
+ */
7371
+ export class RewardApi extends BaseAPI {
7372
+ /**
7373
+ * List existing products for the user
7374
+ * @summary List existing products
7375
+ * @param {ProductKind} [kind] The product kind
7376
+ * @param {string} [nextToken] This is the pagination token
7377
+ * @param {*} [options] Override http request option.
7378
+ * @throws {RequiredError}
7379
+ * @memberof RewardApi
7380
+ */
7381
+ public listUserProducts(kind?: ProductKind, nextToken?: string, options?: AxiosRequestConfig) {
7382
+ return RewardApiFp(this.configuration).listUserProducts(kind, nextToken, options).then((request) => request(this.axios, this.basePath));
7383
+ }
7384
+ }
7385
+
7386
+
7387
+
6673
7388
  /**
6674
7389
  * SegmentApi - axios parameter creator
6675
7390
  * @export
@@ -7487,6 +8202,44 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
7487
8202
 
7488
8203
 
7489
8204
 
8205
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8206
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8207
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8208
+
8209
+ return {
8210
+ url: toPathString(localVarUrlObj),
8211
+ options: localVarRequestOptions,
8212
+ };
8213
+ },
8214
+ /**
8215
+ * Get subordonates of a user by ID
8216
+ * @summary Get user team
8217
+ * @param {string} id user id
8218
+ * @param {*} [options] Override http request option.
8219
+ * @throws {RequiredError}
8220
+ */
8221
+ getUserSubordinates: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8222
+ // verify required parameter 'id' is not null or undefined
8223
+ assertParamExists('getUserSubordinates', 'id', id)
8224
+ const localVarPath = `/admin/users/{id}/team`
8225
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8226
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8227
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8228
+ let baseOptions;
8229
+ if (configuration) {
8230
+ baseOptions = configuration.baseOptions;
8231
+ }
8232
+
8233
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
8234
+ const localVarHeaderParameter = {} as any;
8235
+ const localVarQueryParameter = {} as any;
8236
+
8237
+ // authentication jwt required
8238
+ // http bearer authentication required
8239
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8240
+
8241
+
8242
+
7490
8243
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7491
8244
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7492
8245
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -7581,6 +8334,17 @@ export const UserApiFp = function(configuration?: Configuration) {
7581
8334
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserByID(id, options);
7582
8335
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7583
8336
  },
8337
+ /**
8338
+ * Get subordonates of a user by ID
8339
+ * @summary Get user team
8340
+ * @param {string} id user id
8341
+ * @param {*} [options] Override http request option.
8342
+ * @throws {RequiredError}
8343
+ */
8344
+ async getUserSubordinates(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<User>>> {
8345
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserSubordinates(id, options);
8346
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8347
+ },
7584
8348
  /**
7585
8349
  * List all users
7586
8350
  * @summary List users
@@ -7617,6 +8381,16 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
7617
8381
  getUserByID(id: string, options?: any): AxiosPromise<User> {
7618
8382
  return localVarFp.getUserByID(id, options).then((request) => request(axios, basePath));
7619
8383
  },
8384
+ /**
8385
+ * Get subordonates of a user by ID
8386
+ * @summary Get user team
8387
+ * @param {string} id user id
8388
+ * @param {*} [options] Override http request option.
8389
+ * @throws {RequiredError}
8390
+ */
8391
+ getUserSubordinates(id: string, options?: any): AxiosPromise<Array<User>> {
8392
+ return localVarFp.getUserSubordinates(id, options).then((request) => request(axios, basePath));
8393
+ },
7620
8394
  /**
7621
8395
  * List all users
7622
8396
  * @summary List users
@@ -7654,6 +8428,18 @@ export class UserApi extends BaseAPI {
7654
8428
  return UserApiFp(this.configuration).getUserByID(id, options).then((request) => request(this.axios, this.basePath));
7655
8429
  }
7656
8430
 
8431
+ /**
8432
+ * Get subordonates of a user by ID
8433
+ * @summary Get user team
8434
+ * @param {string} id user id
8435
+ * @param {*} [options] Override http request option.
8436
+ * @throws {RequiredError}
8437
+ * @memberof UserApi
8438
+ */
8439
+ public getUserSubordinates(id: string, options?: AxiosRequestConfig) {
8440
+ return UserApiFp(this.configuration).getUserSubordinates(id, options).then((request) => request(this.axios, this.basePath));
8441
+ }
8442
+
7657
8443
  /**
7658
8444
  * List all users
7659
8445
  * @summary List users