sigo-package 1.2.126 → 1.2.128
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 +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +23 -4
- package/dist/index.mjs +22 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -726,7 +726,12 @@ declare function getDateInTimeZone(timeZone: TimeZone): Date;
|
|
|
726
726
|
declare function generateUniqueNumber(): number;
|
|
727
727
|
declare function generateUniqueNumberArray(index: number): Promise<number>;
|
|
728
728
|
|
|
729
|
-
|
|
729
|
+
interface ContextOptions {
|
|
730
|
+
colModels: boolean;
|
|
731
|
+
}
|
|
732
|
+
declare function setContext(this: any, modules: __WebpackModuleApi.RequireContext, obj?: ContextOptions): void;
|
|
733
|
+
|
|
734
|
+
declare function setColModels(this: any, modules: __WebpackModuleApi.RequireContext): void;
|
|
730
735
|
|
|
731
736
|
declare function getContainerName(dirname: string): string;
|
|
732
737
|
|
|
@@ -759,7 +764,7 @@ declare const collections: {
|
|
|
759
764
|
readonly CHILE_9512_ToaClaroOrderStock: "CHILE_9512_ToaClaroOrderStock";
|
|
760
765
|
readonly PERU_9112_ToaOrderPreliquidacion: "PERU_9112_ToaOrderPreliquidacion";
|
|
761
766
|
readonly PERU_9112_ClienteWAOO: "PERU_9112_ClienteWAOO";
|
|
762
|
-
readonly
|
|
767
|
+
readonly ESPAÑA_1729_SomacylOrderStock: "ESPAÑA_1729_SomacylOrderStock";
|
|
763
768
|
};
|
|
764
769
|
|
|
765
770
|
declare const db_root = "sigo_db";
|
|
@@ -774,4 +779,4 @@ declare function getDBName({ pais, delegacion }: {
|
|
|
774
779
|
delegacion: CodigoNombreDTO;
|
|
775
780
|
}): string;
|
|
776
781
|
|
|
777
|
-
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularTotalMaterialValorizacionPeru9112, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, codIssueByPeriodoAL02, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, colecciones, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, roundNumber, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, validateNoLookup };
|
|
782
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularTotalMaterialValorizacionPeru9112, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, codIssueByPeriodoAL02, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, colecciones, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, validateNoLookup };
|
package/dist/index.d.ts
CHANGED
|
@@ -726,7 +726,12 @@ declare function getDateInTimeZone(timeZone: TimeZone): Date;
|
|
|
726
726
|
declare function generateUniqueNumber(): number;
|
|
727
727
|
declare function generateUniqueNumberArray(index: number): Promise<number>;
|
|
728
728
|
|
|
729
|
-
|
|
729
|
+
interface ContextOptions {
|
|
730
|
+
colModels: boolean;
|
|
731
|
+
}
|
|
732
|
+
declare function setContext(this: any, modules: __WebpackModuleApi.RequireContext, obj?: ContextOptions): void;
|
|
733
|
+
|
|
734
|
+
declare function setColModels(this: any, modules: __WebpackModuleApi.RequireContext): void;
|
|
730
735
|
|
|
731
736
|
declare function getContainerName(dirname: string): string;
|
|
732
737
|
|
|
@@ -759,7 +764,7 @@ declare const collections: {
|
|
|
759
764
|
readonly CHILE_9512_ToaClaroOrderStock: "CHILE_9512_ToaClaroOrderStock";
|
|
760
765
|
readonly PERU_9112_ToaOrderPreliquidacion: "PERU_9112_ToaOrderPreliquidacion";
|
|
761
766
|
readonly PERU_9112_ClienteWAOO: "PERU_9112_ClienteWAOO";
|
|
762
|
-
readonly
|
|
767
|
+
readonly ESPAÑA_1729_SomacylOrderStock: "ESPAÑA_1729_SomacylOrderStock";
|
|
763
768
|
};
|
|
764
769
|
|
|
765
770
|
declare const db_root = "sigo_db";
|
|
@@ -774,4 +779,4 @@ declare function getDBName({ pais, delegacion }: {
|
|
|
774
779
|
delegacion: CodigoNombreDTO;
|
|
775
780
|
}): string;
|
|
776
781
|
|
|
777
|
-
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularTotalMaterialValorizacionPeru9112, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, codIssueByPeriodoAL02, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, colecciones, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, roundNumber, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, validateNoLookup };
|
|
782
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularTotalMaterialValorizacionPeru9112, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, codIssueByPeriodoAL02, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, colecciones, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, validateNoLookup };
|
package/dist/index.js
CHANGED
|
@@ -156,6 +156,7 @@ __export(index_exports, {
|
|
|
156
156
|
paisMap: () => paisMap,
|
|
157
157
|
roundNumber: () => roundNumber,
|
|
158
158
|
searchCurrentContractorSpecialtyPrice: () => searchCurrentContractorSpecialtyPrice,
|
|
159
|
+
setColModels: () => setColModels,
|
|
159
160
|
setContext: () => setContext,
|
|
160
161
|
updatePriceContractorMOAL02: () => updatePriceContractorMOAL02,
|
|
161
162
|
updatePriceContractorMOAL04: () => updatePriceContractorMOAL04,
|
|
@@ -16429,7 +16430,10 @@ var getDataType = /* @__PURE__ */ __name((value) => {
|
|
|
16429
16430
|
var isColModel = /* @__PURE__ */ __name((value) => getDataType(value) === "function" && value.name.toLowerCase().includes("colmodel"), "isColModel");
|
|
16430
16431
|
|
|
16431
16432
|
// src/shared/Utils/setContext.ts
|
|
16432
|
-
|
|
16433
|
+
var defaultContextOptions = {
|
|
16434
|
+
colModels: true
|
|
16435
|
+
};
|
|
16436
|
+
function setContext(modules, obj = defaultContextOptions) {
|
|
16433
16437
|
const routes = modules.keys().filter((item) => item.startsWith("./"));
|
|
16434
16438
|
const buildx = routes.reduce((result, path) => {
|
|
16435
16439
|
const file = modules(path);
|
|
@@ -16446,12 +16450,26 @@ function setContext(modules) {
|
|
|
16446
16450
|
});
|
|
16447
16451
|
Object.entries(buildx.functions).forEach(([key, funct]) => {
|
|
16448
16452
|
const colModel = isColModel(funct);
|
|
16449
|
-
if (colModel)
|
|
16450
|
-
|
|
16453
|
+
if (colModel) {
|
|
16454
|
+
if (obj.colModels) this[key] = funct.call(this);
|
|
16455
|
+
} else this[key] = funct.bind(this);
|
|
16451
16456
|
});
|
|
16452
16457
|
}
|
|
16453
16458
|
__name(setContext, "setContext");
|
|
16454
16459
|
|
|
16460
|
+
// src/shared/Utils/setColModels.ts
|
|
16461
|
+
function setColModels(modules) {
|
|
16462
|
+
modules.keys().filter((path) => path.startsWith("./")).forEach((path) => {
|
|
16463
|
+
const file = modules(path);
|
|
16464
|
+
Object.entries(file).forEach(([key, value]) => {
|
|
16465
|
+
if (getDataType(value) === "function" && isColModel(value)) {
|
|
16466
|
+
this[key] = value.call(this);
|
|
16467
|
+
}
|
|
16468
|
+
});
|
|
16469
|
+
});
|
|
16470
|
+
}
|
|
16471
|
+
__name(setColModels, "setColModels");
|
|
16472
|
+
|
|
16455
16473
|
// src/shared/Utils/getContainerName.ts
|
|
16456
16474
|
function getContainerName(dirname) {
|
|
16457
16475
|
const containerName = dirname.split("src")[1].split("\\").filter(Boolean).map((word) => word[0].toUpperCase() + word.slice(1)).join("");
|
|
@@ -16786,7 +16804,7 @@ var collections = {
|
|
|
16786
16804
|
CHILE_9512_ToaClaroOrderStock: "CHILE_9512_ToaClaroOrderStock",
|
|
16787
16805
|
PERU_9112_ToaOrderPreliquidacion: "PERU_9112_ToaOrderPreliquidacion",
|
|
16788
16806
|
PERU_9112_ClienteWAOO: "PERU_9112_ClienteWAOO",
|
|
16789
|
-
|
|
16807
|
+
ESPA\u00D1A_1729_SomacylOrderStock: "ESPA\xD1A_1729_SomacylOrderStock"
|
|
16790
16808
|
};
|
|
16791
16809
|
|
|
16792
16810
|
// src/v2/constants/db.ts
|
|
@@ -16938,6 +16956,7 @@ __name(getDBName, "getDBName");
|
|
|
16938
16956
|
paisMap,
|
|
16939
16957
|
roundNumber,
|
|
16940
16958
|
searchCurrentContractorSpecialtyPrice,
|
|
16959
|
+
setColModels,
|
|
16941
16960
|
setContext,
|
|
16942
16961
|
updatePriceContractorMOAL02,
|
|
16943
16962
|
updatePriceContractorMOAL04,
|
package/dist/index.mjs
CHANGED
|
@@ -16265,7 +16265,10 @@ var getDataType = /* @__PURE__ */ __name((value) => {
|
|
|
16265
16265
|
var isColModel = /* @__PURE__ */ __name((value) => getDataType(value) === "function" && value.name.toLowerCase().includes("colmodel"), "isColModel");
|
|
16266
16266
|
|
|
16267
16267
|
// src/shared/Utils/setContext.ts
|
|
16268
|
-
|
|
16268
|
+
var defaultContextOptions = {
|
|
16269
|
+
colModels: true
|
|
16270
|
+
};
|
|
16271
|
+
function setContext(modules, obj = defaultContextOptions) {
|
|
16269
16272
|
const routes = modules.keys().filter((item) => item.startsWith("./"));
|
|
16270
16273
|
const buildx = routes.reduce((result, path) => {
|
|
16271
16274
|
const file = modules(path);
|
|
@@ -16282,12 +16285,26 @@ function setContext(modules) {
|
|
|
16282
16285
|
});
|
|
16283
16286
|
Object.entries(buildx.functions).forEach(([key, funct]) => {
|
|
16284
16287
|
const colModel = isColModel(funct);
|
|
16285
|
-
if (colModel)
|
|
16286
|
-
|
|
16288
|
+
if (colModel) {
|
|
16289
|
+
if (obj.colModels) this[key] = funct.call(this);
|
|
16290
|
+
} else this[key] = funct.bind(this);
|
|
16287
16291
|
});
|
|
16288
16292
|
}
|
|
16289
16293
|
__name(setContext, "setContext");
|
|
16290
16294
|
|
|
16295
|
+
// src/shared/Utils/setColModels.ts
|
|
16296
|
+
function setColModels(modules) {
|
|
16297
|
+
modules.keys().filter((path) => path.startsWith("./")).forEach((path) => {
|
|
16298
|
+
const file = modules(path);
|
|
16299
|
+
Object.entries(file).forEach(([key, value]) => {
|
|
16300
|
+
if (getDataType(value) === "function" && isColModel(value)) {
|
|
16301
|
+
this[key] = value.call(this);
|
|
16302
|
+
}
|
|
16303
|
+
});
|
|
16304
|
+
});
|
|
16305
|
+
}
|
|
16306
|
+
__name(setColModels, "setColModels");
|
|
16307
|
+
|
|
16291
16308
|
// src/shared/Utils/getContainerName.ts
|
|
16292
16309
|
function getContainerName(dirname) {
|
|
16293
16310
|
const containerName = dirname.split("src")[1].split("\\").filter(Boolean).map((word) => word[0].toUpperCase() + word.slice(1)).join("");
|
|
@@ -16622,7 +16639,7 @@ var collections = {
|
|
|
16622
16639
|
CHILE_9512_ToaClaroOrderStock: "CHILE_9512_ToaClaroOrderStock",
|
|
16623
16640
|
PERU_9112_ToaOrderPreliquidacion: "PERU_9112_ToaOrderPreliquidacion",
|
|
16624
16641
|
PERU_9112_ClienteWAOO: "PERU_9112_ClienteWAOO",
|
|
16625
|
-
|
|
16642
|
+
ESPA\u00D1A_1729_SomacylOrderStock: "ESPA\xD1A_1729_SomacylOrderStock"
|
|
16626
16643
|
};
|
|
16627
16644
|
|
|
16628
16645
|
// src/v2/constants/db.ts
|
|
@@ -16773,6 +16790,7 @@ export {
|
|
|
16773
16790
|
paisMap,
|
|
16774
16791
|
roundNumber,
|
|
16775
16792
|
searchCurrentContractorSpecialtyPrice,
|
|
16793
|
+
setColModels,
|
|
16776
16794
|
setContext,
|
|
16777
16795
|
updatePriceContractorMOAL02,
|
|
16778
16796
|
updatePriceContractorMOAL04,
|