@experts_hub/shared 1.0.446 → 1.0.448
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/entities/invoice.entity.d.ts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13 -2
- package/dist/index.mjs +14 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3573,6 +3573,9 @@ __decorateClass([
|
|
|
3573
3573
|
__decorateClass([
|
|
3574
3574
|
(0, import_typeorm26.Column)({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
|
|
3575
3575
|
], Invoice.prototype, "paymentStatus", 2);
|
|
3576
|
+
__decorateClass([
|
|
3577
|
+
(0, import_typeorm26.Column)({ name: "client_invoice_url", type: "varchar", nullable: true })
|
|
3578
|
+
], Invoice.prototype, "clientInvoiceUrl", 2);
|
|
3576
3579
|
Invoice = __decorateClass([
|
|
3577
3580
|
(0, import_typeorm26.Entity)("invoices")
|
|
3578
3581
|
], Invoice);
|
|
@@ -6759,11 +6762,19 @@ __decorateClass([
|
|
|
6759
6762
|
(0, import_class_validator77.IsString)({ message: "Comment must be a string" }),
|
|
6760
6763
|
(0, import_class_validator77.MaxLength)(500, { message: "Comment must not exceed 500 characters" })
|
|
6761
6764
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
6762
|
-
// ensures it’s parsed as an object when passed as JSON string in multipart/form-data
|
|
6763
6765
|
__decorateClass([
|
|
6764
6766
|
(0, import_class_validator77.IsOptional)(),
|
|
6765
6767
|
(0, import_class_validator77.IsObject)({ message: "Dynamic fields must be a valid object" }),
|
|
6766
|
-
(0, import_class_transformer16.
|
|
6768
|
+
(0, import_class_transformer16.Transform)(({ value }) => {
|
|
6769
|
+
if (typeof value === "string") {
|
|
6770
|
+
try {
|
|
6771
|
+
return JSON.parse(value);
|
|
6772
|
+
} catch {
|
|
6773
|
+
return value;
|
|
6774
|
+
}
|
|
6775
|
+
}
|
|
6776
|
+
return value;
|
|
6777
|
+
})
|
|
6767
6778
|
], CreateDisputeDto.prototype, "dynamicFields", 2);
|
|
6768
6779
|
|
|
6769
6780
|
// src/adapters/tcp/user.tcp.adapter.ts
|
package/dist/index.mjs
CHANGED
|
@@ -3499,6 +3499,9 @@ __decorateClass([
|
|
|
3499
3499
|
__decorateClass([
|
|
3500
3500
|
Column26({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
|
|
3501
3501
|
], Invoice.prototype, "paymentStatus", 2);
|
|
3502
|
+
__decorateClass([
|
|
3503
|
+
Column26({ name: "client_invoice_url", type: "varchar", nullable: true })
|
|
3504
|
+
], Invoice.prototype, "clientInvoiceUrl", 2);
|
|
3502
3505
|
Invoice = __decorateClass([
|
|
3503
3506
|
Entity25("invoices")
|
|
3504
3507
|
], Invoice);
|
|
@@ -6896,7 +6899,7 @@ import {
|
|
|
6896
6899
|
MaxLength as MaxLength19,
|
|
6897
6900
|
IsObject
|
|
6898
6901
|
} from "class-validator";
|
|
6899
|
-
import {
|
|
6902
|
+
import { Transform as Transform4 } from "class-transformer";
|
|
6900
6903
|
var CreateDisputeDto = class {
|
|
6901
6904
|
};
|
|
6902
6905
|
__decorateClass([
|
|
@@ -6914,11 +6917,19 @@ __decorateClass([
|
|
|
6914
6917
|
IsString44({ message: "Comment must be a string" }),
|
|
6915
6918
|
MaxLength19(500, { message: "Comment must not exceed 500 characters" })
|
|
6916
6919
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
6917
|
-
// ensures it’s parsed as an object when passed as JSON string in multipart/form-data
|
|
6918
6920
|
__decorateClass([
|
|
6919
6921
|
IsOptional42(),
|
|
6920
6922
|
IsObject({ message: "Dynamic fields must be a valid object" }),
|
|
6921
|
-
|
|
6923
|
+
Transform4(({ value }) => {
|
|
6924
|
+
if (typeof value === "string") {
|
|
6925
|
+
try {
|
|
6926
|
+
return JSON.parse(value);
|
|
6927
|
+
} catch {
|
|
6928
|
+
return value;
|
|
6929
|
+
}
|
|
6930
|
+
}
|
|
6931
|
+
return value;
|
|
6932
|
+
})
|
|
6922
6933
|
], CreateDisputeDto.prototype, "dynamicFields", 2);
|
|
6923
6934
|
|
|
6924
6935
|
// src/adapters/tcp/user.tcp.adapter.ts
|