@prezly/sdk 21.15.0 → 21.17.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 +1 -0
- package/dist/Client.d.ts +2 -1
- package/dist/Client.js +2 -1
- package/dist/api/constants.cjs +1 -1
- package/dist/api/constants.js +1 -1
- package/dist/endpoints/Billing/types.cjs +6 -6
- package/dist/endpoints/Billing/types.js +6 -6
- package/dist/endpoints/ContactTagGroups/types.cjs +3 -3
- package/dist/endpoints/ContactTagGroups/types.js +3 -3
- package/dist/endpoints/CoverageIntegrations/Client.cjs +52 -0
- package/dist/endpoints/CoverageIntegrations/Client.d.ts +13 -0
- package/dist/endpoints/CoverageIntegrations/Client.js +46 -0
- package/dist/endpoints/CoverageIntegrations/index.cjs +27 -0
- package/dist/endpoints/CoverageIntegrations/index.d.ts +2 -0
- package/dist/endpoints/CoverageIntegrations/index.js +2 -0
- package/dist/endpoints/CoverageIntegrations/types.cjs +4 -0
- package/dist/endpoints/CoverageIntegrations/types.d.ts +18 -0
- package/dist/endpoints/CoverageIntegrations/types.js +2 -0
- package/dist/endpoints/PricingTables/types.cjs +12 -12
- package/dist/endpoints/PricingTables/types.js +12 -12
- package/dist/endpoints/Subscriptions/types.cjs +3 -3
- package/dist/endpoints/Subscriptions/types.js +3 -3
- package/dist/endpoints/index.cjs +3 -1
- package/dist/endpoints/index.d.ts +1 -0
- package/dist/endpoints/index.js +1 -0
- package/dist/http/types.cjs +6 -6
- package/dist/http/types.js +6 -6
- package/dist/routing.cjs +1 -0
- package/dist/routing.d.ts +1 -0
- package/dist/routing.js +1 -0
- package/dist/types/BillingCycle.cjs +3 -3
- package/dist/types/BillingCycle.js +3 -3
- package/dist/types/Campaign.cjs +18 -18
- package/dist/types/Campaign.js +18 -18
- package/dist/types/Category.cjs +1 -0
- package/dist/types/Category.js +1 -0
- package/dist/types/Contact.cjs +18 -18
- package/dist/types/Contact.d.ts +38 -10
- package/dist/types/Contact.js +18 -18
- package/dist/types/ContactDuplicateSuggestion.cjs +3 -3
- package/dist/types/ContactDuplicateSuggestion.js +4 -3
- package/dist/types/ContactTag.cjs +2 -1
- package/dist/types/ContactTag.js +2 -1
- package/dist/types/ContactsExport.cjs +3 -3
- package/dist/types/ContactsExport.js +3 -3
- package/dist/types/ContactsScope.cjs +3 -3
- package/dist/types/ContactsScope.js +3 -3
- package/dist/types/CoverageEntry.cjs +6 -6
- package/dist/types/CoverageEntry.js +6 -6
- package/dist/types/CoverageIntegration.cjs +1 -0
- package/dist/types/CoverageIntegration.d.ts +18 -0
- package/dist/types/CoverageIntegration.js +1 -0
- package/dist/types/CoverageIntegrationRun.cjs +12 -0
- package/dist/types/CoverageIntegrationRun.d.ts +19 -0
- package/dist/types/CoverageIntegrationRun.js +6 -0
- package/dist/types/Culture.cjs +3 -3
- package/dist/types/Culture.js +3 -3
- package/dist/types/Currency.cjs +3 -3
- package/dist/types/Currency.js +3 -3
- package/dist/types/EmailRecipient.cjs +3 -3
- package/dist/types/EmailRecipient.js +3 -3
- package/dist/types/JobState.cjs +3 -3
- package/dist/types/JobState.js +3 -3
- package/dist/types/License.cjs +9 -9
- package/dist/types/License.js +9 -9
- package/dist/types/Newsroom.cjs +12 -12
- package/dist/types/Newsroom.js +12 -12
- package/dist/types/NewsroomDomain.cjs +6 -6
- package/dist/types/NewsroomDomain.js +6 -6
- package/dist/types/NewsroomGallery.cjs +6 -6
- package/dist/types/NewsroomGallery.js +6 -6
- package/dist/types/NewsroomTheme.cjs +8 -7
- package/dist/types/NewsroomTheme.js +8 -7
- package/dist/types/NewsroomWebhook.cjs +3 -3
- package/dist/types/NewsroomWebhook.js +3 -3
- package/dist/types/NotificationSubscription.cjs +3 -3
- package/dist/types/NotificationSubscription.js +3 -3
- package/dist/types/Permissions.cjs +3 -3
- package/dist/types/Permissions.js +3 -3
- package/dist/types/Plan.cjs +7 -7
- package/dist/types/Plan.js +8 -8
- package/dist/types/PrivacyRequest.cjs +6 -6
- package/dist/types/PrivacyRequest.js +6 -6
- package/dist/types/SenderAddress.cjs +3 -3
- package/dist/types/SenderAddress.js +3 -3
- package/dist/types/SenderDomain.cjs +3 -3
- package/dist/types/SenderDomain.js +3 -3
- package/dist/types/SortOrder.cjs +3 -3
- package/dist/types/SortOrder.js +3 -3
- package/dist/types/Story.cjs +12 -12
- package/dist/types/Story.js +12 -12
- package/dist/types/User.cjs +6 -6
- package/dist/types/User.js +6 -6
- package/dist/types/common/Notification.cjs +3 -3
- package/dist/types/common/Notification.js +3 -3
- package/dist/types/common/OEmbedInfo.cjs +3 -3
- package/dist/types/common/OEmbedInfo.js +3 -3
- package/dist/types/common/Pagination.cjs +3 -3
- package/dist/types/common/Pagination.js +3 -3
- package/dist/types/common/Query.js +1 -0
- package/dist/types/index.cjs +22 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/package.json +1 -1
package/dist/types/Campaign.js
CHANGED
|
@@ -2,47 +2,47 @@ import { SenderDomain } from "./SenderDomain.js";
|
|
|
2
2
|
export let Campaign;
|
|
3
3
|
(function (_Campaign) {
|
|
4
4
|
const SenderDomainVerificationFlow = _Campaign.SenderDomainVerificationFlow = SenderDomain.VerificationFlowVersion;
|
|
5
|
-
let LifecycleStatus
|
|
5
|
+
let LifecycleStatus;
|
|
6
|
+
(function (LifecycleStatus) {
|
|
6
7
|
LifecycleStatus["DRAFT"] = "draft";
|
|
7
8
|
LifecycleStatus["SCHEDULED"] = "scheduled";
|
|
8
9
|
LifecycleStatus["PENDING"] = "pending";
|
|
9
10
|
LifecycleStatus["SENT"] = "sent";
|
|
10
|
-
|
|
11
|
-
}({});
|
|
11
|
+
})(LifecycleStatus || (LifecycleStatus = {}));
|
|
12
12
|
_Campaign.LifecycleStatus = LifecycleStatus;
|
|
13
|
-
let StoryAlignment
|
|
13
|
+
let StoryAlignment;
|
|
14
|
+
(function (StoryAlignment) {
|
|
14
15
|
StoryAlignment["CENTER"] = "center";
|
|
15
16
|
StoryAlignment["LEFT"] = "left";
|
|
16
17
|
StoryAlignment["RIGHT"] = "right";
|
|
17
|
-
|
|
18
|
-
}({});
|
|
18
|
+
})(StoryAlignment || (StoryAlignment = {}));
|
|
19
19
|
_Campaign.StoryAlignment = StoryAlignment;
|
|
20
|
-
let StoryAppearance
|
|
20
|
+
let StoryAppearance;
|
|
21
|
+
(function (StoryAppearance) {
|
|
21
22
|
StoryAppearance["INTRO"] = "intro";
|
|
22
23
|
StoryAppearance["FULL"] = "full";
|
|
23
|
-
|
|
24
|
-
}({});
|
|
24
|
+
})(StoryAppearance || (StoryAppearance = {}));
|
|
25
25
|
_Campaign.StoryAppearance = StoryAppearance;
|
|
26
|
-
let StoryHeaderFooter
|
|
26
|
+
let StoryHeaderFooter;
|
|
27
|
+
(function (StoryHeaderFooter) {
|
|
27
28
|
StoryHeaderFooter["NONE"] = "none";
|
|
28
29
|
StoryHeaderFooter["STANDARD"] = "standard";
|
|
29
30
|
StoryHeaderFooter["FULL"] = "full";
|
|
30
|
-
|
|
31
|
-
}({});
|
|
31
|
+
})(StoryHeaderFooter || (StoryHeaderFooter = {}));
|
|
32
32
|
_Campaign.StoryHeaderFooter = StoryHeaderFooter;
|
|
33
|
-
let SenderDomainVerificationStatus
|
|
33
|
+
let SenderDomainVerificationStatus;
|
|
34
|
+
(function (SenderDomainVerificationStatus) {
|
|
34
35
|
SenderDomainVerificationStatus["UNKNOWN"] = "unknown";
|
|
35
36
|
SenderDomainVerificationStatus["VALID"] = "valid";
|
|
36
37
|
SenderDomainVerificationStatus["INVALID"] = "invalid";
|
|
37
38
|
SenderDomainVerificationStatus["NOT_APPLICABLE"] = "not-applicable";
|
|
38
|
-
|
|
39
|
-
}({});
|
|
39
|
+
})(SenderDomainVerificationStatus || (SenderDomainVerificationStatus = {}));
|
|
40
40
|
_Campaign.SenderDomainVerificationStatus = SenderDomainVerificationStatus;
|
|
41
|
-
let ClickTrackingVersion
|
|
41
|
+
let ClickTrackingVersion;
|
|
42
|
+
(function (ClickTrackingVersion) {
|
|
42
43
|
ClickTrackingVersion[ClickTrackingVersion["DEPRECATED"] = 1] = "DEPRECATED";
|
|
43
44
|
ClickTrackingVersion[ClickTrackingVersion["ENHANCED"] = 2] = "ENHANCED";
|
|
44
|
-
|
|
45
|
-
}({});
|
|
45
|
+
})(ClickTrackingVersion || (ClickTrackingVersion = {}));
|
|
46
46
|
_Campaign.ClickTrackingVersion = ClickTrackingVersion;
|
|
47
47
|
function isDraft(arg) {
|
|
48
48
|
if (typeof arg === 'object') {
|
package/dist/types/Category.cjs
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.CategoryRef = exports.Category = void 0;
|
|
7
7
|
let CategoryRef = exports.CategoryRef = void 0;
|
|
8
|
+
(function (_CategoryRef) {})(CategoryRef || (exports.CategoryRef = CategoryRef = {}));
|
|
8
9
|
let Category = exports.Category = void 0;
|
|
9
10
|
(function (_Category) {
|
|
10
11
|
function isTranslated(category, locale) {
|
package/dist/types/Category.js
CHANGED
package/dist/types/Contact.cjs
CHANGED
|
@@ -6,20 +6,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Contact = void 0;
|
|
7
7
|
let Contact = exports.Contact = void 0;
|
|
8
8
|
(function (_Contact) {
|
|
9
|
-
let Type
|
|
9
|
+
let Type;
|
|
10
|
+
(function (Type) {
|
|
10
11
|
Type["PERSON"] = "person";
|
|
11
12
|
Type["ORGANISATION"] = "organisation";
|
|
12
|
-
|
|
13
|
-
}({});
|
|
13
|
+
})(Type || (Type = {}));
|
|
14
14
|
_Contact.Type = Type;
|
|
15
|
-
let Gender
|
|
15
|
+
let Gender;
|
|
16
|
+
(function (Gender) {
|
|
16
17
|
Gender["MALE"] = "male";
|
|
17
18
|
Gender["FEMALE"] = "female";
|
|
18
19
|
Gender["UNSPECIFIED"] = "unspecified";
|
|
19
|
-
|
|
20
|
-
}({});
|
|
20
|
+
})(Gender || (Gender = {}));
|
|
21
21
|
_Contact.Gender = Gender;
|
|
22
|
-
let Periodicity
|
|
22
|
+
let Periodicity;
|
|
23
|
+
(function (Periodicity) {
|
|
23
24
|
Periodicity["DAILY"] = "daily";
|
|
24
25
|
Periodicity["WEEKDAYS"] = "weekdays";
|
|
25
26
|
Periodicity["WEEKLY"] = "weekly";
|
|
@@ -30,10 +31,10 @@ let Contact = exports.Contact = void 0;
|
|
|
30
31
|
Periodicity["ANNUALLY"] = "annually";
|
|
31
32
|
Periodicity["BI_ANUALLY"] = "bi-annually";
|
|
32
33
|
Periodicity["SEMI_ANNUALLY"] = "semi-annually";
|
|
33
|
-
|
|
34
|
-
}({});
|
|
34
|
+
})(Periodicity || (Periodicity = {}));
|
|
35
35
|
_Contact.Periodicity = Periodicity;
|
|
36
|
-
let MediumType
|
|
36
|
+
let MediumType;
|
|
37
|
+
(function (MediumType) {
|
|
37
38
|
MediumType["WIRE"] = "wire";
|
|
38
39
|
MediumType["PRINT"] = "print";
|
|
39
40
|
MediumType["RADIO"] = "radio";
|
|
@@ -51,10 +52,10 @@ let Contact = exports.Contact = void 0;
|
|
|
51
52
|
MediumType["PODCAST"] = "podcast";
|
|
52
53
|
MediumType["NEWSLETTER"] = "newsletter";
|
|
53
54
|
MediumType["NEWS_SITE"] = "news website";
|
|
54
|
-
|
|
55
|
-
}({});
|
|
55
|
+
})(MediumType || (MediumType = {}));
|
|
56
56
|
_Contact.MediumType = MediumType;
|
|
57
|
-
let SocialNetwork
|
|
57
|
+
let SocialNetwork;
|
|
58
|
+
(function (SocialNetwork) {
|
|
58
59
|
SocialNetwork["DISCORD"] = "discord";
|
|
59
60
|
SocialNetwork["FACEBOOK"] = "facebook";
|
|
60
61
|
SocialNetwork["INSTAGRAM"] = "instagram";
|
|
@@ -66,16 +67,15 @@ let Contact = exports.Contact = void 0;
|
|
|
66
67
|
SocialNetwork["TWITCH"] = "twitch";
|
|
67
68
|
SocialNetwork["TWITTER"] = "twitter";
|
|
68
69
|
SocialNetwork["YOUTUBE"] = "youtube";
|
|
69
|
-
|
|
70
|
-
}({});
|
|
70
|
+
})(SocialNetwork || (SocialNetwork = {}));
|
|
71
71
|
_Contact.SocialNetwork = SocialNetwork;
|
|
72
72
|
let PhoneNumber;
|
|
73
73
|
(function (_PhoneNumber) {
|
|
74
|
-
let Type
|
|
74
|
+
let Type;
|
|
75
|
+
(function (Type) {
|
|
75
76
|
Type["TELEPHONE"] = "tel";
|
|
76
77
|
Type["CELLPHONE"] = "cell";
|
|
77
|
-
|
|
78
|
-
}({});
|
|
78
|
+
})(Type || (Type = {}));
|
|
79
79
|
_PhoneNumber.Type = Type;
|
|
80
80
|
})(PhoneNumber || (PhoneNumber = _Contact.PhoneNumber || (_Contact.PhoneNumber = {})));
|
|
81
81
|
function isPerson(arg) {
|
package/dist/types/Contact.d.ts
CHANGED
|
@@ -13,6 +13,12 @@ export interface ContactRef {
|
|
|
13
13
|
view: string | null;
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
+
interface Language {
|
|
17
|
+
code: string;
|
|
18
|
+
direction: string;
|
|
19
|
+
locale: string;
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
16
22
|
export interface Contact {
|
|
17
23
|
id: number;
|
|
18
24
|
contact_type: Contact.Type;
|
|
@@ -31,15 +37,14 @@ export interface Contact {
|
|
|
31
37
|
periodicity: Contact.Periodicity | null;
|
|
32
38
|
medium_types: Contact.MediumType[];
|
|
33
39
|
bio: string;
|
|
34
|
-
languages:
|
|
35
|
-
code: string;
|
|
36
|
-
direction: string;
|
|
37
|
-
locale: string;
|
|
38
|
-
name: string;
|
|
39
|
-
}[];
|
|
40
|
+
languages: Language[];
|
|
40
41
|
primary_email: string | null;
|
|
41
42
|
emails: string[];
|
|
42
43
|
phone_numbers: Contact.PhoneNumber[];
|
|
44
|
+
social: {
|
|
45
|
+
type: Contact.SocialNetwork;
|
|
46
|
+
username: string;
|
|
47
|
+
}[];
|
|
43
48
|
function_name: string;
|
|
44
49
|
address: {
|
|
45
50
|
street: string;
|
|
@@ -74,6 +79,12 @@ export interface Contact {
|
|
|
74
79
|
last_contacted_at: string | null;
|
|
75
80
|
created_at: string | null;
|
|
76
81
|
modified_at: string | null;
|
|
82
|
+
external_metrics: {
|
|
83
|
+
open_page_rank: number | null;
|
|
84
|
+
similarweb_country_rank: number | null;
|
|
85
|
+
similarweb_global_rank: number | null;
|
|
86
|
+
similarweb_visitors_monthly: number | null;
|
|
87
|
+
};
|
|
77
88
|
stats: {
|
|
78
89
|
clicked: number;
|
|
79
90
|
delivered: number;
|
|
@@ -92,10 +103,26 @@ export interface Contact {
|
|
|
92
103
|
organisations_api: string;
|
|
93
104
|
view: string;
|
|
94
105
|
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
106
|
+
enrichments: {
|
|
107
|
+
languages: Language['code'][];
|
|
108
|
+
medium_types: Contact.MediumType[];
|
|
109
|
+
urls: string[];
|
|
110
|
+
phone_numbers: Contact.PhoneNumber[];
|
|
111
|
+
social: {
|
|
112
|
+
type: Contact.SocialNetwork;
|
|
113
|
+
username: string;
|
|
114
|
+
}[];
|
|
115
|
+
periodicity: Contact.Periodicity | null;
|
|
116
|
+
address: {
|
|
117
|
+
street: string | null;
|
|
118
|
+
number: string | null;
|
|
119
|
+
box: string | null;
|
|
120
|
+
zip: string | null;
|
|
121
|
+
city: string | null;
|
|
122
|
+
region: string | null;
|
|
123
|
+
country: string | null;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
99
126
|
}
|
|
100
127
|
export declare namespace Contact {
|
|
101
128
|
enum Type {
|
|
@@ -166,3 +193,4 @@ export declare namespace Contact {
|
|
|
166
193
|
function isOrganisation(contact: Pick<Contact, 'contact_type'>): boolean;
|
|
167
194
|
function isOrganisation(type: Contact['contact_type']): boolean;
|
|
168
195
|
}
|
|
196
|
+
export {};
|
package/dist/types/Contact.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
export let Contact;
|
|
2
2
|
(function (_Contact) {
|
|
3
|
-
let Type
|
|
3
|
+
let Type;
|
|
4
|
+
(function (Type) {
|
|
4
5
|
Type["PERSON"] = "person";
|
|
5
6
|
Type["ORGANISATION"] = "organisation";
|
|
6
|
-
|
|
7
|
-
}({});
|
|
7
|
+
})(Type || (Type = {}));
|
|
8
8
|
_Contact.Type = Type;
|
|
9
|
-
let Gender
|
|
9
|
+
let Gender;
|
|
10
|
+
(function (Gender) {
|
|
10
11
|
Gender["MALE"] = "male";
|
|
11
12
|
Gender["FEMALE"] = "female";
|
|
12
13
|
Gender["UNSPECIFIED"] = "unspecified";
|
|
13
|
-
|
|
14
|
-
}({});
|
|
14
|
+
})(Gender || (Gender = {}));
|
|
15
15
|
_Contact.Gender = Gender;
|
|
16
|
-
let Periodicity
|
|
16
|
+
let Periodicity;
|
|
17
|
+
(function (Periodicity) {
|
|
17
18
|
Periodicity["DAILY"] = "daily";
|
|
18
19
|
Periodicity["WEEKDAYS"] = "weekdays";
|
|
19
20
|
Periodicity["WEEKLY"] = "weekly";
|
|
@@ -24,10 +25,10 @@ export let Contact;
|
|
|
24
25
|
Periodicity["ANNUALLY"] = "annually";
|
|
25
26
|
Periodicity["BI_ANUALLY"] = "bi-annually";
|
|
26
27
|
Periodicity["SEMI_ANNUALLY"] = "semi-annually";
|
|
27
|
-
|
|
28
|
-
}({});
|
|
28
|
+
})(Periodicity || (Periodicity = {}));
|
|
29
29
|
_Contact.Periodicity = Periodicity;
|
|
30
|
-
let MediumType
|
|
30
|
+
let MediumType;
|
|
31
|
+
(function (MediumType) {
|
|
31
32
|
MediumType["WIRE"] = "wire";
|
|
32
33
|
MediumType["PRINT"] = "print";
|
|
33
34
|
MediumType["RADIO"] = "radio";
|
|
@@ -45,10 +46,10 @@ export let Contact;
|
|
|
45
46
|
MediumType["PODCAST"] = "podcast";
|
|
46
47
|
MediumType["NEWSLETTER"] = "newsletter";
|
|
47
48
|
MediumType["NEWS_SITE"] = "news website";
|
|
48
|
-
|
|
49
|
-
}({});
|
|
49
|
+
})(MediumType || (MediumType = {}));
|
|
50
50
|
_Contact.MediumType = MediumType;
|
|
51
|
-
let SocialNetwork
|
|
51
|
+
let SocialNetwork;
|
|
52
|
+
(function (SocialNetwork) {
|
|
52
53
|
SocialNetwork["DISCORD"] = "discord";
|
|
53
54
|
SocialNetwork["FACEBOOK"] = "facebook";
|
|
54
55
|
SocialNetwork["INSTAGRAM"] = "instagram";
|
|
@@ -60,16 +61,15 @@ export let Contact;
|
|
|
60
61
|
SocialNetwork["TWITCH"] = "twitch";
|
|
61
62
|
SocialNetwork["TWITTER"] = "twitter";
|
|
62
63
|
SocialNetwork["YOUTUBE"] = "youtube";
|
|
63
|
-
|
|
64
|
-
}({});
|
|
64
|
+
})(SocialNetwork || (SocialNetwork = {}));
|
|
65
65
|
_Contact.SocialNetwork = SocialNetwork;
|
|
66
66
|
let PhoneNumber;
|
|
67
67
|
(function (_PhoneNumber) {
|
|
68
|
-
let Type
|
|
68
|
+
let Type;
|
|
69
|
+
(function (Type) {
|
|
69
70
|
Type["TELEPHONE"] = "tel";
|
|
70
71
|
Type["CELLPHONE"] = "cell";
|
|
71
|
-
|
|
72
|
-
}({});
|
|
72
|
+
})(Type || (Type = {}));
|
|
73
73
|
_PhoneNumber.Type = Type;
|
|
74
74
|
})(PhoneNumber || (PhoneNumber = _Contact.PhoneNumber || (_Contact.PhoneNumber = {})));
|
|
75
75
|
function isPerson(arg) {
|
|
@@ -9,12 +9,12 @@ exports.ContactDuplicateSuggestion = void 0;
|
|
|
9
9
|
*/
|
|
10
10
|
let ContactDuplicateSuggestion = exports.ContactDuplicateSuggestion = void 0;
|
|
11
11
|
(function (_ContactDuplicateSuggestion) {
|
|
12
|
-
let Status
|
|
12
|
+
let Status;
|
|
13
|
+
(function (Status) {
|
|
13
14
|
Status["UNSEEN"] = "unseen";
|
|
14
15
|
Status["ACCEPTED"] = "accepted";
|
|
15
16
|
Status["DECLINED"] = "declined";
|
|
16
|
-
|
|
17
|
-
}({});
|
|
17
|
+
})(Status || (Status = {}));
|
|
18
18
|
_ContactDuplicateSuggestion.Status = Status;
|
|
19
19
|
function isUnseen(arg) {
|
|
20
20
|
if (arg !== null && typeof arg === 'object') {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Value in range 0.0 ... 1.0.
|
|
3
3
|
*/
|
|
4
|
+
|
|
4
5
|
export let ContactDuplicateSuggestion;
|
|
5
6
|
(function (_ContactDuplicateSuggestion) {
|
|
6
|
-
let Status
|
|
7
|
+
let Status;
|
|
8
|
+
(function (Status) {
|
|
7
9
|
Status["UNSEEN"] = "unseen";
|
|
8
10
|
Status["ACCEPTED"] = "accepted";
|
|
9
11
|
Status["DECLINED"] = "declined";
|
|
10
|
-
|
|
11
|
-
}({});
|
|
12
|
+
})(Status || (Status = {}));
|
|
12
13
|
_ContactDuplicateSuggestion.Status = Status;
|
|
13
14
|
function isUnseen(arg) {
|
|
14
15
|
if (arg !== null && typeof arg === 'object') {
|
|
@@ -4,4 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ContactTag = void 0;
|
|
7
|
-
let ContactTag = exports.ContactTag = void 0;
|
|
7
|
+
let ContactTag = exports.ContactTag = void 0;
|
|
8
|
+
(function (_ContactTag) {})(ContactTag || (exports.ContactTag = ContactTag = {}));
|
package/dist/types/ContactTag.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export let ContactTag;
|
|
1
|
+
export let ContactTag;
|
|
2
|
+
(function (_ContactTag) {})(ContactTag || (ContactTag = {}));
|
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ContactsExport = void 0;
|
|
7
7
|
let ContactsExport = exports.ContactsExport = void 0;
|
|
8
8
|
(function (_ContactsExport) {
|
|
9
|
-
let Status
|
|
9
|
+
let Status;
|
|
10
|
+
(function (Status) {
|
|
10
11
|
Status["NEW"] = "new";
|
|
11
12
|
Status["DONE"] = "done";
|
|
12
13
|
Status["FAILED"] = "failed";
|
|
13
|
-
|
|
14
|
-
}({});
|
|
14
|
+
})(Status || (Status = {}));
|
|
15
15
|
_ContactsExport.Status = Status;
|
|
16
16
|
})(ContactsExport || (exports.ContactsExport = ContactsExport = {}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export let ContactsExport;
|
|
2
2
|
(function (_ContactsExport) {
|
|
3
|
-
let Status
|
|
3
|
+
let Status;
|
|
4
|
+
(function (Status) {
|
|
4
5
|
Status["NEW"] = "new";
|
|
5
6
|
Status["DONE"] = "done";
|
|
6
7
|
Status["FAILED"] = "failed";
|
|
7
|
-
|
|
8
|
-
}({});
|
|
8
|
+
})(Status || (Status = {}));
|
|
9
9
|
_ContactsExport.Status = Status;
|
|
10
10
|
})(ContactsExport || (ContactsExport = {}));
|
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ContactsScope = void 0;
|
|
7
7
|
let ContactsScope = exports.ContactsScope = void 0;
|
|
8
8
|
(function (_ContactsScope) {
|
|
9
|
-
let Type
|
|
9
|
+
let Type;
|
|
10
|
+
(function (Type) {
|
|
10
11
|
Type["ALL_CONTACTS"] = "scope:contacts";
|
|
11
12
|
Type["CONTACT_EMPLOYEES"] = "scope:contact_employees";
|
|
12
13
|
Type["CONTACT_ORGANISATIONS"] = "scope:contact_organisations";
|
|
13
14
|
Type["CAMPAIGN_RECIPIENTS"] = "scope:campaign_recipients";
|
|
14
15
|
Type["CAMPAIGN_REPORT"] = "scope:campaign_report";
|
|
15
|
-
|
|
16
|
-
}({});
|
|
16
|
+
})(Type || (Type = {}));
|
|
17
17
|
_ContactsScope.Type = Type;
|
|
18
18
|
})(ContactsScope || (exports.ContactsScope = ContactsScope = {}));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export let ContactsScope;
|
|
2
2
|
(function (_ContactsScope) {
|
|
3
|
-
let Type
|
|
3
|
+
let Type;
|
|
4
|
+
(function (Type) {
|
|
4
5
|
Type["ALL_CONTACTS"] = "scope:contacts";
|
|
5
6
|
Type["CONTACT_EMPLOYEES"] = "scope:contact_employees";
|
|
6
7
|
Type["CONTACT_ORGANISATIONS"] = "scope:contact_organisations";
|
|
7
8
|
Type["CAMPAIGN_RECIPIENTS"] = "scope:campaign_recipients";
|
|
8
9
|
Type["CAMPAIGN_REPORT"] = "scope:campaign_report";
|
|
9
|
-
|
|
10
|
-
}({});
|
|
10
|
+
})(Type || (Type = {}));
|
|
11
11
|
_ContactsScope.Type = Type;
|
|
12
12
|
})(ContactsScope || (ContactsScope = {}));
|
|
@@ -6,16 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.CoverageEntry = void 0;
|
|
7
7
|
let CoverageEntry = exports.CoverageEntry = void 0;
|
|
8
8
|
(function (_CoverageEntry) {
|
|
9
|
-
let Type
|
|
9
|
+
let Type;
|
|
10
|
+
(function (Type) {
|
|
10
11
|
Type["ONLINE"] = "online";
|
|
11
12
|
Type["SOCIAL"] = "social";
|
|
12
13
|
Type["PRINT"] = "print";
|
|
13
14
|
Type["RADIO"] = "radio";
|
|
14
15
|
Type["TELEVISION"] = "television";
|
|
15
|
-
|
|
16
|
-
}({});
|
|
16
|
+
})(Type || (Type = {}));
|
|
17
17
|
_CoverageEntry.Type = Type;
|
|
18
|
-
let Provider
|
|
18
|
+
let Provider;
|
|
19
|
+
(function (Provider) {
|
|
19
20
|
Provider["AMMCO"] = "ammco";
|
|
20
21
|
Provider["AUXIPRESS"] = "auxipress";
|
|
21
22
|
Provider["BELGA"] = "belga";
|
|
@@ -25,7 +26,6 @@ let CoverageEntry = exports.CoverageEntry = void 0;
|
|
|
25
26
|
Provider["MEDIAWEB"] = "mediaweb";
|
|
26
27
|
Provider["MELTWATER"] = "meltwater";
|
|
27
28
|
Provider["MANUAL"] = "manual";
|
|
28
|
-
|
|
29
|
-
}({});
|
|
29
|
+
})(Provider || (Provider = {}));
|
|
30
30
|
_CoverageEntry.Provider = Provider;
|
|
31
31
|
})(CoverageEntry || (exports.CoverageEntry = CoverageEntry = {}));
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
export let CoverageEntry;
|
|
2
2
|
(function (_CoverageEntry) {
|
|
3
|
-
let Type
|
|
3
|
+
let Type;
|
|
4
|
+
(function (Type) {
|
|
4
5
|
Type["ONLINE"] = "online";
|
|
5
6
|
Type["SOCIAL"] = "social";
|
|
6
7
|
Type["PRINT"] = "print";
|
|
7
8
|
Type["RADIO"] = "radio";
|
|
8
9
|
Type["TELEVISION"] = "television";
|
|
9
|
-
|
|
10
|
-
}({});
|
|
10
|
+
})(Type || (Type = {}));
|
|
11
11
|
_CoverageEntry.Type = Type;
|
|
12
|
-
let Provider
|
|
12
|
+
let Provider;
|
|
13
|
+
(function (Provider) {
|
|
13
14
|
Provider["AMMCO"] = "ammco";
|
|
14
15
|
Provider["AUXIPRESS"] = "auxipress";
|
|
15
16
|
Provider["BELGA"] = "belga";
|
|
@@ -19,7 +20,6 @@ export let CoverageEntry;
|
|
|
19
20
|
Provider["MEDIAWEB"] = "mediaweb";
|
|
20
21
|
Provider["MELTWATER"] = "meltwater";
|
|
21
22
|
Provider["MANUAL"] = "manual";
|
|
22
|
-
|
|
23
|
-
}({});
|
|
23
|
+
})(Provider || (Provider = {}));
|
|
24
24
|
_CoverageEntry.Provider = Provider;
|
|
25
25
|
})(CoverageEntry || (CoverageEntry = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CoverageEntry } from './CoverageEntry';
|
|
2
|
+
import type { CoverageIntegrationRun } from './CoverageIntegrationRun';
|
|
3
|
+
import type { NewsroomRef } from './Newsroom';
|
|
4
|
+
type Iso8601DateTime = string;
|
|
5
|
+
export interface CoverageIntegration {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string | null;
|
|
9
|
+
newsroom: NewsroomRef;
|
|
10
|
+
provider: CoverageEntry.Provider;
|
|
11
|
+
input: string;
|
|
12
|
+
skip_author: boolean;
|
|
13
|
+
skip_organisation: boolean;
|
|
14
|
+
last_run: CoverageIntegrationRun | null;
|
|
15
|
+
next_run_at: Iso8601DateTime;
|
|
16
|
+
created_at: Iso8601DateTime;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Status = void 0;
|
|
7
|
+
let Status = exports.Status = void 0;
|
|
8
|
+
(function (Status) {
|
|
9
|
+
Status["DONE"] = "done";
|
|
10
|
+
Status["ERROR"] = "error";
|
|
11
|
+
Status["RUNNING"] = "running";
|
|
12
|
+
})(Status || (exports.Status = Status = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type Iso8601DateTime = string;
|
|
2
|
+
export declare enum Status {
|
|
3
|
+
DONE = "done",
|
|
4
|
+
ERROR = "error",
|
|
5
|
+
RUNNING = "running"
|
|
6
|
+
}
|
|
7
|
+
export interface CoverageIntegrationRun {
|
|
8
|
+
id: number;
|
|
9
|
+
uuid: string;
|
|
10
|
+
created_at: Iso8601DateTime;
|
|
11
|
+
updated_at: Iso8601DateTime;
|
|
12
|
+
status: Status;
|
|
13
|
+
/**
|
|
14
|
+
* Following properties will be `null` when status = 'running'
|
|
15
|
+
*/
|
|
16
|
+
stats_processed: number | null;
|
|
17
|
+
stats_added: number | null;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
package/dist/types/Culture.cjs
CHANGED
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Culture = void 0;
|
|
7
7
|
let Culture = exports.Culture = void 0;
|
|
8
8
|
(function (_Culture) {
|
|
9
|
-
let TextDirection
|
|
9
|
+
let TextDirection;
|
|
10
|
+
(function (TextDirection) {
|
|
10
11
|
TextDirection["LTR"] = "ltr";
|
|
11
12
|
TextDirection["RTL"] = "rtl";
|
|
12
|
-
|
|
13
|
-
}({});
|
|
13
|
+
})(TextDirection || (TextDirection = {}));
|
|
14
14
|
_Culture.TextDirection = TextDirection;
|
|
15
15
|
/**
|
|
16
16
|
* Primary locale code used everywhere in the Prezly app.
|
package/dist/types/Culture.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export let Culture;
|
|
2
2
|
(function (_Culture) {
|
|
3
|
-
let TextDirection
|
|
3
|
+
let TextDirection;
|
|
4
|
+
(function (TextDirection) {
|
|
4
5
|
TextDirection["LTR"] = "ltr";
|
|
5
6
|
TextDirection["RTL"] = "rtl";
|
|
6
|
-
|
|
7
|
-
}({});
|
|
7
|
+
})(TextDirection || (TextDirection = {}));
|
|
8
8
|
_Culture.TextDirection = TextDirection;
|
|
9
9
|
/**
|
|
10
10
|
* Primary locale code used everywhere in the Prezly app.
|
package/dist/types/Currency.cjs
CHANGED
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Currency = void 0;
|
|
7
|
-
let Currency = exports.Currency =
|
|
7
|
+
let Currency = exports.Currency = void 0;
|
|
8
|
+
(function (Currency) {
|
|
8
9
|
Currency["EUR"] = "eur";
|
|
9
10
|
Currency["USD"] = "usd";
|
|
10
11
|
Currency["GBP"] = "gbp";
|
|
11
12
|
Currency["AUD"] = "aud";
|
|
12
|
-
|
|
13
|
-
}({});
|
|
13
|
+
})(Currency || (exports.Currency = Currency = {}));
|
package/dist/types/Currency.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export let Currency
|
|
1
|
+
export let Currency;
|
|
2
|
+
(function (Currency) {
|
|
2
3
|
Currency["EUR"] = "eur";
|
|
3
4
|
Currency["USD"] = "usd";
|
|
4
5
|
Currency["GBP"] = "gbp";
|
|
5
6
|
Currency["AUD"] = "aud";
|
|
6
|
-
|
|
7
|
-
}({});
|
|
7
|
+
})(Currency || (Currency = {}));
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.EmailRecipient = void 0;
|
|
7
7
|
let EmailRecipient = exports.EmailRecipient = void 0;
|
|
8
8
|
(function (_EmailRecipient) {
|
|
9
|
-
let EmailAddressStatus
|
|
9
|
+
let EmailAddressStatus;
|
|
10
|
+
(function (EmailAddressStatus) {
|
|
10
11
|
EmailAddressStatus["OK"] = "ok";
|
|
11
12
|
EmailAddressStatus["BOUNCED"] = "bounced";
|
|
12
13
|
EmailAddressStatus["UNSUBSCRIBED"] = "unsubscribed";
|
|
13
14
|
EmailAddressStatus["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
|
|
14
|
-
|
|
15
|
-
}({});
|
|
15
|
+
})(EmailAddressStatus || (EmailAddressStatus = {}));
|
|
16
16
|
_EmailRecipient.EmailAddressStatus = EmailAddressStatus;
|
|
17
17
|
})(EmailRecipient || (exports.EmailRecipient = EmailRecipient = {}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export let EmailRecipient;
|
|
2
2
|
(function (_EmailRecipient) {
|
|
3
|
-
let EmailAddressStatus
|
|
3
|
+
let EmailAddressStatus;
|
|
4
|
+
(function (EmailAddressStatus) {
|
|
4
5
|
EmailAddressStatus["OK"] = "ok";
|
|
5
6
|
EmailAddressStatus["BOUNCED"] = "bounced";
|
|
6
7
|
EmailAddressStatus["UNSUBSCRIBED"] = "unsubscribed";
|
|
7
8
|
EmailAddressStatus["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
|
|
8
|
-
|
|
9
|
-
}({});
|
|
9
|
+
})(EmailAddressStatus || (EmailAddressStatus = {}));
|
|
10
10
|
_EmailRecipient.EmailAddressStatus = EmailAddressStatus;
|
|
11
11
|
})(EmailRecipient || (EmailRecipient = {}));
|