sigo-entities 1.2.559 → 1.2.561

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 CHANGED
@@ -10930,7 +10930,7 @@ declare class BtAlpPluzVeredaAsignacionENTITY {
10930
10930
  area: string;
10931
10931
  /** BANDEJA (Asignar cuadrilla) o POR_ORDEN (Asignar por N° de orden). Las asignaciones sin origen son BANDEJA */
10932
10932
  origen: string;
10933
- /** Solo POR_ORDEN: paños, dirección, distrito, eléctrica y croquis que digita el gestor. Vacío en BANDEJA */
10933
+ /** Solo POR_ORDEN: paños, dirección, distrito, eléctrica y croquis que digita el gestor. Vacío (sin validar) en BANDEJA */
10934
10934
  datos_vereda: DatosVeredaDTO;
10935
10935
  pendiente: PendienteVeredaDTO;
10936
10936
  cuadrilla: CuadrillaVeredaDTO;
package/dist/index.d.ts CHANGED
@@ -10930,7 +10930,7 @@ declare class BtAlpPluzVeredaAsignacionENTITY {
10930
10930
  area: string;
10931
10931
  /** BANDEJA (Asignar cuadrilla) o POR_ORDEN (Asignar por N° de orden). Las asignaciones sin origen son BANDEJA */
10932
10932
  origen: string;
10933
- /** Solo POR_ORDEN: paños, dirección, distrito, eléctrica y croquis que digita el gestor. Vacío en BANDEJA */
10933
+ /** Solo POR_ORDEN: paños, dirección, distrito, eléctrica y croquis que digita el gestor. Vacío (sin validar) en BANDEJA */
10934
10934
  datos_vereda: DatosVeredaDTO;
10935
10935
  pendiente: PendienteVeredaDTO;
10936
10936
  cuadrilla: CuadrillaVeredaDTO;
package/dist/index.js CHANGED
@@ -55898,10 +55898,16 @@ __decorateClass([
55898
55898
  ], DesmonteVeredaBodyDTO.prototype, "tiene_desmonte", 2);
55899
55899
  __decorateClass([
55900
55900
  (0, import_class_transformer852.Expose)(),
55901
- (0, import_class_validator829.ValidateIf)((o) => o.tiene_desmonte),
55902
- (0, import_class_validator829.IsDefined)({ message: "Adjunte la foto del desmonte" }),
55901
+ (0, import_class_validator829.IsDefined)(),
55903
55902
  (0, import_class_validator829.ValidateNested)(),
55904
- (0, import_class_transformer852.Type)(() => FilesDocDTO)
55903
+ (0, import_class_transformer852.Type)(() => FilesDocDTO),
55904
+ (0, import_class_validator829.ValidateBy)({
55905
+ name: "fotoDesmonteVereda",
55906
+ validator: {
55907
+ validate: (foto, args) => !(args?.object).tiene_desmonte || tieneArchivoVereda(foto),
55908
+ defaultMessage: () => "Adjunte la foto del desmonte"
55909
+ }
55910
+ })
55905
55911
  ], DesmonteVeredaBodyDTO.prototype, "foto", 2);
55906
55912
  var DesmonteVeredaDTO = class extends DesmonteVeredaBodyDTO {
55907
55913
  fecha = FECHA_VACIA_VEREDA();
@@ -56461,6 +56467,7 @@ __decorateClass([
56461
56467
  ], BtAlpPluzVeredaAsignacionENTITY.prototype, "origen", 2);
56462
56468
  __decorateClass([
56463
56469
  (0, import_class_transformer857.Expose)(),
56470
+ (0, import_class_validator834.ValidateIf)((o) => o.origen === ORIGENES_ASIGNACION_VEREDA.POR_ORDEN),
56464
56471
  (0, import_class_validator834.IsDefined)(),
56465
56472
  (0, import_class_validator834.ValidateNested)(),
56466
56473
  (0, import_class_transformer857.Type)(() => DatosVeredaDTO)
package/dist/index.mjs CHANGED
@@ -54898,7 +54898,7 @@ __decorateClass([
54898
54898
 
54899
54899
  // src/operativa/procesos/btalppluz_vereda_asignacion/shared/index.ts
54900
54900
  import { Expose as Expose829, Transform as Transform117, Type as Type513 } from "class-transformer";
54901
- import { IsArray as IsArray262, IsBoolean as IsBoolean77, IsDate as IsDate201, IsDefined as IsDefined316, IsIn as IsIn13, IsNotEmpty as IsNotEmpty469, IsString as IsString685, ValidateNested as ValidateNested443 } from "class-validator";
54901
+ import { IsArray as IsArray262, IsBoolean as IsBoolean77, IsDate as IsDate201, IsDefined as IsDefined316, IsIn as IsIn13, IsNotEmpty as IsNotEmpty469, IsString as IsString685, ValidateIf as ValidateIf9, ValidateNested as ValidateNested443 } from "class-validator";
54902
54902
  import "reflect-metadata";
54903
54903
 
54904
54904
  // src/operativa/procesos/btalppluz_vereda_asignacion/shared/dto/pendiente-vereda-dto.ts
@@ -55263,7 +55263,7 @@ import "reflect-metadata";
55263
55263
 
55264
55264
  // src/operativa/procesos/btalppluz_vereda_asignacion/shared/dto/desmonte-vereda-dto.ts
55265
55265
  import { Expose as Expose824, Type as Type508 } from "class-transformer";
55266
- import { IsBoolean as IsBoolean76, IsDate as IsDate197, IsDefined as IsDefined311, ValidateIf as ValidateIf9, ValidateNested as ValidateNested438 } from "class-validator";
55266
+ import { IsBoolean as IsBoolean76, IsDate as IsDate197, IsDefined as IsDefined311, ValidateBy, ValidateNested as ValidateNested438 } from "class-validator";
55267
55267
  import "reflect-metadata";
55268
55268
  var FECHA_VACIA_VEREDA = () => /* @__PURE__ */ new Date(0);
55269
55269
  var fechaRegistradaVereda = (fecha) => !!fecha && new Date(fecha).getTime() > 0;
@@ -55279,10 +55279,16 @@ __decorateClass([
55279
55279
  ], DesmonteVeredaBodyDTO.prototype, "tiene_desmonte", 2);
55280
55280
  __decorateClass([
55281
55281
  Expose824(),
55282
- ValidateIf9((o) => o.tiene_desmonte),
55283
- IsDefined311({ message: "Adjunte la foto del desmonte" }),
55282
+ IsDefined311(),
55284
55283
  ValidateNested438(),
55285
- Type508(() => FilesDocDTO)
55284
+ Type508(() => FilesDocDTO),
55285
+ ValidateBy({
55286
+ name: "fotoDesmonteVereda",
55287
+ validator: {
55288
+ validate: (foto, args) => !(args?.object).tiene_desmonte || tieneArchivoVereda(foto),
55289
+ defaultMessage: () => "Adjunte la foto del desmonte"
55290
+ }
55291
+ })
55286
55292
  ], DesmonteVeredaBodyDTO.prototype, "foto", 2);
55287
55293
  var DesmonteVeredaDTO = class extends DesmonteVeredaBodyDTO {
55288
55294
  fecha = FECHA_VACIA_VEREDA();
@@ -55842,6 +55848,7 @@ __decorateClass([
55842
55848
  ], BtAlpPluzVeredaAsignacionENTITY.prototype, "origen", 2);
55843
55849
  __decorateClass([
55844
55850
  Expose829(),
55851
+ ValidateIf9((o) => o.origen === ORIGENES_ASIGNACION_VEREDA.POR_ORDEN),
55845
55852
  IsDefined316(),
55846
55853
  ValidateNested443(),
55847
55854
  Type513(() => DatosVeredaDTO)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-entities",
3
- "version": "1.2.559",
3
+ "version": "1.2.561",
4
4
  "description": "Desarrollo de modelos de datos SIGO",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",