sigo-entities 1.2.497 → 1.2.498
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 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +0 -14
- package/dist/index.mjs +17 -31
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -10777,13 +10777,12 @@ declare class UpdateDetailsSomacylOrderDto {
|
|
|
10777
10777
|
|
|
10778
10778
|
/**
|
|
10779
10779
|
* Payload de PUT processes/somacylOrder/finalize/:_id
|
|
10780
|
+
* Las coordenadas se toman de las fotos (foto después si Finalizada, foto antes si No Finalizada).
|
|
10780
10781
|
*/
|
|
10781
10782
|
declare class FinalizeSomacylOrderDto {
|
|
10782
10783
|
estado_interno: StateInternalOrderSomacyl.FINALIZADA | StateInternalOrderSomacyl.NO_FINALIZADA;
|
|
10783
10784
|
motivo_no_finalizado?: ReasonNoFinalizedSomacyl;
|
|
10784
10785
|
observaciones_en_legados?: string;
|
|
10785
|
-
latitud: number;
|
|
10786
|
-
longitud: number;
|
|
10787
10786
|
}
|
|
10788
10787
|
|
|
10789
10788
|
declare enum SomacylPhotoPosition {
|
package/dist/index.d.ts
CHANGED
|
@@ -10777,13 +10777,12 @@ declare class UpdateDetailsSomacylOrderDto {
|
|
|
10777
10777
|
|
|
10778
10778
|
/**
|
|
10779
10779
|
* Payload de PUT processes/somacylOrder/finalize/:_id
|
|
10780
|
+
* Las coordenadas se toman de las fotos (foto después si Finalizada, foto antes si No Finalizada).
|
|
10780
10781
|
*/
|
|
10781
10782
|
declare class FinalizeSomacylOrderDto {
|
|
10782
10783
|
estado_interno: StateInternalOrderSomacyl.FINALIZADA | StateInternalOrderSomacyl.NO_FINALIZADA;
|
|
10783
10784
|
motivo_no_finalizado?: ReasonNoFinalizedSomacyl;
|
|
10784
10785
|
observaciones_en_legados?: string;
|
|
10785
|
-
latitud: number;
|
|
10786
|
-
longitud: number;
|
|
10787
10786
|
}
|
|
10788
10787
|
|
|
10789
10788
|
declare enum SomacylPhotoPosition {
|
package/dist/index.js
CHANGED
|
@@ -55975,8 +55975,6 @@ var FinalizeSomacylOrderDto = class {
|
|
|
55975
55975
|
estado_interno;
|
|
55976
55976
|
motivo_no_finalizado;
|
|
55977
55977
|
observaciones_en_legados;
|
|
55978
|
-
latitud;
|
|
55979
|
-
longitud;
|
|
55980
55978
|
};
|
|
55981
55979
|
__decorateClass([
|
|
55982
55980
|
(0, import_class_validator842.IsDefined)({ message: "El estado es requerido" }),
|
|
@@ -55998,18 +55996,6 @@ __decorateClass([
|
|
|
55998
55996
|
(0, import_class_transformer866.Transform)(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
55999
55997
|
(0, import_class_transformer866.Expose)()
|
|
56000
55998
|
], FinalizeSomacylOrderDto.prototype, "observaciones_en_legados", 2);
|
|
56001
|
-
__decorateClass([
|
|
56002
|
-
(0, import_class_validator842.IsDefined)({ message: "La latitud es requerida" }),
|
|
56003
|
-
(0, import_class_transformer866.Type)(() => Number),
|
|
56004
|
-
(0, import_class_validator842.IsNumber)({}, { message: "La latitud debe ser un n\xFAmero" }),
|
|
56005
|
-
(0, import_class_transformer866.Expose)()
|
|
56006
|
-
], FinalizeSomacylOrderDto.prototype, "latitud", 2);
|
|
56007
|
-
__decorateClass([
|
|
56008
|
-
(0, import_class_validator842.IsDefined)({ message: "La longitud es requerida" }),
|
|
56009
|
-
(0, import_class_transformer866.Type)(() => Number),
|
|
56010
|
-
(0, import_class_validator842.IsNumber)({}, { message: "La longitud debe ser un n\xFAmero" }),
|
|
56011
|
-
(0, import_class_transformer866.Expose)()
|
|
56012
|
-
], FinalizeSomacylOrderDto.prototype, "longitud", 2);
|
|
56013
55999
|
|
|
56014
56000
|
// src/v2/dtos/UploadFileSomacylOrder.ts
|
|
56015
56001
|
var import_class_transformer867 = require("class-transformer");
|
package/dist/index.mjs
CHANGED
|
@@ -55462,16 +55462,14 @@ __decorateClass([
|
|
|
55462
55462
|
], UpdateDetailsSomacylOrderDto.prototype, "observaciones", 2);
|
|
55463
55463
|
|
|
55464
55464
|
// src/v2/dtos/FinalizeSomacylOrder.ts
|
|
55465
|
-
import { Expose as Expose838, Transform as Transform128
|
|
55466
|
-
import { IsDefined as IsDefined322, IsIn as IsIn8, IsNotEmpty as IsNotEmpty475,
|
|
55465
|
+
import { Expose as Expose838, Transform as Transform128 } from "class-transformer";
|
|
55466
|
+
import { IsDefined as IsDefined322, IsIn as IsIn8, IsNotEmpty as IsNotEmpty475, IsString as IsString700, MaxLength as MaxLength13, ValidateIf as ValidateIf10 } from "class-validator";
|
|
55467
55467
|
var estadosFinalizacion = ["Finalizada" /* FINALIZADA */, "No Finalizada" /* NO_FINALIZADA */];
|
|
55468
55468
|
var motivosNoFinalizado = Object.values(ReasonNoFinalizedSomacyl).filter((e) => e !== "" /* INICIAL */);
|
|
55469
55469
|
var FinalizeSomacylOrderDto = class {
|
|
55470
55470
|
estado_interno;
|
|
55471
55471
|
motivo_no_finalizado;
|
|
55472
55472
|
observaciones_en_legados;
|
|
55473
|
-
latitud;
|
|
55474
|
-
longitud;
|
|
55475
55473
|
};
|
|
55476
55474
|
__decorateClass([
|
|
55477
55475
|
IsDefined322({ message: "El estado es requerido" }),
|
|
@@ -55493,18 +55491,6 @@ __decorateClass([
|
|
|
55493
55491
|
Transform128(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
55494
55492
|
Expose838()
|
|
55495
55493
|
], FinalizeSomacylOrderDto.prototype, "observaciones_en_legados", 2);
|
|
55496
|
-
__decorateClass([
|
|
55497
|
-
IsDefined322({ message: "La latitud es requerida" }),
|
|
55498
|
-
Type508(() => Number),
|
|
55499
|
-
IsNumber536({}, { message: "La latitud debe ser un n\xFAmero" }),
|
|
55500
|
-
Expose838()
|
|
55501
|
-
], FinalizeSomacylOrderDto.prototype, "latitud", 2);
|
|
55502
|
-
__decorateClass([
|
|
55503
|
-
IsDefined322({ message: "La longitud es requerida" }),
|
|
55504
|
-
Type508(() => Number),
|
|
55505
|
-
IsNumber536({}, { message: "La longitud debe ser un n\xFAmero" }),
|
|
55506
|
-
Expose838()
|
|
55507
|
-
], FinalizeSomacylOrderDto.prototype, "longitud", 2);
|
|
55508
55494
|
|
|
55509
55495
|
// src/v2/dtos/UploadFileSomacylOrder.ts
|
|
55510
55496
|
import { Expose as Expose839, Transform as Transform129 } from "class-transformer";
|
|
@@ -55587,7 +55573,7 @@ __decorateClass([
|
|
|
55587
55573
|
|
|
55588
55574
|
// src/v2/entities/User.ts
|
|
55589
55575
|
import { IsArray as IsArray265, IsBoolean as IsBoolean82, IsDefined as IsDefined326, IsEmail as IsEmail13, IsString as IsString703, IsUUID as IsUUID41, ValidateIf as ValidateIf11, ValidateNested as ValidateNested436 } from "class-validator";
|
|
55590
|
-
import { Expose as Expose842, Transform as Transform130, Type as
|
|
55576
|
+
import { Expose as Expose842, Transform as Transform130, Type as Type508 } from "class-transformer";
|
|
55591
55577
|
var UserEntity = class extends BaseEntity {
|
|
55592
55578
|
email;
|
|
55593
55579
|
password;
|
|
@@ -55640,7 +55626,7 @@ __decorateClass([
|
|
|
55640
55626
|
__decorateClass([
|
|
55641
55627
|
IsDefined326({ message: "El campo empresas es requerido" }),
|
|
55642
55628
|
IsArray265({ message: "El campo empresas debe ser un array" }),
|
|
55643
|
-
|
|
55629
|
+
Type508(() => CompanyDto),
|
|
55644
55630
|
ValidateNested436({ each: true }),
|
|
55645
55631
|
Expose842()
|
|
55646
55632
|
], UserEntity.prototype, "companies", 2);
|
|
@@ -55663,7 +55649,7 @@ __decorateClass([
|
|
|
55663
55649
|
], UserEntity.prototype, "profileId", 2);
|
|
55664
55650
|
__decorateClass([
|
|
55665
55651
|
IsDefined326({ message: "Resurso sistema es obligatoria" }),
|
|
55666
|
-
|
|
55652
|
+
Type508(() => ResourceSystemDto),
|
|
55667
55653
|
ValidateNested436({ each: true }),
|
|
55668
55654
|
IsArray265({ message: "Recurso sistema debe ser un array" }),
|
|
55669
55655
|
Expose842()
|
|
@@ -55794,8 +55780,8 @@ __decorateClass([
|
|
|
55794
55780
|
], CompanyEntity.prototype, "countryId", 2);
|
|
55795
55781
|
|
|
55796
55782
|
// src/v2/entities/ThemeConfigCountry.ts
|
|
55797
|
-
import { Expose as Expose847, Type as
|
|
55798
|
-
import { IsNumber as
|
|
55783
|
+
import { Expose as Expose847, Type as Type509 } from "class-transformer";
|
|
55784
|
+
import { IsNumber as IsNumber536, IsString as IsString708, ValidateNested as ValidateNested437, IsArray as IsArray268 } from "class-validator";
|
|
55799
55785
|
|
|
55800
55786
|
// src/v2/shared-dto/ThemeCountryManualDTO.ts
|
|
55801
55787
|
import { Expose as Expose846 } from "class-transformer";
|
|
@@ -55830,7 +55816,7 @@ var ThemeConfigCountryEntity = class extends BaseEntity {
|
|
|
55830
55816
|
Pais = new CodigoNombreDTO4();
|
|
55831
55817
|
};
|
|
55832
55818
|
__decorateClass([
|
|
55833
|
-
|
|
55819
|
+
IsNumber536(),
|
|
55834
55820
|
Expose847()
|
|
55835
55821
|
], ThemeConfigCountryEntity.prototype, "ID_TemeCountry", 2);
|
|
55836
55822
|
__decorateClass([
|
|
@@ -55847,29 +55833,29 @@ __decorateClass([
|
|
|
55847
55833
|
], ThemeConfigCountryEntity.prototype, "TextFooterRight", 2);
|
|
55848
55834
|
__decorateClass([
|
|
55849
55835
|
ValidateNested437(),
|
|
55850
|
-
|
|
55836
|
+
Type509(() => ImgLogoNavBarDTO2),
|
|
55851
55837
|
Expose847()
|
|
55852
55838
|
], ThemeConfigCountryEntity.prototype, "ImgLogoNavBar", 2);
|
|
55853
55839
|
__decorateClass([
|
|
55854
55840
|
IsArray268(),
|
|
55855
|
-
|
|
55841
|
+
Type509(() => ThemeCountryManualDTO2),
|
|
55856
55842
|
ValidateNested437({ each: true }),
|
|
55857
55843
|
Expose847()
|
|
55858
55844
|
], ThemeConfigCountryEntity.prototype, "Manuales", 2);
|
|
55859
55845
|
__decorateClass([
|
|
55860
55846
|
ValidateNested437(),
|
|
55861
|
-
|
|
55847
|
+
Type509(() => EstadoDTO2),
|
|
55862
55848
|
Expose847()
|
|
55863
55849
|
], ThemeConfigCountryEntity.prototype, "Estado", 2);
|
|
55864
55850
|
__decorateClass([
|
|
55865
55851
|
ValidateNested437(),
|
|
55866
|
-
|
|
55852
|
+
Type509(() => CodigoNombreDTO4),
|
|
55867
55853
|
Expose847()
|
|
55868
55854
|
], ThemeConfigCountryEntity.prototype, "Pais", 2);
|
|
55869
55855
|
|
|
55870
55856
|
// src/v2/entities/ThemeConfigUser.ts
|
|
55871
|
-
import { Expose as Expose848, Type as
|
|
55872
|
-
import { IsNumber as
|
|
55857
|
+
import { Expose as Expose848, Type as Type510 } from "class-transformer";
|
|
55858
|
+
import { IsNumber as IsNumber537, IsString as IsString709, ValidateNested as ValidateNested438, IsArray as IsArray269, IsOptional as IsOptional80, IsDefined as IsDefined330, IsBoolean as IsBoolean84 } from "class-validator";
|
|
55873
55859
|
var ThemeConfigUserEntity = class {
|
|
55874
55860
|
_id;
|
|
55875
55861
|
active = true;
|
|
@@ -55890,7 +55876,7 @@ __decorateClass([
|
|
|
55890
55876
|
Expose848()
|
|
55891
55877
|
], ThemeConfigUserEntity.prototype, "active", 2);
|
|
55892
55878
|
__decorateClass([
|
|
55893
|
-
|
|
55879
|
+
IsNumber537(),
|
|
55894
55880
|
Expose848()
|
|
55895
55881
|
], ThemeConfigUserEntity.prototype, "ID_Theme", 2);
|
|
55896
55882
|
__decorateClass([
|
|
@@ -55908,14 +55894,14 @@ __decorateClass([
|
|
|
55908
55894
|
], ThemeConfigUserEntity.prototype, "Language", 2);
|
|
55909
55895
|
__decorateClass([
|
|
55910
55896
|
ValidateNested438(),
|
|
55911
|
-
|
|
55897
|
+
Type510(() => EstadoDTO2),
|
|
55912
55898
|
Expose848()
|
|
55913
55899
|
], ThemeConfigUserEntity.prototype, "Estado", 2);
|
|
55914
55900
|
__decorateClass([
|
|
55915
55901
|
IsOptional80(),
|
|
55916
55902
|
IsArray269(),
|
|
55917
55903
|
ValidateNested438({ each: true }),
|
|
55918
|
-
|
|
55904
|
+
Type510(() => FavoritoDTO2),
|
|
55919
55905
|
Expose848()
|
|
55920
55906
|
], ThemeConfigUserEntity.prototype, "Favoritos", 2);
|
|
55921
55907
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sigo-entities",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.498",
|
|
4
4
|
"description": "Desarrollo de modelos de datos SIGO",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
"overrides": {
|
|
36
36
|
"esbuild": "^0.28.0"
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|