sigo-entities 0.0.221 → 0.0.223
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 +1 -6
- package/dist/index.mjs +8 -13
- package/package.json +2 -3
package/dist/index.js
CHANGED
|
@@ -9512,7 +9512,6 @@ __decorateClass([
|
|
|
9512
9512
|
], UnidadMedidaDTO3.prototype, "UnidadMedida", 2);
|
|
9513
9513
|
|
|
9514
9514
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/index.ts
|
|
9515
|
-
var import_mongodb = require("mongodb");
|
|
9516
9515
|
var BaremosColombiaENTITY = class {
|
|
9517
9516
|
_id;
|
|
9518
9517
|
foreignKey = "";
|
|
@@ -9546,11 +9545,7 @@ var BaremosColombiaENTITY = class {
|
|
|
9546
9545
|
};
|
|
9547
9546
|
__decorateClass([
|
|
9548
9547
|
(0, import_class_transformer167.Expose)(),
|
|
9549
|
-
(0,
|
|
9550
|
-
if (value instanceof import_mongodb.ObjectId) return value;
|
|
9551
|
-
if (typeof value === "string") return new import_mongodb.ObjectId(value);
|
|
9552
|
-
return value;
|
|
9553
|
-
}, { toClassOnly: true })
|
|
9548
|
+
(0, import_class_validator167.IsOptional)()
|
|
9554
9549
|
], BaremosColombiaENTITY.prototype, "_id", 2);
|
|
9555
9550
|
__decorateClass([
|
|
9556
9551
|
(0, import_class_validator167.IsString)({ message: "debe ser un texto" }),
|
package/dist/index.mjs
CHANGED
|
@@ -8840,8 +8840,8 @@ __decorateClass([
|
|
|
8840
8840
|
], BaremosChileENTITY.prototype, "CambiosEstadosFase", 2);
|
|
8841
8841
|
|
|
8842
8842
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/index.ts
|
|
8843
|
-
import { Expose as Expose166,
|
|
8844
|
-
import { IsArray as IsArray69, IsBoolean as IsBoolean24, IsNotEmpty as IsNotEmpty164, IsNumber as IsNumber120, IsString as IsString141, Min as Min89, ValidateNested as ValidateNested105 } from "class-validator";
|
|
8843
|
+
import { Expose as Expose166, Type as Type115 } from "class-transformer";
|
|
8844
|
+
import { IsArray as IsArray69, IsBoolean as IsBoolean24, IsNotEmpty as IsNotEmpty164, IsNumber as IsNumber120, IsOptional as IsOptional3, IsString as IsString141, Min as Min89, ValidateNested as ValidateNested105 } from "class-validator";
|
|
8845
8845
|
|
|
8846
8846
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/cambios-estados-pagos-produccion-dto.ts
|
|
8847
8847
|
import { Expose as Expose157, Transform, Type as Type107 } from "class-transformer";
|
|
@@ -9259,7 +9259,6 @@ __decorateClass([
|
|
|
9259
9259
|
], UnidadMedidaDTO3.prototype, "UnidadMedida", 2);
|
|
9260
9260
|
|
|
9261
9261
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/index.ts
|
|
9262
|
-
import { ObjectId } from "mongodb";
|
|
9263
9262
|
var BaremosColombiaENTITY = class {
|
|
9264
9263
|
_id;
|
|
9265
9264
|
foreignKey = "";
|
|
@@ -9293,11 +9292,7 @@ var BaremosColombiaENTITY = class {
|
|
|
9293
9292
|
};
|
|
9294
9293
|
__decorateClass([
|
|
9295
9294
|
Expose166(),
|
|
9296
|
-
|
|
9297
|
-
if (value instanceof ObjectId) return value;
|
|
9298
|
-
if (typeof value === "string") return new ObjectId(value);
|
|
9299
|
-
return value;
|
|
9300
|
-
}, { toClassOnly: true })
|
|
9295
|
+
IsOptional3()
|
|
9301
9296
|
], BaremosColombiaENTITY.prototype, "_id", 2);
|
|
9302
9297
|
__decorateClass([
|
|
9303
9298
|
IsString141({ message: "debe ser un texto" }),
|
|
@@ -13949,7 +13944,7 @@ __decorateClass([
|
|
|
13949
13944
|
import { IsDate as IsDate91, IsEnum as IsEnum5, IsNotEmpty as IsNotEmpty231, IsString as IsString206, Length as Length186, ValidateNested as ValidateNested153 } from "class-validator";
|
|
13950
13945
|
|
|
13951
13946
|
// src/configuracion/notificaciones/shared/dto/data-adicional-dto.ts
|
|
13952
|
-
import { Expose as Expose238, Transform as
|
|
13947
|
+
import { Expose as Expose238, Transform as Transform6 } from "class-transformer";
|
|
13953
13948
|
import { IsDate as IsDate90, IsEnum as IsEnum4, IsNotEmpty as IsNotEmpty230, IsString as IsString205, Length as Length185 } from "class-validator";
|
|
13954
13949
|
var OperacionDataAdicional = /* @__PURE__ */ ((OperacionDataAdicional2) => {
|
|
13955
13950
|
OperacionDataAdicional2["CREAR"] = "crear";
|
|
@@ -13980,7 +13975,7 @@ __decorateClass([
|
|
|
13980
13975
|
Expose238()
|
|
13981
13976
|
], DataAdicionalDTO.prototype, "operacion", 2);
|
|
13982
13977
|
__decorateClass([
|
|
13983
|
-
|
|
13978
|
+
Transform6(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
13984
13979
|
IsDate90({ message: "debe ser una fecha" }),
|
|
13985
13980
|
IsNotEmpty230({ message: "es requerido" }),
|
|
13986
13981
|
Expose238()
|
|
@@ -13992,7 +13987,7 @@ __decorateClass([
|
|
|
13992
13987
|
], DataAdicionalDTO.prototype, "localName", 2);
|
|
13993
13988
|
|
|
13994
13989
|
// src/configuracion/notificaciones/shared/index.ts
|
|
13995
|
-
import { Expose as Expose239, Transform as
|
|
13990
|
+
import { Expose as Expose239, Transform as Transform7, Type as Type169 } from "class-transformer";
|
|
13996
13991
|
var TipoNotificacion = /* @__PURE__ */ ((TipoNotificacion2) => {
|
|
13997
13992
|
TipoNotificacion2["INFO"] = "info";
|
|
13998
13993
|
TipoNotificacion2["ERROR"] = "error";
|
|
@@ -14056,13 +14051,13 @@ __decorateClass([
|
|
|
14056
14051
|
ValidateNested153()
|
|
14057
14052
|
], NotificacionesENTITY.prototype, "dataAdicional", 2);
|
|
14058
14053
|
__decorateClass([
|
|
14059
|
-
|
|
14054
|
+
Transform7(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
14060
14055
|
IsDate91({ message: "debe ser una fecha" }),
|
|
14061
14056
|
IsNotEmpty231({ message: "es requerido" }),
|
|
14062
14057
|
Expose239()
|
|
14063
14058
|
], NotificacionesENTITY.prototype, "fechaCreacion", 2);
|
|
14064
14059
|
__decorateClass([
|
|
14065
|
-
|
|
14060
|
+
Transform7(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
14066
14061
|
IsDate91({ message: "debe ser una fecha" }),
|
|
14067
14062
|
IsNotEmpty231({ message: "es requerido" }),
|
|
14068
14063
|
Expose239()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sigo-entities",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.223",
|
|
4
4
|
"description": "Desarrollo de modelos de datos SIGO",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"class-transformer": "^0.5.1",
|
|
25
|
-
"class-validator": "^0.14.1"
|
|
26
|
-
"mongodb": "^6.12.0"
|
|
25
|
+
"class-validator": "^0.14.1"
|
|
27
26
|
}
|
|
28
27
|
}
|