sigo-entities 1.2.386 → 1.2.387
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 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +6 -24
- package/dist/index.mjs +46 -64
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -9414,10 +9414,8 @@ declare class AuthUserDto {
|
|
|
9414
9414
|
maternalLastName: string;
|
|
9415
9415
|
firstNames: string;
|
|
9416
9416
|
identification: string;
|
|
9417
|
-
company: CodeNameDto;
|
|
9418
|
-
country: CodeNameMinLengthDto;
|
|
9419
|
-
delegation: CodeNameMinLengthDto;
|
|
9420
9417
|
root: boolean;
|
|
9418
|
+
profileId: string;
|
|
9421
9419
|
}
|
|
9422
9420
|
|
|
9423
9421
|
declare class ProfileDto {
|
package/dist/index.d.ts
CHANGED
|
@@ -9414,10 +9414,8 @@ declare class AuthUserDto {
|
|
|
9414
9414
|
maternalLastName: string;
|
|
9415
9415
|
firstNames: string;
|
|
9416
9416
|
identification: string;
|
|
9417
|
-
company: CodeNameDto;
|
|
9418
|
-
country: CodeNameMinLengthDto;
|
|
9419
|
-
delegation: CodeNameMinLengthDto;
|
|
9420
9417
|
root: boolean;
|
|
9418
|
+
profileId: string;
|
|
9421
9419
|
}
|
|
9422
9420
|
|
|
9423
9421
|
declare class ProfileDto {
|
package/dist/index.js
CHANGED
|
@@ -49922,10 +49922,8 @@ var AuthUserDto = class {
|
|
|
49922
49922
|
maternalLastName;
|
|
49923
49923
|
firstNames;
|
|
49924
49924
|
identification;
|
|
49925
|
-
company;
|
|
49926
|
-
country;
|
|
49927
|
-
delegation;
|
|
49928
49925
|
root;
|
|
49926
|
+
profileId;
|
|
49929
49927
|
};
|
|
49930
49928
|
__decorateClass([
|
|
49931
49929
|
(0, import_class_validator758.IsDefined)({ message: "El correo es requerido" }),
|
|
@@ -49957,32 +49955,16 @@ __decorateClass([
|
|
|
49957
49955
|
(0, import_class_validator758.IsString)({ message: "El n\xFAmero de identificaci\xF3n debe ser una cadena de texto" }),
|
|
49958
49956
|
(0, import_class_transformer781.Expose)()
|
|
49959
49957
|
], AuthUserDto.prototype, "identification", 2);
|
|
49960
|
-
__decorateClass([
|
|
49961
|
-
(0, import_class_validator758.IsDefined)({ message: "La empresa es requerida" }),
|
|
49962
|
-
(0, import_class_transformer781.Type)(() => CodeNameDto),
|
|
49963
|
-
(0, import_class_validator758.ValidateNested)(),
|
|
49964
|
-
(0, import_class_validator758.IsObject)(),
|
|
49965
|
-
(0, import_class_transformer781.Expose)()
|
|
49966
|
-
], AuthUserDto.prototype, "company", 2);
|
|
49967
|
-
__decorateClass([
|
|
49968
|
-
(0, import_class_validator758.IsDefined)({ message: "debe proporcionar el pa\xEDs" }),
|
|
49969
|
-
(0, import_class_validator758.ValidateNested)(),
|
|
49970
|
-
(0, import_class_transformer781.Type)(() => CodeNameMinLengthDto),
|
|
49971
|
-
(0, import_class_validator758.IsObject)(),
|
|
49972
|
-
(0, import_class_transformer781.Expose)()
|
|
49973
|
-
], AuthUserDto.prototype, "country", 2);
|
|
49974
|
-
__decorateClass([
|
|
49975
|
-
(0, import_class_validator758.IsDefined)({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
49976
|
-
(0, import_class_validator758.ValidateNested)(),
|
|
49977
|
-
(0, import_class_transformer781.Type)(() => CodeNameMinLengthDto),
|
|
49978
|
-
(0, import_class_validator758.IsObject)(),
|
|
49979
|
-
(0, import_class_transformer781.Expose)()
|
|
49980
|
-
], AuthUserDto.prototype, "delegation", 2);
|
|
49981
49958
|
__decorateClass([
|
|
49982
49959
|
(0, import_class_validator758.IsDefined)({ message: 'La propiedad "root" es obligatoria.' }),
|
|
49983
49960
|
(0, import_class_validator758.IsBoolean)({ message: 'La propiedad "root" debe ser un valor booleano.' }),
|
|
49984
49961
|
(0, import_class_transformer781.Expose)()
|
|
49985
49962
|
], AuthUserDto.prototype, "root", 2);
|
|
49963
|
+
__decorateClass([
|
|
49964
|
+
(0, import_class_validator758.IsDefined)({ message: "El campo Perfil es obligatorio" }),
|
|
49965
|
+
(0, import_class_validator758.IsUUID)("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
49966
|
+
(0, import_class_transformer781.Expose)()
|
|
49967
|
+
], AuthUserDto.prototype, "profileId", 2);
|
|
49986
49968
|
|
|
49987
49969
|
// src/v2/dtos/Profile.ts
|
|
49988
49970
|
var import_class_transformer782 = require("class-transformer");
|
package/dist/index.mjs
CHANGED
|
@@ -49426,22 +49426,20 @@ __decorateClass([
|
|
|
49426
49426
|
], LoginDto.prototype, "password", 2);
|
|
49427
49427
|
|
|
49428
49428
|
// src/v2/dtos/PayloadToken.ts
|
|
49429
|
-
import { IsDefined as IsDefined258, IsObject as
|
|
49430
|
-
import { Expose as Expose756, Type as
|
|
49429
|
+
import { IsDefined as IsDefined258, IsObject as IsObject14, ValidateNested as ValidateNested413 } from "class-validator";
|
|
49430
|
+
import { Expose as Expose756, Type as Type473 } from "class-transformer";
|
|
49431
49431
|
|
|
49432
49432
|
// src/v2/dtos/AuthUser.ts
|
|
49433
|
-
import { IsBoolean as IsBoolean68, IsDefined as IsDefined256, IsEmail as IsEmail5,
|
|
49434
|
-
import { Expose as Expose754, Transform as Transform113
|
|
49433
|
+
import { IsBoolean as IsBoolean68, IsDefined as IsDefined256, IsEmail as IsEmail5, IsString as IsString623, IsUUID as IsUUID18 } from "class-validator";
|
|
49434
|
+
import { Expose as Expose754, Transform as Transform113 } from "class-transformer";
|
|
49435
49435
|
var AuthUserDto = class {
|
|
49436
49436
|
email;
|
|
49437
49437
|
paternalLastName;
|
|
49438
49438
|
maternalLastName;
|
|
49439
49439
|
firstNames;
|
|
49440
49440
|
identification;
|
|
49441
|
-
company;
|
|
49442
|
-
country;
|
|
49443
|
-
delegation;
|
|
49444
49441
|
root;
|
|
49442
|
+
profileId;
|
|
49445
49443
|
};
|
|
49446
49444
|
__decorateClass([
|
|
49447
49445
|
IsDefined256({ message: "El correo es requerido" }),
|
|
@@ -49473,32 +49471,16 @@ __decorateClass([
|
|
|
49473
49471
|
IsString623({ message: "El n\xFAmero de identificaci\xF3n debe ser una cadena de texto" }),
|
|
49474
49472
|
Expose754()
|
|
49475
49473
|
], AuthUserDto.prototype, "identification", 2);
|
|
49476
|
-
__decorateClass([
|
|
49477
|
-
IsDefined256({ message: "La empresa es requerida" }),
|
|
49478
|
-
Type473(() => CodeNameDto),
|
|
49479
|
-
ValidateNested413(),
|
|
49480
|
-
IsObject14(),
|
|
49481
|
-
Expose754()
|
|
49482
|
-
], AuthUserDto.prototype, "company", 2);
|
|
49483
|
-
__decorateClass([
|
|
49484
|
-
IsDefined256({ message: "debe proporcionar el pa\xEDs" }),
|
|
49485
|
-
ValidateNested413(),
|
|
49486
|
-
Type473(() => CodeNameMinLengthDto),
|
|
49487
|
-
IsObject14(),
|
|
49488
|
-
Expose754()
|
|
49489
|
-
], AuthUserDto.prototype, "country", 2);
|
|
49490
|
-
__decorateClass([
|
|
49491
|
-
IsDefined256({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
49492
|
-
ValidateNested413(),
|
|
49493
|
-
Type473(() => CodeNameMinLengthDto),
|
|
49494
|
-
IsObject14(),
|
|
49495
|
-
Expose754()
|
|
49496
|
-
], AuthUserDto.prototype, "delegation", 2);
|
|
49497
49474
|
__decorateClass([
|
|
49498
49475
|
IsDefined256({ message: 'La propiedad "root" es obligatoria.' }),
|
|
49499
49476
|
IsBoolean68({ message: 'La propiedad "root" debe ser un valor booleano.' }),
|
|
49500
49477
|
Expose754()
|
|
49501
49478
|
], AuthUserDto.prototype, "root", 2);
|
|
49479
|
+
__decorateClass([
|
|
49480
|
+
IsDefined256({ message: "El campo Perfil es obligatorio" }),
|
|
49481
|
+
IsUUID18("4", { message: "El campo Perfil debe ser un UUID v4 v\xE1lido." }),
|
|
49482
|
+
Expose754()
|
|
49483
|
+
], AuthUserDto.prototype, "profileId", 2);
|
|
49502
49484
|
|
|
49503
49485
|
// src/v2/dtos/Profile.ts
|
|
49504
49486
|
import { Expose as Expose755, Transform as Transform114 } from "class-transformer";
|
|
@@ -49531,40 +49513,40 @@ var PayloadTokenDto = class {
|
|
|
49531
49513
|
delegation;
|
|
49532
49514
|
};
|
|
49533
49515
|
__decorateClass([
|
|
49534
|
-
|
|
49535
|
-
|
|
49516
|
+
ValidateNested413(),
|
|
49517
|
+
Type473(() => AuthUserDto),
|
|
49536
49518
|
Expose756()
|
|
49537
49519
|
], PayloadTokenDto.prototype, "user", 2);
|
|
49538
49520
|
__decorateClass([
|
|
49539
|
-
|
|
49540
|
-
|
|
49521
|
+
ValidateNested413(),
|
|
49522
|
+
Type473(() => ProfileDto),
|
|
49541
49523
|
Expose756()
|
|
49542
49524
|
], PayloadTokenDto.prototype, "profile", 2);
|
|
49543
49525
|
__decorateClass([
|
|
49544
49526
|
IsDefined258({ message: "La empresa es requerida" }),
|
|
49545
|
-
|
|
49546
|
-
|
|
49547
|
-
|
|
49527
|
+
Type473(() => CodeNameDto),
|
|
49528
|
+
ValidateNested413(),
|
|
49529
|
+
IsObject14(),
|
|
49548
49530
|
Expose756()
|
|
49549
49531
|
], PayloadTokenDto.prototype, "company", 2);
|
|
49550
49532
|
__decorateClass([
|
|
49551
49533
|
IsDefined258({ message: "debe proporcionar el pa\xEDs" }),
|
|
49552
|
-
|
|
49553
|
-
|
|
49554
|
-
|
|
49534
|
+
ValidateNested413(),
|
|
49535
|
+
Type473(() => CodeNameMinLengthDto),
|
|
49536
|
+
IsObject14(),
|
|
49555
49537
|
Expose756()
|
|
49556
49538
|
], PayloadTokenDto.prototype, "country", 2);
|
|
49557
49539
|
__decorateClass([
|
|
49558
49540
|
IsDefined258({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
49559
|
-
|
|
49560
|
-
|
|
49561
|
-
|
|
49541
|
+
ValidateNested413(),
|
|
49542
|
+
Type473(() => CodeNameMinLengthDto),
|
|
49543
|
+
IsObject14(),
|
|
49562
49544
|
Expose756()
|
|
49563
49545
|
], PayloadTokenDto.prototype, "delegation", 2);
|
|
49564
49546
|
|
|
49565
49547
|
// src/v2/dtos/ResponseSignIn.ts
|
|
49566
|
-
import { IsArray as
|
|
49567
|
-
import { Expose as Expose758, Type as
|
|
49548
|
+
import { IsArray as IsArray247, IsDefined as IsDefined260, IsObject as IsObject15, IsString as IsString626, MinLength as MinLength58, ValidateNested as ValidateNested414 } from "class-validator";
|
|
49549
|
+
import { Expose as Expose758, Type as Type474 } from "class-transformer";
|
|
49568
49550
|
|
|
49569
49551
|
// src/v2/entities/SystemOption.ts
|
|
49570
49552
|
import { Expose as Expose757 } from "class-transformer";
|
|
@@ -49623,19 +49605,19 @@ var ResponseSignInDto = class {
|
|
|
49623
49605
|
};
|
|
49624
49606
|
__decorateClass([
|
|
49625
49607
|
IsDefined260({ message: "El usuario es requerido" }),
|
|
49626
|
-
|
|
49627
|
-
|
|
49628
|
-
|
|
49608
|
+
IsObject15({ message: "El usuario debe ser un objeto" }),
|
|
49609
|
+
ValidateNested414(),
|
|
49610
|
+
Type474(() => PayloadTokenDto),
|
|
49629
49611
|
Expose758()
|
|
49630
49612
|
], ResponseSignInDto.prototype, "user", 2);
|
|
49631
49613
|
__decorateClass([
|
|
49632
|
-
|
|
49633
|
-
|
|
49634
|
-
|
|
49614
|
+
IsArray247({ message: "La propiedad debe ser un arreglo" }),
|
|
49615
|
+
ValidateNested414({ each: true, message: "Cada elemento de la propiedad debe ser una instancia v\xE1lida" }),
|
|
49616
|
+
Type474(() => SystemOptionEntity),
|
|
49635
49617
|
Expose758()
|
|
49636
49618
|
], ResponseSignInDto.prototype, "dataSystemOptions", 2);
|
|
49637
49619
|
__decorateClass([
|
|
49638
|
-
|
|
49620
|
+
IsArray247({ message: "Tags debe ser un arreglo" }),
|
|
49639
49621
|
IsString626({ each: true, message: "Cada elemento de tags debe ser una cadena de texto v\xE1lida" }),
|
|
49640
49622
|
MinLength58(1, { each: true, message: "Cada tag debe tener al menos un car\xE1cter" }),
|
|
49641
49623
|
Expose758()
|
|
@@ -49686,7 +49668,7 @@ __decorateClass([
|
|
|
49686
49668
|
|
|
49687
49669
|
// src/v2/dtos/CreateProfile.ts
|
|
49688
49670
|
import { Expose as Expose761, Transform as Transform116 } from "class-transformer";
|
|
49689
|
-
import { IsArray as
|
|
49671
|
+
import { IsArray as IsArray248, IsDefined as IsDefined262, IsString as IsString628, Length as Length342, MinLength as MinLength60, IsUUID as IsUUID21 } from "class-validator";
|
|
49690
49672
|
var CreateProfileDto = class {
|
|
49691
49673
|
_id;
|
|
49692
49674
|
name;
|
|
@@ -49714,7 +49696,7 @@ __decorateClass([
|
|
|
49714
49696
|
], CreateProfileDto.prototype, "description", 2);
|
|
49715
49697
|
__decorateClass([
|
|
49716
49698
|
IsDefined262({ message: "El campo opciones de sistema es requerido" }),
|
|
49717
|
-
|
|
49699
|
+
IsArray248({ message: "Opciones de sistema debe ser un arreglo" }),
|
|
49718
49700
|
IsString628({ each: true, message: "Cada elemento de opciones de sistema debe ser una cadena de texto v\xE1lida" }),
|
|
49719
49701
|
MinLength60(1, { each: true, message: "Cada opci\xF3n de sistema debe tener al menos un car\xE1cter" }),
|
|
49720
49702
|
Expose761()
|
|
@@ -49722,7 +49704,7 @@ __decorateClass([
|
|
|
49722
49704
|
|
|
49723
49705
|
// src/v2/dtos/UpdateProfile.ts
|
|
49724
49706
|
import { Expose as Expose762, Transform as Transform117 } from "class-transformer";
|
|
49725
|
-
import { IsArray as
|
|
49707
|
+
import { IsArray as IsArray249, IsDefined as IsDefined263, IsString as IsString629, Length as Length343, MinLength as MinLength61, IsBoolean as IsBoolean72 } from "class-validator";
|
|
49726
49708
|
var UpdateProfileDto = class {
|
|
49727
49709
|
active;
|
|
49728
49710
|
name;
|
|
@@ -49750,15 +49732,15 @@ __decorateClass([
|
|
|
49750
49732
|
], UpdateProfileDto.prototype, "description", 2);
|
|
49751
49733
|
__decorateClass([
|
|
49752
49734
|
IsDefined263({ message: "El campo opciones de sistema es requerido" }),
|
|
49753
|
-
|
|
49735
|
+
IsArray249({ message: "Opciones de sistema debe ser un arreglo" }),
|
|
49754
49736
|
IsString629({ each: true, message: "Cada elemento de opciones de sistema debe ser una cadena de texto v\xE1lida" }),
|
|
49755
49737
|
MinLength61(1, { each: true, message: "Cada opci\xF3n de sistema debe tener al menos un car\xE1cter" }),
|
|
49756
49738
|
Expose762()
|
|
49757
49739
|
], UpdateProfileDto.prototype, "systemOptions", 2);
|
|
49758
49740
|
|
|
49759
49741
|
// src/v2/entities/Delegation.ts
|
|
49760
|
-
import { Expose as Expose764, Type as
|
|
49761
|
-
import { IsDefined as IsDefined265, IsObject as
|
|
49742
|
+
import { Expose as Expose764, Type as Type475 } from "class-transformer";
|
|
49743
|
+
import { IsDefined as IsDefined265, IsObject as IsObject16, IsString as IsString630, MinLength as MinLength62, ValidateNested as ValidateNested415 } from "class-validator";
|
|
49762
49744
|
|
|
49763
49745
|
// src/v2/entities/Base.ts
|
|
49764
49746
|
import { Expose as Expose763 } from "class-transformer";
|
|
@@ -49786,9 +49768,9 @@ var DelegationEntity = class extends BaseEntity {
|
|
|
49786
49768
|
};
|
|
49787
49769
|
__decorateClass([
|
|
49788
49770
|
IsDefined265({ message: 'La propiedad "pais" es obligatoria.' }),
|
|
49789
|
-
|
|
49790
|
-
|
|
49791
|
-
|
|
49771
|
+
Type475(() => CodeNameMinLengthDto),
|
|
49772
|
+
IsObject16({ message: 'La propiedad "pais" debe ser un objeto v\xE1lido.' }),
|
|
49773
|
+
ValidateNested415({ message: 'La propiedad "pais" no es v\xE1lida.' }),
|
|
49792
49774
|
Expose764()
|
|
49793
49775
|
], DelegationEntity.prototype, "pais", 2);
|
|
49794
49776
|
__decorateClass([
|
|
@@ -49805,7 +49787,7 @@ __decorateClass([
|
|
|
49805
49787
|
], DelegationEntity.prototype, "nombre", 2);
|
|
49806
49788
|
|
|
49807
49789
|
// src/v2/entities/User.ts
|
|
49808
|
-
import { IsArray as
|
|
49790
|
+
import { IsArray as IsArray250, IsBoolean as IsBoolean74, IsDefined as IsDefined266, IsEmail as IsEmail7, IsString as IsString631, IsUUID as IsUUID24 } from "class-validator";
|
|
49809
49791
|
import { Expose as Expose765, Transform as Transform118 } from "class-transformer";
|
|
49810
49792
|
var UserEntity = class extends BaseEntity {
|
|
49811
49793
|
email;
|
|
@@ -49857,13 +49839,13 @@ __decorateClass([
|
|
|
49857
49839
|
], UserEntity.prototype, "identification", 2);
|
|
49858
49840
|
__decorateClass([
|
|
49859
49841
|
IsDefined266({ message: "La empresa es requerida" }),
|
|
49860
|
-
|
|
49842
|
+
IsArray250({ message: "La empresa debe ser un array" }),
|
|
49861
49843
|
IsUUID24("4", { each: true, message: "La empresa debe ser un UUID v4 v\xE1lido." }),
|
|
49862
49844
|
Expose765()
|
|
49863
49845
|
], UserEntity.prototype, "companyIds", 2);
|
|
49864
49846
|
__decorateClass([
|
|
49865
49847
|
IsDefined266({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
49866
|
-
|
|
49848
|
+
IsArray250({ message: "debe proporcionar la delegaci\xF3n" }),
|
|
49867
49849
|
IsUUID24("4", { each: true, message: "El campo delegaci\xF3n debe ser un UUID v4 v\xE1lido." }),
|
|
49868
49850
|
Expose765()
|
|
49869
49851
|
], UserEntity.prototype, "delegationIds", 2);
|
|
@@ -49880,7 +49862,7 @@ __decorateClass([
|
|
|
49880
49862
|
|
|
49881
49863
|
// src/v2/entities/Profile.ts
|
|
49882
49864
|
import { Expose as Expose766, Transform as Transform119 } from "class-transformer";
|
|
49883
|
-
import { IsArray as
|
|
49865
|
+
import { IsArray as IsArray251, IsDefined as IsDefined267, IsString as IsString632, Length as Length344, MinLength as MinLength63 } from "class-validator";
|
|
49884
49866
|
var ProfileEntity = class extends BaseEntity {
|
|
49885
49867
|
name;
|
|
49886
49868
|
description;
|
|
@@ -49902,7 +49884,7 @@ __decorateClass([
|
|
|
49902
49884
|
], ProfileEntity.prototype, "description", 2);
|
|
49903
49885
|
__decorateClass([
|
|
49904
49886
|
IsDefined267({ message: "El campo opciones de sistema es requerido" }),
|
|
49905
|
-
|
|
49887
|
+
IsArray251({ message: "Opciones de sistema debe ser un arreglo" }),
|
|
49906
49888
|
IsString632({ each: true, message: "Cada elemento de opciones de sistema debe ser una cadena de texto v\xE1lida" }),
|
|
49907
49889
|
MinLength63(1, { each: true, message: "Cada opci\xF3n de sistema debe tener al menos un car\xE1cter" }),
|
|
49908
49890
|
Expose766()
|