update human input node
parent
8f7630c4e2
commit
05ffe42378
@ -1,9 +1,39 @@
|
|||||||
import type { CommonNodeType, Variable } from '@/app/components/workflow/types'
|
import type { CommonNodeType, Variable } from '@/app/components/workflow/types'
|
||||||
|
|
||||||
export type HumanInputNodeType = CommonNodeType & {
|
export type HumanInputNodeType = CommonNodeType & {
|
||||||
deliveryMethod: any[]
|
deliveryMethod: DeliveryMethod[]
|
||||||
formContent: any
|
formContent: any
|
||||||
userActions: any[]
|
userActions: UserAction[]
|
||||||
timeout: any
|
timeout: any
|
||||||
outputs: Variable[]
|
outputs: Variable[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type Timeout = {
|
||||||
|
value: number
|
||||||
|
unit: 'hours' | 'days'
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum DeliveryMethodType {
|
||||||
|
WebApp = 'webapp',
|
||||||
|
Email = 'email',
|
||||||
|
Slack = 'slack',
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DeliveryMethod = {
|
||||||
|
type: DeliveryMethodType
|
||||||
|
enabled: boolean
|
||||||
|
configure?: Record<string, any>
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum UserActionButtonType {
|
||||||
|
Primary = 'primary',
|
||||||
|
Default = 'default',
|
||||||
|
Accent = 'accent',
|
||||||
|
Ghost = 'ghost',
|
||||||
|
}
|
||||||
|
|
||||||
|
export type UserAction = {
|
||||||
|
name: string
|
||||||
|
text: string
|
||||||
|
type: UserActionButtonType
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue