@budibase/frontend-core 1.0.212-alpha.10 → 1.0.212-alpha.13
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/package.json +3 -3
- package/src/api/automations.js +35 -0
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "1.0.212-alpha.
|
|
3
|
+
"version": "1.0.212-alpha.13",
|
|
4
4
|
"description": "Budibase frontend core libraries used in builder and client",
|
|
5
5
|
"author": "Budibase",
|
|
6
6
|
"license": "MPL-2.0",
|
|
7
7
|
"svelte": "src/index.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@budibase/bbui": "^1.0.212-alpha.
|
|
9
|
+
"@budibase/bbui": "^1.0.212-alpha.13",
|
|
10
10
|
"lodash": "^4.17.21",
|
|
11
11
|
"svelte": "^3.46.2"
|
|
12
12
|
},
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "1b460f45a10f98573cb9fe7ca5269550155c5bed"
|
|
14
14
|
}
|
package/src/api/automations.js
CHANGED
|
@@ -73,4 +73,39 @@ export const buildAutomationEndpoints = API => ({
|
|
|
73
73
|
url: `/api/automations/${automationId}/${automationRev}`,
|
|
74
74
|
})
|
|
75
75
|
},
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Get the logs for the app, or by automation ID.
|
|
79
|
+
* @param automationId The ID of the automation to get logs for.
|
|
80
|
+
* @param startDate An ISO date string to state the start of the date range.
|
|
81
|
+
* @param status The status, error or success.
|
|
82
|
+
* @param page The page to retrieve.
|
|
83
|
+
*/
|
|
84
|
+
getAutomationLogs: async ({ automationId, startDate, status, page }) => {
|
|
85
|
+
return await API.post({
|
|
86
|
+
url: "/api/automations/logs/search",
|
|
87
|
+
body: {
|
|
88
|
+
automationId,
|
|
89
|
+
startDate,
|
|
90
|
+
status,
|
|
91
|
+
page,
|
|
92
|
+
},
|
|
93
|
+
})
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Clears automation log errors (which are creating notification) for
|
|
98
|
+
* automation or the app.
|
|
99
|
+
* @param automationId optional - the ID of the automation to clear errors for.
|
|
100
|
+
* @param appId The app ID to clear errors for.
|
|
101
|
+
*/
|
|
102
|
+
clearAutomationLogErrors: async ({ automationId, appId }) => {
|
|
103
|
+
return await API.delete({
|
|
104
|
+
url: "/api/automations/logs",
|
|
105
|
+
body: {
|
|
106
|
+
appId,
|
|
107
|
+
automationId,
|
|
108
|
+
},
|
|
109
|
+
})
|
|
110
|
+
},
|
|
76
111
|
})
|