flexinet-api 0.0.1315-prerelease0 → 0.0.1316
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/esm/api.js
CHANGED
@@ -98,7 +98,10 @@ export const Feature = {
|
|
98
98
|
Promotions: 'promotions',
|
99
99
|
SalesBudget: 'sales_budget',
|
100
100
|
CustomDeals: 'custom_deals',
|
101
|
-
UserInfo: 'user_info'
|
101
|
+
UserInfo: 'user_info',
|
102
|
+
ExternalInventory: 'external_inventory',
|
103
|
+
OrderEvents: 'order_events',
|
104
|
+
OrderStatusPolling: 'order_status_polling'
|
102
105
|
};
|
103
106
|
/**
|
104
107
|
*
|
@@ -106,12 +109,10 @@ export const Feature = {
|
|
106
109
|
* @enum {string}
|
107
110
|
*/
|
108
111
|
export const Locale = {
|
109
|
-
EnUs: 'en-
|
110
|
-
RoRo: 'ro-
|
111
|
-
HuHu: 'hu-
|
112
|
-
|
113
|
-
export const MinTurnoverRestrictionKindEnum = {
|
114
|
-
MinTurnover: 'minTurnover'
|
112
|
+
EnUs: 'en-US',
|
113
|
+
RoRo: 'ro-RO',
|
114
|
+
HuHu: 'hu-HU',
|
115
|
+
DeDe: 'de-DE'
|
115
116
|
};
|
116
117
|
/**
|
117
118
|
*
|
@@ -153,8 +154,7 @@ export const NotificationStatus = {
|
|
153
154
|
*/
|
154
155
|
export const OrderKind = {
|
155
156
|
Webshop: 'webshop',
|
156
|
-
Promotions: 'promotions'
|
157
|
-
SalesBudget: 'sales_budget'
|
157
|
+
Promotions: 'promotions'
|
158
158
|
};
|
159
159
|
/**
|
160
160
|
*
|
@@ -288,9 +288,6 @@ export const ReportTypesResponseTypesEnum = {
|
|
288
288
|
Promotion: 'promotion',
|
289
289
|
PromotionExpanded: 'promotion_expanded'
|
290
290
|
};
|
291
|
-
export const RequiredRestrictionKindEnum = {
|
292
|
-
Required: 'required'
|
293
|
-
};
|
294
291
|
/**
|
295
292
|
*
|
296
293
|
* @export
|
@@ -359,16 +356,6 @@ export const TargetMu = {
|
|
359
356
|
Product: 'product',
|
360
357
|
AdditionalMu: 'additionalMU'
|
361
358
|
};
|
362
|
-
/**
|
363
|
-
*
|
364
|
-
* @export
|
365
|
-
* @enum {string}
|
366
|
-
*/
|
367
|
-
export const TransactionCurrencyKind = {
|
368
|
-
Points: 'points',
|
369
|
-
CustomDealBudget: 'customDealBudget',
|
370
|
-
SalesBudget: 'salesBudget'
|
371
|
-
};
|
372
359
|
/**
|
373
360
|
*
|
374
361
|
* @export
|
@@ -398,8 +385,7 @@ export const TransactionSource = {
|
|
398
385
|
Promotion: 'promotion',
|
399
386
|
Manual: 'manual',
|
400
387
|
Expiry: 'expiry',
|
401
|
-
Transfer: 'transfer'
|
402
|
-
SalesBudget: 'sales_budget'
|
388
|
+
Transfer: 'transfer'
|
403
389
|
};
|
404
390
|
/**
|
405
391
|
*
|
@@ -1026,6 +1012,37 @@ export const BulkApiAxiosParamCreator = function (configuration) {
|
|
1026
1012
|
options: localVarRequestOptions,
|
1027
1013
|
};
|
1028
1014
|
}),
|
1015
|
+
/**
|
1016
|
+
* Update multiple clients
|
1017
|
+
* @summary Update multiple clients
|
1018
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1019
|
+
* @param {*} [options] Override http request option.
|
1020
|
+
* @throws {RequiredError}
|
1021
|
+
*/
|
1022
|
+
bulkUpdateClients: (clientsBulkUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1023
|
+
const localVarPath = `/admins/clients/bulk`;
|
1024
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1025
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1026
|
+
let baseOptions;
|
1027
|
+
if (configuration) {
|
1028
|
+
baseOptions = configuration.baseOptions;
|
1029
|
+
}
|
1030
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
1031
|
+
const localVarHeaderParameter = {};
|
1032
|
+
const localVarQueryParameter = {};
|
1033
|
+
// authentication systemJWT required
|
1034
|
+
// http bearer authentication required
|
1035
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
1036
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1037
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1038
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1039
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1040
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkUpdateRequest, localVarRequestOptions, configuration);
|
1041
|
+
return {
|
1042
|
+
url: toPathString(localVarUrlObj),
|
1043
|
+
options: localVarRequestOptions,
|
1044
|
+
};
|
1045
|
+
}),
|
1029
1046
|
};
|
1030
1047
|
};
|
1031
1048
|
/**
|
@@ -1074,6 +1091,19 @@ export const BulkApiFp = function (configuration) {
|
|
1074
1091
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1075
1092
|
});
|
1076
1093
|
},
|
1094
|
+
/**
|
1095
|
+
* Update multiple clients
|
1096
|
+
* @summary Update multiple clients
|
1097
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1098
|
+
* @param {*} [options] Override http request option.
|
1099
|
+
* @throws {RequiredError}
|
1100
|
+
*/
|
1101
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1103
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
|
1104
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1105
|
+
});
|
1106
|
+
},
|
1077
1107
|
};
|
1078
1108
|
};
|
1079
1109
|
/**
|
@@ -1113,6 +1143,16 @@ export const BulkApiFactory = function (configuration, basePath, axios) {
|
|
1113
1143
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1114
1144
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
1115
1145
|
},
|
1146
|
+
/**
|
1147
|
+
* Update multiple clients
|
1148
|
+
* @summary Update multiple clients
|
1149
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1150
|
+
* @param {*} [options] Override http request option.
|
1151
|
+
* @throws {RequiredError}
|
1152
|
+
*/
|
1153
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1154
|
+
return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
|
1155
|
+
},
|
1116
1156
|
};
|
1117
1157
|
};
|
1118
1158
|
/**
|
@@ -1155,6 +1195,17 @@ export class BulkApi extends BaseAPI {
|
|
1155
1195
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1156
1196
|
return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
1157
1197
|
}
|
1198
|
+
/**
|
1199
|
+
* Update multiple clients
|
1200
|
+
* @summary Update multiple clients
|
1201
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1202
|
+
* @param {*} [options] Override http request option.
|
1203
|
+
* @throws {RequiredError}
|
1204
|
+
* @memberof BulkApi
|
1205
|
+
*/
|
1206
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1207
|
+
return BulkApiFp(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
1208
|
+
}
|
1158
1209
|
}
|
1159
1210
|
/**
|
1160
1211
|
* CategoryApi - axios parameter creator
|
@@ -1831,13 +1882,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1831
1882
|
/**
|
1832
1883
|
* Create custom deal restrictions
|
1833
1884
|
* @summary Create custom deal restrictions
|
1834
|
-
* @param {
|
1885
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1835
1886
|
* @param {*} [options] Override http request option.
|
1836
1887
|
* @throws {RequiredError}
|
1837
1888
|
*/
|
1838
|
-
createCustomDealRestrictions: (
|
1839
|
-
// verify required parameter '
|
1840
|
-
assertParamExists('createCustomDealRestrictions', '
|
1889
|
+
createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1890
|
+
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
1891
|
+
assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
|
1841
1892
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
1842
1893
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1843
1894
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -1855,75 +1906,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1855
1906
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1856
1907
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1857
1908
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1858
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
1859
|
-
return {
|
1860
|
-
url: toPathString(localVarUrlObj),
|
1861
|
-
options: localVarRequestOptions,
|
1862
|
-
};
|
1863
|
-
}),
|
1864
|
-
/**
|
1865
|
-
* Get custom deal min target value
|
1866
|
-
* @summary Get custom deal min target value
|
1867
|
-
* @param {string} startingAt start at
|
1868
|
-
* @param {string} endingAt end at
|
1869
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
1870
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
1871
|
-
* @param {string} tagKey tag key
|
1872
|
-
* @param {string} tagValue tag value
|
1873
|
-
* @param {*} [options] Override http request option.
|
1874
|
-
* @throws {RequiredError}
|
1875
|
-
*/
|
1876
|
-
getCustomDealMinTargetValue: (startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1877
|
-
// verify required parameter 'startingAt' is not null or undefined
|
1878
|
-
assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt);
|
1879
|
-
// verify required parameter 'endingAt' is not null or undefined
|
1880
|
-
assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt);
|
1881
|
-
// verify required parameter 'beneficiaryKind' is not null or undefined
|
1882
|
-
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind);
|
1883
|
-
// verify required parameter 'beneficiaryValues' is not null or undefined
|
1884
|
-
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues);
|
1885
|
-
// verify required parameter 'tagKey' is not null or undefined
|
1886
|
-
assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey);
|
1887
|
-
// verify required parameter 'tagValue' is not null or undefined
|
1888
|
-
assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue);
|
1889
|
-
const localVarPath = `/admins/custom-deals/min-target-value`;
|
1890
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1891
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1892
|
-
let baseOptions;
|
1893
|
-
if (configuration) {
|
1894
|
-
baseOptions = configuration.baseOptions;
|
1895
|
-
}
|
1896
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
1897
|
-
const localVarHeaderParameter = {};
|
1898
|
-
const localVarQueryParameter = {};
|
1899
|
-
// authentication systemJWT required
|
1900
|
-
// http bearer authentication required
|
1901
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
1902
|
-
if (startingAt !== undefined) {
|
1903
|
-
localVarQueryParameter['startingAt'] = (startingAt instanceof Date) ?
|
1904
|
-
startingAt.toISOString() :
|
1905
|
-
startingAt;
|
1906
|
-
}
|
1907
|
-
if (endingAt !== undefined) {
|
1908
|
-
localVarQueryParameter['endingAt'] = (endingAt instanceof Date) ?
|
1909
|
-
endingAt.toISOString() :
|
1910
|
-
endingAt;
|
1911
|
-
}
|
1912
|
-
if (beneficiaryKind !== undefined) {
|
1913
|
-
localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
|
1914
|
-
}
|
1915
|
-
if (beneficiaryValues) {
|
1916
|
-
localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
|
1917
|
-
}
|
1918
|
-
if (tagKey !== undefined) {
|
1919
|
-
localVarQueryParameter['tagKey'] = tagKey;
|
1920
|
-
}
|
1921
|
-
if (tagValue !== undefined) {
|
1922
|
-
localVarQueryParameter['tagValue'] = tagValue;
|
1923
|
-
}
|
1924
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1925
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1926
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1909
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDealRestrictionRequest, localVarRequestOptions, configuration);
|
1927
1910
|
return {
|
1928
1911
|
url: toPathString(localVarUrlObj),
|
1929
1912
|
options: localVarRequestOptions,
|
@@ -1969,31 +1952,13 @@ export const CustomDealsApiFp = function (configuration) {
|
|
1969
1952
|
/**
|
1970
1953
|
* Create custom deal restrictions
|
1971
1954
|
* @summary Create custom deal restrictions
|
1972
|
-
* @param {
|
1955
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1973
1956
|
* @param {*} [options] Override http request option.
|
1974
1957
|
* @throws {RequiredError}
|
1975
1958
|
*/
|
1976
|
-
createCustomDealRestrictions(
|
1959
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
1977
1960
|
return __awaiter(this, void 0, void 0, function* () {
|
1978
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(
|
1979
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1980
|
-
});
|
1981
|
-
},
|
1982
|
-
/**
|
1983
|
-
* Get custom deal min target value
|
1984
|
-
* @summary Get custom deal min target value
|
1985
|
-
* @param {string} startingAt start at
|
1986
|
-
* @param {string} endingAt end at
|
1987
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
1988
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
1989
|
-
* @param {string} tagKey tag key
|
1990
|
-
* @param {string} tagValue tag value
|
1991
|
-
* @param {*} [options] Override http request option.
|
1992
|
-
* @throws {RequiredError}
|
1993
|
-
*/
|
1994
|
-
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
1995
|
-
return __awaiter(this, void 0, void 0, function* () {
|
1996
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
|
1961
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
|
1997
1962
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1998
1963
|
});
|
1999
1964
|
},
|
@@ -2021,27 +1986,12 @@ export const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
2021
1986
|
/**
|
2022
1987
|
* Create custom deal restrictions
|
2023
1988
|
* @summary Create custom deal restrictions
|
2024
|
-
* @param {
|
1989
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
2025
1990
|
* @param {*} [options] Override http request option.
|
2026
1991
|
* @throws {RequiredError}
|
2027
1992
|
*/
|
2028
|
-
createCustomDealRestrictions(
|
2029
|
-
return localVarFp.createCustomDealRestrictions(
|
2030
|
-
},
|
2031
|
-
/**
|
2032
|
-
* Get custom deal min target value
|
2033
|
-
* @summary Get custom deal min target value
|
2034
|
-
* @param {string} startingAt start at
|
2035
|
-
* @param {string} endingAt end at
|
2036
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2037
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
2038
|
-
* @param {string} tagKey tag key
|
2039
|
-
* @param {string} tagValue tag value
|
2040
|
-
* @param {*} [options] Override http request option.
|
2041
|
-
* @throws {RequiredError}
|
2042
|
-
*/
|
2043
|
-
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2044
|
-
return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
|
1993
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
1994
|
+
return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
|
2045
1995
|
},
|
2046
1996
|
/**
|
2047
1997
|
* List custom deal restrictions
|
@@ -2064,29 +2014,13 @@ export class CustomDealsApi extends BaseAPI {
|
|
2064
2014
|
/**
|
2065
2015
|
* Create custom deal restrictions
|
2066
2016
|
* @summary Create custom deal restrictions
|
2067
|
-
* @param {
|
2017
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
2068
2018
|
* @param {*} [options] Override http request option.
|
2069
2019
|
* @throws {RequiredError}
|
2070
2020
|
* @memberof CustomDealsApi
|
2071
2021
|
*/
|
2072
|
-
createCustomDealRestrictions(
|
2073
|
-
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(
|
2074
|
-
}
|
2075
|
-
/**
|
2076
|
-
* Get custom deal min target value
|
2077
|
-
* @summary Get custom deal min target value
|
2078
|
-
* @param {string} startingAt start at
|
2079
|
-
* @param {string} endingAt end at
|
2080
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2081
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
2082
|
-
* @param {string} tagKey tag key
|
2083
|
-
* @param {string} tagValue tag value
|
2084
|
-
* @param {*} [options] Override http request option.
|
2085
|
-
* @throws {RequiredError}
|
2086
|
-
* @memberof CustomDealsApi
|
2087
|
-
*/
|
2088
|
-
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2089
|
-
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
|
2022
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2023
|
+
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
2090
2024
|
}
|
2091
2025
|
/**
|
2092
2026
|
* List custom deal restrictions
|
@@ -2502,6 +2436,34 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2502
2436
|
* @throws {RequiredError}
|
2503
2437
|
*/
|
2504
2438
|
getPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2439
|
+
const localVarPath = `/admins/preferences`;
|
2440
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2441
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2442
|
+
let baseOptions;
|
2443
|
+
if (configuration) {
|
2444
|
+
baseOptions = configuration.baseOptions;
|
2445
|
+
}
|
2446
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2447
|
+
const localVarHeaderParameter = {};
|
2448
|
+
const localVarQueryParameter = {};
|
2449
|
+
// authentication customerJWT required
|
2450
|
+
// http bearer authentication required
|
2451
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
2452
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2453
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2454
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2455
|
+
return {
|
2456
|
+
url: toPathString(localVarUrlObj),
|
2457
|
+
options: localVarRequestOptions,
|
2458
|
+
};
|
2459
|
+
}),
|
2460
|
+
/**
|
2461
|
+
* Get preferences for the authenticated user
|
2462
|
+
* @summary Get preferences
|
2463
|
+
* @param {*} [options] Override http request option.
|
2464
|
+
* @throws {RequiredError}
|
2465
|
+
*/
|
2466
|
+
getUserPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2505
2467
|
const localVarPath = `/users/preferences`;
|
2506
2468
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2507
2469
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -2601,7 +2563,7 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2601
2563
|
updatePreferences: (preferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2602
2564
|
// verify required parameter 'preferencesRequest' is not null or undefined
|
2603
2565
|
assertParamExists('updatePreferences', 'preferencesRequest', preferencesRequest);
|
2604
|
-
const localVarPath = `/
|
2566
|
+
const localVarPath = `/admins/preferences`;
|
2605
2567
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2606
2568
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2607
2569
|
let baseOptions;
|
@@ -2624,6 +2586,39 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
|
|
2624
2586
|
options: localVarRequestOptions,
|
2625
2587
|
};
|
2626
2588
|
}),
|
2589
|
+
/**
|
2590
|
+
* Update preferences for the authenticated user
|
2591
|
+
* @summary Update preferences
|
2592
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2593
|
+
* @param {*} [options] Override http request option.
|
2594
|
+
* @throws {RequiredError}
|
2595
|
+
*/
|
2596
|
+
updateUserPreferences: (userPreferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2597
|
+
// verify required parameter 'userPreferencesRequest' is not null or undefined
|
2598
|
+
assertParamExists('updateUserPreferences', 'userPreferencesRequest', userPreferencesRequest);
|
2599
|
+
const localVarPath = `/users/preferences`;
|
2600
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2601
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2602
|
+
let baseOptions;
|
2603
|
+
if (configuration) {
|
2604
|
+
baseOptions = configuration.baseOptions;
|
2605
|
+
}
|
2606
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
2607
|
+
const localVarHeaderParameter = {};
|
2608
|
+
const localVarQueryParameter = {};
|
2609
|
+
// authentication customerJWT required
|
2610
|
+
// http bearer authentication required
|
2611
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
2612
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2613
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2614
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2615
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2616
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userPreferencesRequest, localVarRequestOptions, configuration);
|
2617
|
+
return {
|
2618
|
+
url: toPathString(localVarUrlObj),
|
2619
|
+
options: localVarRequestOptions,
|
2620
|
+
};
|
2621
|
+
}),
|
2627
2622
|
};
|
2628
2623
|
};
|
2629
2624
|
/**
|
@@ -2671,6 +2666,18 @@ export const NotificationApiFp = function (configuration) {
|
|
2671
2666
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2672
2667
|
});
|
2673
2668
|
},
|
2669
|
+
/**
|
2670
|
+
* Get preferences for the authenticated user
|
2671
|
+
* @summary Get preferences
|
2672
|
+
* @param {*} [options] Override http request option.
|
2673
|
+
* @throws {RequiredError}
|
2674
|
+
*/
|
2675
|
+
getUserPreferences(options) {
|
2676
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2677
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserPreferences(options);
|
2678
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2679
|
+
});
|
2680
|
+
},
|
2674
2681
|
/**
|
2675
2682
|
* List paginated notifications
|
2676
2683
|
* @summary List notifications
|
@@ -2711,6 +2718,19 @@ export const NotificationApiFp = function (configuration) {
|
|
2711
2718
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2712
2719
|
});
|
2713
2720
|
},
|
2721
|
+
/**
|
2722
|
+
* Update preferences for the authenticated user
|
2723
|
+
* @summary Update preferences
|
2724
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2725
|
+
* @param {*} [options] Override http request option.
|
2726
|
+
* @throws {RequiredError}
|
2727
|
+
*/
|
2728
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
2729
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2730
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserPreferences(userPreferencesRequest, options);
|
2731
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
2732
|
+
});
|
2733
|
+
},
|
2714
2734
|
};
|
2715
2735
|
};
|
2716
2736
|
/**
|
@@ -2749,6 +2769,15 @@ export const NotificationApiFactory = function (configuration, basePath, axios)
|
|
2749
2769
|
getPreferences(options) {
|
2750
2770
|
return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
|
2751
2771
|
},
|
2772
|
+
/**
|
2773
|
+
* Get preferences for the authenticated user
|
2774
|
+
* @summary Get preferences
|
2775
|
+
* @param {*} [options] Override http request option.
|
2776
|
+
* @throws {RequiredError}
|
2777
|
+
*/
|
2778
|
+
getUserPreferences(options) {
|
2779
|
+
return localVarFp.getUserPreferences(options).then((request) => request(axios, basePath));
|
2780
|
+
},
|
2752
2781
|
/**
|
2753
2782
|
* List paginated notifications
|
2754
2783
|
* @summary List notifications
|
@@ -2780,6 +2809,16 @@ export const NotificationApiFactory = function (configuration, basePath, axios)
|
|
2780
2809
|
updatePreferences(preferencesRequest, options) {
|
2781
2810
|
return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
|
2782
2811
|
},
|
2812
|
+
/**
|
2813
|
+
* Update preferences for the authenticated user
|
2814
|
+
* @summary Update preferences
|
2815
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2816
|
+
* @param {*} [options] Override http request option.
|
2817
|
+
* @throws {RequiredError}
|
2818
|
+
*/
|
2819
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
2820
|
+
return localVarFp.updateUserPreferences(userPreferencesRequest, options).then((request) => request(axios, basePath));
|
2821
|
+
},
|
2783
2822
|
};
|
2784
2823
|
};
|
2785
2824
|
/**
|
@@ -2821,6 +2860,16 @@ export class NotificationApi extends BaseAPI {
|
|
2821
2860
|
getPreferences(options) {
|
2822
2861
|
return NotificationApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
|
2823
2862
|
}
|
2863
|
+
/**
|
2864
|
+
* Get preferences for the authenticated user
|
2865
|
+
* @summary Get preferences
|
2866
|
+
* @param {*} [options] Override http request option.
|
2867
|
+
* @throws {RequiredError}
|
2868
|
+
* @memberof NotificationApi
|
2869
|
+
*/
|
2870
|
+
getUserPreferences(options) {
|
2871
|
+
return NotificationApiFp(this.configuration).getUserPreferences(options).then((request) => request(this.axios, this.basePath));
|
2872
|
+
}
|
2824
2873
|
/**
|
2825
2874
|
* List paginated notifications
|
2826
2875
|
* @summary List notifications
|
@@ -2855,6 +2904,17 @@ export class NotificationApi extends BaseAPI {
|
|
2855
2904
|
updatePreferences(preferencesRequest, options) {
|
2856
2905
|
return NotificationApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
2857
2906
|
}
|
2907
|
+
/**
|
2908
|
+
* Update preferences for the authenticated user
|
2909
|
+
* @summary Update preferences
|
2910
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
2911
|
+
* @param {*} [options] Override http request option.
|
2912
|
+
* @throws {RequiredError}
|
2913
|
+
* @memberof NotificationApi
|
2914
|
+
*/
|
2915
|
+
updateUserPreferences(userPreferencesRequest, options) {
|
2916
|
+
return NotificationApiFp(this.configuration).updateUserPreferences(userPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
2917
|
+
}
|
2858
2918
|
}
|
2859
2919
|
/**
|
2860
2920
|
* OrderApi - axios parameter creator
|
@@ -2862,37 +2922,6 @@ export class NotificationApi extends BaseAPI {
|
|
2862
2922
|
*/
|
2863
2923
|
export const OrderApiAxiosParamCreator = function (configuration) {
|
2864
2924
|
return {
|
2865
|
-
/**
|
2866
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2867
|
-
* @summary Create an order for a product
|
2868
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
2869
|
-
* @param {*} [options] Override http request option.
|
2870
|
-
* @throws {RequiredError}
|
2871
|
-
*/
|
2872
|
-
createAdminOrder: (adminOrderCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2873
|
-
const localVarPath = `/admins/orders`;
|
2874
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2875
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2876
|
-
let baseOptions;
|
2877
|
-
if (configuration) {
|
2878
|
-
baseOptions = configuration.baseOptions;
|
2879
|
-
}
|
2880
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
2881
|
-
const localVarHeaderParameter = {};
|
2882
|
-
const localVarQueryParameter = {};
|
2883
|
-
// authentication systemJWT required
|
2884
|
-
// http bearer authentication required
|
2885
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
2886
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2887
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2888
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2889
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2890
|
-
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderCreationRequest, localVarRequestOptions, configuration);
|
2891
|
-
return {
|
2892
|
-
url: toPathString(localVarUrlObj),
|
2893
|
-
options: localVarRequestOptions,
|
2894
|
-
};
|
2895
|
-
}),
|
2896
2925
|
/**
|
2897
2926
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2898
2927
|
* @summary Create an order for a product
|
@@ -2999,12 +3028,10 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
2999
3028
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3000
3029
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3001
3030
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3002
|
-
* @param {OrderKind} [kind] Filter by kind
|
3003
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3004
3031
|
* @param {*} [options] Override http request option.
|
3005
3032
|
* @throws {RequiredError}
|
3006
3033
|
*/
|
3007
|
-
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3034
|
+
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
3008
3035
|
const localVarPath = `/admins/orders`;
|
3009
3036
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3010
3037
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -3046,12 +3073,6 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
3046
3073
|
if (clientIDs) {
|
3047
3074
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
3048
3075
|
}
|
3049
|
-
if (kind !== undefined) {
|
3050
|
-
localVarQueryParameter['kind'] = kind;
|
3051
|
-
}
|
3052
|
-
if (source !== undefined) {
|
3053
|
-
localVarQueryParameter['source'] = source;
|
3054
|
-
}
|
3055
3076
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
3056
3077
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3057
3078
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -3129,19 +3150,6 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
3129
3150
|
export const OrderApiFp = function (configuration) {
|
3130
3151
|
const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration);
|
3131
3152
|
return {
|
3132
|
-
/**
|
3133
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3134
|
-
* @summary Create an order for a product
|
3135
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3136
|
-
* @param {*} [options] Override http request option.
|
3137
|
-
* @throws {RequiredError}
|
3138
|
-
*/
|
3139
|
-
createAdminOrder(adminOrderCreationRequest, options) {
|
3140
|
-
return __awaiter(this, void 0, void 0, function* () {
|
3141
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
|
3142
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3143
|
-
});
|
3144
|
-
},
|
3145
3153
|
/**
|
3146
3154
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3147
3155
|
* @summary Create an order for a product
|
@@ -3192,14 +3200,12 @@ export const OrderApiFp = function (configuration) {
|
|
3192
3200
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3193
3201
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3194
3202
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3195
|
-
* @param {OrderKind} [kind] Filter by kind
|
3196
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3197
3203
|
* @param {*} [options] Override http request option.
|
3198
3204
|
* @throws {RequiredError}
|
3199
3205
|
*/
|
3200
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3206
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3201
3207
|
return __awaiter(this, void 0, void 0, function* () {
|
3202
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3208
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
|
3203
3209
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3204
3210
|
});
|
3205
3211
|
},
|
@@ -3231,16 +3237,6 @@ export const OrderApiFp = function (configuration) {
|
|
3231
3237
|
export const OrderApiFactory = function (configuration, basePath, axios) {
|
3232
3238
|
const localVarFp = OrderApiFp(configuration);
|
3233
3239
|
return {
|
3234
|
-
/**
|
3235
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3236
|
-
* @summary Create an order for a product
|
3237
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3238
|
-
* @param {*} [options] Override http request option.
|
3239
|
-
* @throws {RequiredError}
|
3240
|
-
*/
|
3241
|
-
createAdminOrder(adminOrderCreationRequest, options) {
|
3242
|
-
return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
|
3243
|
-
},
|
3244
3240
|
/**
|
3245
3241
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3246
3242
|
* @summary Create an order for a product
|
@@ -3282,13 +3278,11 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3282
3278
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3283
3279
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3284
3280
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3285
|
-
* @param {OrderKind} [kind] Filter by kind
|
3286
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3287
3281
|
* @param {*} [options] Override http request option.
|
3288
3282
|
* @throws {RequiredError}
|
3289
3283
|
*/
|
3290
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3291
|
-
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3284
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3285
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
|
3292
3286
|
},
|
3293
3287
|
/**
|
3294
3288
|
* List existing orders
|
@@ -3315,17 +3309,6 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3315
3309
|
* @extends {BaseAPI}
|
3316
3310
|
*/
|
3317
3311
|
export class OrderApi extends BaseAPI {
|
3318
|
-
/**
|
3319
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3320
|
-
* @summary Create an order for a product
|
3321
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3322
|
-
* @param {*} [options] Override http request option.
|
3323
|
-
* @throws {RequiredError}
|
3324
|
-
* @memberof OrderApi
|
3325
|
-
*/
|
3326
|
-
createAdminOrder(adminOrderCreationRequest, options) {
|
3327
|
-
return OrderApiFp(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
3328
|
-
}
|
3329
3312
|
/**
|
3330
3313
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3331
3314
|
* @summary Create an order for a product
|
@@ -3370,14 +3353,12 @@ export class OrderApi extends BaseAPI {
|
|
3370
3353
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3371
3354
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3372
3355
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3373
|
-
* @param {OrderKind} [kind] Filter by kind
|
3374
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3375
3356
|
* @param {*} [options] Override http request option.
|
3376
3357
|
* @throws {RequiredError}
|
3377
3358
|
* @memberof OrderApi
|
3378
3359
|
*/
|
3379
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3380
|
-
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3360
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3361
|
+
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
3381
3362
|
}
|
3382
3363
|
/**
|
3383
3364
|
* List existing orders
|