sigo-package 1.2.185 → 1.2.187

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -949,6 +949,8 @@ declare const DIRECTORIO_DOCUMENTACION_VEREDA = "ORDENES_BT_ALP_PLUZ_VEREDA";
949
949
  declare const documentRequirementVereda: DocumentRequirementDto[];
950
950
  /** Requisitos hoja (los que reciben archivos) */
951
951
  declare const requisitosArchivoVereda: DocumentRequirementDto[];
952
+ /** Foto del desmonte que se adjunta al cerrar si hay desmonte (se guarda en desmonte.foto, no en documentacion) */
953
+ declare const documentRequirementDesmonteVereda: DocumentRequirementDto[];
952
954
 
953
955
  /** Pantalla de la PWA que corrige cada error */
954
956
  type SeccionFormularioVereda = 'workflow' | 'formulario' | 'evidencias';
@@ -956,11 +958,11 @@ interface ErrorFormularioVereda {
956
958
  seccion: SeccionFormularioVereda;
957
959
  mensaje: string;
958
960
  }
959
- type AsignacionValidable = Pick<BtAlpPluzVeredaAsignacionENTITY, 'formulario_civil' | 'documentacion'>;
961
+ type AsignacionValidable = Pick<BtAlpPluzVeredaAsignacionENTITY, 'formulario_civil' | 'documentacion' | 'desmonte'>;
960
962
  /** Aviso (no bloquea) si los m² reparados no cuadran con ancho × largo × cantidad de paños */
961
963
  declare function avisoM2Vereda(metrados: MetradosVeredaDTO): string | null;
962
964
  /**
963
- * Lo que falta para cerrar el workflow y liquidar: pasos previos a CERRADO, metrados y evidencias obligatorias.
965
+ * Lo que falta para cerrar el workflow y liquidar: pasos previos a CERRADO, metrados, evidencias obligatorias y desmonte.
964
966
  * CERRADO no se exige aquí (se registra cuando esto no tiene errores); liquidar lo exige aparte.
965
967
  * Lo usan la PWA (offline) y el backend.
966
968
  */
@@ -1247,4 +1249,4 @@ declare function getCookieToken(req: Request<any>, webOrigins: string[]): string
1247
1249
 
1248
1250
  declare function validateUUIDv4Param(BadRequestException: ClassConstructor<Error>, req: Request<any>, _res: Response, next: NextFunction): Promise<void>;
1249
1251
 
