@prezly/sdk 25.2.0 → 25.4.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 (131) hide show
  1. package/dist/api/ApiClient.d.ts +4 -4
  2. package/dist/api/DeferredJobsApiClient.d.ts +4 -4
  3. package/dist/api/constants.cjs +1 -1
  4. package/dist/api/constants.js +1 -1
  5. package/dist/endpoints/Accounts/Client.d.ts +1 -1
  6. package/dist/endpoints/Billing/types.cjs +6 -6
  7. package/dist/endpoints/Billing/types.js +6 -6
  8. package/dist/endpoints/CampaignRecipients/Client.d.ts +1 -1
  9. package/dist/endpoints/Campaigns/Client.cjs +14 -1
  10. package/dist/endpoints/Campaigns/Client.d.ts +12 -9
  11. package/dist/endpoints/Campaigns/Client.js +14 -1
  12. package/dist/endpoints/ContactTagGroups/types.cjs +3 -3
  13. package/dist/endpoints/ContactTagGroups/types.js +3 -3
  14. package/dist/endpoints/ContactTags/Client.d.ts +4 -4
  15. package/dist/endpoints/Contacts/Client.d.ts +6 -6
  16. package/dist/endpoints/ContactsExports/Client.d.ts +2 -2
  17. package/dist/endpoints/CoverageIntegrations/Client.d.ts +3 -3
  18. package/dist/endpoints/NewsroomCategories/Client.d.ts +3 -3
  19. package/dist/endpoints/NewsroomGalleries/Client.d.ts +1 -1
  20. package/dist/endpoints/NewsroomLanguages/Client.d.ts +10 -10
  21. package/dist/endpoints/NewsroomPrivacyRequests/Client.d.ts +2 -2
  22. package/dist/endpoints/NewsroomThemes/Client.d.ts +1 -1
  23. package/dist/endpoints/NewsroomWebhooks/Client.d.ts +3 -3
  24. package/dist/endpoints/PricingTables/types.cjs +12 -12
  25. package/dist/endpoints/PricingTables/types.js +12 -12
  26. package/dist/endpoints/SenderAddresses/Client.d.ts +3 -3
  27. package/dist/endpoints/Stories/Client.cjs +4 -2
  28. package/dist/endpoints/Stories/Client.d.ts +104 -104
  29. package/dist/endpoints/Stories/Client.js +4 -2
  30. package/dist/endpoints/Stories/types.d.ts +4 -2
  31. package/dist/endpoints/Subscriptions/Client.d.ts +2 -2
  32. package/dist/endpoints/Subscriptions/types.cjs +3 -3
  33. package/dist/endpoints/Subscriptions/types.js +3 -3
  34. package/dist/endpoints/Templates/Client.cjs +52 -0
  35. package/dist/endpoints/Templates/Client.d.ts +13 -0
  36. package/dist/endpoints/Templates/Client.js +46 -0
  37. package/dist/endpoints/Templates/index.cjs +27 -0
  38. package/dist/endpoints/Templates/index.d.ts +2 -0
  39. package/dist/endpoints/Templates/index.js +2 -0
  40. package/dist/endpoints/Templates/types.d.ts +8 -0
  41. package/dist/endpoints/index.cjs +4 -2
  42. package/dist/endpoints/index.d.ts +1 -0
  43. package/dist/endpoints/index.js +1 -0
  44. package/dist/http/lib.cjs +1 -1
  45. package/dist/http/types.cjs +6 -6
  46. package/dist/http/types.js +6 -6
  47. package/dist/routing.cjs +2 -1
  48. package/dist/routing.d.ts +1 -0
  49. package/dist/routing.js +2 -1
  50. package/dist/types/BillingCycle.cjs +3 -3
  51. package/dist/types/BillingCycle.js +3 -3
  52. package/dist/types/BulkDeletePayload.cjs +1 -0
  53. package/dist/types/BulkDeletePayload.d.ts +5 -0
  54. package/dist/types/BulkDeletePayload.js +1 -0
  55. package/dist/types/Campaign.cjs +18 -18
  56. package/dist/types/Campaign.js +18 -18
  57. package/dist/types/Category.cjs +0 -1
  58. package/dist/types/Category.js +0 -1
  59. package/dist/types/Contact.cjs +18 -18
  60. package/dist/types/Contact.js +18 -18
  61. package/dist/types/ContactDuplicateSuggestion.cjs +3 -3
  62. package/dist/types/ContactDuplicateSuggestion.js +3 -4
  63. package/dist/types/ContactTag.cjs +1 -2
  64. package/dist/types/ContactTag.js +1 -2
  65. package/dist/types/ContactsExport.cjs +3 -3
  66. package/dist/types/ContactsExport.js +3 -3
  67. package/dist/types/ContactsScope.cjs +3 -3
  68. package/dist/types/ContactsScope.js +3 -3
  69. package/dist/types/CoverageEntry.cjs +9 -9
  70. package/dist/types/CoverageEntry.js +9 -9
  71. package/dist/types/CoverageIntegration.cjs +3 -3
  72. package/dist/types/CoverageIntegration.js +3 -3
  73. package/dist/types/CoverageIntegrationRun.cjs +3 -3
  74. package/dist/types/CoverageIntegrationRun.js +3 -3
  75. package/dist/types/Culture.cjs +3 -3
  76. package/dist/types/Culture.js +3 -3
  77. package/dist/types/Currency.cjs +3 -3
  78. package/dist/types/Currency.js +3 -3
  79. package/dist/types/EmailRecipient.cjs +6 -6
  80. package/dist/types/EmailRecipient.js +6 -6
  81. package/dist/types/JobState.cjs +3 -3
  82. package/dist/types/JobState.js +3 -3
  83. package/dist/types/License.cjs +12 -12
  84. package/dist/types/License.js +12 -12
  85. package/dist/types/Newsroom.cjs +12 -12
  86. package/dist/types/Newsroom.js +12 -12
  87. package/dist/types/NewsroomDomain.cjs +6 -6
  88. package/dist/types/NewsroomDomain.js +6 -6
  89. package/dist/types/NewsroomGallery.cjs +6 -6
  90. package/dist/types/NewsroomGallery.js +6 -6
  91. package/dist/types/NewsroomTheme.cjs +7 -8
  92. package/dist/types/NewsroomTheme.js +7 -8
  93. package/dist/types/NewsroomWebhook.cjs +3 -3
  94. package/dist/types/NewsroomWebhook.js +3 -3
  95. package/dist/types/NotificationSubscription.cjs +3 -3
  96. package/dist/types/NotificationSubscription.js +3 -3
  97. package/dist/types/Permissions.cjs +3 -3
  98. package/dist/types/Permissions.js +3 -3
  99. package/dist/types/Plan.cjs +10 -10
  100. package/dist/types/Plan.js +11 -11
  101. package/dist/types/Price.cjs +6 -6
  102. package/dist/types/Price.js +6 -6
  103. package/dist/types/PrivacyRequest.cjs +6 -6
  104. package/dist/types/PrivacyRequest.js +6 -6
  105. package/dist/types/SenderAddress.cjs +3 -3
  106. package/dist/types/SenderAddress.js +3 -3
  107. package/dist/types/SenderDomain.cjs +3 -3
  108. package/dist/types/SenderDomain.js +3 -3
  109. package/dist/types/SortOrder.cjs +3 -3
  110. package/dist/types/SortOrder.js +3 -3
  111. package/dist/types/Story.cjs +12 -12
  112. package/dist/types/Story.js +12 -12
  113. package/dist/types/Template.cjs +1 -0
  114. package/dist/types/Template.d.ts +11 -0
  115. package/dist/types/Template.js +1 -0
  116. package/dist/types/User.cjs +6 -6
  117. package/dist/types/User.js +6 -6
  118. package/dist/types/common/Notification.cjs +3 -3
  119. package/dist/types/common/Notification.js +3 -3
  120. package/dist/types/common/OEmbedInfo.cjs +3 -3
  121. package/dist/types/common/OEmbedInfo.js +3 -3
  122. package/dist/types/common/Pagination.cjs +3 -3
  123. package/dist/types/common/Pagination.js +3 -3
  124. package/dist/types/common/Query.js +0 -1
  125. package/dist/types/index.cjs +15 -4
  126. package/dist/types/index.d.ts +2 -1
  127. package/dist/types/index.js +2 -1
  128. package/package.json +1 -1
  129. package/dist/types/StoriesBulkSelector.d.ts +0 -4
  130. /package/dist/{types/StoriesBulkSelector.cjs → endpoints/Templates/types.cjs} +0 -0
  131. /package/dist/{types/StoriesBulkSelector.js → endpoints/Templates/types.js} +0 -0
