2
0
Files
bot/packages/schemas/features/analytics.ts
2023-12-22 09:13:53 +01:00

15 lines
384 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>