sigo-entities 1.0.8 → 1.0.10

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
@@ -1579,8 +1579,8 @@ declare class ContratoObraOTDTO {
1579
1579
  declare class HistoricoDTO {
1580
1580
  Actividad: string;
1581
1581
  Estado: string;
1582
- Inicio: Date | string;
1583
- Fin: Date | string;
1582
+ Inicio: Date;
1583
+ Fin: Date;
1584
1584
  Usuario: string;
1585
1585
  Comentario: string;
1586
1586
  }
@@ -1607,13 +1607,11 @@ declare class DetalleChileObraDTO {
1607
1607
  PEP2: string;
1608
1608
  PEP1: string;
1609
1609
  GESTOR: string;
1610
- ActaFinal: ActaFinalCubicacionSharedDTO;
1611
1610
  CostoTotal: number;
1612
1611
  Historico: HistoricoDTO[];
1613
1612
  UltimoEstadoCliente: EstadoInternoWithoutSubstateDTO;
1614
1613
  EstadosCliente: EstadoInternoWithoutSubstateDTO[];
1615
1614
  codigoCalc: string;
1616
- Causacion: CausacionDTO[];
1617
1615
  }
1618
1616
 
1619
1617
  declare class FacturaGeneradaDTO {
package/dist/index.d.ts CHANGED
@@ -1579,8 +1579,8 @@ declare class ContratoObraOTDTO {
1579
1579
  declare class HistoricoDTO {
1580
1580
  Actividad: string;
1581
1581
  Estado: string;
1582
- Inicio: Date | string;
1583
- Fin: Date | string;
1582
+ Inicio: Date;
1583
+ Fin: Date;
1584
1584
  Usuario: string;
1585
1585
  Comentario: string;
1586
1586
  }
@@ -1607,13 +1607,11 @@ declare class DetalleChileObraDTO {
1607
1607
  PEP2: string;
1608
1608
  PEP1: string;
1609
1609
  GESTOR: string;
1610
- ActaFinal: ActaFinalCubicacionSharedDTO;
1611
1610
  CostoTotal: number;
1612
1611
  Historico: HistoricoDTO[];
1613
1612
  UltimoEstadoCliente: EstadoInternoWithoutSubstateDTO;
1614
1613
  EstadosCliente: EstadoInternoWithoutSubstateDTO[];
1615
1614
  codigoCalc: string;
1616
- Causacion: CausacionDTO[];
1617
1615
  }
1618
1616
 
1619
1617
  declare class FacturaGeneradaDTO {
package/dist/index.js CHANGED
@@ -559,23 +559,23 @@ var ActaFinalCubicacionSharedDTO = class {
559
559
  };
560
560
  __decorateClass([
561
561
  (0, import_class_validator5.IsString)({ message: "debe ser un texto" }),
562
- (0, import_class_validator5.MinLength)(1, { message: "debe tener al menos 1 car\xE1cter" }),
562
+ (0, import_class_validator5.MinLength)(0, { message: "debe tener al menos 0 car\xE1cter" }),
563
563
  (0, import_class_transformer5.Expose)()
564
564
  ], ActaFinalCubicacionSharedDTO.prototype, "DescripcionMO", 2);
565
565
  __decorateClass([
566
566
  (0, import_class_validator5.IsNumber)({}, { message: "debe ser un numero" }),
567
567
  (0, import_class_transformer5.Expose)(),
568
- (0, import_class_validator5.Min)(1, { message: "debe ser al menos 1" })
568
+ (0, import_class_validator5.Min)(0, { message: "debe ser al menos 0" })
569
569
  ], ActaFinalCubicacionSharedDTO.prototype, "BaremoUnitario", 2);
570
570
  __decorateClass([
571
571
  (0, import_class_validator5.IsNumber)({}, { message: "debe ser un numero" }),
572
572
  (0, import_class_transformer5.Expose)(),
573
- (0, import_class_validator5.Min)(1, { message: "debe ser al menos 1" })
573
+ (0, import_class_validator5.Min)(0, { message: "debe ser al menos 0" })
574
574
  ], ActaFinalCubicacionSharedDTO.prototype, "CantidadHP", 2);
575
575
  __decorateClass([
576
576
  (0, import_class_validator5.IsNumber)({}, { message: "debe ser un numero" }),
577
577
  (0, import_class_transformer5.Expose)(),
578
- (0, import_class_validator5.Min)(1, { message: "debe ser al menos 1" })
578
+ (0, import_class_validator5.Min)(0, { message: "debe ser al menos 0" })
579
579
  ], ActaFinalCubicacionSharedDTO.prototype, "Valor", 2);
580
580
 
581
581
  // src/shared/dto/actividades-dto.ts
@@ -8925,20 +8925,23 @@ __decorateClass([
8925
8925
  (0, import_class_transformer157.Expose)()
8926
8926
  ], HistoricoDTO.prototype, "Estado", 2);
8927
8927
  __decorateClass([
8928
- (0, import_class_validator158.ValidateIf)((o) => typeof o.Fin === "string" || o.Fin instanceof Date),
8928
+ (0, import_class_validator158.IsDate)({ message: "debe ser una fecha" }),
8929
+ (0, import_class_transformer157.Type)(() => Date),
8929
8930
  (0, import_class_transformer157.Expose)()
8930
8931
  ], HistoricoDTO.prototype, "Inicio", 2);
8931
8932
  __decorateClass([
8932
- (0, import_class_validator158.ValidateIf)((o) => typeof o.Fin === "string" || o.Fin instanceof Date),
8933
+ (0, import_class_validator158.IsDate)({ message: "debe ser una fecha" }),
8934
+ (0, import_class_transformer157.Type)(() => Date),
8933
8935
  (0, import_class_transformer157.Expose)()
8934
8936
  ], HistoricoDTO.prototype, "Fin", 2);
8935
8937
  __decorateClass([
8936
8938
  (0, import_class_validator158.IsString)({ message: "debe ser un texto" }),
8937
- (0, import_class_validator158.Length)(0, 150, { message: "debe tener entre 0 y 150 caracteres" }),
8939
+ (0, import_class_validator158.MinLength)(0, { message: "debe tener al menos 0 caracteres" }),
8938
8940
  (0, import_class_transformer157.Expose)()
8939
8941
  ], HistoricoDTO.prototype, "Usuario", 2);
8940
8942
  __decorateClass([
8941
8943
  (0, import_class_validator158.IsString)({ message: "debe ser un texto" }),
8944
+ (0, import_class_validator158.MinLength)(0, { message: "debe tener al menos 0 caracteres" }),
8942
8945
  (0, import_class_transformer157.Expose)()
8943
8946
  ], HistoricoDTO.prototype, "Comentario", 2);
8944
8947
 
@@ -8965,13 +8968,17 @@ var DetalleChileObraDTO = class {
8965
8968
  PEP2 = "";
8966
8969
  PEP1 = "";
8967
8970
  GESTOR = "";
8968
- ActaFinal = new ActaFinalCubicacionSharedDTO();
8969
8971
  CostoTotal = 0;
8970
8972
  Historico = [];
8971
8973
  UltimoEstadoCliente = new EstadoInternoWithoutSubstateDTO();
8972
8974
  EstadosCliente = [];
8973
8975
  codigoCalc = "";
8974
- Causacion = [];
8976
+ // @Type(() => CausacionDTO) // solo para colombia este es la clase base de detallechileobra
8977
+ // @IsNotEmpty({ message: 'es requerido' })
8978
+ // @Expose()
8979
+ // @IsArray()
8980
+ // @ValidateNested({ each: true })
8981
+ // Causacion: CausacionDTO[] = []
8975
8982
  };
8976
8983
  __decorateClass([
8977
8984
  (0, import_class_validator159.IsString)({ message: "debe ser un texto" }),
@@ -9083,11 +9090,6 @@ __decorateClass([
9083
9090
  (0, import_class_validator159.MinLength)(1, { message: "debe tener al menos 1 car\xE1cter" }),
9084
9091
  (0, import_class_transformer158.Expose)()
9085
9092
  ], DetalleChileObraDTO.prototype, "GESTOR", 2);
9086
- __decorateClass([
9087
- (0, import_class_transformer158.Type)(() => ActaFinalCubicacionSharedDTO),
9088
- (0, import_class_transformer158.Expose)(),
9089
- (0, import_class_validator159.ValidateNested)()
9090
- ], DetalleChileObraDTO.prototype, "ActaFinal", 2);
9091
9093
  __decorateClass([
9092
9094
  (0, import_class_validator159.IsNumber)({}, { message: "debe ser un numero" }),
9093
9095
  (0, import_class_transformer158.Expose)(),
@@ -9115,16 +9117,9 @@ __decorateClass([
9115
9117
  ], DetalleChileObraDTO.prototype, "EstadosCliente", 2);
9116
9118
  __decorateClass([
9117
9119
  (0, import_class_validator159.IsString)({ message: "debe ser un texto" }),
9118
- (0, import_class_validator159.Length)(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
9120
+ (0, import_class_validator159.Length)(1, 300, { message: "debe tener entre 1 y 300 caracteres" }),
9119
9121
  (0, import_class_transformer158.Expose)()
9120
9122
  ], DetalleChileObraDTO.prototype, "codigoCalc", 2);
9121
- __decorateClass([
9122
- (0, import_class_transformer158.Type)(() => CausacionDTO),
9123
- (0, import_class_validator159.IsNotEmpty)({ message: "es requerido" }),
9124
- (0, import_class_transformer158.Expose)(),
9125
- (0, import_class_validator159.IsArray)(),
9126
- (0, import_class_validator159.ValidateNested)({ each: true })
9127
- ], DetalleChileObraDTO.prototype, "Causacion", 2);
9128
9123
 
9129
9124
  // src/programados/procesos/obra/shared/dto/factura-generada-dto.ts
9130
9125
  var import_class_transformer159 = require("class-transformer");
@@ -9386,9 +9381,9 @@ __decorateClass([
9386
9381
  (0, import_class_transformer166.Expose)()
9387
9382
  ], UbicacionObraDTO.prototype, "Direccion", 2);
9388
9383
  __decorateClass([
9384
+ (0, import_class_transformer166.Transform)(({ value }) => value === null ? "" : value),
9389
9385
  (0, import_class_validator167.IsString)({ message: "debe ser un texto" }),
9390
- (0, import_class_validator167.IsNotEmpty)({ message: "es requerido" }),
9391
- (0, import_class_validator167.Length)(1, 300, { message: "debe tener entre 1 y 300 caracteres" }),
9386
+ (0, import_class_validator167.Length)(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
9392
9387
  (0, import_class_transformer166.Expose)()
9393
9388
  ], UbicacionObraDTO.prototype, "Localidad_Descrip", 2);
9394
9389
  __decorateClass([
@@ -9398,9 +9393,9 @@ __decorateClass([
9398
9393
  (0, import_class_validator167.ValidateNested)()
9399
9394
  ], UbicacionObraDTO.prototype, "Coordenadas", 2);
9400
9395
  __decorateClass([
9396
+ (0, import_class_transformer166.Transform)(({ value }) => value === null ? "" : value),
9401
9397
  (0, import_class_validator167.IsString)({ message: "debe ser un texto" }),
9402
- (0, import_class_validator167.IsNotEmpty)({ message: "es requerido" }),
9403
- (0, import_class_validator167.Length)(1, 300, { message: "debe tener entre 1 y 300 caracteres" }),
9398
+ (0, import_class_validator167.Length)(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
9404
9399
  (0, import_class_transformer166.Expose)()
9405
9400
  ], UbicacionObraDTO.prototype, "Municipio", 2);
9406
9401
  __decorateClass([