flexinet-api 0.0.1294-prerelease0 → 0.0.1294
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +231 -439
- package/dist/api.d.ts +179 -295
- package/dist/api.js +91 -240
- package/dist/esm/api.d.ts +179 -295
- package/dist/esm/api.js +88 -237
- package/package.json +1 -1
package/dist/api.js
CHANGED
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
22
22
|
});
|
23
23
|
};
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
-
exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.
|
26
|
-
exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator =
|
27
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory =
|
25
|
+
exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.ReportTypesResponseTypesEnum = exports.Repetition = exports.PromotionType = exports.PromotionStatus = exports.PromotionSortByField = exports.ProgressStateAggregation = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderStatus = exports.OrderKind = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
|
26
|
+
exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = void 0;
|
27
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = void 0;
|
28
28
|
const axios_1 = require("axios");
|
29
29
|
// Some imports not used depending on template conditions
|
30
30
|
// @ts-ignore
|
@@ -115,9 +115,6 @@ exports.Locale = {
|
|
115
115
|
RoRo: 'ro-ro',
|
116
116
|
HuHu: 'hu-hu'
|
117
117
|
};
|
118
|
-
exports.MinTurnoverRestrictionKindEnum = {
|
119
|
-
MinTurnover: 'minTurnover'
|
120
|
-
};
|
121
118
|
/**
|
122
119
|
*
|
123
120
|
* @export
|
@@ -158,8 +155,7 @@ exports.NotificationStatus = {
|
|
158
155
|
*/
|
159
156
|
exports.OrderKind = {
|
160
157
|
Webshop: 'webshop',
|
161
|
-
Promotions: 'promotions'
|
162
|
-
SalesBudget: 'sales_budget'
|
158
|
+
Promotions: 'promotions'
|
163
159
|
};
|
164
160
|
/**
|
165
161
|
*
|
@@ -293,9 +289,6 @@ exports.ReportTypesResponseTypesEnum = {
|
|
293
289
|
Promotion: 'promotion',
|
294
290
|
PromotionExpanded: 'promotion_expanded'
|
295
291
|
};
|
296
|
-
exports.RequiredRestrictionKindEnum = {
|
297
|
-
Required: 'required'
|
298
|
-
};
|
299
292
|
/**
|
300
293
|
*
|
301
294
|
* @export
|
@@ -364,16 +357,6 @@ exports.TargetMu = {
|
|
364
357
|
Product: 'product',
|
365
358
|
AdditionalMu: 'additionalMU'
|
366
359
|
};
|
367
|
-
/**
|
368
|
-
*
|
369
|
-
* @export
|
370
|
-
* @enum {string}
|
371
|
-
*/
|
372
|
-
exports.TransactionCurrencyKind = {
|
373
|
-
Points: 'points',
|
374
|
-
CustomDealBudget: 'customDealBudget',
|
375
|
-
SalesBudget: 'salesBudget'
|
376
|
-
};
|
377
360
|
/**
|
378
361
|
*
|
379
362
|
* @export
|
@@ -403,8 +386,7 @@ exports.TransactionSource = {
|
|
403
386
|
Promotion: 'promotion',
|
404
387
|
Manual: 'manual',
|
405
388
|
Expiry: 'expiry',
|
406
|
-
Transfer: 'transfer'
|
407
|
-
SalesBudget: 'sales_budget'
|
389
|
+
Transfer: 'transfer'
|
408
390
|
};
|
409
391
|
/**
|
410
392
|
*
|
@@ -1039,6 +1021,37 @@ const BulkApiAxiosParamCreator = function (configuration) {
|
|
1039
1021
|
options: localVarRequestOptions,
|
1040
1022
|
};
|
1041
1023
|
}),
|
1024
|
+
/**
|
1025
|
+
* Update multiple clients
|
1026
|
+
* @summary Update multiple clients
|
1027
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1028
|
+
* @param {*} [options] Override http request option.
|
1029
|
+
* @throws {RequiredError}
|
1030
|
+
*/
|
1031
|
+
bulkUpdateClients: (clientsBulkUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1032
|
+
const localVarPath = `/admins/clients/bulk`;
|
1033
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1034
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1035
|
+
let baseOptions;
|
1036
|
+
if (configuration) {
|
1037
|
+
baseOptions = configuration.baseOptions;
|
1038
|
+
}
|
1039
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
1040
|
+
const localVarHeaderParameter = {};
|
1041
|
+
const localVarQueryParameter = {};
|
1042
|
+
// authentication systemJWT required
|
1043
|
+
// http bearer authentication required
|
1044
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
1045
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1046
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1047
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1048
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1049
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientsBulkUpdateRequest, localVarRequestOptions, configuration);
|
1050
|
+
return {
|
1051
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
1052
|
+
options: localVarRequestOptions,
|
1053
|
+
};
|
1054
|
+
}),
|
1042
1055
|
};
|
1043
1056
|
};
|
1044
1057
|
exports.BulkApiAxiosParamCreator = BulkApiAxiosParamCreator;
|
@@ -1088,6 +1101,19 @@ const BulkApiFp = function (configuration) {
|
|
1088
1101
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1089
1102
|
});
|
1090
1103
|
},
|
1104
|
+
/**
|
1105
|
+
* Update multiple clients
|
1106
|
+
* @summary Update multiple clients
|
1107
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1108
|
+
* @param {*} [options] Override http request option.
|
1109
|
+
* @throws {RequiredError}
|
1110
|
+
*/
|
1111
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1113
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
|
1114
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1115
|
+
});
|
1116
|
+
},
|
1091
1117
|
};
|
1092
1118
|
};
|
1093
1119
|
exports.BulkApiFp = BulkApiFp;
|
@@ -1128,6 +1154,16 @@ const BulkApiFactory = function (configuration, basePath, axios) {
|
|
1128
1154
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1129
1155
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
1130
1156
|
},
|
1157
|
+
/**
|
1158
|
+
* Update multiple clients
|
1159
|
+
* @summary Update multiple clients
|
1160
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1161
|
+
* @param {*} [options] Override http request option.
|
1162
|
+
* @throws {RequiredError}
|
1163
|
+
*/
|
1164
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1165
|
+
return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
|
1166
|
+
},
|
1131
1167
|
};
|
1132
1168
|
};
|
1133
1169
|
exports.BulkApiFactory = BulkApiFactory;
|
@@ -1171,6 +1207,17 @@ class BulkApi extends base_1.BaseAPI {
|
|
1171
1207
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1172
1208
|
return (0, exports.BulkApiFp)(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
1173
1209
|
}
|
1210
|
+
/**
|
1211
|
+
* Update multiple clients
|
1212
|
+
* @summary Update multiple clients
|
1213
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1214
|
+
* @param {*} [options] Override http request option.
|
1215
|
+
* @throws {RequiredError}
|
1216
|
+
* @memberof BulkApi
|
1217
|
+
*/
|
1218
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1219
|
+
return (0, exports.BulkApiFp)(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
1220
|
+
}
|
1174
1221
|
}
|
1175
1222
|
exports.BulkApi = BulkApi;
|
1176
1223
|
/**
|
@@ -1860,13 +1907,13 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1860
1907
|
/**
|
1861
1908
|
* Create custom deal restrictions
|
1862
1909
|
* @summary Create custom deal restrictions
|
1863
|
-
* @param {
|
1910
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1864
1911
|
* @param {*} [options] Override http request option.
|
1865
1912
|
* @throws {RequiredError}
|
1866
1913
|
*/
|
1867
|
-
createCustomDealRestrictions: (
|
1868
|
-
// verify required parameter '
|
1869
|
-
(0, common_1.assertParamExists)('createCustomDealRestrictions', '
|
1914
|
+
createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1915
|
+
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
1916
|
+
(0, common_1.assertParamExists)('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
|
1870
1917
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
1871
1918
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1872
1919
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -1884,75 +1931,7 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1884
1931
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1885
1932
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1886
1933
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1887
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
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);
|
1934
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customDealRestrictionRequest, localVarRequestOptions, configuration);
|
1956
1935
|
return {
|
1957
1936
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
1958
1937
|
options: localVarRequestOptions,
|
@@ -1999,31 +1978,13 @@ const CustomDealsApiFp = function (configuration) {
|
|
1999
1978
|
/**
|
2000
1979
|
* Create custom deal restrictions
|
2001
1980
|
* @summary Create custom deal restrictions
|
2002
|
-
* @param {
|
2003
|
-
* @param {*} [options] Override http request option.
|
2004
|
-
* @throws {RequiredError}
|
2005
|
-
*/
|
2006
|
-
createCustomDealRestrictions(customDealRestriction, options) {
|
2007
|
-
return __awaiter(this, void 0, void 0, function* () {
|
2008
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
|
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
|
1981
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
2021
1982
|
* @param {*} [options] Override http request option.
|
2022
1983
|
* @throws {RequiredError}
|
2023
1984
|
*/
|
2024
|
-
|
1985
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2025
1986
|
return __awaiter(this, void 0, void 0, function* () {
|
2026
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
1987
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
|
2027
1988
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2028
1989
|
});
|
2029
1990
|
},
|
@@ -2052,27 +2013,12 @@ const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
2052
2013
|
/**
|
2053
2014
|
* Create custom deal restrictions
|
2054
2015
|
* @summary Create custom deal restrictions
|
2055
|
-
* @param {
|
2016
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
2056
2017
|
* @param {*} [options] Override http request option.
|
2057
2018
|
* @throws {RequiredError}
|
2058
2019
|
*/
|
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));
|
2020
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2021
|
+
return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
|
2076
2022
|
},
|
2077
2023
|
/**
|
2078
2024
|
* List custom deal restrictions
|
@@ -2096,29 +2042,13 @@ class CustomDealsApi extends base_1.BaseAPI {
|
|
2096
2042
|
/**
|
2097
2043
|
* Create custom deal restrictions
|
2098
2044
|
* @summary Create custom deal restrictions
|
2099
|
-
* @param {
|
2045
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
2100
2046
|
* @param {*} [options] Override http request option.
|
2101
2047
|
* @throws {RequiredError}
|
2102
2048
|
* @memberof CustomDealsApi
|
2103
2049
|
*/
|
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));
|
2050
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2051
|
+
return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
2122
2052
|
}
|
2123
2053
|
/**
|
2124
2054
|
* List custom deal restrictions
|
@@ -2907,37 +2837,6 @@ exports.NotificationApi = NotificationApi;
|
|
2907
2837
|
*/
|
2908
2838
|
const OrderApiAxiosParamCreator = function (configuration) {
|
2909
2839
|
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
2840
|
/**
|
2942
2841
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2943
2842
|
* @summary Create an order for a product
|
@@ -3044,12 +2943,10 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
3044
2943
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3045
2944
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3046
2945
|
* @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
2946
|
* @param {*} [options] Override http request option.
|
3050
2947
|
* @throws {RequiredError}
|
3051
2948
|
*/
|
3052
|
-
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
2949
|
+
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
3053
2950
|
const localVarPath = `/admins/orders`;
|
3054
2951
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3055
2952
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -3091,12 +2988,6 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
3091
2988
|
if (clientIDs) {
|
3092
2989
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
3093
2990
|
}
|
3094
|
-
if (kind !== undefined) {
|
3095
|
-
localVarQueryParameter['kind'] = kind;
|
3096
|
-
}
|
3097
|
-
if (source !== undefined) {
|
3098
|
-
localVarQueryParameter['source'] = source;
|
3099
|
-
}
|
3100
2991
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
3101
2992
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3102
2993
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -3175,19 +3066,6 @@ exports.OrderApiAxiosParamCreator = OrderApiAxiosParamCreator;
|
|
3175
3066
|
const OrderApiFp = function (configuration) {
|
3176
3067
|
const localVarAxiosParamCreator = (0, exports.OrderApiAxiosParamCreator)(configuration);
|
3177
3068
|
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
3069
|
/**
|
3192
3070
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3193
3071
|
* @summary Create an order for a product
|
@@ -3238,14 +3116,12 @@ const OrderApiFp = function (configuration) {
|
|
3238
3116
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3239
3117
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3240
3118
|
* @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
3119
|
* @param {*} [options] Override http request option.
|
3244
3120
|
* @throws {RequiredError}
|
3245
3121
|
*/
|
3246
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3122
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3247
3123
|
return __awaiter(this, void 0, void 0, function* () {
|
3248
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3124
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
|
3249
3125
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3250
3126
|
});
|
3251
3127
|
},
|
@@ -3278,16 +3154,6 @@ exports.OrderApiFp = OrderApiFp;
|
|
3278
3154
|
const OrderApiFactory = function (configuration, basePath, axios) {
|
3279
3155
|
const localVarFp = (0, exports.OrderApiFp)(configuration);
|
3280
3156
|
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
3157
|
/**
|
3292
3158
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3293
3159
|
* @summary Create an order for a product
|
@@ -3329,13 +3195,11 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3329
3195
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3330
3196
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3331
3197
|
* @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
3198
|
* @param {*} [options] Override http request option.
|
3335
3199
|
* @throws {RequiredError}
|
3336
3200
|
*/
|
3337
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3338
|
-
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3201
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3202
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
|
3339
3203
|
},
|
3340
3204
|
/**
|
3341
3205
|
* List existing orders
|
@@ -3363,17 +3227,6 @@ exports.OrderApiFactory = OrderApiFactory;
|
|
3363
3227
|
* @extends {BaseAPI}
|
3364
3228
|
*/
|
3365
3229
|
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
3230
|
/**
|
3378
3231
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3379
3232
|
* @summary Create an order for a product
|
@@ -3418,14 +3271,12 @@ class OrderApi extends base_1.BaseAPI {
|
|
3418
3271
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3419
3272
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3420
3273
|
* @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
3274
|
* @param {*} [options] Override http request option.
|
3424
3275
|
* @throws {RequiredError}
|
3425
3276
|
* @memberof OrderApi
|
3426
3277
|
*/
|
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,
|
3278
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3279
|
+
return (0, exports.OrderApiFp)(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
3429
3280
|
}
|
3430
3281
|
/**
|
3431
3282
|
* List existing orders
|