@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.
Files changed (44) hide show
  1. package/dist/cjs/api-model/api/notifications-api.js +0 -14
  2. package/dist/cjs/api-model/base.js +0 -19
  3. package/dist/cjs/api-model/common.js +0 -37
  4. package/dist/cjs/api-model/configuration.js +0 -17
  5. package/dist/cjs/api-model/models/aggregation-time-period.js +0 -2
  6. package/dist/cjs/api-model/models/order-change-type-enum.js +0 -2
  7. package/dist/es/api-model/api/notifications-api.js +0 -14
  8. package/dist/es/api-model/base.js +0 -19
  9. package/dist/es/api-model/common.js +0 -37
  10. package/dist/es/api-model/configuration.js +0 -17
  11. package/dist/es/api-model/models/aggregation-time-period.js +0 -2
  12. package/dist/es/api-model/models/order-change-type-enum.js +0 -2
  13. package/dist/types/api-model/api/notifications-api.d.ts +0 -56
  14. package/dist/types/api-model/base.d.ts +0 -24
  15. package/dist/types/api-model/common.d.ts +0 -37
  16. package/dist/types/api-model/configuration.d.ts +0 -17
  17. package/dist/types/api-model/models/aggregation-filter.d.ts +0 -7
  18. package/dist/types/api-model/models/aggregation-settings.d.ts +0 -7
  19. package/dist/types/api-model/models/aggregation-time-period.d.ts +0 -2
  20. package/dist/types/api-model/models/create-destination-request.d.ts +0 -9
  21. package/dist/types/api-model/models/create-destination-response.d.ts +0 -9
  22. package/dist/types/api-model/models/create-subscription-request.d.ts +0 -11
  23. package/dist/types/api-model/models/create-subscription-response.d.ts +0 -9
  24. package/dist/types/api-model/models/delete-destination-response.d.ts +0 -4
  25. package/dist/types/api-model/models/delete-subscription-by-id-response.d.ts +0 -4
  26. package/dist/types/api-model/models/destination-resource-specification.d.ts +0 -12
  27. package/dist/types/api-model/models/destination-resource.d.ts +0 -12
  28. package/dist/types/api-model/models/destination.d.ts +0 -11
  29. package/dist/types/api-model/models/event-bridge-resource-specification.d.ts +0 -6
  30. package/dist/types/api-model/models/event-bridge-resource.d.ts +0 -8
  31. package/dist/types/api-model/models/event-filter-all-of.d.ts +0 -7
  32. package/dist/types/api-model/models/event-filter.d.ts +0 -1
  33. package/dist/types/api-model/models/get-destination-response.d.ts +0 -9
  34. package/dist/types/api-model/models/get-destinations-response.d.ts +0 -6
  35. package/dist/types/api-model/models/get-subscription-by-id-response.d.ts +0 -9
  36. package/dist/types/api-model/models/get-subscription-response.d.ts +0 -9
  37. package/dist/types/api-model/models/marketplace-filter.d.ts +0 -4
  38. package/dist/types/api-model/models/model-error.d.ts +0 -8
  39. package/dist/types/api-model/models/order-change-type-enum.d.ts +0 -2
  40. package/dist/types/api-model/models/order-change-type-filter.d.ts +0 -4
  41. package/dist/types/api-model/models/processing-directive.d.ts +0 -7
  42. package/dist/types/api-model/models/sqs-resource.d.ts +0 -4
  43. package/dist/types/api-model/models/subscription.d.ts +0 -13
  44. package/package.json +25 -4
@@ -12,20 +12,11 @@
12
12
  import type { Destination } from './destination';
13
13
  /**
14
14
  * The response schema for the `getDestination` operation.
15
- * @export
16
- * @interface GetDestinationResponse
17
15
  */
18
16
  export interface GetDestinationResponse {
19
- /**
20
- *
21
- * @type {Destination}
22
- * @memberof GetDestinationResponse
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 GetDestinationResponse
29
20
  */
30
21
  'errors'?: Array<Error>;
31
22
  }
