@prezly/sdk 19.7.0 → 19.8.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 (114) 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 +9 -7
  8. package/dist/endpoints/Billing/types.js +6 -6
  9. package/dist/endpoints/CampaignRecipients/index.cjs +0 -2
  10. package/dist/endpoints/Campaigns/index.cjs +0 -2
  11. package/dist/endpoints/Contacts/index.cjs +0 -2
  12. package/dist/endpoints/ContactsExports/index.cjs +0 -2
  13. package/dist/endpoints/Coverage/index.cjs +0 -2
  14. package/dist/endpoints/Jobs/index.cjs +0 -2
  15. package/dist/endpoints/Licenses/index.cjs +0 -1
  16. package/dist/endpoints/NewsroomCategories/index.cjs +0 -2
  17. package/dist/endpoints/NewsroomContacts/index.cjs +0 -2
  18. package/dist/endpoints/NewsroomDomains/index.cjs +0 -2
  19. package/dist/endpoints/NewsroomGalleries/index.cjs +0 -2
  20. package/dist/endpoints/NewsroomHub/index.cjs +0 -2
  21. package/dist/endpoints/NewsroomLanguages/index.cjs +0 -2
  22. package/dist/endpoints/NewsroomPrivacyRequests/index.cjs +0 -2
  23. package/dist/endpoints/NewsroomSubscriptions/index.cjs +0 -2
  24. package/dist/endpoints/NewsroomThemes/index.cjs +0 -1
  25. package/dist/endpoints/NewsroomWebhooks/index.cjs +0 -2
  26. package/dist/endpoints/Newsrooms/index.cjs +0 -2
  27. package/dist/endpoints/NotificationSubscriptions/index.cjs +0 -2
  28. package/dist/endpoints/PricingTables/index.cjs +0 -2
  29. package/dist/endpoints/PricingTables/types.cjs +17 -13
  30. package/dist/endpoints/PricingTables/types.js +12 -12
  31. package/dist/endpoints/SenderAddresses/index.cjs +0 -2
  32. package/dist/endpoints/Snippets/index.cjs +0 -2
  33. package/dist/endpoints/Stories/Client.cjs +4 -23
  34. package/dist/endpoints/Stories/Client.js +7 -22
  35. package/dist/endpoints/Stories/index.cjs +0 -3
  36. package/dist/endpoints/Stories/scopes.cjs +3 -2
  37. package/dist/endpoints/Stories/types.cjs +4 -14
  38. package/dist/endpoints/Stories/types.js +3 -13
  39. package/dist/endpoints/Subscriptions/index.cjs +0 -2
  40. package/dist/endpoints/Subscriptions/types.cjs +4 -3
  41. package/dist/endpoints/Subscriptions/types.d.ts +5 -0
  42. package/dist/endpoints/Subscriptions/types.js +3 -3
  43. package/dist/endpoints/index.cjs +3 -3
  44. package/dist/http/constants.cjs +6 -3
  45. package/dist/http/index.cjs +8 -8
  46. package/dist/http/types.cjs +8 -6
  47. package/dist/http/types.js +6 -6
  48. package/dist/index.cjs +4 -7
  49. package/dist/routing.cjs +3 -2
  50. package/dist/types/BillingCycle.cjs +4 -3
  51. package/dist/types/BillingCycle.js +3 -3
  52. package/dist/types/Campaign.cjs +20 -19
  53. package/dist/types/Campaign.js +18 -18
  54. package/dist/types/Category.cjs +2 -1
  55. package/dist/types/Contact.cjs +20 -19
  56. package/dist/types/Contact.js +18 -18
  57. package/dist/types/ContactDuplicateSuggestion.cjs +5 -5
  58. package/dist/types/ContactDuplicateSuggestion.js +4 -3
  59. package/dist/types/ContactsExport.cjs +5 -4
  60. package/dist/types/ContactsExport.js +3 -3
  61. package/dist/types/ContactsScope.cjs +5 -4
  62. package/dist/types/ContactsScope.js +3 -3
  63. package/dist/types/CoverageEntry.cjs +8 -7
  64. package/dist/types/CoverageEntry.js +6 -6
  65. package/dist/types/Culture.cjs +5 -10
  66. package/dist/types/Culture.js +3 -9
  67. package/dist/types/Currency.cjs +4 -3
  68. package/dist/types/Currency.js +3 -3
  69. package/dist/types/EmailRecipient.cjs +5 -4
  70. package/dist/types/EmailRecipient.js +3 -3
  71. package/dist/types/EmailSubscription.d.ts +2 -0
  72. package/dist/types/JobState.cjs +4 -3
  73. package/dist/types/JobState.js +3 -3
  74. package/dist/types/License.cjs +11 -10
  75. package/dist/types/License.js +9 -9
  76. package/dist/types/Newsroom.cjs +14 -16
  77. package/dist/types/Newsroom.js +12 -15
  78. package/dist/types/NewsroomDomain.cjs +8 -7
  79. package/dist/types/NewsroomDomain.js +6 -6
  80. package/dist/types/NewsroomGallery.cjs +8 -7
  81. package/dist/types/NewsroomGallery.js +6 -6
  82. package/dist/types/NewsroomTheme.cjs +11 -8
  83. package/dist/types/NewsroomTheme.js +8 -7
  84. package/dist/types/NewsroomWebhook.cjs +5 -4
  85. package/dist/types/NewsroomWebhook.js +3 -3
  86. package/dist/types/NotificationSubscription.cjs +5 -4
  87. package/dist/types/NotificationSubscription.js +3 -3
  88. package/dist/types/Permissions.cjs +4 -3
  89. package/dist/types/Permissions.js +3 -3
  90. package/dist/types/Plan.cjs +8 -7
  91. package/dist/types/Plan.js +8 -8
  92. package/dist/types/PrivacyRequest.cjs +8 -7
  93. package/dist/types/PrivacyRequest.js +6 -6
  94. package/dist/types/SenderAddress.cjs +5 -4
  95. package/dist/types/SenderAddress.js +3 -3
  96. package/dist/types/SenderDomain.cjs +5 -4
  97. package/dist/types/SenderDomain.js +3 -3
  98. package/dist/types/SortOrder.cjs +5 -4
  99. package/dist/types/SortOrder.js +3 -3
  100. package/dist/types/Story.cjs +18 -29
  101. package/dist/types/Story.js +16 -28
  102. package/dist/types/User.cjs +8 -7
  103. package/dist/types/User.js +6 -6
  104. package/dist/types/common/Notification.cjs +5 -4
  105. package/dist/types/common/Notification.js +3 -3
  106. package/dist/types/common/OEmbedInfo.cjs +5 -4
  107. package/dist/types/common/OEmbedInfo.js +3 -3
  108. package/dist/types/common/Pagination.cjs +4 -4
  109. package/dist/types/common/Pagination.js +3 -3
  110. package/dist/types/common/Query.cjs +2 -1
  111. package/dist/types/common/Query.js +1 -0
  112. package/dist/types/common/index.cjs +0 -6
  113. package/dist/types/index.cjs +0 -37
  114. package/package.json +1 -1
