@budibase/server 2.5.6-alpha.8 → 2.5.6

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 (156) hide show
  1. package/builder/assets/index.56bca6f6.js +1817 -0
  2. package/builder/assets/index.7f9a008b.css +6 -0
  3. package/builder/index.html +2 -2
  4. package/dist/api/controllers/automation.js +7 -13
  5. package/dist/api/controllers/plugin/index.js +37 -6
  6. package/dist/api/controllers/table/utils.js +1 -2
  7. package/dist/api/controllers/user.js +83 -1
  8. package/dist/api/routes/index.js +0 -2
  9. package/dist/api/routes/user.js +1 -0
  10. package/dist/app.js +13 -4
  11. package/dist/automations/actions.js +6 -32
  12. package/dist/automations/index.js +2 -3
  13. package/dist/automations/steps/bash.js +6 -6
  14. package/dist/automations/steps/createRow.js +11 -11
  15. package/dist/automations/steps/delay.js +3 -3
  16. package/dist/automations/steps/deleteRow.js +8 -8
  17. package/dist/automations/steps/discord.js +8 -8
  18. package/dist/automations/steps/executeQuery.js +9 -9
  19. package/dist/automations/steps/executeScript.js +6 -6
  20. package/dist/automations/steps/filter.js +6 -6
  21. package/dist/automations/steps/integromat.js +10 -10
  22. package/dist/automations/steps/loop.js +9 -9
  23. package/dist/automations/steps/outgoingWebhook.js +10 -10
  24. package/dist/automations/steps/queryRows.js +14 -14
  25. package/dist/automations/steps/sendSmtpEmail.js +9 -9
  26. package/dist/automations/steps/serverLog.js +4 -4
  27. package/dist/automations/steps/slack.js +6 -6
  28. package/dist/automations/steps/updateRow.js +11 -11
  29. package/dist/automations/steps/zapier.js +9 -9
  30. package/dist/automations/triggerInfo/app.js +5 -5
  31. package/dist/automations/triggerInfo/cron.js +4 -4
  32. package/dist/automations/triggerInfo/rowDeleted.js +5 -5
  33. package/dist/automations/triggerInfo/rowSaved.js +7 -7
  34. package/dist/automations/triggerInfo/rowUpdated.js +7 -7
  35. package/dist/automations/triggerInfo/webhook.js +6 -6
  36. package/dist/elasticApm.js +14 -0
  37. package/dist/environment.js +1 -0
  38. package/dist/events/index.js +0 -3
  39. package/dist/integrations/index.js +3 -3
  40. package/dist/integrations/microsoftSqlServer.js +2 -5
  41. package/dist/integrations/mysql.js +3 -5
  42. package/dist/integrations/postgres.js +5 -7
  43. package/dist/integrations/redis.js +0 -7
  44. package/dist/integrations/rest.js +0 -4
  45. package/dist/migrations/functions/usageQuotas/syncApps.js +1 -1
  46. package/dist/migrations/functions/usageQuotas/syncRows.js +2 -1
  47. package/dist/package.json +15 -15
  48. package/dist/sdk/app/applications/sync.js +23 -117
  49. package/dist/sdk/index.js +0 -2
  50. package/dist/sdk/users/utils.js +4 -21
  51. package/dist/startup.js +28 -31
  52. package/dist/threads/automation.js +5 -16
  53. package/dist/tsconfig.build.tsbuildinfo +1 -1
  54. package/dist/utilities/fileSystem/plugin.js +23 -33
  55. package/dist/utilities/global.js +12 -17
  56. package/dist/watch.js +2 -2
  57. package/dist/websocket.js +22 -0
  58. package/jest.config.ts +3 -3
  59. package/nodemon.json +3 -7
  60. package/package.json +16 -16
  61. package/scripts/dev/manage.js +0 -2
  62. package/scripts/integrations/mssql/data/entrypoint.sh +0 -1
  63. package/scripts/integrations/mssql/data/setup.sql +17 -17
  64. package/scripts/integrations/mysql/init.sql +1 -1
  65. package/scripts/integrations/postgres/init.sql +0 -1
  66. package/scripts/likeCypress.ts +35 -0
  67. package/src/api/controllers/automation.ts +6 -12
  68. package/src/api/controllers/plugin/index.ts +45 -8
  69. package/src/api/controllers/row/internal.ts +10 -9
  70. package/src/api/controllers/row/utils.ts +2 -2
  71. package/src/api/controllers/table/utils.ts +1 -2
  72. package/src/api/controllers/user.ts +96 -10
  73. package/src/api/routes/index.ts +0 -2
  74. package/src/api/routes/tests/automation.spec.js +4 -7
  75. package/src/api/routes/tests/user.spec.js +37 -48
  76. package/src/api/routes/user.ts +5 -0
  77. package/src/app.ts +15 -4
  78. package/src/automations/actions.ts +24 -56
  79. package/src/automations/index.ts +1 -1
  80. package/src/automations/steps/bash.ts +7 -10
  81. package/src/automations/steps/createRow.ts +12 -15
  82. package/src/automations/steps/delay.ts +4 -6
  83. package/src/automations/steps/deleteRow.ts +9 -12
  84. package/src/automations/steps/discord.ts +8 -10
  85. package/src/automations/steps/executeQuery.ts +10 -13
  86. package/src/automations/steps/executeScript.ts +7 -10
  87. package/src/automations/steps/filter.ts +6 -8
  88. package/src/automations/steps/integromat.ts +10 -12
  89. package/src/automations/steps/loop.ts +10 -16
  90. package/src/automations/steps/outgoingWebhook.ts +11 -14
  91. package/src/automations/steps/queryRows.ts +15 -18
  92. package/src/automations/steps/sendSmtpEmail.ts +9 -11
  93. package/src/automations/steps/serverLog.ts +4 -6
  94. package/src/automations/steps/slack.ts +6 -8
  95. package/src/automations/steps/updateRow.ts +12 -15
  96. package/src/automations/steps/zapier.ts +9 -11
  97. package/src/automations/tests/utilities/index.ts +2 -2
  98. package/src/automations/triggerInfo/app.ts +5 -8
  99. package/src/automations/triggerInfo/cron.ts +4 -7
  100. package/src/automations/triggerInfo/rowDeleted.ts +5 -8
  101. package/src/automations/triggerInfo/rowSaved.ts +7 -10
  102. package/src/automations/triggerInfo/rowUpdated.ts +7 -10
  103. package/src/automations/triggerInfo/webhook.ts +6 -9
  104. package/src/elasticApm.ts +10 -0
  105. package/src/environment.ts +1 -0
  106. package/src/events/index.ts +0 -1
  107. package/src/integrations/index.ts +3 -3
  108. package/src/integrations/microsoftSqlServer.ts +2 -5
  109. package/src/integrations/mysql.ts +3 -5
  110. package/src/integrations/postgres.ts +5 -7
  111. package/src/integrations/redis.ts +0 -8
  112. package/src/integrations/rest.ts +0 -3
  113. package/src/migrations/functions/usageQuotas/syncApps.ts +1 -1
  114. package/src/migrations/functions/usageQuotas/syncRows.ts +3 -2
  115. package/src/migrations/functions/usageQuotas/tests/syncRows.spec.ts +2 -2
  116. package/src/sdk/app/applications/sync.ts +22 -129
  117. package/src/sdk/index.ts +0 -2
  118. package/src/sdk/users/tests/utils.spec.ts +32 -1
  119. package/src/sdk/users/utils.ts +5 -23
  120. package/src/startup.ts +34 -36
  121. package/src/tests/jestEnv.ts +1 -0
  122. package/src/tests/jestSetup.ts +1 -0
  123. package/src/tests/logging.ts +34 -0
  124. package/src/tests/utilities/TestConfiguration.ts +0 -28
  125. package/src/tests/utilities/structures.ts +17 -25
  126. package/src/threads/automation.ts +6 -18
  127. package/src/utilities/fileSystem/plugin.ts +4 -13
  128. package/src/utilities/global.ts +16 -21
  129. package/src/watch.ts +2 -2
  130. package/src/websocket.ts +26 -0
  131. package/tsconfig.json +7 -1
  132. package/builder/assets/index.5c1a6913.js +0 -1776
  133. package/builder/assets/index.c0265b74.css +0 -6
  134. package/dist/api/controllers/ops.js +0 -40
  135. package/dist/api/routes/ops.js +0 -52
  136. package/dist/events/docUpdates/index.js +0 -17
  137. package/dist/events/docUpdates/processors.js +0 -18
  138. package/dist/events/docUpdates/syncUsers.js +0 -49
  139. package/dist/sdk/plugins/index.js +0 -27
  140. package/dist/sdk/plugins/plugins.js +0 -53
  141. package/dist/websockets/client.js +0 -14
  142. package/dist/websockets/grid.js +0 -60
  143. package/dist/websockets/index.js +0 -17
  144. package/dist/websockets/websocket.js +0 -78
  145. package/src/api/controllers/ops.ts +0 -32
  146. package/src/api/routes/ops.ts +0 -30
  147. package/src/events/docUpdates/index.ts +0 -1
  148. package/src/events/docUpdates/processors.ts +0 -14
  149. package/src/events/docUpdates/syncUsers.ts +0 -35
  150. package/src/sdk/app/applications/tests/sync.spec.ts +0 -137
  151. package/src/sdk/plugins/index.ts +0 -5
  152. package/src/sdk/plugins/plugins.ts +0 -41
  153. package/src/websockets/client.ts +0 -11
  154. package/src/websockets/grid.ts +0 -55
  155. package/src/websockets/index.ts +0 -14
  156. package/src/websockets/websocket.ts +0 -83
