@prezly/sdk 19.4.2 → 19.6.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 (126) 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/Client.cjs +17 -0
  24. package/dist/endpoints/NewsroomSubscriptions/Client.d.ts +2 -1
  25. package/dist/endpoints/NewsroomSubscriptions/Client.js +17 -0
  26. package/dist/endpoints/NewsroomSubscriptions/index.cjs +0 -2
  27. package/dist/endpoints/NewsroomSubscriptions/types.d.ts +15 -1
  28. package/dist/endpoints/NewsroomThemes/index.cjs +0 -1
  29. package/dist/endpoints/NewsroomWebhooks/index.cjs +0 -2
  30. package/dist/endpoints/Newsrooms/index.cjs +0 -2
  31. package/dist/endpoints/Newsrooms/types.d.ts +1 -0
  32. package/dist/endpoints/NotificationSubscriptions/index.cjs +0 -2
  33. package/dist/endpoints/PricingTables/index.cjs +0 -2
  34. package/dist/endpoints/PricingTables/types.cjs +17 -13
  35. package/dist/endpoints/PricingTables/types.js +12 -12
  36. package/dist/endpoints/SenderAddresses/index.cjs +0 -2
  37. package/dist/endpoints/Snippets/index.cjs +0 -2
  38. package/dist/endpoints/Stories/Client.cjs +4 -23
  39. package/dist/endpoints/Stories/Client.js +7 -22
  40. package/dist/endpoints/Stories/index.cjs +0 -3
  41. package/dist/endpoints/Stories/scopes.cjs +3 -2
  42. package/dist/endpoints/Stories/types.cjs +4 -14
  43. package/dist/endpoints/Stories/types.js +3 -13
  44. package/dist/endpoints/Subscriptions/index.cjs +0 -2
  45. package/dist/endpoints/Subscriptions/types.cjs +4 -3
  46. package/dist/endpoints/Subscriptions/types.js +3 -3
  47. package/dist/endpoints/index.cjs +3 -3
  48. package/dist/http/constants.cjs +6 -3
  49. package/dist/http/index.cjs +8 -8
  50. package/dist/http/types.cjs +8 -6
  51. package/dist/http/types.js +6 -6
  52. package/dist/index.cjs +4 -7
  53. package/dist/routing.cjs +3 -3
  54. package/dist/routing.d.ts +0 -1
  55. package/dist/routing.js +0 -1
  56. package/dist/types/BillingCycle.cjs +4 -3
  57. package/dist/types/BillingCycle.js +3 -3
  58. package/dist/types/Campaign.cjs +20 -19
  59. package/dist/types/Campaign.js +18 -18
  60. package/dist/types/Category.cjs +2 -1
  61. package/dist/types/Contact.cjs +20 -19
  62. package/dist/types/Contact.js +18 -18
  63. package/dist/types/ContactDuplicateSuggestion.cjs +5 -5
  64. package/dist/types/ContactDuplicateSuggestion.js +4 -3
  65. package/dist/types/ContactsExport.cjs +5 -4
  66. package/dist/types/ContactsExport.js +3 -3
  67. package/dist/types/ContactsScope.cjs +5 -4
  68. package/dist/types/ContactsScope.js +3 -3
  69. package/dist/types/CoverageEntry.cjs +8 -7
  70. package/dist/types/CoverageEntry.js +6 -6
  71. package/dist/types/Culture.cjs +5 -10
  72. package/dist/types/Culture.js +3 -9
  73. package/dist/types/Currency.cjs +4 -3
  74. package/dist/types/Currency.js +3 -3
  75. package/dist/types/EmailRecipient.cjs +5 -4
  76. package/dist/types/EmailRecipient.js +3 -3
  77. package/dist/types/EmailSubscription.d.ts +1 -0
  78. package/dist/types/JobState.cjs +4 -3
  79. package/dist/types/JobState.js +3 -3
  80. package/dist/types/License.cjs +11 -10
  81. package/dist/types/License.js +9 -9
  82. package/dist/types/Newsroom.cjs +11 -13
  83. package/dist/types/Newsroom.d.ts +2 -0
  84. package/dist/types/Newsroom.js +9 -12
  85. package/dist/types/NewsroomDomain.cjs +8 -7
  86. package/dist/types/NewsroomDomain.js +6 -6
  87. package/dist/types/NewsroomGallery.cjs +8 -7
  88. package/dist/types/NewsroomGallery.js +6 -6
  89. package/dist/types/NewsroomSubscription.cjs +1 -0
  90. package/dist/types/NewsroomSubscription.d.ts +8 -0
  91. package/dist/types/NewsroomSubscription.js +1 -0
  92. package/dist/types/NewsroomTheme.cjs +11 -8
  93. package/dist/types/NewsroomTheme.js +8 -7
  94. package/dist/types/NewsroomWebhook.cjs +5 -4
  95. package/dist/types/NewsroomWebhook.js +3 -3
  96. package/dist/types/NotificationSubscription.cjs +5 -4
  97. package/dist/types/NotificationSubscription.js +3 -3
  98. package/dist/types/Permissions.cjs +4 -3
  99. package/dist/types/Permissions.js +3 -3
  100. package/dist/types/Plan.cjs +8 -7
  101. package/dist/types/Plan.js +8 -8
  102. package/dist/types/PrivacyRequest.cjs +8 -7
  103. package/dist/types/PrivacyRequest.js +6 -6
  104. package/dist/types/SenderAddress.cjs +5 -4
  105. package/dist/types/SenderAddress.js +3 -3
  106. package/dist/types/SenderDomain.cjs +5 -4
  107. package/dist/types/SenderDomain.js +3 -3
  108. package/dist/types/SortOrder.cjs +5 -4
  109. package/dist/types/SortOrder.js +3 -3
  110. package/dist/types/Story.cjs +18 -29
  111. package/dist/types/Story.js +16 -28
  112. package/dist/types/User.cjs +8 -7
  113. package/dist/types/User.js +6 -6
  114. package/dist/types/common/Notification.cjs +5 -4
  115. package/dist/types/common/Notification.js +3 -3
  116. package/dist/types/common/OEmbedInfo.cjs +5 -4
  117. package/dist/types/common/OEmbedInfo.js +3 -3
  118. package/dist/types/common/Pagination.cjs +4 -4
  119. package/dist/types/common/Pagination.js +3 -3
  120. package/dist/types/common/Query.cjs +2 -1
  121. package/dist/types/common/Query.js +1 -0
  122. package/dist/types/common/index.cjs +0 -6
  123. package/dist/types/index.cjs +10 -36
  124. package/dist/types/index.d.ts +1 -0
  125. package/dist/types/index.js +1 -0
  126. package/package.json +1 -1
