@prezly/sdk 16.0.0 → 16.1.1

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,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DEFAULT_USER_AGENT = void 0;
7
- const VERSION = "15.21.0";
7
+ const VERSION = "16.1.0";
8
8
  const URL = 'https://github.com/prezly/javascript-sdk';
9
9
  const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
10
10
  exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
@@ -1,3 +1,3 @@
1
- const VERSION = "15.21.0";
1
+ const VERSION = "16.1.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -18,6 +18,7 @@ export interface CreateRequest {
18
18
  name: string;
19
19
  description?: string | null;
20
20
  status?: NewsroomGallery.Status;
21
+ type?: NewsroomGallery.Type;
21
22
  /**
22
23
  * Slate JSON content.
23
24
  */
@@ -13,4 +13,10 @@ exports.NewsroomGallery = NewsroomGallery;
13
13
  Status["PUBLIC"] = "public";
14
14
  })(Status || (Status = {}));
15
15
  _NewsroomGallery.Status = Status;
16
+ let Type;
17
+ (function (Type) {
18
+ Type["IMAGE"] = "image";
19
+ Type["VIDEO"] = "video";
20
+ })(Type || (Type = {}));
21
+ _NewsroomGallery.Type = Type;
16
22
  })(NewsroomGallery || (exports.NewsroomGallery = NewsroomGallery = {}));
@@ -13,6 +13,7 @@ export interface NewsroomGallery {
13
13
  thumbnail_image: string | null;
14
14
  url: string;
15
15
  status: NewsroomGallery.Status;
16
+ type: NewsroomGallery.Type;
16
17
  creator: UserRef | null;
17
18
  created_at: string;
18
19
  updated_at: string;
@@ -30,6 +31,10 @@ export declare namespace NewsroomGallery {
30
31
  PRIVATE = "private",
31
32
  PUBLIC = "public"
32
33
  }
34
+ enum Type {
35
+ IMAGE = "image",
36
+ VIDEO = "video"
37
+ }
33
38
  interface Image {
34
39
  id: number;
35
40
  caption: string;
@@ -6,4 +6,10 @@ export let NewsroomGallery;
6
6
  Status["PUBLIC"] = "public";
7
7
  })(Status || (Status = {}));
8
8
  _NewsroomGallery.Status = Status;
9
+ let Type;
10
+ (function (Type) {
11
+ Type["IMAGE"] = "image";
12
+ Type["VIDEO"] = "video";
13
+ })(Type || (Type = {}));
14
+ _NewsroomGallery.Type = Type;
9
15
  })(NewsroomGallery || (NewsroomGallery = {}));
@@ -26,6 +26,7 @@ exports.NewsroomTheme = NewsroomTheme;
26
26
  Feature["HOMEPAGE_CONTACTS"] = "homepage_contacts";
27
27
  Feature["SUBSCRIBE_FORM"] = "subscribe_form";
28
28
  Feature["STORY_PINNING"] = "story_pinning";
29
+ Feature["TITLE_FORMATTING"] = "title_formatting";
29
30
  })(Feature || (Feature = {}));
30
31
  _NewsroomTheme.Feature = Feature;
31
32
  function isFeatureSupported(theme, feature) {
@@ -29,7 +29,8 @@ export declare namespace NewsroomTheme {
29
29
  CUSTOM_CSS_JAVASCRIPT = "custom_css_javascript",
30
30
  HOMEPAGE_CONTACTS = "homepage_contacts",
31
31
  SUBSCRIBE_FORM = "subscribe_form",
32
- STORY_PINNING = "story_pinning"
32
+ STORY_PINNING = "story_pinning",
33
+ TITLE_FORMATTING = "title_formatting"
33
34
  }
34
35
  function isFeatureSupported(theme: NewsroomTheme, feature: NewsroomTheme.Feature): boolean;
35
36
  }
@@ -19,6 +19,7 @@ export let NewsroomTheme;
19
19
  Feature["HOMEPAGE_CONTACTS"] = "homepage_contacts";
20
20
  Feature["SUBSCRIBE_FORM"] = "subscribe_form";
21
21
  Feature["STORY_PINNING"] = "story_pinning";
22
+ Feature["TITLE_FORMATTING"] = "title_formatting";
22
23
  })(Feature || (Feature = {}));
23
24
  _NewsroomTheme.Feature = Feature;
24
25
  function isFeatureSupported(theme, feature) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "16.0.0",
3
+ "version": "16.1.1",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",