@prezly/sdk 19.1.1 → 19.2.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.
Files changed (83) hide show
  1. package/dist/api/DeferredJobsApiClient.cjs +1 -0
  2. package/dist/api/DeferredJobsApiClient.js +1 -0
  3. package/dist/api/constants.cjs +3 -2
  4. package/dist/api/constants.js +1 -1
  5. package/dist/endpoints/Accounts/index.cjs +0 -2
  6. package/dist/endpoints/Billing/index.cjs +0 -2
  7. package/dist/endpoints/Billing/types.cjs +5 -3
  8. package/dist/endpoints/CampaignRecipients/index.cjs +0 -2
  9. package/dist/endpoints/Campaigns/index.cjs +0 -2
  10. package/dist/endpoints/Contacts/index.cjs +0 -2
  11. package/dist/endpoints/ContactsExports/index.cjs +0 -2
  12. package/dist/endpoints/Coverage/index.cjs +0 -2
  13. package/dist/endpoints/Jobs/index.cjs +0 -2
  14. package/dist/endpoints/Licenses/index.cjs +0 -1
  15. package/dist/endpoints/NewsroomCategories/index.cjs +0 -2
  16. package/dist/endpoints/NewsroomContacts/index.cjs +0 -2
  17. package/dist/endpoints/NewsroomDomains/index.cjs +0 -2
  18. package/dist/endpoints/NewsroomGalleries/index.cjs +0 -2
  19. package/dist/endpoints/NewsroomHub/index.cjs +0 -2
  20. package/dist/endpoints/NewsroomLanguages/index.cjs +0 -2
  21. package/dist/endpoints/NewsroomPrivacyRequests/index.cjs +0 -2
  22. package/dist/endpoints/NewsroomSubscriptions/index.cjs +0 -2
  23. package/dist/endpoints/NewsroomThemes/index.cjs +0 -1
  24. package/dist/endpoints/NewsroomWebhooks/index.cjs +0 -2
  25. package/dist/endpoints/Newsrooms/index.cjs +0 -2
  26. package/dist/endpoints/NotificationSubscriptions/index.cjs +0 -2
  27. package/dist/endpoints/PricingTables/index.cjs +0 -2
  28. package/dist/endpoints/PricingTables/types.cjs +9 -5
  29. package/dist/endpoints/SenderAddresses/index.cjs +0 -2
  30. package/dist/endpoints/Snippets/index.cjs +0 -2
  31. package/dist/endpoints/Stories/Client.cjs +4 -23
  32. package/dist/endpoints/Stories/Client.js +7 -22
  33. package/dist/endpoints/Stories/index.cjs +0 -3
  34. package/dist/endpoints/Stories/scopes.cjs +3 -2
  35. package/dist/endpoints/Stories/types.cjs +4 -14
  36. package/dist/endpoints/Stories/types.js +3 -13
  37. package/dist/endpoints/Subscriptions/index.cjs +0 -2
  38. package/dist/endpoints/Subscriptions/types.cjs +2 -1
  39. package/dist/endpoints/index.cjs +3 -3
  40. package/dist/http/constants.cjs +6 -3
  41. package/dist/http/index.cjs +8 -8
  42. package/dist/http/types.cjs +4 -2
  43. package/dist/index.cjs +4 -7
  44. package/dist/routing.cjs +3 -2
  45. package/dist/types/BillingCycle.cjs +2 -1
  46. package/dist/types/Campaign.cjs +2 -1
  47. package/dist/types/Category.cjs +2 -1
  48. package/dist/types/Contact.cjs +2 -1
  49. package/dist/types/ContactDuplicateSuggestion.cjs +2 -2
  50. package/dist/types/ContactsExport.cjs +2 -1
  51. package/dist/types/ContactsScope.cjs +2 -1
  52. package/dist/types/CoverageEntry.cjs +2 -1
  53. package/dist/types/Culture.cjs +2 -7
  54. package/dist/types/Culture.js +0 -6
  55. package/dist/types/Currency.cjs +2 -1
  56. package/dist/types/EmailRecipient.cjs +2 -1
  57. package/dist/types/JobState.cjs +2 -1
  58. package/dist/types/License.cjs +2 -1
  59. package/dist/types/License.d.ts +1 -0
  60. package/dist/types/Newsroom.cjs +2 -4
  61. package/dist/types/Newsroom.js +0 -3
  62. package/dist/types/NewsroomDomain.cjs +2 -1
  63. package/dist/types/NewsroomGallery.cjs +2 -1
  64. package/dist/types/NewsroomTheme.cjs +5 -3
  65. package/dist/types/NewsroomTheme.js +1 -1
  66. package/dist/types/NewsroomWebhook.cjs +2 -1
  67. package/dist/types/NotificationSubscription.cjs +2 -1
  68. package/dist/types/Permissions.cjs +2 -1
  69. package/dist/types/Plan.cjs +4 -3
  70. package/dist/types/PrivacyRequest.cjs +2 -1
  71. package/dist/types/SenderAddress.cjs +2 -1
  72. package/dist/types/SenderDomain.cjs +2 -1
  73. package/dist/types/SortOrder.cjs +2 -1
  74. package/dist/types/Story.cjs +6 -17
  75. package/dist/types/Story.js +4 -16
  76. package/dist/types/User.cjs +2 -1
  77. package/dist/types/common/Notification.cjs +2 -1
  78. package/dist/types/common/OEmbedInfo.cjs +2 -1
  79. package/dist/types/common/Pagination.cjs +2 -2
  80. package/dist/types/common/Query.cjs +2 -1
  81. package/dist/types/common/index.cjs +0 -6
  82. package/dist/types/index.cjs +0 -36
  83. package/package.json +1 -1
