@sp-api-sdk/application-integrations-api-2024-04-01 3.0.17 → 4.1.0

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 (53) hide show
  1. package/README.md +7 -8
  2. package/dist/index.cjs +449 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +423 -0
  5. package/dist/index.d.ts +423 -0
  6. package/dist/index.js +418 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +26 -12
  9. package/dist/cjs/api-model/api/application-integrations-api.js +0 -242
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/create-notification-request.js +0 -15
  16. package/dist/cjs/api-model/models/create-notification-response.js +0 -15
  17. package/dist/cjs/api-model/models/delete-notifications-request.js +0 -20
  18. package/dist/cjs/api-model/models/error-list.js +0 -15
  19. package/dist/cjs/api-model/models/index.js +0 -22
  20. package/dist/cjs/api-model/models/model-error.js +0 -15
  21. package/dist/cjs/api-model/models/record-action-feedback-request.js +0 -19
  22. package/dist/cjs/client.js +0 -35
  23. package/dist/cjs/index.js +0 -19
  24. package/dist/es/api-model/api/application-integrations-api.js +0 -232
  25. package/dist/es/api-model/api.js +0 -14
  26. package/dist/es/api-model/base.js +0 -44
  27. package/dist/es/api-model/common.js +0 -110
  28. package/dist/es/api-model/configuration.js +0 -94
  29. package/dist/es/api-model/index.js +0 -16
  30. package/dist/es/api-model/models/create-notification-request.js +0 -14
  31. package/dist/es/api-model/models/create-notification-response.js +0 -14
  32. package/dist/es/api-model/models/delete-notifications-request.js +0 -17
  33. package/dist/es/api-model/models/error-list.js +0 -14
  34. package/dist/es/api-model/models/index.js +0 -6
  35. package/dist/es/api-model/models/model-error.js +0 -14
  36. package/dist/es/api-model/models/record-action-feedback-request.js +0 -16
  37. package/dist/es/client.js +0 -31
  38. package/dist/es/index.js +0 -3
  39. package/dist/types/api-model/api/application-integrations-api.d.ts +0 -156
  40. package/dist/types/api-model/api.d.ts +0 -12
  41. package/dist/types/api-model/base.d.ts +0 -42
  42. package/dist/types/api-model/common.d.ts +0 -34
  43. package/dist/types/api-model/configuration.d.ts +0 -98
  44. package/dist/types/api-model/index.d.ts +0 -14
  45. package/dist/types/api-model/models/create-notification-request.d.ts +0 -30
  46. package/dist/types/api-model/models/create-notification-response.d.ts +0 -20
  47. package/dist/types/api-model/models/delete-notifications-request.d.ts +0 -29
  48. package/dist/types/api-model/models/error-list.d.ts +0 -20
  49. package/dist/types/api-model/models/index.d.ts +0 -6
  50. package/dist/types/api-model/models/model-error.d.ts +0 -28
  51. package/dist/types/api-model/models/record-action-feedback-request.d.ts +0 -24
  52. package/dist/types/client.d.ts +0 -6
  53. package/dist/types/index.d.ts +0 -3
