@sp-api-sdk/notifications-api-v1 1.11.3 → 1.12.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 (98) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/src/api-model/api/notifications-api.js +33 -33
  3. package/dist/cjs/src/api-model/api.js +1 -1
  4. package/dist/cjs/src/api-model/base.js +1 -1
  5. package/dist/cjs/src/api-model/common.js +1 -1
  6. package/dist/cjs/src/api-model/configuration.js +1 -1
  7. package/dist/cjs/src/api-model/index.js +1 -1
  8. package/dist/cjs/src/api-model/models/aggregation-filter.js +15 -0
  9. package/dist/cjs/src/api-model/models/aggregation-settings.js +15 -0
  10. package/dist/cjs/src/api-model/models/aggregation-time-period.js +26 -0
  11. package/dist/cjs/src/api-model/models/create-destination-request.js +1 -1
  12. package/dist/cjs/src/api-model/models/create-destination-response.js +1 -1
  13. package/dist/cjs/src/api-model/models/create-subscription-request.js +1 -1
  14. package/dist/cjs/src/api-model/models/create-subscription-response.js +1 -1
  15. package/dist/cjs/src/api-model/models/delete-destination-response.js +1 -1
  16. package/dist/cjs/src/api-model/models/delete-subscription-by-id-response.js +1 -1
  17. package/dist/cjs/src/api-model/models/destination-resource-specification.js +1 -1
  18. package/dist/cjs/src/api-model/models/destination-resource.js +1 -1
  19. package/dist/cjs/src/api-model/models/destination.js +1 -1
  20. package/dist/cjs/src/api-model/models/event-bridge-resource-specification.js +1 -1
  21. package/dist/cjs/src/api-model/models/event-bridge-resource.js +1 -1
  22. package/dist/cjs/src/api-model/models/event-filter-all-of.js +15 -0
  23. package/dist/cjs/src/api-model/models/event-filter.js +15 -0
  24. package/dist/cjs/src/api-model/models/get-destination-response.js +1 -1
  25. package/dist/cjs/src/api-model/models/get-destinations-response.js +1 -1
  26. package/dist/cjs/src/api-model/models/get-subscription-by-id-response.js +1 -1
  27. package/dist/cjs/src/api-model/models/get-subscription-response.js +1 -1
  28. package/dist/cjs/src/api-model/models/index.js +7 -0
  29. package/dist/cjs/src/api-model/models/marketplace-filter.js +15 -0
  30. package/dist/cjs/src/api-model/models/model-error.js +1 -1
  31. package/dist/cjs/src/api-model/models/processing-directive.js +15 -0
  32. package/dist/cjs/src/api-model/models/sqs-resource.js +1 -1
  33. package/dist/cjs/src/api-model/models/subscription.js +1 -1
  34. package/dist/es/src/api-model/api/notifications-api.js +33 -33
  35. package/dist/es/src/api-model/api.js +1 -1
  36. package/dist/es/src/api-model/base.js +1 -1
  37. package/dist/es/src/api-model/common.js +1 -1
  38. package/dist/es/src/api-model/configuration.js +1 -1
  39. package/dist/es/src/api-model/index.js +1 -1
  40. package/dist/es/src/api-model/models/aggregation-filter.js +14 -0
  41. package/dist/es/src/api-model/models/aggregation-settings.js +14 -0
  42. package/dist/es/src/api-model/models/aggregation-time-period.js +23 -0
  43. package/dist/es/src/api-model/models/create-destination-request.js +1 -1
  44. package/dist/es/src/api-model/models/create-destination-response.js +1 -1
  45. package/dist/es/src/api-model/models/create-subscription-request.js +1 -1
  46. package/dist/es/src/api-model/models/create-subscription-response.js +1 -1
  47. package/dist/es/src/api-model/models/delete-destination-response.js +1 -1
  48. package/dist/es/src/api-model/models/delete-subscription-by-id-response.js +1 -1
  49. package/dist/es/src/api-model/models/destination-resource-specification.js +1 -1
  50. package/dist/es/src/api-model/models/destination-resource.js +1 -1
  51. package/dist/es/src/api-model/models/destination.js +1 -1
  52. package/dist/es/src/api-model/models/event-bridge-resource-specification.js +1 -1
  53. package/dist/es/src/api-model/models/event-bridge-resource.js +1 -1
  54. package/dist/es/src/api-model/models/event-filter-all-of.js +14 -0
  55. package/dist/es/src/api-model/models/event-filter.js +14 -0
  56. package/dist/es/src/api-model/models/get-destination-response.js +1 -1
  57. package/dist/es/src/api-model/models/get-destinations-response.js +1 -1
  58. package/dist/es/src/api-model/models/get-subscription-by-id-response.js +1 -1
  59. package/dist/es/src/api-model/models/get-subscription-response.js +1 -1
  60. package/dist/es/src/api-model/models/index.js +7 -0
  61. package/dist/es/src/api-model/models/marketplace-filter.js +14 -0
  62. package/dist/es/src/api-model/models/model-error.js +1 -1
  63. package/dist/es/src/api-model/models/processing-directive.js +14 -0
  64. package/dist/es/src/api-model/models/sqs-resource.js +1 -1
  65. package/dist/es/src/api-model/models/subscription.js +1 -1
  66. package/dist/types/src/api-model/api/notifications-api.d.ts +33 -33
  67. package/dist/types/src/api-model/api.d.ts +1 -1
  68. package/dist/types/src/api-model/base.d.ts +1 -1
  69. package/dist/types/src/api-model/common.d.ts +1 -1
  70. package/dist/types/src/api-model/configuration.d.ts +1 -1
  71. package/dist/types/src/api-model/index.d.ts +1 -1
  72. package/dist/types/src/api-model/models/aggregation-filter.d.ts +25 -0
  73. package/dist/types/src/api-model/models/aggregation-settings.d.ts +25 -0
  74. package/dist/types/src/api-model/models/aggregation-time-period.d.ts +20 -0
  75. package/dist/types/src/api-model/models/create-destination-request.d.ts +1 -1
  76. package/dist/types/src/api-model/models/create-destination-response.d.ts +1 -1
  77. package/dist/types/src/api-model/models/create-subscription-request.d.ts +8 -1
  78. package/dist/types/src/api-model/models/create-subscription-response.d.ts +1 -1
  79. package/dist/types/src/api-model/models/delete-destination-response.d.ts +1 -1
  80. package/dist/types/src/api-model/models/delete-subscription-by-id-response.d.ts +1 -1
  81. package/dist/types/src/api-model/models/destination-resource-specification.d.ts +1 -1
  82. package/dist/types/src/api-model/models/destination-resource.d.ts +1 -1
  83. package/dist/types/src/api-model/models/destination.d.ts +1 -1
  84. package/dist/types/src/api-model/models/event-bridge-resource-specification.d.ts +1 -1
  85. package/dist/types/src/api-model/models/event-bridge-resource.d.ts +1 -1
  86. package/dist/types/src/api-model/models/event-filter-all-of.d.ts +24 -0
  87. package/dist/types/src/api-model/models/event-filter.d.ts +20 -0
  88. package/dist/types/src/api-model/models/get-destination-response.d.ts +1 -1
  89. package/dist/types/src/api-model/models/get-destinations-response.d.ts +1 -1
  90. package/dist/types/src/api-model/models/get-subscription-by-id-response.d.ts +1 -1
  91. package/dist/types/src/api-model/models/get-subscription-response.d.ts +1 -1
  92. package/dist/types/src/api-model/models/index.d.ts +7 -0
  93. package/dist/types/src/api-model/models/marketplace-filter.d.ts +24 -0
  94. package/dist/types/src/api-model/models/model-error.d.ts +1 -1
  95. package/dist/types/src/api-model/models/processing-directive.d.ts +25 -0
  96. package/dist/types/src/api-model/models/sqs-resource.d.ts +1 -1
  97. package/dist/types/src/api-model/models/subscription.d.ts +8 -1
  98. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Notifications
