flexinet-api 0.0.2223-prerelease0-dev → 0.0.2226-prerelease0-dev
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 +788 -71
- package/dist/api.d.ts +566 -10
- package/dist/api.js +318 -17
- package/dist/esm/api.d.ts +566 -10
- package/dist/esm/api.js +311 -14
- 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.
|
26
|
-
exports.
|
27
|
-
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UploadsApi = exports.UploadsApiFactory = exports.UploadsApiFp = exports.UploadsApiAxiosParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SegmentsApi = exports.SegmentsApiFactory = exports.SegmentsApiFp = exports.SegmentsApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.PromotionsApi = void 0;
|
25
|
+
exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventPriority = exports.TransactionEventKind = exports.TransactionCurrencyKind = 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.MinTurnoverRestrictionKindEnum = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Currency = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
|
26
|
+
exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationsApi = exports.IntegrationsApiFactory = exports.IntegrationsApiFp = exports.IntegrationsApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationsApi = exports.ConfigurationsApiFactory = exports.ConfigurationsApiFp = exports.ConfigurationsApiAxiosParamCreator = exports.ClientsApi = exports.ClientsApiFactory = exports.ClientsApiFp = exports.ClientsApiAxiosParamCreator = exports.CategoriesApi = exports.CategoriesApiFactory = exports.CategoriesApiFp = exports.CategoriesApiAxiosParamCreator = exports.BalancesApi = exports.BalancesApiFactory = exports.BalancesApiFp = exports.BalancesApiAxiosParamCreator = void 0;
|
27
|
+
exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UploadsApi = exports.UploadsApiFactory = exports.UploadsApiFp = exports.UploadsApiAxiosParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SegmentsApi = exports.SegmentsApiFactory = exports.SegmentsApiFp = exports.SegmentsApiAxiosParamCreator = exports.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.PromotionsApi = exports.PromotionsApiFactory = exports.PromotionsApiFp = exports.PromotionsApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = void 0;
|
28
28
|
const axios_1 = require("axios");
|
29
29
|
// Some imports not used depending on template conditions
|
30
30
|
// @ts-ignore
|
@@ -81,6 +81,17 @@ exports.Condition = {
|
|
81
81
|
Equals: 'equals',
|
82
82
|
Contains: 'contains'
|
83
83
|
};
|
84
|
+
/**
|
85
|
+
*
|
86
|
+
* @export
|
87
|
+
* @enum {string}
|
88
|
+
*/
|
89
|
+
exports.Currency = {
|
90
|
+
Eur: 'EUR',
|
91
|
+
Huf: 'HUF',
|
92
|
+
Ron: 'RON',
|
93
|
+
Usd: 'USD'
|
94
|
+
};
|
84
95
|
/**
|
85
96
|
*
|
86
97
|
* @export
|
@@ -1754,13 +1765,13 @@ const ConfigurationsApiAxiosParamCreator = function (configuration) {
|
|
1754
1765
|
/**
|
1755
1766
|
* Create or update backoffice configuration for the current tenant
|
1756
1767
|
* @summary Create configuration
|
1757
|
-
* @param {
|
1768
|
+
* @param {BackofficeConfigUpdateRequest} backofficeConfigUpdateRequest Configuration data
|
1758
1769
|
* @param {*} [options] Override http request option.
|
1759
1770
|
* @throws {RequiredError}
|
1760
1771
|
*/
|
1761
|
-
createConfiguration: (
|
1762
|
-
// verify required parameter '
|
1763
|
-
(0, common_1.assertParamExists)('createConfiguration', '
|
1772
|
+
createConfiguration: (backofficeConfigUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1773
|
+
// verify required parameter 'backofficeConfigUpdateRequest' is not null or undefined
|
1774
|
+
(0, common_1.assertParamExists)('createConfiguration', 'backofficeConfigUpdateRequest', backofficeConfigUpdateRequest);
|
1764
1775
|
const localVarPath = `/admins/configurations`;
|
1765
1776
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1766
1777
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -1778,7 +1789,40 @@ const ConfigurationsApiAxiosParamCreator = function (configuration) {
|
|
1778
1789
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1779
1790
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1780
1791
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1781
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
1792
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(backofficeConfigUpdateRequest, localVarRequestOptions, configuration);
|
1793
|
+
return {
|
1794
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
1795
|
+
options: localVarRequestOptions,
|
1796
|
+
};
|
1797
|
+
}),
|
1798
|
+
/**
|
1799
|
+
* Create or update backoffice configuration for the current tenant
|
1800
|
+
* @summary Create configuration
|
1801
|
+
* @param {TenantConfing} tenantConfing Configuration data
|
1802
|
+
* @param {*} [options] Override http request option.
|
1803
|
+
* @throws {RequiredError}
|
1804
|
+
*/
|
1805
|
+
createV2Configuration: (tenantConfing, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1806
|
+
// verify required parameter 'tenantConfing' is not null or undefined
|
1807
|
+
(0, common_1.assertParamExists)('createV2Configuration', 'tenantConfing', tenantConfing);
|
1808
|
+
const localVarPath = `/v2/admins/configurations`;
|
1809
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1810
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1811
|
+
let baseOptions;
|
1812
|
+
if (configuration) {
|
1813
|
+
baseOptions = configuration.baseOptions;
|
1814
|
+
}
|
1815
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
1816
|
+
const localVarHeaderParameter = {};
|
1817
|
+
const localVarQueryParameter = {};
|
1818
|
+
// authentication systemJWT required
|
1819
|
+
// http bearer authentication required
|
1820
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
1821
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1822
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1823
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1824
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1825
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tenantConfing, localVarRequestOptions, configuration);
|
1782
1826
|
return {
|
1783
1827
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
1784
1828
|
options: localVarRequestOptions,
|
@@ -1899,6 +1943,34 @@ const ConfigurationsApiAxiosParamCreator = function (configuration) {
|
|
1899
1943
|
options: localVarRequestOptions,
|
1900
1944
|
};
|
1901
1945
|
}),
|
1946
|
+
/**
|
1947
|
+
* List backoffice configurations for the current tenant
|
1948
|
+
* @summary List configurations
|
1949
|
+
* @param {*} [options] Override http request option.
|
1950
|
+
* @throws {RequiredError}
|
1951
|
+
*/
|
1952
|
+
listV2Configurations: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1953
|
+
const localVarPath = `/v2/admins/configurations`;
|
1954
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1955
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
1956
|
+
let baseOptions;
|
1957
|
+
if (configuration) {
|
1958
|
+
baseOptions = configuration.baseOptions;
|
1959
|
+
}
|
1960
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
1961
|
+
const localVarHeaderParameter = {};
|
1962
|
+
const localVarQueryParameter = {};
|
1963
|
+
// authentication systemJWT required
|
1964
|
+
// http bearer authentication required
|
1965
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
1966
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1967
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1968
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1969
|
+
return {
|
1970
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
1971
|
+
options: localVarRequestOptions,
|
1972
|
+
};
|
1973
|
+
}),
|
1902
1974
|
};
|
1903
1975
|
};
|
1904
1976
|
exports.ConfigurationsApiAxiosParamCreator = ConfigurationsApiAxiosParamCreator;
|
@@ -1912,13 +1984,26 @@ const ConfigurationsApiFp = function (configuration) {
|
|
1912
1984
|
/**
|
1913
1985
|
* Create or update backoffice configuration for the current tenant
|
1914
1986
|
* @summary Create configuration
|
1915
|
-
* @param {
|
1987
|
+
* @param {BackofficeConfigUpdateRequest} backofficeConfigUpdateRequest Configuration data
|
1988
|
+
* @param {*} [options] Override http request option.
|
1989
|
+
* @throws {RequiredError}
|
1990
|
+
*/
|
1991
|
+
createConfiguration(backofficeConfigUpdateRequest, options) {
|
1992
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1993
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createConfiguration(backofficeConfigUpdateRequest, options);
|
1994
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1995
|
+
});
|
1996
|
+
},
|
1997
|
+
/**
|
1998
|
+
* Create or update backoffice configuration for the current tenant
|
1999
|
+
* @summary Create configuration
|
2000
|
+
* @param {TenantConfing} tenantConfing Configuration data
|
1916
2001
|
* @param {*} [options] Override http request option.
|
1917
2002
|
* @throws {RequiredError}
|
1918
2003
|
*/
|
1919
|
-
|
2004
|
+
createV2Configuration(tenantConfing, options) {
|
1920
2005
|
return __awaiter(this, void 0, void 0, function* () {
|
1921
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
2006
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createV2Configuration(tenantConfing, options);
|
1922
2007
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1923
2008
|
});
|
1924
2009
|
},
|
@@ -1971,6 +2056,18 @@ const ConfigurationsApiFp = function (configuration) {
|
|
1971
2056
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1972
2057
|
});
|
1973
2058
|
},
|
2059
|
+
/**
|
2060
|
+
* List backoffice configurations for the current tenant
|
2061
|
+
* @summary List configurations
|
2062
|
+
* @param {*} [options] Override http request option.
|
2063
|
+
* @throws {RequiredError}
|
2064
|
+
*/
|
2065
|
+
listV2Configurations(options) {
|
2066
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2067
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listV2Configurations(options);
|
2068
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2069
|
+
});
|
2070
|
+
},
|
1974
2071
|
};
|
1975
2072
|
};
|
1976
2073
|
exports.ConfigurationsApiFp = ConfigurationsApiFp;
|
@@ -1984,12 +2081,22 @@ const ConfigurationsApiFactory = function (configuration, basePath, axios) {
|
|
1984
2081
|
/**
|
1985
2082
|
* Create or update backoffice configuration for the current tenant
|
1986
2083
|
* @summary Create configuration
|
1987
|
-
* @param {
|
2084
|
+
* @param {BackofficeConfigUpdateRequest} backofficeConfigUpdateRequest Configuration data
|
2085
|
+
* @param {*} [options] Override http request option.
|
2086
|
+
* @throws {RequiredError}
|
2087
|
+
*/
|
2088
|
+
createConfiguration(backofficeConfigUpdateRequest, options) {
|
2089
|
+
return localVarFp.createConfiguration(backofficeConfigUpdateRequest, options).then((request) => request(axios, basePath));
|
2090
|
+
},
|
2091
|
+
/**
|
2092
|
+
* Create or update backoffice configuration for the current tenant
|
2093
|
+
* @summary Create configuration
|
2094
|
+
* @param {TenantConfing} tenantConfing Configuration data
|
1988
2095
|
* @param {*} [options] Override http request option.
|
1989
2096
|
* @throws {RequiredError}
|
1990
2097
|
*/
|
1991
|
-
|
1992
|
-
return localVarFp.
|
2098
|
+
createV2Configuration(tenantConfing, options) {
|
2099
|
+
return localVarFp.createV2Configuration(tenantConfing, options).then((request) => request(axios, basePath));
|
1993
2100
|
},
|
1994
2101
|
/**
|
1995
2102
|
* List backoffice configurations for the current tenant
|
@@ -2028,6 +2135,15 @@ const ConfigurationsApiFactory = function (configuration, basePath, axios) {
|
|
2028
2135
|
listUserFeatures(options) {
|
2029
2136
|
return localVarFp.listUserFeatures(options).then((request) => request(axios, basePath));
|
2030
2137
|
},
|
2138
|
+
/**
|
2139
|
+
* List backoffice configurations for the current tenant
|
2140
|
+
* @summary List configurations
|
2141
|
+
* @param {*} [options] Override http request option.
|
2142
|
+
* @throws {RequiredError}
|
2143
|
+
*/
|
2144
|
+
listV2Configurations(options) {
|
2145
|
+
return localVarFp.listV2Configurations(options).then((request) => request(axios, basePath));
|
2146
|
+
},
|
2031
2147
|
};
|
2032
2148
|
};
|
2033
2149
|
exports.ConfigurationsApiFactory = ConfigurationsApiFactory;
|
@@ -2041,13 +2157,24 @@ class ConfigurationsApi extends base_1.BaseAPI {
|
|
2041
2157
|
/**
|
2042
2158
|
* Create or update backoffice configuration for the current tenant
|
2043
2159
|
* @summary Create configuration
|
2044
|
-
* @param {
|
2160
|
+
* @param {BackofficeConfigUpdateRequest} backofficeConfigUpdateRequest Configuration data
|
2161
|
+
* @param {*} [options] Override http request option.
|
2162
|
+
* @throws {RequiredError}
|
2163
|
+
* @memberof ConfigurationsApi
|
2164
|
+
*/
|
2165
|
+
createConfiguration(backofficeConfigUpdateRequest, options) {
|
2166
|
+
return (0, exports.ConfigurationsApiFp)(this.configuration).createConfiguration(backofficeConfigUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
2167
|
+
}
|
2168
|
+
/**
|
2169
|
+
* Create or update backoffice configuration for the current tenant
|
2170
|
+
* @summary Create configuration
|
2171
|
+
* @param {TenantConfing} tenantConfing Configuration data
|
2045
2172
|
* @param {*} [options] Override http request option.
|
2046
2173
|
* @throws {RequiredError}
|
2047
2174
|
* @memberof ConfigurationsApi
|
2048
2175
|
*/
|
2049
|
-
|
2050
|
-
return (0, exports.ConfigurationsApiFp)(this.configuration).
|
2176
|
+
createV2Configuration(tenantConfing, options) {
|
2177
|
+
return (0, exports.ConfigurationsApiFp)(this.configuration).createV2Configuration(tenantConfing, options).then((request) => request(this.axios, this.basePath));
|
2051
2178
|
}
|
2052
2179
|
/**
|
2053
2180
|
* List backoffice configurations for the current tenant
|
@@ -2090,6 +2217,16 @@ class ConfigurationsApi extends base_1.BaseAPI {
|
|
2090
2217
|
listUserFeatures(options) {
|
2091
2218
|
return (0, exports.ConfigurationsApiFp)(this.configuration).listUserFeatures(options).then((request) => request(this.axios, this.basePath));
|
2092
2219
|
}
|
2220
|
+
/**
|
2221
|
+
* List backoffice configurations for the current tenant
|
2222
|
+
* @summary List configurations
|
2223
|
+
* @param {*} [options] Override http request option.
|
2224
|
+
* @throws {RequiredError}
|
2225
|
+
* @memberof ConfigurationsApi
|
2226
|
+
*/
|
2227
|
+
listV2Configurations(options) {
|
2228
|
+
return (0, exports.ConfigurationsApiFp)(this.configuration).listV2Configurations(options).then((request) => request(this.axios, this.basePath));
|
2229
|
+
}
|
2093
2230
|
}
|
2094
2231
|
exports.ConfigurationsApi = ConfigurationsApi;
|
2095
2232
|
/**
|
@@ -2760,6 +2897,170 @@ class IntegrationsApi extends base_1.BaseAPI {
|
|
2760
2897
|
}
|
2761
2898
|
}
|
2762
2899
|
exports.IntegrationsApi = IntegrationsApi;
|
2900
|
+
/**
|
2901
|
+
* NotificationApi - axios parameter creator
|
2902
|
+
* @export
|
2903
|
+
*/
|
2904
|
+
const NotificationApiAxiosParamCreator = function (configuration) {
|
2905
|
+
return {
|
2906
|
+
/**
|
2907
|
+
* Get preferences for the authenticated user
|
2908
|
+
* @summary Get preferences
|
2909
|
+
* @param {*} [options] Override http request option.
|
2910
|
+
* @throws {RequiredError}
|
2911
|
+
*/
|
2912
|
+
getSystemPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2913
|
+
const localVarPath = `/admins/preferences/system`;
|
2914
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2915
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2916
|
+
let baseOptions;
|
2917
|
+
if (configuration) {
|
2918
|
+
baseOptions = configuration.baseOptions;
|
2919
|
+
}
|
2920
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2921
|
+
const localVarHeaderParameter = {};
|
2922
|
+
const localVarQueryParameter = {};
|
2923
|
+
// authentication customerJWT required
|
2924
|
+
// http bearer authentication required
|
2925
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2926
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2927
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2928
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2929
|
+
return {
|
2930
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
2931
|
+
options: localVarRequestOptions,
|
2932
|
+
};
|
2933
|
+
}),
|
2934
|
+
/**
|
2935
|
+
* Update preferences for the authenticated user
|
2936
|
+
* @summary Update preferences
|
2937
|
+
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
2938
|
+
* @param {*} [options] Override http request option.
|
2939
|
+
* @throws {RequiredError}
|
2940
|
+
*/
|
2941
|
+
updateSystemPreferences: (notificationPreference, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2942
|
+
// verify required parameter 'notificationPreference' is not null or undefined
|
2943
|
+
(0, common_1.assertParamExists)('updateSystemPreferences', 'notificationPreference', notificationPreference);
|
2944
|
+
const localVarPath = `/admins/preferences/system`;
|
2945
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2946
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2947
|
+
let baseOptions;
|
2948
|
+
if (configuration) {
|
2949
|
+
baseOptions = configuration.baseOptions;
|
2950
|
+
}
|
2951
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
2952
|
+
const localVarHeaderParameter = {};
|
2953
|
+
const localVarQueryParameter = {};
|
2954
|
+
// authentication customerJWT required
|
2955
|
+
// http bearer authentication required
|
2956
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2957
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2958
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2959
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2960
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2961
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(notificationPreference, localVarRequestOptions, configuration);
|
2962
|
+
return {
|
2963
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
2964
|
+
options: localVarRequestOptions,
|
2965
|
+
};
|
2966
|
+
}),
|
2967
|
+
};
|
2968
|
+
};
|
2969
|
+
exports.NotificationApiAxiosParamCreator = NotificationApiAxiosParamCreator;
|
2970
|
+
/**
|
2971
|
+
* NotificationApi - functional programming interface
|
2972
|
+
* @export
|
2973
|
+
*/
|
2974
|
+
const NotificationApiFp = function (configuration) {
|
2975
|
+
const localVarAxiosParamCreator = (0, exports.NotificationApiAxiosParamCreator)(configuration);
|
2976
|
+
return {
|
2977
|
+
/**
|
2978
|
+
* Get preferences for the authenticated user
|
2979
|
+
* @summary Get preferences
|
2980
|
+
* @param {*} [options] Override http request option.
|
2981
|
+
* @throws {RequiredError}
|
2982
|
+
*/
|
2983
|
+
getSystemPreferences(options) {
|
2984
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2985
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSystemPreferences(options);
|
2986
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2987
|
+
});
|
2988
|
+
},
|
2989
|
+
/**
|
2990
|
+
* Update preferences for the authenticated user
|
2991
|
+
* @summary Update preferences
|
2992
|
+
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
2993
|
+
* @param {*} [options] Override http request option.
|
2994
|
+
* @throws {RequiredError}
|
2995
|
+
*/
|
2996
|
+
updateSystemPreferences(notificationPreference, options) {
|
2997
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2998
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSystemPreferences(notificationPreference, options);
|
2999
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3000
|
+
});
|
3001
|
+
},
|
3002
|
+
};
|
3003
|
+
};
|
3004
|
+
exports.NotificationApiFp = NotificationApiFp;
|
3005
|
+
/**
|
3006
|
+
* NotificationApi - factory interface
|
3007
|
+
* @export
|
3008
|
+
*/
|
3009
|
+
const NotificationApiFactory = function (configuration, basePath, axios) {
|
3010
|
+
const localVarFp = (0, exports.NotificationApiFp)(configuration);
|
3011
|
+
return {
|
3012
|
+
/**
|
3013
|
+
* Get preferences for the authenticated user
|
3014
|
+
* @summary Get preferences
|
3015
|
+
* @param {*} [options] Override http request option.
|
3016
|
+
* @throws {RequiredError}
|
3017
|
+
*/
|
3018
|
+
getSystemPreferences(options) {
|
3019
|
+
return localVarFp.getSystemPreferences(options).then((request) => request(axios, basePath));
|
3020
|
+
},
|
3021
|
+
/**
|
3022
|
+
* Update preferences for the authenticated user
|
3023
|
+
* @summary Update preferences
|
3024
|
+
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
3025
|
+
* @param {*} [options] Override http request option.
|
3026
|
+
* @throws {RequiredError}
|
3027
|
+
*/
|
3028
|
+
updateSystemPreferences(notificationPreference, options) {
|
3029
|
+
return localVarFp.updateSystemPreferences(notificationPreference, options).then((request) => request(axios, basePath));
|
3030
|
+
},
|
3031
|
+
};
|
3032
|
+
};
|
3033
|
+
exports.NotificationApiFactory = NotificationApiFactory;
|
3034
|
+
/**
|
3035
|
+
* NotificationApi - object-oriented interface
|
3036
|
+
* @export
|
3037
|
+
* @class NotificationApi
|
3038
|
+
* @extends {BaseAPI}
|
3039
|
+
*/
|
3040
|
+
class NotificationApi extends base_1.BaseAPI {
|
3041
|
+
/**
|
3042
|
+
* Get preferences for the authenticated user
|
3043
|
+
* @summary Get preferences
|
3044
|
+
* @param {*} [options] Override http request option.
|
3045
|
+
* @throws {RequiredError}
|
3046
|
+
* @memberof NotificationApi
|
3047
|
+
*/
|
3048
|
+
getSystemPreferences(options) {
|
3049
|
+
return (0, exports.NotificationApiFp)(this.configuration).getSystemPreferences(options).then((request) => request(this.axios, this.basePath));
|
3050
|
+
}
|
3051
|
+
/**
|
3052
|
+
* Update preferences for the authenticated user
|
3053
|
+
* @summary Update preferences
|
3054
|
+
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
3055
|
+
* @param {*} [options] Override http request option.
|
3056
|
+
* @throws {RequiredError}
|
3057
|
+
* @memberof NotificationApi
|
3058
|
+
*/
|
3059
|
+
updateSystemPreferences(notificationPreference, options) {
|
3060
|
+
return (0, exports.NotificationApiFp)(this.configuration).updateSystemPreferences(notificationPreference, options).then((request) => request(this.axios, this.basePath));
|
3061
|
+
}
|
3062
|
+
}
|
3063
|
+
exports.NotificationApi = NotificationApi;
|
2763
3064
|
/**
|
2764
3065
|
* NotificationsApi - axios parameter creator
|
2765
3066
|
* @export
|