flexinet-api 0.0.292-prerelease0 → 0.0.318-prerelease0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +715 -6
- package/dist/api.d.ts +399 -0
- package/dist/api.js +551 -6
- package/dist/esm/api.d.ts +399 -0
- package/dist/esm/api.js +546 -5
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -501,6 +501,34 @@ export const BalanceApiAxiosParamCreator = function (configuration) {
|
|
|
501
501
|
options: localVarRequestOptions,
|
|
502
502
|
};
|
|
503
503
|
}),
|
|
504
|
+
/**
|
|
505
|
+
* Get balance for the user
|
|
506
|
+
* @summary Get balance
|
|
507
|
+
* @param {*} [options] Override http request option.
|
|
508
|
+
* @throws {RequiredError}
|
|
509
|
+
*/
|
|
510
|
+
getUserBalance: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
511
|
+
const localVarPath = `/users/balances`;
|
|
512
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
513
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
514
|
+
let baseOptions;
|
|
515
|
+
if (configuration) {
|
|
516
|
+
baseOptions = configuration.baseOptions;
|
|
517
|
+
}
|
|
518
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
519
|
+
const localVarHeaderParameter = {};
|
|
520
|
+
const localVarQueryParameter = {};
|
|
521
|
+
// authentication jwt required
|
|
522
|
+
// http bearer authentication required
|
|
523
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
524
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
525
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
526
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
527
|
+
return {
|
|
528
|
+
url: toPathString(localVarUrlObj),
|
|
529
|
+
options: localVarRequestOptions,
|
|
530
|
+
};
|
|
531
|
+
}),
|
|
504
532
|
/**
|
|
505
533
|
* Transfer balance
|
|
506
534
|
* @summary Transfer balance
|
|
@@ -588,6 +616,18 @@ export const BalanceApiFp = function (configuration) {
|
|
|
588
616
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
589
617
|
});
|
|
590
618
|
},
|
|
619
|
+
/**
|
|
620
|
+
* Get balance for the user
|
|
621
|
+
* @summary Get balance
|
|
622
|
+
* @param {*} [options] Override http request option.
|
|
623
|
+
* @throws {RequiredError}
|
|
624
|
+
*/
|
|
625
|
+
getUserBalance(options) {
|
|
626
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
627
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserBalance(options);
|
|
628
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
629
|
+
});
|
|
630
|
+
},
|
|
591
631
|
/**
|
|
592
632
|
* Transfer balance
|
|
593
633
|
* @summary Transfer balance
|
|
@@ -636,6 +676,15 @@ export const BalanceApiFactory = function (configuration, basePath, axios) {
|
|
|
636
676
|
getBalance(beneficiaryValue, kind, options) {
|
|
637
677
|
return localVarFp.getBalance(beneficiaryValue, kind, options).then((request) => request(axios, basePath));
|
|
638
678
|
},
|
|
679
|
+
/**
|
|
680
|
+
* Get balance for the user
|
|
681
|
+
* @summary Get balance
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
*/
|
|
685
|
+
getUserBalance(options) {
|
|
686
|
+
return localVarFp.getUserBalance(options).then((request) => request(axios, basePath));
|
|
687
|
+
},
|
|
639
688
|
/**
|
|
640
689
|
* Transfer balance
|
|
641
690
|
* @summary Transfer balance
|
|
@@ -679,6 +728,16 @@ export class BalanceApi extends BaseAPI {
|
|
|
679
728
|
getBalance(beneficiaryValue, kind, options) {
|
|
680
729
|
return BalanceApiFp(this.configuration).getBalance(beneficiaryValue, kind, options).then((request) => request(this.axios, this.basePath));
|
|
681
730
|
}
|
|
731
|
+
/**
|
|
732
|
+
* Get balance for the user
|
|
733
|
+
* @summary Get balance
|
|
734
|
+
* @param {*} [options] Override http request option.
|
|
735
|
+
* @throws {RequiredError}
|
|
736
|
+
* @memberof BalanceApi
|
|
737
|
+
*/
|
|
738
|
+
getUserBalance(options) {
|
|
739
|
+
return BalanceApiFp(this.configuration).getUserBalance(options).then((request) => request(this.axios, this.basePath));
|
|
740
|
+
}
|
|
682
741
|
/**
|
|
683
742
|
* Transfer balance
|
|
684
743
|
* @summary Transfer balance
|
|
@@ -1725,7 +1784,7 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
|
1725
1784
|
bulkMarkNotificationAsRead: (bulkNotificationsReadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1726
1785
|
// verify required parameter 'bulkNotificationsReadRequest' is not null or undefined
|
|
1727
1786
|
assertParamExists('bulkMarkNotificationAsRead', 'bulkNotificationsReadRequest', bulkNotificationsReadRequest);
|
|
1728
|
-
const localVarPath = `/notifications/read`;
|
|
1787
|
+
const localVarPath = `/users/notifications/read`;
|
|
1729
1788
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1730
1789
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1731
1790
|
let baseOptions;
|
|
@@ -1755,7 +1814,7 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
|
1755
1814
|
getNotification: (notificationID, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1756
1815
|
// verify required parameter 'notificationID' is not null or undefined
|
|
1757
1816
|
assertParamExists('getNotification', 'notificationID', notificationID);
|
|
1758
|
-
const localVarPath = `/notifications/{notificationID}`
|
|
1817
|
+
const localVarPath = `/users/notifications/{notificationID}`
|
|
1759
1818
|
.replace(`{${"notificationID"}}`, encodeURIComponent(String(notificationID)));
|
|
1760
1819
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1761
1820
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1783,7 +1842,7 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
|
1783
1842
|
* @throws {RequiredError}
|
|
1784
1843
|
*/
|
|
1785
1844
|
listNotifications: (nextToken, status, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1786
|
-
const localVarPath = `/notifications`;
|
|
1845
|
+
const localVarPath = `/users/notifications`;
|
|
1787
1846
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1788
1847
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1789
1848
|
let baseOptions;
|
|
@@ -1817,7 +1876,7 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
|
1817
1876
|
markNotificationAsRead: (notificationID, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1818
1877
|
// verify required parameter 'notificationID' is not null or undefined
|
|
1819
1878
|
assertParamExists('markNotificationAsRead', 'notificationID', notificationID);
|
|
1820
|
-
const localVarPath = `/notifications/{notificationID}`
|
|
1879
|
+
const localVarPath = `/users/notifications/{notificationID}`
|
|
1821
1880
|
.replace(`{${"notificationID"}}`, encodeURIComponent(String(notificationID)));
|
|
1822
1881
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1823
1882
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2305,6 +2364,37 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2305
2364
|
options: localVarRequestOptions,
|
|
2306
2365
|
};
|
|
2307
2366
|
}),
|
|
2367
|
+
/**
|
|
2368
|
+
* Get a product by id
|
|
2369
|
+
* @summary Get a product by id
|
|
2370
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
2371
|
+
* @param {*} [options] Override http request option.
|
|
2372
|
+
* @throws {RequiredError}
|
|
2373
|
+
*/
|
|
2374
|
+
bulkCreateProducts: (productBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2375
|
+
const localVarPath = `/products/bulk`;
|
|
2376
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2377
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2378
|
+
let baseOptions;
|
|
2379
|
+
if (configuration) {
|
|
2380
|
+
baseOptions = configuration.baseOptions;
|
|
2381
|
+
}
|
|
2382
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2383
|
+
const localVarHeaderParameter = {};
|
|
2384
|
+
const localVarQueryParameter = {};
|
|
2385
|
+
// authentication jwt required
|
|
2386
|
+
// http bearer authentication required
|
|
2387
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2388
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2389
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2390
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2391
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2392
|
+
localVarRequestOptions.data = serializeDataIfNeeded(productBulkCreationRequest, localVarRequestOptions, configuration);
|
|
2393
|
+
return {
|
|
2394
|
+
url: toPathString(localVarUrlObj),
|
|
2395
|
+
options: localVarRequestOptions,
|
|
2396
|
+
};
|
|
2397
|
+
}),
|
|
2308
2398
|
/**
|
|
2309
2399
|
* Create a new product
|
|
2310
2400
|
* @summary Create a new product
|
|
@@ -2344,7 +2434,7 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2344
2434
|
* @throws {RequiredError}
|
|
2345
2435
|
*/
|
|
2346
2436
|
createProductRequest: (productRequestCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2347
|
-
const localVarPath = `/products/requests`;
|
|
2437
|
+
const localVarPath = `/users/products/requests`;
|
|
2348
2438
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2349
2439
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2350
2440
|
let baseOptions;
|
|
@@ -2456,6 +2546,38 @@ export const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
2456
2546
|
options: localVarRequestOptions,
|
|
2457
2547
|
};
|
|
2458
2548
|
}),
|
|
2549
|
+
/**
|
|
2550
|
+
* Get a product by id, if user is allowed to see it
|
|
2551
|
+
* @summary Get a product by id
|
|
2552
|
+
* @param {string} id The product id
|
|
2553
|
+
* @param {*} [options] Override http request option.
|
|
2554
|
+
* @throws {RequiredError}
|
|
2555
|
+
*/
|
|
2556
|
+
getUserProductById: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2557
|
+
// verify required parameter 'id' is not null or undefined
|
|
2558
|
+
assertParamExists('getUserProductById', 'id', id);
|
|
2559
|
+
const localVarPath = `/users/products/{id}`
|
|
2560
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2561
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2562
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2563
|
+
let baseOptions;
|
|
2564
|
+
if (configuration) {
|
|
2565
|
+
baseOptions = configuration.baseOptions;
|
|
2566
|
+
}
|
|
2567
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2568
|
+
const localVarHeaderParameter = {};
|
|
2569
|
+
const localVarQueryParameter = {};
|
|
2570
|
+
// authentication jwt required
|
|
2571
|
+
// http bearer authentication required
|
|
2572
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2573
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2574
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2575
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2576
|
+
return {
|
|
2577
|
+
url: toPathString(localVarUrlObj),
|
|
2578
|
+
options: localVarRequestOptions,
|
|
2579
|
+
};
|
|
2580
|
+
}),
|
|
2459
2581
|
/**
|
|
2460
2582
|
* List existing product requests
|
|
2461
2583
|
* @summary List existing product requests
|
|
@@ -2614,6 +2736,19 @@ export const ProductApiFp = function (configuration) {
|
|
|
2614
2736
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2615
2737
|
});
|
|
2616
2738
|
},
|
|
2739
|
+
/**
|
|
2740
|
+
* Get a product by id
|
|
2741
|
+
* @summary Get a product by id
|
|
2742
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
2743
|
+
* @param {*} [options] Override http request option.
|
|
2744
|
+
* @throws {RequiredError}
|
|
2745
|
+
*/
|
|
2746
|
+
bulkCreateProducts(productBulkCreationRequest, options) {
|
|
2747
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2748
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreateProducts(productBulkCreationRequest, options);
|
|
2749
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2750
|
+
});
|
|
2751
|
+
},
|
|
2617
2752
|
/**
|
|
2618
2753
|
* Create a new product
|
|
2619
2754
|
* @summary Create a new product
|
|
@@ -2678,6 +2813,19 @@ export const ProductApiFp = function (configuration) {
|
|
|
2678
2813
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2679
2814
|
});
|
|
2680
2815
|
},
|
|
2816
|
+
/**
|
|
2817
|
+
* Get a product by id, if user is allowed to see it
|
|
2818
|
+
* @summary Get a product by id
|
|
2819
|
+
* @param {string} id The product id
|
|
2820
|
+
* @param {*} [options] Override http request option.
|
|
2821
|
+
* @throws {RequiredError}
|
|
2822
|
+
*/
|
|
2823
|
+
getUserProductById(id, options) {
|
|
2824
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2825
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProductById(id, options);
|
|
2826
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2827
|
+
});
|
|
2828
|
+
},
|
|
2681
2829
|
/**
|
|
2682
2830
|
* List existing product requests
|
|
2683
2831
|
* @summary List existing product requests
|
|
@@ -2747,6 +2895,16 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2747
2895
|
approveProduct(id, productRequestApprovalRequest, options) {
|
|
2748
2896
|
return localVarFp.approveProduct(id, productRequestApprovalRequest, options).then((request) => request(axios, basePath));
|
|
2749
2897
|
},
|
|
2898
|
+
/**
|
|
2899
|
+
* Get a product by id
|
|
2900
|
+
* @summary Get a product by id
|
|
2901
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
2902
|
+
* @param {*} [options] Override http request option.
|
|
2903
|
+
* @throws {RequiredError}
|
|
2904
|
+
*/
|
|
2905
|
+
bulkCreateProducts(productBulkCreationRequest, options) {
|
|
2906
|
+
return localVarFp.bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
2907
|
+
},
|
|
2750
2908
|
/**
|
|
2751
2909
|
* Create a new product
|
|
2752
2910
|
* @summary Create a new product
|
|
@@ -2796,6 +2954,16 @@ export const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
2796
2954
|
getProductRequestById(id, options) {
|
|
2797
2955
|
return localVarFp.getProductRequestById(id, options).then((request) => request(axios, basePath));
|
|
2798
2956
|
},
|
|
2957
|
+
/**
|
|
2958
|
+
* Get a product by id, if user is allowed to see it
|
|
2959
|
+
* @summary Get a product by id
|
|
2960
|
+
* @param {string} id The product id
|
|
2961
|
+
* @param {*} [options] Override http request option.
|
|
2962
|
+
* @throws {RequiredError}
|
|
2963
|
+
*/
|
|
2964
|
+
getUserProductById(id, options) {
|
|
2965
|
+
return localVarFp.getUserProductById(id, options).then((request) => request(axios, basePath));
|
|
2966
|
+
},
|
|
2799
2967
|
/**
|
|
2800
2968
|
* List existing product requests
|
|
2801
2969
|
* @summary List existing product requests
|
|
@@ -2857,6 +3025,17 @@ export class ProductApi extends BaseAPI {
|
|
|
2857
3025
|
approveProduct(id, productRequestApprovalRequest, options) {
|
|
2858
3026
|
return ProductApiFp(this.configuration).approveProduct(id, productRequestApprovalRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2859
3027
|
}
|
|
3028
|
+
/**
|
|
3029
|
+
* Get a product by id
|
|
3030
|
+
* @summary Get a product by id
|
|
3031
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
3032
|
+
* @param {*} [options] Override http request option.
|
|
3033
|
+
* @throws {RequiredError}
|
|
3034
|
+
* @memberof ProductApi
|
|
3035
|
+
*/
|
|
3036
|
+
bulkCreateProducts(productBulkCreationRequest, options) {
|
|
3037
|
+
return ProductApiFp(this.configuration).bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3038
|
+
}
|
|
2860
3039
|
/**
|
|
2861
3040
|
* Create a new product
|
|
2862
3041
|
* @summary Create a new product
|
|
@@ -2911,6 +3090,17 @@ export class ProductApi extends BaseAPI {
|
|
|
2911
3090
|
getProductRequestById(id, options) {
|
|
2912
3091
|
return ProductApiFp(this.configuration).getProductRequestById(id, options).then((request) => request(this.axios, this.basePath));
|
|
2913
3092
|
}
|
|
3093
|
+
/**
|
|
3094
|
+
* Get a product by id, if user is allowed to see it
|
|
3095
|
+
* @summary Get a product by id
|
|
3096
|
+
* @param {string} id The product id
|
|
3097
|
+
* @param {*} [options] Override http request option.
|
|
3098
|
+
* @throws {RequiredError}
|
|
3099
|
+
* @memberof ProductApi
|
|
3100
|
+
*/
|
|
3101
|
+
getUserProductById(id, options) {
|
|
3102
|
+
return ProductApiFp(this.configuration).getUserProductById(id, options).then((request) => request(this.axios, this.basePath));
|
|
3103
|
+
}
|
|
2914
3104
|
/**
|
|
2915
3105
|
* List existing product requests
|
|
2916
3106
|
* @summary List existing product requests
|
|
@@ -3013,6 +3203,46 @@ export const ProgressApiAxiosParamCreator = function (configuration) {
|
|
|
3013
3203
|
options: localVarRequestOptions,
|
|
3014
3204
|
};
|
|
3015
3205
|
}),
|
|
3206
|
+
/**
|
|
3207
|
+
* List users progress of a promotion
|
|
3208
|
+
* @summary List promotion\'s progress
|
|
3209
|
+
* @param {string} id Promotion ID
|
|
3210
|
+
* @param {number} [periodID] Period ID
|
|
3211
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3212
|
+
* @param {*} [options] Override http request option.
|
|
3213
|
+
* @throws {RequiredError}
|
|
3214
|
+
*/
|
|
3215
|
+
listUserProgress: (id, periodID, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3216
|
+
// verify required parameter 'id' is not null or undefined
|
|
3217
|
+
assertParamExists('listUserProgress', 'id', id);
|
|
3218
|
+
const localVarPath = `/users/promotions/{id}/progress`
|
|
3219
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3220
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3221
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3222
|
+
let baseOptions;
|
|
3223
|
+
if (configuration) {
|
|
3224
|
+
baseOptions = configuration.baseOptions;
|
|
3225
|
+
}
|
|
3226
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3227
|
+
const localVarHeaderParameter = {};
|
|
3228
|
+
const localVarQueryParameter = {};
|
|
3229
|
+
// authentication jwt required
|
|
3230
|
+
// http bearer authentication required
|
|
3231
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3232
|
+
if (periodID !== undefined) {
|
|
3233
|
+
localVarQueryParameter['periodID'] = periodID;
|
|
3234
|
+
}
|
|
3235
|
+
if (nextToken !== undefined) {
|
|
3236
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
3237
|
+
}
|
|
3238
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3239
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3240
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3241
|
+
return {
|
|
3242
|
+
url: toPathString(localVarUrlObj),
|
|
3243
|
+
options: localVarRequestOptions,
|
|
3244
|
+
};
|
|
3245
|
+
}),
|
|
3016
3246
|
};
|
|
3017
3247
|
};
|
|
3018
3248
|
/**
|
|
@@ -3040,6 +3270,21 @@ export const ProgressApiFp = function (configuration) {
|
|
|
3040
3270
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3041
3271
|
});
|
|
3042
3272
|
},
|
|
3273
|
+
/**
|
|
3274
|
+
* List users progress of a promotion
|
|
3275
|
+
* @summary List promotion\'s progress
|
|
3276
|
+
* @param {string} id Promotion ID
|
|
3277
|
+
* @param {number} [periodID] Period ID
|
|
3278
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3279
|
+
* @param {*} [options] Override http request option.
|
|
3280
|
+
* @throws {RequiredError}
|
|
3281
|
+
*/
|
|
3282
|
+
listUserProgress(id, periodID, nextToken, options) {
|
|
3283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3284
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProgress(id, periodID, nextToken, options);
|
|
3285
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3286
|
+
});
|
|
3287
|
+
},
|
|
3043
3288
|
};
|
|
3044
3289
|
};
|
|
3045
3290
|
/**
|
|
@@ -3064,6 +3309,18 @@ export const ProgressApiFactory = function (configuration, basePath, axios) {
|
|
|
3064
3309
|
listProgress(id, periodID, userID, clientID, interval, nextToken, options) {
|
|
3065
3310
|
return localVarFp.listProgress(id, periodID, userID, clientID, interval, nextToken, options).then((request) => request(axios, basePath));
|
|
3066
3311
|
},
|
|
3312
|
+
/**
|
|
3313
|
+
* List users progress of a promotion
|
|
3314
|
+
* @summary List promotion\'s progress
|
|
3315
|
+
* @param {string} id Promotion ID
|
|
3316
|
+
* @param {number} [periodID] Period ID
|
|
3317
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3318
|
+
* @param {*} [options] Override http request option.
|
|
3319
|
+
* @throws {RequiredError}
|
|
3320
|
+
*/
|
|
3321
|
+
listUserProgress(id, periodID, nextToken, options) {
|
|
3322
|
+
return localVarFp.listUserProgress(id, periodID, nextToken, options).then((request) => request(axios, basePath));
|
|
3323
|
+
},
|
|
3067
3324
|
};
|
|
3068
3325
|
};
|
|
3069
3326
|
/**
|
|
@@ -3089,6 +3346,19 @@ export class ProgressApi extends BaseAPI {
|
|
|
3089
3346
|
listProgress(id, periodID, userID, clientID, interval, nextToken, options) {
|
|
3090
3347
|
return ProgressApiFp(this.configuration).listProgress(id, periodID, userID, clientID, interval, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
3091
3348
|
}
|
|
3349
|
+
/**
|
|
3350
|
+
* List users progress of a promotion
|
|
3351
|
+
* @summary List promotion\'s progress
|
|
3352
|
+
* @param {string} id Promotion ID
|
|
3353
|
+
* @param {number} [periodID] Period ID
|
|
3354
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3355
|
+
* @param {*} [options] Override http request option.
|
|
3356
|
+
* @throws {RequiredError}
|
|
3357
|
+
* @memberof ProgressApi
|
|
3358
|
+
*/
|
|
3359
|
+
listUserProgress(id, periodID, nextToken, options) {
|
|
3360
|
+
return ProgressApiFp(this.configuration).listUserProgress(id, periodID, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
3361
|
+
}
|
|
3092
3362
|
}
|
|
3093
3363
|
/**
|
|
3094
3364
|
* @export
|
|
@@ -3329,6 +3599,38 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3329
3599
|
options: localVarRequestOptions,
|
|
3330
3600
|
};
|
|
3331
3601
|
}),
|
|
3602
|
+
/**
|
|
3603
|
+
* Get promotion by id, if user is allowed to see it
|
|
3604
|
+
* @summary Get promotion
|
|
3605
|
+
* @param {string} id Promotion id
|
|
3606
|
+
* @param {*} [options] Override http request option.
|
|
3607
|
+
* @throws {RequiredError}
|
|
3608
|
+
*/
|
|
3609
|
+
getUserPromotion: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3610
|
+
// verify required parameter 'id' is not null or undefined
|
|
3611
|
+
assertParamExists('getUserPromotion', 'id', id);
|
|
3612
|
+
const localVarPath = `/users/promotions/{id}`
|
|
3613
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3614
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3615
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3616
|
+
let baseOptions;
|
|
3617
|
+
if (configuration) {
|
|
3618
|
+
baseOptions = configuration.baseOptions;
|
|
3619
|
+
}
|
|
3620
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3621
|
+
const localVarHeaderParameter = {};
|
|
3622
|
+
const localVarQueryParameter = {};
|
|
3623
|
+
// authentication jwt required
|
|
3624
|
+
// http bearer authentication required
|
|
3625
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3626
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3627
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3628
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3629
|
+
return {
|
|
3630
|
+
url: toPathString(localVarUrlObj),
|
|
3631
|
+
options: localVarRequestOptions,
|
|
3632
|
+
};
|
|
3633
|
+
}),
|
|
3332
3634
|
/**
|
|
3333
3635
|
* List all promotions
|
|
3334
3636
|
* @summary List promotions
|
|
@@ -3397,6 +3699,58 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
|
|
|
3397
3699
|
options: localVarRequestOptions,
|
|
3398
3700
|
};
|
|
3399
3701
|
}),
|
|
3702
|
+
/**
|
|
3703
|
+
* List users promotions
|
|
3704
|
+
* @summary List promotions
|
|
3705
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3706
|
+
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
3707
|
+
* @param {string} [startAtAfter] start time after time
|
|
3708
|
+
* @param {string} [endAtBefore] end time before time
|
|
3709
|
+
* @param {string} [search] search by name or description
|
|
3710
|
+
* @param {*} [options] Override http request option.
|
|
3711
|
+
* @throws {RequiredError}
|
|
3712
|
+
*/
|
|
3713
|
+
listUserPromotions: (nextToken, tags, startAtAfter, endAtBefore, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3714
|
+
const localVarPath = `/users/promotions`;
|
|
3715
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3716
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3717
|
+
let baseOptions;
|
|
3718
|
+
if (configuration) {
|
|
3719
|
+
baseOptions = configuration.baseOptions;
|
|
3720
|
+
}
|
|
3721
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3722
|
+
const localVarHeaderParameter = {};
|
|
3723
|
+
const localVarQueryParameter = {};
|
|
3724
|
+
// authentication jwt required
|
|
3725
|
+
// http bearer authentication required
|
|
3726
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3727
|
+
if (nextToken !== undefined) {
|
|
3728
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
3729
|
+
}
|
|
3730
|
+
if (tags !== undefined) {
|
|
3731
|
+
localVarQueryParameter['tags'] = tags;
|
|
3732
|
+
}
|
|
3733
|
+
if (startAtAfter !== undefined) {
|
|
3734
|
+
localVarQueryParameter['startAtAfter'] = (startAtAfter instanceof Date) ?
|
|
3735
|
+
startAtAfter.toISOString() :
|
|
3736
|
+
startAtAfter;
|
|
3737
|
+
}
|
|
3738
|
+
if (endAtBefore !== undefined) {
|
|
3739
|
+
localVarQueryParameter['endAtBefore'] = (endAtBefore instanceof Date) ?
|
|
3740
|
+
endAtBefore.toISOString() :
|
|
3741
|
+
endAtBefore;
|
|
3742
|
+
}
|
|
3743
|
+
if (search !== undefined) {
|
|
3744
|
+
localVarQueryParameter['search'] = search;
|
|
3745
|
+
}
|
|
3746
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3747
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3748
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3749
|
+
return {
|
|
3750
|
+
url: toPathString(localVarUrlObj),
|
|
3751
|
+
options: localVarRequestOptions,
|
|
3752
|
+
};
|
|
3753
|
+
}),
|
|
3400
3754
|
/**
|
|
3401
3755
|
* Update promotion by id
|
|
3402
3756
|
* @summary Update promotion
|
|
@@ -3537,6 +3891,19 @@ export const PromotionApiFp = function (configuration) {
|
|
|
3537
3891
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3538
3892
|
});
|
|
3539
3893
|
},
|
|
3894
|
+
/**
|
|
3895
|
+
* Get promotion by id, if user is allowed to see it
|
|
3896
|
+
* @summary Get promotion
|
|
3897
|
+
* @param {string} id Promotion id
|
|
3898
|
+
* @param {*} [options] Override http request option.
|
|
3899
|
+
* @throws {RequiredError}
|
|
3900
|
+
*/
|
|
3901
|
+
getUserPromotion(id, options) {
|
|
3902
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3903
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserPromotion(id, options);
|
|
3904
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3905
|
+
});
|
|
3906
|
+
},
|
|
3540
3907
|
/**
|
|
3541
3908
|
* List all promotions
|
|
3542
3909
|
* @summary List promotions
|
|
@@ -3558,6 +3925,23 @@ export const PromotionApiFp = function (configuration) {
|
|
|
3558
3925
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3559
3926
|
});
|
|
3560
3927
|
},
|
|
3928
|
+
/**
|
|
3929
|
+
* List users promotions
|
|
3930
|
+
* @summary List promotions
|
|
3931
|
+
* @param {string} [nextToken] This is the pagination token
|
|
3932
|
+
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
3933
|
+
* @param {string} [startAtAfter] start time after time
|
|
3934
|
+
* @param {string} [endAtBefore] end time before time
|
|
3935
|
+
* @param {string} [search] search by name or description
|
|
3936
|
+
* @param {*} [options] Override http request option.
|
|
3937
|
+
* @throws {RequiredError}
|
|
3938
|
+
*/
|
|
3939
|
+
listUserPromotions(nextToken, tags, startAtAfter, endAtBefore, search, options) {
|
|
3940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3941
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startAtAfter, endAtBefore, search, options);
|
|
3942
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3943
|
+
});
|
|
3944
|
+
},
|
|
3561
3945
|
/**
|
|
3562
3946
|
* Update promotion by id
|
|
3563
3947
|
* @summary Update promotion
|
|
@@ -3654,6 +4038,16 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
3654
4038
|
getPromotion(id, options) {
|
|
3655
4039
|
return localVarFp.getPromotion(id, options).then((request) => request(axios, basePath));
|
|
3656
4040
|
},
|
|
4041
|
+
/**
|
|
4042
|
+
* Get promotion by id, if user is allowed to see it
|
|
4043
|
+
* @summary Get promotion
|
|
4044
|
+
* @param {string} id Promotion id
|
|
4045
|
+
* @param {*} [options] Override http request option.
|
|
4046
|
+
* @throws {RequiredError}
|
|
4047
|
+
*/
|
|
4048
|
+
getUserPromotion(id, options) {
|
|
4049
|
+
return localVarFp.getUserPromotion(id, options).then((request) => request(axios, basePath));
|
|
4050
|
+
},
|
|
3657
4051
|
/**
|
|
3658
4052
|
* List all promotions
|
|
3659
4053
|
* @summary List promotions
|
|
@@ -3672,6 +4066,20 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
|
|
|
3672
4066
|
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options) {
|
|
3673
4067
|
return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options).then((request) => request(axios, basePath));
|
|
3674
4068
|
},
|
|
4069
|
+
/**
|
|
4070
|
+
* List users promotions
|
|
4071
|
+
* @summary List promotions
|
|
4072
|
+
* @param {string} [nextToken] This is the pagination token
|
|
4073
|
+
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
4074
|
+
* @param {string} [startAtAfter] start time after time
|
|
4075
|
+
* @param {string} [endAtBefore] end time before time
|
|
4076
|
+
* @param {string} [search] search by name or description
|
|
4077
|
+
* @param {*} [options] Override http request option.
|
|
4078
|
+
* @throws {RequiredError}
|
|
4079
|
+
*/
|
|
4080
|
+
listUserPromotions(nextToken, tags, startAtAfter, endAtBefore, search, options) {
|
|
4081
|
+
return localVarFp.listUserPromotions(nextToken, tags, startAtAfter, endAtBefore, search, options).then((request) => request(axios, basePath));
|
|
4082
|
+
},
|
|
3675
4083
|
/**
|
|
3676
4084
|
* Update promotion by id
|
|
3677
4085
|
* @summary Update promotion
|
|
@@ -3772,6 +4180,17 @@ export class PromotionApi extends BaseAPI {
|
|
|
3772
4180
|
getPromotion(id, options) {
|
|
3773
4181
|
return PromotionApiFp(this.configuration).getPromotion(id, options).then((request) => request(this.axios, this.basePath));
|
|
3774
4182
|
}
|
|
4183
|
+
/**
|
|
4184
|
+
* Get promotion by id, if user is allowed to see it
|
|
4185
|
+
* @summary Get promotion
|
|
4186
|
+
* @param {string} id Promotion id
|
|
4187
|
+
* @param {*} [options] Override http request option.
|
|
4188
|
+
* @throws {RequiredError}
|
|
4189
|
+
* @memberof PromotionApi
|
|
4190
|
+
*/
|
|
4191
|
+
getUserPromotion(id, options) {
|
|
4192
|
+
return PromotionApiFp(this.configuration).getUserPromotion(id, options).then((request) => request(this.axios, this.basePath));
|
|
4193
|
+
}
|
|
3775
4194
|
/**
|
|
3776
4195
|
* List all promotions
|
|
3777
4196
|
* @summary List promotions
|
|
@@ -3791,6 +4210,21 @@ export class PromotionApi extends BaseAPI {
|
|
|
3791
4210
|
listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options) {
|
|
3792
4211
|
return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, clientID, search, options).then((request) => request(this.axios, this.basePath));
|
|
3793
4212
|
}
|
|
4213
|
+
/**
|
|
4214
|
+
* List users promotions
|
|
4215
|
+
* @summary List promotions
|
|
4216
|
+
* @param {string} [nextToken] This is the pagination token
|
|
4217
|
+
* @param {string} [tags] tags to filter by, format is key1=value1;key2=value2. Should be url encoded.
|
|
4218
|
+
* @param {string} [startAtAfter] start time after time
|
|
4219
|
+
* @param {string} [endAtBefore] end time before time
|
|
4220
|
+
* @param {string} [search] search by name or description
|
|
4221
|
+
* @param {*} [options] Override http request option.
|
|
4222
|
+
* @throws {RequiredError}
|
|
4223
|
+
* @memberof PromotionApi
|
|
4224
|
+
*/
|
|
4225
|
+
listUserPromotions(nextToken, tags, startAtAfter, endAtBefore, search, options) {
|
|
4226
|
+
return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startAtAfter, endAtBefore, search, options).then((request) => request(this.axios, this.basePath));
|
|
4227
|
+
}
|
|
3794
4228
|
/**
|
|
3795
4229
|
* Update promotion by id
|
|
3796
4230
|
* @summary Update promotion
|
|
@@ -3804,6 +4238,113 @@ export class PromotionApi extends BaseAPI {
|
|
|
3804
4238
|
return PromotionApiFp(this.configuration).updatePromotion(id, updatePromotionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3805
4239
|
}
|
|
3806
4240
|
}
|
|
4241
|
+
/**
|
|
4242
|
+
* RewardApi - axios parameter creator
|
|
4243
|
+
* @export
|
|
4244
|
+
*/
|
|
4245
|
+
export const RewardApiAxiosParamCreator = function (configuration) {
|
|
4246
|
+
return {
|
|
4247
|
+
/**
|
|
4248
|
+
* List existing products for the user
|
|
4249
|
+
* @summary List existing products
|
|
4250
|
+
* @param {ProductKind} [kind] The product kind
|
|
4251
|
+
* @param {string} [nextToken] This is the pagination token
|
|
4252
|
+
* @param {*} [options] Override http request option.
|
|
4253
|
+
* @throws {RequiredError}
|
|
4254
|
+
*/
|
|
4255
|
+
listUserProducts: (kind, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4256
|
+
const localVarPath = `/users/products`;
|
|
4257
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4258
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4259
|
+
let baseOptions;
|
|
4260
|
+
if (configuration) {
|
|
4261
|
+
baseOptions = configuration.baseOptions;
|
|
4262
|
+
}
|
|
4263
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4264
|
+
const localVarHeaderParameter = {};
|
|
4265
|
+
const localVarQueryParameter = {};
|
|
4266
|
+
// authentication jwt required
|
|
4267
|
+
// http bearer authentication required
|
|
4268
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4269
|
+
if (kind !== undefined) {
|
|
4270
|
+
localVarQueryParameter['kind'] = kind;
|
|
4271
|
+
}
|
|
4272
|
+
if (nextToken !== undefined) {
|
|
4273
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
4274
|
+
}
|
|
4275
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4276
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4277
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4278
|
+
return {
|
|
4279
|
+
url: toPathString(localVarUrlObj),
|
|
4280
|
+
options: localVarRequestOptions,
|
|
4281
|
+
};
|
|
4282
|
+
}),
|
|
4283
|
+
};
|
|
4284
|
+
};
|
|
4285
|
+
/**
|
|
4286
|
+
* RewardApi - functional programming interface
|
|
4287
|
+
* @export
|
|
4288
|
+
*/
|
|
4289
|
+
export const RewardApiFp = function (configuration) {
|
|
4290
|
+
const localVarAxiosParamCreator = RewardApiAxiosParamCreator(configuration);
|
|
4291
|
+
return {
|
|
4292
|
+
/**
|
|
4293
|
+
* List existing products for the user
|
|
4294
|
+
* @summary List existing products
|
|
4295
|
+
* @param {ProductKind} [kind] The product kind
|
|
4296
|
+
* @param {string} [nextToken] This is the pagination token
|
|
4297
|
+
* @param {*} [options] Override http request option.
|
|
4298
|
+
* @throws {RequiredError}
|
|
4299
|
+
*/
|
|
4300
|
+
listUserProducts(kind, nextToken, options) {
|
|
4301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4302
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserProducts(kind, nextToken, options);
|
|
4303
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4304
|
+
});
|
|
4305
|
+
},
|
|
4306
|
+
};
|
|
4307
|
+
};
|
|
4308
|
+
/**
|
|
4309
|
+
* RewardApi - factory interface
|
|
4310
|
+
* @export
|
|
4311
|
+
*/
|
|
4312
|
+
export const RewardApiFactory = function (configuration, basePath, axios) {
|
|
4313
|
+
const localVarFp = RewardApiFp(configuration);
|
|
4314
|
+
return {
|
|
4315
|
+
/**
|
|
4316
|
+
* List existing products for the user
|
|
4317
|
+
* @summary List existing products
|
|
4318
|
+
* @param {ProductKind} [kind] The product kind
|
|
4319
|
+
* @param {string} [nextToken] This is the pagination token
|
|
4320
|
+
* @param {*} [options] Override http request option.
|
|
4321
|
+
* @throws {RequiredError}
|
|
4322
|
+
*/
|
|
4323
|
+
listUserProducts(kind, nextToken, options) {
|
|
4324
|
+
return localVarFp.listUserProducts(kind, nextToken, options).then((request) => request(axios, basePath));
|
|
4325
|
+
},
|
|
4326
|
+
};
|
|
4327
|
+
};
|
|
4328
|
+
/**
|
|
4329
|
+
* RewardApi - object-oriented interface
|
|
4330
|
+
* @export
|
|
4331
|
+
* @class RewardApi
|
|
4332
|
+
* @extends {BaseAPI}
|
|
4333
|
+
*/
|
|
4334
|
+
export class RewardApi extends BaseAPI {
|
|
4335
|
+
/**
|
|
4336
|
+
* List existing products for the user
|
|
4337
|
+
* @summary List existing products
|
|
4338
|
+
* @param {ProductKind} [kind] The product kind
|
|
4339
|
+
* @param {string} [nextToken] This is the pagination token
|
|
4340
|
+
* @param {*} [options] Override http request option.
|
|
4341
|
+
* @throws {RequiredError}
|
|
4342
|
+
* @memberof RewardApi
|
|
4343
|
+
*/
|
|
4344
|
+
listUserProducts(kind, nextToken, options) {
|
|
4345
|
+
return RewardApiFp(this.configuration).listUserProducts(kind, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
4346
|
+
}
|
|
4347
|
+
}
|
|
3807
4348
|
/**
|
|
3808
4349
|
* SegmentApi - axios parameter creator
|
|
3809
4350
|
* @export
|