@@ -1,35 +1,32 @@
1
1
  export let Newsroom;
2
2
  (function (_Newsroom) {
3
- let Status = /*#__PURE__*/function (Status) {
3
+ let Status;
4
+ (function (Status) {
4
5
  Status["ACTIVE"] = "active";
5
6
  Status["INACTIVE"] = "inactive";
6
7
  Status["ARCHIVED"] = "archived";
7
- return Status;
8
- }({});
8
+ })(Status || (Status = {}));
9
9
  _Newsroom.Status = Status;
10
- let EmailBrandingMode = /*#__PURE__*/function (EmailBrandingMode) {
10
+ let EmailBrandingMode;
11
+ (function (EmailBrandingMode) {
11
12
  EmailBrandingMode["DEFAULT"] = "default";
12
13
  EmailBrandingMode["CUSTOM"] = "custom";
13
- return EmailBrandingMode;
14
- }({});
14
+ })(EmailBrandingMode || (EmailBrandingMode = {}));
15
15
  _Newsroom.EmailBrandingMode = EmailBrandingMode;
16
- let TrackingPolicy = /*#__PURE__*/function (TrackingPolicy) {
16
+ let TrackingPolicy;
17
+ (function (TrackingPolicy) {
17
18
  TrackingPolicy["DEFAULT"] = "default";
18
19
  TrackingPolicy["DISABLED"] = "disabled";
19
20
  TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
20
- return TrackingPolicy;
21
- }({});
21
+ })(TrackingPolicy || (TrackingPolicy = {}));
22
22
  _Newsroom.TrackingPolicy = TrackingPolicy;
23
- let EmailLogoAlignment = /*#__PURE__*/function (EmailLogoAlignment) {
23
+ let EmailLogoAlignment;
24
+ (function (EmailLogoAlignment) {
24
25
  EmailLogoAlignment["LEFT"] = "left";
25
26
  EmailLogoAlignment["CENTER"] = "center";
26
27
  EmailLogoAlignment["RIGHT"] = "right";
27
- return EmailLogoAlignment;
28
- }({});
28
+ })(EmailLogoAlignment || (EmailLogoAlignment = {}));
29
29
  _Newsroom.EmailLogoAlignment = EmailLogoAlignment;
30
- /*
31
- * Status checks
32
- */
33
30
  function isActive(arg) {
34
31
  if (typeof arg === 'object' && arg !== null) {
35
32
  return isActive(arg.status);
@@ -4,20 +4,21 @@ 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
- let Type = /*#__PURE__*/function (Type) {
10
+ let Type;
11
+ (function (Type) {
10
12
  Type["PREZLY"] = "prezly";
11
13
  Type["CUSTOM"] = "custom";
12
14
  Type["REVERSE_PROXY"] = "reverse_proxy";
13
- return Type;
14
- }({});
15
+ })(Type || (Type = {}));
15
16
  _NewsroomDomain.Type = Type;
16
- let Status = /*#__PURE__*/function (Status) {
17
+ let Status;
18
+ (function (Status) {
17
19
  Status["ACTIVE"] = "active";
18
20
  Status["INACTIVE"] = "inactive";
19
21
  Status["REDIRECT"] = "redirect";
20
- return Status;
21
- }({});
22
+ })(Status || (Status = {}));
22
23
  _NewsroomDomain.Status = Status;
23
24
  })(NewsroomDomain || (exports.NewsroomDomain = NewsroomDomain = {}));
@@ -1,17 +1,17 @@
1
1
  export let NewsroomDomain;
2
2
  (function (_NewsroomDomain) {
3
- let Type = /*#__PURE__*/function (Type) {
3
+ let Type;
4
+ (function (Type) {
4
5
  Type["PREZLY"] = "prezly";
5
6
  Type["CUSTOM"] = "custom";
6
7
  Type["REVERSE_PROXY"] = "reverse_proxy";
7
- return Type;
8
- }({});
8
+ })(Type || (Type = {}));
9
9
  _NewsroomDomain.Type = Type;
10
- let Status = /*#__PURE__*/function (Status) {
10
+ let Status;
11
+ (function (Status) {
11
12
  Status["ACTIVE"] = "active";
12
13
  Status["INACTIVE"] = "inactive";
13
14
  Status["REDIRECT"] = "redirect";
14
- return Status;
15
- }({});
15
+ })(Status || (Status = {}));
16
16
  _NewsroomDomain.Status = Status;
17
17
  })(NewsroomDomain || (NewsroomDomain = {}));
@@ -4,18 +4,19 @@ 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
- let Status = /*#__PURE__*/function (Status) {
10
+ let Status;
11
+ (function (Status) {
10
12
  Status["PRIVATE"] = "private";
11
13
  Status["PUBLIC"] = "public";
12
- return Status;
13
- }({});
14
+ })(Status || (Status = {}));
14
15
  _NewsroomGallery.Status = Status;
15
- let Type = /*#__PURE__*/function (Type) {
16
+ let Type;
17
+ (function (Type) {
16
18
  Type["IMAGE"] = "image";
17
19
  Type["VIDEO"] = "video";
18
- return Type;
19
- }({});
20
+ })(Type || (Type = {}));
20
21
  _NewsroomGallery.Type = Type;
21
22
  })(NewsroomGallery || (exports.NewsroomGallery = NewsroomGallery = {}));
