@experts_hub/shared 1.0.443 → 1.0.445
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
CHANGED
|
@@ -1673,6 +1673,7 @@ declare class Dispute extends BaseEntity {
|
|
|
1673
1673
|
respondentId: number;
|
|
1674
1674
|
respondent: User;
|
|
1675
1675
|
attachments: any[];
|
|
1676
|
+
dynamicFields: Record<string, any>;
|
|
1676
1677
|
}
|
|
1677
1678
|
|
|
1678
1679
|
declare enum AccountType {
|
|
@@ -2681,6 +2682,7 @@ declare class CreateDisputeDto {
|
|
|
2681
2682
|
disputeType: string;
|
|
2682
2683
|
description: any;
|
|
2683
2684
|
comment?: string;
|
|
2685
|
+
dynamicFields?: Record<string, any>;
|
|
2684
2686
|
}
|
|
2685
2687
|
|
|
2686
2688
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
package/dist/index.d.ts
CHANGED
|
@@ -1673,6 +1673,7 @@ declare class Dispute extends BaseEntity {
|
|
|
1673
1673
|
respondentId: number;
|
|
1674
1674
|
respondent: User;
|
|
1675
1675
|
attachments: any[];
|
|
1676
|
+
dynamicFields: Record<string, any>;
|
|
1676
1677
|
}
|
|
1677
1678
|
|
|
1678
1679
|
declare enum AccountType {
|
|
@@ -2681,6 +2682,7 @@ declare class CreateDisputeDto {
|
|
|
2681
2682
|
disputeType: string;
|
|
2682
2683
|
description: any;
|
|
2683
2684
|
comment?: string;
|
|
2685
|
+
dynamicFields?: Record<string, any>;
|
|
2684
2686
|
}
|
|
2685
2687
|
|
|
2686
2688
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
package/dist/index.js
CHANGED
|
@@ -4948,6 +4948,9 @@ __decorateClass([
|
|
|
4948
4948
|
__decorateClass([
|
|
4949
4949
|
(0, import_typeorm56.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
4950
4950
|
], Dispute.prototype, "attachments", 2);
|
|
4951
|
+
__decorateClass([
|
|
4952
|
+
(0, import_typeorm56.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
4953
|
+
], Dispute.prototype, "dynamicFields", 2);
|
|
4951
4954
|
Dispute = __decorateClass([
|
|
4952
4955
|
(0, import_typeorm56.Entity)("disputes")
|
|
4953
4956
|
], Dispute);
|
|
@@ -6737,16 +6740,14 @@ __decorateClass([
|
|
|
6737
6740
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
6738
6741
|
|
|
6739
6742
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
6743
|
+
var import_types = require("class-transformer/types");
|
|
6740
6744
|
var import_class_validator77 = require("class-validator");
|
|
6741
6745
|
var CreateDisputeDto = class {
|
|
6742
6746
|
};
|
|
6743
6747
|
__decorateClass([
|
|
6744
6748
|
(0, import_class_validator77.IsNotEmpty)({ message: "Please select dispute type." }),
|
|
6745
6749
|
(0, import_class_validator77.IsString)(),
|
|
6746
|
-
(0, import_class_validator77.IsIn)([
|
|
6747
|
-
"JOB",
|
|
6748
|
-
"INVOICE"
|
|
6749
|
-
])
|
|
6750
|
+
(0, import_class_validator77.IsIn)(["JOB", "INVOICE"])
|
|
6750
6751
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
6751
6752
|
__decorateClass([
|
|
6752
6753
|
(0, import_class_validator77.IsNotEmpty)({ message: "Please enter description." }),
|
|
@@ -6758,6 +6759,12 @@ __decorateClass([
|
|
|
6758
6759
|
(0, import_class_validator77.IsString)({ message: "Comment must be a string" }),
|
|
6759
6760
|
(0, import_class_validator77.MaxLength)(500, { message: "Comment must not exceed 500 characters" })
|
|
6760
6761
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
6762
|
+
// ensures it’s parsed as an object when passed as JSON string in multipart/form-data
|
|
6763
|
+
__decorateClass([
|
|
6764
|
+
(0, import_class_validator77.IsOptional)(),
|
|
6765
|
+
(0, import_class_validator77.IsObject)({ message: "Dynamic fields must be a valid object" }),
|
|
6766
|
+
(0, import_types.Type)(() => Object)
|
|
6767
|
+
], CreateDisputeDto.prototype, "dynamicFields", 2);
|
|
6761
6768
|
|
|
6762
6769
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
6763
6770
|
var import_dotenv = require("dotenv");
|
package/dist/index.mjs
CHANGED
|
@@ -4978,6 +4978,9 @@ __decorateClass([
|
|
|
4978
4978
|
__decorateClass([
|
|
4979
4979
|
Column56({ name: "attachments", type: "jsonb", nullable: true })
|
|
4980
4980
|
], Dispute.prototype, "attachments", 2);
|
|
4981
|
+
__decorateClass([
|
|
4982
|
+
Column56({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
4983
|
+
], Dispute.prototype, "dynamicFields", 2);
|
|
4981
4984
|
Dispute = __decorateClass([
|
|
4982
4985
|
Entity55("disputes")
|
|
4983
4986
|
], Dispute);
|
|
@@ -6885,22 +6888,21 @@ __decorateClass([
|
|
|
6885
6888
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
6886
6889
|
|
|
6887
6890
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
6891
|
+
import { Type as Type14 } from "class-transformer/types";
|
|
6888
6892
|
import {
|
|
6889
6893
|
IsString as IsString44,
|
|
6890
6894
|
IsNotEmpty as IsNotEmpty67,
|
|
6891
6895
|
IsIn as IsIn4,
|
|
6892
6896
|
IsOptional as IsOptional42,
|
|
6893
|
-
MaxLength as MaxLength19
|
|
6897
|
+
MaxLength as MaxLength19,
|
|
6898
|
+
IsObject
|
|
6894
6899
|
} from "class-validator";
|
|
6895
6900
|
var CreateDisputeDto = class {
|
|
6896
6901
|
};
|
|
6897
6902
|
__decorateClass([
|
|
6898
6903
|
IsNotEmpty67({ message: "Please select dispute type." }),
|
|
6899
6904
|
IsString44(),
|
|
6900
|
-
IsIn4([
|
|
6901
|
-
"JOB",
|
|
6902
|
-
"INVOICE"
|
|
6903
|
-
])
|
|
6905
|
+
IsIn4(["JOB", "INVOICE"])
|
|
6904
6906
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
6905
6907
|
__decorateClass([
|
|
6906
6908
|
IsNotEmpty67({ message: "Please enter description." }),
|
|
@@ -6912,6 +6914,12 @@ __decorateClass([
|
|
|
6912
6914
|
IsString44({ message: "Comment must be a string" }),
|
|
6913
6915
|
MaxLength19(500, { message: "Comment must not exceed 500 characters" })
|
|
6914
6916
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
6917
|
+
// ensures it’s parsed as an object when passed as JSON string in multipart/form-data
|
|
6918
|
+
__decorateClass([
|
|
6919
|
+
IsOptional42(),
|
|
6920
|
+
IsObject({ message: "Dynamic fields must be a valid object" }),
|
|
6921
|
+
Type14(() => Object)
|
|
6922
|
+
], CreateDisputeDto.prototype, "dynamicFields", 2);
|
|
6915
6923
|
|
|
6916
6924
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
6917
6925
|
import { config } from "dotenv";
|