@experts_hub/shared 1.0.335 → 1.0.337
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/f2f-interview-reschedule-request.entity.d.ts +17 -0
- package/dist/entities/f2f-interview.entity.d.ts +2 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +608 -550
- package/dist/index.mjs +677 -613
- package/dist/modules/onboarding/dto/client-create-account.dto.d.ts +1 -0
- package/dist/modules/onboarding/dto/freelancer-create-account.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -248,7 +248,8 @@ import {
|
|
|
248
248
|
Matches as Matches3,
|
|
249
249
|
MinLength as MinLength3,
|
|
250
250
|
MaxLength as MaxLength3,
|
|
251
|
-
IsString as IsString3
|
|
251
|
+
IsString as IsString3,
|
|
252
|
+
IsOptional as IsOptional2
|
|
252
253
|
} from "class-validator";
|
|
253
254
|
|
|
254
255
|
// src/decorators/match.decorator.ts
|
|
@@ -453,6 +454,9 @@ __decorateClass([
|
|
|
453
454
|
IsNotEmpty10({ message: "Please enter confirm password." }),
|
|
454
455
|
Match("password", { message: "Passwords do not match" })
|
|
455
456
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
457
|
+
__decorateClass([
|
|
458
|
+
IsOptional2()
|
|
459
|
+
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
456
460
|
|
|
457
461
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
458
462
|
import { IsUUID, IsNotEmpty as IsNotEmpty11 } from "class-validator";
|
|
@@ -500,7 +504,7 @@ __decorateClass([
|
|
|
500
504
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
501
505
|
|
|
502
506
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
503
|
-
import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty16, IsOptional as
|
|
507
|
+
import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty16, IsOptional as IsOptional3 } from "class-validator";
|
|
504
508
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
505
509
|
};
|
|
506
510
|
__decorateClass([
|
|
@@ -514,7 +518,7 @@ __decorateClass([
|
|
|
514
518
|
IsNotEmpty16({ message: "Please enter assessment status." })
|
|
515
519
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
516
520
|
__decorateClass([
|
|
517
|
-
|
|
521
|
+
IsOptional3()
|
|
518
522
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
519
523
|
|
|
520
524
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
@@ -536,7 +540,7 @@ import {
|
|
|
536
540
|
IsString as IsString4,
|
|
537
541
|
IsNotEmpty as IsNotEmpty18,
|
|
538
542
|
IsIn,
|
|
539
|
-
IsOptional as
|
|
543
|
+
IsOptional as IsOptional4
|
|
540
544
|
} from "class-validator";
|
|
541
545
|
var FreelancerProfileQuestionDto = class {
|
|
542
546
|
};
|
|
@@ -559,13 +563,13 @@ __decorateClass([
|
|
|
559
563
|
IsNotEmpty18({ message: "Please enter answer." })
|
|
560
564
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
561
565
|
__decorateClass([
|
|
562
|
-
|
|
566
|
+
IsOptional4()
|
|
563
567
|
], FreelancerProfileQuestionDto.prototype, "currency", 2);
|
|
564
568
|
|
|
565
569
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
566
570
|
import {
|
|
567
571
|
IsNotEmpty as IsNotEmpty19,
|
|
568
|
-
IsOptional as
|
|
572
|
+
IsOptional as IsOptional5,
|
|
569
573
|
IsUrl,
|
|
570
574
|
IsString as IsString5,
|
|
571
575
|
IsUUID as IsUUID9
|
|
@@ -587,7 +591,7 @@ __decorateClass([
|
|
|
587
591
|
)
|
|
588
592
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
589
593
|
__decorateClass([
|
|
590
|
-
|
|
594
|
+
IsOptional5(),
|
|
591
595
|
IsUrl(
|
|
592
596
|
{ require_protocol: false },
|
|
593
597
|
{
|
|
@@ -596,7 +600,7 @@ __decorateClass([
|
|
|
596
600
|
)
|
|
597
601
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
598
602
|
__decorateClass([
|
|
599
|
-
|
|
603
|
+
IsOptional5(),
|
|
600
604
|
IsUrl(
|
|
601
605
|
{ require_protocol: false },
|
|
602
606
|
{
|
|
@@ -605,7 +609,7 @@ __decorateClass([
|
|
|
605
609
|
)
|
|
606
610
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
607
611
|
__decorateClass([
|
|
608
|
-
|
|
612
|
+
IsOptional5(),
|
|
609
613
|
IsUrl(
|
|
610
614
|
{ require_protocol: false },
|
|
611
615
|
{
|
|
@@ -614,7 +618,7 @@ __decorateClass([
|
|
|
614
618
|
)
|
|
615
619
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
616
620
|
__decorateClass([
|
|
617
|
-
|
|
621
|
+
IsOptional5(),
|
|
618
622
|
IsUrl(
|
|
619
623
|
{ require_protocol: false },
|
|
620
624
|
{
|
|
@@ -664,7 +668,8 @@ import {
|
|
|
664
668
|
Matches as Matches4,
|
|
665
669
|
MinLength as MinLength4,
|
|
666
670
|
MaxLength as MaxLength4,
|
|
667
|
-
IsString as IsString7
|
|
671
|
+
IsString as IsString7,
|
|
672
|
+
IsOptional as IsOptional6
|
|
668
673
|
} from "class-validator";
|
|
669
674
|
var ClientCreateAccountDto = class {
|
|
670
675
|
};
|
|
@@ -697,6 +702,9 @@ __decorateClass([
|
|
|
697
702
|
IsNotEmpty21({ message: "Please enter confirm password." }),
|
|
698
703
|
Match("password", { message: "Passwords do not match" })
|
|
699
704
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
705
|
+
__decorateClass([
|
|
706
|
+
IsOptional6()
|
|
707
|
+
], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
700
708
|
|
|
701
709
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
702
710
|
var RESUME_PARSER_PATTERN = {
|
|
@@ -756,7 +764,7 @@ __decorateClass([
|
|
|
756
764
|
|
|
757
765
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
758
766
|
import { Transform } from "class-transformer";
|
|
759
|
-
import { IsNotEmpty as IsNotEmpty23, IsOptional as
|
|
767
|
+
import { IsNotEmpty as IsNotEmpty23, IsOptional as IsOptional7, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength5 } from "class-validator";
|
|
760
768
|
var UpdateSubAdminDto = class {
|
|
761
769
|
};
|
|
762
770
|
__decorateClass([
|
|
@@ -778,7 +786,7 @@ __decorateClass([
|
|
|
778
786
|
IsNotEmpty23({ message: "Please enter mobile number." })
|
|
779
787
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
780
788
|
__decorateClass([
|
|
781
|
-
|
|
789
|
+
IsOptional7(),
|
|
782
790
|
Transform(({ value }) => value === null || value === "" ? void 0 : value),
|
|
783
791
|
MinLength5(6, { message: "Password must be at least 6 characters." }),
|
|
784
792
|
MaxLength5(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -807,7 +815,7 @@ import {
|
|
|
807
815
|
IsEmail as IsEmail4,
|
|
808
816
|
Length as Length2,
|
|
809
817
|
IsUrl as IsUrl2,
|
|
810
|
-
IsOptional as
|
|
818
|
+
IsOptional as IsOptional8,
|
|
811
819
|
ValidateIf as ValidateIf2
|
|
812
820
|
} from "class-validator";
|
|
813
821
|
var UpdateCompanyProfileDto = class {
|
|
@@ -820,7 +828,7 @@ __decorateClass([
|
|
|
820
828
|
})
|
|
821
829
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
822
830
|
__decorateClass([
|
|
823
|
-
|
|
831
|
+
IsOptional8(),
|
|
824
832
|
ValidateIf2((o) => o.webSite !== ""),
|
|
825
833
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
826
834
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
@@ -845,7 +853,7 @@ __decorateClass([
|
|
|
845
853
|
IsEmail4()
|
|
846
854
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
847
855
|
__decorateClass([
|
|
848
|
-
|
|
856
|
+
IsOptional8(),
|
|
849
857
|
IsString9({ message: "About company must be a string." })
|
|
850
858
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
851
859
|
|
|
@@ -881,7 +889,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
881
889
|
// src/modules/question/dto/create-question.dto.ts
|
|
882
890
|
import {
|
|
883
891
|
IsNotEmpty as IsNotEmpty26,
|
|
884
|
-
IsOptional as
|
|
892
|
+
IsOptional as IsOptional9,
|
|
885
893
|
IsBoolean as IsBoolean2
|
|
886
894
|
} from "class-validator";
|
|
887
895
|
var CreateQuestionDto = class {
|
|
@@ -899,7 +907,7 @@ __decorateClass([
|
|
|
899
907
|
IsNotEmpty26({ message: "Please enter options." })
|
|
900
908
|
], CreateQuestionDto.prototype, "options", 2);
|
|
901
909
|
__decorateClass([
|
|
902
|
-
|
|
910
|
+
IsOptional9(),
|
|
903
911
|
IsBoolean2({ message: "Whether the question status active" })
|
|
904
912
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
905
913
|
|
|
@@ -935,7 +943,7 @@ import {
|
|
|
935
943
|
IsArray,
|
|
936
944
|
ArrayNotEmpty,
|
|
937
945
|
IsNumber,
|
|
938
|
-
IsOptional as
|
|
946
|
+
IsOptional as IsOptional10,
|
|
939
947
|
IsEnum as IsEnum8,
|
|
940
948
|
Min,
|
|
941
949
|
ValidateIf as ValidateIf3
|
|
@@ -959,7 +967,7 @@ var JobBasicInformationDto = class {
|
|
|
959
967
|
}
|
|
960
968
|
};
|
|
961
969
|
__decorateClass([
|
|
962
|
-
|
|
970
|
+
IsOptional10(),
|
|
963
971
|
Type(() => Boolean)
|
|
964
972
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
965
973
|
__decorateClass([
|
|
@@ -967,7 +975,7 @@ __decorateClass([
|
|
|
967
975
|
IsString11({ message: "Job role must be a string" })
|
|
968
976
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
969
977
|
__decorateClass([
|
|
970
|
-
|
|
978
|
+
IsOptional10(),
|
|
971
979
|
IsString11({ message: "Note must be a string" })
|
|
972
980
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
973
981
|
__decorateClass([
|
|
@@ -1043,12 +1051,12 @@ __decorateClass([
|
|
|
1043
1051
|
__decorateClass([
|
|
1044
1052
|
ValidateIf3((o) => !o.isDraft),
|
|
1045
1053
|
IsString11({ message: "Onboarding TAT must be a string" }),
|
|
1046
|
-
|
|
1054
|
+
IsOptional10()
|
|
1047
1055
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1048
1056
|
__decorateClass([
|
|
1049
1057
|
ValidateIf3((o) => !o.isDraft),
|
|
1050
1058
|
IsString11({ message: "Candidate communication skills must be a string" }),
|
|
1051
|
-
|
|
1059
|
+
IsOptional10()
|
|
1052
1060
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1053
1061
|
__decorateClass([
|
|
1054
1062
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1067,11 +1075,11 @@ __decorateClass([
|
|
|
1067
1075
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1068
1076
|
|
|
1069
1077
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1070
|
-
import { IsOptional as
|
|
1078
|
+
import { IsOptional as IsOptional11, IsString as IsString12, MaxLength as MaxLength6 } from "class-validator";
|
|
1071
1079
|
var JobAdditionalCommentDto = class {
|
|
1072
1080
|
};
|
|
1073
1081
|
__decorateClass([
|
|
1074
|
-
|
|
1082
|
+
IsOptional11(),
|
|
1075
1083
|
IsString12({ message: "Additional comment must be a string" }),
|
|
1076
1084
|
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1077
1085
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
@@ -1153,7 +1161,7 @@ __decorateClass([
|
|
|
1153
1161
|
|
|
1154
1162
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1155
1163
|
import {
|
|
1156
|
-
IsOptional as
|
|
1164
|
+
IsOptional as IsOptional12,
|
|
1157
1165
|
IsString as IsString15,
|
|
1158
1166
|
IsEmail as IsEmail5,
|
|
1159
1167
|
IsNumber as IsNumber2,
|
|
@@ -1203,7 +1211,7 @@ __decorateClass([
|
|
|
1203
1211
|
IsString15({ message: "Please enter valid mobile number." })
|
|
1204
1212
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1205
1213
|
__decorateClass([
|
|
1206
|
-
|
|
1214
|
+
IsOptional12(),
|
|
1207
1215
|
IsNumber2()
|
|
1208
1216
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1209
1217
|
__decorateClass([
|
|
@@ -1231,35 +1239,35 @@ __decorateClass([
|
|
|
1231
1239
|
})
|
|
1232
1240
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1233
1241
|
__decorateClass([
|
|
1234
|
-
|
|
1242
|
+
IsOptional12(),
|
|
1235
1243
|
IsString15()
|
|
1236
1244
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1237
1245
|
__decorateClass([
|
|
1238
|
-
|
|
1246
|
+
IsOptional12(),
|
|
1239
1247
|
IsString15()
|
|
1240
1248
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1241
1249
|
__decorateClass([
|
|
1242
|
-
|
|
1250
|
+
IsOptional12(),
|
|
1243
1251
|
IsString15()
|
|
1244
1252
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1245
1253
|
__decorateClass([
|
|
1246
|
-
|
|
1254
|
+
IsOptional12(),
|
|
1247
1255
|
IsString15()
|
|
1248
1256
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1249
1257
|
__decorateClass([
|
|
1250
|
-
|
|
1258
|
+
IsOptional12(),
|
|
1251
1259
|
IsString15()
|
|
1252
1260
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1253
1261
|
__decorateClass([
|
|
1254
|
-
|
|
1262
|
+
IsOptional12(),
|
|
1255
1263
|
IsString15()
|
|
1256
1264
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1257
1265
|
__decorateClass([
|
|
1258
|
-
|
|
1266
|
+
IsOptional12(),
|
|
1259
1267
|
IsString15()
|
|
1260
1268
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1261
1269
|
__decorateClass([
|
|
1262
|
-
|
|
1270
|
+
IsOptional12(),
|
|
1263
1271
|
IsString15()
|
|
1264
1272
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1265
1273
|
|
|
@@ -1274,7 +1282,7 @@ var BANK_PATTERN = {
|
|
|
1274
1282
|
import {
|
|
1275
1283
|
IsEnum as IsEnum11,
|
|
1276
1284
|
IsNotEmpty as IsNotEmpty32,
|
|
1277
|
-
IsOptional as
|
|
1285
|
+
IsOptional as IsOptional13,
|
|
1278
1286
|
ValidateIf as ValidateIf4
|
|
1279
1287
|
} from "class-validator";
|
|
1280
1288
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1294,7 +1302,7 @@ __decorateClass([
|
|
|
1294
1302
|
IsNotEmpty32({ message: "Please enter Email." })
|
|
1295
1303
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1296
1304
|
__decorateClass([
|
|
1297
|
-
|
|
1305
|
+
IsOptional13()
|
|
1298
1306
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1299
1307
|
__decorateClass([
|
|
1300
1308
|
IsNotEmpty32({ message: "Please enter Account Number." })
|
|
@@ -1322,7 +1330,7 @@ __decorateClass([
|
|
|
1322
1330
|
IsNotEmpty32({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1323
1331
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1324
1332
|
__decorateClass([
|
|
1325
|
-
|
|
1333
|
+
IsOptional13()
|
|
1326
1334
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1327
1335
|
__decorateClass([
|
|
1328
1336
|
IsEnum11(BankAccountScope, {
|
|
@@ -1384,24 +1392,24 @@ import {
|
|
|
1384
1392
|
IsEnum as IsEnum13,
|
|
1385
1393
|
IsInt,
|
|
1386
1394
|
IsNotEmpty as IsNotEmpty33,
|
|
1387
|
-
IsOptional as
|
|
1395
|
+
IsOptional as IsOptional14,
|
|
1388
1396
|
IsString as IsString16,
|
|
1389
1397
|
Max,
|
|
1390
1398
|
Min as Min2
|
|
1391
1399
|
} from "class-validator";
|
|
1392
1400
|
|
|
1393
1401
|
// src/entities/rating.entity.ts
|
|
1394
|
-
import { Entity as
|
|
1402
|
+
import { Entity as Entity46, Column as Column47, ManyToOne as ManyToOne40, JoinColumn as JoinColumn40, Index as Index39 } from "typeorm";
|
|
1395
1403
|
|
|
1396
1404
|
// src/entities/user.entity.ts
|
|
1397
1405
|
import {
|
|
1398
|
-
Entity as
|
|
1399
|
-
Column as
|
|
1400
|
-
OneToMany as
|
|
1406
|
+
Entity as Entity45,
|
|
1407
|
+
Column as Column46,
|
|
1408
|
+
OneToMany as OneToMany15,
|
|
1401
1409
|
OneToOne as OneToOne3,
|
|
1402
1410
|
Index as Index38,
|
|
1403
|
-
ManyToOne as
|
|
1404
|
-
JoinColumn as
|
|
1411
|
+
ManyToOne as ManyToOne39,
|
|
1412
|
+
JoinColumn as JoinColumn39
|
|
1405
1413
|
} from "typeorm";
|
|
1406
1414
|
|
|
1407
1415
|
// src/entities/base.entity.ts
|
|
@@ -2116,12 +2124,12 @@ CompanyProfile = __decorateClass([
|
|
|
2116
2124
|
|
|
2117
2125
|
// src/entities/job.entity.ts
|
|
2118
2126
|
import {
|
|
2119
|
-
Entity as
|
|
2120
|
-
Column as
|
|
2127
|
+
Entity as Entity20,
|
|
2128
|
+
Column as Column21,
|
|
2121
2129
|
Index as Index14,
|
|
2122
|
-
ManyToOne as
|
|
2123
|
-
JoinColumn as
|
|
2124
|
-
OneToMany as
|
|
2130
|
+
ManyToOne as ManyToOne18,
|
|
2131
|
+
JoinColumn as JoinColumn18,
|
|
2132
|
+
OneToMany as OneToMany7
|
|
2125
2133
|
} from "typeorm";
|
|
2126
2134
|
|
|
2127
2135
|
// src/entities/job-skill.entity.ts
|
|
@@ -2267,12 +2275,12 @@ JobApplication = __decorateClass([
|
|
|
2267
2275
|
|
|
2268
2276
|
// src/entities/interview.entity.ts
|
|
2269
2277
|
import {
|
|
2270
|
-
Entity as
|
|
2271
|
-
Column as
|
|
2278
|
+
Entity as Entity18,
|
|
2279
|
+
Column as Column19,
|
|
2272
2280
|
Index as Index12,
|
|
2273
|
-
ManyToOne as
|
|
2274
|
-
JoinColumn as
|
|
2275
|
-
OneToMany as
|
|
2281
|
+
ManyToOne as ManyToOne16,
|
|
2282
|
+
JoinColumn as JoinColumn16,
|
|
2283
|
+
OneToMany as OneToMany6
|
|
2276
2284
|
} from "typeorm";
|
|
2277
2285
|
|
|
2278
2286
|
// src/entities/interview-skill.entity.ts
|
|
@@ -2484,11 +2492,12 @@ AiInterview = __decorateClass([
|
|
|
2484
2492
|
|
|
2485
2493
|
// src/entities/f2f-interview.entity.ts
|
|
2486
2494
|
import {
|
|
2487
|
-
Entity as
|
|
2488
|
-
Column as
|
|
2489
|
-
ManyToOne as
|
|
2490
|
-
JoinColumn as
|
|
2491
|
-
OneToOne as OneToOne2
|
|
2495
|
+
Entity as Entity17,
|
|
2496
|
+
Column as Column18,
|
|
2497
|
+
ManyToOne as ManyToOne15,
|
|
2498
|
+
JoinColumn as JoinColumn15,
|
|
2499
|
+
OneToOne as OneToOne2,
|
|
2500
|
+
OneToMany as OneToMany5
|
|
2492
2501
|
} from "typeorm";
|
|
2493
2502
|
|
|
2494
2503
|
// src/entities/calendly-meeting.entity.ts
|
|
@@ -2538,6 +2547,53 @@ CalendlyMeeting = __decorateClass([
|
|
|
2538
2547
|
Unique("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
|
|
2539
2548
|
], CalendlyMeeting);
|
|
2540
2549
|
|
|
2550
|
+
// src/entities/f2f-interview-reschedule-request.entity.ts
|
|
2551
|
+
import {
|
|
2552
|
+
Entity as Entity16,
|
|
2553
|
+
Column as Column17,
|
|
2554
|
+
ManyToOne as ManyToOne14,
|
|
2555
|
+
JoinColumn as JoinColumn14
|
|
2556
|
+
} from "typeorm";
|
|
2557
|
+
var F2fInterviewRescheduleRequestStatusEnum = /* @__PURE__ */ ((F2fInterviewRescheduleRequestStatusEnum2) => {
|
|
2558
|
+
F2fInterviewRescheduleRequestStatusEnum2["PENDING"] = "PENDING";
|
|
2559
|
+
F2fInterviewRescheduleRequestStatusEnum2["APPROVED"] = "APPROVED";
|
|
2560
|
+
F2fInterviewRescheduleRequestStatusEnum2["REJECTED"] = "REJECTED";
|
|
2561
|
+
return F2fInterviewRescheduleRequestStatusEnum2;
|
|
2562
|
+
})(F2fInterviewRescheduleRequestStatusEnum || {});
|
|
2563
|
+
var F2fInterviewRescheduleRequest = class extends BaseEntity {
|
|
2564
|
+
};
|
|
2565
|
+
__decorateClass([
|
|
2566
|
+
Column17({ name: "candidate_id", type: "integer", nullable: true })
|
|
2567
|
+
], F2fInterviewRescheduleRequest.prototype, "candidateId", 2);
|
|
2568
|
+
__decorateClass([
|
|
2569
|
+
ManyToOne14(() => User, (user) => user.freelancerF2FInterviewRescheduleRequests, { nullable: true }),
|
|
2570
|
+
JoinColumn14({ name: "candidate_id" })
|
|
2571
|
+
], F2fInterviewRescheduleRequest.prototype, "candidate", 2);
|
|
2572
|
+
__decorateClass([
|
|
2573
|
+
Column17({ name: "f2finterview_id", type: "integer", nullable: true })
|
|
2574
|
+
], F2fInterviewRescheduleRequest.prototype, "f2fInterviewId", 2);
|
|
2575
|
+
__decorateClass([
|
|
2576
|
+
ManyToOne14(() => F2FInterview, (f2FInterview) => f2FInterview.rescheduleRequests),
|
|
2577
|
+
JoinColumn14({ name: "f2finterview_id" })
|
|
2578
|
+
], F2fInterviewRescheduleRequest.prototype, "f2fInterview", 2);
|
|
2579
|
+
__decorateClass([
|
|
2580
|
+
Column17({ name: "rescheduled_date", type: "timestamp with time zone", nullable: true })
|
|
2581
|
+
], F2fInterviewRescheduleRequest.prototype, "rescheduledDate", 2);
|
|
2582
|
+
__decorateClass([
|
|
2583
|
+
Column17({ name: "rescheduled_slot", type: "varchar", nullable: true })
|
|
2584
|
+
], F2fInterviewRescheduleRequest.prototype, "rescheduledSlot", 2);
|
|
2585
|
+
__decorateClass([
|
|
2586
|
+
Column17({
|
|
2587
|
+
name: "status",
|
|
2588
|
+
type: "enum",
|
|
2589
|
+
enum: F2fInterviewRescheduleRequestStatusEnum,
|
|
2590
|
+
default: "PENDING" /* PENDING */
|
|
2591
|
+
})
|
|
2592
|
+
], F2fInterviewRescheduleRequest.prototype, "status", 2);
|
|
2593
|
+
F2fInterviewRescheduleRequest = __decorateClass([
|
|
2594
|
+
Entity16("f2f_interview_reschedule_requests")
|
|
2595
|
+
], F2fInterviewRescheduleRequest);
|
|
2596
|
+
|
|
2541
2597
|
// src/entities/f2f-interview.entity.ts
|
|
2542
2598
|
var F2fInterviewStatusEnum = /* @__PURE__ */ ((F2fInterviewStatusEnum2) => {
|
|
2543
2599
|
F2fInterviewStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2553,58 +2609,58 @@ var F2fInterviewStatusEnum = /* @__PURE__ */ ((F2fInterviewStatusEnum2) => {
|
|
|
2553
2609
|
var F2FInterview = class extends BaseEntity {
|
|
2554
2610
|
};
|
|
2555
2611
|
__decorateClass([
|
|
2556
|
-
|
|
2612
|
+
Column18({ name: "interview_unique_id", type: "varchar", nullable: true, unique: true })
|
|
2557
2613
|
], F2FInterview.prototype, "interviewUniqueId", 2);
|
|
2558
2614
|
__decorateClass([
|
|
2559
|
-
|
|
2615
|
+
Column18({ name: "interview_id", type: "integer", nullable: true })
|
|
2560
2616
|
], F2FInterview.prototype, "interviewId", 2);
|
|
2561
2617
|
__decorateClass([
|
|
2562
|
-
|
|
2563
|
-
|
|
2618
|
+
ManyToOne15(() => Interview, (interview) => interview.aiInterviews),
|
|
2619
|
+
JoinColumn15({ name: "interview_id" })
|
|
2564
2620
|
], F2FInterview.prototype, "interview", 2);
|
|
2565
2621
|
__decorateClass([
|
|
2566
|
-
|
|
2622
|
+
Column18({ name: "interviwer_id", type: "integer", nullable: true })
|
|
2567
2623
|
], F2FInterview.prototype, "interviwerId", 2);
|
|
2568
2624
|
__decorateClass([
|
|
2569
|
-
|
|
2570
|
-
|
|
2625
|
+
ManyToOne15(() => User, (user) => user.clientF2FInterviews),
|
|
2626
|
+
JoinColumn15({ name: "interviwer_id" })
|
|
2571
2627
|
], F2FInterview.prototype, "interviwer", 2);
|
|
2572
2628
|
__decorateClass([
|
|
2573
|
-
|
|
2629
|
+
Column18({ name: "candidate_id", type: "integer", nullable: true })
|
|
2574
2630
|
], F2FInterview.prototype, "candidateId", 2);
|
|
2575
2631
|
__decorateClass([
|
|
2576
|
-
|
|
2577
|
-
|
|
2632
|
+
ManyToOne15(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
2633
|
+
JoinColumn15({ name: "candidate_id" })
|
|
2578
2634
|
], F2FInterview.prototype, "candidate", 2);
|
|
2579
2635
|
__decorateClass([
|
|
2580
|
-
|
|
2636
|
+
Column18({ name: "invitee_email", type: "varchar", nullable: true })
|
|
2581
2637
|
], F2FInterview.prototype, "inviteeEmail", 2);
|
|
2582
2638
|
__decorateClass([
|
|
2583
|
-
|
|
2639
|
+
Column18({ name: "invitee_name", type: "varchar", nullable: true })
|
|
2584
2640
|
], F2FInterview.prototype, "inviteeName", 2);
|
|
2585
2641
|
__decorateClass([
|
|
2586
|
-
|
|
2642
|
+
Column18({ name: "zoom_link", type: "varchar", nullable: true })
|
|
2587
2643
|
], F2FInterview.prototype, "meetingZoomLink", 2);
|
|
2588
2644
|
__decorateClass([
|
|
2589
|
-
|
|
2645
|
+
Column18({ name: "meeting_id", type: "varchar", nullable: true })
|
|
2590
2646
|
], F2FInterview.prototype, "meetingId", 2);
|
|
2591
2647
|
__decorateClass([
|
|
2592
|
-
|
|
2648
|
+
Column18({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
2593
2649
|
], F2FInterview.prototype, "meetingPasscode", 2);
|
|
2594
2650
|
__decorateClass([
|
|
2595
|
-
|
|
2651
|
+
Column18({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
2596
2652
|
], F2FInterview.prototype, "rescheduleUrl", 2);
|
|
2597
2653
|
__decorateClass([
|
|
2598
|
-
|
|
2654
|
+
Column18({ name: "cancel_url", type: "varchar", nullable: true })
|
|
2599
2655
|
], F2FInterview.prototype, "cancelUrl", 2);
|
|
2600
2656
|
__decorateClass([
|
|
2601
|
-
|
|
2657
|
+
Column18({ name: "event_name", type: "varchar", nullable: true })
|
|
2602
2658
|
], F2FInterview.prototype, "eventName", 2);
|
|
2603
2659
|
__decorateClass([
|
|
2604
|
-
|
|
2660
|
+
Column18({ name: "is_rescheduled", type: "boolean", default: false })
|
|
2605
2661
|
], F2FInterview.prototype, "isRescheduled", 2);
|
|
2606
2662
|
__decorateClass([
|
|
2607
|
-
|
|
2663
|
+
Column18({
|
|
2608
2664
|
name: "status",
|
|
2609
2665
|
type: "enum",
|
|
2610
2666
|
enum: F2fInterviewStatusEnum,
|
|
@@ -2612,32 +2668,35 @@ __decorateClass([
|
|
|
2612
2668
|
})
|
|
2613
2669
|
], F2FInterview.prototype, "status", 2);
|
|
2614
2670
|
__decorateClass([
|
|
2615
|
-
|
|
2671
|
+
Column18({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
2616
2672
|
], F2FInterview.prototype, "cancelledAt", 2);
|
|
2617
2673
|
__decorateClass([
|
|
2618
|
-
|
|
2674
|
+
Column18({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
2619
2675
|
], F2FInterview.prototype, "cancelReason", 2);
|
|
2620
2676
|
__decorateClass([
|
|
2621
|
-
|
|
2677
|
+
Column18({ name: "rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
2622
2678
|
], F2FInterview.prototype, "rescheduledAt", 2);
|
|
2623
2679
|
__decorateClass([
|
|
2624
|
-
|
|
2680
|
+
Column18({ name: "is_completed", type: "boolean", default: false })
|
|
2625
2681
|
], F2FInterview.prototype, "isCompleted", 2);
|
|
2626
2682
|
__decorateClass([
|
|
2627
|
-
|
|
2683
|
+
Column18({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
|
|
2628
2684
|
], F2FInterview.prototype, "meetingStartTime", 2);
|
|
2629
2685
|
__decorateClass([
|
|
2630
|
-
|
|
2686
|
+
Column18({ name: "meeting_end_time", type: "timestamp with time zone", nullable: true })
|
|
2631
2687
|
], F2FInterview.prototype, "meetingEndTime", 2);
|
|
2632
2688
|
__decorateClass([
|
|
2633
|
-
|
|
2689
|
+
Column18({ name: "calendly_meeting_id", type: "integer", nullable: true })
|
|
2634
2690
|
], F2FInterview.prototype, "calendlyMeetingId", 2);
|
|
2635
2691
|
__decorateClass([
|
|
2636
2692
|
OneToOne2(() => CalendlyMeeting),
|
|
2637
|
-
|
|
2693
|
+
JoinColumn15({ name: "calendly_meeting_id" })
|
|
2638
2694
|
], F2FInterview.prototype, "calendlyMeeting", 2);
|
|
2695
|
+
__decorateClass([
|
|
2696
|
+
OneToMany5(() => F2fInterviewRescheduleRequest, (f2FInterviewRescheduleRequest) => f2FInterviewRescheduleRequest.f2fInterview)
|
|
2697
|
+
], F2FInterview.prototype, "rescheduleRequests", 2);
|
|
2639
2698
|
F2FInterview = __decorateClass([
|
|
2640
|
-
|
|
2699
|
+
Entity17("f2f_interviews")
|
|
2641
2700
|
], F2FInterview);
|
|
2642
2701
|
|
|
2643
2702
|
// src/entities/interview.entity.ts
|
|
@@ -2652,7 +2711,7 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
2652
2711
|
var Interview = class extends BaseEntity {
|
|
2653
2712
|
};
|
|
2654
2713
|
__decorateClass([
|
|
2655
|
-
|
|
2714
|
+
Column19({
|
|
2656
2715
|
name: "interview_id",
|
|
2657
2716
|
type: "varchar",
|
|
2658
2717
|
unique: true,
|
|
@@ -2661,35 +2720,35 @@ __decorateClass([
|
|
|
2661
2720
|
Index12()
|
|
2662
2721
|
], Interview.prototype, "interviewId", 2);
|
|
2663
2722
|
__decorateClass([
|
|
2664
|
-
|
|
2723
|
+
Column19({ name: "user_id", type: "integer", nullable: true }),
|
|
2665
2724
|
Index12()
|
|
2666
2725
|
], Interview.prototype, "userId", 2);
|
|
2667
2726
|
__decorateClass([
|
|
2668
|
-
|
|
2669
|
-
|
|
2727
|
+
ManyToOne16(() => User, (user) => user.interviews),
|
|
2728
|
+
JoinColumn16({ name: "user_id" })
|
|
2670
2729
|
], Interview.prototype, "user", 2);
|
|
2671
2730
|
__decorateClass([
|
|
2672
|
-
|
|
2731
|
+
Column19({ name: "interview_name", type: "varchar", nullable: true })
|
|
2673
2732
|
], Interview.prototype, "interviewName", 2);
|
|
2674
2733
|
__decorateClass([
|
|
2675
|
-
|
|
2734
|
+
Column19({ name: "job_id", type: "integer" }),
|
|
2676
2735
|
Index12()
|
|
2677
2736
|
], Interview.prototype, "jobId", 2);
|
|
2678
2737
|
__decorateClass([
|
|
2679
|
-
|
|
2680
|
-
|
|
2738
|
+
ManyToOne16(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
2739
|
+
JoinColumn16({ name: "job_id" })
|
|
2681
2740
|
], Interview.prototype, "job", 2);
|
|
2682
2741
|
__decorateClass([
|
|
2683
|
-
|
|
2742
|
+
Column19({ name: "interview_type", type: "varchar", nullable: true })
|
|
2684
2743
|
], Interview.prototype, "interviewType", 2);
|
|
2685
2744
|
__decorateClass([
|
|
2686
|
-
|
|
2745
|
+
Column19({ name: "interview_language", type: "varchar", nullable: true })
|
|
2687
2746
|
], Interview.prototype, "interviewLanguage", 2);
|
|
2688
2747
|
__decorateClass([
|
|
2689
|
-
|
|
2748
|
+
Column19({ name: "allow_proctoring", type: "boolean", default: false })
|
|
2690
2749
|
], Interview.prototype, "allowProctoring", 2);
|
|
2691
2750
|
__decorateClass([
|
|
2692
|
-
|
|
2751
|
+
Column19({
|
|
2693
2752
|
name: "status",
|
|
2694
2753
|
type: "enum",
|
|
2695
2754
|
enum: InterviewStatusEnum,
|
|
@@ -2697,70 +2756,70 @@ __decorateClass([
|
|
|
2697
2756
|
})
|
|
2698
2757
|
], Interview.prototype, "status", 2);
|
|
2699
2758
|
__decorateClass([
|
|
2700
|
-
|
|
2759
|
+
OneToMany6(
|
|
2701
2760
|
() => InterviewSkill,
|
|
2702
2761
|
(interviewSkill) => interviewSkill.interview,
|
|
2703
2762
|
{ cascade: true }
|
|
2704
2763
|
)
|
|
2705
2764
|
], Interview.prototype, "interviewSkills", 2);
|
|
2706
2765
|
__decorateClass([
|
|
2707
|
-
|
|
2766
|
+
OneToMany6(
|
|
2708
2767
|
() => InterviewQuestion,
|
|
2709
2768
|
(interviewQuestion) => interviewQuestion.interview,
|
|
2710
2769
|
{ cascade: true }
|
|
2711
2770
|
)
|
|
2712
2771
|
], Interview.prototype, "interviewQuestions", 2);
|
|
2713
2772
|
__decorateClass([
|
|
2714
|
-
|
|
2773
|
+
OneToMany6(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
2715
2774
|
], Interview.prototype, "invites", 2);
|
|
2716
2775
|
__decorateClass([
|
|
2717
|
-
|
|
2776
|
+
OneToMany6(() => AiInterview, (aiInterview) => aiInterview.interview)
|
|
2718
2777
|
], Interview.prototype, "aiInterviews", 2);
|
|
2719
2778
|
__decorateClass([
|
|
2720
|
-
|
|
2779
|
+
OneToMany6(() => F2FInterview, (f2fInterview) => f2fInterview.interview)
|
|
2721
2780
|
], Interview.prototype, "f2fInterviews", 2);
|
|
2722
2781
|
Interview = __decorateClass([
|
|
2723
|
-
|
|
2782
|
+
Entity18("interviews")
|
|
2724
2783
|
], Interview);
|
|
2725
2784
|
|
|
2726
2785
|
// src/entities/job-recommendation.entity.ts
|
|
2727
|
-
import { Entity as
|
|
2786
|
+
import { Entity as Entity19, Column as Column20, Index as Index13, ManyToOne as ManyToOne17, JoinColumn as JoinColumn17, PrimaryGeneratedColumn as PrimaryGeneratedColumn5 } from "typeorm";
|
|
2728
2787
|
var JobRecommendation = class {
|
|
2729
2788
|
};
|
|
2730
2789
|
__decorateClass([
|
|
2731
2790
|
PrimaryGeneratedColumn5("increment", { type: "integer" })
|
|
2732
2791
|
], JobRecommendation.prototype, "id", 2);
|
|
2733
2792
|
__decorateClass([
|
|
2734
|
-
|
|
2793
|
+
Column20({ name: "job_id", type: "integer" }),
|
|
2735
2794
|
Index13()
|
|
2736
2795
|
], JobRecommendation.prototype, "jobId", 2);
|
|
2737
2796
|
__decorateClass([
|
|
2738
|
-
|
|
2739
|
-
|
|
2797
|
+
ManyToOne17(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2798
|
+
JoinColumn17({ name: "job_id" })
|
|
2740
2799
|
], JobRecommendation.prototype, "job", 2);
|
|
2741
2800
|
__decorateClass([
|
|
2742
|
-
|
|
2801
|
+
Column20({ name: "freelancer_id", type: "integer" }),
|
|
2743
2802
|
Index13()
|
|
2744
2803
|
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2745
2804
|
__decorateClass([
|
|
2746
|
-
|
|
2805
|
+
Column20({ name: "client_id", type: "integer" }),
|
|
2747
2806
|
Index13()
|
|
2748
2807
|
], JobRecommendation.prototype, "clientId", 2);
|
|
2749
2808
|
__decorateClass([
|
|
2750
|
-
|
|
2809
|
+
Column20({ name: "match_score", type: "numeric", precision: 5, scale: 4 })
|
|
2751
2810
|
], JobRecommendation.prototype, "matchScore", 2);
|
|
2752
2811
|
__decorateClass([
|
|
2753
|
-
|
|
2812
|
+
Column20({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2754
2813
|
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2755
2814
|
__decorateClass([
|
|
2756
|
-
|
|
2815
|
+
Column20({
|
|
2757
2816
|
name: "last_calculated_at",
|
|
2758
2817
|
type: "timestamp with time zone",
|
|
2759
2818
|
nullable: true
|
|
2760
2819
|
})
|
|
2761
2820
|
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
2762
2821
|
JobRecommendation = __decorateClass([
|
|
2763
|
-
|
|
2822
|
+
Entity19("job_recommendations")
|
|
2764
2823
|
], JobRecommendation);
|
|
2765
2824
|
|
|
2766
2825
|
// src/entities/job.entity.ts
|
|
@@ -2800,49 +2859,49 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
2800
2859
|
var Job = class extends BaseEntity {
|
|
2801
2860
|
};
|
|
2802
2861
|
__decorateClass([
|
|
2803
|
-
|
|
2862
|
+
Column21({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
2804
2863
|
], Job.prototype, "jobId", 2);
|
|
2805
2864
|
// individual index to find jobs by user
|
|
2806
2865
|
__decorateClass([
|
|
2807
|
-
|
|
2866
|
+
Column21({ name: "user_id", type: "integer", nullable: true }),
|
|
2808
2867
|
Index14()
|
|
2809
2868
|
], Job.prototype, "userId", 2);
|
|
2810
2869
|
__decorateClass([
|
|
2811
|
-
|
|
2812
|
-
|
|
2870
|
+
ManyToOne18(() => User, (user) => user.jobs),
|
|
2871
|
+
JoinColumn18({ name: "user_id" })
|
|
2813
2872
|
], Job.prototype, "user", 2);
|
|
2814
2873
|
__decorateClass([
|
|
2815
|
-
|
|
2874
|
+
Column21({ name: "country_id", type: "int", nullable: true })
|
|
2816
2875
|
], Job.prototype, "countryId", 2);
|
|
2817
2876
|
__decorateClass([
|
|
2818
|
-
|
|
2819
|
-
|
|
2877
|
+
ManyToOne18(() => Country),
|
|
2878
|
+
JoinColumn18({ name: "country_id" })
|
|
2820
2879
|
], Job.prototype, "country", 2);
|
|
2821
2880
|
__decorateClass([
|
|
2822
|
-
|
|
2881
|
+
Column21({ name: "state_id", type: "int", nullable: true })
|
|
2823
2882
|
], Job.prototype, "stateId", 2);
|
|
2824
2883
|
__decorateClass([
|
|
2825
|
-
|
|
2826
|
-
|
|
2884
|
+
ManyToOne18(() => State),
|
|
2885
|
+
JoinColumn18({ name: "state_id" })
|
|
2827
2886
|
], Job.prototype, "state", 2);
|
|
2828
2887
|
__decorateClass([
|
|
2829
|
-
|
|
2888
|
+
Column21({ name: "city_id", type: "int", nullable: true })
|
|
2830
2889
|
], Job.prototype, "cityId", 2);
|
|
2831
2890
|
__decorateClass([
|
|
2832
|
-
|
|
2833
|
-
|
|
2891
|
+
ManyToOne18(() => City),
|
|
2892
|
+
JoinColumn18({ name: "city_id" })
|
|
2834
2893
|
], Job.prototype, "city", 2);
|
|
2835
2894
|
__decorateClass([
|
|
2836
|
-
|
|
2895
|
+
Column21({ name: "job_role", type: "varchar", nullable: true })
|
|
2837
2896
|
], Job.prototype, "jobRole", 2);
|
|
2838
2897
|
__decorateClass([
|
|
2839
|
-
|
|
2898
|
+
Column21({ name: "note", type: "varchar", nullable: true })
|
|
2840
2899
|
], Job.prototype, "note", 2);
|
|
2841
2900
|
__decorateClass([
|
|
2842
|
-
|
|
2901
|
+
Column21({ name: "openings", type: "integer", default: 0 })
|
|
2843
2902
|
], Job.prototype, "openings", 2);
|
|
2844
2903
|
__decorateClass([
|
|
2845
|
-
|
|
2904
|
+
Column21({
|
|
2846
2905
|
name: "location",
|
|
2847
2906
|
type: "enum",
|
|
2848
2907
|
enum: JobLocationEnum,
|
|
@@ -2850,7 +2909,7 @@ __decorateClass([
|
|
|
2850
2909
|
})
|
|
2851
2910
|
], Job.prototype, "location", 2);
|
|
2852
2911
|
__decorateClass([
|
|
2853
|
-
|
|
2912
|
+
Column21({
|
|
2854
2913
|
name: "type_of_employment",
|
|
2855
2914
|
type: "enum",
|
|
2856
2915
|
enum: TypeOfEmploymentEnum,
|
|
@@ -2858,19 +2917,19 @@ __decorateClass([
|
|
|
2858
2917
|
})
|
|
2859
2918
|
], Job.prototype, "typeOfEmployment", 2);
|
|
2860
2919
|
__decorateClass([
|
|
2861
|
-
|
|
2920
|
+
Column21({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
2862
2921
|
], Job.prototype, "academicQualification", 2);
|
|
2863
2922
|
__decorateClass([
|
|
2864
|
-
|
|
2923
|
+
Column21({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
2865
2924
|
], Job.prototype, "yearsOfExperience", 2);
|
|
2866
2925
|
__decorateClass([
|
|
2867
|
-
|
|
2926
|
+
Column21({ name: "business_industry", type: "varchar", nullable: true })
|
|
2868
2927
|
], Job.prototype, "businessIndustry", 2);
|
|
2869
2928
|
__decorateClass([
|
|
2870
|
-
|
|
2929
|
+
Column21({ name: "currency", type: "varchar", default: "USD" })
|
|
2871
2930
|
], Job.prototype, "currency", 2);
|
|
2872
2931
|
__decorateClass([
|
|
2873
|
-
|
|
2932
|
+
Column21({
|
|
2874
2933
|
name: "expected_salary_from",
|
|
2875
2934
|
type: "decimal",
|
|
2876
2935
|
precision: 10,
|
|
@@ -2879,7 +2938,7 @@ __decorateClass([
|
|
|
2879
2938
|
})
|
|
2880
2939
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
2881
2940
|
__decorateClass([
|
|
2882
|
-
|
|
2941
|
+
Column21({
|
|
2883
2942
|
name: "expected_salary_to",
|
|
2884
2943
|
type: "decimal",
|
|
2885
2944
|
precision: 10,
|
|
@@ -2888,16 +2947,16 @@ __decorateClass([
|
|
|
2888
2947
|
})
|
|
2889
2948
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
2890
2949
|
__decorateClass([
|
|
2891
|
-
|
|
2950
|
+
Column21({ name: "tentative_start_date", type: "date", nullable: true })
|
|
2892
2951
|
], Job.prototype, "tentativeStartDate", 2);
|
|
2893
2952
|
__decorateClass([
|
|
2894
|
-
|
|
2953
|
+
Column21({ name: "tentative_end_date", type: "date", nullable: true })
|
|
2895
2954
|
], Job.prototype, "tentativeEndDate", 2);
|
|
2896
2955
|
__decorateClass([
|
|
2897
|
-
|
|
2956
|
+
Column21({ name: "duration", type: "varchar", nullable: true })
|
|
2898
2957
|
], Job.prototype, "duration", 2);
|
|
2899
2958
|
__decorateClass([
|
|
2900
|
-
|
|
2959
|
+
Column21({
|
|
2901
2960
|
name: "duration_type",
|
|
2902
2961
|
type: "enum",
|
|
2903
2962
|
enum: DurationTypeEnum,
|
|
@@ -2905,13 +2964,13 @@ __decorateClass([
|
|
|
2905
2964
|
})
|
|
2906
2965
|
], Job.prototype, "durationType", 2);
|
|
2907
2966
|
__decorateClass([
|
|
2908
|
-
|
|
2967
|
+
Column21({ name: "description", type: "varchar", nullable: true })
|
|
2909
2968
|
], Job.prototype, "description", 2);
|
|
2910
2969
|
__decorateClass([
|
|
2911
|
-
|
|
2970
|
+
Column21({ name: "additional_comment", type: "varchar", nullable: true })
|
|
2912
2971
|
], Job.prototype, "additionalComment", 2);
|
|
2913
2972
|
__decorateClass([
|
|
2914
|
-
|
|
2973
|
+
Column21({
|
|
2915
2974
|
name: "onboarding_tat",
|
|
2916
2975
|
type: "varchar",
|
|
2917
2976
|
length: 50,
|
|
@@ -2919,14 +2978,14 @@ __decorateClass([
|
|
|
2919
2978
|
})
|
|
2920
2979
|
], Job.prototype, "onboardingTat", 2);
|
|
2921
2980
|
__decorateClass([
|
|
2922
|
-
|
|
2981
|
+
Column21({
|
|
2923
2982
|
name: "candidate_communication_skills",
|
|
2924
2983
|
type: "varchar",
|
|
2925
2984
|
nullable: true
|
|
2926
2985
|
})
|
|
2927
2986
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
2928
2987
|
__decorateClass([
|
|
2929
|
-
|
|
2988
|
+
Column21({
|
|
2930
2989
|
name: "step_completed",
|
|
2931
2990
|
type: "enum",
|
|
2932
2991
|
enum: Step,
|
|
@@ -2934,7 +2993,7 @@ __decorateClass([
|
|
|
2934
2993
|
})
|
|
2935
2994
|
], Job.prototype, "stepCompleted", 2);
|
|
2936
2995
|
__decorateClass([
|
|
2937
|
-
|
|
2996
|
+
Column21({
|
|
2938
2997
|
name: "status",
|
|
2939
2998
|
type: "enum",
|
|
2940
2999
|
enum: JobStatusEnum,
|
|
@@ -2942,40 +3001,40 @@ __decorateClass([
|
|
|
2942
3001
|
})
|
|
2943
3002
|
], Job.prototype, "status", 2);
|
|
2944
3003
|
__decorateClass([
|
|
2945
|
-
|
|
3004
|
+
Column21({ name: "viewed_count", type: "integer", default: 0 })
|
|
2946
3005
|
], Job.prototype, "viewedCount", 2);
|
|
2947
3006
|
__decorateClass([
|
|
2948
|
-
|
|
3007
|
+
Column21({ name: "application_count", type: "integer", default: 0 })
|
|
2949
3008
|
], Job.prototype, "applicationCount", 2);
|
|
2950
3009
|
__decorateClass([
|
|
2951
|
-
|
|
3010
|
+
OneToMany7(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
2952
3011
|
], Job.prototype, "jobSkills", 2);
|
|
2953
3012
|
__decorateClass([
|
|
2954
|
-
|
|
3013
|
+
OneToMany7(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
2955
3014
|
cascade: true
|
|
2956
3015
|
})
|
|
2957
3016
|
], Job.prototype, "jobApplications", 2);
|
|
2958
3017
|
__decorateClass([
|
|
2959
|
-
|
|
3018
|
+
OneToMany7(() => Interview, (interview) => interview.job, {
|
|
2960
3019
|
cascade: true
|
|
2961
3020
|
})
|
|
2962
3021
|
], Job.prototype, "interviews", 2);
|
|
2963
3022
|
__decorateClass([
|
|
2964
|
-
|
|
3023
|
+
OneToMany7(() => JobRecommendation, (jobRecommendation) => jobRecommendation.job, {
|
|
2965
3024
|
cascade: true
|
|
2966
3025
|
})
|
|
2967
3026
|
], Job.prototype, "recommendations", 2);
|
|
2968
3027
|
Job = __decorateClass([
|
|
2969
|
-
|
|
3028
|
+
Entity20("jobs")
|
|
2970
3029
|
], Job);
|
|
2971
3030
|
|
|
2972
3031
|
// src/entities/bank-details.entity.ts
|
|
2973
3032
|
import {
|
|
2974
|
-
Entity as
|
|
2975
|
-
Column as
|
|
3033
|
+
Entity as Entity21,
|
|
3034
|
+
Column as Column22,
|
|
2976
3035
|
Index as Index15,
|
|
2977
|
-
ManyToOne as
|
|
2978
|
-
JoinColumn as
|
|
3036
|
+
ManyToOne as ManyToOne19,
|
|
3037
|
+
JoinColumn as JoinColumn19
|
|
2979
3038
|
} from "typeorm";
|
|
2980
3039
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
2981
3040
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -2991,48 +3050,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
2991
3050
|
};
|
|
2992
3051
|
// individual index to find bank details by user
|
|
2993
3052
|
__decorateClass([
|
|
2994
|
-
|
|
3053
|
+
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2995
3054
|
Index15()
|
|
2996
3055
|
], BankDetail.prototype, "userId", 2);
|
|
2997
3056
|
__decorateClass([
|
|
2998
|
-
|
|
2999
|
-
|
|
3057
|
+
ManyToOne19(() => User, (user) => user.bankDetail),
|
|
3058
|
+
JoinColumn19({ name: "user_id" })
|
|
3000
3059
|
], BankDetail.prototype, "user", 2);
|
|
3001
3060
|
__decorateClass([
|
|
3002
|
-
|
|
3061
|
+
Column22({ name: "name", type: "varchar", nullable: true })
|
|
3003
3062
|
], BankDetail.prototype, "name", 2);
|
|
3004
3063
|
__decorateClass([
|
|
3005
|
-
|
|
3064
|
+
Column22({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
3006
3065
|
], BankDetail.prototype, "mobile", 2);
|
|
3007
3066
|
__decorateClass([
|
|
3008
|
-
|
|
3067
|
+
Column22({ name: "email", type: "varchar", unique: true })
|
|
3009
3068
|
], BankDetail.prototype, "email", 2);
|
|
3010
3069
|
__decorateClass([
|
|
3011
|
-
|
|
3070
|
+
Column22({ name: "address", type: "varchar", nullable: true })
|
|
3012
3071
|
], BankDetail.prototype, "address", 2);
|
|
3013
3072
|
__decorateClass([
|
|
3014
|
-
|
|
3073
|
+
Column22({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
3015
3074
|
], BankDetail.prototype, "accountNumber", 2);
|
|
3016
3075
|
__decorateClass([
|
|
3017
|
-
|
|
3076
|
+
Column22({ name: "bank_name", type: "varchar", nullable: true })
|
|
3018
3077
|
], BankDetail.prototype, "bankName", 2);
|
|
3019
3078
|
__decorateClass([
|
|
3020
|
-
|
|
3079
|
+
Column22({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
3021
3080
|
], BankDetail.prototype, "ifscCode", 2);
|
|
3022
3081
|
__decorateClass([
|
|
3023
|
-
|
|
3082
|
+
Column22({ name: "branch_name", type: "varchar", nullable: true })
|
|
3024
3083
|
], BankDetail.prototype, "branchName", 2);
|
|
3025
3084
|
__decorateClass([
|
|
3026
|
-
|
|
3085
|
+
Column22({ name: "routing_no", type: "varchar", nullable: true })
|
|
3027
3086
|
], BankDetail.prototype, "routingNo", 2);
|
|
3028
3087
|
__decorateClass([
|
|
3029
|
-
|
|
3088
|
+
Column22({ name: "aba_no", type: "varchar", nullable: true })
|
|
3030
3089
|
], BankDetail.prototype, "abaNumber", 2);
|
|
3031
3090
|
__decorateClass([
|
|
3032
|
-
|
|
3091
|
+
Column22({ name: "iban", type: "varchar", nullable: true })
|
|
3033
3092
|
], BankDetail.prototype, "iban", 2);
|
|
3034
3093
|
__decorateClass([
|
|
3035
|
-
|
|
3094
|
+
Column22({
|
|
3036
3095
|
name: "account_type",
|
|
3037
3096
|
type: "enum",
|
|
3038
3097
|
enum: BankAccountTypeEnum,
|
|
@@ -3040,7 +3099,7 @@ __decorateClass([
|
|
|
3040
3099
|
})
|
|
3041
3100
|
], BankDetail.prototype, "accountType", 2);
|
|
3042
3101
|
__decorateClass([
|
|
3043
|
-
|
|
3102
|
+
Column22({
|
|
3044
3103
|
name: "account_scope",
|
|
3045
3104
|
type: "enum",
|
|
3046
3105
|
enum: BankAccountScopeEnum,
|
|
@@ -3048,263 +3107,263 @@ __decorateClass([
|
|
|
3048
3107
|
})
|
|
3049
3108
|
], BankDetail.prototype, "accountScope", 2);
|
|
3050
3109
|
BankDetail = __decorateClass([
|
|
3051
|
-
|
|
3110
|
+
Entity21("bank_details")
|
|
3052
3111
|
], BankDetail);
|
|
3053
3112
|
|
|
3054
3113
|
// src/entities/system-preference.entity.ts
|
|
3055
3114
|
import {
|
|
3056
|
-
Entity as
|
|
3057
|
-
Column as
|
|
3115
|
+
Entity as Entity22,
|
|
3116
|
+
Column as Column23,
|
|
3058
3117
|
Index as Index16,
|
|
3059
|
-
ManyToOne as
|
|
3060
|
-
JoinColumn as
|
|
3118
|
+
ManyToOne as ManyToOne20,
|
|
3119
|
+
JoinColumn as JoinColumn20
|
|
3061
3120
|
} from "typeorm";
|
|
3062
3121
|
var SystemPreference = class extends BaseEntity {
|
|
3063
3122
|
};
|
|
3064
3123
|
// individual index to find system preference by user
|
|
3065
3124
|
__decorateClass([
|
|
3066
|
-
|
|
3125
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
3067
3126
|
Index16()
|
|
3068
3127
|
], SystemPreference.prototype, "userId", 2);
|
|
3069
3128
|
__decorateClass([
|
|
3070
|
-
|
|
3071
|
-
|
|
3129
|
+
ManyToOne20(() => User, (user) => user.systemPreference),
|
|
3130
|
+
JoinColumn20({ name: "user_id" })
|
|
3072
3131
|
], SystemPreference.prototype, "user", 2);
|
|
3073
3132
|
__decorateClass([
|
|
3074
|
-
|
|
3133
|
+
Column23({ name: "key", type: "varchar", nullable: false })
|
|
3075
3134
|
], SystemPreference.prototype, "key", 2);
|
|
3076
3135
|
__decorateClass([
|
|
3077
|
-
|
|
3136
|
+
Column23({ name: "value", type: "boolean", default: false })
|
|
3078
3137
|
], SystemPreference.prototype, "value", 2);
|
|
3079
3138
|
SystemPreference = __decorateClass([
|
|
3080
|
-
|
|
3139
|
+
Entity22("system_preferences")
|
|
3081
3140
|
], SystemPreference);
|
|
3082
3141
|
|
|
3083
3142
|
// src/entities/freelancer-experience.entity.ts
|
|
3084
3143
|
import {
|
|
3085
|
-
Entity as
|
|
3086
|
-
Column as
|
|
3144
|
+
Entity as Entity23,
|
|
3145
|
+
Column as Column24,
|
|
3087
3146
|
Index as Index17,
|
|
3088
|
-
ManyToOne as
|
|
3089
|
-
JoinColumn as
|
|
3147
|
+
ManyToOne as ManyToOne21,
|
|
3148
|
+
JoinColumn as JoinColumn21
|
|
3090
3149
|
} from "typeorm";
|
|
3091
3150
|
var FreelancerExperience = class extends BaseEntity {
|
|
3092
3151
|
};
|
|
3093
3152
|
// individual index to find experence by user
|
|
3094
3153
|
__decorateClass([
|
|
3095
|
-
|
|
3154
|
+
Column24({ name: "user_id", type: "integer", nullable: true }),
|
|
3096
3155
|
Index17()
|
|
3097
3156
|
], FreelancerExperience.prototype, "userId", 2);
|
|
3098
3157
|
__decorateClass([
|
|
3099
|
-
|
|
3100
|
-
|
|
3158
|
+
ManyToOne21(() => User, (user) => user.freelancerExperience),
|
|
3159
|
+
JoinColumn21({ name: "user_id" })
|
|
3101
3160
|
], FreelancerExperience.prototype, "user", 2);
|
|
3102
3161
|
__decorateClass([
|
|
3103
|
-
|
|
3162
|
+
Column24({ name: "company_name", type: "varchar", nullable: true })
|
|
3104
3163
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
3105
3164
|
__decorateClass([
|
|
3106
|
-
|
|
3165
|
+
Column24({ name: "designation", type: "varchar", nullable: true })
|
|
3107
3166
|
], FreelancerExperience.prototype, "designation", 2);
|
|
3108
3167
|
__decorateClass([
|
|
3109
|
-
|
|
3168
|
+
Column24({ name: "job_duration", type: "varchar", nullable: true })
|
|
3110
3169
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
3111
3170
|
__decorateClass([
|
|
3112
|
-
|
|
3171
|
+
Column24({ name: "description", type: "varchar", nullable: true })
|
|
3113
3172
|
], FreelancerExperience.prototype, "description", 2);
|
|
3114
3173
|
FreelancerExperience = __decorateClass([
|
|
3115
|
-
|
|
3174
|
+
Entity23("freelancer_experiences")
|
|
3116
3175
|
], FreelancerExperience);
|
|
3117
3176
|
|
|
3118
3177
|
// src/entities/freelancer-education.entity.ts
|
|
3119
3178
|
import {
|
|
3120
|
-
Entity as
|
|
3121
|
-
Column as
|
|
3179
|
+
Entity as Entity24,
|
|
3180
|
+
Column as Column25,
|
|
3122
3181
|
Index as Index18,
|
|
3123
|
-
ManyToOne as
|
|
3124
|
-
JoinColumn as
|
|
3182
|
+
ManyToOne as ManyToOne22,
|
|
3183
|
+
JoinColumn as JoinColumn22
|
|
3125
3184
|
} from "typeorm";
|
|
3126
3185
|
var FreelancerEducation = class extends BaseEntity {
|
|
3127
3186
|
};
|
|
3128
3187
|
// individual index to find education by user
|
|
3129
3188
|
__decorateClass([
|
|
3130
|
-
|
|
3189
|
+
Column25({ name: "user_id", type: "integer", nullable: true }),
|
|
3131
3190
|
Index18()
|
|
3132
3191
|
], FreelancerEducation.prototype, "userId", 2);
|
|
3133
3192
|
__decorateClass([
|
|
3134
|
-
|
|
3135
|
-
|
|
3193
|
+
ManyToOne22(() => User, (user) => user.freelancerEducation),
|
|
3194
|
+
JoinColumn22({ name: "user_id" })
|
|
3136
3195
|
], FreelancerEducation.prototype, "user", 2);
|
|
3137
3196
|
__decorateClass([
|
|
3138
|
-
|
|
3197
|
+
Column25({ name: "degree", type: "varchar", nullable: true })
|
|
3139
3198
|
], FreelancerEducation.prototype, "degree", 2);
|
|
3140
3199
|
__decorateClass([
|
|
3141
|
-
|
|
3200
|
+
Column25({ name: "university", type: "varchar", nullable: true })
|
|
3142
3201
|
], FreelancerEducation.prototype, "university", 2);
|
|
3143
3202
|
__decorateClass([
|
|
3144
|
-
|
|
3203
|
+
Column25({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
3145
3204
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
3146
3205
|
FreelancerEducation = __decorateClass([
|
|
3147
|
-
|
|
3206
|
+
Entity24("freelancer_educations")
|
|
3148
3207
|
], FreelancerEducation);
|
|
3149
3208
|
|
|
3150
3209
|
// src/entities/freelancer-project.entity.ts
|
|
3151
3210
|
import {
|
|
3152
|
-
Entity as
|
|
3153
|
-
Column as
|
|
3211
|
+
Entity as Entity25,
|
|
3212
|
+
Column as Column26,
|
|
3154
3213
|
Index as Index19,
|
|
3155
|
-
ManyToOne as
|
|
3156
|
-
JoinColumn as
|
|
3214
|
+
ManyToOne as ManyToOne23,
|
|
3215
|
+
JoinColumn as JoinColumn23
|
|
3157
3216
|
} from "typeorm";
|
|
3158
3217
|
var FreelancerProject = class extends BaseEntity {
|
|
3159
3218
|
};
|
|
3160
3219
|
// individual index to find project by user
|
|
3161
3220
|
__decorateClass([
|
|
3162
|
-
|
|
3221
|
+
Column26({ name: "user_id", type: "integer", nullable: true }),
|
|
3163
3222
|
Index19()
|
|
3164
3223
|
], FreelancerProject.prototype, "userId", 2);
|
|
3165
3224
|
__decorateClass([
|
|
3166
|
-
|
|
3167
|
-
|
|
3225
|
+
ManyToOne23(() => User, (user) => user.freelancerProject),
|
|
3226
|
+
JoinColumn23({ name: "user_id" })
|
|
3168
3227
|
], FreelancerProject.prototype, "user", 2);
|
|
3169
3228
|
__decorateClass([
|
|
3170
|
-
|
|
3229
|
+
Column26({ name: "project_name", type: "varchar", nullable: true })
|
|
3171
3230
|
], FreelancerProject.prototype, "projectName", 2);
|
|
3172
3231
|
__decorateClass([
|
|
3173
|
-
|
|
3232
|
+
Column26({ name: "start_date", type: "date", nullable: true })
|
|
3174
3233
|
], FreelancerProject.prototype, "startDate", 2);
|
|
3175
3234
|
__decorateClass([
|
|
3176
|
-
|
|
3235
|
+
Column26({ name: "end_date", type: "date", nullable: true })
|
|
3177
3236
|
], FreelancerProject.prototype, "endDate", 2);
|
|
3178
3237
|
__decorateClass([
|
|
3179
|
-
|
|
3238
|
+
Column26({ name: "client_name", type: "varchar", nullable: true })
|
|
3180
3239
|
], FreelancerProject.prototype, "clientName", 2);
|
|
3181
3240
|
__decorateClass([
|
|
3182
|
-
|
|
3241
|
+
Column26({ name: "git_link", type: "varchar", nullable: true })
|
|
3183
3242
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
3184
3243
|
__decorateClass([
|
|
3185
|
-
|
|
3244
|
+
Column26({ name: "description", type: "varchar", nullable: true })
|
|
3186
3245
|
], FreelancerProject.prototype, "description", 2);
|
|
3187
3246
|
FreelancerProject = __decorateClass([
|
|
3188
|
-
|
|
3247
|
+
Entity25("freelancer_projects")
|
|
3189
3248
|
], FreelancerProject);
|
|
3190
3249
|
|
|
3191
3250
|
// src/entities/freelancer-casestudy.entity.ts
|
|
3192
3251
|
import {
|
|
3193
|
-
Entity as
|
|
3194
|
-
Column as
|
|
3252
|
+
Entity as Entity26,
|
|
3253
|
+
Column as Column27,
|
|
3195
3254
|
Index as Index20,
|
|
3196
|
-
ManyToOne as
|
|
3197
|
-
JoinColumn as
|
|
3255
|
+
ManyToOne as ManyToOne24,
|
|
3256
|
+
JoinColumn as JoinColumn24
|
|
3198
3257
|
} from "typeorm";
|
|
3199
3258
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
3200
3259
|
};
|
|
3201
3260
|
// individual index to find case study by user
|
|
3202
3261
|
__decorateClass([
|
|
3203
|
-
|
|
3262
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
3204
3263
|
Index20()
|
|
3205
3264
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
3206
3265
|
__decorateClass([
|
|
3207
|
-
|
|
3208
|
-
|
|
3266
|
+
ManyToOne24(() => User, (user) => user.freelancerCaseStudy),
|
|
3267
|
+
JoinColumn24({ name: "user_id" })
|
|
3209
3268
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
3210
3269
|
__decorateClass([
|
|
3211
|
-
|
|
3270
|
+
Column27({ name: "project_name", type: "varchar", nullable: true })
|
|
3212
3271
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
3213
3272
|
__decorateClass([
|
|
3214
|
-
|
|
3273
|
+
Column27({ name: "case_study_link", type: "varchar", nullable: true })
|
|
3215
3274
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
3216
3275
|
__decorateClass([
|
|
3217
|
-
|
|
3276
|
+
Column27({ name: "description", type: "varchar", nullable: true })
|
|
3218
3277
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
3219
3278
|
FreelancerCaseStudy = __decorateClass([
|
|
3220
|
-
|
|
3279
|
+
Entity26("freelancer_case_studies")
|
|
3221
3280
|
], FreelancerCaseStudy);
|
|
3222
3281
|
|
|
3223
3282
|
// src/entities/freelancer-skill.entity.ts
|
|
3224
3283
|
import {
|
|
3225
|
-
Entity as
|
|
3226
|
-
Column as
|
|
3284
|
+
Entity as Entity27,
|
|
3285
|
+
Column as Column28,
|
|
3227
3286
|
Index as Index21,
|
|
3228
|
-
ManyToOne as
|
|
3229
|
-
JoinColumn as
|
|
3287
|
+
ManyToOne as ManyToOne25,
|
|
3288
|
+
JoinColumn as JoinColumn25
|
|
3230
3289
|
} from "typeorm";
|
|
3231
3290
|
var FreelancerSkill = class extends BaseEntity {
|
|
3232
3291
|
};
|
|
3233
3292
|
// individual index to find core skills by user
|
|
3234
3293
|
__decorateClass([
|
|
3235
|
-
|
|
3294
|
+
Column28({ name: "user_id", type: "integer", nullable: true }),
|
|
3236
3295
|
Index21()
|
|
3237
3296
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3238
3297
|
__decorateClass([
|
|
3239
|
-
|
|
3240
|
-
|
|
3298
|
+
ManyToOne25(() => User, (user) => user.freelancerSkills),
|
|
3299
|
+
JoinColumn25({ name: "user_id" })
|
|
3241
3300
|
], FreelancerSkill.prototype, "user", 2);
|
|
3242
3301
|
__decorateClass([
|
|
3243
|
-
|
|
3302
|
+
Column28({ name: "skill_name", type: "varchar", nullable: true })
|
|
3244
3303
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
3245
3304
|
FreelancerSkill = __decorateClass([
|
|
3246
|
-
|
|
3305
|
+
Entity27("freelancer_skills")
|
|
3247
3306
|
], FreelancerSkill);
|
|
3248
3307
|
|
|
3249
3308
|
// src/entities/freelancer-tool.entity.ts
|
|
3250
3309
|
import {
|
|
3251
|
-
Entity as
|
|
3252
|
-
Column as
|
|
3310
|
+
Entity as Entity28,
|
|
3311
|
+
Column as Column29,
|
|
3253
3312
|
Index as Index22,
|
|
3254
|
-
ManyToOne as
|
|
3255
|
-
JoinColumn as
|
|
3313
|
+
ManyToOne as ManyToOne26,
|
|
3314
|
+
JoinColumn as JoinColumn26
|
|
3256
3315
|
} from "typeorm";
|
|
3257
3316
|
var FreelancerTool = class extends BaseEntity {
|
|
3258
3317
|
};
|
|
3259
3318
|
// individual index to find tool by user
|
|
3260
3319
|
__decorateClass([
|
|
3261
|
-
|
|
3320
|
+
Column29({ name: "user_id", type: "integer", nullable: true }),
|
|
3262
3321
|
Index22()
|
|
3263
3322
|
], FreelancerTool.prototype, "userId", 2);
|
|
3264
3323
|
__decorateClass([
|
|
3265
|
-
|
|
3266
|
-
|
|
3324
|
+
ManyToOne26(() => User, (user) => user.freelancerTool),
|
|
3325
|
+
JoinColumn26({ name: "user_id" })
|
|
3267
3326
|
], FreelancerTool.prototype, "user", 2);
|
|
3268
3327
|
__decorateClass([
|
|
3269
|
-
|
|
3328
|
+
Column29({ name: "tool_name", type: "varchar", nullable: true })
|
|
3270
3329
|
], FreelancerTool.prototype, "toolName", 2);
|
|
3271
3330
|
FreelancerTool = __decorateClass([
|
|
3272
|
-
|
|
3331
|
+
Entity28("freelancer_tools")
|
|
3273
3332
|
], FreelancerTool);
|
|
3274
3333
|
|
|
3275
3334
|
// src/entities/freelancer-framework.entity.ts
|
|
3276
3335
|
import {
|
|
3277
|
-
Entity as
|
|
3278
|
-
Column as
|
|
3336
|
+
Entity as Entity29,
|
|
3337
|
+
Column as Column30,
|
|
3279
3338
|
Index as Index23,
|
|
3280
|
-
ManyToOne as
|
|
3281
|
-
JoinColumn as
|
|
3339
|
+
ManyToOne as ManyToOne27,
|
|
3340
|
+
JoinColumn as JoinColumn27
|
|
3282
3341
|
} from "typeorm";
|
|
3283
3342
|
var FreelancerFramework = class extends BaseEntity {
|
|
3284
3343
|
};
|
|
3285
3344
|
// individual index to find framework by user
|
|
3286
3345
|
__decorateClass([
|
|
3287
|
-
|
|
3346
|
+
Column30({ name: "user_id", type: "integer", nullable: true }),
|
|
3288
3347
|
Index23()
|
|
3289
3348
|
], FreelancerFramework.prototype, "userId", 2);
|
|
3290
3349
|
__decorateClass([
|
|
3291
|
-
|
|
3292
|
-
|
|
3350
|
+
ManyToOne27(() => User, (user) => user.freelancerFramework),
|
|
3351
|
+
JoinColumn27({ name: "user_id" })
|
|
3293
3352
|
], FreelancerFramework.prototype, "user", 2);
|
|
3294
3353
|
__decorateClass([
|
|
3295
|
-
|
|
3354
|
+
Column30({ name: "framework_name", type: "varchar", nullable: true })
|
|
3296
3355
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
3297
3356
|
FreelancerFramework = __decorateClass([
|
|
3298
|
-
|
|
3357
|
+
Entity29("freelancer_frameworks")
|
|
3299
3358
|
], FreelancerFramework);
|
|
3300
3359
|
|
|
3301
3360
|
// src/entities/freelancer-assessment.entity.ts
|
|
3302
3361
|
import {
|
|
3303
|
-
Entity as
|
|
3304
|
-
Column as
|
|
3362
|
+
Entity as Entity30,
|
|
3363
|
+
Column as Column31,
|
|
3305
3364
|
Index as Index24,
|
|
3306
|
-
ManyToOne as
|
|
3307
|
-
JoinColumn as
|
|
3365
|
+
ManyToOne as ManyToOne28,
|
|
3366
|
+
JoinColumn as JoinColumn28
|
|
3308
3367
|
} from "typeorm";
|
|
3309
3368
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3310
3369
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -3321,30 +3380,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
3321
3380
|
var FreelancerAssessment = class extends BaseEntity {
|
|
3322
3381
|
};
|
|
3323
3382
|
__decorateClass([
|
|
3324
|
-
|
|
3383
|
+
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
3325
3384
|
Index24()
|
|
3326
3385
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
3327
3386
|
__decorateClass([
|
|
3328
|
-
|
|
3329
|
-
|
|
3387
|
+
ManyToOne28(() => User, (user) => user.assessments),
|
|
3388
|
+
JoinColumn28({ name: "user_id" })
|
|
3330
3389
|
], FreelancerAssessment.prototype, "user", 2);
|
|
3331
3390
|
__decorateClass([
|
|
3332
|
-
|
|
3391
|
+
Column31({ name: "interview_id", type: "varchar", nullable: true })
|
|
3333
3392
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
3334
3393
|
__decorateClass([
|
|
3335
|
-
|
|
3394
|
+
Column31({ name: "interview_link", type: "text", nullable: true })
|
|
3336
3395
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
3337
3396
|
__decorateClass([
|
|
3338
|
-
|
|
3397
|
+
Column31({ name: "recording_link", type: "text", nullable: true })
|
|
3339
3398
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
3340
3399
|
__decorateClass([
|
|
3341
|
-
|
|
3400
|
+
Column31({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
3342
3401
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
3343
3402
|
__decorateClass([
|
|
3344
|
-
|
|
3403
|
+
Column31({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
3345
3404
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
3346
3405
|
__decorateClass([
|
|
3347
|
-
|
|
3406
|
+
Column31({
|
|
3348
3407
|
name: "status",
|
|
3349
3408
|
type: "enum",
|
|
3350
3409
|
enum: AssessmentStatusEnum,
|
|
@@ -3352,16 +3411,16 @@ __decorateClass([
|
|
|
3352
3411
|
})
|
|
3353
3412
|
], FreelancerAssessment.prototype, "status", 2);
|
|
3354
3413
|
FreelancerAssessment = __decorateClass([
|
|
3355
|
-
|
|
3414
|
+
Entity30("freelancer_assessments")
|
|
3356
3415
|
], FreelancerAssessment);
|
|
3357
3416
|
|
|
3358
3417
|
// src/entities/freelancer-declaration.entity.ts
|
|
3359
3418
|
import {
|
|
3360
|
-
Entity as
|
|
3361
|
-
Column as
|
|
3419
|
+
Entity as Entity31,
|
|
3420
|
+
Column as Column32,
|
|
3362
3421
|
Index as Index25,
|
|
3363
|
-
ManyToOne as
|
|
3364
|
-
JoinColumn as
|
|
3422
|
+
ManyToOne as ManyToOne29,
|
|
3423
|
+
JoinColumn as JoinColumn29
|
|
3365
3424
|
} from "typeorm";
|
|
3366
3425
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
3367
3426
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
@@ -3374,15 +3433,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
3374
3433
|
};
|
|
3375
3434
|
// individual index to find declaration by user
|
|
3376
3435
|
__decorateClass([
|
|
3377
|
-
|
|
3436
|
+
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
3378
3437
|
Index25()
|
|
3379
3438
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
3380
3439
|
__decorateClass([
|
|
3381
|
-
|
|
3382
|
-
|
|
3440
|
+
ManyToOne29(() => User, (user) => user.freelancerDeclaration),
|
|
3441
|
+
JoinColumn29({ name: "user_id" })
|
|
3383
3442
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
3384
3443
|
__decorateClass([
|
|
3385
|
-
|
|
3444
|
+
Column32({
|
|
3386
3445
|
name: "document_type",
|
|
3387
3446
|
type: "enum",
|
|
3388
3447
|
enum: DocumentType,
|
|
@@ -3390,175 +3449,175 @@ __decorateClass([
|
|
|
3390
3449
|
})
|
|
3391
3450
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
3392
3451
|
__decorateClass([
|
|
3393
|
-
|
|
3452
|
+
Column32({ name: "front_document_url", type: "varchar", nullable: true })
|
|
3394
3453
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
3395
3454
|
__decorateClass([
|
|
3396
|
-
|
|
3455
|
+
Column32({ name: "back_document_url", type: "varchar", nullable: true })
|
|
3397
3456
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
3398
3457
|
__decorateClass([
|
|
3399
|
-
|
|
3458
|
+
Column32({ name: "declaration_accepted", type: "boolean", default: false })
|
|
3400
3459
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
3401
3460
|
__decorateClass([
|
|
3402
|
-
|
|
3461
|
+
Column32({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
3403
3462
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
3404
3463
|
FreelancerDeclaration = __decorateClass([
|
|
3405
|
-
|
|
3464
|
+
Entity31("freelancer_declaration")
|
|
3406
3465
|
], FreelancerDeclaration);
|
|
3407
3466
|
|
|
3408
3467
|
// src/entities/company-members-roles.entity.ts
|
|
3409
3468
|
import {
|
|
3410
|
-
Column as
|
|
3411
|
-
Entity as
|
|
3412
|
-
ManyToOne as
|
|
3413
|
-
JoinColumn as
|
|
3469
|
+
Column as Column36,
|
|
3470
|
+
Entity as Entity35,
|
|
3471
|
+
ManyToOne as ManyToOne32,
|
|
3472
|
+
JoinColumn as JoinColumn32,
|
|
3414
3473
|
Index as Index29
|
|
3415
3474
|
} from "typeorm";
|
|
3416
3475
|
|
|
3417
3476
|
// src/entities/company-role.entity.ts
|
|
3418
3477
|
import {
|
|
3419
|
-
Column as
|
|
3420
|
-
Entity as
|
|
3478
|
+
Column as Column35,
|
|
3479
|
+
Entity as Entity34,
|
|
3421
3480
|
Index as Index28,
|
|
3422
|
-
JoinColumn as
|
|
3423
|
-
ManyToOne as
|
|
3424
|
-
OneToMany as
|
|
3481
|
+
JoinColumn as JoinColumn31,
|
|
3482
|
+
ManyToOne as ManyToOne31,
|
|
3483
|
+
OneToMany as OneToMany9
|
|
3425
3484
|
} from "typeorm";
|
|
3426
3485
|
|
|
3427
3486
|
// src/entities/company-role-permission.entity.ts
|
|
3428
3487
|
import {
|
|
3429
|
-
Column as
|
|
3430
|
-
Entity as
|
|
3431
|
-
ManyToOne as
|
|
3432
|
-
JoinColumn as
|
|
3488
|
+
Column as Column34,
|
|
3489
|
+
Entity as Entity33,
|
|
3490
|
+
ManyToOne as ManyToOne30,
|
|
3491
|
+
JoinColumn as JoinColumn30,
|
|
3433
3492
|
Index as Index27
|
|
3434
3493
|
} from "typeorm";
|
|
3435
3494
|
|
|
3436
3495
|
// src/entities/permission.entity.ts
|
|
3437
|
-
import { Column as
|
|
3496
|
+
import { Column as Column33, Entity as Entity32, Index as Index26 } from "typeorm";
|
|
3438
3497
|
var Permission = class extends BaseEntity {
|
|
3439
3498
|
};
|
|
3440
3499
|
__decorateClass([
|
|
3441
|
-
|
|
3500
|
+
Column33({ name: "name", type: "varchar", nullable: true })
|
|
3442
3501
|
], Permission.prototype, "name", 2);
|
|
3443
3502
|
__decorateClass([
|
|
3444
|
-
|
|
3503
|
+
Column33({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3445
3504
|
Index26()
|
|
3446
3505
|
], Permission.prototype, "slug", 2);
|
|
3447
3506
|
__decorateClass([
|
|
3448
|
-
|
|
3507
|
+
Column33({ name: "description", type: "text", nullable: true })
|
|
3449
3508
|
], Permission.prototype, "description", 2);
|
|
3450
3509
|
__decorateClass([
|
|
3451
|
-
|
|
3510
|
+
Column33({ name: "is_active", type: "boolean", default: true })
|
|
3452
3511
|
], Permission.prototype, "isActive", 2);
|
|
3453
3512
|
Permission = __decorateClass([
|
|
3454
|
-
|
|
3513
|
+
Entity32("permissions")
|
|
3455
3514
|
], Permission);
|
|
3456
3515
|
|
|
3457
3516
|
// src/entities/company-role-permission.entity.ts
|
|
3458
3517
|
var CompanyRolePermission = class extends BaseEntity {
|
|
3459
3518
|
};
|
|
3460
3519
|
__decorateClass([
|
|
3461
|
-
|
|
3520
|
+
Column34({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3462
3521
|
Index27()
|
|
3463
3522
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
3464
3523
|
__decorateClass([
|
|
3465
|
-
|
|
3524
|
+
ManyToOne30(() => CompanyRole, (role) => role.rolePermissions, {
|
|
3466
3525
|
onDelete: "CASCADE"
|
|
3467
3526
|
}),
|
|
3468
|
-
|
|
3527
|
+
JoinColumn30({ name: "company_role_id" })
|
|
3469
3528
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
3470
3529
|
__decorateClass([
|
|
3471
|
-
|
|
3530
|
+
Column34({ name: "permission_id", type: "integer" }),
|
|
3472
3531
|
Index27()
|
|
3473
3532
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
3474
3533
|
__decorateClass([
|
|
3475
|
-
|
|
3476
|
-
|
|
3534
|
+
ManyToOne30(() => Permission, { onDelete: "CASCADE" }),
|
|
3535
|
+
JoinColumn30({ name: "permission_id" })
|
|
3477
3536
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
3478
3537
|
__decorateClass([
|
|
3479
|
-
|
|
3538
|
+
Column34({ name: "assigned_by", type: "integer", nullable: true })
|
|
3480
3539
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
3481
3540
|
CompanyRolePermission = __decorateClass([
|
|
3482
|
-
|
|
3541
|
+
Entity33("company_role_permissions")
|
|
3483
3542
|
], CompanyRolePermission);
|
|
3484
3543
|
|
|
3485
3544
|
// src/entities/company-role.entity.ts
|
|
3486
3545
|
var CompanyRole = class extends BaseEntity {
|
|
3487
3546
|
};
|
|
3488
3547
|
__decorateClass([
|
|
3489
|
-
|
|
3548
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
3490
3549
|
Index28()
|
|
3491
3550
|
], CompanyRole.prototype, "userId", 2);
|
|
3492
3551
|
__decorateClass([
|
|
3493
|
-
|
|
3494
|
-
|
|
3552
|
+
ManyToOne31(() => User, (user) => user.otps),
|
|
3553
|
+
JoinColumn31({ name: "user_id" })
|
|
3495
3554
|
], CompanyRole.prototype, "user", 2);
|
|
3496
3555
|
__decorateClass([
|
|
3497
|
-
|
|
3556
|
+
Column35({ name: "name", type: "varchar" })
|
|
3498
3557
|
], CompanyRole.prototype, "name", 2);
|
|
3499
3558
|
__decorateClass([
|
|
3500
|
-
|
|
3559
|
+
Column35({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3501
3560
|
Index28()
|
|
3502
3561
|
], CompanyRole.prototype, "slug", 2);
|
|
3503
3562
|
__decorateClass([
|
|
3504
|
-
|
|
3563
|
+
Column35({ name: "description", type: "text", nullable: true })
|
|
3505
3564
|
], CompanyRole.prototype, "description", 2);
|
|
3506
3565
|
__decorateClass([
|
|
3507
|
-
|
|
3566
|
+
Column35({ name: "is_active", type: "boolean", default: true })
|
|
3508
3567
|
], CompanyRole.prototype, "isActive", 2);
|
|
3509
3568
|
__decorateClass([
|
|
3510
|
-
|
|
3569
|
+
OneToMany9(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
3511
3570
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
3512
3571
|
CompanyRole = __decorateClass([
|
|
3513
|
-
|
|
3572
|
+
Entity34("company_roles")
|
|
3514
3573
|
], CompanyRole);
|
|
3515
3574
|
|
|
3516
3575
|
// src/entities/company-members-roles.entity.ts
|
|
3517
3576
|
var CompanyMemberRole = class extends BaseEntity {
|
|
3518
3577
|
};
|
|
3519
3578
|
__decorateClass([
|
|
3520
|
-
|
|
3579
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
3521
3580
|
Index29()
|
|
3522
3581
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
3523
3582
|
__decorateClass([
|
|
3524
|
-
|
|
3525
|
-
|
|
3583
|
+
ManyToOne32(() => User),
|
|
3584
|
+
JoinColumn32({ name: "user_id" })
|
|
3526
3585
|
], CompanyMemberRole.prototype, "user", 2);
|
|
3527
3586
|
__decorateClass([
|
|
3528
|
-
|
|
3529
|
-
|
|
3587
|
+
ManyToOne32(() => CompanyRole),
|
|
3588
|
+
JoinColumn32({ name: "company_role_id" })
|
|
3530
3589
|
], CompanyMemberRole.prototype, "role", 2);
|
|
3531
3590
|
__decorateClass([
|
|
3532
|
-
|
|
3591
|
+
Column36({ name: "company_role_id", type: "integer", nullable: true }),
|
|
3533
3592
|
Index29()
|
|
3534
3593
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
3535
3594
|
__decorateClass([
|
|
3536
|
-
|
|
3595
|
+
Column36({ name: "assigned_by", type: "integer", nullable: true })
|
|
3537
3596
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
3538
3597
|
CompanyMemberRole = __decorateClass([
|
|
3539
|
-
|
|
3598
|
+
Entity35("company_member_roles")
|
|
3540
3599
|
], CompanyMemberRole);
|
|
3541
3600
|
|
|
3542
3601
|
// src/entities/assessment-answer.entity.ts
|
|
3543
3602
|
import {
|
|
3544
|
-
Entity as
|
|
3545
|
-
Column as
|
|
3546
|
-
ManyToOne as
|
|
3603
|
+
Entity as Entity38,
|
|
3604
|
+
Column as Column39,
|
|
3605
|
+
ManyToOne as ManyToOne34,
|
|
3547
3606
|
Index as Index31,
|
|
3548
|
-
JoinColumn as
|
|
3607
|
+
JoinColumn as JoinColumn34
|
|
3549
3608
|
} from "typeorm";
|
|
3550
3609
|
|
|
3551
3610
|
// src/entities/assessment-question.entity.ts
|
|
3552
|
-
import { Entity as
|
|
3611
|
+
import { Entity as Entity37, Column as Column38, OneToMany as OneToMany11 } from "typeorm";
|
|
3553
3612
|
|
|
3554
3613
|
// src/entities/assessment-question-option.entity.ts
|
|
3555
3614
|
import {
|
|
3556
|
-
Entity as
|
|
3557
|
-
Column as
|
|
3558
|
-
OneToMany as
|
|
3559
|
-
ManyToOne as
|
|
3615
|
+
Entity as Entity36,
|
|
3616
|
+
Column as Column37,
|
|
3617
|
+
OneToMany as OneToMany10,
|
|
3618
|
+
ManyToOne as ManyToOne33,
|
|
3560
3619
|
Index as Index30,
|
|
3561
|
-
JoinColumn as
|
|
3620
|
+
JoinColumn as JoinColumn33
|
|
3562
3621
|
} from "typeorm";
|
|
3563
3622
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
3564
3623
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -3569,21 +3628,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
3569
3628
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
3570
3629
|
};
|
|
3571
3630
|
__decorateClass([
|
|
3572
|
-
|
|
3631
|
+
Column37({ name: "question_id", type: "integer", nullable: true }),
|
|
3573
3632
|
Index30()
|
|
3574
3633
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
3575
3634
|
__decorateClass([
|
|
3576
|
-
|
|
3635
|
+
ManyToOne33(
|
|
3577
3636
|
() => AssessmetQuestion,
|
|
3578
3637
|
(assessmentQuestion) => assessmentQuestion.options
|
|
3579
3638
|
),
|
|
3580
|
-
|
|
3639
|
+
JoinColumn33({ name: "question_id" })
|
|
3581
3640
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
3582
3641
|
__decorateClass([
|
|
3583
|
-
|
|
3642
|
+
Column37({ name: "text", type: "varchar", nullable: true })
|
|
3584
3643
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
3585
3644
|
__decorateClass([
|
|
3586
|
-
|
|
3645
|
+
Column37({
|
|
3587
3646
|
name: "answer_type",
|
|
3588
3647
|
type: "enum",
|
|
3589
3648
|
enum: AnswerTypeEnum,
|
|
@@ -3591,13 +3650,13 @@ __decorateClass([
|
|
|
3591
3650
|
})
|
|
3592
3651
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
3593
3652
|
__decorateClass([
|
|
3594
|
-
|
|
3653
|
+
Column37({ name: "is_active", type: "boolean", default: true })
|
|
3595
3654
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
3596
3655
|
__decorateClass([
|
|
3597
|
-
|
|
3656
|
+
OneToMany10(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
3598
3657
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
3599
3658
|
AssessmetQuestionOption = __decorateClass([
|
|
3600
|
-
|
|
3659
|
+
Entity36("assessment_question_options")
|
|
3601
3660
|
], AssessmetQuestionOption);
|
|
3602
3661
|
|
|
3603
3662
|
// src/entities/assessment-question.entity.ts
|
|
@@ -3609,10 +3668,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
3609
3668
|
var AssessmetQuestion = class extends BaseEntity {
|
|
3610
3669
|
};
|
|
3611
3670
|
__decorateClass([
|
|
3612
|
-
|
|
3671
|
+
Column38({ name: "text", type: "varchar", nullable: true })
|
|
3613
3672
|
], AssessmetQuestion.prototype, "text", 2);
|
|
3614
3673
|
__decorateClass([
|
|
3615
|
-
|
|
3674
|
+
Column38({
|
|
3616
3675
|
name: "question_for",
|
|
3617
3676
|
type: "enum",
|
|
3618
3677
|
enum: QuestionForEnum,
|
|
@@ -3620,16 +3679,16 @@ __decorateClass([
|
|
|
3620
3679
|
})
|
|
3621
3680
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
3622
3681
|
__decorateClass([
|
|
3623
|
-
|
|
3682
|
+
Column38({ name: "is_active", type: "boolean", default: true })
|
|
3624
3683
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
3625
3684
|
__decorateClass([
|
|
3626
|
-
|
|
3685
|
+
OneToMany11(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
3627
3686
|
], AssessmetQuestion.prototype, "options", 2);
|
|
3628
3687
|
__decorateClass([
|
|
3629
|
-
|
|
3688
|
+
OneToMany11(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
3630
3689
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
3631
3690
|
AssessmetQuestion = __decorateClass([
|
|
3632
|
-
|
|
3691
|
+
Entity37("assessment_questions")
|
|
3633
3692
|
], AssessmetQuestion);
|
|
3634
3693
|
|
|
3635
3694
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -3642,87 +3701,87 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
3642
3701
|
var AssessmentAnswer = class extends BaseEntity {
|
|
3643
3702
|
};
|
|
3644
3703
|
__decorateClass([
|
|
3645
|
-
|
|
3704
|
+
Column39({ name: "user_id", type: "integer" }),
|
|
3646
3705
|
Index31()
|
|
3647
3706
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
3648
3707
|
__decorateClass([
|
|
3649
|
-
|
|
3650
|
-
|
|
3708
|
+
ManyToOne34(() => User, (user) => user.assessmentAnswers),
|
|
3709
|
+
JoinColumn34({ name: "user_id" })
|
|
3651
3710
|
], AssessmentAnswer.prototype, "user", 2);
|
|
3652
3711
|
__decorateClass([
|
|
3653
|
-
|
|
3712
|
+
Column39({ name: "question_id", type: "integer" }),
|
|
3654
3713
|
Index31()
|
|
3655
3714
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
3656
3715
|
__decorateClass([
|
|
3657
|
-
|
|
3716
|
+
ManyToOne34(
|
|
3658
3717
|
() => AssessmetQuestion,
|
|
3659
3718
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
3660
3719
|
),
|
|
3661
|
-
|
|
3720
|
+
JoinColumn34({ name: "question_id" })
|
|
3662
3721
|
], AssessmentAnswer.prototype, "question", 2);
|
|
3663
3722
|
__decorateClass([
|
|
3664
|
-
|
|
3723
|
+
Column39({ name: "selected_option_id", type: "integer" }),
|
|
3665
3724
|
Index31()
|
|
3666
3725
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
3667
3726
|
__decorateClass([
|
|
3668
|
-
|
|
3727
|
+
ManyToOne34(
|
|
3669
3728
|
() => AssessmetQuestionOption,
|
|
3670
3729
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
3671
3730
|
),
|
|
3672
|
-
|
|
3731
|
+
JoinColumn34({ name: "selected_option_id" })
|
|
3673
3732
|
], AssessmentAnswer.prototype, "option", 2);
|
|
3674
3733
|
__decorateClass([
|
|
3675
|
-
|
|
3734
|
+
Column39({
|
|
3676
3735
|
name: "selected_answer_type",
|
|
3677
3736
|
type: "enum",
|
|
3678
3737
|
enum: SelectedAnswerTypeEnum
|
|
3679
3738
|
})
|
|
3680
3739
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
3681
3740
|
__decorateClass([
|
|
3682
|
-
|
|
3741
|
+
Column39({ name: "score", type: "float" })
|
|
3683
3742
|
], AssessmentAnswer.prototype, "score", 2);
|
|
3684
3743
|
AssessmentAnswer = __decorateClass([
|
|
3685
|
-
|
|
3744
|
+
Entity38("assessment_answers")
|
|
3686
3745
|
], AssessmentAnswer);
|
|
3687
3746
|
|
|
3688
3747
|
// src/entities/company-skill.entity.ts
|
|
3689
|
-
import { Entity as
|
|
3748
|
+
import { Entity as Entity39, Column as Column40, Index as Index32, ManyToOne as ManyToOne35, JoinColumn as JoinColumn35 } from "typeorm";
|
|
3690
3749
|
var CompanySkill = class extends BaseEntity {
|
|
3691
3750
|
};
|
|
3692
3751
|
// individual index to find core skills by user
|
|
3693
3752
|
__decorateClass([
|
|
3694
|
-
|
|
3753
|
+
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
3695
3754
|
Index32()
|
|
3696
3755
|
], CompanySkill.prototype, "userId", 2);
|
|
3697
3756
|
__decorateClass([
|
|
3698
|
-
|
|
3699
|
-
|
|
3757
|
+
ManyToOne35(() => User, (user) => user.freelancerSkills),
|
|
3758
|
+
JoinColumn35({ name: "user_id" })
|
|
3700
3759
|
], CompanySkill.prototype, "user", 2);
|
|
3701
3760
|
__decorateClass([
|
|
3702
|
-
|
|
3761
|
+
Column40({ name: "skill_name", type: "varchar", nullable: true })
|
|
3703
3762
|
], CompanySkill.prototype, "skillName", 2);
|
|
3704
3763
|
CompanySkill = __decorateClass([
|
|
3705
|
-
|
|
3764
|
+
Entity39("company_skills")
|
|
3706
3765
|
], CompanySkill);
|
|
3707
3766
|
|
|
3708
3767
|
// src/entities/admin-user-role.entity.ts
|
|
3709
|
-
import { Entity as
|
|
3768
|
+
import { Entity as Entity43, Column as Column44, ManyToOne as ManyToOne37, JoinColumn as JoinColumn37 } from "typeorm";
|
|
3710
3769
|
|
|
3711
3770
|
// src/entities/admin-role.entity.ts
|
|
3712
|
-
import { Entity as
|
|
3771
|
+
import { Entity as Entity42, Column as Column43, Index as Index35, OneToMany as OneToMany14 } from "typeorm";
|
|
3713
3772
|
|
|
3714
3773
|
// src/entities/admin-role-permission.entity.ts
|
|
3715
|
-
import { Entity as
|
|
3774
|
+
import { Entity as Entity41, Column as Column42, ManyToOne as ManyToOne36, JoinColumn as JoinColumn36 } from "typeorm";
|
|
3716
3775
|
|
|
3717
3776
|
// src/entities/admin-permission.entity.ts
|
|
3718
|
-
import { Entity as
|
|
3777
|
+
import { Entity as Entity40, Column as Column41, Index as Index33, OneToMany as OneToMany13 } from "typeorm";
|
|
3719
3778
|
var AdminPermission = class extends BaseEntity {
|
|
3720
3779
|
};
|
|
3721
3780
|
__decorateClass([
|
|
3722
|
-
|
|
3781
|
+
Column41({ name: "permission_name", type: "varchar", nullable: true })
|
|
3723
3782
|
], AdminPermission.prototype, "permissionName", 2);
|
|
3724
3783
|
__decorateClass([
|
|
3725
|
-
|
|
3784
|
+
Column41({
|
|
3726
3785
|
name: "permission_slug",
|
|
3727
3786
|
type: "varchar",
|
|
3728
3787
|
unique: true,
|
|
@@ -3731,29 +3790,29 @@ __decorateClass([
|
|
|
3731
3790
|
Index33()
|
|
3732
3791
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3733
3792
|
__decorateClass([
|
|
3734
|
-
|
|
3793
|
+
Column41({ name: "permission_description", type: "varchar", nullable: true })
|
|
3735
3794
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3736
3795
|
__decorateClass([
|
|
3737
|
-
|
|
3796
|
+
Column41({ name: "module", type: "varchar", nullable: true })
|
|
3738
3797
|
], AdminPermission.prototype, "module", 2);
|
|
3739
3798
|
__decorateClass([
|
|
3740
|
-
|
|
3799
|
+
Column41({ name: "is_active", type: "boolean", default: true })
|
|
3741
3800
|
], AdminPermission.prototype, "isActive", 2);
|
|
3742
3801
|
__decorateClass([
|
|
3743
|
-
|
|
3802
|
+
OneToMany13(
|
|
3744
3803
|
() => AdminRolePermission,
|
|
3745
3804
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
3746
3805
|
)
|
|
3747
3806
|
], AdminPermission.prototype, "adminRole", 2);
|
|
3748
3807
|
AdminPermission = __decorateClass([
|
|
3749
|
-
|
|
3808
|
+
Entity40("admin_permissions")
|
|
3750
3809
|
], AdminPermission);
|
|
3751
3810
|
|
|
3752
3811
|
// src/entities/admin-role-permission.entity.ts
|
|
3753
3812
|
var AdminRolePermission = class extends BaseEntity {
|
|
3754
3813
|
};
|
|
3755
3814
|
__decorateClass([
|
|
3756
|
-
|
|
3815
|
+
Column42({
|
|
3757
3816
|
name: "role_id",
|
|
3758
3817
|
type: "int",
|
|
3759
3818
|
nullable: true,
|
|
@@ -3761,11 +3820,11 @@ __decorateClass([
|
|
|
3761
3820
|
})
|
|
3762
3821
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
3763
3822
|
__decorateClass([
|
|
3764
|
-
|
|
3765
|
-
|
|
3823
|
+
ManyToOne36(() => AdminRole),
|
|
3824
|
+
JoinColumn36({ name: "role_id" })
|
|
3766
3825
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3767
3826
|
__decorateClass([
|
|
3768
|
-
|
|
3827
|
+
Column42({
|
|
3769
3828
|
name: "permission_id",
|
|
3770
3829
|
type: "int",
|
|
3771
3830
|
nullable: true,
|
|
@@ -3773,47 +3832,47 @@ __decorateClass([
|
|
|
3773
3832
|
})
|
|
3774
3833
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3775
3834
|
__decorateClass([
|
|
3776
|
-
|
|
3777
|
-
|
|
3835
|
+
ManyToOne36(() => AdminPermission),
|
|
3836
|
+
JoinColumn36({ name: "permission_id" })
|
|
3778
3837
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3779
3838
|
AdminRolePermission = __decorateClass([
|
|
3780
|
-
|
|
3839
|
+
Entity41("admin_role_permissions")
|
|
3781
3840
|
], AdminRolePermission);
|
|
3782
3841
|
|
|
3783
3842
|
// src/entities/admin-role.entity.ts
|
|
3784
3843
|
var AdminRole = class extends BaseEntity {
|
|
3785
3844
|
};
|
|
3786
3845
|
__decorateClass([
|
|
3787
|
-
|
|
3846
|
+
Column43({ name: "role_name", type: "varchar", nullable: true })
|
|
3788
3847
|
], AdminRole.prototype, "roleName", 2);
|
|
3789
3848
|
__decorateClass([
|
|
3790
|
-
|
|
3849
|
+
Column43({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3791
3850
|
Index35()
|
|
3792
3851
|
], AdminRole.prototype, "roleSlug", 2);
|
|
3793
3852
|
__decorateClass([
|
|
3794
|
-
|
|
3853
|
+
Column43({ name: "role_description", type: "varchar", nullable: true })
|
|
3795
3854
|
], AdminRole.prototype, "roleDescription", 2);
|
|
3796
3855
|
__decorateClass([
|
|
3797
|
-
|
|
3856
|
+
Column43({ name: "is_active", type: "boolean", default: true })
|
|
3798
3857
|
], AdminRole.prototype, "isActive", 2);
|
|
3799
3858
|
__decorateClass([
|
|
3800
|
-
|
|
3859
|
+
OneToMany14(
|
|
3801
3860
|
() => AdminRolePermission,
|
|
3802
3861
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
3803
3862
|
)
|
|
3804
3863
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
3805
3864
|
__decorateClass([
|
|
3806
|
-
|
|
3865
|
+
OneToMany14(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
3807
3866
|
], AdminRole.prototype, "userRoles", 2);
|
|
3808
3867
|
AdminRole = __decorateClass([
|
|
3809
|
-
|
|
3868
|
+
Entity42("admin_roles")
|
|
3810
3869
|
], AdminRole);
|
|
3811
3870
|
|
|
3812
3871
|
// src/entities/admin-user-role.entity.ts
|
|
3813
3872
|
var AdminUserRole = class extends BaseEntity {
|
|
3814
3873
|
};
|
|
3815
3874
|
__decorateClass([
|
|
3816
|
-
|
|
3875
|
+
Column44({
|
|
3817
3876
|
name: "user_id",
|
|
3818
3877
|
type: "int",
|
|
3819
3878
|
nullable: true,
|
|
@@ -3821,11 +3880,11 @@ __decorateClass([
|
|
|
3821
3880
|
})
|
|
3822
3881
|
], AdminUserRole.prototype, "userId", 2);
|
|
3823
3882
|
__decorateClass([
|
|
3824
|
-
|
|
3825
|
-
|
|
3883
|
+
ManyToOne37(() => User),
|
|
3884
|
+
JoinColumn37({ name: "user_id" })
|
|
3826
3885
|
], AdminUserRole.prototype, "user", 2);
|
|
3827
3886
|
__decorateClass([
|
|
3828
|
-
|
|
3887
|
+
Column44({
|
|
3829
3888
|
name: "role_id",
|
|
3830
3889
|
type: "int",
|
|
3831
3890
|
nullable: true,
|
|
@@ -3833,40 +3892,40 @@ __decorateClass([
|
|
|
3833
3892
|
})
|
|
3834
3893
|
], AdminUserRole.prototype, "roleId", 2);
|
|
3835
3894
|
__decorateClass([
|
|
3836
|
-
|
|
3837
|
-
|
|
3895
|
+
ManyToOne37(() => AdminRole),
|
|
3896
|
+
JoinColumn37({ name: "role_id" })
|
|
3838
3897
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
3839
3898
|
AdminUserRole = __decorateClass([
|
|
3840
|
-
|
|
3899
|
+
Entity43("admin_user_roles")
|
|
3841
3900
|
], AdminUserRole);
|
|
3842
3901
|
|
|
3843
3902
|
// src/entities/freelancer-resume.entity.ts
|
|
3844
3903
|
import {
|
|
3845
|
-
Entity as
|
|
3846
|
-
Column as
|
|
3904
|
+
Entity as Entity44,
|
|
3905
|
+
Column as Column45,
|
|
3847
3906
|
Index as Index37,
|
|
3848
|
-
ManyToOne as
|
|
3849
|
-
JoinColumn as
|
|
3907
|
+
ManyToOne as ManyToOne38,
|
|
3908
|
+
JoinColumn as JoinColumn38
|
|
3850
3909
|
} from "typeorm";
|
|
3851
3910
|
var FreelancerResume = class extends BaseEntity {
|
|
3852
3911
|
};
|
|
3853
3912
|
// individual index to find profile by user
|
|
3854
3913
|
__decorateClass([
|
|
3855
|
-
|
|
3914
|
+
Column45({ name: "user_id", type: "integer", nullable: true }),
|
|
3856
3915
|
Index37()
|
|
3857
3916
|
], FreelancerResume.prototype, "userId", 2);
|
|
3858
3917
|
__decorateClass([
|
|
3859
|
-
|
|
3860
|
-
|
|
3918
|
+
ManyToOne38(() => User, (user) => user.freelancerProfile),
|
|
3919
|
+
JoinColumn38({ name: "user_id" })
|
|
3861
3920
|
], FreelancerResume.prototype, "user", 2);
|
|
3862
3921
|
__decorateClass([
|
|
3863
|
-
|
|
3922
|
+
Column45({ name: "resume_data", type: "jsonb", nullable: true })
|
|
3864
3923
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
3865
3924
|
__decorateClass([
|
|
3866
|
-
|
|
3925
|
+
Column45({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
3867
3926
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
3868
3927
|
FreelancerResume = __decorateClass([
|
|
3869
|
-
|
|
3928
|
+
Entity44("freelancer_resumes")
|
|
3870
3929
|
], FreelancerResume);
|
|
3871
3930
|
|
|
3872
3931
|
// src/entities/user.entity.ts
|
|
@@ -3894,51 +3953,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3894
3953
|
var User = class extends BaseEntity {
|
|
3895
3954
|
};
|
|
3896
3955
|
__decorateClass([
|
|
3897
|
-
|
|
3956
|
+
Column46({ name: "unique_id", type: "varchar", unique: true })
|
|
3898
3957
|
], User.prototype, "uniqueId", 2);
|
|
3899
3958
|
__decorateClass([
|
|
3900
|
-
|
|
3959
|
+
Column46({ name: "parent_id", type: "integer", nullable: true }),
|
|
3901
3960
|
Index38()
|
|
3902
3961
|
], User.prototype, "parentId", 2);
|
|
3903
3962
|
__decorateClass([
|
|
3904
|
-
|
|
3905
|
-
|
|
3963
|
+
ManyToOne39(() => User, (user) => user.children, { nullable: true }),
|
|
3964
|
+
JoinColumn39({ name: "parent_id" })
|
|
3906
3965
|
], User.prototype, "parent", 2);
|
|
3907
3966
|
__decorateClass([
|
|
3908
|
-
|
|
3967
|
+
OneToMany15(() => User, (user) => user.parent)
|
|
3909
3968
|
], User.prototype, "children", 2);
|
|
3910
3969
|
__decorateClass([
|
|
3911
|
-
|
|
3970
|
+
Column46({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3912
3971
|
], User.prototype, "username", 2);
|
|
3913
3972
|
__decorateClass([
|
|
3914
|
-
|
|
3973
|
+
Column46({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3915
3974
|
], User.prototype, "firstName", 2);
|
|
3916
3975
|
__decorateClass([
|
|
3917
|
-
|
|
3976
|
+
Column46({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3918
3977
|
], User.prototype, "lastName", 2);
|
|
3919
3978
|
__decorateClass([
|
|
3920
|
-
|
|
3979
|
+
Column46({ name: "date_of_birth", type: "date", nullable: true })
|
|
3921
3980
|
], User.prototype, "dateOfBirth", 2);
|
|
3922
3981
|
__decorateClass([
|
|
3923
|
-
|
|
3982
|
+
Column46({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3924
3983
|
], User.prototype, "gender", 2);
|
|
3925
3984
|
__decorateClass([
|
|
3926
|
-
|
|
3985
|
+
Column46({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3927
3986
|
], User.prototype, "profilePictureUrl", 2);
|
|
3928
3987
|
__decorateClass([
|
|
3929
|
-
|
|
3988
|
+
Column46({ name: "email", type: "varchar", unique: true })
|
|
3930
3989
|
], User.prototype, "email", 2);
|
|
3931
3990
|
__decorateClass([
|
|
3932
|
-
|
|
3991
|
+
Column46({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3933
3992
|
], User.prototype, "mobileCode", 2);
|
|
3934
3993
|
__decorateClass([
|
|
3935
|
-
|
|
3994
|
+
Column46({ name: "mobile", type: "varchar", nullable: true })
|
|
3936
3995
|
], User.prototype, "mobile", 2);
|
|
3937
3996
|
__decorateClass([
|
|
3938
|
-
|
|
3997
|
+
Column46({ name: "password", type: "varchar", nullable: true })
|
|
3939
3998
|
], User.prototype, "password", 2);
|
|
3940
3999
|
__decorateClass([
|
|
3941
|
-
|
|
4000
|
+
Column46({
|
|
3942
4001
|
name: "account_type",
|
|
3943
4002
|
type: "enum",
|
|
3944
4003
|
enum: AccountType,
|
|
@@ -3946,7 +4005,7 @@ __decorateClass([
|
|
|
3946
4005
|
})
|
|
3947
4006
|
], User.prototype, "accountType", 2);
|
|
3948
4007
|
__decorateClass([
|
|
3949
|
-
|
|
4008
|
+
Column46({
|
|
3950
4009
|
name: "account_status",
|
|
3951
4010
|
type: "enum",
|
|
3952
4011
|
enum: AccountStatus,
|
|
@@ -3954,39 +4013,39 @@ __decorateClass([
|
|
|
3954
4013
|
})
|
|
3955
4014
|
], User.prototype, "accountStatus", 2);
|
|
3956
4015
|
__decorateClass([
|
|
3957
|
-
|
|
4016
|
+
Column46({ name: "is_email_verified", type: "boolean", default: false })
|
|
3958
4017
|
], User.prototype, "isEmailVerified", 2);
|
|
3959
4018
|
__decorateClass([
|
|
3960
|
-
|
|
4019
|
+
Column46({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3961
4020
|
], User.prototype, "isMobileVerified", 2);
|
|
3962
4021
|
__decorateClass([
|
|
3963
|
-
|
|
4022
|
+
Column46({ name: "is_social", type: "boolean", default: false })
|
|
3964
4023
|
], User.prototype, "isSocial", 2);
|
|
3965
4024
|
__decorateClass([
|
|
3966
|
-
|
|
4025
|
+
Column46({
|
|
3967
4026
|
name: "last_login_at",
|
|
3968
4027
|
type: "timestamp with time zone",
|
|
3969
4028
|
nullable: true
|
|
3970
4029
|
})
|
|
3971
4030
|
], User.prototype, "lastLoginAt", 2);
|
|
3972
4031
|
__decorateClass([
|
|
3973
|
-
|
|
4032
|
+
Column46({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3974
4033
|
], User.prototype, "lastLoginIp", 2);
|
|
3975
4034
|
__decorateClass([
|
|
3976
|
-
|
|
4035
|
+
Column46({ name: "reset_token", type: "varchar", nullable: true })
|
|
3977
4036
|
], User.prototype, "resetToken", 2);
|
|
3978
4037
|
__decorateClass([
|
|
3979
|
-
|
|
4038
|
+
Column46({
|
|
3980
4039
|
name: "reset_token_expire_at",
|
|
3981
4040
|
type: "timestamp with time zone",
|
|
3982
4041
|
nullable: true
|
|
3983
4042
|
})
|
|
3984
4043
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
3985
4044
|
__decorateClass([
|
|
3986
|
-
|
|
4045
|
+
OneToMany15(() => RefreshToken, (token) => token.user)
|
|
3987
4046
|
], User.prototype, "refreshTokens", 2);
|
|
3988
4047
|
__decorateClass([
|
|
3989
|
-
|
|
4048
|
+
Column46({
|
|
3990
4049
|
name: "provider",
|
|
3991
4050
|
type: "enum",
|
|
3992
4051
|
enum: Provider,
|
|
@@ -3995,40 +4054,40 @@ __decorateClass([
|
|
|
3995
4054
|
})
|
|
3996
4055
|
], User.prototype, "provider", 2);
|
|
3997
4056
|
__decorateClass([
|
|
3998
|
-
|
|
4057
|
+
Column46({ name: "provider_token", type: "varchar", nullable: true })
|
|
3999
4058
|
], User.prototype, "providerToken", 2);
|
|
4000
4059
|
__decorateClass([
|
|
4001
|
-
|
|
4060
|
+
Column46({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
4002
4061
|
], User.prototype, "linkedInId", 2);
|
|
4003
4062
|
__decorateClass([
|
|
4004
|
-
|
|
4063
|
+
Column46({ name: "google_id", type: "varchar", nullable: true })
|
|
4005
4064
|
], User.prototype, "googleId", 2);
|
|
4006
4065
|
__decorateClass([
|
|
4007
|
-
|
|
4066
|
+
Column46({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
4008
4067
|
], User.prototype, "gitLabsId", 2);
|
|
4009
4068
|
__decorateClass([
|
|
4010
|
-
|
|
4069
|
+
Column46({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
4011
4070
|
], User.prototype, "onBoardedBy", 2);
|
|
4012
4071
|
__decorateClass([
|
|
4013
|
-
|
|
4072
|
+
OneToMany15(() => Otp, (otp) => otp.user)
|
|
4014
4073
|
], User.prototype, "otps", 2);
|
|
4015
4074
|
__decorateClass([
|
|
4016
|
-
|
|
4075
|
+
OneToMany15(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
4017
4076
|
], User.prototype, "senseloafLogs", 2);
|
|
4018
4077
|
__decorateClass([
|
|
4019
4078
|
OneToOne3(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
4020
4079
|
], User.prototype, "companyProfile", 2);
|
|
4021
4080
|
__decorateClass([
|
|
4022
|
-
|
|
4081
|
+
OneToMany15(() => CompanySkill, (companySkill) => companySkill.user)
|
|
4023
4082
|
], User.prototype, "companySkills", 2);
|
|
4024
4083
|
__decorateClass([
|
|
4025
|
-
|
|
4084
|
+
OneToMany15(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
4026
4085
|
], User.prototype, "companyMemberRoles", 2);
|
|
4027
4086
|
__decorateClass([
|
|
4028
|
-
|
|
4087
|
+
OneToMany15(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
4029
4088
|
], User.prototype, "companyAiInterview", 2);
|
|
4030
4089
|
__decorateClass([
|
|
4031
|
-
|
|
4090
|
+
OneToMany15(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
4032
4091
|
], User.prototype, "clientF2FInterviews", 2);
|
|
4033
4092
|
__decorateClass([
|
|
4034
4093
|
OneToOne3(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
|
|
@@ -4037,67 +4096,70 @@ __decorateClass([
|
|
|
4037
4096
|
OneToOne3(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
4038
4097
|
], User.prototype, "freelancerResume", 2);
|
|
4039
4098
|
__decorateClass([
|
|
4040
|
-
|
|
4099
|
+
OneToMany15(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
4041
4100
|
], User.prototype, "assessments", 2);
|
|
4042
4101
|
__decorateClass([
|
|
4043
|
-
|
|
4102
|
+
OneToMany15(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
4044
4103
|
], User.prototype, "assessmentAnswers", 2);
|
|
4045
4104
|
__decorateClass([
|
|
4046
|
-
|
|
4105
|
+
OneToMany15(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
4047
4106
|
], User.prototype, "freelancerSkills", 2);
|
|
4048
4107
|
__decorateClass([
|
|
4049
|
-
|
|
4108
|
+
OneToMany15(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
4050
4109
|
], User.prototype, "freelancerExperience", 2);
|
|
4051
4110
|
__decorateClass([
|
|
4052
|
-
|
|
4111
|
+
OneToMany15(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
4053
4112
|
], User.prototype, "freelancerEducation", 2);
|
|
4054
4113
|
__decorateClass([
|
|
4055
|
-
|
|
4114
|
+
OneToMany15(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
4056
4115
|
], User.prototype, "freelancerProject", 2);
|
|
4057
4116
|
__decorateClass([
|
|
4058
|
-
|
|
4117
|
+
OneToMany15(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
4059
4118
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
4060
4119
|
__decorateClass([
|
|
4061
|
-
|
|
4120
|
+
OneToMany15(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
4062
4121
|
], User.prototype, "freelancerTool", 2);
|
|
4063
4122
|
__decorateClass([
|
|
4064
|
-
|
|
4123
|
+
OneToMany15(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
4065
4124
|
], User.prototype, "freelancerFramework", 2);
|
|
4066
4125
|
__decorateClass([
|
|
4067
4126
|
OneToOne3(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
4068
4127
|
], User.prototype, "freelancerDeclaration", 2);
|
|
4069
4128
|
__decorateClass([
|
|
4070
|
-
|
|
4129
|
+
OneToMany15(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
4071
4130
|
], User.prototype, "freelancerAiInterview", 2);
|
|
4072
4131
|
__decorateClass([
|
|
4073
|
-
|
|
4132
|
+
OneToMany15(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
4074
4133
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
4075
4134
|
__decorateClass([
|
|
4076
|
-
|
|
4135
|
+
OneToMany15(() => F2fInterviewRescheduleRequest, (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate)
|
|
4136
|
+
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
4137
|
+
__decorateClass([
|
|
4138
|
+
OneToMany15(() => Job, (job) => job.user)
|
|
4077
4139
|
], User.prototype, "jobs", 2);
|
|
4078
4140
|
__decorateClass([
|
|
4079
|
-
|
|
4141
|
+
OneToMany15(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
4080
4142
|
], User.prototype, "jobApplications", 2);
|
|
4081
4143
|
__decorateClass([
|
|
4082
|
-
|
|
4144
|
+
OneToMany15(() => Interview, (interview) => interview.user)
|
|
4083
4145
|
], User.prototype, "interviews", 2);
|
|
4084
4146
|
__decorateClass([
|
|
4085
|
-
|
|
4147
|
+
OneToMany15(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
4086
4148
|
], User.prototype, "bankDetail", 2);
|
|
4087
4149
|
__decorateClass([
|
|
4088
|
-
|
|
4150
|
+
OneToMany15(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
4089
4151
|
], User.prototype, "systemPreference", 2);
|
|
4090
4152
|
__decorateClass([
|
|
4091
|
-
|
|
4153
|
+
OneToMany15(() => Rating, (rating) => rating.reviewer)
|
|
4092
4154
|
], User.prototype, "givenRatings", 2);
|
|
4093
4155
|
__decorateClass([
|
|
4094
|
-
|
|
4156
|
+
OneToMany15(() => Rating, (rating) => rating.reviewee)
|
|
4095
4157
|
], User.prototype, "receivedRatings", 2);
|
|
4096
4158
|
__decorateClass([
|
|
4097
|
-
|
|
4159
|
+
OneToMany15(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
4098
4160
|
], User.prototype, "adminUserRoles", 2);
|
|
4099
4161
|
User = __decorateClass([
|
|
4100
|
-
|
|
4162
|
+
Entity45("users")
|
|
4101
4163
|
], User);
|
|
4102
4164
|
|
|
4103
4165
|
// src/entities/rating.entity.ts
|
|
@@ -4109,36 +4171,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
4109
4171
|
var Rating = class extends BaseEntity {
|
|
4110
4172
|
};
|
|
4111
4173
|
__decorateClass([
|
|
4112
|
-
|
|
4174
|
+
Column47({ name: "reviewer_id", type: "integer" }),
|
|
4113
4175
|
Index39()
|
|
4114
4176
|
], Rating.prototype, "reviewer_id", 2);
|
|
4115
4177
|
__decorateClass([
|
|
4116
|
-
|
|
4117
|
-
|
|
4178
|
+
ManyToOne40(() => User, { onDelete: "CASCADE" }),
|
|
4179
|
+
JoinColumn40({ name: "reviewer_id" })
|
|
4118
4180
|
], Rating.prototype, "reviewer", 2);
|
|
4119
4181
|
__decorateClass([
|
|
4120
|
-
|
|
4182
|
+
Column47({ name: "reviewee_id", type: "integer" }),
|
|
4121
4183
|
Index39()
|
|
4122
4184
|
], Rating.prototype, "reviewee_id", 2);
|
|
4123
4185
|
__decorateClass([
|
|
4124
|
-
|
|
4125
|
-
|
|
4186
|
+
ManyToOne40(() => User, { onDelete: "CASCADE" }),
|
|
4187
|
+
JoinColumn40({ name: "reviewee_id" })
|
|
4126
4188
|
], Rating.prototype, "reviewee", 2);
|
|
4127
4189
|
__decorateClass([
|
|
4128
|
-
|
|
4190
|
+
Column47({
|
|
4129
4191
|
type: "enum",
|
|
4130
4192
|
enum: RatingTypeEnum,
|
|
4131
4193
|
nullable: true
|
|
4132
4194
|
})
|
|
4133
4195
|
], Rating.prototype, "ratingType", 2);
|
|
4134
4196
|
__decorateClass([
|
|
4135
|
-
|
|
4197
|
+
Column47({ type: "integer", nullable: true })
|
|
4136
4198
|
], Rating.prototype, "rating", 2);
|
|
4137
4199
|
__decorateClass([
|
|
4138
|
-
|
|
4200
|
+
Column47({ type: "text", nullable: true })
|
|
4139
4201
|
], Rating.prototype, "review", 2);
|
|
4140
4202
|
Rating = __decorateClass([
|
|
4141
|
-
|
|
4203
|
+
Entity46("ratings")
|
|
4142
4204
|
], Rating);
|
|
4143
4205
|
|
|
4144
4206
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -4159,7 +4221,7 @@ __decorateClass([
|
|
|
4159
4221
|
Max(5, { message: "Rating must be at most 5" })
|
|
4160
4222
|
], CreateRatingDto.prototype, "rating", 2);
|
|
4161
4223
|
__decorateClass([
|
|
4162
|
-
|
|
4224
|
+
IsOptional14(),
|
|
4163
4225
|
IsString16({ message: "Review must be a string" })
|
|
4164
4226
|
], CreateRatingDto.prototype, "review", 2);
|
|
4165
4227
|
|
|
@@ -4176,7 +4238,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
4176
4238
|
};
|
|
4177
4239
|
|
|
4178
4240
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
4179
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as
|
|
4241
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional15 } from "class-validator";
|
|
4180
4242
|
var CreateCompanyRoleDto = class {
|
|
4181
4243
|
};
|
|
4182
4244
|
__decorateClass([
|
|
@@ -4194,12 +4256,12 @@ __decorateClass([
|
|
|
4194
4256
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
4195
4257
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
4196
4258
|
__decorateClass([
|
|
4197
|
-
|
|
4259
|
+
IsOptional15(),
|
|
4198
4260
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
4199
4261
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
4200
4262
|
|
|
4201
4263
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
4202
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as
|
|
4264
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional16 } from "class-validator";
|
|
4203
4265
|
var UpdateCompanyRoleDto = class {
|
|
4204
4266
|
};
|
|
4205
4267
|
__decorateClass([
|
|
@@ -4217,7 +4279,7 @@ __decorateClass([
|
|
|
4217
4279
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
4218
4280
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
4219
4281
|
__decorateClass([
|
|
4220
|
-
|
|
4282
|
+
IsOptional16(),
|
|
4221
4283
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
4222
4284
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
4223
4285
|
|
|
@@ -4239,7 +4301,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
4239
4301
|
import {
|
|
4240
4302
|
ArrayMinSize,
|
|
4241
4303
|
IsNotEmpty as IsNotEmpty36,
|
|
4242
|
-
IsOptional as
|
|
4304
|
+
IsOptional as IsOptional17,
|
|
4243
4305
|
IsString as IsString19,
|
|
4244
4306
|
MaxLength as MaxLength10,
|
|
4245
4307
|
ValidateNested
|
|
@@ -4248,7 +4310,7 @@ import { Type as Type2 } from "class-transformer";
|
|
|
4248
4310
|
var ExperienceDto = class {
|
|
4249
4311
|
};
|
|
4250
4312
|
__decorateClass([
|
|
4251
|
-
|
|
4313
|
+
IsOptional17()
|
|
4252
4314
|
], ExperienceDto.prototype, "uuid", 2);
|
|
4253
4315
|
__decorateClass([
|
|
4254
4316
|
IsNotEmpty36(),
|
|
@@ -4263,7 +4325,7 @@ __decorateClass([
|
|
|
4263
4325
|
IsString19()
|
|
4264
4326
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
4265
4327
|
__decorateClass([
|
|
4266
|
-
|
|
4328
|
+
IsOptional17(),
|
|
4267
4329
|
IsString19(),
|
|
4268
4330
|
MaxLength10(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4269
4331
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -4334,12 +4396,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
4334
4396
|
};
|
|
4335
4397
|
|
|
4336
4398
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
4337
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as
|
|
4399
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional20, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
4338
4400
|
import { Type as Type3 } from "class-transformer";
|
|
4339
4401
|
var EducationDto = class {
|
|
4340
4402
|
};
|
|
4341
4403
|
__decorateClass([
|
|
4342
|
-
|
|
4404
|
+
IsOptional20()
|
|
4343
4405
|
], EducationDto.prototype, "uuid", 2);
|
|
4344
4406
|
__decorateClass([
|
|
4345
4407
|
IsString22(),
|
|
@@ -4369,12 +4431,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
4369
4431
|
};
|
|
4370
4432
|
|
|
4371
4433
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4372
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as
|
|
4434
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional21, IsDateString, MaxLength as MaxLength12, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
4373
4435
|
import { Type as Type4 } from "class-transformer";
|
|
4374
4436
|
var ProjectDto = class {
|
|
4375
4437
|
};
|
|
4376
4438
|
__decorateClass([
|
|
4377
|
-
|
|
4439
|
+
IsOptional21()
|
|
4378
4440
|
], ProjectDto.prototype, "uuid", 2);
|
|
4379
4441
|
__decorateClass([
|
|
4380
4442
|
IsString23(),
|
|
@@ -4389,33 +4451,33 @@ __decorateClass([
|
|
|
4389
4451
|
IsNotEmpty40({ message: "Please Enter End Date " })
|
|
4390
4452
|
], ProjectDto.prototype, "endDate", 2);
|
|
4391
4453
|
__decorateClass([
|
|
4392
|
-
|
|
4454
|
+
IsOptional21(),
|
|
4393
4455
|
IsString23()
|
|
4394
4456
|
], ProjectDto.prototype, "clientName", 2);
|
|
4395
4457
|
__decorateClass([
|
|
4396
|
-
|
|
4458
|
+
IsOptional21(),
|
|
4397
4459
|
IsString23()
|
|
4398
4460
|
], ProjectDto.prototype, "gitLink", 2);
|
|
4399
4461
|
__decorateClass([
|
|
4400
|
-
|
|
4462
|
+
IsOptional21(),
|
|
4401
4463
|
IsString23(),
|
|
4402
4464
|
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4403
4465
|
], ProjectDto.prototype, "description", 2);
|
|
4404
4466
|
var CaseStudyDto = class {
|
|
4405
4467
|
};
|
|
4406
4468
|
__decorateClass([
|
|
4407
|
-
|
|
4469
|
+
IsOptional21()
|
|
4408
4470
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4409
4471
|
__decorateClass([
|
|
4410
4472
|
IsString23(),
|
|
4411
4473
|
IsNotEmpty40({ message: "Please Enter Project Name " })
|
|
4412
4474
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4413
4475
|
__decorateClass([
|
|
4414
|
-
|
|
4476
|
+
IsOptional21(),
|
|
4415
4477
|
IsString23()
|
|
4416
4478
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
4417
4479
|
__decorateClass([
|
|
4418
|
-
|
|
4480
|
+
IsOptional21(),
|
|
4419
4481
|
IsString23(),
|
|
4420
4482
|
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4421
4483
|
], CaseStudyDto.prototype, "description", 2);
|
|
@@ -4445,7 +4507,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4445
4507
|
};
|
|
4446
4508
|
|
|
4447
4509
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4448
|
-
import { IsArray as IsArray8, IsString as IsString24, IsOptional as
|
|
4510
|
+
import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional22 } from "class-validator";
|
|
4449
4511
|
import { Type as Type5 } from "class-transformer";
|
|
4450
4512
|
var FreelancerSkillDto = class {
|
|
4451
4513
|
constructor() {
|
|
@@ -4455,19 +4517,19 @@ var FreelancerSkillDto = class {
|
|
|
4455
4517
|
}
|
|
4456
4518
|
};
|
|
4457
4519
|
__decorateClass([
|
|
4458
|
-
|
|
4520
|
+
IsOptional22(),
|
|
4459
4521
|
IsArray8(),
|
|
4460
4522
|
Type5(() => String),
|
|
4461
4523
|
IsString24({ each: true })
|
|
4462
4524
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4463
4525
|
__decorateClass([
|
|
4464
|
-
|
|
4526
|
+
IsOptional22(),
|
|
4465
4527
|
IsArray8(),
|
|
4466
4528
|
Type5(() => String),
|
|
4467
4529
|
IsString24({ each: true })
|
|
4468
4530
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4469
4531
|
__decorateClass([
|
|
4470
|
-
|
|
4532
|
+
IsOptional22(),
|
|
4471
4533
|
IsArray8(),
|
|
4472
4534
|
Type5(() => String),
|
|
4473
4535
|
IsString24({ each: true })
|
|
@@ -4490,7 +4552,7 @@ import {
|
|
|
4490
4552
|
IsString as IsString25,
|
|
4491
4553
|
IsEmail as IsEmail10,
|
|
4492
4554
|
IsBoolean as IsBoolean10,
|
|
4493
|
-
IsOptional as
|
|
4555
|
+
IsOptional as IsOptional23,
|
|
4494
4556
|
IsEnum as IsEnum14,
|
|
4495
4557
|
IsNumber as IsNumber3,
|
|
4496
4558
|
IsUrl as IsUrl3,
|
|
@@ -4573,23 +4635,23 @@ __decorateClass([
|
|
|
4573
4635
|
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
4574
4636
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4575
4637
|
__decorateClass([
|
|
4576
|
-
|
|
4638
|
+
IsOptional23(),
|
|
4577
4639
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4578
4640
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4579
4641
|
__decorateClass([
|
|
4580
|
-
|
|
4642
|
+
IsOptional23(),
|
|
4581
4643
|
IsString25({ message: "Kaggle profile link must be a string" })
|
|
4582
4644
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4583
4645
|
__decorateClass([
|
|
4584
|
-
|
|
4646
|
+
IsOptional23(),
|
|
4585
4647
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
4586
4648
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4587
4649
|
__decorateClass([
|
|
4588
|
-
|
|
4650
|
+
IsOptional23(),
|
|
4589
4651
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4590
4652
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4591
4653
|
__decorateClass([
|
|
4592
|
-
|
|
4654
|
+
IsOptional23(),
|
|
4593
4655
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
4594
4656
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4595
4657
|
|
|
@@ -4598,7 +4660,7 @@ import {
|
|
|
4598
4660
|
IsString as IsString26,
|
|
4599
4661
|
IsEmail as IsEmail11,
|
|
4600
4662
|
IsBoolean as IsBoolean11,
|
|
4601
|
-
IsOptional as
|
|
4663
|
+
IsOptional as IsOptional24,
|
|
4602
4664
|
IsEnum as IsEnum15,
|
|
4603
4665
|
IsNumber as IsNumber4,
|
|
4604
4666
|
IsUrl as IsUrl4,
|
|
@@ -4625,24 +4687,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4625
4687
|
var UpdateFreelancerDto = class {
|
|
4626
4688
|
};
|
|
4627
4689
|
__decorateClass([
|
|
4628
|
-
|
|
4690
|
+
IsOptional24(),
|
|
4629
4691
|
IsString26({ message: "Full name must be a string" }),
|
|
4630
4692
|
MaxLength15(100, { message: "Full name must not exceed 100 characters" })
|
|
4631
4693
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4632
4694
|
__decorateClass([
|
|
4633
|
-
|
|
4695
|
+
IsOptional24(),
|
|
4634
4696
|
IsEmail11({}, { message: "Invalid email address" })
|
|
4635
4697
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4636
4698
|
__decorateClass([
|
|
4637
|
-
|
|
4699
|
+
IsOptional24(),
|
|
4638
4700
|
IsString26({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4639
4701
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4640
4702
|
__decorateClass([
|
|
4641
|
-
|
|
4703
|
+
IsOptional24(),
|
|
4642
4704
|
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4643
4705
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4644
4706
|
__decorateClass([
|
|
4645
|
-
|
|
4707
|
+
IsOptional24(),
|
|
4646
4708
|
Transform2(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4647
4709
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
4648
4710
|
MaxLength15(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -4651,12 +4713,12 @@ __decorateClass([
|
|
|
4651
4713
|
})
|
|
4652
4714
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4653
4715
|
__decorateClass([
|
|
4654
|
-
|
|
4716
|
+
IsOptional24(),
|
|
4655
4717
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
4656
4718
|
Type7(() => Boolean)
|
|
4657
4719
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4658
4720
|
__decorateClass([
|
|
4659
|
-
|
|
4721
|
+
IsOptional24(),
|
|
4660
4722
|
IsEnum15(NatureOfWorkEnum2, {
|
|
4661
4723
|
message: `Nature of work must be one of: ${Object.values(
|
|
4662
4724
|
NatureOfWorkEnum2
|
|
@@ -4664,13 +4726,13 @@ __decorateClass([
|
|
|
4664
4726
|
})
|
|
4665
4727
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4666
4728
|
__decorateClass([
|
|
4667
|
-
|
|
4729
|
+
IsOptional24(),
|
|
4668
4730
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
4669
4731
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4670
4732
|
Type7(() => Number)
|
|
4671
4733
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4672
4734
|
__decorateClass([
|
|
4673
|
-
|
|
4735
|
+
IsOptional24(),
|
|
4674
4736
|
IsEnum15(ModeOfWorkEnum2, {
|
|
4675
4737
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4676
4738
|
", "
|
|
@@ -4678,7 +4740,7 @@ __decorateClass([
|
|
|
4678
4740
|
})
|
|
4679
4741
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4680
4742
|
__decorateClass([
|
|
4681
|
-
|
|
4743
|
+
IsOptional24(),
|
|
4682
4744
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
4683
4745
|
Type7(() => Boolean)
|
|
4684
4746
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
@@ -4687,23 +4749,23 @@ __decorateClass([
|
|
|
4687
4749
|
IsNotEmpty43({ message: "Please enter availability to join." })
|
|
4688
4750
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4689
4751
|
__decorateClass([
|
|
4690
|
-
|
|
4752
|
+
IsOptional24(),
|
|
4691
4753
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4692
4754
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4693
4755
|
__decorateClass([
|
|
4694
|
-
|
|
4756
|
+
IsOptional24(),
|
|
4695
4757
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
4696
4758
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4697
4759
|
__decorateClass([
|
|
4698
|
-
|
|
4760
|
+
IsOptional24(),
|
|
4699
4761
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
4700
4762
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4701
4763
|
__decorateClass([
|
|
4702
|
-
|
|
4764
|
+
IsOptional24(),
|
|
4703
4765
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4704
4766
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4705
4767
|
__decorateClass([
|
|
4706
|
-
|
|
4768
|
+
IsOptional24(),
|
|
4707
4769
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
4708
4770
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4709
4771
|
|
|
@@ -4724,7 +4786,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4724
4786
|
import {
|
|
4725
4787
|
IsNotEmpty as IsNotEmpty44,
|
|
4726
4788
|
IsEmail as IsEmail12,
|
|
4727
|
-
IsOptional as
|
|
4789
|
+
IsOptional as IsOptional25,
|
|
4728
4790
|
IsString as IsString27,
|
|
4729
4791
|
IsArray as IsArray9,
|
|
4730
4792
|
MinLength as MinLength14,
|
|
@@ -4795,7 +4857,7 @@ __decorateClass([
|
|
|
4795
4857
|
IsString27()
|
|
4796
4858
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4797
4859
|
__decorateClass([
|
|
4798
|
-
|
|
4860
|
+
IsOptional25(),
|
|
4799
4861
|
IsString27()
|
|
4800
4862
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4801
4863
|
|
|
@@ -4813,7 +4875,7 @@ import { Transform as Transform3 } from "class-transformer";
|
|
|
4813
4875
|
import {
|
|
4814
4876
|
IsNotEmpty as IsNotEmpty46,
|
|
4815
4877
|
IsEmail as IsEmail13,
|
|
4816
|
-
IsOptional as
|
|
4878
|
+
IsOptional as IsOptional26,
|
|
4817
4879
|
IsString as IsString29,
|
|
4818
4880
|
IsArray as IsArray10,
|
|
4819
4881
|
MinLength as MinLength15,
|
|
@@ -4848,7 +4910,7 @@ __decorateClass([
|
|
|
4848
4910
|
IsEmail13()
|
|
4849
4911
|
], UpdateClientDto.prototype, "email", 2);
|
|
4850
4912
|
__decorateClass([
|
|
4851
|
-
|
|
4913
|
+
IsOptional26(),
|
|
4852
4914
|
Transform3(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4853
4915
|
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
4854
4916
|
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -4881,7 +4943,7 @@ __decorateClass([
|
|
|
4881
4943
|
IsString29()
|
|
4882
4944
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4883
4945
|
__decorateClass([
|
|
4884
|
-
|
|
4946
|
+
IsOptional26(),
|
|
4885
4947
|
IsString29()
|
|
4886
4948
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4887
4949
|
|
|
@@ -4892,7 +4954,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4892
4954
|
};
|
|
4893
4955
|
|
|
4894
4956
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4895
|
-
import { IsOptional as
|
|
4957
|
+
import { IsOptional as IsOptional27, IsEnum as IsEnum18, IsString as IsString30, IsNotEmpty as IsNotEmpty47, IsIn as IsIn3 } from "class-validator";
|
|
4896
4958
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4897
4959
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4898
4960
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4903,7 +4965,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4903
4965
|
var FreelancerDeclarationDto = class {
|
|
4904
4966
|
};
|
|
4905
4967
|
__decorateClass([
|
|
4906
|
-
|
|
4968
|
+
IsOptional27(),
|
|
4907
4969
|
IsString30({ message: "UUID must be a string" })
|
|
4908
4970
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4909
4971
|
__decorateClass([
|
|
@@ -4927,35 +4989,35 @@ var CMS_PATTERNS = {
|
|
|
4927
4989
|
};
|
|
4928
4990
|
|
|
4929
4991
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4930
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as
|
|
4992
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional28 } from "class-validator";
|
|
4931
4993
|
var CreateCmsDto = class {
|
|
4932
4994
|
};
|
|
4933
4995
|
__decorateClass([
|
|
4934
4996
|
IsNotEmpty48({ message: "Please enter name." })
|
|
4935
4997
|
], CreateCmsDto.prototype, "title", 2);
|
|
4936
4998
|
__decorateClass([
|
|
4937
|
-
|
|
4999
|
+
IsOptional28()
|
|
4938
5000
|
], CreateCmsDto.prototype, "content", 2);
|
|
4939
5001
|
__decorateClass([
|
|
4940
|
-
|
|
5002
|
+
IsOptional28(),
|
|
4941
5003
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
4942
5004
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4943
5005
|
|
|
4944
5006
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4945
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as
|
|
5007
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional29 } from "class-validator";
|
|
4946
5008
|
var UpdateCmsDto = class {
|
|
4947
5009
|
};
|
|
4948
5010
|
__decorateClass([
|
|
4949
|
-
|
|
5011
|
+
IsOptional29()
|
|
4950
5012
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4951
5013
|
__decorateClass([
|
|
4952
5014
|
IsNotEmpty49({ message: "Please enter name." })
|
|
4953
5015
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4954
5016
|
__decorateClass([
|
|
4955
|
-
|
|
5017
|
+
IsOptional29()
|
|
4956
5018
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4957
5019
|
__decorateClass([
|
|
4958
|
-
|
|
5020
|
+
IsOptional29(),
|
|
4959
5021
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
4960
5022
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4961
5023
|
|
|
@@ -4988,7 +5050,7 @@ import {
|
|
|
4988
5050
|
IsString as IsString31,
|
|
4989
5051
|
IsEnum as IsEnum19,
|
|
4990
5052
|
IsInt as IsInt6,
|
|
4991
|
-
IsOptional as
|
|
5053
|
+
IsOptional as IsOptional30,
|
|
4992
5054
|
IsArray as IsArray11,
|
|
4993
5055
|
IsDateString as IsDateString4,
|
|
4994
5056
|
IsNotEmpty as IsNotEmpty50,
|
|
@@ -5015,7 +5077,7 @@ __decorateClass([
|
|
|
5015
5077
|
IsNotEmpty50({ message: "Job role is required." })
|
|
5016
5078
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
5017
5079
|
__decorateClass([
|
|
5018
|
-
|
|
5080
|
+
IsOptional30(),
|
|
5019
5081
|
IsString31({ message: "Note must be a string." })
|
|
5020
5082
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
5021
5083
|
__decorateClass([
|
|
@@ -5065,7 +5127,7 @@ __decorateClass([
|
|
|
5065
5127
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
5066
5128
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5067
5129
|
__decorateClass([
|
|
5068
|
-
|
|
5130
|
+
IsOptional30(),
|
|
5069
5131
|
IsString31({ message: "Additional comment must be a string." })
|
|
5070
5132
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
5071
5133
|
__decorateClass([
|
|
@@ -5087,7 +5149,7 @@ import {
|
|
|
5087
5149
|
IsString as IsString32,
|
|
5088
5150
|
IsEnum as IsEnum20,
|
|
5089
5151
|
IsInt as IsInt7,
|
|
5090
|
-
IsOptional as
|
|
5152
|
+
IsOptional as IsOptional31,
|
|
5091
5153
|
IsArray as IsArray12,
|
|
5092
5154
|
IsDateString as IsDateString5,
|
|
5093
5155
|
IsNotEmpty as IsNotEmpty51,
|
|
@@ -5114,7 +5176,7 @@ __decorateClass([
|
|
|
5114
5176
|
IsNotEmpty51({ message: "Job role is required." })
|
|
5115
5177
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
5116
5178
|
__decorateClass([
|
|
5117
|
-
|
|
5179
|
+
IsOptional31(),
|
|
5118
5180
|
IsString32({ message: "Note must be a string." })
|
|
5119
5181
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
5120
5182
|
__decorateClass([
|
|
@@ -5164,7 +5226,7 @@ __decorateClass([
|
|
|
5164
5226
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
5165
5227
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5166
5228
|
__decorateClass([
|
|
5167
|
-
|
|
5229
|
+
IsOptional31(),
|
|
5168
5230
|
IsString32({ message: "Additional comment must be a string." })
|
|
5169
5231
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
5170
5232
|
__decorateClass([
|
|
@@ -5187,7 +5249,7 @@ var LEAD_PATTERN = {
|
|
|
5187
5249
|
};
|
|
5188
5250
|
|
|
5189
5251
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
5190
|
-
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as
|
|
5252
|
+
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional32, IsEnum as IsEnum21 } from "class-validator";
|
|
5191
5253
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
5192
5254
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
5193
5255
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -5208,7 +5270,7 @@ __decorateClass([
|
|
|
5208
5270
|
IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
5209
5271
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
5210
5272
|
__decorateClass([
|
|
5211
|
-
|
|
5273
|
+
IsOptional32(),
|
|
5212
5274
|
IsString33({ message: "Description must be a string" })
|
|
5213
5275
|
], CreateLeadDto.prototype, "description", 2);
|
|
5214
5276
|
__decorateClass([
|
|
@@ -5232,7 +5294,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
5232
5294
|
};
|
|
5233
5295
|
|
|
5234
5296
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
5235
|
-
import { IsNotEmpty as IsNotEmpty52, IsOptional as
|
|
5297
|
+
import { IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional33, IsString as IsString34 } from "class-validator";
|
|
5236
5298
|
var CreateAdminRoleDto = class {
|
|
5237
5299
|
};
|
|
5238
5300
|
__decorateClass([
|
|
@@ -5240,12 +5302,12 @@ __decorateClass([
|
|
|
5240
5302
|
IsString34({ message: "Role name must be a string." })
|
|
5241
5303
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
5242
5304
|
__decorateClass([
|
|
5243
|
-
|
|
5305
|
+
IsOptional33(),
|
|
5244
5306
|
IsString34({ message: "Role description must be a string." })
|
|
5245
5307
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5246
5308
|
|
|
5247
5309
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
5248
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as
|
|
5310
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as IsOptional34, IsString as IsString35 } from "class-validator";
|
|
5249
5311
|
var UpdateAdminRoleDto = class {
|
|
5250
5312
|
};
|
|
5251
5313
|
__decorateClass([
|
|
@@ -5253,11 +5315,11 @@ __decorateClass([
|
|
|
5253
5315
|
IsString35({ message: "Role name must be a string." })
|
|
5254
5316
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
5255
5317
|
__decorateClass([
|
|
5256
|
-
|
|
5318
|
+
IsOptional34(),
|
|
5257
5319
|
IsString35({ message: "Role description must be a string." })
|
|
5258
5320
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5259
5321
|
__decorateClass([
|
|
5260
|
-
|
|
5322
|
+
IsOptional34(),
|
|
5261
5323
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
5262
5324
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
5263
5325
|
|
|
@@ -5571,11 +5633,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
5571
5633
|
};
|
|
5572
5634
|
|
|
5573
5635
|
// src/entities/sequence-generator.entity.ts
|
|
5574
|
-
import { Entity as
|
|
5636
|
+
import { Entity as Entity47, Column as Column48 } from "typeorm";
|
|
5575
5637
|
var SequenceGenerator = class extends BaseEntity {
|
|
5576
5638
|
};
|
|
5577
5639
|
__decorateClass([
|
|
5578
|
-
|
|
5640
|
+
Column48({
|
|
5579
5641
|
name: "module",
|
|
5580
5642
|
type: "varchar",
|
|
5581
5643
|
length: 50,
|
|
@@ -5584,7 +5646,7 @@ __decorateClass([
|
|
|
5584
5646
|
})
|
|
5585
5647
|
], SequenceGenerator.prototype, "module", 2);
|
|
5586
5648
|
__decorateClass([
|
|
5587
|
-
|
|
5649
|
+
Column48({
|
|
5588
5650
|
name: "prefix",
|
|
5589
5651
|
type: "varchar",
|
|
5590
5652
|
length: 10,
|
|
@@ -5593,7 +5655,7 @@ __decorateClass([
|
|
|
5593
5655
|
})
|
|
5594
5656
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
5595
5657
|
__decorateClass([
|
|
5596
|
-
|
|
5658
|
+
Column48({
|
|
5597
5659
|
name: "last_sequence",
|
|
5598
5660
|
type: "int",
|
|
5599
5661
|
nullable: false,
|
|
@@ -5601,7 +5663,7 @@ __decorateClass([
|
|
|
5601
5663
|
})
|
|
5602
5664
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
5603
5665
|
__decorateClass([
|
|
5604
|
-
|
|
5666
|
+
Column48({
|
|
5605
5667
|
name: "year",
|
|
5606
5668
|
type: "int",
|
|
5607
5669
|
nullable: true,
|
|
@@ -5609,11 +5671,11 @@ __decorateClass([
|
|
|
5609
5671
|
})
|
|
5610
5672
|
], SequenceGenerator.prototype, "year", 2);
|
|
5611
5673
|
SequenceGenerator = __decorateClass([
|
|
5612
|
-
|
|
5674
|
+
Entity47("sequence_generators")
|
|
5613
5675
|
], SequenceGenerator);
|
|
5614
5676
|
|
|
5615
5677
|
// src/entities/question.entity.ts
|
|
5616
|
-
import { Entity as
|
|
5678
|
+
import { Entity as Entity48, Column as Column49 } from "typeorm";
|
|
5617
5679
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
5618
5680
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
5619
5681
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -5622,16 +5684,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
5622
5684
|
var Question = class extends BaseEntity {
|
|
5623
5685
|
};
|
|
5624
5686
|
__decorateClass([
|
|
5625
|
-
|
|
5687
|
+
Column49({ name: "question", type: "varchar" })
|
|
5626
5688
|
], Question.prototype, "question", 2);
|
|
5627
5689
|
__decorateClass([
|
|
5628
|
-
|
|
5690
|
+
Column49({ name: "hint", type: "varchar", nullable: true })
|
|
5629
5691
|
], Question.prototype, "hint", 2);
|
|
5630
5692
|
__decorateClass([
|
|
5631
|
-
|
|
5693
|
+
Column49({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5632
5694
|
], Question.prototype, "slug", 2);
|
|
5633
5695
|
__decorateClass([
|
|
5634
|
-
|
|
5696
|
+
Column49({
|
|
5635
5697
|
name: "question_for",
|
|
5636
5698
|
type: "enum",
|
|
5637
5699
|
enum: QuestionFor,
|
|
@@ -5639,119 +5701,119 @@ __decorateClass([
|
|
|
5639
5701
|
})
|
|
5640
5702
|
], Question.prototype, "questionFor", 2);
|
|
5641
5703
|
__decorateClass([
|
|
5642
|
-
|
|
5704
|
+
Column49({ name: "type", type: "varchar", nullable: true })
|
|
5643
5705
|
], Question.prototype, "type", 2);
|
|
5644
5706
|
__decorateClass([
|
|
5645
|
-
|
|
5707
|
+
Column49({ name: "options", type: "jsonb", nullable: true })
|
|
5646
5708
|
], Question.prototype, "options", 2);
|
|
5647
5709
|
__decorateClass([
|
|
5648
|
-
|
|
5710
|
+
Column49({ name: "is_active", type: "boolean", default: false })
|
|
5649
5711
|
], Question.prototype, "isActive", 2);
|
|
5650
5712
|
Question = __decorateClass([
|
|
5651
|
-
|
|
5713
|
+
Entity48("questions")
|
|
5652
5714
|
], Question);
|
|
5653
5715
|
|
|
5654
5716
|
// src/entities/skill.entity.ts
|
|
5655
|
-
import { Entity as
|
|
5717
|
+
import { Entity as Entity49, Column as Column50 } from "typeorm";
|
|
5656
5718
|
var Skill = class extends BaseEntity {
|
|
5657
5719
|
};
|
|
5658
5720
|
__decorateClass([
|
|
5659
|
-
|
|
5721
|
+
Column50({ name: "name", type: "varchar", nullable: true })
|
|
5660
5722
|
], Skill.prototype, "name", 2);
|
|
5661
5723
|
__decorateClass([
|
|
5662
|
-
|
|
5724
|
+
Column50({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5663
5725
|
], Skill.prototype, "slug", 2);
|
|
5664
5726
|
__decorateClass([
|
|
5665
|
-
|
|
5727
|
+
Column50({ name: "is_active", type: "boolean", default: false })
|
|
5666
5728
|
], Skill.prototype, "isActive", 2);
|
|
5667
5729
|
Skill = __decorateClass([
|
|
5668
|
-
|
|
5730
|
+
Entity49("skills")
|
|
5669
5731
|
], Skill);
|
|
5670
5732
|
|
|
5671
5733
|
// src/entities/job-role.entity.ts
|
|
5672
|
-
import { Entity as
|
|
5734
|
+
import { Entity as Entity50, Column as Column51 } from "typeorm";
|
|
5673
5735
|
var JobRoles = class extends BaseEntity {
|
|
5674
5736
|
};
|
|
5675
5737
|
__decorateClass([
|
|
5676
|
-
|
|
5738
|
+
Column51({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5677
5739
|
], JobRoles.prototype, "slug", 2);
|
|
5678
5740
|
__decorateClass([
|
|
5679
|
-
|
|
5741
|
+
Column51({ name: "name", type: "varchar", nullable: true })
|
|
5680
5742
|
], JobRoles.prototype, "name", 2);
|
|
5681
5743
|
__decorateClass([
|
|
5682
|
-
|
|
5744
|
+
Column51({ name: "is_active", type: "boolean", default: true })
|
|
5683
5745
|
], JobRoles.prototype, "isActive", 2);
|
|
5684
5746
|
JobRoles = __decorateClass([
|
|
5685
|
-
|
|
5747
|
+
Entity50("job_roles")
|
|
5686
5748
|
], JobRoles);
|
|
5687
5749
|
|
|
5688
5750
|
// src/entities/plan.entity.ts
|
|
5689
|
-
import { Entity as
|
|
5751
|
+
import { Entity as Entity52, Column as Column53, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
5690
5752
|
|
|
5691
5753
|
// src/entities/feature.entity.ts
|
|
5692
|
-
import { Entity as
|
|
5754
|
+
import { Entity as Entity51, Column as Column52, ManyToMany as ManyToMany2 } from "typeorm";
|
|
5693
5755
|
var Feature = class extends BaseEntity {
|
|
5694
5756
|
};
|
|
5695
5757
|
__decorateClass([
|
|
5696
|
-
|
|
5758
|
+
Column52({ name: "name", type: "varchar", unique: true })
|
|
5697
5759
|
], Feature.prototype, "name", 2);
|
|
5698
5760
|
__decorateClass([
|
|
5699
5761
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
5700
5762
|
], Feature.prototype, "plans", 2);
|
|
5701
5763
|
Feature = __decorateClass([
|
|
5702
|
-
|
|
5764
|
+
Entity51("features")
|
|
5703
5765
|
], Feature);
|
|
5704
5766
|
|
|
5705
5767
|
// src/entities/plan.entity.ts
|
|
5706
5768
|
var Plan = class extends BaseEntity {
|
|
5707
5769
|
};
|
|
5708
5770
|
__decorateClass([
|
|
5709
|
-
|
|
5771
|
+
Column53({ name: "name", type: "varchar", unique: true })
|
|
5710
5772
|
], Plan.prototype, "name", 2);
|
|
5711
5773
|
__decorateClass([
|
|
5712
|
-
|
|
5774
|
+
Column53({ name: "description", type: "varchar", nullable: true })
|
|
5713
5775
|
], Plan.prototype, "description", 2);
|
|
5714
5776
|
__decorateClass([
|
|
5715
|
-
|
|
5777
|
+
Column53({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5716
5778
|
], Plan.prototype, "price", 2);
|
|
5717
5779
|
__decorateClass([
|
|
5718
|
-
|
|
5780
|
+
Column53({ name: "billing_period", type: "varchar" })
|
|
5719
5781
|
], Plan.prototype, "billingPeriod", 2);
|
|
5720
5782
|
__decorateClass([
|
|
5721
|
-
|
|
5783
|
+
Column53({ name: "is_current", type: "boolean", default: false })
|
|
5722
5784
|
], Plan.prototype, "isCurrent", 2);
|
|
5723
5785
|
__decorateClass([
|
|
5724
5786
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5725
5787
|
JoinTable()
|
|
5726
5788
|
], Plan.prototype, "features", 2);
|
|
5727
5789
|
Plan = __decorateClass([
|
|
5728
|
-
|
|
5790
|
+
Entity52("plans")
|
|
5729
5791
|
], Plan);
|
|
5730
5792
|
|
|
5731
5793
|
// src/entities/cms.entity.ts
|
|
5732
|
-
import { Entity as
|
|
5794
|
+
import { Entity as Entity53, Column as Column54 } from "typeorm";
|
|
5733
5795
|
var Cms = class extends BaseEntity {
|
|
5734
5796
|
};
|
|
5735
5797
|
__decorateClass([
|
|
5736
|
-
|
|
5798
|
+
Column54({ name: "title", type: "varchar", nullable: true })
|
|
5737
5799
|
], Cms.prototype, "title", 2);
|
|
5738
5800
|
__decorateClass([
|
|
5739
|
-
|
|
5801
|
+
Column54({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5740
5802
|
], Cms.prototype, "slug", 2);
|
|
5741
5803
|
__decorateClass([
|
|
5742
|
-
|
|
5804
|
+
Column54({ name: "content", type: "varchar", nullable: true })
|
|
5743
5805
|
], Cms.prototype, "content", 2);
|
|
5744
5806
|
__decorateClass([
|
|
5745
|
-
|
|
5807
|
+
Column54({ name: "is_active", type: "boolean", default: true })
|
|
5746
5808
|
], Cms.prototype, "isActive", 2);
|
|
5747
5809
|
Cms = __decorateClass([
|
|
5748
|
-
|
|
5810
|
+
Entity53("cms")
|
|
5749
5811
|
], Cms);
|
|
5750
5812
|
|
|
5751
5813
|
// src/entities/lead.entity.ts
|
|
5752
5814
|
import {
|
|
5753
|
-
Entity as
|
|
5754
|
-
Column as
|
|
5815
|
+
Entity as Entity54,
|
|
5816
|
+
Column as Column55
|
|
5755
5817
|
} from "typeorm";
|
|
5756
5818
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5757
5819
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -5761,22 +5823,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5761
5823
|
var Lead = class extends BaseEntity {
|
|
5762
5824
|
};
|
|
5763
5825
|
__decorateClass([
|
|
5764
|
-
|
|
5826
|
+
Column55({ name: "name", type: "varchar", nullable: true })
|
|
5765
5827
|
], Lead.prototype, "name", 2);
|
|
5766
5828
|
__decorateClass([
|
|
5767
|
-
|
|
5829
|
+
Column55({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5768
5830
|
], Lead.prototype, "mobileCode", 2);
|
|
5769
5831
|
__decorateClass([
|
|
5770
|
-
|
|
5832
|
+
Column55({ name: "mobile", type: "varchar", nullable: true })
|
|
5771
5833
|
], Lead.prototype, "mobile", 2);
|
|
5772
5834
|
__decorateClass([
|
|
5773
|
-
|
|
5835
|
+
Column55({ name: "email", type: "varchar", nullable: true })
|
|
5774
5836
|
], Lead.prototype, "email", 2);
|
|
5775
5837
|
__decorateClass([
|
|
5776
|
-
|
|
5838
|
+
Column55({ name: "description", type: "varchar", nullable: true })
|
|
5777
5839
|
], Lead.prototype, "description", 2);
|
|
5778
5840
|
__decorateClass([
|
|
5779
|
-
|
|
5841
|
+
Column55({
|
|
5780
5842
|
name: "category",
|
|
5781
5843
|
type: "enum",
|
|
5782
5844
|
enum: CategoryEmum,
|
|
@@ -5784,7 +5846,7 @@ __decorateClass([
|
|
|
5784
5846
|
})
|
|
5785
5847
|
], Lead.prototype, "category", 2);
|
|
5786
5848
|
Lead = __decorateClass([
|
|
5787
|
-
|
|
5849
|
+
Entity54("leads")
|
|
5788
5850
|
], Lead);
|
|
5789
5851
|
|
|
5790
5852
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -6025,7 +6087,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
6025
6087
|
], ClientFreelancerRecommendation);
|
|
6026
6088
|
|
|
6027
6089
|
// src/entities/commission.entity.ts
|
|
6028
|
-
import { Entity as
|
|
6090
|
+
import { Entity as Entity55, Column as Column56 } from "typeorm";
|
|
6029
6091
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
6030
6092
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
6031
6093
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -6034,7 +6096,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
6034
6096
|
var Commission = class extends BaseEntity {
|
|
6035
6097
|
};
|
|
6036
6098
|
__decorateClass([
|
|
6037
|
-
|
|
6099
|
+
Column56({
|
|
6038
6100
|
name: "freelancer_commission_type",
|
|
6039
6101
|
type: "enum",
|
|
6040
6102
|
enum: CommissionTypeEnum,
|
|
@@ -6042,10 +6104,10 @@ __decorateClass([
|
|
|
6042
6104
|
})
|
|
6043
6105
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
6044
6106
|
__decorateClass([
|
|
6045
|
-
|
|
6107
|
+
Column56({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
6046
6108
|
], Commission.prototype, "freelancerCommission", 2);
|
|
6047
6109
|
__decorateClass([
|
|
6048
|
-
|
|
6110
|
+
Column56({
|
|
6049
6111
|
name: "client_commission_type",
|
|
6050
6112
|
type: "enum",
|
|
6051
6113
|
enum: CommissionTypeEnum,
|
|
@@ -6053,10 +6115,10 @@ __decorateClass([
|
|
|
6053
6115
|
})
|
|
6054
6116
|
], Commission.prototype, "clientCommissionType", 2);
|
|
6055
6117
|
__decorateClass([
|
|
6056
|
-
|
|
6118
|
+
Column56({ name: "client_commission", type: "integer", default: 0 })
|
|
6057
6119
|
], Commission.prototype, "clientCommission", 2);
|
|
6058
6120
|
Commission = __decorateClass([
|
|
6059
|
-
|
|
6121
|
+
Entity55("commissions")
|
|
6060
6122
|
], Commission);
|
|
6061
6123
|
export {
|
|
6062
6124
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -6136,6 +6198,8 @@ export {
|
|
|
6136
6198
|
EmploymentType,
|
|
6137
6199
|
ExperienceDto,
|
|
6138
6200
|
F2FInterview,
|
|
6201
|
+
F2fInterviewRescheduleRequest,
|
|
6202
|
+
F2fInterviewRescheduleRequestStatusEnum,
|
|
6139
6203
|
F2fInterviewStatusEnum,
|
|
6140
6204
|
FREELANCER_DECLARATION_PATTERN,
|
|
6141
6205
|
FREELANCER_EDUCATION_PATTERN,
|