sigo-entities 1.2.460 → 1.2.461
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 +5 -1
- package/dist/index.mjs +14 -10
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -49279,6 +49279,7 @@ __decorateClass([
|
|
|
49279
49279
|
// src/operativa/procesos/altas_nvt_order/shared/dto/materiales-altas-nvt-dto.ts
|
|
49280
49280
|
var import_class_transformer795 = require("class-transformer");
|
|
49281
49281
|
var import_class_validator772 = require("class-validator");
|
|
49282
|
+
var import_sigo_package = require("sigo-package");
|
|
49282
49283
|
var MaterialesAltasNVTDTO = class {
|
|
49283
49284
|
codigo = "";
|
|
49284
49285
|
descripcion = "";
|
|
@@ -49301,7 +49302,10 @@ __decorateClass([
|
|
|
49301
49302
|
(0, import_class_validator772.IsDefined)({ message: "El campo quantity es obligatorio" }),
|
|
49302
49303
|
(0, import_class_transformer795.Type)(() => Number),
|
|
49303
49304
|
(0, import_class_validator772.IsNumber)(),
|
|
49304
|
-
(0, import_class_validator772.
|
|
49305
|
+
(0, import_class_validator772.ValidateIf)((o) => import_sigo_package.itemsCanalizacion.includes(o.codigo)),
|
|
49306
|
+
(0, import_class_validator772.Min)(1, { message: "La cantidad m\xEDnima es 1" }),
|
|
49307
|
+
(0, import_class_validator772.ValidateIf)((o) => !import_sigo_package.itemsCanalizacion.includes(o.codigo)),
|
|
49308
|
+
(0, import_class_validator772.Equals)(1, { message: "La cantidad debe ser exactamente 1" })
|
|
49305
49309
|
], MaterialesAltasNVTDTO.prototype, "cantidad", 2);
|
|
49306
49310
|
__decorateClass([
|
|
49307
49311
|
(0, import_class_transformer795.Expose)(),
|
package/dist/index.mjs
CHANGED
|
@@ -48718,7 +48718,8 @@ __decorateClass([
|
|
|
48718
48718
|
|
|
48719
48719
|
// src/operativa/procesos/altas_nvt_order/shared/dto/materiales-altas-nvt-dto.ts
|
|
48720
48720
|
import { Expose as Expose768, Type as Type477 } from "class-transformer";
|
|
48721
|
-
import { IsDefined as IsDefined263, IsString as IsString636, IsNumber as IsNumber506, Min as Min342 } from "class-validator";
|
|
48721
|
+
import { IsDefined as IsDefined263, IsString as IsString636, IsNumber as IsNumber506, Min as Min342, ValidateIf as ValidateIf7, Equals } from "class-validator";
|
|
48722
|
+
import { itemsCanalizacion } from "sigo-package";
|
|
48722
48723
|
var MaterialesAltasNVTDTO = class {
|
|
48723
48724
|
codigo = "";
|
|
48724
48725
|
descripcion = "";
|
|
@@ -48741,7 +48742,10 @@ __decorateClass([
|
|
|
48741
48742
|
IsDefined263({ message: "El campo quantity es obligatorio" }),
|
|
48742
48743
|
Type477(() => Number),
|
|
48743
48744
|
IsNumber506(),
|
|
48744
|
-
|
|
48745
|
+
ValidateIf7((o) => itemsCanalizacion.includes(o.codigo)),
|
|
48746
|
+
Min342(1, { message: "La cantidad m\xEDnima es 1" }),
|
|
48747
|
+
ValidateIf7((o) => !itemsCanalizacion.includes(o.codigo)),
|
|
48748
|
+
Equals(1, { message: "La cantidad debe ser exactamente 1" })
|
|
48745
48749
|
], MaterialesAltasNVTDTO.prototype, "cantidad", 2);
|
|
48746
48750
|
__decorateClass([
|
|
48747
48751
|
Expose768(),
|
|
@@ -52199,7 +52203,7 @@ import { IsDefined as IsDefined288, IsEnum as IsEnum56, IsObject as IsObject15,
|
|
|
52199
52203
|
import { Expose as Expose800, Type as Type490 } from "class-transformer";
|
|
52200
52204
|
|
|
52201
52205
|
// src/v2/dtos/AuthUser.ts
|
|
52202
|
-
import { IsBoolean as IsBoolean68, IsDefined as IsDefined286, IsEmail as IsEmail6, IsString as IsString662, IsUUID as IsUUID23, ValidateIf as
|
|
52206
|
+
import { IsBoolean as IsBoolean68, IsDefined as IsDefined286, IsEmail as IsEmail6, IsString as IsString662, IsUUID as IsUUID23, ValidateIf as ValidateIf8 } from "class-validator";
|
|
52203
52207
|
import { Expose as Expose798, Transform as Transform114 } from "class-transformer";
|
|
52204
52208
|
var AuthUserDto = class {
|
|
52205
52209
|
email;
|
|
@@ -52247,7 +52251,7 @@ __decorateClass([
|
|
|
52247
52251
|
], AuthUserDto.prototype, "root", 2);
|
|
52248
52252
|
__decorateClass([
|
|
52249
52253
|
IsDefined286({ message: "El campo Perfil es obligatorio" }),
|
|
52250
|
-
|
|
52254
|
+
ValidateIf8((_, value) => value !== ""),
|
|
52251
52255
|
IsUUID23("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
52252
52256
|
Expose798()
|
|
52253
52257
|
], AuthUserDto.prototype, "profileId", 2);
|
|
@@ -52540,7 +52544,7 @@ __decorateClass([
|
|
|
52540
52544
|
], CompanyDto.prototype, "countryId", 2);
|
|
52541
52545
|
|
|
52542
52546
|
// src/v2/dtos/UpdateUser.ts
|
|
52543
|
-
import { IsDefined as IsDefined295, IsUUID as IsUUID29, ValidateIf as
|
|
52547
|
+
import { IsDefined as IsDefined295, IsUUID as IsUUID29, ValidateIf as ValidateIf9 } from "class-validator";
|
|
52544
52548
|
import { Expose as Expose808 } from "class-transformer";
|
|
52545
52549
|
var UpdateUserDto = class {
|
|
52546
52550
|
_id;
|
|
@@ -52553,7 +52557,7 @@ __decorateClass([
|
|
|
52553
52557
|
], UpdateUserDto.prototype, "_id", 2);
|
|
52554
52558
|
__decorateClass([
|
|
52555
52559
|
IsDefined295({ message: "El campo Perfil es obligatorio" }),
|
|
52556
|
-
|
|
52560
|
+
ValidateIf9((_, value) => value !== ""),
|
|
52557
52561
|
IsUUID29("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
52558
52562
|
Expose808()
|
|
52559
52563
|
], UpdateUserDto.prototype, "profileId", 2);
|
|
@@ -52929,7 +52933,7 @@ __decorateClass([
|
|
|
52929
52933
|
], UpdateCompanyDto.prototype, "countryId", 2);
|
|
52930
52934
|
|
|
52931
52935
|
// src/v2/dtos/CreateUser.ts
|
|
52932
|
-
import { IsArray as IsArray259, IsBoolean as IsBoolean77, IsDefined as IsDefined304, IsEmail as IsEmail11, IsString as IsString678, IsUUID as IsUUID36, ValidateIf as
|
|
52936
|
+
import { IsArray as IsArray259, IsBoolean as IsBoolean77, IsDefined as IsDefined304, IsEmail as IsEmail11, IsString as IsString678, IsUUID as IsUUID36, ValidateIf as ValidateIf10, ValidateNested as ValidateNested427 } from "class-validator";
|
|
52933
52937
|
import { Expose as Expose817, Transform as Transform121, Type as Type494 } from "class-transformer";
|
|
52934
52938
|
|
|
52935
52939
|
// src/v2/dtos/ResourceSystemDto.ts
|
|
@@ -53053,7 +53057,7 @@ __decorateClass([
|
|
|
53053
53057
|
], CreateUserDto.prototype, "root", 2);
|
|
53054
53058
|
__decorateClass([
|
|
53055
53059
|
IsDefined304({ message: "El campo Perfil es obligatorio" }),
|
|
53056
|
-
|
|
53060
|
+
ValidateIf10((_, value) => value !== ""),
|
|
53057
53061
|
IsUUID36("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
53058
53062
|
Expose817()
|
|
53059
53063
|
], CreateUserDto.prototype, "profileId", 2);
|
|
@@ -53452,7 +53456,7 @@ __decorateClass([
|
|
|
53452
53456
|
], DelegationEntity.prototype, "name", 2);
|
|
53453
53457
|
|
|
53454
53458
|
// src/v2/entities/User.ts
|
|
53455
|
-
import { IsArray as IsArray262, IsBoolean as IsBoolean79, IsDefined as IsDefined311, IsEmail as IsEmail12, IsString as IsString689, IsUUID as IsUUID41, ValidateIf as
|
|
53459
|
+
import { IsArray as IsArray262, IsBoolean as IsBoolean79, IsDefined as IsDefined311, IsEmail as IsEmail12, IsString as IsString689, IsUUID as IsUUID41, ValidateIf as ValidateIf11, ValidateNested as ValidateNested433 } from "class-validator";
|
|
53456
53460
|
import { Expose as Expose829, Transform as Transform122, Type as Type500 } from "class-transformer";
|
|
53457
53461
|
var UserEntity = class extends BaseEntity {
|
|
53458
53462
|
email;
|
|
@@ -53523,7 +53527,7 @@ __decorateClass([
|
|
|
53523
53527
|
], UserEntity.prototype, "root", 2);
|
|
53524
53528
|
__decorateClass([
|
|
53525
53529
|
IsDefined311({ message: "El campo Perfil es obligatorio" }),
|
|
53526
|
-
|
|
53530
|
+
ValidateIf11((_, value) => value !== ""),
|
|
53527
53531
|
IsUUID41("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
53528
53532
|
Expose829()
|
|
53529
53533
|
], UserEntity.prototype, "profileId", 2);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sigo-entities",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.461",
|
|
4
4
|
"description": "Desarrollo de modelos de datos SIGO",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/express": "^5.0.1",
|
|
22
|
-
"sigo-package": "^1.2.
|
|
22
|
+
"sigo-package": "^1.2.162",
|
|
23
23
|
"ts-morph": "^28.0.0",
|
|
24
24
|
"tsc-alias": "^1.8.15",
|
|
25
25
|
"tsconfig-paths": "^4.2.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"class-transformer": "^0.5.1",
|
|
31
|
-
"class-validator": "^0.
|
|
31
|
+
"class-validator": "^0.15.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"reflect-metadata": "^0.2.2"
|