@prezly/sdk 23.7.2 → 23.7.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,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DEFAULT_USER_AGENT = void 0;
7
- const VERSION = "23.7.1";
7
+ const VERSION = "23.7.3";
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 = "23.7.1";
1
+ const VERSION = "23.7.3";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -33,8 +33,7 @@ const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE = {
33
33
  tag_names: true,
34
34
  content: true,
35
35
  attached_gallery_content: true,
36
- referenced_entities: true,
37
- uploadcare_assets_group_uuid: true
36
+ referenced_entities: true
38
37
  }; // satisfies Record<keyof Omit<ExtendedStory, keyof Story>, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
39
38
 
40
39
  const ALL_EXTRA_FIELDS_SHAPE = {
@@ -55,8 +54,7 @@ const ALL_EXTRA_FIELDS_SHAPE = {
55
54
  attached_contacts_content: true,
56
55
  referenced_entities: true,
57
56
  'campaigns.count': true,
58
- 'pitches.count': true,
59
- uploadcare_assets_group_uuid: true
57
+ 'pitches.count': true
60
58
  }; // satisfies Record<keyof Story.OnDemandFields, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
61
59
 
62
60
  const ALL_EXTRA_FIELDS = exports.ALL_EXTRA_FIELDS = Object.keys(ALL_EXTRA_FIELDS_SHAPE);
@@ -23,8 +23,7 @@ const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE = {
23
23
  tag_names: true,
24
24
  content: true,
25
25
  attached_gallery_content: true,
26
- referenced_entities: true,
27
- uploadcare_assets_group_uuid: true
26
+ referenced_entities: true
28
27
  }; // satisfies Record<keyof Omit<ExtendedStory, keyof Story>, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
29
28
 
30
29
  const ALL_EXTRA_FIELDS_SHAPE = {
@@ -45,8 +44,7 @@ const ALL_EXTRA_FIELDS_SHAPE = {
45
44
  attached_contacts_content: true,
46
45
  referenced_entities: true,
47
46
  'campaigns.count': true,
48
- 'pitches.count': true,
49
- uploadcare_assets_group_uuid: true
47
+ 'pitches.count': true
50
48
  }; // satisfies Record<keyof Story.OnDemandFields, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
51
49
 
52
50
  export const ALL_EXTRA_FIELDS = Object.keys(ALL_EXTRA_FIELDS_SHAPE);
@@ -26,6 +26,7 @@ let CoverageEntry = exports.CoverageEntry = void 0;
26
26
  Provider["MANUAL"] = "manual";
27
27
  Provider["MEDIAWEB"] = "mediaweb";
28
28
  Provider["MELTWATER"] = "meltwater";
29
+ Provider["NETFEEDR"] = "netfeedr";
29
30
  Provider["OPOINT"] = "opoint";
30
31
  return Provider;
31
32
  }({});
@@ -86,6 +86,7 @@ export declare namespace CoverageEntry {
86
86
  MANUAL = "manual",
87
87
  MEDIAWEB = "mediaweb",
88
88
  MELTWATER = "meltwater",
89
+ NETFEEDR = "netfeedr",
89
90
  OPOINT = "opoint"
90
91
  }
91
92
  enum Sentiment {
@@ -20,6 +20,7 @@ export let CoverageEntry;
20
20
  Provider["MANUAL"] = "manual";
21
21
  Provider["MEDIAWEB"] = "mediaweb";
22
22
  Provider["MELTWATER"] = "meltwater";
23
+ Provider["NETFEEDR"] = "netfeedr";
23
24
  Provider["OPOINT"] = "opoint";
24
25
  return Provider;
25
26
  }({});
@@ -149,6 +149,7 @@ export interface Story {
149
149
  is_pinned: boolean;
150
150
  pinned_by: UserRef | null;
151
151
  seo_settings: SEOSettings;
152
+ uploadcare_assets_group_uuid: string | null;
152
153
  }
153
154
  export declare namespace Story {
154
155
  enum FormatVersion {
@@ -261,7 +262,6 @@ export declare namespace Story {
261
262
  * Number of pitches linked to this story.
262
263
  */
263
264
  'pitches.count': number;
264
- uploadcare_assets_group_uuid: string | null;
265
265
  }
266
266
  function isActiveNewsroom(story: Pick<Story, 'newsroom'>): boolean;
267
267
  function isInactiveNewsroom(story: Pick<Story, 'newsroom'>): boolean;
@@ -315,6 +315,6 @@ export declare namespace Story {
315
315
  format_version: FormatVersion.SLATEJS_V6;
316
316
  };
317
317
  }
318
- export interface ExtendedStory extends Story, Pick<Story.ExtraFields, 'thumbnail_image' | 'header_image' | 'preview_image' | 'social_image' | 'social_text' | 'tag_names' | 'content' | 'attached_gallery_content' | 'referenced_entities' | 'uploadcare_assets_group_uuid'> {
318
+ export interface ExtendedStory extends Story, Pick<Story.ExtraFields, 'thumbnail_image' | 'header_image' | 'preview_image' | 'social_image' | 'social_text' | 'tag_names' | 'content' | 'attached_gallery_content' | 'referenced_entities'> {
319
319
  }
320
320
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "23.7.2",
3
+ "version": "23.7.4",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",