more typings
This commit is contained in:
parent
2ef0ea3e33
commit
317ef26f1a
File diff suppressed because it is too large
Load Diff
|
@ -6,6 +6,7 @@ import {
|
||||||
AutomationFeature,
|
AutomationFeature,
|
||||||
InputOutputBlock,
|
InputOutputBlock,
|
||||||
AutomationTriggerStepId,
|
AutomationTriggerStepId,
|
||||||
|
AutomationEventType,
|
||||||
} from "./automation"
|
} from "./automation"
|
||||||
import {
|
import {
|
||||||
CollectStepInputs,
|
CollectStepInputs,
|
||||||
|
@ -142,6 +143,7 @@ export type ActionImplementations<T extends Hosting> = {
|
||||||
export interface AutomationStepSchemaBase {
|
export interface AutomationStepSchemaBase {
|
||||||
name: string
|
name: string
|
||||||
stepTitle?: string
|
stepTitle?: string
|
||||||
|
event?: AutomationEventType
|
||||||
tagline: string
|
tagline: string
|
||||||
icon: string
|
icon: string
|
||||||
description: string
|
description: string
|
||||||
|
@ -344,7 +346,7 @@ export interface AutomationTriggerSchema<
|
||||||
> extends AutomationStepSchemaBase {
|
> extends AutomationStepSchemaBase {
|
||||||
id: string
|
id: string
|
||||||
type: AutomationStepType.TRIGGER
|
type: AutomationStepType.TRIGGER
|
||||||
event?: string
|
event?: AutomationEventType
|
||||||
cronJobId?: string
|
cronJobId?: string
|
||||||
stepId: TTrigger
|
stepId: TTrigger
|
||||||
inputs: AutomationTriggerInputs<TTrigger> & Record<string, any> // The record union to be removed once the types are fixed
|
inputs: AutomationTriggerInputs<TTrigger> & Record<string, any> // The record union to be removed once the types are fixed
|
||||||
|
|
Loading…
Reference in New Issue