sigo-entities 1.2.100 → 1.2.101
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 +30 -57
- package/dist/index.mjs +213 -240
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3330,21 +3330,19 @@ __decorateClass([
|
|
|
3330
3330
|
], BodyUpdateOne.prototype, "update", 2);
|
|
3331
3331
|
|
|
3332
3332
|
// src/shared/dto/toa-segmento.ts
|
|
3333
|
-
import { Expose as Expose84
|
|
3333
|
+
import { Expose as Expose84 } from "class-transformer";
|
|
3334
3334
|
import { IsDefined as IsDefined9, IsString as IsString67 } from "class-validator";
|
|
3335
3335
|
var ToaSegmentoDTO = class {
|
|
3336
3336
|
codigo;
|
|
3337
3337
|
descripcion;
|
|
3338
3338
|
};
|
|
3339
3339
|
__decorateClass([
|
|
3340
|
-
Expose84(),
|
|
3341
|
-
Transform17(({ value, obj }) => value ?? obj["Codigo"] ?? obj.codigo),
|
|
3340
|
+
Expose84({ name: "Codigo" }),
|
|
3342
3341
|
IsDefined9({ message: "El campo Codigo es obligatorio." }),
|
|
3343
3342
|
IsString67()
|
|
3344
3343
|
], ToaSegmentoDTO.prototype, "codigo", 2);
|
|
3345
3344
|
__decorateClass([
|
|
3346
|
-
Expose84(),
|
|
3347
|
-
Transform17(({ value, obj }) => value ?? obj["Descripcion"] ?? obj.descripcion),
|
|
3345
|
+
Expose84({ name: "Descripcion" }),
|
|
3348
3346
|
IsDefined9({ message: "El campo Descripcion es obligatorio." }),
|
|
3349
3347
|
IsString67()
|
|
3350
3348
|
], ToaSegmentoDTO.prototype, "descripcion", 2);
|
|
@@ -3607,7 +3605,7 @@ __decorateClass([
|
|
|
3607
3605
|
|
|
3608
3606
|
// src/administracion/EstadoInterno/shared/index.ts
|
|
3609
3607
|
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";
|
|
3610
|
-
import { Expose as Expose87, Transform as
|
|
3608
|
+
import { Expose as Expose87, Transform as Transform17, Type as Type47 } from "class-transformer";
|
|
3611
3609
|
var EstadoInternoENTITY = class {
|
|
3612
3610
|
ID_EstadoInterno = 0;
|
|
3613
3611
|
ID_EstadoInternoPadre = 0;
|
|
@@ -3672,7 +3670,7 @@ __decorateClass([
|
|
|
3672
3670
|
IsNumber55({}, { message: "debe ser un numero" }),
|
|
3673
3671
|
Expose87(),
|
|
3674
3672
|
Min47(0),
|
|
3675
|
-
|
|
3673
|
+
Transform17(({ value }) => Number(value))
|
|
3676
3674
|
], EstadoInternoENTITY.prototype, "Orden", 2);
|
|
3677
3675
|
__decorateClass([
|
|
3678
3676
|
IsDefined10({ message: "El campo ColorFondo es obligatorio" }),
|
|
@@ -3916,20 +3914,20 @@ __decorateClass([
|
|
|
3916
3914
|
], UnidadObraMaterialENTITY.prototype, "Estado", 2);
|
|
3917
3915
|
|
|
3918
3916
|
// src/administracion/zona trabajo/shared/dto/lat-lng-dto.ts
|
|
3919
|
-
import { Expose as Expose91, Transform as
|
|
3917
|
+
import { Expose as Expose91, Transform as Transform18 } from "class-transformer";
|
|
3920
3918
|
import { IsNotEmpty as IsNotEmpty74, IsNumber as IsNumber59 } from "class-validator";
|
|
3921
3919
|
var latLngDTO = class {
|
|
3922
3920
|
lat = 0;
|
|
3923
3921
|
lng = 0;
|
|
3924
3922
|
};
|
|
3925
3923
|
__decorateClass([
|
|
3926
|
-
|
|
3924
|
+
Transform18(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
3927
3925
|
IsNumber59({}, { message: "debe ser un numero" }),
|
|
3928
3926
|
IsNotEmpty74({ message: "es requerido" }),
|
|
3929
3927
|
Expose91()
|
|
3930
3928
|
], latLngDTO.prototype, "lat", 2);
|
|
3931
3929
|
__decorateClass([
|
|
3932
|
-
|
|
3930
|
+
Transform18(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
3933
3931
|
IsNumber59({}, { message: "debe ser un numero" }),
|
|
3934
3932
|
IsNotEmpty74({ message: "es requerido" }),
|
|
3935
3933
|
Expose91()
|
|
@@ -4422,7 +4420,7 @@ __decorateClass([
|
|
|
4422
4420
|
], DocumentacionPEXENTITY.prototype, "Estado", 2);
|
|
4423
4421
|
|
|
4424
4422
|
// src/administracion/PrecioAgencia_mam_onnet/shared/index.ts
|
|
4425
|
-
import { Expose as Expose99, Type as Type57, Transform as
|
|
4423
|
+
import { Expose as Expose99, Type as Type57, Transform as Transform19 } from "class-transformer";
|
|
4426
4424
|
import { IsNotEmpty as IsNotEmpty82, IsNumber as IsNumber66, IsString as IsString81, Length as Length70, Min as Min57, ValidateNested as ValidateNested52 } from "class-validator";
|
|
4427
4425
|
var PrecioAgencia_mam_onnetENTITY = class {
|
|
4428
4426
|
ID_PrecioAgencia_mam_onnet = 0;
|
|
@@ -4461,43 +4459,43 @@ __decorateClass([
|
|
|
4461
4459
|
Expose99()
|
|
4462
4460
|
], PrecioAgencia_mam_onnetENTITY.prototype, "Region", 2);
|
|
4463
4461
|
__decorateClass([
|
|
4464
|
-
|
|
4462
|
+
Transform19(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4465
4463
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4466
4464
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4467
4465
|
Expose99()
|
|
4468
4466
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaCritica", 2);
|
|
4469
4467
|
__decorateClass([
|
|
4470
|
-
|
|
4468
|
+
Transform19(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4471
4469
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4472
4470
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4473
4471
|
Expose99()
|
|
4474
4472
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaStandar_C_32", 2);
|
|
4475
4473
|
__decorateClass([
|
|
4476
|
-
|
|
4474
|
+
Transform19(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4477
4475
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4478
4476
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4479
4477
|
Expose99()
|
|
4480
4478
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaStandar_C_16", 2);
|
|
4481
4479
|
__decorateClass([
|
|
4482
|
-
|
|
4480
|
+
Transform19(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4483
4481
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4484
4482
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4485
4483
|
Expose99()
|
|
4486
4484
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaStandar_C_8", 2);
|
|
4487
4485
|
__decorateClass([
|
|
4488
|
-
|
|
4486
|
+
Transform19(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4489
4487
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4490
4488
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4491
4489
|
Expose99()
|
|
4492
4490
|
], PrecioAgencia_mam_onnetENTITY.prototype, "QuiebreStandar", 2);
|
|
4493
4491
|
__decorateClass([
|
|
4494
|
-
|
|
4492
|
+
Transform19(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4495
4493
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4496
4494
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4497
4495
|
Expose99()
|
|
4498
4496
|
], PrecioAgencia_mam_onnetENTITY.prototype, "CTO_Encontrado_OK", 2);
|
|
4499
4497
|
__decorateClass([
|
|
4500
|
-
|
|
4498
|
+
Transform19(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4501
4499
|
IsNumber66({}, { message: "debe ser un numero" }),
|
|
4502
4500
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4503
4501
|
Expose99()
|
|
@@ -4516,7 +4514,7 @@ __decorateClass([
|
|
|
4516
4514
|
], PrecioAgencia_mam_onnetENTITY.prototype, "Estado", 2);
|
|
4517
4515
|
|
|
4518
4516
|
// src/administracion/rm_zona_actividad/shared/index.ts
|
|
4519
|
-
import { Transform as
|
|
4517
|
+
import { Transform as Transform20, Expose as Expose100, Type as Type58 } from "class-transformer";
|
|
4520
4518
|
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";
|
|
4521
4519
|
var ADM_RM_ZonasActividadENTITY = class {
|
|
4522
4520
|
ID_RM_ZonaActividad = 0;
|
|
@@ -4554,14 +4552,14 @@ __decorateClass([
|
|
|
4554
4552
|
Expose100()
|
|
4555
4553
|
], ADM_RM_ZonasActividadENTITY.prototype, "Actividad", 2);
|
|
4556
4554
|
__decorateClass([
|
|
4557
|
-
|
|
4555
|
+
Transform20(({ value }) => Number(value)),
|
|
4558
4556
|
IsDefined11({ message: "El campo Precio_v es obligatorio" }),
|
|
4559
4557
|
Expose100(),
|
|
4560
4558
|
IsNumber67({}, { message: "debe ser un numero" }),
|
|
4561
4559
|
Min58(1, { message: "el valor m\xEDnimo es 0" })
|
|
4562
4560
|
], ADM_RM_ZonasActividadENTITY.prototype, "Precio_v", 2);
|
|
4563
4561
|
__decorateClass([
|
|
4564
|
-
|
|
4562
|
+
Transform20(({ value }) => Number(value)),
|
|
4565
4563
|
IsDefined11({ message: "El campo Precio_c es obligatorio" }),
|
|
4566
4564
|
Expose100(),
|
|
4567
4565
|
IsNumber67({}, { message: "debe ser un numero" }),
|
|
@@ -4870,20 +4868,20 @@ __decorateClass([
|
|
|
4870
4868
|
], OTENTITY.prototype, "Estado", 2);
|
|
4871
4869
|
|
|
4872
4870
|
// src/administracion/ot/shared/dto/vigencia-ot-dto.ts
|
|
4873
|
-
import { Expose as Expose106, Transform as
|
|
4871
|
+
import { Expose as Expose106, Transform as Transform21, Type as Type64 } from "class-transformer";
|
|
4874
4872
|
import { IsDate as IsDate23, IsNotEmpty as IsNotEmpty87 } from "class-validator";
|
|
4875
4873
|
var VigenciaOTDTO = class {
|
|
4876
4874
|
FechaInicio = /* @__PURE__ */ new Date();
|
|
4877
4875
|
FechaFin = /* @__PURE__ */ new Date(0);
|
|
4878
4876
|
};
|
|
4879
4877
|
__decorateClass([
|
|
4880
|
-
|
|
4878
|
+
Transform21(({ value }) => value ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
4881
4879
|
IsDate23({ message: "debe ser una fecha" }),
|
|
4882
4880
|
Type64(() => Date),
|
|
4883
4881
|
Expose106()
|
|
4884
4882
|
], VigenciaOTDTO.prototype, "FechaInicio", 2);
|
|
4885
4883
|
__decorateClass([
|
|
4886
|
-
|
|
4884
|
+
Transform21(({ value }) => value ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
4887
4885
|
IsDate23({ message: "debe ser una fecha" }),
|
|
4888
4886
|
Type64(() => Date),
|
|
4889
4887
|
IsNotEmpty87({ message: "es requerido" }),
|
|
@@ -5830,7 +5828,7 @@ __decorateClass([
|
|
|
5830
5828
|
], ItemCantidadesDTO.prototype, "Fecha", 2);
|
|
5831
5829
|
|
|
5832
5830
|
// src/programados/procesos/reservaMaterial/shared/dto/item-dto.ts
|
|
5833
|
-
import { Expose as Expose125, Transform as
|
|
5831
|
+
import { Expose as Expose125, Transform as Transform22, Type as Type78 } from "class-transformer";
|
|
5834
5832
|
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";
|
|
5835
5833
|
var ItemDTO = class {
|
|
5836
5834
|
ID_Item = 0;
|
|
@@ -5905,7 +5903,7 @@ __decorateClass([
|
|
|
5905
5903
|
Expose125()
|
|
5906
5904
|
], ItemDTO.prototype, "Lote", 2);
|
|
5907
5905
|
__decorateClass([
|
|
5908
|
-
|
|
5906
|
+
Transform22(({ value }) => convertTypeNumber({ value })),
|
|
5909
5907
|
IsDefined28({ message: "es requerido" }),
|
|
5910
5908
|
IsNumber88({}, { message: "debe ser un numero" }),
|
|
5911
5909
|
Min78(0, { message: "el valor m\xEDnimo es 0" }),
|
|
@@ -6959,7 +6957,7 @@ __decorateClass([
|
|
|
6959
6957
|
], ProduccionDTO.prototype, "CentroCostos", 2);
|
|
6960
6958
|
|
|
6961
6959
|
// src/programados/procesos/trabajo/shared/dto/detalle-chile-dto.ts
|
|
6962
|
-
import { Expose as Expose141, Transform as
|
|
6960
|
+
import { Expose as Expose141, Transform as Transform23, Type as Type93 } from "class-transformer";
|
|
6963
6961
|
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";
|
|
6964
6962
|
var DetalleChileDTO = class {
|
|
6965
6963
|
Codigo = "";
|
|
@@ -7116,7 +7114,7 @@ __decorateClass([
|
|
|
7116
7114
|
], DetalleChileDTO.prototype, "CanUOApr", 2);
|
|
7117
7115
|
__decorateClass([
|
|
7118
7116
|
IsDefined37({ message: "es requerido" }),
|
|
7119
|
-
|
|
7117
|
+
Transform23(({ value }) => {
|
|
7120
7118
|
const num = Number(value);
|
|
7121
7119
|
return isNaN(num) ? value : num;
|
|
7122
7120
|
}),
|
|
@@ -7487,7 +7485,7 @@ __decorateClass([
|
|
|
7487
7485
|
], SubManoObraDTO.prototype, "Cantidad", 2);
|
|
7488
7486
|
|
|
7489
7487
|
// src/programados/procesos/trabajo/shared/dto/ubicacion-dto.ts
|
|
7490
|
-
import { Expose as Expose149, Transform as
|
|
7488
|
+
import { Expose as Expose149, Transform as Transform24, Type as Type97 } from "class-transformer";
|
|
7491
7489
|
import { IsNotEmpty as IsNotEmpty109, IsString as IsString120, Length as Length94, MinLength as MinLength18, ValidateNested as ValidateNested88 } from "class-validator";
|
|
7492
7490
|
var UbicacionDTO = class {
|
|
7493
7491
|
Direccion = "";
|
|
@@ -7504,7 +7502,7 @@ __decorateClass([
|
|
|
7504
7502
|
Expose149()
|
|
7505
7503
|
], UbicacionDTO.prototype, "Direccion", 2);
|
|
7506
7504
|
__decorateClass([
|
|
7507
|
-
|
|
7505
|
+
Transform24(({ value }) => value === null ? "" : value),
|
|
7508
7506
|
IsString120({ message: "debe ser un texto" }),
|
|
7509
7507
|
MinLength18(0, { message: "debe tener entre como m\xEDnimo 0 caracteres" }),
|
|
7510
7508
|
Expose149()
|
|
@@ -7516,7 +7514,7 @@ __decorateClass([
|
|
|
7516
7514
|
ValidateNested88()
|
|
7517
7515
|
], UbicacionDTO.prototype, "Coordenadas", 2);
|
|
7518
7516
|
__decorateClass([
|
|
7519
|
-
|
|
7517
|
+
Transform24(({ value }) => value === null ? "" : value),
|
|
7520
7518
|
IsString120({ message: "debe ser un texto" }),
|
|
7521
7519
|
MinLength18(0, { message: "debe tener entre como m\xEDnimo 0 caracteres" }),
|
|
7522
7520
|
Expose149()
|
|
@@ -7912,7 +7910,7 @@ __decorateClass([
|
|
|
7912
7910
|
], ValorizacionesDTO.prototype, "Estado", 2);
|
|
7913
7911
|
|
|
7914
7912
|
// src/programados/procesos/trabajo/shared/dto/personal-trabajo-dto.ts
|
|
7915
|
-
import { Expose as Expose153, Transform as
|
|
7913
|
+
import { Expose as Expose153, Transform as Transform25 } from "class-transformer";
|
|
7916
7914
|
import { IsNumber as IsNumber109, IsString as IsString123, Length as Length97, MinLength as MinLength20 } from "class-validator";
|
|
7917
7915
|
var PersonalTrabajoDTO = class {
|
|
7918
7916
|
Identificacion = "";
|
|
@@ -7927,7 +7925,7 @@ __decorateClass([
|
|
|
7927
7925
|
Expose153()
|
|
7928
7926
|
], PersonalTrabajoDTO.prototype, "Identificacion", 2);
|
|
7929
7927
|
__decorateClass([
|
|
7930
|
-
|
|
7928
|
+
Transform25(({ value }) => value === "" ? 0 : value),
|
|
7931
7929
|
IsNumber109({}, { message: "debe ser un numero" }),
|
|
7932
7930
|
Expose153()
|
|
7933
7931
|
], PersonalTrabajoDTO.prototype, "IdPersonal", 2);
|
|
@@ -12968,7 +12966,7 @@ __decorateClass([
|
|
|
12968
12966
|
], TotalGeneralObraDTO.prototype, "ResumenAvance", 2);
|
|
12969
12967
|
|
|
12970
12968
|
// src/programados/procesos/obra/shared/dto/ubicacion-dto.ts
|
|
12971
|
-
import { Expose as Expose239, Transform as
|
|
12969
|
+
import { Expose as Expose239, Transform as Transform26, Type as Type165 } from "class-transformer";
|
|
12972
12970
|
import { IsNotEmpty as IsNotEmpty175, IsString as IsString183, Length as Length139, ValidateNested as ValidateNested152 } from "class-validator";
|
|
12973
12971
|
var UbicacionObraDTO = class {
|
|
12974
12972
|
Direccion = "";
|
|
@@ -12985,7 +12983,7 @@ __decorateClass([
|
|
|
12985
12983
|
Expose239()
|
|
12986
12984
|
], UbicacionObraDTO.prototype, "Direccion", 2);
|
|
12987
12985
|
__decorateClass([
|
|
12988
|
-
|
|
12986
|
+
Transform26(({ value }) => value === null ? "" : value),
|
|
12989
12987
|
IsString183({ message: "debe ser un texto" }),
|
|
12990
12988
|
Length139(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
12991
12989
|
Expose239()
|
|
@@ -12997,7 +12995,7 @@ __decorateClass([
|
|
|
12997
12995
|
ValidateNested152()
|
|
12998
12996
|
], UbicacionObraDTO.prototype, "Coordenadas", 2);
|
|
12999
12997
|
__decorateClass([
|
|
13000
|
-
|
|
12998
|
+
Transform26(({ value }) => value === null ? "" : value),
|
|
13001
12999
|
IsString183({ message: "debe ser un texto" }),
|
|
13002
13000
|
Length139(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
13003
13001
|
Expose239()
|
|
@@ -13564,7 +13562,7 @@ import { Expose as Expose254, Type as Type177 } from "class-transformer";
|
|
|
13564
13562
|
import { IsNotEmpty as IsNotEmpty187, ValidateNested as ValidateNested164 } from "class-validator";
|
|
13565
13563
|
|
|
13566
13564
|
// src/programados/procesos/obra/alemania/shared/detalle-chile-alemania-obra-dto.ts
|
|
13567
|
-
import { Expose as Expose253, Transform as
|
|
13565
|
+
import { Expose as Expose253, Transform as Transform27, Type as Type176 } from "class-transformer";
|
|
13568
13566
|
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";
|
|
13569
13567
|
var DetalleChileAlemaniaObraDTO = class {
|
|
13570
13568
|
codigoCalc = "";
|
|
@@ -13720,7 +13718,7 @@ __decorateClass([
|
|
|
13720
13718
|
IsNumber178({}, { message: "debe ser un numero" }),
|
|
13721
13719
|
Expose253(),
|
|
13722
13720
|
Min140(0),
|
|
13723
|
-
|
|
13721
|
+
Transform27(({ value }) => Number(value))
|
|
13724
13722
|
], DetalleChileAlemaniaObraDTO.prototype, "CostoTotal", 2);
|
|
13725
13723
|
__decorateClass([
|
|
13726
13724
|
Type176(() => HistoricoDTO),
|
|
@@ -15269,11 +15267,11 @@ __decorateClass([
|
|
|
15269
15267
|
], GomENTITY.prototype, "Anexos", 2);
|
|
15270
15268
|
|
|
15271
15269
|
// src/programados/procesos/cubicacion/shared/index.ts
|
|
15272
|
-
import { Expose as Expose281, Transform as
|
|
15270
|
+
import { Expose as Expose281, Transform as Transform30, Type as Type196 } from "class-transformer";
|
|
15273
15271
|
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";
|
|
15274
15272
|
|
|
15275
15273
|
// src/programados/procesos/cubicacion/shared/dto/cabecera-cubicaje-dto.ts
|
|
15276
|
-
import { Expose as Expose279, Transform as
|
|
15274
|
+
import { Expose as Expose279, Transform as Transform28, Type as Type195 } from "class-transformer";
|
|
15277
15275
|
import { IsDate as IsDate62, IsNumber as IsNumber197, IsString as IsString204, Min as Min158, MinLength as MinLength33 } from "class-validator";
|
|
15278
15276
|
var CabeceraCubicajeDTO = class {
|
|
15279
15277
|
codigoCalc = "";
|
|
@@ -15316,13 +15314,13 @@ __decorateClass([
|
|
|
15316
15314
|
Expose279()
|
|
15317
15315
|
], CabeceraCubicajeDTO.prototype, "nombre", 2);
|
|
15318
15316
|
__decorateClass([
|
|
15319
|
-
|
|
15317
|
+
Transform28(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15320
15318
|
IsString204({ message: "debe ser un texto" }),
|
|
15321
15319
|
MinLength33(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15322
15320
|
Expose279()
|
|
15323
15321
|
], CabeceraCubicajeDTO.prototype, "contrato", 2);
|
|
15324
15322
|
__decorateClass([
|
|
15325
|
-
|
|
15323
|
+
Transform28(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15326
15324
|
IsString204({ message: "debe ser un texto" }),
|
|
15327
15325
|
MinLength33(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15328
15326
|
Expose279()
|
|
@@ -15333,7 +15331,7 @@ __decorateClass([
|
|
|
15333
15331
|
Expose279()
|
|
15334
15332
|
], CabeceraCubicajeDTO.prototype, "numoe", 2);
|
|
15335
15333
|
__decorateClass([
|
|
15336
|
-
|
|
15334
|
+
Transform28(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15337
15335
|
IsString204({ message: "debe ser un texto" }),
|
|
15338
15336
|
MinLength33(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15339
15337
|
Expose279()
|
|
@@ -15420,7 +15418,7 @@ __decorateClass([
|
|
|
15420
15418
|
], CabeceraCubicajeDTO.prototype, "CostoTotal", 2);
|
|
15421
15419
|
|
|
15422
15420
|
// src/programados/procesos/cubicacion/shared/dto/detalle-cubicaje-dto.ts
|
|
15423
|
-
import { Expose as Expose280, Transform as
|
|
15421
|
+
import { Expose as Expose280, Transform as Transform29 } from "class-transformer";
|
|
15424
15422
|
import { IsNumber as IsNumber198, IsString as IsString205, MinLength as MinLength34, Min as Min159 } from "class-validator";
|
|
15425
15423
|
var DetalleCubicajeDTO = class {
|
|
15426
15424
|
codigo = "";
|
|
@@ -15481,19 +15479,19 @@ __decorateClass([
|
|
|
15481
15479
|
Expose280()
|
|
15482
15480
|
], DetalleCubicajeDTO.prototype, "plano", 2);
|
|
15483
15481
|
__decorateClass([
|
|
15484
|
-
|
|
15482
|
+
Transform29(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15485
15483
|
IsString205({ message: "debe ser un texto" }),
|
|
15486
15484
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15487
15485
|
Expose280()
|
|
15488
15486
|
], DetalleCubicajeDTO.prototype, "codesp", 2);
|
|
15489
15487
|
__decorateClass([
|
|
15490
|
-
|
|
15488
|
+
Transform29(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15491
15489
|
IsString205({ message: "debe ser un texto" }),
|
|
15492
15490
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15493
15491
|
Expose280()
|
|
15494
15492
|
], DetalleCubicajeDTO.prototype, "codact", 2);
|
|
15495
15493
|
__decorateClass([
|
|
15496
|
-
|
|
15494
|
+
Transform29(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15497
15495
|
IsString205({ message: "debe ser un texto" }),
|
|
15498
15496
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15499
15497
|
Expose280()
|
|
@@ -15504,13 +15502,13 @@ __decorateClass([
|
|
|
15504
15502
|
Expose280()
|
|
15505
15503
|
], DetalleCubicajeDTO.prototype, "tarea", 2);
|
|
15506
15504
|
__decorateClass([
|
|
15507
|
-
|
|
15505
|
+
Transform29(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15508
15506
|
IsString205({ message: "debe ser un texto" }),
|
|
15509
15507
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15510
15508
|
Expose280()
|
|
15511
15509
|
], DetalleCubicajeDTO.prototype, "codmo", 2);
|
|
15512
15510
|
__decorateClass([
|
|
15513
|
-
|
|
15511
|
+
Transform29(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
15514
15512
|
IsString205({ message: "debe ser un texto" }),
|
|
15515
15513
|
MinLength34(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
15516
15514
|
Expose280()
|
|
@@ -15598,7 +15596,7 @@ __decorateClass([
|
|
|
15598
15596
|
Expose281()
|
|
15599
15597
|
], CubicacionENTITY.prototype, "Accion", 2);
|
|
15600
15598
|
__decorateClass([
|
|
15601
|
-
|
|
15599
|
+
Transform30(({ value }) => typeof value === "string" ? value.replaceAll(" ", "") : value),
|
|
15602
15600
|
IsDate63({ message: "debe ser una fecha" }),
|
|
15603
15601
|
Type196(() => Date),
|
|
15604
15602
|
Expose281()
|
|
@@ -16423,7 +16421,7 @@ __decorateClass([
|
|
|
16423
16421
|
], VigenciaKeyDTO.prototype, "FechaFin", 2);
|
|
16424
16422
|
|
|
16425
16423
|
// src/programados/procesos/precioContratistaMaterial/shared/dto/material-precio-contratista-dto.ts
|
|
16426
|
-
import { Expose as Expose304, Transform as
|
|
16424
|
+
import { Expose as Expose304, Transform as Transform31, Type as Type212 } from "class-transformer";
|
|
16427
16425
|
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";
|
|
16428
16426
|
var MaterialPrecioContratistaDTO = class {
|
|
16429
16427
|
ID_Item = 0;
|
|
@@ -16512,14 +16510,14 @@ __decorateClass([
|
|
|
16512
16510
|
Expose304()
|
|
16513
16511
|
], MaterialPrecioContratistaDTO.prototype, "Tipo", 2);
|
|
16514
16512
|
__decorateClass([
|
|
16515
|
-
|
|
16513
|
+
Transform31(({ value }) => Number(value)),
|
|
16516
16514
|
IsDefined81({ message: "El campo Valor es obligatorio" }),
|
|
16517
16515
|
Expose304(),
|
|
16518
16516
|
IsNumber209({}, { message: "debe ser un numero" }),
|
|
16519
16517
|
Min164(0, { message: "el valor m\xEDnimo es 0" })
|
|
16520
16518
|
], MaterialPrecioContratistaDTO.prototype, "Valor", 2);
|
|
16521
16519
|
__decorateClass([
|
|
16522
|
-
|
|
16520
|
+
Transform31(({ value }) => Number(value)),
|
|
16523
16521
|
IsDefined81({ message: "El Prioridad Valor es obligatorio" }),
|
|
16524
16522
|
Expose304(),
|
|
16525
16523
|
IsNumber209({}, { message: "debe ser un numero" }),
|
|
@@ -16532,7 +16530,7 @@ __decorateClass([
|
|
|
16532
16530
|
Expose304()
|
|
16533
16531
|
], MaterialPrecioContratistaDTO.prototype, "CodigoSAP", 2);
|
|
16534
16532
|
__decorateClass([
|
|
16535
|
-
|
|
16533
|
+
Transform31(({ value }) => Number(value)),
|
|
16536
16534
|
IsDefined81({ message: "El Precio Valor es obligatorio" }),
|
|
16537
16535
|
Expose304(),
|
|
16538
16536
|
IsNumber209({}, { message: "debe ser un numero" }),
|
|
@@ -16990,7 +16988,7 @@ import { Expose as Expose311, Type as Type219 } from "class-transformer";
|
|
|
16990
16988
|
import { IsNotEmpty as IsNotEmpty216, IsArray as IsArray118, ValidateNested as ValidateNested201 } from "class-validator";
|
|
16991
16989
|
|
|
16992
16990
|
// src/programados/mantenimientos/mano obra global/shared/dto/mano-obra-baremo-dto.ts
|
|
16993
|
-
import { Expose as Expose309, Transform as
|
|
16991
|
+
import { Expose as Expose309, Transform as Transform32, Type as Type217 } from "class-transformer";
|
|
16994
16992
|
import { IsNumber as IsNumber214, Min as Min169, IsNotEmpty as IsNotEmpty214, ValidateNested as ValidateNested199 } from "class-validator";
|
|
16995
16993
|
var ManoObraBaremoDTO = class {
|
|
16996
16994
|
ID_ManoObraBaremo = 0;
|
|
@@ -17013,21 +17011,21 @@ __decorateClass([
|
|
|
17013
17011
|
ValidateNested199()
|
|
17014
17012
|
], ManoObraBaremoDTO.prototype, "Especialidad", 2);
|
|
17015
17013
|
__decorateClass([
|
|
17016
|
-
|
|
17014
|
+
Transform32(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
17017
17015
|
IsNumber214({}, { message: "debe ser un numero" }),
|
|
17018
17016
|
IsNotEmpty214({ message: "es requerido" }),
|
|
17019
17017
|
Min169(0),
|
|
17020
17018
|
Expose309()
|
|
17021
17019
|
], ManoObraBaremoDTO.prototype, "PuntoBaremo", 2);
|
|
17022
17020
|
__decorateClass([
|
|
17023
|
-
|
|
17021
|
+
Transform32(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
17024
17022
|
IsNumber214({}, { message: "debe ser un numero" }),
|
|
17025
17023
|
IsNotEmpty214({ message: "es requerido" }),
|
|
17026
17024
|
Min169(0),
|
|
17027
17025
|
Expose309()
|
|
17028
17026
|
], ManoObraBaremoDTO.prototype, "PuntoBaremoContratista", 2);
|
|
17029
17027
|
__decorateClass([
|
|
17030
|
-
|
|
17028
|
+
Transform32(({ value }) => isNaN(Number(value)) ? value : Number(value)),
|
|
17031
17029
|
IsNumber214({}, { message: "debe ser un numero" }),
|
|
17032
17030
|
IsNotEmpty214({ message: "es requerido" }),
|
|
17033
17031
|
Min169(0),
|
|
@@ -17080,7 +17078,7 @@ __decorateClass([
|
|
|
17080
17078
|
], DetalleManoObraChileDTO.prototype, "ManoObraBaremo", 2);
|
|
17081
17079
|
|
|
17082
17080
|
// src/programados/mantenimientos/mano obra global/shared/dto/add-mo-pcontrata-mo.ts
|
|
17083
|
-
import { Expose as Expose312, Transform as
|
|
17081
|
+
import { Expose as Expose312, Transform as Transform33 } from "class-transformer";
|
|
17084
17082
|
import { IsBoolean as IsBoolean21, IsDefined as IsDefined85, IsNumber as IsNumber216, IsString as IsString222, Length as Length158 } from "class-validator";
|
|
17085
17083
|
var AddMOPContrataMODTO = class {
|
|
17086
17084
|
CodigoMO = "";
|
|
@@ -17096,7 +17094,7 @@ __decorateClass([
|
|
|
17096
17094
|
], AddMOPContrataMODTO.prototype, "CodigoMO", 2);
|
|
17097
17095
|
__decorateClass([
|
|
17098
17096
|
IsDefined85({ message: "El campo newPrecio es obligatorio" }),
|
|
17099
|
-
|
|
17097
|
+
Transform33(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
17100
17098
|
IsNumber216({}, { message: "debe ser un numero" }),
|
|
17101
17099
|
Expose312()
|
|
17102
17100
|
], AddMOPContrataMODTO.prototype, "NewPrecio", 2);
|
|
@@ -17221,7 +17219,7 @@ __decorateClass([
|
|
|
17221
17219
|
], AreaGomDTO.prototype, "Descripcion", 2);
|
|
17222
17220
|
|
|
17223
17221
|
// src/programados/mantenimientos/centro costos/shared/index.ts
|
|
17224
|
-
import { Expose as Expose315, Type as Type221, Transform as
|
|
17222
|
+
import { Expose as Expose315, Type as Type221, Transform as Transform34 } from "class-transformer";
|
|
17225
17223
|
import { IsDefined as IsDefined87, IsNumber as IsNumber218, IsString as IsString225, Length as Length161, Min as Min172, ValidateNested as ValidateNested203 } from "class-validator";
|
|
17226
17224
|
var CentroCostosENTITY = class {
|
|
17227
17225
|
ID_CentroCostos = 0;
|
|
@@ -17259,7 +17257,7 @@ __decorateClass([
|
|
|
17259
17257
|
ValidateNested203()
|
|
17260
17258
|
], CentroCostosENTITY.prototype, "Delegacion", 2);
|
|
17261
17259
|
__decorateClass([
|
|
17262
|
-
|
|
17260
|
+
Transform34(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
17263
17261
|
IsDefined87({ message: "El campo Codigo es obligatorio" }),
|
|
17264
17262
|
IsString225({ message: "debe ser un texto" }),
|
|
17265
17263
|
Length161(1, 75, { message: "debe tener entre 1 y 75 caracteres" }),
|
|
@@ -17395,7 +17393,7 @@ __decorateClass([
|
|
|
17395
17393
|
], RM_ZonasActividadENTITY.prototype, "Bitacora", 2);
|
|
17396
17394
|
|
|
17397
17395
|
// src/programados/mantenimientos/rm-material/shared/index.ts
|
|
17398
|
-
import { Expose as Expose319, Transform as
|
|
17396
|
+
import { Expose as Expose319, Transform as Transform35, Type as Type223 } from "class-transformer";
|
|
17399
17397
|
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";
|
|
17400
17398
|
var RM_MaterialENTITY = class {
|
|
17401
17399
|
ID_RM_Material = 0;
|
|
@@ -17451,7 +17449,7 @@ __decorateClass([
|
|
|
17451
17449
|
Expose319()
|
|
17452
17450
|
], RM_MaterialENTITY.prototype, "Proveedor", 2);
|
|
17453
17451
|
__decorateClass([
|
|
17454
|
-
|
|
17452
|
+
Transform35(({ value }) => Number(value)),
|
|
17455
17453
|
IsDefined88({ message: "El campo Precio es obligatorio" }),
|
|
17456
17454
|
IsNumber221({}, { message: "debe ser un numero" }),
|
|
17457
17455
|
Expose319(),
|
|
@@ -17464,7 +17462,7 @@ __decorateClass([
|
|
|
17464
17462
|
Expose319()
|
|
17465
17463
|
], RM_MaterialENTITY.prototype, "Tipo_Moneda", 2);
|
|
17466
17464
|
__decorateClass([
|
|
17467
|
-
|
|
17465
|
+
Transform35(({ value }) => Number(value)),
|
|
17468
17466
|
IsDefined88({ message: "El campo Valor_Moneda es obligatorio" }),
|
|
17469
17467
|
IsNumber221({}, { message: "debe ser un numero" }),
|
|
17470
17468
|
Expose319(),
|
|
@@ -17898,7 +17896,7 @@ __decorateClass([
|
|
|
17898
17896
|
], RM_ComunaENTITY.prototype, "Estado", 2);
|
|
17899
17897
|
|
|
17900
17898
|
// src/programados/mantenimientos/rm mano obra/shared/index.ts
|
|
17901
|
-
import { Expose as Expose327, Transform as
|
|
17899
|
+
import { Expose as Expose327, Transform as Transform36, Type as Type231 } from "class-transformer";
|
|
17902
17900
|
import { IsDefined as IsDefined89, IsNumber as IsNumber229, IsString as IsString237, Length as Length173, Min as Min182, ValidateNested as ValidateNested211 } from "class-validator";
|
|
17903
17901
|
var RM_ManoObraENTITY = class {
|
|
17904
17902
|
ID_RM_ManoObra = 0;
|
|
@@ -17943,7 +17941,7 @@ __decorateClass([
|
|
|
17943
17941
|
Expose327()
|
|
17944
17942
|
], RM_ManoObraENTITY.prototype, "Especialidad", 2);
|
|
17945
17943
|
__decorateClass([
|
|
17946
|
-
|
|
17944
|
+
Transform36(({ value }) => Number(value)),
|
|
17947
17945
|
IsDefined89({ message: "El campo Puntos_Baremos es obligatorio" }),
|
|
17948
17946
|
IsNumber229({}, { message: "debe ser un numero" }),
|
|
17949
17947
|
Expose327(),
|
|
@@ -17975,7 +17973,7 @@ __decorateClass([
|
|
|
17975
17973
|
], RM_ManoObraENTITY.prototype, "Estado", 2);
|
|
17976
17974
|
|
|
17977
17975
|
// src/programados/mantenimientos/rm paquetizado/shared/index.ts
|
|
17978
|
-
import { Expose as Expose328, Transform as
|
|
17976
|
+
import { Expose as Expose328, Transform as Transform37, Type as Type232 } from "class-transformer";
|
|
17979
17977
|
import { IsDefined as IsDefined90, IsNumber as IsNumber230, IsString as IsString238, Length as Length174, Min as Min183, ValidateNested as ValidateNested212 } from "class-validator";
|
|
17980
17978
|
var RM_PaquetizadoENTITY = class {
|
|
17981
17979
|
ID_RM_Paquetizado = 0;
|
|
@@ -18009,35 +18007,35 @@ __decorateClass([
|
|
|
18009
18007
|
Expose328()
|
|
18010
18008
|
], RM_PaquetizadoENTITY.prototype, "LLAVE", 2);
|
|
18011
18009
|
__decorateClass([
|
|
18012
|
-
|
|
18010
|
+
Transform37(({ value }) => Number(value)),
|
|
18013
18011
|
IsDefined90({ message: "El campo Total_PB es obligatorio" }),
|
|
18014
18012
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18015
18013
|
Expose328(),
|
|
18016
18014
|
Min183(0)
|
|
18017
18015
|
], RM_PaquetizadoENTITY.prototype, "Total_PB", 2);
|
|
18018
18016
|
__decorateClass([
|
|
18019
|
-
|
|
18017
|
+
Transform37(({ value }) => Number(value)),
|
|
18020
18018
|
IsDefined90({ message: "El campo Total_Ctta es obligatorio" }),
|
|
18021
18019
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18022
18020
|
Expose328(),
|
|
18023
18021
|
Min183(0)
|
|
18024
18022
|
], RM_PaquetizadoENTITY.prototype, "Total_Ctta", 2);
|
|
18025
18023
|
__decorateClass([
|
|
18026
|
-
|
|
18024
|
+
Transform37(({ value }) => Number(value)),
|
|
18027
18025
|
IsDefined90({ message: "El campo zona_10 es obligatorio" }),
|
|
18028
18026
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18029
18027
|
Expose328(),
|
|
18030
18028
|
Min183(0)
|
|
18031
18029
|
], RM_PaquetizadoENTITY.prototype, "zona_10", 2);
|
|
18032
18030
|
__decorateClass([
|
|
18033
|
-
|
|
18031
|
+
Transform37(({ value }) => Number(value)),
|
|
18034
18032
|
IsDefined90({ message: "El campo zona_14 es obligatorio" }),
|
|
18035
18033
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18036
18034
|
Expose328(),
|
|
18037
18035
|
Min183(0)
|
|
18038
18036
|
], RM_PaquetizadoENTITY.prototype, "zona_14", 2);
|
|
18039
18037
|
__decorateClass([
|
|
18040
|
-
|
|
18038
|
+
Transform37(({ value }) => Number(value)),
|
|
18041
18039
|
IsDefined90({ message: "El campo Total_MAT es obligatorio" }),
|
|
18042
18040
|
IsNumber230({}, { message: "debe ser un numero" }),
|
|
18043
18041
|
Expose328(),
|
|
@@ -18063,7 +18061,7 @@ __decorateClass([
|
|
|
18063
18061
|
], RM_PaquetizadoENTITY.prototype, "Estado", 2);
|
|
18064
18062
|
|
|
18065
18063
|
// src/programados/mantenimientos/rm actividad/shared/index.ts
|
|
18066
|
-
import { Expose as Expose329, Transform as
|
|
18064
|
+
import { Expose as Expose329, Transform as Transform38, Type as Type233 } from "class-transformer";
|
|
18067
18065
|
import { IsDefined as IsDefined91, IsNumber as IsNumber231, IsString as IsString239, Length as Length175, Min as Min184, ValidateNested as ValidateNested213 } from "class-validator";
|
|
18068
18066
|
var RM_ActividadENTITY = class {
|
|
18069
18067
|
ID_RM_Actividad = 0;
|
|
@@ -18093,7 +18091,7 @@ __decorateClass([
|
|
|
18093
18091
|
Expose329()
|
|
18094
18092
|
], RM_ActividadENTITY.prototype, "Descripcion", 2);
|
|
18095
18093
|
__decorateClass([
|
|
18096
|
-
|
|
18094
|
+
Transform38(({ value }) => Number(value)),
|
|
18097
18095
|
IsDefined91({ message: "El campo Precio_EECC es obligatorio" }),
|
|
18098
18096
|
IsNumber231({}, { message: "debe ser un numero" }),
|
|
18099
18097
|
Expose329(),
|
|
@@ -19750,7 +19748,7 @@ import { Expose as Expose369, Type as Type252 } from "class-transformer";
|
|
|
19750
19748
|
import { IsArray as IsArray129, IsDefined as IsDefined112, IsNumber as IsNumber251, IsString as IsString277, ValidateNested as ValidateNested229 } from "class-validator";
|
|
19751
19749
|
|
|
19752
19750
|
// src/programados/Reportes/ReporteProduccion/Chile/BaremoProcess/dto/baremo_process_fechas-dto.ts
|
|
19753
|
-
import { Expose as Expose358, Transform as
|
|
19751
|
+
import { Expose as Expose358, Transform as Transform40 } from "class-transformer";
|
|
19754
19752
|
import { IsDate as IsDate78 } from "class-validator";
|
|
19755
19753
|
var BaremoProcessFechasDTO = class {
|
|
19756
19754
|
Registro = "";
|
|
@@ -19760,22 +19758,22 @@ var BaremoProcessFechasDTO = class {
|
|
|
19760
19758
|
};
|
|
19761
19759
|
__decorateClass([
|
|
19762
19760
|
Expose358(),
|
|
19763
|
-
|
|
19761
|
+
Transform40(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
19764
19762
|
IsDate78()
|
|
19765
19763
|
], BaremoProcessFechasDTO.prototype, "Registro", 2);
|
|
19766
19764
|
__decorateClass([
|
|
19767
19765
|
Expose358(),
|
|
19768
|
-
|
|
19766
|
+
Transform40(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
19769
19767
|
IsDate78()
|
|
19770
19768
|
], BaremoProcessFechasDTO.prototype, "Preliquidacion", 2);
|
|
19771
19769
|
__decorateClass([
|
|
19772
19770
|
Expose358(),
|
|
19773
|
-
|
|
19771
|
+
Transform40(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
19774
19772
|
IsDate78()
|
|
19775
19773
|
], BaremoProcessFechasDTO.prototype, "Liquidacion", 2);
|
|
19776
19774
|
__decorateClass([
|
|
19777
19775
|
Expose358(),
|
|
19778
|
-
|
|
19776
|
+
Transform40(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
19779
19777
|
IsDate78()
|
|
19780
19778
|
], BaremoProcessFechasDTO.prototype, "Produccion", 2);
|
|
19781
19779
|
|
|
@@ -19876,7 +19874,7 @@ __decorateClass([
|
|
|
19876
19874
|
], BaremoProcessUnidadMedidaDTO.prototype, "Nombre", 2);
|
|
19877
19875
|
|
|
19878
19876
|
// src/programados/Reportes/ReporteProduccion/Chile/BaremoProcess/dto/baremo_process_periodo-dto.ts
|
|
19879
|
-
import { Expose as Expose363, Transform as
|
|
19877
|
+
import { Expose as Expose363, Transform as Transform41 } from "class-transformer";
|
|
19880
19878
|
import { IsDefined as IsDefined106, IsNumber as IsNumber248, IsString as IsString271 } from "class-validator";
|
|
19881
19879
|
var BaremoProcessPeriodoDTO = class {
|
|
19882
19880
|
Anio = 0;
|
|
@@ -19887,19 +19885,19 @@ __decorateClass([
|
|
|
19887
19885
|
Expose363(),
|
|
19888
19886
|
IsDefined106({ message: "El campo Anio es obligatorio." }),
|
|
19889
19887
|
IsNumber248(),
|
|
19890
|
-
|
|
19888
|
+
Transform41(convertTypeNumber)
|
|
19891
19889
|
], BaremoProcessPeriodoDTO.prototype, "Anio", 2);
|
|
19892
19890
|
__decorateClass([
|
|
19893
19891
|
Expose363(),
|
|
19894
19892
|
IsDefined106({ message: "El campo Mes es obligatorio." }),
|
|
19895
19893
|
IsNumber248(),
|
|
19896
|
-
|
|
19894
|
+
Transform41(convertTypeNumber)
|
|
19897
19895
|
], BaremoProcessPeriodoDTO.prototype, "Mes", 2);
|
|
19898
19896
|
__decorateClass([
|
|
19899
19897
|
Expose363(),
|
|
19900
19898
|
IsDefined106({ message: "El campo Codigo es obligatorio." }),
|
|
19901
19899
|
IsString271(),
|
|
19902
|
-
|
|
19900
|
+
Transform41(convertTypeNumber)
|
|
19903
19901
|
], BaremoProcessPeriodoDTO.prototype, "Codigo", 2);
|
|
19904
19902
|
|
|
19905
19903
|
// src/programados/Reportes/ReporteProduccion/Chile/BaremoProcess/dto/baremo_process_materiales_utilizados-dto.ts
|
|
@@ -20534,7 +20532,7 @@ __decorateClass([
|
|
|
20534
20532
|
], ResumenProcessPeriodoDTO.prototype, "Codigo", 2);
|
|
20535
20533
|
|
|
20536
20534
|
// src/programados/Reportes/ReporteProduccion/Chile/ResumenProcess/dto/resumen_process_fecha_facturacion_generada-dto.ts
|
|
20537
|
-
import { Expose as Expose374, Transform as
|
|
20535
|
+
import { Expose as Expose374, Transform as Transform43 } from "class-transformer";
|
|
20538
20536
|
import { IsDate as IsDate81, IsDefined as IsDefined117, IsNumber as IsNumber253, IsString as IsString282 } from "class-validator";
|
|
20539
20537
|
var ResumenProcessFechaFacturageneradaDTO = class {
|
|
20540
20538
|
fecha = /* @__PURE__ */ new Date(0);
|
|
@@ -20545,7 +20543,7 @@ var ResumenProcessFechaFacturageneradaDTO = class {
|
|
|
20545
20543
|
};
|
|
20546
20544
|
__decorateClass([
|
|
20547
20545
|
Expose374(),
|
|
20548
|
-
|
|
20546
|
+
Transform43(({ value }) => value instanceof Date ? new Date(value) : /* @__PURE__ */ new Date(0)),
|
|
20549
20547
|
IsDate81()
|
|
20550
20548
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "fecha", 2);
|
|
20551
20549
|
__decorateClass([
|
|
@@ -20555,19 +20553,19 @@ __decorateClass([
|
|
|
20555
20553
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "Usuario", 2);
|
|
20556
20554
|
__decorateClass([
|
|
20557
20555
|
Expose374(),
|
|
20558
|
-
|
|
20556
|
+
Transform43(convertTypeNumber),
|
|
20559
20557
|
IsDefined117({ message: "El campo Anio es obligatorio." }),
|
|
20560
20558
|
IsNumber253()
|
|
20561
20559
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "Anio", 2);
|
|
20562
20560
|
__decorateClass([
|
|
20563
20561
|
Expose374(),
|
|
20564
|
-
|
|
20562
|
+
Transform43(convertTypeNumber),
|
|
20565
20563
|
IsDefined117({ message: "El campo Mes es obligatorio." }),
|
|
20566
20564
|
IsNumber253()
|
|
20567
20565
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "Mes", 2);
|
|
20568
20566
|
__decorateClass([
|
|
20569
20567
|
Expose374(),
|
|
20570
|
-
|
|
20568
|
+
Transform43(convertTypeNumber),
|
|
20571
20569
|
IsDefined117({ message: "El campo Dia es obligatorio." }),
|
|
20572
20570
|
IsNumber253()
|
|
20573
20571
|
], ResumenProcessFechaFacturageneradaDTO.prototype, "Dia", 2);
|
|
@@ -21155,7 +21153,7 @@ import { Expose as Expose394, Type as Type265 } from "class-transformer";
|
|
|
21155
21153
|
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";
|
|
21156
21154
|
|
|
21157
21155
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/cambios-estados-pagos-produccion-dto.ts
|
|
21158
|
-
import { Expose as Expose386, Transform as
|
|
21156
|
+
import { Expose as Expose386, Transform as Transform45, Type as Type262 } from "class-transformer";
|
|
21159
21157
|
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";
|
|
21160
21158
|
var CambiosEstadosPagosProduccionDTO = class {
|
|
21161
21159
|
NroDocumento = "";
|
|
@@ -21176,7 +21174,7 @@ __decorateClass([
|
|
|
21176
21174
|
ValidateNested236()
|
|
21177
21175
|
], CambiosEstadosPagosProduccionDTO.prototype, "UsuarioCambio", 2);
|
|
21178
21176
|
__decorateClass([
|
|
21179
|
-
|
|
21177
|
+
Transform45(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21180
21178
|
IsDate86({ message: "debe ser una fecha" }),
|
|
21181
21179
|
IsNotEmpty255({ message: "es requerido" }),
|
|
21182
21180
|
Expose386()
|
|
@@ -21275,7 +21273,7 @@ __decorateClass([
|
|
|
21275
21273
|
], ManoObraDTO3.prototype, "UnidadMedida", 2);
|
|
21276
21274
|
|
|
21277
21275
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/periodo-dto.ts
|
|
21278
|
-
import { Expose as Expose390, Transform as
|
|
21276
|
+
import { Expose as Expose390, Transform as Transform46 } from "class-transformer";
|
|
21279
21277
|
import { IsDate as IsDate87, IsNotEmpty as IsNotEmpty259, IsNumber as IsNumber259, IsString as IsString297, Length as Length202 } from "class-validator";
|
|
21280
21278
|
var PeriodoDTO5 = class {
|
|
21281
21279
|
FechaInicio = /* @__PURE__ */ new Date(0);
|
|
@@ -21286,19 +21284,19 @@ var PeriodoDTO5 = class {
|
|
|
21286
21284
|
Codigo = "";
|
|
21287
21285
|
};
|
|
21288
21286
|
__decorateClass([
|
|
21289
|
-
|
|
21287
|
+
Transform46(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21290
21288
|
IsDate87({ message: "debe ser de tipo fecha" }),
|
|
21291
21289
|
IsNotEmpty259({ message: "es requerido" }),
|
|
21292
21290
|
Expose390()
|
|
21293
21291
|
], PeriodoDTO5.prototype, "FechaInicio", 2);
|
|
21294
21292
|
__decorateClass([
|
|
21295
|
-
|
|
21293
|
+
Transform46(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21296
21294
|
IsDate87({ message: "debe ser de tipo fecha" }),
|
|
21297
21295
|
IsNotEmpty259({ message: "es requerido" }),
|
|
21298
21296
|
Expose390()
|
|
21299
21297
|
], PeriodoDTO5.prototype, "FechaFin", 2);
|
|
21300
21298
|
__decorateClass([
|
|
21301
|
-
|
|
21299
|
+
Transform46(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21302
21300
|
IsDate87({ message: "debe ser de tipo fecha" }),
|
|
21303
21301
|
IsNotEmpty259({ message: "es requerido" }),
|
|
21304
21302
|
Expose390()
|
|
@@ -21321,7 +21319,7 @@ __decorateClass([
|
|
|
21321
21319
|
], PeriodoDTO5.prototype, "Codigo", 2);
|
|
21322
21320
|
|
|
21323
21321
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/ultima_estado_interno-dto.ts
|
|
21324
|
-
import { Expose as Expose391, Transform as
|
|
21322
|
+
import { Expose as Expose391, Transform as Transform47, Type as Type263 } from "class-transformer";
|
|
21325
21323
|
import { IsDate as IsDate88, IsNotEmpty as IsNotEmpty260, IsNumber as IsNumber260, IsString as IsString298, Length as Length203, ValidateNested as ValidateNested237 } from "class-validator";
|
|
21326
21324
|
var Ultimo_Estado_InternoDTO = class {
|
|
21327
21325
|
ID_EstadoInterno = 0;
|
|
@@ -21348,7 +21346,7 @@ __decorateClass([
|
|
|
21348
21346
|
Expose391()
|
|
21349
21347
|
], Ultimo_Estado_InternoDTO.prototype, "ID_EstadoInternoPadre", 2);
|
|
21350
21348
|
__decorateClass([
|
|
21351
|
-
|
|
21349
|
+
Transform47(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21352
21350
|
IsDate88({ message: "debe ser una fecha" }),
|
|
21353
21351
|
IsNotEmpty260({ message: "es requerido" }),
|
|
21354
21352
|
Expose391()
|
|
@@ -21408,7 +21406,7 @@ __decorateClass([
|
|
|
21408
21406
|
], Ultimo_Estado_InternoDTO.prototype, "UsuarioEdicion", 2);
|
|
21409
21407
|
|
|
21410
21408
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/ultima_fase-dto.ts
|
|
21411
|
-
import { Expose as Expose392, Transform as
|
|
21409
|
+
import { Expose as Expose392, Transform as Transform48, Type as Type264 } from "class-transformer";
|
|
21412
21410
|
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";
|
|
21413
21411
|
var Ultima_FaseDTO = class {
|
|
21414
21412
|
ID_Fase = 0;
|
|
@@ -21455,7 +21453,7 @@ __decorateClass([
|
|
|
21455
21453
|
ValidateNested238()
|
|
21456
21454
|
], Ultima_FaseDTO.prototype, "UsuarioCambio", 2);
|
|
21457
21455
|
__decorateClass([
|
|
21458
|
-
|
|
21456
|
+
Transform48(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21459
21457
|
IsDate89({ message: "debe ser una fecha" }),
|
|
21460
21458
|
IsNotEmpty261({ message: "es requerido" }),
|
|
21461
21459
|
Expose392()
|
|
@@ -21483,7 +21481,7 @@ __decorateClass([
|
|
|
21483
21481
|
ValidateNested238()
|
|
21484
21482
|
], Ultima_FaseDTO.prototype, "UsuarioDocumento", 2);
|
|
21485
21483
|
__decorateClass([
|
|
21486
|
-
|
|
21484
|
+
Transform48(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21487
21485
|
IsDate89({ message: "debe ser una fecha" }),
|
|
21488
21486
|
IsNotEmpty261({ message: "es requerido" }),
|
|
21489
21487
|
Expose392()
|
|
@@ -23215,7 +23213,7 @@ __decorateClass([
|
|
|
23215
23213
|
], StockPersonalEquiposENTITY.prototype, "Equipos", 2);
|
|
23216
23214
|
|
|
23217
23215
|
// src/logistica/atencion ordenes liquidadas/shared/index.ts
|
|
23218
|
-
import { Expose as Expose416, Transform as
|
|
23216
|
+
import { Expose as Expose416, Transform as Transform49 } from "class-transformer";
|
|
23219
23217
|
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";
|
|
23220
23218
|
var AtencionOrdenesLiquidadasENTITY = class {
|
|
23221
23219
|
ID_AtencionOrdenesLiquidadas = 0;
|
|
@@ -23256,7 +23254,7 @@ __decorateClass([
|
|
|
23256
23254
|
], AtencionOrdenesLiquidadasENTITY.prototype, "LoteSAP", 2);
|
|
23257
23255
|
__decorateClass([
|
|
23258
23256
|
Expose416(),
|
|
23259
|
-
|
|
23257
|
+
Transform49(({ value }) => value ? String(value) : value),
|
|
23260
23258
|
IsString323({ message: "debe ser un texto" }),
|
|
23261
23259
|
Length220(0, 30, { message: "debe tener entre 0 y 30 caracteres" })
|
|
23262
23260
|
], AtencionOrdenesLiquidadasENTITY.prototype, "NumeroSerie", 2);
|
|
@@ -23303,7 +23301,7 @@ __decorateClass([
|
|
|
23303
23301
|
], AtencionOrdenesLiquidadasENTITY.prototype, "Fuente", 2);
|
|
23304
23302
|
|
|
23305
23303
|
// src/logistica/salida almacen/shared/index.ts
|
|
23306
|
-
import { Expose as Expose420, Transform as
|
|
23304
|
+
import { Expose as Expose420, Transform as Transform50, Type as Type280 } from "class-transformer";
|
|
23307
23305
|
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";
|
|
23308
23306
|
|
|
23309
23307
|
// src/logistica/salida almacen/shared/dto/datos-transportista-dto.ts
|
|
@@ -23605,7 +23603,7 @@ __decorateClass([
|
|
|
23605
23603
|
], SalidaAlmacenENTITY.prototype, "ZonaTrabajo", 2);
|
|
23606
23604
|
__decorateClass([
|
|
23607
23605
|
IsString327({ message: "debe ser un texto" }),
|
|
23608
|
-
|
|
23606
|
+
Transform50(trimAndUpperCaseString),
|
|
23609
23607
|
Length224(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
23610
23608
|
Expose420()
|
|
23611
23609
|
], SalidaAlmacenENTITY.prototype, "Observaciones", 2);
|
|
@@ -23617,13 +23615,13 @@ __decorateClass([
|
|
|
23617
23615
|
], SalidaAlmacenENTITY.prototype, "MovimientoAlmacen", 2);
|
|
23618
23616
|
__decorateClass([
|
|
23619
23617
|
IsString327({ message: "debe ser un texto" }),
|
|
23620
|
-
|
|
23618
|
+
Transform50(trimAndUpperCaseString),
|
|
23621
23619
|
Length224(0, 75, { message: "debe tener entre 0 y 75 caracteres" }),
|
|
23622
23620
|
Expose420()
|
|
23623
23621
|
], SalidaAlmacenENTITY.prototype, "NroGuia", 2);
|
|
23624
23622
|
__decorateClass([
|
|
23625
23623
|
IsString327({ message: "debe ser un texto" }),
|
|
23626
|
-
|
|
23624
|
+
Transform50(trimAndUpperCaseString),
|
|
23627
23625
|
Length224(0, 200, { message: "debe tener entre 0 y 200 caracteres" }),
|
|
23628
23626
|
Expose420()
|
|
23629
23627
|
], SalidaAlmacenENTITY.prototype, "OrdenCompra", 2);
|
|
@@ -24118,7 +24116,7 @@ __decorateClass([
|
|
|
24118
24116
|
|
|
24119
24117
|
// src/logistica/movimiento almacen/shared/index.ts
|
|
24120
24118
|
import { IsNotEmpty as IsNotEmpty289, IsNumber as IsNumber281, IsString as IsString330, Length as Length227, Min as Min213, ValidateNested as ValidateNested257 } from "class-validator";
|
|
24121
|
-
import { Expose as Expose424, Transform as
|
|
24119
|
+
import { Expose as Expose424, Transform as Transform51, Type as Type284 } from "class-transformer";
|
|
24122
24120
|
var MovimientoAlmacenENTITY = class {
|
|
24123
24121
|
ID_MovimientoAlmacen = 0;
|
|
24124
24122
|
Codigo = "";
|
|
@@ -24138,13 +24136,13 @@ __decorateClass([
|
|
|
24138
24136
|
__decorateClass([
|
|
24139
24137
|
IsString330({ message: "debe ser un texto" }),
|
|
24140
24138
|
Length227(0, 10, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
24141
|
-
|
|
24139
|
+
Transform51(({ value }) => typeof value === "string" ? value.toUpperCase() : value),
|
|
24142
24140
|
Expose424()
|
|
24143
24141
|
], MovimientoAlmacenENTITY.prototype, "Codigo", 2);
|
|
24144
24142
|
__decorateClass([
|
|
24145
24143
|
IsString330({ message: "debe ser un texto" }),
|
|
24146
24144
|
Length227(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
24147
|
-
|
|
24145
|
+
Transform51(({ value }) => typeof value === "string" ? value.toUpperCase() : value),
|
|
24148
24146
|
Expose424()
|
|
24149
24147
|
], MovimientoAlmacenENTITY.prototype, "Descripcion", 2);
|
|
24150
24148
|
__decorateClass([
|
|
@@ -24222,7 +24220,7 @@ __decorateClass([
|
|
|
24222
24220
|
// src/logistica/devolucion almacen/shared/index.ts
|
|
24223
24221
|
import {
|
|
24224
24222
|
Expose as Expose427,
|
|
24225
|
-
Transform as
|
|
24223
|
+
Transform as Transform52,
|
|
24226
24224
|
Type as Type287
|
|
24227
24225
|
} from "class-transformer";
|
|
24228
24226
|
import {
|
|
@@ -24346,7 +24344,7 @@ __decorateClass([
|
|
|
24346
24344
|
Expose427()
|
|
24347
24345
|
], DevolucionAlmacenENTITY.prototype, "NroGuia", 2);
|
|
24348
24346
|
__decorateClass([
|
|
24349
|
-
|
|
24347
|
+
Transform52(({ value }) => typeof value === "string" && value.length > 100 ? value.slice(0, 100) : value),
|
|
24350
24348
|
IsString331({ message: "debe ser un texto" }),
|
|
24351
24349
|
Length228(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
24352
24350
|
Expose427()
|
|
@@ -24413,7 +24411,7 @@ __decorateClass([
|
|
|
24413
24411
|
], DevolucionAlmacenENTITY.prototype, "Estado", 2);
|
|
24414
24412
|
|
|
24415
24413
|
// src/logistica/items/shared/index.ts
|
|
24416
|
-
import { Expose as Expose433, Transform as
|
|
24414
|
+
import { Expose as Expose433, Transform as Transform53, Type as Type291 } from "class-transformer";
|
|
24417
24415
|
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";
|
|
24418
24416
|
|
|
24419
24417
|
// src/logistica/items/shared/dto/cliente-dto.ts
|
|
@@ -24743,14 +24741,14 @@ __decorateClass([
|
|
|
24743
24741
|
], ItemENTITY.prototype, "Tipo", 2);
|
|
24744
24742
|
__decorateClass([
|
|
24745
24743
|
Expose433(),
|
|
24746
|
-
|
|
24744
|
+
Transform53(({ value }) => Number(value)),
|
|
24747
24745
|
IsNumber286({}, { message: "debe ser un numero" }),
|
|
24748
24746
|
IsNotEmpty297({ message: "es requerido" }),
|
|
24749
24747
|
Min218(0, { message: "el valor m\xEDnimo es 0" })
|
|
24750
24748
|
], ItemENTITY.prototype, "Valor", 2);
|
|
24751
24749
|
__decorateClass([
|
|
24752
24750
|
Expose433(),
|
|
24753
|
-
|
|
24751
|
+
Transform53(({ value }) => Number(value)),
|
|
24754
24752
|
IsNumber286({}, { message: "debe ser un numero" }),
|
|
24755
24753
|
IsNotEmpty297({ message: "es requerido" }),
|
|
24756
24754
|
Min218(0, { message: "el valor m\xEDnimo es 0" })
|
|
@@ -25123,7 +25121,7 @@ __decorateClass([
|
|
|
25123
25121
|
], StockAlmacenEquiposENTITY.prototype, "Equipos", 2);
|
|
25124
25122
|
|
|
25125
25123
|
// src/logistica/transaccion folios/shared/index.ts
|
|
25126
|
-
import { Transform as
|
|
25124
|
+
import { Transform as Transform54, Expose as Expose440, Type as Type295 } from "class-transformer";
|
|
25127
25125
|
|
|
25128
25126
|
// src/logistica/transaccion folios/shared/dto/transacciones-dto.ts
|
|
25129
25127
|
import { Expose as Expose439 } from "class-transformer";
|
|
@@ -25205,21 +25203,21 @@ __decorateClass([
|
|
|
25205
25203
|
Expose440()
|
|
25206
25204
|
], TransaccionFoliosENTITY.prototype, "Vigencia_Final", 2);
|
|
25207
25205
|
__decorateClass([
|
|
25208
|
-
|
|
25206
|
+
Transform54(({ value }) => Number(value)),
|
|
25209
25207
|
IsDefined130({ message: "El campo FolioInicial es obligatorio" }),
|
|
25210
25208
|
Expose440(),
|
|
25211
25209
|
IsNumber292({}, { message: "debe ser un numero" }),
|
|
25212
25210
|
Min224(1, { message: "el valor m\xEDnimo es 1" })
|
|
25213
25211
|
], TransaccionFoliosENTITY.prototype, "FolioInicial", 2);
|
|
25214
25212
|
__decorateClass([
|
|
25215
|
-
|
|
25213
|
+
Transform54(({ value }) => Number(value)),
|
|
25216
25214
|
IsDefined130({ message: "El campo FolioFinal es obligatorio" }),
|
|
25217
25215
|
Expose440(),
|
|
25218
25216
|
IsNumber292({}, { message: "debe ser un numero" }),
|
|
25219
25217
|
Min224(1, { message: "el valor m\xEDnimo es 1" })
|
|
25220
25218
|
], TransaccionFoliosENTITY.prototype, "FolioFinal", 2);
|
|
25221
25219
|
__decorateClass([
|
|
25222
|
-
|
|
25220
|
+
Transform54(({ value }) => Number(value)),
|
|
25223
25221
|
IsDefined130({ message: "El campo NumeroInterno es obligatorio" }),
|
|
25224
25222
|
Expose440(),
|
|
25225
25223
|
IsNumber292({}, { message: "debe ser un numero" }),
|
|
@@ -25549,7 +25547,7 @@ __decorateClass([
|
|
|
25549
25547
|
], BodegaENTITY.prototype, "Bitacora", 2);
|
|
25550
25548
|
|
|
25551
25549
|
// src/logistica/autoinventario/shared/index.ts
|
|
25552
|
-
import { Expose as Expose449, Transform as
|
|
25550
|
+
import { Expose as Expose449, Transform as Transform55, Type as Type301 } from "class-transformer";
|
|
25553
25551
|
|
|
25554
25552
|
// src/logistica/autoinventario/shared/dto/equipos-AI-dto.ts
|
|
25555
25553
|
import { Expose as Expose448 } from "class-transformer";
|
|
@@ -25654,7 +25652,7 @@ __decorateClass([
|
|
|
25654
25652
|
Expose449()
|
|
25655
25653
|
], AutoInventarioENTITY.prototype, "Observacion", 2);
|
|
25656
25654
|
__decorateClass([
|
|
25657
|
-
|
|
25655
|
+
Transform55(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
25658
25656
|
IsDate107({ message: "debe ser una fecha" }),
|
|
25659
25657
|
IsNotEmpty311({ message: "es requerido" }),
|
|
25660
25658
|
Expose449()
|
|
@@ -25874,7 +25872,7 @@ __decorateClass([
|
|
|
25874
25872
|
], TipoStockENTITY.prototype, "Delegacion", 2);
|
|
25875
25873
|
|
|
25876
25874
|
// src/logistica/almacen extra/shared/index.ts
|
|
25877
|
-
import { Expose as Expose454, Transform as
|
|
25875
|
+
import { Expose as Expose454, Transform as Transform56, Type as Type306 } from "class-transformer";
|
|
25878
25876
|
import { IsNotEmpty as IsNotEmpty316, IsNumber as IsNumber303, IsString as IsString355, Length as Length250, Min as Min235, ValidateNested as ValidateNested279 } from "class-validator";
|
|
25879
25877
|
var AlmacenExtraENTITY = class {
|
|
25880
25878
|
ID_AlmacenExtra = 0;
|
|
@@ -25947,13 +25945,13 @@ __decorateClass([
|
|
|
25947
25945
|
Expose454()
|
|
25948
25946
|
], AlmacenExtraENTITY.prototype, "Country", 2);
|
|
25949
25947
|
__decorateClass([
|
|
25950
|
-
|
|
25948
|
+
Transform56(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
25951
25949
|
IsNumber303({}, { message: "debe ser una coordenada" }),
|
|
25952
25950
|
IsNotEmpty316({ message: "es requerido" }),
|
|
25953
25951
|
Expose454()
|
|
25954
25952
|
], AlmacenExtraENTITY.prototype, "Latitude", 2);
|
|
25955
25953
|
__decorateClass([
|
|
25956
|
-
|
|
25954
|
+
Transform56(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
25957
25955
|
IsNumber303({}, { message: "debe ser una coordenada" }),
|
|
25958
25956
|
IsNotEmpty316({ message: "es requerido" }),
|
|
25959
25957
|
Expose454()
|
|
@@ -26257,7 +26255,7 @@ __decorateClass([
|
|
|
26257
26255
|
], RecursosPersonalDTO.prototype, "InicioActividad", 2);
|
|
26258
26256
|
|
|
26259
26257
|
// src/configuracion/personal/shared/index.ts
|
|
26260
|
-
import { Expose as Expose463, Transform as
|
|
26258
|
+
import { Expose as Expose463, Transform as Transform57, Type as Type312 } from "class-transformer";
|
|
26261
26259
|
import {
|
|
26262
26260
|
ArrayNotEmpty as ArrayNotEmpty5,
|
|
26263
26261
|
IsArray as IsArray164,
|
|
@@ -26360,7 +26358,7 @@ __decorateClass([
|
|
|
26360
26358
|
ValidateNested284()
|
|
26361
26359
|
], PersonalENTITY.prototype, "TipoDocumento", 2);
|
|
26362
26360
|
__decorateClass([
|
|
26363
|
-
|
|
26361
|
+
Transform57(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
26364
26362
|
IsString363({ message: "debe ser un texto" }),
|
|
26365
26363
|
IsNotEmpty322({ message: "es requerido" }),
|
|
26366
26364
|
Length255(1, 41, { message: "debe tener entre 1 y 40 caracteres" }),
|
|
@@ -27440,7 +27438,7 @@ __decorateClass([
|
|
|
27440
27438
|
], ContratistasDTO.prototype, "Estado", 2);
|
|
27441
27439
|
|
|
27442
27440
|
// src/configuracion/usuarios/shared/index.ts
|
|
27443
|
-
import { Expose as Expose486, Transform as
|
|
27441
|
+
import { Expose as Expose486, Transform as Transform58, Type as Type328 } from "class-transformer";
|
|
27444
27442
|
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";
|
|
27445
27443
|
var UsuarioENTITY = class {
|
|
27446
27444
|
IdUsuario = 0;
|
|
@@ -27518,7 +27516,7 @@ __decorateClass([
|
|
|
27518
27516
|
ValidateNested294()
|
|
27519
27517
|
], UsuarioENTITY.prototype, "TipoDocumento", 2);
|
|
27520
27518
|
__decorateClass([
|
|
27521
|
-
|
|
27519
|
+
Transform58(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
27522
27520
|
IsString385({ message: "debe ser un texto" }),
|
|
27523
27521
|
IsNotEmpty342({ message: "es requerido" }),
|
|
27524
27522
|
Length276(1, 30, { message: "debe tener entre 1 y 30 caracteres" }),
|
|
@@ -27668,7 +27666,7 @@ __decorateClass([
|
|
|
27668
27666
|
], UsuarioENTITY.prototype, "Contratistas", 2);
|
|
27669
27667
|
|
|
27670
27668
|
// src/configuracion/tipo opcion sistema/shared/index.ts
|
|
27671
|
-
import { Expose as Expose487, Transform as
|
|
27669
|
+
import { Expose as Expose487, Transform as Transform59, Type as Type329 } from "class-transformer";
|
|
27672
27670
|
import { IsDefined as IsDefined135, IsNumber as IsNumber324, IsString as IsString386, Length as Length277, Min as Min253, ValidateNested as ValidateNested295 } from "class-validator";
|
|
27673
27671
|
var TipoOpcionSistemaENTITY = class {
|
|
27674
27672
|
IdTipoOpcion = 0;
|
|
@@ -27697,7 +27695,7 @@ __decorateClass([
|
|
|
27697
27695
|
], TipoOpcionSistemaENTITY.prototype, "Descripcion", 2);
|
|
27698
27696
|
__decorateClass([
|
|
27699
27697
|
IsDefined135({ message: "El campo Padre es obligatorio" }),
|
|
27700
|
-
|
|
27698
|
+
Transform59(({ value }) => Number(value)),
|
|
27701
27699
|
Expose487(),
|
|
27702
27700
|
IsNumber324({}, { message: "debe ser un numero" }),
|
|
27703
27701
|
Min253(0, { message: "el valor m\xEDnimo es 0" })
|
|
@@ -27796,7 +27794,7 @@ __decorateClass([
|
|
|
27796
27794
|
import { IsDate as IsDate117, IsEnum as IsEnum12, IsNotEmpty as IsNotEmpty346, IsString as IsString390, Length as Length281, ValidateNested as ValidateNested297 } from "class-validator";
|
|
27797
27795
|
|
|
27798
27796
|
// src/configuracion/notificaciones/shared/dto/data-adicional-dto.ts
|
|
27799
|
-
import { Expose as Expose490, Transform as
|
|
27797
|
+
import { Expose as Expose490, Transform as Transform60 } from "class-transformer";
|
|
27800
27798
|
import { IsDate as IsDate116, IsEnum as IsEnum11, IsNotEmpty as IsNotEmpty345, IsString as IsString389, Length as Length280 } from "class-validator";
|
|
27801
27799
|
var OperacionDataAdicional = /* @__PURE__ */ ((OperacionDataAdicional2) => {
|
|
27802
27800
|
OperacionDataAdicional2["CREAR"] = "crear";
|
|
@@ -27827,7 +27825,7 @@ __decorateClass([
|
|
|
27827
27825
|
Expose490()
|
|
27828
27826
|
], DataAdicionalDTO.prototype, "operacion", 2);
|
|
27829
27827
|
__decorateClass([
|
|
27830
|
-
|
|
27828
|
+
Transform60(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
27831
27829
|
IsDate116({ message: "debe ser una fecha" }),
|
|
27832
27830
|
IsNotEmpty345({ message: "es requerido" }),
|
|
27833
27831
|
Expose490()
|
|
@@ -27839,7 +27837,7 @@ __decorateClass([
|
|
|
27839
27837
|
], DataAdicionalDTO.prototype, "localName", 2);
|
|
27840
27838
|
|
|
27841
27839
|
// src/configuracion/notificaciones/shared/index.ts
|
|
27842
|
-
import { Expose as Expose491, Transform as
|
|
27840
|
+
import { Expose as Expose491, Transform as Transform61, Type as Type331 } from "class-transformer";
|
|
27843
27841
|
var TipoNotificacion = /* @__PURE__ */ ((TipoNotificacion2) => {
|
|
27844
27842
|
TipoNotificacion2["INFO"] = "info";
|
|
27845
27843
|
TipoNotificacion2["ERROR"] = "error";
|
|
@@ -27882,7 +27880,7 @@ __decorateClass([
|
|
|
27882
27880
|
Expose491()
|
|
27883
27881
|
], NotificacionesENTITY.prototype, "titulo", 2);
|
|
27884
27882
|
__decorateClass([
|
|
27885
|
-
|
|
27883
|
+
Transform61(({ value }) => typeof value === "string" ? value.substring(0, 400) : value),
|
|
27886
27884
|
IsString390({ message: "debe ser un texto" }),
|
|
27887
27885
|
Length281(1, 400, { message: "debe tener entre 1 y 400 caracteres" }),
|
|
27888
27886
|
Expose491()
|
|
@@ -27904,13 +27902,13 @@ __decorateClass([
|
|
|
27904
27902
|
ValidateNested297()
|
|
27905
27903
|
], NotificacionesENTITY.prototype, "dataAdicional", 2);
|
|
27906
27904
|
__decorateClass([
|
|
27907
|
-
|
|
27905
|
+
Transform61(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
27908
27906
|
IsDate117({ message: "debe ser una fecha" }),
|
|
27909
27907
|
IsNotEmpty346({ message: "es requerido" }),
|
|
27910
27908
|
Expose491()
|
|
27911
27909
|
], NotificacionesENTITY.prototype, "fechaCreacion", 2);
|
|
27912
27910
|
__decorateClass([
|
|
27913
|
-
|
|
27911
|
+
Transform61(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
27914
27912
|
IsDate117({ message: "debe ser una fecha" }),
|
|
27915
27913
|
IsNotEmpty346({ message: "es requerido" }),
|
|
27916
27914
|
Expose491()
|
|
@@ -28274,7 +28272,7 @@ __decorateClass([
|
|
|
28274
28272
|
], EmpresaValDTO.prototype, "TipoEmpresa", 2);
|
|
28275
28273
|
|
|
28276
28274
|
// src/operativa/procesos/valorizadas_toa/shared/dto/inventario-val-dto.ts
|
|
28277
|
-
import { Expose as Expose500, Transform as
|
|
28275
|
+
import { Expose as Expose500, Transform as Transform62 } from "class-transformer";
|
|
28278
28276
|
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";
|
|
28279
28277
|
var InventarioValDTO = class {
|
|
28280
28278
|
Descripcion = "";
|
|
@@ -28313,7 +28311,7 @@ __decorateClass([
|
|
|
28313
28311
|
], InventarioValDTO.prototype, "CodigoSAP", 2);
|
|
28314
28312
|
__decorateClass([
|
|
28315
28313
|
IsString399({ message: "debe ser un texto" }),
|
|
28316
|
-
|
|
28314
|
+
Transform62(({ value }) => value ? String(value) : value),
|
|
28317
28315
|
Length288(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
28318
28316
|
Expose500(),
|
|
28319
28317
|
IsOptional20()
|
|
@@ -28755,7 +28753,7 @@ __decorateClass([
|
|
|
28755
28753
|
], ProductosServiciosLiqDTO.prototype, "Cantidad", 2);
|
|
28756
28754
|
|
|
28757
28755
|
// src/operativa/procesos/liquidadas_toa/shared/dto/inventario-liq-dto.ts
|
|
28758
|
-
import { Expose as Expose505, Transform as
|
|
28756
|
+
import { Expose as Expose505, Transform as Transform63 } from "class-transformer";
|
|
28759
28757
|
import { IsEnum as IsEnum15, IsNotEmpty as IsNotEmpty357, IsNumber as IsNumber335, IsString as IsString404, Length as Length293, Min as Min264 } from "class-validator";
|
|
28760
28758
|
var InventarioLiqDTO = class {
|
|
28761
28759
|
Descripcion = "";
|
|
@@ -28792,7 +28790,7 @@ __decorateClass([
|
|
|
28792
28790
|
], InventarioLiqDTO.prototype, "CodigoSAP", 2);
|
|
28793
28791
|
__decorateClass([
|
|
28794
28792
|
IsString404({ message: "debe ser un texto" }),
|
|
28795
|
-
|
|
28793
|
+
Transform63(({ value }) => value ? String(value) : value),
|
|
28796
28794
|
Length293(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
28797
28795
|
Expose505()
|
|
28798
28796
|
], InventarioLiqDTO.prototype, "NumeroSerie", 2);
|
|
@@ -30238,7 +30236,7 @@ var ISheetsJsonChileTdC = class {
|
|
|
30238
30236
|
};
|
|
30239
30237
|
|
|
30240
30238
|
// src/operativa/procesos/toa_claro/shared/index.ts
|
|
30241
|
-
import { Expose as Expose534, Transform as
|
|
30239
|
+
import { Expose as Expose534, Transform as Transform65, Type as Type349 } from "class-transformer";
|
|
30242
30240
|
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";
|
|
30243
30241
|
|
|
30244
30242
|
// src/operativa/procesos/toa_claro/shared/dto/direccion toa dto.ts
|
|
@@ -30578,7 +30576,7 @@ __decorateClass([
|
|
|
30578
30576
|
Expose534()
|
|
30579
30577
|
], ToaClaroENTITY.prototype, "ID_ToaClaro", 2);
|
|
30580
30578
|
__decorateClass([
|
|
30581
|
-
|
|
30579
|
+
Transform65(({ value }) => "TOA_CLARO" /* TOA_CLARO */),
|
|
30582
30580
|
IsEnum17(SistemaRecurso, { message: "debe ser un valor v\xE1lido de enum SistemaRecurso" }),
|
|
30583
30581
|
Expose534()
|
|
30584
30582
|
], ToaClaroENTITY.prototype, "Sistema", 2);
|
|
@@ -30915,7 +30913,7 @@ import { IsArray as IsArray178, IsDefined as IsDefined144, IsString as IsString4
|
|
|
30915
30913
|
import { Expose as Expose537, Type as Type350 } from "class-transformer";
|
|
30916
30914
|
|
|
30917
30915
|
// src/operativa/procesos/toa_claro/data_scraper/dto/items-orden-scraper-claro-vtr-dto.ts
|
|
30918
|
-
import { Expose as Expose535, Transform as
|
|
30916
|
+
import { Expose as Expose535, Transform as Transform66 } from "class-transformer";
|
|
30919
30917
|
import { IsDefined as IsDefined142, IsNumber as IsNumber349, IsString as IsString431 } from "class-validator";
|
|
30920
30918
|
var ItemsOrdenScraperClaroVTRDTO = class {
|
|
30921
30919
|
id = "";
|
|
@@ -30959,7 +30957,7 @@ __decorateClass([
|
|
|
30959
30957
|
IsNumber349({}, { message: "El campo cantidad debe ser un n\xFAmero" })
|
|
30960
30958
|
], ItemsOrdenScraperClaroVTRDTO.prototype, "cantidad", 2);
|
|
30961
30959
|
__decorateClass([
|
|
30962
|
-
|
|
30960
|
+
Transform66(({ value }) => typeof value === "number" ? value.toString() : value),
|
|
30963
30961
|
Expose535(),
|
|
30964
30962
|
IsDefined142({ message: "El campo ServiceId es requerido" }),
|
|
30965
30963
|
IsString431({ message: "El campo ServiceId debe ser una cadena de texto" })
|
|
@@ -30970,7 +30968,7 @@ __decorateClass([
|
|
|
30970
30968
|
IsString431({ message: "El campo estado debe ser una cadena de texto" })
|
|
30971
30969
|
], ItemsOrdenScraperClaroVTRDTO.prototype, "estado", 2);
|
|
30972
30970
|
__decorateClass([
|
|
30973
|
-
|
|
30971
|
+
Transform66(({ value }) => typeof value === "number" ? value.toString() : value),
|
|
30974
30972
|
Expose535(),
|
|
30975
30973
|
IsDefined142({ message: "El campo serial es requerido" }),
|
|
30976
30974
|
IsString431({ message: "El campo serial debe ser una cadena de texto" })
|
|
@@ -31481,7 +31479,7 @@ import {
|
|
|
31481
31479
|
import "reflect-metadata";
|
|
31482
31480
|
|
|
31483
31481
|
// src/operativa/procesos/toa_movistar/shared/dto/index.ts
|
|
31484
|
-
import { Expose as Expose538
|
|
31482
|
+
import { Expose as Expose538 } from "class-transformer";
|
|
31485
31483
|
import {
|
|
31486
31484
|
IsDefined as IsDefined145,
|
|
31487
31485
|
IsString as IsString434,
|
|
@@ -31610,41 +31608,37 @@ var MaterialestoaDTO = class {
|
|
|
31610
31608
|
invpool = "";
|
|
31611
31609
|
};
|
|
31612
31610
|
__decorateClass([
|
|
31613
|
-
Expose538(),
|
|
31614
|
-
Transform68(({ value, obj }) => value ?? obj["code"] ?? obj.codigo),
|
|
31611
|
+
Expose538({ name: "code" }),
|
|
31615
31612
|
IsDefined145({ message: "El campo code es obligatorio." }),
|
|
31616
31613
|
IsString434()
|
|
31617
31614
|
], MaterialestoaDTO.prototype, "codigo", 2);
|
|
31618
31615
|
__decorateClass([
|
|
31619
|
-
Expose538(),
|
|
31620
|
-
Transform68(({ value, obj }) => value ?? obj["description"] ?? obj.descripcion),
|
|
31616
|
+
Expose538({ name: "description" }),
|
|
31621
31617
|
IsDefined145({ message: "El campo description es obligatorio." }),
|
|
31622
31618
|
IsString434()
|
|
31623
31619
|
], MaterialestoaDTO.prototype, "descripcion", 2);
|
|
31624
31620
|
__decorateClass([
|
|
31625
|
-
Expose538(),
|
|
31626
|
-
Transform68(({ value, obj }) => value ?? obj["lot"] ?? obj.lote),
|
|
31621
|
+
Expose538({ name: "lot" }),
|
|
31627
31622
|
IsDefined145({ message: "El campo lot es obligatorio." }),
|
|
31628
31623
|
IsString434()
|
|
31629
31624
|
], MaterialestoaDTO.prototype, "lote", 2);
|
|
31630
31625
|
__decorateClass([
|
|
31631
|
-
Expose538(),
|
|
31632
|
-
Transform68(({ value, obj }) => value ?? obj["quantity"] ?? obj.cantidad),
|
|
31626
|
+
Expose538({ name: "quantity" }),
|
|
31633
31627
|
IsDefined145({ message: "El campo quantity es obligatorio." }),
|
|
31634
31628
|
IsNumber351()
|
|
31635
31629
|
], MaterialestoaDTO.prototype, "cantidad", 2);
|
|
31636
31630
|
__decorateClass([
|
|
31637
|
-
Expose538(),
|
|
31631
|
+
Expose538({ name: "invsn" }),
|
|
31638
31632
|
IsDefined145({ message: "El campo invsn es obligatorio." }),
|
|
31639
31633
|
IsString434()
|
|
31640
31634
|
], MaterialestoaDTO.prototype, "invsn", 2);
|
|
31641
31635
|
__decorateClass([
|
|
31642
|
-
Expose538(),
|
|
31636
|
+
Expose538({ name: "invtype" }),
|
|
31643
31637
|
IsDefined145({ message: "El campo invtype es obligatorio." }),
|
|
31644
31638
|
IsString434()
|
|
31645
31639
|
], MaterialestoaDTO.prototype, "invtype", 2);
|
|
31646
31640
|
__decorateClass([
|
|
31647
|
-
Expose538(),
|
|
31641
|
+
Expose538({ name: "invpool" }),
|
|
31648
31642
|
IsDefined145({ message: "El campo invpool es obligatorio." }),
|
|
31649
31643
|
IsString434()
|
|
31650
31644
|
], MaterialestoaDTO.prototype, "invpool", 2);
|
|
@@ -32604,10 +32598,10 @@ __decorateClass([
|
|
|
32604
32598
|
], Peru9112TOAENTITY.prototype, "EECC", 2);
|
|
32605
32599
|
|
|
32606
32600
|
// src/operativa/procesos/onnet_fibra/shared/index.ts
|
|
32607
|
-
import { Expose as Expose550, Transform as
|
|
32601
|
+
import { Expose as Expose550, Transform as Transform71, Type as Type356 } from "class-transformer";
|
|
32608
32602
|
|
|
32609
32603
|
// src/operativa/procesos/onnet_fibra/shared/dto/bitacora_de_ordenes.ts
|
|
32610
|
-
import { Expose as Expose542, Transform as
|
|
32604
|
+
import { Expose as Expose542, Transform as Transform67 } from "class-transformer";
|
|
32611
32605
|
import { IsDate as IsDate129, IsDefined as IsDefined149, IsNumber as IsNumber355, IsOptional as IsOptional23, IsString as IsString438 } from "class-validator";
|
|
32612
32606
|
|
|
32613
32607
|
// src/operativa/procesos/onnet_fibra/utils/format_date_onnet_fibra.ts
|
|
@@ -32675,14 +32669,14 @@ __decorateClass([
|
|
|
32675
32669
|
], BitacoraDeOrdenesDTO.prototype, "estado", 2);
|
|
32676
32670
|
__decorateClass([
|
|
32677
32671
|
IsOptional23(),
|
|
32678
|
-
|
|
32672
|
+
Transform67(({ value }) => value ? String(value) : ""),
|
|
32679
32673
|
IsString438({ message: "El campo lt debe ser una cadena de texto" }),
|
|
32680
32674
|
Expose542()
|
|
32681
32675
|
], BitacoraDeOrdenesDTO.prototype, "lt", 2);
|
|
32682
32676
|
__decorateClass([
|
|
32683
32677
|
IsOptional23(),
|
|
32684
32678
|
IsNumber355({}, { message: "El campo id_orden_mantenimiento_anexo debe ser un n\xFAmero" }),
|
|
32685
|
-
|
|
32679
|
+
Transform67(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
|
|
32686
32680
|
Expose542()
|
|
32687
32681
|
], BitacoraDeOrdenesDTO.prototype, "id_orden_mantenimiento_anexo", 2);
|
|
32688
32682
|
__decorateClass([
|
|
@@ -32693,7 +32687,7 @@ __decorateClass([
|
|
|
32693
32687
|
__decorateClass([
|
|
32694
32688
|
IsOptional23(),
|
|
32695
32689
|
IsNumber355({}, { message: "El campo cantidad_clientes_afectados debe ser un n\xFAmero" }),
|
|
32696
|
-
|
|
32690
|
+
Transform67(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
|
|
32697
32691
|
Expose542()
|
|
32698
32692
|
], BitacoraDeOrdenesDTO.prototype, "cantidad_clientes_afectados", 2);
|
|
32699
32693
|
__decorateClass([
|
|
@@ -32729,13 +32723,13 @@ __decorateClass([
|
|
|
32729
32723
|
__decorateClass([
|
|
32730
32724
|
IsOptional23(),
|
|
32731
32725
|
IsString438({ message: "El campo tecnologia debe ser una cadena de texto" }),
|
|
32732
|
-
|
|
32726
|
+
Transform67(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32733
32727
|
Expose542()
|
|
32734
32728
|
], BitacoraDeOrdenesDTO.prototype, "tecnologia", 2);
|
|
32735
32729
|
__decorateClass([
|
|
32736
32730
|
IsOptional23(),
|
|
32737
32731
|
IsString438({ message: "El campo olt debe ser una cadena de texto" }),
|
|
32738
|
-
|
|
32732
|
+
Transform67(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32739
32733
|
Expose542()
|
|
32740
32734
|
], BitacoraDeOrdenesDTO.prototype, "olt", 2);
|
|
32741
32735
|
__decorateClass([
|
|
@@ -32790,7 +32784,7 @@ __decorateClass([
|
|
|
32790
32784
|
], BitacoraDeOrdenesDTO.prototype, "tipo_orden", 2);
|
|
32791
32785
|
__decorateClass([
|
|
32792
32786
|
IsOptional23(),
|
|
32793
|
-
|
|
32787
|
+
Transform67(({ value }) => formatDateOnnetFibra(value)),
|
|
32794
32788
|
IsDate129({ message: "El campo fecha_instalacion debe ser FECHA" }),
|
|
32795
32789
|
Expose542()
|
|
32796
32790
|
], BitacoraDeOrdenesDTO.prototype, "fecha_instalacion", 2);
|
|
@@ -32812,7 +32806,7 @@ __decorateClass([
|
|
|
32812
32806
|
__decorateClass([
|
|
32813
32807
|
IsOptional23(),
|
|
32814
32808
|
IsString438({ message: "El campo puerto_pon debe ser una cadena de texto" }),
|
|
32815
|
-
|
|
32809
|
+
Transform67(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32816
32810
|
Expose542()
|
|
32817
32811
|
], BitacoraDeOrdenesDTO.prototype, "puerto_pon", 2);
|
|
32818
32812
|
__decorateClass([
|
|
@@ -32822,20 +32816,20 @@ __decorateClass([
|
|
|
32822
32816
|
], BitacoraDeOrdenesDTO.prototype, "nombre_especialidad", 2);
|
|
32823
32817
|
__decorateClass([
|
|
32824
32818
|
IsOptional23({ message: "El campo cliente es opcional" }),
|
|
32825
|
-
|
|
32819
|
+
Transform67(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32826
32820
|
IsString438({ message: "El campo cliente debe ser una cadena de texto" }),
|
|
32827
32821
|
Expose542()
|
|
32828
32822
|
], BitacoraDeOrdenesDTO.prototype, "cliente", 2);
|
|
32829
32823
|
__decorateClass([
|
|
32830
32824
|
IsOptional23({ message: "El campo comuna es opcional" }),
|
|
32831
|
-
|
|
32825
|
+
Transform67(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32832
32826
|
IsString438({ message: "El campo comuna debe ser una cadena de texto" }),
|
|
32833
32827
|
Expose542()
|
|
32834
32828
|
], BitacoraDeOrdenesDTO.prototype, "comuna", 2);
|
|
32835
32829
|
__decorateClass([
|
|
32836
32830
|
IsOptional23({ message: "El campo pep es opcional" }),
|
|
32837
32831
|
IsString438({ message: "El campo pep debe ser una cadena de texto" }),
|
|
32838
|
-
|
|
32832
|
+
Transform67(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
32839
32833
|
Expose542()
|
|
32840
32834
|
], BitacoraDeOrdenesDTO.prototype, "pep", 2);
|
|
32841
32835
|
__decorateClass([
|
|
@@ -32865,7 +32859,7 @@ __decorateClass([
|
|
|
32865
32859
|
__decorateClass([
|
|
32866
32860
|
IsOptional23(),
|
|
32867
32861
|
IsNumber355({}, { message: "El campo capacidad_cable debe ser una cadena de texto" }),
|
|
32868
|
-
|
|
32862
|
+
Transform67(({ value }) => isNaN(value) ? 0 : Number(value)),
|
|
32869
32863
|
Expose542()
|
|
32870
32864
|
], BitacoraDeOrdenesDTO.prototype, "capacidad_cable", 2);
|
|
32871
32865
|
__decorateClass([
|
|
@@ -32880,7 +32874,7 @@ __decorateClass([
|
|
|
32880
32874
|
], BitacoraDeOrdenesDTO.prototype, "mensaje_contingencia", 2);
|
|
32881
32875
|
|
|
32882
32876
|
// src/operativa/procesos/onnet_fibra/shared/dto/estado_de_pago.ts
|
|
32883
|
-
import { Expose as Expose543, Transform as
|
|
32877
|
+
import { Expose as Expose543, Transform as Transform68 } from "class-transformer";
|
|
32884
32878
|
import { IsDate as IsDate130, IsDefined as IsDefined150, IsNumber as IsNumber356, IsString as IsString439 } from "class-validator";
|
|
32885
32879
|
var EstadoDePagoDTO = class {
|
|
32886
32880
|
capacidad_cable = "";
|
|
@@ -32908,7 +32902,7 @@ __decorateClass([
|
|
|
32908
32902
|
Expose543()
|
|
32909
32903
|
], EstadoDePagoDTO.prototype, "estado", 2);
|
|
32910
32904
|
__decorateClass([
|
|
32911
|
-
|
|
32905
|
+
Transform68(({ value }) => formatDateOnnetFibra(value)),
|
|
32912
32906
|
IsDate130({ message: "El campo fecha_crea debe ser una cadena de texto" }),
|
|
32913
32907
|
Expose543()
|
|
32914
32908
|
], EstadoDePagoDTO.prototype, "fecha_crea", 2);
|
|
@@ -32923,7 +32917,7 @@ __decorateClass([
|
|
|
32923
32917
|
Expose543()
|
|
32924
32918
|
], EstadoDePagoDTO.prototype, "id_orden_mantenimiento", 2);
|
|
32925
32919
|
__decorateClass([
|
|
32926
|
-
|
|
32920
|
+
Transform68(({ value }) => formatDateOnnetFibra(value)),
|
|
32927
32921
|
IsDate130({ message: "El campo fecha_crea debe ser una cadena de texto" }),
|
|
32928
32922
|
Expose543()
|
|
32929
32923
|
], EstadoDePagoDTO.prototype, "fecha_validador", 2);
|
|
@@ -33028,7 +33022,7 @@ import { Expose as Expose548, Type as Type355 } from "class-transformer";
|
|
|
33028
33022
|
import { IsArray as IsArray182, IsDefined as IsDefined155, IsString as IsString444, ValidateNested as ValidateNested316 } from "class-validator";
|
|
33029
33023
|
|
|
33030
33024
|
// src/operativa/procesos/onnet_fibra/shared/dto/detail-maintenance-order/detalle_orden_real_dto.ts
|
|
33031
|
-
import { Expose as Expose545, Transform as
|
|
33025
|
+
import { Expose as Expose545, Transform as Transform69, Type as Type354 } from "class-transformer";
|
|
33032
33026
|
import { IsDefined as IsDefined152, IsNumber as IsNumber358, IsOptional as IsOptional24, IsString as IsString441 } from "class-validator";
|
|
33033
33027
|
var DetalleOrdenRealDTO = class {
|
|
33034
33028
|
descripcion = "";
|
|
@@ -33046,25 +33040,25 @@ var DetalleOrdenRealDTO = class {
|
|
|
33046
33040
|
__decorateClass([
|
|
33047
33041
|
IsDefined152({ message: "El campo descripcion es requerido" }),
|
|
33048
33042
|
IsString441({ message: "El campo descripcion debe ser una cadena de texto" }),
|
|
33049
|
-
|
|
33043
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33050
33044
|
Expose545()
|
|
33051
33045
|
], DetalleOrdenRealDTO.prototype, "descripcion", 2);
|
|
33052
33046
|
__decorateClass([
|
|
33053
33047
|
IsDefined152({ message: "El campo tipo es requerido" }),
|
|
33054
33048
|
IsString441({ message: "El campo tipo debe ser una cadena de texto" }),
|
|
33055
|
-
|
|
33049
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33056
33050
|
Expose545()
|
|
33057
33051
|
], DetalleOrdenRealDTO.prototype, "tipo", 2);
|
|
33058
33052
|
__decorateClass([
|
|
33059
33053
|
IsDefined152({ message: "El campo tipo_material es requerido" }),
|
|
33060
33054
|
IsString441({ message: "El campo tipo_material debe ser una cadena de texto" }),
|
|
33061
|
-
|
|
33055
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33062
33056
|
Expose545()
|
|
33063
33057
|
], DetalleOrdenRealDTO.prototype, "tipo_material", 2);
|
|
33064
33058
|
__decorateClass([
|
|
33065
33059
|
IsDefined152({ message: "El campo codigo es requerido" }),
|
|
33066
33060
|
IsString441({ message: "El campo codigo debe ser una cadena de texto" }),
|
|
33067
|
-
|
|
33061
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33068
33062
|
Expose545()
|
|
33069
33063
|
], DetalleOrdenRealDTO.prototype, "codigo", 2);
|
|
33070
33064
|
__decorateClass([
|
|
@@ -33078,12 +33072,12 @@ __decorateClass([
|
|
|
33078
33072
|
__decorateClass([
|
|
33079
33073
|
IsOptional24({ message: "El campo tecnico es requerido" }),
|
|
33080
33074
|
IsString441({ message: "El campo tecnico debe ser una cadena de texto" }),
|
|
33081
|
-
|
|
33075
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33082
33076
|
Expose545()
|
|
33083
33077
|
], DetalleOrdenRealDTO.prototype, "tecnico", 2);
|
|
33084
33078
|
__decorateClass([
|
|
33085
33079
|
IsString441({ message: "El campo unidad debe ser una cadena de texto" }),
|
|
33086
|
-
|
|
33080
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33087
33081
|
Expose545()
|
|
33088
33082
|
], DetalleOrdenRealDTO.prototype, "unidad", 2);
|
|
33089
33083
|
__decorateClass([
|
|
@@ -33093,18 +33087,18 @@ __decorateClass([
|
|
|
33093
33087
|
__decorateClass([
|
|
33094
33088
|
IsOptional24({ message: "El campo contrato es opcional" }),
|
|
33095
33089
|
IsString441({ message: "El campo contrato debe ser una cadena de texto" }),
|
|
33096
|
-
|
|
33090
|
+
Transform69(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
33097
33091
|
Expose545()
|
|
33098
33092
|
], DetalleOrdenRealDTO.prototype, "contrato", 2);
|
|
33099
33093
|
__decorateClass([
|
|
33100
33094
|
Type354(() => CodigoNombreDTO),
|
|
33101
33095
|
IsOptional24(),
|
|
33102
|
-
|
|
33096
|
+
Transform69(({ value }) => value ?? new CodigoNombreDTO()),
|
|
33103
33097
|
Expose545()
|
|
33104
33098
|
], DetalleOrdenRealDTO.prototype, "especialidad", 2);
|
|
33105
33099
|
|
|
33106
33100
|
// src/operativa/procesos/onnet_fibra/shared/dto/detail-maintenance-order/orden_detail_maintenance.ts
|
|
33107
|
-
import { Expose as Expose546, Transform as
|
|
33101
|
+
import { Expose as Expose546, Transform as Transform70 } from "class-transformer";
|
|
33108
33102
|
import { IsDate as IsDate131, IsDefined as IsDefined153, IsNumber as IsNumber359, IsString as IsString442 } from "class-validator";
|
|
33109
33103
|
var OrdenDetailMaintenanceDTO = class {
|
|
33110
33104
|
tipo = "";
|
|
@@ -33155,7 +33149,7 @@ __decorateClass([
|
|
|
33155
33149
|
Expose546()
|
|
33156
33150
|
], OrdenDetailMaintenanceDTO.prototype, "estado", 2);
|
|
33157
33151
|
__decorateClass([
|
|
33158
|
-
|
|
33152
|
+
Transform70(({ value }) => formatDateOnnetFibra(value)),
|
|
33159
33153
|
IsDate131({ message: "El campo fecha_crea debe ser una cadena de texto" }),
|
|
33160
33154
|
Expose546()
|
|
33161
33155
|
], OrdenDetailMaintenanceDTO.prototype, "fecha_crea", 2);
|
|
@@ -33510,12 +33504,12 @@ __decorateClass([
|
|
|
33510
33504
|
Expose550()
|
|
33511
33505
|
], OnnetFibraENTITY.prototype, "LlaveRegla", 2);
|
|
33512
33506
|
__decorateClass([
|
|
33513
|
-
|
|
33507
|
+
Transform71(({ value }) => value === void 0 || value === null ? 0 : value),
|
|
33514
33508
|
IsNumber362({}, { message: "El campo MO debe ser numero" }),
|
|
33515
33509
|
Expose550()
|
|
33516
33510
|
], OnnetFibraENTITY.prototype, "MO", 2);
|
|
33517
33511
|
__decorateClass([
|
|
33518
|
-
|
|
33512
|
+
Transform71(({ value }) => value === void 0 || value === null ? 0 : value),
|
|
33519
33513
|
IsNumber362({}, { message: "El campo PB debe ser numero" }),
|
|
33520
33514
|
Expose550()
|
|
33521
33515
|
], OnnetFibraENTITY.prototype, "PB", 2);
|
|
@@ -33663,7 +33657,7 @@ __decorateClass([
|
|
|
33663
33657
|
], RequestNumberTTLENTITY.prototype, "createdAt", 2);
|
|
33664
33658
|
|
|
33665
33659
|
// src/operativa/procesos/win_order/shared/index.ts
|
|
33666
|
-
import { Expose as Expose556, Transform as
|
|
33660
|
+
import { Expose as Expose556, Transform as Transform74, Type as Type362 } from "class-transformer";
|
|
33667
33661
|
import {
|
|
33668
33662
|
IsDefined as IsDefined163,
|
|
33669
33663
|
IsString as IsString452,
|
|
@@ -33677,7 +33671,7 @@ import {
|
|
|
33677
33671
|
import "reflect-metadata";
|
|
33678
33672
|
|
|
33679
33673
|
// src/operativa/procesos/win_order/shared/dto/index.ts
|
|
33680
|
-
import { Expose as Expose553, Transform as
|
|
33674
|
+
import { Expose as Expose553, Transform as Transform72 } from "class-transformer";
|
|
33681
33675
|
import {
|
|
33682
33676
|
IsDefined as IsDefined160,
|
|
33683
33677
|
IsString as IsString449,
|
|
@@ -33771,7 +33765,7 @@ var MaterialeswinDTO = class {
|
|
|
33771
33765
|
__decorateClass([
|
|
33772
33766
|
Expose553(),
|
|
33773
33767
|
IsDefined160({ message: "El campo key es obligatorio." }),
|
|
33774
|
-
|
|
33768
|
+
Transform72(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
33775
33769
|
IsString449()
|
|
33776
33770
|
], MaterialeswinDTO.prototype, "key", 2);
|
|
33777
33771
|
__decorateClass([
|
|
@@ -33855,7 +33849,7 @@ import {
|
|
|
33855
33849
|
import "reflect-metadata";
|
|
33856
33850
|
|
|
33857
33851
|
// src/operativa/procesos/win_order_db/shared/dto/index.ts
|
|
33858
|
-
import { Expose as Expose554, Transform as
|
|
33852
|
+
import { Expose as Expose554, Transform as Transform73 } from "class-transformer";
|
|
33859
33853
|
import {
|
|
33860
33854
|
IsDefined as IsDefined161,
|
|
33861
33855
|
IsString as IsString450,
|
|
@@ -33949,7 +33943,7 @@ var MaterialeswinDBDTO = class {
|
|
|
33949
33943
|
__decorateClass([
|
|
33950
33944
|
Expose554(),
|
|
33951
33945
|
IsDefined161({ message: "El campo key es obligatorio." }),
|
|
33952
|
-
|
|
33946
|
+
Transform73(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
33953
33947
|
IsString450()
|
|
33954
33948
|
], MaterialeswinDBDTO.prototype, "key", 2);
|
|
33955
33949
|
__decorateClass([
|
|
@@ -34315,7 +34309,7 @@ __decorateClass([
|
|
|
34315
34309
|
], Peru9112WinENTITY.prototype, "estado", 2);
|
|
34316
34310
|
__decorateClass([
|
|
34317
34311
|
Expose556({ name: "Estado Interno" }),
|
|
34318
|
-
|
|
34312
|
+
Transform74(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
34319
34313
|
IsDefined163({ message: "El campo estado interno es obligatorio." }),
|
|
34320
34314
|
IsEnum22(StateInternalOrder, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrder).join(", ")}.` })
|
|
34321
34315
|
], Peru9112WinENTITY.prototype, "estado_interno", 2);
|
|
@@ -34396,7 +34390,7 @@ __decorateClass([
|
|
|
34396
34390
|
], Peru9112WinENTITY.prototype, "EECC", 2);
|
|
34397
34391
|
|
|
34398
34392
|
// src/operativa/procesos/fibramas_order/shared/index.ts
|
|
34399
|
-
import { Expose as Expose560, Transform as
|
|
34393
|
+
import { Expose as Expose560, Transform as Transform77, Type as Type366 } from "class-transformer";
|
|
34400
34394
|
import {
|
|
34401
34395
|
IsDefined as IsDefined167,
|
|
34402
34396
|
IsString as IsString456,
|
|
@@ -34410,7 +34404,7 @@ import {
|
|
|
34410
34404
|
import "reflect-metadata";
|
|
34411
34405
|
|
|
34412
34406
|
// src/operativa/procesos/fibramas_order/shared/dto/index.ts
|
|
34413
|
-
import { Expose as Expose557, Transform as
|
|
34407
|
+
import { Expose as Expose557, Transform as Transform75 } from "class-transformer";
|
|
34414
34408
|
import {
|
|
34415
34409
|
IsDefined as IsDefined164,
|
|
34416
34410
|
IsString as IsString453,
|
|
@@ -34429,7 +34423,7 @@ var MaterialesFibramasDTO = class {
|
|
|
34429
34423
|
__decorateClass([
|
|
34430
34424
|
Expose557(),
|
|
34431
34425
|
IsDefined164({ message: "El campo key es obligatorio." }),
|
|
34432
|
-
|
|
34426
|
+
Transform75(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
34433
34427
|
IsString453()
|
|
34434
34428
|
], MaterialesFibramasDTO.prototype, "key", 2);
|
|
34435
34429
|
__decorateClass([
|
|
@@ -34487,7 +34481,7 @@ import {
|
|
|
34487
34481
|
import "reflect-metadata";
|
|
34488
34482
|
|
|
34489
34483
|
// src/operativa/procesos/fibramas_order_db/shared/dto/index.ts
|
|
34490
|
-
import { Expose as Expose558, Transform as
|
|
34484
|
+
import { Expose as Expose558, Transform as Transform76 } from "class-transformer";
|
|
34491
34485
|
import {
|
|
34492
34486
|
IsDefined as IsDefined165,
|
|
34493
34487
|
IsString as IsString454,
|
|
@@ -34507,7 +34501,7 @@ var MaterialesFibramasDBDTO = class {
|
|
|
34507
34501
|
__decorateClass([
|
|
34508
34502
|
Expose558(),
|
|
34509
34503
|
IsDefined165({ message: "El campo key es obligatorio." }),
|
|
34510
|
-
|
|
34504
|
+
Transform76(({ obj }) => `${obj.codigo}${obj.invpool}${obj.invsn}`),
|
|
34511
34505
|
IsString454()
|
|
34512
34506
|
], MaterialesFibramasDBDTO.prototype, "key", 2);
|
|
34513
34507
|
__decorateClass([
|
|
@@ -34813,7 +34807,7 @@ __decorateClass([
|
|
|
34813
34807
|
], Peru9112FibramasENTITY.prototype, "estado_del_servicio", 2);
|
|
34814
34808
|
__decorateClass([
|
|
34815
34809
|
Expose560({ name: "Estado Interno" }),
|
|
34816
|
-
|
|
34810
|
+
Transform77(({ obj }) => obj["Estado Interno"] ?? obj.estado_interno),
|
|
34817
34811
|
IsDefined167({ message: "El campo estado interno es obligatorio." }),
|
|
34818
34812
|
IsEnum25(StateInternalOrder, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrder).join(", ")}.` })
|
|
34819
34813
|
], Peru9112FibramasENTITY.prototype, "estado_interno", 2);
|
|
@@ -35007,7 +35001,7 @@ __decorateClass([
|
|
|
35007
35001
|
], OrderStockENTITY.prototype, "state_replacement", 2);
|
|
35008
35002
|
|
|
35009
35003
|
// src/operativa/procesos/TOA orden liquidacion/shared/index.ts
|
|
35010
|
-
import { Expose as Expose562,
|
|
35004
|
+
import { Expose as Expose562, Type as Type368 } from "class-transformer";
|
|
35011
35005
|
import { IsArray as IsArray191, IsDefined as IsDefined169, IsEnum as IsEnum27, IsNumber as IsNumber373, IsObject as IsObject12, IsString as IsString458, IsUUID as IsUUID8, ValidateNested as ValidateNested326 } from "class-validator";
|
|
35012
35006
|
var TOAOrdenLiquidacionENTITY = class {
|
|
35013
35007
|
_id;
|
|
@@ -35035,145 +35029,124 @@ var TOAOrdenLiquidacionENTITY = class {
|
|
|
35035
35029
|
__decorateClass([
|
|
35036
35030
|
IsDefined169({ message: "El campo _id es obligatorio." }),
|
|
35037
35031
|
IsUUID8("4", { message: "La propiedad _id debe ser un UUID v4 v\xE1lido." }),
|
|
35038
|
-
Expose562()
|
|
35032
|
+
Expose562({ name: "_id" })
|
|
35039
35033
|
], TOAOrdenLiquidacionENTITY.prototype, "_id", 2);
|
|
35040
35034
|
__decorateClass([
|
|
35041
|
-
Expose562(),
|
|
35042
|
-
Transform80(({ value, obj }) => value ?? obj["T\xE9cnico"] ?? obj.tecnico),
|
|
35035
|
+
Expose562({ name: "T\xE9cnico" }),
|
|
35043
35036
|
Type368(() => String),
|
|
35044
35037
|
IsDefined169({ message: "El campo T\xE9cnico es obligatorio." }),
|
|
35045
35038
|
IsString458()
|
|
35046
35039
|
], TOAOrdenLiquidacionENTITY.prototype, "tecnico", 2);
|
|
35047
35040
|
__decorateClass([
|
|
35048
|
-
Expose562(),
|
|
35049
|
-
Transform80(({ value, obj }) => value ?? obj["ID Recurso"] ?? obj.id_recurso),
|
|
35041
|
+
Expose562({ name: "ID Recurso" }),
|
|
35050
35042
|
Type368(() => String),
|
|
35051
35043
|
IsDefined169({ message: "El campo ID Recurso es obligatorio." }),
|
|
35052
35044
|
IsString458()
|
|
35053
35045
|
], TOAOrdenLiquidacionENTITY.prototype, "id_recurso", 2);
|
|
35054
35046
|
__decorateClass([
|
|
35055
|
-
Expose562(),
|
|
35056
|
-
Transform80(({ value, obj }) => value ?? obj["N\xFAmero OT"] ?? obj.numero_ot),
|
|
35047
|
+
Expose562({ name: "N\xFAmero OT" }),
|
|
35057
35048
|
Type368(() => Number),
|
|
35058
35049
|
IsDefined169({ message: "El campo N\xFAmero OT es obligatorio." }),
|
|
35059
35050
|
IsNumber373()
|
|
35060
35051
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_ot", 2);
|
|
35061
35052
|
__decorateClass([
|
|
35062
|
-
Expose562(),
|
|
35063
|
-
Transform80(({ value, obj }) => value ?? obj["Subtipo de Actividad"] ?? obj.subtipo_de_actividad),
|
|
35053
|
+
Expose562({ name: "Subtipo de Actividad" }),
|
|
35064
35054
|
Type368(() => String),
|
|
35065
35055
|
IsDefined169({ message: "El campo Subtipo de Actividad es obligatorio." }),
|
|
35066
35056
|
IsString458()
|
|
35067
35057
|
], TOAOrdenLiquidacionENTITY.prototype, "subtipo_de_actividad", 2);
|
|
35068
35058
|
__decorateClass([
|
|
35069
|
-
Expose562(),
|
|
35070
|
-
Transform80(({ value, obj }) => value ?? obj["N\xFAmero de Petici\xF3n"] ?? obj.numero_de_peticion),
|
|
35059
|
+
Expose562({ name: "N\xFAmero de Petici\xF3n" }),
|
|
35071
35060
|
Type368(() => String),
|
|
35072
35061
|
IsDefined169({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
35073
35062
|
IsString458()
|
|
35074
35063
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_de_peticion", 2);
|
|
35075
35064
|
__decorateClass([
|
|
35076
|
-
Expose562(),
|
|
35077
|
-
Transform80(({ value, obj }) => value ?? obj["Localidad"] ?? obj.localidad),
|
|
35065
|
+
Expose562({ name: "Localidad" }),
|
|
35078
35066
|
Type368(() => String),
|
|
35079
35067
|
IsDefined169({ message: "El campo Localidad es obligatorio." }),
|
|
35080
35068
|
IsString458()
|
|
35081
35069
|
], TOAOrdenLiquidacionENTITY.prototype, "localidad", 2);
|
|
35082
35070
|
__decorateClass([
|
|
35083
|
-
Expose562(),
|
|
35084
|
-
Transform80(({ value, obj }) => value ?? obj["Direcci\xF3n"] ?? obj.direccion),
|
|
35071
|
+
Expose562({ name: "Direcci\xF3n" }),
|
|
35085
35072
|
Type368(() => String),
|
|
35086
35073
|
IsDefined169({ message: "El campo Direcci\xF3n es obligatorio." }),
|
|
35087
35074
|
IsString458()
|
|
35088
35075
|
], TOAOrdenLiquidacionENTITY.prototype, "direccion", 2);
|
|
35089
35076
|
__decorateClass([
|
|
35090
|
-
Expose562(),
|
|
35091
|
-
Transform80(({ value, obj }) => value ?? obj["Zona de Trabajo"] ?? obj.zona_de_trabajo),
|
|
35077
|
+
Expose562({ name: "Zona de Trabajo" }),
|
|
35092
35078
|
Type368(() => String),
|
|
35093
35079
|
IsDefined169({ message: "El campo Zona de Trabajo es obligatorio." }),
|
|
35094
35080
|
IsString458()
|
|
35095
35081
|
], TOAOrdenLiquidacionENTITY.prototype, "zona_de_trabajo", 2);
|
|
35096
35082
|
__decorateClass([
|
|
35097
|
-
Expose562(),
|
|
35098
|
-
Transform80(({ value, obj }) => value ?? obj["Nombre Cliente"] ?? obj.nombre_cliente),
|
|
35083
|
+
Expose562({ name: "Nombre Cliente" }),
|
|
35099
35084
|
Type368(() => String),
|
|
35100
35085
|
IsDefined169({ message: "El campo Nombre Cliente es obligatorio." }),
|
|
35101
35086
|
IsString458()
|
|
35102
35087
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_cliente", 2);
|
|
35103
35088
|
__decorateClass([
|
|
35104
|
-
Expose562(),
|
|
35105
|
-
Transform80(({ value, obj }) => value ?? obj["Estado actividad"] ?? obj.estado_actividad),
|
|
35089
|
+
Expose562({ name: "Estado actividad" }),
|
|
35106
35090
|
Type368(() => String),
|
|
35107
35091
|
IsDefined169({ message: "El campo Estado actividad es obligatorio." }),
|
|
35108
35092
|
IsString458()
|
|
35109
35093
|
], TOAOrdenLiquidacionENTITY.prototype, "estado_actividad", 2);
|
|
35110
35094
|
__decorateClass([
|
|
35111
|
-
Expose562(),
|
|
35112
|
-
Transform80(({ value, obj }) => value ?? obj["Estado Interno"] ?? obj.estado_interno),
|
|
35095
|
+
Expose562({ name: "Estado Interno" }),
|
|
35113
35096
|
IsDefined169({ message: "El campo estado interno es obligatorio." }),
|
|
35114
35097
|
IsEnum27(StateInternalOrderTOA, { message: `El campo estado interno debe ser uno de: ${Object.values(StateInternalOrderTOA).join(", ")}.` })
|
|
35115
35098
|
], TOAOrdenLiquidacionENTITY.prototype, "estado_interno", 2);
|
|
35116
35099
|
__decorateClass([
|
|
35117
|
-
Expose562(),
|
|
35118
|
-
Transform80(({ value, obj }) => value ?? obj["C\xF3digo de Cliente"] ?? obj.codigo_de_cliente),
|
|
35100
|
+
Expose562({ name: "C\xF3digo de Cliente" }),
|
|
35119
35101
|
Type368(() => Number),
|
|
35120
35102
|
IsDefined169({ message: "El campo C\xF3digo de Cliente es obligatorio." }),
|
|
35121
35103
|
IsNumber373()
|
|
35122
35104
|
], TOAOrdenLiquidacionENTITY.prototype, "codigo_de_cliente", 2);
|
|
35123
35105
|
__decorateClass([
|
|
35124
|
-
Expose562(),
|
|
35125
|
-
Transform80(({ value, obj }) => value ?? obj["Actividad Gpon"] ?? obj.actividad_gpon),
|
|
35126
|
-
Transform80(({ obj }) => obj["Actividad Gpon"] ?? obj.actividad_gpon),
|
|
35106
|
+
Expose562({ name: "Actividad Gpon" }),
|
|
35127
35107
|
Type368(() => String),
|
|
35128
35108
|
IsDefined169({ message: "El campo Actividad Gpon es obligatorio." }),
|
|
35129
35109
|
IsString458()
|
|
35130
35110
|
], TOAOrdenLiquidacionENTITY.prototype, "actividad_gpon", 2);
|
|
35131
35111
|
__decorateClass([
|
|
35132
|
-
Expose562(),
|
|
35133
|
-
Transform80(({ value, obj }) => value ?? obj["Nombre Distrito"] ?? obj.nombre_distrito),
|
|
35112
|
+
Expose562({ name: "Nombre Distrito" }),
|
|
35134
35113
|
Type368(() => String),
|
|
35135
35114
|
IsDefined169({ message: "El campo Nombre Distrito es obligatorio." }),
|
|
35136
35115
|
IsString458()
|
|
35137
35116
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_distrito", 2);
|
|
35138
35117
|
__decorateClass([
|
|
35139
|
-
Expose562(),
|
|
35140
|
-
Transform80(({ value, obj }) => value ?? obj["N\xFAmero Tel\xE9fono"] ?? obj.numero_telefono),
|
|
35118
|
+
Expose562({ name: "N\xFAmero Tel\xE9fono" }),
|
|
35141
35119
|
Type368(() => String),
|
|
35142
35120
|
IsDefined169({ message: "El campo N\xFAmero Tel\xE9fono es obligatorio." }),
|
|
35143
35121
|
IsString458()
|
|
35144
35122
|
], TOAOrdenLiquidacionENTITY.prototype, "numero_telefono", 2);
|
|
35145
35123
|
__decorateClass([
|
|
35146
|
-
Expose562(),
|
|
35147
|
-
Transform80(({ value, obj }) => value ?? obj["Segmento"] ?? obj.segmento),
|
|
35124
|
+
Expose562({ name: "Segmento" }),
|
|
35148
35125
|
IsDefined169({ message: "El campo Segmento es obligatorio." }),
|
|
35149
35126
|
IsObject12(),
|
|
35150
35127
|
ValidateNested326(),
|
|
35151
35128
|
Type368(() => ToaSegmentoDTO)
|
|
35152
35129
|
], TOAOrdenLiquidacionENTITY.prototype, "segmento", 2);
|
|
35153
35130
|
__decorateClass([
|
|
35154
|
-
Expose562(),
|
|
35155
|
-
Transform80(({ value, obj }) => value ?? obj["Nombre de Provincia"] ?? obj.nombre_de_provincia),
|
|
35131
|
+
Expose562({ name: "Nombre de Provincia" }),
|
|
35156
35132
|
Type368(() => String),
|
|
35157
35133
|
IsDefined169({ message: "El campo Nombre de Provincia es obligatorio." }),
|
|
35158
35134
|
IsString458()
|
|
35159
35135
|
], TOAOrdenLiquidacionENTITY.prototype, "nombre_de_provincia", 2);
|
|
35160
35136
|
__decorateClass([
|
|
35161
|
-
Expose562(),
|
|
35162
|
-
Transform80(({ value, obj }) => value ?? obj["Departamento"] ?? obj.departamento),
|
|
35137
|
+
Expose562({ name: "Departamento" }),
|
|
35163
35138
|
Type368(() => String),
|
|
35164
35139
|
IsDefined169({ message: "El campo Departamento es obligatorio." }),
|
|
35165
35140
|
IsString458()
|
|
35166
35141
|
], TOAOrdenLiquidacionENTITY.prototype, "departamento", 2);
|
|
35167
35142
|
__decorateClass([
|
|
35168
|
-
Expose562(),
|
|
35169
|
-
Transform80(({ value, obj }) => value ?? obj["Reiterada TDI"] ?? obj.reiterada_tdi),
|
|
35143
|
+
Expose562({ name: "Reiterada TDI" }),
|
|
35170
35144
|
Type368(() => String),
|
|
35171
35145
|
IsDefined169({ message: "El campo Reiterada TDI es obligatorio." }),
|
|
35172
35146
|
IsString458()
|
|
35173
35147
|
], TOAOrdenLiquidacionENTITY.prototype, "reiterada_tdi", 2);
|
|
35174
35148
|
__decorateClass([
|
|
35175
|
-
Expose562(),
|
|
35176
|
-
Transform80(({ value, obj }) => value ?? obj["Inventario"] ?? obj.inventario),
|
|
35149
|
+
Expose562({ name: "Inventario" }),
|
|
35177
35150
|
IsDefined169({ message: "El campo inventario es obligatorio." }),
|
|
35178
35151
|
IsArray191(),
|
|
35179
35152
|
ValidateNested326({ each: true }),
|