@prezly/sdk 19.6.0 → 19.6.2

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