@prezly/sdk 21.2.0 → 21.4.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.
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DEFAULT_USER_AGENT = void 0;
7
- const VERSION = "21.1.2";
7
+ const VERSION = "21.3.0";
8
8
  const URL = 'https://github.com/prezly/javascript-sdk';
9
9
  const DEFAULT_USER_AGENT = exports.DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -1,3 +1,3 @@
1
- const VERSION = "21.1.2";
1
+ const VERSION = "21.3.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -35,6 +35,7 @@ export interface Campaign {
35
35
  scheduled_at: string | null;
36
36
  sent_at: string | null;
37
37
  delivered_at: string | null;
38
+ is_demo: boolean;
38
39
  is_open_tracking_enabled: boolean;
39
40
  is_click_tracking_enabled: boolean;
40
41
  click_tracking_version: Campaign.ClickTrackingVersion;
@@ -17,6 +17,7 @@ export interface Contact {
17
17
  contact_type: Contact.Type;
18
18
  is_deleted: boolean;
19
19
  is_person: boolean;
20
+ is_demo: boolean;
20
21
  company_name: string;
21
22
  first_name: string;
22
23
  last_name: string;
@@ -9,6 +9,7 @@ export interface ContactTag {
9
9
  updated_at: Iso8601DateTime | null;
10
10
  creator: UserRef | null;
11
11
  last_updated_by_user: UserRef | null;
12
+ is_demo: boolean;
12
13
  }
13
14
  export declare namespace ContactTag {
14
15
  type Identifier = ContactTag['id'] | ContactTag['name'];
@@ -8,4 +8,5 @@ export interface EmailSubscription {
8
8
  * This field will be present only if user has permission to view contacts.
9
9
  */
10
10
  contacts?: ContactRef[];
11
+ is_demo: boolean;
11
12
  }
@@ -113,6 +113,7 @@ export interface Newsroom extends NewsroomRef {
113
113
  visits_last_7_days: number | null;
114
114
  visits_last_7_days_previous: number | null;
115
115
  };
116
+ is_demo: boolean;
116
117
  }
117
118
  export declare namespace Newsroom {
118
119
  enum Status {
@@ -17,6 +17,7 @@ export interface NewsroomContactRef {
17
17
  twitter: string | null;
18
18
  facebook: string | null;
19
19
  avatar_url: string | null;
20
+ is_demo: boolean;
20
21
  }
21
22
  export interface NewsroomContact extends Omit<NewsroomContactRef, 'avatar_url'> {
22
23
  avatar_image: UploadedImage | null;
@@ -26,6 +26,7 @@ export interface NewsroomGallery {
26
26
  images_number: number;
27
27
  videos_number: number;
28
28
  images: NewsroomGallery.Image[];
29
+ is_demo: boolean;
29
30
  }
30
31
  export declare namespace NewsroomGallery {
31
32
  enum Status {
@@ -136,6 +136,7 @@ export interface Story {
136
136
  is_sharable: boolean;
137
137
  is_analytics_available: boolean;
138
138
  is_shared_to_prpro: boolean;
139
+ is_demo: boolean;
139
140
  /**
140
141
  * @deprecated Please use `status` instead.
141
142
  * @see status
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "21.2.0",
3
+ "version": "21.4.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",