@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
@@ -2,47 +2,47 @@ import { SenderDomain } from "./SenderDomain.js";
2
2
  export let Campaign;
3
3
  (function (_Campaign) {
4
4
  const SenderDomainVerificationFlow = _Campaign.SenderDomainVerificationFlow = SenderDomain.VerificationFlowVersion;
5
- let LifecycleStatus = /*#__PURE__*/function (LifecycleStatus) {
5
+ let LifecycleStatus;
6
+ (function (LifecycleStatus) {
6
7
  LifecycleStatus["DRAFT"] = "draft";
7
8
  LifecycleStatus["SCHEDULED"] = "scheduled";
8
9
  LifecycleStatus["PENDING"] = "pending";
9
10
  LifecycleStatus["SENT"] = "sent";
10
- return LifecycleStatus;
11
- }({});
11
+ })(LifecycleStatus || (LifecycleStatus = {}));
12
12
  _Campaign.LifecycleStatus = LifecycleStatus;
13
- let StoryAlignment = /*#__PURE__*/function (StoryAlignment) {
13
+ let StoryAlignment;
14
+ (function (StoryAlignment) {
14
15
  StoryAlignment["CENTER"] = "center";
15
16
  StoryAlignment["LEFT"] = "left";
16
17
  StoryAlignment["RIGHT"] = "right";
17
- return StoryAlignment;
18
- }({});
18
+ })(StoryAlignment || (StoryAlignment = {}));
19
19
  _Campaign.StoryAlignment = StoryAlignment;
20
- let StoryAppearance = /*#__PURE__*/function (StoryAppearance) {
20
+ let StoryAppearance;
21
+ (function (StoryAppearance) {
21
22
  StoryAppearance["INTRO"] = "intro";
22
23
  StoryAppearance["FULL"] = "full";
23
- return StoryAppearance;
24
- }({});
24
+ })(StoryAppearance || (StoryAppearance = {}));
25
25
  _Campaign.StoryAppearance = StoryAppearance;
26
- let StoryHeaderFooter = /*#__PURE__*/function (StoryHeaderFooter) {
26
+ let StoryHeaderFooter;
27
+ (function (StoryHeaderFooter) {
27
28
  StoryHeaderFooter["NONE"] = "none";
28
29
  StoryHeaderFooter["STANDARD"] = "standard";
29
30
  StoryHeaderFooter["FULL"] = "full";
30
- return StoryHeaderFooter;
31
- }({});
31
+ })(StoryHeaderFooter || (StoryHeaderFooter = {}));
32
32
  _Campaign.StoryHeaderFooter = StoryHeaderFooter;
33
- let SenderDomainVerificationStatus = /*#__PURE__*/function (SenderDomainVerificationStatus) {
33
+ let SenderDomainVerificationStatus;
34
+ (function (SenderDomainVerificationStatus) {
34
35
  SenderDomainVerificationStatus["UNKNOWN"] = "unknown";
35
36
  SenderDomainVerificationStatus["VALID"] = "valid";
36
37
  SenderDomainVerificationStatus["INVALID"] = "invalid";
37
38
  SenderDomainVerificationStatus["NOT_APPLICABLE"] = "not-applicable";
38
- return SenderDomainVerificationStatus;
39
- }({});
39
+ })(SenderDomainVerificationStatus || (SenderDomainVerificationStatus = {}));
40
40
  _Campaign.SenderDomainVerificationStatus = SenderDomainVerificationStatus;
41
- let ClickTrackingVersion = /*#__PURE__*/function (ClickTrackingVersion) {
41
+ let ClickTrackingVersion;
42
+ (function (ClickTrackingVersion) {
42
43
  ClickTrackingVersion[ClickTrackingVersion["DEPRECATED"] = 1] = "DEPRECATED";
43
44
  ClickTrackingVersion[ClickTrackingVersion["ENHANCED"] = 2] = "ENHANCED";
44
- return ClickTrackingVersion;
45
- }({});
45
+ })(ClickTrackingVersion || (ClickTrackingVersion = {}));
46
46
  _Campaign.ClickTrackingVersion = ClickTrackingVersion;
47
47
  function isDraft(arg) {
48
48
  if (typeof arg === 'object') {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Category = void 0;
7
- let Category = exports.Category = void 0;
7
+ let Category;
8
+ exports.Category = Category;
8
9
  (function (_Category) {
9
10
  function isTranslated(category, locale) {
10
11
  const translation = category.i18n[localeCode(locale)];
@@ -4,22 +4,24 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Contact = void 0;
7
- let Contact = exports.Contact = void 0;
7
+ let Contact;
8
+ exports.Contact = Contact;
8
9
  (function (_Contact) {
9
- let Type = /*#__PURE__*/function (Type) {
10
+ let Type;
11
+ (function (Type) {
10
12
  Type["PERSON"] = "person";
11
13
  Type["ORGANISATION"] = "organisation";
12
- return Type;
13
- }({});
14
+ })(Type || (Type = {}));
14
15
  _Contact.Type = Type;
15
- let Gender = /*#__PURE__*/function (Gender) {
16
+ let Gender;
17
+ (function (Gender) {
16
18
  Gender["MALE"] = "male";
17
19
  Gender["FEMALE"] = "female";
18
20
  Gender["UNSPECIFIED"] = "unspecified";
19
- return Gender;
20
- }({});
21
+ })(Gender || (Gender = {}));
21
22
  _Contact.Gender = Gender;
22
- let Periodicity = /*#__PURE__*/function (Periodicity) {
23
+ let Periodicity;
24
+ (function (Periodicity) {
23
25
  Periodicity["DAILY"] = "daily";
24
26
  Periodicity["WEEKDAYS"] = "weekdays";
25
27
  Periodicity["WEEKLY"] = "weekly";
@@ -30,10 +32,10 @@ let Contact = exports.Contact = void 0;
30
32
  Periodicity["ANNUALLY"] = "annually";
31
33
  Periodicity["BI_ANUALLY"] = "bi-annually";
32
34
  Periodicity["SEMI_ANNUALLY"] = "semi-annually";
33
- return Periodicity;
34
- }({});
35
+ })(Periodicity || (Periodicity = {}));
35
36
  _Contact.Periodicity = Periodicity;
36
- let MediumType = /*#__PURE__*/function (MediumType) {
37
+ let MediumType;
38
+ (function (MediumType) {
37
39
  MediumType["WIRE"] = "wire";
38
40
  MediumType["PRINT"] = "print";
39
41
  MediumType["RADIO"] = "radio";
@@ -51,10 +53,10 @@ let Contact = exports.Contact = void 0;
51
53
  MediumType["PODCAST"] = "podcast";
52
54
  MediumType["NEWSLETTER"] = "newsletter";
53
55
  MediumType["NEWS_SITE"] = "news website";
54
- return MediumType;
55
- }({});
56
+ })(MediumType || (MediumType = {}));
56
57
  _Contact.MediumType = MediumType;
57
- let SocialNetwork = /*#__PURE__*/function (SocialNetwork) {
58
+ let SocialNetwork;
59
+ (function (SocialNetwork) {
58
60
  SocialNetwork["DISCORD"] = "discord";
59
61
  SocialNetwork["FACEBOOK"] = "facebook";
60
62
  SocialNetwork["INSTAGRAM"] = "instagram";
@@ -66,16 +68,15 @@ let Contact = exports.Contact = void 0;
66
68
  SocialNetwork["TWITCH"] = "twitch";
67
69
  SocialNetwork["TWITTER"] = "twitter";
68
70
  SocialNetwork["YOUTUBE"] = "youtube";
69
- return SocialNetwork;
70
- }({});
71
+ })(SocialNetwork || (SocialNetwork = {}));
71
72
  _Contact.SocialNetwork = SocialNetwork;
72
73
  let PhoneNumber;
73
74
  (function (_PhoneNumber) {
74
- let Type = /*#__PURE__*/function (Type) {
75
+ let Type;
76
+ (function (Type) {
75
77
  Type["TELEPHONE"] = "tel";
76
78
  Type["CELLPHONE"] = "cell";
77
- return Type;
78
- }({});
79
+ })(Type || (Type = {}));
79
80
  _PhoneNumber.Type = Type;
80
81
  })(PhoneNumber || (PhoneNumber = _Contact.PhoneNumber || (_Contact.PhoneNumber = {})));
81
82
  function isPerson(arg) {
@@ -1,19 +1,20 @@
1
1
  export let Contact;
2
2
  (function (_Contact) {
3
- let Type = /*#__PURE__*/function (Type) {
3
+ let Type;
4
+ (function (Type) {
4
5
  Type["PERSON"] = "person";
5
6
  Type["ORGANISATION"] = "organisation";
6
- return Type;
7
- }({});
7
+ })(Type || (Type = {}));
8
8
  _Contact.Type = Type;
9
- let Gender = /*#__PURE__*/function (Gender) {
9
+ let Gender;
10
+ (function (Gender) {
10
11
  Gender["MALE"] = "male";
11
12
  Gender["FEMALE"] = "female";
12
13
  Gender["UNSPECIFIED"] = "unspecified";
13
- return Gender;
14
- }({});
14
+ })(Gender || (Gender = {}));
15
15
  _Contact.Gender = Gender;
16
- let Periodicity = /*#__PURE__*/function (Periodicity) {
16
+ let Periodicity;
17
+ (function (Periodicity) {
17
18
  Periodicity["DAILY"] = "daily";
18
19
  Periodicity["WEEKDAYS"] = "weekdays";
19
20
  Periodicity["WEEKLY"] = "weekly";
@@ -24,10 +25,10 @@ export let Contact;
24
25
  Periodicity["ANNUALLY"] = "annually";
25
26
  Periodicity["BI_ANUALLY"] = "bi-annually";
26
27
  Periodicity["SEMI_ANNUALLY"] = "semi-annually";
27
- return Periodicity;
28
- }({});
28
+ })(Periodicity || (Periodicity = {}));
29
29
  _Contact.Periodicity = Periodicity;
30
- let MediumType = /*#__PURE__*/function (MediumType) {
30
+ let MediumType;
31
+ (function (MediumType) {
31
32
  MediumType["WIRE"] = "wire";
32
33
  MediumType["PRINT"] = "print";
33
34
  MediumType["RADIO"] = "radio";
@@ -45,10 +46,10 @@ export let Contact;
45
46
  MediumType["PODCAST"] = "podcast";
46
47
  MediumType["NEWSLETTER"] = "newsletter";
47
48
  MediumType["NEWS_SITE"] = "news website";
48
- return MediumType;
49
- }({});
49
+ })(MediumType || (MediumType = {}));
50
50
  _Contact.MediumType = MediumType;
51
- let SocialNetwork = /*#__PURE__*/function (SocialNetwork) {
51
+ let SocialNetwork;
52
+ (function (SocialNetwork) {
52
53
  SocialNetwork["DISCORD"] = "discord";
53
54
  SocialNetwork["FACEBOOK"] = "facebook";
54
55
  SocialNetwork["INSTAGRAM"] = "instagram";
@@ -60,16 +61,15 @@ export let Contact;
60
61
  SocialNetwork["TWITCH"] = "twitch";
61
62
  SocialNetwork["TWITTER"] = "twitter";
62
63
  SocialNetwork["YOUTUBE"] = "youtube";
63
- return SocialNetwork;
64
- }({});
64
+ })(SocialNetwork || (SocialNetwork = {}));
65
65
  _Contact.SocialNetwork = SocialNetwork;
66
66
  let PhoneNumber;
67
67
  (function (_PhoneNumber) {
68
- let Type = /*#__PURE__*/function (Type) {
68
+ let Type;
69
+ (function (Type) {
69
70
  Type["TELEPHONE"] = "tel";
70
71
  Type["CELLPHONE"] = "cell";
71
- return Type;
72
- }({});
72
+ })(Type || (Type = {}));
73
73
  _PhoneNumber.Type = Type;
74
74
  })(PhoneNumber || (PhoneNumber = _Contact.PhoneNumber || (_Contact.PhoneNumber = {})));
75
75
  function isPerson(arg) {
@@ -6,15 +6,15 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ContactDuplicateSuggestion = void 0;
7
7
  /**
8
8
  * Value in range 0.0 ... 1.0.
9
- */
10
- let ContactDuplicateSuggestion = exports.ContactDuplicateSuggestion = void 0;
9
+ */let ContactDuplicateSuggestion;
10
+ exports.ContactDuplicateSuggestion = ContactDuplicateSuggestion;
11
11
  (function (_ContactDuplicateSuggestion) {
12
- let Status = /*#__PURE__*/function (Status) {
12
+ let Status;
13
+ (function (Status) {
13
14
  Status["UNSEEN"] = "unseen";
14
15
  Status["ACCEPTED"] = "accepted";
15
16
  Status["DECLINED"] = "declined";
16
- return Status;
17
- }({});
17
+ })(Status || (Status = {}));
18
18
  _ContactDuplicateSuggestion.Status = Status;
19
19
  function isUnseen(arg) {
20
20
  if (arg !== null && typeof arg === 'object') {
@@ -1,14 +1,15 @@
1
1
  /**
2
2
  * Value in range 0.0 ... 1.0.
3
3
  */
4
+
4
5
  export let ContactDuplicateSuggestion;
5
6
  (function (_ContactDuplicateSuggestion) {
6
- let Status = /*#__PURE__*/function (Status) {
7
+ let Status;
8
+ (function (Status) {
7
9
  Status["UNSEEN"] = "unseen";
8
10
  Status["ACCEPTED"] = "accepted";
9
11
  Status["DECLINED"] = "declined";
10
- return Status;
11
- }({});
12
+ })(Status || (Status = {}));
12
13
  _ContactDuplicateSuggestion.Status = Status;
13
14
  function isUnseen(arg) {
14
15
  if (arg !== null && typeof arg === 'object') {
@@ -4,13 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ContactsExport = void 0;
7
- let ContactsExport = exports.ContactsExport = void 0;
7
+ let ContactsExport;
8
+ exports.ContactsExport = ContactsExport;
8
9
  (function (_ContactsExport) {
9
- let Status = /*#__PURE__*/function (Status) {
10
+ let Status;
11
+ (function (Status) {
10
12
  Status["NEW"] = "new";
11
13
  Status["DONE"] = "done";
12
14
  Status["FAILED"] = "failed";
13
- return Status;
14
- }({});
15
+ })(Status || (Status = {}));
15
16
  _ContactsExport.Status = Status;
16
17
  })(ContactsExport || (exports.ContactsExport = ContactsExport = {}));
@@ -1,10 +1,10 @@
1
1
  export let ContactsExport;
2
2
  (function (_ContactsExport) {
3
- let Status = /*#__PURE__*/function (Status) {
3
+ let Status;
4
+ (function (Status) {
4
5
  Status["NEW"] = "new";
5
6
  Status["DONE"] = "done";
6
7
  Status["FAILED"] = "failed";
7
- return Status;
8
- }({});
8
+ })(Status || (Status = {}));
9
9
  _ContactsExport.Status = Status;
10
10
  })(ContactsExport || (ContactsExport = {}));
@@ -4,15 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ContactsScope = void 0;
7
- let ContactsScope = exports.ContactsScope = void 0;
7
+ let ContactsScope;
8
+ exports.ContactsScope = ContactsScope;
8
9
  (function (_ContactsScope) {
9
- let Type = /*#__PURE__*/function (Type) {
10
+ let Type;
11
+ (function (Type) {
10
12
  Type["ALL_CONTACTS"] = "scope:contacts";
11
13
  Type["CONTACT_EMPLOYEES"] = "scope:contact_employees";
12
14
  Type["CONTACT_ORGANISATIONS"] = "scope:contact_organisations";
13
15
  Type["CAMPAIGN_RECIPIENTS"] = "scope:campaign_recipients";
14
16
  Type["CAMPAIGN_REPORT"] = "scope:campaign_report";
15
- return Type;
16
- }({});
17
+ })(Type || (Type = {}));
17
18
  _ContactsScope.Type = Type;
18
19
  })(ContactsScope || (exports.ContactsScope = ContactsScope = {}));
@@ -1,12 +1,12 @@
1
1
  export let ContactsScope;
2
2
  (function (_ContactsScope) {
3
- let Type = /*#__PURE__*/function (Type) {
3
+ let Type;
4
+ (function (Type) {
4
5
  Type["ALL_CONTACTS"] = "scope:contacts";
5
6
  Type["CONTACT_EMPLOYEES"] = "scope:contact_employees";
6
7
  Type["CONTACT_ORGANISATIONS"] = "scope:contact_organisations";
7
8
  Type["CAMPAIGN_RECIPIENTS"] = "scope:campaign_recipients";
8
9
  Type["CAMPAIGN_REPORT"] = "scope:campaign_report";
9
- return Type;
10
- }({});
10
+ })(Type || (Type = {}));
11
11
  _ContactsScope.Type = Type;
12
12
  })(ContactsScope || (ContactsScope = {}));
@@ -4,18 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CoverageEntry = void 0;
7
- let CoverageEntry = exports.CoverageEntry = void 0;
7
+ let CoverageEntry;
8
+ exports.CoverageEntry = CoverageEntry;
8
9
  (function (_CoverageEntry) {
9
- let Type = /*#__PURE__*/function (Type) {
10
+ let Type;
11
+ (function (Type) {
10
12
  Type["ONLINE"] = "online";
11
13
  Type["SOCIAL"] = "social";
12
14
  Type["PRINT"] = "print";
13
15
  Type["RADIO"] = "radio";
14
16
  Type["TELEVISION"] = "television";
15
- return Type;
16
- }({});
17
+ })(Type || (Type = {}));
17
18
  _CoverageEntry.Type = Type;
18
- let Provider = /*#__PURE__*/function (Provider) {
19
+ let Provider;
20
+ (function (Provider) {
19
21
  Provider["AMMCO"] = "ammco";
20
22
  Provider["AUXIPRESS"] = "auxipress";
21
23
  Provider["BELGA"] = "belga";
@@ -25,7 +27,6 @@ let CoverageEntry = exports.CoverageEntry = void 0;
25
27
  Provider["MEDIAWEB"] = "mediaweb";
26
28
  Provider["MELTWATER"] = "meltwater";
27
29
  Provider["MANUAL"] = "manual";
28
- return Provider;
29
- }({});
30
+ })(Provider || (Provider = {}));
30
31
  _CoverageEntry.Provider = Provider;
31
32
  })(CoverageEntry || (exports.CoverageEntry = CoverageEntry = {}));
@@ -1,15 +1,16 @@
1
1
  export let CoverageEntry;
2
2
  (function (_CoverageEntry) {
3
- let Type = /*#__PURE__*/function (Type) {
3
+ let Type;
4
+ (function (Type) {
4
5
  Type["ONLINE"] = "online";
5
6
  Type["SOCIAL"] = "social";
6
7
  Type["PRINT"] = "print";
7
8
  Type["RADIO"] = "radio";
8
9
  Type["TELEVISION"] = "television";
9
- return Type;
10
- }({});
10
+ })(Type || (Type = {}));
11
11
  _CoverageEntry.Type = Type;
12
- let Provider = /*#__PURE__*/function (Provider) {
12
+ let Provider;
13
+ (function (Provider) {
13
14
  Provider["AMMCO"] = "ammco";
14
15
  Provider["AUXIPRESS"] = "auxipress";
15
16
  Provider["BELGA"] = "belga";
@@ -19,7 +20,6 @@ export let CoverageEntry;
19
20
  Provider["MEDIAWEB"] = "mediaweb";
20
21
  Provider["MELTWATER"] = "meltwater";
21
22
  Provider["MANUAL"] = "manual";
22
- return Provider;
23
- }({});
23
+ })(Provider || (Provider = {}));
24
24
  _CoverageEntry.Provider = Provider;
25
25
  })(CoverageEntry || (CoverageEntry = {}));
@@ -4,20 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Culture = void 0;
7
- let Culture = exports.Culture = void 0;
7
+ let Culture;
8
+ exports.Culture = Culture;
8
9
  (function (_Culture) {
9
- let TextDirection = /*#__PURE__*/function (TextDirection) {
10
+ let TextDirection;
11
+ (function (TextDirection) {
10
12
  TextDirection["LTR"] = "ltr";
11
13
  TextDirection["RTL"] = "rtl";
12
- return TextDirection;
13
- }({});
14
+ })(TextDirection || (TextDirection = {}));
14
15
  _Culture.TextDirection = TextDirection;
15
- /**
16
- * Primary locale code used everywhere in the Prezly app.
17
- */
18
- /**
19
- * Locale ISO code to be used in HTML attributes.
20
- */
21
16
  function isoCode(code) {
22
17
  return code.replace('_', '-');
23
18
  }
@@ -1,17 +1,11 @@
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
- /**
10
- * Primary locale code used everywhere in the Prezly app.
11
- */
12
- /**
13
- * Locale ISO code to be used in HTML attributes.
14
- */
15
9
  function isoCode(code) {
16
10
  return code.replace('_', '-');
17
11
  }
@@ -4,10 +4,11 @@ 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;
8
+ exports.Currency = Currency;
9
+ (function (Currency) {
8
10
  Currency["EUR"] = "eur";
9
11
  Currency["USD"] = "usd";
10
12
  Currency["GBP"] = "gbp";
11
13
  Currency["AUD"] = "aud";
12
- return Currency;
13
- }({});
14
+ })(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 = {}));
@@ -4,14 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.EmailRecipient = void 0;
7
- let EmailRecipient = exports.EmailRecipient = void 0;
7
+ let EmailRecipient;
8
+ exports.EmailRecipient = EmailRecipient;
8
9
  (function (_EmailRecipient) {
9
- let EmailAddressStatus = /*#__PURE__*/function (EmailAddressStatus) {
10
+ let EmailAddressStatus;
11
+ (function (EmailAddressStatus) {
10
12
  EmailAddressStatus["OK"] = "ok";
11
13
  EmailAddressStatus["BOUNCED"] = "bounced";
12
14
  EmailAddressStatus["UNSUBSCRIBED"] = "unsubscribed";
13
15
  EmailAddressStatus["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
14
- return EmailAddressStatus;
15
- }({});
16
+ })(EmailAddressStatus || (EmailAddressStatus = {}));
16
17
  _EmailRecipient.EmailAddressStatus = EmailAddressStatus;
17
18
  })(EmailRecipient || (exports.EmailRecipient = EmailRecipient = {}));
@@ -1,11 +1,11 @@
1
1
  export let EmailRecipient;
2
2
  (function (_EmailRecipient) {
3
- let EmailAddressStatus = /*#__PURE__*/function (EmailAddressStatus) {
3
+ let EmailAddressStatus;
4
+ (function (EmailAddressStatus) {
4
5
  EmailAddressStatus["OK"] = "ok";
5
6
  EmailAddressStatus["BOUNCED"] = "bounced";
6
7
  EmailAddressStatus["UNSUBSCRIBED"] = "unsubscribed";
7
8
  EmailAddressStatus["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
8
- return EmailAddressStatus;
9
- }({});
9
+ })(EmailAddressStatus || (EmailAddressStatus = {}));
10
10
  _EmailRecipient.EmailAddressStatus = EmailAddressStatus;
11
11
  })(EmailRecipient || (EmailRecipient = {}));
@@ -1,4 +1,5 @@
1
1
  export interface EmailSubscription {
2
2
  id: string;
3
3
  email_address: string;
4
+ number_of_contacts: number;
4
5
  }
@@ -4,9 +4,10 @@ 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;
8
+ exports.JobStatus = JobStatus;
9
+ (function (JobStatus) {
8
10
  JobStatus["PENDING"] = "pending";
9
11
  JobStatus["RESOLVED"] = "resolved";
10
12
  JobStatus["REJECTED"] = "rejected";
11
- return JobStatus;
12
- }({});
13
+ })(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 = {}));
@@ -4,18 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.License = void 0;
7
- let License = exports.License = void 0;
7
+ let License;
8
+ exports.License = License;
8
9
  (function (_License) {
9
- let Type = /*#__PURE__*/function (Type) {
10
+ let Type;
11
+ (function (Type) {
10
12
  Type["FAVOUR"] = "favour";
11
13
  Type["FREE"] = "free";
12
14
  Type["PAID_AUTO"] = "paid_auto";
13
15
  Type["PAID_MANUAL"] = "paid_manual";
14
16
  Type["TRIAL"] = "trial";
15
- return Type;
16
- }({});
17
+ })(Type || (Type = {}));
17
18
  _License.Type = Type;
18
- let Status = /*#__PURE__*/function (Status) {
19
+ let Status;
20
+ (function (Status) {
19
21
  Status["TRIAL"] = "trial";
20
22
  Status["ACTIVE"] = "active";
21
23
  Status["PAST_DUE"] = "past_due";
@@ -24,14 +26,13 @@ let License = exports.License = void 0;
24
26
  Status["INCOMPLETE"] = "incomplete";
25
27
  Status["CANCELED"] = "canceled";
26
28
  Status["UNPAID"] = "unpaid";
27
- return Status;
28
- }({});
29
+ })(Status || (Status = {}));
29
30
  _License.Status = Status;
30
- let CompanyType = /*#__PURE__*/function (CompanyType) {
31
+ let CompanyType;
32
+ (function (CompanyType) {
31
33
  CompanyType["BRAND"] = "brand";
32
34
  CompanyType["AGENCY"] = "agency";
33
35
  CompanyType["INTERNAL"] = "internal";
34
- return CompanyType;
35
- }({});
36
+ })(CompanyType || (CompanyType = {}));
36
37
  _License.CompanyType = CompanyType;
37
38
  })(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,14 +19,13 @@ 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 CompanyType = /*#__PURE__*/function (CompanyType) {
24
+ let CompanyType;
25
+ (function (CompanyType) {
25
26
  CompanyType["BRAND"] = "brand";
26
27
  CompanyType["AGENCY"] = "agency";
27
28
  CompanyType["INTERNAL"] = "internal";
28
- return CompanyType;
29
- }({});
29
+ })(CompanyType || (CompanyType = {}));
30
30
  _License.CompanyType = CompanyType;
31
31
  })(License || (License = {}));