@prezly/sdk 11.9.1 → 11.10.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,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.DEFAULT_USER_AGENT = void 0;
7
- const VERSION = "11.9.0";
7
+ const VERSION = "11.9.1";
8
8
  const URL = 'https://github.com/prezly/javascript-sdk';
9
9
  const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
10
10
  exports.DEFAULT_USER_AGENT = DEFAULT_USER_AGENT;
@@ -1,3 +1,3 @@
1
- const VERSION = "11.9.0";
1
+ const VERSION = "11.9.1";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -1,4 +1,4 @@
1
- import type { CultureRef, NewsroomCompanyInformation, NewsroomLanguageSettings } from '../../types';
1
+ import type { CultureRef, NewsroomLanguageSettings } from '../../types';
2
2
  export interface ListOptions {
3
3
  sortOrder?: string;
4
4
  }
@@ -9,7 +9,29 @@ export interface ListResponse {
9
9
  export interface SettingsUpdateRequest {
10
10
  is_default?: true;
11
11
  code?: CultureRef['code'];
12
- company_information?: Partial<NewsroomCompanyInformation>;
12
+ company_information?: {
13
+ name?: string;
14
+ about?: string;
15
+ about_plaintext?: string;
16
+ email?: string | null;
17
+ website?: string | null;
18
+ phone?: string | null;
19
+ address?: string | null;
20
+ twitter?: string | null;
21
+ facebook?: string | null;
22
+ linkedin?: string | null;
23
+ pinterest?: string | null;
24
+ youtube?: string | null;
25
+ instagram?: string | null;
26
+ tiktok?: string | null;
27
+ email_disclaimer?: string;
28
+ cookie_statement?: string;
29
+ subscribe_disclaimer?: string;
30
+ seo_settings?: {
31
+ meta_title?: string | null;
32
+ meta_description?: string | null;
33
+ };
34
+ };
13
35
  }
14
36
  export interface UnsafeUpdateErrorResponse {
15
37
  status: 'error';
@@ -64,6 +64,7 @@ export interface UpdateRequest {
64
64
  * Uploadcare Image JSON
65
65
  */
66
66
  icon?: string;
67
+ google_search_console_key?: string | null;
67
68
  google_analytics_id?: string | null;
68
69
  segment_analytics_id?: string | null;
69
70
  /**
@@ -90,6 +90,7 @@ export interface Newsroom extends NewsroomRef {
90
90
  };
91
91
  ga_tracking_id: string | null;
92
92
  segment_analytics_id: string | null;
93
+ google_search_console_key: string | null;
93
94
  is_subscription_form_enabled: boolean;
94
95
  is_white_labeled: boolean;
95
96
  is_plausible_enabled: boolean;
@@ -1,3 +1,4 @@
1
+ import type { SEOSettings } from './SEOSettings';
1
2
  export interface NewsroomCompanyInformation {
2
3
  name: string;
3
4
  about: string;
@@ -13,16 +14,8 @@ export interface NewsroomCompanyInformation {
13
14
  youtube: string | null;
14
15
  instagram: string | null;
15
16
  tiktok: string | null;
16
- /**
17
- * Only admins are allowed to update this field.
18
- */
19
17
  email_disclaimer: string;
20
- /**
21
- * Only admins are allowed to update this field.
22
- */
23
18
  cookie_statement: string;
24
- /**
25
- * Only admins are allowed to update this field.
26
- */
27
19
  subscribe_disclaimer: string;
20
+ seo_settings: SEOSettings;
28
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "11.9.1",
3
+ "version": "11.10.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",