@prezly/sdk 26.3.0 → 26.3.3

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 = "26.3.0-0";
7
+ const VERSION = "26.3.2";
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 = "26.3.0-0";
1
+ const VERSION = "26.3.2";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -5,6 +5,7 @@ import type { StoryRef } from './Story';
5
5
  import type { UserRef } from './User';
6
6
  export interface Campaign {
7
7
  id: number;
8
+ type: 'campaign';
8
9
  author: UserRef;
9
10
  lifecycle_status: Campaign.LifecycleStatus;
10
11
  subject: string;
@@ -75,6 +75,10 @@ export interface NewsroomRef {
75
75
  }
76
76
  export interface Newsroom extends NewsroomRef {
77
77
  is_hub: boolean;
78
+ hub: {
79
+ parent: Newsroom.HubPeer;
80
+ siblings: Newsroom.HubPeer[];
81
+ } | null;
78
82
  cultures: CultureRef[];
79
83
  campaigns_number: number;
80
84
  stories_number: number;
@@ -125,6 +129,11 @@ export interface Newsroom extends NewsroomRef {
125
129
  active_theme_preset: NewsroomThemePreset;
126
130
  }
127
131
  export declare namespace Newsroom {
132
+ interface HubPeer extends NewsroomRef {
133
+ cultures: (CultureRef & {
134
+ is_default: boolean;
135
+ })[];
136
+ }
128
137
  enum Status {
129
138
  ACTIVE = "active",// i.e. "Live"
130
139
  INACTIVE = "inactive",// i.e. "Not live"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "26.3.0",
3
+ "version": "26.3.3",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",