2
0

(typebotLink) Better typebot link with merge option

Closes #675
This commit is contained in:
Baptiste Arnaud
2023-08-24 07:48:30 +02:00
parent 0acede92ef
commit ee3b94c35d
59 changed files with 1147 additions and 696 deletions

View File

@ -5,6 +5,7 @@ import { LogicBlockType } from './enums'
export const typebotLinkOptionsSchema = z.object({
typebotId: z.string().optional(),
groupId: z.string().optional(),
mergeResults: z.boolean().optional(),
})
export const typebotLinkBlockSchema = blockBaseSchema.merge(
@ -14,7 +15,9 @@ export const typebotLinkBlockSchema = blockBaseSchema.merge(
})
)
export const defaultTypebotLinkOptions: TypebotLinkOptions = {}
export const defaultTypebotLinkOptions: TypebotLinkOptions = {
mergeResults: false,
}
export type TypebotLinkBlock = z.infer<typeof typebotLinkBlockSchema>
export type TypebotLinkOptions = z.infer<typeof typebotLinkOptionsSchema>