flexinet-api 0.0.1308-prerelease0 → 0.0.1308
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 +404 -455
- package/dist/api.d.ts +270 -310
- package/dist/api.js +222 -244
- package/dist/esm/api.d.ts +270 -310
- package/dist/esm/api.js +219 -241
- 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
|
@@ -111,12 +111,10 @@ exports.Feature = {
|
|
111
111
|
* @enum {string}
|
112
112
|
*/
|
113
113
|
exports.Locale = {
|
114
|
-
EnUs: 'en-
|
115
|
-
RoRo: 'ro-
|
116
|
-
HuHu: 'hu-
|
117
|
-
|
118
|
-
exports.MinTurnoverRestrictionKindEnum = {
|
119
|
-
MinTurnover: 'minTurnover'
|
114
|
+
EnUs: 'en-US',
|
115
|
+
RoRo: 'ro-RO',
|
116
|
+
HuHu: 'hu-HU',
|
117
|
+
DeDe: 'de-DE'
|
120
118
|
};
|
121
119
|
/**
|
122
120
|
*
|
@@ -158,8 +156,7 @@ exports.NotificationStatus = {
|
|
158
156
|
*/
|
159
157
|
exports.OrderKind = {
|
160
158
|
Webshop: 'webshop',
|
161
|
-
Promotions: 'promotions'
|
162
|
-
SalesBudget: 'sales_budget'
|
159
|
+
Promotions: 'promotions'
|
163
160
|
};
|
164
161
|
/**
|
165
162
|
*
|
@@ -293,9 +290,6 @@ exports.ReportTypesResponseTypesEnum = {
|
|
293
290
|
Promotion: 'promotion',
|
294
291
|
PromotionExpanded: 'promotion_expanded'
|
295
292
|
};
|
296
|
-
exports.RequiredRestrictionKindEnum = {
|
297
|
-
Required: 'required'
|
298
|
-
};
|
299
293
|
/**
|
300
294
|
*
|
301
295
|
* @export
|
@@ -364,16 +358,6 @@ exports.TargetMu = {
|
|
364
358
|
Product: 'product',
|
365
359
|
AdditionalMu: 'additionalMU'
|
366
360
|
};
|
367
|
-
/**
|
368
|
-
*
|
369
|
-
* @export
|
370
|
-
* @enum {string}
|
371
|
-
*/
|
372
|
-
exports.TransactionCurrencyKind = {
|
373
|
-
Points: 'points',
|
374
|
-
CustomDealBudget: 'customDealBudget',
|
375
|
-
SalesBudget: 'salesBudget'
|
376
|
-
};
|
377
361
|
/**
|
378
362
|
*
|
379
363
|
* @export
|
@@ -403,8 +387,7 @@ exports.TransactionSource = {
|
|
403
387
|
Promotion: 'promotion',
|
404
388
|
Manual: 'manual',
|
405
389
|
Expiry: 'expiry',
|
406
|
-
Transfer: 'transfer'
|
407
|
-
SalesBudget: 'sales_budget'
|
390
|
+
Transfer: 'transfer'
|
408
391
|
};
|
409
392
|
/**
|
410
393
|
*
|
@@ -1039,6 +1022,37 @@ const BulkApiAxiosParamCreator = function (configuration) {
|
|
1039
1022
|
options: localVarRequestOptions,
|
1040
1023
|
};
|
1041
1024
|
}),
|
1025
|
+
/**
|
1026
|
+
* Update multiple clients
|
1027
|
+
* @summary Update multiple clients
|
1028
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1029
|
+
* @param {*} [options] Override http request option.
|
1030
|
+
* @throws {RequiredError}
|
1031
|
+
*/
|
1032
|
+
bulkUpdateClients: (clientsBulkUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1033
|
+
const localVarPath = `/admins/clients/bulk`;
|
1034
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1035
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1036
|
+
let baseOptions;
|
1037
|
+
if (configuration) {
|
1038
|
+
baseOptions = configuration.baseOptions;
|
1039
|
+
}
|
1040
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
1041
|
+
const localVarHeaderParameter = {};
|
1042
|
+
const localVarQueryParameter = {};
|
1043
|
+
// authentication systemJWT required
|
1044
|
+
// http bearer authentication required
|
1045
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
1046
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1047
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1048
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1049
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1050
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientsBulkUpdateRequest, localVarRequestOptions, configuration);
|
1051
|
+
return {
|
1052
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
1053
|
+
options: localVarRequestOptions,
|
1054
|
+
};
|
1055
|
+
}),
|
1042
1056
|
};
|
1043
1057
|
};
|
1044
1058
|
exports.BulkApiAxiosParamCreator = BulkApiAxiosParamCreator;
|
@@ -1088,6 +1102,19 @@ const BulkApiFp = function (configuration) {
|
|
1088
1102
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1089
1103
|
});
|
1090
1104
|
},
|
1105
|
+
/**
|
1106
|
+
* Update multiple clients
|
1107
|
+
* @summary Update multiple clients
|
1108
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1109
|
+
* @param {*} [options] Override http request option.
|
1110
|
+
* @throws {RequiredError}
|
1111
|
+
*/
|
1112
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1114
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
|
1115
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1116
|
+
});
|
1117
|
+
},
|
1091
1118
|
};
|
1092
1119
|
};
|
1093
1120
|
exports.BulkApiFp = BulkApiFp;
|
@@ -1128,6 +1155,16 @@ const BulkApiFactory = function (configuration, basePath, axios) {
|
|
1128
1155
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1129
1156
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
1130
1157
|
},
|
1158
|
+
/**
|
1159
|
+
* Update multiple clients
|
1160
|
+
* @summary Update multiple clients
|
1161
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1162
|
+
* @param {*} [options] Override http request option.
|
1163
|
+
* @throws {RequiredError}
|
1164
|
+
*/
|
1165
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1166
|
+
return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
|
1167
|
+
},
|
1131
1168
|
};
|
1132
1169
|
};
|
1133
1170
|
exports.BulkApiFactory = BulkApiFactory;
|
@@ -1171,6 +1208,17 @@ class BulkApi extends base_1.BaseAPI {
|
|
1171
1208
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1172
1209
|
return (0, exports.BulkApiFp)(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
1173
1210
|
}
|
1211
|
+
/**
|
1212
|
+
* Update multiple clients
|
1213
|
+
* @summary Update multiple clients
|
1214
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1215
|
+
* @param {*} [options] Override http request option.
|
1216
|
+
* @throws {RequiredError}
|
1217
|
+
* @memberof BulkApi
|
1218
|
+
*/
|
1219
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1220
|
+
return (0, exports.BulkApiFp)(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
1221
|
+
}
|
1174
1222
|
}
|
1175
1223
|
exports.BulkApi = BulkApi;
|
1176
1224
|
/**
|
@@ -1860,13 +1908,13 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1860
1908
|
/**
|
1861
1909
|
* Create custom deal restrictions
|
1862
1910
|
* @summary Create custom deal restrictions
|
1863
|
-
* @param {
|
1911
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1864
1912
|
* @param {*} [options] Override http request option.
|
1865
1913
|
* @throws {RequiredError}
|
1866
1914
|
*/
|
1867
|
-
createCustomDealRestrictions: (
|
1868
|
-
// verify required parameter '
|
1869
|
-
(0, common_1.assertParamExists)('createCustomDealRestrictions', '
|
1915
|
+
createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1916
|
+
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
1917
|
+
(0, common_1.assertParamExists)('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
|
1870
1918
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
1871
1919
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1872
1920
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -1884,75 +1932,7 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1884
1932
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1885
1933
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1886
1934
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1887
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
1888
|
-
return {
|
1889
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
1890
|
-
options: localVarRequestOptions,
|
1891
|
-
};
|
1892
|
-
}),
|
1893
|
-
/**
|
1894
|
-
* Get custom deal min target value
|
1895
|
-
* @summary Get custom deal min target value
|
1896
|
-
* @param {string} startingAt start at
|
1897
|
-
* @param {string} endingAt end at
|
1898
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
1899
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
1900
|
-
* @param {string} tagKey tag key
|
1901
|
-
* @param {string} tagValue tag value
|
1902
|
-
* @param {*} [options] Override http request option.
|
1903
|
-
* @throws {RequiredError}
|
1904
|
-
*/
|
1905
|
-
getCustomDealMinTargetValue: (startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1906
|
-
// verify required parameter 'startingAt' is not null or undefined
|
1907
|
-
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'startingAt', startingAt);
|
1908
|
-
// verify required parameter 'endingAt' is not null or undefined
|
1909
|
-
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'endingAt', endingAt);
|
1910
|
-
// verify required parameter 'beneficiaryKind' is not null or undefined
|
1911
|
-
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind);
|
1912
|
-
// verify required parameter 'beneficiaryValues' is not null or undefined
|
1913
|
-
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues);
|
1914
|
-
// verify required parameter 'tagKey' is not null or undefined
|
1915
|
-
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'tagKey', tagKey);
|
1916
|
-
// verify required parameter 'tagValue' is not null or undefined
|
1917
|
-
(0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'tagValue', tagValue);
|
1918
|
-
const localVarPath = `/admins/custom-deals/min-target-value`;
|
1919
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1920
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1921
|
-
let baseOptions;
|
1922
|
-
if (configuration) {
|
1923
|
-
baseOptions = configuration.baseOptions;
|
1924
|
-
}
|
1925
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
1926
|
-
const localVarHeaderParameter = {};
|
1927
|
-
const localVarQueryParameter = {};
|
1928
|
-
// authentication systemJWT required
|
1929
|
-
// http bearer authentication required
|
1930
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
1931
|
-
if (startingAt !== undefined) {
|
1932
|
-
localVarQueryParameter['startingAt'] = (startingAt instanceof Date) ?
|
1933
|
-
startingAt.toISOString() :
|
1934
|
-
startingAt;
|
1935
|
-
}
|
1936
|
-
if (endingAt !== undefined) {
|
1937
|
-
localVarQueryParameter['endingAt'] = (endingAt instanceof Date) ?
|
1938
|
-
endingAt.toISOString() :
|
1939
|
-
endingAt;
|
1940
|
-
}
|
1941
|
-
if (beneficiaryKind !== undefined) {
|
1942
|
-
localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
|
1943
|
-
}
|
1944
|
-
if (beneficiaryValues) {
|
1945
|
-
localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
|
1946
|
-
}
|
1947
|
-
if (tagKey !== undefined) {
|
1948
|
-
localVarQueryParameter['tagKey'] = tagKey;
|
1949
|
-
}
|
1950
|
-
if (tagValue !== undefined) {
|
1951
|
-
localVarQueryParameter['tagValue'] = tagValue;
|
1952
|
-
}
|
1953
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1954
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1955
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1935
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customDealRestrictionRequest, localVarRequestOptions, configuration);
|
1956
1936
|
return {
|
1957
1937
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
1958
1938
|
options: localVarRequestOptions,
|
@@ -1999,31 +1979,13 @@ const CustomDealsApiFp = function (configuration) {
|
|
1999
1979
|
/**
|
2000
1980
|
* Create custom deal restrictions
|
2001
1981
|
* @summary Create custom deal restrictions
|
2002
|
-
* @param {
|
1982
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
2003
1983
|
* @param {*} [options] Override http request option.
|
2004
1984
|
* @throws {RequiredError}
|
2005
1985
|
*/
|
2006
|
-
createCustomDealRestrictions(
|
1986
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2007
1987
|
return __awaiter(this, void 0, void 0, function* () {
|
2008
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(
|
2009
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2010
|
-
});
|
2011
|
-
},
|
2012
|
-
/**
|
2013
|
-
* Get custom deal min target value
|
2014
|
-
* @summary Get custom deal min target value
|
2015
|
-
* @param {string} startingAt start at
|
2016
|
-
* @param {string} endingAt end at
|
2017
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2018
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
2019
|
-
* @param {string} tagKey tag key
|
2020
|
-
* @param {string} tagValue tag value
|
2021
|
-
* @param {*} [options] Override http request option.
|
2022
|
-
* @throws {RequiredError}
|
2023
|
-
*/
|
2024
|
-
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2025
|
-
return __awaiter(this, void 0, void 0, function* () {
|
2026
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
|
1988
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
|
2027
1989
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2028
1990
|
});
|
2029
1991
|
},
|
@@ -2052,27 +2014,12 @@ const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
2052
2014
|
/**
|
2053
2015
|
* Create custom deal restrictions
|
2054
2016
|
* @summary Create custom deal restrictions
|
2055
|
-
* @param {
|
2017
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
2056
2018
|
* @param {*} [options] Override http request option.
|
2057
2019
|
* @throws {RequiredError}
|
2058
2020
|
*/
|
2059
|
-
createCustomDealRestrictions(
|
2060
|
-
return localVarFp.createCustomDealRestrictions(
|
2061
|
-
},
|
2062
|
-
/**
|
2063
|
-
* Get custom deal min target value
|
2064
|
-
* @summary Get custom deal min target value
|
2065
|
-
* @param {string} startingAt start at
|
2066
|
-
* @param {string} endingAt end at
|
2067
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2068
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
2069
|
-
* @param {string} tagKey tag key
|
2070
|
-
* @param {string} tagValue tag value
|
2071
|
-
* @param {*} [options] Override http request option.
|
2072
|
-
* @throws {RequiredError}
|
2073
|
-
*/
|
2074
|
-
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2075
|
-
return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
|
2021
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2022
|
+
return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
|
2076
2023
|
},
|
2077
2024
|
/**
|
2078
2025
|
* List custom deal restrictions
|
@@ -2096,29 +2043,13 @@ class CustomDealsApi extends base_1.BaseAPI {
|
|
2096
2043
|
/**
|
2097
2044
|
* Create custom deal restrictions
|
2098
2045
|
* @summary Create custom deal restrictions
|
2099
|
-
* @param {
|
2046
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
2100
2047
|
* @param {*} [options] Override http request option.
|
2101
2048
|
* @throws {RequiredError}
|
2102
2049
|
* @memberof CustomDealsApi
|
2103
2050
|
*/
|
2104
|
-
createCustomDealRestrictions(
|
2105
|
-
return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(
|
2106
|
-
}
|
2107
|
-
/**
|
2108
|
-
* Get custom deal min target value
|
2109
|
-
* @summary Get custom deal min target value
|
2110
|
-
* @param {string} startingAt start at
|
2111
|
-
* @param {string} endingAt end at
|
2112
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2113
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
2114
|
-
* @param {string} tagKey tag key
|
2115
|
-
* @param {string} tagValue tag value
|
2116
|
-
* @param {*} [options] Override http request option.
|
2117
|
-
* @throws {RequiredError}
|
2118
|
-
* @memberof CustomDealsApi
|
2119
|
-
*/
|
2120
|
-
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2121
|
-
return (0, exports.CustomDealsApiFp)(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
|
2051
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2052
|
+
return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
2122
2053
|
}
|
2123
2054
|
/**
|
2124
2055
|
* List custom deal restrictions
|
@@ -2543,6 +2474,34 @@ const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2543
2474
|
* @throws {RequiredError}
|
2544
2475
|
*/
|
2545
2476
|
getPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2477
|
+
const localVarPath = `/admins/preferences`;
|
2478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2479
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2480
|
+
let baseOptions;
|
2481
|
+
if (configuration) {
|
2482
|
+
baseOptions = configuration.baseOptions;
|
2483
|
+
}
|
2484
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2485
|
+
const localVarHeaderParameter = {};
|
2486
|
+
const localVarQueryParameter = {};
|
2487
|
+
// authentication customerJWT required
|
2488
|
+
// http bearer authentication required
|
2489
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2490
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2491
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2492
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2493
|
+
return {
|
2494
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
2495
|
+
options: localVarRequestOptions,
|
2496
|
+
};
|
2497
|
+
}),
|
2498
|
+
/**
|
2499
|
+
* Get preferences for the authenticated user
|
2500
|
+
* @summary Get preferences
|
2501
|
+
* @param {*} [options] Override http request option.
|
2502
|
+
* @throws {RequiredError}
|
2503
|
+
*/
|
2504
|
+
getUserPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2546
2505
|
const localVarPath = `/users/preferences`;
|
2547
2506
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2548
2507
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -2642,7 +2601,7 @@ const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2642
2601
|
updatePreferences: (preferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2643
2602
|
// verify required parameter 'preferencesRequest' is not null or undefined
|
2644
2603
|
(0, common_1.assertParamExists)('updatePreferences', 'preferencesRequest', preferencesRequest);
|
2645
|
-
const localVarPath = `/
|
2604
|
+
const localVarPath = `/admins/preferences`;
|
2646
2605
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2647
2606
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2648
2607
|
let baseOptions;
|
@@ -2665,6 +2624,39 @@ const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2665
2624
|
options: localVarRequestOptions,
|
2666
2625
|
};
|
2667
2626
|
}),
|
2627
|
+
/**
|
2628
|
+
* Update preferences for the authenticated user
|
2629
|
+
* @summary Update preferences
|
2630
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2631
|
+
* @param {*} [options] Override http request option.
|
2632
|
+
* @throws {RequiredError}
|
2633
|
+
*/
|
2634
|
+
updateUserPreferences: (userPreferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2635
|
+
// verify required parameter 'userPreferencesRequest' is not null or undefined
|
2636
|
+
(0, common_1.assertParamExists)('updateUserPreferences', 'userPreferencesRequest', userPreferencesRequest);
|
2637
|
+
const localVarPath = `/users/preferences`;
|
2638
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2639
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2640
|
+
let baseOptions;
|
2641
|
+
if (configuration) {
|
2642
|
+
baseOptions = configuration.baseOptions;
|
2643
|
+
}
|
2644
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
2645
|
+
const localVarHeaderParameter = {};
|
2646
|
+
const localVarQueryParameter = {};
|
2647
|
+
// authentication customerJWT required
|
2648
|
+
// http bearer authentication required
|
2649
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2650
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2651
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2652
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2653
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2654
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userPreferencesRequest, localVarRequestOptions, configuration);
|
2655
|
+
return {
|
2656
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
2657
|
+
options: localVarRequestOptions,
|
2658
|
+
};
|
2659
|
+
}),
|
2668
2660
|
};
|
2669
2661
|
};
|
2670
2662
|
exports.NotificationApiAxiosParamCreator = NotificationApiAxiosParamCreator;
|
@@ -2713,6 +2705,18 @@ const NotificationApiFp = function (configuration) {
|
|
2713
2705
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2714
2706
|
});
|
2715
2707
|
},
|
2708
|
+
/**
|
2709
|
+
* Get preferences for the authenticated user
|
2710
|
+
* @summary Get preferences
|
2711
|
+
* @param {*} [options] Override http request option.
|
2712
|
+
* @throws {RequiredError}
|
2713
|
+
*/
|
2714
|
+
getUserPreferences(options) {
|
2715
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2716
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserPreferences(options);
|
2717
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2718
|
+
});
|
2719
|
+
},
|
2716
2720
|
/**
|
2717
2721
|
* List paginated notifications
|
2718
2722
|
* @summary List notifications
|
@@ -2753,6 +2757,19 @@ const NotificationApiFp = function (configuration) {
|
|
2753
2757
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2754
2758
|
});
|
2755
2759
|
},
|
2760
|
+
/**
|
2761
|
+
* Update preferences for the authenticated user
|
2762
|
+
* @summary Update preferences
|
2763
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2764
|
+
* @param {*} [options] Override http request option.
|
2765
|
+
* @throws {RequiredError}
|
2766
|
+
*/
|
2767
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
2768
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2769
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserPreferences(userPreferencesRequest, options);
|
2770
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2771
|
+
});
|
2772
|
+
},
|
2756
2773
|
};
|
2757
2774
|
};
|
2758
2775
|
exports.NotificationApiFp = NotificationApiFp;
|
@@ -2792,6 +2809,15 @@ const NotificationApiFactory = function (configuration, basePath, axios) {
|
|
2792
2809
|
getPreferences(options) {
|
2793
2810
|
return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
|
2794
2811
|
},
|
2812
|
+
/**
|
2813
|
+
* Get preferences for the authenticated user
|
2814
|
+
* @summary Get preferences
|
2815
|
+
* @param {*} [options] Override http request option.
|
2816
|
+
* @throws {RequiredError}
|
2817
|
+
*/
|
2818
|
+
getUserPreferences(options) {
|
2819
|
+
return localVarFp.getUserPreferences(options).then((request) => request(axios, basePath));
|
2820
|
+
},
|
2795
2821
|
/**
|
2796
2822
|
* List paginated notifications
|
2797
2823
|
* @summary List notifications
|
@@ -2823,6 +2849,16 @@ const NotificationApiFactory = function (configuration, basePath, axios) {
|
|
2823
2849
|
updatePreferences(preferencesRequest, options) {
|
2824
2850
|
return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
|
2825
2851
|
},
|
2852
|
+
/**
|
2853
|
+
* Update preferences for the authenticated user
|
2854
|
+
* @summary Update preferences
|
2855
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2856
|
+
* @param {*} [options] Override http request option.
|
2857
|
+
* @throws {RequiredError}
|
2858
|
+
*/
|
2859
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
2860
|
+
return localVarFp.updateUserPreferences(userPreferencesRequest, options).then((request) => request(axios, basePath));
|
2861
|
+
},
|
2826
2862
|
};
|
2827
2863
|
};
|
2828
2864
|
exports.NotificationApiFactory = NotificationApiFactory;
|
@@ -2865,6 +2901,16 @@ class NotificationApi extends base_1.BaseAPI {
|
|
2865
2901
|
getPreferences(options) {
|
2866
2902
|
return (0, exports.NotificationApiFp)(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
|
2867
2903
|
}
|
2904
|
+
/**
|
2905
|
+
* Get preferences for the authenticated user
|
2906
|
+
* @summary Get preferences
|
2907
|
+
* @param {*} [options] Override http request option.
|
2908
|
+
* @throws {RequiredError}
|
2909
|
+
* @memberof NotificationApi
|
2910
|
+
*/
|
2911
|
+
getUserPreferences(options) {
|
2912
|
+
return (0, exports.NotificationApiFp)(this.configuration).getUserPreferences(options).then((request) => request(this.axios, this.basePath));
|
2913
|
+
}
|
2868
2914
|
/**
|
2869
2915
|
* List paginated notifications
|
2870
2916
|
* @summary List notifications
|
@@ -2899,6 +2945,17 @@ class NotificationApi extends base_1.BaseAPI {
|
|
2899
2945
|
updatePreferences(preferencesRequest, options) {
|
2900
2946
|
return (0, exports.NotificationApiFp)(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
2901
2947
|
}
|
2948
|
+
/**
|
2949
|
+
* Update preferences for the authenticated user
|
2950
|
+
* @summary Update preferences
|
2951
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2952
|
+
* @param {*} [options] Override http request option.
|
2953
|
+
* @throws {RequiredError}
|
2954
|
+
* @memberof NotificationApi
|
2955
|
+
*/
|
2956
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
2957
|
+
return (0, exports.NotificationApiFp)(this.configuration).updateUserPreferences(userPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
2958
|
+
}
|
2902
2959
|
}
|
2903
2960
|
exports.NotificationApi = NotificationApi;
|
2904
2961
|
/**
|
@@ -2907,37 +2964,6 @@ exports.NotificationApi = NotificationApi;
|
|
2907
2964
|
*/
|
2908
2965
|
const OrderApiAxiosParamCreator = function (configuration) {
|
2909
2966
|
return {
|
2910
|
-
/**
|
2911
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2912
|
-
* @summary Create an order for a product
|
2913
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
2914
|
-
* @param {*} [options] Override http request option.
|
2915
|
-
* @throws {RequiredError}
|
2916
|
-
*/
|
2917
|
-
createAdminOrder: (adminOrderCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2918
|
-
const localVarPath = `/admins/orders`;
|
2919
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2920
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2921
|
-
let baseOptions;
|
2922
|
-
if (configuration) {
|
2923
|
-
baseOptions = configuration.baseOptions;
|
2924
|
-
}
|
2925
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
2926
|
-
const localVarHeaderParameter = {};
|
2927
|
-
const localVarQueryParameter = {};
|
2928
|
-
// authentication systemJWT required
|
2929
|
-
// http bearer authentication required
|
2930
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2931
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2932
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2933
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2934
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2935
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderCreationRequest, localVarRequestOptions, configuration);
|
2936
|
-
return {
|
2937
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
2938
|
-
options: localVarRequestOptions,
|
2939
|
-
};
|
2940
|
-
}),
|
2941
2967
|
/**
|
2942
2968
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2943
2969
|
* @summary Create an order for a product
|
@@ -3044,12 +3070,10 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
3044
3070
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3045
3071
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3046
3072
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3047
|
-
* @param {OrderKind} [kind] Filter by kind
|
3048
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3049
3073
|
* @param {*} [options] Override http request option.
|
3050
3074
|
* @throws {RequiredError}
|
3051
3075
|
*/
|
3052
|
-
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3076
|
+
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
3053
3077
|
const localVarPath = `/admins/orders`;
|
3054
3078
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3055
3079
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -3091,12 +3115,6 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
3091
3115
|
if (clientIDs) {
|
3092
3116
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
3093
3117
|
}
|
3094
|
-
if (kind !== undefined) {
|
3095
|
-
localVarQueryParameter['kind'] = kind;
|
3096
|
-
}
|
3097
|
-
if (source !== undefined) {
|
3098
|
-
localVarQueryParameter['source'] = source;
|
3099
|
-
}
|
3100
3118
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
3101
3119
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3102
3120
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -3175,19 +3193,6 @@ exports.OrderApiAxiosParamCreator = OrderApiAxiosParamCreator;
|
|
3175
3193
|
const OrderApiFp = function (configuration) {
|
3176
3194
|
const localVarAxiosParamCreator = (0, exports.OrderApiAxiosParamCreator)(configuration);
|
3177
3195
|
return {
|
3178
|
-
/**
|
3179
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3180
|
-
* @summary Create an order for a product
|
3181
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3182
|
-
* @param {*} [options] Override http request option.
|
3183
|
-
* @throws {RequiredError}
|
3184
|
-
*/
|
3185
|
-
createAdminOrder(adminOrderCreationRequest, options) {
|
3186
|
-
return __awaiter(this, void 0, void 0, function* () {
|
3187
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
|
3188
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3189
|
-
});
|
3190
|
-
},
|
3191
3196
|
/**
|
3192
3197
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3193
3198
|
* @summary Create an order for a product
|
@@ -3238,14 +3243,12 @@ const OrderApiFp = function (configuration) {
|
|
3238
3243
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3239
3244
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3240
3245
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3241
|
-
* @param {OrderKind} [kind] Filter by kind
|
3242
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3243
3246
|
* @param {*} [options] Override http request option.
|
3244
3247
|
* @throws {RequiredError}
|
3245
3248
|
*/
|
3246
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3249
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3247
3250
|
return __awaiter(this, void 0, void 0, function* () {
|
3248
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3251
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
|
3249
3252
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3250
3253
|
});
|
3251
3254
|
},
|
@@ -3278,16 +3281,6 @@ exports.OrderApiFp = OrderApiFp;
|
|
3278
3281
|
const OrderApiFactory = function (configuration, basePath, axios) {
|
3279
3282
|
const localVarFp = (0, exports.OrderApiFp)(configuration);
|
3280
3283
|
return {
|
3281
|
-
/**
|
3282
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3283
|
-
* @summary Create an order for a product
|
3284
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3285
|
-
* @param {*} [options] Override http request option.
|
3286
|
-
* @throws {RequiredError}
|
3287
|
-
*/
|
3288
|
-
createAdminOrder(adminOrderCreationRequest, options) {
|
3289
|
-
return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
|
3290
|
-
},
|
3291
3284
|
/**
|
3292
3285
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3293
3286
|
* @summary Create an order for a product
|
@@ -3329,13 +3322,11 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3329
3322
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3330
3323
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3331
3324
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3332
|
-
* @param {OrderKind} [kind] Filter by kind
|
3333
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3334
3325
|
* @param {*} [options] Override http request option.
|
3335
3326
|
* @throws {RequiredError}
|
3336
3327
|
*/
|
3337
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3338
|
-
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3328
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3329
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
|
3339
3330
|
},
|
3340
3331
|
/**
|
3341
3332
|
* List existing orders
|
@@ -3363,17 +3354,6 @@ exports.OrderApiFactory = OrderApiFactory;
|
|
3363
3354
|
* @extends {BaseAPI}
|
3364
3355
|
*/
|
3365
3356
|
class OrderApi extends base_1.BaseAPI {
|
3366
|
-
/**
|
3367
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3368
|
-
* @summary Create an order for a product
|
3369
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3370
|
-
* @param {*} [options] Override http request option.
|
3371
|
-
* @throws {RequiredError}
|
3372
|
-
* @memberof OrderApi
|
3373
|
-
*/
|
3374
|
-
createAdminOrder(adminOrderCreationRequest, options) {
|
3375
|
-
return (0, exports.OrderApiFp)(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
3376
|
-
}
|
3377
3357
|
/**
|
3378
3358
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3379
3359
|
* @summary Create an order for a product
|
@@ -3418,14 +3398,12 @@ class OrderApi extends base_1.BaseAPI {
|
|
3418
3398
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3419
3399
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3420
3400
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3421
|
-
* @param {OrderKind} [kind] Filter by kind
|
3422
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3423
3401
|
* @param {*} [options] Override http request option.
|
3424
3402
|
* @throws {RequiredError}
|
3425
3403
|
* @memberof OrderApi
|
3426
3404
|
*/
|
3427
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3428
|
-
return (0, exports.OrderApiFp)(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3405
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3406
|
+
return (0, exports.OrderApiFp)(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
3429
3407
|
}
|
3430
3408
|
/**
|
3431
3409
|
* List existing orders
|