@@ -12,20 +12,14 @@
12
12
  import type { Destination } from './destination';
13
13
  /**
14
14
  * The response schema for the `getDestinations` operation.
15
- * @export
16
- * @interface GetDestinationsResponse
17
15
  */
18
16
  export interface GetDestinationsResponse {
19
17
  /**
20
18
  * A list of destinations.
21
- * @type {Array<Destination>}
22
- * @memberof GetDestinationsResponse
23
19
  */
24
20
  'payload'?: Array<Destination>;
25
21
  /**
26
22
  * A list of error responses returned when a request is unsuccessful.
27
- * @type {Array<Error>}
28
- * @memberof GetDestinationsResponse
29
23
  */
30
24
  'errors'?: Array<Error>;
31
25
  }
@@ -12,20 +12,11 @@
12
12
  import type { Subscription } from './subscription';
13
13
  /**
14
14
  * The response schema for the `getSubscriptionById` operation.
15
- * @export
16
- * @interface GetSubscriptionByIdResponse
17
15
  */
18
16
  export interface GetSubscriptionByIdResponse {
19
- /**
20
- *
21
- * @type {Subscription}
22
- * @memberof GetSubscriptionByIdResponse
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 GetSubscriptionByIdResponse
29
20
  */
30
21
  'errors'?: Array<Error>;
31
22
  }
@@ -12,20 +12,11 @@
12
12
  import type { Subscription } from './subscription';
13
13
  /**
14
14
  * The response schema for the `getSubscription` operation.
15
- * @export
16
- * @interface GetSubscriptionResponse
17
15
  */
18
16
  export interface GetSubscriptionResponse {
19
- /**
20
- *
21
- * @type {Subscription}
22
- * @memberof GetSubscriptionResponse
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 GetSubscriptionResponse
29
20
  */
30
21
  'errors'?: Array<Error>;
31
22
  }
@@ -11,14 +11,10 @@
11
11
  */
12
12
  /**
13
13
  * An event filter to customize your subscription to send notifications for only the specified `marketplaceId`s.
14
- * @export
15
- * @interface MarketplaceFilter
16
14
  */
17
15
  export interface MarketplaceFilter {
18
16
  /**
19
17
  * A list of marketplace identifiers to subscribe to (for example: ATVPDKIKX0DER). To receive notifications in every marketplace, do not provide this list.
20
- * @type {Array<string>}
21
- * @memberof MarketplaceFilter
22
18
  */
23
19
  'marketplaceIds'?: Array<string>;
24
20
  }
@@ -11,26 +11,18 @@
11
11
  */
12
12
  /**
13
13
  * An error response returned when the request is unsuccessful.
14
- * @export
15
- * @interface ModelError
16
14
  */
17
15
  export interface ModelError {
18
16
  /**
19
17
  * An error code that identifies the type of error that occurred.
20
- * @type {string}
21
- * @memberof ModelError
22
18
  */
23
19
  'code': string;
24
20
  /**
25
21
  * A message that describes the error condition.
26
- * @type {string}
27
- * @memberof ModelError
28
22
  */
29
23
  'message': string;
30
24
  /**
31
25
  * Additional details that can help the caller understand or fix the issue.
32
- * @type {string}
33
- * @memberof ModelError
34
26
  */
35
27
  'details'?: string;
36
28
  }
@@ -11,8 +11,6 @@
11
11
  */
12
12
  /**
13
13
  * The supported order change type of ORDER_CHANGE notification.
14
- * @export
15
- * @enum {string}
16
14
  */