@@ -1,15 +1,15 @@
1
1
  export let NewsroomGallery;
2
2
  (function (_NewsroomGallery) {
3
- let Status = /*#__PURE__*/function (Status) {
3
+ let Status;
4
+ (function (Status) {
4
5
  Status["PRIVATE"] = "private";
5
6
  Status["PUBLIC"] = "public";
6
- return Status;
7
- }({});
7
+ })(Status || (Status = {}));
8
8
  _NewsroomGallery.Status = Status;
9
- let Type = /*#__PURE__*/function (Type) {
9
+ let Type;
10
+ (function (Type) {
10
11
  Type["IMAGE"] = "image";
11
12
  Type["VIDEO"] = "video";
12
- return Type;
13
- }({});
13
+ })(Type || (Type = {}));
14
14
  _NewsroomGallery.Type = Type;
15
15
  })(NewsroomGallery || (NewsroomGallery = {}));
@@ -4,15 +4,17 @@ 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
- let Status = /*#__PURE__*/function (Status) {
10
+ let Status;
11
+ (function (Status) {
10
12
  Status["BETA"] = "beta";
11
13
  Status["STABLE"] = "stable";
12
- return Status;
13
- }({});
14
+ })(Status || (Status = {}));
14
15
  _NewsroomTheme.Status = Status;
