sigo-entities 1.2.536 → 1.2.537
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/dist/index.mjs +40 -38
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35693,6 +35693,8 @@ __decorateClass([
|
|
|
35693
35693
|
__decorateClass([
|
|
35694
35694
|
(0, import_class_validator616.IsString)({ message: "debe ser un texto" }),
|
|
35695
35695
|
(0, import_class_validator616.Length)(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
35696
|
+
(0, import_class_validator616.ValidateIf)((o) => o.Email !== ""),
|
|
35697
|
+
(0, import_class_validator616.IsEmail)({}, { message: "debe ser un correo electr\xF3nico v\xE1lido" }),
|
|
35696
35698
|
(0, import_class_transformer639.Expose)()
|
|
35697
35699
|
], DatosGeneralesPersonalDTO.prototype, "Email", 2);
|
|
35698
35700
|
__decorateClass([
|
package/dist/index.mjs
CHANGED
|
@@ -34903,7 +34903,7 @@ __decorateClass([
|
|
|
34903
34903
|
|
|
34904
34904
|
// src/configuracion/personal/shared/dto/datos-generales-personal-dto.ts
|
|
34905
34905
|
import { Expose as Expose613, Type as Type409 } from "class-transformer";
|
|
34906
|
-
import { IsArray as IsArray214, IsNotEmpty as IsNotEmpty401, IsString as IsString486, Length as Length273, ValidateNested as ValidateNested367 } from "class-validator";
|
|
34906
|
+
import { IsArray as IsArray214, IsEmail as IsEmail3, IsNotEmpty as IsNotEmpty401, IsString as IsString486, Length as Length273, ValidateIf as ValidateIf4, ValidateNested as ValidateNested367 } from "class-validator";
|
|
34907
34907
|
var DatosGeneralesPersonalDTO = class {
|
|
34908
34908
|
Direccion = "";
|
|
34909
34909
|
Genero = new OptionCatalogoDTO();
|
|
@@ -34924,6 +34924,8 @@ __decorateClass([
|
|
|
34924
34924
|
__decorateClass([
|
|
34925
34925
|
IsString486({ message: "debe ser un texto" }),
|
|
34926
34926
|
Length273(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
34927
|
+
ValidateIf4((o) => o.Email !== ""),
|
|
34928
|
+
IsEmail3({}, { message: "debe ser un correo electr\xF3nico v\xE1lido" }),
|
|
34927
34929
|
Expose613()
|
|
34928
34930
|
], DatosGeneralesPersonalDTO.prototype, "Email", 2);
|
|
34929
34931
|
__decorateClass([
|
|
@@ -36172,7 +36174,7 @@ __decorateClass([
|
|
|
36172
36174
|
|
|
36173
36175
|
// src/configuracion/usuarios/shared/index.ts
|
|
36174
36176
|
import { Expose as Expose639, Transform as Transform85, Type as Type427 } from "class-transformer";
|
|
36175
|
-
import { IsArray as IsArray222, IsBoolean as IsBoolean64, IsNotEmpty as IsNotEmpty423, IsNumber as IsNumber414, IsString as IsString511, Length as Length296, Min as Min317, ValidateNested as ValidateNested379, IsEmail as
|
|
36177
|
+
import { IsArray as IsArray222, IsBoolean as IsBoolean64, IsNotEmpty as IsNotEmpty423, IsNumber as IsNumber414, IsString as IsString511, Length as Length296, Min as Min317, ValidateNested as ValidateNested379, IsEmail as IsEmail4, IsEnum as IsEnum13 } from "class-validator";
|
|
36176
36178
|
var UsuarioENTITY = class {
|
|
36177
36179
|
IdUsuario = 0;
|
|
36178
36180
|
User = "";
|
|
@@ -36257,7 +36259,7 @@ __decorateClass([
|
|
|
36257
36259
|
], UsuarioENTITY.prototype, "Identificacion", 2);
|
|
36258
36260
|
__decorateClass([
|
|
36259
36261
|
IsNotEmpty423({ message: "Es requerido" }),
|
|
36260
|
-
|
|
36262
|
+
IsEmail4({}, { message: "debe ser un correo electr\xF3nico v\xE1lido" }),
|
|
36261
36263
|
Expose639()
|
|
36262
36264
|
], UsuarioENTITY.prototype, "Email", 2);
|
|
36263
36265
|
__decorateClass([
|
|
@@ -41158,7 +41160,7 @@ import {
|
|
|
41158
41160
|
IsArray as IsArray232,
|
|
41159
41161
|
IsObject as IsObject6,
|
|
41160
41162
|
IsDate as IsDate154,
|
|
41161
|
-
ValidateIf as
|
|
41163
|
+
ValidateIf as ValidateIf5
|
|
41162
41164
|
} from "class-validator";
|
|
41163
41165
|
import "reflect-metadata";
|
|
41164
41166
|
|
|
@@ -41866,7 +41868,7 @@ __decorateClass([
|
|
|
41866
41868
|
}
|
|
41867
41869
|
return value;
|
|
41868
41870
|
}),
|
|
41869
|
-
|
|
41871
|
+
ValidateIf5(
|
|
41870
41872
|
(o) => o.AjusteReproceso && Object.keys(o.AjusteReproceso).length > 0
|
|
41871
41873
|
),
|
|
41872
41874
|
ValidateNested404(),
|
|
@@ -41880,7 +41882,7 @@ __decorateClass([
|
|
|
41880
41882
|
}
|
|
41881
41883
|
return value;
|
|
41882
41884
|
}),
|
|
41883
|
-
|
|
41885
|
+
ValidateIf5(
|
|
41884
41886
|
(o) => o.Valorizacion && Object.keys(o.Valorizacion).length > 0
|
|
41885
41887
|
),
|
|
41886
41888
|
ValidateNested404(),
|
|
@@ -42334,8 +42336,8 @@ import {
|
|
|
42334
42336
|
IsArray as IsArray234,
|
|
42335
42337
|
IsDate as IsDate157,
|
|
42336
42338
|
Min as Min345,
|
|
42337
|
-
IsEmail as
|
|
42338
|
-
ValidateIf as
|
|
42339
|
+
IsEmail as IsEmail5,
|
|
42340
|
+
ValidateIf as ValidateIf7,
|
|
42339
42341
|
MaxLength as MaxLength2
|
|
42340
42342
|
} from "class-validator";
|
|
42341
42343
|
import "reflect-metadata";
|
|
@@ -42646,8 +42648,8 @@ __decorateClass([
|
|
|
42646
42648
|
], Chile9512TOAENTITY.prototype, "Contacto", 2);
|
|
42647
42649
|
__decorateClass([
|
|
42648
42650
|
IsDefined225(),
|
|
42649
|
-
|
|
42650
|
-
|
|
42651
|
+
ValidateIf7((_, value) => value?.length > 0),
|
|
42652
|
+
IsEmail5(),
|
|
42651
42653
|
MaxLength2(255),
|
|
42652
42654
|
Expose727()
|
|
42653
42655
|
], Chile9512TOAENTITY.prototype, "EmailCliente", 2);
|
|
@@ -54486,7 +54488,7 @@ __decorateClass([
|
|
|
54486
54488
|
|
|
54487
54489
|
// src/v2/dtos/Login.ts
|
|
54488
54490
|
import { Expose as Expose816, Transform as Transform116 } from "class-transformer";
|
|
54489
|
-
import { IsDefined as IsDefined305, IsEmail as
|
|
54491
|
+
import { IsDefined as IsDefined305, IsEmail as IsEmail6, Length as Length343 } from "class-validator";
|
|
54490
54492
|
var LoginDto = class {
|
|
54491
54493
|
email = "";
|
|
54492
54494
|
password = "";
|
|
@@ -54494,7 +54496,7 @@ var LoginDto = class {
|
|
|
54494
54496
|
__decorateClass([
|
|
54495
54497
|
Transform116(({ value }) => typeof value === "string" ? value.trim().toLowerCase() : value),
|
|
54496
54498
|
IsDefined305({ message: "Debe proporcionar un email" }),
|
|
54497
|
-
|
|
54499
|
+
IsEmail6({}, { message: "El email es inv\xE1lido" }),
|
|
54498
54500
|
Expose816()
|
|
54499
54501
|
], LoginDto.prototype, "email", 2);
|
|
54500
54502
|
__decorateClass([
|
|
@@ -54509,7 +54511,7 @@ import { IsDefined as IsDefined308, IsEnum as IsEnum60, IsObject as IsObject15,
|
|
|
54509
54511
|
import { Expose as Expose819, Type as Type503 } from "class-transformer";
|
|
54510
54512
|
|
|
54511
54513
|
// src/v2/dtos/AuthUser.ts
|
|
54512
|
-
import { IsBoolean as IsBoolean73, IsDefined as IsDefined306, IsEmail as
|
|
54514
|
+
import { IsBoolean as IsBoolean73, IsDefined as IsDefined306, IsEmail as IsEmail7, IsString as IsString678, IsUUID as IsUUID25, ValidateIf as ValidateIf8 } from "class-validator";
|
|
54513
54515
|
import { Expose as Expose817, Transform as Transform117 } from "class-transformer";
|
|
54514
54516
|
var AuthUserDto = class {
|
|
54515
54517
|
email;
|
|
@@ -54522,7 +54524,7 @@ var AuthUserDto = class {
|
|
|
54522
54524
|
};
|
|
54523
54525
|
__decorateClass([
|
|
54524
54526
|
IsDefined306({ message: "El correo es requerido" }),
|
|
54525
|
-
|
|
54527
|
+
IsEmail7({}, { message: "El correo es invalido" }),
|
|
54526
54528
|
Transform117(({ value }) => typeof value === "string" ? value.trim().toLowerCase() : value),
|
|
54527
54529
|
Expose817()
|
|
54528
54530
|
], AuthUserDto.prototype, "email", 2);
|
|
@@ -54557,7 +54559,7 @@ __decorateClass([
|
|
|
54557
54559
|
], AuthUserDto.prototype, "root", 2);
|
|
54558
54560
|
__decorateClass([
|
|
54559
54561
|
IsDefined306({ message: "El campo Perfil es obligatorio" }),
|
|
54560
|
-
|
|
54562
|
+
ValidateIf8((_, value) => value !== ""),
|
|
54561
54563
|
IsUUID25("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
54562
54564
|
Expose817()
|
|
54563
54565
|
], AuthUserDto.prototype, "profileId", 2);
|
|
@@ -54755,14 +54757,14 @@ __decorateClass([
|
|
|
54755
54757
|
|
|
54756
54758
|
// src/v2/dtos/ForgotPassword.ts
|
|
54757
54759
|
import { Expose as Expose823, Transform as Transform120 } from "class-transformer";
|
|
54758
|
-
import { IsDefined as IsDefined312, IsEmail as
|
|
54760
|
+
import { IsDefined as IsDefined312, IsEmail as IsEmail8 } from "class-validator";
|
|
54759
54761
|
var ForgotPasswordDto = class {
|
|
54760
54762
|
email = "";
|
|
54761
54763
|
};
|
|
54762
54764
|
__decorateClass([
|
|
54763
54765
|
Transform120(({ value }) => typeof value === "string" ? value.trim().toLowerCase() : value),
|
|
54764
54766
|
IsDefined312({ message: "Debe proporcionar un email" }),
|
|
54765
|
-
|
|
54767
|
+
IsEmail8({}, { message: "El email es inv\xE1lido" }),
|
|
54766
54768
|
Expose823()
|
|
54767
54769
|
], ForgotPasswordDto.prototype, "email", 2);
|
|
54768
54770
|
|
|
@@ -54887,14 +54889,14 @@ __decorateClass([
|
|
|
54887
54889
|
], CompanyDto.prototype, "countryId", 2);
|
|
54888
54890
|
|
|
54889
54891
|
// src/v2/dtos/UpdateUser.ts
|
|
54890
|
-
import { IsDefined as IsDefined316, IsUUID as IsUUID31, ValidateIf as
|
|
54892
|
+
import { IsDefined as IsDefined316, IsUUID as IsUUID31, ValidateIf as ValidateIf9 } from "class-validator";
|
|
54891
54893
|
import { Expose as Expose828 } from "class-transformer";
|
|
54892
54894
|
var UpdateUserDto = class {
|
|
54893
54895
|
profileId;
|
|
54894
54896
|
};
|
|
54895
54897
|
__decorateClass([
|
|
54896
54898
|
IsDefined316({ message: "El campo Perfil es obligatorio" }),
|
|
54897
|
-
|
|
54899
|
+
ValidateIf9((_, value) => value !== ""),
|
|
54898
54900
|
IsUUID31("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
54899
54901
|
Expose828()
|
|
54900
54902
|
], UpdateUserDto.prototype, "profileId", 2);
|
|
@@ -55111,7 +55113,7 @@ var CompanyType = /* @__PURE__ */ ((CompanyType2) => {
|
|
|
55111
55113
|
|
|
55112
55114
|
// src/v2/dtos/CreateCompany.ts
|
|
55113
55115
|
import { Expose as Expose834 } from "class-transformer";
|
|
55114
|
-
import { IsArray as IsArray264, IsBoolean as IsBoolean81, IsDefined as IsDefined322, IsEmail as
|
|
55116
|
+
import { IsArray as IsArray264, IsBoolean as IsBoolean81, IsDefined as IsDefined322, IsEmail as IsEmail11, IsEnum as IsEnum63, IsNotEmpty as IsNotEmpty474, IsString as IsString693, IsUUID as IsUUID36 } from "class-validator";
|
|
55115
55117
|
var CreateCompanyDto = class {
|
|
55116
55118
|
_id;
|
|
55117
55119
|
companyType;
|
|
@@ -55173,7 +55175,7 @@ __decorateClass([
|
|
|
55173
55175
|
__decorateClass([
|
|
55174
55176
|
IsDefined322({ message: "El campo correos electr\xF3nicos es requerido" }),
|
|
55175
55177
|
IsArray264({ message: "El campo correos electr\xF3nicos debe ser un arreglo" }),
|
|
55176
|
-
|
|
55178
|
+
IsEmail11({}, { each: true, message: "Cada correo electr\xF3nico debe ser v\xE1lido" }),
|
|
55177
55179
|
Expose834()
|
|
55178
55180
|
], CreateCompanyDto.prototype, "emails", 2);
|
|
55179
55181
|
__decorateClass([
|
|
@@ -55191,7 +55193,7 @@ __decorateClass([
|
|
|
55191
55193
|
|
|
55192
55194
|
// src/v2/dtos/UpdateCompany.ts
|
|
55193
55195
|
import { Expose as Expose835 } from "class-transformer";
|
|
55194
|
-
import { IsArray as IsArray265, IsBoolean as IsBoolean82, IsDefined as IsDefined323, IsEmail as
|
|
55196
|
+
import { IsArray as IsArray265, IsBoolean as IsBoolean82, IsDefined as IsDefined323, IsEmail as IsEmail12, IsEnum as IsEnum64, IsNotEmpty as IsNotEmpty475, IsString as IsString694, IsUUID as IsUUID37 } from "class-validator";
|
|
55195
55197
|
var UpdateCompanyDto = class {
|
|
55196
55198
|
_id;
|
|
55197
55199
|
companyType;
|
|
@@ -55253,7 +55255,7 @@ __decorateClass([
|
|
|
55253
55255
|
__decorateClass([
|
|
55254
55256
|
IsDefined323({ message: "El campo correos electr\xF3nicos es requerido" }),
|
|
55255
55257
|
IsArray265({ message: "El campo correos electr\xF3nicos debe ser un arreglo" }),
|
|
55256
|
-
|
|
55258
|
+
IsEmail12({}, { each: true, message: "Cada correo electr\xF3nico debe ser v\xE1lido" }),
|
|
55257
55259
|
Expose835()
|
|
55258
55260
|
], UpdateCompanyDto.prototype, "emails", 2);
|
|
55259
55261
|
__decorateClass([
|
|
@@ -55270,7 +55272,7 @@ __decorateClass([
|
|
|
55270
55272
|
], UpdateCompanyDto.prototype, "countryId", 2);
|
|
55271
55273
|
|
|
55272
55274
|
// src/v2/dtos/CreateUser.ts
|
|
55273
|
-
import { IsArray as IsArray266, IsBoolean as IsBoolean83, IsDefined as IsDefined325, IsEmail as
|
|
55275
|
+
import { IsArray as IsArray266, IsBoolean as IsBoolean83, IsDefined as IsDefined325, IsEmail as IsEmail13, IsString as IsString696, IsUUID as IsUUID38, ValidateIf as ValidateIf10, ValidateNested as ValidateNested438 } from "class-validator";
|
|
55274
55276
|
import { Expose as Expose837, Transform as Transform126, Type as Type508 } from "class-transformer";
|
|
55275
55277
|
|
|
55276
55278
|
// src/v2/dtos/ResourceSystemDto.ts
|
|
@@ -55341,7 +55343,7 @@ __decorateClass([
|
|
|
55341
55343
|
], CreateUserDto.prototype, "_id", 2);
|
|
55342
55344
|
__decorateClass([
|
|
55343
55345
|
IsDefined325({ message: "El correo es requerido" }),
|
|
55344
|
-
|
|
55346
|
+
IsEmail13({}, { message: "El correo es invalido" }),
|
|
55345
55347
|
Transform126(({ value }) => typeof value === "string" ? value.trim().toLowerCase() : value),
|
|
55346
55348
|
Expose837()
|
|
55347
55349
|
], CreateUserDto.prototype, "email", 2);
|
|
@@ -55395,7 +55397,7 @@ __decorateClass([
|
|
|
55395
55397
|
], CreateUserDto.prototype, "root", 2);
|
|
55396
55398
|
__decorateClass([
|
|
55397
55399
|
IsDefined325({ message: "El campo Perfil es obligatorio" }),
|
|
55398
|
-
|
|
55400
|
+
ValidateIf10((_, value) => value !== ""),
|
|
55399
55401
|
IsUUID38("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
55400
55402
|
Expose837()
|
|
55401
55403
|
], CreateUserDto.prototype, "profileId", 2);
|
|
@@ -56009,7 +56011,7 @@ __decorateClass([
|
|
|
56009
56011
|
|
|
56010
56012
|
// src/v2/dtos/FinalizeSomacylOrder.ts
|
|
56011
56013
|
import { Expose as Expose853, Transform as Transform132 } from "class-transformer";
|
|
56012
|
-
import { IsDefined as IsDefined336, IsIn as IsIn9, IsNotEmpty as IsNotEmpty480, IsOptional as IsOptional90, IsString as IsString711, MaxLength as MaxLength14, ValidateIf as
|
|
56014
|
+
import { IsDefined as IsDefined336, IsIn as IsIn9, IsNotEmpty as IsNotEmpty480, IsOptional as IsOptional90, IsString as IsString711, MaxLength as MaxLength14, ValidateIf as ValidateIf11 } from "class-validator";
|
|
56013
56015
|
var estadosFinalizacion = ["Finalizada" /* FINALIZADA */, "No Finalizada" /* NO_FINALIZADA */];
|
|
56014
56016
|
var motivosNoFinalizado = Object.values(ReasonNoFinalizedSomacyl).filter((e) => e !== "" /* INICIAL */);
|
|
56015
56017
|
var trim2 = ({ value }) => typeof value === "string" ? value.trim() : value;
|
|
@@ -56031,19 +56033,19 @@ __decorateClass([
|
|
|
56031
56033
|
Expose853()
|
|
56032
56034
|
], FinalizeSomacylOrderDto.prototype, "estado_interno", 2);
|
|
56033
56035
|
__decorateClass([
|
|
56034
|
-
|
|
56036
|
+
ValidateIf11((o) => o.estado_interno === "No Finalizada" /* NO_FINALIZADA */),
|
|
56035
56037
|
IsDefined336({ message: "El motivo de no finalizado es requerido" }),
|
|
56036
56038
|
IsIn9(motivosNoFinalizado, { message: `El motivo de no finalizado debe ser uno de: ${motivosNoFinalizado.join(", ")}` }),
|
|
56037
56039
|
Expose853()
|
|
56038
56040
|
], FinalizeSomacylOrderDto.prototype, "motivo_no_finalizado", 2);
|
|
56039
56041
|
__decorateClass([
|
|
56040
|
-
|
|
56042
|
+
ValidateIf11((o) => o.estado_interno === "No Finalizada" /* NO_FINALIZADA */),
|
|
56041
56043
|
IsDefined336({ message: "La clasificaci\xF3n de incidencia es requerida" }),
|
|
56042
56044
|
IsIn9(clasificacionesNoFinalizado, { message: `La clasificaci\xF3n de incidencia debe ser una de: ${clasificacionesNoFinalizado.join(", ")}` }),
|
|
56043
56045
|
Expose853()
|
|
56044
56046
|
], FinalizeSomacylOrderDto.prototype, "clasificacion_incidencia", 2);
|
|
56045
56047
|
__decorateClass([
|
|
56046
|
-
|
|
56048
|
+
ValidateIf11((o) => o.estado_interno === "No Finalizada" /* NO_FINALIZADA */),
|
|
56047
56049
|
IsDefined336({ message: "La observaci\xF3n es requerida" }),
|
|
56048
56050
|
IsString711({ message: "La observaci\xF3n debe ser una cadena de texto" }),
|
|
56049
56051
|
IsNotEmpty480({ message: "La observaci\xF3n es requerida" }),
|
|
@@ -56052,7 +56054,7 @@ __decorateClass([
|
|
|
56052
56054
|
Expose853()
|
|
56053
56055
|
], FinalizeSomacylOrderDto.prototype, "observaciones_en_legados", 2);
|
|
56054
56056
|
__decorateClass([
|
|
56055
|
-
|
|
56057
|
+
ValidateIf11(isFinalizada),
|
|
56056
56058
|
IsDefined336({ message: "La lectura del contador retirado es requerida" }),
|
|
56057
56059
|
IsString711({ message: "La lectura del contador retirado debe ser una cadena de texto" }),
|
|
56058
56060
|
IsNotEmpty480({ message: "La lectura del contador retirado es requerida" }),
|
|
@@ -56061,7 +56063,7 @@ __decorateClass([
|
|
|
56061
56063
|
Expose853()
|
|
56062
56064
|
], FinalizeSomacylOrderDto.prototype, "lecturaContadorRetirado", 2);
|
|
56063
56065
|
__decorateClass([
|
|
56064
|
-
|
|
56066
|
+
ValidateIf11(isFinalizada),
|
|
56065
56067
|
IsDefined336({ message: "La lectura del contador instalado es requerida" }),
|
|
56066
56068
|
IsString711({ message: "La lectura del contador instalado debe ser una cadena de texto" }),
|
|
56067
56069
|
IsNotEmpty480({ message: "La lectura del contador instalado es requerida" }),
|
|
@@ -56070,7 +56072,7 @@ __decorateClass([
|
|
|
56070
56072
|
Expose853()
|
|
56071
56073
|
], FinalizeSomacylOrderDto.prototype, "lecturaContadorInstalado", 2);
|
|
56072
56074
|
__decorateClass([
|
|
56073
|
-
|
|
56075
|
+
ValidateIf11(isFinalizada),
|
|
56074
56076
|
IsDefined336({ message: "Las observaciones son requeridas" }),
|
|
56075
56077
|
IsString711({ message: "Las observaciones deben ser una cadena de texto" }),
|
|
56076
56078
|
IsNotEmpty480({ message: "Las observaciones son requeridas" }),
|
|
@@ -56613,7 +56615,7 @@ __decorateClass([
|
|
|
56613
56615
|
], DelegationEntity.prototype, "name", 2);
|
|
56614
56616
|
|
|
56615
56617
|
// src/v2/entities/User.ts
|
|
56616
|
-
import { IsArray as IsArray275, IsBoolean as IsBoolean85, IsDefined as IsDefined349, IsEmail as
|
|
56618
|
+
import { IsArray as IsArray275, IsBoolean as IsBoolean85, IsDefined as IsDefined349, IsEmail as IsEmail14, IsString as IsString719, IsUUID as IsUUID43, ValidateIf as ValidateIf12, ValidateNested as ValidateNested450 } from "class-validator";
|
|
56617
56619
|
import { Expose as Expose866, Transform as Transform138, Type as Type523 } from "class-transformer";
|
|
56618
56620
|
var UserEntity = class extends BaseEntity {
|
|
56619
56621
|
email;
|
|
@@ -56630,7 +56632,7 @@ var UserEntity = class extends BaseEntity {
|
|
|
56630
56632
|
};
|
|
56631
56633
|
__decorateClass([
|
|
56632
56634
|
IsDefined349({ message: "El correo es requerido" }),
|
|
56633
|
-
|
|
56635
|
+
IsEmail14({}, { message: "El correo es invalido" }),
|
|
56634
56636
|
Transform138(({ value }) => typeof value === "string" ? value.trim().toLowerCase() : value),
|
|
56635
56637
|
Expose866()
|
|
56636
56638
|
], UserEntity.prototype, "email", 2);
|
|
@@ -56684,7 +56686,7 @@ __decorateClass([
|
|
|
56684
56686
|
], UserEntity.prototype, "root", 2);
|
|
56685
56687
|
__decorateClass([
|
|
56686
56688
|
IsDefined349({ message: "El campo Perfil es obligatorio" }),
|
|
56687
|
-
|
|
56689
|
+
ValidateIf12((_, value) => value !== ""),
|
|
56688
56690
|
IsUUID43("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
56689
56691
|
Expose866()
|
|
56690
56692
|
], UserEntity.prototype, "profileId", 2);
|
|
@@ -56748,7 +56750,7 @@ __decorateClass([
|
|
|
56748
56750
|
|
|
56749
56751
|
// src/v2/entities/Company.ts
|
|
56750
56752
|
import { Expose as Expose869 } from "class-transformer";
|
|
56751
|
-
import { IsArray as IsArray277, IsBoolean as IsBoolean86, IsDefined as IsDefined352, IsEmail as
|
|
56753
|
+
import { IsArray as IsArray277, IsBoolean as IsBoolean86, IsDefined as IsDefined352, IsEmail as IsEmail15, IsEnum as IsEnum68, IsNotEmpty as IsNotEmpty486, IsString as IsString722, IsUUID as IsUUID44 } from "class-validator";
|
|
56752
56754
|
var CompanyEntity = class extends BaseEntity {
|
|
56753
56755
|
companyType;
|
|
56754
56756
|
identification;
|
|
@@ -56804,7 +56806,7 @@ __decorateClass([
|
|
|
56804
56806
|
__decorateClass([
|
|
56805
56807
|
IsDefined352({ message: "El campo correos electr\xF3nicos es requerido" }),
|
|
56806
56808
|
IsArray277({ message: "El campo correos electr\xF3nicos debe ser un arreglo" }),
|
|
56807
|
-
|
|
56809
|
+
IsEmail15({}, { each: true, message: "Cada correo electr\xF3nico debe ser v\xE1lido" }),
|
|
56808
56810
|
Expose869()
|
|
56809
56811
|
], CompanyEntity.prototype, "emails", 2);
|
|
56810
56812
|
__decorateClass([
|