sigo-entities 0.0.196 → 0.0.197

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
@@ -1350,7 +1350,7 @@ declare class DetalleChileObraDTO {
1350
1350
  UltimoEstadoCliente: EstadoInternoWithoutSubstateDTO;
1351
1351
  EstadosCliente: EstadoInternoWithoutSubstateDTO[];
1352
1352
  codigoCalc: string;
1353
- Causacion: CausacionDTO;
1353
+ Causacion: CausacionDTO[];
1354
1354
  }
1355
1355
 
1356
1356
  declare class FacturaGeneradaDTO {
package/dist/index.d.ts CHANGED
@@ -1350,7 +1350,7 @@ declare class DetalleChileObraDTO {
1350
1350
  UltimoEstadoCliente: EstadoInternoWithoutSubstateDTO;
1351
1351
  EstadosCliente: EstadoInternoWithoutSubstateDTO[];
1352
1352
  codigoCalc: string;
1353
- Causacion: CausacionDTO;
1353
+ Causacion: CausacionDTO[];
1354
1354
  }
1355
1355
 
1356
1356
  declare class FacturaGeneradaDTO {
package/dist/index.js CHANGED
@@ -6962,32 +6962,32 @@ __decorateClass([
6962
6962
  __decorateClass([
6963
6963
  (0, import_class_validator119.IsString)({ message: "debe ser un texto" }),
6964
6964
  (0, import_class_validator119.IsNotEmpty)({ message: "es requerido" }),
6965
- (0, import_class_validator119.Length)(2, 25, { message: "debe tener entre 2 y 25 caracteres" }),
6965
+ (0, import_class_validator119.Length)(1, 100, { message: "debe tener entre 1 y 100 caracteres" }),
6966
6966
  (0, import_class_transformer119.Expose)()
6967
6967
  ], EstadoInternoWithoutSubstateDTO.prototype, "Descripcion", 2);
6968
6968
  __decorateClass([
6969
6969
  (0, import_class_validator119.IsString)({ message: "debe ser un texto" }),
6970
- (0, import_class_validator119.Length)(1, 50, { message: "debe tener entre 1 y 50 caracteres" }),
6970
+ (0, import_class_validator119.Length)(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
6971
6971
  (0, import_class_transformer119.Expose)()
6972
6972
  ], EstadoInternoWithoutSubstateDTO.prototype, "Icono", 2);
6973
6973
  __decorateClass([
6974
6974
  (0, import_class_validator119.IsString)({ message: "debe ser un texto" }),
6975
- (0, import_class_validator119.Length)(1, 50, { message: "debe tener entre 1 y 50 caracteres" }),
6975
+ (0, import_class_validator119.Length)(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
6976
6976
  (0, import_class_transformer119.Expose)()
6977
6977
  ], EstadoInternoWithoutSubstateDTO.prototype, "Color", 2);
6978
6978
  __decorateClass([
6979
- (0, import_class_validator119.IsString)({ message: "debe ser un texto" }),
6980
- (0, import_class_validator119.Length)(1, 50, { message: "debe tener entre 1 y 50 caracteres" }),
6979
+ (0, import_class_validator119.ValidateIf)((o) => typeof o.Fin === "string" || typeof o.Fin === "number"),
6980
+ (0, import_class_validator119.Length)(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
6981
6981
  (0, import_class_transformer119.Expose)()
6982
6982
  ], EstadoInternoWithoutSubstateDTO.prototype, "Orden", 2);
6983
6983
  __decorateClass([
6984
6984
  (0, import_class_validator119.IsString)({ message: "debe ser un texto" }),
6985
- (0, import_class_validator119.Length)(1, 50, { message: "debe tener entre 1 y 50 caracteres" }),
6985
+ (0, import_class_validator119.Length)(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
6986
6986
  (0, import_class_transformer119.Expose)()
6987
6987
  ], EstadoInternoWithoutSubstateDTO.prototype, "ColorFondo", 2);
6988
6988
  __decorateClass([
6989
6989
  (0, import_class_validator119.IsString)({ message: "debe ser un texto" }),
6990
- (0, import_class_validator119.Length)(1, 50, { message: "debe tener entre 1 y 50 caracteres" }),
6990
+ (0, import_class_validator119.Length)(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
6991
6991
  (0, import_class_transformer119.Expose)()
6992
6992
  ], EstadoInternoWithoutSubstateDTO.prototype, "Tipo", 2);
6993
6993
  __decorateClass([
@@ -7020,7 +7020,7 @@ var DetalleChileObraDTO = class {
7020
7020
  UltimoEstadoCliente = new EstadoInternoWithoutSubstateDTO();
7021
7021
  EstadosCliente = [];
7022
7022
  codigoCalc = "";
7023
- Causacion = new CausacionDTO();
7023
+ Causacion = [];
7024
7024
  };
7025
7025
  __decorateClass([
7026
7026
  (0, import_class_validator120.IsString)({ message: "debe ser un texto" }),
@@ -7143,8 +7143,8 @@ __decorateClass([
7143
7143
  __decorateClass([
7144
7144
  (0, import_class_transformer120.Type)(() => CausacionDTO),
7145
7145
  (0, import_class_validator120.IsNotEmpty)({ message: "es requerido" }),
7146
- (0, import_class_transformer120.Expose)(),
7147
- (0, import_class_validator120.ValidateNested)()
7146
+ (0, import_class_validator120.IsArray)(),
7147
+ (0, import_class_validator120.ValidateNested)({ each: true })
7148
7148
  ], DetalleChileObraDTO.prototype, "Causacion", 2);
7149
7149
 
7150
7150
  // src/programados/procesos/obra/shared/dto/factura-generada-dto.ts
package/dist/index.mjs CHANGED
@@ -6697,7 +6697,7 @@ __decorateClass([
6697
6697
 
6698
6698
  // src/programados/procesos/obra/shared/dto/estado-Interno-dto.ts
6699
6699
  import { Expose as Expose118, Type as Type74 } from "class-transformer";
6700
- import { IsDate as IsDate40, IsNotEmpty as IsNotEmpty117, IsNumber as IsNumber81, IsString as IsString99, Length as Length85, ValidateNested as ValidateNested62 } from "class-validator";
6700
+ import { IsDate as IsDate40, IsNotEmpty as IsNotEmpty117, IsNumber as IsNumber81, IsString as IsString99, Length as Length85, ValidateIf as ValidateIf5, ValidateNested as ValidateNested62 } from "class-validator";
6701
6701
  var EstadoInternoWithoutSubstateDTO = class {
6702
6702
  ID_EstadoInterno = 0;
6703
6703
  Fecha = /* @__PURE__ */ new Date();
@@ -6722,32 +6722,32 @@ __decorateClass([
6722
6722
  __decorateClass([
6723
6723
  IsString99({ message: "debe ser un texto" }),
6724
6724
  IsNotEmpty117({ message: "es requerido" }),
6725
- Length85(2, 25, { message: "debe tener entre 2 y 25 caracteres" }),
6725
+ Length85(1, 100, { message: "debe tener entre 1 y 100 caracteres" }),
6726
6726
  Expose118()
6727
6727
  ], EstadoInternoWithoutSubstateDTO.prototype, "Descripcion", 2);
6728
6728
  __decorateClass([
6729
6729
  IsString99({ message: "debe ser un texto" }),
6730
- Length85(1, 50, { message: "debe tener entre 1 y 50 caracteres" }),
6730
+ Length85(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
6731
6731
  Expose118()
6732
6732
  ], EstadoInternoWithoutSubstateDTO.prototype, "Icono", 2);
6733
6733
  __decorateClass([
6734
6734
  IsString99({ message: "debe ser un texto" }),
6735
- Length85(1, 50, { message: "debe tener entre 1 y 50 caracteres" }),
6735
+ Length85(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
6736
6736
  Expose118()
6737
6737
  ], EstadoInternoWithoutSubstateDTO.prototype, "Color", 2);
6738
6738
  __decorateClass([
6739
- IsString99({ message: "debe ser un texto" }),
6740
- Length85(1, 50, { message: "debe tener entre 1 y 50 caracteres" }),
6739
+ ValidateIf5((o) => typeof o.Fin === "string" || typeof o.Fin === "number"),
6740
+ Length85(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
6741
6741
  Expose118()
6742
6742
  ], EstadoInternoWithoutSubstateDTO.prototype, "Orden", 2);
6743
6743
  __decorateClass([
6744
6744
  IsString99({ message: "debe ser un texto" }),
6745
- Length85(1, 50, { message: "debe tener entre 1 y 50 caracteres" }),
6745
+ Length85(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
6746
6746
  Expose118()
6747
6747
  ], EstadoInternoWithoutSubstateDTO.prototype, "ColorFondo", 2);
6748
6748
  __decorateClass([
6749
6749
  IsString99({ message: "debe ser un texto" }),
6750
- Length85(1, 50, { message: "debe tener entre 1 y 50 caracteres" }),
6750
+ Length85(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
6751
6751
  Expose118()
6752
6752
  ], EstadoInternoWithoutSubstateDTO.prototype, "Tipo", 2);
6753
6753
  __decorateClass([
@@ -6780,7 +6780,7 @@ var DetalleChileObraDTO = class {
6780
6780
  UltimoEstadoCliente = new EstadoInternoWithoutSubstateDTO();
6781
6781
  EstadosCliente = [];
6782
6782
  codigoCalc = "";
6783
- Causacion = new CausacionDTO();
6783
+ Causacion = [];
6784
6784
  };
6785
6785
  __decorateClass([
6786
6786
  IsString100({ message: "debe ser un texto" }),
@@ -6903,8 +6903,8 @@ __decorateClass([
6903
6903
  __decorateClass([
6904
6904
  Type75(() => CausacionDTO),
6905
6905
  IsNotEmpty118({ message: "es requerido" }),
6906
- Expose119(),
6907
- ValidateNested63()
6906
+ IsArray37(),
6907
+ ValidateNested63({ each: true })
6908
6908
  ], DetalleChileObraDTO.prototype, "Causacion", 2);
6909
6909
 
6910
6910
  // src/programados/procesos/obra/shared/dto/factura-generada-dto.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-entities",
3
- "version": "0.0.196",
3
+ "version": "0.0.197",
4
4
  "description": "Desarrollo de modelos de datos SIGO",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",