@prezly/sdk 23.11.0 → 23.12.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.10.1";
7
+ const VERSION = "23.11.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.10.1";
1
+ const VERSION = "23.11.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -255,5 +255,5 @@ export interface ChangeNewsroomUnsafeResponse {
255
255
  warnings: ChangeNewsroomWarning[];
256
256
  }
257
257
  export declare const ALL_EXTRA_FIELDS: (keyof Story.ExtraFields)[];
258
- export declare const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS: ("content" | "thumbnail_image" | "header_image" | "preview_image" | "social_image" | "social_text" | "tag_names" | "attached_gallery_content" | "referenced_entities")[];
258
+ export declare const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS: ("content" | "preview_image" | "thumbnail_image" | "header_image" | "social_image" | "social_text" | "tag_names" | "attached_gallery_content" | "referenced_entities")[];
259
259
  export {};
@@ -47,6 +47,7 @@ let Campaign = exports.Campaign = void 0;
47
47
  let ClickTrackingVersion = /*#__PURE__*/function (ClickTrackingVersion) {
48
48
  ClickTrackingVersion[ClickTrackingVersion["DEPRECATED"] = 1] = "DEPRECATED";
49
49
  ClickTrackingVersion[ClickTrackingVersion["ENHANCED"] = 2] = "ENHANCED";
50
+ ClickTrackingVersion[ClickTrackingVersion["INHOUSE"] = 3] = "INHOUSE";
50
51
  return ClickTrackingVersion;
51
52
  }({});
52
53
  _Campaign.ClickTrackingVersion = ClickTrackingVersion;
@@ -91,7 +91,8 @@ export declare namespace Campaign {
91
91
  }
92
92
  enum ClickTrackingVersion {
93
93
  DEPRECATED = 1,
94
- ENHANCED = 2
94
+ ENHANCED = 2,
95
+ INHOUSE = 3
95
96
  }
96
97
  function isDraft(status: LifecycleStatus): boolean;
97
98
  function isDraft(campaign: Pick<Campaign, 'lifecycle_status'>): boolean;
@@ -41,6 +41,7 @@ export let Campaign;
41
41
  let ClickTrackingVersion = /*#__PURE__*/function (ClickTrackingVersion) {
42
42
  ClickTrackingVersion[ClickTrackingVersion["DEPRECATED"] = 1] = "DEPRECATED";
43
43
  ClickTrackingVersion[ClickTrackingVersion["ENHANCED"] = 2] = "ENHANCED";
44
+ ClickTrackingVersion[ClickTrackingVersion["INHOUSE"] = 3] = "INHOUSE";
44
45
  return ClickTrackingVersion;
45
46
  }({});
46
47
  _Campaign.ClickTrackingVersion = ClickTrackingVersion;
@@ -1,5 +1,6 @@
1
1
  import type { UploadedImage } from '@prezly/uploads';
2
2
  import type { CultureRef } from './Culture';
3
+ import type { NewroomThemeRef } from './NewsroomTheme';
3
4
  export interface NewsroomRef {
4
5
  uuid: string;
5
6
  /**
@@ -66,6 +67,7 @@ export interface NewsroomRef {
66
67
  privacy_settings: string;
67
68
  widget_settings: string;
68
69
  };
70
+ active_theme?: NewroomThemeRef | null;
69
71
  }
70
72
  export interface Newsroom extends NewsroomRef {
71
73
  domain: string;
@@ -13,6 +13,7 @@ export interface NewsroomTheme {
13
13
  demo_url: string | null;
14
14
  status: NewsroomTheme.Status;
15
15
  }
16
+ export type NewroomThemeRef = Pick<NewsroomTheme, 'id' | 'codename' | 'name'>;
16
17
  export declare namespace NewsroomTheme {
17
18
  enum Status {
18
19
  BETA = "beta",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "23.11.0",
3
+ "version": "23.12.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",