diff --git a/src/endpoints/Newsrooms/types.ts b/src/endpoints/Newsrooms/types.ts index 711a4e75..9652826d 100644 --- a/src/endpoints/Newsrooms/types.ts +++ b/src/endpoints/Newsrooms/types.ts @@ -107,6 +107,21 @@ export interface UpdateRequest { * "custom_privacy_policy_link" feature flag */ custom_privacy_policy_link?: string | null; + /** + * Available only when license has + * "custom_privacy_policy_link" feature flag + */ + custom_privacy_policy_content?: string | null; + /** + * Available only when license has + * "custom_privacy_policy_link" feature flag + */ + custom_privacy_cookie_link?: string | null; + /** + * Available only when license has + * "custom_privacy_policy_link" feature flag + */ + custom_privacy_cookie_content?: string | null; /** * Available only when license has * "custom_data_request_link" feature flag diff --git a/src/types/Newsroom.ts b/src/types/Newsroom.ts index bc4f36cd..feca3323 100644 --- a/src/types/Newsroom.ts +++ b/src/types/Newsroom.ts @@ -94,9 +94,31 @@ export interface Newsroom extends NewsroomRef { email_branding: Newsroom.EmailBranding; is_privacy_portal_enabled: boolean; + /** + * @deprecated Please use `policies.privacy_policy.link` instead. + */ custom_privacy_policy_link: string | null; custom_data_request_link: string | null; + policies: { + privacy_policy: + | { + link: string; + } + | { + content: string; + origin: 'default' | 'custom'; + }; + cookie_policy: + | { + link: string; + } + | { + content: string; + origin: 'default' | 'custom'; + }; + }; + tracking_policy: Newsroom.TrackingPolicy; onetrust_cookie_consent: { is_enabled: boolean; @@ -153,9 +175,19 @@ export namespace Newsroom { } export enum TrackingPolicy { + /** + * @deprecated Please use `NORMAL` instead. + */ DEFAULT = 'default', DISABLED = 'disabled', + /** + * @deprecated Please use `STRICT` instead. + */ CONSENT_TO_IDENTIFY = 'consent-to-identify', + + STRICT = 'strict', + NORMAL = 'normal', + LENIENT = 'lenient', } export enum EmailLogoAlignment {