more typings

This commit is contained in:
Peter Clement 2024-12-19 15:20:08 +00:00
parent 2ef0ea3e33
commit 317ef26f1a
2 changed files with 404 additions and 334 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@ import {
AutomationFeature,
InputOutputBlock,
AutomationTriggerStepId,
AutomationEventType,
} from "./automation"
import {
CollectStepInputs,
@ -142,6 +143,7 @@ export type ActionImplementations<T extends Hosting> = {
export interface AutomationStepSchemaBase {
name: string
stepTitle?: string
event?: AutomationEventType
tagline: string
icon: string
description: string
@ -344,7 +346,7 @@ export interface AutomationTriggerSchema<
> extends AutomationStepSchemaBase {
id: string
type: AutomationStepType.TRIGGER
event?: string
event?: AutomationEventType
cronJobId?: string
stepId: TTrigger
inputs: AutomationTriggerInputs<TTrigger> & Record<string, any> // The record union to be removed once the types are fixed