17
15
  export declare const OrderChangeTypeEnum: {
18
16
  readonly OrderStatusChange: "OrderStatusChange";
@@ -12,14 +12,10 @@
12
12
  import type { OrderChangeTypeEnum } from './order-change-type-enum';
13
13
  /**
14
14
  * An event filter to customize your subscription to send notifications for only the specified `orderChangeType`.
15
- * @export
16
- * @interface OrderChangeTypeFilter
17
15
  */
18
16
  export interface OrderChangeTypeFilter {
19
17
  /**
20
18
  * A list of order change types to subscribe to (for example: `BuyerRequestedChange`). To receive notifications of all change types, do not provide this list.
21
- * @type {Array<OrderChangeTypeEnum>}
22
- * @memberof OrderChangeTypeFilter
23
19
  */
24
20
  'orderChangeTypes'?: Array<OrderChangeTypeEnum>;
25
21
  }
@@ -12,14 +12,7 @@
12
12
  import type { EventFilter } from './event-filter';
13
13
  /**
14
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 (for example: 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` `notificationType`s.
15
- * @export
16
- * @interface ProcessingDirective
17
15
  */
18
16
  export interface ProcessingDirective {
19
- /**
20
- *
21
- * @type {EventFilter}
22
- * @memberof ProcessingDirective
23
- */
24
17
  'eventFilter'?: EventFilter;
25
18
  }
@@ -11,14 +11,10 @@
11
11
  */
12
12
  /**
13
13
  * The information required to create an Amazon Simple Queue Service (Amazon SQS) queue destination.
14
- * @export
15
- * @interface SqsResource
16
14
  */
17
15
  export interface SqsResource {
18
16
  /**
19
17
  * The Amazon Resource Name (ARN) associated with the SQS queue.
20
- * @type {string}
21
- * @memberof SqsResource
22
18
  */
23
19
  'arn': string;
24
20
  }
@@ -12,32 +12,19 @@
12
12
  import type { ProcessingDirective } from './processing-directive';
13
13
  /**
14
14
  * Information about the subscription.
15
- * @export
16
- * @interface Subscription
17
15
  */
18
16
  export interface Subscription {
19
17
  /**
20
18
  * The subscription identifier generated when the subscription is created.
21
- * @type {string}
22
- * @memberof Subscription
23
19
  */
24
20
  'subscriptionId': string;
25
21
  /**
26
22
  * The version of the payload object to be used in the notification.
27
- * @type {string}
28
- * @memberof Subscription
29
23
  */
30
24
  'payloadVersion': string;
31
25
  /**
32
26
  * The identifier for the destination where notifications will be delivered.
33
- * @type {string}
34
- * @memberof Subscription
35
27
  */
36
28
  'destinationId': string;
37
- /**
38
- *
39
- * @type {ProcessingDirective}
40
- * @memberof Subscription
41
- */
42
29
  'processingDirective'?: ProcessingDirective;
43
30
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/notifications-api-v1",
3
3
  "author": "Bertrand Marron <bertrand@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, refer to the Notifications Use Case Guide.",
5
- "version": "3.0.6",
5
+ "version": "3.0.7",
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.15",
22
- "axios": "^1.10.0"
21
+ "@sp-api-sdk/common": "2.1.16",
22
+ "axios": "^1.11.0"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,26 @@
40
40
  "sp sdk",
41
41
  "notifications api"
42
42
  ],
43
- "gitHead": "b36600f33d62a2b6c3a9035968a93bc83e9838a9"
43
+ "xo": {
44
+ "extends": [
45
+ "xo-bizon"
46
+ ],
47
+ "settings": {
48
+ "import/internal-regex": "^@sp-api-sdk/"
49
+ },
50
+ "semicolon": false,
51
+ "space": 2,
52
+ "prettier": true,
53
+ "ignores": [
54
+ "src/api-model/**"
55
+ ],
56
+ "rules": {
57
+ "unicorn/prevent-abbreviations": "off"
58
+ }
59
+ },
60
+ "prettier": {
61
+ "printWidth": 100,
62
+ "jsxSingleQuote": true
63
+ },
64
+ "gitHead": "fc1b46f3bc172469e2fbbc2e0155f6fa7ce3edde"
44
65
  }