@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.mjs
CHANGED
|
@@ -755,7 +755,8 @@ __decorateClass([
|
|
|
755
755
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
756
756
|
|
|
757
757
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
758
|
-
import {
|
|
758
|
+
import { Transform } from "class-transformer";
|
|
759
|
+
import { IsNotEmpty as IsNotEmpty23, IsOptional as IsOptional5, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength5 } from "class-validator";
|
|
759
760
|
var UpdateSubAdminDto = class {
|
|
760
761
|
};
|
|
761
762
|
__decorateClass([
|
|
@@ -777,7 +778,13 @@ __decorateClass([
|
|
|
777
778
|
IsNotEmpty23({ message: "Please enter mobile number." })
|
|
778
779
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
779
780
|
__decorateClass([
|
|
780
|
-
|
|
781
|
+
IsOptional5(),
|
|
782
|
+
Transform(({ value }) => value === null || value === "" ? void 0 : value),
|
|
783
|
+
MinLength5(6, { message: "Password must be at least 6 characters." }),
|
|
784
|
+
MaxLength5(32, { message: "Password must not exceed 32 characters." }),
|
|
785
|
+
Matches5(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
786
|
+
message: "Password must include letters, numbers and symbols."
|
|
787
|
+
})
|
|
781
788
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
782
789
|
__decorateClass([
|
|
783
790
|
IsNotEmpty23({ message: "Please Select Roles." })
|
|
@@ -800,7 +807,7 @@ import {
|
|
|
800
807
|
IsEmail as IsEmail4,
|
|
801
808
|
Length as Length2,
|
|
802
809
|
IsUrl as IsUrl2,
|
|
803
|
-
IsOptional as
|
|
810
|
+
IsOptional as IsOptional6,
|
|
804
811
|
ValidateIf as ValidateIf2
|
|
805
812
|
} from "class-validator";
|
|
806
813
|
var UpdateCompanyProfileDto = class {
|
|
@@ -813,7 +820,7 @@ __decorateClass([
|
|
|
813
820
|
})
|
|
814
821
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
815
822
|
__decorateClass([
|
|
816
|
-
|
|
823
|
+
IsOptional6(),
|
|
817
824
|
ValidateIf2((o) => o.webSite !== ""),
|
|
818
825
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
819
826
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
@@ -838,23 +845,23 @@ __decorateClass([
|
|
|
838
845
|
IsEmail4()
|
|
839
846
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
840
847
|
__decorateClass([
|
|
841
|
-
|
|
848
|
+
IsOptional6(),
|
|
842
849
|
IsString9({ message: "About company must be a string." })
|
|
843
850
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
844
851
|
|
|
845
852
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
846
853
|
import {
|
|
847
854
|
IsString as IsString10,
|
|
848
|
-
MinLength as
|
|
849
|
-
Matches as
|
|
855
|
+
MinLength as MinLength6,
|
|
856
|
+
Matches as Matches7,
|
|
850
857
|
IsNotEmpty as IsNotEmpty25
|
|
851
858
|
} from "class-validator";
|
|
852
859
|
var ClientChangePasswordDto = class {
|
|
853
860
|
};
|
|
854
861
|
__decorateClass([
|
|
855
862
|
IsString10(),
|
|
856
|
-
|
|
857
|
-
|
|
863
|
+
MinLength6(8, { message: "Password must be at least 8 characters long." }),
|
|
864
|
+
Matches7(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
858
865
|
message: "Password must contain at least one uppercase letter and one number."
|
|
859
866
|
})
|
|
860
867
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
@@ -874,7 +881,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
874
881
|
// src/modules/question/dto/create-question.dto.ts
|
|
875
882
|
import {
|
|
876
883
|
IsNotEmpty as IsNotEmpty26,
|
|
877
|
-
IsOptional as
|
|
884
|
+
IsOptional as IsOptional7,
|
|
878
885
|
IsBoolean as IsBoolean2
|
|
879
886
|
} from "class-validator";
|
|
880
887
|
var CreateQuestionDto = class {
|
|
@@ -892,7 +899,7 @@ __decorateClass([
|
|
|
892
899
|
IsNotEmpty26({ message: "Please enter options." })
|
|
893
900
|
], CreateQuestionDto.prototype, "options", 2);
|
|
894
901
|
__decorateClass([
|
|
895
|
-
|
|
902
|
+
IsOptional7(),
|
|
896
903
|
IsBoolean2({ message: "Whether the question status active" })
|
|
897
904
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
898
905
|
|
|
@@ -928,7 +935,7 @@ import {
|
|
|
928
935
|
IsArray,
|
|
929
936
|
ArrayNotEmpty,
|
|
930
937
|
IsNumber,
|
|
931
|
-
IsOptional as
|
|
938
|
+
IsOptional as IsOptional8,
|
|
932
939
|
IsEnum as IsEnum8,
|
|
933
940
|
Min,
|
|
934
941
|
ValidateIf as ValidateIf3
|
|
@@ -952,7 +959,7 @@ var JobBasicInformationDto = class {
|
|
|
952
959
|
}
|
|
953
960
|
};
|
|
954
961
|
__decorateClass([
|
|
955
|
-
|
|
962
|
+
IsOptional8(),
|
|
956
963
|
Type(() => Boolean)
|
|
957
964
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
958
965
|
__decorateClass([
|
|
@@ -960,7 +967,7 @@ __decorateClass([
|
|
|
960
967
|
IsString11({ message: "Job role must be a string" })
|
|
961
968
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
962
969
|
__decorateClass([
|
|
963
|
-
|
|
970
|
+
IsOptional8(),
|
|
964
971
|
IsString11({ message: "Note must be a string" })
|
|
965
972
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
966
973
|
__decorateClass([
|
|
@@ -1036,12 +1043,12 @@ __decorateClass([
|
|
|
1036
1043
|
__decorateClass([
|
|
1037
1044
|
ValidateIf3((o) => !o.isDraft),
|
|
1038
1045
|
IsString11({ message: "Onboarding TAT must be a string" }),
|
|
1039
|
-
|
|
1046
|
+
IsOptional8()
|
|
1040
1047
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1041
1048
|
__decorateClass([
|
|
1042
1049
|
ValidateIf3((o) => !o.isDraft),
|
|
1043
1050
|
IsString11({ message: "Candidate communication skills must be a string" }),
|
|
1044
|
-
|
|
1051
|
+
IsOptional8()
|
|
1045
1052
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1046
1053
|
__decorateClass([
|
|
1047
1054
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1060,23 +1067,23 @@ __decorateClass([
|
|
|
1060
1067
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1061
1068
|
|
|
1062
1069
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1063
|
-
import { IsOptional as
|
|
1070
|
+
import { IsOptional as IsOptional9, IsString as IsString12, MaxLength as MaxLength6 } from "class-validator";
|
|
1064
1071
|
var JobAdditionalCommentDto = class {
|
|
1065
1072
|
};
|
|
1066
1073
|
__decorateClass([
|
|
1067
|
-
|
|
1074
|
+
IsOptional9(),
|
|
1068
1075
|
IsString12({ message: "Additional comment must be a string" }),
|
|
1069
|
-
|
|
1076
|
+
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1070
1077
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1071
1078
|
|
|
1072
1079
|
// src/modules/job/dto/job-description.dto.ts
|
|
1073
|
-
import { IsString as IsString13, IsNotEmpty as IsNotEmpty28, MaxLength as
|
|
1080
|
+
import { IsString as IsString13, IsNotEmpty as IsNotEmpty28, MaxLength as MaxLength7 } from "class-validator";
|
|
1074
1081
|
var JobDescriptionDto = class {
|
|
1075
1082
|
};
|
|
1076
1083
|
__decorateClass([
|
|
1077
1084
|
IsNotEmpty28({ message: "Please enter job description" }),
|
|
1078
1085
|
IsString13({ message: "Description must be a string" }),
|
|
1079
|
-
|
|
1086
|
+
MaxLength7(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1080
1087
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1081
1088
|
|
|
1082
1089
|
// src/modules/job/dto/job-status.dto.ts
|
|
@@ -1124,9 +1131,9 @@ var PROFILE_PATTERN = {
|
|
|
1124
1131
|
import {
|
|
1125
1132
|
IsString as IsString14,
|
|
1126
1133
|
IsNotEmpty as IsNotEmpty30,
|
|
1127
|
-
MaxLength as
|
|
1128
|
-
MinLength as
|
|
1129
|
-
Matches as
|
|
1134
|
+
MaxLength as MaxLength8,
|
|
1135
|
+
MinLength as MinLength7,
|
|
1136
|
+
Matches as Matches8
|
|
1130
1137
|
} from "class-validator";
|
|
1131
1138
|
var FreelancerChangePasswordDto = class {
|
|
1132
1139
|
};
|
|
@@ -1137,16 +1144,16 @@ __decorateClass([
|
|
|
1137
1144
|
__decorateClass([
|
|
1138
1145
|
IsNotEmpty30({ message: "Please enter New Password." }),
|
|
1139
1146
|
IsString14(),
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1147
|
+
MinLength7(6),
|
|
1148
|
+
MaxLength8(32),
|
|
1149
|
+
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1143
1150
|
message: "New Password must include letters, numbers and symbols."
|
|
1144
1151
|
})
|
|
1145
1152
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1146
1153
|
|
|
1147
1154
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1148
1155
|
import {
|
|
1149
|
-
IsOptional as
|
|
1156
|
+
IsOptional as IsOptional10,
|
|
1150
1157
|
IsString as IsString15,
|
|
1151
1158
|
IsEmail as IsEmail5,
|
|
1152
1159
|
IsNumber as IsNumber2,
|
|
@@ -1196,7 +1203,7 @@ __decorateClass([
|
|
|
1196
1203
|
IsString15({ message: "Please enter valid mobile number." })
|
|
1197
1204
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1198
1205
|
__decorateClass([
|
|
1199
|
-
|
|
1206
|
+
IsOptional10(),
|
|
1200
1207
|
IsNumber2()
|
|
1201
1208
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1202
1209
|
__decorateClass([
|
|
@@ -1224,35 +1231,35 @@ __decorateClass([
|
|
|
1224
1231
|
})
|
|
1225
1232
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1226
1233
|
__decorateClass([
|
|
1227
|
-
|
|
1234
|
+
IsOptional10(),
|
|
1228
1235
|
IsString15()
|
|
1229
1236
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1230
1237
|
__decorateClass([
|
|
1231
|
-
|
|
1238
|
+
IsOptional10(),
|
|
1232
1239
|
IsString15()
|
|
1233
1240
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1234
1241
|
__decorateClass([
|
|
1235
|
-
|
|
1242
|
+
IsOptional10(),
|
|
1236
1243
|
IsString15()
|
|
1237
1244
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1238
1245
|
__decorateClass([
|
|
1239
|
-
|
|
1246
|
+
IsOptional10(),
|
|
1240
1247
|
IsString15()
|
|
1241
1248
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1242
1249
|
__decorateClass([
|
|
1243
|
-
|
|
1250
|
+
IsOptional10(),
|
|
1244
1251
|
IsString15()
|
|
1245
1252
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1246
1253
|
__decorateClass([
|
|
1247
|
-
|
|
1254
|
+
IsOptional10(),
|
|
1248
1255
|
IsString15()
|
|
1249
1256
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1250
1257
|
__decorateClass([
|
|
1251
|
-
|
|
1258
|
+
IsOptional10(),
|
|
1252
1259
|
IsString15()
|
|
1253
1260
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1254
1261
|
__decorateClass([
|
|
1255
|
-
|
|
1262
|
+
IsOptional10(),
|
|
1256
1263
|
IsString15()
|
|
1257
1264
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1258
1265
|
|
|
@@ -1267,7 +1274,7 @@ var BANK_PATTERN = {
|
|
|
1267
1274
|
import {
|
|
1268
1275
|
IsEnum as IsEnum11,
|
|
1269
1276
|
IsNotEmpty as IsNotEmpty32,
|
|
1270
|
-
IsOptional as
|
|
1277
|
+
IsOptional as IsOptional11,
|
|
1271
1278
|
ValidateIf as ValidateIf4
|
|
1272
1279
|
} from "class-validator";
|
|
1273
1280
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1287,7 +1294,7 @@ __decorateClass([
|
|
|
1287
1294
|
IsNotEmpty32({ message: "Please enter Email." })
|
|
1288
1295
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1289
1296
|
__decorateClass([
|
|
1290
|
-
|
|
1297
|
+
IsOptional11()
|
|
1291
1298
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1292
1299
|
__decorateClass([
|
|
1293
1300
|
IsNotEmpty32({ message: "Please enter Account Number." })
|
|
@@ -1315,7 +1322,7 @@ __decorateClass([
|
|
|
1315
1322
|
IsNotEmpty32({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1316
1323
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1317
1324
|
__decorateClass([
|
|
1318
|
-
|
|
1325
|
+
IsOptional11()
|
|
1319
1326
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1320
1327
|
__decorateClass([
|
|
1321
1328
|
IsEnum11(BankAccountScope, {
|
|
@@ -1377,24 +1384,24 @@ import {
|
|
|
1377
1384
|
IsEnum as IsEnum13,
|
|
1378
1385
|
IsInt,
|
|
1379
1386
|
IsNotEmpty as IsNotEmpty33,
|
|
1380
|
-
IsOptional as
|
|
1387
|
+
IsOptional as IsOptional12,
|
|
1381
1388
|
IsString as IsString16,
|
|
1382
1389
|
Max,
|
|
1383
1390
|
Min as Min2
|
|
1384
1391
|
} from "class-validator";
|
|
1385
1392
|
|
|
1386
1393
|
// src/entities/rating.entity.ts
|
|
1387
|
-
import { Entity as
|
|
1394
|
+
import { Entity as Entity44, Column as Column45, ManyToOne as ManyToOne39, JoinColumn as JoinColumn39, Index as Index38 } from "typeorm";
|
|
1388
1395
|
|
|
1389
1396
|
// src/entities/user.entity.ts
|
|
1390
1397
|
import {
|
|
1391
|
-
Entity as
|
|
1392
|
-
Column as
|
|
1398
|
+
Entity as Entity43,
|
|
1399
|
+
Column as Column44,
|
|
1393
1400
|
OneToMany as OneToMany14,
|
|
1394
|
-
OneToOne,
|
|
1395
|
-
Index as
|
|
1396
|
-
ManyToOne as
|
|
1397
|
-
JoinColumn as
|
|
1401
|
+
OneToOne as OneToOne3,
|
|
1402
|
+
Index as Index37,
|
|
1403
|
+
ManyToOne as ManyToOne38,
|
|
1404
|
+
JoinColumn as JoinColumn38
|
|
1398
1405
|
} from "typeorm";
|
|
1399
1406
|
|
|
1400
1407
|
// src/entities/base.entity.ts
|
|
@@ -1987,6 +1994,9 @@ __decorateClass([
|
|
|
1987
1994
|
__decorateClass([
|
|
1988
1995
|
Column8({ name: "is_expertshub_verified", type: "boolean", default: false })
|
|
1989
1996
|
], FreelancerProfile.prototype, "isExpertshubVerified", 2);
|
|
1997
|
+
__decorateClass([
|
|
1998
|
+
Column8({ name: "is_followed_on_linkedin", type: "boolean", default: false })
|
|
1999
|
+
], FreelancerProfile.prototype, "isFollowedOnLinkedIn", 2);
|
|
1990
2000
|
FreelancerProfile = __decorateClass([
|
|
1991
2001
|
Entity7("freelancer_profiles")
|
|
1992
2002
|
], FreelancerProfile);
|
|
@@ -3638,6 +3648,189 @@ FreelancerResume = __decorateClass([
|
|
|
3638
3648
|
Entity40("freelancer_resumes")
|
|
3639
3649
|
], FreelancerResume);
|
|
3640
3650
|
|
|
3651
|
+
// src/entities/calendly-meeting.entity.ts
|
|
3652
|
+
import {
|
|
3653
|
+
Entity as Entity42,
|
|
3654
|
+
Column as Column43,
|
|
3655
|
+
Index as Index36,
|
|
3656
|
+
Unique,
|
|
3657
|
+
ManyToOne as ManyToOne37,
|
|
3658
|
+
JoinColumn as JoinColumn37,
|
|
3659
|
+
OneToOne as OneToOne2
|
|
3660
|
+
} from "typeorm";
|
|
3661
|
+
|
|
3662
|
+
// src/entities/freelancer-f2f-interview.entity.ts
|
|
3663
|
+
import {
|
|
3664
|
+
Entity as Entity41,
|
|
3665
|
+
Column as Column42,
|
|
3666
|
+
ManyToOne as ManyToOne36,
|
|
3667
|
+
JoinColumn as JoinColumn36,
|
|
3668
|
+
OneToOne
|
|
3669
|
+
} from "typeorm";
|
|
3670
|
+
var FreelancerF2FInterview = class extends BaseEntity {
|
|
3671
|
+
};
|
|
3672
|
+
__decorateClass([
|
|
3673
|
+
OneToOne(() => CalendlyMeeting),
|
|
3674
|
+
JoinColumn36({ name: "calendly_meeting_id" })
|
|
3675
|
+
], FreelancerF2FInterview.prototype, "calendlyMeeting", 2);
|
|
3676
|
+
__decorateClass([
|
|
3677
|
+
Column42({ name: "calendly_meeting_id", type: "integer" })
|
|
3678
|
+
], FreelancerF2FInterview.prototype, "calendlyMeetingId", 2);
|
|
3679
|
+
__decorateClass([
|
|
3680
|
+
ManyToOne36(() => User, (user) => user.clientF2FInterviews, { nullable: true }),
|
|
3681
|
+
JoinColumn36({ name: "client_id" })
|
|
3682
|
+
], FreelancerF2FInterview.prototype, "client", 2);
|
|
3683
|
+
__decorateClass([
|
|
3684
|
+
Column42({ name: "client_id", type: "integer", nullable: true })
|
|
3685
|
+
], FreelancerF2FInterview.prototype, "clientId", 2);
|
|
3686
|
+
__decorateClass([
|
|
3687
|
+
ManyToOne36(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
3688
|
+
JoinColumn36({ name: "freelancer_id" })
|
|
3689
|
+
], FreelancerF2FInterview.prototype, "freelancer", 2);
|
|
3690
|
+
__decorateClass([
|
|
3691
|
+
Column42({ name: "freelancer_id", type: "integer", nullable: true })
|
|
3692
|
+
], FreelancerF2FInterview.prototype, "freelancerId", 2);
|
|
3693
|
+
__decorateClass([
|
|
3694
|
+
Column42({ name: "zoom_link", type: "varchar", nullable: true })
|
|
3695
|
+
], FreelancerF2FInterview.prototype, "meetingZoomLink", 2);
|
|
3696
|
+
__decorateClass([
|
|
3697
|
+
Column42({ name: "meeting_id", type: "varchar", nullable: true })
|
|
3698
|
+
], FreelancerF2FInterview.prototype, "meetingId", 2);
|
|
3699
|
+
__decorateClass([
|
|
3700
|
+
Column42({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
3701
|
+
], FreelancerF2FInterview.prototype, "meetingPasscode", 2);
|
|
3702
|
+
__decorateClass([
|
|
3703
|
+
Column42({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
3704
|
+
], FreelancerF2FInterview.prototype, "rescheduleUrl", 2);
|
|
3705
|
+
__decorateClass([
|
|
3706
|
+
Column42({ name: "is_rescheduled", type: "boolean", default: false })
|
|
3707
|
+
], FreelancerF2FInterview.prototype, "isRescheduled", 2);
|
|
3708
|
+
__decorateClass([
|
|
3709
|
+
Column42({
|
|
3710
|
+
name: "status",
|
|
3711
|
+
type: "enum",
|
|
3712
|
+
enum: CalendlyMeetingStatus,
|
|
3713
|
+
default: "PENDING" /* PENDING */
|
|
3714
|
+
})
|
|
3715
|
+
], FreelancerF2FInterview.prototype, "status", 2);
|
|
3716
|
+
__decorateClass([
|
|
3717
|
+
Column42({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
3718
|
+
], FreelancerF2FInterview.prototype, "cancelledAt", 2);
|
|
3719
|
+
__decorateClass([
|
|
3720
|
+
Column42({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
3721
|
+
], FreelancerF2FInterview.prototype, "cancelReason", 2);
|
|
3722
|
+
__decorateClass([
|
|
3723
|
+
Column42({ name: "rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
3724
|
+
], FreelancerF2FInterview.prototype, "rescheduledAt", 2);
|
|
3725
|
+
__decorateClass([
|
|
3726
|
+
Column42({ name: "is_completed", type: "boolean", default: false })
|
|
3727
|
+
], FreelancerF2FInterview.prototype, "isCompleted", 2);
|
|
3728
|
+
__decorateClass([
|
|
3729
|
+
Column42({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
|
|
3730
|
+
], FreelancerF2FInterview.prototype, "meetingStartTime", 2);
|
|
3731
|
+
__decorateClass([
|
|
3732
|
+
Column42({ name: "meeting_end_time", type: "timestamp with time zone", nullable: true })
|
|
3733
|
+
], FreelancerF2FInterview.prototype, "meetingEndTime", 2);
|
|
3734
|
+
FreelancerF2FInterview = __decorateClass([
|
|
3735
|
+
Entity41("freelancer_f2f_interviews")
|
|
3736
|
+
], FreelancerF2FInterview);
|
|
3737
|
+
|
|
3738
|
+
// src/entities/calendly-meeting.entity.ts
|
|
3739
|
+
var CalendlyMeetingStatus = /* @__PURE__ */ ((CalendlyMeetingStatus2) => {
|
|
3740
|
+
CalendlyMeetingStatus2["PENDING"] = "PENDING";
|
|
3741
|
+
CalendlyMeetingStatus2["CONFIRMED"] = "CONFIRMED";
|
|
3742
|
+
CalendlyMeetingStatus2["CANCELED"] = "CANCELED";
|
|
3743
|
+
CalendlyMeetingStatus2["COMPLETED"] = "COMPLETED";
|
|
3744
|
+
return CalendlyMeetingStatus2;
|
|
3745
|
+
})(CalendlyMeetingStatus || {});
|
|
3746
|
+
var CalendlyMeeting = class extends BaseEntity {
|
|
3747
|
+
};
|
|
3748
|
+
__decorateClass([
|
|
3749
|
+
OneToOne2(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.calendlyMeeting)
|
|
3750
|
+
], CalendlyMeeting.prototype, "freelancerF2FInterview", 2);
|
|
3751
|
+
__decorateClass([
|
|
3752
|
+
ManyToOne37(() => User, (user) => user.calendlyMeetings, { nullable: true }),
|
|
3753
|
+
JoinColumn37({ name: "user_id" })
|
|
3754
|
+
], CalendlyMeeting.prototype, "user", 2);
|
|
3755
|
+
__decorateClass([
|
|
3756
|
+
Column43({ name: "user_id", type: "integer", nullable: true }),
|
|
3757
|
+
Index36()
|
|
3758
|
+
], CalendlyMeeting.prototype, "userId", 2);
|
|
3759
|
+
__decorateClass([
|
|
3760
|
+
Column43({ name: "calendly_event_id", type: "varchar", nullable: true, unique: true }),
|
|
3761
|
+
Index36()
|
|
3762
|
+
], CalendlyMeeting.prototype, "calendlyEventId", 2);
|
|
3763
|
+
__decorateClass([
|
|
3764
|
+
Column43({ name: "scheduled_event_id", type: "varchar", nullable: true })
|
|
3765
|
+
], CalendlyMeeting.prototype, "scheduledEventId", 2);
|
|
3766
|
+
__decorateClass([
|
|
3767
|
+
Column43({ name: "event_name", type: "varchar", nullable: false })
|
|
3768
|
+
], CalendlyMeeting.prototype, "eventName", 2);
|
|
3769
|
+
__decorateClass([
|
|
3770
|
+
Column43({ name: "event_location", type: "varchar", nullable: true })
|
|
3771
|
+
], CalendlyMeeting.prototype, "eventLocation", 2);
|
|
3772
|
+
__decorateClass([
|
|
3773
|
+
Column43({ name: "invitee_email", type: "varchar", nullable: false }),
|
|
3774
|
+
Index36()
|
|
3775
|
+
], CalendlyMeeting.prototype, "inviteeEmail", 2);
|
|
3776
|
+
__decorateClass([
|
|
3777
|
+
Column43({ name: "invitee_name", type: "varchar", nullable: true })
|
|
3778
|
+
], CalendlyMeeting.prototype, "inviteeName", 2);
|
|
3779
|
+
__decorateClass([
|
|
3780
|
+
Column43({ name: "start_time", type: "timestamp with time zone", nullable: true }),
|
|
3781
|
+
Index36()
|
|
3782
|
+
], CalendlyMeeting.prototype, "startTime", 2);
|
|
3783
|
+
__decorateClass([
|
|
3784
|
+
Column43({ name: "end_time", type: "timestamp with time zone", nullable: true })
|
|
3785
|
+
], CalendlyMeeting.prototype, "endTime", 2);
|
|
3786
|
+
__decorateClass([
|
|
3787
|
+
Column43({ name: "timezone", type: "varchar", default: "UTC" })
|
|
3788
|
+
], CalendlyMeeting.prototype, "timezone", 2);
|
|
3789
|
+
__decorateClass([
|
|
3790
|
+
Column43({
|
|
3791
|
+
name: "status",
|
|
3792
|
+
type: "enum",
|
|
3793
|
+
enum: CalendlyMeetingStatus,
|
|
3794
|
+
default: "PENDING" /* PENDING */
|
|
3795
|
+
}),
|
|
3796
|
+
Index36()
|
|
3797
|
+
], CalendlyMeeting.prototype, "status", 2);
|
|
3798
|
+
__decorateClass([
|
|
3799
|
+
Column43({ name: "active", type: "boolean", default: true })
|
|
3800
|
+
], CalendlyMeeting.prototype, "active", 2);
|
|
3801
|
+
__decorateClass([
|
|
3802
|
+
Column43({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
3803
|
+
], CalendlyMeeting.prototype, "cancelledAt", 2);
|
|
3804
|
+
__decorateClass([
|
|
3805
|
+
Column43({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
3806
|
+
], CalendlyMeeting.prototype, "cancelReason", 2);
|
|
3807
|
+
__decorateClass([
|
|
3808
|
+
Column43({ name: "notes", type: "text", nullable: true })
|
|
3809
|
+
], CalendlyMeeting.prototype, "notes", 2);
|
|
3810
|
+
__decorateClass([
|
|
3811
|
+
Column43({ name: "is_rescheduled", type: "boolean", default: false })
|
|
3812
|
+
], CalendlyMeeting.prototype, "isRescheduled", 2);
|
|
3813
|
+
__decorateClass([
|
|
3814
|
+
Column43({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
3815
|
+
], CalendlyMeeting.prototype, "rescheduleUrl", 2);
|
|
3816
|
+
__decorateClass([
|
|
3817
|
+
Column43({ name: "rescheduled_from_id", type: "uuid", nullable: true })
|
|
3818
|
+
], CalendlyMeeting.prototype, "rescheduledFromId", 2);
|
|
3819
|
+
__decorateClass([
|
|
3820
|
+
Column43({ name: "questions_and_answers", type: "jsonb", nullable: true, default: "[]" })
|
|
3821
|
+
], CalendlyMeeting.prototype, "questionsAndAnswers", 2);
|
|
3822
|
+
__decorateClass([
|
|
3823
|
+
Column43({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
3824
|
+
], CalendlyMeeting.prototype, "rawWebhookData", 2);
|
|
3825
|
+
__decorateClass([
|
|
3826
|
+
Column43({ name: "is_from_webhook", type: "boolean", default: false })
|
|
3827
|
+
], CalendlyMeeting.prototype, "isFromWebhook", 2);
|
|
3828
|
+
CalendlyMeeting = __decorateClass([
|
|
3829
|
+
Entity42("calendly_meetings"),
|
|
3830
|
+
Unique("UQ_calendly_event_invitee", ["calendlyEventId", "inviteeEmail"]),
|
|
3831
|
+
Unique("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
|
|
3832
|
+
], CalendlyMeeting);
|
|
3833
|
+
|
|
3641
3834
|
// src/entities/user.entity.ts
|
|
3642
3835
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
3643
3836
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -3663,51 +3856,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3663
3856
|
var User = class extends BaseEntity {
|
|
3664
3857
|
};
|
|
3665
3858
|
__decorateClass([
|
|
3666
|
-
|
|
3859
|
+
Column44({ name: "unique_id", type: "varchar", unique: true })
|
|
3667
3860
|
], User.prototype, "uniqueId", 2);
|
|
3668
3861
|
__decorateClass([
|
|
3669
|
-
|
|
3670
|
-
|
|
3862
|
+
Column44({ name: "parent_id", type: "integer", nullable: true }),
|
|
3863
|
+
Index37()
|
|
3671
3864
|
], User.prototype, "parentId", 2);
|
|
3672
3865
|
__decorateClass([
|
|
3673
|
-
|
|
3674
|
-
|
|
3866
|
+
ManyToOne38(() => User, (user) => user.children, { nullable: true }),
|
|
3867
|
+
JoinColumn38({ name: "parent_id" })
|
|
3675
3868
|
], User.prototype, "parent", 2);
|
|
3676
3869
|
__decorateClass([
|
|
3677
3870
|
OneToMany14(() => User, (user) => user.parent)
|
|
3678
3871
|
], User.prototype, "children", 2);
|
|
3679
3872
|
__decorateClass([
|
|
3680
|
-
|
|
3873
|
+
Column44({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3681
3874
|
], User.prototype, "username", 2);
|
|
3682
3875
|
__decorateClass([
|
|
3683
|
-
|
|
3876
|
+
Column44({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3684
3877
|
], User.prototype, "firstName", 2);
|
|
3685
3878
|
__decorateClass([
|
|
3686
|
-
|
|
3879
|
+
Column44({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3687
3880
|
], User.prototype, "lastName", 2);
|
|
3688
3881
|
__decorateClass([
|
|
3689
|
-
|
|
3882
|
+
Column44({ name: "date_of_birth", type: "date", nullable: true })
|
|
3690
3883
|
], User.prototype, "dateOfBirth", 2);
|
|
3691
3884
|
__decorateClass([
|
|
3692
|
-
|
|
3885
|
+
Column44({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3693
3886
|
], User.prototype, "gender", 2);
|
|
3694
3887
|
__decorateClass([
|
|
3695
|
-
|
|
3888
|
+
Column44({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3696
3889
|
], User.prototype, "profilePictureUrl", 2);
|
|
3697
3890
|
__decorateClass([
|
|
3698
|
-
|
|
3891
|
+
Column44({ name: "email", type: "varchar", unique: true })
|
|
3699
3892
|
], User.prototype, "email", 2);
|
|
3700
3893
|
__decorateClass([
|
|
3701
|
-
|
|
3894
|
+
Column44({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3702
3895
|
], User.prototype, "mobileCode", 2);
|
|
3703
3896
|
__decorateClass([
|
|
3704
|
-
|
|
3897
|
+
Column44({ name: "mobile", type: "varchar", nullable: true })
|
|
3705
3898
|
], User.prototype, "mobile", 2);
|
|
3706
3899
|
__decorateClass([
|
|
3707
|
-
|
|
3900
|
+
Column44({ name: "password", type: "varchar", nullable: true })
|
|
3708
3901
|
], User.prototype, "password", 2);
|
|
3709
3902
|
__decorateClass([
|
|
3710
|
-
|
|
3903
|
+
Column44({
|
|
3711
3904
|
name: "account_type",
|
|
3712
3905
|
type: "enum",
|
|
3713
3906
|
enum: AccountType,
|
|
@@ -3715,7 +3908,7 @@ __decorateClass([
|
|
|
3715
3908
|
})
|
|
3716
3909
|
], User.prototype, "accountType", 2);
|
|
3717
3910
|
__decorateClass([
|
|
3718
|
-
|
|
3911
|
+
Column44({
|
|
3719
3912
|
name: "account_status",
|
|
3720
3913
|
type: "enum",
|
|
3721
3914
|
enum: AccountStatus,
|
|
@@ -3723,29 +3916,29 @@ __decorateClass([
|
|
|
3723
3916
|
})
|
|
3724
3917
|
], User.prototype, "accountStatus", 2);
|
|
3725
3918
|
__decorateClass([
|
|
3726
|
-
|
|
3919
|
+
Column44({ name: "is_email_verified", type: "boolean", default: false })
|
|
3727
3920
|
], User.prototype, "isEmailVerified", 2);
|
|
3728
3921
|
__decorateClass([
|
|
3729
|
-
|
|
3922
|
+
Column44({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3730
3923
|
], User.prototype, "isMobileVerified", 2);
|
|
3731
3924
|
__decorateClass([
|
|
3732
|
-
|
|
3925
|
+
Column44({ name: "is_social", type: "boolean", default: false })
|
|
3733
3926
|
], User.prototype, "isSocial", 2);
|
|
3734
3927
|
__decorateClass([
|
|
3735
|
-
|
|
3928
|
+
Column44({
|
|
3736
3929
|
name: "last_login_at",
|
|
3737
3930
|
type: "timestamp with time zone",
|
|
3738
3931
|
nullable: true
|
|
3739
3932
|
})
|
|
3740
3933
|
], User.prototype, "lastLoginAt", 2);
|
|
3741
3934
|
__decorateClass([
|
|
3742
|
-
|
|
3935
|
+
Column44({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3743
3936
|
], User.prototype, "lastLoginIp", 2);
|
|
3744
3937
|
__decorateClass([
|
|
3745
|
-
|
|
3938
|
+
Column44({ name: "reset_token", type: "varchar", nullable: true })
|
|
3746
3939
|
], User.prototype, "resetToken", 2);
|
|
3747
3940
|
__decorateClass([
|
|
3748
|
-
|
|
3941
|
+
Column44({
|
|
3749
3942
|
name: "reset_token_expire_at",
|
|
3750
3943
|
type: "timestamp with time zone",
|
|
3751
3944
|
nullable: true
|
|
@@ -3755,7 +3948,7 @@ __decorateClass([
|
|
|
3755
3948
|
OneToMany14(() => RefreshToken, (token) => token.user)
|
|
3756
3949
|
], User.prototype, "refreshTokens", 2);
|
|
3757
3950
|
__decorateClass([
|
|
3758
|
-
|
|
3951
|
+
Column44({
|
|
3759
3952
|
name: "provider",
|
|
3760
3953
|
type: "enum",
|
|
3761
3954
|
enum: Provider,
|
|
@@ -3764,16 +3957,16 @@ __decorateClass([
|
|
|
3764
3957
|
})
|
|
3765
3958
|
], User.prototype, "provider", 2);
|
|
3766
3959
|
__decorateClass([
|
|
3767
|
-
|
|
3960
|
+
Column44({ name: "provider_token", type: "varchar", nullable: true })
|
|
3768
3961
|
], User.prototype, "providerToken", 2);
|
|
3769
3962
|
__decorateClass([
|
|
3770
|
-
|
|
3963
|
+
Column44({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3771
3964
|
], User.prototype, "linkedInId", 2);
|
|
3772
3965
|
__decorateClass([
|
|
3773
|
-
|
|
3966
|
+
Column44({ name: "google_id", type: "varchar", nullable: true })
|
|
3774
3967
|
], User.prototype, "googleId", 2);
|
|
3775
3968
|
__decorateClass([
|
|
3776
|
-
|
|
3969
|
+
Column44({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3777
3970
|
], User.prototype, "gitLabsId", 2);
|
|
3778
3971
|
__decorateClass([
|
|
3779
3972
|
OneToMany14(() => Otp, (otp) => otp.user)
|
|
@@ -3782,7 +3975,7 @@ __decorateClass([
|
|
|
3782
3975
|
OneToMany14(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3783
3976
|
], User.prototype, "senseloafLogs", 2);
|
|
3784
3977
|
__decorateClass([
|
|
3785
|
-
|
|
3978
|
+
OneToOne3(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
3786
3979
|
], User.prototype, "companyProfile", 2);
|
|
3787
3980
|
__decorateClass([
|
|
3788
3981
|
OneToMany14(() => CompanySkill, (companySkill) => companySkill.user)
|
|
@@ -3791,10 +3984,10 @@ __decorateClass([
|
|
|
3791
3984
|
OneToMany14(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3792
3985
|
], User.prototype, "companyMemberRoles", 2);
|
|
3793
3986
|
__decorateClass([
|
|
3794
|
-
|
|
3987
|
+
OneToOne3(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
3795
3988
|
], User.prototype, "freelancerProfile", 2);
|
|
3796
3989
|
__decorateClass([
|
|
3797
|
-
|
|
3990
|
+
OneToOne3(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
3798
3991
|
], User.prototype, "freelancerResume", 2);
|
|
3799
3992
|
__decorateClass([
|
|
3800
3993
|
OneToMany14(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
@@ -3824,7 +4017,7 @@ __decorateClass([
|
|
|
3824
4017
|
OneToMany14(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3825
4018
|
], User.prototype, "freelancerFramework", 2);
|
|
3826
4019
|
__decorateClass([
|
|
3827
|
-
|
|
4020
|
+
OneToOne3(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3828
4021
|
], User.prototype, "freelancerDeclaration", 2);
|
|
3829
4022
|
__decorateClass([
|
|
3830
4023
|
OneToMany14(() => Job, (job) => job.user)
|
|
@@ -3850,8 +4043,17 @@ __decorateClass([
|
|
|
3850
4043
|
__decorateClass([
|
|
3851
4044
|
OneToMany14(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
3852
4045
|
], User.prototype, "adminUserRoles", 2);
|
|
4046
|
+
__decorateClass([
|
|
4047
|
+
OneToMany14(() => CalendlyMeeting, (calendlyMeeting) => calendlyMeeting.user)
|
|
4048
|
+
], User.prototype, "calendlyMeetings", 2);
|
|
4049
|
+
__decorateClass([
|
|
4050
|
+
OneToMany14(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.client)
|
|
4051
|
+
], User.prototype, "clientF2FInterviews", 2);
|
|
4052
|
+
__decorateClass([
|
|
4053
|
+
OneToMany14(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.freelancer)
|
|
4054
|
+
], User.prototype, "freelancerF2FInterviews", 2);
|
|
3853
4055
|
User = __decorateClass([
|
|
3854
|
-
|
|
4056
|
+
Entity43("users")
|
|
3855
4057
|
], User);
|
|
3856
4058
|
|
|
3857
4059
|
// src/entities/rating.entity.ts
|
|
@@ -3863,36 +4065,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3863
4065
|
var Rating = class extends BaseEntity {
|
|
3864
4066
|
};
|
|
3865
4067
|
__decorateClass([
|
|
3866
|
-
|
|
3867
|
-
|
|
4068
|
+
Column45({ name: "reviewer_id", type: "integer" }),
|
|
4069
|
+
Index38()
|
|
3868
4070
|
], Rating.prototype, "reviewer_id", 2);
|
|
3869
4071
|
__decorateClass([
|
|
3870
|
-
|
|
3871
|
-
|
|
4072
|
+
ManyToOne39(() => User, { onDelete: "CASCADE" }),
|
|
4073
|
+
JoinColumn39({ name: "reviewer_id" })
|
|
3872
4074
|
], Rating.prototype, "reviewer", 2);
|
|
3873
4075
|
__decorateClass([
|
|
3874
|
-
|
|
3875
|
-
|
|
4076
|
+
Column45({ name: "reviewee_id", type: "integer" }),
|
|
4077
|
+
Index38()
|
|
3876
4078
|
], Rating.prototype, "reviewee_id", 2);
|
|
3877
4079
|
__decorateClass([
|
|
3878
|
-
|
|
3879
|
-
|
|
4080
|
+
ManyToOne39(() => User, { onDelete: "CASCADE" }),
|
|
4081
|
+
JoinColumn39({ name: "reviewee_id" })
|
|
3880
4082
|
], Rating.prototype, "reviewee", 2);
|
|
3881
4083
|
__decorateClass([
|
|
3882
|
-
|
|
4084
|
+
Column45({
|
|
3883
4085
|
type: "enum",
|
|
3884
4086
|
enum: RatingTypeEnum,
|
|
3885
4087
|
nullable: true
|
|
3886
4088
|
})
|
|
3887
4089
|
], Rating.prototype, "ratingType", 2);
|
|
3888
4090
|
__decorateClass([
|
|
3889
|
-
|
|
4091
|
+
Column45({ type: "integer", nullable: true })
|
|
3890
4092
|
], Rating.prototype, "rating", 2);
|
|
3891
4093
|
__decorateClass([
|
|
3892
|
-
|
|
4094
|
+
Column45({ type: "text", nullable: true })
|
|
3893
4095
|
], Rating.prototype, "review", 2);
|
|
3894
4096
|
Rating = __decorateClass([
|
|
3895
|
-
|
|
4097
|
+
Entity44("ratings")
|
|
3896
4098
|
], Rating);
|
|
3897
4099
|
|
|
3898
4100
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -3913,7 +4115,7 @@ __decorateClass([
|
|
|
3913
4115
|
Max(5, { message: "Rating must be at most 5" })
|
|
3914
4116
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3915
4117
|
__decorateClass([
|
|
3916
|
-
|
|
4118
|
+
IsOptional12(),
|
|
3917
4119
|
IsString16({ message: "Review must be a string" })
|
|
3918
4120
|
], CreateRatingDto.prototype, "review", 2);
|
|
3919
4121
|
|
|
@@ -3930,7 +4132,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3930
4132
|
};
|
|
3931
4133
|
|
|
3932
4134
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3933
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as
|
|
4135
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional13 } from "class-validator";
|
|
3934
4136
|
var CreateCompanyRoleDto = class {
|
|
3935
4137
|
};
|
|
3936
4138
|
__decorateClass([
|
|
@@ -3948,12 +4150,12 @@ __decorateClass([
|
|
|
3948
4150
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
3949
4151
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3950
4152
|
__decorateClass([
|
|
3951
|
-
|
|
4153
|
+
IsOptional13(),
|
|
3952
4154
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
3953
4155
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3954
4156
|
|
|
3955
4157
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3956
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as
|
|
4158
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional14 } from "class-validator";
|
|
3957
4159
|
var UpdateCompanyRoleDto = class {
|
|
3958
4160
|
};
|
|
3959
4161
|
__decorateClass([
|
|
@@ -3971,7 +4173,7 @@ __decorateClass([
|
|
|
3971
4173
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
3972
4174
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3973
4175
|
__decorateClass([
|
|
3974
|
-
|
|
4176
|
+
IsOptional14(),
|
|
3975
4177
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
3976
4178
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3977
4179
|
|
|
@@ -3993,16 +4195,16 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3993
4195
|
import {
|
|
3994
4196
|
ArrayMinSize,
|
|
3995
4197
|
IsNotEmpty as IsNotEmpty36,
|
|
3996
|
-
IsOptional as
|
|
4198
|
+
IsOptional as IsOptional15,
|
|
3997
4199
|
IsString as IsString19,
|
|
3998
|
-
MaxLength as
|
|
4200
|
+
MaxLength as MaxLength10,
|
|
3999
4201
|
ValidateNested
|
|
4000
4202
|
} from "class-validator";
|
|
4001
4203
|
import { Type as Type2 } from "class-transformer";
|
|
4002
4204
|
var ExperienceDto = class {
|
|
4003
4205
|
};
|
|
4004
4206
|
__decorateClass([
|
|
4005
|
-
|
|
4207
|
+
IsOptional15()
|
|
4006
4208
|
], ExperienceDto.prototype, "uuid", 2);
|
|
4007
4209
|
__decorateClass([
|
|
4008
4210
|
IsNotEmpty36(),
|
|
@@ -4017,9 +4219,9 @@ __decorateClass([
|
|
|
4017
4219
|
IsString19()
|
|
4018
4220
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
4019
4221
|
__decorateClass([
|
|
4020
|
-
|
|
4222
|
+
IsOptional15(),
|
|
4021
4223
|
IsString19(),
|
|
4022
|
-
|
|
4224
|
+
MaxLength10(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4023
4225
|
], ExperienceDto.prototype, "description", 2);
|
|
4024
4226
|
var FreelancerExperienceDto = class {
|
|
4025
4227
|
};
|
|
@@ -4088,12 +4290,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
4088
4290
|
};
|
|
4089
4291
|
|
|
4090
4292
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
4091
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as
|
|
4293
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional18, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
4092
4294
|
import { Type as Type3 } from "class-transformer";
|
|
4093
4295
|
var EducationDto = class {
|
|
4094
4296
|
};
|
|
4095
4297
|
__decorateClass([
|
|
4096
|
-
|
|
4298
|
+
IsOptional18()
|
|
4097
4299
|
], EducationDto.prototype, "uuid", 2);
|
|
4098
4300
|
__decorateClass([
|
|
4099
4301
|
IsString22(),
|
|
@@ -4123,12 +4325,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
4123
4325
|
};
|
|
4124
4326
|
|
|
4125
4327
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4126
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as
|
|
4328
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional19, IsDateString, MaxLength as MaxLength12, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
4127
4329
|
import { Type as Type4 } from "class-transformer";
|
|
4128
4330
|
var ProjectDto = class {
|
|
4129
4331
|
};
|
|
4130
4332
|
__decorateClass([
|
|
4131
|
-
|
|
4333
|
+
IsOptional19()
|
|
4132
4334
|
], ProjectDto.prototype, "uuid", 2);
|
|
4133
4335
|
__decorateClass([
|
|
4134
4336
|
IsString23(),
|
|
@@ -4143,35 +4345,35 @@ __decorateClass([
|
|
|
4143
4345
|
IsNotEmpty40({ message: "Please Enter End Date " })
|
|
4144
4346
|
], ProjectDto.prototype, "endDate", 2);
|
|
4145
4347
|
__decorateClass([
|
|
4146
|
-
|
|
4348
|
+
IsOptional19(),
|
|
4147
4349
|
IsString23()
|
|
4148
4350
|
], ProjectDto.prototype, "clientName", 2);
|
|
4149
4351
|
__decorateClass([
|
|
4150
|
-
|
|
4352
|
+
IsOptional19(),
|
|
4151
4353
|
IsString23()
|
|
4152
4354
|
], ProjectDto.prototype, "gitLink", 2);
|
|
4153
4355
|
__decorateClass([
|
|
4154
|
-
|
|
4356
|
+
IsOptional19(),
|
|
4155
4357
|
IsString23(),
|
|
4156
|
-
|
|
4358
|
+
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4157
4359
|
], ProjectDto.prototype, "description", 2);
|
|
4158
4360
|
var CaseStudyDto = class {
|
|
4159
4361
|
};
|
|
4160
4362
|
__decorateClass([
|
|
4161
|
-
|
|
4363
|
+
IsOptional19()
|
|
4162
4364
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4163
4365
|
__decorateClass([
|
|
4164
4366
|
IsString23(),
|
|
4165
4367
|
IsNotEmpty40({ message: "Please Enter Project Name " })
|
|
4166
4368
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4167
4369
|
__decorateClass([
|
|
4168
|
-
|
|
4370
|
+
IsOptional19(),
|
|
4169
4371
|
IsString23()
|
|
4170
4372
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
4171
4373
|
__decorateClass([
|
|
4172
|
-
|
|
4374
|
+
IsOptional19(),
|
|
4173
4375
|
IsString23(),
|
|
4174
|
-
|
|
4376
|
+
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4175
4377
|
], CaseStudyDto.prototype, "description", 2);
|
|
4176
4378
|
var FreelancerProjectDto = class {
|
|
4177
4379
|
};
|
|
@@ -4199,7 +4401,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4199
4401
|
};
|
|
4200
4402
|
|
|
4201
4403
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4202
|
-
import { IsArray as IsArray8, IsString as IsString24, IsOptional as
|
|
4404
|
+
import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional20 } from "class-validator";
|
|
4203
4405
|
import { Type as Type5 } from "class-transformer";
|
|
4204
4406
|
var FreelancerSkillDto = class {
|
|
4205
4407
|
constructor() {
|
|
@@ -4209,19 +4411,19 @@ var FreelancerSkillDto = class {
|
|
|
4209
4411
|
}
|
|
4210
4412
|
};
|
|
4211
4413
|
__decorateClass([
|
|
4212
|
-
|
|
4414
|
+
IsOptional20(),
|
|
4213
4415
|
IsArray8(),
|
|
4214
4416
|
Type5(() => String),
|
|
4215
4417
|
IsString24({ each: true })
|
|
4216
4418
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4217
4419
|
__decorateClass([
|
|
4218
|
-
|
|
4420
|
+
IsOptional20(),
|
|
4219
4421
|
IsArray8(),
|
|
4220
4422
|
Type5(() => String),
|
|
4221
4423
|
IsString24({ each: true })
|
|
4222
4424
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4223
4425
|
__decorateClass([
|
|
4224
|
-
|
|
4426
|
+
IsOptional20(),
|
|
4225
4427
|
IsArray8(),
|
|
4226
4428
|
Type5(() => String),
|
|
4227
4429
|
IsString24({ each: true })
|
|
@@ -4244,15 +4446,15 @@ import {
|
|
|
4244
4446
|
IsString as IsString25,
|
|
4245
4447
|
IsEmail as IsEmail10,
|
|
4246
4448
|
IsBoolean as IsBoolean10,
|
|
4247
|
-
IsOptional as
|
|
4449
|
+
IsOptional as IsOptional21,
|
|
4248
4450
|
IsEnum as IsEnum14,
|
|
4249
4451
|
IsNumber as IsNumber3,
|
|
4250
4452
|
IsUrl as IsUrl3,
|
|
4251
4453
|
Min as Min3,
|
|
4252
|
-
MaxLength as
|
|
4454
|
+
MaxLength as MaxLength14,
|
|
4253
4455
|
IsNotEmpty as IsNotEmpty42,
|
|
4254
|
-
MinLength as
|
|
4255
|
-
Matches as
|
|
4456
|
+
MinLength as MinLength12,
|
|
4457
|
+
Matches as Matches9,
|
|
4256
4458
|
ValidateIf as ValidateIf5
|
|
4257
4459
|
} from "class-validator";
|
|
4258
4460
|
import { Type as Type6 } from "class-transformer";
|
|
@@ -4272,7 +4474,7 @@ var CreateFreelancerDto = class {
|
|
|
4272
4474
|
};
|
|
4273
4475
|
__decorateClass([
|
|
4274
4476
|
IsString25({ message: "Full name must be a string" }),
|
|
4275
|
-
|
|
4477
|
+
MaxLength14(100, { message: "Full name must not exceed 100 characters" })
|
|
4276
4478
|
], CreateFreelancerDto.prototype, "fullName", 2);
|
|
4277
4479
|
__decorateClass([
|
|
4278
4480
|
IsEmail10({}, { message: "Invalid email address" })
|
|
@@ -4285,9 +4487,9 @@ __decorateClass([
|
|
|
4285
4487
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
4286
4488
|
__decorateClass([
|
|
4287
4489
|
IsNotEmpty42({ message: "Please enter password." }),
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4490
|
+
MinLength12(6),
|
|
4491
|
+
MaxLength14(32),
|
|
4492
|
+
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4291
4493
|
message: "Password must include letters, numbers and symbols."
|
|
4292
4494
|
})
|
|
4293
4495
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
@@ -4327,23 +4529,23 @@ __decorateClass([
|
|
|
4327
4529
|
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
4328
4530
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4329
4531
|
__decorateClass([
|
|
4330
|
-
|
|
4532
|
+
IsOptional21(),
|
|
4331
4533
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4332
4534
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4333
4535
|
__decorateClass([
|
|
4334
|
-
|
|
4536
|
+
IsOptional21(),
|
|
4335
4537
|
IsString25({ message: "Kaggle profile link must be a string" })
|
|
4336
4538
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4337
4539
|
__decorateClass([
|
|
4338
|
-
|
|
4540
|
+
IsOptional21(),
|
|
4339
4541
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
4340
4542
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4341
4543
|
__decorateClass([
|
|
4342
|
-
|
|
4544
|
+
IsOptional21(),
|
|
4343
4545
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4344
4546
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4345
4547
|
__decorateClass([
|
|
4346
|
-
|
|
4548
|
+
IsOptional21(),
|
|
4347
4549
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
4348
4550
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4349
4551
|
|
|
@@ -4352,18 +4554,18 @@ import {
|
|
|
4352
4554
|
IsString as IsString26,
|
|
4353
4555
|
IsEmail as IsEmail11,
|
|
4354
4556
|
IsBoolean as IsBoolean11,
|
|
4355
|
-
IsOptional as
|
|
4557
|
+
IsOptional as IsOptional22,
|
|
4356
4558
|
IsEnum as IsEnum15,
|
|
4357
4559
|
IsNumber as IsNumber4,
|
|
4358
4560
|
IsUrl as IsUrl4,
|
|
4359
4561
|
Min as Min4,
|
|
4360
|
-
MaxLength as
|
|
4361
|
-
MinLength as
|
|
4362
|
-
Matches as
|
|
4562
|
+
MaxLength as MaxLength15,
|
|
4563
|
+
MinLength as MinLength13,
|
|
4564
|
+
Matches as Matches10,
|
|
4363
4565
|
IsNotEmpty as IsNotEmpty43,
|
|
4364
4566
|
ValidateIf as ValidateIf6
|
|
4365
4567
|
} from "class-validator";
|
|
4366
|
-
import { Type as Type7 } from "class-transformer";
|
|
4568
|
+
import { Transform as Transform2, Type as Type7 } from "class-transformer";
|
|
4367
4569
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
4368
4570
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
4369
4571
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -4379,37 +4581,38 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4379
4581
|
var UpdateFreelancerDto = class {
|
|
4380
4582
|
};
|
|
4381
4583
|
__decorateClass([
|
|
4382
|
-
|
|
4584
|
+
IsOptional22(),
|
|
4383
4585
|
IsString26({ message: "Full name must be a string" }),
|
|
4384
|
-
|
|
4586
|
+
MaxLength15(100, { message: "Full name must not exceed 100 characters" })
|
|
4385
4587
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4386
4588
|
__decorateClass([
|
|
4387
|
-
|
|
4589
|
+
IsOptional22(),
|
|
4388
4590
|
IsEmail11({}, { message: "Invalid email address" })
|
|
4389
4591
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4390
4592
|
__decorateClass([
|
|
4391
|
-
|
|
4593
|
+
IsOptional22(),
|
|
4392
4594
|
IsString26({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4393
4595
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4394
4596
|
__decorateClass([
|
|
4395
|
-
|
|
4597
|
+
IsOptional22(),
|
|
4396
4598
|
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4397
4599
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4398
4600
|
__decorateClass([
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4601
|
+
IsOptional22(),
|
|
4602
|
+
Transform2(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4603
|
+
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
4604
|
+
MaxLength15(32, { message: "Password must not exceed 32 characters." }),
|
|
4605
|
+
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4403
4606
|
message: "Password must include letters, numbers and symbols."
|
|
4404
4607
|
})
|
|
4405
4608
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4406
4609
|
__decorateClass([
|
|
4407
|
-
|
|
4610
|
+
IsOptional22(),
|
|
4408
4611
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
4409
4612
|
Type7(() => Boolean)
|
|
4410
4613
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4411
4614
|
__decorateClass([
|
|
4412
|
-
|
|
4615
|
+
IsOptional22(),
|
|
4413
4616
|
IsEnum15(NatureOfWorkEnum2, {
|
|
4414
4617
|
message: `Nature of work must be one of: ${Object.values(
|
|
4415
4618
|
NatureOfWorkEnum2
|
|
@@ -4417,13 +4620,13 @@ __decorateClass([
|
|
|
4417
4620
|
})
|
|
4418
4621
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4419
4622
|
__decorateClass([
|
|
4420
|
-
|
|
4623
|
+
IsOptional22(),
|
|
4421
4624
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
4422
4625
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4423
4626
|
Type7(() => Number)
|
|
4424
4627
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4425
4628
|
__decorateClass([
|
|
4426
|
-
|
|
4629
|
+
IsOptional22(),
|
|
4427
4630
|
IsEnum15(ModeOfWorkEnum2, {
|
|
4428
4631
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4429
4632
|
", "
|
|
@@ -4431,7 +4634,7 @@ __decorateClass([
|
|
|
4431
4634
|
})
|
|
4432
4635
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4433
4636
|
__decorateClass([
|
|
4434
|
-
|
|
4637
|
+
IsOptional22(),
|
|
4435
4638
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
4436
4639
|
Type7(() => Boolean)
|
|
4437
4640
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
@@ -4440,23 +4643,23 @@ __decorateClass([
|
|
|
4440
4643
|
IsNotEmpty43({ message: "Please enter availability to join." })
|
|
4441
4644
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4442
4645
|
__decorateClass([
|
|
4443
|
-
|
|
4646
|
+
IsOptional22(),
|
|
4444
4647
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4445
4648
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4446
4649
|
__decorateClass([
|
|
4447
|
-
|
|
4650
|
+
IsOptional22(),
|
|
4448
4651
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
4449
4652
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4450
4653
|
__decorateClass([
|
|
4451
|
-
|
|
4654
|
+
IsOptional22(),
|
|
4452
4655
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
4453
4656
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4454
4657
|
__decorateClass([
|
|
4455
|
-
|
|
4658
|
+
IsOptional22(),
|
|
4456
4659
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4457
4660
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4458
4661
|
__decorateClass([
|
|
4459
|
-
|
|
4662
|
+
IsOptional22(),
|
|
4460
4663
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
4461
4664
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4462
4665
|
|
|
@@ -4477,13 +4680,13 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4477
4680
|
import {
|
|
4478
4681
|
IsNotEmpty as IsNotEmpty44,
|
|
4479
4682
|
IsEmail as IsEmail12,
|
|
4480
|
-
IsOptional as
|
|
4683
|
+
IsOptional as IsOptional23,
|
|
4481
4684
|
IsString as IsString27,
|
|
4482
4685
|
IsArray as IsArray9,
|
|
4483
|
-
MinLength as
|
|
4484
|
-
MaxLength as
|
|
4686
|
+
MinLength as MinLength14,
|
|
4687
|
+
MaxLength as MaxLength16,
|
|
4485
4688
|
IsEnum as IsEnum16,
|
|
4486
|
-
Matches as
|
|
4689
|
+
Matches as Matches11
|
|
4487
4690
|
} from "class-validator";
|
|
4488
4691
|
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
4489
4692
|
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
@@ -4513,9 +4716,9 @@ __decorateClass([
|
|
|
4513
4716
|
], CreateClientDto.prototype, "email", 2);
|
|
4514
4717
|
__decorateClass([
|
|
4515
4718
|
IsNotEmpty44({ message: "Please enter password." }),
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4719
|
+
MinLength14(6),
|
|
4720
|
+
MaxLength16(32),
|
|
4721
|
+
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4519
4722
|
message: "Password must include letters, numbers and symbols."
|
|
4520
4723
|
})
|
|
4521
4724
|
], CreateClientDto.prototype, "password", 2);
|
|
@@ -4548,7 +4751,7 @@ __decorateClass([
|
|
|
4548
4751
|
IsString27()
|
|
4549
4752
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4550
4753
|
__decorateClass([
|
|
4551
|
-
|
|
4754
|
+
IsOptional23(),
|
|
4552
4755
|
IsString27()
|
|
4553
4756
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4554
4757
|
|
|
@@ -4562,16 +4765,17 @@ __decorateClass([
|
|
|
4562
4765
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
4563
4766
|
|
|
4564
4767
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
4768
|
+
import { Transform as Transform3 } from "class-transformer";
|
|
4565
4769
|
import {
|
|
4566
4770
|
IsNotEmpty as IsNotEmpty46,
|
|
4567
4771
|
IsEmail as IsEmail13,
|
|
4568
|
-
IsOptional as
|
|
4772
|
+
IsOptional as IsOptional24,
|
|
4569
4773
|
IsString as IsString29,
|
|
4570
4774
|
IsArray as IsArray10,
|
|
4571
|
-
MinLength as
|
|
4572
|
-
MaxLength as
|
|
4775
|
+
MinLength as MinLength15,
|
|
4776
|
+
MaxLength as MaxLength17,
|
|
4573
4777
|
IsEnum as IsEnum17,
|
|
4574
|
-
Matches as
|
|
4778
|
+
Matches as Matches12
|
|
4575
4779
|
} from "class-validator";
|
|
4576
4780
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
4577
4781
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
@@ -4600,10 +4804,11 @@ __decorateClass([
|
|
|
4600
4804
|
IsEmail13()
|
|
4601
4805
|
], UpdateClientDto.prototype, "email", 2);
|
|
4602
4806
|
__decorateClass([
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4807
|
+
IsOptional24(),
|
|
4808
|
+
Transform3(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4809
|
+
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
4810
|
+
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
4811
|
+
Matches12(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
4607
4812
|
message: "Password must include letters, numbers and symbols."
|
|
4608
4813
|
})
|
|
4609
4814
|
], UpdateClientDto.prototype, "password", 2);
|
|
@@ -4632,7 +4837,7 @@ __decorateClass([
|
|
|
4632
4837
|
IsString29()
|
|
4633
4838
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4634
4839
|
__decorateClass([
|
|
4635
|
-
|
|
4840
|
+
IsOptional24(),
|
|
4636
4841
|
IsString29()
|
|
4637
4842
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4638
4843
|
|
|
@@ -4643,7 +4848,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4643
4848
|
};
|
|
4644
4849
|
|
|
4645
4850
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4646
|
-
import { IsOptional as
|
|
4851
|
+
import { IsOptional as IsOptional25, IsEnum as IsEnum18, IsString as IsString30, IsNotEmpty as IsNotEmpty47, IsIn as IsIn3 } from "class-validator";
|
|
4647
4852
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4648
4853
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4649
4854
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4654,7 +4859,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4654
4859
|
var FreelancerDeclarationDto = class {
|
|
4655
4860
|
};
|
|
4656
4861
|
__decorateClass([
|
|
4657
|
-
|
|
4862
|
+
IsOptional25(),
|
|
4658
4863
|
IsString30({ message: "UUID must be a string" })
|
|
4659
4864
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4660
4865
|
__decorateClass([
|
|
@@ -4678,35 +4883,35 @@ var CMS_PATTERNS = {
|
|
|
4678
4883
|
};
|
|
4679
4884
|
|
|
4680
4885
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4681
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as
|
|
4886
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional26 } from "class-validator";
|
|
4682
4887
|
var CreateCmsDto = class {
|
|
4683
4888
|
};
|
|
4684
4889
|
__decorateClass([
|
|
4685
4890
|
IsNotEmpty48({ message: "Please enter name." })
|
|
4686
4891
|
], CreateCmsDto.prototype, "title", 2);
|
|
4687
4892
|
__decorateClass([
|
|
4688
|
-
|
|
4893
|
+
IsOptional26()
|
|
4689
4894
|
], CreateCmsDto.prototype, "content", 2);
|
|
4690
4895
|
__decorateClass([
|
|
4691
|
-
|
|
4896
|
+
IsOptional26(),
|
|
4692
4897
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
4693
4898
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4694
4899
|
|
|
4695
4900
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4696
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as
|
|
4901
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional27 } from "class-validator";
|
|
4697
4902
|
var UpdateCmsDto = class {
|
|
4698
4903
|
};
|
|
4699
4904
|
__decorateClass([
|
|
4700
|
-
|
|
4905
|
+
IsOptional27()
|
|
4701
4906
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4702
4907
|
__decorateClass([
|
|
4703
4908
|
IsNotEmpty49({ message: "Please enter name." })
|
|
4704
4909
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4705
4910
|
__decorateClass([
|
|
4706
|
-
|
|
4911
|
+
IsOptional27()
|
|
4707
4912
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4708
4913
|
__decorateClass([
|
|
4709
|
-
|
|
4914
|
+
IsOptional27(),
|
|
4710
4915
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
4711
4916
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4712
4917
|
|
|
@@ -4739,7 +4944,7 @@ import {
|
|
|
4739
4944
|
IsString as IsString31,
|
|
4740
4945
|
IsEnum as IsEnum19,
|
|
4741
4946
|
IsInt as IsInt6,
|
|
4742
|
-
IsOptional as
|
|
4947
|
+
IsOptional as IsOptional28,
|
|
4743
4948
|
IsArray as IsArray11,
|
|
4744
4949
|
IsDateString as IsDateString4,
|
|
4745
4950
|
IsNotEmpty as IsNotEmpty50,
|
|
@@ -4766,7 +4971,7 @@ __decorateClass([
|
|
|
4766
4971
|
IsNotEmpty50({ message: "Job role is required." })
|
|
4767
4972
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4768
4973
|
__decorateClass([
|
|
4769
|
-
|
|
4974
|
+
IsOptional28(),
|
|
4770
4975
|
IsString31({ message: "Note must be a string." })
|
|
4771
4976
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4772
4977
|
__decorateClass([
|
|
@@ -4816,7 +5021,7 @@ __decorateClass([
|
|
|
4816
5021
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4817
5022
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4818
5023
|
__decorateClass([
|
|
4819
|
-
|
|
5024
|
+
IsOptional28(),
|
|
4820
5025
|
IsString31({ message: "Additional comment must be a string." })
|
|
4821
5026
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4822
5027
|
__decorateClass([
|
|
@@ -4838,7 +5043,7 @@ import {
|
|
|
4838
5043
|
IsString as IsString32,
|
|
4839
5044
|
IsEnum as IsEnum20,
|
|
4840
5045
|
IsInt as IsInt7,
|
|
4841
|
-
IsOptional as
|
|
5046
|
+
IsOptional as IsOptional29,
|
|
4842
5047
|
IsArray as IsArray12,
|
|
4843
5048
|
IsDateString as IsDateString5,
|
|
4844
5049
|
IsNotEmpty as IsNotEmpty51,
|
|
@@ -4865,7 +5070,7 @@ __decorateClass([
|
|
|
4865
5070
|
IsNotEmpty51({ message: "Job role is required." })
|
|
4866
5071
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4867
5072
|
__decorateClass([
|
|
4868
|
-
|
|
5073
|
+
IsOptional29(),
|
|
4869
5074
|
IsString32({ message: "Note must be a string." })
|
|
4870
5075
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4871
5076
|
__decorateClass([
|
|
@@ -4915,7 +5120,7 @@ __decorateClass([
|
|
|
4915
5120
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4916
5121
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4917
5122
|
__decorateClass([
|
|
4918
|
-
|
|
5123
|
+
IsOptional29(),
|
|
4919
5124
|
IsString32({ message: "Additional comment must be a string." })
|
|
4920
5125
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4921
5126
|
__decorateClass([
|
|
@@ -4938,7 +5143,7 @@ var LEAD_PATTERN = {
|
|
|
4938
5143
|
};
|
|
4939
5144
|
|
|
4940
5145
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4941
|
-
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as
|
|
5146
|
+
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional30, IsEnum as IsEnum21 } from "class-validator";
|
|
4942
5147
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4943
5148
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4944
5149
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4959,7 +5164,7 @@ __decorateClass([
|
|
|
4959
5164
|
IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4960
5165
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4961
5166
|
__decorateClass([
|
|
4962
|
-
|
|
5167
|
+
IsOptional30(),
|
|
4963
5168
|
IsString33({ message: "Description must be a string" })
|
|
4964
5169
|
], CreateLeadDto.prototype, "description", 2);
|
|
4965
5170
|
__decorateClass([
|
|
@@ -4983,7 +5188,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4983
5188
|
};
|
|
4984
5189
|
|
|
4985
5190
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4986
|
-
import { IsNotEmpty as IsNotEmpty52, IsOptional as
|
|
5191
|
+
import { IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional31, IsString as IsString34 } from "class-validator";
|
|
4987
5192
|
var CreateAdminRoleDto = class {
|
|
4988
5193
|
};
|
|
4989
5194
|
__decorateClass([
|
|
@@ -4991,12 +5196,12 @@ __decorateClass([
|
|
|
4991
5196
|
IsString34({ message: "Role name must be a string." })
|
|
4992
5197
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4993
5198
|
__decorateClass([
|
|
4994
|
-
|
|
5199
|
+
IsOptional31(),
|
|
4995
5200
|
IsString34({ message: "Role description must be a string." })
|
|
4996
5201
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4997
5202
|
|
|
4998
5203
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4999
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as
|
|
5204
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as IsOptional32, IsString as IsString35 } from "class-validator";
|
|
5000
5205
|
var UpdateAdminRoleDto = class {
|
|
5001
5206
|
};
|
|
5002
5207
|
__decorateClass([
|
|
@@ -5004,11 +5209,11 @@ __decorateClass([
|
|
|
5004
5209
|
IsString35({ message: "Role name must be a string." })
|
|
5005
5210
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
5006
5211
|
__decorateClass([
|
|
5007
|
-
|
|
5212
|
+
IsOptional32(),
|
|
5008
5213
|
IsString35({ message: "Role description must be a string." })
|
|
5009
5214
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5010
5215
|
__decorateClass([
|
|
5011
|
-
|
|
5216
|
+
IsOptional32(),
|
|
5012
5217
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
5013
5218
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
5014
5219
|
|
|
@@ -5322,11 +5527,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5322
5527
|
};
|
|
5323
5528
|
|
|
5324
5529
|
// src/entities/sequence-generator.entity.ts
|
|
5325
|
-
import { Entity as
|
|
5530
|
+
import { Entity as Entity45, Column as Column46 } from "typeorm";
|
|
5326
5531
|
var SequenceGenerator = class extends BaseEntity {
|
|
5327
5532
|
};
|
|
5328
5533
|
__decorateClass([
|
|
5329
|
-
|
|
5534
|
+
Column46({
|
|
5330
5535
|
name: "module",
|
|
5331
5536
|
type: "varchar",
|
|
5332
5537
|
length: 50,
|
|
@@ -5335,7 +5540,7 @@ __decorateClass([
|
|
|
5335
5540
|
})
|
|
5336
5541
|
], SequenceGenerator.prototype, "module", 2);
|
|
5337
5542
|
__decorateClass([
|
|
5338
|
-
|
|
5543
|
+
Column46({
|
|
5339
5544
|
name: "prefix",
|
|
5340
5545
|
type: "varchar",
|
|
5341
5546
|
length: 10,
|
|
@@ -5344,7 +5549,7 @@ __decorateClass([
|
|
|
5344
5549
|
})
|
|
5345
5550
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5346
5551
|
__decorateClass([
|
|
5347
|
-
|
|
5552
|
+
Column46({
|
|
5348
5553
|
name: "last_sequence",
|
|
5349
5554
|
type: "int",
|
|
5350
5555
|
nullable: false,
|
|
@@ -5352,7 +5557,7 @@ __decorateClass([
|
|
|
5352
5557
|
})
|
|
5353
5558
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5354
5559
|
__decorateClass([
|
|
5355
|
-
|
|
5560
|
+
Column46({
|
|
5356
5561
|
name: "year",
|
|
5357
5562
|
type: "int",
|
|
5358
5563
|
nullable: true,
|
|
@@ -5360,11 +5565,11 @@ __decorateClass([
|
|
|
5360
5565
|
})
|
|
5361
5566
|
], SequenceGenerator.prototype, "year", 2);
|
|
5362
5567
|
SequenceGenerator = __decorateClass([
|
|
5363
|
-
|
|
5568
|
+
Entity45("sequence_generators")
|
|
5364
5569
|
], SequenceGenerator);
|
|
5365
5570
|
|
|
5366
5571
|
// src/entities/question.entity.ts
|
|
5367
|
-
import { Entity as
|
|
5572
|
+
import { Entity as Entity46, Column as Column47 } from "typeorm";
|
|
5368
5573
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5369
5574
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5370
5575
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5373,16 +5578,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5373
5578
|
var Question = class extends BaseEntity {
|
|
5374
5579
|
};
|
|
5375
5580
|
__decorateClass([
|
|
5376
|
-
|
|
5581
|
+
Column47({ name: "question", type: "varchar" })
|
|
5377
5582
|
], Question.prototype, "question", 2);
|
|
5378
5583
|
__decorateClass([
|
|
5379
|
-
|
|
5584
|
+
Column47({ name: "hint", type: "varchar", nullable: true })
|
|
5380
5585
|
], Question.prototype, "hint", 2);
|
|
5381
5586
|
__decorateClass([
|
|
5382
|
-
|
|
5587
|
+
Column47({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5383
5588
|
], Question.prototype, "slug", 2);
|
|
5384
5589
|
__decorateClass([
|
|
5385
|
-
|
|
5590
|
+
Column47({
|
|
5386
5591
|
name: "question_for",
|
|
5387
5592
|
type: "enum",
|
|
5388
5593
|
enum: QuestionFor,
|
|
@@ -5390,54 +5595,54 @@ __decorateClass([
|
|
|
5390
5595
|
})
|
|
5391
5596
|
], Question.prototype, "questionFor", 2);
|
|
5392
5597
|
__decorateClass([
|
|
5393
|
-
|
|
5598
|
+
Column47({ name: "type", type: "varchar", nullable: true })
|
|
5394
5599
|
], Question.prototype, "type", 2);
|
|
5395
5600
|
__decorateClass([
|
|
5396
|
-
|
|
5601
|
+
Column47({ name: "options", type: "jsonb", nullable: true })
|
|
5397
5602
|
], Question.prototype, "options", 2);
|
|
5398
5603
|
__decorateClass([
|
|
5399
|
-
|
|
5604
|
+
Column47({ name: "is_active", type: "boolean", default: false })
|
|
5400
5605
|
], Question.prototype, "isActive", 2);
|
|
5401
5606
|
Question = __decorateClass([
|
|
5402
|
-
|
|
5607
|
+
Entity46("questions")
|
|
5403
5608
|
], Question);
|
|
5404
5609
|
|
|
5405
5610
|
// src/entities/skill.entity.ts
|
|
5406
|
-
import { Entity as
|
|
5611
|
+
import { Entity as Entity47, Column as Column48 } from "typeorm";
|
|
5407
5612
|
var Skill = class extends BaseEntity {
|
|
5408
5613
|
};
|
|
5409
5614
|
__decorateClass([
|
|
5410
|
-
|
|
5615
|
+
Column48({ name: "name", type: "varchar", nullable: true })
|
|
5411
5616
|
], Skill.prototype, "name", 2);
|
|
5412
5617
|
__decorateClass([
|
|
5413
|
-
|
|
5618
|
+
Column48({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5414
5619
|
], Skill.prototype, "slug", 2);
|
|
5415
5620
|
__decorateClass([
|
|
5416
|
-
|
|
5621
|
+
Column48({ name: "is_active", type: "boolean", default: false })
|
|
5417
5622
|
], Skill.prototype, "isActive", 2);
|
|
5418
5623
|
Skill = __decorateClass([
|
|
5419
|
-
|
|
5624
|
+
Entity47("skills")
|
|
5420
5625
|
], Skill);
|
|
5421
5626
|
|
|
5422
5627
|
// src/entities/job-role.entity.ts
|
|
5423
|
-
import { Entity as
|
|
5628
|
+
import { Entity as Entity48, Column as Column49 } from "typeorm";
|
|
5424
5629
|
var JobRoles = class extends BaseEntity {
|
|
5425
5630
|
};
|
|
5426
5631
|
__decorateClass([
|
|
5427
|
-
|
|
5632
|
+
Column49({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5428
5633
|
], JobRoles.prototype, "slug", 2);
|
|
5429
5634
|
__decorateClass([
|
|
5430
|
-
|
|
5635
|
+
Column49({ name: "name", type: "varchar", nullable: true })
|
|
5431
5636
|
], JobRoles.prototype, "name", 2);
|
|
5432
5637
|
__decorateClass([
|
|
5433
|
-
|
|
5638
|
+
Column49({ name: "is_active", type: "boolean", default: true })
|
|
5434
5639
|
], JobRoles.prototype, "isActive", 2);
|
|
5435
5640
|
JobRoles = __decorateClass([
|
|
5436
|
-
|
|
5641
|
+
Entity48("job_roles")
|
|
5437
5642
|
], JobRoles);
|
|
5438
5643
|
|
|
5439
5644
|
// src/entities/ai-interview.entity.ts
|
|
5440
|
-
import { Entity as
|
|
5645
|
+
import { Entity as Entity49, Column as Column50, ManyToOne as ManyToOne40, JoinColumn as JoinColumn40, Index as Index39 } from "typeorm";
|
|
5441
5646
|
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|
|
5442
5647
|
AIInterviewStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
5443
5648
|
AIInterviewStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
@@ -5463,37 +5668,37 @@ var AIInterviewResultEnum = /* @__PURE__ */ ((AIInterviewResultEnum2) => {
|
|
|
5463
5668
|
var AIInterview = class extends BaseEntity {
|
|
5464
5669
|
};
|
|
5465
5670
|
__decorateClass([
|
|
5466
|
-
|
|
5671
|
+
Column50({
|
|
5467
5672
|
name: "interview_id",
|
|
5468
5673
|
type: "integer",
|
|
5469
5674
|
comment: "Redundant explicit interview_id column (optional if using only relation"
|
|
5470
5675
|
}),
|
|
5471
|
-
|
|
5676
|
+
Index39()
|
|
5472
5677
|
], AIInterview.prototype, "interviewId", 2);
|
|
5473
5678
|
__decorateClass([
|
|
5474
|
-
|
|
5679
|
+
Column50({
|
|
5475
5680
|
name: "interview_invite_id",
|
|
5476
5681
|
type: "integer",
|
|
5477
5682
|
comment: "Redundant explicit interview_invite_id column (optional if using only relation"
|
|
5478
5683
|
})
|
|
5479
5684
|
], AIInterview.prototype, "interviewInviteId", 2);
|
|
5480
5685
|
__decorateClass([
|
|
5481
|
-
|
|
5686
|
+
Column50({
|
|
5482
5687
|
name: "candidate_id",
|
|
5483
5688
|
type: "integer",
|
|
5484
5689
|
comment: "Redundant explicit candidate_id column (optional if using only relation"
|
|
5485
5690
|
}),
|
|
5486
|
-
|
|
5691
|
+
Index39()
|
|
5487
5692
|
], AIInterview.prototype, "candidateId", 2);
|
|
5488
5693
|
__decorateClass([
|
|
5489
|
-
|
|
5694
|
+
Column50({
|
|
5490
5695
|
name: "job_id",
|
|
5491
5696
|
type: "integer",
|
|
5492
5697
|
comment: "Redundant explicit job_id column (optional if using only relation"
|
|
5493
5698
|
})
|
|
5494
5699
|
], AIInterview.prototype, "jobId", 2);
|
|
5495
5700
|
__decorateClass([
|
|
5496
|
-
|
|
5701
|
+
Column50({
|
|
5497
5702
|
name: "invite_token",
|
|
5498
5703
|
type: "varchar",
|
|
5499
5704
|
unique: true,
|
|
@@ -5502,38 +5707,38 @@ __decorateClass([
|
|
|
5502
5707
|
})
|
|
5503
5708
|
], AIInterview.prototype, "inviteToken", 2);
|
|
5504
5709
|
__decorateClass([
|
|
5505
|
-
|
|
5710
|
+
Column50({ name: "interview_type", type: "enum", enum: AIInterviewTypeEnum })
|
|
5506
5711
|
], AIInterview.prototype, "interviewType", 2);
|
|
5507
5712
|
__decorateClass([
|
|
5508
|
-
|
|
5713
|
+
Column50({
|
|
5509
5714
|
name: "interview_name",
|
|
5510
5715
|
type: "varchar",
|
|
5511
5716
|
comment: "Name of the interview"
|
|
5512
5717
|
})
|
|
5513
5718
|
], AIInterview.prototype, "interviewName", 2);
|
|
5514
5719
|
__decorateClass([
|
|
5515
|
-
|
|
5720
|
+
Column50({
|
|
5516
5721
|
name: "job_title",
|
|
5517
5722
|
type: "varchar",
|
|
5518
5723
|
comment: "Name of the job title for that the AI interview was conducted"
|
|
5519
5724
|
})
|
|
5520
5725
|
], AIInterview.prototype, "jobTitle", 2);
|
|
5521
5726
|
__decorateClass([
|
|
5522
|
-
|
|
5727
|
+
Column50({
|
|
5523
5728
|
type: "enum",
|
|
5524
5729
|
enum: AIInterviewStatusEnum,
|
|
5525
5730
|
default: "IN_PROGRESS" /* IN_PROGRESS */
|
|
5526
5731
|
})
|
|
5527
5732
|
], AIInterview.prototype, "status", 2);
|
|
5528
5733
|
__decorateClass([
|
|
5529
|
-
|
|
5734
|
+
Column50({
|
|
5530
5735
|
name: "started_at",
|
|
5531
5736
|
type: "timestamp with time zone",
|
|
5532
5737
|
comment: "Timestamp when the interview was started"
|
|
5533
5738
|
})
|
|
5534
5739
|
], AIInterview.prototype, "startedAt", 2);
|
|
5535
5740
|
__decorateClass([
|
|
5536
|
-
|
|
5741
|
+
Column50({
|
|
5537
5742
|
name: "completed_at",
|
|
5538
5743
|
type: "timestamp with time zone",
|
|
5539
5744
|
nullable: true,
|
|
@@ -5541,7 +5746,7 @@ __decorateClass([
|
|
|
5541
5746
|
})
|
|
5542
5747
|
], AIInterview.prototype, "completedAt", 2);
|
|
5543
5748
|
__decorateClass([
|
|
5544
|
-
|
|
5749
|
+
Column50({
|
|
5545
5750
|
name: "duration_minutes",
|
|
5546
5751
|
type: "integer",
|
|
5547
5752
|
nullable: true,
|
|
@@ -5549,7 +5754,7 @@ __decorateClass([
|
|
|
5549
5754
|
})
|
|
5550
5755
|
], AIInterview.prototype, "durationMinutes", 2);
|
|
5551
5756
|
__decorateClass([
|
|
5552
|
-
|
|
5757
|
+
Column50({
|
|
5553
5758
|
name: "overall_score",
|
|
5554
5759
|
type: "decimal",
|
|
5555
5760
|
precision: 5,
|
|
@@ -5559,92 +5764,92 @@ __decorateClass([
|
|
|
5559
5764
|
})
|
|
5560
5765
|
], AIInterview.prototype, "overallScore", 2);
|
|
5561
5766
|
__decorateClass([
|
|
5562
|
-
|
|
5563
|
-
|
|
5767
|
+
ManyToOne40(() => Interview, { onDelete: "CASCADE" }),
|
|
5768
|
+
JoinColumn40({ name: "interview_id" })
|
|
5564
5769
|
], AIInterview.prototype, "interview", 2);
|
|
5565
5770
|
__decorateClass([
|
|
5566
|
-
|
|
5567
|
-
|
|
5771
|
+
ManyToOne40(() => InterviewInvite, { onDelete: "CASCADE" }),
|
|
5772
|
+
JoinColumn40({ name: "interview_invite_id" })
|
|
5568
5773
|
], AIInterview.prototype, "interviewInvite", 2);
|
|
5569
5774
|
__decorateClass([
|
|
5570
|
-
|
|
5571
|
-
|
|
5775
|
+
ManyToOne40(() => User, { onDelete: "CASCADE" }),
|
|
5776
|
+
JoinColumn40({ name: "candidate_id" })
|
|
5572
5777
|
], AIInterview.prototype, "candidate", 2);
|
|
5573
5778
|
__decorateClass([
|
|
5574
|
-
|
|
5575
|
-
|
|
5779
|
+
ManyToOne40(() => Job, { onDelete: "CASCADE" }),
|
|
5780
|
+
JoinColumn40({ name: "job_id" })
|
|
5576
5781
|
], AIInterview.prototype, "job", 2);
|
|
5577
5782
|
AIInterview = __decorateClass([
|
|
5578
|
-
|
|
5783
|
+
Entity49("ai_interviews")
|
|
5579
5784
|
], AIInterview);
|
|
5580
5785
|
|
|
5581
5786
|
// src/entities/plan.entity.ts
|
|
5582
|
-
import { Entity as
|
|
5787
|
+
import { Entity as Entity51, Column as Column52, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
5583
5788
|
|
|
5584
5789
|
// src/entities/feature.entity.ts
|
|
5585
|
-
import { Entity as
|
|
5790
|
+
import { Entity as Entity50, Column as Column51, ManyToMany as ManyToMany2 } from "typeorm";
|
|
5586
5791
|
var Feature = class extends BaseEntity {
|
|
5587
5792
|
};
|
|
5588
5793
|
__decorateClass([
|
|
5589
|
-
|
|
5794
|
+
Column51({ name: "name", type: "varchar", unique: true })
|
|
5590
5795
|
], Feature.prototype, "name", 2);
|
|
5591
5796
|
__decorateClass([
|
|
5592
5797
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
5593
5798
|
], Feature.prototype, "plans", 2);
|
|
5594
5799
|
Feature = __decorateClass([
|
|
5595
|
-
|
|
5800
|
+
Entity50("features")
|
|
5596
5801
|
], Feature);
|
|
5597
5802
|
|
|
5598
5803
|
// src/entities/plan.entity.ts
|
|
5599
5804
|
var Plan = class extends BaseEntity {
|
|
5600
5805
|
};
|
|
5601
5806
|
__decorateClass([
|
|
5602
|
-
|
|
5807
|
+
Column52({ name: "name", type: "varchar", unique: true })
|
|
5603
5808
|
], Plan.prototype, "name", 2);
|
|
5604
5809
|
__decorateClass([
|
|
5605
|
-
|
|
5810
|
+
Column52({ name: "description", type: "varchar", nullable: true })
|
|
5606
5811
|
], Plan.prototype, "description", 2);
|
|
5607
5812
|
__decorateClass([
|
|
5608
|
-
|
|
5813
|
+
Column52({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5609
5814
|
], Plan.prototype, "price", 2);
|
|
5610
5815
|
__decorateClass([
|
|
5611
|
-
|
|
5816
|
+
Column52({ name: "billing_period", type: "varchar" })
|
|
5612
5817
|
], Plan.prototype, "billingPeriod", 2);
|
|
5613
5818
|
__decorateClass([
|
|
5614
|
-
|
|
5819
|
+
Column52({ name: "is_current", type: "boolean", default: false })
|
|
5615
5820
|
], Plan.prototype, "isCurrent", 2);
|
|
5616
5821
|
__decorateClass([
|
|
5617
5822
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5618
5823
|
JoinTable()
|
|
5619
5824
|
], Plan.prototype, "features", 2);
|
|
5620
5825
|
Plan = __decorateClass([
|
|
5621
|
-
|
|
5826
|
+
Entity51("plans")
|
|
5622
5827
|
], Plan);
|
|
5623
5828
|
|
|
5624
5829
|
// src/entities/cms.entity.ts
|
|
5625
|
-
import { Entity as
|
|
5830
|
+
import { Entity as Entity52, Column as Column53 } from "typeorm";
|
|
5626
5831
|
var Cms = class extends BaseEntity {
|
|
5627
5832
|
};
|
|
5628
5833
|
__decorateClass([
|
|
5629
|
-
|
|
5834
|
+
Column53({ name: "title", type: "varchar", nullable: true })
|
|
5630
5835
|
], Cms.prototype, "title", 2);
|
|
5631
5836
|
__decorateClass([
|
|
5632
|
-
|
|
5837
|
+
Column53({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5633
5838
|
], Cms.prototype, "slug", 2);
|
|
5634
5839
|
__decorateClass([
|
|
5635
|
-
|
|
5840
|
+
Column53({ name: "content", type: "varchar", nullable: true })
|
|
5636
5841
|
], Cms.prototype, "content", 2);
|
|
5637
5842
|
__decorateClass([
|
|
5638
|
-
|
|
5843
|
+
Column53({ name: "is_active", type: "boolean", default: true })
|
|
5639
5844
|
], Cms.prototype, "isActive", 2);
|
|
5640
5845
|
Cms = __decorateClass([
|
|
5641
|
-
|
|
5846
|
+
Entity52("cms")
|
|
5642
5847
|
], Cms);
|
|
5643
5848
|
|
|
5644
5849
|
// src/entities/lead.entity.ts
|
|
5645
5850
|
import {
|
|
5646
|
-
Entity as
|
|
5647
|
-
Column as
|
|
5851
|
+
Entity as Entity53,
|
|
5852
|
+
Column as Column54
|
|
5648
5853
|
} from "typeorm";
|
|
5649
5854
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5650
5855
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -5654,22 +5859,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5654
5859
|
var Lead = class extends BaseEntity {
|
|
5655
5860
|
};
|
|
5656
5861
|
__decorateClass([
|
|
5657
|
-
|
|
5862
|
+
Column54({ name: "name", type: "varchar", nullable: true })
|
|
5658
5863
|
], Lead.prototype, "name", 2);
|
|
5659
5864
|
__decorateClass([
|
|
5660
|
-
|
|
5865
|
+
Column54({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5661
5866
|
], Lead.prototype, "mobileCode", 2);
|
|
5662
5867
|
__decorateClass([
|
|
5663
|
-
|
|
5868
|
+
Column54({ name: "mobile", type: "varchar", nullable: true })
|
|
5664
5869
|
], Lead.prototype, "mobile", 2);
|
|
5665
5870
|
__decorateClass([
|
|
5666
|
-
|
|
5871
|
+
Column54({ name: "email", type: "varchar", nullable: true })
|
|
5667
5872
|
], Lead.prototype, "email", 2);
|
|
5668
5873
|
__decorateClass([
|
|
5669
|
-
|
|
5874
|
+
Column54({ name: "description", type: "varchar", nullable: true })
|
|
5670
5875
|
], Lead.prototype, "description", 2);
|
|
5671
5876
|
__decorateClass([
|
|
5672
|
-
|
|
5877
|
+
Column54({
|
|
5673
5878
|
name: "category",
|
|
5674
5879
|
type: "enum",
|
|
5675
5880
|
enum: CategoryEmum,
|
|
@@ -5677,7 +5882,7 @@ __decorateClass([
|
|
|
5677
5882
|
})
|
|
5678
5883
|
], Lead.prototype, "category", 2);
|
|
5679
5884
|
Lead = __decorateClass([
|
|
5680
|
-
|
|
5885
|
+
Entity53("leads")
|
|
5681
5886
|
], Lead);
|
|
5682
5887
|
|
|
5683
5888
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -5918,7 +6123,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
5918
6123
|
], ClientFreelancerRecommendation);
|
|
5919
6124
|
|
|
5920
6125
|
// src/entities/commission.entity.ts
|
|
5921
|
-
import { Entity as
|
|
6126
|
+
import { Entity as Entity54, Column as Column55 } from "typeorm";
|
|
5922
6127
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
5923
6128
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
5924
6129
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -5927,7 +6132,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
5927
6132
|
var Commission = class extends BaseEntity {
|
|
5928
6133
|
};
|
|
5929
6134
|
__decorateClass([
|
|
5930
|
-
|
|
6135
|
+
Column55({
|
|
5931
6136
|
name: "freelancer_commission_type",
|
|
5932
6137
|
type: "enum",
|
|
5933
6138
|
enum: CommissionTypeEnum,
|
|
@@ -5935,10 +6140,10 @@ __decorateClass([
|
|
|
5935
6140
|
})
|
|
5936
6141
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
5937
6142
|
__decorateClass([
|
|
5938
|
-
|
|
6143
|
+
Column55({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
5939
6144
|
], Commission.prototype, "freelancerCommission", 2);
|
|
5940
6145
|
__decorateClass([
|
|
5941
|
-
|
|
6146
|
+
Column55({
|
|
5942
6147
|
name: "client_commission_type",
|
|
5943
6148
|
type: "enum",
|
|
5944
6149
|
enum: CommissionTypeEnum,
|
|
@@ -5946,10 +6151,10 @@ __decorateClass([
|
|
|
5946
6151
|
})
|
|
5947
6152
|
], Commission.prototype, "clientCommissionType", 2);
|
|
5948
6153
|
__decorateClass([
|
|
5949
|
-
|
|
6154
|
+
Column55({ name: "client_commission", type: "integer", default: 0 })
|
|
5950
6155
|
], Commission.prototype, "clientCommission", 2);
|
|
5951
6156
|
Commission = __decorateClass([
|
|
5952
|
-
|
|
6157
|
+
Entity54("commissions")
|
|
5953
6158
|
], Commission);
|
|
5954
6159
|
export {
|
|
5955
6160
|
ADMIN_FREELANCER_PATTERN,
|