@prezly/sdk 23.11.1 → 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.
@@ -14,7 +14,7 @@ type Exactly<Concrete, Abstract> = Concrete & Record<Exclude<keyof Concrete, key
14
14
  type InferExtraFields<T> = T extends Required<IncludeOptions<infer I>> ? Pick<Story.ExtraFields, I> : unknown;
15
15
  export type Client = ReturnType<typeof createClient>;
16
16
  export declare function createClient(api: DeferredJobsApiClient): {
17
- list: <Options extends ListOptions<keyof Story.ExtraFields>>(options?: Exactly<Options, ListOptions>) => Promise<ListResponse<Story & InferExtraFields<Options>>>;
17
+ list: <Options extends ListOptions<keyof Story.ExtraFields>>(options?: Exactly<Options, ListOptions<keyof Story.ExtraFields>> | undefined) => Promise<ListResponse<Story & InferExtraFields<Options>>>;
18
18
  search: <Options_1 extends SearchOptions<keyof Story.ExtraFields>>(options?: Exactly<Options_1, SearchOptions<keyof Story.ExtraFields>> | undefined) => Promise<ListResponse<Story & InferExtraFields<Options_1>>>;
19
19
  get: {
20
20
  <Options_2 extends IncludeOptions<keyof Story.ExtraFields> & {
@@ -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 {};
@@ -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.1",
3
+ "version": "23.12.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",