2022-11-25 20:57:07 +01:00
|
|
|
import { AutomationTrigger, AutomationTriggerStepId } from "@budibase/types"
|
|
|
|
|
|
|
|
export const definition: AutomationTrigger = {
|
2021-09-06 18:53:02 +02:00
|
|
|
name: "App Action",
|
|
|
|
event: "app:trigger",
|
2021-09-14 19:22:33 +02:00
|
|
|
icon: "Apps",
|
2021-09-06 18:53:02 +02:00
|
|
|
tagline: "Automation fired from the frontend",
|
|
|
|
description: "Trigger an automation from an action inside your app",
|
2022-11-25 20:57:07 +01:00
|
|
|
stepId: AutomationTriggerStepId.APP,
|
2021-09-06 18:53:02 +02:00
|
|
|
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",
|
2021-09-06 18:53:02 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
required: ["fields"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
type: "TRIGGER",
|
|
|
|
}
|