flexinet-api 0.0.2304 → 0.0.2307

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/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.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;
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
@@ -51,7 +51,8 @@ exports.AuditLogActionEnum = {
51
51
  */
52
52
  exports.AuditLogObjectType = {
53
53
  Promotion: 'promotion',
54
- ApiKey: 'api_key'
54
+ ApiKey: 'api_key',
55
+ Config: 'config'
55
56
  };
56
57
  /**
57
58
  *
@@ -117,7 +118,8 @@ exports.Feature = {
117
118
  UserInfo: 'user_info',
118
119
  ExternalInventory: 'external_inventory',
119
120
  OrderEvents: 'order_events',
120
- OrderStatusPolling: 'order_status_polling'
121
+ OrderStatusPolling: 'order_status_polling',
122
+ SmsSending: 'sms_sending'
121
123
  };
122
124
  /**
123
125
  *
@@ -1798,13 +1800,13 @@ const ConfigurationsApiAxiosParamCreator = function (configuration) {
1798
1800
  /**
1799
1801
  * Create or update backoffice configuration for the current tenant
1800
1802
  * @summary Create configuration
1801
- * @param {TenantConfing} tenantConfing Configuration data
1803
+ * @param {TenantConfingRequest} tenantConfingRequest Configuration data
1802
1804
  * @param {*} [options] Override http request option.
1803
1805
  * @throws {RequiredError}
1804
1806
  */
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);
1807
+ createV2Configuration: (tenantConfingRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1808
+ // verify required parameter 'tenantConfingRequest' is not null or undefined
1809
+ (0, common_1.assertParamExists)('createV2Configuration', 'tenantConfingRequest', tenantConfingRequest);
1808
1810
  const localVarPath = `/v2/admins/configurations`;
1809
1811
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1810
1812
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1822,7 +1824,7 @@ const ConfigurationsApiAxiosParamCreator = function (configuration) {
1822
1824
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1823
1825
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1824
1826
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1825
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tenantConfing, localVarRequestOptions, configuration);
1827
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tenantConfingRequest, localVarRequestOptions, configuration);
1826
1828
  return {
1827
1829
  url: (0, common_1.toPathString)(localVarUrlObj),
1828
1830
  options: localVarRequestOptions,
@@ -1997,13 +1999,13 @@ const ConfigurationsApiFp = function (configuration) {
1997
1999
  /**
1998
2000
  * Create or update backoffice configuration for the current tenant
1999
2001
  * @summary Create configuration
2000
- * @param {TenantConfing} tenantConfing Configuration data
2002
+ * @param {TenantConfingRequest} tenantConfingRequest Configuration data
2001
2003
  * @param {*} [options] Override http request option.
2002
2004
  * @throws {RequiredError}
2003
2005
  */
2004
- createV2Configuration(tenantConfing, options) {
2006
+ createV2Configuration(tenantConfingRequest, options) {
2005
2007
  return __awaiter(this, void 0, void 0, function* () {
2006
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createV2Configuration(tenantConfing, options);
2008
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createV2Configuration(tenantConfingRequest, options);
2007
2009
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2008
2010
  });
2009
2011
  },
@@ -2091,12 +2093,12 @@ const ConfigurationsApiFactory = function (configuration, basePath, axios) {
2091
2093
  /**
2092
2094
  * Create or update backoffice configuration for the current tenant
2093
2095
  * @summary Create configuration
2094
- * @param {TenantConfing} tenantConfing Configuration data
2096
+ * @param {TenantConfingRequest} tenantConfingRequest Configuration data
2095
2097
  * @param {*} [options] Override http request option.
2096
2098
  * @throws {RequiredError}
2097
2099
  */
2098
- createV2Configuration(tenantConfing, options) {
2099
- return localVarFp.createV2Configuration(tenantConfing, options).then((request) => request(axios, basePath));
2100
+ createV2Configuration(tenantConfingRequest, options) {
2101
+ return localVarFp.createV2Configuration(tenantConfingRequest, options).then((request) => request(axios, basePath));
2100
2102
  },
2101
2103
  /**
2102
2104
  * List backoffice configurations for the current tenant
@@ -2168,13 +2170,13 @@ class ConfigurationsApi extends base_1.BaseAPI {
2168
2170
  /**
2169
2171
  * Create or update backoffice configuration for the current tenant
2170
2172
  * @summary Create configuration
2171
- * @param {TenantConfing} tenantConfing Configuration data
2173
+ * @param {TenantConfingRequest} tenantConfingRequest Configuration data
2172
2174
  * @param {*} [options] Override http request option.
2173
2175
  * @throws {RequiredError}
2174
2176
  * @memberof ConfigurationsApi
2175
2177
  */
2176
- createV2Configuration(tenantConfing, options) {
2177
- return (0, exports.ConfigurationsApiFp)(this.configuration).createV2Configuration(tenantConfing, options).then((request) => request(this.axios, this.basePath));
2178
+ createV2Configuration(tenantConfingRequest, options) {
2179
+ return (0, exports.ConfigurationsApiFp)(this.configuration).createV2Configuration(tenantConfingRequest, options).then((request) => request(this.axios, this.basePath));
2178
2180
  }
2179
2181
  /**
2180
2182
  * List backoffice configurations for the current tenant
@@ -2602,6 +2604,44 @@ const EventsApiAxiosParamCreator = function (configuration) {
2602
2604
  options: localVarRequestOptions,
2603
2605
  };
2604
2606
  }),
2607
+ /**
2608
+ * Search events
2609
+ * @summary Search events
2610
+ * @param {string} reference Reference ID
2611
+ * @param {string} [nextToken] This is the pagination token
2612
+ * @param {*} [options] Override http request option.
2613
+ * @throws {RequiredError}
2614
+ */
2615
+ searchEvents: (reference, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
2616
+ // verify required parameter 'reference' is not null or undefined
2617
+ (0, common_1.assertParamExists)('searchEvents', 'reference', reference);
2618
+ const localVarPath = `/admins/events`;
2619
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2620
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2621
+ let baseOptions;
2622
+ if (configuration) {
2623
+ baseOptions = configuration.baseOptions;
2624
+ }
2625
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2626
+ const localVarHeaderParameter = {};
2627
+ const localVarQueryParameter = {};
2628
+ // authentication systemJWT required
2629
+ // http bearer authentication required
2630
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2631
+ if (nextToken !== undefined) {
2632
+ localVarQueryParameter['nextToken'] = nextToken;
2633
+ }
2634
+ if (reference !== undefined) {
2635
+ localVarQueryParameter['reference'] = reference;
2636
+ }
2637
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2638
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2639
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2640
+ return {
2641
+ url: (0, common_1.toPathString)(localVarUrlObj),
2642
+ options: localVarRequestOptions,
2643
+ };
2644
+ }),
2605
2645
  };
2606
2646
  };
2607
2647
  exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
@@ -2625,6 +2665,20 @@ const EventsApiFp = function (configuration) {
2625
2665
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2626
2666
  });
2627
2667
  },
2668
+ /**
2669
+ * Search events
2670
+ * @summary Search events
2671
+ * @param {string} reference Reference ID
2672
+ * @param {string} [nextToken] This is the pagination token
2673
+ * @param {*} [options] Override http request option.
2674
+ * @throws {RequiredError}
2675
+ */
2676
+ searchEvents(reference, nextToken, options) {
2677
+ return __awaiter(this, void 0, void 0, function* () {
2678
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.searchEvents(reference, nextToken, options);
2679
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2680
+ });
2681
+ },
2628
2682
  };
