@prezly/sdk 19.8.1 → 19.9.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/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/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/http/types.cjs +6 -6
- package/dist/http/types.js +6 -6
- 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 +5 -2
- package/dist/types/Category.d.ts +15 -7
- package/dist/types/Category.js +4 -1
- package/dist/types/Contact.cjs +18 -18
- package/dist/types/Contact.js +18 -18
- package/dist/types/ContactDuplicateSuggestion.cjs +3 -3
- package/dist/types/ContactDuplicateSuggestion.js +4 -3
- 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/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/package.json +1 -1
package/dist/api/constants.cjs
CHANGED
|
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DEFAULT_USER_AGENT = void 0;
|
|
7
|
-
const VERSION = "19.
|
|
7
|
+
const VERSION = "19.8.1";
|
|
8
8
|
const URL = 'https://github.com/prezly/javascript-sdk';
|
|
9
9
|
const DEFAULT_USER_AGENT = exports.DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
|
package/dist/api/constants.js
CHANGED
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SignupPlan = exports.SignupCurrency = void 0;
|
|
7
|
-
let SignupPlan = exports.SignupPlan =
|
|
7
|
+
let SignupPlan = exports.SignupPlan = void 0;
|
|
8
|
+
(function (SignupPlan) {
|
|
8
9
|
SignupPlan["STARTER"] = "starter";
|
|
9
10
|
SignupPlan["CORE"] = "core";
|
|
10
11
|
SignupPlan["PREMIUM"] = "premium";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
})(SignupPlan || (exports.SignupPlan = SignupPlan = {}));
|
|
13
|
+
let SignupCurrency = exports.SignupCurrency = void 0;
|
|
14
|
+
(function (SignupCurrency) {
|
|
14
15
|
SignupCurrency["EUR"] = "eur";
|
|
15
16
|
SignupCurrency["USD"] = "usd";
|
|
16
|
-
|
|
17
|
-
}({});
|
|
17
|
+
})(SignupCurrency || (exports.SignupCurrency = SignupCurrency = {}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export let SignupPlan
|
|
1
|
+
export let SignupPlan;
|
|
2
|
+
(function (SignupPlan) {
|
|
2
3
|
SignupPlan["STARTER"] = "starter";
|
|
3
4
|
SignupPlan["CORE"] = "core";
|
|
4
5
|
SignupPlan["PREMIUM"] = "premium";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
})(SignupPlan || (SignupPlan = {}));
|
|
7
|
+
export let SignupCurrency;
|
|
8
|
+
(function (SignupCurrency) {
|
|
8
9
|
SignupCurrency["EUR"] = "eur";
|
|
9
10
|
SignupCurrency["USD"] = "usd";
|
|
10
|
-
|
|
11
|
-
}({});
|
|
11
|
+
})(SignupCurrency || (SignupCurrency = {}));
|
|
@@ -4,12 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TableId = exports.OptionId = exports.LimitId = exports.AddOnId = void 0;
|
|
7
|
-
let TableId = exports.TableId =
|
|
7
|
+
let TableId = exports.TableId = void 0;
|
|
8
|
+
(function (TableId) {
|
|
8
9
|
TableId["STANDARD"] = "standard";
|
|
9
10
|
TableId["AGENCY"] = "agency";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
})(TableId || (exports.TableId = TableId = {}));
|
|
12
|
+
let OptionId = exports.OptionId = void 0;
|
|
13
|
+
(function (OptionId) {
|
|
13
14
|
OptionId["STARTER"] = "starter";
|
|
14
15
|
OptionId["CORE"] = "core";
|
|
15
16
|
OptionId["PREMIUM"] = "premium";
|
|
@@ -18,18 +19,17 @@ let OptionId = exports.OptionId = /*#__PURE__*/function (OptionId) {
|
|
|
18
19
|
OptionId["AGENCY_MEDIUM"] = "agency_medium";
|
|
19
20
|
OptionId["AGENCY_LARGE"] = "agency_large";
|
|
20
21
|
OptionId["AGENCY_HUGE"] = "agency_huge";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
})(OptionId || (exports.OptionId = OptionId = {}));
|
|
23
|
+
let LimitId = exports.LimitId = void 0;
|
|
24
|
+
(function (LimitId) {
|
|
24
25
|
LimitId["STORIES"] = "stories";
|
|
25
26
|
LimitId["USERS"] = "users";
|
|
26
27
|
LimitId["SITES"] = "sites";
|
|
27
28
|
LimitId["CONTACTS"] = "contacts";
|
|
28
29
|
LimitId["EMAIL_SENDS"] = "email_sends";
|
|
29
30
|
LimitId["CUSTOM_SENDER_ADDRESSES"] = "custom_sender_addresses";
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
})(LimitId || (exports.LimitId = LimitId = {}));
|
|
32
|
+
let AddOnId = exports.AddOnId = void 0;
|
|
33
|
+
(function (AddOnId) {
|
|
33
34
|
AddOnId["SITE"] = "site";
|
|
34
|
-
|
|
35
|
-
}({});
|
|
35
|
+
})(AddOnId || (exports.AddOnId = AddOnId = {}));
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export let TableId
|
|
1
|
+
export let TableId;
|
|
2
|
+
(function (TableId) {
|
|
2
3
|
TableId["STANDARD"] = "standard";
|
|
3
4
|
TableId["AGENCY"] = "agency";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
})(TableId || (TableId = {}));
|
|
6
|
+
export let OptionId;
|
|
7
|
+
(function (OptionId) {
|
|
7
8
|
OptionId["STARTER"] = "starter";
|
|
8
9
|
OptionId["CORE"] = "core";
|
|
9
10
|
OptionId["PREMIUM"] = "premium";
|
|
@@ -12,18 +13,17 @@ export let OptionId = /*#__PURE__*/function (OptionId) {
|
|
|
12
13
|
OptionId["AGENCY_MEDIUM"] = "agency_medium";
|
|
13
14
|
OptionId["AGENCY_LARGE"] = "agency_large";
|
|
14
15
|
OptionId["AGENCY_HUGE"] = "agency_huge";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
})(OptionId || (OptionId = {}));
|
|
17
|
+
export let LimitId;
|
|
18
|
+
(function (LimitId) {
|
|
18
19
|
LimitId["STORIES"] = "stories";
|
|
19
20
|
LimitId["USERS"] = "users";
|
|
20
21
|
LimitId["SITES"] = "sites";
|
|
21
22
|
LimitId["CONTACTS"] = "contacts";
|
|
22
23
|
LimitId["EMAIL_SENDS"] = "email_sends";
|
|
23
24
|
LimitId["CUSTOM_SENDER_ADDRESSES"] = "custom_sender_addresses";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
})(LimitId || (LimitId = {}));
|
|
26
|
+
export let AddOnId;
|
|
27
|
+
(function (AddOnId) {
|
|
27
28
|
AddOnId["SITE"] = "site";
|
|
28
|
-
|
|
29
|
-
}({});
|
|
29
|
+
})(AddOnId || (AddOnId = {}));
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UnsubscribeReason = void 0;
|
|
7
|
-
let UnsubscribeReason = exports.UnsubscribeReason =
|
|
7
|
+
let UnsubscribeReason = exports.UnsubscribeReason = void 0;
|
|
8
|
+
(function (UnsubscribeReason) {
|
|
8
9
|
UnsubscribeReason["UNKNOWN"] = "unknown";
|
|
9
10
|
UnsubscribeReason["UNWANTED"] = "unwanted";
|
|
10
11
|
UnsubscribeReason["SPAM"] = "spam";
|
|
11
12
|
UnsubscribeReason["NEVER_SIGNED_UP"] = "never_signed_up";
|
|
12
13
|
UnsubscribeReason["OTHER"] = "other";
|
|
13
|
-
|
|
14
|
-
}({});
|
|
14
|
+
})(UnsubscribeReason || (exports.UnsubscribeReason = UnsubscribeReason = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export let UnsubscribeReason
|
|
1
|
+
export let UnsubscribeReason;
|
|
2
|
+
(function (UnsubscribeReason) {
|
|
2
3
|
UnsubscribeReason["UNKNOWN"] = "unknown";
|
|
3
4
|
UnsubscribeReason["UNWANTED"] = "unwanted";
|
|
4
5
|
UnsubscribeReason["SPAM"] = "spam";
|
|
5
6
|
UnsubscribeReason["NEVER_SIGNED_UP"] = "never_signed_up";
|
|
6
7
|
UnsubscribeReason["OTHER"] = "other";
|
|
7
|
-
|
|
8
|
-
}({});
|
|
8
|
+
})(UnsubscribeReason || (UnsubscribeReason = {}));
|
package/dist/http/types.cjs
CHANGED
|
@@ -4,20 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Method = exports.HttpCodes = void 0;
|
|
7
|
-
let HttpCodes = exports.HttpCodes =
|
|
7
|
+
let HttpCodes = exports.HttpCodes = void 0;
|
|
8
|
+
(function (HttpCodes) {
|
|
8
9
|
HttpCodes[HttpCodes["ACCEPTED"] = 202] = "ACCEPTED";
|
|
9
10
|
HttpCodes[HttpCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
10
11
|
HttpCodes[HttpCodes["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
11
12
|
HttpCodes[HttpCodes["CONFLICT"] = 409] = "CONFLICT";
|
|
12
13
|
HttpCodes[HttpCodes["GONE"] = 410] = "GONE";
|
|
13
14
|
HttpCodes[HttpCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
})(HttpCodes || (exports.HttpCodes = HttpCodes = {}));
|
|
16
|
+
let Method = exports.Method = void 0;
|
|
17
|
+
(function (Method) {
|
|
17
18
|
Method["DELETE"] = "DELETE";
|
|
18
19
|
Method["GET"] = "GET";
|
|
19
20
|
Method["PATCH"] = "PATCH";
|
|
20
21
|
Method["POST"] = "POST";
|
|
21
22
|
Method["PUT"] = "PUT";
|
|
22
|
-
|
|
23
|
-
}({});
|
|
23
|
+
})(Method || (exports.Method = Method = {}));
|
package/dist/http/types.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export let HttpCodes
|
|
1
|
+
export let HttpCodes;
|
|
2
|
+
(function (HttpCodes) {
|
|
2
3
|
HttpCodes[HttpCodes["ACCEPTED"] = 202] = "ACCEPTED";
|
|
3
4
|
HttpCodes[HttpCodes["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
4
5
|
HttpCodes[HttpCodes["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
5
6
|
HttpCodes[HttpCodes["CONFLICT"] = 409] = "CONFLICT";
|
|
6
7
|
HttpCodes[HttpCodes["GONE"] = 410] = "GONE";
|
|
7
8
|
HttpCodes[HttpCodes["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
})(HttpCodes || (HttpCodes = {}));
|
|
10
|
+
export let Method;
|
|
11
|
+
(function (Method) {
|
|
11
12
|
Method["DELETE"] = "DELETE";
|
|
12
13
|
Method["GET"] = "GET";
|
|
13
14
|
Method["PATCH"] = "PATCH";
|
|
14
15
|
Method["POST"] = "POST";
|
|
15
16
|
Method["PUT"] = "PUT";
|
|
16
|
-
|
|
17
|
-
}({});
|
|
17
|
+
})(Method || (Method = {}));
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.BillingCycle = void 0;
|
|
7
|
-
let BillingCycle = exports.BillingCycle =
|
|
7
|
+
let BillingCycle = exports.BillingCycle = void 0;
|
|
8
|
+
(function (BillingCycle) {
|
|
8
9
|
BillingCycle["YEAR"] = "year";
|
|
9
10
|
BillingCycle["MONTH"] = "month";
|
|
10
|
-
|
|
11
|
-
}({});
|
|
11
|
+
})(BillingCycle || (exports.BillingCycle = BillingCycle = {}));
|
package/dist/types/Campaign.cjs
CHANGED
|
@@ -8,47 +8,47 @@ var _SenderDomain = require("./SenderDomain.cjs");
|
|
|
8
8
|
let Campaign = exports.Campaign = void 0;
|
|
9
9
|
(function (_Campaign) {
|
|
10
10
|
const SenderDomainVerificationFlow = _Campaign.SenderDomainVerificationFlow = _SenderDomain.SenderDomain.VerificationFlowVersion;
|
|
11
|
-
let LifecycleStatus
|
|
11
|
+
let LifecycleStatus;
|
|
12
|
+
(function (LifecycleStatus) {
|
|
12
13
|
LifecycleStatus["DRAFT"] = "draft";
|
|
13
14
|
LifecycleStatus["SCHEDULED"] = "scheduled";
|
|
14
15
|
LifecycleStatus["PENDING"] = "pending";
|
|
15
16
|
LifecycleStatus["SENT"] = "sent";
|
|
16
|
-
|
|
17
|
-
}({});
|
|
17
|
+
})(LifecycleStatus || (LifecycleStatus = {}));
|
|
18
18
|
_Campaign.LifecycleStatus = LifecycleStatus;
|
|
19
|
-
let StoryAlignment
|
|
19
|
+
let StoryAlignment;
|
|
20
|
+
(function (StoryAlignment) {
|
|
20
21
|
StoryAlignment["CENTER"] = "center";
|
|
21
22
|
StoryAlignment["LEFT"] = "left";
|
|
22
23
|
StoryAlignment["RIGHT"] = "right";
|
|
23
|
-
|
|
24
|
-
}({});
|
|
24
|
+
})(StoryAlignment || (StoryAlignment = {}));
|
|
25
25
|
_Campaign.StoryAlignment = StoryAlignment;
|
|
26
|
-
let StoryAppearance
|
|
26
|
+
let StoryAppearance;
|
|
27
|
+
(function (StoryAppearance) {
|
|
27
28
|
StoryAppearance["INTRO"] = "intro";
|
|
28
29
|
StoryAppearance["FULL"] = "full";
|
|
29
|
-
|
|
30
|
-
}({});
|
|
30
|
+
})(StoryAppearance || (StoryAppearance = {}));
|
|
31
31
|
_Campaign.StoryAppearance = StoryAppearance;
|
|
32
|
-
let StoryHeaderFooter
|
|
32
|
+
let StoryHeaderFooter;
|
|
33
|
+
(function (StoryHeaderFooter) {
|
|
33
34
|
StoryHeaderFooter["NONE"] = "none";
|
|
34
35
|
StoryHeaderFooter["STANDARD"] = "standard";
|
|
35
36
|
StoryHeaderFooter["FULL"] = "full";
|
|
36
|
-
|
|
37
|
-
}({});
|
|
37
|
+
})(StoryHeaderFooter || (StoryHeaderFooter = {}));
|
|
38
38
|
_Campaign.StoryHeaderFooter = StoryHeaderFooter;
|
|
39
|
-
let SenderDomainVerificationStatus
|
|
39
|
+
let SenderDomainVerificationStatus;
|
|
40
|
+
(function (SenderDomainVerificationStatus) {
|
|
40
41
|
SenderDomainVerificationStatus["UNKNOWN"] = "unknown";
|
|
41
42
|
SenderDomainVerificationStatus["VALID"] = "valid";
|
|
42
43
|
SenderDomainVerificationStatus["INVALID"] = "invalid";
|
|
43
44
|
SenderDomainVerificationStatus["NOT_APPLICABLE"] = "not-applicable";
|
|
44
|
-
|
|
45
|
-
}({});
|
|
45
|
+
})(SenderDomainVerificationStatus || (SenderDomainVerificationStatus = {}));
|
|
46
46
|
_Campaign.SenderDomainVerificationStatus = SenderDomainVerificationStatus;
|
|
47
|
-
let ClickTrackingVersion
|
|
47
|
+
let ClickTrackingVersion;
|
|
48
|
+
(function (ClickTrackingVersion) {
|
|
48
49
|
ClickTrackingVersion[ClickTrackingVersion["DEPRECATED"] = 1] = "DEPRECATED";
|
|
49
50
|
ClickTrackingVersion[ClickTrackingVersion["ENHANCED"] = 2] = "ENHANCED";
|
|
50
|
-
|
|
51
|
-
}({});
|
|
51
|
+
})(ClickTrackingVersion || (ClickTrackingVersion = {}));
|
|
52
52
|
_Campaign.ClickTrackingVersion = ClickTrackingVersion;
|
|
53
53
|
function isDraft(arg) {
|
|
54
54
|
if (typeof arg === 'object') {
|
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
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.Category = void 0;
|
|
6
|
+
exports.CategoryRef = exports.Category = void 0;
|
|
7
|
+
let CategoryRef = exports.CategoryRef = void 0;
|
|
8
|
+
(function (_CategoryRef) {})(CategoryRef || (exports.CategoryRef = CategoryRef = {}));
|
|
7
9
|
let Category = exports.Category = void 0;
|
|
8
10
|
(function (_Category) {
|
|
9
11
|
function isTranslated(category, locale) {
|
|
@@ -26,7 +28,8 @@ let Category = exports.Category = void 0;
|
|
|
26
28
|
locale: translation.locale.code,
|
|
27
29
|
slug: translation.slug,
|
|
28
30
|
name: translation.name,
|
|
29
|
-
description: translation.description
|
|
31
|
+
description: translation.description,
|
|
32
|
+
public_stories_number: translation.public_stories_number
|
|
30
33
|
};
|
|
31
34
|
});
|
|
32
35
|
return [...result, ...translated];
|
package/dist/types/Category.d.ts
CHANGED
|
@@ -4,21 +4,28 @@ export interface CategoryRef {
|
|
|
4
4
|
display_name: string;
|
|
5
5
|
display_description: string | null;
|
|
6
6
|
i18n: {
|
|
7
|
-
[localeCode: Culture.Code]:
|
|
7
|
+
[localeCode: Culture.Code]: CategoryRef.Translation;
|
|
8
8
|
};
|
|
9
|
-
stories_number: number;
|
|
10
|
-
}
|
|
11
|
-
export interface Category extends CategoryRef {
|
|
12
|
-
stories_number: number;
|
|
13
|
-
public_stories_number: number;
|
|
14
9
|
}
|
|
15
|
-
export declare namespace
|
|
10
|
+
export declare namespace CategoryRef {
|
|
16
11
|
interface Translation {
|
|
17
12
|
locale: CultureRef;
|
|
18
13
|
slug: string | null;
|
|
19
14
|
name: string;
|
|
20
15
|
description: string | null;
|
|
21
16
|
}
|
|
17
|
+
}
|
|
18
|
+
export interface Category extends Omit<CategoryRef, 'i18n'> {
|
|
19
|
+
stories_number: number;
|
|
20
|
+
public_stories_number: number;
|
|
21
|
+
i18n: {
|
|
22
|
+
[localeCode: Culture.Code]: Category.Translation;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export declare namespace Category {
|
|
26
|
+
interface Translation extends CategoryRef.Translation {
|
|
27
|
+
public_stories_number: number;
|
|
28
|
+
}
|
|
22
29
|
function isTranslated<T extends Category, LocaleCode extends Culture['code']>(category: T, locale: LocaleIdentifier<LocaleCode>): category is WithNonEmptyTranslation<T, LocaleCode>;
|
|
23
30
|
function translation<T extends Category, LocaleCode extends Culture['code']>(category: T, locale: LocaleIdentifier<LocaleCode>): T extends WithNonEmptyTranslation<Category, LocaleCode> ? TranslatedCategory : TranslatedCategory | undefined;
|
|
24
31
|
function translations(category: Category, locale?: LocaleIdentifier): TranslatedCategory[];
|
|
@@ -30,6 +37,7 @@ export interface TranslatedCategory {
|
|
|
30
37
|
slug: NonNullable<Category.Translation['slug']>;
|
|
31
38
|
name: Category.Translation['name'];
|
|
32
39
|
description: Category.Translation['description'];
|
|
40
|
+
public_stories_number: Category.Translation['public_stories_number'];
|
|
33
41
|
}
|
|
34
42
|
type LocaleIdentifier<Locale extends Culture['code'] = Culture['code']> = Locale | {
|
|
35
43
|
code: Locale;
|
package/dist/types/Category.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export let CategoryRef;
|
|
2
|
+
(function (_CategoryRef) {})(CategoryRef || (CategoryRef = {}));
|
|
1
3
|
export let Category;
|
|
2
4
|
(function (_Category) {
|
|
3
5
|
function isTranslated(category, locale) {
|
|
@@ -20,7 +22,8 @@ export let Category;
|
|
|
20
22
|
locale: translation.locale.code,
|
|
21
23
|
slug: translation.slug,
|
|
22
24
|
name: translation.name,
|
|
23
|
-
description: translation.description
|
|
25
|
+
description: translation.description,
|
|
26
|
+
public_stories_number: translation.public_stories_number
|
|
24
27
|
};
|
|
25
28
|
});
|
|
26
29
|
return [...result, ...translated];
|
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.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') {
|