@budibase/server 2.6.19-alpha.20 → 2.6.19-alpha.22
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/builder/assets/{index.9a9bace2.js → index.47cc7efc.js} +273 -272
- package/builder/assets/{index.46d94ca7.css → index.ffb6a106.css} +1 -1
- package/builder/index.html +2 -2
- package/dist/automation.js +205 -49
- package/dist/automation.js.map +4 -4
- package/dist/index.js +338 -137
- package/dist/index.js.map +4 -4
- package/dist/query.js +26 -8
- package/dist/query.js.map +4 -4
- package/package.json +8 -8
- package/src/api/controllers/automation.ts +37 -9
- package/src/api/controllers/webhook.ts +33 -9
- package/src/api/routes/automation.ts +0 -1
- package/src/api/routes/tests/{automation.spec.js → automation.spec.ts} +106 -31
- package/src/api/routes/tests/{webhook.spec.js → webhook.spec.ts} +33 -11
- package/src/automations/actions.ts +3 -0
- package/src/automations/steps/bash.ts +4 -0
- package/src/automations/steps/collect.ts +58 -0
- package/src/automations/steps/createRow.ts +4 -0
- package/src/automations/steps/delay.ts +1 -0
- package/src/automations/steps/deleteRow.ts +4 -0
- package/src/automations/steps/discord.ts +4 -0
- package/src/automations/steps/executeQuery.ts +4 -0
- package/src/automations/steps/executeScript.ts +4 -0
- package/src/automations/steps/filter.ts +1 -0
- package/src/automations/steps/loop.ts +1 -0
- package/src/automations/steps/make.ts +4 -0
- package/src/automations/steps/openai.ts +1 -0
- package/src/automations/steps/outgoingWebhook.ts +4 -0
- package/src/automations/steps/queryRows.ts +4 -0
- package/src/automations/steps/sendSmtpEmail.ts +4 -0
- package/src/automations/steps/serverLog.ts +4 -0
- package/src/automations/steps/slack.ts +4 -0
- package/src/automations/steps/updateRow.ts +4 -0
- package/src/automations/steps/zapier.ts +4 -0
- package/src/automations/triggers.ts +3 -2
- package/src/sdk/app/automations/index.ts +2 -0
- package/src/sdk/app/automations/utils.ts +7 -0
- package/src/tests/utilities/TestConfiguration.ts +4 -2
- package/src/tests/utilities/structures.ts +42 -0
- package/src/threads/automation.ts +39 -0
package/dist/query.js
CHANGED
|
@@ -872,6 +872,7 @@ var init_automation2 = __esm({
|
|
|
872
872
|
AutomationActionStepId2["FILTER"] = "FILTER";
|
|
873
873
|
AutomationActionStepId2["QUERY_ROWS"] = "QUERY_ROWS";
|
|
874
874
|
AutomationActionStepId2["LOOP"] = "LOOP";
|
|
875
|
+
AutomationActionStepId2["COLLECT"] = "COLLECT";
|
|
875
876
|
AutomationActionStepId2["OPENAI"] = "OPENAI";
|
|
876
877
|
AutomationActionStepId2["discord"] = "discord";
|
|
877
878
|
AutomationActionStepId2["slack"] = "slack";
|
|
@@ -18852,7 +18853,8 @@ __export(features_exports, {
|
|
|
18852
18853
|
isBackupsEnabled: () => isBackupsEnabled,
|
|
18853
18854
|
isBrandingEnabled: () => isBrandingEnabled,
|
|
18854
18855
|
isEnforceableSSO: () => isEnforceableSSO,
|
|
18855
|
-
isSSOEnforced: () => isSSOEnforced
|
|
18856
|
+
isSSOEnforced: () => isSSOEnforced,
|
|
18857
|
+
isSyncAutomationsEnabled: () => isSyncAutomationsEnabled
|
|
18856
18858
|
});
|
|
18857
18859
|
|
|
18858
18860
|
// ../pro/packages/pro/src/sdk/features/features.ts
|
|
@@ -20334,6 +20336,9 @@ async function isBrandingEnabled() {
|
|
|
20334
20336
|
async function isEnforceableSSO() {
|
|
20335
20337
|
return isFeatureEnabled("enforceableSSO" /* ENFORCEABLE_SSO */);
|
|
20336
20338
|
}
|
|
20339
|
+
async function isSyncAutomationsEnabled() {
|
|
20340
|
+
return isFeatureEnabled("syncAutomations" /* SYNC_AUTOMATIONS */);
|
|
20341
|
+
}
|
|
20337
20342
|
async function isSSOEnforced(opts) {
|
|
20338
20343
|
if (environment_default2.ENABLE_SSO_MAINTENANCE_MODE) {
|
|
20339
20344
|
return false;
|
|
@@ -23429,9 +23434,22 @@ async function destroy6(id, rev) {
|
|
|
23429
23434
|
return await db.remove(id, rev);
|
|
23430
23435
|
}
|
|
23431
23436
|
|
|
23437
|
+
// src/sdk/app/automations/utils.ts
|
|
23438
|
+
var utils_exports6 = {};
|
|
23439
|
+
__export(utils_exports6, {
|
|
23440
|
+
checkForCollectStep: () => checkForCollectStep
|
|
23441
|
+
});
|
|
23442
|
+
init_src();
|
|
23443
|
+
function checkForCollectStep(automation) {
|
|
23444
|
+
return automation.definition.steps.some(
|
|
23445
|
+
(step) => step.stepId === "COLLECT" /* COLLECT */
|
|
23446
|
+
);
|
|
23447
|
+
}
|
|
23448
|
+
|
|
23432
23449
|
// src/sdk/app/automations/index.ts
|
|
23433
23450
|
var automations_default = {
|
|
23434
|
-
webhook: webhook_exports
|
|
23451
|
+
webhook: webhook_exports,
|
|
23452
|
+
utils: utils_exports6
|
|
23435
23453
|
};
|
|
23436
23454
|
|
|
23437
23455
|
// src/sdk/app/applications/sync.ts
|
|
@@ -23644,8 +23662,8 @@ async function syncApp(appId, opts) {
|
|
|
23644
23662
|
}
|
|
23645
23663
|
|
|
23646
23664
|
// src/sdk/app/applications/utils.ts
|
|
23647
|
-
var
|
|
23648
|
-
__export(
|
|
23665
|
+
var utils_exports7 = {};
|
|
23666
|
+
__export(utils_exports7, {
|
|
23649
23667
|
getAppUrl: () => getAppUrl
|
|
23650
23668
|
});
|
|
23651
23669
|
var URL_REGEX_SLASH = /\/|\\/g;
|
|
@@ -23665,7 +23683,7 @@ function getAppUrl(opts) {
|
|
|
23665
23683
|
// src/sdk/app/applications/index.ts
|
|
23666
23684
|
var applications_default = {
|
|
23667
23685
|
...sync_exports,
|
|
23668
|
-
...
|
|
23686
|
+
...utils_exports7
|
|
23669
23687
|
};
|
|
23670
23688
|
|
|
23671
23689
|
// src/sdk/app/queries/queries.ts
|
|
@@ -23790,8 +23808,8 @@ var rows_default2 = {
|
|
|
23790
23808
|
};
|
|
23791
23809
|
|
|
23792
23810
|
// src/sdk/users/utils.ts
|
|
23793
|
-
var
|
|
23794
|
-
__export(
|
|
23811
|
+
var utils_exports8 = {};
|
|
23812
|
+
__export(utils_exports8, {
|
|
23795
23813
|
combineMetadataAndUser: () => combineMetadataAndUser,
|
|
23796
23814
|
rawUserMetadata: () => rawUserMetadata,
|
|
23797
23815
|
syncGlobalUsers: () => syncGlobalUsers
|
|
@@ -23865,7 +23883,7 @@ async function syncGlobalUsers() {
|
|
|
23865
23883
|
|
|
23866
23884
|
// src/sdk/users/index.ts
|
|
23867
23885
|
var users_default = {
|
|
23868
|
-
...
|
|
23886
|
+
...utils_exports8
|
|
23869
23887
|
};
|
|
23870
23888
|
|
|
23871
23889
|
// src/sdk/plugins/plugins.ts
|