From 37e237a3a4980e937b7166d89e74c176d6a9d0bf Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 23 Jul 2024 13:34:51 +0200 Subject: [PATCH] Add output properties --- .../src/automations/triggerInfo/rowAction.ts | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/packages/server/src/automations/triggerInfo/rowAction.ts b/packages/server/src/automations/triggerInfo/rowAction.ts index a7454e8606..6dae632d16 100644 --- a/packages/server/src/automations/triggerInfo/rowAction.ts +++ b/packages/server/src/automations/triggerInfo/rowAction.ts @@ -28,8 +28,28 @@ export const definition: AutomationTriggerSchema = { }, 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, }