diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-08-17 18:50:13 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-08-17 18:50:13 +0200 |
| commit | f3ddf263341cf1a37a70c457fe1107a730cfad47 (patch) | |
| tree | 4e2501ed8c64ccd25575d8b345af9520932d6320 /apps/web/src/lib/schemas | |
| parent | bb461fa9fbefa1895dd0e49eba8f7eebe4906cb4 (diff) | |
| download | opencut-f3ddf263341cf1a37a70c457fe1107a730cfad47.tar.gz | |
feat: export waitlist
Diffstat (limited to 'apps/web/src/lib/schemas')
| -rw-r--r-- | apps/web/src/lib/schemas/waitlist.ts | 15 |
1 files changed, 15 insertions, 0 deletions
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<typeof exportWaitlistSchema>;
+export type ExportWaitlistResponse = z.infer<
+ typeof exportWaitlistResponseSchema
+>;
|
