2
0
Files
bot/packages/schemas/features/folder.ts

14 lines
360 B
TypeScript
Raw Normal View History

import { DashboardFolder } from '@typebot.io/prisma'
import { z } from 'zod'
export const folderSchema = z.object({
id: z.string(),
createdAt: z.date(),
updatedAt: z.date(),
name: z.string(),
parentFolderId: z.string().nullable(),
workspaceId: z.string(),
}) satisfies z.ZodType<DashboardFolder>
export type Folder = z.infer<typeof folderSchema>