@prezly/sdk 19.4.2 → 19.6.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/api/DeferredJobsApiClient.cjs +1 -0
- package/dist/api/DeferredJobsApiClient.js +1 -0
- package/dist/api/constants.cjs +3 -2
- package/dist/api/constants.js +1 -1
- package/dist/endpoints/Accounts/index.cjs +0 -2
- package/dist/endpoints/Billing/index.cjs +0 -2
- package/dist/endpoints/Billing/types.cjs +9 -7
- package/dist/endpoints/Billing/types.js +6 -6
- package/dist/endpoints/CampaignRecipients/index.cjs +0 -2
- package/dist/endpoints/Campaigns/index.cjs +0 -2
- package/dist/endpoints/Contacts/index.cjs +0 -2
- package/dist/endpoints/ContactsExports/index.cjs +0 -2
- package/dist/endpoints/Coverage/index.cjs +0 -2
- package/dist/endpoints/Jobs/index.cjs +0 -2
- package/dist/endpoints/Licenses/index.cjs +0 -1
- package/dist/endpoints/NewsroomCategories/index.cjs +0 -2
- package/dist/endpoints/NewsroomContacts/index.cjs +0 -2
- package/dist/endpoints/NewsroomDomains/index.cjs +0 -2
- package/dist/endpoints/NewsroomGalleries/index.cjs +0 -2
- package/dist/endpoints/NewsroomHub/index.cjs +0 -2
- package/dist/endpoints/NewsroomLanguages/index.cjs +0 -2
- package/dist/endpoints/NewsroomPrivacyRequests/index.cjs +0 -2
- package/dist/endpoints/NewsroomSubscriptions/Client.cjs +17 -0
- package/dist/endpoints/NewsroomSubscriptions/Client.d.ts +2 -1
- package/dist/endpoints/NewsroomSubscriptions/Client.js +17 -0
- package/dist/endpoints/NewsroomSubscriptions/index.cjs +0 -2
- package/dist/endpoints/NewsroomSubscriptions/types.d.ts +15 -1
- package/dist/endpoints/NewsroomThemes/index.cjs +0 -1
- package/dist/endpoints/NewsroomWebhooks/index.cjs +0 -2
- package/dist/endpoints/Newsrooms/index.cjs +0 -2
- package/dist/endpoints/Newsrooms/types.d.ts +1 -0
- package/dist/endpoints/NotificationSubscriptions/index.cjs +0 -2
- package/dist/endpoints/PricingTables/index.cjs +0 -2
- package/dist/endpoints/PricingTables/types.cjs +17 -13
- package/dist/endpoints/PricingTables/types.js +12 -12
- package/dist/endpoints/SenderAddresses/index.cjs +0 -2
- package/dist/endpoints/Snippets/index.cjs +0 -2
- package/dist/endpoints/Stories/Client.cjs +4 -23
- package/dist/endpoints/Stories/Client.js +7 -22
- package/dist/endpoints/Stories/index.cjs +0 -3
- package/dist/endpoints/Stories/scopes.cjs +3 -2
- package/dist/endpoints/Stories/types.cjs +4 -14
- package/dist/endpoints/Stories/types.js +3 -13
- package/dist/endpoints/Subscriptions/index.cjs +0 -2
- package/dist/endpoints/Subscriptions/types.cjs +4 -3
- package/dist/endpoints/Subscriptions/types.js +3 -3
- package/dist/endpoints/index.cjs +3 -3
- package/dist/http/constants.cjs +6 -3
- package/dist/http/index.cjs +8 -8
- package/dist/http/types.cjs +8 -6
- package/dist/http/types.js +6 -6
- package/dist/index.cjs +4 -7
- package/dist/routing.cjs +3 -3
- package/dist/routing.d.ts +0 -1
- package/dist/routing.js +0 -1
- package/dist/types/BillingCycle.cjs +4 -3
- package/dist/types/BillingCycle.js +3 -3
- package/dist/types/Campaign.cjs +20 -19
- package/dist/types/Campaign.js +18 -18
- package/dist/types/Category.cjs +2 -1
- package/dist/types/Contact.cjs +20 -19
- package/dist/types/Contact.js +18 -18
- package/dist/types/ContactDuplicateSuggestion.cjs +5 -5
- package/dist/types/ContactDuplicateSuggestion.js +4 -3
- package/dist/types/ContactsExport.cjs +5 -4
- package/dist/types/ContactsExport.js +3 -3
- package/dist/types/ContactsScope.cjs +5 -4
- package/dist/types/ContactsScope.js +3 -3
- package/dist/types/CoverageEntry.cjs +8 -7
- package/dist/types/CoverageEntry.js +6 -6
- package/dist/types/Culture.cjs +5 -10
- package/dist/types/Culture.js +3 -9
- package/dist/types/Currency.cjs +4 -3
- package/dist/types/Currency.js +3 -3
- package/dist/types/EmailRecipient.cjs +5 -4
- package/dist/types/EmailRecipient.js +3 -3
- package/dist/types/EmailSubscription.d.ts +1 -0
- package/dist/types/JobState.cjs +4 -3
- package/dist/types/JobState.js +3 -3
- package/dist/types/License.cjs +11 -10
- package/dist/types/License.js +9 -9
- package/dist/types/Newsroom.cjs +11 -13
- package/dist/types/Newsroom.d.ts +2 -0
- package/dist/types/Newsroom.js +9 -12
- package/dist/types/NewsroomDomain.cjs +8 -7
- package/dist/types/NewsroomDomain.js +6 -6
- package/dist/types/NewsroomGallery.cjs +8 -7
- package/dist/types/NewsroomGallery.js +6 -6
- package/dist/types/NewsroomSubscription.cjs +1 -0
- package/dist/types/NewsroomSubscription.d.ts +8 -0
- package/dist/types/NewsroomSubscription.js +1 -0
- package/dist/types/NewsroomTheme.cjs +11 -8
- package/dist/types/NewsroomTheme.js +8 -7
- package/dist/types/NewsroomWebhook.cjs +5 -4
- package/dist/types/NewsroomWebhook.js +3 -3
- package/dist/types/NotificationSubscription.cjs +5 -4
- package/dist/types/NotificationSubscription.js +3 -3
- package/dist/types/Permissions.cjs +4 -3
- package/dist/types/Permissions.js +3 -3
- package/dist/types/Plan.cjs +8 -7
- package/dist/types/Plan.js +8 -8
- package/dist/types/PrivacyRequest.cjs +8 -7
- package/dist/types/PrivacyRequest.js +6 -6
- package/dist/types/SenderAddress.cjs +5 -4
- package/dist/types/SenderAddress.js +3 -3
- package/dist/types/SenderDomain.cjs +5 -4
- package/dist/types/SenderDomain.js +3 -3
- package/dist/types/SortOrder.cjs +5 -4
- package/dist/types/SortOrder.js +3 -3
- package/dist/types/Story.cjs +18 -29
- package/dist/types/Story.js +16 -28
- package/dist/types/User.cjs +8 -7
- package/dist/types/User.js +6 -6
- package/dist/types/common/Notification.cjs +5 -4
- package/dist/types/common/Notification.js +3 -3
- package/dist/types/common/OEmbedInfo.cjs +5 -4
- package/dist/types/common/OEmbedInfo.js +3 -3
- package/dist/types/common/Pagination.cjs +4 -4
- package/dist/types/common/Pagination.js +3 -3
- package/dist/types/common/Query.cjs +2 -1
- package/dist/types/common/Query.js +1 -0
- package/dist/types/common/index.cjs +0 -6
- package/dist/types/index.cjs +10 -36
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +1 -1
package/dist/types/Newsroom.cjs
CHANGED
|
@@ -4,31 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Newsroom = void 0;
|
|
7
|
-
let Newsroom
|
|
7
|
+
let Newsroom;
|
|
8
|
+
exports.Newsroom = Newsroom;
|
|
8
9
|
(function (_Newsroom) {
|
|
9
|
-
let Status
|
|
10
|
+
let Status;
|
|
11
|
+
(function (Status) {
|
|
10
12
|
Status["ACTIVE"] = "active";
|
|
11
13
|
Status["INACTIVE"] = "inactive";
|
|
12
14
|
Status["ARCHIVED"] = "archived";
|
|
13
|
-
|
|
14
|
-
}({});
|
|
15
|
+
})(Status || (Status = {}));
|
|
15
16
|
_Newsroom.Status = Status;
|
|
16
|
-
let EmailBrandingMode
|
|
17
|
+
let EmailBrandingMode;
|
|
18
|
+
(function (EmailBrandingMode) {
|
|
17
19
|
EmailBrandingMode["DEFAULT"] = "default";
|
|
18
20
|
EmailBrandingMode["CUSTOM"] = "custom";
|
|
19
|
-
|
|
20
|
-
}({});
|
|
21
|
+
})(EmailBrandingMode || (EmailBrandingMode = {}));
|
|
21
22
|
_Newsroom.EmailBrandingMode = EmailBrandingMode;
|
|
22
|
-
let TrackingPolicy
|
|
23
|
+
let TrackingPolicy;
|
|
24
|
+
(function (TrackingPolicy) {
|
|
23
25
|
TrackingPolicy["DEFAULT"] = "default";
|
|
24
26
|
TrackingPolicy["DISABLED"] = "disabled";
|
|
25
27
|
TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
|
|
26
|
-
|
|
27
|
-
}({});
|
|
28
|
+
})(TrackingPolicy || (TrackingPolicy = {}));
|
|
28
29
|
_Newsroom.TrackingPolicy = TrackingPolicy;
|
|
29
|
-
/*
|
|
30
|
-
* Status checks
|
|
31
|
-
*/
|
|
32
30
|
function isActive(arg) {
|
|
33
31
|
if (typeof arg === 'object' && arg !== null) {
|
|
34
32
|
return isActive(arg.status);
|
package/dist/types/Newsroom.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ export interface Newsroom extends NewsroomRef {
|
|
|
98
98
|
google_search_console_key: string | null;
|
|
99
99
|
segment_analytics_id: string | null;
|
|
100
100
|
is_subscription_form_enabled: boolean;
|
|
101
|
+
auto_create_contacts_from_subscribers: boolean;
|
|
101
102
|
is_white_labeled: boolean;
|
|
102
103
|
is_plausible_enabled: boolean;
|
|
103
104
|
plausible_site_id: string;
|
|
@@ -119,6 +120,7 @@ export declare namespace Newsroom {
|
|
|
119
120
|
}
|
|
120
121
|
interface EmailBranding {
|
|
121
122
|
background_color: string;
|
|
123
|
+
header_color: string;
|
|
122
124
|
title_color: string;
|
|
123
125
|
text_color: string;
|
|
124
126
|
link_color: string;
|
package/dist/types/Newsroom.js
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
export let Newsroom;
|
|
2
2
|
(function (_Newsroom) {
|
|
3
|
-
let Status
|
|
3
|
+
let Status;
|
|
4
|
+
(function (Status) {
|
|
4
5
|
Status["ACTIVE"] = "active";
|
|
5
6
|
Status["INACTIVE"] = "inactive";
|
|
6
7
|
Status["ARCHIVED"] = "archived";
|
|
7
|
-
|
|
8
|
-
}({});
|
|
8
|
+
})(Status || (Status = {}));
|
|
9
9
|
_Newsroom.Status = Status;
|
|
10
|
-
let EmailBrandingMode
|
|
10
|
+
let EmailBrandingMode;
|
|
11
|
+
(function (EmailBrandingMode) {
|
|
11
12
|
EmailBrandingMode["DEFAULT"] = "default";
|
|
12
13
|
EmailBrandingMode["CUSTOM"] = "custom";
|
|
13
|
-
|
|
14
|
-
}({});
|
|
14
|
+
})(EmailBrandingMode || (EmailBrandingMode = {}));
|
|
15
15
|
_Newsroom.EmailBrandingMode = EmailBrandingMode;
|
|
16
|
-
let TrackingPolicy
|
|
16
|
+
let TrackingPolicy;
|
|
17
|
+
(function (TrackingPolicy) {
|
|
17
18
|
TrackingPolicy["DEFAULT"] = "default";
|
|
18
19
|
TrackingPolicy["DISABLED"] = "disabled";
|
|
19
20
|
TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
|
|
20
|
-
|
|
21
|
-
}({});
|
|
21
|
+
})(TrackingPolicy || (TrackingPolicy = {}));
|
|
22
22
|
_Newsroom.TrackingPolicy = TrackingPolicy;
|
|
23
|
-
/*
|
|
24
|
-
* Status checks
|
|
25
|
-
*/
|
|
26
23
|
function isActive(arg) {
|
|
27
24
|
if (typeof arg === 'object' && arg !== null) {
|
|
28
25
|
return isActive(arg.status);
|
|
@@ -4,20 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.NewsroomDomain = void 0;
|
|
7
|
-
let NewsroomDomain
|
|
7
|
+
let NewsroomDomain;
|
|
8
|
+
exports.NewsroomDomain = NewsroomDomain;
|
|
8
9
|
(function (_NewsroomDomain) {
|
|
9
|
-
let Type
|
|
10
|
+
let Type;
|
|
11
|
+
(function (Type) {
|
|
10
12
|
Type["PREZLY"] = "prezly";
|
|
11
13
|
Type["CUSTOM"] = "custom";
|
|
12
14
|
Type["REVERSE_PROXY"] = "reverse_proxy";
|
|
13
|
-
|
|
14
|
-
}({});
|
|
15
|
+
})(Type || (Type = {}));
|
|
15
16
|
_NewsroomDomain.Type = Type;
|
|
16
|
-
let Status
|
|
17
|
+
let Status;
|
|
18
|
+
(function (Status) {
|
|
17
19
|
Status["ACTIVE"] = "active";
|
|
18
20
|
Status["INACTIVE"] = "inactive";
|
|
19
21
|
Status["REDIRECT"] = "redirect";
|
|
20
|
-
|
|
21
|
-
}({});
|
|
22
|
+
})(Status || (Status = {}));
|
|
22
23
|
_NewsroomDomain.Status = Status;
|
|
23
24
|
})(NewsroomDomain || (exports.NewsroomDomain = NewsroomDomain = {}));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export let NewsroomDomain;
|
|
2
2
|
(function (_NewsroomDomain) {
|
|
3
|
-
let Type
|
|
3
|
+
let Type;
|
|
4
|
+
(function (Type) {
|
|
4
5
|
Type["PREZLY"] = "prezly";
|
|
5
6
|
Type["CUSTOM"] = "custom";
|
|
6
7
|
Type["REVERSE_PROXY"] = "reverse_proxy";
|
|
7
|
-
|
|
8
|
-
}({});
|
|
8
|
+
})(Type || (Type = {}));
|
|
9
9
|
_NewsroomDomain.Type = Type;
|
|
10
|
-
let Status
|
|
10
|
+
let Status;
|
|
11
|
+
(function (Status) {
|
|
11
12
|
Status["ACTIVE"] = "active";
|
|
12
13
|
Status["INACTIVE"] = "inactive";
|
|
13
14
|
Status["REDIRECT"] = "redirect";
|
|
14
|
-
|
|
15
|
-
}({});
|
|
15
|
+
})(Status || (Status = {}));
|
|
16
16
|
_NewsroomDomain.Status = Status;
|
|
17
17
|
})(NewsroomDomain || (NewsroomDomain = {}));
|
|
@@ -4,18 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.NewsroomGallery = void 0;
|
|
7
|
-
let NewsroomGallery
|
|
7
|
+
let NewsroomGallery;
|
|
8
|
+
exports.NewsroomGallery = NewsroomGallery;
|
|
8
9
|
(function (_NewsroomGallery) {
|
|
9
|
-
let Status
|
|
10
|
+
let Status;
|
|
11
|
+
(function (Status) {
|
|
10
12
|
Status["PRIVATE"] = "private";
|
|
11
13
|
Status["PUBLIC"] = "public";
|
|
12
|
-
|
|
13
|
-
}({});
|
|
14
|
+
})(Status || (Status = {}));
|
|
14
15
|
_NewsroomGallery.Status = Status;
|
|
15
|
-
let Type
|
|
16
|
+
let Type;
|
|
17
|
+
(function (Type) {
|
|
16
18
|
Type["IMAGE"] = "image";
|
|
17
19
|
Type["VIDEO"] = "video";
|
|
18
|
-
|
|
19
|
-
}({});
|
|
20
|
+
})(Type || (Type = {}));
|
|
20
21
|
_NewsroomGallery.Type = Type;
|
|
21
22
|
})(NewsroomGallery || (exports.NewsroomGallery = NewsroomGallery = {}));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export let NewsroomGallery;
|
|
2
2
|
(function (_NewsroomGallery) {
|
|
3
|
-
let Status
|
|
3
|
+
let Status;
|
|
4
|
+
(function (Status) {
|
|
4
5
|
Status["PRIVATE"] = "private";
|
|
5
6
|
Status["PUBLIC"] = "public";
|
|
6
|
-
|
|
7
|
-
}({});
|
|
7
|
+
})(Status || (Status = {}));
|
|
8
8
|
_NewsroomGallery.Status = Status;
|
|
9
|
-
let Type
|
|
9
|
+
let Type;
|
|
10
|
+
(function (Type) {
|
|
10
11
|
Type["IMAGE"] = "image";
|
|
11
12
|
Type["VIDEO"] = "video";
|
|
12
|
-
|
|
13
|
-
}({});
|
|
13
|
+
})(Type || (Type = {}));
|
|
14
14
|
_NewsroomGallery.Type = Type;
|
|
15
15
|
})(NewsroomGallery || (NewsroomGallery = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,15 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.NewsroomThemePreset = exports.NewsroomTheme = void 0;
|
|
7
|
-
let NewsroomTheme
|
|
7
|
+
let NewsroomTheme;
|
|
8
|
+
exports.NewsroomTheme = NewsroomTheme;
|
|
8
9
|
(function (_NewsroomTheme) {
|
|
9
|
-
let Status
|
|
10
|
+
let Status;
|
|
11
|
+
(function (Status) {
|
|
10
12
|
Status["BETA"] = "beta";
|
|
11
13
|
Status["STABLE"] = "stable";
|
|
12
|
-
|
|
13
|
-
}({});
|
|
14
|
+
})(Status || (Status = {}));
|
|
14
15
|
_NewsroomTheme.Status = Status;
|
|
15
|
-
let Feature
|
|
16
|
+
let Feature;
|
|
17
|
+
(function (Feature) {
|
|
16
18
|
Feature["CATEGORIES"] = "categories";
|
|
17
19
|
Feature["SEARCH"] = "search";
|
|
18
20
|
Feature["MEDIA_GALLERIES"] = "media_galleries";
|
|
@@ -28,12 +30,13 @@ let NewsroomTheme = exports.NewsroomTheme = void 0;
|
|
|
28
30
|
Feature["CTA_BUTTONS"] = "cta_buttons";
|
|
29
31
|
Feature["VIDEO_LAYOUT"] = "video_layout";
|
|
30
32
|
Feature["EMBED_LAYOUT"] = "embed_layout";
|
|
31
|
-
|
|
32
|
-
}({}); // DEV-11475
|
|
33
|
+
})(Feature || (Feature = {}));
|
|
33
34
|
_NewsroomTheme.Feature = Feature;
|
|
34
35
|
function isFeatureSupported(theme, feature) {
|
|
35
36
|
return theme.features.includes(feature);
|
|
36
37
|
}
|
|
37
38
|
_NewsroomTheme.isFeatureSupported = isFeatureSupported;
|
|
38
39
|
})(NewsroomTheme || (exports.NewsroomTheme = NewsroomTheme = {}));
|
|
39
|
-
let NewsroomThemePreset
|
|
40
|
+
let NewsroomThemePreset;
|
|
41
|
+
exports.NewsroomThemePreset = NewsroomThemePreset;
|
|
42
|
+
(function (_NewsroomThemePreset) {})(NewsroomThemePreset || (exports.NewsroomThemePreset = NewsroomThemePreset = {}));
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export let NewsroomTheme;
|
|
2
2
|
(function (_NewsroomTheme) {
|
|
3
|
-
let Status
|
|
3
|
+
let Status;
|
|
4
|
+
(function (Status) {
|
|
4
5
|
Status["BETA"] = "beta";
|
|
5
6
|
Status["STABLE"] = "stable";
|
|
6
|
-
|
|
7
|
-
}({});
|
|
7
|
+
})(Status || (Status = {}));
|
|
8
8
|
_NewsroomTheme.Status = Status;
|
|
9
|
-
let Feature
|
|
9
|
+
let Feature;
|
|
10
|
+
(function (Feature) {
|
|
10
11
|
Feature["CATEGORIES"] = "categories";
|
|
11
12
|
Feature["SEARCH"] = "search";
|
|
12
13
|
Feature["MEDIA_GALLERIES"] = "media_galleries";
|
|
@@ -22,12 +23,12 @@ export let NewsroomTheme;
|
|
|
22
23
|
Feature["CTA_BUTTONS"] = "cta_buttons";
|
|
23
24
|
Feature["VIDEO_LAYOUT"] = "video_layout";
|
|
24
25
|
Feature["EMBED_LAYOUT"] = "embed_layout";
|
|
25
|
-
|
|
26
|
-
}({}); // DEV-11475
|
|
26
|
+
})(Feature || (Feature = {}));
|
|
27
27
|
_NewsroomTheme.Feature = Feature;
|
|
28
28
|
function isFeatureSupported(theme, feature) {
|
|
29
29
|
return theme.features.includes(feature);
|
|
30
30
|
}
|
|
31
31
|
_NewsroomTheme.isFeatureSupported = isFeatureSupported;
|
|
32
32
|
})(NewsroomTheme || (NewsroomTheme = {}));
|
|
33
|
-
export let NewsroomThemePreset;
|
|
33
|
+
export let NewsroomThemePreset;
|
|
34
|
+
(function (_NewsroomThemePreset) {})(NewsroomThemePreset || (NewsroomThemePreset = {}));
|
|
@@ -4,16 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.NewsroomWebhook = void 0;
|
|
7
|
-
let NewsroomWebhook
|
|
7
|
+
let NewsroomWebhook;
|
|
8
|
+
exports.NewsroomWebhook = NewsroomWebhook;
|
|
8
9
|
(function (_NewsroomWebhook) {
|
|
9
|
-
let Event
|
|
10
|
+
let Event;
|
|
11
|
+
(function (Event) {
|
|
10
12
|
Event["STORY_CREATED"] = "story.created";
|
|
11
13
|
Event["STORY_UPDATED"] = "story.updated";
|
|
12
14
|
Event["STORY_DELETED"] = "story.deleted";
|
|
13
15
|
Event["CATEGORY_CREATED"] = "category.created";
|
|
14
16
|
Event["CATEGORY_UPDATED"] = "category.updated";
|
|
15
17
|
Event["CATEGORY_DELETED"] = "category.deleted";
|
|
16
|
-
|
|
17
|
-
}({});
|
|
18
|
+
})(Event || (Event = {}));
|
|
18
19
|
_NewsroomWebhook.Event = Event;
|
|
19
20
|
})(NewsroomWebhook || (exports.NewsroomWebhook = NewsroomWebhook = {}));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export let NewsroomWebhook;
|
|
2
2
|
(function (_NewsroomWebhook) {
|
|
3
|
-
let Event
|
|
3
|
+
let Event;
|
|
4
|
+
(function (Event) {
|
|
4
5
|
Event["STORY_CREATED"] = "story.created";
|
|
5
6
|
Event["STORY_UPDATED"] = "story.updated";
|
|
6
7
|
Event["STORY_DELETED"] = "story.deleted";
|
|
7
8
|
Event["CATEGORY_CREATED"] = "category.created";
|
|
8
9
|
Event["CATEGORY_UPDATED"] = "category.updated";
|
|
9
10
|
Event["CATEGORY_DELETED"] = "category.deleted";
|
|
10
|
-
|
|
11
|
-
}({});
|
|
11
|
+
})(Event || (Event = {}));
|
|
12
12
|
_NewsroomWebhook.Event = Event;
|
|
13
13
|
})(NewsroomWebhook || (NewsroomWebhook = {}));
|
|
@@ -4,14 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.NotificationSubscription = void 0;
|
|
7
|
-
let NotificationSubscription
|
|
7
|
+
let NotificationSubscription;
|
|
8
|
+
exports.NotificationSubscription = NotificationSubscription;
|
|
8
9
|
(function (_NotificationSubscription) {
|
|
9
|
-
let Area
|
|
10
|
+
let Area;
|
|
11
|
+
(function (Area) {
|
|
10
12
|
Area["CAMPAIGNS"] = "Campaigns";
|
|
11
13
|
Area["CONTACTS"] = "Contacts";
|
|
12
14
|
Area["BILLING_AND_LEGAL"] = "Billing & Legal";
|
|
13
15
|
Area["ORGANIZATION_AND_LEGAL"] = "Organization & Legal";
|
|
14
|
-
|
|
15
|
-
}({});
|
|
16
|
+
})(Area || (Area = {}));
|
|
16
17
|
_NotificationSubscription.Area = Area;
|
|
17
18
|
})(NotificationSubscription || (exports.NotificationSubscription = NotificationSubscription = {}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export let NotificationSubscription;
|
|
2
2
|
(function (_NotificationSubscription) {
|
|
3
|
-
let Area
|
|
3
|
+
let Area;
|
|
4
|
+
(function (Area) {
|
|
4
5
|
Area["CAMPAIGNS"] = "Campaigns";
|
|
5
6
|
Area["CONTACTS"] = "Contacts";
|
|
6
7
|
Area["BILLING_AND_LEGAL"] = "Billing & Legal";
|
|
7
8
|
Area["ORGANIZATION_AND_LEGAL"] = "Organization & Legal";
|
|
8
|
-
|
|
9
|
-
}({});
|
|
9
|
+
})(Area || (Area = {}));
|
|
10
10
|
_NotificationSubscription.Area = Area;
|
|
11
11
|
})(NotificationSubscription || (NotificationSubscription = {}));
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Permission = void 0;
|
|
7
|
-
let Permission
|
|
7
|
+
let Permission;
|
|
8
|
+
exports.Permission = Permission;
|
|
9
|
+
(function (Permission) {
|
|
8
10
|
Permission["CREATE_NEWSROOM"] = "create_newsroom";
|
|
9
11
|
Permission["EXPORT_CONTACTS"] = "export_contacts";
|
|
10
12
|
Permission["MANAGE_BILLING"] = "manage_billing";
|
|
@@ -13,5 +15,4 @@ let Permission = exports.Permission = /*#__PURE__*/function (Permission) {
|
|
|
13
15
|
Permission["VIEW_CONTACTS"] = "view_contacts";
|
|
14
16
|
Permission["CREATE_SENDER_ADDRESS"] = "create_sender_address";
|
|
15
17
|
Permission["SEND_EMAILS"] = "send_emails";
|
|
16
|
-
|
|
17
|
-
}({});
|
|
18
|
+
})(Permission || (exports.Permission = Permission = {}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export let Permission
|
|
1
|
+
export let Permission;
|
|
2
|
+
(function (Permission) {
|
|
2
3
|
Permission["CREATE_NEWSROOM"] = "create_newsroom";
|
|
3
4
|
Permission["EXPORT_CONTACTS"] = "export_contacts";
|
|
4
5
|
Permission["MANAGE_BILLING"] = "manage_billing";
|
|
@@ -7,5 +8,4 @@ export let Permission = /*#__PURE__*/function (Permission) {
|
|
|
7
8
|
Permission["VIEW_CONTACTS"] = "view_contacts";
|
|
8
9
|
Permission["CREATE_SENDER_ADDRESS"] = "create_sender_address";
|
|
9
10
|
Permission["SEND_EMAILS"] = "send_emails";
|
|
10
|
-
|
|
11
|
-
}({});
|
|
11
|
+
})(Permission || (Permission = {}));
|
package/dist/types/Plan.cjs
CHANGED
|
@@ -4,14 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PlanLevel = exports.ChangeType = void 0;
|
|
7
|
-
let ChangeType
|
|
7
|
+
let ChangeType; /** @deprecated Will be dropped in future */
|
|
8
|
+
exports.ChangeType = ChangeType;
|
|
9
|
+
(function (ChangeType) {
|
|
8
10
|
ChangeType["ACTIVATION"] = "activation";
|
|
9
11
|
ChangeType["UPGRADE"] = "upgrade";
|
|
10
12
|
ChangeType["DOWNGRADE"] = "downgrade";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
})(ChangeType || (exports.ChangeType = ChangeType = {}));
|
|
14
|
+
let PlanLevel;
|
|
15
|
+
exports.PlanLevel = PlanLevel;
|
|
16
|
+
(function (PlanLevel) {
|
|
15
17
|
PlanLevel["BASIC"] = "basic";
|
|
16
18
|
PlanLevel["CORE"] = "core";
|
|
17
19
|
PlanLevel["ENTERPRISE"] = "enterprise";
|
|
@@ -24,5 +26,4 @@ let PlanLevel = exports.PlanLevel = /*#__PURE__*/function (PlanLevel) {
|
|
|
24
26
|
PlanLevel["AGENCY_MEDIUM"] = "agency_medium";
|
|
25
27
|
PlanLevel["AGENCY_LARGE"] = "agency_large";
|
|
26
28
|
PlanLevel["AGENCY_HUGE"] = "agency_huge";
|
|
27
|
-
|
|
28
|
-
}({});
|
|
29
|
+
})(PlanLevel || (exports.PlanLevel = PlanLevel = {}));
|
package/dist/types/Plan.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export let ChangeType
|
|
1
|
+
export let ChangeType;
|
|
2
|
+
|
|
3
|
+
/** @deprecated Will be dropped in future */
|
|
4
|
+
(function (ChangeType) {
|
|
2
5
|
ChangeType["ACTIVATION"] = "activation";
|
|
3
6
|
ChangeType["UPGRADE"] = "upgrade";
|
|
4
7
|
ChangeType["DOWNGRADE"] = "downgrade";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/** @deprecated Will be dropped in future */
|
|
9
|
-
export let PlanLevel = /*#__PURE__*/function (PlanLevel) {
|
|
8
|
+
})(ChangeType || (ChangeType = {}));
|
|
9
|
+
export let PlanLevel;
|
|
10
|
+
(function (PlanLevel) {
|
|
10
11
|
PlanLevel["BASIC"] = "basic";
|
|
11
12
|
PlanLevel["CORE"] = "core";
|
|
12
13
|
PlanLevel["ENTERPRISE"] = "enterprise";
|
|
@@ -19,5 +20,4 @@ export let PlanLevel = /*#__PURE__*/function (PlanLevel) {
|
|
|
19
20
|
PlanLevel["AGENCY_MEDIUM"] = "agency_medium";
|
|
20
21
|
PlanLevel["AGENCY_LARGE"] = "agency_large";
|
|
21
22
|
PlanLevel["AGENCY_HUGE"] = "agency_huge";
|
|
22
|
-
|
|
23
|
-
}({});
|
|
23
|
+
})(PlanLevel || (PlanLevel = {}));
|
|
@@ -4,20 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PrivacyRequest = void 0;
|
|
7
|
-
let PrivacyRequest
|
|
7
|
+
let PrivacyRequest;
|
|
8
|
+
exports.PrivacyRequest = PrivacyRequest;
|
|
8
9
|
(function (_PrivacyRequest) {
|
|
9
|
-
let Type
|
|
10
|
+
let Type;
|
|
11
|
+
(function (Type) {
|
|
10
12
|
Type["DELETE"] = "delete";
|
|
11
13
|
Type["EXPORT"] = "export";
|
|
12
14
|
Type["CORRECT"] = "correct";
|
|
13
15
|
Type["OTHER"] = "other";
|
|
14
|
-
|
|
15
|
-
}({});
|
|
16
|
+
})(Type || (Type = {}));
|
|
16
17
|
_PrivacyRequest.Type = Type;
|
|
17
|
-
let Status
|
|
18
|
+
let Status;
|
|
19
|
+
(function (Status) {
|
|
18
20
|
Status["UNCONFIRMED"] = "unconfirmed";
|
|
19
21
|
Status["CONFIRMED"] = "confirmed";
|
|
20
|
-
|
|
21
|
-
}({});
|
|
22
|
+
})(Status || (Status = {}));
|
|
22
23
|
_PrivacyRequest.Status = Status;
|
|
23
24
|
})(PrivacyRequest || (exports.PrivacyRequest = PrivacyRequest = {}));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export let PrivacyRequest;
|
|
2
2
|
(function (_PrivacyRequest) {
|
|
3
|
-
let Type
|
|
3
|
+
let Type;
|
|
4
|
+
(function (Type) {
|
|
4
5
|
Type["DELETE"] = "delete";
|
|
5
6
|
Type["EXPORT"] = "export";
|
|
6
7
|
Type["CORRECT"] = "correct";
|
|
7
8
|
Type["OTHER"] = "other";
|
|
8
|
-
|
|
9
|
-
}({});
|
|
9
|
+
})(Type || (Type = {}));
|
|
10
10
|
_PrivacyRequest.Type = Type;
|
|
11
|
-
let Status
|
|
11
|
+
let Status;
|
|
12
|
+
(function (Status) {
|
|
12
13
|
Status["UNCONFIRMED"] = "unconfirmed";
|
|
13
14
|
Status["CONFIRMED"] = "confirmed";
|
|
14
|
-
|
|
15
|
-
}({});
|
|
15
|
+
})(Status || (Status = {}));
|
|
16
16
|
_PrivacyRequest.Status = Status;
|
|
17
17
|
})(PrivacyRequest || (PrivacyRequest = {}));
|
|
@@ -4,12 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SenderAddress = void 0;
|
|
7
|
-
let SenderAddress
|
|
7
|
+
let SenderAddress;
|
|
8
|
+
exports.SenderAddress = SenderAddress;
|
|
8
9
|
(function (_SenderAddress) {
|
|
9
|
-
let Type
|
|
10
|
+
let Type;
|
|
11
|
+
(function (Type) {
|
|
10
12
|
Type["CUSTOM"] = "custom";
|
|
11
13
|
Type["PREZLYMAIL"] = "prezly_mail";
|
|
12
|
-
|
|
13
|
-
}({});
|
|
14
|
+
})(Type || (Type = {}));
|
|
14
15
|
_SenderAddress.Type = Type;
|
|
15
16
|
})(SenderAddress || (exports.SenderAddress = SenderAddress = {}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export let SenderAddress;
|
|
2
2
|
(function (_SenderAddress) {
|
|
3
|
-
let Type
|
|
3
|
+
let Type;
|
|
4
|
+
(function (Type) {
|
|
4
5
|
Type["CUSTOM"] = "custom";
|
|
5
6
|
Type["PREZLYMAIL"] = "prezly_mail";
|
|
6
|
-
|
|
7
|
-
}({});
|
|
7
|
+
})(Type || (Type = {}));
|
|
8
8
|
_SenderAddress.Type = Type;
|
|
9
9
|
})(SenderAddress || (SenderAddress = {}));
|
|
@@ -4,14 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SenderDomain = void 0;
|
|
7
|
-
let SenderDomain
|
|
7
|
+
let SenderDomain;
|
|
8
|
+
exports.SenderDomain = SenderDomain;
|
|
8
9
|
(function (_SenderDomain) {
|
|
9
|
-
let VerificationFlowVersion
|
|
10
|
+
let VerificationFlowVersion;
|
|
11
|
+
(function (VerificationFlowVersion) {
|
|
10
12
|
VerificationFlowVersion["V1"] = "v1";
|
|
11
13
|
VerificationFlowVersion["V2"] = "v2";
|
|
12
14
|
VerificationFlowVersion["V3"] = "v3";
|
|
13
15
|
VerificationFlowVersion["PREZLYMAIL"] = "prezlymail";
|
|
14
|
-
|
|
15
|
-
}({});
|
|
16
|
+
})(VerificationFlowVersion || (VerificationFlowVersion = {}));
|
|
16
17
|
_SenderDomain.VerificationFlowVersion = VerificationFlowVersion;
|
|
17
18
|
})(SenderDomain || (exports.SenderDomain = SenderDomain = {}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export let SenderDomain;
|
|
2
2
|
(function (_SenderDomain) {
|
|
3
|
-
let VerificationFlowVersion
|
|
3
|
+
let VerificationFlowVersion;
|
|
4
|
+
(function (VerificationFlowVersion) {
|
|
4
5
|
VerificationFlowVersion["V1"] = "v1";
|
|
5
6
|
VerificationFlowVersion["V2"] = "v2";
|
|
6
7
|
VerificationFlowVersion["V3"] = "v3";
|
|
7
8
|
VerificationFlowVersion["PREZLYMAIL"] = "prezlymail";
|
|
8
|
-
|
|
9
|
-
}({});
|
|
9
|
+
})(VerificationFlowVersion || (VerificationFlowVersion = {}));
|
|
10
10
|
_SenderDomain.VerificationFlowVersion = VerificationFlowVersion;
|
|
11
11
|
})(SenderDomain || (SenderDomain = {}));
|
package/dist/types/SortOrder.cjs
CHANGED
|
@@ -4,13 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SortOrder = void 0;
|
|
7
|
-
let SortOrder
|
|
7
|
+
let SortOrder;
|
|
8
|
+
exports.SortOrder = SortOrder;
|
|
8
9
|
(function (_SortOrder) {
|
|
9
|
-
let Direction
|
|
10
|
+
let Direction;
|
|
11
|
+
(function (Direction) {
|
|
10
12
|
Direction["ASC"] = "asc";
|
|
11
13
|
Direction["DESC"] = "desc";
|
|
12
|
-
|
|
13
|
-
}({});
|
|
14
|
+
})(Direction || (Direction = {}));
|
|
14
15
|
_SortOrder.Direction = Direction;
|
|
15
16
|
function empty() {
|
|
16
17
|
return {
|
package/dist/types/SortOrder.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export let SortOrder;
|
|
2
2
|
(function (_SortOrder) {
|
|
3
|
-
let Direction
|
|
3
|
+
let Direction;
|
|
4
|
+
(function (Direction) {
|
|
4
5
|
Direction["ASC"] = "asc";
|
|
5
6
|
Direction["DESC"] = "desc";
|
|
6
|
-
|
|
7
|
-
}({});
|
|
7
|
+
})(Direction || (Direction = {}));
|
|
8
8
|
_SortOrder.Direction = Direction;
|
|
9
9
|
function empty() {
|
|
10
10
|
return {
|