@@ -4,31 +4,29 @@ 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
- let Status = /*#__PURE__*/function (Status) {
10
+ let Status;
11
+ (function (Status) {
10
12
  Status["ACTIVE"] = "active";
11
13
  Status["INACTIVE"] = "inactive";
12
14
  Status["ARCHIVED"] = "archived";
13
- return Status;
14
- }({});
15
+ })(Status || (Status = {}));
15
16
  _Newsroom.Status = Status;
16
- let EmailBrandingMode = /*#__PURE__*/function (EmailBrandingMode) {
17
+ let EmailBrandingMode;
18
+ (function (EmailBrandingMode) {
17
19
  EmailBrandingMode["DEFAULT"] = "default";
18
20
  EmailBrandingMode["CUSTOM"] = "custom";
19
- return EmailBrandingMode;
20
- }({});
21
+ })(EmailBrandingMode || (EmailBrandingMode = {}));
21
22
  _Newsroom.EmailBrandingMode = EmailBrandingMode;
22
- let TrackingPolicy = /*#__PURE__*/function (TrackingPolicy) {
23
+ let TrackingPolicy;
24
+ (function (TrackingPolicy) {
23
25
  TrackingPolicy["DEFAULT"] = "default";
24
26
  TrackingPolicy["DISABLED"] = "disabled";
25
27
  TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
26
- return TrackingPolicy;
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);
@@ -98,6 +98,7 @@ export interface Newsroom extends NewsroomRef {
98
98
  google_search_console_key: string | null;
99
99
  segment_analytics_id: string | null;
100
100
  is_subscription_form_enabled: boolean;
101
+ auto_create_contacts_from_subscribers: boolean;
101
102
  is_white_labeled: boolean;
102
103
  is_plausible_enabled: boolean;
103
104
  plausible_site_id: string;
@@ -119,6 +120,7 @@ export declare namespace Newsroom {
119
120
  }
120
121
  interface EmailBranding {
121
122
  background_color: string;
123
+ header_color: string;
122
124
  title_color: string;
123
125
  text_color: string;
124
126
  link_color: string;
@@ -1,28 +1,25 @@
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
- /*
24
- * Status checks
25
- */
26
23
  function isActive(arg) {
27
24
  if (typeof arg === 'object' && arg !== null) {
28
25
  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 = {}));
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,8 @@
1
+ import type { CultureRef } from './Culture';
2
+ import type { EmailSubscription } from './EmailSubscription';
3
+ export interface NewsroomSubscription {
4
+ subscriber: EmailSubscription;
5
+ is_active: boolean;
6
+ created_at: string;
7
+ culture: CultureRef;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -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 {