1250
- export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, type CantidadMaterialAL04, type CierresPreliquidarAL02, type CierresPreliquidarAL04, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DEVOLUCION_TR_ESTADOS, DEVOLUCION_TR_MOTIVO_CAMBIO_TURNO, DIRECTORIO_DOCUMENTACION_VEREDA, DocumentacionReplanteo, type ErrorFormularioVereda, type ErrorLineaDevolucionTR, EstadoEspecialidad9612, FIRMA_DESPACHO_ACCIONES, FIRMA_DESPACHO_TIEMPOS, type FirmaDespachoMensajeRespuesta, type FirmaDespachoMensajeSolicitud, type FirmaDespachoSolicitud, FormatearErrorValidacionMOHijas, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type ILineaValidacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, type IResultadoValidacionMOHijas, type LineaDevolucionTR, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MaterialRequeridoAL04, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, type ModoMaterialesAL04, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, SOMACYL_CODIGO_CONTADOR_RETIRADO, SOMACYL_PHOTO_POSITIONS, type SaldoStockPersonal, type SeccionFormularioVereda, type SomacylPhotoKey, type StockEntregableDevolucionTR, type TARGET, TOLERANCIA_M2_VEREDA, type TipoPreliquidacionAL02, type TipoPreliquidacionAL04, UpdateNodosDocDP, ValidarRelacionMOHijasAL04, ValorizacionHelper, avisoM2Vereda, builSystemOption, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildMenu, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularSaldoStockPersonal, calcularTotalMaterialValorizacionPeru9112, cantidadFijaMOAL04, cantidadMaterialAL04, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL02, codBalizaAL04, codBalizaPreliquidarAL04, codBaremoUnicoDPAL04, codClientes, codIssueByPeriodoAL02, codMOAsfaltoHijasAL04, codMOAsfaltoMadreAL04, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOExcluidos, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMONoPreliquidablesAL04, codMOOcultosAL04, codMOPreliquidarTroncalAL02, codMOPreliquidarTroncalAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codMaterialesOcultosAL04, codNoCliente, codSopladoRD, codigoParteDiarioHoyCHILE9512, codigosBaremosSubcontrataAL02, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, codigosSopladoHP, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, documentRequirementAltasNVTMultifamiliar, documentRequirementAltasNVTUnifamiliar, documentRequirementVereda, empresas, esAsignacionPreliquidableAL02, esAsignacionPreliquidableAL04, esCadenaFechaISOValida, esMaterialDuctoAL04, esObjetoFecha, esParteDiarioAprobadoCHILE9512, esParteDiarioEditableCHILE9512, estadoRechazadaPorMetraje, estadoRechazadaPorMetrajeAL04, firmaDespachoCanalRespuesta, firmaDespachoCanalSolicitud, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getCaptureDateSomacyl, getChannelName, getContainerName, getCookieToken, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, getRequestOrigin, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, materialesAutomaticosAL04, materialesSeleccionablesAL04, modoMaterialesAL04, motivoConsumoAlmacenAL04, motivoConsumoMaterialAutomaticoDuctos, newCodMOTroncalReglaLiquidacion1, obtenerCodMOHomePass, obtenerCodMOHomePassAL04, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerEspecialidadesCerradas, obtenerEspecialidadesCerradasAL04, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, parseDuplicateKeyError, prorratearMaterialesAL04, requisitosArchivoVereda, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, subMaterialesAL04, throwDevolucionTRError, throwSomacylError, timeZoneCHILE9512, tituloFotoParteDiarioCHILE9512, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, uuidRegex, validarAsfaltoAL04, validarFormularioCivil, validarLineasDevolucionTR, validateNoLookup, validateUUIDv4Param, verifyDetailsFinalizeSomacyl, verifyFiles, verifyInventoryFinalize, verifyInventoryFinalizeSomacyl, verifyInventoryLimitsSomacyl, verifyLineasDevolucionTR, verifyPhotosFinalizeSomacyl, verifyPhotosNotFinalizedSomacyl };
1252
+ export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, type CantidadMaterialAL04, type CierresPreliquidarAL02, type CierresPreliquidarAL04, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DEVOLUCION_TR_ESTADOS, DEVOLUCION_TR_MOTIVO_CAMBIO_TURNO, DIRECTORIO_DOCUMENTACION_VEREDA, DocumentacionReplanteo, type ErrorFormularioVereda, type ErrorLineaDevolucionTR, EstadoEspecialidad9612, FIRMA_DESPACHO_ACCIONES, FIRMA_DESPACHO_TIEMPOS, type FirmaDespachoMensajeRespuesta, type FirmaDespachoMensajeSolicitud, type FirmaDespachoSolicitud, FormatearErrorValidacionMOHijas, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type ILineaValidacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, type IResultadoValidacionMOHijas, type LineaDevolucionTR, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MaterialRequeridoAL04, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, type ModoMaterialesAL04, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, SOMACYL_CODIGO_CONTADOR_RETIRADO, SOMACYL_PHOTO_POSITIONS, type SaldoStockPersonal, type SeccionFormularioVereda, type SomacylPhotoKey, type StockEntregableDevolucionTR, type TARGET, TOLERANCIA_M2_VEREDA, type TipoPreliquidacionAL02, type TipoPreliquidacionAL04, UpdateNodosDocDP, ValidarRelacionMOHijasAL04, ValorizacionHelper, avisoM2Vereda, builSystemOption, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildMenu, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularSaldoStockPersonal, calcularTotalMaterialValorizacionPeru9112, cantidadFijaMOAL04, cantidadMaterialAL04, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL02, codBalizaAL04, codBalizaPreliquidarAL04, codBaremoUnicoDPAL04, codClientes, codIssueByPeriodoAL02, codMOAsfaltoHijasAL04, codMOAsfaltoMadreAL04, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOExcluidos, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMONoPreliquidablesAL04, codMOOcultosAL04, codMOPreliquidarTroncalAL02, codMOPreliquidarTroncalAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codMaterialesOcultosAL04, codNoCliente, codSopladoRD, codigoParteDiarioHoyCHILE9512, codigosBaremosSubcontrataAL02, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, codigosSopladoHP, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, documentRequirementAltasNVTMultifamiliar, documentRequirementAltasNVTUnifamiliar, documentRequirementDesmonteVereda, documentRequirementVereda, empresas, esAsignacionPreliquidableAL02, esAsignacionPreliquidableAL04, esCadenaFechaISOValida, esMaterialDuctoAL04, esObjetoFecha, esParteDiarioAprobadoCHILE9512, esParteDiarioEditableCHILE9512, estadoRechazadaPorMetraje, estadoRechazadaPorMetrajeAL04, firmaDespachoCanalRespuesta, firmaDespachoCanalSolicitud, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getCaptureDateSomacyl, getChannelName, getContainerName, getCookieToken, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, getRequestOrigin, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, materialesAutomaticosAL04, materialesSeleccionablesAL04, modoMaterialesAL04, motivoConsumoAlmacenAL04, motivoConsumoMaterialAutomaticoDuctos, newCodMOTroncalReglaLiquidacion1, obtenerCodMOHomePass, obtenerCodMOHomePassAL04, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerEspecialidadesCerradas, obtenerEspecialidadesCerradasAL04, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, parseDuplicateKeyError, prorratearMaterialesAL04, requisitosArchivoVereda, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, subMaterialesAL04, throwDevolucionTRError, throwSomacylError, timeZoneCHILE9512, tituloFotoParteDiarioCHILE9512, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, uuidRegex, validarAsfaltoAL04, validarFormularioCivil, validarLineasDevolucionTR, validateNoLookup, validateUUIDv4Param, verifyDetailsFinalizeSomacyl, verifyFiles, verifyInventoryFinalize, verifyInventoryFinalizeSomacyl, verifyInventoryLimitsSomacyl, verifyLineasDevolucionTR, verifyPhotosFinalizeSomacyl, verifyPhotosNotFinalizedSomacyl };
package/dist/index.d.ts CHANGED
@@ -949,6 +949,8 @@ declare const DIRECTORIO_DOCUMENTACION_VEREDA = "ORDENES_BT_ALP_PLUZ_VEREDA";
949
949
  declare const documentRequirementVereda: DocumentRequirementDto[];
