@prezly/sdk 11.1.1 → 11.2.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.
@@ -1,3 +1,3 @@
1
- const VERSION = "11.1.0";
1
+ const VERSION = "11.2.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -1,4 +1,9 @@
1
1
  import type { NotificationSubscription } from '../../types';
2
+ interface SubscriptionUpdate {
3
+ notification_type: NotificationSubscription.Type['id'];
4
+ is_email_subscribed: NotificationSubscription['is_email_subscribed'];
5
+ }
2
6
  export interface UpdateRequest {
3
- subscriptions: Pick<NotificationSubscription, 'notification_type' | 'is_email_subscribed'>[];
7
+ subscriptions: SubscriptionUpdate[];
4
8
  }
9
+ export {};
@@ -1,6 +1,8 @@
1
1
  export interface NotificationSubscription {
2
2
  notification_type: NotificationSubscription.Type;
3
3
  is_email_subscribed: boolean;
4
+ is_email_required: boolean;
5
+ is_receiving_email: boolean;
4
6
  is_receiving: boolean;
5
7
  missing_permissions: string[];
6
8
  missing_features: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "11.1.1",
3
+ "version": "11.2.1",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",