@sp-api-sdk/notifications-api-v1 1.12.0 → 1.12.3

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.
Files changed (32) hide show
  1. package/dist/cjs/src/api-model/api/notifications-api.js +8 -8
  2. package/dist/cjs/src/api-model/models/aggregation-time-period.js +4 -5
  3. package/dist/es/src/api-model/api/notifications-api.js +8 -8
  4. package/dist/es/src/api-model/models/aggregation-time-period.js +4 -5
  5. package/dist/types/src/api-model/api/notifications-api.d.ts +28 -28
  6. package/dist/types/src/api-model/base.d.ts +2 -2
  7. package/dist/types/src/api-model/common.d.ts +7 -7
  8. package/dist/types/src/api-model/models/aggregation-filter.d.ts +1 -1
  9. package/dist/types/src/api-model/models/aggregation-settings.d.ts +1 -1
  10. package/dist/types/src/api-model/models/aggregation-time-period.d.ts +5 -4
  11. package/dist/types/src/api-model/models/create-destination-request.d.ts +2 -2
  12. package/dist/types/src/api-model/models/create-destination-response.d.ts +2 -2
  13. package/dist/types/src/api-model/models/create-subscription-request.d.ts +3 -3
  14. package/dist/types/src/api-model/models/create-subscription-response.d.ts +2 -2
  15. package/dist/types/src/api-model/models/delete-destination-response.d.ts +1 -1
  16. package/dist/types/src/api-model/models/delete-subscription-by-id-response.d.ts +1 -1
  17. package/dist/types/src/api-model/models/destination-resource-specification.d.ts +2 -2
  18. package/dist/types/src/api-model/models/destination-resource.d.ts +2 -2
  19. package/dist/types/src/api-model/models/destination.d.ts +3 -3
  20. package/dist/types/src/api-model/models/event-bridge-resource-specification.d.ts +2 -2
  21. package/dist/types/src/api-model/models/event-bridge-resource.d.ts +3 -3
  22. package/dist/types/src/api-model/models/event-filter-all-of.d.ts +1 -1
  23. package/dist/types/src/api-model/models/get-destination-response.d.ts +2 -2
  24. package/dist/types/src/api-model/models/get-destinations-response.d.ts +2 -2
  25. package/dist/types/src/api-model/models/get-subscription-by-id-response.d.ts +2 -2
  26. package/dist/types/src/api-model/models/get-subscription-response.d.ts +2 -2
  27. package/dist/types/src/api-model/models/marketplace-filter.d.ts +1 -1
  28. package/dist/types/src/api-model/models/model-error.d.ts +3 -3
  29. package/dist/types/src/api-model/models/processing-directive.d.ts +1 -1
  30. package/dist/types/src/api-model/models/sqs-resource.d.ts +1 -1
  31. package/dist/types/src/api-model/models/subscription.d.ts +4 -4
  32. package/package.json +4 -4
@@ -47,7 +47,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
47
47
  const localVarHeaderParameter = {};
48
48
  const localVarQueryParameter = {};
49
49
  localVarHeaderParameter['Content-Type'] = 'application/json';
50
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
50
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
51
51
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52
52
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
53
53
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
@@ -80,7 +80,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
80
80
  const localVarHeaderParameter = {};
81
81
  const localVarQueryParameter = {};
82
82
  localVarHeaderParameter['Content-Type'] = 'application/json';
83
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
83
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
84
84
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
85
85
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
86
86
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
@@ -109,7 +109,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
109
109
  const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
110
110
  const localVarHeaderParameter = {};
111
111
  const localVarQueryParameter = {};