@@ -5,18 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.EXTENDED_STORY_INCLUDED_EXTRA_FIELDS = exports.ALL_EXTRA_FIELDS = void 0;
7
7
  var _index = require("../../types/index.cjs");
8
- /**
9
- * Uploadcare image JSON string.
10
- */
11
- /**
12
- * Raw HTML string.
13
- */
14
- /**
15
- * String-serialized JSON object.
16
- */
17
- /**
18
- * String containing Prezly Content Format JSON structure.
19
- */
20
8
  var Alignment = _index.Campaign.StoryAlignment;
21
9
  var Appearance = _index.Campaign.StoryAppearance;
22
10
  const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE = {
@@ -52,5 +40,7 @@ const ALL_EXTRA_FIELDS_SHAPE = {
52
40
  'pitches.count': true
53
41
  }; // satisfies Record<keyof Story.OnDemandFields, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
54
42
 
55
- const ALL_EXTRA_FIELDS = exports.ALL_EXTRA_FIELDS = Object.keys(ALL_EXTRA_FIELDS_SHAPE);
56
- const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS = exports.EXTENDED_STORY_INCLUDED_EXTRA_FIELDS = Object.keys(EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE);
43
+ const ALL_EXTRA_FIELDS = Object.keys(ALL_EXTRA_FIELDS_SHAPE);
44
+ exports.ALL_EXTRA_FIELDS = ALL_EXTRA_FIELDS;
45
+ const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS = Object.keys(EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE);
46
+ exports.EXTENDED_STORY_INCLUDED_EXTRA_FIELDS = EXTENDED_STORY_INCLUDED_EXTRA_FIELDS;
@@ -1,16 +1,6 @@
1
- import { Campaign } from "../../types/index.js";
2
- /**
3
- * Uploadcare image JSON string.
4
- */
5
- /**
6
- * Raw HTML string.
7
- */
8
- /**
9
- * String-serialized JSON object.
10
- */
11
- /**
12
- * String containing Prezly Content Format JSON structure.
13
- */
1
+ import { Campaign } from "../../types/index.js"; /**
2
+ * Uploadcare image JSON string.
3
+ */
14
4
  var Alignment = Campaign.StoryAlignment;
15
5
  var Appearance = Campaign.StoryAppearance;
16
6
  const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE = {
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  var _Client = require("./Client.cjs");
7
7
  Object.keys(_Client).forEach(function (key) {
8
8
  if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Client[key]) return;
10
9
  Object.defineProperty(exports, key, {
11
10
  enumerable: true,
12
11
  get: function () {
@@ -17,7 +16,6 @@ Object.keys(_Client).forEach(function (key) {
17
16
  var _types = require("./types.cjs");
18
17
  Object.keys(_types).forEach(function (key) {
19
18
  if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _types[key]) return;
21
19
  Object.defineProperty(exports, key, {
22
20
  enumerable: true,
23
21
  get: function () {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.UnsubscribeReason = void 0;
7
- let UnsubscribeReason = exports.UnsubscribeReason = void 0;
7
+ let UnsubscribeReason;
8
+ exports.UnsubscribeReason = UnsubscribeReason;
8
9
  (function (UnsubscribeReason) {
9
10
  UnsubscribeReason["UNKNOWN"] = "unknown";
10
11
  UnsubscribeReason["UNWANTED"] = "unwanted";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Subscriptions = exports.Stories = exports.Snippets = exports.SenderAddresses = exports.PricingTables = exports.NotificationSubscriptions = exports.Newsrooms = exports.NewsroomWebhooks = exports.NewsroomThemes = exports.NewsroomSubscriptions = exports.NewsroomPrivacyRequests = exports.NewsroomLanguages = exports.NewsroomHub = exports.NewsroomGalleries = exports.NewsroomDomains = exports.NewsroomContacts = exports.NewsroomCategories = exports.Licenses = exports.Jobs = exports.Coverage = exports.ContactsExports = exports.Contacts = exports.Campaigns = exports.CampaignRecipients = exports.Billing = exports.Accounts = void 0;
6
+ exports.NotificationSubscriptions = exports.Subscriptions = exports.Stories = exports.Snippets = exports.SenderAddresses = exports.PricingTables = exports.NewsroomWebhooks = exports.NewsroomThemes = exports.NewsroomSubscriptions = exports.Newsrooms = exports.NewsroomPrivacyRequests = exports.NewsroomLanguages = exports.NewsroomHub = exports.NewsroomGalleries = exports.NewsroomDomains = exports.NewsroomContacts = exports.NewsroomCategories = exports.Licenses = exports.Jobs = exports.Coverage = exports.ContactsExports = exports.Contacts = exports.Campaigns = exports.CampaignRecipients = exports.Billing = exports.Accounts = void 0;
7
7
  var _Accounts = _interopRequireWildcard(require("./Accounts/index.cjs"));
8
8
  exports.Accounts = _Accounts;
9
9
  var _Billing = _interopRequireWildcard(require("./Billing/index.cjs"));
@@ -56,5 +56,5 @@ var _Subscriptions = _interopRequireWildcard(require("./Subscriptions/index.cjs"
56
56
  exports.Subscriptions = _Subscriptions;
57
57
  var _NotificationSubscriptions = _interopRequireWildcard(require("./NotificationSubscriptions/index.cjs"));
58
58
  exports.NotificationSubscriptions = _NotificationSubscriptions;
59
- 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); }
60
- 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 && Object.prototype.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; }
59
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
60
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.NETWORK_PROBLEM_ERROR_MESSAGE = exports.INVALID_URL_ERROR_MESSAGE = exports.CONTENT_TYPE = void 0;
7
- const CONTENT_TYPE = exports.CONTENT_TYPE = 'application/json;charset=utf-8';
8
- const INVALID_URL_ERROR_MESSAGE = exports.INVALID_URL_ERROR_MESSAGE = 'Invalid URL provided';
9
- const NETWORK_PROBLEM_ERROR_MESSAGE = exports.NETWORK_PROBLEM_ERROR_MESSAGE = 'Network problem';
7
+ const CONTENT_TYPE = 'application/json;charset=utf-8';
8
+ exports.CONTENT_TYPE = CONTENT_TYPE;
9
+ const INVALID_URL_ERROR_MESSAGE = 'Invalid URL provided';
10
+ exports.INVALID_URL_ERROR_MESSAGE = INVALID_URL_ERROR_MESSAGE;
11
+ const NETWORK_PROBLEM_ERROR_MESSAGE = 'Network problem';
12
+ exports.NETWORK_PROBLEM_ERROR_MESSAGE = NETWORK_PROBLEM_ERROR_MESSAGE;
@@ -9,28 +9,28 @@ Object.defineProperty(exports, "ApiError", {
9
9
  return _ApiError.ApiError;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "HttpCodes", {
12
+ Object.defineProperty(exports, "createHttpClient", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _types.HttpCodes;
15
+ return _HttpClient.createHttpClient;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "Method", {
18
+ Object.defineProperty(exports, "isDeferredJobResponse", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _types.Method;
21
+ return _lib.isDeferredJobResponse;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "createHttpClient", {
24
+ Object.defineProperty(exports, "HttpCodes", {
25
25
  enumerable: true,
26
26
  get: function () {
27
- return _HttpClient.createHttpClient;
27
+ return _types.HttpCodes;
28
28
  }
29
29
  });
30
- Object.defineProperty(exports, "isDeferredJobResponse", {
30
+ Object.defineProperty(exports, "Method", {
31
31
  enumerable: true,
32
32
  get: function () {
33
- return _lib.isDeferredJobResponse;
33
+ return _types.Method;
34
34
  }
35
35
  });
36
36
  var _ApiError = require("./ApiError.cjs");
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Method = exports.HttpCodes = void 0;
7
- let HttpCodes = exports.HttpCodes = void 0;
7
+ let HttpCodes;
8
+ exports.HttpCodes = HttpCodes;
8
9
  (function (HttpCodes) {
9
10
  HttpCodes[HttpCodes["ACCEPTED"] = 202] = "ACCEPTED";
10
11
  HttpCodes[HttpCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
@@ -13,7 +14,8 @@ let HttpCodes = exports.HttpCodes = void 0;
13
14
  HttpCodes[HttpCodes["GONE"] = 410] = "GONE";
14
15
  HttpCodes[HttpCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
15
16
  })(HttpCodes || (exports.HttpCodes = HttpCodes = {}));
16
- let Method = exports.Method = void 0;
17
+ let Method;
18
+ exports.Method = Method;
17
19
  (function (Method) {
18
20
  Method["DELETE"] = "DELETE";
19
21
  Method["GET"] = "GET";
package/dist/index.cjs CHANGED
@@ -7,23 +7,22 @@ var _exportNames = {
7
7
  createPrezlyClient: true,
8
8
  ApiError: true
9
9
  };
10
- Object.defineProperty(exports, "ApiError", {
10
+ Object.defineProperty(exports, "createPrezlyClient", {
11
11
  enumerable: true,
12
12
  get: function () {
13
- return _index.ApiError;
13
+ return _Client.createClient;
14
14
  }
15
15
  });
16
- Object.defineProperty(exports, "createPrezlyClient", {
16
+ Object.defineProperty(exports, "ApiError", {
17
17
  enumerable: true,
18
18
  get: function () {
19
- return _Client.createClient;
19
+ return _index.ApiError;
20
20
  }
21
21
  });
22
22
  var _uploads = require("@prezly/uploads");
23
23
  Object.keys(_uploads).forEach(function (key) {
24
24
  if (key === "default" || key === "__esModule") return;
25
25
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
26
- if (key in exports && exports[key] === _uploads[key]) return;
27
26
  Object.defineProperty(exports, key, {
28
27
  enumerable: true,
29
28
  get: function () {
@@ -37,7 +36,6 @@ var _index2 = require("./endpoints/index.cjs");
37
36
  Object.keys(_index2).forEach(function (key) {
38
37
  if (key === "default" || key === "__esModule") return;
39
38
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
40
- if (key in exports && exports[key] === _index2[key]) return;
41
39
  Object.defineProperty(exports, key, {
42
40
  enumerable: true,
43
41
  get: function () {
@@ -49,7 +47,6 @@ var _index3 = require("./types/index.cjs");
49
47
  Object.keys(_index3).forEach(function (key) {
50
48
  if (key === "default" || key === "__esModule") return;
51
49
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
52
- if (key in exports && exports[key] === _index3[key]) return;
53
50
  Object.defineProperty(exports, key, {
54
51
  enumerable: true,
55
52
  get: function () {
package/dist/routing.cjs CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.routing = void 0;
7
- const routing = exports.routing = {
7
+ const routing = {
8
8
  accounts: '/v2/accounts',
9
9
  billing: 'v2/billing',
10
10
  campaignsUrl: '/v2/campaigns',
@@ -37,4 +37,5 @@ const routing = exports.routing = {
37
37
  storiesSearchUrl: '/v2/stories/search',
38
38
  storyCoverageUrl: '/v1/stories/:story_id/reports/coverage',
39
39
  snippetsUrl: '/v2/snippets'
40
- };
40
+ };
41
+ exports.routing = routing;
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.BillingCycle = void 0;
7
- let BillingCycle = exports.BillingCycle = void 0;
7
+ let BillingCycle;
8
+ exports.BillingCycle = BillingCycle;
8
9
  (function (BillingCycle) {
9
10
  BillingCycle["YEAR"] = "year";
10
11
  BillingCycle["MONTH"] = "month";
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Campaign = void 0;
7
7
  var _SenderDomain = require("./SenderDomain.cjs");
8
- let Campaign = exports.Campaign = void 0;
8
+ let Campaign;
9
+ exports.Campaign = Campaign;
9
10
  (function (_Campaign) {
10
11
  const SenderDomainVerificationFlow = _Campaign.SenderDomainVerificationFlow = _SenderDomain.SenderDomain.VerificationFlowVersion;
11
12
  let LifecycleStatus;
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Category = void 0;
7
- let Category = exports.Category = void 0;
7
+ let Category;
8
+ exports.Category = Category;
8
9
  (function (_Category) {
9
10
  function isTranslated(category, locale) {
10
11
  const translation = category.i18n[localeCode(locale)];
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Contact = void 0;
7
- let Contact = exports.Contact = void 0;
7
+ let Contact;
8
+ exports.Contact = Contact;
8
9
  (function (_Contact) {
9
10
  let Type;
10
11
  (function (Type) {
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ContactDuplicateSuggestion = void 0;
7
7
  /**
8
8
  * Value in range 0.0 ... 1.0.
9
- */
10
- let ContactDuplicateSuggestion = exports.ContactDuplicateSuggestion = void 0;
9
+ */let ContactDuplicateSuggestion;
10
+ exports.ContactDuplicateSuggestion = ContactDuplicateSuggestion;
11
11
  (function (_ContactDuplicateSuggestion) {
12
12
  let Status;
13
13
  (function (Status) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ContactsExport = void 0;
7
- let ContactsExport = exports.ContactsExport = void 0;
7
+ let ContactsExport;
8
+ exports.ContactsExport = ContactsExport;
8
9
  (function (_ContactsExport) {
9
10
  let Status;
10
11
  (function (Status) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ContactsScope = void 0;
7
- let ContactsScope = exports.ContactsScope = void 0;
7
+ let ContactsScope;
8
+ exports.ContactsScope = ContactsScope;
8
9
  (function (_ContactsScope) {
9
10
  let Type;
10
11
  (function (Type) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CoverageEntry = void 0;
7
- let CoverageEntry = exports.CoverageEntry = void 0;
7
+ let CoverageEntry;
8
+ exports.CoverageEntry = CoverageEntry;
8
9
  (function (_CoverageEntry) {
9
10
  let Type;
10
11
  (function (Type) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Culture = void 0;
7
- let Culture = exports.Culture = void 0;
7
+ let Culture;
8
+ exports.Culture = Culture;
8
9
  (function (_Culture) {
9
10
  let TextDirection;
10
11
  (function (TextDirection) {
@@ -12,12 +13,6 @@ let Culture = exports.Culture = void 0;
12
13
  TextDirection["RTL"] = "rtl";
13
14
  })(TextDirection || (TextDirection = {}));
14
15
  _Culture.TextDirection = TextDirection;
15
- /**
16
- * Primary locale code used everywhere in the Prezly app.
17
- */
18
- /**
19
- * Locale ISO code to be used in HTML attributes.
20
- */
21
16
  function isoCode(code) {
22
17
  return code.replace('_', '-');
23
18
  }
@@ -6,12 +6,6 @@ export let Culture;
6
6
  TextDirection["RTL"] = "rtl";
7
7
  })(TextDirection || (TextDirection = {}));
8
8
  _Culture.TextDirection = TextDirection;
9
- /**
10
- * Primary locale code used everywhere in the Prezly app.
11
- */
12
- /**
13
- * Locale ISO code to be used in HTML attributes.
14
- */
15
9
  function isoCode(code) {
16
10
  return code.replace('_', '-');
17
11
  }
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Currency = void 0;
7
- let Currency = exports.Currency = void 0;
7
+ let Currency;
8
+ exports.Currency = Currency;
8
9
  (function (Currency) {
9
10
  Currency["EUR"] = "eur";
10
11
  Currency["USD"] = "usd";
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.EmailRecipient = void 0;
7
- let EmailRecipient = exports.EmailRecipient = void 0;
7
+ let EmailRecipient;
8
+ exports.EmailRecipient = EmailRecipient;
8
9
  (function (_EmailRecipient) {
9
10
  let EmailAddressStatus;
10
11
  (function (EmailAddressStatus) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JobStatus = void 0;
7
- let JobStatus = exports.JobStatus = void 0;
7
+ let JobStatus;
8
+ exports.JobStatus = JobStatus;
8
9
  (function (JobStatus) {
9
10
  JobStatus["PENDING"] = "pending";
10
11
  JobStatus["RESOLVED"] = "resolved";
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.License = void 0;
7
- let License = exports.License = void 0;
7
+ let License;
8
+ exports.License = License;
8
9
  (function (_License) {
9
10
  let Type;
10
11
  (function (Type) {
@@ -65,6 +65,7 @@ export interface License extends LicenseRef {
65
65
  plan: PlanReference | null;
66
66
  status: License.Status;
67
67
  subscription_lockout: boolean;
68
+ is_auto_renew_enabled: boolean;
68
69
  /**
69
70
  * Tax rate percent as a full number. (e.g. 21)
70
71
  */
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Newsroom = void 0;
7
- let Newsroom = exports.Newsroom = void 0;
7
+ let Newsroom;
8
+ exports.Newsroom = Newsroom;
8
9
  (function (_Newsroom) {
9
10
  let Status;
10
11
  (function (Status) {
@@ -26,9 +27,6 @@ let Newsroom = exports.Newsroom = void 0;
26
27
  TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
27
28
  })(TrackingPolicy || (TrackingPolicy = {}));
28
29
  _Newsroom.TrackingPolicy = TrackingPolicy;
29
- /*
30
- * Status checks
31
- */
32
30
  function isActive(arg) {
33
31
  if (typeof arg === 'object' && arg !== null) {
34
32
  return isActive(arg.status);
@@ -20,9 +20,6 @@ export let Newsroom;
20
20
  TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
21
21
  })(TrackingPolicy || (TrackingPolicy = {}));
22
22
  _Newsroom.TrackingPolicy = TrackingPolicy;
23
- /*
24
- * Status checks
25
- */
26
23
  function isActive(arg) {
27
24
  if (typeof arg === 'object' && arg !== null) {
28
25
  return isActive(arg.status);
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.NewsroomDomain = void 0;
7
- let NewsroomDomain = exports.NewsroomDomain = void 0;
7
+ let NewsroomDomain;
8
+ exports.NewsroomDomain = NewsroomDomain;
8
9
  (function (_NewsroomDomain) {
9
10
  let Type;
10
11
  (function (Type) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.NewsroomGallery = void 0;
7
- let NewsroomGallery = exports.NewsroomGallery = void 0;
7
+ let NewsroomGallery;
8
+ exports.NewsroomGallery = NewsroomGallery;
8
9
  (function (_NewsroomGallery) {
9
10
  let Status;
10
11
  (function (Status) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.NewsroomThemePreset = exports.NewsroomTheme = void 0;
7
- let NewsroomTheme = exports.NewsroomTheme = void 0;
7
+ let NewsroomTheme;
8
+ exports.NewsroomTheme = NewsroomTheme;
8
9
  (function (_NewsroomTheme) {
9
10
  let Status;
10
11
  (function (Status) {
@@ -12,7 +13,7 @@ let NewsroomTheme = exports.NewsroomTheme = void 0;
12
13
  Status["STABLE"] = "stable";
13
14
  })(Status || (Status = {}));
14
15
  _NewsroomTheme.Status = Status;
15
- let Feature; // DEV-11475
16
+ let Feature;
16
17
  (function (Feature) {
17
18
  Feature["CATEGORIES"] = "categories";
18
19
  Feature["SEARCH"] = "search";
@@ -36,5 +37,6 @@ let NewsroomTheme = exports.NewsroomTheme = void 0;
36
37
  }
37
38
  _NewsroomTheme.isFeatureSupported = isFeatureSupported;
38
39
  })(NewsroomTheme || (exports.NewsroomTheme = NewsroomTheme = {}));
39
- let NewsroomThemePreset = exports.NewsroomThemePreset = void 0;
40
+ let NewsroomThemePreset;
41
+ exports.NewsroomThemePreset = NewsroomThemePreset;
40
42
  (function (_NewsroomThemePreset) {})(NewsroomThemePreset || (exports.NewsroomThemePreset = NewsroomThemePreset = {}));
@@ -6,7 +6,7 @@ export let NewsroomTheme;
6
6
  Status["STABLE"] = "stable";
7
7
  })(Status || (Status = {}));
8
8
  _NewsroomTheme.Status = Status;
9
- let Feature; // DEV-11475
9
+ let Feature;
10
10
  (function (Feature) {
11
11
  Feature["CATEGORIES"] = "categories";
12
12
  Feature["SEARCH"] = "search";
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.NewsroomWebhook = void 0;
7
- let NewsroomWebhook = exports.NewsroomWebhook = void 0;
7
+ let NewsroomWebhook;
8
+ exports.NewsroomWebhook = NewsroomWebhook;
8
9
  (function (_NewsroomWebhook) {
9
10
  let Event;
10
11
  (function (Event) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.NotificationSubscription = void 0;
7
- let NotificationSubscription = exports.NotificationSubscription = void 0;
7
+ let NotificationSubscription;
8
+ exports.NotificationSubscription = NotificationSubscription;
8
9
  (function (_NotificationSubscription) {
9
10
  let Area;
10
11
  (function (Area) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Permission = void 0;
7
- let Permission = exports.Permission = void 0;
7
+ let Permission;
8
+ exports.Permission = Permission;
8
9
  (function (Permission) {
9
10
  Permission["CREATE_NEWSROOM"] = "create_newsroom";
10
11
  Permission["EXPORT_CONTACTS"] = "export_contacts";
@@ -4,14 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.PlanLevel = exports.ChangeType = void 0;
7
- let ChangeType = exports.ChangeType = void 0;
8
- /** @deprecated Will be dropped in future */
7
+ let ChangeType; /** @deprecated Will be dropped in future */
8
+ exports.ChangeType = ChangeType;
9
9
  (function (ChangeType) {
10
10
  ChangeType["ACTIVATION"] = "activation";
11
11
  ChangeType["UPGRADE"] = "upgrade";
12
12
  ChangeType["DOWNGRADE"] = "downgrade";
13
13
  })(ChangeType || (exports.ChangeType = ChangeType = {}));
14
- let PlanLevel = exports.PlanLevel = void 0;
14
+ let PlanLevel;
15
+ exports.PlanLevel = PlanLevel;
15
16
  (function (PlanLevel) {
16
17
  PlanLevel["BASIC"] = "basic";
17
18
  PlanLevel["CORE"] = "core";
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.PrivacyRequest = void 0;
7
- let PrivacyRequest = exports.PrivacyRequest = void 0;
7
+ let PrivacyRequest;
8
+ exports.PrivacyRequest = PrivacyRequest;
8
9
  (function (_PrivacyRequest) {
9
10
  let Type;
10
11
  (function (Type) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SenderAddress = void 0;
7
- let SenderAddress = exports.SenderAddress = void 0;
7
+ let SenderAddress;
8
+ exports.SenderAddress = SenderAddress;
8
9
  (function (_SenderAddress) {
9
10
  let Type;
10
11
  (function (Type) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SenderDomain = void 0;
7
- let SenderDomain = exports.SenderDomain = void 0;
7
+ let SenderDomain;
8
+ exports.SenderDomain = SenderDomain;
8
9
  (function (_SenderDomain) {
9
10
  let VerificationFlowVersion;
10
11
  (function (VerificationFlowVersion) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SortOrder = void 0;
7
- let SortOrder = exports.SortOrder = void 0;
7
+ let SortOrder;
8
+ exports.SortOrder = SortOrder;
8
9
  (function (_SortOrder) {
9
10
  let Direction;
10
11
  (function (Direction) {