import type { NotificationSource } from './NotificationSource'; import type { NotificationTemplateData } from './NotificationTemplateData'; /** * Request serializer for notification preview */ export type NotificationPreview = { /** * Use a predefined template in the system */ template_id?: string | null; /** * Specify this to send a new custom message without using a predefined template */ template_data?: NotificationTemplateData | null; /** * Specify the channel ids to send notifications to. */ channels: Array; /** * Specify the sources to send notifications to */ sources: Array; /** * Specify the context that would be available in the message text */ context?: Record; /** * (ISO datetime) Specify the date and time of processing this notification. Note, notifications are sent hourly and only scheduled messages prior to the beginning of the hour would be sent */ process_on?: string | null; };