2629
2683
  };
2630
2684
  exports.EventsApiFp = EventsApiFp;
@@ -2645,6 +2699,17 @@ const EventsApiFactory = function (configuration, basePath, axios) {
2645
2699
  importEvents(eventCreationRequest, options) {
2646
2700
  return localVarFp.importEvents(eventCreationRequest, options).then((request) => request(axios, basePath));
2647
2701
  },
2702
+ /**
2703
+ * Search events
2704
+ * @summary Search events
2705
+ * @param {string} reference Reference ID
2706
+ * @param {string} [nextToken] This is the pagination token
2707
+ * @param {*} [options] Override http request option.
2708
+ * @throws {RequiredError}
2709
+ */
2710
+ searchEvents(reference, nextToken, options) {
2711
+ return localVarFp.searchEvents(reference, nextToken, options).then((request) => request(axios, basePath));
2712
+ },
2648
2713
  };
2649
2714
  };
2650
2715
  exports.EventsApiFactory = EventsApiFactory;
@@ -2666,6 +2731,18 @@ class EventsApi extends base_1.BaseAPI {
2666
2731
  importEvents(eventCreationRequest, options) {
2667
2732
  return (0, exports.EventsApiFp)(this.configuration).importEvents(eventCreationRequest, options).then((request) => request(this.axios, this.basePath));
2668
2733
  }
2734
+ /**
2735
+ * Search events
2736
+ * @summary Search events
2737
+ * @param {string} reference Reference ID
2738
+ * @param {string} [nextToken] This is the pagination token
2739
+ * @param {*} [options] Override http request option.
2740
+ * @throws {RequiredError}
2741
+ * @memberof EventsApi
2742
+ */
2743
+ searchEvents(reference, nextToken, options) {
2744
+ return (0, exports.EventsApiFp)(this.configuration).searchEvents(reference, nextToken, options).then((request) => request(this.axios, this.basePath));
2745
+ }
2669
2746
  }
