flexinet-api 0.0.268-prerelease0 → 0.0.272-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 +2 -2
- package/api.ts +168 -7
- package/dist/api.d.ts +113 -4
- package/dist/api.js +113 -9
- package/dist/esm/api.d.ts +113 -4
- package/dist/esm/api.js +107 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.272-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.
|
|
39
|
+
npm install flexinet-api@0.0.272-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -292,6 +292,38 @@ export interface CallbackOrder {
|
|
|
292
292
|
*/
|
|
293
293
|
'status'?: string;
|
|
294
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @export
|
|
298
|
+
* @interface CategoriesResponse
|
|
299
|
+
*/
|
|
300
|
+
export interface CategoriesResponse {
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @type {Array<Category>}
|
|
304
|
+
* @memberof CategoriesResponse
|
|
305
|
+
*/
|
|
306
|
+
'categories': Array<Category>;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
*
|
|
310
|
+
* @export
|
|
311
|
+
* @interface Category
|
|
312
|
+
*/
|
|
313
|
+
export interface Category {
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @type {string}
|
|
317
|
+
* @memberof Category
|
|
318
|
+
*/
|
|
319
|
+
'id': string;
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @type {string}
|
|
323
|
+
* @memberof Category
|
|
324
|
+
*/
|
|
325
|
+
'name': string;
|
|
326
|
+
}
|
|
295
327
|
/**
|
|
296
328
|
*
|
|
297
329
|
* @export
|
|
@@ -1054,6 +1086,12 @@ export interface Product {
|
|
|
1054
1086
|
* @memberof Product
|
|
1055
1087
|
*/
|
|
1056
1088
|
'kind': ProductKind;
|
|
1089
|
+
/**
|
|
1090
|
+
*
|
|
1091
|
+
* @type {string}
|
|
1092
|
+
* @memberof Product
|
|
1093
|
+
*/
|
|
1094
|
+
'category': string;
|
|
1057
1095
|
/**
|
|
1058
1096
|
*
|
|
1059
1097
|
* @type {string}
|
|
@@ -1099,6 +1137,12 @@ export interface ProductApprovalDetails {
|
|
|
1099
1137
|
* @memberof ProductApprovalDetails
|
|
1100
1138
|
*/
|
|
1101
1139
|
'segments': Array<string>;
|
|
1140
|
+
/**
|
|
1141
|
+
*
|
|
1142
|
+
* @type {string}
|
|
1143
|
+
* @memberof ProductApprovalDetails
|
|
1144
|
+
*/
|
|
1145
|
+
'categoryID': string;
|
|
1102
1146
|
}
|
|
1103
1147
|
/**
|
|
1104
1148
|
*
|
|
@@ -1180,6 +1224,12 @@ export interface ProductCreationRequest {
|
|
|
1180
1224
|
* @memberof ProductCreationRequest
|
|
1181
1225
|
*/
|
|
1182
1226
|
'segments': Array<Segment>;
|
|
1227
|
+
/**
|
|
1228
|
+
*
|
|
1229
|
+
* @type {string}
|
|
1230
|
+
* @memberof ProductCreationRequest
|
|
1231
|
+
*/
|
|
1232
|
+
'category': string;
|
|
1183
1233
|
/**
|
|
1184
1234
|
*
|
|
1185
1235
|
* @type {ProductKind}
|
|
@@ -3237,6 +3287,109 @@ export class BalanceApi extends BaseAPI {
|
|
|
3237
3287
|
|
|
3238
3288
|
|
|
3239
3289
|
|
|
3290
|
+
/**
|
|
3291
|
+
* CategoryApi - axios parameter creator
|
|
3292
|
+
* @export
|
|
3293
|
+
*/
|
|
3294
|
+
export const CategoryApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3295
|
+
return {
|
|
3296
|
+
/**
|
|
3297
|
+
* List all categories
|
|
3298
|
+
* @summary List categories
|
|
3299
|
+
* @param {*} [options] Override http request option.
|
|
3300
|
+
* @throws {RequiredError}
|
|
3301
|
+
*/
|
|
3302
|
+
listCategories: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3303
|
+
const localVarPath = `/categories`;
|
|
3304
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3305
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3306
|
+
let baseOptions;
|
|
3307
|
+
if (configuration) {
|
|
3308
|
+
baseOptions = configuration.baseOptions;
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3312
|
+
const localVarHeaderParameter = {} as any;
|
|
3313
|
+
const localVarQueryParameter = {} as any;
|
|
3314
|
+
|
|
3315
|
+
// authentication jwt required
|
|
3316
|
+
// http bearer authentication required
|
|
3317
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3318
|
+
|
|
3319
|
+
|
|
3320
|
+
|
|
3321
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3322
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3323
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3324
|
+
|
|
3325
|
+
return {
|
|
3326
|
+
url: toPathString(localVarUrlObj),
|
|
3327
|
+
options: localVarRequestOptions,
|
|
3328
|
+
};
|
|
3329
|
+
},
|
|
3330
|
+
}
|
|
3331
|
+
};
|
|
3332
|
+
|
|
3333
|
+
/**
|
|
3334
|
+
* CategoryApi - functional programming interface
|
|
3335
|
+
* @export
|
|
3336
|
+
*/
|
|
3337
|
+
export const CategoryApiFp = function(configuration?: Configuration) {
|
|
3338
|
+
const localVarAxiosParamCreator = CategoryApiAxiosParamCreator(configuration)
|
|
3339
|
+
return {
|
|
3340
|
+
/**
|
|
3341
|
+
* List all categories
|
|
3342
|
+
* @summary List categories
|
|
3343
|
+
* @param {*} [options] Override http request option.
|
|
3344
|
+
* @throws {RequiredError}
|
|
3345
|
+
*/
|
|
3346
|
+
async listCategories(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoriesResponse>> {
|
|
3347
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCategories(options);
|
|
3348
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3349
|
+
},
|
|
3350
|
+
}
|
|
3351
|
+
};
|
|
3352
|
+
|
|
3353
|
+
/**
|
|
3354
|
+
* CategoryApi - factory interface
|
|
3355
|
+
* @export
|
|
3356
|
+
*/
|
|
3357
|
+
export const CategoryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3358
|
+
const localVarFp = CategoryApiFp(configuration)
|
|
3359
|
+
return {
|
|
3360
|
+
/**
|
|
3361
|
+
* List all categories
|
|
3362
|
+
* @summary List categories
|
|
3363
|
+
* @param {*} [options] Override http request option.
|
|
3364
|
+
* @throws {RequiredError}
|
|
3365
|
+
*/
|
|
3366
|
+
listCategories(options?: any): AxiosPromise<CategoriesResponse> {
|
|
3367
|
+
return localVarFp.listCategories(options).then((request) => request(axios, basePath));
|
|
3368
|
+
},
|
|
3369
|
+
};
|
|
3370
|
+
};
|
|
3371
|
+
|
|
3372
|
+
/**
|
|
3373
|
+
* CategoryApi - object-oriented interface
|
|
3374
|
+
* @export
|
|
3375
|
+
* @class CategoryApi
|
|
3376
|
+
* @extends {BaseAPI}
|
|
3377
|
+
*/
|
|
3378
|
+
export class CategoryApi extends BaseAPI {
|
|
3379
|
+
/**
|
|
3380
|
+
* List all categories
|
|
3381
|
+
* @summary List categories
|
|
3382
|
+
* @param {*} [options] Override http request option.
|
|
3383
|
+
* @throws {RequiredError}
|
|
3384
|
+
* @memberof CategoryApi
|
|
3385
|
+
*/
|
|
3386
|
+
public listCategories(options?: AxiosRequestConfig) {
|
|
3387
|
+
return CategoryApiFp(this.configuration).listCategories(options).then((request) => request(this.axios, this.basePath));
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
|
|
3391
|
+
|
|
3392
|
+
|
|
3240
3393
|
/**
|
|
3241
3394
|
* ClientApi - axios parameter creator
|
|
3242
3395
|
* @export
|
|
@@ -5117,6 +5270,7 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5117
5270
|
* List existing products
|
|
5118
5271
|
* @summary List existing products
|
|
5119
5272
|
* @param {ProductKind} [kind] The product kind
|
|
5273
|
+
* @param {string} [categoryID] The product category ID
|
|
5120
5274
|
* @param {string} [search] search string
|
|
5121
5275
|
* @param {ProductUsage} [usage] The product usage
|
|
5122
5276
|
* @param {ProductStatus} [status] The product status
|
|
@@ -5127,7 +5281,7 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5127
5281
|
* @param {*} [options] Override http request option.
|
|
5128
5282
|
* @throws {RequiredError}
|
|
5129
5283
|
*/
|
|
5130
|
-
listProducts: async (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5284
|
+
listProducts: async (kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5131
5285
|
const localVarPath = `/products`;
|
|
5132
5286
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5133
5287
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5148,6 +5302,10 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5148
5302
|
localVarQueryParameter['kind'] = kind;
|
|
5149
5303
|
}
|
|
5150
5304
|
|
|
5305
|
+
if (categoryID !== undefined) {
|
|
5306
|
+
localVarQueryParameter['categoryID'] = categoryID;
|
|
5307
|
+
}
|
|
5308
|
+
|
|
5151
5309
|
if (search !== undefined) {
|
|
5152
5310
|
localVarQueryParameter['search'] = search;
|
|
5153
5311
|
}
|
|
@@ -5321,6 +5479,7 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
|
5321
5479
|
* List existing products
|
|
5322
5480
|
* @summary List existing products
|
|
5323
5481
|
* @param {ProductKind} [kind] The product kind
|
|
5482
|
+
* @param {string} [categoryID] The product category ID
|
|
5324
5483
|
* @param {string} [search] search string
|
|
5325
5484
|
* @param {ProductUsage} [usage] The product usage
|
|
5326
5485
|
* @param {ProductStatus} [status] The product status
|
|
@@ -5331,8 +5490,8 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
|
5331
5490
|
* @param {*} [options] Override http request option.
|
|
5332
5491
|
* @throws {RequiredError}
|
|
5333
5492
|
*/
|
|
5334
|
-
async listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
|
|
5335
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options);
|
|
5493
|
+
async 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>> {
|
|
5494
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options);
|
|
5336
5495
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5337
5496
|
},
|
|
5338
5497
|
/**
|
|
@@ -5432,6 +5591,7 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
|
5432
5591
|
* List existing products
|
|
5433
5592
|
* @summary List existing products
|
|
5434
5593
|
* @param {ProductKind} [kind] The product kind
|
|
5594
|
+
* @param {string} [categoryID] The product category ID
|
|
5435
5595
|
* @param {string} [search] search string
|
|
5436
5596
|
* @param {ProductUsage} [usage] The product usage
|
|
5437
5597
|
* @param {ProductStatus} [status] The product status
|
|
@@ -5442,8 +5602,8 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
|
5442
5602
|
* @param {*} [options] Override http request option.
|
|
5443
5603
|
* @throws {RequiredError}
|
|
5444
5604
|
*/
|
|
5445
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse> {
|
|
5446
|
-
return localVarFp.listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
|
|
5605
|
+
listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse> {
|
|
5606
|
+
return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
|
|
5447
5607
|
},
|
|
5448
5608
|
/**
|
|
5449
5609
|
* Update a product by id
|
|
@@ -5555,6 +5715,7 @@ export class ProductApi extends BaseAPI {
|
|
|
5555
5715
|
* List existing products
|
|
5556
5716
|
* @summary List existing products
|
|
5557
5717
|
* @param {ProductKind} [kind] The product kind
|
|
5718
|
+
* @param {string} [categoryID] The product category ID
|
|
5558
5719
|
* @param {string} [search] search string
|
|
5559
5720
|
* @param {ProductUsage} [usage] The product usage
|
|
5560
5721
|
* @param {ProductStatus} [status] The product status
|
|
@@ -5566,8 +5727,8 @@ export class ProductApi extends BaseAPI {
|
|
|
5566
5727
|
* @throws {RequiredError}
|
|
5567
5728
|
* @memberof ProductApi
|
|
5568
5729
|
*/
|
|
5569
|
-
public listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) {
|
|
5570
|
-
return ProductApiFp(this.configuration).listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
|
|
5730
|
+
public listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) {
|
|
5731
|
+
return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
|
|
5571
5732
|
}
|
|
5572
5733
|
|
|
5573
5734
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -261,6 +261,38 @@ export interface CallbackOrder {
|
|
|
261
261
|
*/
|
|
262
262
|
'status'?: string;
|
|
263
263
|
}
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @export
|
|
267
|
+
* @interface CategoriesResponse
|
|
268
|
+
*/
|
|
269
|
+
export interface CategoriesResponse {
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @type {Array<Category>}
|
|
273
|
+
* @memberof CategoriesResponse
|
|
274
|
+
*/
|
|
275
|
+
'categories': Array<Category>;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @export
|
|
280
|
+
* @interface Category
|
|
281
|
+
*/
|
|
282
|
+
export interface Category {
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @type {string}
|
|
286
|
+
* @memberof Category
|
|
287
|
+
*/
|
|
288
|
+
'id': string;
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @type {string}
|
|
292
|
+
* @memberof Category
|
|
293
|
+
*/
|
|
294
|
+
'name': string;
|
|
295
|
+
}
|
|
264
296
|
/**
|
|
265
297
|
*
|
|
266
298
|
* @export
|
|
@@ -1002,6 +1034,12 @@ export interface Product {
|
|
|
1002
1034
|
* @memberof Product
|
|
1003
1035
|
*/
|
|
1004
1036
|
'kind': ProductKind;
|
|
1037
|
+
/**
|
|
1038
|
+
*
|
|
1039
|
+
* @type {string}
|
|
1040
|
+
* @memberof Product
|
|
1041
|
+
*/
|
|
1042
|
+
'category': string;
|
|
1005
1043
|
/**
|
|
1006
1044
|
*
|
|
1007
1045
|
* @type {string}
|
|
@@ -1045,6 +1083,12 @@ export interface ProductApprovalDetails {
|
|
|
1045
1083
|
* @memberof ProductApprovalDetails
|
|
1046
1084
|
*/
|
|
1047
1085
|
'segments': Array<string>;
|
|
1086
|
+
/**
|
|
1087
|
+
*
|
|
1088
|
+
* @type {string}
|
|
1089
|
+
* @memberof ProductApprovalDetails
|
|
1090
|
+
*/
|
|
1091
|
+
'categoryID': string;
|
|
1048
1092
|
}
|
|
1049
1093
|
/**
|
|
1050
1094
|
*
|
|
@@ -1122,6 +1166,12 @@ export interface ProductCreationRequest {
|
|
|
1122
1166
|
* @memberof ProductCreationRequest
|
|
1123
1167
|
*/
|
|
1124
1168
|
'segments': Array<Segment>;
|
|
1169
|
+
/**
|
|
1170
|
+
*
|
|
1171
|
+
* @type {string}
|
|
1172
|
+
* @memberof ProductCreationRequest
|
|
1173
|
+
*/
|
|
1174
|
+
'category': string;
|
|
1125
1175
|
/**
|
|
1126
1176
|
*
|
|
1127
1177
|
* @type {ProductKind}
|
|
@@ -2856,6 +2906,61 @@ export declare class BalanceApi extends BaseAPI {
|
|
|
2856
2906
|
*/
|
|
2857
2907
|
updateBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2858
2908
|
}
|
|
2909
|
+
/**
|
|
2910
|
+
* CategoryApi - axios parameter creator
|
|
2911
|
+
* @export
|
|
2912
|
+
*/
|
|
2913
|
+
export declare const CategoryApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2914
|
+
/**
|
|
2915
|
+
* List all categories
|
|
2916
|
+
* @summary List categories
|
|
2917
|
+
* @param {*} [options] Override http request option.
|
|
2918
|
+
* @throws {RequiredError}
|
|
2919
|
+
*/
|
|
2920
|
+
listCategories: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2921
|
+
};
|
|
2922
|
+
/**
|
|
2923
|
+
* CategoryApi - functional programming interface
|
|
2924
|
+
* @export
|
|
2925
|
+
*/
|
|
2926
|
+
export declare const CategoryApiFp: (configuration?: Configuration) => {
|
|
2927
|
+
/**
|
|
2928
|
+
* List all categories
|
|
2929
|
+
* @summary List categories
|
|
2930
|
+
* @param {*} [options] Override http request option.
|
|
2931
|
+
* @throws {RequiredError}
|
|
2932
|
+
*/
|
|
2933
|
+
listCategories(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoriesResponse>>;
|
|
2934
|
+
};
|
|
2935
|
+
/**
|
|
2936
|
+
* CategoryApi - factory interface
|
|
2937
|
+
* @export
|
|
2938
|
+
*/
|
|
2939
|
+
export declare const CategoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2940
|
+
/**
|
|
2941
|
+
* List all categories
|
|
2942
|
+
* @summary List categories
|
|
2943
|
+
* @param {*} [options] Override http request option.
|
|
2944
|
+
* @throws {RequiredError}
|
|
2945
|
+
*/
|
|
2946
|
+
listCategories(options?: any): AxiosPromise<CategoriesResponse>;
|
|
2947
|
+
};
|
|
2948
|
+
/**
|
|
2949
|
+
* CategoryApi - object-oriented interface
|
|
2950
|
+
* @export
|
|
2951
|
+
* @class CategoryApi
|
|
2952
|
+
* @extends {BaseAPI}
|
|
2953
|
+
*/
|
|
2954
|
+
export declare class CategoryApi extends BaseAPI {
|
|
2955
|
+
/**
|
|
2956
|
+
* List all categories
|
|
2957
|
+
* @summary List categories
|
|
2958
|
+
* @param {*} [options] Override http request option.
|
|
2959
|
+
* @throws {RequiredError}
|
|
2960
|
+
* @memberof CategoryApi
|
|
2961
|
+
*/
|
|
2962
|
+
listCategories(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CategoriesResponse, any>>;
|
|
2963
|
+
}
|
|
2859
2964
|
/**
|
|
2860
2965
|
* ClientApi - axios parameter creator
|
|
2861
2966
|
* @export
|
|
@@ -3721,6 +3826,7 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3721
3826
|
* List existing products
|
|
3722
3827
|
* @summary List existing products
|
|
3723
3828
|
* @param {ProductKind} [kind] The product kind
|
|
3829
|
+
* @param {string} [categoryID] The product category ID
|
|
3724
3830
|
* @param {string} [search] search string
|
|
3725
3831
|
* @param {ProductUsage} [usage] The product usage
|
|
3726
3832
|
* @param {ProductStatus} [status] The product status
|
|
@@ -3731,7 +3837,7 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3731
3837
|
* @param {*} [options] Override http request option.
|
|
3732
3838
|
* @throws {RequiredError}
|
|
3733
3839
|
*/
|
|
3734
|
-
listProducts: (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3840
|
+
listProducts: (kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3735
3841
|
/**
|
|
3736
3842
|
* Update a product by id
|
|
3737
3843
|
* @summary Update a product by id
|
|
@@ -3808,6 +3914,7 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
3808
3914
|
* List existing products
|
|
3809
3915
|
* @summary List existing products
|
|
3810
3916
|
* @param {ProductKind} [kind] The product kind
|
|
3917
|
+
* @param {string} [categoryID] The product category ID
|
|
3811
3918
|
* @param {string} [search] search string
|
|
3812
3919
|
* @param {ProductUsage} [usage] The product usage
|
|
3813
3920
|
* @param {ProductStatus} [status] The product status
|
|
@@ -3818,7 +3925,7 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
3818
3925
|
* @param {*} [options] Override http request option.
|
|
3819
3926
|
* @throws {RequiredError}
|
|
3820
3927
|
*/
|
|
3821
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
|
|
3928
|
+
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>>;
|
|
3822
3929
|
/**
|
|
3823
3930
|
* Update a product by id
|
|
3824
3931
|
* @summary Update a product by id
|
|
@@ -3895,6 +4002,7 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
3895
4002
|
* List existing products
|
|
3896
4003
|
* @summary List existing products
|
|
3897
4004
|
* @param {ProductKind} [kind] The product kind
|
|
4005
|
+
* @param {string} [categoryID] The product category ID
|
|
3898
4006
|
* @param {string} [search] search string
|
|
3899
4007
|
* @param {ProductUsage} [usage] The product usage
|
|
3900
4008
|
* @param {ProductStatus} [status] The product status
|
|
@@ -3905,7 +4013,7 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
3905
4013
|
* @param {*} [options] Override http request option.
|
|
3906
4014
|
* @throws {RequiredError}
|
|
3907
4015
|
*/
|
|
3908
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
|
|
4016
|
+
listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
|
|
3909
4017
|
/**
|
|
3910
4018
|
* Update a product by id
|
|
3911
4019
|
* @summary Update a product by id
|
|
@@ -3991,6 +4099,7 @@ export declare class ProductApi extends BaseAPI {
|
|
|
3991
4099
|
* List existing products
|
|
3992
4100
|
* @summary List existing products
|
|
3993
4101
|
* @param {ProductKind} [kind] The product kind
|
|
4102
|
+
* @param {string} [categoryID] The product category ID
|
|
3994
4103
|
* @param {string} [search] search string
|
|
3995
4104
|
* @param {ProductUsage} [usage] The product usage
|
|
3996
4105
|
* @param {ProductStatus} [status] The product status
|
|
@@ -4002,7 +4111,7 @@ export declare class ProductApi extends BaseAPI {
|
|
|
4002
4111
|
* @throws {RequiredError}
|
|
4003
4112
|
* @memberof ProductApi
|
|
4004
4113
|
*/
|
|
4005
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
4114
|
+
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>>;
|
|
4006
4115
|
/**
|
|
4007
4116
|
* Update a product by id
|
|
4008
4117
|
* @summary Update a product by id
|
package/dist/api.js
CHANGED
|
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
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.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = void 0;
|
|
25
|
+
exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = 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.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.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.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// Some imports not used depending on template conditions
|
|
29
29
|
// @ts-ignore
|
|
@@ -716,6 +716,103 @@ class BalanceApi extends base_1.BaseAPI {
|
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
exports.BalanceApi = BalanceApi;
|
|
719
|
+
/**
|
|
720
|
+
* CategoryApi - axios parameter creator
|
|
721
|
+
* @export
|
|
722
|
+
*/
|
|
723
|
+
const CategoryApiAxiosParamCreator = function (configuration) {
|
|
724
|
+
return {
|
|
725
|
+
/**
|
|
726
|
+
* List all categories
|
|
727
|
+
* @summary List categories
|
|
728
|
+
* @param {*} [options] Override http request option.
|
|
729
|
+
* @throws {RequiredError}
|
|
730
|
+
*/
|
|
731
|
+
listCategories: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
732
|
+
const localVarPath = `/categories`;
|
|
733
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
734
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
735
|
+
let baseOptions;
|
|
736
|
+
if (configuration) {
|
|
737
|
+
baseOptions = configuration.baseOptions;
|
|
738
|
+
}
|
|
739
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
740
|
+
const localVarHeaderParameter = {};
|
|
741
|
+
const localVarQueryParameter = {};
|
|
742
|
+
// authentication jwt required
|
|
743
|
+
// http bearer authentication required
|
|
744
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
745
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
746
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
747
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
748
|
+
return {
|
|
749
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
750
|
+
options: localVarRequestOptions,
|
|
751
|
+
};
|
|
752
|
+
}),
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
exports.CategoryApiAxiosParamCreator = CategoryApiAxiosParamCreator;
|
|
756
|
+
/**
|
|
757
|
+
* CategoryApi - functional programming interface
|
|
758
|
+
* @export
|
|
759
|
+
*/
|
|
760
|
+
const CategoryApiFp = function (configuration) {
|
|
761
|
+
const localVarAxiosParamCreator = (0, exports.CategoryApiAxiosParamCreator)(configuration);
|
|
762
|
+
return {
|
|
763
|
+
/**
|
|
764
|
+
* List all categories
|
|
765
|
+
* @summary List categories
|
|
766
|
+
* @param {*} [options] Override http request option.
|
|
767
|
+
* @throws {RequiredError}
|
|
768
|
+
*/
|
|
769
|
+
listCategories(options) {
|
|
770
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
771
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCategories(options);
|
|
772
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
773
|
+
});
|
|
774
|
+
},
|
|
775
|
+
};
|
|
776
|
+
};
|
|
777
|
+
exports.CategoryApiFp = CategoryApiFp;
|
|
778
|
+
/**
|
|
779
|
+
* CategoryApi - factory interface
|
|
780
|
+
* @export
|
|
781
|
+
*/
|
|
782
|
+
const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
783
|
+
const localVarFp = (0, exports.CategoryApiFp)(configuration);
|
|
784
|
+
return {
|
|
785
|
+
/**
|
|
786
|
+
* List all categories
|
|
787
|
+
* @summary List categories
|
|
788
|
+
* @param {*} [options] Override http request option.
|
|
789
|
+
* @throws {RequiredError}
|
|
790
|
+
*/
|
|
791
|
+
listCategories(options) {
|
|
792
|
+
return localVarFp.listCategories(options).then((request) => request(axios, basePath));
|
|
793
|
+
},
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
exports.CategoryApiFactory = CategoryApiFactory;
|
|
797
|
+
/**
|
|
798
|
+
* CategoryApi - object-oriented interface
|
|
799
|
+
* @export
|
|
800
|
+
* @class CategoryApi
|
|
801
|
+
* @extends {BaseAPI}
|
|
802
|
+
*/
|
|
803
|
+
class CategoryApi extends base_1.BaseAPI {
|
|
804
|
+
/**
|
|
805
|
+
* List all categories
|
|
806
|
+
* @summary List categories
|
|
807
|
+
* @param {*} [options] Override http request option.
|
|
808
|
+
* @throws {RequiredError}
|
|
809
|
+
* @memberof CategoryApi
|
|
810
|
+
*/
|
|
811
|
+
listCategories(options) {
|
|
812
|
+
return (0, exports.CategoryApiFp)(this.configuration).listCategories(options).then((request) => request(this.axios, this.basePath));
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
exports.CategoryApi = CategoryApi;
|
|
719
816
|
/**
|
|
720
817
|
* ClientApi - axios parameter creator
|
|
721
818
|
* @export
|
|
@@ -2439,6 +2536,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2439
2536
|
* List existing products
|
|
2440
2537
|
* @summary List existing products
|
|
2441
2538
|
* @param {ProductKind} [kind] The product kind
|
|
2539
|
+
* @param {string} [categoryID] The product category ID
|
|
2442
2540
|
* @param {string} [search] search string
|
|
2443
2541
|
* @param {ProductUsage} [usage] The product usage
|
|
2444
2542
|
* @param {ProductStatus} [status] The product status
|
|
@@ -2449,7 +2547,7 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2449
2547
|
* @param {*} [options] Override http request option.
|
|
2450
2548
|
* @throws {RequiredError}
|
|
2451
2549
|
*/
|
|
2452
|
-
listProducts: (kind, search, usage, status, availability, segmentID, nextToken, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2550
|
+
listProducts: (kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2453
2551
|
const localVarPath = `/products`;
|
|
2454
2552
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2455
2553
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2466,6 +2564,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2466
2564
|
if (kind !== undefined) {
|
|
2467
2565
|
localVarQueryParameter['kind'] = kind;
|
|
2468
2566
|
}
|
|
2567
|
+
if (categoryID !== undefined) {
|
|
2568
|
+
localVarQueryParameter['categoryID'] = categoryID;
|
|
2569
|
+
}
|
|
2469
2570
|
if (search !== undefined) {
|
|
2470
2571
|
localVarQueryParameter['search'] = search;
|
|
2471
2572
|
}
|
|
@@ -2636,6 +2737,7 @@ const ProductApiFp = function (configuration) {
|
|
|
2636
2737
|
* List existing products
|
|
2637
2738
|
* @summary List existing products
|
|
2638
2739
|
* @param {ProductKind} [kind] The product kind
|
|
2740
|
+
* @param {string} [categoryID] The product category ID
|
|
2639
2741
|
* @param {string} [search] search string
|
|
2640
2742
|
* @param {ProductUsage} [usage] The product usage
|
|
2641
2743
|
* @param {ProductStatus} [status] The product status
|
|
@@ -2646,9 +2748,9 @@ const ProductApiFp = function (configuration) {
|
|
|
2646
2748
|
* @param {*} [options] Override http request option.
|
|
2647
2749
|
* @throws {RequiredError}
|
|
2648
2750
|
*/
|
|
2649
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2751
|
+
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2650
2752
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2651
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options);
|
|
2753
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options);
|
|
2652
2754
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2653
2755
|
});
|
|
2654
2756
|
},
|
|
@@ -2751,6 +2853,7 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2751
2853
|
* List existing products
|
|
2752
2854
|
* @summary List existing products
|
|
2753
2855
|
* @param {ProductKind} [kind] The product kind
|
|
2856
|
+
* @param {string} [categoryID] The product category ID
|
|
2754
2857
|
* @param {string} [search] search string
|
|
2755
2858
|
* @param {ProductUsage} [usage] The product usage
|
|
2756
2859
|
* @param {ProductStatus} [status] The product status
|
|
@@ -2761,8 +2864,8 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2761
2864
|
* @param {*} [options] Override http request option.
|
|
2762
2865
|
* @throws {RequiredError}
|
|
2763
2866
|
*/
|
|
2764
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2765
|
-
return localVarFp.listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
|
|
2867
|
+
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2868
|
+
return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
|
|
2766
2869
|
},
|
|
2767
2870
|
/**
|
|
2768
2871
|
* Update a product by id
|
|
@@ -2867,6 +2970,7 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
2867
2970
|
* List existing products
|
|
2868
2971
|
* @summary List existing products
|
|
2869
2972
|
* @param {ProductKind} [kind] The product kind
|
|
2973
|
+
* @param {string} [categoryID] The product category ID
|
|
2870
2974
|
* @param {string} [search] search string
|
|
2871
2975
|
* @param {ProductUsage} [usage] The product usage
|
|
2872
2976
|
* @param {ProductStatus} [status] The product status
|
|
@@ -2878,8 +2982,8 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
2878
2982
|
* @throws {RequiredError}
|
|
2879
2983
|
* @memberof ProductApi
|
|
2880
2984
|
*/
|
|
2881
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2882
|
-
return (0, exports.ProductApiFp)(this.configuration).listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
|
|
2985
|
+
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2986
|
+
return (0, exports.ProductApiFp)(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
|
|
2883
2987
|
}
|
|
2884
2988
|
/**
|
|
2885
2989
|
* Update a product by id
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -261,6 +261,38 @@ export interface CallbackOrder {
|
|
|
261
261
|
*/
|
|
262
262
|
'status'?: string;
|
|
263
263
|
}
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @export
|
|
267
|
+
* @interface CategoriesResponse
|
|
268
|
+
*/
|
|
269
|
+
export interface CategoriesResponse {
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @type {Array<Category>}
|
|
273
|
+
* @memberof CategoriesResponse
|
|
274
|
+
*/
|
|
275
|
+
'categories': Array<Category>;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @export
|
|
280
|
+
* @interface Category
|
|
281
|
+
*/
|
|
282
|
+
export interface Category {
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @type {string}
|
|
286
|
+
* @memberof Category
|
|
287
|
+
*/
|
|
288
|
+
'id': string;
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @type {string}
|
|
292
|
+
* @memberof Category
|
|
293
|
+
*/
|
|
294
|
+
'name': string;
|
|
295
|
+
}
|
|
264
296
|
/**
|
|
265
297
|
*
|
|
266
298
|
* @export
|
|
@@ -1002,6 +1034,12 @@ export interface Product {
|
|
|
1002
1034
|
* @memberof Product
|
|
1003
1035
|
*/
|
|
1004
1036
|
'kind': ProductKind;
|
|
1037
|
+
/**
|
|
1038
|
+
*
|
|
1039
|
+
* @type {string}
|
|
1040
|
+
* @memberof Product
|
|
1041
|
+
*/
|
|
1042
|
+
'category': string;
|
|
1005
1043
|
/**
|
|
1006
1044
|
*
|
|
1007
1045
|
* @type {string}
|
|
@@ -1045,6 +1083,12 @@ export interface ProductApprovalDetails {
|
|
|
1045
1083
|
* @memberof ProductApprovalDetails
|
|
1046
1084
|
*/
|
|
1047
1085
|
'segments': Array<string>;
|
|
1086
|
+
/**
|
|
1087
|
+
*
|
|
1088
|
+
* @type {string}
|
|
1089
|
+
* @memberof ProductApprovalDetails
|
|
1090
|
+
*/
|
|
1091
|
+
'categoryID': string;
|
|
1048
1092
|
}
|
|
1049
1093
|
/**
|
|
1050
1094
|
*
|
|
@@ -1122,6 +1166,12 @@ export interface ProductCreationRequest {
|
|
|
1122
1166
|
* @memberof ProductCreationRequest
|
|
1123
1167
|
*/
|
|
1124
1168
|
'segments': Array<Segment>;
|
|
1169
|
+
/**
|
|
1170
|
+
*
|
|
1171
|
+
* @type {string}
|
|
1172
|
+
* @memberof ProductCreationRequest
|
|
1173
|
+
*/
|
|
1174
|
+
'category': string;
|
|
1125
1175
|
/**
|
|
1126
1176
|
*
|
|
1127
1177
|
* @type {ProductKind}
|
|
@@ -2856,6 +2906,61 @@ export declare class BalanceApi extends BaseAPI {
|
|
|
2856
2906
|
*/
|
|
2857
2907
|
updateBalance(beneficiaryValue: string, balanceUpdateRequest?: BalanceUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2858
2908
|
}
|
|
2909
|
+
/**
|
|
2910
|
+
* CategoryApi - axios parameter creator
|
|
2911
|
+
* @export
|
|
2912
|
+
*/
|
|
2913
|
+
export declare const CategoryApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2914
|
+
/**
|
|
2915
|
+
* List all categories
|
|
2916
|
+
* @summary List categories
|
|
2917
|
+
* @param {*} [options] Override http request option.
|
|
2918
|
+
* @throws {RequiredError}
|
|
2919
|
+
*/
|
|
2920
|
+
listCategories: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2921
|
+
};
|
|
2922
|
+
/**
|
|
2923
|
+
* CategoryApi - functional programming interface
|
|
2924
|
+
* @export
|
|
2925
|
+
*/
|
|
2926
|
+
export declare const CategoryApiFp: (configuration?: Configuration) => {
|
|
2927
|
+
/**
|
|
2928
|
+
* List all categories
|
|
2929
|
+
* @summary List categories
|
|
2930
|
+
* @param {*} [options] Override http request option.
|
|
2931
|
+
* @throws {RequiredError}
|
|
2932
|
+
*/
|
|
2933
|
+
listCategories(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoriesResponse>>;
|
|
2934
|
+
};
|
|
2935
|
+
/**
|
|
2936
|
+
* CategoryApi - factory interface
|
|
2937
|
+
* @export
|
|
2938
|
+
*/
|
|
2939
|
+
export declare const CategoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2940
|
+
/**
|
|
2941
|
+
* List all categories
|
|
2942
|
+
* @summary List categories
|
|
2943
|
+
* @param {*} [options] Override http request option.
|
|
2944
|
+
* @throws {RequiredError}
|
|
2945
|
+
*/
|
|
2946
|
+
listCategories(options?: any): AxiosPromise<CategoriesResponse>;
|
|
2947
|
+
};
|
|
2948
|
+
/**
|
|
2949
|
+
* CategoryApi - object-oriented interface
|
|
2950
|
+
* @export
|
|
2951
|
+
* @class CategoryApi
|
|
2952
|
+
* @extends {BaseAPI}
|
|
2953
|
+
*/
|
|
2954
|
+
export declare class CategoryApi extends BaseAPI {
|
|
2955
|
+
/**
|
|
2956
|
+
* List all categories
|
|
2957
|
+
* @summary List categories
|
|
2958
|
+
* @param {*} [options] Override http request option.
|
|
2959
|
+
* @throws {RequiredError}
|
|
2960
|
+
* @memberof CategoryApi
|
|
2961
|
+
*/
|
|
2962
|
+
listCategories(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CategoriesResponse, any>>;
|
|
2963
|
+
}
|
|
2859
2964
|
/**
|
|
2860
2965
|
* ClientApi - axios parameter creator
|
|
2861
2966
|
* @export
|
|
@@ -3721,6 +3826,7 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3721
3826
|
* List existing products
|
|
3722
3827
|
* @summary List existing products
|
|
3723
3828
|
* @param {ProductKind} [kind] The product kind
|
|
3829
|
+
* @param {string} [categoryID] The product category ID
|
|
3724
3830
|
* @param {string} [search] search string
|
|
3725
3831
|
* @param {ProductUsage} [usage] The product usage
|
|
3726
3832
|
* @param {ProductStatus} [status] The product status
|
|
@@ -3731,7 +3837,7 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3731
3837
|
* @param {*} [options] Override http request option.
|
|
3732
3838
|
* @throws {RequiredError}
|
|
3733
3839
|
*/
|
|
3734
|
-
listProducts: (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3840
|
+
listProducts: (kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3735
3841
|
/**
|
|
3736
3842
|
* Update a product by id
|
|
3737
3843
|
* @summary Update a product by id
|
|
@@ -3808,6 +3914,7 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
3808
3914
|
* List existing products
|
|
3809
3915
|
* @summary List existing products
|
|
3810
3916
|
* @param {ProductKind} [kind] The product kind
|
|
3917
|
+
* @param {string} [categoryID] The product category ID
|
|
3811
3918
|
* @param {string} [search] search string
|
|
3812
3919
|
* @param {ProductUsage} [usage] The product usage
|
|
3813
3920
|
* @param {ProductStatus} [status] The product status
|
|
@@ -3818,7 +3925,7 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
3818
3925
|
* @param {*} [options] Override http request option.
|
|
3819
3926
|
* @throws {RequiredError}
|
|
3820
3927
|
*/
|
|
3821
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
|
|
3928
|
+
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>>;
|
|
3822
3929
|
/**
|
|
3823
3930
|
* Update a product by id
|
|
3824
3931
|
* @summary Update a product by id
|
|
@@ -3895,6 +4002,7 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
3895
4002
|
* List existing products
|
|
3896
4003
|
* @summary List existing products
|
|
3897
4004
|
* @param {ProductKind} [kind] The product kind
|
|
4005
|
+
* @param {string} [categoryID] The product category ID
|
|
3898
4006
|
* @param {string} [search] search string
|
|
3899
4007
|
* @param {ProductUsage} [usage] The product usage
|
|
3900
4008
|
* @param {ProductStatus} [status] The product status
|
|
@@ -3905,7 +4013,7 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
3905
4013
|
* @param {*} [options] Override http request option.
|
|
3906
4014
|
* @throws {RequiredError}
|
|
3907
4015
|
*/
|
|
3908
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
|
|
4016
|
+
listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
|
|
3909
4017
|
/**
|
|
3910
4018
|
* Update a product by id
|
|
3911
4019
|
* @summary Update a product by id
|
|
@@ -3991,6 +4099,7 @@ export declare class ProductApi extends BaseAPI {
|
|
|
3991
4099
|
* List existing products
|
|
3992
4100
|
* @summary List existing products
|
|
3993
4101
|
* @param {ProductKind} [kind] The product kind
|
|
4102
|
+
* @param {string} [categoryID] The product category ID
|
|
3994
4103
|
* @param {string} [search] search string
|
|
3995
4104
|
* @param {ProductUsage} [usage] The product usage
|
|
3996
4105
|
* @param {ProductStatus} [status] The product status
|
|
@@ -4002,7 +4111,7 @@ export declare class ProductApi extends BaseAPI {
|
|
|
4002
4111
|
* @throws {RequiredError}
|
|
4003
4112
|
* @memberof ProductApi
|
|
4004
4113
|
*/
|
|
4005
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
4114
|
+
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>>;
|
|
4006
4115
|
/**
|
|
4007
4116
|
* Update a product by id
|
|
4008
4117
|
* @summary Update a product by id
|
package/dist/esm/api.js
CHANGED
|
@@ -704,6 +704,99 @@ export class BalanceApi extends BaseAPI {
|
|
|
704
704
|
return BalanceApiFp(this.configuration).updateBalance(beneficiaryValue, balanceUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
+
/**
|
|
708
|
+
* CategoryApi - axios parameter creator
|
|
709
|
+
* @export
|
|
710
|
+
*/
|
|
711
|
+
export const CategoryApiAxiosParamCreator = function (configuration) {
|
|
712
|
+
return {
|
|
713
|
+
/**
|
|
714
|
+
* List all categories
|
|
715
|
+
* @summary List categories
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @throws {RequiredError}
|
|
718
|
+
*/
|
|
719
|
+
listCategories: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
720
|
+
const localVarPath = `/categories`;
|
|
721
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
722
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
723
|
+
let baseOptions;
|
|
724
|
+
if (configuration) {
|
|
725
|
+
baseOptions = configuration.baseOptions;
|
|
726
|
+
}
|
|
727
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
728
|
+
const localVarHeaderParameter = {};
|
|
729
|
+
const localVarQueryParameter = {};
|
|
730
|
+
// authentication jwt required
|
|
731
|
+
// http bearer authentication required
|
|
732
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
733
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
734
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
735
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
736
|
+
return {
|
|
737
|
+
url: toPathString(localVarUrlObj),
|
|
738
|
+
options: localVarRequestOptions,
|
|
739
|
+
};
|
|
740
|
+
}),
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
/**
|
|
744
|
+
* CategoryApi - functional programming interface
|
|
745
|
+
* @export
|
|
746
|
+
*/
|
|
747
|
+
export const CategoryApiFp = function (configuration) {
|
|
748
|
+
const localVarAxiosParamCreator = CategoryApiAxiosParamCreator(configuration);
|
|
749
|
+
return {
|
|
750
|
+
/**
|
|
751
|
+
* List all categories
|
|
752
|
+
* @summary List categories
|
|
753
|
+
* @param {*} [options] Override http request option.
|
|
754
|
+
* @throws {RequiredError}
|
|
755
|
+
*/
|
|
756
|
+
listCategories(options) {
|
|
757
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
758
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCategories(options);
|
|
759
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
760
|
+
});
|
|
761
|
+
},
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
/**
|
|
765
|
+
* CategoryApi - factory interface
|
|
766
|
+
* @export
|
|
767
|
+
*/
|
|
768
|
+
export const CategoryApiFactory = function (configuration, basePath, axios) {
|
|
769
|
+
const localVarFp = CategoryApiFp(configuration);
|
|
770
|
+
return {
|
|
771
|
+
/**
|
|
772
|
+
* List all categories
|
|
773
|
+
* @summary List categories
|
|
774
|
+
* @param {*} [options] Override http request option.
|
|
775
|
+
* @throws {RequiredError}
|
|
776
|
+
*/
|
|
777
|
+
listCategories(options) {
|
|
778
|
+
return localVarFp.listCategories(options).then((request) => request(axios, basePath));
|
|
779
|
+
},
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
/**
|
|
783
|
+
* CategoryApi - object-oriented interface
|
|
784
|
+
* @export
|
|
785
|
+
* @class CategoryApi
|
|
786
|
+
* @extends {BaseAPI}
|
|
787
|
+
*/
|
|
788
|
+
export class CategoryApi extends BaseAPI {
|
|
789
|
+
/**
|
|
790
|
+
* List all categories
|
|
791
|
+
* @summary List categories
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
* @memberof CategoryApi
|
|
795
|
+
*/
|
|
796
|
+
listCategories(options) {
|
|
797
|
+
return CategoryApiFp(this.configuration).listCategories(options).then((request) => request(this.axios, this.basePath));
|
|
798
|
+
}
|
|
799
|
+
}
|
|
707
800
|
/**
|
|
708
801
|
* ClientApi - axios parameter creator
|
|
709
802
|
* @export
|
|
@@ -2403,6 +2496,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2403
2496
|
* List existing products
|
|
2404
2497
|
* @summary List existing products
|
|
2405
2498
|
* @param {ProductKind} [kind] The product kind
|
|
2499
|
+
* @param {string} [categoryID] The product category ID
|
|
2406
2500
|
* @param {string} [search] search string
|
|
2407
2501
|
* @param {ProductUsage} [usage] The product usage
|
|
2408
2502
|
* @param {ProductStatus} [status] The product status
|
|
@@ -2413,7 +2507,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2413
2507
|
* @param {*} [options] Override http request option.
|
|
2414
2508
|
* @throws {RequiredError}
|
|
2415
2509
|
*/
|
|
2416
|
-
listProducts: (kind, search, usage, status, availability, segmentID, nextToken, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2510
|
+
listProducts: (kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2417
2511
|
const localVarPath = `/products`;
|
|
2418
2512
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2419
2513
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2430,6 +2524,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2430
2524
|
if (kind !== undefined) {
|
|
2431
2525
|
localVarQueryParameter['kind'] = kind;
|
|
2432
2526
|
}
|
|
2527
|
+
if (categoryID !== undefined) {
|
|
2528
|
+
localVarQueryParameter['categoryID'] = categoryID;
|
|
2529
|
+
}
|
|
2433
2530
|
if (search !== undefined) {
|
|
2434
2531
|
localVarQueryParameter['search'] = search;
|
|
2435
2532
|
}
|
|
@@ -2599,6 +2696,7 @@ export const ProductApiFp = function (configuration) {
|
|
|
2599
2696
|
* List existing products
|
|
2600
2697
|
* @summary List existing products
|
|
2601
2698
|
* @param {ProductKind} [kind] The product kind
|
|
2699
|
+
* @param {string} [categoryID] The product category ID
|
|
2602
2700
|
* @param {string} [search] search string
|
|
2603
2701
|
* @param {ProductUsage} [usage] The product usage
|
|
2604
2702
|
* @param {ProductStatus} [status] The product status
|
|
@@ -2609,9 +2707,9 @@ export const ProductApiFp = function (configuration) {
|
|
|
2609
2707
|
* @param {*} [options] Override http request option.
|
|
2610
2708
|
* @throws {RequiredError}
|
|
2611
2709
|
*/
|
|
2612
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2710
|
+
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2613
2711
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2614
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options);
|
|
2712
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options);
|
|
2615
2713
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2616
2714
|
});
|
|
2617
2715
|
},
|
|
@@ -2713,6 +2811,7 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2713
2811
|
* List existing products
|
|
2714
2812
|
* @summary List existing products
|
|
2715
2813
|
* @param {ProductKind} [kind] The product kind
|
|
2814
|
+
* @param {string} [categoryID] The product category ID
|
|
2716
2815
|
* @param {string} [search] search string
|
|
2717
2816
|
* @param {ProductUsage} [usage] The product usage
|
|
2718
2817
|
* @param {ProductStatus} [status] The product status
|
|
@@ -2723,8 +2822,8 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2723
2822
|
* @param {*} [options] Override http request option.
|
|
2724
2823
|
* @throws {RequiredError}
|
|
2725
2824
|
*/
|
|
2726
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2727
|
-
return localVarFp.listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
|
|
2825
|
+
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2826
|
+
return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
|
|
2728
2827
|
},
|
|
2729
2828
|
/**
|
|
2730
2829
|
* Update a product by id
|
|
@@ -2828,6 +2927,7 @@ export class ProductApi extends BaseAPI {
|
|
|
2828
2927
|
* List existing products
|
|
2829
2928
|
* @summary List existing products
|
|
2830
2929
|
* @param {ProductKind} [kind] The product kind
|
|
2930
|
+
* @param {string} [categoryID] The product category ID
|
|
2831
2931
|
* @param {string} [search] search string
|
|
2832
2932
|
* @param {ProductUsage} [usage] The product usage
|
|
2833
2933
|
* @param {ProductStatus} [status] The product status
|
|
@@ -2839,8 +2939,8 @@ export class ProductApi extends BaseAPI {
|
|
|
2839
2939
|
* @throws {RequiredError}
|
|
2840
2940
|
* @memberof ProductApi
|
|
2841
2941
|
*/
|
|
2842
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2843
|
-
return ProductApiFp(this.configuration).listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
|
|
2942
|
+
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2943
|
+
return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
|
|
2844
2944
|
}
|
|
2845
2945
|
/**
|
|
2846
2946
|
* Update a product by id
|