sigo-entities 1.2.72 → 1.2.74
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 +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -6
- package/dist/index.mjs +64 -68
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3618,7 +3618,6 @@ var PersonalDTO = class {
|
|
|
3618
3618
|
IdPersonal = 0;
|
|
3619
3619
|
Apellidos = "";
|
|
3620
3620
|
Nombres = "";
|
|
3621
|
-
PerfilGOM = "";
|
|
3622
3621
|
Cargo = "";
|
|
3623
3622
|
};
|
|
3624
3623
|
__decorateClass([
|
|
@@ -3641,11 +3640,6 @@ __decorateClass([
|
|
|
3641
3640
|
(0, import_class_validator77.MinLength)(0, { message: "debe tener entre como m\xEDnimo 0 caracteres" }),
|
|
3642
3641
|
(0, import_class_transformer76.Expose)()
|
|
3643
3642
|
], PersonalDTO.prototype, "Nombres", 2);
|
|
3644
|
-
__decorateClass([
|
|
3645
|
-
(0, import_class_validator77.IsString)({ message: "debe ser un texto" }),
|
|
3646
|
-
(0, import_class_validator77.Length)(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
3647
|
-
(0, import_class_transformer76.Expose)()
|
|
3648
|
-
], PersonalDTO.prototype, "PerfilGOM", 2);
|
|
3649
3643
|
__decorateClass([
|
|
3650
3644
|
(0, import_class_validator77.IsString)({ message: "debe ser un texto" }),
|
|
3651
3645
|
(0, import_class_validator77.Length)(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
@@ -24569,6 +24563,7 @@ __decorateClass([
|
|
|
24569
24563
|
(0, import_class_transformer426.Expose)()
|
|
24570
24564
|
], DevolucionAlmacenENTITY.prototype, "NroGuia", 2);
|
|
24571
24565
|
__decorateClass([
|
|
24566
|
+
(0, import_class_transformer426.Transform)(({ value }) => typeof value === "string" && value.length > 100 ? value.slice(0, 100) : value),
|
|
24572
24567
|
(0, import_class_validator427.IsString)({ message: "debe ser un texto" }),
|
|
24573
24568
|
(0, import_class_validator427.Length)(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
24574
24569
|
(0, import_class_transformer426.Expose)()
|
package/dist/index.mjs
CHANGED
|
@@ -3040,7 +3040,6 @@ var PersonalDTO = class {
|
|
|
3040
3040
|
IdPersonal = 0;
|
|
3041
3041
|
Apellidos = "";
|
|
3042
3042
|
Nombres = "";
|
|
3043
|
-
PerfilGOM = "";
|
|
3044
3043
|
Cargo = "";
|
|
3045
3044
|
};
|
|
3046
3045
|
__decorateClass([
|
|
@@ -3063,11 +3062,6 @@ __decorateClass([
|
|
|
3063
3062
|
MinLength6(0, { message: "debe tener entre como m\xEDnimo 0 caracteres" }),
|
|
3064
3063
|
Expose74()
|
|
3065
3064
|
], PersonalDTO.prototype, "Nombres", 2);
|
|
3066
|
-
__decorateClass([
|
|
3067
|
-
IsString61({ message: "debe ser un texto" }),
|
|
3068
|
-
Length53(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
3069
|
-
Expose74()
|
|
3070
|
-
], PersonalDTO.prototype, "PerfilGOM", 2);
|
|
3071
3065
|
__decorateClass([
|
|
3072
3066
|
IsString61({ message: "debe ser un texto" }),
|
|
3073
3067
|
Length53(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
@@ -23985,6 +23979,7 @@ __decorateClass([
|
|
|
23985
23979
|
// src/logistica/devolucion almacen/shared/index.ts
|
|
23986
23980
|
import {
|
|
23987
23981
|
Expose as Expose424,
|
|
23982
|
+
Transform as Transform52,
|
|
23988
23983
|
Type as Type284
|
|
23989
23984
|
} from "class-transformer";
|
|
23990
23985
|
import {
|
|
@@ -24108,6 +24103,7 @@ __decorateClass([
|
|
|
24108
24103
|
Expose424()
|
|
24109
24104
|
], DevolucionAlmacenENTITY.prototype, "NroGuia", 2);
|
|
24110
24105
|
__decorateClass([
|
|
24106
|
+
Transform52(({ value }) => typeof value === "string" && value.length > 100 ? value.slice(0, 100) : value),
|
|
24111
24107
|
IsString329({ message: "debe ser un texto" }),
|
|
24112
24108
|
Length226(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
24113
24109
|
Expose424()
|
|
@@ -24174,7 +24170,7 @@ __decorateClass([
|
|
|
24174
24170
|
], DevolucionAlmacenENTITY.prototype, "Estado", 2);
|
|
24175
24171
|
|
|
24176
24172
|
// src/logistica/items/shared/index.ts
|
|
24177
|
-
import { Expose as Expose430, Transform as
|
|
24173
|
+
import { Expose as Expose430, Transform as Transform53, Type as Type288 } from "class-transformer";
|
|
24178
24174
|
import { IsArray as IsArray149, IsNotEmpty as IsNotEmpty296, IsNumber as IsNumber284, IsString as IsString335, Length as Length232, Min as Min216, ValidateNested as ValidateNested261, IsBoolean as IsBoolean39 } from "class-validator";
|
|
24179
24175
|
|
|
24180
24176
|
// src/logistica/items/shared/dto/cliente-dto.ts
|
|
@@ -24504,14 +24500,14 @@ __decorateClass([
|
|
|
24504
24500
|
], ItemENTITY.prototype, "Tipo", 2);
|
|
24505
24501
|
__decorateClass([
|
|
24506
24502
|
Expose430(),
|
|
24507
|
-
|
|
24503
|
+
Transform53(({ value }) => Number(value)),
|
|
24508
24504
|
IsNumber284({}, { message: "debe ser un numero" }),
|
|
24509
24505
|
IsNotEmpty296({ message: "es requerido" }),
|
|
24510
24506
|
Min216(0, { message: "el valor m\xEDnimo es 0" })
|
|
24511
24507
|
], ItemENTITY.prototype, "Valor", 2);
|
|
24512
24508
|
__decorateClass([
|
|
24513
24509
|
Expose430(),
|
|
24514
|
-
|
|
24510
|
+
Transform53(({ value }) => Number(value)),
|
|
24515
24511
|
IsNumber284({}, { message: "debe ser un numero" }),
|
|
24516
24512
|
IsNotEmpty296({ message: "es requerido" }),
|
|
24517
24513
|
Min216(0, { message: "el valor m\xEDnimo es 0" })
|
|
@@ -24884,7 +24880,7 @@ __decorateClass([
|
|
|
24884
24880
|
], StockAlmacenEquiposENTITY.prototype, "Equipos", 2);
|
|
24885
24881
|
|
|
24886
24882
|
// src/logistica/transaccion folios/shared/index.ts
|
|
24887
|
-
import { Transform as
|
|
24883
|
+
import { Transform as Transform54, Expose as Expose437, Type as Type292 } from "class-transformer";
|
|
24888
24884
|
|
|
24889
24885
|
// src/logistica/transaccion folios/shared/dto/transacciones-dto.ts
|
|
24890
24886
|
import { Expose as Expose436 } from "class-transformer";
|
|
@@ -24966,21 +24962,21 @@ __decorateClass([
|
|
|
24966
24962
|
Expose437()
|
|
24967
24963
|
], TransaccionFoliosENTITY.prototype, "Vigencia_Final", 2);
|
|
24968
24964
|
__decorateClass([
|
|
24969
|
-
|
|
24965
|
+
Transform54(({ value }) => Number(value)),
|
|
24970
24966
|
IsDefined128({ message: "El campo FolioInicial es obligatorio" }),
|
|
24971
24967
|
Expose437(),
|
|
24972
24968
|
IsNumber290({}, { message: "debe ser un numero" }),
|
|
24973
24969
|
Min222(1, { message: "el valor m\xEDnimo es 1" })
|
|
24974
24970
|
], TransaccionFoliosENTITY.prototype, "FolioInicial", 2);
|
|
24975
24971
|
__decorateClass([
|
|
24976
|
-
|
|
24972
|
+
Transform54(({ value }) => Number(value)),
|
|
24977
24973
|
IsDefined128({ message: "El campo FolioFinal es obligatorio" }),
|
|
24978
24974
|
Expose437(),
|
|
24979
24975
|
IsNumber290({}, { message: "debe ser un numero" }),
|
|
24980
24976
|
Min222(1, { message: "el valor m\xEDnimo es 1" })
|
|
24981
24977
|
], TransaccionFoliosENTITY.prototype, "FolioFinal", 2);
|
|
24982
24978
|
__decorateClass([
|
|
24983
|
-
|
|
24979
|
+
Transform54(({ value }) => Number(value)),
|
|
24984
24980
|
IsDefined128({ message: "El campo NumeroInterno es obligatorio" }),
|
|
24985
24981
|
Expose437(),
|
|
24986
24982
|
IsNumber290({}, { message: "debe ser un numero" }),
|
|
@@ -25310,7 +25306,7 @@ __decorateClass([
|
|
|
25310
25306
|
], BodegaENTITY.prototype, "Bitacora", 2);
|
|
25311
25307
|
|
|
25312
25308
|
// src/logistica/autoinventario/shared/index.ts
|
|
25313
|
-
import { Expose as Expose446, Transform as
|
|
25309
|
+
import { Expose as Expose446, Transform as Transform55, Type as Type298 } from "class-transformer";
|
|
25314
25310
|
|
|
25315
25311
|
// src/logistica/autoinventario/shared/dto/equipos-AI-dto.ts
|
|
25316
25312
|
import { Expose as Expose445 } from "class-transformer";
|
|
@@ -25415,7 +25411,7 @@ __decorateClass([
|
|
|
25415
25411
|
Expose446()
|
|
25416
25412
|
], AutoInventarioENTITY.prototype, "Observacion", 2);
|
|
25417
25413
|
__decorateClass([
|
|
25418
|
-
|
|
25414
|
+
Transform55(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
25419
25415
|
IsDate106({ message: "debe ser una fecha" }),
|
|
25420
25416
|
IsNotEmpty310({ message: "es requerido" }),
|
|
25421
25417
|
Expose446()
|
|
@@ -25635,7 +25631,7 @@ __decorateClass([
|
|
|
25635
25631
|
], TipoStockENTITY.prototype, "Delegacion", 2);
|
|
25636
25632
|
|
|
25637
25633
|
// src/logistica/almacen extra/shared/index.ts
|
|
25638
|
-
import { Expose as Expose451, Transform as
|
|
25634
|
+
import { Expose as Expose451, Transform as Transform56, Type as Type303 } from "class-transformer";
|
|
25639
25635
|
import { IsNotEmpty as IsNotEmpty315, IsNumber as IsNumber301, IsString as IsString353, Length as Length248, Min as Min233, ValidateNested as ValidateNested276 } from "class-validator";
|
|
25640
25636
|
var AlmacenExtraENTITY = class {
|
|
25641
25637
|
ID_AlmacenExtra = 0;
|
|
@@ -25708,13 +25704,13 @@ __decorateClass([
|
|
|
25708
25704
|
Expose451()
|
|
25709
25705
|
], AlmacenExtraENTITY.prototype, "Country", 2);
|
|
25710
25706
|
__decorateClass([
|
|
25711
|
-
|
|
25707
|
+
Transform56(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
25712
25708
|
IsNumber301({}, { message: "debe ser una coordenada" }),
|
|
25713
25709
|
IsNotEmpty315({ message: "es requerido" }),
|
|
25714
25710
|
Expose451()
|
|
25715
25711
|
], AlmacenExtraENTITY.prototype, "Latitude", 2);
|
|
25716
25712
|
__decorateClass([
|
|
25717
|
-
|
|
25713
|
+
Transform56(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
25718
25714
|
IsNumber301({}, { message: "debe ser una coordenada" }),
|
|
25719
25715
|
IsNotEmpty315({ message: "es requerido" }),
|
|
25720
25716
|
Expose451()
|
|
@@ -26010,7 +26006,7 @@ __decorateClass([
|
|
|
26010
26006
|
], RecursosPersonalDTO.prototype, "InicioActividad", 2);
|
|
26011
26007
|
|
|
26012
26008
|
// src/configuracion/personal/shared/index.ts
|
|
26013
|
-
import { Expose as Expose460, Transform as
|
|
26009
|
+
import { Expose as Expose460, Transform as Transform57, Type as Type309 } from "class-transformer";
|
|
26014
26010
|
import {
|
|
26015
26011
|
ArrayNotEmpty as ArrayNotEmpty5,
|
|
26016
26012
|
IsArray as IsArray161,
|
|
@@ -26113,7 +26109,7 @@ __decorateClass([
|
|
|
26113
26109
|
ValidateNested281()
|
|
26114
26110
|
], PersonalENTITY.prototype, "TipoDocumento", 2);
|
|
26115
26111
|
__decorateClass([
|
|
26116
|
-
|
|
26112
|
+
Transform57(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
26117
26113
|
IsString361({ message: "debe ser un texto" }),
|
|
26118
26114
|
IsNotEmpty321({ message: "es requerido" }),
|
|
26119
26115
|
Length253(1, 41, { message: "debe tener entre 1 y 40 caracteres" }),
|
|
@@ -27193,7 +27189,7 @@ __decorateClass([
|
|
|
27193
27189
|
], ContratistasDTO.prototype, "Estado", 2);
|
|
27194
27190
|
|
|
27195
27191
|
// src/configuracion/usuarios/shared/index.ts
|
|
27196
|
-
import { Expose as Expose483, Transform as
|
|
27192
|
+
import { Expose as Expose483, Transform as Transform58, Type as Type325 } from "class-transformer";
|
|
27197
27193
|
import { IsArray as IsArray168, IsBoolean as IsBoolean45, IsNotEmpty as IsNotEmpty341, IsNumber as IsNumber321, IsString as IsString383, Length as Length274, Min as Min250, ValidateNested as ValidateNested291, IsEmail as IsEmail3, IsEnum as IsEnum10 } from "class-validator";
|
|
27198
27194
|
var UsuarioENTITY = class {
|
|
27199
27195
|
IdUsuario = 0;
|
|
@@ -27271,7 +27267,7 @@ __decorateClass([
|
|
|
27271
27267
|
ValidateNested291()
|
|
27272
27268
|
], UsuarioENTITY.prototype, "TipoDocumento", 2);
|
|
27273
27269
|
__decorateClass([
|
|
27274
|
-
|
|
27270
|
+
Transform58(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
27275
27271
|
IsString383({ message: "debe ser un texto" }),
|
|
27276
27272
|
IsNotEmpty341({ message: "es requerido" }),
|
|
27277
27273
|
Length274(1, 30, { message: "debe tener entre 1 y 30 caracteres" }),
|
|
@@ -27421,7 +27417,7 @@ __decorateClass([
|
|
|
27421
27417
|
], UsuarioENTITY.prototype, "Contratistas", 2);
|
|
27422
27418
|
|
|
27423
27419
|
// src/configuracion/tipo opcion sistema/shared/index.ts
|
|
27424
|
-
import { Expose as Expose484, Transform as
|
|
27420
|
+
import { Expose as Expose484, Transform as Transform59, Type as Type326 } from "class-transformer";
|
|
27425
27421
|
import { IsDefined as IsDefined133, IsNumber as IsNumber322, IsString as IsString384, Length as Length275, Min as Min251, ValidateNested as ValidateNested292 } from "class-validator";
|
|
27426
27422
|
var TipoOpcionSistemaENTITY = class {
|
|
27427
27423
|
IdTipoOpcion = 0;
|
|
@@ -27450,7 +27446,7 @@ __decorateClass([
|
|
|
27450
27446
|
], TipoOpcionSistemaENTITY.prototype, "Descripcion", 2);
|
|
27451
27447
|
__decorateClass([
|
|
27452
27448
|
IsDefined133({ message: "El campo Padre es obligatorio" }),
|
|
27453
|
-
|
|
27449
|
+
Transform59(({ value }) => Number(value)),
|
|
27454
27450
|
Expose484(),
|
|
27455
27451
|
IsNumber322({}, { message: "debe ser un numero" }),
|
|
27456
27452
|
Min251(0, { message: "el valor m\xEDnimo es 0" })
|
|
@@ -27549,7 +27545,7 @@ __decorateClass([
|
|
|
27549
27545
|
import { IsDate as IsDate116, IsEnum as IsEnum12, IsNotEmpty as IsNotEmpty345, IsString as IsString388, Length as Length279, ValidateNested as ValidateNested294 } from "class-validator";
|
|
27550
27546
|
|
|
27551
27547
|
// src/configuracion/notificaciones/shared/dto/data-adicional-dto.ts
|
|
27552
|
-
import { Expose as Expose487, Transform as
|
|
27548
|
+
import { Expose as Expose487, Transform as Transform60 } from "class-transformer";
|
|
27553
27549
|
import { IsDate as IsDate115, IsEnum as IsEnum11, IsNotEmpty as IsNotEmpty344, IsString as IsString387, Length as Length278 } from "class-validator";
|
|
27554
27550
|
var OperacionDataAdicional = /* @__PURE__ */ ((OperacionDataAdicional2) => {
|
|
27555
27551
|
OperacionDataAdicional2["CREAR"] = "crear";
|
|
@@ -27580,7 +27576,7 @@ __decorateClass([
|
|
|
27580
27576
|
Expose487()
|
|
27581
27577
|
], DataAdicionalDTO.prototype, "operacion", 2);
|
|
27582
27578
|
__decorateClass([
|
|
27583
|
-
|
|
27579
|
+
Transform60(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
27584
27580
|
IsDate115({ message: "debe ser una fecha" }),
|
|
27585
27581
|
IsNotEmpty344({ message: "es requerido" }),
|
|
27586
27582
|
Expose487()
|
|
@@ -27592,7 +27588,7 @@ __decorateClass([
|
|
|
27592
27588
|
], DataAdicionalDTO.prototype, "localName", 2);
|
|
27593
27589
|
|
|
27594
27590
|
// src/configuracion/notificaciones/shared/index.ts
|
|
27595
|
-
import { Expose as Expose488, Transform as
|
|
27591
|
+
import { Expose as Expose488, Transform as Transform61, Type as Type328 } from "class-transformer";
|
|
27596
27592
|
var TipoNotificacion = /* @__PURE__ */ ((TipoNotificacion2) => {
|
|
27597
27593
|
TipoNotificacion2["INFO"] = "info";
|
|
27598
27594
|
TipoNotificacion2["ERROR"] = "error";
|
|
@@ -27635,7 +27631,7 @@ __decorateClass([
|
|
|
27635
27631
|
Expose488()
|
|
27636
27632
|
], NotificacionesENTITY.prototype, "titulo", 2);
|
|
27637
27633
|
__decorateClass([
|
|
27638
|
-
|
|
27634
|
+
Transform61(({ value }) => typeof value === "string" ? value.substring(0, 400) : value),
|
|
27639
27635
|
IsString388({ message: "debe ser un texto" }),
|
|
27640
27636
|
Length279(1, 400, { message: "debe tener entre 1 y 400 caracteres" }),
|
|
27641
27637
|
Expose488()
|
|
@@ -27657,13 +27653,13 @@ __decorateClass([
|
|
|
27657
27653
|
ValidateNested294()
|
|
27658
27654
|
], NotificacionesENTITY.prototype, "dataAdicional", 2);
|
|
27659
27655
|
__decorateClass([
|
|
27660
|
-
|
|
27656
|
+
Transform61(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
27661
27657
|
IsDate116({ message: "debe ser una fecha" }),
|
|
27662
27658
|
IsNotEmpty345({ message: "es requerido" }),
|
|
27663
27659
|
Expose488()
|
|
27664
27660
|
], NotificacionesENTITY.prototype, "fechaCreacion", 2);
|
|
27665
27661
|
__decorateClass([
|
|
27666
|
-
|
|
27662
|
+
Transform61(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
27667
27663
|
IsDate116({ message: "debe ser una fecha" }),
|
|
27668
27664
|
IsNotEmpty345({ message: "es requerido" }),
|
|
27669
27665
|
Expose488()
|
|
@@ -28027,7 +28023,7 @@ __decorateClass([
|
|
|
28027
28023
|
], EmpresaValDTO.prototype, "TipoEmpresa", 2);
|
|
28028
28024
|
|
|
28029
28025
|
// src/operativa/procesos/valorizadas_toa/shared/dto/inventario-val-dto.ts
|
|
28030
|
-
import { Expose as Expose497, Transform as
|
|
28026
|
+
import { Expose as Expose497, Transform as Transform62 } from "class-transformer";
|
|
28031
28027
|
import { IsEnum as IsEnum14, IsNotEmpty as IsNotEmpty351, IsNumber as IsNumber328, IsOptional as IsOptional20, IsString as IsString397, Length as Length286, Min as Min257 } from "class-validator";
|
|
28032
28028
|
var InventarioValDTO = class {
|
|
28033
28029
|
Descripcion = "";
|
|
@@ -28066,7 +28062,7 @@ __decorateClass([
|
|
|
28066
28062
|
], InventarioValDTO.prototype, "CodigoSAP", 2);
|
|
28067
28063
|
__decorateClass([
|
|
28068
28064
|
IsString397({ message: "debe ser un texto" }),
|
|
28069
|
-
|
|
28065
|
+
Transform62(({ value }) => value ? String(value) : value),
|
|
28070
28066
|
Length286(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
28071
28067
|
Expose497(),
|
|
28072
28068
|
IsOptional20()
|
|
@@ -28508,7 +28504,7 @@ __decorateClass([
|
|
|
28508
28504
|
], ProductosServiciosLiqDTO.prototype, "Cantidad", 2);
|
|
28509
28505
|
|
|
28510
28506
|
// src/operativa/procesos/liquidadas_toa/shared/dto/inventario-liq-dto.ts
|
|
28511
|
-
import { Expose as Expose502, Transform as
|
|
28507
|
+
import { Expose as Expose502, Transform as Transform63 } from "class-transformer";
|
|
28512
28508
|
import { IsEnum as IsEnum15, IsNotEmpty as IsNotEmpty356, IsNumber as IsNumber333, IsString as IsString402, Length as Length291, Min as Min262 } from "class-validator";
|
|
28513
28509
|
var InventarioLiqDTO = class {
|
|
28514
28510
|
Descripcion = "";
|
|
@@ -28545,7 +28541,7 @@ __decorateClass([
|
|
|
28545
28541
|
], InventarioLiqDTO.prototype, "CodigoSAP", 2);
|
|
28546
28542
|
__decorateClass([
|
|
28547
28543
|
IsString402({ message: "debe ser un texto" }),
|
|
28548
|
-
|
|
28544
|
+
Transform63(({ value }) => value ? String(value) : value),
|
|
28549
28545
|
Length291(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
28550
28546
|
Expose502()
|
|
28551
28547
|
], InventarioLiqDTO.prototype, "NumeroSerie", 2);
|
|
@@ -29991,7 +29987,7 @@ var ISheetsJsonChileTdC = class {
|
|
|
29991
29987
|
};
|
|
29992
29988
|
|
|
29993
29989
|
// src/operativa/procesos/toa_claro/shared/index.ts
|
|
29994
|
-
import { Expose as Expose531, Transform as
|
|
29990
|
+
import { Expose as Expose531, Transform as Transform65, Type as Type346 } from "class-transformer";
|
|
29995
29991
|
import { IsNotEmpty as IsNotEmpty371, IsNumber as IsNumber346, IsString as IsString428, Length as Length315, Min as Min272, IsDate as IsDate124, ValidateNested as ValidateNested307, IsEnum as IsEnum17, IsDefined as IsDefined139, IsArray as IsArray174 } from "class-validator";
|
|
29996
29992
|
|
|
29997
29993
|
// src/operativa/procesos/toa_claro/shared/dto/direccion toa dto.ts
|
|
@@ -30331,7 +30327,7 @@ __decorateClass([
|
|
|
30331
30327
|
Expose531()
|
|
30332
30328
|
], ToaClaroENTITY.prototype, "ID_ToaClaro", 2);
|
|
30333
30329
|
__decorateClass([
|
|
30334
|
-
|
|
30330
|
+
Transform65(({ value }) => "TOA_CLARO" /* TOA_CLARO */),
|
|
30335
30331
|
IsEnum17(SistemaRecurso, { message: "debe ser un valor v\xE1lido de enum SistemaRecurso" }),
|
|
30336
30332
|
Expose531()
|
|
30337
30333
|
], ToaClaroENTITY.prototype, "Sistema", 2);
|
|
@@ -30668,7 +30664,7 @@ import { IsArray as IsArray175, IsDefined as IsDefined142, IsString as IsString4
|
|
|
30668
30664
|
import { Expose as Expose534, Type as Type347 } from "class-transformer";
|
|
30669
30665
|
|
|
30670
30666
|
// src/operativa/procesos/toa_claro/data_scraper/dto/items-orden-scraper-claro-vtr-dto.ts
|
|
30671
|
-
import { Expose as Expose532, Transform as
|
|
30667
|
+
import { Expose as Expose532, Transform as Transform66 } from "class-transformer";
|
|
30672
30668
|
import { IsDefined as IsDefined140, IsNumber as IsNumber347, IsString as IsString429 } from "class-validator";
|
|
30673
30669
|
var ItemsOrdenScraperClaroVTRDTO = class {
|
|
30674
30670
|
id = "";
|
|
@@ -30712,7 +30708,7 @@ __decorateClass([
|
|
|
30712
30708
|
IsNumber347({}, { message: "El campo cantidad debe ser un n\xFAmero" })
|
|
30713
30709
|
], ItemsOrdenScraperClaroVTRDTO.prototype, "cantidad", 2);
|
|
30714
30710
|
__decorateClass([
|
|
30715
|
-
|
|
30711
|
+
Transform66(({ value }) => typeof value === "number" ? value.toString() : value),
|
|
30716
30712
|
Expose532(),
|
|
30717
30713
|
IsDefined140({ message: "El campo ServiceId es requerido" }),
|
|
30718
30714
|
IsString429({ message: "El campo ServiceId debe ser una cadena de texto" })
|
|
@@ -30723,7 +30719,7 @@ __decorateClass([
|
|
|
30723
30719
|
IsString429({ message: "El campo estado debe ser una cadena de texto" })
|
|
30724
30720
|
], ItemsOrdenScraperClaroVTRDTO.prototype, "estado", 2);
|
|
30725
30721
|
__decorateClass([
|
|
30726
|
-
|
|
30722
|
+
Transform66(({ value }) => typeof value === "number" ? value.toString() : value),
|
|
30727
30723
|
Expose532(),
|
|
30728
30724
|
IsDefined140({ message: "El campo serial es requerido" }),
|
|
30729
30725
|
IsString429({ message: "El campo serial debe ser una cadena de texto" })
|
|
@@ -32350,10 +32346,10 @@ __decorateClass([
|
|
|
32350
32346
|
], Peru9112TOAENTITY.prototype, "EECC", 2);
|
|
32351
32347
|
|
|
32352
32348
|
// src/operativa/procesos/onnet_fibra/shared/index.ts
|
|
32353
|
-
import { Expose as Expose547, Transform as
|
|
32349
|
+
import { Expose as Expose547, Transform as Transform71, Type as Type353 } from "class-transformer";
|
|
32354
32350
|
|
|
32355
32351
|
// src/operativa/procesos/onnet_fibra/shared/dto/bitacora_de_ordenes.ts
|
|
32356
|
-
import { Expose as Expose539, Transform as
|
|
32352
|
+
import { Expose as Expose539, Transform as Transform67 } from "class-transformer";
|
|
32357
32353
|
import { IsDate as IsDate128, IsDefined as IsDefined147, IsNumber as IsNumber353, IsOptional as IsOptional23, IsString as IsString436 } from "class-validator";
|
|
32358
32354
|
|
|
32359
32355
|
// src/operativa/procesos/onnet_fibra/utils/format_date_onnet_fibra.ts
|
|
@@ -32421,14 +32417,14 @@ __decorateClass([
|
|
|
32421
32417
|
], BitacoraDeOrdenesDTO.prototype, "estado", 2);
|
|
32422
32418
|
__decorateClass([
|
|
32423
32419
|
IsOptional23(),
|
|
32424
|
-
|
|
32420
|
+
Transform67(({ value }) => value ? String(value) : ""),
|
|
32425
32421
|
IsString436({ message: "El campo lt debe ser una cadena de texto" }),
|
|
32426
32422
|
Expose539()
|
|
32427
32423
|
], BitacoraDeOrdenesDTO.prototype, "lt", 2);
|
|
32428
32424
|
__decorateClass([
|
|
32429
32425
|
IsOptional23(),
|
|
32430
32426
|
IsNumber353({}, { message: "El campo id_orden_mantenimiento_anexo debe ser un n\xFAmero" }),
|
|
32431
|
-
|
|
32427
|
+
Transform67(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
|
|
32432
32428
|
Expose539()
|
|
32433
32429
|
], BitacoraDeOrdenesDTO.prototype, "id_orden_mantenimiento_anexo", 2);
|
|
32434
32430
|
__decorateClass([
|
|
@@ -32439,7 +32435,7 @@ __decorateClass([
|
|
|
32439
32435
|
__decorateClass([
|
|
32440
32436
|
IsOptional23(),
|
|
32441
32437
|
IsNumber353({}, { message: "El campo cantidad_clientes_afectados debe ser un n\xFAmero" }),
|
|
32442
|
-
|
|
32438
|
+
Transform67(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
|
|
32443
32439
|
Expose539()
|
|
32444
32440
|
], BitacoraDeOrdenesDTO.prototype, "cantidad_clientes_afectados", 2);
|
|
32445
32441
|
__decorateClass([
|
|
@@ -32475,13 +32471,13 @@ __decorateClass([
|
|
|
32475
32471
|
__decorateClass([
|
|
32476
32472
|
IsOptional23(),
|
|
32477
32473
|
IsString436({ message: "El campo tecnologia debe ser una cadena de texto" }),
|
|
32478
|
-
|
|
32474
|
+
Transform67(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32479
32475
|
Expose539()
|
|
32480
32476
|
], BitacoraDeOrdenesDTO.prototype, "tecnologia", 2);
|
|
32481
32477
|
__decorateClass([
|
|
32482
32478
|
IsOptional23(),
|
|
32483
32479
|
IsString436({ message: "El campo olt debe ser una cadena de texto" }),
|
|
32484
|
-
|
|
32480
|
+
Transform67(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32485
32481
|
Expose539()
|
|
32486
32482
|
], BitacoraDeOrdenesDTO.prototype, "olt", 2);
|
|
32487
32483
|
__decorateClass([
|
|
@@ -32536,7 +32532,7 @@ __decorateClass([
|
|
|
32536
32532
|
], BitacoraDeOrdenesDTO.prototype, "tipo_orden", 2);
|
|
32537
32533
|
__decorateClass([
|
|
32538
32534
|
IsOptional23(),
|
|
32539
|
-
|
|
32535
|
+
Transform67(({ value }) => formatDateOnnetFibra(value)),
|
|
32540
32536
|
IsDate128({ message: "El campo fecha_instalacion debe ser FECHA" }),
|
|
32541
32537
|
Expose539()
|
|
32542
32538
|
], BitacoraDeOrdenesDTO.prototype, "fecha_instalacion", 2);
|
|
@@ -32558,7 +32554,7 @@ __decorateClass([
|
|
|
32558
32554
|
__decorateClass([
|
|
32559
32555
|
IsOptional23(),
|
|
32560
32556
|
IsString436({ message: "El campo puerto_pon debe ser una cadena de texto" }),
|
|
32561
|
-
|
|
32557
|
+
Transform67(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32562
32558
|
Expose539()
|
|
32563
32559
|
], BitacoraDeOrdenesDTO.prototype, "puerto_pon", 2);
|
|
32564
32560
|
__decorateClass([
|
|
@@ -32568,20 +32564,20 @@ __decorateClass([
|
|
|
32568
32564
|
], BitacoraDeOrdenesDTO.prototype, "nombre_especialidad", 2);
|
|
32569
32565
|
__decorateClass([
|
|
32570
32566
|
IsOptional23({ message: "El campo cliente es opcional" }),
|
|
32571
|
-
|
|
32567
|
+
Transform67(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32572
32568
|
IsString436({ message: "El campo cliente debe ser una cadena de texto" }),
|
|
32573
32569
|
Expose539()
|
|
32574
32570
|
], BitacoraDeOrdenesDTO.prototype, "cliente", 2);
|
|
32575
32571
|
__decorateClass([
|
|
32576
32572
|
IsOptional23({ message: "El campo comuna es opcional" }),
|
|
32577
|
-
|
|
32573
|
+
Transform67(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32578
32574
|
IsString436({ message: "El campo comuna debe ser una cadena de texto" }),
|
|
32579
32575
|
Expose539()
|
|
32580
32576
|
], BitacoraDeOrdenesDTO.prototype, "comuna", 2);
|
|
32581
32577
|
__decorateClass([
|
|
32582
32578
|
IsOptional23({ message: "El campo pep es opcional" }),
|
|
32583
32579
|
IsString436({ message: "El campo pep debe ser una cadena de texto" }),
|
|
32584
|
-
|
|
32580
|
+
Transform67(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32585
32581
|
Expose539()
|
|
32586
32582
|
], BitacoraDeOrdenesDTO.prototype, "pep", 2);
|
|
32587
32583
|
__decorateClass([
|
|
@@ -32611,7 +32607,7 @@ __decorateClass([
|
|
|
32611
32607
|
__decorateClass([
|
|
32612
32608
|
IsOptional23(),
|
|
32613
32609
|
IsNumber353({}, { message: "El campo capacidad_cable debe ser una cadena de texto" }),
|
|
32614
|
-
|
|
32610
|
+
Transform67(({ value }) => isNaN(value) ? 0 : Number(value)),
|
|
32615
32611
|
Expose539()
|
|
32616
32612
|
], BitacoraDeOrdenesDTO.prototype, "capacidad_cable", 2);
|
|
32617
32613
|
__decorateClass([
|
|
@@ -32626,7 +32622,7 @@ __decorateClass([
|
|
|
32626
32622
|
], BitacoraDeOrdenesDTO.prototype, "mensaje_contingencia", 2);
|
|
32627
32623
|
|
|
32628
32624
|
// src/operativa/procesos/onnet_fibra/shared/dto/estado_de_pago.ts
|
|
32629
|
-
import { Expose as Expose540, Transform as
|
|
32625
|
+
import { Expose as Expose540, Transform as Transform68 } from "class-transformer";
|
|
32630
32626
|
import { IsDate as IsDate129, IsDefined as IsDefined148, IsNumber as IsNumber354, IsString as IsString437 } from "class-validator";
|
|
32631
32627
|
var EstadoDePagoDTO = class {
|
|
32632
32628
|
capacidad_cable = "";
|
|
@@ -32654,7 +32650,7 @@ __decorateClass([
|
|
|
32654
32650
|
Expose540()
|
|
32655
32651
|
], EstadoDePagoDTO.prototype, "estado", 2);
|
|
32656
32652
|
__decorateClass([
|
|
32657
|
-
|
|
32653
|
+
Transform68(({ value }) => formatDateOnnetFibra(value)),
|
|
32658
32654
|
IsDate129({ message: "El campo fecha_crea debe ser una cadena de texto" }),
|
|
32659
32655
|
Expose540()
|
|
32660
32656
|
], EstadoDePagoDTO.prototype, "fecha_crea", 2);
|
|
@@ -32669,7 +32665,7 @@ __decorateClass([
|
|
|
32669
32665
|
Expose540()
|
|
32670
32666
|
], EstadoDePagoDTO.prototype, "id_orden_mantenimiento", 2);
|
|
32671
32667
|
__decorateClass([
|
|
32672
|
-
|
|
32668
|
+
Transform68(({ value }) => formatDateOnnetFibra(value)),
|
|
32673
32669
|
IsDate129({ message: "El campo fecha_crea debe ser una cadena de texto" }),
|
|
32674
32670
|
Expose540()
|
|
32675
32671
|
], EstadoDePagoDTO.prototype, "fecha_validador", 2);
|
|
@@ -32774,7 +32770,7 @@ import { Expose as Expose545, Type as Type352 } from "class-transformer";
|
|
|
32774
32770
|
import { IsArray as IsArray179, IsDefined as IsDefined153, IsString as IsString442, ValidateNested as ValidateNested313 } from "class-validator";
|
|
32775
32771
|
|
|
32776
32772
|
// src/operativa/procesos/onnet_fibra/shared/dto/detail-maintenance-order/detalle_orden_real_dto.ts
|
|
32777
|
-
import { Expose as Expose542, Transform as
|
|
32773
|
+
import { Expose as Expose542, Transform as Transform69, Type as Type351 } from "class-transformer";
|
|
32778
32774
|
import { IsDefined as IsDefined150, IsNumber as IsNumber356, IsOptional as IsOptional24, IsString as IsString439 } from "class-validator";
|
|
32779
32775
|
var DetalleOrdenRealDTO = class {
|
|
32780
32776
|
descripcion = "";
|
|
@@ -32792,25 +32788,25 @@ var DetalleOrdenRealDTO = class {
|
|
|
32792
32788
|
__decorateClass([
|
|
32793
32789
|
IsDefined150({ message: "El campo descripcion es requerido" }),
|
|
32794
32790
|
IsString439({ message: "El campo descripcion debe ser una cadena de texto" }),
|
|
32795
|
-
|
|
32791
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32796
32792
|
Expose542()
|
|
32797
32793
|
], DetalleOrdenRealDTO.prototype, "descripcion", 2);
|
|
32798
32794
|
__decorateClass([
|
|
32799
32795
|
IsDefined150({ message: "El campo tipo es requerido" }),
|
|
32800
32796
|
IsString439({ message: "El campo tipo debe ser una cadena de texto" }),
|
|
32801
|
-
|
|
32797
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32802
32798
|
Expose542()
|
|
32803
32799
|
], DetalleOrdenRealDTO.prototype, "tipo", 2);
|
|
32804
32800
|
__decorateClass([
|
|
32805
32801
|
IsDefined150({ message: "El campo tipo_material es requerido" }),
|
|
32806
32802
|
IsString439({ message: "El campo tipo_material debe ser una cadena de texto" }),
|
|
32807
|
-
|
|
32803
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32808
32804
|
Expose542()
|
|
32809
32805
|
], DetalleOrdenRealDTO.prototype, "tipo_material", 2);
|
|
32810
32806
|
__decorateClass([
|
|
32811
32807
|
IsDefined150({ message: "El campo codigo es requerido" }),
|
|
32812
32808
|
IsString439({ message: "El campo codigo debe ser una cadena de texto" }),
|
|
32813
|
-
|
|
32809
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32814
32810
|
Expose542()
|
|
32815
32811
|
], DetalleOrdenRealDTO.prototype, "codigo", 2);
|
|
32816
32812
|
__decorateClass([
|
|
@@ -32824,12 +32820,12 @@ __decorateClass([
|
|
|
32824
32820
|
__decorateClass([
|
|
32825
32821
|
IsOptional24({ message: "El campo tecnico es requerido" }),
|
|
32826
32822
|
IsString439({ message: "El campo tecnico debe ser una cadena de texto" }),
|
|
32827
|
-
|
|
32823
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32828
32824
|
Expose542()
|
|
32829
32825
|
], DetalleOrdenRealDTO.prototype, "tecnico", 2);
|
|
32830
32826
|
__decorateClass([
|
|
32831
32827
|
IsString439({ message: "El campo unidad debe ser una cadena de texto" }),
|
|
32832
|
-
|
|
32828
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32833
32829
|
Expose542()
|
|
32834
32830
|
], DetalleOrdenRealDTO.prototype, "unidad", 2);
|
|
32835
32831
|
__decorateClass([
|
|
@@ -32839,18 +32835,18 @@ __decorateClass([
|
|
|
32839
32835
|
__decorateClass([
|
|
32840
32836
|
IsOptional24({ message: "El campo contrato es opcional" }),
|
|
32841
32837
|
IsString439({ message: "El campo contrato debe ser una cadena de texto" }),
|
|
32842
|
-
|
|
32838
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32843
32839
|
Expose542()
|
|
32844
32840
|
], DetalleOrdenRealDTO.prototype, "contrato", 2);
|
|
32845
32841
|
__decorateClass([
|
|
32846
32842
|
Type351(() => CodigoNombreDTO),
|
|
32847
32843
|
IsOptional24(),
|
|
32848
|
-
|
|
32844
|
+
Transform69(({ value }) => value ?? new CodigoNombreDTO()),
|
|
32849
32845
|
Expose542()
|
|
32850
32846
|
], DetalleOrdenRealDTO.prototype, "especialidad", 2);
|
|
32851
32847
|
|
|
32852
32848
|
// src/operativa/procesos/onnet_fibra/shared/dto/detail-maintenance-order/orden_detail_maintenance.ts
|
|
32853
|
-
import { Expose as Expose543, Transform as
|
|
32849
|
+
import { Expose as Expose543, Transform as Transform70 } from "class-transformer";
|
|
32854
32850
|
import { IsDate as IsDate130, IsDefined as IsDefined151, IsNumber as IsNumber357, IsString as IsString440 } from "class-validator";
|
|
32855
32851
|
var OrdenDetailMaintenanceDTO = class {
|
|
32856
32852
|
tipo = "";
|
|
@@ -32901,7 +32897,7 @@ __decorateClass([
|
|
|
32901
32897
|
Expose543()
|
|
32902
32898
|
], OrdenDetailMaintenanceDTO.prototype, "estado", 2);
|
|
32903
32899
|
__decorateClass([
|
|
32904
|
-
|
|
32900
|
+
Transform70(({ value }) => formatDateOnnetFibra(value)),
|
|
32905
32901
|
IsDate130({ message: "El campo fecha_crea debe ser una cadena de texto" }),
|
|
32906
32902
|
Expose543()
|
|
32907
32903
|
], OrdenDetailMaintenanceDTO.prototype, "fecha_crea", 2);
|
|
@@ -33256,12 +33252,12 @@ __decorateClass([
|
|
|
33256
33252
|
Expose547()
|
|
33257
33253
|
], OnnetFibraENTITY.prototype, "LlaveRegla", 2);
|
|
33258
33254
|
__decorateClass([
|
|
33259
|
-
|
|
33255
|
+
Transform71(({ value }) => value === void 0 || value === null ? 0 : value),
|
|
33260
33256
|
IsNumber360({}, { message: "El campo MO debe ser numero" }),
|
|
33261
33257
|
Expose547()
|
|
33262
33258
|
], OnnetFibraENTITY.prototype, "MO", 2);
|
|
33263
33259
|
__decorateClass([
|
|
33264
|
-
|
|
33260
|
+
Transform71(({ value }) => value === void 0 || value === null ? 0 : value),
|
|
33265
33261
|
IsNumber360({}, { message: "El campo PB debe ser numero" }),
|
|
33266
33262
|
Expose547()
|
|
33267
33263
|
], OnnetFibraENTITY.prototype, "PB", 2);
|