@sp-api-sdk/application-integrations-api-2024-04-01 2.0.4 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-model/api/{app-integrations-api.js → application-integrations-api.js} +31 -31
- package/dist/cjs/api-model/api.js +1 -1
- package/dist/cjs/client.js +1 -1
- package/dist/es/api-model/api/{app-integrations-api.js → application-integrations-api.js} +26 -26
- package/dist/es/api-model/api.js +1 -1
- package/dist/es/client.js +2 -2
- package/dist/types/api-model/api/{app-integrations-api.d.ts → application-integrations-api.d.ts} +37 -37
- package/dist/types/api-model/api.d.ts +1 -1
- package/dist/types/client.d.ts +2 -2
- package/package.json +4 -4
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.ApplicationIntegrationsApi = exports.ApplicationIntegrationsApiFactory = exports.ApplicationIntegrationsApiFp = exports.ApplicationIntegrationsApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -24,10 +24,10 @@ const common_1 = require("../common");
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
const base_1 = require("../base");
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* ApplicationIntegrationsApi - axios parameter creator
|
|
28
28
|
* @export
|
|
29
29
|
*/
|
|
30
|
-
const
|
|
30
|
+
const ApplicationIntegrationsApiAxiosParamCreator = function (configuration) {
|
|
31
31
|
return {
|
|
32
32
|
/**
|
|
33
33
|
* 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).
|
|
@@ -122,13 +122,13 @@ const AppIntegrationsApiAxiosParamCreator = function (configuration) {
|
|
|
122
122
|
},
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
-
exports.
|
|
125
|
+
exports.ApplicationIntegrationsApiAxiosParamCreator = ApplicationIntegrationsApiAxiosParamCreator;
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
127
|
+
* ApplicationIntegrationsApi - functional programming interface
|
|
128
128
|
* @export
|
|
129
129
|
*/
|
|
130
|
-
const
|
|
131
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
130
|
+
const ApplicationIntegrationsApiFp = function (configuration) {
|
|
131
|
+
const localVarAxiosParamCreator = (0, exports.ApplicationIntegrationsApiAxiosParamCreator)(configuration);
|
|
132
132
|
return {
|
|
133
133
|
/**
|
|
134
134
|
* 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).
|
|
@@ -139,7 +139,7 @@ const AppIntegrationsApiFp = function (configuration) {
|
|
|
139
139
|
async createNotification(body, options) {
|
|
140
140
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createNotification(body, options);
|
|
141
141
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
142
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
142
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ApplicationIntegrationsApi.createNotification']?.[localVarOperationServerIndex]?.url;
|
|
143
143
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
144
144
|
},
|
|
145
145
|
/**
|
|
@@ -151,7 +151,7 @@ const AppIntegrationsApiFp = function (configuration) {
|
|
|
151
151
|
async deleteNotifications(body, options) {
|
|
152
152
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteNotifications(body, options);
|
|
153
153
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
154
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
154
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ApplicationIntegrationsApi.deleteNotifications']?.[localVarOperationServerIndex]?.url;
|
|
155
155
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
156
156
|
},
|
|
157
157
|
/**
|
|
@@ -164,22 +164,22 @@ const AppIntegrationsApiFp = function (configuration) {
|
|
|
164
164
|
async recordActionFeedback(notificationId, body, options) {
|
|
165
165
|
const localVarAxiosArgs = await localVarAxiosParamCreator.recordActionFeedback(notificationId, body, options);
|
|
166
166
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
167
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
167
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ApplicationIntegrationsApi.recordActionFeedback']?.[localVarOperationServerIndex]?.url;
|
|
168
168
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
169
169
|
},
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
-
exports.
|
|
172
|
+
exports.ApplicationIntegrationsApiFp = ApplicationIntegrationsApiFp;
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
174
|
+
* ApplicationIntegrationsApi - factory interface
|
|
175
175
|
* @export
|
|
176
176
|
*/
|
|
177
|
-
const
|
|
178
|
-
const localVarFp = (0, exports.
|
|
177
|
+
const ApplicationIntegrationsApiFactory = function (configuration, basePath, axios) {
|
|
178
|
+
const localVarFp = (0, exports.ApplicationIntegrationsApiFp)(configuration);
|
|
179
179
|
return {
|
|
180
180
|
/**
|
|
181
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 {
|
|
182
|
+
* @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.
|
|
183
183
|
* @param {*} [options] Override http request option.
|
|
184
184
|
* @throws {RequiredError}
|
|
185
185
|
*/
|
|
@@ -188,7 +188,7 @@ const AppIntegrationsApiFactory = function (configuration, basePath, axios) {
|
|
|
188
188
|
},
|
|
189
189
|
/**
|
|
190
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 {
|
|
191
|
+
* @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.
|
|
192
192
|
* @param {*} [options] Override http request option.
|
|
193
193
|
* @throws {RequiredError}
|
|
194
194
|
*/
|
|
@@ -197,7 +197,7 @@ const AppIntegrationsApiFactory = function (configuration, basePath, axios) {
|
|
|
197
197
|
},
|
|
198
198
|
/**
|
|
199
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 {
|
|
200
|
+
* @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.
|
|
201
201
|
* @param {*} [options] Override http request option.
|
|
202
202
|
* @throws {RequiredError}
|
|
203
203
|
*/
|
|
@@ -206,43 +206,43 @@ const AppIntegrationsApiFactory = function (configuration, basePath, axios) {
|
|
|
206
206
|
},
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
-
exports.
|
|
209
|
+
exports.ApplicationIntegrationsApiFactory = ApplicationIntegrationsApiFactory;
|
|
210
210
|
/**
|
|
211
|
-
*
|
|
211
|
+
* ApplicationIntegrationsApi - object-oriented interface
|
|
212
212
|
* @export
|
|
213
|
-
* @class
|
|
213
|
+
* @class ApplicationIntegrationsApi
|
|
214
214
|
* @extends {BaseAPI}
|
|
215
215
|
*/
|
|
216
|
-
class
|
|
216
|
+
class ApplicationIntegrationsApi extends base_1.BaseAPI {
|
|
217
217
|
/**
|
|
218
218
|
* 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).
|
|
219
|
-
* @param {
|
|
219
|
+
* @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.
|
|
220
220
|
* @param {*} [options] Override http request option.
|
|
221
221
|
* @throws {RequiredError}
|
|
222
|
-
* @memberof
|
|
222
|
+
* @memberof ApplicationIntegrationsApi
|
|
223
223
|
*/
|
|
224
224
|
createNotification(requestParameters, options) {
|
|
225
|
-
return (0, exports.
|
|
225
|
+
return (0, exports.ApplicationIntegrationsApiFp)(this.configuration).createNotification(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
228
228
|
* 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).
|
|
229
|
-
* @param {
|
|
229
|
+
* @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.
|
|
230
230
|
* @param {*} [options] Override http request option.
|
|
231
231
|
* @throws {RequiredError}
|
|
232
|
-
* @memberof
|
|
232
|
+
* @memberof ApplicationIntegrationsApi
|
|
233
233
|
*/
|
|
234
234
|
deleteNotifications(requestParameters, options) {
|
|
235
|
-
return (0, exports.
|
|
235
|
+
return (0, exports.ApplicationIntegrationsApiFp)(this.configuration).deleteNotifications(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
238
238
|
* 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).
|
|
239
|
-
* @param {
|
|
239
|
+
* @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.
|
|
240
240
|
* @param {*} [options] Override http request option.
|
|
241
241
|
* @throws {RequiredError}
|
|
242
|
-
* @memberof
|
|
242
|
+
* @memberof ApplicationIntegrationsApi
|
|
243
243
|
*/
|
|
244
244
|
recordActionFeedback(requestParameters, options) {
|
|
245
|
-
return (0, exports.
|
|
245
|
+
return (0, exports.ApplicationIntegrationsApiFp)(this.configuration).recordActionFeedback(requestParameters.notificationId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
exports.
|
|
248
|
+
exports.ApplicationIntegrationsApi = ApplicationIntegrationsApi;
|
|
@@ -27,4 +27,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
__exportStar(require("./api/
|
|
30
|
+
__exportStar(require("./api/application-integrations-api"), exports);
|
package/dist/cjs/client.js
CHANGED
|
@@ -26,7 +26,7 @@ exports.clientRateLimits = [
|
|
|
26
26
|
burst: 5,
|
|
27
27
|
},
|
|
28
28
|
];
|
|
29
|
-
class ApplicationIntegrationsApiClient extends api_model_1.
|
|
29
|
+
class ApplicationIntegrationsApiClient extends api_model_1.ApplicationIntegrationsApi {
|
|
30
30
|
constructor(configuration) {
|
|
31
31
|
const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
|
|
32
32
|
super(new api_model_1.Configuration(), endpoint, axios);
|
|
@@ -18,10 +18,10 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeed
|
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* ApplicationIntegrationsApi - axios parameter creator
|
|
22
22
|
* @export
|
|
23
23
|
*/
|
|
24
|
-
export const
|
|
24
|
+
export const ApplicationIntegrationsApiAxiosParamCreator = function (configuration) {
|
|
25
25
|
return {
|
|
26
26
|
/**
|
|
27
27
|
* 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).
|
|
@@ -117,11 +117,11 @@ export const AppIntegrationsApiAxiosParamCreator = function (configuration) {
|
|
|
117
117
|
};
|
|
118
118
|
};
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* ApplicationIntegrationsApi - functional programming interface
|
|
121
121
|
* @export
|
|
122
122
|
*/
|
|
123
|
-
export const
|
|
124
|
-
const localVarAxiosParamCreator =
|
|
123
|
+
export const ApplicationIntegrationsApiFp = function (configuration) {
|
|
124
|
+
const localVarAxiosParamCreator = ApplicationIntegrationsApiAxiosParamCreator(configuration);
|
|
125
125
|
return {
|
|
126
126
|
/**
|
|
127
127
|
* 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).
|
|
@@ -132,7 +132,7 @@ export const AppIntegrationsApiFp = function (configuration) {
|
|
|
132
132
|
async createNotification(body, options) {
|
|
133
133
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createNotification(body, options);
|
|
134
134
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
135
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
135
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationIntegrationsApi.createNotification']?.[localVarOperationServerIndex]?.url;
|
|
136
136
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
137
137
|
},
|
|
138
138
|
/**
|
|
@@ -144,7 +144,7 @@ export const AppIntegrationsApiFp = function (configuration) {
|
|
|
144
144
|
async deleteNotifications(body, options) {
|
|
145
145
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteNotifications(body, options);
|
|
146
146
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
147
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
147
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationIntegrationsApi.deleteNotifications']?.[localVarOperationServerIndex]?.url;
|
|
148
148
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
149
149
|
},
|
|
150
150
|
/**
|
|
@@ -157,21 +157,21 @@ export const AppIntegrationsApiFp = function (configuration) {
|
|
|
157
157
|
async recordActionFeedback(notificationId, body, options) {
|
|
158
158
|
const localVarAxiosArgs = await localVarAxiosParamCreator.recordActionFeedback(notificationId, body, options);
|
|
159
159
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
160
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
160
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationIntegrationsApi.recordActionFeedback']?.[localVarOperationServerIndex]?.url;
|
|
161
161
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
162
162
|
},
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* ApplicationIntegrationsApi - factory interface
|
|
167
167
|
* @export
|
|
168
168
|
*/
|
|
169
|
-
export const
|
|
170
|
-
const localVarFp =
|
|
169
|
+
export const ApplicationIntegrationsApiFactory = function (configuration, basePath, axios) {
|
|
170
|
+
const localVarFp = ApplicationIntegrationsApiFp(configuration);
|
|
171
171
|
return {
|
|
172
172
|
/**
|
|
173
173
|
* 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).
|
|
174
|
-
* @param {
|
|
174
|
+
* @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.
|
|
175
175
|
* @param {*} [options] Override http request option.
|
|
176
176
|
* @throws {RequiredError}
|
|
177
177
|
*/
|
|
@@ -180,7 +180,7 @@ export const AppIntegrationsApiFactory = function (configuration, basePath, axio
|
|
|
180
180
|
},
|
|
181
181
|
/**
|
|
182
182
|
* 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).
|
|
183
|
-
* @param {
|
|
183
|
+
* @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.
|
|
184
184
|
* @param {*} [options] Override http request option.
|
|
185
185
|
* @throws {RequiredError}
|
|
186
186
|
*/
|
|
@@ -189,7 +189,7 @@ export const AppIntegrationsApiFactory = function (configuration, basePath, axio
|
|
|
189
189
|
},
|
|
190
190
|
/**
|
|
191
191
|
* 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).
|
|
192
|
-
* @param {
|
|
192
|
+
* @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.
|
|
193
193
|
* @param {*} [options] Override http request option.
|
|
194
194
|
* @throws {RequiredError}
|
|
195
195
|
*/
|
|
@@ -199,40 +199,40 @@ export const AppIntegrationsApiFactory = function (configuration, basePath, axio
|
|
|
199
199
|
};
|
|
200
200
|
};
|
|
201
201
|
/**
|
|
202
|
-
*
|
|
202
|
+
* ApplicationIntegrationsApi - object-oriented interface
|
|
203
203
|
* @export
|
|
204
|
-
* @class
|
|
204
|
+
* @class ApplicationIntegrationsApi
|
|
205
205
|
* @extends {BaseAPI}
|
|
206
206
|
*/
|
|
207
|
-
export class
|
|
207
|
+
export class ApplicationIntegrationsApi extends BaseAPI {
|
|
208
208
|
/**
|
|
209
209
|
* 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).
|
|
210
|
-
* @param {
|
|
210
|
+
* @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.
|
|
211
211
|
* @param {*} [options] Override http request option.
|
|
212
212
|
* @throws {RequiredError}
|
|
213
|
-
* @memberof
|
|
213
|
+
* @memberof ApplicationIntegrationsApi
|
|
214
214
|
*/
|
|
215
215
|
createNotification(requestParameters, options) {
|
|
216
|
-
return
|
|
216
|
+
return ApplicationIntegrationsApiFp(this.configuration).createNotification(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
217
217
|
}
|
|
218
218
|
/**
|
|
219
219
|
* 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).
|
|
220
|
-
* @param {
|
|
220
|
+
* @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.
|
|
221
221
|
* @param {*} [options] Override http request option.
|
|
222
222
|
* @throws {RequiredError}
|
|
223
|
-
* @memberof
|
|
223
|
+
* @memberof ApplicationIntegrationsApi
|
|
224
224
|
*/
|
|
225
225
|
deleteNotifications(requestParameters, options) {
|
|
226
|
-
return
|
|
226
|
+
return ApplicationIntegrationsApiFp(this.configuration).deleteNotifications(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
229
|
* 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).
|
|
230
|
-
* @param {
|
|
230
|
+
* @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.
|
|
231
231
|
* @param {*} [options] Override http request option.
|
|
232
232
|
* @throws {RequiredError}
|
|
233
|
-
* @memberof
|
|
233
|
+
* @memberof ApplicationIntegrationsApi
|
|
234
234
|
*/
|
|
235
235
|
recordActionFeedback(requestParameters, options) {
|
|
236
|
-
return
|
|
236
|
+
return ApplicationIntegrationsApiFp(this.configuration).recordActionFeedback(requestParameters.notificationId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
237
237
|
}
|
|
238
238
|
}
|
package/dist/es/api-model/api.js
CHANGED
package/dist/es/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAxiosInstance } from '@sp-api-sdk/common';
|
|
2
|
-
import {
|
|
2
|
+
import { ApplicationIntegrationsApi, Configuration } from './api-model';
|
|
3
3
|
export const clientRateLimits = [
|
|
4
4
|
{
|
|
5
5
|
method: 'post',
|
|
@@ -23,7 +23,7 @@ export const clientRateLimits = [
|
|
|
23
23
|
burst: 5,
|
|
24
24
|
},
|
|
25
25
|
];
|
|
26
|
-
export class ApplicationIntegrationsApiClient extends
|
|
26
|
+
export class ApplicationIntegrationsApiClient extends ApplicationIntegrationsApi {
|
|
27
27
|
constructor(configuration) {
|
|
28
28
|
const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
|
|
29
29
|
super(new Configuration(), endpoint, axios);
|
package/dist/types/api-model/api/{app-integrations-api.d.ts → application-integrations-api.d.ts}
RENAMED
|
@@ -18,10 +18,10 @@ import type { CreateNotificationResponse } from '../models';
|
|
|
18
18
|
import type { DeleteNotificationsRequest } from '../models';
|
|
19
19
|
import type { RecordActionFeedbackRequest } from '../models';
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* ApplicationIntegrationsApi - axios parameter creator
|
|
22
22
|
* @export
|
|
23
23
|
*/
|
|
24
|
-
export declare const
|
|
24
|
+
export declare const ApplicationIntegrationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25
25
|
/**
|
|
26
26
|
* 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).
|
|
27
27
|
* @param {CreateNotificationRequest} body The request body for the `createNotification` operation.
|
|
@@ -46,10 +46,10 @@ export declare const AppIntegrationsApiAxiosParamCreator: (configuration?: Confi
|
|
|
46
46
|
recordActionFeedback: (notificationId: string, body: RecordActionFeedbackRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* ApplicationIntegrationsApi - functional programming interface
|
|
50
50
|
* @export
|
|
51
51
|
*/
|
|
52
|
-
export declare const
|
|
52
|
+
export declare const ApplicationIntegrationsApiFp: (configuration?: Configuration) => {
|
|
53
53
|
/**
|
|
54
54
|
* 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).
|
|
55
55
|
* @param {CreateNotificationRequest} body The request body for the `createNotification` operation.
|
|
@@ -74,106 +74,106 @@ export declare const AppIntegrationsApiFp: (configuration?: Configuration) => {
|
|
|
74
74
|
recordActionFeedback(notificationId: string, body: RecordActionFeedbackRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* ApplicationIntegrationsApi - factory interface
|
|
78
78
|
* @export
|
|
79
79
|
*/
|
|
80
|
-
export declare const
|
|
80
|
+
export declare const ApplicationIntegrationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
81
81
|
/**
|
|
82
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 {
|
|
83
|
+
* @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.
|
|
84
84
|
* @param {*} [options] Override http request option.
|
|
85
85
|
* @throws {RequiredError}
|
|
86
86
|
*/
|
|
87
|
-
createNotification(requestParameters:
|
|
87
|
+
createNotification(requestParameters: ApplicationIntegrationsApiCreateNotificationRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateNotificationResponse>;
|
|
88
88
|
/**
|
|
89
89
|
* 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).
|
|
90
|
-
* @param {
|
|
90
|
+
* @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.
|
|
91
91
|
* @param {*} [options] Override http request option.
|
|
92
92
|
* @throws {RequiredError}
|
|
93
93
|
*/
|
|
94
|
-
deleteNotifications(requestParameters:
|
|
94
|
+
deleteNotifications(requestParameters: ApplicationIntegrationsApiDeleteNotificationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
95
95
|
/**
|
|
96
96
|
* 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).
|
|
97
|
-
* @param {
|
|
97
|
+
* @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.
|
|
98
98
|
* @param {*} [options] Override http request option.
|
|
99
99
|
* @throws {RequiredError}
|
|
100
100
|
*/
|
|
101
|
-
recordActionFeedback(requestParameters:
|
|
101
|
+
recordActionFeedback(requestParameters: ApplicationIntegrationsApiRecordActionFeedbackRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
102
102
|
};
|
|
103
103
|
/**
|
|
104
|
-
* Request parameters for createNotification operation in
|
|
104
|
+
* Request parameters for createNotification operation in ApplicationIntegrationsApi.
|
|
105
105
|
* @export
|
|
106
|
-
* @interface
|
|
106
|
+
* @interface ApplicationIntegrationsApiCreateNotificationRequest
|
|
107
107
|
*/
|
|
108
|
-
export interface
|
|
108
|
+
export interface ApplicationIntegrationsApiCreateNotificationRequest {
|
|
109
109
|
/**
|
|
110
110
|
* The request body for the `createNotification` operation.
|
|
111
111
|
* @type {CreateNotificationRequest}
|
|
112
|
-
* @memberof
|
|
112
|
+
* @memberof ApplicationIntegrationsApiCreateNotification
|
|
113
113
|
*/
|
|
114
114
|
readonly body: CreateNotificationRequest;
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
|
-
* Request parameters for deleteNotifications operation in
|
|
117
|
+
* Request parameters for deleteNotifications operation in ApplicationIntegrationsApi.
|
|
118
118
|
* @export
|
|
119
|
-
* @interface
|
|
119
|
+
* @interface ApplicationIntegrationsApiDeleteNotificationsRequest
|
|
120
120
|
*/
|
|
121
|
-
export interface
|
|
121
|
+
export interface ApplicationIntegrationsApiDeleteNotificationsRequest {
|
|
122
122
|
/**
|
|
123
123
|
* The request body for the `deleteNotifications` operation.
|
|
124
124
|
* @type {DeleteNotificationsRequest}
|
|
125
|
-
* @memberof
|
|
125
|
+
* @memberof ApplicationIntegrationsApiDeleteNotifications
|
|
126
126
|
*/
|
|
127
127
|
readonly body: DeleteNotificationsRequest;
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
|
-
* Request parameters for recordActionFeedback operation in
|
|
130
|
+
* Request parameters for recordActionFeedback operation in ApplicationIntegrationsApi.
|
|
131
131
|
* @export
|
|
132
|
-
* @interface
|
|
132
|
+
* @interface ApplicationIntegrationsApiRecordActionFeedbackRequest
|
|
133
133
|
*/
|
|
134
|
-
export interface
|
|
134
|
+
export interface ApplicationIntegrationsApiRecordActionFeedbackRequest {
|
|
135
135
|
/**
|
|
136
136
|
* A `notificationId` uniquely identifies a notification.
|
|
137
137
|
* @type {string}
|
|
138
|
-
* @memberof
|
|
138
|
+
* @memberof ApplicationIntegrationsApiRecordActionFeedback
|
|
139
139
|
*/
|
|
140
140
|
readonly notificationId: string;
|
|
141
141
|
/**
|
|
142
142
|
* The request body for the `recordActionFeedback` operation.
|
|
143
143
|
* @type {RecordActionFeedbackRequest}
|
|
144
|
-
* @memberof
|
|
144
|
+
* @memberof ApplicationIntegrationsApiRecordActionFeedback
|
|
145
145
|
*/
|
|
146
146
|
readonly body: RecordActionFeedbackRequest;
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
149
|
+
* ApplicationIntegrationsApi - object-oriented interface
|
|
150
150
|
* @export
|
|
151
|
-
* @class
|
|
151
|
+
* @class ApplicationIntegrationsApi
|
|
152
152
|
* @extends {BaseAPI}
|
|
153
153
|
*/
|
|
154
|
-
export declare class
|
|
154
|
+
export declare class ApplicationIntegrationsApi extends BaseAPI {
|
|
155
155
|
/**
|
|
156
156
|
* 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).
|
|
157
|
-
* @param {
|
|
157
|
+
* @param {ApplicationIntegrationsApiCreateNotificationRequest} requestParameters Request parameters.
|
|
158
158
|
* @param {*} [options] Override http request option.
|
|
159
159
|
* @throws {RequiredError}
|
|
160
|
-
* @memberof
|
|
160
|
+
* @memberof ApplicationIntegrationsApi
|
|
161
161
|
*/
|
|
162
|
-
createNotification(requestParameters:
|
|
162
|
+
createNotification(requestParameters: ApplicationIntegrationsApiCreateNotificationRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateNotificationResponse, any>>;
|
|
163
163
|
/**
|
|
164
164
|
* 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).
|
|
165
|
-
* @param {
|
|
165
|
+
* @param {ApplicationIntegrationsApiDeleteNotificationsRequest} requestParameters Request parameters.
|
|
166
166
|
* @param {*} [options] Override http request option.
|
|
167
167
|
* @throws {RequiredError}
|
|
168
|
-
* @memberof
|
|
168
|
+
* @memberof ApplicationIntegrationsApi
|
|
169
169
|
*/
|
|
170
|
-
deleteNotifications(requestParameters:
|
|
170
|
+
deleteNotifications(requestParameters: ApplicationIntegrationsApiDeleteNotificationsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<void, any>>;
|
|
171
171
|
/**
|
|
172
172
|
* 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).
|
|
173
|
-
* @param {
|
|
173
|
+
* @param {ApplicationIntegrationsApiRecordActionFeedbackRequest} requestParameters Request parameters.
|
|
174
174
|
* @param {*} [options] Override http request option.
|
|
175
175
|
* @throws {RequiredError}
|
|
176
|
-
* @memberof
|
|
176
|
+
* @memberof ApplicationIntegrationsApi
|
|
177
177
|
*/
|
|
178
|
-
recordActionFeedback(requestParameters:
|
|
178
|
+
recordActionFeedback(requestParameters: ApplicationIntegrationsApiRecordActionFeedbackRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<void, any>>;
|
|
179
179
|
}
|
package/dist/types/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
|
|
2
|
-
import {
|
|
2
|
+
import { ApplicationIntegrationsApi } from './api-model';
|
|
3
3
|
export declare const clientRateLimits: RateLimit[];
|
|
4
|
-
export declare class ApplicationIntegrationsApiClient extends
|
|
4
|
+
export declare class ApplicationIntegrationsApiClient extends ApplicationIntegrationsApi {
|
|
5
5
|
constructor(configuration: ClientConfiguration);
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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": "
|
|
5
|
+
"version": "3.0.1",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.15",
|
|
22
|
+
"axios": "^1.10.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"application integrations api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b36600f33d62a2b6c3a9035968a93bc83e9838a9"
|
|
44
44
|
}
|