Midday / apps /api /src /schemas /notification-settings.ts
Jules
Final deployment with all fixes and verified content
c09f67c
import { z } from "zod";
export const notificationChannelSchema = z.enum(["in_app", "email", "push"]);
export const getNotificationSettingsSchema = z.object({
notificationType: z.string().optional(),
channel: notificationChannelSchema.optional(),
});
export const updateNotificationSettingSchema = z.object({
notificationType: z.string(),
channel: notificationChannelSchema,
enabled: z.boolean(),
});
export const bulkUpdateNotificationSettingsSchema = z.object({
updates: z.array(
z.object({
notificationType: z.string(),
channel: notificationChannelSchema,
enabled: z.boolean(),
}),
),
});