15
- let Feature = /*#__PURE__*/function (Feature) {
16
+ let Feature;
17
+ (function (Feature) {
16
18
  Feature["CATEGORIES"] = "categories";
17
19
  Feature["SEARCH"] = "search";
18
20
  Feature["MEDIA_GALLERIES"] = "media_galleries";
@@ -28,12 +30,13 @@ let NewsroomTheme = exports.NewsroomTheme = void 0;
28
30
  Feature["CTA_BUTTONS"] = "cta_buttons";
29
31
  Feature["VIDEO_LAYOUT"] = "video_layout";
30
32
  Feature["EMBED_LAYOUT"] = "embed_layout";
31
- return Feature;
32
- }({}); // DEV-11475
33
+ })(Feature || (Feature = {}));
33
34
  _NewsroomTheme.Feature = Feature;
34
35
  function isFeatureSupported(theme, feature) {
35
36
  return theme.features.includes(feature);
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;
42
+ (function (_NewsroomThemePreset) {})(NewsroomThemePreset || (exports.NewsroomThemePreset = NewsroomThemePreset = {}));
@@ -1,12 +1,13 @@
1
1
  export let NewsroomTheme;
2
2
  (function (_NewsroomTheme) {
3
- let Status = /*#__PURE__*/function (Status) {
3
+ let Status;
4
+ (function (Status) {
4
5
  Status["BETA"] = "beta";
5
6
  Status["STABLE"] = "stable";
6
- return Status;
7
- }({});
7
+ })(Status || (Status = {}));
8
8
  _NewsroomTheme.Status = Status;
9
- let Feature = /*#__PURE__*/function (Feature) {
9
+ let Feature;
10
+ (function (Feature) {
10
11
  Feature["CATEGORIES"] = "categories";
11
12
  Feature["SEARCH"] = "search";
12
13
  Feature["MEDIA_GALLERIES"] = "media_galleries";
@@ -22,12 +23,12 @@ export let NewsroomTheme;
22
23
  Feature["CTA_BUTTONS"] = "cta_buttons";
23
24
  Feature["VIDEO_LAYOUT"] = "video_layout";
24
25
  Feature["EMBED_LAYOUT"] = "embed_layout";
25
- return Feature;
26
- }({}); // DEV-11475
26
+ })(Feature || (Feature = {}));
27
27
  _NewsroomTheme.Feature = Feature;
28
28
  function isFeatureSupported(theme, feature) {
29
29
  return theme.features.includes(feature);
30
30
  }
31
31
  _NewsroomTheme.isFeatureSupported = isFeatureSupported;
32
32
  })(NewsroomTheme || (NewsroomTheme = {}));
33
- export let NewsroomThemePreset;
33
+ export let NewsroomThemePreset;
34
+ (function (_NewsroomThemePreset) {})(NewsroomThemePreset || (NewsroomThemePreset = {}));
@@ -4,16 +4,17 @@ 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
- let Event = /*#__PURE__*/function (Event) {
10
+ let Event;
11
+ (function (Event) {
10
12
  Event["STORY_CREATED"] = "story.created";
11
13
  Event["STORY_UPDATED"] = "story.updated";
12
14
  Event["STORY_DELETED"] = "story.deleted";
13
15
  Event["CATEGORY_CREATED"] = "category.created";
14
16
  Event["CATEGORY_UPDATED"] = "category.updated";
15
17
  Event["CATEGORY_DELETED"] = "category.deleted";
16
- return Event;
17
- }({});
18
+ })(Event || (Event = {}));
18
19
  _NewsroomWebhook.Event = Event;
19
20
  })(NewsroomWebhook || (exports.NewsroomWebhook = NewsroomWebhook = {}));
