sigo-package 1.2.142 → 1.2.143
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 +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +46 -0
- package/dist/index.mjs +45 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as sigo_entities from 'sigo-entities';
|
|
2
|
-
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, CodigoNombreUMDTO, PrecioContratistaMOAL04ENTITY, ManoObraGlobalENTITY, ValorizacionManoObraDTO, PrecioContratistaMOAL02ENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionAlemaniaDTO, ValorizacionDTO, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO, PrecioMaterialENTITY, CodigoNombreDTO, SystemOptionEntity } from 'sigo-entities';
|
|
2
|
+
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, CodigoNombreUMDTO, PrecioContratistaMOAL04ENTITY, ManoObraGlobalENTITY, ValorizacionManoObraDTO, PrecioContratistaMOAL02ENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionAlemaniaDTO, ValorizacionDTO, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO, PrecioMaterialENTITY, CodigoNombreDTO, SystemOptionEntity, MenuDto } from 'sigo-entities';
|
|
3
3
|
import { ClassConstructor } from 'class-transformer';
|
|
4
4
|
|
|
5
5
|
interface IenvSIGO$1 {
|
|
@@ -814,4 +814,6 @@ declare function builSystemOption(params: IParams): Promise<{
|
|
|
814
814
|
newData: SystemOptionEntity[];
|
|
815
815
|
}>;
|
|
816
816
|
|
|
817
|
-
|
|
817
|
+
declare const buildMenu: (data: SystemOptionEntity[]) => MenuDto[];
|
|
818
|
+
|
|
819
|
+
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, builSystemOption, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildMenu, 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, 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, parseDuplicateKeyError, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, uuidRegex, validateNoLookup };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as sigo_entities from 'sigo-entities';
|
|
2
|
-
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, CodigoNombreUMDTO, PrecioContratistaMOAL04ENTITY, ManoObraGlobalENTITY, ValorizacionManoObraDTO, PrecioContratistaMOAL02ENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionAlemaniaDTO, ValorizacionDTO, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO, PrecioMaterialENTITY, CodigoNombreDTO, SystemOptionEntity } from 'sigo-entities';
|
|
2
|
+
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, CodigoNombreUMDTO, PrecioContratistaMOAL04ENTITY, ManoObraGlobalENTITY, ValorizacionManoObraDTO, PrecioContratistaMOAL02ENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionAlemaniaDTO, ValorizacionDTO, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO, PrecioMaterialENTITY, CodigoNombreDTO, SystemOptionEntity, MenuDto } from 'sigo-entities';
|
|
3
3
|
import { ClassConstructor } from 'class-transformer';
|
|
4
4
|
|
|
5
5
|
interface IenvSIGO$1 {
|
|
@@ -814,4 +814,6 @@ declare function builSystemOption(params: IParams): Promise<{
|
|
|
814
814
|
newData: SystemOptionEntity[];
|
|
815
815
|
}>;
|
|
816
816
|
|
|
817
|
-
|
|
817
|
+
declare const buildMenu: (data: SystemOptionEntity[]) => MenuDto[];
|
|
818
|
+
|
|
819
|
+
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, builSystemOption, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildMenu, 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, 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, parseDuplicateKeyError, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, uuidRegex, validateNoLookup };
|
package/dist/index.js
CHANGED
|
@@ -66,6 +66,7 @@ __export(index_exports, {
|
|
|
66
66
|
buildDataMOFromMaterialRules: () => buildDataMOFromMaterialRules,
|
|
67
67
|
buildDataMaterialsRule: () => buildDataMaterialsRule,
|
|
68
68
|
buildKeyMO: () => buildKeyMO,
|
|
69
|
+
buildMenu: () => buildMenu,
|
|
69
70
|
buildReservaMOJobMajorProjectsAlemaniaAL02: () => buildReservaMOJobMajorProjectsAlemaniaAL02,
|
|
70
71
|
buildReservaMOJobMajorProjectsAlemaniaAL04: () => buildReservaMOJobMajorProjectsAlemaniaAL04,
|
|
71
72
|
buildTenantCollectionName: () => buildTenantCollectionName,
|
|
@@ -16902,6 +16903,50 @@ async function builSystemOption(params) {
|
|
|
16902
16903
|
};
|
|
16903
16904
|
}
|
|
16904
16905
|
__name(builSystemOption, "builSystemOption");
|
|
16906
|
+
|
|
16907
|
+
// src/v2/utils/buildMenu.ts
|
|
16908
|
+
var buildMenu = /* @__PURE__ */ __name((data) => {
|
|
16909
|
+
const tree = {};
|
|
16910
|
+
function formatText(text) {
|
|
16911
|
+
return text.toLowerCase().replace(/-/g, " ").replace(/\b\w/g, (char) => char.toUpperCase());
|
|
16912
|
+
}
|
|
16913
|
+
__name(formatText, "formatText");
|
|
16914
|
+
data.forEach((item) => {
|
|
16915
|
+
const methodMap = {
|
|
16916
|
+
"GET": "Consultar todos los registros",
|
|
16917
|
+
"POST": "Crear un registro",
|
|
16918
|
+
"PUT": "Actualizar",
|
|
16919
|
+
"DELETE": "Eliminar"
|
|
16920
|
+
};
|
|
16921
|
+
let label = `${item.name} ${item.method ? item.method : ""}`.trim();
|
|
16922
|
+
if (item.method) {
|
|
16923
|
+
const includeParmas = item.name.includes(":");
|
|
16924
|
+
if (includeParmas) {
|
|
16925
|
+
const accion = methodMap[item.method];
|
|
16926
|
+
label = `${accion} por ${item.name.replace(":", "")}`;
|
|
16927
|
+
} else if (methodMap[label]) {
|
|
16928
|
+
label = methodMap[label];
|
|
16929
|
+
} else {
|
|
16930
|
+
label = formatText(item.name);
|
|
16931
|
+
}
|
|
16932
|
+
}
|
|
16933
|
+
tree[item.key] = {
|
|
16934
|
+
children: [],
|
|
16935
|
+
id: item._id,
|
|
16936
|
+
label,
|
|
16937
|
+
systemOption: item
|
|
16938
|
+
};
|
|
16939
|
+
});
|
|
16940
|
+
const rootItems = [];
|
|
16941
|
+
data.forEach((item) => {
|
|
16942
|
+
if (item.father) {
|
|
16943
|
+
tree[item.father].children.push(tree[item.key]);
|
|
16944
|
+
} else {
|
|
16945
|
+
rootItems.push(tree[item.key]);
|
|
16946
|
+
}
|
|
16947
|
+
});
|
|
16948
|
+
return rootItems;
|
|
16949
|
+
}, "buildMenu");
|
|
16905
16950
|
// Annotate the CommonJS export names for ESM import in node:
|
|
16906
16951
|
0 && (module.exports = {
|
|
16907
16952
|
ActualizarDataManoObra,
|
|
@@ -16947,6 +16992,7 @@ __name(builSystemOption, "builSystemOption");
|
|
|
16947
16992
|
buildDataMOFromMaterialRules,
|
|
16948
16993
|
buildDataMaterialsRule,
|
|
16949
16994
|
buildKeyMO,
|
|
16995
|
+
buildMenu,
|
|
16950
16996
|
buildReservaMOJobMajorProjectsAlemaniaAL02,
|
|
16951
16997
|
buildReservaMOJobMajorProjectsAlemaniaAL04,
|
|
16952
16998
|
buildTenantCollectionName,
|
package/dist/index.mjs
CHANGED
|
@@ -16735,6 +16735,50 @@ async function builSystemOption(params) {
|
|
|
16735
16735
|
};
|
|
16736
16736
|
}
|
|
16737
16737
|
__name(builSystemOption, "builSystemOption");
|
|
16738
|
+
|
|
16739
|
+
// src/v2/utils/buildMenu.ts
|
|
16740
|
+
var buildMenu = /* @__PURE__ */ __name((data) => {
|
|
16741
|
+
const tree = {};
|
|
16742
|
+
function formatText(text) {
|
|
16743
|
+
return text.toLowerCase().replace(/-/g, " ").replace(/\b\w/g, (char) => char.toUpperCase());
|
|
16744
|
+
}
|
|
16745
|
+
__name(formatText, "formatText");
|
|
16746
|
+
data.forEach((item) => {
|
|
16747
|
+
const methodMap = {
|
|
16748
|
+
"GET": "Consultar todos los registros",
|
|
16749
|
+
"POST": "Crear un registro",
|
|
16750
|
+
"PUT": "Actualizar",
|
|
16751
|
+
"DELETE": "Eliminar"
|
|
16752
|
+
};
|
|
16753
|
+
let label = `${item.name} ${item.method ? item.method : ""}`.trim();
|
|
16754
|
+
if (item.method) {
|
|
16755
|
+
const includeParmas = item.name.includes(":");
|
|
16756
|
+
if (includeParmas) {
|
|
16757
|
+
const accion = methodMap[item.method];
|
|
16758
|
+
label = `${accion} por ${item.name.replace(":", "")}`;
|
|
16759
|
+
} else if (methodMap[label]) {
|
|
16760
|
+
label = methodMap[label];
|
|
16761
|
+
} else {
|
|
16762
|
+
label = formatText(item.name);
|
|
16763
|
+
}
|
|
16764
|
+
}
|
|
16765
|
+
tree[item.key] = {
|
|
16766
|
+
children: [],
|
|
16767
|
+
id: item._id,
|
|
16768
|
+
label,
|
|
16769
|
+
systemOption: item
|
|
16770
|
+
};
|
|
16771
|
+
});
|
|
16772
|
+
const rootItems = [];
|
|
16773
|
+
data.forEach((item) => {
|
|
16774
|
+
if (item.father) {
|
|
16775
|
+
tree[item.father].children.push(tree[item.key]);
|
|
16776
|
+
} else {
|
|
16777
|
+
rootItems.push(tree[item.key]);
|
|
16778
|
+
}
|
|
16779
|
+
});
|
|
16780
|
+
return rootItems;
|
|
16781
|
+
}, "buildMenu");
|
|
16738
16782
|
export {
|
|
16739
16783
|
ActualizarDataManoObra,
|
|
16740
16784
|
ActualizarDataReserva,
|
|
@@ -16779,6 +16823,7 @@ export {
|
|
|
16779
16823
|
buildDataMOFromMaterialRules,
|
|
16780
16824
|
buildDataMaterialsRule,
|
|
16781
16825
|
buildKeyMO,
|
|
16826
|
+
buildMenu,
|
|
16782
16827
|
buildReservaMOJobMajorProjectsAlemaniaAL02,
|
|
16783
16828
|
buildReservaMOJobMajorProjectsAlemaniaAL04,
|
|
16784
16829
|
buildTenantCollectionName,
|