sigo-entities 0.0.75 → 0.0.77
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -7
- package/dist/index.mjs +11 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -362,20 +362,17 @@ var UsuarioDTO = class {
|
|
|
362
362
|
};
|
|
363
363
|
__decorateClass([
|
|
364
364
|
(0, import_class_validator8.IsString)({ message: "debe ser un texto" }),
|
|
365
|
-
(0, import_class_validator8.
|
|
366
|
-
(0, import_class_validator8.Length)(1, 100, { message: "debe tener entre 1 y 100 caracteres" }),
|
|
365
|
+
(0, import_class_validator8.Length)(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
367
366
|
(0, import_class_transformer8.Expose)()
|
|
368
367
|
], UsuarioDTO.prototype, "Identificacion", 2);
|
|
369
368
|
__decorateClass([
|
|
370
369
|
(0, import_class_validator8.IsString)({ message: "debe ser un texto" }),
|
|
371
|
-
(0, import_class_validator8.
|
|
372
|
-
(0, import_class_validator8.Length)(1, 300, { message: "debe tener entre 1 y 300 caracteres" }),
|
|
370
|
+
(0, import_class_validator8.Length)(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
373
371
|
(0, import_class_transformer8.Expose)()
|
|
374
372
|
], UsuarioDTO.prototype, "Apellidos", 2);
|
|
375
373
|
__decorateClass([
|
|
376
374
|
(0, import_class_validator8.IsString)({ message: "debe ser un texto" }),
|
|
377
|
-
(0, import_class_validator8.
|
|
378
|
-
(0, import_class_validator8.Length)(1, 300, { message: "debe tener entre 1 y 300 caracteres" }),
|
|
375
|
+
(0, import_class_validator8.Length)(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
379
376
|
(0, import_class_transformer8.Expose)()
|
|
380
377
|
], UsuarioDTO.prototype, "Nombres", 2);
|
|
381
378
|
__decorateClass([
|
|
@@ -3574,6 +3571,7 @@ var import_class_validator69 = require("class-validator");
|
|
|
3574
3571
|
var FaseDTO = class {
|
|
3575
3572
|
ID_Fase = 0;
|
|
3576
3573
|
TipoFase = 1;
|
|
3574
|
+
Descripcion = "";
|
|
3577
3575
|
Porcentaje = 0;
|
|
3578
3576
|
FechaInicio = /* @__PURE__ */ new Date();
|
|
3579
3577
|
FechaFin = /* @__PURE__ */ new Date(0);
|
|
@@ -3594,6 +3592,12 @@ __decorateClass([
|
|
|
3594
3592
|
(0, import_class_validator69.IsIn)([1, 2, 3], { message: "El valor debe ser 1, 2 o 3" }),
|
|
3595
3593
|
(0, import_class_transformer69.Expose)()
|
|
3596
3594
|
], FaseDTO.prototype, "TipoFase", 2);
|
|
3595
|
+
__decorateClass([
|
|
3596
|
+
(0, import_class_validator69.IsString)({ message: "debe ser un texto" }),
|
|
3597
|
+
(0, import_class_validator69.IsNotEmpty)({ message: "es requerido" }),
|
|
3598
|
+
(0, import_class_validator69.Length)(0, 300, { message: "debe tener entre 1 y 300 caracteres" }),
|
|
3599
|
+
(0, import_class_transformer69.Expose)()
|
|
3600
|
+
], FaseDTO.prototype, "Descripcion", 2);
|
|
3597
3601
|
__decorateClass([
|
|
3598
3602
|
(0, import_class_validator69.IsNumber)({ allowInfinity: false, allowNaN: false }, { message: "El valor debe ser un n\xFAmero v\xE1lido" }),
|
|
3599
3603
|
(0, import_class_validator69.Min)(0, { message: "El valor debe ser mayor o igual a 0.0" }),
|
|
@@ -3624,7 +3628,7 @@ __decorateClass([
|
|
|
3624
3628
|
__decorateClass([
|
|
3625
3629
|
(0, import_class_validator69.IsString)({ message: "debe ser un texto" }),
|
|
3626
3630
|
(0, import_class_validator69.IsNotEmpty)({ message: "es requerido" }),
|
|
3627
|
-
(0, import_class_validator69.Length)(
|
|
3631
|
+
(0, import_class_validator69.Length)(0, 300, { message: "debe tener entre 1 y 300 caracteres" }),
|
|
3628
3632
|
(0, import_class_transformer69.Expose)()
|
|
3629
3633
|
], FaseDTO.prototype, "Observacion", 2);
|
|
3630
3634
|
__decorateClass([
|
package/dist/index.mjs
CHANGED
|
@@ -219,20 +219,17 @@ var UsuarioDTO = class {
|
|
|
219
219
|
};
|
|
220
220
|
__decorateClass([
|
|
221
221
|
IsString6({ message: "debe ser un texto" }),
|
|
222
|
-
|
|
223
|
-
Length6(1, 100, { message: "debe tener entre 1 y 100 caracteres" }),
|
|
222
|
+
Length6(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
224
223
|
Expose7()
|
|
225
224
|
], UsuarioDTO.prototype, "Identificacion", 2);
|
|
226
225
|
__decorateClass([
|
|
227
226
|
IsString6({ message: "debe ser un texto" }),
|
|
228
|
-
|
|
229
|
-
Length6(1, 300, { message: "debe tener entre 1 y 300 caracteres" }),
|
|
227
|
+
Length6(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
230
228
|
Expose7()
|
|
231
229
|
], UsuarioDTO.prototype, "Apellidos", 2);
|
|
232
230
|
__decorateClass([
|
|
233
231
|
IsString6({ message: "debe ser un texto" }),
|
|
234
|
-
|
|
235
|
-
Length6(1, 300, { message: "debe tener entre 1 y 300 caracteres" }),
|
|
232
|
+
Length6(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
236
233
|
Expose7()
|
|
237
234
|
], UsuarioDTO.prototype, "Nombres", 2);
|
|
238
235
|
__decorateClass([
|
|
@@ -3431,6 +3428,7 @@ import { IsArray as IsArray14, IsDate as IsDate22, IsIn, IsNotEmpty as IsNotEmpt
|
|
|
3431
3428
|
var FaseDTO = class {
|
|
3432
3429
|
ID_Fase = 0;
|
|
3433
3430
|
TipoFase = 1;
|
|
3431
|
+
Descripcion = "";
|
|
3434
3432
|
Porcentaje = 0;
|
|
3435
3433
|
FechaInicio = /* @__PURE__ */ new Date();
|
|
3436
3434
|
FechaFin = /* @__PURE__ */ new Date(0);
|
|
@@ -3451,6 +3449,12 @@ __decorateClass([
|
|
|
3451
3449
|
IsIn([1, 2, 3], { message: "El valor debe ser 1, 2 o 3" }),
|
|
3452
3450
|
Expose68()
|
|
3453
3451
|
], FaseDTO.prototype, "TipoFase", 2);
|
|
3452
|
+
__decorateClass([
|
|
3453
|
+
IsString56({ message: "debe ser un texto" }),
|
|
3454
|
+
IsNotEmpty68({ message: "es requerido" }),
|
|
3455
|
+
Length56(0, 300, { message: "debe tener entre 1 y 300 caracteres" }),
|
|
3456
|
+
Expose68()
|
|
3457
|
+
], FaseDTO.prototype, "Descripcion", 2);
|
|
3454
3458
|
__decorateClass([
|
|
3455
3459
|
IsNumber41({ allowInfinity: false, allowNaN: false }, { message: "El valor debe ser un n\xFAmero v\xE1lido" }),
|
|
3456
3460
|
Min23(0, { message: "El valor debe ser mayor o igual a 0.0" }),
|
|
@@ -3481,7 +3485,7 @@ __decorateClass([
|
|
|
3481
3485
|
__decorateClass([
|
|
3482
3486
|
IsString56({ message: "debe ser un texto" }),
|
|
3483
3487
|
IsNotEmpty68({ message: "es requerido" }),
|
|
3484
|
-
Length56(
|
|
3488
|
+
Length56(0, 300, { message: "debe tener entre 1 y 300 caracteres" }),
|
|
3485
3489
|
Expose68()
|
|
3486
3490
|
], FaseDTO.prototype, "Observacion", 2);
|
|
3487
3491
|
__decorateClass([
|