@sp-api-sdk/notifications-api-v1 1.14.1 → 1.15.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.
@@ -13,3 +13,8 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.EventFilterAllOfEventFilterTypeEnum = void 0;
17
+ exports.EventFilterAllOfEventFilterTypeEnum = {
18
+ AnyOfferChanged: 'ANY_OFFER_CHANGED',
19
+ OrderChange: 'ORDER_CHANGE'
20
+ };
@@ -36,6 +36,8 @@ __exportStar(require("./get-subscription-by-id-response"), exports);
36
36
  __exportStar(require("./get-subscription-response"), exports);
37
37
  __exportStar(require("./marketplace-filter"), exports);
38
38
  __exportStar(require("./model-error"), exports);
39
+ __exportStar(require("./order-change-type-enum"), exports);
40
+ __exportStar(require("./order-change-type-filter"), exports);
39
41
  __exportStar(require("./processing-directive"), exports);
40
42
  __exportStar(require("./sqs-resource"), exports);
41
43
  __exportStar(require("./subscription"), exports);
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Notifications
6
+ * 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).
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OrderChangeTypeEnum = void 0;
17
+ /**
18
+ * The supported order change type of ORDER_CHANGE notification.
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.OrderChangeTypeEnum = {
23
+ OrderStatusChange: 'OrderStatusChange',
24
+ BuyerRequestedChange: 'BuyerRequestedChange'
25
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Notifications
6
+ * 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).
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,4 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export {};
14
+ export const EventFilterAllOfEventFilterTypeEnum = {
15
+ AnyOfferChanged: 'ANY_OFFER_CHANGED',
16
+ OrderChange: 'ORDER_CHANGE'
17
+ };
@@ -20,6 +20,8 @@ export * from './get-subscription-by-id-response';
20
20
  export * from './get-subscription-response';
21
21
  export * from './marketplace-filter';
22
22
  export * from './model-error';
23
+ export * from './order-change-type-enum';
24
+ export * from './order-change-type-filter';
23
25
  export * from './processing-directive';
24
26
  export * from './sqs-resource';
25
27
  export * from './subscription';
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Notifications
5
+ * 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).
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * The supported order change type of ORDER_CHANGE notification.
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export const OrderChangeTypeEnum = {
20
+ OrderStatusChange: 'OrderStatusChange',
21
+ BuyerRequestedChange: 'BuyerRequestedChange'
22
+ };
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Notifications
5
+ * 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).
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -20,5 +20,10 @@ export interface EventFilterAllOf {
20
20
  * @type {string}
21
21
  * @memberof EventFilterAllOf
22
22
  */
23
- 'eventFilterType': string;
23
+ 'eventFilterType': EventFilterAllOfEventFilterTypeEnum;
24
24
  }
25
+ export declare const EventFilterAllOfEventFilterTypeEnum: {
26
+ readonly AnyOfferChanged: "ANY_OFFER_CHANGED";
27
+ readonly OrderChange: "ORDER_CHANGE";
28
+ };
29
+ export type EventFilterAllOfEventFilterTypeEnum = typeof EventFilterAllOfEventFilterTypeEnum[keyof typeof EventFilterAllOfEventFilterTypeEnum];
@@ -12,9 +12,10 @@
12
12
  import { AggregationFilter } from './aggregation-filter';
13
13
  import { EventFilterAllOf } from './event-filter-all-of';
14
14
  import { MarketplaceFilter } from './marketplace-filter';
15
+ import { OrderChangeTypeFilter } from './order-change-type-filter';
15
16
  /**
16
17
  * @type EventFilter
17
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.
18
19
  * @export
19
20
  */
20
- export type EventFilter = AggregationFilter & EventFilterAllOf & MarketplaceFilter;
21
+ export type EventFilter = AggregationFilter & EventFilterAllOf & MarketplaceFilter & OrderChangeTypeFilter;
@@ -20,6 +20,8 @@ export * from './get-subscription-by-id-response';
20
20
  export * from './get-subscription-response';
21
21
  export * from './marketplace-filter';
22
22
  export * from './model-error';
23
+ export * from './order-change-type-enum';
24
+ export * from './order-change-type-filter';
23
25
  export * from './processing-directive';
24
26
  export * from './sqs-resource';
25
27
  export * from './subscription';
@@ -0,0 +1,21 @@
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
+ * The supported order change type of ORDER_CHANGE notification.
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare const OrderChangeTypeEnum: {
18
+ readonly OrderStatusChange: "OrderStatusChange";
19
+ readonly BuyerRequestedChange: "BuyerRequestedChange";
20
+ };
21
+ export type OrderChangeTypeEnum = typeof OrderChangeTypeEnum[keyof typeof OrderChangeTypeEnum];
@@ -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 { OrderChangeTypeEnum } from './order-change-type-enum';
13
+ /**
14
+ * Use this event filter to customize your subscription to send notifications for only the specified orderChangeType.
15
+ * @export
16
+ * @interface OrderChangeTypeFilter
17
+ */
18
+ export interface OrderChangeTypeFilter {
19
+ /**
20
+ * A list of order change types to subscribe to (e.g. BuyerRequestedChange). To receive notifications of all change types, do not provide this list.
21
+ * @type {Array<OrderChangeTypeEnum>}
22
+ * @memberof OrderChangeTypeFilter
23
+ */
24
+ 'orderChangeTypes'?: Array<OrderChangeTypeEnum>;
25
+ }
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import { EventFilter } from './event-filter';
13
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.
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 currently only supported by the `ANY_OFFER_CHANGED` and `ORDER_CHANGE` notificationTypes.
15
15
  * @export
16
16
  * @interface ProcessingDirective
17
17
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/notifications-api-v1",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
4
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.14.1",
5
+ "version": "1.15.0",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "1.11.2",
21
+ "@sp-api-sdk/common": "1.11.4",
22
22
  "axios": "^1.4.0"
23
23
  },
24
24
  "repository": {
@@ -40,8 +40,5 @@
40
40
  "sp sdk",
41
41
  "notifications api"
42
42
  ],
43
- "typedoc": {
44
- "entryPoint": "./index.ts"
45
- },
46
- "gitHead": "fb810d21c79c3f71392e6d4a18b2de0b5de3566a"
43
+ "gitHead": "4f5be6b7d4c8d5892d6567b00c6a7f2180a97758"
47
44
  }