paperclip-plugin-autopilot-ops 0.1.13 → 0.1.14
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/manifest.js +81 -4
- package/dist/ui/index.js +81 -4
- package/dist/worker.js +870 -182
- package/migrations/004_reglas.sql +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
-- Reglas de un puesto como datos: las arma el hospital desde el portal, con versión,
|
|
2
|
+
-- autor, historial y una prueba sobre casos reales antes de activarlas.
|
|
3
|
+
-- Primer uso: demanda_pendiente (órdenes, solicitudes y controles que no se ejecutaron).
|
|
4
|
+
|
|
5
|
+
CREATE TABLE plugin_autopilot_ops_1a68482ede.regla (
|
|
6
|
+
id uuid PRIMARY KEY,
|
|
7
|
+
company_id uuid NOT NULL REFERENCES public.companies(id) ON DELETE CASCADE,
|
|
8
|
+
workflow text NOT NULL,
|
|
9
|
+
nombre text NOT NULL,
|
|
10
|
+
tipo text NOT NULL,
|
|
11
|
+
parametros jsonb NOT NULL DEFAULT '{}'::jsonb,
|
|
12
|
+
contacto jsonb NOT NULL DEFAULT '{}'::jsonb,
|
|
13
|
+
cierre jsonb NOT NULL DEFAULT '{}'::jsonb,
|
|
14
|
+
estado text NOT NULL DEFAULT 'borrador',
|
|
15
|
+
version integer NOT NULL DEFAULT 1,
|
|
16
|
+
historial jsonb NOT NULL DEFAULT '[]'::jsonb,
|
|
17
|
+
ultima_prueba jsonb,
|
|
18
|
+
actor_tipo text NOT NULL,
|
|
19
|
+
actor_id text,
|
|
20
|
+
created_at timestamptz NOT NULL DEFAULT now(),
|
|
21
|
+
updated_at timestamptz NOT NULL DEFAULT now()
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
CREATE INDEX regla_company_workflow_estado_idx
|
|
25
|
+
ON plugin_autopilot_ops_1a68482ede.regla (company_id, workflow, estado);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paperclip-plugin-autopilot-ops",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Autopilot Care · operación autónoma gobernada para instituciones de salud: workflows determinísticos, validaciones, registro de negocio, políticas (observa/propone/ejecuta/corte) y tablero del director, como plugin de Paperclip.",
|
|
6
6
|
"files": [
|