@prezly/sdk 13.0.0 → 14.1.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,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DEFAULT_USER_AGENT = void 0;
7
- const VERSION = "12.6.0";
7
+ const VERSION = "14.0.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 = "12.6.0";
1
+ const VERSION = "14.0.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -55,8 +55,12 @@ export interface License extends LicenseRef {
55
55
  /**
56
56
  * Plan level will be null in case
57
57
  * we do not have data about plan level.
58
+ *
59
+ * @deprecated Will be dropped in the future,
60
+ * use "plan" instead.
58
61
  */
59
62
  plan_level: PlanLevel | null;
63
+ plan: License.Plan;
60
64
  status: License.Status;
61
65
  subscription_lockout: boolean;
62
66
  /**
@@ -104,4 +108,8 @@ export declare namespace License {
104
108
  CANCELED = "canceled",
105
109
  UNPAID = "unpaid"
106
110
  }
111
+ interface Plan {
112
+ display_name: string | null;
113
+ is_legacy: boolean;
114
+ }
107
115
  }
@@ -37,9 +37,7 @@ export interface StoryRef {
37
37
  newsroom: NewsroomRef;
38
38
  oembed: OEmbedInfo;
39
39
  links: {
40
- edit: string;
41
40
  newsroom_view: string;
42
- report: string;
43
41
  };
44
42
  }
45
43
  export interface Story {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "13.0.0",
3
+ "version": "14.1.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",