@budibase/types 2.7.32 → 2.7.34-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/web/app/datasource.d.ts +1 -0
- package/dist/cjs/documents/app/automation.d.ts +23 -1
- package/dist/cjs/documents/app/automation.js +1 -0
- package/dist/cjs/documents/app/automation.js.map +1 -1
- package/dist/cjs/sdk/datasources.d.ts +3 -1
- package/dist/cjs/sdk/datasources.js +1 -0
- package/dist/cjs/sdk/datasources.js.map +1 -1
- package/dist/cjs/tsconfig-cjs.build.tsbuildinfo +1 -1
- package/dist/mjs/api/web/app/datasource.d.ts +1 -0
- package/dist/mjs/documents/app/automation.d.ts +23 -1
- package/dist/mjs/documents/app/automation.js +1 -0
- package/dist/mjs/documents/app/automation.js.map +1 -1
- package/dist/mjs/sdk/datasources.d.ts +3 -1
- package/dist/mjs/sdk/datasources.js +1 -0
- package/dist/mjs/sdk/datasources.js.map +1 -1
- package/dist/mjs/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/api/web/app/datasource.ts +1 -0
- package/src/documents/app/automation.ts +30 -0
- package/src/sdk/datasources.ts +2 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Document } from "../document"
|
|
2
2
|
import { EventEmitter } from "events"
|
|
3
|
+
import { User } from "../global"
|
|
3
4
|
|
|
4
5
|
export enum AutomationIOType {
|
|
5
6
|
OBJECT = "object",
|
|
@@ -8,6 +9,7 @@ export enum AutomationIOType {
|
|
|
8
9
|
NUMBER = "number",
|
|
9
10
|
ARRAY = "array",
|
|
10
11
|
JSON = "json",
|
|
12
|
+
DATE = "date",
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
export enum AutomationCustomIOType {
|
|
@@ -66,6 +68,33 @@ export enum AutomationActionStepId {
|
|
|
66
68
|
integromat = "integromat",
|
|
67
69
|
}
|
|
68
70
|
|
|
71
|
+
export interface EmailInvite {
|
|
72
|
+
startTime: Date
|
|
73
|
+
endTime: Date
|
|
74
|
+
summary: string
|
|
75
|
+
location?: string
|
|
76
|
+
url?: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface SendEmailOpts {
|
|
80
|
+
// workspaceId If finer grain controls being used then this will lookup config for workspace.
|
|
81
|
+
workspaceId?: string
|
|
82
|
+
// user If sending to an existing user the object can be provided, this is used in the context.
|
|
83
|
+
user: User
|
|
84
|
+
// from If sending from an address that is not what is configured in the SMTP config.
|
|
85
|
+
from?: string
|
|
86
|
+
// contents If sending a custom email then can supply contents which will be added to it.
|
|
87
|
+
contents?: string
|
|
88
|
+
// subject A custom subject can be specified if the config one is not desired.
|
|
89
|
+
subject?: string
|
|
90
|
+
// info Pass in a structure of information to be stored alongside the invitation.
|
|
91
|
+
info?: any
|
|
92
|
+
cc?: boolean
|
|
93
|
+
bcc?: boolean
|
|
94
|
+
automation?: boolean
|
|
95
|
+
invite?: EmailInvite
|
|
96
|
+
}
|
|
97
|
+
|
|
69
98
|
export const AutomationStepIdArray = [
|
|
70
99
|
...Object.values(AutomationActionStepId),
|
|
71
100
|
...Object.values(AutomationTriggerStepId),
|
|
@@ -90,6 +119,7 @@ interface BaseIOStructure {
|
|
|
90
119
|
customType?: AutomationCustomIOType
|
|
91
120
|
title?: string
|
|
92
121
|
description?: string
|
|
122
|
+
dependsOn?: string
|
|
93
123
|
enum?: string[]
|
|
94
124
|
pretty?: string[]
|
|
95
125
|
properties?: {
|
package/src/sdk/datasources.ts
CHANGED
|
@@ -76,6 +76,7 @@ export enum FilterType {
|
|
|
76
76
|
export enum DatasourceFeature {
|
|
77
77
|
CONNECTION_CHECKING = "connection",
|
|
78
78
|
FETCH_TABLE_NAMES = "fetch_table_names",
|
|
79
|
+
EXPORT_SCHEMA = "export_schema",
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
export interface StepDefinition {
|
|
@@ -140,6 +141,7 @@ export interface IntegrationBase {
|
|
|
140
141
|
update?(query: any): Promise<any[] | any>
|
|
141
142
|
delete?(query: any): Promise<any[] | any>
|
|
142
143
|
testConnection?(): Promise<ConnectionInfo>
|
|
144
|
+
getExternalSchema?(): Promise<string>
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
export interface DatasourcePlus extends IntegrationBase {
|