flexinet-api 0.0.260-prerelease0 → 0.0.263-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 +180 -219
- package/dist/api.d.ts +86 -112
- package/dist/api.js +165 -203
- package/dist/esm/api.d.ts +86 -112
- package/dist/esm/api.js +164 -198
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
|
@@ -3685,6 +3685,13 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3685
3685
|
* @throws {RequiredError}
|
|
3686
3686
|
*/
|
|
3687
3687
|
createProductRequest: (productRequestCreationRequest?: ProductRequestCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3688
|
+
/**
|
|
3689
|
+
* Create upload URL for product
|
|
3690
|
+
* @summary Create upload URL for product
|
|
3691
|
+
* @param {*} [options] Override http request option.
|
|
3692
|
+
* @throws {RequiredError}
|
|
3693
|
+
*/
|
|
3694
|
+
createUploadURL: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3688
3695
|
/**
|
|
3689
3696
|
* Get a product by id
|
|
3690
3697
|
* @summary Get a product by id
|
|
@@ -3710,6 +3717,20 @@ export declare const ProductApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3710
3717
|
* @throws {RequiredError}
|
|
3711
3718
|
*/
|
|
3712
3719
|
listProductRequests: (status?: ProductRequestStatus, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3720
|
+
/**
|
|
3721
|
+
* List existing products
|
|
3722
|
+
* @summary List existing products
|
|
3723
|
+
* @param {ProductKind} [kind] The product kind
|
|
3724
|
+
* @param {string} [search] search string
|
|
3725
|
+
* @param {ProductUsage} [usage] The product usage
|
|
3726
|
+
* @param {ProductStatus} [status] The product status
|
|
3727
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
3728
|
+
* @param {string} [segmentID] The segment ID
|
|
3729
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3730
|
+
* @param {*} [options] Override http request option.
|
|
3731
|
+
* @throws {RequiredError}
|
|
3732
|
+
*/
|
|
3733
|
+
listProducts: (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3713
3734
|
/**
|
|
3714
3735
|
* Update a product by id
|
|
3715
3736
|
* @summary Update a product by id
|
|
@@ -3750,6 +3771,13 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
3750
3771
|
* @throws {RequiredError}
|
|
3751
3772
|
*/
|
|
3752
3773
|
createProductRequest(productRequestCreationRequest?: ProductRequestCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequest>>;
|
|
3774
|
+
/**
|
|
3775
|
+
* Create upload URL for product
|
|
3776
|
+
* @summary Create upload URL for product
|
|
3777
|
+
* @param {*} [options] Override http request option.
|
|
3778
|
+
* @throws {RequiredError}
|
|
3779
|
+
*/
|
|
3780
|
+
createUploadURL(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadURLResponse>>;
|
|
3753
3781
|
/**
|
|
3754
3782
|
* Get a product by id
|
|
3755
3783
|
* @summary Get a product by id
|
|
@@ -3775,6 +3803,20 @@ export declare const ProductApiFp: (configuration?: Configuration) => {
|
|
|
3775
3803
|
* @throws {RequiredError}
|
|
3776
3804
|
*/
|
|
3777
3805
|
listProductRequests(status?: ProductRequestStatus, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestsResponse>>;
|
|
3806
|
+
/**
|
|
3807
|
+
* List existing products
|
|
3808
|
+
* @summary List existing products
|
|
3809
|
+
* @param {ProductKind} [kind] The product kind
|
|
3810
|
+
* @param {string} [search] search string
|
|
3811
|
+
* @param {ProductUsage} [usage] The product usage
|
|
3812
|
+
* @param {ProductStatus} [status] The product status
|
|
3813
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
3814
|
+
* @param {string} [segmentID] The segment ID
|
|
3815
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3816
|
+
* @param {*} [options] Override http request option.
|
|
3817
|
+
* @throws {RequiredError}
|
|
3818
|
+
*/
|
|
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>>;
|
|
3778
3820
|
/**
|
|
3779
3821
|
* Update a product by id
|
|
3780
3822
|
* @summary Update a product by id
|
|
@@ -3815,6 +3857,13 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
3815
3857
|
* @throws {RequiredError}
|
|
3816
3858
|
*/
|
|
3817
3859
|
createProductRequest(productRequestCreationRequest?: ProductRequestCreationRequest, options?: any): AxiosPromise<ProductRequest>;
|
|
3860
|
+
/**
|
|
3861
|
+
* Create upload URL for product
|
|
3862
|
+
* @summary Create upload URL for product
|
|
3863
|
+
* @param {*} [options] Override http request option.
|
|
3864
|
+
* @throws {RequiredError}
|
|
3865
|
+
*/
|
|
3866
|
+
createUploadURL(options?: any): AxiosPromise<UploadURLResponse>;
|
|
3818
3867
|
/**
|
|
3819
3868
|
* Get a product by id
|
|
3820
3869
|
* @summary Get a product by id
|
|
@@ -3840,6 +3889,20 @@ export declare const ProductApiFactory: (configuration?: Configuration, basePath
|
|
|
3840
3889
|
* @throws {RequiredError}
|
|
3841
3890
|
*/
|
|
3842
3891
|
listProductRequests(status?: ProductRequestStatus, nextToken?: string, options?: any): AxiosPromise<ProductRequestsResponse>;
|
|
3892
|
+
/**
|
|
3893
|
+
* List existing products
|
|
3894
|
+
* @summary List existing products
|
|
3895
|
+
* @param {ProductKind} [kind] The product kind
|
|
3896
|
+
* @param {string} [search] search string
|
|
3897
|
+
* @param {ProductUsage} [usage] The product usage
|
|
3898
|
+
* @param {ProductStatus} [status] The product status
|
|
3899
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
3900
|
+
* @param {string} [segmentID] The segment ID
|
|
3901
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3902
|
+
* @param {*} [options] Override http request option.
|
|
3903
|
+
* @throws {RequiredError}
|
|
3904
|
+
*/
|
|
3905
|
+
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: any): AxiosPromise<ProductsResponse>;
|
|
3843
3906
|
/**
|
|
3844
3907
|
* Update a product by id
|
|
3845
3908
|
* @summary Update a product by id
|
|
@@ -3885,6 +3948,14 @@ export declare class ProductApi extends BaseAPI {
|
|
|
3885
3948
|
* @memberof ProductApi
|
|
3886
3949
|
*/
|
|
3887
3950
|
createProductRequest(productRequestCreationRequest?: ProductRequestCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequest, any>>;
|
|
3951
|
+
/**
|
|
3952
|
+
* Create upload URL for product
|
|
3953
|
+
* @summary Create upload URL for product
|
|
3954
|
+
* @param {*} [options] Override http request option.
|
|
3955
|
+
* @throws {RequiredError}
|
|
3956
|
+
* @memberof ProductApi
|
|
3957
|
+
*/
|
|
3958
|
+
createUploadURL(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadURLResponse, any>>;
|
|
3888
3959
|
/**
|
|
3889
3960
|
* Get a product by id
|
|
3890
3961
|
* @summary Get a product by id
|
|
@@ -3913,6 +3984,21 @@ export declare class ProductApi extends BaseAPI {
|
|
|
3913
3984
|
* @memberof ProductApi
|
|
3914
3985
|
*/
|
|
3915
3986
|
listProductRequests(status?: ProductRequestStatus, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRequestsResponse, any>>;
|
|
3987
|
+
/**
|
|
3988
|
+
* List existing products
|
|
3989
|
+
* @summary List existing products
|
|
3990
|
+
* @param {ProductKind} [kind] The product kind
|
|
3991
|
+
* @param {string} [search] search string
|
|
3992
|
+
* @param {ProductUsage} [usage] The product usage
|
|
3993
|
+
* @param {ProductStatus} [status] The product status
|
|
3994
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
3995
|
+
* @param {string} [segmentID] The segment ID
|
|
3996
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3997
|
+
* @param {*} [options] Override http request option.
|
|
3998
|
+
* @throws {RequiredError}
|
|
3999
|
+
* @memberof ProductApi
|
|
4000
|
+
*/
|
|
4001
|
+
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
3916
4002
|
/**
|
|
3917
4003
|
* Update a product by id
|
|
3918
4004
|
* @summary Update a product by id
|
|
@@ -4384,118 +4470,6 @@ export declare class PromotionApi extends BaseAPI {
|
|
|
4384
4470
|
*/
|
|
4385
4471
|
updatePromotion(id: string, updatePromotionRequest: UpdatePromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
|
|
4386
4472
|
}
|
|
4387
|
-
/**
|
|
4388
|
-
* RewardApi - axios parameter creator
|
|
4389
|
-
* @export
|
|
4390
|
-
*/
|
|
4391
|
-
export declare const RewardApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4392
|
-
/**
|
|
4393
|
-
* Create upload URL for reward
|
|
4394
|
-
* @summary Create upload URL for reward
|
|
4395
|
-
* @param {*} [options] Override http request option.
|
|
4396
|
-
* @throws {RequiredError}
|
|
4397
|
-
*/
|
|
4398
|
-
createUploadURL: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4399
|
-
/**
|
|
4400
|
-
* List existing products
|
|
4401
|
-
* @summary List existing products
|
|
4402
|
-
* @param {ProductKind} [kind] The product kind
|
|
4403
|
-
* @param {string} [search] search string
|
|
4404
|
-
* @param {ProductUsage} [usage] The product usage
|
|
4405
|
-
* @param {ProductStatus} [status] The product status
|
|
4406
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
4407
|
-
* @param {string} [segmentID] The segment ID
|
|
4408
|
-
* @param {string} [nextToken] This is the pagination token
|
|
4409
|
-
* @param {*} [options] Override http request option.
|
|
4410
|
-
* @throws {RequiredError}
|
|
4411
|
-
*/
|
|
4412
|
-
listProducts: (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4413
|
-
};
|
|
4414
|
-
/**
|
|
4415
|
-
* RewardApi - functional programming interface
|
|
4416
|
-
* @export
|
|
4417
|
-
*/
|
|
4418
|
-
export declare const RewardApiFp: (configuration?: Configuration) => {
|
|
4419
|
-
/**
|
|
4420
|
-
* Create upload URL for reward
|
|
4421
|
-
* @summary Create upload URL for reward
|
|
4422
|
-
* @param {*} [options] Override http request option.
|
|
4423
|
-
* @throws {RequiredError}
|
|
4424
|
-
*/
|
|
4425
|
-
createUploadURL(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadURLResponse>>;
|
|
4426
|
-
/**
|
|
4427
|
-
* List existing products
|
|
4428
|
-
* @summary List existing products
|
|
4429
|
-
* @param {ProductKind} [kind] The product kind
|
|
4430
|
-
* @param {string} [search] search string
|
|
4431
|
-
* @param {ProductUsage} [usage] The product usage
|
|
4432
|
-
* @param {ProductStatus} [status] The product status
|
|
4433
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
4434
|
-
* @param {string} [segmentID] The segment ID
|
|
4435
|
-
* @param {string} [nextToken] This is the pagination token
|
|
4436
|
-
* @param {*} [options] Override http request option.
|
|
4437
|
-
* @throws {RequiredError}
|
|
4438
|
-
*/
|
|
4439
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>>;
|
|
4440
|
-
};
|
|
4441
|
-
/**
|
|
4442
|
-
* RewardApi - factory interface
|
|
4443
|
-
* @export
|
|
4444
|
-
*/
|
|
4445
|
-
export declare const RewardApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4446
|
-
/**
|
|
4447
|
-
* Create upload URL for reward
|
|
4448
|
-
* @summary Create upload URL for reward
|
|
4449
|
-
* @param {*} [options] Override http request option.
|
|
4450
|
-
* @throws {RequiredError}
|
|
4451
|
-
*/
|
|
4452
|
-
createUploadURL(options?: any): AxiosPromise<UploadURLResponse>;
|
|
4453
|
-
/**
|
|
4454
|
-
* List existing products
|
|
4455
|
-
* @summary List existing products
|
|
4456
|
-
* @param {ProductKind} [kind] The product kind
|
|
4457
|
-
* @param {string} [search] search string
|
|
4458
|
-
* @param {ProductUsage} [usage] The product usage
|
|
4459
|
-
* @param {ProductStatus} [status] The product status
|
|
4460
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
4461
|
-
* @param {string} [segmentID] The segment ID
|
|
4462
|
-
* @param {string} [nextToken] This is the pagination token
|
|
4463
|
-
* @param {*} [options] Override http request option.
|
|
4464
|
-
* @throws {RequiredError}
|
|
4465
|
-
*/
|
|
4466
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: any): AxiosPromise<ProductsResponse>;
|
|
4467
|
-
};
|
|
4468
|
-
/**
|
|
4469
|
-
* RewardApi - object-oriented interface
|
|
4470
|
-
* @export
|
|
4471
|
-
* @class RewardApi
|
|
4472
|
-
* @extends {BaseAPI}
|
|
4473
|
-
*/
|
|
4474
|
-
export declare class RewardApi extends BaseAPI {
|
|
4475
|
-
/**
|
|
4476
|
-
* Create upload URL for reward
|
|
4477
|
-
* @summary Create upload URL for reward
|
|
4478
|
-
* @param {*} [options] Override http request option.
|
|
4479
|
-
* @throws {RequiredError}
|
|
4480
|
-
* @memberof RewardApi
|
|
4481
|
-
*/
|
|
4482
|
-
createUploadURL(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadURLResponse, any>>;
|
|
4483
|
-
/**
|
|
4484
|
-
* List existing products
|
|
4485
|
-
* @summary List existing products
|
|
4486
|
-
* @param {ProductKind} [kind] The product kind
|
|
4487
|
-
* @param {string} [search] search string
|
|
4488
|
-
* @param {ProductUsage} [usage] The product usage
|
|
4489
|
-
* @param {ProductStatus} [status] The product status
|
|
4490
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
4491
|
-
* @param {string} [segmentID] The segment ID
|
|
4492
|
-
* @param {string} [nextToken] This is the pagination token
|
|
4493
|
-
* @param {*} [options] Override http request option.
|
|
4494
|
-
* @throws {RequiredError}
|
|
4495
|
-
* @memberof RewardApi
|
|
4496
|
-
*/
|
|
4497
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductsResponse, any>>;
|
|
4498
|
-
}
|
|
4499
4473
|
/**
|
|
4500
4474
|
* SegmentApi - axios parameter creator
|
|
4501
4475
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -2274,6 +2274,31 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2274
2274
|
options: localVarRequestOptions,
|
|
2275
2275
|
};
|
|
2276
2276
|
}),
|
|
2277
|
+
/**
|
|
2278
|
+
* Create upload URL for product
|
|
2279
|
+
* @summary Create upload URL for product
|
|
2280
|
+
* @param {*} [options] Override http request option.
|
|
2281
|
+
* @throws {RequiredError}
|
|
2282
|
+
*/
|
|
2283
|
+
createUploadURL: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2284
|
+
const localVarPath = `/products/upload-urls`;
|
|
2285
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2286
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2287
|
+
let baseOptions;
|
|
2288
|
+
if (configuration) {
|
|
2289
|
+
baseOptions = configuration.baseOptions;
|
|
2290
|
+
}
|
|
2291
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2292
|
+
const localVarHeaderParameter = {};
|
|
2293
|
+
const localVarQueryParameter = {};
|
|
2294
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2296
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2297
|
+
return {
|
|
2298
|
+
url: toPathString(localVarUrlObj),
|
|
2299
|
+
options: localVarRequestOptions,
|
|
2300
|
+
};
|
|
2301
|
+
}),
|
|
2277
2302
|
/**
|
|
2278
2303
|
* Get a product by id
|
|
2279
2304
|
* @summary Get a product by id
|
|
@@ -2374,6 +2399,62 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2374
2399
|
options: localVarRequestOptions,
|
|
2375
2400
|
};
|
|
2376
2401
|
}),
|
|
2402
|
+
/**
|
|
2403
|
+
* List existing products
|
|
2404
|
+
* @summary List existing products
|
|
2405
|
+
* @param {ProductKind} [kind] The product kind
|
|
2406
|
+
* @param {string} [search] search string
|
|
2407
|
+
* @param {ProductUsage} [usage] The product usage
|
|
2408
|
+
* @param {ProductStatus} [status] The product status
|
|
2409
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
2410
|
+
* @param {string} [segmentID] The segment ID
|
|
2411
|
+
* @param {string} [nextToken] This is the pagination token
|
|
2412
|
+
* @param {*} [options] Override http request option.
|
|
2413
|
+
* @throws {RequiredError}
|
|
2414
|
+
*/
|
|
2415
|
+
listProducts: (kind, search, usage, status, availability, segmentID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2416
|
+
const localVarPath = `/products`;
|
|
2417
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2418
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2419
|
+
let baseOptions;
|
|
2420
|
+
if (configuration) {
|
|
2421
|
+
baseOptions = configuration.baseOptions;
|
|
2422
|
+
}
|
|
2423
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2424
|
+
const localVarHeaderParameter = {};
|
|
2425
|
+
const localVarQueryParameter = {};
|
|
2426
|
+
// authentication jwt required
|
|
2427
|
+
// http bearer authentication required
|
|
2428
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2429
|
+
if (kind !== undefined) {
|
|
2430
|
+
localVarQueryParameter['kind'] = kind;
|
|
2431
|
+
}
|
|
2432
|
+
if (search !== undefined) {
|
|
2433
|
+
localVarQueryParameter['search'] = search;
|
|
2434
|
+
}
|
|
2435
|
+
if (usage !== undefined) {
|
|
2436
|
+
localVarQueryParameter['usage'] = usage;
|
|
2437
|
+
}
|
|
2438
|
+
if (status !== undefined) {
|
|
2439
|
+
localVarQueryParameter['status'] = status;
|
|
2440
|
+
}
|
|
2441
|
+
if (availability !== undefined) {
|
|
2442
|
+
localVarQueryParameter['availability'] = availability;
|
|
2443
|
+
}
|
|
2444
|
+
if (segmentID !== undefined) {
|
|
2445
|
+
localVarQueryParameter['segmentID'] = segmentID;
|
|
2446
|
+
}
|
|
2447
|
+
if (nextToken !== undefined) {
|
|
2448
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
2449
|
+
}
|
|
2450
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2451
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2452
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2453
|
+
return {
|
|
2454
|
+
url: toPathString(localVarUrlObj),
|
|
2455
|
+
options: localVarRequestOptions,
|
|
2456
|
+
};
|
|
2457
|
+
}),
|
|
2377
2458
|
/**
|
|
2378
2459
|
* Update a product by id
|
|
2379
2460
|
* @summary Update a product by id
|
|
@@ -2458,6 +2539,18 @@ export const ProductApiFp = function (configuration) {
|
|
|
2458
2539
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2459
2540
|
});
|
|
2460
2541
|
},
|
|
2542
|
+
/**
|
|
2543
|
+
* Create upload URL for product
|
|
2544
|
+
* @summary Create upload URL for product
|
|
2545
|
+
* @param {*} [options] Override http request option.
|
|
2546
|
+
* @throws {RequiredError}
|
|
2547
|
+
*/
|
|
2548
|
+
createUploadURL(options) {
|
|
2549
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2550
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUploadURL(options);
|
|
2551
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2552
|
+
});
|
|
2553
|
+
},
|
|
2461
2554
|
/**
|
|
2462
2555
|
* Get a product by id
|
|
2463
2556
|
* @summary Get a product by id
|
|
@@ -2498,6 +2591,25 @@ export const ProductApiFp = function (configuration) {
|
|
|
2498
2591
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2499
2592
|
});
|
|
2500
2593
|
},
|
|
2594
|
+
/**
|
|
2595
|
+
* List existing products
|
|
2596
|
+
* @summary List existing products
|
|
2597
|
+
* @param {ProductKind} [kind] The product kind
|
|
2598
|
+
* @param {string} [search] search string
|
|
2599
|
+
* @param {ProductUsage} [usage] The product usage
|
|
2600
|
+
* @param {ProductStatus} [status] The product status
|
|
2601
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
2602
|
+
* @param {string} [segmentID] The segment ID
|
|
2603
|
+
* @param {string} [nextToken] This is the pagination token
|
|
2604
|
+
* @param {*} [options] Override http request option.
|
|
2605
|
+
* @throws {RequiredError}
|
|
2606
|
+
*/
|
|
2607
|
+
listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
|
|
2608
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2609
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options);
|
|
2610
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2611
|
+
});
|
|
2612
|
+
},
|
|
2501
2613
|
/**
|
|
2502
2614
|
* Update a product by id
|
|
2503
2615
|
* @summary Update a product by id
|
|
@@ -2552,6 +2664,15 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2552
2664
|
createProductRequest(productRequestCreationRequest, options) {
|
|
2553
2665
|
return localVarFp.createProductRequest(productRequestCreationRequest, options).then((request) => request(axios, basePath));
|
|
2554
2666
|
},
|
|
2667
|
+
/**
|
|
2668
|
+
* Create upload URL for product
|
|
2669
|
+
* @summary Create upload URL for product
|
|
2670
|
+
* @param {*} [options] Override http request option.
|
|
2671
|
+
* @throws {RequiredError}
|
|
2672
|
+
*/
|
|
2673
|
+
createUploadURL(options) {
|
|
2674
|
+
return localVarFp.createUploadURL(options).then((request) => request(axios, basePath));
|
|
2675
|
+
},
|
|
2555
2676
|
/**
|
|
2556
2677
|
* Get a product by id
|
|
2557
2678
|
* @summary Get a product by id
|
|
@@ -2583,6 +2704,22 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2583
2704
|
listProductRequests(status, nextToken, options) {
|
|
2584
2705
|
return localVarFp.listProductRequests(status, nextToken, options).then((request) => request(axios, basePath));
|
|
2585
2706
|
},
|
|
2707
|
+
/**
|
|
2708
|
+
* List existing products
|
|
2709
|
+
* @summary List existing products
|
|
2710
|
+
* @param {ProductKind} [kind] The product kind
|
|
2711
|
+
* @param {string} [search] search string
|
|
2712
|
+
* @param {ProductUsage} [usage] The product usage
|
|
2713
|
+
* @param {ProductStatus} [status] The product status
|
|
2714
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
2715
|
+
* @param {string} [segmentID] The segment ID
|
|
2716
|
+
* @param {string} [nextToken] This is the pagination token
|
|
2717
|
+
* @param {*} [options] Override http request option.
|
|
2718
|
+
* @throws {RequiredError}
|
|
2719
|
+
*/
|
|
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));
|
|
2722
|
+
},
|
|
2586
2723
|
/**
|
|
2587
2724
|
* Update a product by id
|
|
2588
2725
|
* @summary Update a product by id
|
|
@@ -2637,6 +2774,16 @@ export class ProductApi extends BaseAPI {
|
|
|
2637
2774
|
createProductRequest(productRequestCreationRequest, options) {
|
|
2638
2775
|
return ProductApiFp(this.configuration).createProductRequest(productRequestCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2639
2776
|
}
|
|
2777
|
+
/**
|
|
2778
|
+
* Create upload URL for product
|
|
2779
|
+
* @summary Create upload URL for product
|
|
2780
|
+
* @param {*} [options] Override http request option.
|
|
2781
|
+
* @throws {RequiredError}
|
|
2782
|
+
* @memberof ProductApi
|
|
2783
|
+
*/
|
|
2784
|
+
createUploadURL(options) {
|
|
2785
|
+
return ProductApiFp(this.configuration).createUploadURL(options).then((request) => request(this.axios, this.basePath));
|
|
2786
|
+
}
|
|
2640
2787
|
/**
|
|
2641
2788
|
* Get a product by id
|
|
2642
2789
|
* @summary Get a product by id
|
|
@@ -2671,6 +2818,23 @@ export class ProductApi extends BaseAPI {
|
|
|
2671
2818
|
listProductRequests(status, nextToken, options) {
|
|
2672
2819
|
return ProductApiFp(this.configuration).listProductRequests(status, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
2673
2820
|
}
|
|
2821
|
+
/**
|
|
2822
|
+
* List existing products
|
|
2823
|
+
* @summary List existing products
|
|
2824
|
+
* @param {ProductKind} [kind] The product kind
|
|
2825
|
+
* @param {string} [search] search string
|
|
2826
|
+
* @param {ProductUsage} [usage] The product usage
|
|
2827
|
+
* @param {ProductStatus} [status] The product status
|
|
2828
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
2829
|
+
* @param {string} [segmentID] The segment ID
|
|
2830
|
+
* @param {string} [nextToken] This is the pagination token
|
|
2831
|
+
* @param {*} [options] Override http request option.
|
|
2832
|
+
* @throws {RequiredError}
|
|
2833
|
+
* @memberof ProductApi
|
|
2834
|
+
*/
|
|
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));
|
|
2837
|
+
}
|
|
2674
2838
|
/**
|
|
2675
2839
|
* Update a product by id
|
|
2676
2840
|
* @summary Update a product by id
|
|
@@ -3533,204 +3697,6 @@ export class PromotionApi extends BaseAPI {
|
|
|
3533
3697
|
return PromotionApiFp(this.configuration).updatePromotion(id, updatePromotionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3534
3698
|
}
|
|
3535
3699
|
}
|
|
3536
|
-
/**
|
|
3537
|
-
* RewardApi - axios parameter creator
|
|
3538
|
-
* @export
|
|
3539
|
-
*/
|
|
3540
|
-
export const RewardApiAxiosParamCreator = function (configuration) {
|
|
3541
|
-
return {
|
|
3542
|
-
/**
|
|
3543
|
-
* Create upload URL for reward
|
|
3544
|
-
* @summary Create upload URL for reward
|
|
3545
|
-
* @param {*} [options] Override http request option.
|
|
3546
|
-
* @throws {RequiredError}
|
|
3547
|
-
*/
|
|
3548
|
-
createUploadURL: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3549
|
-
const localVarPath = `/products/upload-urls`;
|
|
3550
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3551
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3552
|
-
let baseOptions;
|
|
3553
|
-
if (configuration) {
|
|
3554
|
-
baseOptions = configuration.baseOptions;
|
|
3555
|
-
}
|
|
3556
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3557
|
-
const localVarHeaderParameter = {};
|
|
3558
|
-
const localVarQueryParameter = {};
|
|
3559
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3560
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3561
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3562
|
-
return {
|
|
3563
|
-
url: toPathString(localVarUrlObj),
|
|
3564
|
-
options: localVarRequestOptions,
|
|
3565
|
-
};
|
|
3566
|
-
}),
|
|
3567
|
-
/**
|
|
3568
|
-
* List existing products
|
|
3569
|
-
* @summary List existing products
|
|
3570
|
-
* @param {ProductKind} [kind] The product kind
|
|
3571
|
-
* @param {string} [search] search string
|
|
3572
|
-
* @param {ProductUsage} [usage] The product usage
|
|
3573
|
-
* @param {ProductStatus} [status] The product status
|
|
3574
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
3575
|
-
* @param {string} [segmentID] The segment ID
|
|
3576
|
-
* @param {string} [nextToken] This is the pagination token
|
|
3577
|
-
* @param {*} [options] Override http request option.
|
|
3578
|
-
* @throws {RequiredError}
|
|
3579
|
-
*/
|
|
3580
|
-
listProducts: (kind, search, usage, status, availability, segmentID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3581
|
-
const localVarPath = `/products`;
|
|
3582
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3583
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3584
|
-
let baseOptions;
|
|
3585
|
-
if (configuration) {
|
|
3586
|
-
baseOptions = configuration.baseOptions;
|
|
3587
|
-
}
|
|
3588
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3589
|
-
const localVarHeaderParameter = {};
|
|
3590
|
-
const localVarQueryParameter = {};
|
|
3591
|
-
// authentication jwt required
|
|
3592
|
-
// http bearer authentication required
|
|
3593
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3594
|
-
if (kind !== undefined) {
|
|
3595
|
-
localVarQueryParameter['kind'] = kind;
|
|
3596
|
-
}
|
|
3597
|
-
if (search !== undefined) {
|
|
3598
|
-
localVarQueryParameter['search'] = search;
|
|
3599
|
-
}
|
|
3600
|
-
if (usage !== undefined) {
|
|
3601
|
-
localVarQueryParameter['usage'] = usage;
|
|
3602
|
-
}
|
|
3603
|
-
if (status !== undefined) {
|
|
3604
|
-
localVarQueryParameter['status'] = status;
|
|
3605
|
-
}
|
|
3606
|
-
if (availability !== undefined) {
|
|
3607
|
-
localVarQueryParameter['availability'] = availability;
|
|
3608
|
-
}
|
|
3609
|
-
if (segmentID !== undefined) {
|
|
3610
|
-
localVarQueryParameter['segmentID'] = segmentID;
|
|
3611
|
-
}
|
|
3612
|
-
if (nextToken !== undefined) {
|
|
3613
|
-
localVarQueryParameter['nextToken'] = nextToken;
|
|
3614
|
-
}
|
|
3615
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3616
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3617
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3618
|
-
return {
|
|
3619
|
-
url: toPathString(localVarUrlObj),
|
|
3620
|
-
options: localVarRequestOptions,
|
|
3621
|
-
};
|
|
3622
|
-
}),
|
|
3623
|
-
};
|
|
3624
|
-
};
|
|
3625
|
-
/**
|
|
3626
|
-
* RewardApi - functional programming interface
|
|
3627
|
-
* @export
|
|
3628
|
-
*/
|
|
3629
|
-
export const RewardApiFp = function (configuration) {
|
|
3630
|
-
const localVarAxiosParamCreator = RewardApiAxiosParamCreator(configuration);
|
|
3631
|
-
return {
|
|
3632
|
-
/**
|
|
3633
|
-
* Create upload URL for reward
|
|
3634
|
-
* @summary Create upload URL for reward
|
|
3635
|
-
* @param {*} [options] Override http request option.
|
|
3636
|
-
* @throws {RequiredError}
|
|
3637
|
-
*/
|
|
3638
|
-
createUploadURL(options) {
|
|
3639
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3640
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUploadURL(options);
|
|
3641
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3642
|
-
});
|
|
3643
|
-
},
|
|
3644
|
-
/**
|
|
3645
|
-
* List existing products
|
|
3646
|
-
* @summary List existing products
|
|
3647
|
-
* @param {ProductKind} [kind] The product kind
|
|
3648
|
-
* @param {string} [search] search string
|
|
3649
|
-
* @param {ProductUsage} [usage] The product usage
|
|
3650
|
-
* @param {ProductStatus} [status] The product status
|
|
3651
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
3652
|
-
* @param {string} [segmentID] The segment ID
|
|
3653
|
-
* @param {string} [nextToken] This is the pagination token
|
|
3654
|
-
* @param {*} [options] Override http request option.
|
|
3655
|
-
* @throws {RequiredError}
|
|
3656
|
-
*/
|
|
3657
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
|
|
3658
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3659
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options);
|
|
3660
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3661
|
-
});
|
|
3662
|
-
},
|
|
3663
|
-
};
|
|
3664
|
-
};
|
|
3665
|
-
/**
|
|
3666
|
-
* RewardApi - factory interface
|
|
3667
|
-
* @export
|
|
3668
|
-
*/
|
|
3669
|
-
export const RewardApiFactory = function (configuration, basePath, axios) {
|
|
3670
|
-
const localVarFp = RewardApiFp(configuration);
|
|
3671
|
-
return {
|
|
3672
|
-
/**
|
|
3673
|
-
* Create upload URL for reward
|
|
3674
|
-
* @summary Create upload URL for reward
|
|
3675
|
-
* @param {*} [options] Override http request option.
|
|
3676
|
-
* @throws {RequiredError}
|
|
3677
|
-
*/
|
|
3678
|
-
createUploadURL(options) {
|
|
3679
|
-
return localVarFp.createUploadURL(options).then((request) => request(axios, basePath));
|
|
3680
|
-
},
|
|
3681
|
-
/**
|
|
3682
|
-
* List existing products
|
|
3683
|
-
* @summary List existing products
|
|
3684
|
-
* @param {ProductKind} [kind] The product kind
|
|
3685
|
-
* @param {string} [search] search string
|
|
3686
|
-
* @param {ProductUsage} [usage] The product usage
|
|
3687
|
-
* @param {ProductStatus} [status] The product status
|
|
3688
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
3689
|
-
* @param {string} [segmentID] The segment ID
|
|
3690
|
-
* @param {string} [nextToken] This is the pagination token
|
|
3691
|
-
* @param {*} [options] Override http request option.
|
|
3692
|
-
* @throws {RequiredError}
|
|
3693
|
-
*/
|
|
3694
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
|
|
3695
|
-
return localVarFp.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(axios, basePath));
|
|
3696
|
-
},
|
|
3697
|
-
};
|
|
3698
|
-
};
|
|
3699
|
-
/**
|
|
3700
|
-
* RewardApi - object-oriented interface
|
|
3701
|
-
* @export
|
|
3702
|
-
* @class RewardApi
|
|
3703
|
-
* @extends {BaseAPI}
|
|
3704
|
-
*/
|
|
3705
|
-
export class RewardApi extends BaseAPI {
|
|
3706
|
-
/**
|
|
3707
|
-
* Create upload URL for reward
|
|
3708
|
-
* @summary Create upload URL for reward
|
|
3709
|
-
* @param {*} [options] Override http request option.
|
|
3710
|
-
* @throws {RequiredError}
|
|
3711
|
-
* @memberof RewardApi
|
|
3712
|
-
*/
|
|
3713
|
-
createUploadURL(options) {
|
|
3714
|
-
return RewardApiFp(this.configuration).createUploadURL(options).then((request) => request(this.axios, this.basePath));
|
|
3715
|
-
}
|
|
3716
|
-
/**
|
|
3717
|
-
* List existing products
|
|
3718
|
-
* @summary List existing products
|
|
3719
|
-
* @param {ProductKind} [kind] The product kind
|
|
3720
|
-
* @param {string} [search] search string
|
|
3721
|
-
* @param {ProductUsage} [usage] The product usage
|
|
3722
|
-
* @param {ProductStatus} [status] The product status
|
|
3723
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
3724
|
-
* @param {string} [segmentID] The segment ID
|
|
3725
|
-
* @param {string} [nextToken] This is the pagination token
|
|
3726
|
-
* @param {*} [options] Override http request option.
|
|
3727
|
-
* @throws {RequiredError}
|
|
3728
|
-
* @memberof RewardApi
|
|
3729
|
-
*/
|
|
3730
|
-
listProducts(kind, search, usage, status, availability, segmentID, nextToken, options) {
|
|
3731
|
-
return RewardApiFp(this.configuration).listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
3732
|
-
}
|
|
3733
|
-
}
|
|
3734
3700
|
/**
|
|
3735
3701
|
* SegmentApi - axios parameter creator
|
|
3736
3702
|
* @export
|