@sp-api-sdk/notifications-api-v1 3.0.6 → 3.0.7
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/notifications-api.js +0 -14
- package/dist/cjs/api-model/base.js +0 -19
- package/dist/cjs/api-model/common.js +0 -37
- package/dist/cjs/api-model/configuration.js +0 -17
- package/dist/cjs/api-model/models/aggregation-time-period.js +0 -2
- package/dist/cjs/api-model/models/order-change-type-enum.js +0 -2
- package/dist/es/api-model/api/notifications-api.js +0 -14
- package/dist/es/api-model/base.js +0 -19
- package/dist/es/api-model/common.js +0 -37
- package/dist/es/api-model/configuration.js +0 -17
- package/dist/es/api-model/models/aggregation-time-period.js +0 -2
- package/dist/es/api-model/models/order-change-type-enum.js +0 -2
- package/dist/types/api-model/api/notifications-api.d.ts +0 -56
- package/dist/types/api-model/base.d.ts +0 -24
- package/dist/types/api-model/common.d.ts +0 -37
- package/dist/types/api-model/configuration.d.ts +0 -17
- package/dist/types/api-model/models/aggregation-filter.d.ts +0 -7
- package/dist/types/api-model/models/aggregation-settings.d.ts +0 -7
- package/dist/types/api-model/models/aggregation-time-period.d.ts +0 -2
- package/dist/types/api-model/models/create-destination-request.d.ts +0 -9
- package/dist/types/api-model/models/create-destination-response.d.ts +0 -9
- package/dist/types/api-model/models/create-subscription-request.d.ts +0 -11
- package/dist/types/api-model/models/create-subscription-response.d.ts +0 -9
- package/dist/types/api-model/models/delete-destination-response.d.ts +0 -4
- package/dist/types/api-model/models/delete-subscription-by-id-response.d.ts +0 -4
- package/dist/types/api-model/models/destination-resource-specification.d.ts +0 -12
- package/dist/types/api-model/models/destination-resource.d.ts +0 -12
- package/dist/types/api-model/models/destination.d.ts +0 -11
- package/dist/types/api-model/models/event-bridge-resource-specification.d.ts +0 -6
- package/dist/types/api-model/models/event-bridge-resource.d.ts +0 -8
- package/dist/types/api-model/models/event-filter-all-of.d.ts +0 -7
- package/dist/types/api-model/models/event-filter.d.ts +0 -1
- package/dist/types/api-model/models/get-destination-response.d.ts +0 -9
- package/dist/types/api-model/models/get-destinations-response.d.ts +0 -6
- package/dist/types/api-model/models/get-subscription-by-id-response.d.ts +0 -9
- package/dist/types/api-model/models/get-subscription-response.d.ts +0 -9
- package/dist/types/api-model/models/marketplace-filter.d.ts +0 -4
- package/dist/types/api-model/models/model-error.d.ts +0 -8
- package/dist/types/api-model/models/order-change-type-enum.d.ts +0 -2
- package/dist/types/api-model/models/order-change-type-filter.d.ts +0 -4
- package/dist/types/api-model/models/processing-directive.d.ts +0 -7
- package/dist/types/api-model/models/sqs-resource.d.ts +0 -4
- package/dist/types/api-model/models/subscription.d.ts +0 -13
- package/package.json +25 -4
|
@@ -25,7 +25,6 @@ import type { GetSubscriptionByIdResponse } from '../models';
|
|
|
25
25
|
import type { GetSubscriptionResponse } from '../models';
|
|
26
26
|
/**
|
|
27
27
|
* NotificationsApi - axios parameter creator
|
|
28
|
-
* @export
|
|
29
28
|
*/
|
|
30
29
|
export declare const NotificationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
31
30
|
/**
|
|
@@ -90,7 +89,6 @@ export declare const NotificationsApiAxiosParamCreator: (configuration?: Configu
|
|
|
90
89
|
};
|
|
91
90
|
/**
|
|
92
91
|
* NotificationsApi - functional programming interface
|
|
93
|
-
* @export
|
|
94
92
|
*/
|
|
95
93
|
export declare const NotificationsApiFp: (configuration?: Configuration) => {
|
|
96
94
|
/**
|
|
@@ -155,7 +153,6 @@ export declare const NotificationsApiFp: (configuration?: Configuration) => {
|
|
|
155
153
|
};
|
|
156
154
|
/**
|
|
157
155
|
* NotificationsApi - factory interface
|
|
158
|
-
* @export
|
|
159
156
|
*/
|
|
160
157
|
export declare const NotificationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
161
158
|
/**
|
|
@@ -216,124 +213,79 @@ export declare const NotificationsApiFactory: (configuration?: Configuration, ba
|
|
|
216
213
|
};
|
|
217
214
|
/**
|
|
218
215
|
* Request parameters for createDestination operation in NotificationsApi.
|
|
219
|
-
* @export
|
|
220
|
-
* @interface NotificationsApiCreateDestinationRequest
|
|
221
216
|
*/
|
|
222
217
|
export interface NotificationsApiCreateDestinationRequest {
|
|
223
|
-
/**
|
|
224
|
-
*
|
|
225
|
-
* @type {CreateDestinationRequest}
|
|
226
|
-
* @memberof NotificationsApiCreateDestination
|
|
227
|
-
*/
|
|
228
218
|
readonly body: CreateDestinationRequest;
|
|
229
219
|
}
|
|
230
220
|
/**
|
|
231
221
|
* Request parameters for createSubscription operation in NotificationsApi.
|
|
232
|
-
* @export
|
|
233
|
-
* @interface NotificationsApiCreateSubscriptionRequest
|
|
234
222
|
*/
|
|
235
223
|
export interface NotificationsApiCreateSubscriptionRequest {
|
|
236
224
|
/**
|
|
237
225
|
* The type of notification. For more information about notification types, refer to [Notification Type Values](https://developer-docs.amazon.com/sp-api/docs/notification-type-values).
|
|
238
|
-
* @type {string}
|
|
239
|
-
* @memberof NotificationsApiCreateSubscription
|
|
240
226
|
*/
|
|
241
227
|
readonly notificationType: string;
|
|
242
|
-
/**
|
|
243
|
-
*
|
|
244
|
-
* @type {CreateSubscriptionRequest}
|
|
245
|
-
* @memberof NotificationsApiCreateSubscription
|
|
246
|
-
*/
|
|
247
228
|
readonly body: CreateSubscriptionRequest;
|
|
248
229
|
}
|
|
249
230
|
/**
|
|
250
231
|
* Request parameters for deleteDestination operation in NotificationsApi.
|
|
251
|
-
* @export
|
|
252
|
-
* @interface NotificationsApiDeleteDestinationRequest
|
|
253
232
|
*/
|
|
254
233
|
export interface NotificationsApiDeleteDestinationRequest {
|
|
255
234
|
/**
|
|
256
235
|
* The identifier for the destination that you want to delete.
|
|
257
|
-
* @type {string}
|
|
258
|
-
* @memberof NotificationsApiDeleteDestination
|
|
259
236
|
*/
|
|
260
237
|
readonly destinationId: string;
|
|
261
238
|
}
|
|
262
239
|
/**
|
|
263
240
|
* Request parameters for deleteSubscriptionById operation in NotificationsApi.
|
|
264
|
-
* @export
|
|
265
|
-
* @interface NotificationsApiDeleteSubscriptionByIdRequest
|
|
266
241
|
*/
|
|
267
242
|
export interface NotificationsApiDeleteSubscriptionByIdRequest {
|
|
268
243
|
/**
|
|
269
244
|
* The identifier for the subscription that you want to delete.
|
|
270
|
-
* @type {string}
|
|
271
|
-
* @memberof NotificationsApiDeleteSubscriptionById
|
|
272
245
|
*/
|
|
273
246
|
readonly subscriptionId: string;
|
|
274
247
|
/**
|
|
275
248
|
* The type of notification. For more information about notification types, refer to [Notification Type Values](https://developer-docs.amazon.com/sp-api/docs/notification-type-values).
|
|
276
|
-
* @type {string}
|
|
277
|
-
* @memberof NotificationsApiDeleteSubscriptionById
|
|
278
249
|
*/
|
|
279
250
|
readonly notificationType: string;
|
|
280
251
|
}
|
|
281
252
|
/**
|
|
282
253
|
* Request parameters for getDestination operation in NotificationsApi.
|
|
283
|
-
* @export
|
|
284
|
-
* @interface NotificationsApiGetDestinationRequest
|
|
285
254
|
*/
|
|
286
255
|
export interface NotificationsApiGetDestinationRequest {
|
|
287
256
|
/**
|
|
288
257
|
* The identifier generated when you created the destination.
|
|
289
|
-
* @type {string}
|
|
290
|
-
* @memberof NotificationsApiGetDestination
|
|
291
258
|
*/
|
|
292
259
|
readonly destinationId: string;
|
|
293
260
|
}
|
|
294
261
|
/**
|
|
295
262
|
* Request parameters for getSubscription operation in NotificationsApi.
|
|
296
|
-
* @export
|
|
297
|
-
* @interface NotificationsApiGetSubscriptionRequest
|
|
298
263
|
*/
|
|
299
264
|
export interface NotificationsApiGetSubscriptionRequest {
|
|
300
265
|
/**
|
|
301
266
|
* The type of notification. For more information about notification types, refer to [Notification Type Values](https://developer-docs.amazon.com/sp-api/docs/notification-type-values).
|
|
302
|
-
* @type {string}
|
|
303
|
-
* @memberof NotificationsApiGetSubscription
|
|
304
267
|
*/
|
|
305
268
|
readonly notificationType: string;
|
|
306
269
|
/**
|
|
307
270
|
* The version of the payload object to be used in the notification.
|
|
308
|
-
* @type {string}
|
|
309
|
-
* @memberof NotificationsApiGetSubscription
|
|
310
271
|
*/
|
|
311
272
|
readonly payloadVersion?: string;
|
|
312
273
|
}
|
|
313
274
|
/**
|
|
314
275
|
* Request parameters for getSubscriptionById operation in NotificationsApi.
|
|
315
|
-
* @export
|
|
316
|
-
* @interface NotificationsApiGetSubscriptionByIdRequest
|
|
317
276
|
*/
|
|
318
277
|
export interface NotificationsApiGetSubscriptionByIdRequest {
|
|
319
278
|
/**
|
|
320
279
|
* The identifier for the subscription that you want to get.
|
|
321
|
-
* @type {string}
|
|
322
|
-
* @memberof NotificationsApiGetSubscriptionById
|
|
323
280
|
*/
|
|
324
281
|
readonly subscriptionId: string;
|
|
325
282
|
/**
|
|
326
283
|
* The type of notification. For more information about notification types, refer to [Notification Type Values](https://developer-docs.amazon.com/sp-api/docs/notification-type-values).
|
|
327
|
-
* @type {string}
|
|
328
|
-
* @memberof NotificationsApiGetSubscriptionById
|
|
329
284
|
*/
|
|
330
285
|
readonly notificationType: string;
|
|
331
286
|
}
|
|
332
287
|
/**
|
|
333
288
|
* NotificationsApi - object-oriented interface
|
|
334
|
-
* @export
|
|
335
|
-
* @class NotificationsApi
|
|
336
|
-
* @extends {BaseAPI}
|
|
337
289
|
*/
|
|
338
290
|
export declare class NotificationsApi extends BaseAPI {
|
|
339
291
|
/**
|
|
@@ -341,7 +293,6 @@ export declare class NotificationsApi extends BaseAPI {
|
|
|
341
293
|
* @param {NotificationsApiCreateDestinationRequest} requestParameters Request parameters.
|
|
342
294
|
* @param {*} [options] Override http request option.
|
|
343
295
|
* @throws {RequiredError}
|
|
344
|
-
* @memberof NotificationsApi
|
|
345
296
|
*/
|
|
346
297
|
createDestination(requestParameters: NotificationsApiCreateDestinationRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateDestinationResponse, any>>;
|
|
347
298
|
/**
|
|
@@ -349,7 +300,6 @@ export declare class NotificationsApi extends BaseAPI {
|
|
|
349
300
|
* @param {NotificationsApiCreateSubscriptionRequest} requestParameters Request parameters.
|
|
350
301
|
* @param {*} [options] Override http request option.
|
|
351
302
|
* @throws {RequiredError}
|
|
352
|
-
* @memberof NotificationsApi
|
|
353
303
|
*/
|
|
354
304
|
createSubscription(requestParameters: NotificationsApiCreateSubscriptionRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<CreateSubscriptionResponse, any>>;
|
|
355
305
|
/**
|
|
@@ -357,7 +307,6 @@ export declare class NotificationsApi extends BaseAPI {
|
|
|
357
307
|
* @param {NotificationsApiDeleteDestinationRequest} requestParameters Request parameters.
|
|
358
308
|
* @param {*} [options] Override http request option.
|
|
359
309
|
* @throws {RequiredError}
|
|
360
|
-
* @memberof NotificationsApi
|
|
361
310
|
*/
|
|
362
311
|
deleteDestination(requestParameters: NotificationsApiDeleteDestinationRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<DeleteDestinationResponse, any>>;
|
|
363
312
|
/**
|
|
@@ -365,7 +314,6 @@ export declare class NotificationsApi extends BaseAPI {
|
|
|
365
314
|
* @param {NotificationsApiDeleteSubscriptionByIdRequest} requestParameters Request parameters.
|
|
366
315
|
* @param {*} [options] Override http request option.
|
|
367
316
|
* @throws {RequiredError}
|
|
368
|
-
* @memberof NotificationsApi
|
|
369
317
|
*/
|
|
370
318
|
deleteSubscriptionById(requestParameters: NotificationsApiDeleteSubscriptionByIdRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<DeleteSubscriptionByIdResponse, any>>;
|
|
371
319
|
/**
|
|
@@ -373,14 +321,12 @@ export declare class NotificationsApi extends BaseAPI {
|
|
|
373
321
|
* @param {NotificationsApiGetDestinationRequest} requestParameters Request parameters.
|
|
374
322
|
* @param {*} [options] Override http request option.
|
|
375
323
|
* @throws {RequiredError}
|
|
376
|
-
* @memberof NotificationsApi
|
|
377
324
|
*/
|
|
378
325
|
getDestination(requestParameters: NotificationsApiGetDestinationRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetDestinationResponse, any>>;
|
|
379
326
|
/**
|
|
380
327
|
* Returns information about all destinations. The `getDestinations` operation is grantless. For more information, refer to [Grantless operations](https://developer-docs.amazon.com/sp-api/docs/grantless-operations). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may observe 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).
|
|
381
328
|
* @param {*} [options] Override http request option.
|
|
382
329
|
* @throws {RequiredError}
|
|
383
|
-
* @memberof NotificationsApi
|
|
384
330
|
*/
|
|
385
331
|
getDestinations(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetDestinationsResponse, any>>;
|
|
386
332
|
/**
|
|
@@ -388,7 +334,6 @@ export declare class NotificationsApi extends BaseAPI {
|
|
|
388
334
|
* @param {NotificationsApiGetSubscriptionRequest} requestParameters Request parameters.
|
|
389
335
|
* @param {*} [options] Override http request option.
|
|
390
336
|
* @throws {RequiredError}
|
|
391
|
-
* @memberof NotificationsApi
|
|
392
337
|
*/
|
|
393
338
|
getSubscription(requestParameters: NotificationsApiGetSubscriptionRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetSubscriptionResponse, any>>;
|
|
394
339
|
/**
|
|
@@ -396,7 +341,6 @@ export declare class NotificationsApi extends BaseAPI {
|
|
|
396
341
|
* @param {NotificationsApiGetSubscriptionByIdRequest} requestParameters Request parameters.
|
|
397
342
|
* @param {*} [options] Override http request option.
|
|
398
343
|
* @throws {RequiredError}
|
|
399
|
-
* @memberof NotificationsApi
|
|
400
344
|
*/
|
|
401
345
|
getSubscriptionById(requestParameters: NotificationsApiGetSubscriptionByIdRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetSubscriptionByIdResponse, any>>;
|
|
402
346
|
}
|
|
@@ -12,42 +12,22 @@
|
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const COLLECTION_FORMATS: {
|
|
20
16
|
csv: string;
|
|
21
17
|
ssv: string;
|
|
22
18
|
tsv: string;
|
|
23
19
|
pipes: string;
|
|
24
20
|
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
21
|
export interface RequestArgs {
|
|
31
22
|
url: string;
|
|
32
23
|
options: RawAxiosRequestConfig;
|
|
33
24
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
25
|
export declare class BaseAPI {
|
|
40
26
|
protected basePath: string;
|
|
41
27
|
protected axios: AxiosInstance;
|
|
42
28
|
protected configuration: Configuration | undefined;
|
|
43
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
31
|
export declare class RequiredError extends Error {
|
|
52
32
|
field: string;
|
|
53
33
|
constructor(field: string, msg?: string);
|
|
@@ -58,9 +38,5 @@ interface ServerMap {
|
|
|
58
38
|
description: string;
|
|
59
39
|
}[];
|
|
60
40
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
41
|
export declare const operationServerMap: ServerMap;
|
|
66
42
|
export {};
|
|
@@ -12,54 +12,17 @@
|
|
|
12
12
|
import type { Configuration } from "./configuration";
|
|
13
13
|
import type { RequestArgs } from "./base";
|
|
14
14
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
16
|
/**
|
|
21
17
|
*
|
|
22
18
|
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
19
|
*/
|
|
25
20
|
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
21
|
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
22
|
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
23
|
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @export
|
|
44
|
-
*/
|
|
45
24
|
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @export
|
|
49
|
-
*/
|
|
50
25
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
26
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
27
|
export declare const toPathString: (url: URL) => string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
28
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -23,49 +23,32 @@ export declare class Configuration {
|
|
|
23
23
|
/**
|
|
24
24
|
* parameter for apiKey security
|
|
25
25
|
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
26
|
*/
|
|
28
27
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
28
|
/**
|
|
30
29
|
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
30
|
*/
|
|
35
31
|
username?: string;
|
|
36
32
|
/**
|
|
37
33
|
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
34
|
*/
|
|
42
35
|
password?: string;
|
|
43
36
|
/**
|
|
44
37
|
* parameter for oauth2 security
|
|
45
38
|
* @param name security name
|
|
46
39
|
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
40
|
*/
|
|
49
41
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
42
|
/**
|
|
51
43
|
* override base path
|
|
52
|
-
*
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof Configuration
|
|
55
44
|
*/
|
|
56
45
|
basePath?: string;
|
|
57
46
|
/**
|
|
58
47
|
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
48
|
*/
|
|
63
49
|
serverIndex?: number;
|
|
64
50
|
/**
|
|
65
51
|
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
52
|
*/
|
|
70
53
|
baseOptions?: any;
|
|
71
54
|
/**
|
|
@@ -12,14 +12,7 @@
|
|
|
12
12
|
import type { AggregationSettings } from './aggregation-settings';
|
|
13
13
|
/**
|
|
14
14
|
* A filter used to select the aggregation time period at which to send notifications (for example: limit to one notification every five minutes for high frequency notifications).
|
|
15
|
-
* @export
|
|
16
|
-
* @interface AggregationFilter
|
|
17
15
|
*/
|
|
18
16
|
export interface AggregationFilter {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {AggregationSettings}
|
|
22
|
-
* @memberof AggregationFilter
|
|
23
|
-
*/
|
|
24
17
|
'aggregationSettings'?: AggregationSettings;
|
|
25
18
|
}
|
|
@@ -12,14 +12,7 @@
|
|
|
12
12
|
import type { AggregationTimePeriod } from './aggregation-time-period';
|
|
13
13
|
/**
|
|
14
14
|
* A container that holds all of the necessary properties to configure the aggregation of notifications.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface AggregationSettings
|
|
17
15
|
*/
|
|
18
16
|
export interface AggregationSettings {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {AggregationTimePeriod}
|
|
22
|
-
* @memberof AggregationSettings
|
|
23
|
-
*/
|
|
24
17
|
'aggregationTimePeriod': AggregationTimePeriod;
|
|
25
18
|
}
|
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* The supported aggregation time periods. For example, if FiveMinutes is the value chosen, and 50 price updates occur for an ASIN within 5 minutes, Amazon will send only two notifications; one for the first event, and then a subsequent notification 5 minutes later with the final end state of the data. The 48 interim events will be dropped.
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
14
|
*/
|
|
17
15
|
export declare const AggregationTimePeriod: {
|
|
18
16
|
readonly FiveMinutes: "FiveMinutes";
|
|
@@ -12,20 +12,11 @@
|
|
|
12
12
|
import type { DestinationResourceSpecification } from './destination-resource-specification';
|
|
13
13
|
/**
|
|
14
14
|
* The request schema for the `createDestination` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateDestinationRequest
|
|
17
15
|
*/
|
|
18
16
|
export interface CreateDestinationRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {DestinationResourceSpecification}
|
|
22
|
-
* @memberof CreateDestinationRequest
|
|
23
|
-
*/
|
|
24
17
|
'resourceSpecification': DestinationResourceSpecification;
|
|
25
18
|
/**
|
|
26
19
|
* A developer-defined name to help identify this destination.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof CreateDestinationRequest
|
|
29
20
|
*/
|
|
30
21
|
'name': string;
|
|
31
22
|
}
|
|
@@ -12,20 +12,11 @@
|
|
|
12
12
|
import type { Destination } from './destination';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema for the createDestination operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateDestinationResponse
|
|
17
15
|
*/
|
|
18
16
|
export interface CreateDestinationResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Destination}
|
|
22
|
-
* @memberof CreateDestinationResponse
|
|
23
|
-
*/
|
|
24
17
|
'payload'?: Destination;
|
|
25
18
|
/**
|
|
26
19
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
|
-
* @type {Array<Error>}
|
|
28
|
-
* @memberof CreateDestinationResponse
|
|
29
20
|
*/
|
|
30
21
|
'errors'?: Array<Error>;
|
|
31
22
|
}
|
|
@@ -12,26 +12,15 @@
|
|
|
12
12
|
import type { ProcessingDirective } from './processing-directive';
|
|
13
13
|
/**
|
|
14
14
|
* The request schema for the `createSubscription` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateSubscriptionRequest
|
|
17
15
|
*/
|
|
18
16
|
export interface CreateSubscriptionRequest {
|
|
19
17
|
/**
|
|
20
18
|
* The version of the payload object to be used in the notification.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof CreateSubscriptionRequest
|
|
23
19
|
*/
|
|
24
20
|
'payloadVersion': string;
|
|
25
21
|
/**
|
|
26
22
|
* The identifier for the destination where notifications will be delivered.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof CreateSubscriptionRequest
|
|
29
23
|
*/
|
|
30
24
|
'destinationId': string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {ProcessingDirective}
|
|
34
|
-
* @memberof CreateSubscriptionRequest
|
|
35
|
-
*/
|
|
36
25
|
'processingDirective'?: ProcessingDirective;
|
|
37
26
|
}
|
|
@@ -12,20 +12,11 @@
|
|
|
12
12
|
import type { Subscription } from './subscription';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema for the `createSubscription` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateSubscriptionResponse
|
|
17
15
|
*/
|
|
18
16
|
export interface CreateSubscriptionResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Subscription}
|
|
22
|
-
* @memberof CreateSubscriptionResponse
|
|
23
|
-
*/
|
|
24
17
|
'payload'?: Subscription;
|
|
25
18
|
/**
|
|
26
19
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
|
-
* @type {Array<Error>}
|
|
28
|
-
* @memberof CreateSubscriptionResponse
|
|
29
20
|
*/
|
|
30
21
|
'errors'?: Array<Error>;
|
|
31
22
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* The response schema for the `deleteDestination` operation.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface DeleteDestinationResponse
|
|
16
14
|
*/
|
|
17
15
|
export interface DeleteDestinationResponse {
|
|
18
16
|
/**
|
|
19
17
|
* A list of error responses returned when a request is unsuccessful.
|
|
20
|
-
* @type {Array<Error>}
|
|
21
|
-
* @memberof DeleteDestinationResponse
|
|
22
18
|
*/
|
|
23
19
|
'errors'?: Array<Error>;
|
|
24
20
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* The response schema for the `deleteSubscriptionById` operation.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface DeleteSubscriptionByIdResponse
|
|
16
14
|
*/
|
|
17
15
|
export interface DeleteSubscriptionByIdResponse {
|
|
18
16
|
/**
|
|
19
17
|
* A list of error responses returned when a request is unsuccessful.
|
|
20
|
-
* @type {Array<Error>}
|
|
21
|
-
* @memberof DeleteSubscriptionByIdResponse
|
|
22
18
|
*/
|
|
23
19
|
'errors'?: Array<Error>;
|
|
24
20
|
}
|
|
@@ -13,20 +13,8 @@ import type { EventBridgeResourceSpecification } from './event-bridge-resource-s
|
|
|
13
13
|
import type { SqsResource } from './sqs-resource';
|
|
14
14
|
/**
|
|
15
15
|
* The information required to create a destination resource. Applications should use one resource type (sqs or eventBridge) per destination.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface DestinationResourceSpecification
|
|
18
16
|
*/
|
|
19
17
|
export interface DestinationResourceSpecification {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {SqsResource}
|
|
23
|
-
* @memberof DestinationResourceSpecification
|
|
24
|
-
*/
|
|
25
18
|
'sqs'?: SqsResource;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {EventBridgeResourceSpecification}
|
|
29
|
-
* @memberof DestinationResourceSpecification
|
|
30
|
-
*/
|
|
31
19
|
'eventBridge'?: EventBridgeResourceSpecification;
|
|
32
20
|
}
|
|
@@ -13,20 +13,8 @@ import type { EventBridgeResource } from './event-bridge-resource';
|
|
|
13
13
|
import type { SqsResource } from './sqs-resource';
|
|
14
14
|
/**
|
|
15
15
|
* The destination resource types.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface DestinationResource
|
|
18
16
|
*/
|
|
19
17
|
export interface DestinationResource {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {SqsResource}
|
|
23
|
-
* @memberof DestinationResource
|
|
24
|
-
*/
|
|
25
18
|
'sqs'?: SqsResource;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {EventBridgeResource}
|
|
29
|
-
* @memberof DestinationResource
|
|
30
|
-
*/
|
|
31
19
|
'eventBridge'?: EventBridgeResource;
|
|
32
20
|
}
|
|
@@ -12,26 +12,15 @@
|
|
|
12
12
|
import type { DestinationResource } from './destination-resource';
|
|
13
13
|
/**
|
|
14
14
|
* Information about the destination created when you call the `createDestination` operation.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface Destination
|
|
17
15
|
*/
|
|
18
16
|
export interface Destination {
|
|
19
17
|
/**
|
|
20
18
|
* The developer-defined name for this destination.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof Destination
|
|
23
19
|
*/
|
|
24
20
|
'name': string;
|
|
25
21
|
/**
|
|
26
22
|
* The destination identifier generated when you created the destination.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof Destination
|
|
29
23
|
*/
|
|
30
24
|
'destinationId': string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {DestinationResource}
|
|
34
|
-
* @memberof Destination
|
|
35
|
-
*/
|
|
36
25
|
'resource': DestinationResource;
|
|
37
26
|
}
|
|
@@ -11,20 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* The information required to create an Amazon EventBridge destination.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface EventBridgeResourceSpecification
|
|
16
14
|
*/
|
|
17
15
|
export interface EventBridgeResourceSpecification {
|
|
18
16
|
/**
|
|
19
17
|
* The AWS region in which you will be receiving the notifications.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof EventBridgeResourceSpecification
|
|
22
18
|
*/
|
|
23
19
|
'region': string;
|
|
24
20
|
/**
|
|
25
21
|
* The identifier for the AWS account that is responsible for charges related to receiving notifications.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof EventBridgeResourceSpecification
|
|
28
22
|
*/
|
|
29
23
|
'accountId': string;
|
|
30
24
|
}
|
|
@@ -11,26 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* The Amazon EventBridge destination.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface EventBridgeResource
|
|
16
14
|
*/
|
|
17
15
|
export interface EventBridgeResource {
|
|
18
16
|
/**
|
|
19
17
|
* The name of the partner event source associated with the destination.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof EventBridgeResource
|
|
22
18
|
*/
|
|
23
19
|
'name': string;
|
|
24
20
|
/**
|
|
25
21
|
* The AWS region in which you receive the notifications. For AWS regions that are supported in Amazon EventBridge, refer to [Amazon EventBridge endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/ev.html).
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof EventBridgeResource
|
|
28
22
|
*/
|
|
29
23
|
'region': string;
|
|
30
24
|
/**
|
|
31
25
|
* The identifier for the AWS account that is responsible for charges related to receiving notifications.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof EventBridgeResource
|
|
34
26
|
*/
|
|
35
27
|
'accountId': string;
|
|
36
28
|
}
|
|
@@ -9,16 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface EventFilterAllOf
|
|
16
|
-
*/
|
|
17
12
|
export interface EventFilterAllOf {
|
|
18
13
|
/**
|
|
19
14
|
* An `eventFilterType` value that is supported by the specific `notificationType`. This is used by the subscription service to determine the type of event filter. Refer to [Notification Type Values](https://developer-docs.amazon.com/sp-api/docs/notification-type-values) to determine if an `eventFilterType` is supported.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof EventFilterAllOf
|
|
22
15
|
*/
|
|
23
16
|
'eventFilterType': EventFilterAllOfEventFilterTypeEnum;
|
|
24
17
|
}
|
|
@@ -16,6 +16,5 @@ import type { OrderChangeTypeFilter } from './order-change-type-filter';
|
|
|
16
16
|
/**
|
|
17
17
|
* @type EventFilter
|
|
18
18
|
* A `notificationType` specific filter. This object contains all of the currently available filters and properties that you can use to define a `notificationType` specific filter.
|
|
19
|
-
* @export
|
|
20
19
|
*/
|
|
21
20
|
export type EventFilter = AggregationFilter & EventFilterAllOf & MarketplaceFilter & OrderChangeTypeFilter;
|