sigo-entities 1.2.520 → 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 +39 -1
- package/dist/index.d.ts +39 -1
- package/dist/index.js +294 -199
- package/dist/index.mjs +261 -172
- package/package.json +1 -1
- package/.claude/CLAUDE.md +0 -70
- package/.claude/settings.json +0 -21
- package/.claude/skills/mdl-administracion/SKILL.md +0 -60
- package/.claude/skills/mdl-configuracion/SKILL.md +0 -49
- package/.claude/skills/ope-im/SKILL.md +0 -71
- package/.claude/skills/ope-logistica/SKILL.md +0 -60
- package/.claude/skills/ope-pex/SKILL.md +0 -106
- package/.claude/skills/shared-dtos/SKILL.md +0 -76
- package/__tests__/asistenciaCuadrilla.test.mjs +0 -67
package/dist/index.mjs
CHANGED
|
@@ -55488,26 +55488,109 @@ __decorateClass([
|
|
|
55488
55488
|
Expose845()
|
|
55489
55489
|
], UploadFileSomacylOrderDto.prototype, "observacion", 2);
|
|
55490
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
|
+
|
|
55491
55574
|
// src/v2/entities/Delegation.ts
|
|
55492
|
-
import { Expose as
|
|
55493
|
-
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";
|
|
55494
55577
|
|
|
55495
55578
|
// src/v2/entities/Base.ts
|
|
55496
|
-
import { Expose as
|
|
55497
|
-
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";
|
|
55498
55581
|
var BaseEntity = class {
|
|
55499
55582
|
_id;
|
|
55500
55583
|
active;
|
|
55501
55584
|
};
|
|
55502
55585
|
__decorateClass([
|
|
55503
|
-
|
|
55586
|
+
IsDefined334({ message: 'La propiedad "_id" es obligatoria.' }),
|
|
55504
55587
|
IsUUID40("4", { message: 'La propiedad "_id" debe ser un UUID v4 v\xE1lido.' }),
|
|
55505
|
-
|
|
55588
|
+
Expose850()
|
|
55506
55589
|
], BaseEntity.prototype, "_id", 2);
|
|
55507
55590
|
__decorateClass([
|
|
55508
|
-
|
|
55591
|
+
IsDefined334({ message: 'La propiedad "activo" es obligatoria.' }),
|
|
55509
55592
|
IsBoolean84({ message: 'La propiedad "activo" debe ser un valor booleano.' }),
|
|
55510
|
-
|
|
55593
|
+
Expose850()
|
|
55511
55594
|
], BaseEntity.prototype, "active", 2);
|
|
55512
55595
|
|
|
55513
55596
|
// src/v2/entities/Delegation.ts
|
|
@@ -55517,26 +55600,26 @@ var DelegationEntity = class extends BaseEntity {
|
|
|
55517
55600
|
name;
|
|
55518
55601
|
};
|
|
55519
55602
|
__decorateClass([
|
|
55520
|
-
|
|
55603
|
+
IsDefined335({ message: "El campo pais es obligatorio" }),
|
|
55521
55604
|
IsUUID41("4", { message: "El campo pais debe ser un UUID v4 v\xE1lido." }),
|
|
55522
|
-
|
|
55605
|
+
Expose851()
|
|
55523
55606
|
], DelegationEntity.prototype, "countryId", 2);
|
|
55524
55607
|
__decorateClass([
|
|
55525
|
-
|
|
55526
|
-
|
|
55527
|
-
|
|
55528
|
-
|
|
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()
|
|
55529
55612
|
], DelegationEntity.prototype, "code", 2);
|
|
55530
55613
|
__decorateClass([
|
|
55531
|
-
|
|
55532
|
-
|
|
55533
|
-
|
|
55534
|
-
|
|
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()
|
|
55535
55618
|
], DelegationEntity.prototype, "name", 2);
|
|
55536
55619
|
|
|
55537
55620
|
// src/v2/entities/User.ts
|
|
55538
|
-
import { IsArray as
|
|
55539
|
-
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";
|
|
55540
55623
|
var UserEntity = class extends BaseEntity {
|
|
55541
55624
|
email;
|
|
55542
55625
|
password;
|
|
@@ -55551,126 +55634,126 @@ var UserEntity = class extends BaseEntity {
|
|
|
55551
55634
|
resourceSystem;
|
|
55552
55635
|
};
|
|
55553
55636
|
__decorateClass([
|
|
55554
|
-
|
|
55637
|
+
IsDefined336({ message: "El correo es requerido" }),
|
|
55555
55638
|
IsEmail13({}, { message: "El correo es invalido" }),
|
|
55556
|
-
|
|
55557
|
-
|
|
55639
|
+
Transform131(({ value }) => typeof value === "string" ? value.trim().toLowerCase() : value),
|
|
55640
|
+
Expose852()
|
|
55558
55641
|
], UserEntity.prototype, "email", 2);
|
|
55559
55642
|
__decorateClass([
|
|
55560
|
-
|
|
55561
|
-
|
|
55562
|
-
|
|
55563
|
-
|
|
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()
|
|
55564
55647
|
], UserEntity.prototype, "password", 2);
|
|
55565
55648
|
__decorateClass([
|
|
55566
|
-
|
|
55567
|
-
|
|
55568
|
-
|
|
55569
|
-
|
|
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()
|
|
55570
55653
|
], UserEntity.prototype, "paternalLastName", 2);
|
|
55571
55654
|
__decorateClass([
|
|
55572
|
-
|
|
55573
|
-
|
|
55574
|
-
|
|
55575
|
-
|
|
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()
|
|
55576
55659
|
], UserEntity.prototype, "maternalLastName", 2);
|
|
55577
55660
|
__decorateClass([
|
|
55578
|
-
|
|
55579
|
-
|
|
55580
|
-
|
|
55581
|
-
|
|
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()
|
|
55582
55665
|
], UserEntity.prototype, "firstNames", 2);
|
|
55583
55666
|
__decorateClass([
|
|
55584
|
-
|
|
55585
|
-
|
|
55586
|
-
|
|
55587
|
-
|
|
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()
|
|
55588
55671
|
], UserEntity.prototype, "identification", 2);
|
|
55589
55672
|
__decorateClass([
|
|
55590
|
-
|
|
55591
|
-
|
|
55592
|
-
|
|
55593
|
-
|
|
55594
|
-
|
|
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()
|
|
55595
55678
|
], UserEntity.prototype, "companies", 2);
|
|
55596
55679
|
__decorateClass([
|
|
55597
|
-
|
|
55598
|
-
|
|
55680
|
+
IsDefined336({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
55681
|
+
IsArray268({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
55599
55682
|
IsUUID42("4", { each: true, message: "El campo delegaci\xF3n debe ser un UUID v4 v\xE1lido." }),
|
|
55600
|
-
|
|
55683
|
+
Expose852()
|
|
55601
55684
|
], UserEntity.prototype, "delegationIds", 2);
|
|
55602
55685
|
__decorateClass([
|
|
55603
|
-
|
|
55686
|
+
IsDefined336({ message: 'La propiedad "root" es obligatoria.' }),
|
|
55604
55687
|
IsBoolean85({ message: 'La propiedad "root" debe ser un valor booleano.' }),
|
|
55605
|
-
|
|
55688
|
+
Expose852()
|
|
55606
55689
|
], UserEntity.prototype, "root", 2);
|
|
55607
55690
|
__decorateClass([
|
|
55608
|
-
|
|
55691
|
+
IsDefined336({ message: "El campo Perfil es obligatorio" }),
|
|
55609
55692
|
ValidateIf11((_, value) => value !== ""),
|
|
55610
55693
|
IsUUID42("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
55611
|
-
|
|
55694
|
+
Expose852()
|
|
55612
55695
|
], UserEntity.prototype, "profileId", 2);
|
|
55613
55696
|
__decorateClass([
|
|
55614
|
-
|
|
55615
|
-
|
|
55616
|
-
|
|
55617
|
-
|
|
55618
|
-
|
|
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()
|
|
55619
55702
|
], UserEntity.prototype, "resourceSystem", 2);
|
|
55620
55703
|
|
|
55621
55704
|
// src/v2/entities/Profile.ts
|
|
55622
|
-
import { Expose as
|
|
55623
|
-
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";
|
|
55624
55707
|
var ProfileEntity = class extends BaseEntity {
|
|
55625
55708
|
name;
|
|
55626
55709
|
description;
|
|
55627
55710
|
systemOptions;
|
|
55628
55711
|
};
|
|
55629
55712
|
__decorateClass([
|
|
55630
|
-
|
|
55631
|
-
|
|
55632
|
-
|
|
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" }),
|
|
55633
55716
|
Length349(4, 50, { message: "Nombre de perfil debe tener entre 4 y 50 caracteres." }),
|
|
55634
|
-
|
|
55717
|
+
Expose853()
|
|
55635
55718
|
], ProfileEntity.prototype, "name", 2);
|
|
55636
55719
|
__decorateClass([
|
|
55637
|
-
|
|
55638
|
-
|
|
55639
|
-
|
|
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" }),
|
|
55640
55723
|
Length349(4, 50, { message: "Descripci\xF3n de perfil debe tener entre 4 y 50 caracteres." }),
|
|
55641
|
-
|
|
55724
|
+
Expose853()
|
|
55642
55725
|
], ProfileEntity.prototype, "description", 2);
|
|
55643
55726
|
__decorateClass([
|
|
55644
|
-
|
|
55645
|
-
|
|
55646
|
-
|
|
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" }),
|
|
55647
55730
|
MinLength63(1, { each: true, message: "Cada opci\xF3n de sistema debe tener al menos un car\xE1cter" }),
|
|
55648
|
-
|
|
55731
|
+
Expose853()
|
|
55649
55732
|
], ProfileEntity.prototype, "systemOptions", 2);
|
|
55650
55733
|
|
|
55651
55734
|
// src/v2/entities/Country.ts
|
|
55652
|
-
import { Expose as
|
|
55653
|
-
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";
|
|
55654
55737
|
var CountryEntity = class extends BaseEntity {
|
|
55655
55738
|
code;
|
|
55656
55739
|
name;
|
|
55657
55740
|
};
|
|
55658
55741
|
__decorateClass([
|
|
55659
|
-
|
|
55660
|
-
|
|
55661
|
-
|
|
55662
|
-
|
|
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()
|
|
55663
55746
|
], CountryEntity.prototype, "code", 2);
|
|
55664
55747
|
__decorateClass([
|
|
55665
|
-
|
|
55666
|
-
|
|
55667
|
-
|
|
55668
|
-
|
|
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()
|
|
55669
55752
|
], CountryEntity.prototype, "name", 2);
|
|
55670
55753
|
|
|
55671
55754
|
// src/v2/entities/Company.ts
|
|
55672
|
-
import { Expose as
|
|
55673
|
-
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";
|
|
55674
55757
|
var CompanyEntity = class extends BaseEntity {
|
|
55675
55758
|
companyType;
|
|
55676
55759
|
identification;
|
|
@@ -55684,87 +55767,87 @@ var CompanyEntity = class extends BaseEntity {
|
|
|
55684
55767
|
countryId;
|
|
55685
55768
|
};
|
|
55686
55769
|
__decorateClass([
|
|
55687
|
-
|
|
55770
|
+
IsDefined339({ message: "El tipo de empresa es requerido" }),
|
|
55688
55771
|
IsEnum68(CompanyType, { message: "El tipo de empresa debe ser ${eachValueInArray}" }),
|
|
55689
|
-
|
|
55772
|
+
Expose855()
|
|
55690
55773
|
], CompanyEntity.prototype, "companyType", 2);
|
|
55691
55774
|
__decorateClass([
|
|
55692
|
-
|
|
55693
|
-
|
|
55694
|
-
|
|
55695
|
-
|
|
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()
|
|
55696
55779
|
], CompanyEntity.prototype, "identification", 2);
|
|
55697
55780
|
__decorateClass([
|
|
55698
|
-
|
|
55699
|
-
|
|
55700
|
-
|
|
55701
|
-
|
|
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()
|
|
55702
55785
|
], CompanyEntity.prototype, "code", 2);
|
|
55703
55786
|
__decorateClass([
|
|
55704
|
-
|
|
55705
|
-
|
|
55706
|
-
|
|
55707
|
-
|
|
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()
|
|
55708
55791
|
], CompanyEntity.prototype, "legalName", 2);
|
|
55709
55792
|
__decorateClass([
|
|
55710
|
-
|
|
55711
|
-
|
|
55712
|
-
|
|
55713
|
-
|
|
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()
|
|
55714
55797
|
], CompanyEntity.prototype, "tradeName", 2);
|
|
55715
55798
|
__decorateClass([
|
|
55716
|
-
|
|
55799
|
+
IsDefined339({ message: "La propiedad es propia es requerida" }),
|
|
55717
55800
|
IsBoolean86({ message: "La propiedad es propia debe ser un booleano" }),
|
|
55718
|
-
|
|
55801
|
+
Expose855()
|
|
55719
55802
|
], CompanyEntity.prototype, "isOwn", 2);
|
|
55720
55803
|
__decorateClass([
|
|
55721
|
-
|
|
55722
|
-
|
|
55723
|
-
|
|
55724
|
-
|
|
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()
|
|
55725
55808
|
], CompanyEntity.prototype, "address", 2);
|
|
55726
55809
|
__decorateClass([
|
|
55727
|
-
|
|
55728
|
-
|
|
55810
|
+
IsDefined339({ message: "El campo correos electr\xF3nicos es requerido" }),
|
|
55811
|
+
IsArray270({ message: "El campo correos electr\xF3nicos debe ser un arreglo" }),
|
|
55729
55812
|
IsEmail14({}, { each: true, message: "Cada correo electr\xF3nico debe ser v\xE1lido" }),
|
|
55730
|
-
|
|
55813
|
+
Expose855()
|
|
55731
55814
|
], CompanyEntity.prototype, "emails", 2);
|
|
55732
55815
|
__decorateClass([
|
|
55733
|
-
|
|
55734
|
-
|
|
55735
|
-
|
|
55736
|
-
|
|
55737
|
-
|
|
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()
|
|
55738
55821
|
], CompanyEntity.prototype, "phones", 2);
|
|
55739
55822
|
__decorateClass([
|
|
55740
|
-
|
|
55823
|
+
IsDefined339({ message: "El campo pa\xEDs es requerido" }),
|
|
55741
55824
|
IsUUID43("4", { message: "El campo pa\xEDs debe ser un UUID" }),
|
|
55742
|
-
|
|
55825
|
+
Expose855()
|
|
55743
55826
|
], CompanyEntity.prototype, "countryId", 2);
|
|
55744
55827
|
|
|
55745
55828
|
// src/v2/entities/ThemeConfigCountry.ts
|
|
55746
|
-
import { Expose as
|
|
55747
|
-
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";
|
|
55748
55831
|
|
|
55749
55832
|
// src/v2/shared-dto/ThemeCountryManualDTO.ts
|
|
55750
|
-
import { Expose as
|
|
55751
|
-
import { IsString as
|
|
55833
|
+
import { Expose as Expose856 } from "class-transformer";
|
|
55834
|
+
import { IsString as IsString713 } from "class-validator";
|
|
55752
55835
|
var ThemeCountryManualDTO2 = class {
|
|
55753
55836
|
Codigo = "";
|
|
55754
55837
|
Delegacion = "";
|
|
55755
55838
|
Ruta = "";
|
|
55756
55839
|
};
|
|
55757
55840
|
__decorateClass([
|
|
55758
|
-
|
|
55759
|
-
|
|
55841
|
+
IsString713(),
|
|
55842
|
+
Expose856()
|
|
55760
55843
|
], ThemeCountryManualDTO2.prototype, "Codigo", 2);
|
|
55761
55844
|
__decorateClass([
|
|
55762
|
-
|
|
55763
|
-
|
|
55845
|
+
IsString713(),
|
|
55846
|
+
Expose856()
|
|
55764
55847
|
], ThemeCountryManualDTO2.prototype, "Delegacion", 2);
|
|
55765
55848
|
__decorateClass([
|
|
55766
|
-
|
|
55767
|
-
|
|
55849
|
+
IsString713(),
|
|
55850
|
+
Expose856()
|
|
55768
55851
|
], ThemeCountryManualDTO2.prototype, "Ruta", 2);
|
|
55769
55852
|
|
|
55770
55853
|
// src/v2/entities/ThemeConfigCountry.ts
|
|
@@ -55780,45 +55863,45 @@ var ThemeConfigCountryEntity = class extends BaseEntity {
|
|
|
55780
55863
|
};
|
|
55781
55864
|
__decorateClass([
|
|
55782
55865
|
IsNumber538(),
|
|
55783
|
-
|
|
55866
|
+
Expose857()
|
|
55784
55867
|
], ThemeConfigCountryEntity.prototype, "ID_TemeCountry", 2);
|
|
55785
55868
|
__decorateClass([
|
|
55786
|
-
|
|
55787
|
-
|
|
55869
|
+
IsString714(),
|
|
55870
|
+
Expose857()
|
|
55788
55871
|
], ThemeConfigCountryEntity.prototype, "Color", 2);
|
|
55789
55872
|
__decorateClass([
|
|
55790
|
-
|
|
55791
|
-
|
|
55873
|
+
IsString714(),
|
|
55874
|
+
Expose857()
|
|
55792
55875
|
], ThemeConfigCountryEntity.prototype, "TextFooterLeft", 2);
|
|
55793
55876
|
__decorateClass([
|
|
55794
|
-
|
|
55795
|
-
|
|
55877
|
+
IsString714(),
|
|
55878
|
+
Expose857()
|
|
55796
55879
|
], ThemeConfigCountryEntity.prototype, "TextFooterRight", 2);
|
|
55797
55880
|
__decorateClass([
|
|
55798
|
-
|
|
55799
|
-
|
|
55800
|
-
|
|
55881
|
+
ValidateNested441(),
|
|
55882
|
+
Type513(() => ImgLogoNavBarDTO2),
|
|
55883
|
+
Expose857()
|
|
55801
55884
|
], ThemeConfigCountryEntity.prototype, "ImgLogoNavBar", 2);
|
|
55802
55885
|
__decorateClass([
|
|
55803
|
-
|
|
55804
|
-
|
|
55805
|
-
|
|
55806
|
-
|
|
55886
|
+
IsArray271(),
|
|
55887
|
+
Type513(() => ThemeCountryManualDTO2),
|
|
55888
|
+
ValidateNested441({ each: true }),
|
|
55889
|
+
Expose857()
|
|
55807
55890
|
], ThemeConfigCountryEntity.prototype, "Manuales", 2);
|
|
55808
55891
|
__decorateClass([
|
|
55809
|
-
|
|
55810
|
-
|
|
55811
|
-
|
|
55892
|
+
ValidateNested441(),
|
|
55893
|
+
Type513(() => EstadoDTO2),
|
|
55894
|
+
Expose857()
|
|
55812
55895
|
], ThemeConfigCountryEntity.prototype, "Estado", 2);
|
|
55813
55896
|
__decorateClass([
|
|
55814
|
-
|
|
55815
|
-
|
|
55816
|
-
|
|
55897
|
+
ValidateNested441(),
|
|
55898
|
+
Type513(() => CodigoNombreDTO4),
|
|
55899
|
+
Expose857()
|
|
55817
55900
|
], ThemeConfigCountryEntity.prototype, "Pais", 2);
|
|
55818
55901
|
|
|
55819
55902
|
// src/v2/entities/ThemeConfigUser.ts
|
|
55820
|
-
import { Expose as
|
|
55821
|
-
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";
|
|
55822
55905
|
var ThemeConfigUserEntity = class {
|
|
55823
55906
|
_id;
|
|
55824
55907
|
active = true;
|
|
@@ -55830,42 +55913,42 @@ var ThemeConfigUserEntity = class {
|
|
|
55830
55913
|
Favoritos = [];
|
|
55831
55914
|
};
|
|
55832
55915
|
__decorateClass([
|
|
55833
|
-
|
|
55834
|
-
|
|
55916
|
+
IsOptional84(),
|
|
55917
|
+
Expose858()
|
|
55835
55918
|
], ThemeConfigUserEntity.prototype, "_id", 2);
|
|
55836
55919
|
__decorateClass([
|
|
55837
|
-
|
|
55920
|
+
IsDefined340({ message: 'La propiedad "activo" es obligatoria.' }),
|
|
55838
55921
|
IsBoolean87({ message: 'La propiedad "activo" debe ser un valor booleano.' }),
|
|
55839
|
-
|
|
55922
|
+
Expose858()
|
|
55840
55923
|
], ThemeConfigUserEntity.prototype, "active", 2);
|
|
55841
55924
|
__decorateClass([
|
|
55842
55925
|
IsNumber539(),
|
|
55843
|
-
|
|
55926
|
+
Expose858()
|
|
55844
55927
|
], ThemeConfigUserEntity.prototype, "ID_Theme", 2);
|
|
55845
55928
|
__decorateClass([
|
|
55846
|
-
|
|
55847
|
-
|
|
55929
|
+
IsString715(),
|
|
55930
|
+
Expose858()
|
|
55848
55931
|
], ThemeConfigUserEntity.prototype, "Identificacion", 2);
|
|
55849
55932
|
__decorateClass([
|
|
55850
|
-
|
|
55851
|
-
|
|
55933
|
+
IsString715(),
|
|
55934
|
+
Expose858()
|
|
55852
55935
|
], ThemeConfigUserEntity.prototype, "Color", 2);
|
|
55853
55936
|
__decorateClass([
|
|
55854
|
-
|
|
55855
|
-
|
|
55856
|
-
|
|
55937
|
+
IsOptional84(),
|
|
55938
|
+
IsString715(),
|
|
55939
|
+
Expose858()
|
|
55857
55940
|
], ThemeConfigUserEntity.prototype, "Language", 2);
|
|
55858
55941
|
__decorateClass([
|
|
55859
|
-
|
|
55860
|
-
|
|
55861
|
-
|
|
55942
|
+
ValidateNested442(),
|
|
55943
|
+
Type514(() => EstadoDTO2),
|
|
55944
|
+
Expose858()
|
|
55862
55945
|
], ThemeConfigUserEntity.prototype, "Estado", 2);
|
|
55863
55946
|
__decorateClass([
|
|
55864
|
-
|
|
55865
|
-
|
|
55866
|
-
|
|
55867
|
-
|
|
55868
|
-
|
|
55947
|
+
IsOptional84(),
|
|
55948
|
+
IsArray272(),
|
|
55949
|
+
ValidateNested442({ each: true }),
|
|
55950
|
+
Type514(() => FavoritoDTO2),
|
|
55951
|
+
Expose858()
|
|
55869
55952
|
], ThemeConfigUserEntity.prototype, "Favoritos", 2);
|
|
55870
55953
|
|
|
55871
55954
|
// src/v2/utils/validateCustom.ts
|
|
@@ -56045,6 +56128,7 @@ export {
|
|
|
56045
56128
|
CentroCostosDTO,
|
|
56046
56129
|
CentroCostosENTITY,
|
|
56047
56130
|
CertificacionDTO,
|
|
56131
|
+
ChangeHomePassStateDto,
|
|
56048
56132
|
ChangeStateBaremosDTO,
|
|
56049
56133
|
Chile9512TOAENTITY,
|
|
56050
56134
|
ChileTdCENTITY,
|
|
@@ -56090,6 +56174,7 @@ export {
|
|
|
56090
56174
|
ConversionLogisticaDTO,
|
|
56091
56175
|
CoordenadasDTO,
|
|
56092
56176
|
CoordenadasTdCDTO,
|
|
56177
|
+
CorrectRejectedValuationDto,
|
|
56093
56178
|
CorteBobinaStockAlmacenDTO,
|
|
56094
56179
|
CosumoMaterialAlemaniaDTO,
|
|
56095
56180
|
CotizacionDto,
|
|
@@ -56312,6 +56397,8 @@ export {
|
|
|
56312
56397
|
GranFamiliaItemDTO,
|
|
56313
56398
|
GranFamiliaItemENTITY,
|
|
56314
56399
|
GrupoEmpresaDTO,
|
|
56400
|
+
HOME_PASS_CLIENT_TYPES,
|
|
56401
|
+
HOME_PASS_STATE_TYPES,
|
|
56315
56402
|
HPListAsignacionDTO,
|
|
56316
56403
|
HPListDTO,
|
|
56317
56404
|
HistorialCubicacionDTO,
|
|
@@ -56323,6 +56410,7 @@ export {
|
|
|
56323
56410
|
HistoricoEmpresasDTO,
|
|
56324
56411
|
HitoDTO,
|
|
56325
56412
|
HomePassDTO,
|
|
56413
|
+
HomePassRefDto,
|
|
56326
56414
|
IDataSheetCoordenadas,
|
|
56327
56415
|
IDataSheetLineasTdC,
|
|
56328
56416
|
IDataSheetMateriales,
|
|
@@ -56791,6 +56879,7 @@ export {
|
|
|
56791
56879
|
UpdateDelegationDto,
|
|
56792
56880
|
UpdateDto,
|
|
56793
56881
|
UpdateEstadoInternoObraRequestDTO,
|
|
56882
|
+
UpdateHomePassAnexosDto,
|
|
56794
56883
|
UpdateProfileDto,
|
|
56795
56884
|
UpdateThemeConfigCountryDto,
|
|
56796
56885
|
UpdateThemeConfigUserDto,
|