1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +13:00
budibase/packages/server/src/definitions/common.ts

46 lines
818 B
TypeScript
Raw Normal View History

export { Query, Datasource } from "./datasource"
export { FieldSchema, TableSchema, Table, Document, Row } from "@budibase/types"
export interface Application extends Document {
2022-02-25 04:13:14 +13:00
appId?: string
}
interface JsonSchemaField {
properties: {
[key: string]: {
2021-06-28 21:21:37 +12:00
type: string
title: string
customType?: string
}
}
required?: string[]
}
export interface AutomationStep {
2021-06-28 21:21:37 +12:00
description: string
event?: string
icon: string
id: string
inputs: {
2021-06-28 21:21:37 +12:00
[key: string]: any
}
name: string
schema: {
2021-06-28 21:21:37 +12:00
inputs: JsonSchemaField
outputs: JsonSchemaField
}
stepId: string
tagline: string
type: string
}
export interface Automation extends Document {
2021-06-28 21:21:37 +12:00
name: string
type: string
appId?: string
definition: {
2021-06-28 21:21:37 +12:00
steps: AutomationStep[]
trigger?: AutomationStep
}
}