@prezly/sdk 25.8.0 → 26.0.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 (91) hide show
  1. package/dist/api/DeferredJobsApiClient.cjs +2 -1
  2. package/dist/api/DeferredJobsApiClient.js +2 -1
  3. package/dist/api/constants.cjs +1 -1
  4. package/dist/api/constants.js +1 -1
  5. package/dist/endpoints/Billing/types.cjs +6 -6
  6. package/dist/endpoints/Billing/types.js +6 -6
  7. package/dist/endpoints/ContactTagGroups/types.cjs +3 -3
  8. package/dist/endpoints/ContactTagGroups/types.js +3 -3
  9. package/dist/endpoints/Newsrooms/Client.cjs +97 -32
  10. package/dist/endpoints/Newsrooms/Client.d.ts +18 -13
  11. package/dist/endpoints/Newsrooms/Client.js +96 -32
  12. package/dist/endpoints/Newsrooms/types.d.ts +8 -4
  13. package/dist/endpoints/PricingTables/types.cjs +12 -12
  14. package/dist/endpoints/PricingTables/types.js +12 -12
  15. package/dist/endpoints/Subscriptions/types.cjs +3 -3
  16. package/dist/endpoints/Subscriptions/types.js +3 -3
  17. package/dist/http/createRequest.cjs +1 -1
  18. package/dist/http/createRequest.js +1 -1
  19. package/dist/http/types.cjs +6 -6
  20. package/dist/http/types.js +6 -6
  21. package/dist/types/BillingCycle.cjs +3 -3
  22. package/dist/types/BillingCycle.js +3 -3
  23. package/dist/types/Campaign.cjs +18 -18
  24. package/dist/types/Campaign.js +18 -18
  25. package/dist/types/Category.cjs +2 -1
  26. package/dist/types/Category.js +2 -1
  27. package/dist/types/Contact.cjs +18 -18
  28. package/dist/types/Contact.js +18 -18
  29. package/dist/types/ContactDuplicateSuggestion.cjs +3 -3
  30. package/dist/types/ContactDuplicateSuggestion.js +4 -3
  31. package/dist/types/ContactTag.cjs +2 -1
  32. package/dist/types/ContactTag.js +2 -1
  33. package/dist/types/ContactsExport.cjs +3 -3
  34. package/dist/types/ContactsExport.js +3 -3
  35. package/dist/types/ContactsScope.cjs +3 -3
  36. package/dist/types/ContactsScope.js +3 -3
  37. package/dist/types/CoverageEntry.cjs +9 -9
  38. package/dist/types/CoverageEntry.js +9 -9
  39. package/dist/types/CoverageIntegration.cjs +3 -3
  40. package/dist/types/CoverageIntegration.js +3 -3
  41. package/dist/types/CoverageIntegrationRun.cjs +3 -3
  42. package/dist/types/CoverageIntegrationRun.js +3 -3
  43. package/dist/types/Culture.cjs +3 -3
  44. package/dist/types/Culture.js +3 -3
  45. package/dist/types/Currency.cjs +3 -3
  46. package/dist/types/Currency.js +3 -3
  47. package/dist/types/EmailRecipient.cjs +6 -6
  48. package/dist/types/EmailRecipient.js +6 -6
  49. package/dist/types/JobState.cjs +3 -3
  50. package/dist/types/JobState.js +3 -3
  51. package/dist/types/License.cjs +12 -12
  52. package/dist/types/License.js +12 -12
  53. package/dist/types/Newsroom.cjs +12 -12
  54. package/dist/types/Newsroom.d.ts +24 -14
  55. package/dist/types/Newsroom.js +12 -12
  56. package/dist/types/NewsroomDomain.cjs +6 -6
  57. package/dist/types/NewsroomDomain.js +6 -6
  58. package/dist/types/NewsroomGallery.cjs +6 -6
  59. package/dist/types/NewsroomGallery.js +6 -6
  60. package/dist/types/NewsroomTheme.cjs +8 -7
  61. package/dist/types/NewsroomTheme.js +8 -7
  62. package/dist/types/NewsroomWebhook.cjs +3 -3
  63. package/dist/types/NewsroomWebhook.js +3 -3
  64. package/dist/types/NotificationSubscription.cjs +3 -3
  65. package/dist/types/NotificationSubscription.js +3 -3
  66. package/dist/types/Permissions.cjs +3 -3
  67. package/dist/types/Permissions.js +3 -3
  68. package/dist/types/Plan.cjs +10 -10
  69. package/dist/types/Plan.js +11 -11
  70. package/dist/types/Price.cjs +6 -6
  71. package/dist/types/Price.js +6 -6
  72. package/dist/types/PrivacyRequest.cjs +6 -6
  73. package/dist/types/PrivacyRequest.js +6 -6
  74. package/dist/types/SenderAddress.cjs +3 -3
  75. package/dist/types/SenderAddress.js +3 -3
  76. package/dist/types/SenderDomain.cjs +3 -3
  77. package/dist/types/SenderDomain.js +3 -3
  78. package/dist/types/SortOrder.cjs +3 -3
  79. package/dist/types/SortOrder.js +3 -3
  80. package/dist/types/Story.cjs +12 -12
  81. package/dist/types/Story.js +12 -12
  82. package/dist/types/User.cjs +6 -6
  83. package/dist/types/User.js +6 -6
  84. package/dist/types/common/Notification.cjs +3 -3
  85. package/dist/types/common/Notification.js +3 -3
  86. package/dist/types/common/OEmbedInfo.cjs +3 -3
  87. package/dist/types/common/OEmbedInfo.js +3 -3
  88. package/dist/types/common/Pagination.cjs +3 -3
  89. package/dist/types/common/Pagination.js +3 -3
  90. package/dist/types/common/Query.js +1 -0
  91. package/package.json +7 -11
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.CoverageIntegration = void 0;
7
7
  let CoverageIntegration = exports.CoverageIntegration = void 0;
