@prezly/sdk 11.7.1 → 11.8.1-cjs
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.
- package/dist/Client.js +33 -27
- package/dist/api/ApiClient.js +19 -12
- package/dist/api/DeferredJobsApiClient.js +19 -12
- package/dist/api/constants.js +9 -2
- package/dist/api/index.js +19 -2
- package/dist/endpoints/Accounts/Client.js +13 -6
- package/dist/endpoints/Accounts/index.js +25 -2
- package/dist/endpoints/Accounts/types.js +1 -1
- package/dist/endpoints/Billing/Client.js +11 -4
- package/dist/endpoints/Billing/index.js +25 -2
- package/dist/endpoints/Billing/types.js +15 -6
- package/dist/endpoints/CampaignRecipients/Client.js +19 -12
- package/dist/endpoints/CampaignRecipients/index.js +37 -3
- package/dist/endpoints/CampaignRecipients/types.js +1 -1
- package/dist/endpoints/Campaigns/Client.js +25 -18
- package/dist/endpoints/Campaigns/index.js +25 -2
- package/dist/endpoints/Campaigns/types.js +1 -1
- package/dist/endpoints/ContactsExports/Client.js +15 -8
- package/dist/endpoints/ContactsExports/index.js +37 -3
- package/dist/endpoints/ContactsExports/types.js +1 -1
- package/dist/endpoints/Coverage/Client.js +19 -12
- package/dist/endpoints/Coverage/index.js +25 -2
- package/dist/endpoints/Coverage/types.js +1 -1
- package/dist/endpoints/Jobs/Client.js +11 -4
- package/dist/endpoints/Jobs/index.js +25 -2
- package/dist/endpoints/Jobs/types.js +1 -1
- package/dist/endpoints/Licenses/Client.js +11 -4
- package/dist/endpoints/Licenses/index.js +15 -1
- package/dist/endpoints/NewsroomCategories/Client.js +15 -8
- package/dist/endpoints/NewsroomCategories/index.js +25 -2
- package/dist/endpoints/NewsroomCategories/types.js +1 -1
- package/dist/endpoints/NewsroomContacts/Client.js +18 -11
- package/dist/endpoints/NewsroomContacts/index.js +25 -2
- package/dist/endpoints/NewsroomContacts/types.js +1 -1
- package/dist/endpoints/NewsroomDomains/Client.js +16 -9
- package/dist/endpoints/NewsroomDomains/index.js +25 -2
- package/dist/endpoints/NewsroomDomains/types.js +1 -1
- package/dist/endpoints/NewsroomGalleries/Client.js +20 -13
- package/dist/endpoints/NewsroomGalleries/index.js +25 -2
- package/dist/endpoints/NewsroomGalleries/types.js +1 -1
- package/dist/endpoints/NewsroomLanguages/Client.js +17 -10
- package/dist/endpoints/NewsroomLanguages/index.js +25 -2
- package/dist/endpoints/NewsroomLanguages/lib.js +7 -1
- package/dist/endpoints/NewsroomLanguages/types.js +1 -1
- package/dist/endpoints/NewsroomPrivacyRequests/Client.js +12 -5
- package/dist/endpoints/NewsroomPrivacyRequests/index.js +25 -2
- package/dist/endpoints/NewsroomPrivacyRequests/types.js +1 -1
- package/dist/endpoints/NewsroomSubscriptions/Client.js +11 -4
- package/dist/endpoints/NewsroomSubscriptions/index.js +25 -2
- package/dist/endpoints/NewsroomSubscriptions/types.js +1 -1
- package/dist/endpoints/NewsroomThemes/Client.js +14 -7
- package/dist/endpoints/NewsroomThemes/index.js +15 -1
- package/dist/endpoints/NewsroomWebhooks/Client.js +15 -8
- package/dist/endpoints/NewsroomWebhooks/index.js +25 -2
- package/dist/endpoints/NewsroomWebhooks/types.js +1 -1
- package/dist/endpoints/Newsrooms/Client.js +22 -15
- package/dist/endpoints/Newsrooms/index.js +25 -2
- package/dist/endpoints/Newsrooms/types.js +1 -1
- package/dist/endpoints/NotificationSubscriptions/Client.js +12 -5
- package/dist/endpoints/NotificationSubscriptions/index.js +25 -2
- package/dist/endpoints/NotificationSubscriptions/types.js +1 -1
- package/dist/endpoints/SenderAddresses/Client.js +15 -8
- package/dist/endpoints/SenderAddresses/index.js +25 -2
- package/dist/endpoints/SenderAddresses/types.js +1 -1
- package/dist/endpoints/Signup/Client.js +11 -4
- package/dist/endpoints/Signup/index.js +25 -2
- package/dist/endpoints/Signup/types.js +9 -2
- package/dist/endpoints/Snippets/Client.js +15 -8
- package/dist/endpoints/Snippets/index.js +25 -2
- package/dist/endpoints/Snippets/types.js +1 -1
- package/dist/endpoints/Stories/Client.js +30 -23
- package/dist/endpoints/Stories/index.js +35 -3
- package/dist/endpoints/Stories/scopes.js +11 -4
- package/dist/endpoints/Stories/types.d.ts +5 -0
- package/dist/endpoints/Stories/types.js +10 -2
- package/dist/endpoints/Subscriptions/Client.js +15 -8
- package/dist/endpoints/Subscriptions/index.js +25 -2
- package/dist/endpoints/Subscriptions/types.js +9 -2
- package/dist/endpoints/index.js +56 -24
- package/dist/http/ApiError.js +9 -2
- package/dist/http/Http.js +21 -14
- package/dist/http/constants.js +12 -3
- package/dist/http/createRequest.js +20 -13
- package/dist/http/index.js +39 -4
- package/dist/http/lib.js +16 -6
- package/dist/http/types.js +12 -4
- package/dist/index.js +56 -5
- package/dist/routing.js +9 -2
- package/dist/types/Campaign.js +11 -4
- package/dist/types/Category.js +1 -1
- package/dist/types/Contact.js +9 -2
- package/dist/types/ContactDuplicateSuggestion.js +9 -2
- package/dist/types/ContactsExport.js +9 -2
- package/dist/types/ContactsScope.js +9 -2
- package/dist/types/Country.js +1 -1
- package/dist/types/CoverageEntry.js +9 -2
- package/dist/types/Culture.js +9 -2
- package/dist/types/Currency.js +9 -2
- package/dist/types/DnsConfigurationInstruction.js +1 -1
- package/dist/types/EmailRecipient.js +9 -2
- package/dist/types/EmailSubscription.js +1 -1
- package/dist/types/JobState.js +9 -2
- package/dist/types/License.js +9 -2
- package/dist/types/Newsroom.js +9 -2
- package/dist/types/NewsroomCompanyInformation.js +1 -1
- package/dist/types/NewsroomContact.js +1 -1
- package/dist/types/NewsroomDomain.js +9 -2
- package/dist/types/NewsroomGallery.js +9 -2
- package/dist/types/NewsroomLanguageSettings.js +1 -1
- package/dist/types/NewsroomTheme.js +12 -4
- package/dist/types/NewsroomWebhook.js +9 -2
- package/dist/types/NotificationSubscription.js +9 -2
- package/dist/types/Permissions.js +9 -2
- package/dist/types/Plan.js +9 -2
- package/dist/types/PrivacyRequest.js +9 -2
- package/dist/types/SEOSettings.d.ts +7 -0
- package/dist/types/SEOSettings.js +1 -0
- package/dist/types/SenderAddress.js +9 -2
- package/dist/types/SenderDomain.js +9 -2
- package/dist/types/Snippet.js +1 -1
- package/dist/types/Story.d.ts +2 -0
- package/dist/types/Story.js +9 -2
- package/dist/types/User.js +9 -2
- package/dist/types/UserAccount.js +1 -1
- package/dist/types/common/Notification.js +9 -2
- package/dist/types/common/OEmbedInfo.js +9 -2
- package/dist/types/common/Pagination.js +9 -4
- package/dist/types/common/Query.js +9 -3
- package/dist/types/common/Utm.js +1 -1
- package/dist/types/common/Warning.js +1 -1
- package/dist/types/common/index.js +65 -6
- package/dist/types/index.js +325 -33
- package/dist/utils.js +9 -2
- package/package.json +6 -5
package/dist/types/index.js
CHANGED
|
@@ -1,33 +1,325 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("./common/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
Object.defineProperty(exports, key, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return _index[key];
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
var _Campaign = require("./Campaign.js");
|
|
17
|
+
Object.keys(_Campaign).forEach(function (key) {
|
|
18
|
+
if (key === "default" || key === "__esModule") return;
|
|
19
|
+
Object.defineProperty(exports, key, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _Campaign[key];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
var _Category = require("./Category.js");
|
|
27
|
+
Object.keys(_Category).forEach(function (key) {
|
|
28
|
+
if (key === "default" || key === "__esModule") return;
|
|
29
|
+
Object.defineProperty(exports, key, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return _Category[key];
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
var _Contact = require("./Contact.js");
|
|
37
|
+
Object.keys(_Contact).forEach(function (key) {
|
|
38
|
+
if (key === "default" || key === "__esModule") return;
|
|
39
|
+
Object.defineProperty(exports, key, {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () {
|
|
42
|
+
return _Contact[key];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
var _ContactsExport = require("./ContactsExport.js");
|
|
47
|
+
Object.keys(_ContactsExport).forEach(function (key) {
|
|
48
|
+
if (key === "default" || key === "__esModule") return;
|
|
49
|
+
Object.defineProperty(exports, key, {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () {
|
|
52
|
+
return _ContactsExport[key];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
var _ContactsScope = require("./ContactsScope.js");
|
|
57
|
+
Object.keys(_ContactsScope).forEach(function (key) {
|
|
58
|
+
if (key === "default" || key === "__esModule") return;
|
|
59
|
+
Object.defineProperty(exports, key, {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () {
|
|
62
|
+
return _ContactsScope[key];
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
var _Country = require("./Country.js");
|
|
67
|
+
Object.keys(_Country).forEach(function (key) {
|
|
68
|
+
if (key === "default" || key === "__esModule") return;
|
|
69
|
+
Object.defineProperty(exports, key, {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () {
|
|
72
|
+
return _Country[key];
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
var _CoverageEntry = require("./CoverageEntry.js");
|
|
77
|
+
Object.keys(_CoverageEntry).forEach(function (key) {
|
|
78
|
+
if (key === "default" || key === "__esModule") return;
|
|
79
|
+
Object.defineProperty(exports, key, {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () {
|
|
82
|
+
return _CoverageEntry[key];
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
var _Culture = require("./Culture.js");
|
|
87
|
+
Object.keys(_Culture).forEach(function (key) {
|
|
88
|
+
if (key === "default" || key === "__esModule") return;
|
|
89
|
+
Object.defineProperty(exports, key, {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () {
|
|
92
|
+
return _Culture[key];
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
var _Currency = require("./Currency.js");
|
|
97
|
+
Object.keys(_Currency).forEach(function (key) {
|
|
98
|
+
if (key === "default" || key === "__esModule") return;
|
|
99
|
+
Object.defineProperty(exports, key, {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function () {
|
|
102
|
+
return _Currency[key];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
var _DnsConfigurationInstruction = require("./DnsConfigurationInstruction.js");
|
|
107
|
+
Object.keys(_DnsConfigurationInstruction).forEach(function (key) {
|
|
108
|
+
if (key === "default" || key === "__esModule") return;
|
|
109
|
+
Object.defineProperty(exports, key, {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function () {
|
|
112
|
+
return _DnsConfigurationInstruction[key];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
var _EmailRecipient = require("./EmailRecipient.js");
|
|
117
|
+
Object.keys(_EmailRecipient).forEach(function (key) {
|
|
118
|
+
if (key === "default" || key === "__esModule") return;
|
|
119
|
+
Object.defineProperty(exports, key, {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function () {
|
|
122
|
+
return _EmailRecipient[key];
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
var _EmailSubscription = require("./EmailSubscription.js");
|
|
127
|
+
Object.keys(_EmailSubscription).forEach(function (key) {
|
|
128
|
+
if (key === "default" || key === "__esModule") return;
|
|
129
|
+
Object.defineProperty(exports, key, {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () {
|
|
132
|
+
return _EmailSubscription[key];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
var _JobState = require("./JobState.js");
|
|
137
|
+
Object.keys(_JobState).forEach(function (key) {
|
|
138
|
+
if (key === "default" || key === "__esModule") return;
|
|
139
|
+
Object.defineProperty(exports, key, {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () {
|
|
142
|
+
return _JobState[key];
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
var _License = require("./License.js");
|
|
147
|
+
Object.keys(_License).forEach(function (key) {
|
|
148
|
+
if (key === "default" || key === "__esModule") return;
|
|
149
|
+
Object.defineProperty(exports, key, {
|
|
150
|
+
enumerable: true,
|
|
151
|
+
get: function () {
|
|
152
|
+
return _License[key];
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
var _Newsroom = require("./Newsroom.js");
|
|
157
|
+
Object.keys(_Newsroom).forEach(function (key) {
|
|
158
|
+
if (key === "default" || key === "__esModule") return;
|
|
159
|
+
Object.defineProperty(exports, key, {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function () {
|
|
162
|
+
return _Newsroom[key];
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
var _NewsroomCompanyInformation = require("./NewsroomCompanyInformation.js");
|
|
167
|
+
Object.keys(_NewsroomCompanyInformation).forEach(function (key) {
|
|
168
|
+
if (key === "default" || key === "__esModule") return;
|
|
169
|
+
Object.defineProperty(exports, key, {
|
|
170
|
+
enumerable: true,
|
|
171
|
+
get: function () {
|
|
172
|
+
return _NewsroomCompanyInformation[key];
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
var _NewsroomContact = require("./NewsroomContact.js");
|
|
177
|
+
Object.keys(_NewsroomContact).forEach(function (key) {
|
|
178
|
+
if (key === "default" || key === "__esModule") return;
|
|
179
|
+
Object.defineProperty(exports, key, {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function () {
|
|
182
|
+
return _NewsroomContact[key];
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
var _NewsroomDomain = require("./NewsroomDomain.js");
|
|
187
|
+
Object.keys(_NewsroomDomain).forEach(function (key) {
|
|
188
|
+
if (key === "default" || key === "__esModule") return;
|
|
189
|
+
Object.defineProperty(exports, key, {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function () {
|
|
192
|
+
return _NewsroomDomain[key];
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
var _NewsroomGallery = require("./NewsroomGallery.js");
|
|
197
|
+
Object.keys(_NewsroomGallery).forEach(function (key) {
|
|
198
|
+
if (key === "default" || key === "__esModule") return;
|
|
199
|
+
Object.defineProperty(exports, key, {
|
|
200
|
+
enumerable: true,
|
|
201
|
+
get: function () {
|
|
202
|
+
return _NewsroomGallery[key];
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
var _NewsroomLanguageSettings = require("./NewsroomLanguageSettings.js");
|
|
207
|
+
Object.keys(_NewsroomLanguageSettings).forEach(function (key) {
|
|
208
|
+
if (key === "default" || key === "__esModule") return;
|
|
209
|
+
Object.defineProperty(exports, key, {
|
|
210
|
+
enumerable: true,
|
|
211
|
+
get: function () {
|
|
212
|
+
return _NewsroomLanguageSettings[key];
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
var _NewsroomTheme = require("./NewsroomTheme.js");
|
|
217
|
+
Object.keys(_NewsroomTheme).forEach(function (key) {
|
|
218
|
+
if (key === "default" || key === "__esModule") return;
|
|
219
|
+
Object.defineProperty(exports, key, {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function () {
|
|
222
|
+
return _NewsroomTheme[key];
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
var _NewsroomWebhook = require("./NewsroomWebhook.js");
|
|
227
|
+
Object.keys(_NewsroomWebhook).forEach(function (key) {
|
|
228
|
+
if (key === "default" || key === "__esModule") return;
|
|
229
|
+
Object.defineProperty(exports, key, {
|
|
230
|
+
enumerable: true,
|
|
231
|
+
get: function () {
|
|
232
|
+
return _NewsroomWebhook[key];
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
var _Plan = require("./Plan.js");
|
|
237
|
+
Object.keys(_Plan).forEach(function (key) {
|
|
238
|
+
if (key === "default" || key === "__esModule") return;
|
|
239
|
+
Object.defineProperty(exports, key, {
|
|
240
|
+
enumerable: true,
|
|
241
|
+
get: function () {
|
|
242
|
+
return _Plan[key];
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
var _PrivacyRequest = require("./PrivacyRequest.js");
|
|
247
|
+
Object.keys(_PrivacyRequest).forEach(function (key) {
|
|
248
|
+
if (key === "default" || key === "__esModule") return;
|
|
249
|
+
Object.defineProperty(exports, key, {
|
|
250
|
+
enumerable: true,
|
|
251
|
+
get: function () {
|
|
252
|
+
return _PrivacyRequest[key];
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
var _SenderAddress = require("./SenderAddress.js");
|
|
257
|
+
Object.keys(_SenderAddress).forEach(function (key) {
|
|
258
|
+
if (key === "default" || key === "__esModule") return;
|
|
259
|
+
Object.defineProperty(exports, key, {
|
|
260
|
+
enumerable: true,
|
|
261
|
+
get: function () {
|
|
262
|
+
return _SenderAddress[key];
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
var _SenderDomain = require("./SenderDomain.js");
|
|
267
|
+
Object.keys(_SenderDomain).forEach(function (key) {
|
|
268
|
+
if (key === "default" || key === "__esModule") return;
|
|
269
|
+
Object.defineProperty(exports, key, {
|
|
270
|
+
enumerable: true,
|
|
271
|
+
get: function () {
|
|
272
|
+
return _SenderDomain[key];
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
var _Snippet = require("./Snippet.js");
|
|
277
|
+
Object.keys(_Snippet).forEach(function (key) {
|
|
278
|
+
if (key === "default" || key === "__esModule") return;
|
|
279
|
+
Object.defineProperty(exports, key, {
|
|
280
|
+
enumerable: true,
|
|
281
|
+
get: function () {
|
|
282
|
+
return _Snippet[key];
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
var _Story = require("./Story.js");
|
|
287
|
+
Object.keys(_Story).forEach(function (key) {
|
|
288
|
+
if (key === "default" || key === "__esModule") return;
|
|
289
|
+
Object.defineProperty(exports, key, {
|
|
290
|
+
enumerable: true,
|
|
291
|
+
get: function () {
|
|
292
|
+
return _Story[key];
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
var _User = require("./User.js");
|
|
297
|
+
Object.keys(_User).forEach(function (key) {
|
|
298
|
+
if (key === "default" || key === "__esModule") return;
|
|
299
|
+
Object.defineProperty(exports, key, {
|
|
300
|
+
enumerable: true,
|
|
301
|
+
get: function () {
|
|
302
|
+
return _User[key];
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
var _UserAccount = require("./UserAccount.js");
|
|
307
|
+
Object.keys(_UserAccount).forEach(function (key) {
|
|
308
|
+
if (key === "default" || key === "__esModule") return;
|
|
309
|
+
Object.defineProperty(exports, key, {
|
|
310
|
+
enumerable: true,
|
|
311
|
+
get: function () {
|
|
312
|
+
return _UserAccount[key];
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
var _NotificationSubscription = require("./NotificationSubscription.js");
|
|
317
|
+
Object.keys(_NotificationSubscription).forEach(function (key) {
|
|
318
|
+
if (key === "default" || key === "__esModule") return;
|
|
319
|
+
Object.defineProperty(exports, key, {
|
|
320
|
+
enumerable: true,
|
|
321
|
+
get: function () {
|
|
322
|
+
return _NotificationSubscription[key];
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
});
|
package/dist/utils.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.stripSlashes = stripSlashes;
|
|
7
|
+
exports.toIso8601 = toIso8601;
|
|
1
8
|
/**
|
|
2
9
|
* Remove heading and trailing slashes.
|
|
3
10
|
* Examples:
|
|
@@ -5,7 +12,7 @@
|
|
|
5
12
|
* - /v2/path -> v2/path
|
|
6
13
|
* - /v2/path/ -> v2/path
|
|
7
14
|
*/
|
|
8
|
-
|
|
15
|
+
function stripSlashes(url) {
|
|
9
16
|
return url.replace(/^\/|\/$/g, '');
|
|
10
17
|
}
|
|
11
18
|
function pad(num) {
|
|
@@ -16,7 +23,7 @@ function pad(num) {
|
|
|
16
23
|
/**
|
|
17
24
|
* @see https://stackoverflow.com/a/17415677/1895069
|
|
18
25
|
*/
|
|
19
|
-
|
|
26
|
+
function toIso8601(date) {
|
|
20
27
|
const offset = -date.getTimezoneOffset();
|
|
21
28
|
const sign = offset >= 0 ? '+' : '-';
|
|
22
29
|
return date.getFullYear() + '-' + pad(date.getMonth() + 1) + '-' + pad(date.getDate()) + 'T' + pad(date.getHours()) + ':' + pad(date.getMinutes()) + ':' + pad(date.getSeconds()) + sign + pad(offset / 60) + ':' + pad(offset % 60);
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prezly/sdk",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.8.1-cjs",
|
|
4
4
|
"description": "Prezly API SDK",
|
|
5
|
-
"type": "
|
|
5
|
+
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/**"
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@babel/cli": "^7.19.3",
|
|
26
26
|
"@babel/core": "^7.7.2",
|
|
27
|
+
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
27
28
|
"@babel/preset-env": "^7.7.1",
|
|
28
29
|
"@babel/preset-typescript": "^7.18.6",
|
|
29
30
|
"@types/node": "^12.12.9",
|
|
@@ -46,9 +47,9 @@
|
|
|
46
47
|
"scripts": {
|
|
47
48
|
"clean": "rimraf dist node_modules",
|
|
48
49
|
"prebuild": "npm run clean && npm ci",
|
|
49
|
-
"build": "npm run build:types && npm run build:
|
|
50
|
+
"build": "npm run build:types && npm run build:cjs",
|
|
50
51
|
"build:types": "tsc --project .",
|
|
51
|
-
"build:
|
|
52
|
+
"build:cjs": "babel ./src --ignore='**/*.test.ts' --config-file=./babel.config.json --extensions=.ts,.cts --source-root=./src --out-dir=./dist",
|
|
52
53
|
"watch": "tsc --watch --preserveWatchOutput --project .",
|
|
53
54
|
"start": "npm run build --incremental --watch",
|
|
54
55
|
"lint": "eslint ./src --ext=.ts",
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
"prettier:check": "prettier --check './src/**/*.{ts,js}'",
|
|
61
62
|
"prettier:fix": "prettier --write './src/**/*.{ts,js}'",
|
|
62
63
|
"prerelease": "npm run clean && npm run build",
|
|
63
|
-
"release": "np"
|
|
64
|
+
"release": "np --any-branch --no-tests"
|
|
64
65
|
},
|
|
65
66
|
"np": {
|
|
66
67
|
"yarn": false
|