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, 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