utn-cli 2.1.33 → 2.1.35

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": "utn-cli",
3
- "version": "2.1.33",
3
+ "version": "2.1.35",
4
4
  "description": "Herramienta CLI unificada para la gestión de plantillas en SIGU.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -24,7 +24,7 @@ class Miscelaneo {
24
24
  this.MenuPadre = InformacionDelModulo.getMenuPadre();
25
25
  this.BackEndsQueConsumeEsteModulo = InformacionDelModulo.getBackEndsQueConsumeEsteModulo();
26
26
  // this.PerfilGeneral = InformacionDelModulo.getPerfilGeneral();
27
- this.UsuariosConAccesoInicial = InformacionDelModulo.getUsuariosConAccesoInicial();
27
+ // this.UsuariosConAccesoInicial = InformacionDelModulo.getUsuariosConAccesoInicial();
28
28
  this.IconoDelModulo = this.NombreCanonicoDelModulo + '.svg';
29
29
  // this.ColorDelModulo = InformacionDelModulo.getColorDelModulo();
30
30
  this.CorreoParaReportes = InformacionDelModulo.getCorreoParaReportes();
@@ -191,16 +191,16 @@ class Miscelaneo {
191
191
  (@`SiguientePermisoId`, ?, ?, ?, NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUser` = USER(), `Nombre` = ?, `Descripcion` = ?;"
192
192
  , [Permiso, this.NombreCanonicoDelModulo, Descripcion, Permiso, Descripcion]);
193
193
 
194
- // Asginación inicial de permisos
195
- if (this.UsuariosConAccesoInicial.length > 0) {
196
- const PermisoExtraIdValor = await this.PermisoExtraId(Permiso);
197
- this.UsuariosConAccesoInicial.forEach(async (dato) => {
198
- await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_PermisosExtraPersonasV2` VALUES (?,\
199
- (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = ?), NOW(4), USER())\
200
- ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
201
- , [PermisoExtraIdValor, dato]);
202
- });
203
- }
194
+ // // Asginación inicial de permisos
195
+ // if (this.UsuariosConAccesoInicial.length > 0) {
196
+ // const PermisoExtraIdValor = await this.PermisoExtraId(Permiso);
197
+ // this.UsuariosConAccesoInicial.forEach(async (dato) => {
198
+ // await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_PermisosExtraPersonasV2` VALUES (?,\
199
+ // (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = ?), NOW(4), USER())\
200
+ // ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
201
+ // , [PermisoExtraIdValor, dato]);
202
+ // });
203
+ // }
204
204
  }
205
205
 
206
206
  async PermisoExtraId(Permiso) {
@@ -1132,21 +1132,21 @@ class Miscelaneo {
1132
1132
  (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = '111050570'), NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUser` = USER()"
1133
1133
  , [await this.permisoIdV2()]);
1134
1134
 
1135
- // Asginación inicial de permisos
1136
- if (this.UsuariosConAccesoInicial.length > 0) {
1137
- const permisoId = await this.permisoIdV2();
1138
- const permisoIdDelPadre = await this.permisoIdDelPadreV2();
1139
- this.UsuariosConAccesoInicial.forEach(async (dato) => {
1140
- await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_PermisosPersonasV2` VALUES (?,\
1141
- (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = ?), NOW(4), USER())\
1142
- ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
1143
- , [permisoIdDelPadre, dato]);
1144
- await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_PermisosPersonasV2` VALUES (?,\
1145
- (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = ?), NOW(4), USER())\
1146
- ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
1147
- , [permisoId, dato]);
1148
- });
1149
- }
1135
+ // // Asginación inicial de permisos
1136
+ // if (this.UsuariosConAccesoInicial.length > 0) {
1137
+ // const permisoId = await this.permisoIdV2();
1138
+ // const permisoIdDelPadre = await this.permisoIdDelPadreV2();
1139
+ // this.UsuariosConAccesoInicial.forEach(async (dato) => {
1140
+ // await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_PermisosPersonasV2` VALUES (?,\
1141
+ // (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = ?), NOW(4), USER())\
1142
+ // ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
1143
+ // , [permisoIdDelPadre, dato]);
1144
+ // await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_PermisosPersonasV2` VALUES (?,\
1145
+ // (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = ?), NOW(4), USER())\
1146
+ // ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
1147
+ // , [permisoId, dato]);
1148
+ // });
1149
+ // }
1150
1150
 
1151
1151
  // Validación de que sólo el front especificado pueda consumir este backend
1152
1152
  const uuidTemporal = await ejecutarConsultaSIGU("SELECT UUID() AS `UUID`");