@experts_hub/shared 1.0.484 → 1.0.486
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 +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +27 -0
- package/dist/index.mjs +27 -0
- package/dist/modules/job/dto/job-basic-information.dto.d.ts +1 -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
|
@@ -480,6 +480,7 @@ declare class JobBasicInformationDto {
|
|
|
480
480
|
projectName?: string;
|
|
481
481
|
note?: string;
|
|
482
482
|
skills: string[];
|
|
483
|
+
skillCategory: Number;
|
|
483
484
|
openings: number;
|
|
484
485
|
location: JobLocation;
|
|
485
486
|
countryId: number;
|
|
@@ -1640,6 +1641,10 @@ declare enum DisputeStatusEnum {
|
|
|
1640
1641
|
REOPENED = "REOPENED"
|
|
1641
1642
|
}
|
|
1642
1643
|
declare class Dispute extends BaseEntity {
|
|
1644
|
+
clientId: number;
|
|
1645
|
+
client: User;
|
|
1646
|
+
freelancerId: number;
|
|
1647
|
+
freelancer: User;
|
|
1643
1648
|
disputeUniqueId: string;
|
|
1644
1649
|
disputeType: string;
|
|
1645
1650
|
description: string;
|
|
@@ -1841,6 +1846,8 @@ declare class User extends BaseEntity {
|
|
|
1841
1846
|
respondentDisputes: Dispute[];
|
|
1842
1847
|
wallet: Wallet;
|
|
1843
1848
|
stripeTransactions: StripeTransaction[];
|
|
1849
|
+
clientDisputes: Dispute[];
|
|
1850
|
+
freelancerDisputes: Dispute[];
|
|
1844
1851
|
}
|
|
1845
1852
|
|
|
1846
1853
|
declare enum RatingTypeEnum {
|
package/dist/index.d.ts
CHANGED
|
@@ -480,6 +480,7 @@ declare class JobBasicInformationDto {
|
|
|
480
480
|
projectName?: string;
|
|
481
481
|
note?: string;
|
|
482
482
|
skills: string[];
|
|
483
|
+
skillCategory: Number;
|
|
483
484
|
openings: number;
|
|
484
485
|
location: JobLocation;
|
|
485
486
|
countryId: number;
|
|
@@ -1640,6 +1641,10 @@ declare enum DisputeStatusEnum {
|
|
|
1640
1641
|
REOPENED = "REOPENED"
|
|
1641
1642
|
}
|
|
1642
1643
|
declare class Dispute extends BaseEntity {
|
|
1644
|
+
clientId: number;
|
|
1645
|
+
client: User;
|
|
1646
|
+
freelancerId: number;
|
|
1647
|
+
freelancer: User;
|
|
1643
1648
|
disputeUniqueId: string;
|
|
1644
1649
|
disputeType: string;
|
|
1645
1650
|
description: string;
|
|
@@ -1841,6 +1846,8 @@ declare class User extends BaseEntity {
|
|
|
1841
1846
|
respondentDisputes: Dispute[];
|
|
1842
1847
|
wallet: Wallet;
|
|
1843
1848
|
stripeTransactions: StripeTransaction[];
|
|
1849
|
+
clientDisputes: Dispute[];
|
|
1850
|
+
freelancerDisputes: Dispute[];
|
|
1844
1851
|
}
|
|
1845
1852
|
|
|
1846
1853
|
declare enum RatingTypeEnum {
|
package/dist/index.js
CHANGED
|
@@ -1238,6 +1238,11 @@ __decorateClass([
|
|
|
1238
1238
|
(0, import_class_validator33.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
1239
1239
|
(0, import_class_transformer2.Type)(() => String)
|
|
1240
1240
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1241
|
+
__decorateClass([
|
|
1242
|
+
(0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
|
|
1243
|
+
(0, import_class_validator33.IsNumber)({}, { message: "Skill category must be a number" }),
|
|
1244
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1245
|
+
], JobBasicInformationDto.prototype, "skillCategory", 2);
|
|
1241
1246
|
__decorateClass([
|
|
1242
1247
|
(0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
|
|
1243
1248
|
(0, import_class_validator33.IsNumber)({}, { message: "Openings must be a number" }),
|
|
@@ -4895,6 +4900,22 @@ var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
|
4895
4900
|
})(DisputeStatusEnum || {});
|
|
4896
4901
|
var Dispute = class extends BaseEntity {
|
|
4897
4902
|
};
|
|
4903
|
+
__decorateClass([
|
|
4904
|
+
(0, import_typeorm54.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4905
|
+
(0, import_typeorm54.Index)()
|
|
4906
|
+
], Dispute.prototype, "clientId", 2);
|
|
4907
|
+
__decorateClass([
|
|
4908
|
+
(0, import_typeorm54.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
4909
|
+
(0, import_typeorm54.JoinColumn)({ name: "client_id" })
|
|
4910
|
+
], Dispute.prototype, "client", 2);
|
|
4911
|
+
__decorateClass([
|
|
4912
|
+
(0, import_typeorm54.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4913
|
+
(0, import_typeorm54.Index)()
|
|
4914
|
+
], Dispute.prototype, "freelancerId", 2);
|
|
4915
|
+
__decorateClass([
|
|
4916
|
+
(0, import_typeorm54.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
4917
|
+
(0, import_typeorm54.JoinColumn)({ name: "freelancer_id" })
|
|
4918
|
+
], Dispute.prototype, "freelancer", 2);
|
|
4898
4919
|
__decorateClass([
|
|
4899
4920
|
(0, import_typeorm54.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
4900
4921
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
@@ -5478,6 +5499,12 @@ __decorateClass([
|
|
|
5478
5499
|
__decorateClass([
|
|
5479
5500
|
(0, import_typeorm58.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
5480
5501
|
], User.prototype, "stripeTransactions", 2);
|
|
5502
|
+
__decorateClass([
|
|
5503
|
+
(0, import_typeorm58.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
5504
|
+
], User.prototype, "clientDisputes", 2);
|
|
5505
|
+
__decorateClass([
|
|
5506
|
+
(0, import_typeorm58.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
5507
|
+
], User.prototype, "freelancerDisputes", 2);
|
|
5481
5508
|
User = __decorateClass([
|
|
5482
5509
|
(0, import_typeorm58.Entity)("users")
|
|
5483
5510
|
], User);
|
package/dist/index.mjs
CHANGED
|
@@ -1020,6 +1020,11 @@ __decorateClass([
|
|
|
1020
1020
|
IsString12({ each: true, message: "Each skill must be a string" }),
|
|
1021
1021
|
Type(() => String)
|
|
1022
1022
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1023
|
+
__decorateClass([
|
|
1024
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1025
|
+
IsNumber({}, { message: "Skill category must be a number" }),
|
|
1026
|
+
Type(() => Number)
|
|
1027
|
+
], JobBasicInformationDto.prototype, "skillCategory", 2);
|
|
1023
1028
|
__decorateClass([
|
|
1024
1029
|
ValidateIf3((o) => !o.isDraft),
|
|
1025
1030
|
IsNumber({}, { message: "Openings must be a number" }),
|
|
@@ -4919,6 +4924,22 @@ var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
|
4919
4924
|
})(DisputeStatusEnum || {});
|
|
4920
4925
|
var Dispute = class extends BaseEntity {
|
|
4921
4926
|
};
|
|
4927
|
+
__decorateClass([
|
|
4928
|
+
Column54({ name: "client_id", type: "integer", nullable: true }),
|
|
4929
|
+
Index46()
|
|
4930
|
+
], Dispute.prototype, "clientId", 2);
|
|
4931
|
+
__decorateClass([
|
|
4932
|
+
ManyToOne48(() => User, (user) => user.clientDisputes),
|
|
4933
|
+
JoinColumn48({ name: "client_id" })
|
|
4934
|
+
], Dispute.prototype, "client", 2);
|
|
4935
|
+
__decorateClass([
|
|
4936
|
+
Column54({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4937
|
+
Index46()
|
|
4938
|
+
], Dispute.prototype, "freelancerId", 2);
|
|
4939
|
+
__decorateClass([
|
|
4940
|
+
ManyToOne48(() => User, (user) => user.freelancerDisputes),
|
|
4941
|
+
JoinColumn48({ name: "freelancer_id" })
|
|
4942
|
+
], Dispute.prototype, "freelancer", 2);
|
|
4922
4943
|
__decorateClass([
|
|
4923
4944
|
Column54({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
4924
4945
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
@@ -5502,6 +5523,12 @@ __decorateClass([
|
|
|
5502
5523
|
__decorateClass([
|
|
5503
5524
|
OneToMany19(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
5504
5525
|
], User.prototype, "stripeTransactions", 2);
|
|
5526
|
+
__decorateClass([
|
|
5527
|
+
OneToMany19(() => Dispute, (dispute) => dispute.client)
|
|
5528
|
+
], User.prototype, "clientDisputes", 2);
|
|
5529
|
+
__decorateClass([
|
|
5530
|
+
OneToMany19(() => Dispute, (dispute) => dispute.freelancer)
|
|
5531
|
+
], User.prototype, "freelancerDisputes", 2);
|
|
5505
5532
|
User = __decorateClass([
|
|
5506
5533
|
Entity57("users")
|
|
5507
5534
|
], User);
|