@@ -8,48 +8,48 @@ var _SenderDomain = require("./SenderDomain.cjs");
8
8
  let Campaign = exports.Campaign = void 0;
9
9
  (function (_Campaign) {
10
10
  const SenderDomainVerificationFlow = _Campaign.SenderDomainVerificationFlow = _SenderDomain.SenderDomain.VerificationFlowVersion;
11
- let LifecycleStatus;
12
- (function (LifecycleStatus) {
11
+ let LifecycleStatus = /*#__PURE__*/function (LifecycleStatus) {
13
12
  LifecycleStatus["DRAFT"] = "draft";
14
13
  LifecycleStatus["SCHEDULED"] = "scheduled";
15
14
  LifecycleStatus["PENDING"] = "pending";
16
15
  LifecycleStatus["SENT"] = "sent";
17
- })(LifecycleStatus || (LifecycleStatus = {}));
16
+ return LifecycleStatus;
17
+ }({});
18
18
  _Campaign.LifecycleStatus = LifecycleStatus;
19
- let StoryAlignment;
20
- (function (StoryAlignment) {
19
+ let StoryAlignment = /*#__PURE__*/function (StoryAlignment) {
21
20
  StoryAlignment["CENTER"] = "center";
22
21
  StoryAlignment["LEFT"] = "left";
23
22
  StoryAlignment["RIGHT"] = "right";
24
- })(StoryAlignment || (StoryAlignment = {}));
23
+ return StoryAlignment;
24
+ }({});
25
25
  _Campaign.StoryAlignment = StoryAlignment;
26
- let StoryAppearance;
27
- (function (StoryAppearance) {
26
+ let StoryAppearance = /*#__PURE__*/function (StoryAppearance) {
28
27
  StoryAppearance["INTRO"] = "intro";
29
28
  StoryAppearance["FULL"] = "full";
30
- })(StoryAppearance || (StoryAppearance = {}));
29
+ return StoryAppearance;
30
+ }({});
31
31
  _Campaign.StoryAppearance = StoryAppearance;
32
- let StoryHeaderFooter;
33
- (function (StoryHeaderFooter) {
32
+ let StoryHeaderFooter = /*#__PURE__*/function (StoryHeaderFooter) {
34
33
  StoryHeaderFooter["NONE"] = "none";
35
34
  StoryHeaderFooter["STANDARD"] = "standard";
36
35
  StoryHeaderFooter["FULL"] = "full";
37
- })(StoryHeaderFooter || (StoryHeaderFooter = {}));
36
+ return StoryHeaderFooter;
37
+ }({});
38
38
  _Campaign.StoryHeaderFooter = StoryHeaderFooter;
39
- let SenderDomainVerificationStatus;
40
- (function (SenderDomainVerificationStatus) {
39
+ let SenderDomainVerificationStatus = /*#__PURE__*/function (SenderDomainVerificationStatus) {
41
40
  SenderDomainVerificationStatus["UNKNOWN"] = "unknown";
42
41
  SenderDomainVerificationStatus["VALID"] = "valid";
43
42
  SenderDomainVerificationStatus["INVALID"] = "invalid";
44
43
  SenderDomainVerificationStatus["NOT_APPLICABLE"] = "not-applicable";
45
- })(SenderDomainVerificationStatus || (SenderDomainVerificationStatus = {}));
44
+ return SenderDomainVerificationStatus;
45
+ }({});
46
46
  _Campaign.SenderDomainVerificationStatus = SenderDomainVerificationStatus;
47
- let ClickTrackingVersion;
48
- (function (ClickTrackingVersion) {
47
+ let ClickTrackingVersion = /*#__PURE__*/function (ClickTrackingVersion) {
49
48
  ClickTrackingVersion[ClickTrackingVersion["DEPRECATED"] = 1] = "DEPRECATED";
50
49
  ClickTrackingVersion[ClickTrackingVersion["ENHANCED"] = 2] = "ENHANCED";
51
50
  ClickTrackingVersion[ClickTrackingVersion["INHOUSE"] = 3] = "INHOUSE";
52
- })(ClickTrackingVersion || (ClickTrackingVersion = {}));
51
+ return ClickTrackingVersion;
52
+ }({});
53
53
  _Campaign.ClickTrackingVersion = ClickTrackingVersion;
54
54
  function isDraft(arg) {
55
55
  if (typeof arg === 'object') {
@@ -2,48 +2,48 @@ 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;
6
- (function (LifecycleStatus) {
5
+ let LifecycleStatus = /*#__PURE__*/function (LifecycleStatus) {
7
6
  LifecycleStatus["DRAFT"] = "draft";
8
7
  LifecycleStatus["SCHEDULED"] = "scheduled";
9
8
  LifecycleStatus["PENDING"] = "pending";
10
9
  LifecycleStatus["SENT"] = "sent";
11
- })(LifecycleStatus || (LifecycleStatus = {}));
10
+ return LifecycleStatus;
11
+ }({});
12
12
  _Campaign.LifecycleStatus = LifecycleStatus;
13
- let StoryAlignment;
14
- (function (StoryAlignment) {
13
+ let StoryAlignment = /*#__PURE__*/function (StoryAlignment) {
15
14
  StoryAlignment["CENTER"] = "center";
16
15
  StoryAlignment["LEFT"] = "left";
17
16
  StoryAlignment["RIGHT"] = "right";
18
- })(StoryAlignment || (StoryAlignment = {}));
17
+ return StoryAlignment;
18
+ }({});
19
19
  _Campaign.StoryAlignment = StoryAlignment;
20
- let StoryAppearance;
21
- (function (StoryAppearance) {
20
+ let StoryAppearance = /*#__PURE__*/function (StoryAppearance) {
22
21
  StoryAppearance["INTRO"] = "intro";
23
22
  StoryAppearance["FULL"] = "full";
24
- })(StoryAppearance || (StoryAppearance = {}));
23
+ return StoryAppearance;
24
+ }({});
25
25
  _Campaign.StoryAppearance = StoryAppearance;
26
- let StoryHeaderFooter;
27
- (function (StoryHeaderFooter) {
26
+ let StoryHeaderFooter = /*#__PURE__*/function (StoryHeaderFooter) {
28
27
  StoryHeaderFooter["NONE"] = "none";
29
28
  StoryHeaderFooter["STANDARD"] = "standard";
30
29
  StoryHeaderFooter["FULL"] = "full";
31
- })(StoryHeaderFooter || (StoryHeaderFooter = {}));
30
+ return StoryHeaderFooter;
31
+ }({});
32
32
  _Campaign.StoryHeaderFooter = StoryHeaderFooter;
33
- let SenderDomainVerificationStatus;
34
- (function (SenderDomainVerificationStatus) {
33
+ let SenderDomainVerificationStatus = /*#__PURE__*/function (SenderDomainVerificationStatus) {
35
34
  SenderDomainVerificationStatus["UNKNOWN"] = "unknown";
36
35
  SenderDomainVerificationStatus["VALID"] = "valid";
37
36
  SenderDomainVerificationStatus["INVALID"] = "invalid";
38
37
  SenderDomainVerificationStatus["NOT_APPLICABLE"] = "not-applicable";
39
- })(SenderDomainVerificationStatus || (SenderDomainVerificationStatus = {}));
38
+ return SenderDomainVerificationStatus;
39
+ }({});
40
40
  _Campaign.SenderDomainVerificationStatus = SenderDomainVerificationStatus;
41
- let ClickTrackingVersion;
42
- (function (ClickTrackingVersion) {
41
+ let ClickTrackingVersion = /*#__PURE__*/function (ClickTrackingVersion) {
43
42
  ClickTrackingVersion[ClickTrackingVersion["DEPRECATED"] = 1] = "DEPRECATED";
44
43
  ClickTrackingVersion[ClickTrackingVersion["ENHANCED"] = 2] = "ENHANCED";
45
44
  ClickTrackingVersion[ClickTrackingVersion["INHOUSE"] = 3] = "INHOUSE";
46
- })(ClickTrackingVersion || (ClickTrackingVersion = {}));
45
+ return ClickTrackingVersion;
46
+ }({});
47
47
  _Campaign.ClickTrackingVersion = ClickTrackingVersion;
48
48
  function isDraft(arg) {
49
49
  if (typeof arg === 'object') {
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.CategoryRef = exports.Category = void 0;
7
7
  let CategoryRef = exports.CategoryRef = void 0;
8
- (function (_CategoryRef) {})(CategoryRef || (exports.CategoryRef = CategoryRef = {}));
9
8
  let Category = exports.Category = void 0;
10
9
  (function (_Category) {
11
10
  function isTranslated(category, locale) {
@@ -1,5 +1,4 @@
1
1
  export let CategoryRef;
2
- (function (_CategoryRef) {})(CategoryRef || (CategoryRef = {}));
3
2
  export let Category;
4
3
  (function (_Category) {
5
4
  function isTranslated(category, locale) {
@@ -6,21 +6,20 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.Contact = void 0;
7
7
  let Contact = exports.Contact = void 0;
8
8
  (function (_Contact) {
9
- let Type;
10
- (function (Type) {
9
+ let Type = /*#__PURE__*/function (Type) {
11
10
  Type["PERSON"] = "person";
12
11
  Type["ORGANISATION"] = "organisation";
13
- })(Type || (Type = {}));
12
+ return Type;
13
+ }({});
14
14
  _Contact.Type = Type;
15
- let Gender;
16
- (function (Gender) {
15
+ let Gender = /*#__PURE__*/function (Gender) {
17
16
  Gender["MALE"] = "male";
18
17
  Gender["FEMALE"] = "female";
19
18
  Gender["UNSPECIFIED"] = "unspecified";
20
- })(Gender || (Gender = {}));
19
+ return Gender;
20
+ }({});
21
21
  _Contact.Gender = Gender;
22
- let Periodicity;
23
- (function (Periodicity) {
22
+ let Periodicity = /*#__PURE__*/function (Periodicity) {
24
23
  Periodicity["DAILY"] = "daily";
25
24
  Periodicity["WEEKDAYS"] = "weekdays";
26
25
  Periodicity["WEEKLY"] = "weekly";
@@ -31,10 +30,10 @@ let Contact = exports.Contact = void 0;
31
30
  Periodicity["ANNUALLY"] = "annually";
32
31
  Periodicity["BI_ANUALLY"] = "bi-annually";
33
32
  Periodicity["SEMI_ANNUALLY"] = "semi-annually";
34
- })(Periodicity || (Periodicity = {}));
33
+ return Periodicity;
34
+ }({});
35
35
  _Contact.Periodicity = Periodicity;
36
- let MediumType;
37
- (function (MediumType) {
36
+ let MediumType = /*#__PURE__*/function (MediumType) {
38
37
  MediumType["WIRE"] = "wire";
39
38
  MediumType["PRINT"] = "print";
40
39
  MediumType["RADIO"] = "radio";
@@ -52,10 +51,10 @@ let Contact = exports.Contact = void 0;
52
51
  MediumType["PODCAST"] = "podcast";
53
52
  MediumType["NEWSLETTER"] = "newsletter";
54
53
  MediumType["NEWS_SITE"] = "news website";
55
- })(MediumType || (MediumType = {}));
54
+ return MediumType;
55
+ }({});
56
56
  _Contact.MediumType = MediumType;
57
- let SocialNetwork;
58
- (function (SocialNetwork) {
57
+ let SocialNetwork = /*#__PURE__*/function (SocialNetwork) {
59
58
  SocialNetwork["DISCORD"] = "discord";
60
59
  SocialNetwork["FACEBOOK"] = "facebook";
61
60
  SocialNetwork["INSTAGRAM"] = "instagram";
@@ -67,15 +66,16 @@ let Contact = exports.Contact = void 0;
67
66
  SocialNetwork["TWITCH"] = "twitch";
68
67
  SocialNetwork["TWITTER"] = "twitter";
69
68
  SocialNetwork["YOUTUBE"] = "youtube";
70
- })(SocialNetwork || (SocialNetwork = {}));
69
+ return SocialNetwork;
70
+ }({});
71
71
  _Contact.SocialNetwork = SocialNetwork;
72
72
  let PhoneNumber;
73
73
  (function (_PhoneNumber) {
74
- let Type;
75
- (function (Type) {
74
+ let Type = /*#__PURE__*/function (Type) {
76
75
  Type["TELEPHONE"] = "tel";
77
76
  Type["CELLPHONE"] = "cell";
78
- })(Type || (Type = {}));
77
+ return Type;
78
+ }({});
79
79
  _PhoneNumber.Type = Type;
80
80
  })(PhoneNumber || (PhoneNumber = _Contact.PhoneNumber || (_Contact.PhoneNumber = {})));
81
81
  function isPerson(arg) {
@@ -1,20 +1,19 @@
1
1
  export let Contact;
2
2
  (function (_Contact) {
3
- let Type;
4
- (function (Type) {
3
+ let Type = /*#__PURE__*/function (Type) {
5
4
  Type["PERSON"] = "person";
6
5
  Type["ORGANISATION"] = "organisation";
7
- })(Type || (Type = {}));
6
+ return Type;
7
+ }({});
8
8
  _Contact.Type = Type;
9
- let Gender;
10
- (function (Gender) {
9
+ let Gender = /*#__PURE__*/function (Gender) {
11
10
  Gender["MALE"] = "male";
12
11
  Gender["FEMALE"] = "female";
13
12
  Gender["UNSPECIFIED"] = "unspecified";
14
- })(Gender || (Gender = {}));
13
+ return Gender;
14
+ }({});
15
15
  _Contact.Gender = Gender;
16
- let Periodicity;
17
- (function (Periodicity) {
16
+ let Periodicity = /*#__PURE__*/function (Periodicity) {
18
17
  Periodicity["DAILY"] = "daily";
19
18
  Periodicity["WEEKDAYS"] = "weekdays";
20
19
  Periodicity["WEEKLY"] = "weekly";
@@ -25,10 +24,10 @@ export let Contact;
25
24
  Periodicity["ANNUALLY"] = "annually";
26
25
  Periodicity["BI_ANUALLY"] = "bi-annually";
27
26
  Periodicity["SEMI_ANNUALLY"] = "semi-annually";
28
- })(Periodicity || (Periodicity = {}));
27
+ return Periodicity;
28
+ }({});
29
29
  _Contact.Periodicity = Periodicity;
30
- let MediumType;
31
- (function (MediumType) {
30
+ let MediumType = /*#__PURE__*/function (MediumType) {
32
31
  MediumType["WIRE"] = "wire";
33
32
  MediumType["PRINT"] = "print";
34
33
  MediumType["RADIO"] = "radio";
@@ -46,10 +45,10 @@ export let Contact;
46
45
  MediumType["PODCAST"] = "podcast";
47
46
  MediumType["NEWSLETTER"] = "newsletter";
48
47
  MediumType["NEWS_SITE"] = "news website";
49
- })(MediumType || (MediumType = {}));
48
+ return MediumType;
49
+ }({});
50
50
  _Contact.MediumType = MediumType;
51
- let SocialNetwork;
52
- (function (SocialNetwork) {
51
+ let SocialNetwork = /*#__PURE__*/function (SocialNetwork) {
53
52
  SocialNetwork["DISCORD"] = "discord";
54
53
  SocialNetwork["FACEBOOK"] = "facebook";
55
54
  SocialNetwork["INSTAGRAM"] = "instagram";
@@ -61,15 +60,16 @@ export let Contact;
61
60
  SocialNetwork["TWITCH"] = "twitch";
62
61
  SocialNetwork["TWITTER"] = "twitter";
63
62
  SocialNetwork["YOUTUBE"] = "youtube";
64
- })(SocialNetwork || (SocialNetwork = {}));
63
+ return SocialNetwork;
64
+ }({});
65
65
  _Contact.SocialNetwork = SocialNetwork;
66
66
  let PhoneNumber;
67
67
  (function (_PhoneNumber) {
68
- let Type;
69
- (function (Type) {
68
+ let Type = /*#__PURE__*/function (Type) {
70
69
  Type["TELEPHONE"] = "tel";
71
70
  Type["CELLPHONE"] = "cell";
72
- })(Type || (Type = {}));
71
+ return Type;
72
+ }({});
73
73
  _PhoneNumber.Type = Type;
74
74
  })(PhoneNumber || (PhoneNumber = _Contact.PhoneNumber || (_Contact.PhoneNumber = {})));
75
75
  function isPerson(arg) {
@@ -9,12 +9,12 @@ exports.ContactDuplicateSuggestion = void 0;
9
9
  */
10
10
  let ContactDuplicateSuggestion = exports.ContactDuplicateSuggestion = void 0;
11
11
  (function (_ContactDuplicateSuggestion) {
12
- let Status;
13
- (function (Status) {
12
+ let Status = /*#__PURE__*/function (Status) {
14
13
  Status["UNSEEN"] = "unseen";
15
14
  Status["ACCEPTED"] = "accepted";
16
15
  Status["DECLINED"] = "declined";
17
- })(Status || (Status = {}));
16
+ return Status;
17
+ }({});
18
18
  _ContactDuplicateSuggestion.Status = Status;
19
19
  function isUnseen(arg) {
20
20
  if (arg !== null && typeof arg === 'object') {
@@ -1,15 +1,14 @@
1
1
  /**
2
2
  * Value in range 0.0 ... 1.0.
3
3
  */
4
-
5
4
  export let ContactDuplicateSuggestion;
6
5
  (function (_ContactDuplicateSuggestion) {
7
- let Status;
8
- (function (Status) {
6
+ let Status = /*#__PURE__*/function (Status) {
9
7
  Status["UNSEEN"] = "unseen";
10
8
  Status["ACCEPTED"] = "accepted";
11
9
  Status["DECLINED"] = "declined";
12
- })(Status || (Status = {}));
10
+ return Status;
11
+ }({});
13
12
  _ContactDuplicateSuggestion.Status = Status;
14
13
  function isUnseen(arg) {
15
14
  if (arg !== null && typeof arg === 'object') {
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ContactTag = void 0;
7
- let ContactTag = exports.ContactTag = void 0;
8
- (function (_ContactTag) {})(ContactTag || (exports.ContactTag = ContactTag = {}));
7
+ let ContactTag = exports.ContactTag = void 0;
@@ -1,2 +1 @@
1
- export let ContactTag;
2
- (function (_ContactTag) {})(ContactTag || (ContactTag = {}));
1
+ export let ContactTag;
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ContactsExport = void 0;
7
7
  let ContactsExport = exports.ContactsExport = void 0;
8
8
  (function (_ContactsExport) {
9
- let Status;
10
- (function (Status) {
9
+ let Status = /*#__PURE__*/function (Status) {
11
10
  Status["NEW"] = "new";
12
11
  Status["DONE"] = "done";
13
12
  Status["FAILED"] = "failed";
14
- })(Status || (Status = {}));
13
+ return Status;
14
+ }({});
15
15
  _ContactsExport.Status = Status;
16
16
  })(ContactsExport || (exports.ContactsExport = ContactsExport = {}));
@@ -1,10 +1,10 @@
1
1
  export let ContactsExport;
2
2
  (function (_ContactsExport) {
3
- let Status;
4
- (function (Status) {
3
+ let Status = /*#__PURE__*/function (Status) {
5
4
  Status["NEW"] = "new";
6
5
  Status["DONE"] = "done";
7
6
  Status["FAILED"] = "failed";
8
- })(Status || (Status = {}));
7
+ return Status;
8
+ }({});
9
9
  _ContactsExport.Status = Status;
10
10
  })(ContactsExport || (ContactsExport = {}));
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ContactsScope = void 0;
7
7
  let ContactsScope = exports.ContactsScope = void 0;
8
8
  (function (_ContactsScope) {
9
- let Type;
10
- (function (Type) {
9
+ let Type = /*#__PURE__*/function (Type) {
11
10
  Type["ALL_CONTACTS"] = "scope:contacts";
12
11
  Type["CONTACT_EMPLOYEES"] = "scope:contact_employees";
13
12
  Type["CONTACT_ORGANISATIONS"] = "scope:contact_organisations";
14
13
  Type["CAMPAIGN_RECIPIENTS"] = "scope:campaign_recipients";
15
14
  Type["CAMPAIGN_REPORT"] = "scope:campaign_report";
16
- })(Type || (Type = {}));
15
+ return Type;
16
+ }({});
17
17
  _ContactsScope.Type = Type;
18
18
  })(ContactsScope || (exports.ContactsScope = ContactsScope = {}));
@@ -1,12 +1,12 @@
1
1
  export let ContactsScope;
2
2
  (function (_ContactsScope) {
3
- let Type;
4
- (function (Type) {
3
+ let Type = /*#__PURE__*/function (Type) {
5
4
  Type["ALL_CONTACTS"] = "scope:contacts";
6
5
  Type["CONTACT_EMPLOYEES"] = "scope:contact_employees";
7
6
  Type["CONTACT_ORGANISATIONS"] = "scope:contact_organisations";
8
7
  Type["CAMPAIGN_RECIPIENTS"] = "scope:campaign_recipients";
9
8
  Type["CAMPAIGN_REPORT"] = "scope:campaign_report";
10
- })(Type || (Type = {}));
9
+ return Type;
10
+ }({});
11
11
  _ContactsScope.Type = Type;
12
12
  })(ContactsScope || (ContactsScope = {}));
@@ -6,17 +6,16 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.CoverageEntry = void 0;
7
7
  let CoverageEntry = exports.CoverageEntry = void 0;
8
8
  (function (_CoverageEntry) {
9
- let Type;
10
- (function (Type) {
9
+ let Type = /*#__PURE__*/function (Type) {
11
10
  Type["ONLINE"] = "online";
12
11
  Type["SOCIAL"] = "social";
13
12
  Type["PRINT"] = "print";
14
13
  Type["RADIO"] = "radio";
15
14
  Type["TELEVISION"] = "television";
16
- })(Type || (Type = {}));
15
+ return Type;
16
+ }({});
17
17
  _CoverageEntry.Type = Type;
18
- let Provider;
19
- (function (Provider) {
18
+ let Provider = /*#__PURE__*/function (Provider) {
20
19
  Provider["AMMCO"] = "ammco";
21
20
  Provider["AUXIPRESS"] = "auxipress";
22
21
  Provider["BELGA"] = "belga";
@@ -29,13 +28,14 @@ let CoverageEntry = exports.CoverageEntry = void 0;
29
28
  Provider["MELTWATER"] = "meltwater";
30
29
  Provider["NETFEEDR"] = "netfeedr";
31
30
  Provider["OPOINT"] = "opoint";
32
- })(Provider || (Provider = {}));
31
+ return Provider;
32
+ }({});
33
33
  _CoverageEntry.Provider = Provider;
34
- let Sentiment;
35
- (function (Sentiment) {
34
+ let Sentiment = /*#__PURE__*/function (Sentiment) {
36
35
  Sentiment["POSITIVE"] = "positive";
37
36
  Sentiment["NEGATIVE"] = "negative";
38
37
  Sentiment["NEUTRAL"] = "neutral";
39
- })(Sentiment || (Sentiment = {}));
38
+ return Sentiment;
39
+ }({});
40
40
  _CoverageEntry.Sentiment = Sentiment;
41
41
  })(CoverageEntry || (exports.CoverageEntry = CoverageEntry = {}));
@@ -1,16 +1,15 @@
1
1
  export let CoverageEntry;
2
2
  (function (_CoverageEntry) {
3
- let Type;
4
- (function (Type) {
3
+ let Type = /*#__PURE__*/function (Type) {
5
4
  Type["ONLINE"] = "online";
6
5
  Type["SOCIAL"] = "social";
7
6
  Type["PRINT"] = "print";
8
7
  Type["RADIO"] = "radio";
9
8
  Type["TELEVISION"] = "television";
10
- })(Type || (Type = {}));
9
+ return Type;
10
+ }({});
11
11
  _CoverageEntry.Type = Type;
12
- let Provider;
13
- (function (Provider) {
12
+ let Provider = /*#__PURE__*/function (Provider) {
14
13
  Provider["AMMCO"] = "ammco";
15
14
  Provider["AUXIPRESS"] = "auxipress";
16
15
  Provider["BELGA"] = "belga";
@@ -23,13 +22,14 @@ export let CoverageEntry;
23
22
  Provider["MELTWATER"] = "meltwater";
24
23
  Provider["NETFEEDR"] = "netfeedr";
25
24
  Provider["OPOINT"] = "opoint";
26
- })(Provider || (Provider = {}));
25
+ return Provider;
26
+ }({});
27
27
  _CoverageEntry.Provider = Provider;
28
- let Sentiment;
29
- (function (Sentiment) {
28
+ let Sentiment = /*#__PURE__*/function (Sentiment) {
30
29
  Sentiment["POSITIVE"] = "positive";
31
30
  Sentiment["NEGATIVE"] = "negative";
32
31
  Sentiment["NEUTRAL"] = "neutral";
33
- })(Sentiment || (Sentiment = {}));
32
+ return Sentiment;
33
+ }({});
34
34
  _CoverageEntry.Sentiment = Sentiment;
35
35
  })(CoverageEntry || (CoverageEntry = {}));
@@ -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;
10
- (function (Status) {
9
+ let Status = /*#__PURE__*/function (Status) {
11
10
  Status["ACTIVE"] = "active";
12
11
  Status["PAUSED"] = "paused";
13
12
  Status["TRIAL"] = "trial";
14
13
  Status["DELETED"] = "deleted";
15
- })(Status || (Status = {}));
14
+ return Status;
15
+ }({});
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;
4
- (function (Status) {
3
+ let Status = /*#__PURE__*/function (Status) {
5
4
  Status["ACTIVE"] = "active";
6
5
  Status["PAUSED"] = "paused";
7
6
  Status["TRIAL"] = "trial";
8
7
  Status["DELETED"] = "deleted";
9
- })(Status || (Status = {}));
8
+ return Status;
9
+ }({});
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;
10
- (function (Status) {
9
+ let Status = /*#__PURE__*/function (Status) {
11
10
  Status["DONE"] = "done";
12
11
  Status["ERROR"] = "error";
13
12
  Status["RUNNING"] = "running";
14
- })(Status || (Status = {}));
13
+ return Status;
14
+ }({});
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;
4
- (function (Status) {
3
+ let Status = /*#__PURE__*/function (Status) {
5
4
  Status["DONE"] = "done";
6
5
  Status["ERROR"] = "error";
7
6
  Status["RUNNING"] = "running";
8
- })(Status || (Status = {}));
7
+ return Status;
8
+ }({});
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;
10
- (function (TextDirection) {
9
+ let TextDirection = /*#__PURE__*/function (TextDirection) {
11
10
  TextDirection["LTR"] = "ltr";
12
11
  TextDirection["RTL"] = "rtl";
13
- })(TextDirection || (TextDirection = {}));
12
+ return TextDirection;
13
+ }({});
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;
4
- (function (TextDirection) {
3
+ let TextDirection = /*#__PURE__*/function (TextDirection) {
5
4
  TextDirection["LTR"] = "ltr";
6
5
  TextDirection["RTL"] = "rtl";
7
- })(TextDirection || (TextDirection = {}));
6
+ return TextDirection;
7
+ }({});
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 = void 0;
8
- (function (Currency) {
7
+ let Currency = exports.Currency = /*#__PURE__*/function (Currency) {
9
8
  Currency["EUR"] = "eur";
10
9
  Currency["USD"] = "usd";
11
10
  Currency["GBP"] = "gbp";
12
11
  Currency["AUD"] = "aud";
13
- })(Currency || (exports.Currency = Currency = {}));
12
+ return Currency;
13
+ }({});
@@ -1,7 +1,7 @@
1
- export let Currency;
2
- (function (Currency) {
1
+ export let Currency = /*#__PURE__*/function (Currency) {
3
2
  Currency["EUR"] = "eur";
4
3
  Currency["USD"] = "usd";
5
4
  Currency["GBP"] = "gbp";
6
5
  Currency["AUD"] = "aud";
7
- })(Currency || (Currency = {}));
6
+ return Currency;
7
+ }({});
@@ -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;
10
- (function (Problem) {
9
+ let Problem = /*#__PURE__*/function (Problem) {
11
10
  Problem["BOUNCED"] = "bounced";
12
11
  Problem["UNSUBSCRIBED"] = "unsubscribed";
13
12
  Problem["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
14
13
  Problem["DUPLICATE"] = "duplicate";
15
- })(Problem || (Problem = {}));
14
+ return Problem;
15
+ }({});
16
16
  _EmailRecipient.Problem = Problem;
17
- let EmailAddressStatus;
18
- (function (EmailAddressStatus) {
17
+ let EmailAddressStatus = /*#__PURE__*/function (EmailAddressStatus) {
19
18
  EmailAddressStatus["OK"] = "ok";
20
19
  EmailAddressStatus["BOUNCED"] = "bounced";
21
20
  EmailAddressStatus["UNSUBSCRIBED"] = "unsubscribed";
22
21
  EmailAddressStatus["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
23
- })(EmailAddressStatus || (EmailAddressStatus = {}));
22
+ return EmailAddressStatus;
23
+ }({});
24
24
  _EmailRecipient.EmailAddressStatus = EmailAddressStatus;
25
25
  })(EmailRecipient || (exports.EmailRecipient = EmailRecipient = {}));