@prezly/sdk 11.8.0 → 11.8.1-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.
- package/dist/Client.cjs +45 -0
- package/dist/api/ApiClient.cjs +95 -0
- package/dist/api/DeferredJobsApiClient.cjs +99 -0
- package/dist/api/constants.cjs +10 -0
- package/dist/api/constants.js +1 -1
- package/dist/api/index.cjs +19 -0
- package/dist/endpoints/Accounts/Client.cjs +29 -0
- package/dist/endpoints/Accounts/index.cjs +25 -0
- package/dist/endpoints/Accounts/types.cjs +1 -0
- package/dist/endpoints/Billing/Client.cjs +19 -0
- package/dist/endpoints/Billing/index.cjs +25 -0
- package/dist/endpoints/Billing/types.cjs +25 -0
- package/dist/endpoints/CampaignRecipients/Client.cjs +85 -0
- package/dist/endpoints/CampaignRecipients/index.cjs +37 -0
- package/dist/endpoints/CampaignRecipients/types.cjs +1 -0
- package/dist/endpoints/Campaigns/Client.cjs +92 -0
- package/dist/endpoints/Campaigns/index.cjs +25 -0
- package/dist/endpoints/Campaigns/types.cjs +1 -0
- package/dist/endpoints/ContactsExports/Client.cjs +98 -0
- package/dist/endpoints/ContactsExports/index.cjs +37 -0
- package/dist/endpoints/ContactsExports/types.cjs +1 -0
- package/dist/endpoints/Coverage/Client.cjs +109 -0
- package/dist/endpoints/Coverage/index.cjs +25 -0
- package/dist/endpoints/Coverage/types.cjs +1 -0
- package/dist/endpoints/Jobs/Client.cjs +19 -0
- package/dist/endpoints/Jobs/index.cjs +25 -0
- package/dist/endpoints/Jobs/types.cjs +1 -0
- package/dist/endpoints/Licenses/Client.cjs +20 -0
- package/dist/endpoints/Licenses/index.cjs +15 -0
- package/dist/endpoints/NewsroomCategories/Client.cjs +55 -0
- package/dist/endpoints/NewsroomCategories/index.cjs +25 -0
- package/dist/endpoints/NewsroomCategories/types.cjs +1 -0
- package/dist/endpoints/NewsroomContacts/Client.cjs +76 -0
- package/dist/endpoints/NewsroomContacts/index.cjs +25 -0
- package/dist/endpoints/NewsroomContacts/types.cjs +1 -0
- package/dist/endpoints/NewsroomDomains/Client.cjs +48 -0
- package/dist/endpoints/NewsroomDomains/index.cjs +25 -0
- package/dist/endpoints/NewsroomDomains/types.cjs +1 -0
- package/dist/endpoints/NewsroomGalleries/Client.cjs +82 -0
- package/dist/endpoints/NewsroomGalleries/index.cjs +25 -0
- package/dist/endpoints/NewsroomGalleries/types.cjs +1 -0
- package/dist/endpoints/NewsroomLanguages/Client.cjs +100 -0
- package/dist/endpoints/NewsroomLanguages/index.cjs +25 -0
- package/dist/endpoints/NewsroomLanguages/lib.cjs +9 -0
- package/dist/endpoints/NewsroomLanguages/types.cjs +1 -0
- package/dist/endpoints/NewsroomPrivacyRequests/Client.cjs +29 -0
- package/dist/endpoints/NewsroomPrivacyRequests/index.cjs +25 -0
- package/dist/endpoints/NewsroomPrivacyRequests/types.cjs +1 -0
- package/dist/endpoints/NewsroomSubscriptions/Client.cjs +22 -0
- package/dist/endpoints/NewsroomSubscriptions/index.cjs +25 -0
- package/dist/endpoints/NewsroomSubscriptions/types.cjs +1 -0
- package/dist/endpoints/NewsroomThemes/Client.cjs +43 -0
- package/dist/endpoints/NewsroomThemes/index.cjs +15 -0
- package/dist/endpoints/NewsroomWebhooks/Client.cjs +49 -0
- package/dist/endpoints/NewsroomWebhooks/index.cjs +25 -0
- package/dist/endpoints/NewsroomWebhooks/types.cjs +1 -0
- package/dist/endpoints/Newsrooms/Client.cjs +97 -0
- package/dist/endpoints/Newsrooms/index.cjs +25 -0
- package/dist/endpoints/Newsrooms/types.cjs +1 -0
- package/dist/endpoints/NotificationSubscriptions/Client.cjs +29 -0
- package/dist/endpoints/NotificationSubscriptions/index.cjs +25 -0
- package/dist/endpoints/NotificationSubscriptions/types.cjs +1 -0
- package/dist/endpoints/SenderAddresses/Client.cjs +44 -0
- package/dist/endpoints/SenderAddresses/index.cjs +25 -0
- package/dist/endpoints/SenderAddresses/types.cjs +1 -0
- package/dist/endpoints/Signup/Client.cjs +21 -0
- package/dist/endpoints/Signup/index.cjs +25 -0
- package/dist/endpoints/Signup/types.cjs +12 -0
- package/dist/endpoints/Snippets/Client.cjs +49 -0
- package/dist/endpoints/Snippets/index.cjs +25 -0
- package/dist/endpoints/Snippets/types.cjs +1 -0
- package/dist/endpoints/Stories/Client.cjs +291 -0
- package/dist/endpoints/Stories/index.cjs +35 -0
- package/dist/endpoints/Stories/scopes.cjs +15 -0
- package/dist/endpoints/Stories/types.cjs +51 -0
- package/dist/endpoints/Subscriptions/Client.cjs +58 -0
- package/dist/endpoints/Subscriptions/index.cjs +25 -0
- package/dist/endpoints/Subscriptions/types.cjs +15 -0
- package/dist/endpoints/index.cjs +56 -0
- package/dist/http/ApiError.cjs +21 -0
- package/dist/http/Http.cjs +69 -0
- package/dist/http/constants.cjs +12 -0
- package/dist/http/createRequest.cjs +106 -0
- package/dist/http/index.cjs +39 -0
- package/dist/http/lib.cjs +39 -0
- package/dist/http/types.cjs +25 -0
- package/dist/index.cjs +56 -0
- package/dist/routing.cjs +38 -0
- package/dist/types/Campaign.cjs +69 -0
- package/dist/types/Category.cjs +1 -0
- package/dist/types/Contact.cjs +82 -0
- package/dist/types/ContactDuplicateSuggestion.cjs +17 -0
- package/dist/types/ContactsExport.cjs +17 -0
- package/dist/types/ContactsScope.cjs +19 -0
- package/dist/types/Country.cjs +1 -0
- package/dist/types/CoverageEntry.cjs +32 -0
- package/dist/types/Culture.cjs +16 -0
- package/dist/types/Currency.cjs +13 -0
- package/dist/types/DnsConfigurationInstruction.cjs +1 -0
- package/dist/types/EmailRecipient.cjs +18 -0
- package/dist/types/EmailSubscription.cjs +1 -0
- package/dist/types/JobState.cjs +13 -0
- package/dist/types/License.cjs +31 -0
- package/dist/types/Newsroom.cjs +30 -0
- package/dist/types/NewsroomCompanyInformation.cjs +1 -0
- package/dist/types/NewsroomContact.cjs +1 -0
- package/dist/types/NewsroomDomain.cjs +24 -0
- package/dist/types/NewsroomGallery.cjs +16 -0
- package/dist/types/NewsroomLanguageSettings.cjs +1 -0
- package/dist/types/NewsroomTheme.cjs +38 -0
- package/dist/types/NewsroomWebhook.cjs +20 -0
- package/dist/types/NotificationSubscription.cjs +17 -0
- package/dist/types/Permissions.cjs +18 -0
- package/dist/types/Plan.cjs +18 -0
- package/dist/types/PrivacyRequest.cjs +24 -0
- package/dist/types/SEOSettings.cjs +1 -0
- package/dist/types/SenderAddress.cjs +16 -0
- package/dist/types/SenderDomain.cjs +18 -0
- package/dist/types/Snippet.cjs +1 -0
- package/dist/types/Story.cjs +89 -0
- package/dist/types/User.cjs +28 -0
- package/dist/types/UserAccount.cjs +1 -0
- package/dist/types/common/Notification.cjs +18 -0
- package/dist/types/common/OEmbedInfo.cjs +18 -0
- package/dist/types/common/Pagination.cjs +15 -0
- package/dist/types/common/Query.cjs +21 -0
- package/dist/types/common/Utm.cjs +1 -0
- package/dist/types/common/Warning.cjs +1 -0
- package/dist/types/common/index.cjs +65 -0
- package/dist/types/index.cjs +325 -0
- package/dist/utils.cjs +30 -0
- package/package.json +14 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ContactsScope = void 0;
|
|
7
|
+
let ContactsScope;
|
|
8
|
+
exports.ContactsScope = ContactsScope;
|
|
9
|
+
(function (_ContactsScope) {
|
|
10
|
+
let Type;
|
|
11
|
+
(function (Type) {
|
|
12
|
+
Type["ALL_CONTACTS"] = "scope:contacts";
|
|
13
|
+
Type["CONTACT_EMPLOYEES"] = "scope:contact_employees";
|
|
14
|
+
Type["CONTACT_ORGANISATIONS"] = "scope:contact_organisations";
|
|
15
|
+
Type["CAMPAIGN_RECIPIENTS"] = "scope:campaign_recipients";
|
|
16
|
+
Type["CAMPAIGN_REPORT"] = "scope:campaign_report";
|
|
17
|
+
})(Type || (Type = {}));
|
|
18
|
+
_ContactsScope.Type = Type;
|
|
19
|
+
})(ContactsScope || (exports.ContactsScope = ContactsScope = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CoverageEntry = void 0;
|
|
7
|
+
let CoverageEntry;
|
|
8
|
+
exports.CoverageEntry = CoverageEntry;
|
|
9
|
+
(function (_CoverageEntry) {
|
|
10
|
+
let Type;
|
|
11
|
+
(function (Type) {
|
|
12
|
+
Type["ONLINE"] = "online";
|
|
13
|
+
Type["SOCIAL"] = "social";
|
|
14
|
+
Type["PRINT"] = "print";
|
|
15
|
+
Type["RADIO"] = "radio";
|
|
16
|
+
Type["TELEVISION"] = "television";
|
|
17
|
+
})(Type || (Type = {}));
|
|
18
|
+
_CoverageEntry.Type = Type;
|
|
19
|
+
let Provider;
|
|
20
|
+
(function (Provider) {
|
|
21
|
+
Provider["AMMCO"] = "ammco";
|
|
22
|
+
Provider["AUXIPRESS"] = "auxipress";
|
|
23
|
+
Provider["BELGA"] = "belga";
|
|
24
|
+
Provider["FEED"] = "feed";
|
|
25
|
+
Provider["KANTAR"] = "kantar";
|
|
26
|
+
Provider["KNEWIN"] = "knewin";
|
|
27
|
+
Provider["MEDIAWEB"] = "mediaweb";
|
|
28
|
+
Provider["MELTWATER"] = "meltwater";
|
|
29
|
+
Provider["MANUAL"] = "manual";
|
|
30
|
+
})(Provider || (Provider = {}));
|
|
31
|
+
_CoverageEntry.Provider = Provider;
|
|
32
|
+
})(CoverageEntry || (exports.CoverageEntry = CoverageEntry = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Culture = void 0;
|
|
7
|
+
let Culture;
|
|
8
|
+
exports.Culture = Culture;
|
|
9
|
+
(function (_Culture) {
|
|
10
|
+
let TextDirection;
|
|
11
|
+
(function (TextDirection) {
|
|
12
|
+
TextDirection["LTR"] = "ltr";
|
|
13
|
+
TextDirection["RTL"] = "rtl";
|
|
14
|
+
})(TextDirection || (TextDirection = {}));
|
|
15
|
+
_Culture.TextDirection = TextDirection;
|
|
16
|
+
})(Culture || (exports.Culture = Culture = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
9
|
+
(function (Currency) {
|
|
10
|
+
Currency["EUR"] = "eur";
|
|
11
|
+
Currency["USD"] = "usd";
|
|
12
|
+
Currency["GBP"] = "gbp";
|
|
13
|
+
})(Currency || (exports.Currency = Currency = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
9
|
+
(function (_EmailRecipient) {
|
|
10
|
+
let EmailAddressStatus;
|
|
11
|
+
(function (EmailAddressStatus) {
|
|
12
|
+
EmailAddressStatus["OK"] = "ok";
|
|
13
|
+
EmailAddressStatus["BOUNCED"] = "bounced";
|
|
14
|
+
EmailAddressStatus["UNSUBSCRIBED"] = "unsubscribed";
|
|
15
|
+
EmailAddressStatus["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
|
|
16
|
+
})(EmailAddressStatus || (EmailAddressStatus = {}));
|
|
17
|
+
_EmailRecipient.EmailAddressStatus = EmailAddressStatus;
|
|
18
|
+
})(EmailRecipient || (exports.EmailRecipient = EmailRecipient = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
9
|
+
(function (JobStatus) {
|
|
10
|
+
JobStatus["PENDING"] = "pending";
|
|
11
|
+
JobStatus["RESOLVED"] = "resolved";
|
|
12
|
+
JobStatus["REJECTED"] = "rejected";
|
|
13
|
+
})(JobStatus || (exports.JobStatus = JobStatus = {}));
|
|
@@ -0,0 +1,31 @@
|
|
|
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;
|
|
9
|
+
(function (_License) {
|
|
10
|
+
let Type;
|
|
11
|
+
(function (Type) {
|
|
12
|
+
Type["FAVOUR"] = "favour";
|
|
13
|
+
Type["FREE"] = "free";
|
|
14
|
+
Type["PAID_AUTO"] = "paid_auto";
|
|
15
|
+
Type["PAID_MANUAL"] = "paid_manual";
|
|
16
|
+
Type["TRIAL"] = "trial";
|
|
17
|
+
})(Type || (Type = {}));
|
|
18
|
+
_License.Type = Type;
|
|
19
|
+
let Status;
|
|
20
|
+
(function (Status) {
|
|
21
|
+
Status["TRIAL"] = "trial";
|
|
22
|
+
Status["ACTIVE"] = "active";
|
|
23
|
+
Status["PAST_DUE"] = "past_due";
|
|
24
|
+
Status["PAYMENT_COLLECTION_PAUSED"] = "payment_collection_paused";
|
|
25
|
+
Status["INACTIVE"] = "inactive";
|
|
26
|
+
Status["INCOMPLETE"] = "incomplete";
|
|
27
|
+
Status["CANCELED"] = "canceled";
|
|
28
|
+
Status["UNPAID"] = "unpaid";
|
|
29
|
+
})(Status || (Status = {}));
|
|
30
|
+
_License.Status = Status;
|
|
31
|
+
})(License || (exports.License = License = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
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;
|
|
9
|
+
(function (_Newsroom) {
|
|
10
|
+
let Status;
|
|
11
|
+
(function (Status) {
|
|
12
|
+
Status["ACTIVE"] = "active";
|
|
13
|
+
Status["INACTIVE"] = "inactive";
|
|
14
|
+
Status["ARCHIVED"] = "archived";
|
|
15
|
+
})(Status || (Status = {}));
|
|
16
|
+
_Newsroom.Status = Status;
|
|
17
|
+
let EmailBrandingMode;
|
|
18
|
+
(function (EmailBrandingMode) {
|
|
19
|
+
EmailBrandingMode["DEFAULT"] = "default";
|
|
20
|
+
EmailBrandingMode["CUSTOM"] = "custom";
|
|
21
|
+
})(EmailBrandingMode || (EmailBrandingMode = {}));
|
|
22
|
+
_Newsroom.EmailBrandingMode = EmailBrandingMode;
|
|
23
|
+
let TrackingPolicy;
|
|
24
|
+
(function (TrackingPolicy) {
|
|
25
|
+
TrackingPolicy["DEFAULT"] = "default";
|
|
26
|
+
TrackingPolicy["DISABLED"] = "disabled";
|
|
27
|
+
TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
|
|
28
|
+
})(TrackingPolicy || (TrackingPolicy = {}));
|
|
29
|
+
_Newsroom.TrackingPolicy = TrackingPolicy;
|
|
30
|
+
})(Newsroom || (exports.Newsroom = Newsroom = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
9
|
+
(function (_NewsroomDomain) {
|
|
10
|
+
let Type;
|
|
11
|
+
(function (Type) {
|
|
12
|
+
Type["PREZLY"] = "prezly";
|
|
13
|
+
Type["CUSTOM"] = "custom";
|
|
14
|
+
Type["REVERSE_PROXY"] = "reverse_proxy";
|
|
15
|
+
})(Type || (Type = {}));
|
|
16
|
+
_NewsroomDomain.Type = Type;
|
|
17
|
+
let Status;
|
|
18
|
+
(function (Status) {
|
|
19
|
+
Status["ACTIVE"] = "active";
|
|
20
|
+
Status["INACTIVE"] = "inactive";
|
|
21
|
+
Status["REDIRECT"] = "redirect";
|
|
22
|
+
})(Status || (Status = {}));
|
|
23
|
+
_NewsroomDomain.Status = Status;
|
|
24
|
+
})(NewsroomDomain || (exports.NewsroomDomain = NewsroomDomain = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
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;
|
|
9
|
+
(function (_NewsroomGallery) {
|
|
10
|
+
let Status;
|
|
11
|
+
(function (Status) {
|
|
12
|
+
Status["PRIVATE"] = "private";
|
|
13
|
+
Status["PUBLIC"] = "public";
|
|
14
|
+
})(Status || (Status = {}));
|
|
15
|
+
_NewsroomGallery.Status = Status;
|
|
16
|
+
})(NewsroomGallery || (exports.NewsroomGallery = NewsroomGallery = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,38 @@
|
|
|
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;
|
|
9
|
+
(function (_NewsroomTheme) {
|
|
10
|
+
let Status;
|
|
11
|
+
(function (Status) {
|
|
12
|
+
Status["BETA"] = "beta";
|
|
13
|
+
Status["STABLE"] = "stable";
|
|
14
|
+
})(Status || (Status = {}));
|
|
15
|
+
_NewsroomTheme.Status = Status;
|
|
16
|
+
let Feature;
|
|
17
|
+
(function (Feature) {
|
|
18
|
+
Feature["CATEGORIES"] = "categories";
|
|
19
|
+
Feature["SEARCH"] = "search";
|
|
20
|
+
Feature["MEDIA_GALLERIES"] = "media_galleries";
|
|
21
|
+
Feature["BOILERPLATE"] = "boilerplate";
|
|
22
|
+
Feature["MULTI_LANGUAGE"] = "multi_language";
|
|
23
|
+
Feature["CUSTOM_COLORS"] = "custom_colors";
|
|
24
|
+
Feature["OPTIONAL_PRIVACY_PORTAL"] = "optional_privacy_portal";
|
|
25
|
+
Feature["CUSTOM_CSS_JAVASCRIPT"] = "custom_css_javascript";
|
|
26
|
+
Feature["HOMEPAGE_CONTACTS"] = "homepage_contacts";
|
|
27
|
+
Feature["SUBSCRIBE_FORM"] = "subscribe_form";
|
|
28
|
+
Feature["STORY_PINNING"] = "story_pinning";
|
|
29
|
+
})(Feature || (Feature = {}));
|
|
30
|
+
_NewsroomTheme.Feature = Feature;
|
|
31
|
+
function isFeatureSupported(theme, feature) {
|
|
32
|
+
return theme.features.includes(feature);
|
|
33
|
+
}
|
|
34
|
+
_NewsroomTheme.isFeatureSupported = isFeatureSupported;
|
|
35
|
+
})(NewsroomTheme || (exports.NewsroomTheme = NewsroomTheme = {}));
|
|
36
|
+
let NewsroomThemePreset;
|
|
37
|
+
exports.NewsroomThemePreset = NewsroomThemePreset;
|
|
38
|
+
(function (_NewsroomThemePreset) {})(NewsroomThemePreset || (exports.NewsroomThemePreset = NewsroomThemePreset = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
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;
|
|
9
|
+
(function (_NewsroomWebhook) {
|
|
10
|
+
let Event;
|
|
11
|
+
(function (Event) {
|
|
12
|
+
Event["STORY_CREATED"] = "story.created";
|
|
13
|
+
Event["STORY_UPDATED"] = "story.updated";
|
|
14
|
+
Event["STORY_DELETED"] = "story.deleted";
|
|
15
|
+
Event["CATEGORY_CREATED"] = "category.created";
|
|
16
|
+
Event["CATEGORY_UPDATED"] = "category.updated";
|
|
17
|
+
Event["CATEGORY_DELETED"] = "category.deleted";
|
|
18
|
+
})(Event || (Event = {}));
|
|
19
|
+
_NewsroomWebhook.Event = Event;
|
|
20
|
+
})(NewsroomWebhook || (exports.NewsroomWebhook = NewsroomWebhook = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
9
|
+
(function (_NotificationSubscription) {
|
|
10
|
+
let Area;
|
|
11
|
+
(function (Area) {
|
|
12
|
+
Area["CAMPAIGNS"] = "Campaigns";
|
|
13
|
+
Area["CONTACTS"] = "Contacts";
|
|
14
|
+
Area["BILLING_AND_LEGAL"] = "Billing & Legal";
|
|
15
|
+
})(Area || (Area = {}));
|
|
16
|
+
_NotificationSubscription.Area = Area;
|
|
17
|
+
})(NotificationSubscription || (exports.NotificationSubscription = NotificationSubscription = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
9
|
+
(function (Permission) {
|
|
10
|
+
Permission["CREATE_NEWSROOM"] = "create_newsroom";
|
|
11
|
+
Permission["EXPORT_CONTACTS"] = "export_contacts";
|
|
12
|
+
Permission["MANAGE_BILLING"] = "manage_billing";
|
|
13
|
+
Permission["MANAGE_EMAILS"] = "manage_emails";
|
|
14
|
+
Permission["MANAGE_USERS"] = "manage_users";
|
|
15
|
+
Permission["VIEW_CONTACTS"] = "view_contacts";
|
|
16
|
+
Permission["CREATE_SENDER_ADDRESS"] = "create_sender_address";
|
|
17
|
+
Permission["SEND_EMAILS"] = "send_emails";
|
|
18
|
+
})(Permission || (exports.Permission = Permission = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
9
|
+
(function (PlanLevel) {
|
|
10
|
+
PlanLevel["BASIC"] = "basic";
|
|
11
|
+
PlanLevel["CORE"] = "core";
|
|
12
|
+
PlanLevel["ENTERPRISE"] = "enterprise";
|
|
13
|
+
PlanLevel["EXPERT"] = "expert";
|
|
14
|
+
PlanLevel["NONE"] = "";
|
|
15
|
+
PlanLevel["PREMIUM"] = "premium";
|
|
16
|
+
PlanLevel["PROFESSIONAL"] = "professional";
|
|
17
|
+
PlanLevel["STARTER"] = "starter";
|
|
18
|
+
})(PlanLevel || (exports.PlanLevel = PlanLevel = {}));
|
|
@@ -0,0 +1,24 @@
|
|
|
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;
|
|
9
|
+
(function (_PrivacyRequest) {
|
|
10
|
+
let Type;
|
|
11
|
+
(function (Type) {
|
|
12
|
+
Type["DELETE"] = "delete";
|
|
13
|
+
Type["EXPORT"] = "export";
|
|
14
|
+
Type["CORRECT"] = "correct";
|
|
15
|
+
Type["OTHER"] = "other";
|
|
16
|
+
})(Type || (Type = {}));
|
|
17
|
+
_PrivacyRequest.Type = Type;
|
|
18
|
+
let Status;
|
|
19
|
+
(function (Status) {
|
|
20
|
+
Status["UNCONFIRMED"] = "unconfirmed";
|
|
21
|
+
Status["CONFIRMED"] = "confirmed";
|
|
22
|
+
})(Status || (Status = {}));
|
|
23
|
+
_PrivacyRequest.Status = Status;
|
|
24
|
+
})(PrivacyRequest || (exports.PrivacyRequest = PrivacyRequest = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,16 @@
|
|
|
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;
|
|
9
|
+
(function (_SenderAddress) {
|
|
10
|
+
let Type;
|
|
11
|
+
(function (Type) {
|
|
12
|
+
Type["CUSTOM"] = "custom";
|
|
13
|
+
Type["PREZLYMAIL"] = "prezly_mail";
|
|
14
|
+
})(Type || (Type = {}));
|
|
15
|
+
_SenderAddress.Type = Type;
|
|
16
|
+
})(SenderAddress || (exports.SenderAddress = SenderAddress = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
9
|
+
(function (_SenderDomain) {
|
|
10
|
+
let VerificationFlowVersion;
|
|
11
|
+
(function (VerificationFlowVersion) {
|
|
12
|
+
VerificationFlowVersion["V1"] = "v1";
|
|
13
|
+
VerificationFlowVersion["V2"] = "v2";
|
|
14
|
+
VerificationFlowVersion["V3"] = "v3";
|
|
15
|
+
VerificationFlowVersion["PREZLYMAIL"] = "prezlymail";
|
|
16
|
+
})(VerificationFlowVersion || (VerificationFlowVersion = {}));
|
|
17
|
+
_SenderDomain.VerificationFlowVersion = VerificationFlowVersion;
|
|
18
|
+
})(SenderDomain || (exports.SenderDomain = SenderDomain = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,89 @@
|
|
|
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;
|
|
9
|
+
(function (_Story) {
|
|
10
|
+
let FormatVersion;
|
|
11
|
+
(function (FormatVersion) {
|
|
12
|
+
FormatVersion[FormatVersion["HTML"] = 1] = "HTML";
|
|
13
|
+
FormatVersion[FormatVersion["SLATEJS"] = 3] = "SLATEJS";
|
|
14
|
+
})(FormatVersion || (FormatVersion = {}));
|
|
15
|
+
_Story.FormatVersion = FormatVersion;
|
|
16
|
+
let LifecycleStatus;
|
|
17
|
+
(function (LifecycleStatus) {
|
|
18
|
+
LifecycleStatus["UNINITIALIZED"] = "uninitialized";
|
|
19
|
+
LifecycleStatus["DRAFT"] = "draft";
|
|
20
|
+
LifecycleStatus["SCHEDULED"] = "scheduled";
|
|
21
|
+
LifecycleStatus["EMBARGO"] = "embargo";
|
|
22
|
+
LifecycleStatus["PUBLISHED"] = "published";
|
|
23
|
+
})(LifecycleStatus || (LifecycleStatus = {}));
|
|
24
|
+
_Story.LifecycleStatus = LifecycleStatus;
|
|
25
|
+
let PublicationStatus;
|
|
26
|
+
(function (PublicationStatus) {
|
|
27
|
+
PublicationStatus["NEW"] = "new";
|
|
28
|
+
PublicationStatus["DRAFT"] = "draft";
|
|
29
|
+
PublicationStatus["PUBLISHED"] = "published";
|
|
30
|
+
})(PublicationStatus || (PublicationStatus = {}));
|
|
31
|
+
_Story.PublicationStatus = PublicationStatus;
|
|
32
|
+
let Visibility;
|
|
33
|
+
(function (Visibility) {
|
|
34
|
+
Visibility["PUBLIC"] = "public";
|
|
35
|
+
Visibility["EMBARGO"] = "embargo";
|
|
36
|
+
Visibility["PRIVATE"] = "private";
|
|
37
|
+
Visibility["CONFIDENTIAL"] = "confidential";
|
|
38
|
+
})(Visibility || (Visibility = {}));
|
|
39
|
+
_Story.Visibility = Visibility;
|
|
40
|
+
function isUninitialized(arg) {
|
|
41
|
+
if (typeof arg === 'object') {
|
|
42
|
+
return isUninitialized(arg.lifecycle_status);
|
|
43
|
+
}
|
|
44
|
+
return arg === LifecycleStatus.UNINITIALIZED;
|
|
45
|
+
}
|
|
46
|
+
_Story.isUninitialized = isUninitialized;
|
|
47
|
+
function isDraft(arg) {
|
|
48
|
+
if (typeof arg === 'object') {
|
|
49
|
+
return isDraft(arg.lifecycle_status);
|
|
50
|
+
}
|
|
51
|
+
return arg === LifecycleStatus.DRAFT;
|
|
52
|
+
}
|
|
53
|
+
_Story.isDraft = isDraft;
|
|
54
|
+
function isScheduled(arg) {
|
|
55
|
+
if (typeof arg === 'object') {
|
|
56
|
+
return isScheduled(arg.lifecycle_status);
|
|
57
|
+
}
|
|
58
|
+
return arg === LifecycleStatus.SCHEDULED;
|
|
59
|
+
}
|
|
60
|
+
_Story.isScheduled = isScheduled;
|
|
61
|
+
function isScheduledEmbargo(arg) {
|
|
62
|
+
if (typeof arg === 'object') {
|
|
63
|
+
return isScheduledEmbargo(arg.lifecycle_status);
|
|
64
|
+
}
|
|
65
|
+
return arg === LifecycleStatus.EMBARGO;
|
|
66
|
+
}
|
|
67
|
+
_Story.isScheduledEmbargo = isScheduledEmbargo;
|
|
68
|
+
function isPublished(arg) {
|
|
69
|
+
if (typeof arg === 'object') {
|
|
70
|
+
return isPublished(arg.lifecycle_status);
|
|
71
|
+
}
|
|
72
|
+
return arg === LifecycleStatus.PUBLISHED;
|
|
73
|
+
}
|
|
74
|
+
_Story.isPublished = isPublished;
|
|
75
|
+
function isLegacyHtmlFormat(arg) {
|
|
76
|
+
if (typeof arg === 'object') {
|
|
77
|
+
return isLegacyHtmlFormat(arg.format_version);
|
|
78
|
+
}
|
|
79
|
+
return arg === FormatVersion.HTML;
|
|
80
|
+
}
|
|
81
|
+
_Story.isLegacyHtmlFormat = isLegacyHtmlFormat;
|
|
82
|
+
function isSlateFormat(arg) {
|
|
83
|
+
if (typeof arg === 'object') {
|
|
84
|
+
return isSlateFormat(arg.format_version);
|
|
85
|
+
}
|
|
86
|
+
return arg === FormatVersion.SLATEJS;
|
|
87
|
+
}
|
|
88
|
+
_Story.isSlateFormat = isSlateFormat;
|
|
89
|
+
})(Story || (exports.Story = Story = {}));
|
|
@@ -0,0 +1,28 @@
|
|
|
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;
|
|
9
|
+
(function (_User) {
|
|
10
|
+
let SignInFlow;
|
|
11
|
+
(function (SignInFlow) {
|
|
12
|
+
SignInFlow["GOOGLE"] = "google";
|
|
13
|
+
SignInFlow["PASSWORD"] = "password";
|
|
14
|
+
SignInFlow["SSO"] = "sso";
|
|
15
|
+
})(SignInFlow || (SignInFlow = {}));
|
|
16
|
+
_User.SignInFlow = SignInFlow;
|
|
17
|
+
let UseCaseAnswer;
|
|
18
|
+
(function (UseCaseAnswer) {
|
|
19
|
+
UseCaseAnswer["UNKNOWN"] = "unknown";
|
|
20
|
+
UseCaseAnswer["CAMPAIGNS"] = "campaigns";
|
|
21
|
+
UseCaseAnswer["CONTACTS"] = "contacts";
|
|
22
|
+
UseCaseAnswer["STORIES"] = "stories";
|
|
23
|
+
UseCaseAnswer["NEWSROOM"] = "newsroom";
|
|
24
|
+
UseCaseAnswer["COVERAGE"] = "coverage";
|
|
25
|
+
UseCaseAnswer["SKIP"] = "skip";
|
|
26
|
+
})(UseCaseAnswer || (UseCaseAnswer = {}));
|
|
27
|
+
_User.UseCaseAnswer = UseCaseAnswer;
|
|
28
|
+
})(User || (exports.User = User = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
9
|
+
(function (_Notification) {
|
|
10
|
+
let Style;
|
|
11
|
+
(function (Style) {
|
|
12
|
+
Style["SUCCESS"] = "success";
|
|
13
|
+
Style["INFO"] = "info";
|
|
14
|
+
Style["WARNING"] = "warning";
|
|
15
|
+
Style["DANGER"] = "danger";
|
|
16
|
+
})(Style || (Style = {}));
|
|
17
|
+
_Notification.Style = Style;
|
|
18
|
+
})(Notification || (exports.Notification = Notification = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
9
|
+
(function (_OEmbedInfo) {
|
|
10
|
+
let Type;
|
|
11
|
+
(function (Type) {
|
|
12
|
+
Type["LINK"] = "link";
|
|
13
|
+
Type["PHOTO"] = "photo";
|
|
14
|
+
Type["RICH"] = "rich";
|
|
15
|
+
Type["VIDEO"] = "video";
|
|
16
|
+
})(Type || (Type = {}));
|
|
17
|
+
_OEmbedInfo.Type = Type;
|
|
18
|
+
})(OEmbedInfo || (exports.OEmbedInfo = OEmbedInfo = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SelectionMode = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* @see https://api.prezly.com/v2/common/schema.json#/definitions/Pagination
|
|
9
|
+
*/let SelectionMode;
|
|
10
|
+
exports.SelectionMode = SelectionMode;
|
|
11
|
+
(function (SelectionMode) {
|
|
12
|
+
SelectionMode["ALL"] = "all";
|
|
13
|
+
SelectionMode["IN"] = "in";
|
|
14
|
+
SelectionMode["NOT_IN"] = "not_in";
|
|
15
|
+
})(SelectionMode || (exports.SelectionMode = SelectionMode = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Query = void 0;
|
|
7
|
+
// TODO: Refine Query typings
|
|
8
|
+
/**
|
|
9
|
+
* @see https://developers.prezly.com/docs/api/docs/06-prezly-query-language.md
|
|
10
|
+
*/
|
|
11
|
+
let Query;
|
|
12
|
+
exports.Query = Query;
|
|
13
|
+
(function (_Query) {
|
|
14
|
+
function stringify(query) {
|
|
15
|
+
if (!query) {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
return typeof query === 'string' ? query : JSON.stringify(query);
|
|
19
|
+
}
|
|
20
|
+
_Query.stringify = stringify;
|
|
21
|
+
})(Query || (exports.Query = Query = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|