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