@@ -1,13 +1,13 @@
1
1
  export let NewsroomWebhook;
2
2
  (function (_NewsroomWebhook) {
3
- let Event = /*#__PURE__*/function (Event) {
3
+ let Event;
4
+ (function (Event) {
4
5
  Event["STORY_CREATED"] = "story.created";
5
6
  Event["STORY_UPDATED"] = "story.updated";
6
7
  Event["STORY_DELETED"] = "story.deleted";
7
8
  Event["CATEGORY_CREATED"] = "category.created";
8
9
  Event["CATEGORY_UPDATED"] = "category.updated";
9
10
  Event["CATEGORY_DELETED"] = "category.deleted";
10
- return Event;
11
- }({});
11
+ })(Event || (Event = {}));
12
12
  _NewsroomWebhook.Event = Event;
13
13
  })(NewsroomWebhook || (NewsroomWebhook = {}));
@@ -4,14 +4,15 @@ 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
- let Area = /*#__PURE__*/function (Area) {
10
+ let Area;
11
+ (function (Area) {
10
12
  Area["CAMPAIGNS"] = "Campaigns";
11
13
  Area["CONTACTS"] = "Contacts";
12
14
  Area["BILLING_AND_LEGAL"] = "Billing & Legal";
13
15
  Area["ORGANIZATION_AND_LEGAL"] = "Organization & Legal";
14
- return Area;
15
- }({});
16
+ })(Area || (Area = {}));
16
17
  _NotificationSubscription.Area = Area;
17
18
  })(NotificationSubscription || (exports.NotificationSubscription = NotificationSubscription = {}));
@@ -1,11 +1,11 @@
1
1
  export let NotificationSubscription;
