From f3ddf263341cf1a37a70c457fe1107a730cfad47 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sun, 17 Aug 2025 18:50:13 +0200 Subject: feat: export waitlist --- apps/web/src/lib/schemas/waitlist.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 apps/web/src/lib/schemas/waitlist.ts (limited to 'apps/web/src/lib/schemas') diff --git a/apps/web/src/lib/schemas/waitlist.ts b/apps/web/src/lib/schemas/waitlist.ts new file mode 100644 index 00000000..c45540d5 --- /dev/null +++ b/apps/web/src/lib/schemas/waitlist.ts @@ -0,0 +1,15 @@ +import { z } from "zod"; + +export const exportWaitlistSchema = z.object({ + email: z.string().email().max(320), +}); + +export const exportWaitlistResponseSchema = z.object({ + success: z.boolean(), + alreadySubscribed: z.boolean().optional(), +}); + +export type ExportWaitlistInput = z.infer; +export type ExportWaitlistResponse = z.infer< + typeof exportWaitlistResponseSchema +>; -- cgit v1.3.1