fix: 🚑️ Webhook and instant updates
This commit is contained in:
@ -3,7 +3,13 @@ import { PublicTypebot as PublicTypebotFromPrisma } from 'db'
|
||||
|
||||
export type PublicTypebot = Omit<
|
||||
PublicTypebotFromPrisma,
|
||||
'blocks' | 'theme' | 'settings' | 'variables' | 'edges'
|
||||
| 'blocks'
|
||||
| 'theme'
|
||||
| 'settings'
|
||||
| 'variables'
|
||||
| 'edges'
|
||||
| 'createdAt'
|
||||
| 'updatedAt'
|
||||
> & {
|
||||
blocks: PublicBlock[]
|
||||
variables: Variable[]
|
||||
|
@ -7,3 +7,8 @@ export type Result = Omit<
|
||||
> & { createdAt: string; prefilledVariables: VariableWithValue[] }
|
||||
|
||||
export type ResultWithAnswers = Result & { answers: Answer[] }
|
||||
|
||||
export type ResultValues = Pick<
|
||||
ResultWithAnswers,
|
||||
'answers' | 'createdAt' | 'prefilledVariables'
|
||||
>
|
||||
|
@ -6,7 +6,7 @@ import { Variable } from './variable'
|
||||
|
||||
export type Typebot = Omit<
|
||||
TypebotFromPrisma,
|
||||
'blocks' | 'theme' | 'settings' | 'variables' | 'edges'
|
||||
'blocks' | 'theme' | 'settings' | 'variables' | 'edges' | 'createdAt'
|
||||
> & {
|
||||
blocks: Block[]
|
||||
variables: Variable[]
|
||||
|
Reference in New Issue
Block a user