sigo-entities 1.1.6 → 1.1.7
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 +5 -4
- package/dist/index.mjs +87 -86
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3852,7 +3852,7 @@ var EstadoInternoENTITY = class {
|
|
|
3852
3852
|
Descripcion = "";
|
|
3853
3853
|
Icono = "";
|
|
3854
3854
|
Color = "";
|
|
3855
|
-
Orden =
|
|
3855
|
+
Orden = 0;
|
|
3856
3856
|
ColorFondo = "";
|
|
3857
3857
|
Tipo = "";
|
|
3858
3858
|
Observacion = "";
|
|
@@ -3896,10 +3896,11 @@ __decorateClass([
|
|
|
3896
3896
|
(0, import_class_transformer85.Expose)()
|
|
3897
3897
|
], EstadoInternoENTITY.prototype, "Color", 2);
|
|
3898
3898
|
__decorateClass([
|
|
3899
|
-
(0, import_class_validator86.
|
|
3899
|
+
(0, import_class_validator86.IsNumber)({}, { message: "debe ser un numero" }),
|
|
3900
3900
|
(0, import_class_validator86.IsNotEmpty)({ message: "es requerido" }),
|
|
3901
|
-
(0,
|
|
3902
|
-
(0,
|
|
3901
|
+
(0, import_class_transformer85.Expose)(),
|
|
3902
|
+
(0, import_class_validator86.Min)(1),
|
|
3903
|
+
(0, import_class_transformer85.Transform)(({ value }) => Number(value))
|
|
3903
3904
|
], EstadoInternoENTITY.prototype, "Orden", 2);
|
|
3904
3905
|
__decorateClass([
|
|
3905
3906
|
(0, import_class_validator86.IsString)({ message: "debe ser un texto" }),
|
package/dist/index.mjs
CHANGED
|
@@ -3412,7 +3412,7 @@ __decorateClass([
|
|
|
3412
3412
|
|
|
3413
3413
|
// src/administracion/EstadoInterno/shared/index.ts
|
|
3414
3414
|
import { IsArray as IsArray19, IsDate as IsDate22, IsNotEmpty as IsNotEmpty70, IsNumber as IsNumber53, IsString as IsString68, Length as Length60, Min as Min44, ValidateNested as ValidateNested42 } from "class-validator";
|
|
3415
|
-
import { Expose as Expose83, Type as Type47 } from "class-transformer";
|
|
3415
|
+
import { Expose as Expose83, Transform as Transform11, Type as Type47 } from "class-transformer";
|
|
3416
3416
|
var EstadoInternoENTITY = class {
|
|
3417
3417
|
ID_EstadoInterno = 0;
|
|
3418
3418
|
Estado = new EstadoDTO();
|
|
@@ -3420,7 +3420,7 @@ var EstadoInternoENTITY = class {
|
|
|
3420
3420
|
Descripcion = "";
|
|
3421
3421
|
Icono = "";
|
|
3422
3422
|
Color = "";
|
|
3423
|
-
Orden =
|
|
3423
|
+
Orden = 0;
|
|
3424
3424
|
ColorFondo = "";
|
|
3425
3425
|
Tipo = "";
|
|
3426
3426
|
Observacion = "";
|
|
@@ -3464,10 +3464,11 @@ __decorateClass([
|
|
|
3464
3464
|
Expose83()
|
|
3465
3465
|
], EstadoInternoENTITY.prototype, "Color", 2);
|
|
3466
3466
|
__decorateClass([
|
|
3467
|
-
|
|
3467
|
+
IsNumber53({}, { message: "debe ser un numero" }),
|
|
3468
3468
|
IsNotEmpty70({ message: "es requerido" }),
|
|
3469
|
-
|
|
3470
|
-
|
|
3469
|
+
Expose83(),
|
|
3470
|
+
Min44(1),
|
|
3471
|
+
Transform11(({ value }) => Number(value))
|
|
3471
3472
|
], EstadoInternoENTITY.prototype, "Orden", 2);
|
|
3472
3473
|
__decorateClass([
|
|
3473
3474
|
IsString68({ message: "debe ser un texto" }),
|
|
@@ -3708,20 +3709,20 @@ __decorateClass([
|
|
|
3708
3709
|
], UnidadObraMaterialENTITY.prototype, "Estado", 2);
|
|
3709
3710
|
|
|
3710
3711
|
// src/administracion/zona trabajo/shared/dto/lat-lng-dto.ts
|
|
3711
|
-
import { Expose as Expose87, Transform as
|
|
3712
|
+
import { Expose as Expose87, Transform as Transform12 } from "class-transformer";
|
|
3712
3713
|
import { IsNotEmpty as IsNotEmpty74, IsNumber as IsNumber57 } from "class-validator";
|
|
3713
3714
|
var latLngDTO = class {
|
|
3714
3715
|
lat = 0;
|
|
3715
3716
|
lng = 0;
|
|
3716
3717
|
};
|
|
3717
3718
|
__decorateClass([
|
|
3718
|
-
|
|
3719
|
+
Transform12(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
3719
3720
|
IsNumber57({}, { message: "debe ser un numero" }),
|
|
3720
3721
|
IsNotEmpty74({ message: "es requerido" }),
|
|
3721
3722
|
Expose87()
|
|
3722
3723
|
], latLngDTO.prototype, "lat", 2);
|
|
3723
3724
|
__decorateClass([
|
|
3724
|
-
|
|
3725
|
+
Transform12(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
3725
3726
|
IsNumber57({}, { message: "debe ser un numero" }),
|
|
3726
3727
|
IsNotEmpty74({ message: "es requerido" }),
|
|
3727
3728
|
Expose87()
|
|
@@ -4214,7 +4215,7 @@ __decorateClass([
|
|
|
4214
4215
|
], DocumentacionPEXENTITY.prototype, "Estado", 2);
|
|
4215
4216
|
|
|
4216
4217
|
// src/administracion/PrecioAgencia_mam_onnet/shared/index.ts
|
|
4217
|
-
import { Expose as Expose95, Type as Type57, Transform as
|
|
4218
|
+
import { Expose as Expose95, Type as Type57, Transform as Transform13 } from "class-transformer";
|
|
4218
4219
|
import { IsNotEmpty as IsNotEmpty82, IsNumber as IsNumber64, IsString as IsString79, Length as Length69, Min as Min54, ValidateNested as ValidateNested52 } from "class-validator";
|
|
4219
4220
|
var PrecioAgencia_mam_onnetENTITY = class {
|
|
4220
4221
|
ID_PrecioAgencia_mam_onnet = 0;
|
|
@@ -4253,43 +4254,43 @@ __decorateClass([
|
|
|
4253
4254
|
Expose95()
|
|
4254
4255
|
], PrecioAgencia_mam_onnetENTITY.prototype, "Region", 2);
|
|
4255
4256
|
__decorateClass([
|
|
4256
|
-
|
|
4257
|
+
Transform13(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4257
4258
|
IsNumber64({}, { message: "debe ser un numero" }),
|
|
4258
4259
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4259
4260
|
Expose95()
|
|
4260
4261
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaCritica", 2);
|
|
4261
4262
|
__decorateClass([
|
|
4262
|
-
|
|
4263
|
+
Transform13(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4263
4264
|
IsNumber64({}, { message: "debe ser un numero" }),
|
|
4264
4265
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4265
4266
|
Expose95()
|
|
4266
4267
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaStandar_C_32", 2);
|
|
4267
4268
|
__decorateClass([
|
|
4268
|
-
|
|
4269
|
+
Transform13(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4269
4270
|
IsNumber64({}, { message: "debe ser un numero" }),
|
|
4270
4271
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4271
4272
|
Expose95()
|
|
4272
4273
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaStandar_C_16", 2);
|
|
4273
4274
|
__decorateClass([
|
|
4274
|
-
|
|
4275
|
+
Transform13(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4275
4276
|
IsNumber64({}, { message: "debe ser un numero" }),
|
|
4276
4277
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4277
4278
|
Expose95()
|
|
4278
4279
|
], PrecioAgencia_mam_onnetENTITY.prototype, "MasivaStandar_C_8", 2);
|
|
4279
4280
|
__decorateClass([
|
|
4280
|
-
|
|
4281
|
+
Transform13(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4281
4282
|
IsNumber64({}, { message: "debe ser un numero" }),
|
|
4282
4283
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4283
4284
|
Expose95()
|
|
4284
4285
|
], PrecioAgencia_mam_onnetENTITY.prototype, "QuiebreStandar", 2);
|
|
4285
4286
|
__decorateClass([
|
|
4286
|
-
|
|
4287
|
+
Transform13(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4287
4288
|
IsNumber64({}, { message: "debe ser un numero" }),
|
|
4288
4289
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4289
4290
|
Expose95()
|
|
4290
4291
|
], PrecioAgencia_mam_onnetENTITY.prototype, "CTO_Encontrado_OK", 2);
|
|
4291
4292
|
__decorateClass([
|
|
4292
|
-
|
|
4293
|
+
Transform13(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
4293
4294
|
IsNumber64({}, { message: "debe ser un numero" }),
|
|
4294
4295
|
IsNotEmpty82({ message: "es requerido" }),
|
|
4295
4296
|
Expose95()
|
|
@@ -5454,7 +5455,7 @@ __decorateClass([
|
|
|
5454
5455
|
], ProduccionDTO.prototype, "CentroCostos", 2);
|
|
5455
5456
|
|
|
5456
5457
|
// src/programados/procesos/trabajo/shared/dto/detalle-chile-dto.ts
|
|
5457
|
-
import { Expose as Expose114, Transform as
|
|
5458
|
+
import { Expose as Expose114, Transform as Transform14, Type as Type73 } from "class-transformer";
|
|
5458
5459
|
import { IsDefined as IsDefined17, IsNotEmpty as IsNotEmpty95, IsNumber as IsNumber80, IsString as IsString92, Length as Length71, Min as Min67, MinLength as MinLength14, ValidateNested as ValidateNested65 } from "class-validator";
|
|
5459
5460
|
var DetalleChileDTO = class {
|
|
5460
5461
|
Codigo = "";
|
|
@@ -5611,7 +5612,7 @@ __decorateClass([
|
|
|
5611
5612
|
], DetalleChileDTO.prototype, "CanUOApr", 2);
|
|
5612
5613
|
__decorateClass([
|
|
5613
5614
|
IsDefined17({ message: "es requerido" }),
|
|
5614
|
-
|
|
5615
|
+
Transform14(({ value }) => {
|
|
5615
5616
|
const num = Number(value);
|
|
5616
5617
|
return isNaN(num) ? value : num;
|
|
5617
5618
|
}),
|
|
@@ -5749,7 +5750,7 @@ __decorateClass([
|
|
|
5749
5750
|
], HomePassDTO.prototype, "HouseNumbreComplement", 2);
|
|
5750
5751
|
|
|
5751
5752
|
// src/programados/procesos/trabajo/shared/dto/materiales-dto.ts
|
|
5752
|
-
import { Expose as Expose118, Transform as
|
|
5753
|
+
import { Expose as Expose118, Transform as Transform15, Type as Type75 } from "class-transformer";
|
|
5753
5754
|
import { IsNotEmpty as IsNotEmpty99, IsNumber as IsNumber82, IsString as IsString96, Length as Length74, MinLength as MinLength17, ValidateNested as ValidateNested67 } from "class-validator";
|
|
5754
5755
|
var MaterialesDTO = class {
|
|
5755
5756
|
Codigo = "";
|
|
@@ -5773,7 +5774,7 @@ __decorateClass([
|
|
|
5773
5774
|
Expose118()
|
|
5774
5775
|
], MaterialesDTO.prototype, "Codigo", 2);
|
|
5775
5776
|
__decorateClass([
|
|
5776
|
-
|
|
5777
|
+
Transform15(({ value }) => value === void 0 ? "" : value),
|
|
5777
5778
|
IsString96({ message: "debe ser un texto" }),
|
|
5778
5779
|
MinLength17(0, { message: "debe tener al menos 0 caracteres" }),
|
|
5779
5780
|
Expose118()
|
|
@@ -6001,7 +6002,7 @@ __decorateClass([
|
|
|
6001
6002
|
], TurnoDTO.prototype, "Hora_Inicio", 2);
|
|
6002
6003
|
|
|
6003
6004
|
// src/programados/procesos/trabajo/shared/dto/ubicacion-dto.ts
|
|
6004
|
-
import { Expose as Expose123, Transform as
|
|
6005
|
+
import { Expose as Expose123, Transform as Transform16, Type as Type77 } from "class-transformer";
|
|
6005
6006
|
import { IsNotEmpty as IsNotEmpty103, IsNumber as IsNumber87, IsString as IsString100, Length as Length77, MinLength as MinLength19, ValidateNested as ValidateNested69 } from "class-validator";
|
|
6006
6007
|
var UbicacionDTO = class {
|
|
6007
6008
|
ID_Direccion = 0;
|
|
@@ -6024,7 +6025,7 @@ __decorateClass([
|
|
|
6024
6025
|
Expose123()
|
|
6025
6026
|
], UbicacionDTO.prototype, "Direccion", 2);
|
|
6026
6027
|
__decorateClass([
|
|
6027
|
-
|
|
6028
|
+
Transform16(({ value }) => value === null ? "" : value),
|
|
6028
6029
|
IsString100({ message: "debe ser un texto" }),
|
|
6029
6030
|
MinLength19(0, { message: "debe tener entre como m\xEDnimo 0 caracteres" }),
|
|
6030
6031
|
Expose123()
|
|
@@ -6036,7 +6037,7 @@ __decorateClass([
|
|
|
6036
6037
|
ValidateNested69()
|
|
6037
6038
|
], UbicacionDTO.prototype, "Coordenadas", 2);
|
|
6038
6039
|
__decorateClass([
|
|
6039
|
-
|
|
6040
|
+
Transform16(({ value }) => value === null ? "" : value),
|
|
6040
6041
|
IsString100({ message: "debe ser un texto" }),
|
|
6041
6042
|
MinLength19(0, { message: "debe tener entre como m\xEDnimo 0 caracteres" }),
|
|
6042
6043
|
Expose123()
|
|
@@ -10204,7 +10205,7 @@ __decorateClass([
|
|
|
10204
10205
|
], TotalGeneralObraDTO.prototype, "ResumenAvance", 2);
|
|
10205
10206
|
|
|
10206
10207
|
// src/programados/procesos/obra/shared/dto/ubicacion-dto.ts
|
|
10207
|
-
import { Expose as Expose188, Transform as
|
|
10208
|
+
import { Expose as Expose188, Transform as Transform17, Type as Type127 } from "class-transformer";
|
|
10208
10209
|
import { IsNotEmpty as IsNotEmpty158, IsString as IsString148, Length as Length113, ValidateNested as ValidateNested117 } from "class-validator";
|
|
10209
10210
|
var UbicacionObraDTO = class {
|
|
10210
10211
|
Direccion = "";
|
|
@@ -10221,7 +10222,7 @@ __decorateClass([
|
|
|
10221
10222
|
Expose188()
|
|
10222
10223
|
], UbicacionObraDTO.prototype, "Direccion", 2);
|
|
10223
10224
|
__decorateClass([
|
|
10224
|
-
|
|
10225
|
+
Transform17(({ value }) => value === null ? "" : value),
|
|
10225
10226
|
IsString148({ message: "debe ser un texto" }),
|
|
10226
10227
|
Length113(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
10227
10228
|
Expose188()
|
|
@@ -10233,7 +10234,7 @@ __decorateClass([
|
|
|
10233
10234
|
ValidateNested117()
|
|
10234
10235
|
], UbicacionObraDTO.prototype, "Coordenadas", 2);
|
|
10235
10236
|
__decorateClass([
|
|
10236
|
-
|
|
10237
|
+
Transform17(({ value }) => value === null ? "" : value),
|
|
10237
10238
|
IsString148({ message: "debe ser un texto" }),
|
|
10238
10239
|
Length113(0, 300, { message: "debe tener entre 0 y 300 caracteres" }),
|
|
10239
10240
|
Expose188()
|
|
@@ -11963,11 +11964,11 @@ __decorateClass([
|
|
|
11963
11964
|
], GomENTITY.prototype, "Anexos", 2);
|
|
11964
11965
|
|
|
11965
11966
|
// src/programados/procesos/cubicacion/shared/index.ts
|
|
11966
|
-
import { Expose as Expose217, Transform as
|
|
11967
|
+
import { Expose as Expose217, Transform as Transform20, Type as Type146 } from "class-transformer";
|
|
11967
11968
|
import { IsArray as IsArray77, IsDate as IsDate57, IsEnum as IsEnum3, IsNumber as IsNumber153, IsString as IsString170, Min as Min119, MinLength as MinLength30, ValidateNested as ValidateNested131 } from "class-validator";
|
|
11968
11969
|
|
|
11969
11970
|
// src/programados/procesos/cubicacion/shared/dto/cabecera-cubicaje-dto.ts
|
|
11970
|
-
import { Expose as Expose215, Transform as
|
|
11971
|
+
import { Expose as Expose215, Transform as Transform18, Type as Type145 } from "class-transformer";
|
|
11971
11972
|
import { IsDate as IsDate56, IsNumber as IsNumber151, IsString as IsString168, Min as Min117, MinLength as MinLength28 } from "class-validator";
|
|
11972
11973
|
var CabeceraCubicajeDTO = class {
|
|
11973
11974
|
codigoCalc = "";
|
|
@@ -12010,13 +12011,13 @@ __decorateClass([
|
|
|
12010
12011
|
Expose215()
|
|
12011
12012
|
], CabeceraCubicajeDTO.prototype, "nombre", 2);
|
|
12012
12013
|
__decorateClass([
|
|
12013
|
-
|
|
12014
|
+
Transform18(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
12014
12015
|
IsString168({ message: "debe ser un texto" }),
|
|
12015
12016
|
MinLength28(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
12016
12017
|
Expose215()
|
|
12017
12018
|
], CabeceraCubicajeDTO.prototype, "contrato", 2);
|
|
12018
12019
|
__decorateClass([
|
|
12019
|
-
|
|
12020
|
+
Transform18(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
12020
12021
|
IsString168({ message: "debe ser un texto" }),
|
|
12021
12022
|
MinLength28(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
12022
12023
|
Expose215()
|
|
@@ -12027,7 +12028,7 @@ __decorateClass([
|
|
|
12027
12028
|
Expose215()
|
|
12028
12029
|
], CabeceraCubicajeDTO.prototype, "numoe", 2);
|
|
12029
12030
|
__decorateClass([
|
|
12030
|
-
|
|
12031
|
+
Transform18(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
12031
12032
|
IsString168({ message: "debe ser un texto" }),
|
|
12032
12033
|
MinLength28(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
12033
12034
|
Expose215()
|
|
@@ -12114,7 +12115,7 @@ __decorateClass([
|
|
|
12114
12115
|
], CabeceraCubicajeDTO.prototype, "CostoTotal", 2);
|
|
12115
12116
|
|
|
12116
12117
|
// src/programados/procesos/cubicacion/shared/dto/detalle-cubicaje-dto.ts
|
|
12117
|
-
import { Expose as Expose216, Transform as
|
|
12118
|
+
import { Expose as Expose216, Transform as Transform19 } from "class-transformer";
|
|
12118
12119
|
import { IsNumber as IsNumber152, IsString as IsString169, MinLength as MinLength29, Min as Min118 } from "class-validator";
|
|
12119
12120
|
var DetalleCubicajeDTO = class {
|
|
12120
12121
|
codigo = "";
|
|
@@ -12178,19 +12179,19 @@ __decorateClass([
|
|
|
12178
12179
|
Expose216()
|
|
12179
12180
|
], DetalleCubicajeDTO.prototype, "plano", 2);
|
|
12180
12181
|
__decorateClass([
|
|
12181
|
-
|
|
12182
|
+
Transform19(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
12182
12183
|
IsString169({ message: "debe ser un texto" }),
|
|
12183
12184
|
MinLength29(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
12184
12185
|
Expose216()
|
|
12185
12186
|
], DetalleCubicajeDTO.prototype, "codesp", 2);
|
|
12186
12187
|
__decorateClass([
|
|
12187
|
-
|
|
12188
|
+
Transform19(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
12188
12189
|
IsString169({ message: "debe ser un texto" }),
|
|
12189
12190
|
MinLength29(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
12190
12191
|
Expose216()
|
|
12191
12192
|
], DetalleCubicajeDTO.prototype, "codact", 2);
|
|
12192
12193
|
__decorateClass([
|
|
12193
|
-
|
|
12194
|
+
Transform19(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
12194
12195
|
IsString169({ message: "debe ser un texto" }),
|
|
12195
12196
|
MinLength29(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
12196
12197
|
Expose216()
|
|
@@ -12201,13 +12202,13 @@ __decorateClass([
|
|
|
12201
12202
|
Expose216()
|
|
12202
12203
|
], DetalleCubicajeDTO.prototype, "tarea", 2);
|
|
12203
12204
|
__decorateClass([
|
|
12204
|
-
|
|
12205
|
+
Transform19(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
12205
12206
|
IsString169({ message: "debe ser un texto" }),
|
|
12206
12207
|
MinLength29(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
12207
12208
|
Expose216()
|
|
12208
12209
|
], DetalleCubicajeDTO.prototype, "codmo", 2);
|
|
12209
12210
|
__decorateClass([
|
|
12210
|
-
|
|
12211
|
+
Transform19(({ value }) => typeof value === "string" ? value.trim() : value),
|
|
12211
12212
|
IsString169({ message: "debe ser un texto" }),
|
|
12212
12213
|
MinLength29(1, { message: "debe tener al menos 1 car\xE1cter" }),
|
|
12213
12214
|
Expose216()
|
|
@@ -12295,7 +12296,7 @@ __decorateClass([
|
|
|
12295
12296
|
Expose217()
|
|
12296
12297
|
], CubicacionENTITY.prototype, "Accion", 2);
|
|
12297
12298
|
__decorateClass([
|
|
12298
|
-
|
|
12299
|
+
Transform20(({ value }) => typeof value === "string" ? value.replaceAll(" ", "") : value),
|
|
12299
12300
|
IsDate57({ message: "debe ser una fecha" }),
|
|
12300
12301
|
Type146(() => Date),
|
|
12301
12302
|
Expose217()
|
|
@@ -14838,7 +14839,7 @@ import { Expose as Expose278, Type as Type181 } from "class-transformer";
|
|
|
14838
14839
|
import { IsArray as IsArray93, IsBoolean as IsBoolean22, IsNotEmpty as IsNotEmpty230, IsNumber as IsNumber186, IsOptional as IsOptional9, IsString as IsString221, Min as Min147, ValidateNested as ValidateNested163 } from "class-validator";
|
|
14839
14840
|
|
|
14840
14841
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/cambios-estados-pagos-produccion-dto.ts
|
|
14841
|
-
import { Expose as Expose270, Transform as
|
|
14842
|
+
import { Expose as Expose270, Transform as Transform21, Type as Type178 } from "class-transformer";
|
|
14842
14843
|
import { IsArray as IsArray91, IsDate as IsDate67, IsIn as IsIn3, IsNotEmpty as IsNotEmpty222, IsString as IsString213, Length as Length160, ValidateNested as ValidateNested160 } from "class-validator";
|
|
14843
14844
|
var CambiosEstadosPagosProduccionDTO = class {
|
|
14844
14845
|
NroDocumento = "";
|
|
@@ -14859,7 +14860,7 @@ __decorateClass([
|
|
|
14859
14860
|
ValidateNested160()
|
|
14860
14861
|
], CambiosEstadosPagosProduccionDTO.prototype, "UsuarioCambio", 2);
|
|
14861
14862
|
__decorateClass([
|
|
14862
|
-
|
|
14863
|
+
Transform21(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
14863
14864
|
IsDate67({ message: "debe ser una fecha" }),
|
|
14864
14865
|
IsNotEmpty222({ message: "es requerido" }),
|
|
14865
14866
|
Expose270()
|
|
@@ -14958,7 +14959,7 @@ __decorateClass([
|
|
|
14958
14959
|
], ManoObraDTO3.prototype, "UnidadMedida", 2);
|
|
14959
14960
|
|
|
14960
14961
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/periodo-dto.ts
|
|
14961
|
-
import { Expose as Expose274, Transform as
|
|
14962
|
+
import { Expose as Expose274, Transform as Transform22 } from "class-transformer";
|
|
14962
14963
|
import { IsDate as IsDate68, IsNotEmpty as IsNotEmpty226, IsNumber as IsNumber183, IsString as IsString217, Length as Length164 } from "class-validator";
|
|
14963
14964
|
var PeriodoDTO5 = class {
|
|
14964
14965
|
FechaInicio = /* @__PURE__ */ new Date(0);
|
|
@@ -14969,19 +14970,19 @@ var PeriodoDTO5 = class {
|
|
|
14969
14970
|
Codigo = "";
|
|
14970
14971
|
};
|
|
14971
14972
|
__decorateClass([
|
|
14972
|
-
|
|
14973
|
+
Transform22(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
14973
14974
|
IsDate68({ message: "debe ser de tipo fecha" }),
|
|
14974
14975
|
IsNotEmpty226({ message: "es requerido" }),
|
|
14975
14976
|
Expose274()
|
|
14976
14977
|
], PeriodoDTO5.prototype, "FechaInicio", 2);
|
|
14977
14978
|
__decorateClass([
|
|
14978
|
-
|
|
14979
|
+
Transform22(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
14979
14980
|
IsDate68({ message: "debe ser de tipo fecha" }),
|
|
14980
14981
|
IsNotEmpty226({ message: "es requerido" }),
|
|
14981
14982
|
Expose274()
|
|
14982
14983
|
], PeriodoDTO5.prototype, "FechaFin", 2);
|
|
14983
14984
|
__decorateClass([
|
|
14984
|
-
|
|
14985
|
+
Transform22(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
14985
14986
|
IsDate68({ message: "debe ser de tipo fecha" }),
|
|
14986
14987
|
IsNotEmpty226({ message: "es requerido" }),
|
|
14987
14988
|
Expose274()
|
|
@@ -15004,7 +15005,7 @@ __decorateClass([
|
|
|
15004
15005
|
], PeriodoDTO5.prototype, "Codigo", 2);
|
|
15005
15006
|
|
|
15006
15007
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/ultima_estado_interno-dto.ts
|
|
15007
|
-
import { Expose as Expose275, Transform as
|
|
15008
|
+
import { Expose as Expose275, Transform as Transform23, Type as Type179 } from "class-transformer";
|
|
15008
15009
|
import { IsDate as IsDate69, IsNotEmpty as IsNotEmpty227, IsNumber as IsNumber184, IsString as IsString218, Length as Length165, ValidateNested as ValidateNested161 } from "class-validator";
|
|
15009
15010
|
var Ultimo_Estado_InternoDTO = class {
|
|
15010
15011
|
ID_EstadoInterno = 0;
|
|
@@ -15031,7 +15032,7 @@ __decorateClass([
|
|
|
15031
15032
|
Expose275()
|
|
15032
15033
|
], Ultimo_Estado_InternoDTO.prototype, "ID_EstadoInternoPadre", 2);
|
|
15033
15034
|
__decorateClass([
|
|
15034
|
-
|
|
15035
|
+
Transform23(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
15035
15036
|
IsDate69({ message: "debe ser una fecha" }),
|
|
15036
15037
|
IsNotEmpty227({ message: "es requerido" }),
|
|
15037
15038
|
Expose275()
|
|
@@ -15091,7 +15092,7 @@ __decorateClass([
|
|
|
15091
15092
|
], Ultimo_Estado_InternoDTO.prototype, "UsuarioEdicion", 2);
|
|
15092
15093
|
|
|
15093
15094
|
// src/programados/Reportes/ReporteProduccion/Colombia/Baremos/dto/ultima_fase-dto.ts
|
|
15094
|
-
import { Expose as Expose276, Transform as
|
|
15095
|
+
import { Expose as Expose276, Transform as Transform24, Type as Type180 } from "class-transformer";
|
|
15095
15096
|
import { IsArray as IsArray92, IsDate as IsDate70, IsIn as IsIn4, Max as Max6, IsNotEmpty as IsNotEmpty228, IsNumber as IsNumber185, IsString as IsString219, Length as Length166, Min as Min146, ValidateNested as ValidateNested162 } from "class-validator";
|
|
15096
15097
|
var Ultima_FaseDTO = class {
|
|
15097
15098
|
ID_Fase = 0;
|
|
@@ -15138,7 +15139,7 @@ __decorateClass([
|
|
|
15138
15139
|
ValidateNested162()
|
|
15139
15140
|
], Ultima_FaseDTO.prototype, "UsuarioCambio", 2);
|
|
15140
15141
|
__decorateClass([
|
|
15141
|
-
|
|
15142
|
+
Transform24(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
15142
15143
|
IsDate70({ message: "debe ser una fecha" }),
|
|
15143
15144
|
IsNotEmpty228({ message: "es requerido" }),
|
|
15144
15145
|
Expose276()
|
|
@@ -15166,7 +15167,7 @@ __decorateClass([
|
|
|
15166
15167
|
ValidateNested162()
|
|
15167
15168
|
], Ultima_FaseDTO.prototype, "UsuarioDocumento", 2);
|
|
15168
15169
|
__decorateClass([
|
|
15169
|
-
|
|
15170
|
+
Transform24(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
15170
15171
|
IsDate70({ message: "debe ser una fecha" }),
|
|
15171
15172
|
IsNotEmpty228({ message: "es requerido" }),
|
|
15172
15173
|
Expose276()
|
|
@@ -17798,7 +17799,7 @@ __decorateClass([
|
|
|
17798
17799
|
|
|
17799
17800
|
// src/logistica/movimiento almacen/shared/index.ts
|
|
17800
17801
|
import { IsNotEmpty as IsNotEmpty256, IsNumber as IsNumber205, IsString as IsString250, Length as Length189, Min as Min161, ValidateNested as ValidateNested181 } from "class-validator";
|
|
17801
|
-
import { Expose as Expose308, Transform as
|
|
17802
|
+
import { Expose as Expose308, Transform as Transform25, Type as Type200 } from "class-transformer";
|
|
17802
17803
|
var MovimientoAlmacenENTITY = class {
|
|
17803
17804
|
ID_MovimientoAlmacen = 0;
|
|
17804
17805
|
Codigo = "";
|
|
@@ -17818,13 +17819,13 @@ __decorateClass([
|
|
|
17818
17819
|
__decorateClass([
|
|
17819
17820
|
IsString250({ message: "debe ser un texto" }),
|
|
17820
17821
|
Length189(0, 10, { message: "debe tener entre 0 y 50 caracteres" }),
|
|
17821
|
-
|
|
17822
|
+
Transform25(({ value }) => typeof value === "string" ? value.toUpperCase() : value),
|
|
17822
17823
|
Expose308()
|
|
17823
17824
|
], MovimientoAlmacenENTITY.prototype, "Codigo", 2);
|
|
17824
17825
|
__decorateClass([
|
|
17825
17826
|
IsString250({ message: "debe ser un texto" }),
|
|
17826
17827
|
Length189(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
17827
|
-
|
|
17828
|
+
Transform25(({ value }) => typeof value === "string" ? value.toUpperCase() : value),
|
|
17828
17829
|
Expose308()
|
|
17829
17830
|
], MovimientoAlmacenENTITY.prototype, "Descripcion", 2);
|
|
17830
17831
|
__decorateClass([
|
|
@@ -18091,7 +18092,7 @@ __decorateClass([
|
|
|
18091
18092
|
], DevolucionAlmacenENTITY.prototype, "Estado", 2);
|
|
18092
18093
|
|
|
18093
18094
|
// src/logistica/items/shared/index.ts
|
|
18094
|
-
import { Expose as Expose317, Transform as
|
|
18095
|
+
import { Expose as Expose317, Transform as Transform26, Type as Type207 } from "class-transformer";
|
|
18095
18096
|
import { IsArray as IsArray109, IsNotEmpty as IsNotEmpty264, IsNumber as IsNumber210, IsString as IsString257, Length as Length196, Min as Min166, ValidateNested as ValidateNested188, IsBoolean as IsBoolean30 } from "class-validator";
|
|
18096
18097
|
|
|
18097
18098
|
// src/logistica/items/shared/dto/cliente-dto.ts
|
|
@@ -18421,14 +18422,14 @@ __decorateClass([
|
|
|
18421
18422
|
], ItemENTITY.prototype, "Tipo", 2);
|
|
18422
18423
|
__decorateClass([
|
|
18423
18424
|
Expose317(),
|
|
18424
|
-
|
|
18425
|
+
Transform26(({ value }) => Number(value)),
|
|
18425
18426
|
IsNumber210({}, { message: "debe ser un numero" }),
|
|
18426
18427
|
IsNotEmpty264({ message: "es requerido" }),
|
|
18427
18428
|
Min166(0, { message: "el valor m\xEDnimo es 0" })
|
|
18428
18429
|
], ItemENTITY.prototype, "Valor", 2);
|
|
18429
18430
|
__decorateClass([
|
|
18430
18431
|
Expose317(),
|
|
18431
|
-
|
|
18432
|
+
Transform26(({ value }) => Number(value)),
|
|
18432
18433
|
IsNumber210({}, { message: "debe ser un numero" }),
|
|
18433
18434
|
IsNotEmpty264({ message: "es requerido" }),
|
|
18434
18435
|
Min166(0, { message: "el valor m\xEDnimo es 0" })
|
|
@@ -19225,7 +19226,7 @@ __decorateClass([
|
|
|
19225
19226
|
], BodegaENTITY.prototype, "Bitacora", 2);
|
|
19226
19227
|
|
|
19227
19228
|
// src/logistica/autoinventario/shared/index.ts
|
|
19228
|
-
import { Expose as Expose333, Transform as
|
|
19229
|
+
import { Expose as Expose333, Transform as Transform27, Type as Type217 } from "class-transformer";
|
|
19229
19230
|
|
|
19230
19231
|
// src/logistica/autoinventario/shared/dto/equipos-AI-dto.ts
|
|
19231
19232
|
import { Expose as Expose332 } from "class-transformer";
|
|
@@ -19330,7 +19331,7 @@ __decorateClass([
|
|
|
19330
19331
|
Expose333()
|
|
19331
19332
|
], AutoInventarioENTITY.prototype, "Observacion", 2);
|
|
19332
19333
|
__decorateClass([
|
|
19333
|
-
|
|
19334
|
+
Transform27(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
19334
19335
|
IsDate88({ message: "debe ser una fecha" }),
|
|
19335
19336
|
IsNotEmpty279({ message: "es requerido" }),
|
|
19336
19337
|
Expose333()
|
|
@@ -19552,7 +19553,7 @@ __decorateClass([
|
|
|
19552
19553
|
], TipoStockENTITY.prototype, "Delegacion", 2);
|
|
19553
19554
|
|
|
19554
19555
|
// src/logistica/almacen extra/shared/index.ts
|
|
19555
|
-
import { Expose as Expose338, Transform as
|
|
19556
|
+
import { Expose as Expose338, Transform as Transform28, Type as Type222 } from "class-transformer";
|
|
19556
19557
|
import { IsNotEmpty as IsNotEmpty284, IsNumber as IsNumber227, IsString as IsString275, Length as Length213, Min as Min183, ValidateNested as ValidateNested203 } from "class-validator";
|
|
19557
19558
|
var AlmacenExtraENTITY = class {
|
|
19558
19559
|
ID_AlmacenExtra = 0;
|
|
@@ -19625,13 +19626,13 @@ __decorateClass([
|
|
|
19625
19626
|
Expose338()
|
|
19626
19627
|
], AlmacenExtraENTITY.prototype, "Country", 2);
|
|
19627
19628
|
__decorateClass([
|
|
19628
|
-
|
|
19629
|
+
Transform28(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
19629
19630
|
IsNumber227({}, { message: "debe ser una coordenada" }),
|
|
19630
19631
|
IsNotEmpty284({ message: "es requerido" }),
|
|
19631
19632
|
Expose338()
|
|
19632
19633
|
], AlmacenExtraENTITY.prototype, "Latitude", 2);
|
|
19633
19634
|
__decorateClass([
|
|
19634
|
-
|
|
19635
|
+
Transform28(({ value }) => isNaN(Number(value)) ? 0 : Number(value)),
|
|
19635
19636
|
IsNumber227({}, { message: "debe ser una coordenada" }),
|
|
19636
19637
|
IsNotEmpty284({ message: "es requerido" }),
|
|
19637
19638
|
Expose338()
|
|
@@ -21364,7 +21365,7 @@ __decorateClass([
|
|
|
21364
21365
|
import { IsDate as IsDate98, IsEnum as IsEnum11, IsNotEmpty as IsNotEmpty314, IsString as IsString308, Length as Length244, ValidateNested as ValidateNested220 } from "class-validator";
|
|
21365
21366
|
|
|
21366
21367
|
// src/configuracion/notificaciones/shared/dto/data-adicional-dto.ts
|
|
21367
|
-
import { Expose as Expose372, Transform as
|
|
21368
|
+
import { Expose as Expose372, Transform as Transform29 } from "class-transformer";
|
|
21368
21369
|
import { IsDate as IsDate97, IsEnum as IsEnum10, IsNotEmpty as IsNotEmpty313, IsString as IsString307, Length as Length243 } from "class-validator";
|
|
21369
21370
|
var OperacionDataAdicional = /* @__PURE__ */ ((OperacionDataAdicional2) => {
|
|
21370
21371
|
OperacionDataAdicional2["CREAR"] = "crear";
|
|
@@ -21395,7 +21396,7 @@ __decorateClass([
|
|
|
21395
21396
|
Expose372()
|
|
21396
21397
|
], DataAdicionalDTO.prototype, "operacion", 2);
|
|
21397
21398
|
__decorateClass([
|
|
21398
|
-
|
|
21399
|
+
Transform29(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21399
21400
|
IsDate97({ message: "debe ser una fecha" }),
|
|
21400
21401
|
IsNotEmpty313({ message: "es requerido" }),
|
|
21401
21402
|
Expose372()
|
|
@@ -21407,7 +21408,7 @@ __decorateClass([
|
|
|
21407
21408
|
], DataAdicionalDTO.prototype, "localName", 2);
|
|
21408
21409
|
|
|
21409
21410
|
// src/configuracion/notificaciones/shared/index.ts
|
|
21410
|
-
import { Expose as Expose373, Transform as
|
|
21411
|
+
import { Expose as Expose373, Transform as Transform30, Type as Type246 } from "class-transformer";
|
|
21411
21412
|
var TipoNotificacion = /* @__PURE__ */ ((TipoNotificacion2) => {
|
|
21412
21413
|
TipoNotificacion2["INFO"] = "info";
|
|
21413
21414
|
TipoNotificacion2["ERROR"] = "error";
|
|
@@ -21471,13 +21472,13 @@ __decorateClass([
|
|
|
21471
21472
|
ValidateNested220()
|
|
21472
21473
|
], NotificacionesENTITY.prototype, "dataAdicional", 2);
|
|
21473
21474
|
__decorateClass([
|
|
21474
|
-
|
|
21475
|
+
Transform30(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21475
21476
|
IsDate98({ message: "debe ser una fecha" }),
|
|
21476
21477
|
IsNotEmpty314({ message: "es requerido" }),
|
|
21477
21478
|
Expose373()
|
|
21478
21479
|
], NotificacionesENTITY.prototype, "fechaCreacion", 2);
|
|
21479
21480
|
__decorateClass([
|
|
21480
|
-
|
|
21481
|
+
Transform30(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
|
|
21481
21482
|
IsDate98({ message: "debe ser una fecha" }),
|
|
21482
21483
|
IsNotEmpty314({ message: "es requerido" }),
|
|
21483
21484
|
Expose373()
|
|
@@ -23678,7 +23679,7 @@ var ISheetsJsonChileTdC = class {
|
|
|
23678
23679
|
};
|
|
23679
23680
|
|
|
23680
23681
|
// src/operativa/procesos/toa_claro/shared/index.ts
|
|
23681
|
-
import { Expose as Expose413, Transform as
|
|
23682
|
+
import { Expose as Expose413, Transform as Transform32, Type as Type262 } from "class-transformer";
|
|
23682
23683
|
import { IsNotEmpty as IsNotEmpty341, IsNumber as IsNumber269, IsString as IsString345, Length as Length279, Min as Min221, IsDate as IsDate106, ValidateNested as ValidateNested231, IsEnum as IsEnum15 } from "class-validator";
|
|
23683
23684
|
|
|
23684
23685
|
// src/operativa/procesos/toa_claro/shared/dto/direccion toa dto.ts
|
|
@@ -23969,7 +23970,7 @@ __decorateClass([
|
|
|
23969
23970
|
Expose413()
|
|
23970
23971
|
], ToaClaroENTITY.prototype, "ID_ToaClaro", 2);
|
|
23971
23972
|
__decorateClass([
|
|
23972
|
-
|
|
23973
|
+
Transform32(({ value }) => "TOA_CLARO" /* TOA_CLARO */),
|
|
23973
23974
|
IsEnum15(SistemaRecurso, { message: "debe ser un valor v\xE1lido de enum SistemaRecurso" }),
|
|
23974
23975
|
Expose413()
|
|
23975
23976
|
], ToaClaroENTITY.prototype, "Sistema", 2);
|
|
@@ -26169,7 +26170,7 @@ __decorateClass([
|
|
|
26169
26170
|
import { Expose as Expose423, Type as Type265 } from "class-transformer";
|
|
26170
26171
|
|
|
26171
26172
|
// src/operativa/procesos/onnet_fibra/shared/dto/bitacora_de_ordenes.ts
|
|
26172
|
-
import { Expose as Expose415, Transform as
|
|
26173
|
+
import { Expose as Expose415, Transform as Transform33 } from "class-transformer";
|
|
26173
26174
|
import { IsDefined as IsDefined34, IsNumber as IsNumber271, IsOptional as IsOptional15, IsString as IsString347 } from "class-validator";
|
|
26174
26175
|
var BitacoraDeOrdenesDTO = class {
|
|
26175
26176
|
estado = 0;
|
|
@@ -26220,14 +26221,14 @@ __decorateClass([
|
|
|
26220
26221
|
], BitacoraDeOrdenesDTO.prototype, "estado", 2);
|
|
26221
26222
|
__decorateClass([
|
|
26222
26223
|
IsOptional15(),
|
|
26223
|
-
|
|
26224
|
+
Transform33(({ value }) => value ? String(value) : ""),
|
|
26224
26225
|
IsString347({ message: "El campo lt debe ser una cadena de texto" }),
|
|
26225
26226
|
Expose415()
|
|
26226
26227
|
], BitacoraDeOrdenesDTO.prototype, "lt", 2);
|
|
26227
26228
|
__decorateClass([
|
|
26228
26229
|
IsOptional15(),
|
|
26229
26230
|
IsNumber271({}, { message: "El campo id_orden_mantenimiento_anexo debe ser un n\xFAmero" }),
|
|
26230
|
-
|
|
26231
|
+
Transform33(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
|
|
26231
26232
|
Expose415()
|
|
26232
26233
|
], BitacoraDeOrdenesDTO.prototype, "id_orden_mantenimiento_anexo", 2);
|
|
26233
26234
|
__decorateClass([
|
|
@@ -26238,7 +26239,7 @@ __decorateClass([
|
|
|
26238
26239
|
__decorateClass([
|
|
26239
26240
|
IsOptional15(),
|
|
26240
26241
|
IsNumber271({}, { message: "El campo cantidad_clientes_afectados debe ser un n\xFAmero" }),
|
|
26241
|
-
|
|
26242
|
+
Transform33(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
|
|
26242
26243
|
Expose415()
|
|
26243
26244
|
], BitacoraDeOrdenesDTO.prototype, "cantidad_clientes_afectados", 2);
|
|
26244
26245
|
__decorateClass([
|
|
@@ -26274,13 +26275,13 @@ __decorateClass([
|
|
|
26274
26275
|
__decorateClass([
|
|
26275
26276
|
IsOptional15(),
|
|
26276
26277
|
IsString347({ message: "El campo tecnologia debe ser una cadena de texto" }),
|
|
26277
|
-
|
|
26278
|
+
Transform33(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26278
26279
|
Expose415()
|
|
26279
26280
|
], BitacoraDeOrdenesDTO.prototype, "tecnologia", 2);
|
|
26280
26281
|
__decorateClass([
|
|
26281
26282
|
IsOptional15(),
|
|
26282
26283
|
IsString347({ message: "El campo olt debe ser una cadena de texto" }),
|
|
26283
|
-
|
|
26284
|
+
Transform33(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26284
26285
|
Expose415()
|
|
26285
26286
|
], BitacoraDeOrdenesDTO.prototype, "olt", 2);
|
|
26286
26287
|
__decorateClass([
|
|
@@ -26356,7 +26357,7 @@ __decorateClass([
|
|
|
26356
26357
|
__decorateClass([
|
|
26357
26358
|
IsOptional15(),
|
|
26358
26359
|
IsString347({ message: "El campo puerto_pon debe ser una cadena de texto" }),
|
|
26359
|
-
|
|
26360
|
+
Transform33(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26360
26361
|
Expose415()
|
|
26361
26362
|
], BitacoraDeOrdenesDTO.prototype, "puerto_pon", 2);
|
|
26362
26363
|
__decorateClass([
|
|
@@ -26366,20 +26367,20 @@ __decorateClass([
|
|
|
26366
26367
|
], BitacoraDeOrdenesDTO.prototype, "nombre_especialidad", 2);
|
|
26367
26368
|
__decorateClass([
|
|
26368
26369
|
IsOptional15({ message: "El campo cliente es opcional" }),
|
|
26369
|
-
|
|
26370
|
+
Transform33(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26370
26371
|
IsString347({ message: "El campo cliente debe ser una cadena de texto" }),
|
|
26371
26372
|
Expose415()
|
|
26372
26373
|
], BitacoraDeOrdenesDTO.prototype, "cliente", 2);
|
|
26373
26374
|
__decorateClass([
|
|
26374
26375
|
IsOptional15({ message: "El campo comuna es opcional" }),
|
|
26375
|
-
|
|
26376
|
+
Transform33(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26376
26377
|
IsString347({ message: "El campo comuna debe ser una cadena de texto" }),
|
|
26377
26378
|
Expose415()
|
|
26378
26379
|
], BitacoraDeOrdenesDTO.prototype, "comuna", 2);
|
|
26379
26380
|
__decorateClass([
|
|
26380
26381
|
IsOptional15({ message: "El campo pep es opcional" }),
|
|
26381
26382
|
IsString347({ message: "El campo pep debe ser una cadena de texto" }),
|
|
26382
|
-
|
|
26383
|
+
Transform33(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26383
26384
|
Expose415()
|
|
26384
26385
|
], BitacoraDeOrdenesDTO.prototype, "pep", 2);
|
|
26385
26386
|
__decorateClass([
|
|
@@ -26409,7 +26410,7 @@ __decorateClass([
|
|
|
26409
26410
|
__decorateClass([
|
|
26410
26411
|
IsOptional15(),
|
|
26411
26412
|
IsNumber271({}, { message: "El campo capacidad_cable debe ser una cadena de texto" }),
|
|
26412
|
-
|
|
26413
|
+
Transform33(({ value }) => isNaN(value) ? 0 : Number(value)),
|
|
26413
26414
|
Expose415()
|
|
26414
26415
|
], BitacoraDeOrdenesDTO.prototype, "capacidad_cable", 2);
|
|
26415
26416
|
__decorateClass([
|
|
@@ -26572,7 +26573,7 @@ import { Expose as Expose421, Type as Type264 } from "class-transformer";
|
|
|
26572
26573
|
import { IsArray as IsArray134, IsDefined as IsDefined40, IsString as IsString353, ValidateNested as ValidateNested233 } from "class-validator";
|
|
26573
26574
|
|
|
26574
26575
|
// src/operativa/procesos/onnet_fibra/shared/dto/detail-maintenance-order/detalle_orden_real_dto.ts
|
|
26575
|
-
import { Expose as Expose418, Transform as
|
|
26576
|
+
import { Expose as Expose418, Transform as Transform34 } from "class-transformer";
|
|
26576
26577
|
import { IsDefined as IsDefined37, IsNumber as IsNumber274, IsOptional as IsOptional16, IsString as IsString350 } from "class-validator";
|
|
26577
26578
|
var DetalleOrdenRealDTO = class {
|
|
26578
26579
|
descripcion = "";
|
|
@@ -26589,25 +26590,25 @@ var DetalleOrdenRealDTO = class {
|
|
|
26589
26590
|
__decorateClass([
|
|
26590
26591
|
IsDefined37({ message: "El campo descripcion es requerido" }),
|
|
26591
26592
|
IsString350({ message: "El campo descripcion debe ser una cadena de texto" }),
|
|
26592
|
-
|
|
26593
|
+
Transform34(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26593
26594
|
Expose418()
|
|
26594
26595
|
], DetalleOrdenRealDTO.prototype, "descripcion", 2);
|
|
26595
26596
|
__decorateClass([
|
|
26596
26597
|
IsDefined37({ message: "El campo tipo es requerido" }),
|
|
26597
26598
|
IsString350({ message: "El campo tipo debe ser una cadena de texto" }),
|
|
26598
|
-
|
|
26599
|
+
Transform34(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26599
26600
|
Expose418()
|
|
26600
26601
|
], DetalleOrdenRealDTO.prototype, "tipo", 2);
|
|
26601
26602
|
__decorateClass([
|
|
26602
26603
|
IsDefined37({ message: "El campo tipo_material es requerido" }),
|
|
26603
26604
|
IsString350({ message: "El campo tipo_material debe ser una cadena de texto" }),
|
|
26604
|
-
|
|
26605
|
+
Transform34(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26605
26606
|
Expose418()
|
|
26606
26607
|
], DetalleOrdenRealDTO.prototype, "tipo_material", 2);
|
|
26607
26608
|
__decorateClass([
|
|
26608
26609
|
IsDefined37({ message: "El campo codigo es requerido" }),
|
|
26609
26610
|
IsString350({ message: "El campo codigo debe ser una cadena de texto" }),
|
|
26610
|
-
|
|
26611
|
+
Transform34(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26611
26612
|
Expose418()
|
|
26612
26613
|
], DetalleOrdenRealDTO.prototype, "codigo", 2);
|
|
26613
26614
|
__decorateClass([
|
|
@@ -26621,12 +26622,12 @@ __decorateClass([
|
|
|
26621
26622
|
__decorateClass([
|
|
26622
26623
|
IsOptional16({ message: "El campo tecnico es requerido" }),
|
|
26623
26624
|
IsString350({ message: "El campo tecnico debe ser una cadena de texto" }),
|
|
26624
|
-
|
|
26625
|
+
Transform34(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26625
26626
|
Expose418()
|
|
26626
26627
|
], DetalleOrdenRealDTO.prototype, "tecnico", 2);
|
|
26627
26628
|
__decorateClass([
|
|
26628
26629
|
IsString350({ message: "El campo unidad debe ser una cadena de texto" }),
|
|
26629
|
-
|
|
26630
|
+
Transform34(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26630
26631
|
Expose418()
|
|
26631
26632
|
], DetalleOrdenRealDTO.prototype, "unidad", 2);
|
|
26632
26633
|
__decorateClass([
|
|
@@ -26636,7 +26637,7 @@ __decorateClass([
|
|
|
26636
26637
|
__decorateClass([
|
|
26637
26638
|
IsOptional16({ message: "El campo contrato es opcional" }),
|
|
26638
26639
|
IsString350({ message: "El campo contrato debe ser una cadena de texto" }),
|
|
26639
|
-
|
|
26640
|
+
Transform34(({ value }) => typeof value !== "string" ? "" : String(value)),
|
|
26640
26641
|
Expose418()
|
|
26641
26642
|
], DetalleOrdenRealDTO.prototype, "contrato", 2);
|
|
26642
26643
|
|