@gnpdev/rpa-tools 1.1.0 → 1.1.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnpdev/rpa-tools",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Libreria para logs y screenshot de bots",
5
5
  "author": "Sergio Antonio Trujillo del Valle",
6
6
  "main": "src/index.js",
@@ -17,11 +17,11 @@ class CredentialManager {
17
17
  /**
18
18
  * Obtiene las credenciales de una aplicación.
19
19
  * @param {string} nombre - Nombre de la aplicación
20
- * @returns {Promise<{usuario: string, password: string, idUsuario: string}|null>}
20
+ * @returns {Promise<{nombre: string, usuario: string, password: string, idUsuario: string, status: boolean}|null>}
21
21
  */
22
22
  async getAppCredentials(nombre) {
23
23
  const { rows } = await this.pool.query(
24
- `SELECT usuario, password, "idUsuario"
24
+ `SELECT nombre, usuario, password, "idUsuario", status
25
25
  FROM bots.tb_aplicaciones_bots
26
26
  WHERE nombre = $1 AND bot_id = $2
27
27
  LIMIT 1`,
package/src/index.d.ts CHANGED
@@ -72,7 +72,7 @@ export interface RpaTools {
72
72
  * Recupera credenciales de una aplicación desde la base de datos.
73
73
  * @param nombre - Nombre de la aplicación (ej. 'Portal CRM')
74
74
  */
75
- getCredentials: (nombre: string) => Promise<{ usuario: string; password: string; idUsuario: string } | null>;
75
+ getCredentials: (nombre: string) => Promise<{ nombre: string; usuario: string; password: string; idUsuario: string; status: boolean } | null>;
76
76
 
77
77
  /**
78
78
  * Actualiza el estado y las observaciones de una aplicación.