@budibase/server 2.3.18-alpha.7 → 2.3.18-alpha.9
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.22724f34.css +6 -0
- package/builder/assets/{index.3c2a7081.js → index.956858d3.js} +322 -313
- package/builder/index.html +2 -2
- package/dist/api/controllers/automation.js +11 -2
- package/dist/api/routes/automation.js +1 -1
- package/dist/package.json +6 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/api/controllers/automation.ts +13 -2
- package/src/api/routes/automation.ts +1 -1
- package/builder/assets/index.392d727e.css +0 -6
package/builder/index.html
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
|
|
11
11
|
rel="stylesheet"
|
|
12
12
|
/>
|
|
13
|
-
<script type="module" crossorigin src="/builder/assets/index.
|
|
14
|
-
<link rel="stylesheet" href="/builder/assets/index.
|
|
13
|
+
<script type="module" crossorigin src="/builder/assets/index.956858d3.js"></script>
|
|
14
|
+
<link rel="stylesheet" href="/builder/assets/index.22724f34.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body id="app">
|
|
17
17
|
|
|
@@ -85,9 +85,13 @@ function create(ctx) {
|
|
|
85
85
|
automation.appId = ctx.appId;
|
|
86
86
|
// call through to update if already exists
|
|
87
87
|
if (automation._id && automation._rev) {
|
|
88
|
-
|
|
88
|
+
yield update(ctx);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
// Respect existing IDs if recreating a deleted automation
|
|
92
|
+
if (!automation._id) {
|
|
93
|
+
automation._id = (0, utils_1.generateAutomationID)();
|
|
89
94
|
}
|
|
90
|
-
automation._id = (0, utils_1.generateAutomationID)();
|
|
91
95
|
automation.type = "automation";
|
|
92
96
|
automation = cleanAutomationInputs(automation);
|
|
93
97
|
automation = yield (0, utils_2.checkForWebhooks)({
|
|
@@ -137,6 +141,11 @@ function update(ctx) {
|
|
|
137
141
|
const db = backend_core_1.context.getAppDB();
|
|
138
142
|
let automation = ctx.request.body;
|
|
139
143
|
automation.appId = ctx.appId;
|
|
144
|
+
// Call through to create if it doesn't exist
|
|
145
|
+
if (!automation._id || !automation._rev) {
|
|
146
|
+
yield create(ctx);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
140
149
|
const oldAutomation = yield db.get(automation._id);
|
|
141
150
|
automation = cleanAutomationInputs(automation);
|
|
142
151
|
automation = yield (0, utils_2.checkForWebhooks)({
|
|
@@ -40,7 +40,7 @@ router
|
|
|
40
40
|
.get("/api/automations/definitions/list", (0, authorized_1.default)(backend_core_1.permissions.BUILDER), controller.getDefinitionList)
|
|
41
41
|
.get("/api/automations", (0, authorized_1.default)(backend_core_1.permissions.BUILDER), controller.fetch)
|
|
42
42
|
.get("/api/automations/:id", (0, resourceId_1.paramResource)("id"), (0, authorized_1.default)(backend_core_1.permissions.BUILDER), controller.find)
|
|
43
|
-
.put("/api/automations", (0, resourceId_1.bodyResource)("_id"), (0, authorized_1.default)(backend_core_1.permissions.BUILDER), (0, validators_1.automationValidator)(
|
|
43
|
+
.put("/api/automations", (0, resourceId_1.bodyResource)("_id"), (0, authorized_1.default)(backend_core_1.permissions.BUILDER), (0, validators_1.automationValidator)(false), controller.update)
|
|
44
44
|
.post("/api/automations", (0, authorized_1.default)(backend_core_1.permissions.BUILDER), (0, validators_1.automationValidator)(false), controller.create)
|
|
45
45
|
.post("/api/automations/logs/search", (0, authorized_1.default)(backend_core_1.permissions.BUILDER), controller.logSearch)
|
|
46
46
|
.delete("/api/automations/logs", (0, authorized_1.default)(backend_core_1.permissions.BUILDER), controller.clearLogError)
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.3.18-alpha.
|
|
4
|
+
"version": "2.3.18-alpha.8",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"license": "GPL-3.0",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
46
|
-
"@budibase/backend-core": "2.3.18-alpha.
|
|
47
|
-
"@budibase/client": "2.3.18-alpha.
|
|
48
|
-
"@budibase/pro": "2.3.18-alpha.
|
|
49
|
-
"@budibase/string-templates": "2.3.18-alpha.
|
|
50
|
-
"@budibase/types": "2.3.18-alpha.
|
|
46
|
+
"@budibase/backend-core": "2.3.18-alpha.8",
|
|
47
|
+
"@budibase/client": "2.3.18-alpha.8",
|
|
48
|
+
"@budibase/pro": "2.3.18-alpha.8",
|
|
49
|
+
"@budibase/string-templates": "2.3.18-alpha.8",
|
|
50
|
+
"@budibase/types": "2.3.18-alpha.8",
|
|
51
51
|
"@bull-board/api": "3.7.0",
|
|
52
52
|
"@bull-board/koa": "3.9.4",
|
|
53
53
|
"@elastic/elasticsearch": "7.10.0",
|