flexinet-api 0.0.2054-prerelease0-dev → 0.0.2056-prerelease0-dev
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 +139 -285
- package/dist/api.d.ts +82 -152
- package/dist/api.js +133 -266
- package/dist/esm/api.d.ts +82 -152
- package/dist/esm/api.js +133 -266
- package/package.json +1 -1
package/api.ts
CHANGED
@@ -264,6 +264,12 @@ export interface BalanceBulkTransferRequest {
|
|
264
264
|
* @memberof BalanceBulkTransferRequest
|
265
265
|
*/
|
266
266
|
'beneficiaryReference': string;
|
267
|
+
/**
|
268
|
+
*
|
269
|
+
* @type {string}
|
270
|
+
* @memberof BalanceBulkTransferRequest
|
271
|
+
*/
|
272
|
+
'description'?: string;
|
267
273
|
}
|
268
274
|
|
269
275
|
|
@@ -4876,11 +4882,10 @@ export const AuditApiAxiosParamCreator = function (configuration?: Configuration
|
|
4876
4882
|
* @summary List audit logs for given object type and ID
|
4877
4883
|
* @param {string} userID id of the user
|
4878
4884
|
* @param {string} [nextToken] This is the pagination token
|
4879
|
-
* @param {string} [prevToken] This is the pagination token
|
4880
4885
|
* @param {*} [options] Override http request option.
|
4881
4886
|
* @throws {RequiredError}
|
4882
4887
|
*/
|
4883
|
-
listUserAuditLogs: async (userID: string, nextToken?: string,
|
4888
|
+
listUserAuditLogs: async (userID: string, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
4884
4889
|
// verify required parameter 'userID' is not null or undefined
|
4885
4890
|
assertParamExists('listUserAuditLogs', 'userID', userID)
|
4886
4891
|
const localVarPath = `/admins/audit/user/{userID}`
|
@@ -4904,10 +4909,6 @@ export const AuditApiAxiosParamCreator = function (configuration?: Configuration
|
|
4904
4909
|
localVarQueryParameter['nextToken'] = nextToken;
|
4905
4910
|
}
|
4906
4911
|
|
4907
|
-
if (prevToken !== undefined) {
|
4908
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
4909
|
-
}
|
4910
|
-
|
4911
4912
|
|
4912
4913
|
|
4913
4914
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -4946,12 +4947,11 @@ export const AuditApiFp = function(configuration?: Configuration) {
|
|
4946
4947
|
* @summary List audit logs for given object type and ID
|
4947
4948
|
* @param {string} userID id of the user
|
4948
4949
|
* @param {string} [nextToken] This is the pagination token
|
4949
|
-
* @param {string} [prevToken] This is the pagination token
|
4950
4950
|
* @param {*} [options] Override http request option.
|
4951
4951
|
* @throws {RequiredError}
|
4952
4952
|
*/
|
4953
|
-
async listUserAuditLogs(userID: string, nextToken?: string,
|
4954
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserAuditLogs(userID, nextToken,
|
4953
|
+
async listUserAuditLogs(userID: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditLogListResponse>> {
|
4954
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserAuditLogs(userID, nextToken, options);
|
4955
4955
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4956
4956
|
},
|
4957
4957
|
}
|
@@ -4980,12 +4980,11 @@ export const AuditApiFactory = function (configuration?: Configuration, basePath
|
|
4980
4980
|
* @summary List audit logs for given object type and ID
|
4981
4981
|
* @param {string} userID id of the user
|
4982
4982
|
* @param {string} [nextToken] This is the pagination token
|
4983
|
-
* @param {string} [prevToken] This is the pagination token
|
4984
4983
|
* @param {*} [options] Override http request option.
|
4985
4984
|
* @throws {RequiredError}
|
4986
4985
|
*/
|
4987
|
-
listUserAuditLogs(userID: string, nextToken?: string,
|
4988
|
-
return localVarFp.listUserAuditLogs(userID, nextToken,
|
4986
|
+
listUserAuditLogs(userID: string, nextToken?: string, options?: any): AxiosPromise<AuditLogListResponse> {
|
4987
|
+
return localVarFp.listUserAuditLogs(userID, nextToken, options).then((request) => request(axios, basePath));
|
4989
4988
|
},
|
4990
4989
|
};
|
4991
4990
|
};
|
@@ -5015,13 +5014,12 @@ export class AuditApi extends BaseAPI {
|
|
5015
5014
|
* @summary List audit logs for given object type and ID
|
5016
5015
|
* @param {string} userID id of the user
|
5017
5016
|
* @param {string} [nextToken] This is the pagination token
|
5018
|
-
* @param {string} [prevToken] This is the pagination token
|
5019
5017
|
* @param {*} [options] Override http request option.
|
5020
5018
|
* @throws {RequiredError}
|
5021
5019
|
* @memberof AuditApi
|
5022
5020
|
*/
|
5023
|
-
public listUserAuditLogs(userID: string, nextToken?: string,
|
5024
|
-
return AuditApiFp(this.configuration).listUserAuditLogs(userID, nextToken,
|
5021
|
+
public listUserAuditLogs(userID: string, nextToken?: string, options?: AxiosRequestConfig) {
|
5022
|
+
return AuditApiFp(this.configuration).listUserAuditLogs(userID, nextToken, options).then((request) => request(this.axios, this.basePath));
|
5025
5023
|
}
|
5026
5024
|
}
|
5027
5025
|
|
@@ -6134,11 +6132,10 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
6134
6132
|
* @param {Array<string>} [clientIDs] client IDs
|
6135
6133
|
* @param {string} [managerID] manager ID for whose clients we want to list
|
6136
6134
|
* @param {boolean} [isExcluded] is client excluded
|
6137
|
-
* @param {string} [prevToken] This is the pagination token
|
6138
6135
|
* @param {*} [options] Override http request option.
|
6139
6136
|
* @throws {RequiredError}
|
6140
6137
|
*/
|
6141
|
-
listClients: async (nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, isExcluded?: boolean,
|
6138
|
+
listClients: async (nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, isExcluded?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6142
6139
|
const localVarPath = `/admins/clients`;
|
6143
6140
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6144
6141
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -6179,10 +6176,6 @@ export const ClientApiAxiosParamCreator = function (configuration?: Configuratio
|
|
6179
6176
|
localVarQueryParameter['isExcluded'] = isExcluded;
|
6180
6177
|
}
|
6181
6178
|
|
6182
|
-
if (prevToken !== undefined) {
|
6183
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
6184
|
-
}
|
6185
|
-
|
6186
6179
|
|
6187
6180
|
|
6188
6181
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -6279,12 +6272,11 @@ export const ClientApiFp = function(configuration?: Configuration) {
|
|
6279
6272
|
* @param {Array<string>} [clientIDs] client IDs
|
6280
6273
|
* @param {string} [managerID] manager ID for whose clients we want to list
|
6281
6274
|
* @param {boolean} [isExcluded] is client excluded
|
6282
|
-
* @param {string} [prevToken] This is the pagination token
|
6283
6275
|
* @param {*} [options] Override http request option.
|
6284
6276
|
* @throws {RequiredError}
|
6285
6277
|
*/
|
6286
|
-
async listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, isExcluded?: boolean,
|
6287
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded,
|
6278
|
+
async listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, isExcluded?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientListResponse>> {
|
6279
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, options);
|
6288
6280
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6289
6281
|
},
|
6290
6282
|
/**
|
@@ -6338,12 +6330,11 @@ export const ClientApiFactory = function (configuration?: Configuration, basePat
|
|
6338
6330
|
* @param {Array<string>} [clientIDs] client IDs
|
6339
6331
|
* @param {string} [managerID] manager ID for whose clients we want to list
|
6340
6332
|
* @param {boolean} [isExcluded] is client excluded
|
6341
|
-
* @param {string} [prevToken] This is the pagination token
|
6342
6333
|
* @param {*} [options] Override http request option.
|
6343
6334
|
* @throws {RequiredError}
|
6344
6335
|
*/
|
6345
|
-
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, isExcluded?: boolean,
|
6346
|
-
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded,
|
6336
|
+
listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, isExcluded?: boolean, options?: any): AxiosPromise<ClientListResponse> {
|
6337
|
+
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, options).then((request) => request(axios, basePath));
|
6347
6338
|
},
|
6348
6339
|
/**
|
6349
6340
|
* Update client
|
@@ -6399,13 +6390,12 @@ export class ClientApi extends BaseAPI {
|
|
6399
6390
|
* @param {Array<string>} [clientIDs] client IDs
|
6400
6391
|
* @param {string} [managerID] manager ID for whose clients we want to list
|
6401
6392
|
* @param {boolean} [isExcluded] is client excluded
|
6402
|
-
* @param {string} [prevToken] This is the pagination token
|
6403
6393
|
* @param {*} [options] Override http request option.
|
6404
6394
|
* @throws {RequiredError}
|
6405
6395
|
* @memberof ClientApi
|
6406
6396
|
*/
|
6407
|
-
public listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, isExcluded?: boolean,
|
6408
|
-
return ClientApiFp(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded,
|
6397
|
+
public listClients(nextToken?: string, search?: string, referenceIDs?: Array<string>, clientIDs?: Array<string>, managerID?: string, isExcluded?: boolean, options?: AxiosRequestConfig) {
|
6398
|
+
return ClientApiFp(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, options).then((request) => request(this.axios, this.basePath));
|
6409
6399
|
}
|
6410
6400
|
|
6411
6401
|
/**
|
@@ -6475,11 +6465,10 @@ export const ConfigurationApiAxiosParamCreator = function (configuration?: Confi
|
|
6475
6465
|
* @summary List configurations
|
6476
6466
|
* @param {string} [nextToken] This is the pagination token
|
6477
6467
|
* @param {string} [search] search string
|
6478
|
-
* @param {string} [prevToken] This is the pagination token
|
6479
6468
|
* @param {*} [options] Override http request option.
|
6480
6469
|
* @throws {RequiredError}
|
6481
6470
|
*/
|
6482
|
-
listConfigurations: async (nextToken?: string, search?: string,
|
6471
|
+
listConfigurations: async (nextToken?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6483
6472
|
const localVarPath = `/admins/configurations`;
|
6484
6473
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6485
6474
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -6504,10 +6493,6 @@ export const ConfigurationApiAxiosParamCreator = function (configuration?: Confi
|
|
6504
6493
|
localVarQueryParameter['search'] = search;
|
6505
6494
|
}
|
6506
6495
|
|
6507
|
-
if (prevToken !== undefined) {
|
6508
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
6509
|
-
}
|
6510
|
-
|
6511
6496
|
|
6512
6497
|
|
6513
6498
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -6613,12 +6598,11 @@ export const ConfigurationApiFp = function(configuration?: Configuration) {
|
|
6613
6598
|
* @summary List configurations
|
6614
6599
|
* @param {string} [nextToken] This is the pagination token
|
6615
6600
|
* @param {string} [search] search string
|
6616
|
-
* @param {string} [prevToken] This is the pagination token
|
6617
6601
|
* @param {*} [options] Override http request option.
|
6618
6602
|
* @throws {RequiredError}
|
6619
6603
|
*/
|
6620
|
-
async listConfigurations(nextToken?: string, search?: string,
|
6621
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listConfigurations(nextToken, search,
|
6604
|
+
async listConfigurations(nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BackofficeConfig>> {
|
6605
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listConfigurations(nextToken, search, options);
|
6622
6606
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6623
6607
|
},
|
6624
6608
|
/**
|
@@ -6666,12 +6650,11 @@ export const ConfigurationApiFactory = function (configuration?: Configuration,
|
|
6666
6650
|
* @summary List configurations
|
6667
6651
|
* @param {string} [nextToken] This is the pagination token
|
6668
6652
|
* @param {string} [search] search string
|
6669
|
-
* @param {string} [prevToken] This is the pagination token
|
6670
6653
|
* @param {*} [options] Override http request option.
|
6671
6654
|
* @throws {RequiredError}
|
6672
6655
|
*/
|
6673
|
-
listConfigurations(nextToken?: string, search?: string,
|
6674
|
-
return localVarFp.listConfigurations(nextToken, search,
|
6656
|
+
listConfigurations(nextToken?: string, search?: string, options?: any): AxiosPromise<BackofficeConfig> {
|
6657
|
+
return localVarFp.listConfigurations(nextToken, search, options).then((request) => request(axios, basePath));
|
6675
6658
|
},
|
6676
6659
|
/**
|
6677
6660
|
* List all features
|
@@ -6718,13 +6701,12 @@ export class ConfigurationApi extends BaseAPI {
|
|
6718
6701
|
* @summary List configurations
|
6719
6702
|
* @param {string} [nextToken] This is the pagination token
|
6720
6703
|
* @param {string} [search] search string
|
6721
|
-
* @param {string} [prevToken] This is the pagination token
|
6722
6704
|
* @param {*} [options] Override http request option.
|
6723
6705
|
* @throws {RequiredError}
|
6724
6706
|
* @memberof ConfigurationApi
|
6725
6707
|
*/
|
6726
|
-
public listConfigurations(nextToken?: string, search?: string,
|
6727
|
-
return ConfigurationApiFp(this.configuration).listConfigurations(nextToken, search,
|
6708
|
+
public listConfigurations(nextToken?: string, search?: string, options?: AxiosRequestConfig) {
|
6709
|
+
return ConfigurationApiFp(this.configuration).listConfigurations(nextToken, search, options).then((request) => request(this.axios, this.basePath));
|
6728
6710
|
}
|
6729
6711
|
|
6730
6712
|
/**
|
@@ -7516,11 +7498,10 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
7516
7498
|
* @summary List notifications
|
7517
7499
|
* @param {string} [nextToken] This is the pagination token
|
7518
7500
|
* @param {NotificationStatus} [status] Notification status
|
7519
|
-
* @param {string} [prevToken] This is the pagination token
|
7520
7501
|
* @param {*} [options] Override http request option.
|
7521
7502
|
* @throws {RequiredError}
|
7522
7503
|
*/
|
7523
|
-
listNotifications: async (nextToken?: string, status?: NotificationStatus,
|
7504
|
+
listNotifications: async (nextToken?: string, status?: NotificationStatus, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
7524
7505
|
const localVarPath = `/users/notifications`;
|
7525
7506
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7526
7507
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -7545,10 +7526,6 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
7545
7526
|
localVarQueryParameter['status'] = status;
|
7546
7527
|
}
|
7547
7528
|
|
7548
|
-
if (prevToken !== undefined) {
|
7549
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
7550
|
-
}
|
7551
|
-
|
7552
7529
|
|
7553
7530
|
|
7554
7531
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -7735,12 +7712,11 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
7735
7712
|
* @summary List notifications
|
7736
7713
|
* @param {string} [nextToken] This is the pagination token
|
7737
7714
|
* @param {NotificationStatus} [status] Notification status
|
7738
|
-
* @param {string} [prevToken] This is the pagination token
|
7739
7715
|
* @param {*} [options] Override http request option.
|
7740
7716
|
* @throws {RequiredError}
|
7741
7717
|
*/
|
7742
|
-
async listNotifications(nextToken?: string, status?: NotificationStatus,
|
7743
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listNotifications(nextToken, status,
|
7718
|
+
async listNotifications(nextToken?: string, status?: NotificationStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationListResponse>> {
|
7719
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNotifications(nextToken, status, options);
|
7744
7720
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7745
7721
|
},
|
7746
7722
|
/**
|
@@ -7829,12 +7805,11 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
7829
7805
|
* @summary List notifications
|
7830
7806
|
* @param {string} [nextToken] This is the pagination token
|
7831
7807
|
* @param {NotificationStatus} [status] Notification status
|
7832
|
-
* @param {string} [prevToken] This is the pagination token
|
7833
7808
|
* @param {*} [options] Override http request option.
|
7834
7809
|
* @throws {RequiredError}
|
7835
7810
|
*/
|
7836
|
-
listNotifications(nextToken?: string, status?: NotificationStatus,
|
7837
|
-
return localVarFp.listNotifications(nextToken, status,
|
7811
|
+
listNotifications(nextToken?: string, status?: NotificationStatus, options?: any): AxiosPromise<NotificationListResponse> {
|
7812
|
+
return localVarFp.listNotifications(nextToken, status, options).then((request) => request(axios, basePath));
|
7838
7813
|
},
|
7839
7814
|
/**
|
7840
7815
|
* Update notification by ID
|
@@ -7927,13 +7902,12 @@ export class NotificationApi extends BaseAPI {
|
|
7927
7902
|
* @summary List notifications
|
7928
7903
|
* @param {string} [nextToken] This is the pagination token
|
7929
7904
|
* @param {NotificationStatus} [status] Notification status
|
7930
|
-
* @param {string} [prevToken] This is the pagination token
|
7931
7905
|
* @param {*} [options] Override http request option.
|
7932
7906
|
* @throws {RequiredError}
|
7933
7907
|
* @memberof NotificationApi
|
7934
7908
|
*/
|
7935
|
-
public listNotifications(nextToken?: string, status?: NotificationStatus,
|
7936
|
-
return NotificationApiFp(this.configuration).listNotifications(nextToken, status,
|
7909
|
+
public listNotifications(nextToken?: string, status?: NotificationStatus, options?: AxiosRequestConfig) {
|
7910
|
+
return NotificationApiFp(this.configuration).listNotifications(nextToken, status, options).then((request) => request(this.axios, this.basePath));
|
7937
7911
|
}
|
7938
7912
|
|
7939
7913
|
/**
|
@@ -8146,11 +8120,10 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
8146
8120
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
8147
8121
|
* @param {OrderKind} [kind] Filter by kind
|
8148
8122
|
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
8149
|
-
* @param {string} [prevToken] This is the pagination token
|
8150
8123
|
* @param {*} [options] Override http request option.
|
8151
8124
|
* @throws {RequiredError}
|
8152
8125
|
*/
|
8153
|
-
listOrders: async (nextToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string,
|
8126
|
+
listOrders: async (nextToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
8154
8127
|
const localVarPath = `/admins/orders`;
|
8155
8128
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
8156
8129
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -8211,10 +8184,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
8211
8184
|
localVarQueryParameter['source'] = source;
|
8212
8185
|
}
|
8213
8186
|
|
8214
|
-
if (prevToken !== undefined) {
|
8215
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
8216
|
-
}
|
8217
|
-
|
8218
8187
|
|
8219
8188
|
|
8220
8189
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -8236,11 +8205,10 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
8236
8205
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
8237
8206
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
8238
8207
|
* @param {Array<string>} [userIDs] Filter by user ids
|
8239
|
-
* @param {string} [prevToken] This is the pagination token
|
8240
8208
|
* @param {*} [options] Override http request option.
|
8241
8209
|
* @throws {RequiredError}
|
8242
8210
|
*/
|
8243
|
-
listOrdersUser: async (nextToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>,
|
8211
|
+
listOrdersUser: async (nextToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
8244
8212
|
const localVarPath = `/users/orders`;
|
8245
8213
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
8246
8214
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -8289,10 +8257,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
8289
8257
|
localVarQueryParameter['userIDs'] = userIDs;
|
8290
8258
|
}
|
8291
8259
|
|
8292
|
-
if (prevToken !== undefined) {
|
8293
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
8294
|
-
}
|
8295
|
-
|
8296
8260
|
|
8297
8261
|
|
8298
8262
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -8371,12 +8335,11 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
8371
8335
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
8372
8336
|
* @param {OrderKind} [kind] Filter by kind
|
8373
8337
|
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
8374
|
-
* @param {string} [prevToken] This is the pagination token
|
8375
8338
|
* @param {*} [options] Override http request option.
|
8376
8339
|
* @throws {RequiredError}
|
8377
8340
|
*/
|
8378
|
-
async listOrders(nextToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string,
|
8379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source,
|
8341
|
+
async listOrders(nextToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>> {
|
8342
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options);
|
8380
8343
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
8381
8344
|
},
|
8382
8345
|
/**
|
@@ -8389,12 +8352,11 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
8389
8352
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
8390
8353
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
8391
8354
|
* @param {Array<string>} [userIDs] Filter by user ids
|
8392
|
-
* @param {string} [prevToken] This is the pagination token
|
8393
8355
|
* @param {*} [options] Override http request option.
|
8394
8356
|
* @throws {RequiredError}
|
8395
8357
|
*/
|
8396
|
-
async listOrdersUser(nextToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>,
|
8397
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrdersUser(nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs,
|
8358
|
+
async listOrdersUser(nextToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrderListResponse>> {
|
8359
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrdersUser(nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, options);
|
8398
8360
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
8399
8361
|
},
|
8400
8362
|
}
|
@@ -8460,12 +8422,11 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
8460
8422
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
8461
8423
|
* @param {OrderKind} [kind] Filter by kind
|
8462
8424
|
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
8463
|
-
* @param {string} [prevToken] This is the pagination token
|
8464
8425
|
* @param {*} [options] Override http request option.
|
8465
8426
|
* @throws {RequiredError}
|
8466
8427
|
*/
|
8467
|
-
listOrders(nextToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string,
|
8468
|
-
return localVarFp.listOrders(nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source,
|
8428
|
+
listOrders(nextToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: any): AxiosPromise<OrderListResponse> {
|
8429
|
+
return localVarFp.listOrders(nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(axios, basePath));
|
8469
8430
|
},
|
8470
8431
|
/**
|
8471
8432
|
* List existing orders
|
@@ -8477,12 +8438,11 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
8477
8438
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
8478
8439
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
8479
8440
|
* @param {Array<string>} [userIDs] Filter by user ids
|
8480
|
-
* @param {string} [prevToken] This is the pagination token
|
8481
8441
|
* @param {*} [options] Override http request option.
|
8482
8442
|
* @throws {RequiredError}
|
8483
8443
|
*/
|
8484
|
-
listOrdersUser(nextToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>,
|
8485
|
-
return localVarFp.listOrdersUser(nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs,
|
8444
|
+
listOrdersUser(nextToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<UserOrderListResponse> {
|
8445
|
+
return localVarFp.listOrdersUser(nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, options).then((request) => request(axios, basePath));
|
8486
8446
|
},
|
8487
8447
|
};
|
8488
8448
|
};
|
@@ -8555,13 +8515,12 @@ export class OrderApi extends BaseAPI {
|
|
8555
8515
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
8556
8516
|
* @param {OrderKind} [kind] Filter by kind
|
8557
8517
|
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
8558
|
-
* @param {string} [prevToken] This is the pagination token
|
8559
8518
|
* @param {*} [options] Override http request option.
|
8560
8519
|
* @throws {RequiredError}
|
8561
8520
|
* @memberof OrderApi
|
8562
8521
|
*/
|
8563
|
-
public listOrders(nextToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string,
|
8564
|
-
return OrderApiFp(this.configuration).listOrders(nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source,
|
8522
|
+
public listOrders(nextToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig) {
|
8523
|
+
return OrderApiFp(this.configuration).listOrders(nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(this.axios, this.basePath));
|
8565
8524
|
}
|
8566
8525
|
|
8567
8526
|
/**
|
@@ -8574,13 +8533,12 @@ export class OrderApi extends BaseAPI {
|
|
8574
8533
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
8575
8534
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
8576
8535
|
* @param {Array<string>} [userIDs] Filter by user ids
|
8577
|
-
* @param {string} [prevToken] This is the pagination token
|
8578
8536
|
* @param {*} [options] Override http request option.
|
8579
8537
|
* @throws {RequiredError}
|
8580
8538
|
* @memberof OrderApi
|
8581
8539
|
*/
|
8582
|
-
public listOrdersUser(nextToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>,
|
8583
|
-
return OrderApiFp(this.configuration).listOrdersUser(nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs,
|
8540
|
+
public listOrdersUser(nextToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig) {
|
8541
|
+
return OrderApiFp(this.configuration).listOrdersUser(nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, options).then((request) => request(this.axios, this.basePath));
|
8584
8542
|
}
|
8585
8543
|
}
|
8586
8544
|
|
@@ -8863,11 +8821,10 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
8863
8821
|
* @summary List existing product requests
|
8864
8822
|
* @param {ProductRequestStatus} [status] The product request status
|
8865
8823
|
* @param {string} [nextToken] This is the pagination token
|
8866
|
-
* @param {string} [prevToken] This is the pagination token
|
8867
8824
|
* @param {*} [options] Override http request option.
|
8868
8825
|
* @throws {RequiredError}
|
8869
8826
|
*/
|
8870
|
-
listProductRequests: async (status?: ProductRequestStatus, nextToken?: string,
|
8827
|
+
listProductRequests: async (status?: ProductRequestStatus, nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
8871
8828
|
const localVarPath = `/admins/products/requests`;
|
8872
8829
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
8873
8830
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -8892,10 +8849,6 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
8892
8849
|
localVarQueryParameter['nextToken'] = nextToken;
|
8893
8850
|
}
|
8894
8851
|
|
8895
|
-
if (prevToken !== undefined) {
|
8896
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
8897
|
-
}
|
8898
|
-
|
8899
8852
|
|
8900
8853
|
|
8901
8854
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -8919,11 +8872,10 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
8919
8872
|
* @param {string} [segmentID] The segment ID
|
8920
8873
|
* @param {string} [nextToken] This is the pagination token
|
8921
8874
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
8922
|
-
* @param {string} [prevToken] This is the pagination token
|
8923
8875
|
* @param {*} [options] Override http request option.
|
8924
8876
|
* @throws {RequiredError}
|
8925
8877
|
*/
|
8926
|
-
listProducts: async (kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>,
|
8878
|
+
listProducts: async (kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
8927
8879
|
const localVarPath = `/admins/products`;
|
8928
8880
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
8929
8881
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -8976,10 +8928,6 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
8976
8928
|
localVarQueryParameter['ids'] = ids;
|
8977
8929
|
}
|
8978
8930
|
|
8979
|
-
if (prevToken !== undefined) {
|
8980
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
8981
|
-
}
|
8982
|
-
|
8983
8931
|
|
8984
8932
|
|
8985
8933
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -8995,11 +8943,10 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
8995
8943
|
* List product requests
|
8996
8944
|
* @summary List product requests
|
8997
8945
|
* @param {string} [nextToken] This is the pagination token
|
8998
|
-
* @param {string} [prevToken] This is the pagination token
|
8999
8946
|
* @param {*} [options] Override http request option.
|
9000
8947
|
* @throws {RequiredError}
|
9001
8948
|
*/
|
9002
|
-
listUserProductRequests: async (nextToken?: string,
|
8949
|
+
listUserProductRequests: async (nextToken?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
9003
8950
|
const localVarPath = `/users/products/requests`;
|
9004
8951
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
9005
8952
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -9020,10 +8967,6 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
9020
8967
|
localVarQueryParameter['nextToken'] = nextToken;
|
9021
8968
|
}
|
9022
8969
|
|
9023
|
-
if (prevToken !== undefined) {
|
9024
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
9025
|
-
}
|
9026
|
-
|
9027
8970
|
|
9028
8971
|
|
9029
8972
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -9044,11 +8987,10 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
9044
8987
|
* @param {string} [search] search string
|
9045
8988
|
* @param {ProductAvailability} [availability] The product availability
|
9046
8989
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
9047
|
-
* @param {string} [prevToken] This is the pagination token
|
9048
8990
|
* @param {*} [options] Override http request option.
|
9049
8991
|
* @throws {RequiredError}
|
9050
8992
|
*/
|
9051
|
-
listUserProducts: async (kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>,
|
8993
|
+
listUserProducts: async (kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
9052
8994
|
const localVarPath = `/users/products`;
|
9053
8995
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
9054
8996
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -9089,10 +9031,6 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
|
|
9089
9031
|
localVarQueryParameter['ids'] = ids;
|
9090
9032
|
}
|
9091
9033
|
|
9092
|
-
if (prevToken !== undefined) {
|
9093
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
9094
|
-
}
|
9095
|
-
|
9096
9034
|
|
9097
9035
|
|
9098
9036
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -9238,12 +9176,11 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
9238
9176
|
* @summary List existing product requests
|
9239
9177
|
* @param {ProductRequestStatus} [status] The product request status
|
9240
9178
|
* @param {string} [nextToken] This is the pagination token
|
9241
|
-
* @param {string} [prevToken] This is the pagination token
|
9242
9179
|
* @param {*} [options] Override http request option.
|
9243
9180
|
* @throws {RequiredError}
|
9244
9181
|
*/
|
9245
|
-
async listProductRequests(status?: ProductRequestStatus, nextToken?: string,
|
9246
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductRequests(status, nextToken,
|
9182
|
+
async listProductRequests(status?: ProductRequestStatus, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestsResponse>> {
|
9183
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductRequests(status, nextToken, options);
|
9247
9184
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
9248
9185
|
},
|
9249
9186
|
/**
|
@@ -9258,24 +9195,22 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
9258
9195
|
* @param {string} [segmentID] The segment ID
|
9259
9196
|
* @param {string} [nextToken] This is the pagination token
|
9260
9197
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
9261
|
-
* @param {string} [prevToken] This is the pagination token
|
9262
9198
|
* @param {*} [options] Override http request option.
|
9263
9199
|
* @throws {RequiredError}
|
9264
9200
|
*/
|
9265
|
-
async listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>,
|
9266
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids,
|
9201
|
+
async listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
|
9202
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options);
|
9267
9203
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
9268
9204
|
},
|
9269
9205
|
/**
|
9270
9206
|
* List product requests
|
9271
9207
|
* @summary List product requests
|
9272
9208
|
* @param {string} [nextToken] This is the pagination token
|
9273
|
-
* @param {string} [prevToken] This is the pagination token
|
9274
9209
|
* @param {*} [options] Override http request option.
|
9275
9210
|
* @throws {RequiredError}
|
9276
9211
|
*/
|
9277
|
-
async listUserProductRequests(nextToken?: string,
|
9278
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProductRequests(nextToken,
|
9212
|
+
async listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRequestsResponse>> {
|
9213
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProductRequests(nextToken, options);
|
9279
9214
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
9280
9215
|
},
|
9281
9216
|
/**
|
@@ -9287,12 +9222,11 @@ export const ProductApiFp = function(configuration?: Configuration) {
|
|
9287
9222
|
* @param {string} [search] search string
|
9288
9223
|
* @param {ProductAvailability} [availability] The product availability
|
9289
9224
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
9290
|
-
* @param {string} [prevToken] This is the pagination token
|
9291
9225
|
* @param {*} [options] Override http request option.
|
9292
9226
|
* @throws {RequiredError}
|
9293
9227
|
*/
|
9294
|
-
async listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>,
|
9295
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, ids,
|
9228
|
+
async listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductsResponse>> {
|
9229
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, ids, options);
|
9296
9230
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
9297
9231
|
},
|
9298
9232
|
/**
|
@@ -9392,12 +9326,11 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
9392
9326
|
* @summary List existing product requests
|
9393
9327
|
* @param {ProductRequestStatus} [status] The product request status
|
9394
9328
|
* @param {string} [nextToken] This is the pagination token
|
9395
|
-
* @param {string} [prevToken] This is the pagination token
|
9396
9329
|
* @param {*} [options] Override http request option.
|
9397
9330
|
* @throws {RequiredError}
|
9398
9331
|
*/
|
9399
|
-
listProductRequests(status?: ProductRequestStatus, nextToken?: string,
|
9400
|
-
return localVarFp.listProductRequests(status, nextToken,
|
9332
|
+
listProductRequests(status?: ProductRequestStatus, nextToken?: string, options?: any): AxiosPromise<ProductRequestsResponse> {
|
9333
|
+
return localVarFp.listProductRequests(status, nextToken, options).then((request) => request(axios, basePath));
|
9401
9334
|
},
|
9402
9335
|
/**
|
9403
9336
|
* List existing products
|
@@ -9411,23 +9344,21 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
9411
9344
|
* @param {string} [segmentID] The segment ID
|
9412
9345
|
* @param {string} [nextToken] This is the pagination token
|
9413
9346
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
9414
|
-
* @param {string} [prevToken] This is the pagination token
|
9415
9347
|
* @param {*} [options] Override http request option.
|
9416
9348
|
* @throws {RequiredError}
|
9417
9349
|
*/
|
9418
|
-
listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>,
|
9419
|
-
return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids,
|
9350
|
+
listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse> {
|
9351
|
+
return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
|
9420
9352
|
},
|
9421
9353
|
/**
|
9422
9354
|
* List product requests
|
9423
9355
|
* @summary List product requests
|
9424
9356
|
* @param {string} [nextToken] This is the pagination token
|
9425
|
-
* @param {string} [prevToken] This is the pagination token
|
9426
9357
|
* @param {*} [options] Override http request option.
|
9427
9358
|
* @throws {RequiredError}
|
9428
9359
|
*/
|
9429
|
-
listUserProductRequests(nextToken?: string,
|
9430
|
-
return localVarFp.listUserProductRequests(nextToken,
|
9360
|
+
listUserProductRequests(nextToken?: string, options?: any): AxiosPromise<ProductRequestsResponse> {
|
9361
|
+
return localVarFp.listUserProductRequests(nextToken, options).then((request) => request(axios, basePath));
|
9431
9362
|
},
|
9432
9363
|
/**
|
9433
9364
|
* List existing products for the user
|
@@ -9438,12 +9369,11 @@ export const ProductApiFactory = function (configuration?: Configuration, basePa
|
|
9438
9369
|
* @param {string} [search] search string
|
9439
9370
|
* @param {ProductAvailability} [availability] The product availability
|
9440
9371
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
9441
|
-
* @param {string} [prevToken] This is the pagination token
|
9442
9372
|
* @param {*} [options] Override http request option.
|
9443
9373
|
* @throws {RequiredError}
|
9444
9374
|
*/
|
9445
|
-
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>,
|
9446
|
-
return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, ids,
|
9375
|
+
listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: any): AxiosPromise<ProductsResponse> {
|
9376
|
+
return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, ids, options).then((request) => request(axios, basePath));
|
9447
9377
|
},
|
9448
9378
|
/**
|
9449
9379
|
* Update a product by id
|
@@ -9555,13 +9485,12 @@ export class ProductApi extends BaseAPI {
|
|
9555
9485
|
* @summary List existing product requests
|
9556
9486
|
* @param {ProductRequestStatus} [status] The product request status
|
9557
9487
|
* @param {string} [nextToken] This is the pagination token
|
9558
|
-
* @param {string} [prevToken] This is the pagination token
|
9559
9488
|
* @param {*} [options] Override http request option.
|
9560
9489
|
* @throws {RequiredError}
|
9561
9490
|
* @memberof ProductApi
|
9562
9491
|
*/
|
9563
|
-
public listProductRequests(status?: ProductRequestStatus, nextToken?: string,
|
9564
|
-
return ProductApiFp(this.configuration).listProductRequests(status, nextToken,
|
9492
|
+
public listProductRequests(status?: ProductRequestStatus, nextToken?: string, options?: AxiosRequestConfig) {
|
9493
|
+
return ProductApiFp(this.configuration).listProductRequests(status, nextToken, options).then((request) => request(this.axios, this.basePath));
|
9565
9494
|
}
|
9566
9495
|
|
9567
9496
|
/**
|
@@ -9576,26 +9505,24 @@ export class ProductApi extends BaseAPI {
|
|
9576
9505
|
* @param {string} [segmentID] The segment ID
|
9577
9506
|
* @param {string} [nextToken] This is the pagination token
|
9578
9507
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
9579
|
-
* @param {string} [prevToken] This is the pagination token
|
9580
9508
|
* @param {*} [options] Override http request option.
|
9581
9509
|
* @throws {RequiredError}
|
9582
9510
|
* @memberof ProductApi
|
9583
9511
|
*/
|
9584
|
-
public listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>,
|
9585
|
-
return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids,
|
9512
|
+
public listProducts(kind?: ProductKind, categoryID?: string, search?: string, usage?: ProductUsage, status?: ProductStatus, availability?: ProductAvailability, segmentID?: string, nextToken?: string, ids?: Array<string>, options?: AxiosRequestConfig) {
|
9513
|
+
return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
|
9586
9514
|
}
|
9587
9515
|
|
9588
9516
|
/**
|
9589
9517
|
* List product requests
|
9590
9518
|
* @summary List product requests
|
9591
9519
|
* @param {string} [nextToken] This is the pagination token
|
9592
|
-
* @param {string} [prevToken] This is the pagination token
|
9593
9520
|
* @param {*} [options] Override http request option.
|
9594
9521
|
* @throws {RequiredError}
|
9595
9522
|
* @memberof ProductApi
|
9596
9523
|
*/
|
9597
|
-
public listUserProductRequests(nextToken?: string,
|
9598
|
-
return ProductApiFp(this.configuration).listUserProductRequests(nextToken,
|
9524
|
+
public listUserProductRequests(nextToken?: string, options?: AxiosRequestConfig) {
|
9525
|
+
return ProductApiFp(this.configuration).listUserProductRequests(nextToken, options).then((request) => request(this.axios, this.basePath));
|
9599
9526
|
}
|
9600
9527
|
|
9601
9528
|
/**
|
@@ -9607,13 +9534,12 @@ export class ProductApi extends BaseAPI {
|
|
9607
9534
|
* @param {string} [search] search string
|
9608
9535
|
* @param {ProductAvailability} [availability] The product availability
|
9609
9536
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
9610
|
-
* @param {string} [prevToken] This is the pagination token
|
9611
9537
|
* @param {*} [options] Override http request option.
|
9612
9538
|
* @throws {RequiredError}
|
9613
9539
|
* @memberof ProductApi
|
9614
9540
|
*/
|
9615
|
-
public listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>,
|
9616
|
-
return ProductApiFp(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, ids,
|
9541
|
+
public listUserProducts(kind?: ProductKind, nextToken?: string, categoryID?: string, search?: string, availability?: ProductAvailability, ids?: Array<string>, options?: AxiosRequestConfig) {
|
9542
|
+
return ProductApiFp(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, ids, options).then((request) => request(this.axios, this.basePath));
|
9617
9543
|
}
|
9618
9544
|
|
9619
9545
|
/**
|
@@ -9648,11 +9574,10 @@ export const ProgressApiAxiosParamCreator = function (configuration?: Configurat
|
|
9648
9574
|
* @param {ProgressInterval} [interval] Interval
|
9649
9575
|
* @param {string} [nextToken] This is the pagination token
|
9650
9576
|
* @param {ProgressStateAggregation} [state] Progress state
|
9651
|
-
* @param {string} [prevToken] This is the pagination token
|
9652
9577
|
* @param {*} [options] Override http request option.
|
9653
9578
|
* @throws {RequiredError}
|
9654
9579
|
*/
|
9655
|
-
listProgress: async (promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ProgressInterval, nextToken?: string, state?: ProgressStateAggregation,
|
9580
|
+
listProgress: async (promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ProgressInterval, nextToken?: string, state?: ProgressStateAggregation, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
9656
9581
|
// verify required parameter 'promotionIDs' is not null or undefined
|
9657
9582
|
assertParamExists('listProgress', 'promotionIDs', promotionIDs)
|
9658
9583
|
const localVarPath = `/admins/progress`;
|
@@ -9699,10 +9624,6 @@ export const ProgressApiAxiosParamCreator = function (configuration?: Configurat
|
|
9699
9624
|
localVarQueryParameter['state'] = state;
|
9700
9625
|
}
|
9701
9626
|
|
9702
|
-
if (prevToken !== undefined) {
|
9703
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
9704
|
-
}
|
9705
|
-
|
9706
9627
|
|
9707
9628
|
|
9708
9629
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -9721,11 +9642,10 @@ export const ProgressApiAxiosParamCreator = function (configuration?: Configurat
|
|
9721
9642
|
* @param {number} [periodID] Period ID
|
9722
9643
|
* @param {string} [nextToken] This is the pagination token
|
9723
9644
|
* @param {ProgressStateAggregation} [state] Progress state
|
9724
|
-
* @param {string} [prevToken] This is the pagination token
|
9725
9645
|
* @param {*} [options] Override http request option.
|
9726
9646
|
* @throws {RequiredError}
|
9727
9647
|
*/
|
9728
|
-
listUserProgress: async (promotionIDs: Array<string>, periodID?: number, nextToken?: string, state?: ProgressStateAggregation,
|
9648
|
+
listUserProgress: async (promotionIDs: Array<string>, periodID?: number, nextToken?: string, state?: ProgressStateAggregation, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
9729
9649
|
// verify required parameter 'promotionIDs' is not null or undefined
|
9730
9650
|
assertParamExists('listUserProgress', 'promotionIDs', promotionIDs)
|
9731
9651
|
const localVarPath = `/users/progress`;
|
@@ -9760,10 +9680,6 @@ export const ProgressApiAxiosParamCreator = function (configuration?: Configurat
|
|
9760
9680
|
localVarQueryParameter['state'] = state;
|
9761
9681
|
}
|
9762
9682
|
|
9763
|
-
if (prevToken !== undefined) {
|
9764
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
9765
|
-
}
|
9766
|
-
|
9767
9683
|
|
9768
9684
|
|
9769
9685
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -9795,12 +9711,11 @@ export const ProgressApiFp = function(configuration?: Configuration) {
|
|
9795
9711
|
* @param {ProgressInterval} [interval] Interval
|
9796
9712
|
* @param {string} [nextToken] This is the pagination token
|
9797
9713
|
* @param {ProgressStateAggregation} [state] Progress state
|
9798
|
-
* @param {string} [prevToken] This is the pagination token
|
9799
9714
|
* @param {*} [options] Override http request option.
|
9800
9715
|
* @throws {RequiredError}
|
9801
9716
|
*/
|
9802
|
-
async listProgress(promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ProgressInterval, nextToken?: string, state?: ProgressStateAggregation,
|
9803
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state,
|
9717
|
+
async listProgress(promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ProgressInterval, nextToken?: string, state?: ProgressStateAggregation, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProgressResponse>> {
|
9718
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, options);
|
9804
9719
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
9805
9720
|
},
|
9806
9721
|
/**
|
@@ -9810,12 +9725,11 @@ export const ProgressApiFp = function(configuration?: Configuration) {
|
|
9810
9725
|
* @param {number} [periodID] Period ID
|
9811
9726
|
* @param {string} [nextToken] This is the pagination token
|
9812
9727
|
* @param {ProgressStateAggregation} [state] Progress state
|
9813
|
-
* @param {string} [prevToken] This is the pagination token
|
9814
9728
|
* @param {*} [options] Override http request option.
|
9815
9729
|
* @throws {RequiredError}
|
9816
9730
|
*/
|
9817
|
-
async listUserProgress(promotionIDs: Array<string>, periodID?: number, nextToken?: string, state?: ProgressStateAggregation,
|
9818
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProgress(promotionIDs, periodID, nextToken, state,
|
9731
|
+
async listUserProgress(promotionIDs: Array<string>, periodID?: number, nextToken?: string, state?: ProgressStateAggregation, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProgressResponse>> {
|
9732
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserProgress(promotionIDs, periodID, nextToken, state, options);
|
9819
9733
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
9820
9734
|
},
|
9821
9735
|
}
|
@@ -9838,12 +9752,11 @@ export const ProgressApiFactory = function (configuration?: Configuration, baseP
|
|
9838
9752
|
* @param {ProgressInterval} [interval] Interval
|
9839
9753
|
* @param {string} [nextToken] This is the pagination token
|
9840
9754
|
* @param {ProgressStateAggregation} [state] Progress state
|
9841
|
-
* @param {string} [prevToken] This is the pagination token
|
9842
9755
|
* @param {*} [options] Override http request option.
|
9843
9756
|
* @throws {RequiredError}
|
9844
9757
|
*/
|
9845
|
-
listProgress(promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ProgressInterval, nextToken?: string, state?: ProgressStateAggregation,
|
9846
|
-
return localVarFp.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state,
|
9758
|
+
listProgress(promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ProgressInterval, nextToken?: string, state?: ProgressStateAggregation, options?: any): AxiosPromise<ProgressResponse> {
|
9759
|
+
return localVarFp.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, options).then((request) => request(axios, basePath));
|
9847
9760
|
},
|
9848
9761
|
/**
|
9849
9762
|
* List users progress
|
@@ -9852,12 +9765,11 @@ export const ProgressApiFactory = function (configuration?: Configuration, baseP
|
|
9852
9765
|
* @param {number} [periodID] Period ID
|
9853
9766
|
* @param {string} [nextToken] This is the pagination token
|
9854
9767
|
* @param {ProgressStateAggregation} [state] Progress state
|
9855
|
-
* @param {string} [prevToken] This is the pagination token
|
9856
9768
|
* @param {*} [options] Override http request option.
|
9857
9769
|
* @throws {RequiredError}
|
9858
9770
|
*/
|
9859
|
-
listUserProgress(promotionIDs: Array<string>, periodID?: number, nextToken?: string, state?: ProgressStateAggregation,
|
9860
|
-
return localVarFp.listUserProgress(promotionIDs, periodID, nextToken, state,
|
9771
|
+
listUserProgress(promotionIDs: Array<string>, periodID?: number, nextToken?: string, state?: ProgressStateAggregation, options?: any): AxiosPromise<ProgressResponse> {
|
9772
|
+
return localVarFp.listUserProgress(promotionIDs, periodID, nextToken, state, options).then((request) => request(axios, basePath));
|
9861
9773
|
},
|
9862
9774
|
};
|
9863
9775
|
};
|
@@ -9879,13 +9791,12 @@ export class ProgressApi extends BaseAPI {
|
|
9879
9791
|
* @param {ProgressInterval} [interval] Interval
|
9880
9792
|
* @param {string} [nextToken] This is the pagination token
|
9881
9793
|
* @param {ProgressStateAggregation} [state] Progress state
|
9882
|
-
* @param {string} [prevToken] This is the pagination token
|
9883
9794
|
* @param {*} [options] Override http request option.
|
9884
9795
|
* @throws {RequiredError}
|
9885
9796
|
* @memberof ProgressApi
|
9886
9797
|
*/
|
9887
|
-
public listProgress(promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ProgressInterval, nextToken?: string, state?: ProgressStateAggregation,
|
9888
|
-
return ProgressApiFp(this.configuration).listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state,
|
9798
|
+
public listProgress(promotionIDs: Array<string>, periodID?: number, userIDs?: Array<string>, clientIDs?: Array<string>, interval?: ProgressInterval, nextToken?: string, state?: ProgressStateAggregation, options?: AxiosRequestConfig) {
|
9799
|
+
return ProgressApiFp(this.configuration).listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, options).then((request) => request(this.axios, this.basePath));
|
9889
9800
|
}
|
9890
9801
|
|
9891
9802
|
/**
|
@@ -9895,13 +9806,12 @@ export class ProgressApi extends BaseAPI {
|
|
9895
9806
|
* @param {number} [periodID] Period ID
|
9896
9807
|
* @param {string} [nextToken] This is the pagination token
|
9897
9808
|
* @param {ProgressStateAggregation} [state] Progress state
|
9898
|
-
* @param {string} [prevToken] This is the pagination token
|
9899
9809
|
* @param {*} [options] Override http request option.
|
9900
9810
|
* @throws {RequiredError}
|
9901
9811
|
* @memberof ProgressApi
|
9902
9812
|
*/
|
9903
|
-
public listUserProgress(promotionIDs: Array<string>, periodID?: number, nextToken?: string, state?: ProgressStateAggregation,
|
9904
|
-
return ProgressApiFp(this.configuration).listUserProgress(promotionIDs, periodID, nextToken, state,
|
9813
|
+
public listUserProgress(promotionIDs: Array<string>, periodID?: number, nextToken?: string, state?: ProgressStateAggregation, options?: AxiosRequestConfig) {
|
9814
|
+
return ProgressApiFp(this.configuration).listUserProgress(promotionIDs, periodID, nextToken, state, options).then((request) => request(this.axios, this.basePath));
|
9905
9815
|
}
|
9906
9816
|
}
|
9907
9817
|
|
@@ -10275,11 +10185,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
10275
10185
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
10276
10186
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
10277
10187
|
* @param {ProgressStateAggregation} [state] Progress state
|
10278
|
-
* @param {string} [prevToken] This is the pagination token
|
10279
10188
|
* @param {*} [options] Override http request option.
|
10280
10189
|
* @throws {RequiredError}
|
10281
10190
|
*/
|
10282
|
-
listPromotionBeneficiaries: async (id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation,
|
10191
|
+
listPromotionBeneficiaries: async (id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
10283
10192
|
// verify required parameter 'id' is not null or undefined
|
10284
10193
|
assertParamExists('listPromotionBeneficiaries', 'id', id)
|
10285
10194
|
const localVarPath = `/admins/promotions/{id}/beneficiaries`
|
@@ -10323,10 +10232,6 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
10323
10232
|
localVarQueryParameter['state'] = state;
|
10324
10233
|
}
|
10325
10234
|
|
10326
|
-
if (prevToken !== undefined) {
|
10327
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
10328
|
-
}
|
10329
|
-
|
10330
10235
|
|
10331
10236
|
|
10332
10237
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -10475,11 +10380,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
10475
10380
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
10476
10381
|
* @param {PromotionType} [type] promotion type
|
10477
10382
|
* @param {Array<string>} [iDs] IDs to filter by
|
10478
|
-
* @param {string} [prevToken] This is the pagination token
|
10479
10383
|
* @param {*} [options] Override http request option.
|
10480
10384
|
* @throws {RequiredError}
|
10481
10385
|
*/
|
10482
|
-
listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>,
|
10386
|
+
listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
10483
10387
|
const localVarPath = `/users/promotions`;
|
10484
10388
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
10485
10389
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -10552,10 +10456,6 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
|
|
10552
10456
|
localVarQueryParameter['IDs'] = iDs;
|
10553
10457
|
}
|
10554
10458
|
|
10555
|
-
if (prevToken !== undefined) {
|
10556
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
10557
|
-
}
|
10558
|
-
|
10559
10459
|
|
10560
10460
|
|
10561
10461
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -10732,12 +10632,11 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
10732
10632
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
10733
10633
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
10734
10634
|
* @param {ProgressStateAggregation} [state] Progress state
|
10735
|
-
* @param {string} [prevToken] This is the pagination token
|
10736
10635
|
* @param {*} [options] Override http request option.
|
10737
10636
|
* @throws {RequiredError}
|
10738
10637
|
*/
|
10739
|
-
async listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation,
|
10740
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state,
|
10638
|
+
async listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionBeneficiariesResponse>> {
|
10639
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options);
|
10741
10640
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
10742
10641
|
},
|
10743
10642
|
/**
|
@@ -10781,12 +10680,11 @@ export const PromotionApiFp = function(configuration?: Configuration) {
|
|
10781
10680
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
10782
10681
|
* @param {PromotionType} [type] promotion type
|
10783
10682
|
* @param {Array<string>} [iDs] IDs to filter by
|
10784
|
-
* @param {string} [prevToken] This is the pagination token
|
10785
10683
|
* @param {*} [options] Override http request option.
|
10786
10684
|
* @throws {RequiredError}
|
10787
10685
|
*/
|
10788
|
-
async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>,
|
10789
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs,
|
10686
|
+
async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotionsResponse>> {
|
10687
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options);
|
10790
10688
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
10791
10689
|
},
|
10792
10690
|
/**
|
@@ -10913,12 +10811,11 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
10913
10811
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
10914
10812
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
10915
10813
|
* @param {ProgressStateAggregation} [state] Progress state
|
10916
|
-
* @param {string} [prevToken] This is the pagination token
|
10917
10814
|
* @param {*} [options] Override http request option.
|
10918
10815
|
* @throws {RequiredError}
|
10919
10816
|
*/
|
10920
|
-
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation,
|
10921
|
-
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state,
|
10817
|
+
listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: any): AxiosPromise<PromotionBeneficiariesResponse> {
|
10818
|
+
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options).then((request) => request(axios, basePath));
|
10922
10819
|
},
|
10923
10820
|
/**
|
10924
10821
|
* List all promotions
|
@@ -10960,12 +10857,11 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
|
|
10960
10857
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
10961
10858
|
* @param {PromotionType} [type] promotion type
|
10962
10859
|
* @param {Array<string>} [iDs] IDs to filter by
|
10963
|
-
* @param {string} [prevToken] This is the pagination token
|
10964
10860
|
* @param {*} [options] Override http request option.
|
10965
10861
|
* @throws {RequiredError}
|
10966
10862
|
*/
|
10967
|
-
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>,
|
10968
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs,
|
10863
|
+
listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>, options?: any): AxiosPromise<UserPromotionsResponse> {
|
10864
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options).then((request) => request(axios, basePath));
|
10969
10865
|
},
|
10970
10866
|
/**
|
10971
10867
|
* Update promotion by id
|
@@ -11108,13 +11004,12 @@ export class PromotionApi extends BaseAPI {
|
|
11108
11004
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
11109
11005
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
11110
11006
|
* @param {ProgressStateAggregation} [state] Progress state
|
11111
|
-
* @param {string} [prevToken] This is the pagination token
|
11112
11007
|
* @param {*} [options] Override http request option.
|
11113
11008
|
* @throws {RequiredError}
|
11114
11009
|
* @memberof PromotionApi
|
11115
11010
|
*/
|
11116
|
-
public listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation,
|
11117
|
-
return PromotionApiFp(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state,
|
11011
|
+
public listPromotionBeneficiaries(id: string, periodID?: number, hasProgress?: boolean, nextToken?: string, search?: string, interval?: ProgressInterval, state?: ProgressStateAggregation, options?: AxiosRequestConfig) {
|
11012
|
+
return PromotionApiFp(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options).then((request) => request(this.axios, this.basePath));
|
11118
11013
|
}
|
11119
11014
|
|
11120
11015
|
/**
|
@@ -11159,13 +11054,12 @@ export class PromotionApi extends BaseAPI {
|
|
11159
11054
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
11160
11055
|
* @param {PromotionType} [type] promotion type
|
11161
11056
|
* @param {Array<string>} [iDs] IDs to filter by
|
11162
|
-
* @param {string} [prevToken] This is the pagination token
|
11163
11057
|
* @param {*} [options] Override http request option.
|
11164
11058
|
* @throws {RequiredError}
|
11165
11059
|
* @memberof PromotionApi
|
11166
11060
|
*/
|
11167
|
-
public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>,
|
11168
|
-
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs,
|
11061
|
+
public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>, options?: AxiosRequestConfig) {
|
11062
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options).then((request) => request(this.axios, this.basePath));
|
11169
11063
|
}
|
11170
11064
|
|
11171
11065
|
/**
|
@@ -11526,11 +11420,10 @@ export const SegmentApiAxiosParamCreator = function (configuration?: Configurati
|
|
11526
11420
|
* @summary Method returns segments list.
|
11527
11421
|
* @param {string} [nextToken]
|
11528
11422
|
* @param {string} [search] search string
|
11529
|
-
* @param {string} [prevToken]
|
11530
11423
|
* @param {*} [options] Override http request option.
|
11531
11424
|
* @throws {RequiredError}
|
11532
11425
|
*/
|
11533
|
-
listSegments: async (nextToken?: string, search?: string,
|
11426
|
+
listSegments: async (nextToken?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
11534
11427
|
const localVarPath = `/admins/segments`;
|
11535
11428
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
11536
11429
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -11555,10 +11448,6 @@ export const SegmentApiAxiosParamCreator = function (configuration?: Configurati
|
|
11555
11448
|
localVarQueryParameter['search'] = search;
|
11556
11449
|
}
|
11557
11450
|
|
11558
|
-
if (prevToken !== undefined) {
|
11559
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
11560
|
-
}
|
11561
|
-
|
11562
11451
|
|
11563
11452
|
|
11564
11453
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -11607,12 +11496,11 @@ export const SegmentApiFp = function(configuration?: Configuration) {
|
|
11607
11496
|
* @summary Method returns segments list.
|
11608
11497
|
* @param {string} [nextToken]
|
11609
11498
|
* @param {string} [search] search string
|
11610
|
-
* @param {string} [prevToken]
|
11611
11499
|
* @param {*} [options] Override http request option.
|
11612
11500
|
* @throws {RequiredError}
|
11613
11501
|
*/
|
11614
|
-
async listSegments(nextToken?: string, search?: string,
|
11615
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSegments(nextToken, search,
|
11502
|
+
async listSegments(nextToken?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SegmentListResponse>> {
|
11503
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSegments(nextToken, search, options);
|
11616
11504
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
11617
11505
|
},
|
11618
11506
|
}
|
@@ -11650,12 +11538,11 @@ export const SegmentApiFactory = function (configuration?: Configuration, basePa
|
|
11650
11538
|
* @summary Method returns segments list.
|
11651
11539
|
* @param {string} [nextToken]
|
11652
11540
|
* @param {string} [search] search string
|
11653
|
-
* @param {string} [prevToken]
|
11654
11541
|
* @param {*} [options] Override http request option.
|
11655
11542
|
* @throws {RequiredError}
|
11656
11543
|
*/
|
11657
|
-
listSegments(nextToken?: string, search?: string,
|
11658
|
-
return localVarFp.listSegments(nextToken, search,
|
11544
|
+
listSegments(nextToken?: string, search?: string, options?: any): AxiosPromise<SegmentListResponse> {
|
11545
|
+
return localVarFp.listSegments(nextToken, search, options).then((request) => request(axios, basePath));
|
11659
11546
|
},
|
11660
11547
|
};
|
11661
11548
|
};
|
@@ -11696,13 +11583,12 @@ export class SegmentApi extends BaseAPI {
|
|
11696
11583
|
* @summary Method returns segments list.
|
11697
11584
|
* @param {string} [nextToken]
|
11698
11585
|
* @param {string} [search] search string
|
11699
|
-
* @param {string} [prevToken]
|
11700
11586
|
* @param {*} [options] Override http request option.
|
11701
11587
|
* @throws {RequiredError}
|
11702
11588
|
* @memberof SegmentApi
|
11703
11589
|
*/
|
11704
|
-
public listSegments(nextToken?: string, search?: string,
|
11705
|
-
return SegmentApiFp(this.configuration).listSegments(nextToken, search,
|
11590
|
+
public listSegments(nextToken?: string, search?: string, options?: AxiosRequestConfig) {
|
11591
|
+
return SegmentApiFp(this.configuration).listSegments(nextToken, search, options).then((request) => request(this.axios, this.basePath));
|
11706
11592
|
}
|
11707
11593
|
}
|
11708
11594
|
|
@@ -12245,11 +12131,10 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu
|
|
12245
12131
|
* @param {string} [nextToken] This is the pagination token
|
12246
12132
|
* @param {Array<string>} [clientIDs] This is the client IDs to filter by
|
12247
12133
|
* @param {Array<string>} [userIDs] This is the user ID
|
12248
|
-
* @param {string} [prevToken] This is the pagination token
|
12249
12134
|
* @param {*} [options] Override http request option.
|
12250
12135
|
* @throws {RequiredError}
|
12251
12136
|
*/
|
12252
|
-
listTransactions: async (nextToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>,
|
12137
|
+
listTransactions: async (nextToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
12253
12138
|
const localVarPath = `/admins/transactions`;
|
12254
12139
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
12255
12140
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -12278,10 +12163,6 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu
|
|
12278
12163
|
localVarQueryParameter['userIDs'] = userIDs;
|
12279
12164
|
}
|
12280
12165
|
|
12281
|
-
if (prevToken !== undefined) {
|
12282
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
12283
|
-
}
|
12284
|
-
|
12285
12166
|
|
12286
12167
|
|
12287
12168
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -12298,11 +12179,10 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu
|
|
12298
12179
|
* @summary List existing transactions for users
|
12299
12180
|
* @param {string} [nextToken] This is the pagination token
|
12300
12181
|
* @param {Array<string>} [userIDs] This is the user ID
|
12301
|
-
* @param {string} [prevToken] This is the pagination token
|
12302
12182
|
* @param {*} [options] Override http request option.
|
12303
12183
|
* @throws {RequiredError}
|
12304
12184
|
*/
|
12305
|
-
listUserTransactions: async (nextToken?: string, userIDs?: Array<string>,
|
12185
|
+
listUserTransactions: async (nextToken?: string, userIDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
12306
12186
|
const localVarPath = `/users/transactions`;
|
12307
12187
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
12308
12188
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -12327,10 +12207,6 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu
|
|
12327
12207
|
localVarQueryParameter['userIDs'] = userIDs;
|
12328
12208
|
}
|
12329
12209
|
|
12330
|
-
if (prevToken !== undefined) {
|
12331
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
12332
|
-
}
|
12333
|
-
|
12334
12210
|
|
12335
12211
|
|
12336
12212
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -12358,12 +12234,11 @@ export const TransactionApiFp = function(configuration?: Configuration) {
|
|
12358
12234
|
* @param {string} [nextToken] This is the pagination token
|
12359
12235
|
* @param {Array<string>} [clientIDs] This is the client IDs to filter by
|
12360
12236
|
* @param {Array<string>} [userIDs] This is the user ID
|
12361
|
-
* @param {string} [prevToken] This is the pagination token
|
12362
12237
|
* @param {*} [options] Override http request option.
|
12363
12238
|
* @throws {RequiredError}
|
12364
12239
|
*/
|
12365
|
-
async listTransactions(nextToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>,
|
12366
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(nextToken, clientIDs, userIDs,
|
12240
|
+
async listTransactions(nextToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>> {
|
12241
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(nextToken, clientIDs, userIDs, options);
|
12367
12242
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
12368
12243
|
},
|
12369
12244
|
/**
|
@@ -12371,12 +12246,11 @@ export const TransactionApiFp = function(configuration?: Configuration) {
|
|
12371
12246
|
* @summary List existing transactions for users
|
12372
12247
|
* @param {string} [nextToken] This is the pagination token
|
12373
12248
|
* @param {Array<string>} [userIDs] This is the user ID
|
12374
|
-
* @param {string} [prevToken] This is the pagination token
|
12375
12249
|
* @param {*} [options] Override http request option.
|
12376
12250
|
* @throws {RequiredError}
|
12377
12251
|
*/
|
12378
|
-
async listUserTransactions(nextToken?: string, userIDs?: Array<string>,
|
12379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserTransactions(nextToken, userIDs,
|
12252
|
+
async listUserTransactions(nextToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponse>> {
|
12253
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserTransactions(nextToken, userIDs, options);
|
12380
12254
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
12381
12255
|
},
|
12382
12256
|
}
|
@@ -12395,24 +12269,22 @@ export const TransactionApiFactory = function (configuration?: Configuration, ba
|
|
12395
12269
|
* @param {string} [nextToken] This is the pagination token
|
12396
12270
|
* @param {Array<string>} [clientIDs] This is the client IDs to filter by
|
12397
12271
|
* @param {Array<string>} [userIDs] This is the user ID
|
12398
|
-
* @param {string} [prevToken] This is the pagination token
|
12399
12272
|
* @param {*} [options] Override http request option.
|
12400
12273
|
* @throws {RequiredError}
|
12401
12274
|
*/
|
12402
|
-
listTransactions(nextToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>,
|
12403
|
-
return localVarFp.listTransactions(nextToken, clientIDs, userIDs,
|
12275
|
+
listTransactions(nextToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: any): AxiosPromise<TransactionsResponse> {
|
12276
|
+
return localVarFp.listTransactions(nextToken, clientIDs, userIDs, options).then((request) => request(axios, basePath));
|
12404
12277
|
},
|
12405
12278
|
/**
|
12406
12279
|
* List existing transactions
|
12407
12280
|
* @summary List existing transactions for users
|
12408
12281
|
* @param {string} [nextToken] This is the pagination token
|
12409
12282
|
* @param {Array<string>} [userIDs] This is the user ID
|
12410
|
-
* @param {string} [prevToken] This is the pagination token
|
12411
12283
|
* @param {*} [options] Override http request option.
|
12412
12284
|
* @throws {RequiredError}
|
12413
12285
|
*/
|
12414
|
-
listUserTransactions(nextToken?: string, userIDs?: Array<string>,
|
12415
|
-
return localVarFp.listUserTransactions(nextToken, userIDs,
|
12286
|
+
listUserTransactions(nextToken?: string, userIDs?: Array<string>, options?: any): AxiosPromise<TransactionsResponse> {
|
12287
|
+
return localVarFp.listUserTransactions(nextToken, userIDs, options).then((request) => request(axios, basePath));
|
12416
12288
|
},
|
12417
12289
|
};
|
12418
12290
|
};
|
@@ -12430,13 +12302,12 @@ export class TransactionApi extends BaseAPI {
|
|
12430
12302
|
* @param {string} [nextToken] This is the pagination token
|
12431
12303
|
* @param {Array<string>} [clientIDs] This is the client IDs to filter by
|
12432
12304
|
* @param {Array<string>} [userIDs] This is the user ID
|
12433
|
-
* @param {string} [prevToken] This is the pagination token
|
12434
12305
|
* @param {*} [options] Override http request option.
|
12435
12306
|
* @throws {RequiredError}
|
12436
12307
|
* @memberof TransactionApi
|
12437
12308
|
*/
|
12438
|
-
public listTransactions(nextToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>,
|
12439
|
-
return TransactionApiFp(this.configuration).listTransactions(nextToken, clientIDs, userIDs,
|
12309
|
+
public listTransactions(nextToken?: string, clientIDs?: Array<string>, userIDs?: Array<string>, options?: AxiosRequestConfig) {
|
12310
|
+
return TransactionApiFp(this.configuration).listTransactions(nextToken, clientIDs, userIDs, options).then((request) => request(this.axios, this.basePath));
|
12440
12311
|
}
|
12441
12312
|
|
12442
12313
|
/**
|
@@ -12444,13 +12315,12 @@ export class TransactionApi extends BaseAPI {
|
|
12444
12315
|
* @summary List existing transactions for users
|
12445
12316
|
* @param {string} [nextToken] This is the pagination token
|
12446
12317
|
* @param {Array<string>} [userIDs] This is the user ID
|
12447
|
-
* @param {string} [prevToken] This is the pagination token
|
12448
12318
|
* @param {*} [options] Override http request option.
|
12449
12319
|
* @throws {RequiredError}
|
12450
12320
|
* @memberof TransactionApi
|
12451
12321
|
*/
|
12452
|
-
public listUserTransactions(nextToken?: string, userIDs?: Array<string>,
|
12453
|
-
return TransactionApiFp(this.configuration).listUserTransactions(nextToken, userIDs,
|
12322
|
+
public listUserTransactions(nextToken?: string, userIDs?: Array<string>, options?: AxiosRequestConfig) {
|
12323
|
+
return TransactionApiFp(this.configuration).listUserTransactions(nextToken, userIDs, options).then((request) => request(this.axios, this.basePath));
|
12454
12324
|
}
|
12455
12325
|
}
|
12456
12326
|
|
@@ -12582,11 +12452,10 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
12582
12452
|
* @param {string} [nextToken] This is the pagination token
|
12583
12453
|
* @param {string} [search] search string
|
12584
12454
|
* @param {Array<string>} [userIDs] user ids to filter by
|
12585
|
-
* @param {string} [prevToken] This is the pagination token
|
12586
12455
|
* @param {*} [options] Override http request option.
|
12587
12456
|
* @throws {RequiredError}
|
12588
12457
|
*/
|
12589
|
-
listCustomerUsers: async (nextToken?: string, search?: string, userIDs?: Array<string>,
|
12458
|
+
listCustomerUsers: async (nextToken?: string, search?: string, userIDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
12590
12459
|
const localVarPath = `/users`;
|
12591
12460
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
12592
12461
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -12615,10 +12484,6 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
12615
12484
|
localVarQueryParameter['userIDs'] = userIDs;
|
12616
12485
|
}
|
12617
12486
|
|
12618
|
-
if (prevToken !== undefined) {
|
12619
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
12620
|
-
}
|
12621
|
-
|
12622
12487
|
|
12623
12488
|
|
12624
12489
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -12639,11 +12504,10 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
12639
12504
|
* @param {Array<string>} [clientIDs] client IDs to filter by
|
12640
12505
|
* @param {Array<string>} [userIDs] user ids to filter by
|
12641
12506
|
* @param {UserSource} [source] source to filter by
|
12642
|
-
* @param {string} [prevToken] This is the pagination token
|
12643
12507
|
* @param {*} [options] Override http request option.
|
12644
12508
|
* @throws {RequiredError}
|
12645
12509
|
*/
|
12646
|
-
listUsers: async (nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource,
|
12510
|
+
listUsers: async (nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
12647
12511
|
const localVarPath = `/admins/users`;
|
12648
12512
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
12649
12513
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -12684,10 +12548,6 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
12684
12548
|
localVarQueryParameter['source'] = source;
|
12685
12549
|
}
|
12686
12550
|
|
12687
|
-
if (prevToken !== undefined) {
|
12688
|
-
localVarQueryParameter['prevToken'] = prevToken;
|
12689
|
-
}
|
12690
|
-
|
12691
12551
|
|
12692
12552
|
|
12693
12553
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -12747,12 +12607,11 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
12747
12607
|
* @param {string} [nextToken] This is the pagination token
|
12748
12608
|
* @param {string} [search] search string
|
12749
12609
|
* @param {Array<string>} [userIDs] user ids to filter by
|
12750
|
-
* @param {string} [prevToken] This is the pagination token
|
12751
12610
|
* @param {*} [options] Override http request option.
|
12752
12611
|
* @throws {RequiredError}
|
12753
12612
|
*/
|
12754
|
-
async listCustomerUsers(nextToken?: string, search?: string, userIDs?: Array<string>,
|
12755
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerUsers(nextToken, search, userIDs,
|
12613
|
+
async listCustomerUsers(nextToken?: string, search?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserListResponse>> {
|
12614
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerUsers(nextToken, search, userIDs, options);
|
12756
12615
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
12757
12616
|
},
|
12758
12617
|
/**
|
@@ -12764,12 +12623,11 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
12764
12623
|
* @param {Array<string>} [clientIDs] client IDs to filter by
|
12765
12624
|
* @param {Array<string>} [userIDs] user ids to filter by
|
12766
12625
|
* @param {UserSource} [source] source to filter by
|
12767
|
-
* @param {string} [prevToken] This is the pagination token
|
12768
12626
|
* @param {*} [options] Override http request option.
|
12769
12627
|
* @throws {RequiredError}
|
12770
12628
|
*/
|
12771
|
-
async listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource,
|
12772
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(nextToken, role, search, clientIDs, userIDs, source,
|
12629
|
+
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>> {
|
12630
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(nextToken, role, search, clientIDs, userIDs, source, options);
|
12773
12631
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
12774
12632
|
},
|
12775
12633
|
}
|
@@ -12817,12 +12675,11 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
12817
12675
|
* @param {string} [nextToken] This is the pagination token
|
12818
12676
|
* @param {string} [search] search string
|
12819
12677
|
* @param {Array<string>} [userIDs] user ids to filter by
|
12820
|
-
* @param {string} [prevToken] This is the pagination token
|
12821
12678
|
* @param {*} [options] Override http request option.
|
12822
12679
|
* @throws {RequiredError}
|
12823
12680
|
*/
|
12824
|
-
listCustomerUsers(nextToken?: string, search?: string, userIDs?: Array<string>,
|
12825
|
-
return localVarFp.listCustomerUsers(nextToken, search, userIDs,
|
12681
|
+
listCustomerUsers(nextToken?: string, search?: string, userIDs?: Array<string>, options?: any): AxiosPromise<UserListResponse> {
|
12682
|
+
return localVarFp.listCustomerUsers(nextToken, search, userIDs, options).then((request) => request(axios, basePath));
|
12826
12683
|
},
|
12827
12684
|
/**
|
12828
12685
|
* List all users
|
@@ -12833,12 +12690,11 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
12833
12690
|
* @param {Array<string>} [clientIDs] client IDs to filter by
|
12834
12691
|
* @param {Array<string>} [userIDs] user ids to filter by
|
12835
12692
|
* @param {UserSource} [source] source to filter by
|
12836
|
-
* @param {string} [prevToken] This is the pagination token
|
12837
12693
|
* @param {*} [options] Override http request option.
|
12838
12694
|
* @throws {RequiredError}
|
12839
12695
|
*/
|
12840
|
-
listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource,
|
12841
|
-
return localVarFp.listUsers(nextToken, role, search, clientIDs, userIDs, source,
|
12696
|
+
listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: any): AxiosPromise<UserListResponse> {
|
12697
|
+
return localVarFp.listUsers(nextToken, role, search, clientIDs, userIDs, source, options).then((request) => request(axios, basePath));
|
12842
12698
|
},
|
12843
12699
|
};
|
12844
12700
|
};
|
@@ -12891,13 +12747,12 @@ export class UserApi extends BaseAPI {
|
|
12891
12747
|
* @param {string} [nextToken] This is the pagination token
|
12892
12748
|
* @param {string} [search] search string
|
12893
12749
|
* @param {Array<string>} [userIDs] user ids to filter by
|
12894
|
-
* @param {string} [prevToken] This is the pagination token
|
12895
12750
|
* @param {*} [options] Override http request option.
|
12896
12751
|
* @throws {RequiredError}
|
12897
12752
|
* @memberof UserApi
|
12898
12753
|
*/
|
12899
|
-
public listCustomerUsers(nextToken?: string, search?: string, userIDs?: Array<string>,
|
12900
|
-
return UserApiFp(this.configuration).listCustomerUsers(nextToken, search, userIDs,
|
12754
|
+
public listCustomerUsers(nextToken?: string, search?: string, userIDs?: Array<string>, options?: AxiosRequestConfig) {
|
12755
|
+
return UserApiFp(this.configuration).listCustomerUsers(nextToken, search, userIDs, options).then((request) => request(this.axios, this.basePath));
|
12901
12756
|
}
|
12902
12757
|
|
12903
12758
|
/**
|
@@ -12909,13 +12764,12 @@ export class UserApi extends BaseAPI {
|
|
12909
12764
|
* @param {Array<string>} [clientIDs] client IDs to filter by
|
12910
12765
|
* @param {Array<string>} [userIDs] user ids to filter by
|
12911
12766
|
* @param {UserSource} [source] source to filter by
|
12912
|
-
* @param {string} [prevToken] This is the pagination token
|
12913
12767
|
* @param {*} [options] Override http request option.
|
12914
12768
|
* @throws {RequiredError}
|
12915
12769
|
* @memberof UserApi
|
12916
12770
|
*/
|
12917
|
-
public listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource,
|
12918
|
-
return UserApiFp(this.configuration).listUsers(nextToken, role, search, clientIDs, userIDs, source,
|
12771
|
+
public listUsers(nextToken?: string, role?: UserRole, search?: string, clientIDs?: Array<string>, userIDs?: Array<string>, source?: UserSource, options?: AxiosRequestConfig) {
|
12772
|
+
return UserApiFp(this.configuration).listUsers(nextToken, role, search, clientIDs, userIDs, source, options).then((request) => request(this.axios, this.basePath));
|
12919
12773
|
}
|
12920
12774
|
}
|
12921
12775
|
|