sigo-entities 1.2.175 → 1.2.177

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 CHANGED
@@ -8094,14 +8094,12 @@ __decorateClass([
8094
8094
  ], HomePassDTO.prototype, "ClientType", 2);
8095
8095
  __decorateClass([
8096
8096
  (0, import_class_validator153.IsString)({ message: "debe ser un texto" }),
8097
- (0, import_class_validator153.IsNotEmpty)({ message: "es requerido" }),
8098
- (0, import_class_validator153.Length)(1, 50, { message: "debe tener entre 1 y 50 caracteres" }),
8097
+ (0, import_class_validator153.Length)(0, 50, { message: "debe tener entre $constraint1 y $constraint2 caracteres" }),
8099
8098
  (0, import_class_transformer152.Expose)()
8100
8099
  ], HomePassDTO.prototype, "StreetName", 2);
8101
8100
  __decorateClass([
8102
8101
  (0, import_class_validator153.IsString)({ message: "debe ser un texto" }),
8103
- (0, import_class_validator153.IsNotEmpty)({ message: "es requerido" }),
8104
- (0, import_class_validator153.Length)(1, 10, { message: "debe tener entre 1 y 10 caracteres" }),
8102
+ (0, import_class_validator153.Length)(0, 30, { message: "debe tener entre $constraint1 y $constraint2 caracteres" }),
8105
8103
  (0, import_class_transformer152.Expose)()
8106
8104
  ], HomePassDTO.prototype, "HouseNumber", 2);
