@experts_hub/shared 1.0.484 → 1.0.485
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/dispute.entity.d.ts +4 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +22 -0
- package/dist/index.mjs +22 -0
- package/package.json +1 -1
|
@@ -12,6 +12,10 @@ export declare enum DisputeStatusEnum {
|
|
|
12
12
|
REOPENED = "REOPENED"
|
|
13
13
|
}
|
|
14
14
|
export declare class Dispute extends BaseEntity {
|
|
15
|
+
clientId: number;
|
|
16
|
+
client: User;
|
|
17
|
+
freelancerId: number;
|
|
18
|
+
freelancer: User;
|
|
15
19
|
disputeUniqueId: string;
|
|
16
20
|
disputeType: string;
|
|
17
21
|
description: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -1640,6 +1640,10 @@ declare enum DisputeStatusEnum {
|
|
|
1640
1640
|
REOPENED = "REOPENED"
|
|
1641
1641
|
}
|
|
1642
1642
|
declare class Dispute extends BaseEntity {
|
|
1643
|
+
clientId: number;
|
|
1644
|
+
client: User;
|
|
1645
|
+
freelancerId: number;
|
|
1646
|
+
freelancer: User;
|
|
1643
1647
|
disputeUniqueId: string;
|
|
1644
1648
|
disputeType: string;
|
|
1645
1649
|
description: string;
|
|
@@ -1841,6 +1845,8 @@ declare class User extends BaseEntity {
|
|
|
1841
1845
|
respondentDisputes: Dispute[];
|
|
1842
1846
|
wallet: Wallet;
|
|
1843
1847
|
stripeTransactions: StripeTransaction[];
|
|
1848
|
+
clientDisputes: Dispute[];
|
|
1849
|
+
freelancerDisputes: Dispute[];
|
|
1844
1850
|
}
|
|
1845
1851
|
|
|
1846
1852
|
declare enum RatingTypeEnum {
|
package/dist/index.d.ts
CHANGED
|
@@ -1640,6 +1640,10 @@ declare enum DisputeStatusEnum {
|
|
|
1640
1640
|
REOPENED = "REOPENED"
|
|
1641
1641
|
}
|
|
1642
1642
|
declare class Dispute extends BaseEntity {
|
|
1643
|
+
clientId: number;
|
|
1644
|
+
client: User;
|
|
1645
|
+
freelancerId: number;
|
|
1646
|
+
freelancer: User;
|
|
1643
1647
|
disputeUniqueId: string;
|
|
1644
1648
|
disputeType: string;
|
|
1645
1649
|
description: string;
|
|
@@ -1841,6 +1845,8 @@ declare class User extends BaseEntity {
|
|
|
1841
1845
|
respondentDisputes: Dispute[];
|
|
1842
1846
|
wallet: Wallet;
|
|
1843
1847
|
stripeTransactions: StripeTransaction[];
|
|
1848
|
+
clientDisputes: Dispute[];
|
|
1849
|
+
freelancerDisputes: Dispute[];
|
|
1844
1850
|
}
|
|
1845
1851
|
|
|
1846
1852
|
declare enum RatingTypeEnum {
|
package/dist/index.js
CHANGED
|
@@ -4895,6 +4895,22 @@ var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
|
4895
4895
|
})(DisputeStatusEnum || {});
|
|
4896
4896
|
var Dispute = class extends BaseEntity {
|
|
4897
4897
|
};
|
|
4898
|
+
__decorateClass([
|
|
4899
|
+
(0, import_typeorm54.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4900
|
+
(0, import_typeorm54.Index)()
|
|
4901
|
+
], Dispute.prototype, "clientId", 2);
|
|
4902
|
+
__decorateClass([
|
|
4903
|
+
(0, import_typeorm54.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
4904
|
+
(0, import_typeorm54.JoinColumn)({ name: "client_id" })
|
|
4905
|
+
], Dispute.prototype, "client", 2);
|
|
4906
|
+
__decorateClass([
|
|
4907
|
+
(0, import_typeorm54.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4908
|
+
(0, import_typeorm54.Index)()
|
|
4909
|
+
], Dispute.prototype, "freelancerId", 2);
|
|
4910
|
+
__decorateClass([
|
|
4911
|
+
(0, import_typeorm54.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
4912
|
+
(0, import_typeorm54.JoinColumn)({ name: "freelancer_id" })
|
|
4913
|
+
], Dispute.prototype, "freelancer", 2);
|
|
4898
4914
|
__decorateClass([
|
|
4899
4915
|
(0, import_typeorm54.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
4900
4916
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
@@ -5478,6 +5494,12 @@ __decorateClass([
|
|
|
5478
5494
|
__decorateClass([
|
|
5479
5495
|
(0, import_typeorm58.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
5480
5496
|
], User.prototype, "stripeTransactions", 2);
|
|
5497
|
+
__decorateClass([
|
|
5498
|
+
(0, import_typeorm58.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
5499
|
+
], User.prototype, "clientDisputes", 2);
|
|
5500
|
+
__decorateClass([
|
|
5501
|
+
(0, import_typeorm58.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
5502
|
+
], User.prototype, "freelancerDisputes", 2);
|
|
5481
5503
|
User = __decorateClass([
|
|
5482
5504
|
(0, import_typeorm58.Entity)("users")
|
|
5483
5505
|
], User);
|
package/dist/index.mjs
CHANGED
|
@@ -4919,6 +4919,22 @@ var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
|
4919
4919
|
})(DisputeStatusEnum || {});
|
|
4920
4920
|
var Dispute = class extends BaseEntity {
|
|
4921
4921
|
};
|
|
4922
|
+
__decorateClass([
|
|
4923
|
+
Column54({ name: "client_id", type: "integer", nullable: true }),
|
|
4924
|
+
Index46()
|
|
4925
|
+
], Dispute.prototype, "clientId", 2);
|
|
4926
|
+
__decorateClass([
|
|
4927
|
+
ManyToOne48(() => User, (user) => user.clientDisputes),
|
|
4928
|
+
JoinColumn48({ name: "client_id" })
|
|
4929
|
+
], Dispute.prototype, "client", 2);
|
|
4930
|
+
__decorateClass([
|
|
4931
|
+
Column54({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4932
|
+
Index46()
|
|
4933
|
+
], Dispute.prototype, "freelancerId", 2);
|
|
4934
|
+
__decorateClass([
|
|
4935
|
+
ManyToOne48(() => User, (user) => user.freelancerDisputes),
|
|
4936
|
+
JoinColumn48({ name: "freelancer_id" })
|
|
4937
|
+
], Dispute.prototype, "freelancer", 2);
|
|
4922
4938
|
__decorateClass([
|
|
4923
4939
|
Column54({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
4924
4940
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
@@ -5502,6 +5518,12 @@ __decorateClass([
|
|
|
5502
5518
|
__decorateClass([
|
|
5503
5519
|
OneToMany19(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
5504
5520
|
], User.prototype, "stripeTransactions", 2);
|
|
5521
|
+
__decorateClass([
|
|
5522
|
+
OneToMany19(() => Dispute, (dispute) => dispute.client)
|
|
5523
|
+
], User.prototype, "clientDisputes", 2);
|
|
5524
|
+
__decorateClass([
|
|
5525
|
+
OneToMany19(() => Dispute, (dispute) => dispute.freelancer)
|
|
5526
|
+
], User.prototype, "freelancerDisputes", 2);
|
|
5505
5527
|
User = __decorateClass([
|
|
5506
5528
|
Entity57("users")
|
|
5507
5529
|
], User);
|