flexinet-api 0.0.264-prerelease0 → 0.0.266-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 +15 -7
- package/dist/api.d.ts +8 -4
- package/dist/api.js +14 -7
- package/dist/esm/api.d.ts +8 -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.266-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.266-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -5123,10 +5123,11 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5123
5123
|
* @param {ProductAvailability} [availability] The product availability
|
|
5124
5124
|
* @param {string} [segmentID] The segment ID
|
|
5125
5125
|
* @param {string} [nextToken] This is the pagination token
|
|
5126
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
5126
5127
|
* @param {*} [options] Override http request option.
|
|
5127
5128
|
* @throws {RequiredError}
|
|
5128
5129
|
*/
|
|
5129
|
-
listProducts: async (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5130
|
+
listProducts: async (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5130
5131
|
const localVarPath = `/products`;
|
|
5131
5132
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5132
5133
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5171,6 +5172,10 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5171
5172
|
localVarQueryParameter['nextToken'] = nextToken;
|
|
5172
5173
|
}
|
|
5173
5174
|
|
|
5175
|
+
if (ids) {
|
|
5176
|
+
localVarQueryParameter['ids'] = ids;
|
|
5177
|
+
}
|
|
5178
|
+
|
|
5174
5179
|
|
|
5175
5180
|
|
|
5176
5181
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5322,11 +5327,12 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
|
5322
5327
|
* @param {ProductAvailability} [availability] The product availability
|
|
5323
5328
|
* @param {string} [segmentID] The segment ID
|
|
5324
5329
|
* @param {string} [nextToken] This is the pagination token
|
|
5330
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
5325
5331
|
* @param {*} [options] Override http request option.
|
|
5326
5332
|
* @throws {RequiredError}
|
|
5327
5333
|
*/
|
|
5328
|
-
async listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
|
|
5329
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options);
|
|
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);
|
|
5330
5336
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5331
5337
|
},
|
|
5332
5338
|
/**
|
|
@@ -5432,11 +5438,12 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
|
5432
5438
|
* @param {ProductAvailability} [availability] The product availability
|
|
5433
5439
|
* @param {string} [segmentID] The segment ID
|
|
5434
5440
|
* @param {string} [nextToken] This is the pagination token
|
|
5441
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
5435
5442
|
* @param {*} [options] Override http request option.
|
|
5436
5443
|
* @throws {RequiredError}
|
|
5437
5444
|
*/
|
|
5438
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: any): AxiosPromise<ProductsResponse> {
|
|
5439
|
-
return localVarFp.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(axios, basePath));
|
|
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));
|
|
5440
5447
|
},
|
|
5441
5448
|
/**
|
|
5442
5449
|
* Update a product by id
|
|
@@ -5554,12 +5561,13 @@ export class ProductApi extends BaseAPI {
|
|
|
5554
5561
|
* @param {ProductAvailability} [availability] The product availability
|
|
5555
5562
|
* @param {string} [segmentID] The segment ID
|
|
5556
5563
|
* @param {string} [nextToken] This is the pagination token
|
|
5564
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
5557
5565
|
* @param {*} [options] Override http request option.
|
|
5558
5566
|
* @throws {RequiredError}
|
|
5559
5567
|
* @memberof ProductApi
|
|
5560
5568
|
*/
|
|
5561
|
-
public listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig) {
|
|
5562
|
-
return ProductApiFp(this.configuration).listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
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));
|
|
5563
5571
|
}
|
|
5564
5572
|
|
|
5565
5573
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -3727,10 +3727,11 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3727
3727
|
* @param {ProductAvailability} [availability] The product availability
|
|
3728
3728
|
* @param {string} [segmentID] The segment ID
|
|
3729
3729
|
* @param {string} [nextToken] This is the pagination token
|
|
3730
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3730
3731
|
* @param {*} [options] Override http request option.
|
|
3731
3732
|
* @throws {RequiredError}
|
|
3732
3733
|
*/
|
|
3733
|
-
listProducts: (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3734
|
+
listProducts: (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3734
3735
|
/**
|
|
3735
3736
|
* Update a product by id
|
|
3736
3737
|
* @summary Update a product by id
|
|
@@ -3813,10 +3814,11 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
3813
3814
|
* @param {ProductAvailability} [availability] The product availability
|
|
3814
3815
|
* @param {string} [segmentID] The segment ID
|
|
3815
3816
|
* @param {string} [nextToken] This is the pagination token
|
|
3817
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3816
3818
|
* @param {*} [options] Override http request option.
|
|
3817
3819
|
* @throws {RequiredError}
|
|
3818
3820
|
*/
|
|
3819
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
|
|
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>>;
|
|
3820
3822
|
/**
|
|
3821
3823
|
* Update a product by id
|
|
3822
3824
|
* @summary Update a product by id
|
|
@@ -3899,10 +3901,11 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
3899
3901
|
* @param {ProductAvailability} [availability] The product availability
|
|
3900
3902
|
* @param {string} [segmentID] The segment ID
|
|
3901
3903
|
* @param {string} [nextToken] This is the pagination token
|
|
3904
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3902
3905
|
* @param {*} [options] Override http request option.
|
|
3903
3906
|
* @throws {RequiredError}
|
|
3904
3907
|
*/
|
|
3905
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: any): AxiosPromise<ProductsResponse>;
|
|
3908
|
+
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
|
|
3906
3909
|
/**
|
|
3907
3910
|
* Update a product by id
|
|
3908
3911
|
* @summary Update a product by id
|
|
@@ -3994,11 +3997,12 @@ export declare class ProductApi extends BaseAPI {
|
|
|
3994
3997
|
* @param {ProductAvailability} [availability] The product availability
|
|
3995
3998
|
* @param {string} [segmentID] The segment ID
|
|
3996
3999
|
* @param {string} [nextToken] This is the pagination token
|
|
4000
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3997
4001
|
* @param {*} [options] Override http request option.
|
|
3998
4002
|
* @throws {RequiredError}
|
|
3999
4003
|
* @memberof ProductApi
|
|
4000
4004
|
*/
|
|
4001
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
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>>;
|
|
4002
4006
|
/**
|
|
4003
4007
|
* Update a product by id
|
|
4004
4008
|
* @summary Update a product by id
|
package/dist/api.js
CHANGED
|
@@ -2445,10 +2445,11 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2445
2445
|
* @param {ProductAvailability} [availability] The product availability
|
|
2446
2446
|
* @param {string} [segmentID] The segment ID
|
|
2447
2447
|
* @param {string} [nextToken] This is the pagination token
|
|
2448
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
2448
2449
|
* @param {*} [options] Override http request option.
|
|
2449
2450
|
* @throws {RequiredError}
|
|
2450
2451
|
*/
|
|
2451
|
-
listProducts: (kind, search, usage, status, availability, segmentID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2452
|
+
listProducts: (kind, search, usage, status, availability, segmentID, nextToken, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2452
2453
|
const localVarPath = `/products`;
|
|
2453
2454
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2454
2455
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2483,6 +2484,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2483
2484
|
if (nextToken !== undefined) {
|
|
2484
2485
|
localVarQueryParameter['nextToken'] = nextToken;
|
|
2485
2486
|
}
|
|
2487
|
+
if (ids) {
|
|
2488
|
+
localVarQueryParameter['ids'] = ids;
|
|
2489
|
+
}
|
|
2486
2490
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2487
2491
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2488
2492
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2638,12 +2642,13 @@ const ProductApiFp = function (configuration) {
|
|
|
2638
2642
|
* @param {ProductAvailability} [availability] The product availability
|
|
2639
2643
|
* @param {string} [segmentID] The segment ID
|
|
2640
2644
|
* @param {string} [nextToken] This is the pagination token
|
|
2645
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
2641
2646
|
* @param {*} [options] Override http request option.
|
|
2642
2647
|
* @throws {RequiredError}
|
|
2643
2648
|
*/
|
|
2644
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
|
|
2649
|
+
listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2645
2650
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2646
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options);
|
|
2651
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options);
|
|
2647
2652
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2648
2653
|
});
|
|
2649
2654
|
},
|
|
@@ -2752,11 +2757,12 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2752
2757
|
* @param {ProductAvailability} [availability] The product availability
|
|
2753
2758
|
* @param {string} [segmentID] The segment ID
|
|
2754
2759
|
* @param {string} [nextToken] This is the pagination token
|
|
2760
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
2755
2761
|
* @param {*} [options] Override http request option.
|
|
2756
2762
|
* @throws {RequiredError}
|
|
2757
2763
|
*/
|
|
2758
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
|
|
2759
|
-
return localVarFp.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(axios, basePath));
|
|
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));
|
|
2760
2766
|
},
|
|
2761
2767
|
/**
|
|
2762
2768
|
* Update a product by id
|
|
@@ -2867,12 +2873,13 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
2867
2873
|
* @param {ProductAvailability} [availability] The product availability
|
|
2868
2874
|
* @param {string} [segmentID] The segment ID
|
|
2869
2875
|
* @param {string} [nextToken] This is the pagination token
|
|
2876
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
2870
2877
|
* @param {*} [options] Override http request option.
|
|
2871
2878
|
* @throws {RequiredError}
|
|
2872
2879
|
* @memberof ProductApi
|
|
2873
2880
|
*/
|
|
2874
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
|
|
2875
|
-
return (0, exports.ProductApiFp)(this.configuration).listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
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));
|
|
2876
2883
|
}
|
|
2877
2884
|
/**
|
|
2878
2885
|
* Update a product by id
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -3727,10 +3727,11 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3727
3727
|
* @param {ProductAvailability} [availability] The product availability
|
|
3728
3728
|
* @param {string} [segmentID] The segment ID
|
|
3729
3729
|
* @param {string} [nextToken] This is the pagination token
|
|
3730
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3730
3731
|
* @param {*} [options] Override http request option.
|
|
3731
3732
|
* @throws {RequiredError}
|
|
3732
3733
|
*/
|
|
3733
|
-
listProducts: (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3734
|
+
listProducts: (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3734
3735
|
/**
|
|
3735
3736
|
* Update a product by id
|
|
3736
3737
|
* @summary Update a product by id
|
|
@@ -3813,10 +3814,11 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
3813
3814
|
* @param {ProductAvailability} [availability] The product availability
|
|
3814
3815
|
* @param {string} [segmentID] The segment ID
|
|
3815
3816
|
* @param {string} [nextToken] This is the pagination token
|
|
3817
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3816
3818
|
* @param {*} [options] Override http request option.
|
|
3817
3819
|
* @throws {RequiredError}
|
|
3818
3820
|
*/
|
|
3819
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
|
|
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>>;
|
|
3820
3822
|
/**
|
|
3821
3823
|
* Update a product by id
|
|
3822
3824
|
* @summary Update a product by id
|
|
@@ -3899,10 +3901,11 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
3899
3901
|
* @param {ProductAvailability} [availability] The product availability
|
|
3900
3902
|
* @param {string} [segmentID] The segment ID
|
|
3901
3903
|
* @param {string} [nextToken] This is the pagination token
|
|
3904
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3902
3905
|
* @param {*} [options] Override http request option.
|
|
3903
3906
|
* @throws {RequiredError}
|
|
3904
3907
|
*/
|
|
3905
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: any): AxiosPromise<ProductsResponse>;
|
|
3908
|
+
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
|
|
3906
3909
|
/**
|
|
3907
3910
|
* Update a product by id
|
|
3908
3911
|
* @summary Update a product by id
|
|
@@ -3994,11 +3997,12 @@ export declare class ProductApi extends BaseAPI {
|
|
|
3994
3997
|
* @param {ProductAvailability} [availability] The product availability
|
|
3995
3998
|
* @param {string} [segmentID] The segment ID
|
|
3996
3999
|
* @param {string} [nextToken] This is the pagination token
|
|
4000
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
3997
4001
|
* @param {*} [options] Override http request option.
|
|
3998
4002
|
* @throws {RequiredError}
|
|
3999
4003
|
* @memberof ProductApi
|
|
4000
4004
|
*/
|
|
4001
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
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>>;
|
|
4002
4006
|
/**
|
|
4003
4007
|
* Update a product by id
|
|
4004
4008
|
* @summary Update a product by id
|
package/dist/esm/api.js
CHANGED
|
@@ -2409,10 +2409,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2409
2409
|
* @param {ProductAvailability} [availability] The product availability
|
|
2410
2410
|
* @param {string} [segmentID] The segment ID
|
|
2411
2411
|
* @param {string} [nextToken] This is the pagination token
|
|
2412
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
2412
2413
|
* @param {*} [options] Override http request option.
|
|
2413
2414
|
* @throws {RequiredError}
|
|
2414
2415
|
*/
|
|
2415
|
-
listProducts: (kind, search, usage, status, availability, segmentID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2416
|
+
listProducts: (kind, search, usage, status, availability, segmentID, nextToken, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2416
2417
|
const localVarPath = `/products`;
|
|
2417
2418
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2418
2419
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2447,6 +2448,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2447
2448
|
if (nextToken !== undefined) {
|
|
2448
2449
|
localVarQueryParameter['nextToken'] = nextToken;
|
|
2449
2450
|
}
|
|
2451
|
+
if (ids) {
|
|
2452
|
+
localVarQueryParameter['ids'] = ids;
|
|
2453
|
+
}
|
|
2450
2454
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2451
2455
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2452
2456
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2601,12 +2605,13 @@ export const ProductApiFp = function (configuration) {
|
|
|
2601
2605
|
* @param {ProductAvailability} [availability] The product availability
|
|
2602
2606
|
* @param {string} [segmentID] The segment ID
|
|
2603
2607
|
* @param {string} [nextToken] This is the pagination token
|
|
2608
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
2604
2609
|
* @param {*} [options] Override http request option.
|
|
2605
2610
|
* @throws {RequiredError}
|
|
2606
2611
|
*/
|
|
2607
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
|
|
2612
|
+
listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
2608
2613
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2609
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options);
|
|
2614
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, ids, options);
|
|
2610
2615
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2611
2616
|
});
|
|
2612
2617
|
},
|
|
@@ -2714,11 +2719,12 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2714
2719
|
* @param {ProductAvailability} [availability] The product availability
|
|
2715
2720
|
* @param {string} [segmentID] The segment ID
|
|
2716
2721
|
* @param {string} [nextToken] This is the pagination token
|
|
2722
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
2717
2723
|
* @param {*} [options] Override http request option.
|
|
2718
2724
|
* @throws {RequiredError}
|
|
2719
2725
|
*/
|
|
2720
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
|
|
2721
|
-
return localVarFp.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(axios, basePath));
|
|
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));
|
|
2722
2728
|
},
|
|
2723
2729
|
/**
|
|
2724
2730
|
* Update a product by id
|
|
@@ -2828,12 +2834,13 @@ export class ProductApi extends BaseAPI {
|
|
|
2828
2834
|
* @param {ProductAvailability} [availability] The product availability
|
|
2829
2835
|
* @param {string} [segmentID] The segment ID
|
|
2830
2836
|
* @param {string} [nextToken] This is the pagination token
|
|
2837
|
+
* @param {Array<string>} [ids] This a list of ids to filter by
|
|
2831
2838
|
* @param {*} [options] Override http request option.
|
|
2832
2839
|
* @throws {RequiredError}
|
|
2833
2840
|
* @memberof ProductApi
|
|
2834
2841
|
*/
|
|
2835
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
|
|
2836
|
-
return ProductApiFp(this.configuration).listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
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));
|
|
2837
2844
|
}
|
|
2838
2845
|
/**
|
|
2839
2846
|
* Update a product by id
|