sigo-entities 1.2.56 → 1.2.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +95 -1
- package/dist/index.d.ts +95 -1
- package/dist/index.js +690 -169
- package/dist/index.mjs +705 -166
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -33412,9 +33412,321 @@ __decorateClass([
|
|
|
33412
33412
|
Type355(() => MaterialeswinDTO)
|
|
33413
33413
|
], Peru9112WinENTITY.prototype, "inventory", 2);
|
|
33414
33414
|
|
|
33415
|
+
// src/operativa/procesos/win_order_db/shared/index.ts
|
|
33416
|
+
import { Expose as Expose547, Type as Type357 } from "class-transformer";
|
|
33417
|
+
import {
|
|
33418
|
+
IsDefined as IsDefined155,
|
|
33419
|
+
IsString as IsString447,
|
|
33420
|
+
ValidateNested as ValidateNested316,
|
|
33421
|
+
IsArray as IsArray181,
|
|
33422
|
+
IsDate as IsDate134,
|
|
33423
|
+
IsEnum as IsEnum23
|
|
33424
|
+
} from "class-validator";
|
|
33425
|
+
import "reflect-metadata";
|
|
33426
|
+
|
|
33427
|
+
// src/operativa/procesos/win_order_db/shared/dto/index.ts
|
|
33428
|
+
import { Expose as Expose546 } from "class-transformer";
|
|
33429
|
+
import {
|
|
33430
|
+
IsDefined as IsDefined154,
|
|
33431
|
+
IsString as IsString446,
|
|
33432
|
+
IsNumber as IsNumber359,
|
|
33433
|
+
IsDate as IsDate133
|
|
33434
|
+
} from "class-validator";
|
|
33435
|
+
import "reflect-metadata";
|
|
33436
|
+
var UbicacionwinDBDTO = class {
|
|
33437
|
+
direccion = "";
|
|
33438
|
+
codigo_postal = "";
|
|
33439
|
+
georeferencia = "";
|
|
33440
|
+
sector_operativo = "";
|
|
33441
|
+
region = "";
|
|
33442
|
+
zona = "";
|
|
33443
|
+
localidad_1 = "";
|
|
33444
|
+
localidad_2 = "";
|
|
33445
|
+
pais = "";
|
|
33446
|
+
empresa = "";
|
|
33447
|
+
tipo_de_vivienda = "";
|
|
33448
|
+
ubicacion = "";
|
|
33449
|
+
};
|
|
33450
|
+
__decorateClass([
|
|
33451
|
+
Expose546(),
|
|
33452
|
+
IsDefined154({ message: "El campo direccion es obligatorio." }),
|
|
33453
|
+
IsString446()
|
|
33454
|
+
], UbicacionwinDBDTO.prototype, "direccion", 2);
|
|
33455
|
+
__decorateClass([
|
|
33456
|
+
Expose546(),
|
|
33457
|
+
IsDefined154({ message: "El campo codigo_postal es obligatorio." }),
|
|
33458
|
+
IsString446()
|
|
33459
|
+
], UbicacionwinDBDTO.prototype, "codigo_postal", 2);
|
|
33460
|
+
__decorateClass([
|
|
33461
|
+
Expose546(),
|
|
33462
|
+
IsDefined154({ message: "El campo georeferencia es obligatorio." }),
|
|
33463
|
+
IsString446()
|
|
33464
|
+
], UbicacionwinDBDTO.prototype, "georeferencia", 2);
|
|
33465
|
+
__decorateClass([
|
|
33466
|
+
Expose546(),
|
|
33467
|
+
IsDefined154({ message: "El campo sector_operativo es obligatorio." }),
|
|
33468
|
+
IsString446()
|
|
33469
|
+
], UbicacionwinDBDTO.prototype, "sector_operativo", 2);
|
|
33470
|
+
__decorateClass([
|
|
33471
|
+
Expose546(),
|
|
33472
|
+
IsDefined154({ message: "El campo region es obligatorio." }),
|
|
33473
|
+
IsString446()
|
|
33474
|
+
], UbicacionwinDBDTO.prototype, "region", 2);
|
|
33475
|
+
__decorateClass([
|
|
33476
|
+
Expose546(),
|
|
33477
|
+
IsDefined154({ message: "El campo zona es obligatorio." }),
|
|
33478
|
+
IsString446()
|
|
33479
|
+
], UbicacionwinDBDTO.prototype, "zona", 2);
|
|
33480
|
+
__decorateClass([
|
|
33481
|
+
Expose546(),
|
|
33482
|
+
IsDefined154({ message: "El campo localidad_1 es obligatorio." }),
|
|
33483
|
+
IsString446()
|
|
33484
|
+
], UbicacionwinDBDTO.prototype, "localidad_1", 2);
|
|
33485
|
+
__decorateClass([
|
|
33486
|
+
Expose546(),
|
|
33487
|
+
IsDefined154({ message: "El campo localidad_2 es obligatorio." }),
|
|
33488
|
+
IsString446()
|
|
33489
|
+
], UbicacionwinDBDTO.prototype, "localidad_2", 2);
|
|
33490
|
+
__decorateClass([
|
|
33491
|
+
Expose546(),
|
|
33492
|
+
IsDefined154({ message: "El campo pais es obligatorio." }),
|
|
33493
|
+
IsString446()
|
|
33494
|
+
], UbicacionwinDBDTO.prototype, "pais", 2);
|
|
33495
|
+
__decorateClass([
|
|
33496
|
+
Expose546(),
|
|
33497
|
+
IsDefined154({ message: "El campo empresa es obligatorio." }),
|
|
33498
|
+
IsString446()
|
|
33499
|
+
], UbicacionwinDBDTO.prototype, "empresa", 2);
|
|
33500
|
+
__decorateClass([
|
|
33501
|
+
Expose546(),
|
|
33502
|
+
IsDefined154({ message: "El campo tipo_de_vivienda es obligatorio." }),
|
|
33503
|
+
IsString446()
|
|
33504
|
+
], UbicacionwinDBDTO.prototype, "tipo_de_vivienda", 2);
|
|
33505
|
+
__decorateClass([
|
|
33506
|
+
Expose546(),
|
|
33507
|
+
IsDefined154({ message: "El campo ubicacion es obligatorio." }),
|
|
33508
|
+
IsString446()
|
|
33509
|
+
], UbicacionwinDBDTO.prototype, "ubicacion", 2);
|
|
33510
|
+
var MaterialeswinDBDTO = class {
|
|
33511
|
+
codigo = "";
|
|
33512
|
+
descripcion = "";
|
|
33513
|
+
cantidad = 0;
|
|
33514
|
+
invsn = "";
|
|
33515
|
+
invpool = "";
|
|
33516
|
+
};
|
|
33517
|
+
__decorateClass([
|
|
33518
|
+
Expose546(),
|
|
33519
|
+
IsDefined154({ message: "El campo codigo es obligatorio." }),
|
|
33520
|
+
IsString446()
|
|
33521
|
+
], MaterialeswinDBDTO.prototype, "codigo", 2);
|
|
33522
|
+
__decorateClass([
|
|
33523
|
+
Expose546(),
|
|
33524
|
+
IsDefined154({ message: "El campo descripcion es obligatorio." }),
|
|
33525
|
+
IsString446()
|
|
33526
|
+
], MaterialeswinDBDTO.prototype, "descripcion", 2);
|
|
33527
|
+
__decorateClass([
|
|
33528
|
+
Expose546(),
|
|
33529
|
+
IsDefined154({ message: "El campo cantidad es obligatorio." }),
|
|
33530
|
+
IsNumber359()
|
|
33531
|
+
], MaterialeswinDBDTO.prototype, "cantidad", 2);
|
|
33532
|
+
__decorateClass([
|
|
33533
|
+
Expose546(),
|
|
33534
|
+
IsDefined154({ message: "El campo invsn es obligatorio." }),
|
|
33535
|
+
IsString446()
|
|
33536
|
+
], MaterialeswinDBDTO.prototype, "invsn", 2);
|
|
33537
|
+
__decorateClass([
|
|
33538
|
+
Expose546(),
|
|
33539
|
+
IsDefined154({ message: "El campo invpool es obligatorio." }),
|
|
33540
|
+
IsString446()
|
|
33541
|
+
], MaterialeswinDBDTO.prototype, "invpool", 2);
|
|
33542
|
+
var HistorialEstadoswinDBDTO = class {
|
|
33543
|
+
estado = "";
|
|
33544
|
+
usuario = "";
|
|
33545
|
+
observacion = "";
|
|
33546
|
+
fecha = /* @__PURE__ */ new Date();
|
|
33547
|
+
};
|
|
33548
|
+
__decorateClass([
|
|
33549
|
+
Expose546(),
|
|
33550
|
+
IsDefined154({ message: "El campo estado es obligatorio." }),
|
|
33551
|
+
IsString446()
|
|
33552
|
+
], HistorialEstadoswinDBDTO.prototype, "estado", 2);
|
|
33553
|
+
__decorateClass([
|
|
33554
|
+
Expose546(),
|
|
33555
|
+
IsDefined154({ message: "El campo usuario es obligatorio." }),
|
|
33556
|
+
IsString446()
|
|
33557
|
+
], HistorialEstadoswinDBDTO.prototype, "usuario", 2);
|
|
33558
|
+
__decorateClass([
|
|
33559
|
+
Expose546(),
|
|
33560
|
+
IsDefined154({ message: "El campo observacion es obligatorio." }),
|
|
33561
|
+
IsString446()
|
|
33562
|
+
], HistorialEstadoswinDBDTO.prototype, "observacion", 2);
|
|
33563
|
+
__decorateClass([
|
|
33564
|
+
Expose546(),
|
|
33565
|
+
IsDefined154({ message: "El campo fecha es obligatorio." }),
|
|
33566
|
+
IsDate133({ message: "debe ser una fecha" })
|
|
33567
|
+
], HistorialEstadoswinDBDTO.prototype, "fecha", 2);
|
|
33568
|
+
|
|
33569
|
+
// src/operativa/procesos/win_order_db/shared/index.ts
|
|
33570
|
+
var Peru9112WinENTITYDB = class {
|
|
33571
|
+
_id = "";
|
|
33572
|
+
resource_id = "";
|
|
33573
|
+
tecnico = "";
|
|
33574
|
+
subtipo_de_actividad = "";
|
|
33575
|
+
tipo_orden = "";
|
|
33576
|
+
numero_de_peticion = "";
|
|
33577
|
+
fecha_visita = /* @__PURE__ */ new Date();
|
|
33578
|
+
inicio_visita = /* @__PURE__ */ new Date();
|
|
33579
|
+
fin_visita = /* @__PURE__ */ new Date();
|
|
33580
|
+
cliente = "";
|
|
33581
|
+
direccion_cliente = new UbicacionwinDBDTO();
|
|
33582
|
+
motivo_regestion = "";
|
|
33583
|
+
motivo_cancelacion = "";
|
|
33584
|
+
motivo_suspension = "";
|
|
33585
|
+
estado = "Agendada" /* AGENDADA */;
|
|
33586
|
+
fecha_estado = /* @__PURE__ */ new Date();
|
|
33587
|
+
fecha_solicitud = /* @__PURE__ */ new Date();
|
|
33588
|
+
tipo_de_orden = "";
|
|
33589
|
+
datos_tecnicos = "";
|
|
33590
|
+
movil = "";
|
|
33591
|
+
prioridad = "";
|
|
33592
|
+
suscripci\u00F3n = "";
|
|
33593
|
+
proveedor = "";
|
|
33594
|
+
historial_estados = [];
|
|
33595
|
+
inventory = [];
|
|
33596
|
+
};
|
|
33597
|
+
__decorateClass([
|
|
33598
|
+
IsDefined155({ message: "El campo _id es obligatorio." }),
|
|
33599
|
+
Expose547({ name: "_id" })
|
|
33600
|
+
], Peru9112WinENTITYDB.prototype, "_id", 2);
|
|
33601
|
+
__decorateClass([
|
|
33602
|
+
Expose547(),
|
|
33603
|
+
IsDefined155({ message: "El campo ID Recurso es obligatorio." }),
|
|
33604
|
+
IsString447({ message: "El campo toa_resource_id debe ser una cadena de texto" })
|
|
33605
|
+
], Peru9112WinENTITYDB.prototype, "resource_id", 2);
|
|
33606
|
+
__decorateClass([
|
|
33607
|
+
Expose547(),
|
|
33608
|
+
IsDefined155({ message: "El campo tecnico es obligatorio." }),
|
|
33609
|
+
IsString447()
|
|
33610
|
+
], Peru9112WinENTITYDB.prototype, "tecnico", 2);
|
|
33611
|
+
__decorateClass([
|
|
33612
|
+
Expose547(),
|
|
33613
|
+
IsDefined155({ message: "El campo subtipo_de_actividad es obligatorio." }),
|
|
33614
|
+
IsString447()
|
|
33615
|
+
], Peru9112WinENTITYDB.prototype, "subtipo_de_actividad", 2);
|
|
33616
|
+
__decorateClass([
|
|
33617
|
+
Expose547(),
|
|
33618
|
+
IsDefined155({ message: "El campo tipo_orden es obligatorio." }),
|
|
33619
|
+
IsString447()
|
|
33620
|
+
], Peru9112WinENTITYDB.prototype, "tipo_orden", 2);
|
|
33621
|
+
__decorateClass([
|
|
33622
|
+
Expose547(),
|
|
33623
|
+
IsDefined155({ message: "El campo numero_de_peticion es obligatorio." }),
|
|
33624
|
+
IsString447()
|
|
33625
|
+
], Peru9112WinENTITYDB.prototype, "numero_de_peticion", 2);
|
|
33626
|
+
__decorateClass([
|
|
33627
|
+
Expose547(),
|
|
33628
|
+
IsDefined155({ message: "El campo fecha_visita es obligatorio." }),
|
|
33629
|
+
IsDate134({ message: "debe ser una fecha" })
|
|
33630
|
+
], Peru9112WinENTITYDB.prototype, "fecha_visita", 2);
|
|
33631
|
+
__decorateClass([
|
|
33632
|
+
Expose547(),
|
|
33633
|
+
IsDefined155({ message: "El campo inicio_visita es obligatorio." }),
|
|
33634
|
+
IsDate134({ message: "debe ser una fecha" })
|
|
33635
|
+
], Peru9112WinENTITYDB.prototype, "inicio_visita", 2);
|
|
33636
|
+
__decorateClass([
|
|
33637
|
+
Expose547(),
|
|
33638
|
+
IsDefined155({ message: "El campo fin_visita es obligatorio." }),
|
|
33639
|
+
IsDate134({ message: "debe ser una fecha" })
|
|
33640
|
+
], Peru9112WinENTITYDB.prototype, "fin_visita", 2);
|
|
33641
|
+
__decorateClass([
|
|
33642
|
+
Expose547(),
|
|
33643
|
+
IsDefined155({ message: "El campo cliente es obligatorio." }),
|
|
33644
|
+
IsString447()
|
|
33645
|
+
], Peru9112WinENTITYDB.prototype, "cliente", 2);
|
|
33646
|
+
__decorateClass([
|
|
33647
|
+
Expose547(),
|
|
33648
|
+
IsDefined155({ message: "El campo direccion_cliente es obligatorio." }),
|
|
33649
|
+
ValidateNested316(),
|
|
33650
|
+
Type357(() => UbicacionwinDBDTO)
|
|
33651
|
+
], Peru9112WinENTITYDB.prototype, "direccion_cliente", 2);
|
|
33652
|
+
__decorateClass([
|
|
33653
|
+
Expose547(),
|
|
33654
|
+
IsDefined155({ message: "El campo motivo_regestion es obligatorio." }),
|
|
33655
|
+
IsString447()
|
|
33656
|
+
], Peru9112WinENTITYDB.prototype, "motivo_regestion", 2);
|
|
33657
|
+
__decorateClass([
|
|
33658
|
+
Expose547(),
|
|
33659
|
+
IsDefined155({ message: "El campo motivo_cancelacion es obligatorio." }),
|
|
33660
|
+
IsString447()
|
|
33661
|
+
], Peru9112WinENTITYDB.prototype, "motivo_cancelacion", 2);
|
|
33662
|
+
__decorateClass([
|
|
33663
|
+
Expose547(),
|
|
33664
|
+
IsDefined155({ message: "El campo motivo_suspension es obligatorio." }),
|
|
33665
|
+
IsString447()
|
|
33666
|
+
], Peru9112WinENTITYDB.prototype, "motivo_suspension", 2);
|
|
33667
|
+
__decorateClass([
|
|
33668
|
+
Expose547(),
|
|
33669
|
+
IsDefined155({ message: "El campo estado es obligatorio." }),
|
|
33670
|
+
IsEnum23(StateWin, { message: "El campo Estado no es v\xE1lido" })
|
|
33671
|
+
], Peru9112WinENTITYDB.prototype, "estado", 2);
|
|
33672
|
+
__decorateClass([
|
|
33673
|
+
Expose547(),
|
|
33674
|
+
IsDefined155({ message: "El campo fecha_estado es obligatorio." }),
|
|
33675
|
+
IsDate134({ message: "debe ser una fecha" })
|
|
33676
|
+
], Peru9112WinENTITYDB.prototype, "fecha_estado", 2);
|
|
33677
|
+
__decorateClass([
|
|
33678
|
+
Expose547(),
|
|
33679
|
+
IsDefined155({ message: "El campo fecha_solicitud es obligatorio." }),
|
|
33680
|
+
IsDate134({ message: "debe ser una fecha" })
|
|
33681
|
+
], Peru9112WinENTITYDB.prototype, "fecha_solicitud", 2);
|
|
33682
|
+
__decorateClass([
|
|
33683
|
+
Expose547(),
|
|
33684
|
+
IsDefined155({ message: "El campo tipo_de_orden es obligatorio." }),
|
|
33685
|
+
IsString447()
|
|
33686
|
+
], Peru9112WinENTITYDB.prototype, "tipo_de_orden", 2);
|
|
33687
|
+
__decorateClass([
|
|
33688
|
+
Expose547(),
|
|
33689
|
+
IsDefined155({ message: "El campo datos_tecnicos es obligatorio." }),
|
|
33690
|
+
IsString447()
|
|
33691
|
+
], Peru9112WinENTITYDB.prototype, "datos_tecnicos", 2);
|
|
33692
|
+
__decorateClass([
|
|
33693
|
+
Expose547(),
|
|
33694
|
+
IsDefined155({ message: "El campo movil es obligatorio." }),
|
|
33695
|
+
IsString447()
|
|
33696
|
+
], Peru9112WinENTITYDB.prototype, "movil", 2);
|
|
33697
|
+
__decorateClass([
|
|
33698
|
+
Expose547(),
|
|
33699
|
+
IsDefined155({ message: "El campo prioridad es obligatorio." }),
|
|
33700
|
+
IsString447()
|
|
33701
|
+
], Peru9112WinENTITYDB.prototype, "prioridad", 2);
|
|
33702
|
+
__decorateClass([
|
|
33703
|
+
Expose547(),
|
|
33704
|
+
IsDefined155({ message: "El campo suscripci\xF3n es obligatorio." }),
|
|
33705
|
+
IsString447()
|
|
33706
|
+
], Peru9112WinENTITYDB.prototype, "suscripci\xF3n", 2);
|
|
33707
|
+
__decorateClass([
|
|
33708
|
+
Expose547(),
|
|
33709
|
+
IsDefined155({ message: "El campo proveedor es obligatorio." }),
|
|
33710
|
+
IsString447()
|
|
33711
|
+
], Peru9112WinENTITYDB.prototype, "proveedor", 2);
|
|
33712
|
+
__decorateClass([
|
|
33713
|
+
Expose547(),
|
|
33714
|
+
IsDefined155({ message: "El campo historial_estados es obligatorio." }),
|
|
33715
|
+
IsArray181(),
|
|
33716
|
+
ValidateNested316({ each: true }),
|
|
33717
|
+
Type357(() => HistorialEstadoswinDBDTO)
|
|
33718
|
+
], Peru9112WinENTITYDB.prototype, "historial_estados", 2);
|
|
33719
|
+
__decorateClass([
|
|
33720
|
+
Expose547(),
|
|
33721
|
+
IsDefined155({ message: "El campo inventory es obligatorio." }),
|
|
33722
|
+
IsArray181(),
|
|
33723
|
+
ValidateNested316({ each: true }),
|
|
33724
|
+
Type357(() => MaterialeswinDBDTO)
|
|
33725
|
+
], Peru9112WinENTITYDB.prototype, "inventory", 2);
|
|
33726
|
+
|
|
33415
33727
|
// src/operativa/procesos/WIN order stock/shared/index.ts
|
|
33416
|
-
import { Expose as
|
|
33417
|
-
import { IsArray as
|
|
33728
|
+
import { Expose as Expose548, Type as Type358 } from "class-transformer";
|
|
33729
|
+
import { IsArray as IsArray182, IsDefined as IsDefined156, IsEnum as IsEnum24, IsNotEmpty as IsNotEmpty375, IsNumber as IsNumber360, IsString as IsString448, IsUUID as IsUUID4, MaxLength as MaxLength3, ValidateNested as ValidateNested317 } from "class-validator";
|
|
33418
33730
|
var WINOrderStockENTITY = class {
|
|
33419
33731
|
_id;
|
|
33420
33732
|
id_recurso;
|
|
@@ -33427,74 +33739,74 @@ var WINOrderStockENTITY = class {
|
|
|
33427
33739
|
state_replacement;
|
|
33428
33740
|
};
|
|
33429
33741
|
__decorateClass([
|
|
33430
|
-
|
|
33742
|
+
IsDefined156({ message: "El campo _id es obligatorio." }),
|
|
33431
33743
|
IsUUID4("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
33432
|
-
|
|
33744
|
+
Expose548({ name: "_id" })
|
|
33433
33745
|
], WINOrderStockENTITY.prototype, "_id", 2);
|
|
33434
33746
|
__decorateClass([
|
|
33435
|
-
|
|
33436
|
-
|
|
33437
|
-
|
|
33747
|
+
Expose548({ name: "id_recurso" }),
|
|
33748
|
+
IsDefined156({ message: "El campo ID Recurso es obligatorio." }),
|
|
33749
|
+
IsString448()
|
|
33438
33750
|
], WINOrderStockENTITY.prototype, "id_recurso", 2);
|
|
33439
33751
|
__decorateClass([
|
|
33440
|
-
|
|
33441
|
-
|
|
33752
|
+
IsDefined156({ message: "El campo itemCode es obligatorio" }),
|
|
33753
|
+
IsString448({ message: "El campo itemCode debe ser una cadena de texto v\xE1lida" }),
|
|
33442
33754
|
MaxLength3(50, { message: "El campo itemCode no puede superar los 50 caracteres" }),
|
|
33443
33755
|
IsNotEmpty375({ message: "El campo itemCode no puede estar vac\xEDo" }),
|
|
33444
|
-
|
|
33756
|
+
Expose548({ name: "codigo" })
|
|
33445
33757
|
], WINOrderStockENTITY.prototype, "itemCode", 2);
|
|
33446
33758
|
__decorateClass([
|
|
33447
|
-
|
|
33448
|
-
|
|
33449
|
-
|
|
33759
|
+
IsDefined156({ message: "El campo serial es obligatorio." }),
|
|
33760
|
+
IsString448({ message: "El campo serial debe ser una cadena de texto" }),
|
|
33761
|
+
Expose548({ name: "invsn" })
|
|
33450
33762
|
], WINOrderStockENTITY.prototype, "serial", 2);
|
|
33451
33763
|
__decorateClass([
|
|
33452
|
-
|
|
33453
|
-
|
|
33454
|
-
|
|
33764
|
+
Expose548({ name: "cantidad" }),
|
|
33765
|
+
IsDefined156({ message: "El campo quantity es obligatorio." }),
|
|
33766
|
+
IsNumber360()
|
|
33455
33767
|
], WINOrderStockENTITY.prototype, "quantity", 2);
|
|
33456
33768
|
__decorateClass([
|
|
33457
|
-
|
|
33458
|
-
|
|
33459
|
-
|
|
33769
|
+
Expose548({ name: "numero_de_peticion" }),
|
|
33770
|
+
IsDefined156({ message: "El campo N\xFAmero de Petici\xF3n es obligatorio." }),
|
|
33771
|
+
IsString448()
|
|
33460
33772
|
], WINOrderStockENTITY.prototype, "numero_de_peticion", 2);
|
|
33461
33773
|
__decorateClass([
|
|
33462
|
-
|
|
33463
|
-
|
|
33464
|
-
|
|
33465
|
-
|
|
33466
|
-
|
|
33774
|
+
IsDefined156({ message: "El campo stock_quantity_employee es obligatorio" }),
|
|
33775
|
+
IsArray182({ message: "El campo stock_quantity_employee debe ser un arreglo" }),
|
|
33776
|
+
ValidateNested317({ each: true, message: "Cada elemento del campo stock_quantity_employee debe ser una instancia v\xE1lida" }),
|
|
33777
|
+
Type358(() => StockQuantityEmployeeDTO),
|
|
33778
|
+
Expose548({ name: "stock_quantity_employee" })
|
|
33467
33779
|
], WINOrderStockENTITY.prototype, "stock_quantity_employee", 2);
|
|
33468
33780
|
__decorateClass([
|
|
33469
|
-
|
|
33470
|
-
|
|
33471
|
-
|
|
33781
|
+
IsDefined156({ message: "El campo estado consumo es obligatorio." }),
|
|
33782
|
+
Expose548({ name: "state_consumption" }),
|
|
33783
|
+
IsEnum24(StateInventory, { message: `El campo estado consumo debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
33472
33784
|
], WINOrderStockENTITY.prototype, "state_consumption", 2);
|
|
33473
33785
|
__decorateClass([
|
|
33474
|
-
|
|
33475
|
-
|
|
33476
|
-
|
|
33786
|
+
IsDefined156({ message: "El campo estado reposicion es obligatorio." }),
|
|
33787
|
+
Expose548({ name: "state_replacement" }),
|
|
33788
|
+
IsEnum24(StateInventory, { message: `El campo estado reposici\xF3n debe ser uno de: ${Object.values(StateInventory).join(", ")}.` })
|
|
33477
33789
|
], WINOrderStockENTITY.prototype, "state_replacement", 2);
|
|
33478
33790
|
|
|
33479
33791
|
// src/operativa/procesos/fibramas_order/shared/index.ts
|
|
33480
|
-
import { Expose as
|
|
33792
|
+
import { Expose as Expose550, Type as Type360 } from "class-transformer";
|
|
33481
33793
|
import {
|
|
33482
|
-
IsDefined as
|
|
33483
|
-
IsString as
|
|
33484
|
-
IsNumber as
|
|
33485
|
-
ValidateNested as
|
|
33486
|
-
IsArray as
|
|
33487
|
-
IsDate as
|
|
33488
|
-
IsEnum as
|
|
33794
|
+
IsDefined as IsDefined158,
|
|
33795
|
+
IsString as IsString450,
|
|
33796
|
+
IsNumber as IsNumber362,
|
|
33797
|
+
ValidateNested as ValidateNested319,
|
|
33798
|
+
IsArray as IsArray184,
|
|
33799
|
+
IsDate as IsDate136,
|
|
33800
|
+
IsEnum as IsEnum26
|
|
33489
33801
|
} from "class-validator";
|
|
33490
33802
|
import "reflect-metadata";
|
|
33491
33803
|
|
|
33492
33804
|
// src/operativa/procesos/fibramas_order/shared/dto/index.ts
|
|
33493
|
-
import { Expose as
|
|
33805
|
+
import { Expose as Expose549 } from "class-transformer";
|
|
33494
33806
|
import {
|
|
33495
|
-
IsDefined as
|
|
33496
|
-
IsString as
|
|
33497
|
-
IsNumber as
|
|
33807
|
+
IsDefined as IsDefined157,
|
|
33808
|
+
IsString as IsString449,
|
|
33809
|
+
IsNumber as IsNumber361
|
|
33498
33810
|
} from "class-validator";
|
|
33499
33811
|
import "reflect-metadata";
|
|
33500
33812
|
var MaterialesFibramasDTO = class {
|
|
@@ -33507,39 +33819,39 @@ var MaterialesFibramasDTO = class {
|
|
|
33507
33819
|
invpool = "";
|
|
33508
33820
|
};
|
|
33509
33821
|
__decorateClass([
|
|
33510
|
-
|
|
33511
|
-
|
|
33512
|
-
|
|
33822
|
+
Expose549({ name: "code" }),
|
|
33823
|
+
IsDefined157({ message: "El campo code es obligatorio." }),
|
|
33824
|
+
IsString449()
|
|
33513
33825
|
], MaterialesFibramasDTO.prototype, "codigo", 2);
|
|
33514
33826
|
__decorateClass([
|
|
33515
|
-
|
|
33516
|
-
|
|
33517
|
-
|
|
33827
|
+
Expose549({ name: "description" }),
|
|
33828
|
+
IsDefined157({ message: "El campo description es obligatorio." }),
|
|
33829
|
+
IsString449()
|
|
33518
33830
|
], MaterialesFibramasDTO.prototype, "descripcion", 2);
|
|
33519
33831
|
__decorateClass([
|
|
33520
|
-
|
|
33521
|
-
|
|
33522
|
-
|
|
33832
|
+
Expose549({ name: "lot" }),
|
|
33833
|
+
IsDefined157({ message: "El campo lot es obligatorio." }),
|
|
33834
|
+
IsString449()
|
|
33523
33835
|
], MaterialesFibramasDTO.prototype, "lote", 2);
|
|
33524
33836
|
__decorateClass([
|
|
33525
|
-
|
|
33526
|
-
|
|
33527
|
-
|
|
33837
|
+
Expose549({ name: "quantity" }),
|
|
33838
|
+
IsDefined157({ message: "El campo quantity es obligatorio." }),
|
|
33839
|
+
IsNumber361()
|
|
33528
33840
|
], MaterialesFibramasDTO.prototype, "cantidad", 2);
|
|
33529
33841
|
__decorateClass([
|
|
33530
|
-
|
|
33531
|
-
|
|
33532
|
-
|
|
33842
|
+
Expose549({ name: "invsn" }),
|
|
33843
|
+
IsDefined157({ message: "El campo invsn es obligatorio." }),
|
|
33844
|
+
IsString449()
|
|
33533
33845
|
], MaterialesFibramasDTO.prototype, "invsn", 2);
|
|
33534
33846
|
__decorateClass([
|
|
33535
|
-
|
|
33536
|
-
|
|
33537
|
-
|
|
33847
|
+
Expose549({ name: "invtype" }),
|
|
33848
|
+
IsDefined157({ message: "El campo invtype es obligatorio." }),
|
|
33849
|
+
IsString449()
|
|
33538
33850
|
], MaterialesFibramasDTO.prototype, "invtype", 2);
|
|
33539
33851
|
__decorateClass([
|
|
33540
|
-
|
|
33541
|
-
|
|
33542
|
-
|
|
33852
|
+
Expose549({ name: "invpool" }),
|
|
33853
|
+
IsDefined157({ message: "El campo invpool es obligatorio." }),
|
|
33854
|
+
IsString449()
|
|
33543
33855
|
], MaterialesFibramasDTO.prototype, "invpool", 2);
|
|
33544
33856
|
var StateFibramas = /* @__PURE__ */ ((StateFibramas2) => {
|
|
33545
33857
|
StateFibramas2["REGISTRADA"] = "REGISTRADA";
|
|
@@ -33581,148 +33893,369 @@ var Peru9112FibramasENTITY = class {
|
|
|
33581
33893
|
inventory = [];
|
|
33582
33894
|
};
|
|
33583
33895
|
__decorateClass([
|
|
33584
|
-
|
|
33585
|
-
|
|
33896
|
+
IsDefined158({ message: "El campo _id es obligatorio." }),
|
|
33897
|
+
Expose550({ name: "_id" })
|
|
33586
33898
|
], Peru9112FibramasENTITY.prototype, "_id", 2);
|
|
33587
33899
|
__decorateClass([
|
|
33588
|
-
|
|
33589
|
-
|
|
33590
|
-
|
|
33900
|
+
Expose550({ name: "NRO OS" }),
|
|
33901
|
+
IsDefined158({ message: "El campo NRO OS es obligatorio." }),
|
|
33902
|
+
IsString450()
|
|
33591
33903
|
], Peru9112FibramasENTITY.prototype, "numero_de_peticion", 2);
|
|
33592
33904
|
__decorateClass([
|
|
33593
|
-
|
|
33594
|
-
|
|
33595
|
-
|
|
33905
|
+
Expose550({ name: "ID Recurso" }),
|
|
33906
|
+
IsDefined158({ message: "El campo ID Recurso es obligatorio." }),
|
|
33907
|
+
IsString450({ message: "El campo toa_resource_id debe ser una cadena de texto" })
|
|
33596
33908
|
], Peru9112FibramasENTITY.prototype, "resource_id", 2);
|
|
33597
33909
|
__decorateClass([
|
|
33598
|
-
|
|
33599
|
-
|
|
33600
|
-
|
|
33910
|
+
Expose550({ name: "NOMBRE TECNICO EJECUTOR" }),
|
|
33911
|
+
IsDefined158({ message: "El campo NOMBRE TECNICO EJECUTOR es obligatorio." }),
|
|
33912
|
+
IsString450()
|
|
33601
33913
|
], Peru9112FibramasENTITY.prototype, "tecnico", 2);
|
|
33602
33914
|
__decorateClass([
|
|
33603
|
-
|
|
33604
|
-
|
|
33605
|
-
|
|
33915
|
+
Expose550({ name: "TIPO OS" }),
|
|
33916
|
+
IsDefined158({ message: "El campo TIPO OS es obligatorio." }),
|
|
33917
|
+
IsString450()
|
|
33606
33918
|
], Peru9112FibramasENTITY.prototype, "subtipo_de_actividad", 2);
|
|
33607
33919
|
__decorateClass([
|
|
33608
|
-
|
|
33609
|
-
|
|
33610
|
-
|
|
33920
|
+
Expose550({ name: "TipoOS" }),
|
|
33921
|
+
IsDefined158({ message: "El campo TipoOS es obligatorio." }),
|
|
33922
|
+
IsString450()
|
|
33611
33923
|
], Peru9112FibramasENTITY.prototype, "tipo_orden", 2);
|
|
33612
33924
|
__decorateClass([
|
|
33613
|
-
|
|
33614
|
-
|
|
33615
|
-
|
|
33925
|
+
Expose550({ name: "SERVICIO" }),
|
|
33926
|
+
IsDefined158({ message: "El campo SERVICIO es obligatorio." }),
|
|
33927
|
+
IsString450()
|
|
33616
33928
|
], Peru9112FibramasENTITY.prototype, "servicio", 2);
|
|
33617
33929
|
__decorateClass([
|
|
33618
|
-
|
|
33619
|
-
|
|
33620
|
-
|
|
33930
|
+
Expose550({ name: "ESTADO DEL SERVICIO" }),
|
|
33931
|
+
IsDefined158({ message: "El campo ESTADO DEL SERVICIO es obligatorio." }),
|
|
33932
|
+
IsEnum26(StateServiceFibramas, { message: "El campo ESTADO DEL SERVICIO no es v\xE1lido" })
|
|
33621
33933
|
], Peru9112FibramasENTITY.prototype, "estado_del_servicio", 2);
|
|
33622
33934
|
__decorateClass([
|
|
33623
|
-
|
|
33624
|
-
|
|
33625
|
-
|
|
33935
|
+
Expose550({ name: "TARIFA DE SERVICIO" }),
|
|
33936
|
+
IsDefined158({ message: "El campo TARIFA DE SERVICIO es obligatorio." }),
|
|
33937
|
+
IsString450()
|
|
33626
33938
|
], Peru9112FibramasENTITY.prototype, "tarifa_de_servicio", 2);
|
|
33627
33939
|
__decorateClass([
|
|
33628
|
-
|
|
33629
|
-
|
|
33630
|
-
|
|
33940
|
+
Expose550({ name: "PUNTOS PRINC. INSTAL" }),
|
|
33941
|
+
IsDefined158({ message: "El campo PUNTOS PRINC. INSTAL es obligatorio." }),
|
|
33942
|
+
IsNumber362()
|
|
33631
33943
|
], Peru9112FibramasENTITY.prototype, "puntos_principal_instalacion", 2);
|
|
33632
33944
|
__decorateClass([
|
|
33633
|
-
|
|
33634
|
-
|
|
33635
|
-
|
|
33945
|
+
Expose550({ name: "PUNTOS ADD. INSTAL" }),
|
|
33946
|
+
IsDefined158({ message: "El campo PUNTOS ADD. INSTAL es obligatorio." }),
|
|
33947
|
+
IsNumber362()
|
|
33636
33948
|
], Peru9112FibramasENTITY.prototype, "puntos_adicional_instalacion", 2);
|
|
33637
33949
|
__decorateClass([
|
|
33638
|
-
|
|
33639
|
-
|
|
33640
|
-
|
|
33950
|
+
Expose550({ name: "ABONADO" }),
|
|
33951
|
+
IsDefined158({ message: "El campo ABONADO es obligatorio." }),
|
|
33952
|
+
IsString450()
|
|
33641
33953
|
], Peru9112FibramasENTITY.prototype, "abonado", 2);
|
|
33642
33954
|
__decorateClass([
|
|
33643
|
-
|
|
33644
|
-
|
|
33645
|
-
|
|
33955
|
+
Expose550({ name: "NOMBRES/RAZON SOCIAL" }),
|
|
33956
|
+
IsDefined158({ message: "El campo NOMBRES/RAZON SOCIAL es obligatorio." }),
|
|
33957
|
+
IsString450()
|
|
33646
33958
|
], Peru9112FibramasENTITY.prototype, "cliente", 2);
|
|
33647
33959
|
__decorateClass([
|
|
33648
|
-
|
|
33649
|
-
|
|
33650
|
-
|
|
33960
|
+
Expose550({ name: "RUTA" }),
|
|
33961
|
+
IsDefined158({ message: "El campo RUTA es obligatorio." }),
|
|
33962
|
+
IsString450()
|
|
33651
33963
|
], Peru9112FibramasENTITY.prototype, "direccion", 2);
|
|
33652
33964
|
__decorateClass([
|
|
33653
|
-
|
|
33654
|
-
|
|
33655
|
-
|
|
33965
|
+
Expose550({ name: "SECTOR" }),
|
|
33966
|
+
IsDefined158({ message: "El campo SECTOR es obligatorio." }),
|
|
33967
|
+
IsString450()
|
|
33656
33968
|
], Peru9112FibramasENTITY.prototype, "sector_operativo", 2);
|
|
33657
33969
|
__decorateClass([
|
|
33658
|
-
|
|
33659
|
-
|
|
33660
|
-
|
|
33970
|
+
Expose550({ name: "CELULAR" }),
|
|
33971
|
+
IsDefined158({ message: "El campo CELULAR es obligatorio." }),
|
|
33972
|
+
IsString450()
|
|
33661
33973
|
], Peru9112FibramasENTITY.prototype, "contacto", 2);
|
|
33662
33974
|
__decorateClass([
|
|
33663
|
-
|
|
33664
|
-
|
|
33665
|
-
|
|
33975
|
+
Expose550({ name: "CELULAR DOS" }),
|
|
33976
|
+
IsDefined158({ message: "El campo CELULAR DOS es obligatorio." }),
|
|
33977
|
+
IsString450()
|
|
33666
33978
|
], Peru9112FibramasENTITY.prototype, "contacto_2", 2);
|
|
33667
33979
|
__decorateClass([
|
|
33668
|
-
|
|
33669
|
-
|
|
33670
|
-
|
|
33980
|
+
Expose550({ name: "OBSERVACIONES" }),
|
|
33981
|
+
IsDefined158({ message: "El campo OBSERVACIONES es obligatorio." }),
|
|
33982
|
+
IsString450()
|
|
33671
33983
|
], Peru9112FibramasENTITY.prototype, "observaciones", 2);
|
|
33672
33984
|
__decorateClass([
|
|
33673
|
-
|
|
33674
|
-
|
|
33675
|
-
|
|
33985
|
+
Expose550({ name: "F. RECEP." }),
|
|
33986
|
+
IsDefined158({ message: "El campo F. RECEP. es obligatorio." }),
|
|
33987
|
+
IsDate136({ message: "debe ser una fecha" })
|
|
33676
33988
|
], Peru9112FibramasENTITY.prototype, "fecha_recepcion", 2);
|
|
33677
33989
|
__decorateClass([
|
|
33678
|
-
|
|
33679
|
-
|
|
33680
|
-
|
|
33990
|
+
Expose550({ name: "H. RECEP." }),
|
|
33991
|
+
IsDefined158({ message: "El campo H. RECEP. es obligatorio." }),
|
|
33992
|
+
IsString450()
|
|
33681
33993
|
], Peru9112FibramasENTITY.prototype, "hora_recepcion", 2);
|
|
33682
33994
|
__decorateClass([
|
|
33683
|
-
|
|
33684
|
-
|
|
33685
|
-
|
|
33995
|
+
Expose550({ name: "F. ATENC." }),
|
|
33996
|
+
IsDefined158({ message: "El campo F. ATENC. es obligatorio." }),
|
|
33997
|
+
IsDate136({ message: "debe ser una fecha" })
|
|
33686
33998
|
], Peru9112FibramasENTITY.prototype, "fecha_atencion", 2);
|
|
33687
33999
|
__decorateClass([
|
|
33688
|
-
|
|
33689
|
-
|
|
33690
|
-
|
|
34000
|
+
Expose550({ name: "H. INI" }),
|
|
34001
|
+
IsDefined158({ message: "El campo H. INI es obligatorio." }),
|
|
34002
|
+
IsString450()
|
|
33691
34003
|
], Peru9112FibramasENTITY.prototype, "hora_ini_atencion", 2);
|
|
33692
34004
|
__decorateClass([
|
|
33693
|
-
|
|
33694
|
-
|
|
33695
|
-
|
|
34005
|
+
Expose550({ name: "H. FIN" }),
|
|
34006
|
+
IsDefined158({ message: "El campo H. FIN es obligatorio." }),
|
|
34007
|
+
IsString450()
|
|
33696
34008
|
], Peru9112FibramasENTITY.prototype, "hora_fin_atencion", 2);
|
|
33697
34009
|
__decorateClass([
|
|
33698
|
-
|
|
33699
|
-
|
|
33700
|
-
|
|
34010
|
+
Expose550({ name: "ESTADO OS" }),
|
|
34011
|
+
IsDefined158({ message: "El campo ESTADO OS es obligatorio." }),
|
|
34012
|
+
IsEnum26(StateFibramas, { message: "El campo ESTADO OS no es v\xE1lido" })
|
|
33701
34013
|
], Peru9112FibramasENTITY.prototype, "estado", 2);
|
|
33702
34014
|
__decorateClass([
|
|
33703
|
-
|
|
33704
|
-
|
|
33705
|
-
|
|
33706
|
-
|
|
33707
|
-
|
|
34015
|
+
Expose550({ name: "Inventory" }),
|
|
34016
|
+
IsDefined158({ message: "El campo Inventory es obligatorio." }),
|
|
34017
|
+
IsArray184(),
|
|
34018
|
+
ValidateNested319({ each: true }),
|
|
34019
|
+
Type360(() => MaterialesFibramasDTO)
|
|
33708
34020
|
], Peru9112FibramasENTITY.prototype, "inventory", 2);
|
|
33709
34021
|
|
|
34022
|
+
// src/operativa/procesos/fibramas_order_db/shared/index.ts
|
|
34023
|
+
import { Expose as Expose552, Type as Type362 } from "class-transformer";
|
|
34024
|
+
import {
|
|
34025
|
+
IsDefined as IsDefined160,
|
|
34026
|
+
IsString as IsString452,
|
|
34027
|
+
IsNumber as IsNumber364,
|
|
34028
|
+
ValidateNested as ValidateNested320,
|
|
34029
|
+
IsArray as IsArray185,
|
|
34030
|
+
IsDate as IsDate137,
|
|
34031
|
+
IsEnum as IsEnum27
|
|
34032
|
+
} from "class-validator";
|
|
34033
|
+
import "reflect-metadata";
|
|
34034
|
+
|
|
34035
|
+
// src/operativa/procesos/fibramas_order_db/shared/dto/index.ts
|
|
34036
|
+
import { Expose as Expose551 } from "class-transformer";
|
|
34037
|
+
import {
|
|
34038
|
+
IsDefined as IsDefined159,
|
|
34039
|
+
IsString as IsString451,
|
|
34040
|
+
IsNumber as IsNumber363
|
|
34041
|
+
} from "class-validator";
|
|
34042
|
+
import "reflect-metadata";
|
|
34043
|
+
var MaterialesFibramasDBDTO = class {
|
|
34044
|
+
codigo = "";
|
|
34045
|
+
descripcion = "";
|
|
34046
|
+
lote = "";
|
|
34047
|
+
cantidad = 0;
|
|
34048
|
+
invsn = "";
|
|
34049
|
+
invtype = "";
|
|
34050
|
+
invpool = "";
|
|
34051
|
+
};
|
|
34052
|
+
__decorateClass([
|
|
34053
|
+
Expose551(),
|
|
34054
|
+
IsDefined159({ message: "El campo code es obligatorio." }),
|
|
34055
|
+
IsString451()
|
|
34056
|
+
], MaterialesFibramasDBDTO.prototype, "codigo", 2);
|
|
34057
|
+
__decorateClass([
|
|
34058
|
+
Expose551(),
|
|
34059
|
+
IsDefined159({ message: "El campo description es obligatorio." }),
|
|
34060
|
+
IsString451()
|
|
34061
|
+
], MaterialesFibramasDBDTO.prototype, "descripcion", 2);
|
|
34062
|
+
__decorateClass([
|
|
34063
|
+
Expose551(),
|
|
34064
|
+
IsDefined159({ message: "El campo lot es obligatorio." }),
|
|
34065
|
+
IsString451()
|
|
34066
|
+
], MaterialesFibramasDBDTO.prototype, "lote", 2);
|
|
34067
|
+
__decorateClass([
|
|
34068
|
+
Expose551(),
|
|
34069
|
+
IsDefined159({ message: "El campo quantity es obligatorio." }),
|
|
34070
|
+
IsNumber363()
|
|
34071
|
+
], MaterialesFibramasDBDTO.prototype, "cantidad", 2);
|
|
34072
|
+
__decorateClass([
|
|
34073
|
+
Expose551(),
|
|
34074
|
+
IsDefined159({ message: "El campo invsn es obligatorio." }),
|
|
34075
|
+
IsString451()
|
|
34076
|
+
], MaterialesFibramasDBDTO.prototype, "invsn", 2);
|
|
34077
|
+
__decorateClass([
|
|
34078
|
+
Expose551(),
|
|
34079
|
+
IsDefined159({ message: "El campo invtype es obligatorio." }),
|
|
34080
|
+
IsString451()
|
|
34081
|
+
], MaterialesFibramasDBDTO.prototype, "invtype", 2);
|
|
34082
|
+
__decorateClass([
|
|
34083
|
+
Expose551(),
|
|
34084
|
+
IsDefined159({ message: "El campo invpool es obligatorio." }),
|
|
34085
|
+
IsString451()
|
|
34086
|
+
], MaterialesFibramasDBDTO.prototype, "invpool", 2);
|
|
34087
|
+
|
|
34088
|
+
// src/operativa/procesos/fibramas_order_db/shared/index.ts
|
|
34089
|
+
var Peru9112FibramasENTITYDB = class {
|
|
34090
|
+
_id = "";
|
|
34091
|
+
numero_de_peticion = "";
|
|
34092
|
+
resource_id = "";
|
|
34093
|
+
tecnico = "";
|
|
34094
|
+
subtipo_de_actividad = "";
|
|
34095
|
+
tipo_orden = "";
|
|
34096
|
+
servicio = "";
|
|
34097
|
+
estado_del_servicio = "ACTIVO" /* ACTIVO */;
|
|
34098
|
+
tarifa_de_servicio = "";
|
|
34099
|
+
puntos_principal_instalacion = 0;
|
|
34100
|
+
puntos_adicional_instalacion = 0;
|
|
34101
|
+
abonado = "";
|
|
34102
|
+
cliente = "";
|
|
34103
|
+
direccion = "";
|
|
34104
|
+
sector_operativo = "";
|
|
34105
|
+
contacto = "";
|
|
34106
|
+
contacto_2 = "";
|
|
34107
|
+
observaciones = "";
|
|
34108
|
+
fecha_recepcion = /* @__PURE__ */ new Date();
|
|
34109
|
+
hora_recepcion = "";
|
|
34110
|
+
fecha_atencion = /* @__PURE__ */ new Date();
|
|
34111
|
+
hora_ini_atencion = "";
|
|
34112
|
+
hora_fin_atencion = "";
|
|
34113
|
+
estado = "DESCARGADA" /* FINALIZADA */;
|
|
34114
|
+
inventory = [];
|
|
34115
|
+
};
|
|
34116
|
+
__decorateClass([
|
|
34117
|
+
IsDefined160({ message: "El campo _id es obligatorio." }),
|
|
34118
|
+
Expose552()
|
|
34119
|
+
], Peru9112FibramasENTITYDB.prototype, "_id", 2);
|
|
34120
|
+
__decorateClass([
|
|
34121
|
+
Expose552(),
|
|
34122
|
+
IsDefined160({ message: "El campo numero_de_peticion es obligatorio." }),
|
|
34123
|
+
IsString452()
|
|
34124
|
+
], Peru9112FibramasENTITYDB.prototype, "numero_de_peticion", 2);
|
|
34125
|
+
__decorateClass([
|
|
34126
|
+
Expose552(),
|
|
34127
|
+
IsDefined160({ message: "El campo resource_id es obligatorio." }),
|
|
34128
|
+
IsString452({ message: "El campo resource_id debe ser una cadena de texto" })
|
|
34129
|
+
], Peru9112FibramasENTITYDB.prototype, "resource_id", 2);
|
|
34130
|
+
__decorateClass([
|
|
34131
|
+
Expose552(),
|
|
34132
|
+
IsDefined160({ message: "El campo tecnico es obligatorio." }),
|
|
34133
|
+
IsString452()
|
|
34134
|
+
], Peru9112FibramasENTITYDB.prototype, "tecnico", 2);
|
|
34135
|
+
__decorateClass([
|
|
34136
|
+
Expose552(),
|
|
34137
|
+
IsDefined160({ message: "El campo subtipo_de_actividad es obligatorio." }),
|
|
34138
|
+
IsString452()
|
|
34139
|
+
], Peru9112FibramasENTITYDB.prototype, "subtipo_de_actividad", 2);
|
|
34140
|
+
__decorateClass([
|
|
34141
|
+
Expose552(),
|
|
34142
|
+
IsDefined160({ message: "El campo tipo_orden es obligatorio." }),
|
|
34143
|
+
IsString452()
|
|
34144
|
+
], Peru9112FibramasENTITYDB.prototype, "tipo_orden", 2);
|
|
34145
|
+
__decorateClass([
|
|
34146
|
+
Expose552(),
|
|
34147
|
+
IsDefined160({ message: "El campo servicio es obligatorio." }),
|
|
34148
|
+
IsString452()
|
|
34149
|
+
], Peru9112FibramasENTITYDB.prototype, "servicio", 2);
|
|
34150
|
+
__decorateClass([
|
|
34151
|
+
Expose552(),
|
|
34152
|
+
IsDefined160({ message: "El campo estado_del_servicio es obligatorio." }),
|
|
34153
|
+
IsEnum27(StateServiceFibramas, { message: "El campo ESTADO DEL SERVICIO no es v\xE1lido" })
|
|
34154
|
+
], Peru9112FibramasENTITYDB.prototype, "estado_del_servicio", 2);
|
|
34155
|
+
__decorateClass([
|
|
34156
|
+
Expose552(),
|
|
34157
|
+
IsDefined160({ message: "El campo tarifa_de_servicio es obligatorio." }),
|
|
34158
|
+
IsString452()
|
|
34159
|
+
], Peru9112FibramasENTITYDB.prototype, "tarifa_de_servicio", 2);
|
|
34160
|
+
__decorateClass([
|
|
34161
|
+
Expose552(),
|
|
34162
|
+
IsDefined160({ message: "El campo puntos_principal_instalacion es obligatorio." }),
|
|
34163
|
+
IsNumber364()
|
|
34164
|
+
], Peru9112FibramasENTITYDB.prototype, "puntos_principal_instalacion", 2);
|
|
34165
|
+
__decorateClass([
|
|
34166
|
+
Expose552(),
|
|
34167
|
+
IsDefined160({ message: "El campo puntos_adicional_instalacion es obligatorio." }),
|
|
34168
|
+
IsNumber364()
|
|
34169
|
+
], Peru9112FibramasENTITYDB.prototype, "puntos_adicional_instalacion", 2);
|
|
34170
|
+
__decorateClass([
|
|
34171
|
+
Expose552(),
|
|
34172
|
+
IsDefined160({ message: "El campo abonado es obligatorio." }),
|
|
34173
|
+
IsString452()
|
|
34174
|
+
], Peru9112FibramasENTITYDB.prototype, "abonado", 2);
|
|
34175
|
+
__decorateClass([
|
|
34176
|
+
Expose552(),
|
|
34177
|
+
IsDefined160({ message: "El campo cliente es obligatorio." }),
|
|
34178
|
+
IsString452()
|
|
34179
|
+
], Peru9112FibramasENTITYDB.prototype, "cliente", 2);
|
|
34180
|
+
__decorateClass([
|
|
34181
|
+
Expose552(),
|
|
34182
|
+
IsDefined160({ message: "El campo direccion es obligatorio." }),
|
|
34183
|
+
IsString452()
|
|
34184
|
+
], Peru9112FibramasENTITYDB.prototype, "direccion", 2);
|
|
34185
|
+
__decorateClass([
|
|
34186
|
+
Expose552(),
|
|
34187
|
+
IsDefined160({ message: "El campo sector_operativo es obligatorio." }),
|
|
34188
|
+
IsString452()
|
|
34189
|
+
], Peru9112FibramasENTITYDB.prototype, "sector_operativo", 2);
|
|
34190
|
+
__decorateClass([
|
|
34191
|
+
Expose552(),
|
|
34192
|
+
IsDefined160({ message: "El campo contacto es obligatorio." }),
|
|
34193
|
+
IsString452()
|
|
34194
|
+
], Peru9112FibramasENTITYDB.prototype, "contacto", 2);
|
|
34195
|
+
__decorateClass([
|
|
34196
|
+
Expose552(),
|
|
34197
|
+
IsDefined160({ message: "El campo contacto_2 es obligatorio." }),
|
|
34198
|
+
IsString452()
|
|
34199
|
+
], Peru9112FibramasENTITYDB.prototype, "contacto_2", 2);
|
|
34200
|
+
__decorateClass([
|
|
34201
|
+
Expose552(),
|
|
34202
|
+
IsDefined160({ message: "El campo observaciones es obligatorio." }),
|
|
34203
|
+
IsString452()
|
|
34204
|
+
], Peru9112FibramasENTITYDB.prototype, "observaciones", 2);
|
|
34205
|
+
__decorateClass([
|
|
34206
|
+
Expose552(),
|
|
34207
|
+
IsDefined160({ message: "El campo fecha_recepcion es obligatorio." }),
|
|
34208
|
+
IsDate137({ message: "debe ser una fecha" })
|
|
34209
|
+
], Peru9112FibramasENTITYDB.prototype, "fecha_recepcion", 2);
|
|
34210
|
+
__decorateClass([
|
|
34211
|
+
Expose552(),
|
|
34212
|
+
IsDefined160({ message: "El campo hora_recepcion es obligatorio." }),
|
|
34213
|
+
IsString452()
|
|
34214
|
+
], Peru9112FibramasENTITYDB.prototype, "hora_recepcion", 2);
|
|
34215
|
+
__decorateClass([
|
|
34216
|
+
Expose552(),
|
|
34217
|
+
IsDefined160({ message: "El campo fecha_atencion es obligatorio." }),
|
|
34218
|
+
IsDate137({ message: "debe ser una fecha" })
|
|
34219
|
+
], Peru9112FibramasENTITYDB.prototype, "fecha_atencion", 2);
|
|
34220
|
+
__decorateClass([
|
|
34221
|
+
Expose552(),
|
|
34222
|
+
IsDefined160({ message: "El campo hora_ini_atencion es obligatorio." }),
|
|
34223
|
+
IsString452()
|
|
34224
|
+
], Peru9112FibramasENTITYDB.prototype, "hora_ini_atencion", 2);
|
|
34225
|
+
__decorateClass([
|
|
34226
|
+
Expose552(),
|
|
34227
|
+
IsDefined160({ message: "El campo hora_fin_atencion es obligatorio." }),
|
|
34228
|
+
IsString452()
|
|
34229
|
+
], Peru9112FibramasENTITYDB.prototype, "hora_fin_atencion", 2);
|
|
34230
|
+
__decorateClass([
|
|
34231
|
+
Expose552(),
|
|
34232
|
+
IsDefined160({ message: "El campo estado es obligatorio." }),
|
|
34233
|
+
IsEnum27(StateFibramas, { message: "El campo ESTADO OS no es v\xE1lido" })
|
|
34234
|
+
], Peru9112FibramasENTITYDB.prototype, "estado", 2);
|
|
34235
|
+
__decorateClass([
|
|
34236
|
+
Expose552(),
|
|
34237
|
+
IsDefined160({ message: "El campo Inventory es obligatorio." }),
|
|
34238
|
+
IsArray185(),
|
|
34239
|
+
ValidateNested320({ each: true }),
|
|
34240
|
+
Type362(() => MaterialesFibramasDBDTO)
|
|
34241
|
+
], Peru9112FibramasENTITYDB.prototype, "inventory", 2);
|
|
34242
|
+
|
|
33710
34243
|
// src/v2/dtos/CodigoNombre.ts
|
|
33711
|
-
import { Expose as
|
|
33712
|
-
import { IsDefined as
|
|
34244
|
+
import { Expose as Expose553 } from "class-transformer";
|
|
34245
|
+
import { IsDefined as IsDefined161, IsString as IsString453, MinLength as MinLength46 } from "class-validator";
|
|
33713
34246
|
var CodigoNombreDto = class {
|
|
33714
34247
|
codigo;
|
|
33715
34248
|
nombre;
|
|
33716
34249
|
};
|
|
33717
34250
|
__decorateClass([
|
|
33718
|
-
|
|
33719
|
-
|
|
33720
|
-
|
|
34251
|
+
IsDefined161({ message: 'La propiedad "codigo" es obligatoria.' }),
|
|
34252
|
+
IsString453({ message: 'La propiedad "codigo" debe ser una cadena de texto.' }),
|
|
34253
|
+
Expose553()
|
|
33721
34254
|
], CodigoNombreDto.prototype, "codigo", 2);
|
|
33722
34255
|
__decorateClass([
|
|
33723
|
-
|
|
33724
|
-
|
|
33725
|
-
|
|
34256
|
+
IsDefined161({ message: 'La propiedad "nombre" es obligatoria.' }),
|
|
34257
|
+
IsString453({ message: 'La propiedad "nombre" debe ser una cadena de texto.' }),
|
|
34258
|
+
Expose553()
|
|
33726
34259
|
], CodigoNombreDto.prototype, "nombre", 2);
|
|
33727
34260
|
var CodigoNombreMinLengthDto = class extends CodigoNombreDto {
|
|
33728
34261
|
};
|
|
@@ -33734,25 +34267,25 @@ __decorateClass([
|
|
|
33734
34267
|
], CodigoNombreMinLengthDto.prototype, "nombre", 2);
|
|
33735
34268
|
|
|
33736
34269
|
// src/v2/entities/Delegacion.ts
|
|
33737
|
-
import { Expose as
|
|
33738
|
-
import { IsDefined as
|
|
34270
|
+
import { Expose as Expose555, Type as Type363 } from "class-transformer";
|
|
34271
|
+
import { IsDefined as IsDefined163, IsObject as IsObject13, IsString as IsString454, MinLength as MinLength47, ValidateNested as ValidateNested321 } from "class-validator";
|
|
33739
34272
|
|
|
33740
34273
|
// src/v2/entities/Base.ts
|
|
33741
|
-
import { Expose as
|
|
33742
|
-
import { IsBoolean as IsBoolean50, IsDefined as
|
|
34274
|
+
import { Expose as Expose554 } from "class-transformer";
|
|
34275
|
+
import { IsBoolean as IsBoolean50, IsDefined as IsDefined162, IsUUID as IsUUID5 } from "class-validator";
|
|
33743
34276
|
var BaseEntity = class {
|
|
33744
34277
|
_id;
|
|
33745
34278
|
activo;
|
|
33746
34279
|
};
|
|
33747
34280
|
__decorateClass([
|
|
33748
|
-
|
|
34281
|
+
IsDefined162({ message: 'La propiedad "_id" es obligatoria.' }),
|
|
33749
34282
|
IsUUID5("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
33750
|
-
|
|
34283
|
+
Expose554()
|
|
33751
34284
|
], BaseEntity.prototype, "_id", 2);
|
|
33752
34285
|
__decorateClass([
|
|
33753
|
-
|
|
34286
|
+
IsDefined162({ message: 'La propiedad "activo" es obligatoria.' }),
|
|
33754
34287
|
IsBoolean50({ message: 'La propiedad "activo" debe ser un valor booleano.' }),
|
|
33755
|
-
|
|
34288
|
+
Expose554()
|
|
33756
34289
|
], BaseEntity.prototype, "activo", 2);
|
|
33757
34290
|
|
|
33758
34291
|
// src/v2/entities/Delegacion.ts
|
|
@@ -33762,23 +34295,23 @@ var DelegacionEntity = class extends BaseEntity {
|
|
|
33762
34295
|
nombre;
|
|
33763
34296
|
};
|
|
33764
34297
|
__decorateClass([
|
|
33765
|
-
|
|
33766
|
-
|
|
33767
|
-
|
|
33768
|
-
|
|
33769
|
-
|
|
34298
|
+
IsDefined163({ message: 'La propiedad "pais" es obligatoria.' }),
|
|
34299
|
+
Type363(() => CodigoNombreMinLengthDto),
|
|
34300
|
+
IsObject13({ message: 'La propiedad "pais" debe ser un objeto v\xE1lido.' }),
|
|
34301
|
+
ValidateNested321({ message: 'La propiedad "pais" no es v\xE1lida.' }),
|
|
34302
|
+
Expose555()
|
|
33770
34303
|
], DelegacionEntity.prototype, "pais", 2);
|
|
33771
34304
|
__decorateClass([
|
|
33772
|
-
|
|
33773
|
-
|
|
34305
|
+
IsDefined163({ message: 'La propiedad "codigo" es obligatoria.' }),
|
|
34306
|
+
IsString454({ message: 'La propiedad "codigo" debe ser una cadena de texto.' }),
|
|
33774
34307
|
MinLength47(1, { message: 'La propiedad "codigo" debe tener al menos 1 car\xE1cter.' }),
|
|
33775
|
-
|
|
34308
|
+
Expose555()
|
|
33776
34309
|
], DelegacionEntity.prototype, "codigo", 2);
|
|
33777
34310
|
__decorateClass([
|
|
33778
|
-
|
|
33779
|
-
|
|
34311
|
+
IsDefined163({ message: 'La propiedad "nombre" es obligatoria.' }),
|
|
34312
|
+
IsString454({ message: 'La propiedad "nombre" debe ser una cadena de texto.' }),
|
|
33780
34313
|
MinLength47(1, { message: 'La propiedad "nombre" debe tener al menos 1 car\xE1cter.' }),
|
|
33781
|
-
|
|
34314
|
+
Expose555()
|
|
33782
34315
|
], DelegacionEntity.prototype, "nombre", 2);
|
|
33783
34316
|
export {
|
|
33784
34317
|
ADM_RM_ZonasActividadENTITY,
|
|
@@ -34006,6 +34539,7 @@ export {
|
|
|
34006
34539
|
HPListAsignacionDTO,
|
|
34007
34540
|
HPListDTO,
|
|
34008
34541
|
HistorialCubicacionDTO,
|
|
34542
|
+
HistorialEstadoswinDBDTO,
|
|
34009
34543
|
HistorialEstadoswinDTO,
|
|
34010
34544
|
HistoricoDTO,
|
|
34011
34545
|
HistoricoEmpresasDTO,
|
|
@@ -34075,9 +34609,11 @@ export {
|
|
|
34075
34609
|
MaterialesConsumoDTO,
|
|
34076
34610
|
MaterialesCubicacionDTO,
|
|
34077
34611
|
MaterialesDTO,
|
|
34612
|
+
MaterialesFibramasDBDTO,
|
|
34078
34613
|
MaterialesFibramasDTO,
|
|
34079
34614
|
MaterialestoaDBDTO,
|
|
34080
34615
|
MaterialestoaDTO,
|
|
34616
|
+
MaterialeswinDBDTO,
|
|
34081
34617
|
MaterialeswinDTO,
|
|
34082
34618
|
MedidorDTO,
|
|
34083
34619
|
ModelMOSQLPeruENTITY,
|
|
@@ -34126,9 +34662,11 @@ export {
|
|
|
34126
34662
|
PersonalTOADTO,
|
|
34127
34663
|
PersonalTrabajoDTO,
|
|
34128
34664
|
Peru9112FibramasENTITY,
|
|
34665
|
+
Peru9112FibramasENTITYDB,
|
|
34129
34666
|
Peru9112TOAENTITY,
|
|
34130
34667
|
Peru9112TOAENTITYDB,
|
|
34131
34668
|
Peru9112WinENTITY,
|
|
34669
|
+
Peru9112WinENTITYDB,
|
|
34132
34670
|
PlantaDBDTO,
|
|
34133
34671
|
PlantaDTO,
|
|
34134
34672
|
PrecioActualDTO,
|
|
@@ -34267,6 +34805,7 @@ export {
|
|
|
34267
34805
|
UbicacionTdCDTO,
|
|
34268
34806
|
UbicaciontoaDBDTO,
|
|
34269
34807
|
UbicaciontoaDTO,
|
|
34808
|
+
UbicacionwinDBDTO,
|
|
34270
34809
|
UbicacionwinDTO,
|
|
34271
34810
|
Ultima_FaseLiberacionPagosDTO,
|
|
34272
34811
|
Ultima_PreLiquidacionAlemaniaDTO,
|