112
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
112
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
113
113
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
114
114
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
115
115
  return {
@@ -141,7 +141,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
141
141
  const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
142
142
  const localVarHeaderParameter = {};
143
143
  const localVarQueryParameter = {};
144
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
144
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
145
145
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
146
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
147
147
  return {
@@ -169,7 +169,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
169
169
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
170
170
  const localVarHeaderParameter = {};
171
171
  const localVarQueryParameter = {};
172
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
172
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
173
173
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
174
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
175
175
  return {
@@ -193,7 +193,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
193
193
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
194
194
  const localVarHeaderParameter = {};
195
195
  const localVarQueryParameter = {};
196
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
196
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
197
197
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
198
198
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
199
199
  return {
@@ -221,7 +221,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
221
221
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
222
222
  const localVarHeaderParameter = {};
223
223
  const localVarQueryParameter = {};
224
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
224
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
225
225
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
226
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
227
227
  return {
@@ -253,7 +253,7 @@ const NotificationsApiAxiosParamCreator = function (configuration) {
253
253
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
254
254
  const localVarHeaderParameter = {};
255
255
  const localVarQueryParameter = {};
256
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
256
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
257
257
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
258
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
259
259
  return {
@@ -19,8 +19,7 @@ exports.AggregationTimePeriod = void 0;
19
19
  * @export
20
20
  * @enum {string}
21
21
  */
22
- var AggregationTimePeriod;
23
- (function (AggregationTimePeriod) {
24
- AggregationTimePeriod["FiveMinutes"] = "FiveMinutes";
25
- AggregationTimePeriod["TenMinutes"] = "TenMinutes";
26
- })(AggregationTimePeriod = exports.AggregationTimePeriod || (exports.AggregationTimePeriod = {}));
22
+ exports.AggregationTimePeriod = {
23
+ FiveMinutes: 'FiveMinutes',
24
+ TenMinutes: 'TenMinutes'
25
+ };
@@ -43,7 +43,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
43
43
  const localVarHeaderParameter = {};
44
44
  const localVarQueryParameter = {};
45
45
  localVarHeaderParameter['Content-Type'] = 'application/json';
46
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
46
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
47
47
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48
48
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
49
49
  localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
@@ -76,7 +76,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
76
76
  const localVarHeaderParameter = {};
77
77
  const localVarQueryParameter = {};
78
78
  localVarHeaderParameter['Content-Type'] = 'application/json';
79
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
79
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
80
80
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
81
81
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
82
82
  localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
@@ -105,7 +105,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
105
105
  const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
106
106
  const localVarHeaderParameter = {};
107
107
  const localVarQueryParameter = {};
108
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
108
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
109
109
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
110
110
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
111
111
  return {
@@ -137,7 +137,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
137
137
  const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
138
138
  const localVarHeaderParameter = {};
139
139
  const localVarQueryParameter = {};
140
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
140
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
141
141
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
142
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
143
143
  return {
@@ -165,7 +165,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
165
165
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
166
166
  const localVarHeaderParameter = {};
167
167
  const localVarQueryParameter = {};
168
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
169
169
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
170
170
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
171
171
  return {
@@ -189,7 +189,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
189
189
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
190
190
  const localVarHeaderParameter = {};
191
191
  const localVarQueryParameter = {};
192
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
192
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
193
193
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
194
194
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
195
195
  return {
@@ -217,7 +217,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
217
217
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
218
218
  const localVarHeaderParameter = {};
219
219
  const localVarQueryParameter = {};
220
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
220
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
221
221
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
222
222
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
223
223
  return {
@@ -249,7 +249,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration) {
249
249
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
250
250
  const localVarHeaderParameter = {};
251
251
  const localVarQueryParameter = {};
252
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
253
253
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
254
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
255
255
  return {
@@ -16,8 +16,7 @@
16
16
  * @export
17
17
  * @enum {string}
18
18
  */
19
- export var AggregationTimePeriod;
20
- (function (AggregationTimePeriod) {
21
- AggregationTimePeriod["FiveMinutes"] = "FiveMinutes";
22
- AggregationTimePeriod["TenMinutes"] = "TenMinutes";
23
- })(AggregationTimePeriod || (AggregationTimePeriod = {}));
19
+ export const AggregationTimePeriod = {
20
+ FiveMinutes: 'FiveMinutes',
21
+ TenMinutes: 'TenMinutes'
22
+ };
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AxiosPromise, AxiosInstance } from 'axios';
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateDestinationRequest } from '../models';
@@ -26,14 +26,14 @@ import { GetSubscriptionResponse } from '../models';
26
26
  * NotificationsApi - axios parameter creator
27
27
  * @export
28
28
  */
29
- export declare const NotificationsApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
29
+ export declare const NotificationsApiAxiosParamCreator: (configuration?: Configuration) => {
30
30
  /**
31
31
  * Creates a destination resource to receive notifications. The createDestination API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
32
32
  * @param {CreateDestinationRequest} body
33
33
  * @param {*} [options] Override http request option.
34
34
  * @throws {RequiredError}
35
35
  */
36
- createDestination: (body: CreateDestinationRequest, options?: any) => Promise<RequestArgs>;
36
+ createDestination: (body: CreateDestinationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
37
  /**
38
38
  * Creates a subscription for the specified notification type to be delivered to the specified destination. Before you can subscribe, you must first create the destination by calling the createDestination operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
39
39
  * @param {string} notificationType The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
@@ -41,14 +41,14 @@ export declare const NotificationsApiAxiosParamCreator: (configuration?: Configu
41
41
  * @param {*} [options] Override http request option.
42
42
  * @throws {RequiredError}
43
43
  */
44
- createSubscription: (notificationType: string, body: CreateSubscriptionRequest, options?: any) => Promise<RequestArgs>;
44
+ createSubscription: (notificationType: string, body: CreateSubscriptionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
45
  /**
46
46
  * Deletes the destination that you specify. The deleteDestination API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
47
47
  * @param {string} destinationId The identifier for the destination that you want to delete.
48
48
  * @param {*} [options] Override http request option.
49
49
  * @throws {RequiredError}
50
50
  */
51
- deleteDestination: (destinationId: string, options?: any) => Promise<RequestArgs>;
51
+ deleteDestination: (destinationId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
52
  /**
53
53
  * Deletes the subscription indicated by the subscription identifier and notification type that you specify. The subscription identifier can be for any subscription associated with your application. After you successfully call this operation, notifications will stop being sent for the associated subscription. The deleteSubscriptionById API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
54
54
  * @param {string} subscriptionId The identifier for the subscription that you want to delete.
@@ -56,27 +56,27 @@ export declare const NotificationsApiAxiosParamCreator: (configuration?: Configu
56
56
  * @param {*} [options] Override http request option.
57
57
  * @throws {RequiredError}
58
58
  */
59
- deleteSubscriptionById: (subscriptionId: string, notificationType: string, options?: any) => Promise<RequestArgs>;
59
+ deleteSubscriptionById: (subscriptionId: string, notificationType: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
60
60
  /**
61
61
  * Returns information about the destination that you specify. The getDestination API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
62
62
  * @param {string} destinationId The identifier generated when you created the destination.
63
63
  * @param {*} [options] Override http request option.
64
64
  * @throws {RequiredError}
65
65
  */
66
- getDestination: (destinationId: string, options?: any) => Promise<RequestArgs>;
66
+ getDestination: (destinationId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
67
  /**
68
68
  * Returns information about all destinations. The getDestinations API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
69
69
  * @param {*} [options] Override http request option.
70
70
  * @throws {RequiredError}
71
71
  */
72
- getDestinations: (options?: any) => Promise<RequestArgs>;
72
+ getDestinations: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
73
73
  /**
74
74
  * Returns information about subscriptions of the specified notification type. You can use this API to get subscription information when you do not have a subscription identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
75
75
  * @param {string} notificationType The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
76
76
  * @param {*} [options] Override http request option.
77
77
  * @throws {RequiredError}
78
78
  */
79
- getSubscription: (notificationType: string, options?: any) => Promise<RequestArgs>;
79
+ getSubscription: (notificationType: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
80
80
  /**
81
81
  * Returns information about a subscription for the specified notification type. The getSubscriptionById API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
82
82
  * @param {string} subscriptionId The identifier for the subscription that you want to get.
@@ -84,20 +84,20 @@ export declare const NotificationsApiAxiosParamCreator: (configuration?: Configu
84
84
  * @param {*} [options] Override http request option.
85
85
  * @throws {RequiredError}
86
86
  */
87
- getSubscriptionById: (subscriptionId: string, notificationType: string, options?: any) => Promise<RequestArgs>;
87
+ getSubscriptionById: (subscriptionId: string, notificationType: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
88
88
  };
89
89
  /**
90
90
  * NotificationsApi - functional programming interface
91
91
  * @export
92
92
  */
93
- export declare const NotificationsApiFp: (configuration?: Configuration | undefined) => {
93
+ export declare const NotificationsApiFp: (configuration?: Configuration) => {
94
94
  /**
95
95
  * Creates a destination resource to receive notifications. The createDestination API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
96
96
  * @param {CreateDestinationRequest} body
97
97
  * @param {*} [options] Override http request option.
98
98
  * @throws {RequiredError}
99
99
  */
100
- createDestination(body: CreateDestinationRequest, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CreateDestinationResponse>>;
100
+ createDestination(body: CreateDestinationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDestinationResponse>>;
101
101
  /**
102
102
  * Creates a subscription for the specified notification type to be delivered to the specified destination. Before you can subscribe, you must first create the destination by calling the createDestination operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
103
103
  * @param {string} notificationType The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
@@ -105,14 +105,14 @@ export declare const NotificationsApiFp: (configuration?: Configuration | undefi
105
105
  * @param {*} [options] Override http request option.
106
106
  * @throws {RequiredError}
107
107
  */
108
- createSubscription(notificationType: string, body: CreateSubscriptionRequest, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<CreateSubscriptionResponse>>;
108
+ createSubscription(notificationType: string, body: CreateSubscriptionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSubscriptionResponse>>;
109
109
  /**
110
110
  * Deletes the destination that you specify. The deleteDestination API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
111
111
  * @param {string} destinationId The identifier for the destination that you want to delete.
112
112
  * @param {*} [options] Override http request option.
113
113
  * @throws {RequiredError}
114
114
  */
115
- deleteDestination(destinationId: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<DeleteDestinationResponse>>;
115
+ deleteDestination(destinationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteDestinationResponse>>;
116
116
  /**
117
117
  * Deletes the subscription indicated by the subscription identifier and notification type that you specify. The subscription identifier can be for any subscription associated with your application. After you successfully call this operation, notifications will stop being sent for the associated subscription. The deleteSubscriptionById API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
118
118
  * @param {string} subscriptionId The identifier for the subscription that you want to delete.
@@ -120,27 +120,27 @@ export declare const NotificationsApiFp: (configuration?: Configuration | undefi
120
120
  * @param {*} [options] Override http request option.
121
121
  * @throws {RequiredError}
122
122
  */
123
- deleteSubscriptionById(subscriptionId: string, notificationType: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<DeleteSubscriptionByIdResponse>>;
123
+ deleteSubscriptionById(subscriptionId: string, notificationType: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSubscriptionByIdResponse>>;
124
124
  /**
125
125
  * Returns information about the destination that you specify. The getDestination API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
126
126
  * @param {string} destinationId The identifier generated when you created the destination.
127
127
  * @param {*} [options] Override http request option.
128
128
  * @throws {RequiredError}
129
129
  */
130
- getDestination(destinationId: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetDestinationResponse>>;
130
+ getDestination(destinationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDestinationResponse>>;
131
131
  /**
132
132
  * Returns information about all destinations. The getDestinations API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
133
133
  * @param {*} [options] Override http request option.
134
134
  * @throws {RequiredError}
135
135
  */
136
- getDestinations(options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetDestinationsResponse>>;
136
+ getDestinations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDestinationsResponse>>;
137
137
  /**
138
138
  * Returns information about subscriptions of the specified notification type. You can use this API to get subscription information when you do not have a subscription identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
139
139
  * @param {string} notificationType The type of notification. For more information about notification types, see [the Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
140
140
  * @param {*} [options] Override http request option.
141
141
  * @throws {RequiredError}
142
142
  */
143
- getSubscription(notificationType: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetSubscriptionResponse>>;
143
+ getSubscription(notificationType: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubscriptionResponse>>;
144
144
  /**
145
145
  * Returns information about a subscription for the specified notification type. The getSubscriptionById API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
146
146
  * @param {string} subscriptionId The identifier for the subscription that you want to get.
@@ -148,13 +148,13 @@ export declare const NotificationsApiFp: (configuration?: Configuration | undefi
148
148
  * @param {*} [options] Override http request option.
149
149
  * @throws {RequiredError}
150
150
  */
151
- getSubscriptionById(subscriptionId: string, notificationType: string, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<GetSubscriptionByIdResponse>>;
151
+ getSubscriptionById(subscriptionId: string, notificationType: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubscriptionByIdResponse>>;
152
152
  };
153
153
  /**
154
154
  * NotificationsApi - factory interface
155
155
  * @export
156
156
  */
157
- export declare const NotificationsApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
157
+ export declare const NotificationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
158
158
  /**
159
159
  * Creates a destination resource to receive notifications. The createDestination API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
160
160
  * @param {CreateDestinationRequest} body
@@ -337,7 +337,7 @@ export declare class NotificationsApi extends BaseAPI {
337
337
  * @throws {RequiredError}
338
338
  * @memberof NotificationsApi
339
339
  */
340
- createDestination(requestParameters: NotificationsApiCreateDestinationRequest, options?: any): Promise<import("axios").AxiosResponse<CreateDestinationResponse, any>>;
340
+ createDestination(requestParameters: NotificationsApiCreateDestinationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDestinationResponse, any>>;
341
341
  /**
342
342
  * Creates a subscription for the specified notification type to be delivered to the specified destination. Before you can subscribe, you must first create the destination by calling the createDestination operation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
343
343
  * @param {NotificationsApiCreateSubscriptionRequest} requestParameters Request parameters.
@@ -345,7 +345,7 @@ export declare class NotificationsApi extends BaseAPI {
345
345
  * @throws {RequiredError}
346
346
  * @memberof NotificationsApi
347
347
  */
348
- createSubscription(requestParameters: NotificationsApiCreateSubscriptionRequest, options?: any): Promise<import("axios").AxiosResponse<CreateSubscriptionResponse, any>>;
348
+ createSubscription(requestParameters: NotificationsApiCreateSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSubscriptionResponse, any>>;
349
349
  /**
350
350
  * Deletes the destination that you specify. The deleteDestination API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
351
351
  * @param {NotificationsApiDeleteDestinationRequest} requestParameters Request parameters.
@@ -353,7 +353,7 @@ export declare class NotificationsApi extends BaseAPI {
353
353
  * @throws {RequiredError}
354
354
  * @memberof NotificationsApi
355
355
  */
356
- deleteDestination(requestParameters: NotificationsApiDeleteDestinationRequest, options?: any): Promise<import("axios").AxiosResponse<DeleteDestinationResponse, any>>;
356
+ deleteDestination(requestParameters: NotificationsApiDeleteDestinationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteDestinationResponse, any>>;
357
357
  /**
358
358
  * Deletes the subscription indicated by the subscription identifier and notification type that you specify. The subscription identifier can be for any subscription associated with your application. After you successfully call this operation, notifications will stop being sent for the associated subscription. The deleteSubscriptionById API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
359
359
  * @param {NotificationsApiDeleteSubscriptionByIdRequest} requestParameters Request parameters.
@@ -361,7 +361,7 @@ export declare class NotificationsApi extends BaseAPI {
361
361
  * @throws {RequiredError}
362
362
  * @memberof NotificationsApi
363
363
  */
364
- deleteSubscriptionById(requestParameters: NotificationsApiDeleteSubscriptionByIdRequest, options?: any): Promise<import("axios").AxiosResponse<DeleteSubscriptionByIdResponse, any>>;
364
+ deleteSubscriptionById(requestParameters: NotificationsApiDeleteSubscriptionByIdRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteSubscriptionByIdResponse, any>>;
365
365
  /**
366
366
  * Returns information about the destination that you specify. The getDestination API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
367
367
  * @param {NotificationsApiGetDestinationRequest} requestParameters Request parameters.
@@ -369,14 +369,14 @@ export declare class NotificationsApi extends BaseAPI {
369
369
  * @throws {RequiredError}
370
370
  * @memberof NotificationsApi
371
371
  */
372
- getDestination(requestParameters: NotificationsApiGetDestinationRequest, options?: any): Promise<import("axios").AxiosResponse<GetDestinationResponse, any>>;
372
+ getDestination(requestParameters: NotificationsApiGetDestinationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDestinationResponse, any>>;
373
373
  /**
374
374
  * Returns information about all destinations. The getDestinations API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
375
375
  * @param {*} [options] Override http request option.
376
376
  * @throws {RequiredError}
377
377
  * @memberof NotificationsApi
378
378
  */
379
- getDestinations(options?: any): Promise<import("axios").AxiosResponse<GetDestinationsResponse, any>>;
379
+ getDestinations(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDestinationsResponse, any>>;
380
380
  /**
381
381
  * Returns information about subscriptions of the specified notification type. You can use this API to get subscription information when you do not have a subscription identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
382
382
  * @param {NotificationsApiGetSubscriptionRequest} requestParameters Request parameters.
@@ -384,7 +384,7 @@ export declare class NotificationsApi extends BaseAPI {
384
384
  * @throws {RequiredError}
385
385
  * @memberof NotificationsApi
386
386
  */
387
- getSubscription(requestParameters: NotificationsApiGetSubscriptionRequest, options?: any): Promise<import("axios").AxiosResponse<GetSubscriptionResponse, any>>;
387
+ getSubscription(requestParameters: NotificationsApiGetSubscriptionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSubscriptionResponse, any>>;
388
388
  /**
389
389
  * Returns information about a subscription for the specified notification type. The getSubscriptionById API is grantless. For more information, see [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations) in the Selling Partner API Developer Guide. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
390
390
  * @param {NotificationsApiGetSubscriptionByIdRequest} requestParameters Request parameters.
@@ -392,5 +392,5 @@ export declare class NotificationsApi extends BaseAPI {
392
392
  * @throws {RequiredError}
393
393
  * @memberof NotificationsApi
394
394
  */
395
- getSubscriptionById(requestParameters: NotificationsApiGetSubscriptionByIdRequest, options?: any): Promise<import("axios").AxiosResponse<GetSubscriptionByIdResponse, any>>;
395
+ getSubscriptionById(requestParameters: NotificationsApiGetSubscriptionByIdRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSubscriptionByIdResponse, any>>;
396
396
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { Configuration } from "./configuration";
13
- import { AxiosInstance } from 'axios';
13
+ import { AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
15
  /**
16
16
  *
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
29
29
  */
30
30
  export interface RequestArgs {
31
31
  url: string;
32
- options: any;
32
+ options: AxiosRequestConfig;
33
33
  }
34
34
  /**
35
35
  *
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { Configuration } from "./configuration";
13
13
  import { RequestArgs } from "./base";
14
- import { AxiosInstance } from 'axios';
14
+ import { AxiosInstance, AxiosResponse } from 'axios';
15
15
  /**
16
16
  *
17
17
  * @export
@@ -27,22 +27,22 @@ export declare const assertParamExists: (functionName: string, paramName: string
27
27
  *
28
28
  * @export
29
29
  */
30
- export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration | undefined) => Promise<void>;
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
31
  /**
32
32
  *
33
33
  * @export
34
34
  */
35
- export declare const setBasicAuthToObject: (object: any, configuration?: Configuration | undefined) => void;
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
36
  /**
37
37
  *
38
38
  * @export
39
39
  */
40
- export declare const setBearerAuthToObject: (object: any, configuration?: Configuration | undefined) => Promise<void>;
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
41
  /**
42
42
  *
43
43
  * @export
44
44
  */
45
- export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration | undefined) => Promise<void>;
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
46
  /**
47
47
  *
48
48
  * @export
@@ -52,7 +52,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
52
52
  *
53
53
  * @export
54
54
  */
55
- export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration | undefined) => any;
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
56
  /**
57
57
  *
58
58
  * @export
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any, any>>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -21,5 +21,5 @@ export interface AggregationFilter {
21
21
  * @type {AggregationSettings}
22
22
  * @memberof AggregationFilter
23
23
  */
24
- aggregationSettings?: AggregationSettings;
24
+ 'aggregationSettings'?: AggregationSettings;
25
25
  }
@@ -21,5 +21,5 @@ export interface AggregationSettings {
21
21
  * @type {AggregationTimePeriod}
22
22
  * @memberof AggregationSettings
23
23
  */
24
- aggregationTimePeriod: AggregationTimePeriod;
24
+ 'aggregationTimePeriod': AggregationTimePeriod;
25
25
  }
@@ -14,7 +14,8 @@
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
17
- export declare enum AggregationTimePeriod {
18
- FiveMinutes = "FiveMinutes",
19
- TenMinutes = "TenMinutes"
20
- }
17
+ export declare const AggregationTimePeriod: {
18
+ readonly FiveMinutes: "FiveMinutes";
19
+ readonly TenMinutes: "TenMinutes";
20
+ };
21
+ export declare type AggregationTimePeriod = typeof AggregationTimePeriod[keyof typeof AggregationTimePeriod];
@@ -21,11 +21,11 @@ export interface CreateDestinationRequest {
21
21
  * @type {DestinationResourceSpecification}
22
22
  * @memberof CreateDestinationRequest
23
23
  */
24
- resourceSpecification: DestinationResourceSpecification;
24
+ 'resourceSpecification': DestinationResourceSpecification;
25
25
  /**
26
26
  * A developer-defined name to help identify this destination.
27
27
  * @type {string}
28
28
  * @memberof CreateDestinationRequest
29
29
  */
30
- name: string;
30
+ 'name': string;
31
31
  }
@@ -21,11 +21,11 @@ export interface CreateDestinationResponse {
21
21
  * @type {Destination}
22
22
  * @memberof CreateDestinationResponse
23
23
  */
24
- payload?: Destination;
24
+ 'payload'?: Destination;
25
25
  /**
26
26
  * A list of error responses returned when a request is unsuccessful.
27
27
  * @type {Array<Error>}
28
28
  * @memberof CreateDestinationResponse
29
29
  */
30
- errors?: Array<Error>;
30
+ 'errors'?: Array<Error>;
31
31
  }
@@ -21,17 +21,17 @@ export interface CreateSubscriptionRequest {
21
21
  * @type {string}
22
22
  * @memberof CreateSubscriptionRequest
23
23
  */
24
- payloadVersion?: string;
24
+ 'payloadVersion'?: string;
25
25
  /**
26
26
  * The identifier for the destination where notifications will be delivered.
27
27
  * @type {string}
28
28
  * @memberof CreateSubscriptionRequest
29
29
  */
30
- destinationId?: string;
30
+ 'destinationId'?: string;
31
31
  /**
32
32
  *
33
33
  * @type {ProcessingDirective}
34
34
  * @memberof CreateSubscriptionRequest
35
35
  */
36
- processingDirective?: ProcessingDirective;
36
+ 'processingDirective'?: ProcessingDirective;
37
37
  }
@@ -21,11 +21,11 @@ export interface CreateSubscriptionResponse {
21
21
  * @type {Subscription}
22
22
  * @memberof CreateSubscriptionResponse
23
23
  */
24
- payload?: Subscription;
24
+ 'payload'?: Subscription;
25
25
  /**
26
26
  * A list of error responses returned when a request is unsuccessful.
27
27
  * @type {Array<Error>}
28
28
  * @memberof CreateSubscriptionResponse
29
29
  */
30
- errors?: Array<Error>;
30
+ 'errors'?: Array<Error>;
31
31
  }
@@ -20,5 +20,5 @@ export interface DeleteDestinationResponse {
20
20
  * @type {Array<Error>}
21
21
  * @memberof DeleteDestinationResponse
22
22
  */
23
- errors?: Array<Error>;
23
+ 'errors'?: Array<Error>;
24
24
  }
@@ -20,5 +20,5 @@ export interface DeleteSubscriptionByIdResponse {
20
20
  * @type {Array<Error>}
21
21
  * @memberof DeleteSubscriptionByIdResponse
22
22
  */
23
- errors?: Array<Error>;
23
+ 'errors'?: Array<Error>;
24
24
  }
@@ -22,11 +22,11 @@ export interface DestinationResourceSpecification {
22
22
  * @type {SqsResource}
23
23
  * @memberof DestinationResourceSpecification
24
24
  */
25
- sqs?: SqsResource;
25
+ 'sqs'?: SqsResource;
26
26
  /**
27
27
  *
28
28
  * @type {EventBridgeResourceSpecification}
29
29
  * @memberof DestinationResourceSpecification
30
30
  */
31
- eventBridge?: EventBridgeResourceSpecification;
31
+ 'eventBridge'?: EventBridgeResourceSpecification;
32
32
  }
@@ -22,11 +22,11 @@ export interface DestinationResource {
22
22
  * @type {SqsResource}
23
23
  * @memberof DestinationResource
24
24
  */
25
- sqs?: SqsResource;
25
+ 'sqs'?: SqsResource;
26
26
  /**
27
27
  *
28
28
  * @type {EventBridgeResource}
29
29
  * @memberof DestinationResource
30
30
  */
31
- eventBridge?: EventBridgeResource;
31
+ 'eventBridge'?: EventBridgeResource;
32
32
  }
@@ -21,17 +21,17 @@ export interface Destination {
21
21
  * @type {string}
22
22
  * @memberof Destination
23
23
  */
24
- name: string;
24
+ 'name': string;
25
25
  /**
26
26
  * The destination identifier generated when you created the destination.
27
27
  * @type {string}
28
28
  * @memberof Destination
29
29
  */
30
- destinationId: string;
30
+ 'destinationId': string;
31
31
  /**
32
32
  *
33
33
  * @type {DestinationResource}
34
34
  * @memberof Destination
35
35
  */
36
- resource: DestinationResource;
36
+ 'resource': DestinationResource;
37
37
  }
@@ -20,11 +20,11 @@ export interface EventBridgeResourceSpecification {
20
20
  * @type {string}
21
21
  * @memberof EventBridgeResourceSpecification
22
22
  */
23
- region: string;
23
+ 'region': string;
24
24
  /**
25
25
  * The identifier for the AWS account that is responsible for charges related to receiving notifications.
26
26
  * @type {string}
27
27
  * @memberof EventBridgeResourceSpecification
28
28
  */
29
- accountId: string;
29
+ 'accountId': string;
30
30
  }
@@ -20,17 +20,17 @@ export interface EventBridgeResource {
20
20
  * @type {string}
21
21
  * @memberof EventBridgeResource
22
22
  */
23
- name: string;
23
+ 'name': string;
24
24
  /**
25
25
  * The AWS region in which you receive the notifications. For AWS regions that are supported in Amazon EventBridge, see https://docs.aws.amazon.com/general/latest/gr/ev.html.
26
26
  * @type {string}
27
27
  * @memberof EventBridgeResource
28
28
  */
29
- region: string;
29
+ 'region': string;
30
30
  /**
31
31
  * The identifier for the AWS account that is responsible for charges related to receiving notifications.
32
32
  * @type {string}
33
33
  * @memberof EventBridgeResource
34
34
  */
35
- accountId: string;
35
+ 'accountId': string;
36
36
  }
@@ -20,5 +20,5 @@ export interface EventFilterAllOf {
20
20
  * @type {string}
21
21
  * @memberof EventFilterAllOf
22
22
  */
23
- eventFilterType: string;
23
+ 'eventFilterType': string;
24
24
  }
@@ -21,11 +21,11 @@ export interface GetDestinationResponse {
21
21
  * @type {Destination}
22
22
  * @memberof GetDestinationResponse
23
23
  */
24
- payload?: Destination;
24
+ 'payload'?: Destination;
25
25
  /**
26
26
  * A list of error responses returned when a request is unsuccessful.
27
27
  * @type {Array<Error>}
28
28
  * @memberof GetDestinationResponse
29
29
  */
30
- errors?: Array<Error>;
30
+ 'errors'?: Array<Error>;
31
31
  }
@@ -21,11 +21,11 @@ export interface GetDestinationsResponse {
21
21
  * @type {Array<Destination>}
22
22
  * @memberof GetDestinationsResponse
23
23
  */
24
- payload?: Array<Destination>;
24
+ 'payload'?: Array<Destination>;
25
25
  /**
26
26
  * A list of error responses returned when a request is unsuccessful.
27
27
  * @type {Array<Error>}
28
28
  * @memberof GetDestinationsResponse
29
29
  */
30
- errors?: Array<Error>;
30
+ 'errors'?: Array<Error>;
31
31
  }
@@ -21,11 +21,11 @@ export interface GetSubscriptionByIdResponse {
21
21
  * @type {Subscription}
22
22
  * @memberof GetSubscriptionByIdResponse
23
23
  */
24
- payload?: Subscription;
24
+ 'payload'?: Subscription;
25
25
  /**
26
26
  * A list of error responses returned when a request is unsuccessful.
27
27
  * @type {Array<Error>}
28
28
  * @memberof GetSubscriptionByIdResponse
29
29
  */
30
- errors?: Array<Error>;
30
+ 'errors'?: Array<Error>;
31
31
  }
@@ -21,11 +21,11 @@ export interface GetSubscriptionResponse {
21
21
  * @type {Subscription}
22
22
  * @memberof GetSubscriptionResponse
23
23
  */
24
- payload?: Subscription;
24
+ 'payload'?: Subscription;
25
25
  /**
26
26
  * A list of error responses returned when a request is unsuccessful.
27
27
  * @type {Array<Error>}
28
28
  * @memberof GetSubscriptionResponse
29
29
  */
30
- errors?: Array<Error>;
30
+ 'errors'?: Array<Error>;
31
31
  }
@@ -20,5 +20,5 @@ export interface MarketplaceFilter {
20
20
  * @type {Array<string>}
21
21
  * @memberof MarketplaceFilter
22
22
  */
23
- marketplaceIds?: Array<string>;
23
+ 'marketplaceIds'?: Array<string>;
24
24
  }
@@ -20,17 +20,17 @@ export interface ModelError {
20
20
  * @type {string}
21
21
  * @memberof ModelError
22
22
  */
23
- code: string;
23
+ 'code': string;
24
24
  /**
25
25
  * A message that describes the error condition in a human-readable form.
26
26
  * @type {string}
27
27
  * @memberof ModelError
28
28
  */
29
- message: string;
29
+ 'message': string;
30
30
  /**
31
31
  * Additional details that can help the caller understand or fix the issue.
32
32
  * @type {string}
33
33
  * @memberof ModelError
34
34
  */
35
- details?: string;
35
+ 'details'?: string;
36
36
  }
@@ -21,5 +21,5 @@ export interface ProcessingDirective {
21
21
  * @type {EventFilter}
22
22
  * @memberof ProcessingDirective
23
23
  */
24
- eventFilter?: EventFilter;
24
+ 'eventFilter'?: EventFilter;
25
25
  }
@@ -20,5 +20,5 @@ export interface SqsResource {
20
20
  * @type {string}
21
21
  * @memberof SqsResource
22
22
  */
23
- arn: string;
23
+ 'arn': string;
24
24
  }
@@ -21,23 +21,23 @@ export interface Subscription {
21
21
  * @type {string}
22
22
  * @memberof Subscription
23
23
  */
24
- subscriptionId: string;
24
+ 'subscriptionId': string;
25
25
  /**
26
26
  * The version of the payload object to be used in the notification.
27
27
  * @type {string}
28
28
  * @memberof Subscription
29
29
  */
30
- payloadVersion: string;
30
+ 'payloadVersion': string;
31
31
  /**
32
32
  * The identifier for the destination where notifications will be delivered.
33
33
  * @type {string}
34
34
  * @memberof Subscription
35
35
  */
36
- destinationId: string;
36
+ 'destinationId': string;
37
37
  /**
38
38
  *
39
39
  * @type {ProcessingDirective}
40
40
  * @memberof Subscription
41
41
  */
42
- processingDirective?: ProcessingDirective;
42
+ 'processingDirective'?: ProcessingDirective;
43
43
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/notifications-api-v1",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the Notifications Use Case Guide.",
5
- "version": "1.12.0",
5
+ "version": "1.12.3",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "test": "jest"
28
28
  },
29
29
  "dependencies": {
30
- "@sp-api-sdk/auth": "^1.9.17",
31
- "@sp-api-sdk/common": "^1.9.3",
30
+ "@sp-api-sdk/auth": "^1.9.19",
31
+ "@sp-api-sdk/common": "^1.9.5",
32
32
  "axios": "^0.27.2"
33
33
  },
34
34
  "repository": {
@@ -50,5 +50,5 @@
50
50
  "sp sdk",
51
51
  "notifications api"
52
52
  ],
53
- "gitHead": "a91680c9bce217db7412c5ad7c17aa6e918ada8e"
53
+ "gitHead": "72808979582d663f043688f24d519b604f7fd2df"
54
54
  }