budibase/packages/server/src/automations/triggerInfo/app.ts

35 lines
827 B
TypeScript
Raw Normal View History

import { AutomationTrigger, AutomationTriggerStepId } from "@budibase/types"
export const definition: AutomationTrigger = {
name: "App Action",
event: "app:trigger",
2021-09-14 19:22:33 +02:00
icon: "Apps",
tagline: "Automation fired from the frontend",
description: "Trigger an automation from an action inside your app",
stepId: AutomationTriggerStepId.APP,
inputs: {},
schema: {
inputs: {
properties: {
fields: {
type: "object",
customType: "triggerSchema",
title: "Fields",
},
},
required: [],
},
outputs: {
properties: {
fields: {
type: "object",
description: "Fields submitted from the app frontend",
2021-10-11 20:38:43 +02:00
customType: "triggerSchema",
},
},
required: ["fields"],
},
},
type: "TRIGGER",
}