sigo-entities 1.2.388 → 1.2.390
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/.ai_context.md +50 -0
- package/build.log +0 -0
- package/dist/index.d.mts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +93 -9
- package/dist/index.mjs +83 -0
- package/functionGenerateDto.ts +168 -168
- package/generateDtos.ts +32 -32
- package/package.json +38 -38
- package/test.ts +12 -12
package/.ai_context.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Contexto del Proyecto
|
|
2
|
+
|
|
3
|
+
**Nombre:** Ingeniero Brayan Valero
|
|
4
|
+
**Preferencias de idioma:** Español (Indispensable)
|
|
5
|
+
**Formato de Planes y Tareas:** Siempre en Español
|
|
6
|
+
**Contexto del proyecto:** Librería transversal para entidades compartidas (Front y Back)
|
|
7
|
+
**Nombre del Asistente:** Latas
|
|
8
|
+
|
|
9
|
+
**Tipo de Proyecto:** Shared Library
|
|
10
|
+
**Ubicación Raíz:** `d:\16_SIGO_ENTITYS\sigo-entities`
|
|
11
|
+
|
|
12
|
+
Este archivo contiene la visión general del proyecto `sigo-entities`.
|
|
13
|
+
|
|
14
|
+
## Descripción
|
|
15
|
+
`sigo-entities` es la librería donde se alojan las entidades compartidas por front y back. En ambos hay un archivo de contexto llamado `.ai_context.md`, donde almacenamos la configuración del proyecto, estructura del mismo y contexto de workflows para tareas futuras.
|
|
16
|
+
|
|
17
|
+
## Normas Generales
|
|
18
|
+
1. **Archivos de Contexto**: Mantener actualizados los `.ai_context.md` locales.
|
|
19
|
+
2. **Git Ignore**: Asegurarse de que `**/.ai_context.md` esté ignorado.
|
|
20
|
+
3. **sigo-entities**: Librería transversal para tipos compartidos.
|
|
21
|
+
|
|
22
|
+
## Guía de Desarrollo de Entidades y DTOs
|
|
23
|
+
|
|
24
|
+
### Estructura de Carpetas
|
|
25
|
+
- **DTOs compartidos**: `src/programados/procesos/[Entidad]/shared`
|
|
26
|
+
- **Request DTOs**: `src/programados/procesos/[Entidad]/shared/requestDto`
|
|
27
|
+
|
|
28
|
+
### Convenciones de Nombres
|
|
29
|
+
- **Archivos**: `kebab-case` con sufijo `-dto.ts` (ej. `job-macro-request-dto.ts`).
|
|
30
|
+
- **Clases**: `PascalCase` con sufijo `DTO` (ej. `JobMacroRequestDTO`).
|
|
31
|
+
|
|
32
|
+
### Reglas de Implementación
|
|
33
|
+
1. **Librerías**: Usar `class-transformer` (@Expose, @Type) y `class-validator` (IsString, IsNumber, etc.).
|
|
34
|
+
2. **Mensajes de Validación**: Deben ser en español (ej. "debe ser un texto", "es requerido").
|
|
35
|
+
3. **Inicialización**: Todas las propiedades deben tener valor inicial (ej. `string = ''`, `number = 0`).
|
|
36
|
+
4. **Exposición**: Decorar todas las propiedades con `@Expose()`.
|
|
37
|
+
|
|
38
|
+
## Proceso de Despliegue (sigo-entities)
|
|
39
|
+
|
|
40
|
+
1. **Validación**: Confirmar que la nueva entidad o DTO es correcto y cumple con las normas (preguntar al usuario).
|
|
41
|
+
- *Aprendizaje*: No incluir campos como `UsuarioEdicion` si el backend puede obtenerlos del token. Los DTOs de actualización deben ser lo más minimalistas posible (ID, nuevos valores, observaciones).
|
|
42
|
+
2. **Sincronización Inicial**: Bajar cambios (`git pull`) y subir cambios de la nueva entidad (`git push`).
|
|
43
|
+
3. **Versionamiento**: Incrementar la versión en el `package.json` (ej: `1.2.205` -> `1.2.206`).
|
|
44
|
+
4. **Sincronización de Versión**: Bajar y subir cambios nuevamente para asegurar la versión en el repositorio.
|
|
45
|
+
5. **Publicación**: Ejecutar `npm publish`.
|
|
46
|
+
6. **Actualización en Servicios**:
|
|
47
|
+
- Posicionarse en el servicio (Back/Front) objetivo mediante el comando `cd`.
|
|
48
|
+
- Ejecutar `npm i sigo-entities@latest`.
|
|
49
|
+
- Verificar importaciones.
|
|
50
|
+
- *Aprendizaje*: Los DTOs de procesos deben exportarse desde el `index.ts` principal de la entidad (ej. `obra/index.ts`) y no solo desde el `shared/index.ts`.
|
package/build.log
ADDED
|
Binary file
|
package/dist/index.d.mts
CHANGED
|
@@ -9493,6 +9493,24 @@ declare class CountryEntity extends BaseEntity {
|
|
|
9493
9493
|
name: string;
|
|
9494
9494
|
}
|
|
9495
9495
|
|
|
9496
|
+
declare enum CompanyType {
|
|
9497
|
+
OPERATIVA = "Operativa",
|
|
9498
|
+
PROVEEDOR = "Proveedor"
|
|
9499
|
+
}
|
|
9500
|
+
|
|
9501
|
+
declare class CompanyEntity extends BaseEntity {
|
|
9502
|
+
companyType: CompanyType;
|
|
9503
|
+
identification: string;
|
|
9504
|
+
code: string;
|
|
9505
|
+
legalName: string;
|
|
9506
|
+
tradeName: string;
|
|
9507
|
+
isOwn: boolean;
|
|
9508
|
+
address: string;
|
|
9509
|
+
emails: string[];
|
|
9510
|
+
phones: string[];
|
|
9511
|
+
delegationIds: string[];
|
|
9512
|
+
}
|
|
9513
|
+
|
|
9496
9514
|
interface MenuDto {
|
|
9497
9515
|
id: string;
|
|
9498
9516
|
label: string;
|
|
@@ -9527,4 +9545,4 @@ interface ValidateRequestBodyOptions<T extends object> {
|
|
|
9527
9545
|
}
|
|
9528
9546
|
declare function validateRequestBody<T extends object>({ dtoClass, BadRequestException, groups }: ValidateRequestBodyOptions<T>, req: Request, _res: Response, next: NextFunction): Promise<void>;
|
|
9529
9547
|
|
|
9530
|
-
export { ADM_RM_ZonasActividadENTITY, AcceptedDto, AccesortiosBantelDTO, AccesortiosMifibraDBDTO, ActaFinalCubicacionDTO, ActaFinalCubicacionSharedDTO, ActividadZonasActividadDTO, ActividadesDTO, AddMOPContrataMODTO, AddressListENTITY, AgenciaDTO, AgenciaENTITY, AgenciasDTO, AjusteReprocesoDTO, AlbaranDto, AlmacenDTO, AlmacenDto, AlmacenENTITY, AlmacenExtraENTITY, AlmacenLogisticaDTO, AlmacenRequerimientoDto, AlmacenUsuarioGIADTO, AnexoPreOrdenDto, AnexosDTO, AnexosDetailMantenanceOrderDTO, AprobacionDto, AreaGOMDTO, AreaGOMDatosReferenciaDTO, AreaGOMENTITY, AreaGOMResumenDTO, AreaGOMSubGOMSDTO, AreaGomCentroCostosDTO, AsignacionGomDTO, AsignacionGomDTO_Old, AsignacionRegularizarDTO, AsistenciaENTITY, AtencionOrdenesLiquidadasENTITY, AtiendeBodegaDTO, AttendanceDTO, AttendanceStatus, AuthUserDto, AutoInventarioENTITY, BankVendorDto, BantelENTITY, BaremoAlemaniaENTITY, BaremoProcessENTITY, BaremosAlemaniaENTITY, BaremosChileENTITY, BaremosColombiaENTITY, BaremosTOAChileENTITY, BaremosTOAENTITY, BitacoraAntiguaDTO, BitacoraDTO, BitacoraDeOrdenesDTO, BitacoraDto, BitacoraLiqDTO, BitacoraOpcionSitemaDTO, BodegaENTITY, BodyUpdateFasesDTO, BodyUpdateOne, CHILE_9512_PaquetizadoManoObraENTITY, CHILE_9512_PaquetizadoMaterialENTITY, CabeceraCubicacionColombiaDTO, CabeceraCubicajeAlemaniaDTO, CabeceraCubicajeChileDTO, CabeceraCubicajeDTO, CabeceraCubicajePeruDTO, CalculatePercentsAlemaniaDTO, CalculatePercentsColombiaDTO, CalculatePercentsDTO, CalculatePercentsPeruDTO, CambioEstadoFacturadoRequest, CambioEstadoFaseRequest, CambiosEstadosFaseLiberacionPagosDTO, CargoPersonalENTITY, CategoriaDto, CausacionCubicacionColombiaDTO, CausacionDTO, CentroCostosDTO, CentroCostosENTITY, CertificacionDTO, ChangeStateBaremosDTO, ChileTdCENTITY, ClienteDTO, ClienteTdCDTO, ClienteWAOOENTITY, Cliente_ContratistaDTO, ClosedDto, CodeNameDto, CodeNameMinLengthDto, CodigoDescripcionDTO, type CodigoMovimientoAlmacen, CodigoNombreDTO, CodigoNombreUMDTO, CodigoRazonSocialDTO, CodigoTituloAlemaniaDTO, CodigoTituloColombiaDTO, CodigoTituloDTO, ComparativoDto, CondicionDTO, ConsumoMaterialAlemaniaENTITY, ConsumoMaterialENTITY, ConsumosMaterialDTO, ConsumosMaterialExcelDTO, ConsumosP117ENTITY, ContabilizadoDto, ContratistaDTO, ContratistasDTO, Contratistas_PE_DTO, ContratoDTO, ContratoOTDTO, ContratoOTENTITY, ContratoOTGeneralDTO, ContratoOT_PRE_DTO, ContratoOT_ZT_DTO, ContratoObraOTDTO, ContratoPagosENTITY, Contrato_DTO, ConversionLogisticaDTO, CoordenadasDTO, CoordenadasTdCDTO, CorteBobinaStockAlmacenDTO, CosumoMaterialAlemaniaDTO, CotizacionDto, CountryEntity, CrearNavisionpreordenEntityRequestDto, CreateProfileDto, CuadrillaBaremoDTO, CuadrillaDTO, CuadrillaENTITY, CuadrillaLiberacionPagosDTO, CuadrillaRegularizarDTO, CuadrillasDTO, CubicacionAlemaniaAL02ENTITY, CubicacionChile9512ENTITY, CubicacionColombia9612ENTITY, CubicacionENTITY, CubicacionPeru9112ENTITY, CumplimientoDTO, DataAdicionalDTO, DataCatalogoItemDTO, DataChildrenTreeNodes, DataChildrenTreeNodesAlemaniaDTO, DataChildrenTreeNodesColombiaDTO, DataDocumentacionDTO, DataDocumentacionPeruDTO, DataGridTabBusinessHP, DataGridTabBusinessHPPeruDTO, DataGridTabResidentialHP, DataScraperClaroVTRENTITY, DataWithPercentItemAlemaniaDTO, DataWithPercentItemChile, DataWithPercentItemColombiaDTO, DataWithPercentItemPeruDTO, DateDto, DatoUsuarioTipoOpcionDto, DatosAreaPersonalDTO, DatosCatalogoItemDTO, DatosCatalogoMODTO, DatosEmpresaDto, DatosFacturacionDTO, DatosGIADTO, DatosGeneralesDTO, DatosGeneralesPersonalDTO, DatosIssueProduccionDTO, DatosIssueProduccionEmpresaDTO, DatosJefeObraDto, DatosManoObraGlobalDTO, DatosManoObraGlobalDetalleChileDTO, DatosNavDto, DatosPagoDto, DatosPaiDto, DatosPersonalDto, DatosPrecioEspecialidadDTO, DatosPrecioMaterialDTO, DatosReferenciaDTO, DatosTecnicosDTO, DatosTrabajoCatalogoDTO, DatosTrabajoDto, DatosTrabajoRequerimientoDto, DatosTrabajoUsuarioDTO, DatosTransportistaChileDTO, DatosTransportistaDTO, DatosUnidadObraMaterialDTO, DelegacionDTO, DelegacionDto, DelegacionZonalesDTO, DelegationEntity, DeleteBaremoFaseDTO, DestinatarioDTO, DetailMaintenanceOrderDTO, DetalleAlbaranDTO, DetalleAlemaniaDTO, DetalleAtipicaDTO, DetalleAtipicaPeruDTO, DetalleChileAlemaniaObraDTO, DetalleChileChileObraDTO, DetalleChileColombiaObraDTO, DetalleChileDTO$1 as DetalleChileDTO, DetalleChileObraDTO, DetalleChilePeruObraDTO, DetalleChileValorizacionMODTO, DetalleChileValorizacionManoObraRegularizacionDTO, DetalleColombiaDTO, DetalleCotizacionDto, DetalleCubicajeDTO, DetalleDTO, DetalleDto, DetalleManoObraChileDTO, DetalleOrdenRealDTO, DetallePeruDTO, DetallePeruFechasDTO, DetalleProductoDto, DetalleSalidaAlmacenDTO, DevolucionAlmacenENTITY, DireccionDTO, DocumentacionBaremoPexENTITY, DocumentacionPEXENTITY, DocumentoDetalleClienteAlemaniaDTO, DocumentoDetalleClienteColombiaDTO, DocumentoDetalleClienteDTO, DocumentoDetalleClientePeruDTO, DocumentoDetalleNoClienteAlemaniaDTO, DocumentoDetalleNoClienteColombiaDTO, DocumentoDetalleNoClienteDTO, DocumentoDetalleNoClientePeruDTO, DocumentosInicialesDTO, DocumentosInicialesPeruDTO, EECCBantelDTO, EECCClienteWAOODTO, EECCDBMIFIBRADTO, EECCDBTOADTO, EECCDBWINDTO, EECCFibramasDBDTO, EECC_DTO, EFaseObraBaremo, EmisionDto, EmpalmeDTO, EmpresaBaremoDTO, EmpresaDTO, EmpresaENTITY, EmpresaGanadoraDto, EmpresaLiberacionPagosDTO, EmpresaLogisticaDTO, EmpresaPCMODTO, EmpresaPersonalDTO, EmpresaPersonalDatosTrabajoDTO, EmpresaProduccionDTO, EmpresaRegularizarDTO, EmpresaStockPersonalDTO, EmpresaTdCDTO, EmpresaUsuarioDTO, EmpresaValDTO, EmpresaZonasActividadDTO, EncargadoDTO, EncargadoRegularizarDTO, EnviarNavDto, EquipoLogisticaDTO, EquipoSerieDto, EquiposAIDTO, EquiposDTO, EspecialidadDTO, EstadoAntiguoDTO, EstadoDTO, EstadoDePagoDTO, EstadoFaseObraBaremo, EstadoHPListDTO$2 as EstadoHPListDTO, EstadoIntegracionDTO, EstadoInternoDTO, EstadoInternoENTITY, EstadoInternoObraDTO, EstadoInternoWithoutSubstateDTO, type EstadoLiq, EstadoLiqDTO, EstadoNotificacion, EstadoProcesoValPeru, EstadoProcesoValPeruDTO, EstadoProcesoValSomacyl, EstadoProcesoValSomacylDTO, EstadoSerieDto, type EstadoVal, Estado_Model_MO, EstadosTuvesEnum, FacturaDto, FacturaGeneradaDTO, FacturacionDTO, FamiliaItemDTO, FaseDTO, FaseENTITY, FasePagoDTO, FasesObraBaremoDTO, FasesType, FechaDTO, FechaEntregaDto, FechaVigenciaBaremosDTO, FechaVigenciaPCMODTO, FechasDTO, FechasValorizacionBaremoDTO, FileDto, FilesDocDTO, FlagsDTO, FlujoDocDTO, FlujoDto, ForceString, ForgotPasswordDto, FormaPagoDto, FotoDTO, FotosDTO, FotosDetailMaintenanceDTO, FotosSSTDTO, GOMDTO, GemeindeENTITY, GomENTITY, GomNovedadesDTO, GomNovedadesTipoNovedadDTO, GranFamiliaItemDTO, GranFamiliaItemENTITY, GrupoEmpresaDTO, HPListAsignacionDTO, HPListDTO, HistorialCubicacionDTO, HistorialEstadosBantelDTO, HistorialEstadosMifibraDBDTO, HistorialEstadoswinDBDTO, HistorialEstadoswinDTO, HistoricoDTO, HistoricoEmpresasDTO, HitoDTO, HomePassDTO$1 as HomePassDTO, IDataSheetCoordenadas, IDataSheetLineasTdC, IDataSheetMateriales, IDataSheetMedidores, IDataSheetTdC, IDataSheetTiemposCumplimentados, ISheetsJsonChileTdC, IconoDto, ImgLogoNavBarDTO, ImporteDto, IncidenciasAlemaniaDTO, IncidenciasChileDTO, IncidenciasColombiaDTO, IncidenciasDTO, IncidenciasPeruDTO, IngresoAlmacenENTITY, InventarioDTO, InventarioExistenteDTO, InventarioLiqDTO, InventarioValDTO, IssueENTITY, ItemCantidadesDTO, ItemDTO, ItemDetalleLogisticaDTO, ItemDetallePMDTO, ItemENTITY, ItemEspañaENTITY, ItemExtraENTITY, ItemLogisticaDTO, ItemsOrdenDTO, ItemsOrdenScraperClaroVTRDTO, JobMacroByGemeindeRequestDTO, KCMActividadDTO, KeyDTO, KeyIntegracionENTITY, KitConsumoMaterialENTITY, LiberacionDePagosAlemaniaENTITY, LiquidadaTOAENTITY, ListaCapacidadesCableDTO, LogAlmacenDTO, LogDTO, LogModificarDTO, LogRegisterDTO, LoginDto, LoteDTO$1 as LoteDTO, MOBaremoDTO, MOChileVigenciaDTO, MacroObraAlemaniaENTITY, MacroObraChileENTITY, MacroObraColombiaENTITY, MacroObraENTITY, MacroObraPeruENTITY, MailStructureENTITY, ManoObraAlemaniaENTITY, ManoObraBaremoDTO, ManoObraBaremoENTITY, ManoObraBaremoProduccionDTO, ManoObraBaseENTITY, ManoObraENTITY, ManoObraGlobalDTO, ManoObraGlobalENTITY, ManoObraGlobalPCIssueAlemaniaAL02DTO, ManoObraGlobalPCIssueDTO, ManoObraGlobalPCMOAlemaniaAL02DTO, ManoObraGlobalPCMODTO, ManoObraGlobalPCMOEspania1729DTO, ManoObraLiberacionPagosDTO, ManoObraMttoENTITY, ManoObraPorUnidadObraENTITY, MarcaDTO, MaterialAmapDTO, MaterialAmapMODTO, MaterialCubicacionColombiaDTO, MaterialCubicacionPeruDTO, MaterialLogisticaDTO, MaterialMOGlobalDTO, MaterialUtilizadoRetiradoBaremoDTO, MaterialesBantelDTO, MaterialesClaroDTO, MaterialesClienteWAOODTO, MaterialesConsumoDTO, MaterialesCubicacionDTO, MaterialesDTO$1 as MaterialesDTO, MaterialesFibramasDBDTO, MaterialesFibramasDTO, MaterialesMifibraDBDTO, MaterialesSomacylDTO, MaterialestoaDBDTO, MaterialestoaDTO, MaterialeswinDBDTO, MaterialeswinDTO, MateterialesTuvesDTO, MedidorDTO, type MenuDto, MetadataUOMaterialDTO, MiFibraENTITYDB, ModelMOSQLPeruENTITY, ModelObraSQLPeruENTITY, ModeloDTO, MonedaDto, MovimientoAlmacenDTO, MovimientoAlmacenENTITY, MovimientoDto, MovimientosRecepcionDto, NavDto, NavisionBitacoraFileDto, NavisionDateRegistryDto, NavisionMovimientoAlmacenDTO, NavisionPersonalLogisticaDTO, NavisionRegistryDateDto, NavisionUserRegistryDto, NavisionpreordenEntity, NodoDocDTO, NombreDescripcionDTO, NotasDTO, NotificacionesENTITY, OTBYESPECIALIDADGEMEINDEENTITY, OTDTO, OTENTITY, OTGlobalDTO, OTGlobalENTITY, ObraAlemaniaAL02ENTITY, ObraAlemaniaAL04ENTITY, ObraChile9512ENTITY, ObraColombia9612ENTITY, ObraENTITY, ObraPeru9112ENTITY, OnnetFibraENTITY, OpcionSistemaENTITY, OperacionDTO, OperacionDataAdicional, OptionCatalogoDTO, OrdReclMatDescargadoDTO, OrdenDetailMaintenanceDTO, OrdenDto, OrdenesInstalacionDTO, OrderStockENTITY, OrderStockStoreENTITY, OrigenCUB, OtDto, PBbyMaterialQuantitiesDTO, PBbyMaterialQuantitiesSomacylDTO, PagosECBaremoDTO, PagosECDTO, PaisStockPersonalDTO, ParteDiarioDTO, PasosDTO, type PayloadTokenDTO, PayloadTokenDto, PedidoCompraDto, PerfilesENTITY, PeriodoBaremoDTO, PeriodoDTO$2 as PeriodoDTO, PeriodoENTITY, PeriodoLiberacionPagosDTO, PermisosAppDTO, PermisosAppENTITY, PersonalCuadrillaDTO, PersonalDTO, PersonalENTITY, PersonalLogisticaDTO$1 as PersonalLogisticaDTO, PersonalTOADTO, PersonalTrabajoDTO, Peru9112FibramasENTITY, Peru9112FibramasENTITYDB, Peru9112TOAENTITY, Peru9112TOAENTITYDB, Peru9112WinENTITY, Peru9112WinENTITYDB, PlantaDBDTO, PlantaDTO, PlantaSomacylDTO, PreAcceptedDto, PrecioActualDTO, PrecioAgencia_mam_onnetENTITY, PrecioContratistaIssueAL02ENTITY, PrecioContratistaIssueENTITY, PrecioContratistaMOAL02ENTITY, PrecioContratistaMOAL04ENTITY, PrecioContratistaMOENTITY, PrecioContratistaMOESPANIA1729ENTITY, PrecioContratistaMaterialENTITY, PrecioDTO, PrecioEmpresaDTO, PrecioEspecialidadENTITY, PrecioManoObraENTITY, PrecioMaterialENTITY, PrecioTrabajoDTO, PrecioUOMaterialesDTO, PreciosVigentesDTO, PresupuestadoTotalObraAlemaniaDTO, PresupuestadoTotalObraChilaDTO, PresupuestadoTotalObraColombiaDTO, PresupuestadoTotalObraDTO, PresupuestadoTotalObraEmpresaAlemaniaDTO, PresupuestadoTotalObraEmpresaChileDTO, PresupuestadoTotalObraEmpresaColombiaDTO, PresupuestadoTotalObraEmpresaCuadrillaAlemaniaDTO, PresupuestadoTotalObraEmpresaCuadrillaChileDTO, PresupuestadoTotalObraEmpresaCuadrillaColombiaDTO, PresupuestadoTotalObraEmpresaCuadrillaDTO, PresupuestadoTotalObraEmpresaCuadrillaPeruDTO, PresupuestadoTotalObraEmpresaDTO, PresupuestadoTotalObraEmpresaPeruDTO, PresupuestadoTotalObraPeruDTO, PresupuestoDTO, PresupuestoOTENTITY, PrioridadNotificacion, ProcedenciaDto, ProdCursoBaremoFasesCuadrillaDTO, ProdCursoBaremoFasesManoObraDTO, ProdCursoBaremoFasesPeriodoDTO, ProdCursoBaremoFasesUltimaFaseDTO, ProdCursoBaremoFasesUltimoEstadoInternoDTO, ProduccionDTO, ProductoDto, ProductosServiciosContratadoDBDTO, ProductosServiciosContratadoDTO, ProductosServiciosContratadoSomacylDTO, ProductosServiciosLiqDTO, ProductosServiciosValDTO, ProfileDTO, ProfileDto, ProfileEntity, RM_ActividadENTITY, RM_ComunaENTITY, RM_ManoObraENTITY, RM_MaterialENTITY, RM_PaquetizadoENTITY, RM_ZonasActividadENTITY, RawLiqPenBantelDTO, RawLiqPenDTO, RawParteDiarioBantelDTO, RawParteDiarioDTO, ReasonNoFinalizedSomacyl, RecepcionDto, ReclamosDistribuidorDTO, RecursosPersonalDTO, RegistroAudioDTO, RegistryDto, RegularizacionPositivaNegativaDTO, RegularizarObraJobRequestDTO, RepresentanteLegalDTO, RequeridoEnum, RequerimientoDto, RequestDataMigrationDTO, RequestNumberTTLENTITY, ReservaENTITY, ReservaManoObraRegularizacionENTITY, ResetPasswordDto, ResponseSignInDto, ResultadoDTO, ResumemENTITY, ResumenAvanceAlemaniaDTO, ResumenAvanceChileDTO, ResumenAvanceColombiaDTO, ResumenAvanceDataDocumentacionAlemaniaDTO, ResumenAvanceDataDocumentacionColombiaDTO, ResumenAvanceDataDocumentacionDTO, ResumenAvanceDataDocumentacionDataGroupToDrawAlemaniaDTO, ResumenAvanceDataDocumentacionDataGroupToDrawColombiaDTO, ResumenAvanceDataDocumentacionDataWithPercentsAlemaniaDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesAlemaniaDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesChileDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesColombiaDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesPeruDTO, ResumenAvanceDataDocumentacionDataWithPercentsChile, ResumenAvanceDataDocumentacionDataWithPercentsColombiaDTO, ResumenAvanceDataDocumentacionDataWithPercentsPeruDTO, ResumenAvanceDataDocumentacionPeruDTO, ResumenAvanceDataGranTotal, ResumenAvanceDataGranTotalAlemaniaDTO, ResumenAvanceDataGranTotalColombiaDTO, ResumenAvanceDataGranTotalEmpresasAlemaniaDTO, ResumenAvanceDataGranTotalEmpresasChileDTO, ResumenAvanceDataGranTotalEmpresasColombiaDTO, ResumenAvanceDataGranTotalEmpresasPeruDTO, ResumenAvanceDataGranTotalManoObraAlemaniaDTO, ResumenAvanceDataGranTotalManoObraCHILEDTO, ResumenAvanceDataGranTotalManoObraColombiaDTO, ResumenAvanceDataGranTotalManoObraPeruDTO, ResumenAvanceDataGranTotalPeruDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosAlemaniaDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosColombiaDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosPeruDTO, ResumenAvancePeruDTO, ResumenProcessENTITY, ResumentAvanceDocumentacionHPAlemaniaDTO, ResumentAvanceDocumentacionHPColombiaDTO, ResumentAvanceDocumentacionHPDTO, ResumentAvanceDocumentacionHPPeruDTO, RptProduccionCurso_Baremos_FasesENTITY, SEUpdateAnexosObraRequestBody, SEUpdateAnexosTrabajoRequestBody, STB_DTH_ToaENTITY, STB_DTH_ToaPlanta, STB_DTH_ToaUbicacion, SalidaAlmacenENTITY, ScrapingCredentialENTITY, SegmentoDBDTO, SeguimientoObraDTO, SiNoEnum, SincronizacionPersonalDTO, SistemaDto, SistemaENTITY, SistemaRecurso, SizeDTO, SmartDateTransformer, SocketDTO, SolicitudDto, SomacylEntregablesDTO, SomacylOrderENTITY, StateBantel, StateFibramas, StateInternalOrder, StateInternalOrderClienteWAOO, StateInternalOrderSomacyl, StateInternalOrderTOA, StateInventory, StateMifibra, StateServiceFibramas, StateWin, StatuDto, StockAlmacenENTITY, StockAlmacenEquiposENTITY, StockPersonalENTITY, StockPersonalEquiposENTITY, StockQuantityEmployeeDTO, SubEstadoInternoDTO, SubManoObraDTO$1 as SubManoObraDTO, SummaryDTO, SystemOptionEntity, TOAClaroOrderStockENTITY, TOAOrdenLiquidacionENTITY, TOAOrdenLiquidacionENTITYDB, TOAOrderStockENTITY, TUVESOrdReclMatDescargadoDTO, TUVESOrdReclamosFinDTO, TecnicoValDTO, TerminoPagoDto, ThemeConfigCountryENTITY, TipoActividadMOENTITY, TipoAlmacenDTO, TipoAlmacenENTITY, TipoClaveENTITY, TipoCompraDto, TipoConsumoMaterial, TipoDocumentoDto, TipoDocumentoIdentidadDTO, TipoDocumentoUsuarioDTO, TipoEmpresaDTO, TipoEspecialidadMOENTITY, TipoFamiliaDto, TipoGranFamiliaDto, TipoItemDto, type TipoLiq, TipoMOPCIssueDTO, TipoMOPCMODTO, TipoMiembroGrupoEmpresaDTO, TipoMovilCuadrillaDTO, TipoMovilENTITY, TipoMovimientoAlmacenDTO, TipoMovimientoAlmacenDatosTrabajoDTO, TipoMovimientoAlmacenENTITY, TipoNotificacion, TipoObraENTITY, TipoOpcionDTO, TipoOpcionSistemaENTITY, TipoOperacionDto, TipoProductoDto, TipoSistemaDTO, TipoStockENTITY, TipoStockStockPersonalDTO, TipoStockStockPersonalDatosTrabajoDTO, TipoSubFamiliaDto, type TipoVal, TipoVarianteDto, Tipo_MO, ToaClaroENTITY, ToaSegmentoDBDTO, ToaSegmentoDTO, TotBaremosDTO, TotalGeneralObraAlemaniaDTO, TotalGeneralObraChile9512DTO, TotalGeneralObraChileDTO, TotalGeneralObraColombia9612DTO, TotalGeneralObraColombiaDTO, TotalGeneralObraDTO, TotalGeneralObraPeru9112DTO, TotalGeneralObraPeruDTO, TrabajoAlemaniaENTITY, TrabajoENTITY, TrabajoHechoEnum, TrabajoMacroObraAlemaniaENTITY, TrabajoMacroObraENTITY, TransaccionFoliosENTITY, TransaccionesDTO, TuvesENTITY, TuvesOrdEqFinalizadasDTO, TuvesOrdEqMatDescargadosDTO, TuvesOrderStockENTITY, UOMaterialesBaremoDTO, UOMaterialesExcelDTO, UO_MaterialesENTITY, UbicacionAlmacenDTO, UbicacionBantelDTO, UbicacionDTO, UbicacionMifibraDBDTO, UbicacionObraDTO, UbicacionPresupuestoDTO, UbicacionSomacylDTO, UbicacionTdCDTO, UbicaciontoaDBDTO, UbicaciontoaDTO, UbicacionwinDBDTO, UbicacionwinDTO, Ultima_FaseLiberacionPagosDTO, Ultima_PreLiquidacionAlemaniaDTO, Ultima_PreLiquidacionDTO$1 as Ultima_PreLiquidacionDTO, Ultima_PreLiquidacionTMOAlemaniaDTO, Ultima_asignacionAlemaniaDTO, Ultima_asignacionDTO$1 as Ultima_asignacionDTO, UltimoEstadoClienteDTO, Ultimo_Estado_InternoDTO, Ultimo_Estado_InternoLiberacionPagosDTO, UnidadMedidaDTO, UnidadMedidaENTITY, UnidadMedidaLiberacionPagosDTO, UnidadObraENTITY, UnidadObraMaterialENTITY, UpdateDto, UpdateEstadoInternoObraRequestDTO, UpdateProfileDto, UpdateUltimaFaseFacturacionDTO, UserDto, UserEntity, UsuarioBaremoDTO, UsuarioBitacoraDTO, UsuarioDTO, UsuarioENTITY, UsuarioEdicionDTO, UsuarioID_UsuarioDTO, UsuarioLiqDTO, UsuarioLogisticaDTO, UsuarioRegistrarDTO, UsuariosAutoinventarioENTITY, ValidadoDTO, ValidadoSerieDto, ValidadoUsuarioSerieDto, ValidateJobExistsRequestDTO, ValorizacionAlemaniaDTO, ValorizacionDTO$1 as ValorizacionDTO, ValorizacionManoObraBaseDTO, ValorizacionManoObraDTO, ValorizacionManoObraRegularizacionDTO, ValorizacionPeruTOADTO, ValorizacionSomacylDTO, ValorizacionTMOAlemaniaDTO, ValorizacionesDTO$1 as ValorizacionesDTO, ValorizadaTOAENTITY, ValorizadoPorEstado, ValorizadoPorEstadoPeruDTO, ValorizadoTotalObraColombia9612DTO, ValorizadoTotalObraColombiaDTO, ValorizadoTotalObraDTO, ValorizadoTotalObraPeruDTO, VarianteDTO, VigenciaBaremosDTO, VigenciaDTO, VigenciaIssueDTO, VigenciaKeyDTO, VigenciaOTDTO, VigenciaPCMODTO, WBEDTO, ZonaTrabajoCuadrillaDTO, ZonaTrabajoDTO, ZonaTrabajoENTITY, ZonalesDTO, ZonasDTO, convertStringsToDates, convertTypeNumber, enumToArray, getFirstError, hydrate, latLngDTO, removeUndefined, transformToDateIfEmpty, trimAndUpperCaseString, type typeEstado, type typeEstadoNroDocumento, type typeFuente, type typeTipo, validateAndFormatData, validateArrayBody, validateCustom, validateRequestBody };
|
|
9548
|
+
export { ADM_RM_ZonasActividadENTITY, AcceptedDto, AccesortiosBantelDTO, AccesortiosMifibraDBDTO, ActaFinalCubicacionDTO, ActaFinalCubicacionSharedDTO, ActividadZonasActividadDTO, ActividadesDTO, AddMOPContrataMODTO, AddressListENTITY, AgenciaDTO, AgenciaENTITY, AgenciasDTO, AjusteReprocesoDTO, AlbaranDto, AlmacenDTO, AlmacenDto, AlmacenENTITY, AlmacenExtraENTITY, AlmacenLogisticaDTO, AlmacenRequerimientoDto, AlmacenUsuarioGIADTO, AnexoPreOrdenDto, AnexosDTO, AnexosDetailMantenanceOrderDTO, AprobacionDto, AreaGOMDTO, AreaGOMDatosReferenciaDTO, AreaGOMENTITY, AreaGOMResumenDTO, AreaGOMSubGOMSDTO, AreaGomCentroCostosDTO, AsignacionGomDTO, AsignacionGomDTO_Old, AsignacionRegularizarDTO, AsistenciaENTITY, AtencionOrdenesLiquidadasENTITY, AtiendeBodegaDTO, AttendanceDTO, AttendanceStatus, AuthUserDto, AutoInventarioENTITY, BankVendorDto, BantelENTITY, BaremoAlemaniaENTITY, BaremoProcessENTITY, BaremosAlemaniaENTITY, BaremosChileENTITY, BaremosColombiaENTITY, BaremosTOAChileENTITY, BaremosTOAENTITY, BitacoraAntiguaDTO, BitacoraDTO, BitacoraDeOrdenesDTO, BitacoraDto, BitacoraLiqDTO, BitacoraOpcionSitemaDTO, BodegaENTITY, BodyUpdateFasesDTO, BodyUpdateOne, CHILE_9512_PaquetizadoManoObraENTITY, CHILE_9512_PaquetizadoMaterialENTITY, CabeceraCubicacionColombiaDTO, CabeceraCubicajeAlemaniaDTO, CabeceraCubicajeChileDTO, CabeceraCubicajeDTO, CabeceraCubicajePeruDTO, CalculatePercentsAlemaniaDTO, CalculatePercentsColombiaDTO, CalculatePercentsDTO, CalculatePercentsPeruDTO, CambioEstadoFacturadoRequest, CambioEstadoFaseRequest, CambiosEstadosFaseLiberacionPagosDTO, CargoPersonalENTITY, CategoriaDto, CausacionCubicacionColombiaDTO, CausacionDTO, CentroCostosDTO, CentroCostosENTITY, CertificacionDTO, ChangeStateBaremosDTO, ChileTdCENTITY, ClienteDTO, ClienteTdCDTO, ClienteWAOOENTITY, Cliente_ContratistaDTO, ClosedDto, CodeNameDto, CodeNameMinLengthDto, CodigoDescripcionDTO, type CodigoMovimientoAlmacen, CodigoNombreDTO, CodigoNombreUMDTO, CodigoRazonSocialDTO, CodigoTituloAlemaniaDTO, CodigoTituloColombiaDTO, CodigoTituloDTO, CompanyEntity, ComparativoDto, CondicionDTO, ConsumoMaterialAlemaniaENTITY, ConsumoMaterialENTITY, ConsumosMaterialDTO, ConsumosMaterialExcelDTO, ConsumosP117ENTITY, ContabilizadoDto, ContratistaDTO, ContratistasDTO, Contratistas_PE_DTO, ContratoDTO, ContratoOTDTO, ContratoOTENTITY, ContratoOTGeneralDTO, ContratoOT_PRE_DTO, ContratoOT_ZT_DTO, ContratoObraOTDTO, ContratoPagosENTITY, Contrato_DTO, ConversionLogisticaDTO, CoordenadasDTO, CoordenadasTdCDTO, CorteBobinaStockAlmacenDTO, CosumoMaterialAlemaniaDTO, CotizacionDto, CountryEntity, CrearNavisionpreordenEntityRequestDto, CreateProfileDto, CuadrillaBaremoDTO, CuadrillaDTO, CuadrillaENTITY, CuadrillaLiberacionPagosDTO, CuadrillaRegularizarDTO, CuadrillasDTO, CubicacionAlemaniaAL02ENTITY, CubicacionChile9512ENTITY, CubicacionColombia9612ENTITY, CubicacionENTITY, CubicacionPeru9112ENTITY, CumplimientoDTO, DataAdicionalDTO, DataCatalogoItemDTO, DataChildrenTreeNodes, DataChildrenTreeNodesAlemaniaDTO, DataChildrenTreeNodesColombiaDTO, DataDocumentacionDTO, DataDocumentacionPeruDTO, DataGridTabBusinessHP, DataGridTabBusinessHPPeruDTO, DataGridTabResidentialHP, DataScraperClaroVTRENTITY, DataWithPercentItemAlemaniaDTO, DataWithPercentItemChile, DataWithPercentItemColombiaDTO, DataWithPercentItemPeruDTO, DateDto, DatoUsuarioTipoOpcionDto, DatosAreaPersonalDTO, DatosCatalogoItemDTO, DatosCatalogoMODTO, DatosEmpresaDto, DatosFacturacionDTO, DatosGIADTO, DatosGeneralesDTO, DatosGeneralesPersonalDTO, DatosIssueProduccionDTO, DatosIssueProduccionEmpresaDTO, DatosJefeObraDto, DatosManoObraGlobalDTO, DatosManoObraGlobalDetalleChileDTO, DatosNavDto, DatosPagoDto, DatosPaiDto, DatosPersonalDto, DatosPrecioEspecialidadDTO, DatosPrecioMaterialDTO, DatosReferenciaDTO, DatosTecnicosDTO, DatosTrabajoCatalogoDTO, DatosTrabajoDto, DatosTrabajoRequerimientoDto, DatosTrabajoUsuarioDTO, DatosTransportistaChileDTO, DatosTransportistaDTO, DatosUnidadObraMaterialDTO, DelegacionDTO, DelegacionDto, DelegacionZonalesDTO, DelegationEntity, DeleteBaremoFaseDTO, DestinatarioDTO, DetailMaintenanceOrderDTO, DetalleAlbaranDTO, DetalleAlemaniaDTO, DetalleAtipicaDTO, DetalleAtipicaPeruDTO, DetalleChileAlemaniaObraDTO, DetalleChileChileObraDTO, DetalleChileColombiaObraDTO, DetalleChileDTO$1 as DetalleChileDTO, DetalleChileObraDTO, DetalleChilePeruObraDTO, DetalleChileValorizacionMODTO, DetalleChileValorizacionManoObraRegularizacionDTO, DetalleColombiaDTO, DetalleCotizacionDto, DetalleCubicajeDTO, DetalleDTO, DetalleDto, DetalleManoObraChileDTO, DetalleOrdenRealDTO, DetallePeruDTO, DetallePeruFechasDTO, DetalleProductoDto, DetalleSalidaAlmacenDTO, DevolucionAlmacenENTITY, DireccionDTO, DocumentacionBaremoPexENTITY, DocumentacionPEXENTITY, DocumentoDetalleClienteAlemaniaDTO, DocumentoDetalleClienteColombiaDTO, DocumentoDetalleClienteDTO, DocumentoDetalleClientePeruDTO, DocumentoDetalleNoClienteAlemaniaDTO, DocumentoDetalleNoClienteColombiaDTO, DocumentoDetalleNoClienteDTO, DocumentoDetalleNoClientePeruDTO, DocumentosInicialesDTO, DocumentosInicialesPeruDTO, EECCBantelDTO, EECCClienteWAOODTO, EECCDBMIFIBRADTO, EECCDBTOADTO, EECCDBWINDTO, EECCFibramasDBDTO, EECC_DTO, EFaseObraBaremo, EmisionDto, EmpalmeDTO, EmpresaBaremoDTO, EmpresaDTO, EmpresaENTITY, EmpresaGanadoraDto, EmpresaLiberacionPagosDTO, EmpresaLogisticaDTO, EmpresaPCMODTO, EmpresaPersonalDTO, EmpresaPersonalDatosTrabajoDTO, EmpresaProduccionDTO, EmpresaRegularizarDTO, EmpresaStockPersonalDTO, EmpresaTdCDTO, EmpresaUsuarioDTO, EmpresaValDTO, EmpresaZonasActividadDTO, EncargadoDTO, EncargadoRegularizarDTO, EnviarNavDto, EquipoLogisticaDTO, EquipoSerieDto, EquiposAIDTO, EquiposDTO, EspecialidadDTO, EstadoAntiguoDTO, EstadoDTO, EstadoDePagoDTO, EstadoFaseObraBaremo, EstadoHPListDTO$2 as EstadoHPListDTO, EstadoIntegracionDTO, EstadoInternoDTO, EstadoInternoENTITY, EstadoInternoObraDTO, EstadoInternoWithoutSubstateDTO, type EstadoLiq, EstadoLiqDTO, EstadoNotificacion, EstadoProcesoValPeru, EstadoProcesoValPeruDTO, EstadoProcesoValSomacyl, EstadoProcesoValSomacylDTO, EstadoSerieDto, type EstadoVal, Estado_Model_MO, EstadosTuvesEnum, FacturaDto, FacturaGeneradaDTO, FacturacionDTO, FamiliaItemDTO, FaseDTO, FaseENTITY, FasePagoDTO, FasesObraBaremoDTO, FasesType, FechaDTO, FechaEntregaDto, FechaVigenciaBaremosDTO, FechaVigenciaPCMODTO, FechasDTO, FechasValorizacionBaremoDTO, FileDto, FilesDocDTO, FlagsDTO, FlujoDocDTO, FlujoDto, ForceString, ForgotPasswordDto, FormaPagoDto, FotoDTO, FotosDTO, FotosDetailMaintenanceDTO, FotosSSTDTO, GOMDTO, GemeindeENTITY, GomENTITY, GomNovedadesDTO, GomNovedadesTipoNovedadDTO, GranFamiliaItemDTO, GranFamiliaItemENTITY, GrupoEmpresaDTO, HPListAsignacionDTO, HPListDTO, HistorialCubicacionDTO, HistorialEstadosBantelDTO, HistorialEstadosMifibraDBDTO, HistorialEstadoswinDBDTO, HistorialEstadoswinDTO, HistoricoDTO, HistoricoEmpresasDTO, HitoDTO, HomePassDTO$1 as HomePassDTO, IDataSheetCoordenadas, IDataSheetLineasTdC, IDataSheetMateriales, IDataSheetMedidores, IDataSheetTdC, IDataSheetTiemposCumplimentados, ISheetsJsonChileTdC, IconoDto, ImgLogoNavBarDTO, ImporteDto, IncidenciasAlemaniaDTO, IncidenciasChileDTO, IncidenciasColombiaDTO, IncidenciasDTO, IncidenciasPeruDTO, IngresoAlmacenENTITY, InventarioDTO, InventarioExistenteDTO, InventarioLiqDTO, InventarioValDTO, IssueENTITY, ItemCantidadesDTO, ItemDTO, ItemDetalleLogisticaDTO, ItemDetallePMDTO, ItemENTITY, ItemEspañaENTITY, ItemExtraENTITY, ItemLogisticaDTO, ItemsOrdenDTO, ItemsOrdenScraperClaroVTRDTO, JobMacroByGemeindeRequestDTO, KCMActividadDTO, KeyDTO, KeyIntegracionENTITY, KitConsumoMaterialENTITY, LiberacionDePagosAlemaniaENTITY, LiquidadaTOAENTITY, ListaCapacidadesCableDTO, LogAlmacenDTO, LogDTO, LogModificarDTO, LogRegisterDTO, LoginDto, LoteDTO$1 as LoteDTO, MOBaremoDTO, MOChileVigenciaDTO, MacroObraAlemaniaENTITY, MacroObraChileENTITY, MacroObraColombiaENTITY, MacroObraENTITY, MacroObraPeruENTITY, MailStructureENTITY, ManoObraAlemaniaENTITY, ManoObraBaremoDTO, ManoObraBaremoENTITY, ManoObraBaremoProduccionDTO, ManoObraBaseENTITY, ManoObraENTITY, ManoObraGlobalDTO, ManoObraGlobalENTITY, ManoObraGlobalPCIssueAlemaniaAL02DTO, ManoObraGlobalPCIssueDTO, ManoObraGlobalPCMOAlemaniaAL02DTO, ManoObraGlobalPCMODTO, ManoObraGlobalPCMOEspania1729DTO, ManoObraLiberacionPagosDTO, ManoObraMttoENTITY, ManoObraPorUnidadObraENTITY, MarcaDTO, MaterialAmapDTO, MaterialAmapMODTO, MaterialCubicacionColombiaDTO, MaterialCubicacionPeruDTO, MaterialLogisticaDTO, MaterialMOGlobalDTO, MaterialUtilizadoRetiradoBaremoDTO, MaterialesBantelDTO, MaterialesClaroDTO, MaterialesClienteWAOODTO, MaterialesConsumoDTO, MaterialesCubicacionDTO, MaterialesDTO$1 as MaterialesDTO, MaterialesFibramasDBDTO, MaterialesFibramasDTO, MaterialesMifibraDBDTO, MaterialesSomacylDTO, MaterialestoaDBDTO, MaterialestoaDTO, MaterialeswinDBDTO, MaterialeswinDTO, MateterialesTuvesDTO, MedidorDTO, type MenuDto, MetadataUOMaterialDTO, MiFibraENTITYDB, ModelMOSQLPeruENTITY, ModelObraSQLPeruENTITY, ModeloDTO, MonedaDto, MovimientoAlmacenDTO, MovimientoAlmacenENTITY, MovimientoDto, MovimientosRecepcionDto, NavDto, NavisionBitacoraFileDto, NavisionDateRegistryDto, NavisionMovimientoAlmacenDTO, NavisionPersonalLogisticaDTO, NavisionRegistryDateDto, NavisionUserRegistryDto, NavisionpreordenEntity, NodoDocDTO, NombreDescripcionDTO, NotasDTO, NotificacionesENTITY, OTBYESPECIALIDADGEMEINDEENTITY, OTDTO, OTENTITY, OTGlobalDTO, OTGlobalENTITY, ObraAlemaniaAL02ENTITY, ObraAlemaniaAL04ENTITY, ObraChile9512ENTITY, ObraColombia9612ENTITY, ObraENTITY, ObraPeru9112ENTITY, OnnetFibraENTITY, OpcionSistemaENTITY, OperacionDTO, OperacionDataAdicional, OptionCatalogoDTO, OrdReclMatDescargadoDTO, OrdenDetailMaintenanceDTO, OrdenDto, OrdenesInstalacionDTO, OrderStockENTITY, OrderStockStoreENTITY, OrigenCUB, OtDto, PBbyMaterialQuantitiesDTO, PBbyMaterialQuantitiesSomacylDTO, PagosECBaremoDTO, PagosECDTO, PaisStockPersonalDTO, ParteDiarioDTO, PasosDTO, type PayloadTokenDTO, PayloadTokenDto, PedidoCompraDto, PerfilesENTITY, PeriodoBaremoDTO, PeriodoDTO$2 as PeriodoDTO, PeriodoENTITY, PeriodoLiberacionPagosDTO, PermisosAppDTO, PermisosAppENTITY, PersonalCuadrillaDTO, PersonalDTO, PersonalENTITY, PersonalLogisticaDTO$1 as PersonalLogisticaDTO, PersonalTOADTO, PersonalTrabajoDTO, Peru9112FibramasENTITY, Peru9112FibramasENTITYDB, Peru9112TOAENTITY, Peru9112TOAENTITYDB, Peru9112WinENTITY, Peru9112WinENTITYDB, PlantaDBDTO, PlantaDTO, PlantaSomacylDTO, PreAcceptedDto, PrecioActualDTO, PrecioAgencia_mam_onnetENTITY, PrecioContratistaIssueAL02ENTITY, PrecioContratistaIssueENTITY, PrecioContratistaMOAL02ENTITY, PrecioContratistaMOAL04ENTITY, PrecioContratistaMOENTITY, PrecioContratistaMOESPANIA1729ENTITY, PrecioContratistaMaterialENTITY, PrecioDTO, PrecioEmpresaDTO, PrecioEspecialidadENTITY, PrecioManoObraENTITY, PrecioMaterialENTITY, PrecioTrabajoDTO, PrecioUOMaterialesDTO, PreciosVigentesDTO, PresupuestadoTotalObraAlemaniaDTO, PresupuestadoTotalObraChilaDTO, PresupuestadoTotalObraColombiaDTO, PresupuestadoTotalObraDTO, PresupuestadoTotalObraEmpresaAlemaniaDTO, PresupuestadoTotalObraEmpresaChileDTO, PresupuestadoTotalObraEmpresaColombiaDTO, PresupuestadoTotalObraEmpresaCuadrillaAlemaniaDTO, PresupuestadoTotalObraEmpresaCuadrillaChileDTO, PresupuestadoTotalObraEmpresaCuadrillaColombiaDTO, PresupuestadoTotalObraEmpresaCuadrillaDTO, PresupuestadoTotalObraEmpresaCuadrillaPeruDTO, PresupuestadoTotalObraEmpresaDTO, PresupuestadoTotalObraEmpresaPeruDTO, PresupuestadoTotalObraPeruDTO, PresupuestoDTO, PresupuestoOTENTITY, PrioridadNotificacion, ProcedenciaDto, ProdCursoBaremoFasesCuadrillaDTO, ProdCursoBaremoFasesManoObraDTO, ProdCursoBaremoFasesPeriodoDTO, ProdCursoBaremoFasesUltimaFaseDTO, ProdCursoBaremoFasesUltimoEstadoInternoDTO, ProduccionDTO, ProductoDto, ProductosServiciosContratadoDBDTO, ProductosServiciosContratadoDTO, ProductosServiciosContratadoSomacylDTO, ProductosServiciosLiqDTO, ProductosServiciosValDTO, ProfileDTO, ProfileDto, ProfileEntity, RM_ActividadENTITY, RM_ComunaENTITY, RM_ManoObraENTITY, RM_MaterialENTITY, RM_PaquetizadoENTITY, RM_ZonasActividadENTITY, RawLiqPenBantelDTO, RawLiqPenDTO, RawParteDiarioBantelDTO, RawParteDiarioDTO, ReasonNoFinalizedSomacyl, RecepcionDto, ReclamosDistribuidorDTO, RecursosPersonalDTO, RegistroAudioDTO, RegistryDto, RegularizacionPositivaNegativaDTO, RegularizarObraJobRequestDTO, RepresentanteLegalDTO, RequeridoEnum, RequerimientoDto, RequestDataMigrationDTO, RequestNumberTTLENTITY, ReservaENTITY, ReservaManoObraRegularizacionENTITY, ResetPasswordDto, ResponseSignInDto, ResultadoDTO, ResumemENTITY, ResumenAvanceAlemaniaDTO, ResumenAvanceChileDTO, ResumenAvanceColombiaDTO, ResumenAvanceDataDocumentacionAlemaniaDTO, ResumenAvanceDataDocumentacionColombiaDTO, ResumenAvanceDataDocumentacionDTO, ResumenAvanceDataDocumentacionDataGroupToDrawAlemaniaDTO, ResumenAvanceDataDocumentacionDataGroupToDrawColombiaDTO, ResumenAvanceDataDocumentacionDataWithPercentsAlemaniaDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesAlemaniaDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesChileDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesColombiaDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesPeruDTO, ResumenAvanceDataDocumentacionDataWithPercentsChile, ResumenAvanceDataDocumentacionDataWithPercentsColombiaDTO, ResumenAvanceDataDocumentacionDataWithPercentsPeruDTO, ResumenAvanceDataDocumentacionPeruDTO, ResumenAvanceDataGranTotal, ResumenAvanceDataGranTotalAlemaniaDTO, ResumenAvanceDataGranTotalColombiaDTO, ResumenAvanceDataGranTotalEmpresasAlemaniaDTO, ResumenAvanceDataGranTotalEmpresasChileDTO, ResumenAvanceDataGranTotalEmpresasColombiaDTO, ResumenAvanceDataGranTotalEmpresasPeruDTO, ResumenAvanceDataGranTotalManoObraAlemaniaDTO, ResumenAvanceDataGranTotalManoObraCHILEDTO, ResumenAvanceDataGranTotalManoObraColombiaDTO, ResumenAvanceDataGranTotalManoObraPeruDTO, ResumenAvanceDataGranTotalPeruDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosAlemaniaDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosColombiaDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosPeruDTO, ResumenAvancePeruDTO, ResumenProcessENTITY, ResumentAvanceDocumentacionHPAlemaniaDTO, ResumentAvanceDocumentacionHPColombiaDTO, ResumentAvanceDocumentacionHPDTO, ResumentAvanceDocumentacionHPPeruDTO, RptProduccionCurso_Baremos_FasesENTITY, SEUpdateAnexosObraRequestBody, SEUpdateAnexosTrabajoRequestBody, STB_DTH_ToaENTITY, STB_DTH_ToaPlanta, STB_DTH_ToaUbicacion, SalidaAlmacenENTITY, ScrapingCredentialENTITY, SegmentoDBDTO, SeguimientoObraDTO, SiNoEnum, SincronizacionPersonalDTO, SistemaDto, SistemaENTITY, SistemaRecurso, SizeDTO, SmartDateTransformer, SocketDTO, SolicitudDto, SomacylEntregablesDTO, SomacylOrderENTITY, StateBantel, StateFibramas, StateInternalOrder, StateInternalOrderClienteWAOO, StateInternalOrderSomacyl, StateInternalOrderTOA, StateInventory, StateMifibra, StateServiceFibramas, StateWin, StatuDto, StockAlmacenENTITY, StockAlmacenEquiposENTITY, StockPersonalENTITY, StockPersonalEquiposENTITY, StockQuantityEmployeeDTO, SubEstadoInternoDTO, SubManoObraDTO$1 as SubManoObraDTO, SummaryDTO, SystemOptionEntity, TOAClaroOrderStockENTITY, TOAOrdenLiquidacionENTITY, TOAOrdenLiquidacionENTITYDB, TOAOrderStockENTITY, TUVESOrdReclMatDescargadoDTO, TUVESOrdReclamosFinDTO, TecnicoValDTO, TerminoPagoDto, ThemeConfigCountryENTITY, TipoActividadMOENTITY, TipoAlmacenDTO, TipoAlmacenENTITY, TipoClaveENTITY, TipoCompraDto, TipoConsumoMaterial, TipoDocumentoDto, TipoDocumentoIdentidadDTO, TipoDocumentoUsuarioDTO, TipoEmpresaDTO, TipoEspecialidadMOENTITY, TipoFamiliaDto, TipoGranFamiliaDto, TipoItemDto, type TipoLiq, TipoMOPCIssueDTO, TipoMOPCMODTO, TipoMiembroGrupoEmpresaDTO, TipoMovilCuadrillaDTO, TipoMovilENTITY, TipoMovimientoAlmacenDTO, TipoMovimientoAlmacenDatosTrabajoDTO, TipoMovimientoAlmacenENTITY, TipoNotificacion, TipoObraENTITY, TipoOpcionDTO, TipoOpcionSistemaENTITY, TipoOperacionDto, TipoProductoDto, TipoSistemaDTO, TipoStockENTITY, TipoStockStockPersonalDTO, TipoStockStockPersonalDatosTrabajoDTO, TipoSubFamiliaDto, type TipoVal, TipoVarianteDto, Tipo_MO, ToaClaroENTITY, ToaSegmentoDBDTO, ToaSegmentoDTO, TotBaremosDTO, TotalGeneralObraAlemaniaDTO, TotalGeneralObraChile9512DTO, TotalGeneralObraChileDTO, TotalGeneralObraColombia9612DTO, TotalGeneralObraColombiaDTO, TotalGeneralObraDTO, TotalGeneralObraPeru9112DTO, TotalGeneralObraPeruDTO, TrabajoAlemaniaENTITY, TrabajoENTITY, TrabajoHechoEnum, TrabajoMacroObraAlemaniaENTITY, TrabajoMacroObraENTITY, TransaccionFoliosENTITY, TransaccionesDTO, TuvesENTITY, TuvesOrdEqFinalizadasDTO, TuvesOrdEqMatDescargadosDTO, TuvesOrderStockENTITY, UOMaterialesBaremoDTO, UOMaterialesExcelDTO, UO_MaterialesENTITY, UbicacionAlmacenDTO, UbicacionBantelDTO, UbicacionDTO, UbicacionMifibraDBDTO, UbicacionObraDTO, UbicacionPresupuestoDTO, UbicacionSomacylDTO, UbicacionTdCDTO, UbicaciontoaDBDTO, UbicaciontoaDTO, UbicacionwinDBDTO, UbicacionwinDTO, Ultima_FaseLiberacionPagosDTO, Ultima_PreLiquidacionAlemaniaDTO, Ultima_PreLiquidacionDTO$1 as Ultima_PreLiquidacionDTO, Ultima_PreLiquidacionTMOAlemaniaDTO, Ultima_asignacionAlemaniaDTO, Ultima_asignacionDTO$1 as Ultima_asignacionDTO, UltimoEstadoClienteDTO, Ultimo_Estado_InternoDTO, Ultimo_Estado_InternoLiberacionPagosDTO, UnidadMedidaDTO, UnidadMedidaENTITY, UnidadMedidaLiberacionPagosDTO, UnidadObraENTITY, UnidadObraMaterialENTITY, UpdateDto, UpdateEstadoInternoObraRequestDTO, UpdateProfileDto, UpdateUltimaFaseFacturacionDTO, UserDto, UserEntity, UsuarioBaremoDTO, UsuarioBitacoraDTO, UsuarioDTO, UsuarioENTITY, UsuarioEdicionDTO, UsuarioID_UsuarioDTO, UsuarioLiqDTO, UsuarioLogisticaDTO, UsuarioRegistrarDTO, UsuariosAutoinventarioENTITY, ValidadoDTO, ValidadoSerieDto, ValidadoUsuarioSerieDto, ValidateJobExistsRequestDTO, ValorizacionAlemaniaDTO, ValorizacionDTO$1 as ValorizacionDTO, ValorizacionManoObraBaseDTO, ValorizacionManoObraDTO, ValorizacionManoObraRegularizacionDTO, ValorizacionPeruTOADTO, ValorizacionSomacylDTO, ValorizacionTMOAlemaniaDTO, ValorizacionesDTO$1 as ValorizacionesDTO, ValorizadaTOAENTITY, ValorizadoPorEstado, ValorizadoPorEstadoPeruDTO, ValorizadoTotalObraColombia9612DTO, ValorizadoTotalObraColombiaDTO, ValorizadoTotalObraDTO, ValorizadoTotalObraPeruDTO, VarianteDTO, VigenciaBaremosDTO, VigenciaDTO, VigenciaIssueDTO, VigenciaKeyDTO, VigenciaOTDTO, VigenciaPCMODTO, WBEDTO, ZonaTrabajoCuadrillaDTO, ZonaTrabajoDTO, ZonaTrabajoENTITY, ZonalesDTO, ZonasDTO, convertStringsToDates, convertTypeNumber, enumToArray, getFirstError, hydrate, latLngDTO, removeUndefined, transformToDateIfEmpty, trimAndUpperCaseString, type typeEstado, type typeEstadoNroDocumento, type typeFuente, type typeTipo, validateAndFormatData, validateArrayBody, validateCustom, validateRequestBody };
|
package/dist/index.d.ts
CHANGED
|
@@ -9493,6 +9493,24 @@ declare class CountryEntity extends BaseEntity {
|
|
|
9493
9493
|
name: string;
|
|
9494
9494
|
}
|
|
9495
9495
|
|
|
9496
|
+
declare enum CompanyType {
|
|
9497
|
+
OPERATIVA = "Operativa",
|
|
9498
|
+
PROVEEDOR = "Proveedor"
|
|
9499
|
+
}
|
|
9500
|
+
|
|
9501
|
+
declare class CompanyEntity extends BaseEntity {
|
|
9502
|
+
companyType: CompanyType;
|
|
9503
|
+
identification: string;
|
|
9504
|
+
code: string;
|
|
9505
|
+
legalName: string;
|
|
9506
|
+
tradeName: string;
|
|
9507
|
+
isOwn: boolean;
|
|
9508
|
+
address: string;
|
|
9509
|
+
emails: string[];
|
|
9510
|
+
phones: string[];
|
|
9511
|
+
delegationIds: string[];
|
|
9512
|
+
}
|
|
9513
|
+
|
|
9496
9514
|
interface MenuDto {
|
|
9497
9515
|
id: string;
|
|
9498
9516
|
label: string;
|
|
@@ -9527,4 +9545,4 @@ interface ValidateRequestBodyOptions<T extends object> {
|
|
|
9527
9545
|
}
|
|
9528
9546
|
declare function validateRequestBody<T extends object>({ dtoClass, BadRequestException, groups }: ValidateRequestBodyOptions<T>, req: Request, _res: Response, next: NextFunction): Promise<void>;
|
|
9529
9547
|
|
|
9530
|
-
export { ADM_RM_ZonasActividadENTITY, AcceptedDto, AccesortiosBantelDTO, AccesortiosMifibraDBDTO, ActaFinalCubicacionDTO, ActaFinalCubicacionSharedDTO, ActividadZonasActividadDTO, ActividadesDTO, AddMOPContrataMODTO, AddressListENTITY, AgenciaDTO, AgenciaENTITY, AgenciasDTO, AjusteReprocesoDTO, AlbaranDto, AlmacenDTO, AlmacenDto, AlmacenENTITY, AlmacenExtraENTITY, AlmacenLogisticaDTO, AlmacenRequerimientoDto, AlmacenUsuarioGIADTO, AnexoPreOrdenDto, AnexosDTO, AnexosDetailMantenanceOrderDTO, AprobacionDto, AreaGOMDTO, AreaGOMDatosReferenciaDTO, AreaGOMENTITY, AreaGOMResumenDTO, AreaGOMSubGOMSDTO, AreaGomCentroCostosDTO, AsignacionGomDTO, AsignacionGomDTO_Old, AsignacionRegularizarDTO, AsistenciaENTITY, AtencionOrdenesLiquidadasENTITY, AtiendeBodegaDTO, AttendanceDTO, AttendanceStatus, AuthUserDto, AutoInventarioENTITY, BankVendorDto, BantelENTITY, BaremoAlemaniaENTITY, BaremoProcessENTITY, BaremosAlemaniaENTITY, BaremosChileENTITY, BaremosColombiaENTITY, BaremosTOAChileENTITY, BaremosTOAENTITY, BitacoraAntiguaDTO, BitacoraDTO, BitacoraDeOrdenesDTO, BitacoraDto, BitacoraLiqDTO, BitacoraOpcionSitemaDTO, BodegaENTITY, BodyUpdateFasesDTO, BodyUpdateOne, CHILE_9512_PaquetizadoManoObraENTITY, CHILE_9512_PaquetizadoMaterialENTITY, CabeceraCubicacionColombiaDTO, CabeceraCubicajeAlemaniaDTO, CabeceraCubicajeChileDTO, CabeceraCubicajeDTO, CabeceraCubicajePeruDTO, CalculatePercentsAlemaniaDTO, CalculatePercentsColombiaDTO, CalculatePercentsDTO, CalculatePercentsPeruDTO, CambioEstadoFacturadoRequest, CambioEstadoFaseRequest, CambiosEstadosFaseLiberacionPagosDTO, CargoPersonalENTITY, CategoriaDto, CausacionCubicacionColombiaDTO, CausacionDTO, CentroCostosDTO, CentroCostosENTITY, CertificacionDTO, ChangeStateBaremosDTO, ChileTdCENTITY, ClienteDTO, ClienteTdCDTO, ClienteWAOOENTITY, Cliente_ContratistaDTO, ClosedDto, CodeNameDto, CodeNameMinLengthDto, CodigoDescripcionDTO, type CodigoMovimientoAlmacen, CodigoNombreDTO, CodigoNombreUMDTO, CodigoRazonSocialDTO, CodigoTituloAlemaniaDTO, CodigoTituloColombiaDTO, CodigoTituloDTO, ComparativoDto, CondicionDTO, ConsumoMaterialAlemaniaENTITY, ConsumoMaterialENTITY, ConsumosMaterialDTO, ConsumosMaterialExcelDTO, ConsumosP117ENTITY, ContabilizadoDto, ContratistaDTO, ContratistasDTO, Contratistas_PE_DTO, ContratoDTO, ContratoOTDTO, ContratoOTENTITY, ContratoOTGeneralDTO, ContratoOT_PRE_DTO, ContratoOT_ZT_DTO, ContratoObraOTDTO, ContratoPagosENTITY, Contrato_DTO, ConversionLogisticaDTO, CoordenadasDTO, CoordenadasTdCDTO, CorteBobinaStockAlmacenDTO, CosumoMaterialAlemaniaDTO, CotizacionDto, CountryEntity, CrearNavisionpreordenEntityRequestDto, CreateProfileDto, CuadrillaBaremoDTO, CuadrillaDTO, CuadrillaENTITY, CuadrillaLiberacionPagosDTO, CuadrillaRegularizarDTO, CuadrillasDTO, CubicacionAlemaniaAL02ENTITY, CubicacionChile9512ENTITY, CubicacionColombia9612ENTITY, CubicacionENTITY, CubicacionPeru9112ENTITY, CumplimientoDTO, DataAdicionalDTO, DataCatalogoItemDTO, DataChildrenTreeNodes, DataChildrenTreeNodesAlemaniaDTO, DataChildrenTreeNodesColombiaDTO, DataDocumentacionDTO, DataDocumentacionPeruDTO, DataGridTabBusinessHP, DataGridTabBusinessHPPeruDTO, DataGridTabResidentialHP, DataScraperClaroVTRENTITY, DataWithPercentItemAlemaniaDTO, DataWithPercentItemChile, DataWithPercentItemColombiaDTO, DataWithPercentItemPeruDTO, DateDto, DatoUsuarioTipoOpcionDto, DatosAreaPersonalDTO, DatosCatalogoItemDTO, DatosCatalogoMODTO, DatosEmpresaDto, DatosFacturacionDTO, DatosGIADTO, DatosGeneralesDTO, DatosGeneralesPersonalDTO, DatosIssueProduccionDTO, DatosIssueProduccionEmpresaDTO, DatosJefeObraDto, DatosManoObraGlobalDTO, DatosManoObraGlobalDetalleChileDTO, DatosNavDto, DatosPagoDto, DatosPaiDto, DatosPersonalDto, DatosPrecioEspecialidadDTO, DatosPrecioMaterialDTO, DatosReferenciaDTO, DatosTecnicosDTO, DatosTrabajoCatalogoDTO, DatosTrabajoDto, DatosTrabajoRequerimientoDto, DatosTrabajoUsuarioDTO, DatosTransportistaChileDTO, DatosTransportistaDTO, DatosUnidadObraMaterialDTO, DelegacionDTO, DelegacionDto, DelegacionZonalesDTO, DelegationEntity, DeleteBaremoFaseDTO, DestinatarioDTO, DetailMaintenanceOrderDTO, DetalleAlbaranDTO, DetalleAlemaniaDTO, DetalleAtipicaDTO, DetalleAtipicaPeruDTO, DetalleChileAlemaniaObraDTO, DetalleChileChileObraDTO, DetalleChileColombiaObraDTO, DetalleChileDTO$1 as DetalleChileDTO, DetalleChileObraDTO, DetalleChilePeruObraDTO, DetalleChileValorizacionMODTO, DetalleChileValorizacionManoObraRegularizacionDTO, DetalleColombiaDTO, DetalleCotizacionDto, DetalleCubicajeDTO, DetalleDTO, DetalleDto, DetalleManoObraChileDTO, DetalleOrdenRealDTO, DetallePeruDTO, DetallePeruFechasDTO, DetalleProductoDto, DetalleSalidaAlmacenDTO, DevolucionAlmacenENTITY, DireccionDTO, DocumentacionBaremoPexENTITY, DocumentacionPEXENTITY, DocumentoDetalleClienteAlemaniaDTO, DocumentoDetalleClienteColombiaDTO, DocumentoDetalleClienteDTO, DocumentoDetalleClientePeruDTO, DocumentoDetalleNoClienteAlemaniaDTO, DocumentoDetalleNoClienteColombiaDTO, DocumentoDetalleNoClienteDTO, DocumentoDetalleNoClientePeruDTO, DocumentosInicialesDTO, DocumentosInicialesPeruDTO, EECCBantelDTO, EECCClienteWAOODTO, EECCDBMIFIBRADTO, EECCDBTOADTO, EECCDBWINDTO, EECCFibramasDBDTO, EECC_DTO, EFaseObraBaremo, EmisionDto, EmpalmeDTO, EmpresaBaremoDTO, EmpresaDTO, EmpresaENTITY, EmpresaGanadoraDto, EmpresaLiberacionPagosDTO, EmpresaLogisticaDTO, EmpresaPCMODTO, EmpresaPersonalDTO, EmpresaPersonalDatosTrabajoDTO, EmpresaProduccionDTO, EmpresaRegularizarDTO, EmpresaStockPersonalDTO, EmpresaTdCDTO, EmpresaUsuarioDTO, EmpresaValDTO, EmpresaZonasActividadDTO, EncargadoDTO, EncargadoRegularizarDTO, EnviarNavDto, EquipoLogisticaDTO, EquipoSerieDto, EquiposAIDTO, EquiposDTO, EspecialidadDTO, EstadoAntiguoDTO, EstadoDTO, EstadoDePagoDTO, EstadoFaseObraBaremo, EstadoHPListDTO$2 as EstadoHPListDTO, EstadoIntegracionDTO, EstadoInternoDTO, EstadoInternoENTITY, EstadoInternoObraDTO, EstadoInternoWithoutSubstateDTO, type EstadoLiq, EstadoLiqDTO, EstadoNotificacion, EstadoProcesoValPeru, EstadoProcesoValPeruDTO, EstadoProcesoValSomacyl, EstadoProcesoValSomacylDTO, EstadoSerieDto, type EstadoVal, Estado_Model_MO, EstadosTuvesEnum, FacturaDto, FacturaGeneradaDTO, FacturacionDTO, FamiliaItemDTO, FaseDTO, FaseENTITY, FasePagoDTO, FasesObraBaremoDTO, FasesType, FechaDTO, FechaEntregaDto, FechaVigenciaBaremosDTO, FechaVigenciaPCMODTO, FechasDTO, FechasValorizacionBaremoDTO, FileDto, FilesDocDTO, FlagsDTO, FlujoDocDTO, FlujoDto, ForceString, ForgotPasswordDto, FormaPagoDto, FotoDTO, FotosDTO, FotosDetailMaintenanceDTO, FotosSSTDTO, GOMDTO, GemeindeENTITY, GomENTITY, GomNovedadesDTO, GomNovedadesTipoNovedadDTO, GranFamiliaItemDTO, GranFamiliaItemENTITY, GrupoEmpresaDTO, HPListAsignacionDTO, HPListDTO, HistorialCubicacionDTO, HistorialEstadosBantelDTO, HistorialEstadosMifibraDBDTO, HistorialEstadoswinDBDTO, HistorialEstadoswinDTO, HistoricoDTO, HistoricoEmpresasDTO, HitoDTO, HomePassDTO$1 as HomePassDTO, IDataSheetCoordenadas, IDataSheetLineasTdC, IDataSheetMateriales, IDataSheetMedidores, IDataSheetTdC, IDataSheetTiemposCumplimentados, ISheetsJsonChileTdC, IconoDto, ImgLogoNavBarDTO, ImporteDto, IncidenciasAlemaniaDTO, IncidenciasChileDTO, IncidenciasColombiaDTO, IncidenciasDTO, IncidenciasPeruDTO, IngresoAlmacenENTITY, InventarioDTO, InventarioExistenteDTO, InventarioLiqDTO, InventarioValDTO, IssueENTITY, ItemCantidadesDTO, ItemDTO, ItemDetalleLogisticaDTO, ItemDetallePMDTO, ItemENTITY, ItemEspañaENTITY, ItemExtraENTITY, ItemLogisticaDTO, ItemsOrdenDTO, ItemsOrdenScraperClaroVTRDTO, JobMacroByGemeindeRequestDTO, KCMActividadDTO, KeyDTO, KeyIntegracionENTITY, KitConsumoMaterialENTITY, LiberacionDePagosAlemaniaENTITY, LiquidadaTOAENTITY, ListaCapacidadesCableDTO, LogAlmacenDTO, LogDTO, LogModificarDTO, LogRegisterDTO, LoginDto, LoteDTO$1 as LoteDTO, MOBaremoDTO, MOChileVigenciaDTO, MacroObraAlemaniaENTITY, MacroObraChileENTITY, MacroObraColombiaENTITY, MacroObraENTITY, MacroObraPeruENTITY, MailStructureENTITY, ManoObraAlemaniaENTITY, ManoObraBaremoDTO, ManoObraBaremoENTITY, ManoObraBaremoProduccionDTO, ManoObraBaseENTITY, ManoObraENTITY, ManoObraGlobalDTO, ManoObraGlobalENTITY, ManoObraGlobalPCIssueAlemaniaAL02DTO, ManoObraGlobalPCIssueDTO, ManoObraGlobalPCMOAlemaniaAL02DTO, ManoObraGlobalPCMODTO, ManoObraGlobalPCMOEspania1729DTO, ManoObraLiberacionPagosDTO, ManoObraMttoENTITY, ManoObraPorUnidadObraENTITY, MarcaDTO, MaterialAmapDTO, MaterialAmapMODTO, MaterialCubicacionColombiaDTO, MaterialCubicacionPeruDTO, MaterialLogisticaDTO, MaterialMOGlobalDTO, MaterialUtilizadoRetiradoBaremoDTO, MaterialesBantelDTO, MaterialesClaroDTO, MaterialesClienteWAOODTO, MaterialesConsumoDTO, MaterialesCubicacionDTO, MaterialesDTO$1 as MaterialesDTO, MaterialesFibramasDBDTO, MaterialesFibramasDTO, MaterialesMifibraDBDTO, MaterialesSomacylDTO, MaterialestoaDBDTO, MaterialestoaDTO, MaterialeswinDBDTO, MaterialeswinDTO, MateterialesTuvesDTO, MedidorDTO, type MenuDto, MetadataUOMaterialDTO, MiFibraENTITYDB, ModelMOSQLPeruENTITY, ModelObraSQLPeruENTITY, ModeloDTO, MonedaDto, MovimientoAlmacenDTO, MovimientoAlmacenENTITY, MovimientoDto, MovimientosRecepcionDto, NavDto, NavisionBitacoraFileDto, NavisionDateRegistryDto, NavisionMovimientoAlmacenDTO, NavisionPersonalLogisticaDTO, NavisionRegistryDateDto, NavisionUserRegistryDto, NavisionpreordenEntity, NodoDocDTO, NombreDescripcionDTO, NotasDTO, NotificacionesENTITY, OTBYESPECIALIDADGEMEINDEENTITY, OTDTO, OTENTITY, OTGlobalDTO, OTGlobalENTITY, ObraAlemaniaAL02ENTITY, ObraAlemaniaAL04ENTITY, ObraChile9512ENTITY, ObraColombia9612ENTITY, ObraENTITY, ObraPeru9112ENTITY, OnnetFibraENTITY, OpcionSistemaENTITY, OperacionDTO, OperacionDataAdicional, OptionCatalogoDTO, OrdReclMatDescargadoDTO, OrdenDetailMaintenanceDTO, OrdenDto, OrdenesInstalacionDTO, OrderStockENTITY, OrderStockStoreENTITY, OrigenCUB, OtDto, PBbyMaterialQuantitiesDTO, PBbyMaterialQuantitiesSomacylDTO, PagosECBaremoDTO, PagosECDTO, PaisStockPersonalDTO, ParteDiarioDTO, PasosDTO, type PayloadTokenDTO, PayloadTokenDto, PedidoCompraDto, PerfilesENTITY, PeriodoBaremoDTO, PeriodoDTO$2 as PeriodoDTO, PeriodoENTITY, PeriodoLiberacionPagosDTO, PermisosAppDTO, PermisosAppENTITY, PersonalCuadrillaDTO, PersonalDTO, PersonalENTITY, PersonalLogisticaDTO$1 as PersonalLogisticaDTO, PersonalTOADTO, PersonalTrabajoDTO, Peru9112FibramasENTITY, Peru9112FibramasENTITYDB, Peru9112TOAENTITY, Peru9112TOAENTITYDB, Peru9112WinENTITY, Peru9112WinENTITYDB, PlantaDBDTO, PlantaDTO, PlantaSomacylDTO, PreAcceptedDto, PrecioActualDTO, PrecioAgencia_mam_onnetENTITY, PrecioContratistaIssueAL02ENTITY, PrecioContratistaIssueENTITY, PrecioContratistaMOAL02ENTITY, PrecioContratistaMOAL04ENTITY, PrecioContratistaMOENTITY, PrecioContratistaMOESPANIA1729ENTITY, PrecioContratistaMaterialENTITY, PrecioDTO, PrecioEmpresaDTO, PrecioEspecialidadENTITY, PrecioManoObraENTITY, PrecioMaterialENTITY, PrecioTrabajoDTO, PrecioUOMaterialesDTO, PreciosVigentesDTO, PresupuestadoTotalObraAlemaniaDTO, PresupuestadoTotalObraChilaDTO, PresupuestadoTotalObraColombiaDTO, PresupuestadoTotalObraDTO, PresupuestadoTotalObraEmpresaAlemaniaDTO, PresupuestadoTotalObraEmpresaChileDTO, PresupuestadoTotalObraEmpresaColombiaDTO, PresupuestadoTotalObraEmpresaCuadrillaAlemaniaDTO, PresupuestadoTotalObraEmpresaCuadrillaChileDTO, PresupuestadoTotalObraEmpresaCuadrillaColombiaDTO, PresupuestadoTotalObraEmpresaCuadrillaDTO, PresupuestadoTotalObraEmpresaCuadrillaPeruDTO, PresupuestadoTotalObraEmpresaDTO, PresupuestadoTotalObraEmpresaPeruDTO, PresupuestadoTotalObraPeruDTO, PresupuestoDTO, PresupuestoOTENTITY, PrioridadNotificacion, ProcedenciaDto, ProdCursoBaremoFasesCuadrillaDTO, ProdCursoBaremoFasesManoObraDTO, ProdCursoBaremoFasesPeriodoDTO, ProdCursoBaremoFasesUltimaFaseDTO, ProdCursoBaremoFasesUltimoEstadoInternoDTO, ProduccionDTO, ProductoDto, ProductosServiciosContratadoDBDTO, ProductosServiciosContratadoDTO, ProductosServiciosContratadoSomacylDTO, ProductosServiciosLiqDTO, ProductosServiciosValDTO, ProfileDTO, ProfileDto, ProfileEntity, RM_ActividadENTITY, RM_ComunaENTITY, RM_ManoObraENTITY, RM_MaterialENTITY, RM_PaquetizadoENTITY, RM_ZonasActividadENTITY, RawLiqPenBantelDTO, RawLiqPenDTO, RawParteDiarioBantelDTO, RawParteDiarioDTO, ReasonNoFinalizedSomacyl, RecepcionDto, ReclamosDistribuidorDTO, RecursosPersonalDTO, RegistroAudioDTO, RegistryDto, RegularizacionPositivaNegativaDTO, RegularizarObraJobRequestDTO, RepresentanteLegalDTO, RequeridoEnum, RequerimientoDto, RequestDataMigrationDTO, RequestNumberTTLENTITY, ReservaENTITY, ReservaManoObraRegularizacionENTITY, ResetPasswordDto, ResponseSignInDto, ResultadoDTO, ResumemENTITY, ResumenAvanceAlemaniaDTO, ResumenAvanceChileDTO, ResumenAvanceColombiaDTO, ResumenAvanceDataDocumentacionAlemaniaDTO, ResumenAvanceDataDocumentacionColombiaDTO, ResumenAvanceDataDocumentacionDTO, ResumenAvanceDataDocumentacionDataGroupToDrawAlemaniaDTO, ResumenAvanceDataDocumentacionDataGroupToDrawColombiaDTO, ResumenAvanceDataDocumentacionDataWithPercentsAlemaniaDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesAlemaniaDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesChileDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesColombiaDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesPeruDTO, ResumenAvanceDataDocumentacionDataWithPercentsChile, ResumenAvanceDataDocumentacionDataWithPercentsColombiaDTO, ResumenAvanceDataDocumentacionDataWithPercentsPeruDTO, ResumenAvanceDataDocumentacionPeruDTO, ResumenAvanceDataGranTotal, ResumenAvanceDataGranTotalAlemaniaDTO, ResumenAvanceDataGranTotalColombiaDTO, ResumenAvanceDataGranTotalEmpresasAlemaniaDTO, ResumenAvanceDataGranTotalEmpresasChileDTO, ResumenAvanceDataGranTotalEmpresasColombiaDTO, ResumenAvanceDataGranTotalEmpresasPeruDTO, ResumenAvanceDataGranTotalManoObraAlemaniaDTO, ResumenAvanceDataGranTotalManoObraCHILEDTO, ResumenAvanceDataGranTotalManoObraColombiaDTO, ResumenAvanceDataGranTotalManoObraPeruDTO, ResumenAvanceDataGranTotalPeruDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosAlemaniaDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosColombiaDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosPeruDTO, ResumenAvancePeruDTO, ResumenProcessENTITY, ResumentAvanceDocumentacionHPAlemaniaDTO, ResumentAvanceDocumentacionHPColombiaDTO, ResumentAvanceDocumentacionHPDTO, ResumentAvanceDocumentacionHPPeruDTO, RptProduccionCurso_Baremos_FasesENTITY, SEUpdateAnexosObraRequestBody, SEUpdateAnexosTrabajoRequestBody, STB_DTH_ToaENTITY, STB_DTH_ToaPlanta, STB_DTH_ToaUbicacion, SalidaAlmacenENTITY, ScrapingCredentialENTITY, SegmentoDBDTO, SeguimientoObraDTO, SiNoEnum, SincronizacionPersonalDTO, SistemaDto, SistemaENTITY, SistemaRecurso, SizeDTO, SmartDateTransformer, SocketDTO, SolicitudDto, SomacylEntregablesDTO, SomacylOrderENTITY, StateBantel, StateFibramas, StateInternalOrder, StateInternalOrderClienteWAOO, StateInternalOrderSomacyl, StateInternalOrderTOA, StateInventory, StateMifibra, StateServiceFibramas, StateWin, StatuDto, StockAlmacenENTITY, StockAlmacenEquiposENTITY, StockPersonalENTITY, StockPersonalEquiposENTITY, StockQuantityEmployeeDTO, SubEstadoInternoDTO, SubManoObraDTO$1 as SubManoObraDTO, SummaryDTO, SystemOptionEntity, TOAClaroOrderStockENTITY, TOAOrdenLiquidacionENTITY, TOAOrdenLiquidacionENTITYDB, TOAOrderStockENTITY, TUVESOrdReclMatDescargadoDTO, TUVESOrdReclamosFinDTO, TecnicoValDTO, TerminoPagoDto, ThemeConfigCountryENTITY, TipoActividadMOENTITY, TipoAlmacenDTO, TipoAlmacenENTITY, TipoClaveENTITY, TipoCompraDto, TipoConsumoMaterial, TipoDocumentoDto, TipoDocumentoIdentidadDTO, TipoDocumentoUsuarioDTO, TipoEmpresaDTO, TipoEspecialidadMOENTITY, TipoFamiliaDto, TipoGranFamiliaDto, TipoItemDto, type TipoLiq, TipoMOPCIssueDTO, TipoMOPCMODTO, TipoMiembroGrupoEmpresaDTO, TipoMovilCuadrillaDTO, TipoMovilENTITY, TipoMovimientoAlmacenDTO, TipoMovimientoAlmacenDatosTrabajoDTO, TipoMovimientoAlmacenENTITY, TipoNotificacion, TipoObraENTITY, TipoOpcionDTO, TipoOpcionSistemaENTITY, TipoOperacionDto, TipoProductoDto, TipoSistemaDTO, TipoStockENTITY, TipoStockStockPersonalDTO, TipoStockStockPersonalDatosTrabajoDTO, TipoSubFamiliaDto, type TipoVal, TipoVarianteDto, Tipo_MO, ToaClaroENTITY, ToaSegmentoDBDTO, ToaSegmentoDTO, TotBaremosDTO, TotalGeneralObraAlemaniaDTO, TotalGeneralObraChile9512DTO, TotalGeneralObraChileDTO, TotalGeneralObraColombia9612DTO, TotalGeneralObraColombiaDTO, TotalGeneralObraDTO, TotalGeneralObraPeru9112DTO, TotalGeneralObraPeruDTO, TrabajoAlemaniaENTITY, TrabajoENTITY, TrabajoHechoEnum, TrabajoMacroObraAlemaniaENTITY, TrabajoMacroObraENTITY, TransaccionFoliosENTITY, TransaccionesDTO, TuvesENTITY, TuvesOrdEqFinalizadasDTO, TuvesOrdEqMatDescargadosDTO, TuvesOrderStockENTITY, UOMaterialesBaremoDTO, UOMaterialesExcelDTO, UO_MaterialesENTITY, UbicacionAlmacenDTO, UbicacionBantelDTO, UbicacionDTO, UbicacionMifibraDBDTO, UbicacionObraDTO, UbicacionPresupuestoDTO, UbicacionSomacylDTO, UbicacionTdCDTO, UbicaciontoaDBDTO, UbicaciontoaDTO, UbicacionwinDBDTO, UbicacionwinDTO, Ultima_FaseLiberacionPagosDTO, Ultima_PreLiquidacionAlemaniaDTO, Ultima_PreLiquidacionDTO$1 as Ultima_PreLiquidacionDTO, Ultima_PreLiquidacionTMOAlemaniaDTO, Ultima_asignacionAlemaniaDTO, Ultima_asignacionDTO$1 as Ultima_asignacionDTO, UltimoEstadoClienteDTO, Ultimo_Estado_InternoDTO, Ultimo_Estado_InternoLiberacionPagosDTO, UnidadMedidaDTO, UnidadMedidaENTITY, UnidadMedidaLiberacionPagosDTO, UnidadObraENTITY, UnidadObraMaterialENTITY, UpdateDto, UpdateEstadoInternoObraRequestDTO, UpdateProfileDto, UpdateUltimaFaseFacturacionDTO, UserDto, UserEntity, UsuarioBaremoDTO, UsuarioBitacoraDTO, UsuarioDTO, UsuarioENTITY, UsuarioEdicionDTO, UsuarioID_UsuarioDTO, UsuarioLiqDTO, UsuarioLogisticaDTO, UsuarioRegistrarDTO, UsuariosAutoinventarioENTITY, ValidadoDTO, ValidadoSerieDto, ValidadoUsuarioSerieDto, ValidateJobExistsRequestDTO, ValorizacionAlemaniaDTO, ValorizacionDTO$1 as ValorizacionDTO, ValorizacionManoObraBaseDTO, ValorizacionManoObraDTO, ValorizacionManoObraRegularizacionDTO, ValorizacionPeruTOADTO, ValorizacionSomacylDTO, ValorizacionTMOAlemaniaDTO, ValorizacionesDTO$1 as ValorizacionesDTO, ValorizadaTOAENTITY, ValorizadoPorEstado, ValorizadoPorEstadoPeruDTO, ValorizadoTotalObraColombia9612DTO, ValorizadoTotalObraColombiaDTO, ValorizadoTotalObraDTO, ValorizadoTotalObraPeruDTO, VarianteDTO, VigenciaBaremosDTO, VigenciaDTO, VigenciaIssueDTO, VigenciaKeyDTO, VigenciaOTDTO, VigenciaPCMODTO, WBEDTO, ZonaTrabajoCuadrillaDTO, ZonaTrabajoDTO, ZonaTrabajoENTITY, ZonalesDTO, ZonasDTO, convertStringsToDates, convertTypeNumber, enumToArray, getFirstError, hydrate, latLngDTO, removeUndefined, transformToDateIfEmpty, trimAndUpperCaseString, type typeEstado, type typeEstadoNroDocumento, type typeFuente, type typeTipo, validateAndFormatData, validateArrayBody, validateCustom, validateRequestBody };
|
|
9548
|
+
export { ADM_RM_ZonasActividadENTITY, AcceptedDto, AccesortiosBantelDTO, AccesortiosMifibraDBDTO, ActaFinalCubicacionDTO, ActaFinalCubicacionSharedDTO, ActividadZonasActividadDTO, ActividadesDTO, AddMOPContrataMODTO, AddressListENTITY, AgenciaDTO, AgenciaENTITY, AgenciasDTO, AjusteReprocesoDTO, AlbaranDto, AlmacenDTO, AlmacenDto, AlmacenENTITY, AlmacenExtraENTITY, AlmacenLogisticaDTO, AlmacenRequerimientoDto, AlmacenUsuarioGIADTO, AnexoPreOrdenDto, AnexosDTO, AnexosDetailMantenanceOrderDTO, AprobacionDto, AreaGOMDTO, AreaGOMDatosReferenciaDTO, AreaGOMENTITY, AreaGOMResumenDTO, AreaGOMSubGOMSDTO, AreaGomCentroCostosDTO, AsignacionGomDTO, AsignacionGomDTO_Old, AsignacionRegularizarDTO, AsistenciaENTITY, AtencionOrdenesLiquidadasENTITY, AtiendeBodegaDTO, AttendanceDTO, AttendanceStatus, AuthUserDto, AutoInventarioENTITY, BankVendorDto, BantelENTITY, BaremoAlemaniaENTITY, BaremoProcessENTITY, BaremosAlemaniaENTITY, BaremosChileENTITY, BaremosColombiaENTITY, BaremosTOAChileENTITY, BaremosTOAENTITY, BitacoraAntiguaDTO, BitacoraDTO, BitacoraDeOrdenesDTO, BitacoraDto, BitacoraLiqDTO, BitacoraOpcionSitemaDTO, BodegaENTITY, BodyUpdateFasesDTO, BodyUpdateOne, CHILE_9512_PaquetizadoManoObraENTITY, CHILE_9512_PaquetizadoMaterialENTITY, CabeceraCubicacionColombiaDTO, CabeceraCubicajeAlemaniaDTO, CabeceraCubicajeChileDTO, CabeceraCubicajeDTO, CabeceraCubicajePeruDTO, CalculatePercentsAlemaniaDTO, CalculatePercentsColombiaDTO, CalculatePercentsDTO, CalculatePercentsPeruDTO, CambioEstadoFacturadoRequest, CambioEstadoFaseRequest, CambiosEstadosFaseLiberacionPagosDTO, CargoPersonalENTITY, CategoriaDto, CausacionCubicacionColombiaDTO, CausacionDTO, CentroCostosDTO, CentroCostosENTITY, CertificacionDTO, ChangeStateBaremosDTO, ChileTdCENTITY, ClienteDTO, ClienteTdCDTO, ClienteWAOOENTITY, Cliente_ContratistaDTO, ClosedDto, CodeNameDto, CodeNameMinLengthDto, CodigoDescripcionDTO, type CodigoMovimientoAlmacen, CodigoNombreDTO, CodigoNombreUMDTO, CodigoRazonSocialDTO, CodigoTituloAlemaniaDTO, CodigoTituloColombiaDTO, CodigoTituloDTO, CompanyEntity, ComparativoDto, CondicionDTO, ConsumoMaterialAlemaniaENTITY, ConsumoMaterialENTITY, ConsumosMaterialDTO, ConsumosMaterialExcelDTO, ConsumosP117ENTITY, ContabilizadoDto, ContratistaDTO, ContratistasDTO, Contratistas_PE_DTO, ContratoDTO, ContratoOTDTO, ContratoOTENTITY, ContratoOTGeneralDTO, ContratoOT_PRE_DTO, ContratoOT_ZT_DTO, ContratoObraOTDTO, ContratoPagosENTITY, Contrato_DTO, ConversionLogisticaDTO, CoordenadasDTO, CoordenadasTdCDTO, CorteBobinaStockAlmacenDTO, CosumoMaterialAlemaniaDTO, CotizacionDto, CountryEntity, CrearNavisionpreordenEntityRequestDto, CreateProfileDto, CuadrillaBaremoDTO, CuadrillaDTO, CuadrillaENTITY, CuadrillaLiberacionPagosDTO, CuadrillaRegularizarDTO, CuadrillasDTO, CubicacionAlemaniaAL02ENTITY, CubicacionChile9512ENTITY, CubicacionColombia9612ENTITY, CubicacionENTITY, CubicacionPeru9112ENTITY, CumplimientoDTO, DataAdicionalDTO, DataCatalogoItemDTO, DataChildrenTreeNodes, DataChildrenTreeNodesAlemaniaDTO, DataChildrenTreeNodesColombiaDTO, DataDocumentacionDTO, DataDocumentacionPeruDTO, DataGridTabBusinessHP, DataGridTabBusinessHPPeruDTO, DataGridTabResidentialHP, DataScraperClaroVTRENTITY, DataWithPercentItemAlemaniaDTO, DataWithPercentItemChile, DataWithPercentItemColombiaDTO, DataWithPercentItemPeruDTO, DateDto, DatoUsuarioTipoOpcionDto, DatosAreaPersonalDTO, DatosCatalogoItemDTO, DatosCatalogoMODTO, DatosEmpresaDto, DatosFacturacionDTO, DatosGIADTO, DatosGeneralesDTO, DatosGeneralesPersonalDTO, DatosIssueProduccionDTO, DatosIssueProduccionEmpresaDTO, DatosJefeObraDto, DatosManoObraGlobalDTO, DatosManoObraGlobalDetalleChileDTO, DatosNavDto, DatosPagoDto, DatosPaiDto, DatosPersonalDto, DatosPrecioEspecialidadDTO, DatosPrecioMaterialDTO, DatosReferenciaDTO, DatosTecnicosDTO, DatosTrabajoCatalogoDTO, DatosTrabajoDto, DatosTrabajoRequerimientoDto, DatosTrabajoUsuarioDTO, DatosTransportistaChileDTO, DatosTransportistaDTO, DatosUnidadObraMaterialDTO, DelegacionDTO, DelegacionDto, DelegacionZonalesDTO, DelegationEntity, DeleteBaremoFaseDTO, DestinatarioDTO, DetailMaintenanceOrderDTO, DetalleAlbaranDTO, DetalleAlemaniaDTO, DetalleAtipicaDTO, DetalleAtipicaPeruDTO, DetalleChileAlemaniaObraDTO, DetalleChileChileObraDTO, DetalleChileColombiaObraDTO, DetalleChileDTO$1 as DetalleChileDTO, DetalleChileObraDTO, DetalleChilePeruObraDTO, DetalleChileValorizacionMODTO, DetalleChileValorizacionManoObraRegularizacionDTO, DetalleColombiaDTO, DetalleCotizacionDto, DetalleCubicajeDTO, DetalleDTO, DetalleDto, DetalleManoObraChileDTO, DetalleOrdenRealDTO, DetallePeruDTO, DetallePeruFechasDTO, DetalleProductoDto, DetalleSalidaAlmacenDTO, DevolucionAlmacenENTITY, DireccionDTO, DocumentacionBaremoPexENTITY, DocumentacionPEXENTITY, DocumentoDetalleClienteAlemaniaDTO, DocumentoDetalleClienteColombiaDTO, DocumentoDetalleClienteDTO, DocumentoDetalleClientePeruDTO, DocumentoDetalleNoClienteAlemaniaDTO, DocumentoDetalleNoClienteColombiaDTO, DocumentoDetalleNoClienteDTO, DocumentoDetalleNoClientePeruDTO, DocumentosInicialesDTO, DocumentosInicialesPeruDTO, EECCBantelDTO, EECCClienteWAOODTO, EECCDBMIFIBRADTO, EECCDBTOADTO, EECCDBWINDTO, EECCFibramasDBDTO, EECC_DTO, EFaseObraBaremo, EmisionDto, EmpalmeDTO, EmpresaBaremoDTO, EmpresaDTO, EmpresaENTITY, EmpresaGanadoraDto, EmpresaLiberacionPagosDTO, EmpresaLogisticaDTO, EmpresaPCMODTO, EmpresaPersonalDTO, EmpresaPersonalDatosTrabajoDTO, EmpresaProduccionDTO, EmpresaRegularizarDTO, EmpresaStockPersonalDTO, EmpresaTdCDTO, EmpresaUsuarioDTO, EmpresaValDTO, EmpresaZonasActividadDTO, EncargadoDTO, EncargadoRegularizarDTO, EnviarNavDto, EquipoLogisticaDTO, EquipoSerieDto, EquiposAIDTO, EquiposDTO, EspecialidadDTO, EstadoAntiguoDTO, EstadoDTO, EstadoDePagoDTO, EstadoFaseObraBaremo, EstadoHPListDTO$2 as EstadoHPListDTO, EstadoIntegracionDTO, EstadoInternoDTO, EstadoInternoENTITY, EstadoInternoObraDTO, EstadoInternoWithoutSubstateDTO, type EstadoLiq, EstadoLiqDTO, EstadoNotificacion, EstadoProcesoValPeru, EstadoProcesoValPeruDTO, EstadoProcesoValSomacyl, EstadoProcesoValSomacylDTO, EstadoSerieDto, type EstadoVal, Estado_Model_MO, EstadosTuvesEnum, FacturaDto, FacturaGeneradaDTO, FacturacionDTO, FamiliaItemDTO, FaseDTO, FaseENTITY, FasePagoDTO, FasesObraBaremoDTO, FasesType, FechaDTO, FechaEntregaDto, FechaVigenciaBaremosDTO, FechaVigenciaPCMODTO, FechasDTO, FechasValorizacionBaremoDTO, FileDto, FilesDocDTO, FlagsDTO, FlujoDocDTO, FlujoDto, ForceString, ForgotPasswordDto, FormaPagoDto, FotoDTO, FotosDTO, FotosDetailMaintenanceDTO, FotosSSTDTO, GOMDTO, GemeindeENTITY, GomENTITY, GomNovedadesDTO, GomNovedadesTipoNovedadDTO, GranFamiliaItemDTO, GranFamiliaItemENTITY, GrupoEmpresaDTO, HPListAsignacionDTO, HPListDTO, HistorialCubicacionDTO, HistorialEstadosBantelDTO, HistorialEstadosMifibraDBDTO, HistorialEstadoswinDBDTO, HistorialEstadoswinDTO, HistoricoDTO, HistoricoEmpresasDTO, HitoDTO, HomePassDTO$1 as HomePassDTO, IDataSheetCoordenadas, IDataSheetLineasTdC, IDataSheetMateriales, IDataSheetMedidores, IDataSheetTdC, IDataSheetTiemposCumplimentados, ISheetsJsonChileTdC, IconoDto, ImgLogoNavBarDTO, ImporteDto, IncidenciasAlemaniaDTO, IncidenciasChileDTO, IncidenciasColombiaDTO, IncidenciasDTO, IncidenciasPeruDTO, IngresoAlmacenENTITY, InventarioDTO, InventarioExistenteDTO, InventarioLiqDTO, InventarioValDTO, IssueENTITY, ItemCantidadesDTO, ItemDTO, ItemDetalleLogisticaDTO, ItemDetallePMDTO, ItemENTITY, ItemEspañaENTITY, ItemExtraENTITY, ItemLogisticaDTO, ItemsOrdenDTO, ItemsOrdenScraperClaroVTRDTO, JobMacroByGemeindeRequestDTO, KCMActividadDTO, KeyDTO, KeyIntegracionENTITY, KitConsumoMaterialENTITY, LiberacionDePagosAlemaniaENTITY, LiquidadaTOAENTITY, ListaCapacidadesCableDTO, LogAlmacenDTO, LogDTO, LogModificarDTO, LogRegisterDTO, LoginDto, LoteDTO$1 as LoteDTO, MOBaremoDTO, MOChileVigenciaDTO, MacroObraAlemaniaENTITY, MacroObraChileENTITY, MacroObraColombiaENTITY, MacroObraENTITY, MacroObraPeruENTITY, MailStructureENTITY, ManoObraAlemaniaENTITY, ManoObraBaremoDTO, ManoObraBaremoENTITY, ManoObraBaremoProduccionDTO, ManoObraBaseENTITY, ManoObraENTITY, ManoObraGlobalDTO, ManoObraGlobalENTITY, ManoObraGlobalPCIssueAlemaniaAL02DTO, ManoObraGlobalPCIssueDTO, ManoObraGlobalPCMOAlemaniaAL02DTO, ManoObraGlobalPCMODTO, ManoObraGlobalPCMOEspania1729DTO, ManoObraLiberacionPagosDTO, ManoObraMttoENTITY, ManoObraPorUnidadObraENTITY, MarcaDTO, MaterialAmapDTO, MaterialAmapMODTO, MaterialCubicacionColombiaDTO, MaterialCubicacionPeruDTO, MaterialLogisticaDTO, MaterialMOGlobalDTO, MaterialUtilizadoRetiradoBaremoDTO, MaterialesBantelDTO, MaterialesClaroDTO, MaterialesClienteWAOODTO, MaterialesConsumoDTO, MaterialesCubicacionDTO, MaterialesDTO$1 as MaterialesDTO, MaterialesFibramasDBDTO, MaterialesFibramasDTO, MaterialesMifibraDBDTO, MaterialesSomacylDTO, MaterialestoaDBDTO, MaterialestoaDTO, MaterialeswinDBDTO, MaterialeswinDTO, MateterialesTuvesDTO, MedidorDTO, type MenuDto, MetadataUOMaterialDTO, MiFibraENTITYDB, ModelMOSQLPeruENTITY, ModelObraSQLPeruENTITY, ModeloDTO, MonedaDto, MovimientoAlmacenDTO, MovimientoAlmacenENTITY, MovimientoDto, MovimientosRecepcionDto, NavDto, NavisionBitacoraFileDto, NavisionDateRegistryDto, NavisionMovimientoAlmacenDTO, NavisionPersonalLogisticaDTO, NavisionRegistryDateDto, NavisionUserRegistryDto, NavisionpreordenEntity, NodoDocDTO, NombreDescripcionDTO, NotasDTO, NotificacionesENTITY, OTBYESPECIALIDADGEMEINDEENTITY, OTDTO, OTENTITY, OTGlobalDTO, OTGlobalENTITY, ObraAlemaniaAL02ENTITY, ObraAlemaniaAL04ENTITY, ObraChile9512ENTITY, ObraColombia9612ENTITY, ObraENTITY, ObraPeru9112ENTITY, OnnetFibraENTITY, OpcionSistemaENTITY, OperacionDTO, OperacionDataAdicional, OptionCatalogoDTO, OrdReclMatDescargadoDTO, OrdenDetailMaintenanceDTO, OrdenDto, OrdenesInstalacionDTO, OrderStockENTITY, OrderStockStoreENTITY, OrigenCUB, OtDto, PBbyMaterialQuantitiesDTO, PBbyMaterialQuantitiesSomacylDTO, PagosECBaremoDTO, PagosECDTO, PaisStockPersonalDTO, ParteDiarioDTO, PasosDTO, type PayloadTokenDTO, PayloadTokenDto, PedidoCompraDto, PerfilesENTITY, PeriodoBaremoDTO, PeriodoDTO$2 as PeriodoDTO, PeriodoENTITY, PeriodoLiberacionPagosDTO, PermisosAppDTO, PermisosAppENTITY, PersonalCuadrillaDTO, PersonalDTO, PersonalENTITY, PersonalLogisticaDTO$1 as PersonalLogisticaDTO, PersonalTOADTO, PersonalTrabajoDTO, Peru9112FibramasENTITY, Peru9112FibramasENTITYDB, Peru9112TOAENTITY, Peru9112TOAENTITYDB, Peru9112WinENTITY, Peru9112WinENTITYDB, PlantaDBDTO, PlantaDTO, PlantaSomacylDTO, PreAcceptedDto, PrecioActualDTO, PrecioAgencia_mam_onnetENTITY, PrecioContratistaIssueAL02ENTITY, PrecioContratistaIssueENTITY, PrecioContratistaMOAL02ENTITY, PrecioContratistaMOAL04ENTITY, PrecioContratistaMOENTITY, PrecioContratistaMOESPANIA1729ENTITY, PrecioContratistaMaterialENTITY, PrecioDTO, PrecioEmpresaDTO, PrecioEspecialidadENTITY, PrecioManoObraENTITY, PrecioMaterialENTITY, PrecioTrabajoDTO, PrecioUOMaterialesDTO, PreciosVigentesDTO, PresupuestadoTotalObraAlemaniaDTO, PresupuestadoTotalObraChilaDTO, PresupuestadoTotalObraColombiaDTO, PresupuestadoTotalObraDTO, PresupuestadoTotalObraEmpresaAlemaniaDTO, PresupuestadoTotalObraEmpresaChileDTO, PresupuestadoTotalObraEmpresaColombiaDTO, PresupuestadoTotalObraEmpresaCuadrillaAlemaniaDTO, PresupuestadoTotalObraEmpresaCuadrillaChileDTO, PresupuestadoTotalObraEmpresaCuadrillaColombiaDTO, PresupuestadoTotalObraEmpresaCuadrillaDTO, PresupuestadoTotalObraEmpresaCuadrillaPeruDTO, PresupuestadoTotalObraEmpresaDTO, PresupuestadoTotalObraEmpresaPeruDTO, PresupuestadoTotalObraPeruDTO, PresupuestoDTO, PresupuestoOTENTITY, PrioridadNotificacion, ProcedenciaDto, ProdCursoBaremoFasesCuadrillaDTO, ProdCursoBaremoFasesManoObraDTO, ProdCursoBaremoFasesPeriodoDTO, ProdCursoBaremoFasesUltimaFaseDTO, ProdCursoBaremoFasesUltimoEstadoInternoDTO, ProduccionDTO, ProductoDto, ProductosServiciosContratadoDBDTO, ProductosServiciosContratadoDTO, ProductosServiciosContratadoSomacylDTO, ProductosServiciosLiqDTO, ProductosServiciosValDTO, ProfileDTO, ProfileDto, ProfileEntity, RM_ActividadENTITY, RM_ComunaENTITY, RM_ManoObraENTITY, RM_MaterialENTITY, RM_PaquetizadoENTITY, RM_ZonasActividadENTITY, RawLiqPenBantelDTO, RawLiqPenDTO, RawParteDiarioBantelDTO, RawParteDiarioDTO, ReasonNoFinalizedSomacyl, RecepcionDto, ReclamosDistribuidorDTO, RecursosPersonalDTO, RegistroAudioDTO, RegistryDto, RegularizacionPositivaNegativaDTO, RegularizarObraJobRequestDTO, RepresentanteLegalDTO, RequeridoEnum, RequerimientoDto, RequestDataMigrationDTO, RequestNumberTTLENTITY, ReservaENTITY, ReservaManoObraRegularizacionENTITY, ResetPasswordDto, ResponseSignInDto, ResultadoDTO, ResumemENTITY, ResumenAvanceAlemaniaDTO, ResumenAvanceChileDTO, ResumenAvanceColombiaDTO, ResumenAvanceDataDocumentacionAlemaniaDTO, ResumenAvanceDataDocumentacionColombiaDTO, ResumenAvanceDataDocumentacionDTO, ResumenAvanceDataDocumentacionDataGroupToDrawAlemaniaDTO, ResumenAvanceDataDocumentacionDataGroupToDrawColombiaDTO, ResumenAvanceDataDocumentacionDataWithPercentsAlemaniaDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesAlemaniaDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesChileDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesColombiaDTO, ResumenAvanceDataDocumentacionDataWithPercentsByFasesPeruDTO, ResumenAvanceDataDocumentacionDataWithPercentsChile, ResumenAvanceDataDocumentacionDataWithPercentsColombiaDTO, ResumenAvanceDataDocumentacionDataWithPercentsPeruDTO, ResumenAvanceDataDocumentacionPeruDTO, ResumenAvanceDataGranTotal, ResumenAvanceDataGranTotalAlemaniaDTO, ResumenAvanceDataGranTotalColombiaDTO, ResumenAvanceDataGranTotalEmpresasAlemaniaDTO, ResumenAvanceDataGranTotalEmpresasChileDTO, ResumenAvanceDataGranTotalEmpresasColombiaDTO, ResumenAvanceDataGranTotalEmpresasPeruDTO, ResumenAvanceDataGranTotalManoObraAlemaniaDTO, ResumenAvanceDataGranTotalManoObraCHILEDTO, ResumenAvanceDataGranTotalManoObraColombiaDTO, ResumenAvanceDataGranTotalManoObraPeruDTO, ResumenAvanceDataGranTotalPeruDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosAlemaniaDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosColombiaDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosDTO, ResumenAvanceDataGranTotalValorizacionesByPeriodosPeruDTO, ResumenAvancePeruDTO, ResumenProcessENTITY, ResumentAvanceDocumentacionHPAlemaniaDTO, ResumentAvanceDocumentacionHPColombiaDTO, ResumentAvanceDocumentacionHPDTO, ResumentAvanceDocumentacionHPPeruDTO, RptProduccionCurso_Baremos_FasesENTITY, SEUpdateAnexosObraRequestBody, SEUpdateAnexosTrabajoRequestBody, STB_DTH_ToaENTITY, STB_DTH_ToaPlanta, STB_DTH_ToaUbicacion, SalidaAlmacenENTITY, ScrapingCredentialENTITY, SegmentoDBDTO, SeguimientoObraDTO, SiNoEnum, SincronizacionPersonalDTO, SistemaDto, SistemaENTITY, SistemaRecurso, SizeDTO, SmartDateTransformer, SocketDTO, SolicitudDto, SomacylEntregablesDTO, SomacylOrderENTITY, StateBantel, StateFibramas, StateInternalOrder, StateInternalOrderClienteWAOO, StateInternalOrderSomacyl, StateInternalOrderTOA, StateInventory, StateMifibra, StateServiceFibramas, StateWin, StatuDto, StockAlmacenENTITY, StockAlmacenEquiposENTITY, StockPersonalENTITY, StockPersonalEquiposENTITY, StockQuantityEmployeeDTO, SubEstadoInternoDTO, SubManoObraDTO$1 as SubManoObraDTO, SummaryDTO, SystemOptionEntity, TOAClaroOrderStockENTITY, TOAOrdenLiquidacionENTITY, TOAOrdenLiquidacionENTITYDB, TOAOrderStockENTITY, TUVESOrdReclMatDescargadoDTO, TUVESOrdReclamosFinDTO, TecnicoValDTO, TerminoPagoDto, ThemeConfigCountryENTITY, TipoActividadMOENTITY, TipoAlmacenDTO, TipoAlmacenENTITY, TipoClaveENTITY, TipoCompraDto, TipoConsumoMaterial, TipoDocumentoDto, TipoDocumentoIdentidadDTO, TipoDocumentoUsuarioDTO, TipoEmpresaDTO, TipoEspecialidadMOENTITY, TipoFamiliaDto, TipoGranFamiliaDto, TipoItemDto, type TipoLiq, TipoMOPCIssueDTO, TipoMOPCMODTO, TipoMiembroGrupoEmpresaDTO, TipoMovilCuadrillaDTO, TipoMovilENTITY, TipoMovimientoAlmacenDTO, TipoMovimientoAlmacenDatosTrabajoDTO, TipoMovimientoAlmacenENTITY, TipoNotificacion, TipoObraENTITY, TipoOpcionDTO, TipoOpcionSistemaENTITY, TipoOperacionDto, TipoProductoDto, TipoSistemaDTO, TipoStockENTITY, TipoStockStockPersonalDTO, TipoStockStockPersonalDatosTrabajoDTO, TipoSubFamiliaDto, type TipoVal, TipoVarianteDto, Tipo_MO, ToaClaroENTITY, ToaSegmentoDBDTO, ToaSegmentoDTO, TotBaremosDTO, TotalGeneralObraAlemaniaDTO, TotalGeneralObraChile9512DTO, TotalGeneralObraChileDTO, TotalGeneralObraColombia9612DTO, TotalGeneralObraColombiaDTO, TotalGeneralObraDTO, TotalGeneralObraPeru9112DTO, TotalGeneralObraPeruDTO, TrabajoAlemaniaENTITY, TrabajoENTITY, TrabajoHechoEnum, TrabajoMacroObraAlemaniaENTITY, TrabajoMacroObraENTITY, TransaccionFoliosENTITY, TransaccionesDTO, TuvesENTITY, TuvesOrdEqFinalizadasDTO, TuvesOrdEqMatDescargadosDTO, TuvesOrderStockENTITY, UOMaterialesBaremoDTO, UOMaterialesExcelDTO, UO_MaterialesENTITY, UbicacionAlmacenDTO, UbicacionBantelDTO, UbicacionDTO, UbicacionMifibraDBDTO, UbicacionObraDTO, UbicacionPresupuestoDTO, UbicacionSomacylDTO, UbicacionTdCDTO, UbicaciontoaDBDTO, UbicaciontoaDTO, UbicacionwinDBDTO, UbicacionwinDTO, Ultima_FaseLiberacionPagosDTO, Ultima_PreLiquidacionAlemaniaDTO, Ultima_PreLiquidacionDTO$1 as Ultima_PreLiquidacionDTO, Ultima_PreLiquidacionTMOAlemaniaDTO, Ultima_asignacionAlemaniaDTO, Ultima_asignacionDTO$1 as Ultima_asignacionDTO, UltimoEstadoClienteDTO, Ultimo_Estado_InternoDTO, Ultimo_Estado_InternoLiberacionPagosDTO, UnidadMedidaDTO, UnidadMedidaENTITY, UnidadMedidaLiberacionPagosDTO, UnidadObraENTITY, UnidadObraMaterialENTITY, UpdateDto, UpdateEstadoInternoObraRequestDTO, UpdateProfileDto, UpdateUltimaFaseFacturacionDTO, UserDto, UserEntity, UsuarioBaremoDTO, UsuarioBitacoraDTO, UsuarioDTO, UsuarioENTITY, UsuarioEdicionDTO, UsuarioID_UsuarioDTO, UsuarioLiqDTO, UsuarioLogisticaDTO, UsuarioRegistrarDTO, UsuariosAutoinventarioENTITY, ValidadoDTO, ValidadoSerieDto, ValidadoUsuarioSerieDto, ValidateJobExistsRequestDTO, ValorizacionAlemaniaDTO, ValorizacionDTO$1 as ValorizacionDTO, ValorizacionManoObraBaseDTO, ValorizacionManoObraDTO, ValorizacionManoObraRegularizacionDTO, ValorizacionPeruTOADTO, ValorizacionSomacylDTO, ValorizacionTMOAlemaniaDTO, ValorizacionesDTO$1 as ValorizacionesDTO, ValorizadaTOAENTITY, ValorizadoPorEstado, ValorizadoPorEstadoPeruDTO, ValorizadoTotalObraColombia9612DTO, ValorizadoTotalObraColombiaDTO, ValorizadoTotalObraDTO, ValorizadoTotalObraPeruDTO, VarianteDTO, VigenciaBaremosDTO, VigenciaDTO, VigenciaIssueDTO, VigenciaKeyDTO, VigenciaOTDTO, VigenciaPCMODTO, WBEDTO, ZonaTrabajoCuadrillaDTO, ZonaTrabajoDTO, ZonaTrabajoENTITY, ZonalesDTO, ZonasDTO, convertStringsToDates, convertTypeNumber, enumToArray, getFirstError, hydrate, latLngDTO, removeUndefined, transformToDateIfEmpty, trimAndUpperCaseString, type typeEstado, type typeEstadoNroDocumento, type typeFuente, type typeTipo, validateAndFormatData, validateArrayBody, validateCustom, validateRequestBody };
|
package/dist/index.js
CHANGED
|
@@ -125,6 +125,7 @@ __export(index_exports, {
|
|
|
125
125
|
CodigoTituloAlemaniaDTO: () => CodigoTituloAlemaniaDTO,
|
|
126
126
|
CodigoTituloColombiaDTO: () => CodigoTituloColombiaDTO,
|
|
127
127
|
CodigoTituloDTO: () => CodigoTituloDTO,
|
|
128
|
+
CompanyEntity: () => CompanyEntity,
|
|
128
129
|
ComparativoDto: () => ComparativoDto,
|
|
129
130
|
CondicionDTO: () => CondicionDTO,
|
|
130
131
|
ConsumoMaterialAlemaniaENTITY: () => ConsumoMaterialAlemaniaENTITY,
|
|
@@ -50389,9 +50390,91 @@ __decorateClass([
|
|
|
50389
50390
|
(0, import_class_transformer794.Expose)()
|
|
50390
50391
|
], CountryEntity.prototype, "name", 2);
|
|
50391
50392
|
|
|
50392
|
-
// src/v2/
|
|
50393
|
+
// src/v2/enums/CompanyType.ts
|
|
50394
|
+
var CompanyType = /* @__PURE__ */ ((CompanyType2) => {
|
|
50395
|
+
CompanyType2["OPERATIVA"] = "Operativa";
|
|
50396
|
+
CompanyType2["PROVEEDOR"] = "Proveedor";
|
|
50397
|
+
return CompanyType2;
|
|
50398
|
+
})(CompanyType || {});
|
|
50399
|
+
|
|
50400
|
+
// src/v2/entities/Company.ts
|
|
50393
50401
|
var import_class_transformer795 = require("class-transformer");
|
|
50394
50402
|
var import_class_validator772 = require("class-validator");
|
|
50403
|
+
var CompanyEntity = class extends BaseEntity {
|
|
50404
|
+
companyType;
|
|
50405
|
+
identification;
|
|
50406
|
+
code;
|
|
50407
|
+
legalName;
|
|
50408
|
+
tradeName;
|
|
50409
|
+
isOwn;
|
|
50410
|
+
address;
|
|
50411
|
+
emails;
|
|
50412
|
+
phones;
|
|
50413
|
+
delegationIds;
|
|
50414
|
+
};
|
|
50415
|
+
__decorateClass([
|
|
50416
|
+
(0, import_class_validator772.IsDefined)({ message: "El tipo de empresa es requerido" }),
|
|
50417
|
+
(0, import_class_validator772.IsEnum)(CompanyType, { message: "El tipo de empresa debe ser ${eachValueInArray}" }),
|
|
50418
|
+
(0, import_class_transformer795.Expose)()
|
|
50419
|
+
], CompanyEntity.prototype, "companyType", 2);
|
|
50420
|
+
__decorateClass([
|
|
50421
|
+
(0, import_class_validator772.IsDefined)({ message: "La identificaci\xF3n es requerida" }),
|
|
50422
|
+
(0, import_class_validator772.IsString)({ message: "La identificaci\xF3n debe ser una cadena de texto" }),
|
|
50423
|
+
(0, import_class_validator772.IsNotEmpty)({ message: "La identificaci\xF3n no debe estar vac\xEDa" }),
|
|
50424
|
+
(0, import_class_transformer795.Expose)()
|
|
50425
|
+
], CompanyEntity.prototype, "identification", 2);
|
|
50426
|
+
__decorateClass([
|
|
50427
|
+
(0, import_class_validator772.IsDefined)({ message: "El c\xF3digo es requerido" }),
|
|
50428
|
+
(0, import_class_validator772.IsString)({ message: "El c\xF3digo debe ser una cadena de texto" }),
|
|
50429
|
+
(0, import_class_validator772.IsNotEmpty)({ message: "El c\xF3digo no debe estar vac\xEDo" }),
|
|
50430
|
+
(0, import_class_transformer795.Expose)()
|
|
50431
|
+
], CompanyEntity.prototype, "code", 2);
|
|
50432
|
+
__decorateClass([
|
|
50433
|
+
(0, import_class_validator772.IsDefined)({ message: "El nombre legal es requerido" }),
|
|
50434
|
+
(0, import_class_validator772.IsString)({ message: "El nombre legal debe ser una cadena de texto" }),
|
|
50435
|
+
(0, import_class_validator772.IsNotEmpty)({ message: "El nombre legal no debe estar vac\xEDo" }),
|
|
50436
|
+
(0, import_class_transformer795.Expose)()
|
|
50437
|
+
], CompanyEntity.prototype, "legalName", 2);
|
|
50438
|
+
__decorateClass([
|
|
50439
|
+
(0, import_class_validator772.IsDefined)({ message: "El nombre comercial es requerido" }),
|
|
50440
|
+
(0, import_class_validator772.IsString)({ message: "El nombre comercial debe ser una cadena de texto" }),
|
|
50441
|
+
(0, import_class_validator772.IsNotEmpty)({ message: "El nombre comercial no debe estar vac\xEDo" }),
|
|
50442
|
+
(0, import_class_transformer795.Expose)()
|
|
50443
|
+
], CompanyEntity.prototype, "tradeName", 2);
|
|
50444
|
+
__decorateClass([
|
|
50445
|
+
(0, import_class_validator772.IsDefined)({ message: "La propiedad es propia es requerida" }),
|
|
50446
|
+
(0, import_class_validator772.IsBoolean)({ message: "La propiedad es propia debe ser un booleano" }),
|
|
50447
|
+
(0, import_class_transformer795.Expose)()
|
|
50448
|
+
], CompanyEntity.prototype, "isOwn", 2);
|
|
50449
|
+
__decorateClass([
|
|
50450
|
+
(0, import_class_validator772.IsDefined)({ message: "La direcci\xF3n es requerida" }),
|
|
50451
|
+
(0, import_class_validator772.IsString)({ message: "La direcci\xF3n debe ser una cadena de texto" }),
|
|
50452
|
+
(0, import_class_validator772.IsNotEmpty)({ message: "La direcci\xF3n no debe estar vac\xEDa" }),
|
|
50453
|
+
(0, import_class_transformer795.Expose)()
|
|
50454
|
+
], CompanyEntity.prototype, "address", 2);
|
|
50455
|
+
__decorateClass([
|
|
50456
|
+
(0, import_class_validator772.IsDefined)({ message: "El campo correos electr\xF3nicos es requerido" }),
|
|
50457
|
+
(0, import_class_validator772.IsArray)({ message: "El campo correos electr\xF3nicos debe ser un arreglo" }),
|
|
50458
|
+
(0, import_class_validator772.IsEmail)({}, { each: true, message: "Cada correo electr\xF3nico debe ser v\xE1lido" }),
|
|
50459
|
+
(0, import_class_transformer795.Expose)()
|
|
50460
|
+
], CompanyEntity.prototype, "emails", 2);
|
|
50461
|
+
__decorateClass([
|
|
50462
|
+
(0, import_class_validator772.IsDefined)({ message: "El campo tel\xE9fonos es requeridos" }),
|
|
50463
|
+
(0, import_class_validator772.IsArray)({ message: "El campo tel\xE9fonos debe ser un arreglo" }),
|
|
50464
|
+
(0, import_class_validator772.IsString)({ each: true, message: "Cada tel\xE9fono debe ser una cadena de texto" }),
|
|
50465
|
+
(0, import_class_validator772.IsNotEmpty)({ each: true, message: "Cada tel\xE9fono no debe estar vac\xEDo" }),
|
|
50466
|
+
(0, import_class_transformer795.Expose)()
|
|
50467
|
+
], CompanyEntity.prototype, "phones", 2);
|
|
50468
|
+
__decorateClass([
|
|
50469
|
+
(0, import_class_validator772.IsDefined)({ message: "El campo delegaciones es requerido" }),
|
|
50470
|
+
(0, import_class_validator772.IsArray)({ message: "El campo delegaciones debe ser un arreglo" }),
|
|
50471
|
+
(0, import_class_validator772.IsUUID)("4", { each: true, message: "Cada delegaci\xF3n debe ser un UUID" }),
|
|
50472
|
+
(0, import_class_transformer795.Expose)()
|
|
50473
|
+
], CompanyEntity.prototype, "delegationIds", 2);
|
|
50474
|
+
|
|
50475
|
+
// src/v2/utils/validateCustom.ts
|
|
50476
|
+
var import_class_transformer796 = require("class-transformer");
|
|
50477
|
+
var import_class_validator773 = require("class-validator");
|
|
50395
50478
|
|
|
50396
50479
|
// src/v2/utils/getFirstError.ts
|
|
50397
50480
|
function getFirstError(errors, parentPath = "") {
|
|
@@ -50432,8 +50515,8 @@ function removeUndefined(obj) {
|
|
|
50432
50515
|
|
|
50433
50516
|
// src/v2/utils/validateCustom.ts
|
|
50434
50517
|
async function validateCustom(plain, cls, UnprocessableEntityException, groups) {
|
|
50435
|
-
const instance = (0,
|
|
50436
|
-
const errors = await (0,
|
|
50518
|
+
const instance = (0, import_class_transformer796.plainToInstance)(cls, plain, { excludeExtraneousValues: true, groups });
|
|
50519
|
+
const errors = await (0, import_class_validator773.validate)(instance, { groups });
|
|
50437
50520
|
if (errors.length) {
|
|
50438
50521
|
const msg = getFirstError(errors);
|
|
50439
50522
|
throw new UnprocessableEntityException(msg);
|
|
@@ -50442,15 +50525,15 @@ async function validateCustom(plain, cls, UnprocessableEntityException, groups)
|
|
|
50442
50525
|
}
|
|
50443
50526
|
|
|
50444
50527
|
// src/v2/middlewares/validateRequestBody.ts
|
|
50445
|
-
var
|
|
50446
|
-
var
|
|
50528
|
+
var import_class_transformer797 = require("class-transformer");
|
|
50529
|
+
var import_class_validator774 = require("class-validator");
|
|
50447
50530
|
async function validateRequestBody({ dtoClass, BadRequestException, groups }, req, _res, next) {
|
|
50448
50531
|
try {
|
|
50449
50532
|
if (Array.isArray(req.body)) {
|
|
50450
50533
|
const newBody = [];
|
|
50451
50534
|
for (const element of req.body) {
|
|
50452
|
-
const dtoInstance2 = (0,
|
|
50453
|
-
const errors2 = await (0,
|
|
50535
|
+
const dtoInstance2 = (0, import_class_transformer797.plainToInstance)(dtoClass, element, { excludeExtraneousValues: true, groups });
|
|
50536
|
+
const errors2 = await (0, import_class_validator774.validate)(dtoInstance2, { groups });
|
|
50454
50537
|
if (errors2.length > 0) {
|
|
50455
50538
|
const firstError = getFirstError(errors2);
|
|
50456
50539
|
return next(new BadRequestException(firstError));
|
|
@@ -50460,8 +50543,8 @@ async function validateRequestBody({ dtoClass, BadRequestException, groups }, re
|
|
|
50460
50543
|
req.body = newBody;
|
|
50461
50544
|
return next();
|
|
50462
50545
|
}
|
|
50463
|
-
const dtoInstance = (0,
|
|
50464
|
-
const errors = await (0,
|
|
50546
|
+
const dtoInstance = (0, import_class_transformer797.plainToInstance)(dtoClass, req.body, { excludeExtraneousValues: true, groups });
|
|
50547
|
+
const errors = await (0, import_class_validator774.validate)(dtoInstance, { groups });
|
|
50465
50548
|
if (errors.length > 0) {
|
|
50466
50549
|
const firstError = getFirstError(errors);
|
|
50467
50550
|
return next(new BadRequestException(firstError));
|
|
@@ -50571,6 +50654,7 @@ async function validateRequestBody({ dtoClass, BadRequestException, groups }, re
|
|
|
50571
50654
|
CodigoTituloAlemaniaDTO,
|
|
50572
50655
|
CodigoTituloColombiaDTO,
|
|
50573
50656
|
CodigoTituloDTO,
|
|
50657
|
+
CompanyEntity,
|
|
50574
50658
|
ComparativoDto,
|
|
50575
50659
|
CondicionDTO,
|
|
50576
50660
|
ConsumoMaterialAlemaniaENTITY,
|
package/dist/index.mjs
CHANGED
|
@@ -49908,6 +49908,88 @@ __decorateClass([
|
|
|
49908
49908
|
Expose767()
|
|
49909
49909
|
], CountryEntity.prototype, "name", 2);
|
|
49910
49910
|
|
|
49911
|
+
// src/v2/enums/CompanyType.ts
|
|
49912
|
+
var CompanyType = /* @__PURE__ */ ((CompanyType2) => {
|
|
49913
|
+
CompanyType2["OPERATIVA"] = "Operativa";
|
|
49914
|
+
CompanyType2["PROVEEDOR"] = "Proveedor";
|
|
49915
|
+
return CompanyType2;
|
|
49916
|
+
})(CompanyType || {});
|
|
49917
|
+
|
|
49918
|
+
// src/v2/entities/Company.ts
|
|
49919
|
+
import { Expose as Expose768 } from "class-transformer";
|
|
49920
|
+
import { IsArray as IsArray252, IsBoolean as IsBoolean75, IsDefined as IsDefined269, IsEmail as IsEmail8, IsEnum as IsEnum39, IsNotEmpty as IsNotEmpty463, IsString as IsString634, IsUUID as IsUUID26 } from "class-validator";
|
|
49921
|
+
var CompanyEntity = class extends BaseEntity {
|
|
49922
|
+
companyType;
|
|
49923
|
+
identification;
|
|
49924
|
+
code;
|
|
49925
|
+
legalName;
|
|
49926
|
+
tradeName;
|
|
49927
|
+
isOwn;
|
|
49928
|
+
address;
|
|
49929
|
+
emails;
|
|
49930
|
+
phones;
|
|
49931
|
+
delegationIds;
|
|
49932
|
+
};
|
|
49933
|
+
__decorateClass([
|
|
49934
|
+
IsDefined269({ message: "El tipo de empresa es requerido" }),
|
|
49935
|
+
IsEnum39(CompanyType, { message: "El tipo de empresa debe ser ${eachValueInArray}" }),
|
|
49936
|
+
Expose768()
|
|
49937
|
+
], CompanyEntity.prototype, "companyType", 2);
|
|
49938
|
+
__decorateClass([
|
|
49939
|
+
IsDefined269({ message: "La identificaci\xF3n es requerida" }),
|
|
49940
|
+
IsString634({ message: "La identificaci\xF3n debe ser una cadena de texto" }),
|
|
49941
|
+
IsNotEmpty463({ message: "La identificaci\xF3n no debe estar vac\xEDa" }),
|
|
49942
|
+
Expose768()
|
|
49943
|
+
], CompanyEntity.prototype, "identification", 2);
|
|
49944
|
+
__decorateClass([
|
|
49945
|
+
IsDefined269({ message: "El c\xF3digo es requerido" }),
|
|
49946
|
+
IsString634({ message: "El c\xF3digo debe ser una cadena de texto" }),
|
|
49947
|
+
IsNotEmpty463({ message: "El c\xF3digo no debe estar vac\xEDo" }),
|
|
49948
|
+
Expose768()
|
|
49949
|
+
], CompanyEntity.prototype, "code", 2);
|
|
49950
|
+
__decorateClass([
|
|
49951
|
+
IsDefined269({ message: "El nombre legal es requerido" }),
|
|
49952
|
+
IsString634({ message: "El nombre legal debe ser una cadena de texto" }),
|
|
49953
|
+
IsNotEmpty463({ message: "El nombre legal no debe estar vac\xEDo" }),
|
|
49954
|
+
Expose768()
|
|
49955
|
+
], CompanyEntity.prototype, "legalName", 2);
|
|
49956
|
+
__decorateClass([
|
|
49957
|
+
IsDefined269({ message: "El nombre comercial es requerido" }),
|
|
49958
|
+
IsString634({ message: "El nombre comercial debe ser una cadena de texto" }),
|
|
49959
|
+
IsNotEmpty463({ message: "El nombre comercial no debe estar vac\xEDo" }),
|
|
49960
|
+
Expose768()
|
|
49961
|
+
], CompanyEntity.prototype, "tradeName", 2);
|
|
49962
|
+
__decorateClass([
|
|
49963
|
+
IsDefined269({ message: "La propiedad es propia es requerida" }),
|
|
49964
|
+
IsBoolean75({ message: "La propiedad es propia debe ser un booleano" }),
|
|
49965
|
+
Expose768()
|
|
49966
|
+
], CompanyEntity.prototype, "isOwn", 2);
|
|
49967
|
+
__decorateClass([
|
|
49968
|
+
IsDefined269({ message: "La direcci\xF3n es requerida" }),
|
|
49969
|
+
IsString634({ message: "La direcci\xF3n debe ser una cadena de texto" }),
|
|
49970
|
+
IsNotEmpty463({ message: "La direcci\xF3n no debe estar vac\xEDa" }),
|
|
49971
|
+
Expose768()
|
|
49972
|
+
], CompanyEntity.prototype, "address", 2);
|
|
49973
|
+
__decorateClass([
|
|
49974
|
+
IsDefined269({ message: "El campo correos electr\xF3nicos es requerido" }),
|
|
49975
|
+
IsArray252({ message: "El campo correos electr\xF3nicos debe ser un arreglo" }),
|
|
49976
|
+
IsEmail8({}, { each: true, message: "Cada correo electr\xF3nico debe ser v\xE1lido" }),
|
|
49977
|
+
Expose768()
|
|
49978
|
+
], CompanyEntity.prototype, "emails", 2);
|
|
49979
|
+
__decorateClass([
|
|
49980
|
+
IsDefined269({ message: "El campo tel\xE9fonos es requeridos" }),
|
|
49981
|
+
IsArray252({ message: "El campo tel\xE9fonos debe ser un arreglo" }),
|
|
49982
|
+
IsString634({ each: true, message: "Cada tel\xE9fono debe ser una cadena de texto" }),
|
|
49983
|
+
IsNotEmpty463({ each: true, message: "Cada tel\xE9fono no debe estar vac\xEDo" }),
|
|
49984
|
+
Expose768()
|
|
49985
|
+
], CompanyEntity.prototype, "phones", 2);
|
|
49986
|
+
__decorateClass([
|
|
49987
|
+
IsDefined269({ message: "El campo delegaciones es requerido" }),
|
|
49988
|
+
IsArray252({ message: "El campo delegaciones debe ser un arreglo" }),
|
|
49989
|
+
IsUUID26("4", { each: true, message: "Cada delegaci\xF3n debe ser un UUID" }),
|
|
49990
|
+
Expose768()
|
|
49991
|
+
], CompanyEntity.prototype, "delegationIds", 2);
|
|
49992
|
+
|
|
49911
49993
|
// src/v2/utils/validateCustom.ts
|
|
49912
49994
|
import { plainToInstance as plainToInstance4 } from "class-transformer";
|
|
49913
49995
|
import { validate as validate3 } from "class-validator";
|
|
@@ -50089,6 +50171,7 @@ export {
|
|
|
50089
50171
|
CodigoTituloAlemaniaDTO,
|
|
50090
50172
|
CodigoTituloColombiaDTO,
|
|
50091
50173
|
CodigoTituloDTO,
|
|
50174
|
+
CompanyEntity,
|
|
50092
50175
|
ComparativoDto,
|
|
50093
50176
|
CondicionDTO,
|
|
50094
50177
|
ConsumoMaterialAlemaniaENTITY,
|
package/functionGenerateDto.ts
CHANGED
|
@@ -1,169 +1,169 @@
|
|
|
1
|
-
import * as fs from 'fs';
|
|
2
|
-
import { ClassDeclaration, Project, PropertyDeclaration } from 'ts-morph'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Obtiene todas las propiedades de una clase, incluyendo las heredadas de otros archivos.
|
|
6
|
-
*/
|
|
7
|
-
function getAllProperties(entityClass: ClassDeclaration): { allProperties: PropertyDeclaration[], imports: string[] } {
|
|
8
|
-
let allProperties: PropertyDeclaration[] = [...entityClass.getProperties()];
|
|
9
|
-
let baseClass = entityClass.getBaseClass();
|
|
10
|
-
let imports: string[] = [];
|
|
11
|
-
const baseSourceFile = entityClass.getSourceFile();
|
|
12
|
-
baseSourceFile.getImportDeclarations().forEach(importDecl => {
|
|
13
|
-
imports.push(importDecl.getText())
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
while (baseClass) {
|
|
17
|
-
// Asegurarse de agregar las propiedades de la clase base
|
|
18
|
-
allProperties = [...baseClass.getProperties(), ...allProperties];
|
|
19
|
-
|
|
20
|
-
const baseClassSource = baseClass.getSourceFile();
|
|
21
|
-
|
|
22
|
-
const baseSourceFile = baseClass.getSourceFile();
|
|
23
|
-
baseSourceFile.getImportDeclarations().forEach(importDecl => {
|
|
24
|
-
imports.push(importDecl.getText())
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
if (!baseClassSource.wasForgotten()) {
|
|
28
|
-
baseClass = baseClass.getBaseClass();
|
|
29
|
-
} else {
|
|
30
|
-
break; // Si no puede seguir buscando, detenemos el proceso
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return { allProperties, imports };
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function buildImports(imports: string[]) {
|
|
38
|
-
const mergedMap: Map<string, Map<string, boolean>> = imports.reduce((ac: Map<string, Map<string, boolean>>, el: string) => {
|
|
39
|
-
const normalizedImport: string = el.replace(/\s+/g, ' ').trim();
|
|
40
|
-
const matchModuleName = normalizedImport.match(/from\s+['"]([^'"]+)['"]/);
|
|
41
|
-
if (matchModuleName) {
|
|
42
|
-
const moduleName: string = matchModuleName[1];
|
|
43
|
-
const matchImports = normalizedImport.match(/import\s*{([^}]+)}/);
|
|
44
|
-
if (matchImports) {
|
|
45
|
-
const importsArray: string[] = matchImports[1]
|
|
46
|
-
.split(',')
|
|
47
|
-
.map((item: string) => item.trim())
|
|
48
|
-
.filter((item: string) => item.length > 0);
|
|
49
|
-
if (importsArray.length) {
|
|
50
|
-
if (!ac.has(moduleName)) {
|
|
51
|
-
ac.set(moduleName, new Map<string, boolean>());
|
|
52
|
-
}
|
|
53
|
-
const innerMap = ac.get(moduleName)!;
|
|
54
|
-
importsArray.forEach((symbol: string) => innerMap.set(symbol, true));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return ac;
|
|
59
|
-
}, new Map<string, Map<string, boolean>>());
|
|
60
|
-
|
|
61
|
-
const uniqueImportStatements: string = Array.from(mergedMap.entries())
|
|
62
|
-
.map(([moduleName, symbolsMap]: [string, Map<string, boolean>]) => {
|
|
63
|
-
const symbolsArray: string[] = Array.from(symbolsMap.keys());
|
|
64
|
-
return `import { ${symbolsArray.join(', ')} } from '${moduleName}';`;
|
|
65
|
-
})
|
|
66
|
-
.join('\n');
|
|
67
|
-
return uniqueImportStatements
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Genera un DTO parcial a partir de una entidad TypeScript, manteniendo validaciones y valores por defecto.
|
|
72
|
-
* @param entityFilePath Ruta del archivo que contiene la entidad (ej: './entities/UserENTITY.ts')
|
|
73
|
-
* @param entityClassName Nombre de la clase dentro del archivo (ej: 'UserENTITY')
|
|
74
|
-
* @param dtoName Nombre de la clase DTO a generar (ej: 'PartialUserDTO')
|
|
75
|
-
* @param fields Campos que deben incluirse en el DTO (ej: ['_id', 'email', 'identity'])
|
|
76
|
-
* @param outputDir Directorio donde se guardará el DTO (ej: './dtos')
|
|
77
|
-
*/
|
|
78
|
-
export function generateDTO<T>(
|
|
79
|
-
entityFilePath: string,
|
|
80
|
-
entityClassName: string,
|
|
81
|
-
dtoName: string,
|
|
82
|
-
fields: (keyof T)[],
|
|
83
|
-
outputDir: string = './src/v2/dtos',
|
|
84
|
-
entityAux?: { entityFilePath: string, entityClassName: string },
|
|
85
|
-
base: boolean = false
|
|
86
|
-
) {
|
|
87
|
-
// Inicializar ts-morph y cargar el archivo de la entidad
|
|
88
|
-
const project = new Project({
|
|
89
|
-
tsConfigFilePath: './tsconfig.json', // Asegura que se analicen correctamente las importaciones
|
|
90
|
-
});
|
|
91
|
-
const sourceFile = project.addSourceFileAtPath(entityFilePath);
|
|
92
|
-
|
|
93
|
-
// Obtener la clase de la entidad
|
|
94
|
-
const entityClass = sourceFile.getClass(entityClassName);
|
|
95
|
-
if (!entityClass) {
|
|
96
|
-
console.error(`❌ No se encontró la clase ${entityClassName} en ${entityFilePath}`);
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
const dtoProperties: string[] = [];
|
|
101
|
-
|
|
102
|
-
const { allProperties, imports } = getAllProperties(entityClass)
|
|
103
|
-
|
|
104
|
-
allProperties.forEach(prop => {
|
|
105
|
-
const propName = prop.getName() as keyof T
|
|
106
|
-
if (!fields.includes(propName)) return
|
|
107
|
-
dtoProperties.push(prop.getFullText());
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
//#region EntityAux
|
|
111
|
-
if (entityAux) {
|
|
112
|
-
const sourceFile = project.addSourceFileAtPath(entityAux.entityFilePath);
|
|
113
|
-
|
|
114
|
-
// Obtener la clase de la entidad
|
|
115
|
-
const entityClass = sourceFile.getClass(entityAux.entityClassName);
|
|
116
|
-
if (!entityClass) {
|
|
117
|
-
console.error(`❌ No se encontró la clase auxiliar ${entityAux.entityClassName} en ${entityAux.entityFilePath}`);
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
const { allProperties, imports: _imports } = getAllProperties(entityClass)
|
|
122
|
-
|
|
123
|
-
allProperties.forEach(prop => {
|
|
124
|
-
dtoProperties.push(prop.getFullText());
|
|
125
|
-
})
|
|
126
|
-
|
|
127
|
-
imports.push(..._imports)
|
|
128
|
-
}
|
|
129
|
-
//#endregion
|
|
130
|
-
|
|
131
|
-
// Generar el código del DTO
|
|
132
|
-
const dtoCode = `
|
|
133
|
-
${buildImports(imports)}
|
|
134
|
-
|
|
135
|
-
export class ${dtoName}${base ? ` extends BaseEntity` : ''} {${dtoProperties.join('')}
|
|
136
|
-
}
|
|
137
|
-
`
|
|
138
|
-
|
|
139
|
-
// Crear el directorio si no existe
|
|
140
|
-
if (!fs.existsSync(outputDir)) {
|
|
141
|
-
fs.mkdirSync(outputDir);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// Guardar el archivo DTO
|
|
145
|
-
const dtoFilePath = `${outputDir}/${dtoName.split('Dto')[0]}.ts`;
|
|
146
|
-
fs.writeFileSync(dtoFilePath, dtoCode);
|
|
147
|
-
|
|
148
|
-
console.log(`✅ Dto ${dtoName} generado en ${dtoFilePath}`);
|
|
149
|
-
|
|
150
|
-
// Actualizar index.ts
|
|
151
|
-
const indexPath = `${outputDir}/index.ts`
|
|
152
|
-
const exportLine = `export * from './${dtoName.split('Dto')[0]}'`
|
|
153
|
-
|
|
154
|
-
let indexContent = ''
|
|
155
|
-
|
|
156
|
-
if (fs.existsSync(indexPath)) {
|
|
157
|
-
indexContent = fs.readFileSync(indexPath, 'utf8')
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
if (!indexContent.includes(exportLine)) {
|
|
161
|
-
const newContent = indexContent
|
|
162
|
-
? `${indexContent.trimEnd()}\n${exportLine}\n`
|
|
163
|
-
: `${exportLine}\n`
|
|
164
|
-
|
|
165
|
-
fs.writeFileSync(indexPath, newContent)
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
console.log(`✅ Export agregado en ${indexPath}`)
|
|
1
|
+
import * as fs from 'fs';
|
|
2
|
+
import { ClassDeclaration, Project, PropertyDeclaration } from 'ts-morph'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Obtiene todas las propiedades de una clase, incluyendo las heredadas de otros archivos.
|
|
6
|
+
*/
|
|
7
|
+
function getAllProperties(entityClass: ClassDeclaration): { allProperties: PropertyDeclaration[], imports: string[] } {
|
|
8
|
+
let allProperties: PropertyDeclaration[] = [...entityClass.getProperties()];
|
|
9
|
+
let baseClass = entityClass.getBaseClass();
|
|
10
|
+
let imports: string[] = [];
|
|
11
|
+
const baseSourceFile = entityClass.getSourceFile();
|
|
12
|
+
baseSourceFile.getImportDeclarations().forEach(importDecl => {
|
|
13
|
+
imports.push(importDecl.getText())
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
while (baseClass) {
|
|
17
|
+
// Asegurarse de agregar las propiedades de la clase base
|
|
18
|
+
allProperties = [...baseClass.getProperties(), ...allProperties];
|
|
19
|
+
|
|
20
|
+
const baseClassSource = baseClass.getSourceFile();
|
|
21
|
+
|
|
22
|
+
const baseSourceFile = baseClass.getSourceFile();
|
|
23
|
+
baseSourceFile.getImportDeclarations().forEach(importDecl => {
|
|
24
|
+
imports.push(importDecl.getText())
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
if (!baseClassSource.wasForgotten()) {
|
|
28
|
+
baseClass = baseClass.getBaseClass();
|
|
29
|
+
} else {
|
|
30
|
+
break; // Si no puede seguir buscando, detenemos el proceso
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return { allProperties, imports };
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function buildImports(imports: string[]) {
|
|
38
|
+
const mergedMap: Map<string, Map<string, boolean>> = imports.reduce((ac: Map<string, Map<string, boolean>>, el: string) => {
|
|
39
|
+
const normalizedImport: string = el.replace(/\s+/g, ' ').trim();
|
|
40
|
+
const matchModuleName = normalizedImport.match(/from\s+['"]([^'"]+)['"]/);
|
|
41
|
+
if (matchModuleName) {
|
|
42
|
+
const moduleName: string = matchModuleName[1];
|
|
43
|
+
const matchImports = normalizedImport.match(/import\s*{([^}]+)}/);
|
|
44
|
+
if (matchImports) {
|
|
45
|
+
const importsArray: string[] = matchImports[1]
|
|
46
|
+
.split(',')
|
|
47
|
+
.map((item: string) => item.trim())
|
|
48
|
+
.filter((item: string) => item.length > 0);
|
|
49
|
+
if (importsArray.length) {
|
|
50
|
+
if (!ac.has(moduleName)) {
|
|
51
|
+
ac.set(moduleName, new Map<string, boolean>());
|
|
52
|
+
}
|
|
53
|
+
const innerMap = ac.get(moduleName)!;
|
|
54
|
+
importsArray.forEach((symbol: string) => innerMap.set(symbol, true));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return ac;
|
|
59
|
+
}, new Map<string, Map<string, boolean>>());
|
|
60
|
+
|
|
61
|
+
const uniqueImportStatements: string = Array.from(mergedMap.entries())
|
|
62
|
+
.map(([moduleName, symbolsMap]: [string, Map<string, boolean>]) => {
|
|
63
|
+
const symbolsArray: string[] = Array.from(symbolsMap.keys());
|
|
64
|
+
return `import { ${symbolsArray.join(', ')} } from '${moduleName}';`;
|
|
65
|
+
})
|
|
66
|
+
.join('\n');
|
|
67
|
+
return uniqueImportStatements
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Genera un DTO parcial a partir de una entidad TypeScript, manteniendo validaciones y valores por defecto.
|
|
72
|
+
* @param entityFilePath Ruta del archivo que contiene la entidad (ej: './entities/UserENTITY.ts')
|
|
73
|
+
* @param entityClassName Nombre de la clase dentro del archivo (ej: 'UserENTITY')
|
|
74
|
+
* @param dtoName Nombre de la clase DTO a generar (ej: 'PartialUserDTO')
|
|
75
|
+
* @param fields Campos que deben incluirse en el DTO (ej: ['_id', 'email', 'identity'])
|
|
76
|
+
* @param outputDir Directorio donde se guardará el DTO (ej: './dtos')
|
|
77
|
+
*/
|
|
78
|
+
export function generateDTO<T>(
|
|
79
|
+
entityFilePath: string,
|
|
80
|
+
entityClassName: string,
|
|
81
|
+
dtoName: string,
|
|
82
|
+
fields: (keyof T)[],
|
|
83
|
+
outputDir: string = './src/v2/dtos',
|
|
84
|
+
entityAux?: { entityFilePath: string, entityClassName: string },
|
|
85
|
+
base: boolean = false
|
|
86
|
+
) {
|
|
87
|
+
// Inicializar ts-morph y cargar el archivo de la entidad
|
|
88
|
+
const project = new Project({
|
|
89
|
+
tsConfigFilePath: './tsconfig.json', // Asegura que se analicen correctamente las importaciones
|
|
90
|
+
});
|
|
91
|
+
const sourceFile = project.addSourceFileAtPath(entityFilePath);
|
|
92
|
+
|
|
93
|
+
// Obtener la clase de la entidad
|
|
94
|
+
const entityClass = sourceFile.getClass(entityClassName);
|
|
95
|
+
if (!entityClass) {
|
|
96
|
+
console.error(`❌ No se encontró la clase ${entityClassName} en ${entityFilePath}`);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const dtoProperties: string[] = [];
|
|
101
|
+
|
|
102
|
+
const { allProperties, imports } = getAllProperties(entityClass)
|
|
103
|
+
|
|
104
|
+
allProperties.forEach(prop => {
|
|
105
|
+
const propName = prop.getName() as keyof T
|
|
106
|
+
if (!fields.includes(propName)) return
|
|
107
|
+
dtoProperties.push(prop.getFullText());
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
//#region EntityAux
|
|
111
|
+
if (entityAux) {
|
|
112
|
+
const sourceFile = project.addSourceFileAtPath(entityAux.entityFilePath);
|
|
113
|
+
|
|
114
|
+
// Obtener la clase de la entidad
|
|
115
|
+
const entityClass = sourceFile.getClass(entityAux.entityClassName);
|
|
116
|
+
if (!entityClass) {
|
|
117
|
+
console.error(`❌ No se encontró la clase auxiliar ${entityAux.entityClassName} en ${entityAux.entityFilePath}`);
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const { allProperties, imports: _imports } = getAllProperties(entityClass)
|
|
122
|
+
|
|
123
|
+
allProperties.forEach(prop => {
|
|
124
|
+
dtoProperties.push(prop.getFullText());
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
imports.push(..._imports)
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
|
|
131
|
+
// Generar el código del DTO
|
|
132
|
+
const dtoCode = `
|
|
133
|
+
${buildImports(imports)}
|
|
134
|
+
|
|
135
|
+
export class ${dtoName}${base ? ` extends BaseEntity` : ''} {${dtoProperties.join('')}
|
|
136
|
+
}
|
|
137
|
+
`
|
|
138
|
+
|
|
139
|
+
// Crear el directorio si no existe
|
|
140
|
+
if (!fs.existsSync(outputDir)) {
|
|
141
|
+
fs.mkdirSync(outputDir);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Guardar el archivo DTO
|
|
145
|
+
const dtoFilePath = `${outputDir}/${dtoName.split('Dto')[0]}.ts`;
|
|
146
|
+
fs.writeFileSync(dtoFilePath, dtoCode);
|
|
147
|
+
|
|
148
|
+
console.log(`✅ Dto ${dtoName} generado en ${dtoFilePath}`);
|
|
149
|
+
|
|
150
|
+
// Actualizar index.ts
|
|
151
|
+
const indexPath = `${outputDir}/index.ts`
|
|
152
|
+
const exportLine = `export * from './${dtoName.split('Dto')[0]}'`
|
|
153
|
+
|
|
154
|
+
let indexContent = ''
|
|
155
|
+
|
|
156
|
+
if (fs.existsSync(indexPath)) {
|
|
157
|
+
indexContent = fs.readFileSync(indexPath, 'utf8')
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (!indexContent.includes(exportLine)) {
|
|
161
|
+
const newContent = indexContent
|
|
162
|
+
? `${indexContent.trimEnd()}\n${exportLine}\n`
|
|
163
|
+
: `${exportLine}\n`
|
|
164
|
+
|
|
165
|
+
fs.writeFileSync(indexPath, newContent)
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
console.log(`✅ Export agregado en ${indexPath}`)
|
|
169
169
|
}
|
package/generateDtos.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { generateDTO } from './functionGenerateDto'
|
|
2
|
-
import { ProfileEntity } from '@Entities/Profile'
|
|
3
|
-
import { UserEntity } from '@Entities/User'
|
|
4
|
-
const path = './src/v2/entities'
|
|
5
|
-
|
|
6
|
-
function Bootstrap() {
|
|
7
|
-
generateDTO<UserEntity>(
|
|
8
|
-
`${path}/User.ts`,
|
|
9
|
-
'UserEntity',
|
|
10
|
-
'AuthUserDto',
|
|
11
|
-
['profileId', 'email', 'firstNames', 'identification', 'maternalLastName', 'paternalLastName', 'root']
|
|
12
|
-
)
|
|
13
|
-
generateDTO<ProfileEntity>(
|
|
14
|
-
`${path}/Profile.ts`,
|
|
15
|
-
'ProfileEntity',
|
|
16
|
-
'CreateProfileDto',
|
|
17
|
-
['_id', 'name', 'description', 'systemOptions']
|
|
18
|
-
)
|
|
19
|
-
generateDTO<ProfileEntity>(
|
|
20
|
-
`${path}/Profile.ts`,
|
|
21
|
-
'ProfileEntity',
|
|
22
|
-
'UpdateProfileDto',
|
|
23
|
-
['name', 'description', 'systemOptions', 'active']
|
|
24
|
-
)
|
|
25
|
-
generateDTO<ProfileEntity>(
|
|
26
|
-
`${path}/Profile.ts`,
|
|
27
|
-
'ProfileEntity',
|
|
28
|
-
'ProfileDto',
|
|
29
|
-
['name', 'description']
|
|
30
|
-
)
|
|
31
|
-
}
|
|
32
|
-
|
|
1
|
+
import { generateDTO } from './functionGenerateDto'
|
|
2
|
+
import { ProfileEntity } from '@Entities/Profile'
|
|
3
|
+
import { UserEntity } from '@Entities/User'
|
|
4
|
+
const path = './src/v2/entities'
|
|
5
|
+
|
|
6
|
+
function Bootstrap() {
|
|
7
|
+
generateDTO<UserEntity>(
|
|
8
|
+
`${path}/User.ts`,
|
|
9
|
+
'UserEntity',
|
|
10
|
+
'AuthUserDto',
|
|
11
|
+
['profileId', 'email', 'firstNames', 'identification', 'maternalLastName', 'paternalLastName', 'root']
|
|
12
|
+
)
|
|
13
|
+
generateDTO<ProfileEntity>(
|
|
14
|
+
`${path}/Profile.ts`,
|
|
15
|
+
'ProfileEntity',
|
|
16
|
+
'CreateProfileDto',
|
|
17
|
+
['_id', 'name', 'description', 'systemOptions']
|
|
18
|
+
)
|
|
19
|
+
generateDTO<ProfileEntity>(
|
|
20
|
+
`${path}/Profile.ts`,
|
|
21
|
+
'ProfileEntity',
|
|
22
|
+
'UpdateProfileDto',
|
|
23
|
+
['name', 'description', 'systemOptions', 'active']
|
|
24
|
+
)
|
|
25
|
+
generateDTO<ProfileEntity>(
|
|
26
|
+
`${path}/Profile.ts`,
|
|
27
|
+
'ProfileEntity',
|
|
28
|
+
'ProfileDto',
|
|
29
|
+
['name', 'description']
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
33
|
Bootstrap()
|
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sigo-entities",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "Desarrollo de modelos de datos SIGO",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.mjs",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "tsup && tsc-alias",
|
|
10
|
-
"prepare": "npm run build",
|
|
11
|
-
"gen-dto": "ts-node ./generateDtos.ts"
|
|
12
|
-
},
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git@github.com-trabajo:GRUPOCOBRA/sigo-entities.git"
|
|
16
|
-
},
|
|
17
|
-
"keywords": [],
|
|
18
|
-
"author": "usuario088",
|
|
19
|
-
"license": "ISC",
|
|
20
|
-
"devDependencies": {
|
|
21
|
-
"@types/express": "^5.0.1",
|
|
22
|
-
"sigo-package": "^1.2.132",
|
|
23
|
-
"ts-morph": "^28.0.0",
|
|
24
|
-
"tsc-alias": "^1.8.15",
|
|
25
|
-
"tsconfig-paths": "^4.2.0",
|
|
26
|
-
"tsup": "^8.1.0",
|
|
27
|
-
"typescript": "^5.4.5"
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"class-transformer": "^0.5.1",
|
|
31
|
-
"class-validator": "^0.14.1"
|
|
32
|
-
},
|
|
33
|
-
"peerDependencies": {
|
|
34
|
-
"reflect-metadata": "^0.2.2"
|
|
35
|
-
},
|
|
36
|
-
"overrides": {
|
|
37
|
-
"esbuild": "^0.28.0"
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "sigo-entities",
|
|
3
|
+
"version": "1.2.390",
|
|
4
|
+
"description": "Desarrollo de modelos de datos SIGO",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsup && tsc-alias",
|
|
10
|
+
"prepare": "npm run build",
|
|
11
|
+
"gen-dto": "ts-node ./generateDtos.ts"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git@github.com-trabajo:GRUPOCOBRA/sigo-entities.git"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [],
|
|
18
|
+
"author": "usuario088",
|
|
19
|
+
"license": "ISC",
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/express": "^5.0.1",
|
|
22
|
+
"sigo-package": "^1.2.132",
|
|
23
|
+
"ts-morph": "^28.0.0",
|
|
24
|
+
"tsc-alias": "^1.8.15",
|
|
25
|
+
"tsconfig-paths": "^4.2.0",
|
|
26
|
+
"tsup": "^8.1.0",
|
|
27
|
+
"typescript": "^5.4.5"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"class-transformer": "^0.5.1",
|
|
31
|
+
"class-validator": "^0.14.1"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"reflect-metadata": "^0.2.2"
|
|
35
|
+
},
|
|
36
|
+
"overrides": {
|
|
37
|
+
"esbuild": "^0.28.0"
|
|
38
|
+
}
|
|
39
39
|
}
|
package/test.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { validateAndFormatData, CubicacionColombia9612ENTITY } from './src'
|
|
2
|
-
import { convertDates } from 'sigo-package'
|
|
3
|
-
import fs from 'fs'
|
|
4
|
-
|
|
5
|
-
// ts-node -r tsconfig-paths/register test.ts
|
|
6
|
-
|
|
7
|
-
async function test() {
|
|
8
|
-
const data = JSON.parse(fs.readFileSync('./body_testing.json', 'utf-8'))
|
|
9
|
-
convertDates(data)
|
|
10
|
-
console.log(await validateAndFormatData(data, CubicacionColombia9612ENTITY))
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
import { validateAndFormatData, CubicacionColombia9612ENTITY } from './src'
|
|
2
|
+
import { convertDates } from 'sigo-package'
|
|
3
|
+
import fs from 'fs'
|
|
4
|
+
|
|
5
|
+
// ts-node -r tsconfig-paths/register test.ts
|
|
6
|
+
|
|
7
|
+
async function test() {
|
|
8
|
+
const data = JSON.parse(fs.readFileSync('./body_testing.json', 'utf-8'))
|
|
9
|
+
convertDates(data)
|
|
10
|
+
console.log(await validateAndFormatData(data, CubicacionColombia9612ENTITY))
|
|
11
|
+
}
|
|
12
|
+
|
|
13
13
|
test()
|