2
0
Files
bot/packages/schemas/features/analytics.ts
Baptiste Arnaud 35300eaf34 ♻️ Introduce typebot v6 with events (#1013)
Closes #885
2023-11-08 15:34:16 +01:00

15 lines
381 B
TypeScript

import { z } from 'zod'
export const totalAnswersSchema = z.object({
blockId: z.string(),
itemId: z.string().optional(),
total: z.number(),
})
export type TotalAnswers = z.infer<typeof totalAnswersSchema>
export const totalVisitedEdgesSchema = z.object({
edgeId: z.string(),
total: z.number(),
})
export type TotalVisitedEdges = z.infer<typeof totalVisitedEdgesSchema>