@budibase/types 2.6.19-alpha.2 → 2.6.19-alpha.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/types",
3
- "version": "2.6.19-alpha.2",
3
+ "version": "2.6.19-alpha.21",
4
4
  "description": "Budibase types",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/mjs/index.d.ts",
@@ -34,5 +34,5 @@
34
34
  "dependencies": {
35
35
  "scim-patch": "^0.7.0"
36
36
  },
37
- "gitHead": "62e6959d05c2e64f53bb4090b8f714937907efa5"
37
+ "gitHead": "0f816b1e08b50200bf62da9f1488a6203fd80071"
38
38
  }
@@ -23,6 +23,10 @@ export interface VerifyDatasourceResponse {
23
23
  error?: string
24
24
  }
25
25
 
26
+ export interface FetchDatasourceInfoResponse {
27
+ tableNames: string[]
28
+ }
29
+
26
30
  export interface UpdateDatasourceRequest extends Datasource {
27
31
  datasource: Datasource
28
32
  }
@@ -57,6 +57,8 @@ export enum AutomationActionStepId {
57
57
  FILTER = "FILTER",
58
58
  QUERY_ROWS = "QUERY_ROWS",
59
59
  LOOP = "LOOP",
60
+ COLLECT = "COLLECT",
61
+ OPENAI = "OPENAI",
60
62
  // these used to be lowercase step IDs, maintain for backwards compat
61
63
  discord = "discord",
62
64
  slack = "slack",
@@ -122,6 +124,11 @@ export interface AutomationStepSchema {
122
124
  outputs: InputOutputBlock
123
125
  }
124
126
  custom?: boolean
127
+ features?: Partial<Record<AutomationFeature, boolean>>
128
+ }
129
+
130
+ export enum AutomationFeature {
131
+ LOOPING = "LOOPING",
125
132
  }
126
133
 
127
134
  export interface AutomationStep extends AutomationStepSchema {
@@ -5,6 +5,7 @@ export interface AutomationDataEvent {
5
5
  appId?: string
6
6
  metadata?: AutomationMetadata
7
7
  automation?: Automation
8
+ timeout?: number
8
9
  }
9
10
 
10
11
  export interface AutomationData {
@@ -75,6 +75,7 @@ export enum FilterType {
75
75
 
76
76
  export enum DatasourceFeature {
77
77
  CONNECTION_CHECKING = "connection",
78
+ FETCH_TABLE_NAMES = "fetch_table_names",
78
79
  }
79
80
 
80
81
  export interface StepDefinition {
@@ -115,7 +116,7 @@ export interface Integration {
115
116
  docs: string
116
117
  plus?: boolean
117
118
  auth?: { type: string }
118
- features?: DatasourceFeature[]
119
+ features?: Partial<Record<DatasourceFeature, boolean>>
119
120
  relationships?: boolean
120
121
  description: string
121
122
  friendlyName: string
@@ -150,4 +151,5 @@ export interface DatasourcePlus extends IntegrationBase {
150
151
  getBindingIdentifier(): string
151
152
  getStringConcat(parts: string[]): string
152
153
  buildSchema(datasourceId: string, entities: Record<string, Table>): any
154
+ getTableNames(): Promise<string[]>
153
155
  }
@@ -8,6 +8,7 @@ export enum Feature {
8
8
  ENFORCEABLE_SSO = "enforceableSSO",
9
9
  BRANDING = "branding",
10
10
  SCIM = "scim",
11
+ SYNC_AUTOMATIONS = "syncAutomations",
11
12
  }
12
13
 
13
14
  export type PlanFeatures = { [key in PlanType]: Feature[] | undefined }