@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.cjs
CHANGED
|
@@ -4370,6 +4370,14 @@ var _HttpDispatcher = class _HttpDispatcher {
|
|
|
4370
4370
|
}
|
|
4371
4371
|
return { handled: true, response: this.success({ connectors: [], total: 0 }) };
|
|
4372
4372
|
}
|
|
4373
|
+
if (parts[0] === "_status" && parts.length === 1 && m === "GET") {
|
|
4374
|
+
const svc = automationService;
|
|
4375
|
+
if (typeof svc.getFlowRuntimeStates === "function") {
|
|
4376
|
+
const flows = svc.getFlowRuntimeStates();
|
|
4377
|
+
return { handled: true, response: this.success({ flows, total: flows.length }) };
|
|
4378
|
+
}
|
|
4379
|
+
return { handled: true, response: this.success({ flows: [], total: 0 }) };
|
|
4380
|
+
}
|
|
4373
4381
|
if (parts.length >= 1) {
|
|
4374
4382
|
const name = parts[0];
|
|
4375
4383
|
if (parts[1] === "trigger" && m === "POST") {
|