@prezly/sdk 23.6.0 → 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.1";
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.1";
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})`;
@@ -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);
@@ -53,6 +53,9 @@ export declare namespace NewsroomThemePreset {
53
53
  enum?: (string | null)[];
54
54
  'prezly:feature'?: string;
55
55
  type: string | (string | null)[];
56
+ items?: string | string[] | {
57
+ enum: (string | null)[];
58
+ };
56
59
  }>;
57
60
  required: string[];
58
61
  type: string;
@@ -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.6.0",
3
+ "version": "23.7.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",