@objectstack/runtime 12.0.0 → 12.1.0
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/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +21 -21
package/dist/index.js
CHANGED
|
@@ -4305,6 +4305,14 @@ var _HttpDispatcher = class _HttpDispatcher {
|
|
|
4305
4305
|
}
|
|
4306
4306
|
return { handled: true, response: this.success({ connectors: [], total: 0 }) };
|
|
4307
4307
|
}
|
|
4308
|
+
if (parts[0] === "_status" && parts.length === 1 && m === "GET") {
|
|
4309
|
+
const svc = automationService;
|
|
4310
|
+
if (typeof svc.getFlowRuntimeStates === "function") {
|
|
4311
|
+
const flows = svc.getFlowRuntimeStates();
|
|
4312
|
+
return { handled: true, response: this.success({ flows, total: flows.length }) };
|
|
4313
|
+
}
|
|
4314
|
+
return { handled: true, response: this.success({ flows: [], total: 0 }) };
|
|
4315
|
+
}
|
|
4308
4316
|
if (parts.length >= 1) {
|
|
4309
4317
|
const name = parts[0];
|
|
4310
4318
|
if (parts[1] === "trigger" && m === "POST") {
|