paperclip-plugin-autopilot-ops 0.1.31 → 0.1.32

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  // src/manifest.ts
2
2
  var PLUGIN_ID = "alephoo.autopilot-ops";
3
- var PLUGIN_VERSION = "0.1.31";
3
+ var PLUGIN_VERSION = "0.1.32";
4
4
  var DB_NAMESPACE_SLUG = "autopilot_ops";
5
5
  var PAGE_ROUTE = "autopilot";
6
6
  var TOOL_NAMES = {
@@ -17,7 +17,8 @@ var TOOL_NAMES = {
17
17
  publicarTablero: "ops_publicar_tablero",
18
18
  listarTableros: "ops_listar_tableros",
19
19
  listarReglas: "ops_listar_reglas",
20
- informarPruebaRegla: "ops_informar_prueba_regla"
20
+ informarPruebaRegla: "ops_informar_prueba_regla",
21
+ evaluarRentabilidad: "ops_evaluar_rentabilidad"
21
22
  };
22
23
  var DATA_KEYS = {
23
24
  tablero: "tablero",
@@ -104,6 +105,16 @@ var manifest = {
104
105
  required: ["reglaId", "alcanza"]
105
106
  }
106
107
  },
108
+ {
109
+ name: TOOL_NAMES.evaluarRentabilidad,
110
+ displayName: "Evaluar rentabilidad",
111
+ description: "Calcula la rentabilidad de muchas pr\xE1cticas de una vez, sin abrir casos: para cada lectura (pr\xE1ctica y financiador, como la devuelve leer-rentabilidad.mjs) devuelve el valor del convenio, el honorario (rango por profesional), los insumos, el margen y la clase (perdida, margen_bajo, rentable o datos_incompletos) con las opciones de la instituci\xF3n. Sirve para el tablero completo y para saber qu\xE9 casos abrir. Solo lectura.",
112
+ parametersSchema: {
113
+ type: "object",
114
+ properties: { lecturas: { type: "array", items: { type: "object" } } },
115
+ required: ["lecturas"]
116
+ }
117
+ },
107
118
  {
108
119
  name: TOOL_NAMES.leerCaso,
109
120
  displayName: "Leer caso",
@@ -442,6 +453,22 @@ var manifest = {
442
453
  capability: "api.routes.register",
443
454
  companyResolution: { from: "body", key: "companyId" }
444
455
  },
456
+ {
457
+ routeKey: "insumos-practica",
458
+ method: "GET",
459
+ path: "/insumos-practica",
460
+ auth: "board",
461
+ capability: "api.routes.register",
462
+ companyResolution: { from: "query", key: "companyId" }
463
+ },
464
+ {
465
+ routeKey: "guardar-insumos-practica",
466
+ method: "POST",
467
+ path: "/insumos-practica",
468
+ auth: "board",
469
+ capability: "api.routes.register",
470
+ companyResolution: { from: "body", key: "companyId" }
471
+ },
445
472
  {
446
473
  routeKey: "contactos",
447
474
  method: "GET",
package/dist/ui/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
 
9
9
  // src/manifest.ts
10
10
  var PLUGIN_ID = "alephoo.autopilot-ops";
11
- var PLUGIN_VERSION = "0.1.31";
11
+ var PLUGIN_VERSION = "0.1.32";
12
12
  var DB_NAMESPACE_SLUG = "autopilot_ops";
13
13
  var PAGE_ROUTE = "autopilot";
14
14
  var TOOL_NAMES = {
@@ -25,7 +25,8 @@ var TOOL_NAMES = {
25
25
  publicarTablero: "ops_publicar_tablero",
26
26
  listarTableros: "ops_listar_tableros",
27
27
  listarReglas: "ops_listar_reglas",
28
- informarPruebaRegla: "ops_informar_prueba_regla"
28
+ informarPruebaRegla: "ops_informar_prueba_regla",
29
+ evaluarRentabilidad: "ops_evaluar_rentabilidad"
29
30
  };
30
31
  var DATA_KEYS = {
31
32
  tablero: "tablero",
@@ -112,6 +113,16 @@ var manifest = {
112
113
  required: ["reglaId", "alcanza"]
113
114
  }
114
115
  },
116
+ {
117
+ name: TOOL_NAMES.evaluarRentabilidad,
118
+ displayName: "Evaluar rentabilidad",
119
+ description: "Calcula la rentabilidad de muchas pr\xE1cticas de una vez, sin abrir casos: para cada lectura (pr\xE1ctica y financiador, como la devuelve leer-rentabilidad.mjs) devuelve el valor del convenio, el honorario (rango por profesional), los insumos, el margen y la clase (perdida, margen_bajo, rentable o datos_incompletos) con las opciones de la instituci\xF3n. Sirve para el tablero completo y para saber qu\xE9 casos abrir. Solo lectura.",
120
+ parametersSchema: {
121
+ type: "object",
122
+ properties: { lecturas: { type: "array", items: { type: "object" } } },
123
+ required: ["lecturas"]
124
+ }
125
+ },
115
126
  {
116
127
  name: TOOL_NAMES.leerCaso,
117
128
  displayName: "Leer caso",
@@ -450,6 +461,22 @@ var manifest = {
450
461
  capability: "api.routes.register",
451
462
  companyResolution: { from: "body", key: "companyId" }
452
463
  },
464
+ {
465
+ routeKey: "insumos-practica",
466
+ method: "GET",
467
+ path: "/insumos-practica",
468
+ auth: "board",
469
+ capability: "api.routes.register",
470
+ companyResolution: { from: "query", key: "companyId" }
471
+ },
472
+ {
473
+ routeKey: "guardar-insumos-practica",
474
+ method: "POST",
475
+ path: "/insumos-practica",
476
+ auth: "board",
477
+ capability: "api.routes.register",
478
+ companyResolution: { from: "body", key: "companyId" }
479
+ },
453
480
  {
454
481
  routeKey: "contactos",
455
482
  method: "GET",