flexinet-api 0.0.2314 → 0.0.2318

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 systemJWT 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 systemJWT 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
@@ -3160,6 +3073,34 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
3160
3073
  options: localVarRequestOptions,
3161
3074
  };
3162
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
3094
+ // http bearer authentication required
3095
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3096
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3097
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3098
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3099
+ return {
3100
+ url: (0, common_1.toPathString)(localVarUrlObj),
3101
+ options: localVarRequestOptions,
3102
+ };
3103
+ }),
3163
3104
  /**
3164
3105
  * Get notification preferences for the authenticated user
3165
3106
  * @summary Get notification preferences
@@ -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
@@ -3755,6 +3794,42 @@ const OrdersApiAxiosParamCreator = function (configuration) {
3755
3794
  options: localVarRequestOptions,
3756
3795
  };
3757
3796
  }),
3797
+ /**
3798
+ * List order events
3799
+ * @summary List order events
3800
+ * @param {string} [orderId] Order ID
3801
+ * @param {string} [nextToken] This is the pagination token
3802
+ * @param {*} [options] Override http request option.
3803
+ * @throws {RequiredError}
3804
+ */
3805
+ listOrderEvents: (orderId, nextToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
3806
+ const localVarPath = `/admins/order-events`;
3807
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3808
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3809
+ let baseOptions;
3810
+ if (configuration) {
3811
+ baseOptions = configuration.baseOptions;
3812
+ }
3813
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3814
+ const localVarHeaderParameter = {};
3815
+ const localVarQueryParameter = {};
3816
+ // authentication systemJWT required
3817
+ // http bearer authentication required
3818
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3819
+ if (orderId !== undefined) {
3820
+ localVarQueryParameter['orderId'] = orderId;
3821
+ }
3822
+ if (nextToken !== undefined) {
3823
+ localVarQueryParameter['nextToken'] = nextToken;
3824
+ }
3825
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3826
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3827
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3828
+ return {
3829
+ url: (0, common_1.toPathString)(localVarUrlObj),
3830
+ options: localVarRequestOptions,
3831
+ };
3832
+ }),
3758
3833
  /**
3759
3834
  * List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
3760
3835
  * @summary List orders
@@ -3949,6 +4024,20 @@ const OrdersApiFp = function (configuration) {
3949
4024
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3950
4025
  });
3951
4026
  },
4027
+ /**
4028
+ * List order events
4029
+ * @summary List order events
4030
+ * @param {string} [orderId] Order ID
4031
+ * @param {string} [nextToken] This is the pagination token
4032
+ * @param {*} [options] Override http request option.
4033
+ * @throws {RequiredError}
4034
+ */
4035
+ listOrderEvents(orderId, nextToken, options) {
4036
+ return __awaiter(this, void 0, void 0, function* () {
4037
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrderEvents(orderId, nextToken, options);
4038
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
4039
+ });
4040
+ },
3952
4041
  /**
3953
4042
  * List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
3954
4043
  * @summary List orders
@@ -4040,6 +4129,17 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
4040
4129
  getUserOrder(id, options) {
4041
4130
  return localVarFp.getUserOrder(id, options).then((request) => request(axios, basePath));
4042
4131
  },
4132
+ /**
4133
+ * List order events
4134
+ * @summary List order events
4135
+ * @param {string} [orderId] Order ID
4136
+ * @param {string} [nextToken] This is the pagination token
4137
+ * @param {*} [options] Override http request option.
4138
+ * @throws {RequiredError}
4139
+ */
4140
+ listOrderEvents(orderId, nextToken, options) {
4141
+ return localVarFp.listOrderEvents(orderId, nextToken, options).then((request) => request(axios, basePath));
4142
+ },
4043
4143
  /**
4044
4144
  * List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
4045
4145
  * @summary List orders
@@ -4129,6 +4229,18 @@ class OrdersApi extends base_1.BaseAPI {
4129
4229
  getUserOrder(id, options) {
4130
4230
  return (0, exports.OrdersApiFp)(this.configuration).getUserOrder(id, options).then((request) => request(this.axios, this.basePath));
4131
4231
  }
4232
+ /**
4233
+ * List order events
4234
+ * @summary List order events
4235
+ * @param {string} [orderId] Order ID
4236
+ * @param {string} [nextToken] This is the pagination token
4237
+ * @param {*} [options] Override http request option.
4238
+ * @throws {RequiredError}
4239
+ * @memberof OrdersApi
4240
+ */
4241
+ listOrderEvents(orderId, nextToken, options) {
4242
+ return (0, exports.OrdersApiFp)(this.configuration).listOrderEvents(orderId, nextToken, options).then((request) => request(this.axios, this.basePath));
4243
+ }
4132
4244
  /**
4133
4245
  * List orders for the users/clients visible to the authenticated system user. Returns a paginated list of orders. Can be filtered by nextToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source.
4134
4246
  * @summary List orders
@@ -6481,6 +6593,34 @@ const ReportsApiAxiosParamCreator = function (configuration) {
6481
6593
  options: localVarRequestOptions,
6482
6594
  };
6483
6595
  }),
6596
+ /**
6597
+ * Get signed access URL for report
6598
+ * @summary Get signed access URL for report
6599
+ * @param {*} [options] Override http request option.
6600
+ * @throws {RequiredError}
6601
+ */
6602
+ getReportUrl: (options = {}) => __awaiter(this, void 0, void 0, function* () {
6603
+ const localVarPath = `/admin/reports/url`;
6604
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6605
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6606
+ let baseOptions;
6607
+ if (configuration) {
6608
+ baseOptions = configuration.baseOptions;
6609
+ }
6610
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6611
+ const localVarHeaderParameter = {};
6612
+ const localVarQueryParameter = {};
6613
+ // authentication systemJWT required
6614
+ // http bearer authentication required
6615
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6616
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6617
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6618
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6619
+ return {
6620
+ url: (0, common_1.toPathString)(localVarUrlObj),
6621
+ options: localVarRequestOptions,
6622
+ };
6623
+ }),
6484
6624
  /**
6485
6625
  * List all supported report types, which can be generated by the user
6486
6626
  * @summary List report types
@@ -6565,6 +6705,18 @@ const ReportsApiFp = function (configuration) {
6565
6705
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
6566
6706
  });
6567
6707
  },
6708
+ /**
6709
+ * Get signed access URL for report
6710
+ * @summary Get signed access URL for report
6711
+ * @param {*} [options] Override http request option.
6712
+ * @throws {RequiredError}
6713
+ */
6714
+ getReportUrl(options) {
6715
+ return __awaiter(this, void 0, void 0, function* () {
6716
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReportUrl(options);
6717
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
6718
+ });
6719
+ },
6568
6720
  /**
6569
6721
  * List all supported report types, which can be generated by the user
6570
6722
  * @summary List report types
@@ -6611,6 +6763,15 @@ const ReportsApiFactory = function (configuration, basePath, axios) {
6611
6763
  generateReport(type, reportCreationRequest, options) {
6612
6764
  return localVarFp.generateReport(type, reportCreationRequest, options).then((request) => request(axios, basePath));
6613
6765
  },
6766
+ /**
6767
+ * Get signed access URL for report
6768
+ * @summary Get signed access URL for report
6769
+ * @param {*} [options] Override http request option.
6770
+ * @throws {RequiredError}
6771
+ */
6772
+ getReportUrl(options) {
6773
+ return localVarFp.getReportUrl(options).then((request) => request(axios, basePath));
6774
+ },
6614
6775
  /**
6615
6776
  * List all supported report types, which can be generated by the user
6616
6777
  * @summary List report types
@@ -6652,6 +6813,16 @@ class ReportsApi extends base_1.BaseAPI {
6652
6813
  generateReport(type, reportCreationRequest, options) {
6653
6814
  return (0, exports.ReportsApiFp)(this.configuration).generateReport(type, reportCreationRequest, options).then((request) => request(this.axios, this.basePath));
6654
6815
  }
6816
+ /**
6817
+ * Get signed access URL for report
6818
+ * @summary Get signed access URL for report
6819
+ * @param {*} [options] Override http request option.
6820
+ * @throws {RequiredError}
6821
+ * @memberof ReportsApi
6822
+ */
6823
+ getReportUrl(options) {
6824
+ return (0, exports.ReportsApiFp)(this.configuration).getReportUrl(options).then((request) => request(this.axios, this.basePath));
6825
+ }
6655
6826
  /**
6656
6827
  * List all supported report types, which can be generated by the user
6657
6828
  * @summary List report types