sigo-package 1.2.89 → 1.2.91
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 +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +27 -2
- package/dist/index.mjs +23 -2
- 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, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionManoObraDTO, ValorizacionAlemaniaDTO, PrecioContratistaMOAL02ENTITY, ValorizacionDTO, PrecioContratistaMOAL04ENTITY, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO } from 'sigo-entities';
|
|
2
|
+
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionManoObraDTO, ValorizacionAlemaniaDTO, PrecioContratistaMOAL02ENTITY, ValorizacionDTO, PrecioContratistaMOAL04ENTITY, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO, CodigoNombreDTO } from 'sigo-entities';
|
|
3
3
|
|
|
4
4
|
interface IenvSIGO$1 {
|
|
5
5
|
SISTEMAS_VALORIZACION_MANO_OBRA: string[];
|
|
@@ -716,4 +716,16 @@ declare const collections: {
|
|
|
716
716
|
readonly CHILE_9512_ToaClaroOrderStock: "CHILE_9512_ToaClaroOrderStock";
|
|
717
717
|
};
|
|
718
718
|
|
|
719
|
-
|
|
719
|
+
declare const db_root = "sigo_db";
|
|
720
|
+
declare const db_default = "default_db";
|
|
721
|
+
|
|
722
|
+
declare const colecciones: Readonly<{
|
|
723
|
+
USUARIOS: "usuarios";
|
|
724
|
+
}>;
|
|
725
|
+
|
|
726
|
+
declare function getDBName({ pais, delegacion }: {
|
|
727
|
+
pais: CodigoNombreDTO;
|
|
728
|
+
delegacion: CodigoNombreDTO;
|
|
729
|
+
}): string;
|
|
730
|
+
|
|
731
|
+
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, buildTenantCollectionName, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, 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, 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, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, 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, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionManoObraDTO, ValorizacionAlemaniaDTO, PrecioContratistaMOAL02ENTITY, ValorizacionDTO, PrecioContratistaMOAL04ENTITY, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO } from 'sigo-entities';
|
|
2
|
+
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionManoObraDTO, ValorizacionAlemaniaDTO, PrecioContratistaMOAL02ENTITY, ValorizacionDTO, PrecioContratistaMOAL04ENTITY, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY, DetalleChileValorizacionMODTO, CodigoNombreDTO } from 'sigo-entities';
|
|
3
3
|
|
|
4
4
|
interface IenvSIGO$1 {
|
|
5
5
|
SISTEMAS_VALORIZACION_MANO_OBRA: string[];
|
|
@@ -716,4 +716,16 @@ declare const collections: {
|
|
|
716
716
|
readonly CHILE_9512_ToaClaroOrderStock: "CHILE_9512_ToaClaroOrderStock";
|
|
717
717
|
};
|
|
718
718
|
|
|
719
|
-
|
|
719
|
+
declare const db_root = "sigo_db";
|
|
720
|
+
declare const db_default = "default_db";
|
|
721
|
+
|
|
722
|
+
declare const colecciones: Readonly<{
|
|
723
|
+
USUARIOS: "usuarios";
|
|
724
|
+
}>;
|
|
725
|
+
|
|
726
|
+
declare function getDBName({ pais, delegacion }: {
|
|
727
|
+
pais: CodigoNombreDTO;
|
|
728
|
+
delegacion: CodigoNombreDTO;
|
|
729
|
+
}): string;
|
|
730
|
+
|
|
731
|
+
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, buildTenantCollectionName, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, 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, 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, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
package/dist/index.js
CHANGED
|
@@ -101,10 +101,13 @@ __export(index_exports, {
|
|
|
101
101
|
codigosMOT1_F2: () => codigosMOT1_F2,
|
|
102
102
|
codigosMaterialDuctos: () => codigosMaterialDuctos,
|
|
103
103
|
codigosMaterialUGG: () => codigosMaterialUGG,
|
|
104
|
+
colecciones: () => colecciones,
|
|
104
105
|
collections: () => collections,
|
|
105
106
|
consumirStockPersonal: () => consumirStockPersonal,
|
|
106
107
|
convertDates: () => convertDates,
|
|
107
108
|
dataFlujosHomePass: () => dataFlujosHomePass,
|
|
109
|
+
db_default: () => db_default,
|
|
110
|
+
db_root: () => db_root,
|
|
108
111
|
empresas: () => empresas,
|
|
109
112
|
esCadenaFechaISOValida: () => esCadenaFechaISOValida,
|
|
110
113
|
esObjetoFecha: () => esObjetoFecha,
|
|
@@ -116,6 +119,7 @@ __export(index_exports, {
|
|
|
116
119
|
generateUniqueNumberArray: () => generateUniqueNumberArray,
|
|
117
120
|
getChannelName: () => getChannelName,
|
|
118
121
|
getContainerName: () => getContainerName,
|
|
122
|
+
getDBName: () => getDBName,
|
|
119
123
|
getDateInTimeZone: () => getDateInTimeZone,
|
|
120
124
|
getKeyRedisSortedSet: () => getKeyRedisSortedSet,
|
|
121
125
|
getModelDataAdicional: () => getModelDataAdicional,
|
|
@@ -14849,7 +14853,8 @@ function BuscarZonaContratista(EmpresaContratistaEnPrecioEspecialidad, Obra, Zon
|
|
|
14849
14853
|
const zonaSearchMapping = {
|
|
14850
14854
|
"512": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Descripcion.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "512"),
|
|
14851
14855
|
"004": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Descripcion.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "004"),
|
|
14852
|
-
"480": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "480")
|
|
14856
|
+
"480": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "480"),
|
|
14857
|
+
"504": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "504")
|
|
14853
14858
|
};
|
|
14854
14859
|
return zonaSearchMapping[Obra.Pais.Codigo]();
|
|
14855
14860
|
}
|
|
@@ -14995,7 +15000,8 @@ function ObtenerZonaAsignada(Obra) {
|
|
|
14995
15000
|
const zonaMapping = {
|
|
14996
15001
|
"512": Obra.ZonaAsignada,
|
|
14997
15002
|
"004": Obra.ZonaAsignada,
|
|
14998
|
-
"480": Obra.Ubicacion.Municipio
|
|
15003
|
+
"480": Obra.Ubicacion.Municipio,
|
|
15004
|
+
"504": Obra.ZonaAsignada
|
|
14999
15005
|
};
|
|
15000
15006
|
return zonaMapping[Obra.Pais.Codigo] ? zonaMapping[Obra.Pais.Codigo] : Obra.ZonaAsignada;
|
|
15001
15007
|
}
|
|
@@ -15644,6 +15650,21 @@ var collections = {
|
|
|
15644
15650
|
CHILE_9512_ToaClaroRequestNumberTTL: "CHILE_9512_ToaClaroRequestNumberTTL",
|
|
15645
15651
|
CHILE_9512_ToaClaroOrderStock: "CHILE_9512_ToaClaroOrderStock"
|
|
15646
15652
|
};
|
|
15653
|
+
|
|
15654
|
+
// src/v2/constants/db.ts
|
|
15655
|
+
var db_root = "sigo_db";
|
|
15656
|
+
var db_default = "default_db";
|
|
15657
|
+
|
|
15658
|
+
// src/v2/constants/collections.ts
|
|
15659
|
+
var colecciones = Object.freeze({
|
|
15660
|
+
USUARIOS: "usuarios"
|
|
15661
|
+
});
|
|
15662
|
+
|
|
15663
|
+
// src/v2/utils/getDBName.ts
|
|
15664
|
+
function getDBName({ pais, delegacion }) {
|
|
15665
|
+
return `${process.env.NODE_ENV}.${pais.Codigo}_${delegacion.Codigo}_db`.toLowerCase();
|
|
15666
|
+
}
|
|
15667
|
+
__name(getDBName, "getDBName");
|
|
15647
15668
|
// Annotate the CommonJS export names for ESM import in node:
|
|
15648
15669
|
0 && (module.exports = {
|
|
15649
15670
|
ActualizarDataManoObra,
|
|
@@ -15724,10 +15745,13 @@ var collections = {
|
|
|
15724
15745
|
codigosMOT1_F2,
|
|
15725
15746
|
codigosMaterialDuctos,
|
|
15726
15747
|
codigosMaterialUGG,
|
|
15748
|
+
colecciones,
|
|
15727
15749
|
collections,
|
|
15728
15750
|
consumirStockPersonal,
|
|
15729
15751
|
convertDates,
|
|
15730
15752
|
dataFlujosHomePass,
|
|
15753
|
+
db_default,
|
|
15754
|
+
db_root,
|
|
15731
15755
|
empresas,
|
|
15732
15756
|
esCadenaFechaISOValida,
|
|
15733
15757
|
esObjetoFecha,
|
|
@@ -15739,6 +15763,7 @@ var collections = {
|
|
|
15739
15763
|
generateUniqueNumberArray,
|
|
15740
15764
|
getChannelName,
|
|
15741
15765
|
getContainerName,
|
|
15766
|
+
getDBName,
|
|
15742
15767
|
getDateInTimeZone,
|
|
15743
15768
|
getKeyRedisSortedSet,
|
|
15744
15769
|
getModelDataAdicional,
|
package/dist/index.mjs
CHANGED
|
@@ -14700,7 +14700,8 @@ function BuscarZonaContratista(EmpresaContratistaEnPrecioEspecialidad, Obra, Zon
|
|
|
14700
14700
|
const zonaSearchMapping = {
|
|
14701
14701
|
"512": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Descripcion.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "512"),
|
|
14702
14702
|
"004": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Descripcion.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "004"),
|
|
14703
|
-
"480": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "480")
|
|
14703
|
+
"480": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "480"),
|
|
14704
|
+
"504": /* @__PURE__ */ __name(() => EmpresaContratistaEnPrecioEspecialidad.Zonas.find((e) => e.Codigo.toUpperCase() === ZonaAsignada.toUpperCase() && e.Estado.ID_Estado === 1), "504")
|
|
14704
14705
|
};
|
|
14705
14706
|
return zonaSearchMapping[Obra.Pais.Codigo]();
|
|
14706
14707
|
}
|
|
@@ -14846,7 +14847,8 @@ function ObtenerZonaAsignada(Obra) {
|
|
|
14846
14847
|
const zonaMapping = {
|
|
14847
14848
|
"512": Obra.ZonaAsignada,
|
|
14848
14849
|
"004": Obra.ZonaAsignada,
|
|
14849
|
-
"480": Obra.Ubicacion.Municipio
|
|
14850
|
+
"480": Obra.Ubicacion.Municipio,
|
|
14851
|
+
"504": Obra.ZonaAsignada
|
|
14850
14852
|
};
|
|
14851
14853
|
return zonaMapping[Obra.Pais.Codigo] ? zonaMapping[Obra.Pais.Codigo] : Obra.ZonaAsignada;
|
|
14852
14854
|
}
|
|
@@ -15495,6 +15497,21 @@ var collections = {
|
|
|
15495
15497
|
CHILE_9512_ToaClaroRequestNumberTTL: "CHILE_9512_ToaClaroRequestNumberTTL",
|
|
15496
15498
|
CHILE_9512_ToaClaroOrderStock: "CHILE_9512_ToaClaroOrderStock"
|
|
15497
15499
|
};
|
|
15500
|
+
|
|
15501
|
+
// src/v2/constants/db.ts
|
|
15502
|
+
var db_root = "sigo_db";
|
|
15503
|
+
var db_default = "default_db";
|
|
15504
|
+
|
|
15505
|
+
// src/v2/constants/collections.ts
|
|
15506
|
+
var colecciones = Object.freeze({
|
|
15507
|
+
USUARIOS: "usuarios"
|
|
15508
|
+
});
|
|
15509
|
+
|
|
15510
|
+
// src/v2/utils/getDBName.ts
|
|
15511
|
+
function getDBName({ pais, delegacion }) {
|
|
15512
|
+
return `${process.env.NODE_ENV}.${pais.Codigo}_${delegacion.Codigo}_db`.toLowerCase();
|
|
15513
|
+
}
|
|
15514
|
+
__name(getDBName, "getDBName");
|
|
15498
15515
|
export {
|
|
15499
15516
|
ActualizarDataManoObra,
|
|
15500
15517
|
ActualizarDataReserva,
|
|
@@ -15574,10 +15591,13 @@ export {
|
|
|
15574
15591
|
codigosMOT1_F2,
|
|
15575
15592
|
codigosMaterialDuctos,
|
|
15576
15593
|
codigosMaterialUGG,
|
|
15594
|
+
colecciones,
|
|
15577
15595
|
collections,
|
|
15578
15596
|
consumirStockPersonal,
|
|
15579
15597
|
convertDates,
|
|
15580
15598
|
dataFlujosHomePass,
|
|
15599
|
+
db_default,
|
|
15600
|
+
db_root,
|
|
15581
15601
|
empresas,
|
|
15582
15602
|
esCadenaFechaISOValida,
|
|
15583
15603
|
esObjetoFecha,
|
|
@@ -15589,6 +15609,7 @@ export {
|
|
|
15589
15609
|
generateUniqueNumberArray,
|
|
15590
15610
|
getChannelName,
|
|
15591
15611
|
getContainerName,
|
|
15612
|
+
getDBName,
|
|
15592
15613
|
getDateInTimeZone,
|
|
15593
15614
|
getKeyRedisSortedSet,
|
|
15594
15615
|
getModelDataAdicional,
|