2023-12-22 09:13:53 +01:00
|
|
|
import { z } from '../zod'
|
2023-06-30 12:13:17 +02:00
|
|
|
|
2023-11-08 15:34:16 +01:00
|
|
|
export const totalAnswersSchema = z.object({
|
2023-06-30 12:13:17 +02:00
|
|
|
blockId: z.string(),
|
|
|
|
itemId: z.string().optional(),
|
|
|
|
total: z.number(),
|
|
|
|
})
|
2023-11-08 15:34:16 +01:00
|
|
|
export type TotalAnswers = z.infer<typeof totalAnswersSchema>
|
2023-06-30 12:13:17 +02:00
|
|
|
|
2023-11-08 15:34:16 +01:00
|
|
|
export const totalVisitedEdgesSchema = z.object({
|
|
|
|
edgeId: z.string(),
|
|
|
|
total: z.number(),
|
|
|
|
})
|
|
|
|
export type TotalVisitedEdges = z.infer<typeof totalVisitedEdgesSchema>
|