8
8
  (function (_CoverageIntegration) {
9
- let Status = /*#__PURE__*/function (Status) {
9
+ let Status;
10
+ (function (Status) {
10
11
  Status["ACTIVE"] = "active";
11
12
  Status["PAUSED"] = "paused";
12
13
  Status["TRIAL"] = "trial";
13
14
  Status["DELETED"] = "deleted";
14
- return Status;
15
- }({});
15
+ })(Status || (Status = {}));
16
16
  _CoverageIntegration.Status = Status;
17
17
  })(CoverageIntegration || (exports.CoverageIntegration = CoverageIntegration = {}));
@@ -1,11 +1,11 @@
1
1
  export let CoverageIntegration;
2
2
  (function (_CoverageIntegration) {
3
- let Status = /*#__PURE__*/function (Status) {
3
+ let Status;
4
+ (function (Status) {
4
5
  Status["ACTIVE"] = "active";
5
6
  Status["PAUSED"] = "paused";
6
7
  Status["TRIAL"] = "trial";
7
8
  Status["DELETED"] = "deleted";
8
- return Status;
9
- }({});
9
+ })(Status || (Status = {}));
10
10
  _CoverageIntegration.Status = Status;
11
11
  })(CoverageIntegration || (CoverageIntegration = {}));
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.CoverageIntegrationRun = void 0;
7
7
  let CoverageIntegrationRun = exports.CoverageIntegrationRun = void 0;
8
8
  (function (_CoverageIntegrationRun) {
9
- let Status = /*#__PURE__*/function (Status) {
9
+ let Status;
10
+ (function (Status) {
10
11
  Status["DONE"] = "done";
11
12
  Status["ERROR"] = "error";
12
13
  Status["RUNNING"] = "running";
13
- return Status;
14
- }({});
14
+ })(Status || (Status = {}));
15
15
  _CoverageIntegrationRun.Status = Status;
16
16
  })(CoverageIntegrationRun || (exports.CoverageIntegrationRun = CoverageIntegrationRun = {}));
