@prezly/sdk 19.1.0 → 19.2.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 (84) 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 +5 -3
  8. package/dist/endpoints/CampaignRecipients/index.cjs +0 -2
  9. package/dist/endpoints/Campaigns/index.cjs +0 -2
  10. package/dist/endpoints/Contacts/index.cjs +0 -2
  11. package/dist/endpoints/ContactsExports/index.cjs +0 -2
  12. package/dist/endpoints/Coverage/index.cjs +0 -2
  13. package/dist/endpoints/Jobs/index.cjs +0 -2
  14. package/dist/endpoints/Licenses/index.cjs +0 -1
  15. package/dist/endpoints/NewsroomCategories/index.cjs +0 -2
  16. package/dist/endpoints/NewsroomContacts/index.cjs +0 -2
  17. package/dist/endpoints/NewsroomDomains/index.cjs +0 -2
  18. package/dist/endpoints/NewsroomGalleries/index.cjs +0 -2
  19. package/dist/endpoints/NewsroomHub/index.cjs +0 -2
  20. package/dist/endpoints/NewsroomLanguages/index.cjs +0 -2
  21. package/dist/endpoints/NewsroomPrivacyRequests/index.cjs +0 -2
  22. package/dist/endpoints/NewsroomSubscriptions/index.cjs +0 -2
  23. package/dist/endpoints/NewsroomThemes/index.cjs +0 -1
  24. package/dist/endpoints/NewsroomWebhooks/index.cjs +0 -2
  25. package/dist/endpoints/Newsrooms/index.cjs +0 -2
  26. package/dist/endpoints/NotificationSubscriptions/index.cjs +0 -2
  27. package/dist/endpoints/PricingTables/index.cjs +0 -2
  28. package/dist/endpoints/PricingTables/types.cjs +9 -5
  29. package/dist/endpoints/SenderAddresses/index.cjs +0 -2
  30. package/dist/endpoints/Snippets/index.cjs +0 -2
  31. package/dist/endpoints/Stories/Client.cjs +4 -23
  32. package/dist/endpoints/Stories/Client.js +7 -22
  33. package/dist/endpoints/Stories/index.cjs +0 -3
  34. package/dist/endpoints/Stories/scopes.cjs +3 -2
  35. package/dist/endpoints/Stories/types.cjs +4 -14
  36. package/dist/endpoints/Stories/types.js +3 -13
  37. package/dist/endpoints/Subscriptions/index.cjs +0 -2
  38. package/dist/endpoints/Subscriptions/types.cjs +2 -1
  39. package/dist/endpoints/index.cjs +3 -3
  40. package/dist/http/constants.cjs +6 -3
  41. package/dist/http/index.cjs +8 -8
  42. package/dist/http/types.cjs +4 -2
  43. package/dist/index.cjs +4 -7
  44. package/dist/routing.cjs +3 -2
  45. package/dist/types/BillingCycle.cjs +2 -1
  46. package/dist/types/Campaign.cjs +2 -1
  47. package/dist/types/Category.cjs +2 -1
  48. package/dist/types/Contact.cjs +2 -1
  49. package/dist/types/ContactDuplicateSuggestion.cjs +2 -2
  50. package/dist/types/ContactsExport.cjs +2 -1
  51. package/dist/types/ContactsScope.cjs +2 -1
  52. package/dist/types/CoverageEntry.cjs +2 -1
  53. package/dist/types/Culture.cjs +2 -7
  54. package/dist/types/Culture.js +0 -6
  55. package/dist/types/Currency.cjs +2 -1
  56. package/dist/types/EmailRecipient.cjs +2 -1
  57. package/dist/types/JobState.cjs +2 -1
  58. package/dist/types/License.cjs +2 -1
  59. package/dist/types/License.d.ts +1 -0
  60. package/dist/types/Newsroom.cjs +2 -4
  61. package/dist/types/Newsroom.js +0 -3
  62. package/dist/types/NewsroomDomain.cjs +2 -1
  63. package/dist/types/NewsroomGallery.cjs +2 -1
  64. package/dist/types/NewsroomTheme.cjs +5 -3
  65. package/dist/types/NewsroomTheme.js +1 -1
  66. package/dist/types/NewsroomWebhook.cjs +2 -1
  67. package/dist/types/NotificationSubscription.cjs +2 -1
  68. package/dist/types/Permissions.cjs +2 -1
  69. package/dist/types/Plan.cjs +4 -3
  70. package/dist/types/PrivacyRequest.cjs +2 -1
  71. package/dist/types/SenderAddress.cjs +2 -1
  72. package/dist/types/SenderDomain.cjs +2 -1
  73. package/dist/types/SortOrder.cjs +2 -1
  74. package/dist/types/Story.cjs +6 -17
  75. package/dist/types/Story.d.ts +11 -0
  76. package/dist/types/Story.js +4 -16
  77. package/dist/types/User.cjs +2 -1
  78. package/dist/types/common/Notification.cjs +2 -1
  79. package/dist/types/common/OEmbedInfo.cjs +2 -1
  80. package/dist/types/common/Pagination.cjs +2 -2
  81. package/dist/types/common/Query.cjs +2 -1
  82. package/dist/types/common/index.cjs +0 -6
  83. package/dist/types/index.cjs +0 -36
  84. package/package.json +1 -1
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Story = void 0;
7
7
  var _Newsroom = require("./Newsroom.cjs");