3
- * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide)
3
+ * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Selling Partner API for Notifications
3
+ * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface EventFilterAllOf
16
+ */
17
+ export interface EventFilterAllOf {
18
+ /**
19
+ * 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 the section of the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide) that describes the specific notificationType to determine if an eventFilterType is supported.
20
+ * @type {string}
21
+ * @memberof EventFilterAllOf
22
+ */
23
+ eventFilterType: string;
24
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Selling Partner API for Notifications
3
+ * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AggregationFilter } from './aggregation-filter';
13
+ import { EventFilterAllOf } from './event-filter-all-of';
14
+ import { MarketplaceFilter } from './marketplace-filter';
15
+ /**
16
+ * @type EventFilter
17
+ * 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.
18
+ * @export
19
+ */
20
+ export declare type EventFilter = AggregationFilter & EventFilterAllOf & MarketplaceFilter;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Notifications
3
- * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide)
3
+ * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Notifications
3
- * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide)
3
+ * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Notifications
3
- * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide)
3
+ * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Notifications
3
- * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide)
3
+ * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,3 +1,6 @@
1
+ export * from './aggregation-filter';
2
+ export * from './aggregation-settings';
3
+ export * from './aggregation-time-period';
1
4
  export * from './create-destination-request';
2
5
  export * from './create-destination-response';
