feat(api): ✨ Add list results endpoint
This commit is contained in:
@ -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[] }
|
||||
|
Reference in New Issue
Block a user