sigo-entities 1.2.197 → 1.2.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.js CHANGED
@@ -38658,6 +38658,10 @@ var import_class_transformer595 = require("class-transformer");
38658
38658
  var import_class_validator596 = require("class-validator");
38659
38659
  var import_reflect_metadata29 = require("reflect-metadata");
38660
38660
  var Trim = () => (0, import_class_transformer595.Transform)(({ value }) => typeof value === "string" ? value.trim() : value);
38661
+ var ForceString = () => (0, import_class_transformer595.Transform)(({ value }) => {
38662
+ if (value === null || value === void 0) return "";
38663
+ return String(value).trim();
38664
+ });
38661
38665
  var MaterialDistribuidoDTO = class {
38662
38666
  DEPARTAMENTO = "";
38663
38667
  PROVINCIA = "";
@@ -38717,7 +38721,7 @@ __decorateClass([
38717
38721
  (0, import_class_transformer595.Expose)(),
38718
38722
  Trim(),
38719
38723
  (0, import_class_validator596.IsDefined)(),
38720
- (0, import_class_validator596.IsString)()
38724
+ ForceString()
38721
38725
  ], MaterialDistribuidoDTO.prototype, "NOMBRE", 2);
38722
38726
  __decorateClass([
38723
38727
  (0, import_class_transformer595.Expose)(),
@@ -38876,8 +38880,8 @@ __decorateClass([
38876
38880
  ], OrdenesInstalacionDTO.prototype, "DOCUMENTO", 2);
38877
38881
  __decorateClass([
38878
38882
  (0, import_class_transformer595.Expose)(),
38883
+ ForceString(),
38879
38884
  Trim(),
38880
- (0, import_class_transformer595.Transform)(({ value }) => value ? String(value) : ""),
38881
38885
  (0, import_class_validator596.IsDefined)(),
38882
38886
  (0, import_class_validator596.IsString)()
38883
38887
  ], OrdenesInstalacionDTO.prototype, "SMARTCARD", 2);
@@ -38919,8 +38923,8 @@ __decorateClass([
38919
38923
  ], OrdenesInstalacionDTO.prototype, "CALLE", 2);
38920
38924
  __decorateClass([
38921
38925
  (0, import_class_transformer595.Expose)(),
38926
+ ForceString(),
38922
38927
  Trim(),
38923
- (0, import_class_transformer595.Transform)(({ value }) => value ? String(value) : ""),
38924
38928
  (0, import_class_validator596.IsDefined)(),
38925
38929
  (0, import_class_validator596.IsString)()
38926
38930
  ], OrdenesInstalacionDTO.prototype, "CASA", 2);
@@ -38968,17 +38972,17 @@ __decorateClass([
38968
38972
  ], OrdenesInstalacionDTO.prototype, "FECHA", 2);
38969
38973
  __decorateClass([
38970
38974
  (0, import_class_transformer595.Expose)(),
38975
+ ForceString(),
38971
38976
  Trim(),
38972
38977
  (0, import_class_validator596.IsOptional)(),
38973
- (0, import_class_validator596.IsString)(),
38974
- (0, import_class_transformer595.Transform)(({ value }) => value ? String(value) : "")
38978
+ (0, import_class_validator596.IsString)()
38975
38979
  ], OrdenesInstalacionDTO.prototype, "TECCOD", 2);
38976
38980
  __decorateClass([
38977
38981
  (0, import_class_transformer595.Expose)(),
38982
+ ForceString(),
38978
38983
  Trim(),
38979
38984
  (0, import_class_validator596.IsOptional)(),
38980
- (0, import_class_validator596.IsString)(),
38981
- (0, import_class_transformer595.Transform)(({ value }) => value ? String(value) : "")
38985
+ (0, import_class_validator596.IsString)()
38982
38986
  ], OrdenesInstalacionDTO.prototype, "TECNICO", 2);
38983
38987
  __decorateClass([
38984
38988
  (0, import_class_transformer595.Expose)(),
@@ -39142,10 +39146,10 @@ __decorateClass([
39142
39146
  ], ReclamosDistribuidorDTO.prototype, "STATUS", 2);
39143
39147
  __decorateClass([
39144
39148
  (0, import_class_transformer595.Expose)(),
39149
+ ForceString(),
39145
39150
  Trim(),
39146
39151
  (0, import_class_validator596.IsOptional)(),
39147
- (0, import_class_validator596.IsString)(),
39148
- (0, import_class_transformer595.Transform)(({ value }) => value ? String(value) : "")
39152
+ (0, import_class_validator596.IsString)()
39149
39153
  ], ReclamosDistribuidorDTO.prototype, "OBS_ORIGINAL", 2);
39150
39154
  __decorateClass([
39151
39155
  (0, import_class_transformer595.Expose)(),
package/dist/index.mjs CHANGED
@@ -38311,6 +38311,10 @@ import {
38311
38311
  } from "class-validator";
38312
38312
  import "reflect-metadata";
38313
38313
  var Trim = () => Transform79(({ value }) => typeof value === "string" ? value.trim() : value);
38314
+ var ForceString = () => Transform79(({ value }) => {
38315
+ if (value === null || value === void 0) return "";
38316
+ return String(value).trim();
38317
+ });
38314
38318
  var MaterialDistribuidoDTO = class {
38315
38319
  DEPARTAMENTO = "";
38316
38320
  PROVINCIA = "";
@@ -38370,7 +38374,7 @@ __decorateClass([
38370
38374
  Expose592(),
38371
38375
  Trim(),
38372
38376
  IsDefined195(),
38373
- IsString486()
38377
+ ForceString()
38374
38378
  ], MaterialDistribuidoDTO.prototype, "NOMBRE", 2);
38375
38379
  __decorateClass([
38376
38380
  Expose592(),
@@ -38529,8 +38533,8 @@ __decorateClass([
38529
38533
  ], OrdenesInstalacionDTO.prototype, "DOCUMENTO", 2);
38530
38534
  __decorateClass([
38531
38535
  Expose592(),
38536
+ ForceString(),
38532
38537
  Trim(),
38533
- Transform79(({ value }) => value ? String(value) : ""),
38534
38538
  IsDefined195(),
38535
38539
  IsString486()
38536
38540
  ], OrdenesInstalacionDTO.prototype, "SMARTCARD", 2);
@@ -38572,8 +38576,8 @@ __decorateClass([
38572
38576
  ], OrdenesInstalacionDTO.prototype, "CALLE", 2);
38573
38577
  __decorateClass([
38574
38578
  Expose592(),
38579
+ ForceString(),
38575
38580
  Trim(),
38576
- Transform79(({ value }) => value ? String(value) : ""),
38577
38581
  IsDefined195(),
38578
38582
  IsString486()
38579
38583
  ], OrdenesInstalacionDTO.prototype, "CASA", 2);
@@ -38621,17 +38625,17 @@ __decorateClass([
38621
38625
  ], OrdenesInstalacionDTO.prototype, "FECHA", 2);
38622
38626
  __decorateClass([
38623
38627
  Expose592(),
38628
+ ForceString(),
38624
38629
  Trim(),
38625
38630
  IsOptional32(),
38626
- IsString486(),
38627
- Transform79(({ value }) => value ? String(value) : "")
38631
+ IsString486()
38628
38632
  ], OrdenesInstalacionDTO.prototype, "TECCOD", 2);
38629
38633
  __decorateClass([
38630
38634
  Expose592(),
38635
+ ForceString(),
38631
38636
  Trim(),
38632
38637
  IsOptional32(),
38633
- IsString486(),
38634
- Transform79(({ value }) => value ? String(value) : "")
38638
+ IsString486()
38635
38639
  ], OrdenesInstalacionDTO.prototype, "TECNICO", 2);
38636
38640
  __decorateClass([
38637
38641
  Expose592(),
@@ -38795,10 +38799,10 @@ __decorateClass([
38795
38799
  ], ReclamosDistribuidorDTO.prototype, "STATUS", 2);
38796
38800
  __decorateClass([
38797
38801
  Expose592(),
38802
+ ForceString(),
38798
38803
  Trim(),
38799
38804
  IsOptional32(),
38800
- IsString486(),
38801
- Transform79(({ value }) => value ? String(value) : "")
38805
+ IsString486()
38802
38806
  ], ReclamosDistribuidorDTO.prototype, "OBS_ORIGINAL", 2);
38803
38807
  __decorateClass([
38804
38808
  Expose592(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-entities",
3
- "version": "1.2.197",
3
+ "version": "1.2.198",
4
4
  "description": "Desarrollo de modelos de datos SIGO",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",