@prezly/sdk 12.0.2 → 12.0.4

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,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DEFAULT_USER_AGENT = void 0;
7
- const VERSION = "12.0.1";
7
+ const VERSION = "12.0.3";
8
8
  const URL = 'https://github.com/prezly/javascript-sdk';
9
9
  const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
10
10
  exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
@@ -1,3 +1,3 @@
1
- const VERSION = "12.0.1";
1
+ const VERSION = "12.0.3";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -1,7 +1,7 @@
1
- import type { NewsroomRef } from '../../types';
2
- declare type NewsroomId = NewsroomRef['uuid'] | NewsroomRef['id'];
1
+ import type { Newsroom } from '../../types';
2
+ declare type NewsroomId = Newsroom['uuid'] | Newsroom['id'];
3
3
  export interface HubMember {
4
- newsroom: NewsroomRef;
4
+ newsroom: Newsroom;
5
5
  is_displaying_stories_in_hub: boolean;
6
6
  }
7
7
  export interface ListResponse {
@@ -40,6 +40,7 @@ const ALL_EXTRA_FIELDS_SHAPE = {
40
40
  content_version: true,
41
41
  last_modifying_user: true,
42
42
  attached_gallery_content: true,
43
+ attached_videos_content: true,
43
44
  referenced_entities: true,
44
45
  'campaigns.count': true,
45
46
  'pitches.count': true
@@ -34,6 +34,7 @@ const ALL_EXTRA_FIELDS_SHAPE = {
34
34
  content_version: true,
35
35
  last_modifying_user: true,
36
36
  attached_gallery_content: true,
37
+ attached_videos_content: true,
37
38
  referenced_entities: true,
38
39
  'campaigns.count': true,
39
40
  'pitches.count': true
@@ -205,6 +205,11 @@ export declare namespace Story {
205
205
  * Always `null` for v3 stories.
206
206
  */
207
207
  attached_gallery_content: string | null;
208
+ /**
209
+ * Contains attached videos slate content.
210
+ * Always `null` for v3 stories.
211
+ */
212
+ attached_videos_content: string | null;
208
213
  referenced_entities: {
209
214
  stories: Record<string, OEmbedInfo>;
210
215
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "12.0.2",
3
+ "version": "12.0.4",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",