@prezly/sdk 23.7.2 → 23.7.4
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/Stories/types.cjs +2 -4
- package/dist/endpoints/Stories/types.js +2 -4
- package/dist/types/CoverageEntry.cjs +1 -0
- package/dist/types/CoverageEntry.d.ts +1 -0
- package/dist/types/CoverageEntry.js +1 -0
- package/dist/types/Story.d.ts +2 -2
- 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 = "23.7.
|
|
7
|
+
const VERSION = "23.7.3";
|
|
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
|
@@ -33,8 +33,7 @@ const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE = {
|
|
|
33
33
|
tag_names: true,
|
|
34
34
|
content: true,
|
|
35
35
|
attached_gallery_content: true,
|
|
36
|
-
referenced_entities: true
|
|
37
|
-
uploadcare_assets_group_uuid: true
|
|
36
|
+
referenced_entities: true
|
|
38
37
|
}; // satisfies Record<keyof Omit<ExtendedStory, keyof Story>, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
|
|
39
38
|
|
|
40
39
|
const ALL_EXTRA_FIELDS_SHAPE = {
|
|
@@ -55,8 +54,7 @@ const ALL_EXTRA_FIELDS_SHAPE = {
|
|
|
55
54
|
attached_contacts_content: true,
|
|
56
55
|
referenced_entities: true,
|
|
57
56
|
'campaigns.count': true,
|
|
58
|
-
'pitches.count': true
|
|
59
|
-
uploadcare_assets_group_uuid: true
|
|
57
|
+
'pitches.count': true
|
|
60
58
|
}; // satisfies Record<keyof Story.OnDemandFields, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
|
|
61
59
|
|
|
62
60
|
const ALL_EXTRA_FIELDS = exports.ALL_EXTRA_FIELDS = Object.keys(ALL_EXTRA_FIELDS_SHAPE);
|
|
@@ -23,8 +23,7 @@ const EXTENDED_STORY_INCLUDED_EXTRA_FIELDS_SHAPE = {
|
|
|
23
23
|
tag_names: true,
|
|
24
24
|
content: true,
|
|
25
25
|
attached_gallery_content: true,
|
|
26
|
-
referenced_entities: true
|
|
27
|
-
uploadcare_assets_group_uuid: true
|
|
26
|
+
referenced_entities: true
|
|
28
27
|
}; // satisfies Record<keyof Omit<ExtendedStory, keyof Story>, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
|
|
29
28
|
|
|
30
29
|
const ALL_EXTRA_FIELDS_SHAPE = {
|
|
@@ -45,8 +44,7 @@ const ALL_EXTRA_FIELDS_SHAPE = {
|
|
|
45
44
|
attached_contacts_content: true,
|
|
46
45
|
referenced_entities: true,
|
|
47
46
|
'campaigns.count': true,
|
|
48
|
-
'pitches.count': true
|
|
49
|
-
uploadcare_assets_group_uuid: true
|
|
47
|
+
'pitches.count': true
|
|
50
48
|
}; // satisfies Record<keyof Story.OnDemandFields, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
|
|
51
49
|
|
|
52
50
|
export const ALL_EXTRA_FIELDS = Object.keys(ALL_EXTRA_FIELDS_SHAPE);
|
|
@@ -26,6 +26,7 @@ let CoverageEntry = exports.CoverageEntry = void 0;
|
|
|
26
26
|
Provider["MANUAL"] = "manual";
|
|
27
27
|
Provider["MEDIAWEB"] = "mediaweb";
|
|
28
28
|
Provider["MELTWATER"] = "meltwater";
|
|
29
|
+
Provider["NETFEEDR"] = "netfeedr";
|
|
29
30
|
Provider["OPOINT"] = "opoint";
|
|
30
31
|
return Provider;
|
|
31
32
|
}({});
|
package/dist/types/Story.d.ts
CHANGED
|
@@ -149,6 +149,7 @@ export interface Story {
|
|
|
149
149
|
is_pinned: boolean;
|
|
150
150
|
pinned_by: UserRef | null;
|
|
151
151
|
seo_settings: SEOSettings;
|
|
152
|
+
uploadcare_assets_group_uuid: string | null;
|
|
152
153
|
}
|
|
153
154
|
export declare namespace Story {
|
|
154
155
|
enum FormatVersion {
|
|
@@ -261,7 +262,6 @@ export declare namespace Story {
|
|
|
261
262
|
* Number of pitches linked to this story.
|
|
262
263
|
*/
|
|
263
264
|
'pitches.count': number;
|
|
264
|
-
uploadcare_assets_group_uuid: string | null;
|
|
265
265
|
}
|
|
266
266
|
function isActiveNewsroom(story: Pick<Story, 'newsroom'>): boolean;
|
|
267
267
|
function isInactiveNewsroom(story: Pick<Story, 'newsroom'>): boolean;
|
|
@@ -315,6 +315,6 @@ export declare namespace Story {
|
|
|
315
315
|
format_version: FormatVersion.SLATEJS_V6;
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
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'
|
|
318
|
+
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'> {
|
|
319
319
|
}
|
|
320
320
|
export {};
|