@prezly/sdk 19.0.0 → 19.1.1
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
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 = "
|
|
7
|
+
const VERSION = "19.1.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
|
@@ -78,7 +78,7 @@ interface GenericCreateRequest {
|
|
|
78
78
|
* - Conflicts can be force-resolved by passing `?force` GET parameter.
|
|
79
79
|
* This will update other conflicting stories slugs to something else (i.e. adding random suffix).
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
custom_slug?: Story['custom_slug'];
|
|
82
82
|
newsroom?: Newsroom['id'] | Newsroom['uuid'];
|
|
83
83
|
published_at?: Iso8601DateTime;
|
|
84
84
|
visibility?: Story.Visibility;
|
|
@@ -100,7 +100,7 @@ interface GenericUpdateRequest {
|
|
|
100
100
|
* - Conflicts can be force-resolved by passing `?force` GET parameter.
|
|
101
101
|
* This will update other conflicting stories slugs to something else (i.e. adding random suffix).
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
custom_slug?: Story['custom_slug'];
|
|
104
104
|
published_at?: Iso8601DateTime;
|
|
105
105
|
visibility?: Story.Visibility;
|
|
106
106
|
culture?: CultureRef['code'];
|
package/dist/types/Story.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface StoryRef {
|
|
|
15
15
|
id: number;
|
|
16
16
|
title: string;
|
|
17
17
|
slug: string;
|
|
18
|
+
custom_slug: string | null;
|
|
18
19
|
status: Story.Status;
|
|
19
20
|
/**
|
|
20
21
|
* @deprecated Please use `status` instead.
|
|
@@ -53,7 +54,19 @@ export interface Story {
|
|
|
53
54
|
subtitle: string;
|
|
54
55
|
intro: string;
|
|
55
56
|
summary: string;
|
|
57
|
+
/**
|
|
58
|
+
* The effective Story slug.
|
|
59
|
+
* Calculated as `custom_slug ?? auto_slug`.
|
|
60
|
+
*/
|
|
56
61
|
slug: string;
|
|
62
|
+
/**
|
|
63
|
+
* Automatically generated Story slug.
|
|
64
|
+
*/
|
|
65
|
+
auto_slug: string;
|
|
66
|
+
/**
|
|
67
|
+
* Custom-set Story slug.
|
|
68
|
+
*/
|
|
69
|
+
custom_slug: string | null;
|
|
57
70
|
format_version: Story.FormatVersion;
|
|
58
71
|
culture: CultureRef;
|
|
59
72
|
author: UserRef | null;
|