2022-11-26 16:10:41 +01:00
|
|
|
import {
|
2023-04-06 19:11:44 +02:00
|
|
|
AutomationCustomIOType,
|
|
|
|
AutomationIOType,
|
|
|
|
AutomationStepType,
|
2022-11-26 16:10:41 +01:00
|
|
|
AutomationTriggerSchema,
|
|
|
|
AutomationTriggerStepId,
|
|
|
|
} from "@budibase/types"
|
2022-11-25 20:57:07 +01:00
|
|
|
|
2022-11-26 16:10:41 +01:00
|
|
|
export const definition: AutomationTriggerSchema = {
|
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: {
|
2023-04-06 19:11:44 +02:00
|
|
|
type: AutomationIOType.OBJECT,
|
|
|
|
customType: AutomationCustomIOType.TRIGGER_SCHEMA,
|
2021-09-06 18:53:02 +02:00
|
|
|
title: "Fields",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
required: [],
|
|
|
|
},
|
|
|
|
outputs: {
|
|
|
|
properties: {
|
|
|
|
fields: {
|
2023-04-06 19:11:44 +02:00
|
|
|
type: AutomationIOType.OBJECT,
|
2021-09-06 18:53:02 +02:00
|
|
|
description: "Fields submitted from the app frontend",
|
2023-04-06 19:11:44 +02:00
|
|
|
customType: AutomationCustomIOType.TRIGGER_SCHEMA,
|
2021-09-06 18:53:02 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
required: ["fields"],
|
|
|
|
},
|
|
|
|
},
|
2023-04-06 19:11:44 +02:00
|
|
|
type: AutomationStepType.TRIGGER,
|
2021-09-06 18:53:02 +02:00
|
|
|
}
|