3
6
  export * from './create-subscription-request';
@@ -9,10 +12,14 @@ export * from './destination-resource';
9
12
  export * from './destination-resource-specification';
10
13
  export * from './event-bridge-resource';
11
14
  export * from './event-bridge-resource-specification';
15
+ export * from './event-filter';
16
+ export * from './event-filter-all-of';
12
17
  export * from './get-destination-response';
13
18
  export * from './get-destinations-response';
14
19
  export * from './get-subscription-by-id-response';
15
20
  export * from './get-subscription-response';
21
+ export * from './marketplace-filter';
16
22
  export * from './model-error';
23
+ export * from './processing-directive';
17
24
  export * from './sqs-resource';
18
25
  export * from './subscription';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Selling Partner API for Notifications
3
+ * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Use this event filter to customize your subscription to send notifications for only the specified marketplaceId\'s.
14
+ * @export
15
+ * @interface MarketplaceFilter
16
+ */
17
+ export interface MarketplaceFilter {
18
+ /**
19
+ * A list of marketplace identifiers to subscribe to (e.g. ATVPDKIKX0DER). To receive notifications in every marketplace, do not provide this list.
20
+ * @type {Array<string>}
21
+ * @memberof MarketplaceFilter
22
+ */
23
+ marketplaceIds?: Array<string>;
24
+ }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Notifications
3
- * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide)
3
+ * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Selling Partner API for Notifications
3
+ * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { EventFilter } from './event-filter';
13
+ /**
14
+ * Additional information passed to the subscription to control the processing of notifications. For example, you can use an eventFilter to customize your subscription to send notifications for only the specified marketplaceId\'s, or select the aggregation time period at which to send notifications (e.g. limit to one notification every five minutes for high frequency notifications). The specific features available vary depending on the notificationType. This feature is limited to specific notificationTypes and is currently only supported by the ANY_OFFER_CHANGED notificationType.
15
+ * @export
16
+ * @interface ProcessingDirective
17
+ */
18
+ export interface ProcessingDirective {
19
+ /**
20
+ *
21
+ * @type {EventFilter}
22
+ * @memberof ProcessingDirective
23
+ */
24
+ eventFilter?: EventFilter;
25
+ }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Notifications
3
- * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide)
3
+ * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Selling Partner API for Notifications
3
- * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide)
3
+ * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
4
4
  *
5
5
  * The version of the OpenAPI document: v1
6
6
  *
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ProcessingDirective } from './processing-directive';
12
13
  /**
13
14
  * Represents a subscription to receive notifications.
14
15
  * @export
@@ -33,4 +34,10 @@ export interface Subscription {
33
34
  * @memberof Subscription
34
35
  */
35
36
  destinationId: string;
37
+ /**
38
+ *
39
+ * @type {ProcessingDirective}
40
+ * @memberof Subscription
41
+ */
42
+ processingDirective?: ProcessingDirective;
36
43
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@sp-api-sdk/notifications-api-v1",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
4
- "description": "The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the Notifications Use Case Guide",
5
- "version": "1.11.3",
4
+ "description": "The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. For more information, see the Notifications Use Case Guide.",
5
+ "version": "1.12.0",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "test": "jest"
28
28
  },
29
29
  "dependencies": {
30
- "@sp-api-sdk/auth": "^1.9.16",
31
- "@sp-api-sdk/common": "^1.9.2",
30
+ "@sp-api-sdk/auth": "^1.9.17",
31
+ "@sp-api-sdk/common": "^1.9.3",
32
32
  "axios": "^0.27.2"
33
33
  },
34
34
  "repository": {
@@ -50,5 +50,5 @@
50
50
  "sp sdk",
51
51
  "notifications api"
52
52
  ],
53
- "gitHead": "a7c5d10323f6fbaea18fe0669afb4c66a5898554"
53
+ "gitHead": "a91680c9bce217db7412c5ad7c17aa6e918ada8e"
54
54
  }