import { AllowedValueWithCodeOptionalPayload } from '../../commonPayloadTypes/commonPayload'; import { UserPayload } from '../user/userPayload'; import { Notification } from './types/notificationStateTypes'; interface NotificationUpdatesPayload { field: string; new_value: string | string[] | AllowedValueWithCodeOptionalPayload | null; old_value: string | string[] | AllowedValueWithCodeOptionalPayload | null; type: string; } interface NotificationAdditionalInfoPayload { due_date: string; } interface NotificationMetaDataPayload { additional_info: NotificationAdditionalInfoPayload | null; event_description: string; event_status: AllowedValueWithCodeOptionalPayload | null; event_title: string; tags: string[]; updates: NotificationUpdatesPayload[]; } interface NotificationActivityPayload { activity_type: string; metadata: NotificationMetaDataPayload; } interface NotificationEventDataPayload { activities: NotificationActivityPayload[]; authors: UserPayload[]; create_timestamp: string; description: string | null; entity_id: string; title: string; } export interface NotificationPayload { create_time: string; data: NotificationEventDataPayload; mode: string; notification_group: string; notification_identifier: string; status: string; tenant_id: string; update_time: string; user_id: string; user_notification_id: string; } export declare const mapNotificationPayloadToNotification: (payload: NotificationPayload) => Notification; export {};