@experts_hub/shared 1.0.505 → 1.0.507
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/assessment-question.entity.d.ts +3 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +14 -0
- package/dist/index.mjs +105 -91
- package/dist/modules/onboarding/dto/freelancer-create-account.dto.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from "./base.entity";
|
|
2
2
|
import { AssessmetQuestionOption } from "./assessment-question-option.entity";
|
|
3
3
|
import { AssessmentAnswer } from "./assessment-answer.entity";
|
|
4
|
+
import { User } from "./user.entity";
|
|
4
5
|
export declare enum QuestionForEnum {
|
|
5
6
|
ASSESSMENT = "ASSESSMENT",
|
|
6
7
|
INTERVIEW = "INTERVIEW"
|
|
@@ -9,6 +10,8 @@ export declare class AssessmetQuestion extends BaseEntity {
|
|
|
9
10
|
text: string;
|
|
10
11
|
questionFor: QuestionForEnum;
|
|
11
12
|
isActive: boolean;
|
|
13
|
+
candidateId: number;
|
|
14
|
+
candidate: User;
|
|
12
15
|
options: AssessmetQuestionOption[];
|
|
13
16
|
answers: AssessmentAnswer[];
|
|
14
17
|
}
|
|
@@ -37,6 +37,7 @@ import { Dispute } from "./dispute.entity";
|
|
|
37
37
|
import { StripeTransaction } from "./stripe-transaction.entity";
|
|
38
38
|
import { Wallet } from "./wallet.entity";
|
|
39
39
|
import { EscrowWallet } from "./escrow-wallet.entity";
|
|
40
|
+
import { AssessmetQuestion } from "./assessment-question.entity";
|
|
40
41
|
export declare enum AccountType {
|
|
41
42
|
ADMIN = "ADMIN",
|
|
42
43
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -106,6 +107,7 @@ export declare class User extends BaseEntity {
|
|
|
106
107
|
freelancerTool: FreelancerTool[];
|
|
107
108
|
freelancerFramework: FreelancerFramework[];
|
|
108
109
|
freelancerDeclaration: FreelancerDeclaration;
|
|
110
|
+
freelancerMcq: AssessmetQuestion[];
|
|
109
111
|
freelancerAiInterview: AiInterview[];
|
|
110
112
|
freelancerF2FInterviews: F2FInterview[];
|
|
111
113
|
freelancerF2FInterviewRescheduleRequests: F2fInterviewRescheduleRequest[];
|
package/dist/index.d.mts
CHANGED
|
@@ -144,6 +144,7 @@ declare class FreelancerCreateAccountDto {
|
|
|
144
144
|
email: string;
|
|
145
145
|
mobileCode: string;
|
|
146
146
|
mobile: string;
|
|
147
|
+
countryISOCode: string;
|
|
147
148
|
onBoardedBy: string;
|
|
148
149
|
}
|
|
149
150
|
|
|
@@ -1686,6 +1687,8 @@ declare class AssessmetQuestion extends BaseEntity {
|
|
|
1686
1687
|
text: string;
|
|
1687
1688
|
questionFor: QuestionForEnum;
|
|
1688
1689
|
isActive: boolean;
|
|
1690
|
+
candidateId: number;
|
|
1691
|
+
candidate: User;
|
|
1689
1692
|
options: AssessmetQuestionOption[];
|
|
1690
1693
|
answers: AssessmentAnswer[];
|
|
1691
1694
|
}
|
|
@@ -1953,6 +1956,7 @@ declare class User extends BaseEntity {
|
|
|
1953
1956
|
freelancerTool: FreelancerTool[];
|
|
1954
1957
|
freelancerFramework: FreelancerFramework[];
|
|
1955
1958
|
freelancerDeclaration: FreelancerDeclaration;
|
|
1959
|
+
freelancerMcq: AssessmetQuestion[];
|
|
1956
1960
|
freelancerAiInterview: AiInterview[];
|
|
1957
1961
|
freelancerF2FInterviews: F2FInterview[];
|
|
1958
1962
|
freelancerF2FInterviewRescheduleRequests: F2fInterviewRescheduleRequest[];
|
package/dist/index.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ declare class FreelancerCreateAccountDto {
|
|
|
144
144
|
email: string;
|
|
145
145
|
mobileCode: string;
|
|
146
146
|
mobile: string;
|
|
147
|
+
countryISOCode: string;
|
|
147
148
|
onBoardedBy: string;
|
|
148
149
|
}
|
|
149
150
|
|
|
@@ -1686,6 +1687,8 @@ declare class AssessmetQuestion extends BaseEntity {
|
|
|
1686
1687
|
text: string;
|
|
1687
1688
|
questionFor: QuestionForEnum;
|
|
1688
1689
|
isActive: boolean;
|
|
1690
|
+
candidateId: number;
|
|
1691
|
+
candidate: User;
|
|
1689
1692
|
options: AssessmetQuestionOption[];
|
|
1690
1693
|
answers: AssessmentAnswer[];
|
|
1691
1694
|
}
|
|
@@ -1953,6 +1956,7 @@ declare class User extends BaseEntity {
|
|
|
1953
1956
|
freelancerTool: FreelancerTool[];
|
|
1954
1957
|
freelancerFramework: FreelancerFramework[];
|
|
1955
1958
|
freelancerDeclaration: FreelancerDeclaration;
|
|
1959
|
+
freelancerMcq: AssessmetQuestion[];
|
|
1956
1960
|
freelancerAiInterview: AiInterview[];
|
|
1957
1961
|
freelancerF2FInterviews: F2FInterview[];
|
|
1958
1962
|
freelancerF2FInterviewRescheduleRequests: F2fInterviewRescheduleRequest[];
|
package/dist/index.js
CHANGED
|
@@ -775,6 +775,9 @@ __decorateClass([
|
|
|
775
775
|
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
776
776
|
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
777
777
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
778
|
+
__decorateClass([
|
|
779
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter country iso code." })
|
|
780
|
+
], FreelancerCreateAccountDto.prototype, "countryISOCode", 2);
|
|
778
781
|
__decorateClass([
|
|
779
782
|
(0, import_class_validator15.IsOptional)()
|
|
780
783
|
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
@@ -5027,6 +5030,14 @@ __decorateClass([
|
|
|
5027
5030
|
__decorateClass([
|
|
5028
5031
|
(0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5029
5032
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5033
|
+
__decorateClass([
|
|
5034
|
+
(0, import_typeorm48.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5035
|
+
(0, import_typeorm48.Index)()
|
|
5036
|
+
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5037
|
+
__decorateClass([
|
|
5038
|
+
(0, import_typeorm48.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5039
|
+
(0, import_typeorm48.JoinColumn)({ name: "candidate_id" })
|
|
5040
|
+
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5030
5041
|
__decorateClass([
|
|
5031
5042
|
(0, import_typeorm48.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5032
5043
|
], AssessmetQuestion.prototype, "options", 2);
|
|
@@ -5833,6 +5844,9 @@ __decorateClass([
|
|
|
5833
5844
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
5834
5845
|
)
|
|
5835
5846
|
], User.prototype, "freelancerDeclaration", 2);
|
|
5847
|
+
__decorateClass([
|
|
5848
|
+
(0, import_typeorm61.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
5849
|
+
], User.prototype, "freelancerMcq", 2);
|
|
5836
5850
|
__decorateClass([
|
|
5837
5851
|
(0, import_typeorm61.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
5838
5852
|
], User.prototype, "freelancerAiInterview", 2);
|
package/dist/index.mjs
CHANGED
|
@@ -491,6 +491,9 @@ __decorateClass([
|
|
|
491
491
|
IsNotEmpty12({ message: "Please enter mobile number." }),
|
|
492
492
|
IsValidMobileNumber({ message: "Mobile number is not valid for the selected country code." })
|
|
493
493
|
], FreelancerCreateAccountDto.prototype, "mobile", 2);
|
|
494
|
+
__decorateClass([
|
|
495
|
+
IsNotEmpty12({ message: "Please enter country iso code." })
|
|
496
|
+
], FreelancerCreateAccountDto.prototype, "countryISOCode", 2);
|
|
494
497
|
__decorateClass([
|
|
495
498
|
IsOptional3()
|
|
496
499
|
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
@@ -1512,7 +1515,7 @@ import {
|
|
|
1512
1515
|
} from "class-validator";
|
|
1513
1516
|
|
|
1514
1517
|
// src/entities/rating.entity.ts
|
|
1515
|
-
import { Entity as Entity61, Column as Column62, ManyToOne as
|
|
1518
|
+
import { Entity as Entity61, Column as Column62, ManyToOne as ManyToOne56, JoinColumn as JoinColumn57, Index as Index55 } from "typeorm";
|
|
1516
1519
|
|
|
1517
1520
|
// src/entities/user.entity.ts
|
|
1518
1521
|
import {
|
|
@@ -1520,9 +1523,9 @@ import {
|
|
|
1520
1523
|
Column as Column61,
|
|
1521
1524
|
OneToMany as OneToMany22,
|
|
1522
1525
|
OneToOne as OneToOne11,
|
|
1523
|
-
Index as
|
|
1524
|
-
ManyToOne as
|
|
1525
|
-
JoinColumn as
|
|
1526
|
+
Index as Index54,
|
|
1527
|
+
ManyToOne as ManyToOne55,
|
|
1528
|
+
JoinColumn as JoinColumn56
|
|
1526
1529
|
} from "typeorm";
|
|
1527
1530
|
|
|
1528
1531
|
// src/entities/base.entity.ts
|
|
@@ -4950,13 +4953,13 @@ CompanyMemberRole = __decorateClass([
|
|
|
4950
4953
|
import {
|
|
4951
4954
|
Entity as Entity48,
|
|
4952
4955
|
Column as Column49,
|
|
4953
|
-
ManyToOne as
|
|
4954
|
-
Index as
|
|
4955
|
-
JoinColumn as
|
|
4956
|
+
ManyToOne as ManyToOne46,
|
|
4957
|
+
Index as Index42,
|
|
4958
|
+
JoinColumn as JoinColumn46
|
|
4956
4959
|
} from "typeorm";
|
|
4957
4960
|
|
|
4958
4961
|
// src/entities/assessment-question.entity.ts
|
|
4959
|
-
import { Entity as Entity47, Column as Column48, OneToMany as OneToMany17 } from "typeorm";
|
|
4962
|
+
import { Entity as Entity47, Column as Column48, OneToMany as OneToMany17, Index as Index41, ManyToOne as ManyToOne45, JoinColumn as JoinColumn45 } from "typeorm";
|
|
4960
4963
|
|
|
4961
4964
|
// src/entities/assessment-question-option.entity.ts
|
|
4962
4965
|
import {
|
|
@@ -5029,6 +5032,14 @@ __decorateClass([
|
|
|
5029
5032
|
__decorateClass([
|
|
5030
5033
|
Column48({ name: "is_active", type: "boolean", default: true })
|
|
5031
5034
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5035
|
+
__decorateClass([
|
|
5036
|
+
Column48({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5037
|
+
Index41()
|
|
5038
|
+
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5039
|
+
__decorateClass([
|
|
5040
|
+
ManyToOne45(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5041
|
+
JoinColumn45({ name: "candidate_id" })
|
|
5042
|
+
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5032
5043
|
__decorateClass([
|
|
5033
5044
|
OneToMany17(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5034
5045
|
], AssessmetQuestion.prototype, "options", 2);
|
|
@@ -5050,33 +5061,33 @@ var AssessmentAnswer = class extends BaseEntity {
|
|
|
5050
5061
|
};
|
|
5051
5062
|
__decorateClass([
|
|
5052
5063
|
Column49({ name: "user_id", type: "integer" }),
|
|
5053
|
-
|
|
5064
|
+
Index42()
|
|
5054
5065
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5055
5066
|
__decorateClass([
|
|
5056
|
-
|
|
5057
|
-
|
|
5067
|
+
ManyToOne46(() => User, (user) => user.assessmentAnswers),
|
|
5068
|
+
JoinColumn46({ name: "user_id" })
|
|
5058
5069
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5059
5070
|
__decorateClass([
|
|
5060
5071
|
Column49({ name: "question_id", type: "integer" }),
|
|
5061
|
-
|
|
5072
|
+
Index42()
|
|
5062
5073
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5063
5074
|
__decorateClass([
|
|
5064
|
-
|
|
5075
|
+
ManyToOne46(
|
|
5065
5076
|
() => AssessmetQuestion,
|
|
5066
5077
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5067
5078
|
),
|
|
5068
|
-
|
|
5079
|
+
JoinColumn46({ name: "question_id" })
|
|
5069
5080
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5070
5081
|
__decorateClass([
|
|
5071
5082
|
Column49({ name: "selected_option_id", type: "integer" }),
|
|
5072
|
-
|
|
5083
|
+
Index42()
|
|
5073
5084
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5074
5085
|
__decorateClass([
|
|
5075
|
-
|
|
5086
|
+
ManyToOne46(
|
|
5076
5087
|
() => AssessmetQuestionOption,
|
|
5077
5088
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5078
5089
|
),
|
|
5079
|
-
|
|
5090
|
+
JoinColumn46({ name: "selected_option_id" })
|
|
5080
5091
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5081
5092
|
__decorateClass([
|
|
5082
5093
|
Column49({
|
|
@@ -5093,17 +5104,17 @@ AssessmentAnswer = __decorateClass([
|
|
|
5093
5104
|
], AssessmentAnswer);
|
|
5094
5105
|
|
|
5095
5106
|
// src/entities/company-skill.entity.ts
|
|
5096
|
-
import { Entity as Entity49, Column as Column50, Index as
|
|
5107
|
+
import { Entity as Entity49, Column as Column50, Index as Index43, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
|
|
5097
5108
|
var CompanySkill = class extends BaseEntity {
|
|
5098
5109
|
};
|
|
5099
5110
|
// individual index to find core skills by user
|
|
5100
5111
|
__decorateClass([
|
|
5101
5112
|
Column50({ name: "user_id", type: "integer", nullable: true }),
|
|
5102
|
-
|
|
5113
|
+
Index43()
|
|
5103
5114
|
], CompanySkill.prototype, "userId", 2);
|
|
5104
5115
|
__decorateClass([
|
|
5105
|
-
|
|
5106
|
-
|
|
5116
|
+
ManyToOne47(() => User, (user) => user.freelancerSkills),
|
|
5117
|
+
JoinColumn47({ name: "user_id" })
|
|
5107
5118
|
], CompanySkill.prototype, "user", 2);
|
|
5108
5119
|
__decorateClass([
|
|
5109
5120
|
Column50({ name: "skill_name", type: "varchar", nullable: true })
|
|
@@ -5113,16 +5124,16 @@ CompanySkill = __decorateClass([
|
|
|
5113
5124
|
], CompanySkill);
|
|
5114
5125
|
|
|
5115
5126
|
// src/entities/admin-user-role.entity.ts
|
|
5116
|
-
import { Entity as Entity53, Column as Column54, ManyToOne as
|
|
5127
|
+
import { Entity as Entity53, Column as Column54, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
|
|
5117
5128
|
|
|
5118
5129
|
// src/entities/admin-role.entity.ts
|
|
5119
|
-
import { Entity as Entity52, Column as Column53, Index as
|
|
5130
|
+
import { Entity as Entity52, Column as Column53, Index as Index46, OneToMany as OneToMany20 } from "typeorm";
|
|
5120
5131
|
|
|
5121
5132
|
// src/entities/admin-role-permission.entity.ts
|
|
5122
|
-
import { Entity as Entity51, Column as Column52, ManyToOne as
|
|
5133
|
+
import { Entity as Entity51, Column as Column52, ManyToOne as ManyToOne48, JoinColumn as JoinColumn48 } from "typeorm";
|
|
5123
5134
|
|
|
5124
5135
|
// src/entities/admin-permission.entity.ts
|
|
5125
|
-
import { Entity as Entity50, Column as Column51, Index as
|
|
5136
|
+
import { Entity as Entity50, Column as Column51, Index as Index44, OneToMany as OneToMany19 } from "typeorm";
|
|
5126
5137
|
var AdminPermission = class extends BaseEntity {
|
|
5127
5138
|
};
|
|
5128
5139
|
__decorateClass([
|
|
@@ -5135,7 +5146,7 @@ __decorateClass([
|
|
|
5135
5146
|
unique: true,
|
|
5136
5147
|
nullable: true
|
|
5137
5148
|
}),
|
|
5138
|
-
|
|
5149
|
+
Index44()
|
|
5139
5150
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5140
5151
|
__decorateClass([
|
|
5141
5152
|
Column51({ name: "permission_description", type: "varchar", nullable: true })
|
|
@@ -5168,8 +5179,8 @@ __decorateClass([
|
|
|
5168
5179
|
})
|
|
5169
5180
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5170
5181
|
__decorateClass([
|
|
5171
|
-
|
|
5172
|
-
|
|
5182
|
+
ManyToOne48(() => AdminRole),
|
|
5183
|
+
JoinColumn48({ name: "role_id" })
|
|
5173
5184
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5174
5185
|
__decorateClass([
|
|
5175
5186
|
Column52({
|
|
@@ -5180,8 +5191,8 @@ __decorateClass([
|
|
|
5180
5191
|
})
|
|
5181
5192
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5182
5193
|
__decorateClass([
|
|
5183
|
-
|
|
5184
|
-
|
|
5194
|
+
ManyToOne48(() => AdminPermission),
|
|
5195
|
+
JoinColumn48({ name: "permission_id" })
|
|
5185
5196
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5186
5197
|
AdminRolePermission = __decorateClass([
|
|
5187
5198
|
Entity51("admin_role_permissions")
|
|
@@ -5195,7 +5206,7 @@ __decorateClass([
|
|
|
5195
5206
|
], AdminRole.prototype, "roleName", 2);
|
|
5196
5207
|
__decorateClass([
|
|
5197
5208
|
Column53({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5198
|
-
|
|
5209
|
+
Index46()
|
|
5199
5210
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5200
5211
|
__decorateClass([
|
|
5201
5212
|
Column53({ name: "role_description", type: "varchar", nullable: true })
|
|
@@ -5228,8 +5239,8 @@ __decorateClass([
|
|
|
5228
5239
|
})
|
|
5229
5240
|
], AdminUserRole.prototype, "userId", 2);
|
|
5230
5241
|
__decorateClass([
|
|
5231
|
-
|
|
5232
|
-
|
|
5242
|
+
ManyToOne49(() => User),
|
|
5243
|
+
JoinColumn49({ name: "user_id" })
|
|
5233
5244
|
], AdminUserRole.prototype, "user", 2);
|
|
5234
5245
|
__decorateClass([
|
|
5235
5246
|
Column54({
|
|
@@ -5240,8 +5251,8 @@ __decorateClass([
|
|
|
5240
5251
|
})
|
|
5241
5252
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5242
5253
|
__decorateClass([
|
|
5243
|
-
|
|
5244
|
-
|
|
5254
|
+
ManyToOne49(() => AdminRole),
|
|
5255
|
+
JoinColumn49({ name: "role_id" })
|
|
5245
5256
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5246
5257
|
AdminUserRole = __decorateClass([
|
|
5247
5258
|
Entity53("admin_user_roles")
|
|
@@ -5251,20 +5262,20 @@ AdminUserRole = __decorateClass([
|
|
|
5251
5262
|
import {
|
|
5252
5263
|
Entity as Entity54,
|
|
5253
5264
|
Column as Column55,
|
|
5254
|
-
Index as
|
|
5255
|
-
ManyToOne as
|
|
5256
|
-
JoinColumn as
|
|
5265
|
+
Index as Index48,
|
|
5266
|
+
ManyToOne as ManyToOne50,
|
|
5267
|
+
JoinColumn as JoinColumn50
|
|
5257
5268
|
} from "typeorm";
|
|
5258
5269
|
var FreelancerResume = class extends BaseEntity {
|
|
5259
5270
|
};
|
|
5260
5271
|
// individual index to find profile by user
|
|
5261
5272
|
__decorateClass([
|
|
5262
5273
|
Column55({ name: "user_id", type: "integer", nullable: true }),
|
|
5263
|
-
|
|
5274
|
+
Index48()
|
|
5264
5275
|
], FreelancerResume.prototype, "userId", 2);
|
|
5265
5276
|
__decorateClass([
|
|
5266
|
-
|
|
5267
|
-
|
|
5277
|
+
ManyToOne50(() => User, (user) => user.freelancerProfile),
|
|
5278
|
+
JoinColumn50({ name: "user_id" })
|
|
5268
5279
|
], FreelancerResume.prototype, "user", 2);
|
|
5269
5280
|
__decorateClass([
|
|
5270
5281
|
Column55({ name: "resume_data", type: "jsonb", nullable: true })
|
|
@@ -5280,20 +5291,20 @@ FreelancerResume = __decorateClass([
|
|
|
5280
5291
|
import {
|
|
5281
5292
|
Entity as Entity55,
|
|
5282
5293
|
Column as Column56,
|
|
5283
|
-
Index as
|
|
5284
|
-
ManyToOne as
|
|
5285
|
-
JoinColumn as
|
|
5294
|
+
Index as Index49,
|
|
5295
|
+
ManyToOne as ManyToOne51,
|
|
5296
|
+
JoinColumn as JoinColumn51
|
|
5286
5297
|
} from "typeorm";
|
|
5287
5298
|
var Signature = class extends BaseEntity {
|
|
5288
5299
|
};
|
|
5289
5300
|
// individual index to find profile by user
|
|
5290
5301
|
__decorateClass([
|
|
5291
5302
|
Column56({ name: "user_id", type: "integer", nullable: true }),
|
|
5292
|
-
|
|
5303
|
+
Index49()
|
|
5293
5304
|
], Signature.prototype, "userId", 2);
|
|
5294
5305
|
__decorateClass([
|
|
5295
|
-
|
|
5296
|
-
|
|
5306
|
+
ManyToOne51(() => User, (user) => user.signatures),
|
|
5307
|
+
JoinColumn51({ name: "user_id" })
|
|
5297
5308
|
], Signature.prototype, "user", 2);
|
|
5298
5309
|
__decorateClass([
|
|
5299
5310
|
Column56({ name: "signature_url", type: "text", nullable: true })
|
|
@@ -5303,7 +5314,7 @@ Signature = __decorateClass([
|
|
|
5303
5314
|
], Signature);
|
|
5304
5315
|
|
|
5305
5316
|
// src/entities/dispute.entity.ts
|
|
5306
|
-
import { Entity as Entity56, Column as Column57, Index as
|
|
5317
|
+
import { Entity as Entity56, Column as Column57, Index as Index50, JoinColumn as JoinColumn52, ManyToOne as ManyToOne52 } from "typeorm";
|
|
5307
5318
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5308
5319
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5309
5320
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5325,26 +5336,26 @@ var Dispute = class extends BaseEntity {
|
|
|
5325
5336
|
};
|
|
5326
5337
|
__decorateClass([
|
|
5327
5338
|
Column57({ name: "client_id", type: "integer", nullable: true }),
|
|
5328
|
-
|
|
5339
|
+
Index50()
|
|
5329
5340
|
], Dispute.prototype, "clientId", 2);
|
|
5330
5341
|
__decorateClass([
|
|
5331
|
-
|
|
5332
|
-
|
|
5342
|
+
ManyToOne52(() => User, (user) => user.clientDisputes),
|
|
5343
|
+
JoinColumn52({ name: "client_id" })
|
|
5333
5344
|
], Dispute.prototype, "client", 2);
|
|
5334
5345
|
__decorateClass([
|
|
5335
5346
|
Column57({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5336
|
-
|
|
5347
|
+
Index50()
|
|
5337
5348
|
], Dispute.prototype, "freelancerId", 2);
|
|
5338
5349
|
__decorateClass([
|
|
5339
|
-
|
|
5340
|
-
|
|
5350
|
+
ManyToOne52(() => User, (user) => user.freelancerDisputes),
|
|
5351
|
+
JoinColumn52({ name: "freelancer_id" })
|
|
5341
5352
|
], Dispute.prototype, "freelancer", 2);
|
|
5342
5353
|
__decorateClass([
|
|
5343
5354
|
Column57({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5344
5355
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5345
5356
|
__decorateClass([
|
|
5346
5357
|
Column57({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5347
|
-
|
|
5358
|
+
Index50()
|
|
5348
5359
|
], Dispute.prototype, "disputeType", 2);
|
|
5349
5360
|
__decorateClass([
|
|
5350
5361
|
Column57({ name: "description", type: "varchar", nullable: true })
|
|
@@ -5371,19 +5382,19 @@ __decorateClass([
|
|
|
5371
5382
|
], Dispute.prototype, "initiatorType", 2);
|
|
5372
5383
|
__decorateClass([
|
|
5373
5384
|
Column57({ name: "initiator_id", type: "integer" }),
|
|
5374
|
-
|
|
5385
|
+
Index50()
|
|
5375
5386
|
], Dispute.prototype, "initiatorId", 2);
|
|
5376
5387
|
__decorateClass([
|
|
5377
|
-
|
|
5378
|
-
|
|
5388
|
+
ManyToOne52(() => User, (user) => user.initiatedDisputes),
|
|
5389
|
+
JoinColumn52({ name: "initiator_id" })
|
|
5379
5390
|
], Dispute.prototype, "initiator", 2);
|
|
5380
5391
|
__decorateClass([
|
|
5381
5392
|
Column57({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5382
|
-
|
|
5393
|
+
Index50()
|
|
5383
5394
|
], Dispute.prototype, "respondentId", 2);
|
|
5384
5395
|
__decorateClass([
|
|
5385
|
-
|
|
5386
|
-
|
|
5396
|
+
ManyToOne52(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5397
|
+
JoinColumn52({ name: "respondent_id" })
|
|
5387
5398
|
], Dispute.prototype, "respondent", 2);
|
|
5388
5399
|
__decorateClass([
|
|
5389
5400
|
Column57({ name: "attachments", type: "jsonb", nullable: true })
|
|
@@ -5396,7 +5407,7 @@ Dispute = __decorateClass([
|
|
|
5396
5407
|
], Dispute);
|
|
5397
5408
|
|
|
5398
5409
|
// src/entities/stripe-transaction.entity.ts
|
|
5399
|
-
import { Entity as Entity57, Column as Column58, Index as
|
|
5410
|
+
import { Entity as Entity57, Column as Column58, Index as Index51, ManyToOne as ManyToOne53, JoinColumn as JoinColumn53 } from "typeorm";
|
|
5400
5411
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5401
5412
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5402
5413
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5419,11 +5430,11 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5419
5430
|
};
|
|
5420
5431
|
__decorateClass([
|
|
5421
5432
|
Column58({ name: "user_id", type: "integer", nullable: true }),
|
|
5422
|
-
|
|
5433
|
+
Index51()
|
|
5423
5434
|
], StripeTransaction.prototype, "userId", 2);
|
|
5424
5435
|
__decorateClass([
|
|
5425
|
-
|
|
5426
|
-
|
|
5436
|
+
ManyToOne53(() => User, (user) => user.stripeTransactions),
|
|
5437
|
+
JoinColumn53({ name: "user_id" })
|
|
5427
5438
|
], StripeTransaction.prototype, "user", 2);
|
|
5428
5439
|
__decorateClass([
|
|
5429
5440
|
Column58({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
@@ -5505,10 +5516,10 @@ StripeTransaction = __decorateClass([
|
|
|
5505
5516
|
], StripeTransaction);
|
|
5506
5517
|
|
|
5507
5518
|
// src/entities/wallet.entity.ts
|
|
5508
|
-
import { Entity as Entity59, Column as Column60, Index as
|
|
5519
|
+
import { Entity as Entity59, Column as Column60, Index as Index53, JoinColumn as JoinColumn55, OneToOne as OneToOne10, OneToMany as OneToMany21 } from "typeorm";
|
|
5509
5520
|
|
|
5510
5521
|
// src/entities/wallet-transaction.entity.ts
|
|
5511
|
-
import { Entity as Entity58, Column as Column59, Index as
|
|
5522
|
+
import { Entity as Entity58, Column as Column59, Index as Index52, ManyToOne as ManyToOne54, JoinColumn as JoinColumn54 } from "typeorm";
|
|
5512
5523
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5513
5524
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5514
5525
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5526,11 +5537,11 @@ var WalletTransaction = class extends BaseEntity {
|
|
|
5526
5537
|
};
|
|
5527
5538
|
__decorateClass([
|
|
5528
5539
|
Column59({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5529
|
-
|
|
5540
|
+
Index52()
|
|
5530
5541
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5531
5542
|
__decorateClass([
|
|
5532
|
-
|
|
5533
|
-
|
|
5543
|
+
ManyToOne54(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5544
|
+
JoinColumn54({ name: "wallet_id" })
|
|
5534
5545
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5535
5546
|
__decorateClass([
|
|
5536
5547
|
Column59({ name: "amount", type: "bigint", nullable: true })
|
|
@@ -5561,7 +5572,7 @@ __decorateClass([
|
|
|
5561
5572
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5562
5573
|
__decorateClass([
|
|
5563
5574
|
Column59({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5564
|
-
|
|
5575
|
+
Index52()
|
|
5565
5576
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5566
5577
|
WalletTransaction = __decorateClass([
|
|
5567
5578
|
Entity58("wallet_transactions")
|
|
@@ -5583,11 +5594,11 @@ var Wallet = class extends BaseEntity {
|
|
|
5583
5594
|
};
|
|
5584
5595
|
__decorateClass([
|
|
5585
5596
|
Column60({ name: "user_id", type: "integer", nullable: true }),
|
|
5586
|
-
|
|
5597
|
+
Index53()
|
|
5587
5598
|
], Wallet.prototype, "userId", 2);
|
|
5588
5599
|
__decorateClass([
|
|
5589
5600
|
OneToOne10(() => User, (user) => user.wallet),
|
|
5590
|
-
|
|
5601
|
+
JoinColumn55({ name: "user_id" })
|
|
5591
5602
|
], Wallet.prototype, "user", 2);
|
|
5592
5603
|
__decorateClass([
|
|
5593
5604
|
Column60({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
@@ -5646,11 +5657,11 @@ __decorateClass([
|
|
|
5646
5657
|
], User.prototype, "uniqueId", 2);
|
|
5647
5658
|
__decorateClass([
|
|
5648
5659
|
Column61({ name: "parent_id", type: "integer", nullable: true }),
|
|
5649
|
-
|
|
5660
|
+
Index54()
|
|
5650
5661
|
], User.prototype, "parentId", 2);
|
|
5651
5662
|
__decorateClass([
|
|
5652
|
-
|
|
5653
|
-
|
|
5663
|
+
ManyToOne55(() => User, (user) => user.children, { nullable: true }),
|
|
5664
|
+
JoinColumn56({ name: "parent_id" })
|
|
5654
5665
|
], User.prototype, "parent", 2);
|
|
5655
5666
|
__decorateClass([
|
|
5656
5667
|
OneToMany22(() => User, (user) => user.parent)
|
|
@@ -5847,6 +5858,9 @@ __decorateClass([
|
|
|
5847
5858
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
5848
5859
|
)
|
|
5849
5860
|
], User.prototype, "freelancerDeclaration", 2);
|
|
5861
|
+
__decorateClass([
|
|
5862
|
+
OneToMany22(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
5863
|
+
], User.prototype, "freelancerMcq", 2);
|
|
5850
5864
|
__decorateClass([
|
|
5851
5865
|
OneToMany22(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
5852
5866
|
], User.prototype, "freelancerAiInterview", 2);
|
|
@@ -5957,19 +5971,19 @@ var Rating = class extends BaseEntity {
|
|
|
5957
5971
|
};
|
|
5958
5972
|
__decorateClass([
|
|
5959
5973
|
Column62({ name: "reviewer_id", type: "integer" }),
|
|
5960
|
-
|
|
5974
|
+
Index55()
|
|
5961
5975
|
], Rating.prototype, "reviewer_id", 2);
|
|
5962
5976
|
__decorateClass([
|
|
5963
|
-
|
|
5964
|
-
|
|
5977
|
+
ManyToOne56(() => User, { onDelete: "CASCADE" }),
|
|
5978
|
+
JoinColumn57({ name: "reviewer_id" })
|
|
5965
5979
|
], Rating.prototype, "reviewer", 2);
|
|
5966
5980
|
__decorateClass([
|
|
5967
5981
|
Column62({ name: "reviewee_id", type: "integer" }),
|
|
5968
|
-
|
|
5982
|
+
Index55()
|
|
5969
5983
|
], Rating.prototype, "reviewee_id", 2);
|
|
5970
5984
|
__decorateClass([
|
|
5971
|
-
|
|
5972
|
-
|
|
5985
|
+
ManyToOne56(() => User, { onDelete: "CASCADE" }),
|
|
5986
|
+
JoinColumn57({ name: "reviewee_id" })
|
|
5973
5987
|
], Rating.prototype, "reviewee", 2);
|
|
5974
5988
|
__decorateClass([
|
|
5975
5989
|
Column62({
|
|
@@ -8075,13 +8089,13 @@ Skill = __decorateClass([
|
|
|
8075
8089
|
import {
|
|
8076
8090
|
Entity as Entity65,
|
|
8077
8091
|
Column as Column66,
|
|
8078
|
-
Index as
|
|
8092
|
+
Index as Index56
|
|
8079
8093
|
} from "typeorm";
|
|
8080
8094
|
var SkillCatalog = class extends BaseEntity {
|
|
8081
8095
|
};
|
|
8082
8096
|
__decorateClass([
|
|
8083
8097
|
Column66({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
8084
|
-
|
|
8098
|
+
Index56()
|
|
8085
8099
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
8086
8100
|
__decorateClass([
|
|
8087
8101
|
Column66({
|
|
@@ -8114,7 +8128,7 @@ __decorateClass([
|
|
|
8114
8128
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
8115
8129
|
__decorateClass([
|
|
8116
8130
|
Column66({ name: "usage_count", type: "integer", default: 0 }),
|
|
8117
|
-
|
|
8131
|
+
Index56()
|
|
8118
8132
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
8119
8133
|
__decorateClass([
|
|
8120
8134
|
Column66({ name: "is_verified", type: "boolean", default: false })
|
|
@@ -8531,13 +8545,13 @@ Commission = __decorateClass([
|
|
|
8531
8545
|
import {
|
|
8532
8546
|
Entity as Entity72,
|
|
8533
8547
|
Column as Column73,
|
|
8534
|
-
Index as
|
|
8548
|
+
Index as Index57
|
|
8535
8549
|
} from "typeorm";
|
|
8536
8550
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
8537
8551
|
};
|
|
8538
8552
|
__decorateClass([
|
|
8539
8553
|
Column73({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
8540
|
-
|
|
8554
|
+
Index57()
|
|
8541
8555
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
8542
8556
|
__decorateClass([
|
|
8543
8557
|
Column73({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
@@ -8553,13 +8567,13 @@ CalendlyMeetingLog = __decorateClass([
|
|
|
8553
8567
|
import {
|
|
8554
8568
|
Entity as Entity73,
|
|
8555
8569
|
Column as Column74,
|
|
8556
|
-
Index as
|
|
8570
|
+
Index as Index58
|
|
8557
8571
|
} from "typeorm";
|
|
8558
8572
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
8559
8573
|
};
|
|
8560
8574
|
__decorateClass([
|
|
8561
8575
|
Column74({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
8562
|
-
|
|
8576
|
+
Index58()
|
|
8563
8577
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
8564
8578
|
__decorateClass([
|
|
8565
8579
|
Column74({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
@@ -8595,7 +8609,7 @@ StripeLog = __decorateClass([
|
|
|
8595
8609
|
import {
|
|
8596
8610
|
Entity as Entity75,
|
|
8597
8611
|
Column as Column76,
|
|
8598
|
-
Index as
|
|
8612
|
+
Index as Index59
|
|
8599
8613
|
} from "typeorm";
|
|
8600
8614
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
8601
8615
|
};
|
|
@@ -8606,7 +8620,7 @@ __decorateClass([
|
|
|
8606
8620
|
unique: true,
|
|
8607
8621
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
8608
8622
|
}),
|
|
8609
|
-
|
|
8623
|
+
Index59()
|
|
8610
8624
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
8611
8625
|
__decorateClass([
|
|
8612
8626
|
Column76({
|