2670
2747
  exports.EventsApi = EventsApi;
2671
2748
  /**
@@ -2897,170 +2974,6 @@ class IntegrationsApi extends base_1.BaseAPI {
2897
2974
  }
2898
2975
  }
2899
2976
  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
2977
  /**
3065
2978
  * NotificationsApi - axios parameter creator
3066
2979
  * @export
@@ -3149,7 +3062,35 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
3149
3062
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3150
3063
  const localVarHeaderParameter = {};
3151
3064
  const localVarQueryParameter = {};
3152
- // authentication customerJWT required
3065
+ // authentication systemJWT required
3066
+ // http bearer authentication required
3067
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3068
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3069
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3070
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3071
+ return {
3072
+ url: (0, common_1.toPathString)(localVarUrlObj),
3073
+ options: localVarRequestOptions,
3074
+ };
3075
+ }),
3076
+ /**
3077
+ * Get preferences for the authenticated user
3078
+ * @summary Get preferences
3079
+ * @param {*} [options] Override http request option.
3080
+ * @throws {RequiredError}
3081
+ */
3082
+ getSystemPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
3083
+ const localVarPath = `/admins/preferences/system`;
3084
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3085
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3086
+ let baseOptions;
3087
+ if (configuration) {
3088
+ baseOptions = configuration.baseOptions;
3089
+ }
3090
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3091
+ const localVarHeaderParameter = {};
3092
+ const localVarQueryParameter = {};
3093
+ // authentication systemJWT required
3153
3094
  // http bearer authentication required
3154
3095
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3155
3096
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -3276,7 +3217,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
3276
3217
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3277
3218
  const localVarHeaderParameter = {};
3278
3219
  const localVarQueryParameter = {};
3279
- // authentication customerJWT required
3220
+ // authentication systemJWT required
3280
3221
  // http bearer authentication required
3281
3222
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3282
3223
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -3289,6 +3230,39 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
3289
3230
  options: localVarRequestOptions,
3290
3231
  };
3291
3232
  }),
