@prezly/sdk 19.0.0 → 19.1.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.
@@ -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 = "18.3.0";
7
+ const VERSION = "19.0.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})`;
@@ -1,3 +1,3 @@
1
- const VERSION = "18.3.0";
1
+ const VERSION = "19.0.0";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -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
- slug?: Story['slug'];
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
- slug?: Story['slug'] | null;
103
+ custom_slug?: Story['custom_slug'];
104
104
  published_at?: Iso8601DateTime;
105
105
  visibility?: Story.Visibility;
106
106
  culture?: CultureRef['code'];
@@ -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.
@@ -54,6 +55,7 @@ export interface Story {
54
55
  intro: string;
55
56
  summary: string;
56
57
  slug: string;
58
+ custom_slug: string | null;
57
59
  format_version: Story.FormatVersion;
58
60
  culture: CultureRef;
59
61
  author: UserRef | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "19.0.0",
3
+ "version": "19.1.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",