@prezly/sdk 23.5.1 → 23.7.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 = "23.5.0";
7
+ const VERSION = "23.6.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 = "23.5.0";
1
+ const VERSION = "23.6.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -129,4 +129,5 @@ export interface UpdateRequest {
129
129
  category?: string;
130
130
  script?: string;
131
131
  };
132
+ tracking_policy?: Newsroom.TrackingPolicy | null;
132
133
  }
@@ -54,7 +54,8 @@ const ALL_EXTRA_FIELDS_SHAPE = {
54
54
  attached_contacts_content: true,
55
55
  referenced_entities: true,
56
56
  'campaigns.count': true,
57
- 'pitches.count': true
57
+ 'pitches.count': true,
58
+ uploadcare_assets_group_uuid: true
58
59
  }; // satisfies Record<keyof Story.OnDemandFields, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
59
60
 
60
61
  const ALL_EXTRA_FIELDS = exports.ALL_EXTRA_FIELDS = Object.keys(ALL_EXTRA_FIELDS_SHAPE);
@@ -44,7 +44,8 @@ const ALL_EXTRA_FIELDS_SHAPE = {
44
44
  attached_contacts_content: true,
45
45
  referenced_entities: true,
46
46
  'campaigns.count': true,
47
- 'pitches.count': true
47
+ 'pitches.count': true,
48
+ uploadcare_assets_group_uuid: true
48
49
  }; // satisfies Record<keyof Story.OnDemandFields, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
49
50
 
50
51
  export const ALL_EXTRA_FIELDS = Object.keys(ALL_EXTRA_FIELDS_SHAPE);
@@ -28,8 +28,9 @@ let NewsroomTheme = exports.NewsroomTheme = void 0;
28
28
  Feature["CTA_BUTTONS"] = "cta_buttons";
29
29
  Feature["VIDEO_LAYOUT"] = "video_layout";
30
30
  Feature["EMBED_LAYOUT"] = "embed_layout";
31
+ Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy";
31
32
  return Feature;
32
- }({}); // DEV-11475
33
+ }({}); // DEV-19123
33
34
  _NewsroomTheme.Feature = Feature;
34
35
  function isFeatureSupported(theme, feature) {
35
36
  return theme.features.includes(feature);
@@ -33,7 +33,8 @@ export declare namespace NewsroomTheme {
33
33
  TITLE_FORMATTING = "title_formatting",
34
34
  CTA_BUTTONS = "cta_buttons",
35
35
  VIDEO_LAYOUT = "video_layout",// DEV-7588
36
- EMBED_LAYOUT = "embed_layout"
36
+ EMBED_LAYOUT = "embed_layout",// DEV-11475
37
+ STRICT_TRACKING_POLICY = "strict_tracking_policy"
37
38
  }
38
39
  function isFeatureSupported(theme: NewsroomTheme, feature: NewsroomTheme.Feature): boolean;
39
40
  }
@@ -52,6 +53,9 @@ export declare namespace NewsroomThemePreset {
52
53
  enum?: (string | null)[];
53
54
  'prezly:feature'?: string;
54
55
  type: string | (string | null)[];
56
+ items?: string | string[] | {
57
+ enum: (string | null)[];
58
+ };
55
59
  }>;
56
60
  required: string[];
57
61
  type: string;
@@ -22,8 +22,9 @@ export let NewsroomTheme;
22
22
  Feature["CTA_BUTTONS"] = "cta_buttons";
23
23
  Feature["VIDEO_LAYOUT"] = "video_layout";
24
24
  Feature["EMBED_LAYOUT"] = "embed_layout";
25
+ Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy";
25
26
  return Feature;
26
- }({}); // DEV-11475
27
+ }({}); // DEV-19123
27
28
  _NewsroomTheme.Feature = Feature;
28
29
  function isFeatureSupported(theme, feature) {
29
30
  return theme.features.includes(feature);
@@ -261,6 +261,7 @@ export declare namespace Story {
261
261
  * Number of pitches linked to this story.
262
262
  */
263
263
  'pitches.count': number;
264
+ uploadcare_assets_group_uuid: string | null;
264
265
  }
265
266
  function isActiveNewsroom(story: Pick<Story, 'newsroom'>): boolean;
266
267
  function isInactiveNewsroom(story: Pick<Story, 'newsroom'>): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "23.5.1",
3
+ "version": "23.7.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",