2
2
  (function (_NotificationSubscription) {
3
- let Area = /*#__PURE__*/function (Area) {
3
+ let Area;
4
+ (function (Area) {
4
5
  Area["CAMPAIGNS"] = "Campaigns";
5
6
  Area["CONTACTS"] = "Contacts";
6
7
  Area["BILLING_AND_LEGAL"] = "Billing & Legal";
7
8
  Area["ORGANIZATION_AND_LEGAL"] = "Organization & Legal";
8
- return Area;
9
- }({});
9
+ })(Area || (Area = {}));
10
10
  _NotificationSubscription.Area = Area;
11
11
  })(NotificationSubscription || (NotificationSubscription = {}));
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Permission = void 0;
7
- let Permission = exports.Permission = /*#__PURE__*/function (Permission) {
7
+ let Permission;
8
+ exports.Permission = Permission;
9
+ (function (Permission) {
8
10
  Permission["CREATE_NEWSROOM"] = "create_newsroom";
9
11
  Permission["EXPORT_CONTACTS"] = "export_contacts";
10
12
  Permission["MANAGE_BILLING"] = "manage_billing";
@@ -13,5 +15,4 @@ let Permission = exports.Permission = /*#__PURE__*/function (Permission) {
13
15
  Permission["VIEW_CONTACTS"] = "view_contacts";
14
16
  Permission["CREATE_SENDER_ADDRESS"] = "create_sender_address";
15
17
  Permission["SEND_EMAILS"] = "send_emails";
16
- return Permission;
17
- }({});
18
+ })(Permission || (exports.Permission = Permission = {}));
@@ -1,4 +1,5 @@
1
- export let Permission = /*#__PURE__*/function (Permission) {
1
+ export let Permission;
2
+ (function (Permission) {
2
3
  Permission["CREATE_NEWSROOM"] = "create_newsroom";
3
4
  Permission["EXPORT_CONTACTS"] = "export_contacts";
4
5
  Permission["MANAGE_BILLING"] = "manage_billing";
@@ -7,5 +8,4 @@ export let Permission = /*#__PURE__*/function (Permission) {
7
8
  Permission["VIEW_CONTACTS"] = "view_contacts";
8
9
  Permission["CREATE_SENDER_ADDRESS"] = "create_sender_address";
9
10
  Permission["SEND_EMAILS"] = "send_emails";
10
- return Permission;
11
- }({});
11
+ })(Permission || (Permission = {}));
@@ -4,14 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.PlanLevel = exports.ChangeType = void 0;
7
- let ChangeType = exports.ChangeType = /*#__PURE__*/function (ChangeType) {
7
+ let ChangeType; /** @deprecated Will be dropped in future */
8
+ exports.ChangeType = ChangeType;
9
+ (function (ChangeType) {
8
10
  ChangeType["ACTIVATION"] = "activation";
9
11
  ChangeType["UPGRADE"] = "upgrade";
10
12
  ChangeType["DOWNGRADE"] = "downgrade";
11
- return ChangeType;
12
- }({});
13
- /** @deprecated Will be dropped in future */
14
- let PlanLevel = exports.PlanLevel = /*#__PURE__*/function (PlanLevel) {
13
+ })(ChangeType || (exports.ChangeType = ChangeType = {}));
14
+ let PlanLevel;
15
+ exports.PlanLevel = PlanLevel;
16
+ (function (PlanLevel) {
15
17
  PlanLevel["BASIC"] = "basic";
16
18
  PlanLevel["CORE"] = "core";
17
19
  PlanLevel["ENTERPRISE"] = "enterprise";
@@ -24,5 +26,4 @@ let PlanLevel = exports.PlanLevel = /*#__PURE__*/function (PlanLevel) {
24
26
  PlanLevel["AGENCY_MEDIUM"] = "agency_medium";
25
27
  PlanLevel["AGENCY_LARGE"] = "agency_large";
26
28
  PlanLevel["AGENCY_HUGE"] = "agency_huge";
27
- return PlanLevel;
28
- }({});
29
+ })(PlanLevel || (exports.PlanLevel = PlanLevel = {}));
@@ -1,12 +1,13 @@
1
- export let ChangeType = /*#__PURE__*/function (ChangeType) {
1
+ export let ChangeType;
2
+
3
+ /** @deprecated Will be dropped in future */
4
+ (function (ChangeType) {
2
5
  ChangeType["ACTIVATION"] = "activation";
3
6
  ChangeType["UPGRADE"] = "upgrade";
4
7
  ChangeType["DOWNGRADE"] = "downgrade";
5
- return ChangeType;
6
- }({});
7
-
8
- /** @deprecated Will be dropped in future */
9
- export let PlanLevel = /*#__PURE__*/function (PlanLevel) {
8
+ })(ChangeType || (ChangeType = {}));
9
+ export let PlanLevel;
10
+ (function (PlanLevel) {
10
11
  PlanLevel["BASIC"] = "basic";
11
12
  PlanLevel["CORE"] = "core";
12
13
  PlanLevel["ENTERPRISE"] = "enterprise";
@@ -19,5 +20,4 @@ export let PlanLevel = /*#__PURE__*/function (PlanLevel) {
19
20
  PlanLevel["AGENCY_MEDIUM"] = "agency_medium";
20
21
  PlanLevel["AGENCY_LARGE"] = "agency_large";
21
22
  PlanLevel["AGENCY_HUGE"] = "agency_huge";
22
- return PlanLevel;
23
- }({});
23
+ })(PlanLevel || (PlanLevel = {}));
@@ -4,20 +4,21 @@ 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
- let Type = /*#__PURE__*/function (Type) {
10
+ let Type;
11
+ (function (Type) {
10
12
  Type["DELETE"] = "delete";
11
13
  Type["EXPORT"] = "export";
12
14
  Type["CORRECT"] = "correct";
13
15
  Type["OTHER"] = "other";
14
- return Type;
15
- }({});
16
+ })(Type || (Type = {}));
16
17
  _PrivacyRequest.Type = Type;
17
- let Status = /*#__PURE__*/function (Status) {
18
+ let Status;
19
+ (function (Status) {
18
20
  Status["UNCONFIRMED"] = "unconfirmed";
19
21
  Status["CONFIRMED"] = "confirmed";
20
- return Status;
21
- }({});
22
+ })(Status || (Status = {}));
22
23
  _PrivacyRequest.Status = Status;
23
24
  })(PrivacyRequest || (exports.PrivacyRequest = PrivacyRequest = {}));
@@ -1,17 +1,17 @@
1
1
  export let PrivacyRequest;
2
2
  (function (_PrivacyRequest) {
3
- let Type = /*#__PURE__*/function (Type) {
3
+ let Type;
4
+ (function (Type) {
4
5
  Type["DELETE"] = "delete";
5
6
  Type["EXPORT"] = "export";
6
7
  Type["CORRECT"] = "correct";
7
8
  Type["OTHER"] = "other";
8
- return Type;
9
- }({});
9
+ })(Type || (Type = {}));
10
10
  _PrivacyRequest.Type = Type;
11
- let Status = /*#__PURE__*/function (Status) {
11
+ let Status;
12
+ (function (Status) {
12
13
  Status["UNCONFIRMED"] = "unconfirmed";
13
14
  Status["CONFIRMED"] = "confirmed";
14
- return Status;
15
- }({});
15
+ })(Status || (Status = {}));
16
16
  _PrivacyRequest.Status = Status;
17
17
  })(PrivacyRequest || (PrivacyRequest = {}));
@@ -4,12 +4,13 @@ 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
- let Type = /*#__PURE__*/function (Type) {
10
+ let Type;
11
+ (function (Type) {
10
12
  Type["CUSTOM"] = "custom";
11
13
  Type["PREZLYMAIL"] = "prezly_mail";
12
- return Type;
13
- }({});
14
+ })(Type || (Type = {}));
14
15
  _SenderAddress.Type = Type;
15
16
  })(SenderAddress || (exports.SenderAddress = SenderAddress = {}));
