@experts_hub/shared 1.0.445 → 1.0.447

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
@@ -6740,8 +6740,8 @@ __decorateClass([
6740
6740
  ], UpdateInvoiceStatusDto.prototype, "status", 2);
6741
6741
 
6742
6742
  // src/modules/dispute/dto/create-dispute.dto.ts
6743
- var import_types = require("class-transformer/types");
6744
6743
  var import_class_validator77 = require("class-validator");
6744
+ var import_class_transformer16 = require("class-transformer");
6745
6745
  var CreateDisputeDto = class {
6746
6746
  };
6747
6747
  __decorateClass([
@@ -6759,11 +6759,19 @@ __decorateClass([
6759
6759
  (0, import_class_validator77.IsString)({ message: "Comment must be a string" }),
6760
6760
  (0, import_class_validator77.MaxLength)(500, { message: "Comment must not exceed 500 characters" })
6761
6761
  ], CreateDisputeDto.prototype, "comment", 2);
6762
- // ensures it’s parsed as an object when passed as JSON string in multipart/form-data
6763
6762
  __decorateClass([
6764
6763
  (0, import_class_validator77.IsOptional)(),
6765
6764
  (0, import_class_validator77.IsObject)({ message: "Dynamic fields must be a valid object" }),
6766
- (0, import_types.Type)(() => Object)
6765
+ (0, import_class_transformer16.Transform)(({ value }) => {
6766
+ if (typeof value === "string") {
6767
+ try {
6768
+ return JSON.parse(value);
6769
+ } catch {
6770
+ return value;
6771
+ }
6772
+ }
6773
+ return value;
6774
+ })
6767
6775
  ], CreateDisputeDto.prototype, "dynamicFields", 2);
6768
6776
 
6769
6777
  // src/adapters/tcp/user.tcp.adapter.ts
package/dist/index.mjs CHANGED
@@ -6888,7 +6888,6 @@ __decorateClass([
6888
6888
  ], UpdateInvoiceStatusDto.prototype, "status", 2);
6889
6889
 
6890
6890
  // src/modules/dispute/dto/create-dispute.dto.ts
6891
- import { Type as Type14 } from "class-transformer/types";
6892
6891
  import {
6893
6892
  IsString as IsString44,
6894
6893
  IsNotEmpty as IsNotEmpty67,
@@ -6897,6 +6896,7 @@ import {
6897
6896
  MaxLength as MaxLength19,
6898
6897
  IsObject
6899
6898
  } from "class-validator";
6899
+ import { Transform as Transform4 } from "class-transformer";
6900
6900
  var CreateDisputeDto = class {
6901
6901
  };
6902
6902
  __decorateClass([
@@ -6914,11 +6914,19 @@ __decorateClass([
6914
6914
  IsString44({ message: "Comment must be a string" }),
6915
6915
  MaxLength19(500, { message: "Comment must not exceed 500 characters" })
6916
6916
  ], CreateDisputeDto.prototype, "comment", 2);
6917
- // ensures it’s parsed as an object when passed as JSON string in multipart/form-data
6918
6917
  __decorateClass([
6919
6918
  IsOptional42(),
6920
6919
  IsObject({ message: "Dynamic fields must be a valid object" }),
6921
- Type14(() => Object)
6920
+ Transform4(({ value }) => {
6921
+ if (typeof value === "string") {
6922
+ try {
6923
+ return JSON.parse(value);
6924
+ } catch {
6925
+ return value;
6926
+ }
6927
+ }
6928
+ return value;
6929
+ })
6922
6930
  ], CreateDisputeDto.prototype, "dynamicFields", 2);
6923
6931
 
6924
6932
  // src/adapters/tcp/user.tcp.adapter.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.445",
3
+ "version": "1.0.447",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",