8
- let Story = exports.Story = void 0;
8
+ let Story;
9
+ exports.Story = Story;
9
10
  (function (_Story) {
10
11
  let FormatVersion;
11
12
  (function (FormatVersion) {
@@ -27,12 +28,10 @@ let Story = exports.Story = void 0;
27
28
  /**
28
29
  * @deprecated Please use `Status` instead.
29
30
  * @see Status
30
- */
31
- var LifecycleStatus = Status;
32
- /**
33
- * @deprecated Please use `Status` instead.
34
- * @see Status
35
- */
31
+ */var LifecycleStatus = Status; /**
32
+ * @deprecated Please use `Status` instead.
33
+ * @see Status
34
+ */
36
35
  let PublicationStatus;
37
36
  (function (PublicationStatus) {
38
37
  PublicationStatus["NEW"] = "new";
@@ -48,10 +47,6 @@ let Story = exports.Story = void 0;
48
47
  Visibility["CONFIDENTIAL"] = "confidential";
49
48
  })(Visibility || (Visibility = {}));
50
49
  _Story.Visibility = Visibility;
51
- /*
52
- * Newsroom status checks
53
- */
54
-
55
50
  function isActiveNewsroom(story) {
56
51
  return _Newsroom.Newsroom.isActive(story.newsroom);
57
52
  }
@@ -64,9 +59,6 @@ let Story = exports.Story = void 0;
64
59
  return _Newsroom.Newsroom.isArchived(story.newsroom);
65
60
  }
66
61
  _Story.isArchivedNewsroom = isArchivedNewsroom;
67
- /*
68
- * Lifecycle status checks
69
- */
70
62
  function isUninitialized(arg) {
71
63
  if (typeof arg === 'object' && arg !== null) {
72
64
  return isUninitialized(arg.status);
@@ -109,9 +101,6 @@ let Story = exports.Story = void 0;
109
101
  return arg === Status.PUBLISHED;
110
102
  }
111
103
  _Story.isPublished = isPublished;
112
- /*
113
- * Format version checks
114
- */
115
104
  function isLegacyHtmlFormat(arg) {
116
105
  if (typeof arg === 'object' && arg !== null) {
117
106
  return isLegacyHtmlFormat(arg.format_version);
@@ -54,7 +54,18 @@ export interface Story {
54
54
  subtitle: string;
55
55
  intro: string;
56
56
  summary: string;
57
+ /**
58
+ * The effective Story slug.
59
+ * Calculated as `custom_slug ?? auto_slug`.
60
+ */
57
61
  slug: string;
62
+ /**
63
+ * Automatically generated Story slug.
64
+ */
65
+ auto_slug: string;
66
+ /**
67
+ * Custom-set Story slug.
68
+ */
58
69
  custom_slug: string | null;
59
70
  format_version: Story.FormatVersion;
60
71
  culture: CultureRef;
@@ -21,12 +21,10 @@ export let Story;
21
21
  /**
22
22
  * @deprecated Please use `Status` instead.
23
23
  * @see Status
24
- */
25
- var LifecycleStatus = Status;
26
- /**
27
- * @deprecated Please use `Status` instead.
28
- * @see Status
29
- */
24
+ */var LifecycleStatus = Status; /**
25
+ * @deprecated Please use `Status` instead.
26
+ * @see Status
27
+ */
30
28
  let PublicationStatus;
31
29
  (function (PublicationStatus) {
32
30
  PublicationStatus["NEW"] = "new";
@@ -42,10 +40,6 @@ export let Story;
42
40
  Visibility["CONFIDENTIAL"] = "confidential";
43
41
  })(Visibility || (Visibility = {}));
44
42
  _Story.Visibility = Visibility;
45
- /*
46
- * Newsroom status checks
47
- */
48
-
49
43
  function isActiveNewsroom(story) {
50
44
  return Newsroom.isActive(story.newsroom);
51
45
  }
@@ -58,9 +52,6 @@ export let Story;
58
52
  return Newsroom.isArchived(story.newsroom);
59
53
  }
60
54
  _Story.isArchivedNewsroom = isArchivedNewsroom;
61
- /*
62
- * Lifecycle status checks
63
- */
64
55
  function isUninitialized(arg) {
65
56
  if (typeof arg === 'object' && arg !== null) {
66
57
  return isUninitialized(arg.status);
@@ -103,9 +94,6 @@ export let Story;
103
94
  return arg === Status.PUBLISHED;
104
95
  }
105
96
  _Story.isPublished = isPublished;
106
- /*
107
- * Format version checks
108
- */
109
97
  function isLegacyHtmlFormat(arg) {
110
98
  if (typeof arg === 'object' && arg !== null) {
111
99
  return isLegacyHtmlFormat(arg.format_version);
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.User = void 0;
7
- let User = exports.User = void 0;
7
+ let User;
8
+ exports.User = User;
8
9
  (function (_User) {
9
10
  let SignInFlow;
10
11
  (function (SignInFlow) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Notification = void 0;
7
- let Notification = exports.Notification = void 0;
7
+ let Notification;
8
+ exports.Notification = Notification;
8
9
  (function (_Notification) {
9
10
  let Style;
10
11
  (function (Style) {
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.OEmbedInfo = void 0;
7
- let OEmbedInfo = exports.OEmbedInfo = void 0;
7
+ let OEmbedInfo;
8
+ exports.OEmbedInfo = OEmbedInfo;
8
9
  (function (_OEmbedInfo) {
9
10
  let Type;
10
11
  (function (Type) {
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.SelectionMode = void 0;
7
7
  /**
8
8
  * @see https://api.prezly.com/v2/common/schema.json#/definitions/Pagination
9
- */
10
- let SelectionMode = exports.SelectionMode = void 0;
9
+ */let SelectionMode;
10
+ exports.SelectionMode = SelectionMode;
11
11
  (function (SelectionMode) {
12
12
  SelectionMode["ALL"] = "all";
13
13
  SelectionMode["IN"] = "in";
@@ -8,7 +8,8 @@ exports.Query = void 0;
8
8
  /**
9
9
  * @see https://developers.prezly.com/docs/api/docs/06-prezly-query-language.md
10
10
  */
11
- let Query = exports.Query = void 0;
11
+ let Query;
12
+ exports.Query = Query;
12
13
  (function (_Query) {
13
14
  function stringify(query) {
14
15
  if (!query) {
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  var _Notification = require("./Notification.cjs");
7
7
  Object.keys(_Notification).forEach(function (key) {
8
8
  if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _Notification[key]) return;
10
9
  Object.defineProperty(exports, key, {
11
10
  enumerable: true,
12
11
  get: function () {
@@ -17,7 +16,6 @@ Object.keys(_Notification).forEach(function (key) {
17
16
  var _OEmbedInfo = require("./OEmbedInfo.cjs");
18
17
  Object.keys(_OEmbedInfo).forEach(function (key) {
19
18
  if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _OEmbedInfo[key]) return;
21
19
  Object.defineProperty(exports, key, {
22
20
  enumerable: true,
23
21
  get: function () {
@@ -28,7 +26,6 @@ Object.keys(_OEmbedInfo).forEach(function (key) {
28
26
  var _Pagination = require("./Pagination.cjs");
29
27
  Object.keys(_Pagination).forEach(function (key) {
30
28
  if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _Pagination[key]) return;
32
29
  Object.defineProperty(exports, key, {
33
30
  enumerable: true,
34
31
  get: function () {
@@ -39,7 +36,6 @@ Object.keys(_Pagination).forEach(function (key) {
39
36
  var _Query = require("./Query.cjs");
40
37
  Object.keys(_Query).forEach(function (key) {
41
38
  if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _Query[key]) return;
43
39
  Object.defineProperty(exports, key, {
44
40
  enumerable: true,
45
41
  get: function () {
@@ -50,7 +46,6 @@ Object.keys(_Query).forEach(function (key) {
50
46
  var _Utm = require("./Utm.cjs");
51
47
  Object.keys(_Utm).forEach(function (key) {
52
48
  if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _Utm[key]) return;
54
49
  Object.defineProperty(exports, key, {
55
50
  enumerable: true,
56
51
  get: function () {
@@ -61,7 +56,6 @@ Object.keys(_Utm).forEach(function (key) {
61
56
  var _Warning = require("./Warning.cjs");
62
57
  Object.keys(_Warning).forEach(function (key) {
63
58
  if (key === "default" || key === "__esModule") return;
64
- if (key in exports && exports[key] === _Warning[key]) return;
65
59
  Object.defineProperty(exports, key, {
66
60
  enumerable: true,
67
61
  get: function () {
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  var _index = require("./common/index.cjs");
7
7
  Object.keys(_index).forEach(function (key) {
8
8
  if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _index[key]) return;
10
9
  Object.defineProperty(exports, key, {
11
10
  enumerable: true,
12
11
  get: function () {
@@ -17,7 +16,6 @@ Object.keys(_index).forEach(function (key) {
17
16
  var _BillingCycle = require("./BillingCycle.cjs");
18
17
  Object.keys(_BillingCycle).forEach(function (key) {
19
18
  if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _BillingCycle[key]) return;
21
19
  Object.defineProperty(exports, key, {
22
20
  enumerable: true,
23
21
  get: function () {
@@ -28,7 +26,6 @@ Object.keys(_BillingCycle).forEach(function (key) {
28
26
  var _Campaign = require("./Campaign.cjs");
29
27
  Object.keys(_Campaign).forEach(function (key) {
30
28
  if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _Campaign[key]) return;
32
29
  Object.defineProperty(exports, key, {
33
30
  enumerable: true,
34
31
  get: function () {
@@ -39,7 +36,6 @@ Object.keys(_Campaign).forEach(function (key) {
39
36
  var _Category = require("./Category.cjs");
40
37
  Object.keys(_Category).forEach(function (key) {
41
38
  if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _Category[key]) return;
43
39
  Object.defineProperty(exports, key, {
44
40
  enumerable: true,
45
41
  get: function () {
@@ -50,7 +46,6 @@ Object.keys(_Category).forEach(function (key) {
50
46
  var _Contact = require("./Contact.cjs");
51
47
  Object.keys(_Contact).forEach(function (key) {
52
48
  if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _Contact[key]) return;
54
49
  Object.defineProperty(exports, key, {
55
50
  enumerable: true,
56
51
  get: function () {
@@ -61,7 +56,6 @@ Object.keys(_Contact).forEach(function (key) {
61
56
  var _ContactDuplicateSuggestion = require("./ContactDuplicateSuggestion.cjs");
62
57
  Object.keys(_ContactDuplicateSuggestion).forEach(function (key) {
63
58
  if (key === "default" || key === "__esModule") return;
64
- if (key in exports && exports[key] === _ContactDuplicateSuggestion[key]) return;
65
59
  Object.defineProperty(exports, key, {
66
60
  enumerable: true,
67
61
  get: function () {
@@ -72,7 +66,6 @@ Object.keys(_ContactDuplicateSuggestion).forEach(function (key) {
72
66
  var _ContactsBulkSelector = require("./ContactsBulkSelector.cjs");
73
67
  Object.keys(_ContactsBulkSelector).forEach(function (key) {
74
68
  if (key === "default" || key === "__esModule") return;
75
- if (key in exports && exports[key] === _ContactsBulkSelector[key]) return;
76
69
  Object.defineProperty(exports, key, {
77
70
  enumerable: true,
78
71
  get: function () {
@@ -83,7 +76,6 @@ Object.keys(_ContactsBulkSelector).forEach(function (key) {
83
76
  var _ContactsExport = require("./ContactsExport.cjs");
84
77
  Object.keys(_ContactsExport).forEach(function (key) {
85
78
  if (key === "default" || key === "__esModule") return;
86
- if (key in exports && exports[key] === _ContactsExport[key]) return;
87
79
  Object.defineProperty(exports, key, {
88
80
  enumerable: true,
89
81
  get: function () {
@@ -94,7 +86,6 @@ Object.keys(_ContactsExport).forEach(function (key) {
94
86
  var _ContactsScope = require("./ContactsScope.cjs");
95
87
  Object.keys(_ContactsScope).forEach(function (key) {
96
88
  if (key === "default" || key === "__esModule") return;
97
- if (key in exports && exports[key] === _ContactsScope[key]) return;
98
89
  Object.defineProperty(exports, key, {
99
90
  enumerable: true,
100
91
  get: function () {
@@ -105,7 +96,6 @@ Object.keys(_ContactsScope).forEach(function (key) {
105
96
  var _Country = require("./Country.cjs");
106
97
  Object.keys(_Country).forEach(function (key) {
107
98
  if (key === "default" || key === "__esModule") return;
108
- if (key in exports && exports[key] === _Country[key]) return;
109
99
  Object.defineProperty(exports, key, {
110
100
  enumerable: true,
111
101
  get: function () {
@@ -116,7 +106,6 @@ Object.keys(_Country).forEach(function (key) {
116
106
  var _CoverageEntry = require("./CoverageEntry.cjs");
117
107
  Object.keys(_CoverageEntry).forEach(function (key) {
118
108
  if (key === "default" || key === "__esModule") return;
119
- if (key in exports && exports[key] === _CoverageEntry[key]) return;
120
109
  Object.defineProperty(exports, key, {
121
110
  enumerable: true,
122
111
  get: function () {
@@ -127,7 +116,6 @@ Object.keys(_CoverageEntry).forEach(function (key) {
127
116
  var _Culture = require("./Culture.cjs");
128
117
  Object.keys(_Culture).forEach(function (key) {
129
118
  if (key === "default" || key === "__esModule") return;
130
- if (key in exports && exports[key] === _Culture[key]) return;
131
119
  Object.defineProperty(exports, key, {
132
120
  enumerable: true,
133
121
  get: function () {
@@ -138,7 +126,6 @@ Object.keys(_Culture).forEach(function (key) {
138
126
  var _Currency = require("./Currency.cjs");
139
127
  Object.keys(_Currency).forEach(function (key) {
140
128
  if (key === "default" || key === "__esModule") return;
141
- if (key in exports && exports[key] === _Currency[key]) return;
142
129
  Object.defineProperty(exports, key, {
143
130
  enumerable: true,
144
131
  get: function () {
@@ -149,7 +136,6 @@ Object.keys(_Currency).forEach(function (key) {
149
136
  var _DnsConfigurationInstruction = require("./DnsConfigurationInstruction.cjs");
150
137
  Object.keys(_DnsConfigurationInstruction).forEach(function (key) {
151
138
  if (key === "default" || key === "__esModule") return;
152
- if (key in exports && exports[key] === _DnsConfigurationInstruction[key]) return;
153
139
  Object.defineProperty(exports, key, {
154
140
  enumerable: true,
155
141
  get: function () {
@@ -160,7 +146,6 @@ Object.keys(_DnsConfigurationInstruction).forEach(function (key) {
160
146
  var _EmailRecipient = require("./EmailRecipient.cjs");
161
147
  Object.keys(_EmailRecipient).forEach(function (key) {
162
148
  if (key === "default" || key === "__esModule") return;
163
- if (key in exports && exports[key] === _EmailRecipient[key]) return;
164
149
  Object.defineProperty(exports, key, {
165
150
  enumerable: true,
166
151
  get: function () {
@@ -171,7 +156,6 @@ Object.keys(_EmailRecipient).forEach(function (key) {
171
156
  var _EmailSubscription = require("./EmailSubscription.cjs");
172
157
  Object.keys(_EmailSubscription).forEach(function (key) {
173
158
  if (key === "default" || key === "__esModule") return;
174
- if (key in exports && exports[key] === _EmailSubscription[key]) return;
175
159
  Object.defineProperty(exports, key, {
176
160
  enumerable: true,
177
161
  get: function () {
@@ -182,7 +166,6 @@ Object.keys(_EmailSubscription).forEach(function (key) {
182
166
  var _JobState = require("./JobState.cjs");
183
167
  Object.keys(_JobState).forEach(function (key) {
184
168
  if (key === "default" || key === "__esModule") return;
185
- if (key in exports && exports[key] === _JobState[key]) return;
186
169
  Object.defineProperty(exports, key, {
187
170
  enumerable: true,
188
171
  get: function () {
@@ -193,7 +176,6 @@ Object.keys(_JobState).forEach(function (key) {
193
176
  var _License = require("./License.cjs");
194
177
  Object.keys(_License).forEach(function (key) {
195
178
  if (key === "default" || key === "__esModule") return;
196
- if (key in exports && exports[key] === _License[key]) return;
197
179
  Object.defineProperty(exports, key, {
198
180
  enumerable: true,
199
181
  get: function () {
@@ -204,7 +186,6 @@ Object.keys(_License).forEach(function (key) {
204
186
  var _Newsroom = require("./Newsroom.cjs");
205
187
  Object.keys(_Newsroom).forEach(function (key) {
206
188
  if (key === "default" || key === "__esModule") return;
207
- if (key in exports && exports[key] === _Newsroom[key]) return;
208
189
  Object.defineProperty(exports, key, {
209
190
  enumerable: true,
210
191
  get: function () {
@@ -215,7 +196,6 @@ Object.keys(_Newsroom).forEach(function (key) {
215
196
  var _NewsroomCompanyInformation = require("./NewsroomCompanyInformation.cjs");
216
197
  Object.keys(_NewsroomCompanyInformation).forEach(function (key) {
217
198
  if (key === "default" || key === "__esModule") return;
218
- if (key in exports && exports[key] === _NewsroomCompanyInformation[key]) return;
219
199
  Object.defineProperty(exports, key, {
220
200
  enumerable: true,
221
201
  get: function () {
@@ -226,7 +206,6 @@ Object.keys(_NewsroomCompanyInformation).forEach(function (key) {
226
206
  var _NewsroomContact = require("./NewsroomContact.cjs");
227
207
  Object.keys(_NewsroomContact).forEach(function (key) {
228
208
  if (key === "default" || key === "__esModule") return;
229
- if (key in exports && exports[key] === _NewsroomContact[key]) return;
230
209
  Object.defineProperty(exports, key, {
231
210
  enumerable: true,
232
211
  get: function () {
@@ -237,7 +216,6 @@ Object.keys(_NewsroomContact).forEach(function (key) {
237
216
  var _NewsroomDomain = require("./NewsroomDomain.cjs");
238
217
  Object.keys(_NewsroomDomain).forEach(function (key) {
239
218
  if (key === "default" || key === "__esModule") return;
240
- if (key in exports && exports[key] === _NewsroomDomain[key]) return;
241
219
  Object.defineProperty(exports, key, {
242
220
  enumerable: true,
243
221
  get: function () {
@@ -248,7 +226,6 @@ Object.keys(_NewsroomDomain).forEach(function (key) {
248
226
  var _NewsroomGallery = require("./NewsroomGallery.cjs");
249
227
  Object.keys(_NewsroomGallery).forEach(function (key) {
250
228
  if (key === "default" || key === "__esModule") return;
251
- if (key in exports && exports[key] === _NewsroomGallery[key]) return;
252
229
  Object.defineProperty(exports, key, {
253
230
  enumerable: true,
254
231
  get: function () {
@@ -259,7 +236,6 @@ Object.keys(_NewsroomGallery).forEach(function (key) {
259
236
  var _NewsroomLanguageSettings = require("./NewsroomLanguageSettings.cjs");
260
237
  Object.keys(_NewsroomLanguageSettings).forEach(function (key) {
261
238
  if (key === "default" || key === "__esModule") return;
262
- if (key in exports && exports[key] === _NewsroomLanguageSettings[key]) return;
263
239
  Object.defineProperty(exports, key, {
264
240
  enumerable: true,
265
241
  get: function () {
@@ -270,7 +246,6 @@ Object.keys(_NewsroomLanguageSettings).forEach(function (key) {
270
246
  var _NewsroomTheme = require("./NewsroomTheme.cjs");
271
247
  Object.keys(_NewsroomTheme).forEach(function (key) {
272
248
  if (key === "default" || key === "__esModule") return;
273
- if (key in exports && exports[key] === _NewsroomTheme[key]) return;
274
249
  Object.defineProperty(exports, key, {
275
250
  enumerable: true,
276
251
  get: function () {
@@ -281,7 +256,6 @@ Object.keys(_NewsroomTheme).forEach(function (key) {
281
256
  var _NewsroomWebhook = require("./NewsroomWebhook.cjs");
282
257
  Object.keys(_NewsroomWebhook).forEach(function (key) {
283
258
  if (key === "default" || key === "__esModule") return;
284
- if (key in exports && exports[key] === _NewsroomWebhook[key]) return;
285
259
  Object.defineProperty(exports, key, {
286
260
  enumerable: true,
287
261
  get: function () {
@@ -292,7 +266,6 @@ Object.keys(_NewsroomWebhook).forEach(function (key) {
292
266
  var _Plan = require("./Plan.cjs");
293
267
  Object.keys(_Plan).forEach(function (key) {
294
268
  if (key === "default" || key === "__esModule") return;
295
- if (key in exports && exports[key] === _Plan[key]) return;
296
269
  Object.defineProperty(exports, key, {
297
270
  enumerable: true,
298
271
  get: function () {
@@ -303,7 +276,6 @@ Object.keys(_Plan).forEach(function (key) {
303
276
  var _PrivacyRequest = require("./PrivacyRequest.cjs");
304
277
  Object.keys(_PrivacyRequest).forEach(function (key) {
305
278
  if (key === "default" || key === "__esModule") return;
306
- if (key in exports && exports[key] === _PrivacyRequest[key]) return;
307
279
  Object.defineProperty(exports, key, {
308
280
  enumerable: true,
309
281
  get: function () {
@@ -314,7 +286,6 @@ Object.keys(_PrivacyRequest).forEach(function (key) {
314
286
  var _SenderAddress = require("./SenderAddress.cjs");
315
287
  Object.keys(_SenderAddress).forEach(function (key) {
316
288
  if (key === "default" || key === "__esModule") return;
317
- if (key in exports && exports[key] === _SenderAddress[key]) return;
318
289
  Object.defineProperty(exports, key, {
319
290
  enumerable: true,
320
291
  get: function () {
@@ -325,7 +296,6 @@ Object.keys(_SenderAddress).forEach(function (key) {
325
296
  var _SenderDomain = require("./SenderDomain.cjs");
326
297
  Object.keys(_SenderDomain).forEach(function (key) {
327
298
  if (key === "default" || key === "__esModule") return;
328
- if (key in exports && exports[key] === _SenderDomain[key]) return;
329
299
  Object.defineProperty(exports, key, {
330
300
  enumerable: true,
331
301
  get: function () {
@@ -336,7 +306,6 @@ Object.keys(_SenderDomain).forEach(function (key) {
336
306
  var _Snippet = require("./Snippet.cjs");
337
307
  Object.keys(_Snippet).forEach(function (key) {
338
308
  if (key === "default" || key === "__esModule") return;
339
- if (key in exports && exports[key] === _Snippet[key]) return;
340
309
  Object.defineProperty(exports, key, {
341
310
  enumerable: true,
342
311
  get: function () {
@@ -347,7 +316,6 @@ Object.keys(_Snippet).forEach(function (key) {
347
316
  var _SortOrder = require("./SortOrder.cjs");
348
317
  Object.keys(_SortOrder).forEach(function (key) {
349
318
  if (key === "default" || key === "__esModule") return;
350
- if (key in exports && exports[key] === _SortOrder[key]) return;
351
319
  Object.defineProperty(exports, key, {
352
320
  enumerable: true,
353
321
  get: function () {
@@ -358,7 +326,6 @@ Object.keys(_SortOrder).forEach(function (key) {
358
326
  var _Story = require("./Story.cjs");
359
327
  Object.keys(_Story).forEach(function (key) {
360
328
  if (key === "default" || key === "__esModule") return;
361
- if (key in exports && exports[key] === _Story[key]) return;
362
329
  Object.defineProperty(exports, key, {
363
330
  enumerable: true,
364
331
  get: function () {
@@ -369,7 +336,6 @@ Object.keys(_Story).forEach(function (key) {
369
336
  var _User = require("./User.cjs");
370
337
  Object.keys(_User).forEach(function (key) {
371
338
  if (key === "default" || key === "__esModule") return;
372
- if (key in exports && exports[key] === _User[key]) return;
373
339
  Object.defineProperty(exports, key, {
374
340
  enumerable: true,
375
341
  get: function () {
@@ -380,7 +346,6 @@ Object.keys(_User).forEach(function (key) {
380
346
  var _UserAccount = require("./UserAccount.cjs");
381
347
  Object.keys(_UserAccount).forEach(function (key) {
382
348
  if (key === "default" || key === "__esModule") return;
383
- if (key in exports && exports[key] === _UserAccount[key]) return;
384
349
  Object.defineProperty(exports, key, {
385
350
  enumerable: true,
386
351
  get: function () {
@@ -391,7 +356,6 @@ Object.keys(_UserAccount).forEach(function (key) {
391
356
  var _NotificationSubscription = require("./NotificationSubscription.cjs");
392
357
  Object.keys(_NotificationSubscription).forEach(function (key) {
393
358
  if (key === "default" || key === "__esModule") return;
394
- if (key in exports && exports[key] === _NotificationSubscription[key]) return;
395
359
  Object.defineProperty(exports, key, {
396
360
  enumerable: true,
397
361
  get: function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "19.1.0",
3
+ "version": "19.2.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",