flexinet-api 0.0.520-prerelease0 → 0.0.523-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 +33 -7
- package/dist/api.d.ts +26 -4
- package/dist/api.js +14 -7
- package/dist/esm/api.d.ts +26 -4
- package/dist/esm/api.js +14 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.523-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.523-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -703,6 +703,18 @@ export interface CustomeruserDetails {
|
|
|
703
703
|
* @memberof CustomeruserDetails
|
|
704
704
|
*/
|
|
705
705
|
'email': string;
|
|
706
|
+
/**
|
|
707
|
+
*
|
|
708
|
+
* @type {string}
|
|
709
|
+
* @memberof CustomeruserDetails
|
|
710
|
+
*/
|
|
711
|
+
'firstName'?: string;
|
|
712
|
+
/**
|
|
713
|
+
*
|
|
714
|
+
* @type {string}
|
|
715
|
+
* @memberof CustomeruserDetails
|
|
716
|
+
*/
|
|
717
|
+
'lastName'?: string;
|
|
706
718
|
}
|
|
707
719
|
/**
|
|
708
720
|
*
|
|
@@ -1673,6 +1685,12 @@ export interface Profile {
|
|
|
1673
1685
|
* @memberof Profile
|
|
1674
1686
|
*/
|
|
1675
1687
|
'details': ProfileDetails;
|
|
1688
|
+
/**
|
|
1689
|
+
*
|
|
1690
|
+
* @type {Client}
|
|
1691
|
+
* @memberof Profile
|
|
1692
|
+
*/
|
|
1693
|
+
'client'?: Client;
|
|
1676
1694
|
}
|
|
1677
1695
|
/**
|
|
1678
1696
|
* @type ProfileDetails
|
|
@@ -6294,10 +6312,11 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
6294
6312
|
* @param {string} [categoryID] The product category ID
|
|
6295
6313
|
* @param {string} [search] search string
|
|
6296
6314
|
* @param {ProductAvailability} [availability] The product availability
|
|
6315
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
6297
6316
|
* @param {*} [options] Override http request option.
|
|
6298
6317
|
* @throws {RequiredError}
|
|
6299
6318
|
*/
|
|
6300
|
-
listUserProducts: async (kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6319
|
+
listUserProducts: async (kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6301
6320
|
const localVarPath = `/users/products`;
|
|
6302
6321
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6303
6322
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6334,6 +6353,10 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
6334
6353
|
localVarQueryParameter['availability'] = availability;
|
|
6335
6354
|
}
|
|
6336
6355
|
|
|
6356
|
+
if (ids) {
|
|
6357
|
+
localVarQueryParameter['ids'] = ids;
|
|
6358
|
+
}
|
|
6359
|
+
|
|
6337
6360
|
|
|
6338
6361
|
|
|
6339
6362
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -6524,11 +6547,12 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
|
6524
6547
|
* @param {string} [categoryID] The product category ID
|
|
6525
6548
|
* @param {string} [search] search string
|
|
6526
6549
|
* @param {ProductAvailability} [availability] The product availability
|
|
6550
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
6527
6551
|
* @param {*} [options] Override http request option.
|
|
6528
6552
|
* @throws {RequiredError}
|
|
6529
6553
|
*/
|
|
6530
|
-
async listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
|
|
6531
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, options);
|
|
6554
|
+
async listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
|
|
6555
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, ids, options);
|
|
6532
6556
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6533
6557
|
},
|
|
6534
6558
|
/**
|
|
@@ -6670,11 +6694,12 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
|
6670
6694
|
* @param {string} [categoryID] The product category ID
|
|
6671
6695
|
* @param {string} [search] search string
|
|
6672
6696
|
* @param {ProductAvailability} [availability] The product availability
|
|
6697
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
6673
6698
|
* @param {*} [options] Override http request option.
|
|
6674
6699
|
* @throws {RequiredError}
|
|
6675
6700
|
*/
|
|
6676
|
-
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: any): AxiosPromise<ProductsResponse> {
|
|
6677
|
-
return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, options).then((request) => request(axios, basePath));
|
|
6701
|
+
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse> {
|
|
6702
|
+
return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, ids, options).then((request) => request(axios, basePath));
|
|
6678
6703
|
},
|
|
6679
6704
|
/**
|
|
6680
6705
|
* Update a product by id
|
|
@@ -6834,12 +6859,13 @@ export class ProductApi extends BaseAPI {
|
|
|
6834
6859
|
* @param {string} [categoryID] The product category ID
|
|
6835
6860
|
* @param {string} [search] search string
|
|
6836
6861
|
* @param {ProductAvailability} [availability] The product availability
|
|
6862
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
6837
6863
|
* @param {*} [options] Override http request option.
|
|
6838
6864
|
* @throws {RequiredError}
|
|
6839
6865
|
* @memberof ProductApi
|
|
6840
6866
|
*/
|
|
6841
|
-
public listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig) {
|
|
6842
|
-
return ProductApiFp(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, options).then((request) => request(this.axios, this.basePath));
|
|
6867
|
+
public listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: AxiosRequestConfig) {
|
|
6868
|
+
return ProductApiFp(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, ids, options).then((request) => request(this.axios, this.basePath));
|
|
6843
6869
|
}
|
|
6844
6870
|
|
|
6845
6871
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -661,6 +661,18 @@ export interface CustomeruserDetails {
|
|
|
661
661
|
* @memberof CustomeruserDetails
|
|
662
662
|
*/
|
|
663
663
|
'email': string;
|
|
664
|
+
/**
|
|
665
|
+
*
|
|
666
|
+
* @type {string}
|
|
667
|
+
* @memberof CustomeruserDetails
|
|
668
|
+
*/
|
|
669
|
+
'firstName'?: string;
|
|
670
|
+
/**
|
|
671
|
+
*
|
|
672
|
+
* @type {string}
|
|
673
|
+
* @memberof CustomeruserDetails
|
|
674
|
+
*/
|
|
675
|
+
'lastName'?: string;
|
|
664
676
|
}
|
|
665
677
|
/**
|
|
666
678
|
*
|
|
@@ -1585,6 +1597,12 @@ export interface Profile {
|
|
|
1585
1597
|
* @memberof Profile
|
|
1586
1598
|
*/
|
|
1587
1599
|
'details': ProfileDetails;
|
|
1600
|
+
/**
|
|
1601
|
+
*
|
|
1602
|
+
* @type {Client}
|
|
1603
|
+
* @memberof Profile
|
|
1604
|
+
*/
|
|
1605
|
+
'client'?: Client;
|
|
1588
1606
|
}
|
|
1589
1607
|
/**
|
|
1590
1608
|
* @type ProfileDetails
|
|
@@ -4483,10 +4501,11 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
4483
4501
|
* @param {string} [categoryID] The product category ID
|
|
4484
4502
|
* @param {string} [search] search string
|
|
4485
4503
|
* @param {ProductAvailability} [availability] The product availability
|
|
4504
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
4486
4505
|
* @param {*} [options] Override http request option.
|
|
4487
4506
|
* @throws {RequiredError}
|
|
4488
4507
|
*/
|
|
4489
|
-
listUserProducts: (kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4508
|
+
listUserProducts: (kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4490
4509
|
/**
|
|
4491
4510
|
* Update a product by id
|
|
4492
4511
|
* @summary Update a product by id
|
|
@@ -4599,10 +4618,11 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
4599
4618
|
* @param {string} [categoryID] The product category ID
|
|
4600
4619
|
* @param {string} [search] search string
|
|
4601
4620
|
* @param {ProductAvailability} [availability] The product availability
|
|
4621
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
4602
4622
|
* @param {*} [options] Override http request option.
|
|
4603
4623
|
* @throws {RequiredError}
|
|
4604
4624
|
*/
|
|
4605
|
-
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
|
|
4625
|
+
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
|
|
4606
4626
|
/**
|
|
4607
4627
|
* Update a product by id
|
|
4608
4628
|
* @summary Update a product by id
|
|
@@ -4715,10 +4735,11 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
4715
4735
|
* @param {string} [categoryID] The product category ID
|
|
4716
4736
|
* @param {string} [search] search string
|
|
4717
4737
|
* @param {ProductAvailability} [availability] The product availability
|
|
4738
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
4718
4739
|
* @param {*} [options] Override http request option.
|
|
4719
4740
|
* @throws {RequiredError}
|
|
4720
4741
|
*/
|
|
4721
|
-
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: any): AxiosPromise<ProductsResponse>;
|
|
4742
|
+
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
|
|
4722
4743
|
/**
|
|
4723
4744
|
* Update a product by id
|
|
4724
4745
|
* @summary Update a product by id
|
|
@@ -4843,11 +4864,12 @@ export declare class ProductApi extends BaseAPI {
|
|
|
4843
4864
|
* @param {string} [categoryID] The product category ID
|
|
4844
4865
|
* @param {string} [search] search string
|
|
4845
4866
|
* @param {ProductAvailability} [availability] The product availability
|
|
4867
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
4846
4868
|
* @param {*} [options] Override http request option.
|
|
4847
4869
|
* @throws {RequiredError}
|
|
4848
4870
|
* @memberof ProductApi
|
|
4849
4871
|
*/
|
|
4850
|
-
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
4872
|
+
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
4851
4873
|
/**
|
|
4852
4874
|
* Update a product by id
|
|
4853
4875
|
* @summary Update a product by id
|
package/dist/api.js
CHANGED
|
@@ -3058,10 +3058,11 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3058
3058
|
* @param {string} [categoryID] The product category ID
|
|
3059
3059
|
* @param {string} [search] search string
|
|
3060
3060
|
* @param {ProductAvailability} [availability] The product availability
|
|
3061
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3061
3062
|
* @param {*} [options] Override http request option.
|
|
3062
3063
|
* @throws {RequiredError}
|
|
3063
3064
|
*/
|
|
3064
|
-
listUserProducts: (kind, nextToken, categoryID, search, availability, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3065
|
+
listUserProducts: (kind, nextToken, categoryID, search, availability, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3065
3066
|
const localVarPath = `/users/products`;
|
|
3066
3067
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3067
3068
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -3090,6 +3091,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3090
3091
|
if (availability !== undefined) {
|
|
3091
3092
|
localVarQueryParameter['availability'] = availability;
|
|
3092
3093
|
}
|
|
3094
|
+
if (ids) {
|
|
3095
|
+
localVarQueryParameter['ids'] = ids;
|
|
3096
|
+
}
|
|
3093
3097
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3094
3098
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3095
3099
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3290,12 +3294,13 @@ const ProductApiFp = function (configuration) {
|
|
|
3290
3294
|
* @param {string} [categoryID] The product category ID
|
|
3291
3295
|
* @param {string} [search] search string
|
|
3292
3296
|
* @param {ProductAvailability} [availability] The product availability
|
|
3297
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3293
3298
|
* @param {*} [options] Override http request option.
|
|
3294
3299
|
* @throws {RequiredError}
|
|
3295
3300
|
*/
|
|
3296
|
-
listUserProducts(kind, nextToken, categoryID, search, availability, options) {
|
|
3301
|
+
listUserProducts(kind, nextToken, categoryID, search, availability, ids, options) {
|
|
3297
3302
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3298
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, options);
|
|
3303
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, ids, options);
|
|
3299
3304
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3300
3305
|
});
|
|
3301
3306
|
},
|
|
@@ -3440,11 +3445,12 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3440
3445
|
* @param {string} [categoryID] The product category ID
|
|
3441
3446
|
* @param {string} [search] search string
|
|
3442
3447
|
* @param {ProductAvailability} [availability] The product availability
|
|
3448
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3443
3449
|
* @param {*} [options] Override http request option.
|
|
3444
3450
|
* @throws {RequiredError}
|
|
3445
3451
|
*/
|
|
3446
|
-
listUserProducts(kind, nextToken, categoryID, search, availability, options) {
|
|
3447
|
-
return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, options).then((request) => request(axios, basePath));
|
|
3452
|
+
listUserProducts(kind, nextToken, categoryID, search, availability, ids, options) {
|
|
3453
|
+
return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, ids, options).then((request) => request(axios, basePath));
|
|
3448
3454
|
},
|
|
3449
3455
|
/**
|
|
3450
3456
|
* Update a product by id
|
|
@@ -3594,12 +3600,13 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
3594
3600
|
* @param {string} [categoryID] The product category ID
|
|
3595
3601
|
* @param {string} [search] search string
|
|
3596
3602
|
* @param {ProductAvailability} [availability] The product availability
|
|
3603
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3597
3604
|
* @param {*} [options] Override http request option.
|
|
3598
3605
|
* @throws {RequiredError}
|
|
3599
3606
|
* @memberof ProductApi
|
|
3600
3607
|
*/
|
|
3601
|
-
listUserProducts(kind, nextToken, categoryID, search, availability, options) {
|
|
3602
|
-
return (0, exports.ProductApiFp)(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, options).then((request) => request(this.axios, this.basePath));
|
|
3608
|
+
listUserProducts(kind, nextToken, categoryID, search, availability, ids, options) {
|
|
3609
|
+
return (0, exports.ProductApiFp)(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, ids, options).then((request) => request(this.axios, this.basePath));
|
|
3603
3610
|
}
|
|
3604
3611
|
/**
|
|
3605
3612
|
* Update a product by id
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -661,6 +661,18 @@ export interface CustomeruserDetails {
|
|
|
661
661
|
* @memberof CustomeruserDetails
|
|
662
662
|
*/
|
|
663
663
|
'email': string;
|
|
664
|
+
/**
|
|
665
|
+
*
|
|
666
|
+
* @type {string}
|
|
667
|
+
* @memberof CustomeruserDetails
|
|
668
|
+
*/
|
|
669
|
+
'firstName'?: string;
|
|
670
|
+
/**
|
|
671
|
+
*
|
|
672
|
+
* @type {string}
|
|
673
|
+
* @memberof CustomeruserDetails
|
|
674
|
+
*/
|
|
675
|
+
'lastName'?: string;
|
|
664
676
|
}
|
|
665
677
|
/**
|
|
666
678
|
*
|
|
@@ -1585,6 +1597,12 @@ export interface Profile {
|
|
|
1585
1597
|
* @memberof Profile
|
|
1586
1598
|
*/
|
|
1587
1599
|
'details': ProfileDetails;
|
|
1600
|
+
/**
|
|
1601
|
+
*
|
|
1602
|
+
* @type {Client}
|
|
1603
|
+
* @memberof Profile
|
|
1604
|
+
*/
|
|
1605
|
+
'client'?: Client;
|
|
1588
1606
|
}
|
|
1589
1607
|
/**
|
|
1590
1608
|
* @type ProfileDetails
|
|
@@ -4483,10 +4501,11 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
4483
4501
|
* @param {string} [categoryID] The product category ID
|
|
4484
4502
|
* @param {string} [search] search string
|
|
4485
4503
|
* @param {ProductAvailability} [availability] The product availability
|
|
4504
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
4486
4505
|
* @param {*} [options] Override http request option.
|
|
4487
4506
|
* @throws {RequiredError}
|
|
4488
4507
|
*/
|
|
4489
|
-
listUserProducts: (kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4508
|
+
listUserProducts: (kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4490
4509
|
/**
|
|
4491
4510
|
* Update a product by id
|
|
4492
4511
|
* @summary Update a product by id
|
|
@@ -4599,10 +4618,11 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
4599
4618
|
* @param {string} [categoryID] The product category ID
|
|
4600
4619
|
* @param {string} [search] search string
|
|
4601
4620
|
* @param {ProductAvailability} [availability] The product availability
|
|
4621
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
4602
4622
|
* @param {*} [options] Override http request option.
|
|
4603
4623
|
* @throws {RequiredError}
|
|
4604
4624
|
*/
|
|
4605
|
-
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
|
|
4625
|
+
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
|
|
4606
4626
|
/**
|
|
4607
4627
|
* Update a product by id
|
|
4608
4628
|
* @summary Update a product by id
|
|
@@ -4715,10 +4735,11 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
4715
4735
|
* @param {string} [categoryID] The product category ID
|
|
4716
4736
|
* @param {string} [search] search string
|
|
4717
4737
|
* @param {ProductAvailability} [availability] The product availability
|
|
4738
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
4718
4739
|
* @param {*} [options] Override http request option.
|
|
4719
4740
|
* @throws {RequiredError}
|
|
4720
4741
|
*/
|
|
4721
|
-
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: any): AxiosPromise<ProductsResponse>;
|
|
4742
|
+
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
|
|
4722
4743
|
/**
|
|
4723
4744
|
* Update a product by id
|
|
4724
4745
|
* @summary Update a product by id
|
|
@@ -4843,11 +4864,12 @@ export declare class ProductApi extends BaseAPI {
|
|
|
4843
4864
|
* @param {string} [categoryID] The product category ID
|
|
4844
4865
|
* @param {string} [search] search string
|
|
4845
4866
|
* @param {ProductAvailability} [availability] The product availability
|
|
4867
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
4846
4868
|
* @param {*} [options] Override http request option.
|
|
4847
4869
|
* @throws {RequiredError}
|
|
4848
4870
|
* @memberof ProductApi
|
|
4849
4871
|
*/
|
|
4850
|
-
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
4872
|
+
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
4851
4873
|
/**
|
|
4852
4874
|
* Update a product by id
|
|
4853
4875
|
* @summary Update a product by id
|
package/dist/esm/api.js
CHANGED
|
@@ -3013,10 +3013,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3013
3013
|
* @param {string} [categoryID] The product category ID
|
|
3014
3014
|
* @param {string} [search] search string
|
|
3015
3015
|
* @param {ProductAvailability} [availability] The product availability
|
|
3016
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3016
3017
|
* @param {*} [options] Override http request option.
|
|
3017
3018
|
* @throws {RequiredError}
|
|
3018
3019
|
*/
|
|
3019
|
-
listUserProducts: (kind, nextToken, categoryID, search, availability, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3020
|
+
listUserProducts: (kind, nextToken, categoryID, search, availability, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3020
3021
|
const localVarPath = `/users/products`;
|
|
3021
3022
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3022
3023
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3045,6 +3046,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3045
3046
|
if (availability !== undefined) {
|
|
3046
3047
|
localVarQueryParameter['availability'] = availability;
|
|
3047
3048
|
}
|
|
3049
|
+
if (ids) {
|
|
3050
|
+
localVarQueryParameter['ids'] = ids;
|
|
3051
|
+
}
|
|
3048
3052
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3049
3053
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3050
3054
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3244,12 +3248,13 @@ export const ProductApiFp = function (configuration) {
|
|
|
3244
3248
|
* @param {string} [categoryID] The product category ID
|
|
3245
3249
|
* @param {string} [search] search string
|
|
3246
3250
|
* @param {ProductAvailability} [availability] The product availability
|
|
3251
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3247
3252
|
* @param {*} [options] Override http request option.
|
|
3248
3253
|
* @throws {RequiredError}
|
|
3249
3254
|
*/
|
|
3250
|
-
listUserProducts(kind, nextToken, categoryID, search, availability, options) {
|
|
3255
|
+
listUserProducts(kind, nextToken, categoryID, search, availability, ids, options) {
|
|
3251
3256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3252
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, options);
|
|
3257
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, ids, options);
|
|
3253
3258
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3254
3259
|
});
|
|
3255
3260
|
},
|
|
@@ -3393,11 +3398,12 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3393
3398
|
* @param {string} [categoryID] The product category ID
|
|
3394
3399
|
* @param {string} [search] search string
|
|
3395
3400
|
* @param {ProductAvailability} [availability] The product availability
|
|
3401
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3396
3402
|
* @param {*} [options] Override http request option.
|
|
3397
3403
|
* @throws {RequiredError}
|
|
3398
3404
|
*/
|
|
3399
|
-
listUserProducts(kind, nextToken, categoryID, search, availability, options) {
|
|
3400
|
-
return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, options).then((request) => request(axios, basePath));
|
|
3405
|
+
listUserProducts(kind, nextToken, categoryID, search, availability, ids, options) {
|
|
3406
|
+
return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, ids, options).then((request) => request(axios, basePath));
|
|
3401
3407
|
},
|
|
3402
3408
|
/**
|
|
3403
3409
|
* Update a product by id
|
|
@@ -3546,12 +3552,13 @@ export class ProductApi extends BaseAPI {
|
|
|
3546
3552
|
* @param {string} [categoryID] The product category ID
|
|
3547
3553
|
* @param {string} [search] search string
|
|
3548
3554
|
* @param {ProductAvailability} [availability] The product availability
|
|
3555
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3549
3556
|
* @param {*} [options] Override http request option.
|
|
3550
3557
|
* @throws {RequiredError}
|
|
3551
3558
|
* @memberof ProductApi
|
|
3552
3559
|
*/
|
|
3553
|
-
listUserProducts(kind, nextToken, categoryID, search, availability, options) {
|
|
3554
|
-
return ProductApiFp(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, options).then((request) => request(this.axios, this.basePath));
|
|
3560
|
+
listUserProducts(kind, nextToken, categoryID, search, availability, ids, options) {
|
|
3561
|
+
return ProductApiFp(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, ids, options).then((request) => request(this.axios, this.basePath));
|
|
3555
3562
|
}
|
|
3556
3563
|
/**
|
|
3557
3564
|
* Update a product by id
|