2021-12-13 14:50:15 +01:00
|
|
|
export { Query, Datasource } from "./datasource"
|
2022-08-11 12:48:58 +02:00
|
|
|
export { FieldSchema, TableSchema, Table, Document, Row } from "@budibase/types"
|
2021-07-03 12:15:01 +02:00
|
|
|
|
2022-08-11 12:48:58 +02:00
|
|
|
export interface Application extends Document {
|
2022-08-11 13:24:36 +02:00
|
|
|
_id: string
|
2022-02-24 16:13:14 +01:00
|
|
|
appId?: string
|
|
|
|
}
|
|
|
|
|
2021-06-27 00:09:46 +02:00
|
|
|
interface JsonSchemaField {
|
|
|
|
properties: {
|
|
|
|
[key: string]: {
|
2021-06-28 11:21:37 +02:00
|
|
|
type: string
|
|
|
|
title: string
|
|
|
|
customType?: string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
required?: string[]
|
2021-06-27 00:09:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface AutomationStep {
|
2021-06-28 11:21:37 +02:00
|
|
|
description: string
|
|
|
|
event?: string
|
|
|
|
icon: string
|
|
|
|
id: string
|
2021-06-27 00:09:46 +02:00
|
|
|
inputs: {
|
2021-06-28 11:21:37 +02:00
|
|
|
[key: string]: any
|
|
|
|
}
|
|
|
|
name: string
|
2021-06-27 00:09:46 +02:00
|
|
|
schema: {
|
2021-06-28 11:21:37 +02:00
|
|
|
inputs: JsonSchemaField
|
|
|
|
outputs: JsonSchemaField
|
|
|
|
}
|
|
|
|
stepId: string
|
|
|
|
tagline: string
|
|
|
|
type: string
|
2021-06-27 00:09:46 +02:00
|
|
|
}
|
|
|
|
|
2022-08-11 12:48:58 +02:00
|
|
|
export interface Automation extends Document {
|
2021-06-28 11:21:37 +02:00
|
|
|
name: string
|
|
|
|
type: string
|
|
|
|
appId?: string
|
2021-06-27 00:09:46 +02:00
|
|
|
definition: {
|
2021-06-28 11:21:37 +02:00
|
|
|
steps: AutomationStep[]
|
|
|
|
trigger?: AutomationStep
|
|
|
|
}
|
2021-06-27 00:09:46 +02:00
|
|
|
}
|