sigo-entities 1.2.343 → 1.2.345

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
@@ -1412,7 +1412,7 @@ declare class AsignacionRegularizarDTO {
1412
1412
 
1413
1413
  declare class RegularizarObraJobRequestDTO {
1414
1414
  ID_GOM: number;
1415
- ID_Periodo: number;
1415
+ CodigoPeriodo: string;
1416
1416
  Cuadrilla: CuadrillaRegularizarDTO;
1417
1417
  Valorizaciones: AsignacionRegularizarDTO[];
1418
1418
  Observaciones: string;
@@ -1709,8 +1709,8 @@ declare class ValorizacionAlemaniaDTO {
1709
1709
  Descripcion: string;
1710
1710
  Certificacion: CertificacionDTO;
1711
1711
  Produccion: ProduccionDTO;
1712
- Ultimo_Estado_Interno: EstadoInternoDTO;
1713
- Estados: EstadoInternoDTO[];
1712
+ Ultimo_Estado_Interno: EstadoInternoWithoutSubstateDTO;
1713
+ Estados: EstadoInternoWithoutSubstateDTO[];
1714
1714
  FechaLiquidacion: Date;
1715
1715
  Semana: number;
1716
1716
  Calle: string;
package/dist/index.d.ts CHANGED
@@ -1412,7 +1412,7 @@ declare class AsignacionRegularizarDTO {
1412
1412
 
1413
1413
  declare class RegularizarObraJobRequestDTO {
1414
1414
  ID_GOM: number;
1415
- ID_Periodo: number;
1415
+ CodigoPeriodo: string;
1416
1416
  Cuadrilla: CuadrillaRegularizarDTO;
1417
1417
  Valorizaciones: AsignacionRegularizarDTO[];
1418
1418
  Observaciones: string;
@@ -1709,8 +1709,8 @@ declare class ValorizacionAlemaniaDTO {
1709
1709
  Descripcion: string;
1710
1710
  Certificacion: CertificacionDTO;
1711
1711
  Produccion: ProduccionDTO;
1712
- Ultimo_Estado_Interno: EstadoInternoDTO;
1713
- Estados: EstadoInternoDTO[];
1712
+ Ultimo_Estado_Interno: EstadoInternoWithoutSubstateDTO;
1713
+ Estados: EstadoInternoWithoutSubstateDTO[];
1714
1714
  FechaLiquidacion: Date;
1715
1715
  Semana: number;
1716
1716
  Calle: string;
package/dist/index.js CHANGED
@@ -7877,7 +7877,7 @@ var import_class_transformer150 = require("class-transformer");
7877
7877
  var import_class_validator148 = require("class-validator");
7878
7878
  var RegularizarObraJobRequestDTO = class {
7879
7879
  ID_GOM;
7880
- ID_Periodo;
7880
+ CodigoPeriodo;
7881
7881
  Cuadrilla;
7882
7882
  Valorizaciones;
7883
7883
  Observaciones = "";
@@ -7890,10 +7890,9 @@ __decorateClass([
7890
7890
  ], RegularizarObraJobRequestDTO.prototype, "ID_GOM", 2);
7891
7891
  __decorateClass([
7892
7892
  (0, import_class_validator148.IsDefined)({ message: "es obligatorio" }),
7893
- (0, import_class_validator148.IsNumber)({}, { message: "debe ser un numero" }),
7894
- (0, import_class_validator148.Min)(1, { message: "el valor minimo es $constraint1" }),
7893
+ (0, import_class_validator148.IsString)({ message: "debe ser un texto" }),
7895
7894
  (0, import_class_transformer150.Expose)()
7896
- ], RegularizarObraJobRequestDTO.prototype, "ID_Periodo", 2);
7895
+ ], RegularizarObraJobRequestDTO.prototype, "CodigoPeriodo", 2);
7897
7896
  __decorateClass([
7898
7897
  (0, import_class_validator148.IsDefined)({ message: "es obligatorio" }),
7899
7898
  (0, import_class_transformer150.Type)(() => CuadrillaRegularizarDTO),
@@ -9496,7 +9495,7 @@ var ValorizacionAlemaniaDTO = class {
9496
9495
  Descripcion = "";
9497
9496
  Certificacion = new CertificacionDTO();
9498
9497
  Produccion = new ProduccionDTO();
9499
- Ultimo_Estado_Interno = new EstadoInternoDTO();
9498
+ Ultimo_Estado_Interno = new EstadoInternoWithoutSubstateDTO();
9500
9499
  Estados = [];
9501
9500
  FechaLiquidacion = /* @__PURE__ */ new Date();
9502
9501
  Semana = 0;
@@ -9566,14 +9565,14 @@ __decorateClass([
9566
9565
  (0, import_class_validator173.ValidateNested)()
9567
9566
  ], ValorizacionAlemaniaDTO.prototype, "Produccion", 2);
9568
9567
  __decorateClass([
9569
- (0, import_class_transformer175.Type)(() => EstadoInternoDTO),
9568
+ (0, import_class_transformer175.Type)(() => EstadoInternoWithoutSubstateDTO),
9570
9569
  (0, import_class_validator173.IsNotEmpty)({ message: "es requerido" }),
9571
9570
  (0, import_class_transformer175.Expose)(),
9572
9571
  (0, import_class_validator173.ValidateNested)()
9573
9572
  ], ValorizacionAlemaniaDTO.prototype, "Ultimo_Estado_Interno", 2);
9574
9573
  __decorateClass([
9575
9574
  (0, import_class_validator173.IsArray)(),
9576
- (0, import_class_transformer175.Type)(() => EstadoInternoDTO),
9575
+ (0, import_class_transformer175.Type)(() => EstadoInternoWithoutSubstateDTO),
9577
9576
  (0, import_class_validator173.IsNotEmpty)({ message: "es requerido" }),
9578
9577
  (0, import_class_transformer175.Expose)(),
9579
9578
  (0, import_class_validator173.ValidateNested)({ each: true })
package/dist/index.mjs CHANGED
@@ -7074,7 +7074,7 @@ import { Expose as Expose145, Type as Type93 } from "class-transformer";
7074
7074
  import { IsArray as IsArray44, IsDefined as IsDefined45, IsNumber as IsNumber102, IsOptional as IsOptional6, IsString as IsString118, Min as Min90, ValidateNested as ValidateNested85 } from "class-validator";
7075
7075
  var RegularizarObraJobRequestDTO = class {
7076
7076
  ID_GOM;
7077
- ID_Periodo;
7077
+ CodigoPeriodo;
7078
7078
  Cuadrilla;
7079
7079
  Valorizaciones;
7080
7080
  Observaciones = "";
@@ -7087,10 +7087,9 @@ __decorateClass([
7087
7087
  ], RegularizarObraJobRequestDTO.prototype, "ID_GOM", 2);
7088
7088
  __decorateClass([
7089
7089
  IsDefined45({ message: "es obligatorio" }),
7090
- IsNumber102({}, { message: "debe ser un numero" }),
7091
- Min90(1, { message: "el valor minimo es $constraint1" }),
7090
+ IsString118({ message: "debe ser un texto" }),
7092
7091
  Expose145()
7093
- ], RegularizarObraJobRequestDTO.prototype, "ID_Periodo", 2);
7092
+ ], RegularizarObraJobRequestDTO.prototype, "CodigoPeriodo", 2);
7094
7093
  __decorateClass([
7095
7094
  IsDefined45({ message: "es obligatorio" }),
7096
7095
  Type93(() => CuadrillaRegularizarDTO),
@@ -8693,7 +8692,7 @@ var ValorizacionAlemaniaDTO = class {
8693
8692
  Descripcion = "";
8694
8693
  Certificacion = new CertificacionDTO();
8695
8694
  Produccion = new ProduccionDTO();
8696
- Ultimo_Estado_Interno = new EstadoInternoDTO();
8695
+ Ultimo_Estado_Interno = new EstadoInternoWithoutSubstateDTO();
8697
8696
  Estados = [];
8698
8697
  FechaLiquidacion = /* @__PURE__ */ new Date();
8699
8698
  Semana = 0;
@@ -8763,14 +8762,14 @@ __decorateClass([
8763
8762
  ValidateNested102()
8764
8763
  ], ValorizacionAlemaniaDTO.prototype, "Produccion", 2);
8765
8764
  __decorateClass([
8766
- Type112(() => EstadoInternoDTO),
8765
+ Type112(() => EstadoInternoWithoutSubstateDTO),
8767
8766
  IsNotEmpty120({ message: "es requerido" }),
8768
8767
  Expose170(),
8769
8768
  ValidateNested102()
8770
8769
  ], ValorizacionAlemaniaDTO.prototype, "Ultimo_Estado_Interno", 2);
8771
8770
  __decorateClass([
8772
8771
  IsArray54(),
8773
- Type112(() => EstadoInternoDTO),
8772
+ Type112(() => EstadoInternoWithoutSubstateDTO),
8774
8773
  IsNotEmpty120({ message: "es requerido" }),
8775
8774
  Expose170(),
8776
8775
  ValidateNested102({ each: true })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-entities",
3
- "version": "1.2.343",
3
+ "version": "1.2.345",
4
4
  "description": "Desarrollo de modelos de datos SIGO",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",