sigo-entities 0.0.196 → 0.0.198
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 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -11
- package/dist/index.mjs +11 -12
- package/package.json +1 -1
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
|
@@ -345,7 +345,6 @@ function convertStringsToDates(obj) {
|
|
|
345
345
|
(str === isoDate.toISOString() || simpleDateRegex.test(str) || dateTimeRegex.test(str));
|
|
346
346
|
};
|
|
347
347
|
if (typeof obj === "string" && isValidDate(obj)) {
|
|
348
|
-
console.log(`Convirtiendo: ${obj} -> ${new Date(obj)}`);
|
|
349
348
|
return new Date(obj);
|
|
350
349
|
}
|
|
351
350
|
if (Array.isArray(obj)) {
|
|
@@ -6962,32 +6961,32 @@ __decorateClass([
|
|
|
6962
6961
|
__decorateClass([
|
|
6963
6962
|
(0, import_class_validator119.IsString)({ message: "debe ser un texto" }),
|
|
6964
6963
|
(0, import_class_validator119.IsNotEmpty)({ message: "es requerido" }),
|
|
6965
|
-
(0, import_class_validator119.Length)(
|
|
6964
|
+
(0, import_class_validator119.Length)(1, 100, { message: "debe tener entre 1 y 100 caracteres" }),
|
|
6966
6965
|
(0, import_class_transformer119.Expose)()
|
|
6967
6966
|
], EstadoInternoWithoutSubstateDTO.prototype, "Descripcion", 2);
|
|
6968
6967
|
__decorateClass([
|
|
6969
6968
|
(0, import_class_validator119.IsString)({ message: "debe ser un texto" }),
|
|
6970
|
-
(0, import_class_validator119.Length)(
|
|
6969
|
+
(0, import_class_validator119.Length)(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
6971
6970
|
(0, import_class_transformer119.Expose)()
|
|
6972
6971
|
], EstadoInternoWithoutSubstateDTO.prototype, "Icono", 2);
|
|
6973
6972
|
__decorateClass([
|
|
6974
6973
|
(0, import_class_validator119.IsString)({ message: "debe ser un texto" }),
|
|
6975
|
-
(0, import_class_validator119.Length)(
|
|
6974
|
+
(0, import_class_validator119.Length)(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
6976
6975
|
(0, import_class_transformer119.Expose)()
|
|
6977
6976
|
], EstadoInternoWithoutSubstateDTO.prototype, "Color", 2);
|
|
6978
6977
|
__decorateClass([
|
|
6979
|
-
(0, import_class_validator119.
|
|
6980
|
-
(0, import_class_validator119.Length)(
|
|
6978
|
+
(0, import_class_validator119.ValidateIf)((o) => typeof o.Fin === "string" || typeof o.Fin === "number"),
|
|
6979
|
+
(0, import_class_validator119.Length)(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
6981
6980
|
(0, import_class_transformer119.Expose)()
|
|
6982
6981
|
], EstadoInternoWithoutSubstateDTO.prototype, "Orden", 2);
|
|
6983
6982
|
__decorateClass([
|
|
6984
6983
|
(0, import_class_validator119.IsString)({ message: "debe ser un texto" }),
|
|
6985
|
-
(0, import_class_validator119.Length)(
|
|
6984
|
+
(0, import_class_validator119.Length)(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
6986
6985
|
(0, import_class_transformer119.Expose)()
|
|
6987
6986
|
], EstadoInternoWithoutSubstateDTO.prototype, "ColorFondo", 2);
|
|
6988
6987
|
__decorateClass([
|
|
6989
6988
|
(0, import_class_validator119.IsString)({ message: "debe ser un texto" }),
|
|
6990
|
-
(0, import_class_validator119.Length)(
|
|
6989
|
+
(0, import_class_validator119.Length)(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
6991
6990
|
(0, import_class_transformer119.Expose)()
|
|
6992
6991
|
], EstadoInternoWithoutSubstateDTO.prototype, "Tipo", 2);
|
|
6993
6992
|
__decorateClass([
|
|
@@ -7020,7 +7019,7 @@ var DetalleChileObraDTO = class {
|
|
|
7020
7019
|
UltimoEstadoCliente = new EstadoInternoWithoutSubstateDTO();
|
|
7021
7020
|
EstadosCliente = [];
|
|
7022
7021
|
codigoCalc = "";
|
|
7023
|
-
Causacion =
|
|
7022
|
+
Causacion = [];
|
|
7024
7023
|
};
|
|
7025
7024
|
__decorateClass([
|
|
7026
7025
|
(0, import_class_validator120.IsString)({ message: "debe ser un texto" }),
|
|
@@ -7143,8 +7142,8 @@ __decorateClass([
|
|
|
7143
7142
|
__decorateClass([
|
|
7144
7143
|
(0, import_class_transformer120.Type)(() => CausacionDTO),
|
|
7145
7144
|
(0, import_class_validator120.IsNotEmpty)({ message: "es requerido" }),
|
|
7146
|
-
(0,
|
|
7147
|
-
(0, import_class_validator120.ValidateNested)()
|
|
7145
|
+
(0, import_class_validator120.IsArray)(),
|
|
7146
|
+
(0, import_class_validator120.ValidateNested)({ each: true })
|
|
7148
7147
|
], DetalleChileObraDTO.prototype, "Causacion", 2);
|
|
7149
7148
|
|
|
7150
7149
|
// src/programados/procesos/obra/shared/dto/factura-generada-dto.ts
|
package/dist/index.mjs
CHANGED
|
@@ -105,7 +105,6 @@ function convertStringsToDates(obj) {
|
|
|
105
105
|
(str === isoDate.toISOString() || simpleDateRegex.test(str) || dateTimeRegex.test(str));
|
|
106
106
|
};
|
|
107
107
|
if (typeof obj === "string" && isValidDate(obj)) {
|
|
108
|
-
console.log(`Convirtiendo: ${obj} -> ${new Date(obj)}`);
|
|
109
108
|
return new Date(obj);
|
|
110
109
|
}
|
|
111
110
|
if (Array.isArray(obj)) {
|
|
@@ -6697,7 +6696,7 @@ __decorateClass([
|
|
|
6697
6696
|
|
|
6698
6697
|
// src/programados/procesos/obra/shared/dto/estado-Interno-dto.ts
|
|
6699
6698
|
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";
|
|
6699
|
+
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
6700
|
var EstadoInternoWithoutSubstateDTO = class {
|
|
6702
6701
|
ID_EstadoInterno = 0;
|
|
6703
6702
|
Fecha = /* @__PURE__ */ new Date();
|
|
@@ -6722,32 +6721,32 @@ __decorateClass([
|
|
|
6722
6721
|
__decorateClass([
|
|
6723
6722
|
IsString99({ message: "debe ser un texto" }),
|
|
6724
6723
|
IsNotEmpty117({ message: "es requerido" }),
|
|
6725
|
-
Length85(
|
|
6724
|
+
Length85(1, 100, { message: "debe tener entre 1 y 100 caracteres" }),
|
|
6726
6725
|
Expose118()
|
|
6727
6726
|
], EstadoInternoWithoutSubstateDTO.prototype, "Descripcion", 2);
|
|
6728
6727
|
__decorateClass([
|
|
6729
6728
|
IsString99({ message: "debe ser un texto" }),
|
|
6730
|
-
Length85(
|
|
6729
|
+
Length85(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
6731
6730
|
Expose118()
|
|
6732
6731
|
], EstadoInternoWithoutSubstateDTO.prototype, "Icono", 2);
|
|
6733
6732
|
__decorateClass([
|
|
6734
6733
|
IsString99({ message: "debe ser un texto" }),
|
|
6735
|
-
Length85(
|
|
6734
|
+
Length85(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
6736
6735
|
Expose118()
|
|
6737
6736
|
], EstadoInternoWithoutSubstateDTO.prototype, "Color", 2);
|
|
6738
6737
|
__decorateClass([
|
|
6739
|
-
|
|
6740
|
-
Length85(
|
|
6738
|
+
ValidateIf5((o) => typeof o.Fin === "string" || typeof o.Fin === "number"),
|
|
6739
|
+
Length85(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
6741
6740
|
Expose118()
|
|
6742
6741
|
], EstadoInternoWithoutSubstateDTO.prototype, "Orden", 2);
|
|
6743
6742
|
__decorateClass([
|
|
6744
6743
|
IsString99({ message: "debe ser un texto" }),
|
|
6745
|
-
Length85(
|
|
6744
|
+
Length85(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
6746
6745
|
Expose118()
|
|
6747
6746
|
], EstadoInternoWithoutSubstateDTO.prototype, "ColorFondo", 2);
|
|
6748
6747
|
__decorateClass([
|
|
6749
6748
|
IsString99({ message: "debe ser un texto" }),
|
|
6750
|
-
Length85(
|
|
6749
|
+
Length85(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
6751
6750
|
Expose118()
|
|
6752
6751
|
], EstadoInternoWithoutSubstateDTO.prototype, "Tipo", 2);
|
|
6753
6752
|
__decorateClass([
|
|
@@ -6780,7 +6779,7 @@ var DetalleChileObraDTO = class {
|
|
|
6780
6779
|
UltimoEstadoCliente = new EstadoInternoWithoutSubstateDTO();
|
|
6781
6780
|
EstadosCliente = [];
|
|
6782
6781
|
codigoCalc = "";
|
|
6783
|
-
Causacion =
|
|
6782
|
+
Causacion = [];
|
|
6784
6783
|
};
|
|
6785
6784
|
__decorateClass([
|
|
6786
6785
|
IsString100({ message: "debe ser un texto" }),
|
|
@@ -6903,8 +6902,8 @@ __decorateClass([
|
|
|
6903
6902
|
__decorateClass([
|
|
6904
6903
|
Type75(() => CausacionDTO),
|
|
6905
6904
|
IsNotEmpty118({ message: "es requerido" }),
|
|
6906
|
-
|
|
6907
|
-
ValidateNested63()
|
|
6905
|
+
IsArray37(),
|
|
6906
|
+
ValidateNested63({ each: true })
|
|
6908
6907
|
], DetalleChileObraDTO.prototype, "Causacion", 2);
|
|
6909
6908
|
|
|
6910
6909
|
// src/programados/procesos/obra/shared/dto/factura-generada-dto.ts
|