950
950
  /** Requisitos hoja (los que reciben archivos) */
951
951
  declare const requisitosArchivoVereda: DocumentRequirementDto[];
952
+ /** Foto del desmonte que se adjunta al cerrar si hay desmonte (se guarda en desmonte.foto, no en documentacion) */
953
+ declare const documentRequirementDesmonteVereda: DocumentRequirementDto[];
952
954
 
953
955
  /** Pantalla de la PWA que corrige cada error */
954
956
  type SeccionFormularioVereda = 'workflow' | 'formulario' | 'evidencias';
@@ -956,11 +958,11 @@ interface ErrorFormularioVereda {
956
958
  seccion: SeccionFormularioVereda;
957
959
  mensaje: string;
958
960
  }
959
- type AsignacionValidable = Pick<BtAlpPluzVeredaAsignacionENTITY, 'formulario_civil' | 'documentacion'>;
961
+ type AsignacionValidable = Pick<BtAlpPluzVeredaAsignacionENTITY, 'formulario_civil' | 'documentacion' | 'desmonte'>;
960
962
  /** Aviso (no bloquea) si los m² reparados no cuadran con ancho × largo × cantidad de paños */
961
963
  declare function avisoM2Vereda(metrados: MetradosVeredaDTO): string | null;
962
964
  /**
963
- * Lo que falta para cerrar el workflow y liquidar: pasos previos a CERRADO, metrados y evidencias obligatorias.
965
+ * Lo que falta para cerrar el workflow y liquidar: pasos previos a CERRADO, metrados, evidencias obligatorias y desmonte.
964
966
  * CERRADO no se exige aquí (se registra cuando esto no tiene errores); liquidar lo exige aparte.
965
967
  * Lo usan la PWA (offline) y el backend.
966
968
  */
