flexinet-api 0.0.260-prerelease0 → 0.0.264-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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.264-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.264-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4963,6 +4963,36 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4963
4963
|
options: localVarRequestOptions,
|
|
4964
4964
|
};
|
|
4965
4965
|
},
|
|
4966
|
+
/**
|
|
4967
|
+
* Create upload URL for product
|
|
4968
|
+
* @summary Create upload URL for product
|
|
4969
|
+
* @param {*} [options] Override http request option.
|
|
4970
|
+
* @throws {RequiredError}
|
|
4971
|
+
*/
|
|
4972
|
+
createUploadURL: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4973
|
+
const localVarPath = `/products/upload-urls`;
|
|
4974
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4975
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4976
|
+
let baseOptions;
|
|
4977
|
+
if (configuration) {
|
|
4978
|
+
baseOptions = configuration.baseOptions;
|
|
4979
|
+
}
|
|
4980
|
+
|
|
4981
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4982
|
+
const localVarHeaderParameter = {} as any;
|
|
4983
|
+
const localVarQueryParameter = {} as any;
|
|
4984
|
+
|
|
4985
|
+
|
|
4986
|
+
|
|
4987
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4988
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4989
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4990
|
+
|
|
4991
|
+
return {
|
|
4992
|
+
url: toPathString(localVarUrlObj),
|
|
4993
|
+
options: localVarRequestOptions,
|
|
4994
|
+
};
|
|
4995
|
+
},
|
|
4966
4996
|
/**
|
|
4967
4997
|
* Get a product by id
|
|
4968
4998
|
* @summary Get a product by id
|
|
@@ -5074,6 +5104,75 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5074
5104
|
|
|
5075
5105
|
|
|
5076
5106
|
|
|
5107
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5108
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5109
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5110
|
+
|
|
5111
|
+
return {
|
|
5112
|
+
url: toPathString(localVarUrlObj),
|
|
5113
|
+
options: localVarRequestOptions,
|
|
5114
|
+
};
|
|
5115
|
+
},
|
|
5116
|
+
/**
|
|
5117
|
+
* List existing products
|
|
5118
|
+
* @summary List existing products
|
|
5119
|
+
* @param {ProductKind} [kind] The product kind
|
|
5120
|
+
* @param {string} [search] search string
|
|
5121
|
+
* @param {ProductUsage} [usage] The product usage
|
|
5122
|
+
* @param {ProductStatus} [status] The product status
|
|
5123
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
5124
|
+
* @param {string} [segmentID] The segment ID
|
|
5125
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5126
|
+
* @param {*} [options] Override http request option.
|
|
5127
|
+
* @throws {RequiredError}
|
|
5128
|
+
*/
|
|
5129
|
+
listProducts: async (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5130
|
+
const localVarPath = `/products`;
|
|
5131
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5132
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5133
|
+
let baseOptions;
|
|
5134
|
+
if (configuration) {
|
|
5135
|
+
baseOptions = configuration.baseOptions;
|
|
5136
|
+
}
|
|
5137
|
+
|
|
5138
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5139
|
+
const localVarHeaderParameter = {} as any;
|
|
5140
|
+
const localVarQueryParameter = {} as any;
|
|
5141
|
+
|
|
5142
|
+
// authentication jwt required
|
|
5143
|
+
// http bearer authentication required
|
|
5144
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5145
|
+
|
|
5146
|
+
if (kind !== undefined) {
|
|
5147
|
+
localVarQueryParameter['kind'] = kind;
|
|
5148
|
+
}
|
|
5149
|
+
|
|
5150
|
+
if (search !== undefined) {
|
|
5151
|
+
localVarQueryParameter['search'] = search;
|
|
5152
|
+
}
|
|
5153
|
+
|
|
5154
|
+
if (usage !== undefined) {
|
|
5155
|
+
localVarQueryParameter['usage'] = usage;
|
|
5156
|
+
}
|
|
5157
|
+
|
|
5158
|
+
if (status !== undefined) {
|
|
5159
|
+
localVarQueryParameter['status'] = status;
|
|
5160
|
+
}
|
|
5161
|
+
|
|
5162
|
+
if (availability !== undefined) {
|
|
5163
|
+
localVarQueryParameter['availability'] = availability;
|
|
5164
|
+
}
|
|
5165
|
+
|
|
5166
|
+
if (segmentID !== undefined) {
|
|
5167
|
+
localVarQueryParameter['segmentID'] = segmentID;
|
|
5168
|
+
}
|
|
5169
|
+
|
|
5170
|
+
if (nextToken !== undefined) {
|
|
5171
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
5172
|
+
}
|
|
5173
|
+
|
|
5174
|
+
|
|
5175
|
+
|
|
5077
5176
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5078
5177
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5079
5178
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -5169,6 +5268,16 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
|
5169
5268
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createProductRequest(productRequestCreationRequest, options);
|
|
5170
5269
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5171
5270
|
},
|
|
5271
|
+
/**
|
|
5272
|
+
* Create upload URL for product
|
|
5273
|
+
* @summary Create upload URL for product
|
|
5274
|
+
* @param {*} [options] Override http request option.
|
|
5275
|
+
* @throws {RequiredError}
|
|
5276
|
+
*/
|
|
5277
|
+
async createUploadURL(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadURLResponse>> {
|
|
5278
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createUploadURL(options);
|
|
5279
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5280
|
+
},
|
|
5172
5281
|
/**
|
|
5173
5282
|
* Get a product by id
|
|
5174
5283
|
* @summary Get a product by id
|
|
@@ -5203,6 +5312,23 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
|
5203
5312
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductRequests(status, nextToken, options);
|
|
5204
5313
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5205
5314
|
},
|
|
5315
|
+
/**
|
|
5316
|
+
* List existing products
|
|
5317
|
+
* @summary List existing products
|
|
5318
|
+
* @param {ProductKind} [kind] The product kind
|
|
5319
|
+
* @param {string} [search] search string
|
|
5320
|
+
* @param {ProductUsage} [usage] The product usage
|
|
5321
|
+
* @param {ProductStatus} [status] The product status
|
|
5322
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
5323
|
+
* @param {string} [segmentID] The segment ID
|
|
5324
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5325
|
+
* @param {*} [options] Override http request option.
|
|
5326
|
+
* @throws {RequiredError}
|
|
5327
|
+
*/
|
|
5328
|
+
async listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
|
|
5329
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options);
|
|
5330
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5331
|
+
},
|
|
5206
5332
|
/**
|
|
5207
5333
|
* Update a product by id
|
|
5208
5334
|
* @summary Update a product by id
|
|
@@ -5256,6 +5382,15 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
|
5256
5382
|
createProductRequest(productRequestCreationRequest?: ProductRequestCreationRequest, options?: any): AxiosPromise<ProductRequest> {
|
|
5257
5383
|
return localVarFp.createProductRequest(productRequestCreationRequest, options).then((request) => request(axios, basePath));
|
|
5258
5384
|
},
|
|
5385
|
+
/**
|
|
5386
|
+
* Create upload URL for product
|
|
5387
|
+
* @summary Create upload URL for product
|
|
5388
|
+
* @param {*} [options] Override http request option.
|
|
5389
|
+
* @throws {RequiredError}
|
|
5390
|
+
*/
|
|
5391
|
+
createUploadURL(options?: any): AxiosPromise<UploadURLResponse> {
|
|
5392
|
+
return localVarFp.createUploadURL(options).then((request) => request(axios, basePath));
|
|
5393
|
+
},
|
|
5259
5394
|
/**
|
|
5260
5395
|
* Get a product by id
|
|
5261
5396
|
* @summary Get a product by id
|
|
@@ -5287,6 +5422,22 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
|
5287
5422
|
listProductRequests(status?: ProductRequestStatus, nextToken?: string, options?: any): AxiosPromise<ProductRequestsResponse> {
|
|
5288
5423
|
return localVarFp.listProductRequests(status, nextToken, options).then((request) => request(axios, basePath));
|
|
5289
5424
|
},
|
|
5425
|
+
/**
|
|
5426
|
+
* List existing products
|
|
5427
|
+
* @summary List existing products
|
|
5428
|
+
* @param {ProductKind} [kind] The product kind
|
|
5429
|
+
* @param {string} [search] search string
|
|
5430
|
+
* @param {ProductUsage} [usage] The product usage
|
|
5431
|
+
* @param {ProductStatus} [status] The product status
|
|
5432
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
5433
|
+
* @param {string} [segmentID] The segment ID
|
|
5434
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5435
|
+
* @param {*} [options] Override http request option.
|
|
5436
|
+
* @throws {RequiredError}
|
|
5437
|
+
*/
|
|
5438
|
+
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: any): AxiosPromise<ProductsResponse> {
|
|
5439
|
+
return localVarFp.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(axios, basePath));
|
|
5440
|
+
},
|
|
5290
5441
|
/**
|
|
5291
5442
|
* Update a product by id
|
|
5292
5443
|
* @summary Update a product by id
|
|
@@ -5345,6 +5496,17 @@ export class ProductApi extends BaseAPI {
|
|
|
5345
5496
|
return ProductApiFp(this.configuration).createProductRequest(productRequestCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5346
5497
|
}
|
|
5347
5498
|
|
|
5499
|
+
/**
|
|
5500
|
+
* Create upload URL for product
|
|
5501
|
+
* @summary Create upload URL for product
|
|
5502
|
+
* @param {*} [options] Override http request option.
|
|
5503
|
+
* @throws {RequiredError}
|
|
5504
|
+
* @memberof ProductApi
|
|
5505
|
+
*/
|
|
5506
|
+
public createUploadURL(options?: AxiosRequestConfig) {
|
|
5507
|
+
return ProductApiFp(this.configuration).createUploadURL(options).then((request) => request(this.axios, this.basePath));
|
|
5508
|
+
}
|
|
5509
|
+
|
|
5348
5510
|
/**
|
|
5349
5511
|
* Get a product by id
|
|
5350
5512
|
* @summary Get a product by id
|
|
@@ -5382,6 +5544,24 @@ export class ProductApi extends BaseAPI {
|
|
|
5382
5544
|
return ProductApiFp(this.configuration).listProductRequests(status, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
5383
5545
|
}
|
|
5384
5546
|
|
|
5547
|
+
/**
|
|
5548
|
+
* List existing products
|
|
5549
|
+
* @summary List existing products
|
|
5550
|
+
* @param {ProductKind} [kind] The product kind
|
|
5551
|
+
* @param {string} [search] search string
|
|
5552
|
+
* @param {ProductUsage} [usage] The product usage
|
|
5553
|
+
* @param {ProductStatus} [status] The product status
|
|
5554
|
+
* @param {ProductAvailability} [availability] The product availability
|
|
5555
|
+
* @param {string} [segmentID] The segment ID
|
|
5556
|
+
* @param {string} [nextToken] This is the pagination token
|
|
5557
|
+
* @param {*} [options] Override http request option.
|
|
5558
|
+
* @throws {RequiredError}
|
|
5559
|
+
* @memberof ProductApi
|
|
5560
|
+
*/
|
|
5561
|
+
public listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig) {
|
|
5562
|
+
return ProductApiFp(this.configuration).listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
5563
|
+
}
|
|
5564
|
+
|
|
5385
5565
|
/**
|
|
5386
5566
|
* Update a product by id
|
|
5387
5567
|
* @summary Update a product by id
|
|
@@ -6321,225 +6501,6 @@ export class PromotionApi extends BaseAPI {
|
|
|
6321
6501
|
|
|
6322
6502
|
|
|
6323
6503
|
|
|
6324
|
-
/**
|
|
6325
|
-
* RewardApi - axios parameter creator
|
|
6326
|
-
* @export
|
|
6327
|
-
*/
|
|
6328
|
-
export const RewardApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6329
|
-
return {
|
|
6330
|
-
/**
|
|
6331
|
-
* Create upload URL for reward
|
|
6332
|
-
* @summary Create upload URL for reward
|
|
6333
|
-
* @param {*} [options] Override http request option.
|
|
6334
|
-
* @throws {RequiredError}
|
|
6335
|
-
*/
|
|
6336
|
-
createUploadURL: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6337
|
-
const localVarPath = `/products/upload-urls`;
|
|
6338
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6339
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6340
|
-
let baseOptions;
|
|
6341
|
-
if (configuration) {
|
|
6342
|
-
baseOptions = configuration.baseOptions;
|
|
6343
|
-
}
|
|
6344
|
-
|
|
6345
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6346
|
-
const localVarHeaderParameter = {} as any;
|
|
6347
|
-
const localVarQueryParameter = {} as any;
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6352
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6353
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6354
|
-
|
|
6355
|
-
return {
|
|
6356
|
-
url: toPathString(localVarUrlObj),
|
|
6357
|
-
options: localVarRequestOptions,
|
|
6358
|
-
};
|
|
6359
|
-
},
|
|
6360
|
-
/**
|
|
6361
|
-
* List existing products
|
|
6362
|
-
* @summary List existing products
|
|
6363
|
-
* @param {ProductKind} [kind] The product kind
|
|
6364
|
-
* @param {string} [search] search string
|
|
6365
|
-
* @param {ProductUsage} [usage] The product usage
|
|
6366
|
-
* @param {ProductStatus} [status] The product status
|
|
6367
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
6368
|
-
* @param {string} [segmentID] The segment ID
|
|
6369
|
-
* @param {string} [nextToken] This is the pagination token
|
|
6370
|
-
* @param {*} [options] Override http request option.
|
|
6371
|
-
* @throws {RequiredError}
|
|
6372
|
-
*/
|
|
6373
|
-
listProducts: async (kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6374
|
-
const localVarPath = `/products`;
|
|
6375
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6376
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6377
|
-
let baseOptions;
|
|
6378
|
-
if (configuration) {
|
|
6379
|
-
baseOptions = configuration.baseOptions;
|
|
6380
|
-
}
|
|
6381
|
-
|
|
6382
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6383
|
-
const localVarHeaderParameter = {} as any;
|
|
6384
|
-
const localVarQueryParameter = {} as any;
|
|
6385
|
-
|
|
6386
|
-
// authentication jwt required
|
|
6387
|
-
// http bearer authentication required
|
|
6388
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6389
|
-
|
|
6390
|
-
if (kind !== undefined) {
|
|
6391
|
-
localVarQueryParameter['kind'] = kind;
|
|
6392
|
-
}
|
|
6393
|
-
|
|
6394
|
-
if (search !== undefined) {
|
|
6395
|
-
localVarQueryParameter['search'] = search;
|
|
6396
|
-
}
|
|
6397
|
-
|
|
6398
|
-
if (usage !== undefined) {
|
|
6399
|
-
localVarQueryParameter['usage'] = usage;
|
|
6400
|
-
}
|
|
6401
|
-
|
|
6402
|
-
if (status !== undefined) {
|
|
6403
|
-
localVarQueryParameter['status'] = status;
|
|
6404
|
-
}
|
|
6405
|
-
|
|
6406
|
-
if (availability !== undefined) {
|
|
6407
|
-
localVarQueryParameter['availability'] = availability;
|
|
6408
|
-
}
|
|
6409
|
-
|
|
6410
|
-
if (segmentID !== undefined) {
|
|
6411
|
-
localVarQueryParameter['segmentID'] = segmentID;
|
|
6412
|
-
}
|
|
6413
|
-
|
|
6414
|
-
if (nextToken !== undefined) {
|
|
6415
|
-
localVarQueryParameter['nextToken'] = nextToken;
|
|
6416
|
-
}
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6421
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6422
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6423
|
-
|
|
6424
|
-
return {
|
|
6425
|
-
url: toPathString(localVarUrlObj),
|
|
6426
|
-
options: localVarRequestOptions,
|
|
6427
|
-
};
|
|
6428
|
-
},
|
|
6429
|
-
}
|
|
6430
|
-
};
|
|
6431
|
-
|
|
6432
|
-
/**
|
|
6433
|
-
* RewardApi - functional programming interface
|
|
6434
|
-
* @export
|
|
6435
|
-
*/
|
|
6436
|
-
export const RewardApiFp = function(configuration?: Configuration) {
|
|
6437
|
-
const localVarAxiosParamCreator = RewardApiAxiosParamCreator(configuration)
|
|
6438
|
-
return {
|
|
6439
|
-
/**
|
|
6440
|
-
* Create upload URL for reward
|
|
6441
|
-
* @summary Create upload URL for reward
|
|
6442
|
-
* @param {*} [options] Override http request option.
|
|
6443
|
-
* @throws {RequiredError}
|
|
6444
|
-
*/
|
|
6445
|
-
async createUploadURL(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadURLResponse>> {
|
|
6446
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createUploadURL(options);
|
|
6447
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6448
|
-
},
|
|
6449
|
-
/**
|
|
6450
|
-
* List existing products
|
|
6451
|
-
* @summary List existing products
|
|
6452
|
-
* @param {ProductKind} [kind] The product kind
|
|
6453
|
-
* @param {string} [search] search string
|
|
6454
|
-
* @param {ProductUsage} [usage] The product usage
|
|
6455
|
-
* @param {ProductStatus} [status] The product status
|
|
6456
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
6457
|
-
* @param {string} [segmentID] The segment ID
|
|
6458
|
-
* @param {string} [nextToken] This is the pagination token
|
|
6459
|
-
* @param {*} [options] Override http request option.
|
|
6460
|
-
* @throws {RequiredError}
|
|
6461
|
-
*/
|
|
6462
|
-
async listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
|
|
6463
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options);
|
|
6464
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6465
|
-
},
|
|
6466
|
-
}
|
|
6467
|
-
};
|
|
6468
|
-
|
|
6469
|
-
/**
|
|
6470
|
-
* RewardApi - factory interface
|
|
6471
|
-
* @export
|
|
6472
|
-
*/
|
|
6473
|
-
export const RewardApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6474
|
-
const localVarFp = RewardApiFp(configuration)
|
|
6475
|
-
return {
|
|
6476
|
-
/**
|
|
6477
|
-
* Create upload URL for reward
|
|
6478
|
-
* @summary Create upload URL for reward
|
|
6479
|
-
* @param {*} [options] Override http request option.
|
|
6480
|
-
* @throws {RequiredError}
|
|
6481
|
-
*/
|
|
6482
|
-
createUploadURL(options?: any): AxiosPromise<UploadURLResponse> {
|
|
6483
|
-
return localVarFp.createUploadURL(options).then((request) => request(axios, basePath));
|
|
6484
|
-
},
|
|
6485
|
-
/**
|
|
6486
|
-
* List existing products
|
|
6487
|
-
* @summary List existing products
|
|
6488
|
-
* @param {ProductKind} [kind] The product kind
|
|
6489
|
-
* @param {string} [search] search string
|
|
6490
|
-
* @param {ProductUsage} [usage] The product usage
|
|
6491
|
-
* @param {ProductStatus} [status] The product status
|
|
6492
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
6493
|
-
* @param {string} [segmentID] The segment ID
|
|
6494
|
-
* @param {string} [nextToken] This is the pagination token
|
|
6495
|
-
* @param {*} [options] Override http request option.
|
|
6496
|
-
* @throws {RequiredError}
|
|
6497
|
-
*/
|
|
6498
|
-
listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: any): AxiosPromise<ProductsResponse> {
|
|
6499
|
-
return localVarFp.listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(axios, basePath));
|
|
6500
|
-
},
|
|
6501
|
-
};
|
|
6502
|
-
};
|
|
6503
|
-
|
|
6504
|
-
/**
|
|
6505
|
-
* RewardApi - object-oriented interface
|
|
6506
|
-
* @export
|
|
6507
|
-
* @class RewardApi
|
|
6508
|
-
* @extends {BaseAPI}
|
|
6509
|
-
*/
|
|
6510
|
-
export class RewardApi extends BaseAPI {
|
|
6511
|
-
/**
|
|
6512
|
-
* Create upload URL for reward
|
|
6513
|
-
* @summary Create upload URL for reward
|
|
6514
|
-
* @param {*} [options] Override http request option.
|
|
6515
|
-
* @throws {RequiredError}
|
|
6516
|
-
* @memberof RewardApi
|
|
6517
|
-
*/
|
|
6518
|
-
public createUploadURL(options?: AxiosRequestConfig) {
|
|
6519
|
-
return RewardApiFp(this.configuration).createUploadURL(options).then((request) => request(this.axios, this.basePath));
|
|
6520
|
-
}
|
|
6521
|
-
|
|
6522
|
-
/**
|
|
6523
|
-
* List existing products
|
|
6524
|
-
* @summary List existing products
|
|
6525
|
-
* @param {ProductKind} [kind] The product kind
|
|
6526
|
-
* @param {string} [search] search string
|
|
6527
|
-
* @param {ProductUsage} [usage] The product usage
|
|
6528
|
-
* @param {ProductStatus} [status] The product status
|
|
6529
|
-
* @param {ProductAvailability} [availability] The product availability
|
|
6530
|
-
* @param {string} [segmentID] The segment ID
|
|
6531
|
-
* @param {string} [nextToken] This is the pagination token
|
|
6532
|
-
* @param {*} [options] Override http request option.
|
|
6533
|
-
* @throws {RequiredError}
|
|
6534
|
-
* @memberof RewardApi
|
|
6535
|
-
*/
|
|
6536
|
-
public listProducts(kind?: ProductKind, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, options?: AxiosRequestConfig) {
|
|
6537
|
-
return RewardApiFp(this.configuration).listProducts(kind, search, usage, status, availability, segmentID, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
6538
|
-
}
|
|
6539
|
-
}
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
6504
|
/**
|
|
6544
6505
|
* SegmentApi - axios parameter creator
|
|
6545
6506
|
* @export
|