sigo-entities 1.2.87 → 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.js +28 -1
- package/dist/index.mjs +222 -192
- 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);
|
|
@@ -3606,7 +3608,7 @@ __decorateClass([
|
|
|
3606
3608
|
|
|
3607
3609
|
// src/administracion/EstadoInterno/shared/index.ts
|
|
3608
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";
|
|
3609
|
-
import { Expose as Expose87, Transform as
|
|
3611
|
+
import { Expose as Expose87, Transform as Transform18, Type as Type47 } from "class-transformer";
|
|
3610
3612
|
var EstadoInternoENTITY = class {
|
|
3611
3613
|
ID_EstadoInterno = 0;
|
|
3612
3614
|
ID_EstadoInternoPadre = 0;
|
|
@@ -3671,7 +3673,7 @@ __decorateClass([
|
|
|
3671
3673
|
IsNumber55({}, { message: "debe ser un numero" }),
|
|
3672
3674
|
Expose87(),
|
|
3673
3675
|
Min47(0),
|
|
3674
|
-
|
|
3676
|
+
Transform18(({ value }) => Number(value))
|
|
3675
3677
|
], EstadoInternoENTITY.prototype, "Orden", 2);
|
|
3676
3678
|
__decorateClass([
|
|
3677
3679
|
IsDefined10({ message: "El campo ColorFondo es obligatorio" }),
|
|
@@ -3915,20 +3917,20 @@ __decorateClass([
|
|
|
3915
3917
|
], UnidadObraMaterialENTITY.prototype, "Estado", 2);
|
|
3916
3918
|
|
|
3917
3919
|
// src/administracion/zona trabajo/shared/dto/lat-lng-dto.ts
|
|
3918
|
-
import { Expose as Expose91, Transform as
|
|
3920
|
+
import { Expose as Expose91, Transform as Transform19 } from "class-transformer";
|
|
3919
3921
|
import { IsNotEmpty as IsNotEmpty74, IsNumber as IsNumber59 } from "class-validator";
|
|
3920
3922
|
var latLngDTO = class {
|
|
3921
3923
|
lat = 0;
|
|
3922
3924
|
lng = 0;
|
|
3923
3925
|
};
|
|
3924
3926
|
__decorateClass([
|
|
3925
|
-
|
|
3927
|
+
Transform19(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
3926
3928
|
IsNumber59({}, { message: "debe ser un numero" }),
|
|
3927
3929
|
IsNotEmpty74({ message: "es requerido" }),
|
|
3928
3930
|
Expose91()
|
|
3929
3931
|
], latLngDTO.prototype, "lat", 2);
|
|
3930
3932
|
__decorateClass([
|
|
3931
|
-
|
|
3933
|
+
Transform19(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
3932
3934
|
IsNumber59({}, { message: "debe ser un numero" }),
|
|
3933
3935
|
IsNotEmpty74({ message: "es requerido" }),
|
|
3934
3936
|
Expose91()
|
|
@@ -4421,7 +4423,7 @@ __decorateClass([
|
|
|
4421
4423
|
], DocumentacionPEXENTITY.prototype, "Estado", 2);
|
|
4422
4424
|
|
|
4423
4425
|
// src/administracion/PrecioAgencia_mam_onnet/shared/index.ts
|
|
4424
|
-
import { Expose as Expose99, Type as Type57, Transform as
|
|
4426
|
+
import { Expose as Expose99, Type as Type57, Transform as Transform20 } from "class-transformer";
|
|
4425
4427
|
import { IsNotEmpty as IsNotEmpty82, IsNumber as IsNumber66, IsString as IsString81, Length as Length70, Min as Min57, ValidateNested as ValidateNested52 } from "class-validator";
|
|
4426
4428
|
var PrecioAgencia_mam_onnetENTITY = class {
|
|
4427
4429
|
ID_PrecioAgencia_mam_onnet = 0;
|
|
@@ -4460,43 +4462,43 @@ __decorateClass([
|
|
|
4460
4462
|
Expose99()
|
|
4461
4463
|
], PrecioAgencia_mam_onnetENTITY.prototype, "Region", 2);
|
|
4462
4464
|
__decorateClass([
|
|
4463
|
-
|
|
4465
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4464
4466
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4465
4467
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4466
4468
|
Expose99()
|
|
4467
4469
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaCritica", 2);
|
|
4468
4470
|
__decorateClass([
|
|
4469
|
-
|
|
4471
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4470
4472
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4471
4473
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4472
4474
|
Expose99()
|
|
4473
4475
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaStandar_C_32", 2);
|
|
4474
4476
|
__decorateClass([
|
|
4475
|
-
|
|
4477
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4476
4478
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4477
4479
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4478
4480
|
Expose99()
|
|
4479
4481
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaStandar_C_16", 2);
|
|
4480
4482
|
__decorateClass([
|
|
4481
|
-
|
|
4483
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4482
4484
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4483
4485
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4484
4486
|
Expose99()
|
|
4485
4487
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaStandar_C_8", 2);
|
|
4486
4488
|
__decorateClass([
|
|
4487
|
-
|
|
4489
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4488
4490
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4489
4491
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4490
4492
|
Expose99()
|
|
4491
4493
|
], PrecioAgencia_mam_onnetENTITY.prototype, "QuiebreStandar", 2);
|
|
4492
4494
|
__decorateClass([
|
|
4493
|
-
|
|
4495
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4494
4496
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4495
4497
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4496
4498
|
Expose99()
|
|
4497
4499
|
], PrecioAgencia_mam_onnetENTITY.prototype, "CTO_Encontrado_OK", 2);
|
|
4498
4500
|
__decorateClass([
|
|
4499
|
-
|
|
4501
|
+
Transform20(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4500
4502
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4501
4503
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4502
4504
|
Expose99()
|
|
@@ -4515,7 +4517,7 @@ __decorateClass([
|
|
|
4515
4517
|
], PrecioAgencia_mam_onnetENTITY.prototype, "Estado", 2);
|
|
4516
4518
|
|
|
4517
4519
|
// src/administracion/rm_zona_actividad/shared/index.ts
|
|
4518
|
-
import { Transform as
|
|
4520
|
+
import { Transform as Transform21, Expose as Expose100, Type as Type58 } from "class-transformer";
|
|
4519
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";
|
|
4520
4522
|
var ADM_RM_ZonasActividadENTITY = class {
|
|
4521
4523
|
ID_RM_ZonaActividad = 0;
|
|
@@ -4553,14 +4555,14 @@ __decorateClass([
|
|
|
4553
4555
|
Expose100()
|
|
4554
4556
|
], ADM_RM_ZonasActividadENTITY.prototype, "Actividad", 2);
|
|
4555
4557
|
__decorateClass([
|
|
4556
|
-
|
|
4558
|
+
Transform21(({ value }) => Number(value)),
|
|
4557
4559
|
IsDefined11({ message: "El campo Precio_v es obligatorio" }),
|
|
4558
4560
|
Expose100(),
|
|
4559
4561
|
IsNumber67({}, { message: "debe ser un numero" }),
|
|
4560
4562
|
Min58(1, { message: "el valor m\xEDnimo es 0" })
|
|
4561
4563
|
], ADM_RM_ZonasActividadENTITY.prototype, "Precio_v", 2);
|
|
4562
4564
|
__decorateClass([
|
|
4563
|
-
|
|
4565
|
+
Transform21(({ value }) => Number(value)),
|
|
4564
4566
|
IsDefined11({ message: "El campo Precio_c es obligatorio" }),
|
|
4565
4567
|
Expose100(),
|
|
4566
4568
|
IsNumber67({}, { message: "debe ser un numero" }),
|
|
@@ -4869,20 +4871,20 @@ __decorateClass([
|
|
|
4869
4871
|
], OTENTITY.prototype, "Estado", 2);
|
|
4870
4872
|
|
|
4871
4873
|
// src/administracion/ot/shared/dto/vigencia-ot-dto.ts
|
|
4872
|
-
import { Expose as Expose106, Transform as
|
|
4874
|
+
import { Expose as Expose106, Transform as Transform22, Type as Type64 } from "class-transformer";
|
|
4873
4875
|
import { IsDate as IsDate23, IsNotEmpty as IsNotEmpty87 } from "class-validator";
|
|
4874
4876
|
var VigenciaOTDTO = class {
|
|
4875
4877
|
FechaInicio = /* @__PURE__ */ new Date();
|
|
4876
4878
|
FechaFin = /* @__PURE__ */ new Date(0);
|
|
4877
4879
|
};
|
|
4878
4880
|
__decorateClass([
|
|
4879
|
-
|
|
4881
|
+
Transform22(({ value }) => value ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
4880
4882
|
IsDate23({ message: "debe ser una fecha" }),
|
|
4881
4883
|
Type64(() => Date),
|
|
4882
4884
|
Expose106()
|
|
4883
4885
|
], VigenciaOTDTO.prototype, "FechaInicio", 2);
|
|
4884
4886
|
__decorateClass([
|
|
4885
|
-
|
|
4887
|
+
Transform22(({ value }) => value ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
4886
4888
|
IsDate23({ message: "debe ser una fecha" }),
|
|
4887
4889
|
Type64(() => Date),
|
|
4888
4890
|
IsNotEmpty87({ message: "es requerido" }),
|
|
@@ -5829,7 +5831,7 @@ __decorateClass([
|
|
|
5829
5831
|
], ItemCantidadesDTO.prototype, "Fecha", 2);
|
|
5830
5832
|
|
|
5831
5833
|
// src/programados/procesos/reservaMaterial/shared/dto/item-dto.ts
|
|
5832
|
-
import { Expose as Expose125, Transform as
|
|
5834
|
+
import { Expose as Expose125, Transform as Transform23, Type as Type78 } from "class-transformer";
|
|
5833
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";
|
|
5834
5836
|
var ItemDTO = class {
|
|
5835
5837
|
ID_Item = 0;
|
|
@@ -5904,7 +5906,7 @@ __decorateClass([
|
|
|
5904
5906
|
Expose125()
|
|
5905
5907
|
], ItemDTO.prototype, "Lote", 2);
|
|
5906
5908
|
__decorateClass([
|
|
5907
|
-
|
|
5909
|
+
Transform23(({ value }) => convertTypeNumber({ value })),
|
|
5908
5910
|
IsDefined28({ message: "es requerido" }),
|
|
5909
5911
|
IsNumber88({}, { message: "debe ser un numero" }),
|
|
5910
5912
|
Min78(0, { message: "el valor m\xEDnimo es 0" }),
|
|
@@ -6958,7 +6960,7 @@ __decorateClass([
|
|
|
6958
6960
|
], ProduccionDTO.prototype, "CentroCostos", 2);
|
|
6959
6961
|
|
|
6960
6962
|
// src/programados/procesos/trabajo/shared/dto/detalle-chile-dto.ts
|
|
6961
|
-
import { Expose as Expose141, Transform as
|
|
6963
|
+
import { Expose as Expose141, Transform as Transform24, Type as Type93 } from "class-transformer";
|
|
6962
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";
|
|
6963
6965
|
var DetalleChileDTO = class {
|
|
6964
6966
|
Codigo = "";
|
|
@@ -7115,7 +7117,7 @@ __decorateClass([
|
|
|
7115
7117
|
], DetalleChileDTO.prototype, "CanUOApr", 2);
|
|
7116
7118
|
__decorateClass([
|
|
7117
7119
|
IsDefined37({ message: "es requerido" }),
|
|
7118
|
-
|
|
7120
|
+
Transform24(({ value }) => {
|
|
7119
7121
|
const num = Number(value);
|
|
7120
7122
|
return isNaN(num) ? value : num;
|
|
7121
7123
|
}),
|
|
@@ -7486,7 +7488,7 @@ __decorateClass([
|
|
|
7486
7488
|
], SubManoObraDTO.prototype, "Cantidad", 2);
|
|
7487
7489
|
|
|
7488
7490
|
// src/programados/procesos/trabajo/shared/dto/ubicacion-dto.ts
|
|
7489
|
-
import { Expose as Expose149, Transform as
|
|
7491
|
+
import { Expose as Expose149, Transform as Transform25, Type as Type97 } from "class-transformer";
|
|
7490
7492
|
import { IsNotEmpty as IsNotEmpty109, IsString as IsString120, Length as Length94, MinLength as MinLength18, ValidateNested as ValidateNested88 } from "class-validator";
|
|
7491
7493
|
var UbicacionDTO = class {
|
|
7492
7494
|
Direccion = "";
|
|
@@ -7503,7 +7505,7 @@ __decorateClass([
|
|
|
7503
7505
|
Expose149()
|
|
7504
7506
|
], UbicacionDTO.prototype, "Direccion", 2);
|
|
7505
7507
|
__decorateClass([
|
|
7506
|
-
|
|
7508
|
+
Transform25(({ value }) => value === null ? "" : value),
|
|
7507
7509
|
IsString120({ message: "debe ser un texto" }),
|
|
7508
7510
|
MinLength18(0, { message: "debe tener entre como m\xEDnimo 0 caracteres" }),
|
|
7509
7511
|
Expose149()
|
|
@@ -7515,7 +7517,7 @@ __decorateClass([
|
|
|
7515
7517
|
ValidateNested88()
|
|
7516
7518
|
], UbicacionDTO.prototype, "Coordenadas", 2);
|
|
7517
7519
|
__decorateClass([
|
|
7518
|
-
|
|
7520
|
+
Transform25(({ value }) => value === null ? "" : value),
|
|
7519
7521
|
IsString120({ message: "debe ser un texto" }),
|
|
7520
7522
|
MinLength18(0, { message: "debe tener entre como m\xEDnimo 0 caracteres" }),
|
|
7521
7523
|
Expose149()
|
|
@@ -7911,7 +7913,7 @@ __decorateClass([
|
|
|
7911
7913
|
], ValorizacionesDTO.prototype, "Estado", 2);
|
|
7912
7914
|
|
|
7913
7915
|
// src/programados/procesos/trabajo/shared/dto/personal-trabajo-dto.ts
|
|
7914
|
-
import { Expose as Expose153, Transform as
|
|
7916
|
+
import { Expose as Expose153, Transform as Transform26 } from "class-transformer";
|
|
7915
7917
|
import { IsNumber as IsNumber109, IsString as IsString123, Length as Length97, MinLength as MinLength20 } from "class-validator";
|
|
7916
7918
|
var PersonalTrabajoDTO = class {
|
|
7917
7919
|
Identificacion = "";
|
|
@@ -7926,7 +7928,7 @@ __decorateClass([
|
|
|
7926
7928
|
Expose153()
|
|
7927
7929
|
], PersonalTrabajoDTO.prototype, "Identificacion", 2);
|
|
7928
7930
|
__decorateClass([
|
|
7929
|
-
|
|
7931
|
+
Transform26(({ value }) => value === "" ? 0 : value),
|
|
7930
7932
|
IsNumber109({}, { message: "debe ser un numero" }),
|
|
7931
7933
|
Expose153()
|
|
7932
7934
|
], PersonalTrabajoDTO.prototype, "IdPersonal", 2);
|
|
@@ -12967,7 +12969,7 @@ __decorateClass([
|
|
|
12967
12969
|
], TotalGeneralObraDTO.prototype, "ResumenAvance", 2);
|
|
12968
12970
|
|
|
12969
12971
|
// src/programados/procesos/obra/shared/dto/ubicacion-dto.ts
|
|
12970
|
-
import { Expose as Expose239, Transform as
|
|
12972
|
+
import { Expose as Expose239, Transform as Transform27, Type as Type165 } from "class-transformer";
|
|
12971
12973
|
import { IsNotEmpty as IsNotEmpty175, IsString as IsString183, Length as Length139, ValidateNested as ValidateNested152 } from "class-validator";
|
|
12972
12974
|
var UbicacionObraDTO = class {
|
|
12973
12975
|
Direccion = "";
|
|
@@ -12984,7 +12986,7 @@ __decorateClass([
|
|
|
12984
12986
|
Expose239()
|
|
12985
12987
|
], UbicacionObraDTO.prototype, "Direccion", 2);
|
|
12986
12988
|
__decorateClass([
|
|
12987
|
-
|
|
12989
|
+
Transform27(({ value }) => value === null ? "" : value),
|
|
12988
12990
|
IsString183({ message: "debe ser un texto" }),
|
|
12989
12991
|
Length139(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
12990
12992
|
Expose239()
|
|
@@ -12996,7 +12998,7 @@ __decorateClass([
|
|
|
12996
12998
|
ValidateNested152()
|
|
12997
12999
|
], UbicacionObraDTO.prototype, "Coordenadas", 2);
|
|
12998
13000
|
__decorateClass([
|
|
12999
|
-
|
|
13001
|
+
Transform27(({ value }) => value === null ? "" : value),
|
|
13000
13002
|
IsString183({ message: "debe ser un texto" }),
|
|
13001
13003
|
Length139(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
13002
13004
|
Expose239()
|
|
@@ -13563,7 +13565,7 @@ import { Expose as Expose254, Type as Type177 } from "class-transformer";
|
|
|
13563
13565
|
import { IsNotEmpty as IsNotEmpty187, ValidateNested as ValidateNested164 } from "class-validator";
|
|
13564
13566
|
|
|
13565
13567
|
// src/programados/procesos/obra/alemania/shared/detalle-chile-alemania-obra-dto.ts
|
|
13566
|
-
import { Expose as Expose253, Transform as
|
|
13568
|
+
import { Expose as Expose253, Transform as Transform28, Type as Type176 } from "class-transformer";
|
|
13567
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";
|
|
13568
13570
|
var DetalleChileAlemaniaObraDTO = class {
|
|
13569
13571
|
codigoCalc = "";
|
|
@@ -13719,7 +13721,7 @@ __decorateClass([
|
|
|
13719
13721
|
IsNumber178({}, { message: "debe ser un numero" }),
|
|
13720
13722
|
Expose253(),
|
|
13721
13723
|
Min140(0),
|
|
13722
|
-
|
|
13724
|
+
Transform28(({ value }) => Number(value))
|
|
13723
13725
|
], DetalleChileAlemaniaObraDTO.prototype, "CostoTotal", 2);
|
|
13724
13726
|
__decorateClass([
|
|
13725
13727
|
Type176(() => HistoricoDTO),
|
|
@@ -15268,11 +15270,11 @@ __decorateClass([
|
|
|
15268
15270
|
], GomENTITY.prototype, "Anexos", 2);
|
|
15269
15271
|
|
|
15270
15272
|
// src/programados/procesos/cubicacion/shared/index.ts
|
|
15271
|
-
import { Expose as Expose281, Transform as
|
|
15273
|
+
import { Expose as Expose281, Transform as Transform31, Type as Type196 } from "class-transformer";
|
|
15272
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";
|
|
15273
15275
|
|
|
15274
15276
|
// src/programados/procesos/cubicacion/shared/dto/cabecera-cubicaje-dto.ts
|
|
15275
|
-
import { Expose as Expose279, Transform as
|
|
15277
|
+
import { Expose as Expose279, Transform as Transform29, Type as Type195 } from "class-transformer";
|
|
15276
15278
|
import { IsDate as IsDate62, IsNumber as IsNumber197, IsString as IsString204, Min as Min158, MinLength as MinLength33 } from "class-validator";
|
|
15277
15279
|
var CabeceraCubicajeDTO = class {
|
|
15278
15280
|
codigoCalc = "";
|
|
@@ -15315,13 +15317,13 @@ __decorateClass([
|
|
|
15315
15317
|
Expose279()
|
|
15316
15318
|
], CabeceraCubicajeDTO.prototype, "nombre", 2);
|
|
15317
15319
|
__decorateClass([
|
|
15318
|
-
|
|
15320
|
+
Transform29(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15319
15321
|
IsString204({ message: "debe ser un texto" }),
|
|
15320
15322
|
MinLength33(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15321
15323
|
Expose279()
|
|
15322
15324
|
], CabeceraCubicajeDTO.prototype, "contrato", 2);
|
|
15323
15325
|
__decorateClass([
|
|
15324
|
-
|
|
15326
|
+
Transform29(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15325
15327
|
IsString204({ message: "debe ser un texto" }),
|
|
15326
15328
|
MinLength33(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15327
15329
|
Expose279()
|
|
@@ -15332,7 +15334,7 @@ __decorateClass([
|
|
|
15332
15334
|
Expose279()
|
|
15333
15335
|
], CabeceraCubicajeDTO.prototype, "numoe", 2);
|
|
15334
15336
|
__decorateClass([
|
|
15335
|
-
|
|
15337
|
+
Transform29(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15336
15338
|
IsString204({ message: "debe ser un texto" }),
|
|
15337
15339
|
MinLength33(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15338
15340
|
Expose279()
|
|
@@ -15419,7 +15421,7 @@ __decorateClass([
|
|
|
15419
15421
|
], CabeceraCubicajeDTO.prototype, "CostoTotal", 2);
|
|
15420
15422
|
|
|
15421
15423
|
// src/programados/procesos/cubicacion/shared/dto/detalle-cubicaje-dto.ts
|
|
15422
|
-
import { Expose as Expose280, Transform as
|
|
15424
|
+
import { Expose as Expose280, Transform as Transform30 } from "class-transformer";
|
|
15423
15425
|
import { IsNumber as IsNumber198, IsString as IsString205, MinLength as MinLength34, Min as Min159 } from "class-validator";
|
|
15424
15426
|
var DetalleCubicajeDTO = class {
|
|
15425
15427
|
codigo = "";
|
|
@@ -15480,19 +15482,19 @@ __decorateClass([
|
|
|
15480
15482
|
Expose280()
|
|
15481
15483
|
], DetalleCubicajeDTO.prototype, "plano", 2);
|
|
15482
15484
|
__decorateClass([
|
|
15483
|
-
|
|
15485
|
+
Transform30(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15484
15486
|
IsString205({ message: "debe ser un texto" }),
|
|
15485
15487
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15486
15488
|
Expose280()
|
|
15487
15489
|
], DetalleCubicajeDTO.prototype, "codesp", 2);
|
|
15488
15490
|
__decorateClass([
|
|
15489
|
-
|
|
15491
|
+
Transform30(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15490
15492
|
IsString205({ message: "debe ser un texto" }),
|
|
15491
15493
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15492
15494
|
Expose280()
|
|
15493
15495
|
], DetalleCubicajeDTO.prototype, "codact", 2);
|
|
15494
15496
|
__decorateClass([
|
|
15495
|
-
|
|
15497
|
+
Transform30(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15496
15498
|
IsString205({ message: "debe ser un texto" }),
|
|
15497
15499
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15498
15500
|
Expose280()
|
|
@@ -15503,13 +15505,13 @@ __decorateClass([
|
|
|
15503
15505
|
Expose280()
|
|
15504
15506
|
], DetalleCubicajeDTO.prototype, "tarea", 2);
|
|
15505
15507
|
__decorateClass([
|
|
15506
|
-
|
|
15508
|
+
Transform30(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15507
15509
|
IsString205({ message: "debe ser un texto" }),
|
|
15508
15510
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15509
15511
|
Expose280()
|
|
15510
15512
|
], DetalleCubicajeDTO.prototype, "codmo", 2);
|
|
15511
15513
|
__decorateClass([
|
|
15512
|
-
|
|
15514
|
+
Transform30(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15513
15515
|
IsString205({ message: "debe ser un texto" }),
|
|
15514
15516
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15515
15517
|
Expose280()
|
|
@@ -15597,7 +15599,7 @@ __decorateClass([
|
|
|
15597
15599
|
Expose281()
|
|
15598
15600
|
], CubicacionENTITY.prototype, "Accion", 2);
|
|
15599
15601
|
__decorateClass([
|
|
15600
|
-
|
|
15602
|
+
Transform31(({ value }) => typeof value === "string" ? value.replaceAll(" ", "") : value),
|
|
15601
15603
|
IsDate63({ message: "debe ser una fecha" }),
|
|
15602
15604
|
Type196(() => Date),
|
|
15603
15605
|
Expose281()
|
|
@@ -16422,7 +16424,7 @@ __decorateClass([
|
|
|
16422
16424
|
], VigenciaKeyDTO.prototype, "FechaFin", 2);
|
|
16423
16425
|
|
|
16424
16426
|
// src/programados/procesos/precioContratistaMaterial/shared/dto/material-precio-contratista-dto.ts
|
|
16425
|
-
import { Expose as Expose304, Transform as
|
|
16427
|
+
import { Expose as Expose304, Transform as Transform32, Type as Type212 } from "class-transformer";
|
|
16426
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";
|
|
16427
16429
|
var MaterialPrecioContratistaDTO = class {
|
|
16428
16430
|
ID_Item = 0;
|
|
@@ -16511,14 +16513,14 @@ __decorateClass([
|
|
|
16511
16513
|
Expose304()
|
|
16512
16514
|
], MaterialPrecioContratistaDTO.prototype, "Tipo", 2);
|
|
16513
16515
|
__decorateClass([
|
|
16514
|
-
|
|
16516
|
+
Transform32(({ value }) => Number(value)),
|
|
16515
16517
|
IsDefined81({ message: "El campo Valor es obligatorio" }),
|
|
16516
16518
|
Expose304(),
|
|
16517
16519
|
IsNumber209({}, { message: "debe ser un numero" }),
|
|
16518
16520
|
Min164(0, { message: "el valor m\xEDnimo es 0" })
|
|
16519
16521
|
], MaterialPrecioContratistaDTO.prototype, "Valor", 2);
|
|
16520
16522
|
__decorateClass([
|
|
16521
|
-
|
|
16523
|
+
Transform32(({ value }) => Number(value)),
|
|
16522
16524
|
IsDefined81({ message: "El Prioridad Valor es obligatorio" }),
|
|
16523
16525
|
Expose304(),
|
|
16524
16526
|
IsNumber209({}, { message: "debe ser un numero" }),
|
|
@@ -16531,7 +16533,7 @@ __decorateClass([
|
|
|
16531
16533
|
Expose304()
|
|
16532
16534
|
], MaterialPrecioContratistaDTO.prototype, "CodigoSAP", 2);
|
|
16533
16535
|
__decorateClass([
|
|
16534
|
-
|
|
16536
|
+
Transform32(({ value }) => Number(value)),
|
|
16535
16537
|
IsDefined81({ message: "El Precio Valor es obligatorio" }),
|
|
16536
16538
|
Expose304(),
|
|
16537
16539
|
IsNumber209({}, { message: "debe ser un numero" }),
|
|
@@ -16989,7 +16991,7 @@ import { Expose as Expose311, Type as Type219 } from "class-transformer";
|
|
|
16989
16991
|
import { IsNotEmpty as IsNotEmpty216, IsArray as IsArray118, ValidateNested as ValidateNested201 } from "class-validator";
|
|
16990
16992
|
|
|
16991
16993
|
// src/programados/mantenimientos/mano obra global/shared/dto/mano-obra-baremo-dto.ts
|
|
16992
|
-
import { Expose as Expose309, Transform as
|
|
16994
|
+
import { Expose as Expose309, Transform as Transform33, Type as Type217 } from "class-transformer";
|
|
16993
16995
|
import { IsNumber as IsNumber214, Min as Min169, IsNotEmpty as IsNotEmpty214, ValidateNested as ValidateNested199 } from "class-validator";
|
|
16994
16996
|
var ManoObraBaremoDTO = class {
|
|
16995
16997
|
ID_ManoObraBaremo = 0;
|
|
@@ -17012,21 +17014,21 @@ __decorateClass([
|
|
|
17012
17014
|
ValidateNested199()
|
|
17013
17015
|
], ManoObraBaremoDTO.prototype, "Especialidad", 2);
|
|
17014
17016
|
__decorateClass([
|
|
17015
|
-
|
|
17017
|
+
Transform33(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
17016
17018
|
IsNumber214({}, { message: "debe ser un numero" }),
|
|
17017
17019
|
IsNotEmpty214({ message: "es requerido" }),
|
|
17018
17020
|
Min169(0),
|
|
17019
17021
|
Expose309()
|
|
17020
17022
|
], ManoObraBaremoDTO.prototype, "PuntoBaremo", 2);
|
|
17021
17023
|
__decorateClass([
|
|
17022
|
-
|
|
17024
|
+
Transform33(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
17023
17025
|
IsNumber214({}, { message: "debe ser un numero" }),
|
|
17024
17026
|
IsNotEmpty214({ message: "es requerido" }),
|
|
17025
17027
|
Min169(0),
|
|
17026
17028
|
Expose309()
|
|
17027
17029
|
], ManoObraBaremoDTO.prototype, "PuntoBaremoContratista", 2);
|
|
17028
17030
|
__decorateClass([
|
|
17029
|
-
|
|
17031
|
+
Transform33(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
17030
17032
|
IsNumber214({}, { message: "debe ser un numero" }),
|
|
17031
17033
|
IsNotEmpty214({ message: "es requerido" }),
|
|
17032
17034
|
Min169(0),
|
|
@@ -17079,7 +17081,7 @@ __decorateClass([
|
|
|
17079
17081
|
], DetalleManoObraChileDTO.prototype, "ManoObraBaremo", 2);
|
|
17080
17082
|
|
|
17081
17083
|
// src/programados/mantenimientos/mano obra global/shared/dto/add-mo-pcontrata-mo.ts
|
|
17082
|
-
import { Expose as Expose312, Transform as
|
|
17084
|
+
import { Expose as Expose312, Transform as Transform34 } from "class-transformer";
|
|
17083
17085
|
import { IsBoolean as IsBoolean21, IsDefined as IsDefined85, IsNumber as IsNumber216, IsString as IsString222, Length as Length158 } from "class-validator";
|
|
17084
17086
|
var AddMOPContrataMODTO = class {
|
|
17085
17087
|
CodigoMO = "";
|
|
@@ -17095,7 +17097,7 @@ __decorateClass([
|
|
|
17095
17097
|
], AddMOPContrataMODTO.prototype, "CodigoMO", 2);
|
|
17096
17098
|
__decorateClass([
|
|
17097
17099
|
IsDefined85({ message: "El campo newPrecio es obligatorio" }),
|
|
17098
|
-
|
|
17100
|
+
Transform34(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
17099
17101
|
IsNumber216({}, { message: "debe ser un numero" }),
|
|
17100
17102
|
Expose312()
|
|
17101
17103
|
], AddMOPContrataMODTO.prototype, "NewPrecio", 2);
|
|
@@ -17220,7 +17222,7 @@ __decorateClass([
|
|
|
17220
17222
|
], AreaGomDTO.prototype, "Descripcion", 2);
|
|
17221
17223
|
|
|
17222
17224
|
// src/programados/mantenimientos/centro costos/shared/index.ts
|
|
17223
|
-
import { Expose as Expose315, Type as Type221, Transform as
|
|
17225
|
+
import { Expose as Expose315, Type as Type221, Transform as Transform35 } from "class-transformer";
|
|
17224
17226
|
import { IsDefined as IsDefined87, IsNumber as IsNumber218, IsString as IsString225, Length as Length161, Min as Min172, ValidateNested as ValidateNested203 } from "class-validator";
|
|
17225
17227
|
var CentroCostosENTITY = class {
|
|
17226
17228
|
ID_CentroCostos = 0;
|
|
@@ -17258,7 +17260,7 @@ __decorateClass([
|
|
|
17258
17260
|
ValidateNested203()
|
|
17259
17261
|
], CentroCostosENTITY.prototype, "Delegacion", 2);
|
|
17260
17262
|
__decorateClass([
|
|
17261
|
-
|
|
17263
|
+
Transform35(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
17262
17264
|
IsDefined87({ message: "El campo Codigo es obligatorio" }),
|
|
17263
17265
|
IsString225({ message: "debe ser un texto" }),
|
|
17264
17266
|
Length161(1, 75, { message: "debe tener entre 1 y 75 caracteres" }),
|
|
@@ -17394,7 +17396,7 @@ __decorateClass([
|
|
|
17394
17396
|
], RM_ZonasActividadENTITY.prototype, "Bitacora", 2);
|
|
17395
17397
|
|
|
17396
17398
|
// src/programados/mantenimientos/rm-material/shared/index.ts
|
|
17397
|
-
import { Expose as Expose319, Transform as
|
|
17399
|
+
import { Expose as Expose319, Transform as Transform36, Type as Type223 } from "class-transformer";
|
|
17398
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";
|
|
17399
17401
|
var RM_MaterialENTITY = class {
|
|
17400
17402
|
ID_RM_Material = 0;
|
|
@@ -17450,7 +17452,7 @@ __decorateClass([
|
|
|
17450
17452
|
Expose319()
|
|
17451
17453
|
], RM_MaterialENTITY.prototype, "Proveedor", 2);
|
|
17452
17454
|
__decorateClass([
|
|
17453
|
-
|
|
17455
|
+
Transform36(({ value }) => Number(value)),
|
|
17454
17456
|
IsDefined88({ message: "El campo Precio es obligatorio" }),
|
|
17455
17457
|
IsNumber221({}, { message: "debe ser un numero" }),
|
|
17456
17458
|
Expose319(),
|
|
@@ -17463,7 +17465,7 @@ __decorateClass([
|
|
|
17463
17465
|
Expose319()
|
|
17464
17466
|
], RM_MaterialENTITY.prototype, "Tipo_Moneda", 2);
|
|
17465
17467
|
__decorateClass([
|
|
17466
|
-
|
|
17468
|
+
Transform36(({ value }) => Number(value)),
|
|
17467
17469
|
IsDefined88({ message: "El campo Valor_Moneda es obligatorio" }),
|
|
17468
17470
|
IsNumber221({}, { message: "debe ser un numero" }),
|
|
17469
17471
|
Expose319(),
|
|
@@ -17897,7 +17899,7 @@ __decorateClass([
|
|
|
17897
17899
|
], RM_ComunaENTITY.prototype, "Estado", 2);
|
|
17898
17900
|
|
|
17899
17901
|
// src/programados/mantenimientos/rm mano obra/shared/index.ts
|
|
17900
|
-
import { Expose as Expose327, Transform as
|
|
17902
|
+
import { Expose as Expose327, Transform as Transform37, Type as Type231 } from "class-transformer";
|
|
17901
17903
|
import { IsDefined as IsDefined89, IsNumber as IsNumber229, IsString as IsString237, Length as Length173, Min as Min182, ValidateNested as ValidateNested211 } from "class-validator";
|
|
17902
17904
|
var RM_ManoObraENTITY = class {
|
|
17903
17905
|
ID_RM_ManoObra = 0;
|
|
@@ -17942,7 +17944,7 @@ __decorateClass([
|
|
|
17942
17944
|
Expose327()
|
|
17943
17945
|
], RM_ManoObraENTITY.prototype, "Especialidad", 2);
|
|
17944
17946
|
__decorateClass([
|
|
17945
|
-
|
|
17947
|
+
Transform37(({ value }) => Number(value)),
|
|
17946
17948
|
IsDefined89({ message: "El campo Puntos_Baremos es obligatorio" }),
|
|
17947
17949
|
IsNumber229({}, { message: "debe ser un numero" }),
|
|
17948
17950
|
Expose327(),
|
|
@@ -17974,7 +17976,7 @@ __decorateClass([
|
|
|
17974
17976
|
], RM_ManoObraENTITY.prototype, "Estado", 2);
|
|
17975
17977
|
|
|
17976
17978
|
// src/programados/mantenimientos/rm paquetizado/shared/index.ts
|
|
17977
|
-
import { Expose as Expose328, Transform as
|
|
17979
|
+
import { Expose as Expose328, Transform as Transform38, Type as Type232 } from "class-transformer";
|
|
17978
17980
|
import { IsDefined as IsDefined90, IsNumber as IsNumber230, IsString as IsString238, Length as Length174, Min as Min183, ValidateNested as ValidateNested212 } from "class-validator";
|
|
17979
17981
|
var RM_PaquetizadoENTITY = class {
|
|
17980
17982
|
ID_RM_Paquetizado = 0;
|
|
@@ -18008,35 +18010,35 @@ __decorateClass([
|
|
|
18008
18010
|
Expose328()
|
|
18009
18011
|
], RM_PaquetizadoENTITY.prototype, "LLAVE", 2);
|
|
18010
18012
|
__decorateClass([
|
|
18011
|
-
|
|
18013
|
+
Transform38(({ value }) => Number(value)),
|
|
18012
18014
|
IsDefined90({ message: "El campo Total_PB es obligatorio" }),
|
|
18013
18015
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18014
18016
|
Expose328(),
|
|
18015
18017
|
Min183(0)
|
|
18016
18018
|
], RM_PaquetizadoENTITY.prototype, "Total_PB", 2);
|
|
18017
18019
|
__decorateClass([
|
|
18018
|
-
|
|
18020
|
+
Transform38(({ value }) => Number(value)),
|
|
18019
18021
|
IsDefined90({ message: "El campo Total_Ctta es obligatorio" }),
|
|
18020
18022
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18021
18023
|
Expose328(),
|
|
18022
18024
|
Min183(0)
|
|
18023
18025
|
], RM_PaquetizadoENTITY.prototype, "Total_Ctta", 2);
|
|
18024
18026
|
__decorateClass([
|
|
18025
|
-
|
|
18027
|
+
Transform38(({ value }) => Number(value)),
|
|
18026
18028
|
IsDefined90({ message: "El campo zona_10 es obligatorio" }),
|
|
18027
18029
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18028
18030
|
Expose328(),
|
|
18029
18031
|
Min183(0)
|
|
18030
18032
|
], RM_PaquetizadoENTITY.prototype, "zona_10", 2);
|
|
18031
18033
|
__decorateClass([
|
|
18032
|
-
|
|
18034
|
+
Transform38(({ value }) => Number(value)),
|
|
18033
18035
|
IsDefined90({ message: "El campo zona_14 es obligatorio" }),
|
|
18034
18036
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18035
18037
|
Expose328(),
|
|
18036
18038
|
Min183(0)
|
|
18037
18039
|
], RM_PaquetizadoENTITY.prototype, "zona_14", 2);
|
|
18038
18040
|
__decorateClass([
|
|
18039
|
-
|
|
18041
|
+
Transform38(({ value }) => Number(value)),
|
|
18040
18042
|
IsDefined90({ message: "El campo Total_MAT es obligatorio" }),
|
|
18041
18043
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18042
18044
|
Expose328(),
|
|
@@ -18062,7 +18064,7 @@ __decorateClass([
|
|
|
18062
18064
|
], RM_PaquetizadoENTITY.prototype, "Estado", 2);
|
|
18063
18065
|
|
|
18064
18066
|
// src/programados/mantenimientos/rm actividad/shared/index.ts
|
|
18065
|
-
import { Expose as Expose329, Transform as
|
|
18067
|
+
import { Expose as Expose329, Transform as Transform39, Type as Type233 } from "class-transformer";
|
|
18066
18068
|
import { IsDefined as IsDefined91, IsNumber as IsNumber231, IsString as IsString239, Length as Length175, Min as Min184, ValidateNested as ValidateNested213 } from "class-validator";
|
|
18067
18069
|
var RM_ActividadENTITY = class {
|
|
18068
18070
|
ID_RM_Actividad = 0;
|
|
@@ -18092,7 +18094,7 @@ __decorateClass([
|
|
|
18092
18094
|
Expose329()
|
|
18093
18095
|
], RM_ActividadENTITY.prototype, "Descripcion", 2);
|
|
18094
18096
|
__decorateClass([
|
|
18095
|
-
|
|
18097
|
+
Transform39(({ value }) => Number(value)),
|
|
18096
18098
|
IsDefined91({ message: "El campo Precio_EECC es obligatorio" }),
|
|
18097
18099
|
IsNumber231({}, { message: "debe ser un numero" }),
|
|
18098
18100
|
Expose329(),
|
|
@@ -19749,7 +19751,7 @@ import { Expose as Expose369, Type as Type252 } from "class-transformer";
|
|
|
19749
19751
|
import { IsArray as IsArray129, IsDefined as IsDefined112, IsNumber as IsNumber251, IsString as IsString277, ValidateNested as ValidateNested229 } from "class-validator";
|
|
19750
19752
|
|
|
19751
19753
|
// src/programados/Reportes/ReporteProduccion/Chile/BaremoProcess/dto/baremo_process_fechas-dto.ts
|
|
19752
|
-
import { Expose as Expose358, Transform as
|
|
19754
|
+
import { Expose as Expose358, Transform as Transform41 } from "class-transformer";
|
|
19753
19755
|
import { IsDate as IsDate78 } from "class-validator";
|
|
19754
19756
|
var BaremoProcessFechasDTO = class {
|
|
19755
19757
|
Registro = "";
|
|
@@ -19759,22 +19761,22 @@ var BaremoProcessFechasDTO = class {
|
|
|
19759
19761
|
};
|
|
19760
19762
|
__decorateClass([
|
|
19761
19763
|
Expose358(),
|
|
19762
|
-
|
|
19764
|
+
Transform41(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
19763
19765
|
IsDate78()
|
|
19764
19766
|
], BaremoProcessFechasDTO.prototype, "Registro", 2);
|
|
19765
19767
|
__decorateClass([
|
|
19766
19768
|
Expose358(),
|
|
19767
|
-
|
|
19769
|
+
Transform41(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
19768
19770
|
IsDate78()
|
|
19769
19771
|
], BaremoProcessFechasDTO.prototype, "Preliquidacion", 2);
|
|
19770
19772
|
__decorateClass([
|
|
19771
19773
|
Expose358(),
|
|
19772
|
-
|
|
19774
|
+
Transform41(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
19773
19775
|
IsDate78()
|
|
19774
19776
|
], BaremoProcessFechasDTO.prototype, "Liquidacion", 2);
|
|
19775
19777
|
__decorateClass([
|
|
19776
19778
|
Expose358(),
|
|
19777
|
-
|
|
19779
|
+
Transform41(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
19778
19780
|
IsDate78()
|
|
19779
19781
|
], BaremoProcessFechasDTO.prototype, "Produccion", 2);
|
|
19780
19782
|
|
|
@@ -19875,7 +19877,7 @@ __decorateClass([
|
|
|
19875
19877
|
], BaremoProcessUnidadMedidaDTO.prototype, "Nombre", 2);
|
|
19876
19878
|
|
|
19877
19879
|
// src/programados/Reportes/ReporteProduccion/Chile/BaremoProcess/dto/baremo_process_periodo-dto.ts
|
|
19878
|
-
import { Expose as Expose363, Transform as
|
|
19880
|
+
import { Expose as Expose363, Transform as Transform42 } from "class-transformer";
|
|
19879
19881
|
import { IsDefined as IsDefined106, IsNumber as IsNumber248, IsString as IsString271 } from "class-validator";
|
|
19880
19882
|
var BaremoProcessPeriodoDTO = class {
|
|
19881
19883
|
Anio = 0;
|
|
@@ -19886,19 +19888,19 @@ __decorateClass([
|
|
|
19886
19888
|
Expose363(),
|
|
19887
19889
|
IsDefined106({ message: "El campo Anio es obligatorio." }),
|
|
19888
19890
|
IsNumber248(),
|
|
19889
|
-
|
|
19891
|
+
Transform42(convertTypeNumber)
|
|
19890
19892
|
], BaremoProcessPeriodoDTO.prototype, "Anio", 2);
|
|
19891
19893
|
__decorateClass([
|
|
19892
19894
|
Expose363(),
|
|
19893
19895
|
IsDefined106({ message: "El campo Mes es obligatorio." }),
|
|
19894
19896
|
IsNumber248(),
|
|
19895
|
-
|
|
19897
|
+
Transform42(convertTypeNumber)
|
|
19896
19898
|
], BaremoProcessPeriodoDTO.prototype, "Mes", 2);
|
|
19897
19899
|
__decorateClass([
|
|
19898
19900
|
Expose363(),
|
|
19899
19901
|
IsDefined106({ message: "El campo Codigo es obligatorio." }),
|
|
19900
19902
|
IsString271(),
|
|
19901
|
-
|
|
19903
|
+
Transform42(convertTypeNumber)
|
|
19902
19904
|
], BaremoProcessPeriodoDTO.prototype, "Codigo", 2);
|
|
19903
19905
|
|
|
19904
19906
|
// src/programados/Reportes/ReporteProduccion/Chile/BaremoProcess/dto/baremo_process_materiales_utilizados-dto.ts
|
|
@@ -20533,7 +20535,7 @@ __decorateClass([
|
|
|
20533
20535
|
], ResumenProcessPeriodoDTO.prototype, "Codigo", 2);
|
|
20534
20536
|
|
|
20535
20537
|
// src/programados/Reportes/ReporteProduccion/Chile/ResumenProcess/dto/resumen_process_fecha_facturacion_generada-dto.ts
|
|
20536
|
-
import { Expose as Expose374, Transform as
|
|
20538
|
+
import { Expose as Expose374, Transform as Transform44 } from "class-transformer";
|
|
20537
20539
|
import { IsDate as IsDate81, IsDefined as IsDefined117, IsNumber as IsNumber253, IsString as IsString282 } from "class-validator";
|
|
20538
20540
|
var ResumenProcessFechaFacturageneradaDTO = class {
|
|
20539
20541
|
fecha = /* @__PURE__ */ new Date(0);
|
|
@@ -20544,7 +20546,7 @@ var ResumenProcessFechaFacturageneradaDTO = class {
|
|
|
20544
20546
|
};
|
|
20545
20547
|
__decorateClass([
|
|
20546
20548
|
Expose374(),
|
|
20547
|
-
|
|
20549
|
+
Transform44(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
20548
20550
|
IsDate81()
|
|
20549
20551
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "fecha", 2);
|
|
20550
20552
|
__decorateClass([
|
|
@@ -20554,19 +20556,19 @@ __decorateClass([
|
|
|
20554
20556
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "Usuario", 2);
|
|
20555
20557
|
__decorateClass([
|
|
20556
20558
|
Expose374(),
|
|
20557
|
-
|
|
20559
|
+
Transform44(convertTypeNumber),
|
|
20558
20560
|
IsDefined117({ message: "El campo Anio es obligatorio." }),
|
|
20559
20561
|
IsNumber253()
|
|
20560
20562
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "Anio", 2);
|
|
20561
20563
|
__decorateClass([
|
|
20562
20564
|
Expose374(),
|
|
20563
|
-
|
|
20565
|
+
Transform44(convertTypeNumber),
|
|
20564
20566
|
IsDefined117({ message: "El campo Mes es obligatorio." }),
|
|
20565
20567
|
IsNumber253()
|
|
20566
20568
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "Mes", 2);
|
|
20567
20569
|
__decorateClass([
|
|
20568
20570
|
Expose374(),
|
|
20569
|
-
|
|
20571
|
+
Transform44(convertTypeNumber),
|
|
20570
20572
|
IsDefined117({ message: "El campo Dia es obligatorio." }),
|
|
20571
20573
|
IsNumber253()
|
|
20572
20574
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "Dia", 2);
|
|
@@ -21154,7 +21156,7 @@ import { Expose as Expose394, Type as Type265 } from "class-transformer";
|
|
|
21154
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";
|
|
21155
21157
|
|
|
21156
21158
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/cambios-estados-pagos-produccion-dto.ts
|
|
21157
|
-
import { Expose as Expose386, Transform as
|
|
21159
|
+
import { Expose as Expose386, Transform as Transform46, Type as Type262 } from "class-transformer";
|
|
21158
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";
|
|
21159
21161
|
var CambiosEstadosPagosProduccionDTO = class {
|
|
21160
21162
|
NroDocumento = "";
|
|
@@ -21175,7 +21177,7 @@ __decorateClass([
|
|
|
21175
21177
|
ValidateNested236()
|
|
21176
21178
|
], CambiosEstadosPagosProduccionDTO.prototype, "UsuarioCambio", 2);
|
|
21177
21179
|
__decorateClass([
|
|
21178
|
-
|
|
21180
|
+
Transform46(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21179
21181
|
IsDate86({ message: "debe ser una fecha" }),
|
|
21180
21182
|
IsNotEmpty255({ message: "es requerido" }),
|
|
21181
21183
|
Expose386()
|
|
@@ -21274,7 +21276,7 @@ __decorateClass([
|
|
|
21274
21276
|
], ManoObraDTO3.prototype, "UnidadMedida", 2);
|
|
21275
21277
|
|
|
21276
21278
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/periodo-dto.ts
|
|
21277
|
-
import { Expose as Expose390, Transform as
|
|
21279
|
+
import { Expose as Expose390, Transform as Transform47 } from "class-transformer";
|
|
21278
21280
|
import { IsDate as IsDate87, IsNotEmpty as IsNotEmpty259, IsNumber as IsNumber259, IsString as IsString297, Length as Length202 } from "class-validator";
|
|
21279
21281
|
var PeriodoDTO5 = class {
|
|
21280
21282
|
FechaInicio = /* @__PURE__ */ new Date(0);
|
|
@@ -21285,19 +21287,19 @@ var PeriodoDTO5 = class {
|
|
|
21285
21287
|
Codigo = "";
|
|
21286
21288
|
};
|
|
21287
21289
|
__decorateClass([
|
|
21288
|
-
|
|
21290
|
+
Transform47(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21289
21291
|
IsDate87({ message: "debe ser de tipo fecha" }),
|
|
21290
21292
|
IsNotEmpty259({ message: "es requerido" }),
|
|
21291
21293
|
Expose390()
|
|
21292
21294
|
], PeriodoDTO5.prototype, "FechaInicio", 2);
|
|
21293
21295
|
__decorateClass([
|
|
21294
|
-
|
|
21296
|
+
Transform47(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21295
21297
|
IsDate87({ message: "debe ser de tipo fecha" }),
|
|
21296
21298
|
IsNotEmpty259({ message: "es requerido" }),
|
|
21297
21299
|
Expose390()
|
|
21298
21300
|
], PeriodoDTO5.prototype, "FechaFin", 2);
|
|
21299
21301
|
__decorateClass([
|
|
21300
|
-
|
|
21302
|
+
Transform47(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21301
21303
|
IsDate87({ message: "debe ser de tipo fecha" }),
|
|
21302
21304
|
IsNotEmpty259({ message: "es requerido" }),
|
|
21303
21305
|
Expose390()
|
|
@@ -21320,7 +21322,7 @@ __decorateClass([
|
|
|
21320
21322
|
], PeriodoDTO5.prototype, "Codigo", 2);
|
|
21321
21323
|
|
|
21322
21324
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/ultima_estado_interno-dto.ts
|
|
21323
|
-
import { Expose as Expose391, Transform as
|
|
21325
|
+
import { Expose as Expose391, Transform as Transform48, Type as Type263 } from "class-transformer";
|
|
21324
21326
|
import { IsDate as IsDate88, IsNotEmpty as IsNotEmpty260, IsNumber as IsNumber260, IsString as IsString298, Length as Length203, ValidateNested as ValidateNested237 } from "class-validator";
|
|
21325
21327
|
var Ultimo_Estado_InternoDTO = class {
|
|
21326
21328
|
ID_EstadoInterno = 0;
|
|
@@ -21347,7 +21349,7 @@ __decorateClass([
|
|
|
21347
21349
|
Expose391()
|
|
21348
21350
|
], Ultimo_Estado_InternoDTO.prototype, "ID_EstadoInternoPadre", 2);
|
|
21349
21351
|
__decorateClass([
|
|
21350
|
-
|
|
21352
|
+
Transform48(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21351
21353
|
IsDate88({ message: "debe ser una fecha" }),
|
|
21352
21354
|
IsNotEmpty260({ message: "es requerido" }),
|
|
21353
21355
|
Expose391()
|
|
@@ -21407,7 +21409,7 @@ __decorateClass([
|
|
|
21407
21409
|
], Ultimo_Estado_InternoDTO.prototype, "UsuarioEdicion", 2);
|
|
21408
21410
|
|
|
21409
21411
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/ultima_fase-dto.ts
|
|
21410
|
-
import { Expose as Expose392, Transform as
|
|
21412
|
+
import { Expose as Expose392, Transform as Transform49, Type as Type264 } from "class-transformer";
|
|
21411
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";
|
|
21412
21414
|
var Ultima_FaseDTO = class {
|
|
21413
21415
|
ID_Fase = 0;
|
|
@@ -21454,7 +21456,7 @@ __decorateClass([
|
|
|
21454
21456
|
ValidateNested238()
|
|
21455
21457
|
], Ultima_FaseDTO.prototype, "UsuarioCambio", 2);
|
|
21456
21458
|
__decorateClass([
|
|
21457
|
-
|
|
21459
|
+
Transform49(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21458
21460
|
IsDate89({ message: "debe ser una fecha" }),
|
|
21459
21461
|
IsNotEmpty261({ message: "es requerido" }),
|
|
21460
21462
|
Expose392()
|
|
@@ -21482,7 +21484,7 @@ __decorateClass([
|
|
|
21482
21484
|
ValidateNested238()
|
|
21483
21485
|
], Ultima_FaseDTO.prototype, "UsuarioDocumento", 2);
|
|
21484
21486
|
__decorateClass([
|
|
21485
|
-
|
|
21487
|
+
Transform49(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21486
21488
|
IsDate89({ message: "debe ser una fecha" }),
|
|
21487
21489
|
IsNotEmpty261({ message: "es requerido" }),
|
|
21488
21490
|
Expose392()
|
|
@@ -23214,7 +23216,7 @@ __decorateClass([
|
|
|
23214
23216
|
], StockPersonalEquiposENTITY.prototype, "Equipos", 2);
|
|
23215
23217
|
|
|
23216
23218
|
// src/logistica/atencion ordenes liquidadas/shared/index.ts
|
|
23217
|
-
import { Expose as Expose416, Transform as
|
|
23219
|
+
import { Expose as Expose416, Transform as Transform50 } from "class-transformer";
|
|
23218
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";
|
|
23219
23221
|
var AtencionOrdenesLiquidadasENTITY = class {
|
|
23220
23222
|
ID_AtencionOrdenesLiquidadas = 0;
|
|
@@ -23255,7 +23257,7 @@ __decorateClass([
|
|
|
23255
23257
|
], AtencionOrdenesLiquidadasENTITY.prototype, "LoteSAP", 2);
|
|
23256
23258
|
__decorateClass([
|
|
23257
23259
|
Expose416(),
|
|
23258
|
-
|
|
23260
|
+
Transform50(({ value }) => value ? String(value) : value),
|
|
23259
23261
|
IsString323({ message: "debe ser un texto" }),
|
|
23260
23262
|
Length220(0, 30, { message: "debe tener entre 0 y 30 caracteres" })
|
|
23261
23263
|
], AtencionOrdenesLiquidadasENTITY.prototype, "NumeroSerie", 2);
|
|
@@ -23302,7 +23304,7 @@ __decorateClass([
|
|
|
23302
23304
|
], AtencionOrdenesLiquidadasENTITY.prototype, "Fuente", 2);
|
|
23303
23305
|
|
|
23304
23306
|
// src/logistica/salida almacen/shared/index.ts
|
|
23305
|
-
import { Expose as Expose420, Transform as
|
|
23307
|
+
import { Expose as Expose420, Transform as Transform51, Type as Type280 } from "class-transformer";
|
|
23306
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";
|
|
23307
23309
|
|
|
23308
23310
|
// src/logistica/salida almacen/shared/dto/datos-transportista-dto.ts
|
|
@@ -23604,7 +23606,7 @@ __decorateClass([
|
|
|
23604
23606
|
], SalidaAlmacenENTITY.prototype, "ZonaTrabajo", 2);
|
|
23605
23607
|
__decorateClass([
|
|
23606
23608
|
IsString327({ message: "debe ser un texto" }),
|
|
23607
|
-
|
|
23609
|
+
Transform51(trimAndUpperCaseString),
|
|
23608
23610
|
Length224(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
23609
23611
|
Expose420()
|
|
23610
23612
|
], SalidaAlmacenENTITY.prototype, "Observaciones", 2);
|
|
@@ -23616,13 +23618,13 @@ __decorateClass([
|
|
|
23616
23618
|
], SalidaAlmacenENTITY.prototype, "MovimientoAlmacen", 2);
|
|
23617
23619
|
__decorateClass([
|
|
23618
23620
|
IsString327({ message: "debe ser un texto" }),
|
|
23619
|
-
|
|
23621
|
+
Transform51(trimAndUpperCaseString),
|
|
23620
23622
|
Length224(0, 75, { message: "debe tener entre 0 y 75 caracteres" }),
|
|
23621
23623
|
Expose420()
|
|
23622
23624
|
], SalidaAlmacenENTITY.prototype, "NroGuia", 2);
|
|
23623
23625
|
__decorateClass([
|
|
23624
23626
|
IsString327({ message: "debe ser un texto" }),
|
|
23625
|
-
|
|
23627
|
+
Transform51(trimAndUpperCaseString),
|
|
23626
23628
|
Length224(0, 200, { message: "debe tener entre 0 y 200 caracteres" }),
|
|
23627
23629
|
Expose420()
|
|
23628
23630
|
], SalidaAlmacenENTITY.prototype, "OrdenCompra", 2);
|
|
@@ -24117,7 +24119,7 @@ __decorateClass([
|
|
|
24117
24119
|
|
|
24118
24120
|
// src/logistica/movimiento almacen/shared/index.ts
|
|
24119
24121
|
import { IsNotEmpty as IsNotEmpty289, IsNumber as IsNumber281, IsString as IsString330, Length as Length227, Min as Min213, ValidateNested as ValidateNested257 } from "class-validator";
|
|
24120
|
-
import { Expose as Expose424, Transform as
|
|
24122
|
+
import { Expose as Expose424, Transform as Transform52, Type as Type284 } from "class-transformer";
|
|
24121
24123
|
var MovimientoAlmacenENTITY = class {
|
|
24122
24124
|
ID_MovimientoAlmacen = 0;
|
|
24123
24125
|
Codigo = "";
|
|
@@ -24137,13 +24139,13 @@ __decorateClass([
|
|
|
24137
24139
|
__decorateClass([
|
|
24138
24140
|
IsString330({ message: "debe ser un texto" }),
|
|
24139
24141
|
Length227(0, 10, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
24140
|
-
|
|
24142
|
+
Transform52(({ value }) => typeof value === "string" ? value.toUpperCase() : value),
|
|
24141
24143
|
Expose424()
|
|
24142
24144
|
], MovimientoAlmacenENTITY.prototype, "Codigo", 2);
|
|
24143
24145
|
__decorateClass([
|
|
24144
24146
|
IsString330({ message: "debe ser un texto" }),
|
|
24145
24147
|
Length227(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
24146
|
-
|
|
24148
|
+
Transform52(({ value }) => typeof value === "string" ? value.toUpperCase() : value),
|
|
24147
24149
|
Expose424()
|
|
24148
24150
|
], MovimientoAlmacenENTITY.prototype, "Descripcion", 2);
|
|
24149
24151
|
__decorateClass([
|
|
@@ -24221,7 +24223,7 @@ __decorateClass([
|
|
|
24221
24223
|
// src/logistica/devolucion almacen/shared/index.ts
|
|
24222
24224
|
import {
|
|
24223
24225
|
Expose as Expose427,
|
|
24224
|
-
Transform as
|
|
24226
|
+
Transform as Transform53,
|
|
24225
24227
|
Type as Type287
|
|
24226
24228
|
} from "class-transformer";
|
|
24227
24229
|
import {
|
|
@@ -24345,7 +24347,7 @@ __decorateClass([
|
|
|
24345
24347
|
Expose427()
|
|
24346
24348
|
], DevolucionAlmacenENTITY.prototype, "NroGuia", 2);
|
|
24347
24349
|
__decorateClass([
|
|
24348
|
-
|
|
24350
|
+
Transform53(({ value }) => typeof value === "string" && value.length > 100 ? value.slice(0, 100) : value),
|
|
24349
24351
|
IsString331({ message: "debe ser un texto" }),
|
|
24350
24352
|
Length228(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
24351
24353
|
Expose427()
|
|
@@ -24412,7 +24414,7 @@ __decorateClass([
|
|
|
24412
24414
|
], DevolucionAlmacenENTITY.prototype, "Estado", 2);
|
|
24413
24415
|
|
|
24414
24416
|
// src/logistica/items/shared/index.ts
|
|
24415
|
-
import { Expose as Expose433, Transform as
|
|
24417
|
+
import { Expose as Expose433, Transform as Transform54, Type as Type291 } from "class-transformer";
|
|
24416
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";
|
|
24417
24419
|
|
|
24418
24420
|
// src/logistica/items/shared/dto/cliente-dto.ts
|
|
@@ -24742,14 +24744,14 @@ __decorateClass([
|
|
|
24742
24744
|
], ItemENTITY.prototype, "Tipo", 2);
|
|
24743
24745
|
__decorateClass([
|
|
24744
24746
|
Expose433(),
|
|
24745
|
-
|
|
24747
|
+
Transform54(({ value }) => Number(value)),
|
|
24746
24748
|
IsNumber286({}, { message: "debe ser un numero" }),
|
|
24747
24749
|
IsNotEmpty297({ message: "es requerido" }),
|
|
24748
24750
|
Min218(0, { message: "el valor m\xEDnimo es 0" })
|
|
24749
24751
|
], ItemENTITY.prototype, "Valor", 2);
|
|
24750
24752
|
__decorateClass([
|
|
24751
24753
|
Expose433(),
|
|
24752
|
-
|
|
24754
|
+
Transform54(({ value }) => Number(value)),
|
|
24753
24755
|
IsNumber286({}, { message: "debe ser un numero" }),
|
|
24754
24756
|
IsNotEmpty297({ message: "es requerido" }),
|
|
24755
24757
|
Min218(0, { message: "el valor m\xEDnimo es 0" })
|
|
@@ -25122,7 +25124,7 @@ __decorateClass([
|
|
|
25122
25124
|
], StockAlmacenEquiposENTITY.prototype, "Equipos", 2);
|
|
25123
25125
|
|
|
25124
25126
|
// src/logistica/transaccion folios/shared/index.ts
|
|
25125
|
-
import { Transform as
|
|
25127
|
+
import { Transform as Transform55, Expose as Expose440, Type as Type295 } from "class-transformer";
|
|
25126
25128
|
|
|
25127
25129
|
// src/logistica/transaccion folios/shared/dto/transacciones-dto.ts
|
|
25128
25130
|
import { Expose as Expose439 } from "class-transformer";
|
|
@@ -25204,21 +25206,21 @@ __decorateClass([
|
|
|
25204
25206
|
Expose440()
|
|
25205
25207
|
], TransaccionFoliosENTITY.prototype, "Vigencia_Final", 2);
|
|
25206
25208
|
__decorateClass([
|
|
25207
|
-
|
|
25209
|
+
Transform55(({ value }) => Number(value)),
|
|
25208
25210
|
IsDefined130({ message: "El campo FolioInicial es obligatorio" }),
|
|
25209
25211
|
Expose440(),
|
|
25210
25212
|
IsNumber292({}, { message: "debe ser un numero" }),
|
|
25211
25213
|
Min224(1, { message: "el valor m\xEDnimo es 1" })
|
|
25212
25214
|
], TransaccionFoliosENTITY.prototype, "FolioInicial", 2);
|
|
25213
25215
|
__decorateClass([
|
|
25214
|
-
|
|
25216
|
+
Transform55(({ value }) => Number(value)),
|
|
25215
25217
|
IsDefined130({ message: "El campo FolioFinal es obligatorio" }),
|
|
25216
25218
|
Expose440(),
|
|
25217
25219
|
IsNumber292({}, { message: "debe ser un numero" }),
|
|
25218
25220
|
Min224(1, { message: "el valor m\xEDnimo es 1" })
|
|
25219
25221
|
], TransaccionFoliosENTITY.prototype, "FolioFinal", 2);
|
|
25220
25222
|
__decorateClass([
|
|
25221
|
-
|
|
25223
|
+
Transform55(({ value }) => Number(value)),
|
|
25222
25224
|
IsDefined130({ message: "El campo NumeroInterno es obligatorio" }),
|
|
25223
25225
|
Expose440(),
|
|
25224
25226
|
IsNumber292({}, { message: "debe ser un numero" }),
|
|
@@ -25548,7 +25550,7 @@ __decorateClass([
|
|
|
25548
25550
|
], BodegaENTITY.prototype, "Bitacora", 2);
|
|
25549
25551
|
|
|
25550
25552
|
// src/logistica/autoinventario/shared/index.ts
|
|
25551
|
-
import { Expose as Expose449, Transform as
|
|
25553
|
+
import { Expose as Expose449, Transform as Transform56, Type as Type301 } from "class-transformer";
|
|
25552
25554
|
|
|
25553
25555
|
// src/logistica/autoinventario/shared/dto/equipos-AI-dto.ts
|
|
25554
25556
|
import { Expose as Expose448 } from "class-transformer";
|
|
@@ -25653,7 +25655,7 @@ __decorateClass([
|
|
|
25653
25655
|
Expose449()
|
|
25654
25656
|
], AutoInventarioENTITY.prototype, "Observacion", 2);
|
|
25655
25657
|
__decorateClass([
|
|
25656
|
-
|
|
25658
|
+
Transform56(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
25657
25659
|
IsDate107({ message: "debe ser una fecha" }),
|
|
25658
25660
|
IsNotEmpty311({ message: "es requerido" }),
|
|
25659
25661
|
Expose449()
|
|
@@ -25873,7 +25875,7 @@ __decorateClass([
|
|
|
25873
25875
|
], TipoStockENTITY.prototype, "Delegacion", 2);
|
|
25874
25876
|
|
|
25875
25877
|
// src/logistica/almacen extra/shared/index.ts
|
|
25876
|
-
import { Expose as Expose454, Transform as
|
|
25878
|
+
import { Expose as Expose454, Transform as Transform57, Type as Type306 } from "class-transformer";
|
|
25877
25879
|
import { IsNotEmpty as IsNotEmpty316, IsNumber as IsNumber303, IsString as IsString355, Length as Length250, Min as Min235, ValidateNested as ValidateNested279 } from "class-validator";
|
|
25878
25880
|
var AlmacenExtraENTITY = class {
|
|
25879
25881
|
ID_AlmacenExtra = 0;
|
|
@@ -25946,13 +25948,13 @@ __decorateClass([
|
|
|
25946
25948
|
Expose454()
|
|
25947
25949
|
], AlmacenExtraENTITY.prototype, "Country", 2);
|
|
25948
25950
|
__decorateClass([
|
|
25949
|
-
|
|
25951
|
+
Transform57(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
25950
25952
|
IsNumber303({}, { message: "debe ser una coordenada" }),
|
|
25951
25953
|
IsNotEmpty316({ message: "es requerido" }),
|
|
25952
25954
|
Expose454()
|
|
25953
25955
|
], AlmacenExtraENTITY.prototype, "Latitude", 2);
|
|
25954
25956
|
__decorateClass([
|
|
25955
|
-
|
|
25957
|
+
Transform57(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
25956
25958
|
IsNumber303({}, { message: "debe ser una coordenada" }),
|
|
25957
25959
|
IsNotEmpty316({ message: "es requerido" }),
|
|
25958
25960
|
Expose454()
|
|
@@ -26256,7 +26258,7 @@ __decorateClass([
|
|
|
26256
26258
|
], RecursosPersonalDTO.prototype, "InicioActividad", 2);
|
|
26257
26259
|
|
|
26258
26260
|
// src/configuracion/personal/shared/index.ts
|
|
26259
|
-
import { Expose as Expose463, Transform as
|
|
26261
|
+
import { Expose as Expose463, Transform as Transform58, Type as Type312 } from "class-transformer";
|
|
26260
26262
|
import {
|
|
26261
26263
|
ArrayNotEmpty as ArrayNotEmpty5,
|
|
26262
26264
|
IsArray as IsArray164,
|
|
@@ -26359,7 +26361,7 @@ __decorateClass([
|
|
|
26359
26361
|
ValidateNested284()
|
|
26360
26362
|
], PersonalENTITY.prototype, "TipoDocumento", 2);
|
|
26361
26363
|
__decorateClass([
|
|
26362
|
-
|
|
26364
|
+
Transform58(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
26363
26365
|
IsString363({ message: "debe ser un texto" }),
|
|
26364
26366
|
IsNotEmpty322({ message: "es requerido" }),
|
|
26365
26367
|
Length255(1, 41, { message: "debe tener entre 1 y 40 caracteres" }),
|
|
@@ -27439,7 +27441,7 @@ __decorateClass([
|
|
|
27439
27441
|
], ContratistasDTO.prototype, "Estado", 2);
|
|
27440
27442
|
|
|
27441
27443
|
// src/configuracion/usuarios/shared/index.ts
|
|
27442
|
-
import { Expose as Expose486, Transform as
|
|
27444
|
+
import { Expose as Expose486, Transform as Transform59, Type as Type328 } from "class-transformer";
|
|
27443
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";
|
|
27444
27446
|
var UsuarioENTITY = class {
|
|
27445
27447
|
IdUsuario = 0;
|
|
@@ -27517,7 +27519,7 @@ __decorateClass([
|
|
|
27517
27519
|
ValidateNested294()
|
|
27518
27520
|
], UsuarioENTITY.prototype, "TipoDocumento", 2);
|
|
27519
27521
|
__decorateClass([
|
|
27520
|
-
|
|
27522
|
+
Transform59(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
27521
27523
|
IsString385({ message: "debe ser un texto" }),
|
|
27522
27524
|
IsNotEmpty342({ message: "es requerido" }),
|
|
27523
27525
|
Length276(1, 30, { message: "debe tener entre 1 y 30 caracteres" }),
|
|
@@ -27667,7 +27669,7 @@ __decorateClass([
|
|
|
27667
27669
|
], UsuarioENTITY.prototype, "Contratistas", 2);
|
|
27668
27670
|
|
|
27669
27671
|
// src/configuracion/tipo opcion sistema/shared/index.ts
|
|
27670
|
-
import { Expose as Expose487, Transform as
|
|
27672
|
+
import { Expose as Expose487, Transform as Transform60, Type as Type329 } from "class-transformer";
|
|
27671
27673
|
import { IsDefined as IsDefined135, IsNumber as IsNumber324, IsString as IsString386, Length as Length277, Min as Min253, ValidateNested as ValidateNested295 } from "class-validator";
|
|
27672
27674
|
var TipoOpcionSistemaENTITY = class {
|
|
27673
27675
|
IdTipoOpcion = 0;
|
|
@@ -27696,7 +27698,7 @@ __decorateClass([
|
|
|
27696
27698
|
], TipoOpcionSistemaENTITY.prototype, "Descripcion", 2);
|
|
27697
27699
|
__decorateClass([
|
|
27698
27700
|
IsDefined135({ message: "El campo Padre es obligatorio" }),
|
|
27699
|
-
|
|
27701
|
+
Transform60(({ value }) => Number(value)),
|
|
27700
27702
|
Expose487(),
|
|
27701
27703
|
IsNumber324({}, { message: "debe ser un numero" }),
|
|
27702
27704
|
Min253(0, { message: "el valor m\xEDnimo es 0" })
|
|
@@ -27795,7 +27797,7 @@ __decorateClass([
|
|
|
27795
27797
|
import { IsDate as IsDate117, IsEnum as IsEnum12, IsNotEmpty as IsNotEmpty346, IsString as IsString390, Length as Length281, ValidateNested as ValidateNested297 } from "class-validator";
|
|
27796
27798
|
|
|
27797
27799
|
// src/configuracion/notificaciones/shared/dto/data-adicional-dto.ts
|
|
27798
|
-
import { Expose as Expose490, Transform as
|
|
27800
|
+
import { Expose as Expose490, Transform as Transform61 } from "class-transformer";
|
|
27799
27801
|
import { IsDate as IsDate116, IsEnum as IsEnum11, IsNotEmpty as IsNotEmpty345, IsString as IsString389, Length as Length280 } from "class-validator";
|
|
27800
27802
|
var OperacionDataAdicional = /* @__PURE__ */ ((OperacionDataAdicional2) => {
|
|
27801
27803
|
OperacionDataAdicional2["CREAR"] = "crear";
|
|
@@ -27826,7 +27828,7 @@ __decorateClass([
|
|
|
27826
27828
|
Expose490()
|
|
27827
27829
|
], DataAdicionalDTO.prototype, "operacion", 2);
|
|
27828
27830
|
__decorateClass([
|
|
27829
|
-
|
|
27831
|
+
Transform61(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
27830
27832
|
IsDate116({ message: "debe ser una fecha" }),
|
|
27831
27833
|
IsNotEmpty345({ message: "es requerido" }),
|
|
27832
27834
|
Expose490()
|
|
@@ -27838,7 +27840,7 @@ __decorateClass([
|
|
|
27838
27840
|
], DataAdicionalDTO.prototype, "localName", 2);
|
|
27839
27841
|
|
|
27840
27842
|
// src/configuracion/notificaciones/shared/index.ts
|
|
27841
|
-
import { Expose as Expose491, Transform as
|
|
27843
|
+
import { Expose as Expose491, Transform as Transform62, Type as Type331 } from "class-transformer";
|
|
27842
27844
|
var TipoNotificacion = /* @__PURE__ */ ((TipoNotificacion2) => {
|
|
27843
27845
|
TipoNotificacion2["INFO"] = "info";
|
|
27844
27846
|
TipoNotificacion2["ERROR"] = "error";
|
|
@@ -27881,7 +27883,7 @@ __decorateClass([
|
|
|
27881
27883
|
Expose491()
|
|
27882
27884
|
], NotificacionesENTITY.prototype, "titulo", 2);
|
|
27883
27885
|
__decorateClass([
|
|
27884
|
-
|
|
27886
|
+
Transform62(({ value }) => typeof value === "string" ? value.substring(0, 400) : value),
|
|
27885
27887
|
IsString390({ message: "debe ser un texto" }),
|
|
27886
27888
|
Length281(1, 400, { message: "debe tener entre 1 y 400 caracteres" }),
|
|
27887
27889
|
Expose491()
|
|
@@ -27903,13 +27905,13 @@ __decorateClass([
|
|
|
27903
27905
|
ValidateNested297()
|
|
27904
27906
|
], NotificacionesENTITY.prototype, "dataAdicional", 2);
|
|
27905
27907
|
__decorateClass([
|
|
27906
|
-
|
|
27908
|
+
Transform62(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
27907
27909
|
IsDate117({ message: "debe ser una fecha" }),
|
|
27908
27910
|
IsNotEmpty346({ message: "es requerido" }),
|
|
27909
27911
|
Expose491()
|
|
27910
27912
|
], NotificacionesENTITY.prototype, "fechaCreacion", 2);
|
|
27911
27913
|
__decorateClass([
|
|
27912
|
-
|
|
27914
|
+
Transform62(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
27913
27915
|
IsDate117({ message: "debe ser una fecha" }),
|
|
27914
27916
|
IsNotEmpty346({ message: "es requerido" }),
|
|
27915
27917
|
Expose491()
|
|
@@ -28273,7 +28275,7 @@ __decorateClass([
|
|
|
28273
28275
|
], EmpresaValDTO.prototype, "TipoEmpresa", 2);
|
|
28274
28276
|
|
|
28275
28277
|
// src/operativa/procesos/valorizadas_toa/shared/dto/inventario-val-dto.ts
|
|
28276
|
-
import { Expose as Expose500, Transform as
|
|
28278
|
+
import { Expose as Expose500, Transform as Transform63 } from "class-transformer";
|
|
28277
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";
|
|
28278
28280
|
var InventarioValDTO = class {
|
|
28279
28281
|
Descripcion = "";
|
|
@@ -28312,7 +28314,7 @@ __decorateClass([
|
|
|
28312
28314
|
], InventarioValDTO.prototype, "CodigoSAP", 2);
|
|
28313
28315
|
__decorateClass([
|
|
28314
28316
|
IsString399({ message: "debe ser un texto" }),
|
|
28315
|
-
|
|
28317
|
+
Transform63(({ value }) => value ? String(value) : value),
|
|
28316
28318
|
Length288(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
28317
28319
|
Expose500(),
|
|
28318
28320
|
IsOptional20()
|
|
@@ -28754,7 +28756,7 @@ __decorateClass([
|
|
|
28754
28756
|
], ProductosServiciosLiqDTO.prototype, "Cantidad", 2);
|
|
28755
28757
|
|
|
28756
28758
|
// src/operativa/procesos/liquidadas_toa/shared/dto/inventario-liq-dto.ts
|
|
28757
|
-
import { Expose as Expose505, Transform as
|
|
28759
|
+
import { Expose as Expose505, Transform as Transform64 } from "class-transformer";
|
|
28758
28760
|
import { IsEnum as IsEnum15, IsNotEmpty as IsNotEmpty357, IsNumber as IsNumber335, IsString as IsString404, Length as Length293, Min as Min264 } from "class-validator";
|
|
28759
28761
|
var InventarioLiqDTO = class {
|
|
28760
28762
|
Descripcion = "";
|
|
@@ -28791,7 +28793,7 @@ __decorateClass([
|
|
|
28791
28793
|
], InventarioLiqDTO.prototype, "CodigoSAP", 2);
|
|
28792
28794
|
__decorateClass([
|
|
28793
28795
|
IsString404({ message: "debe ser un texto" }),
|
|
28794
|
-
|
|
28796
|
+
Transform64(({ value }) => value ? String(value) : value),
|
|
28795
28797
|
Length293(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
28796
28798
|
Expose505()
|
|
28797
28799
|
], InventarioLiqDTO.prototype, "NumeroSerie", 2);
|
|
@@ -30237,7 +30239,7 @@ var ISheetsJsonChileTdC = class {
|
|
|
30237
30239
|
};
|
|
30238
30240
|
|
|
30239
30241
|
// src/operativa/procesos/toa_claro/shared/index.ts
|
|
30240
|
-
import { Expose as Expose534, Transform as
|
|
30242
|
+
import { Expose as Expose534, Transform as Transform66, Type as Type349 } from "class-transformer";
|
|
30241
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";
|
|
30242
30244
|
|
|
30243
30245
|
// src/operativa/procesos/toa_claro/shared/dto/direccion toa dto.ts
|
|
@@ -30577,7 +30579,7 @@ __decorateClass([
|
|
|
30577
30579
|
Expose534()
|
|
30578
30580
|
], ToaClaroENTITY.prototype, "ID_ToaClaro", 2);
|
|
30579
30581
|
__decorateClass([
|
|
30580
|
-
|
|
30582
|
+
Transform66(({ value }) => "TOA_CLARO" /* TOA_CLARO */),
|
|
30581
30583
|
IsEnum17(SistemaRecurso, { message: "debe ser un valor v\xE1lido de enum SistemaRecurso" }),
|
|
30582
30584
|
Expose534()
|
|
30583
30585
|
], ToaClaroENTITY.prototype, "Sistema", 2);
|
|
@@ -30914,7 +30916,7 @@ import { IsArray as IsArray178, IsDefined as IsDefined144, IsString as IsString4
|
|
|
30914
30916
|
import { Expose as Expose537, Type as Type350 } from "class-transformer";
|
|
30915
30917
|
|
|
30916
30918
|
// src/operativa/procesos/toa_claro/data_scraper/dto/items-orden-scraper-claro-vtr-dto.ts
|
|
30917
|
-
import { Expose as Expose535, Transform as
|
|
30919
|
+
import { Expose as Expose535, Transform as Transform67 } from "class-transformer";
|
|
30918
30920
|
import { IsDefined as IsDefined142, IsNumber as IsNumber349, IsString as IsString431 } from "class-validator";
|
|
30919
30921
|
var ItemsOrdenScraperClaroVTRDTO = class {
|
|
30920
30922
|
id = "";
|
|
@@ -30958,7 +30960,7 @@ __decorateClass([
|
|
|
30958
30960
|
IsNumber349({}, { message: "El campo cantidad debe ser un n\xFAmero" })
|
|
30959
30961
|
], ItemsOrdenScraperClaroVTRDTO.prototype, "cantidad", 2);
|
|
30960
30962
|
__decorateClass([
|
|
30961
|
-
|
|
30963
|
+
Transform67(({ value }) => typeof value === "number" ? value.toString() : value),
|
|
30962
30964
|
Expose535(),
|
|
30963
30965
|
IsDefined142({ message: "El campo ServiceId es requerido" }),
|
|
30964
30966
|
IsString431({ message: "El campo ServiceId debe ser una cadena de texto" })
|
|
@@ -30969,7 +30971,7 @@ __decorateClass([
|
|
|
30969
30971
|
IsString431({ message: "El campo estado debe ser una cadena de texto" })
|
|
30970
30972
|
], ItemsOrdenScraperClaroVTRDTO.prototype, "estado", 2);
|
|
30971
30973
|
__decorateClass([
|
|
30972
|
-
|
|
30974
|
+
Transform67(({ value }) => typeof value === "number" ? value.toString() : value),
|
|
30973
30975
|
Expose535(),
|
|
30974
30976
|
IsDefined142({ message: "El campo serial es requerido" }),
|
|
30975
30977
|
IsString431({ message: "El campo serial debe ser una cadena de texto" })
|
|
@@ -31474,12 +31476,13 @@ import {
|
|
|
31474
31476
|
ValidateNested as ValidateNested314,
|
|
31475
31477
|
IsArray as IsArray181,
|
|
31476
31478
|
IsObject as IsObject7,
|
|
31477
|
-
IsDate as IsDate128
|
|
31479
|
+
IsDate as IsDate128,
|
|
31480
|
+
IsUUID as IsUUID2
|
|
31478
31481
|
} from "class-validator";
|
|
31479
31482
|
import "reflect-metadata";
|
|
31480
31483
|
|
|
31481
31484
|
// src/operativa/procesos/toa_movistar/shared/dto/index.ts
|
|
31482
|
-
import { Expose as Expose538 } from "class-transformer";
|
|
31485
|
+
import { Expose as Expose538, Transform as Transform68 } from "class-transformer";
|
|
31483
31486
|
import {
|
|
31484
31487
|
IsDefined as IsDefined145,
|
|
31485
31488
|
IsString as IsString434,
|
|
@@ -31609,21 +31612,25 @@ var MaterialestoaDTO = class {
|
|
|
31609
31612
|
};
|
|
31610
31613
|
__decorateClass([
|
|
31611
31614
|
Expose538({ name: "code" }),
|
|
31615
|
+
Transform68(({ obj }) => obj["code"] ?? obj.codigo),
|
|
31612
31616
|
IsDefined145({ message: "El campo code es obligatorio." }),
|
|
31613
31617
|
IsString434()
|
|
31614
31618
|
], MaterialestoaDTO.prototype, "codigo", 2);
|
|
31615
31619
|
__decorateClass([
|
|
31616
31620
|
Expose538({ name: "description" }),
|
|
31621
|
+
Transform68(({ obj }) => obj["description"] ?? obj.descripcion),
|
|
31617
31622
|
IsDefined145({ message: "El campo description es obligatorio." }),
|
|
31618
31623
|
IsString434()
|
|
31619
31624
|
], MaterialestoaDTO.prototype, "descripcion", 2);
|
|
31620
31625
|
__decorateClass([
|
|
31621
31626
|
Expose538({ name: "lot" }),
|
|
31627
|
+
Transform68(({ obj }) => obj["lot"] ?? obj.lote),
|
|
31622
31628
|
IsDefined145({ message: "El campo lot es obligatorio." }),
|
|
31623
31629
|
IsString434()
|
|
31624
31630
|
], MaterialestoaDTO.prototype, "lote", 2);
|
|
31625
31631
|
__decorateClass([
|
|
31626
31632
|
Expose538({ name: "quantity" }),
|
|
31633
|
+
Transform68(({ obj }) => obj["quantity"] ?? obj.cantidad),
|
|
31627
31634
|
IsDefined145({ message: "El campo quantity es obligatorio." }),
|
|
31628
31635
|
IsNumber351()
|
|
31629
31636
|
], MaterialestoaDTO.prototype, "cantidad", 2);
|
|
@@ -32313,6 +32320,7 @@ var Peru9112TOAENTITY = class {
|
|
|
32313
32320
|
};
|
|
32314
32321
|
__decorateClass([
|
|
32315
32322
|
IsDefined148({ message: "El campo _id es obligatorio." }),
|
|
32323
|
+
IsUUID2("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
32316
32324
|
Expose541({ name: "_id" })
|
|
32317
32325
|
], Peru9112TOAENTITY.prototype, "_id", 2);
|
|
32318
32326
|
__decorateClass([
|
|
@@ -32596,10 +32604,10 @@ __decorateClass([
|
|
|
32596
32604
|
], Peru9112TOAENTITY.prototype, "EECC", 2);
|
|
32597
32605
|
|
|
32598
32606
|
// src/operativa/procesos/onnet_fibra/shared/index.ts
|
|
32599
|
-
import { Expose as Expose550, Transform as
|
|
32607
|
+
import { Expose as Expose550, Transform as Transform73, Type as Type356 } from "class-transformer";
|
|
32600
32608
|
|
|
32601
32609
|
// src/operativa/procesos/onnet_fibra/shared/dto/bitacora_de_ordenes.ts
|
|
32602
|
-
import { Expose as Expose542, Transform as
|
|
32610
|
+
import { Expose as Expose542, Transform as Transform69 } from "class-transformer";
|
|
32603
32611
|
import { IsDate as IsDate129, IsDefined as IsDefined149, IsNumber as IsNumber355, IsOptional as IsOptional23, IsString as IsString438 } from "class-validator";
|
|
32604
32612
|
|
|
32605
32613
|
// src/operativa/procesos/onnet_fibra/utils/format_date_onnet_fibra.ts
|
|
@@ -32667,14 +32675,14 @@ __decorateClass([
|
|
|
32667
32675
|
], BitacoraDeOrdenesDTO.prototype, "estado", 2);
|
|
32668
32676
|
__decorateClass([
|
|
32669
32677
|
IsOptional23(),
|
|
32670
|
-
|
|
32678
|
+
Transform69(({ value }) => value ? String(value) : ""),
|
|
32671
32679
|
IsString438({ message: "El campo lt debe ser una cadena de texto" }),
|
|
32672
32680
|
Expose542()
|
|
32673
32681
|
], BitacoraDeOrdenesDTO.prototype, "lt", 2);
|
|
32674
32682
|
__decorateClass([
|
|
32675
32683
|
IsOptional23(),
|
|
32676
32684
|
IsNumber355({}, { message: "El campo id_orden_mantenimiento_anexo debe ser un n\xFAmero" }),
|
|
32677
|
-
|
|
32685
|
+
Transform69(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
|
|
32678
32686
|
Expose542()
|
|
32679
32687
|
], BitacoraDeOrdenesDTO.prototype, "id_orden_mantenimiento_anexo", 2);
|
|
32680
32688
|
__decorateClass([
|
|
@@ -32685,7 +32693,7 @@ __decorateClass([
|
|
|
32685
32693
|
__decorateClass([
|
|
32686
32694
|
IsOptional23(),
|
|
32687
32695
|
IsNumber355({}, { message: "El campo cantidad_clientes_afectados debe ser un n\xFAmero" }),
|
|
32688
|
-
|
|
32696
|
+
Transform69(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
|
|
32689
32697
|
Expose542()
|
|
32690
32698
|
], BitacoraDeOrdenesDTO.prototype, "cantidad_clientes_afectados", 2);
|
|
32691
32699
|
__decorateClass([
|
|
@@ -32721,13 +32729,13 @@ __decorateClass([
|
|
|
32721
32729
|
__decorateClass([
|
|
32722
32730
|
IsOptional23(),
|
|
32723
32731
|
IsString438({ message: "El campo tecnologia debe ser una cadena de texto" }),
|
|
32724
|
-
|
|
32732
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32725
32733
|
Expose542()
|
|
32726
32734
|
], BitacoraDeOrdenesDTO.prototype, "tecnologia", 2);
|
|
32727
32735
|
__decorateClass([
|
|
32728
32736
|
IsOptional23(),
|
|
32729
32737
|
IsString438({ message: "El campo olt debe ser una cadena de texto" }),
|
|
32730
|
-
|
|
32738
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32731
32739
|
Expose542()
|
|
32732
32740
|
], BitacoraDeOrdenesDTO.prototype, "olt", 2);
|
|
32733
32741
|
__decorateClass([
|
|
@@ -32782,7 +32790,7 @@ __decorateClass([
|
|
|
32782
32790
|
], BitacoraDeOrdenesDTO.prototype, "tipo_orden", 2);
|
|
32783
32791
|
__decorateClass([
|
|
32784
32792
|
IsOptional23(),
|
|
32785
|
-
|
|
32793
|
+
Transform69(({ value }) => formatDateOnnetFibra(value)),
|
|
32786
32794
|
IsDate129({ message: "El campo fecha_instalacion debe ser FECHA" }),
|
|
32787
32795
|
Expose542()
|
|
32788
32796
|
], BitacoraDeOrdenesDTO.prototype, "fecha_instalacion", 2);
|
|
@@ -32804,7 +32812,7 @@ __decorateClass([
|
|
|
32804
32812
|
__decorateClass([
|
|
32805
32813
|
IsOptional23(),
|
|
32806
32814
|
IsString438({ message: "El campo puerto_pon debe ser una cadena de texto" }),
|
|
32807
|
-
|
|
32815
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32808
32816
|
Expose542()
|
|
32809
32817
|
], BitacoraDeOrdenesDTO.prototype, "puerto_pon", 2);
|
|
32810
32818
|
__decorateClass([
|
|
@@ -32814,20 +32822,20 @@ __decorateClass([
|
|
|
32814
32822
|
], BitacoraDeOrdenesDTO.prototype, "nombre_especialidad", 2);
|
|
32815
32823
|
__decorateClass([
|
|
32816
32824
|
IsOptional23({ message: "El campo cliente es opcional" }),
|
|
32817
|
-
|
|
32825
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32818
32826
|
IsString438({ message: "El campo cliente debe ser una cadena de texto" }),
|
|
32819
32827
|
Expose542()
|
|
32820
32828
|
], BitacoraDeOrdenesDTO.prototype, "cliente", 2);
|
|
32821
32829
|
__decorateClass([
|
|
32822
32830
|
IsOptional23({ message: "El campo comuna es opcional" }),
|
|
32823
|
-
|
|
32831
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32824
32832
|
IsString438({ message: "El campo comuna debe ser una cadena de texto" }),
|
|
32825
32833
|
Expose542()
|
|
32826
32834
|
], BitacoraDeOrdenesDTO.prototype, "comuna", 2);
|
|
32827
32835
|
__decorateClass([
|
|
32828
32836
|
IsOptional23({ message: "El campo pep es opcional" }),
|
|
32829
32837
|
IsString438({ message: "El campo pep debe ser una cadena de texto" }),
|
|
32830
|
-
|
|
32838
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32831
32839
|
Expose542()
|
|
32832
32840
|
], BitacoraDeOrdenesDTO.prototype, "pep", 2);
|
|
32833
32841
|
__decorateClass([
|
|
@@ -32857,7 +32865,7 @@ __decorateClass([
|
|
|
32857
32865
|
__decorateClass([
|
|
32858
32866
|
IsOptional23(),
|
|
32859
32867
|
IsNumber355({}, { message: "El campo capacidad_cable debe ser una cadena de texto" }),
|
|
32860
|
-
|
|
32868
|
+
Transform69(({ value }) => isNaN(value) ? 0 : Number(value)),
|
|
32861
32869
|
Expose542()
|
|
32862
32870
|
], BitacoraDeOrdenesDTO.prototype, "capacidad_cable", 2);
|
|
32863
32871
|
__decorateClass([
|
|
@@ -32872,7 +32880,7 @@ __decorateClass([
|
|
|
32872
32880
|
], BitacoraDeOrdenesDTO.prototype, "mensaje_contingencia", 2);
|
|
32873
32881
|
|
|
32874
32882
|
// src/operativa/procesos/onnet_fibra/shared/dto/estado_de_pago.ts
|
|
32875
|
-
import { Expose as Expose543, Transform as
|
|
32883
|
+
import { Expose as Expose543, Transform as Transform70 } from "class-transformer";
|
|
32876
32884
|
import { IsDate as IsDate130, IsDefined as IsDefined150, IsNumber as IsNumber356, IsString as IsString439 } from "class-validator";
|
|
32877
32885
|
var EstadoDePagoDTO = class {
|
|
32878
32886
|
capacidad_cable = "";
|
|
@@ -32900,7 +32908,7 @@ __decorateClass([
|
|
|
32900
32908
|
Expose543()
|
|
32901
32909
|
], EstadoDePagoDTO.prototype, "estado", 2);
|
|
32902
32910
|
__decorateClass([
|
|
32903
|
-
|
|
32911
|
+
Transform70(({ value }) => formatDateOnnetFibra(value)),
|
|
32904
32912
|
IsDate130({ message: "El campo fecha_crea debe ser una cadena de texto" }),
|
|
32905
32913
|
Expose543()
|
|
32906
32914
|
], EstadoDePagoDTO.prototype, "fecha_crea", 2);
|
|
@@ -32915,7 +32923,7 @@ __decorateClass([
|
|
|
32915
32923
|
Expose543()
|
|
32916
32924
|
], EstadoDePagoDTO.prototype, "id_orden_mantenimiento", 2);
|
|
32917
32925
|
__decorateClass([
|
|
32918
|
-
|
|
32926
|
+
Transform70(({ value }) => formatDateOnnetFibra(value)),
|
|
32919
32927
|
IsDate130({ message: "El campo fecha_crea debe ser una cadena de texto" }),
|
|
32920
32928
|
Expose543()
|
|
32921
32929
|
], EstadoDePagoDTO.prototype, "fecha_validador", 2);
|
|
@@ -33020,7 +33028,7 @@ import { Expose as Expose548, Type as Type355 } from "class-transformer";
|
|
|
33020
33028
|
import { IsArray as IsArray182, IsDefined as IsDefined155, IsString as IsString444, ValidateNested as ValidateNested316 } from "class-validator";
|
|
33021
33029
|
|
|
33022
33030
|
// src/operativa/procesos/onnet_fibra/shared/dto/detail-maintenance-order/detalle_orden_real_dto.ts
|
|
33023
|
-
import { Expose as Expose545, Transform as
|
|
33031
|
+
import { Expose as Expose545, Transform as Transform71, Type as Type354 } from "class-transformer";
|
|
33024
33032
|
import { IsDefined as IsDefined152, IsNumber as IsNumber358, IsOptional as IsOptional24, IsString as IsString441 } from "class-validator";
|
|
33025
33033
|
var DetalleOrdenRealDTO = class {
|
|
33026
33034
|
descripcion = "";
|
|
@@ -33038,25 +33046,25 @@ var DetalleOrdenRealDTO = class {
|
|
|
33038
33046
|
__decorateClass([
|
|
33039
33047
|
IsDefined152({ message: "El campo descripcion es requerido" }),
|
|
33040
33048
|
IsString441({ message: "El campo descripcion debe ser una cadena de texto" }),
|
|
33041
|
-
|
|
33049
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33042
33050
|
Expose545()
|
|
33043
33051
|
], DetalleOrdenRealDTO.prototype, "descripcion", 2);
|
|
33044
33052
|
__decorateClass([
|
|
33045
33053
|
IsDefined152({ message: "El campo tipo es requerido" }),
|
|
33046
33054
|
IsString441({ message: "El campo tipo debe ser una cadena de texto" }),
|
|
33047
|
-
|
|
33055
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33048
33056
|
Expose545()
|
|
33049
33057
|
], DetalleOrdenRealDTO.prototype, "tipo", 2);
|
|
33050
33058
|
__decorateClass([
|
|
33051
33059
|
IsDefined152({ message: "El campo tipo_material es requerido" }),
|
|
33052
33060
|
IsString441({ message: "El campo tipo_material debe ser una cadena de texto" }),
|
|
33053
|
-
|
|
33061
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33054
33062
|
Expose545()
|
|
33055
33063
|
], DetalleOrdenRealDTO.prototype, "tipo_material", 2);
|
|
33056
33064
|
__decorateClass([
|
|
33057
33065
|
IsDefined152({ message: "El campo codigo es requerido" }),
|
|
33058
33066
|
IsString441({ message: "El campo codigo debe ser una cadena de texto" }),
|
|
33059
|
-
|
|
33067
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33060
33068
|
Expose545()
|
|
33061
33069
|
], DetalleOrdenRealDTO.prototype, "codigo", 2);
|
|
33062
33070
|
__decorateClass([
|
|
@@ -33070,12 +33078,12 @@ __decorateClass([
|
|
|
33070
33078
|
__decorateClass([
|
|
33071
33079
|
IsOptional24({ message: "El campo tecnico es requerido" }),
|
|
33072
33080
|
IsString441({ message: "El campo tecnico debe ser una cadena de texto" }),
|
|
33073
|
-
|
|
33081
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33074
33082
|
Expose545()
|
|
33075
33083
|
], DetalleOrdenRealDTO.prototype, "tecnico", 2);
|
|
33076
33084
|
__decorateClass([
|
|
33077
33085
|
IsString441({ message: "El campo unidad debe ser una cadena de texto" }),
|
|
33078
|
-
|
|
33086
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33079
33087
|
Expose545()
|
|
33080
33088
|
], DetalleOrdenRealDTO.prototype, "unidad", 2);
|
|
33081
33089
|
__decorateClass([
|
|
@@ -33085,18 +33093,18 @@ __decorateClass([
|
|
|
33085
33093
|
__decorateClass([
|
|
33086
33094
|
IsOptional24({ message: "El campo contrato es opcional" }),
|
|
33087
33095
|
IsString441({ message: "El campo contrato debe ser una cadena de texto" }),
|
|
33088
|
-
|
|
33096
|
+
Transform71(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33089
33097
|
Expose545()
|
|
33090
33098
|
], DetalleOrdenRealDTO.prototype, "contrato", 2);
|
|
33091
33099
|
__decorateClass([
|
|
33092
33100
|
Type354(() => CodigoNombreDTO),
|
|
33093
33101
|
IsOptional24(),
|
|
33094
|
-
|
|
33102
|
+
Transform71(({ value }) => value ?? new CodigoNombreDTO()),
|
|
33095
33103
|
Expose545()
|
|
33096
33104
|
], DetalleOrdenRealDTO.prototype, "especialidad", 2);
|
|
33097
33105
|
|
|
33098
33106
|
// src/operativa/procesos/onnet_fibra/shared/dto/detail-maintenance-order/orden_detail_maintenance.ts
|
|
33099
|
-
import { Expose as Expose546, Transform as
|
|
33107
|
+
import { Expose as Expose546, Transform as Transform72 } from "class-transformer";
|
|
33100
33108
|
import { IsDate as IsDate131, IsDefined as IsDefined153, IsNumber as IsNumber359, IsString as IsString442 } from "class-validator";
|
|
33101
33109
|
var OrdenDetailMaintenanceDTO = class {
|
|
33102
33110
|
tipo = "";
|
|
@@ -33147,7 +33155,7 @@ __decorateClass([
|
|
|
33147
33155
|
Expose546()
|
|
33148
33156
|
], OrdenDetailMaintenanceDTO.prototype, "estado", 2);
|
|
33149
33157
|
__decorateClass([
|
|
33150
|
-
|
|
33158
|
+
Transform72(({ value }) => formatDateOnnetFibra(value)),
|
|
33151
33159
|
IsDate131({ message: "El campo fecha_crea debe ser una cadena de texto" }),
|
|
33152
33160
|
Expose546()
|
|
33153
33161
|
], OrdenDetailMaintenanceDTO.prototype, "fecha_crea", 2);
|
|
@@ -33502,12 +33510,12 @@ __decorateClass([
|
|
|
33502
33510
|
Expose550()
|
|
33503
33511
|
], OnnetFibraENTITY.prototype, "LlaveRegla", 2);
|
|
33504
33512
|
__decorateClass([
|
|
33505
|
-
|
|
33513
|
+
Transform73(({ value }) => value === void 0 || value === null ? 0 : value),
|
|
33506
33514
|
IsNumber362({}, { message: "El campo MO debe ser numero" }),
|
|
33507
33515
|
Expose550()
|
|
33508
33516
|
], OnnetFibraENTITY.prototype, "MO", 2);
|
|
33509
33517
|
__decorateClass([
|
|
33510
|
-
|
|
33518
|
+
Transform73(({ value }) => value === void 0 || value === null ? 0 : value),
|
|
33511
33519
|
IsNumber362({}, { message: "El campo PB debe ser numero" }),
|
|
33512
33520
|
Expose550()
|
|
33513
33521
|
], OnnetFibraENTITY.prototype, "PB", 2);
|
|
@@ -33546,7 +33554,7 @@ import { IsDefined as IsDefined159, IsNumber as IsNumber364 } from "class-valida
|
|
|
33546
33554
|
|
|
33547
33555
|
// src/operativa/procesos/order stock/shared/index.ts
|
|
33548
33556
|
import { Expose as Expose551, Type as Type357 } from "class-transformer";
|
|
33549
|
-
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";
|
|
33550
33558
|
var OrderStockENTITY = class {
|
|
33551
33559
|
_id;
|
|
33552
33560
|
id_recurso;
|
|
@@ -33561,7 +33569,7 @@ var OrderStockENTITY = class {
|
|
|
33561
33569
|
};
|
|
33562
33570
|
__decorateClass([
|
|
33563
33571
|
IsDefined158({ message: "El campo _id es obligatorio." }),
|
|
33564
|
-
|
|
33572
|
+
IsUUID3("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
33565
33573
|
Expose551({ name: "_id" })
|
|
33566
33574
|
], OrderStockENTITY.prototype, "_id", 2);
|
|
33567
33575
|
__decorateClass([
|
|
@@ -33630,7 +33638,7 @@ import {
|
|
|
33630
33638
|
IsString as IsString448,
|
|
33631
33639
|
IsDefined as IsDefined160,
|
|
33632
33640
|
MinLength as MinLength46,
|
|
33633
|
-
IsUUID as
|
|
33641
|
+
IsUUID as IsUUID4,
|
|
33634
33642
|
IsDate as IsDate132
|
|
33635
33643
|
} from "class-validator";
|
|
33636
33644
|
var RequestNumberTTLENTITY = class {
|
|
@@ -33640,7 +33648,7 @@ var RequestNumberTTLENTITY = class {
|
|
|
33640
33648
|
};
|
|
33641
33649
|
__decorateClass([
|
|
33642
33650
|
IsDefined160({ message: "El campo _id es obligatorio." }),
|
|
33643
|
-
|
|
33651
|
+
IsUUID4("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
33644
33652
|
Expose553({ name: "_id" })
|
|
33645
33653
|
], RequestNumberTTLENTITY.prototype, "_id", 2);
|
|
33646
33654
|
__decorateClass([
|
|
@@ -33657,7 +33665,7 @@ __decorateClass([
|
|
|
33657
33665
|
], RequestNumberTTLENTITY.prototype, "createdAt", 2);
|
|
33658
33666
|
|
|
33659
33667
|
// src/operativa/procesos/win_order/shared/index.ts
|
|
33660
|
-
import { Expose as Expose557, Transform as
|
|
33668
|
+
import { Expose as Expose557, Transform as Transform74, Type as Type362 } from "class-transformer";
|
|
33661
33669
|
import {
|
|
33662
33670
|
IsDefined as IsDefined164,
|
|
33663
33671
|
IsString as IsString452,
|
|
@@ -33665,7 +33673,8 @@ import {
|
|
|
33665
33673
|
IsArray as IsArray186,
|
|
33666
33674
|
IsDate as IsDate136,
|
|
33667
33675
|
IsEnum as IsEnum22,
|
|
33668
|
-
IsNumber as IsNumber368
|
|
33676
|
+
IsNumber as IsNumber368,
|
|
33677
|
+
IsUUID as IsUUID5
|
|
33669
33678
|
} from "class-validator";
|
|
33670
33679
|
import "reflect-metadata";
|
|
33671
33680
|
|
|
@@ -34206,6 +34215,7 @@ var Peru9112WinENTITY = class {
|
|
|
34206
34215
|
};
|
|
34207
34216
|
__decorateClass([
|
|
34208
34217
|
IsDefined164({ message: "El campo _id es obligatorio." }),
|
|
34218
|
+
IsUUID5("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34209
34219
|
Expose557({ name: "_id" })
|
|
34210
34220
|
], Peru9112WinENTITY.prototype, "_id", 2);
|
|
34211
34221
|
__decorateClass([
|
|
@@ -34281,7 +34291,7 @@ __decorateClass([
|
|
|
34281
34291
|
], Peru9112WinENTITY.prototype, "estado", 2);
|
|
34282
34292
|
__decorateClass([
|
|
34283
34293
|
Expose557({ name: "Estado Interno" }),
|
|
34284
|
-
|
|
34294
|
+
Transform74(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
34285
34295
|
IsDefined164({ message: "El campo estado interno es obligatorio." }),
|
|
34286
34296
|
IsEnum22(StateInternalOrder, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrder).join(", ")}.` })
|
|
34287
34297
|
], Peru9112WinENTITY.prototype, "estado_interno", 2);
|
|
@@ -34363,7 +34373,7 @@ __decorateClass([
|
|
|
34363
34373
|
|
|
34364
34374
|
// src/operativa/procesos/WIN order stock/shared/index.ts
|
|
34365
34375
|
import { Expose as Expose558, Type as Type363 } from "class-transformer";
|
|
34366
|
-
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";
|
|
34367
34377
|
var WINOrderStockENTITY = class {
|
|
34368
34378
|
_id;
|
|
34369
34379
|
id_recurso;
|
|
@@ -34377,7 +34387,7 @@ var WINOrderStockENTITY = class {
|
|
|
34377
34387
|
};
|
|
34378
34388
|
__decorateClass([
|
|
34379
34389
|
IsDefined165({ message: "El campo _id es obligatorio." }),
|
|
34380
|
-
|
|
34390
|
+
IsUUID6("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34381
34391
|
Expose558({ name: "_id" })
|
|
34382
34392
|
], WINOrderStockENTITY.prototype, "_id", 2);
|
|
34383
34393
|
__decorateClass([
|
|
@@ -34426,7 +34436,7 @@ __decorateClass([
|
|
|
34426
34436
|
], WINOrderStockENTITY.prototype, "state_replacement", 2);
|
|
34427
34437
|
|
|
34428
34438
|
// src/operativa/procesos/fibramas_order/shared/index.ts
|
|
34429
|
-
import { Expose as Expose562, Transform as
|
|
34439
|
+
import { Expose as Expose562, Transform as Transform75, Type as Type367 } from "class-transformer";
|
|
34430
34440
|
import {
|
|
34431
34441
|
IsDefined as IsDefined169,
|
|
34432
34442
|
IsString as IsString457,
|
|
@@ -34434,7 +34444,8 @@ import {
|
|
|
34434
34444
|
ValidateNested as ValidateNested325,
|
|
34435
34445
|
IsArray as IsArray190,
|
|
34436
34446
|
IsDate as IsDate139,
|
|
34437
|
-
IsEnum as IsEnum26
|
|
34447
|
+
IsEnum as IsEnum26,
|
|
34448
|
+
IsUUID as IsUUID7
|
|
34438
34449
|
} from "class-validator";
|
|
34439
34450
|
import "reflect-metadata";
|
|
34440
34451
|
|
|
@@ -34794,6 +34805,7 @@ var Peru9112FibramasENTITY = class {
|
|
|
34794
34805
|
};
|
|
34795
34806
|
__decorateClass([
|
|
34796
34807
|
IsDefined169({ message: "El campo _id es obligatorio." }),
|
|
34808
|
+
IsUUID7("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
34797
34809
|
Expose562({ name: "_id" })
|
|
34798
34810
|
], Peru9112FibramasENTITY.prototype, "_id", 2);
|
|
34799
34811
|
__decorateClass([
|
|
@@ -34833,7 +34845,7 @@ __decorateClass([
|
|
|
34833
34845
|
], Peru9112FibramasENTITY.prototype, "estado_del_servicio", 2);
|
|
34834
34846
|
__decorateClass([
|
|
34835
34847
|
Expose562({ name: "Estado Interno" }),
|
|
34836
|
-
|
|
34848
|
+
Transform75(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
34837
34849
|
IsDefined169({ message: "El campo estado interno es obligatorio." }),
|
|
34838
34850
|
IsEnum26(StateInternalOrder, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrder).join(", ")}.` })
|
|
34839
34851
|
], Peru9112FibramasENTITY.prototype, "estado_interno", 2);
|
|
@@ -34947,8 +34959,8 @@ __decorateClass([
|
|
|
34947
34959
|
], Peru9112FibramasENTITY.prototype, "EECC", 2);
|
|
34948
34960
|
|
|
34949
34961
|
// src/operativa/procesos/TOA orden liquidacion/shared/index.ts
|
|
34950
|
-
import { Expose as Expose563, Transform as
|
|
34951
|
-
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";
|
|
34952
34964
|
var TOAOrdenLiquidacionENTITY = class {
|
|
34953
34965
|
_id;
|
|
34954
34966
|
tecnico;
|
|
@@ -34974,102 +34986,116 @@ var TOAOrdenLiquidacionENTITY = class {
|
|
|
34974
34986
|
};
|
|
34975
34987
|
__decorateClass([
|
|
34976
34988
|
IsDefined170({ message: "El campo _id es obligatorio." }),
|
|
34977
|
-
|
|
34978
|
-
IsUUID5("4", { message: "La propiedad _id debe ser un UUID v4 v\xE1lido." }),
|
|
34989
|
+
IsUUID8("4", { message: "La propiedad _id debe ser un UUID v4 v\xE1lido." }),
|
|
34979
34990
|
Expose563({ name: "_id" })
|
|
34980
34991
|
], TOAOrdenLiquidacionENTITY.prototype, "_id", 2);
|
|
34981
34992
|
__decorateClass([
|
|
34982
34993
|
Expose563({ name: "T\xE9cnico" }),
|
|
34983
|
-
|
|
34994
|
+
Transform76(({ obj }) => obj["T\xE9cnico"] ?? obj.tecnico),
|
|
34984
34995
|
Type368(() => String),
|
|
34985
34996
|
IsDefined170({ message: "El campo T\xE9cnico es obligatorio." }),
|
|
34986
34997
|
IsString458()
|
|
34987
34998
|
], TOAOrdenLiquidacionENTITY.prototype, "tecnico", 2);
|
|
34988
34999
|
__decorateClass([
|
|
34989
35000
|
Expose563({ name: "ID Recurso" }),
|
|
35001
|
+
Transform76(({ obj }) => obj["ID Recurso"] ?? obj.id_recurso),
|
|
34990
35002
|
Type368(() => String),
|
|
34991
35003
|
IsDefined170({ message: "El campo ID Recurso es obligatorio." }),
|
|
34992
35004
|
IsString458()
|
|
34993
35005
|
], TOAOrdenLiquidacionENTITY.prototype, "id_recurso", 2);
|
|
34994
35006
|
__decorateClass([
|
|
34995
35007
|
Expose563({ name: "N\xFAmero OT" }),
|
|
35008
|
+
Transform76(({ obj }) => obj["N\xFAmero OT"] ?? obj.numero_ot),
|
|
34996
35009
|
Type368(() => Number),
|
|
34997
35010
|
IsDefined170({ message: "El campo N\xFAmero OT es obligatorio." }),
|
|
34998
35011
|
IsNumber374()
|
|
34999
35012
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_ot", 2);
|
|
35000
35013
|
__decorateClass([
|
|
35001
35014
|
Expose563({ name: "Subtipo de Actividad" }),
|
|
35015
|
+
Transform76(({ obj }) => obj["Subtipo de Actividad"] ?? obj.subtipo_de_actividad),
|
|
35002
35016
|
Type368(() => String),
|
|
35003
35017
|
IsDefined170({ message: "El campo Subtipo de Actividad es obligatorio." }),
|
|
35004
35018
|
IsString458()
|
|
35005
35019
|
], TOAOrdenLiquidacionENTITY.prototype, "subtipo_de_actividad", 2);
|
|
35006
35020
|
__decorateClass([
|
|
35007
35021
|
Expose563({ name: "N\xFAmero de Petici\xF3n" }),
|
|
35022
|
+
Transform76(({ obj }) => obj["N\xFAmero de Petici\xF3n"] ?? obj.numero_de_peticion),
|
|
35008
35023
|
Type368(() => String),
|
|
35009
35024
|
IsDefined170({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
35010
35025
|
IsString458()
|
|
35011
35026
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_de_peticion", 2);
|
|
35012
35027
|
__decorateClass([
|
|
35013
35028
|
Expose563({ name: "Localidad" }),
|
|
35029
|
+
Transform76(({ obj }) => obj["Localidad"] ?? obj.localidad),
|
|
35014
35030
|
Type368(() => String),
|
|
35015
35031
|
IsDefined170({ message: "El campo Localidad es obligatorio." }),
|
|
35016
35032
|
IsString458()
|
|
35017
35033
|
], TOAOrdenLiquidacionENTITY.prototype, "localidad", 2);
|
|
35018
35034
|
__decorateClass([
|
|
35019
35035
|
Expose563({ name: "Direcci\xF3n" }),
|
|
35036
|
+
Transform76(({ obj }) => obj["Direcci\xF3n"] ?? obj.direccion),
|
|
35020
35037
|
Type368(() => String),
|
|
35021
35038
|
IsDefined170({ message: "El campo Direcci\xF3n es obligatorio." }),
|
|
35022
35039
|
IsString458()
|
|
35023
35040
|
], TOAOrdenLiquidacionENTITY.prototype, "direccion", 2);
|
|
35024
35041
|
__decorateClass([
|
|
35025
35042
|
Expose563({ name: "Zona de Trabajo" }),
|
|
35043
|
+
Transform76(({ obj }) => obj["Zona de Trabajo"] ?? obj.zona_de_trabajo),
|
|
35026
35044
|
Type368(() => String),
|
|
35027
35045
|
IsDefined170({ message: "El campo Zona de Trabajo es obligatorio." }),
|
|
35028
35046
|
IsString458()
|
|
35029
35047
|
], TOAOrdenLiquidacionENTITY.prototype, "zona_de_trabajo", 2);
|
|
35030
35048
|
__decorateClass([
|
|
35031
35049
|
Expose563({ name: "Nombre Cliente" }),
|
|
35050
|
+
Transform76(({ obj }) => obj["Nombre Cliente"] ?? obj.nombre_cliente),
|
|
35032
35051
|
Type368(() => String),
|
|
35033
35052
|
IsDefined170({ message: "El campo Nombre Cliente es obligatorio." }),
|
|
35034
35053
|
IsString458()
|
|
35035
35054
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_cliente", 2);
|
|
35036
35055
|
__decorateClass([
|
|
35037
35056
|
Expose563({ name: "Estado actividad" }),
|
|
35057
|
+
Transform76(({ obj }) => obj["Estado actividad"] ?? obj.estado_actividad),
|
|
35038
35058
|
Type368(() => String),
|
|
35039
35059
|
IsDefined170({ message: "El campo Estado actividad es obligatorio." }),
|
|
35040
35060
|
IsString458()
|
|
35041
35061
|
], TOAOrdenLiquidacionENTITY.prototype, "estado_actividad", 2);
|
|
35042
35062
|
__decorateClass([
|
|
35043
35063
|
Expose563({ name: "Estado Interno" }),
|
|
35064
|
+
Transform76(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
35044
35065
|
IsDefined170({ message: "El campo estado interno es obligatorio." }),
|
|
35045
35066
|
IsEnum27(StateInternalOrderTOA, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrderTOA).join(", ")}.` })
|
|
35046
35067
|
], TOAOrdenLiquidacionENTITY.prototype, "estado_interno", 2);
|
|
35047
35068
|
__decorateClass([
|
|
35048
35069
|
Expose563({ name: "C\xF3digo de Cliente" }),
|
|
35070
|
+
Transform76(({ obj }) => obj["C\xF3digo de Cliente"] ?? obj.codigo_de_cliente),
|
|
35049
35071
|
Type368(() => Number),
|
|
35050
35072
|
IsDefined170({ message: "El campo C\xF3digo de Cliente es obligatorio." }),
|
|
35051
35073
|
IsNumber374()
|
|
35052
35074
|
], TOAOrdenLiquidacionENTITY.prototype, "codigo_de_cliente", 2);
|
|
35053
35075
|
__decorateClass([
|
|
35054
35076
|
Expose563({ name: "Actividad Gpon" }),
|
|
35077
|
+
Transform76(({ obj }) => obj["Actividad Gpon"] ?? obj.actividad_gpon),
|
|
35055
35078
|
Type368(() => String),
|
|
35056
35079
|
IsDefined170({ message: "El campo Actividad Gpon es obligatorio." }),
|
|
35057
35080
|
IsString458()
|
|
35058
35081
|
], TOAOrdenLiquidacionENTITY.prototype, "actividad_gpon", 2);
|
|
35059
35082
|
__decorateClass([
|
|
35060
35083
|
Expose563({ name: "Nombre Distrito" }),
|
|
35084
|
+
Transform76(({ obj }) => obj["Nombre Distrito"] ?? obj.nombre_distrito),
|
|
35061
35085
|
Type368(() => String),
|
|
35062
35086
|
IsDefined170({ message: "El campo Nombre Distrito es obligatorio." }),
|
|
35063
35087
|
IsString458()
|
|
35064
35088
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_distrito", 2);
|
|
35065
35089
|
__decorateClass([
|
|
35066
35090
|
Expose563({ name: "N\xFAmero Tel\xE9fono" }),
|
|
35091
|
+
Transform76(({ obj }) => obj["N\xFAmero Tel\xE9fono"] ?? obj.numero_telefono),
|
|
35067
35092
|
Type368(() => String),
|
|
35068
35093
|
IsDefined170({ message: "El campo N\xFAmero Tel\xE9fono es obligatorio." }),
|
|
35069
35094
|
IsString458()
|
|
35070
35095
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_telefono", 2);
|
|
35071
35096
|
__decorateClass([
|
|
35072
35097
|
Expose563({ name: "Segmento" }),
|
|
35098
|
+
Transform76(({ obj }) => obj["Segmento"] ?? obj.segmento),
|
|
35073
35099
|
IsDefined170({ message: "El campo Segmento es obligatorio." }),
|
|
35074
35100
|
IsObject12(),
|
|
35075
35101
|
ValidateNested326(),
|
|
@@ -35077,24 +35103,28 @@ __decorateClass([
|
|
|
35077
35103
|
], TOAOrdenLiquidacionENTITY.prototype, "segmento", 2);
|
|
35078
35104
|
__decorateClass([
|
|
35079
35105
|
Expose563({ name: "Nombre de Provincia" }),
|
|
35106
|
+
Transform76(({ obj }) => obj["Nombre de Provincia"] ?? obj.nombre_de_provincia),
|
|
35080
35107
|
Type368(() => String),
|
|
35081
35108
|
IsDefined170({ message: "El campo Nombre de Provincia es obligatorio." }),
|
|
35082
35109
|
IsString458()
|
|
35083
35110
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_de_provincia", 2);
|
|
35084
35111
|
__decorateClass([
|
|
35085
35112
|
Expose563({ name: "Departamento" }),
|
|
35113
|
+
Transform76(({ obj }) => obj["Departamento"] ?? obj.departamento),
|
|
35086
35114
|
Type368(() => String),
|
|
35087
35115
|
IsDefined170({ message: "El campo Departamento es obligatorio." }),
|
|
35088
35116
|
IsString458()
|
|
35089
35117
|
], TOAOrdenLiquidacionENTITY.prototype, "departamento", 2);
|
|
35090
35118
|
__decorateClass([
|
|
35091
35119
|
Expose563({ name: "Reiterada TDI" }),
|
|
35120
|
+
Transform76(({ obj }) => obj["Reiterada TDI"] ?? obj.reiterada_tdi),
|
|
35092
35121
|
Type368(() => String),
|
|
35093
35122
|
IsDefined170({ message: "El campo Reiterada TDI es obligatorio." }),
|
|
35094
35123
|
IsString458()
|
|
35095
35124
|
], TOAOrdenLiquidacionENTITY.prototype, "reiterada_tdi", 2);
|
|
35096
35125
|
__decorateClass([
|
|
35097
35126
|
Expose563({ name: "Inventario" }),
|
|
35127
|
+
Transform76(({ obj }) => obj["Inventario"] ?? obj.inventario),
|
|
35098
35128
|
IsDefined170({ message: "El campo inventario es obligatorio." }),
|
|
35099
35129
|
IsArray191(),
|
|
35100
35130
|
ValidateNested326({ each: true }),
|
|
@@ -35103,7 +35133,7 @@ __decorateClass([
|
|
|
35103
35133
|
|
|
35104
35134
|
// src/operativa/procesos/TOA orden liquidacion_db/shared/index.ts
|
|
35105
35135
|
import { Expose as Expose564, Type as Type369 } from "class-transformer";
|
|
35106
|
-
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";
|
|
35107
35137
|
var TOAOrdenLiquidacionENTITYDB = class {
|
|
35108
35138
|
_id = "";
|
|
35109
35139
|
tecnico = "";
|
|
@@ -35129,7 +35159,7 @@ var TOAOrdenLiquidacionENTITYDB = class {
|
|
|
35129
35159
|
};
|
|
35130
35160
|
__decorateClass([
|
|
35131
35161
|
IsDefined171({ message: "El campo _id es obligatorio." }),
|
|
35132
|
-
|
|
35162
|
+
IsUUID9("4", { message: "La propiedad _id debe ser un UUID v4 v\xE1lido." }),
|
|
35133
35163
|
Expose564({ name: "_id" })
|
|
35134
35164
|
], TOAOrdenLiquidacionENTITYDB.prototype, "_id", 2);
|
|
35135
35165
|
__decorateClass([
|
|
@@ -35269,14 +35299,14 @@ import { IsDefined as IsDefined174, IsObject as IsObject14, IsString as IsString
|
|
|
35269
35299
|
|
|
35270
35300
|
// src/v2/entities/Base.ts
|
|
35271
35301
|
import { Expose as Expose566 } from "class-transformer";
|
|
35272
|
-
import { IsBoolean as IsBoolean50, IsDefined as IsDefined173, IsUUID as
|
|
35302
|
+
import { IsBoolean as IsBoolean50, IsDefined as IsDefined173, IsUUID as IsUUID10 } from "class-validator";
|
|
35273
35303
|
var BaseEntity = class {
|
|
35274
35304
|
_id;
|
|
35275
35305
|
activo;
|
|
35276
35306
|
};
|
|
35277
35307
|
__decorateClass([
|
|
35278
35308
|
IsDefined173({ message: 'La propiedad "_id" es obligatoria.' }),
|
|
35279
|
-
|
|
35309
|
+
IsUUID10("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
35280
35310
|
Expose566()
|
|
35281
35311
|
], BaseEntity.prototype, "_id", 2);
|
|
35282
35312
|
__decorateClass([
|