@prezly/sdk 23.12.0 → 23.14.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.11.0";
7
+ const VERSION = "23.13.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.11.0";
1
+ const VERSION = "23.13.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.TableId = exports.OptionId = exports.LimitId = exports.AddOnId = void 0;
6
+ exports.TableId = exports.OptionId = exports.LimitId = exports.CellType = exports.AddOnId = void 0;
7
7
  let TableId = exports.TableId = /*#__PURE__*/function (TableId) {
8
8
  TableId["STANDARD"] = "standard";
9
9
  TableId["AGENCY"] = "agency";
@@ -32,4 +32,9 @@ let LimitId = exports.LimitId = /*#__PURE__*/function (LimitId) {
32
32
  let AddOnId = exports.AddOnId = /*#__PURE__*/function (AddOnId) {
33
33
  AddOnId["SITE"] = "site";
34
34
  return AddOnId;
35
+ }({});
36
+ let CellType = exports.CellType = /*#__PURE__*/function (CellType) {
37
+ CellType["TEXT"] = "text";
38
+ CellType["PRICING"] = "pricing";
39
+ return CellType;
35
40
  }({});
@@ -1,3 +1,4 @@
1
+ import type { PricingPlan } from '../../types';
1
2
  export interface PricingTable {
2
3
  id: TableId;
3
4
  options: Option[];
@@ -67,7 +68,12 @@ export interface Row {
67
68
  is_key_item: boolean;
68
69
  cells: Record<string, Cell>;
69
70
  }
71
+ export declare enum CellType {
72
+ TEXT = "text",
73
+ PRICING = "pricing"
74
+ }
70
75
  export interface Cell {
71
- value: string | null;
76
+ type: CellType;
77
+ value: string | PricingPlan[] | null;
72
78
  description: string | null;
73
79
  }
@@ -26,4 +26,9 @@ export let LimitId = /*#__PURE__*/function (LimitId) {
26
26
  export let AddOnId = /*#__PURE__*/function (AddOnId) {
27
27
  AddOnId["SITE"] = "site";
28
28
  return AddOnId;
29
+ }({});
30
+ export let CellType = /*#__PURE__*/function (CellType) {
31
+ CellType["TEXT"] = "text";
32
+ CellType["PRICING"] = "pricing";
33
+ return CellType;
29
34
  }({});
@@ -9,6 +9,7 @@ export interface NewsroomLanguageSettings {
9
9
  locale: CultureRef;
10
10
  stories_count: number;
11
11
  public_stories_count: number;
12
+ hub_public_stories_count: number;
12
13
  default_email_disclaimer: string;
13
14
  default_cookie_statement: string;
14
15
  default_subscribe_disclaimer: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "23.12.0",
3
+ "version": "23.14.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",