sigo-entities 1.2.558 → 1.2.560

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.mjs CHANGED
@@ -54898,7 +54898,7 @@ __decorateClass([
54898
54898
 
54899
54899
  // src/operativa/procesos/btalppluz_vereda_asignacion/shared/index.ts
54900
54900
  import { Expose as Expose829, Transform as Transform117, Type as Type513 } from "class-transformer";
54901
- import { IsArray as IsArray262, IsBoolean as IsBoolean77, IsDate as IsDate200, IsDefined as IsDefined316, IsIn as IsIn13, IsNotEmpty as IsNotEmpty469, IsOptional as IsOptional87, IsString as IsString685, ValidateNested as ValidateNested443 } from "class-validator";
54901
+ import { IsArray as IsArray262, IsBoolean as IsBoolean77, IsDate as IsDate201, IsDefined as IsDefined316, IsIn as IsIn13, IsNotEmpty as IsNotEmpty469, IsString as IsString685, ValidateNested as ValidateNested443 } from "class-validator";
54902
54902
  import "reflect-metadata";
54903
54903
 
54904
54904
  // src/operativa/procesos/btalppluz_vereda_asignacion/shared/dto/pendiente-vereda-dto.ts
@@ -55257,9 +55257,50 @@ __decorateClass([
55257
55257
  ], ObservarVeredaDTO.prototype, "motivo", 2);
55258
55258
 
55259
55259
  // src/operativa/procesos/btalppluz_vereda_asignacion/shared/dto/formulario-civil-vereda-dto.ts
55260
+ import { Expose as Expose825, Type as Type509 } from "class-transformer";
55261
+ import { IsArray as IsArray260, IsDate as IsDate198, IsDefined as IsDefined312, IsIn as IsIn10, IsInt, IsNumber as IsNumber538, IsString as IsString681, Max as Max17, MaxLength as MaxLength10, Min as Min355, ValidateNested as ValidateNested439 } from "class-validator";
55262
+ import "reflect-metadata";
55263
+
55264
+ // src/operativa/procesos/btalppluz_vereda_asignacion/shared/dto/desmonte-vereda-dto.ts
55260
55265
  import { Expose as Expose824, Type as Type508 } from "class-transformer";
55261
- import { IsArray as IsArray260, IsDate as IsDate197, IsDefined as IsDefined311, IsIn as IsIn10, IsInt, IsNumber as IsNumber538, IsOptional as IsOptional85, IsString as IsString681, Max as Max17, MaxLength as MaxLength10, Min as Min355, ValidateNested as ValidateNested438 } from "class-validator";
55266
+ import { IsBoolean as IsBoolean76, IsDate as IsDate197, IsDefined as IsDefined311, ValidateBy, ValidateNested as ValidateNested438 } from "class-validator";
55262
55267
  import "reflect-metadata";
55268
+ var FECHA_VACIA_VEREDA = () => /* @__PURE__ */ new Date(0);
55269
+ var fechaRegistradaVereda = (fecha) => !!fecha && new Date(fecha).getTime() > 0;
55270
+ var tieneArchivoVereda = (archivo) => !!archivo?.Ruta && !!archivo.Filename;
55271
+ var DesmonteVeredaBodyDTO = class {
55272
+ tiene_desmonte = false;
55273
+ foto = new FilesDocDTO();
55274
+ };
55275
+ __decorateClass([
55276
+ Expose824(),
55277
+ IsDefined311({ message: "es requerido" }),
55278
+ IsBoolean76({ message: "es requerido" })
55279
+ ], DesmonteVeredaBodyDTO.prototype, "tiene_desmonte", 2);
55280
+ __decorateClass([
55281
+ Expose824(),
55282
+ IsDefined311(),
55283
+ ValidateNested438(),
55284
+ Type508(() => FilesDocDTO),
55285
+ ValidateBy({
55286
+ name: "fotoDesmonteVereda",
55287
+ validator: {
55288
+ validate: (foto, args) => !(args?.object).tiene_desmonte || tieneArchivoVereda(foto),
55289
+ defaultMessage: () => "Adjunte la foto del desmonte"
55290
+ }
55291
+ })
55292
+ ], DesmonteVeredaBodyDTO.prototype, "foto", 2);
55293
+ var DesmonteVeredaDTO = class extends DesmonteVeredaBodyDTO {
55294
+ fecha = FECHA_VACIA_VEREDA();
55295
+ };
55296
+ __decorateClass([
55297
+ Expose824(),
55298
+ IsDefined311(),
55299
+ IsDate197(),
55300
+ Type508(() => Date)
55301
+ ], DesmonteVeredaDTO.prototype, "fecha", 2);
55302
+
55303
+ // src/operativa/procesos/btalppluz_vereda_asignacion/shared/dto/formulario-civil-vereda-dto.ts
55263
55304
  var PASOS_WORKFLOW_VEREDA = {
55264
55305
  INICIO_DE_TRABAJO: { paso: "INICIO_DE_TRABAJO", orden: 1 },
55265
55306
  CERRADO: { paso: "CERRADO", orden: 2 }
@@ -55280,51 +55321,51 @@ var WorkflowPasoVeredaDTO = class {
55280
55321
  usuario = new UsuarioDTO();
55281
55322
  };
55282
55323
  __decorateClass([
55283
- Expose824(),
55284
- IsDefined311(),
55324
+ Expose825(),
55325
+ IsDefined312(),
55285
55326
  IsString681(),
55286
55327
  IsIn10(PASOS)
55287
55328
  ], WorkflowPasoVeredaDTO.prototype, "paso", 2);
55288
55329
  __decorateClass([
55289
- Expose824(),
55290
- IsDefined311(),
55330
+ Expose825(),
55331
+ IsDefined312(),
55291
55332
  IsInt(),
55292
55333
  Min355(1),
55293
55334
  Max17(2)
55294
55335
  ], WorkflowPasoVeredaDTO.prototype, "orden", 2);
55295
55336
  __decorateClass([
55296
- Expose824(),
55297
- IsDefined311(),
55298
- IsDate197(),
55299
- Type508(() => Date)
55337
+ Expose825(),
55338
+ IsDefined312(),
55339
+ IsDate198(),
55340
+ Type509(() => Date)
55300
55341
  ], WorkflowPasoVeredaDTO.prototype, "fecha", 2);
55301
55342
  __decorateClass([
55302
- Expose824(),
55303
- IsDefined311(),
55304
- IsDate197(),
55305
- Type508(() => Date)
55343
+ Expose825(),
55344
+ IsDefined312(),
55345
+ IsDate198(),
55346
+ Type509(() => Date)
55306
55347
  ], WorkflowPasoVeredaDTO.prototype, "fecha_registro", 2);
55307
55348
  __decorateClass([
55308
- Expose824(),
55309
- IsDefined311(),
55349
+ Expose825(),
55350
+ IsDefined312(),
55310
55351
  IsNumber538()
55311
55352
  ], WorkflowPasoVeredaDTO.prototype, "latitud", 2);
55312
55353
  __decorateClass([
55313
- Expose824(),
55314
- IsDefined311(),
55354
+ Expose825(),
55355
+ IsDefined312(),
55315
55356
  IsNumber538()
55316
55357
  ], WorkflowPasoVeredaDTO.prototype, "longitud", 2);
55317
55358
  __decorateClass([
55318
- Expose824(),
55319
- IsDefined311(),
55359
+ Expose825(),
55360
+ IsDefined312(),
55320
55361
  IsNumber538(),
55321
55362
  Min355(0)
55322
55363
  ], WorkflowPasoVeredaDTO.prototype, "precision_m", 2);
55323
55364
  __decorateClass([
55324
- Expose824(),
55325
- IsDefined311(),
55326
- ValidateNested438(),
55327
- Type508(() => UsuarioDTO)
55365
+ Expose825(),
55366
+ IsDefined312(),
55367
+ ValidateNested439(),
55368
+ Type509(() => UsuarioDTO)
55328
55369
  ], WorkflowPasoVeredaDTO.prototype, "usuario", 2);
55329
55370
  var MetradosVeredaDTO = class {
55330
55371
  pano_ancho_m = 0;
@@ -55337,50 +55378,50 @@ var MetradosVeredaDTO = class {
55337
55378
  m2_jardin = 0;
55338
55379
  };
55339
55380
  __decorateClass([
55340
- Expose824(),
55341
- IsDefined311(),
55381
+ Expose825(),
55382
+ IsDefined312(),
55342
55383
  IsNumber538(DECIMALES_2, MSG_NUMERO),
55343
55384
  Min355(0, MSG_MIN_0)
55344
55385
  ], MetradosVeredaDTO.prototype, "pano_ancho_m", 2);
55345
55386
  __decorateClass([
55346
- Expose824(),
55347
- IsDefined311(),
55387
+ Expose825(),
55388
+ IsDefined312(),
55348
55389
  IsNumber538(DECIMALES_2, MSG_NUMERO),
55349
55390
  Min355(0, MSG_MIN_0)
55350
55391
  ], MetradosVeredaDTO.prototype, "pano_largo_m", 2);
55351
55392
  __decorateClass([
55352
- Expose824(),
55353
- IsDefined311(),
55393
+ Expose825(),
55394
+ IsDefined312(),
55354
55395
  IsNumber538(DECIMALES_2, MSG_NUMERO),
55355
55396
  Min355(0, MSG_MIN_0)
55356
55397
  ], MetradosVeredaDTO.prototype, "pano_espesor_cm", 2);
55357
55398
  __decorateClass([
55358
- Expose824(),
55359
- IsDefined311(),
55399
+ Expose825(),
55400
+ IsDefined312(),
55360
55401
  IsInt(MSG_ENTERO),
55361
55402
  Min355(0, MSG_MIN_0)
55362
55403
  ], MetradosVeredaDTO.prototype, "cantidad_panos", 2);
55363
55404
  __decorateClass([
55364
- Expose824(),
55365
- IsDefined311(),
55405
+ Expose825(),
55406
+ IsDefined312(),
55366
55407
  IsNumber538(DECIMALES_2, MSG_NUMERO),
55367
55408
  Min355(0, MSG_MIN_0)
55368
55409
  ], MetradosVeredaDTO.prototype, "m2_vereda_reparada", 2);
55369
55410
  __decorateClass([
55370
- Expose824(),
55371
- IsDefined311(),
55411
+ Expose825(),
55412
+ IsDefined312(),
55372
55413
  IsNumber538(DECIMALES_2, MSG_NUMERO),
55373
55414
  Min355(0, MSG_MIN_0)
55374
55415
  ], MetradosVeredaDTO.prototype, "m2_vereda_asfalto", 2);
55375
55416
  __decorateClass([
55376
- Expose824(),
55377
- IsDefined311(),
55417
+ Expose825(),
55418
+ IsDefined312(),
55378
55419
  IsNumber538(DECIMALES_2, MSG_NUMERO),
55379
55420
  Min355(0, MSG_MIN_0)
55380
55421
  ], MetradosVeredaDTO.prototype, "m2_piso_especial", 2);
55381
55422
  __decorateClass([
55382
- Expose824(),
55383
- IsDefined311(),
55423
+ Expose825(),
55424
+ IsDefined312(),
55384
55425
  IsNumber538(DECIMALES_2, MSG_NUMERO),
55385
55426
  Min355(0, MSG_MIN_0)
55386
55427
  ], MetradosVeredaDTO.prototype, "m2_jardin", 2);
@@ -55393,75 +55434,75 @@ var PendienteOriginalVeredaDTO = class {
55393
55434
  m2_jardin = 0;
55394
55435
  };
55395
55436
  __decorateClass([
55396
- Expose824(),
55397
- IsDefined311(),
55437
+ Expose825(),
55438
+ IsDefined312(),
55398
55439
  IsString681()
55399
55440
  ], PendienteOriginalVeredaDTO.prototype, "id_gis", 2);
55400
55441
  __decorateClass([
55401
- Expose824(),
55402
- IsDefined311(),
55442
+ Expose825(),
55443
+ IsDefined312(),
55403
55444
  IsNumber538(DECIMALES_2, MSG_NUMERO),
55404
55445
  Min355(0, MSG_MIN_0)
55405
55446
  ], PendienteOriginalVeredaDTO.prototype, "pano_ancho_m", 2);
55406
55447
  __decorateClass([
55407
- Expose824(),
55408
- IsDefined311(),
55448
+ Expose825(),
55449
+ IsDefined312(),
55409
55450
  IsNumber538(DECIMALES_2, MSG_NUMERO),
55410
55451
  Min355(0, MSG_MIN_0)
55411
55452
  ], PendienteOriginalVeredaDTO.prototype, "pano_largo_m", 2);
55412
55453
  __decorateClass([
55413
- Expose824(),
55414
- IsDefined311(),
55454
+ Expose825(),
55455
+ IsDefined312(),
55415
55456
  IsInt(MSG_ENTERO),
55416
55457
  Min355(0, MSG_MIN_0)
55417
55458
  ], PendienteOriginalVeredaDTO.prototype, "cantidad_panos", 2);
55418
55459
  __decorateClass([
55419
- Expose824(),
55420
- IsDefined311(),
55460
+ Expose825(),
55461
+ IsDefined312(),
55421
55462
  IsString681()
55422
55463
  ], PendienteOriginalVeredaDTO.prototype, "tipo_piso", 2);
55423
55464
  __decorateClass([
55424
- Expose824(),
55425
- IsDefined311(),
55465
+ Expose825(),
55466
+ IsDefined312(),
55426
55467
  IsNumber538(DECIMALES_2, MSG_NUMERO),
55427
55468
  Min355(0, MSG_MIN_0)
55428
55469
  ], PendienteOriginalVeredaDTO.prototype, "m2_jardin", 2);
55429
55470
  var FormularioCivilVeredaDTO = class {
55430
55471
  workflow = [];
55431
- metrados = null;
55472
+ metrados = new MetradosVeredaDTO();
55432
55473
  observaciones = "";
55433
- pendiente_original = null;
55434
- fecha_actualizacion = null;
55474
+ pendiente_original = new PendienteOriginalVeredaDTO();
55475
+ fecha_actualizacion = FECHA_VACIA_VEREDA();
55435
55476
  };
55436
55477
  __decorateClass([
55437
- Expose824(),
55438
- IsDefined311(),
55478
+ Expose825(),
55479
+ IsDefined312(),
55439
55480
  IsArray260(),
55440
- ValidateNested438({ each: true }),
55441
- Type508(() => WorkflowPasoVeredaDTO)
55481
+ ValidateNested439({ each: true }),
55482
+ Type509(() => WorkflowPasoVeredaDTO)
55442
55483
  ], FormularioCivilVeredaDTO.prototype, "workflow", 2);
55443
55484
  __decorateClass([
55444
- Expose824(),
55445
- IsOptional85(),
55446
- ValidateNested438(),
55447
- Type508(() => MetradosVeredaDTO)
55485
+ Expose825(),
55486
+ IsDefined312(),
55487
+ ValidateNested439(),
55488
+ Type509(() => MetradosVeredaDTO)
55448
55489
  ], FormularioCivilVeredaDTO.prototype, "metrados", 2);
55449
55490
  __decorateClass([
55450
- Expose824(),
55451
- IsDefined311(),
55491
+ Expose825(),
55492
+ IsDefined312(),
55452
55493
  IsString681()
55453
55494
  ], FormularioCivilVeredaDTO.prototype, "observaciones", 2);
55454
55495
  __decorateClass([
55455
- Expose824(),
55456
- IsOptional85(),
55457
- ValidateNested438(),
55458
- Type508(() => PendienteOriginalVeredaDTO)
55496
+ Expose825(),
55497
+ IsDefined312(),
55498
+ ValidateNested439(),
55499
+ Type509(() => PendienteOriginalVeredaDTO)
55459
55500
  ], FormularioCivilVeredaDTO.prototype, "pendiente_original", 2);
55460
55501
  __decorateClass([
55461
- Expose824(),
55462
- IsOptional85(),
55463
- IsDate197(),
55464
- Type508(() => Date)
55502
+ Expose825(),
55503
+ IsDefined312(),
55504
+ IsDate198(),
55505
+ Type509(() => Date)
55465
55506
  ], FormularioCivilVeredaDTO.prototype, "fecha_actualizacion", 2);
55466
55507
  var WorkflowVeredaDTO = class {
55467
55508
  paso = "";
@@ -55471,30 +55512,30 @@ var WorkflowVeredaDTO = class {
55471
55512
  precision_m = 0;
55472
55513
  };
55473
55514
  __decorateClass([
55474
- Expose824(),
55475
- IsDefined311(),
55515
+ Expose825(),
55516
+ IsDefined312(),
55476
55517
  IsString681(),
55477
55518
  IsIn10(PASOS)
55478
55519
  ], WorkflowVeredaDTO.prototype, "paso", 2);
55479
55520
  __decorateClass([
55480
- Expose824(),
55481
- IsDefined311(),
55482
- IsDate197(),
55483
- Type508(() => Date)
55521
+ Expose825(),
55522
+ IsDefined312(),
55523
+ IsDate198(),
55524
+ Type509(() => Date)
55484
55525
  ], WorkflowVeredaDTO.prototype, "fecha", 2);
55485
55526
  __decorateClass([
55486
- Expose824(),
55487
- IsDefined311(),
55527
+ Expose825(),
55528
+ IsDefined312(),
55488
55529
  IsNumber538()
55489
55530
  ], WorkflowVeredaDTO.prototype, "latitud", 2);
55490
55531
  __decorateClass([
55491
- Expose824(),
55492
- IsDefined311(),
55532
+ Expose825(),
55533
+ IsDefined312(),
55493
55534
  IsNumber538()
55494
55535
  ], WorkflowVeredaDTO.prototype, "longitud", 2);
55495
55536
  __decorateClass([
55496
- Expose824(),
55497
- IsDefined311(),
55537
+ Expose825(),
55538
+ IsDefined312(),
55498
55539
  IsNumber538(),
55499
55540
  Min355(0)
55500
55541
  ], WorkflowVeredaDTO.prototype, "precision_m", 2);
@@ -55503,115 +55544,94 @@ var FormularioVeredaDTO = class {
55503
55544
  observaciones = "";
55504
55545
  };
55505
55546
  __decorateClass([
55506
- Expose824(),
55507
- IsDefined311({ message: "es requerido" }),
55508
- ValidateNested438(),
55509
- Type508(() => MetradosVeredaDTO)
55547
+ Expose825(),
55548
+ IsDefined312({ message: "es requerido" }),
55549
+ ValidateNested439(),
55550
+ Type509(() => MetradosVeredaDTO)
55510
55551
  ], FormularioVeredaDTO.prototype, "metrados", 2);
55511
55552
  __decorateClass([
55512
- Expose824(),
55513
- IsDefined311(),
55553
+ Expose825(),
55554
+ IsDefined312(),
55514
55555
  IsString681(),
55515
55556
  MaxLength10(500, { message: "m\xE1ximo 500 caracteres" })
55516
55557
  ], FormularioVeredaDTO.prototype, "observaciones", 2);
55517
55558
 
55518
55559
  // src/operativa/procesos/btalppluz_vereda_asignacion/shared/dto/revision-cierre-vereda-dto.ts
55519
- import { Expose as Expose825, Type as Type509 } from "class-transformer";
55520
- import { IsDate as IsDate198, IsDefined as IsDefined312, IsIn as IsIn11, IsString as IsString682, Length as Length344, ValidateNested as ValidateNested439 } from "class-validator";
55560
+ import { Expose as Expose826, Type as Type510 } from "class-transformer";
55561
+ import { IsDate as IsDate199, IsDefined as IsDefined313, IsIn as IsIn11, IsString as IsString682, Length as Length344, ValidateNested as ValidateNested440 } from "class-validator";
55521
55562
  import "reflect-metadata";
55522
55563
  var ACCIONES_REVISION_VEREDA = ["OBSERVAR", "APROBAR"];
55523
55564
  var RevisionVeredaDTO = class {
55524
55565
  accion = "";
55525
55566
  motivo = "";
55526
55567
  usuario = new UsuarioDTO();
55527
- fecha = /* @__PURE__ */ new Date();
55568
+ fecha = FECHA_VACIA_VEREDA();
55528
55569
  };
55529
55570
  __decorateClass([
55530
- Expose825(),
55531
- IsDefined312(),
55571
+ Expose826(),
55572
+ IsDefined313(),
55532
55573
  IsString682(),
55533
- IsIn11(ACCIONES_REVISION_VEREDA)
55574
+ IsIn11(["", ...ACCIONES_REVISION_VEREDA])
55534
55575
  ], RevisionVeredaDTO.prototype, "accion", 2);
55535
55576
  __decorateClass([
55536
- Expose825(),
55537
- IsDefined312(),
55577
+ Expose826(),
55578
+ IsDefined313(),
55538
55579
  IsString682(),
55539
55580
  Length344(0, 300)
55540
55581
  ], RevisionVeredaDTO.prototype, "motivo", 2);
55541
55582
  __decorateClass([
55542
- Expose825(),
55543
- IsDefined312(),
55544
- ValidateNested439(),
55545
- Type509(() => UsuarioDTO)
55583
+ Expose826(),
55584
+ IsDefined313(),
55585
+ ValidateNested440(),
55586
+ Type510(() => UsuarioDTO)
55546
55587
  ], RevisionVeredaDTO.prototype, "usuario", 2);
55547
55588
  __decorateClass([
55548
- Expose825(),
55549
- IsDefined312(),
55550
- IsDate198(),
55551
- Type509(() => Date)
55589
+ Expose826(),
55590
+ IsDefined313(),
55591
+ IsDate199(),
55592
+ Type510(() => Date)
55552
55593
  ], RevisionVeredaDTO.prototype, "fecha", 2);
55553
55594
  var CierreSsamVeredaDTO = class {
55554
- fecha = /* @__PURE__ */ new Date();
55595
+ fecha = FECHA_VACIA_VEREDA();
55555
55596
  constancia = "";
55556
55597
  observacion = "";
55557
55598
  usuario = new UsuarioDTO();
55558
- fecha_registro = /* @__PURE__ */ new Date();
55599
+ fecha_registro = FECHA_VACIA_VEREDA();
55559
55600
  };
55560
55601
  __decorateClass([
55561
- Expose825(),
55562
- IsDefined312(),
55563
- IsDate198(),
55564
- Type509(() => Date)
55602
+ Expose826(),
55603
+ IsDefined313(),
55604
+ IsDate199(),
55605
+ Type510(() => Date)
55565
55606
  ], CierreSsamVeredaDTO.prototype, "fecha", 2);
55566
55607
  __decorateClass([
55567
- Expose825(),
55568
- IsDefined312(),
55608
+ Expose826(),
55609
+ IsDefined313(),
55569
55610
  IsString682(),
55570
- Length344(1, 100)
55611
+ Length344(0, 100)
55571
55612
  ], CierreSsamVeredaDTO.prototype, "constancia", 2);
55572
55613
  __decorateClass([
55573
- Expose825(),
55574
- IsDefined312(),
55614
+ Expose826(),
55615
+ IsDefined313(),
55575
55616
  IsString682(),
55576
55617
  Length344(0, 300)
55577
55618
  ], CierreSsamVeredaDTO.prototype, "observacion", 2);
55578
- __decorateClass([
55579
- Expose825(),
55580
- IsDefined312(),
55581
- ValidateNested439(),
55582
- Type509(() => UsuarioDTO)
55583
- ], CierreSsamVeredaDTO.prototype, "usuario", 2);
55584
- __decorateClass([
55585
- Expose825(),
55586
- IsDefined312(),
55587
- IsDate198(),
55588
- Type509(() => Date)
55589
- ], CierreSsamVeredaDTO.prototype, "fecha_registro", 2);
55590
-
55591
- // src/operativa/procesos/btalppluz_vereda_asignacion/shared/dto/desmonte-vereda-dto.ts
55592
- import { Expose as Expose826, Type as Type510 } from "class-transformer";
55593
- import { IsBoolean as IsBoolean76, IsDefined as IsDefined313, ValidateIf as ValidateIf9, ValidateNested as ValidateNested440 } from "class-validator";
55594
- import "reflect-metadata";
55595
- var DesmonteVeredaDTO = class {
55596
- tiene_desmonte = false;
55597
- foto = null;
55598
- };
55599
55619
  __decorateClass([
55600
55620
  Expose826(),
55601
- IsDefined313({ message: "es requerido" }),
55602
- IsBoolean76({ message: "es requerido" })
55603
- ], DesmonteVeredaDTO.prototype, "tiene_desmonte", 2);
55621
+ IsDefined313(),
55622
+ ValidateNested440(),
55623
+ Type510(() => UsuarioDTO)
55624
+ ], CierreSsamVeredaDTO.prototype, "usuario", 2);
55604
55625
  __decorateClass([
55605
55626
  Expose826(),
55606
- ValidateIf9((o) => o.tiene_desmonte),
55607
- IsDefined313({ message: "Adjunte la foto del desmonte" }),
55608
- ValidateNested440(),
55609
- Type510(() => FilesDocDTO)
55610
- ], DesmonteVeredaDTO.prototype, "foto", 2);
55627
+ IsDefined313(),
55628
+ IsDate199(),
55629
+ Type510(() => Date)
55630
+ ], CierreSsamVeredaDTO.prototype, "fecha_registro", 2);
55611
55631
 
55612
55632
  // src/operativa/procesos/btalppluz_vereda_asignacion/shared/dto/datos-vereda-dto.ts
55613
55633
  import { Expose as Expose827, Type as Type511 } from "class-transformer";
55614
- import { IsDate as IsDate199, IsDefined as IsDefined314, IsInt as IsInt2, IsNotEmpty as IsNotEmpty468, IsNumber as IsNumber539, IsOptional as IsOptional86, IsString as IsString683, Max as Max18, Min as Min356, ValidateNested as ValidateNested441 } from "class-validator";
55634
+ import { IsDate as IsDate200, IsDefined as IsDefined314, IsInt as IsInt2, IsNotEmpty as IsNotEmpty468, IsNumber as IsNumber539, IsString as IsString683, Max as Max18, Min as Min356, ValidateNested as ValidateNested441 } from "class-validator";
55615
55635
  import "reflect-metadata";
55616
55636
  var ORIGENES_ASIGNACION_VEREDA = {
55617
55637
  BANDEJA: "BANDEJA",
@@ -55621,7 +55641,7 @@ var LIMITES_PANOS_VEREDA = { MIN: 1, MAX: 99 };
55621
55641
  var MSG_PANOS = { message: `debe ser un n\xFAmero entero de ${LIMITES_PANOS_VEREDA.MIN} a ${LIMITES_PANOS_VEREDA.MAX}` };
55622
55642
  var DatosVeredaBodyDTO = class {
55623
55643
  orden_electrica = "";
55624
- fecha_ejecucion_electrica = null;
55644
+ fecha_ejecucion_electrica = FECHA_VACIA_VEREDA();
55625
55645
  promedio_panos = 0;
55626
55646
  direccion = "";
55627
55647
  distrito = "";
@@ -55633,8 +55653,8 @@ __decorateClass([
55633
55653
  ], DatosVeredaBodyDTO.prototype, "orden_electrica", 2);
55634
55654
  __decorateClass([
55635
55655
  Expose827(),
55636
- IsOptional86(),
55637
- IsDate199(),
55656
+ IsDefined314(),
55657
+ IsDate200(),
55638
55658
  Type511(() => Date)
55639
55659
  ], DatosVeredaBodyDTO.prototype, "fecha_ejecucion_electrica", 2);
55640
55660
  __decorateClass([
@@ -55777,7 +55797,7 @@ var BtAlpPluzVeredaAsignacionENTITY = class {
55777
55797
  ticket_averia_sc_udf = "";
55778
55798
  area = "";
55779
55799
  origen = ORIGENES_ASIGNACION_VEREDA.BANDEJA;
55780
- datos_vereda = null;
55800
+ datos_vereda = new DatosVeredaDTO();
55781
55801
  pendiente = new PendienteVeredaDTO();
55782
55802
  cuadrilla = new CuadrillaVeredaDTO();
55783
55803
  estado = new EstadoDTO();
@@ -55788,12 +55808,12 @@ var BtAlpPluzVeredaAsignacionENTITY = class {
55788
55808
  motivo_anulacion = "";
55789
55809
  formulario_civil = new FormularioCivilVeredaDTO();
55790
55810
  documentacion = [];
55791
- desmonte = null;
55811
+ desmonte = new DesmonteVeredaDTO();
55792
55812
  materiales = [];
55793
- fecha_envio = null;
55794
- usuario_envio = null;
55795
- revision = null;
55796
- cierre_ssam = null;
55813
+ fecha_envio = FECHA_VACIA_VEREDA();
55814
+ usuario_envio = new UsuarioDTO();
55815
+ revision = new RevisionVeredaDTO();
55816
+ cierre_ssam = new CierreSsamVeredaDTO();
55797
55817
  bitacora = [];
55798
55818
  };
55799
55819
  __decorateClass([
@@ -55828,8 +55848,7 @@ __decorateClass([
55828
55848
  ], BtAlpPluzVeredaAsignacionENTITY.prototype, "origen", 2);
55829
55849
  __decorateClass([
55830
55850
  Expose829(),
55831
- Transform117(({ value }) => value ?? null),
55832
- IsOptional87(),
55851
+ IsDefined316(),
55833
55852
  ValidateNested443(),
55834
55853
  Type513(() => DatosVeredaDTO)
55835
55854
  ], BtAlpPluzVeredaAsignacionENTITY.prototype, "datos_vereda", 2);
@@ -55859,7 +55878,7 @@ __decorateClass([
55859
55878
  __decorateClass([
55860
55879
  Expose829(),
55861
55880
  IsDefined316(),
55862
- IsDate200(),
55881
+ IsDate201(),
55863
55882
  Type513(() => Date)
55864
55883
  ], BtAlpPluzVeredaAsignacionENTITY.prototype, "fecha_asignacion", 2);
55865
55884
  __decorateClass([
@@ -55893,7 +55912,7 @@ __decorateClass([
55893
55912
  ], BtAlpPluzVeredaAsignacionENTITY.prototype, "documentacion", 2);
55894
55913
  __decorateClass([
55895
55914
  Expose829(),
55896
- IsOptional87(),
55915
+ IsDefined316(),
55897
55916
  ValidateNested443(),
55898
55917
  Type513(() => DesmonteVeredaDTO)
55899
55918
  ], BtAlpPluzVeredaAsignacionENTITY.prototype, "desmonte", 2);
@@ -55906,25 +55925,25 @@ __decorateClass([
55906
55925
  ], BtAlpPluzVeredaAsignacionENTITY.prototype, "materiales", 2);
55907
55926
  __decorateClass([
55908
55927
  Expose829(),
55909
- IsOptional87(),
55910
- IsDate200(),
55928
+ IsDefined316(),
55929
+ IsDate201(),
55911
55930
  Type513(() => Date)
55912
55931
  ], BtAlpPluzVeredaAsignacionENTITY.prototype, "fecha_envio", 2);
55913
55932
  __decorateClass([
55914
55933
  Expose829(),
55915
- IsOptional87(),
55934
+ IsDefined316(),
55916
55935
  ValidateNested443(),
55917
55936
  Type513(() => UsuarioDTO)
55918
55937
  ], BtAlpPluzVeredaAsignacionENTITY.prototype, "usuario_envio", 2);
55919
55938
  __decorateClass([
55920
55939
  Expose829(),
55921
- IsOptional87(),
55940
+ IsDefined316(),
55922
55941
  ValidateNested443(),
55923
55942
  Type513(() => RevisionVeredaDTO)
55924
55943
  ], BtAlpPluzVeredaAsignacionENTITY.prototype, "revision", 2);
55925
55944
  __decorateClass([
55926
55945
  Expose829(),
55927
- IsOptional87(),
55946
+ IsDefined316(),
55928
55947
  ValidateNested443(),
55929
55948
  Type513(() => CierreSsamVeredaDTO)
55930
55949
  ], BtAlpPluzVeredaAsignacionENTITY.prototype, "cierre_ssam", 2);
@@ -56756,7 +56775,7 @@ import { Expose as Expose852, Transform as Transform129, Type as Type520 } from
56756
56775
 
56757
56776
  // src/v2/dtos/ResourceSystemDto.ts
56758
56777
  import { Expose as Expose851, Type as Type519 } from "class-transformer";
56759
- import { IsDate as IsDate201, IsDefined as IsDefined337, IsEnum as IsEnum65, IsString as IsString704, MinLength as MinLength63 } from "class-validator";
56778
+ import { IsDate as IsDate202, IsDefined as IsDefined337, IsEnum as IsEnum65, IsString as IsString704, MinLength as MinLength63 } from "class-validator";
56760
56779
 
56761
56780
  // src/v2/enums/SystemResource.ts
56762
56781
  var SystemResource = /* @__PURE__ */ ((SystemResource2) => {
@@ -56795,7 +56814,7 @@ __decorateClass([
56795
56814
  ], ResourceSystemDto.prototype, "system", 2);
56796
56815
  __decorateClass([
56797
56816
  IsDefined337({ message: "Fecha inicio actividad es obligatoria" }),
56798
- IsDate201({ message: "Fecha inicio actividad debe ser una fecha" }),
56817
+ IsDate202({ message: "Fecha inicio actividad debe ser una fecha" }),
56799
56818
  Type519(() => Date),
56800
56819
  Expose851()
56801
56820
  ], ResourceSystemDto.prototype, "startDateActivity", 2);
@@ -57490,7 +57509,7 @@ __decorateClass([
57490
57509
 
57491
57510
  // src/v2/dtos/FinalizeSomacylOrder.ts
57492
57511
  import { Expose as Expose868, Transform as Transform135 } from "class-transformer";
57493
- import { IsDefined as IsDefined349, IsIn as IsIn14, IsNotEmpty as IsNotEmpty484, IsOptional as IsOptional97, IsString as IsString720, MaxLength as MaxLength15, ValidateIf as ValidateIf13 } from "class-validator";
57512
+ import { IsDefined as IsDefined349, IsIn as IsIn14, IsNotEmpty as IsNotEmpty484, IsOptional as IsOptional97, IsString as IsString720, MaxLength as MaxLength15, ValidateIf as ValidateIf12 } from "class-validator";
57494
57513
  var estadosFinalizacion = ["Finalizada" /* FINALIZADA */, "No Finalizada" /* NO_FINALIZADA */];
57495
57514
  var motivosNoFinalizado = Object.values(ReasonNoFinalizedSomacyl).filter((e) => e !== "" /* INICIAL */);
57496
57515
  var trim2 = ({ value }) => typeof value === "string" ? value.trim() : value;
@@ -57512,19 +57531,19 @@ __decorateClass([
57512
57531
  Expose868()
57513
57532
  ], FinalizeSomacylOrderDto.prototype, "estado_interno", 2);
57514
57533
  __decorateClass([
57515
- ValidateIf13((o) => o.estado_interno === "No Finalizada" /* NO_FINALIZADA */),
57534
+ ValidateIf12((o) => o.estado_interno === "No Finalizada" /* NO_FINALIZADA */),
57516
57535
  IsDefined349({ message: "El motivo de no finalizado es requerido" }),
57517
57536
  IsIn14(motivosNoFinalizado, { message: `El motivo de no finalizado debe ser uno de: ${motivosNoFinalizado.join(", ")}` }),
57518
57537
  Expose868()
57519
57538
  ], FinalizeSomacylOrderDto.prototype, "motivo_no_finalizado", 2);
57520
57539
  __decorateClass([
57521
- ValidateIf13((o) => o.estado_interno === "No Finalizada" /* NO_FINALIZADA */),
57540
+ ValidateIf12((o) => o.estado_interno === "No Finalizada" /* NO_FINALIZADA */),
57522
57541
  IsDefined349({ message: "La clasificaci\xF3n de incidencia es requerida" }),
57523
57542
  IsIn14(clasificacionesNoFinalizado, { message: `La clasificaci\xF3n de incidencia debe ser una de: ${clasificacionesNoFinalizado.join(", ")}` }),
57524
57543
  Expose868()
57525
57544
  ], FinalizeSomacylOrderDto.prototype, "clasificacion_incidencia", 2);
57526
57545
  __decorateClass([
57527
- ValidateIf13((o) => o.estado_interno === "No Finalizada" /* NO_FINALIZADA */),
57546
+ ValidateIf12((o) => o.estado_interno === "No Finalizada" /* NO_FINALIZADA */),
57528
57547
  IsDefined349({ message: "La observaci\xF3n es requerida" }),
57529
57548
  IsString720({ message: "La observaci\xF3n debe ser una cadena de texto" }),
57530
57549
  IsNotEmpty484({ message: "La observaci\xF3n es requerida" }),
@@ -57533,7 +57552,7 @@ __decorateClass([
57533
57552
  Expose868()
57534
57553
  ], FinalizeSomacylOrderDto.prototype, "observaciones_en_legados", 2);
57535
57554
  __decorateClass([
57536
- ValidateIf13(isFinalizada),
57555
+ ValidateIf12(isFinalizada),
57537
57556
  IsDefined349({ message: "La lectura del contador retirado es requerida" }),
57538
57557
  IsString720({ message: "La lectura del contador retirado debe ser una cadena de texto" }),
57539
57558
  IsNotEmpty484({ message: "La lectura del contador retirado es requerida" }),
@@ -57542,7 +57561,7 @@ __decorateClass([
57542
57561
  Expose868()
57543
57562
  ], FinalizeSomacylOrderDto.prototype, "lecturaContadorRetirado", 2);
57544
57563
  __decorateClass([
57545
- ValidateIf13(isFinalizada),
57564
+ ValidateIf12(isFinalizada),
57546
57565
  IsDefined349({ message: "La lectura del contador instalado es requerida" }),
57547
57566
  IsString720({ message: "La lectura del contador instalado debe ser una cadena de texto" }),
57548
57567
  IsNotEmpty484({ message: "La lectura del contador instalado es requerida" }),
@@ -57551,7 +57570,7 @@ __decorateClass([
57551
57570
  Expose868()
57552
57571
  ], FinalizeSomacylOrderDto.prototype, "lecturaContadorInstalado", 2);
57553
57572
  __decorateClass([
57554
- ValidateIf13(isFinalizada),
57573
+ ValidateIf12(isFinalizada),
57555
57574
  IsDefined349({ message: "Las observaciones son requeridas" }),
57556
57575
  IsString720({ message: "Las observaciones deben ser una cadena de texto" }),
57557
57576
  IsNotEmpty484({ message: "Las observaciones son requeridas" }),
@@ -58113,7 +58132,7 @@ import { Expose as Expose878, Type as Type535 } from "class-transformer";
58113
58132
  import {
58114
58133
  ArrayMinSize as ArrayMinSize8,
58115
58134
  IsArray as IsArray283,
58116
- IsDate as IsDate202,
58135
+ IsDate as IsDate203,
58117
58136
  IsDefined as IsDefined359,
58118
58137
  IsString as IsString726,
58119
58138
  Length as Length354,
@@ -58147,7 +58166,7 @@ __decorateClass([
58147
58166
  ], SaveDailyReportPhotoDto.prototype, "Coordenadas", 2);
58148
58167
  __decorateClass([
58149
58168
  Type535(() => Date),
58150
- IsDate202({ message: "La fecha de la foto no es v\xE1lida" }),
58169
+ IsDate203({ message: "La fecha de la foto no es v\xE1lida" }),
58151
58170
  Expose878()
58152
58171
  ], SaveDailyReportPhotoDto.prototype, "Fecha", 2);
58153
58172
  var SaveDailyReportDto = class {
@@ -59043,6 +59062,7 @@ export {
59043
59062
  DeleteBaremoFaseDTO,
59044
59063
  DeleteFileSomacylOrderDto,
59045
59064
  DeleteInventorySomacylOrderDto,
59065
+ DesmonteVeredaBodyDTO,
59046
59066
  DesmonteVeredaDTO,
59047
59067
  DestinatarioDTO,
59048
59068
  DetailMaintenanceOrderDTO,
@@ -59158,6 +59178,7 @@ export {
59158
59178
  EstadoTOADTO,
59159
59179
  Estado_Model_MO,
59160
59180
  EstadosTuvesEnum,
59181
+ FECHA_VACIA_VEREDA,
59161
59182
  FacturaDto,
59162
59183
  FacturaGeneradaDTO,
59163
59184
  FacturacionDTO,
@@ -59788,6 +59809,7 @@ export {
59788
59809
  convertTypeNumber,
59789
59810
  entityToMongoJsonSchema,
59790
59811
  enumToArray,
59812
+ fechaRegistradaVereda,
59791
59813
  getFirstError,
59792
59814
  hydrate,
59793
59815
  itemsCanalizacion,
@@ -59795,6 +59817,7 @@ export {
59795
59817
  itemsCantidadMaxima,
59796
59818
  latLngDTO,
59797
59819
  removeUndefined,
59820
+ tieneArchivoVereda,
59798
59821
  transformToDateIfEmpty,
59799
59822
  trimAndUpperCaseString,
59800
59823
  validateAndFormatData,