flexinet-api 0.0.2050-prerelease0-dev → 0.0.2054-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 +414 -164
- package/dist/api.d.ts +266 -96
- package/dist/api.js +304 -164
- package/dist/esm/api.d.ts +266 -96
- package/dist/esm/api.js +304 -164
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
@@ -487,10 +487,11 @@ export const AuditApiAxiosParamCreator = function (configuration) {
|
|
487
487
|
* @summary List audit logs for given object type and ID
|
488
488
|
* @param {string} userID id of the user
|
489
489
|
* @param {string} [nextToken] This is the pagination token
|
490
|
+
* @param {string} [prevToken] This is the pagination token
|
490
491
|
* @param {*} [options] Override http request option.
|
491
492
|
* @throws {RequiredError}
|
492
493
|
*/
|
493
|
-
listUserAuditLogs: (userID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
494
|
+
listUserAuditLogs: (userID, nextToken, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
494
495
|
// verify required parameter 'userID' is not null or undefined
|
495
496
|
assertParamExists('listUserAuditLogs', 'userID', userID);
|
496
497
|
const localVarPath = `/admins/audit/user/{userID}`
|
@@ -510,6 +511,9 @@ export const AuditApiAxiosParamCreator = function (configuration) {
|
|
510
511
|
if (nextToken !== undefined) {
|
511
512
|
localVarQueryParameter['nextToken'] = nextToken;
|
512
513
|
}
|
514
|
+
if (prevToken !== undefined) {
|
515
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
516
|
+
}
|
513
517
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
514
518
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
515
519
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -546,12 +550,13 @@ export const AuditApiFp = function (configuration) {
|
|
546
550
|
* @summary List audit logs for given object type and ID
|
547
551
|
* @param {string} userID id of the user
|
548
552
|
* @param {string} [nextToken] This is the pagination token
|
553
|
+
* @param {string} [prevToken] This is the pagination token
|
549
554
|
* @param {*} [options] Override http request option.
|
550
555
|
* @throws {RequiredError}
|
551
556
|
*/
|
552
|
-
listUserAuditLogs(userID, nextToken, options) {
|
557
|
+
listUserAuditLogs(userID, nextToken, prevToken, options) {
|
553
558
|
return __awaiter(this, void 0, void 0, function* () {
|
554
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserAuditLogs(userID, nextToken, options);
|
559
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserAuditLogs(userID, nextToken, prevToken, options);
|
555
560
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
556
561
|
});
|
557
562
|
},
|
@@ -580,11 +585,12 @@ export const AuditApiFactory = function (configuration, basePath, axios) {
|
|
580
585
|
* @summary List audit logs for given object type and ID
|
581
586
|
* @param {string} userID id of the user
|
582
587
|
* @param {string} [nextToken] This is the pagination token
|
588
|
+
* @param {string} [prevToken] This is the pagination token
|
583
589
|
* @param {*} [options] Override http request option.
|
584
590
|
* @throws {RequiredError}
|
585
591
|
*/
|
586
|
-
listUserAuditLogs(userID, nextToken, options) {
|
587
|
-
return localVarFp.listUserAuditLogs(userID, nextToken, options).then((request) => request(axios, basePath));
|
592
|
+
listUserAuditLogs(userID, nextToken, prevToken, options) {
|
593
|
+
return localVarFp.listUserAuditLogs(userID, nextToken, prevToken, options).then((request) => request(axios, basePath));
|
588
594
|
},
|
589
595
|
};
|
590
596
|
};
|
@@ -612,12 +618,13 @@ export class AuditApi extends BaseAPI {
|
|
612
618
|
* @summary List audit logs for given object type and ID
|
613
619
|
* @param {string} userID id of the user
|
614
620
|
* @param {string} [nextToken] This is the pagination token
|
621
|
+
* @param {string} [prevToken] This is the pagination token
|
615
622
|
* @param {*} [options] Override http request option.
|
616
623
|
* @throws {RequiredError}
|
617
624
|
* @memberof AuditApi
|
618
625
|
*/
|
619
|
-
listUserAuditLogs(userID, nextToken, options) {
|
620
|
-
return AuditApiFp(this.configuration).listUserAuditLogs(userID, nextToken, options).then((request) => request(this.axios, this.basePath));
|
626
|
+
listUserAuditLogs(userID, nextToken, prevToken, options) {
|
627
|
+
return AuditApiFp(this.configuration).listUserAuditLogs(userID, nextToken, prevToken, options).then((request) => request(this.axios, this.basePath));
|
621
628
|
}
|
622
629
|
}
|
623
630
|
/**
|
@@ -1624,10 +1631,11 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
1624
1631
|
* @param {Array<string>} [clientIDs] client IDs
|
1625
1632
|
* @param {string} [managerID] manager ID for whose clients we want to list
|
1626
1633
|
* @param {boolean} [isExcluded] is client excluded
|
1634
|
+
* @param {string} [prevToken] This is the pagination token
|
1627
1635
|
* @param {*} [options] Override http request option.
|
1628
1636
|
* @throws {RequiredError}
|
1629
1637
|
*/
|
1630
|
-
listClients: (nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1638
|
+
listClients: (nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1631
1639
|
const localVarPath = `/admins/clients`;
|
1632
1640
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1633
1641
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -1659,6 +1667,9 @@ export const ClientApiAxiosParamCreator = function (configuration) {
|
|
1659
1667
|
if (isExcluded !== undefined) {
|
1660
1668
|
localVarQueryParameter['isExcluded'] = isExcluded;
|
1661
1669
|
}
|
1670
|
+
if (prevToken !== undefined) {
|
1671
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
1672
|
+
}
|
1662
1673
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1663
1674
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1664
1675
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -1748,12 +1759,13 @@ export const ClientApiFp = function (configuration) {
|
|
1748
1759
|
* @param {Array<string>} [clientIDs] client IDs
|
1749
1760
|
* @param {string} [managerID] manager ID for whose clients we want to list
|
1750
1761
|
* @param {boolean} [isExcluded] is client excluded
|
1762
|
+
* @param {string} [prevToken] This is the pagination token
|
1751
1763
|
* @param {*} [options] Override http request option.
|
1752
1764
|
* @throws {RequiredError}
|
1753
1765
|
*/
|
1754
|
-
listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, options) {
|
1766
|
+
listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, prevToken, options) {
|
1755
1767
|
return __awaiter(this, void 0, void 0, function* () {
|
1756
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, options);
|
1768
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, prevToken, options);
|
1757
1769
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1758
1770
|
});
|
1759
1771
|
},
|
@@ -1809,11 +1821,12 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1809
1821
|
* @param {Array<string>} [clientIDs] client IDs
|
1810
1822
|
* @param {string} [managerID] manager ID for whose clients we want to list
|
1811
1823
|
* @param {boolean} [isExcluded] is client excluded
|
1824
|
+
* @param {string} [prevToken] This is the pagination token
|
1812
1825
|
* @param {*} [options] Override http request option.
|
1813
1826
|
* @throws {RequiredError}
|
1814
1827
|
*/
|
1815
|
-
listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, options) {
|
1816
|
-
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, options).then((request) => request(axios, basePath));
|
1828
|
+
listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, prevToken, options) {
|
1829
|
+
return localVarFp.listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, prevToken, options).then((request) => request(axios, basePath));
|
1817
1830
|
},
|
1818
1831
|
/**
|
1819
1832
|
* Update client
|
@@ -1866,12 +1879,13 @@ export class ClientApi extends BaseAPI {
|
|
1866
1879
|
* @param {Array<string>} [clientIDs] client IDs
|
1867
1880
|
* @param {string} [managerID] manager ID for whose clients we want to list
|
1868
1881
|
* @param {boolean} [isExcluded] is client excluded
|
1882
|
+
* @param {string} [prevToken] This is the pagination token
|
1869
1883
|
* @param {*} [options] Override http request option.
|
1870
1884
|
* @throws {RequiredError}
|
1871
1885
|
* @memberof ClientApi
|
1872
1886
|
*/
|
1873
|
-
listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, options) {
|
1874
|
-
return ClientApiFp(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, options).then((request) => request(this.axios, this.basePath));
|
1887
|
+
listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, prevToken, options) {
|
1888
|
+
return ClientApiFp(this.configuration).listClients(nextToken, search, referenceIDs, clientIDs, managerID, isExcluded, prevToken, options).then((request) => request(this.axios, this.basePath));
|
1875
1889
|
}
|
1876
1890
|
/**
|
1877
1891
|
* Update client
|
@@ -1930,10 +1944,11 @@ export const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
1930
1944
|
* @summary List configurations
|
1931
1945
|
* @param {string} [nextToken] This is the pagination token
|
1932
1946
|
* @param {string} [search] search string
|
1947
|
+
* @param {string} [prevToken] This is the pagination token
|
1933
1948
|
* @param {*} [options] Override http request option.
|
1934
1949
|
* @throws {RequiredError}
|
1935
1950
|
*/
|
1936
|
-
listConfigurations: (nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1951
|
+
listConfigurations: (nextToken, search, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1937
1952
|
const localVarPath = `/admins/configurations`;
|
1938
1953
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1939
1954
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -1953,6 +1968,9 @@ export const ConfigurationApiAxiosParamCreator = function (configuration) {
|
|
1953
1968
|
if (search !== undefined) {
|
1954
1969
|
localVarQueryParameter['search'] = search;
|
1955
1970
|
}
|
1971
|
+
if (prevToken !== undefined) {
|
1972
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
1973
|
+
}
|
1956
1974
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1957
1975
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1958
1976
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -2044,12 +2062,13 @@ export const ConfigurationApiFp = function (configuration) {
|
|
2044
2062
|
* @summary List configurations
|
2045
2063
|
* @param {string} [nextToken] This is the pagination token
|
2046
2064
|
* @param {string} [search] search string
|
2065
|
+
* @param {string} [prevToken] This is the pagination token
|
2047
2066
|
* @param {*} [options] Override http request option.
|
2048
2067
|
* @throws {RequiredError}
|
2049
2068
|
*/
|
2050
|
-
listConfigurations(nextToken, search, options) {
|
2069
|
+
listConfigurations(nextToken, search, prevToken, options) {
|
2051
2070
|
return __awaiter(this, void 0, void 0, function* () {
|
2052
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listConfigurations(nextToken, search, options);
|
2071
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listConfigurations(nextToken, search, prevToken, options);
|
2053
2072
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2054
2073
|
});
|
2055
2074
|
},
|
@@ -2101,11 +2120,12 @@ export const ConfigurationApiFactory = function (configuration, basePath, axios)
|
|
2101
2120
|
* @summary List configurations
|
2102
2121
|
* @param {string} [nextToken] This is the pagination token
|
2103
2122
|
* @param {string} [search] search string
|
2123
|
+
* @param {string} [prevToken] This is the pagination token
|
2104
2124
|
* @param {*} [options] Override http request option.
|
2105
2125
|
* @throws {RequiredError}
|
2106
2126
|
*/
|
2107
|
-
listConfigurations(nextToken, search, options) {
|
2108
|
-
return localVarFp.listConfigurations(nextToken, search, options).then((request) => request(axios, basePath));
|
2127
|
+
listConfigurations(nextToken, search, prevToken, options) {
|
2128
|
+
return localVarFp.listConfigurations(nextToken, search, prevToken, options).then((request) => request(axios, basePath));
|
2109
2129
|
},
|
2110
2130
|
/**
|
2111
2131
|
* List all features
|
@@ -2150,12 +2170,13 @@ export class ConfigurationApi extends BaseAPI {
|
|
2150
2170
|
* @summary List configurations
|
2151
2171
|
* @param {string} [nextToken] This is the pagination token
|
2152
2172
|
* @param {string} [search] search string
|
2173
|
+
* @param {string} [prevToken] This is the pagination token
|
2153
2174
|
* @param {*} [options] Override http request option.
|
2154
2175
|
* @throws {RequiredError}
|
2155
2176
|
* @memberof ConfigurationApi
|
2156
2177
|
*/
|
2157
|
-
listConfigurations(nextToken, search, options) {
|
2158
|
-
return ConfigurationApiFp(this.configuration).listConfigurations(nextToken, search, options).then((request) => request(this.axios, this.basePath));
|
2178
|
+
listConfigurations(nextToken, search, prevToken, options) {
|
2179
|
+
return ConfigurationApiFp(this.configuration).listConfigurations(nextToken, search, prevToken, options).then((request) => request(this.axios, this.basePath));
|
2159
2180
|
}
|
2160
2181
|
/**
|
2161
2182
|
* List all features
|
@@ -2862,10 +2883,11 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2862
2883
|
* @summary List notifications
|
2863
2884
|
* @param {string} [nextToken] This is the pagination token
|
2864
2885
|
* @param {NotificationStatus} [status] Notification status
|
2886
|
+
* @param {string} [prevToken] This is the pagination token
|
2865
2887
|
* @param {*} [options] Override http request option.
|
2866
2888
|
* @throws {RequiredError}
|
2867
2889
|
*/
|
2868
|
-
listNotifications: (nextToken, status, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2890
|
+
listNotifications: (nextToken, status, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2869
2891
|
const localVarPath = `/users/notifications`;
|
2870
2892
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2871
2893
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -2885,6 +2907,9 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2885
2907
|
if (status !== undefined) {
|
2886
2908
|
localVarQueryParameter['status'] = status;
|
2887
2909
|
}
|
2910
|
+
if (prevToken !== undefined) {
|
2911
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
2912
|
+
}
|
2888
2913
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2889
2914
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2890
2915
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -3055,12 +3080,13 @@ export const NotificationApiFp = function (configuration) {
|
|
3055
3080
|
* @summary List notifications
|
3056
3081
|
* @param {string} [nextToken] This is the pagination token
|
3057
3082
|
* @param {NotificationStatus} [status] Notification status
|
3083
|
+
* @param {string} [prevToken] This is the pagination token
|
3058
3084
|
* @param {*} [options] Override http request option.
|
3059
3085
|
* @throws {RequiredError}
|
3060
3086
|
*/
|
3061
|
-
listNotifications(nextToken, status, options) {
|
3087
|
+
listNotifications(nextToken, status, prevToken, options) {
|
3062
3088
|
return __awaiter(this, void 0, void 0, function* () {
|
3063
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listNotifications(nextToken, status, options);
|
3089
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listNotifications(nextToken, status, prevToken, options);
|
3064
3090
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3065
3091
|
});
|
3066
3092
|
},
|
@@ -3155,11 +3181,12 @@ export const NotificationApiFactory = function (configuration, basePath, axios)
|
|
3155
3181
|
* @summary List notifications
|
3156
3182
|
* @param {string} [nextToken] This is the pagination token
|
3157
3183
|
* @param {NotificationStatus} [status] Notification status
|
3184
|
+
* @param {string} [prevToken] This is the pagination token
|
3158
3185
|
* @param {*} [options] Override http request option.
|
3159
3186
|
* @throws {RequiredError}
|
3160
3187
|
*/
|
3161
|
-
listNotifications(nextToken, status, options) {
|
3162
|
-
return localVarFp.listNotifications(nextToken, status, options).then((request) => request(axios, basePath));
|
3188
|
+
listNotifications(nextToken, status, prevToken, options) {
|
3189
|
+
return localVarFp.listNotifications(nextToken, status, prevToken, options).then((request) => request(axios, basePath));
|
3163
3190
|
},
|
3164
3191
|
/**
|
3165
3192
|
* Update notification by ID
|
@@ -3247,12 +3274,13 @@ export class NotificationApi extends BaseAPI {
|
|
3247
3274
|
* @summary List notifications
|
3248
3275
|
* @param {string} [nextToken] This is the pagination token
|
3249
3276
|
* @param {NotificationStatus} [status] Notification status
|
3277
|
+
* @param {string} [prevToken] This is the pagination token
|
3250
3278
|
* @param {*} [options] Override http request option.
|
3251
3279
|
* @throws {RequiredError}
|
3252
3280
|
* @memberof NotificationApi
|
3253
3281
|
*/
|
3254
|
-
listNotifications(nextToken, status, options) {
|
3255
|
-
return NotificationApiFp(this.configuration).listNotifications(nextToken, status, options).then((request) => request(this.axios, this.basePath));
|
3282
|
+
listNotifications(nextToken, status, prevToken, options) {
|
3283
|
+
return NotificationApiFp(this.configuration).listNotifications(nextToken, status, prevToken, options).then((request) => request(this.axios, this.basePath));
|
3256
3284
|
}
|
3257
3285
|
/**
|
3258
3286
|
* Update notification by ID
|
@@ -3423,7 +3451,7 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
3423
3451
|
/**
|
3424
3452
|
* List existing orders
|
3425
3453
|
* @summary List existing orders
|
3426
|
-
* @param {string} [
|
3454
|
+
* @param {string} [nextToken] This is the pagination token
|
3427
3455
|
* @param {string} [search] Search for product or order
|
3428
3456
|
* @param {string} [productId] Filter by token
|
3429
3457
|
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
@@ -3433,10 +3461,11 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
3433
3461
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3434
3462
|
* @param {OrderKind} [kind] Filter by kind
|
3435
3463
|
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3464
|
+
* @param {string} [prevToken] This is the pagination token
|
3436
3465
|
* @param {*} [options] Override http request option.
|
3437
3466
|
* @throws {RequiredError}
|
3438
3467
|
*/
|
3439
|
-
listOrders: (
|
3468
|
+
listOrders: (nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
3440
3469
|
const localVarPath = `/admins/orders`;
|
3441
3470
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3442
3471
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -3450,8 +3479,8 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
3450
3479
|
// authentication systemJWT required
|
3451
3480
|
// http bearer authentication required
|
3452
3481
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
3453
|
-
if (
|
3454
|
-
localVarQueryParameter['
|
3482
|
+
if (nextToken !== undefined) {
|
3483
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
3455
3484
|
}
|
3456
3485
|
if (search !== undefined) {
|
3457
3486
|
localVarQueryParameter['search'] = search;
|
@@ -3484,6 +3513,9 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
3484
3513
|
if (source !== undefined) {
|
3485
3514
|
localVarQueryParameter['source'] = source;
|
3486
3515
|
}
|
3516
|
+
if (prevToken !== undefined) {
|
3517
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
3518
|
+
}
|
3487
3519
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3488
3520
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3489
3521
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -3495,17 +3527,18 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
3495
3527
|
/**
|
3496
3528
|
* List existing orders
|
3497
3529
|
* @summary List existing orders
|
3498
|
-
* @param {string} [
|
3530
|
+
* @param {string} [nextToken] This is the pagination token
|
3499
3531
|
* @param {string} [search] Search for product or order
|
3500
3532
|
* @param {string} [productID] Filter by token
|
3501
3533
|
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
3502
3534
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
3503
3535
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3504
3536
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3537
|
+
* @param {string} [prevToken] This is the pagination token
|
3505
3538
|
* @param {*} [options] Override http request option.
|
3506
3539
|
* @throws {RequiredError}
|
3507
3540
|
*/
|
3508
|
-
listOrdersUser: (
|
3541
|
+
listOrdersUser: (nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
3509
3542
|
const localVarPath = `/users/orders`;
|
3510
3543
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3511
3544
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -3519,8 +3552,8 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
3519
3552
|
// authentication customerJWT required
|
3520
3553
|
// http bearer authentication required
|
3521
3554
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
3522
|
-
if (
|
3523
|
-
localVarQueryParameter['
|
3555
|
+
if (nextToken !== undefined) {
|
3556
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
3524
3557
|
}
|
3525
3558
|
if (search !== undefined) {
|
3526
3559
|
localVarQueryParameter['search'] = search;
|
@@ -3544,6 +3577,9 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
3544
3577
|
if (userIDs) {
|
3545
3578
|
localVarQueryParameter['userIDs'] = userIDs;
|
3546
3579
|
}
|
3580
|
+
if (prevToken !== undefined) {
|
3581
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
3582
|
+
}
|
3547
3583
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3548
3584
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3549
3585
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -3616,7 +3652,7 @@ export const OrderApiFp = function (configuration) {
|
|
3616
3652
|
/**
|
3617
3653
|
* List existing orders
|
3618
3654
|
* @summary List existing orders
|
3619
|
-
* @param {string} [
|
3655
|
+
* @param {string} [nextToken] This is the pagination token
|
3620
3656
|
* @param {string} [search] Search for product or order
|
3621
3657
|
* @param {string} [productId] Filter by token
|
3622
3658
|
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
@@ -3626,31 +3662,33 @@ export const OrderApiFp = function (configuration) {
|
|
3626
3662
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3627
3663
|
* @param {OrderKind} [kind] Filter by kind
|
3628
3664
|
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3665
|
+
* @param {string} [prevToken] This is the pagination token
|
3629
3666
|
* @param {*} [options] Override http request option.
|
3630
3667
|
* @throws {RequiredError}
|
3631
3668
|
*/
|
3632
|
-
listOrders(
|
3669
|
+
listOrders(nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, prevToken, options) {
|
3633
3670
|
return __awaiter(this, void 0, void 0, function* () {
|
3634
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(
|
3671
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, prevToken, options);
|
3635
3672
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3636
3673
|
});
|
3637
3674
|
},
|
3638
3675
|
/**
|
3639
3676
|
* List existing orders
|
3640
3677
|
* @summary List existing orders
|
3641
|
-
* @param {string} [
|
3678
|
+
* @param {string} [nextToken] This is the pagination token
|
3642
3679
|
* @param {string} [search] Search for product or order
|
3643
3680
|
* @param {string} [productID] Filter by token
|
3644
3681
|
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
3645
3682
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
3646
3683
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3647
3684
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3685
|
+
* @param {string} [prevToken] This is the pagination token
|
3648
3686
|
* @param {*} [options] Override http request option.
|
3649
3687
|
* @throws {RequiredError}
|
3650
3688
|
*/
|
3651
|
-
listOrdersUser(
|
3689
|
+
listOrdersUser(nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, prevToken, options) {
|
3652
3690
|
return __awaiter(this, void 0, void 0, function* () {
|
3653
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrdersUser(
|
3691
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrdersUser(nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, prevToken, options);
|
3654
3692
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3655
3693
|
});
|
3656
3694
|
},
|
@@ -3706,7 +3744,7 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3706
3744
|
/**
|
3707
3745
|
* List existing orders
|
3708
3746
|
* @summary List existing orders
|
3709
|
-
* @param {string} [
|
3747
|
+
* @param {string} [nextToken] This is the pagination token
|
3710
3748
|
* @param {string} [search] Search for product or order
|
3711
3749
|
* @param {string} [productId] Filter by token
|
3712
3750
|
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
@@ -3716,27 +3754,29 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3716
3754
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3717
3755
|
* @param {OrderKind} [kind] Filter by kind
|
3718
3756
|
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3757
|
+
* @param {string} [prevToken] This is the pagination token
|
3719
3758
|
* @param {*} [options] Override http request option.
|
3720
3759
|
* @throws {RequiredError}
|
3721
3760
|
*/
|
3722
|
-
listOrders(
|
3723
|
-
return localVarFp.listOrders(
|
3761
|
+
listOrders(nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, prevToken, options) {
|
3762
|
+
return localVarFp.listOrders(nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, prevToken, options).then((request) => request(axios, basePath));
|
3724
3763
|
},
|
3725
3764
|
/**
|
3726
3765
|
* List existing orders
|
3727
3766
|
* @summary List existing orders
|
3728
|
-
* @param {string} [
|
3767
|
+
* @param {string} [nextToken] This is the pagination token
|
3729
3768
|
* @param {string} [search] Search for product or order
|
3730
3769
|
* @param {string} [productID] Filter by token
|
3731
3770
|
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
3732
3771
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
3733
3772
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3734
3773
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3774
|
+
* @param {string} [prevToken] This is the pagination token
|
3735
3775
|
* @param {*} [options] Override http request option.
|
3736
3776
|
* @throws {RequiredError}
|
3737
3777
|
*/
|
3738
|
-
listOrdersUser(
|
3739
|
-
return localVarFp.listOrdersUser(
|
3778
|
+
listOrdersUser(nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, prevToken, options) {
|
3779
|
+
return localVarFp.listOrdersUser(nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, prevToken, options).then((request) => request(axios, basePath));
|
3740
3780
|
},
|
3741
3781
|
};
|
3742
3782
|
};
|
@@ -3794,7 +3834,7 @@ export class OrderApi extends BaseAPI {
|
|
3794
3834
|
/**
|
3795
3835
|
* List existing orders
|
3796
3836
|
* @summary List existing orders
|
3797
|
-
* @param {string} [
|
3837
|
+
* @param {string} [nextToken] This is the pagination token
|
3798
3838
|
* @param {string} [search] Search for product or order
|
3799
3839
|
* @param {string} [productId] Filter by token
|
3800
3840
|
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
@@ -3804,29 +3844,31 @@ export class OrderApi extends BaseAPI {
|
|
3804
3844
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3805
3845
|
* @param {OrderKind} [kind] Filter by kind
|
3806
3846
|
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3847
|
+
* @param {string} [prevToken] This is the pagination token
|
3807
3848
|
* @param {*} [options] Override http request option.
|
3808
3849
|
* @throws {RequiredError}
|
3809
3850
|
* @memberof OrderApi
|
3810
3851
|
*/
|
3811
|
-
listOrders(
|
3812
|
-
return OrderApiFp(this.configuration).listOrders(
|
3852
|
+
listOrders(nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, prevToken, options) {
|
3853
|
+
return OrderApiFp(this.configuration).listOrders(nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, prevToken, options).then((request) => request(this.axios, this.basePath));
|
3813
3854
|
}
|
3814
3855
|
/**
|
3815
3856
|
* List existing orders
|
3816
3857
|
* @summary List existing orders
|
3817
|
-
* @param {string} [
|
3858
|
+
* @param {string} [nextToken] This is the pagination token
|
3818
3859
|
* @param {string} [search] Search for product or order
|
3819
3860
|
* @param {string} [productID] Filter by token
|
3820
3861
|
* @param {Array<string>} [balanceIDs] Filter by balance ids
|
3821
3862
|
* @param {string} [createdAfter] Filter orders created after the specified date
|
3822
3863
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3823
3864
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3865
|
+
* @param {string} [prevToken] This is the pagination token
|
3824
3866
|
* @param {*} [options] Override http request option.
|
3825
3867
|
* @throws {RequiredError}
|
3826
3868
|
* @memberof OrderApi
|
3827
3869
|
*/
|
3828
|
-
listOrdersUser(
|
3829
|
-
return OrderApiFp(this.configuration).listOrdersUser(
|
3870
|
+
listOrdersUser(nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, prevToken, options) {
|
3871
|
+
return OrderApiFp(this.configuration).listOrdersUser(nextToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, prevToken, options).then((request) => request(this.axios, this.basePath));
|
3830
3872
|
}
|
3831
3873
|
}
|
3832
3874
|
/**
|
@@ -4061,10 +4103,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
4061
4103
|
* @summary List existing product requests
|
4062
4104
|
* @param {ProductRequestStatus} [status] The product request status
|
4063
4105
|
* @param {string} [nextToken] This is the pagination token
|
4106
|
+
* @param {string} [prevToken] This is the pagination token
|
4064
4107
|
* @param {*} [options] Override http request option.
|
4065
4108
|
* @throws {RequiredError}
|
4066
4109
|
*/
|
4067
|
-
listProductRequests: (status, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
4110
|
+
listProductRequests: (status, nextToken, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
4068
4111
|
const localVarPath = `/admins/products/requests`;
|
4069
4112
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4070
4113
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -4084,6 +4127,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
4084
4127
|
if (nextToken !== undefined) {
|
4085
4128
|
localVarQueryParameter['nextToken'] = nextToken;
|
4086
4129
|
}
|
4130
|
+
if (prevToken !== undefined) {
|
4131
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
4132
|
+
}
|
4087
4133
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4088
4134
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4089
4135
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -4104,10 +4150,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
4104
4150
|
* @param {string} [segmentID] The segment ID
|
4105
4151
|
* @param {string} [nextToken] This is the pagination token
|
4106
4152
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
4153
|
+
* @param {string} [prevToken] This is the pagination token
|
4107
4154
|
* @param {*} [options] Override http request option.
|
4108
4155
|
* @throws {RequiredError}
|
4109
4156
|
*/
|
4110
|
-
listProducts: (kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
4157
|
+
listProducts: (kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
4111
4158
|
const localVarPath = `/admins/products`;
|
4112
4159
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4113
4160
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -4148,6 +4195,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
4148
4195
|
if (ids) {
|
4149
4196
|
localVarQueryParameter['ids'] = ids;
|
4150
4197
|
}
|
4198
|
+
if (prevToken !== undefined) {
|
4199
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
4200
|
+
}
|
4151
4201
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4152
4202
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4153
4203
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -4160,10 +4210,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
4160
4210
|
* List product requests
|
4161
4211
|
* @summary List product requests
|
4162
4212
|
* @param {string} [nextToken] This is the pagination token
|
4213
|
+
* @param {string} [prevToken] This is the pagination token
|
4163
4214
|
* @param {*} [options] Override http request option.
|
4164
4215
|
* @throws {RequiredError}
|
4165
4216
|
*/
|
4166
|
-
listUserProductRequests: (nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
4217
|
+
listUserProductRequests: (nextToken, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
4167
4218
|
const localVarPath = `/users/products/requests`;
|
4168
4219
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4169
4220
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -4180,6 +4231,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
4180
4231
|
if (nextToken !== undefined) {
|
4181
4232
|
localVarQueryParameter['nextToken'] = nextToken;
|
4182
4233
|
}
|
4234
|
+
if (prevToken !== undefined) {
|
4235
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
4236
|
+
}
|
4183
4237
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4184
4238
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4185
4239
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -4197,10 +4251,11 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
4197
4251
|
* @param {string} [search] search string
|
4198
4252
|
* @param {ProductAvailability} [availability] The product availability
|
4199
4253
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
4254
|
+
* @param {string} [prevToken] This is the pagination token
|
4200
4255
|
* @param {*} [options] Override http request option.
|
4201
4256
|
* @throws {RequiredError}
|
4202
4257
|
*/
|
4203
|
-
listUserProducts: (kind, nextToken, categoryID, search, availability, ids, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
4258
|
+
listUserProducts: (kind, nextToken, categoryID, search, availability, ids, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
4204
4259
|
const localVarPath = `/users/products`;
|
4205
4260
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
4206
4261
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -4232,6 +4287,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
4232
4287
|
if (ids) {
|
4233
4288
|
localVarQueryParameter['ids'] = ids;
|
4234
4289
|
}
|
4290
|
+
if (prevToken !== undefined) {
|
4291
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
4292
|
+
}
|
4235
4293
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4236
4294
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4237
4295
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -4380,12 +4438,13 @@ export const ProductApiFp = function (configuration) {
|
|
4380
4438
|
* @summary List existing product requests
|
4381
4439
|
* @param {ProductRequestStatus} [status] The product request status
|
4382
4440
|
* @param {string} [nextToken] This is the pagination token
|
4441
|
+
* @param {string} [prevToken] This is the pagination token
|
4383
4442
|
* @param {*} [options] Override http request option.
|
4384
4443
|
* @throws {RequiredError}
|
4385
4444
|
*/
|
4386
|
-
listProductRequests(status, nextToken, options) {
|
4445
|
+
listProductRequests(status, nextToken, prevToken, options) {
|
4387
4446
|
return __awaiter(this, void 0, void 0, function* () {
|
4388
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProductRequests(status, nextToken, options);
|
4447
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProductRequests(status, nextToken, prevToken, options);
|
4389
4448
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4390
4449
|
});
|
4391
4450
|
},
|
@@ -4401,12 +4460,13 @@ export const ProductApiFp = function (configuration) {
|
|
4401
4460
|
* @param {string} [segmentID] The segment ID
|
4402
4461
|
* @param {string} [nextToken] This is the pagination token
|
4403
4462
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
4463
|
+
* @param {string} [prevToken] This is the pagination token
|
4404
4464
|
* @param {*} [options] Override http request option.
|
4405
4465
|
* @throws {RequiredError}
|
4406
4466
|
*/
|
4407
|
-
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
4467
|
+
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, prevToken, options) {
|
4408
4468
|
return __awaiter(this, void 0, void 0, function* () {
|
4409
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options);
|
4469
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, prevToken, options);
|
4410
4470
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4411
4471
|
});
|
4412
4472
|
},
|
@@ -4414,12 +4474,13 @@ export const ProductApiFp = function (configuration) {
|
|
4414
4474
|
* List product requests
|
4415
4475
|
* @summary List product requests
|
4416
4476
|
* @param {string} [nextToken] This is the pagination token
|
4477
|
+
* @param {string} [prevToken] This is the pagination token
|
4417
4478
|
* @param {*} [options] Override http request option.
|
4418
4479
|
* @throws {RequiredError}
|
4419
4480
|
*/
|
4420
|
-
listUserProductRequests(nextToken, options) {
|
4481
|
+
listUserProductRequests(nextToken, prevToken, options) {
|
4421
4482
|
return __awaiter(this, void 0, void 0, function* () {
|
4422
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProductRequests(nextToken, options);
|
4483
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProductRequests(nextToken, prevToken, options);
|
4423
4484
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4424
4485
|
});
|
4425
4486
|
},
|
@@ -4432,12 +4493,13 @@ export const ProductApiFp = function (configuration) {
|
|
4432
4493
|
* @param {string} [search] search string
|
4433
4494
|
* @param {ProductAvailability} [availability] The product availability
|
4434
4495
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
4496
|
+
* @param {string} [prevToken] This is the pagination token
|
4435
4497
|
* @param {*} [options] Override http request option.
|
4436
4498
|
* @throws {RequiredError}
|
4437
4499
|
*/
|
4438
|
-
listUserProducts(kind, nextToken, categoryID, search, availability, ids, options) {
|
4500
|
+
listUserProducts(kind, nextToken, categoryID, search, availability, ids, prevToken, options) {
|
4439
4501
|
return __awaiter(this, void 0, void 0, function* () {
|
4440
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, ids, options);
|
4502
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProducts(kind, nextToken, categoryID, search, availability, ids, prevToken, options);
|
4441
4503
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4442
4504
|
});
|
4443
4505
|
},
|
@@ -4539,11 +4601,12 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
4539
4601
|
* @summary List existing product requests
|
4540
4602
|
* @param {ProductRequestStatus} [status] The product request status
|
4541
4603
|
* @param {string} [nextToken] This is the pagination token
|
4604
|
+
* @param {string} [prevToken] This is the pagination token
|
4542
4605
|
* @param {*} [options] Override http request option.
|
4543
4606
|
* @throws {RequiredError}
|
4544
4607
|
*/
|
4545
|
-
listProductRequests(status, nextToken, options) {
|
4546
|
-
return localVarFp.listProductRequests(status, nextToken, options).then((request) => request(axios, basePath));
|
4608
|
+
listProductRequests(status, nextToken, prevToken, options) {
|
4609
|
+
return localVarFp.listProductRequests(status, nextToken, prevToken, options).then((request) => request(axios, basePath));
|
4547
4610
|
},
|
4548
4611
|
/**
|
4549
4612
|
* List existing products
|
@@ -4557,21 +4620,23 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
4557
4620
|
* @param {string} [segmentID] The segment ID
|
4558
4621
|
* @param {string} [nextToken] This is the pagination token
|
4559
4622
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
4623
|
+
* @param {string} [prevToken] This is the pagination token
|
4560
4624
|
* @param {*} [options] Override http request option.
|
4561
4625
|
* @throws {RequiredError}
|
4562
4626
|
*/
|
4563
|
-
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
4564
|
-
return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(axios, basePath));
|
4627
|
+
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, prevToken, options) {
|
4628
|
+
return localVarFp.listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, prevToken, options).then((request) => request(axios, basePath));
|
4565
4629
|
},
|
4566
4630
|
/**
|
4567
4631
|
* List product requests
|
4568
4632
|
* @summary List product requests
|
4569
4633
|
* @param {string} [nextToken] This is the pagination token
|
4634
|
+
* @param {string} [prevToken] This is the pagination token
|
4570
4635
|
* @param {*} [options] Override http request option.
|
4571
4636
|
* @throws {RequiredError}
|
4572
4637
|
*/
|
4573
|
-
listUserProductRequests(nextToken, options) {
|
4574
|
-
return localVarFp.listUserProductRequests(nextToken, options).then((request) => request(axios, basePath));
|
4638
|
+
listUserProductRequests(nextToken, prevToken, options) {
|
4639
|
+
return localVarFp.listUserProductRequests(nextToken, prevToken, options).then((request) => request(axios, basePath));
|
4575
4640
|
},
|
4576
4641
|
/**
|
4577
4642
|
* List existing products for the user
|
@@ -4582,11 +4647,12 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
4582
4647
|
* @param {string} [search] search string
|
4583
4648
|
* @param {ProductAvailability} [availability] The product availability
|
4584
4649
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
4650
|
+
* @param {string} [prevToken] This is the pagination token
|
4585
4651
|
* @param {*} [options] Override http request option.
|
4586
4652
|
* @throws {RequiredError}
|
4587
4653
|
*/
|
4588
|
-
listUserProducts(kind, nextToken, categoryID, search, availability, ids, options) {
|
4589
|
-
return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, ids, options).then((request) => request(axios, basePath));
|
4654
|
+
listUserProducts(kind, nextToken, categoryID, search, availability, ids, prevToken, options) {
|
4655
|
+
return localVarFp.listUserProducts(kind, nextToken, categoryID, search, availability, ids, prevToken, options).then((request) => request(axios, basePath));
|
4590
4656
|
},
|
4591
4657
|
/**
|
4592
4658
|
* Update a product by id
|
@@ -4690,12 +4756,13 @@ export class ProductApi extends BaseAPI {
|
|
4690
4756
|
* @summary List existing product requests
|
4691
4757
|
* @param {ProductRequestStatus} [status] The product request status
|
4692
4758
|
* @param {string} [nextToken] This is the pagination token
|
4759
|
+
* @param {string} [prevToken] This is the pagination token
|
4693
4760
|
* @param {*} [options] Override http request option.
|
4694
4761
|
* @throws {RequiredError}
|
4695
4762
|
* @memberof ProductApi
|
4696
4763
|
*/
|
4697
|
-
listProductRequests(status, nextToken, options) {
|
4698
|
-
return ProductApiFp(this.configuration).listProductRequests(status, nextToken, options).then((request) => request(this.axios, this.basePath));
|
4764
|
+
listProductRequests(status, nextToken, prevToken, options) {
|
4765
|
+
return ProductApiFp(this.configuration).listProductRequests(status, nextToken, prevToken, options).then((request) => request(this.axios, this.basePath));
|
4699
4766
|
}
|
4700
4767
|
/**
|
4701
4768
|
* List existing products
|
@@ -4709,23 +4776,25 @@ export class ProductApi extends BaseAPI {
|
|
4709
4776
|
* @param {string} [segmentID] The segment ID
|
4710
4777
|
* @param {string} [nextToken] This is the pagination token
|
4711
4778
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
4779
|
+
* @param {string} [prevToken] This is the pagination token
|
4712
4780
|
* @param {*} [options] Override http request option.
|
4713
4781
|
* @throws {RequiredError}
|
4714
4782
|
* @memberof ProductApi
|
4715
4783
|
*/
|
4716
|
-
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options) {
|
4717
|
-
return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, options).then((request) => request(this.axios, this.basePath));
|
4784
|
+
listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, prevToken, options) {
|
4785
|
+
return ProductApiFp(this.configuration).listProducts(kind, categoryID, search, usage, status, availability, segmentID, nextToken, ids, prevToken, options).then((request) => request(this.axios, this.basePath));
|
4718
4786
|
}
|
4719
4787
|
/**
|
4720
4788
|
* List product requests
|
4721
4789
|
* @summary List product requests
|
4722
4790
|
* @param {string} [nextToken] This is the pagination token
|
4791
|
+
* @param {string} [prevToken] This is the pagination token
|
4723
4792
|
* @param {*} [options] Override http request option.
|
4724
4793
|
* @throws {RequiredError}
|
4725
4794
|
* @memberof ProductApi
|
4726
4795
|
*/
|
4727
|
-
listUserProductRequests(nextToken, options) {
|
4728
|
-
return ProductApiFp(this.configuration).listUserProductRequests(nextToken, options).then((request) => request(this.axios, this.basePath));
|
4796
|
+
listUserProductRequests(nextToken, prevToken, options) {
|
4797
|
+
return ProductApiFp(this.configuration).listUserProductRequests(nextToken, prevToken, options).then((request) => request(this.axios, this.basePath));
|
4729
4798
|
}
|
4730
4799
|
/**
|
4731
4800
|
* List existing products for the user
|
@@ -4736,12 +4805,13 @@ export class ProductApi extends BaseAPI {
|
|
4736
4805
|
* @param {string} [search] search string
|
4737
4806
|
* @param {ProductAvailability} [availability] The product availability
|
4738
4807
|
* @param {Array<string>} [ids] This a list of ids to filter by
|
4808
|
+
* @param {string} [prevToken] This is the pagination token
|
4739
4809
|
* @param {*} [options] Override http request option.
|
4740
4810
|
* @throws {RequiredError}
|
4741
4811
|
* @memberof ProductApi
|
4742
4812
|
*/
|
4743
|
-
listUserProducts(kind, nextToken, categoryID, search, availability, ids, options) {
|
4744
|
-
return ProductApiFp(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, ids, options).then((request) => request(this.axios, this.basePath));
|
4813
|
+
listUserProducts(kind, nextToken, categoryID, search, availability, ids, prevToken, options) {
|
4814
|
+
return ProductApiFp(this.configuration).listUserProducts(kind, nextToken, categoryID, search, availability, ids, prevToken, options).then((request) => request(this.axios, this.basePath));
|
4745
4815
|
}
|
4746
4816
|
/**
|
4747
4817
|
* Update a product by id
|
@@ -4772,10 +4842,11 @@ export const ProgressApiAxiosParamCreator = function (configuration) {
|
|
4772
4842
|
* @param {ProgressInterval} [interval] Interval
|
4773
4843
|
* @param {string} [nextToken] This is the pagination token
|
4774
4844
|
* @param {ProgressStateAggregation} [state] Progress state
|
4845
|
+
* @param {string} [prevToken] This is the pagination token
|
4775
4846
|
* @param {*} [options] Override http request option.
|
4776
4847
|
* @throws {RequiredError}
|
4777
4848
|
*/
|
4778
|
-
listProgress: (promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
4849
|
+
listProgress: (promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
4779
4850
|
// verify required parameter 'promotionIDs' is not null or undefined
|
4780
4851
|
assertParamExists('listProgress', 'promotionIDs', promotionIDs);
|
4781
4852
|
const localVarPath = `/admins/progress`;
|
@@ -4812,6 +4883,9 @@ export const ProgressApiAxiosParamCreator = function (configuration) {
|
|
4812
4883
|
if (state !== undefined) {
|
4813
4884
|
localVarQueryParameter['state'] = state;
|
4814
4885
|
}
|
4886
|
+
if (prevToken !== undefined) {
|
4887
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
4888
|
+
}
|
4815
4889
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4816
4890
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4817
4891
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -4827,10 +4901,11 @@ export const ProgressApiAxiosParamCreator = function (configuration) {
|
|
4827
4901
|
* @param {number} [periodID] Period ID
|
4828
4902
|
* @param {string} [nextToken] This is the pagination token
|
4829
4903
|
* @param {ProgressStateAggregation} [state] Progress state
|
4904
|
+
* @param {string} [prevToken] This is the pagination token
|
4830
4905
|
* @param {*} [options] Override http request option.
|
4831
4906
|
* @throws {RequiredError}
|
4832
4907
|
*/
|
4833
|
-
listUserProgress: (promotionIDs, periodID, nextToken, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
4908
|
+
listUserProgress: (promotionIDs, periodID, nextToken, state, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
4834
4909
|
// verify required parameter 'promotionIDs' is not null or undefined
|
4835
4910
|
assertParamExists('listUserProgress', 'promotionIDs', promotionIDs);
|
4836
4911
|
const localVarPath = `/users/progress`;
|
@@ -4858,6 +4933,9 @@ export const ProgressApiAxiosParamCreator = function (configuration) {
|
|
4858
4933
|
if (state !== undefined) {
|
4859
4934
|
localVarQueryParameter['state'] = state;
|
4860
4935
|
}
|
4936
|
+
if (prevToken !== undefined) {
|
4937
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
4938
|
+
}
|
4861
4939
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
4862
4940
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
4863
4941
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -4885,12 +4963,13 @@ export const ProgressApiFp = function (configuration) {
|
|
4885
4963
|
* @param {ProgressInterval} [interval] Interval
|
4886
4964
|
* @param {string} [nextToken] This is the pagination token
|
4887
4965
|
* @param {ProgressStateAggregation} [state] Progress state
|
4966
|
+
* @param {string} [prevToken] This is the pagination token
|
4888
4967
|
* @param {*} [options] Override http request option.
|
4889
4968
|
* @throws {RequiredError}
|
4890
4969
|
*/
|
4891
|
-
listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, options) {
|
4970
|
+
listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, prevToken, options) {
|
4892
4971
|
return __awaiter(this, void 0, void 0, function* () {
|
4893
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, options);
|
4972
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, prevToken, options);
|
4894
4973
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4895
4974
|
});
|
4896
4975
|
},
|
@@ -4901,12 +4980,13 @@ export const ProgressApiFp = function (configuration) {
|
|
4901
4980
|
* @param {number} [periodID] Period ID
|
4902
4981
|
* @param {string} [nextToken] This is the pagination token
|
4903
4982
|
* @param {ProgressStateAggregation} [state] Progress state
|
4983
|
+
* @param {string} [prevToken] This is the pagination token
|
4904
4984
|
* @param {*} [options] Override http request option.
|
4905
4985
|
* @throws {RequiredError}
|
4906
4986
|
*/
|
4907
|
-
listUserProgress(promotionIDs, periodID, nextToken, state, options) {
|
4987
|
+
listUserProgress(promotionIDs, periodID, nextToken, state, prevToken, options) {
|
4908
4988
|
return __awaiter(this, void 0, void 0, function* () {
|
4909
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProgress(promotionIDs, periodID, nextToken, state, options);
|
4989
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProgress(promotionIDs, periodID, nextToken, state, prevToken, options);
|
4910
4990
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
4911
4991
|
});
|
4912
4992
|
},
|
@@ -4929,11 +5009,12 @@ export const ProgressApiFactory = function (configuration, basePath, axios) {
|
|
4929
5009
|
* @param {ProgressInterval} [interval] Interval
|
4930
5010
|
* @param {string} [nextToken] This is the pagination token
|
4931
5011
|
* @param {ProgressStateAggregation} [state] Progress state
|
5012
|
+
* @param {string} [prevToken] This is the pagination token
|
4932
5013
|
* @param {*} [options] Override http request option.
|
4933
5014
|
* @throws {RequiredError}
|
4934
5015
|
*/
|
4935
|
-
listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, options) {
|
4936
|
-
return localVarFp.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, options).then((request) => request(axios, basePath));
|
5016
|
+
listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, prevToken, options) {
|
5017
|
+
return localVarFp.listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, prevToken, options).then((request) => request(axios, basePath));
|
4937
5018
|
},
|
4938
5019
|
/**
|
4939
5020
|
* List users progress
|
@@ -4942,11 +5023,12 @@ export const ProgressApiFactory = function (configuration, basePath, axios) {
|
|
4942
5023
|
* @param {number} [periodID] Period ID
|
4943
5024
|
* @param {string} [nextToken] This is the pagination token
|
4944
5025
|
* @param {ProgressStateAggregation} [state] Progress state
|
5026
|
+
* @param {string} [prevToken] This is the pagination token
|
4945
5027
|
* @param {*} [options] Override http request option.
|
4946
5028
|
* @throws {RequiredError}
|
4947
5029
|
*/
|
4948
|
-
listUserProgress(promotionIDs, periodID, nextToken, state, options) {
|
4949
|
-
return localVarFp.listUserProgress(promotionIDs, periodID, nextToken, state, options).then((request) => request(axios, basePath));
|
5030
|
+
listUserProgress(promotionIDs, periodID, nextToken, state, prevToken, options) {
|
5031
|
+
return localVarFp.listUserProgress(promotionIDs, periodID, nextToken, state, prevToken, options).then((request) => request(axios, basePath));
|
4950
5032
|
},
|
4951
5033
|
};
|
4952
5034
|
};
|
@@ -4967,12 +5049,13 @@ export class ProgressApi extends BaseAPI {
|
|
4967
5049
|
* @param {ProgressInterval} [interval] Interval
|
4968
5050
|
* @param {string} [nextToken] This is the pagination token
|
4969
5051
|
* @param {ProgressStateAggregation} [state] Progress state
|
5052
|
+
* @param {string} [prevToken] This is the pagination token
|
4970
5053
|
* @param {*} [options] Override http request option.
|
4971
5054
|
* @throws {RequiredError}
|
4972
5055
|
* @memberof ProgressApi
|
4973
5056
|
*/
|
4974
|
-
listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, options) {
|
4975
|
-
return ProgressApiFp(this.configuration).listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, options).then((request) => request(this.axios, this.basePath));
|
5057
|
+
listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, prevToken, options) {
|
5058
|
+
return ProgressApiFp(this.configuration).listProgress(promotionIDs, periodID, userIDs, clientIDs, interval, nextToken, state, prevToken, options).then((request) => request(this.axios, this.basePath));
|
4976
5059
|
}
|
4977
5060
|
/**
|
4978
5061
|
* List users progress
|
@@ -4981,12 +5064,13 @@ export class ProgressApi extends BaseAPI {
|
|
4981
5064
|
* @param {number} [periodID] Period ID
|
4982
5065
|
* @param {string} [nextToken] This is the pagination token
|
4983
5066
|
* @param {ProgressStateAggregation} [state] Progress state
|
5067
|
+
* @param {string} [prevToken] This is the pagination token
|
4984
5068
|
* @param {*} [options] Override http request option.
|
4985
5069
|
* @throws {RequiredError}
|
4986
5070
|
* @memberof ProgressApi
|
4987
5071
|
*/
|
4988
|
-
listUserProgress(promotionIDs, periodID, nextToken, state, options) {
|
4989
|
-
return ProgressApiFp(this.configuration).listUserProgress(promotionIDs, periodID, nextToken, state, options).then((request) => request(this.axios, this.basePath));
|
5072
|
+
listUserProgress(promotionIDs, periodID, nextToken, state, prevToken, options) {
|
5073
|
+
return ProgressApiFp(this.configuration).listUserProgress(promotionIDs, periodID, nextToken, state, prevToken, options).then((request) => request(this.axios, this.basePath));
|
4990
5074
|
}
|
4991
5075
|
}
|
4992
5076
|
/**
|
@@ -5301,10 +5385,11 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5301
5385
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
5302
5386
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
5303
5387
|
* @param {ProgressStateAggregation} [state] Progress state
|
5388
|
+
* @param {string} [prevToken] This is the pagination token
|
5304
5389
|
* @param {*} [options] Override http request option.
|
5305
5390
|
* @throws {RequiredError}
|
5306
5391
|
*/
|
5307
|
-
listPromotionBeneficiaries: (id, periodID, hasProgress, nextToken, search, interval, state, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5392
|
+
listPromotionBeneficiaries: (id, periodID, hasProgress, nextToken, search, interval, state, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5308
5393
|
// verify required parameter 'id' is not null or undefined
|
5309
5394
|
assertParamExists('listPromotionBeneficiaries', 'id', id);
|
5310
5395
|
const localVarPath = `/admins/promotions/{id}/beneficiaries`
|
@@ -5339,6 +5424,9 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5339
5424
|
if (state !== undefined) {
|
5340
5425
|
localVarQueryParameter['state'] = state;
|
5341
5426
|
}
|
5427
|
+
if (prevToken !== undefined) {
|
5428
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
5429
|
+
}
|
5342
5430
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5343
5431
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5344
5432
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -5365,10 +5453,11 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5365
5453
|
* @param {SortDirection} [sortDirection] sort direction
|
5366
5454
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5367
5455
|
* @param {Array<string>} [iDs] IDs to filter by
|
5456
|
+
* @param {string} [prevToken] This is the pagination token
|
5368
5457
|
* @param {*} [options] Override http request option.
|
5369
5458
|
* @throws {RequiredError}
|
5370
5459
|
*/
|
5371
|
-
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5460
|
+
listPromotions: (nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5372
5461
|
const localVarPath = `/admins/promotions`;
|
5373
5462
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5374
5463
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -5435,6 +5524,9 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5435
5524
|
if (iDs) {
|
5436
5525
|
localVarQueryParameter['IDs'] = iDs;
|
5437
5526
|
}
|
5527
|
+
if (prevToken !== undefined) {
|
5528
|
+
localVarQueryParameter['PrevToken'] = prevToken;
|
5529
|
+
}
|
5438
5530
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5439
5531
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5440
5532
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -5458,10 +5550,11 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5458
5550
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5459
5551
|
* @param {PromotionType} [type] promotion type
|
5460
5552
|
* @param {Array<string>} [iDs] IDs to filter by
|
5553
|
+
* @param {string} [prevToken] This is the pagination token
|
5461
5554
|
* @param {*} [options] Override http request option.
|
5462
5555
|
* @throws {RequiredError}
|
5463
5556
|
*/
|
5464
|
-
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5557
|
+
listUserPromotions: (nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
5465
5558
|
const localVarPath = `/users/promotions`;
|
5466
5559
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5467
5560
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -5519,6 +5612,9 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
5519
5612
|
if (iDs) {
|
5520
5613
|
localVarQueryParameter['IDs'] = iDs;
|
5521
5614
|
}
|
5615
|
+
if (prevToken !== undefined) {
|
5616
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
5617
|
+
}
|
5522
5618
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5523
5619
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5524
5620
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -5702,12 +5798,13 @@ export const PromotionApiFp = function (configuration) {
|
|
5702
5798
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
5703
5799
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
5704
5800
|
* @param {ProgressStateAggregation} [state] Progress state
|
5801
|
+
* @param {string} [prevToken] This is the pagination token
|
5705
5802
|
* @param {*} [options] Override http request option.
|
5706
5803
|
* @throws {RequiredError}
|
5707
5804
|
*/
|
5708
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options) {
|
5805
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, prevToken, options) {
|
5709
5806
|
return __awaiter(this, void 0, void 0, function* () {
|
5710
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options);
|
5807
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, prevToken, options);
|
5711
5808
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5712
5809
|
});
|
5713
5810
|
},
|
@@ -5729,12 +5826,13 @@ export const PromotionApiFp = function (configuration) {
|
|
5729
5826
|
* @param {SortDirection} [sortDirection] sort direction
|
5730
5827
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5731
5828
|
* @param {Array<string>} [iDs] IDs to filter by
|
5829
|
+
* @param {string} [prevToken] This is the pagination token
|
5732
5830
|
* @param {*} [options] Override http request option.
|
5733
5831
|
* @throws {RequiredError}
|
5734
5832
|
*/
|
5735
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options) {
|
5833
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, prevToken, options) {
|
5736
5834
|
return __awaiter(this, void 0, void 0, function* () {
|
5737
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options);
|
5835
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, prevToken, options);
|
5738
5836
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5739
5837
|
});
|
5740
5838
|
},
|
@@ -5753,12 +5851,13 @@ export const PromotionApiFp = function (configuration) {
|
|
5753
5851
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5754
5852
|
* @param {PromotionType} [type] promotion type
|
5755
5853
|
* @param {Array<string>} [iDs] IDs to filter by
|
5854
|
+
* @param {string} [prevToken] This is the pagination token
|
5756
5855
|
* @param {*} [options] Override http request option.
|
5757
5856
|
* @throws {RequiredError}
|
5758
5857
|
*/
|
5759
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options) {
|
5858
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, prevToken, options) {
|
5760
5859
|
return __awaiter(this, void 0, void 0, function* () {
|
5761
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options);
|
5860
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, prevToken, options);
|
5762
5861
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5763
5862
|
});
|
5764
5863
|
},
|
@@ -5887,11 +5986,12 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
5887
5986
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
5888
5987
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
5889
5988
|
* @param {ProgressStateAggregation} [state] Progress state
|
5989
|
+
* @param {string} [prevToken] This is the pagination token
|
5890
5990
|
* @param {*} [options] Override http request option.
|
5891
5991
|
* @throws {RequiredError}
|
5892
5992
|
*/
|
5893
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options) {
|
5894
|
-
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options).then((request) => request(axios, basePath));
|
5993
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, prevToken, options) {
|
5994
|
+
return localVarFp.listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, prevToken, options).then((request) => request(axios, basePath));
|
5895
5995
|
},
|
5896
5996
|
/**
|
5897
5997
|
* List all promotions
|
@@ -5911,11 +6011,12 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
5911
6011
|
* @param {SortDirection} [sortDirection] sort direction
|
5912
6012
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5913
6013
|
* @param {Array<string>} [iDs] IDs to filter by
|
6014
|
+
* @param {string} [prevToken] This is the pagination token
|
5914
6015
|
* @param {*} [options] Override http request option.
|
5915
6016
|
* @throws {RequiredError}
|
5916
6017
|
*/
|
5917
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options) {
|
5918
|
-
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options).then((request) => request(axios, basePath));
|
6018
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, prevToken, options) {
|
6019
|
+
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, prevToken, options).then((request) => request(axios, basePath));
|
5919
6020
|
},
|
5920
6021
|
/**
|
5921
6022
|
* List users promotions
|
@@ -5932,11 +6033,12 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
5932
6033
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
5933
6034
|
* @param {PromotionType} [type] promotion type
|
5934
6035
|
* @param {Array<string>} [iDs] IDs to filter by
|
6036
|
+
* @param {string} [prevToken] This is the pagination token
|
5935
6037
|
* @param {*} [options] Override http request option.
|
5936
6038
|
* @throws {RequiredError}
|
5937
6039
|
*/
|
5938
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options) {
|
5939
|
-
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options).then((request) => request(axios, basePath));
|
6040
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, prevToken, options) {
|
6041
|
+
return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, prevToken, options).then((request) => request(axios, basePath));
|
5940
6042
|
},
|
5941
6043
|
/**
|
5942
6044
|
* Update promotion by id
|
@@ -6069,12 +6171,13 @@ export class PromotionApi extends BaseAPI {
|
|
6069
6171
|
* @param {string} [search] search string, searches in client name/referenceID or user name/referenceID
|
6070
6172
|
* @param {ProgressInterval} [interval] Progress interval to filter by
|
6071
6173
|
* @param {ProgressStateAggregation} [state] Progress state
|
6174
|
+
* @param {string} [prevToken] This is the pagination token
|
6072
6175
|
* @param {*} [options] Override http request option.
|
6073
6176
|
* @throws {RequiredError}
|
6074
6177
|
* @memberof PromotionApi
|
6075
6178
|
*/
|
6076
|
-
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options) {
|
6077
|
-
return PromotionApiFp(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, options).then((request) => request(this.axios, this.basePath));
|
6179
|
+
listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, prevToken, options) {
|
6180
|
+
return PromotionApiFp(this.configuration).listPromotionBeneficiaries(id, periodID, hasProgress, nextToken, search, interval, state, prevToken, options).then((request) => request(this.axios, this.basePath));
|
6078
6181
|
}
|
6079
6182
|
/**
|
6080
6183
|
* List all promotions
|
@@ -6094,12 +6197,13 @@ export class PromotionApi extends BaseAPI {
|
|
6094
6197
|
* @param {SortDirection} [sortDirection] sort direction
|
6095
6198
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
6096
6199
|
* @param {Array<string>} [iDs] IDs to filter by
|
6200
|
+
* @param {string} [prevToken] This is the pagination token
|
6097
6201
|
* @param {*} [options] Override http request option.
|
6098
6202
|
* @throws {RequiredError}
|
6099
6203
|
* @memberof PromotionApi
|
6100
6204
|
*/
|
6101
|
-
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options) {
|
6102
|
-
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options).then((request) => request(this.axios, this.basePath));
|
6205
|
+
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, prevToken, options) {
|
6206
|
+
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, prevToken, options).then((request) => request(this.axios, this.basePath));
|
6103
6207
|
}
|
6104
6208
|
/**
|
6105
6209
|
* List users promotions
|
@@ -6116,12 +6220,13 @@ export class PromotionApi extends BaseAPI {
|
|
6116
6220
|
* @param {boolean} [onlyClaimable] only claimable promotions
|
6117
6221
|
* @param {PromotionType} [type] promotion type
|
6118
6222
|
* @param {Array<string>} [iDs] IDs to filter by
|
6223
|
+
* @param {string} [prevToken] This is the pagination token
|
6119
6224
|
* @param {*} [options] Override http request option.
|
6120
6225
|
* @throws {RequiredError}
|
6121
6226
|
* @memberof PromotionApi
|
6122
6227
|
*/
|
6123
|
-
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options) {
|
6124
|
-
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));
|
6228
|
+
listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, prevToken, options) {
|
6229
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, prevToken, options).then((request) => request(this.axios, this.basePath));
|
6125
6230
|
}
|
6126
6231
|
/**
|
6127
6232
|
* Update promotion by id
|
@@ -6443,10 +6548,11 @@ export const SegmentApiAxiosParamCreator = function (configuration) {
|
|
6443
6548
|
* @summary Method returns segments list.
|
6444
6549
|
* @param {string} [nextToken]
|
6445
6550
|
* @param {string} [search] search string
|
6551
|
+
* @param {string} [prevToken]
|
6446
6552
|
* @param {*} [options] Override http request option.
|
6447
6553
|
* @throws {RequiredError}
|
6448
6554
|
*/
|
6449
|
-
listSegments: (nextToken, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
6555
|
+
listSegments: (nextToken, search, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
6450
6556
|
const localVarPath = `/admins/segments`;
|
6451
6557
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6452
6558
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -6466,6 +6572,9 @@ export const SegmentApiAxiosParamCreator = function (configuration) {
|
|
6466
6572
|
if (search !== undefined) {
|
6467
6573
|
localVarQueryParameter['search'] = search;
|
6468
6574
|
}
|
6575
|
+
if (prevToken !== undefined) {
|
6576
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
6577
|
+
}
|
6469
6578
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6470
6579
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6471
6580
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -6514,12 +6623,13 @@ export const SegmentApiFp = function (configuration) {
|
|
6514
6623
|
* @summary Method returns segments list.
|
6515
6624
|
* @param {string} [nextToken]
|
6516
6625
|
* @param {string} [search] search string
|
6626
|
+
* @param {string} [prevToken]
|
6517
6627
|
* @param {*} [options] Override http request option.
|
6518
6628
|
* @throws {RequiredError}
|
6519
6629
|
*/
|
6520
|
-
listSegments(nextToken, search, options) {
|
6630
|
+
listSegments(nextToken, search, prevToken, options) {
|
6521
6631
|
return __awaiter(this, void 0, void 0, function* () {
|
6522
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegments(nextToken, search, options);
|
6632
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSegments(nextToken, search, prevToken, options);
|
6523
6633
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6524
6634
|
});
|
6525
6635
|
},
|
@@ -6557,11 +6667,12 @@ export const SegmentApiFactory = function (configuration, basePath, axios) {
|
|
6557
6667
|
* @summary Method returns segments list.
|
6558
6668
|
* @param {string} [nextToken]
|
6559
6669
|
* @param {string} [search] search string
|
6670
|
+
* @param {string} [prevToken]
|
6560
6671
|
* @param {*} [options] Override http request option.
|
6561
6672
|
* @throws {RequiredError}
|
6562
6673
|
*/
|
6563
|
-
listSegments(nextToken, search, options) {
|
6564
|
-
return localVarFp.listSegments(nextToken, search, options).then((request) => request(axios, basePath));
|
6674
|
+
listSegments(nextToken, search, prevToken, options) {
|
6675
|
+
return localVarFp.listSegments(nextToken, search, prevToken, options).then((request) => request(axios, basePath));
|
6565
6676
|
},
|
6566
6677
|
};
|
6567
6678
|
};
|
@@ -6599,12 +6710,13 @@ export class SegmentApi extends BaseAPI {
|
|
6599
6710
|
* @summary Method returns segments list.
|
6600
6711
|
* @param {string} [nextToken]
|
6601
6712
|
* @param {string} [search] search string
|
6713
|
+
* @param {string} [prevToken]
|
6602
6714
|
* @param {*} [options] Override http request option.
|
6603
6715
|
* @throws {RequiredError}
|
6604
6716
|
* @memberof SegmentApi
|
6605
6717
|
*/
|
6606
|
-
listSegments(nextToken, search, options) {
|
6607
|
-
return SegmentApiFp(this.configuration).listSegments(nextToken, search, options).then((request) => request(this.axios, this.basePath));
|
6718
|
+
listSegments(nextToken, search, prevToken, options) {
|
6719
|
+
return SegmentApiFp(this.configuration).listSegments(nextToken, search, prevToken, options).then((request) => request(this.axios, this.basePath));
|
6608
6720
|
}
|
6609
6721
|
}
|
6610
6722
|
/**
|
@@ -7095,13 +7207,14 @@ export const TransactionApiAxiosParamCreator = function (configuration) {
|
|
7095
7207
|
/**
|
7096
7208
|
* List existing transactions
|
7097
7209
|
* @summary List existing transactions
|
7098
|
-
* @param {string} [
|
7210
|
+
* @param {string} [nextToken] This is the pagination token
|
7099
7211
|
* @param {Array<string>} [clientIDs] This is the client IDs to filter by
|
7100
7212
|
* @param {Array<string>} [userIDs] This is the user ID
|
7213
|
+
* @param {string} [prevToken] This is the pagination token
|
7101
7214
|
* @param {*} [options] Override http request option.
|
7102
7215
|
* @throws {RequiredError}
|
7103
7216
|
*/
|
7104
|
-
listTransactions: (
|
7217
|
+
listTransactions: (nextToken, clientIDs, userIDs, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
7105
7218
|
const localVarPath = `/admins/transactions`;
|
7106
7219
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7107
7220
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -7115,8 +7228,8 @@ export const TransactionApiAxiosParamCreator = function (configuration) {
|
|
7115
7228
|
// authentication systemJWT required
|
7116
7229
|
// http bearer authentication required
|
7117
7230
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
7118
|
-
if (
|
7119
|
-
localVarQueryParameter['
|
7231
|
+
if (nextToken !== undefined) {
|
7232
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
7120
7233
|
}
|
7121
7234
|
if (clientIDs) {
|
7122
7235
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
@@ -7124,6 +7237,9 @@ export const TransactionApiAxiosParamCreator = function (configuration) {
|
|
7124
7237
|
if (userIDs) {
|
7125
7238
|
localVarQueryParameter['userIDs'] = userIDs;
|
7126
7239
|
}
|
7240
|
+
if (prevToken !== undefined) {
|
7241
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
7242
|
+
}
|
7127
7243
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
7128
7244
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
7129
7245
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -7135,12 +7251,13 @@ export const TransactionApiAxiosParamCreator = function (configuration) {
|
|
7135
7251
|
/**
|
7136
7252
|
* List existing transactions
|
7137
7253
|
* @summary List existing transactions for users
|
7138
|
-
* @param {string} [
|
7254
|
+
* @param {string} [nextToken] This is the pagination token
|
7139
7255
|
* @param {Array<string>} [userIDs] This is the user ID
|
7256
|
+
* @param {string} [prevToken] This is the pagination token
|
7140
7257
|
* @param {*} [options] Override http request option.
|
7141
7258
|
* @throws {RequiredError}
|
7142
7259
|
*/
|
7143
|
-
listUserTransactions: (
|
7260
|
+
listUserTransactions: (nextToken, userIDs, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
7144
7261
|
const localVarPath = `/users/transactions`;
|
7145
7262
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7146
7263
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -7154,12 +7271,15 @@ export const TransactionApiAxiosParamCreator = function (configuration) {
|
|
7154
7271
|
// authentication customerJWT required
|
7155
7272
|
// http bearer authentication required
|
7156
7273
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
7157
|
-
if (
|
7158
|
-
localVarQueryParameter['
|
7274
|
+
if (nextToken !== undefined) {
|
7275
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
7159
7276
|
}
|
7160
7277
|
if (userIDs) {
|
7161
7278
|
localVarQueryParameter['userIDs'] = userIDs;
|
7162
7279
|
}
|
7280
|
+
if (prevToken !== undefined) {
|
7281
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
7282
|
+
}
|
7163
7283
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
7164
7284
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
7165
7285
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -7180,29 +7300,31 @@ export const TransactionApiFp = function (configuration) {
|
|
7180
7300
|
/**
|
7181
7301
|
* List existing transactions
|
7182
7302
|
* @summary List existing transactions
|
7183
|
-
* @param {string} [
|
7303
|
+
* @param {string} [nextToken] This is the pagination token
|
7184
7304
|
* @param {Array<string>} [clientIDs] This is the client IDs to filter by
|
7185
7305
|
* @param {Array<string>} [userIDs] This is the user ID
|
7306
|
+
* @param {string} [prevToken] This is the pagination token
|
7186
7307
|
* @param {*} [options] Override http request option.
|
7187
7308
|
* @throws {RequiredError}
|
7188
7309
|
*/
|
7189
|
-
listTransactions(
|
7310
|
+
listTransactions(nextToken, clientIDs, userIDs, prevToken, options) {
|
7190
7311
|
return __awaiter(this, void 0, void 0, function* () {
|
7191
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTransactions(
|
7312
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTransactions(nextToken, clientIDs, userIDs, prevToken, options);
|
7192
7313
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7193
7314
|
});
|
7194
7315
|
},
|
7195
7316
|
/**
|
7196
7317
|
* List existing transactions
|
7197
7318
|
* @summary List existing transactions for users
|
7198
|
-
* @param {string} [
|
7319
|
+
* @param {string} [nextToken] This is the pagination token
|
7199
7320
|
* @param {Array<string>} [userIDs] This is the user ID
|
7321
|
+
* @param {string} [prevToken] This is the pagination token
|
7200
7322
|
* @param {*} [options] Override http request option.
|
7201
7323
|
* @throws {RequiredError}
|
7202
7324
|
*/
|
7203
|
-
listUserTransactions(
|
7325
|
+
listUserTransactions(nextToken, userIDs, prevToken, options) {
|
7204
7326
|
return __awaiter(this, void 0, void 0, function* () {
|
7205
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserTransactions(
|
7327
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserTransactions(nextToken, userIDs, prevToken, options);
|
7206
7328
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7207
7329
|
});
|
7208
7330
|
},
|
@@ -7218,25 +7340,27 @@ export const TransactionApiFactory = function (configuration, basePath, axios) {
|
|
7218
7340
|
/**
|
7219
7341
|
* List existing transactions
|
7220
7342
|
* @summary List existing transactions
|
7221
|
-
* @param {string} [
|
7343
|
+
* @param {string} [nextToken] This is the pagination token
|
7222
7344
|
* @param {Array<string>} [clientIDs] This is the client IDs to filter by
|
7223
7345
|
* @param {Array<string>} [userIDs] This is the user ID
|
7346
|
+
* @param {string} [prevToken] This is the pagination token
|
7224
7347
|
* @param {*} [options] Override http request option.
|
7225
7348
|
* @throws {RequiredError}
|
7226
7349
|
*/
|
7227
|
-
listTransactions(
|
7228
|
-
return localVarFp.listTransactions(
|
7350
|
+
listTransactions(nextToken, clientIDs, userIDs, prevToken, options) {
|
7351
|
+
return localVarFp.listTransactions(nextToken, clientIDs, userIDs, prevToken, options).then((request) => request(axios, basePath));
|
7229
7352
|
},
|
7230
7353
|
/**
|
7231
7354
|
* List existing transactions
|
7232
7355
|
* @summary List existing transactions for users
|
7233
|
-
* @param {string} [
|
7356
|
+
* @param {string} [nextToken] This is the pagination token
|
7234
7357
|
* @param {Array<string>} [userIDs] This is the user ID
|
7358
|
+
* @param {string} [prevToken] This is the pagination token
|
7235
7359
|
* @param {*} [options] Override http request option.
|
7236
7360
|
* @throws {RequiredError}
|
7237
7361
|
*/
|
7238
|
-
listUserTransactions(
|
7239
|
-
return localVarFp.listUserTransactions(
|
7362
|
+
listUserTransactions(nextToken, userIDs, prevToken, options) {
|
7363
|
+
return localVarFp.listUserTransactions(nextToken, userIDs, prevToken, options).then((request) => request(axios, basePath));
|
7240
7364
|
},
|
7241
7365
|
};
|
7242
7366
|
};
|
@@ -7250,27 +7374,29 @@ export class TransactionApi extends BaseAPI {
|
|
7250
7374
|
/**
|
7251
7375
|
* List existing transactions
|
7252
7376
|
* @summary List existing transactions
|
7253
|
-
* @param {string} [
|
7377
|
+
* @param {string} [nextToken] This is the pagination token
|
7254
7378
|
* @param {Array<string>} [clientIDs] This is the client IDs to filter by
|
7255
7379
|
* @param {Array<string>} [userIDs] This is the user ID
|
7380
|
+
* @param {string} [prevToken] This is the pagination token
|
7256
7381
|
* @param {*} [options] Override http request option.
|
7257
7382
|
* @throws {RequiredError}
|
7258
7383
|
* @memberof TransactionApi
|
7259
7384
|
*/
|
7260
|
-
listTransactions(
|
7261
|
-
return TransactionApiFp(this.configuration).listTransactions(
|
7385
|
+
listTransactions(nextToken, clientIDs, userIDs, prevToken, options) {
|
7386
|
+
return TransactionApiFp(this.configuration).listTransactions(nextToken, clientIDs, userIDs, prevToken, options).then((request) => request(this.axios, this.basePath));
|
7262
7387
|
}
|
7263
7388
|
/**
|
7264
7389
|
* List existing transactions
|
7265
7390
|
* @summary List existing transactions for users
|
7266
|
-
* @param {string} [
|
7391
|
+
* @param {string} [nextToken] This is the pagination token
|
7267
7392
|
* @param {Array<string>} [userIDs] This is the user ID
|
7393
|
+
* @param {string} [prevToken] This is the pagination token
|
7268
7394
|
* @param {*} [options] Override http request option.
|
7269
7395
|
* @throws {RequiredError}
|
7270
7396
|
* @memberof TransactionApi
|
7271
7397
|
*/
|
7272
|
-
listUserTransactions(
|
7273
|
-
return TransactionApiFp(this.configuration).listUserTransactions(
|
7398
|
+
listUserTransactions(nextToken, userIDs, prevToken, options) {
|
7399
|
+
return TransactionApiFp(this.configuration).listUserTransactions(nextToken, userIDs, prevToken, options).then((request) => request(this.axios, this.basePath));
|
7274
7400
|
}
|
7275
7401
|
}
|
7276
7402
|
/**
|
@@ -7380,10 +7506,11 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
7380
7506
|
* @param {string} [nextToken] This is the pagination token
|
7381
7507
|
* @param {string} [search] search string
|
7382
7508
|
* @param {Array<string>} [userIDs] user ids to filter by
|
7509
|
+
* @param {string} [prevToken] This is the pagination token
|
7383
7510
|
* @param {*} [options] Override http request option.
|
7384
7511
|
* @throws {RequiredError}
|
7385
7512
|
*/
|
7386
|
-
listCustomerUsers: (nextToken, search, userIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
7513
|
+
listCustomerUsers: (nextToken, search, userIDs, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
7387
7514
|
const localVarPath = `/users`;
|
7388
7515
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7389
7516
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -7406,6 +7533,9 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
7406
7533
|
if (userIDs) {
|
7407
7534
|
localVarQueryParameter['userIDs'] = userIDs;
|
7408
7535
|
}
|
7536
|
+
if (prevToken !== undefined) {
|
7537
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
7538
|
+
}
|
7409
7539
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
7410
7540
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
7411
7541
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -7423,10 +7553,11 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
7423
7553
|
* @param {Array<string>} [clientIDs] client IDs to filter by
|
7424
7554
|
* @param {Array<string>} [userIDs] user ids to filter by
|
7425
7555
|
* @param {UserSource} [source] source to filter by
|
7556
|
+
* @param {string} [prevToken] This is the pagination token
|
7426
7557
|
* @param {*} [options] Override http request option.
|
7427
7558
|
* @throws {RequiredError}
|
7428
7559
|
*/
|
7429
|
-
listUsers: (nextToken, role, search, clientIDs, userIDs, source, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
7560
|
+
listUsers: (nextToken, role, search, clientIDs, userIDs, source, prevToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
7430
7561
|
const localVarPath = `/admins/users`;
|
7431
7562
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7432
7563
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -7458,6 +7589,9 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
7458
7589
|
if (source !== undefined) {
|
7459
7590
|
localVarQueryParameter['source'] = source;
|
7460
7591
|
}
|
7592
|
+
if (prevToken !== undefined) {
|
7593
|
+
localVarQueryParameter['prevToken'] = prevToken;
|
7594
|
+
}
|
7461
7595
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
7462
7596
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
7463
7597
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -7519,12 +7653,13 @@ export const UserApiFp = function (configuration) {
|
|
7519
7653
|
* @param {string} [nextToken] This is the pagination token
|
7520
7654
|
* @param {string} [search] search string
|
7521
7655
|
* @param {Array<string>} [userIDs] user ids to filter by
|
7656
|
+
* @param {string} [prevToken] This is the pagination token
|
7522
7657
|
* @param {*} [options] Override http request option.
|
7523
7658
|
* @throws {RequiredError}
|
7524
7659
|
*/
|
7525
|
-
listCustomerUsers(nextToken, search, userIDs, options) {
|
7660
|
+
listCustomerUsers(nextToken, search, userIDs, prevToken, options) {
|
7526
7661
|
return __awaiter(this, void 0, void 0, function* () {
|
7527
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomerUsers(nextToken, search, userIDs, options);
|
7662
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomerUsers(nextToken, search, userIDs, prevToken, options);
|
7528
7663
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7529
7664
|
});
|
7530
7665
|
},
|
@@ -7537,12 +7672,13 @@ export const UserApiFp = function (configuration) {
|
|
7537
7672
|
* @param {Array<string>} [clientIDs] client IDs to filter by
|
7538
7673
|
* @param {Array<string>} [userIDs] user ids to filter by
|
7539
7674
|
* @param {UserSource} [source] source to filter by
|
7675
|
+
* @param {string} [prevToken] This is the pagination token
|
7540
7676
|
* @param {*} [options] Override http request option.
|
7541
7677
|
* @throws {RequiredError}
|
7542
7678
|
*/
|
7543
|
-
listUsers(nextToken, role, search, clientIDs, userIDs, source, options) {
|
7679
|
+
listUsers(nextToken, role, search, clientIDs, userIDs, source, prevToken, options) {
|
7544
7680
|
return __awaiter(this, void 0, void 0, function* () {
|
7545
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(nextToken, role, search, clientIDs, userIDs, source, options);
|
7681
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(nextToken, role, search, clientIDs, userIDs, source, prevToken, options);
|
7546
7682
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7547
7683
|
});
|
7548
7684
|
},
|
@@ -7590,11 +7726,12 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
7590
7726
|
* @param {string} [nextToken] This is the pagination token
|
7591
7727
|
* @param {string} [search] search string
|
7592
7728
|
* @param {Array<string>} [userIDs] user ids to filter by
|
7729
|
+
* @param {string} [prevToken] This is the pagination token
|
7593
7730
|
* @param {*} [options] Override http request option.
|
7594
7731
|
* @throws {RequiredError}
|
7595
7732
|
*/
|
7596
|
-
listCustomerUsers(nextToken, search, userIDs, options) {
|
7597
|
-
return localVarFp.listCustomerUsers(nextToken, search, userIDs, options).then((request) => request(axios, basePath));
|
7733
|
+
listCustomerUsers(nextToken, search, userIDs, prevToken, options) {
|
7734
|
+
return localVarFp.listCustomerUsers(nextToken, search, userIDs, prevToken, options).then((request) => request(axios, basePath));
|
7598
7735
|
},
|
7599
7736
|
/**
|
7600
7737
|
* List all users
|
@@ -7605,11 +7742,12 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
7605
7742
|
* @param {Array<string>} [clientIDs] client IDs to filter by
|
7606
7743
|
* @param {Array<string>} [userIDs] user ids to filter by
|
7607
7744
|
* @param {UserSource} [source] source to filter by
|
7745
|
+
* @param {string} [prevToken] This is the pagination token
|
7608
7746
|
* @param {*} [options] Override http request option.
|
7609
7747
|
* @throws {RequiredError}
|
7610
7748
|
*/
|
7611
|
-
listUsers(nextToken, role, search, clientIDs, userIDs, source, options) {
|
7612
|
-
return localVarFp.listUsers(nextToken, role, search, clientIDs, userIDs, source, options).then((request) => request(axios, basePath));
|
7749
|
+
listUsers(nextToken, role, search, clientIDs, userIDs, source, prevToken, options) {
|
7750
|
+
return localVarFp.listUsers(nextToken, role, search, clientIDs, userIDs, source, prevToken, options).then((request) => request(axios, basePath));
|
7613
7751
|
},
|
7614
7752
|
};
|
7615
7753
|
};
|
@@ -7658,12 +7796,13 @@ export class UserApi extends BaseAPI {
|
|
7658
7796
|
* @param {string} [nextToken] This is the pagination token
|
7659
7797
|
* @param {string} [search] search string
|
7660
7798
|
* @param {Array<string>} [userIDs] user ids to filter by
|
7799
|
+
* @param {string} [prevToken] This is the pagination token
|
7661
7800
|
* @param {*} [options] Override http request option.
|
7662
7801
|
* @throws {RequiredError}
|
7663
7802
|
* @memberof UserApi
|
7664
7803
|
*/
|
7665
|
-
listCustomerUsers(nextToken, search, userIDs, options) {
|
7666
|
-
return UserApiFp(this.configuration).listCustomerUsers(nextToken, search, userIDs, options).then((request) => request(this.axios, this.basePath));
|
7804
|
+
listCustomerUsers(nextToken, search, userIDs, prevToken, options) {
|
7805
|
+
return UserApiFp(this.configuration).listCustomerUsers(nextToken, search, userIDs, prevToken, options).then((request) => request(this.axios, this.basePath));
|
7667
7806
|
}
|
7668
7807
|
/**
|
7669
7808
|
* List all users
|
@@ -7674,11 +7813,12 @@ export class UserApi extends BaseAPI {
|
|
7674
7813
|
* @param {Array<string>} [clientIDs] client IDs to filter by
|
7675
7814
|
* @param {Array<string>} [userIDs] user ids to filter by
|
7676
7815
|
* @param {UserSource} [source] source to filter by
|
7816
|
+
* @param {string} [prevToken] This is the pagination token
|
7677
7817
|
* @param {*} [options] Override http request option.
|
7678
7818
|
* @throws {RequiredError}
|
7679
7819
|
* @memberof UserApi
|
7680
7820
|
*/
|
7681
|
-
listUsers(nextToken, role, search, clientIDs, userIDs, source, options) {
|
7682
|
-
return UserApiFp(this.configuration).listUsers(nextToken, role, search, clientIDs, userIDs, source, options).then((request) => request(this.axios, this.basePath));
|
7821
|
+
listUsers(nextToken, role, search, clientIDs, userIDs, source, prevToken, options) {
|
7822
|
+
return UserApiFp(this.configuration).listUsers(nextToken, role, search, clientIDs, userIDs, source, prevToken, options).then((request) => request(this.axios, this.basePath));
|
7683
7823
|
}
|
7684
7824
|
}
|