@prezly/sdk 18.3.0 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/DeferredJobsApiClient.cjs +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/api/types.d.ts +1 -1
- package/dist/endpoints/Accounts/index.cjs +2 -0
- package/dist/endpoints/Billing/index.cjs +2 -0
- package/dist/endpoints/Billing/types.cjs +3 -5
- package/dist/endpoints/CampaignRecipients/Client.d.ts +3 -3
- package/dist/endpoints/CampaignRecipients/index.cjs +2 -0
- package/dist/endpoints/Campaigns/index.cjs +2 -0
- package/dist/endpoints/Contacts/Client.d.ts +2 -2
- package/dist/endpoints/Contacts/index.cjs +2 -0
- package/dist/endpoints/Contacts/types.d.ts +3 -3
- package/dist/endpoints/ContactsExports/index.cjs +2 -0
- package/dist/endpoints/Coverage/Client.d.ts +1 -1
- package/dist/endpoints/Coverage/index.cjs +2 -0
- package/dist/endpoints/Coverage/types.d.ts +1 -1
- package/dist/endpoints/Jobs/index.cjs +2 -0
- package/dist/endpoints/Licenses/index.cjs +1 -0
- package/dist/endpoints/NewsroomCategories/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomCategories/index.cjs +2 -0
- package/dist/endpoints/NewsroomContacts/Client.d.ts +2 -2
- package/dist/endpoints/NewsroomContacts/index.cjs +2 -0
- package/dist/endpoints/NewsroomContacts/types.d.ts +1 -1
- package/dist/endpoints/NewsroomDomains/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomDomains/index.cjs +2 -0
- package/dist/endpoints/NewsroomGalleries/Client.d.ts +2 -2
- package/dist/endpoints/NewsroomGalleries/index.cjs +2 -0
- package/dist/endpoints/NewsroomHub/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomHub/index.cjs +2 -0
- package/dist/endpoints/NewsroomHub/types.d.ts +1 -1
- package/dist/endpoints/NewsroomLanguages/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomLanguages/index.cjs +2 -0
- package/dist/endpoints/NewsroomPrivacyRequests/index.cjs +2 -0
- package/dist/endpoints/NewsroomSubscriptions/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomSubscriptions/index.cjs +2 -0
- package/dist/endpoints/NewsroomThemes/Client.d.ts +2 -2
- package/dist/endpoints/NewsroomThemes/index.cjs +1 -0
- package/dist/endpoints/NewsroomWebhooks/Client.d.ts +1 -1
- package/dist/endpoints/NewsroomWebhooks/index.cjs +2 -0
- package/dist/endpoints/Newsrooms/Client.d.ts +1 -1
- package/dist/endpoints/Newsrooms/index.cjs +2 -0
- package/dist/endpoints/NotificationSubscriptions/index.cjs +2 -0
- package/dist/endpoints/PricingTables/index.cjs +2 -0
- package/dist/endpoints/PricingTables/types.cjs +5 -9
- package/dist/endpoints/SenderAddresses/index.cjs +2 -0
- package/dist/endpoints/Snippets/Client.d.ts +1 -1
- package/dist/endpoints/Snippets/index.cjs +2 -0
- package/dist/endpoints/Stories/Client.cjs +23 -4
- package/dist/endpoints/Stories/Client.d.ts +4 -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.d.ts +9 -9
- package/dist/endpoints/Stories/types.js +13 -3
- package/dist/endpoints/Subscriptions/Client.d.ts +1 -1
- package/dist/endpoints/Subscriptions/index.cjs +2 -0
- package/dist/endpoints/Subscriptions/types.cjs +1 -2
- package/dist/endpoints/index.cjs +3 -3
- package/dist/http/constants.cjs +3 -6
- package/dist/http/index.cjs +8 -8
- package/dist/http/lib.cjs +0 -16
- package/dist/http/lib.js +0 -14
- package/dist/http/types.cjs +2 -4
- package/dist/index.cjs +7 -4
- package/dist/routing.cjs +2 -3
- package/dist/types/BillingCycle.cjs +1 -2
- package/dist/types/Campaign.cjs +1 -2
- package/dist/types/Category.cjs +1 -2
- package/dist/types/Category.d.ts +3 -3
- package/dist/types/Contact.cjs +1 -2
- package/dist/types/ContactDuplicateSuggestion.cjs +2 -2
- package/dist/types/ContactDuplicateSuggestion.d.ts +1 -1
- package/dist/types/ContactsExport.cjs +1 -2
- package/dist/types/ContactsExport.d.ts +1 -1
- package/dist/types/ContactsScope.cjs +1 -2
- package/dist/types/ContactsScope.d.ts +1 -1
- package/dist/types/CoverageEntry.cjs +1 -2
- package/dist/types/Culture.cjs +7 -2
- package/dist/types/Culture.d.ts +1 -1
- package/dist/types/Culture.js +6 -0
- package/dist/types/Currency.cjs +1 -2
- package/dist/types/DnsConfigurationInstruction.d.ts +1 -1
- package/dist/types/EmailRecipient.cjs +1 -2
- package/dist/types/JobState.cjs +1 -2
- package/dist/types/JobState.d.ts +1 -1
- package/dist/types/License.cjs +1 -2
- package/dist/types/Newsroom.cjs +4 -2
- package/dist/types/Newsroom.d.ts +2 -2
- package/dist/types/Newsroom.js +3 -0
- package/dist/types/NewsroomDomain.cjs +1 -2
- package/dist/types/NewsroomGallery.cjs +1 -2
- package/dist/types/NewsroomTheme.cjs +3 -5
- package/dist/types/NewsroomTheme.d.ts +1 -1
- package/dist/types/NewsroomTheme.js +1 -1
- package/dist/types/NewsroomWebhook.cjs +1 -2
- package/dist/types/NotificationSubscription.cjs +1 -2
- package/dist/types/Permissions.cjs +1 -2
- package/dist/types/Permissions.d.ts +1 -1
- package/dist/types/Plan.cjs +3 -4
- package/dist/types/PrivacyRequest.cjs +1 -2
- package/dist/types/SenderAddress.cjs +1 -2
- package/dist/types/SenderDomain.cjs +1 -2
- package/dist/types/SortOrder.cjs +1 -2
- package/dist/types/Story.cjs +17 -6
- package/dist/types/Story.d.ts +2 -2
- package/dist/types/Story.js +16 -4
- package/dist/types/User.cjs +1 -2
- package/dist/types/UserAccount.d.ts +1 -1
- package/dist/types/common/Notification.cjs +1 -2
- package/dist/types/common/OEmbedInfo.cjs +1 -2
- package/dist/types/common/Pagination.cjs +2 -2
- package/dist/types/common/Query.cjs +1 -2
- package/dist/types/common/Query.d.ts +1 -1
- package/dist/types/common/index.cjs +6 -0
- package/dist/types/index.cjs +36 -0
- package/package.json +10 -13
|
@@ -6,8 +6,8 @@ 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
12
|
let Status;
|
|
13
13
|
(function (Status) {
|
|
@@ -4,8 +4,7 @@ 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
9
|
let Status;
|
|
11
10
|
(function (Status) {
|
|
@@ -4,8 +4,7 @@ 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
9
|
let Type;
|
|
11
10
|
(function (Type) {
|
|
@@ -2,7 +2,7 @@ import type { Campaign } from './Campaign';
|
|
|
2
2
|
import type { SelectionValue } from './common';
|
|
3
3
|
import type { Contact } from './Contact';
|
|
4
4
|
import type { EmailRecipient } from './EmailRecipient';
|
|
5
|
-
export
|
|
5
|
+
export type ContactsScope = ContactsScope.AllContactsScope | ContactsScope.ContactOrganisationsScope | ContactsScope.ContactEmployeesScope | ContactsScope.CampaignRecipientsScope | ContactsScope.CampaignReportScope;
|
|
6
6
|
export declare namespace ContactsScope {
|
|
7
7
|
enum Type {
|
|
8
8
|
ALL_CONTACTS = "scope:contacts",
|
|
@@ -4,8 +4,7 @@ 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
9
|
let Type;
|
|
11
10
|
(function (Type) {
|
package/dist/types/Culture.cjs
CHANGED
|
@@ -4,8 +4,7 @@ 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
9
|
let TextDirection;
|
|
11
10
|
(function (TextDirection) {
|
|
@@ -13,6 +12,12 @@ exports.Culture = Culture;
|
|
|
13
12
|
TextDirection["RTL"] = "rtl";
|
|
14
13
|
})(TextDirection || (TextDirection = {}));
|
|
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.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface CultureRef {
|
|
|
6
6
|
direction: `${Culture.TextDirection}`;
|
|
7
7
|
language_code: Culture.LangCode;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type Culture = CultureRef;
|
|
10
10
|
export declare namespace Culture {
|
|
11
11
|
enum TextDirection {
|
|
12
12
|
LTR = "ltr",
|
package/dist/types/Culture.js
CHANGED
|
@@ -6,6 +6,12 @@ export let Culture;
|
|
|
6
6
|
TextDirection["RTL"] = "rtl";
|
|
7
7
|
})(TextDirection || (TextDirection = {}));
|
|
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,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Currency = void 0;
|
|
7
|
-
let Currency;
|
|
8
|
-
exports.Currency = Currency;
|
|
7
|
+
let Currency = exports.Currency = void 0;
|
|
9
8
|
(function (Currency) {
|
|
10
9
|
Currency["EUR"] = "eur";
|
|
11
10
|
Currency["USD"] = "usd";
|
|
@@ -4,8 +4,7 @@ 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
9
|
let EmailAddressStatus;
|
|
11
10
|
(function (EmailAddressStatus) {
|
package/dist/types/JobState.cjs
CHANGED
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.JobStatus = void 0;
|
|
7
|
-
let JobStatus;
|
|
8
|
-
exports.JobStatus = JobStatus;
|
|
7
|
+
let JobStatus = exports.JobStatus = void 0;
|
|
9
8
|
(function (JobStatus) {
|
|
10
9
|
JobStatus["PENDING"] = "pending";
|
|
11
10
|
JobStatus["RESOLVED"] = "resolved";
|
package/dist/types/JobState.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare enum JobStatus {
|
|
|
3
3
|
RESOLVED = "resolved",
|
|
4
4
|
REJECTED = "rejected"
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type JobState<V = object | null, P = object | null, E = object | null> = {
|
|
7
7
|
status: JobStatus.RESOLVED;
|
|
8
8
|
progress: number;
|
|
9
9
|
value: V;
|
package/dist/types/License.cjs
CHANGED
package/dist/types/Newsroom.cjs
CHANGED
|
@@ -4,8 +4,7 @@ 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
9
|
let Status;
|
|
11
10
|
(function (Status) {
|
|
@@ -27,6 +26,9 @@ exports.Newsroom = Newsroom;
|
|
|
27
26
|
TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
|
|
28
27
|
})(TrackingPolicy || (TrackingPolicy = {}));
|
|
29
28
|
_Newsroom.TrackingPolicy = TrackingPolicy;
|
|
29
|
+
/*
|
|
30
|
+
* Status checks
|
|
31
|
+
*/
|
|
30
32
|
function isActive(arg) {
|
|
31
33
|
if (typeof arg === 'object' && arg !== null) {
|
|
32
34
|
return isActive(arg.status);
|
package/dist/types/Newsroom.d.ts
CHANGED
|
@@ -112,8 +112,8 @@ export interface Newsroom extends NewsroomRef {
|
|
|
112
112
|
}
|
|
113
113
|
export declare namespace Newsroom {
|
|
114
114
|
enum Status {
|
|
115
|
-
ACTIVE = "active"
|
|
116
|
-
INACTIVE = "inactive"
|
|
115
|
+
ACTIVE = "active",// i.e. "Live"
|
|
116
|
+
INACTIVE = "inactive",// i.e. "Not live"
|
|
117
117
|
ARCHIVED = "archived"
|
|
118
118
|
}
|
|
119
119
|
interface EmailBranding {
|
package/dist/types/Newsroom.js
CHANGED
|
@@ -20,6 +20,9 @@ export let Newsroom;
|
|
|
20
20
|
TrackingPolicy["CONSENT_TO_IDENTIFY"] = "consent-to-identify";
|
|
21
21
|
})(TrackingPolicy || (TrackingPolicy = {}));
|
|
22
22
|
_Newsroom.TrackingPolicy = TrackingPolicy;
|
|
23
|
+
/*
|
|
24
|
+
* Status checks
|
|
25
|
+
*/
|
|
23
26
|
function isActive(arg) {
|
|
24
27
|
if (typeof arg === 'object' && arg !== null) {
|
|
25
28
|
return isActive(arg.status);
|
|
@@ -4,8 +4,7 @@ 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
9
|
let Type;
|
|
11
10
|
(function (Type) {
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.NewsroomGallery = void 0;
|
|
7
|
-
let NewsroomGallery;
|
|
8
|
-
exports.NewsroomGallery = NewsroomGallery;
|
|
7
|
+
let NewsroomGallery = exports.NewsroomGallery = void 0;
|
|
9
8
|
(function (_NewsroomGallery) {
|
|
10
9
|
let Status;
|
|
11
10
|
(function (Status) {
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.NewsroomThemePreset = exports.NewsroomTheme = void 0;
|
|
7
|
-
let NewsroomTheme;
|
|
8
|
-
exports.NewsroomTheme = NewsroomTheme;
|
|
7
|
+
let NewsroomTheme = exports.NewsroomTheme = void 0;
|
|
9
8
|
(function (_NewsroomTheme) {
|
|
10
9
|
let Status;
|
|
11
10
|
(function (Status) {
|
|
@@ -13,7 +12,7 @@ exports.NewsroomTheme = NewsroomTheme;
|
|
|
13
12
|
Status["STABLE"] = "stable";
|
|
14
13
|
})(Status || (Status = {}));
|
|
15
14
|
_NewsroomTheme.Status = Status;
|
|
16
|
-
let Feature;
|
|
15
|
+
let Feature; // DEV-11475
|
|
17
16
|
(function (Feature) {
|
|
18
17
|
Feature["CATEGORIES"] = "categories";
|
|
19
18
|
Feature["SEARCH"] = "search";
|
|
@@ -37,6 +36,5 @@ exports.NewsroomTheme = NewsroomTheme;
|
|
|
37
36
|
}
|
|
38
37
|
_NewsroomTheme.isFeatureSupported = isFeatureSupported;
|
|
39
38
|
})(NewsroomTheme || (exports.NewsroomTheme = NewsroomTheme = {}));
|
|
40
|
-
let NewsroomThemePreset;
|
|
41
|
-
exports.NewsroomThemePreset = NewsroomThemePreset;
|
|
39
|
+
let NewsroomThemePreset = exports.NewsroomThemePreset = void 0;
|
|
42
40
|
(function (_NewsroomThemePreset) {})(NewsroomThemePreset || (exports.NewsroomThemePreset = NewsroomThemePreset = {}));
|
|
@@ -32,7 +32,7 @@ export declare namespace NewsroomTheme {
|
|
|
32
32
|
STORY_PINNING = "story_pinning",
|
|
33
33
|
TITLE_FORMATTING = "title_formatting",
|
|
34
34
|
CTA_BUTTONS = "cta_buttons",
|
|
35
|
-
VIDEO_LAYOUT = "video_layout"
|
|
35
|
+
VIDEO_LAYOUT = "video_layout",// DEV-7588
|
|
36
36
|
EMBED_LAYOUT = "embed_layout"
|
|
37
37
|
}
|
|
38
38
|
function isFeatureSupported(theme: NewsroomTheme, feature: NewsroomTheme.Feature): boolean;
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.NewsroomWebhook = void 0;
|
|
7
|
-
let NewsroomWebhook;
|
|
8
|
-
exports.NewsroomWebhook = NewsroomWebhook;
|
|
7
|
+
let NewsroomWebhook = exports.NewsroomWebhook = void 0;
|
|
9
8
|
(function (_NewsroomWebhook) {
|
|
10
9
|
let Event;
|
|
11
10
|
(function (Event) {
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.NotificationSubscription = void 0;
|
|
7
|
-
let NotificationSubscription;
|
|
8
|
-
exports.NotificationSubscription = NotificationSubscription;
|
|
7
|
+
let NotificationSubscription = exports.NotificationSubscription = void 0;
|
|
9
8
|
(function (_NotificationSubscription) {
|
|
10
9
|
let Area;
|
|
11
10
|
(function (Area) {
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Permission = void 0;
|
|
7
|
-
let Permission;
|
|
8
|
-
exports.Permission = Permission;
|
|
7
|
+
let Permission = exports.Permission = void 0;
|
|
9
8
|
(function (Permission) {
|
|
10
9
|
Permission["CREATE_NEWSROOM"] = "create_newsroom";
|
|
11
10
|
Permission["EXPORT_CONTACTS"] = "export_contacts";
|
package/dist/types/Plan.cjs
CHANGED
|
@@ -4,15 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PlanLevel = exports.ChangeType = void 0;
|
|
7
|
-
let ChangeType
|
|
8
|
-
|
|
7
|
+
let ChangeType = exports.ChangeType = void 0;
|
|
8
|
+
/** @deprecated Will be dropped in future */
|
|
9
9
|
(function (ChangeType) {
|
|
10
10
|
ChangeType["ACTIVATION"] = "activation";
|
|
11
11
|
ChangeType["UPGRADE"] = "upgrade";
|
|
12
12
|
ChangeType["DOWNGRADE"] = "downgrade";
|
|
13
13
|
})(ChangeType || (exports.ChangeType = ChangeType = {}));
|
|
14
|
-
let PlanLevel;
|
|
15
|
-
exports.PlanLevel = PlanLevel;
|
|
14
|
+
let PlanLevel = exports.PlanLevel = void 0;
|
|
16
15
|
(function (PlanLevel) {
|
|
17
16
|
PlanLevel["BASIC"] = "basic";
|
|
18
17
|
PlanLevel["CORE"] = "core";
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PrivacyRequest = void 0;
|
|
7
|
-
let PrivacyRequest;
|
|
8
|
-
exports.PrivacyRequest = PrivacyRequest;
|
|
7
|
+
let PrivacyRequest = exports.PrivacyRequest = void 0;
|
|
9
8
|
(function (_PrivacyRequest) {
|
|
10
9
|
let Type;
|
|
11
10
|
(function (Type) {
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SenderAddress = void 0;
|
|
7
|
-
let SenderAddress;
|
|
8
|
-
exports.SenderAddress = SenderAddress;
|
|
7
|
+
let SenderAddress = exports.SenderAddress = void 0;
|
|
9
8
|
(function (_SenderAddress) {
|
|
10
9
|
let Type;
|
|
11
10
|
(function (Type) {
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SenderDomain = void 0;
|
|
7
|
-
let SenderDomain;
|
|
8
|
-
exports.SenderDomain = SenderDomain;
|
|
7
|
+
let SenderDomain = exports.SenderDomain = void 0;
|
|
9
8
|
(function (_SenderDomain) {
|
|
10
9
|
let VerificationFlowVersion;
|
|
11
10
|
(function (VerificationFlowVersion) {
|
package/dist/types/SortOrder.cjs
CHANGED
package/dist/types/Story.cjs
CHANGED
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.Story = void 0;
|
|
7
7
|
var _Newsroom = require("./Newsroom.cjs");
|
|
8
|
-
let Story;
|
|
9
|
-
exports.Story = Story;
|
|
8
|
+
let Story = exports.Story = void 0;
|
|
10
9
|
(function (_Story) {
|
|
11
10
|
let FormatVersion;
|
|
12
11
|
(function (FormatVersion) {
|
|
@@ -28,10 +27,12 @@ exports.Story = Story;
|
|
|
28
27
|
/**
|
|
29
28
|
* @deprecated Please use `Status` instead.
|
|
30
29
|
* @see Status
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
*/
|
|
31
|
+
var LifecycleStatus = Status;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Please use `Status` instead.
|
|
34
|
+
* @see Status
|
|
35
|
+
*/
|
|
35
36
|
let PublicationStatus;
|
|
36
37
|
(function (PublicationStatus) {
|
|
37
38
|
PublicationStatus["NEW"] = "new";
|
|
@@ -47,6 +48,10 @@ exports.Story = Story;
|
|
|
47
48
|
Visibility["CONFIDENTIAL"] = "confidential";
|
|
48
49
|
})(Visibility || (Visibility = {}));
|
|
49
50
|
_Story.Visibility = Visibility;
|
|
51
|
+
/*
|
|
52
|
+
* Newsroom status checks
|
|
53
|
+
*/
|
|
54
|
+
|
|
50
55
|
function isActiveNewsroom(story) {
|
|
51
56
|
return _Newsroom.Newsroom.isActive(story.newsroom);
|
|
52
57
|
}
|
|
@@ -59,6 +64,9 @@ exports.Story = Story;
|
|
|
59
64
|
return _Newsroom.Newsroom.isArchived(story.newsroom);
|
|
60
65
|
}
|
|
61
66
|
_Story.isArchivedNewsroom = isArchivedNewsroom;
|
|
67
|
+
/*
|
|
68
|
+
* Lifecycle status checks
|
|
69
|
+
*/
|
|
62
70
|
function isUninitialized(arg) {
|
|
63
71
|
if (typeof arg === 'object' && arg !== null) {
|
|
64
72
|
return isUninitialized(arg.status);
|
|
@@ -101,6 +109,9 @@ exports.Story = Story;
|
|
|
101
109
|
return arg === Status.PUBLISHED;
|
|
102
110
|
}
|
|
103
111
|
_Story.isPublished = isPublished;
|
|
112
|
+
/*
|
|
113
|
+
* Format version checks
|
|
114
|
+
*/
|
|
104
115
|
function isLegacyHtmlFormat(arg) {
|
|
105
116
|
if (typeof arg === 'object' && arg !== null) {
|
|
106
117
|
return isLegacyHtmlFormat(arg.format_version);
|
package/dist/types/Story.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import type { CultureRef } from './Culture';
|
|
|
4
4
|
import { type NewsroomRef } from './Newsroom';
|
|
5
5
|
import type { SEOSettings } from './SEOSettings';
|
|
6
6
|
import type { UserRef } from './User';
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
type Html = string;
|
|
8
|
+
type Json = string;
|
|
9
9
|
export interface StoryRef {
|
|
10
10
|
uuid: string;
|
|
11
11
|
/**
|
package/dist/types/Story.js
CHANGED
|
@@ -21,10 +21,12 @@ export let Story;
|
|
|
21
21
|
/**
|
|
22
22
|
* @deprecated Please use `Status` instead.
|
|
23
23
|
* @see Status
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
*/
|
|
25
|
+
var LifecycleStatus = Status;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Please use `Status` instead.
|
|
28
|
+
* @see Status
|
|
29
|
+
*/
|
|
28
30
|
let PublicationStatus;
|
|
29
31
|
(function (PublicationStatus) {
|
|
30
32
|
PublicationStatus["NEW"] = "new";
|
|
@@ -40,6 +42,10 @@ export let Story;
|
|
|
40
42
|
Visibility["CONFIDENTIAL"] = "confidential";
|
|
41
43
|
})(Visibility || (Visibility = {}));
|
|
42
44
|
_Story.Visibility = Visibility;
|
|
45
|
+
/*
|
|
46
|
+
* Newsroom status checks
|
|
47
|
+
*/
|
|
48
|
+
|
|
43
49
|
function isActiveNewsroom(story) {
|
|
44
50
|
return Newsroom.isActive(story.newsroom);
|
|
45
51
|
}
|
|
@@ -52,6 +58,9 @@ export let Story;
|
|
|
52
58
|
return Newsroom.isArchived(story.newsroom);
|
|
53
59
|
}
|
|
54
60
|
_Story.isArchivedNewsroom = isArchivedNewsroom;
|
|
61
|
+
/*
|
|
62
|
+
* Lifecycle status checks
|
|
63
|
+
*/
|
|
55
64
|
function isUninitialized(arg) {
|
|
56
65
|
if (typeof arg === 'object' && arg !== null) {
|
|
57
66
|
return isUninitialized(arg.status);
|
|
@@ -94,6 +103,9 @@ export let Story;
|
|
|
94
103
|
return arg === Status.PUBLISHED;
|
|
95
104
|
}
|
|
96
105
|
_Story.isPublished = isPublished;
|
|
106
|
+
/*
|
|
107
|
+
* Format version checks
|
|
108
|
+
*/
|
|
97
109
|
function isLegacyHtmlFormat(arg) {
|
|
98
110
|
if (typeof arg === 'object' && arg !== null) {
|
|
99
111
|
return isLegacyHtmlFormat(arg.format_version);
|
package/dist/types/User.cjs
CHANGED
|
@@ -2,7 +2,7 @@ import type { LicenseRef } from './License';
|
|
|
2
2
|
import type { NewsroomRef } from './Newsroom';
|
|
3
3
|
import type { Permission } from './Permissions';
|
|
4
4
|
import type { UserRef } from './User';
|
|
5
|
-
export
|
|
5
|
+
export type UserAccountRef = UserRef;
|
|
6
6
|
export interface UserAccount {
|
|
7
7
|
id: number;
|
|
8
8
|
avatar_url: string;
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Notification = void 0;
|
|
7
|
-
let Notification;
|
|
8
|
-
exports.Notification = Notification;
|
|
7
|
+
let Notification = exports.Notification = void 0;
|
|
9
8
|
(function (_Notification) {
|
|
10
9
|
let Style;
|
|
11
10
|
(function (Style) {
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SelectionMode = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* @see https://api.prezly.com/v2/common/schema.json#/definitions/Pagination
|
|
9
|
-
*/
|
|
10
|
-
exports.SelectionMode =
|
|
9
|
+
*/
|
|
10
|
+
let SelectionMode = exports.SelectionMode = void 0;
|
|
11
11
|
(function (SelectionMode) {
|
|
12
12
|
SelectionMode["ALL"] = "all";
|
|
13
13
|
SelectionMode["IN"] = "in";
|
|
@@ -8,8 +8,7 @@ exports.Query = void 0;
|
|
|
8
8
|
/**
|
|
9
9
|
* @see https://developers.prezly.com/docs/api/docs/06-prezly-query-language.md
|
|
10
10
|
*/
|
|
11
|
-
let Query;
|
|
12
|
-
exports.Query = Query;
|
|
11
|
+
let Query = exports.Query = void 0;
|
|
13
12
|
(function (_Query) {
|
|
14
13
|
function stringify(query) {
|
|
15
14
|
if (!query) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @see https://developers.prezly.com/docs/api/docs/06-prezly-query-language.md
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type Query = object | string;
|
|
5
5
|
export declare namespace Query {
|
|
6
6
|
function stringify(query: Query | undefined | null): string | undefined;
|
|
7
7
|
}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _Notification = require("./Notification.cjs");
|
|
7
7
|
Object.keys(_Notification).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Notification[key]) return;
|
|
9
10
|
Object.defineProperty(exports, key, {
|
|
10
11
|
enumerable: true,
|
|
11
12
|
get: function () {
|
|
@@ -16,6 +17,7 @@ Object.keys(_Notification).forEach(function (key) {
|
|
|
16
17
|
var _OEmbedInfo = require("./OEmbedInfo.cjs");
|
|
17
18
|
Object.keys(_OEmbedInfo).forEach(function (key) {
|
|
18
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _OEmbedInfo[key]) return;
|
|
19
21
|
Object.defineProperty(exports, key, {
|
|
20
22
|
enumerable: true,
|
|
21
23
|
get: function () {
|
|
@@ -26,6 +28,7 @@ Object.keys(_OEmbedInfo).forEach(function (key) {
|
|
|
26
28
|
var _Pagination = require("./Pagination.cjs");
|
|
27
29
|
Object.keys(_Pagination).forEach(function (key) {
|
|
28
30
|
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _Pagination[key]) return;
|
|
29
32
|
Object.defineProperty(exports, key, {
|
|
30
33
|
enumerable: true,
|
|
31
34
|
get: function () {
|
|
@@ -36,6 +39,7 @@ Object.keys(_Pagination).forEach(function (key) {
|
|
|
36
39
|
var _Query = require("./Query.cjs");
|
|
37
40
|
Object.keys(_Query).forEach(function (key) {
|
|
38
41
|
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _Query[key]) return;
|
|
39
43
|
Object.defineProperty(exports, key, {
|
|
40
44
|
enumerable: true,
|
|
41
45
|
get: function () {
|
|
@@ -46,6 +50,7 @@ Object.keys(_Query).forEach(function (key) {
|
|
|
46
50
|
var _Utm = require("./Utm.cjs");
|
|
47
51
|
Object.keys(_Utm).forEach(function (key) {
|
|
48
52
|
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _Utm[key]) return;
|
|
49
54
|
Object.defineProperty(exports, key, {
|
|
50
55
|
enumerable: true,
|
|
51
56
|
get: function () {
|
|
@@ -56,6 +61,7 @@ Object.keys(_Utm).forEach(function (key) {
|
|
|
56
61
|
var _Warning = require("./Warning.cjs");
|
|
57
62
|
Object.keys(_Warning).forEach(function (key) {
|
|
58
63
|
if (key === "default" || key === "__esModule") return;
|
|
64
|
+
if (key in exports && exports[key] === _Warning[key]) return;
|
|
59
65
|
Object.defineProperty(exports, key, {
|
|
60
66
|
enumerable: true,
|
|
61
67
|
get: function () {
|