@@ -1,9 +1,9 @@
1
1
  export let SenderAddress;
2
2
  (function (_SenderAddress) {
3
- let Type = /*#__PURE__*/function (Type) {
3
+ let Type;
4
+ (function (Type) {
4
5
  Type["CUSTOM"] = "custom";
5
6
  Type["PREZLYMAIL"] = "prezly_mail";
6
- return Type;
7
- }({});
7
+ })(Type || (Type = {}));
8
8
  _SenderAddress.Type = Type;
9
9
  })(SenderAddress || (SenderAddress = {}));
@@ -4,14 +4,15 @@ 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
- let VerificationFlowVersion = /*#__PURE__*/function (VerificationFlowVersion) {
10
+ let VerificationFlowVersion;
11
+ (function (VerificationFlowVersion) {
10
12
  VerificationFlowVersion["V1"] = "v1";
11
13
  VerificationFlowVersion["V2"] = "v2";
12
14
  VerificationFlowVersion["V3"] = "v3";
13
15
  VerificationFlowVersion["PREZLYMAIL"] = "prezlymail";
14
- return VerificationFlowVersion;
15
- }({});
16
+ })(VerificationFlowVersion || (VerificationFlowVersion = {}));
16
17
  _SenderDomain.VerificationFlowVersion = VerificationFlowVersion;
17
18
  })(SenderDomain || (exports.SenderDomain = SenderDomain = {}));
@@ -1,11 +1,11 @@
1
1
  export let SenderDomain;
2
2
  (function (_SenderDomain) {
3
- let VerificationFlowVersion = /*#__PURE__*/function (VerificationFlowVersion) {
3
+ let VerificationFlowVersion;
4
+ (function (VerificationFlowVersion) {
4
5
  VerificationFlowVersion["V1"] = "v1";
5
6
  VerificationFlowVersion["V2"] = "v2";
6
7
  VerificationFlowVersion["V3"] = "v3";
7
8
  VerificationFlowVersion["PREZLYMAIL"] = "prezlymail";
8
- return VerificationFlowVersion;
9
- }({});
9
+ })(VerificationFlowVersion || (VerificationFlowVersion = {}));
10
10
  _SenderDomain.VerificationFlowVersion = VerificationFlowVersion;
11
11
  })(SenderDomain || (SenderDomain = {}));
@@ -4,13 +4,14 @@ 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
- let Direction = /*#__PURE__*/function (Direction) {
10
+ let Direction;
11
+ (function (Direction) {
10
12
  Direction["ASC"] = "asc";
11
13
  Direction["DESC"] = "desc";
12
- return Direction;
13
- }({});
14
+ })(Direction || (Direction = {}));
14
15
  _SortOrder.Direction = Direction;