3233
+ /**
3234
+ * Update preferences for the authenticated user
3235
+ * @summary Update preferences
3236
+ * @param {Array<NotificationPreference>} notificationPreference notification preferences
3237
+ * @param {*} [options] Override http request option.
3238
+ * @throws {RequiredError}
3239
+ */
3240
+ updateSystemPreferences: (notificationPreference, options = {}) => __awaiter(this, void 0, void 0, function* () {
3241
+ // verify required parameter 'notificationPreference' is not null or undefined
3242
+ (0, common_1.assertParamExists)('updateSystemPreferences', 'notificationPreference', notificationPreference);
3243
+ const localVarPath = `/admins/preferences/system`;
3244
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3245
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3246
+ let baseOptions;
3247
+ if (configuration) {
3248
+ baseOptions = configuration.baseOptions;
3249
+ }
3250
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3251
+ const localVarHeaderParameter = {};
3252
+ const localVarQueryParameter = {};
3253
+ // authentication systemJWT required
3254
+ // http bearer authentication required
3255
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3256
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3257
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3259
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3260
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(notificationPreference, localVarRequestOptions, configuration);
3261
+ return {
3262
+ url: (0, common_1.toPathString)(localVarUrlObj),
3263
+ options: localVarRequestOptions,
3264
+ };
3265
+ }),
3292
3266
  /**
3293
3267
  * Update notification preferences for the authenticated user
3294
3268
  * @summary Update notification preferences
@@ -3370,6 +3344,18 @@ const NotificationsApiFp = function (configuration) {
3370
3344
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3371
3345
  });
3372
3346
  },
3347
+ /**
3348
+ * Get preferences for the authenticated user
3349
+ * @summary Get preferences
3350
+ * @param {*} [options] Override http request option.
3351
+ * @throws {RequiredError}
3352
+ */
3353
+ getSystemPreferences(options) {
3354
+ return __awaiter(this, void 0, void 0, function* () {
3355
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSystemPreferences(options);
3356
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3357
+ });
3358
+ },
3373
3359
  /**
3374
3360
  * Get notification preferences for the authenticated user
3375
3361
  * @summary Get notification preferences
@@ -3422,6 +3408,19 @@ const NotificationsApiFp = function (configuration) {
3422
3408
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3423
3409
  });
3424
3410
  },
3411
+ /**
3412
+ * Update preferences for the authenticated user
3413
+ * @summary Update preferences
3414
+ * @param {Array<NotificationPreference>} notificationPreference notification preferences
3415
+ * @param {*} [options] Override http request option.
3416
+ * @throws {RequiredError}
3417
+ */
3418
+ updateSystemPreferences(notificationPreference, options) {
3419
+ return __awaiter(this, void 0, void 0, function* () {
3420
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSystemPreferences(notificationPreference, options);
3421
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3422
+ });
3423
+ },
3425
3424
  /**
3426
3425
  * Update notification preferences for the authenticated user
3427
3426
  * @summary Update notification preferences
@@ -3474,6 +3473,15 @@ const NotificationsApiFactory = function (configuration, basePath, axios) {
3474
3473
  getPreferences(options) {
3475
3474
  return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
3476
3475
  },
3476
+ /**
3477
+ * Get preferences for the authenticated user
3478
+ * @summary Get preferences
3479
+ * @param {*} [options] Override http request option.
3480
+ * @throws {RequiredError}
3481
+ */
3482
+ getSystemPreferences(options) {
3483
+ return localVarFp.getSystemPreferences(options).then((request) => request(axios, basePath));
3484
+ },
3477
3485
  /**
3478
3486
  * Get notification preferences for the authenticated user
3479
3487
  * @summary Get notification preferences
@@ -3514,6 +3522,16 @@ const NotificationsApiFactory = function (configuration, basePath, axios) {
3514
3522
  updatePreferences(preferencesRequest, options) {
3515
3523
  return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
3516
3524
  },
3525
+ /**
3526
+ * Update preferences for the authenticated user
3527
+ * @summary Update preferences
3528
+ * @param {Array<NotificationPreference>} notificationPreference notification preferences
3529
+ * @param {*} [options] Override http request option.
3530
+ * @throws {RequiredError}
3531
+ */
3532
+ updateSystemPreferences(notificationPreference, options) {
3533
+ return localVarFp.updateSystemPreferences(notificationPreference, options).then((request) => request(axios, basePath));
3534
+ },
3517
3535
  /**
3518
3536
  * Update notification preferences for the authenticated user
3519
3537
  * @summary Update notification preferences
@@ -3566,6 +3584,16 @@ class NotificationsApi extends base_1.BaseAPI {
3566
3584
  getPreferences(options) {
3567
3585
  return (0, exports.NotificationsApiFp)(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
3568
3586
  }
3587
+ /**
3588
+ * Get preferences for the authenticated user
3589
+ * @summary Get preferences
3590
+ * @param {*} [options] Override http request option.
3591
+ * @throws {RequiredError}
3592
+ * @memberof NotificationsApi
3593
+ */
3594
+ getSystemPreferences(options) {
3595
+ return (0, exports.NotificationsApiFp)(this.configuration).getSystemPreferences(options).then((request) => request(this.axios, this.basePath));
3596
+ }
3569
3597
  /**
3570
3598
  * Get notification preferences for the authenticated user
3571
3599
  * @summary Get notification preferences
@@ -3610,6 +3638,17 @@ class NotificationsApi extends base_1.BaseAPI {
3610
3638
  updatePreferences(preferencesRequest, options) {
3611
3639
  return (0, exports.NotificationsApiFp)(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
3612
3640
  }
3641
+ /**
3642
+ * Update preferences for the authenticated user
3643
+ * @summary Update preferences
3644
+ * @param {Array<NotificationPreference>} notificationPreference notification preferences
3645
+ * @param {*} [options] Override http request option.
3646
+ * @throws {RequiredError}
3647
+ * @memberof NotificationsApi
3648
+ */
3649
+ updateSystemPreferences(notificationPreference, options) {
3650
+ return (0, exports.NotificationsApiFp)(this.configuration).updateSystemPreferences(notificationPreference, options).then((request) => request(this.axios, this.basePath));
3651
+ }
3613
3652
  /**
3614
3653
  * Update notification preferences for the authenticated user
3615
3654
  * @summary Update notification preferences
@@ -6481,6 +6520,34 @@ const ReportsApiAxiosParamCreator = function (configuration) {
6481
6520
  options: localVarRequestOptions,
6482
6521
  };
6483
6522
  }),
6523
+ /**
6524
+ * Get signed access URL for report
6525
+ * @summary Get signed access URL for report
6526
+ * @param {*} [options] Override http request option.
6527
+ * @throws {RequiredError}
6528
+ */
6529
+ getReportUrl: (options = {}) => __awaiter(this, void 0, void 0, function* () {
6530
+ const localVarPath = `/admin/reports/url`;
6531
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6532
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6533
+ let baseOptions;
6534
+ if (configuration) {
6535
+ baseOptions = configuration.baseOptions;
6536
+ }
6537
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6538
+ const localVarHeaderParameter = {};
6539
+ const localVarQueryParameter = {};
6540
+ // authentication systemJWT required
6541
+ // http bearer authentication required
6542
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6543
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6544
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6545
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6546
+ return {
6547
+ url: (0, common_1.toPathString)(localVarUrlObj),
6548
+ options: localVarRequestOptions,
6549
+ };
6550
+ }),
6484
6551
  /**
6485
6552
  * List all supported report types, which can be generated by the user
6486
6553
  * @summary List report types
@@ -6565,6 +6632,18 @@ const ReportsApiFp = function (configuration) {
6565
6632
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
6566
6633
  });
6567
6634
  },
6635
+ /**
6636
+ * Get signed access URL for report
6637
+ * @summary Get signed access URL for report
6638
+ * @param {*} [options] Override http request option.
6639
+ * @throws {RequiredError}
6640
+ */
6641
+ getReportUrl(options) {
6642
+ return __awaiter(this, void 0, void 0, function* () {
6643
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReportUrl(options);
6644
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
6645
+ });
6646
+ },
6568
6647
  /**
6569
6648
  * List all supported report types, which can be generated by the user
6570
6649
  * @summary List report types
@@ -6611,6 +6690,15 @@ const ReportsApiFactory = function (configuration, basePath, axios) {
6611
6690
  generateReport(type, reportCreationRequest, options) {
6612
6691
  return localVarFp.generateReport(type, reportCreationRequest, options).then((request) => request(axios, basePath));
6613
6692
  },
6693
+ /**
6694
+ * Get signed access URL for report
6695
+ * @summary Get signed access URL for report
6696
+ * @param {*} [options] Override http request option.
6697
+ * @throws {RequiredError}
6698
+ */
6699
+ getReportUrl(options) {
6700
+ return localVarFp.getReportUrl(options).then((request) => request(axios, basePath));
6701
+ },
6614
6702
  /**
6615
6703
  * List all supported report types, which can be generated by the user
6616
6704
  * @summary List report types
@@ -6652,6 +6740,16 @@ class ReportsApi extends base_1.BaseAPI {
6652
6740
  generateReport(type, reportCreationRequest, options) {
6653
6741
  return (0, exports.ReportsApiFp)(this.configuration).generateReport(type, reportCreationRequest, options).then((request) => request(this.axios, this.basePath));
6654
6742
  }
6743
+ /**
6744
+ * Get signed access URL for report
6745
+ * @summary Get signed access URL for report
6746
+ * @param {*} [options] Override http request option.
6747
+ * @throws {RequiredError}
6748
+ * @memberof ReportsApi
6749
+ */
6750
+ getReportUrl(options) {
6751
+ return (0, exports.ReportsApiFp)(this.configuration).getReportUrl(options).then((request) => request(this.axios, this.basePath));
6752
+ }
6655
6753
  /**
6656
6754
  * List all supported report types, which can be generated by the user
6657
6755
  * @summary List report types