@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
@@ -1,242 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for third party application integrations.
6
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
7
- *
8
- * The version of the OpenAPI document: 2024-04-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.ApplicationIntegrationsApi = exports.ApplicationIntegrationsApiFactory = exports.ApplicationIntegrationsApiFp = exports.ApplicationIntegrationsApiAxiosParamCreator = void 0;
20
- const axios_1 = __importDefault(require("axios"));
21
- // Some imports not used depending on template conditions
22
- // @ts-ignore
23
- const common_1 = require("../common");
24
- // @ts-ignore
25
- const base_1 = require("../base");
26
- /**
27
- * ApplicationIntegrationsApi - axios parameter creator
28
- */
29
- const ApplicationIntegrationsApiAxiosParamCreator = function (configuration) {
30
- return {
31
- /**
32
- * 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).
33
- * @param {CreateNotificationRequest} body The request body for the `createNotification` operation.
34
- * @param {*} [options] Override http request option.
35
- * @throws {RequiredError}
36
- */
37
- createNotification: async (body, options = {}) => {
38
- // verify required parameter 'body' is not null or undefined
39
- (0, common_1.assertParamExists)('createNotification', 'body', body);
40
- const localVarPath = `/appIntegrations/2024-04-01/notifications`;
41
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
42
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
43
- let baseOptions;
44
- if (configuration) {
45
- baseOptions = configuration.baseOptions;
46
- }
47
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
48
- const localVarHeaderParameter = {};
49
- const localVarQueryParameter = {};
50
- localVarHeaderParameter['Content-Type'] = 'application/json';
51
- localVarHeaderParameter['Accept'] = 'application/json';
52
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
53
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
55
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
56
- return {
57
- url: (0, common_1.toPathString)(localVarUrlObj),
58
- options: localVarRequestOptions,
59
- };
60
- },
61
- /**
62
- * 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).
63
- * @param {DeleteNotificationsRequest} body The request body for the `deleteNotifications` operation.
64
- * @param {*} [options] Override http request option.
65
- * @throws {RequiredError}
66
- */
67
- deleteNotifications: async (body, options = {}) => {
68
- // verify required parameter 'body' is not null or undefined
69
- (0, common_1.assertParamExists)('deleteNotifications', 'body', body);
70
- const localVarPath = `/appIntegrations/2024-04-01/notifications/deletion`;
71
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
72
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
73
- let baseOptions;
74
- if (configuration) {
75
- baseOptions = configuration.baseOptions;
76
- }
77
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
78
- const localVarHeaderParameter = {};
79
- const localVarQueryParameter = {};
80
- localVarHeaderParameter['Content-Type'] = 'application/json';
81
- localVarHeaderParameter['Accept'] = 'application/json';
82
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
83
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
85
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
86
- return {
87
- url: (0, common_1.toPathString)(localVarUrlObj),
88
- options: localVarRequestOptions,
89
- };
90
- },
91
- /**
92
- * 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).
93
- * @param {string} notificationId A `notificationId` uniquely identifies a notification.
94
- * @param {RecordActionFeedbackRequest} body The request body for the `recordActionFeedback` operation.
95
- * @param {*} [options] Override http request option.
96
- * @throws {RequiredError}
97
- */
98
- recordActionFeedback: async (notificationId, body, options = {}) => {
99
- // verify required parameter 'notificationId' is not null or undefined
100
- (0, common_1.assertParamExists)('recordActionFeedback', 'notificationId', notificationId);
101
- // verify required parameter 'body' is not null or undefined
102
- (0, common_1.assertParamExists)('recordActionFeedback', 'body', body);
103
- const localVarPath = `/appIntegrations/2024-04-01/notifications/{notificationId}/feedback`
104
- .replace('{notificationId}', encodeURIComponent(String(notificationId)));
105
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
107
- let baseOptions;
108
- if (configuration) {
109
- baseOptions = configuration.baseOptions;
110
- }
111
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
112
- const localVarHeaderParameter = {};
113
- const localVarQueryParameter = {};
114
- localVarHeaderParameter['Content-Type'] = 'application/json';
115
- localVarHeaderParameter['Accept'] = 'application/json';
116
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
117
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
118
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
119
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
120
- return {
121
- url: (0, common_1.toPathString)(localVarUrlObj),
122
- options: localVarRequestOptions,
123
- };
124
- },
125
- };
126
- };
127
- exports.ApplicationIntegrationsApiAxiosParamCreator = ApplicationIntegrationsApiAxiosParamCreator;
128
- /**
129
- * ApplicationIntegrationsApi - functional programming interface
130
- */
131
- const ApplicationIntegrationsApiFp = function (configuration) {
132
- const localVarAxiosParamCreator = (0, exports.ApplicationIntegrationsApiAxiosParamCreator)(configuration);
133
- return {
134
- /**
135
- * 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).
136
- * @param {CreateNotificationRequest} body The request body for the `createNotification` operation.
137
- * @param {*} [options] Override http request option.
138
- * @throws {RequiredError}
139
- */
140
- async createNotification(body, options) {
141
- const localVarAxiosArgs = await localVarAxiosParamCreator.createNotification(body, options);
142
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
143
- const localVarOperationServerBasePath = base_1.operationServerMap['ApplicationIntegrationsApi.createNotification']?.[localVarOperationServerIndex]?.url;
144
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
145
- },
146
- /**
147
- * 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).
148
- * @param {DeleteNotificationsRequest} body The request body for the `deleteNotifications` operation.
149
- * @param {*} [options] Override http request option.
150
- * @throws {RequiredError}
151
- */
152
- async deleteNotifications(body, options) {
153
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteNotifications(body, options);
154
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
155
- const localVarOperationServerBasePath = base_1.operationServerMap['ApplicationIntegrationsApi.deleteNotifications']?.[localVarOperationServerIndex]?.url;
156
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
157
- },
158
- /**
159
- * 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).
160
- * @param {string} notificationId A `notificationId` uniquely identifies a notification.
161
- * @param {RecordActionFeedbackRequest} body The request body for the `recordActionFeedback` operation.
162
- * @param {*} [options] Override http request option.
163
- * @throws {RequiredError}
164
- */
165
- async recordActionFeedback(notificationId, body, options) {
166
- const localVarAxiosArgs = await localVarAxiosParamCreator.recordActionFeedback(notificationId, body, options);
167
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
168
- const localVarOperationServerBasePath = base_1.operationServerMap['ApplicationIntegrationsApi.recordActionFeedback']?.[localVarOperationServerIndex]?.url;
169
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
170
- },
171
- };
172
- };
173
- exports.ApplicationIntegrationsApiFp = ApplicationIntegrationsApiFp;
174
- /**
175
- * ApplicationIntegrationsApi - factory interface
176
- */
177
- const ApplicationIntegrationsApiFactory = function (configuration, basePath, axios) {
178
- const localVarFp = (0, exports.ApplicationIntegrationsApiFp)(configuration);
179
- return {
180
- /**
181
- * 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).
182
- * @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.
183
- * @param {*} [options] Override http request option.
184
- * @throws {RequiredError}
185
- */
186
- createNotification(requestParameters, options) {
187
- return localVarFp.createNotification(requestParameters.body, options).then((request) => request(axios, basePath));
188
- },
189
- /**
190
- * 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).
191
- * @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.
192
- * @param {*} [options] Override http request option.
193
- * @throws {RequiredError}
194
- */
195
- deleteNotifications(requestParameters, options) {
196
- return localVarFp.deleteNotifications(requestParameters.body, options).then((request) => request(axios, basePath));
197
- },
198
- /**
199
- * 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).
200
- * @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.
201
- * @param {*} [options] Override http request option.
202
- * @throws {RequiredError}
203
- */
204
- recordActionFeedback(requestParameters, options) {
205
- return localVarFp.recordActionFeedback(requestParameters.notificationId, requestParameters.body, options).then((request) => request(axios, basePath));
206
- },
207
- };
208
- };
209
- exports.ApplicationIntegrationsApiFactory = ApplicationIntegrationsApiFactory;
210
- /**
211
- * ApplicationIntegrationsApi - object-oriented interface
212
- */
213
- class ApplicationIntegrationsApi extends base_1.BaseAPI {
214
- /**
215
- * 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).
216
- * @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.
217
- * @param {*} [options] Override http request option.
218
- * @throws {RequiredError}
219
- */
220
- createNotification(requestParameters, options) {
221
- return (0, exports.ApplicationIntegrationsApiFp)(this.configuration).createNotification(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
222
- }
223
- /**
224
- * 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).
225
- * @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.
226
- * @param {*} [options] Override http request option.
227
- * @throws {RequiredError}
228
- */
229
- deleteNotifications(requestParameters, options) {
230
- return (0, exports.ApplicationIntegrationsApiFp)(this.configuration).deleteNotifications(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
231
- }
232
- /**
233
- * 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).
234
- * @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.
235
- * @param {*} [options] Override http request option.
236
- * @throws {RequiredError}
237
- */
238
- recordActionFeedback(requestParameters, options) {
239
- return (0, exports.ApplicationIntegrationsApiFp)(this.configuration).recordActionFeedback(requestParameters.notificationId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
240
- }
241
- }
242
- exports.ApplicationIntegrationsApi = ApplicationIntegrationsApi;
@@ -1,30 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for third party application integrations.
6
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
7
- *
8
- * The version of the OpenAPI document: 2024-04-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
- };
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- __exportStar(require("./api/application-integrations-api"), exports);
@@ -1,52 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for third party application integrations.
6
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
7
- *
8
- * The version of the OpenAPI document: 2024-04-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
- const axios_1 = __importDefault(require("axios"));
21
- exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
22
- exports.COLLECTION_FORMATS = {
23
- csv: ",",
24
- ssv: " ",
25
- tsv: "\t",
26
- pipes: "|",
27
- };
28
- class BaseAPI {
29
- basePath;
30
- axios;
31
- configuration;
32
- constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
33
- this.basePath = basePath;
34
- this.axios = axios;
35
- if (configuration) {
36
- this.configuration = configuration;
37
- this.basePath = configuration.basePath ?? basePath;
38
- }
39
- }
40
- }
41
- exports.BaseAPI = BaseAPI;
42
- ;
43
- class RequiredError extends Error {
44
- field;
45
- constructor(field, msg) {
46
- super(msg);
47
- this.field = field;
48
- this.name = "RequiredError";
49
- }
50
- }
51
- exports.RequiredError = RequiredError;
52
- exports.operationServerMap = {};
@@ -1,123 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for third party application integrations.
6
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
7
- *
8
- * The version of the OpenAPI document: 2024-04-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
17
- const base_1 = require("./base");
18
- exports.DUMMY_BASE_URL = 'https://example.com';
19
- /**
20
- *
21
- * @throws {RequiredError}
22
- */
23
- const assertParamExists = function (functionName, paramName, paramValue) {
24
- if (paramValue === null || paramValue === undefined) {
25
- throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
26
- }
27
- };
28
- exports.assertParamExists = assertParamExists;
29
- const setApiKeyToObject = async function (object, keyParamName, configuration) {
30
- if (configuration && configuration.apiKey) {
31
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
32
- ? await configuration.apiKey(keyParamName)
33
- : await configuration.apiKey;
34
- object[keyParamName] = localVarApiKeyValue;
35
- }
36
- };
37
- exports.setApiKeyToObject = setApiKeyToObject;
38
- const setBasicAuthToObject = function (object, configuration) {
39
- if (configuration && (configuration.username || configuration.password)) {
40
- object["auth"] = { username: configuration.username, password: configuration.password };
41
- }
42
- };
43
- exports.setBasicAuthToObject = setBasicAuthToObject;
44
- const setBearerAuthToObject = async function (object, configuration) {
45
- if (configuration && configuration.accessToken) {
46
- const accessToken = typeof configuration.accessToken === 'function'
47
- ? await configuration.accessToken()
48
- : await configuration.accessToken;
49
- object["Authorization"] = "Bearer " + accessToken;
50
- }
51
- };
52
- exports.setBearerAuthToObject = setBearerAuthToObject;
53
- const setOAuthToObject = async function (object, name, scopes, configuration) {
54
- if (configuration && configuration.accessToken) {
55
- const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
56
- ? await configuration.accessToken(name, scopes)
57
- : await configuration.accessToken;
58
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
59
- }
60
- };
61
- exports.setOAuthToObject = setOAuthToObject;
62
- function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
63
- if (parameter == null)
64
- return;
65
- if (typeof parameter === "object") {
66
- if (Array.isArray(parameter) || parameter instanceof Set) {
67
- parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
68
- }
69
- else {
70
- Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
71
- }
72
- }
73
- else {
74
- if (urlSearchParams.has(key)) {
75
- urlSearchParams.append(key, parameter);
76
- }
77
- else {
78
- urlSearchParams.set(key, parameter);
79
- }
80
- }
81
- }
82
- const setSearchParams = function (url, ...objects) {
83
- const searchParams = new URLSearchParams(url.search);
84
- setFlattenedQueryParams(searchParams, objects);
85
- url.search = searchParams.toString();
86
- };
87
- exports.setSearchParams = setSearchParams;
88
- /**
89
- * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
90
- * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
91
- * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
92
- */
93
- // @ts-ignore
94
- const replaceWithSerializableTypeIfNeeded = function (key, value) {
95
- if (value instanceof Set) {
96
- return Array.from(value);
97
- }
98
- else {
99
- return value;
100
- }
101
- };
102
- exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
103
- const serializeDataIfNeeded = function (value, requestOptions, configuration) {
104
- const nonString = typeof value !== 'string';
105
- const needsSerialization = nonString && configuration && configuration.isJsonMime
106
- ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
107
- : nonString;
108
- return needsSerialization
109
- ? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
110
- : (value || "");
111
- };
112
- exports.serializeDataIfNeeded = serializeDataIfNeeded;
113
- const toPathString = function (url) {
114
- return url.pathname + url.search + url.hash;
115
- };
116
- exports.toPathString = toPathString;
117
- const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
118
- return (axios = globalAxios, basePath = BASE_PATH) => {
119
- const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
120
- return axios.request(axiosRequestArgs);
121
- };
122
- };
123
- exports.createRequestFunction = createRequestFunction;
@@ -1,98 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /**
4
- * The Selling Partner API for third party application integrations.
5
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
6
- *
7
- * The version of the OpenAPI document: 2024-04-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.Configuration = void 0;
16
- class Configuration {
17
- /**
18
- * parameter for apiKey security
19
- * @param name security name
20
- */
21
- apiKey;
22
- /**
23
- * parameter for basic security
24
- */
25
- username;
26
- /**
27
- * parameter for basic security
28
- */
29
- password;
30
- /**
31
- * parameter for oauth2 security
32
- * @param name security name
33
- * @param scopes oauth2 scope
34
- */
35
- accessToken;
36
- /**
37
- * parameter for aws4 signature security
38
- * @param {Object} AWS4Signature - AWS4 Signature security
39
- * @param {string} options.region - aws region
40
- * @param {string} options.service - name of the service.
41
- * @param {string} credentials.accessKeyId - aws access key id
42
- * @param {string} credentials.secretAccessKey - aws access key
43
- * @param {string} credentials.sessionToken - aws session token
44
- * @memberof Configuration
45
- */
46
- awsv4;
47
- /**
48
- * override base path
49
- */
50
- basePath;
51
- /**
52
- * override server index
53
- */
54
- serverIndex;
55
- /**
56
- * base options for axios calls
57
- */
58
- baseOptions;
59
- /**
60
- * The FormData constructor that will be used to create multipart form data
61
- * requests. You can inject this here so that execution environments that
62
- * do not support the FormData class can still run the generated client.
63
- *
64
- * @type {new () => FormData}
65
- */
66
- formDataCtor;
67
- constructor(param = {}) {
68
- this.apiKey = param.apiKey;
69
- this.username = param.username;
70
- this.password = param.password;
71
- this.accessToken = param.accessToken;
72
- this.awsv4 = param.awsv4;
73
- this.basePath = param.basePath;
74
- this.serverIndex = param.serverIndex;
75
- this.baseOptions = {
76
- ...param.baseOptions,
77
- headers: {
78
- ...param.baseOptions?.headers,
79
- },
80
- };
81
- this.formDataCtor = param.formDataCtor;
82
- }
83
- /**
84
- * Check if the given MIME is a JSON MIME.
85
- * JSON MIME examples:
86
- * application/json
87
- * application/json; charset=UTF8
88
- * APPLICATION/JSON
89
- * application/vnd.company+json
90
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
91
- * @return True if the given MIME is JSON, false otherwise.
92
- */
93
- isJsonMime(mime) {
94
- const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
95
- return mime !== null && jsonMime.test(mime);
96
- }
97
- }
98
- exports.Configuration = Configuration;
@@ -1,32 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for third party application integrations.
6
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
7
- *
8
- * The version of the OpenAPI document: 2024-04-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
- };
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- __exportStar(require("./api"), exports);
31
- __exportStar(require("./configuration"), exports);
32
- __exportStar(require("./models"), exports);
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for third party application integrations.
6
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
7
- *
8
- * The version of the OpenAPI document: 2024-04-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for third party application integrations.
6
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
7
- *
8
- * The version of the OpenAPI document: 2024-04-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for third party application integrations.
6
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
7
- *
8
- * The version of the OpenAPI document: 2024-04-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.DeleteNotificationsRequestDeletionReasonEnum = void 0;
17
- exports.DeleteNotificationsRequestDeletionReasonEnum = {
18
- IncorrectContent: 'INCORRECT_CONTENT',
19
- IncorrectRecipient: 'INCORRECT_RECIPIENT',
20
- };
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for third party application integrations.
6
- * With the AppIntegrations API v2024-04-01, you can send notifications to Amazon Selling Partners and display the notifications in Seller Central.
7
- *
8
- * The version of the OpenAPI document: 2024-04-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });