flexinet-api 0.0.429-prerelease0 → 0.0.430-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 +126 -95
- package/dist/api.d.ts +89 -64
- package/dist/api.js +105 -95
- package/dist/esm/api.d.ts +89 -64
- package/dist/esm/api.js +105 -95
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## flexinet-api@0.0.
|
|
1
|
+
## flexinet-api@0.0.430-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.430-prerelease0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -178,6 +178,19 @@ export interface BalanceUpdateRequest {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @export
|
|
184
|
+
* @interface BalancesResponse
|
|
185
|
+
*/
|
|
186
|
+
export interface BalancesResponse {
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @type {Array<Balance>}
|
|
190
|
+
* @memberof BalancesResponse
|
|
191
|
+
*/
|
|
192
|
+
'balances': Array<Balance>;
|
|
193
|
+
}
|
|
181
194
|
/**
|
|
182
195
|
*
|
|
183
196
|
* @export
|
|
@@ -2690,6 +2703,12 @@ export interface TransactionEventDetails {
|
|
|
2690
2703
|
* @memberof TransactionEventDetails
|
|
2691
2704
|
*/
|
|
2692
2705
|
'originalTimestamp'?: string;
|
|
2706
|
+
/**
|
|
2707
|
+
*
|
|
2708
|
+
* @type {{ [key: string]: string; }}
|
|
2709
|
+
* @memberof TransactionEventDetails
|
|
2710
|
+
*/
|
|
2711
|
+
'metadata'?: { [key: string]: string; };
|
|
2693
2712
|
}
|
|
2694
2713
|
|
|
2695
2714
|
|
|
@@ -3377,14 +3396,14 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3377
3396
|
/**
|
|
3378
3397
|
* Get balance
|
|
3379
3398
|
* @summary Get balance
|
|
3380
|
-
* @param {string}
|
|
3399
|
+
* @param {Array<string>} beneficiaryValues Beneficiary values to filter by
|
|
3381
3400
|
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
|
3382
3401
|
* @param {*} [options] Override http request option.
|
|
3383
3402
|
* @throws {RequiredError}
|
|
3384
3403
|
*/
|
|
3385
|
-
getBalance: async (
|
|
3386
|
-
// verify required parameter '
|
|
3387
|
-
assertParamExists('getBalance', '
|
|
3404
|
+
getBalance: async (beneficiaryValues: Array<string>, kind: BeneficiaryKind, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3405
|
+
// verify required parameter 'beneficiaryValues' is not null or undefined
|
|
3406
|
+
assertParamExists('getBalance', 'beneficiaryValues', beneficiaryValues)
|
|
3388
3407
|
// verify required parameter 'kind' is not null or undefined
|
|
3389
3408
|
assertParamExists('getBalance', 'kind', kind)
|
|
3390
3409
|
const localVarPath = `/admins/balances`;
|
|
@@ -3403,8 +3422,8 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3403
3422
|
// http bearer authentication required
|
|
3404
3423
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3405
3424
|
|
|
3406
|
-
if (
|
|
3407
|
-
localVarQueryParameter['
|
|
3425
|
+
if (beneficiaryValues) {
|
|
3426
|
+
localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
|
|
3408
3427
|
}
|
|
3409
3428
|
|
|
3410
3429
|
if (kind !== undefined) {
|
|
@@ -3480,6 +3499,10 @@ export const BalanceApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3480
3499
|
const localVarHeaderParameter = {} as any;
|
|
3481
3500
|
const localVarQueryParameter = {} as any;
|
|
3482
3501
|
|
|
3502
|
+
// authentication jwt required
|
|
3503
|
+
// http bearer authentication required
|
|
3504
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3505
|
+
|
|
3483
3506
|
|
|
3484
3507
|
|
|
3485
3508
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -3545,13 +3568,13 @@ export const BalanceApiFp = function(configuration?: Configuration) {
|
|
|
3545
3568
|
/**
|
|
3546
3569
|
* Get balance
|
|
3547
3570
|
* @summary Get balance
|
|
3548
|
-
* @param {string}
|
|
3571
|
+
* @param {Array<string>} beneficiaryValues Beneficiary values to filter by
|
|
3549
3572
|
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
|
3550
3573
|
* @param {*} [options] Override http request option.
|
|
3551
3574
|
* @throws {RequiredError}
|
|
3552
3575
|
*/
|
|
3553
|
-
async getBalance(
|
|
3554
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBalance(
|
|
3576
|
+
async getBalance(beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BalancesResponse>> {
|
|
3577
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBalance(beneficiaryValues, kind, options);
|
|
3555
3578
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3556
3579
|
},
|
|
3557
3580
|
/**
|
|
@@ -3601,13 +3624,13 @@ export const BalanceApiFactory = function (configuration?: Configuration, basePa
|
|
|
3601
3624
|
/**
|
|
3602
3625
|
* Get balance
|
|
3603
3626
|
* @summary Get balance
|
|
3604
|
-
* @param {string}
|
|
3627
|
+
* @param {Array<string>} beneficiaryValues Beneficiary values to filter by
|
|
3605
3628
|
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
|
3606
3629
|
* @param {*} [options] Override http request option.
|
|
3607
3630
|
* @throws {RequiredError}
|
|
3608
3631
|
*/
|
|
3609
|
-
getBalance(
|
|
3610
|
-
return localVarFp.getBalance(
|
|
3632
|
+
getBalance(beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: any): AxiosPromise<BalancesResponse> {
|
|
3633
|
+
return localVarFp.getBalance(beneficiaryValues, kind, options).then((request) => request(axios, basePath));
|
|
3611
3634
|
},
|
|
3612
3635
|
/**
|
|
3613
3636
|
* Get balance for the user
|
|
@@ -3653,14 +3676,14 @@ export class BalanceApi extends BaseAPI {
|
|
|
3653
3676
|
/**
|
|
3654
3677
|
* Get balance
|
|
3655
3678
|
* @summary Get balance
|
|
3656
|
-
* @param {string}
|
|
3679
|
+
* @param {Array<string>} beneficiaryValues Beneficiary values to filter by
|
|
3657
3680
|
* @param {BeneficiaryKind} kind This is the beneficiary kind
|
|
3658
3681
|
* @param {*} [options] Override http request option.
|
|
3659
3682
|
* @throws {RequiredError}
|
|
3660
3683
|
* @memberof BalanceApi
|
|
3661
3684
|
*/
|
|
3662
|
-
public getBalance(
|
|
3663
|
-
return BalanceApiFp(this.configuration).getBalance(
|
|
3685
|
+
public getBalance(beneficiaryValues: Array<string>, kind: BeneficiaryKind, options?: AxiosRequestConfig) {
|
|
3686
|
+
return BalanceApiFp(this.configuration).getBalance(beneficiaryValues, kind, options).then((request) => request(this.axios, this.basePath));
|
|
3664
3687
|
}
|
|
3665
3688
|
|
|
3666
3689
|
/**
|
|
@@ -5257,13 +5280,13 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5257
5280
|
* @param {string} [paginationToken] This is the pagination token
|
|
5258
5281
|
* @param {string} [search] Search for product or order
|
|
5259
5282
|
* @param {string} [productId] Filter by token
|
|
5260
|
-
* @param {string} [
|
|
5283
|
+
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
|
5261
5284
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5262
5285
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5263
5286
|
* @param {*} [options] Override http request option.
|
|
5264
5287
|
* @throws {RequiredError}
|
|
5265
5288
|
*/
|
|
5266
|
-
listOrders: async (paginationToken?: string, search?: string, productId?: string,
|
|
5289
|
+
listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5267
5290
|
const localVarPath = `/admins/orders`;
|
|
5268
5291
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5269
5292
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5292,8 +5315,8 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5292
5315
|
localVarQueryParameter['productId'] = productId;
|
|
5293
5316
|
}
|
|
5294
5317
|
|
|
5295
|
-
if (
|
|
5296
|
-
localVarQueryParameter['
|
|
5318
|
+
if (balanceIDs) {
|
|
5319
|
+
localVarQueryParameter['balanceIDs'] = balanceIDs;
|
|
5297
5320
|
}
|
|
5298
5321
|
|
|
5299
5322
|
if (createdAfter !== undefined) {
|
|
@@ -5324,14 +5347,14 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5324
5347
|
* @summary List existing orders
|
|
5325
5348
|
* @param {string} [paginationToken] This is the pagination token
|
|
5326
5349
|
* @param {string} [search] Search for product or order
|
|
5327
|
-
* @param {string} [
|
|
5328
|
-
* @param {string} [
|
|
5350
|
+
* @param {string} [productID] Filter by token
|
|
5351
|
+
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
|
5329
5352
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5330
5353
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5331
5354
|
* @param {*} [options] Override http request option.
|
|
5332
5355
|
* @throws {RequiredError}
|
|
5333
5356
|
*/
|
|
5334
|
-
listOrdersUser: async (paginationToken?: string, search?: string,
|
|
5357
|
+
listOrdersUser: async (paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5335
5358
|
const localVarPath = `/users/orders`;
|
|
5336
5359
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5337
5360
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5352,12 +5375,12 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5352
5375
|
localVarQueryParameter['search'] = search;
|
|
5353
5376
|
}
|
|
5354
5377
|
|
|
5355
|
-
if (
|
|
5356
|
-
localVarQueryParameter['
|
|
5378
|
+
if (productID !== undefined) {
|
|
5379
|
+
localVarQueryParameter['productID'] = productID;
|
|
5357
5380
|
}
|
|
5358
5381
|
|
|
5359
|
-
if (
|
|
5360
|
-
localVarQueryParameter['
|
|
5382
|
+
if (balanceIDs) {
|
|
5383
|
+
localVarQueryParameter['balanceIDs'] = balanceIDs;
|
|
5361
5384
|
}
|
|
5362
5385
|
|
|
5363
5386
|
if (createdAfter !== undefined) {
|
|
@@ -5421,14 +5444,14 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
|
5421
5444
|
* @param {string} [paginationToken] This is the pagination token
|
|
5422
5445
|
* @param {string} [search] Search for product or order
|
|
5423
5446
|
* @param {string} [productId] Filter by token
|
|
5424
|
-
* @param {string} [
|
|
5447
|
+
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
|
5425
5448
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5426
5449
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5427
5450
|
* @param {*} [options] Override http request option.
|
|
5428
5451
|
* @throws {RequiredError}
|
|
5429
5452
|
*/
|
|
5430
|
-
async listOrders(paginationToken?: string, search?: string, productId?: string,
|
|
5431
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId,
|
|
5453
|
+
async listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>> {
|
|
5454
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, options);
|
|
5432
5455
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5433
5456
|
},
|
|
5434
5457
|
/**
|
|
@@ -5436,15 +5459,15 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
|
5436
5459
|
* @summary List existing orders
|
|
5437
5460
|
* @param {string} [paginationToken] This is the pagination token
|
|
5438
5461
|
* @param {string} [search] Search for product or order
|
|
5439
|
-
* @param {string} [
|
|
5440
|
-
* @param {string} [
|
|
5462
|
+
* @param {string} [productID] Filter by token
|
|
5463
|
+
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
|
5441
5464
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5442
5465
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5443
5466
|
* @param {*} [options] Override http request option.
|
|
5444
5467
|
* @throws {RequiredError}
|
|
5445
5468
|
*/
|
|
5446
|
-
async listOrdersUser(paginationToken?: string, search?: string,
|
|
5447
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrdersUser(paginationToken, search,
|
|
5469
|
+
async listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>> {
|
|
5470
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrdersUser(paginationToken, search, productID, balanceIDs, createdAfter, createdBefore, options);
|
|
5448
5471
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5449
5472
|
},
|
|
5450
5473
|
}
|
|
@@ -5483,29 +5506,29 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
|
5483
5506
|
* @param {string} [paginationToken] This is the pagination token
|
|
5484
5507
|
* @param {string} [search] Search for product or order
|
|
5485
5508
|
* @param {string} [productId] Filter by token
|
|
5486
|
-
* @param {string} [
|
|
5509
|
+
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
|
5487
5510
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5488
5511
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5489
5512
|
* @param {*} [options] Override http request option.
|
|
5490
5513
|
* @throws {RequiredError}
|
|
5491
5514
|
*/
|
|
5492
|
-
listOrders(paginationToken?: string, search?: string, productId?: string,
|
|
5493
|
-
return localVarFp.listOrders(paginationToken, search, productId,
|
|
5515
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse> {
|
|
5516
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, options).then((request) => request(axios, basePath));
|
|
5494
5517
|
},
|
|
5495
5518
|
/**
|
|
5496
5519
|
* List existing orders
|
|
5497
5520
|
* @summary List existing orders
|
|
5498
5521
|
* @param {string} [paginationToken] This is the pagination token
|
|
5499
5522
|
* @param {string} [search] Search for product or order
|
|
5500
|
-
* @param {string} [
|
|
5501
|
-
* @param {string} [
|
|
5523
|
+
* @param {string} [productID] Filter by token
|
|
5524
|
+
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
|
5502
5525
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5503
5526
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5504
5527
|
* @param {*} [options] Override http request option.
|
|
5505
5528
|
* @throws {RequiredError}
|
|
5506
5529
|
*/
|
|
5507
|
-
listOrdersUser(paginationToken?: string, search?: string,
|
|
5508
|
-
return localVarFp.listOrdersUser(paginationToken, search,
|
|
5530
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, options?: any): AxiosPromise<OrderListResponse> {
|
|
5531
|
+
return localVarFp.listOrdersUser(paginationToken, search, productID, balanceIDs, createdAfter, createdBefore, options).then((request) => request(axios, basePath));
|
|
5509
5532
|
},
|
|
5510
5533
|
};
|
|
5511
5534
|
};
|
|
@@ -5547,15 +5570,15 @@ export class OrderApi extends BaseAPI {
|
|
|
5547
5570
|
* @param {string} [paginationToken] This is the pagination token
|
|
5548
5571
|
* @param {string} [search] Search for product or order
|
|
5549
5572
|
* @param {string} [productId] Filter by token
|
|
5550
|
-
* @param {string} [
|
|
5573
|
+
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
|
5551
5574
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5552
5575
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5553
5576
|
* @param {*} [options] Override http request option.
|
|
5554
5577
|
* @throws {RequiredError}
|
|
5555
5578
|
* @memberof OrderApi
|
|
5556
5579
|
*/
|
|
5557
|
-
public listOrders(paginationToken?: string, search?: string, productId?: string,
|
|
5558
|
-
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId,
|
|
5580
|
+
public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) {
|
|
5581
|
+
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, options).then((request) => request(this.axios, this.basePath));
|
|
5559
5582
|
}
|
|
5560
5583
|
|
|
5561
5584
|
/**
|
|
@@ -5563,16 +5586,16 @@ export class OrderApi extends BaseAPI {
|
|
|
5563
5586
|
* @summary List existing orders
|
|
5564
5587
|
* @param {string} [paginationToken] This is the pagination token
|
|
5565
5588
|
* @param {string} [search] Search for product or order
|
|
5566
|
-
* @param {string} [
|
|
5567
|
-
* @param {string} [
|
|
5589
|
+
* @param {string} [productID] Filter by token
|
|
5590
|
+
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
|
5568
5591
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
|
5569
5592
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
|
5570
5593
|
* @param {*} [options] Override http request option.
|
|
5571
5594
|
* @throws {RequiredError}
|
|
5572
5595
|
* @memberof OrderApi
|
|
5573
5596
|
*/
|
|
5574
|
-
public listOrdersUser(paginationToken?: string, search?: string,
|
|
5575
|
-
return OrderApiFp(this.configuration).listOrdersUser(paginationToken, search,
|
|
5597
|
+
public listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, options?: AxiosRequestConfig) {
|
|
5598
|
+
return OrderApiFp(this.configuration).listOrdersUser(paginationToken, search, productID, balanceIDs, createdAfter, createdBefore, options).then((request) => request(this.axios, this.basePath));
|
|
5576
5599
|
}
|
|
5577
5600
|
}
|
|
5578
5601
|
|
|
@@ -6592,10 +6615,10 @@ export const ProgressApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
6592
6615
|
/**
|
|
6593
6616
|
* List progress
|
|
6594
6617
|
* @summary List progress
|
|
6595
|
-
* @param {Array<string>} promotionIDs Promotion
|
|
6618
|
+
* @param {Array<string>} promotionIDs Promotion IDs to filter by
|
|
6596
6619
|
* @param {number} [periodID] Period ID
|
|
6597
|
-
* @param {Array<string>} [userIDs] User
|
|
6598
|
-
* @param {Array<string>} [clientIDs] Client
|
|
6620
|
+
* @param {Array<string>} [userIDs] User IDs to filter by
|
|
6621
|
+
* @param {Array<string>} [clientIDs] Client IDs to filter by
|
|
6599
6622
|
* @param {ListProgressIntervalEnum} [interval] Interval
|
|
6600
6623
|
* @param {string} [nextToken] This is the pagination token
|
|
6601
6624
|
* @param {*} [options] Override http request option.
|
|
@@ -6719,10 +6742,10 @@ export const ProgressApiFp = function(configuration?: Configuration) {
|
|
|
6719
6742
|
/**
|
|
6720
6743
|
* List progress
|
|
6721
6744
|
* @summary List progress
|
|
6722
|
-
* @param {Array<string>} promotionIDs Promotion
|
|
6745
|
+
* @param {Array<string>} promotionIDs Promotion IDs to filter by
|
|
6723
6746
|
* @param {number} [periodID] Period ID
|
|
6724
|
-
* @param {Array<string>} [userIDs] User
|
|
6725
|
-
* @param {Array<string>} [clientIDs] Client
|
|
6747
|
+
* @param {Array<string>} [userIDs] User IDs to filter by
|
|
6748
|
+
* @param {Array<string>} [clientIDs] Client IDs to filter by
|
|
6726
6749
|
* @param {ListProgressIntervalEnum} [interval] Interval
|
|
6727
6750
|
* @param {string} [nextToken] This is the pagination token
|
|
6728
6751
|
* @param {*} [options] Override http request option.
|
|
@@ -6758,10 +6781,10 @@ export const ProgressApiFactory = function (configuration?: Configuration, baseP
|
|
|
6758
6781
|
/**
|
|
6759
6782
|
* List progress
|
|
6760
6783
|
* @summary List progress
|
|
6761
|
-
* @param {Array<string>} promotionIDs Promotion
|
|
6784
|
+
* @param {Array<string>} promotionIDs Promotion IDs to filter by
|
|
6762
6785
|
* @param {number} [periodID] Period ID
|
|
6763
|
-
* @param {Array<string>} [userIDs] User
|
|
6764
|
-
* @param {Array<string>} [clientIDs] Client
|
|
6786
|
+
* @param {Array<string>} [userIDs] User IDs to filter by
|
|
6787
|
+
* @param {Array<string>} [clientIDs] Client IDs to filter by
|
|
6765
6788
|
* @param {ListProgressIntervalEnum} [interval] Interval
|
|
6766
6789
|
* @param {string} [nextToken] This is the pagination token
|
|
6767
6790
|
* @param {*} [options] Override http request option.
|
|
@@ -6795,10 +6818,10 @@ export class ProgressApi extends BaseAPI {
|
|
|
6795
6818
|
/**
|
|
6796
6819
|
* List progress
|
|
6797
6820
|
* @summary List progress
|
|
6798
|
-
* @param {Array<string>} promotionIDs Promotion
|
|
6821
|
+
* @param {Array<string>} promotionIDs Promotion IDs to filter by
|
|
6799
6822
|
* @param {number} [periodID] Period ID
|
|
6800
|
-
* @param {Array<string>} [userIDs] User
|
|
6801
|
-
* @param {Array<string>} [clientIDs] Client
|
|
6823
|
+
* @param {Array<string>} [userIDs] User IDs to filter by
|
|
6824
|
+
* @param {Array<string>} [clientIDs] Client IDs to filter by
|
|
6802
6825
|
* @param {ListProgressIntervalEnum} [interval] Interval
|
|
6803
6826
|
* @param {string} [nextToken] This is the pagination token
|
|
6804
6827
|
* @param {*} [options] Override http request option.
|
|
@@ -7190,7 +7213,7 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7190
7213
|
* @param {string} [endingBefore] end time before time
|
|
7191
7214
|
* @param {string} [startingBefore] start time before time
|
|
7192
7215
|
* @param {string} [endingAfter] end time after time
|
|
7193
|
-
* @param {Array<string>} [clientIDs] client
|
|
7216
|
+
* @param {Array<string>} [clientIDs] client IDs to filter by
|
|
7194
7217
|
* @param {string} [search] search by name or description
|
|
7195
7218
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7196
7219
|
* @param {SortDirection} [sortDirection] sort direction
|
|
@@ -7539,7 +7562,7 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
|
7539
7562
|
* @param {string} [endingBefore] end time before time
|
|
7540
7563
|
* @param {string} [startingBefore] start time before time
|
|
7541
7564
|
* @param {string} [endingAfter] end time after time
|
|
7542
|
-
* @param {Array<string>} [clientIDs] client
|
|
7565
|
+
* @param {Array<string>} [clientIDs] client IDs to filter by
|
|
7543
7566
|
* @param {string} [search] search by name or description
|
|
7544
7567
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7545
7568
|
* @param {SortDirection} [sortDirection] sort direction
|
|
@@ -7695,7 +7718,7 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
|
7695
7718
|
* @param {string} [endingBefore] end time before time
|
|
7696
7719
|
* @param {string} [startingBefore] start time before time
|
|
7697
7720
|
* @param {string} [endingAfter] end time after time
|
|
7698
|
-
* @param {Array<string>} [clientIDs] client
|
|
7721
|
+
* @param {Array<string>} [clientIDs] client IDs to filter by
|
|
7699
7722
|
* @param {string} [search] search by name or description
|
|
7700
7723
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7701
7724
|
* @param {SortDirection} [sortDirection] sort direction
|
|
@@ -7866,7 +7889,7 @@ export class PromotionApi extends BaseAPI {
|
|
|
7866
7889
|
* @param {string} [endingBefore] end time before time
|
|
7867
7890
|
* @param {string} [startingBefore] start time before time
|
|
7868
7891
|
* @param {string} [endingAfter] end time after time
|
|
7869
|
-
* @param {Array<string>} [clientIDs] client
|
|
7892
|
+
* @param {Array<string>} [clientIDs] client IDs to filter by
|
|
7870
7893
|
* @param {string} [search] search by name or description
|
|
7871
7894
|
* @param {PromotionSortByField} [sortBy] sort by field
|
|
7872
7895
|
* @param {SortDirection} [sortDirection] sort direction
|
|
@@ -8587,11 +8610,12 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu
|
|
|
8587
8610
|
* List existing transactions
|
|
8588
8611
|
* @summary List existing transactions
|
|
8589
8612
|
* @param {string} [paginationToken] This is the pagination token
|
|
8590
|
-
* @param {string} [
|
|
8613
|
+
* @param {Array<string>} [clientIDs] This is the client IDs to filter by
|
|
8614
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
8591
8615
|
* @param {*} [options] Override http request option.
|
|
8592
8616
|
* @throws {RequiredError}
|
|
8593
8617
|
*/
|
|
8594
|
-
listTransactions: async (paginationToken?: string,
|
|
8618
|
+
listTransactions: async (paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8595
8619
|
const localVarPath = `/admins/transactions`;
|
|
8596
8620
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8597
8621
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8612,8 +8636,12 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu
|
|
|
8612
8636
|
localVarQueryParameter['paginationToken'] = paginationToken;
|
|
8613
8637
|
}
|
|
8614
8638
|
|
|
8615
|
-
if (
|
|
8616
|
-
localVarQueryParameter['
|
|
8639
|
+
if (clientIDs) {
|
|
8640
|
+
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
8641
|
+
}
|
|
8642
|
+
|
|
8643
|
+
if (userIDs) {
|
|
8644
|
+
localVarQueryParameter['userIDs'] = userIDs;
|
|
8617
8645
|
}
|
|
8618
8646
|
|
|
8619
8647
|
|
|
@@ -8641,12 +8669,13 @@ export const TransactionApiFp = function(configuration?: Configuration) {
|
|
|
8641
8669
|
* List existing transactions
|
|
8642
8670
|
* @summary List existing transactions
|
|
8643
8671
|
* @param {string} [paginationToken] This is the pagination token
|
|
8644
|
-
* @param {string} [
|
|
8672
|
+
* @param {Array<string>} [clientIDs] This is the client IDs to filter by
|
|
8673
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
8645
8674
|
* @param {*} [options] Override http request option.
|
|
8646
8675
|
* @throws {RequiredError}
|
|
8647
8676
|
*/
|
|
8648
|
-
async listTransactions(paginationToken?: string,
|
|
8649
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(paginationToken,
|
|
8677
|
+
async listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>> {
|
|
8678
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(paginationToken, clientIDs, userIDs, options);
|
|
8650
8679
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
8651
8680
|
},
|
|
8652
8681
|
}
|
|
@@ -8663,12 +8692,13 @@ export const TransactionApiFactory = function (configuration?: Configuration, ba
|
|
|
8663
8692
|
* List existing transactions
|
|
8664
8693
|
* @summary List existing transactions
|
|
8665
8694
|
* @param {string} [paginationToken] This is the pagination token
|
|
8666
|
-
* @param {string} [
|
|
8695
|
+
* @param {Array<string>} [clientIDs] This is the client IDs to filter by
|
|
8696
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
8667
8697
|
* @param {*} [options] Override http request option.
|
|
8668
8698
|
* @throws {RequiredError}
|
|
8669
8699
|
*/
|
|
8670
|
-
listTransactions(paginationToken?: string,
|
|
8671
|
-
return localVarFp.listTransactions(paginationToken,
|
|
8700
|
+
listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: any): AxiosPromise<TransactionsResponse> {
|
|
8701
|
+
return localVarFp.listTransactions(paginationToken, clientIDs, userIDs, options).then((request) => request(axios, basePath));
|
|
8672
8702
|
},
|
|
8673
8703
|
};
|
|
8674
8704
|
};
|
|
@@ -8684,13 +8714,14 @@ export class TransactionApi extends BaseAPI {
|
|
|
8684
8714
|
* List existing transactions
|
|
8685
8715
|
* @summary List existing transactions
|
|
8686
8716
|
* @param {string} [paginationToken] This is the pagination token
|
|
8687
|
-
* @param {string} [
|
|
8717
|
+
* @param {Array<string>} [clientIDs] This is the client IDs to filter by
|
|
8718
|
+
* @param {Array<string>} [userIDs] This is the user ID
|
|
8688
8719
|
* @param {*} [options] Override http request option.
|
|
8689
8720
|
* @throws {RequiredError}
|
|
8690
8721
|
* @memberof TransactionApi
|
|
8691
8722
|
*/
|
|
8692
|
-
public listTransactions(paginationToken?: string,
|
|
8693
|
-
return TransactionApiFp(this.configuration).listTransactions(paginationToken,
|
|
8723
|
+
public listTransactions(paginationToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig) {
|
|
8724
|
+
return TransactionApiFp(this.configuration).listTransactions(paginationToken, clientIDs, userIDs, options).then((request) => request(this.axios, this.basePath));
|
|
8694
8725
|
}
|
|
8695
8726
|
}
|
|
8696
8727
|
|
|
@@ -8784,13 +8815,13 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
8784
8815
|
* @param {string} [nextToken] This is the pagination token
|
|
8785
8816
|
* @param {UserRole} [role] role to filter by
|
|
8786
8817
|
* @param {string} [search] search string
|
|
8787
|
-
* @param {string} [
|
|
8788
|
-
* @param {string} [
|
|
8818
|
+
* @param {Array<string>} [clientIDs] client IDs to filter by
|
|
8819
|
+
* @param {Array<string>} [userIDs] user ids to filter by
|
|
8789
8820
|
* @param {UserSource} [source] source to filter by
|
|
8790
8821
|
* @param {*} [options] Override http request option.
|
|
8791
8822
|
* @throws {RequiredError}
|
|
8792
8823
|
*/
|
|
8793
|
-
listUsers: async (nextToken?: string, role?: UserRole, search?: string,
|
|
8824
|
+
listUsers: async (nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8794
8825
|
const localVarPath = `/admins/users`;
|
|
8795
8826
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8796
8827
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -8819,12 +8850,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
8819
8850
|
localVarQueryParameter['search'] = search;
|
|
8820
8851
|
}
|
|
8821
8852
|
|
|
8822
|
-
if (
|
|
8823
|
-
localVarQueryParameter['
|
|
8853
|
+
if (clientIDs) {
|
|
8854
|
+
localVarQueryParameter['clientIDs'] = clientIDs;
|
|
8824
8855
|
}
|
|
8825
8856
|
|
|
8826
|
-
if (
|
|
8827
|
-
localVarQueryParameter['
|
|
8857
|
+
if (userIDs) {
|
|
8858
|
+
localVarQueryParameter['userIDs'] = userIDs;
|
|
8828
8859
|
}
|
|
8829
8860
|
|
|
8830
8861
|
if (source !== undefined) {
|
|
@@ -8880,14 +8911,14 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
8880
8911
|
* @param {string} [nextToken] This is the pagination token
|
|
8881
8912
|
* @param {UserRole} [role] role to filter by
|
|
8882
8913
|
* @param {string} [search] search string
|
|
8883
|
-
* @param {string} [
|
|
8884
|
-
* @param {string} [
|
|
8914
|
+
* @param {Array<string>} [clientIDs] client IDs to filter by
|
|
8915
|
+
* @param {Array<string>} [userIDs] user ids to filter by
|
|
8885
8916
|
* @param {UserSource} [source] source to filter by
|
|
8886
8917
|
* @param {*} [options] Override http request option.
|
|
8887
8918
|
* @throws {RequiredError}
|
|
8888
8919
|
*/
|
|
8889
|
-
async listUsers(nextToken?: string, role?: UserRole, search?: string,
|
|
8890
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(nextToken, role, search,
|
|
8920
|
+
async listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserListResponse>> {
|
|
8921
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(nextToken, role, search, clientIDs, userIDs, source, options);
|
|
8891
8922
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
8892
8923
|
},
|
|
8893
8924
|
}
|
|
@@ -8926,14 +8957,14 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
8926
8957
|
* @param {string} [nextToken] This is the pagination token
|
|
8927
8958
|
* @param {UserRole} [role] role to filter by
|
|
8928
8959
|
* @param {string} [search] search string
|
|
8929
|
-
* @param {string} [
|
|
8930
|
-
* @param {string} [
|
|
8960
|
+
* @param {Array<string>} [clientIDs] client IDs to filter by
|
|
8961
|
+
* @param {Array<string>} [userIDs] user ids to filter by
|
|
8931
8962
|
* @param {UserSource} [source] source to filter by
|
|
8932
8963
|
* @param {*} [options] Override http request option.
|
|
8933
8964
|
* @throws {RequiredError}
|
|
8934
8965
|
*/
|
|
8935
|
-
listUsers(nextToken?: string, role?: UserRole, search?: string,
|
|
8936
|
-
return localVarFp.listUsers(nextToken, role, search,
|
|
8966
|
+
listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: any): AxiosPromise<UserListResponse> {
|
|
8967
|
+
return localVarFp.listUsers(nextToken, role, search, clientIDs, userIDs, source, options).then((request) => request(axios, basePath));
|
|
8937
8968
|
},
|
|
8938
8969
|
};
|
|
8939
8970
|
};
|
|
@@ -8975,15 +9006,15 @@ export class UserApi extends BaseAPI {
|
|
|
8975
9006
|
* @param {string} [nextToken] This is the pagination token
|
|
8976
9007
|
* @param {UserRole} [role] role to filter by
|
|
8977
9008
|
* @param {string} [search] search string
|
|
8978
|
-
* @param {string} [
|
|
8979
|
-
* @param {string} [
|
|
9009
|
+
* @param {Array<string>} [clientIDs] client IDs to filter by
|
|
9010
|
+
* @param {Array<string>} [userIDs] user ids to filter by
|
|
8980
9011
|
* @param {UserSource} [source] source to filter by
|
|
8981
9012
|
* @param {*} [options] Override http request option.
|
|
8982
9013
|
* @throws {RequiredError}
|
|
8983
9014
|
* @memberof UserApi
|
|
8984
9015
|
*/
|
|
8985
|
-
public listUsers(nextToken?: string, role?: UserRole, search?: string,
|
|
8986
|
-
return UserApiFp(this.configuration).listUsers(nextToken, role, search,
|
|
9016
|
+
public listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: AxiosRequestConfig) {
|
|
9017
|
+
return UserApiFp(this.configuration).listUsers(nextToken, role, search, clientIDs, userIDs, source, options).then((request) => request(this.axios, this.basePath));
|
|
8987
9018
|
}
|
|
8988
9019
|
}
|
|
8989
9020
|
|