15
16
  function empty() {
16
17
  return {
@@ -1,10 +1,10 @@
1
1
  export let SortOrder;
2
2
  (function (_SortOrder) {
3
- let Direction = /*#__PURE__*/function (Direction) {
3
+ let Direction;
4
+ (function (Direction) {
4
5
  Direction["ASC"] = "asc";
5
6
  Direction["DESC"] = "desc";
6
- return Direction;
7
- }({});
7
+ })(Direction || (Direction = {}));
8
8
  _SortOrder.Direction = Direction;
9
9
  function empty() {
10
10
  return {
@@ -5,53 +5,48 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Story = void 0;
7
7
  var _Newsroom = require("./Newsroom.cjs");
8
- let Story = exports.Story = void 0;
8
+ let Story;
9
+ exports.Story = Story;
9
10
  (function (_Story) {
10
- let FormatVersion = /*#__PURE__*/function (FormatVersion) {
11
+ let FormatVersion;
12
+ (function (FormatVersion) {
11
13
  FormatVersion[FormatVersion["HTML"] = 1] = "HTML";
12
14
  FormatVersion[FormatVersion["SLATEJS_V3"] = 3] = "SLATEJS_V3";
13
15
  FormatVersion[FormatVersion["SLATEJS_V4"] = 4] = "SLATEJS_V4";
14
16
  FormatVersion[FormatVersion["SLATEJS_V5"] = 5] = "SLATEJS_V5";
15
- return FormatVersion;
16
- }({});
17
+ })(FormatVersion || (FormatVersion = {}));
17
18
  _Story.FormatVersion = FormatVersion;
18
- let Status = /*#__PURE__*/function (Status) {
19
+ let Status;
20
+ (function (Status) {
19
21
  Status["UNINITIALIZED"] = "uninitialized";
20
22
  Status["DRAFT"] = "draft";
21
23
  Status["SCHEDULED"] = "scheduled";
22
24
  Status["EMBARGO"] = "embargo";
23
25
  Status["PUBLISHED"] = "published";
24
- return Status;
25
- }({});
26
+ })(Status || (Status = {}));
26
27
  _Story.Status = Status;
27
28
  /**
28
29
  * @deprecated Please use `Status` instead.
29
30
  * @see Status
30
- */
31
- var LifecycleStatus = Status;
32
- /**
33
- * @deprecated Please use `Status` instead.
34
- * @see Status
35
- */
36
- let PublicationStatus = /*#__PURE__*/function (PublicationStatus) {
31
+ */var LifecycleStatus = Status; /**
32
+ * @deprecated Please use `Status` instead.
33
+ * @see Status
34
+ */
35
+ let PublicationStatus;
36
+ (function (PublicationStatus) {
37
37
  PublicationStatus["NEW"] = "new";
38
38
  PublicationStatus["DRAFT"] = "draft";
39
39
  PublicationStatus["PUBLISHED"] = "published";
40
- return PublicationStatus;
41
- }({});
40
+ })(PublicationStatus || (PublicationStatus = {}));
42
41
  _Story.PublicationStatus = PublicationStatus;
43
- let Visibility = /*#__PURE__*/function (Visibility) {
42
+ let Visibility;
43
+ (function (Visibility) {
44
44
  Visibility["PUBLIC"] = "public";
45
45
  Visibility["EMBARGO"] = "embargo";
46
46
  Visibility["PRIVATE"] = "private";
47
47
  Visibility["CONFIDENTIAL"] = "confidential";
48
- return Visibility;
49
- }({});
48
+ })(Visibility || (Visibility = {}));
50
49
  _Story.Visibility = Visibility;
51
- /*
52
- * Newsroom status checks
53
- */
54
-
55
50
  function isActiveNewsroom(story) {
56
51
  return _Newsroom.Newsroom.isActive(story.newsroom);
57
52
  }
@@ -64,9 +59,6 @@ let Story = exports.Story = void 0;
64
59
  return _Newsroom.Newsroom.isArchived(story.newsroom);
65
60
  }
66
61
  _Story.isArchivedNewsroom = isArchivedNewsroom;
67
- /*
68
- * Lifecycle status checks
69
- */
70
62
  function isUninitialized(arg) {
71
63
  if (typeof arg === 'object' && arg !== null) {
72
64
  return isUninitialized(arg.status);
@@ -109,9 +101,6 @@ let Story = exports.Story = void 0;
109
101
  return arg === Status.PUBLISHED;
110
102
  }
111
103
  _Story.isPublished = isPublished;
112
- /*
113
- * Format version checks
114
- */
115
104
  function isLegacyHtmlFormat(arg) {
116
105
  if (typeof arg === 'object' && arg !== null) {
117
106
  return isLegacyHtmlFormat(arg.format_version);