Add output properties

This commit is contained in:
Adria Navarro 2024-07-23 13:34:51 +02:00
parent 15a8907811
commit 37e237a3a4
1 changed files with 22 additions and 2 deletions

View File

@ -28,8 +28,28 @@ export const definition: AutomationTriggerSchema = {
}, },
required: ["tableId"], required: ["tableId"],
}, },
outputs: { properties: {} }, outputs: {
properties: {
id: {
type: AutomationIOType.STRING,
description: "Row ID - can be used for updating",
},
revision: {
type: AutomationIOType.STRING,
description: "Revision of row",
},
table: {
type: AutomationIOType.OBJECT,
customType: AutomationCustomIOType.TABLE,
title: "Table",
},
row: {
type: AutomationIOType.OBJECT,
customType: AutomationCustomIOType.ROW,
description: "The new row that was created",
},
},
},
}, },
event: AutomationEventType.ROW_SAVE, event: AutomationEventType.ROW_SAVE,
} }