flexinet-api 0.0.759-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 +105 -11
- package/dist/api.d.ts +66 -9
- package/dist/api.js +70 -4
- package/dist/esm/api.d.ts +66 -9
- package/dist/esm/api.js +70 -4
- 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
|
|
|
@@ -2281,7 +2287,13 @@ export interface PromotionRequest {
|
|
|
2281
2287
|
* @type {Array<Segment>}
|
|
2282
2288
|
* @memberof PromotionRequest
|
|
2283
2289
|
*/
|
|
2284
|
-
'segments'
|
|
2290
|
+
'segments'?: Array<Segment>;
|
|
2291
|
+
/**
|
|
2292
|
+
*
|
|
2293
|
+
* @type {Array<string>}
|
|
2294
|
+
* @memberof PromotionRequest
|
|
2295
|
+
*/
|
|
2296
|
+
'beneficiaryIds'?: Array<string>;
|
|
2285
2297
|
/**
|
|
2286
2298
|
*
|
|
2287
2299
|
* @type {Array<RuleGroup>}
|
|
@@ -2337,8 +2349,6 @@ export interface PromotionRequest {
|
|
|
2337
2349
|
*/
|
|
2338
2350
|
'notificationConfig'?: PromotionNotificationConfig;
|
|
2339
2351
|
}
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
2352
|
/**
|
|
2343
2353
|
*
|
|
2344
2354
|
* @export
|
|
@@ -3324,6 +3334,18 @@ export interface UpdatePromotionRequest {
|
|
|
3324
3334
|
* @memberof UpdatePromotionRequest
|
|
3325
3335
|
*/
|
|
3326
3336
|
'brandLogoURL'?: string;
|
|
3337
|
+
/**
|
|
3338
|
+
*
|
|
3339
|
+
* @type {BeneficiaryKind}
|
|
3340
|
+
* @memberof UpdatePromotionRequest
|
|
3341
|
+
*/
|
|
3342
|
+
'beneficiaryKind'?: BeneficiaryKind;
|
|
3343
|
+
/**
|
|
3344
|
+
*
|
|
3345
|
+
* @type {Array<string>}
|
|
3346
|
+
* @memberof UpdatePromotionRequest
|
|
3347
|
+
*/
|
|
3348
|
+
'beneficiaryIds'?: Array<string>;
|
|
3327
3349
|
/**
|
|
3328
3350
|
*
|
|
3329
3351
|
* @type {string}
|
|
@@ -7192,6 +7214,45 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
7192
7214
|
|
|
7193
7215
|
|
|
7194
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
|
+
|
|
7195
7256
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7196
7257
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7197
7258
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7425,6 +7486,17 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
|
7425
7486
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options);
|
|
7426
7487
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7427
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
|
+
},
|
|
7428
7500
|
/**
|
|
7429
7501
|
* List existing products for the user
|
|
7430
7502
|
* @summary List existing products
|
|
@@ -7562,6 +7634,16 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
|
7562
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> {
|
|
7563
7635
|
return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
|
|
7564
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
|
+
},
|
|
7565
7647
|
/**
|
|
7566
7648
|
* List existing products for the user
|
|
7567
7649
|
* @summary List existing products
|
|
@@ -7715,6 +7797,18 @@ export class ProductApi extends BaseAPI {
|
|
|
7715
7797
|
return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
|
|
7716
7798
|
}
|
|
7717
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
|
+
|
|
7718
7812
|
/**
|
|
7719
7813
|
* List existing products for the user
|
|
7720
7814
|
* @summary List existing products
|
|
@@ -8164,11 +8258,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
8164
8258
|
/**
|
|
8165
8259
|
* Configure a promotion
|
|
8166
8260
|
* @summary Create promotion
|
|
8167
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
8261
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
8168
8262
|
* @param {*} [options] Override http request option.
|
|
8169
8263
|
* @throws {RequiredError}
|
|
8170
8264
|
*/
|
|
8171
|
-
createPromotion: async (promotionRequest: PromotionRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8265
|
+
createPromotion: async (promotionRequest: PromotionRequest | null, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8172
8266
|
// verify required parameter 'promotionRequest' is not null or undefined
|
|
8173
8267
|
assertParamExists('createPromotion', 'promotionRequest', promotionRequest)
|
|
8174
8268
|
const localVarPath = `/admins/promotions`;
|
|
@@ -8720,11 +8814,11 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
8720
8814
|
/**
|
|
8721
8815
|
* Configure a promotion
|
|
8722
8816
|
* @summary Create promotion
|
|
8723
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
8817
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
8724
8818
|
* @param {*} [options] Override http request option.
|
|
8725
8819
|
* @throws {RequiredError}
|
|
8726
8820
|
*/
|
|
8727
|
-
async createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>> {
|
|
8821
|
+
async createPromotion(promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>> {
|
|
8728
8822
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPromotion(promotionRequest, options);
|
|
8729
8823
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
8730
8824
|
},
|
|
@@ -8899,11 +8993,11 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
8899
8993
|
/**
|
|
8900
8994
|
* Configure a promotion
|
|
8901
8995
|
* @summary Create promotion
|
|
8902
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
8996
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
8903
8997
|
* @param {*} [options] Override http request option.
|
|
8904
8998
|
* @throws {RequiredError}
|
|
8905
8999
|
*/
|
|
8906
|
-
createPromotion(promotionRequest: PromotionRequest, options?: any): AxiosPromise<Promotion> {
|
|
9000
|
+
createPromotion(promotionRequest: PromotionRequest | null, options?: any): AxiosPromise<Promotion> {
|
|
8907
9001
|
return localVarFp.createPromotion(promotionRequest, options).then((request) => request(axios, basePath));
|
|
8908
9002
|
},
|
|
8909
9003
|
/**
|
|
@@ -9077,12 +9171,12 @@ export class PromotionApi extends BaseAPI {
|
|
|
9077
9171
|
/**
|
|
9078
9172
|
* Configure a promotion
|
|
9079
9173
|
* @summary Create promotion
|
|
9080
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
9174
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
9081
9175
|
* @param {*} [options] Override http request option.
|
|
9082
9176
|
* @throws {RequiredError}
|
|
9083
9177
|
* @memberof PromotionApi
|
|
9084
9178
|
*/
|
|
9085
|
-
public createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig) {
|
|
9179
|
+
public createPromotion(promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig) {
|
|
9086
9180
|
return PromotionApiFp(this.configuration).createPromotion(promotionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9087
9181
|
}
|
|
9088
9182
|
|
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
|
*
|
|
@@ -2169,7 +2175,13 @@ export interface PromotionRequest {
|
|
|
2169
2175
|
* @type {Array<Segment>}
|
|
2170
2176
|
* @memberof PromotionRequest
|
|
2171
2177
|
*/
|
|
2172
|
-
'segments'
|
|
2178
|
+
'segments'?: Array<Segment>;
|
|
2179
|
+
/**
|
|
2180
|
+
*
|
|
2181
|
+
* @type {Array<string>}
|
|
2182
|
+
* @memberof PromotionRequest
|
|
2183
|
+
*/
|
|
2184
|
+
'beneficiaryIds'?: Array<string>;
|
|
2173
2185
|
/**
|
|
2174
2186
|
*
|
|
2175
2187
|
* @type {Array<RuleGroup>}
|
|
@@ -3147,6 +3159,18 @@ export interface UpdatePromotionRequest {
|
|
|
3147
3159
|
* @memberof UpdatePromotionRequest
|
|
3148
3160
|
*/
|
|
3149
3161
|
'brandLogoURL'?: string;
|
|
3162
|
+
/**
|
|
3163
|
+
*
|
|
3164
|
+
* @type {BeneficiaryKind}
|
|
3165
|
+
* @memberof UpdatePromotionRequest
|
|
3166
|
+
*/
|
|
3167
|
+
'beneficiaryKind'?: BeneficiaryKind;
|
|
3168
|
+
/**
|
|
3169
|
+
*
|
|
3170
|
+
* @type {Array<string>}
|
|
3171
|
+
* @memberof UpdatePromotionRequest
|
|
3172
|
+
*/
|
|
3173
|
+
'beneficiaryIds'?: Array<string>;
|
|
3150
3174
|
/**
|
|
3151
3175
|
*
|
|
3152
3176
|
* @type {string}
|
|
@@ -5149,6 +5173,14 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5149
5173
|
* @throws {RequiredError}
|
|
5150
5174
|
*/
|
|
5151
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>;
|
|
5152
5184
|
/**
|
|
5153
5185
|
* List existing products for the user
|
|
5154
5186
|
* @summary List existing products
|
|
@@ -5258,6 +5290,14 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
5258
5290
|
* @throws {RequiredError}
|
|
5259
5291
|
*/
|
|
5260
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>>;
|
|
5261
5301
|
/**
|
|
5262
5302
|
* List existing products for the user
|
|
5263
5303
|
* @summary List existing products
|
|
@@ -5367,6 +5407,14 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
5367
5407
|
* @throws {RequiredError}
|
|
5368
5408
|
*/
|
|
5369
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>;
|
|
5370
5418
|
/**
|
|
5371
5419
|
* List existing products for the user
|
|
5372
5420
|
* @summary List existing products
|
|
@@ -5487,6 +5535,15 @@ export declare class ProductApi extends BaseAPI {
|
|
|
5487
5535
|
* @memberof ProductApi
|
|
5488
5536
|
*/
|
|
5489
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>>;
|
|
5490
5547
|
/**
|
|
5491
5548
|
* List existing products for the user
|
|
5492
5549
|
* @summary List existing products
|
|
@@ -5675,11 +5732,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
5675
5732
|
/**
|
|
5676
5733
|
* Configure a promotion
|
|
5677
5734
|
* @summary Create promotion
|
|
5678
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
5735
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
5679
5736
|
* @param {*} [options] Override http request option.
|
|
5680
5737
|
* @throws {RequiredError}
|
|
5681
5738
|
*/
|
|
5682
|
-
createPromotion: (promotionRequest: PromotionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5739
|
+
createPromotion: (promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5683
5740
|
/**
|
|
5684
5741
|
* Create upload URL for product
|
|
5685
5742
|
* @summary Create upload URL for product
|
|
@@ -5815,11 +5872,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5815
5872
|
/**
|
|
5816
5873
|
* Configure a promotion
|
|
5817
5874
|
* @summary Create promotion
|
|
5818
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
5875
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
5819
5876
|
* @param {*} [options] Override http request option.
|
|
5820
5877
|
* @throws {RequiredError}
|
|
5821
5878
|
*/
|
|
5822
|
-
createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>>;
|
|
5879
|
+
createPromotion(promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>>;
|
|
5823
5880
|
/**
|
|
5824
5881
|
* Create upload URL for product
|
|
5825
5882
|
* @summary Create upload URL for product
|
|
@@ -5955,11 +6012,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5955
6012
|
/**
|
|
5956
6013
|
* Configure a promotion
|
|
5957
6014
|
* @summary Create promotion
|
|
5958
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
6015
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
5959
6016
|
* @param {*} [options] Override http request option.
|
|
5960
6017
|
* @throws {RequiredError}
|
|
5961
6018
|
*/
|
|
5962
|
-
createPromotion(promotionRequest: PromotionRequest, options?: any): AxiosPromise<Promotion>;
|
|
6019
|
+
createPromotion(promotionRequest: PromotionRequest | null, options?: any): AxiosPromise<Promotion>;
|
|
5963
6020
|
/**
|
|
5964
6021
|
* Create upload URL for product
|
|
5965
6022
|
* @summary Create upload URL for product
|
|
@@ -6101,12 +6158,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
6101
6158
|
/**
|
|
6102
6159
|
* Configure a promotion
|
|
6103
6160
|
* @summary Create promotion
|
|
6104
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
6161
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
6105
6162
|
* @param {*} [options] Override http request option.
|
|
6106
6163
|
* @throws {RequiredError}
|
|
6107
6164
|
* @memberof PromotionApi
|
|
6108
6165
|
*/
|
|
6109
|
-
createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
|
|
6166
|
+
createPromotion(promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
|
|
6110
6167
|
/**
|
|
6111
6168
|
* Create upload URL for product
|
|
6112
6169
|
* @summary Create upload URL for product
|
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
|
|
@@ -4419,7 +4485,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4419
4485
|
/**
|
|
4420
4486
|
* Configure a promotion
|
|
4421
4487
|
* @summary Create promotion
|
|
4422
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
4488
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
4423
4489
|
* @param {*} [options] Override http request option.
|
|
4424
4490
|
* @throws {RequiredError}
|
|
4425
4491
|
*/
|
|
@@ -4898,7 +4964,7 @@ const PromotionApiFp = function (configuration) {
|
|
|
4898
4964
|
/**
|
|
4899
4965
|
* Configure a promotion
|
|
4900
4966
|
* @summary Create promotion
|
|
4901
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
4967
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
4902
4968
|
* @param {*} [options] Override http request option.
|
|
4903
4969
|
* @throws {RequiredError}
|
|
4904
4970
|
*/
|
|
@@ -5095,7 +5161,7 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
5095
5161
|
/**
|
|
5096
5162
|
* Configure a promotion
|
|
5097
5163
|
* @summary Create promotion
|
|
5098
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
5164
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
5099
5165
|
* @param {*} [options] Override http request option.
|
|
5100
5166
|
* @throws {RequiredError}
|
|
5101
5167
|
*/
|
|
@@ -5269,7 +5335,7 @@ class PromotionApi extends base_1.BaseAPI {
|
|
|
5269
5335
|
/**
|
|
5270
5336
|
* Configure a promotion
|
|
5271
5337
|
* @summary Create promotion
|
|
5272
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
5338
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
5273
5339
|
* @param {*} [options] Override http request option.
|
|
5274
5340
|
* @throws {RequiredError}
|
|
5275
5341
|
* @memberof PromotionApi
|
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
|
*
|
|
@@ -2169,7 +2175,13 @@ export interface PromotionRequest {
|
|
|
2169
2175
|
* @type {Array<Segment>}
|
|
2170
2176
|
* @memberof PromotionRequest
|
|
2171
2177
|
*/
|
|
2172
|
-
'segments'
|
|
2178
|
+
'segments'?: Array<Segment>;
|
|
2179
|
+
/**
|
|
2180
|
+
*
|
|
2181
|
+
* @type {Array<string>}
|
|
2182
|
+
* @memberof PromotionRequest
|
|
2183
|
+
*/
|
|
2184
|
+
'beneficiaryIds'?: Array<string>;
|
|
2173
2185
|
/**
|
|
2174
2186
|
*
|
|
2175
2187
|
* @type {Array<RuleGroup>}
|
|
@@ -3147,6 +3159,18 @@ export interface UpdatePromotionRequest {
|
|
|
3147
3159
|
* @memberof UpdatePromotionRequest
|
|
3148
3160
|
*/
|
|
3149
3161
|
'brandLogoURL'?: string;
|
|
3162
|
+
/**
|
|
3163
|
+
*
|
|
3164
|
+
* @type {BeneficiaryKind}
|
|
3165
|
+
* @memberof UpdatePromotionRequest
|
|
3166
|
+
*/
|
|
3167
|
+
'beneficiaryKind'?: BeneficiaryKind;
|
|
3168
|
+
/**
|
|
3169
|
+
*
|
|
3170
|
+
* @type {Array<string>}
|
|
3171
|
+
* @memberof UpdatePromotionRequest
|
|
3172
|
+
*/
|
|
3173
|
+
'beneficiaryIds'?: Array<string>;
|
|
3150
3174
|
/**
|
|
3151
3175
|
*
|
|
3152
3176
|
* @type {string}
|
|
@@ -5149,6 +5173,14 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5149
5173
|
* @throws {RequiredError}
|
|
5150
5174
|
*/
|
|
5151
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>;
|
|
5152
5184
|
/**
|
|
5153
5185
|
* List existing products for the user
|
|
5154
5186
|
* @summary List existing products
|
|
@@ -5258,6 +5290,14 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
5258
5290
|
* @throws {RequiredError}
|
|
5259
5291
|
*/
|
|
5260
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>>;
|
|
5261
5301
|
/**
|
|
5262
5302
|
* List existing products for the user
|
|
5263
5303
|
* @summary List existing products
|
|
@@ -5367,6 +5407,14 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
5367
5407
|
* @throws {RequiredError}
|
|
5368
5408
|
*/
|
|
5369
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>;
|
|
5370
5418
|
/**
|
|
5371
5419
|
* List existing products for the user
|
|
5372
5420
|
* @summary List existing products
|
|
@@ -5487,6 +5535,15 @@ export declare class ProductApi extends BaseAPI {
|
|
|
5487
5535
|
* @memberof ProductApi
|
|
5488
5536
|
*/
|
|
5489
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>>;
|
|
5490
5547
|
/**
|
|
5491
5548
|
* List existing products for the user
|
|
5492
5549
|
* @summary List existing products
|
|
@@ -5675,11 +5732,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
|
|
|
5675
5732
|
/**
|
|
5676
5733
|
* Configure a promotion
|
|
5677
5734
|
* @summary Create promotion
|
|
5678
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
5735
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
5679
5736
|
* @param {*} [options] Override http request option.
|
|
5680
5737
|
* @throws {RequiredError}
|
|
5681
5738
|
*/
|
|
5682
|
-
createPromotion: (promotionRequest: PromotionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5739
|
+
createPromotion: (promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5683
5740
|
/**
|
|
5684
5741
|
* Create upload URL for product
|
|
5685
5742
|
* @summary Create upload URL for product
|
|
@@ -5815,11 +5872,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
|
|
|
5815
5872
|
/**
|
|
5816
5873
|
* Configure a promotion
|
|
5817
5874
|
* @summary Create promotion
|
|
5818
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
5875
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
5819
5876
|
* @param {*} [options] Override http request option.
|
|
5820
5877
|
* @throws {RequiredError}
|
|
5821
5878
|
*/
|
|
5822
|
-
createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>>;
|
|
5879
|
+
createPromotion(promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>>;
|
|
5823
5880
|
/**
|
|
5824
5881
|
* Create upload URL for product
|
|
5825
5882
|
* @summary Create upload URL for product
|
|
@@ -5955,11 +6012,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
|
|
|
5955
6012
|
/**
|
|
5956
6013
|
* Configure a promotion
|
|
5957
6014
|
* @summary Create promotion
|
|
5958
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
6015
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
5959
6016
|
* @param {*} [options] Override http request option.
|
|
5960
6017
|
* @throws {RequiredError}
|
|
5961
6018
|
*/
|
|
5962
|
-
createPromotion(promotionRequest: PromotionRequest, options?: any): AxiosPromise<Promotion>;
|
|
6019
|
+
createPromotion(promotionRequest: PromotionRequest | null, options?: any): AxiosPromise<Promotion>;
|
|
5963
6020
|
/**
|
|
5964
6021
|
* Create upload URL for product
|
|
5965
6022
|
* @summary Create upload URL for product
|
|
@@ -6101,12 +6158,12 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
6101
6158
|
/**
|
|
6102
6159
|
* Configure a promotion
|
|
6103
6160
|
* @summary Create promotion
|
|
6104
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
6161
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
6105
6162
|
* @param {*} [options] Override http request option.
|
|
6106
6163
|
* @throws {RequiredError}
|
|
6107
6164
|
* @memberof PromotionApi
|
|
6108
6165
|
*/
|
|
6109
|
-
createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
|
|
6166
|
+
createPromotion(promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
|
|
6110
6167
|
/**
|
|
6111
6168
|
* Create upload URL for product
|
|
6112
6169
|
* @summary Create upload URL for product
|
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
|
|
@@ -4362,7 +4428,7 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
4362
4428
|
/**
|
|
4363
4429
|
* Configure a promotion
|
|
4364
4430
|
* @summary Create promotion
|
|
4365
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
4431
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
4366
4432
|
* @param {*} [options] Override http request option.
|
|
4367
4433
|
* @throws {RequiredError}
|
|
4368
4434
|
*/
|
|
@@ -4840,7 +4906,7 @@ export const PromotionApiFp = function (configuration) {
|
|
|
4840
4906
|
/**
|
|
4841
4907
|
* Configure a promotion
|
|
4842
4908
|
* @summary Create promotion
|
|
4843
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
4909
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
4844
4910
|
* @param {*} [options] Override http request option.
|
|
4845
4911
|
* @throws {RequiredError}
|
|
4846
4912
|
*/
|
|
@@ -5036,7 +5102,7 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
5036
5102
|
/**
|
|
5037
5103
|
* Configure a promotion
|
|
5038
5104
|
* @summary Create promotion
|
|
5039
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
5105
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
5040
5106
|
* @param {*} [options] Override http request option.
|
|
5041
5107
|
* @throws {RequiredError}
|
|
5042
5108
|
*/
|
|
@@ -5209,7 +5275,7 @@ export class PromotionApi extends BaseAPI {
|
|
|
5209
5275
|
/**
|
|
5210
5276
|
* Configure a promotion
|
|
5211
5277
|
* @summary Create promotion
|
|
5212
|
-
* @param {PromotionRequest} promotionRequest Promotion configuration
|
|
5278
|
+
* @param {PromotionRequest | null} promotionRequest Promotion configuration
|
|
5213
5279
|
* @param {*} [options] Override http request option.
|
|
5214
5280
|
* @throws {RequiredError}
|
|
5215
5281
|
* @memberof PromotionApi
|