8107
8105
  __decorateClass([
@@ -8142,7 +8140,7 @@ __decorateClass([
8142
8140
  (0, import_class_transformer153.Expose)()
8143
8141
  ], MaterialesDTO.prototype, "CodigoLlave", 2);
8144
8142
  __decorateClass([
8145
- (0, import_class_validator154.IsDefined)({ message: "es requerido" }),
8143
+ (0, import_class_validator154.IsOptional)(),
8146
8144
  (0, import_class_validator154.IsNumber)({}, { message: "debe ser un numero" }),
8147
8145
  (0, import_class_transformer153.Expose)()
8148
8146
  ], MaterialesDTO.prototype, "ID_StockPersonal", 2);
package/dist/index.mjs CHANGED
@@ -7492,14 +7492,12 @@ __decorateClass([
7492
7492
  ], HomePassDTO.prototype, "ClientType", 2);
7493
7493
  __decorateClass([
7494
7494
  IsString121({ message: "debe ser un texto" }),
7495
- IsNotEmpty111({ message: "es requerido" }),
7496
- Length94(1, 50, { message: "debe tener entre 1 y 50 caracteres" }),
7495
+ Length94(0, 50, { message: "debe tener entre $constraint1 y $constraint2 caracteres" }),
7497
7496
  Expose150()
7498
7497
  ], HomePassDTO.prototype, "StreetName", 2);
7499
7498
  __decorateClass([
7500
7499
  IsString121({ message: "debe ser un texto" }),
7501
- IsNotEmpty111({ message: "es requerido" }),
7502
- Length94(1, 10, { message: "debe tener entre 1 y 10 caracteres" }),
7500
+ Length94(0, 30, { message: "debe tener entre $constraint1 y $constraint2 caracteres" }),
7503
7501
  Expose150()
7504
7502
  ], HomePassDTO.prototype, "HouseNumber", 2);
7505
7503
  __decorateClass([
@@ -7511,7 +7509,7 @@ __decorateClass([
7511
7509
 
7512
7510
  // src/programados/procesos/trabajo/shared/dto/materiales-dto.ts
7513
7511
  import { Expose as Expose151, Type as Type100 } from "class-transformer";
7514
- import { IsDefined as IsDefined42, IsNotEmpty as IsNotEmpty112, IsNumber as IsNumber108, IsString as IsString122, Length as Length95, MinLength as MinLength17, ValidateNested as ValidateNested90 } from "class-validator";
7512
+ import { IsNotEmpty as IsNotEmpty112, IsNumber as IsNumber108, IsOptional as IsOptional3, IsString as IsString122, Length as Length95, MinLength as MinLength17, ValidateNested as ValidateNested90 } from "class-validator";
7515
7513
  var MaterialesDTO = class {
7516
7514
  Codigo = "";
7517
7515
  CodigoLlave = "";
@@ -7540,7 +7538,7 @@ __decorateClass([
7540
7538
  Expose151()
7541
7539
  ], MaterialesDTO.prototype, "CodigoLlave", 2);
7542
7540
  __decorateClass([
7543
- IsDefined42({ message: "es requerido" }),
7541
+ IsOptional3(),
7544
7542
  IsNumber108({}, { message: "debe ser un numero" }),
7545
7543
  Expose151()
7546
7544
  ], MaterialesDTO.prototype, "ID_StockPersonal", 2);
@@ -9032,7 +9030,7 @@ import { IsDate as IsDate44, IsNotEmpty as IsNotEmpty130, IsNumber as IsNumber12
9032
9030
 
9033
9031
  // src/programados/procesos/trabajoMacroObra/shared/periodo-dto.ts
9034
9032
  import { Expose as Expose171 } from "class-transformer";
9035
- import { IsDate as IsDate43, IsNotEmpty as IsNotEmpty129, IsNumber as IsNumber121, IsOptional as IsOptional3, IsString as IsString136, Length as Length109, ValidateIf as ValidateIf2 } from "class-validator";
9033
+ import { IsDate as IsDate43, IsNotEmpty as IsNotEmpty129, IsNumber as IsNumber121, IsOptional as IsOptional4, IsString as IsString136, Length as Length109, ValidateIf as ValidateIf2 } from "class-validator";
9036
9034
  var PeriodoDTO2 = class {
9037
9035
  ID_Periodo = 0;
9038
9036
  Codigo = "";
@@ -9058,12 +9056,12 @@ __decorateClass([
9058
9056
  Expose171()
9059
9057
  ], PeriodoDTO2.prototype, "FechaInicio", 2);
9060
9058
  __decorateClass([
9061
- IsOptional3(),
9059
+ IsOptional4(),
9062
9060
  ValidateIf2((o) => o.FechaFin !== null && o.FechaFin !== "" && o.FechaFin !== void 0),
9063
9061
  Expose171()
9064
9062
  ], PeriodoDTO2.prototype, "FechaFin", 2);
9065
9063
  __decorateClass([
9066
- IsOptional3(),
9064
+ IsOptional4(),
9067
9065
  ValidateIf2((o) => o.FechaMaxima !== null && o.FechaMaxima !== "" && o.FechaMaxima !== void 0),
9068
9066
  Expose171()
9069
9067
  ], PeriodoDTO2.prototype, "FechaMaxima", 2);
@@ -10799,7 +10797,7 @@ import {
10799
10797
  IsArray as IsArray70,
10800
10798
  IsDefined as IsDefined52,
10801
10799
  IsNumber as IsNumber146,
10802
- IsOptional as IsOptional4,
10800
+ IsOptional as IsOptional5,
10803
10801
  IsString as IsString159,
10804
10802
  Min as Min113,
10805
10803
  MinLength as MinLength27,
@@ -11046,14 +11044,14 @@ __decorateClass([
11046
11044
  Type138(() => ResumenAvanceDataGranTotalValorizacionesByPeriodosDTO),
11047
11045
  IsArray70(),
11048
11046
  Expose201(),
11049
- IsOptional4(),
11047
+ IsOptional5(),
11050
11048
  ValidateNested125({ each: true })
11051
11049
  ], ResumenAvanceDataGranTotal.prototype, "ValorizacionesByPeriodos", 2);
11052
11050
  __decorateClass([
11053
11051
  Type138(() => ResumenAvanceDataGranTotalEmpresasChileDTO),
11054
11052
  IsArray70(),
11055
11053
  Expose201(),
11056
- IsOptional4(),
11054
+ IsOptional5(),
11057
11055
  ValidateNested125({ each: true })
11058
11056
  ], ResumenAvanceDataGranTotal.prototype, "Empresas", 2);
11059
11057
  __decorateClass([
@@ -12430,7 +12428,7 @@ import {
12430
12428
  IsArray as IsArray84,
12431
12429
  IsDefined as IsDefined58,
12432
12430
  IsNumber as IsNumber162,
12433
- IsOptional as IsOptional8,
12431
+ IsOptional as IsOptional9,
12434
12432
  IsString as IsString177,
12435
12433
  Min as Min126,
12436
12434
  MinLength as MinLength29,
@@ -12496,14 +12494,14 @@ __decorateClass([
12496
12494
  Type157(() => ResumenAvanceDataGranTotalValorizacionesByPeriodosPeruDTO),
12497
12495
  IsArray84(),
12498
12496
  Expose227(),
12499
- IsOptional8(),
12497
+ IsOptional9(),
12500
12498
  ValidateNested144({ each: true })
12501
12499
  ], ResumenAvanceDataGranTotalPeruDTO.prototype, "ValorizacionesByPeriodos", 2);
12502
12500
  __decorateClass([
12503
12501
  Type157(() => ResumenAvanceDataGranTotalEmpresasPeruDTO),
12504
12502
  IsArray84(),
12505
12503
  Expose227(),
12506
- IsOptional8(),
12504
+ IsOptional9(),
12507
12505
  ValidateNested144({ each: true })
12508
12506
  ], ResumenAvanceDataGranTotalPeruDTO.prototype, "Empresas", 2);
12509
12507
  __decorateClass([
@@ -16018,7 +16016,7 @@ __decorateClass([
16018
16016
  ], DetalleAtipicaPeruDTO.prototype, "Material", 2);
16019
16017
 
16020
16018
  // src/programados/procesos/cubicacion/peru/index.ts
16021
- import { IsDefined as IsDefined76, IsOptional as IsOptional12, ValidateNested as ValidateNested188 } from "class-validator";
16019
+ import { IsDefined as IsDefined76, IsOptional as IsOptional13, ValidateNested as ValidateNested188 } from "class-validator";
16022
16020
  var CubicacionPeru9112ENTITY = class extends CubicacionENTITY {
16023
16021
  cabecera = new CabeceraCubicajePeruDTO();
16024
16022
  DetallePeru = new DetallePeruDTO();
@@ -16039,7 +16037,7 @@ __decorateClass([
16039
16037
  Type206(() => DetalleAtipicaPeruDTO),
16040
16038
  ValidateNested188(),
16041
16039
  Expose294(),
16042
- IsOptional12()
16040
+ IsOptional13()
16043
16041
  ], CubicacionPeru9112ENTITY.prototype, "DetalleAtipica", 2);
16044
16042
 
16045
16043
  // src/programados/procesos/cubicacion/colombia/index.ts
@@ -16384,7 +16382,7 @@ __decorateClass([
16384
16382
  ], DetalleAtipicaDTO.prototype, "Material", 2);
16385
16383
 
16386
16384
  // src/programados/procesos/cubicacion/colombia/index.ts
16387
- import { IsDefined as IsDefined83, IsOptional as IsOptional13, ValidateNested as ValidateNested193 } from "class-validator";
16385
+ import { IsDefined as IsDefined83, IsOptional as IsOptional14, ValidateNested as ValidateNested193 } from "class-validator";
16388
16386
  var CubicacionColombia9612ENTITY = class extends CubicacionENTITY {
16389
16387
  cabecera = new CabeceraCubicacionColombiaDTO();
16390
16388
  DetalleColombia = new DetalleColombiaDTO();
@@ -16406,7 +16404,7 @@ __decorateClass([
16406
16404
  Type212(() => DetalleAtipicaDTO),
16407
16405
  ValidateNested193(),
16408
16406
  Expose303(),
16409
- IsOptional13()
16407
+ IsOptional14()
16410
16408
  ], CubicacionColombia9612ENTITY.prototype, "DetalleAtipica", 2);
16411
16409
 
16412
16410
  // src/programados/procesos/precioContratistaMaterial/shared/index.ts
@@ -19566,7 +19564,7 @@ import {
19566
19564
  IsDefined as IsDefined107,
19567
19565
  IsNotEmpty as IsNotEmpty247,
19568
19566
  IsNumber as IsNumber246,
19569
- IsOptional as IsOptional14,
19567
+ IsOptional as IsOptional15,
19570
19568
  IsString as IsString263,
19571
19569
  Min as Min198,
19572
19570
  MinLength as MinLength39,
@@ -19610,7 +19608,7 @@ var BaremoAlemaniaENTITY = class {
19610
19608
  CodigoOT = "";
19611
19609
  };
19612
19610
  __decorateClass([
19613
- IsOptional14(),
19611
+ IsOptional15(),
19614
19612
  Expose354()
19615
19613
  ], BaremoAlemaniaENTITY.prototype, "_id", 2);
19616
19614
  __decorateClass([
@@ -21013,7 +21011,7 @@ __decorateClass([
21013
21011
 
21014
21012
  // src/programados/Reportes/ReporteProduccion/Chile/Baremos/index.ts
21015
21013
  import { Expose as Expose377, Type as Type262 } from "class-transformer";
21016
- import { IsArray as IsArray139, IsBoolean as IsBoolean29, IsNotEmpty as IsNotEmpty255, IsNumber as IsNumber257, IsOptional as IsOptional16, IsString as IsString285, Min as Min203, ValidateNested as ValidateNested237 } from "class-validator";
21014
+ import { IsArray as IsArray139, IsBoolean as IsBoolean29, IsNotEmpty as IsNotEmpty255, IsNumber as IsNumber257, IsOptional as IsOptional17, IsString as IsString285, Min as Min203, ValidateNested as ValidateNested237 } from "class-validator";
21017
21015
 
21018
21016
  // src/programados/Reportes/ReporteProduccion/Chile/Baremos/dto/periodo-dto.ts
21019
21017
  import { Expose as Expose372 } from "class-transformer";
@@ -21196,7 +21194,7 @@ var BaremosChileENTITY = class {
21196
21194
  };
21197
21195
  __decorateClass([
21198
21196
  Expose377(),
21199
- IsOptional16()
21197
+ IsOptional17()
21200
21198
  ], BaremosChileENTITY.prototype, "_id", 2);
21201
21199
  __decorateClass([
21202
21200
  IsString285({ message: "debe ser un texto" }),
@@ -22272,7 +22270,7 @@ __decorateClass([
22272
22270
 
22273
22271
  // src/programados/Reportes/ReporteProduccion/Colombia/Baremos/index.ts
22274
22272
  import { Expose as Expose400, Type as Type271 } from "class-transformer";
22275
- import { IsArray as IsArray145, IsBoolean as IsBoolean33, IsNotEmpty as IsNotEmpty263, IsNumber as IsNumber265, IsOptional as IsOptional17, IsString as IsString308, Min as Min205, ValidateNested as ValidateNested246 } from "class-validator";
22273
+ import { IsArray as IsArray145, IsBoolean as IsBoolean33, IsNotEmpty as IsNotEmpty263, IsNumber as IsNumber265, IsOptional as IsOptional18, IsString as IsString308, Min as Min205, ValidateNested as ValidateNested246 } from "class-validator";
22276
22274
 
22277
22275
  // src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/cambios-estados-pagos-produccion-dto.ts
22278
22276
  import { Expose as Expose393, Transform as Transform45, Type as Type269 } from "class-transformer";
@@ -22588,7 +22586,7 @@ var BaremosColombiaENTITY = class {
22588
22586
  };
22589
22587
  __decorateClass([
22590
22588
  Expose400(),
22591
- IsOptional17()
22589
+ IsOptional18()
22592
22590
  ], BaremosColombiaENTITY.prototype, "_id", 2);
22593
22591
  __decorateClass([
22594
22592
  IsString308({ message: "debe ser un texto" }),
@@ -23442,7 +23440,7 @@ import { Expose as Expose417, Type as Type281 } from "class-transformer";
23442
23440
 
23443
23441
  // src/programados/Reportes/RptProduccionCurso_Baremos_Fases/shared/dto/prod-curso-baremo-fases-ultimo-estado-interno-dto.ts
23444
23442
  import { Expose as Expose412, Type as Type279 } from "class-transformer";
23445
- import { IsArray as IsArray150, IsBoolean as IsBoolean37, IsDate as IsDate100, IsNotEmpty as IsNotEmpty275, IsNumber as IsNumber270, IsOptional as IsOptional18, IsString as IsString320, ValidateNested as ValidateNested253 } from "class-validator";
23443
+ import { IsArray as IsArray150, IsBoolean as IsBoolean37, IsDate as IsDate100, IsNotEmpty as IsNotEmpty275, IsNumber as IsNumber270, IsOptional as IsOptional19, IsString as IsString320, ValidateNested as ValidateNested253 } from "class-validator";
23446
23444
  var ProdCursoBaremoFasesUltimoEstadoInternoDTO = class {
23447
23445
  IsDebug = false;
23448
23446
  ID_EstadoInterno = 0;
@@ -23464,7 +23462,7 @@ var ProdCursoBaremoFasesUltimoEstadoInternoDTO = class {
23464
23462
  };
23465
23463
  __decorateClass([
23466
23464
  IsBoolean37({ message: "IsDebug debe ser un valor booleano" }),
23467
- IsOptional18(),
23465
+ IsOptional19(),
23468
23466
  Expose412()
23469
23467
  ], ProdCursoBaremoFasesUltimoEstadoInternoDTO.prototype, "IsDebug", 2);
23470
23468
  __decorateClass([
@@ -27299,7 +27297,7 @@ import {
27299
27297
  IsDefined as IsDefined145,
27300
27298
  IsNotEmpty as IsNotEmpty322,
27301
27299
  IsNumber as IsNumber309,
27302
- IsOptional as IsOptional19,
27300
+ IsOptional as IsOptional20,
27303
27301
  IsString as IsString370,
27304
27302
  Length as Length262,
27305
27303
  Min as Min242,
@@ -27378,7 +27376,7 @@ __decorateClass([
27378
27376
  IsString370({ message: "debe ser un texto" }),
27379
27377
  Length262(0, 70, { message: "debe tener entre 0 y 70 caracteres" }),
27380
27378
  Expose469(),
27381
- IsOptional19()
27379
+ IsOptional20()
27382
27380
  ], PersonalENTITY.prototype, "ApellidoMaterno", 2);
27383
27381
  __decorateClass([
27384
27382
  IsString370({ message: "debe ser un texto" }),
@@ -27861,7 +27859,7 @@ __decorateClass([
27861
27859
  ], TipoEmpresaDTO.prototype, "Nombre", 2);
27862
27860
 
27863
27861
  // src/configuracion/empresa/shared/index.ts
27864
- import { IsArray as IsArray178, IsBoolean as IsBoolean46, IsNotEmpty as IsNotEmpty331, IsNumber as IsNumber318, IsOptional as IsOptional20, IsString as IsString381, Length as Length272, Min as Min251, ValidateNested as ValidateNested297 } from "class-validator";
27862
+ import { IsArray as IsArray178, IsBoolean as IsBoolean46, IsNotEmpty as IsNotEmpty331, IsNumber as IsNumber318, IsOptional as IsOptional21, IsString as IsString381, Length as Length272, Min as Min251, ValidateNested as ValidateNested297 } from "class-validator";
27865
27863
  var EmpresaENTITY = class {
27866
27864
  ID_Empresa = 0;
27867
27865
  Pais = new CodigoNombreDTO();
@@ -27974,7 +27972,7 @@ __decorateClass([
27974
27972
  Type324(() => DatosGIADTO),
27975
27973
  IsNotEmpty331({ message: "es requerido" }),
27976
27974
  Expose480(),
27977
- IsOptional20(),
27975
+ IsOptional21(),
27978
27976
  ValidateNested297()
27979
27977
  ], EmpresaENTITY.prototype, "DatosGIA", 2);
27980
27978
  __decorateClass([
@@ -29342,7 +29340,7 @@ import {
29342
29340
  ValidateNested as ValidateNested310,
29343
29341
  IsDate as IsDate123,
29344
29342
  Length as Length298,
29345
- IsOptional as IsOptional23,
29343
+ IsOptional as IsOptional24,
29346
29344
  IsArray as IsArray183
29347
29345
  } from "class-validator";
29348
29346
 
@@ -29414,7 +29412,7 @@ __decorateClass([
29414
29412
 
29415
29413
  // src/operativa/procesos/valorizadas_toa/shared/dto/inventario-val-dto.ts
29416
29414
  import { Expose as Expose507, Transform as Transform61 } from "class-transformer";
29417
- import { IsEnum as IsEnum16, IsNotEmpty as IsNotEmpty352, IsNumber as IsNumber334, IsOptional as IsOptional22, IsString as IsString407, Length as Length295, Min as Min265 } from "class-validator";
29415
+ import { IsEnum as IsEnum16, IsNotEmpty as IsNotEmpty352, IsNumber as IsNumber334, IsOptional as IsOptional23, IsString as IsString407, Length as Length295, Min as Min265 } from "class-validator";
29418
29416
  var InventarioValDTO = class {
29419
29417
  Descripcion = "";
29420
29418
  LoteSAP = "";
@@ -29428,13 +29426,13 @@ var InventarioValDTO = class {
29428
29426
  };
29429
29427
  __decorateClass([
29430
29428
  IsString407({ message: "debe ser un texto" }),
29431
- IsOptional22(),
29429
+ IsOptional23(),
29432
29430
  Length295(0, 250, { message: "debe tener entre 1 y 250 caracteres" }),
29433
29431
  Expose507()
29434
29432
  ], InventarioValDTO.prototype, "Descripcion", 2);
29435
29433
  __decorateClass([
29436
29434
  IsString407({ message: "debe ser un texto" }),
29437
- IsOptional22(),
29435
+ IsOptional23(),
29438
29436
  Length295(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
29439
29437
  Expose507()
29440
29438
  ], InventarioValDTO.prototype, "LoteSAP", 2);
@@ -29446,7 +29444,7 @@ __decorateClass([
29446
29444
  ], InventarioValDTO.prototype, "TipoInventario", 2);
29447
29445
  __decorateClass([
29448
29446
  IsString407({ message: "debe ser un texto" }),
29449
- IsOptional22(),
29447
+ IsOptional23(),
29450
29448
  Length295(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
29451
29449
  Expose507()
29452
29450
  ], InventarioValDTO.prototype, "CodigoSAP", 2);
@@ -29455,7 +29453,7 @@ __decorateClass([
29455
29453
  Transform61(({ value }) => value ? String(value) : value),
29456
29454
  Length295(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
29457
29455
  Expose507(),
29458
- IsOptional22()
29456
+ IsOptional23()
29459
29457
  ], InventarioValDTO.prototype, "NumeroSerie", 2);
29460
29458
  __decorateClass([
29461
29459
  IsNumber334({}, { message: "debe ser un numero" }),
@@ -29474,7 +29472,7 @@ __decorateClass([
29474
29472
  __decorateClass([
29475
29473
  IsString407({ message: "debe ser un texto" }),
29476
29474
  Length295(0, 50, { message: "debe tener una longitud de 0 a 50" }),
29477
- IsOptional22(),
29475
+ IsOptional23(),
29478
29476
  Expose507()
29479
29477
  ], InventarioValDTO.prototype, "ID_Recurso", 2);
29480
29478
 
@@ -29605,14 +29603,14 @@ __decorateClass([
29605
29603
  ], ValorizadaTOAENTITY.prototype, "Peticion", 2);
29606
29604
  __decorateClass([
29607
29605
  IsString410({ message: "debe ser un texto" }),
29608
- IsOptional23(),
29606
+ IsOptional24(),
29609
29607
  Length298(0, 50, { message: "debe tener una longitud de 0 a 50" }),
29610
29608
  Expose510()
29611
29609
  ], ValorizadaTOAENTITY.prototype, "AccessId", 2);
29612
29610
  __decorateClass([
29613
29611
  IsString410({ message: "debe ser un texto" }),
29614
29612
  Length298(0, 250, { message: "debe tener una longitud de 0 a 250" }),
29615
- IsOptional23(),
29613
+ IsOptional24(),
29616
29614
  Expose510()
29617
29615
  ], ValorizadaTOAENTITY.prototype, "FTTX_BAS", 2);
29618
29616
  __decorateClass([
@@ -29637,7 +29635,7 @@ __decorateClass([
29637
29635
  ], ValorizadaTOAENTITY.prototype, "Estado", 2);
29638
29636
  __decorateClass([
29639
29637
  IsString410({ message: "debe ser un texto" }),
29640
- IsOptional23(),
29638
+ IsOptional24(),
29641
29639
  Length298(0, 100, { message: "debe tener una longitud de 0 a 100" }),
29642
29640
  Expose510()
29643
29641
  ], ValorizadaTOAENTITY.prototype, "Ciudad", 2);
@@ -29655,12 +29653,12 @@ __decorateClass([
29655
29653
  IsString410({ message: "debe ser un texto" }),
29656
29654
  Length298(0, 100, { message: "debe tener una longitud de 0 a 100" }),
29657
29655
  Expose510(),
29658
- IsOptional23()
29656
+ IsOptional24()
29659
29657
  ], ValorizadaTOAENTITY.prototype, "Tipo_Acceso", 2);
29660
29658
  __decorateClass([
29661
29659
  IsString410({ message: "debe ser un texto" }),
29662
29660
  Length298(0, 250, { message: "debe tener una longitud de 0 a 250" }),
29663
- IsOptional23(),
29661
+ IsOptional24(),
29664
29662
  Expose510()
29665
29663
  ], ValorizadaTOAENTITY.prototype, "FTTX_AP", 2);
29666
29664
  __decorateClass([
@@ -29776,7 +29774,7 @@ __decorateClass([
29776
29774
  ], ValorizadaTOAENTITY.prototype, "Fecha_Liquidacion", 2);
29777
29775
  __decorateClass([
29778
29776
  IsString410({ message: "debe ser un texto" }),
29779
- IsOptional23(),
29777
+ IsOptional24(),
29780
29778
  Expose510()
29781
29779
  ], ValorizadaTOAENTITY.prototype, "Reutilizaci\xF3n_de_Drop", 2);
29782
29780
  __decorateClass([
@@ -29851,7 +29849,7 @@ __decorateClass([
29851
29849
 
29852
29850
  // src/operativa/procesos/liquidadas_toa/shared/index.ts
29853
29851
  import { Expose as Expose515, Type as Type344 } from "class-transformer";
29854
- import { IsArray as IsArray184, IsNotEmpty as IsNotEmpty360, IsNumber as IsNumber342, IsString as IsString415, Length as Length303, Min as Min273, ValidateNested as ValidateNested311, IsDate as IsDate125, IsOptional as IsOptional24 } from "class-validator";
29852
+ import { IsArray as IsArray184, IsNotEmpty as IsNotEmpty360, IsNumber as IsNumber342, IsString as IsString415, Length as Length303, Min as Min273, ValidateNested as ValidateNested311, IsDate as IsDate125, IsOptional as IsOptional25 } from "class-validator";
29855
29853
 
29856
29854
  // src/operativa/procesos/liquidadas_toa/shared/dto/productos-servicios-dto.ts
29857
29855
  import { Expose as Expose511 } from "class-transformer";
@@ -30109,7 +30107,7 @@ __decorateClass([
30109
30107
  ], LiquidadaTOAENTITY.prototype, "Orden", 2);
30110
30108
  __decorateClass([
30111
30109
  IsString415({ message: "debe ser un texto" }),
30112
- IsOptional24(),
30110
+ IsOptional25(),
30113
30111
  Length303(0, 50, { message: "debe tener una longitud de 0 a 50" }),
30114
30112
  Expose515()
30115
30113
  ], LiquidadaTOAENTITY.prototype, "AccessId", 2);
@@ -32827,7 +32825,7 @@ import "reflect-metadata";
32827
32825
 
32828
32826
  // src/operativa/procesos/toa_movistar_db/shared/dto/ajuste-reproceso-dto.ts
32829
32827
  import { Expose as Expose546, Type as Type358 } from "class-transformer";
32830
- import { IsDate as IsDate131, IsNumber as IsNumber356, IsOptional as IsOptional25, IsString as IsString443, ValidateNested as ValidateNested320 } from "class-validator";
32828
+ import { IsDate as IsDate131, IsNumber as IsNumber356, IsOptional as IsOptional26, IsString as IsString443, ValidateNested as ValidateNested320 } from "class-validator";
32831
32829
  var AjusteReprocesoDTO = class {
32832
32830
  PB;
32833
32831
  MO;
@@ -32843,58 +32841,58 @@ var AjusteReprocesoDTO = class {
32843
32841
  };
32844
32842
  __decorateClass([
32845
32843
  Expose546(),
32846
- IsOptional25(),
32844
+ IsOptional26(),
32847
32845
  IsNumber356()
32848
32846
  ], AjusteReprocesoDTO.prototype, "PB", 2);
32849
32847
  __decorateClass([
32850
32848
  Expose546(),
32851
- IsOptional25(),
32849
+ IsOptional26(),
32852
32850
  IsNumber356()
32853
32851
  ], AjusteReprocesoDTO.prototype, "MO", 2);
32854
32852
  __decorateClass([
32855
32853
  Expose546(),
32856
- IsOptional25(),
32854
+ IsOptional26(),
32857
32855
  IsNumber356()
32858
32856
  ], AjusteReprocesoDTO.prototype, "Gasto_EECC", 2);
32859
32857
  __decorateClass([
32860
32858
  Expose546(),
32861
- IsOptional25(),
32859
+ IsOptional26(),
32862
32860
  IsString443()
32863
32861
  ], AjusteReprocesoDTO.prototype, "tecnico", 2);
32864
32862
  __decorateClass([
32865
32863
  Expose546(),
32866
- IsOptional25(),
32864
+ IsOptional26(),
32867
32865
  IsString443()
32868
32866
  ], AjusteReprocesoDTO.prototype, "id_recurso", 2);
32869
32867
  __decorateClass([
32870
32868
  Expose546(),
32871
- IsOptional25(),
32869
+ IsOptional26(),
32872
32870
  ValidateNested320(),
32873
32871
  Type358(() => EECCDBTOADTO)
32874
32872
  ], AjusteReprocesoDTO.prototype, "EECC", 2);
32875
32873
  __decorateClass([
32876
32874
  Expose546(),
32877
- IsOptional25(),
32875
+ IsOptional26(),
32878
32876
  IsNumber356()
32879
32877
  ], AjusteReprocesoDTO.prototype, "accessid_origen", 2);
32880
32878
  __decorateClass([
32881
32879
  Expose546(),
32882
- IsOptional25(),
32880
+ IsOptional26(),
32883
32881
  IsString443()
32884
32882
  ], AjusteReprocesoDTO.prototype, "_id_orden_origen", 2);
32885
32883
  __decorateClass([
32886
32884
  Expose546(),
32887
- IsOptional25(),
32885
+ IsOptional26(),
32888
32886
  IsString443()
32889
32887
  ], AjusteReprocesoDTO.prototype, "numero_de_peticion", 2);
32890
32888
  __decorateClass([
32891
32889
  Expose546(),
32892
- IsOptional25(),
32890
+ IsOptional26(),
32893
32891
  IsNumber356()
32894
32892
  ], AjusteReprocesoDTO.prototype, "codigo_de_cliente", 2);
32895
32893
  __decorateClass([
32896
32894
  Expose546(),
32897
- IsOptional25(),
32895
+ IsOptional26(),
32898
32896
  IsDate131(),
32899
32897
  Type358(() => Date)
32900
32898
  ], AjusteReprocesoDTO.prototype, "fecha_origen", 2);
@@ -33874,7 +33872,7 @@ import { Expose as Expose558, Transform as Transform72, Type as Type364 } from "
33874
33872
 
33875
33873
  // src/operativa/procesos/onnet_fibra/shared/dto/bitacora_de_ordenes.ts
33876
33874
  import { Expose as Expose550, Transform as Transform68 } from "class-transformer";
33877
- import { IsDate as IsDate134, IsDefined as IsDefined160, IsNumber as IsNumber360, IsOptional as IsOptional26, IsString as IsString447 } from "class-validator";
33875
+ import { IsDate as IsDate134, IsDefined as IsDefined160, IsNumber as IsNumber360, IsOptional as IsOptional27, IsString as IsString447 } from "class-validator";
33878
33876
 
33879
33877
  // src/operativa/procesos/onnet_fibra/utils/format_date_onnet_fibra.ts
33880
33878
  function formatDateOnnetFibra(date) {
@@ -33940,13 +33938,13 @@ __decorateClass([
33940
33938
  Expose550()
33941
33939
  ], BitacoraDeOrdenesDTO.prototype, "estado", 2);
33942
33940
  __decorateClass([
33943
- IsOptional26(),
33941
+ IsOptional27(),
33944
33942
  Transform68(({ value }) => value ? String(value) : ""),
33945
33943
  IsString447({ message: "El campo lt debe ser una cadena de texto" }),
33946
33944
  Expose550()
33947
33945
  ], BitacoraDeOrdenesDTO.prototype, "lt", 2);
33948
33946
  __decorateClass([
33949
- IsOptional26(),
33947
+ IsOptional27(),
33950
33948
  IsNumber360({}, { message: "El campo id_orden_mantenimiento_anexo debe ser un n\xFAmero" }),
33951
33949
  Transform68(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
33952
33950
  Expose550()
@@ -33957,7 +33955,7 @@ __decorateClass([
33957
33955
  Expose550()
33958
33956
  ], BitacoraDeOrdenesDTO.prototype, "contratista", 2);
33959
33957
  __decorateClass([
33960
- IsOptional26(),
33958
+ IsOptional27(),
33961
33959
  IsNumber360({}, { message: "El campo cantidad_clientes_afectados debe ser un n\xFAmero" }),
33962
33960
  Transform68(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
33963
33961
  Expose550()
@@ -33993,13 +33991,13 @@ __decorateClass([
33993
33991
  Expose550()
33994
33992
  ], BitacoraDeOrdenesDTO.prototype, "impacto", 2);
33995
33993
  __decorateClass([
33996
- IsOptional26(),
33994
+ IsOptional27(),
33997
33995
  IsString447({ message: "El campo tecnologia debe ser una cadena de texto" }),
33998
33996
  Transform68(({ value }) => typeof value !== "string" ? "" : String(value)),
33999
33997
  Expose550()
34000
33998
  ], BitacoraDeOrdenesDTO.prototype, "tecnologia", 2);
34001
33999
  __decorateClass([
34002
- IsOptional26(),
34000
+ IsOptional27(),
34003
34001
  IsString447({ message: "El campo olt debe ser una cadena de texto" }),
34004
34002
  Transform68(({ value }) => typeof value !== "string" ? "" : String(value)),
34005
34003
  Expose550()
@@ -34055,7 +34053,7 @@ __decorateClass([
34055
34053
  Expose550()
34056
34054
  ], BitacoraDeOrdenesDTO.prototype, "tipo_orden", 2);
34057
34055
  __decorateClass([
34058
- IsOptional26(),
34056
+ IsOptional27(),
34059
34057
  Transform68(({ value }) => formatDateOnnetFibra(value)),
34060
34058
  IsDate134({ message: "El campo fecha_instalacion debe ser FECHA" }),
34061
34059
  Expose550()
@@ -34076,30 +34074,30 @@ __decorateClass([
34076
34074
  Expose550()
34077
34075
  ], BitacoraDeOrdenesDTO.prototype, "tipo_contrato", 2);
34078
34076
  __decorateClass([
34079
- IsOptional26(),
34077
+ IsOptional27(),
34080
34078
  IsString447({ message: "El campo puerto_pon debe ser una cadena de texto" }),
34081
34079
  Transform68(({ value }) => typeof value !== "string" ? "" : String(value)),
34082
34080
  Expose550()
34083
34081
  ], BitacoraDeOrdenesDTO.prototype, "puerto_pon", 2);
34084
34082
  __decorateClass([
34085
- IsOptional26(),
34083
+ IsOptional27(),
34086
34084
  IsString447({ message: "El campo nombre_especialidad debe ser una cadena de texto" }),
34087
34085
  Expose550()
34088
34086
  ], BitacoraDeOrdenesDTO.prototype, "nombre_especialidad", 2);
34089
34087
  __decorateClass([
34090
- IsOptional26({ message: "El campo cliente es opcional" }),
34088
+ IsOptional27({ message: "El campo cliente es opcional" }),
34091
34089
  Transform68(({ value }) => typeof value !== "string" ? "" : String(value)),
34092
34090
  IsString447({ message: "El campo cliente debe ser una cadena de texto" }),
34093
34091
  Expose550()
34094
34092
  ], BitacoraDeOrdenesDTO.prototype, "cliente", 2);
34095
34093
  __decorateClass([
34096
- IsOptional26({ message: "El campo comuna es opcional" }),
34094
+ IsOptional27({ message: "El campo comuna es opcional" }),
34097
34095
  Transform68(({ value }) => typeof value !== "string" ? "" : String(value)),
34098
34096
  IsString447({ message: "El campo comuna debe ser una cadena de texto" }),
34099
34097
  Expose550()
34100
34098
  ], BitacoraDeOrdenesDTO.prototype, "comuna", 2);
34101
34099
  __decorateClass([
34102
- IsOptional26({ message: "El campo pep es opcional" }),
34100
+ IsOptional27({ message: "El campo pep es opcional" }),
34103
34101
  IsString447({ message: "El campo pep debe ser una cadena de texto" }),
34104
34102
  Transform68(({ value }) => typeof value !== "string" ? "" : String(value)),
34105
34103
  Expose550()
@@ -34109,38 +34107,38 @@ __decorateClass([
34109
34107
  Expose550()
34110
34108
  ], BitacoraDeOrdenesDTO.prototype, "observacion", 2);
34111
34109
  __decorateClass([
34112
- IsOptional26({ message: "El campo proyecto es opcional" }),
34110
+ IsOptional27({ message: "El campo proyecto es opcional" }),
34113
34111
  IsString447({ message: "El campo proyecto debe ser una cadena de texto" }),
34114
34112
  Expose550()
34115
34113
  ], BitacoraDeOrdenesDTO.prototype, "proyecto", 2);
34116
34114
  __decorateClass([
34117
- IsOptional26({ message: "El campo producto es opcional" }),
34115
+ IsOptional27({ message: "El campo producto es opcional" }),
34118
34116
  IsString447({ message: "El campo producto debe ser una cadena de texto" }),
34119
34117
  Expose550()
34120
34118
  ], BitacoraDeOrdenesDTO.prototype, "producto", 2);
34121
34119
  __decorateClass([
34122
- IsOptional26({ message: "El campo sub_tipo_orden es opcional" }),
34120
+ IsOptional27({ message: "El campo sub_tipo_orden es opcional" }),
34123
34121
  IsString447({ message: "El campo sub_tipo_orden debe ser una cadena de texto" }),
34124
34122
  Expose550()
34125
34123
  ], BitacoraDeOrdenesDTO.prototype, "sub_tipo_orden", 2);
34126
34124
  __decorateClass([
34127
- IsOptional26({ message: "El campo nombre_tecnico es opcional" }),
34125
+ IsOptional27({ message: "El campo nombre_tecnico es opcional" }),
34128
34126
  IsString447({ message: "El campo nombre_tecnico debe ser una cadena de texto" }),
34129
34127
  Expose550()
34130
34128
  ], BitacoraDeOrdenesDTO.prototype, "nombre_tecnico", 2);
34131
34129
  __decorateClass([
34132
- IsOptional26(),
34130
+ IsOptional27(),
34133
34131
  IsNumber360({}, { message: "El campo capacidad_cable debe ser una cadena de texto" }),
34134
34132
  Transform68(({ value }) => isNaN(value) ? 0 : Number(value)),
34135
34133
  Expose550()
34136
34134
  ], BitacoraDeOrdenesDTO.prototype, "capacidad_cable", 2);
34137
34135
  __decorateClass([
34138
- IsOptional26({ message: "El campo sintoma es opcional" }),
34136
+ IsOptional27({ message: "El campo sintoma es opcional" }),
34139
34137
  IsNumber360({}, { message: "El campo sintoma debe ser un n\xFAmero" }),
34140
34138
  Expose550()
34141
34139
  ], BitacoraDeOrdenesDTO.prototype, "sintoma", 2);
34142
34140
  __decorateClass([
34143
- IsOptional26({ message: "El campo mensaje_contingencia es opcional" }),
34141
+ IsOptional27({ message: "El campo mensaje_contingencia es opcional" }),
34144
34142
  IsString447({ message: "El campo mensaje_contingencia debe ser una cadena de texto" }),
34145
34143
  Expose550()
34146
34144
  ], BitacoraDeOrdenesDTO.prototype, "mensaje_contingencia", 2);
@@ -34295,7 +34293,7 @@ import { IsArray as IsArray191, IsDefined as IsDefined166, IsString as IsString4
34295
34293
 
34296
34294
  // src/operativa/procesos/onnet_fibra/shared/dto/detail-maintenance-order/detalle_orden_real_dto.ts
34297
34295
  import { Expose as Expose553, Transform as Transform70, Type as Type362 } from "class-transformer";
34298
- import { IsDefined as IsDefined163, IsNumber as IsNumber363, IsOptional as IsOptional27, IsString as IsString450 } from "class-validator";
34296
+ import { IsDefined as IsDefined163, IsNumber as IsNumber363, IsOptional as IsOptional28, IsString as IsString450 } from "class-validator";
34299
34297
  var DetalleOrdenRealDTO = class {
34300
34298
  descripcion = "";
34301
34299
  tipo = "";
@@ -34342,7 +34340,7 @@ __decorateClass([
34342
34340
  Expose553()
34343
34341
  ], DetalleOrdenRealDTO.prototype, "id_orden_mantenimiento_real", 2);
34344
34342
  __decorateClass([
34345
- IsOptional27({ message: "El campo tecnico es requerido" }),
34343
+ IsOptional28({ message: "El campo tecnico es requerido" }),
34346
34344
  IsString450({ message: "El campo tecnico debe ser una cadena de texto" }),
34347
34345
  Transform70(({ value }) => typeof value !== "string" ? "" : String(value)),
34348
34346
  Expose553()
@@ -34357,14 +34355,14 @@ __decorateClass([
34357
34355
  Expose553()
34358
34356
  ], DetalleOrdenRealDTO.prototype, "cantidad", 2);
34359
34357
  __decorateClass([
34360
- IsOptional27({ message: "El campo contrato es opcional" }),
34358
+ IsOptional28({ message: "El campo contrato es opcional" }),
34361
34359
  IsString450({ message: "El campo contrato debe ser una cadena de texto" }),
34362
34360
  Transform70(({ value }) => typeof value !== "string" ? "" : String(value)),
34363
34361
  Expose553()
34364
34362
  ], DetalleOrdenRealDTO.prototype, "contrato", 2);
34365
34363
  __decorateClass([
34366
34364
  Type362(() => CodigoNombreDTO),
34367
- IsOptional27(),
34365
+ IsOptional28(),
34368
34366
  Transform70(({ value }) => value ?? new CodigoNombreDTO()),
34369
34367
  Expose553()
34370
34368
  ], DetalleOrdenRealDTO.prototype, "especialidad", 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-entities",
3
- "version": "1.2.175",
3
+ "version": "1.2.177",
4
4
  "description": "Desarrollo de modelos de datos SIGO",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",