flexinet-api 0.0.761-prerelease0 → 0.0.762-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 +78 -0
- package/dist/api.d.ts +39 -0
- package/dist/api.js +66 -0
- package/dist/esm/api.d.ts +39 -0
- package/dist/esm/api.js +66 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.762-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.762-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -1689,6 +1689,12 @@ export interface ProductRequest {
|
|
|
1689
1689
|
* @memberof ProductRequest
|
|
1690
1690
|
*/
|
|
1691
1691
|
'updatedAt': string;
|
|
1692
|
+
/**
|
|
1693
|
+
*
|
|
1694
|
+
* @type {User}
|
|
1695
|
+
* @memberof ProductRequest
|
|
1696
|
+
*/
|
|
1697
|
+
'user'?: User;
|
|
1692
1698
|
}
|
|
1693
1699
|
|
|
1694
1700
|
|
|
@@ -7208,6 +7214,45 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
7208
7214
|
|
|
7209
7215
|
|
|
7210
7216
|
|
|
7217
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7219
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7220
|
+
|
|
7221
|
+
return {
|
|
7222
|
+
url: toPathString(localVarUrlObj),
|
|
7223
|
+
options: localVarRequestOptions,
|
|
7224
|
+
};
|
|
7225
|
+
},
|
|
7226
|
+
/**
|
|
7227
|
+
* List product requests
|
|
7228
|
+
* @summary List product requests
|
|
7229
|
+
* @param {string} [nextToken] This is the pagination token
|
|
7230
|
+
* @param {*} [options] Override http request option.
|
|
7231
|
+
* @throws {RequiredError}
|
|
7232
|
+
*/
|
|
7233
|
+
listUserProductRequests: async (nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7234
|
+
const localVarPath = `/users/products/requests`;
|
|
7235
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7236
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7237
|
+
let baseOptions;
|
|
7238
|
+
if (configuration) {
|
|
7239
|
+
baseOptions = configuration.baseOptions;
|
|
7240
|
+
}
|
|
7241
|
+
|
|
7242
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7243
|
+
const localVarHeaderParameter = {} as any;
|
|
7244
|
+
const localVarQueryParameter = {} as any;
|
|
7245
|
+
|
|
7246
|
+
// authentication customerJWT required
|
|
7247
|
+
// http bearer authentication required
|
|
7248
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7249
|
+
|
|
7250
|
+
if (nextToken !== undefined) {
|
|
7251
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
7252
|
+
}
|
|
7253
|
+
|
|
7254
|
+
|
|
7255
|
+
|
|
7211
7256
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7212
7257
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7213
7258
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7441,6 +7486,17 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
|
7441
7486
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options);
|
|
7442
7487
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7443
7488
|
},
|
|
7489
|
+
/**
|
|
7490
|
+
* List product requests
|
|
7491
|
+
* @summary List product requests
|
|
7492
|
+
* @param {string} [nextToken] This is the pagination token
|
|
7493
|
+
* @param {*} [options] Override http request option.
|
|
7494
|
+
* @throws {RequiredError}
|
|
7495
|
+
*/
|
|
7496
|
+
async listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestsResponse>> {
|
|
7497
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProductRequests(nextToken, options);
|
|
7498
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7499
|
+
},
|
|
7444
7500
|
/**
|
|
7445
7501
|
* List existing products for the user
|
|
7446
7502
|
* @summary List existing products
|
|
@@ -7578,6 +7634,16 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
|
7578
7634
|
listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse> {
|
|
7579
7635
|
return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
|
|
7580
7636
|
},
|
|
7637
|
+
/**
|
|
7638
|
+
* List product requests
|
|
7639
|
+
* @summary List product requests
|
|
7640
|
+
* @param {string} [nextToken] This is the pagination token
|
|
7641
|
+
* @param {*} [options] Override http request option.
|
|
7642
|
+
* @throws {RequiredError}
|
|
7643
|
+
*/
|
|
7644
|
+
listUserProductRequests(nextToken?: string, options?: any): AxiosPromise<ProductRequestsResponse> {
|
|
7645
|
+
return localVarFp.listUserProductRequests(nextToken, options).then((request) => request(axios, basePath));
|
|
7646
|
+
},
|
|
7581
7647
|
/**
|
|
7582
7648
|
* List existing products for the user
|
|
7583
7649
|
* @summary List existing products
|
|
@@ -7731,6 +7797,18 @@ export class ProductApi extends BaseAPI {
|
|
|
7731
7797
|
return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
|
|
7732
7798
|
}
|
|
7733
7799
|
|
|
7800
|
+
/**
|
|
7801
|
+
* List product requests
|
|
7802
|
+
* @summary List product requests
|
|
7803
|
+
* @param {string} [nextToken] This is the pagination token
|
|
7804
|
+
* @param {*} [options] Override http request option.
|
|
7805
|
+
* @throws {RequiredError}
|
|
7806
|
+
* @memberof ProductApi
|
|
7807
|
+
*/
|
|
7808
|
+
public listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig) {
|
|
7809
|
+
return ProductApiFp(this.configuration).listUserProductRequests(nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
7810
|
+
}
|
|
7811
|
+
|
|
7734
7812
|
/**
|
|
7735
7813
|
* List existing products for the user
|
|
7736
7814
|
* @summary List existing products
|
package/dist/api.d.ts
CHANGED
|
@@ -1603,6 +1603,12 @@ export interface ProductRequest {
|
|
|
1603
1603
|
* @memberof ProductRequest
|
|
1604
1604
|
*/
|
|
1605
1605
|
'updatedAt': string;
|
|
1606
|
+
/**
|
|
1607
|
+
*
|
|
1608
|
+
* @type {User}
|
|
1609
|
+
* @memberof ProductRequest
|
|
1610
|
+
*/
|
|
1611
|
+
'user'?: User;
|
|
1606
1612
|
}
|
|
1607
1613
|
/**
|
|
1608
1614
|
*
|
|
@@ -5167,6 +5173,14 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5167
5173
|
* @throws {RequiredError}
|
|
5168
5174
|
*/
|
|
5169
5175
|
listProducts: (kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5176
|
+
/**
|
|
5177
|
+
* List product requests
|
|
5178
|
+
* @summary List product requests
|
|
5179
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5180
|
+
* @param {*} [options] Override http request option.
|
|
5181
|
+
* @throws {RequiredError}
|
|
5182
|
+
*/
|
|
5183
|
+
listUserProductRequests: (nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5170
5184
|
/**
|
|
5171
5185
|
* List existing products for the user
|
|
5172
5186
|
* @summary List existing products
|
|
@@ -5276,6 +5290,14 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
5276
5290
|
* @throws {RequiredError}
|
|
5277
5291
|
*/
|
|
5278
5292
|
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>>;
|
|
5293
|
+
/**
|
|
5294
|
+
* List product requests
|
|
5295
|
+
* @summary List product requests
|
|
5296
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5297
|
+
* @param {*} [options] Override http request option.
|
|
5298
|
+
* @throws {RequiredError}
|
|
5299
|
+
*/
|
|
5300
|
+
listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestsResponse>>;
|
|
5279
5301
|
/**
|
|
5280
5302
|
* List existing products for the user
|
|
5281
5303
|
* @summary List existing products
|
|
@@ -5385,6 +5407,14 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
5385
5407
|
* @throws {RequiredError}
|
|
5386
5408
|
*/
|
|
5387
5409
|
listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
|
|
5410
|
+
/**
|
|
5411
|
+
* List product requests
|
|
5412
|
+
* @summary List product requests
|
|
5413
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5414
|
+
* @param {*} [options] Override http request option.
|
|
5415
|
+
* @throws {RequiredError}
|
|
5416
|
+
*/
|
|
5417
|
+
listUserProductRequests(nextToken?: string, options?: any): AxiosPromise<ProductRequestsResponse>;
|
|
5388
5418
|
/**
|
|
5389
5419
|
* List existing products for the user
|
|
5390
5420
|
* @summary List existing products
|
|
@@ -5505,6 +5535,15 @@ export declare class ProductApi extends BaseAPI {
|
|
|
5505
5535
|
* @memberof ProductApi
|
|
5506
5536
|
*/
|
|
5507
5537
|
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>>;
|
|
5538
|
+
/**
|
|
5539
|
+
* List product requests
|
|
5540
|
+
* @summary List product requests
|
|
5541
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5542
|
+
* @param {*} [options] Override http request option.
|
|
5543
|
+
* @throws {RequiredError}
|
|
5544
|
+
* @memberof ProductApi
|
|
5545
|
+
*/
|
|
5546
|
+
listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequestsResponse, any>>;
|
|
5508
5547
|
/**
|
|
5509
5548
|
* List existing products for the user
|
|
5510
5549
|
* @summary List existing products
|
package/dist/api.js
CHANGED
|
@@ -3510,6 +3510,38 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3510
3510
|
options: localVarRequestOptions,
|
|
3511
3511
|
};
|
|
3512
3512
|
}),
|
|
3513
|
+
/**
|
|
3514
|
+
* List product requests
|
|
3515
|
+
* @summary List product requests
|
|
3516
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3517
|
+
* @param {*} [options] Override http request option.
|
|
3518
|
+
* @throws {RequiredError}
|
|
3519
|
+
*/
|
|
3520
|
+
listUserProductRequests: (nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3521
|
+
const localVarPath = `/users/products/requests`;
|
|
3522
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3523
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3524
|
+
let baseOptions;
|
|
3525
|
+
if (configuration) {
|
|
3526
|
+
baseOptions = configuration.baseOptions;
|
|
3527
|
+
}
|
|
3528
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3529
|
+
const localVarHeaderParameter = {};
|
|
3530
|
+
const localVarQueryParameter = {};
|
|
3531
|
+
// authentication customerJWT required
|
|
3532
|
+
// http bearer authentication required
|
|
3533
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3534
|
+
if (nextToken !== undefined) {
|
|
3535
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
3536
|
+
}
|
|
3537
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3538
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3539
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3540
|
+
return {
|
|
3541
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3542
|
+
options: localVarRequestOptions,
|
|
3543
|
+
};
|
|
3544
|
+
}),
|
|
3513
3545
|
/**
|
|
3514
3546
|
* List existing products for the user
|
|
3515
3547
|
* @summary List existing products
|
|
@@ -3733,6 +3765,19 @@ const ProductApiFp = function (configuration) {
|
|
|
3733
3765
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3734
3766
|
});
|
|
3735
3767
|
},
|
|
3768
|
+
/**
|
|
3769
|
+
* List product requests
|
|
3770
|
+
* @summary List product requests
|
|
3771
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3772
|
+
* @param {*} [options] Override http request option.
|
|
3773
|
+
* @throws {RequiredError}
|
|
3774
|
+
*/
|
|
3775
|
+
listUserProductRequests(nextToken, options) {
|
|
3776
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3777
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProductRequests(nextToken, options);
|
|
3778
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3779
|
+
});
|
|
3780
|
+
},
|
|
3736
3781
|
/**
|
|
3737
3782
|
* List existing products for the user
|
|
3738
3783
|
* @summary List existing products
|
|
@@ -3874,6 +3919,16 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3874
3919
|
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
3875
3920
|
return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
|
|
3876
3921
|
},
|
|
3922
|
+
/**
|
|
3923
|
+
* List product requests
|
|
3924
|
+
* @summary List product requests
|
|
3925
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3926
|
+
* @param {*} [options] Override http request option.
|
|
3927
|
+
* @throws {RequiredError}
|
|
3928
|
+
*/
|
|
3929
|
+
listUserProductRequests(nextToken, options) {
|
|
3930
|
+
return localVarFp.listUserProductRequests(nextToken, options).then((request) => request(axios, basePath));
|
|
3931
|
+
},
|
|
3877
3932
|
/**
|
|
3878
3933
|
* List existing products for the user
|
|
3879
3934
|
* @summary List existing products
|
|
@@ -4018,6 +4073,17 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
4018
4073
|
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
4019
4074
|
return (0, exports.ProductApiFp)(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
|
|
4020
4075
|
}
|
|
4076
|
+
/**
|
|
4077
|
+
* List product requests
|
|
4078
|
+
* @summary List product requests
|
|
4079
|
+
* @param {string} [nextToken] This is the pagination token
|
|
4080
|
+
* @param {*} [options] Override http request option.
|
|
4081
|
+
* @throws {RequiredError}
|
|
4082
|
+
* @memberof ProductApi
|
|
4083
|
+
*/
|
|
4084
|
+
listUserProductRequests(nextToken, options) {
|
|
4085
|
+
return (0, exports.ProductApiFp)(this.configuration).listUserProductRequests(nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
4086
|
+
}
|
|
4021
4087
|
/**
|
|
4022
4088
|
* List existing products for the user
|
|
4023
4089
|
* @summary List existing products
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1603,6 +1603,12 @@ export interface ProductRequest {
|
|
|
1603
1603
|
* @memberof ProductRequest
|
|
1604
1604
|
*/
|
|
1605
1605
|
'updatedAt': string;
|
|
1606
|
+
/**
|
|
1607
|
+
*
|
|
1608
|
+
* @type {User}
|
|
1609
|
+
* @memberof ProductRequest
|
|
1610
|
+
*/
|
|
1611
|
+
'user'?: User;
|
|
1606
1612
|
}
|
|
1607
1613
|
/**
|
|
1608
1614
|
*
|
|
@@ -5167,6 +5173,14 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5167
5173
|
* @throws {RequiredError}
|
|
5168
5174
|
*/
|
|
5169
5175
|
listProducts: (kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5176
|
+
/**
|
|
5177
|
+
* List product requests
|
|
5178
|
+
* @summary List product requests
|
|
5179
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5180
|
+
* @param {*} [options] Override http request option.
|
|
5181
|
+
* @throws {RequiredError}
|
|
5182
|
+
*/
|
|
5183
|
+
listUserProductRequests: (nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5170
5184
|
/**
|
|
5171
5185
|
* List existing products for the user
|
|
5172
5186
|
* @summary List existing products
|
|
@@ -5276,6 +5290,14 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
5276
5290
|
* @throws {RequiredError}
|
|
5277
5291
|
*/
|
|
5278
5292
|
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>>;
|
|
5293
|
+
/**
|
|
5294
|
+
* List product requests
|
|
5295
|
+
* @summary List product requests
|
|
5296
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5297
|
+
* @param {*} [options] Override http request option.
|
|
5298
|
+
* @throws {RequiredError}
|
|
5299
|
+
*/
|
|
5300
|
+
listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestsResponse>>;
|
|
5279
5301
|
/**
|
|
5280
5302
|
* List existing products for the user
|
|
5281
5303
|
* @summary List existing products
|
|
@@ -5385,6 +5407,14 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
5385
5407
|
* @throws {RequiredError}
|
|
5386
5408
|
*/
|
|
5387
5409
|
listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse>;
|
|
5410
|
+
/**
|
|
5411
|
+
* List product requests
|
|
5412
|
+
* @summary List product requests
|
|
5413
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5414
|
+
* @param {*} [options] Override http request option.
|
|
5415
|
+
* @throws {RequiredError}
|
|
5416
|
+
*/
|
|
5417
|
+
listUserProductRequests(nextToken?: string, options?: any): AxiosPromise<ProductRequestsResponse>;
|
|
5388
5418
|
/**
|
|
5389
5419
|
* List existing products for the user
|
|
5390
5420
|
* @summary List existing products
|
|
@@ -5505,6 +5535,15 @@ export declare class ProductApi extends BaseAPI {
|
|
|
5505
5535
|
* @memberof ProductApi
|
|
5506
5536
|
*/
|
|
5507
5537
|
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>>;
|
|
5538
|
+
/**
|
|
5539
|
+
* List product requests
|
|
5540
|
+
* @summary List product requests
|
|
5541
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5542
|
+
* @param {*} [options] Override http request option.
|
|
5543
|
+
* @throws {RequiredError}
|
|
5544
|
+
* @memberof ProductApi
|
|
5545
|
+
*/
|
|
5546
|
+
listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequestsResponse, any>>;
|
|
5508
5547
|
/**
|
|
5509
5548
|
* List existing products for the user
|
|
5510
5549
|
* @summary List existing products
|
package/dist/esm/api.js
CHANGED
|
@@ -3461,6 +3461,38 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3461
3461
|
options: localVarRequestOptions,
|
|
3462
3462
|
};
|
|
3463
3463
|
}),
|
|
3464
|
+
/**
|
|
3465
|
+
* List product requests
|
|
3466
|
+
* @summary List product requests
|
|
3467
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3468
|
+
* @param {*} [options] Override http request option.
|
|
3469
|
+
* @throws {RequiredError}
|
|
3470
|
+
*/
|
|
3471
|
+
listUserProductRequests: (nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3472
|
+
const localVarPath = `/users/products/requests`;
|
|
3473
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3474
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3475
|
+
let baseOptions;
|
|
3476
|
+
if (configuration) {
|
|
3477
|
+
baseOptions = configuration.baseOptions;
|
|
3478
|
+
}
|
|
3479
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3480
|
+
const localVarHeaderParameter = {};
|
|
3481
|
+
const localVarQueryParameter = {};
|
|
3482
|
+
// authentication customerJWT required
|
|
3483
|
+
// http bearer authentication required
|
|
3484
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3485
|
+
if (nextToken !== undefined) {
|
|
3486
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
3487
|
+
}
|
|
3488
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3489
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3490
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3491
|
+
return {
|
|
3492
|
+
url: toPathString(localVarUrlObj),
|
|
3493
|
+
options: localVarRequestOptions,
|
|
3494
|
+
};
|
|
3495
|
+
}),
|
|
3464
3496
|
/**
|
|
3465
3497
|
* List existing products for the user
|
|
3466
3498
|
* @summary List existing products
|
|
@@ -3683,6 +3715,19 @@ export const ProductApiFp = function (configuration) {
|
|
|
3683
3715
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3684
3716
|
});
|
|
3685
3717
|
},
|
|
3718
|
+
/**
|
|
3719
|
+
* List product requests
|
|
3720
|
+
* @summary List product requests
|
|
3721
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3722
|
+
* @param {*} [options] Override http request option.
|
|
3723
|
+
* @throws {RequiredError}
|
|
3724
|
+
*/
|
|
3725
|
+
listUserProductRequests(nextToken, options) {
|
|
3726
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3727
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProductRequests(nextToken, options);
|
|
3728
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3729
|
+
});
|
|
3730
|
+
},
|
|
3686
3731
|
/**
|
|
3687
3732
|
* List existing products for the user
|
|
3688
3733
|
* @summary List existing products
|
|
@@ -3823,6 +3868,16 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3823
3868
|
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
3824
3869
|
return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
|
|
3825
3870
|
},
|
|
3871
|
+
/**
|
|
3872
|
+
* List product requests
|
|
3873
|
+
* @summary List product requests
|
|
3874
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3875
|
+
* @param {*} [options] Override http request option.
|
|
3876
|
+
* @throws {RequiredError}
|
|
3877
|
+
*/
|
|
3878
|
+
listUserProductRequests(nextToken, options) {
|
|
3879
|
+
return localVarFp.listUserProductRequests(nextToken, options).then((request) => request(axios, basePath));
|
|
3880
|
+
},
|
|
3826
3881
|
/**
|
|
3827
3882
|
* List existing products for the user
|
|
3828
3883
|
* @summary List existing products
|
|
@@ -3966,6 +4021,17 @@ export class ProductApi extends BaseAPI {
|
|
|
3966
4021
|
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
|
3967
4022
|
return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
|
|
3968
4023
|
}
|
|
4024
|
+
/**
|
|
4025
|
+
* List product requests
|
|
4026
|
+
* @summary List product requests
|
|
4027
|
+
* @param {string} [nextToken] This is the pagination token
|
|
4028
|
+
* @param {*} [options] Override http request option.
|
|
4029
|
+
* @throws {RequiredError}
|
|
4030
|
+
* @memberof ProductApi
|
|
4031
|
+
*/
|
|
4032
|
+
listUserProductRequests(nextToken, options) {
|
|
4033
|
+
return ProductApiFp(this.configuration).listUserProductRequests(nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
4034
|
+
}
|
|
3969
4035
|
/**
|
|
3970
4036
|
* List existing products for the user
|
|
3971
4037
|
* @summary List existing products
|