@prezly/sdk 23.5.1 → 23.7.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/Newsrooms/types.d.ts +1 -0
- package/dist/endpoints/Stories/types.cjs +2 -1
- package/dist/endpoints/Stories/types.js +2 -1
- package/dist/types/NewsroomTheme.cjs +2 -1
- package/dist/types/NewsroomTheme.d.ts +5 -1
- package/dist/types/NewsroomTheme.js +2 -1
- package/dist/types/Story.d.ts +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 = "23.
|
|
7
|
+
const VERSION = "23.6.0";
|
|
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
|
@@ -54,7 +54,8 @@ const ALL_EXTRA_FIELDS_SHAPE = {
|
|
|
54
54
|
attached_contacts_content: true,
|
|
55
55
|
referenced_entities: true,
|
|
56
56
|
'campaigns.count': true,
|
|
57
|
-
'pitches.count': true
|
|
57
|
+
'pitches.count': true,
|
|
58
|
+
uploadcare_assets_group_uuid: true
|
|
58
59
|
}; // satisfies Record<keyof Story.OnDemandFields, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
|
|
59
60
|
|
|
60
61
|
const ALL_EXTRA_FIELDS = exports.ALL_EXTRA_FIELDS = Object.keys(ALL_EXTRA_FIELDS_SHAPE);
|
|
@@ -44,7 +44,8 @@ const ALL_EXTRA_FIELDS_SHAPE = {
|
|
|
44
44
|
attached_contacts_content: true,
|
|
45
45
|
referenced_entities: true,
|
|
46
46
|
'campaigns.count': true,
|
|
47
|
-
'pitches.count': true
|
|
47
|
+
'pitches.count': true,
|
|
48
|
+
uploadcare_assets_group_uuid: true
|
|
48
49
|
}; // satisfies Record<keyof Story.OnDemandFields, boolean>; // TODO: Use Typescript `satisfies` operator, when it's out of beta
|
|
49
50
|
|
|
50
51
|
export const ALL_EXTRA_FIELDS = Object.keys(ALL_EXTRA_FIELDS_SHAPE);
|
|
@@ -28,8 +28,9 @@ let NewsroomTheme = exports.NewsroomTheme = void 0;
|
|
|
28
28
|
Feature["CTA_BUTTONS"] = "cta_buttons";
|
|
29
29
|
Feature["VIDEO_LAYOUT"] = "video_layout";
|
|
30
30
|
Feature["EMBED_LAYOUT"] = "embed_layout";
|
|
31
|
+
Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy";
|
|
31
32
|
return Feature;
|
|
32
|
-
}({}); // DEV-
|
|
33
|
+
}({}); // DEV-19123
|
|
33
34
|
_NewsroomTheme.Feature = Feature;
|
|
34
35
|
function isFeatureSupported(theme, feature) {
|
|
35
36
|
return theme.features.includes(feature);
|
|
@@ -33,7 +33,8 @@ export declare namespace NewsroomTheme {
|
|
|
33
33
|
TITLE_FORMATTING = "title_formatting",
|
|
34
34
|
CTA_BUTTONS = "cta_buttons",
|
|
35
35
|
VIDEO_LAYOUT = "video_layout",// DEV-7588
|
|
36
|
-
EMBED_LAYOUT = "embed_layout"
|
|
36
|
+
EMBED_LAYOUT = "embed_layout",// DEV-11475
|
|
37
|
+
STRICT_TRACKING_POLICY = "strict_tracking_policy"
|
|
37
38
|
}
|
|
38
39
|
function isFeatureSupported(theme: NewsroomTheme, feature: NewsroomTheme.Feature): boolean;
|
|
39
40
|
}
|
|
@@ -52,6 +53,9 @@ export declare namespace NewsroomThemePreset {
|
|
|
52
53
|
enum?: (string | null)[];
|
|
53
54
|
'prezly:feature'?: string;
|
|
54
55
|
type: string | (string | null)[];
|
|
56
|
+
items?: string | string[] | {
|
|
57
|
+
enum: (string | null)[];
|
|
58
|
+
};
|
|
55
59
|
}>;
|
|
56
60
|
required: string[];
|
|
57
61
|
type: string;
|
|
@@ -22,8 +22,9 @@ export let NewsroomTheme;
|
|
|
22
22
|
Feature["CTA_BUTTONS"] = "cta_buttons";
|
|
23
23
|
Feature["VIDEO_LAYOUT"] = "video_layout";
|
|
24
24
|
Feature["EMBED_LAYOUT"] = "embed_layout";
|
|
25
|
+
Feature["STRICT_TRACKING_POLICY"] = "strict_tracking_policy";
|
|
25
26
|
return Feature;
|
|
26
|
-
}({}); // DEV-
|
|
27
|
+
}({}); // DEV-19123
|
|
27
28
|
_NewsroomTheme.Feature = Feature;
|
|
28
29
|
function isFeatureSupported(theme, feature) {
|
|
29
30
|
return theme.features.includes(feature);
|
package/dist/types/Story.d.ts
CHANGED
|
@@ -261,6 +261,7 @@ export declare namespace Story {
|
|
|
261
261
|
* Number of pitches linked to this story.
|
|
262
262
|
*/
|
|
263
263
|
'pitches.count': number;
|
|
264
|
+
uploadcare_assets_group_uuid: string | null;
|
|
264
265
|
}
|
|
265
266
|
function isActiveNewsroom(story: Pick<Story, 'newsroom'>): boolean;
|
|
266
267
|
function isInactiveNewsroom(story: Pick<Story, 'newsroom'>): boolean;
|