@@ -1,10 +1,10 @@
1
1
  export let CoverageIntegrationRun;
2
2
  (function (_CoverageIntegrationRun) {
3
- let Status = /*#__PURE__*/function (Status) {
3
+ let Status;
4
+ (function (Status) {
4
5
  Status["DONE"] = "done";
5
6
  Status["ERROR"] = "error";
6
7
  Status["RUNNING"] = "running";
7
- return Status;
8
- }({});
8
+ })(Status || (Status = {}));
9
9
  _CoverageIntegrationRun.Status = Status;
10
10
  })(CoverageIntegrationRun || (CoverageIntegrationRun = {}));
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.Culture = void 0;
7
7
  let Culture = exports.Culture = void 0;
8
8
  (function (_Culture) {
9
- let TextDirection = /*#__PURE__*/function (TextDirection) {
9
+ let TextDirection;
10
+ (function (TextDirection) {
10
11
  TextDirection["LTR"] = "ltr";
11
12
  TextDirection["RTL"] = "rtl";
12
- return TextDirection;
13
- }({});
13
+ })(TextDirection || (TextDirection = {}));
14
14
  _Culture.TextDirection = TextDirection;
15
15
  /**
16
16
  * Primary locale code used everywhere in the Prezly app.
@@ -1,10 +1,10 @@
1
1
  export let Culture;
2
2
  (function (_Culture) {
3
- let TextDirection = /*#__PURE__*/function (TextDirection) {
3
+ let TextDirection;
4
+ (function (TextDirection) {
4
5
  TextDirection["LTR"] = "ltr";
5
6
  TextDirection["RTL"] = "rtl";
6
- return TextDirection;
7
- }({});
7
+ })(TextDirection || (TextDirection = {}));
8
8
  _Culture.TextDirection = TextDirection;
9
9
  /**
10
10
  * Primary locale code used everywhere in the Prezly app.
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Currency = void 0;
7
- let Currency = exports.Currency = /*#__PURE__*/function (Currency) {
7
+ let Currency = exports.Currency = void 0;
8
+ (function (Currency) {
8
9
  Currency["EUR"] = "eur";
9
10
  Currency["USD"] = "usd";
10
11
  Currency["GBP"] = "gbp";
11
12
  Currency["AUD"] = "aud";
12
- return Currency;
13
- }({});
13
+ })(Currency || (exports.Currency = Currency = {}));
@@ -1,7 +1,7 @@
1
- export let Currency = /*#__PURE__*/function (Currency) {
1
+ export let Currency;
2
+ (function (Currency) {
2
3
  Currency["EUR"] = "eur";
3
4
  Currency["USD"] = "usd";
4
5
  Currency["GBP"] = "gbp";
5
6
  Currency["AUD"] = "aud";
6
- return Currency;
7
- }({});
7
+ })(Currency || (Currency = {}));
@@ -6,20 +6,20 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.EmailRecipient = void 0;
7
7
  let EmailRecipient = exports.EmailRecipient = void 0;
8
8
  (function (_EmailRecipient) {
9
- let Problem = /*#__PURE__*/function (Problem) {
9
+ let Problem;
10
+ (function (Problem) {
10
11
  Problem["BOUNCED"] = "bounced";
11
12
  Problem["UNSUBSCRIBED"] = "unsubscribed";
12
13
  Problem["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
13
14
  Problem["DUPLICATE"] = "duplicate";
14
- return Problem;
15
- }({});
15
+ })(Problem || (Problem = {}));
16
16
  _EmailRecipient.Problem = Problem;
17
- let EmailAddressStatus = /*#__PURE__*/function (EmailAddressStatus) {
17
+ let EmailAddressStatus;
18
+ (function (EmailAddressStatus) {
18
19
  EmailAddressStatus["OK"] = "ok";
19
20
  EmailAddressStatus["BOUNCED"] = "bounced";
20
21
  EmailAddressStatus["UNSUBSCRIBED"] = "unsubscribed";
21
22
  EmailAddressStatus["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
22
- return EmailAddressStatus;
23
- }({});
23
+ })(EmailAddressStatus || (EmailAddressStatus = {}));
24
24
  _EmailRecipient.EmailAddressStatus = EmailAddressStatus;
25
25
  })(EmailRecipient || (exports.EmailRecipient = EmailRecipient = {}));
@@ -1,19 +1,19 @@
1
1
  export let EmailRecipient;
2
2
  (function (_EmailRecipient) {
3
- let Problem = /*#__PURE__*/function (Problem) {
3
+ let Problem;
4
+ (function (Problem) {
4
5
  Problem["BOUNCED"] = "bounced";
5
6
  Problem["UNSUBSCRIBED"] = "unsubscribed";
6
7
  Problem["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
7
8
  Problem["DUPLICATE"] = "duplicate";
8
- return Problem;
9
- }({});
9
+ })(Problem || (Problem = {}));
10
10
  _EmailRecipient.Problem = Problem;
11
- let EmailAddressStatus = /*#__PURE__*/function (EmailAddressStatus) {
11
+ let EmailAddressStatus;
12
+ (function (EmailAddressStatus) {
12
13
  EmailAddressStatus["OK"] = "ok";
13
14
  EmailAddressStatus["BOUNCED"] = "bounced";
14
15
  EmailAddressStatus["UNSUBSCRIBED"] = "unsubscribed";
15
16
  EmailAddressStatus["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
16
- return EmailAddressStatus;
17
- }({});
17
+ })(EmailAddressStatus || (EmailAddressStatus = {}));
18
18
  _EmailRecipient.EmailAddressStatus = EmailAddressStatus;
19
19
  })(EmailRecipient || (EmailRecipient = {}));
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.JobStatus = void 0;
7
- let JobStatus = exports.JobStatus = /*#__PURE__*/function (JobStatus) {
7
+ let JobStatus = exports.JobStatus = void 0;
8
+ (function (JobStatus) {
8
9
  JobStatus["PENDING"] = "pending";
9
10
  JobStatus["RESOLVED"] = "resolved";
10
11
  JobStatus["REJECTED"] = "rejected";
11
- return JobStatus;
12
- }({});
12
+ })(JobStatus || (exports.JobStatus = JobStatus = {}));
@@ -1,6 +1,6 @@
1
- export let JobStatus = /*#__PURE__*/function (JobStatus) {
1
+ export let JobStatus;
2
+ (function (JobStatus) {
2
3
  JobStatus["PENDING"] = "pending";
3
4
  JobStatus["RESOLVED"] = "resolved";
4
5
  JobStatus["REJECTED"] = "rejected";
5
- return JobStatus;
6
- }({});
6
+ })(JobStatus || (JobStatus = {}));
@@ -6,16 +6,17 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.License = void 0;
7
7
  let License = exports.License = void 0;
8
8
  (function (_License) {
9
- let Type = /*#__PURE__*/function (Type) {
9
+ let Type;
10
+ (function (Type) {
10
11
  Type["FAVOUR"] = "favour";
11
12
  Type["FREE"] = "free";
12
13
  Type["PAID_AUTO"] = "paid_auto";
13
14
  Type["PAID_MANUAL"] = "paid_manual";
14
15
  Type["TRIAL"] = "trial";
15
- return Type;
16
- }({});
16
+ })(Type || (Type = {}));
17
17
  _License.Type = Type;
18
- let Status = /*#__PURE__*/function (Status) {
18
+ let Status;
19
+ (function (Status) {
19
20
  Status["TRIAL"] = "trial";
20
21
  Status["ACTIVE"] = "active";
21
22
  Status["PAST_DUE"] = "past_due";
@@ -24,22 +25,21 @@ let License = exports.License = void 0;
24
25
  Status["INCOMPLETE"] = "incomplete";
25
26
  Status["CANCELED"] = "canceled";
26
27
  Status["UNPAID"] = "unpaid";
27
- return Status;
28
- }({});
28
+ })(Status || (Status = {}));
29
29
  _License.Status = Status;
30
- let SubscriptionStatus = /*#__PURE__*/function (SubscriptionStatus) {
30
+ let SubscriptionStatus;
31
+ (function (SubscriptionStatus) {
31
32
  SubscriptionStatus["TRIALING"] = "trialing";
32
33
  SubscriptionStatus["EXPIRED"] = "expired";
33
34
  SubscriptionStatus["ACTIVE"] = "active";
34
35
  SubscriptionStatus["CANCELED"] = "canceled";
35
- return SubscriptionStatus;
36
- }({});
36
+ })(SubscriptionStatus || (SubscriptionStatus = {}));
37
37
  _License.SubscriptionStatus = SubscriptionStatus;
38
- let CompanyType = /*#__PURE__*/function (CompanyType) {
38
+ let CompanyType;
39
+ (function (CompanyType) {
39
40
  CompanyType["BRAND"] = "brand";
40
41
  CompanyType["AGENCY"] = "agency";
41
42
  CompanyType["INTERNAL"] = "internal";
42
- return CompanyType;
43
- }({});
43
+ })(CompanyType || (CompanyType = {}));
44
44
  _License.CompanyType = CompanyType;
45
45
  })(License || (exports.License = License = {}));
@@ -1,15 +1,16 @@
1
1
  export let License;
2
2
  (function (_License) {
3
- let Type = /*#__PURE__*/function (Type) {
3
+ let Type;
4
+ (function (Type) {
4
5
  Type["FAVOUR"] = "favour";
5
6
  Type["FREE"] = "free";
6
7
  Type["PAID_AUTO"] = "paid_auto";
7
8
  Type["PAID_MANUAL"] = "paid_manual";
8
9
  Type["TRIAL"] = "trial";
9
- return Type;
10
- }({});
10
+ })(Type || (Type = {}));
11
11
  _License.Type = Type;
12
- let Status = /*#__PURE__*/function (Status) {
12
+ let Status;
13
+ (function (Status) {
13
14
  Status["TRIAL"] = "trial";
14
15
  Status["ACTIVE"] = "active";
15
16
  Status["PAST_DUE"] = "past_due";
@@ -18,22 +19,21 @@ export let License;
18
19
  Status["INCOMPLETE"] = "incomplete";
19
20
  Status["CANCELED"] = "canceled";
20
21
  Status["UNPAID"] = "unpaid";
21
- return Status;
22
- }({});
22
+ })(Status || (Status = {}));
23
23
  _License.Status = Status;
24
- let SubscriptionStatus = /*#__PURE__*/function (SubscriptionStatus) {
24
+ let SubscriptionStatus;
25
+ (function (SubscriptionStatus) {
25
26
  SubscriptionStatus["TRIALING"] = "trialing";
26
27
  SubscriptionStatus["EXPIRED"] = "expired";
27
28
  SubscriptionStatus["ACTIVE"] = "active";
28
29
  SubscriptionStatus["CANCELED"] = "canceled";
29
- return SubscriptionStatus;
30
- }({});
30
+ })(SubscriptionStatus || (SubscriptionStatus = {}));
31
31
  _License.SubscriptionStatus = SubscriptionStatus;
32
- let CompanyType = /*#__PURE__*/function (CompanyType) {
32
+ let CompanyType;
33
+ (function (CompanyType) {
33
34
  CompanyType["BRAND"] = "brand";
34
35
  CompanyType["AGENCY"] = "agency";
35
36
  CompanyType["INTERNAL"] = "internal";
36
- return CompanyType;
37
- }({});
37
+ })(CompanyType || (CompanyType = {}));
38
38
  _License.CompanyType = CompanyType;
39
39
  })(License || (License = {}));
@@ -6,35 +6,35 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.Newsroom = void 0;
7
7
  let Newsroom = exports.Newsroom = void 0;
8
8
  (function (_Newsroom) {
9
- let Status = /*#__PURE__*/function (Status) {
9
+ let Status;
10
+ (function (Status) {
10
11
  Status["ACTIVE"] = "active";
11
12
  Status["INACTIVE"] = "inactive";
12
13
  Status["ARCHIVED"] = "archived";
13
- return Status;
14
- }({});
14
+ })(Status || (Status = {}));
15
15
  _Newsroom.Status = Status;
16
- let EmailBrandingMode = /*#__PURE__*/function (EmailBrandingMode) {
16
+ let EmailBrandingMode;
17
+ (function (EmailBrandingMode) {
17
18
  EmailBrandingMode["DEFAULT"] = "default";
18
19
  EmailBrandingMode["CUSTOM"] = "custom";
19
- return EmailBrandingMode;
20
- }({});
20
+ })(EmailBrandingMode || (EmailBrandingMode = {}));
21
21
  _Newsroom.EmailBrandingMode = EmailBrandingMode;
22
- let TrackingPolicy = /*#__PURE__*/function (TrackingPolicy) {
22
+ let TrackingPolicy;
23
+ (function (TrackingPolicy) {
23
24
  TrackingPolicy["DEFAULT"] = "default";
24
25
  TrackingPolicy["DISABLED"] = "disabled";
25
26
  TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
26
27
  TrackingPolicy["STRICT"] = "strict";
27
28
  TrackingPolicy["NORMAL"] = "normal";
28
29
  TrackingPolicy["LENIENT"] = "lenient";
29
- return TrackingPolicy;
30
- }({});
30
+ })(TrackingPolicy || (TrackingPolicy = {}));
31
31
  _Newsroom.TrackingPolicy = TrackingPolicy;
32
- let EmailLogoAlignment = /*#__PURE__*/function (EmailLogoAlignment) {
32
+ let EmailLogoAlignment;
33
+ (function (EmailLogoAlignment) {
33
34
  EmailLogoAlignment["LEFT"] = "left";
34
35
  EmailLogoAlignment["CENTER"] = "center";
35
36
  EmailLogoAlignment["RIGHT"] = "right";
36
- return EmailLogoAlignment;
37
- }({});
37
+ })(EmailLogoAlignment || (EmailLogoAlignment = {}));
38
38
  _Newsroom.EmailLogoAlignment = EmailLogoAlignment;
39
39
  /*
40
40
  * Status checks
@@ -94,20 +94,6 @@ export interface Newsroom extends NewsroomRef {
94
94
  */
95
95
  custom_privacy_policy_link: string | null;
96
96
  custom_data_request_link: string | null;
97
- policies: {
98
- privacy_policy: {
99
- link: string;
100
- } | {
101
- content: string;
102
- origin: 'default' | 'custom';
103
- };
104
- cookie_policy: {
105
- link: string;
106
- } | {
107
- content: string;
108
- origin: 'default' | 'custom';
109
- };
110
- };
111
97
  tracking_policy: Newsroom.TrackingPolicy;
112
98
  onetrust_cookie_consent: {
113
99
  is_enabled: boolean;
@@ -183,4 +169,28 @@ export declare namespace Newsroom {
183
169
  function isInactive(newsroom: Pick<Newsroom, 'status'>): boolean;
184
170
  function isArchived(newsroom: Newsroom['status']): boolean;
185
171
  function isArchived(newsroom: Pick<Newsroom, 'status'>): boolean;
172
+ interface ExtraFields {
173
+ policies: {
174
+ privacy_policy: {
175
+ link: string;
176
+ } | {
177
+ content: string;
178
+ origin: 'default' | 'custom';
179
+ };
180
+ cookie_policy: {
181
+ link: string;
182
+ } | {
183
+ content: string;
184
+ origin: 'default' | 'custom';
185
+ };
186
+ };
187
+ draft_stories_number: number;
188
+ published_stories_number: number;
189
+ draft_campaigns_number: number;
190
+ scheduled_campaigns_number: number;
191
+ sent_campaigns_number: number;
192
+ draft_pitches_number: number;
193
+ sent_pitches_number: number;
194
+ online_coverage_number: number;
195
+ }
186
196
  }
@@ -1,34 +1,34 @@
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
21
  TrackingPolicy["STRICT"] = "strict";
21
22
  TrackingPolicy["NORMAL"] = "normal";
22
23
  TrackingPolicy["LENIENT"] = "lenient";
23
- return TrackingPolicy;
24
- }({});
24
+ })(TrackingPolicy || (TrackingPolicy = {}));
25
25
  _Newsroom.TrackingPolicy = TrackingPolicy;
26
- let EmailLogoAlignment = /*#__PURE__*/function (EmailLogoAlignment) {
26
+ let EmailLogoAlignment;
27
+ (function (EmailLogoAlignment) {
27
28
  EmailLogoAlignment["LEFT"] = "left";
28
29
  EmailLogoAlignment["CENTER"] = "center";
29
30
  EmailLogoAlignment["RIGHT"] = "right";
30
- return EmailLogoAlignment;
31
- }({});
31
+ })(EmailLogoAlignment || (EmailLogoAlignment = {}));
32
32
  _Newsroom.EmailLogoAlignment = EmailLogoAlignment;
33
33
  /*
34
34
  * Status checks
@@ -6,18 +6,18 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.NewsroomDomain = void 0;
7
7
  let NewsroomDomain = exports.NewsroomDomain = void 0;
8
8
  (function (_NewsroomDomain) {
9
- let Type = /*#__PURE__*/function (Type) {
9
+ let Type;
10
+ (function (Type) {
10
11
  Type["PREZLY"] = "prezly";
11
12
  Type["CUSTOM"] = "custom";
12
13
  Type["REVERSE_PROXY"] = "reverse_proxy";
13
- return Type;
14
- }({});
14
+ })(Type || (Type = {}));
15
15
  _NewsroomDomain.Type = Type;
16
- let Status = /*#__PURE__*/function (Status) {
16
+ let Status;
17
+ (function (Status) {
17
18
  Status["ACTIVE"] = "active";
18
19
  Status["INACTIVE"] = "inactive";
19
20
  Status["REDIRECT"] = "redirect";
20
- return Status;
21
- }({});
21
+ })(Status || (Status = {}));
22
22
  _NewsroomDomain.Status = Status;
23
23
  })(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 = {}));
@@ -6,16 +6,16 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.NewsroomGallery = void 0;
7
7
  let NewsroomGallery = exports.NewsroomGallery = void 0;
8
8
  (function (_NewsroomGallery) {
9
- let Status = /*#__PURE__*/function (Status) {
9
+ let Status;
10
+ (function (Status) {
10
11
  Status["PRIVATE"] = "private";
11
12
  Status["PUBLIC"] = "public";
12
- return Status;
13
- }({});
13
+ })(Status || (Status = {}));
14
14
  _NewsroomGallery.Status = Status;
15
- let Type = /*#__PURE__*/function (Type) {
15
+ let Type;
16
+ (function (Type) {
16
17
  Type["IMAGE"] = "image";
17
18
  Type["VIDEO"] = "video";
18
- return Type;
19
- }({});
19
+ })(Type || (Type = {}));
20
20
  _NewsroomGallery.Type = Type;
21
21
  })(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 = {}));
@@ -6,13 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.NewsroomThemePreset = exports.NewsroomTheme = void 0;
7
7
  let NewsroomTheme = exports.NewsroomTheme = void 0;
8
8
  (function (_NewsroomTheme) {
9
- let Status = /*#__PURE__*/function (Status) {
9
+ let Status;
10
+ (function (Status) {
10
11
  Status["BETA"] = "beta";
11
12
  Status["STABLE"] = "stable";
12
- return Status;
13
- }({});
13
+ })(Status || (Status = {}));
14
14
  _NewsroomTheme.Status = Status;
15
- let Feature = /*#__PURE__*/function (Feature) {
15
+ let Feature; // DEV-19123
16
+ (function (Feature) {
16
17
  Feature["CATEGORIES"] = "categories";
17
18
  Feature["SEARCH"] = "search";
18
19
  Feature["MEDIA_GALLERIES"] = "media_galleries";
@@ -29,12 +30,12 @@ let NewsroomTheme = exports.NewsroomTheme = void 0;
29
30
  Feature["VIDEO_LAYOUT"] = "video_layout";
30
31
  Feature["EMBED_LAYOUT"] = "embed_layout";
31
32
  Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy";
32
- return Feature;
33
- }({}); // DEV-19123
33
+ })(Feature || (Feature = {}));
34
34
  _NewsroomTheme.Feature = Feature;
35
35
  function isFeatureSupported(theme, feature) {
36
36
  return theme.features.includes(feature);
37
37
  }
38
38
  _NewsroomTheme.isFeatureSupported = isFeatureSupported;
39
39
  })(NewsroomTheme || (exports.NewsroomTheme = NewsroomTheme = {}));
40
- let NewsroomThemePreset = exports.NewsroomThemePreset = void 0;
40
+ let NewsroomThemePreset = exports.NewsroomThemePreset = void 0;
41
+ (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; // DEV-19123
10
+ (function (Feature) {
10
11
  Feature["CATEGORIES"] = "categories";
11
12
  Feature["SEARCH"] = "search";
12
13
  Feature["MEDIA_GALLERIES"] = "media_galleries";
@@ -23,12 +24,12 @@ export let NewsroomTheme;
23
24
  Feature["VIDEO_LAYOUT"] = "video_layout";
24
25
  Feature["EMBED_LAYOUT"] = "embed_layout";
25
26
  Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy";
26
- return Feature;
27
- }({}); // DEV-19123
27
+ })(Feature || (Feature = {}));
28
28
  _NewsroomTheme.Feature = Feature;
29
29
  function isFeatureSupported(theme, feature) {
30
30
  return theme.features.includes(feature);
31
31
  }
32
32
  _NewsroomTheme.isFeatureSupported = isFeatureSupported;
33
33
  })(NewsroomTheme || (NewsroomTheme = {}));
34
- export let NewsroomThemePreset;
34
+ export let NewsroomThemePreset;
35
+ (function (_NewsroomThemePreset) {})(NewsroomThemePreset || (NewsroomThemePreset = {}));
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.NewsroomWebhook = void 0;
7
7
  let NewsroomWebhook = exports.NewsroomWebhook = void 0;
8
8
  (function (_NewsroomWebhook) {
9
- let Event = /*#__PURE__*/function (Event) {
9
+ let Event;
10
+ (function (Event) {
10
11
  Event["STORY_CREATED"] = "story.created";
11
12
  Event["STORY_UPDATED"] = "story.updated";
12
13
  Event["STORY_DELETED"] = "story.deleted";
13
14
  Event["CATEGORY_CREATED"] = "category.created";
14
15
  Event["CATEGORY_UPDATED"] = "category.updated";
15
16
  Event["CATEGORY_DELETED"] = "category.deleted";
16
- return Event;
17
- }({});
17
+ })(Event || (Event = {}));
18
18
  _NewsroomWebhook.Event = Event;
19
19
  })(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 = {}));