package/dist/index.js ADDED
@@ -0,0 +1,418 @@
1
+ import { createAxiosInstance } from "@sp-api-sdk/common";
2
+ import globalAxios from "axios";
3
+ //#region src/api-model/base.ts
4
+ const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
5
+ var BaseAPI = class {
6
+ basePath;
7
+ axios;
8
+ configuration;
9
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
10
+ this.basePath = basePath;
11
+ this.axios = axios;
12
+ if (configuration) {
13
+ this.configuration = configuration;
14
+ this.basePath = configuration.basePath ?? basePath;
15
+ }
16
+ }
17
+ };
18
+ var RequiredError = class extends Error {
19
+ field;
20
+ constructor(field, msg) {
21
+ super(msg);
22
+ this.field = field;
23
+ this.name = "RequiredError";
24
+ }
25
+ };
26
+ const operationServerMap = {};
27
+ //#endregion
28
+ //#region src/api-model/common.ts
29
+ const DUMMY_BASE_URL = "https://example.com";
30
+ /**
31
+ *
32
+ * @throws {RequiredError}
33
+ */
34
+ const assertParamExists = function(functionName, paramName, paramValue) {
35
+ if (paramValue === null || paramValue === void 0) throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
36
+ };
37
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
38
+ if (parameter == null) return;
39
+ if (typeof parameter === "object") if (Array.isArray(parameter) || parameter instanceof Set) parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
40
+ else Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
41
+ else if (urlSearchParams.has(key)) urlSearchParams.append(key, parameter);
42
+ else urlSearchParams.set(key, parameter);
43
+ }
44
+ const setSearchParams = function(url, ...objects) {
45
+ const searchParams = new URLSearchParams(url.search);
46
+ setFlattenedQueryParams(searchParams, objects);
47
+ url.search = searchParams.toString();
48
+ };
49
+ /**
50
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
51
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
52
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
53
+ */
54
+ const replaceWithSerializableTypeIfNeeded = function(key, value) {
55
+ if (value instanceof Set) return Array.from(value);
56
+ else return value;
57
+ };
58
+ const serializeDataIfNeeded = function(value, requestOptions, configuration) {
59
+ const nonString = typeof value !== "string";
60
+ return (nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString) ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
61
+ };
62
+ const toPathString = function(url) {
63
+ return url.pathname + url.search + url.hash;
64
+ };
65
+ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) {
66
+ return (axios = globalAxios, basePath = BASE_PATH) => {
67
+ const axiosRequestArgs = {
68
+ ...axiosArgs.options,
69
+ url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url
70
+ };
71
+ return axios.request(axiosRequestArgs);
72
+ };
73
+ };
74
+ //#endregion
75
+ //#region src/api-model/api/application-integrations-api.ts
76
+ /**
77
+ * ApplicationIntegrationsApi - axios parameter creator
78
+ */
79
+ const ApplicationIntegrationsApiAxiosParamCreator = function(configuration) {
80
+ return {
81
+ /**
82
+ * Create a notification for sellers in Seller Central. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
83
+ * @param {CreateNotificationRequest} body The request body for the `createNotification` operation.
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ createNotification: async (body, options = {}) => {
88
+ assertParamExists("createNotification", "body", body);
89
+ const localVarUrlObj = new URL(`/appIntegrations/2024-04-01/notifications`, DUMMY_BASE_URL);
90
+ let baseOptions;
91
+ if (configuration) baseOptions = configuration.baseOptions;
92
+ const localVarRequestOptions = {
93
+ method: "POST",
94
+ ...baseOptions,
95
+ ...options
96
+ };
97
+ const localVarHeaderParameter = {};
98
+ const localVarQueryParameter = {};
99
+ localVarHeaderParameter["Content-Type"] = "application/json";
100
+ localVarHeaderParameter["Accept"] = "application/json";
101
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
102
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
103
+ localVarRequestOptions.headers = {
104
+ ...localVarHeaderParameter,
105
+ ...headersFromBaseOptions,
106
+ ...options.headers
107
+ };
108
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
109
+ return {
110
+ url: toPathString(localVarUrlObj),
111
+ options: localVarRequestOptions
112
+ };
113
+ },
114
+ /**
115
+ * Remove your application\'s notifications from the Appstore notifications dashboard. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
116
+ * @param {DeleteNotificationsRequest} body The request body for the `deleteNotifications` operation.
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ deleteNotifications: async (body, options = {}) => {
121
+ assertParamExists("deleteNotifications", "body", body);
122
+ const localVarUrlObj = new URL(`/appIntegrations/2024-04-01/notifications/deletion`, DUMMY_BASE_URL);
123
+ let baseOptions;
124
+ if (configuration) baseOptions = configuration.baseOptions;
125
+ const localVarRequestOptions = {
126
+ method: "POST",
127
+ ...baseOptions,
128
+ ...options
129
+ };
130
+ const localVarHeaderParameter = {};
131
+ const localVarQueryParameter = {};
132
+ localVarHeaderParameter["Content-Type"] = "application/json";
133
+ localVarHeaderParameter["Accept"] = "application/json";
134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = {
137
+ ...localVarHeaderParameter,
138
+ ...headersFromBaseOptions,
139
+ ...options.headers
140
+ };
141
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
142
+ return {
143
+ url: toPathString(localVarUrlObj),
144
+ options: localVarRequestOptions
145
+ };
146
+ },
147
+ /**
148
+ * Records the seller\'s response to a notification. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
149
+ * @param {string} notificationId A `notificationId` uniquely identifies a notification.
150
+ * @param {RecordActionFeedbackRequest} body The request body for the `recordActionFeedback` operation.
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ recordActionFeedback: async (notificationId, body, options = {}) => {
155
+ assertParamExists("recordActionFeedback", "notificationId", notificationId);
156
+ assertParamExists("recordActionFeedback", "body", body);
157
+ const localVarPath = `/appIntegrations/2024-04-01/notifications/{notificationId}/feedback`.replace("{notificationId}", encodeURIComponent(String(notificationId)));
158
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
159
+ let baseOptions;
160
+ if (configuration) baseOptions = configuration.baseOptions;
161
+ const localVarRequestOptions = {
162
+ method: "POST",
163
+ ...baseOptions,
164
+ ...options
165
+ };
166
+ const localVarHeaderParameter = {};
167
+ const localVarQueryParameter = {};
168
+ localVarHeaderParameter["Content-Type"] = "application/json";
169
+ localVarHeaderParameter["Accept"] = "application/json";
170
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
171
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
172
+ localVarRequestOptions.headers = {
173
+ ...localVarHeaderParameter,
174
+ ...headersFromBaseOptions,
175
+ ...options.headers
176
+ };
177
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
178
+ return {
179
+ url: toPathString(localVarUrlObj),
180
+ options: localVarRequestOptions
181
+ };
182
+ }
183
+ };
184
+ };
185
+ /**
186
+ * ApplicationIntegrationsApi - functional programming interface
187
+ */
188
+ const ApplicationIntegrationsApiFp = function(configuration) {
189
+ const localVarAxiosParamCreator = ApplicationIntegrationsApiAxiosParamCreator(configuration);
190
+ return {
191
+ /**
192
+ * Create a notification for sellers in Seller Central. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
193
+ * @param {CreateNotificationRequest} body The request body for the `createNotification` operation.
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ async createNotification(body, options) {
198
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createNotification(body, options);
199
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
200
+ const localVarOperationServerBasePath = operationServerMap["ApplicationIntegrationsApi.createNotification"]?.[localVarOperationServerIndex]?.url;
201
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
202
+ },
203
+ /**
204
+ * Remove your application\'s notifications from the Appstore notifications dashboard. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
205
+ * @param {DeleteNotificationsRequest} body The request body for the `deleteNotifications` operation.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ async deleteNotifications(body, options) {
210
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteNotifications(body, options);
211
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
212
+ const localVarOperationServerBasePath = operationServerMap["ApplicationIntegrationsApi.deleteNotifications"]?.[localVarOperationServerIndex]?.url;
213
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
214
+ },
215
+ /**
216
+ * Records the seller\'s response to a notification. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
217
+ * @param {string} notificationId A `notificationId` uniquely identifies a notification.
218
+ * @param {RecordActionFeedbackRequest} body The request body for the `recordActionFeedback` operation.
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ async recordActionFeedback(notificationId, body, options) {
223
+ const localVarAxiosArgs = await localVarAxiosParamCreator.recordActionFeedback(notificationId, body, options);
224
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
225
+ const localVarOperationServerBasePath = operationServerMap["ApplicationIntegrationsApi.recordActionFeedback"]?.[localVarOperationServerIndex]?.url;
226
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
227
+ }
228
+ };
229
+ };
230
+ /**
231
+ * ApplicationIntegrationsApi - factory interface
232
+ */
233
+ const ApplicationIntegrationsApiFactory = function(configuration, basePath, axios) {
234
+ const localVarFp = ApplicationIntegrationsApiFp(configuration);
235
+ return {
236
+ /**
237
+ * Create a notification for sellers in Seller Central. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
238
+ * @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ createNotification(requestParameters, options) {
243
+ return localVarFp.createNotification(requestParameters.body, options).then((request) => request(axios, basePath));
244
+ },
245
+ /**
246
+ * Remove your application\'s notifications from the Appstore notifications dashboard. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
247
+ * @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ deleteNotifications(requestParameters, options) {
252
+ return localVarFp.deleteNotifications(requestParameters.body, options).then((request) => request(axios, basePath));
253
+ },
254
+ /**
255
+ * Records the seller\'s response to a notification. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
256
+ * @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ recordActionFeedback(requestParameters, options) {
261
+ return localVarFp.recordActionFeedback(requestParameters.notificationId, requestParameters.body, options).then((request) => request(axios, basePath));
262
+ }
263
+ };
264
+ };
265
+ /**
266
+ * ApplicationIntegrationsApi - object-oriented interface
267
+ */
268
+ var ApplicationIntegrationsApi = class extends BaseAPI {
269
+ /**
270
+ * Create a notification for sellers in Seller Central. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
271
+ * @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ createNotification(requestParameters, options) {
276
+ return ApplicationIntegrationsApiFp(this.configuration).createNotification(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
277
+ }
278
+ /**
279
+ * Remove your application\'s notifications from the Appstore notifications dashboard. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
280
+ * @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.
281
+ * @param {*} [options] Override http request option.
282
+ * @throws {RequiredError}
283
+ */
284
+ deleteNotifications(requestParameters, options) {
285
+ return ApplicationIntegrationsApiFp(this.configuration).deleteNotifications(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
286
+ }
287
+ /**
288
+ * Records the seller\'s response to a notification. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
289
+ * @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ recordActionFeedback(requestParameters, options) {
294
+ return ApplicationIntegrationsApiFp(this.configuration).recordActionFeedback(requestParameters.notificationId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
295
+ }
296
+ };
297
+ //#endregion
298
+ //#region src/api-model/configuration.ts
299
+ var Configuration = class {
300
+ /**
301
+ * parameter for apiKey security
302
+ * @param name security name
303
+ */
304
+ apiKey;
305
+ /**
306
+ * parameter for basic security
307
+ */
308
+ username;
309
+ /**
310
+ * parameter for basic security
311
+ */
312
+ password;
313
+ /**
314
+ * parameter for oauth2 security
315
+ * @param name security name
316
+ * @param scopes oauth2 scope
317
+ */
318
+ accessToken;
319
+ /**
320
+ * parameter for aws4 signature security
321
+ * @param {Object} AWS4Signature - AWS4 Signature security
322
+ * @param {string} options.region - aws region
323
+ * @param {string} options.service - name of the service.
324
+ * @param {string} credentials.accessKeyId - aws access key id
325
+ * @param {string} credentials.secretAccessKey - aws access key
326
+ * @param {string} credentials.sessionToken - aws session token
327
+ * @memberof Configuration
328
+ */
329
+ awsv4;
330
+ /**
331
+ * override base path
332
+ */
333
+ basePath;
334
+ /**
335
+ * override server index
336
+ */
337
+ serverIndex;
338
+ /**
339
+ * base options for axios calls
340
+ */
341
+ baseOptions;
342
+ /**
343
+ * The FormData constructor that will be used to create multipart form data
344
+ * requests. You can inject this here so that execution environments that
345
+ * do not support the FormData class can still run the generated client.
346
+ *
347
+ * @type {new () => FormData}
348
+ */
349
+ formDataCtor;
350
+ constructor(param = {}) {
351
+ this.apiKey = param.apiKey;
352
+ this.username = param.username;
353
+ this.password = param.password;
354
+ this.accessToken = param.accessToken;
355
+ this.awsv4 = param.awsv4;
356
+ this.basePath = param.basePath;
357
+ this.serverIndex = param.serverIndex;
358
+ this.baseOptions = {
359
+ ...param.baseOptions,
360
+ headers: { ...param.baseOptions?.headers }
361
+ };
362
+ this.formDataCtor = param.formDataCtor;
363
+ }
364
+ /**
365
+ * Check if the given MIME is a JSON MIME.
366
+ * JSON MIME examples:
367
+ * application/json
368
+ * application/json; charset=UTF8
369
+ * APPLICATION/JSON
370
+ * application/vnd.company+json
371
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
372
+ * @return True if the given MIME is JSON, false otherwise.
373
+ */
374
+ isJsonMime(mime) {
375
+ return mime !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(mime);
376
+ }
377
+ };
378
+ //#endregion
379
+ //#region src/api-model/models/delete-notifications-request.ts
380
+ const DeleteNotificationsRequestDeletionReasonEnum = {
381
+ IncorrectContent: "INCORRECT_CONTENT",
382
+ IncorrectRecipient: "INCORRECT_RECIPIENT"
383
+ };
384
+ //#endregion
385
+ //#region src/api-model/models/record-action-feedback-request.ts
386
+ const RecordActionFeedbackRequestFeedbackActionCodeEnum = { SellerActionCompleted: "SELLER_ACTION_COMPLETED" };
387
+ //#endregion
388
+ //#region src/client.ts
389
+ const clientRateLimits = [
390
+ {
391
+ method: "post",
392
+ urlRegex: /^\/appIntegrations\/2024\u{2D}04\u{2D}01\/notifications$/v,
393
+ rate: 1,
394
+ burst: 5
395
+ },
396
+ {
397
+ method: "post",
398
+ urlRegex: /^\/appIntegrations\/2024\u{2D}04\u{2D}01\/notifications\/deletion$/v,
399
+ rate: 1,
400
+ burst: 5
401
+ },
402
+ {
403
+ method: "post",
404
+ urlRegex: /^\/appIntegrations\/2024\u{2D}04\u{2D}01\/notifications\/[^\/]*\/feedback$/v,
405
+ rate: 1,
406
+ burst: 5
407
+ }
408
+ ];
409
+ var ApplicationIntegrationsApiClient = class extends ApplicationIntegrationsApi {
410
+ constructor(configuration) {
411
+ const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
412
+ super(new Configuration(), endpoint, axios);
413
+ }
414
+ };
415
+ //#endregion
416
+ export { ApplicationIntegrationsApi, ApplicationIntegrationsApiAxiosParamCreator, ApplicationIntegrationsApiClient, ApplicationIntegrationsApiFactory, ApplicationIntegrationsApiFp, DeleteNotificationsRequestDeletionReasonEnum, RecordActionFeedbackRequestFeedbackActionCodeEnum, clientRateLimits };
417
+
418
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/api/application-integrations-api.ts","../src/api-model/configuration.ts","../src/api-model/models/delete-notifications-request.ts","../src/api-model/models/record-action-feedback-request.ts","../src/client.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for third party application integrations.\n * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.\n *\n * The version of the OpenAPI document: 2024-04-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for third party application integrations.\n * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.\n *\n * The version of the OpenAPI document: 2024-04-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for third party application integrations.\n * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.\n *\n * The version of the OpenAPI document: 2024-04-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { CreateNotificationRequest } from '../models/index.js';\n// @ts-ignore\nimport type { CreateNotificationResponse } from '../models/index.js';\n// @ts-ignore\nimport type { DeleteNotificationsRequest } from '../models/index.js';\n// @ts-ignore\nimport type { ErrorList } from '../models/index.js';\n// @ts-ignore\nimport type { RecordActionFeedbackRequest } from '../models/index.js';\n/**\n * ApplicationIntegrationsApi - axios parameter creator\n */\nexport const ApplicationIntegrationsApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Create a notification for sellers in Seller Central. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).\n * @param {CreateNotificationRequest} body The request body for the &#x60;createNotification&#x60; operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createNotification: async (body: CreateNotificationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'body' is not null or undefined\n assertParamExists('createNotification', 'body', body)\n const localVarPath = `/appIntegrations/2024-04-01/notifications`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Remove your application\\'s notifications from the Appstore notifications dashboard. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).\n * @param {DeleteNotificationsRequest} body The request body for the &#x60;deleteNotifications&#x60; operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteNotifications: async (body: DeleteNotificationsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'body' is not null or undefined\n assertParamExists('deleteNotifications', 'body', body)\n const localVarPath = `/appIntegrations/2024-04-01/notifications/deletion`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Records the seller\\'s response to a notification. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).\n * @param {string} notificationId A &#x60;notificationId&#x60; uniquely identifies a notification.\n * @param {RecordActionFeedbackRequest} body The request body for the &#x60;recordActionFeedback&#x60; operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n recordActionFeedback: async (notificationId: string, body: RecordActionFeedbackRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'notificationId' is not null or undefined\n assertParamExists('recordActionFeedback', 'notificationId', notificationId)\n // verify required parameter 'body' is not null or undefined\n assertParamExists('recordActionFeedback', 'body', body)\n const localVarPath = `/appIntegrations/2024-04-01/notifications/{notificationId}/feedback`\n .replace('{notificationId}', encodeURIComponent(String(notificationId)));\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * ApplicationIntegrationsApi - functional programming interface\n */\nexport const ApplicationIntegrationsApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = ApplicationIntegrationsApiAxiosParamCreator(configuration)\n return {\n /**\n * Create a notification for sellers in Seller Central. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).\n * @param {CreateNotificationRequest} body The request body for the &#x60;createNotification&#x60; operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async createNotification(body: CreateNotificationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateNotificationResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.createNotification(body, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ApplicationIntegrationsApi.createNotification']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Remove your application\\'s notifications from the Appstore notifications dashboard. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).\n * @param {DeleteNotificationsRequest} body The request body for the &#x60;deleteNotifications&#x60; operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async deleteNotifications(body: DeleteNotificationsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.deleteNotifications(body, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ApplicationIntegrationsApi.deleteNotifications']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Records the seller\\'s response to a notification. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).\n * @param {string} notificationId A &#x60;notificationId&#x60; uniquely identifies a notification.\n * @param {RecordActionFeedbackRequest} body The request body for the &#x60;recordActionFeedback&#x60; operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async recordActionFeedback(notificationId: string, body: RecordActionFeedbackRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.recordActionFeedback(notificationId, body, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['ApplicationIntegrationsApi.recordActionFeedback']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * ApplicationIntegrationsApi - factory interface\n */\nexport const ApplicationIntegrationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = ApplicationIntegrationsApiFp(configuration)\n return {\n /**\n * Create a notification for sellers in Seller Central. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).\n * @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n createNotification(requestParameters: ApplicationIntegrationsApiCreateNotificationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateNotificationResponse> {\n return localVarFp.createNotification(requestParameters.body, options).then((request) => request(axios, basePath));\n },\n /**\n * Remove your application\\'s notifications from the Appstore notifications dashboard. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).\n * @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n deleteNotifications(requestParameters: ApplicationIntegrationsApiDeleteNotificationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.deleteNotifications(requestParameters.body, options).then((request) => request(axios, basePath));\n },\n /**\n * Records the seller\\'s response to a notification. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).\n * @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n recordActionFeedback(requestParameters: ApplicationIntegrationsApiRecordActionFeedbackRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {\n return localVarFp.recordActionFeedback(requestParameters.notificationId, requestParameters.body, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for createNotification operation in ApplicationIntegrationsApi.\n */\nexport interface ApplicationIntegrationsApiCreateNotificationRequest {\n /**\n * The request body for the &#x60;createNotification&#x60; operation.\n */\n readonly body: CreateNotificationRequest\n}\n\n/**\n * Request parameters for deleteNotifications operation in ApplicationIntegrationsApi.\n */\nexport interface ApplicationIntegrationsApiDeleteNotificationsRequest {\n /**\n * The request body for the &#x60;deleteNotifications&#x60; operation.\n */\n readonly body: DeleteNotificationsRequest\n}\n\n/**\n * Request parameters for recordActionFeedback operation in ApplicationIntegrationsApi.\n */\nexport interface ApplicationIntegrationsApiRecordActionFeedbackRequest {\n /**\n * A &#x60;notificationId&#x60; uniquely identifies a notification.\n */\n readonly notificationId: string\n\n /**\n * The request body for the &#x60;recordActionFeedback&#x60; operation.\n */\n readonly body: RecordActionFeedbackRequest\n}\n\n/**\n * ApplicationIntegrationsApi - object-oriented interface\n */\nexport class ApplicationIntegrationsApi extends BaseAPI {\n /**\n * Create a notification for sellers in Seller Central. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).\n * @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public createNotification(requestParameters: ApplicationIntegrationsApiCreateNotificationRequest, options?: RawAxiosRequestConfig) {\n return ApplicationIntegrationsApiFp(this.configuration).createNotification(requestParameters.body, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Remove your application\\'s notifications from the Appstore notifications dashboard. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).\n * @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public deleteNotifications(requestParameters: ApplicationIntegrationsApiDeleteNotificationsRequest, options?: RawAxiosRequestConfig) {\n return ApplicationIntegrationsApiFp(this.configuration).deleteNotifications(requestParameters.body, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Records the seller\\'s response to a notification. **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 preceding table indicates the default rate and burst values for this operation. Sellers whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).\n * @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public recordActionFeedback(requestParameters: ApplicationIntegrationsApiRecordActionFeedbackRequest, options?: RawAxiosRequestConfig) {\n return ApplicationIntegrationsApiFp(this.configuration).recordActionFeedback(requestParameters.notificationId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n","/* tslint:disable */\n/**\n * The Selling Partner API for third party application integrations.\n * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.\n *\n * The version of the OpenAPI document: 2024-04-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n return mime !== null && jsonMime.test(mime);\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for third party application integrations.\n * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.\n *\n * The version of the OpenAPI document: 2024-04-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The request for the `deleteNotifications` operation.\n */\nexport interface DeleteNotificationsRequest {\n /**\n * The unique identifier of the notification template you used to onboard your application.\n */\n 'templateId': string;\n /**\n * The unique identifier that maps each notification status to a reason code.\n */\n 'deletionReason': DeleteNotificationsRequestDeletionReasonEnum;\n}\n\nexport const DeleteNotificationsRequestDeletionReasonEnum = {\n IncorrectContent: 'INCORRECT_CONTENT',\n IncorrectRecipient: 'INCORRECT_RECIPIENT',\n} as const;\n\nexport type DeleteNotificationsRequestDeletionReasonEnum = typeof DeleteNotificationsRequestDeletionReasonEnum[keyof typeof DeleteNotificationsRequestDeletionReasonEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for third party application integrations.\n * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.\n *\n * The version of the OpenAPI document: 2024-04-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The request for the `recordActionFeedback` operation.\n */\nexport interface RecordActionFeedbackRequest {\n /**\n * The unique identifier for each notification status.\n */\n 'feedbackActionCode': RecordActionFeedbackRequestFeedbackActionCodeEnum;\n}\n\nexport const RecordActionFeedbackRequestFeedbackActionCodeEnum = {\n SellerActionCompleted: 'SELLER_ACTION_COMPLETED',\n} as const;\n\nexport type RecordActionFeedbackRequestFeedbackActionCodeEnum = typeof RecordActionFeedbackRequestFeedbackActionCodeEnum[keyof typeof RecordActionFeedbackRequestFeedbackActionCodeEnum];\n\n\n","import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {ApplicationIntegrationsApi, Configuration} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n {\n method: 'post',\n urlRegex: /^\\/appIntegrations\\/2024\\u{2D}04\\u{2D}01\\/notifications$/v,\n rate: 1,\n burst: 5,\n },\n {\n method: 'post',\n urlRegex: /^\\/appIntegrations\\/2024\\u{2D}04\\u{2D}01\\/notifications\\/deletion$/v,\n rate: 1,\n burst: 5,\n },\n {\n method: 'post',\n urlRegex: /^\\/appIntegrations\\/2024\\u{2D}04\\u{2D}01\\/notifications\\/[^\\/]*\\/feedback$/v,\n rate: 1,\n burst: 5,\n },\n]\n\nexport class ApplicationIntegrationsApiClient extends ApplicationIntegrationsApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n"],"mappings":";;;AAqBA,MAAa,YAAY,0CAA0C,QAAQ,QAAQ,EAAE;AAcrF,IAAa,UAAb,MAAqB;CAGoC;CAAwC;CAF7F;CAEA,YAAY,eAA+B,WAA6B,WAAW,QAAiC,aAAa;EAA5E,KAAA,WAAA;EAAwC,KAAA,QAAA;EACzF,IAAI,eAAe;GACf,KAAK,gBAAgB;GACrB,KAAK,WAAW,cAAc,YAAY;EAC9C;CACJ;AACJ;AAEA,IAAa,gBAAb,cAAmC,MAAM;CAClB;CAAnB,YAAY,OAAsB,KAAc;EAC5C,MAAM,GAAG;EADM,KAAA,QAAA;EAEf,KAAK,OAAO;CAChB;AACJ;AASA,MAAa,qBAAgC,CAC7C;;;AC1CA,MAAa,iBAAiB;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;;;AC1FA,MAAa,+CAA+C;CACxD,kBAAkB;CAClB,oBAAoB;AACxB;;;ACPA,MAAa,oDAAoD,EAC7D,uBAAuB,0BAC3B;;;ACxBA,MAAa,mBAAgC;CAC3C;EACE,QAAQ;EACR,UAAU;EACV,MAAM;EACN,OAAO;CACT;CACA;EACE,QAAQ;EACR,UAAU;EACV,MAAM;EACN,OAAO;CACT;CACA;EACE,QAAQ;EACR,UAAU;EACV,MAAM;EACN,OAAO;CACT;AACF;AAEA,IAAa,mCAAb,cAAsD,2BAA2B;CAC/E,YAAY,eAAoC;EAC9C,MAAM,EAAC,OAAO,aAAY,oBAAoB,eAAe,gBAAgB;EAE7E,MAAM,IAAI,cAAc,GAAG,UAAU,KAAK;CAC5C;AACF"}
package/package.json CHANGED
@@ -2,24 +2,38 @@
2
2
  "name": "@sp-api-sdk/application-integrations-api-2024-04-01",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.",
5
- "version": "3.0.17",
6
- "main": "dist/cjs/index.js",
7
- "module": "dist/es/index.js",
8
- "types": "dist/types/index.d.ts",
5
+ "version": "4.1.0",
9
6
  "license": "MIT",
7
+ "type": "module",
8
+ "engines": {
9
+ "node": ">=20"
10
+ },
11
+ "sideEffects": false,
12
+ "source": "./src/index.ts",
13
+ "main": "./dist/index.cjs",
14
+ "module": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "import": {
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/index.js"
21
+ },
22
+ "require": {
23
+ "types": "./dist/index.d.cts",
24
+ "default": "./dist/index.cjs"
25
+ }
26
+ }
27
+ },
10
28
  "publishConfig": {
11
29
  "access": "public"
12
30
  },
13
- "directories": {
14
- "lib": "dist"
15
- },
16
31
  "files": [
17
- "dist/**/*.js",
18
- "dist/**/*.d.ts"
32
+ "dist"
19
33
  ],
20
34
  "dependencies": {
21
- "@sp-api-sdk/common": "2.1.31",
22
- "axios": "^1.15.2"
35
+ "@sp-api-sdk/common": "4.0.0",
36
+ "axios": "^1.18.1"
23
37
  },
24
38
  "repository": {
25
39
  "type": "git",
@@ -40,5 +54,5 @@
40
54
  "sp sdk",
41
55
  "application integrations api"
42
56
  ],
43
- "gitHead": "cc3ed7e58346bf7a4110ed8f1353aae840f294e2"
57
+ "gitHead": "809167ef3a2d3db5eaad161be1cf4f414073ecec"
44
58
  }