Skip to content

Commit

Permalink
Add trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
adrinr committed Jul 25, 2024
1 parent 4743cc3 commit 62eaa11
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/server/src/automations/triggerInfo/rowAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ import {
AutomationEventType,
} from "@budibase/types"

// TODO

export const definition: AutomationTriggerSchema = {
type: AutomationStepType.TRIGGER,
name: "Row Action",
event: AutomationEventType.ROW_ACTION, // TODO
icon: "Workflow", // TODO
tagline:
"Row action triggered in {{inputs.enriched.table.name}} by {{inputs.enriched.row._id}}",
name: "Row Action",
description: "TODO description",
icon: "Workflow",
description: "TODO description", // TODO
stepId: AutomationTriggerStepId.ROW_ACTION,
inputs: {},
schema: {
Expand Down Expand Up @@ -41,15 +44,14 @@ export const definition: AutomationTriggerSchema = {
table: {
type: AutomationIOType.OBJECT,
customType: AutomationCustomIOType.TABLE,
title: "Table",
title: "The table linked to the row action",
},
row: {
type: AutomationIOType.OBJECT,
customType: AutomationCustomIOType.ROW,
description: "The new row that was created",
description: "The row linked to the row action",
},
},
},
},
event: AutomationEventType.ROW_SAVE,
}
1 change: 1 addition & 0 deletions packages/types/src/documents/app/automation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ export enum AutomationEventType {
APP_TRIGGER = "app:trigger",
CRON_TRIGGER = "cron:trigger",
WEBHOOK_TRIGGER = "web:trigger",
ROW_ACTION = "row:action",
}

export type UpdatedRowEventEmitter = {
Expand Down

0 comments on commit 62eaa11

Please sign in to comment.