@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.
@@ -12,6 +12,7 @@ export interface UpdateDatasourceResponse {
12
12
  export interface CreateDatasourceRequest {
13
13
  datasource: Datasource
14
14
  fetchSchema?: boolean
15
+ tablesFilter: string[]
15
16
  }
16
17
 
17
18
  export interface VerifyDatasourceRequest {
@@ -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?: {
@@ -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 {