@@ -53,7 +53,7 @@ exports.definition = {
53
53
  tagline: "Execute Data Connector",
54
54
  icon: "Data",
55
55
  description: "Execute a query in an external data connector",
56
- type: types_1.AutomationStepType.ACTION,
56
+ type: "ACTION",
57
57
  stepId: types_1.AutomationActionStepId.EXECUTE_QUERY,
58
58
  internal: true,
59
59
  inputs: {},
@@ -61,14 +61,14 @@ exports.definition = {
61
61
  inputs: {
62
62
  properties: {
63
63
  query: {
64
- type: types_1.AutomationIOType.OBJECT,
64
+ type: "object",
65
65
  properties: {
66
66
  queryId: {
67
- type: types_1.AutomationIOType.STRING,
68
- customType: types_1.AutomationCustomIOType.QUERY,
67
+ type: "string",
68
+ customType: "query",
69
69
  },
70
70
  },
71
- customType: types_1.AutomationCustomIOType.QUERY_PARAMS,
71
+ customType: "queryParams",
72
72
  title: "Parameters",
73
73
  required: ["queryId"],
74
74
  },
@@ -78,20 +78,20 @@ exports.definition = {
78
78
  outputs: {
79
79
  properties: {
80
80
  response: {
81
- type: types_1.AutomationIOType.OBJECT,
81
+ type: "object",
82
82
  description: "The response from the datasource execution",
83
83
  },
84
84
  info: {
85
- type: types_1.AutomationIOType.OBJECT,
85
+ type: "object",
86
86
  description: "Some query types may return extra data, like headers from a REST query",
87
87
  },
88
88
  success: {
89
- type: types_1.AutomationIOType.BOOLEAN,
89
+ type: "boolean",
90
90
  description: "Whether the action was successful",
91
91
  },
92
92
  },
93
- required: ["response", "success"],
94
93
  },
94
+ required: ["response", "success"],
95
95
  },
96
96
  };
97
97
  function run({ inputs, appId, emitter }) {
@@ -42,7 +42,7 @@ exports.definition = {
42
42
  tagline: "Execute JavaScript Code",
43
43
  icon: "Code",
44
44
  description: "Run a piece of JavaScript code in your automation",
45
- type: types_1.AutomationStepType.ACTION,
45
+ type: "ACTION",
46
46
  internal: true,
47
47
  stepId: types_1.AutomationActionStepId.EXECUTE_SCRIPT,
48
48
  inputs: {},
@@ -50,8 +50,8 @@ exports.definition = {
50
50
  inputs: {
51
51
  properties: {
52
52
  code: {
53
- type: types_1.AutomationIOType.STRING,
54
- customType: types_1.AutomationCustomIOType.CODE,
53
+ type: "string",
54
+ customType: "code",
55
55
  title: "Code",
56
56
  },
57
57
  },
@@ -60,16 +60,16 @@ exports.definition = {
60
60
  outputs: {
61
61
  properties: {
62
62
  value: {
63
- type: types_1.AutomationIOType.STRING,
63
+ type: "string",
64
64
  description: "The result of the return statement",
65
65
  },
66
66
  success: {
67
- type: types_1.AutomationIOType.BOOLEAN,
67
+ type: "boolean",
68
68
  description: "Whether the action was successful",
69
69
  },
70
70
  },
71
- required: ["success"],
72
71
  },
72
+ required: ["success"],
73
73
  },
74
74
  };
75
75
  function run({ inputs, appId, context, emitter, }) {
@@ -28,7 +28,7 @@ exports.definition = {
28
28
  tagline: "{{inputs.field}} {{inputs.condition}} {{inputs.value}}",
29
29
  icon: "Branch2",
30
30
  description: "Conditionally halt automations which do not meet certain conditions",
31
- type: types_1.AutomationStepType.LOGIC,
31
+ type: "LOGIC",
32
32
  internal: true,
33
33
  stepId: types_1.AutomationActionStepId.FILTER,
34
34
  inputs: {
@@ -38,17 +38,17 @@ exports.definition = {
38
38
  inputs: {
39
39
  properties: {
40
40
  field: {
41
- type: types_1.AutomationIOType.STRING,
41
+ type: "string",
42
42
  title: "Reference Value",
43
43
  },
44
44
  condition: {
45
- type: types_1.AutomationIOType.STRING,
45
+ type: "string",
46
46
  title: "Condition",
47
47
  enum: Object.values(exports.FilterConditions),
48
48
  pretty: Object.values(exports.PrettyFilterConditions),
49
49
  },
50
50
  value: {
51
- type: types_1.AutomationIOType.STRING,
51
+ type: "string",
52
52
  title: "Comparison Value",
53
53
  },
54
54
  },
@@ -57,11 +57,11 @@ exports.definition = {
57
57
  outputs: {
58
58
  properties: {
59
59
  success: {
60
- type: types_1.AutomationIOType.BOOLEAN,
60
+ type: "boolean",
61
61
  description: "Whether the action was successful",
62
62
  },
63
63
  result: {
64
- type: types_1.AutomationIOType.BOOLEAN,
64
+ type: "boolean",
65
65
  description: "Whether the logic block passed",
66
66
  },
67
67
  },
@@ -22,34 +22,34 @@ exports.definition = {
22
22
  description: "Performs a webhook call to Integromat and gets the response (if configured)",
23
23
  icon: "ri-shut-down-line",
24
24
  stepId: types_1.AutomationActionStepId.integromat,
25
- type: types_1.AutomationStepType.ACTION,
25
+ type: "ACTION",
26
26
  internal: false,
27
27
  inputs: {},
28
28
  schema: {
29
29
  inputs: {
30
30
  properties: {
31
31
  url: {
32
- type: types_1.AutomationIOType.STRING,
32
+ type: "string",
33
33
  title: "Webhook URL",
34
34
  },
35
35
  value1: {
36
- type: types_1.AutomationIOType.STRING,
36
+ type: "string",
37
37
  title: "Input Value 1",
38
38
  },
39
39
  value2: {
40
- type: types_1.AutomationIOType.STRING,
40
+ type: "string",
41
41
  title: "Input Value 2",
42
42
  },
43
43
  value3: {
44
- type: types_1.AutomationIOType.STRING,
44
+ type: "string",
45
45
  title: "Input Value 3",
46
46
  },
47
47
  value4: {
48
- type: types_1.AutomationIOType.STRING,
48
+ type: "string",
49
49
  title: "Input Value 4",
50
50
  },
51
51
  value5: {
52
- type: types_1.AutomationIOType.STRING,
52
+ type: "string",
53
53
  title: "Input Value 5",
54
54
  },
55
55
  },
@@ -58,15 +58,15 @@ exports.definition = {
58
58
  outputs: {
59
59
  properties: {
60
60
  success: {
61
- type: types_1.AutomationIOType.BOOLEAN,
61
+ type: "boolean",
62
62
  description: "Whether call was successful",
63
63
  },
64
64
  httpStatus: {
65
- type: types_1.AutomationIOType.NUMBER,
65
+ type: "number",
66
66
  description: "The HTTP status code returned",
67
67
  },
68
68
  response: {
69
- type: types_1.AutomationIOType.OBJECT,
69
+ type: "object",
70
70
  description: "The webhook response - this can have properties",
71
71
  },
72
72
  },
@@ -14,19 +14,19 @@ exports.definition = {
14
14
  inputs: {
15
15
  properties: {
16
16
  option: {
17
- customType: types_1.AutomationCustomIOType.LOOP_OPTION,
17
+ customType: "loopOption",
18
18
  title: "Input type",
19
19
  },
20
20
  binding: {
21
- type: types_1.AutomationIOType.STRING,
21
+ type: "string",
22
22
  title: "Binding / Value",
23
23
  },
24
24
  iterations: {
25
- type: types_1.AutomationIOType.NUMBER,
25
+ type: "number",
26
26
  title: "Max loop iterations",
27
27
  },
28
28
  failure: {
29
- type: types_1.AutomationIOType.STRING,
29
+ type: "string",
30
30
  title: "Failure Condition",
31
31
  },
32
32
  },
@@ -35,20 +35,20 @@ exports.definition = {
35
35
  outputs: {
36
36
  properties: {
37
37
  items: {
38
- customType: types_1.AutomationCustomIOType.ITEM,
38
+ customType: "item",
39
39
  description: "The item currently being executed",
40
40
  },
41
41
  success: {
42
- type: types_1.AutomationIOType.BOOLEAN,
42
+ type: "boolean",
43
43
  description: "Whether the message loop was successfully",
44
44
  },
45
45
  iterations: {
46
- type: types_1.AutomationIOType.NUMBER,
47
- description: "The amount of times the block ran",
46
+ type: "number",
47
+ descriptions: "The amount of times the block ran",
48
48
  },
49
49
  },
50
50
  required: ["success", "items", "iterations"],
51
51
  },
52
52
  },
53
- type: types_1.AutomationStepType.LOGIC,
53
+ type: "LOGIC",
54
54
  };
@@ -58,7 +58,7 @@ exports.definition = {
58
58
  tagline: "Send a {{inputs.requestMethod}} request",
59
59
  icon: "Send",
60
60
  description: "Send a request of specified method to a URL",
61
- type: types_1.AutomationStepType.ACTION,
61
+ type: "ACTION",
62
62
  internal: true,
63
63
  stepId: types_1.AutomationActionStepId.OUTGOING_WEBHOOK,
64
64
  inputs: {
@@ -71,23 +71,23 @@ exports.definition = {
71
71
  inputs: {
72
72
  properties: {
73
73
  requestMethod: {
74
- type: types_1.AutomationIOType.STRING,
74
+ type: "string",
75
75
  enum: Object.values(RequestType),
76
76
  title: "Request method",
77
77
  },
78
78
  url: {
79
- type: types_1.AutomationIOType.STRING,
79
+ type: "string",
80
80
  title: "URL",
81
81
  },
82
82
  requestBody: {
83
- type: types_1.AutomationIOType.STRING,
83
+ type: "string",
84
84
  title: "JSON Body",
85
- customType: types_1.AutomationCustomIOType.WIDE,
85
+ customType: "wide",
86
86
  },
87
87
  headers: {
88
- type: types_1.AutomationIOType.STRING,
88
+ type: "string",
89
89
  title: "Headers",
90
- customType: types_1.AutomationCustomIOType.WIDE,
90
+ customType: "wide",
91
91
  },
92
92
  },
93
93
  required: ["requestMethod", "url"],
@@ -95,15 +95,15 @@ exports.definition = {
95
95
  outputs: {
96
96
  properties: {
97
97
  response: {
98
- type: types_1.AutomationIOType.OBJECT,
98
+ type: "object",
99
99
  description: "The response from the webhook",
100
100
  },
101
101
  httpStatus: {
102
- type: types_1.AutomationIOType.NUMBER,
102
+ type: "number",
103
103
  description: "The HTTP status code returned",
104
104
  },
105
105
  success: {
106
- type: types_1.AutomationIOType.BOOLEAN,
106
+ type: "boolean",
107
107
  description: "Whether the action was successful",
108
108
  },
109
109
  },
@@ -62,7 +62,7 @@ exports.definition = {
62
62
  icon: "Search",
63
63
  name: "Query rows",
64
64
  tagline: "Query rows from {{inputs.enriched.table.name}} table",
65
- type: types_1.AutomationStepType.ACTION,
65
+ type: "ACTION",
66
66
  stepId: types_1.AutomationActionStepId.QUERY_ROWS,
67
67
  internal: true,
68
68
  inputs: {},
@@ -70,35 +70,35 @@ exports.definition = {
70
70
  inputs: {
71
71
  properties: {
72
72
  tableId: {
73
- type: types_1.AutomationIOType.STRING,
74
- customType: types_1.AutomationCustomIOType.TABLE,
73
+ type: "string",
74
+ customType: "table",
75
75
  title: "Table",
76
76
  },
77
77
  filters: {
78
- type: types_1.AutomationIOType.OBJECT,
79
- customType: types_1.AutomationCustomIOType.FILTERS,
78
+ type: "object",
79
+ customType: "filters",
80
80
  title: "Filtering",
81
81
  },
82
82
  sortColumn: {
83
- type: types_1.AutomationIOType.STRING,
83
+ type: "string",
84
84
  title: "Sort Column",
85
- customType: types_1.AutomationCustomIOType.COLUMN,
85
+ customType: "column",
86
86
  },
87
87
  sortOrder: {
88
- type: types_1.AutomationIOType.STRING,
88
+ type: "string",
89
89
  title: "Sort Order",
90
90
  enum: Object.values(SortOrder),
91
91
  pretty: Object.values(SortOrderPretty),
92
92
  },
93
93
  limit: {
94
- type: types_1.AutomationIOType.NUMBER,
94
+ type: "number",
95
95
  title: "Limit",
96
- customType: types_1.AutomationCustomIOType.QUERY_LIMIT,
96
+ customType: "queryLimit",
97
97
  },
98
98
  onEmptyFilter: {
99
99
  pretty: Object.values(EmptyFilterOptionPretty),
100
100
  enum: Object.values(EmptyFilterOption),
101
- type: types_1.AutomationIOType.STRING,
101
+ type: "string",
102
102
  title: "When Filter Empty",
103
103
  },
104
104
  },
@@ -107,12 +107,12 @@ exports.definition = {
107
107
  outputs: {
108
108
  properties: {
109
109
  rows: {
110
- type: types_1.AutomationIOType.ARRAY,
111
- customType: types_1.AutomationCustomIOType.ROWS,
110
+ type: "array",
111
+ customType: "rows",
112
112
  description: "The rows that were found",
113
113
  },
114
114
  success: {
115
- type: types_1.AutomationIOType.BOOLEAN,
115
+ type: "boolean",
116
116
  description: "Whether the query was successful",
117
117
  },
118
118
  },
@@ -41,7 +41,7 @@ exports.definition = {
41
41
  tagline: "Send SMTP email to {{inputs.to}}",
42
42
  icon: "Email",
43
43
  name: "Send Email (SMTP)",
44
- type: types_1.AutomationStepType.ACTION,
44
+ type: "ACTION",
45
45
  internal: true,
46
46
  stepId: types_1.AutomationActionStepId.SEND_EMAIL_SMTP,
47
47
  inputs: {},
@@ -49,27 +49,27 @@ exports.definition = {
49
49
  inputs: {
50
50
  properties: {
51
51
  to: {
52
- type: types_1.AutomationIOType.STRING,
52
+ type: "string",
53
53
  title: "Send To",
54
54
  },
55
55
  from: {
56
- type: types_1.AutomationIOType.STRING,
56
+ type: "string",
57
57
  title: "Send From",
58
58
  },
59
59
  cc: {
60
- type: types_1.AutomationIOType.STRING,
60
+ type: "string",
61
61
  title: "CC",
62
62
  },
63
63
  bcc: {
64
- type: types_1.AutomationIOType.STRING,
64
+ type: "string",
65
65
  title: "BCC",
66
66
  },
67
67
  subject: {
68
- type: types_1.AutomationIOType.STRING,
68
+ type: "string",
69
69
  title: "Email Subject",
70
70
  },
71
71
  contents: {
72
- type: types_1.AutomationIOType.STRING,
72
+ type: "string",
73
73
  title: "HTML Contents",
74
74
  },
75
75
  },
@@ -78,11 +78,11 @@ exports.definition = {
78
78
  outputs: {
79
79
  properties: {
80
80
  success: {
81
- type: types_1.AutomationIOType.BOOLEAN,
81
+ type: "boolean",
82
82
  description: "Whether the email was sent",
83
83
  },
84
84
  response: {
85
- type: types_1.AutomationIOType.OBJECT,
85
+ type: "object",
86
86
  description: "A response from the email client, this may be an error",
87
87
  },
88
88
  },
@@ -21,7 +21,7 @@ exports.definition = {
21
21
  tagline: "Console log a value in the backend",
22
22
  icon: "Monitoring",
23
23
  description: "Logs the given text to the server (using console.log)",
24
- type: types_1.AutomationStepType.ACTION,
24
+ type: "ACTION",
25
25
  internal: true,
26
26
  stepId: types_1.AutomationActionStepId.SERVER_LOG,
27
27
  inputs: {
@@ -31,7 +31,7 @@ exports.definition = {
31
31
  inputs: {
32
32
  properties: {
33
33
  text: {
34
- type: types_1.AutomationIOType.STRING,
34
+ type: "string",
35
35
  title: "Log",
36
36
  },
37
37
  },
@@ -40,11 +40,11 @@ exports.definition = {
40
40
  outputs: {
41
41
  properties: {
42
42
  success: {
43
- type: types_1.AutomationIOType.BOOLEAN,
43
+ type: "boolean",
44
44
  description: "Whether the action was successful",
45
45
  },
46
46
  message: {
47
- type: types_1.AutomationIOType.STRING,
47
+ type: "string",
48
48
  description: "What was output",
49
49
  },
50
50
  },
@@ -22,18 +22,18 @@ exports.definition = {
22
22
  description: "Send a message to Slack",
23
23
  icon: "ri-slack-line",
24
24
  stepId: types_1.AutomationActionStepId.slack,
25
- type: types_1.AutomationStepType.ACTION,
25
+ type: "ACTION",
26
26
  internal: false,
27
27
  inputs: {},
28
28
  schema: {
29
29
  inputs: {
30
30
  properties: {
31
31
  url: {
32
- type: types_1.AutomationIOType.STRING,
32
+ type: "string",
33
33
  title: "Incoming Webhook URL",
34
34
  },
35
35
  text: {
36
- type: types_1.AutomationIOType.STRING,
36
+ type: "string",
37
37
  title: "Message",
38
38
  },
39
39
  },
@@ -42,15 +42,15 @@ exports.definition = {
42
42
  outputs: {
43
43
  properties: {
44
44
  httpStatus: {
45
- type: types_1.AutomationIOType.NUMBER,
45
+ type: "number",
46
46
  description: "The HTTP status code of the request",
47
47
  },
48
48
  success: {
49
- type: types_1.AutomationIOType.BOOLEAN,
49
+ type: "boolean",
50
50
  description: "Whether the message sent successfully",
51
51
  },
52
52
  response: {
53
- type: types_1.AutomationIOType.STRING,
53
+ type: "string",
54
54
  description: "The response from the Slack Webhook",
55
55
  },
56
56
  },
@@ -42,7 +42,7 @@ exports.definition = {
42
42
  tagline: "Update a {{inputs.enriched.table.name}} row",
43
43
  icon: "Refresh",
44
44
  description: "Update a row in your database",
45
- type: types_1.AutomationStepType.ACTION,
45
+ type: "ACTION",
46
46
  internal: true,
47
47
  stepId: types_1.AutomationActionStepId.UPDATE_ROW,
48
48
  inputs: {},
@@ -50,16 +50,16 @@ exports.definition = {
50
50
  inputs: {
51
51
  properties: {
52
52
  meta: {
53
- type: types_1.AutomationIOType.OBJECT,
53
+ type: "object",
54
54
  title: "Field settings",
55
55
  },
56
56
  row: {
57
- type: types_1.AutomationIOType.OBJECT,
58
- customType: types_1.AutomationCustomIOType.ROW,
57
+ type: "object",
58
+ customType: "row",
59
59
  title: "Table",
60
60
  },
61
61
  rowId: {
62
- type: types_1.AutomationIOType.STRING,
62
+ type: "string",
63
63
  title: "Row ID",
64
64
  },
65
65
  },
@@ -68,24 +68,24 @@ exports.definition = {
68
68
  outputs: {
69
69
  properties: {
70
70
  row: {
71
- type: types_1.AutomationIOType.OBJECT,
72
- customType: types_1.AutomationCustomIOType.ROW,
71
+ type: "object",
72
+ customType: "row",
73
73
  description: "The updated row",
74
74
  },
75
75
  response: {
76
- type: types_1.AutomationIOType.OBJECT,
76
+ type: "object",
77
77
  description: "The response from the table",
78
78
  },
79
79
  success: {
80
- type: types_1.AutomationIOType.BOOLEAN,
80
+ type: "boolean",
81
81
  description: "Whether the action was successful",
82
82
  },
83
83
  id: {
84
- type: types_1.AutomationIOType.STRING,
84
+ type: "string",
85
85
  description: "The identifier of the updated row",
86
86
  },
87
87
  revision: {
88
- type: types_1.AutomationIOType.STRING,
88
+ type: "string",
89
89
  description: "The revision of the updated row",
90
90
  },
91
91
  },
@@ -19,7 +19,7 @@ const types_1 = require("@budibase/types");
19
19
  exports.definition = {
20
20
  name: "Zapier Webhook",
21
21
  stepId: types_1.AutomationActionStepId.zapier,
22
- type: types_1.AutomationStepType.ACTION,
22
+ type: "ACTION",
23
23
  internal: false,
24
24
  description: "Trigger a Zapier Zap via webhooks",
25
25
  tagline: "Trigger a Zapier Zap",
@@ -29,27 +29,27 @@ exports.definition = {
29
29
  inputs: {
30
30
  properties: {
31
31
  url: {
32
- type: types_1.AutomationIOType.STRING,
32
+ type: "string",
33
33
  title: "Webhook URL",
34
34
  },
35
35
  value1: {
36
- type: types_1.AutomationIOType.STRING,
36
+ type: "string",
37
37
  title: "Payload Value 1",
38
38
  },
39
39
  value2: {
40
- type: types_1.AutomationIOType.STRING,
40
+ type: "string",
41
41
  title: "Payload Value 2",
42
42
  },
43
43
  value3: {
44
- type: types_1.AutomationIOType.STRING,
44
+ type: "string",
45
45
  title: "Payload Value 3",
46
46
  },
47
47
  value4: {
48
- type: types_1.AutomationIOType.STRING,
48
+ type: "string",
49
49
  title: "Payload Value 4",
50
50
  },
51
51
  value5: {
52
- type: types_1.AutomationIOType.STRING,
52
+ type: "string",
53
53
  title: "Payload Value 5",
54
54
  },
55
55
  },
@@ -58,11 +58,11 @@ exports.definition = {
58
58
  outputs: {
59
59
  properties: {
60
60
  httpStatus: {
61
- type: types_1.AutomationIOType.NUMBER,
61
+ type: "number",
62
62
  description: "The HTTP status code of the request",
63
63
  },
64
64
  response: {
65
- type: types_1.AutomationIOType.STRING,
65
+ type: "string",
66
66
  description: "The response from Zapier",
67
67
  },
68
68
  },
@@ -14,8 +14,8 @@ exports.definition = {
14
14
  inputs: {
15
15
  properties: {
16
16
  fields: {
17
- type: types_1.AutomationIOType.OBJECT,
18
- customType: types_1.AutomationCustomIOType.TRIGGER_SCHEMA,
17
+ type: "object",
18
+ customType: "triggerSchema",
19
19
  title: "Fields",
20
20
  },
21
21
  },
@@ -24,13 +24,13 @@ exports.definition = {
24
24
  outputs: {
25
25
  properties: {
26
26
  fields: {
27
- type: types_1.AutomationIOType.OBJECT,
27
+ type: "object",
28
28
  description: "Fields submitted from the app frontend",
29
- customType: types_1.AutomationCustomIOType.TRIGGER_SCHEMA,
29
+ customType: "triggerSchema",
30
30
  },
31
31
  },
32
32
  required: ["fields"],
33
33
  },
34
34
  },
35
- type: types_1.AutomationStepType.TRIGGER,
35
+ type: "TRIGGER",
36
36
  };