@prezly/sdk 19.6.0 → 19.6.2
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 +0 -1
- package/dist/api/DeferredJobsApiClient.js +0 -1
- package/dist/api/constants.cjs +2 -3
- package/dist/api/constants.js +1 -1
- package/dist/endpoints/Accounts/index.cjs +2 -0
- package/dist/endpoints/Billing/index.cjs +2 -0
- package/dist/endpoints/Billing/types.cjs +7 -9
- package/dist/endpoints/Billing/types.js +6 -6
- package/dist/endpoints/CampaignRecipients/index.cjs +2 -0
- package/dist/endpoints/Campaigns/index.cjs +2 -0
- package/dist/endpoints/Contacts/index.cjs +2 -0
- package/dist/endpoints/ContactsExports/index.cjs +2 -0
- package/dist/endpoints/Coverage/index.cjs +2 -0
- package/dist/endpoints/Jobs/index.cjs +2 -0
- package/dist/endpoints/Licenses/index.cjs +1 -0
- package/dist/endpoints/NewsroomCategories/index.cjs +2 -0
- package/dist/endpoints/NewsroomContacts/index.cjs +2 -0
- package/dist/endpoints/NewsroomDomains/index.cjs +2 -0
- package/dist/endpoints/NewsroomGalleries/index.cjs +2 -0
- package/dist/endpoints/NewsroomHub/index.cjs +2 -0
- package/dist/endpoints/NewsroomLanguages/index.cjs +2 -0
- package/dist/endpoints/NewsroomPrivacyRequests/index.cjs +2 -0
- package/dist/endpoints/NewsroomSubscriptions/index.cjs +2 -0
- package/dist/endpoints/NewsroomThemes/index.cjs +1 -0
- package/dist/endpoints/NewsroomWebhooks/index.cjs +2 -0
- package/dist/endpoints/Newsrooms/index.cjs +2 -0
- package/dist/endpoints/Newsrooms/types.d.ts +3 -0
- package/dist/endpoints/NotificationSubscriptions/index.cjs +2 -0
- package/dist/endpoints/PricingTables/index.cjs +2 -0
- package/dist/endpoints/PricingTables/types.cjs +13 -17
- package/dist/endpoints/PricingTables/types.js +12 -12
- package/dist/endpoints/SenderAddresses/index.cjs +2 -0
- package/dist/endpoints/Snippets/index.cjs +2 -0
- package/dist/endpoints/Stories/Client.cjs +23 -4
- package/dist/endpoints/Stories/Client.js +22 -7
- package/dist/endpoints/Stories/index.cjs +3 -0
- package/dist/endpoints/Stories/scopes.cjs +2 -3
- package/dist/endpoints/Stories/types.cjs +14 -4
- package/dist/endpoints/Stories/types.js +13 -3
- package/dist/endpoints/Subscriptions/index.cjs +2 -0
- package/dist/endpoints/Subscriptions/types.cjs +3 -4
- package/dist/endpoints/Subscriptions/types.js +3 -3
- package/dist/endpoints/index.cjs +3 -3
- package/dist/http/constants.cjs +3 -6
- package/dist/http/index.cjs +8 -8
- package/dist/http/types.cjs +6 -8
- package/dist/http/types.js +6 -6
- package/dist/index.cjs +7 -4
- package/dist/routing.cjs +2 -3
- package/dist/types/BillingCycle.cjs +3 -4
- package/dist/types/BillingCycle.js +3 -3
- package/dist/types/Campaign.cjs +19 -20
- package/dist/types/Campaign.js +18 -18
- package/dist/types/Category.cjs +1 -2
- package/dist/types/Contact.cjs +19 -20
- package/dist/types/Contact.js +18 -18
- package/dist/types/ContactDuplicateSuggestion.cjs +5 -5
- package/dist/types/ContactDuplicateSuggestion.js +3 -4
- package/dist/types/ContactsExport.cjs +4 -5
- package/dist/types/ContactsExport.js +3 -3
- package/dist/types/ContactsScope.cjs +4 -5
- package/dist/types/ContactsScope.js +3 -3
- package/dist/types/CoverageEntry.cjs +7 -8
- package/dist/types/CoverageEntry.js +6 -6
- package/dist/types/Culture.cjs +10 -5
- package/dist/types/Culture.js +9 -3
- package/dist/types/Currency.cjs +3 -4
- package/dist/types/Currency.js +3 -3
- package/dist/types/EmailRecipient.cjs +4 -5
- package/dist/types/EmailRecipient.js +3 -3
- package/dist/types/JobState.cjs +3 -4
- package/dist/types/JobState.js +3 -3
- package/dist/types/License.cjs +10 -11
- package/dist/types/License.js +9 -9
- package/dist/types/Newsroom.cjs +20 -11
- package/dist/types/Newsroom.d.ts +8 -1
- package/dist/types/Newsroom.js +19 -9
- package/dist/types/NewsroomDomain.cjs +7 -8
- package/dist/types/NewsroomDomain.js +6 -6
- package/dist/types/NewsroomGallery.cjs +7 -8
- package/dist/types/NewsroomGallery.js +6 -6
- package/dist/types/NewsroomTheme.cjs +8 -11
- package/dist/types/NewsroomTheme.js +7 -8
- package/dist/types/NewsroomWebhook.cjs +4 -5
- package/dist/types/NewsroomWebhook.js +3 -3
- package/dist/types/NotificationSubscription.cjs +4 -5
- package/dist/types/NotificationSubscription.js +3 -3
- package/dist/types/Permissions.cjs +3 -4
- package/dist/types/Permissions.js +3 -3
- package/dist/types/Plan.cjs +7 -8
- package/dist/types/Plan.js +8 -8
- package/dist/types/PrivacyRequest.cjs +7 -8
- package/dist/types/PrivacyRequest.js +6 -6
- package/dist/types/SenderAddress.cjs +4 -5
- package/dist/types/SenderAddress.js +3 -3
- package/dist/types/SenderDomain.cjs +4 -5
- package/dist/types/SenderDomain.js +3 -3
- package/dist/types/SortOrder.cjs +4 -5
- package/dist/types/SortOrder.js +3 -3
- package/dist/types/Story.cjs +29 -18
- package/dist/types/Story.js +28 -16
- package/dist/types/User.cjs +7 -8
- package/dist/types/User.js +6 -6
- package/dist/types/common/Notification.cjs +4 -5
- package/dist/types/common/Notification.js +3 -3
- package/dist/types/common/OEmbedInfo.cjs +4 -5
- 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 +1 -2
- package/dist/types/common/Query.js +0 -1
- package/dist/types/common/index.cjs +6 -0
- package/dist/types/index.cjs +37 -0
- package/package.json +7 -7
package/dist/types/Contact.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
export let Contact;
|
|
2
2
|
(function (_Contact) {
|
|
3
|
-
let Type
|
|
4
|
-
(function (Type) {
|
|
3
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
5
4
|
Type["PERSON"] = "person";
|
|
6
5
|
Type["ORGANISATION"] = "organisation";
|
|
7
|
-
|
|
6
|
+
return Type;
|
|
7
|
+
}({});
|
|
8
8
|
_Contact.Type = Type;
|
|
9
|
-
let Gender
|
|
10
|
-
(function (Gender) {
|
|
9
|
+
let Gender = /*#__PURE__*/function (Gender) {
|
|
11
10
|
Gender["MALE"] = "male";
|
|
12
11
|
Gender["FEMALE"] = "female";
|
|
13
12
|
Gender["UNSPECIFIED"] = "unspecified";
|
|
14
|
-
|
|
13
|
+
return Gender;
|
|
14
|
+
}({});
|
|
15
15
|
_Contact.Gender = Gender;
|
|
16
|
-
let Periodicity
|
|
17
|
-
(function (Periodicity) {
|
|
16
|
+
let Periodicity = /*#__PURE__*/function (Periodicity) {
|
|
18
17
|
Periodicity["DAILY"] = "daily";
|
|
19
18
|
Periodicity["WEEKDAYS"] = "weekdays";
|
|
20
19
|
Periodicity["WEEKLY"] = "weekly";
|
|
@@ -25,10 +24,10 @@ export let Contact;
|
|
|
25
24
|
Periodicity["ANNUALLY"] = "annually";
|
|
26
25
|
Periodicity["BI_ANUALLY"] = "bi-annually";
|
|
27
26
|
Periodicity["SEMI_ANNUALLY"] = "semi-annually";
|
|
28
|
-
|
|
27
|
+
return Periodicity;
|
|
28
|
+
}({});
|
|
29
29
|
_Contact.Periodicity = Periodicity;
|
|
30
|
-
let MediumType
|
|
31
|
-
(function (MediumType) {
|
|
30
|
+
let MediumType = /*#__PURE__*/function (MediumType) {
|
|
32
31
|
MediumType["WIRE"] = "wire";
|
|
33
32
|
MediumType["PRINT"] = "print";
|
|
34
33
|
MediumType["RADIO"] = "radio";
|
|
@@ -46,10 +45,10 @@ export let Contact;
|
|
|
46
45
|
MediumType["PODCAST"] = "podcast";
|
|
47
46
|
MediumType["NEWSLETTER"] = "newsletter";
|
|
48
47
|
MediumType["NEWS_SITE"] = "news website";
|
|
49
|
-
|
|
48
|
+
return MediumType;
|
|
49
|
+
}({});
|
|
50
50
|
_Contact.MediumType = MediumType;
|
|
51
|
-
let SocialNetwork
|
|
52
|
-
(function (SocialNetwork) {
|
|
51
|
+
let SocialNetwork = /*#__PURE__*/function (SocialNetwork) {
|
|
53
52
|
SocialNetwork["DISCORD"] = "discord";
|
|
54
53
|
SocialNetwork["FACEBOOK"] = "facebook";
|
|
55
54
|
SocialNetwork["INSTAGRAM"] = "instagram";
|
|
@@ -61,15 +60,16 @@ export let Contact;
|
|
|
61
60
|
SocialNetwork["TWITCH"] = "twitch";
|
|
62
61
|
SocialNetwork["TWITTER"] = "twitter";
|
|
63
62
|
SocialNetwork["YOUTUBE"] = "youtube";
|
|
64
|
-
|
|
63
|
+
return SocialNetwork;
|
|
64
|
+
}({});
|
|
65
65
|
_Contact.SocialNetwork = SocialNetwork;
|
|
66
66
|
let PhoneNumber;
|
|
67
67
|
(function (_PhoneNumber) {
|
|
68
|
-
let Type
|
|
69
|
-
(function (Type) {
|
|
68
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
70
69
|
Type["TELEPHONE"] = "tel";
|
|
71
70
|
Type["CELLPHONE"] = "cell";
|
|
72
|
-
|
|
71
|
+
return Type;
|
|
72
|
+
}({});
|
|
73
73
|
_PhoneNumber.Type = Type;
|
|
74
74
|
})(PhoneNumber || (PhoneNumber = _Contact.PhoneNumber || (_Contact.PhoneNumber = {})));
|
|
75
75
|
function isPerson(arg) {
|
|
@@ -6,15 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ContactDuplicateSuggestion = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* Value in range 0.0 ... 1.0.
|
|
9
|
-
*/
|
|
10
|
-
exports.ContactDuplicateSuggestion =
|
|
9
|
+
*/
|
|
10
|
+
let ContactDuplicateSuggestion = exports.ContactDuplicateSuggestion = void 0;
|
|
11
11
|
(function (_ContactDuplicateSuggestion) {
|
|
12
|
-
let Status
|
|
13
|
-
(function (Status) {
|
|
12
|
+
let Status = /*#__PURE__*/function (Status) {
|
|
14
13
|
Status["UNSEEN"] = "unseen";
|
|
15
14
|
Status["ACCEPTED"] = "accepted";
|
|
16
15
|
Status["DECLINED"] = "declined";
|
|
17
|
-
|
|
16
|
+
return Status;
|
|
17
|
+
}({});
|
|
18
18
|
_ContactDuplicateSuggestion.Status = Status;
|
|
19
19
|
function isUnseen(arg) {
|
|
20
20
|
if (arg !== null && typeof arg === 'object') {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Value in range 0.0 ... 1.0.
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
4
|
export let ContactDuplicateSuggestion;
|
|
6
5
|
(function (_ContactDuplicateSuggestion) {
|
|
7
|
-
let Status
|
|
8
|
-
(function (Status) {
|
|
6
|
+
let Status = /*#__PURE__*/function (Status) {
|
|
9
7
|
Status["UNSEEN"] = "unseen";
|
|
10
8
|
Status["ACCEPTED"] = "accepted";
|
|
11
9
|
Status["DECLINED"] = "declined";
|
|
12
|
-
|
|
10
|
+
return Status;
|
|
11
|
+
}({});
|
|
13
12
|
_ContactDuplicateSuggestion.Status = Status;
|
|
14
13
|
function isUnseen(arg) {
|
|
15
14
|
if (arg !== null && typeof arg === 'object') {
|
|
@@ -4,14 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ContactsExport = void 0;
|
|
7
|
-
let ContactsExport;
|
|
8
|
-
exports.ContactsExport = ContactsExport;
|
|
7
|
+
let ContactsExport = exports.ContactsExport = void 0;
|
|
9
8
|
(function (_ContactsExport) {
|
|
10
|
-
let Status
|
|
11
|
-
(function (Status) {
|
|
9
|
+
let Status = /*#__PURE__*/function (Status) {
|
|
12
10
|
Status["NEW"] = "new";
|
|
13
11
|
Status["DONE"] = "done";
|
|
14
12
|
Status["FAILED"] = "failed";
|
|
15
|
-
|
|
13
|
+
return Status;
|
|
14
|
+
}({});
|
|
16
15
|
_ContactsExport.Status = Status;
|
|
17
16
|
})(ContactsExport || (exports.ContactsExport = ContactsExport = {}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export let ContactsExport;
|
|
2
2
|
(function (_ContactsExport) {
|
|
3
|
-
let Status
|
|
4
|
-
(function (Status) {
|
|
3
|
+
let Status = /*#__PURE__*/function (Status) {
|
|
5
4
|
Status["NEW"] = "new";
|
|
6
5
|
Status["DONE"] = "done";
|
|
7
6
|
Status["FAILED"] = "failed";
|
|
8
|
-
|
|
7
|
+
return Status;
|
|
8
|
+
}({});
|
|
9
9
|
_ContactsExport.Status = Status;
|
|
10
10
|
})(ContactsExport || (ContactsExport = {}));
|
|
@@ -4,16 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ContactsScope = void 0;
|
|
7
|
-
let ContactsScope;
|
|
8
|
-
exports.ContactsScope = ContactsScope;
|
|
7
|
+
let ContactsScope = exports.ContactsScope = void 0;
|
|
9
8
|
(function (_ContactsScope) {
|
|
10
|
-
let Type
|
|
11
|
-
(function (Type) {
|
|
9
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
12
10
|
Type["ALL_CONTACTS"] = "scope:contacts";
|
|
13
11
|
Type["CONTACT_EMPLOYEES"] = "scope:contact_employees";
|
|
14
12
|
Type["CONTACT_ORGANISATIONS"] = "scope:contact_organisations";
|
|
15
13
|
Type["CAMPAIGN_RECIPIENTS"] = "scope:campaign_recipients";
|
|
16
14
|
Type["CAMPAIGN_REPORT"] = "scope:campaign_report";
|
|
17
|
-
|
|
15
|
+
return Type;
|
|
16
|
+
}({});
|
|
18
17
|
_ContactsScope.Type = Type;
|
|
19
18
|
})(ContactsScope || (exports.ContactsScope = ContactsScope = {}));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export let ContactsScope;
|
|
2
2
|
(function (_ContactsScope) {
|
|
3
|
-
let Type
|
|
4
|
-
(function (Type) {
|
|
3
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
5
4
|
Type["ALL_CONTACTS"] = "scope:contacts";
|
|
6
5
|
Type["CONTACT_EMPLOYEES"] = "scope:contact_employees";
|
|
7
6
|
Type["CONTACT_ORGANISATIONS"] = "scope:contact_organisations";
|
|
8
7
|
Type["CAMPAIGN_RECIPIENTS"] = "scope:campaign_recipients";
|
|
9
8
|
Type["CAMPAIGN_REPORT"] = "scope:campaign_report";
|
|
10
|
-
|
|
9
|
+
return Type;
|
|
10
|
+
}({});
|
|
11
11
|
_ContactsScope.Type = Type;
|
|
12
12
|
})(ContactsScope || (ContactsScope = {}));
|
|
@@ -4,20 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.CoverageEntry = void 0;
|
|
7
|
-
let CoverageEntry;
|
|
8
|
-
exports.CoverageEntry = CoverageEntry;
|
|
7
|
+
let CoverageEntry = exports.CoverageEntry = void 0;
|
|
9
8
|
(function (_CoverageEntry) {
|
|
10
|
-
let Type
|
|
11
|
-
(function (Type) {
|
|
9
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
12
10
|
Type["ONLINE"] = "online";
|
|
13
11
|
Type["SOCIAL"] = "social";
|
|
14
12
|
Type["PRINT"] = "print";
|
|
15
13
|
Type["RADIO"] = "radio";
|
|
16
14
|
Type["TELEVISION"] = "television";
|
|
17
|
-
|
|
15
|
+
return Type;
|
|
16
|
+
}({});
|
|
18
17
|
_CoverageEntry.Type = Type;
|
|
19
|
-
let Provider
|
|
20
|
-
(function (Provider) {
|
|
18
|
+
let Provider = /*#__PURE__*/function (Provider) {
|
|
21
19
|
Provider["AMMCO"] = "ammco";
|
|
22
20
|
Provider["AUXIPRESS"] = "auxipress";
|
|
23
21
|
Provider["BELGA"] = "belga";
|
|
@@ -27,6 +25,7 @@ exports.CoverageEntry = CoverageEntry;
|
|
|
27
25
|
Provider["MEDIAWEB"] = "mediaweb";
|
|
28
26
|
Provider["MELTWATER"] = "meltwater";
|
|
29
27
|
Provider["MANUAL"] = "manual";
|
|
30
|
-
|
|
28
|
+
return Provider;
|
|
29
|
+
}({});
|
|
31
30
|
_CoverageEntry.Provider = Provider;
|
|
32
31
|
})(CoverageEntry || (exports.CoverageEntry = CoverageEntry = {}));
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
export let CoverageEntry;
|
|
2
2
|
(function (_CoverageEntry) {
|
|
3
|
-
let Type
|
|
4
|
-
(function (Type) {
|
|
3
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
5
4
|
Type["ONLINE"] = "online";
|
|
6
5
|
Type["SOCIAL"] = "social";
|
|
7
6
|
Type["PRINT"] = "print";
|
|
8
7
|
Type["RADIO"] = "radio";
|
|
9
8
|
Type["TELEVISION"] = "television";
|
|
10
|
-
|
|
9
|
+
return Type;
|
|
10
|
+
}({});
|
|
11
11
|
_CoverageEntry.Type = Type;
|
|
12
|
-
let Provider
|
|
13
|
-
(function (Provider) {
|
|
12
|
+
let Provider = /*#__PURE__*/function (Provider) {
|
|
14
13
|
Provider["AMMCO"] = "ammco";
|
|
15
14
|
Provider["AUXIPRESS"] = "auxipress";
|
|
16
15
|
Provider["BELGA"] = "belga";
|
|
@@ -20,6 +19,7 @@ export let CoverageEntry;
|
|
|
20
19
|
Provider["MEDIAWEB"] = "mediaweb";
|
|
21
20
|
Provider["MELTWATER"] = "meltwater";
|
|
22
21
|
Provider["MANUAL"] = "manual";
|
|
23
|
-
|
|
22
|
+
return Provider;
|
|
23
|
+
}({});
|
|
24
24
|
_CoverageEntry.Provider = Provider;
|
|
25
25
|
})(CoverageEntry || (CoverageEntry = {}));
|
package/dist/types/Culture.cjs
CHANGED
|
@@ -4,15 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Culture = void 0;
|
|
7
|
-
let Culture;
|
|
8
|
-
exports.Culture = Culture;
|
|
7
|
+
let Culture = exports.Culture = void 0;
|
|
9
8
|
(function (_Culture) {
|
|
10
|
-
let TextDirection
|
|
11
|
-
(function (TextDirection) {
|
|
9
|
+
let TextDirection = /*#__PURE__*/function (TextDirection) {
|
|
12
10
|
TextDirection["LTR"] = "ltr";
|
|
13
11
|
TextDirection["RTL"] = "rtl";
|
|
14
|
-
|
|
12
|
+
return TextDirection;
|
|
13
|
+
}({});
|
|
15
14
|
_Culture.TextDirection = TextDirection;
|
|
15
|
+
/**
|
|
16
|
+
* Primary locale code used everywhere in the Prezly app.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Locale ISO code to be used in HTML attributes.
|
|
20
|
+
*/
|
|
16
21
|
function isoCode(code) {
|
|
17
22
|
return code.replace('_', '-');
|
|
18
23
|
}
|
package/dist/types/Culture.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
export let Culture;
|
|
2
2
|
(function (_Culture) {
|
|
3
|
-
let TextDirection
|
|
4
|
-
(function (TextDirection) {
|
|
3
|
+
let TextDirection = /*#__PURE__*/function (TextDirection) {
|
|
5
4
|
TextDirection["LTR"] = "ltr";
|
|
6
5
|
TextDirection["RTL"] = "rtl";
|
|
7
|
-
|
|
6
|
+
return TextDirection;
|
|
7
|
+
}({});
|
|
8
8
|
_Culture.TextDirection = TextDirection;
|
|
9
|
+
/**
|
|
10
|
+
* Primary locale code used everywhere in the Prezly app.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Locale ISO code to be used in HTML attributes.
|
|
14
|
+
*/
|
|
9
15
|
function isoCode(code) {
|
|
10
16
|
return code.replace('_', '-');
|
|
11
17
|
}
|
package/dist/types/Currency.cjs
CHANGED
|
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Currency = void 0;
|
|
7
|
-
let Currency
|
|
8
|
-
exports.Currency = Currency;
|
|
9
|
-
(function (Currency) {
|
|
7
|
+
let Currency = exports.Currency = /*#__PURE__*/function (Currency) {
|
|
10
8
|
Currency["EUR"] = "eur";
|
|
11
9
|
Currency["USD"] = "usd";
|
|
12
10
|
Currency["GBP"] = "gbp";
|
|
13
11
|
Currency["AUD"] = "aud";
|
|
14
|
-
|
|
12
|
+
return Currency;
|
|
13
|
+
}({});
|
package/dist/types/Currency.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export let Currency
|
|
2
|
-
(function (Currency) {
|
|
1
|
+
export let Currency = /*#__PURE__*/function (Currency) {
|
|
3
2
|
Currency["EUR"] = "eur";
|
|
4
3
|
Currency["USD"] = "usd";
|
|
5
4
|
Currency["GBP"] = "gbp";
|
|
6
5
|
Currency["AUD"] = "aud";
|
|
7
|
-
|
|
6
|
+
return Currency;
|
|
7
|
+
}({});
|
|
@@ -4,15 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.EmailRecipient = void 0;
|
|
7
|
-
let EmailRecipient;
|
|
8
|
-
exports.EmailRecipient = EmailRecipient;
|
|
7
|
+
let EmailRecipient = exports.EmailRecipient = void 0;
|
|
9
8
|
(function (_EmailRecipient) {
|
|
10
|
-
let EmailAddressStatus
|
|
11
|
-
(function (EmailAddressStatus) {
|
|
9
|
+
let EmailAddressStatus = /*#__PURE__*/function (EmailAddressStatus) {
|
|
12
10
|
EmailAddressStatus["OK"] = "ok";
|
|
13
11
|
EmailAddressStatus["BOUNCED"] = "bounced";
|
|
14
12
|
EmailAddressStatus["UNSUBSCRIBED"] = "unsubscribed";
|
|
15
13
|
EmailAddressStatus["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
|
|
16
|
-
|
|
14
|
+
return EmailAddressStatus;
|
|
15
|
+
}({});
|
|
17
16
|
_EmailRecipient.EmailAddressStatus = EmailAddressStatus;
|
|
18
17
|
})(EmailRecipient || (exports.EmailRecipient = EmailRecipient = {}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export let EmailRecipient;
|
|
2
2
|
(function (_EmailRecipient) {
|
|
3
|
-
let EmailAddressStatus
|
|
4
|
-
(function (EmailAddressStatus) {
|
|
3
|
+
let EmailAddressStatus = /*#__PURE__*/function (EmailAddressStatus) {
|
|
5
4
|
EmailAddressStatus["OK"] = "ok";
|
|
6
5
|
EmailAddressStatus["BOUNCED"] = "bounced";
|
|
7
6
|
EmailAddressStatus["UNSUBSCRIBED"] = "unsubscribed";
|
|
8
7
|
EmailAddressStatus["UNSUBSCRIBED_FROM_ALL_COMMUNICATIONS"] = "unsubscribed_from_all_communications";
|
|
9
|
-
|
|
8
|
+
return EmailAddressStatus;
|
|
9
|
+
}({});
|
|
10
10
|
_EmailRecipient.EmailAddressStatus = EmailAddressStatus;
|
|
11
11
|
})(EmailRecipient || (EmailRecipient = {}));
|
package/dist/types/JobState.cjs
CHANGED
|
@@ -4,10 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.JobStatus = void 0;
|
|
7
|
-
let JobStatus
|
|
8
|
-
exports.JobStatus = JobStatus;
|
|
9
|
-
(function (JobStatus) {
|
|
7
|
+
let JobStatus = exports.JobStatus = /*#__PURE__*/function (JobStatus) {
|
|
10
8
|
JobStatus["PENDING"] = "pending";
|
|
11
9
|
JobStatus["RESOLVED"] = "resolved";
|
|
12
10
|
JobStatus["REJECTED"] = "rejected";
|
|
13
|
-
|
|
11
|
+
return JobStatus;
|
|
12
|
+
}({});
|
package/dist/types/JobState.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export let JobStatus
|
|
2
|
-
(function (JobStatus) {
|
|
1
|
+
export let JobStatus = /*#__PURE__*/function (JobStatus) {
|
|
3
2
|
JobStatus["PENDING"] = "pending";
|
|
4
3
|
JobStatus["RESOLVED"] = "resolved";
|
|
5
4
|
JobStatus["REJECTED"] = "rejected";
|
|
6
|
-
|
|
5
|
+
return JobStatus;
|
|
6
|
+
}({});
|
package/dist/types/License.cjs
CHANGED
|
@@ -4,20 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.License = void 0;
|
|
7
|
-
let License;
|
|
8
|
-
exports.License = License;
|
|
7
|
+
let License = exports.License = void 0;
|
|
9
8
|
(function (_License) {
|
|
10
|
-
let Type
|
|
11
|
-
(function (Type) {
|
|
9
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
12
10
|
Type["FAVOUR"] = "favour";
|
|
13
11
|
Type["FREE"] = "free";
|
|
14
12
|
Type["PAID_AUTO"] = "paid_auto";
|
|
15
13
|
Type["PAID_MANUAL"] = "paid_manual";
|
|
16
14
|
Type["TRIAL"] = "trial";
|
|
17
|
-
|
|
15
|
+
return Type;
|
|
16
|
+
}({});
|
|
18
17
|
_License.Type = Type;
|
|
19
|
-
let Status
|
|
20
|
-
(function (Status) {
|
|
18
|
+
let Status = /*#__PURE__*/function (Status) {
|
|
21
19
|
Status["TRIAL"] = "trial";
|
|
22
20
|
Status["ACTIVE"] = "active";
|
|
23
21
|
Status["PAST_DUE"] = "past_due";
|
|
@@ -26,13 +24,14 @@ exports.License = License;
|
|
|
26
24
|
Status["INCOMPLETE"] = "incomplete";
|
|
27
25
|
Status["CANCELED"] = "canceled";
|
|
28
26
|
Status["UNPAID"] = "unpaid";
|
|
29
|
-
|
|
27
|
+
return Status;
|
|
28
|
+
}({});
|
|
30
29
|
_License.Status = Status;
|
|
31
|
-
let CompanyType
|
|
32
|
-
(function (CompanyType) {
|
|
30
|
+
let CompanyType = /*#__PURE__*/function (CompanyType) {
|
|
33
31
|
CompanyType["BRAND"] = "brand";
|
|
34
32
|
CompanyType["AGENCY"] = "agency";
|
|
35
33
|
CompanyType["INTERNAL"] = "internal";
|
|
36
|
-
|
|
34
|
+
return CompanyType;
|
|
35
|
+
}({});
|
|
37
36
|
_License.CompanyType = CompanyType;
|
|
38
37
|
})(License || (exports.License = License = {}));
|
package/dist/types/License.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
export let License;
|
|
2
2
|
(function (_License) {
|
|
3
|
-
let Type
|
|
4
|
-
(function (Type) {
|
|
3
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
5
4
|
Type["FAVOUR"] = "favour";
|
|
6
5
|
Type["FREE"] = "free";
|
|
7
6
|
Type["PAID_AUTO"] = "paid_auto";
|
|
8
7
|
Type["PAID_MANUAL"] = "paid_manual";
|
|
9
8
|
Type["TRIAL"] = "trial";
|
|
10
|
-
|
|
9
|
+
return Type;
|
|
10
|
+
}({});
|
|
11
11
|
_License.Type = Type;
|
|
12
|
-
let Status
|
|
13
|
-
(function (Status) {
|
|
12
|
+
let Status = /*#__PURE__*/function (Status) {
|
|
14
13
|
Status["TRIAL"] = "trial";
|
|
15
14
|
Status["ACTIVE"] = "active";
|
|
16
15
|
Status["PAST_DUE"] = "past_due";
|
|
@@ -19,13 +18,14 @@ export let License;
|
|
|
19
18
|
Status["INCOMPLETE"] = "incomplete";
|
|
20
19
|
Status["CANCELED"] = "canceled";
|
|
21
20
|
Status["UNPAID"] = "unpaid";
|
|
22
|
-
|
|
21
|
+
return Status;
|
|
22
|
+
}({});
|
|
23
23
|
_License.Status = Status;
|
|
24
|
-
let CompanyType
|
|
25
|
-
(function (CompanyType) {
|
|
24
|
+
let CompanyType = /*#__PURE__*/function (CompanyType) {
|
|
26
25
|
CompanyType["BRAND"] = "brand";
|
|
27
26
|
CompanyType["AGENCY"] = "agency";
|
|
28
27
|
CompanyType["INTERNAL"] = "internal";
|
|
29
|
-
|
|
28
|
+
return CompanyType;
|
|
29
|
+
}({});
|
|
30
30
|
_License.CompanyType = CompanyType;
|
|
31
31
|
})(License || (License = {}));
|
package/dist/types/Newsroom.cjs
CHANGED
|
@@ -4,29 +4,38 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Newsroom = void 0;
|
|
7
|
-
let Newsroom;
|
|
8
|
-
exports.Newsroom = Newsroom;
|
|
7
|
+
let Newsroom = exports.Newsroom = void 0;
|
|
9
8
|
(function (_Newsroom) {
|
|
10
|
-
let Status
|
|
11
|
-
(function (Status) {
|
|
9
|
+
let Status = /*#__PURE__*/function (Status) {
|
|
12
10
|
Status["ACTIVE"] = "active";
|
|
13
11
|
Status["INACTIVE"] = "inactive";
|
|
14
12
|
Status["ARCHIVED"] = "archived";
|
|
15
|
-
|
|
13
|
+
return Status;
|
|
14
|
+
}({});
|
|
16
15
|
_Newsroom.Status = Status;
|
|
17
|
-
let EmailBrandingMode
|
|
18
|
-
(function (EmailBrandingMode) {
|
|
16
|
+
let EmailBrandingMode = /*#__PURE__*/function (EmailBrandingMode) {
|
|
19
17
|
EmailBrandingMode["DEFAULT"] = "default";
|
|
20
18
|
EmailBrandingMode["CUSTOM"] = "custom";
|
|
21
|
-
|
|
19
|
+
return EmailBrandingMode;
|
|
20
|
+
}({});
|
|
22
21
|
_Newsroom.EmailBrandingMode = EmailBrandingMode;
|
|
23
|
-
let TrackingPolicy
|
|
24
|
-
(function (TrackingPolicy) {
|
|
22
|
+
let TrackingPolicy = /*#__PURE__*/function (TrackingPolicy) {
|
|
25
23
|
TrackingPolicy["DEFAULT"] = "default";
|
|
26
24
|
TrackingPolicy["DISABLED"] = "disabled";
|
|
27
25
|
TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
|
|
28
|
-
|
|
26
|
+
return TrackingPolicy;
|
|
27
|
+
}({});
|
|
29
28
|
_Newsroom.TrackingPolicy = TrackingPolicy;
|
|
29
|
+
let EmailLogoAlignment = /*#__PURE__*/function (EmailLogoAlignment) {
|
|
30
|
+
EmailLogoAlignment["LEFT"] = "left";
|
|
31
|
+
EmailLogoAlignment["CENTER"] = "center";
|
|
32
|
+
EmailLogoAlignment["RIGHT"] = "right";
|
|
33
|
+
return EmailLogoAlignment;
|
|
34
|
+
}({});
|
|
35
|
+
_Newsroom.EmailLogoAlignment = EmailLogoAlignment;
|
|
36
|
+
/*
|
|
37
|
+
* Status checks
|
|
38
|
+
*/
|
|
30
39
|
function isActive(arg) {
|
|
31
40
|
if (typeof arg === 'object' && arg !== null) {
|
|
32
41
|
return isActive(arg.status);
|
package/dist/types/Newsroom.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ export interface Newsroom extends NewsroomRef {
|
|
|
79
79
|
newsroom_logo: UploadedImage | null;
|
|
80
80
|
icon: UploadedImage | null;
|
|
81
81
|
email_logo: UploadedImage | null;
|
|
82
|
+
email_logo_alignment: Newsroom.EmailLogoAlignment;
|
|
82
83
|
email_branding_mode: Newsroom.EmailBrandingMode;
|
|
83
84
|
email_branding: Newsroom.EmailBranding;
|
|
84
85
|
is_privacy_portal_enabled: boolean;
|
|
@@ -120,7 +121,8 @@ export declare namespace Newsroom {
|
|
|
120
121
|
}
|
|
121
122
|
interface EmailBranding {
|
|
122
123
|
background_color: string;
|
|
123
|
-
|
|
124
|
+
header_background_color: string;
|
|
125
|
+
header_link_color: string;
|
|
124
126
|
title_color: string;
|
|
125
127
|
text_color: string;
|
|
126
128
|
link_color: string;
|
|
@@ -136,6 +138,11 @@ export declare namespace Newsroom {
|
|
|
136
138
|
DISABLED = "disabled",
|
|
137
139
|
CONSENT_TO_IDENTIFY = "consent-to-identify"
|
|
138
140
|
}
|
|
141
|
+
enum EmailLogoAlignment {
|
|
142
|
+
LEFT = "left",
|
|
143
|
+
CENTER = "center",
|
|
144
|
+
RIGHT = "right"
|
|
145
|
+
}
|
|
139
146
|
function isActive(newsroom: Newsroom['status']): boolean;
|
|
140
147
|
function isActive(newsroom: Pick<Newsroom, 'status'>): boolean;
|
|
141
148
|
function isInactive(newsroom: Newsroom['status']): boolean;
|
package/dist/types/Newsroom.js
CHANGED
|
@@ -1,25 +1,35 @@
|
|
|
1
1
|
export let Newsroom;
|
|
2
2
|
(function (_Newsroom) {
|
|
3
|
-
let Status
|
|
4
|
-
(function (Status) {
|
|
3
|
+
let Status = /*#__PURE__*/function (Status) {
|
|
5
4
|
Status["ACTIVE"] = "active";
|
|
6
5
|
Status["INACTIVE"] = "inactive";
|
|
7
6
|
Status["ARCHIVED"] = "archived";
|
|
8
|
-
|
|
7
|
+
return Status;
|
|
8
|
+
}({});
|
|
9
9
|
_Newsroom.Status = Status;
|
|
10
|
-
let EmailBrandingMode
|
|
11
|
-
(function (EmailBrandingMode) {
|
|
10
|
+
let EmailBrandingMode = /*#__PURE__*/function (EmailBrandingMode) {
|
|
12
11
|
EmailBrandingMode["DEFAULT"] = "default";
|
|
13
12
|
EmailBrandingMode["CUSTOM"] = "custom";
|
|
14
|
-
|
|
13
|
+
return EmailBrandingMode;
|
|
14
|
+
}({});
|
|
15
15
|
_Newsroom.EmailBrandingMode = EmailBrandingMode;
|
|
16
|
-
let TrackingPolicy
|
|
17
|
-
(function (TrackingPolicy) {
|
|
16
|
+
let TrackingPolicy = /*#__PURE__*/function (TrackingPolicy) {
|
|
18
17
|
TrackingPolicy["DEFAULT"] = "default";
|
|
19
18
|
TrackingPolicy["DISABLED"] = "disabled";
|
|
20
19
|
TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
|
|
21
|
-
|
|
20
|
+
return TrackingPolicy;
|
|
21
|
+
}({});
|
|
22
22
|
_Newsroom.TrackingPolicy = TrackingPolicy;
|
|
23
|
+
let EmailLogoAlignment = /*#__PURE__*/function (EmailLogoAlignment) {
|
|
24
|
+
EmailLogoAlignment["LEFT"] = "left";
|
|
25
|
+
EmailLogoAlignment["CENTER"] = "center";
|
|
26
|
+
EmailLogoAlignment["RIGHT"] = "right";
|
|
27
|
+
return EmailLogoAlignment;
|
|
28
|
+
}({});
|
|
29
|
+
_Newsroom.EmailLogoAlignment = EmailLogoAlignment;
|
|
30
|
+
/*
|
|
31
|
+
* Status checks
|
|
32
|
+
*/
|
|
23
33
|
function isActive(arg) {
|
|
24
34
|
if (typeof arg === 'object' && arg !== null) {
|
|
25
35
|
return isActive(arg.status);
|
|
@@ -4,21 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.NewsroomDomain = void 0;
|
|
7
|
-
let NewsroomDomain;
|
|
8
|
-
exports.NewsroomDomain = NewsroomDomain;
|
|
7
|
+
let NewsroomDomain = exports.NewsroomDomain = void 0;
|
|
9
8
|
(function (_NewsroomDomain) {
|
|
10
|
-
let Type
|
|
11
|
-
(function (Type) {
|
|
9
|
+
let Type = /*#__PURE__*/function (Type) {
|
|
12
10
|
Type["PREZLY"] = "prezly";
|
|
13
11
|
Type["CUSTOM"] = "custom";
|
|
14
12
|
Type["REVERSE_PROXY"] = "reverse_proxy";
|
|
15
|
-
|
|
13
|
+
return Type;
|
|
14
|
+
}({});
|
|
16
15
|
_NewsroomDomain.Type = Type;
|
|
17
|
-
let Status
|
|
18
|
-
(function (Status) {
|
|
16
|
+
let Status = /*#__PURE__*/function (Status) {
|
|
19
17
|
Status["ACTIVE"] = "active";
|
|
20
18
|
Status["INACTIVE"] = "inactive";
|
|
21
19
|
Status["REDIRECT"] = "redirect";
|
|
22
|
-
|
|
20
|
+
return Status;
|
|
21
|
+
}({});
|
|
23
22
|
_NewsroomDomain.Status = Status;
|
|
24
23
|
})(NewsroomDomain || (exports.NewsroomDomain = NewsroomDomain = {}));
|