@experts_hub/shared 1.0.325 → 1.0.327
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/calendly-meeting.entity.d.ts +37 -0
- package/dist/entities/freelancer-f2f-interview.entity.d.ts +23 -0
- package/dist/entities/freelancer-profile.entity.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +5 -0
- package/dist/index.d.mts +61 -1
- package/dist/index.d.ts +61 -1
- package/dist/index.js +458 -267
- package/dist/index.mjs +482 -277
- package/dist/modules/user/subadmin/dto/update-subadmin.dto.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -934,6 +934,7 @@ __decorateClass([
|
|
|
934
934
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
935
935
|
|
|
936
936
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
937
|
+
var import_class_transformer = require("class-transformer");
|
|
937
938
|
var import_class_validator27 = require("class-validator");
|
|
938
939
|
var UpdateSubAdminDto = class {
|
|
939
940
|
};
|
|
@@ -956,7 +957,13 @@ __decorateClass([
|
|
|
956
957
|
(0, import_class_validator27.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
957
958
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
958
959
|
__decorateClass([
|
|
959
|
-
(0, import_class_validator27.
|
|
960
|
+
(0, import_class_validator27.IsOptional)(),
|
|
961
|
+
(0, import_class_transformer.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
962
|
+
(0, import_class_validator27.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
963
|
+
(0, import_class_validator27.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
964
|
+
(0, import_class_validator27.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
965
|
+
message: "Password must include letters, numbers and symbols."
|
|
966
|
+
})
|
|
960
967
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
961
968
|
__decorateClass([
|
|
962
969
|
(0, import_class_validator27.IsNotEmpty)({ message: "Please Select Roles." })
|
|
@@ -1085,7 +1092,7 @@ var JOB_PATTERN = {
|
|
|
1085
1092
|
|
|
1086
1093
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1087
1094
|
var import_class_validator31 = require("class-validator");
|
|
1088
|
-
var
|
|
1095
|
+
var import_class_transformer2 = require("class-transformer");
|
|
1089
1096
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
1090
1097
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
1091
1098
|
JobLocation2["REMOTE"] = "REMOTE";
|
|
@@ -1105,7 +1112,7 @@ var JobBasicInformationDto = class {
|
|
|
1105
1112
|
};
|
|
1106
1113
|
__decorateClass([
|
|
1107
1114
|
(0, import_class_validator31.IsOptional)(),
|
|
1108
|
-
(0,
|
|
1115
|
+
(0, import_class_transformer2.Type)(() => Boolean)
|
|
1109
1116
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
1110
1117
|
__decorateClass([
|
|
1111
1118
|
(0, import_class_validator31.IsNotEmpty)({ message: "Please enter job role" }),
|
|
@@ -1120,13 +1127,13 @@ __decorateClass([
|
|
|
1120
1127
|
(0, import_class_validator31.IsArray)({ message: "Skills must be an array" }),
|
|
1121
1128
|
(0, import_class_validator31.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
1122
1129
|
(0, import_class_validator31.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
1123
|
-
(0,
|
|
1130
|
+
(0, import_class_transformer2.Type)(() => String)
|
|
1124
1131
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1125
1132
|
__decorateClass([
|
|
1126
1133
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1127
1134
|
(0, import_class_validator31.IsNumber)({}, { message: "Openings must be a number" }),
|
|
1128
1135
|
(0, import_class_validator31.Min)(1, { message: "There must be at least 1 opening" }),
|
|
1129
|
-
(0,
|
|
1136
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1130
1137
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1131
1138
|
__decorateClass([
|
|
1132
1139
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
@@ -1139,17 +1146,17 @@ __decorateClass([
|
|
|
1139
1146
|
__decorateClass([
|
|
1140
1147
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1141
1148
|
(0, import_class_validator31.IsNumber)({}, { message: "Country id must be a number" }),
|
|
1142
|
-
(0,
|
|
1149
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1143
1150
|
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
1144
1151
|
__decorateClass([
|
|
1145
1152
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1146
1153
|
(0, import_class_validator31.IsNumber)({}, { message: "State id must be a number" }),
|
|
1147
|
-
(0,
|
|
1154
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1148
1155
|
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
1149
1156
|
__decorateClass([
|
|
1150
1157
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1151
1158
|
(0, import_class_validator31.IsNumber)({}, { message: "City id must be a number" }),
|
|
1152
|
-
(0,
|
|
1159
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1153
1160
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
1154
1161
|
__decorateClass([
|
|
1155
1162
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
@@ -1167,13 +1174,13 @@ __decorateClass([
|
|
|
1167
1174
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1168
1175
|
(0, import_class_validator31.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
1169
1176
|
(0, import_class_validator31.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1170
|
-
(0,
|
|
1177
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1171
1178
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1172
1179
|
__decorateClass([
|
|
1173
1180
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
1174
1181
|
(0, import_class_validator31.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
1175
1182
|
(0, import_class_validator31.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1176
|
-
(0,
|
|
1183
|
+
(0, import_class_transformer2.Type)(() => Number)
|
|
1177
1184
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1178
1185
|
__decorateClass([
|
|
1179
1186
|
(0, import_class_validator31.ValidateIf)((o) => !o.isDraft),
|
|
@@ -1507,10 +1514,10 @@ var RATING_PATTERN = {
|
|
|
1507
1514
|
var import_class_validator40 = require("class-validator");
|
|
1508
1515
|
|
|
1509
1516
|
// src/entities/rating.entity.ts
|
|
1510
|
-
var
|
|
1517
|
+
var import_typeorm45 = require("typeorm");
|
|
1511
1518
|
|
|
1512
1519
|
// src/entities/user.entity.ts
|
|
1513
|
-
var
|
|
1520
|
+
var import_typeorm44 = require("typeorm");
|
|
1514
1521
|
|
|
1515
1522
|
// src/entities/base.entity.ts
|
|
1516
1523
|
var import_typeorm = require("typeorm");
|
|
@@ -2056,6 +2063,9 @@ __decorateClass([
|
|
|
2056
2063
|
__decorateClass([
|
|
2057
2064
|
(0, import_typeorm8.Column)({ name: "is_expertshub_verified", type: "boolean", default: false })
|
|
2058
2065
|
], FreelancerProfile.prototype, "isExpertshubVerified", 2);
|
|
2066
|
+
__decorateClass([
|
|
2067
|
+
(0, import_typeorm8.Column)({ name: "is_followed_on_linkedin", type: "boolean", default: false })
|
|
2068
|
+
], FreelancerProfile.prototype, "isFollowedOnLinkedIn", 2);
|
|
2059
2069
|
FreelancerProfile = __decorateClass([
|
|
2060
2070
|
(0, import_typeorm8.Entity)("freelancer_profiles")
|
|
2061
2071
|
], FreelancerProfile);
|
|
@@ -3583,6 +3593,175 @@ FreelancerResume = __decorateClass([
|
|
|
3583
3593
|
(0, import_typeorm41.Entity)("freelancer_resumes")
|
|
3584
3594
|
], FreelancerResume);
|
|
3585
3595
|
|
|
3596
|
+
// src/entities/calendly-meeting.entity.ts
|
|
3597
|
+
var import_typeorm43 = require("typeorm");
|
|
3598
|
+
|
|
3599
|
+
// src/entities/freelancer-f2f-interview.entity.ts
|
|
3600
|
+
var import_typeorm42 = require("typeorm");
|
|
3601
|
+
var FreelancerF2FInterview = class extends BaseEntity {
|
|
3602
|
+
};
|
|
3603
|
+
__decorateClass([
|
|
3604
|
+
(0, import_typeorm42.OneToOne)(() => CalendlyMeeting),
|
|
3605
|
+
(0, import_typeorm42.JoinColumn)({ name: "calendly_meeting_id" })
|
|
3606
|
+
], FreelancerF2FInterview.prototype, "calendlyMeeting", 2);
|
|
3607
|
+
__decorateClass([
|
|
3608
|
+
(0, import_typeorm42.Column)({ name: "calendly_meeting_id", type: "integer" })
|
|
3609
|
+
], FreelancerF2FInterview.prototype, "calendlyMeetingId", 2);
|
|
3610
|
+
__decorateClass([
|
|
3611
|
+
(0, import_typeorm42.ManyToOne)(() => User, (user) => user.clientF2FInterviews, { nullable: true }),
|
|
3612
|
+
(0, import_typeorm42.JoinColumn)({ name: "client_id" })
|
|
3613
|
+
], FreelancerF2FInterview.prototype, "client", 2);
|
|
3614
|
+
__decorateClass([
|
|
3615
|
+
(0, import_typeorm42.Column)({ name: "client_id", type: "integer", nullable: true })
|
|
3616
|
+
], FreelancerF2FInterview.prototype, "clientId", 2);
|
|
3617
|
+
__decorateClass([
|
|
3618
|
+
(0, import_typeorm42.ManyToOne)(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
3619
|
+
(0, import_typeorm42.JoinColumn)({ name: "freelancer_id" })
|
|
3620
|
+
], FreelancerF2FInterview.prototype, "freelancer", 2);
|
|
3621
|
+
__decorateClass([
|
|
3622
|
+
(0, import_typeorm42.Column)({ name: "freelancer_id", type: "integer", nullable: true })
|
|
3623
|
+
], FreelancerF2FInterview.prototype, "freelancerId", 2);
|
|
3624
|
+
__decorateClass([
|
|
3625
|
+
(0, import_typeorm42.Column)({ name: "zoom_link", type: "varchar", nullable: true })
|
|
3626
|
+
], FreelancerF2FInterview.prototype, "meetingZoomLink", 2);
|
|
3627
|
+
__decorateClass([
|
|
3628
|
+
(0, import_typeorm42.Column)({ name: "meeting_id", type: "varchar", nullable: true })
|
|
3629
|
+
], FreelancerF2FInterview.prototype, "meetingId", 2);
|
|
3630
|
+
__decorateClass([
|
|
3631
|
+
(0, import_typeorm42.Column)({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
3632
|
+
], FreelancerF2FInterview.prototype, "meetingPasscode", 2);
|
|
3633
|
+
__decorateClass([
|
|
3634
|
+
(0, import_typeorm42.Column)({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
3635
|
+
], FreelancerF2FInterview.prototype, "rescheduleUrl", 2);
|
|
3636
|
+
__decorateClass([
|
|
3637
|
+
(0, import_typeorm42.Column)({ name: "is_rescheduled", type: "boolean", default: false })
|
|
3638
|
+
], FreelancerF2FInterview.prototype, "isRescheduled", 2);
|
|
3639
|
+
__decorateClass([
|
|
3640
|
+
(0, import_typeorm42.Column)({
|
|
3641
|
+
name: "status",
|
|
3642
|
+
type: "enum",
|
|
3643
|
+
enum: CalendlyMeetingStatus,
|
|
3644
|
+
default: "PENDING" /* PENDING */
|
|
3645
|
+
})
|
|
3646
|
+
], FreelancerF2FInterview.prototype, "status", 2);
|
|
3647
|
+
__decorateClass([
|
|
3648
|
+
(0, import_typeorm42.Column)({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
3649
|
+
], FreelancerF2FInterview.prototype, "cancelledAt", 2);
|
|
3650
|
+
__decorateClass([
|
|
3651
|
+
(0, import_typeorm42.Column)({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
3652
|
+
], FreelancerF2FInterview.prototype, "cancelReason", 2);
|
|
3653
|
+
__decorateClass([
|
|
3654
|
+
(0, import_typeorm42.Column)({ name: "rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
3655
|
+
], FreelancerF2FInterview.prototype, "rescheduledAt", 2);
|
|
3656
|
+
__decorateClass([
|
|
3657
|
+
(0, import_typeorm42.Column)({ name: "is_completed", type: "boolean", default: false })
|
|
3658
|
+
], FreelancerF2FInterview.prototype, "isCompleted", 2);
|
|
3659
|
+
__decorateClass([
|
|
3660
|
+
(0, import_typeorm42.Column)({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
|
|
3661
|
+
], FreelancerF2FInterview.prototype, "meetingStartTime", 2);
|
|
3662
|
+
__decorateClass([
|
|
3663
|
+
(0, import_typeorm42.Column)({ name: "meeting_end_time", type: "timestamp with time zone", nullable: true })
|
|
3664
|
+
], FreelancerF2FInterview.prototype, "meetingEndTime", 2);
|
|
3665
|
+
FreelancerF2FInterview = __decorateClass([
|
|
3666
|
+
(0, import_typeorm42.Entity)("freelancer_f2f_interviews")
|
|
3667
|
+
], FreelancerF2FInterview);
|
|
3668
|
+
|
|
3669
|
+
// src/entities/calendly-meeting.entity.ts
|
|
3670
|
+
var CalendlyMeetingStatus = /* @__PURE__ */ ((CalendlyMeetingStatus2) => {
|
|
3671
|
+
CalendlyMeetingStatus2["PENDING"] = "PENDING";
|
|
3672
|
+
CalendlyMeetingStatus2["CONFIRMED"] = "CONFIRMED";
|
|
3673
|
+
CalendlyMeetingStatus2["CANCELED"] = "CANCELED";
|
|
3674
|
+
CalendlyMeetingStatus2["COMPLETED"] = "COMPLETED";
|
|
3675
|
+
return CalendlyMeetingStatus2;
|
|
3676
|
+
})(CalendlyMeetingStatus || {});
|
|
3677
|
+
var CalendlyMeeting = class extends BaseEntity {
|
|
3678
|
+
};
|
|
3679
|
+
__decorateClass([
|
|
3680
|
+
(0, import_typeorm43.OneToOne)(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.calendlyMeeting)
|
|
3681
|
+
], CalendlyMeeting.prototype, "freelancerF2FInterview", 2);
|
|
3682
|
+
__decorateClass([
|
|
3683
|
+
(0, import_typeorm43.ManyToOne)(() => User, (user) => user.calendlyMeetings, { nullable: true }),
|
|
3684
|
+
(0, import_typeorm43.JoinColumn)({ name: "user_id" })
|
|
3685
|
+
], CalendlyMeeting.prototype, "user", 2);
|
|
3686
|
+
__decorateClass([
|
|
3687
|
+
(0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
3688
|
+
(0, import_typeorm43.Index)()
|
|
3689
|
+
], CalendlyMeeting.prototype, "userId", 2);
|
|
3690
|
+
__decorateClass([
|
|
3691
|
+
(0, import_typeorm43.Column)({ name: "calendly_event_id", type: "varchar", nullable: true, unique: true }),
|
|
3692
|
+
(0, import_typeorm43.Index)()
|
|
3693
|
+
], CalendlyMeeting.prototype, "calendlyEventId", 2);
|
|
3694
|
+
__decorateClass([
|
|
3695
|
+
(0, import_typeorm43.Column)({ name: "scheduled_event_id", type: "varchar", nullable: true })
|
|
3696
|
+
], CalendlyMeeting.prototype, "scheduledEventId", 2);
|
|
3697
|
+
__decorateClass([
|
|
3698
|
+
(0, import_typeorm43.Column)({ name: "event_name", type: "varchar", nullable: false })
|
|
3699
|
+
], CalendlyMeeting.prototype, "eventName", 2);
|
|
3700
|
+
__decorateClass([
|
|
3701
|
+
(0, import_typeorm43.Column)({ name: "event_location", type: "varchar", nullable: true })
|
|
3702
|
+
], CalendlyMeeting.prototype, "eventLocation", 2);
|
|
3703
|
+
__decorateClass([
|
|
3704
|
+
(0, import_typeorm43.Column)({ name: "invitee_email", type: "varchar", nullable: false }),
|
|
3705
|
+
(0, import_typeorm43.Index)()
|
|
3706
|
+
], CalendlyMeeting.prototype, "inviteeEmail", 2);
|
|
3707
|
+
__decorateClass([
|
|
3708
|
+
(0, import_typeorm43.Column)({ name: "invitee_name", type: "varchar", nullable: true })
|
|
3709
|
+
], CalendlyMeeting.prototype, "inviteeName", 2);
|
|
3710
|
+
__decorateClass([
|
|
3711
|
+
(0, import_typeorm43.Column)({ name: "start_time", type: "timestamp with time zone", nullable: true }),
|
|
3712
|
+
(0, import_typeorm43.Index)()
|
|
3713
|
+
], CalendlyMeeting.prototype, "startTime", 2);
|
|
3714
|
+
__decorateClass([
|
|
3715
|
+
(0, import_typeorm43.Column)({ name: "end_time", type: "timestamp with time zone", nullable: true })
|
|
3716
|
+
], CalendlyMeeting.prototype, "endTime", 2);
|
|
3717
|
+
__decorateClass([
|
|
3718
|
+
(0, import_typeorm43.Column)({ name: "timezone", type: "varchar", default: "UTC" })
|
|
3719
|
+
], CalendlyMeeting.prototype, "timezone", 2);
|
|
3720
|
+
__decorateClass([
|
|
3721
|
+
(0, import_typeorm43.Column)({
|
|
3722
|
+
name: "status",
|
|
3723
|
+
type: "enum",
|
|
3724
|
+
enum: CalendlyMeetingStatus,
|
|
3725
|
+
default: "PENDING" /* PENDING */
|
|
3726
|
+
}),
|
|
3727
|
+
(0, import_typeorm43.Index)()
|
|
3728
|
+
], CalendlyMeeting.prototype, "status", 2);
|
|
3729
|
+
__decorateClass([
|
|
3730
|
+
(0, import_typeorm43.Column)({ name: "active", type: "boolean", default: true })
|
|
3731
|
+
], CalendlyMeeting.prototype, "active", 2);
|
|
3732
|
+
__decorateClass([
|
|
3733
|
+
(0, import_typeorm43.Column)({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
3734
|
+
], CalendlyMeeting.prototype, "cancelledAt", 2);
|
|
3735
|
+
__decorateClass([
|
|
3736
|
+
(0, import_typeorm43.Column)({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
3737
|
+
], CalendlyMeeting.prototype, "cancelReason", 2);
|
|
3738
|
+
__decorateClass([
|
|
3739
|
+
(0, import_typeorm43.Column)({ name: "notes", type: "text", nullable: true })
|
|
3740
|
+
], CalendlyMeeting.prototype, "notes", 2);
|
|
3741
|
+
__decorateClass([
|
|
3742
|
+
(0, import_typeorm43.Column)({ name: "is_rescheduled", type: "boolean", default: false })
|
|
3743
|
+
], CalendlyMeeting.prototype, "isRescheduled", 2);
|
|
3744
|
+
__decorateClass([
|
|
3745
|
+
(0, import_typeorm43.Column)({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
3746
|
+
], CalendlyMeeting.prototype, "rescheduleUrl", 2);
|
|
3747
|
+
__decorateClass([
|
|
3748
|
+
(0, import_typeorm43.Column)({ name: "rescheduled_from_id", type: "uuid", nullable: true })
|
|
3749
|
+
], CalendlyMeeting.prototype, "rescheduledFromId", 2);
|
|
3750
|
+
__decorateClass([
|
|
3751
|
+
(0, import_typeorm43.Column)({ name: "questions_and_answers", type: "jsonb", nullable: true, default: "[]" })
|
|
3752
|
+
], CalendlyMeeting.prototype, "questionsAndAnswers", 2);
|
|
3753
|
+
__decorateClass([
|
|
3754
|
+
(0, import_typeorm43.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
3755
|
+
], CalendlyMeeting.prototype, "rawWebhookData", 2);
|
|
3756
|
+
__decorateClass([
|
|
3757
|
+
(0, import_typeorm43.Column)({ name: "is_from_webhook", type: "boolean", default: false })
|
|
3758
|
+
], CalendlyMeeting.prototype, "isFromWebhook", 2);
|
|
3759
|
+
CalendlyMeeting = __decorateClass([
|
|
3760
|
+
(0, import_typeorm43.Entity)("calendly_meetings"),
|
|
3761
|
+
(0, import_typeorm43.Unique)("UQ_calendly_event_invitee", ["calendlyEventId", "inviteeEmail"]),
|
|
3762
|
+
(0, import_typeorm43.Unique)("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
|
|
3763
|
+
], CalendlyMeeting);
|
|
3764
|
+
|
|
3586
3765
|
// src/entities/user.entity.ts
|
|
3587
3766
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
3588
3767
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -3608,51 +3787,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3608
3787
|
var User = class extends BaseEntity {
|
|
3609
3788
|
};
|
|
3610
3789
|
__decorateClass([
|
|
3611
|
-
(0,
|
|
3790
|
+
(0, import_typeorm44.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
3612
3791
|
], User.prototype, "uniqueId", 2);
|
|
3613
3792
|
__decorateClass([
|
|
3614
|
-
(0,
|
|
3615
|
-
(0,
|
|
3793
|
+
(0, import_typeorm44.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
3794
|
+
(0, import_typeorm44.Index)()
|
|
3616
3795
|
], User.prototype, "parentId", 2);
|
|
3617
3796
|
__decorateClass([
|
|
3618
|
-
(0,
|
|
3619
|
-
(0,
|
|
3797
|
+
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
3798
|
+
(0, import_typeorm44.JoinColumn)({ name: "parent_id" })
|
|
3620
3799
|
], User.prototype, "parent", 2);
|
|
3621
3800
|
__decorateClass([
|
|
3622
|
-
(0,
|
|
3801
|
+
(0, import_typeorm44.OneToMany)(() => User, (user) => user.parent)
|
|
3623
3802
|
], User.prototype, "children", 2);
|
|
3624
3803
|
__decorateClass([
|
|
3625
|
-
(0,
|
|
3804
|
+
(0, import_typeorm44.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3626
3805
|
], User.prototype, "username", 2);
|
|
3627
3806
|
__decorateClass([
|
|
3628
|
-
(0,
|
|
3807
|
+
(0, import_typeorm44.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3629
3808
|
], User.prototype, "firstName", 2);
|
|
3630
3809
|
__decorateClass([
|
|
3631
|
-
(0,
|
|
3810
|
+
(0, import_typeorm44.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3632
3811
|
], User.prototype, "lastName", 2);
|
|
3633
3812
|
__decorateClass([
|
|
3634
|
-
(0,
|
|
3813
|
+
(0, import_typeorm44.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
3635
3814
|
], User.prototype, "dateOfBirth", 2);
|
|
3636
3815
|
__decorateClass([
|
|
3637
|
-
(0,
|
|
3816
|
+
(0, import_typeorm44.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3638
3817
|
], User.prototype, "gender", 2);
|
|
3639
3818
|
__decorateClass([
|
|
3640
|
-
(0,
|
|
3819
|
+
(0, import_typeorm44.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3641
3820
|
], User.prototype, "profilePictureUrl", 2);
|
|
3642
3821
|
__decorateClass([
|
|
3643
|
-
(0,
|
|
3822
|
+
(0, import_typeorm44.Column)({ name: "email", type: "varchar", unique: true })
|
|
3644
3823
|
], User.prototype, "email", 2);
|
|
3645
3824
|
__decorateClass([
|
|
3646
|
-
(0,
|
|
3825
|
+
(0, import_typeorm44.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3647
3826
|
], User.prototype, "mobileCode", 2);
|
|
3648
3827
|
__decorateClass([
|
|
3649
|
-
(0,
|
|
3828
|
+
(0, import_typeorm44.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
3650
3829
|
], User.prototype, "mobile", 2);
|
|
3651
3830
|
__decorateClass([
|
|
3652
|
-
(0,
|
|
3831
|
+
(0, import_typeorm44.Column)({ name: "password", type: "varchar", nullable: true })
|
|
3653
3832
|
], User.prototype, "password", 2);
|
|
3654
3833
|
__decorateClass([
|
|
3655
|
-
(0,
|
|
3834
|
+
(0, import_typeorm44.Column)({
|
|
3656
3835
|
name: "account_type",
|
|
3657
3836
|
type: "enum",
|
|
3658
3837
|
enum: AccountType,
|
|
@@ -3660,7 +3839,7 @@ __decorateClass([
|
|
|
3660
3839
|
})
|
|
3661
3840
|
], User.prototype, "accountType", 2);
|
|
3662
3841
|
__decorateClass([
|
|
3663
|
-
(0,
|
|
3842
|
+
(0, import_typeorm44.Column)({
|
|
3664
3843
|
name: "account_status",
|
|
3665
3844
|
type: "enum",
|
|
3666
3845
|
enum: AccountStatus,
|
|
@@ -3668,39 +3847,39 @@ __decorateClass([
|
|
|
3668
3847
|
})
|
|
3669
3848
|
], User.prototype, "accountStatus", 2);
|
|
3670
3849
|
__decorateClass([
|
|
3671
|
-
(0,
|
|
3850
|
+
(0, import_typeorm44.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
3672
3851
|
], User.prototype, "isEmailVerified", 2);
|
|
3673
3852
|
__decorateClass([
|
|
3674
|
-
(0,
|
|
3853
|
+
(0, import_typeorm44.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3675
3854
|
], User.prototype, "isMobileVerified", 2);
|
|
3676
3855
|
__decorateClass([
|
|
3677
|
-
(0,
|
|
3856
|
+
(0, import_typeorm44.Column)({ name: "is_social", type: "boolean", default: false })
|
|
3678
3857
|
], User.prototype, "isSocial", 2);
|
|
3679
3858
|
__decorateClass([
|
|
3680
|
-
(0,
|
|
3859
|
+
(0, import_typeorm44.Column)({
|
|
3681
3860
|
name: "last_login_at",
|
|
3682
3861
|
type: "timestamp with time zone",
|
|
3683
3862
|
nullable: true
|
|
3684
3863
|
})
|
|
3685
3864
|
], User.prototype, "lastLoginAt", 2);
|
|
3686
3865
|
__decorateClass([
|
|
3687
|
-
(0,
|
|
3866
|
+
(0, import_typeorm44.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3688
3867
|
], User.prototype, "lastLoginIp", 2);
|
|
3689
3868
|
__decorateClass([
|
|
3690
|
-
(0,
|
|
3869
|
+
(0, import_typeorm44.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
3691
3870
|
], User.prototype, "resetToken", 2);
|
|
3692
3871
|
__decorateClass([
|
|
3693
|
-
(0,
|
|
3872
|
+
(0, import_typeorm44.Column)({
|
|
3694
3873
|
name: "reset_token_expire_at",
|
|
3695
3874
|
type: "timestamp with time zone",
|
|
3696
3875
|
nullable: true
|
|
3697
3876
|
})
|
|
3698
3877
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
3699
3878
|
__decorateClass([
|
|
3700
|
-
(0,
|
|
3879
|
+
(0, import_typeorm44.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
3701
3880
|
], User.prototype, "refreshTokens", 2);
|
|
3702
3881
|
__decorateClass([
|
|
3703
|
-
(0,
|
|
3882
|
+
(0, import_typeorm44.Column)({
|
|
3704
3883
|
name: "provider",
|
|
3705
3884
|
type: "enum",
|
|
3706
3885
|
enum: Provider,
|
|
@@ -3709,94 +3888,103 @@ __decorateClass([
|
|
|
3709
3888
|
})
|
|
3710
3889
|
], User.prototype, "provider", 2);
|
|
3711
3890
|
__decorateClass([
|
|
3712
|
-
(0,
|
|
3891
|
+
(0, import_typeorm44.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
3713
3892
|
], User.prototype, "providerToken", 2);
|
|
3714
3893
|
__decorateClass([
|
|
3715
|
-
(0,
|
|
3894
|
+
(0, import_typeorm44.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3716
3895
|
], User.prototype, "linkedInId", 2);
|
|
3717
3896
|
__decorateClass([
|
|
3718
|
-
(0,
|
|
3897
|
+
(0, import_typeorm44.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
3719
3898
|
], User.prototype, "googleId", 2);
|
|
3720
3899
|
__decorateClass([
|
|
3721
|
-
(0,
|
|
3900
|
+
(0, import_typeorm44.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3722
3901
|
], User.prototype, "gitLabsId", 2);
|
|
3723
3902
|
__decorateClass([
|
|
3724
|
-
(0,
|
|
3903
|
+
(0, import_typeorm44.OneToMany)(() => Otp, (otp) => otp.user)
|
|
3725
3904
|
], User.prototype, "otps", 2);
|
|
3726
3905
|
__decorateClass([
|
|
3727
|
-
(0,
|
|
3906
|
+
(0, import_typeorm44.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3728
3907
|
], User.prototype, "senseloafLogs", 2);
|
|
3729
3908
|
__decorateClass([
|
|
3730
|
-
(0,
|
|
3909
|
+
(0, import_typeorm44.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
3731
3910
|
], User.prototype, "companyProfile", 2);
|
|
3732
3911
|
__decorateClass([
|
|
3733
|
-
(0,
|
|
3912
|
+
(0, import_typeorm44.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
3734
3913
|
], User.prototype, "companySkills", 2);
|
|
3735
3914
|
__decorateClass([
|
|
3736
|
-
(0,
|
|
3915
|
+
(0, import_typeorm44.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3737
3916
|
], User.prototype, "companyMemberRoles", 2);
|
|
3738
3917
|
__decorateClass([
|
|
3739
|
-
(0,
|
|
3918
|
+
(0, import_typeorm44.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3740
3919
|
], User.prototype, "freelancerProfile", 2);
|
|
3741
3920
|
__decorateClass([
|
|
3742
|
-
(0,
|
|
3921
|
+
(0, import_typeorm44.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
3743
3922
|
], User.prototype, "freelancerResume", 2);
|
|
3744
3923
|
__decorateClass([
|
|
3745
|
-
(0,
|
|
3924
|
+
(0, import_typeorm44.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
3746
3925
|
], User.prototype, "assessments", 2);
|
|
3747
3926
|
__decorateClass([
|
|
3748
|
-
(0,
|
|
3927
|
+
(0, import_typeorm44.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
3749
3928
|
], User.prototype, "assessmentAnswers", 2);
|
|
3750
3929
|
__decorateClass([
|
|
3751
|
-
(0,
|
|
3930
|
+
(0, import_typeorm44.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
3752
3931
|
], User.prototype, "freelancerSkills", 2);
|
|
3753
3932
|
__decorateClass([
|
|
3754
|
-
(0,
|
|
3933
|
+
(0, import_typeorm44.OneToMany)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
3755
3934
|
], User.prototype, "freelancerExperience", 2);
|
|
3756
3935
|
__decorateClass([
|
|
3757
|
-
(0,
|
|
3936
|
+
(0, import_typeorm44.OneToMany)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
3758
3937
|
], User.prototype, "freelancerEducation", 2);
|
|
3759
3938
|
__decorateClass([
|
|
3760
|
-
(0,
|
|
3939
|
+
(0, import_typeorm44.OneToMany)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
3761
3940
|
], User.prototype, "freelancerProject", 2);
|
|
3762
3941
|
__decorateClass([
|
|
3763
|
-
(0,
|
|
3942
|
+
(0, import_typeorm44.OneToMany)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
3764
3943
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
3765
3944
|
__decorateClass([
|
|
3766
|
-
(0,
|
|
3945
|
+
(0, import_typeorm44.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3767
3946
|
], User.prototype, "freelancerTool", 2);
|
|
3768
3947
|
__decorateClass([
|
|
3769
|
-
(0,
|
|
3948
|
+
(0, import_typeorm44.OneToMany)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3770
3949
|
], User.prototype, "freelancerFramework", 2);
|
|
3771
3950
|
__decorateClass([
|
|
3772
|
-
(0,
|
|
3951
|
+
(0, import_typeorm44.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3773
3952
|
], User.prototype, "freelancerDeclaration", 2);
|
|
3774
3953
|
__decorateClass([
|
|
3775
|
-
(0,
|
|
3954
|
+
(0, import_typeorm44.OneToMany)(() => Job, (job) => job.user)
|
|
3776
3955
|
], User.prototype, "jobs", 2);
|
|
3777
3956
|
__decorateClass([
|
|
3778
|
-
(0,
|
|
3957
|
+
(0, import_typeorm44.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
3779
3958
|
], User.prototype, "jobApplications", 2);
|
|
3780
3959
|
__decorateClass([
|
|
3781
|
-
(0,
|
|
3960
|
+
(0, import_typeorm44.OneToMany)(() => Interview, (interview) => interview.user)
|
|
3782
3961
|
], User.prototype, "interviews", 2);
|
|
3783
3962
|
__decorateClass([
|
|
3784
|
-
(0,
|
|
3963
|
+
(0, import_typeorm44.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
3785
3964
|
], User.prototype, "bankDetail", 2);
|
|
3786
3965
|
__decorateClass([
|
|
3787
|
-
(0,
|
|
3966
|
+
(0, import_typeorm44.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
3788
3967
|
], User.prototype, "systemPreference", 2);
|
|
3789
3968
|
__decorateClass([
|
|
3790
|
-
(0,
|
|
3969
|
+
(0, import_typeorm44.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
3791
3970
|
], User.prototype, "givenRatings", 2);
|
|
3792
3971
|
__decorateClass([
|
|
3793
|
-
(0,
|
|
3972
|
+
(0, import_typeorm44.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
3794
3973
|
], User.prototype, "receivedRatings", 2);
|
|
3795
3974
|
__decorateClass([
|
|
3796
|
-
(0,
|
|
3975
|
+
(0, import_typeorm44.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3797
3976
|
], User.prototype, "adminUserRoles", 2);
|
|
3977
|
+
__decorateClass([
|
|
3978
|
+
(0, import_typeorm44.OneToMany)(() => CalendlyMeeting, (calendlyMeeting) => calendlyMeeting.user)
|
|
3979
|
+
], User.prototype, "calendlyMeetings", 2);
|
|
3980
|
+
__decorateClass([
|
|
3981
|
+
(0, import_typeorm44.OneToMany)(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.client)
|
|
3982
|
+
], User.prototype, "clientF2FInterviews", 2);
|
|
3983
|
+
__decorateClass([
|
|
3984
|
+
(0, import_typeorm44.OneToMany)(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.freelancer)
|
|
3985
|
+
], User.prototype, "freelancerF2FInterviews", 2);
|
|
3798
3986
|
User = __decorateClass([
|
|
3799
|
-
(0,
|
|
3987
|
+
(0, import_typeorm44.Entity)("users")
|
|
3800
3988
|
], User);
|
|
3801
3989
|
|
|
3802
3990
|
// src/entities/rating.entity.ts
|
|
@@ -3808,36 +3996,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3808
3996
|
var Rating = class extends BaseEntity {
|
|
3809
3997
|
};
|
|
3810
3998
|
__decorateClass([
|
|
3811
|
-
(0,
|
|
3812
|
-
(0,
|
|
3999
|
+
(0, import_typeorm45.Column)({ name: "reviewer_id", type: "integer" }),
|
|
4000
|
+
(0, import_typeorm45.Index)()
|
|
3813
4001
|
], Rating.prototype, "reviewer_id", 2);
|
|
3814
4002
|
__decorateClass([
|
|
3815
|
-
(0,
|
|
3816
|
-
(0,
|
|
4003
|
+
(0, import_typeorm45.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4004
|
+
(0, import_typeorm45.JoinColumn)({ name: "reviewer_id" })
|
|
3817
4005
|
], Rating.prototype, "reviewer", 2);
|
|
3818
4006
|
__decorateClass([
|
|
3819
|
-
(0,
|
|
3820
|
-
(0,
|
|
4007
|
+
(0, import_typeorm45.Column)({ name: "reviewee_id", type: "integer" }),
|
|
4008
|
+
(0, import_typeorm45.Index)()
|
|
3821
4009
|
], Rating.prototype, "reviewee_id", 2);
|
|
3822
4010
|
__decorateClass([
|
|
3823
|
-
(0,
|
|
3824
|
-
(0,
|
|
4011
|
+
(0, import_typeorm45.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
4012
|
+
(0, import_typeorm45.JoinColumn)({ name: "reviewee_id" })
|
|
3825
4013
|
], Rating.prototype, "reviewee", 2);
|
|
3826
4014
|
__decorateClass([
|
|
3827
|
-
(0,
|
|
4015
|
+
(0, import_typeorm45.Column)({
|
|
3828
4016
|
type: "enum",
|
|
3829
4017
|
enum: RatingTypeEnum,
|
|
3830
4018
|
nullable: true
|
|
3831
4019
|
})
|
|
3832
4020
|
], Rating.prototype, "ratingType", 2);
|
|
3833
4021
|
__decorateClass([
|
|
3834
|
-
(0,
|
|
4022
|
+
(0, import_typeorm45.Column)({ type: "integer", nullable: true })
|
|
3835
4023
|
], Rating.prototype, "rating", 2);
|
|
3836
4024
|
__decorateClass([
|
|
3837
|
-
(0,
|
|
4025
|
+
(0, import_typeorm45.Column)({ type: "text", nullable: true })
|
|
3838
4026
|
], Rating.prototype, "review", 2);
|
|
3839
4027
|
Rating = __decorateClass([
|
|
3840
|
-
(0,
|
|
4028
|
+
(0, import_typeorm45.Entity)("ratings")
|
|
3841
4029
|
], Rating);
|
|
3842
4030
|
|
|
3843
4031
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -3936,7 +4124,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3936
4124
|
|
|
3937
4125
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
3938
4126
|
var import_class_validator44 = require("class-validator");
|
|
3939
|
-
var
|
|
4127
|
+
var import_class_transformer3 = require("class-transformer");
|
|
3940
4128
|
var ExperienceDto = class {
|
|
3941
4129
|
};
|
|
3942
4130
|
__decorateClass([
|
|
@@ -3964,7 +4152,7 @@ var FreelancerExperienceDto = class {
|
|
|
3964
4152
|
__decorateClass([
|
|
3965
4153
|
(0, import_class_validator44.ValidateNested)({ each: true }),
|
|
3966
4154
|
(0, import_class_validator44.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
3967
|
-
(0,
|
|
4155
|
+
(0, import_class_transformer3.Type)(() => ExperienceDto)
|
|
3968
4156
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
3969
4157
|
|
|
3970
4158
|
// src/modules/company-member/pattern/pattern.ts
|
|
@@ -4027,7 +4215,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
4027
4215
|
|
|
4028
4216
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
4029
4217
|
var import_class_validator48 = require("class-validator");
|
|
4030
|
-
var
|
|
4218
|
+
var import_class_transformer4 = require("class-transformer");
|
|
4031
4219
|
var EducationDto = class {
|
|
4032
4220
|
};
|
|
4033
4221
|
__decorateClass([
|
|
@@ -4051,7 +4239,7 @@ __decorateClass([
|
|
|
4051
4239
|
(0, import_class_validator48.IsArray)(),
|
|
4052
4240
|
(0, import_class_validator48.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
4053
4241
|
(0, import_class_validator48.ValidateNested)({ each: true }),
|
|
4054
|
-
(0,
|
|
4242
|
+
(0, import_class_transformer4.Type)(() => EducationDto)
|
|
4055
4243
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
4056
4244
|
|
|
4057
4245
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
@@ -4062,7 +4250,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
4062
4250
|
|
|
4063
4251
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4064
4252
|
var import_class_validator49 = require("class-validator");
|
|
4065
|
-
var
|
|
4253
|
+
var import_class_transformer5 = require("class-transformer");
|
|
4066
4254
|
var ProjectDto = class {
|
|
4067
4255
|
};
|
|
4068
4256
|
__decorateClass([
|
|
@@ -4117,12 +4305,12 @@ __decorateClass([
|
|
|
4117
4305
|
(0, import_class_validator49.IsArray)(),
|
|
4118
4306
|
(0, import_class_validator49.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
4119
4307
|
(0, import_class_validator49.ValidateNested)({ each: true }),
|
|
4120
|
-
(0,
|
|
4308
|
+
(0, import_class_transformer5.Type)(() => ProjectDto)
|
|
4121
4309
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
4122
4310
|
__decorateClass([
|
|
4123
4311
|
(0, import_class_validator49.IsArray)(),
|
|
4124
4312
|
(0, import_class_validator49.ValidateNested)({ each: true }),
|
|
4125
|
-
(0,
|
|
4313
|
+
(0, import_class_transformer5.Type)(() => CaseStudyDto)
|
|
4126
4314
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
4127
4315
|
|
|
4128
4316
|
// src/modules/permission/pattern/pattern.ts
|
|
@@ -4138,7 +4326,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4138
4326
|
|
|
4139
4327
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4140
4328
|
var import_class_validator50 = require("class-validator");
|
|
4141
|
-
var
|
|
4329
|
+
var import_class_transformer6 = require("class-transformer");
|
|
4142
4330
|
var FreelancerSkillDto = class {
|
|
4143
4331
|
constructor() {
|
|
4144
4332
|
this.coreSkills = [];
|
|
@@ -4149,19 +4337,19 @@ var FreelancerSkillDto = class {
|
|
|
4149
4337
|
__decorateClass([
|
|
4150
4338
|
(0, import_class_validator50.IsOptional)(),
|
|
4151
4339
|
(0, import_class_validator50.IsArray)(),
|
|
4152
|
-
(0,
|
|
4340
|
+
(0, import_class_transformer6.Type)(() => String),
|
|
4153
4341
|
(0, import_class_validator50.IsString)({ each: true })
|
|
4154
4342
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4155
4343
|
__decorateClass([
|
|
4156
4344
|
(0, import_class_validator50.IsOptional)(),
|
|
4157
4345
|
(0, import_class_validator50.IsArray)(),
|
|
4158
|
-
(0,
|
|
4346
|
+
(0, import_class_transformer6.Type)(() => String),
|
|
4159
4347
|
(0, import_class_validator50.IsString)({ each: true })
|
|
4160
4348
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4161
4349
|
__decorateClass([
|
|
4162
4350
|
(0, import_class_validator50.IsOptional)(),
|
|
4163
4351
|
(0, import_class_validator50.IsArray)(),
|
|
4164
|
-
(0,
|
|
4352
|
+
(0, import_class_transformer6.Type)(() => String),
|
|
4165
4353
|
(0, import_class_validator50.IsString)({ each: true })
|
|
4166
4354
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
4167
4355
|
|
|
@@ -4179,7 +4367,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
4179
4367
|
|
|
4180
4368
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
4181
4369
|
var import_class_validator51 = require("class-validator");
|
|
4182
|
-
var
|
|
4370
|
+
var import_class_transformer7 = require("class-transformer");
|
|
4183
4371
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
4184
4372
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
4185
4373
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -4221,7 +4409,7 @@ __decorateClass([
|
|
|
4221
4409
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
4222
4410
|
__decorateClass([
|
|
4223
4411
|
(0, import_class_validator51.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
4224
|
-
(0,
|
|
4412
|
+
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4225
4413
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
4226
4414
|
__decorateClass([
|
|
4227
4415
|
(0, import_class_validator51.IsEnum)(NatureOfWorkEnum, {
|
|
@@ -4233,7 +4421,7 @@ __decorateClass([
|
|
|
4233
4421
|
__decorateClass([
|
|
4234
4422
|
(0, import_class_validator51.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
4235
4423
|
(0, import_class_validator51.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4236
|
-
(0,
|
|
4424
|
+
(0, import_class_transformer7.Type)(() => Number)
|
|
4237
4425
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4238
4426
|
__decorateClass([
|
|
4239
4427
|
(0, import_class_validator51.IsEnum)(ModeOfWorkEnum, {
|
|
@@ -4244,7 +4432,7 @@ __decorateClass([
|
|
|
4244
4432
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4245
4433
|
__decorateClass([
|
|
4246
4434
|
(0, import_class_validator51.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
4247
|
-
(0,
|
|
4435
|
+
(0, import_class_transformer7.Type)(() => Boolean)
|
|
4248
4436
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4249
4437
|
__decorateClass([
|
|
4250
4438
|
(0, import_class_validator51.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
@@ -4273,7 +4461,7 @@ __decorateClass([
|
|
|
4273
4461
|
|
|
4274
4462
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
4275
4463
|
var import_class_validator52 = require("class-validator");
|
|
4276
|
-
var
|
|
4464
|
+
var import_class_transformer8 = require("class-transformer");
|
|
4277
4465
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
4278
4466
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
4279
4467
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -4307,6 +4495,7 @@ __decorateClass([
|
|
|
4307
4495
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4308
4496
|
__decorateClass([
|
|
4309
4497
|
(0, import_class_validator52.IsOptional)(),
|
|
4498
|
+
(0, import_class_transformer8.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4310
4499
|
(0, import_class_validator52.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4311
4500
|
(0, import_class_validator52.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4312
4501
|
(0, import_class_validator52.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4316,7 +4505,7 @@ __decorateClass([
|
|
|
4316
4505
|
__decorateClass([
|
|
4317
4506
|
(0, import_class_validator52.IsOptional)(),
|
|
4318
4507
|
(0, import_class_validator52.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
4319
|
-
(0,
|
|
4508
|
+
(0, import_class_transformer8.Type)(() => Boolean)
|
|
4320
4509
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4321
4510
|
__decorateClass([
|
|
4322
4511
|
(0, import_class_validator52.IsOptional)(),
|
|
@@ -4330,7 +4519,7 @@ __decorateClass([
|
|
|
4330
4519
|
(0, import_class_validator52.IsOptional)(),
|
|
4331
4520
|
(0, import_class_validator52.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
4332
4521
|
(0, import_class_validator52.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4333
|
-
(0,
|
|
4522
|
+
(0, import_class_transformer8.Type)(() => Number)
|
|
4334
4523
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4335
4524
|
__decorateClass([
|
|
4336
4525
|
(0, import_class_validator52.IsOptional)(),
|
|
@@ -4343,7 +4532,7 @@ __decorateClass([
|
|
|
4343
4532
|
__decorateClass([
|
|
4344
4533
|
(0, import_class_validator52.IsOptional)(),
|
|
4345
4534
|
(0, import_class_validator52.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
4346
|
-
(0,
|
|
4535
|
+
(0, import_class_transformer8.Type)(() => Boolean)
|
|
4347
4536
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4348
4537
|
__decorateClass([
|
|
4349
4538
|
(0, import_class_validator52.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
@@ -4462,6 +4651,7 @@ __decorateClass([
|
|
|
4462
4651
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4463
4652
|
|
|
4464
4653
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4654
|
+
var import_class_transformer9 = require("class-transformer");
|
|
4465
4655
|
var import_class_validator55 = require("class-validator");
|
|
4466
4656
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
4467
4657
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
@@ -4491,6 +4681,7 @@ __decorateClass([
|
|
|
4491
4681
|
], UpdateClientDto.prototype, "email", 2);
|
|
4492
4682
|
__decorateClass([
|
|
4493
4683
|
(0, import_class_validator55.IsOptional)(),
|
|
4684
|
+
(0, import_class_transformer9.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4494
4685
|
(0, import_class_validator55.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
4495
4686
|
(0, import_class_validator55.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
4496
4687
|
(0, import_class_validator55.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -4624,7 +4815,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
4624
4815
|
};
|
|
4625
4816
|
|
|
4626
4817
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
4627
|
-
var
|
|
4818
|
+
var import_class_transformer10 = require("class-transformer");
|
|
4628
4819
|
var import_class_validator59 = require("class-validator");
|
|
4629
4820
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
4630
4821
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
@@ -4651,7 +4842,7 @@ __decorateClass([
|
|
|
4651
4842
|
__decorateClass([
|
|
4652
4843
|
(0, import_class_validator59.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4653
4844
|
(0, import_class_validator59.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
4654
|
-
(0,
|
|
4845
|
+
(0, import_class_transformer10.Type)(() => Number),
|
|
4655
4846
|
(0, import_class_validator59.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4656
4847
|
], AdminCreateJobInformationDto.prototype, "skills", 2);
|
|
4657
4848
|
__decorateClass([
|
|
@@ -4681,11 +4872,11 @@ __decorateClass([
|
|
|
4681
4872
|
(0, import_class_validator59.IsNotEmpty)({ message: "Currency is required." })
|
|
4682
4873
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4683
4874
|
__decorateClass([
|
|
4684
|
-
(0,
|
|
4875
|
+
(0, import_class_transformer10.Type)(() => Number),
|
|
4685
4876
|
(0, import_class_validator59.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4686
4877
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4687
4878
|
__decorateClass([
|
|
4688
|
-
(0,
|
|
4879
|
+
(0, import_class_transformer10.Type)(() => Number),
|
|
4689
4880
|
(0, import_class_validator59.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4690
4881
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4691
4882
|
__decorateClass([
|
|
@@ -4712,7 +4903,7 @@ __decorateClass([
|
|
|
4712
4903
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
4713
4904
|
|
|
4714
4905
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
4715
|
-
var
|
|
4906
|
+
var import_class_transformer11 = require("class-transformer");
|
|
4716
4907
|
var import_class_validator60 = require("class-validator");
|
|
4717
4908
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
4718
4909
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
@@ -4739,7 +4930,7 @@ __decorateClass([
|
|
|
4739
4930
|
__decorateClass([
|
|
4740
4931
|
(0, import_class_validator60.IsArray)({ message: "Skills must be an array of numeric IDs." }),
|
|
4741
4932
|
(0, import_class_validator60.ArrayNotEmpty)({ message: "At least one skill must be selected." }),
|
|
4742
|
-
(0,
|
|
4933
|
+
(0, import_class_transformer11.Type)(() => Number),
|
|
4743
4934
|
(0, import_class_validator60.IsInt)({ each: true, message: "Each skill ID must be a valid integer." })
|
|
4744
4935
|
], AdminUpdateJobInformationDto.prototype, "skills", 2);
|
|
4745
4936
|
__decorateClass([
|
|
@@ -4769,11 +4960,11 @@ __decorateClass([
|
|
|
4769
4960
|
(0, import_class_validator60.IsNotEmpty)({ message: "Currency is required." })
|
|
4770
4961
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4771
4962
|
__decorateClass([
|
|
4772
|
-
(0,
|
|
4963
|
+
(0, import_class_transformer11.Type)(() => Number),
|
|
4773
4964
|
(0, import_class_validator60.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
4774
4965
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
4775
4966
|
__decorateClass([
|
|
4776
|
-
(0,
|
|
4967
|
+
(0, import_class_transformer11.Type)(() => Number),
|
|
4777
4968
|
(0, import_class_validator60.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
4778
4969
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
4779
4970
|
__decorateClass([
|
|
@@ -4905,7 +5096,7 @@ var INTERVIEW_INVITE_PATTERN = {
|
|
|
4905
5096
|
|
|
4906
5097
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
4907
5098
|
var import_class_validator65 = require("class-validator");
|
|
4908
|
-
var
|
|
5099
|
+
var import_class_transformer12 = require("class-transformer");
|
|
4909
5100
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
4910
5101
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
4911
5102
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -4944,14 +5135,14 @@ __decorateClass([
|
|
|
4944
5135
|
(0, import_class_validator65.IsArray)({ message: "Existing candidates should be an array." }),
|
|
4945
5136
|
(0, import_class_validator65.ArrayNotEmpty)({ message: "Please select at least one candidate." }),
|
|
4946
5137
|
(0, import_class_validator65.ValidateNested)({ each: true }),
|
|
4947
|
-
(0,
|
|
5138
|
+
(0, import_class_transformer12.Type)(() => ExistingCandidateDto)
|
|
4948
5139
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
4949
5140
|
__decorateClass([
|
|
4950
5141
|
(0, import_class_validator65.ValidateIf)((o) => o.newCandidates?.length > 0),
|
|
4951
5142
|
(0, import_class_validator65.IsArray)({ message: "New candidates should be an array." }),
|
|
4952
5143
|
(0, import_class_validator65.ArrayNotEmpty)({ message: "Please add at least one candidate." }),
|
|
4953
5144
|
(0, import_class_validator65.ValidateNested)({ each: true }),
|
|
4954
|
-
(0,
|
|
5145
|
+
(0, import_class_transformer12.Type)(() => NewCandidateDto)
|
|
4955
5146
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
4956
5147
|
var InterviewInviteDto = class {
|
|
4957
5148
|
};
|
|
@@ -4960,7 +5151,7 @@ __decorateClass([
|
|
|
4960
5151
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
4961
5152
|
__decorateClass([
|
|
4962
5153
|
(0, import_class_validator65.ValidateNested)({ each: true }),
|
|
4963
|
-
(0,
|
|
5154
|
+
(0, import_class_transformer12.Type)(() => CandidatesDto)
|
|
4964
5155
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
4965
5156
|
|
|
4966
5157
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -5180,11 +5371,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5180
5371
|
};
|
|
5181
5372
|
|
|
5182
5373
|
// src/entities/sequence-generator.entity.ts
|
|
5183
|
-
var
|
|
5374
|
+
var import_typeorm46 = require("typeorm");
|
|
5184
5375
|
var SequenceGenerator = class extends BaseEntity {
|
|
5185
5376
|
};
|
|
5186
5377
|
__decorateClass([
|
|
5187
|
-
(0,
|
|
5378
|
+
(0, import_typeorm46.Column)({
|
|
5188
5379
|
name: "module",
|
|
5189
5380
|
type: "varchar",
|
|
5190
5381
|
length: 50,
|
|
@@ -5193,7 +5384,7 @@ __decorateClass([
|
|
|
5193
5384
|
})
|
|
5194
5385
|
], SequenceGenerator.prototype, "module", 2);
|
|
5195
5386
|
__decorateClass([
|
|
5196
|
-
(0,
|
|
5387
|
+
(0, import_typeorm46.Column)({
|
|
5197
5388
|
name: "prefix",
|
|
5198
5389
|
type: "varchar",
|
|
5199
5390
|
length: 10,
|
|
@@ -5202,7 +5393,7 @@ __decorateClass([
|
|
|
5202
5393
|
})
|
|
5203
5394
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5204
5395
|
__decorateClass([
|
|
5205
|
-
(0,
|
|
5396
|
+
(0, import_typeorm46.Column)({
|
|
5206
5397
|
name: "last_sequence",
|
|
5207
5398
|
type: "int",
|
|
5208
5399
|
nullable: false,
|
|
@@ -5210,7 +5401,7 @@ __decorateClass([
|
|
|
5210
5401
|
})
|
|
5211
5402
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5212
5403
|
__decorateClass([
|
|
5213
|
-
(0,
|
|
5404
|
+
(0, import_typeorm46.Column)({
|
|
5214
5405
|
name: "year",
|
|
5215
5406
|
type: "int",
|
|
5216
5407
|
nullable: true,
|
|
@@ -5218,11 +5409,11 @@ __decorateClass([
|
|
|
5218
5409
|
})
|
|
5219
5410
|
], SequenceGenerator.prototype, "year", 2);
|
|
5220
5411
|
SequenceGenerator = __decorateClass([
|
|
5221
|
-
(0,
|
|
5412
|
+
(0, import_typeorm46.Entity)("sequence_generators")
|
|
5222
5413
|
], SequenceGenerator);
|
|
5223
5414
|
|
|
5224
5415
|
// src/entities/question.entity.ts
|
|
5225
|
-
var
|
|
5416
|
+
var import_typeorm47 = require("typeorm");
|
|
5226
5417
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5227
5418
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5228
5419
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5231,16 +5422,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5231
5422
|
var Question = class extends BaseEntity {
|
|
5232
5423
|
};
|
|
5233
5424
|
__decorateClass([
|
|
5234
|
-
(0,
|
|
5425
|
+
(0, import_typeorm47.Column)({ name: "question", type: "varchar" })
|
|
5235
5426
|
], Question.prototype, "question", 2);
|
|
5236
5427
|
__decorateClass([
|
|
5237
|
-
(0,
|
|
5428
|
+
(0, import_typeorm47.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
5238
5429
|
], Question.prototype, "hint", 2);
|
|
5239
5430
|
__decorateClass([
|
|
5240
|
-
(0,
|
|
5431
|
+
(0, import_typeorm47.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5241
5432
|
], Question.prototype, "slug", 2);
|
|
5242
5433
|
__decorateClass([
|
|
5243
|
-
(0,
|
|
5434
|
+
(0, import_typeorm47.Column)({
|
|
5244
5435
|
name: "question_for",
|
|
5245
5436
|
type: "enum",
|
|
5246
5437
|
enum: QuestionFor,
|
|
@@ -5248,54 +5439,54 @@ __decorateClass([
|
|
|
5248
5439
|
})
|
|
5249
5440
|
], Question.prototype, "questionFor", 2);
|
|
5250
5441
|
__decorateClass([
|
|
5251
|
-
(0,
|
|
5442
|
+
(0, import_typeorm47.Column)({ name: "type", type: "varchar", nullable: true })
|
|
5252
5443
|
], Question.prototype, "type", 2);
|
|
5253
5444
|
__decorateClass([
|
|
5254
|
-
(0,
|
|
5445
|
+
(0, import_typeorm47.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
5255
5446
|
], Question.prototype, "options", 2);
|
|
5256
5447
|
__decorateClass([
|
|
5257
|
-
(0,
|
|
5448
|
+
(0, import_typeorm47.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5258
5449
|
], Question.prototype, "isActive", 2);
|
|
5259
5450
|
Question = __decorateClass([
|
|
5260
|
-
(0,
|
|
5451
|
+
(0, import_typeorm47.Entity)("questions")
|
|
5261
5452
|
], Question);
|
|
5262
5453
|
|
|
5263
5454
|
// src/entities/skill.entity.ts
|
|
5264
|
-
var
|
|
5455
|
+
var import_typeorm48 = require("typeorm");
|
|
5265
5456
|
var Skill = class extends BaseEntity {
|
|
5266
5457
|
};
|
|
5267
5458
|
__decorateClass([
|
|
5268
|
-
(0,
|
|
5459
|
+
(0, import_typeorm48.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5269
5460
|
], Skill.prototype, "name", 2);
|
|
5270
5461
|
__decorateClass([
|
|
5271
|
-
(0,
|
|
5462
|
+
(0, import_typeorm48.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5272
5463
|
], Skill.prototype, "slug", 2);
|
|
5273
5464
|
__decorateClass([
|
|
5274
|
-
(0,
|
|
5465
|
+
(0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: false })
|
|
5275
5466
|
], Skill.prototype, "isActive", 2);
|
|
5276
5467
|
Skill = __decorateClass([
|
|
5277
|
-
(0,
|
|
5468
|
+
(0, import_typeorm48.Entity)("skills")
|
|
5278
5469
|
], Skill);
|
|
5279
5470
|
|
|
5280
5471
|
// src/entities/job-role.entity.ts
|
|
5281
|
-
var
|
|
5472
|
+
var import_typeorm49 = require("typeorm");
|
|
5282
5473
|
var JobRoles = class extends BaseEntity {
|
|
5283
5474
|
};
|
|
5284
5475
|
__decorateClass([
|
|
5285
|
-
(0,
|
|
5476
|
+
(0, import_typeorm49.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5286
5477
|
], JobRoles.prototype, "slug", 2);
|
|
5287
5478
|
__decorateClass([
|
|
5288
|
-
(0,
|
|
5479
|
+
(0, import_typeorm49.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5289
5480
|
], JobRoles.prototype, "name", 2);
|
|
5290
5481
|
__decorateClass([
|
|
5291
|
-
(0,
|
|
5482
|
+
(0, import_typeorm49.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5292
5483
|
], JobRoles.prototype, "isActive", 2);
|
|
5293
5484
|
JobRoles = __decorateClass([
|
|
5294
|
-
(0,
|
|
5485
|
+
(0, import_typeorm49.Entity)("job_roles")
|
|
5295
5486
|
], JobRoles);
|
|
5296
5487
|
|
|
5297
5488
|
// src/entities/ai-interview.entity.ts
|
|
5298
|
-
var
|
|
5489
|
+
var import_typeorm50 = require("typeorm");
|
|
5299
5490
|
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|
|
5300
5491
|
AIInterviewStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
5301
5492
|
AIInterviewStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
@@ -5321,37 +5512,37 @@ var AIInterviewResultEnum = /* @__PURE__ */ ((AIInterviewResultEnum2) => {
|
|
|
5321
5512
|
var AIInterview = class extends BaseEntity {
|
|
5322
5513
|
};
|
|
5323
5514
|
__decorateClass([
|
|
5324
|
-
(0,
|
|
5515
|
+
(0, import_typeorm50.Column)({
|
|
5325
5516
|
name: "interview_id",
|
|
5326
5517
|
type: "integer",
|
|
5327
5518
|
comment: "Redundant explicit interview_id column (optional if using only relation"
|
|
5328
5519
|
}),
|
|
5329
|
-
(0,
|
|
5520
|
+
(0, import_typeorm50.Index)()
|
|
5330
5521
|
], AIInterview.prototype, "interviewId", 2);
|
|
5331
5522
|
__decorateClass([
|
|
5332
|
-
(0,
|
|
5523
|
+
(0, import_typeorm50.Column)({
|
|
5333
5524
|
name: "interview_invite_id",
|
|
5334
5525
|
type: "integer",
|
|
5335
5526
|
comment: "Redundant explicit interview_invite_id column (optional if using only relation"
|
|
5336
5527
|
})
|
|
5337
5528
|
], AIInterview.prototype, "interviewInviteId", 2);
|
|
5338
5529
|
__decorateClass([
|
|
5339
|
-
(0,
|
|
5530
|
+
(0, import_typeorm50.Column)({
|
|
5340
5531
|
name: "candidate_id",
|
|
5341
5532
|
type: "integer",
|
|
5342
5533
|
comment: "Redundant explicit candidate_id column (optional if using only relation"
|
|
5343
5534
|
}),
|
|
5344
|
-
(0,
|
|
5535
|
+
(0, import_typeorm50.Index)()
|
|
5345
5536
|
], AIInterview.prototype, "candidateId", 2);
|
|
5346
5537
|
__decorateClass([
|
|
5347
|
-
(0,
|
|
5538
|
+
(0, import_typeorm50.Column)({
|
|
5348
5539
|
name: "job_id",
|
|
5349
5540
|
type: "integer",
|
|
5350
5541
|
comment: "Redundant explicit job_id column (optional if using only relation"
|
|
5351
5542
|
})
|
|
5352
5543
|
], AIInterview.prototype, "jobId", 2);
|
|
5353
5544
|
__decorateClass([
|
|
5354
|
-
(0,
|
|
5545
|
+
(0, import_typeorm50.Column)({
|
|
5355
5546
|
name: "invite_token",
|
|
5356
5547
|
type: "varchar",
|
|
5357
5548
|
unique: true,
|
|
@@ -5360,38 +5551,38 @@ __decorateClass([
|
|
|
5360
5551
|
})
|
|
5361
5552
|
], AIInterview.prototype, "inviteToken", 2);
|
|
5362
5553
|
__decorateClass([
|
|
5363
|
-
(0,
|
|
5554
|
+
(0, import_typeorm50.Column)({ name: "interview_type", type: "enum", enum: AIInterviewTypeEnum })
|
|
5364
5555
|
], AIInterview.prototype, "interviewType", 2);
|
|
5365
5556
|
__decorateClass([
|
|
5366
|
-
(0,
|
|
5557
|
+
(0, import_typeorm50.Column)({
|
|
5367
5558
|
name: "interview_name",
|
|
5368
5559
|
type: "varchar",
|
|
5369
5560
|
comment: "Name of the interview"
|
|
5370
5561
|
})
|
|
5371
5562
|
], AIInterview.prototype, "interviewName", 2);
|
|
5372
5563
|
__decorateClass([
|
|
5373
|
-
(0,
|
|
5564
|
+
(0, import_typeorm50.Column)({
|
|
5374
5565
|
name: "job_title",
|
|
5375
5566
|
type: "varchar",
|
|
5376
5567
|
comment: "Name of the job title for that the AI interview was conducted"
|
|
5377
5568
|
})
|
|
5378
5569
|
], AIInterview.prototype, "jobTitle", 2);
|
|
5379
5570
|
__decorateClass([
|
|
5380
|
-
(0,
|
|
5571
|
+
(0, import_typeorm50.Column)({
|
|
5381
5572
|
type: "enum",
|
|
5382
5573
|
enum: AIInterviewStatusEnum,
|
|
5383
5574
|
default: "IN_PROGRESS" /* IN_PROGRESS */
|
|
5384
5575
|
})
|
|
5385
5576
|
], AIInterview.prototype, "status", 2);
|
|
5386
5577
|
__decorateClass([
|
|
5387
|
-
(0,
|
|
5578
|
+
(0, import_typeorm50.Column)({
|
|
5388
5579
|
name: "started_at",
|
|
5389
5580
|
type: "timestamp with time zone",
|
|
5390
5581
|
comment: "Timestamp when the interview was started"
|
|
5391
5582
|
})
|
|
5392
5583
|
], AIInterview.prototype, "startedAt", 2);
|
|
5393
5584
|
__decorateClass([
|
|
5394
|
-
(0,
|
|
5585
|
+
(0, import_typeorm50.Column)({
|
|
5395
5586
|
name: "completed_at",
|
|
5396
5587
|
type: "timestamp with time zone",
|
|
5397
5588
|
nullable: true,
|
|
@@ -5399,7 +5590,7 @@ __decorateClass([
|
|
|
5399
5590
|
})
|
|
5400
5591
|
], AIInterview.prototype, "completedAt", 2);
|
|
5401
5592
|
__decorateClass([
|
|
5402
|
-
(0,
|
|
5593
|
+
(0, import_typeorm50.Column)({
|
|
5403
5594
|
name: "duration_minutes",
|
|
5404
5595
|
type: "integer",
|
|
5405
5596
|
nullable: true,
|
|
@@ -5407,7 +5598,7 @@ __decorateClass([
|
|
|
5407
5598
|
})
|
|
5408
5599
|
], AIInterview.prototype, "durationMinutes", 2);
|
|
5409
5600
|
__decorateClass([
|
|
5410
|
-
(0,
|
|
5601
|
+
(0, import_typeorm50.Column)({
|
|
5411
5602
|
name: "overall_score",
|
|
5412
5603
|
type: "decimal",
|
|
5413
5604
|
precision: 5,
|
|
@@ -5417,90 +5608,90 @@ __decorateClass([
|
|
|
5417
5608
|
})
|
|
5418
5609
|
], AIInterview.prototype, "overallScore", 2);
|
|
5419
5610
|
__decorateClass([
|
|
5420
|
-
(0,
|
|
5421
|
-
(0,
|
|
5611
|
+
(0, import_typeorm50.ManyToOne)(() => Interview, { onDelete: "CASCADE" }),
|
|
5612
|
+
(0, import_typeorm50.JoinColumn)({ name: "interview_id" })
|
|
5422
5613
|
], AIInterview.prototype, "interview", 2);
|
|
5423
5614
|
__decorateClass([
|
|
5424
|
-
(0,
|
|
5425
|
-
(0,
|
|
5615
|
+
(0, import_typeorm50.ManyToOne)(() => InterviewInvite, { onDelete: "CASCADE" }),
|
|
5616
|
+
(0, import_typeorm50.JoinColumn)({ name: "interview_invite_id" })
|
|
5426
5617
|
], AIInterview.prototype, "interviewInvite", 2);
|
|
5427
5618
|
__decorateClass([
|
|
5428
|
-
(0,
|
|
5429
|
-
(0,
|
|
5619
|
+
(0, import_typeorm50.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5620
|
+
(0, import_typeorm50.JoinColumn)({ name: "candidate_id" })
|
|
5430
5621
|
], AIInterview.prototype, "candidate", 2);
|
|
5431
5622
|
__decorateClass([
|
|
5432
|
-
(0,
|
|
5433
|
-
(0,
|
|
5623
|
+
(0, import_typeorm50.ManyToOne)(() => Job, { onDelete: "CASCADE" }),
|
|
5624
|
+
(0, import_typeorm50.JoinColumn)({ name: "job_id" })
|
|
5434
5625
|
], AIInterview.prototype, "job", 2);
|
|
5435
5626
|
AIInterview = __decorateClass([
|
|
5436
|
-
(0,
|
|
5627
|
+
(0, import_typeorm50.Entity)("ai_interviews")
|
|
5437
5628
|
], AIInterview);
|
|
5438
5629
|
|
|
5439
5630
|
// src/entities/plan.entity.ts
|
|
5440
|
-
var
|
|
5631
|
+
var import_typeorm52 = require("typeorm");
|
|
5441
5632
|
|
|
5442
5633
|
// src/entities/feature.entity.ts
|
|
5443
|
-
var
|
|
5634
|
+
var import_typeorm51 = require("typeorm");
|
|
5444
5635
|
var Feature = class extends BaseEntity {
|
|
5445
5636
|
};
|
|
5446
5637
|
__decorateClass([
|
|
5447
|
-
(0,
|
|
5638
|
+
(0, import_typeorm51.Column)({ name: "name", type: "varchar", unique: true })
|
|
5448
5639
|
], Feature.prototype, "name", 2);
|
|
5449
5640
|
__decorateClass([
|
|
5450
|
-
(0,
|
|
5641
|
+
(0, import_typeorm51.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
5451
5642
|
], Feature.prototype, "plans", 2);
|
|
5452
5643
|
Feature = __decorateClass([
|
|
5453
|
-
(0,
|
|
5644
|
+
(0, import_typeorm51.Entity)("features")
|
|
5454
5645
|
], Feature);
|
|
5455
5646
|
|
|
5456
5647
|
// src/entities/plan.entity.ts
|
|
5457
5648
|
var Plan = class extends BaseEntity {
|
|
5458
5649
|
};
|
|
5459
5650
|
__decorateClass([
|
|
5460
|
-
(0,
|
|
5651
|
+
(0, import_typeorm52.Column)({ name: "name", type: "varchar", unique: true })
|
|
5461
5652
|
], Plan.prototype, "name", 2);
|
|
5462
5653
|
__decorateClass([
|
|
5463
|
-
(0,
|
|
5654
|
+
(0, import_typeorm52.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5464
5655
|
], Plan.prototype, "description", 2);
|
|
5465
5656
|
__decorateClass([
|
|
5466
|
-
(0,
|
|
5657
|
+
(0, import_typeorm52.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5467
5658
|
], Plan.prototype, "price", 2);
|
|
5468
5659
|
__decorateClass([
|
|
5469
|
-
(0,
|
|
5660
|
+
(0, import_typeorm52.Column)({ name: "billing_period", type: "varchar" })
|
|
5470
5661
|
], Plan.prototype, "billingPeriod", 2);
|
|
5471
5662
|
__decorateClass([
|
|
5472
|
-
(0,
|
|
5663
|
+
(0, import_typeorm52.Column)({ name: "is_current", type: "boolean", default: false })
|
|
5473
5664
|
], Plan.prototype, "isCurrent", 2);
|
|
5474
5665
|
__decorateClass([
|
|
5475
|
-
(0,
|
|
5476
|
-
(0,
|
|
5666
|
+
(0, import_typeorm52.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5667
|
+
(0, import_typeorm52.JoinTable)()
|
|
5477
5668
|
], Plan.prototype, "features", 2);
|
|
5478
5669
|
Plan = __decorateClass([
|
|
5479
|
-
(0,
|
|
5670
|
+
(0, import_typeorm52.Entity)("plans")
|
|
5480
5671
|
], Plan);
|
|
5481
5672
|
|
|
5482
5673
|
// src/entities/cms.entity.ts
|
|
5483
|
-
var
|
|
5674
|
+
var import_typeorm53 = require("typeorm");
|
|
5484
5675
|
var Cms = class extends BaseEntity {
|
|
5485
5676
|
};
|
|
5486
5677
|
__decorateClass([
|
|
5487
|
-
(0,
|
|
5678
|
+
(0, import_typeorm53.Column)({ name: "title", type: "varchar", nullable: true })
|
|
5488
5679
|
], Cms.prototype, "title", 2);
|
|
5489
5680
|
__decorateClass([
|
|
5490
|
-
(0,
|
|
5681
|
+
(0, import_typeorm53.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5491
5682
|
], Cms.prototype, "slug", 2);
|
|
5492
5683
|
__decorateClass([
|
|
5493
|
-
(0,
|
|
5684
|
+
(0, import_typeorm53.Column)({ name: "content", type: "varchar", nullable: true })
|
|
5494
5685
|
], Cms.prototype, "content", 2);
|
|
5495
5686
|
__decorateClass([
|
|
5496
|
-
(0,
|
|
5687
|
+
(0, import_typeorm53.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5497
5688
|
], Cms.prototype, "isActive", 2);
|
|
5498
5689
|
Cms = __decorateClass([
|
|
5499
|
-
(0,
|
|
5690
|
+
(0, import_typeorm53.Entity)("cms")
|
|
5500
5691
|
], Cms);
|
|
5501
5692
|
|
|
5502
5693
|
// src/entities/lead.entity.ts
|
|
5503
|
-
var
|
|
5694
|
+
var import_typeorm54 = require("typeorm");
|
|
5504
5695
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5505
5696
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
5506
5697
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -5509,22 +5700,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5509
5700
|
var Lead = class extends BaseEntity {
|
|
5510
5701
|
};
|
|
5511
5702
|
__decorateClass([
|
|
5512
|
-
(0,
|
|
5703
|
+
(0, import_typeorm54.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5513
5704
|
], Lead.prototype, "name", 2);
|
|
5514
5705
|
__decorateClass([
|
|
5515
|
-
(0,
|
|
5706
|
+
(0, import_typeorm54.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5516
5707
|
], Lead.prototype, "mobileCode", 2);
|
|
5517
5708
|
__decorateClass([
|
|
5518
|
-
(0,
|
|
5709
|
+
(0, import_typeorm54.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5519
5710
|
], Lead.prototype, "mobile", 2);
|
|
5520
5711
|
__decorateClass([
|
|
5521
|
-
(0,
|
|
5712
|
+
(0, import_typeorm54.Column)({ name: "email", type: "varchar", nullable: true })
|
|
5522
5713
|
], Lead.prototype, "email", 2);
|
|
5523
5714
|
__decorateClass([
|
|
5524
|
-
(0,
|
|
5715
|
+
(0, import_typeorm54.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5525
5716
|
], Lead.prototype, "description", 2);
|
|
5526
5717
|
__decorateClass([
|
|
5527
|
-
(0,
|
|
5718
|
+
(0, import_typeorm54.Column)({
|
|
5528
5719
|
name: "category",
|
|
5529
5720
|
type: "enum",
|
|
5530
5721
|
enum: CategoryEmum,
|
|
@@ -5532,129 +5723,129 @@ __decorateClass([
|
|
|
5532
5723
|
})
|
|
5533
5724
|
], Lead.prototype, "category", 2);
|
|
5534
5725
|
Lead = __decorateClass([
|
|
5535
|
-
(0,
|
|
5726
|
+
(0, import_typeorm54.Entity)("leads")
|
|
5536
5727
|
], Lead);
|
|
5537
5728
|
|
|
5538
5729
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
5539
|
-
var
|
|
5730
|
+
var import_typeorm55 = require("typeorm");
|
|
5540
5731
|
var JobFreelancerRecommendation = class {
|
|
5541
5732
|
};
|
|
5542
5733
|
__decorateClass([
|
|
5543
|
-
(0,
|
|
5734
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_id" })
|
|
5544
5735
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
5545
5736
|
__decorateClass([
|
|
5546
|
-
(0,
|
|
5737
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_uuid" })
|
|
5547
5738
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
5548
5739
|
__decorateClass([
|
|
5549
|
-
(0,
|
|
5740
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_unique_id" })
|
|
5550
5741
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
5551
5742
|
__decorateClass([
|
|
5552
|
-
(0,
|
|
5743
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_role" })
|
|
5553
5744
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
5554
5745
|
__decorateClass([
|
|
5555
|
-
(0,
|
|
5746
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_openings" })
|
|
5556
5747
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
5557
5748
|
__decorateClass([
|
|
5558
|
-
(0,
|
|
5749
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_location" })
|
|
5559
5750
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
5560
5751
|
__decorateClass([
|
|
5561
|
-
(0,
|
|
5752
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_currency" })
|
|
5562
5753
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
5563
5754
|
__decorateClass([
|
|
5564
|
-
(0,
|
|
5755
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_salary_from" })
|
|
5565
5756
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
5566
5757
|
__decorateClass([
|
|
5567
|
-
(0,
|
|
5758
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_salary_to" })
|
|
5568
5759
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
5569
5760
|
__decorateClass([
|
|
5570
|
-
(0,
|
|
5761
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_employment_type" })
|
|
5571
5762
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
5572
5763
|
__decorateClass([
|
|
5573
|
-
(0,
|
|
5764
|
+
(0, import_typeorm55.ViewColumn)({ name: "application_received" })
|
|
5574
5765
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
5575
5766
|
__decorateClass([
|
|
5576
|
-
(0,
|
|
5767
|
+
(0, import_typeorm55.ViewColumn)({ name: "job_posted_at" })
|
|
5577
5768
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
5578
5769
|
__decorateClass([
|
|
5579
|
-
(0,
|
|
5770
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_id" })
|
|
5580
5771
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5581
5772
|
__decorateClass([
|
|
5582
|
-
(0,
|
|
5773
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_uuid" })
|
|
5583
5774
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5584
5775
|
__decorateClass([
|
|
5585
|
-
(0,
|
|
5776
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5586
5777
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5587
5778
|
__decorateClass([
|
|
5588
|
-
(0,
|
|
5779
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_first_name" })
|
|
5589
5780
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5590
5781
|
__decorateClass([
|
|
5591
|
-
(0,
|
|
5782
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_last_name" })
|
|
5592
5783
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5593
5784
|
__decorateClass([
|
|
5594
|
-
(0,
|
|
5785
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_email" })
|
|
5595
5786
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5596
5787
|
__decorateClass([
|
|
5597
|
-
(0,
|
|
5788
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5598
5789
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5599
5790
|
__decorateClass([
|
|
5600
|
-
(0,
|
|
5791
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_is_social" })
|
|
5601
5792
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5602
5793
|
__decorateClass([
|
|
5603
|
-
(0,
|
|
5794
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_created_at" })
|
|
5604
5795
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5605
5796
|
__decorateClass([
|
|
5606
|
-
(0,
|
|
5797
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_designation" })
|
|
5607
5798
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5608
5799
|
__decorateClass([
|
|
5609
|
-
(0,
|
|
5800
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_experience" })
|
|
5610
5801
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5611
5802
|
__decorateClass([
|
|
5612
|
-
(0,
|
|
5803
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5613
5804
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5614
5805
|
__decorateClass([
|
|
5615
|
-
(0,
|
|
5806
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5616
5807
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5617
5808
|
__decorateClass([
|
|
5618
|
-
(0,
|
|
5809
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_country_name" })
|
|
5619
5810
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5620
5811
|
__decorateClass([
|
|
5621
|
-
(0,
|
|
5812
|
+
(0, import_typeorm55.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5622
5813
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5623
5814
|
__decorateClass([
|
|
5624
|
-
(0,
|
|
5815
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_id" })
|
|
5625
5816
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
5626
5817
|
__decorateClass([
|
|
5627
|
-
(0,
|
|
5818
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_uuid" })
|
|
5628
5819
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5629
5820
|
__decorateClass([
|
|
5630
|
-
(0,
|
|
5821
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_first_name" })
|
|
5631
5822
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
5632
5823
|
__decorateClass([
|
|
5633
|
-
(0,
|
|
5824
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_last_name" })
|
|
5634
5825
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
5635
5826
|
__decorateClass([
|
|
5636
|
-
(0,
|
|
5827
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_email" })
|
|
5637
5828
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
5638
5829
|
__decorateClass([
|
|
5639
|
-
(0,
|
|
5830
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_company_logo" })
|
|
5640
5831
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
5641
5832
|
__decorateClass([
|
|
5642
|
-
(0,
|
|
5833
|
+
(0, import_typeorm55.ViewColumn)({ name: "client_company_name" })
|
|
5643
5834
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
5644
5835
|
__decorateClass([
|
|
5645
|
-
(0,
|
|
5836
|
+
(0, import_typeorm55.ViewColumn)({ name: "matching_skills" })
|
|
5646
5837
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5647
5838
|
__decorateClass([
|
|
5648
|
-
(0,
|
|
5839
|
+
(0, import_typeorm55.ViewColumn)({ name: "matching_skills_count" })
|
|
5649
5840
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5650
5841
|
__decorateClass([
|
|
5651
|
-
(0,
|
|
5842
|
+
(0, import_typeorm55.ViewColumn)({ name: "required_skills" })
|
|
5652
5843
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5653
5844
|
__decorateClass([
|
|
5654
|
-
(0,
|
|
5845
|
+
(0, import_typeorm55.ViewColumn)({ name: "required_skills_count" })
|
|
5655
5846
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5656
5847
|
JobFreelancerRecommendation = __decorateClass([
|
|
5657
|
-
(0,
|
|
5848
|
+
(0, import_typeorm55.ViewEntity)({
|
|
5658
5849
|
name: "job_freelancer_recommendations",
|
|
5659
5850
|
materialized: true,
|
|
5660
5851
|
synchronize: false
|
|
@@ -5663,32 +5854,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
5663
5854
|
], JobFreelancerRecommendation);
|
|
5664
5855
|
|
|
5665
5856
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
5666
|
-
var
|
|
5857
|
+
var import_typeorm56 = require("typeorm");
|
|
5667
5858
|
var JobFreelancerRecommendationV2 = class {
|
|
5668
5859
|
};
|
|
5669
5860
|
__decorateClass([
|
|
5670
|
-
(0,
|
|
5861
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_id" })
|
|
5671
5862
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
5672
5863
|
__decorateClass([
|
|
5673
|
-
(0,
|
|
5864
|
+
(0, import_typeorm56.ViewColumn)({ name: "job_owner_id" })
|
|
5674
5865
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
5675
5866
|
__decorateClass([
|
|
5676
|
-
(0,
|
|
5867
|
+
(0, import_typeorm56.ViewColumn)({ name: "freelancer_id" })
|
|
5677
5868
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
5678
5869
|
__decorateClass([
|
|
5679
|
-
(0,
|
|
5870
|
+
(0, import_typeorm56.ViewColumn)({ name: "matching_skills" })
|
|
5680
5871
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
5681
5872
|
__decorateClass([
|
|
5682
|
-
(0,
|
|
5873
|
+
(0, import_typeorm56.ViewColumn)({ name: "matching_skills_count" })
|
|
5683
5874
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
5684
5875
|
__decorateClass([
|
|
5685
|
-
(0,
|
|
5876
|
+
(0, import_typeorm56.ViewColumn)({ name: "required_skills" })
|
|
5686
5877
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
5687
5878
|
__decorateClass([
|
|
5688
|
-
(0,
|
|
5879
|
+
(0, import_typeorm56.ViewColumn)({ name: "required_skills_count" })
|
|
5689
5880
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
5690
5881
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
5691
|
-
(0,
|
|
5882
|
+
(0, import_typeorm56.ViewEntity)({
|
|
5692
5883
|
name: "job_freelancer_recommendations_v2",
|
|
5693
5884
|
materialized: true,
|
|
5694
5885
|
synchronize: false
|
|
@@ -5697,74 +5888,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
5697
5888
|
], JobFreelancerRecommendationV2);
|
|
5698
5889
|
|
|
5699
5890
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
5700
|
-
var
|
|
5891
|
+
var import_typeorm57 = require("typeorm");
|
|
5701
5892
|
var ClientFreelancerRecommendation = class {
|
|
5702
5893
|
};
|
|
5703
5894
|
__decorateClass([
|
|
5704
|
-
(0,
|
|
5895
|
+
(0, import_typeorm57.ViewColumn)({ name: "client_id" })
|
|
5705
5896
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
5706
5897
|
__decorateClass([
|
|
5707
|
-
(0,
|
|
5898
|
+
(0, import_typeorm57.ViewColumn)({ name: "client_uuid" })
|
|
5708
5899
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5709
5900
|
__decorateClass([
|
|
5710
|
-
(0,
|
|
5901
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_id" })
|
|
5711
5902
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5712
5903
|
__decorateClass([
|
|
5713
|
-
(0,
|
|
5904
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_uuid" })
|
|
5714
5905
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5715
5906
|
__decorateClass([
|
|
5716
|
-
(0,
|
|
5907
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5717
5908
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5718
5909
|
__decorateClass([
|
|
5719
|
-
(0,
|
|
5910
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_first_name" })
|
|
5720
5911
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5721
5912
|
__decorateClass([
|
|
5722
|
-
(0,
|
|
5913
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_last_name" })
|
|
5723
5914
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5724
5915
|
__decorateClass([
|
|
5725
|
-
(0,
|
|
5916
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_email" })
|
|
5726
5917
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5727
5918
|
__decorateClass([
|
|
5728
|
-
(0,
|
|
5919
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5729
5920
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5730
5921
|
__decorateClass([
|
|
5731
|
-
(0,
|
|
5922
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_is_social" })
|
|
5732
5923
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5733
5924
|
__decorateClass([
|
|
5734
|
-
(0,
|
|
5925
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_created_at" })
|
|
5735
5926
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5736
5927
|
__decorateClass([
|
|
5737
|
-
(0,
|
|
5928
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_designation" })
|
|
5738
5929
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5739
5930
|
__decorateClass([
|
|
5740
|
-
(0,
|
|
5931
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_experience" })
|
|
5741
5932
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5742
5933
|
__decorateClass([
|
|
5743
|
-
(0,
|
|
5934
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5744
5935
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5745
5936
|
__decorateClass([
|
|
5746
|
-
(0,
|
|
5937
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5747
5938
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5748
5939
|
__decorateClass([
|
|
5749
|
-
(0,
|
|
5940
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_country_name" })
|
|
5750
5941
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5751
5942
|
__decorateClass([
|
|
5752
|
-
(0,
|
|
5943
|
+
(0, import_typeorm57.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5753
5944
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5754
5945
|
__decorateClass([
|
|
5755
|
-
(0,
|
|
5946
|
+
(0, import_typeorm57.ViewColumn)({ name: "matching_skills" })
|
|
5756
5947
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5757
5948
|
__decorateClass([
|
|
5758
|
-
(0,
|
|
5949
|
+
(0, import_typeorm57.ViewColumn)({ name: "matching_skills_count" })
|
|
5759
5950
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5760
5951
|
__decorateClass([
|
|
5761
|
-
(0,
|
|
5952
|
+
(0, import_typeorm57.ViewColumn)({ name: "required_skills" })
|
|
5762
5953
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5763
5954
|
__decorateClass([
|
|
5764
|
-
(0,
|
|
5955
|
+
(0, import_typeorm57.ViewColumn)({ name: "required_skills_count" })
|
|
5765
5956
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5766
5957
|
ClientFreelancerRecommendation = __decorateClass([
|
|
5767
|
-
(0,
|
|
5958
|
+
(0, import_typeorm57.ViewEntity)({
|
|
5768
5959
|
name: "client_freelancer_recommendations",
|
|
5769
5960
|
materialized: true,
|
|
5770
5961
|
synchronize: false
|
|
@@ -5773,7 +5964,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
5773
5964
|
], ClientFreelancerRecommendation);
|
|
5774
5965
|
|
|
5775
5966
|
// src/entities/commission.entity.ts
|
|
5776
|
-
var
|
|
5967
|
+
var import_typeorm58 = require("typeorm");
|
|
5777
5968
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
5778
5969
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
5779
5970
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -5782,7 +5973,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
5782
5973
|
var Commission = class extends BaseEntity {
|
|
5783
5974
|
};
|
|
5784
5975
|
__decorateClass([
|
|
5785
|
-
(0,
|
|
5976
|
+
(0, import_typeorm58.Column)({
|
|
5786
5977
|
name: "freelancer_commission_type",
|
|
5787
5978
|
type: "enum",
|
|
5788
5979
|
enum: CommissionTypeEnum,
|
|
@@ -5790,10 +5981,10 @@ __decorateClass([
|
|
|
5790
5981
|
})
|
|
5791
5982
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
5792
5983
|
__decorateClass([
|
|
5793
|
-
(0,
|
|
5984
|
+
(0, import_typeorm58.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
5794
5985
|
], Commission.prototype, "freelancerCommission", 2);
|
|
5795
5986
|
__decorateClass([
|
|
5796
|
-
(0,
|
|
5987
|
+
(0, import_typeorm58.Column)({
|
|
5797
5988
|
name: "client_commission_type",
|
|
5798
5989
|
type: "enum",
|
|
5799
5990
|
enum: CommissionTypeEnum,
|
|
@@ -5801,10 +5992,10 @@ __decorateClass([
|
|
|
5801
5992
|
})
|
|
5802
5993
|
], Commission.prototype, "clientCommissionType", 2);
|
|
5803
5994
|
__decorateClass([
|
|
5804
|
-
(0,
|
|
5995
|
+
(0, import_typeorm58.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
5805
5996
|
], Commission.prototype, "clientCommission", 2);
|
|
5806
5997
|
Commission = __decorateClass([
|
|
5807
|
-
(0,
|
|
5998
|
+
(0, import_typeorm58.Entity)("commissions")
|
|
5808
5999
|
], Commission);
|
|
5809
6000
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5810
6001
|
0 && (module.exports = {
|