flexinet-api 0.0.1311-prerelease0 → 0.0.1314
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 +415 -463
- package/dist/api.d.ts +279 -316
- package/dist/api.js +226 -245
- package/dist/esm/api.d.ts +279 -316
- package/dist/esm/api.js +223 -242
- 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
|
@@ -103,7 +103,10 @@ exports.Feature = {
|
|
103
103
|
Promotions: 'promotions',
|
104
104
|
SalesBudget: 'sales_budget',
|
105
105
|
CustomDeals: 'custom_deals',
|
106
|
-
UserInfo: 'user_info'
|
106
|
+
UserInfo: 'user_info',
|
107
|
+
ExternalInventory: 'external_inventory',
|
108
|
+
OrderEvents: 'order_events',
|
109
|
+
OrderStatusPolling: 'order_status_polling'
|
107
110
|
};
|
108
111
|
/**
|
109
112
|
*
|
@@ -111,12 +114,10 @@ exports.Feature = {
|
|
111
114
|
* @enum {string}
|
112
115
|
*/
|
113
116
|
exports.Locale = {
|
114
|
-
EnUs: 'en-
|
115
|
-
RoRo: 'ro-
|
116
|
-
HuHu: 'hu-
|
117
|
-
|
118
|
-
exports.MinTurnoverRestrictionKindEnum = {
|
119
|
-
MinTurnover: 'minTurnover'
|
117
|
+
EnUs: 'en-US',
|
118
|
+
RoRo: 'ro-RO',
|
119
|
+
HuHu: 'hu-HU',
|
120
|
+
DeDe: 'de-DE'
|
120
121
|
};
|
121
122
|
/**
|
122
123
|
*
|
@@ -158,8 +159,7 @@ exports.NotificationStatus = {
|
|
158
159
|
*/
|
159
160
|
exports.OrderKind = {
|
160
161
|
Webshop: 'webshop',
|
161
|
-
Promotions: 'promotions'
|
162
|
-
SalesBudget: 'sales_budget'
|
162
|
+
Promotions: 'promotions'
|
163
163
|
};
|
164
164
|
/**
|
165
165
|
*
|
@@ -293,9 +293,6 @@ exports.ReportTypesResponseTypesEnum = {
|
|
293
293
|
Promotion: 'promotion',
|
294
294
|
PromotionExpanded: 'promotion_expanded'
|
295
295
|
};
|
296
|
-
exports.RequiredRestrictionKindEnum = {
|
297
|
-
Required: 'required'
|
298
|
-
};
|
299
296
|
/**
|
300
297
|
*
|
301
298
|
* @export
|
@@ -364,16 +361,6 @@ exports.TargetMu = {
|
|
364
361
|
Product: 'product',
|
365
362
|
AdditionalMu: 'additionalMU'
|
366
363
|
};
|
367
|
-
/**
|
368
|
-
*
|
369
|
-
* @export
|
370
|
-
* @enum {string}
|
371
|
-
*/
|
372
|
-
exports.TransactionCurrencyKind = {
|
373
|
-
Points: 'points',
|
374
|
-
CustomDealBudget: 'customDealBudget',
|
375
|
-
SalesBudget: 'salesBudget'
|
376
|
-
};
|
377
364
|
/**
|
378
365
|
*
|
379
366
|
* @export
|
@@ -403,8 +390,7 @@ exports.TransactionSource = {
|
|
403
390
|
Promotion: 'promotion',
|
404
391
|
Manual: 'manual',
|
405
392
|
Expiry: 'expiry',
|
406
|
-
Transfer: 'transfer'
|
407
|
-
SalesBudget: 'sales_budget'
|
393
|
+
Transfer: 'transfer'
|
408
394
|
};
|
409
395
|
/**
|
410
396
|
*
|
@@ -1039,6 +1025,37 @@ const BulkApiAxiosParamCreator = function (configuration) {
|
|
1039
1025
|
options: localVarRequestOptions,
|
1040
1026
|
};
|
1041
1027
|
}),
|
1028
|
+
/**
|
1029
|
+
* Update multiple clients
|
1030
|
+
* @summary Update multiple clients
|
1031
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1032
|
+
* @param {*} [options] Override http request option.
|
1033
|
+
* @throws {RequiredError}
|
1034
|
+
*/
|
1035
|
+
bulkUpdateClients: (clientsBulkUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1036
|
+
const localVarPath = `/admins/clients/bulk`;
|
1037
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1038
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1039
|
+
let baseOptions;
|
1040
|
+
if (configuration) {
|
1041
|
+
baseOptions = configuration.baseOptions;
|
1042
|
+
}
|
1043
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
1044
|
+
const localVarHeaderParameter = {};
|
1045
|
+
const localVarQueryParameter = {};
|
1046
|
+
// authentication systemJWT required
|
1047
|
+
// http bearer authentication required
|
1048
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
1049
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1050
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1051
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1052
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1053
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientsBulkUpdateRequest, localVarRequestOptions, configuration);
|
1054
|
+
return {
|
1055
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
1056
|
+
options: localVarRequestOptions,
|
1057
|
+
};
|
1058
|
+
}),
|
1042
1059
|
};
|
1043
1060
|
};
|
1044
1061
|
exports.BulkApiAxiosParamCreator = BulkApiAxiosParamCreator;
|
@@ -1088,6 +1105,19 @@ const BulkApiFp = function (configuration) {
|
|
1088
1105
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1089
1106
|
});
|
1090
1107
|
},
|
1108
|
+
/**
|
1109
|
+
* Update multiple clients
|
1110
|
+
* @summary Update multiple clients
|
1111
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1112
|
+
* @param {*} [options] Override http request option.
|
1113
|
+
* @throws {RequiredError}
|
1114
|
+
*/
|
1115
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1117
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
|
1118
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1119
|
+
});
|
1120
|
+
},
|
1091
1121
|
};
|
1092
1122
|
};
|
1093
1123
|
exports.BulkApiFp = BulkApiFp;
|
@@ -1128,6 +1158,16 @@ const BulkApiFactory = function (configuration, basePath, axios) {
|
|
1128
1158
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1129
1159
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
1130
1160
|
},
|
1161
|
+
/**
|
1162
|
+
* Update multiple clients
|
1163
|
+
* @summary Update multiple clients
|
1164
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1165
|
+
* @param {*} [options] Override http request option.
|
1166
|
+
* @throws {RequiredError}
|
1167
|
+
*/
|
1168
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1169
|
+
return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
|
1170
|
+
},
|
1131
1171
|
};
|
1132
1172
|
};
|
1133
1173
|
exports.BulkApiFactory = BulkApiFactory;
|
@@ -1171,6 +1211,17 @@ class BulkApi extends base_1.BaseAPI {
|
|
1171
1211
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1172
1212
|
return (0, exports.BulkApiFp)(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
1173
1213
|
}
|
1214
|
+
/**
|
1215
|
+
* Update multiple clients
|
1216
|
+
* @summary Update multiple clients
|
1217
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1218
|
+
* @param {*} [options] Override http request option.
|
1219
|
+
* @throws {RequiredError}
|
1220
|
+
* @memberof BulkApi
|
1221
|
+
*/
|
1222
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1223
|
+
return (0, exports.BulkApiFp)(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
1224
|
+
}
|
1174
1225
|
}
|
1175
1226
|
exports.BulkApi = BulkApi;
|
1176
1227
|
/**
|
@@ -1860,13 +1911,13 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1860
1911
|
/**
|
1861
1912
|
* Create custom deal restrictions
|
1862
1913
|
* @summary Create custom deal restrictions
|
1863
|
-
* @param {
|
1914
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1864
1915
|
* @param {*} [options] Override http request option.
|
1865
1916
|
* @throws {RequiredError}
|
1866
1917
|
*/
|
1867
|
-
createCustomDealRestrictions: (
|
1868
|
-
// verify required parameter '
|
1869
|
-
(0, common_1.assertParamExists)('createCustomDealRestrictions', '
|
1918
|
+
createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1919
|
+
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
1920
|
+
(0, common_1.assertParamExists)('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
|
1870
1921
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
1871
1922
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1872
1923
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -1884,75 +1935,7 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1884
1935
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1885
1936
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1886
1937
|
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);
|
1938
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customDealRestrictionRequest, localVarRequestOptions, configuration);
|
1956
1939
|
return {
|
1957
1940
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
1958
1941
|
options: localVarRequestOptions,
|
@@ -1999,31 +1982,13 @@ const CustomDealsApiFp = function (configuration) {
|
|
1999
1982
|
/**
|
2000
1983
|
* Create custom deal restrictions
|
2001
1984
|
* @summary Create custom deal restrictions
|
2002
|
-
* @param {
|
1985
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
2003
1986
|
* @param {*} [options] Override http request option.
|
2004
1987
|
* @throws {RequiredError}
|
2005
1988
|
*/
|
2006
|
-
createCustomDealRestrictions(
|
1989
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2007
1990
|
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);
|
1991
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
|
2027
1992
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2028
1993
|
});
|
2029
1994
|
},
|
@@ -2052,27 +2017,12 @@ const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
2052
2017
|
/**
|
2053
2018
|
* Create custom deal restrictions
|
2054
2019
|
* @summary Create custom deal restrictions
|
2055
|
-
* @param {
|
2020
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
2056
2021
|
* @param {*} [options] Override http request option.
|
2057
2022
|
* @throws {RequiredError}
|
2058
2023
|
*/
|
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));
|
2024
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2025
|
+
return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
|
2076
2026
|
},
|
2077
2027
|
/**
|
2078
2028
|
* List custom deal restrictions
|
@@ -2096,29 +2046,13 @@ class CustomDealsApi extends base_1.BaseAPI {
|
|
2096
2046
|
/**
|
2097
2047
|
* Create custom deal restrictions
|
2098
2048
|
* @summary Create custom deal restrictions
|
2099
|
-
* @param {
|
2049
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
2100
2050
|
* @param {*} [options] Override http request option.
|
2101
2051
|
* @throws {RequiredError}
|
2102
2052
|
* @memberof CustomDealsApi
|
2103
2053
|
*/
|
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));
|
2054
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2055
|
+
return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
2122
2056
|
}
|
2123
2057
|
/**
|
2124
2058
|
* List custom deal restrictions
|
@@ -2543,6 +2477,34 @@ const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2543
2477
|
* @throws {RequiredError}
|
2544
2478
|
*/
|
2545
2479
|
getPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2480
|
+
const localVarPath = `/admins/preferences`;
|
2481
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2482
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2483
|
+
let baseOptions;
|
2484
|
+
if (configuration) {
|
2485
|
+
baseOptions = configuration.baseOptions;
|
2486
|
+
}
|
2487
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2488
|
+
const localVarHeaderParameter = {};
|
2489
|
+
const localVarQueryParameter = {};
|
2490
|
+
// authentication customerJWT required
|
2491
|
+
// http bearer authentication required
|
2492
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2493
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2494
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2495
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2496
|
+
return {
|
2497
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
2498
|
+
options: localVarRequestOptions,
|
2499
|
+
};
|
2500
|
+
}),
|
2501
|
+
/**
|
2502
|
+
* Get preferences for the authenticated user
|
2503
|
+
* @summary Get preferences
|
2504
|
+
* @param {*} [options] Override http request option.
|
2505
|
+
* @throws {RequiredError}
|
2506
|
+
*/
|
2507
|
+
getUserPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2546
2508
|
const localVarPath = `/users/preferences`;
|
2547
2509
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2548
2510
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -2642,7 +2604,7 @@ const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2642
2604
|
updatePreferences: (preferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2643
2605
|
// verify required parameter 'preferencesRequest' is not null or undefined
|
2644
2606
|
(0, common_1.assertParamExists)('updatePreferences', 'preferencesRequest', preferencesRequest);
|
2645
|
-
const localVarPath = `/
|
2607
|
+
const localVarPath = `/admins/preferences`;
|
2646
2608
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2647
2609
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2648
2610
|
let baseOptions;
|
@@ -2665,6 +2627,39 @@ const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2665
2627
|
options: localVarRequestOptions,
|
2666
2628
|
};
|
2667
2629
|
}),
|
2630
|
+
/**
|
2631
|
+
* Update preferences for the authenticated user
|
2632
|
+
* @summary Update preferences
|
2633
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2634
|
+
* @param {*} [options] Override http request option.
|
2635
|
+
* @throws {RequiredError}
|
2636
|
+
*/
|
2637
|
+
updateUserPreferences: (userPreferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2638
|
+
// verify required parameter 'userPreferencesRequest' is not null or undefined
|
2639
|
+
(0, common_1.assertParamExists)('updateUserPreferences', 'userPreferencesRequest', userPreferencesRequest);
|
2640
|
+
const localVarPath = `/users/preferences`;
|
2641
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2642
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2643
|
+
let baseOptions;
|
2644
|
+
if (configuration) {
|
2645
|
+
baseOptions = configuration.baseOptions;
|
2646
|
+
}
|
2647
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
2648
|
+
const localVarHeaderParameter = {};
|
2649
|
+
const localVarQueryParameter = {};
|
2650
|
+
// authentication customerJWT required
|
2651
|
+
// http bearer authentication required
|
2652
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2653
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2654
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2655
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2656
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2657
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userPreferencesRequest, localVarRequestOptions, configuration);
|
2658
|
+
return {
|
2659
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
2660
|
+
options: localVarRequestOptions,
|
2661
|
+
};
|
2662
|
+
}),
|
2668
2663
|
};
|
2669
2664
|
};
|
2670
2665
|
exports.NotificationApiAxiosParamCreator = NotificationApiAxiosParamCreator;
|
@@ -2713,6 +2708,18 @@ const NotificationApiFp = function (configuration) {
|
|
2713
2708
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2714
2709
|
});
|
2715
2710
|
},
|
2711
|
+
/**
|
2712
|
+
* Get preferences for the authenticated user
|
2713
|
+
* @summary Get preferences
|
2714
|
+
* @param {*} [options] Override http request option.
|
2715
|
+
* @throws {RequiredError}
|
2716
|
+
*/
|
2717
|
+
getUserPreferences(options) {
|
2718
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2719
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserPreferences(options);
|
2720
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2721
|
+
});
|
2722
|
+
},
|
2716
2723
|
/**
|
2717
2724
|
* List paginated notifications
|
2718
2725
|
* @summary List notifications
|
@@ -2753,6 +2760,19 @@ const NotificationApiFp = function (configuration) {
|
|
2753
2760
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2754
2761
|
});
|
2755
2762
|
},
|
2763
|
+
/**
|
2764
|
+
* Update preferences for the authenticated user
|
2765
|
+
* @summary Update preferences
|
2766
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2767
|
+
* @param {*} [options] Override http request option.
|
2768
|
+
* @throws {RequiredError}
|
2769
|
+
*/
|
2770
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
2771
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2772
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserPreferences(userPreferencesRequest, options);
|
2773
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2774
|
+
});
|
2775
|
+
},
|
2756
2776
|
};
|
2757
2777
|
};
|
2758
2778
|
exports.NotificationApiFp = NotificationApiFp;
|
@@ -2792,6 +2812,15 @@ const NotificationApiFactory = function (configuration, basePath, axios) {
|
|
2792
2812
|
getPreferences(options) {
|
2793
2813
|
return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
|
2794
2814
|
},
|
2815
|
+
/**
|
2816
|
+
* Get preferences for the authenticated user
|
2817
|
+
* @summary Get preferences
|
2818
|
+
* @param {*} [options] Override http request option.
|
2819
|
+
* @throws {RequiredError}
|
2820
|
+
*/
|
2821
|
+
getUserPreferences(options) {
|
2822
|
+
return localVarFp.getUserPreferences(options).then((request) => request(axios, basePath));
|
2823
|
+
},
|
2795
2824
|
/**
|
2796
2825
|
* List paginated notifications
|
2797
2826
|
* @summary List notifications
|
@@ -2823,6 +2852,16 @@ const NotificationApiFactory = function (configuration, basePath, axios) {
|
|
2823
2852
|
updatePreferences(preferencesRequest, options) {
|
2824
2853
|
return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
|
2825
2854
|
},
|
2855
|
+
/**
|
2856
|
+
* Update preferences for the authenticated user
|
2857
|
+
* @summary Update preferences
|
2858
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2859
|
+
* @param {*} [options] Override http request option.
|
2860
|
+
* @throws {RequiredError}
|
2861
|
+
*/
|
2862
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
2863
|
+
return localVarFp.updateUserPreferences(userPreferencesRequest, options).then((request) => request(axios, basePath));
|
2864
|
+
},
|
2826
2865
|
};
|
2827
2866
|
};
|
2828
2867
|
exports.NotificationApiFactory = NotificationApiFactory;
|
@@ -2865,6 +2904,16 @@ class NotificationApi extends base_1.BaseAPI {
|
|
2865
2904
|
getPreferences(options) {
|
2866
2905
|
return (0, exports.NotificationApiFp)(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
|
2867
2906
|
}
|
2907
|
+
/**
|
2908
|
+
* Get preferences for the authenticated user
|
2909
|
+
* @summary Get preferences
|
2910
|
+
* @param {*} [options] Override http request option.
|
2911
|
+
* @throws {RequiredError}
|
2912
|
+
* @memberof NotificationApi
|
2913
|
+
*/
|
2914
|
+
getUserPreferences(options) {
|
2915
|
+
return (0, exports.NotificationApiFp)(this.configuration).getUserPreferences(options).then((request) => request(this.axios, this.basePath));
|
2916
|
+
}
|
2868
2917
|
/**
|
2869
2918
|
* List paginated notifications
|
2870
2919
|
* @summary List notifications
|
@@ -2899,6 +2948,17 @@ class NotificationApi extends base_1.BaseAPI {
|
|
2899
2948
|
updatePreferences(preferencesRequest, options) {
|
2900
2949
|
return (0, exports.NotificationApiFp)(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
2901
2950
|
}
|
2951
|
+
/**
|
2952
|
+
* Update preferences for the authenticated user
|
2953
|
+
* @summary Update preferences
|
2954
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2955
|
+
* @param {*} [options] Override http request option.
|
2956
|
+
* @throws {RequiredError}
|
2957
|
+
* @memberof NotificationApi
|
2958
|
+
*/
|
2959
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
2960
|
+
return (0, exports.NotificationApiFp)(this.configuration).updateUserPreferences(userPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
2961
|
+
}
|
2902
2962
|
}
|
2903
2963
|
exports.NotificationApi = NotificationApi;
|
2904
2964
|
/**
|
@@ -2907,37 +2967,6 @@ exports.NotificationApi = NotificationApi;
|
|
2907
2967
|
*/
|
2908
2968
|
const OrderApiAxiosParamCreator = function (configuration) {
|
2909
2969
|
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
2970
|
/**
|
2942
2971
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2943
2972
|
* @summary Create an order for a product
|
@@ -3044,12 +3073,10 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
3044
3073
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3045
3074
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3046
3075
|
* @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
3076
|
* @param {*} [options] Override http request option.
|
3050
3077
|
* @throws {RequiredError}
|
3051
3078
|
*/
|
3052
|
-
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3079
|
+
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
3053
3080
|
const localVarPath = `/admins/orders`;
|
3054
3081
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3055
3082
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -3091,12 +3118,6 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
3091
3118
|
if (clientIDs) {
|
3092
3119
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
3093
3120
|
}
|
3094
|
-
if (kind !== undefined) {
|
3095
|
-
localVarQueryParameter['kind'] = kind;
|
3096
|
-
}
|
3097
|
-
if (source !== undefined) {
|
3098
|
-
localVarQueryParameter['source'] = source;
|
3099
|
-
}
|
3100
3121
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
3101
3122
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3102
3123
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -3175,19 +3196,6 @@ exports.OrderApiAxiosParamCreator = OrderApiAxiosParamCreator;
|
|
3175
3196
|
const OrderApiFp = function (configuration) {
|
3176
3197
|
const localVarAxiosParamCreator = (0, exports.OrderApiAxiosParamCreator)(configuration);
|
3177
3198
|
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
3199
|
/**
|
3192
3200
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3193
3201
|
* @summary Create an order for a product
|
@@ -3238,14 +3246,12 @@ const OrderApiFp = function (configuration) {
|
|
3238
3246
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3239
3247
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3240
3248
|
* @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
3249
|
* @param {*} [options] Override http request option.
|
3244
3250
|
* @throws {RequiredError}
|
3245
3251
|
*/
|
3246
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3252
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3247
3253
|
return __awaiter(this, void 0, void 0, function* () {
|
3248
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3254
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
|
3249
3255
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3250
3256
|
});
|
3251
3257
|
},
|
@@ -3278,16 +3284,6 @@ exports.OrderApiFp = OrderApiFp;
|
|
3278
3284
|
const OrderApiFactory = function (configuration, basePath, axios) {
|
3279
3285
|
const localVarFp = (0, exports.OrderApiFp)(configuration);
|
3280
3286
|
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
3287
|
/**
|
3292
3288
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3293
3289
|
* @summary Create an order for a product
|
@@ -3329,13 +3325,11 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3329
3325
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3330
3326
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3331
3327
|
* @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
3328
|
* @param {*} [options] Override http request option.
|
3335
3329
|
* @throws {RequiredError}
|
3336
3330
|
*/
|
3337
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3338
|
-
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3331
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3332
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
|
3339
3333
|
},
|
3340
3334
|
/**
|
3341
3335
|
* List existing orders
|
@@ -3363,17 +3357,6 @@ exports.OrderApiFactory = OrderApiFactory;
|
|
3363
3357
|
* @extends {BaseAPI}
|
3364
3358
|
*/
|
3365
3359
|
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
3360
|
/**
|
3378
3361
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3379
3362
|
* @summary Create an order for a product
|
@@ -3418,14 +3401,12 @@ class OrderApi extends base_1.BaseAPI {
|
|
3418
3401
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3419
3402
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3420
3403
|
* @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
3404
|
* @param {*} [options] Override http request option.
|
3424
3405
|
* @throws {RequiredError}
|
3425
3406
|
* @memberof OrderApi
|
3426
3407
|
*/
|
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,
|
3408
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3409
|
+
return (0, exports.OrderApiFp)(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
3429
3410
|
}
|
3430
3411
|
/**
|
3431
3412
|
* List existing orders
|