@prezly/sdk 9.0.1 → 9.0.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.
@@ -1,3 +1,3 @@
1
- const VERSION = "9.0.0";
1
+ const VERSION = "9.0.2";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -109,7 +109,7 @@ export declare namespace Contact {
109
109
  BI_MONTHLY = "bi-monthly",
110
110
  QUARTERLY = "quarterly",
111
111
  ANNUALLY = "annually",
112
- BI_ANUALLY = "bi-anually",
112
+ BI_ANUALLY = "bi-annually",
113
113
  SEMI_ANNUALLY = "semi-annually"
114
114
  }
115
115
  enum MediumType {
@@ -23,7 +23,7 @@ export let Contact;
23
23
  Periodicity["BI_MONTHLY"] = "bi-monthly";
24
24
  Periodicity["QUARTERLY"] = "quarterly";
25
25
  Periodicity["ANNUALLY"] = "annually";
26
- Periodicity["BI_ANUALLY"] = "bi-anually";
26
+ Periodicity["BI_ANUALLY"] = "bi-annually";
27
27
  Periodicity["SEMI_ANNUALLY"] = "semi-annually";
28
28
  })(Periodicity || (Periodicity = {}));
29
29
  _Contact.Periodicity = Periodicity;
@@ -1,6 +1,6 @@
1
- export interface Notification {
1
+ export interface Notification<T extends string = string> {
2
2
  id: string;
3
- type: string;
3
+ type: T;
4
4
  style: Notification.Style;
5
5
  title: string;
6
6
  description: string;
@@ -1,7 +1,7 @@
1
1
  export interface OEmbedInfo {
2
2
  version: '1.0';
3
3
  url: string;
4
- type: 'video' | 'photo' | 'rich' | 'link';
4
+ type: `${OEmbedInfo.Type}`;
5
5
  title?: string;
6
6
  description?: string;
7
7
  screenshot_url?: string;
@@ -17,3 +17,11 @@ export interface OEmbedInfo {
17
17
  width?: number;
18
18
  height?: number;
19
19
  }
20
+ export declare namespace OEmbedInfo {
21
+ enum Type {
22
+ LINK = "link",
23
+ PHOTO = "photo",
24
+ RICH = "rich",
25
+ VIDEO = "video"
26
+ }
27
+ }
@@ -1 +1,11 @@
1
- export {};
1
+ export let OEmbedInfo;
2
+ (function (_OEmbedInfo) {
3
+ let Type;
4
+ (function (Type) {
5
+ Type["LINK"] = "link";
6
+ Type["PHOTO"] = "photo";
7
+ Type["RICH"] = "rich";
8
+ Type["VIDEO"] = "video";
9
+ })(Type || (Type = {}));
10
+ _OEmbedInfo.Type = Type;
11
+ })(OEmbedInfo || (OEmbedInfo = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "9.0.1",
3
+ "version": "9.0.3",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",