@@ -1247,4 +1249,4 @@ declare function getCookieToken(req: Request<any>, webOrigins: string[]): string
1247
1249
 
1248
1250
  declare function validateUUIDv4Param(BadRequestException: ClassConstructor<Error>, req: Request<any>, _res: Response, next: NextFunction): Promise<void>;
1249
1251
 
1250
- export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, type CantidadMaterialAL04, type CierresPreliquidarAL02, type CierresPreliquidarAL04, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DEVOLUCION_TR_ESTADOS, DEVOLUCION_TR_MOTIVO_CAMBIO_TURNO, DIRECTORIO_DOCUMENTACION_VEREDA, DocumentacionReplanteo, type ErrorFormularioVereda, type ErrorLineaDevolucionTR, EstadoEspecialidad9612, FIRMA_DESPACHO_ACCIONES, FIRMA_DESPACHO_TIEMPOS, type FirmaDespachoMensajeRespuesta, type FirmaDespachoMensajeSolicitud, type FirmaDespachoSolicitud, FormatearErrorValidacionMOHijas, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type ILineaValidacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, type IResultadoValidacionMOHijas, type LineaDevolucionTR, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MaterialRequeridoAL04, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, type ModoMaterialesAL04, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, SOMACYL_CODIGO_CONTADOR_RETIRADO, SOMACYL_PHOTO_POSITIONS, type SaldoStockPersonal, type SeccionFormularioVereda, type SomacylPhotoKey, type StockEntregableDevolucionTR, type TARGET, TOLERANCIA_M2_VEREDA, type TipoPreliquidacionAL02, type TipoPreliquidacionAL04, UpdateNodosDocDP, ValidarRelacionMOHijasAL04, ValorizacionHelper, avisoM2Vereda, builSystemOption, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildMenu, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularSaldoStockPersonal, calcularTotalMaterialValorizacionPeru9112, cantidadFijaMOAL04, cantidadMaterialAL04, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL02, codBalizaAL04, codBalizaPreliquidarAL04, codBaremoUnicoDPAL04, codClientes, codIssueByPeriodoAL02, codMOAsfaltoHijasAL04, codMOAsfaltoMadreAL04, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOExcluidos, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMONoPreliquidablesAL04, codMOOcultosAL04, codMOPreliquidarTroncalAL02, codMOPreliquidarTroncalAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codMaterialesOcultosAL04, codNoCliente, codSopladoRD, codigoParteDiarioHoyCHILE9512, codigosBaremosSubcontrataAL02, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, codigosSopladoHP, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, documentRequirementAltasNVTMultifamiliar, documentRequirementAltasNVTUnifamiliar, documentRequirementVereda, empresas, esAsignacionPreliquidableAL02, esAsignacionPreliquidableAL04, esCadenaFechaISOValida, esMaterialDuctoAL04, esObjetoFecha, esParteDiarioAprobadoCHILE9512, esParteDiarioEditableCHILE9512, estadoRechazadaPorMetraje, estadoRechazadaPorMetrajeAL04, firmaDespachoCanalRespuesta, firmaDespachoCanalSolicitud, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getCaptureDateSomacyl, getChannelName, getContainerName, getCookieToken, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, getRequestOrigin, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, materialesAutomaticosAL04, materialesSeleccionablesAL04, modoMaterialesAL04, motivoConsumoAlmacenAL04, motivoConsumoMaterialAutomaticoDuctos, newCodMOTroncalReglaLiquidacion1, obtenerCodMOHomePass, obtenerCodMOHomePassAL04, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerEspecialidadesCerradas, obtenerEspecialidadesCerradasAL04, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, parseDuplicateKeyError, prorratearMaterialesAL04, requisitosArchivoVereda, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, subMaterialesAL04, throwDevolucionTRError, throwSomacylError, timeZoneCHILE9512, tituloFotoParteDiarioCHILE9512, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, uuidRegex, validarAsfaltoAL04, validarFormularioCivil, validarLineasDevolucionTR, validateNoLookup, validateUUIDv4Param, verifyDetailsFinalizeSomacyl, verifyFiles, verifyInventoryFinalize, verifyInventoryFinalizeSomacyl, verifyInventoryLimitsSomacyl, verifyLineasDevolucionTR, verifyPhotosFinalizeSomacyl, verifyPhotosNotFinalizedSomacyl };
1252
+ export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, type CantidadMaterialAL04, type CierresPreliquidarAL02, type CierresPreliquidarAL04, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DEVOLUCION_TR_ESTADOS, DEVOLUCION_TR_MOTIVO_CAMBIO_TURNO, DIRECTORIO_DOCUMENTACION_VEREDA, DocumentacionReplanteo, type ErrorFormularioVereda, type ErrorLineaDevolucionTR, EstadoEspecialidad9612, FIRMA_DESPACHO_ACCIONES, FIRMA_DESPACHO_TIEMPOS, type FirmaDespachoMensajeRespuesta, type FirmaDespachoMensajeSolicitud, type FirmaDespachoSolicitud, FormatearErrorValidacionMOHijas, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type ILineaValidacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, type IResultadoValidacionMOHijas, type LineaDevolucionTR, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MaterialRequeridoAL04, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, type ModoMaterialesAL04, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, SOMACYL_CODIGO_CONTADOR_RETIRADO, SOMACYL_PHOTO_POSITIONS, type SaldoStockPersonal, type SeccionFormularioVereda, type SomacylPhotoKey, type StockEntregableDevolucionTR, type TARGET, TOLERANCIA_M2_VEREDA, type TipoPreliquidacionAL02, type TipoPreliquidacionAL04, UpdateNodosDocDP, ValidarRelacionMOHijasAL04, ValorizacionHelper, avisoM2Vereda, builSystemOption, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildMenu, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularSaldoStockPersonal, calcularTotalMaterialValorizacionPeru9112, cantidadFijaMOAL04, cantidadMaterialAL04, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL02, codBalizaAL04, codBalizaPreliquidarAL04, codBaremoUnicoDPAL04, codClientes, codIssueByPeriodoAL02, codMOAsfaltoHijasAL04, codMOAsfaltoMadreAL04, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOExcluidos, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMONoPreliquidablesAL04, codMOOcultosAL04, codMOPreliquidarTroncalAL02, codMOPreliquidarTroncalAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codMaterialesOcultosAL04, codNoCliente, codSopladoRD, codigoParteDiarioHoyCHILE9512, codigosBaremosSubcontrataAL02, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, codigosSopladoHP, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, documentRequirementAltasNVTMultifamiliar, documentRequirementAltasNVTUnifamiliar, documentRequirementDesmonteVereda, documentRequirementVereda, empresas, esAsignacionPreliquidableAL02, esAsignacionPreliquidableAL04, esCadenaFechaISOValida, esMaterialDuctoAL04, esObjetoFecha, esParteDiarioAprobadoCHILE9512, esParteDiarioEditableCHILE9512, estadoRechazadaPorMetraje, estadoRechazadaPorMetrajeAL04, firmaDespachoCanalRespuesta, firmaDespachoCanalSolicitud, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getCaptureDateSomacyl, getChannelName, getContainerName, getCookieToken, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, getRequestOrigin, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, materialesAutomaticosAL04, materialesSeleccionablesAL04, modoMaterialesAL04, motivoConsumoAlmacenAL04, motivoConsumoMaterialAutomaticoDuctos, newCodMOTroncalReglaLiquidacion1, obtenerCodMOHomePass, obtenerCodMOHomePassAL04, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerEspecialidadesCerradas, obtenerEspecialidadesCerradasAL04, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, parseDuplicateKeyError, prorratearMaterialesAL04, requisitosArchivoVereda, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, subMaterialesAL04, throwDevolucionTRError, throwSomacylError, timeZoneCHILE9512, tituloFotoParteDiarioCHILE9512, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, uuidRegex, validarAsfaltoAL04, validarFormularioCivil, validarLineasDevolucionTR, validateNoLookup, validateUUIDv4Param, verifyDetailsFinalizeSomacyl, verifyFiles, verifyInventoryFinalize, verifyInventoryFinalizeSomacyl, verifyInventoryLimitsSomacyl, verifyLineasDevolucionTR, verifyPhotosFinalizeSomacyl, verifyPhotosNotFinalizedSomacyl };
package/dist/index.js CHANGED
@@ -141,6 +141,7 @@ __export(index_exports, {
141
141
  db_root: () => db_root,
142
142
  documentRequirementAltasNVTMultifamiliar: () => documentRequirementAltasNVTMultifamiliar,
143
143
  documentRequirementAltasNVTUnifamiliar: () => documentRequirementAltasNVTUnifamiliar,
144
+ documentRequirementDesmonteVereda: () => documentRequirementDesmonteVereda,
144
145
  documentRequirementVereda: () => documentRequirementVereda,
145
146
  empresas: () => empresas,
146
147
  esAsignacionPreliquidableAL02: () => esAsignacionPreliquidableAL02,
@@ -280,8 +281,12 @@ var ActualizarDataResumenLiquidacionesColombia = /* @__PURE__ */ __name((ManoObr
280
281
  if (ManoObra && ManoObra.Valorizacion && Array.isArray(ManoObra.Valorizacion)) {
281
282
  for (const valorizacion of ManoObra.Valorizacion) {
282
283
  valorizacion.CantidadUsado = 0;
284
+ valorizacion.CantidadUOUsado = 0;
283
285
  const val = ResumenPreLiquidado.MoUo.find((e) => e.LineaCodigoCub === valorizacion.DetalleChile.LineaCodigoCub);
284
- if (val) valorizacion.CantidadUsado = val.Cantidad;
286
+ if (val) {
287
+ valorizacion.CantidadUsado = val.Cantidad;
288
+ valorizacion.CantidadUOUsado = val.CantidadUO;
289
+ }
285
290
  }
286
291
  }
287
292
  if (Reserva && Reserva.Item && Array.isArray(Reserva.Item)) {
@@ -310,8 +315,12 @@ var ActualizarDataResumenLiquidaciones = /* @__PURE__ */ __name((ManoObra, Reser
310
315
  if (ManoObra && ManoObra.Valorizacion && Array.isArray(ManoObra.Valorizacion)) {
311
316
  for (const valorizacion of ManoObra.Valorizacion) {
312
317
  valorizacion.CantidadUsado = 0;
318
+ valorizacion.CantidadUOUsado = 0;
313
319
  const val = ResumenPreLiquidado.MoUo.find((e) => e.LineaCodigoCub === valorizacion.DetalleChile.LineaCodigoCub);
314
- if (val) valorizacion.CantidadUsado = val.Cantidad;
320
+ if (val) {
321
+ valorizacion.CantidadUsado = val.Cantidad;
322
+ valorizacion.CantidadUOUsado = val.CantidadUO;
323
+ }
315
324
  }
316
325
  }
317
326
  if (Reserva && Reserva.Item && Array.isArray(Reserva.Item)) {
@@ -15764,8 +15773,12 @@ var ActualizarDataResumenValorizacionesAlemania = /* @__PURE__ */ __name((ManoOb
15764
15773
  if (ManoObra && ManoObra.Valorizacion && Array.isArray(ManoObra.Valorizacion)) {
15765
15774
  for (const valorizacion of ManoObra.Valorizacion) {
15766
15775
  valorizacion.CantidadUsado = 0;
15776
+ valorizacion.CantidadUOUsado = 0;
15767
15777
  const val = ResumenPreLiquidado.MoUo.find((e) => e.LineaCodigoCub === valorizacion.DetalleChile.LineaCodigoCub);
15768
- if (val) valorizacion.CantidadUsado = val.Cantidad;
15778
+ if (val) {
15779
+ valorizacion.CantidadUsado = val.Cantidad;
15780
+ valorizacion.CantidadUOUsado = val.CantidadUO;
15781
+ }
15769
15782
  }
15770
15783
  }
15771
15784
  if (Reserva && Reserva.Item && Array.isArray(Reserva.Item)) {
@@ -17560,6 +17573,9 @@ var documentRequirementVereda = [
17560
17573
  ])
17561
17574
  ];
17562
17575
  var requisitosArchivoVereda = documentRequirementVereda.flatMap((item) => item.children);
17576
+ var documentRequirementDesmonteVereda = [
17577
+ archivo("DESMONTE", "Foto del desmonte", 1, fotos, true)
17578
+ ];
17563
17579
 
17564
17580
  // src/Operativa/BtAlpPluzVereda/validarFormularioCivil.ts
17565
17581
  var import_sigo_entities8 = require("sigo-entities");
@@ -17608,6 +17624,17 @@ function validarFormularioCivil(asignacion) {
17608
17624
  });
17609
17625
  }
17610
17626
  }
17627
+ if (!asignacion.desmonte) {
17628
+ errores.push({
17629
+ seccion: "workflow",
17630
+ mensaje: "Indique si hay desmonte"
17631
+ });
17632
+ } else if (asignacion.desmonte.tiene_desmonte && !asignacion.desmonte.foto) {
17633
+ errores.push({
17634
+ seccion: "workflow",
17635
+ mensaje: "Falta la foto del desmonte"
17636
+ });
17637
+ }
17611
17638
  return {
17612
17639
  errores,
17613
17640
  avisos
@@ -18101,6 +18128,7 @@ __name(validateUUIDv4Param, "validateUUIDv4Param");
18101
18128
  db_root,
18102
18129
  documentRequirementAltasNVTMultifamiliar,
18103
18130
  documentRequirementAltasNVTUnifamiliar,
18131
+ documentRequirementDesmonteVereda,
18104
18132
  documentRequirementVereda,
18105
18133
  empresas,
18106
18134
  esAsignacionPreliquidableAL02,
package/dist/index.mjs CHANGED
@@ -42,8 +42,12 @@ var ActualizarDataResumenLiquidacionesColombia = /* @__PURE__ */ __name((ManoObr
42
42
  if (ManoObra && ManoObra.Valorizacion && Array.isArray(ManoObra.Valorizacion)) {
43
43
  for (const valorizacion of ManoObra.Valorizacion) {
44
44
  valorizacion.CantidadUsado = 0;
45
+ valorizacion.CantidadUOUsado = 0;
45
46
  const val = ResumenPreLiquidado.MoUo.find((e) => e.LineaCodigoCub === valorizacion.DetalleChile.LineaCodigoCub);
46
- if (val) valorizacion.CantidadUsado = val.Cantidad;
47
+ if (val) {
48
+ valorizacion.CantidadUsado = val.Cantidad;
49
+ valorizacion.CantidadUOUsado = val.CantidadUO;
50
+ }
47
51
  }
48
52
  }
49
53
  if (Reserva && Reserva.Item && Array.isArray(Reserva.Item)) {
@@ -72,8 +76,12 @@ var ActualizarDataResumenLiquidaciones = /* @__PURE__ */ __name((ManoObra, Reser
72
76
  if (ManoObra && ManoObra.Valorizacion && Array.isArray(ManoObra.Valorizacion)) {
73
77
  for (const valorizacion of ManoObra.Valorizacion) {
74
78
  valorizacion.CantidadUsado = 0;
79
+ valorizacion.CantidadUOUsado = 0;
75
80
  const val = ResumenPreLiquidado.MoUo.find((e) => e.LineaCodigoCub === valorizacion.DetalleChile.LineaCodigoCub);
76
- if (val) valorizacion.CantidadUsado = val.Cantidad;
81
+ if (val) {
82
+ valorizacion.CantidadUsado = val.Cantidad;
83
+ valorizacion.CantidadUOUsado = val.CantidadUO;
84
+ }
77
85
  }
78
86
  }
79
87
  if (Reserva && Reserva.Item && Array.isArray(Reserva.Item)) {
@@ -15526,8 +15534,12 @@ var ActualizarDataResumenValorizacionesAlemania = /* @__PURE__ */ __name((ManoOb
15526
15534
  if (ManoObra && ManoObra.Valorizacion && Array.isArray(ManoObra.Valorizacion)) {
15527
15535
  for (const valorizacion of ManoObra.Valorizacion) {
15528
15536
  valorizacion.CantidadUsado = 0;
15537
+ valorizacion.CantidadUOUsado = 0;
15529
15538
  const val = ResumenPreLiquidado.MoUo.find((e) => e.LineaCodigoCub === valorizacion.DetalleChile.LineaCodigoCub);
15530
- if (val) valorizacion.CantidadUsado = val.Cantidad;
15539
+ if (val) {
15540
+ valorizacion.CantidadUsado = val.Cantidad;
15541
+ valorizacion.CantidadUOUsado = val.CantidadUO;
15542
+ }
15531
15543
  }
15532
15544
  }
15533
15545
  if (Reserva && Reserva.Item && Array.isArray(Reserva.Item)) {
@@ -17322,6 +17334,9 @@ var documentRequirementVereda = [
17322
17334
  ])
17323
17335
  ];
17324
17336
  var requisitosArchivoVereda = documentRequirementVereda.flatMap((item) => item.children);
17337
+ var documentRequirementDesmonteVereda = [
17338
+ archivo("DESMONTE", "Foto del desmonte", 1, fotos, true)
17339
+ ];
17325
17340
 
17326
17341
  // src/Operativa/BtAlpPluzVereda/validarFormularioCivil.ts
17327
17342
  import { PASOS_WORKFLOW_VEREDA } from "sigo-entities";
@@ -17370,6 +17385,17 @@ function validarFormularioCivil(asignacion) {
17370
17385
  });
17371
17386
  }
17372
17387
  }
17388
+ if (!asignacion.desmonte) {
17389
+ errores.push({
17390
+ seccion: "workflow",
17391
+ mensaje: "Indique si hay desmonte"
17392
+ });
17393
+ } else if (asignacion.desmonte.tiene_desmonte && !asignacion.desmonte.foto) {
17394
+ errores.push({
17395
+ seccion: "workflow",
17396
+ mensaje: "Falta la foto del desmonte"
17397
+ });
17398
+ }
17373
17399
  return {
17374
17400
  errores,
17375
17401
  avisos
@@ -17862,6 +17888,7 @@ export {
17862
17888
  db_root,
17863
17889
  documentRequirementAltasNVTMultifamiliar,
17864
17890
  documentRequirementAltasNVTUnifamiliar,
17891
+ documentRequirementDesmonteVereda,
17865
17892
  documentRequirementVereda,
17866
17893
  empresas,
17867
17894
  esAsignacionPreliquidableAL02,
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
- {
2
- "name": "sigo-package",
3
- "version": "1.2.185",
4
- "description": "Funciones compartidas 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": "node --run build"
11
- },
12
- "keywords": [],
13
- "author": "Antonio Mejia",
14
- "license": "ISC",
15
- "devDependencies": {
16
- "@swc/core": "^1.11.22",
17
- "@types/express": "^5.0.1",
18
- "@types/webpack-env": "^1.18.8",
19
- "tsc-alias": "^1.8.15",
20
- "tsup": "^8.5.1",
21
- "typescript": "^5.7.3"
22
- },
23
- "peerDependencies": {
24
- "class-validator": "^0.15.1",
25
- "sigo-entities": "^1.2.514"
26
- },
27
- "overrides": {
28
- "esbuild": "^0.28.0"
29
- }
30
- }
1
+ {
2
+ "name": "sigo-package",
3
+ "version": "1.2.187",
4
+ "description": "Funciones compartidas 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": "node --run build"
11
+ },
12
+ "keywords": [],
13
+ "author": "Antonio Mejia",
14
+ "license": "ISC",
15
+ "devDependencies": {
16
+ "@swc/core": "^1.11.22",
17
+ "@types/express": "^5.0.1",
18
+ "@types/webpack-env": "^1.18.8",
19
+ "tsc-alias": "^1.8.15",
20
+ "tsup": "^8.5.1",
21
+ "typescript": "^5.7.3"
22
+ },
23
+ "peerDependencies": {
24
+ "class-validator": "^0.15.1",
25
+ "sigo-entities": "^1.2.548"
26
+ },
27
+ "overrides": {
28
+ "esbuild": "^0.28.0"
29
+ }
30
+ }