@budibase/types 2.7.36-alpha.2 → 2.7.36

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.
Files changed (39) hide show
  1. package/dist/cjs/api/web/analytics.d.ts +0 -1
  2. package/dist/cjs/api/web/app/datasource.d.ts +0 -1
  3. package/dist/cjs/documents/app/app.d.ts +0 -4
  4. package/dist/cjs/documents/app/automation.d.ts +1 -23
  5. package/dist/cjs/documents/app/automation.js +0 -1
  6. package/dist/cjs/documents/app/automation.js.map +1 -1
  7. package/dist/cjs/documents/app/role.d.ts +0 -1
  8. package/dist/cjs/documents/app/table.d.ts +4 -0
  9. package/dist/cjs/documents/app/table.js +5 -1
  10. package/dist/cjs/documents/app/table.js.map +1 -1
  11. package/dist/cjs/sdk/datasources.d.ts +1 -3
  12. package/dist/cjs/sdk/datasources.js +0 -1
  13. package/dist/cjs/sdk/datasources.js.map +1 -1
  14. package/dist/cjs/sdk/events/serve.d.ts +0 -1
  15. package/dist/cjs/tsconfig-cjs.build.tsbuildinfo +1 -1
  16. package/dist/mjs/api/web/analytics.d.ts +0 -1
  17. package/dist/mjs/api/web/app/datasource.d.ts +0 -1
  18. package/dist/mjs/documents/app/app.d.ts +0 -4
  19. package/dist/mjs/documents/app/automation.d.ts +1 -23
  20. package/dist/mjs/documents/app/automation.js +0 -1
  21. package/dist/mjs/documents/app/automation.js.map +1 -1
  22. package/dist/mjs/documents/app/role.d.ts +0 -1
  23. package/dist/mjs/documents/app/table.d.ts +4 -0
  24. package/dist/mjs/documents/app/table.js +4 -0
  25. package/dist/mjs/documents/app/table.js.map +1 -1
  26. package/dist/mjs/sdk/datasources.d.ts +1 -3
  27. package/dist/mjs/sdk/datasources.js +0 -1
  28. package/dist/mjs/sdk/datasources.js.map +1 -1
  29. package/dist/mjs/sdk/events/serve.d.ts +0 -1
  30. package/dist/mjs/tsconfig.build.tsbuildinfo +1 -1
  31. package/package.json +2 -2
  32. package/src/api/web/analytics.ts +0 -1
  33. package/src/api/web/app/datasource.ts +0 -1
  34. package/src/documents/app/app.ts +0 -5
  35. package/src/documents/app/automation.ts +0 -30
  36. package/src/documents/app/role.ts +0 -1
  37. package/src/documents/app/table.ts +5 -0
  38. package/src/sdk/datasources.ts +0 -2
  39. package/src/sdk/events/serve.ts +0 -1
@@ -1,6 +1,5 @@
1
1
  import { Document } from "../document"
2
2
  import { EventEmitter } from "events"
3
- import { User } from "../global"
4
3
 
5
4
  export enum AutomationIOType {
6
5
  OBJECT = "object",
@@ -9,7 +8,6 @@ export enum AutomationIOType {
9
8
  NUMBER = "number",
10
9
  ARRAY = "array",
11
10
  JSON = "json",
12
- DATE = "date",
13
11
  }
14
12
 
15
13
  export enum AutomationCustomIOType {
@@ -68,33 +66,6 @@ export enum AutomationActionStepId {
68
66
  integromat = "integromat",
69
67
  }
70
68
 
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
-
98
69
  export const AutomationStepIdArray = [
99
70
  ...Object.values(AutomationActionStepId),
100
71
  ...Object.values(AutomationTriggerStepId),
@@ -119,7 +90,6 @@ interface BaseIOStructure {
119
90
  customType?: AutomationCustomIOType
120
91
  title?: string
121
92
  description?: string
122
- dependsOn?: string
123
93
  enum?: string[]
124
94
  pretty?: string[]
125
95
  properties?: {
@@ -4,5 +4,4 @@ export interface Role extends Document {
4
4
  permissionId: string
5
5
  inherits?: string
6
6
  permissions: { [key: string]: string[] }
7
- version?: string
8
7
  }
@@ -9,6 +9,10 @@ export enum RelationshipTypes {
9
9
  MANY_TO_MANY = "many-to-many",
10
10
  }
11
11
 
12
+ export enum AutoReason {
13
+ FOREIGN_KEY = "foreign_key",
14
+ }
15
+
12
16
  export interface FieldSchema {
13
17
  type: FieldType
14
18
  externalType?: string
@@ -21,6 +25,7 @@ export interface FieldSchema {
21
25
  foreignKey?: string
22
26
  icon?: string
23
27
  autocolumn?: boolean
28
+ autoReason?: AutoReason
24
29
  subtype?: string
25
30
  throughFrom?: string
26
31
  throughTo?: string
@@ -76,7 +76,6 @@ 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",
80
79
  }
81
80
 
82
81
  export interface StepDefinition {
@@ -141,7 +140,6 @@ export interface IntegrationBase {
141
140
  update?(query: any): Promise<any[] | any>
142
141
  delete?(query: any): Promise<any[] | any>
143
142
  testConnection?(): Promise<ConnectionInfo>
144
- getExternalSchema?(): Promise<string>
145
143
  }
146
144
 
147
145
  export interface DatasourcePlus extends IntegrationBase {
@@ -7,7 +7,6 @@ export interface BuilderServedEvent extends BaseEvent {
7
7
  export interface AppServedEvent extends BaseEvent {
8
8
  appVersion: string
9
9
  timezone: string
10
- embed?: boolean
11
10
  }
12
11
 
13
12
  export interface AppPreviewServedEvent extends BaseEvent {