flexinet-api 0.0.1264-prerelease0 → 0.0.1264
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 +231 -304
- package/dist/api.d.ts +179 -235
- package/dist/api.js +91 -123
- package/dist/esm/api.d.ts +179 -235
- package/dist/esm/api.js +88 -120
- package/package.json +1 -1
package/dist/api.js
CHANGED
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
22
22
|
});
|
23
23
|
};
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
-
exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.
|
26
|
-
exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator =
|
27
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory =
|
25
|
+
exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.ReportTypesResponseTypesEnum = exports.Repetition = exports.PromotionType = exports.PromotionStatus = exports.PromotionSortByField = exports.ProgressStateAggregation = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderStatus = exports.OrderKind = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
|
26
|
+
exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = void 0;
|
27
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = void 0;
|
28
28
|
const axios_1 = require("axios");
|
29
29
|
// Some imports not used depending on template conditions
|
30
30
|
// @ts-ignore
|
@@ -115,9 +115,6 @@ exports.Locale = {
|
|
115
115
|
RoRo: 'ro-ro',
|
116
116
|
HuHu: 'hu-hu'
|
117
117
|
};
|
118
|
-
exports.MinTurnoverRestrictionKindEnum = {
|
119
|
-
MinTurnover: 'minTurnover'
|
120
|
-
};
|
121
118
|
/**
|
122
119
|
*
|
123
120
|
* @export
|
@@ -158,8 +155,7 @@ exports.NotificationStatus = {
|
|
158
155
|
*/
|
159
156
|
exports.OrderKind = {
|
160
157
|
Webshop: 'webshop',
|
161
|
-
Promotions: 'promotions'
|
162
|
-
SalesBudget: 'sales_budget'
|
158
|
+
Promotions: 'promotions'
|
163
159
|
};
|
164
160
|
/**
|
165
161
|
*
|
@@ -293,9 +289,6 @@ exports.ReportTypesResponseTypesEnum = {
|
|
293
289
|
Promotion: 'promotion',
|
294
290
|
PromotionExpanded: 'promotion_expanded'
|
295
291
|
};
|
296
|
-
exports.RequiredRestrictionKindEnum = {
|
297
|
-
Required: 'required'
|
298
|
-
};
|
299
292
|
/**
|
300
293
|
*
|
301
294
|
* @export
|
@@ -364,16 +357,6 @@ exports.TargetMu = {
|
|
364
357
|
Product: 'product',
|
365
358
|
AdditionalMu: 'additionalMU'
|
366
359
|
};
|
367
|
-
/**
|
368
|
-
*
|
369
|
-
* @export
|
370
|
-
* @enum {string}
|
371
|
-
*/
|
372
|
-
exports.TransactionCurrencyKind = {
|
373
|
-
Points: 'points',
|
374
|
-
CustomDealBudget: 'customDealBudget',
|
375
|
-
SalesBudget: 'salesBudget'
|
376
|
-
};
|
377
360
|
/**
|
378
361
|
*
|
379
362
|
* @export
|
@@ -403,8 +386,7 @@ exports.TransactionSource = {
|
|
403
386
|
Promotion: 'promotion',
|
404
387
|
Manual: 'manual',
|
405
388
|
Expiry: 'expiry',
|
406
|
-
Transfer: 'transfer'
|
407
|
-
SalesBudget: 'sales_budget'
|
389
|
+
Transfer: 'transfer'
|
408
390
|
};
|
409
391
|
/**
|
410
392
|
*
|
@@ -1039,6 +1021,37 @@ const BulkApiAxiosParamCreator = function (configuration) {
|
|
1039
1021
|
options: localVarRequestOptions,
|
1040
1022
|
};
|
1041
1023
|
}),
|
1024
|
+
/**
|
1025
|
+
* Update multiple clients
|
1026
|
+
* @summary Update multiple clients
|
1027
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1028
|
+
* @param {*} [options] Override http request option.
|
1029
|
+
* @throws {RequiredError}
|
1030
|
+
*/
|
1031
|
+
bulkUpdateClients: (clientsBulkUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1032
|
+
const localVarPath = `/admins/clients/bulk`;
|
1033
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1034
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1035
|
+
let baseOptions;
|
1036
|
+
if (configuration) {
|
1037
|
+
baseOptions = configuration.baseOptions;
|
1038
|
+
}
|
1039
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
1040
|
+
const localVarHeaderParameter = {};
|
1041
|
+
const localVarQueryParameter = {};
|
1042
|
+
// authentication systemJWT required
|
1043
|
+
// http bearer authentication required
|
1044
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
1045
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1046
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1047
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1048
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1049
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientsBulkUpdateRequest, localVarRequestOptions, configuration);
|
1050
|
+
return {
|
1051
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
1052
|
+
options: localVarRequestOptions,
|
1053
|
+
};
|
1054
|
+
}),
|
1042
1055
|
};
|
1043
1056
|
};
|
1044
1057
|
exports.BulkApiAxiosParamCreator = BulkApiAxiosParamCreator;
|
@@ -1088,6 +1101,19 @@ const BulkApiFp = function (configuration) {
|
|
1088
1101
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1089
1102
|
});
|
1090
1103
|
},
|
1104
|
+
/**
|
1105
|
+
* Update multiple clients
|
1106
|
+
* @summary Update multiple clients
|
1107
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1108
|
+
* @param {*} [options] Override http request option.
|
1109
|
+
* @throws {RequiredError}
|
1110
|
+
*/
|
1111
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1113
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
|
1114
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1115
|
+
});
|
1116
|
+
},
|
1091
1117
|
};
|
1092
1118
|
};
|
1093
1119
|
exports.BulkApiFp = BulkApiFp;
|
@@ -1128,6 +1154,16 @@ const BulkApiFactory = function (configuration, basePath, axios) {
|
|
1128
1154
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1129
1155
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
1130
1156
|
},
|
1157
|
+
/**
|
1158
|
+
* Update multiple clients
|
1159
|
+
* @summary Update multiple clients
|
1160
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1161
|
+
* @param {*} [options] Override http request option.
|
1162
|
+
* @throws {RequiredError}
|
1163
|
+
*/
|
1164
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1165
|
+
return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
|
1166
|
+
},
|
1131
1167
|
};
|
1132
1168
|
};
|
1133
1169
|
exports.BulkApiFactory = BulkApiFactory;
|
@@ -1171,6 +1207,17 @@ class BulkApi extends base_1.BaseAPI {
|
|
1171
1207
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1172
1208
|
return (0, exports.BulkApiFp)(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
1173
1209
|
}
|
1210
|
+
/**
|
1211
|
+
* Update multiple clients
|
1212
|
+
* @summary Update multiple clients
|
1213
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1214
|
+
* @param {*} [options] Override http request option.
|
1215
|
+
* @throws {RequiredError}
|
1216
|
+
* @memberof BulkApi
|
1217
|
+
*/
|
1218
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1219
|
+
return (0, exports.BulkApiFp)(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
1220
|
+
}
|
1174
1221
|
}
|
1175
1222
|
exports.BulkApi = BulkApi;
|
1176
1223
|
/**
|
@@ -1860,13 +1907,13 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1860
1907
|
/**
|
1861
1908
|
* Create custom deal restrictions
|
1862
1909
|
* @summary Create custom deal restrictions
|
1863
|
-
* @param {
|
1910
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1864
1911
|
* @param {*} [options] Override http request option.
|
1865
1912
|
* @throws {RequiredError}
|
1866
1913
|
*/
|
1867
|
-
createCustomDealRestrictions: (
|
1868
|
-
// verify required parameter '
|
1869
|
-
(0, common_1.assertParamExists)('createCustomDealRestrictions', '
|
1914
|
+
createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1915
|
+
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
1916
|
+
(0, common_1.assertParamExists)('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
|
1870
1917
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
1871
1918
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1872
1919
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -1884,7 +1931,7 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1884
1931
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1885
1932
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1886
1933
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1887
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
1934
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customDealRestrictionRequest, localVarRequestOptions, configuration);
|
1888
1935
|
return {
|
1889
1936
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
1890
1937
|
options: localVarRequestOptions,
|
@@ -1931,13 +1978,13 @@ const CustomDealsApiFp = function (configuration) {
|
|
1931
1978
|
/**
|
1932
1979
|
* Create custom deal restrictions
|
1933
1980
|
* @summary Create custom deal restrictions
|
1934
|
-
* @param {
|
1981
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1935
1982
|
* @param {*} [options] Override http request option.
|
1936
1983
|
* @throws {RequiredError}
|
1937
1984
|
*/
|
1938
|
-
createCustomDealRestrictions(
|
1985
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
1939
1986
|
return __awaiter(this, void 0, void 0, function* () {
|
1940
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(
|
1987
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
|
1941
1988
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1942
1989
|
});
|
1943
1990
|
},
|
@@ -1966,12 +2013,12 @@ const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
1966
2013
|
/**
|
1967
2014
|
* Create custom deal restrictions
|
1968
2015
|
* @summary Create custom deal restrictions
|
1969
|
-
* @param {
|
2016
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1970
2017
|
* @param {*} [options] Override http request option.
|
1971
2018
|
* @throws {RequiredError}
|
1972
2019
|
*/
|
1973
|
-
createCustomDealRestrictions(
|
1974
|
-
return localVarFp.createCustomDealRestrictions(
|
2020
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2021
|
+
return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
|
1975
2022
|
},
|
1976
2023
|
/**
|
1977
2024
|
* List custom deal restrictions
|
@@ -1995,13 +2042,13 @@ class CustomDealsApi extends base_1.BaseAPI {
|
|
1995
2042
|
/**
|
1996
2043
|
* Create custom deal restrictions
|
1997
2044
|
* @summary Create custom deal restrictions
|
1998
|
-
* @param {
|
2045
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1999
2046
|
* @param {*} [options] Override http request option.
|
2000
2047
|
* @throws {RequiredError}
|
2001
2048
|
* @memberof CustomDealsApi
|
2002
2049
|
*/
|
2003
|
-
createCustomDealRestrictions(
|
2004
|
-
return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(
|
2050
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2051
|
+
return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
2005
2052
|
}
|
2006
2053
|
/**
|
2007
2054
|
* List custom deal restrictions
|
@@ -2790,37 +2837,6 @@ exports.NotificationApi = NotificationApi;
|
|
2790
2837
|
*/
|
2791
2838
|
const OrderApiAxiosParamCreator = function (configuration) {
|
2792
2839
|
return {
|
2793
|
-
/**
|
2794
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2795
|
-
* @summary Create an order for a product
|
2796
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
2797
|
-
* @param {*} [options] Override http request option.
|
2798
|
-
* @throws {RequiredError}
|
2799
|
-
*/
|
2800
|
-
createAdminOrder: (adminOrderCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2801
|
-
const localVarPath = `/admins/orders`;
|
2802
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2803
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2804
|
-
let baseOptions;
|
2805
|
-
if (configuration) {
|
2806
|
-
baseOptions = configuration.baseOptions;
|
2807
|
-
}
|
2808
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
2809
|
-
const localVarHeaderParameter = {};
|
2810
|
-
const localVarQueryParameter = {};
|
2811
|
-
// authentication systemJWT required
|
2812
|
-
// http bearer authentication required
|
2813
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2814
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2815
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2816
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2817
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2818
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderCreationRequest, localVarRequestOptions, configuration);
|
2819
|
-
return {
|
2820
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
2821
|
-
options: localVarRequestOptions,
|
2822
|
-
};
|
2823
|
-
}),
|
2824
2840
|
/**
|
2825
2841
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2826
2842
|
* @summary Create an order for a product
|
@@ -2927,12 +2943,10 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
2927
2943
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
2928
2944
|
* @param {Array<string>} [userIDs] Filter by user ids
|
2929
2945
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
2930
|
-
* @param {OrderKind} [kind] Filter by kind
|
2931
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
2932
2946
|
* @param {*} [options] Override http request option.
|
2933
2947
|
* @throws {RequiredError}
|
2934
2948
|
*/
|
2935
|
-
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
2949
|
+
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2936
2950
|
const localVarPath = `/admins/orders`;
|
2937
2951
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2938
2952
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -2974,12 +2988,6 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
2974
2988
|
if (clientIDs) {
|
2975
2989
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
2976
2990
|
}
|
2977
|
-
if (kind !== undefined) {
|
2978
|
-
localVarQueryParameter['kind'] = kind;
|
2979
|
-
}
|
2980
|
-
if (source !== undefined) {
|
2981
|
-
localVarQueryParameter['source'] = source;
|
2982
|
-
}
|
2983
2991
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2984
2992
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2985
2993
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -3058,19 +3066,6 @@ exports.OrderApiAxiosParamCreator = OrderApiAxiosParamCreator;
|
|
3058
3066
|
const OrderApiFp = function (configuration) {
|
3059
3067
|
const localVarAxiosParamCreator = (0, exports.OrderApiAxiosParamCreator)(configuration);
|
3060
3068
|
return {
|
3061
|
-
/**
|
3062
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3063
|
-
* @summary Create an order for a product
|
3064
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3065
|
-
* @param {*} [options] Override http request option.
|
3066
|
-
* @throws {RequiredError}
|
3067
|
-
*/
|
3068
|
-
createAdminOrder(adminOrderCreationRequest, options) {
|
3069
|
-
return __awaiter(this, void 0, void 0, function* () {
|
3070
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
|
3071
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3072
|
-
});
|
3073
|
-
},
|
3074
3069
|
/**
|
3075
3070
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3076
3071
|
* @summary Create an order for a product
|
@@ -3121,14 +3116,12 @@ const OrderApiFp = function (configuration) {
|
|
3121
3116
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3122
3117
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3123
3118
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3124
|
-
* @param {OrderKind} [kind] Filter by kind
|
3125
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3126
3119
|
* @param {*} [options] Override http request option.
|
3127
3120
|
* @throws {RequiredError}
|
3128
3121
|
*/
|
3129
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3122
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3130
3123
|
return __awaiter(this, void 0, void 0, function* () {
|
3131
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3124
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
|
3132
3125
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3133
3126
|
});
|
3134
3127
|
},
|
@@ -3161,16 +3154,6 @@ exports.OrderApiFp = OrderApiFp;
|
|
3161
3154
|
const OrderApiFactory = function (configuration, basePath, axios) {
|
3162
3155
|
const localVarFp = (0, exports.OrderApiFp)(configuration);
|
3163
3156
|
return {
|
3164
|
-
/**
|
3165
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3166
|
-
* @summary Create an order for a product
|
3167
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3168
|
-
* @param {*} [options] Override http request option.
|
3169
|
-
* @throws {RequiredError}
|
3170
|
-
*/
|
3171
|
-
createAdminOrder(adminOrderCreationRequest, options) {
|
3172
|
-
return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
|
3173
|
-
},
|
3174
3157
|
/**
|
3175
3158
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3176
3159
|
* @summary Create an order for a product
|
@@ -3212,13 +3195,11 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3212
3195
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3213
3196
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3214
3197
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3215
|
-
* @param {OrderKind} [kind] Filter by kind
|
3216
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3217
3198
|
* @param {*} [options] Override http request option.
|
3218
3199
|
* @throws {RequiredError}
|
3219
3200
|
*/
|
3220
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3221
|
-
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3201
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3202
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
|
3222
3203
|
},
|
3223
3204
|
/**
|
3224
3205
|
* List existing orders
|
@@ -3246,17 +3227,6 @@ exports.OrderApiFactory = OrderApiFactory;
|
|
3246
3227
|
* @extends {BaseAPI}
|
3247
3228
|
*/
|
3248
3229
|
class OrderApi extends base_1.BaseAPI {
|
3249
|
-
/**
|
3250
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3251
|
-
* @summary Create an order for a product
|
3252
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3253
|
-
* @param {*} [options] Override http request option.
|
3254
|
-
* @throws {RequiredError}
|
3255
|
-
* @memberof OrderApi
|
3256
|
-
*/
|
3257
|
-
createAdminOrder(adminOrderCreationRequest, options) {
|
3258
|
-
return (0, exports.OrderApiFp)(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
3259
|
-
}
|
3260
3230
|
/**
|
3261
3231
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3262
3232
|
* @summary Create an order for a product
|
@@ -3301,14 +3271,12 @@ class OrderApi extends base_1.BaseAPI {
|
|
3301
3271
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3302
3272
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3303
3273
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3304
|
-
* @param {OrderKind} [kind] Filter by kind
|
3305
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3306
3274
|
* @param {*} [options] Override http request option.
|
3307
3275
|
* @throws {RequiredError}
|
3308
3276
|
* @memberof OrderApi
|
3309
3277
|
*/
|
3310
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3311
|
-
return (0, exports.OrderApiFp)(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3278
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3279
|
+
return (0, exports.OrderApiFp)(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
3312
3280
|
}
|
3313
3281
|
/**
|
3314
3282
|
* List existing orders
|