sigo-entities 1.2.519 → 1.2.521
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 +41 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.js +310 -199
- package/dist/index.mjs +277 -172
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -53260,6 +53260,8 @@ var BtAlpPluzOrder2ENTITY = class {
|
|
|
53260
53260
|
en_ejecucion_por_tecnico_act_udf = "";
|
|
53261
53261
|
EECC = new EECCBtAlpPluzDTO();
|
|
53262
53262
|
liquidacion = [];
|
|
53263
|
+
preliquidacion = [];
|
|
53264
|
+
documentacion = [];
|
|
53263
53265
|
id_preliquidacion = 0;
|
|
53264
53266
|
estado_preliquidacion = 0;
|
|
53265
53267
|
bitacora = [];
|
|
@@ -53800,6 +53802,20 @@ __decorateClass([
|
|
|
53800
53802
|
ValidateNested425({ each: true }),
|
|
53801
53803
|
Type493(() => LiquidacionBtAlpPluzOrder2DTO)
|
|
53802
53804
|
], BtAlpPluzOrder2ENTITY.prototype, "liquidacion", 2);
|
|
53805
|
+
__decorateClass([
|
|
53806
|
+
Expose805(),
|
|
53807
|
+
IsDefined295(),
|
|
53808
|
+
IsArray251(),
|
|
53809
|
+
ValidateNested425({ each: true }),
|
|
53810
|
+
Type493(() => LiquidacionBtAlpPluzOrder2DTO)
|
|
53811
|
+
], BtAlpPluzOrder2ENTITY.prototype, "preliquidacion", 2);
|
|
53812
|
+
__decorateClass([
|
|
53813
|
+
Expose805(),
|
|
53814
|
+
IsDefined295(),
|
|
53815
|
+
IsArray251(),
|
|
53816
|
+
ValidateNested425({ each: true }),
|
|
53817
|
+
Type493(() => FilesDocDTO)
|
|
53818
|
+
], BtAlpPluzOrder2ENTITY.prototype, "documentacion", 2);
|
|
53803
53819
|
__decorateClass([
|
|
53804
53820
|
Expose805(),
|
|
53805
53821
|
IsDefined295(),
|
|
@@ -55472,26 +55488,109 @@ __decorateClass([
|
|
|
55472
55488
|
Expose845()
|
|
55473
55489
|
], UploadFileSomacylOrderDto.prototype, "observacion", 2);
|
|
55474
55490
|
|
|
55491
|
+
// src/v2/dtos/HomePassRef.ts
|
|
55492
|
+
import { Expose as Expose846, Transform as Transform130 } from "class-transformer";
|
|
55493
|
+
import { IsDefined as IsDefined330, IsIn as IsIn9, IsInt as IsInt3, IsNotEmpty as IsNotEmpty478, IsString as IsString707, Min as Min351 } from "class-validator";
|
|
55494
|
+
var HOME_PASS_CLIENT_TYPES = ["Residential", "Business"];
|
|
55495
|
+
var HomePassRefDto = class {
|
|
55496
|
+
ID_AddressList = 0;
|
|
55497
|
+
ClientType = "Residential";
|
|
55498
|
+
Home_ID = "";
|
|
55499
|
+
};
|
|
55500
|
+
__decorateClass([
|
|
55501
|
+
IsDefined330({ message: "El ID de la address list es requerido" }),
|
|
55502
|
+
IsInt3({ message: "El ID de la address list debe ser un n\xFAmero entero" }),
|
|
55503
|
+
Min351(1, { message: "El ID de la address list no es v\xE1lido" }),
|
|
55504
|
+
Expose846()
|
|
55505
|
+
], HomePassRefDto.prototype, "ID_AddressList", 2);
|
|
55506
|
+
__decorateClass([
|
|
55507
|
+
IsDefined330({ message: "El tipo de cliente es requerido" }),
|
|
55508
|
+
IsIn9(HOME_PASS_CLIENT_TYPES, { message: `El tipo de cliente debe ser uno de: ${HOME_PASS_CLIENT_TYPES.join(", ")}` }),
|
|
55509
|
+
Expose846()
|
|
55510
|
+
], HomePassRefDto.prototype, "ClientType", 2);
|
|
55511
|
+
__decorateClass([
|
|
55512
|
+
Transform130(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
55513
|
+
IsDefined330({ message: "El Home_ID es requerido" }),
|
|
55514
|
+
IsString707({ message: "El Home_ID debe ser una cadena de texto" }),
|
|
55515
|
+
IsNotEmpty478({ message: "El Home_ID es requerido" }),
|
|
55516
|
+
Expose846()
|
|
55517
|
+
], HomePassRefDto.prototype, "Home_ID", 2);
|
|
55518
|
+
|
|
55519
|
+
// src/v2/dtos/UpdateHomePassAnexos.ts
|
|
55520
|
+
import { Expose as Expose847, Type as Type510 } from "class-transformer";
|
|
55521
|
+
import { IsArray as IsArray266, IsDefined as IsDefined331, IsInt as IsInt4, Min as Min352, ValidateNested as ValidateNested438 } from "class-validator";
|
|
55522
|
+
var UpdateHomePassAnexosDto = class extends HomePassRefDto {
|
|
55523
|
+
ID_Trabajo = 0;
|
|
55524
|
+
Anexos = [];
|
|
55525
|
+
};
|
|
55526
|
+
__decorateClass([
|
|
55527
|
+
IsDefined331({ message: "El ID del trabajo es requerido" }),
|
|
55528
|
+
IsInt4({ message: "El ID del trabajo debe ser un n\xFAmero entero" }),
|
|
55529
|
+
Min352(1, { message: "El ID del trabajo no es v\xE1lido" }),
|
|
55530
|
+
Expose847()
|
|
55531
|
+
], UpdateHomePassAnexosDto.prototype, "ID_Trabajo", 2);
|
|
55532
|
+
__decorateClass([
|
|
55533
|
+
IsDefined331({ message: "Los anexos son requeridos" }),
|
|
55534
|
+
IsArray266({ message: "Los anexos deben ser un arreglo" }),
|
|
55535
|
+
Type510(() => FilesDocDTO),
|
|
55536
|
+
ValidateNested438({ each: true }),
|
|
55537
|
+
Expose847()
|
|
55538
|
+
], UpdateHomePassAnexosDto.prototype, "Anexos", 2);
|
|
55539
|
+
|
|
55540
|
+
// src/v2/dtos/ChangeHomePassState.ts
|
|
55541
|
+
import { Expose as Expose848 } from "class-transformer";
|
|
55542
|
+
import { IsDefined as IsDefined332, IsIn as IsIn10 } from "class-validator";
|
|
55543
|
+
var HOME_PASS_STATE_TYPES = ["OC", "ASPH", "SOP"];
|
|
55544
|
+
var ChangeHomePassStateDto = class extends HomePassRefDto {
|
|
55545
|
+
type = "OC";
|
|
55546
|
+
};
|
|
55547
|
+
__decorateClass([
|
|
55548
|
+
IsDefined332({ message: "El tipo de cierre es requerido" }),
|
|
55549
|
+
IsIn10(HOME_PASS_STATE_TYPES, { message: `El tipo de cierre debe ser uno de: ${HOME_PASS_STATE_TYPES.join(", ")}` }),
|
|
55550
|
+
Expose848()
|
|
55551
|
+
], ChangeHomePassStateDto.prototype, "type", 2);
|
|
55552
|
+
|
|
55553
|
+
// src/v2/dtos/CorrectRejectedValuation.ts
|
|
55554
|
+
import { Expose as Expose849, Type as Type511 } from "class-transformer";
|
|
55555
|
+
import { IsArray as IsArray267, IsDefined as IsDefined333, IsInt as IsInt5, IsOptional as IsOptional83, Min as Min353, ValidateNested as ValidateNested439 } from "class-validator";
|
|
55556
|
+
var CorrectRejectedValuationDto = class {
|
|
55557
|
+
ID_Valorizacion = 0;
|
|
55558
|
+
Anexos;
|
|
55559
|
+
};
|
|
55560
|
+
__decorateClass([
|
|
55561
|
+
IsDefined333({ message: "El ID de la valorizaci\xF3n es requerido" }),
|
|
55562
|
+
IsInt5({ message: "El ID de la valorizaci\xF3n debe ser un n\xFAmero entero" }),
|
|
55563
|
+
Min353(1, { message: "El ID de la valorizaci\xF3n no es v\xE1lido" }),
|
|
55564
|
+
Expose849()
|
|
55565
|
+
], CorrectRejectedValuationDto.prototype, "ID_Valorizacion", 2);
|
|
55566
|
+
__decorateClass([
|
|
55567
|
+
IsOptional83(),
|
|
55568
|
+
IsArray267({ message: "Los anexos deben ser un arreglo" }),
|
|
55569
|
+
Type511(() => FilesDocDTO),
|
|
55570
|
+
ValidateNested439({ each: true }),
|
|
55571
|
+
Expose849()
|
|
55572
|
+
], CorrectRejectedValuationDto.prototype, "Anexos", 2);
|
|
55573
|
+
|
|
55475
55574
|
// src/v2/entities/Delegation.ts
|
|
55476
|
-
import { Expose as
|
|
55477
|
-
import { IsDefined as
|
|
55575
|
+
import { Expose as Expose851 } from "class-transformer";
|
|
55576
|
+
import { IsDefined as IsDefined335, IsNotEmpty as IsNotEmpty479, IsString as IsString708, IsUUID as IsUUID41 } from "class-validator";
|
|
55478
55577
|
|
|
55479
55578
|
// src/v2/entities/Base.ts
|
|
55480
|
-
import { Expose as
|
|
55481
|
-
import { IsBoolean as IsBoolean84, IsDefined as
|
|
55579
|
+
import { Expose as Expose850 } from "class-transformer";
|
|
55580
|
+
import { IsBoolean as IsBoolean84, IsDefined as IsDefined334, IsUUID as IsUUID40 } from "class-validator";
|
|
55482
55581
|
var BaseEntity = class {
|
|
55483
55582
|
_id;
|
|
55484
55583
|
active;
|
|
55485
55584
|
};
|
|
55486
55585
|
__decorateClass([
|
|
55487
|
-
|
|
55586
|
+
IsDefined334({ message: 'La propiedad "_id" es obligatoria.' }),
|
|
55488
55587
|
IsUUID40("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
55489
|
-
|
|
55588
|
+
Expose850()
|
|
55490
55589
|
], BaseEntity.prototype, "_id", 2);
|
|
55491
55590
|
__decorateClass([
|
|
55492
|
-
|
|
55591
|
+
IsDefined334({ message: 'La propiedad "activo" es obligatoria.' }),
|
|
55493
55592
|
IsBoolean84({ message: 'La propiedad "activo" debe ser un valor booleano.' }),
|
|
55494
|
-
|
|
55593
|
+
Expose850()
|
|
55495
55594
|
], BaseEntity.prototype, "active", 2);
|
|
55496
55595
|
|
|
55497
55596
|
// src/v2/entities/Delegation.ts
|
|
@@ -55501,26 +55600,26 @@ var DelegationEntity = class extends BaseEntity {
|
|
|
55501
55600
|
name;
|
|
55502
55601
|
};
|
|
55503
55602
|
__decorateClass([
|
|
55504
|
-
|
|
55603
|
+
IsDefined335({ message: "El campo pais es obligatorio" }),
|
|
55505
55604
|
IsUUID41("4", { message: "El campo pais debe ser un UUID v4 v\xE1lido." }),
|
|
55506
|
-
|
|
55605
|
+
Expose851()
|
|
55507
55606
|
], DelegationEntity.prototype, "countryId", 2);
|
|
55508
55607
|
__decorateClass([
|
|
55509
|
-
|
|
55510
|
-
|
|
55511
|
-
|
|
55512
|
-
|
|
55608
|
+
IsDefined335({ message: "El campo c\xF3digo es obligatorio." }),
|
|
55609
|
+
IsString708({ message: "El campo c\xF3digo debe ser una cadena de texto." }),
|
|
55610
|
+
IsNotEmpty479({ message: "El campo c\xF3digo no puede estar vac\xEDo." }),
|
|
55611
|
+
Expose851()
|
|
55513
55612
|
], DelegationEntity.prototype, "code", 2);
|
|
55514
55613
|
__decorateClass([
|
|
55515
|
-
|
|
55516
|
-
|
|
55517
|
-
|
|
55518
|
-
|
|
55614
|
+
IsDefined335({ message: "El campo nombre es obligatorio." }),
|
|
55615
|
+
IsString708({ message: "El campo nombre debe ser una cadena de texto." }),
|
|
55616
|
+
IsNotEmpty479({ message: "El campo nombre no puede estar vac\xEDo." }),
|
|
55617
|
+
Expose851()
|
|
55519
55618
|
], DelegationEntity.prototype, "name", 2);
|
|
55520
55619
|
|
|
55521
55620
|
// src/v2/entities/User.ts
|
|
55522
|
-
import { IsArray as
|
|
55523
|
-
import { Expose as
|
|
55621
|
+
import { IsArray as IsArray268, IsBoolean as IsBoolean85, IsDefined as IsDefined336, IsEmail as IsEmail13, IsString as IsString709, IsUUID as IsUUID42, ValidateIf as ValidateIf11, ValidateNested as ValidateNested440 } from "class-validator";
|
|
55622
|
+
import { Expose as Expose852, Transform as Transform131, Type as Type512 } from "class-transformer";
|
|
55524
55623
|
var UserEntity = class extends BaseEntity {
|
|
55525
55624
|
email;
|
|
55526
55625
|
password;
|
|
@@ -55535,126 +55634,126 @@ var UserEntity = class extends BaseEntity {
|
|
|
55535
55634
|
resourceSystem;
|
|
55536
55635
|
};
|
|
55537
55636
|
__decorateClass([
|
|
55538
|
-
|
|
55637
|
+
IsDefined336({ message: "El correo es requerido" }),
|
|
55539
55638
|
IsEmail13({}, { message: "El correo es invalido" }),
|
|
55540
|
-
|
|
55541
|
-
|
|
55639
|
+
Transform131(({ value }) => typeof value === "string" ? value.trim().toLowerCase() : value),
|
|
55640
|
+
Expose852()
|
|
55542
55641
|
], UserEntity.prototype, "email", 2);
|
|
55543
55642
|
__decorateClass([
|
|
55544
|
-
|
|
55545
|
-
|
|
55546
|
-
|
|
55547
|
-
|
|
55643
|
+
Transform131(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
55644
|
+
IsDefined336({ message: "La contrase\xF1a es requerida" }),
|
|
55645
|
+
IsString709({ message: "La contrase\xF1a debe ser una cadena de texto" }),
|
|
55646
|
+
Expose852()
|
|
55548
55647
|
], UserEntity.prototype, "password", 2);
|
|
55549
55648
|
__decorateClass([
|
|
55550
|
-
|
|
55551
|
-
|
|
55552
|
-
|
|
55553
|
-
|
|
55649
|
+
Transform131(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
55650
|
+
IsDefined336({ message: "El apellido paterno es requerido" }),
|
|
55651
|
+
IsString709({ message: "El apellido paterno debe ser una cadena de texto" }),
|
|
55652
|
+
Expose852()
|
|
55554
55653
|
], UserEntity.prototype, "paternalLastName", 2);
|
|
55555
55654
|
__decorateClass([
|
|
55556
|
-
|
|
55557
|
-
|
|
55558
|
-
|
|
55559
|
-
|
|
55655
|
+
Transform131(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
55656
|
+
IsDefined336({ message: "El apellido materno es requerido" }),
|
|
55657
|
+
IsString709({ message: "El apellido materno debe ser una cadena de texto" }),
|
|
55658
|
+
Expose852()
|
|
55560
55659
|
], UserEntity.prototype, "maternalLastName", 2);
|
|
55561
55660
|
__decorateClass([
|
|
55562
|
-
|
|
55563
|
-
|
|
55564
|
-
|
|
55565
|
-
|
|
55661
|
+
Transform131(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
55662
|
+
IsDefined336({ message: "El nombre es requerido" }),
|
|
55663
|
+
IsString709({ message: "El nombre debe ser una cadena de texto" }),
|
|
55664
|
+
Expose852()
|
|
55566
55665
|
], UserEntity.prototype, "firstNames", 2);
|
|
55567
55666
|
__decorateClass([
|
|
55568
|
-
|
|
55569
|
-
|
|
55570
|
-
|
|
55571
|
-
|
|
55667
|
+
Transform131(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
55668
|
+
IsDefined336({ message: "El n\xFAmero de identificaci\xF3n es requerido" }),
|
|
55669
|
+
IsString709({ message: "El n\xFAmero de identificaci\xF3n debe ser una cadena de texto" }),
|
|
55670
|
+
Expose852()
|
|
55572
55671
|
], UserEntity.prototype, "identification", 2);
|
|
55573
55672
|
__decorateClass([
|
|
55574
|
-
|
|
55575
|
-
|
|
55576
|
-
|
|
55577
|
-
|
|
55578
|
-
|
|
55673
|
+
IsDefined336({ message: "El campo empresas es requerido" }),
|
|
55674
|
+
IsArray268({ message: "El campo empresas debe ser un array" }),
|
|
55675
|
+
Type512(() => CompanyDto),
|
|
55676
|
+
ValidateNested440({ each: true }),
|
|
55677
|
+
Expose852()
|
|
55579
55678
|
], UserEntity.prototype, "companies", 2);
|
|
55580
55679
|
__decorateClass([
|
|
55581
|
-
|
|
55582
|
-
|
|
55680
|
+
IsDefined336({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
55681
|
+
IsArray268({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
55583
55682
|
IsUUID42("4", { each: true, message: "El campo delegaci\xF3n debe ser un UUID v4 v\xE1lido." }),
|
|
55584
|
-
|
|
55683
|
+
Expose852()
|
|
55585
55684
|
], UserEntity.prototype, "delegationIds", 2);
|
|
55586
55685
|
__decorateClass([
|
|
55587
|
-
|
|
55686
|
+
IsDefined336({ message: 'La propiedad "root" es obligatoria.' }),
|
|
55588
55687
|
IsBoolean85({ message: 'La propiedad "root" debe ser un valor booleano.' }),
|
|
55589
|
-
|
|
55688
|
+
Expose852()
|
|
55590
55689
|
], UserEntity.prototype, "root", 2);
|
|
55591
55690
|
__decorateClass([
|
|
55592
|
-
|
|
55691
|
+
IsDefined336({ message: "El campo Perfil es obligatorio" }),
|
|
55593
55692
|
ValidateIf11((_, value) => value !== ""),
|
|
55594
55693
|
IsUUID42("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
55595
|
-
|
|
55694
|
+
Expose852()
|
|
55596
55695
|
], UserEntity.prototype, "profileId", 2);
|
|
55597
55696
|
__decorateClass([
|
|
55598
|
-
|
|
55599
|
-
|
|
55600
|
-
|
|
55601
|
-
|
|
55602
|
-
|
|
55697
|
+
IsDefined336({ message: "Resurso sistema es obligatoria" }),
|
|
55698
|
+
Type512(() => ResourceSystemDto),
|
|
55699
|
+
ValidateNested440({ each: true }),
|
|
55700
|
+
IsArray268({ message: "Recurso sistema debe ser un array" }),
|
|
55701
|
+
Expose852()
|
|
55603
55702
|
], UserEntity.prototype, "resourceSystem", 2);
|
|
55604
55703
|
|
|
55605
55704
|
// src/v2/entities/Profile.ts
|
|
55606
|
-
import { Expose as
|
|
55607
|
-
import { IsArray as
|
|
55705
|
+
import { Expose as Expose853, Transform as Transform132 } from "class-transformer";
|
|
55706
|
+
import { IsArray as IsArray269, IsDefined as IsDefined337, IsString as IsString710, Length as Length349, MinLength as MinLength63 } from "class-validator";
|
|
55608
55707
|
var ProfileEntity = class extends BaseEntity {
|
|
55609
55708
|
name;
|
|
55610
55709
|
description;
|
|
55611
55710
|
systemOptions;
|
|
55612
55711
|
};
|
|
55613
55712
|
__decorateClass([
|
|
55614
|
-
|
|
55615
|
-
|
|
55616
|
-
|
|
55713
|
+
IsDefined337({ message: "El campo nombre es requerido" }),
|
|
55714
|
+
Transform132(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
55715
|
+
IsString710({ message: "debe ser una cadena de texto" }),
|
|
55617
55716
|
Length349(4, 50, { message: "Nombre de perfil debe tener entre 4 y 50 caracteres." }),
|
|
55618
|
-
|
|
55717
|
+
Expose853()
|
|
55619
55718
|
], ProfileEntity.prototype, "name", 2);
|
|
55620
55719
|
__decorateClass([
|
|
55621
|
-
|
|
55622
|
-
|
|
55623
|
-
|
|
55720
|
+
IsDefined337({ message: "El campo descripci\xF3n es requerido" }),
|
|
55721
|
+
Transform132(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
55722
|
+
IsString710({ message: "debe ser una cadena de texto" }),
|
|
55624
55723
|
Length349(4, 50, { message: "Descripci\xF3n de perfil debe tener entre 4 y 50 caracteres." }),
|
|
55625
|
-
|
|
55724
|
+
Expose853()
|
|
55626
55725
|
], ProfileEntity.prototype, "description", 2);
|
|
55627
55726
|
__decorateClass([
|
|
55628
|
-
|
|
55629
|
-
|
|
55630
|
-
|
|
55727
|
+
IsDefined337({ message: "El campo opciones de sistema es requerido" }),
|
|
55728
|
+
IsArray269({ message: "Opciones de sistema debe ser un arreglo" }),
|
|
55729
|
+
IsString710({ each: true, message: "Cada elemento de opciones de sistema debe ser una cadena de texto v\xE1lida" }),
|
|
55631
55730
|
MinLength63(1, { each: true, message: "Cada opci\xF3n de sistema debe tener al menos un car\xE1cter" }),
|
|
55632
|
-
|
|
55731
|
+
Expose853()
|
|
55633
55732
|
], ProfileEntity.prototype, "systemOptions", 2);
|
|
55634
55733
|
|
|
55635
55734
|
// src/v2/entities/Country.ts
|
|
55636
|
-
import { Expose as
|
|
55637
|
-
import { IsDefined as
|
|
55735
|
+
import { Expose as Expose854 } from "class-transformer";
|
|
55736
|
+
import { IsDefined as IsDefined338, IsNotEmpty as IsNotEmpty480, IsString as IsString711 } from "class-validator";
|
|
55638
55737
|
var CountryEntity = class extends BaseEntity {
|
|
55639
55738
|
code;
|
|
55640
55739
|
name;
|
|
55641
55740
|
};
|
|
55642
55741
|
__decorateClass([
|
|
55643
|
-
|
|
55644
|
-
|
|
55645
|
-
|
|
55646
|
-
|
|
55742
|
+
IsDefined338({ message: "El campo c\xF3digo es obligatorio." }),
|
|
55743
|
+
IsString711({ message: "El campo c\xF3digo debe ser una cadena de texto." }),
|
|
55744
|
+
IsNotEmpty480({ message: "El campo c\xF3digo no puede estar vac\xEDo." }),
|
|
55745
|
+
Expose854()
|
|
55647
55746
|
], CountryEntity.prototype, "code", 2);
|
|
55648
55747
|
__decorateClass([
|
|
55649
|
-
|
|
55650
|
-
|
|
55651
|
-
|
|
55652
|
-
|
|
55748
|
+
IsDefined338({ message: "El campo nombre es obligatorio." }),
|
|
55749
|
+
IsString711({ message: "El campo nombre debe ser una cadena de texto." }),
|
|
55750
|
+
IsNotEmpty480({ message: "El campo nombre no puede estar vac\xEDo." }),
|
|
55751
|
+
Expose854()
|
|
55653
55752
|
], CountryEntity.prototype, "name", 2);
|
|
55654
55753
|
|
|
55655
55754
|
// src/v2/entities/Company.ts
|
|
55656
|
-
import { Expose as
|
|
55657
|
-
import { IsArray as
|
|
55755
|
+
import { Expose as Expose855 } from "class-transformer";
|
|
55756
|
+
import { IsArray as IsArray270, IsBoolean as IsBoolean86, IsDefined as IsDefined339, IsEmail as IsEmail14, IsEnum as IsEnum68, IsNotEmpty as IsNotEmpty481, IsString as IsString712, IsUUID as IsUUID43 } from "class-validator";
|
|
55658
55757
|
var CompanyEntity = class extends BaseEntity {
|
|
55659
55758
|
companyType;
|
|
55660
55759
|
identification;
|
|
@@ -55668,87 +55767,87 @@ var CompanyEntity = class extends BaseEntity {
|
|
|
55668
55767
|
countryId;
|
|
55669
55768
|
};
|
|
55670
55769
|
__decorateClass([
|
|
55671
|
-
|
|
55770
|
+
IsDefined339({ message: "El tipo de empresa es requerido" }),
|
|
55672
55771
|
IsEnum68(CompanyType, { message: "El tipo de empresa debe ser ${eachValueInArray}" }),
|
|
55673
|
-
|
|
55772
|
+
Expose855()
|
|
55674
55773
|
], CompanyEntity.prototype, "companyType", 2);
|
|
55675
55774
|
__decorateClass([
|
|
55676
|
-
|
|
55677
|
-
|
|
55678
|
-
|
|
55679
|
-
|
|
55775
|
+
IsDefined339({ message: "La identificaci\xF3n es requerida" }),
|
|
55776
|
+
IsString712({ message: "La identificaci\xF3n debe ser una cadena de texto" }),
|
|
55777
|
+
IsNotEmpty481({ message: "La identificaci\xF3n no debe estar vac\xEDa" }),
|
|
55778
|
+
Expose855()
|
|
55680
55779
|
], CompanyEntity.prototype, "identification", 2);
|
|
55681
55780
|
__decorateClass([
|
|
55682
|
-
|
|
55683
|
-
|
|
55684
|
-
|
|
55685
|
-
|
|
55781
|
+
IsDefined339({ message: "El c\xF3digo es requerido" }),
|
|
55782
|
+
IsString712({ message: "El c\xF3digo debe ser una cadena de texto" }),
|
|
55783
|
+
IsNotEmpty481({ message: "El c\xF3digo no debe estar vac\xEDo" }),
|
|
55784
|
+
Expose855()
|
|
55686
55785
|
], CompanyEntity.prototype, "code", 2);
|
|
55687
55786
|
__decorateClass([
|
|
55688
|
-
|
|
55689
|
-
|
|
55690
|
-
|
|
55691
|
-
|
|
55787
|
+
IsDefined339({ message: "El nombre legal es requerido" }),
|
|
55788
|
+
IsString712({ message: "El nombre legal debe ser una cadena de texto" }),
|
|
55789
|
+
IsNotEmpty481({ message: "El nombre legal no debe estar vac\xEDo" }),
|
|
55790
|
+
Expose855()
|
|
55692
55791
|
], CompanyEntity.prototype, "legalName", 2);
|
|
55693
55792
|
__decorateClass([
|
|
55694
|
-
|
|
55695
|
-
|
|
55696
|
-
|
|
55697
|
-
|
|
55793
|
+
IsDefined339({ message: "El nombre comercial es requerido" }),
|
|
55794
|
+
IsString712({ message: "El nombre comercial debe ser una cadena de texto" }),
|
|
55795
|
+
IsNotEmpty481({ message: "El nombre comercial no debe estar vac\xEDo" }),
|
|
55796
|
+
Expose855()
|
|
55698
55797
|
], CompanyEntity.prototype, "tradeName", 2);
|
|
55699
55798
|
__decorateClass([
|
|
55700
|
-
|
|
55799
|
+
IsDefined339({ message: "La propiedad es propia es requerida" }),
|
|
55701
55800
|
IsBoolean86({ message: "La propiedad es propia debe ser un booleano" }),
|
|
55702
|
-
|
|
55801
|
+
Expose855()
|
|
55703
55802
|
], CompanyEntity.prototype, "isOwn", 2);
|
|
55704
55803
|
__decorateClass([
|
|
55705
|
-
|
|
55706
|
-
|
|
55707
|
-
|
|
55708
|
-
|
|
55804
|
+
IsDefined339({ message: "La direcci\xF3n es requerida" }),
|
|
55805
|
+
IsString712({ message: "La direcci\xF3n debe ser una cadena de texto" }),
|
|
55806
|
+
IsNotEmpty481({ message: "La direcci\xF3n no debe estar vac\xEDa" }),
|
|
55807
|
+
Expose855()
|
|
55709
55808
|
], CompanyEntity.prototype, "address", 2);
|
|
55710
55809
|
__decorateClass([
|
|
55711
|
-
|
|
55712
|
-
|
|
55810
|
+
IsDefined339({ message: "El campo correos electr\xF3nicos es requerido" }),
|
|
55811
|
+
IsArray270({ message: "El campo correos electr\xF3nicos debe ser un arreglo" }),
|
|
55713
55812
|
IsEmail14({}, { each: true, message: "Cada correo electr\xF3nico debe ser v\xE1lido" }),
|
|
55714
|
-
|
|
55813
|
+
Expose855()
|
|
55715
55814
|
], CompanyEntity.prototype, "emails", 2);
|
|
55716
55815
|
__decorateClass([
|
|
55717
|
-
|
|
55718
|
-
|
|
55719
|
-
|
|
55720
|
-
|
|
55721
|
-
|
|
55816
|
+
IsDefined339({ message: "El campo tel\xE9fonos es requeridos" }),
|
|
55817
|
+
IsArray270({ message: "El campo tel\xE9fonos debe ser un arreglo" }),
|
|
55818
|
+
IsString712({ each: true, message: "Cada tel\xE9fono debe ser una cadena de texto" }),
|
|
55819
|
+
IsNotEmpty481({ each: true, message: "Cada tel\xE9fono no debe estar vac\xEDo" }),
|
|
55820
|
+
Expose855()
|
|
55722
55821
|
], CompanyEntity.prototype, "phones", 2);
|
|
55723
55822
|
__decorateClass([
|
|
55724
|
-
|
|
55823
|
+
IsDefined339({ message: "El campo pa\xEDs es requerido" }),
|
|
55725
55824
|
IsUUID43("4", { message: "El campo pa\xEDs debe ser un UUID" }),
|
|
55726
|
-
|
|
55825
|
+
Expose855()
|
|
55727
55826
|
], CompanyEntity.prototype, "countryId", 2);
|
|
55728
55827
|
|
|
55729
55828
|
// src/v2/entities/ThemeConfigCountry.ts
|
|
55730
|
-
import { Expose as
|
|
55731
|
-
import { IsNumber as IsNumber538, IsString as
|
|
55829
|
+
import { Expose as Expose857, Type as Type513 } from "class-transformer";
|
|
55830
|
+
import { IsNumber as IsNumber538, IsString as IsString714, ValidateNested as ValidateNested441, IsArray as IsArray271 } from "class-validator";
|
|
55732
55831
|
|
|
55733
55832
|
// src/v2/shared-dto/ThemeCountryManualDTO.ts
|
|
55734
|
-
import { Expose as
|
|
55735
|
-
import { IsString as
|
|
55833
|
+
import { Expose as Expose856 } from "class-transformer";
|
|
55834
|
+
import { IsString as IsString713 } from "class-validator";
|
|
55736
55835
|
var ThemeCountryManualDTO2 = class {
|
|
55737
55836
|
Codigo = "";
|
|
55738
55837
|
Delegacion = "";
|
|
55739
55838
|
Ruta = "";
|
|
55740
55839
|
};
|
|
55741
55840
|
__decorateClass([
|
|
55742
|
-
|
|
55743
|
-
|
|
55841
|
+
IsString713(),
|
|
55842
|
+
Expose856()
|
|
55744
55843
|
], ThemeCountryManualDTO2.prototype, "Codigo", 2);
|
|
55745
55844
|
__decorateClass([
|
|
55746
|
-
|
|
55747
|
-
|
|
55845
|
+
IsString713(),
|
|
55846
|
+
Expose856()
|
|
55748
55847
|
], ThemeCountryManualDTO2.prototype, "Delegacion", 2);
|
|
55749
55848
|
__decorateClass([
|
|
55750
|
-
|
|
55751
|
-
|
|
55849
|
+
IsString713(),
|
|
55850
|
+
Expose856()
|
|
55752
55851
|
], ThemeCountryManualDTO2.prototype, "Ruta", 2);
|
|
55753
55852
|
|
|
55754
55853
|
// src/v2/entities/ThemeConfigCountry.ts
|
|
@@ -55764,45 +55863,45 @@ var ThemeConfigCountryEntity = class extends BaseEntity {
|
|
|
55764
55863
|
};
|
|
55765
55864
|
__decorateClass([
|
|
55766
55865
|
IsNumber538(),
|
|
55767
|
-
|
|
55866
|
+
Expose857()
|
|
55768
55867
|
], ThemeConfigCountryEntity.prototype, "ID_TemeCountry", 2);
|
|
55769
55868
|
__decorateClass([
|
|
55770
|
-
|
|
55771
|
-
|
|
55869
|
+
IsString714(),
|
|
55870
|
+
Expose857()
|
|
55772
55871
|
], ThemeConfigCountryEntity.prototype, "Color", 2);
|
|
55773
55872
|
__decorateClass([
|
|
55774
|
-
|
|
55775
|
-
|
|
55873
|
+
IsString714(),
|
|
55874
|
+
Expose857()
|
|
55776
55875
|
], ThemeConfigCountryEntity.prototype, "TextFooterLeft", 2);
|
|
55777
55876
|
__decorateClass([
|
|
55778
|
-
|
|
55779
|
-
|
|
55877
|
+
IsString714(),
|
|
55878
|
+
Expose857()
|
|
55780
55879
|
], ThemeConfigCountryEntity.prototype, "TextFooterRight", 2);
|
|
55781
55880
|
__decorateClass([
|
|
55782
|
-
|
|
55783
|
-
|
|
55784
|
-
|
|
55881
|
+
ValidateNested441(),
|
|
55882
|
+
Type513(() => ImgLogoNavBarDTO2),
|
|
55883
|
+
Expose857()
|
|
55785
55884
|
], ThemeConfigCountryEntity.prototype, "ImgLogoNavBar", 2);
|
|
55786
55885
|
__decorateClass([
|
|
55787
|
-
|
|
55788
|
-
|
|
55789
|
-
|
|
55790
|
-
|
|
55886
|
+
IsArray271(),
|
|
55887
|
+
Type513(() => ThemeCountryManualDTO2),
|
|
55888
|
+
ValidateNested441({ each: true }),
|
|
55889
|
+
Expose857()
|
|
55791
55890
|
], ThemeConfigCountryEntity.prototype, "Manuales", 2);
|
|
55792
55891
|
__decorateClass([
|
|
55793
|
-
|
|
55794
|
-
|
|
55795
|
-
|
|
55892
|
+
ValidateNested441(),
|
|
55893
|
+
Type513(() => EstadoDTO2),
|
|
55894
|
+
Expose857()
|
|
55796
55895
|
], ThemeConfigCountryEntity.prototype, "Estado", 2);
|
|
55797
55896
|
__decorateClass([
|
|
55798
|
-
|
|
55799
|
-
|
|
55800
|
-
|
|
55897
|
+
ValidateNested441(),
|
|
55898
|
+
Type513(() => CodigoNombreDTO4),
|
|
55899
|
+
Expose857()
|
|
55801
55900
|
], ThemeConfigCountryEntity.prototype, "Pais", 2);
|
|
55802
55901
|
|
|
55803
55902
|
// src/v2/entities/ThemeConfigUser.ts
|
|
55804
|
-
import { Expose as
|
|
55805
|
-
import { IsNumber as IsNumber539, IsString as
|
|
55903
|
+
import { Expose as Expose858, Type as Type514 } from "class-transformer";
|
|
55904
|
+
import { IsNumber as IsNumber539, IsString as IsString715, ValidateNested as ValidateNested442, IsArray as IsArray272, IsOptional as IsOptional84, IsDefined as IsDefined340, IsBoolean as IsBoolean87 } from "class-validator";
|
|
55806
55905
|
var ThemeConfigUserEntity = class {
|
|
55807
55906
|
_id;
|
|
55808
55907
|
active = true;
|
|
@@ -55814,42 +55913,42 @@ var ThemeConfigUserEntity = class {
|
|
|
55814
55913
|
Favoritos = [];
|
|
55815
55914
|
};
|
|
55816
55915
|
__decorateClass([
|
|
55817
|
-
|
|
55818
|
-
|
|
55916
|
+
IsOptional84(),
|
|
55917
|
+
Expose858()
|
|
55819
55918
|
], ThemeConfigUserEntity.prototype, "_id", 2);
|
|
55820
55919
|
__decorateClass([
|
|
55821
|
-
|
|
55920
|
+
IsDefined340({ message: 'La propiedad "activo" es obligatoria.' }),
|
|
55822
55921
|
IsBoolean87({ message: 'La propiedad "activo" debe ser un valor booleano.' }),
|
|
55823
|
-
|
|
55922
|
+
Expose858()
|
|
55824
55923
|
], ThemeConfigUserEntity.prototype, "active", 2);
|
|
55825
55924
|
__decorateClass([
|
|
55826
55925
|
IsNumber539(),
|
|
55827
|
-
|
|
55926
|
+
Expose858()
|
|
55828
55927
|
], ThemeConfigUserEntity.prototype, "ID_Theme", 2);
|
|
55829
55928
|
__decorateClass([
|
|
55830
|
-
|
|
55831
|
-
|
|
55929
|
+
IsString715(),
|
|
55930
|
+
Expose858()
|
|
55832
55931
|
], ThemeConfigUserEntity.prototype, "Identificacion", 2);
|
|
55833
55932
|
__decorateClass([
|
|
55834
|
-
|
|
55835
|
-
|
|
55933
|
+
IsString715(),
|
|
55934
|
+
Expose858()
|
|
55836
55935
|
], ThemeConfigUserEntity.prototype, "Color", 2);
|
|
55837
55936
|
__decorateClass([
|
|
55838
|
-
|
|
55839
|
-
|
|
55840
|
-
|
|
55937
|
+
IsOptional84(),
|
|
55938
|
+
IsString715(),
|
|
55939
|
+
Expose858()
|
|
55841
55940
|
], ThemeConfigUserEntity.prototype, "Language", 2);
|
|
55842
55941
|
__decorateClass([
|
|
55843
|
-
|
|
55844
|
-
|
|
55845
|
-
|
|
55942
|
+
ValidateNested442(),
|
|
55943
|
+
Type514(() => EstadoDTO2),
|
|
55944
|
+
Expose858()
|
|
55846
55945
|
], ThemeConfigUserEntity.prototype, "Estado", 2);
|
|
55847
55946
|
__decorateClass([
|
|
55848
|
-
|
|
55849
|
-
|
|
55850
|
-
|
|
55851
|
-
|
|
55852
|
-
|
|
55947
|
+
IsOptional84(),
|
|
55948
|
+
IsArray272(),
|
|
55949
|
+
ValidateNested442({ each: true }),
|
|
55950
|
+
Type514(() => FavoritoDTO2),
|
|
55951
|
+
Expose858()
|
|
55853
55952
|
], ThemeConfigUserEntity.prototype, "Favoritos", 2);
|
|
55854
55953
|
|
|
55855
55954
|
// src/v2/utils/validateCustom.ts
|
|
@@ -56029,6 +56128,7 @@ export {
|
|
|
56029
56128
|
CentroCostosDTO,
|
|
56030
56129
|
CentroCostosENTITY,
|
|
56031
56130
|
CertificacionDTO,
|
|
56131
|
+
ChangeHomePassStateDto,
|
|
56032
56132
|
ChangeStateBaremosDTO,
|
|
56033
56133
|
Chile9512TOAENTITY,
|
|
56034
56134
|
ChileTdCENTITY,
|
|
@@ -56074,6 +56174,7 @@ export {
|
|
|
56074
56174
|
ConversionLogisticaDTO,
|
|
56075
56175
|
CoordenadasDTO,
|
|
56076
56176
|
CoordenadasTdCDTO,
|
|
56177
|
+
CorrectRejectedValuationDto,
|
|
56077
56178
|
CorteBobinaStockAlmacenDTO,
|
|
56078
56179
|
CosumoMaterialAlemaniaDTO,
|
|
56079
56180
|
CotizacionDto,
|
|
@@ -56296,6 +56397,8 @@ export {
|
|
|
56296
56397
|
GranFamiliaItemDTO,
|
|
56297
56398
|
GranFamiliaItemENTITY,
|
|
56298
56399
|
GrupoEmpresaDTO,
|
|
56400
|
+
HOME_PASS_CLIENT_TYPES,
|
|
56401
|
+
HOME_PASS_STATE_TYPES,
|
|
56299
56402
|
HPListAsignacionDTO,
|
|
56300
56403
|
HPListDTO,
|
|
56301
56404
|
HistorialCubicacionDTO,
|
|
@@ -56307,6 +56410,7 @@ export {
|
|
|
56307
56410
|
HistoricoEmpresasDTO,
|
|
56308
56411
|
HitoDTO,
|
|
56309
56412
|
HomePassDTO,
|
|
56413
|
+
HomePassRefDto,
|
|
56310
56414
|
IDataSheetCoordenadas,
|
|
56311
56415
|
IDataSheetLineasTdC,
|
|
56312
56416
|
IDataSheetMateriales,
|
|
@@ -56775,6 +56879,7 @@ export {
|
|
|
56775
56879
|
UpdateDelegationDto,
|
|
56776
56880
|
UpdateDto,
|
|
56777
56881
|
UpdateEstadoInternoObraRequestDTO,
|
|
56882
|
+
UpdateHomePassAnexosDto,
|
|
56778
56883
|
UpdateProfileDto,
|
|
56779
56884
|
UpdateThemeConfigCountryDto,
|
|
56780
56885
|
UpdateThemeConfigUserDto,
|