flexinet-api 0.0.2303 → 0.0.2306
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 +753 -209
- package/dist/api.d.ts +678 -113
- package/dist/api.js +142 -180
- package/dist/esm/api.d.ts +678 -113
- package/dist/esm/api.js +140 -174
- package/package.json +1 -1
package/dist/api.js
CHANGED
@@ -23,8 +23,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
23
23
|
};
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
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.
|
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 =
|
26
|
+
exports.PromotionsApiFp = exports.PromotionsApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = 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.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 = void 0;
|
28
28
|
const axios_1 = require("axios");
|
29
29
|
// Some imports not used depending on template conditions
|
30
30
|
// @ts-ignore
|
@@ -1799,13 +1799,13 @@ const ConfigurationsApiAxiosParamCreator = function (configuration) {
|
|
1799
1799
|
/**
|
1800
1800
|
* Create or update backoffice configuration for the current tenant
|
1801
1801
|
* @summary Create configuration
|
1802
|
-
* @param {
|
1802
|
+
* @param {TenantConfingRequest} tenantConfingRequest Configuration data
|
1803
1803
|
* @param {*} [options] Override http request option.
|
1804
1804
|
* @throws {RequiredError}
|
1805
1805
|
*/
|
1806
|
-
createV2Configuration: (
|
1807
|
-
// verify required parameter '
|
1808
|
-
(0, common_1.assertParamExists)('createV2Configuration', '
|
1806
|
+
createV2Configuration: (tenantConfingRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1807
|
+
// verify required parameter 'tenantConfingRequest' is not null or undefined
|
1808
|
+
(0, common_1.assertParamExists)('createV2Configuration', 'tenantConfingRequest', tenantConfingRequest);
|
1809
1809
|
const localVarPath = `/v2/admins/configurations`;
|
1810
1810
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1811
1811
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -1823,7 +1823,7 @@ const ConfigurationsApiAxiosParamCreator = function (configuration) {
|
|
1823
1823
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1824
1824
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1825
1825
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1826
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
1826
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tenantConfingRequest, localVarRequestOptions, configuration);
|
1827
1827
|
return {
|
1828
1828
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
1829
1829
|
options: localVarRequestOptions,
|
@@ -1998,13 +1998,13 @@ const ConfigurationsApiFp = function (configuration) {
|
|
1998
1998
|
/**
|
1999
1999
|
* Create or update backoffice configuration for the current tenant
|
2000
2000
|
* @summary Create configuration
|
2001
|
-
* @param {
|
2001
|
+
* @param {TenantConfingRequest} tenantConfingRequest Configuration data
|
2002
2002
|
* @param {*} [options] Override http request option.
|
2003
2003
|
* @throws {RequiredError}
|
2004
2004
|
*/
|
2005
|
-
createV2Configuration(
|
2005
|
+
createV2Configuration(tenantConfingRequest, options) {
|
2006
2006
|
return __awaiter(this, void 0, void 0, function* () {
|
2007
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createV2Configuration(
|
2007
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createV2Configuration(tenantConfingRequest, options);
|
2008
2008
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2009
2009
|
});
|
2010
2010
|
},
|
@@ -2092,12 +2092,12 @@ const ConfigurationsApiFactory = function (configuration, basePath, axios) {
|
|
2092
2092
|
/**
|
2093
2093
|
* Create or update backoffice configuration for the current tenant
|
2094
2094
|
* @summary Create configuration
|
2095
|
-
* @param {
|
2095
|
+
* @param {TenantConfingRequest} tenantConfingRequest Configuration data
|
2096
2096
|
* @param {*} [options] Override http request option.
|
2097
2097
|
* @throws {RequiredError}
|
2098
2098
|
*/
|
2099
|
-
createV2Configuration(
|
2100
|
-
return localVarFp.createV2Configuration(
|
2099
|
+
createV2Configuration(tenantConfingRequest, options) {
|
2100
|
+
return localVarFp.createV2Configuration(tenantConfingRequest, options).then((request) => request(axios, basePath));
|
2101
2101
|
},
|
2102
2102
|
/**
|
2103
2103
|
* List backoffice configurations for the current tenant
|
@@ -2169,13 +2169,13 @@ class ConfigurationsApi extends base_1.BaseAPI {
|
|
2169
2169
|
/**
|
2170
2170
|
* Create or update backoffice configuration for the current tenant
|
2171
2171
|
* @summary Create configuration
|
2172
|
-
* @param {
|
2172
|
+
* @param {TenantConfingRequest} tenantConfingRequest Configuration data
|
2173
2173
|
* @param {*} [options] Override http request option.
|
2174
2174
|
* @throws {RequiredError}
|
2175
2175
|
* @memberof ConfigurationsApi
|
2176
2176
|
*/
|
2177
|
-
createV2Configuration(
|
2178
|
-
return (0, exports.ConfigurationsApiFp)(this.configuration).createV2Configuration(
|
2177
|
+
createV2Configuration(tenantConfingRequest, options) {
|
2178
|
+
return (0, exports.ConfigurationsApiFp)(this.configuration).createV2Configuration(tenantConfingRequest, options).then((request) => request(this.axios, this.basePath));
|
2179
2179
|
}
|
2180
2180
|
/**
|
2181
2181
|
* List backoffice configurations for the current tenant
|
@@ -2973,170 +2973,6 @@ class IntegrationsApi extends base_1.BaseAPI {
|
|
2973
2973
|
}
|
2974
2974
|
}
|
2975
2975
|
exports.IntegrationsApi = IntegrationsApi;
|
2976
|
-
/**
|
2977
|
-
* NotificationApi - axios parameter creator
|
2978
|
-
* @export
|
2979
|
-
*/
|
2980
|
-
const NotificationApiAxiosParamCreator = function (configuration) {
|
2981
|
-
return {
|
2982
|
-
/**
|
2983
|
-
* Get preferences for the authenticated user
|
2984
|
-
* @summary Get preferences
|
2985
|
-
* @param {*} [options] Override http request option.
|
2986
|
-
* @throws {RequiredError}
|
2987
|
-
*/
|
2988
|
-
getSystemPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2989
|
-
const localVarPath = `/admins/preferences/system`;
|
2990
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2991
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2992
|
-
let baseOptions;
|
2993
|
-
if (configuration) {
|
2994
|
-
baseOptions = configuration.baseOptions;
|
2995
|
-
}
|
2996
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2997
|
-
const localVarHeaderParameter = {};
|
2998
|
-
const localVarQueryParameter = {};
|
2999
|
-
// authentication systemJWT required
|
3000
|
-
// http bearer authentication required
|
3001
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
3002
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
3003
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3004
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
3005
|
-
return {
|
3006
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
3007
|
-
options: localVarRequestOptions,
|
3008
|
-
};
|
3009
|
-
}),
|
3010
|
-
/**
|
3011
|
-
* Update preferences for the authenticated user
|
3012
|
-
* @summary Update preferences
|
3013
|
-
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
3014
|
-
* @param {*} [options] Override http request option.
|
3015
|
-
* @throws {RequiredError}
|
3016
|
-
*/
|
3017
|
-
updateSystemPreferences: (notificationPreference, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
3018
|
-
// verify required parameter 'notificationPreference' is not null or undefined
|
3019
|
-
(0, common_1.assertParamExists)('updateSystemPreferences', 'notificationPreference', notificationPreference);
|
3020
|
-
const localVarPath = `/admins/preferences/system`;
|
3021
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3022
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
3023
|
-
let baseOptions;
|
3024
|
-
if (configuration) {
|
3025
|
-
baseOptions = configuration.baseOptions;
|
3026
|
-
}
|
3027
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
3028
|
-
const localVarHeaderParameter = {};
|
3029
|
-
const localVarQueryParameter = {};
|
3030
|
-
// authentication systemJWT required
|
3031
|
-
// http bearer authentication required
|
3032
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
3033
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3034
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
3035
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3036
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
3037
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(notificationPreference, localVarRequestOptions, configuration);
|
3038
|
-
return {
|
3039
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
3040
|
-
options: localVarRequestOptions,
|
3041
|
-
};
|
3042
|
-
}),
|
3043
|
-
};
|
3044
|
-
};
|
3045
|
-
exports.NotificationApiAxiosParamCreator = NotificationApiAxiosParamCreator;
|
3046
|
-
/**
|
3047
|
-
* NotificationApi - functional programming interface
|
3048
|
-
* @export
|
3049
|
-
*/
|
3050
|
-
const NotificationApiFp = function (configuration) {
|
3051
|
-
const localVarAxiosParamCreator = (0, exports.NotificationApiAxiosParamCreator)(configuration);
|
3052
|
-
return {
|
3053
|
-
/**
|
3054
|
-
* Get preferences for the authenticated user
|
3055
|
-
* @summary Get preferences
|
3056
|
-
* @param {*} [options] Override http request option.
|
3057
|
-
* @throws {RequiredError}
|
3058
|
-
*/
|
3059
|
-
getSystemPreferences(options) {
|
3060
|
-
return __awaiter(this, void 0, void 0, function* () {
|
3061
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSystemPreferences(options);
|
3062
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3063
|
-
});
|
3064
|
-
},
|
3065
|
-
/**
|
3066
|
-
* Update preferences for the authenticated user
|
3067
|
-
* @summary Update preferences
|
3068
|
-
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
3069
|
-
* @param {*} [options] Override http request option.
|
3070
|
-
* @throws {RequiredError}
|
3071
|
-
*/
|
3072
|
-
updateSystemPreferences(notificationPreference, options) {
|
3073
|
-
return __awaiter(this, void 0, void 0, function* () {
|
3074
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSystemPreferences(notificationPreference, options);
|
3075
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3076
|
-
});
|
3077
|
-
},
|
3078
|
-
};
|
3079
|
-
};
|
3080
|
-
exports.NotificationApiFp = NotificationApiFp;
|
3081
|
-
/**
|
3082
|
-
* NotificationApi - factory interface
|
3083
|
-
* @export
|
3084
|
-
*/
|
3085
|
-
const NotificationApiFactory = function (configuration, basePath, axios) {
|
3086
|
-
const localVarFp = (0, exports.NotificationApiFp)(configuration);
|
3087
|
-
return {
|
3088
|
-
/**
|
3089
|
-
* Get preferences for the authenticated user
|
3090
|
-
* @summary Get preferences
|
3091
|
-
* @param {*} [options] Override http request option.
|
3092
|
-
* @throws {RequiredError}
|
3093
|
-
*/
|
3094
|
-
getSystemPreferences(options) {
|
3095
|
-
return localVarFp.getSystemPreferences(options).then((request) => request(axios, basePath));
|
3096
|
-
},
|
3097
|
-
/**
|
3098
|
-
* Update preferences for the authenticated user
|
3099
|
-
* @summary Update preferences
|
3100
|
-
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
3101
|
-
* @param {*} [options] Override http request option.
|
3102
|
-
* @throws {RequiredError}
|
3103
|
-
*/
|
3104
|
-
updateSystemPreferences(notificationPreference, options) {
|
3105
|
-
return localVarFp.updateSystemPreferences(notificationPreference, options).then((request) => request(axios, basePath));
|
3106
|
-
},
|
3107
|
-
};
|
3108
|
-
};
|
3109
|
-
exports.NotificationApiFactory = NotificationApiFactory;
|
3110
|
-
/**
|
3111
|
-
* NotificationApi - object-oriented interface
|
3112
|
-
* @export
|
3113
|
-
* @class NotificationApi
|
3114
|
-
* @extends {BaseAPI}
|
3115
|
-
*/
|
3116
|
-
class NotificationApi extends base_1.BaseAPI {
|
3117
|
-
/**
|
3118
|
-
* Get preferences for the authenticated user
|
3119
|
-
* @summary Get preferences
|
3120
|
-
* @param {*} [options] Override http request option.
|
3121
|
-
* @throws {RequiredError}
|
3122
|
-
* @memberof NotificationApi
|
3123
|
-
*/
|
3124
|
-
getSystemPreferences(options) {
|
3125
|
-
return (0, exports.NotificationApiFp)(this.configuration).getSystemPreferences(options).then((request) => request(this.axios, this.basePath));
|
3126
|
-
}
|
3127
|
-
/**
|
3128
|
-
* Update preferences for the authenticated user
|
3129
|
-
* @summary Update preferences
|
3130
|
-
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
3131
|
-
* @param {*} [options] Override http request option.
|
3132
|
-
* @throws {RequiredError}
|
3133
|
-
* @memberof NotificationApi
|
3134
|
-
*/
|
3135
|
-
updateSystemPreferences(notificationPreference, options) {
|
3136
|
-
return (0, exports.NotificationApiFp)(this.configuration).updateSystemPreferences(notificationPreference, options).then((request) => request(this.axios, this.basePath));
|
3137
|
-
}
|
3138
|
-
}
|
3139
|
-
exports.NotificationApi = NotificationApi;
|
3140
2976
|
/**
|
3141
2977
|
* NotificationsApi - axios parameter creator
|
3142
2978
|
* @export
|
@@ -3236,6 +3072,34 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
3236
3072
|
options: localVarRequestOptions,
|
3237
3073
|
};
|
3238
3074
|
}),
|
3075
|
+
/**
|
3076
|
+
* Get preferences for the authenticated user
|
3077
|
+
* @summary Get preferences
|
3078
|
+
* @param {*} [options] Override http request option.
|
3079
|
+
* @throws {RequiredError}
|
3080
|
+
*/
|
3081
|
+
getSystemPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
3082
|
+
const localVarPath = `/admins/preferences/system`;
|
3083
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3084
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
3085
|
+
let baseOptions;
|
3086
|
+
if (configuration) {
|
3087
|
+
baseOptions = configuration.baseOptions;
|
3088
|
+
}
|
3089
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
3090
|
+
const localVarHeaderParameter = {};
|
3091
|
+
const localVarQueryParameter = {};
|
3092
|
+
// authentication systemJWT required
|
3093
|
+
// http bearer authentication required
|
3094
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
3095
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
3096
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3097
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
3098
|
+
return {
|
3099
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
3100
|
+
options: localVarRequestOptions,
|
3101
|
+
};
|
3102
|
+
}),
|
3239
3103
|
/**
|
3240
3104
|
* Get notification preferences for the authenticated user
|
3241
3105
|
* @summary Get notification preferences
|
@@ -3365,6 +3229,39 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
3365
3229
|
options: localVarRequestOptions,
|
3366
3230
|
};
|
3367
3231
|
}),
|
3232
|
+
/**
|
3233
|
+
* Update preferences for the authenticated user
|
3234
|
+
* @summary Update preferences
|
3235
|
+
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
3236
|
+
* @param {*} [options] Override http request option.
|
3237
|
+
* @throws {RequiredError}
|
3238
|
+
*/
|
3239
|
+
updateSystemPreferences: (notificationPreference, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
3240
|
+
// verify required parameter 'notificationPreference' is not null or undefined
|
3241
|
+
(0, common_1.assertParamExists)('updateSystemPreferences', 'notificationPreference', notificationPreference);
|
3242
|
+
const localVarPath = `/admins/preferences/system`;
|
3243
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
3244
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
3245
|
+
let baseOptions;
|
3246
|
+
if (configuration) {
|
3247
|
+
baseOptions = configuration.baseOptions;
|
3248
|
+
}
|
3249
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
3250
|
+
const localVarHeaderParameter = {};
|
3251
|
+
const localVarQueryParameter = {};
|
3252
|
+
// authentication systemJWT required
|
3253
|
+
// http bearer authentication required
|
3254
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
3255
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
3256
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
3257
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3258
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
3259
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(notificationPreference, localVarRequestOptions, configuration);
|
3260
|
+
return {
|
3261
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
3262
|
+
options: localVarRequestOptions,
|
3263
|
+
};
|
3264
|
+
}),
|
3368
3265
|
/**
|
3369
3266
|
* Update notification preferences for the authenticated user
|
3370
3267
|
* @summary Update notification preferences
|
@@ -3446,6 +3343,18 @@ const NotificationsApiFp = function (configuration) {
|
|
3446
3343
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3447
3344
|
});
|
3448
3345
|
},
|
3346
|
+
/**
|
3347
|
+
* Get preferences for the authenticated user
|
3348
|
+
* @summary Get preferences
|
3349
|
+
* @param {*} [options] Override http request option.
|
3350
|
+
* @throws {RequiredError}
|
3351
|
+
*/
|
3352
|
+
getSystemPreferences(options) {
|
3353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
3354
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSystemPreferences(options);
|
3355
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3356
|
+
});
|
3357
|
+
},
|
3449
3358
|
/**
|
3450
3359
|
* Get notification preferences for the authenticated user
|
3451
3360
|
* @summary Get notification preferences
|
@@ -3498,6 +3407,19 @@ const NotificationsApiFp = function (configuration) {
|
|
3498
3407
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3499
3408
|
});
|
3500
3409
|
},
|
3410
|
+
/**
|
3411
|
+
* Update preferences for the authenticated user
|
3412
|
+
* @summary Update preferences
|
3413
|
+
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
3414
|
+
* @param {*} [options] Override http request option.
|
3415
|
+
* @throws {RequiredError}
|
3416
|
+
*/
|
3417
|
+
updateSystemPreferences(notificationPreference, options) {
|
3418
|
+
return __awaiter(this, void 0, void 0, function* () {
|
3419
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSystemPreferences(notificationPreference, options);
|
3420
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3421
|
+
});
|
3422
|
+
},
|
3501
3423
|
/**
|
3502
3424
|
* Update notification preferences for the authenticated user
|
3503
3425
|
* @summary Update notification preferences
|
@@ -3550,6 +3472,15 @@ const NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
3550
3472
|
getPreferences(options) {
|
3551
3473
|
return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
|
3552
3474
|
},
|
3475
|
+
/**
|
3476
|
+
* Get preferences for the authenticated user
|
3477
|
+
* @summary Get preferences
|
3478
|
+
* @param {*} [options] Override http request option.
|
3479
|
+
* @throws {RequiredError}
|
3480
|
+
*/
|
3481
|
+
getSystemPreferences(options) {
|
3482
|
+
return localVarFp.getSystemPreferences(options).then((request) => request(axios, basePath));
|
3483
|
+
},
|
3553
3484
|
/**
|
3554
3485
|
* Get notification preferences for the authenticated user
|
3555
3486
|
* @summary Get notification preferences
|
@@ -3590,6 +3521,16 @@ const NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
3590
3521
|
updatePreferences(preferencesRequest, options) {
|
3591
3522
|
return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
|
3592
3523
|
},
|
3524
|
+
/**
|
3525
|
+
* Update preferences for the authenticated user
|
3526
|
+
* @summary Update preferences
|
3527
|
+
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
3528
|
+
* @param {*} [options] Override http request option.
|
3529
|
+
* @throws {RequiredError}
|
3530
|
+
*/
|
3531
|
+
updateSystemPreferences(notificationPreference, options) {
|
3532
|
+
return localVarFp.updateSystemPreferences(notificationPreference, options).then((request) => request(axios, basePath));
|
3533
|
+
},
|
3593
3534
|
/**
|
3594
3535
|
* Update notification preferences for the authenticated user
|
3595
3536
|
* @summary Update notification preferences
|
@@ -3642,6 +3583,16 @@ class NotificationsApi extends base_1.BaseAPI {
|
|
3642
3583
|
getPreferences(options) {
|
3643
3584
|
return (0, exports.NotificationsApiFp)(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
|
3644
3585
|
}
|
3586
|
+
/**
|
3587
|
+
* Get preferences for the authenticated user
|
3588
|
+
* @summary Get preferences
|
3589
|
+
* @param {*} [options] Override http request option.
|
3590
|
+
* @throws {RequiredError}
|
3591
|
+
* @memberof NotificationsApi
|
3592
|
+
*/
|
3593
|
+
getSystemPreferences(options) {
|
3594
|
+
return (0, exports.NotificationsApiFp)(this.configuration).getSystemPreferences(options).then((request) => request(this.axios, this.basePath));
|
3595
|
+
}
|
3645
3596
|
/**
|
3646
3597
|
* Get notification preferences for the authenticated user
|
3647
3598
|
* @summary Get notification preferences
|
@@ -3686,6 +3637,17 @@ class NotificationsApi extends base_1.BaseAPI {
|
|
3686
3637
|
updatePreferences(preferencesRequest, options) {
|
3687
3638
|
return (0, exports.NotificationsApiFp)(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
3688
3639
|
}
|
3640
|
+
/**
|
3641
|
+
* Update preferences for the authenticated user
|
3642
|
+
* @summary Update preferences
|
3643
|
+
* @param {Array<NotificationPreference>} notificationPreference notification preferences
|
3644
|
+
* @param {*} [options] Override http request option.
|
3645
|
+
* @throws {RequiredError}
|
3646
|
+
* @memberof NotificationsApi
|
3647
|
+
*/
|
3648
|
+
updateSystemPreferences(notificationPreference, options) {
|
3649
|
+
return (0, exports.NotificationsApiFp)(this.configuration).updateSystemPreferences(notificationPreference, options).then((request) => request(this.axios, this.basePath));
|
3650
|
+
}
|
3689
3651
|
/**
|
3690
3652
|
* Update notification preferences for the authenticated user
|
3691
3653
|
* @summary Update notification preferences
|