2
0

feat(api): Add list results endpoint

This commit is contained in:
Baptiste Arnaud
2022-02-21 15:51:40 +01:00
parent e3704f6dd9
commit 9dfcb30365
7 changed files with 140 additions and 5 deletions

View File

@ -1,7 +1,9 @@
import { Result as ResultFromPrisma } from 'db'
import { VariableWithValue } from '.'
import { Answer, VariableWithValue } from '.'
export type Result = Omit<
ResultFromPrisma,
'createdAt' | 'prefilledVariables'
> & { createdAt: string; prefilledVariables: VariableWithValue[] }
export type ResultWithAnswers = Result & { answers: Answer[] }