Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 3x 3x 3x | import { z } from 'zod'
export const notificationTypeSchema = z.enum(['VACCINE_DELAYED', 'APPOINTMENT_UPCOMING'])
export type NotificationType = z.infer<typeof notificationTypeSchema>
export const notificationSchema = z.object({
id: z.string().uuid(),
babyId: z.string().uuid(),
type: notificationTypeSchema,
referenceId: z.string(),
title: z.string(),
message: z.string(),
readAt: z.string().nullable(),
createdAt: z.string(),
})
export type Notification = z.infer<typeof notificationSchema>
export const notificationListSchema = z.array(notificationSchema)
|