2
0

🚸 Loosen file import parsing strictness

This commit is contained in:
Baptiste Arnaud
2023-08-18 09:27:14 +02:00
parent e2075d6135
commit 19fc576957
7 changed files with 35 additions and 47 deletions

View File

@@ -71,6 +71,23 @@ export const typebotSchema = z.object({
isClosed: z.boolean(),
}) satisfies z.ZodType<TypebotPrisma>
export const typebotCreateSchema = typebotSchema
.pick({
name: true,
icon: true,
selectedThemeTemplateId: true,
groups: true,
theme: true,
settings: true,
folderId: true,
variables: true,
edges: true,
resultsTablePreferences: true,
publicId: true,
customDomain: true,
})
.partial()
export type Typebot = z.infer<typeof typebotSchema>
export type Target = z.infer<typeof targetSchema>
export type Source = z.infer<typeof sourceSchema>