2
0

Introduce bot v2 in builder (#328)

Also, the new engine is the default for updated typebots for viewer

Closes #211
This commit is contained in:
Baptiste Arnaud
2023-02-21 15:25:14 +01:00
committed by GitHub
parent 527dc8a5b1
commit debdac12ff
208 changed files with 4462 additions and 5236 deletions

View File

@ -13,6 +13,7 @@ import { schemaForType } from './utils'
export const publicTypebotSchema = schemaForType<PublicTypebotPrisma>()(
z.object({
id: z.string(),
version: z.enum(['3']).nullable(),
createdAt: z.date(),
updatedAt: z.date(),
typebotId: z.string(),

View File

@ -41,7 +41,7 @@ const resultsTablePreferencesSchema = z.object({
export const typebotSchema = schemaForType<TypebotPrisma>()(
z.object({
version: z.enum(['2']).optional(),
version: z.enum(['3']).nullable(),
id: z.string(),
name: z.string(),
groups: z.array(groupSchema),