@prezly/sdk 21.4.0 → 21.5.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/Stories/types.d.ts +2 -11
- 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 +1 -0
- package/dist/types/Category.js +1 -0
- 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/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/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.d.ts +1 -1
- 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 +21 -13
- package/dist/types/Story.d.ts +8 -3
- package/dist/types/Story.js +21 -13
- 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
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.NotificationSubscription = void 0;
|
|
7
7
|
let NotificationSubscription = exports.NotificationSubscription = void 0;
|
|
8
8
|
(function (_NotificationSubscription) {
|
|
9
|
-
let Area
|
|
9
|
+
let Area;
|
|
10
|
+
(function (Area) {
|
|
10
11
|
Area["SITES"] = "Sites";
|
|
11
12
|
Area["CAMPAIGNS"] = "Campaigns";
|
|
12
13
|
Area["CONTACTS"] = "Contacts";
|
|
13
14
|
Area["BILLING_AND_LEGAL"] = "Billing & Legal";
|
|
14
15
|
Area["ORGANIZATION_AND_LEGAL"] = "Organization & Legal";
|
|
15
|
-
|
|
16
|
-
}({});
|
|
16
|
+
})(Area || (Area = {}));
|
|
17
17
|
_NotificationSubscription.Area = Area;
|
|
18
18
|
})(NotificationSubscription || (exports.NotificationSubscription = NotificationSubscription = {}));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export let NotificationSubscription;
|
|
2
2
|
(function (_NotificationSubscription) {
|
|
3
|
-
let Area
|
|
3
|
+
let Area;
|
|
4
|
+
(function (Area) {
|
|
4
5
|
Area["SITES"] = "Sites";
|
|
5
6
|
Area["CAMPAIGNS"] = "Campaigns";
|
|
6
7
|
Area["CONTACTS"] = "Contacts";
|
|
7
8
|
Area["BILLING_AND_LEGAL"] = "Billing & Legal";
|
|
8
9
|
Area["ORGANIZATION_AND_LEGAL"] = "Organization & Legal";
|
|
9
|
-
|
|
10
|
-
}({});
|
|
10
|
+
})(Area || (Area = {}));
|
|
11
11
|
_NotificationSubscription.Area = Area;
|
|
12
12
|
})(NotificationSubscription || (NotificationSubscription = {}));
|
|
@@ -4,7 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Permission = void 0;
|
|
7
|
-
let Permission = exports.Permission =
|
|
7
|
+
let Permission = exports.Permission = void 0;
|
|
8
|
+
(function (Permission) {
|
|
8
9
|
Permission["CREATE_NEWSROOM"] = "create_newsroom";
|
|
9
10
|
Permission["EXPORT_CONTACTS"] = "export_contacts";
|
|
10
11
|
Permission["MANAGE_BILLING"] = "manage_billing";
|
|
@@ -13,5 +14,4 @@ let Permission = exports.Permission = /*#__PURE__*/function (Permission) {
|
|
|
13
14
|
Permission["VIEW_CONTACTS"] = "view_contacts";
|
|
14
15
|
Permission["CREATE_SENDER_ADDRESS"] = "create_sender_address";
|
|
15
16
|
Permission["SEND_EMAILS"] = "send_emails";
|
|
16
|
-
|
|
17
|
-
}({});
|
|
17
|
+
})(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,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PlanLevel = exports.ChangeType = void 0;
|
|
7
|
-
let ChangeType = exports.ChangeType =
|
|
7
|
+
let ChangeType = exports.ChangeType = void 0;
|
|
8
|
+
/** @deprecated Will be dropped in future */
|
|
9
|
+
(function (ChangeType) {
|
|
8
10
|
ChangeType["ACTIVATION"] = "activation";
|
|
9
11
|
ChangeType["UPGRADE"] = "upgrade";
|
|
10
12
|
ChangeType["DOWNGRADE"] = "downgrade";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
let PlanLevel = exports.PlanLevel = /*#__PURE__*/function (PlanLevel) {
|
|
13
|
+
})(ChangeType || (exports.ChangeType = ChangeType = {}));
|
|
14
|
+
let PlanLevel = exports.PlanLevel = void 0;
|
|
15
|
+
(function (PlanLevel) {
|
|
15
16
|
PlanLevel["BASIC"] = "basic";
|
|
16
17
|
PlanLevel["CORE"] = "core";
|
|
17
18
|
PlanLevel["ENTERPRISE"] = "enterprise";
|
|
@@ -24,5 +25,4 @@ let PlanLevel = exports.PlanLevel = /*#__PURE__*/function (PlanLevel) {
|
|
|
24
25
|
PlanLevel["AGENCY_MEDIUM"] = "agency_medium";
|
|
25
26
|
PlanLevel["AGENCY_LARGE"] = "agency_large";
|
|
26
27
|
PlanLevel["AGENCY_HUGE"] = "agency_huge";
|
|
27
|
-
|
|
28
|
-
}({});
|
|
28
|
+
})(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 = {}));
|
|
@@ -6,18 +6,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.PrivacyRequest = void 0;
|
|
7
7
|
let PrivacyRequest = exports.PrivacyRequest = void 0;
|
|
8
8
|
(function (_PrivacyRequest) {
|
|
9
|
-
let Type
|
|
9
|
+
let Type;
|
|
10
|
+
(function (Type) {
|
|
10
11
|
Type["DELETE"] = "delete";
|
|
11
12
|
Type["EXPORT"] = "export";
|
|
12
13
|
Type["CORRECT"] = "correct";
|
|
13
14
|
Type["OTHER"] = "other";
|
|
14
|
-
|
|
15
|
-
}({});
|
|
15
|
+
})(Type || (Type = {}));
|
|
16
16
|
_PrivacyRequest.Type = Type;
|
|
17
|
-
let Status
|
|
17
|
+
let Status;
|
|
18
|
+
(function (Status) {
|
|
18
19
|
Status["UNCONFIRMED"] = "unconfirmed";
|
|
19
20
|
Status["CONFIRMED"] = "confirmed";
|
|
20
|
-
|
|
21
|
-
}({});
|
|
21
|
+
})(Status || (Status = {}));
|
|
22
22
|
_PrivacyRequest.Status = Status;
|
|
23
23
|
})(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 = {}));
|
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SenderAddress = void 0;
|
|
7
7
|
let SenderAddress = exports.SenderAddress = void 0;
|
|
8
8
|
(function (_SenderAddress) {
|
|
9
|
-
let Type
|
|
9
|
+
let Type;
|
|
10
|
+
(function (Type) {
|
|
10
11
|
Type["CUSTOM"] = "custom";
|
|
11
12
|
Type["PREZLYMAIL"] = "prezly_mail";
|
|
12
|
-
|
|
13
|
-
}({});
|
|
13
|
+
})(Type || (Type = {}));
|
|
14
14
|
_SenderAddress.Type = Type;
|
|
15
15
|
})(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 = {}));
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SenderDomain = void 0;
|
|
7
7
|
let SenderDomain = exports.SenderDomain = void 0;
|
|
8
8
|
(function (_SenderDomain) {
|
|
9
|
-
let VerificationFlowVersion
|
|
9
|
+
let VerificationFlowVersion;
|
|
10
|
+
(function (VerificationFlowVersion) {
|
|
10
11
|
VerificationFlowVersion["V1"] = "v1";
|
|
11
12
|
VerificationFlowVersion["V2"] = "v2";
|
|
12
13
|
VerificationFlowVersion["V3"] = "v3";
|
|
13
14
|
VerificationFlowVersion["PREZLYMAIL"] = "prezlymail";
|
|
14
|
-
|
|
15
|
-
}({});
|
|
15
|
+
})(VerificationFlowVersion || (VerificationFlowVersion = {}));
|
|
16
16
|
_SenderDomain.VerificationFlowVersion = VerificationFlowVersion;
|
|
17
17
|
})(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
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SortOrder = void 0;
|
|
7
7
|
let SortOrder = exports.SortOrder = void 0;
|
|
8
8
|
(function (_SortOrder) {
|
|
9
|
-
let Direction
|
|
9
|
+
let Direction;
|
|
10
|
+
(function (Direction) {
|
|
10
11
|
Direction["ASC"] = "asc";
|
|
11
12
|
Direction["DESC"] = "desc";
|
|
12
|
-
|
|
13
|
-
}({});
|
|
13
|
+
})(Direction || (Direction = {}));
|
|
14
14
|
_SortOrder.Direction = Direction;
|
|
15
15
|
function empty() {
|
|
16
16
|
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 {
|
package/dist/types/Story.cjs
CHANGED
|
@@ -7,22 +7,23 @@ exports.Story = void 0;
|
|
|
7
7
|
var _Newsroom = require("./Newsroom.cjs");
|
|
8
8
|
let Story = exports.Story = void 0;
|
|
9
9
|
(function (_Story) {
|
|
10
|
-
let FormatVersion
|
|
10
|
+
let FormatVersion;
|
|
11
|
+
(function (FormatVersion) {
|
|
11
12
|
FormatVersion[FormatVersion["HTML"] = 1] = "HTML";
|
|
12
13
|
FormatVersion[FormatVersion["SLATEJS_V3"] = 3] = "SLATEJS_V3";
|
|
13
14
|
FormatVersion[FormatVersion["SLATEJS_V4"] = 4] = "SLATEJS_V4";
|
|
14
15
|
FormatVersion[FormatVersion["SLATEJS_V5"] = 5] = "SLATEJS_V5";
|
|
15
|
-
|
|
16
|
-
}({});
|
|
16
|
+
FormatVersion[FormatVersion["SLATEJS_V6"] = 6] = "SLATEJS_V6";
|
|
17
|
+
})(FormatVersion || (FormatVersion = {}));
|
|
17
18
|
_Story.FormatVersion = FormatVersion;
|
|
18
|
-
let Status
|
|
19
|
+
let Status;
|
|
20
|
+
(function (Status) {
|
|
19
21
|
Status["UNINITIALIZED"] = "uninitialized";
|
|
20
22
|
Status["DRAFT"] = "draft";
|
|
21
23
|
Status["SCHEDULED"] = "scheduled";
|
|
22
24
|
Status["EMBARGO"] = "embargo";
|
|
23
25
|
Status["PUBLISHED"] = "published";
|
|
24
|
-
|
|
25
|
-
}({});
|
|
26
|
+
})(Status || (Status = {}));
|
|
26
27
|
_Story.Status = Status;
|
|
27
28
|
/**
|
|
28
29
|
* @deprecated Please use `Status` instead.
|
|
@@ -33,20 +34,20 @@ let Story = exports.Story = void 0;
|
|
|
33
34
|
* @deprecated Please use `Status` instead.
|
|
34
35
|
* @see Status
|
|
35
36
|
*/
|
|
36
|
-
let PublicationStatus
|
|
37
|
+
let PublicationStatus;
|
|
38
|
+
(function (PublicationStatus) {
|
|
37
39
|
PublicationStatus["NEW"] = "new";
|
|
38
40
|
PublicationStatus["DRAFT"] = "draft";
|
|
39
41
|
PublicationStatus["PUBLISHED"] = "published";
|
|
40
|
-
|
|
41
|
-
}({});
|
|
42
|
+
})(PublicationStatus || (PublicationStatus = {}));
|
|
42
43
|
_Story.PublicationStatus = PublicationStatus;
|
|
43
|
-
let Visibility
|
|
44
|
+
let Visibility;
|
|
45
|
+
(function (Visibility) {
|
|
44
46
|
Visibility["PUBLIC"] = "public";
|
|
45
47
|
Visibility["EMBARGO"] = "embargo";
|
|
46
48
|
Visibility["PRIVATE"] = "private";
|
|
47
49
|
Visibility["CONFIDENTIAL"] = "confidential";
|
|
48
|
-
|
|
49
|
-
}({});
|
|
50
|
+
})(Visibility || (Visibility = {}));
|
|
50
51
|
_Story.Visibility = Visibility;
|
|
51
52
|
/*
|
|
52
53
|
* Newsroom status checks
|
|
@@ -123,7 +124,7 @@ let Story = exports.Story = void 0;
|
|
|
123
124
|
if (typeof arg === 'object' && arg !== null) {
|
|
124
125
|
return isSlateFormat(arg.format_version);
|
|
125
126
|
}
|
|
126
|
-
return arg === FormatVersion.SLATEJS_V3 || arg === FormatVersion.SLATEJS_V4 || arg === FormatVersion.SLATEJS_V5;
|
|
127
|
+
return arg === FormatVersion.SLATEJS_V3 || arg === FormatVersion.SLATEJS_V4 || arg === FormatVersion.SLATEJS_V5 || arg === FormatVersion.SLATEJS_V6;
|
|
127
128
|
}
|
|
128
129
|
_Story.isSlateFormat = isSlateFormat;
|
|
129
130
|
function isSlateV3Format(arg) {
|
|
@@ -147,4 +148,11 @@ let Story = exports.Story = void 0;
|
|
|
147
148
|
return arg === FormatVersion.SLATEJS_V5;
|
|
148
149
|
}
|
|
149
150
|
_Story.isSlateV5Format = isSlateV5Format;
|
|
151
|
+
function isSlateV6Format(arg) {
|
|
152
|
+
if (typeof arg === 'object' && arg !== null) {
|
|
153
|
+
return arg.format_version === FormatVersion.SLATEJS_V6;
|
|
154
|
+
}
|
|
155
|
+
return arg === FormatVersion.SLATEJS_V6;
|
|
156
|
+
}
|
|
157
|
+
_Story.isSlateV6Format = isSlateV6Format;
|
|
150
158
|
})(Story || (exports.Story = Story = {}));
|
package/dist/types/Story.d.ts
CHANGED
|
@@ -153,7 +153,8 @@ export declare namespace Story {
|
|
|
153
153
|
HTML = 1,
|
|
154
154
|
SLATEJS_V3 = 3,
|
|
155
155
|
SLATEJS_V4 = 4,
|
|
156
|
-
SLATEJS_V5 = 5
|
|
156
|
+
SLATEJS_V5 = 5,
|
|
157
|
+
SLATEJS_V6 = 6
|
|
157
158
|
}
|
|
158
159
|
enum Status {
|
|
159
160
|
UNINITIALIZED = "uninitialized",
|
|
@@ -288,9 +289,9 @@ export declare namespace Story {
|
|
|
288
289
|
function isLegacyHtmlFormat<T extends Pick<Story, 'format_version'>>(story: T): story is T & {
|
|
289
290
|
format_version: FormatVersion.HTML;
|
|
290
291
|
};
|
|
291
|
-
function isSlateFormat(format: FormatVersion): format is FormatVersion.SLATEJS_V3 | FormatVersion.SLATEJS_V4 | FormatVersion.SLATEJS_V5;
|
|
292
|
+
function isSlateFormat(format: FormatVersion): format is FormatVersion.SLATEJS_V3 | FormatVersion.SLATEJS_V4 | FormatVersion.SLATEJS_V5 | FormatVersion.SLATEJS_V6;
|
|
292
293
|
function isSlateFormat<T extends Pick<Story, 'format_version'>>(story: Pick<Story, 'format_version'>): story is T & {
|
|
293
|
-
format_version: FormatVersion.SLATEJS_V3 | FormatVersion.SLATEJS_V4 | FormatVersion.SLATEJS_V5;
|
|
294
|
+
format_version: FormatVersion.SLATEJS_V3 | FormatVersion.SLATEJS_V4 | FormatVersion.SLATEJS_V5 | FormatVersion.SLATEJS_V6;
|
|
294
295
|
};
|
|
295
296
|
function isSlateV3Format(format: FormatVersion): format is FormatVersion.SLATEJS_V3;
|
|
296
297
|
function isSlateV3Format<T extends Pick<Story, 'format_version'>>(story: Pick<Story, 'format_version'>): story is T & {
|
|
@@ -304,6 +305,10 @@ export declare namespace Story {
|
|
|
304
305
|
function isSlateV5Format<T extends Pick<Story, 'format_version'>>(story: Pick<Story, 'format_version'>): story is T & {
|
|
305
306
|
format_version: FormatVersion.SLATEJS_V5;
|
|
306
307
|
};
|
|
308
|
+
function isSlateV6Format(format: FormatVersion): format is FormatVersion.SLATEJS_V6;
|
|
309
|
+
function isSlateV6Format<T extends Pick<Story, 'format_version'>>(story: Pick<Story, 'format_version'>): story is T & {
|
|
310
|
+
format_version: FormatVersion.SLATEJS_V6;
|
|
311
|
+
};
|
|
307
312
|
}
|
|
308
313
|
export interface ExtendedStory extends Story, Pick<Story.ExtraFields, 'thumbnail_image' | 'header_image' | 'preview_image' | 'social_image' | 'social_text' | 'tag_names' | 'content' | 'attached_gallery_content' | 'referenced_entities'> {
|
|
309
314
|
}
|
package/dist/types/Story.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { Newsroom } from "./Newsroom.js";
|
|
2
2
|
export let Story;
|
|
3
3
|
(function (_Story) {
|
|
4
|
-
let FormatVersion
|
|
4
|
+
let FormatVersion;
|
|
5
|
+
(function (FormatVersion) {
|
|
5
6
|
FormatVersion[FormatVersion["HTML"] = 1] = "HTML";
|
|
6
7
|
FormatVersion[FormatVersion["SLATEJS_V3"] = 3] = "SLATEJS_V3";
|
|
7
8
|
FormatVersion[FormatVersion["SLATEJS_V4"] = 4] = "SLATEJS_V4";
|
|
8
9
|
FormatVersion[FormatVersion["SLATEJS_V5"] = 5] = "SLATEJS_V5";
|
|
9
|
-
|
|
10
|
-
}({});
|
|
10
|
+
FormatVersion[FormatVersion["SLATEJS_V6"] = 6] = "SLATEJS_V6";
|
|
11
|
+
})(FormatVersion || (FormatVersion = {}));
|
|
11
12
|
_Story.FormatVersion = FormatVersion;
|
|
12
|
-
let Status
|
|
13
|
+
let Status;
|
|
14
|
+
(function (Status) {
|
|
13
15
|
Status["UNINITIALIZED"] = "uninitialized";
|
|
14
16
|
Status["DRAFT"] = "draft";
|
|
15
17
|
Status["SCHEDULED"] = "scheduled";
|
|
16
18
|
Status["EMBARGO"] = "embargo";
|
|
17
19
|
Status["PUBLISHED"] = "published";
|
|
18
|
-
|
|
19
|
-
}({});
|
|
20
|
+
})(Status || (Status = {}));
|
|
20
21
|
_Story.Status = Status;
|
|
21
22
|
/**
|
|
22
23
|
* @deprecated Please use `Status` instead.
|
|
@@ -27,20 +28,20 @@ export let Story;
|
|
|
27
28
|
* @deprecated Please use `Status` instead.
|
|
28
29
|
* @see Status
|
|
29
30
|
*/
|
|
30
|
-
let PublicationStatus
|
|
31
|
+
let PublicationStatus;
|
|
32
|
+
(function (PublicationStatus) {
|
|
31
33
|
PublicationStatus["NEW"] = "new";
|
|
32
34
|
PublicationStatus["DRAFT"] = "draft";
|
|
33
35
|
PublicationStatus["PUBLISHED"] = "published";
|
|
34
|
-
|
|
35
|
-
}({});
|
|
36
|
+
})(PublicationStatus || (PublicationStatus = {}));
|
|
36
37
|
_Story.PublicationStatus = PublicationStatus;
|
|
37
|
-
let Visibility
|
|
38
|
+
let Visibility;
|
|
39
|
+
(function (Visibility) {
|
|
38
40
|
Visibility["PUBLIC"] = "public";
|
|
39
41
|
Visibility["EMBARGO"] = "embargo";
|
|
40
42
|
Visibility["PRIVATE"] = "private";
|
|
41
43
|
Visibility["CONFIDENTIAL"] = "confidential";
|
|
42
|
-
|
|
43
|
-
}({});
|
|
44
|
+
})(Visibility || (Visibility = {}));
|
|
44
45
|
_Story.Visibility = Visibility;
|
|
45
46
|
/*
|
|
46
47
|
* Newsroom status checks
|
|
@@ -117,7 +118,7 @@ export let Story;
|
|
|
117
118
|
if (typeof arg === 'object' && arg !== null) {
|
|
118
119
|
return isSlateFormat(arg.format_version);
|
|
119
120
|
}
|
|
120
|
-
return arg === FormatVersion.SLATEJS_V3 || arg === FormatVersion.SLATEJS_V4 || arg === FormatVersion.SLATEJS_V5;
|
|
121
|
+
return arg === FormatVersion.SLATEJS_V3 || arg === FormatVersion.SLATEJS_V4 || arg === FormatVersion.SLATEJS_V5 || arg === FormatVersion.SLATEJS_V6;
|
|
121
122
|
}
|
|
122
123
|
_Story.isSlateFormat = isSlateFormat;
|
|
123
124
|
function isSlateV3Format(arg) {
|
|
@@ -141,4 +142,11 @@ export let Story;
|
|
|
141
142
|
return arg === FormatVersion.SLATEJS_V5;
|
|
142
143
|
}
|
|
143
144
|
_Story.isSlateV5Format = isSlateV5Format;
|
|
145
|
+
function isSlateV6Format(arg) {
|
|
146
|
+
if (typeof arg === 'object' && arg !== null) {
|
|
147
|
+
return arg.format_version === FormatVersion.SLATEJS_V6;
|
|
148
|
+
}
|
|
149
|
+
return arg === FormatVersion.SLATEJS_V6;
|
|
150
|
+
}
|
|
151
|
+
_Story.isSlateV6Format = isSlateV6Format;
|
|
144
152
|
})(Story || (Story = {}));
|
package/dist/types/User.cjs
CHANGED
|
@@ -6,14 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.User = void 0;
|
|
7
7
|
let User = exports.User = void 0;
|
|
8
8
|
(function (_User) {
|
|
9
|
-
let SignInFlow
|
|
9
|
+
let SignInFlow;
|
|
10
|
+
(function (SignInFlow) {
|
|
10
11
|
SignInFlow["GOOGLE"] = "google";
|
|
11
12
|
SignInFlow["PASSWORD"] = "password";
|
|
12
13
|
SignInFlow["SSO"] = "sso";
|
|
13
|
-
|
|
14
|
-
}({});
|
|
14
|
+
})(SignInFlow || (SignInFlow = {}));
|
|
15
15
|
_User.SignInFlow = SignInFlow;
|
|
16
|
-
let UseCaseAnswer
|
|
16
|
+
let UseCaseAnswer;
|
|
17
|
+
(function (UseCaseAnswer) {
|
|
17
18
|
UseCaseAnswer["UNKNOWN"] = "unknown";
|
|
18
19
|
UseCaseAnswer["CAMPAIGNS"] = "campaigns";
|
|
19
20
|
UseCaseAnswer["CONTACTS"] = "contacts";
|
|
@@ -21,7 +22,6 @@ let User = exports.User = void 0;
|
|
|
21
22
|
UseCaseAnswer["NEWSROOM"] = "newsroom";
|
|
22
23
|
UseCaseAnswer["COVERAGE"] = "coverage";
|
|
23
24
|
UseCaseAnswer["SKIP"] = "skip";
|
|
24
|
-
|
|
25
|
-
}({});
|
|
25
|
+
})(UseCaseAnswer || (UseCaseAnswer = {}));
|
|
26
26
|
_User.UseCaseAnswer = UseCaseAnswer;
|
|
27
27
|
})(User || (exports.User = User = {}));
|
package/dist/types/User.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export let User;
|
|
2
2
|
(function (_User) {
|
|
3
|
-
let SignInFlow
|
|
3
|
+
let SignInFlow;
|
|
4
|
+
(function (SignInFlow) {
|
|
4
5
|
SignInFlow["GOOGLE"] = "google";
|
|
5
6
|
SignInFlow["PASSWORD"] = "password";
|
|
6
7
|
SignInFlow["SSO"] = "sso";
|
|
7
|
-
|
|
8
|
-
}({});
|
|
8
|
+
})(SignInFlow || (SignInFlow = {}));
|
|
9
9
|
_User.SignInFlow = SignInFlow;
|
|
10
|
-
let UseCaseAnswer
|
|
10
|
+
let UseCaseAnswer;
|
|
11
|
+
(function (UseCaseAnswer) {
|
|
11
12
|
UseCaseAnswer["UNKNOWN"] = "unknown";
|
|
12
13
|
UseCaseAnswer["CAMPAIGNS"] = "campaigns";
|
|
13
14
|
UseCaseAnswer["CONTACTS"] = "contacts";
|
|
@@ -15,7 +16,6 @@ export let User;
|
|
|
15
16
|
UseCaseAnswer["NEWSROOM"] = "newsroom";
|
|
16
17
|
UseCaseAnswer["COVERAGE"] = "coverage";
|
|
17
18
|
UseCaseAnswer["SKIP"] = "skip";
|
|
18
|
-
|
|
19
|
-
}({});
|
|
19
|
+
})(UseCaseAnswer || (UseCaseAnswer = {}));
|
|
20
20
|
_User.UseCaseAnswer = UseCaseAnswer;
|
|
21
21
|
})(User || (User = {}));
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Notification = void 0;
|
|
7
7
|
let Notification = exports.Notification = void 0;
|
|
8
8
|
(function (_Notification) {
|
|
9
|
-
let Style
|
|
9
|
+
let Style;
|
|
10
|
+
(function (Style) {
|
|
10
11
|
Style["SUCCESS"] = "success";
|
|
11
12
|
Style["INFO"] = "info";
|
|
12
13
|
Style["WARNING"] = "warning";
|
|
13
14
|
Style["DANGER"] = "danger";
|
|
14
|
-
|
|
15
|
-
}({});
|
|
15
|
+
})(Style || (Style = {}));
|
|
16
16
|
_Notification.Style = Style;
|
|
17
17
|
})(Notification || (exports.Notification = Notification = {}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export let Notification;
|
|
2
2
|
(function (_Notification) {
|
|
3
|
-
let Style
|
|
3
|
+
let Style;
|
|
4
|
+
(function (Style) {
|
|
4
5
|
Style["SUCCESS"] = "success";
|
|
5
6
|
Style["INFO"] = "info";
|
|
6
7
|
Style["WARNING"] = "warning";
|
|
7
8
|
Style["DANGER"] = "danger";
|
|
8
|
-
|
|
9
|
-
}({});
|
|
9
|
+
})(Style || (Style = {}));
|
|
10
10
|
_Notification.Style = Style;
|
|
11
11
|
})(Notification || (Notification = {}));
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.OEmbedInfo = void 0;
|
|
7
7
|
let OEmbedInfo = exports.OEmbedInfo = void 0;
|
|
8
8
|
(function (_OEmbedInfo) {
|
|
9
|
-
let Type
|
|
9
|
+
let Type;
|
|
10
|
+
(function (Type) {
|
|
10
11
|
Type["LINK"] = "link";
|
|
11
12
|
Type["PHOTO"] = "photo";
|
|
12
13
|
Type["RICH"] = "rich";
|
|
13
14
|
Type["VIDEO"] = "video";
|
|
14
|
-
|
|
15
|
-
}({});
|
|
15
|
+
})(Type || (Type = {}));
|
|
16
16
|
_OEmbedInfo.Type = Type;
|
|
17
17
|
})(OEmbedInfo || (exports.OEmbedInfo = OEmbedInfo = {}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export let OEmbedInfo;
|
|
2
2
|
(function (_OEmbedInfo) {
|
|
3
|
-
let Type
|
|
3
|
+
let Type;
|
|
4
|
+
(function (Type) {
|
|
4
5
|
Type["LINK"] = "link";
|
|
5
6
|
Type["PHOTO"] = "photo";
|
|
6
7
|
Type["RICH"] = "rich";
|
|
7
8
|
Type["VIDEO"] = "video";
|
|
8
|
-
|
|
9
|
-
}({});
|
|
9
|
+
})(Type || (Type = {}));
|
|
10
10
|
_OEmbedInfo.Type = Type;
|
|
11
11
|
})(OEmbedInfo || (OEmbedInfo = {}));
|
|
@@ -7,9 +7,9 @@ exports.SelectionMode = void 0;
|
|
|
7
7
|
/**
|
|
8
8
|
* @see https://api.prezly.com/v2/common/schema.json#/definitions/Pagination
|
|
9
9
|
*/
|
|
10
|
-
let SelectionMode = exports.SelectionMode =
|
|
10
|
+
let SelectionMode = exports.SelectionMode = void 0;
|
|
11
|
+
(function (SelectionMode) {
|
|
11
12
|
SelectionMode["ALL"] = "all";
|
|
12
13
|
SelectionMode["IN"] = "in";
|
|
13
14
|
SelectionMode["NOT_IN"] = "not_in";
|
|
14
|
-
|
|
15
|
-
}({});
|
|
15
|
+
})(SelectionMode || (exports.SelectionMode = SelectionMode = {}));
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* @see https://api.prezly.com/v2/common/schema.json#/definitions/Pagination
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
export let SelectionMode
|
|
5
|
+
export let SelectionMode;
|
|
6
|
+
(function (SelectionMode) {
|
|
6
7
|
SelectionMode["ALL"] = "all";
|
|
7
8
|
SelectionMode["IN"] = "in";
|
|
8
9
|
SelectionMode["NOT_IN"] = "not_in";
|
|
9
|
-
|
|
10
|
-
}({});
|
|
10
|
+
})(SelectionMode || (SelectionMode = {}));
|