sigo-entities 1.2.277 → 1.2.279

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.js CHANGED
@@ -790,7 +790,11 @@ function convertStringsToDates(obj) {
790
790
  if (typeof obj === "object" && obj !== null) {
791
791
  for (const key in obj) {
792
792
  if (obj.hasOwnProperty(key)) {
793
- obj[key] = convertStringsToDates(obj[key]);
793
+ if (key === "Date" && obj[key] === "") {
794
+ obj[key] = /* @__PURE__ */ new Date(0);
795
+ } else {
796
+ obj[key] = convertStringsToDates(obj[key]);
797
+ }
794
798
  }
795
799
  }
796
800
  }
@@ -30508,30 +30512,35 @@ var FileDto = class {
30508
30512
  Albaran = [];
30509
30513
  };
30510
30514
  __decorateClass([
30515
+ (0, import_class_validator537.IsOptional)(),
30511
30516
  (0, import_class_validator537.IsArray)({ message: "debe ser un array" }),
30512
30517
  (0, import_class_transformer555.Type)(() => AnexoPreOrdenDto),
30513
30518
  (0, import_class_validator537.ValidateNested)({ each: true }),
30514
30519
  (0, import_class_transformer554.Expose)()
30515
30520
  ], FileDto.prototype, "AnexoPreOrden", 2);
30516
30521
  __decorateClass([
30522
+ (0, import_class_validator537.IsOptional)(),
30517
30523
  (0, import_class_validator537.IsArray)({ message: "debe ser un array" }),
30518
30524
  (0, import_class_transformer555.Type)(() => ComparativoDto),
30519
30525
  (0, import_class_validator537.ValidateNested)({ each: true }),
30520
30526
  (0, import_class_transformer554.Expose)()
30521
30527
  ], FileDto.prototype, "Comparativo", 2);
30522
30528
  __decorateClass([
30529
+ (0, import_class_validator537.IsOptional)(),
30523
30530
  (0, import_class_validator537.IsArray)({ message: "debe ser un array" }),
30524
30531
  (0, import_class_transformer555.Type)(() => CotizacionDto),
30525
30532
  (0, import_class_validator537.ValidateNested)({ each: true }),
30526
30533
  (0, import_class_transformer554.Expose)()
30527
30534
  ], FileDto.prototype, "Cotizacion", 2);
30528
30535
  __decorateClass([
30536
+ (0, import_class_validator537.IsOptional)(),
30529
30537
  (0, import_class_validator537.IsArray)({ message: "debe ser un array" }),
30530
30538
  (0, import_class_transformer555.Type)(() => PedidoCompraDto),
30531
30539
  (0, import_class_validator537.ValidateNested)({ each: true }),
30532
30540
  (0, import_class_transformer554.Expose)()
30533
30541
  ], FileDto.prototype, "PedidoCompra", 2);
30534
30542
  __decorateClass([
30543
+ (0, import_class_validator537.IsOptional)(),
30535
30544
  (0, import_class_validator537.IsArray)({ message: "debe ser un array" }),
30536
30545
  (0, import_class_transformer555.Type)(() => AlbaranDto),
30537
30546
  (0, import_class_validator537.ValidateNested)({ each: true }),
@@ -30989,10 +30998,12 @@ __decorateClass([
30989
30998
  (0, import_class_transformer565.Expose)()
30990
30999
  ], NavisionpreordenEntity.prototype, "isSinRq", 2);
30991
31000
  __decorateClass([
31001
+ (0, import_class_validator544.IsOptional)(),
30992
31002
  (0, import_class_validator544.IsString)({ message: "debe ser texto" }),
30993
31003
  (0, import_class_transformer565.Expose)()
30994
31004
  ], NavisionpreordenEntity.prototype, "PDF", 2);
30995
31005
  __decorateClass([
31006
+ (0, import_class_validator544.IsOptional)(),
30996
31007
  (0, import_class_validator544.IsString)({ message: "debe ser texto" }),
30997
31008
  (0, import_class_transformer565.Expose)()
30998
31009
  ], NavisionpreordenEntity.prototype, "PDFComparativo", 2);
@@ -31044,6 +31055,7 @@ __decorateClass([
31044
31055
  (0, import_class_transformer565.Expose)()
31045
31056
  ], NavisionpreordenEntity.prototype, "DatosNav", 2);
31046
31057
  __decorateClass([
31058
+ (0, import_class_validator544.IsOptional)(),
31047
31059
  (0, import_class_transformer566.Type)(() => EnviarNavDto),
31048
31060
  (0, import_class_validator544.ValidateNested)(),
31049
31061
  (0, import_class_transformer565.Expose)()
@@ -31056,8 +31068,8 @@ __decorateClass([
31056
31068
  (0, import_class_transformer565.Expose)()
31057
31069
  ], NavisionpreordenEntity.prototype, "MovimientosRecepcion", 2);
31058
31070
  __decorateClass([
31071
+ (0, import_class_validator544.IsOptional)(),
31059
31072
  (0, import_class_validator544.IsBoolean)({ message: "debe ser true o false" }),
31060
- (0, import_class_validator544.IsNotEmpty)({ message: "es requerido" }),
31061
31073
  (0, import_class_transformer565.Expose)()
31062
31074
  ], NavisionpreordenEntity.prototype, "isModelSIGO", 2);
31063
31075
 
package/dist/index.mjs CHANGED
@@ -67,7 +67,11 @@ function convertStringsToDates(obj) {
67
67
  if (typeof obj === "object" && obj !== null) {
68
68
  for (const key in obj) {
69
69
  if (obj.hasOwnProperty(key)) {
70
- obj[key] = convertStringsToDates(obj[key]);
70
+ if (key === "Date" && obj[key] === "") {
71
+ obj[key] = /* @__PURE__ */ new Date(0);
72
+ } else {
73
+ obj[key] = convertStringsToDates(obj[key]);
74
+ }
71
75
  }
72
76
  }
73
77
  }
@@ -29856,7 +29860,7 @@ __decorateClass([
29856
29860
 
29857
29861
  // src/logistica/procesos/navisionpreorden/shared/dto/file-dto.ts
29858
29862
  import { Expose as Expose534 } from "class-transformer";
29859
- import { IsArray as IsArray183, ValidateNested as ValidateNested313 } from "class-validator";
29863
+ import { IsArray as IsArray183, IsOptional as IsOptional33, ValidateNested as ValidateNested313 } from "class-validator";
29860
29864
 
29861
29865
  // src/logistica/procesos/navisionpreorden/shared/dto/pedido-compra-dto.ts
29862
29866
  import { Expose as Expose533 } from "class-transformer";
@@ -29925,30 +29929,35 @@ var FileDto = class {
29925
29929
  Albaran = [];
29926
29930
  };
29927
29931
  __decorateClass([
29932
+ IsOptional33(),
29928
29933
  IsArray183({ message: "debe ser un array" }),
29929
29934
  Type351(() => AnexoPreOrdenDto),
29930
29935
  ValidateNested313({ each: true }),
29931
29936
  Expose534()
29932
29937
  ], FileDto.prototype, "AnexoPreOrden", 2);
29933
29938
  __decorateClass([
29939
+ IsOptional33(),
29934
29940
  IsArray183({ message: "debe ser un array" }),
29935
29941
  Type351(() => ComparativoDto),
29936
29942
  ValidateNested313({ each: true }),
29937
29943
  Expose534()
29938
29944
  ], FileDto.prototype, "Comparativo", 2);
29939
29945
  __decorateClass([
29946
+ IsOptional33(),
29940
29947
  IsArray183({ message: "debe ser un array" }),
29941
29948
  Type351(() => CotizacionDto),
29942
29949
  ValidateNested313({ each: true }),
29943
29950
  Expose534()
29944
29951
  ], FileDto.prototype, "Cotizacion", 2);
29945
29952
  __decorateClass([
29953
+ IsOptional33(),
29946
29954
  IsArray183({ message: "debe ser un array" }),
29947
29955
  Type351(() => PedidoCompraDto),
29948
29956
  ValidateNested313({ each: true }),
29949
29957
  Expose534()
29950
29958
  ], FileDto.prototype, "PedidoCompra", 2);
29951
29959
  __decorateClass([
29960
+ IsOptional33(),
29952
29961
  IsArray183({ message: "debe ser un array" }),
29953
29962
  Type351(() => AlbaranDto),
29954
29963
  ValidateNested313({ each: true }),
@@ -29990,7 +29999,7 @@ __decorateClass([
29990
29999
  ], FlujoDto.prototype, "Aprobacion", 2);
29991
30000
 
29992
30001
  // src/logistica/procesos/navisionpreorden/shared/navisionpreorden-entity.ts
29993
- import { IsArray as IsArray187, IsBoolean as IsBoolean49, IsNotEmpty as IsNotEmpty388, IsNumber as IsNumber342, IsString as IsString430, Min as Min269, ValidateNested as ValidateNested317 } from "class-validator";
30002
+ import { IsArray as IsArray187, IsBoolean as IsBoolean49, IsNotEmpty as IsNotEmpty388, IsNumber as IsNumber342, IsOptional as IsOptional34, IsString as IsString430, Min as Min269, ValidateNested as ValidateNested317 } from "class-validator";
29994
30003
 
29995
30004
  // src/logistica/procesos/navisionpreorden/shared/dto/contabilizado-dto.ts
29996
30005
  import { Expose as Expose536 } from "class-transformer";
@@ -30406,10 +30415,12 @@ __decorateClass([
30406
30415
  Expose541()
30407
30416
  ], NavisionpreordenEntity.prototype, "isSinRq", 2);
30408
30417
  __decorateClass([
30418
+ IsOptional34(),
30409
30419
  IsString430({ message: "debe ser texto" }),
30410
30420
  Expose541()
30411
30421
  ], NavisionpreordenEntity.prototype, "PDF", 2);
30412
30422
  __decorateClass([
30423
+ IsOptional34(),
30413
30424
  IsString430({ message: "debe ser texto" }),
30414
30425
  Expose541()
30415
30426
  ], NavisionpreordenEntity.prototype, "PDFComparativo", 2);
@@ -30461,6 +30472,7 @@ __decorateClass([
30461
30472
  Expose541()
30462
30473
  ], NavisionpreordenEntity.prototype, "DatosNav", 2);
30463
30474
  __decorateClass([
30475
+ IsOptional34(),
30464
30476
  Type355(() => EnviarNavDto),
30465
30477
  ValidateNested317(),
30466
30478
  Expose541()
@@ -30473,8 +30485,8 @@ __decorateClass([
30473
30485
  Expose541()
30474
30486
  ], NavisionpreordenEntity.prototype, "MovimientosRecepcion", 2);
30475
30487
  __decorateClass([
30488
+ IsOptional34(),
30476
30489
  IsBoolean49({ message: "debe ser true o false" }),
30477
- IsNotEmpty388({ message: "es requerido" }),
30478
30490
  Expose541()
30479
30491
  ], NavisionpreordenEntity.prototype, "isModelSIGO", 2);
30480
30492
 
@@ -30833,7 +30845,7 @@ import {
30833
30845
  IsDefined as IsDefined153,
30834
30846
  IsNotEmpty as IsNotEmpty394,
30835
30847
  IsNumber as IsNumber345,
30836
- IsOptional as IsOptional33,
30848
+ IsOptional as IsOptional35,
30837
30849
  IsString as IsString437,
30838
30850
  Length as Length267,
30839
30851
  Min as Min271,
@@ -30912,7 +30924,7 @@ __decorateClass([
30912
30924
  IsString437({ message: "debe ser un texto" }),
30913
30925
  Length267(0, 70, { message: "debe tener entre 0 y 70 caracteres" }),
30914
30926
  Expose549(),
30915
- IsOptional33()
30927
+ IsOptional35()
30916
30928
  ], PersonalENTITY.prototype, "ApellidoMaterno", 2);
30917
30929
  __decorateClass([
30918
30930
  IsString437({ message: "debe ser un texto" }),
@@ -31395,7 +31407,7 @@ __decorateClass([
31395
31407
  ], TipoEmpresaDTO.prototype, "Nombre", 2);
31396
31408
 
31397
31409
  // src/configuracion/empresa/shared/index.ts
31398
- import { IsArray as IsArray195, IsBoolean as IsBoolean53, IsNotEmpty as IsNotEmpty403, IsNumber as IsNumber354, IsOptional as IsOptional34, IsString as IsString448, Length as Length277, Min as Min280, ValidateNested as ValidateNested328 } from "class-validator";
31410
+ import { IsArray as IsArray195, IsBoolean as IsBoolean53, IsNotEmpty as IsNotEmpty403, IsNumber as IsNumber354, IsOptional as IsOptional36, IsString as IsString448, Length as Length277, Min as Min280, ValidateNested as ValidateNested328 } from "class-validator";
31399
31411
  var EmpresaENTITY = class {
31400
31412
  ID_Empresa = 0;
31401
31413
  Pais = new CodigoNombreDTO();
@@ -31508,7 +31520,7 @@ __decorateClass([
31508
31520
  Type367(() => DatosGIADTO),
31509
31521
  IsNotEmpty403({ message: "es requerido" }),
31510
31522
  Expose560(),
31511
- IsOptional34(),
31523
+ IsOptional36(),
31512
31524
  ValidateNested328()
31513
31525
  ], EmpresaENTITY.prototype, "DatosGIA", 2);
31514
31526
  __decorateClass([
@@ -32849,7 +32861,7 @@ import {
32849
32861
  ValidateNested as ValidateNested341,
32850
32862
  IsDate as IsDate139,
32851
32863
  Length as Length302,
32852
- IsOptional as IsOptional37,
32864
+ IsOptional as IsOptional39,
32853
32865
  IsArray as IsArray200
32854
32866
  } from "class-validator";
32855
32867
 
@@ -32921,7 +32933,7 @@ __decorateClass([
32921
32933
 
32922
32934
  // src/operativa/procesos/valorizadas_toa/shared/dto/inventario-val-dto.ts
32923
32935
  import { Expose as Expose586, Transform as Transform75 } from "class-transformer";
32924
- import { IsEnum as IsEnum16, IsNotEmpty as IsNotEmpty423, IsNumber as IsNumber369, IsOptional as IsOptional36, IsString as IsString473, Length as Length299, Min as Min293 } from "class-validator";
32936
+ import { IsEnum as IsEnum16, IsNotEmpty as IsNotEmpty423, IsNumber as IsNumber369, IsOptional as IsOptional38, IsString as IsString473, Length as Length299, Min as Min293 } from "class-validator";
32925
32937
  var InventarioValDTO = class {
32926
32938
  Descripcion = "";
32927
32939
  LoteSAP = "";
@@ -32935,13 +32947,13 @@ var InventarioValDTO = class {
32935
32947
  };
32936
32948
  __decorateClass([
32937
32949
  IsString473({ message: "debe ser un texto" }),
32938
- IsOptional36(),
32950
+ IsOptional38(),
32939
32951
  Length299(0, 250, { message: "debe tener entre 1 y 250 caracteres" }),
32940
32952
  Expose586()
32941
32953
  ], InventarioValDTO.prototype, "Descripcion", 2);
32942
32954
  __decorateClass([
32943
32955
  IsString473({ message: "debe ser un texto" }),
32944
- IsOptional36(),
32956
+ IsOptional38(),
32945
32957
  Length299(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
32946
32958
  Expose586()
32947
32959
  ], InventarioValDTO.prototype, "LoteSAP", 2);
@@ -32953,7 +32965,7 @@ __decorateClass([
32953
32965
  ], InventarioValDTO.prototype, "TipoInventario", 2);
32954
32966
  __decorateClass([
32955
32967
  IsString473({ message: "debe ser un texto" }),
32956
- IsOptional36(),
32968
+ IsOptional38(),
32957
32969
  Length299(0, 50, { message: "debe tener entre 0 y 50 caracteres" }),
32958
32970
  Expose586()
32959
32971
  ], InventarioValDTO.prototype, "CodigoSAP", 2);
@@ -32962,7 +32974,7 @@ __decorateClass([
32962
32974
  Transform75(({ value }) => value ? String(value) : value),
32963
32975
  Length299(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
32964
32976
  Expose586(),
32965
- IsOptional36()
32977
+ IsOptional38()
32966
32978
  ], InventarioValDTO.prototype, "NumeroSerie", 2);
32967
32979
  __decorateClass([
32968
32980
  IsNumber369({}, { message: "debe ser un numero" }),
@@ -32981,7 +32993,7 @@ __decorateClass([
32981
32993
  __decorateClass([
32982
32994
  IsString473({ message: "debe ser un texto" }),
32983
32995
  Length299(0, 50, { message: "debe tener una longitud de 0 a 50" }),
32984
- IsOptional36(),
32996
+ IsOptional38(),
32985
32997
  Expose586()
32986
32998
  ], InventarioValDTO.prototype, "ID_Recurso", 2);
32987
32999
 
@@ -33112,14 +33124,14 @@ __decorateClass([
33112
33124
  ], ValorizadaTOAENTITY.prototype, "Peticion", 2);
33113
33125
  __decorateClass([
33114
33126
  IsString476({ message: "debe ser un texto" }),
33115
- IsOptional37(),
33127
+ IsOptional39(),
33116
33128
  Length302(0, 50, { message: "debe tener una longitud de 0 a 50" }),
33117
33129
  Expose589()
33118
33130
  ], ValorizadaTOAENTITY.prototype, "AccessId", 2);
33119
33131
  __decorateClass([
33120
33132
  IsString476({ message: "debe ser un texto" }),
33121
33133
  Length302(0, 250, { message: "debe tener una longitud de 0 a 250" }),
33122
- IsOptional37(),
33134
+ IsOptional39(),
33123
33135
  Expose589()
33124
33136
  ], ValorizadaTOAENTITY.prototype, "FTTX_BAS", 2);
33125
33137
  __decorateClass([
@@ -33144,7 +33156,7 @@ __decorateClass([
33144
33156
  ], ValorizadaTOAENTITY.prototype, "Estado", 2);
33145
33157
  __decorateClass([
33146
33158
  IsString476({ message: "debe ser un texto" }),
33147
- IsOptional37(),
33159
+ IsOptional39(),
33148
33160
  Length302(0, 100, { message: "debe tener una longitud de 0 a 100" }),
33149
33161
  Expose589()
33150
33162
  ], ValorizadaTOAENTITY.prototype, "Ciudad", 2);
@@ -33162,12 +33174,12 @@ __decorateClass([
33162
33174
  IsString476({ message: "debe ser un texto" }),
33163
33175
  Length302(0, 100, { message: "debe tener una longitud de 0 a 100" }),
33164
33176
  Expose589(),
33165
- IsOptional37()
33177
+ IsOptional39()
33166
33178
  ], ValorizadaTOAENTITY.prototype, "Tipo_Acceso", 2);
33167
33179
  __decorateClass([
33168
33180
  IsString476({ message: "debe ser un texto" }),
33169
33181
  Length302(0, 250, { message: "debe tener una longitud de 0 a 250" }),
33170
- IsOptional37(),
33182
+ IsOptional39(),
33171
33183
  Expose589()
33172
33184
  ], ValorizadaTOAENTITY.prototype, "FTTX_AP", 2);
33173
33185
  __decorateClass([
@@ -33283,7 +33295,7 @@ __decorateClass([
33283
33295
  ], ValorizadaTOAENTITY.prototype, "Fecha_Liquidacion", 2);
33284
33296
  __decorateClass([
33285
33297
  IsString476({ message: "debe ser un texto" }),
33286
- IsOptional37(),
33298
+ IsOptional39(),
33287
33299
  Expose589()
33288
33300
  ], ValorizadaTOAENTITY.prototype, "Reutilizaci\xF3n_de_Drop", 2);
33289
33301
  __decorateClass([
@@ -33358,7 +33370,7 @@ __decorateClass([
33358
33370
 
33359
33371
  // src/operativa/procesos/liquidadas_toa/shared/index.ts
33360
33372
  import { Expose as Expose594, Type as Type386 } from "class-transformer";
33361
- import { IsArray as IsArray201, IsNotEmpty as IsNotEmpty431, IsNumber as IsNumber377, IsString as IsString481, Length as Length307, Min as Min301, ValidateNested as ValidateNested342, IsDate as IsDate141, IsOptional as IsOptional38 } from "class-validator";
33373
+ import { IsArray as IsArray201, IsNotEmpty as IsNotEmpty431, IsNumber as IsNumber377, IsString as IsString481, Length as Length307, Min as Min301, ValidateNested as ValidateNested342, IsDate as IsDate141, IsOptional as IsOptional40 } from "class-validator";
33362
33374
 
33363
33375
  // src/operativa/procesos/liquidadas_toa/shared/dto/productos-servicios-dto.ts
33364
33376
  import { Expose as Expose590 } from "class-transformer";
@@ -33616,7 +33628,7 @@ __decorateClass([
33616
33628
  ], LiquidadaTOAENTITY.prototype, "Orden", 2);
33617
33629
  __decorateClass([
33618
33630
  IsString481({ message: "debe ser un texto" }),
33619
- IsOptional38(),
33631
+ IsOptional40(),
33620
33632
  Length307(0, 50, { message: "debe tener una longitud de 0 a 50" }),
33621
33633
  Expose594()
33622
33634
  ], LiquidadaTOAENTITY.prototype, "AccessId", 2);
@@ -36358,7 +36370,7 @@ __decorateClass([
36358
36370
 
36359
36371
  // src/operativa/procesos/toa_movistar/shared/dto/valorizacion-peru-toa-dto.ts
36360
36372
  import { Expose as Expose629 } from "class-transformer";
36361
- import { IsNumber as IsNumber394, IsOptional as IsOptional39, IsString as IsString512 } from "class-validator";
36373
+ import { IsNumber as IsNumber394, IsOptional as IsOptional41, IsString as IsString512 } from "class-validator";
36362
36374
  import "reflect-metadata";
36363
36375
  var ValorizacionPeruTOADTO = class {
36364
36376
  pbBase = 0;
@@ -36372,35 +36384,35 @@ var ValorizacionPeruTOADTO = class {
36372
36384
  __decorateClass([
36373
36385
  Expose629(),
36374
36386
  IsNumber394(),
36375
- IsOptional39()
36387
+ IsOptional41()
36376
36388
  ], ValorizacionPeruTOADTO.prototype, "pbBase", 2);
36377
36389
  __decorateClass([
36378
36390
  Expose629(),
36379
36391
  IsNumber394(),
36380
- IsOptional39()
36392
+ IsOptional41()
36381
36393
  ], ValorizacionPeruTOADTO.prototype, "pbAdicional", 2);
36382
36394
  __decorateClass([
36383
36395
  Expose629(),
36384
- IsOptional39()
36396
+ IsOptional41()
36385
36397
  ], ValorizacionPeruTOADTO.prototype, "pbByMaterial", 2);
36386
36398
  __decorateClass([
36387
36399
  Expose629(),
36388
- IsOptional39()
36400
+ IsOptional41()
36389
36401
  ], ValorizacionPeruTOADTO.prototype, "quantities", 2);
36390
36402
  __decorateClass([
36391
36403
  Expose629(),
36392
36404
  IsString512(),
36393
- IsOptional39()
36405
+ IsOptional41()
36394
36406
  ], ValorizacionPeruTOADTO.prototype, "TABLA", 2);
36395
36407
  __decorateClass([
36396
36408
  Expose629(),
36397
36409
  IsString512(),
36398
- IsOptional39()
36410
+ IsOptional41()
36399
36411
  ], ValorizacionPeruTOADTO.prototype, "Actividad", 2);
36400
36412
  __decorateClass([
36401
36413
  Expose629(),
36402
36414
  IsString512(),
36403
- IsOptional39()
36415
+ IsOptional41()
36404
36416
  ], ValorizacionPeruTOADTO.prototype, "PAQUETE", 2);
36405
36417
 
36406
36418
  // src/operativa/procesos/toa_movistar/shared/dto/estado-proceso-val-peru.ts
@@ -36446,7 +36458,7 @@ import "reflect-metadata";
36446
36458
 
36447
36459
  // src/operativa/procesos/toa_movistar_db/shared/dto/ajuste-reproceso-dto.ts
36448
36460
  import { Expose as Expose631, Type as Type400 } from "class-transformer";
36449
- import { IsDate as IsDate148, IsNumber as IsNumber395, IsOptional as IsOptional40, IsString as IsString514, ValidateNested as ValidateNested351 } from "class-validator";
36461
+ import { IsDate as IsDate148, IsNumber as IsNumber395, IsOptional as IsOptional42, IsString as IsString514, ValidateNested as ValidateNested351 } from "class-validator";
36450
36462
  var AjusteReprocesoDTO = class {
36451
36463
  PB;
36452
36464
  MO;
@@ -36462,58 +36474,58 @@ var AjusteReprocesoDTO = class {
36462
36474
  };
36463
36475
  __decorateClass([
36464
36476
  Expose631(),
36465
- IsOptional40(),
36477
+ IsOptional42(),
36466
36478
  IsNumber395()
36467
36479
  ], AjusteReprocesoDTO.prototype, "PB", 2);
36468
36480
  __decorateClass([
36469
36481
  Expose631(),
36470
- IsOptional40(),
36482
+ IsOptional42(),
36471
36483
  IsNumber395()
36472
36484
  ], AjusteReprocesoDTO.prototype, "MO", 2);
36473
36485
  __decorateClass([
36474
36486
  Expose631(),
36475
- IsOptional40(),
36487
+ IsOptional42(),
36476
36488
  IsNumber395()
36477
36489
  ], AjusteReprocesoDTO.prototype, "Gasto_EECC", 2);
36478
36490
  __decorateClass([
36479
36491
  Expose631(),
36480
- IsOptional40(),
36492
+ IsOptional42(),
36481
36493
  IsString514()
36482
36494
  ], AjusteReprocesoDTO.prototype, "tecnico", 2);
36483
36495
  __decorateClass([
36484
36496
  Expose631(),
36485
- IsOptional40(),
36497
+ IsOptional42(),
36486
36498
  IsString514()
36487
36499
  ], AjusteReprocesoDTO.prototype, "id_recurso", 2);
36488
36500
  __decorateClass([
36489
36501
  Expose631(),
36490
- IsOptional40(),
36502
+ IsOptional42(),
36491
36503
  ValidateNested351(),
36492
36504
  Type400(() => EECCDBTOADTO)
36493
36505
  ], AjusteReprocesoDTO.prototype, "EECC", 2);
36494
36506
  __decorateClass([
36495
36507
  Expose631(),
36496
- IsOptional40(),
36508
+ IsOptional42(),
36497
36509
  IsNumber395()
36498
36510
  ], AjusteReprocesoDTO.prototype, "accessid_origen", 2);
36499
36511
  __decorateClass([
36500
36512
  Expose631(),
36501
- IsOptional40(),
36513
+ IsOptional42(),
36502
36514
  IsString514()
36503
36515
  ], AjusteReprocesoDTO.prototype, "_id_orden_origen", 2);
36504
36516
  __decorateClass([
36505
36517
  Expose631(),
36506
- IsOptional40(),
36518
+ IsOptional42(),
36507
36519
  IsString514()
36508
36520
  ], AjusteReprocesoDTO.prototype, "numero_de_peticion", 2);
36509
36521
  __decorateClass([
36510
36522
  Expose631(),
36511
- IsOptional40(),
36523
+ IsOptional42(),
36512
36524
  IsNumber395()
36513
36525
  ], AjusteReprocesoDTO.prototype, "codigo_de_cliente", 2);
36514
36526
  __decorateClass([
36515
36527
  Expose631(),
36516
- IsOptional40(),
36528
+ IsOptional42(),
36517
36529
  IsDate148(),
36518
36530
  Type400(() => Date)
36519
36531
  ], AjusteReprocesoDTO.prototype, "fecha_origen", 2);
@@ -37611,7 +37623,7 @@ import { Expose as Expose648, Transform as Transform86, Type as Type405 } from "
37611
37623
 
37612
37624
  // src/operativa/procesos/onnet_fibra/shared/dto/bitacora_de_ordenes.ts
37613
37625
  import { Expose as Expose640, Transform as Transform82 } from "class-transformer";
37614
- import { IsDate as IsDate151, IsDefined as IsDefined176, IsNumber as IsNumber401, IsOptional as IsOptional42, IsString as IsString523 } from "class-validator";
37626
+ import { IsDate as IsDate151, IsDefined as IsDefined176, IsNumber as IsNumber401, IsOptional as IsOptional44, IsString as IsString523 } from "class-validator";
37615
37627
 
37616
37628
  // src/operativa/procesos/onnet_fibra/utils/format_date_onnet_fibra.ts
37617
37629
  function formatDateOnnetFibra(date) {
@@ -37677,13 +37689,13 @@ __decorateClass([
37677
37689
  Expose640()
37678
37690
  ], BitacoraDeOrdenesDTO.prototype, "estado", 2);
37679
37691
  __decorateClass([
37680
- IsOptional42(),
37692
+ IsOptional44(),
37681
37693
  Transform82(({ value }) => value ? String(value) : ""),
37682
37694
  IsString523({ message: "El campo lt debe ser una cadena de texto" }),
37683
37695
  Expose640()
37684
37696
  ], BitacoraDeOrdenesDTO.prototype, "lt", 2);
37685
37697
  __decorateClass([
37686
- IsOptional42(),
37698
+ IsOptional44(),
37687
37699
  IsNumber401({}, { message: "El campo id_orden_mantenimiento_anexo debe ser un n\xFAmero" }),
37688
37700
  Transform82(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
37689
37701
  Expose640()
@@ -37694,7 +37706,7 @@ __decorateClass([
37694
37706
  Expose640()
37695
37707
  ], BitacoraDeOrdenesDTO.prototype, "contratista", 2);
37696
37708
  __decorateClass([
37697
- IsOptional42(),
37709
+ IsOptional44(),
37698
37710
  IsNumber401({}, { message: "El campo cantidad_clientes_afectados debe ser un n\xFAmero" }),
37699
37711
  Transform82(({ value }) => typeof value === "number" && !isNaN(value) ? Number(value) : 0),
37700
37712
  Expose640()
@@ -37730,13 +37742,13 @@ __decorateClass([
37730
37742
  Expose640()
37731
37743
  ], BitacoraDeOrdenesDTO.prototype, "impacto", 2);
37732
37744
  __decorateClass([
37733
- IsOptional42(),
37745
+ IsOptional44(),
37734
37746
  IsString523({ message: "El campo tecnologia debe ser una cadena de texto" }),
37735
37747
  Transform82(({ value }) => typeof value !== "string" ? "" : String(value)),
37736
37748
  Expose640()
37737
37749
  ], BitacoraDeOrdenesDTO.prototype, "tecnologia", 2);
37738
37750
  __decorateClass([
37739
- IsOptional42(),
37751
+ IsOptional44(),
37740
37752
  IsString523({ message: "El campo olt debe ser una cadena de texto" }),
37741
37753
  Transform82(({ value }) => typeof value !== "string" ? "" : String(value)),
37742
37754
  Expose640()
@@ -37792,7 +37804,7 @@ __decorateClass([
37792
37804
  Expose640()
37793
37805
  ], BitacoraDeOrdenesDTO.prototype, "tipo_orden", 2);
37794
37806
  __decorateClass([
37795
- IsOptional42(),
37807
+ IsOptional44(),
37796
37808
  Transform82(({ value }) => formatDateOnnetFibra(value)),
37797
37809
  IsDate151({ message: "El campo fecha_instalacion debe ser FECHA" }),
37798
37810
  Expose640()
@@ -37813,30 +37825,30 @@ __decorateClass([
37813
37825
  Expose640()
37814
37826
  ], BitacoraDeOrdenesDTO.prototype, "tipo_contrato", 2);
37815
37827
  __decorateClass([
37816
- IsOptional42(),
37828
+ IsOptional44(),
37817
37829
  IsString523({ message: "El campo puerto_pon debe ser una cadena de texto" }),
37818
37830
  Transform82(({ value }) => typeof value !== "string" ? "" : String(value)),
37819
37831
  Expose640()
37820
37832
  ], BitacoraDeOrdenesDTO.prototype, "puerto_pon", 2);
37821
37833
  __decorateClass([
37822
- IsOptional42(),
37834
+ IsOptional44(),
37823
37835
  IsString523({ message: "El campo nombre_especialidad debe ser una cadena de texto" }),
37824
37836
  Expose640()
37825
37837
  ], BitacoraDeOrdenesDTO.prototype, "nombre_especialidad", 2);
37826
37838
  __decorateClass([
37827
- IsOptional42({ message: "El campo cliente es opcional" }),
37839
+ IsOptional44({ message: "El campo cliente es opcional" }),
37828
37840
  Transform82(({ value }) => typeof value !== "string" ? "" : String(value)),
37829
37841
  IsString523({ message: "El campo cliente debe ser una cadena de texto" }),
37830
37842
  Expose640()
37831
37843
  ], BitacoraDeOrdenesDTO.prototype, "cliente", 2);
37832
37844
  __decorateClass([
37833
- IsOptional42({ message: "El campo comuna es opcional" }),
37845
+ IsOptional44({ message: "El campo comuna es opcional" }),
37834
37846
  Transform82(({ value }) => typeof value !== "string" ? "" : String(value)),
37835
37847
  IsString523({ message: "El campo comuna debe ser una cadena de texto" }),
37836
37848
  Expose640()
37837
37849
  ], BitacoraDeOrdenesDTO.prototype, "comuna", 2);
37838
37850
  __decorateClass([
37839
- IsOptional42({ message: "El campo pep es opcional" }),
37851
+ IsOptional44({ message: "El campo pep es opcional" }),
37840
37852
  IsString523({ message: "El campo pep debe ser una cadena de texto" }),
37841
37853
  Transform82(({ value }) => typeof value !== "string" ? "" : String(value)),
37842
37854
  Expose640()
@@ -37846,38 +37858,38 @@ __decorateClass([
37846
37858
  Expose640()
37847
37859
  ], BitacoraDeOrdenesDTO.prototype, "observacion", 2);
37848
37860
  __decorateClass([
37849
- IsOptional42({ message: "El campo proyecto es opcional" }),
37861
+ IsOptional44({ message: "El campo proyecto es opcional" }),
37850
37862
  IsString523({ message: "El campo proyecto debe ser una cadena de texto" }),
37851
37863
  Expose640()
37852
37864
  ], BitacoraDeOrdenesDTO.prototype, "proyecto", 2);
37853
37865
  __decorateClass([
37854
- IsOptional42({ message: "El campo producto es opcional" }),
37866
+ IsOptional44({ message: "El campo producto es opcional" }),
37855
37867
  IsString523({ message: "El campo producto debe ser una cadena de texto" }),
37856
37868
  Expose640()
37857
37869
  ], BitacoraDeOrdenesDTO.prototype, "producto", 2);
37858
37870
  __decorateClass([
37859
- IsOptional42({ message: "El campo sub_tipo_orden es opcional" }),
37871
+ IsOptional44({ message: "El campo sub_tipo_orden es opcional" }),
37860
37872
  IsString523({ message: "El campo sub_tipo_orden debe ser una cadena de texto" }),
37861
37873
  Expose640()
37862
37874
  ], BitacoraDeOrdenesDTO.prototype, "sub_tipo_orden", 2);
37863
37875
  __decorateClass([
37864
- IsOptional42({ message: "El campo nombre_tecnico es opcional" }),
37876
+ IsOptional44({ message: "El campo nombre_tecnico es opcional" }),
37865
37877
  IsString523({ message: "El campo nombre_tecnico debe ser una cadena de texto" }),
37866
37878
  Expose640()
37867
37879
  ], BitacoraDeOrdenesDTO.prototype, "nombre_tecnico", 2);
37868
37880
  __decorateClass([
37869
- IsOptional42(),
37881
+ IsOptional44(),
37870
37882
  IsNumber401({}, { message: "El campo capacidad_cable debe ser una cadena de texto" }),
37871
37883
  Transform82(({ value }) => isNaN(value) ? 0 : Number(value)),
37872
37884
  Expose640()
37873
37885
  ], BitacoraDeOrdenesDTO.prototype, "capacidad_cable", 2);
37874
37886
  __decorateClass([
37875
- IsOptional42({ message: "El campo sintoma es opcional" }),
37887
+ IsOptional44({ message: "El campo sintoma es opcional" }),
37876
37888
  IsNumber401({}, { message: "El campo sintoma debe ser un n\xFAmero" }),
37877
37889
  Expose640()
37878
37890
  ], BitacoraDeOrdenesDTO.prototype, "sintoma", 2);
37879
37891
  __decorateClass([
37880
- IsOptional42({ message: "El campo mensaje_contingencia es opcional" }),
37892
+ IsOptional44({ message: "El campo mensaje_contingencia es opcional" }),
37881
37893
  IsString523({ message: "El campo mensaje_contingencia debe ser una cadena de texto" }),
37882
37894
  Expose640()
37883
37895
  ], BitacoraDeOrdenesDTO.prototype, "mensaje_contingencia", 2);
@@ -38032,7 +38044,7 @@ import { IsArray as IsArray208, IsDefined as IsDefined182, IsString as IsString5
38032
38044
 
38033
38045
  // src/operativa/procesos/onnet_fibra/shared/dto/detail-maintenance-order/detalle_orden_real_dto.ts
38034
38046
  import { Expose as Expose643, Transform as Transform84, Type as Type403 } from "class-transformer";
38035
- import { IsDefined as IsDefined179, IsNumber as IsNumber404, IsOptional as IsOptional43, IsString as IsString526 } from "class-validator";
38047
+ import { IsDefined as IsDefined179, IsNumber as IsNumber404, IsOptional as IsOptional45, IsString as IsString526 } from "class-validator";
38036
38048
  var DetalleOrdenRealDTO = class {
38037
38049
  descripcion = "";
38038
38050
  tipo = "";
@@ -38079,7 +38091,7 @@ __decorateClass([
38079
38091
  Expose643()
38080
38092
  ], DetalleOrdenRealDTO.prototype, "id_orden_mantenimiento_real", 2);
38081
38093
  __decorateClass([
38082
- IsOptional43({ message: "El campo tecnico es requerido" }),
38094
+ IsOptional45({ message: "El campo tecnico es requerido" }),
38083
38095
  IsString526({ message: "El campo tecnico debe ser una cadena de texto" }),
38084
38096
  Transform84(({ value }) => typeof value !== "string" ? "" : String(value)),
38085
38097
  Expose643()
@@ -38094,14 +38106,14 @@ __decorateClass([
38094
38106
  Expose643()
38095
38107
  ], DetalleOrdenRealDTO.prototype, "cantidad", 2);
38096
38108
  __decorateClass([
38097
- IsOptional43({ message: "El campo contrato es opcional" }),
38109
+ IsOptional45({ message: "El campo contrato es opcional" }),
38098
38110
  IsString526({ message: "El campo contrato debe ser una cadena de texto" }),
38099
38111
  Transform84(({ value }) => typeof value !== "string" ? "" : String(value)),
38100
38112
  Expose643()
38101
38113
  ], DetalleOrdenRealDTO.prototype, "contrato", 2);
38102
38114
  __decorateClass([
38103
38115
  Type403(() => CodigoNombreDTO),
38104
- IsOptional43(),
38116
+ IsOptional45(),
38105
38117
  Transform84(({ value }) => value ?? new CodigoNombreDTO()),
38106
38118
  Expose643()
38107
38119
  ], DetalleOrdenRealDTO.prototype, "especialidad", 2);
@@ -41584,7 +41596,7 @@ __decorateClass([
41584
41596
 
41585
41597
  // src/operativa/procesos/tuves/shared/dto/ordenes_instalaciones_dto.ts
41586
41598
  import { Expose as Expose669, Type as Type421 } from "class-transformer";
41587
- import { IsDate as IsDate165, IsDefined as IsDefined204, IsNumber as IsNumber428, IsOptional as IsOptional45, IsString as IsString552 } from "class-validator";
41599
+ import { IsDate as IsDate165, IsDefined as IsDefined204, IsNumber as IsNumber428, IsOptional as IsOptional47, IsString as IsString552 } from "class-validator";
41588
41600
  var OrdenesInstalacionDTO = class {
41589
41601
  EMPRESA = "";
41590
41602
  FECHA_INGRESO = /* @__PURE__ */ new Date();
@@ -41773,25 +41785,25 @@ __decorateClass([
41773
41785
  __decorateClass([
41774
41786
  Expose669(),
41775
41787
  ForceString(),
41776
- IsOptional45(),
41788
+ IsOptional47(),
41777
41789
  IsString552()
41778
41790
  ], OrdenesInstalacionDTO.prototype, "TECCOD", 2);
41779
41791
  __decorateClass([
41780
41792
  Expose669(),
41781
41793
  ForceString(),
41782
- IsOptional45(),
41794
+ IsOptional47(),
41783
41795
  IsString552()
41784
41796
  ], OrdenesInstalacionDTO.prototype, "TECNICO", 2);
41785
41797
  __decorateClass([
41786
41798
  Expose669(),
41787
41799
  ForceString(),
41788
- IsOptional45(),
41800
+ IsOptional47(),
41789
41801
  IsString552()
41790
41802
  ], OrdenesInstalacionDTO.prototype, "FINALIZA_ONLINE", 2);
41791
41803
 
41792
41804
  // src/operativa/procesos/tuves/shared/dto/reclamos_distribuidor_dto.ts
41793
41805
  import { Expose as Expose670 } from "class-transformer";
41794
- import { IsDefined as IsDefined205, IsNumber as IsNumber429, IsOptional as IsOptional46, IsString as IsString553 } from "class-validator";
41806
+ import { IsDefined as IsDefined205, IsNumber as IsNumber429, IsOptional as IsOptional48, IsString as IsString553 } from "class-validator";
41795
41807
  var ReclamosDistribuidorDTO = class {
41796
41808
  FECHA = /* @__PURE__ */ new Date(0);
41797
41809
  PERMISOR = 0;
@@ -41949,7 +41961,7 @@ __decorateClass([
41949
41961
  __decorateClass([
41950
41962
  Expose670(),
41951
41963
  ForceString(),
41952
- IsOptional46(),
41964
+ IsOptional48(),
41953
41965
  IsString553()
41954
41966
  ], ReclamosDistribuidorDTO.prototype, "OBS_ORIGINAL", 2);
41955
41967
  __decorateClass([
@@ -42410,7 +42422,7 @@ __decorateClass([
42410
42422
  ], TuvesOrdEqFinalizadasDTO.prototype, "FECHA", 2);
42411
42423
 
42412
42424
  // src/operativa/procesos/tuves/shared/dto/tuves_ord_recl_mat_descargado_dto.ts
42413
- import { IsDate as IsDate168, IsDefined as IsDefined208, IsNumber as IsNumber432, IsOptional as IsOptional47, IsString as IsString556 } from "class-validator";
42425
+ import { IsDate as IsDate168, IsDefined as IsDefined208, IsNumber as IsNumber432, IsOptional as IsOptional49, IsString as IsString556 } from "class-validator";
42414
42426
  import { Expose as Expose673, Type as Type422 } from "class-transformer";
42415
42427
  var TUVESOrdReclMatDescargadoDTO = class {
42416
42428
  EMPRESA = "";
@@ -42600,19 +42612,19 @@ __decorateClass([
42600
42612
  __decorateClass([
42601
42613
  Expose673(),
42602
42614
  ForceString(),
42603
- IsOptional47(),
42615
+ IsOptional49(),
42604
42616
  IsString556()
42605
42617
  ], TUVESOrdReclMatDescargadoDTO.prototype, "TECCOD", 2);
42606
42618
  __decorateClass([
42607
42619
  Expose673(),
42608
42620
  ForceString(),
42609
- IsOptional47(),
42621
+ IsOptional49(),
42610
42622
  IsString556()
42611
42623
  ], TUVESOrdReclMatDescargadoDTO.prototype, "TECNICO", 2);
42612
42624
  __decorateClass([
42613
42625
  Expose673(),
42614
42626
  ForceString(),
42615
- IsOptional47(),
42627
+ IsOptional49(),
42616
42628
  IsString556()
42617
42629
  ], TUVESOrdReclMatDescargadoDTO.prototype, "FINALIZA_ONLINE", 2);
42618
42630
 
@@ -43531,7 +43543,7 @@ __decorateClass([
43531
43543
 
43532
43544
  // src/operativa/procesos/somacyl_order/shared/dto/valorizacion-somacyl-dto.ts
43533
43545
  import { Expose as Expose682 } from "class-transformer";
43534
- import { IsNumber as IsNumber440, IsOptional as IsOptional48 } from "class-validator";
43546
+ import { IsNumber as IsNumber440, IsOptional as IsOptional50 } from "class-validator";
43535
43547
  import "reflect-metadata";
43536
43548
  var ValorizacionSomacylDTO = class {
43537
43549
  pbBase = 0;
@@ -43540,12 +43552,12 @@ var ValorizacionSomacylDTO = class {
43540
43552
  __decorateClass([
43541
43553
  Expose682(),
43542
43554
  IsNumber440(),
43543
- IsOptional48()
43555
+ IsOptional50()
43544
43556
  ], ValorizacionSomacylDTO.prototype, "pbBase", 2);
43545
43557
  __decorateClass([
43546
43558
  Expose682(),
43547
43559
  IsNumber440(),
43548
- IsOptional48()
43560
+ IsOptional50()
43549
43561
  ], ValorizacionSomacylDTO.prototype, "pbAdicional", 2);
43550
43562
 
43551
43563
  // src/operativa/procesos/somacyl_order/shared/dto/estado-proceso-val-somacyl.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-entities",
3
- "version": "1.2.277",
3
+ "version": "1.2.279",
4
4
  "description": "Desarrollo de modelos de datos SIGO",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",