@experts_hub/shared 1.0.524 → 1.0.525
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/freelancer-assessment-request.entity.d.ts +15 -0
- package/dist/entities/user.entity.d.ts +3 -0
- package/dist/index.d.mts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +343 -269
- package/dist/index.mjs +233 -153
- package/dist/modules/client-admin/dto/create-client.dto.d.ts +2 -0
- package/dist/modules/client-admin/dto/update-client.dto.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1902,10 +1902,10 @@ var RATING_PATTERN = {
|
|
|
1902
1902
|
var import_class_validator43 = require("class-validator");
|
|
1903
1903
|
|
|
1904
1904
|
// src/entities/rating.entity.ts
|
|
1905
|
-
var
|
|
1905
|
+
var import_typeorm64 = require("typeorm");
|
|
1906
1906
|
|
|
1907
1907
|
// src/entities/user.entity.ts
|
|
1908
|
-
var
|
|
1908
|
+
var import_typeorm63 = require("typeorm");
|
|
1909
1909
|
|
|
1910
1910
|
// src/entities/base.entity.ts
|
|
1911
1911
|
var import_typeorm = require("typeorm");
|
|
@@ -5869,6 +5869,52 @@ Wallet = __decorateClass([
|
|
|
5869
5869
|
(0, import_typeorm61.Entity)("wallets")
|
|
5870
5870
|
], Wallet);
|
|
5871
5871
|
|
|
5872
|
+
// src/entities/freelancer-assessment-request.entity.ts
|
|
5873
|
+
var import_typeorm62 = require("typeorm");
|
|
5874
|
+
var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
|
|
5875
|
+
AssessmentRequestStatus2["PENDING"] = "PENDING";
|
|
5876
|
+
AssessmentRequestStatus2["APPROVED"] = "APPROVED";
|
|
5877
|
+
AssessmentRequestStatus2["REJECTED"] = "REJECTED";
|
|
5878
|
+
return AssessmentRequestStatus2;
|
|
5879
|
+
})(AssessmentRequestStatus || {});
|
|
5880
|
+
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
5881
|
+
};
|
|
5882
|
+
__decorateClass([
|
|
5883
|
+
(0, import_typeorm62.Column)({ name: "requested_by", type: "integer", nullable: true }),
|
|
5884
|
+
(0, import_typeorm62.Index)()
|
|
5885
|
+
], FreelancerAssessmentRequest.prototype, "requestedBy", 2);
|
|
5886
|
+
__decorateClass([
|
|
5887
|
+
(0, import_typeorm62.ManyToOne)(() => User, (requestedByUser) => requestedByUser.assessmentRequests),
|
|
5888
|
+
(0, import_typeorm62.JoinColumn)({ name: "requested_by" })
|
|
5889
|
+
], FreelancerAssessmentRequest.prototype, "requestedByUser", 2);
|
|
5890
|
+
__decorateClass([
|
|
5891
|
+
(0, import_typeorm62.Column)({ name: "approved_by", type: "integer", nullable: true }),
|
|
5892
|
+
(0, import_typeorm62.Index)()
|
|
5893
|
+
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
5894
|
+
__decorateClass([
|
|
5895
|
+
(0, import_typeorm62.ManyToOne)(() => User, (user) => user.assessmentRequests),
|
|
5896
|
+
(0, import_typeorm62.JoinColumn)({ name: "approved_by" })
|
|
5897
|
+
], FreelancerAssessmentRequest.prototype, "approvedByUser", 2);
|
|
5898
|
+
__decorateClass([
|
|
5899
|
+
(0, import_typeorm62.Column)({
|
|
5900
|
+
type: "enum",
|
|
5901
|
+
enum: AssessmentRequestStatus,
|
|
5902
|
+
default: "PENDING" /* PENDING */
|
|
5903
|
+
})
|
|
5904
|
+
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
5905
|
+
__decorateClass([
|
|
5906
|
+
(0, import_typeorm62.Column)({
|
|
5907
|
+
name: "status",
|
|
5908
|
+
type: "enum",
|
|
5909
|
+
enum: AssessmentRequestStatus,
|
|
5910
|
+
default: "PENDING" /* PENDING */
|
|
5911
|
+
}),
|
|
5912
|
+
(0, import_typeorm62.Column)({ name: "assessment_link", type: "text", nullable: true })
|
|
5913
|
+
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
5914
|
+
FreelancerAssessmentRequest = __decorateClass([
|
|
5915
|
+
(0, import_typeorm62.Entity)({ name: "freelancer_assessment_requests" })
|
|
5916
|
+
], FreelancerAssessmentRequest);
|
|
5917
|
+
|
|
5872
5918
|
// src/entities/user.entity.ts
|
|
5873
5919
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
5874
5920
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -5894,51 +5940,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5894
5940
|
var User = class extends BaseEntity {
|
|
5895
5941
|
};
|
|
5896
5942
|
__decorateClass([
|
|
5897
|
-
(0,
|
|
5943
|
+
(0, import_typeorm63.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
5898
5944
|
], User.prototype, "uniqueId", 2);
|
|
5899
5945
|
__decorateClass([
|
|
5900
|
-
(0,
|
|
5901
|
-
(0,
|
|
5946
|
+
(0, import_typeorm63.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
5947
|
+
(0, import_typeorm63.Index)()
|
|
5902
5948
|
], User.prototype, "parentId", 2);
|
|
5903
5949
|
__decorateClass([
|
|
5904
|
-
(0,
|
|
5905
|
-
(0,
|
|
5950
|
+
(0, import_typeorm63.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
5951
|
+
(0, import_typeorm63.JoinColumn)({ name: "parent_id" })
|
|
5906
5952
|
], User.prototype, "parent", 2);
|
|
5907
5953
|
__decorateClass([
|
|
5908
|
-
(0,
|
|
5954
|
+
(0, import_typeorm63.OneToMany)(() => User, (user) => user.parent)
|
|
5909
5955
|
], User.prototype, "children", 2);
|
|
5910
5956
|
__decorateClass([
|
|
5911
|
-
(0,
|
|
5957
|
+
(0, import_typeorm63.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5912
5958
|
], User.prototype, "username", 2);
|
|
5913
5959
|
__decorateClass([
|
|
5914
|
-
(0,
|
|
5960
|
+
(0, import_typeorm63.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5915
5961
|
], User.prototype, "firstName", 2);
|
|
5916
5962
|
__decorateClass([
|
|
5917
|
-
(0,
|
|
5963
|
+
(0, import_typeorm63.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5918
5964
|
], User.prototype, "lastName", 2);
|
|
5919
5965
|
__decorateClass([
|
|
5920
|
-
(0,
|
|
5966
|
+
(0, import_typeorm63.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
5921
5967
|
], User.prototype, "dateOfBirth", 2);
|
|
5922
5968
|
__decorateClass([
|
|
5923
|
-
(0,
|
|
5969
|
+
(0, import_typeorm63.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5924
5970
|
], User.prototype, "gender", 2);
|
|
5925
5971
|
__decorateClass([
|
|
5926
|
-
(0,
|
|
5972
|
+
(0, import_typeorm63.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5927
5973
|
], User.prototype, "profilePictureUrl", 2);
|
|
5928
5974
|
__decorateClass([
|
|
5929
|
-
(0,
|
|
5975
|
+
(0, import_typeorm63.Column)({ name: "email", type: "varchar", unique: true })
|
|
5930
5976
|
], User.prototype, "email", 2);
|
|
5931
5977
|
__decorateClass([
|
|
5932
|
-
(0,
|
|
5978
|
+
(0, import_typeorm63.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5933
5979
|
], User.prototype, "mobileCode", 2);
|
|
5934
5980
|
__decorateClass([
|
|
5935
|
-
(0,
|
|
5981
|
+
(0, import_typeorm63.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5936
5982
|
], User.prototype, "mobile", 2);
|
|
5937
5983
|
__decorateClass([
|
|
5938
|
-
(0,
|
|
5984
|
+
(0, import_typeorm63.Column)({ name: "password", type: "varchar", nullable: true })
|
|
5939
5985
|
], User.prototype, "password", 2);
|
|
5940
5986
|
__decorateClass([
|
|
5941
|
-
(0,
|
|
5987
|
+
(0, import_typeorm63.Column)({
|
|
5942
5988
|
name: "account_type",
|
|
5943
5989
|
type: "enum",
|
|
5944
5990
|
enum: AccountType,
|
|
@@ -5946,7 +5992,7 @@ __decorateClass([
|
|
|
5946
5992
|
})
|
|
5947
5993
|
], User.prototype, "accountType", 2);
|
|
5948
5994
|
__decorateClass([
|
|
5949
|
-
(0,
|
|
5995
|
+
(0, import_typeorm63.Column)({
|
|
5950
5996
|
name: "account_status",
|
|
5951
5997
|
type: "enum",
|
|
5952
5998
|
enum: AccountStatus,
|
|
@@ -5954,42 +6000,42 @@ __decorateClass([
|
|
|
5954
6000
|
})
|
|
5955
6001
|
], User.prototype, "accountStatus", 2);
|
|
5956
6002
|
__decorateClass([
|
|
5957
|
-
(0,
|
|
6003
|
+
(0, import_typeorm63.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
5958
6004
|
], User.prototype, "isEmailVerified", 2);
|
|
5959
6005
|
__decorateClass([
|
|
5960
|
-
(0,
|
|
6006
|
+
(0, import_typeorm63.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5961
6007
|
], User.prototype, "isMobileVerified", 2);
|
|
5962
6008
|
__decorateClass([
|
|
5963
|
-
(0,
|
|
6009
|
+
(0, import_typeorm63.Column)({ name: "is_social", type: "boolean", default: false })
|
|
5964
6010
|
], User.prototype, "isSocial", 2);
|
|
5965
6011
|
__decorateClass([
|
|
5966
|
-
(0,
|
|
6012
|
+
(0, import_typeorm63.Column)({
|
|
5967
6013
|
name: "last_login_at",
|
|
5968
6014
|
type: "timestamp with time zone",
|
|
5969
6015
|
nullable: true
|
|
5970
6016
|
})
|
|
5971
6017
|
], User.prototype, "lastLoginAt", 2);
|
|
5972
6018
|
__decorateClass([
|
|
5973
|
-
(0,
|
|
6019
|
+
(0, import_typeorm63.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5974
6020
|
], User.prototype, "lastLoginIp", 2);
|
|
5975
6021
|
__decorateClass([
|
|
5976
|
-
(0,
|
|
6022
|
+
(0, import_typeorm63.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
5977
6023
|
], User.prototype, "resetToken", 2);
|
|
5978
6024
|
__decorateClass([
|
|
5979
|
-
(0,
|
|
6025
|
+
(0, import_typeorm63.Column)({
|
|
5980
6026
|
name: "reset_token_expire_at",
|
|
5981
6027
|
type: "timestamp with time zone",
|
|
5982
6028
|
nullable: true
|
|
5983
6029
|
})
|
|
5984
6030
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5985
6031
|
__decorateClass([
|
|
5986
|
-
(0,
|
|
6032
|
+
(0, import_typeorm63.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5987
6033
|
], User.prototype, "setPasswordToken", 2);
|
|
5988
6034
|
__decorateClass([
|
|
5989
|
-
(0,
|
|
6035
|
+
(0, import_typeorm63.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
5990
6036
|
], User.prototype, "refreshTokens", 2);
|
|
5991
6037
|
__decorateClass([
|
|
5992
|
-
(0,
|
|
6038
|
+
(0, import_typeorm63.Column)({
|
|
5993
6039
|
name: "provider",
|
|
5994
6040
|
type: "enum",
|
|
5995
6041
|
enum: Provider,
|
|
@@ -5998,214 +6044,226 @@ __decorateClass([
|
|
|
5998
6044
|
})
|
|
5999
6045
|
], User.prototype, "provider", 2);
|
|
6000
6046
|
__decorateClass([
|
|
6001
|
-
(0,
|
|
6047
|
+
(0, import_typeorm63.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
6002
6048
|
], User.prototype, "providerToken", 2);
|
|
6003
6049
|
__decorateClass([
|
|
6004
|
-
(0,
|
|
6050
|
+
(0, import_typeorm63.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6005
6051
|
], User.prototype, "linkedInId", 2);
|
|
6006
6052
|
__decorateClass([
|
|
6007
|
-
(0,
|
|
6053
|
+
(0, import_typeorm63.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
6008
6054
|
], User.prototype, "googleId", 2);
|
|
6009
6055
|
__decorateClass([
|
|
6010
|
-
(0,
|
|
6056
|
+
(0, import_typeorm63.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6011
6057
|
], User.prototype, "gitLabsId", 2);
|
|
6012
6058
|
__decorateClass([
|
|
6013
|
-
(0,
|
|
6059
|
+
(0, import_typeorm63.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6014
6060
|
], User.prototype, "onBoardedBy", 2);
|
|
6015
6061
|
__decorateClass([
|
|
6016
|
-
(0,
|
|
6062
|
+
(0, import_typeorm63.OneToMany)(() => Otp, (otp) => otp.user)
|
|
6017
6063
|
], User.prototype, "otps", 2);
|
|
6018
6064
|
__decorateClass([
|
|
6019
|
-
(0,
|
|
6065
|
+
(0, import_typeorm63.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6020
6066
|
], User.prototype, "senseloafLogs", 2);
|
|
6021
6067
|
__decorateClass([
|
|
6022
|
-
(0,
|
|
6068
|
+
(0, import_typeorm63.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6023
6069
|
], User.prototype, "companyProfile", 2);
|
|
6024
6070
|
__decorateClass([
|
|
6025
|
-
(0,
|
|
6071
|
+
(0, import_typeorm63.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
6026
6072
|
], User.prototype, "companySkills", 2);
|
|
6027
6073
|
__decorateClass([
|
|
6028
|
-
(0,
|
|
6074
|
+
(0, import_typeorm63.OneToMany)(
|
|
6029
6075
|
() => CompanyMemberRole,
|
|
6030
6076
|
(companyMemberRole) => companyMemberRole.user
|
|
6031
6077
|
)
|
|
6032
6078
|
], User.prototype, "companyMemberRoles", 2);
|
|
6033
6079
|
__decorateClass([
|
|
6034
|
-
(0,
|
|
6080
|
+
(0, import_typeorm63.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6035
6081
|
], User.prototype, "companyAiInterview", 2);
|
|
6036
6082
|
__decorateClass([
|
|
6037
|
-
(0,
|
|
6083
|
+
(0, import_typeorm63.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6038
6084
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6039
6085
|
__decorateClass([
|
|
6040
|
-
(0,
|
|
6086
|
+
(0, import_typeorm63.OneToOne)(
|
|
6041
6087
|
() => FreelancerProfile,
|
|
6042
6088
|
(freelancerProfile) => freelancerProfile.user
|
|
6043
6089
|
)
|
|
6044
6090
|
], User.prototype, "freelancerProfile", 2);
|
|
6045
6091
|
__decorateClass([
|
|
6046
|
-
(0,
|
|
6092
|
+
(0, import_typeorm63.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6047
6093
|
], User.prototype, "freelancerResume", 2);
|
|
6048
6094
|
__decorateClass([
|
|
6049
|
-
(0,
|
|
6095
|
+
(0, import_typeorm63.OneToMany)(
|
|
6050
6096
|
() => FreelancerAssessment,
|
|
6051
6097
|
(freelancerAssessment) => freelancerAssessment.user
|
|
6052
6098
|
)
|
|
6053
6099
|
], User.prototype, "assessments", 2);
|
|
6054
6100
|
__decorateClass([
|
|
6055
|
-
(0,
|
|
6101
|
+
(0, import_typeorm63.OneToMany)(
|
|
6102
|
+
() => FreelancerAssessmentRequest,
|
|
6103
|
+
(freelancerAssessment) => freelancerAssessment.requestedBy
|
|
6104
|
+
)
|
|
6105
|
+
], User.prototype, "assessmentRequests", 2);
|
|
6106
|
+
__decorateClass([
|
|
6107
|
+
(0, import_typeorm63.OneToMany)(
|
|
6108
|
+
() => FreelancerAssessmentRequest,
|
|
6109
|
+
(freelancerAssessmentRequest) => freelancerAssessmentRequest.approvedBy
|
|
6110
|
+
)
|
|
6111
|
+
], User.prototype, "approvedAssessmentRequests", 2);
|
|
6112
|
+
__decorateClass([
|
|
6113
|
+
(0, import_typeorm63.OneToMany)(
|
|
6056
6114
|
() => AssessmentAnswer,
|
|
6057
6115
|
(assessmentAnswer) => assessmentAnswer.user
|
|
6058
6116
|
)
|
|
6059
6117
|
], User.prototype, "assessmentAnswers", 2);
|
|
6060
6118
|
__decorateClass([
|
|
6061
|
-
(0,
|
|
6119
|
+
(0, import_typeorm63.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
6062
6120
|
], User.prototype, "freelancerSkills", 2);
|
|
6063
6121
|
__decorateClass([
|
|
6064
|
-
(0,
|
|
6122
|
+
(0, import_typeorm63.OneToMany)(
|
|
6065
6123
|
() => FreelancerExperience,
|
|
6066
6124
|
(freelancerExperience) => freelancerExperience.user
|
|
6067
6125
|
)
|
|
6068
6126
|
], User.prototype, "freelancerExperience", 2);
|
|
6069
6127
|
__decorateClass([
|
|
6070
|
-
(0,
|
|
6128
|
+
(0, import_typeorm63.OneToMany)(
|
|
6071
6129
|
() => FreelancerEducation,
|
|
6072
6130
|
(freelancerEducation) => freelancerEducation.user
|
|
6073
6131
|
)
|
|
6074
6132
|
], User.prototype, "freelancerEducation", 2);
|
|
6075
6133
|
__decorateClass([
|
|
6076
|
-
(0,
|
|
6134
|
+
(0, import_typeorm63.OneToMany)(
|
|
6077
6135
|
() => FreelancerProject,
|
|
6078
6136
|
(freelancerProject) => freelancerProject.user
|
|
6079
6137
|
)
|
|
6080
6138
|
], User.prototype, "freelancerProject", 2);
|
|
6081
6139
|
__decorateClass([
|
|
6082
|
-
(0,
|
|
6140
|
+
(0, import_typeorm63.OneToMany)(
|
|
6083
6141
|
() => FreelancerCaseStudy,
|
|
6084
6142
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6085
6143
|
)
|
|
6086
6144
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6087
6145
|
__decorateClass([
|
|
6088
|
-
(0,
|
|
6146
|
+
(0, import_typeorm63.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6089
6147
|
], User.prototype, "freelancerTool", 2);
|
|
6090
6148
|
__decorateClass([
|
|
6091
|
-
(0,
|
|
6149
|
+
(0, import_typeorm63.OneToMany)(
|
|
6092
6150
|
() => FreelancerFramework,
|
|
6093
6151
|
(freelancerFramework) => freelancerFramework.user
|
|
6094
6152
|
)
|
|
6095
6153
|
], User.prototype, "freelancerFramework", 2);
|
|
6096
6154
|
__decorateClass([
|
|
6097
|
-
(0,
|
|
6155
|
+
(0, import_typeorm63.OneToOne)(
|
|
6098
6156
|
() => FreelancerDeclaration,
|
|
6099
6157
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
6100
6158
|
)
|
|
6101
6159
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6102
6160
|
__decorateClass([
|
|
6103
|
-
(0,
|
|
6161
|
+
(0, import_typeorm63.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6104
6162
|
], User.prototype, "freelancerMcq", 2);
|
|
6105
6163
|
__decorateClass([
|
|
6106
|
-
(0,
|
|
6164
|
+
(0, import_typeorm63.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6107
6165
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6108
6166
|
__decorateClass([
|
|
6109
|
-
(0,
|
|
6167
|
+
(0, import_typeorm63.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6110
6168
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6111
6169
|
__decorateClass([
|
|
6112
|
-
(0,
|
|
6170
|
+
(0, import_typeorm63.OneToMany)(
|
|
6113
6171
|
() => F2fInterviewRescheduleRequest,
|
|
6114
6172
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6115
6173
|
)
|
|
6116
6174
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6117
6175
|
__decorateClass([
|
|
6118
|
-
(0,
|
|
6176
|
+
(0, import_typeorm63.OneToMany)(() => Job, (job) => job.user)
|
|
6119
6177
|
], User.prototype, "jobs", 2);
|
|
6120
6178
|
__decorateClass([
|
|
6121
|
-
(0,
|
|
6179
|
+
(0, import_typeorm63.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6122
6180
|
], User.prototype, "jobApplications", 2);
|
|
6123
6181
|
__decorateClass([
|
|
6124
|
-
(0,
|
|
6182
|
+
(0, import_typeorm63.OneToMany)(() => Interview, (interview) => interview.user)
|
|
6125
6183
|
], User.prototype, "interviews", 2);
|
|
6126
6184
|
__decorateClass([
|
|
6127
|
-
(0,
|
|
6185
|
+
(0, import_typeorm63.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6128
6186
|
], User.prototype, "bankDetail", 2);
|
|
6129
6187
|
__decorateClass([
|
|
6130
|
-
(0,
|
|
6188
|
+
(0, import_typeorm63.OneToMany)(
|
|
6131
6189
|
() => SystemPreference,
|
|
6132
6190
|
(systemPreference) => systemPreference.user
|
|
6133
6191
|
)
|
|
6134
6192
|
], User.prototype, "systemPreference", 2);
|
|
6135
6193
|
__decorateClass([
|
|
6136
|
-
(0,
|
|
6194
|
+
(0, import_typeorm63.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
6137
6195
|
], User.prototype, "givenRatings", 2);
|
|
6138
6196
|
__decorateClass([
|
|
6139
|
-
(0,
|
|
6197
|
+
(0, import_typeorm63.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
6140
6198
|
], User.prototype, "receivedRatings", 2);
|
|
6141
6199
|
__decorateClass([
|
|
6142
|
-
(0,
|
|
6200
|
+
(0, import_typeorm63.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6143
6201
|
], User.prototype, "adminUserRoles", 2);
|
|
6144
6202
|
__decorateClass([
|
|
6145
|
-
(0,
|
|
6203
|
+
(0, import_typeorm63.OneToMany)(() => Contract, (contract) => contract.client)
|
|
6146
6204
|
], User.prototype, "clientContracts", 2);
|
|
6147
6205
|
__decorateClass([
|
|
6148
|
-
(0,
|
|
6206
|
+
(0, import_typeorm63.OneToMany)(() => Hiring, (hiring) => hiring.client)
|
|
6149
6207
|
], User.prototype, "clientHirings", 2);
|
|
6150
6208
|
__decorateClass([
|
|
6151
|
-
(0,
|
|
6209
|
+
(0, import_typeorm63.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6152
6210
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6153
6211
|
__decorateClass([
|
|
6154
|
-
(0,
|
|
6212
|
+
(0, import_typeorm63.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
6155
6213
|
], User.prototype, "freelancerContracts", 2);
|
|
6156
6214
|
__decorateClass([
|
|
6157
|
-
(0,
|
|
6215
|
+
(0, import_typeorm63.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
|
|
6158
6216
|
], User.prototype, "freelancerHirings", 2);
|
|
6159
6217
|
__decorateClass([
|
|
6160
|
-
(0,
|
|
6218
|
+
(0, import_typeorm63.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6161
6219
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6162
6220
|
__decorateClass([
|
|
6163
|
-
(0,
|
|
6221
|
+
(0, import_typeorm63.OneToOne)(() => Signature, (signature) => signature.user)
|
|
6164
6222
|
], User.prototype, "signatures", 2);
|
|
6165
6223
|
__decorateClass([
|
|
6166
|
-
(0,
|
|
6224
|
+
(0, import_typeorm63.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
6167
6225
|
], User.prototype, "clientTimesheets", 2);
|
|
6168
6226
|
__decorateClass([
|
|
6169
|
-
(0,
|
|
6227
|
+
(0, import_typeorm63.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6170
6228
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6171
6229
|
__decorateClass([
|
|
6172
|
-
(0,
|
|
6230
|
+
(0, import_typeorm63.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6173
6231
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6174
6232
|
__decorateClass([
|
|
6175
|
-
(0,
|
|
6233
|
+
(0, import_typeorm63.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
6176
6234
|
], User.prototype, "clientInvoice", 2);
|
|
6177
6235
|
__decorateClass([
|
|
6178
|
-
(0,
|
|
6236
|
+
(0, import_typeorm63.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6179
6237
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6180
6238
|
__decorateClass([
|
|
6181
|
-
(0,
|
|
6239
|
+
(0, import_typeorm63.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
6182
6240
|
], User.prototype, "freelancerInvoice", 2);
|
|
6183
6241
|
__decorateClass([
|
|
6184
|
-
(0,
|
|
6242
|
+
(0, import_typeorm63.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6185
6243
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6186
6244
|
__decorateClass([
|
|
6187
|
-
(0,
|
|
6245
|
+
(0, import_typeorm63.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6188
6246
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6189
6247
|
__decorateClass([
|
|
6190
|
-
(0,
|
|
6248
|
+
(0, import_typeorm63.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6191
6249
|
], User.prototype, "initiatedDisputes", 2);
|
|
6192
6250
|
__decorateClass([
|
|
6193
|
-
(0,
|
|
6251
|
+
(0, import_typeorm63.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6194
6252
|
], User.prototype, "respondentDisputes", 2);
|
|
6195
6253
|
__decorateClass([
|
|
6196
|
-
(0,
|
|
6254
|
+
(0, import_typeorm63.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
6197
6255
|
], User.prototype, "wallet", 2);
|
|
6198
6256
|
__decorateClass([
|
|
6199
|
-
(0,
|
|
6257
|
+
(0, import_typeorm63.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6200
6258
|
], User.prototype, "stripeTransactions", 2);
|
|
6201
6259
|
__decorateClass([
|
|
6202
|
-
(0,
|
|
6260
|
+
(0, import_typeorm63.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
6203
6261
|
], User.prototype, "clientDisputes", 2);
|
|
6204
6262
|
__decorateClass([
|
|
6205
|
-
(0,
|
|
6263
|
+
(0, import_typeorm63.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
6206
6264
|
], User.prototype, "freelancerDisputes", 2);
|
|
6207
6265
|
User = __decorateClass([
|
|
6208
|
-
(0,
|
|
6266
|
+
(0, import_typeorm63.Entity)("users")
|
|
6209
6267
|
], User);
|
|
6210
6268
|
|
|
6211
6269
|
// src/entities/rating.entity.ts
|
|
@@ -6217,36 +6275,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
6217
6275
|
var Rating = class extends BaseEntity {
|
|
6218
6276
|
};
|
|
6219
6277
|
__decorateClass([
|
|
6220
|
-
(0,
|
|
6221
|
-
(0,
|
|
6278
|
+
(0, import_typeorm64.Column)({ name: "reviewer_id", type: "integer" }),
|
|
6279
|
+
(0, import_typeorm64.Index)()
|
|
6222
6280
|
], Rating.prototype, "reviewer_id", 2);
|
|
6223
6281
|
__decorateClass([
|
|
6224
|
-
(0,
|
|
6225
|
-
(0,
|
|
6282
|
+
(0, import_typeorm64.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
6283
|
+
(0, import_typeorm64.JoinColumn)({ name: "reviewer_id" })
|
|
6226
6284
|
], Rating.prototype, "reviewer", 2);
|
|
6227
6285
|
__decorateClass([
|
|
6228
|
-
(0,
|
|
6229
|
-
(0,
|
|
6286
|
+
(0, import_typeorm64.Column)({ name: "reviewee_id", type: "integer" }),
|
|
6287
|
+
(0, import_typeorm64.Index)()
|
|
6230
6288
|
], Rating.prototype, "reviewee_id", 2);
|
|
6231
6289
|
__decorateClass([
|
|
6232
|
-
(0,
|
|
6233
|
-
(0,
|
|
6290
|
+
(0, import_typeorm64.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
6291
|
+
(0, import_typeorm64.JoinColumn)({ name: "reviewee_id" })
|
|
6234
6292
|
], Rating.prototype, "reviewee", 2);
|
|
6235
6293
|
__decorateClass([
|
|
6236
|
-
(0,
|
|
6294
|
+
(0, import_typeorm64.Column)({
|
|
6237
6295
|
type: "enum",
|
|
6238
6296
|
enum: RatingTypeEnum,
|
|
6239
6297
|
nullable: true
|
|
6240
6298
|
})
|
|
6241
6299
|
], Rating.prototype, "ratingType", 2);
|
|
6242
6300
|
__decorateClass([
|
|
6243
|
-
(0,
|
|
6301
|
+
(0, import_typeorm64.Column)({ type: "integer", nullable: true })
|
|
6244
6302
|
], Rating.prototype, "rating", 2);
|
|
6245
6303
|
__decorateClass([
|
|
6246
|
-
(0,
|
|
6304
|
+
(0, import_typeorm64.Column)({ type: "text", nullable: true })
|
|
6247
6305
|
], Rating.prototype, "review", 2);
|
|
6248
6306
|
Rating = __decorateClass([
|
|
6249
|
-
(0,
|
|
6307
|
+
(0, import_typeorm64.Entity)("ratings")
|
|
6250
6308
|
], Rating);
|
|
6251
6309
|
|
|
6252
6310
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -6868,6 +6926,14 @@ __decorateClass([
|
|
|
6868
6926
|
(0, import_class_validator56.IsOptional)(),
|
|
6869
6927
|
(0, import_class_validator56.IsString)()
|
|
6870
6928
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
6929
|
+
__decorateClass([
|
|
6930
|
+
(0, import_class_validator56.IsOptional)(),
|
|
6931
|
+
(0, import_class_validator56.IsString)()
|
|
6932
|
+
], CreateClientDto.prototype, "hiringCommisionTypeForFte", 2);
|
|
6933
|
+
__decorateClass([
|
|
6934
|
+
(0, import_class_validator56.IsOptional)(),
|
|
6935
|
+
(0, import_class_validator56.IsString)()
|
|
6936
|
+
], CreateClientDto.prototype, "hiringCommissionValueForFte", 2);
|
|
6871
6937
|
|
|
6872
6938
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
6873
6939
|
var import_class_validator57 = require("class-validator");
|
|
@@ -6944,6 +7010,14 @@ __decorateClass([
|
|
|
6944
7010
|
(0, import_class_validator58.IsOptional)(),
|
|
6945
7011
|
(0, import_class_validator58.IsString)()
|
|
6946
7012
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
7013
|
+
__decorateClass([
|
|
7014
|
+
(0, import_class_validator58.IsOptional)(),
|
|
7015
|
+
(0, import_class_validator58.IsString)()
|
|
7016
|
+
], UpdateClientDto.prototype, "hiringCommisionTypeForFte", 2);
|
|
7017
|
+
__decorateClass([
|
|
7018
|
+
(0, import_class_validator58.IsOptional)(),
|
|
7019
|
+
(0, import_class_validator58.IsString)()
|
|
7020
|
+
], UpdateClientDto.prototype, "hiringCommissionValueForFte", 2);
|
|
6947
7021
|
|
|
6948
7022
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
6949
7023
|
var FREELANCER_DECLARATION_PATTERN = {
|
|
@@ -8312,11 +8386,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
8312
8386
|
};
|
|
8313
8387
|
|
|
8314
8388
|
// src/entities/sequence-generator.entity.ts
|
|
8315
|
-
var
|
|
8389
|
+
var import_typeorm65 = require("typeorm");
|
|
8316
8390
|
var SequenceGenerator = class extends BaseEntity {
|
|
8317
8391
|
};
|
|
8318
8392
|
__decorateClass([
|
|
8319
|
-
(0,
|
|
8393
|
+
(0, import_typeorm65.Column)({
|
|
8320
8394
|
name: "module",
|
|
8321
8395
|
type: "varchar",
|
|
8322
8396
|
length: 50,
|
|
@@ -8325,7 +8399,7 @@ __decorateClass([
|
|
|
8325
8399
|
})
|
|
8326
8400
|
], SequenceGenerator.prototype, "module", 2);
|
|
8327
8401
|
__decorateClass([
|
|
8328
|
-
(0,
|
|
8402
|
+
(0, import_typeorm65.Column)({
|
|
8329
8403
|
name: "prefix",
|
|
8330
8404
|
type: "varchar",
|
|
8331
8405
|
length: 10,
|
|
@@ -8334,7 +8408,7 @@ __decorateClass([
|
|
|
8334
8408
|
})
|
|
8335
8409
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
8336
8410
|
__decorateClass([
|
|
8337
|
-
(0,
|
|
8411
|
+
(0, import_typeorm65.Column)({
|
|
8338
8412
|
name: "last_sequence",
|
|
8339
8413
|
type: "int",
|
|
8340
8414
|
nullable: false,
|
|
@@ -8342,7 +8416,7 @@ __decorateClass([
|
|
|
8342
8416
|
})
|
|
8343
8417
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
8344
8418
|
__decorateClass([
|
|
8345
|
-
(0,
|
|
8419
|
+
(0, import_typeorm65.Column)({
|
|
8346
8420
|
name: "year",
|
|
8347
8421
|
type: "int",
|
|
8348
8422
|
nullable: true,
|
|
@@ -8350,11 +8424,11 @@ __decorateClass([
|
|
|
8350
8424
|
})
|
|
8351
8425
|
], SequenceGenerator.prototype, "year", 2);
|
|
8352
8426
|
SequenceGenerator = __decorateClass([
|
|
8353
|
-
(0,
|
|
8427
|
+
(0, import_typeorm65.Entity)("sequence_generators")
|
|
8354
8428
|
], SequenceGenerator);
|
|
8355
8429
|
|
|
8356
8430
|
// src/entities/question.entity.ts
|
|
8357
|
-
var
|
|
8431
|
+
var import_typeorm66 = require("typeorm");
|
|
8358
8432
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
8359
8433
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
8360
8434
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -8363,16 +8437,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
8363
8437
|
var Question = class extends BaseEntity {
|
|
8364
8438
|
};
|
|
8365
8439
|
__decorateClass([
|
|
8366
|
-
(0,
|
|
8440
|
+
(0, import_typeorm66.Column)({ name: "question", type: "varchar" })
|
|
8367
8441
|
], Question.prototype, "question", 2);
|
|
8368
8442
|
__decorateClass([
|
|
8369
|
-
(0,
|
|
8443
|
+
(0, import_typeorm66.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
8370
8444
|
], Question.prototype, "hint", 2);
|
|
8371
8445
|
__decorateClass([
|
|
8372
|
-
(0,
|
|
8446
|
+
(0, import_typeorm66.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8373
8447
|
], Question.prototype, "slug", 2);
|
|
8374
8448
|
__decorateClass([
|
|
8375
|
-
(0,
|
|
8449
|
+
(0, import_typeorm66.Column)({
|
|
8376
8450
|
name: "question_for",
|
|
8377
8451
|
type: "enum",
|
|
8378
8452
|
enum: QuestionFor,
|
|
@@ -8380,45 +8454,45 @@ __decorateClass([
|
|
|
8380
8454
|
})
|
|
8381
8455
|
], Question.prototype, "questionFor", 2);
|
|
8382
8456
|
__decorateClass([
|
|
8383
|
-
(0,
|
|
8457
|
+
(0, import_typeorm66.Column)({ name: "type", type: "varchar", nullable: true })
|
|
8384
8458
|
], Question.prototype, "type", 2);
|
|
8385
8459
|
__decorateClass([
|
|
8386
|
-
(0,
|
|
8460
|
+
(0, import_typeorm66.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
8387
8461
|
], Question.prototype, "options", 2);
|
|
8388
8462
|
__decorateClass([
|
|
8389
|
-
(0,
|
|
8463
|
+
(0, import_typeorm66.Column)({ name: "is_active", type: "boolean", default: false })
|
|
8390
8464
|
], Question.prototype, "isActive", 2);
|
|
8391
8465
|
Question = __decorateClass([
|
|
8392
|
-
(0,
|
|
8466
|
+
(0, import_typeorm66.Entity)("questions")
|
|
8393
8467
|
], Question);
|
|
8394
8468
|
|
|
8395
8469
|
// src/entities/skill.entity.ts
|
|
8396
|
-
var
|
|
8470
|
+
var import_typeorm67 = require("typeorm");
|
|
8397
8471
|
var Skill = class extends BaseEntity {
|
|
8398
8472
|
};
|
|
8399
8473
|
__decorateClass([
|
|
8400
|
-
(0,
|
|
8474
|
+
(0, import_typeorm67.Column)({ name: "name", type: "varchar", nullable: true })
|
|
8401
8475
|
], Skill.prototype, "name", 2);
|
|
8402
8476
|
__decorateClass([
|
|
8403
|
-
(0,
|
|
8477
|
+
(0, import_typeorm67.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8404
8478
|
], Skill.prototype, "slug", 2);
|
|
8405
8479
|
__decorateClass([
|
|
8406
|
-
(0,
|
|
8480
|
+
(0, import_typeorm67.Column)({ name: "is_active", type: "boolean", default: false })
|
|
8407
8481
|
], Skill.prototype, "isActive", 2);
|
|
8408
8482
|
Skill = __decorateClass([
|
|
8409
|
-
(0,
|
|
8483
|
+
(0, import_typeorm67.Entity)("skills")
|
|
8410
8484
|
], Skill);
|
|
8411
8485
|
|
|
8412
8486
|
// src/entities/skill-catalog.entity.ts
|
|
8413
|
-
var
|
|
8487
|
+
var import_typeorm68 = require("typeorm");
|
|
8414
8488
|
var SkillCatalog = class extends BaseEntity {
|
|
8415
8489
|
};
|
|
8416
8490
|
__decorateClass([
|
|
8417
|
-
(0,
|
|
8418
|
-
(0,
|
|
8491
|
+
(0, import_typeorm68.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
8492
|
+
(0, import_typeorm68.Index)()
|
|
8419
8493
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
8420
8494
|
__decorateClass([
|
|
8421
|
-
(0,
|
|
8495
|
+
(0, import_typeorm68.Column)({
|
|
8422
8496
|
name: "aliases",
|
|
8423
8497
|
type: "text",
|
|
8424
8498
|
array: true,
|
|
@@ -8426,20 +8500,20 @@ __decorateClass([
|
|
|
8426
8500
|
})
|
|
8427
8501
|
], SkillCatalog.prototype, "aliases", 2);
|
|
8428
8502
|
__decorateClass([
|
|
8429
|
-
(0,
|
|
8503
|
+
(0, import_typeorm68.Column)({
|
|
8430
8504
|
name: "variations",
|
|
8431
8505
|
type: "jsonb",
|
|
8432
8506
|
default: "{}"
|
|
8433
8507
|
})
|
|
8434
8508
|
], SkillCatalog.prototype, "variations", 2);
|
|
8435
8509
|
__decorateClass([
|
|
8436
|
-
(0,
|
|
8510
|
+
(0, import_typeorm68.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
8437
8511
|
], SkillCatalog.prototype, "category", 2);
|
|
8438
8512
|
__decorateClass([
|
|
8439
|
-
(0,
|
|
8513
|
+
(0, import_typeorm68.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
8440
8514
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
8441
8515
|
__decorateClass([
|
|
8442
|
-
(0,
|
|
8516
|
+
(0, import_typeorm68.Column)({
|
|
8443
8517
|
name: "related_skills",
|
|
8444
8518
|
type: "text",
|
|
8445
8519
|
array: true,
|
|
@@ -8447,111 +8521,111 @@ __decorateClass([
|
|
|
8447
8521
|
})
|
|
8448
8522
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
8449
8523
|
__decorateClass([
|
|
8450
|
-
(0,
|
|
8451
|
-
(0,
|
|
8524
|
+
(0, import_typeorm68.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
8525
|
+
(0, import_typeorm68.Index)()
|
|
8452
8526
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
8453
8527
|
__decorateClass([
|
|
8454
|
-
(0,
|
|
8528
|
+
(0, import_typeorm68.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
8455
8529
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
8456
8530
|
__decorateClass([
|
|
8457
|
-
(0,
|
|
8531
|
+
(0, import_typeorm68.Column)({ name: "first_seen_date", type: "date" })
|
|
8458
8532
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
8459
8533
|
__decorateClass([
|
|
8460
|
-
(0,
|
|
8534
|
+
(0, import_typeorm68.Column)({ name: "last_updated_date", type: "date" })
|
|
8461
8535
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
8462
8536
|
__decorateClass([
|
|
8463
|
-
(0,
|
|
8537
|
+
(0, import_typeorm68.Column)({
|
|
8464
8538
|
name: "search_vector",
|
|
8465
8539
|
type: "tsvector",
|
|
8466
8540
|
nullable: true
|
|
8467
8541
|
})
|
|
8468
8542
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
8469
8543
|
SkillCatalog = __decorateClass([
|
|
8470
|
-
(0,
|
|
8544
|
+
(0, import_typeorm68.Entity)("skill_catalogs")
|
|
8471
8545
|
], SkillCatalog);
|
|
8472
8546
|
|
|
8473
8547
|
// src/entities/job-role.entity.ts
|
|
8474
|
-
var
|
|
8548
|
+
var import_typeorm69 = require("typeorm");
|
|
8475
8549
|
var JobRoles = class extends BaseEntity {
|
|
8476
8550
|
};
|
|
8477
8551
|
__decorateClass([
|
|
8478
|
-
(0,
|
|
8552
|
+
(0, import_typeorm69.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8479
8553
|
], JobRoles.prototype, "slug", 2);
|
|
8480
8554
|
__decorateClass([
|
|
8481
|
-
(0,
|
|
8555
|
+
(0, import_typeorm69.Column)({ name: "name", type: "varchar", nullable: true })
|
|
8482
8556
|
], JobRoles.prototype, "name", 2);
|
|
8483
8557
|
__decorateClass([
|
|
8484
|
-
(0,
|
|
8558
|
+
(0, import_typeorm69.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8485
8559
|
], JobRoles.prototype, "isActive", 2);
|
|
8486
8560
|
JobRoles = __decorateClass([
|
|
8487
|
-
(0,
|
|
8561
|
+
(0, import_typeorm69.Entity)("job_roles")
|
|
8488
8562
|
], JobRoles);
|
|
8489
8563
|
|
|
8490
8564
|
// src/entities/plan.entity.ts
|
|
8491
|
-
var
|
|
8565
|
+
var import_typeorm71 = require("typeorm");
|
|
8492
8566
|
|
|
8493
8567
|
// src/entities/feature.entity.ts
|
|
8494
|
-
var
|
|
8568
|
+
var import_typeorm70 = require("typeorm");
|
|
8495
8569
|
var Feature = class extends BaseEntity {
|
|
8496
8570
|
};
|
|
8497
8571
|
__decorateClass([
|
|
8498
|
-
(0,
|
|
8572
|
+
(0, import_typeorm70.Column)({ name: "name", type: "varchar", unique: true })
|
|
8499
8573
|
], Feature.prototype, "name", 2);
|
|
8500
8574
|
__decorateClass([
|
|
8501
|
-
(0,
|
|
8575
|
+
(0, import_typeorm70.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
8502
8576
|
], Feature.prototype, "plans", 2);
|
|
8503
8577
|
Feature = __decorateClass([
|
|
8504
|
-
(0,
|
|
8578
|
+
(0, import_typeorm70.Entity)("features")
|
|
8505
8579
|
], Feature);
|
|
8506
8580
|
|
|
8507
8581
|
// src/entities/plan.entity.ts
|
|
8508
8582
|
var Plan = class extends BaseEntity {
|
|
8509
8583
|
};
|
|
8510
8584
|
__decorateClass([
|
|
8511
|
-
(0,
|
|
8585
|
+
(0, import_typeorm71.Column)({ name: "name", type: "varchar", unique: true })
|
|
8512
8586
|
], Plan.prototype, "name", 2);
|
|
8513
8587
|
__decorateClass([
|
|
8514
|
-
(0,
|
|
8588
|
+
(0, import_typeorm71.Column)({ name: "description", type: "varchar", nullable: true })
|
|
8515
8589
|
], Plan.prototype, "description", 2);
|
|
8516
8590
|
__decorateClass([
|
|
8517
|
-
(0,
|
|
8591
|
+
(0, import_typeorm71.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
8518
8592
|
], Plan.prototype, "price", 2);
|
|
8519
8593
|
__decorateClass([
|
|
8520
|
-
(0,
|
|
8594
|
+
(0, import_typeorm71.Column)({ name: "billing_period", type: "varchar" })
|
|
8521
8595
|
], Plan.prototype, "billingPeriod", 2);
|
|
8522
8596
|
__decorateClass([
|
|
8523
|
-
(0,
|
|
8597
|
+
(0, import_typeorm71.Column)({ name: "is_current", type: "boolean", default: false })
|
|
8524
8598
|
], Plan.prototype, "isCurrent", 2);
|
|
8525
8599
|
__decorateClass([
|
|
8526
|
-
(0,
|
|
8527
|
-
(0,
|
|
8600
|
+
(0, import_typeorm71.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
8601
|
+
(0, import_typeorm71.JoinTable)()
|
|
8528
8602
|
], Plan.prototype, "features", 2);
|
|
8529
8603
|
Plan = __decorateClass([
|
|
8530
|
-
(0,
|
|
8604
|
+
(0, import_typeorm71.Entity)("plans")
|
|
8531
8605
|
], Plan);
|
|
8532
8606
|
|
|
8533
8607
|
// src/entities/cms.entity.ts
|
|
8534
|
-
var
|
|
8608
|
+
var import_typeorm72 = require("typeorm");
|
|
8535
8609
|
var Cms = class extends BaseEntity {
|
|
8536
8610
|
};
|
|
8537
8611
|
__decorateClass([
|
|
8538
|
-
(0,
|
|
8612
|
+
(0, import_typeorm72.Column)({ name: "title", type: "varchar", nullable: true })
|
|
8539
8613
|
], Cms.prototype, "title", 2);
|
|
8540
8614
|
__decorateClass([
|
|
8541
|
-
(0,
|
|
8615
|
+
(0, import_typeorm72.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8542
8616
|
], Cms.prototype, "slug", 2);
|
|
8543
8617
|
__decorateClass([
|
|
8544
|
-
(0,
|
|
8618
|
+
(0, import_typeorm72.Column)({ name: "content", type: "varchar", nullable: true })
|
|
8545
8619
|
], Cms.prototype, "content", 2);
|
|
8546
8620
|
__decorateClass([
|
|
8547
|
-
(0,
|
|
8621
|
+
(0, import_typeorm72.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8548
8622
|
], Cms.prototype, "isActive", 2);
|
|
8549
8623
|
Cms = __decorateClass([
|
|
8550
|
-
(0,
|
|
8624
|
+
(0, import_typeorm72.Entity)("cms")
|
|
8551
8625
|
], Cms);
|
|
8552
8626
|
|
|
8553
8627
|
// src/entities/lead.entity.ts
|
|
8554
|
-
var
|
|
8628
|
+
var import_typeorm73 = require("typeorm");
|
|
8555
8629
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
8556
8630
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
8557
8631
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -8560,22 +8634,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
8560
8634
|
var Lead = class extends BaseEntity {
|
|
8561
8635
|
};
|
|
8562
8636
|
__decorateClass([
|
|
8563
|
-
(0,
|
|
8637
|
+
(0, import_typeorm73.Column)({ name: "name", type: "varchar", nullable: true })
|
|
8564
8638
|
], Lead.prototype, "name", 2);
|
|
8565
8639
|
__decorateClass([
|
|
8566
|
-
(0,
|
|
8640
|
+
(0, import_typeorm73.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
8567
8641
|
], Lead.prototype, "mobileCode", 2);
|
|
8568
8642
|
__decorateClass([
|
|
8569
|
-
(0,
|
|
8643
|
+
(0, import_typeorm73.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
8570
8644
|
], Lead.prototype, "mobile", 2);
|
|
8571
8645
|
__decorateClass([
|
|
8572
|
-
(0,
|
|
8646
|
+
(0, import_typeorm73.Column)({ name: "email", type: "varchar", nullable: true })
|
|
8573
8647
|
], Lead.prototype, "email", 2);
|
|
8574
8648
|
__decorateClass([
|
|
8575
|
-
(0,
|
|
8649
|
+
(0, import_typeorm73.Column)({ name: "description", type: "varchar", nullable: true })
|
|
8576
8650
|
], Lead.prototype, "description", 2);
|
|
8577
8651
|
__decorateClass([
|
|
8578
|
-
(0,
|
|
8652
|
+
(0, import_typeorm73.Column)({
|
|
8579
8653
|
name: "category",
|
|
8580
8654
|
type: "enum",
|
|
8581
8655
|
enum: CategoryEmum,
|
|
@@ -8583,129 +8657,129 @@ __decorateClass([
|
|
|
8583
8657
|
})
|
|
8584
8658
|
], Lead.prototype, "category", 2);
|
|
8585
8659
|
Lead = __decorateClass([
|
|
8586
|
-
(0,
|
|
8660
|
+
(0, import_typeorm73.Entity)("leads")
|
|
8587
8661
|
], Lead);
|
|
8588
8662
|
|
|
8589
8663
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
8590
|
-
var
|
|
8664
|
+
var import_typeorm74 = require("typeorm");
|
|
8591
8665
|
var JobFreelancerRecommendation = class {
|
|
8592
8666
|
};
|
|
8593
8667
|
__decorateClass([
|
|
8594
|
-
(0,
|
|
8668
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_id" })
|
|
8595
8669
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
8596
8670
|
__decorateClass([
|
|
8597
|
-
(0,
|
|
8671
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_uuid" })
|
|
8598
8672
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
8599
8673
|
__decorateClass([
|
|
8600
|
-
(0,
|
|
8674
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_unique_id" })
|
|
8601
8675
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
8602
8676
|
__decorateClass([
|
|
8603
|
-
(0,
|
|
8677
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_role" })
|
|
8604
8678
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
8605
8679
|
__decorateClass([
|
|
8606
|
-
(0,
|
|
8680
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_openings" })
|
|
8607
8681
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
8608
8682
|
__decorateClass([
|
|
8609
|
-
(0,
|
|
8683
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_location" })
|
|
8610
8684
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
8611
8685
|
__decorateClass([
|
|
8612
|
-
(0,
|
|
8686
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_currency" })
|
|
8613
8687
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
8614
8688
|
__decorateClass([
|
|
8615
|
-
(0,
|
|
8689
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_salary_from" })
|
|
8616
8690
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
8617
8691
|
__decorateClass([
|
|
8618
|
-
(0,
|
|
8692
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_salary_to" })
|
|
8619
8693
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
8620
8694
|
__decorateClass([
|
|
8621
|
-
(0,
|
|
8695
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_employment_type" })
|
|
8622
8696
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
8623
8697
|
__decorateClass([
|
|
8624
|
-
(0,
|
|
8698
|
+
(0, import_typeorm74.ViewColumn)({ name: "application_received" })
|
|
8625
8699
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
8626
8700
|
__decorateClass([
|
|
8627
|
-
(0,
|
|
8701
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_posted_at" })
|
|
8628
8702
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
8629
8703
|
__decorateClass([
|
|
8630
|
-
(0,
|
|
8704
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_id" })
|
|
8631
8705
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
8632
8706
|
__decorateClass([
|
|
8633
|
-
(0,
|
|
8707
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_uuid" })
|
|
8634
8708
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
8635
8709
|
__decorateClass([
|
|
8636
|
-
(0,
|
|
8710
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_unique_id" })
|
|
8637
8711
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
8638
8712
|
__decorateClass([
|
|
8639
|
-
(0,
|
|
8713
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_first_name" })
|
|
8640
8714
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
8641
8715
|
__decorateClass([
|
|
8642
|
-
(0,
|
|
8716
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_last_name" })
|
|
8643
8717
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
8644
8718
|
__decorateClass([
|
|
8645
|
-
(0,
|
|
8719
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_email" })
|
|
8646
8720
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
8647
8721
|
__decorateClass([
|
|
8648
|
-
(0,
|
|
8722
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
8649
8723
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
8650
8724
|
__decorateClass([
|
|
8651
|
-
(0,
|
|
8725
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_is_social" })
|
|
8652
8726
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
8653
8727
|
__decorateClass([
|
|
8654
|
-
(0,
|
|
8728
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_created_at" })
|
|
8655
8729
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
8656
8730
|
__decorateClass([
|
|
8657
|
-
(0,
|
|
8731
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_designation" })
|
|
8658
8732
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
8659
8733
|
__decorateClass([
|
|
8660
|
-
(0,
|
|
8734
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_experience" })
|
|
8661
8735
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
8662
8736
|
__decorateClass([
|
|
8663
|
-
(0,
|
|
8737
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
8664
8738
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
8665
8739
|
__decorateClass([
|
|
8666
|
-
(0,
|
|
8740
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
8667
8741
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
8668
8742
|
__decorateClass([
|
|
8669
|
-
(0,
|
|
8743
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_country_name" })
|
|
8670
8744
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
8671
8745
|
__decorateClass([
|
|
8672
|
-
(0,
|
|
8746
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
8673
8747
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
8674
8748
|
__decorateClass([
|
|
8675
|
-
(0,
|
|
8749
|
+
(0, import_typeorm74.ViewColumn)({ name: "client_id" })
|
|
8676
8750
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
8677
8751
|
__decorateClass([
|
|
8678
|
-
(0,
|
|
8752
|
+
(0, import_typeorm74.ViewColumn)({ name: "client_uuid" })
|
|
8679
8753
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
8680
8754
|
__decorateClass([
|
|
8681
|
-
(0,
|
|
8755
|
+
(0, import_typeorm74.ViewColumn)({ name: "client_first_name" })
|
|
8682
8756
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
8683
8757
|
__decorateClass([
|
|
8684
|
-
(0,
|
|
8758
|
+
(0, import_typeorm74.ViewColumn)({ name: "client_last_name" })
|
|
8685
8759
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
8686
8760
|
__decorateClass([
|
|
8687
|
-
(0,
|
|
8761
|
+
(0, import_typeorm74.ViewColumn)({ name: "client_email" })
|
|
8688
8762
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
8689
8763
|
__decorateClass([
|
|
8690
|
-
(0,
|
|
8764
|
+
(0, import_typeorm74.ViewColumn)({ name: "client_company_logo" })
|
|
8691
8765
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
8692
8766
|
__decorateClass([
|
|
8693
|
-
(0,
|
|
8767
|
+
(0, import_typeorm74.ViewColumn)({ name: "client_company_name" })
|
|
8694
8768
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
8695
8769
|
__decorateClass([
|
|
8696
|
-
(0,
|
|
8770
|
+
(0, import_typeorm74.ViewColumn)({ name: "matching_skills" })
|
|
8697
8771
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
8698
8772
|
__decorateClass([
|
|
8699
|
-
(0,
|
|
8773
|
+
(0, import_typeorm74.ViewColumn)({ name: "matching_skills_count" })
|
|
8700
8774
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
8701
8775
|
__decorateClass([
|
|
8702
|
-
(0,
|
|
8776
|
+
(0, import_typeorm74.ViewColumn)({ name: "required_skills" })
|
|
8703
8777
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
8704
8778
|
__decorateClass([
|
|
8705
|
-
(0,
|
|
8779
|
+
(0, import_typeorm74.ViewColumn)({ name: "required_skills_count" })
|
|
8706
8780
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
8707
8781
|
JobFreelancerRecommendation = __decorateClass([
|
|
8708
|
-
(0,
|
|
8782
|
+
(0, import_typeorm74.ViewEntity)({
|
|
8709
8783
|
name: "job_freelancer_recommendations",
|
|
8710
8784
|
materialized: true,
|
|
8711
8785
|
synchronize: false
|
|
@@ -8714,32 +8788,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
8714
8788
|
], JobFreelancerRecommendation);
|
|
8715
8789
|
|
|
8716
8790
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
8717
|
-
var
|
|
8791
|
+
var import_typeorm75 = require("typeorm");
|
|
8718
8792
|
var JobFreelancerRecommendationV2 = class {
|
|
8719
8793
|
};
|
|
8720
8794
|
__decorateClass([
|
|
8721
|
-
(0,
|
|
8795
|
+
(0, import_typeorm75.ViewColumn)({ name: "job_id" })
|
|
8722
8796
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
8723
8797
|
__decorateClass([
|
|
8724
|
-
(0,
|
|
8798
|
+
(0, import_typeorm75.ViewColumn)({ name: "job_owner_id" })
|
|
8725
8799
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
8726
8800
|
__decorateClass([
|
|
8727
|
-
(0,
|
|
8801
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_id" })
|
|
8728
8802
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
8729
8803
|
__decorateClass([
|
|
8730
|
-
(0,
|
|
8804
|
+
(0, import_typeorm75.ViewColumn)({ name: "matching_skills" })
|
|
8731
8805
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
8732
8806
|
__decorateClass([
|
|
8733
|
-
(0,
|
|
8807
|
+
(0, import_typeorm75.ViewColumn)({ name: "matching_skills_count" })
|
|
8734
8808
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
8735
8809
|
__decorateClass([
|
|
8736
|
-
(0,
|
|
8810
|
+
(0, import_typeorm75.ViewColumn)({ name: "required_skills" })
|
|
8737
8811
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
8738
8812
|
__decorateClass([
|
|
8739
|
-
(0,
|
|
8813
|
+
(0, import_typeorm75.ViewColumn)({ name: "required_skills_count" })
|
|
8740
8814
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
8741
8815
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
8742
|
-
(0,
|
|
8816
|
+
(0, import_typeorm75.ViewEntity)({
|
|
8743
8817
|
name: "job_freelancer_recommendations_v2",
|
|
8744
8818
|
materialized: true,
|
|
8745
8819
|
synchronize: false
|
|
@@ -8748,74 +8822,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
8748
8822
|
], JobFreelancerRecommendationV2);
|
|
8749
8823
|
|
|
8750
8824
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
8751
|
-
var
|
|
8825
|
+
var import_typeorm76 = require("typeorm");
|
|
8752
8826
|
var ClientFreelancerRecommendation = class {
|
|
8753
8827
|
};
|
|
8754
8828
|
__decorateClass([
|
|
8755
|
-
(0,
|
|
8829
|
+
(0, import_typeorm76.ViewColumn)({ name: "client_id" })
|
|
8756
8830
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
8757
8831
|
__decorateClass([
|
|
8758
|
-
(0,
|
|
8832
|
+
(0, import_typeorm76.ViewColumn)({ name: "client_uuid" })
|
|
8759
8833
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
8760
8834
|
__decorateClass([
|
|
8761
|
-
(0,
|
|
8835
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_id" })
|
|
8762
8836
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
8763
8837
|
__decorateClass([
|
|
8764
|
-
(0,
|
|
8838
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_uuid" })
|
|
8765
8839
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
8766
8840
|
__decorateClass([
|
|
8767
|
-
(0,
|
|
8841
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_unique_id" })
|
|
8768
8842
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
8769
8843
|
__decorateClass([
|
|
8770
|
-
(0,
|
|
8844
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_first_name" })
|
|
8771
8845
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
8772
8846
|
__decorateClass([
|
|
8773
|
-
(0,
|
|
8847
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_last_name" })
|
|
8774
8848
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
8775
8849
|
__decorateClass([
|
|
8776
|
-
(0,
|
|
8850
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_email" })
|
|
8777
8851
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
8778
8852
|
__decorateClass([
|
|
8779
|
-
(0,
|
|
8853
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
8780
8854
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
8781
8855
|
__decorateClass([
|
|
8782
|
-
(0,
|
|
8856
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_is_social" })
|
|
8783
8857
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
8784
8858
|
__decorateClass([
|
|
8785
|
-
(0,
|
|
8859
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_created_at" })
|
|
8786
8860
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
8787
8861
|
__decorateClass([
|
|
8788
|
-
(0,
|
|
8862
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_designation" })
|
|
8789
8863
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
8790
8864
|
__decorateClass([
|
|
8791
|
-
(0,
|
|
8865
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_experience" })
|
|
8792
8866
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
8793
8867
|
__decorateClass([
|
|
8794
|
-
(0,
|
|
8868
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
8795
8869
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
8796
8870
|
__decorateClass([
|
|
8797
|
-
(0,
|
|
8871
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
8798
8872
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
8799
8873
|
__decorateClass([
|
|
8800
|
-
(0,
|
|
8874
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_country_name" })
|
|
8801
8875
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
8802
8876
|
__decorateClass([
|
|
8803
|
-
(0,
|
|
8877
|
+
(0, import_typeorm76.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
8804
8878
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
8805
8879
|
__decorateClass([
|
|
8806
|
-
(0,
|
|
8880
|
+
(0, import_typeorm76.ViewColumn)({ name: "matching_skills" })
|
|
8807
8881
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
8808
8882
|
__decorateClass([
|
|
8809
|
-
(0,
|
|
8883
|
+
(0, import_typeorm76.ViewColumn)({ name: "matching_skills_count" })
|
|
8810
8884
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
8811
8885
|
__decorateClass([
|
|
8812
|
-
(0,
|
|
8886
|
+
(0, import_typeorm76.ViewColumn)({ name: "required_skills" })
|
|
8813
8887
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
8814
8888
|
__decorateClass([
|
|
8815
|
-
(0,
|
|
8889
|
+
(0, import_typeorm76.ViewColumn)({ name: "required_skills_count" })
|
|
8816
8890
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
8817
8891
|
ClientFreelancerRecommendation = __decorateClass([
|
|
8818
|
-
(0,
|
|
8892
|
+
(0, import_typeorm76.ViewEntity)({
|
|
8819
8893
|
name: "client_freelancer_recommendations",
|
|
8820
8894
|
materialized: true,
|
|
8821
8895
|
synchronize: false
|
|
@@ -8824,7 +8898,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
8824
8898
|
], ClientFreelancerRecommendation);
|
|
8825
8899
|
|
|
8826
8900
|
// src/entities/commission.entity.ts
|
|
8827
|
-
var
|
|
8901
|
+
var import_typeorm77 = require("typeorm");
|
|
8828
8902
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
8829
8903
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
8830
8904
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -8833,7 +8907,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
8833
8907
|
var Commission = class extends BaseEntity {
|
|
8834
8908
|
};
|
|
8835
8909
|
__decorateClass([
|
|
8836
|
-
(0,
|
|
8910
|
+
(0, import_typeorm77.Column)({
|
|
8837
8911
|
name: "freelancer_commission_type",
|
|
8838
8912
|
type: "enum",
|
|
8839
8913
|
enum: CommissionTypeEnum,
|
|
@@ -8841,10 +8915,10 @@ __decorateClass([
|
|
|
8841
8915
|
})
|
|
8842
8916
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
8843
8917
|
__decorateClass([
|
|
8844
|
-
(0,
|
|
8918
|
+
(0, import_typeorm77.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
8845
8919
|
], Commission.prototype, "freelancerCommission", 2);
|
|
8846
8920
|
__decorateClass([
|
|
8847
|
-
(0,
|
|
8921
|
+
(0, import_typeorm77.Column)({
|
|
8848
8922
|
name: "client_commission_type",
|
|
8849
8923
|
type: "enum",
|
|
8850
8924
|
enum: CommissionTypeEnum,
|
|
@@ -8852,93 +8926,93 @@ __decorateClass([
|
|
|
8852
8926
|
})
|
|
8853
8927
|
], Commission.prototype, "clientCommissionType", 2);
|
|
8854
8928
|
__decorateClass([
|
|
8855
|
-
(0,
|
|
8929
|
+
(0, import_typeorm77.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
8856
8930
|
], Commission.prototype, "clientCommission", 2);
|
|
8857
8931
|
Commission = __decorateClass([
|
|
8858
|
-
(0,
|
|
8932
|
+
(0, import_typeorm77.Entity)("commissions")
|
|
8859
8933
|
], Commission);
|
|
8860
8934
|
|
|
8861
8935
|
// src/entities/calendly-meeting-log.entity.ts
|
|
8862
|
-
var
|
|
8936
|
+
var import_typeorm78 = require("typeorm");
|
|
8863
8937
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
8864
8938
|
};
|
|
8865
8939
|
__decorateClass([
|
|
8866
|
-
(0,
|
|
8867
|
-
(0,
|
|
8940
|
+
(0, import_typeorm78.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
8941
|
+
(0, import_typeorm78.Index)()
|
|
8868
8942
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
8869
8943
|
__decorateClass([
|
|
8870
|
-
(0,
|
|
8944
|
+
(0, import_typeorm78.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
8871
8945
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
8872
8946
|
__decorateClass([
|
|
8873
|
-
(0,
|
|
8947
|
+
(0, import_typeorm78.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8874
8948
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
8875
8949
|
CalendlyMeetingLog = __decorateClass([
|
|
8876
|
-
(0,
|
|
8950
|
+
(0, import_typeorm78.Entity)("calendly_meeting_logs")
|
|
8877
8951
|
], CalendlyMeetingLog);
|
|
8878
8952
|
|
|
8879
8953
|
// src/entities/zoom-meeting-log.entity.ts
|
|
8880
|
-
var
|
|
8954
|
+
var import_typeorm79 = require("typeorm");
|
|
8881
8955
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
8882
8956
|
};
|
|
8883
8957
|
__decorateClass([
|
|
8884
|
-
(0,
|
|
8885
|
-
(0,
|
|
8958
|
+
(0, import_typeorm79.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
8959
|
+
(0, import_typeorm79.Index)()
|
|
8886
8960
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
8887
8961
|
__decorateClass([
|
|
8888
|
-
(0,
|
|
8962
|
+
(0, import_typeorm79.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
8889
8963
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
8890
8964
|
__decorateClass([
|
|
8891
|
-
(0,
|
|
8965
|
+
(0, import_typeorm79.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8892
8966
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
8893
8967
|
ZoomMeetingLog = __decorateClass([
|
|
8894
|
-
(0,
|
|
8968
|
+
(0, import_typeorm79.Entity)("zoom_meeting_logs")
|
|
8895
8969
|
], ZoomMeetingLog);
|
|
8896
8970
|
|
|
8897
8971
|
// src/entities/stripe-logs.entity.ts
|
|
8898
|
-
var
|
|
8972
|
+
var import_typeorm80 = require("typeorm");
|
|
8899
8973
|
var StripeLog = class extends BaseEntity {
|
|
8900
8974
|
};
|
|
8901
8975
|
__decorateClass([
|
|
8902
|
-
(0,
|
|
8976
|
+
(0, import_typeorm80.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
8903
8977
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
8904
8978
|
__decorateClass([
|
|
8905
|
-
(0,
|
|
8979
|
+
(0, import_typeorm80.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
8906
8980
|
], StripeLog.prototype, "eventType", 2);
|
|
8907
8981
|
__decorateClass([
|
|
8908
|
-
(0,
|
|
8982
|
+
(0, import_typeorm80.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
8909
8983
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
8910
8984
|
__decorateClass([
|
|
8911
|
-
(0,
|
|
8985
|
+
(0, import_typeorm80.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8912
8986
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
8913
8987
|
StripeLog = __decorateClass([
|
|
8914
|
-
(0,
|
|
8988
|
+
(0, import_typeorm80.Entity)("stripe_logs")
|
|
8915
8989
|
], StripeLog);
|
|
8916
8990
|
|
|
8917
8991
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
8918
|
-
var
|
|
8992
|
+
var import_typeorm81 = require("typeorm");
|
|
8919
8993
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
8920
8994
|
};
|
|
8921
8995
|
__decorateClass([
|
|
8922
|
-
(0,
|
|
8996
|
+
(0, import_typeorm81.Column)({
|
|
8923
8997
|
type: "varchar",
|
|
8924
8998
|
length: 100,
|
|
8925
8999
|
unique: true,
|
|
8926
9000
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
8927
9001
|
}),
|
|
8928
|
-
(0,
|
|
9002
|
+
(0, import_typeorm81.Index)()
|
|
8929
9003
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
8930
9004
|
__decorateClass([
|
|
8931
|
-
(0,
|
|
9005
|
+
(0, import_typeorm81.Column)({
|
|
8932
9006
|
type: "jsonb",
|
|
8933
9007
|
comment: "JSON object containing weight values",
|
|
8934
9008
|
nullable: true
|
|
8935
9009
|
})
|
|
8936
9010
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
8937
9011
|
__decorateClass([
|
|
8938
|
-
(0,
|
|
9012
|
+
(0, import_typeorm81.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8939
9013
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
8940
9014
|
RecommendationWeightageConfig = __decorateClass([
|
|
8941
|
-
(0,
|
|
9015
|
+
(0, import_typeorm81.Entity)("recommendation_weightage_configs")
|
|
8942
9016
|
], RecommendationWeightageConfig);
|
|
8943
9017
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8944
9018
|
0 && (module.exports = {
|