2022-11-18 18:21:40 +01:00
|
|
|
import { z } from 'zod'
|
2021-12-30 10:24:16 +01:00
|
|
|
|
2022-11-18 18:21:40 +01:00
|
|
|
export const answerSchema = z.object({
|
|
|
|
createdAt: z.date(),
|
|
|
|
resultId: z.string(),
|
|
|
|
blockId: z.string(),
|
|
|
|
groupId: z.string(),
|
|
|
|
variableId: z.string().nullable(),
|
|
|
|
content: z.string(),
|
|
|
|
storageUsed: z.number().nullable(),
|
|
|
|
})
|
2022-01-03 17:39:59 +01:00
|
|
|
|
|
|
|
export type Stats = {
|
|
|
|
totalViews: number
|
|
|
|
totalStarts: number
|
2022-02-12 12:54:16 +01:00
|
|
|
totalCompleted: number
|
2022-01-03 17:39:59 +01:00
|
|
|
}
|
2022-11-18 18:21:40 +01:00
|
|
|
|
|
|
|
export type Answer = z.infer<typeof answerSchema>
|