@prezly/sdk 20.5.1 → 21.0.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 = "20.5.0";
7
+ const VERSION = "20.5.2";
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 = "20.5.0";
1
+ const VERSION = "20.5.2";
2
2
  const URL = 'https://github.com/prezly/javascript-sdk';
3
3
  export const DEFAULT_USER_AGENT = `prezly-javascript-sdk/${VERSION} (+${URL})`;
@@ -109,4 +109,9 @@ export interface UpdateRequest {
109
109
  status?: Newsroom.Status.ACTIVE | Newsroom.Status.INACTIVE;
110
110
  is_plausible_enabled?: boolean;
111
111
  is_white_labeled?: boolean;
112
+ onetrust_cookie_consent?: {
113
+ is_enabled?: boolean;
114
+ category?: string;
115
+ script?: string;
116
+ };
112
117
  }
@@ -5,10 +5,10 @@ export interface ContactTag {
5
5
  name: string;
6
6
  contacts_number: number;
7
7
  contacts_url: string;
8
- created_at: Iso8601DateTime | undefined;
9
- updated_at: Iso8601DateTime | undefined;
10
- creator: UserRef | undefined;
11
- last_updated_by_user: UserRef | undefined;
8
+ created_at: Iso8601DateTime | null;
9
+ updated_at: Iso8601DateTime | null;
10
+ creator: UserRef | null;
11
+ last_updated_by_user: UserRef | null;
12
12
  }
13
13
  export declare namespace ContactTag {
14
14
  type Identifier = ContactTag['id'] | ContactTag['name'];
@@ -86,9 +86,10 @@ export interface Newsroom extends NewsroomRef {
86
86
  custom_privacy_policy_link: string | null;
87
87
  custom_data_request_link: string | null;
88
88
  tracking_policy: Newsroom.TrackingPolicy;
89
- cookiepro: {
89
+ onetrust_cookie_consent: {
90
90
  is_enabled: boolean;
91
- category: string | null;
91
+ category: string;
92
+ script: string;
92
93
  };
93
94
  google_analytics_id: string | null;
94
95
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prezly/sdk",
3
- "version": "20.5.1",
3
+ "version": "21.0.0",
4
4
  "description": "Prezly API SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",