sigo-package 1.2.80 → 1.2.82

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
@@ -703,7 +703,7 @@ declare function formatNumberV1(num: number, maximumFractionDigits?: number): st
703
703
 
704
704
  declare const collections: {
705
705
  readonly PERU_9112_ToaOrder: "PERU_9112_ToaOrder";
706
- readonly PERU_9112_RequestNumberTTL: "PERU_9112_RequestNumberTTL";
706
+ readonly PERU_9112_ToaRequestNumberTTL: "PERU_9112_ToaRequestNumberTTL";
707
707
  readonly PERU_9112_ToaOrderStock: "PERU_9112_ToaOrderStock";
708
708
  readonly scrapingCredential: "scrapingCredentials";
709
709
  };
package/dist/index.d.ts CHANGED
@@ -703,7 +703,7 @@ declare function formatNumberV1(num: number, maximumFractionDigits?: number): st
703
703
 
704
704
  declare const collections: {
705
705
  readonly PERU_9112_ToaOrder: "PERU_9112_ToaOrder";
706
- readonly PERU_9112_RequestNumberTTL: "PERU_9112_RequestNumberTTL";
706
+ readonly PERU_9112_ToaRequestNumberTTL: "PERU_9112_ToaRequestNumberTTL";
707
707
  readonly PERU_9112_ToaOrderStock: "PERU_9112_ToaOrderStock";
708
708
  readonly scrapingCredential: "scrapingCredentials";
709
709
  };
package/dist/index.js CHANGED
@@ -158,11 +158,11 @@ var ActualizarDataManoObra = /* @__PURE__ */ __name(({ manoObra, ContratoOT, env
158
158
  if (Sistema == "default") Sistema = !ContratoOT.CheckPrecioMO ? "default" : "onNet";
159
159
  for (const valorizacion of manoObra.Valorizacion) {
160
160
  const { DatosManoObraGlobal: { DetalleChile: { ManoObraBaremo } }, DatosPrecioEspecialidad: { Agencias } } = valorizacion.DatosCatalogoMO;
161
- if (!!!Agencias.length) throw Error(`\xA1No se pudo obtener Precio! Comun\xEDcate con Soporte`);
161
+ if (!!!Agencias.length) throw Error(`\xA1No se pudo obtener Precio, hay ${Agencias.length} Agencias para ${valorizacion.DetalleChile.ManoObra.Codigo}! Comun\xEDcate con Soporte`);
162
162
  const agencia = Agencias.find((e) => e.Estado.ID_Estado === 1);
163
- if (!!!agencia) throw Error(`\xA1No se pudo obtener Precio! Comun\xEDcate con Soporte`);
163
+ if (!!!agencia) throw Error(`\xA1No se pudo obtener Precio, hay 0 Agencias con estado activo para ${valorizacion.DetalleChile.ManoObra.Codigo}! Comun\xEDcate con Soporte`);
164
164
  valorizacion.Precio = Number(agencia.Ultimo_Precio.Precio);
165
- if (!!!ManoObraBaremo.length) throw Error(`\xA1No se pudo obtener Punto Baremo! Comun\xEDcate con Soporte`);
165
+ if (!!!ManoObraBaremo.length) throw Error(`\xA1No se pudo obtener Punto Baremo para ${valorizacion.DetalleChile.ManoObra.Codigo}! Comun\xEDcate con Soporte`);
166
166
  valorizacion.DetalleChile.PuntoBaremo = ManoObraBaremo[0].PuntoBaremo;
167
167
  const sistema = {
168
168
  onNet: {
@@ -15623,7 +15623,7 @@ var ValorizacionHelper = _ValorizacionHelper;
15623
15623
  // src/constants/collections.ts
15624
15624
  var collections = {
15625
15625
  PERU_9112_ToaOrder: "PERU_9112_ToaOrder",
15626
- PERU_9112_RequestNumberTTL: "PERU_9112_RequestNumberTTL",
15626
+ PERU_9112_ToaRequestNumberTTL: "PERU_9112_ToaRequestNumberTTL",
15627
15627
  PERU_9112_ToaOrderStock: "PERU_9112_ToaOrderStock",
15628
15628
  scrapingCredential: "scrapingCredentials"
15629
15629
  };
package/dist/index.mjs CHANGED
@@ -9,11 +9,11 @@ var ActualizarDataManoObra = /* @__PURE__ */ __name(({ manoObra, ContratoOT, env
9
9
  if (Sistema == "default") Sistema = !ContratoOT.CheckPrecioMO ? "default" : "onNet";
10
10
  for (const valorizacion of manoObra.Valorizacion) {
11
11
  const { DatosManoObraGlobal: { DetalleChile: { ManoObraBaremo } }, DatosPrecioEspecialidad: { Agencias } } = valorizacion.DatosCatalogoMO;
12
- if (!!!Agencias.length) throw Error(`\xA1No se pudo obtener Precio! Comun\xEDcate con Soporte`);
12
+ if (!!!Agencias.length) throw Error(`\xA1No se pudo obtener Precio, hay ${Agencias.length} Agencias para ${valorizacion.DetalleChile.ManoObra.Codigo}! Comun\xEDcate con Soporte`);
13
13
  const agencia = Agencias.find((e) => e.Estado.ID_Estado === 1);
14
- if (!!!agencia) throw Error(`\xA1No se pudo obtener Precio! Comun\xEDcate con Soporte`);
14
+ if (!!!agencia) throw Error(`\xA1No se pudo obtener Precio, hay 0 Agencias con estado activo para ${valorizacion.DetalleChile.ManoObra.Codigo}! Comun\xEDcate con Soporte`);
15
15
  valorizacion.Precio = Number(agencia.Ultimo_Precio.Precio);
16
- if (!!!ManoObraBaremo.length) throw Error(`\xA1No se pudo obtener Punto Baremo! Comun\xEDcate con Soporte`);
16
+ if (!!!ManoObraBaremo.length) throw Error(`\xA1No se pudo obtener Punto Baremo para ${valorizacion.DetalleChile.ManoObra.Codigo}! Comun\xEDcate con Soporte`);
17
17
  valorizacion.DetalleChile.PuntoBaremo = ManoObraBaremo[0].PuntoBaremo;
18
18
  const sistema = {
19
19
  onNet: {
@@ -15474,7 +15474,7 @@ var ValorizacionHelper = _ValorizacionHelper;
15474
15474
  // src/constants/collections.ts
15475
15475
  var collections = {
15476
15476
  PERU_9112_ToaOrder: "PERU_9112_ToaOrder",
15477
- PERU_9112_RequestNumberTTL: "PERU_9112_RequestNumberTTL",
15477
+ PERU_9112_ToaRequestNumberTTL: "PERU_9112_ToaRequestNumberTTL",
15478
15478
  PERU_9112_ToaOrderStock: "PERU_9112_ToaOrderStock",
15479
15479
  scrapingCredential: "scrapingCredentials"
15480
15480
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-package",
3
- "version": "1.2.80",
3
+ "version": "1.2.82",
4
4
  "description": "Funciones compartidas sigo",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",