2
0
Files
bot/packages/models/result.ts

27 lines
616 B
TypeScript
Raw Normal View History

import { Result as ResultFromPrisma } from 'db'
import { Answer, VariableWithValue } from '.'
2022-06-11 07:27:38 +02:00
import { InputBlockType } from './typebot/blocks/shared'
export type Result = Omit<ResultFromPrisma, 'createdAt' | 'variables'> & {
createdAt: string
variables: VariableWithValue[]
}
export type ResultWithAnswers = Result & { answers: Answer[] }
export type ResultValues = Pick<
ResultWithAnswers,
'answers' | 'createdAt' | 'variables'
>
export type ResultHeaderCell = {
id: string
label: string
blocks?: {
id: string
groupId: string
}[]
2022-06-11 07:27:38 +02:00
blockType?: InputBlockType
variableIds?: string[]
}