sigo-entities 1.0.42 → 1.0.44

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
@@ -16,6 +16,8 @@ interface IParams<T> {
16
16
  }
17
17
  declare function validateArrayBody<T extends object>(params: IParams<T>): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
18
18
 
19
+ declare const transformToDateIfEmpty: (value: any) => Date;
20
+
19
21
  declare class WBEDTO {
20
22
  ID_WBE: number;
21
23
  CodigoWBE: string;
@@ -2276,7 +2278,6 @@ declare enum OrigenCUB {
2276
2278
  declare class CubicacionENTITY {
2277
2279
  ID_Cubicacion: number;
2278
2280
  ID_MacroObra: number;
2279
- MacroObra: string;
2280
2281
  detalle: DetalleCubicajeDTO[];
2281
2282
  Accion: string;
2282
2283
  Fecha: Date;
@@ -4351,4 +4352,4 @@ declare class ToaClaroENTITY {
4351
4352
  Aptitudlaboral?: string;
4352
4353
  }
4353
4354
 
4354
- export { ActaFinalCubicacionDTO, ActaFinalCubicacionSharedDTO, ActividadZonasActividadDTO, ActividadesDTO, AddressListENTITY, AgenciaDTO, AgenciaENTITY, AgenciasDTO, AlmacenDTO, AlmacenENTITY, AlmacenLogisticaDTO, AlmacenUsuarioGIADTO, AreaGOMDTO, AreaGomDTO, AsignacionGomDTO, AsignacionGomDTO_Old, AtencionOrdenesLiquidadasENTITY, AtiendeBodegaDTO, AutoInventarioENTITY, BaremosAlemaniaENTITY, BaremosChileENTITY, BaremosColombiaENTITY, BaremosTOAChileENTITY, BaremosTOAENTITY, BitacoraAntiguaDTO, BitacoraDTO, BitacoraLiqDTO, BitacoraOpcionSitemaDTO, BodegaENTITY, CabeceraCubicacionColombiaDTO, CabeceraCubicajeAlemaniaDTO, CabeceraCubicajeChileDTO, CabeceraCubicajeDTO, CabeceraCubicajePeruDTO, CalculatePercentsDTO, CambioEstadoFacturadoRequest, CambioEstadoFaseRequest, CambiosEstadosFaseLiberacionPagosDTO, CausacionCubicacionDTO, CausacionDTO, CentroCostosENTITY, CertificacionProduccionDTO$1 as CertificacionProduccionDTO, ChileTdCENTITY, ClienteDTO, ClienteTdCDTO, Cliente_ContratistaDTO, CodigoDescripcionDTO, type CodigoMovimientoAlmacen, CodigoNombreDTO, CodigoNombreUMDTO, CodigoRazonSocialDTO, CodigoTituloDTO, ConsumoMaterialENTITY, ContrataDTO$1 as ContrataDTO, ContratistaDTO, ContratistasDTO, Contratistas_PE_DTO, ContratoDTO, ContratoOTDTO, ContratoOTENTITY, ContratoOTGeneralDTO, ContratoOT_PRE_DTO, ContratoOT_ZT_DTO, ContratoObraOTDTO, ConversionLogisticaDTO, CoordenadasDTO, CoordenadasTdCDTO, CorteBobinaStockAlmacenDTO, CuadrillaDTO, CuadrillaLiberacionPagosDTO, CubicacionAlemaniaAL02ENTITY, CubicacionChile9512ENTITY, CubicacionColombia9612ENTITY, CubicacionPeru9112ENTITY, CumplimientoDTO, DataAdicionalDTO, DataCatalogoItemDTO, DataChildrenTreeNodes, DataGridTabBusinessHP, DataGridTabResidentialHP, DataWithPercentItemChile, DatoUsuarioTipoOpcionDto, DatosAreaPersonalDTO, DatosCatalogoItemDTO, DatosCatalogoMODTO, DatosGIADTO, DatosGeneralesDTO, DatosGeneralesPersonalDTO, DatosManoObraGlobalDTO, DatosManoObraGlobalDetalleChileDTO, DatosPrecioEspecialidadDTO, DatosPrecioMaterialDTO, DatosReferenciaDTO, DatosTecnicosDTO, DatosTrabajoCatalogoDTO, DatosTrabajoUsuarioDTO, DatosTransportistaChileDTO, DatosTransportistaDTO, DatosUnidadObraMaterialDTO, DelegacionDTO, DelegacionZonalesDTO, DeleteBaremoFaseDTO, DestinatarioDTO, DetalleChileChileObraDTO, DetalleChileColombiaObraDTO, DetalleChileDTO$1 as DetalleChileDTO, DetalleChileObraDTO, DetalleChileValorizacionMODTO, DetalleChileValorizacionManoObraRegularizacionDTO, DetalleCubicajeDTO, DetalleDTO, DetalleManoObraChileDTO, DetalleSalidaAlmacenDTO, DevolucionAlmacenENTITY, DireccionDTO, DocumentacionBaremoPexENTITY, DocumentacionPEXENTITY, DocumentoDetalleDTO, DocumentosInicialesDTO, EECC_DTO, EmpalmeDTO, EmpresaDTO$4 as EmpresaDTO, EmpresaENTITY, EmpresaLiberacionPagosDTO, EmpresaLogisticaDTO, EmpresaPCMODTO, EmpresaPersonalDTO, EmpresaProduccionDTO, EmpresaStockPersonalDTO, EmpresaTdCDTO, EmpresaUsuarioDTO, EmpresaValDTO, EmpresaZonasActividadDTO, EquipoLogisticaDTO, EquiposAIDTO, EquiposDTO, EstadoAntiguoDTO, EstadoDTO, EstadoHPListDTO$2 as EstadoHPListDTO, EstadoIntegracionDTO, EstadoInternoDTO, EstadoInternoENTITY, EstadoInternoWithoutSubstateDTO, type EstadoLiq, EstadoLiqDTO, EstadoNotificacion, type EstadoVal, Estado_Model_MO, FacturaGeneradaDTO, FacturacionDTO, FamiliaItemDTO, FaseDTO$1 as FaseDTO, FaseENTITY, FechaDTO, FechaVigenciaBaremosDTO, FechaVigenciaPCMODTO, FechasDTO, FilesDocDTO, FlagsDTO, FlujoDocDTO, FotoDTO, FotosDTO, FotosSSTDTO$1 as FotosSSTDTO, GOMDTO, GomENTITY, GomNovedadesDTO, GomNovedadesTipoNovedadDTO, GranFamiliaItemDTO, GrupoEmpresaDTO, HPListAsignacionDTO, HPListDTO, HistoricoDTO, HistoricoEmpresasDTO, HitoDTO, HomePassDTO$1 as HomePassDTO, IDataSheetCoordenadas, IDataSheetLineasTdC, IDataSheetMateriales, IDataSheetMedidores, IDataSheetTdC, IDataSheetTiemposCumplimentados, ISheetsJsonChileTdC, IncidenciasChileDTO, IncidenciasDTO, IngresoAlmacenENTITY, InventarioDTO, InventarioLiqDTO, InventarioValDTO, ItemCantidadesDTO, ItemDTO, ItemDetalleLogisticaDTO, ItemDetallePMDTO, ItemENTITY, ItemLogisticaDTO, KeyIntegracionENTITY, LiberacionDePagosAlemaniaENTITY, LiquidadaTOAENTITY, LogAlmacenDTO, LogDTO, LogModificarDTO, LogRegisterDTO, LoteDTO$1 as LoteDTO, MOBaremoDTO, MacroObraChileENTITY, MacroObraENTITY, MailStructureENTITY, ManoObraBaremoDTO, ManoObraENTITY, ManoObraGlobalENTITY, ManoObraGlobalPCMODTO, ManoObraLiberacionPagosDTO, MarcaDTO, MaterialAmapDTO, MaterialCubicacionPeruDTO, MaterialLogisticaDTO, MaterialMOGlobalDTO, MaterialesDTO$1 as MaterialesDTO, MedidorDTO, ModelMOSQLPeruENTITY, ModelObraSQLPeruENTITY, ModeloDTO, MovimientoAlmacenDTO, MovimientoAlmacenENTITY, NodoDocDTO, NombreDescripcionDTO, NotasDTO, NotificacionesENTITY, OTDTO, OTGlobalDTO, ObraChile9512ENTITY, ObraColombia9612ENTITY, ObraENTITY, OpcionSistemaENTITY, OperacionDTO, OperacionDataAdicional, OptionCatalogoDTO, OrigenCUB, PagosECDTO, PaisStockPersonalDTO, ParteDiarioDTO$1 as ParteDiarioDTO, type PayloadTokenDTO, PerfilesENTITY, PeriodoDTO$4 as PeriodoDTO, PeriodoENTITY, PeriodoLiberacionPagosDTO, PermisosAppDTO, PersonalDTO, PersonalENTITY, PersonalLogisticaDTO$1 as PersonalLogisticaDTO, PrecioContratistaMOAL02ENTITY, PrecioContratistaMOAL04ENTITY, PrecioContratistaMOENTITY, PrecioDTO, PrecioEspecialidadENTITY, PrecioMaterialENTITY, PreciosVigentesDTO, PresupuestadoTotalObraChilaDTO, PresupuestadoTotalObraDTO, PresupuestadoTotalObraEmpresaChileDTO, PresupuestadoTotalObraEmpresaCuadrillaChileDTO, PresupuestadoTotalObraEmpresaCuadrillaDTO, PresupuestadoTotalObraEmpresaDTO, PrioridadNotificacion, ProdCursoBaremoFasesCuadrillaDTO, ProdCursoBaremoFasesManoObraDTO, ProdCursoBaremoFasesPeriodoDTO, ProdCursoBaremoFasesUltimaFaseDTO, ProdCursoBaremoFasesUltimoEstadoInternoDTO, ProductosServiciosLiqDTO, ProductosServiciosValDTO, ProfileDTO, RM_ZonasActividadENTITY, RegularizacionPositivaNegativaDTO, RepresentanteLegalDTO, ReservaENTITY, ReservaManoObraRegularizacionENTITY, ResultadoDTO, ResumenAvanceChileDTO, ResumenAvanceDataDocumentacionDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesChileDTO, ResumenAvanceDataDocumentacionDataWithPercentsChile, ResumenAvanceDataGranTotal, ResumenAvanceDataGranTotalEmpresasChileDTO, ResumenAvanceDataGranTotalManoObraCHILEDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosDTO, ResumentAvanceDocumentacionHPDTO, RptProduccionCurso_Baremos_FasesENTITY, SalidaAlmacenENTITY, SeguimientoObraDTO, SincronizacionPersonalDTO, SistemaDto, SistemaENTITY, SizeDTO, SocketDTO, StockAlmacenENTITY, StockAlmacenEquiposENTITY, StockPersonalENTITY, StockPersonalEquiposENTITY, SubEstadoInternoDTO, SubManoObraDTO$1 as SubManoObraDTO, TecnicoValDTO, TipoActividadMOENTITY, TipoAlmacenDTO, TipoClaveENTITY, TipoDocumentoIdentidadDTO, TipoDocumentoUsuarioDTO, TipoEmpresaDTO, TipoEspecialidadMOENTITY, type TipoLiq, TipoMOPCMODTO, TipoMiembroGrupoEmpresaDTO, TipoMovimientoAlmacenDTO, TipoMovimientoAlmacenENTITY, TipoNotificacion, TipoOpcionDTO, TipoOpcionSistemaENTITY, TipoSistemaDTO, TipoStockStockPersonalDTO, type TipoVal, Tipo_MO, ToaClaroENTITY, TotalGeneralObraChileDTO, TotalGeneralObraDTO, TrabajoAlemaniaENTITY, TrabajoENTITY, TrabajoMacroObraAlemaniaENTITY, TransaccionFoliosENTITY, TransaccionesDTO, TurnoDTO$1 as TurnoDTO, UbicacionAlmacenDTO, UbicacionDTO$1 as UbicacionDTO, UbicacionObraDTO, UbicacionTdCDTO, Ultima_FaseLiberacionPagosDTO, Ultima_PreLiquidacionAlemaniaDTO$1 as Ultima_PreLiquidacionAlemaniaDTO, Ultima_PreLiquidacionDTO, Ultima_asignacionDTO$1 as Ultima_asignacionDTO, Ultimo_Estado_InternoLiberacionPagosDTO, UnidadMedidaDTO$2 as UnidadMedidaDTO, UnidadMedidaLiberacionPagosDTO, UnidadObraMaterialENTITY, UpdateUltimaFaseFacturacionDTO, UsuarioBitacoraDTO, UsuarioDTO, UsuarioENTITY, UsuarioEdicionDTO, UsuarioID_UsuarioDTO, UsuarioLogisticaDTO, UsuarioRegistrarDTO, UsuariosAutoinventarioENTITY, ValidadoDTO, ValorizacionAlemaniaDTO$1 as ValorizacionAlemaniaDTO, ValorizacionDTO, ValorizacionManoObraDTO, ValorizacionManoObraRegularizacionDTO, ValorizacionesDTO$1 as ValorizacionesDTO, ValorizadaTOAENTITY, VarianteDTO, VigenciaBaremosDTO, VigenciaDTO, VigenciaPCMODTO, WBEDTO, ZonaTrabajoDTO, ZonaTrabajoENTITY, ZonalesDTO, ZonasDTO, convertStringsToDates, latLngDTO, type typeEstado, type typeEstadoNroDocumento, type typeFuente, type typeTipo, validateAndFormatData, validateArrayBody };
4355
+ export { ActaFinalCubicacionDTO, ActaFinalCubicacionSharedDTO, ActividadZonasActividadDTO, ActividadesDTO, AddressListENTITY, AgenciaDTO, AgenciaENTITY, AgenciasDTO, AlmacenDTO, AlmacenENTITY, AlmacenLogisticaDTO, AlmacenUsuarioGIADTO, AreaGOMDTO, AreaGomDTO, AsignacionGomDTO, AsignacionGomDTO_Old, AtencionOrdenesLiquidadasENTITY, AtiendeBodegaDTO, AutoInventarioENTITY, BaremosAlemaniaENTITY, BaremosChileENTITY, BaremosColombiaENTITY, BaremosTOAChileENTITY, BaremosTOAENTITY, BitacoraAntiguaDTO, BitacoraDTO, BitacoraLiqDTO, BitacoraOpcionSitemaDTO, BodegaENTITY, CabeceraCubicacionColombiaDTO, CabeceraCubicajeAlemaniaDTO, CabeceraCubicajeChileDTO, CabeceraCubicajeDTO, CabeceraCubicajePeruDTO, CalculatePercentsDTO, CambioEstadoFacturadoRequest, CambioEstadoFaseRequest, CambiosEstadosFaseLiberacionPagosDTO, CausacionCubicacionDTO, CausacionDTO, CentroCostosENTITY, CertificacionProduccionDTO$1 as CertificacionProduccionDTO, ChileTdCENTITY, ClienteDTO, ClienteTdCDTO, Cliente_ContratistaDTO, CodigoDescripcionDTO, type CodigoMovimientoAlmacen, CodigoNombreDTO, CodigoNombreUMDTO, CodigoRazonSocialDTO, CodigoTituloDTO, ConsumoMaterialENTITY, ContrataDTO$1 as ContrataDTO, ContratistaDTO, ContratistasDTO, Contratistas_PE_DTO, ContratoDTO, ContratoOTDTO, ContratoOTENTITY, ContratoOTGeneralDTO, ContratoOT_PRE_DTO, ContratoOT_ZT_DTO, ContratoObraOTDTO, ConversionLogisticaDTO, CoordenadasDTO, CoordenadasTdCDTO, CorteBobinaStockAlmacenDTO, CuadrillaDTO, CuadrillaLiberacionPagosDTO, CubicacionAlemaniaAL02ENTITY, CubicacionChile9512ENTITY, CubicacionColombia9612ENTITY, CubicacionPeru9112ENTITY, CumplimientoDTO, DataAdicionalDTO, DataCatalogoItemDTO, DataChildrenTreeNodes, DataGridTabBusinessHP, DataGridTabResidentialHP, DataWithPercentItemChile, DatoUsuarioTipoOpcionDto, DatosAreaPersonalDTO, DatosCatalogoItemDTO, DatosCatalogoMODTO, DatosGIADTO, DatosGeneralesDTO, DatosGeneralesPersonalDTO, DatosManoObraGlobalDTO, DatosManoObraGlobalDetalleChileDTO, DatosPrecioEspecialidadDTO, DatosPrecioMaterialDTO, DatosReferenciaDTO, DatosTecnicosDTO, DatosTrabajoCatalogoDTO, DatosTrabajoUsuarioDTO, DatosTransportistaChileDTO, DatosTransportistaDTO, DatosUnidadObraMaterialDTO, DelegacionDTO, DelegacionZonalesDTO, DeleteBaremoFaseDTO, DestinatarioDTO, DetalleChileChileObraDTO, DetalleChileColombiaObraDTO, DetalleChileDTO$1 as DetalleChileDTO, DetalleChileObraDTO, DetalleChileValorizacionMODTO, DetalleChileValorizacionManoObraRegularizacionDTO, DetalleCubicajeDTO, DetalleDTO, DetalleManoObraChileDTO, DetalleSalidaAlmacenDTO, DevolucionAlmacenENTITY, DireccionDTO, DocumentacionBaremoPexENTITY, DocumentacionPEXENTITY, DocumentoDetalleDTO, DocumentosInicialesDTO, EECC_DTO, EmpalmeDTO, EmpresaDTO$4 as EmpresaDTO, EmpresaENTITY, EmpresaLiberacionPagosDTO, EmpresaLogisticaDTO, EmpresaPCMODTO, EmpresaPersonalDTO, EmpresaProduccionDTO, EmpresaStockPersonalDTO, EmpresaTdCDTO, EmpresaUsuarioDTO, EmpresaValDTO, EmpresaZonasActividadDTO, EquipoLogisticaDTO, EquiposAIDTO, EquiposDTO, EstadoAntiguoDTO, EstadoDTO, EstadoHPListDTO$2 as EstadoHPListDTO, EstadoIntegracionDTO, EstadoInternoDTO, EstadoInternoENTITY, EstadoInternoWithoutSubstateDTO, type EstadoLiq, EstadoLiqDTO, EstadoNotificacion, type EstadoVal, Estado_Model_MO, FacturaGeneradaDTO, FacturacionDTO, FamiliaItemDTO, FaseDTO$1 as FaseDTO, FaseENTITY, FechaDTO, FechaVigenciaBaremosDTO, FechaVigenciaPCMODTO, FechasDTO, FilesDocDTO, FlagsDTO, FlujoDocDTO, FotoDTO, FotosDTO, FotosSSTDTO$1 as FotosSSTDTO, GOMDTO, GomENTITY, GomNovedadesDTO, GomNovedadesTipoNovedadDTO, GranFamiliaItemDTO, GrupoEmpresaDTO, HPListAsignacionDTO, HPListDTO, HistoricoDTO, HistoricoEmpresasDTO, HitoDTO, HomePassDTO$1 as HomePassDTO, IDataSheetCoordenadas, IDataSheetLineasTdC, IDataSheetMateriales, IDataSheetMedidores, IDataSheetTdC, IDataSheetTiemposCumplimentados, ISheetsJsonChileTdC, IncidenciasChileDTO, IncidenciasDTO, IngresoAlmacenENTITY, InventarioDTO, InventarioLiqDTO, InventarioValDTO, ItemCantidadesDTO, ItemDTO, ItemDetalleLogisticaDTO, ItemDetallePMDTO, ItemENTITY, ItemLogisticaDTO, KeyIntegracionENTITY, LiberacionDePagosAlemaniaENTITY, LiquidadaTOAENTITY, LogAlmacenDTO, LogDTO, LogModificarDTO, LogRegisterDTO, LoteDTO$1 as LoteDTO, MOBaremoDTO, MacroObraChileENTITY, MacroObraENTITY, MailStructureENTITY, ManoObraBaremoDTO, ManoObraENTITY, ManoObraGlobalENTITY, ManoObraGlobalPCMODTO, ManoObraLiberacionPagosDTO, MarcaDTO, MaterialAmapDTO, MaterialCubicacionPeruDTO, MaterialLogisticaDTO, MaterialMOGlobalDTO, MaterialesDTO$1 as MaterialesDTO, MedidorDTO, ModelMOSQLPeruENTITY, ModelObraSQLPeruENTITY, ModeloDTO, MovimientoAlmacenDTO, MovimientoAlmacenENTITY, NodoDocDTO, NombreDescripcionDTO, NotasDTO, NotificacionesENTITY, OTDTO, OTGlobalDTO, ObraChile9512ENTITY, ObraColombia9612ENTITY, ObraENTITY, OpcionSistemaENTITY, OperacionDTO, OperacionDataAdicional, OptionCatalogoDTO, OrigenCUB, PagosECDTO, PaisStockPersonalDTO, ParteDiarioDTO$1 as ParteDiarioDTO, type PayloadTokenDTO, PerfilesENTITY, PeriodoDTO$4 as PeriodoDTO, PeriodoENTITY, PeriodoLiberacionPagosDTO, PermisosAppDTO, PersonalDTO, PersonalENTITY, PersonalLogisticaDTO$1 as PersonalLogisticaDTO, PrecioContratistaMOAL02ENTITY, PrecioContratistaMOAL04ENTITY, PrecioContratistaMOENTITY, PrecioDTO, PrecioEspecialidadENTITY, PrecioMaterialENTITY, PreciosVigentesDTO, PresupuestadoTotalObraChilaDTO, PresupuestadoTotalObraDTO, PresupuestadoTotalObraEmpresaChileDTO, PresupuestadoTotalObraEmpresaCuadrillaChileDTO, PresupuestadoTotalObraEmpresaCuadrillaDTO, PresupuestadoTotalObraEmpresaDTO, PrioridadNotificacion, ProdCursoBaremoFasesCuadrillaDTO, ProdCursoBaremoFasesManoObraDTO, ProdCursoBaremoFasesPeriodoDTO, ProdCursoBaremoFasesUltimaFaseDTO, ProdCursoBaremoFasesUltimoEstadoInternoDTO, ProductosServiciosLiqDTO, ProductosServiciosValDTO, ProfileDTO, RM_ZonasActividadENTITY, RegularizacionPositivaNegativaDTO, RepresentanteLegalDTO, ReservaENTITY, ReservaManoObraRegularizacionENTITY, ResultadoDTO, ResumenAvanceChileDTO, ResumenAvanceDataDocumentacionDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesChileDTO, ResumenAvanceDataDocumentacionDataWithPercentsChile, ResumenAvanceDataGranTotal, ResumenAvanceDataGranTotalEmpresasChileDTO, ResumenAvanceDataGranTotalManoObraCHILEDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosDTO, ResumentAvanceDocumentacionHPDTO, RptProduccionCurso_Baremos_FasesENTITY, SalidaAlmacenENTITY, SeguimientoObraDTO, SincronizacionPersonalDTO, SistemaDto, SistemaENTITY, SizeDTO, SocketDTO, StockAlmacenENTITY, StockAlmacenEquiposENTITY, StockPersonalENTITY, StockPersonalEquiposENTITY, SubEstadoInternoDTO, SubManoObraDTO$1 as SubManoObraDTO, TecnicoValDTO, TipoActividadMOENTITY, TipoAlmacenDTO, TipoClaveENTITY, TipoDocumentoIdentidadDTO, TipoDocumentoUsuarioDTO, TipoEmpresaDTO, TipoEspecialidadMOENTITY, type TipoLiq, TipoMOPCMODTO, TipoMiembroGrupoEmpresaDTO, TipoMovimientoAlmacenDTO, TipoMovimientoAlmacenENTITY, TipoNotificacion, TipoOpcionDTO, TipoOpcionSistemaENTITY, TipoSistemaDTO, TipoStockStockPersonalDTO, type TipoVal, Tipo_MO, ToaClaroENTITY, TotalGeneralObraChileDTO, TotalGeneralObraDTO, TrabajoAlemaniaENTITY, TrabajoENTITY, TrabajoMacroObraAlemaniaENTITY, TransaccionFoliosENTITY, TransaccionesDTO, TurnoDTO$1 as TurnoDTO, UbicacionAlmacenDTO, UbicacionDTO$1 as UbicacionDTO, UbicacionObraDTO, UbicacionTdCDTO, Ultima_FaseLiberacionPagosDTO, Ultima_PreLiquidacionAlemaniaDTO$1 as Ultima_PreLiquidacionAlemaniaDTO, Ultima_PreLiquidacionDTO, Ultima_asignacionDTO$1 as Ultima_asignacionDTO, Ultimo_Estado_InternoLiberacionPagosDTO, UnidadMedidaDTO$2 as UnidadMedidaDTO, UnidadMedidaLiberacionPagosDTO, UnidadObraMaterialENTITY, UpdateUltimaFaseFacturacionDTO, UsuarioBitacoraDTO, UsuarioDTO, UsuarioENTITY, UsuarioEdicionDTO, UsuarioID_UsuarioDTO, UsuarioLogisticaDTO, UsuarioRegistrarDTO, UsuariosAutoinventarioENTITY, ValidadoDTO, ValorizacionAlemaniaDTO$1 as ValorizacionAlemaniaDTO, ValorizacionDTO, ValorizacionManoObraDTO, ValorizacionManoObraRegularizacionDTO, ValorizacionesDTO$1 as ValorizacionesDTO, ValorizadaTOAENTITY, VarianteDTO, VigenciaBaremosDTO, VigenciaDTO, VigenciaPCMODTO, WBEDTO, ZonaTrabajoDTO, ZonaTrabajoENTITY, ZonalesDTO, ZonasDTO, convertStringsToDates, latLngDTO, transformToDateIfEmpty, type typeEstado, type typeEstadoNroDocumento, type typeFuente, type typeTipo, validateAndFormatData, validateArrayBody };
package/dist/index.d.ts CHANGED
@@ -16,6 +16,8 @@ interface IParams<T> {
16
16
  }
17
17
  declare function validateArrayBody<T extends object>(params: IParams<T>): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
18
18
 
19
+ declare const transformToDateIfEmpty: (value: any) => Date;
20
+
19
21
  declare class WBEDTO {
20
22
  ID_WBE: number;
21
23
  CodigoWBE: string;
@@ -2276,7 +2278,6 @@ declare enum OrigenCUB {
2276
2278
  declare class CubicacionENTITY {
2277
2279
  ID_Cubicacion: number;
2278
2280
  ID_MacroObra: number;
2279
- MacroObra: string;
2280
2281
  detalle: DetalleCubicajeDTO[];
2281
2282
  Accion: string;
2282
2283
  Fecha: Date;
@@ -4351,4 +4352,4 @@ declare class ToaClaroENTITY {
4351
4352
  Aptitudlaboral?: string;
4352
4353
  }
4353
4354
 
4354
- export { ActaFinalCubicacionDTO, ActaFinalCubicacionSharedDTO, ActividadZonasActividadDTO, ActividadesDTO, AddressListENTITY, AgenciaDTO, AgenciaENTITY, AgenciasDTO, AlmacenDTO, AlmacenENTITY, AlmacenLogisticaDTO, AlmacenUsuarioGIADTO, AreaGOMDTO, AreaGomDTO, AsignacionGomDTO, AsignacionGomDTO_Old, AtencionOrdenesLiquidadasENTITY, AtiendeBodegaDTO, AutoInventarioENTITY, BaremosAlemaniaENTITY, BaremosChileENTITY, BaremosColombiaENTITY, BaremosTOAChileENTITY, BaremosTOAENTITY, BitacoraAntiguaDTO, BitacoraDTO, BitacoraLiqDTO, BitacoraOpcionSitemaDTO, BodegaENTITY, CabeceraCubicacionColombiaDTO, CabeceraCubicajeAlemaniaDTO, CabeceraCubicajeChileDTO, CabeceraCubicajeDTO, CabeceraCubicajePeruDTO, CalculatePercentsDTO, CambioEstadoFacturadoRequest, CambioEstadoFaseRequest, CambiosEstadosFaseLiberacionPagosDTO, CausacionCubicacionDTO, CausacionDTO, CentroCostosENTITY, CertificacionProduccionDTO$1 as CertificacionProduccionDTO, ChileTdCENTITY, ClienteDTO, ClienteTdCDTO, Cliente_ContratistaDTO, CodigoDescripcionDTO, type CodigoMovimientoAlmacen, CodigoNombreDTO, CodigoNombreUMDTO, CodigoRazonSocialDTO, CodigoTituloDTO, ConsumoMaterialENTITY, ContrataDTO$1 as ContrataDTO, ContratistaDTO, ContratistasDTO, Contratistas_PE_DTO, ContratoDTO, ContratoOTDTO, ContratoOTENTITY, ContratoOTGeneralDTO, ContratoOT_PRE_DTO, ContratoOT_ZT_DTO, ContratoObraOTDTO, ConversionLogisticaDTO, CoordenadasDTO, CoordenadasTdCDTO, CorteBobinaStockAlmacenDTO, CuadrillaDTO, CuadrillaLiberacionPagosDTO, CubicacionAlemaniaAL02ENTITY, CubicacionChile9512ENTITY, CubicacionColombia9612ENTITY, CubicacionPeru9112ENTITY, CumplimientoDTO, DataAdicionalDTO, DataCatalogoItemDTO, DataChildrenTreeNodes, DataGridTabBusinessHP, DataGridTabResidentialHP, DataWithPercentItemChile, DatoUsuarioTipoOpcionDto, DatosAreaPersonalDTO, DatosCatalogoItemDTO, DatosCatalogoMODTO, DatosGIADTO, DatosGeneralesDTO, DatosGeneralesPersonalDTO, DatosManoObraGlobalDTO, DatosManoObraGlobalDetalleChileDTO, DatosPrecioEspecialidadDTO, DatosPrecioMaterialDTO, DatosReferenciaDTO, DatosTecnicosDTO, DatosTrabajoCatalogoDTO, DatosTrabajoUsuarioDTO, DatosTransportistaChileDTO, DatosTransportistaDTO, DatosUnidadObraMaterialDTO, DelegacionDTO, DelegacionZonalesDTO, DeleteBaremoFaseDTO, DestinatarioDTO, DetalleChileChileObraDTO, DetalleChileColombiaObraDTO, DetalleChileDTO$1 as DetalleChileDTO, DetalleChileObraDTO, DetalleChileValorizacionMODTO, DetalleChileValorizacionManoObraRegularizacionDTO, DetalleCubicajeDTO, DetalleDTO, DetalleManoObraChileDTO, DetalleSalidaAlmacenDTO, DevolucionAlmacenENTITY, DireccionDTO, DocumentacionBaremoPexENTITY, DocumentacionPEXENTITY, DocumentoDetalleDTO, DocumentosInicialesDTO, EECC_DTO, EmpalmeDTO, EmpresaDTO$4 as EmpresaDTO, EmpresaENTITY, EmpresaLiberacionPagosDTO, EmpresaLogisticaDTO, EmpresaPCMODTO, EmpresaPersonalDTO, EmpresaProduccionDTO, EmpresaStockPersonalDTO, EmpresaTdCDTO, EmpresaUsuarioDTO, EmpresaValDTO, EmpresaZonasActividadDTO, EquipoLogisticaDTO, EquiposAIDTO, EquiposDTO, EstadoAntiguoDTO, EstadoDTO, EstadoHPListDTO$2 as EstadoHPListDTO, EstadoIntegracionDTO, EstadoInternoDTO, EstadoInternoENTITY, EstadoInternoWithoutSubstateDTO, type EstadoLiq, EstadoLiqDTO, EstadoNotificacion, type EstadoVal, Estado_Model_MO, FacturaGeneradaDTO, FacturacionDTO, FamiliaItemDTO, FaseDTO$1 as FaseDTO, FaseENTITY, FechaDTO, FechaVigenciaBaremosDTO, FechaVigenciaPCMODTO, FechasDTO, FilesDocDTO, FlagsDTO, FlujoDocDTO, FotoDTO, FotosDTO, FotosSSTDTO$1 as FotosSSTDTO, GOMDTO, GomENTITY, GomNovedadesDTO, GomNovedadesTipoNovedadDTO, GranFamiliaItemDTO, GrupoEmpresaDTO, HPListAsignacionDTO, HPListDTO, HistoricoDTO, HistoricoEmpresasDTO, HitoDTO, HomePassDTO$1 as HomePassDTO, IDataSheetCoordenadas, IDataSheetLineasTdC, IDataSheetMateriales, IDataSheetMedidores, IDataSheetTdC, IDataSheetTiemposCumplimentados, ISheetsJsonChileTdC, IncidenciasChileDTO, IncidenciasDTO, IngresoAlmacenENTITY, InventarioDTO, InventarioLiqDTO, InventarioValDTO, ItemCantidadesDTO, ItemDTO, ItemDetalleLogisticaDTO, ItemDetallePMDTO, ItemENTITY, ItemLogisticaDTO, KeyIntegracionENTITY, LiberacionDePagosAlemaniaENTITY, LiquidadaTOAENTITY, LogAlmacenDTO, LogDTO, LogModificarDTO, LogRegisterDTO, LoteDTO$1 as LoteDTO, MOBaremoDTO, MacroObraChileENTITY, MacroObraENTITY, MailStructureENTITY, ManoObraBaremoDTO, ManoObraENTITY, ManoObraGlobalENTITY, ManoObraGlobalPCMODTO, ManoObraLiberacionPagosDTO, MarcaDTO, MaterialAmapDTO, MaterialCubicacionPeruDTO, MaterialLogisticaDTO, MaterialMOGlobalDTO, MaterialesDTO$1 as MaterialesDTO, MedidorDTO, ModelMOSQLPeruENTITY, ModelObraSQLPeruENTITY, ModeloDTO, MovimientoAlmacenDTO, MovimientoAlmacenENTITY, NodoDocDTO, NombreDescripcionDTO, NotasDTO, NotificacionesENTITY, OTDTO, OTGlobalDTO, ObraChile9512ENTITY, ObraColombia9612ENTITY, ObraENTITY, OpcionSistemaENTITY, OperacionDTO, OperacionDataAdicional, OptionCatalogoDTO, OrigenCUB, PagosECDTO, PaisStockPersonalDTO, ParteDiarioDTO$1 as ParteDiarioDTO, type PayloadTokenDTO, PerfilesENTITY, PeriodoDTO$4 as PeriodoDTO, PeriodoENTITY, PeriodoLiberacionPagosDTO, PermisosAppDTO, PersonalDTO, PersonalENTITY, PersonalLogisticaDTO$1 as PersonalLogisticaDTO, PrecioContratistaMOAL02ENTITY, PrecioContratistaMOAL04ENTITY, PrecioContratistaMOENTITY, PrecioDTO, PrecioEspecialidadENTITY, PrecioMaterialENTITY, PreciosVigentesDTO, PresupuestadoTotalObraChilaDTO, PresupuestadoTotalObraDTO, PresupuestadoTotalObraEmpresaChileDTO, PresupuestadoTotalObraEmpresaCuadrillaChileDTO, PresupuestadoTotalObraEmpresaCuadrillaDTO, PresupuestadoTotalObraEmpresaDTO, PrioridadNotificacion, ProdCursoBaremoFasesCuadrillaDTO, ProdCursoBaremoFasesManoObraDTO, ProdCursoBaremoFasesPeriodoDTO, ProdCursoBaremoFasesUltimaFaseDTO, ProdCursoBaremoFasesUltimoEstadoInternoDTO, ProductosServiciosLiqDTO, ProductosServiciosValDTO, ProfileDTO, RM_ZonasActividadENTITY, RegularizacionPositivaNegativaDTO, RepresentanteLegalDTO, ReservaENTITY, ReservaManoObraRegularizacionENTITY, ResultadoDTO, ResumenAvanceChileDTO, ResumenAvanceDataDocumentacionDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesChileDTO, ResumenAvanceDataDocumentacionDataWithPercentsChile, ResumenAvanceDataGranTotal, ResumenAvanceDataGranTotalEmpresasChileDTO, ResumenAvanceDataGranTotalManoObraCHILEDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosDTO, ResumentAvanceDocumentacionHPDTO, RptProduccionCurso_Baremos_FasesENTITY, SalidaAlmacenENTITY, SeguimientoObraDTO, SincronizacionPersonalDTO, SistemaDto, SistemaENTITY, SizeDTO, SocketDTO, StockAlmacenENTITY, StockAlmacenEquiposENTITY, StockPersonalENTITY, StockPersonalEquiposENTITY, SubEstadoInternoDTO, SubManoObraDTO$1 as SubManoObraDTO, TecnicoValDTO, TipoActividadMOENTITY, TipoAlmacenDTO, TipoClaveENTITY, TipoDocumentoIdentidadDTO, TipoDocumentoUsuarioDTO, TipoEmpresaDTO, TipoEspecialidadMOENTITY, type TipoLiq, TipoMOPCMODTO, TipoMiembroGrupoEmpresaDTO, TipoMovimientoAlmacenDTO, TipoMovimientoAlmacenENTITY, TipoNotificacion, TipoOpcionDTO, TipoOpcionSistemaENTITY, TipoSistemaDTO, TipoStockStockPersonalDTO, type TipoVal, Tipo_MO, ToaClaroENTITY, TotalGeneralObraChileDTO, TotalGeneralObraDTO, TrabajoAlemaniaENTITY, TrabajoENTITY, TrabajoMacroObraAlemaniaENTITY, TransaccionFoliosENTITY, TransaccionesDTO, TurnoDTO$1 as TurnoDTO, UbicacionAlmacenDTO, UbicacionDTO$1 as UbicacionDTO, UbicacionObraDTO, UbicacionTdCDTO, Ultima_FaseLiberacionPagosDTO, Ultima_PreLiquidacionAlemaniaDTO$1 as Ultima_PreLiquidacionAlemaniaDTO, Ultima_PreLiquidacionDTO, Ultima_asignacionDTO$1 as Ultima_asignacionDTO, Ultimo_Estado_InternoLiberacionPagosDTO, UnidadMedidaDTO$2 as UnidadMedidaDTO, UnidadMedidaLiberacionPagosDTO, UnidadObraMaterialENTITY, UpdateUltimaFaseFacturacionDTO, UsuarioBitacoraDTO, UsuarioDTO, UsuarioENTITY, UsuarioEdicionDTO, UsuarioID_UsuarioDTO, UsuarioLogisticaDTO, UsuarioRegistrarDTO, UsuariosAutoinventarioENTITY, ValidadoDTO, ValorizacionAlemaniaDTO$1 as ValorizacionAlemaniaDTO, ValorizacionDTO, ValorizacionManoObraDTO, ValorizacionManoObraRegularizacionDTO, ValorizacionesDTO$1 as ValorizacionesDTO, ValorizadaTOAENTITY, VarianteDTO, VigenciaBaremosDTO, VigenciaDTO, VigenciaPCMODTO, WBEDTO, ZonaTrabajoDTO, ZonaTrabajoENTITY, ZonalesDTO, ZonasDTO, convertStringsToDates, latLngDTO, type typeEstado, type typeEstadoNroDocumento, type typeFuente, type typeTipo, validateAndFormatData, validateArrayBody };
4355
+ export { ActaFinalCubicacionDTO, ActaFinalCubicacionSharedDTO, ActividadZonasActividadDTO, ActividadesDTO, AddressListENTITY, AgenciaDTO, AgenciaENTITY, AgenciasDTO, AlmacenDTO, AlmacenENTITY, AlmacenLogisticaDTO, AlmacenUsuarioGIADTO, AreaGOMDTO, AreaGomDTO, AsignacionGomDTO, AsignacionGomDTO_Old, AtencionOrdenesLiquidadasENTITY, AtiendeBodegaDTO, AutoInventarioENTITY, BaremosAlemaniaENTITY, BaremosChileENTITY, BaremosColombiaENTITY, BaremosTOAChileENTITY, BaremosTOAENTITY, BitacoraAntiguaDTO, BitacoraDTO, BitacoraLiqDTO, BitacoraOpcionSitemaDTO, BodegaENTITY, CabeceraCubicacionColombiaDTO, CabeceraCubicajeAlemaniaDTO, CabeceraCubicajeChileDTO, CabeceraCubicajeDTO, CabeceraCubicajePeruDTO, CalculatePercentsDTO, CambioEstadoFacturadoRequest, CambioEstadoFaseRequest, CambiosEstadosFaseLiberacionPagosDTO, CausacionCubicacionDTO, CausacionDTO, CentroCostosENTITY, CertificacionProduccionDTO$1 as CertificacionProduccionDTO, ChileTdCENTITY, ClienteDTO, ClienteTdCDTO, Cliente_ContratistaDTO, CodigoDescripcionDTO, type CodigoMovimientoAlmacen, CodigoNombreDTO, CodigoNombreUMDTO, CodigoRazonSocialDTO, CodigoTituloDTO, ConsumoMaterialENTITY, ContrataDTO$1 as ContrataDTO, ContratistaDTO, ContratistasDTO, Contratistas_PE_DTO, ContratoDTO, ContratoOTDTO, ContratoOTENTITY, ContratoOTGeneralDTO, ContratoOT_PRE_DTO, ContratoOT_ZT_DTO, ContratoObraOTDTO, ConversionLogisticaDTO, CoordenadasDTO, CoordenadasTdCDTO, CorteBobinaStockAlmacenDTO, CuadrillaDTO, CuadrillaLiberacionPagosDTO, CubicacionAlemaniaAL02ENTITY, CubicacionChile9512ENTITY, CubicacionColombia9612ENTITY, CubicacionPeru9112ENTITY, CumplimientoDTO, DataAdicionalDTO, DataCatalogoItemDTO, DataChildrenTreeNodes, DataGridTabBusinessHP, DataGridTabResidentialHP, DataWithPercentItemChile, DatoUsuarioTipoOpcionDto, DatosAreaPersonalDTO, DatosCatalogoItemDTO, DatosCatalogoMODTO, DatosGIADTO, DatosGeneralesDTO, DatosGeneralesPersonalDTO, DatosManoObraGlobalDTO, DatosManoObraGlobalDetalleChileDTO, DatosPrecioEspecialidadDTO, DatosPrecioMaterialDTO, DatosReferenciaDTO, DatosTecnicosDTO, DatosTrabajoCatalogoDTO, DatosTrabajoUsuarioDTO, DatosTransportistaChileDTO, DatosTransportistaDTO, DatosUnidadObraMaterialDTO, DelegacionDTO, DelegacionZonalesDTO, DeleteBaremoFaseDTO, DestinatarioDTO, DetalleChileChileObraDTO, DetalleChileColombiaObraDTO, DetalleChileDTO$1 as DetalleChileDTO, DetalleChileObraDTO, DetalleChileValorizacionMODTO, DetalleChileValorizacionManoObraRegularizacionDTO, DetalleCubicajeDTO, DetalleDTO, DetalleManoObraChileDTO, DetalleSalidaAlmacenDTO, DevolucionAlmacenENTITY, DireccionDTO, DocumentacionBaremoPexENTITY, DocumentacionPEXENTITY, DocumentoDetalleDTO, DocumentosInicialesDTO, EECC_DTO, EmpalmeDTO, EmpresaDTO$4 as EmpresaDTO, EmpresaENTITY, EmpresaLiberacionPagosDTO, EmpresaLogisticaDTO, EmpresaPCMODTO, EmpresaPersonalDTO, EmpresaProduccionDTO, EmpresaStockPersonalDTO, EmpresaTdCDTO, EmpresaUsuarioDTO, EmpresaValDTO, EmpresaZonasActividadDTO, EquipoLogisticaDTO, EquiposAIDTO, EquiposDTO, EstadoAntiguoDTO, EstadoDTO, EstadoHPListDTO$2 as EstadoHPListDTO, EstadoIntegracionDTO, EstadoInternoDTO, EstadoInternoENTITY, EstadoInternoWithoutSubstateDTO, type EstadoLiq, EstadoLiqDTO, EstadoNotificacion, type EstadoVal, Estado_Model_MO, FacturaGeneradaDTO, FacturacionDTO, FamiliaItemDTO, FaseDTO$1 as FaseDTO, FaseENTITY, FechaDTO, FechaVigenciaBaremosDTO, FechaVigenciaPCMODTO, FechasDTO, FilesDocDTO, FlagsDTO, FlujoDocDTO, FotoDTO, FotosDTO, FotosSSTDTO$1 as FotosSSTDTO, GOMDTO, GomENTITY, GomNovedadesDTO, GomNovedadesTipoNovedadDTO, GranFamiliaItemDTO, GrupoEmpresaDTO, HPListAsignacionDTO, HPListDTO, HistoricoDTO, HistoricoEmpresasDTO, HitoDTO, HomePassDTO$1 as HomePassDTO, IDataSheetCoordenadas, IDataSheetLineasTdC, IDataSheetMateriales, IDataSheetMedidores, IDataSheetTdC, IDataSheetTiemposCumplimentados, ISheetsJsonChileTdC, IncidenciasChileDTO, IncidenciasDTO, IngresoAlmacenENTITY, InventarioDTO, InventarioLiqDTO, InventarioValDTO, ItemCantidadesDTO, ItemDTO, ItemDetalleLogisticaDTO, ItemDetallePMDTO, ItemENTITY, ItemLogisticaDTO, KeyIntegracionENTITY, LiberacionDePagosAlemaniaENTITY, LiquidadaTOAENTITY, LogAlmacenDTO, LogDTO, LogModificarDTO, LogRegisterDTO, LoteDTO$1 as LoteDTO, MOBaremoDTO, MacroObraChileENTITY, MacroObraENTITY, MailStructureENTITY, ManoObraBaremoDTO, ManoObraENTITY, ManoObraGlobalENTITY, ManoObraGlobalPCMODTO, ManoObraLiberacionPagosDTO, MarcaDTO, MaterialAmapDTO, MaterialCubicacionPeruDTO, MaterialLogisticaDTO, MaterialMOGlobalDTO, MaterialesDTO$1 as MaterialesDTO, MedidorDTO, ModelMOSQLPeruENTITY, ModelObraSQLPeruENTITY, ModeloDTO, MovimientoAlmacenDTO, MovimientoAlmacenENTITY, NodoDocDTO, NombreDescripcionDTO, NotasDTO, NotificacionesENTITY, OTDTO, OTGlobalDTO, ObraChile9512ENTITY, ObraColombia9612ENTITY, ObraENTITY, OpcionSistemaENTITY, OperacionDTO, OperacionDataAdicional, OptionCatalogoDTO, OrigenCUB, PagosECDTO, PaisStockPersonalDTO, ParteDiarioDTO$1 as ParteDiarioDTO, type PayloadTokenDTO, PerfilesENTITY, PeriodoDTO$4 as PeriodoDTO, PeriodoENTITY, PeriodoLiberacionPagosDTO, PermisosAppDTO, PersonalDTO, PersonalENTITY, PersonalLogisticaDTO$1 as PersonalLogisticaDTO, PrecioContratistaMOAL02ENTITY, PrecioContratistaMOAL04ENTITY, PrecioContratistaMOENTITY, PrecioDTO, PrecioEspecialidadENTITY, PrecioMaterialENTITY, PreciosVigentesDTO, PresupuestadoTotalObraChilaDTO, PresupuestadoTotalObraDTO, PresupuestadoTotalObraEmpresaChileDTO, PresupuestadoTotalObraEmpresaCuadrillaChileDTO, PresupuestadoTotalObraEmpresaCuadrillaDTO, PresupuestadoTotalObraEmpresaDTO, PrioridadNotificacion, ProdCursoBaremoFasesCuadrillaDTO, ProdCursoBaremoFasesManoObraDTO, ProdCursoBaremoFasesPeriodoDTO, ProdCursoBaremoFasesUltimaFaseDTO, ProdCursoBaremoFasesUltimoEstadoInternoDTO, ProductosServiciosLiqDTO, ProductosServiciosValDTO, ProfileDTO, RM_ZonasActividadENTITY, RegularizacionPositivaNegativaDTO, RepresentanteLegalDTO, ReservaENTITY, ReservaManoObraRegularizacionENTITY, ResultadoDTO, ResumenAvanceChileDTO, ResumenAvanceDataDocumentacionDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesChileDTO, ResumenAvanceDataDocumentacionDataWithPercentsChile, ResumenAvanceDataGranTotal, ResumenAvanceDataGranTotalEmpresasChileDTO, ResumenAvanceDataGranTotalManoObraCHILEDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosDTO, ResumentAvanceDocumentacionHPDTO, RptProduccionCurso_Baremos_FasesENTITY, SalidaAlmacenENTITY, SeguimientoObraDTO, SincronizacionPersonalDTO, SistemaDto, SistemaENTITY, SizeDTO, SocketDTO, StockAlmacenENTITY, StockAlmacenEquiposENTITY, StockPersonalENTITY, StockPersonalEquiposENTITY, SubEstadoInternoDTO, SubManoObraDTO$1 as SubManoObraDTO, TecnicoValDTO, TipoActividadMOENTITY, TipoAlmacenDTO, TipoClaveENTITY, TipoDocumentoIdentidadDTO, TipoDocumentoUsuarioDTO, TipoEmpresaDTO, TipoEspecialidadMOENTITY, type TipoLiq, TipoMOPCMODTO, TipoMiembroGrupoEmpresaDTO, TipoMovimientoAlmacenDTO, TipoMovimientoAlmacenENTITY, TipoNotificacion, TipoOpcionDTO, TipoOpcionSistemaENTITY, TipoSistemaDTO, TipoStockStockPersonalDTO, type TipoVal, Tipo_MO, ToaClaroENTITY, TotalGeneralObraChileDTO, TotalGeneralObraDTO, TrabajoAlemaniaENTITY, TrabajoENTITY, TrabajoMacroObraAlemaniaENTITY, TransaccionFoliosENTITY, TransaccionesDTO, TurnoDTO$1 as TurnoDTO, UbicacionAlmacenDTO, UbicacionDTO$1 as UbicacionDTO, UbicacionObraDTO, UbicacionTdCDTO, Ultima_FaseLiberacionPagosDTO, Ultima_PreLiquidacionAlemaniaDTO$1 as Ultima_PreLiquidacionAlemaniaDTO, Ultima_PreLiquidacionDTO, Ultima_asignacionDTO$1 as Ultima_asignacionDTO, Ultimo_Estado_InternoLiberacionPagosDTO, UnidadMedidaDTO$2 as UnidadMedidaDTO, UnidadMedidaLiberacionPagosDTO, UnidadObraMaterialENTITY, UpdateUltimaFaseFacturacionDTO, UsuarioBitacoraDTO, UsuarioDTO, UsuarioENTITY, UsuarioEdicionDTO, UsuarioID_UsuarioDTO, UsuarioLogisticaDTO, UsuarioRegistrarDTO, UsuariosAutoinventarioENTITY, ValidadoDTO, ValorizacionAlemaniaDTO$1 as ValorizacionAlemaniaDTO, ValorizacionDTO, ValorizacionManoObraDTO, ValorizacionManoObraRegularizacionDTO, ValorizacionesDTO$1 as ValorizacionesDTO, ValorizadaTOAENTITY, VarianteDTO, VigenciaBaremosDTO, VigenciaDTO, VigenciaPCMODTO, WBEDTO, ZonaTrabajoDTO, ZonaTrabajoENTITY, ZonalesDTO, ZonasDTO, convertStringsToDates, latLngDTO, transformToDateIfEmpty, type typeEstado, type typeEstadoNroDocumento, type typeFuente, type typeTipo, validateAndFormatData, validateArrayBody };
package/dist/index.js CHANGED
@@ -390,6 +390,7 @@ __export(src_exports, {
390
390
  ZonasDTO: () => ZonasDTO,
391
391
  convertStringsToDates: () => convertStringsToDates,
392
392
  latLngDTO: () => latLngDTO,
393
+ transformToDateIfEmpty: () => transformToDateIfEmpty,
393
394
  validateAndFormatData: () => validateAndFormatData,
394
395
  validateArrayBody: () => validateArrayBody
395
396
  });
@@ -549,6 +550,14 @@ function formatErrors2(errors, parentPath = "") {
549
550
  });
550
551
  }
551
552
 
553
+ // src/shared/utils/transformToDateIfEmpty.ts
554
+ var transformToDateIfEmpty = (value) => {
555
+ if (typeof value === "string") return new Date(value);
556
+ if (!Object.keys(value)?.length) return /* @__PURE__ */ new Date();
557
+ if (value instanceof Date) return value;
558
+ return /* @__PURE__ */ new Date();
559
+ };
560
+
552
561
  // src/shared/dto/WBE-dto.ts
553
562
  var import_class_transformer4 = require("class-transformer");
554
563
  var import_class_validator4 = require("class-validator");
@@ -1016,6 +1025,7 @@ __decorateClass([
1016
1025
  (0, import_class_transformer19.Expose)()
1017
1026
  ], UsuarioDTO.prototype, "Nombres", 2);
1018
1027
  __decorateClass([
1028
+ (0, import_class_transformer19.Transform)(transformToDateIfEmpty),
1019
1029
  (0, import_class_transformer19.Expose)(),
1020
1030
  (0, import_class_validator19.IsDate)(),
1021
1031
  (0, import_class_transformer19.Type)(() => Date)
@@ -2663,6 +2673,7 @@ __decorateClass([
2663
2673
  (0, import_class_transformer60.Expose)()
2664
2674
  ], FlujoDocDTO.prototype, "Action", 2);
2665
2675
  __decorateClass([
2676
+ (0, import_class_transformer60.Transform)(transformToDateIfEmpty),
2666
2677
  (0, import_class_validator61.IsNotEmpty)({ message: "es requerido" }),
2667
2678
  (0, import_class_transformer60.Expose)()
2668
2679
  ], FlujoDocDTO.prototype, "Fecha", 2);
@@ -2776,6 +2787,7 @@ __decorateClass([
2776
2787
  (0, import_class_validator62.ValidateNested)()
2777
2788
  ], FilesDocDTO.prototype, "Coordenadas", 2);
2778
2789
  __decorateClass([
2790
+ (0, import_class_transformer61.Transform)(transformToDateIfEmpty),
2779
2791
  (0, import_class_transformer61.Type)(() => Date),
2780
2792
  (0, import_class_validator62.IsDate)({ message: "debe ser una fecha" }),
2781
2793
  (0, import_class_validator62.IsNotEmpty)({ message: "es requerido" }),
@@ -3315,7 +3327,7 @@ __decorateClass([
3315
3327
  ], PeriodoDTO.prototype, "FechaInicio", 2);
3316
3328
  __decorateClass([
3317
3329
  (0, import_class_transformer75.Transform)(({ value }) => {
3318
- if (value === "") return /* @__PURE__ */ new Date(0);
3330
+ if (value === "" || typeof value == "object" && !(value instanceof Date)) return /* @__PURE__ */ new Date(0);
3319
3331
  return value instanceof Date ? value : new Date(value);
3320
3332
  }),
3321
3333
  (0, import_class_validator76.IsDate)({ message: "debe ser una fecha" }),
@@ -3323,7 +3335,7 @@ __decorateClass([
3323
3335
  ], PeriodoDTO.prototype, "FechaFin", 2);
3324
3336
  __decorateClass([
3325
3337
  (0, import_class_transformer75.Transform)(({ value }) => {
3326
- if (value === "") return /* @__PURE__ */ new Date(0);
3338
+ if (value === "" || typeof value == "object" && !(value instanceof Date)) return /* @__PURE__ */ new Date(0);
3327
3339
  return value instanceof Date ? value : new Date(value);
3328
3340
  }),
3329
3341
  (0, import_class_validator76.IsDate)({ message: "debe ser una fecha" }),
@@ -12504,7 +12516,6 @@ var OrigenCUB = /* @__PURE__ */ ((OrigenCUB2) => {
12504
12516
  var CubicacionENTITY = class {
12505
12517
  ID_Cubicacion = 0;
12506
12518
  ID_MacroObra = 0;
12507
- MacroObra = "";
12508
12519
  detalle = [];
12509
12520
  Accion = "";
12510
12521
  Fecha = /* @__PURE__ */ new Date();
@@ -12524,11 +12535,6 @@ __decorateClass([
12524
12535
  (0, import_class_transformer213.Expose)(),
12525
12536
  (0, import_class_validator214.Min)(0, { message: "debe ser al menos 0" })
12526
12537
  ], CubicacionENTITY.prototype, "ID_MacroObra", 2);
12527
- __decorateClass([
12528
- (0, import_class_transformer213.Expose)(),
12529
- (0, import_class_validator214.IsString)({ message: "debe ser una cadena de texto" }),
12530
- (0, import_class_validator214.MinLength)(1, { message: "debe ser al menos 1 caracter" })
12531
- ], CubicacionENTITY.prototype, "MacroObra", 2);
12532
12538
  __decorateClass([
12533
12539
  (0, import_class_validator214.IsArray)({ message: "debe ser un arreglo" }),
12534
12540
  (0, import_class_transformer213.Type)(() => DetalleCubicajeDTO),
@@ -23476,6 +23482,7 @@ __decorateClass([
23476
23482
  ZonasDTO,
23477
23483
  convertStringsToDates,
23478
23484
  latLngDTO,
23485
+ transformToDateIfEmpty,
23479
23486
  validateAndFormatData,
23480
23487
  validateArrayBody
23481
23488
  });
package/dist/index.mjs CHANGED
@@ -165,6 +165,14 @@ function formatErrors2(errors, parentPath = "") {
165
165
  });
166
166
  }
167
167
 
168
+ // src/shared/utils/transformToDateIfEmpty.ts
169
+ var transformToDateIfEmpty = (value) => {
170
+ if (typeof value === "string") return new Date(value);
171
+ if (!Object.keys(value)?.length) return /* @__PURE__ */ new Date();
172
+ if (value instanceof Date) return value;
173
+ return /* @__PURE__ */ new Date();
174
+ };
175
+
168
176
  // src/shared/dto/WBE-dto.ts
169
177
  import { Expose as Expose2 } from "class-transformer";
170
178
  import { IsNotEmpty as IsNotEmpty2, IsNumber, IsString as IsString2, Length as Length2, Min } from "class-validator";
@@ -608,7 +616,7 @@ __decorateClass([
608
616
  import { IsDate as IsDate6, IsNotEmpty as IsNotEmpty15, IsString as IsString13, Length as Length11, ValidateNested as ValidateNested8 } from "class-validator";
609
617
 
610
618
  // src/shared/dto/usuario-dto.ts
611
- import { Expose as Expose17, Type as Type9 } from "class-transformer";
619
+ import { Expose as Expose17, Transform, Type as Type9 } from "class-transformer";
612
620
  import { IsDate as IsDate5, IsString as IsString12, Length as Length10 } from "class-validator";
613
621
  var UsuarioDTO = class {
614
622
  Identificacion = "";
@@ -632,6 +640,7 @@ __decorateClass([
632
640
  Expose17()
633
641
  ], UsuarioDTO.prototype, "Nombres", 2);
634
642
  __decorateClass([
643
+ Transform(transformToDateIfEmpty),
635
644
  Expose17(),
636
645
  IsDate5(),
637
646
  Type9(() => Date)
@@ -1877,7 +1886,7 @@ __decorateClass([
1877
1886
  ], EquiposDTO.prototype, "Validado", 2);
1878
1887
 
1879
1888
  // src/shared/dto/estado-Interno-dto.ts
1880
- import { Expose as Expose51, Transform, Type as Type29 } from "class-transformer";
1889
+ import { Expose as Expose51, Transform as Transform2, Type as Type29 } from "class-transformer";
1881
1890
  import { IsArray as IsArray12, IsDate as IsDate10, IsNotEmpty as IsNotEmpty41, IsNumber as IsNumber31, IsString as IsString42, Length as Length34, MinLength as MinLength5, ValidateNested as ValidateNested26 } from "class-validator";
1882
1891
 
1883
1892
  // src/shared/dto/usuario-edicion-dto.ts
@@ -2026,7 +2035,7 @@ __decorateClass([
2026
2035
  Expose51()
2027
2036
  ], EstadoInternoDTO.prototype, "Color", 2);
2028
2037
  __decorateClass([
2029
- Transform(({ value }) => Number(value)),
2038
+ Transform2(({ value }) => Number(value)),
2030
2039
  IsNumber31({}, { message: "debe ser un n\xFAmero" }),
2031
2040
  IsNotEmpty41({ message: "es requerido" }),
2032
2041
  Expose51()
@@ -2069,7 +2078,7 @@ __decorateClass([
2069
2078
  ], EstadoInternoDTO.prototype, "SubEstados", 2);
2070
2079
 
2071
2080
  // src/shared/dto/estado-Interno-without-substate-dto.ts
2072
- import { Expose as Expose52, Transform as Transform2, Type as Type30 } from "class-transformer";
2081
+ import { Expose as Expose52, Transform as Transform3, Type as Type30 } from "class-transformer";
2073
2082
  import { IsDate as IsDate11, IsNotEmpty as IsNotEmpty42, IsNumber as IsNumber32, IsString as IsString43, Length as Length35, ValidateNested as ValidateNested27, Min as Min28, IsDefined as IsDefined7 } from "class-validator";
2074
2083
  var EstadoInternoWithoutSubstateDTO = class {
2075
2084
  ID_EstadoInterno = 0;
@@ -2114,7 +2123,7 @@ __decorateClass([
2114
2123
  IsNotEmpty42({ message: "es requerido" }),
2115
2124
  Expose52(),
2116
2125
  Min28(1),
2117
- Transform2(({ value }) => Number(value))
2126
+ Transform3(({ value }) => Number(value))
2118
2127
  ], EstadoInternoWithoutSubstateDTO.prototype, "Orden", 2);
2119
2128
  __decorateClass([
2120
2129
  IsString43({ message: "debe ser un texto" }),
@@ -2236,7 +2245,7 @@ __decorateClass([
2236
2245
  ], FechaDTO.prototype, "Anulacion", 2);
2237
2246
 
2238
2247
  // src/shared/dto/files-doc-dto.ts
2239
- import { Expose as Expose59, Type as Type33 } from "class-transformer";
2248
+ import { Expose as Expose59, Transform as Transform5, Type as Type33 } from "class-transformer";
2240
2249
  import { IsArray as IsArray14, IsDate as IsDate14, IsNotEmpty as IsNotEmpty48, IsString as IsString49, Length as Length41, ValidateNested as ValidateNested29 } from "class-validator";
2241
2250
 
2242
2251
  // src/shared/dto/size-dto.ts
@@ -2259,7 +2268,7 @@ __decorateClass([
2259
2268
  ], SizeDTO.prototype, "UM", 2);
2260
2269
 
2261
2270
  // src/shared/dto/flujo-doc-dto.ts
2262
- import { Expose as Expose58, Type as Type32 } from "class-transformer";
2271
+ import { Expose as Expose58, Transform as Transform4, Type as Type32 } from "class-transformer";
2263
2272
  import { IsArray as IsArray13, IsBoolean as IsBoolean4, IsNotEmpty as IsNotEmpty47, IsString as IsString48, Length as Length40, ValidateNested as ValidateNested28 } from "class-validator";
2264
2273
  var FlujoDocDTO = class {
2265
2274
  Action = "";
@@ -2279,6 +2288,7 @@ __decorateClass([
2279
2288
  Expose58()
2280
2289
  ], FlujoDocDTO.prototype, "Action", 2);
2281
2290
  __decorateClass([
2291
+ Transform4(transformToDateIfEmpty),
2282
2292
  IsNotEmpty47({ message: "es requerido" }),
2283
2293
  Expose58()
2284
2294
  ], FlujoDocDTO.prototype, "Fecha", 2);
@@ -2392,6 +2402,7 @@ __decorateClass([
2392
2402
  ValidateNested29()
2393
2403
  ], FilesDocDTO.prototype, "Coordenadas", 2);
2394
2404
  __decorateClass([
2405
+ Transform5(transformToDateIfEmpty),
2395
2406
  Type33(() => Date),
2396
2407
  IsDate14({ message: "debe ser una fecha" }),
2397
2408
  IsNotEmpty48({ message: "es requerido" }),
@@ -2809,7 +2820,7 @@ __decorateClass([
2809
2820
  ], NombreDescripcionDTO.prototype, "Descripcion", 2);
2810
2821
 
2811
2822
  // src/shared/dto/pagos-ec-dto.ts
2812
- import { Expose as Expose71, Transform as Transform3, Type as Type41 } from "class-transformer";
2823
+ import { Expose as Expose71, Transform as Transform6, Type as Type41 } from "class-transformer";
2813
2824
  import { IsDate as IsDate19, IsNotEmpty as IsNotEmpty59, IsNumber as IsNumber42, IsString as IsString59, Length as Length51, Max, Min as Min35, ValidateNested as ValidateNested37 } from "class-validator";
2814
2825
 
2815
2826
  // src/shared/dto/usuario-Registrar-dto.ts
@@ -2859,7 +2870,7 @@ __decorateClass([
2859
2870
  Max(1)
2860
2871
  ], PagosECDTO.prototype, "porcentaje", 2);
2861
2872
  __decorateClass([
2862
- Transform3(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
2873
+ Transform6(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
2863
2874
  IsDate19({ message: "debe ser una fecha" }),
2864
2875
  IsNotEmpty59({ message: "es requerido" }),
2865
2876
  Expose71()
@@ -2902,7 +2913,7 @@ __decorateClass([
2902
2913
  ], PaisStockPersonalDTO.prototype, "ID_Pais", 2);
2903
2914
 
2904
2915
  // src/shared/dto/periodo-dto.ts
2905
- import { Expose as Expose73, Transform as Transform4, Type as Type42 } from "class-transformer";
2916
+ import { Expose as Expose73, Transform as Transform7, Type as Type42 } from "class-transformer";
2906
2917
  import { IsDate as IsDate20, IsNotEmpty as IsNotEmpty61, IsNumber as IsNumber44, IsString as IsString60, Length as Length52 } from "class-validator";
2907
2918
  var PeriodoDTO = class {
2908
2919
  ID_Periodo = 0;
@@ -2930,36 +2941,36 @@ __decorateClass([
2930
2941
  Type42(() => Date)
2931
2942
  ], PeriodoDTO.prototype, "FechaInicio", 2);
2932
2943
  __decorateClass([
2933
- Transform4(({ value }) => {
2934
- if (value === "") return /* @__PURE__ */ new Date(0);
2944
+ Transform7(({ value }) => {
2945
+ if (value === "" || typeof value == "object" && !(value instanceof Date)) return /* @__PURE__ */ new Date(0);
2935
2946
  return value instanceof Date ? value : new Date(value);
2936
2947
  }),
2937
2948
  IsDate20({ message: "debe ser una fecha" }),
2938
2949
  Expose73()
2939
2950
  ], PeriodoDTO.prototype, "FechaFin", 2);
2940
2951
  __decorateClass([
2941
- Transform4(({ value }) => {
2942
- if (value === "") return /* @__PURE__ */ new Date(0);
2952
+ Transform7(({ value }) => {
2953
+ if (value === "" || typeof value == "object" && !(value instanceof Date)) return /* @__PURE__ */ new Date(0);
2943
2954
  return value instanceof Date ? value : new Date(value);
2944
2955
  }),
2945
2956
  IsDate20({ message: "debe ser una fecha" }),
2946
2957
  Expose73()
2947
2958
  ], PeriodoDTO.prototype, "FechaMaxima", 2);
2948
2959
  __decorateClass([
2949
- Transform4(({ value }) => value === "" ? 0 : value),
2960
+ Transform7(({ value }) => value === "" ? 0 : value),
2950
2961
  IsNumber44({}, { message: "debe ser un numero" }),
2951
2962
  IsNotEmpty61({ message: "es requerido" }),
2952
2963
  Expose73()
2953
2964
  ], PeriodoDTO.prototype, "Mes", 2);
2954
2965
  __decorateClass([
2955
- Transform4(({ value }) => value === "" ? 0 : value),
2966
+ Transform7(({ value }) => value === "" ? 0 : value),
2956
2967
  IsNumber44({}, { message: "debe ser un numero" }),
2957
2968
  IsNotEmpty61({ message: "es requerido" }),
2958
2969
  Expose73()
2959
2970
  ], PeriodoDTO.prototype, "Anio", 2);
2960
2971
 
2961
2972
  // src/shared/dto/personal-dto.ts
2962
- import { Expose as Expose74, Transform as Transform5 } from "class-transformer";
2973
+ import { Expose as Expose74, Transform as Transform8 } from "class-transformer";
2963
2974
  import { IsNumber as IsNumber45, IsString as IsString61, Length as Length53, MinLength as MinLength6 } from "class-validator";
2964
2975
  var PersonalDTO = class {
2965
2976
  Identificacion = "";
@@ -2975,7 +2986,7 @@ __decorateClass([
2975
2986
  Expose74()
2976
2987
  ], PersonalDTO.prototype, "Identificacion", 2);
2977
2988
  __decorateClass([
2978
- Transform5(({ value }) => value === "" ? 0 : value),
2989
+ Transform8(({ value }) => value === "" ? 0 : value),
2979
2990
  IsNumber45({}, { message: "debe ser un numero" }),
2980
2991
  Expose74()
2981
2992
  ], PersonalDTO.prototype, "IdPersonal", 2);
@@ -5637,7 +5648,7 @@ __decorateClass([
5637
5648
  ], HomePassDTO.prototype, "HouseNumbreComplement", 2);
5638
5649
 
5639
5650
  // src/programados/procesos/trabajo/shared/dto/materiales-dto.ts
5640
- import { Expose as Expose117, Transform as Transform6, Type as Type74 } from "class-transformer";
5651
+ import { Expose as Expose117, Transform as Transform9, Type as Type74 } from "class-transformer";
5641
5652
  import { IsNotEmpty as IsNotEmpty99, IsNumber as IsNumber81, IsString as IsString94, Length as Length73, MinLength as MinLength16, ValidateNested as ValidateNested65 } from "class-validator";
5642
5653
  var MaterialesDTO = class {
5643
5654
  Codigo = "";
@@ -5661,7 +5672,7 @@ __decorateClass([
5661
5672
  Expose117()
5662
5673
  ], MaterialesDTO.prototype, "Codigo", 2);
5663
5674
  __decorateClass([
5664
- Transform6(({ value }) => value === void 0 ? "" : value),
5675
+ Transform9(({ value }) => value === void 0 ? "" : value),
5665
5676
  IsString94({ message: "debe ser un texto" }),
5666
5677
  MinLength16(0, { message: "debe tener al menos 0 caracteres" }),
5667
5678
  Expose117()
@@ -5882,7 +5893,7 @@ __decorateClass([
5882
5893
  ], TurnoDTO.prototype, "Hora_Inicio", 2);
5883
5894
 
5884
5895
  // src/programados/procesos/trabajo/shared/dto/ubicacion-dto.ts
5885
- import { Expose as Expose121, Transform as Transform7, Type as Type77 } from "class-transformer";
5896
+ import { Expose as Expose121, Transform as Transform10, Type as Type77 } from "class-transformer";
5886
5897
  import { IsNotEmpty as IsNotEmpty103, IsNumber as IsNumber85, IsString as IsString98, Length as Length76, MinLength as MinLength18, ValidateNested as ValidateNested68 } from "class-validator";
5887
5898
  var UbicacionDTO = class {
5888
5899
  ID_Direccion = 0;
@@ -5905,7 +5916,7 @@ __decorateClass([
5905
5916
  Expose121()
5906
5917
  ], UbicacionDTO.prototype, "Direccion", 2);
5907
5918
  __decorateClass([
5908
- Transform7(({ value }) => value === null ? "" : value),
5919
+ Transform10(({ value }) => value === null ? "" : value),
5909
5920
  IsString98({ message: "debe ser un texto" }),
5910
5921
  MinLength18(0, { message: "debe tener entre como m\xEDnimo 0 caracteres" }),
5911
5922
  Expose121()
@@ -5917,7 +5928,7 @@ __decorateClass([
5917
5928
  ValidateNested68()
5918
5929
  ], UbicacionDTO.prototype, "Coordenadas", 2);
5919
5930
  __decorateClass([
5920
- Transform7(({ value }) => value === null ? "" : value),
5931
+ Transform10(({ value }) => value === null ? "" : value),
5921
5932
  IsString98({ message: "debe ser un texto" }),
5922
5933
  MinLength18(0, { message: "debe tener entre como m\xEDnimo 0 caracteres" }),
5923
5934
  Expose121()
@@ -8927,7 +8938,7 @@ __decorateClass([
8927
8938
  ], TotalGeneralObraDTO.prototype, "ValorizadoTotalObra", 2);
8928
8939
 
8929
8940
  // src/programados/procesos/obra/shared/dto/ubicacion-dto.ts
8930
- import { Expose as Expose163, Transform as Transform8, Type as Type112 } from "class-transformer";
8941
+ import { Expose as Expose163, Transform as Transform11, Type as Type112 } from "class-transformer";
8931
8942
  import { IsNotEmpty as IsNotEmpty144, IsString as IsString129, Length as Length106, ValidateNested as ValidateNested102 } from "class-validator";
8932
8943
  var UbicacionObraDTO = class {
8933
8944
  Direccion = "";
@@ -8944,7 +8955,7 @@ __decorateClass([
8944
8955
  Expose163()
8945
8956
  ], UbicacionObraDTO.prototype, "Direccion", 2);
8946
8957
  __decorateClass([
8947
- Transform8(({ value }) => value === null ? "" : value),
8958
+ Transform11(({ value }) => value === null ? "" : value),
8948
8959
  IsString129({ message: "debe ser un texto" }),
8949
8960
  Length106(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
8950
8961
  Expose163()
@@ -8956,7 +8967,7 @@ __decorateClass([
8956
8967
  ValidateNested102()
8957
8968
  ], UbicacionObraDTO.prototype, "Coordenadas", 2);
8958
8969
  __decorateClass([
8959
- Transform8(({ value }) => value === null ? "" : value),
8970
+ Transform11(({ value }) => value === null ? "" : value),
8960
8971
  IsString129({ message: "debe ser un texto" }),
8961
8972
  Length106(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
8962
8973
  Expose163()
@@ -11848,7 +11859,7 @@ __decorateClass([
11848
11859
  ], GomENTITY.prototype, "Anexos", 2);
11849
11860
 
11850
11861
  // src/programados/procesos/cubicacion/shared/dto/cabecera-cubicaje-dto.ts
11851
- import { Expose as Expose209, Transform as Transform9, Type as Type143 } from "class-transformer";
11862
+ import { Expose as Expose209, Transform as Transform12, Type as Type143 } from "class-transformer";
11852
11863
  import { IsDate as IsDate59, IsNumber as IsNumber149, IsString as IsString165, Min as Min115, MinLength as MinLength26 } from "class-validator";
11853
11864
  var CabeceraCubicajeDTO = class {
11854
11865
  codigoCalc = "";
@@ -11891,13 +11902,13 @@ __decorateClass([
11891
11902
  Expose209()
11892
11903
  ], CabeceraCubicajeDTO.prototype, "nombre", 2);
11893
11904
  __decorateClass([
11894
- Transform9(({ value }) => typeof value === "string" ? value.trim() : value),
11905
+ Transform12(({ value }) => typeof value === "string" ? value.trim() : value),
11895
11906
  IsString165({ message: "debe ser un texto" }),
11896
11907
  MinLength26(1, { message: "debe tener al menos 1 car\xE1cter" }),
11897
11908
  Expose209()
11898
11909
  ], CabeceraCubicajeDTO.prototype, "contrato", 2);
11899
11910
  __decorateClass([
11900
- Transform9(({ value }) => typeof value === "string" ? value.trim() : value),
11911
+ Transform12(({ value }) => typeof value === "string" ? value.trim() : value),
11901
11912
  IsString165({ message: "debe ser un texto" }),
11902
11913
  MinLength26(1, { message: "debe tener al menos 1 car\xE1cter" }),
11903
11914
  Expose209()
@@ -11908,7 +11919,7 @@ __decorateClass([
11908
11919
  Expose209()
11909
11920
  ], CabeceraCubicajeDTO.prototype, "numoe", 2);
11910
11921
  __decorateClass([
11911
- Transform9(({ value }) => typeof value === "string" ? value.trim() : value),
11922
+ Transform12(({ value }) => typeof value === "string" ? value.trim() : value),
11912
11923
  IsString165({ message: "debe ser un texto" }),
11913
11924
  MinLength26(1, { message: "debe tener al menos 1 car\xE1cter" }),
11914
11925
  Expose209()
@@ -11995,7 +12006,7 @@ __decorateClass([
11995
12006
  ], CabeceraCubicajeDTO.prototype, "CostoTotal", 2);
11996
12007
 
11997
12008
  // src/programados/procesos/cubicacion/shared/dto/detalle-cubicaje-dto.ts
11998
- import { Expose as Expose210, Transform as Transform10 } from "class-transformer";
12009
+ import { Expose as Expose210, Transform as Transform13 } from "class-transformer";
11999
12010
  import { IsNumber as IsNumber150, IsString as IsString166, MinLength as MinLength27, Min as Min116 } from "class-validator";
12000
12011
  var DetalleCubicajeDTO = class {
12001
12012
  codigo = "";
@@ -12059,19 +12070,19 @@ __decorateClass([
12059
12070
  Expose210()
12060
12071
  ], DetalleCubicajeDTO.prototype, "plano", 2);
12061
12072
  __decorateClass([
12062
- Transform10(({ value }) => typeof value === "string" ? value.trim() : value),
12073
+ Transform13(({ value }) => typeof value === "string" ? value.trim() : value),
12063
12074
  IsString166({ message: "debe ser un texto" }),
12064
12075
  MinLength27(1, { message: "debe tener al menos 1 car\xE1cter" }),
12065
12076
  Expose210()
12066
12077
  ], DetalleCubicajeDTO.prototype, "codesp", 2);
12067
12078
  __decorateClass([
12068
- Transform10(({ value }) => typeof value === "string" ? value.trim() : value),
12079
+ Transform13(({ value }) => typeof value === "string" ? value.trim() : value),
12069
12080
  IsString166({ message: "debe ser un texto" }),
12070
12081
  MinLength27(1, { message: "debe tener al menos 1 car\xE1cter" }),
12071
12082
  Expose210()
12072
12083
  ], DetalleCubicajeDTO.prototype, "codact", 2);
12073
12084
  __decorateClass([
12074
- Transform10(({ value }) => typeof value === "string" ? value.trim() : value),
12085
+ Transform13(({ value }) => typeof value === "string" ? value.trim() : value),
12075
12086
  IsString166({ message: "debe ser un texto" }),
12076
12087
  MinLength27(1, { message: "debe tener al menos 1 car\xE1cter" }),
12077
12088
  Expose210()
@@ -12082,13 +12093,13 @@ __decorateClass([
12082
12093
  Expose210()
12083
12094
  ], DetalleCubicajeDTO.prototype, "tarea", 2);
12084
12095
  __decorateClass([
12085
- Transform10(({ value }) => typeof value === "string" ? value.trim() : value),
12096
+ Transform13(({ value }) => typeof value === "string" ? value.trim() : value),
12086
12097
  IsString166({ message: "debe ser un texto" }),
12087
12098
  MinLength27(1, { message: "debe tener al menos 1 car\xE1cter" }),
12088
12099
  Expose210()
12089
12100
  ], DetalleCubicajeDTO.prototype, "codmo", 2);
12090
12101
  __decorateClass([
12091
- Transform10(({ value }) => typeof value === "string" ? value.trim() : value),
12102
+ Transform13(({ value }) => typeof value === "string" ? value.trim() : value),
12092
12103
  IsString166({ message: "debe ser un texto" }),
12093
12104
  MinLength27(1, { message: "debe tener al menos 1 car\xE1cter" }),
12094
12105
  Expose210()
@@ -12135,7 +12146,7 @@ __decorateClass([
12135
12146
  ], DetalleCubicajeDTO.prototype, "codigobarra", 2);
12136
12147
 
12137
12148
  // src/programados/procesos/cubicacion/shared/index.ts
12138
- import { Expose as Expose211, Transform as Transform11, Type as Type144 } from "class-transformer";
12149
+ import { Expose as Expose211, Transform as Transform14, Type as Type144 } from "class-transformer";
12139
12150
  import { IsArray as IsArray78, IsDate as IsDate60, IsEnum as IsEnum3, IsNumber as IsNumber151, IsString as IsString167, Min as Min117, MinLength as MinLength28, ValidateNested as ValidateNested129 } from "class-validator";
12140
12151
  var OrigenCUB = /* @__PURE__ */ ((OrigenCUB2) => {
12141
12152
  OrigenCUB2["CREATE_MANUAL"] = "CREATE MANUAL";
@@ -12147,7 +12158,6 @@ var OrigenCUB = /* @__PURE__ */ ((OrigenCUB2) => {
12147
12158
  var CubicacionENTITY = class {
12148
12159
  ID_Cubicacion = 0;
12149
12160
  ID_MacroObra = 0;
12150
- MacroObra = "";
12151
12161
  detalle = [];
12152
12162
  Accion = "";
12153
12163
  Fecha = /* @__PURE__ */ new Date();
@@ -12167,11 +12177,6 @@ __decorateClass([
12167
12177
  Expose211(),
12168
12178
  Min117(0, { message: "debe ser al menos 0" })
12169
12179
  ], CubicacionENTITY.prototype, "ID_MacroObra", 2);
12170
- __decorateClass([
12171
- Expose211(),
12172
- IsString167({ message: "debe ser una cadena de texto" }),
12173
- MinLength28(1, { message: "debe ser al menos 1 caracter" })
12174
- ], CubicacionENTITY.prototype, "MacroObra", 2);
12175
12180
  __decorateClass([
12176
12181
  IsArray78({ message: "debe ser un arreglo" }),
12177
12182
  Type144(() => DetalleCubicajeDTO),
@@ -12184,7 +12189,7 @@ __decorateClass([
12184
12189
  Expose211()
12185
12190
  ], CubicacionENTITY.prototype, "Accion", 2);
12186
12191
  __decorateClass([
12187
- Transform11(({ value }) => typeof value === "string" ? value.replaceAll(" ", "") : value),
12192
+ Transform14(({ value }) => typeof value === "string" ? value.replaceAll(" ", "") : value),
12188
12193
  IsDate60({ message: "debe ser una fecha" }),
12189
12194
  Type144(() => Date),
12190
12195
  Expose211()
@@ -13783,7 +13788,7 @@ import { Expose as Expose256, Type as Type168 } from "class-transformer";
13783
13788
  import { IsArray as IsArray92, IsBoolean as IsBoolean20, IsNotEmpty as IsNotEmpty212, IsNumber as IsNumber173, IsOptional as IsOptional7, IsString as IsString202, Min as Min134, ValidateNested as ValidateNested153 } from "class-validator";
13784
13789
 
13785
13790
  // src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/cambios-estados-pagos-produccion-dto.ts
13786
- import { Expose as Expose248, Transform as Transform12, Type as Type165 } from "class-transformer";
13791
+ import { Expose as Expose248, Transform as Transform15, Type as Type165 } from "class-transformer";
13787
13792
  import { IsArray as IsArray90, IsDate as IsDate67, IsIn as IsIn4, IsNotEmpty as IsNotEmpty204, IsString as IsString194, Length as Length147, ValidateNested as ValidateNested150 } from "class-validator";
13788
13793
  var CambiosEstadosPagosProduccionDTO = class {
13789
13794
  NroDocumento = "";
@@ -13804,7 +13809,7 @@ __decorateClass([
13804
13809
  ValidateNested150()
13805
13810
  ], CambiosEstadosPagosProduccionDTO.prototype, "UsuarioCambio", 2);
13806
13811
  __decorateClass([
13807
- Transform12(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
13812
+ Transform15(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
13808
13813
  IsDate67({ message: "debe ser una fecha" }),
13809
13814
  IsNotEmpty204({ message: "es requerido" }),
13810
13815
  Expose248()
@@ -13903,7 +13908,7 @@ __decorateClass([
13903
13908
  ], ManoObraDTO3.prototype, "UnidadMedida", 2);
13904
13909
 
13905
13910
  // src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/periodo-dto.ts
13906
- import { Expose as Expose252, Transform as Transform13 } from "class-transformer";
13911
+ import { Expose as Expose252, Transform as Transform16 } from "class-transformer";
13907
13912
  import { IsDate as IsDate68, IsNotEmpty as IsNotEmpty208, IsNumber as IsNumber170, IsString as IsString198, Length as Length151 } from "class-validator";
13908
13913
  var PeriodoDTO5 = class {
13909
13914
  FechaInicio = /* @__PURE__ */ new Date(0);
@@ -13914,19 +13919,19 @@ var PeriodoDTO5 = class {
13914
13919
  Codigo = "";
13915
13920
  };
13916
13921
  __decorateClass([
13917
- Transform13(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
13922
+ Transform16(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
13918
13923
  IsDate68({ message: "debe ser de tipo fecha" }),
13919
13924
  IsNotEmpty208({ message: "es requerido" }),
13920
13925
  Expose252()
13921
13926
  ], PeriodoDTO5.prototype, "FechaInicio", 2);
13922
13927
  __decorateClass([
13923
- Transform13(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
13928
+ Transform16(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
13924
13929
  IsDate68({ message: "debe ser de tipo fecha" }),
13925
13930
  IsNotEmpty208({ message: "es requerido" }),
13926
13931
  Expose252()
13927
13932
  ], PeriodoDTO5.prototype, "FechaFin", 2);
13928
13933
  __decorateClass([
13929
- Transform13(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
13934
+ Transform16(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
13930
13935
  IsDate68({ message: "debe ser de tipo fecha" }),
13931
13936
  IsNotEmpty208({ message: "es requerido" }),
13932
13937
  Expose252()
@@ -13949,7 +13954,7 @@ __decorateClass([
13949
13954
  ], PeriodoDTO5.prototype, "Codigo", 2);
13950
13955
 
13951
13956
  // src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/ultima_estado_interno-dto.ts
13952
- import { Expose as Expose253, Transform as Transform14, Type as Type166 } from "class-transformer";
13957
+ import { Expose as Expose253, Transform as Transform17, Type as Type166 } from "class-transformer";
13953
13958
  import { IsDate as IsDate69, IsNotEmpty as IsNotEmpty209, IsNumber as IsNumber171, IsString as IsString199, Length as Length152, ValidateNested as ValidateNested151 } from "class-validator";
13954
13959
  var Ultimo_Estado_InternoDTO = class {
13955
13960
  ID_EstadoInterno = 0;
@@ -13976,7 +13981,7 @@ __decorateClass([
13976
13981
  Expose253()
13977
13982
  ], Ultimo_Estado_InternoDTO.prototype, "ID_EstadoInternoPadre", 2);
13978
13983
  __decorateClass([
13979
- Transform14(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
13984
+ Transform17(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
13980
13985
  IsDate69({ message: "debe ser una fecha" }),
13981
13986
  IsNotEmpty209({ message: "es requerido" }),
13982
13987
  Expose253()
@@ -14036,7 +14041,7 @@ __decorateClass([
14036
14041
  ], Ultimo_Estado_InternoDTO.prototype, "UsuarioEdicion", 2);
14037
14042
 
14038
14043
  // src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/ultima_fase-dto.ts
14039
- import { Expose as Expose254, Transform as Transform15, Type as Type167 } from "class-transformer";
14044
+ import { Expose as Expose254, Transform as Transform18, Type as Type167 } from "class-transformer";
14040
14045
  import { IsArray as IsArray91, IsDate as IsDate70, IsIn as IsIn5, Max as Max6, IsNotEmpty as IsNotEmpty210, IsNumber as IsNumber172, IsString as IsString200, Length as Length153, Min as Min133, ValidateNested as ValidateNested152 } from "class-validator";
14041
14046
  var Ultima_FaseDTO = class {
14042
14047
  ID_Fase = 0;
@@ -14083,7 +14088,7 @@ __decorateClass([
14083
14088
  ValidateNested152()
14084
14089
  ], Ultima_FaseDTO.prototype, "UsuarioCambio", 2);
14085
14090
  __decorateClass([
14086
- Transform15(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
14091
+ Transform18(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
14087
14092
  IsDate70({ message: "debe ser una fecha" }),
14088
14093
  IsNotEmpty210({ message: "es requerido" }),
14089
14094
  Expose254()
@@ -14111,7 +14116,7 @@ __decorateClass([
14111
14116
  ValidateNested152()
14112
14117
  ], Ultima_FaseDTO.prototype, "UsuarioDocumento", 2);
14113
14118
  __decorateClass([
14114
- Transform15(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
14119
+ Transform18(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
14115
14120
  IsDate70({ message: "debe ser una fecha" }),
14116
14121
  IsNotEmpty210({ message: "es requerido" }),
14117
14122
  Expose254()
@@ -18111,7 +18116,7 @@ __decorateClass([
18111
18116
  ], BodegaENTITY.prototype, "Bitacora", 2);
18112
18117
 
18113
18118
  // src/logistica/autoinventario/shared/index.ts
18114
- import { Expose as Expose309, Transform as Transform16, Type as Type203 } from "class-transformer";
18119
+ import { Expose as Expose309, Transform as Transform19, Type as Type203 } from "class-transformer";
18115
18120
 
18116
18121
  // src/logistica/autoinventario/shared/dto/equipos-AI-dto.ts
18117
18122
  import { Expose as Expose308 } from "class-transformer";
@@ -18216,7 +18221,7 @@ __decorateClass([
18216
18221
  Expose309()
18217
18222
  ], AutoInventarioENTITY.prototype, "Observacion", 2);
18218
18223
  __decorateClass([
18219
- Transform16(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
18224
+ Transform19(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
18220
18225
  IsDate88({ message: "debe ser una fecha" }),
18221
18226
  IsNotEmpty261({ message: "es requerido" }),
18222
18227
  Expose309()
@@ -19948,7 +19953,7 @@ __decorateClass([
19948
19953
  import { IsDate as IsDate97, IsEnum as IsEnum7, IsNotEmpty as IsNotEmpty293, IsString as IsString282, Length as Length227, ValidateNested as ValidateNested205 } from "class-validator";
19949
19954
 
19950
19955
  // src/configuracion/notificaciones/shared/dto/data-adicional-dto.ts
19951
- import { Expose as Expose343, Transform as Transform17 } from "class-transformer";
19956
+ import { Expose as Expose343, Transform as Transform20 } from "class-transformer";
19952
19957
  import { IsDate as IsDate96, IsEnum as IsEnum6, IsNotEmpty as IsNotEmpty292, IsString as IsString281, Length as Length226 } from "class-validator";
19953
19958
  var OperacionDataAdicional = /* @__PURE__ */ ((OperacionDataAdicional2) => {
19954
19959
  OperacionDataAdicional2["CREAR"] = "crear";
@@ -19979,7 +19984,7 @@ __decorateClass([
19979
19984
  Expose343()
19980
19985
  ], DataAdicionalDTO.prototype, "operacion", 2);
19981
19986
  __decorateClass([
19982
- Transform17(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
19987
+ Transform20(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
19983
19988
  IsDate96({ message: "debe ser una fecha" }),
19984
19989
  IsNotEmpty292({ message: "es requerido" }),
19985
19990
  Expose343()
@@ -19991,7 +19996,7 @@ __decorateClass([
19991
19996
  ], DataAdicionalDTO.prototype, "localName", 2);
19992
19997
 
19993
19998
  // src/configuracion/notificaciones/shared/index.ts
19994
- import { Expose as Expose344, Transform as Transform18, Type as Type227 } from "class-transformer";
19999
+ import { Expose as Expose344, Transform as Transform21, Type as Type227 } from "class-transformer";
19995
20000
  var TipoNotificacion = /* @__PURE__ */ ((TipoNotificacion2) => {
19996
20001
  TipoNotificacion2["INFO"] = "info";
19997
20002
  TipoNotificacion2["ERROR"] = "error";
@@ -20055,13 +20060,13 @@ __decorateClass([
20055
20060
  ValidateNested205()
20056
20061
  ], NotificacionesENTITY.prototype, "dataAdicional", 2);
20057
20062
  __decorateClass([
20058
- Transform18(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
20063
+ Transform21(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
20059
20064
  IsDate97({ message: "debe ser una fecha" }),
20060
20065
  IsNotEmpty293({ message: "es requerido" }),
20061
20066
  Expose344()
20062
20067
  ], NotificacionesENTITY.prototype, "fechaCreacion", 2);
20063
20068
  __decorateClass([
20064
- Transform18(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
20069
+ Transform21(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
20065
20070
  IsDate97({ message: "debe ser una fecha" }),
20066
20071
  IsNotEmpty293({ message: "es requerido" }),
20067
20072
  Expose344()
@@ -23150,6 +23155,7 @@ export {
23150
23155
  ZonasDTO,
23151
23156
  convertStringsToDates,
23152
23157
  latLngDTO,
23158
+ transformToDateIfEmpty,
23153
23159
  validateAndFormatData,
23154
23160
  validateArrayBody
23155
23161
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-entities",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "description": "Desarrollo de modelos de datos SIGO",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",