@prezly/sdk 24.1.0 → 24.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,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DEFAULT_USER_AGENT = void 0;
7
- const VERSION = "24.0.0";
7
+ const VERSION = "24.1.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 = "24.0.0";
1
+ const VERSION = "24.1.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
2
 
3
- var _index = require("../../types/index.cjs");
4
- var Provider = _index.CoverageEntry.Provider;
3
+ var _index = require("../../types/index.cjs");
@@ -1,2 +1 @@
1
- import { CoverageEntry } from "../../types/index.js";
2
- var Provider = CoverageEntry.Provider;
1
+ import { CoverageEntry } from "../../types/index.js";
@@ -62,5 +62,4 @@ var _Subscriptions = _interopRequireWildcard(require("./Subscriptions/index.cjs"
62
62
  exports.Subscriptions = _Subscriptions;
63
63
  var _NotificationSubscriptions = _interopRequireWildcard(require("./NotificationSubscriptions/index.cjs"));
64
64
  exports.NotificationSubscriptions = _NotificationSubscriptions;
65
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
66
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
65
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
@@ -8,7 +8,9 @@ let Newsroom = exports.Newsroom = void 0;
8
8
  (function (_Newsroom) {
9
9
  let Status = /*#__PURE__*/function (Status) {
10
10
  Status["ACTIVE"] = "active";
11
+ // i.e. "Live"
11
12
  Status["INACTIVE"] = "inactive";
13
+ // i.e. "Not live"
12
14
  Status["ARCHIVED"] = "archived";
13
15
  return Status;
14
16
  }({});
@@ -20,8 +22,14 @@ let Newsroom = exports.Newsroom = void 0;
20
22
  }({});
21
23
  _Newsroom.EmailBrandingMode = EmailBrandingMode;
22
24
  let TrackingPolicy = /*#__PURE__*/function (TrackingPolicy) {
25
+ /**
26
+ * @deprecated Please use `NORMAL` instead.
27
+ */
23
28
  TrackingPolicy["DEFAULT"] = "default";
24
29
  TrackingPolicy["DISABLED"] = "disabled";
30
+ /**
31
+ * @deprecated Please use `STRICT` instead.
32
+ */
25
33
  TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
26
34
  TrackingPolicy["STRICT"] = "strict";
27
35
  TrackingPolicy["NORMAL"] = "normal";
@@ -68,6 +68,7 @@ export interface NewsroomRef {
68
68
  widget_settings: string;
69
69
  };
70
70
  active_theme?: NewroomThemeRef | null;
71
+ is_auto_created: boolean;
71
72
  }
72
73
  export interface Newsroom extends NewsroomRef {
73
74
  domain: string;
@@ -2,7 +2,9 @@ export let Newsroom;
2
2
  (function (_Newsroom) {
3
3
  let Status = /*#__PURE__*/function (Status) {
4
4
  Status["ACTIVE"] = "active";
5
+ // i.e. "Live"
5
6
  Status["INACTIVE"] = "inactive";
7
+ // i.e. "Not live"
6
8
  Status["ARCHIVED"] = "archived";
7
9
  return Status;
8
10
  }({});
@@ -14,8 +16,14 @@ export let Newsroom;
14
16
  }({});
15
17
  _Newsroom.EmailBrandingMode = EmailBrandingMode;
16
18
  let TrackingPolicy = /*#__PURE__*/function (TrackingPolicy) {
19
+ /**
20
+ * @deprecated Please use `NORMAL` instead.
21
+ */
17
22
  TrackingPolicy["DEFAULT"] = "default";
18
23
  TrackingPolicy["DISABLED"] = "disabled";
24
+ /**
25
+ * @deprecated Please use `STRICT` instead.
26
+ */
19
27
  TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
20
28
  TrackingPolicy["STRICT"] = "strict";
21
29
  TrackingPolicy["NORMAL"] = "normal";
@@ -27,10 +27,12 @@ let NewsroomTheme = exports.NewsroomTheme = void 0;
27
27
  Feature["TITLE_FORMATTING"] = "title_formatting";
28
28
  Feature["CTA_BUTTONS"] = "cta_buttons";
29
29
  Feature["VIDEO_LAYOUT"] = "video_layout";
30
+ // DEV-7588
30
31
  Feature["EMBED_LAYOUT"] = "embed_layout";
31
- Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy";
32
+ // DEV-11475
33
+ Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy"; // DEV-19123
32
34
  return Feature;
33
- }({}); // DEV-19123
35
+ }({});
34
36
  _NewsroomTheme.Feature = Feature;
35
37
  function isFeatureSupported(theme, feature) {
36
38
  return theme.features.includes(feature);
@@ -21,10 +21,12 @@ export let NewsroomTheme;
21
21
  Feature["TITLE_FORMATTING"] = "title_formatting";
22
22
  Feature["CTA_BUTTONS"] = "cta_buttons";
23
23
  Feature["VIDEO_LAYOUT"] = "video_layout";
24
+ // DEV-7588
24
25
  Feature["EMBED_LAYOUT"] = "embed_layout";
25
- Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy";
26
+ // DEV-11475
27
+ Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy"; // DEV-19123
26
28
  return Feature;
27
- }({}); // DEV-19123
29
+ }({});
28
30
  _NewsroomTheme.Feature = Feature;
29
31
  function isFeatureSupported(theme, feature) {
30
32
  return theme.features.includes(feature);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "24.1.0",
3
+ "version": "24.1.1",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",