sigo-package 1.2.146 → 1.2.147

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/index.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as sigo_entities from 'sigo-entities';
2
2
  import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, CodigoNombreUMDTO, PrecioContratistaMOAL04ENTITY, ManoObraGlobalENTITY, ValorizacionManoObraDTO, PrecioContratistaMOAL02ENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionAlemaniaDTO, ValorizacionDTO, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO, PrecioMaterialENTITY, CodigoNombreDTO, SystemOptionEntity, MenuDto } from 'sigo-entities';
3
3
  import { ClassConstructor } from 'class-transformer';
4
- import { TFunction } from 'i18next';
5
4
  import { Request, Response, NextFunction } from 'express';
6
5
 
7
6
  interface IenvSIGO$1 {
@@ -816,7 +815,8 @@ declare function builSystemOption(params: IParams): Promise<{
816
815
  newData: SystemOptionEntity[];
817
816
  }>;
818
817
 
819
- declare const buildMenu: (data: SystemOptionEntity[], t: TFunction<"translation", undefined>) => MenuDto[];
818
+ type TranslateFn = (key: string) => string;
819
+ declare const buildMenu: (data: SystemOptionEntity[], t: TranslateFn) => MenuDto[];
820
820
 
821
821
  declare function validateUUIDv4Param(BadRequestException: ClassConstructor<Error>, req: Request<any>, _res: Response, next: NextFunction): Promise<void>;
822
822
 
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as sigo_entities from 'sigo-entities';
2
2
  import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, CodigoNombreUMDTO, PrecioContratistaMOAL04ENTITY, ManoObraGlobalENTITY, ValorizacionManoObraDTO, PrecioContratistaMOAL02ENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionAlemaniaDTO, ValorizacionDTO, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO, PrecioMaterialENTITY, CodigoNombreDTO, SystemOptionEntity, MenuDto } from 'sigo-entities';
3
3
  import { ClassConstructor } from 'class-transformer';
4
- import { TFunction } from 'i18next';
5
4
  import { Request, Response, NextFunction } from 'express';
6
5
 
7
6
  interface IenvSIGO$1 {
@@ -816,7 +815,8 @@ declare function builSystemOption(params: IParams): Promise<{
816
815
  newData: SystemOptionEntity[];
817
816
  }>;
818
817
 
819
- declare const buildMenu: (data: SystemOptionEntity[], t: TFunction<"translation", undefined>) => MenuDto[];
818
+ type TranslateFn = (key: string) => string;
819
+ declare const buildMenu: (data: SystemOptionEntity[], t: TranslateFn) => MenuDto[];
820
820
 
821
821
  declare function validateUUIDv4Param(BadRequestException: ClassConstructor<Error>, req: Request<any>, _res: Response, next: NextFunction): Promise<void>;
822
822
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-package",
3
- "version": "1.2.146",
3
+ "version": "1.2.147",
4
4
  "description": "Funciones compartidas sigo",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -21,9 +21,8 @@
21
21
  "typescript": "^5.7.3"
22
22
  },
23
23
  "peerDependencies": {
24
- "i18next": "^26.3.2",
25
- "sigo-entities": "^1.2.383",
26
- "class-validator": "^0.15.1"
24
+ "class-validator": "^0.15.1",
25
+ "sigo-entities": "^1.2.383"
27
26
  },
28
27
  "overrides": {
29
28
  "esbuild": "^0.28.0"