flexinet-api 0.0.2304 → 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 +999 -251
- package/dist/api.d.ts +889 -200
- package/dist/api.js +280 -183
- package/dist/esm/api.d.ts +889 -200
- package/dist/esm/api.js +278 -177
- 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
|
@@ -117,7 +117,8 @@ exports.Feature = {
|
|
117
117
|
UserInfo: 'user_info',
|
118
118
|
ExternalInventory: 'external_inventory',
|
119
119
|
OrderEvents: 'order_events',
|
120
|
-
OrderStatusPolling: 'order_status_polling'
|
120
|
+
OrderStatusPolling: 'order_status_polling',
|
121
|
+
SmsSending: 'sms_sending'
|
121
122
|
};
|
122
123
|
/**
|
123
124
|
*
|
@@ -1798,13 +1799,13 @@ const ConfigurationsApiAxiosParamCreator = function (configuration) {
|
|
1798
1799
|
/**
|
1799
1800
|
* Create or update backoffice configuration for the current tenant
|
1800
1801
|
* @summary Create configuration
|
1801
|
-
* @param {
|
1802
|
+
* @param {TenantConfingRequest} tenantConfingRequest Configuration data
|
1802
1803
|
* @param {*} [options] Override http request option.
|
1803
1804
|
* @throws {RequiredError}
|
1804
1805
|
*/
|
1805
|
-
createV2Configuration: (
|
1806
|
-
// verify required parameter '
|
1807
|
-
(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);
|
1808
1809
|
const localVarPath = `/v2/admins/configurations`;
|
1809
1810
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1810
1811
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -1822,7 +1823,7 @@ const ConfigurationsApiAxiosParamCreator = function (configuration) {
|
|
1822
1823
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1823
1824
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1824
1825
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1825
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
1826
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tenantConfingRequest, localVarRequestOptions, configuration);
|
1826
1827
|
return {
|
1827
1828
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
1828
1829
|
options: localVarRequestOptions,
|
@@ -1997,13 +1998,13 @@ const ConfigurationsApiFp = function (configuration) {
|
|
1997
1998
|
/**
|
1998
1999
|
* Create or update backoffice configuration for the current tenant
|
1999
2000
|
* @summary Create configuration
|
2000
|
-
* @param {
|
2001
|
+
* @param {TenantConfingRequest} tenantConfingRequest Configuration data
|
2001
2002
|
* @param {*} [options] Override http request option.
|
2002
2003
|
* @throws {RequiredError}
|
2003
2004
|
*/
|
2004
|
-
createV2Configuration(
|
2005
|
+
createV2Configuration(tenantConfingRequest, options) {
|
2005
2006
|
return __awaiter(this, void 0, void 0, function* () {
|
2006
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createV2Configuration(
|
2007
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createV2Configuration(tenantConfingRequest, options);
|
2007
2008
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2008
2009
|
});
|
2009
2010
|
},
|
@@ -2091,12 +2092,12 @@ const ConfigurationsApiFactory = function (configuration, basePath, axios) {
|
|
2091
2092
|
/**
|
2092
2093
|
* Create or update backoffice configuration for the current tenant
|
2093
2094
|
* @summary Create configuration
|
2094
|
-
* @param {
|
2095
|
+
* @param {TenantConfingRequest} tenantConfingRequest Configuration data
|
2095
2096
|
* @param {*} [options] Override http request option.
|
2096
2097
|
* @throws {RequiredError}
|
2097
2098
|
*/
|
2098
|
-
createV2Configuration(
|
2099
|
-
return localVarFp.createV2Configuration(
|
2099
|
+
createV2Configuration(tenantConfingRequest, options) {
|
2100
|
+
return localVarFp.createV2Configuration(tenantConfingRequest, options).then((request) => request(axios, basePath));
|
2100
2101
|
},
|
2101
2102
|
/**
|
2102
2103
|
* List backoffice configurations for the current tenant
|
@@ -2168,13 +2169,13 @@ class ConfigurationsApi extends base_1.BaseAPI {
|
|
2168
2169
|
/**
|
2169
2170
|
* Create or update backoffice configuration for the current tenant
|
2170
2171
|
* @summary Create configuration
|
2171
|
-
* @param {
|
2172
|
+
* @param {TenantConfingRequest} tenantConfingRequest Configuration data
|
2172
2173
|
* @param {*} [options] Override http request option.
|
2173
2174
|
* @throws {RequiredError}
|
2174
2175
|
* @memberof ConfigurationsApi
|
2175
2176
|
*/
|
2176
|
-
createV2Configuration(
|
2177
|
-
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));
|
2178
2179
|
}
|
2179
2180
|
/**
|
2180
2181
|
* List backoffice configurations for the current tenant
|
@@ -2602,6 +2603,44 @@ const EventsApiAxiosParamCreator = function (configuration) {
|
|
2602
2603
|
options: localVarRequestOptions,
|
2603
2604
|
};
|
2604
2605
|
}),
|
2606
|
+
/**
|
2607
|
+
* Search events
|
2608
|
+
* @summary Search events
|
2609
|
+
* @param {string} reference Reference ID
|
2610
|
+
* @param {string} [nextToken] This is the pagination token
|
2611
|
+
* @param {*} [options] Override http request option.
|
2612
|
+
* @throws {RequiredError}
|
2613
|
+
*/
|
2614
|
+
searchEvents: (reference, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2615
|
+
// verify required parameter 'reference' is not null or undefined
|
2616
|
+
(0, common_1.assertParamExists)('searchEvents', 'reference', reference);
|
2617
|
+
const localVarPath = `/admins/events`;
|
2618
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2619
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2620
|
+
let baseOptions;
|
2621
|
+
if (configuration) {
|
2622
|
+
baseOptions = configuration.baseOptions;
|
2623
|
+
}
|
2624
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
2625
|
+
const localVarHeaderParameter = {};
|
2626
|
+
const localVarQueryParameter = {};
|
2627
|
+
// authentication systemJWT required
|
2628
|
+
// http bearer authentication required
|
2629
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2630
|
+
if (nextToken !== undefined) {
|
2631
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
2632
|
+
}
|
2633
|
+
if (reference !== undefined) {
|
2634
|
+
localVarQueryParameter['reference'] = reference;
|
2635
|
+
}
|
2636
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2637
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2638
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2639
|
+
return {
|
2640
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
2641
|
+
options: localVarRequestOptions,
|
2642
|
+
};
|
2643
|
+
}),
|
2605
2644
|
};
|
2606
2645
|
};
|
2607
2646
|
exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
|
@@ -2625,6 +2664,20 @@ const EventsApiFp = function (configuration) {
|
|
2625
2664
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2626
2665
|
});
|
2627
2666
|
},
|
2667
|
+
/**
|
2668
|
+
* Search events
|
2669
|
+
* @summary Search events
|
2670
|
+
* @param {string} reference Reference ID
|
2671
|
+
* @param {string} [nextToken] This is the pagination token
|
2672
|
+
* @param {*} [options] Override http request option.
|
2673
|
+
* @throws {RequiredError}
|
2674
|
+
*/
|
2675
|
+
searchEvents(reference, nextToken, options) {
|
2676
|
+
return __awaiter(this, void 0, void 0, function* () {
|
2677
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.searchEvents(reference, nextToken, options);
|
2678
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
2679
|
+
});
|
2680
|
+
},
|
2628
2681
|
};
|
2629
2682
|
};
|
2630
2683
|
exports.EventsApiFp = EventsApiFp;
|
@@ -2645,6 +2698,17 @@ const EventsApiFactory = function (configuration, basePath, axios) {
|
|
2645
2698
|
importEvents(eventCreationRequest, options) {
|
2646
2699
|
return localVarFp.importEvents(eventCreationRequest, options).then((request) => request(axios, basePath));
|
2647
2700
|
},
|
2701
|
+
/**
|
2702
|
+
* Search events
|
2703
|
+
* @summary Search events
|
2704
|
+
* @param {string} reference Reference ID
|
2705
|
+
* @param {string} [nextToken] This is the pagination token
|
2706
|
+
* @param {*} [options] Override http request option.
|
2707
|
+
* @throws {RequiredError}
|
2708
|
+
*/
|
2709
|
+
searchEvents(reference, nextToken, options) {
|
2710
|
+
return localVarFp.searchEvents(reference, nextToken, options).then((request) => request(axios, basePath));
|
2711
|
+
},
|
2648
2712
|
};
|
2649
2713
|
};
|
2650
2714
|
exports.EventsApiFactory = EventsApiFactory;
|
@@ -2666,6 +2730,18 @@ class EventsApi extends base_1.BaseAPI {
|
|
2666
2730
|
importEvents(eventCreationRequest, options) {
|
2667
2731
|
return (0, exports.EventsApiFp)(this.configuration).importEvents(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
2668
2732
|
}
|
2733
|
+
/**
|
2734
|
+
* Search events
|
2735
|
+
* @summary Search events
|
2736
|
+
* @param {string} reference Reference ID
|
2737
|
+
* @param {string} [nextToken] This is the pagination token
|
2738
|
+
* @param {*} [options] Override http request option.
|
2739
|
+
* @throws {RequiredError}
|
2740
|
+
* @memberof EventsApi
|
2741
|
+
*/
|
2742
|
+
searchEvents(reference, nextToken, options) {
|
2743
|
+
return (0, exports.EventsApiFp)(this.configuration).searchEvents(reference, nextToken, options).then((request) => request(this.axios, this.basePath));
|
2744
|
+
}
|
2669
2745
|
}
|
2670
2746
|
exports.EventsApi = EventsApi;
|
2671
2747
|
/**
|
@@ -2897,170 +2973,6 @@ class IntegrationsApi extends base_1.BaseAPI {
|
|
2897
2973
|
}
|
2898
2974
|
}
|
2899
2975
|
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;
|
3064
2976
|
/**
|
3065
2977
|
* NotificationsApi - axios parameter creator
|
3066
2978
|
* @export
|
@@ -3149,7 +3061,35 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
3149
3061
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
3150
3062
|
const localVarHeaderParameter = {};
|
3151
3063
|
const localVarQueryParameter = {};
|
3152
|
-
// authentication
|
3064
|
+
// authentication systemJWT required
|
3065
|
+
// http bearer authentication required
|
3066
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
3067
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
3068
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
3069
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
3070
|
+
return {
|
3071
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
3072
|
+
options: localVarRequestOptions,
|
3073
|
+
};
|
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
|
3153
3093
|
// http bearer authentication required
|
3154
3094
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
3155
3095
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
@@ -3276,7 +3216,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
3276
3216
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
3277
3217
|
const localVarHeaderParameter = {};
|
3278
3218
|
const localVarQueryParameter = {};
|
3279
|
-
// authentication
|
3219
|
+
// authentication systemJWT required
|
3280
3220
|
// http bearer authentication required
|
3281
3221
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
3282
3222
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
@@ -3289,6 +3229,39 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
|
|
3289
3229
|
options: localVarRequestOptions,
|
3290
3230
|
};
|
3291
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
|
+
}),
|
3292
3265
|
/**
|
3293
3266
|
* Update notification preferences for the authenticated user
|
3294
3267
|
* @summary Update notification preferences
|
@@ -3370,6 +3343,18 @@ const NotificationsApiFp = function (configuration) {
|
|
3370
3343
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3371
3344
|
});
|
3372
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
|
+
},
|
3373
3358
|
/**
|
3374
3359
|
* Get notification preferences for the authenticated user
|
3375
3360
|
* @summary Get notification preferences
|
@@ -3422,6 +3407,19 @@ const NotificationsApiFp = function (configuration) {
|
|
3422
3407
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3423
3408
|
});
|
3424
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
|
+
},
|
3425
3423
|
/**
|
3426
3424
|
* Update notification preferences for the authenticated user
|
3427
3425
|
* @summary Update notification preferences
|
@@ -3474,6 +3472,15 @@ const NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
3474
3472
|
getPreferences(options) {
|
3475
3473
|
return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
|
3476
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
|
+
},
|
3477
3484
|
/**
|
3478
3485
|
* Get notification preferences for the authenticated user
|
3479
3486
|
* @summary Get notification preferences
|
@@ -3514,6 +3521,16 @@ const NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
3514
3521
|
updatePreferences(preferencesRequest, options) {
|
3515
3522
|
return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
|
3516
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
|
+
},
|
3517
3534
|
/**
|
3518
3535
|
* Update notification preferences for the authenticated user
|
3519
3536
|
* @summary Update notification preferences
|
@@ -3566,6 +3583,16 @@ class NotificationsApi extends base_1.BaseAPI {
|
|
3566
3583
|
getPreferences(options) {
|
3567
3584
|
return (0, exports.NotificationsApiFp)(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
|
3568
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
|
+
}
|
3569
3596
|
/**
|
3570
3597
|
* Get notification preferences for the authenticated user
|
3571
3598
|
* @summary Get notification preferences
|
@@ -3610,6 +3637,17 @@ class NotificationsApi extends base_1.BaseAPI {
|
|
3610
3637
|
updatePreferences(preferencesRequest, options) {
|
3611
3638
|
return (0, exports.NotificationsApiFp)(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
3612
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
|
+
}
|
3613
3651
|
/**
|
3614
3652
|
* Update notification preferences for the authenticated user
|
3615
3653
|
* @summary Update notification preferences
|
@@ -6481,6 +6519,34 @@ const ReportsApiAxiosParamCreator = function (configuration) {
|
|
6481
6519
|
options: localVarRequestOptions,
|
6482
6520
|
};
|
6483
6521
|
}),
|
6522
|
+
/**
|
6523
|
+
* Get signed access URL for report
|
6524
|
+
* @summary Get signed access URL for report
|
6525
|
+
* @param {*} [options] Override http request option.
|
6526
|
+
* @throws {RequiredError}
|
6527
|
+
*/
|
6528
|
+
getReportUrl: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
6529
|
+
const localVarPath = `/admin/reports/url`;
|
6530
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6531
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
6532
|
+
let baseOptions;
|
6533
|
+
if (configuration) {
|
6534
|
+
baseOptions = configuration.baseOptions;
|
6535
|
+
}
|
6536
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
6537
|
+
const localVarHeaderParameter = {};
|
6538
|
+
const localVarQueryParameter = {};
|
6539
|
+
// authentication systemJWT required
|
6540
|
+
// http bearer authentication required
|
6541
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
6542
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
6543
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6544
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
6545
|
+
return {
|
6546
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
6547
|
+
options: localVarRequestOptions,
|
6548
|
+
};
|
6549
|
+
}),
|
6484
6550
|
/**
|
6485
6551
|
* List all supported report types, which can be generated by the user
|
6486
6552
|
* @summary List report types
|
@@ -6565,6 +6631,18 @@ const ReportsApiFp = function (configuration) {
|
|
6565
6631
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
6566
6632
|
});
|
6567
6633
|
},
|
6634
|
+
/**
|
6635
|
+
* Get signed access URL for report
|
6636
|
+
* @summary Get signed access URL for report
|
6637
|
+
* @param {*} [options] Override http request option.
|
6638
|
+
* @throws {RequiredError}
|
6639
|
+
*/
|
6640
|
+
getReportUrl(options) {
|
6641
|
+
return __awaiter(this, void 0, void 0, function* () {
|
6642
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReportUrl(options);
|
6643
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
6644
|
+
});
|
6645
|
+
},
|
6568
6646
|
/**
|
6569
6647
|
* List all supported report types, which can be generated by the user
|
6570
6648
|
* @summary List report types
|
@@ -6611,6 +6689,15 @@ const ReportsApiFactory = function (configuration, basePath, axios) {
|
|
6611
6689
|
generateReport(type, reportCreationRequest, options) {
|
6612
6690
|
return localVarFp.generateReport(type, reportCreationRequest, options).then((request) => request(axios, basePath));
|
6613
6691
|
},
|
6692
|
+
/**
|
6693
|
+
* Get signed access URL for report
|
6694
|
+
* @summary Get signed access URL for report
|
6695
|
+
* @param {*} [options] Override http request option.
|
6696
|
+
* @throws {RequiredError}
|
6697
|
+
*/
|
6698
|
+
getReportUrl(options) {
|
6699
|
+
return localVarFp.getReportUrl(options).then((request) => request(axios, basePath));
|
6700
|
+
},
|
6614
6701
|
/**
|
6615
6702
|
* List all supported report types, which can be generated by the user
|
6616
6703
|
* @summary List report types
|
@@ -6652,6 +6739,16 @@ class ReportsApi extends base_1.BaseAPI {
|
|
6652
6739
|
generateReport(type, reportCreationRequest, options) {
|
6653
6740
|
return (0, exports.ReportsApiFp)(this.configuration).generateReport(type, reportCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
6654
6741
|
}
|
6742
|
+
/**
|
6743
|
+
* Get signed access URL for report
|
6744
|
+
* @summary Get signed access URL for report
|
6745
|
+
* @param {*} [options] Override http request option.
|
6746
|
+
* @throws {RequiredError}
|
6747
|
+
* @memberof ReportsApi
|
6748
|
+
*/
|
6749
|
+
getReportUrl(options) {
|
6750
|
+
return (0, exports.ReportsApiFp)(this.configuration).getReportUrl(options).then((request) => request(this.axios, this.basePath));
|
6751
|
+
}
|
6655
6752
|
/**
|
6656
6753
|
* List all supported report types, which can be generated by the user
|
6657
6754
|
* @summary List report types
|