sigo-entities 1.2.86 → 1.2.88
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 +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +56 -3
- package/dist/index.mjs +246 -191
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3330,7 +3330,7 @@ __decorateClass([
|
|
|
3330
3330
|
], StockQuantityEmployeeDTO.prototype, "_id_stock_employee", 2);
|
|
3331
3331
|
|
|
3332
3332
|
// src/shared/dto/toa-segmento.ts
|
|
3333
|
-
import { Expose as Expose84 } from "class-transformer";
|
|
3333
|
+
import { Expose as Expose84, Transform as Transform17 } from "class-transformer";
|
|
3334
3334
|
import { IsDefined as IsDefined9, IsString as IsString67 } from "class-validator";
|
|
3335
3335
|
var ToaSegmentoDTO = class {
|
|
3336
3336
|
codigo;
|
|
@@ -3338,11 +3338,13 @@ var ToaSegmentoDTO = class {
|
|
|
3338
3338
|
};
|
|
3339
3339
|
__decorateClass([
|
|
3340
3340
|
Expose84({ name: "Codigo" }),
|
|
3341
|
+
Transform17(({ obj }) => obj["Codigo"] ?? obj.codigo),
|
|
3341
3342
|
IsDefined9({ message: "El campo Codigo es obligatorio." }),
|
|
3342
3343
|
IsString67()
|
|
3343
3344
|
], ToaSegmentoDTO.prototype, "codigo", 2);
|
|
3344
3345
|
__decorateClass([
|
|
3345
3346
|
Expose84({ name: "Descripcion" }),
|
|
3347
|
+
Transform17(({ obj }) => obj["Descripcion"] ?? obj.descripcion),
|
|
3346
3348
|
IsDefined9({ message: "El campo Descripcion es obligatorio." }),
|
|
3347
3349
|
IsString67()
|
|
3348
3350
|
], ToaSegmentoDTO.prototype, "descripcion", 2);
|
|
@@ -3383,10 +3385,18 @@ var StateInternalOrder = /* @__PURE__ */ ((StateInternalOrder2) => {
|
|
|
3383
3385
|
StateInternalOrder2["PENDIENTE"] = "Pendiente";
|
|
3384
3386
|
StateInternalOrder2["REVISION"] = "Revisi\xF3n";
|
|
3385
3387
|
StateInternalOrder2["FINALIZADA"] = "Finalizada";
|
|
3386
|
-
StateInternalOrder2["PROCESANDO"] = "Procesando";
|
|
3387
3388
|
return StateInternalOrder2;
|
|
3388
3389
|
})(StateInternalOrder || {});
|
|
3389
3390
|
|
|
3391
|
+
// src/shared/enums/StateInternalOrderTOA.ts
|
|
3392
|
+
var StateInternalOrderTOA = /* @__PURE__ */ ((StateInternalOrderTOA2) => {
|
|
3393
|
+
StateInternalOrderTOA2["PENDIENTE"] = "Pendiente";
|
|
3394
|
+
StateInternalOrderTOA2["REVISION"] = "Revisi\xF3n";
|
|
3395
|
+
StateInternalOrderTOA2["FINALIZADA"] = "Finalizada";
|
|
3396
|
+
StateInternalOrderTOA2["PROCESANDO"] = "Procesando";
|
|
3397
|
+
return StateInternalOrderTOA2;
|
|
3398
|
+
})(StateInternalOrderTOA || {});
|
|
3399
|
+
|
|
3390
3400
|
// src/administracion/mail structure/shared/index.ts
|
|
3391
3401
|
import { Expose as Expose85, Type as Type45 } from "class-transformer";
|
|
3392
3402
|
var MailStructureENTITY = class {
|
|
@@ -3598,7 +3608,7 @@ __decorateClass([
|
|
|
3598
3608
|
|
|
3599
3609
|
// src/administracion/EstadoInterno/shared/index.ts
|
|
3600
3610
|
import { IsArray as IsArray19, IsDate as IsDate22, IsDefined as IsDefined10, IsNumber as IsNumber55, IsString as IsString70, Length as Length61, Min as Min47, ValidateNested as ValidateNested42 } from "class-validator";
|
|
3601
|
-
import { Expose as Expose87, Transform as
|
|
3611
|
+
import { Expose as Expose87, Transform as Transform18, Type as Type47 } from "class-transformer";
|
|
3602
3612
|
var EstadoInternoENTITY = class {
|
|
3603
3613
|
ID_EstadoInterno = 0;
|
|
3604
3614
|
ID_EstadoInternoPadre = 0;
|
|
@@ -3663,7 +3673,7 @@ __decorateClass([
|
|
|
3663
3673
|
IsNumber55({}, { message: "debe ser un numero" }),
|
|
3664
3674
|
Expose87(),
|
|
3665
3675
|
Min47(0),
|
|
3666
|
-
|
|
3676
|
+
Transform18(({ value }) => Number(value))
|
|
3667
3677
|
], EstadoInternoENTITY.prototype, "Orden", 2);
|
|
3668
3678
|
__decorateClass([
|
|
3669
3679
|
IsDefined10({ message: "El campo ColorFondo es obligatorio" }),
|
|
@@ -3907,20 +3917,20 @@ __decorateClass([
|
|
|
3907
3917
|
], UnidadObraMaterialENTITY.prototype, "Estado", 2);
|
|
3908
3918
|
|
|
3909
3919
|
// src/administracion/zona trabajo/shared/dto/lat-lng-dto.ts
|
|
3910
|
-
import { Expose as Expose91, Transform as
|
|
3920
|
+
import { Expose as Expose91, Transform as Transform19 } from "class-transformer";
|
|
3911
3921
|
import { IsNotEmpty as IsNotEmpty74, IsNumber as IsNumber59 } from "class-validator";
|
|
3912
3922
|
var latLngDTO = class {
|
|
3913
3923
|
lat = 0;
|
|
3914
3924
|
lng = 0;
|
|
3915
3925
|
};
|
|
3916
3926
|
__decorateClass([
|
|
3917
|
-
|
|
3927
|
+
Transform19(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
3918
3928
|
IsNumber59({}, { message: "debe ser un numero" }),
|
|
3919
3929
|
IsNotEmpty74({ message: "es requerido" }),
|
|
3920
3930
|
Expose91()
|
|
3921
3931
|
], latLngDTO.prototype, "lat", 2);
|
|
3922
3932
|
__decorateClass([
|
|
3923
|
-
|
|
3933
|
+
Transform19(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
3924
3934
|
IsNumber59({}, { message: "debe ser un numero" }),
|
|
3925
3935
|
IsNotEmpty74({ message: "es requerido" }),
|
|
3926
3936
|
Expose91()
|
|
@@ -4413,7 +4423,7 @@ __decorateClass([
|
|
|
4413
4423
|
], DocumentacionPEXENTITY.prototype, "Estado", 2);
|
|
4414
4424
|
|
|
4415
4425
|
// src/administracion/PrecioAgencia_mam_onnet/shared/index.ts
|
|
4416
|
-
import { Expose as Expose99, Type as Type57, Transform as
|
|
4426
|
+
import { Expose as Expose99, Type as Type57, Transform as Transform20 } from "class-transformer";
|
|
4417
4427
|
import { IsNotEmpty as IsNotEmpty82, IsNumber as IsNumber66, IsString as IsString81, Length as Length70, Min as Min57, ValidateNested as ValidateNested52 } from "class-validator";
|
|
4418
4428
|
var PrecioAgencia_mam_onnetENTITY = class {
|
|
4419
4429
|
ID_PrecioAgencia_mam_onnet = 0;
|
|
@@ -4452,43 +4462,43 @@ __decorateClass([
|
|
|
4452
4462
|
Expose99()
|
|
4453
4463
|
], PrecioAgencia_mam_onnetENTITY.prototype, "Region", 2);
|
|
4454
4464
|
__decorateClass([
|
|
4455
|
-
|
|
4465
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4456
4466
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4457
4467
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4458
4468
|
Expose99()
|
|
4459
4469
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaCritica", 2);
|
|
4460
4470
|
__decorateClass([
|
|
4461
|
-
|
|
4471
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4462
4472
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4463
4473
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4464
4474
|
Expose99()
|
|
4465
4475
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaStandar_C_32", 2);
|
|
4466
4476
|
__decorateClass([
|
|
4467
|
-
|
|
4477
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4468
4478
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4469
4479
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4470
4480
|
Expose99()
|
|
4471
4481
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaStandar_C_16", 2);
|
|
4472
4482
|
__decorateClass([
|
|
4473
|
-
|
|
4483
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4474
4484
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4475
4485
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4476
4486
|
Expose99()
|
|
4477
4487
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaStandar_C_8", 2);
|
|
4478
4488
|
__decorateClass([
|
|
4479
|
-
|
|
4489
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4480
4490
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4481
4491
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4482
4492
|
Expose99()
|
|
4483
4493
|
], PrecioAgencia_mam_onnetENTITY.prototype, "QuiebreStandar", 2);
|
|
4484
4494
|
__decorateClass([
|
|
4485
|
-
|
|
4495
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4486
4496
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4487
4497
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4488
4498
|
Expose99()
|
|
4489
4499
|
], PrecioAgencia_mam_onnetENTITY.prototype, "CTO_Encontrado_OK", 2);
|
|
4490
4500
|
__decorateClass([
|
|
4491
|
-
|
|
4501
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4492
4502
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4493
4503
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4494
4504
|
Expose99()
|
|
@@ -4507,7 +4517,7 @@ __decorateClass([
|
|
|
4507
4517
|
], PrecioAgencia_mam_onnetENTITY.prototype, "Estado", 2);
|
|
4508
4518
|
|
|
4509
4519
|
// src/administracion/rm_zona_actividad/shared/index.ts
|
|
4510
|
-
import { Transform as
|
|
4520
|
+
import { Transform as Transform21, Expose as Expose100, Type as Type58 } from "class-transformer";
|
|
4511
4521
|
import { IsDefined as IsDefined11, IsNotEmpty as IsNotEmpty83, IsNumber as IsNumber67, IsString as IsString82, Length as Length71, Min as Min58, ValidateNested as ValidateNested53 } from "class-validator";
|
|
4512
4522
|
var ADM_RM_ZonasActividadENTITY = class {
|
|
4513
4523
|
ID_RM_ZonaActividad = 0;
|
|
@@ -4545,14 +4555,14 @@ __decorateClass([
|
|
|
4545
4555
|
Expose100()
|
|
4546
4556
|
], ADM_RM_ZonasActividadENTITY.prototype, "Actividad", 2);
|
|
4547
4557
|
__decorateClass([
|
|
4548
|
-
|
|
4558
|
+
Transform21(({ value }) => Number(value)),
|
|
4549
4559
|
IsDefined11({ message: "El campo Precio_v es obligatorio" }),
|
|
4550
4560
|
Expose100(),
|
|
4551
4561
|
IsNumber67({}, { message: "debe ser un numero" }),
|
|
4552
4562
|
Min58(1, { message: "el valor m\xEDnimo es 0" })
|
|
4553
4563
|
], ADM_RM_ZonasActividadENTITY.prototype, "Precio_v", 2);
|
|
4554
4564
|
__decorateClass([
|
|
4555
|
-
|
|
4565
|
+
Transform21(({ value }) => Number(value)),
|
|
4556
4566
|
IsDefined11({ message: "El campo Precio_c es obligatorio" }),
|
|
4557
4567
|
Expose100(),
|
|
4558
4568
|
IsNumber67({}, { message: "debe ser un numero" }),
|
|
@@ -4861,20 +4871,20 @@ __decorateClass([
|
|
|
4861
4871
|
], OTENTITY.prototype, "Estado", 2);
|
|
4862
4872
|
|
|
4863
4873
|
// src/administracion/ot/shared/dto/vigencia-ot-dto.ts
|
|
4864
|
-
import { Expose as Expose106, Transform as
|
|
4874
|
+
import { Expose as Expose106, Transform as Transform22, Type as Type64 } from "class-transformer";
|
|
4865
4875
|
import { IsDate as IsDate23, IsNotEmpty as IsNotEmpty87 } from "class-validator";
|
|
4866
4876
|
var VigenciaOTDTO = class {
|
|
4867
4877
|
FechaInicio = /* @__PURE__ */ new Date();
|
|
4868
4878
|
FechaFin = /* @__PURE__ */ new Date(0);
|
|
4869
4879
|
};
|
|
4870
4880
|
__decorateClass([
|
|
4871
|
-
|
|
4881
|
+
Transform22(({ value }) => value ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
4872
4882
|
IsDate23({ message: "debe ser una fecha" }),
|
|
4873
4883
|
Type64(() => Date),
|
|
4874
4884
|
Expose106()
|
|
4875
4885
|
], VigenciaOTDTO.prototype, "FechaInicio", 2);
|
|
4876
4886
|
__decorateClass([
|
|
4877
|
-
|
|
4887
|
+
Transform22(({ value }) => value ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
4878
4888
|
IsDate23({ message: "debe ser una fecha" }),
|
|
4879
4889
|
Type64(() => Date),
|
|
4880
4890
|
IsNotEmpty87({ message: "es requerido" }),
|
|
@@ -5821,7 +5831,7 @@ __decorateClass([
|
|
|
5821
5831
|
], ItemCantidadesDTO.prototype, "Fecha", 2);
|
|
5822
5832
|
|
|
5823
5833
|
// src/programados/procesos/reservaMaterial/shared/dto/item-dto.ts
|
|
5824
|
-
import { Expose as Expose125, Transform as
|
|
5834
|
+
import { Expose as Expose125, Transform as Transform23, Type as Type78 } from "class-transformer";
|
|
5825
5835
|
import { IsArray as IsArray36, IsDefined as IsDefined28, IsNotEmpty as IsNotEmpty92, IsNumber as IsNumber88, IsString as IsString101, Min as Min78, MinLength as MinLength9, ValidateNested as ValidateNested71 } from "class-validator";
|
|
5826
5836
|
var ItemDTO = class {
|
|
5827
5837
|
ID_Item = 0;
|
|
@@ -5896,7 +5906,7 @@ __decorateClass([
|
|
|
5896
5906
|
Expose125()
|
|
5897
5907
|
], ItemDTO.prototype, "Lote", 2);
|
|
5898
5908
|
__decorateClass([
|
|
5899
|
-
|
|
5909
|
+
Transform23(({ value }) => convertTypeNumber({ value })),
|
|
5900
5910
|
IsDefined28({ message: "es requerido" }),
|
|
5901
5911
|
IsNumber88({}, { message: "debe ser un numero" }),
|
|
5902
5912
|
Min78(0, { message: "el valor m\xEDnimo es 0" }),
|
|
@@ -6950,7 +6960,7 @@ __decorateClass([
|
|
|
6950
6960
|
], ProduccionDTO.prototype, "CentroCostos", 2);
|
|
6951
6961
|
|
|
6952
6962
|
// src/programados/procesos/trabajo/shared/dto/detalle-chile-dto.ts
|
|
6953
|
-
import { Expose as Expose141, Transform as
|
|
6963
|
+
import { Expose as Expose141, Transform as Transform24, Type as Type93 } from "class-transformer";
|
|
6954
6964
|
import { IsDefined as IsDefined37, IsNotEmpty as IsNotEmpty102, IsNumber as IsNumber101, IsString as IsString113, Length as Length88, Min as Min88, MinLength as MinLength14, ValidateNested as ValidateNested84 } from "class-validator";
|
|
6955
6965
|
var DetalleChileDTO = class {
|
|
6956
6966
|
Codigo = "";
|
|
@@ -7107,7 +7117,7 @@ __decorateClass([
|
|
|
7107
7117
|
], DetalleChileDTO.prototype, "CanUOApr", 2);
|
|
7108
7118
|
__decorateClass([
|
|
7109
7119
|
IsDefined37({ message: "es requerido" }),
|
|
7110
|
-
|
|
7120
|
+
Transform24(({ value }) => {
|
|
7111
7121
|
const num = Number(value);
|
|
7112
7122
|
return isNaN(num) ? value : num;
|
|
7113
7123
|
}),
|
|
@@ -7478,7 +7488,7 @@ __decorateClass([
|
|
|
7478
7488
|
], SubManoObraDTO.prototype, "Cantidad", 2);
|
|
7479
7489
|
|
|
7480
7490
|
// src/programados/procesos/trabajo/shared/dto/ubicacion-dto.ts
|
|
7481
|
-
import { Expose as Expose149, Transform as
|
|
7491
|
+
import { Expose as Expose149, Transform as Transform25, Type as Type97 } from "class-transformer";
|
|
7482
7492
|
import { IsNotEmpty as IsNotEmpty109, IsString as IsString120, Length as Length94, MinLength as MinLength18, ValidateNested as ValidateNested88 } from "class-validator";
|
|
7483
7493
|
var UbicacionDTO = class {
|
|
7484
7494
|
Direccion = "";
|
|
@@ -7495,7 +7505,7 @@ __decorateClass([
|
|
|
7495
7505
|
Expose149()
|
|
7496
7506
|
], UbicacionDTO.prototype, "Direccion", 2);
|
|
7497
7507
|
__decorateClass([
|
|
7498
|
-
|
|
7508
|
+
Transform25(({ value }) => value === null ? "" : value),
|
|
7499
7509
|
IsString120({ message: "debe ser un texto" }),
|
|
7500
7510
|
MinLength18(0, { message: "debe tener entre como m\xEDnimo 0 caracteres" }),
|
|
7501
7511
|
Expose149()
|
|
@@ -7507,7 +7517,7 @@ __decorateClass([
|
|
|
7507
7517
|
ValidateNested88()
|
|
7508
7518
|
], UbicacionDTO.prototype, "Coordenadas", 2);
|
|
7509
7519
|
__decorateClass([
|
|
7510
|
-
|
|
7520
|
+
Transform25(({ value }) => value === null ? "" : value),
|
|
7511
7521
|
IsString120({ message: "debe ser un texto" }),
|
|
7512
7522
|
MinLength18(0, { message: "debe tener entre como m\xEDnimo 0 caracteres" }),
|
|
7513
7523
|
Expose149()
|
|
@@ -7903,7 +7913,7 @@ __decorateClass([
|
|
|
7903
7913
|
], ValorizacionesDTO.prototype, "Estado", 2);
|
|
7904
7914
|
|
|
7905
7915
|
// src/programados/procesos/trabajo/shared/dto/personal-trabajo-dto.ts
|
|
7906
|
-
import { Expose as Expose153, Transform as
|
|
7916
|
+
import { Expose as Expose153, Transform as Transform26 } from "class-transformer";
|
|
7907
7917
|
import { IsNumber as IsNumber109, IsString as IsString123, Length as Length97, MinLength as MinLength20 } from "class-validator";
|
|
7908
7918
|
var PersonalTrabajoDTO = class {
|
|
7909
7919
|
Identificacion = "";
|
|
@@ -7918,7 +7928,7 @@ __decorateClass([
|
|
|
7918
7928
|
Expose153()
|
|
7919
7929
|
], PersonalTrabajoDTO.prototype, "Identificacion", 2);
|
|
7920
7930
|
__decorateClass([
|
|
7921
|
-
|
|
7931
|
+
Transform26(({ value }) => value === "" ? 0 : value),
|
|
7922
7932
|
IsNumber109({}, { message: "debe ser un numero" }),
|
|
7923
7933
|
Expose153()
|
|
7924
7934
|
], PersonalTrabajoDTO.prototype, "IdPersonal", 2);
|
|
@@ -12959,7 +12969,7 @@ __decorateClass([
|
|
|
12959
12969
|
], TotalGeneralObraDTO.prototype, "ResumenAvance", 2);
|
|
12960
12970
|
|
|
12961
12971
|
// src/programados/procesos/obra/shared/dto/ubicacion-dto.ts
|
|
12962
|
-
import { Expose as Expose239, Transform as
|
|
12972
|
+
import { Expose as Expose239, Transform as Transform27, Type as Type165 } from "class-transformer";
|
|
12963
12973
|
import { IsNotEmpty as IsNotEmpty175, IsString as IsString183, Length as Length139, ValidateNested as ValidateNested152 } from "class-validator";
|
|
12964
12974
|
var UbicacionObraDTO = class {
|
|
12965
12975
|
Direccion = "";
|
|
@@ -12976,7 +12986,7 @@ __decorateClass([
|
|
|
12976
12986
|
Expose239()
|
|
12977
12987
|
], UbicacionObraDTO.prototype, "Direccion", 2);
|
|
12978
12988
|
__decorateClass([
|
|
12979
|
-
|
|
12989
|
+
Transform27(({ value }) => value === null ? "" : value),
|
|
12980
12990
|
IsString183({ message: "debe ser un texto" }),
|
|
12981
12991
|
Length139(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
12982
12992
|
Expose239()
|
|
@@ -12988,7 +12998,7 @@ __decorateClass([
|
|
|
12988
12998
|
ValidateNested152()
|
|
12989
12999
|
], UbicacionObraDTO.prototype, "Coordenadas", 2);
|
|
12990
13000
|
__decorateClass([
|
|
12991
|
-
|
|
13001
|
+
Transform27(({ value }) => value === null ? "" : value),
|
|
12992
13002
|
IsString183({ message: "debe ser un texto" }),
|
|
12993
13003
|
Length139(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
12994
13004
|
Expose239()
|
|
@@ -13555,7 +13565,7 @@ import { Expose as Expose254, Type as Type177 } from "class-transformer";
|
|
|
13555
13565
|
import { IsNotEmpty as IsNotEmpty187, ValidateNested as ValidateNested164 } from "class-validator";
|
|
13556
13566
|
|
|
13557
13567
|
// src/programados/procesos/obra/alemania/shared/detalle-chile-alemania-obra-dto.ts
|
|
13558
|
-
import { Expose as Expose253, Transform as
|
|
13568
|
+
import { Expose as Expose253, Transform as Transform28, Type as Type176 } from "class-transformer";
|
|
13559
13569
|
import { IsArray as IsArray95, IsDate as IsDate54, IsNotEmpty as IsNotEmpty186, IsNumber as IsNumber178, IsString as IsString188, Length as Length143, Min as Min140, ValidateNested as ValidateNested163, MinLength as MinLength31 } from "class-validator";
|
|
13560
13570
|
var DetalleChileAlemaniaObraDTO = class {
|
|
13561
13571
|
codigoCalc = "";
|
|
@@ -13711,7 +13721,7 @@ __decorateClass([
|
|
|
13711
13721
|
IsNumber178({}, { message: "debe ser un numero" }),
|
|
13712
13722
|
Expose253(),
|
|
13713
13723
|
Min140(0),
|
|
13714
|
-
|
|
13724
|
+
Transform28(({ value }) => Number(value))
|
|
13715
13725
|
], DetalleChileAlemaniaObraDTO.prototype, "CostoTotal", 2);
|
|
13716
13726
|
__decorateClass([
|
|
13717
13727
|
Type176(() => HistoricoDTO),
|
|
@@ -15260,11 +15270,11 @@ __decorateClass([
|
|
|
15260
15270
|
], GomENTITY.prototype, "Anexos", 2);
|
|
15261
15271
|
|
|
15262
15272
|
// src/programados/procesos/cubicacion/shared/index.ts
|
|
15263
|
-
import { Expose as Expose281, Transform as
|
|
15273
|
+
import { Expose as Expose281, Transform as Transform31, Type as Type196 } from "class-transformer";
|
|
15264
15274
|
import { IsArray as IsArray106, IsDate as IsDate63, IsEnum as IsEnum3, IsNumber as IsNumber199, IsString as IsString206, Min as Min160, MinLength as MinLength35, ValidateNested as ValidateNested180 } from "class-validator";
|
|
15265
15275
|
|
|
15266
15276
|
// src/programados/procesos/cubicacion/shared/dto/cabecera-cubicaje-dto.ts
|
|
15267
|
-
import { Expose as Expose279, Transform as
|
|
15277
|
+
import { Expose as Expose279, Transform as Transform29, Type as Type195 } from "class-transformer";
|
|
15268
15278
|
import { IsDate as IsDate62, IsNumber as IsNumber197, IsString as IsString204, Min as Min158, MinLength as MinLength33 } from "class-validator";
|
|
15269
15279
|
var CabeceraCubicajeDTO = class {
|
|
15270
15280
|
codigoCalc = "";
|
|
@@ -15307,13 +15317,13 @@ __decorateClass([
|
|
|
15307
15317
|
Expose279()
|
|
15308
15318
|
], CabeceraCubicajeDTO.prototype, "nombre", 2);
|
|
15309
15319
|
__decorateClass([
|
|
15310
|
-
|
|
15320
|
+
Transform29(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15311
15321
|
IsString204({ message: "debe ser un texto" }),
|
|
15312
15322
|
MinLength33(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15313
15323
|
Expose279()
|
|
15314
15324
|
], CabeceraCubicajeDTO.prototype, "contrato", 2);
|
|
15315
15325
|
__decorateClass([
|
|
15316
|
-
|
|
15326
|
+
Transform29(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15317
15327
|
IsString204({ message: "debe ser un texto" }),
|
|
15318
15328
|
MinLength33(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15319
15329
|
Expose279()
|
|
@@ -15324,7 +15334,7 @@ __decorateClass([
|
|
|
15324
15334
|
Expose279()
|
|
15325
15335
|
], CabeceraCubicajeDTO.prototype, "numoe", 2);
|
|
15326
15336
|
__decorateClass([
|
|
15327
|
-
|
|
15337
|
+
Transform29(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15328
15338
|
IsString204({ message: "debe ser un texto" }),
|
|
15329
15339
|
MinLength33(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15330
15340
|
Expose279()
|
|
@@ -15411,7 +15421,7 @@ __decorateClass([
|
|
|
15411
15421
|
], CabeceraCubicajeDTO.prototype, "CostoTotal", 2);
|
|
15412
15422
|
|
|
15413
15423
|
// src/programados/procesos/cubicacion/shared/dto/detalle-cubicaje-dto.ts
|
|
15414
|
-
import { Expose as Expose280, Transform as
|
|
15424
|
+
import { Expose as Expose280, Transform as Transform30 } from "class-transformer";
|
|
15415
15425
|
import { IsNumber as IsNumber198, IsString as IsString205, MinLength as MinLength34, Min as Min159 } from "class-validator";
|
|
15416
15426
|
var DetalleCubicajeDTO = class {
|
|
15417
15427
|
codigo = "";
|
|
@@ -15472,19 +15482,19 @@ __decorateClass([
|
|
|
15472
15482
|
Expose280()
|
|
15473
15483
|
], DetalleCubicajeDTO.prototype, "plano", 2);
|
|
15474
15484
|
__decorateClass([
|
|
15475
|
-
|
|
15485
|
+
Transform30(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15476
15486
|
IsString205({ message: "debe ser un texto" }),
|
|
15477
15487
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15478
15488
|
Expose280()
|
|
15479
15489
|
], DetalleCubicajeDTO.prototype, "codesp", 2);
|
|
15480
15490
|
__decorateClass([
|
|
15481
|
-
|
|
15491
|
+
Transform30(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15482
15492
|
IsString205({ message: "debe ser un texto" }),
|
|
15483
15493
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15484
15494
|
Expose280()
|
|
15485
15495
|
], DetalleCubicajeDTO.prototype, "codact", 2);
|
|
15486
15496
|
__decorateClass([
|
|
15487
|
-
|
|
15497
|
+
Transform30(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15488
15498
|
IsString205({ message: "debe ser un texto" }),
|
|
15489
15499
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15490
15500
|
Expose280()
|
|
@@ -15495,13 +15505,13 @@ __decorateClass([
|
|
|
15495
15505
|
Expose280()
|
|
15496
15506
|
], DetalleCubicajeDTO.prototype, "tarea", 2);
|
|
15497
15507
|
__decorateClass([
|
|
15498
|
-
|
|
15508
|
+
Transform30(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15499
15509
|
IsString205({ message: "debe ser un texto" }),
|
|
15500
15510
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15501
15511
|
Expose280()
|
|
15502
15512
|
], DetalleCubicajeDTO.prototype, "codmo", 2);
|
|
15503
15513
|
__decorateClass([
|
|
15504
|
-
|
|
15514
|
+
Transform30(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15505
15515
|
IsString205({ message: "debe ser un texto" }),
|
|
15506
15516
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15507
15517
|
Expose280()
|
|
@@ -15589,7 +15599,7 @@ __decorateClass([
|
|
|
15589
15599
|
Expose281()
|
|
15590
15600
|
], CubicacionENTITY.prototype, "Accion", 2);
|
|
15591
15601
|
__decorateClass([
|
|
15592
|
-
|
|
15602
|
+
Transform31(({ value }) => typeof value === "string" ? value.replaceAll(" ", "") : value),
|
|
15593
15603
|
IsDate63({ message: "debe ser una fecha" }),
|
|
15594
15604
|
Type196(() => Date),
|
|
15595
15605
|
Expose281()
|
|
@@ -16414,7 +16424,7 @@ __decorateClass([
|
|
|
16414
16424
|
], VigenciaKeyDTO.prototype, "FechaFin", 2);
|
|
16415
16425
|
|
|
16416
16426
|
// src/programados/procesos/precioContratistaMaterial/shared/dto/material-precio-contratista-dto.ts
|
|
16417
|
-
import { Expose as Expose304, Transform as
|
|
16427
|
+
import { Expose as Expose304, Transform as Transform32, Type as Type212 } from "class-transformer";
|
|
16418
16428
|
import { IsArray as IsArray113, IsNumber as IsNumber209, IsString as IsString217, Length as Length153, Min as Min164, ValidateNested as ValidateNested194, IsBoolean as IsBoolean20, IsDate as IsDate69, IsDefined as IsDefined81 } from "class-validator";
|
|
16419
16429
|
var MaterialPrecioContratistaDTO = class {
|
|
16420
16430
|
ID_Item = 0;
|
|
@@ -16503,14 +16513,14 @@ __decorateClass([
|
|
|
16503
16513
|
Expose304()
|
|
16504
16514
|
], MaterialPrecioContratistaDTO.prototype, "Tipo", 2);
|
|
16505
16515
|
__decorateClass([
|
|
16506
|
-
|
|
16516
|
+
Transform32(({ value }) => Number(value)),
|
|
16507
16517
|
IsDefined81({ message: "El campo Valor es obligatorio" }),
|
|
16508
16518
|
Expose304(),
|
|
16509
16519
|
IsNumber209({}, { message: "debe ser un numero" }),
|
|
16510
16520
|
Min164(0, { message: "el valor m\xEDnimo es 0" })
|
|
16511
16521
|
], MaterialPrecioContratistaDTO.prototype, "Valor", 2);
|
|
16512
16522
|
__decorateClass([
|
|
16513
|
-
|
|
16523
|
+
Transform32(({ value }) => Number(value)),
|
|
16514
16524
|
IsDefined81({ message: "El Prioridad Valor es obligatorio" }),
|
|
16515
16525
|
Expose304(),
|
|
16516
16526
|
IsNumber209({}, { message: "debe ser un numero" }),
|
|
@@ -16523,7 +16533,7 @@ __decorateClass([
|
|
|
16523
16533
|
Expose304()
|
|
16524
16534
|
], MaterialPrecioContratistaDTO.prototype, "CodigoSAP", 2);
|
|
16525
16535
|
__decorateClass([
|
|
16526
|
-
|
|
16536
|
+
Transform32(({ value }) => Number(value)),
|
|
16527
16537
|
IsDefined81({ message: "El Precio Valor es obligatorio" }),
|
|
16528
16538
|
Expose304(),
|
|
16529
16539
|
IsNumber209({}, { message: "debe ser un numero" }),
|
|
@@ -16981,7 +16991,7 @@ import { Expose as Expose311, Type as Type219 } from "class-transformer";
|
|
|
16981
16991
|
import { IsNotEmpty as IsNotEmpty216, IsArray as IsArray118, ValidateNested as ValidateNested201 } from "class-validator";
|
|
16982
16992
|
|
|
16983
16993
|
// src/programados/mantenimientos/mano obra global/shared/dto/mano-obra-baremo-dto.ts
|
|
16984
|
-
import { Expose as Expose309, Transform as
|
|
16994
|
+
import { Expose as Expose309, Transform as Transform33, Type as Type217 } from "class-transformer";
|
|
16985
16995
|
import { IsNumber as IsNumber214, Min as Min169, IsNotEmpty as IsNotEmpty214, ValidateNested as ValidateNested199 } from "class-validator";
|
|
16986
16996
|
var ManoObraBaremoDTO = class {
|
|
16987
16997
|
ID_ManoObraBaremo = 0;
|
|
@@ -17004,21 +17014,21 @@ __decorateClass([
|
|
|
17004
17014
|
ValidateNested199()
|
|
17005
17015
|
], ManoObraBaremoDTO.prototype, "Especialidad", 2);
|
|
17006
17016
|
__decorateClass([
|
|
17007
|
-
|
|
17017
|
+
Transform33(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
17008
17018
|
IsNumber214({}, { message: "debe ser un numero" }),
|
|
17009
17019
|
IsNotEmpty214({ message: "es requerido" }),
|
|
17010
17020
|
Min169(0),
|
|
17011
17021
|
Expose309()
|
|
17012
17022
|
], ManoObraBaremoDTO.prototype, "PuntoBaremo", 2);
|
|
17013
17023
|
__decorateClass([
|
|
17014
|
-
|
|
17024
|
+
Transform33(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
17015
17025
|
IsNumber214({}, { message: "debe ser un numero" }),
|
|
17016
17026
|
IsNotEmpty214({ message: "es requerido" }),
|
|
17017
17027
|
Min169(0),
|
|
17018
17028
|
Expose309()
|
|
17019
17029
|
], ManoObraBaremoDTO.prototype, "PuntoBaremoContratista", 2);
|
|
17020
17030
|
__decorateClass([
|
|
17021
|
-
|
|
17031
|
+
Transform33(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
17022
17032
|
IsNumber214({}, { message: "debe ser un numero" }),
|
|
17023
17033
|
IsNotEmpty214({ message: "es requerido" }),
|
|
17024
17034
|
Min169(0),
|
|
@@ -17071,7 +17081,7 @@ __decorateClass([
|
|
|
17071
17081
|
], DetalleManoObraChileDTO.prototype, "ManoObraBaremo", 2);
|
|
17072
17082
|
|
|
17073
17083
|
// src/programados/mantenimientos/mano obra global/shared/dto/add-mo-pcontrata-mo.ts
|
|
17074
|
-
import { Expose as Expose312, Transform as
|
|
17084
|
+
import { Expose as Expose312, Transform as Transform34 } from "class-transformer";
|
|
17075
17085
|
import { IsBoolean as IsBoolean21, IsDefined as IsDefined85, IsNumber as IsNumber216, IsString as IsString222, Length as Length158 } from "class-validator";
|
|
17076
17086
|
var AddMOPContrataMODTO = class {
|
|
17077
17087
|
CodigoMO = "";
|
|
@@ -17087,7 +17097,7 @@ __decorateClass([
|
|
|
17087
17097
|
], AddMOPContrataMODTO.prototype, "CodigoMO", 2);
|
|
17088
17098
|
__decorateClass([
|
|
17089
17099
|
IsDefined85({ message: "El campo newPrecio es obligatorio" }),
|
|
17090
|
-
|
|
17100
|
+
Transform34(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
17091
17101
|
IsNumber216({}, { message: "debe ser un numero" }),
|
|
17092
17102
|
Expose312()
|
|
17093
17103
|
], AddMOPContrataMODTO.prototype, "NewPrecio", 2);
|
|
@@ -17212,7 +17222,7 @@ __decorateClass([
|
|
|
17212
17222
|
], AreaGomDTO.prototype, "Descripcion", 2);
|
|
17213
17223
|
|
|
17214
17224
|
// src/programados/mantenimientos/centro costos/shared/index.ts
|
|
17215
|
-
import { Expose as Expose315, Type as Type221, Transform as
|
|
17225
|
+
import { Expose as Expose315, Type as Type221, Transform as Transform35 } from "class-transformer";
|
|
17216
17226
|
import { IsDefined as IsDefined87, IsNumber as IsNumber218, IsString as IsString225, Length as Length161, Min as Min172, ValidateNested as ValidateNested203 } from "class-validator";
|
|
17217
17227
|
var CentroCostosENTITY = class {
|
|
17218
17228
|
ID_CentroCostos = 0;
|
|
@@ -17250,7 +17260,7 @@ __decorateClass([
|
|
|
17250
17260
|
ValidateNested203()
|
|
17251
17261
|
], CentroCostosENTITY.prototype, "Delegacion", 2);
|
|
17252
17262
|
__decorateClass([
|
|
17253
|
-
|
|
17263
|
+
Transform35(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
17254
17264
|
IsDefined87({ message: "El campo Codigo es obligatorio" }),
|
|
17255
17265
|
IsString225({ message: "debe ser un texto" }),
|
|
17256
17266
|
Length161(1, 75, { message: "debe tener entre 1 y 75 caracteres" }),
|
|
@@ -17386,7 +17396,7 @@ __decorateClass([
|
|
|
17386
17396
|
], RM_ZonasActividadENTITY.prototype, "Bitacora", 2);
|
|
17387
17397
|
|
|
17388
17398
|
// src/programados/mantenimientos/rm-material/shared/index.ts
|
|
17389
|
-
import { Expose as Expose319, Transform as
|
|
17399
|
+
import { Expose as Expose319, Transform as Transform36, Type as Type223 } from "class-transformer";
|
|
17390
17400
|
import { IsDefined as IsDefined88, IsNotEmpty as IsNotEmpty220, IsNumber as IsNumber221, IsString as IsString229, Length as Length165, Min as Min174, ValidateNested as ValidateNested205 } from "class-validator";
|
|
17391
17401
|
var RM_MaterialENTITY = class {
|
|
17392
17402
|
ID_RM_Material = 0;
|
|
@@ -17442,7 +17452,7 @@ __decorateClass([
|
|
|
17442
17452
|
Expose319()
|
|
17443
17453
|
], RM_MaterialENTITY.prototype, "Proveedor", 2);
|
|
17444
17454
|
__decorateClass([
|
|
17445
|
-
|
|
17455
|
+
Transform36(({ value }) => Number(value)),
|
|
17446
17456
|
IsDefined88({ message: "El campo Precio es obligatorio" }),
|
|
17447
17457
|
IsNumber221({}, { message: "debe ser un numero" }),
|
|
17448
17458
|
Expose319(),
|
|
@@ -17455,7 +17465,7 @@ __decorateClass([
|
|
|
17455
17465
|
Expose319()
|
|
17456
17466
|
], RM_MaterialENTITY.prototype, "Tipo_Moneda", 2);
|
|
17457
17467
|
__decorateClass([
|
|
17458
|
-
|
|
17468
|
+
Transform36(({ value }) => Number(value)),
|
|
17459
17469
|
IsDefined88({ message: "El campo Valor_Moneda es obligatorio" }),
|
|
17460
17470
|
IsNumber221({}, { message: "debe ser un numero" }),
|
|
17461
17471
|
Expose319(),
|
|
@@ -17889,7 +17899,7 @@ __decorateClass([
|
|
|
17889
17899
|
], RM_ComunaENTITY.prototype, "Estado", 2);
|
|
17890
17900
|
|
|
17891
17901
|
// src/programados/mantenimientos/rm mano obra/shared/index.ts
|
|
17892
|
-
import { Expose as Expose327, Transform as
|
|
17902
|
+
import { Expose as Expose327, Transform as Transform37, Type as Type231 } from "class-transformer";
|
|
17893
17903
|
import { IsDefined as IsDefined89, IsNumber as IsNumber229, IsString as IsString237, Length as Length173, Min as Min182, ValidateNested as ValidateNested211 } from "class-validator";
|
|
17894
17904
|
var RM_ManoObraENTITY = class {
|
|
17895
17905
|
ID_RM_ManoObra = 0;
|
|
@@ -17934,7 +17944,7 @@ __decorateClass([
|
|
|
17934
17944
|
Expose327()
|
|
17935
17945
|
], RM_ManoObraENTITY.prototype, "Especialidad", 2);
|
|
17936
17946
|
__decorateClass([
|
|
17937
|
-
|
|
17947
|
+
Transform37(({ value }) => Number(value)),
|
|
17938
17948
|
IsDefined89({ message: "El campo Puntos_Baremos es obligatorio" }),
|
|
17939
17949
|
IsNumber229({}, { message: "debe ser un numero" }),
|
|
17940
17950
|
Expose327(),
|
|
@@ -17966,7 +17976,7 @@ __decorateClass([
|
|
|
17966
17976
|
], RM_ManoObraENTITY.prototype, "Estado", 2);
|
|
17967
17977
|
|
|
17968
17978
|
// src/programados/mantenimientos/rm paquetizado/shared/index.ts
|
|
17969
|
-
import { Expose as Expose328, Transform as
|
|
17979
|
+
import { Expose as Expose328, Transform as Transform38, Type as Type232 } from "class-transformer";
|
|
17970
17980
|
import { IsDefined as IsDefined90, IsNumber as IsNumber230, IsString as IsString238, Length as Length174, Min as Min183, ValidateNested as ValidateNested212 } from "class-validator";
|
|
17971
17981
|
var RM_PaquetizadoENTITY = class {
|
|
17972
17982
|
ID_RM_Paquetizado = 0;
|
|
@@ -18000,35 +18010,35 @@ __decorateClass([
|
|
|
18000
18010
|
Expose328()
|
|
18001
18011
|
], RM_PaquetizadoENTITY.prototype, "LLAVE", 2);
|
|
18002
18012
|
__decorateClass([
|
|
18003
|
-
|
|
18013
|
+
Transform38(({ value }) => Number(value)),
|
|
18004
18014
|
IsDefined90({ message: "El campo Total_PB es obligatorio" }),
|
|
18005
18015
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18006
18016
|
Expose328(),
|
|
18007
18017
|
Min183(0)
|
|
18008
18018
|
], RM_PaquetizadoENTITY.prototype, "Total_PB", 2);
|
|
18009
18019
|
__decorateClass([
|
|
18010
|
-
|
|
18020
|
+
Transform38(({ value }) => Number(value)),
|
|
18011
18021
|
IsDefined90({ message: "El campo Total_Ctta es obligatorio" }),
|
|
18012
18022
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18013
18023
|
Expose328(),
|
|
18014
18024
|
Min183(0)
|
|
18015
18025
|
], RM_PaquetizadoENTITY.prototype, "Total_Ctta", 2);
|
|
18016
18026
|
__decorateClass([
|
|
18017
|
-
|
|
18027
|
+
Transform38(({ value }) => Number(value)),
|
|
18018
18028
|
IsDefined90({ message: "El campo zona_10 es obligatorio" }),
|
|
18019
18029
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18020
18030
|
Expose328(),
|
|
18021
18031
|
Min183(0)
|
|
18022
18032
|
], RM_PaquetizadoENTITY.prototype, "zona_10", 2);
|
|
18023
18033
|
__decorateClass([
|
|
18024
|
-
|
|
18034
|
+
Transform38(({ value }) => Number(value)),
|
|
18025
18035
|
IsDefined90({ message: "El campo zona_14 es obligatorio" }),
|
|
18026
18036
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18027
18037
|
Expose328(),
|
|
18028
18038
|
Min183(0)
|
|
18029
18039
|
], RM_PaquetizadoENTITY.prototype, "zona_14", 2);
|
|
18030
18040
|
__decorateClass([
|
|
18031
|
-
|
|
18041
|
+
Transform38(({ value }) => Number(value)),
|
|
18032
18042
|
IsDefined90({ message: "El campo Total_MAT es obligatorio" }),
|
|
18033
18043
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18034
18044
|
Expose328(),
|
|
@@ -18054,7 +18064,7 @@ __decorateClass([
|
|
|
18054
18064
|
], RM_PaquetizadoENTITY.prototype, "Estado", 2);
|
|
18055
18065
|
|
|
18056
18066
|
// src/programados/mantenimientos/rm actividad/shared/index.ts
|
|
18057
|
-
import { Expose as Expose329, Transform as
|
|
18067
|
+
import { Expose as Expose329, Transform as Transform39, Type as Type233 } from "class-transformer";
|
|
18058
18068
|
import { IsDefined as IsDefined91, IsNumber as IsNumber231, IsString as IsString239, Length as Length175, Min as Min184, ValidateNested as ValidateNested213 } from "class-validator";
|
|
18059
18069
|
var RM_ActividadENTITY = class {
|
|
18060
18070
|
ID_RM_Actividad = 0;
|
|
@@ -18084,7 +18094,7 @@ __decorateClass([
|
|
|
18084
18094
|
Expose329()
|
|
18085
18095
|
], RM_ActividadENTITY.prototype, "Descripcion", 2);
|
|
18086
18096
|
__decorateClass([
|
|
18087
|
-
|
|
18097
|
+
Transform39(({ value }) => Number(value)),
|
|
18088
18098
|
IsDefined91({ message: "El campo Precio_EECC es obligatorio" }),
|
|
18089
18099
|
IsNumber231({}, { message: "debe ser un numero" }),
|
|
18090
18100
|
Expose329(),
|
|
@@ -19741,7 +19751,7 @@ import { Expose as Expose369, Type as Type252 } from "class-transformer";
|
|
|
19741
19751
|
import { IsArray as IsArray129, IsDefined as IsDefined112, IsNumber as IsNumber251, IsString as IsString277, ValidateNested as ValidateNested229 } from "class-validator";
|
|
19742
19752
|
|
|
19743
19753
|
// src/programados/Reportes/ReporteProduccion/Chile/BaremoProcess/dto/baremo_process_fechas-dto.ts
|
|
19744
|
-
import { Expose as Expose358, Transform as
|
|
19754
|
+
import { Expose as Expose358, Transform as Transform41 } from "class-transformer";
|
|
19745
19755
|
import { IsDate as IsDate78 } from "class-validator";
|
|
19746
19756
|
var BaremoProcessFechasDTO = class {
|
|
19747
19757
|
Registro = "";
|
|
@@ -19751,22 +19761,22 @@ var BaremoProcessFechasDTO = class {
|
|
|
19751
19761
|
};
|
|
19752
19762
|
__decorateClass([
|
|
19753
19763
|
Expose358(),
|
|
19754
|
-
|
|
19764
|
+
Transform41(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
19755
19765
|
IsDate78()
|
|
19756
19766
|
], BaremoProcessFechasDTO.prototype, "Registro", 2);
|
|
19757
19767
|
__decorateClass([
|
|
19758
19768
|
Expose358(),
|
|
19759
|
-
|
|
19769
|
+
Transform41(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
19760
19770
|
IsDate78()
|
|
19761
19771
|
], BaremoProcessFechasDTO.prototype, "Preliquidacion", 2);
|
|
19762
19772
|
__decorateClass([
|
|
19763
19773
|
Expose358(),
|
|
19764
|
-
|
|
19774
|
+
Transform41(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
19765
19775
|
IsDate78()
|
|
19766
19776
|
], BaremoProcessFechasDTO.prototype, "Liquidacion", 2);
|
|
19767
19777
|
__decorateClass([
|
|
19768
19778
|
Expose358(),
|
|
19769
|
-
|
|
19779
|
+
Transform41(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
19770
19780
|
IsDate78()
|
|
19771
19781
|
], BaremoProcessFechasDTO.prototype, "Produccion", 2);
|
|
19772
19782
|
|
|
@@ -19867,7 +19877,7 @@ __decorateClass([
|
|
|
19867
19877
|
], BaremoProcessUnidadMedidaDTO.prototype, "Nombre", 2);
|
|
19868
19878
|
|
|
19869
19879
|
// src/programados/Reportes/ReporteProduccion/Chile/BaremoProcess/dto/baremo_process_periodo-dto.ts
|
|
19870
|
-
import { Expose as Expose363, Transform as
|
|
19880
|
+
import { Expose as Expose363, Transform as Transform42 } from "class-transformer";
|
|
19871
19881
|
import { IsDefined as IsDefined106, IsNumber as IsNumber248, IsString as IsString271 } from "class-validator";
|
|
19872
19882
|
var BaremoProcessPeriodoDTO = class {
|
|
19873
19883
|
Anio = 0;
|
|
@@ -19878,19 +19888,19 @@ __decorateClass([
|
|
|
19878
19888
|
Expose363(),
|
|
19879
19889
|
IsDefined106({ message: "El campo Anio es obligatorio." }),
|
|
19880
19890
|
IsNumber248(),
|
|
19881
|
-
|
|
19891
|
+
Transform42(convertTypeNumber)
|
|
19882
19892
|
], BaremoProcessPeriodoDTO.prototype, "Anio", 2);
|
|
19883
19893
|
__decorateClass([
|
|
19884
19894
|
Expose363(),
|
|
19885
19895
|
IsDefined106({ message: "El campo Mes es obligatorio." }),
|
|
19886
19896
|
IsNumber248(),
|
|
19887
|
-
|
|
19897
|
+
Transform42(convertTypeNumber)
|
|
19888
19898
|
], BaremoProcessPeriodoDTO.prototype, "Mes", 2);
|
|
19889
19899
|
__decorateClass([
|
|
19890
19900
|
Expose363(),
|
|
19891
19901
|
IsDefined106({ message: "El campo Codigo es obligatorio." }),
|
|
19892
19902
|
IsString271(),
|
|
19893
|
-
|
|
19903
|
+
Transform42(convertTypeNumber)
|
|
19894
19904
|
], BaremoProcessPeriodoDTO.prototype, "Codigo", 2);
|
|
19895
19905
|
|
|
19896
19906
|
// src/programados/Reportes/ReporteProduccion/Chile/BaremoProcess/dto/baremo_process_materiales_utilizados-dto.ts
|
|
@@ -20525,7 +20535,7 @@ __decorateClass([
|
|
|
20525
20535
|
], ResumenProcessPeriodoDTO.prototype, "Codigo", 2);
|
|
20526
20536
|
|
|
20527
20537
|
// src/programados/Reportes/ReporteProduccion/Chile/ResumenProcess/dto/resumen_process_fecha_facturacion_generada-dto.ts
|
|
20528
|
-
import { Expose as Expose374, Transform as
|
|
20538
|
+
import { Expose as Expose374, Transform as Transform44 } from "class-transformer";
|
|
20529
20539
|
import { IsDate as IsDate81, IsDefined as IsDefined117, IsNumber as IsNumber253, IsString as IsString282 } from "class-validator";
|
|
20530
20540
|
var ResumenProcessFechaFacturageneradaDTO = class {
|
|
20531
20541
|
fecha = /* @__PURE__ */ new Date(0);
|
|
@@ -20536,7 +20546,7 @@ var ResumenProcessFechaFacturageneradaDTO = class {
|
|
|
20536
20546
|
};
|
|
20537
20547
|
__decorateClass([
|
|
20538
20548
|
Expose374(),
|
|
20539
|
-
|
|
20549
|
+
Transform44(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
20540
20550
|
IsDate81()
|
|
20541
20551
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "fecha", 2);
|
|
20542
20552
|
__decorateClass([
|
|
@@ -20546,19 +20556,19 @@ __decorateClass([
|
|
|
20546
20556
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "Usuario", 2);
|
|
20547
20557
|
__decorateClass([
|
|
20548
20558
|
Expose374(),
|
|
20549
|
-
|
|
20559
|
+
Transform44(convertTypeNumber),
|
|
20550
20560
|
IsDefined117({ message: "El campo Anio es obligatorio." }),
|
|
20551
20561
|
IsNumber253()
|
|
20552
20562
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "Anio", 2);
|
|
20553
20563
|
__decorateClass([
|
|
20554
20564
|
Expose374(),
|
|
20555
|
-
|
|
20565
|
+
Transform44(convertTypeNumber),
|
|
20556
20566
|
IsDefined117({ message: "El campo Mes es obligatorio." }),
|
|
20557
20567
|
IsNumber253()
|
|
20558
20568
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "Mes", 2);
|
|
20559
20569
|
__decorateClass([
|
|
20560
20570
|
Expose374(),
|
|
20561
|
-
|
|
20571
|
+
Transform44(convertTypeNumber),
|
|
20562
20572
|
IsDefined117({ message: "El campo Dia es obligatorio." }),
|
|
20563
20573
|
IsNumber253()
|
|
20564
20574
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "Dia", 2);
|
|
@@ -21146,7 +21156,7 @@ import { Expose as Expose394, Type as Type265 } from "class-transformer";
|
|
|
21146
21156
|
import { IsArray as IsArray136, IsBoolean as IsBoolean31, IsNotEmpty as IsNotEmpty263, IsNumber as IsNumber262, IsOptional as IsOptional16, IsString as IsString301, Min as Min199, ValidateNested as ValidateNested239 } from "class-validator";
|
|
21147
21157
|
|
|
21148
21158
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/cambios-estados-pagos-produccion-dto.ts
|
|
21149
|
-
import { Expose as Expose386, Transform as
|
|
21159
|
+
import { Expose as Expose386, Transform as Transform46, Type as Type262 } from "class-transformer";
|
|
21150
21160
|
import { IsArray as IsArray134, IsDate as IsDate86, IsIn as IsIn2, IsNotEmpty as IsNotEmpty255, IsString as IsString293, Length as Length198, ValidateNested as ValidateNested236 } from "class-validator";
|
|
21151
21161
|
var CambiosEstadosPagosProduccionDTO = class {
|
|
21152
21162
|
NroDocumento = "";
|
|
@@ -21167,7 +21177,7 @@ __decorateClass([
|
|
|
21167
21177
|
ValidateNested236()
|
|
21168
21178
|
], CambiosEstadosPagosProduccionDTO.prototype, "UsuarioCambio", 2);
|
|
21169
21179
|
__decorateClass([
|
|
21170
|
-
|
|
21180
|
+
Transform46(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21171
21181
|
IsDate86({ message: "debe ser una fecha" }),
|
|
21172
21182
|
IsNotEmpty255({ message: "es requerido" }),
|
|
21173
21183
|
Expose386()
|
|
@@ -21266,7 +21276,7 @@ __decorateClass([
|
|
|
21266
21276
|
], ManoObraDTO3.prototype, "UnidadMedida", 2);
|
|
21267
21277
|
|
|
21268
21278
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/periodo-dto.ts
|
|
21269
|
-
import { Expose as Expose390, Transform as
|
|
21279
|
+
import { Expose as Expose390, Transform as Transform47 } from "class-transformer";
|
|
21270
21280
|
import { IsDate as IsDate87, IsNotEmpty as IsNotEmpty259, IsNumber as IsNumber259, IsString as IsString297, Length as Length202 } from "class-validator";
|
|
21271
21281
|
var PeriodoDTO5 = class {
|
|
21272
21282
|
FechaInicio = /* @__PURE__ */ new Date(0);
|
|
@@ -21277,19 +21287,19 @@ var PeriodoDTO5 = class {
|
|
|
21277
21287
|
Codigo = "";
|
|
21278
21288
|
};
|
|
21279
21289
|
__decorateClass([
|
|
21280
|
-
|
|
21290
|
+
Transform47(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21281
21291
|
IsDate87({ message: "debe ser de tipo fecha" }),
|
|
21282
21292
|
IsNotEmpty259({ message: "es requerido" }),
|
|
21283
21293
|
Expose390()
|
|
21284
21294
|
], PeriodoDTO5.prototype, "FechaInicio", 2);
|
|
21285
21295
|
__decorateClass([
|
|
21286
|
-
|
|
21296
|
+
Transform47(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21287
21297
|
IsDate87({ message: "debe ser de tipo fecha" }),
|
|
21288
21298
|
IsNotEmpty259({ message: "es requerido" }),
|
|
21289
21299
|
Expose390()
|
|
21290
21300
|
], PeriodoDTO5.prototype, "FechaFin", 2);
|
|
21291
21301
|
__decorateClass([
|
|
21292
|
-
|
|
21302
|
+
Transform47(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21293
21303
|
IsDate87({ message: "debe ser de tipo fecha" }),
|
|
21294
21304
|
IsNotEmpty259({ message: "es requerido" }),
|
|
21295
21305
|
Expose390()
|
|
@@ -21312,7 +21322,7 @@ __decorateClass([
|
|
|
21312
21322
|
], PeriodoDTO5.prototype, "Codigo", 2);
|
|
21313
21323
|
|
|
21314
21324
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/ultima_estado_interno-dto.ts
|
|
21315
|
-
import { Expose as Expose391, Transform as
|
|
21325
|
+
import { Expose as Expose391, Transform as Transform48, Type as Type263 } from "class-transformer";
|
|
21316
21326
|
import { IsDate as IsDate88, IsNotEmpty as IsNotEmpty260, IsNumber as IsNumber260, IsString as IsString298, Length as Length203, ValidateNested as ValidateNested237 } from "class-validator";
|
|
21317
21327
|
var Ultimo_Estado_InternoDTO = class {
|
|
21318
21328
|
ID_EstadoInterno = 0;
|
|
@@ -21339,7 +21349,7 @@ __decorateClass([
|
|
|
21339
21349
|
Expose391()
|
|
21340
21350
|
], Ultimo_Estado_InternoDTO.prototype, "ID_EstadoInternoPadre", 2);
|
|
21341
21351
|
__decorateClass([
|
|
21342
|
-
|
|
21352
|
+
Transform48(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21343
21353
|
IsDate88({ message: "debe ser una fecha" }),
|
|
21344
21354
|
IsNotEmpty260({ message: "es requerido" }),
|
|
21345
21355
|
Expose391()
|
|
@@ -21399,7 +21409,7 @@ __decorateClass([
|
|
|
21399
21409
|
], Ultimo_Estado_InternoDTO.prototype, "UsuarioEdicion", 2);
|
|
21400
21410
|
|
|
21401
21411
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/ultima_fase-dto.ts
|
|
21402
|
-
import { Expose as Expose392, Transform as
|
|
21412
|
+
import { Expose as Expose392, Transform as Transform49, Type as Type264 } from "class-transformer";
|
|
21403
21413
|
import { IsArray as IsArray135, IsDate as IsDate89, IsIn as IsIn3, Max as Max6, IsNotEmpty as IsNotEmpty261, IsNumber as IsNumber261, IsString as IsString299, Length as Length204, Min as Min198, ValidateNested as ValidateNested238 } from "class-validator";
|
|
21404
21414
|
var Ultima_FaseDTO = class {
|
|
21405
21415
|
ID_Fase = 0;
|
|
@@ -21446,7 +21456,7 @@ __decorateClass([
|
|
|
21446
21456
|
ValidateNested238()
|
|
21447
21457
|
], Ultima_FaseDTO.prototype, "UsuarioCambio", 2);
|
|
21448
21458
|
__decorateClass([
|
|
21449
|
-
|
|
21459
|
+
Transform49(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21450
21460
|
IsDate89({ message: "debe ser una fecha" }),
|
|
21451
21461
|
IsNotEmpty261({ message: "es requerido" }),
|
|
21452
21462
|
Expose392()
|
|
@@ -21474,7 +21484,7 @@ __decorateClass([
|
|
|
21474
21484
|
ValidateNested238()
|
|
21475
21485
|
], Ultima_FaseDTO.prototype, "UsuarioDocumento", 2);
|
|
21476
21486
|
__decorateClass([
|
|
21477
|
-
|
|
21487
|
+
Transform49(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21478
21488
|
IsDate89({ message: "debe ser una fecha" }),
|
|
21479
21489
|
IsNotEmpty261({ message: "es requerido" }),
|
|
21480
21490
|
Expose392()
|
|
@@ -23206,7 +23216,7 @@ __decorateClass([
|
|
|
23206
23216
|
], StockPersonalEquiposENTITY.prototype, "Equipos", 2);
|
|
23207
23217
|
|
|
23208
23218
|
// src/logistica/atencion ordenes liquidadas/shared/index.ts
|
|
23209
|
-
import { Expose as Expose416, Transform as
|
|
23219
|
+
import { Expose as Expose416, Transform as Transform50 } from "class-transformer";
|
|
23210
23220
|
import { IsDate as IsDate99, IsEnum as IsEnum8, IsNotEmpty as IsNotEmpty283, IsNumber as IsNumber275, IsString as IsString323, Length as Length220, Max as Max9, Min as Min207 } from "class-validator";
|
|
23211
23221
|
var AtencionOrdenesLiquidadasENTITY = class {
|
|
23212
23222
|
ID_AtencionOrdenesLiquidadas = 0;
|
|
@@ -23247,7 +23257,7 @@ __decorateClass([
|
|
|
23247
23257
|
], AtencionOrdenesLiquidadasENTITY.prototype, "LoteSAP", 2);
|
|
23248
23258
|
__decorateClass([
|
|
23249
23259
|
Expose416(),
|
|
23250
|
-
|
|
23260
|
+
Transform50(({ value }) => value ? String(value) : value),
|
|
23251
23261
|
IsString323({ message: "debe ser un texto" }),
|
|
23252
23262
|
Length220(0, 30, { message: "debe tener entre 0 y 30 caracteres" })
|
|
23253
23263
|
], AtencionOrdenesLiquidadasENTITY.prototype, "NumeroSerie", 2);
|
|
@@ -23294,7 +23304,7 @@ __decorateClass([
|
|
|
23294
23304
|
], AtencionOrdenesLiquidadasENTITY.prototype, "Fuente", 2);
|
|
23295
23305
|
|
|
23296
23306
|
// src/logistica/salida almacen/shared/index.ts
|
|
23297
|
-
import { Expose as Expose420, Transform as
|
|
23307
|
+
import { Expose as Expose420, Transform as Transform51, Type as Type280 } from "class-transformer";
|
|
23298
23308
|
import { IsArray as IsArray147, IsNotEmpty as IsNotEmpty285, IsNumber as IsNumber277, IsString as IsString327, Length as Length224, Max as Max11, Min as Min209, ValidateNested as ValidateNested253 } from "class-validator";
|
|
23299
23309
|
|
|
23300
23310
|
// src/logistica/salida almacen/shared/dto/datos-transportista-dto.ts
|
|
@@ -23596,7 +23606,7 @@ __decorateClass([
|
|
|
23596
23606
|
], SalidaAlmacenENTITY.prototype, "ZonaTrabajo", 2);
|
|
23597
23607
|
__decorateClass([
|
|
23598
23608
|
IsString327({ message: "debe ser un texto" }),
|
|
23599
|
-
|
|
23609
|
+
Transform51(trimAndUpperCaseString),
|
|
23600
23610
|
Length224(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
23601
23611
|
Expose420()
|
|
23602
23612
|
], SalidaAlmacenENTITY.prototype, "Observaciones", 2);
|
|
@@ -23608,13 +23618,13 @@ __decorateClass([
|
|
|
23608
23618
|
], SalidaAlmacenENTITY.prototype, "MovimientoAlmacen", 2);
|
|
23609
23619
|
__decorateClass([
|
|
23610
23620
|
IsString327({ message: "debe ser un texto" }),
|
|
23611
|
-
|
|
23621
|
+
Transform51(trimAndUpperCaseString),
|
|
23612
23622
|
Length224(0, 75, { message: "debe tener entre 0 y 75 caracteres" }),
|
|
23613
23623
|
Expose420()
|
|
23614
23624
|
], SalidaAlmacenENTITY.prototype, "NroGuia", 2);
|
|
23615
23625
|
__decorateClass([
|
|
23616
23626
|
IsString327({ message: "debe ser un texto" }),
|
|
23617
|
-
|
|
23627
|
+
Transform51(trimAndUpperCaseString),
|
|
23618
23628
|
Length224(0, 200, { message: "debe tener entre 0 y 200 caracteres" }),
|
|
23619
23629
|
Expose420()
|
|
23620
23630
|
], SalidaAlmacenENTITY.prototype, "OrdenCompra", 2);
|
|
@@ -24109,7 +24119,7 @@ __decorateClass([
|
|
|
24109
24119
|
|
|
24110
24120
|
// src/logistica/movimiento almacen/shared/index.ts
|
|
24111
24121
|
import { IsNotEmpty as IsNotEmpty289, IsNumber as IsNumber281, IsString as IsString330, Length as Length227, Min as Min213, ValidateNested as ValidateNested257 } from "class-validator";
|
|
24112
|
-
import { Expose as Expose424, Transform as
|
|
24122
|
+
import { Expose as Expose424, Transform as Transform52, Type as Type284 } from "class-transformer";
|
|
24113
24123
|
var MovimientoAlmacenENTITY = class {
|
|
24114
24124
|
ID_MovimientoAlmacen = 0;
|
|
24115
24125
|
Codigo = "";
|
|
@@ -24129,13 +24139,13 @@ __decorateClass([
|
|
|
24129
24139
|
__decorateClass([
|
|
24130
24140
|
IsString330({ message: "debe ser un texto" }),
|
|
24131
24141
|
Length227(0, 10, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
24132
|
-
|
|
24142
|
+
Transform52(({ value }) => typeof value === "string" ? value.toUpperCase() : value),
|
|
24133
24143
|
Expose424()
|
|
24134
24144
|
], MovimientoAlmacenENTITY.prototype, "Codigo", 2);
|
|
24135
24145
|
__decorateClass([
|
|
24136
24146
|
IsString330({ message: "debe ser un texto" }),
|
|
24137
24147
|
Length227(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
24138
|
-
|
|
24148
|
+
Transform52(({ value }) => typeof value === "string" ? value.toUpperCase() : value),
|
|
24139
24149
|
Expose424()
|
|
24140
24150
|
], MovimientoAlmacenENTITY.prototype, "Descripcion", 2);
|
|
24141
24151
|
__decorateClass([
|
|
@@ -24213,7 +24223,7 @@ __decorateClass([
|
|
|
24213
24223
|
// src/logistica/devolucion almacen/shared/index.ts
|
|
24214
24224
|
import {
|
|
24215
24225
|
Expose as Expose427,
|
|
24216
|
-
Transform as
|
|
24226
|
+
Transform as Transform53,
|
|
24217
24227
|
Type as Type287
|
|
24218
24228
|
} from "class-transformer";
|
|
24219
24229
|
import {
|
|
@@ -24337,7 +24347,7 @@ __decorateClass([
|
|
|
24337
24347
|
Expose427()
|
|
24338
24348
|
], DevolucionAlmacenENTITY.prototype, "NroGuia", 2);
|
|
24339
24349
|
__decorateClass([
|
|
24340
|
-
|
|
24350
|
+
Transform53(({ value }) => typeof value === "string" && value.length > 100 ? value.slice(0, 100) : value),
|
|
24341
24351
|
IsString331({ message: "debe ser un texto" }),
|
|
24342
24352
|
Length228(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
24343
24353
|
Expose427()
|
|
@@ -24404,7 +24414,7 @@ __decorateClass([
|
|
|
24404
24414
|
], DevolucionAlmacenENTITY.prototype, "Estado", 2);
|
|
24405
24415
|
|
|
24406
24416
|
// src/logistica/items/shared/index.ts
|
|
24407
|
-
import { Expose as Expose433, Transform as
|
|
24417
|
+
import { Expose as Expose433, Transform as Transform54, Type as Type291 } from "class-transformer";
|
|
24408
24418
|
import { IsArray as IsArray152, IsNotEmpty as IsNotEmpty297, IsNumber as IsNumber286, IsString as IsString337, Length as Length234, Min as Min218, ValidateNested as ValidateNested264, IsBoolean as IsBoolean39 } from "class-validator";
|
|
24409
24419
|
|
|
24410
24420
|
// src/logistica/items/shared/dto/cliente-dto.ts
|
|
@@ -24734,14 +24744,14 @@ __decorateClass([
|
|
|
24734
24744
|
], ItemENTITY.prototype, "Tipo", 2);
|
|
24735
24745
|
__decorateClass([
|
|
24736
24746
|
Expose433(),
|
|
24737
|
-
|
|
24747
|
+
Transform54(({ value }) => Number(value)),
|
|
24738
24748
|
IsNumber286({}, { message: "debe ser un numero" }),
|
|
24739
24749
|
IsNotEmpty297({ message: "es requerido" }),
|
|
24740
24750
|
Min218(0, { message: "el valor m\xEDnimo es 0" })
|
|
24741
24751
|
], ItemENTITY.prototype, "Valor", 2);
|
|
24742
24752
|
__decorateClass([
|
|
24743
24753
|
Expose433(),
|
|
24744
|
-
|
|
24754
|
+
Transform54(({ value }) => Number(value)),
|
|
24745
24755
|
IsNumber286({}, { message: "debe ser un numero" }),
|
|
24746
24756
|
IsNotEmpty297({ message: "es requerido" }),
|
|
24747
24757
|
Min218(0, { message: "el valor m\xEDnimo es 0" })
|
|
@@ -25114,7 +25124,7 @@ __decorateClass([
|
|
|
25114
25124
|
], StockAlmacenEquiposENTITY.prototype, "Equipos", 2);
|
|
25115
25125
|
|
|
25116
25126
|
// src/logistica/transaccion folios/shared/index.ts
|
|
25117
|
-
import { Transform as
|
|
25127
|
+
import { Transform as Transform55, Expose as Expose440, Type as Type295 } from "class-transformer";
|
|
25118
25128
|
|
|
25119
25129
|
// src/logistica/transaccion folios/shared/dto/transacciones-dto.ts
|
|
25120
25130
|
import { Expose as Expose439 } from "class-transformer";
|
|
@@ -25196,21 +25206,21 @@ __decorateClass([
|
|
|
25196
25206
|
Expose440()
|
|
25197
25207
|
], TransaccionFoliosENTITY.prototype, "Vigencia_Final", 2);
|
|
25198
25208
|
__decorateClass([
|
|
25199
|
-
|
|
25209
|
+
Transform55(({ value }) => Number(value)),
|
|
25200
25210
|
IsDefined130({ message: "El campo FolioInicial es obligatorio" }),
|
|
25201
25211
|
Expose440(),
|
|
25202
25212
|
IsNumber292({}, { message: "debe ser un numero" }),
|
|
25203
25213
|
Min224(1, { message: "el valor m\xEDnimo es 1" })
|
|
25204
25214
|
], TransaccionFoliosENTITY.prototype, "FolioInicial", 2);
|
|
25205
25215
|
__decorateClass([
|
|
25206
|
-
|
|
25216
|
+
Transform55(({ value }) => Number(value)),
|
|
25207
25217
|
IsDefined130({ message: "El campo FolioFinal es obligatorio" }),
|
|
25208
25218
|
Expose440(),
|
|
25209
25219
|
IsNumber292({}, { message: "debe ser un numero" }),
|
|
25210
25220
|
Min224(1, { message: "el valor m\xEDnimo es 1" })
|
|
25211
25221
|
], TransaccionFoliosENTITY.prototype, "FolioFinal", 2);
|
|
25212
25222
|
__decorateClass([
|
|
25213
|
-
|
|
25223
|
+
Transform55(({ value }) => Number(value)),
|
|
25214
25224
|
IsDefined130({ message: "El campo NumeroInterno es obligatorio" }),
|
|
25215
25225
|
Expose440(),
|
|
25216
25226
|
IsNumber292({}, { message: "debe ser un numero" }),
|
|
@@ -25540,7 +25550,7 @@ __decorateClass([
|
|
|
25540
25550
|
], BodegaENTITY.prototype, "Bitacora", 2);
|
|
25541
25551
|
|
|
25542
25552
|
// src/logistica/autoinventario/shared/index.ts
|
|
25543
|
-
import { Expose as Expose449, Transform as
|
|
25553
|
+
import { Expose as Expose449, Transform as Transform56, Type as Type301 } from "class-transformer";
|
|
25544
25554
|
|
|
25545
25555
|
// src/logistica/autoinventario/shared/dto/equipos-AI-dto.ts
|
|
25546
25556
|
import { Expose as Expose448 } from "class-transformer";
|
|
@@ -25645,7 +25655,7 @@ __decorateClass([
|
|
|
25645
25655
|
Expose449()
|
|
25646
25656
|
], AutoInventarioENTITY.prototype, "Observacion", 2);
|
|
25647
25657
|
__decorateClass([
|
|
25648
|
-
|
|
25658
|
+
Transform56(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
25649
25659
|
IsDate107({ message: "debe ser una fecha" }),
|
|
25650
25660
|
IsNotEmpty311({ message: "es requerido" }),
|
|
25651
25661
|
Expose449()
|
|
@@ -25865,7 +25875,7 @@ __decorateClass([
|
|
|
25865
25875
|
], TipoStockENTITY.prototype, "Delegacion", 2);
|
|
25866
25876
|
|
|
25867
25877
|
// src/logistica/almacen extra/shared/index.ts
|
|
25868
|
-
import { Expose as Expose454, Transform as
|
|
25878
|
+
import { Expose as Expose454, Transform as Transform57, Type as Type306 } from "class-transformer";
|
|
25869
25879
|
import { IsNotEmpty as IsNotEmpty316, IsNumber as IsNumber303, IsString as IsString355, Length as Length250, Min as Min235, ValidateNested as ValidateNested279 } from "class-validator";
|
|
25870
25880
|
var AlmacenExtraENTITY = class {
|
|
25871
25881
|
ID_AlmacenExtra = 0;
|
|
@@ -25938,13 +25948,13 @@ __decorateClass([
|
|
|
25938
25948
|
Expose454()
|
|
25939
25949
|
], AlmacenExtraENTITY.prototype, "Country", 2);
|
|
25940
25950
|
__decorateClass([
|
|
25941
|
-
|
|
25951
|
+
Transform57(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
25942
25952
|
IsNumber303({}, { message: "debe ser una coordenada" }),
|
|
25943
25953
|
IsNotEmpty316({ message: "es requerido" }),
|
|
25944
25954
|
Expose454()
|
|
25945
25955
|
], AlmacenExtraENTITY.prototype, "Latitude", 2);
|
|
25946
25956
|
__decorateClass([
|
|
25947
|
-
|
|
25957
|
+
Transform57(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
25948
25958
|
IsNumber303({}, { message: "debe ser una coordenada" }),
|
|
25949
25959
|
IsNotEmpty316({ message: "es requerido" }),
|
|
25950
25960
|
Expose454()
|
|
@@ -26248,7 +26258,7 @@ __decorateClass([
|
|
|
26248
26258
|
], RecursosPersonalDTO.prototype, "InicioActividad", 2);
|
|
26249
26259
|
|
|
26250
26260
|
// src/configuracion/personal/shared/index.ts
|
|
26251
|
-
import { Expose as Expose463, Transform as
|
|
26261
|
+
import { Expose as Expose463, Transform as Transform58, Type as Type312 } from "class-transformer";
|
|
26252
26262
|
import {
|
|
26253
26263
|
ArrayNotEmpty as ArrayNotEmpty5,
|
|
26254
26264
|
IsArray as IsArray164,
|
|
@@ -26351,7 +26361,7 @@ __decorateClass([
|
|
|
26351
26361
|
ValidateNested284()
|
|
26352
26362
|
], PersonalENTITY.prototype, "TipoDocumento", 2);
|
|
26353
26363
|
__decorateClass([
|
|
26354
|
-
|
|
26364
|
+
Transform58(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
26355
26365
|
IsString363({ message: "debe ser un texto" }),
|
|
26356
26366
|
IsNotEmpty322({ message: "es requerido" }),
|
|
26357
26367
|
Length255(1, 41, { message: "debe tener entre 1 y 40 caracteres" }),
|
|
@@ -27431,7 +27441,7 @@ __decorateClass([
|
|
|
27431
27441
|
], ContratistasDTO.prototype, "Estado", 2);
|
|
27432
27442
|
|
|
27433
27443
|
// src/configuracion/usuarios/shared/index.ts
|
|
27434
|
-
import { Expose as Expose486, Transform as
|
|
27444
|
+
import { Expose as Expose486, Transform as Transform59, Type as Type328 } from "class-transformer";
|
|
27435
27445
|
import { IsArray as IsArray171, IsBoolean as IsBoolean45, IsNotEmpty as IsNotEmpty342, IsNumber as IsNumber323, IsString as IsString385, Length as Length276, Min as Min252, ValidateNested as ValidateNested294, IsEmail as IsEmail3, IsEnum as IsEnum10 } from "class-validator";
|
|
27436
27446
|
var UsuarioENTITY = class {
|
|
27437
27447
|
IdUsuario = 0;
|
|
@@ -27509,7 +27519,7 @@ __decorateClass([
|
|
|
27509
27519
|
ValidateNested294()
|
|
27510
27520
|
], UsuarioENTITY.prototype, "TipoDocumento", 2);
|
|
27511
27521
|
__decorateClass([
|
|
27512
|
-
|
|
27522
|
+
Transform59(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
27513
27523
|
IsString385({ message: "debe ser un texto" }),
|
|
27514
27524
|
IsNotEmpty342({ message: "es requerido" }),
|
|
27515
27525
|
Length276(1, 30, { message: "debe tener entre 1 y 30 caracteres" }),
|
|
@@ -27659,7 +27669,7 @@ __decorateClass([
|
|
|
27659
27669
|
], UsuarioENTITY.prototype, "Contratistas", 2);
|
|
27660
27670
|
|
|
27661
27671
|
// src/configuracion/tipo opcion sistema/shared/index.ts
|
|
27662
|
-
import { Expose as Expose487, Transform as
|
|
27672
|
+
import { Expose as Expose487, Transform as Transform60, Type as Type329 } from "class-transformer";
|
|
27663
27673
|
import { IsDefined as IsDefined135, IsNumber as IsNumber324, IsString as IsString386, Length as Length277, Min as Min253, ValidateNested as ValidateNested295 } from "class-validator";
|
|
27664
27674
|
var TipoOpcionSistemaENTITY = class {
|
|
27665
27675
|
IdTipoOpcion = 0;
|
|
@@ -27688,7 +27698,7 @@ __decorateClass([
|
|
|
27688
27698
|
], TipoOpcionSistemaENTITY.prototype, "Descripcion", 2);
|
|
27689
27699
|
__decorateClass([
|
|
27690
27700
|
IsDefined135({ message: "El campo Padre es obligatorio" }),
|
|
27691
|
-
|
|
27701
|
+
Transform60(({ value }) => Number(value)),
|
|
27692
27702
|
Expose487(),
|
|
27693
27703
|
IsNumber324({}, { message: "debe ser un numero" }),
|
|
27694
27704
|
Min253(0, { message: "el valor m\xEDnimo es 0" })
|
|
@@ -27787,7 +27797,7 @@ __decorateClass([
|
|
|
27787
27797
|
import { IsDate as IsDate117, IsEnum as IsEnum12, IsNotEmpty as IsNotEmpty346, IsString as IsString390, Length as Length281, ValidateNested as ValidateNested297 } from "class-validator";
|
|
27788
27798
|
|
|
27789
27799
|
// src/configuracion/notificaciones/shared/dto/data-adicional-dto.ts
|
|
27790
|
-
import { Expose as Expose490, Transform as
|
|
27800
|
+
import { Expose as Expose490, Transform as Transform61 } from "class-transformer";
|
|
27791
27801
|
import { IsDate as IsDate116, IsEnum as IsEnum11, IsNotEmpty as IsNotEmpty345, IsString as IsString389, Length as Length280 } from "class-validator";
|
|
27792
27802
|
var OperacionDataAdicional = /* @__PURE__ */ ((OperacionDataAdicional2) => {
|
|
27793
27803
|
OperacionDataAdicional2["CREAR"] = "crear";
|
|
@@ -27818,7 +27828,7 @@ __decorateClass([
|
|
|
27818
27828
|
Expose490()
|
|
27819
27829
|
], DataAdicionalDTO.prototype, "operacion", 2);
|
|
27820
27830
|
__decorateClass([
|
|
27821
|
-
|
|
27831
|
+
Transform61(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
27822
27832
|
IsDate116({ message: "debe ser una fecha" }),
|
|
27823
27833
|
IsNotEmpty345({ message: "es requerido" }),
|
|
27824
27834
|
Expose490()
|
|
@@ -27830,7 +27840,7 @@ __decorateClass([
|
|
|
27830
27840
|
], DataAdicionalDTO.prototype, "localName", 2);
|
|
27831
27841
|
|
|
27832
27842
|
// src/configuracion/notificaciones/shared/index.ts
|
|
27833
|
-
import { Expose as Expose491, Transform as
|
|
27843
|
+
import { Expose as Expose491, Transform as Transform62, Type as Type331 } from "class-transformer";
|
|
27834
27844
|
var TipoNotificacion = /* @__PURE__ */ ((TipoNotificacion2) => {
|
|
27835
27845
|
TipoNotificacion2["INFO"] = "info";
|
|
27836
27846
|
TipoNotificacion2["ERROR"] = "error";
|
|
@@ -27873,7 +27883,7 @@ __decorateClass([
|
|
|
27873
27883
|
Expose491()
|
|
27874
27884
|
], NotificacionesENTITY.prototype, "titulo", 2);
|
|
27875
27885
|
__decorateClass([
|
|
27876
|
-
|
|
27886
|
+
Transform62(({ value }) => typeof value === "string" ? value.substring(0, 400) : value),
|
|
27877
27887
|
IsString390({ message: "debe ser un texto" }),
|
|
27878
27888
|
Length281(1, 400, { message: "debe tener entre 1 y 400 caracteres" }),
|
|
27879
27889
|
Expose491()
|
|
@@ -27895,13 +27905,13 @@ __decorateClass([
|
|
|
27895
27905
|
ValidateNested297()
|
|
27896
27906
|
], NotificacionesENTITY.prototype, "dataAdicional", 2);
|
|
27897
27907
|
__decorateClass([
|
|
27898
|
-
|
|
27908
|
+
Transform62(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
27899
27909
|
IsDate117({ message: "debe ser una fecha" }),
|
|
27900
27910
|
IsNotEmpty346({ message: "es requerido" }),
|
|
27901
27911
|
Expose491()
|
|
27902
27912
|
], NotificacionesENTITY.prototype, "fechaCreacion", 2);
|
|
27903
27913
|
__decorateClass([
|
|
27904
|
-
|
|
27914
|
+
Transform62(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
27905
27915
|
IsDate117({ message: "debe ser una fecha" }),
|
|
27906
27916
|
IsNotEmpty346({ message: "es requerido" }),
|
|
27907
27917
|
Expose491()
|
|
@@ -28265,7 +28275,7 @@ __decorateClass([
|
|
|
28265
28275
|
], EmpresaValDTO.prototype, "TipoEmpresa", 2);
|
|
28266
28276
|
|
|
28267
28277
|
// src/operativa/procesos/valorizadas_toa/shared/dto/inventario-val-dto.ts
|
|
28268
|
-
import { Expose as Expose500, Transform as
|
|
28278
|
+
import { Expose as Expose500, Transform as Transform63 } from "class-transformer";
|
|
28269
28279
|
import { IsEnum as IsEnum14, IsNotEmpty as IsNotEmpty352, IsNumber as IsNumber330, IsOptional as IsOptional20, IsString as IsString399, Length as Length288, Min as Min259 } from "class-validator";
|
|
28270
28280
|
var InventarioValDTO = class {
|
|
28271
28281
|
Descripcion = "";
|
|
@@ -28304,7 +28314,7 @@ __decorateClass([
|
|
|
28304
28314
|
], InventarioValDTO.prototype, "CodigoSAP", 2);
|
|
28305
28315
|
__decorateClass([
|
|
28306
28316
|
IsString399({ message: "debe ser un texto" }),
|
|
28307
|
-
|
|
28317
|
+
Transform63(({ value }) => value ? String(value) : value),
|
|
28308
28318
|
Length288(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
28309
28319
|
Expose500(),
|
|
28310
28320
|
IsOptional20()
|
|
@@ -28746,7 +28756,7 @@ __decorateClass([
|
|
|
28746
28756
|
], ProductosServiciosLiqDTO.prototype, "Cantidad", 2);
|
|
28747
28757
|
|
|
28748
28758
|
// src/operativa/procesos/liquidadas_toa/shared/dto/inventario-liq-dto.ts
|
|
28749
|
-
import { Expose as Expose505, Transform as
|
|
28759
|
+
import { Expose as Expose505, Transform as Transform64 } from "class-transformer";
|
|
28750
28760
|
import { IsEnum as IsEnum15, IsNotEmpty as IsNotEmpty357, IsNumber as IsNumber335, IsString as IsString404, Length as Length293, Min as Min264 } from "class-validator";
|
|
28751
28761
|
var InventarioLiqDTO = class {
|
|
28752
28762
|
Descripcion = "";
|
|
@@ -28783,7 +28793,7 @@ __decorateClass([
|
|
|
28783
28793
|
], InventarioLiqDTO.prototype, "CodigoSAP", 2);
|
|
28784
28794
|
__decorateClass([
|
|
28785
28795
|
IsString404({ message: "debe ser un texto" }),
|
|
28786
|
-
|
|
28796
|
+
Transform64(({ value }) => value ? String(value) : value),
|
|
28787
28797
|
Length293(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
28788
28798
|
Expose505()
|
|
28789
28799
|
], InventarioLiqDTO.prototype, "NumeroSerie", 2);
|
|
@@ -30229,7 +30239,7 @@ var ISheetsJsonChileTdC = class {
|
|
|
30229
30239
|
};
|
|
30230
30240
|
|
|
30231
30241
|
// src/operativa/procesos/toa_claro/shared/index.ts
|
|
30232
|
-
import { Expose as Expose534, Transform as
|
|
30242
|
+
import { Expose as Expose534, Transform as Transform66, Type as Type349 } from "class-transformer";
|
|
30233
30243
|
import { IsNotEmpty as IsNotEmpty372, IsNumber as IsNumber348, IsString as IsString430, Length as Length317, Min as Min274, IsDate as IsDate125, ValidateNested as ValidateNested310, IsEnum as IsEnum17, IsDefined as IsDefined141, IsArray as IsArray177 } from "class-validator";
|
|
30234
30244
|
|
|
30235
30245
|
// src/operativa/procesos/toa_claro/shared/dto/direccion toa dto.ts
|
|
@@ -30569,7 +30579,7 @@ __decorateClass([
|
|
|
30569
30579
|
Expose534()
|
|
30570
30580
|
], ToaClaroENTITY.prototype, "ID_ToaClaro", 2);
|
|
30571
30581
|
__decorateClass([
|
|
30572
|
-
|
|
30582
|
+
Transform66(({ value }) => "TOA_CLARO" /* TOA_CLARO */),
|
|
30573
30583
|
IsEnum17(SistemaRecurso, { message: "debe ser un valor v\xE1lido de enum SistemaRecurso" }),
|
|
30574
30584
|
Expose534()
|
|
30575
30585
|
], ToaClaroENTITY.prototype, "Sistema", 2);
|
|
@@ -30906,7 +30916,7 @@ import { IsArray as IsArray178, IsDefined as IsDefined144, IsString as IsString4
|
|
|
30906
30916
|
import { Expose as Expose537, Type as Type350 } from "class-transformer";
|
|
30907
30917
|
|
|
30908
30918
|
// src/operativa/procesos/toa_claro/data_scraper/dto/items-orden-scraper-claro-vtr-dto.ts
|
|
30909
|
-
import { Expose as Expose535, Transform as
|
|
30919
|
+
import { Expose as Expose535, Transform as Transform67 } from "class-transformer";
|
|
30910
30920
|
import { IsDefined as IsDefined142, IsNumber as IsNumber349, IsString as IsString431 } from "class-validator";
|
|
30911
30921
|
var ItemsOrdenScraperClaroVTRDTO = class {
|
|
30912
30922
|
id = "";
|
|
@@ -30950,7 +30960,7 @@ __decorateClass([
|
|
|
30950
30960
|
IsNumber349({}, { message: "El campo cantidad debe ser un n\xFAmero" })
|
|
30951
30961
|
], ItemsOrdenScraperClaroVTRDTO.prototype, "cantidad", 2);
|
|
30952
30962
|
__decorateClass([
|
|
30953
|
-
|
|
30963
|
+
Transform67(({ value }) => typeof value === "number" ? value.toString() : value),
|
|
30954
30964
|
Expose535(),
|
|
30955
30965
|
IsDefined142({ message: "El campo ServiceId es requerido" }),
|
|
30956
30966
|
IsString431({ message: "El campo ServiceId debe ser una cadena de texto" })
|
|
@@ -30961,7 +30971,7 @@ __decorateClass([
|
|
|
30961
30971
|
IsString431({ message: "El campo estado debe ser una cadena de texto" })
|
|
30962
30972
|
], ItemsOrdenScraperClaroVTRDTO.prototype, "estado", 2);
|
|
30963
30973
|
__decorateClass([
|
|
30964
|
-
|
|
30974
|
+
Transform67(({ value }) => typeof value === "number" ? value.toString() : value),
|
|
30965
30975
|
Expose535(),
|
|
30966
30976
|
IsDefined142({ message: "El campo serial es requerido" }),
|
|
30967
30977
|
IsString431({ message: "El campo serial debe ser una cadena de texto" })
|
|
@@ -31466,12 +31476,13 @@ import {
|
|
|
31466
31476
|
ValidateNested as ValidateNested314,
|
|
31467
31477
|
IsArray as IsArray181,
|
|
31468
31478
|
IsObject as IsObject7,
|
|
31469
|
-
IsDate as IsDate128
|
|
31479
|
+
IsDate as IsDate128,
|
|
31480
|
+
IsUUID as IsUUID2
|
|
31470
31481
|
} from "class-validator";
|
|
31471
31482
|
import "reflect-metadata";
|
|
31472
31483
|
|
|
31473
31484
|
// src/operativa/procesos/toa_movistar/shared/dto/index.ts
|
|
31474
|
-
import { Expose as Expose538 } from "class-transformer";
|
|
31485
|
+
import { Expose as Expose538, Transform as Transform68 } from "class-transformer";
|
|
31475
31486
|
import {
|
|
31476
31487
|
IsDefined as IsDefined145,
|
|
31477
31488
|
IsString as IsString434,
|
|
@@ -31601,21 +31612,25 @@ var MaterialestoaDTO = class {
|
|
|
31601
31612
|
};
|
|
31602
31613
|
__decorateClass([
|
|
31603
31614
|
Expose538({ name: "code" }),
|
|
31615
|
+
Transform68(({ obj }) => obj["code"] ?? obj.codigo),
|
|
31604
31616
|
IsDefined145({ message: "El campo code es obligatorio." }),
|
|
31605
31617
|
IsString434()
|
|
31606
31618
|
], MaterialestoaDTO.prototype, "codigo", 2);
|
|
31607
31619
|
__decorateClass([
|
|
31608
31620
|
Expose538({ name: "description" }),
|
|
31621
|
+
Transform68(({ obj }) => obj["description"] ?? obj.descripcion),
|
|
31609
31622
|
IsDefined145({ message: "El campo description es obligatorio." }),
|
|
31610
31623
|
IsString434()
|
|
31611
31624
|
], MaterialestoaDTO.prototype, "descripcion", 2);
|
|
31612
31625
|
__decorateClass([
|
|
31613
31626
|
Expose538({ name: "lot" }),
|
|
31627
|
+
Transform68(({ obj }) => obj["lot"] ?? obj.lote),
|
|
31614
31628
|
IsDefined145({ message: "El campo lot es obligatorio." }),
|
|
31615
31629
|
IsString434()
|
|
31616
31630
|
], MaterialestoaDTO.prototype, "lote", 2);
|
|
31617
31631
|
__decorateClass([
|
|
31618
31632
|
Expose538({ name: "quantity" }),
|
|
31633
|
+
Transform68(({ obj }) => obj["quantity"] ?? obj.cantidad),
|
|
31619
31634
|
IsDefined145({ message: "El campo quantity es obligatorio." }),
|
|
31620
31635
|
IsNumber351()
|
|
31621
31636
|
], MaterialestoaDTO.prototype, "cantidad", 2);
|
|
@@ -32305,6 +32320,7 @@ var Peru9112TOAENTITY = class {
|
|
|
32305
32320
|
};
|
|
32306
32321
|
__decorateClass([
|
|
32307
32322
|
IsDefined148({ message: "El campo _id es obligatorio." }),
|
|
32323
|
+
IsUUID2("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
32308
32324
|
Expose541({ name: "_id" })
|
|
32309
32325
|
], Peru9112TOAENTITY.prototype, "_id", 2);
|
|
32310
32326
|
__decorateClass([
|
|
@@ -32588,10 +32604,10 @@ __decorateClass([
|
|
|
32588
32604
|
], Peru9112TOAENTITY.prototype, "EECC", 2);
|
|
32589
32605
|
|
|
32590
32606
|
// src/operativa/procesos/onnet_fibra/shared/index.ts
|
|
32591
|
-
import { Expose as Expose550, Transform as
|
|
32607
|
+
import { Expose as Expose550, Transform as Transform73, Type as Type356 } from "class-transformer";
|
|
32592
32608
|
|
|
32593
32609
|
// src/operativa/procesos/onnet_fibra/shared/dto/bitacora_de_ordenes.ts
|
|
32594
|
-
import { Expose as Expose542, Transform as
|
|
32610
|
+
import { Expose as Expose542, Transform as Transform69 } from "class-transformer";
|
|
32595
32611
|
import { IsDate as IsDate129, IsDefined as IsDefined149, IsNumber as IsNumber355, IsOptional as IsOptional23, IsString as IsString438 } from "class-validator";
|
|
32596
32612
|
|
|
32597
32613
|
// src/operativa/procesos/onnet_fibra/utils/format_date_onnet_fibra.ts
|
|
@@ -32659,14 +32675,14 @@ __decorateClass([
|
|
|
32659
32675
|
], BitacoraDeOrdenesDTO.prototype, "estado", 2);
|
|
32660
32676
|
__decorateClass([
|
|
32661
32677
|
IsOptional23(),
|
|
32662
|
-
|
|
32678
|
+
Transform69(({ value }) => value ? String(value) : ""),
|
|
32663
32679
|
IsString438({ message: "El campo lt debe ser una cadena de texto" }),
|
|
32664
32680
|
Expose542()
|
|
32665
32681
|
], BitacoraDeOrdenesDTO.prototype, "lt", 2);
|
|
32666
32682
|
__decorateClass([
|
|
32667
32683
|
IsOptional23(),
|
|
32668
32684
|
IsNumber355({}, { message: "El campo id_orden_mantenimiento_anexo debe ser un n\xFAmero" }),
|
|
32669
|
-
|
|
32685
|
+
Transform69(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
|
|
32670
32686
|
Expose542()
|
|
32671
32687
|
], BitacoraDeOrdenesDTO.prototype, "id_orden_mantenimiento_anexo", 2);
|
|
32672
32688
|
__decorateClass([
|
|
@@ -32677,7 +32693,7 @@ __decorateClass([
|
|
|
32677
32693
|
__decorateClass([
|
|
32678
32694
|
IsOptional23(),
|
|
32679
32695
|
IsNumber355({}, { message: "El campo cantidad_clientes_afectados debe ser un n\xFAmero" }),
|
|
32680
|
-
|
|
32696
|
+
Transform69(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
|
|
32681
32697
|
Expose542()
|
|
32682
32698
|
], BitacoraDeOrdenesDTO.prototype, "cantidad_clientes_afectados", 2);
|
|
32683
32699
|
__decorateClass([
|
|
@@ -32713,13 +32729,13 @@ __decorateClass([
|
|
|
32713
32729
|
__decorateClass([
|
|
32714
32730
|
IsOptional23(),
|
|
32715
32731
|
IsString438({ message: "El campo tecnologia debe ser una cadena de texto" }),
|
|
32716
|
-
|
|
32732
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32717
32733
|
Expose542()
|
|
32718
32734
|
], BitacoraDeOrdenesDTO.prototype, "tecnologia", 2);
|
|
32719
32735
|
__decorateClass([
|
|
32720
32736
|
IsOptional23(),
|
|
32721
32737
|
IsString438({ message: "El campo olt debe ser una cadena de texto" }),
|
|
32722
|
-
|
|
32738
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32723
32739
|
Expose542()
|
|
32724
32740
|
], BitacoraDeOrdenesDTO.prototype, "olt", 2);
|
|
32725
32741
|
__decorateClass([
|
|
@@ -32774,7 +32790,7 @@ __decorateClass([
|
|
|
32774
32790
|
], BitacoraDeOrdenesDTO.prototype, "tipo_orden", 2);
|
|
32775
32791
|
__decorateClass([
|
|
32776
32792
|
IsOptional23(),
|
|
32777
|
-
|
|
32793
|
+
Transform69(({ value }) => formatDateOnnetFibra(value)),
|
|
32778
32794
|
IsDate129({ message: "El campo fecha_instalacion debe ser FECHA" }),
|
|
32779
32795
|
Expose542()
|
|
32780
32796
|
], BitacoraDeOrdenesDTO.prototype, "fecha_instalacion", 2);
|
|
@@ -32796,7 +32812,7 @@ __decorateClass([
|
|
|
32796
32812
|
__decorateClass([
|
|
32797
32813
|
IsOptional23(),
|
|
32798
32814
|
IsString438({ message: "El campo puerto_pon debe ser una cadena de texto" }),
|
|
32799
|
-
|
|
32815
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32800
32816
|
Expose542()
|
|
32801
32817
|
], BitacoraDeOrdenesDTO.prototype, "puerto_pon", 2);
|
|
32802
32818
|
__decorateClass([
|
|
@@ -32806,20 +32822,20 @@ __decorateClass([
|
|
|
32806
32822
|
], BitacoraDeOrdenesDTO.prototype, "nombre_especialidad", 2);
|
|
32807
32823
|
__decorateClass([
|
|
32808
32824
|
IsOptional23({ message: "El campo cliente es opcional" }),
|
|
32809
|
-
|
|
32825
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32810
32826
|
IsString438({ message: "El campo cliente debe ser una cadena de texto" }),
|
|
32811
32827
|
Expose542()
|
|
32812
32828
|
], BitacoraDeOrdenesDTO.prototype, "cliente", 2);
|
|
32813
32829
|
__decorateClass([
|
|
32814
32830
|
IsOptional23({ message: "El campo comuna es opcional" }),
|
|
32815
|
-
|
|
32831
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32816
32832
|
IsString438({ message: "El campo comuna debe ser una cadena de texto" }),
|
|
32817
32833
|
Expose542()
|
|
32818
32834
|
], BitacoraDeOrdenesDTO.prototype, "comuna", 2);
|
|
32819
32835
|
__decorateClass([
|
|
32820
32836
|
IsOptional23({ message: "El campo pep es opcional" }),
|
|
32821
32837
|
IsString438({ message: "El campo pep debe ser una cadena de texto" }),
|
|
32822
|
-
|
|
32838
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32823
32839
|
Expose542()
|
|
32824
32840
|
], BitacoraDeOrdenesDTO.prototype, "pep", 2);
|
|
32825
32841
|
__decorateClass([
|
|
@@ -32849,7 +32865,7 @@ __decorateClass([
|
|
|
32849
32865
|
__decorateClass([
|
|
32850
32866
|
IsOptional23(),
|
|
32851
32867
|
IsNumber355({}, { message: "El campo capacidad_cable debe ser una cadena de texto" }),
|
|
32852
|
-
|
|
32868
|
+
Transform69(({ value }) => isNaN(value) ? 0 : Number(value)),
|
|
32853
32869
|
Expose542()
|
|
32854
32870
|
], BitacoraDeOrdenesDTO.prototype, "capacidad_cable", 2);
|
|
32855
32871
|
__decorateClass([
|
|
@@ -32864,7 +32880,7 @@ __decorateClass([
|
|
|
32864
32880
|
], BitacoraDeOrdenesDTO.prototype, "mensaje_contingencia", 2);
|
|
32865
32881
|
|
|
32866
32882
|
// src/operativa/procesos/onnet_fibra/shared/dto/estado_de_pago.ts
|
|
32867
|
-
import { Expose as Expose543, Transform as
|
|
32883
|
+
import { Expose as Expose543, Transform as Transform70 } from "class-transformer";
|
|
32868
32884
|
import { IsDate as IsDate130, IsDefined as IsDefined150, IsNumber as IsNumber356, IsString as IsString439 } from "class-validator";
|
|
32869
32885
|
var EstadoDePagoDTO = class {
|
|
32870
32886
|
capacidad_cable = "";
|
|
@@ -32892,7 +32908,7 @@ __decorateClass([
|
|
|
32892
32908
|
Expose543()
|
|
32893
32909
|
], EstadoDePagoDTO.prototype, "estado", 2);
|
|
32894
32910
|
__decorateClass([
|
|
32895
|
-
|
|
32911
|
+
Transform70(({ value }) => formatDateOnnetFibra(value)),
|
|
32896
32912
|
IsDate130({ message: "El campo fecha_crea debe ser una cadena de texto" }),
|
|
32897
32913
|
Expose543()
|
|
32898
32914
|
], EstadoDePagoDTO.prototype, "fecha_crea", 2);
|
|
@@ -32907,7 +32923,7 @@ __decorateClass([
|
|
|
32907
32923
|
Expose543()
|
|
32908
32924
|
], EstadoDePagoDTO.prototype, "id_orden_mantenimiento", 2);
|
|
32909
32925
|
__decorateClass([
|
|
32910
|
-
|
|
32926
|
+
Transform70(({ value }) => formatDateOnnetFibra(value)),
|
|
32911
32927
|
IsDate130({ message: "El campo fecha_crea debe ser una cadena de texto" }),
|
|
32912
32928
|
Expose543()
|
|
32913
32929
|
], EstadoDePagoDTO.prototype, "fecha_validador", 2);
|
|
@@ -33012,7 +33028,7 @@ import { Expose as Expose548, Type as Type355 } from "class-transformer";
|
|
|
33012
33028
|
import { IsArray as IsArray182, IsDefined as IsDefined155, IsString as IsString444, ValidateNested as ValidateNested316 } from "class-validator";
|
|
33013
33029
|
|
|
33014
33030
|
// src/operativa/procesos/onnet_fibra/shared/dto/detail-maintenance-order/detalle_orden_real_dto.ts
|
|
33015
|
-
import { Expose as Expose545, Transform as
|
|
33031
|
+
import { Expose as Expose545, Transform as Transform71, Type as Type354 } from "class-transformer";
|
|
33016
33032
|
import { IsDefined as IsDefined152, IsNumber as IsNumber358, IsOptional as IsOptional24, IsString as IsString441 } from "class-validator";
|
|
33017
33033
|
var DetalleOrdenRealDTO = class {
|
|
33018
33034
|
descripcion = "";
|
|
@@ -33030,25 +33046,25 @@ var DetalleOrdenRealDTO = class {
|
|
|
33030
33046
|
__decorateClass([
|
|
33031
33047
|
IsDefined152({ message: "El campo descripcion es requerido" }),
|
|
33032
33048
|
IsString441({ message: "El campo descripcion debe ser una cadena de texto" }),
|
|
33033
|
-
|
|
33049
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33034
33050
|
Expose545()
|
|
33035
33051
|
], DetalleOrdenRealDTO.prototype, "descripcion", 2);
|
|
33036
33052
|
__decorateClass([
|
|
33037
33053
|
IsDefined152({ message: "El campo tipo es requerido" }),
|
|
33038
33054
|
IsString441({ message: "El campo tipo debe ser una cadena de texto" }),
|
|
33039
|
-
|
|
33055
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33040
33056
|
Expose545()
|
|
33041
33057
|
], DetalleOrdenRealDTO.prototype, "tipo", 2);
|
|
33042
33058
|
__decorateClass([
|
|
33043
33059
|
IsDefined152({ message: "El campo tipo_material es requerido" }),
|
|
33044
33060
|
IsString441({ message: "El campo tipo_material debe ser una cadena de texto" }),
|
|
33045
|
-
|
|
33061
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33046
33062
|
Expose545()
|
|
33047
33063
|
], DetalleOrdenRealDTO.prototype, "tipo_material", 2);
|
|
33048
33064
|
__decorateClass([
|
|
33049
33065
|
IsDefined152({ message: "El campo codigo es requerido" }),
|
|
33050
33066
|
IsString441({ message: "El campo codigo debe ser una cadena de texto" }),
|
|
33051
|
-
|
|
33067
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33052
33068
|
Expose545()
|
|
33053
33069
|
], DetalleOrdenRealDTO.prototype, "codigo", 2);
|
|
33054
33070
|
__decorateClass([
|
|
@@ -33062,12 +33078,12 @@ __decorateClass([
|
|
|
33062
33078
|
__decorateClass([
|
|
33063
33079
|
IsOptional24({ message: "El campo tecnico es requerido" }),
|
|
33064
33080
|
IsString441({ message: "El campo tecnico debe ser una cadena de texto" }),
|
|
33065
|
-
|
|
33081
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33066
33082
|
Expose545()
|
|
33067
33083
|
], DetalleOrdenRealDTO.prototype, "tecnico", 2);
|
|
33068
33084
|
__decorateClass([
|
|
33069
33085
|
IsString441({ message: "El campo unidad debe ser una cadena de texto" }),
|
|
33070
|
-
|
|
33086
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33071
33087
|
Expose545()
|
|
33072
33088
|
], DetalleOrdenRealDTO.prototype, "unidad", 2);
|
|
33073
33089
|
__decorateClass([
|
|
@@ -33077,18 +33093,18 @@ __decorateClass([
|
|
|
33077
33093
|
__decorateClass([
|
|
33078
33094
|
IsOptional24({ message: "El campo contrato es opcional" }),
|
|
33079
33095
|
IsString441({ message: "El campo contrato debe ser una cadena de texto" }),
|
|
33080
|
-
|
|
33096
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33081
33097
|
Expose545()
|
|
33082
33098
|
], DetalleOrdenRealDTO.prototype, "contrato", 2);
|
|
33083
33099
|
__decorateClass([
|
|
33084
33100
|
Type354(() => CodigoNombreDTO),
|
|
33085
33101
|
IsOptional24(),
|
|
33086
|
-
|
|
33102
|
+
Transform71(({ value }) => value ?? new CodigoNombreDTO()),
|
|
33087
33103
|
Expose545()
|
|
33088
33104
|
], DetalleOrdenRealDTO.prototype, "especialidad", 2);
|
|
33089
33105
|
|
|
33090
33106
|
// src/operativa/procesos/onnet_fibra/shared/dto/detail-maintenance-order/orden_detail_maintenance.ts
|
|
33091
|
-
import { Expose as Expose546, Transform as
|
|
33107
|
+
import { Expose as Expose546, Transform as Transform72 } from "class-transformer";
|
|
33092
33108
|
import { IsDate as IsDate131, IsDefined as IsDefined153, IsNumber as IsNumber359, IsString as IsString442 } from "class-validator";
|
|
33093
33109
|
var OrdenDetailMaintenanceDTO = class {
|
|
33094
33110
|
tipo = "";
|
|
@@ -33139,7 +33155,7 @@ __decorateClass([
|
|
|
33139
33155
|
Expose546()
|
|
33140
33156
|
], OrdenDetailMaintenanceDTO.prototype, "estado", 2);
|
|
33141
33157
|
__decorateClass([
|
|
33142
|
-
|
|
33158
|
+
Transform72(({ value }) => formatDateOnnetFibra(value)),
|
|
33143
33159
|
IsDate131({ message: "El campo fecha_crea debe ser una cadena de texto" }),
|
|
33144
33160
|
Expose546()
|
|
33145
33161
|
], OrdenDetailMaintenanceDTO.prototype, "fecha_crea", 2);
|
|
@@ -33494,12 +33510,12 @@ __decorateClass([
|
|
|
33494
33510
|
Expose550()
|
|
33495
33511
|
], OnnetFibraENTITY.prototype, "LlaveRegla", 2);
|
|
33496
33512
|
__decorateClass([
|
|
33497
|
-
|
|
33513
|
+
Transform73(({ value }) => value === void 0 || value === null ? 0 : value),
|
|
33498
33514
|
IsNumber362({}, { message: "El campo MO debe ser numero" }),
|
|
33499
33515
|
Expose550()
|
|
33500
33516
|
], OnnetFibraENTITY.prototype, "MO", 2);
|
|
33501
33517
|
__decorateClass([
|
|
33502
|
-
|
|
33518
|
+
Transform73(({ value }) => value === void 0 || value === null ? 0 : value),
|
|
33503
33519
|
IsNumber362({}, { message: "El campo PB debe ser numero" }),
|
|
33504
33520
|
Expose550()
|
|
33505
33521
|
], OnnetFibraENTITY.prototype, "PB", 2);
|
|
@@ -33538,7 +33554,7 @@ import { IsDefined as IsDefined159, IsNumber as IsNumber364 } from "class-valida
|
|
|
33538
33554
|
|
|
33539
33555
|
// src/operativa/procesos/order stock/shared/index.ts
|
|
33540
33556
|
import { Expose as Expose551, Type as Type357 } from "class-transformer";
|
|
33541
|
-
import { IsArray as IsArray183, IsDefined as IsDefined158, IsEnum as IsEnum19, IsNotEmpty as IsNotEmpty375, IsNumber as IsNumber363, IsString as IsString447, IsUUID as
|
|
33557
|
+
import { IsArray as IsArray183, IsDefined as IsDefined158, IsEnum as IsEnum19, IsNotEmpty as IsNotEmpty375, IsNumber as IsNumber363, IsString as IsString447, IsUUID as IsUUID3, MaxLength as MaxLength2, ValidateNested as ValidateNested318 } from "class-validator";
|
|
33542
33558
|
var OrderStockENTITY = class {
|
|
33543
33559
|
_id;
|
|
33544
33560
|
id_recurso;
|
|
@@ -33553,7 +33569,7 @@ var OrderStockENTITY = class {
|
|
|
33553
33569
|
};
|
|
33554
33570
|
__decorateClass([
|
|
33555
33571
|
IsDefined158({ message: "El campo _id es obligatorio." }),
|
|
33556
|
-
|
|
33572
|
+
IsUUID3("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
33557
33573
|
Expose551({ name: "_id" })
|
|
33558
33574
|
], OrderStockENTITY.prototype, "_id", 2);
|
|
33559
33575
|
__decorateClass([
|
|
@@ -33622,7 +33638,7 @@ import {
|
|
|
33622
33638
|
IsString as IsString448,
|
|
33623
33639
|
IsDefined as IsDefined160,
|
|
33624
33640
|
MinLength as MinLength46,
|
|
33625
|
-
IsUUID as
|
|
33641
|
+
IsUUID as IsUUID4,
|
|
33626
33642
|
IsDate as IsDate132
|
|
33627
33643
|
} from "class-validator";
|
|
33628
33644
|
var RequestNumberTTLENTITY = class {
|
|
@@ -33632,7 +33648,7 @@ var RequestNumberTTLENTITY = class {
|
|
|
33632
33648
|
};
|
|
33633
33649
|
__decorateClass([
|
|
33634
33650
|
IsDefined160({ message: "El campo _id es obligatorio." }),
|
|
33635
|
-
|
|
33651
|
+
IsUUID4("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
33636
33652
|
Expose553({ name: "_id" })
|
|
33637
33653
|
], RequestNumberTTLENTITY.prototype, "_id", 2);
|
|
33638
33654
|
__decorateClass([
|
|
@@ -33649,7 +33665,7 @@ __decorateClass([
|
|
|
33649
33665
|
], RequestNumberTTLENTITY.prototype, "createdAt", 2);
|
|
33650
33666
|
|
|
33651
33667
|
// src/operativa/procesos/win_order/shared/index.ts
|
|
33652
|
-
import { Expose as Expose557, Type as Type362 } from "class-transformer";
|
|
33668
|
+
import { Expose as Expose557, Transform as Transform74, Type as Type362 } from "class-transformer";
|
|
33653
33669
|
import {
|
|
33654
33670
|
IsDefined as IsDefined164,
|
|
33655
33671
|
IsString as IsString452,
|
|
@@ -33657,7 +33673,8 @@ import {
|
|
|
33657
33673
|
IsArray as IsArray186,
|
|
33658
33674
|
IsDate as IsDate136,
|
|
33659
33675
|
IsEnum as IsEnum22,
|
|
33660
|
-
IsNumber as IsNumber368
|
|
33676
|
+
IsNumber as IsNumber368,
|
|
33677
|
+
IsUUID as IsUUID5
|
|
33661
33678
|
} from "class-validator";
|
|
33662
33679
|
import "reflect-metadata";
|
|
33663
33680
|
|
|
@@ -34180,6 +34197,7 @@ var Peru9112WinENTITY = class {
|
|
|
34180
34197
|
motivo_cancelacion = "";
|
|
34181
34198
|
motivo_suspension = "";
|
|
34182
34199
|
estado = "Agendada" /* AGENDADA */;
|
|
34200
|
+
estado_interno = "Pendiente" /* PENDIENTE */;
|
|
34183
34201
|
fecha_estado = /* @__PURE__ */ new Date();
|
|
34184
34202
|
fecha_solicitud = /* @__PURE__ */ new Date();
|
|
34185
34203
|
tipo_de_orden = "";
|
|
@@ -34197,6 +34215,7 @@ var Peru9112WinENTITY = class {
|
|
|
34197
34215
|
};
|
|
34198
34216
|
__decorateClass([
|
|
34199
34217
|
IsDefined164({ message: "El campo _id es obligatorio." }),
|
|
34218
|
+
IsUUID5("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34200
34219
|
Expose557({ name: "_id" })
|
|
34201
34220
|
], Peru9112WinENTITY.prototype, "_id", 2);
|
|
34202
34221
|
__decorateClass([
|
|
@@ -34270,6 +34289,12 @@ __decorateClass([
|
|
|
34270
34289
|
IsDefined164({ message: "El campo Estado actividad es obligatorio." }),
|
|
34271
34290
|
IsEnum22(StateWin, { message: "El campo Estado no es v\xE1lido" })
|
|
34272
34291
|
], Peru9112WinENTITY.prototype, "estado", 2);
|
|
34292
|
+
__decorateClass([
|
|
34293
|
+
Expose557({ name: "Estado Interno" }),
|
|
34294
|
+
Transform74(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
34295
|
+
IsDefined164({ message: "El campo estado interno es obligatorio." }),
|
|
34296
|
+
IsEnum22(StateInternalOrder, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrder).join(", ")}.` })
|
|
34297
|
+
], Peru9112WinENTITY.prototype, "estado_interno", 2);
|
|
34273
34298
|
__decorateClass([
|
|
34274
34299
|
Expose557({ name: "Fecha Estado" }),
|
|
34275
34300
|
IsDefined164({ message: "El campo Fecha Estado es obligatorio." }),
|
|
@@ -34348,7 +34373,7 @@ __decorateClass([
|
|
|
34348
34373
|
|
|
34349
34374
|
// src/operativa/procesos/WIN order stock/shared/index.ts
|
|
34350
34375
|
import { Expose as Expose558, Type as Type363 } from "class-transformer";
|
|
34351
|
-
import { IsArray as IsArray187, IsDefined as IsDefined165, IsEnum as IsEnum23, IsNotEmpty as IsNotEmpty376, IsNumber as IsNumber369, IsString as IsString453, IsUUID as
|
|
34376
|
+
import { IsArray as IsArray187, IsDefined as IsDefined165, IsEnum as IsEnum23, IsNotEmpty as IsNotEmpty376, IsNumber as IsNumber369, IsString as IsString453, IsUUID as IsUUID6, MaxLength as MaxLength3, ValidateNested as ValidateNested322 } from "class-validator";
|
|
34352
34377
|
var WINOrderStockENTITY = class {
|
|
34353
34378
|
_id;
|
|
34354
34379
|
id_recurso;
|
|
@@ -34362,7 +34387,7 @@ var WINOrderStockENTITY = class {
|
|
|
34362
34387
|
};
|
|
34363
34388
|
__decorateClass([
|
|
34364
34389
|
IsDefined165({ message: "El campo _id es obligatorio." }),
|
|
34365
|
-
|
|
34390
|
+
IsUUID6("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34366
34391
|
Expose558({ name: "_id" })
|
|
34367
34392
|
], WINOrderStockENTITY.prototype, "_id", 2);
|
|
34368
34393
|
__decorateClass([
|
|
@@ -34411,7 +34436,7 @@ __decorateClass([
|
|
|
34411
34436
|
], WINOrderStockENTITY.prototype, "state_replacement", 2);
|
|
34412
34437
|
|
|
34413
34438
|
// src/operativa/procesos/fibramas_order/shared/index.ts
|
|
34414
|
-
import { Expose as Expose562, Type as Type367 } from "class-transformer";
|
|
34439
|
+
import { Expose as Expose562, Transform as Transform75, Type as Type367 } from "class-transformer";
|
|
34415
34440
|
import {
|
|
34416
34441
|
IsDefined as IsDefined169,
|
|
34417
34442
|
IsString as IsString457,
|
|
@@ -34419,7 +34444,8 @@ import {
|
|
|
34419
34444
|
ValidateNested as ValidateNested325,
|
|
34420
34445
|
IsArray as IsArray190,
|
|
34421
34446
|
IsDate as IsDate139,
|
|
34422
|
-
IsEnum as IsEnum26
|
|
34447
|
+
IsEnum as IsEnum26,
|
|
34448
|
+
IsUUID as IsUUID7
|
|
34423
34449
|
} from "class-validator";
|
|
34424
34450
|
import "reflect-metadata";
|
|
34425
34451
|
|
|
@@ -34754,6 +34780,7 @@ var Peru9112FibramasENTITY = class {
|
|
|
34754
34780
|
tipo_orden = "";
|
|
34755
34781
|
servicio = "";
|
|
34756
34782
|
estado_del_servicio = "ACTIVO" /* ACTIVO */;
|
|
34783
|
+
estado_interno = "Pendiente" /* PENDIENTE */;
|
|
34757
34784
|
tarifa_de_servicio = "";
|
|
34758
34785
|
puntos_principal_instalacion = 0;
|
|
34759
34786
|
puntos_adicional_instalacion = 0;
|
|
@@ -34778,6 +34805,7 @@ var Peru9112FibramasENTITY = class {
|
|
|
34778
34805
|
};
|
|
34779
34806
|
__decorateClass([
|
|
34780
34807
|
IsDefined169({ message: "El campo _id es obligatorio." }),
|
|
34808
|
+
IsUUID7("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34781
34809
|
Expose562({ name: "_id" })
|
|
34782
34810
|
], Peru9112FibramasENTITY.prototype, "_id", 2);
|
|
34783
34811
|
__decorateClass([
|
|
@@ -34815,6 +34843,12 @@ __decorateClass([
|
|
|
34815
34843
|
IsDefined169({ message: "El campo ESTADO DEL SERVICIO es obligatorio." }),
|
|
34816
34844
|
IsEnum26(StateServiceFibramas, { message: "El campo ESTADO DEL SERVICIO no es v\xE1lido" })
|
|
34817
34845
|
], Peru9112FibramasENTITY.prototype, "estado_del_servicio", 2);
|
|
34846
|
+
__decorateClass([
|
|
34847
|
+
Expose562({ name: "Estado Interno" }),
|
|
34848
|
+
Transform75(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
34849
|
+
IsDefined169({ message: "El campo estado interno es obligatorio." }),
|
|
34850
|
+
IsEnum26(StateInternalOrder, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrder).join(", ")}.` })
|
|
34851
|
+
], Peru9112FibramasENTITY.prototype, "estado_interno", 2);
|
|
34818
34852
|
__decorateClass([
|
|
34819
34853
|
Expose562({ name: "TARIFA DE SERVICIO" }),
|
|
34820
34854
|
IsDefined169({ message: "El campo TARIFA DE SERVICIO es obligatorio." }),
|
|
@@ -34925,8 +34959,8 @@ __decorateClass([
|
|
|
34925
34959
|
], Peru9112FibramasENTITY.prototype, "EECC", 2);
|
|
34926
34960
|
|
|
34927
34961
|
// src/operativa/procesos/TOA orden liquidacion/shared/index.ts
|
|
34928
|
-
import { Expose as Expose563, Type as Type368 } from "class-transformer";
|
|
34929
|
-
import { IsArray as IsArray191, IsDefined as IsDefined170, IsEnum as IsEnum27, IsNumber as IsNumber374, IsObject as IsObject12, IsString as IsString458, IsUUID as
|
|
34962
|
+
import { Expose as Expose563, Transform as Transform76, Type as Type368 } from "class-transformer";
|
|
34963
|
+
import { IsArray as IsArray191, IsDefined as IsDefined170, IsEnum as IsEnum27, IsNumber as IsNumber374, IsObject as IsObject12, IsString as IsString458, IsUUID as IsUUID8, ValidateNested as ValidateNested326 } from "class-validator";
|
|
34930
34964
|
var TOAOrdenLiquidacionENTITY = class {
|
|
34931
34965
|
_id;
|
|
34932
34966
|
tecnico;
|
|
@@ -34952,100 +34986,116 @@ var TOAOrdenLiquidacionENTITY = class {
|
|
|
34952
34986
|
};
|
|
34953
34987
|
__decorateClass([
|
|
34954
34988
|
IsDefined170({ message: "El campo _id es obligatorio." }),
|
|
34955
|
-
|
|
34989
|
+
IsUUID8("4", { message: "La propiedad _id debe ser un UUID v4 v\xE1lido." }),
|
|
34956
34990
|
Expose563({ name: "_id" })
|
|
34957
34991
|
], TOAOrdenLiquidacionENTITY.prototype, "_id", 2);
|
|
34958
34992
|
__decorateClass([
|
|
34959
34993
|
Expose563({ name: "T\xE9cnico" }),
|
|
34994
|
+
Transform76(({ obj }) => obj["T\xE9cnico"] ?? obj.tecnico),
|
|
34960
34995
|
Type368(() => String),
|
|
34961
34996
|
IsDefined170({ message: "El campo T\xE9cnico es obligatorio." }),
|
|
34962
34997
|
IsString458()
|
|
34963
34998
|
], TOAOrdenLiquidacionENTITY.prototype, "tecnico", 2);
|
|
34964
34999
|
__decorateClass([
|
|
34965
35000
|
Expose563({ name: "ID Recurso" }),
|
|
35001
|
+
Transform76(({ obj }) => obj["ID Recurso"] ?? obj.id_recurso),
|
|
34966
35002
|
Type368(() => String),
|
|
34967
35003
|
IsDefined170({ message: "El campo ID Recurso es obligatorio." }),
|
|
34968
35004
|
IsString458()
|
|
34969
35005
|
], TOAOrdenLiquidacionENTITY.prototype, "id_recurso", 2);
|
|
34970
35006
|
__decorateClass([
|
|
34971
35007
|
Expose563({ name: "N\xFAmero OT" }),
|
|
35008
|
+
Transform76(({ obj }) => obj["N\xFAmero OT"] ?? obj.numero_ot),
|
|
34972
35009
|
Type368(() => Number),
|
|
34973
35010
|
IsDefined170({ message: "El campo N\xFAmero OT es obligatorio." }),
|
|
34974
35011
|
IsNumber374()
|
|
34975
35012
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_ot", 2);
|
|
34976
35013
|
__decorateClass([
|
|
34977
35014
|
Expose563({ name: "Subtipo de Actividad" }),
|
|
35015
|
+
Transform76(({ obj }) => obj["Subtipo de Actividad"] ?? obj.subtipo_de_actividad),
|
|
34978
35016
|
Type368(() => String),
|
|
34979
35017
|
IsDefined170({ message: "El campo Subtipo de Actividad es obligatorio." }),
|
|
34980
35018
|
IsString458()
|
|
34981
35019
|
], TOAOrdenLiquidacionENTITY.prototype, "subtipo_de_actividad", 2);
|
|
34982
35020
|
__decorateClass([
|
|
34983
35021
|
Expose563({ name: "N\xFAmero de Petici\xF3n" }),
|
|
35022
|
+
Transform76(({ obj }) => obj["N\xFAmero de Petici\xF3n"] ?? obj.numero_de_peticion),
|
|
34984
35023
|
Type368(() => String),
|
|
34985
35024
|
IsDefined170({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
34986
35025
|
IsString458()
|
|
34987
35026
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_de_peticion", 2);
|
|
34988
35027
|
__decorateClass([
|
|
34989
35028
|
Expose563({ name: "Localidad" }),
|
|
35029
|
+
Transform76(({ obj }) => obj["Localidad"] ?? obj.localidad),
|
|
34990
35030
|
Type368(() => String),
|
|
34991
35031
|
IsDefined170({ message: "El campo Localidad es obligatorio." }),
|
|
34992
35032
|
IsString458()
|
|
34993
35033
|
], TOAOrdenLiquidacionENTITY.prototype, "localidad", 2);
|
|
34994
35034
|
__decorateClass([
|
|
34995
35035
|
Expose563({ name: "Direcci\xF3n" }),
|
|
35036
|
+
Transform76(({ obj }) => obj["Direcci\xF3n"] ?? obj.direccion),
|
|
34996
35037
|
Type368(() => String),
|
|
34997
35038
|
IsDefined170({ message: "El campo Direcci\xF3n es obligatorio." }),
|
|
34998
35039
|
IsString458()
|
|
34999
35040
|
], TOAOrdenLiquidacionENTITY.prototype, "direccion", 2);
|
|
35000
35041
|
__decorateClass([
|
|
35001
35042
|
Expose563({ name: "Zona de Trabajo" }),
|
|
35043
|
+
Transform76(({ obj }) => obj["Zona de Trabajo"] ?? obj.zona_de_trabajo),
|
|
35002
35044
|
Type368(() => String),
|
|
35003
35045
|
IsDefined170({ message: "El campo Zona de Trabajo es obligatorio." }),
|
|
35004
35046
|
IsString458()
|
|
35005
35047
|
], TOAOrdenLiquidacionENTITY.prototype, "zona_de_trabajo", 2);
|
|
35006
35048
|
__decorateClass([
|
|
35007
35049
|
Expose563({ name: "Nombre Cliente" }),
|
|
35050
|
+
Transform76(({ obj }) => obj["Nombre Cliente"] ?? obj.nombre_cliente),
|
|
35008
35051
|
Type368(() => String),
|
|
35009
35052
|
IsDefined170({ message: "El campo Nombre Cliente es obligatorio." }),
|
|
35010
35053
|
IsString458()
|
|
35011
35054
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_cliente", 2);
|
|
35012
35055
|
__decorateClass([
|
|
35013
35056
|
Expose563({ name: "Estado actividad" }),
|
|
35057
|
+
Transform76(({ obj }) => obj["Estado actividad"] ?? obj.estado_actividad),
|
|
35014
35058
|
Type368(() => String),
|
|
35015
35059
|
IsDefined170({ message: "El campo Estado actividad es obligatorio." }),
|
|
35016
35060
|
IsString458()
|
|
35017
35061
|
], TOAOrdenLiquidacionENTITY.prototype, "estado_actividad", 2);
|
|
35018
35062
|
__decorateClass([
|
|
35019
35063
|
Expose563({ name: "Estado Interno" }),
|
|
35064
|
+
Transform76(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
35020
35065
|
IsDefined170({ message: "El campo estado interno es obligatorio." }),
|
|
35021
|
-
IsEnum27(
|
|
35066
|
+
IsEnum27(StateInternalOrderTOA, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrderTOA).join(", ")}.` })
|
|
35022
35067
|
], TOAOrdenLiquidacionENTITY.prototype, "estado_interno", 2);
|
|
35023
35068
|
__decorateClass([
|
|
35024
35069
|
Expose563({ name: "C\xF3digo de Cliente" }),
|
|
35070
|
+
Transform76(({ obj }) => obj["C\xF3digo de Cliente"] ?? obj.codigo_de_cliente),
|
|
35025
35071
|
Type368(() => Number),
|
|
35026
35072
|
IsDefined170({ message: "El campo C\xF3digo de Cliente es obligatorio." }),
|
|
35027
35073
|
IsNumber374()
|
|
35028
35074
|
], TOAOrdenLiquidacionENTITY.prototype, "codigo_de_cliente", 2);
|
|
35029
35075
|
__decorateClass([
|
|
35030
35076
|
Expose563({ name: "Actividad Gpon" }),
|
|
35077
|
+
Transform76(({ obj }) => obj["Actividad Gpon"] ?? obj.actividad_gpon),
|
|
35031
35078
|
Type368(() => String),
|
|
35032
35079
|
IsDefined170({ message: "El campo Actividad Gpon es obligatorio." }),
|
|
35033
35080
|
IsString458()
|
|
35034
35081
|
], TOAOrdenLiquidacionENTITY.prototype, "actividad_gpon", 2);
|
|
35035
35082
|
__decorateClass([
|
|
35036
35083
|
Expose563({ name: "Nombre Distrito" }),
|
|
35084
|
+
Transform76(({ obj }) => obj["Nombre Distrito"] ?? obj.nombre_distrito),
|
|
35037
35085
|
Type368(() => String),
|
|
35038
35086
|
IsDefined170({ message: "El campo Nombre Distrito es obligatorio." }),
|
|
35039
35087
|
IsString458()
|
|
35040
35088
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_distrito", 2);
|
|
35041
35089
|
__decorateClass([
|
|
35042
35090
|
Expose563({ name: "N\xFAmero Tel\xE9fono" }),
|
|
35091
|
+
Transform76(({ obj }) => obj["N\xFAmero Tel\xE9fono"] ?? obj.numero_telefono),
|
|
35043
35092
|
Type368(() => String),
|
|
35044
35093
|
IsDefined170({ message: "El campo N\xFAmero Tel\xE9fono es obligatorio." }),
|
|
35045
35094
|
IsString458()
|
|
35046
35095
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_telefono", 2);
|
|
35047
35096
|
__decorateClass([
|
|
35048
35097
|
Expose563({ name: "Segmento" }),
|
|
35098
|
+
Transform76(({ obj }) => obj["Segmento"] ?? obj.segmento),
|
|
35049
35099
|
IsDefined170({ message: "El campo Segmento es obligatorio." }),
|
|
35050
35100
|
IsObject12(),
|
|
35051
35101
|
ValidateNested326(),
|
|
@@ -35053,24 +35103,28 @@ __decorateClass([
|
|
|
35053
35103
|
], TOAOrdenLiquidacionENTITY.prototype, "segmento", 2);
|
|
35054
35104
|
__decorateClass([
|
|
35055
35105
|
Expose563({ name: "Nombre de Provincia" }),
|
|
35106
|
+
Transform76(({ obj }) => obj["Nombre de Provincia"] ?? obj.nombre_de_provincia),
|
|
35056
35107
|
Type368(() => String),
|
|
35057
35108
|
IsDefined170({ message: "El campo Nombre de Provincia es obligatorio." }),
|
|
35058
35109
|
IsString458()
|
|
35059
35110
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_de_provincia", 2);
|
|
35060
35111
|
__decorateClass([
|
|
35061
35112
|
Expose563({ name: "Departamento" }),
|
|
35113
|
+
Transform76(({ obj }) => obj["Departamento"] ?? obj.departamento),
|
|
35062
35114
|
Type368(() => String),
|
|
35063
35115
|
IsDefined170({ message: "El campo Departamento es obligatorio." }),
|
|
35064
35116
|
IsString458()
|
|
35065
35117
|
], TOAOrdenLiquidacionENTITY.prototype, "departamento", 2);
|
|
35066
35118
|
__decorateClass([
|
|
35067
35119
|
Expose563({ name: "Reiterada TDI" }),
|
|
35120
|
+
Transform76(({ obj }) => obj["Reiterada TDI"] ?? obj.reiterada_tdi),
|
|
35068
35121
|
Type368(() => String),
|
|
35069
35122
|
IsDefined170({ message: "El campo Reiterada TDI es obligatorio." }),
|
|
35070
35123
|
IsString458()
|
|
35071
35124
|
], TOAOrdenLiquidacionENTITY.prototype, "reiterada_tdi", 2);
|
|
35072
35125
|
__decorateClass([
|
|
35073
35126
|
Expose563({ name: "Inventario" }),
|
|
35127
|
+
Transform76(({ obj }) => obj["Inventario"] ?? obj.inventario),
|
|
35074
35128
|
IsDefined170({ message: "El campo inventario es obligatorio." }),
|
|
35075
35129
|
IsArray191(),
|
|
35076
35130
|
ValidateNested326({ each: true }),
|
|
@@ -35079,7 +35133,7 @@ __decorateClass([
|
|
|
35079
35133
|
|
|
35080
35134
|
// src/operativa/procesos/TOA orden liquidacion_db/shared/index.ts
|
|
35081
35135
|
import { Expose as Expose564, Type as Type369 } from "class-transformer";
|
|
35082
|
-
import { IsArray as IsArray192, IsDefined as IsDefined171, IsEnum as IsEnum28, IsNumber as IsNumber375, IsObject as IsObject13, IsString as IsString459, IsUUID as
|
|
35136
|
+
import { IsArray as IsArray192, IsDefined as IsDefined171, IsEnum as IsEnum28, IsNumber as IsNumber375, IsObject as IsObject13, IsString as IsString459, IsUUID as IsUUID9, ValidateNested as ValidateNested327 } from "class-validator";
|
|
35083
35137
|
var TOAOrdenLiquidacionENTITYDB = class {
|
|
35084
35138
|
_id = "";
|
|
35085
35139
|
tecnico = "";
|
|
@@ -35105,7 +35159,7 @@ var TOAOrdenLiquidacionENTITYDB = class {
|
|
|
35105
35159
|
};
|
|
35106
35160
|
__decorateClass([
|
|
35107
35161
|
IsDefined171({ message: "El campo _id es obligatorio." }),
|
|
35108
|
-
|
|
35162
|
+
IsUUID9("4", { message: "La propiedad _id debe ser un UUID v4 v\xE1lido." }),
|
|
35109
35163
|
Expose564({ name: "_id" })
|
|
35110
35164
|
], TOAOrdenLiquidacionENTITYDB.prototype, "_id", 2);
|
|
35111
35165
|
__decorateClass([
|
|
@@ -35161,7 +35215,7 @@ __decorateClass([
|
|
|
35161
35215
|
__decorateClass([
|
|
35162
35216
|
Expose564(),
|
|
35163
35217
|
IsDefined171({ message: "El campo estado interno es obligatorio." }),
|
|
35164
|
-
IsEnum28(
|
|
35218
|
+
IsEnum28(StateInternalOrderTOA, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrderTOA).join(", ")}.` })
|
|
35165
35219
|
], TOAOrdenLiquidacionENTITYDB.prototype, "estado_interno", 2);
|
|
35166
35220
|
__decorateClass([
|
|
35167
35221
|
Expose564(),
|
|
@@ -35245,14 +35299,14 @@ import { IsDefined as IsDefined174, IsObject as IsObject14, IsString as IsString
|
|
|
35245
35299
|
|
|
35246
35300
|
// src/v2/entities/Base.ts
|
|
35247
35301
|
import { Expose as Expose566 } from "class-transformer";
|
|
35248
|
-
import { IsBoolean as IsBoolean50, IsDefined as IsDefined173, IsUUID as
|
|
35302
|
+
import { IsBoolean as IsBoolean50, IsDefined as IsDefined173, IsUUID as IsUUID10 } from "class-validator";
|
|
35249
35303
|
var BaseEntity = class {
|
|
35250
35304
|
_id;
|
|
35251
35305
|
activo;
|
|
35252
35306
|
};
|
|
35253
35307
|
__decorateClass([
|
|
35254
35308
|
IsDefined173({ message: 'La propiedad "_id" es obligatoria.' }),
|
|
35255
|
-
|
|
35309
|
+
IsUUID10("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
35256
35310
|
Expose566()
|
|
35257
35311
|
], BaseEntity.prototype, "_id", 2);
|
|
35258
35312
|
__decorateClass([
|
|
@@ -35733,6 +35787,7 @@ export {
|
|
|
35733
35787
|
SocketDTO,
|
|
35734
35788
|
StateFibramas,
|
|
35735
35789
|
StateInternalOrder,
|
|
35790
|
+
StateInternalOrderTOA,
|
|
35736
35791
|
StateInventory,
|
|
35737
35792
|
StateServiceFibramas,
|
|
35738
35793
|
StateWin,
|