@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/Currency.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Currency = void 0;
|
|
7
|
+
let Currency;
|
|
8
|
+
exports.Currency = Currency;
|
|
2
9
|
(function (Currency) {
|
|
3
10
|
Currency["EUR"] = "eur";
|
|
4
11
|
Currency["USD"] = "usd";
|
|
5
12
|
Currency["GBP"] = "gbp";
|
|
6
|
-
})(Currency || (Currency = {}));
|
|
13
|
+
})(Currency || (exports.Currency = Currency = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.EmailRecipient = void 0;
|
|
7
|
+
let EmailRecipient;
|
|
8
|
+
exports.EmailRecipient = EmailRecipient;
|
|
2
9
|
(function (_EmailRecipient) {
|
|
3
10
|
let EmailAddressStatus;
|
|
4
11
|
(function (EmailAddressStatus) {
|
|
@@ -8,4 +15,4 @@ export let EmailRecipient;
|
|
|
8
15
|
EmailAddressStatus["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
|
|
9
16
|
})(EmailAddressStatus || (EmailAddressStatus = {}));
|
|
10
17
|
_EmailRecipient.EmailAddressStatus = EmailAddressStatus;
|
|
11
|
-
})(EmailRecipient || (EmailRecipient = {}));
|
|
18
|
+
})(EmailRecipient || (exports.EmailRecipient = EmailRecipient = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
package/dist/types/JobState.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.JobStatus = void 0;
|
|
7
|
+
let JobStatus;
|
|
8
|
+
exports.JobStatus = JobStatus;
|
|
2
9
|
(function (JobStatus) {
|
|
3
10
|
JobStatus["PENDING"] = "pending";
|
|
4
11
|
JobStatus["RESOLVED"] = "resolved";
|
|
5
12
|
JobStatus["REJECTED"] = "rejected";
|
|
6
|
-
})(JobStatus || (JobStatus = {}));
|
|
13
|
+
})(JobStatus || (exports.JobStatus = JobStatus = {}));
|
package/dist/types/License.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.License = void 0;
|
|
7
|
+
let License;
|
|
8
|
+
exports.License = License;
|
|
2
9
|
(function (_License) {
|
|
3
10
|
let Type;
|
|
4
11
|
(function (Type) {
|
|
@@ -21,4 +28,4 @@ export let License;
|
|
|
21
28
|
Status["UNPAID"] = "unpaid";
|
|
22
29
|
})(Status || (Status = {}));
|
|
23
30
|
_License.Status = Status;
|
|
24
|
-
})(License || (License = {}));
|
|
31
|
+
})(License || (exports.License = License = {}));
|
package/dist/types/Newsroom.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Newsroom = void 0;
|
|
7
|
+
let Newsroom;
|
|
8
|
+
exports.Newsroom = Newsroom;
|
|
2
9
|
(function (_Newsroom) {
|
|
3
10
|
let Status;
|
|
4
11
|
(function (Status) {
|
|
@@ -20,4 +27,4 @@ export let Newsroom;
|
|
|
20
27
|
TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
|
|
21
28
|
})(TrackingPolicy || (TrackingPolicy = {}));
|
|
22
29
|
_Newsroom.TrackingPolicy = TrackingPolicy;
|
|
23
|
-
})(Newsroom || (Newsroom = {}));
|
|
30
|
+
})(Newsroom || (exports.Newsroom = Newsroom = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.NewsroomDomain = void 0;
|
|
7
|
+
let NewsroomDomain;
|
|
8
|
+
exports.NewsroomDomain = NewsroomDomain;
|
|
2
9
|
(function (_NewsroomDomain) {
|
|
3
10
|
let Type;
|
|
4
11
|
(function (Type) {
|
|
@@ -14,4 +21,4 @@ export let NewsroomDomain;
|
|
|
14
21
|
Status["REDIRECT"] = "redirect";
|
|
15
22
|
})(Status || (Status = {}));
|
|
16
23
|
_NewsroomDomain.Status = Status;
|
|
17
|
-
})(NewsroomDomain || (NewsroomDomain = {}));
|
|
24
|
+
})(NewsroomDomain || (exports.NewsroomDomain = NewsroomDomain = {}));
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.NewsroomGallery = void 0;
|
|
7
|
+
let NewsroomGallery;
|
|
8
|
+
exports.NewsroomGallery = NewsroomGallery;
|
|
2
9
|
(function (_NewsroomGallery) {
|
|
3
10
|
let Status;
|
|
4
11
|
(function (Status) {
|
|
@@ -6,4 +13,4 @@ export let NewsroomGallery;
|
|
|
6
13
|
Status["PUBLIC"] = "public";
|
|
7
14
|
})(Status || (Status = {}));
|
|
8
15
|
_NewsroomGallery.Status = Status;
|
|
9
|
-
})(NewsroomGallery || (NewsroomGallery = {}));
|
|
16
|
+
})(NewsroomGallery || (exports.NewsroomGallery = NewsroomGallery = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.NewsroomThemePreset = exports.NewsroomTheme = void 0;
|
|
7
|
+
let NewsroomTheme;
|
|
8
|
+
exports.NewsroomTheme = NewsroomTheme;
|
|
2
9
|
(function (_NewsroomTheme) {
|
|
3
10
|
let Status;
|
|
4
11
|
(function (Status) {
|
|
@@ -25,6 +32,7 @@ export let NewsroomTheme;
|
|
|
25
32
|
return theme.features.includes(feature);
|
|
26
33
|
}
|
|
27
34
|
_NewsroomTheme.isFeatureSupported = isFeatureSupported;
|
|
28
|
-
})(NewsroomTheme || (NewsroomTheme = {}));
|
|
29
|
-
|
|
30
|
-
|
|
35
|
+
})(NewsroomTheme || (exports.NewsroomTheme = NewsroomTheme = {}));
|
|
36
|
+
let NewsroomThemePreset;
|
|
37
|
+
exports.NewsroomThemePreset = NewsroomThemePreset;
|
|
38
|
+
(function (_NewsroomThemePreset) {})(NewsroomThemePreset || (exports.NewsroomThemePreset = NewsroomThemePreset = {}));
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.NewsroomWebhook = void 0;
|
|
7
|
+
let NewsroomWebhook;
|
|
8
|
+
exports.NewsroomWebhook = NewsroomWebhook;
|
|
2
9
|
(function (_NewsroomWebhook) {
|
|
3
10
|
let Event;
|
|
4
11
|
(function (Event) {
|
|
@@ -10,4 +17,4 @@ export let NewsroomWebhook;
|
|
|
10
17
|
Event["CATEGORY_DELETED"] = "category.deleted";
|
|
11
18
|
})(Event || (Event = {}));
|
|
12
19
|
_NewsroomWebhook.Event = Event;
|
|
13
|
-
})(NewsroomWebhook || (NewsroomWebhook = {}));
|
|
20
|
+
})(NewsroomWebhook || (exports.NewsroomWebhook = NewsroomWebhook = {}));
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.NotificationSubscription = void 0;
|
|
7
|
+
let NotificationSubscription;
|
|
8
|
+
exports.NotificationSubscription = NotificationSubscription;
|
|
2
9
|
(function (_NotificationSubscription) {
|
|
3
10
|
let Area;
|
|
4
11
|
(function (Area) {
|
|
@@ -7,4 +14,4 @@ export let NotificationSubscription;
|
|
|
7
14
|
Area["BILLING_AND_LEGAL"] = "Billing & Legal";
|
|
8
15
|
})(Area || (Area = {}));
|
|
9
16
|
_NotificationSubscription.Area = Area;
|
|
10
|
-
})(NotificationSubscription || (NotificationSubscription = {}));
|
|
17
|
+
})(NotificationSubscription || (exports.NotificationSubscription = NotificationSubscription = {}));
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Permission = void 0;
|
|
7
|
+
let Permission;
|
|
8
|
+
exports.Permission = Permission;
|
|
2
9
|
(function (Permission) {
|
|
3
10
|
Permission["CREATE_NEWSROOM"] = "create_newsroom";
|
|
4
11
|
Permission["EXPORT_CONTACTS"] = "export_contacts";
|
|
@@ -8,4 +15,4 @@ export let Permission;
|
|
|
8
15
|
Permission["VIEW_CONTACTS"] = "view_contacts";
|
|
9
16
|
Permission["CREATE_SENDER_ADDRESS"] = "create_sender_address";
|
|
10
17
|
Permission["SEND_EMAILS"] = "send_emails";
|
|
11
|
-
})(Permission || (Permission = {}));
|
|
18
|
+
})(Permission || (exports.Permission = Permission = {}));
|
package/dist/types/Plan.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PlanLevel = void 0;
|
|
7
|
+
let PlanLevel;
|
|
8
|
+
exports.PlanLevel = PlanLevel;
|
|
2
9
|
(function (PlanLevel) {
|
|
3
10
|
PlanLevel["BASIC"] = "basic";
|
|
4
11
|
PlanLevel["CORE"] = "core";
|
|
@@ -8,4 +15,4 @@ export let PlanLevel;
|
|
|
8
15
|
PlanLevel["PREMIUM"] = "premium";
|
|
9
16
|
PlanLevel["PROFESSIONAL"] = "professional";
|
|
10
17
|
PlanLevel["STARTER"] = "starter";
|
|
11
|
-
})(PlanLevel || (PlanLevel = {}));
|
|
18
|
+
})(PlanLevel || (exports.PlanLevel = PlanLevel = {}));
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PrivacyRequest = void 0;
|
|
7
|
+
let PrivacyRequest;
|
|
8
|
+
exports.PrivacyRequest = PrivacyRequest;
|
|
2
9
|
(function (_PrivacyRequest) {
|
|
3
10
|
let Type;
|
|
4
11
|
(function (Type) {
|
|
@@ -14,4 +21,4 @@ export let PrivacyRequest;
|
|
|
14
21
|
Status["CONFIRMED"] = "confirmed";
|
|
15
22
|
})(Status || (Status = {}));
|
|
16
23
|
_PrivacyRequest.Status = Status;
|
|
17
|
-
})(PrivacyRequest || (PrivacyRequest = {}));
|
|
24
|
+
})(PrivacyRequest || (exports.PrivacyRequest = PrivacyRequest = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SenderAddress = void 0;
|
|
7
|
+
let SenderAddress;
|
|
8
|
+
exports.SenderAddress = SenderAddress;
|
|
2
9
|
(function (_SenderAddress) {
|
|
3
10
|
let Type;
|
|
4
11
|
(function (Type) {
|
|
@@ -6,4 +13,4 @@ export let SenderAddress;
|
|
|
6
13
|
Type["PREZLYMAIL"] = "prezly_mail";
|
|
7
14
|
})(Type || (Type = {}));
|
|
8
15
|
_SenderAddress.Type = Type;
|
|
9
|
-
})(SenderAddress || (SenderAddress = {}));
|
|
16
|
+
})(SenderAddress || (exports.SenderAddress = SenderAddress = {}));
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SenderDomain = void 0;
|
|
7
|
+
let SenderDomain;
|
|
8
|
+
exports.SenderDomain = SenderDomain;
|
|
2
9
|
(function (_SenderDomain) {
|
|
3
10
|
let VerificationFlowVersion;
|
|
4
11
|
(function (VerificationFlowVersion) {
|
|
@@ -8,4 +15,4 @@ export let SenderDomain;
|
|
|
8
15
|
VerificationFlowVersion["PREZLYMAIL"] = "prezlymail";
|
|
9
16
|
})(VerificationFlowVersion || (VerificationFlowVersion = {}));
|
|
10
17
|
_SenderDomain.VerificationFlowVersion = VerificationFlowVersion;
|
|
11
|
-
})(SenderDomain || (SenderDomain = {}));
|
|
18
|
+
})(SenderDomain || (exports.SenderDomain = SenderDomain = {}));
|
package/dist/types/Snippet.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
package/dist/types/Story.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { Category } from './Category';
|
|
|
2
2
|
import type { OEmbedInfo } from './common';
|
|
3
3
|
import type { CultureRef } from './Culture';
|
|
4
4
|
import type { NewsroomRef } from './Newsroom';
|
|
5
|
+
import type { SEOSettings } from './SEOSettings';
|
|
5
6
|
import type { UserRef } from './User';
|
|
6
7
|
export interface StoryRef {
|
|
7
8
|
uuid: string;
|
|
@@ -132,6 +133,7 @@ export interface Story {
|
|
|
132
133
|
visibility: Story.Visibility;
|
|
133
134
|
is_pinned: boolean;
|
|
134
135
|
pinned_by: UserRef | null;
|
|
136
|
+
seo_settings: SEOSettings;
|
|
135
137
|
}
|
|
136
138
|
export declare namespace Story {
|
|
137
139
|
enum FormatVersion {
|
package/dist/types/Story.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Story = void 0;
|
|
7
|
+
let Story;
|
|
8
|
+
exports.Story = Story;
|
|
2
9
|
(function (_Story) {
|
|
3
10
|
let FormatVersion;
|
|
4
11
|
(function (FormatVersion) {
|
|
@@ -79,4 +86,4 @@ export let Story;
|
|
|
79
86
|
return arg === FormatVersion.SLATEJS;
|
|
80
87
|
}
|
|
81
88
|
_Story.isSlateFormat = isSlateFormat;
|
|
82
|
-
})(Story || (Story = {}));
|
|
89
|
+
})(Story || (exports.Story = Story = {}));
|
package/dist/types/User.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.User = void 0;
|
|
7
|
+
let User;
|
|
8
|
+
exports.User = User;
|
|
2
9
|
(function (_User) {
|
|
3
10
|
let SignInFlow;
|
|
4
11
|
(function (SignInFlow) {
|
|
@@ -18,4 +25,4 @@ export let User;
|
|
|
18
25
|
UseCaseAnswer["SKIP"] = "skip";
|
|
19
26
|
})(UseCaseAnswer || (UseCaseAnswer = {}));
|
|
20
27
|
_User.UseCaseAnswer = UseCaseAnswer;
|
|
21
|
-
})(User || (User = {}));
|
|
28
|
+
})(User || (exports.User = User = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Notification = void 0;
|
|
7
|
+
let Notification;
|
|
8
|
+
exports.Notification = Notification;
|
|
2
9
|
(function (_Notification) {
|
|
3
10
|
let Style;
|
|
4
11
|
(function (Style) {
|
|
@@ -8,4 +15,4 @@ export let Notification;
|
|
|
8
15
|
Style["DANGER"] = "danger";
|
|
9
16
|
})(Style || (Style = {}));
|
|
10
17
|
_Notification.Style = Style;
|
|
11
|
-
})(Notification || (Notification = {}));
|
|
18
|
+
})(Notification || (exports.Notification = Notification = {}));
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.OEmbedInfo = void 0;
|
|
7
|
+
let OEmbedInfo;
|
|
8
|
+
exports.OEmbedInfo = OEmbedInfo;
|
|
2
9
|
(function (_OEmbedInfo) {
|
|
3
10
|
let Type;
|
|
4
11
|
(function (Type) {
|
|
@@ -8,4 +15,4 @@ export let OEmbedInfo;
|
|
|
8
15
|
Type["VIDEO"] = "video";
|
|
9
16
|
})(Type || (Type = {}));
|
|
10
17
|
_OEmbedInfo.Type = Type;
|
|
11
|
-
})(OEmbedInfo || (OEmbedInfo = {}));
|
|
18
|
+
})(OEmbedInfo || (exports.OEmbedInfo = OEmbedInfo = {}));
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SelectionMode = void 0;
|
|
1
7
|
/**
|
|
2
8
|
* @see https://api.prezly.com/v2/common/schema.json#/definitions/Pagination
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export let SelectionMode;
|
|
9
|
+
*/let SelectionMode;
|
|
10
|
+
exports.SelectionMode = SelectionMode;
|
|
6
11
|
(function (SelectionMode) {
|
|
7
12
|
SelectionMode["ALL"] = "all";
|
|
8
13
|
SelectionMode["IN"] = "in";
|
|
9
14
|
SelectionMode["NOT_IN"] = "not_in";
|
|
10
|
-
})(SelectionMode || (SelectionMode = {}));
|
|
15
|
+
})(SelectionMode || (exports.SelectionMode = SelectionMode = {}));
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Query = void 0;
|
|
1
7
|
// TODO: Refine Query typings
|
|
2
8
|
/**
|
|
3
9
|
* @see https://developers.prezly.com/docs/api/docs/06-prezly-query-language.md
|
|
4
10
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
11
|
+
let Query;
|
|
12
|
+
exports.Query = Query;
|
|
7
13
|
(function (_Query) {
|
|
8
14
|
function stringify(query) {
|
|
9
15
|
if (!query) {
|
|
@@ -12,4 +18,4 @@ export let Query;
|
|
|
12
18
|
return typeof query === 'string' ? query : JSON.stringify(query);
|
|
13
19
|
}
|
|
14
20
|
_Query.stringify = stringify;
|
|
15
|
-
})(Query || (Query = {}));
|
|
21
|
+
})(Query || (exports.Query = Query = {}));
|
package/dist/types/common/Utm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
@@ -1,6 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _Notification = require("./Notification.js");
|
|
7
|
+
Object.keys(_Notification).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
Object.defineProperty(exports, key, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return _Notification[key];
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
var _OEmbedInfo = require("./OEmbedInfo.js");
|
|
17
|
+
Object.keys(_OEmbedInfo).forEach(function (key) {
|
|
18
|
+
if (key === "default" || key === "__esModule") return;
|
|
19
|
+
Object.defineProperty(exports, key, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _OEmbedInfo[key];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
var _Pagination = require("./Pagination.js");
|
|
27
|
+
Object.keys(_Pagination).forEach(function (key) {
|
|
28
|
+
if (key === "default" || key === "__esModule") return;
|
|
29
|
+
Object.defineProperty(exports, key, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () {
|
|
32
|
+
return _Pagination[key];
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
var _Query = require("./Query.js");
|
|
37
|
+
Object.keys(_Query).forEach(function (key) {
|
|
38
|
+
if (key === "default" || key === "__esModule") return;
|
|
39
|
+
Object.defineProperty(exports, key, {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () {
|
|
42
|
+
return _Query[key];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
var _Utm = require("./Utm.js");
|
|
47
|
+
Object.keys(_Utm).forEach(function (key) {
|
|
48
|
+
if (key === "default" || key === "__esModule") return;
|
|
49
|
+
Object.defineProperty(exports, key, {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () {
|
|
52
|
+
return _Utm[key];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
var _Warning = require("./Warning.js");
|
|
57
|
+
Object.keys(_Warning).forEach(function (key) {
|
|
58
|
+
if (key === "default" || key === "__esModule") return;
|
|
59
|
+
Object.defineProperty(exports, key, {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () {
|
|
62
|
+
return _Warning[key];
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
});
|