Improvements of automation trigger management

This commit is contained in:
Denis Arh
2019-08-23 13:49:36 +02:00
parent 2094684d5b
commit 6463df9af1
24 changed files with 699 additions and 342 deletions
+18 -4
View File
@@ -1292,6 +1292,14 @@
"Client ID",
"Session ID"
],
"struct": [
{
"imports": [
"github.com/cortezaproject/corteza-server/pkg/automation"
]
}
],
"parameters": {
"path": [
{
@@ -1353,8 +1361,7 @@
{
"name": "name",
"title": "automation name",
"type": "string",
"required": true
"type": "string"
},
{
"name": "sourceRef",
@@ -1394,6 +1401,10 @@
{
"name": "enabled",
"type": "bool"
},
{
"name": "triggers",
"type": "automation.TriggerSet"
}
]
}
@@ -1432,8 +1443,7 @@
{
"name": "name",
"title": "Script name",
"type": "string",
"required": true
"type": "string"
},
{
"name": "sourceRef",
@@ -1473,6 +1483,10 @@
{
"name": "enabled",
"type": "bool"
},
{
"name": "triggers",
"type": "automation.TriggerSet"
}
]
}
+15 -3
View File
@@ -1,7 +1,13 @@
{
"Title": "Automation scripts",
"Interface": "Automation_script",
"Struct": null,
"Struct": [
{
"imports": [
"github.com/cortezaproject/corteza-server/pkg/automation"
]
}
],
"Parameters": {
"path": [
{
@@ -68,7 +74,6 @@
"post": [
{
"name": "name",
"required": true,
"title": "automation name",
"type": "string"
},
@@ -110,6 +115,10 @@
{
"name": "enabled",
"type": "bool"
},
{
"name": "triggers",
"type": "automation.TriggerSet"
}
]
}
@@ -147,7 +156,6 @@
"post": [
{
"name": "name",
"required": true,
"title": "Script name",
"type": "string"
},
@@ -189,6 +197,10 @@
{
"name": "enabled",
"type": "bool"
},
{
"name": "triggers",
"type": "automation.TriggerSet"
}
]
}
+4 -12
View File
@@ -72,19 +72,15 @@
"Path": "/",
"Parameters": {
"post": [
{
"name": "name",
"required": true,
"title": "automation name",
"type": "string"
},
{
"name": "resource",
"required": true,
"title": "Resource",
"type": "string"
},
{
"name": "event",
"required": true,
"title": "Event",
"type": "string"
},
@@ -131,19 +127,15 @@
}
],
"post": [
{
"name": "name",
"required": true,
"title": "automation name",
"type": "string"
},
{
"name": "resource",
"required": true,
"title": "Resource",
"type": "string"
},
{
"name": "event",
"required": true,
"title": "Event",
"type": "string"
},