utn-cli 2.0.82 → 2.0.83

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.
@@ -92,7 +92,7 @@ async function inicializarProyectoBackend() {
92
92
 
93
93
  await askAndReplace('CEDULA_DEL_DESARROLLADOR', '¿Cuál es el número de cédula del desarrollador?: ', rutaDeInformacionDelModulo, 'CEDULA_DEL_DESARROLLADOR');
94
94
 
95
- const url_del_grupo = await askAndReplace('url_del_grupo', '¿Cuál es la URL del grupo en el Git?: ', path.join(process.cwd(), 'package.json'), 'url_del_grupo', (val) => {
95
+ const url_del_grupo = await askAndReplace('url_del_grupo', '¿Cuál es la URL del grupo en el Git?: ', rutaDeInformacionDelModulo, 'url_del_grupo', (val) => {
96
96
  reemplazarContenidoEnArchivo(path.join(process.cwd(), 'package.json'), 'url_del_grupo', val);
97
97
  });
98
98
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utn-cli",
3
- "version": "2.0.82",
3
+ "version": "2.0.83",
4
4
  "description": "Herramienta CLI unificada para la gestión de plantillas en SIGU.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -54,7 +54,7 @@ class InformacionDelModulo {
54
54
  getUsuariosConAccesoInicial() {
55
55
  // UsuariosConAccesoInicial es un arreglo de strings de la forma ['111050570', '111050570']
56
56
  // Este arreglo se usa para asignar acceso a este módulo, suelen usarse las cédulas de los encargados del proyecto y el desarrollador
57
- return ['111050570', '204540859', '602990078', '109840817', '206860639', '155821845336', 'CEDULA_DEL_DESARROLLADOR'];
57
+ return ['111050570', '204540859', '602990078', '109840817', '206860639', '801680123', 'CEDULA_DEL_DESARROLLADOR'];
58
58
  };
59
59
  getColorDelModulo() {
60
60
  return 'COLOR_DEL_MODULO';
@@ -65,6 +65,9 @@ class InformacionDelModulo {
65
65
  getVersion() {
66
66
  return 'VERSION';
67
67
  };
68
+ getUrlDelGrupo() {
69
+ return 'url_del_grupo';
70
+ };
68
71
  }
69
72
 
70
73
  module.exports = new InformacionDelModulo();
@@ -15,8 +15,9 @@ class Miscelaneo {
15
15
  this.NombreDelRepositorioDeLaBaseDeDatos = InformacionDelModulo.getNombreDelRepositorioDeLaBaseDeDatos();
16
16
  this.NombreDelRepositorioDelBackend = InformacionDelModulo.getNombreDelRepositorioDelBackend();
17
17
  this.NombreDelRepositorioDelFrontend = InformacionDelModulo.getNombreDelRepositorioDelFrontend();
18
- this.Repositorios = this.NombreDelRepositorioDeLaBaseDeDatos + ',' + this.NombreDelRepositorioDelBackend
19
- + ',' + this.NombreDelRepositorioDelFrontend;
18
+ this.UrlDelGrupo = InformacionDelModulo.getUrlDelGrupo();
19
+ this.Repositorios = this.UrlDelGrupo + '/' + this.NombreDelRepositorioDeLaBaseDeDatos + ',' + this.UrlDelGrupo + '/' + this.NombreDelRepositorioDelBackend
20
+ + ',' + this.UrlDelGrupo + '/' + this.NombreDelRepositorioDelFrontend;
20
21
  this.NombreDelPermiso = this.NombreCanonicoDelModulo + ' - ' + InformacionDelModulo.getNombreDelPermiso();
21
22
  this.NombreDelPermisoV2 = InformacionDelModulo.getNombreDelPermiso();
22
23
  this.DescripcionDelPermiso = InformacionDelModulo.getDescripcionDelPermiso();
@@ -1179,10 +1180,10 @@ class Miscelaneo {
1179
1180
  const Version = this.Version + "$$" + this.versionDelNucleo().split(' ')[0];
1180
1181
  await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_ModulosV2` VALUES\
1181
1182
  (?, ?, ?, ?, ?, ?, ?, ?, ?, NOW(4), ?, 'DiccionarioDeDatos'\
1182
- , ?, '-', '-', 'Activo', NOW(4), USER()) ON DUPLICATE KEY UPDATE `Version` = ?"
1183
+ , ?, '-', '-', 'Activo', NOW(4), USER()) ON DUPLICATE KEY UPDATE `Version` = ?, `Repositorios` = ?"
1183
1184
  , [this.NombreCanonicoDelModulo, this.MenuPadre, this.DescripcionDelModulo, this.DetalleDelModulo
1184
1185
  , this.TipoDeCard, this.IconoDelModulo, this.ColorDelModulo, this.CorreoParaReportes, Version, this.versionDelNucleo().split(' ')[0], this.Repositorios
1185
- , Version]);
1186
+ , Version, this.Repositorios]);
1186
1187
  await ejecutarConsultaSIGU("SELECT IFNULL(MAX(`PermisoId`), 0) + 1 INTO @`SiguientePermisoId` FROM `SIGU`.`SIGU_PermisosV2`;\
1187
1188
  INSERT INTO `SIGU`.`SIGU_PermisosV2` VALUES\
1188
1189
  (@`SiguientePermisoId`, ?, ?, ?, NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUser` = USER(), `Nombre` = ?, `Descripcion` = ?;"