@experts_hub/shared 1.0.114 → 1.0.116
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/index.d.ts +1 -0
- package/dist/entities/job-application.entity.d.ts +34 -0
- package/dist/entities/job-entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +36 -1
- package/dist/index.d.ts +36 -1
- package/dist/index.js +271 -144
- package/dist/index.mjs +287 -156
- package/dist/modules/job/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __export(index_exports, {
|
|
|
30
30
|
AUTHENTICATION_PATTERN: () => AUTHENTICATION_PATTERN,
|
|
31
31
|
AccountStatus: () => AccountStatus,
|
|
32
32
|
AccountType: () => AccountType,
|
|
33
|
+
ApplicationStatusEnum: () => ApplicationStatusEnum,
|
|
33
34
|
BANK_PATTERN: () => BANK_PATTERN,
|
|
34
35
|
BankAccountScope: () => BankAccountScope,
|
|
35
36
|
BankAccountScopeEnum: () => BankAccountScopeEnum,
|
|
@@ -60,6 +61,7 @@ __export(index_exports, {
|
|
|
60
61
|
JOB_ROLE_PATTERN: () => JOB_ROLE_PATTERN,
|
|
61
62
|
Job: () => Job,
|
|
62
63
|
JobAdditionalCommentDto: () => JobAdditionalCommentDto,
|
|
64
|
+
JobApplication: () => JobApplication,
|
|
63
65
|
JobBasicInformationDto: () => JobBasicInformationDto,
|
|
64
66
|
JobDescriptionDto: () => JobDescriptionDto,
|
|
65
67
|
JobIdParamDto: () => JobIdParamDto,
|
|
@@ -546,7 +548,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
546
548
|
var import_class_validator17 = require("class-validator");
|
|
547
549
|
|
|
548
550
|
// src/entities/company-profile.entity.ts
|
|
549
|
-
var
|
|
551
|
+
var import_typeorm14 = require("typeorm");
|
|
550
552
|
|
|
551
553
|
// src/entities/base.entity.ts
|
|
552
554
|
var import_typeorm = require("typeorm");
|
|
@@ -586,7 +588,7 @@ __decorateClass([
|
|
|
586
588
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
587
589
|
|
|
588
590
|
// src/entities/user.entity.ts
|
|
589
|
-
var
|
|
591
|
+
var import_typeorm13 = require("typeorm");
|
|
590
592
|
|
|
591
593
|
// src/entities/refresh-token.entity.ts
|
|
592
594
|
var import_typeorm2 = require("typeorm");
|
|
@@ -816,7 +818,7 @@ FreelancerProfile = __decorateClass([
|
|
|
816
818
|
], FreelancerProfile);
|
|
817
819
|
|
|
818
820
|
// src/entities/job-entity.ts
|
|
819
|
-
var
|
|
821
|
+
var import_typeorm9 = require("typeorm");
|
|
820
822
|
|
|
821
823
|
// src/entities/job-skill.entity.ts
|
|
822
824
|
var import_typeorm7 = require("typeorm");
|
|
@@ -864,6 +866,122 @@ JobSkill = __decorateClass([
|
|
|
864
866
|
(0, import_typeorm7.Entity)("job_skills")
|
|
865
867
|
], JobSkill);
|
|
866
868
|
|
|
869
|
+
// src/entities/job-application.entity.ts
|
|
870
|
+
var import_typeorm8 = require("typeorm");
|
|
871
|
+
var ApplicationStatusEnum = /* @__PURE__ */ ((ApplicationStatusEnum2) => {
|
|
872
|
+
ApplicationStatusEnum2["PENDING"] = "PENDING";
|
|
873
|
+
ApplicationStatusEnum2["SHORTLISTED"] = "SHORTLISTED";
|
|
874
|
+
ApplicationStatusEnum2["INTERVIEW_IN_PROGRESS"] = "INTERVIEW_IN_PROGRESS";
|
|
875
|
+
ApplicationStatusEnum2["INTERVIEWED"] = "INTERVIEWED";
|
|
876
|
+
ApplicationStatusEnum2["OFFERED"] = "OFFERED";
|
|
877
|
+
ApplicationStatusEnum2["HIRED"] = "HIRED";
|
|
878
|
+
ApplicationStatusEnum2["REJECTED_BEFORE_INTERVIEW"] = "REJECTED_BEFORE_INTERVIEW";
|
|
879
|
+
ApplicationStatusEnum2["REJECTED_IN_INTERVIEW"] = "REJECTED_IN_INTERVIEW";
|
|
880
|
+
ApplicationStatusEnum2["REJECTED_AFTER_INTERVIEW"] = "REJECTED_AFTER_INTERVIEW";
|
|
881
|
+
ApplicationStatusEnum2["NOT_SUITABLE"] = "NOT_SUITABLE";
|
|
882
|
+
ApplicationStatusEnum2["WITHDRAWN"] = "WITHDRAWN";
|
|
883
|
+
return ApplicationStatusEnum2;
|
|
884
|
+
})(ApplicationStatusEnum || {});
|
|
885
|
+
var JobApplication = class extends BaseEntity {
|
|
886
|
+
};
|
|
887
|
+
__decorateClass([
|
|
888
|
+
(0, import_typeorm8.Column)({
|
|
889
|
+
name: "job_application_id",
|
|
890
|
+
type: "varchar",
|
|
891
|
+
unique: true,
|
|
892
|
+
nullable: true
|
|
893
|
+
})
|
|
894
|
+
], JobApplication.prototype, "jobApplicationId", 2);
|
|
895
|
+
__decorateClass([
|
|
896
|
+
(0, import_typeorm8.Column)({ name: "job_id", type: "integer" }),
|
|
897
|
+
(0, import_typeorm8.Index)()
|
|
898
|
+
], JobApplication.prototype, "jobId", 2);
|
|
899
|
+
__decorateClass([
|
|
900
|
+
(0, import_typeorm8.ManyToOne)(() => Job, (job) => job.jobApplications, { onDelete: "CASCADE" }),
|
|
901
|
+
(0, import_typeorm8.JoinColumn)({ name: "job_id" })
|
|
902
|
+
], JobApplication.prototype, "job", 2);
|
|
903
|
+
__decorateClass([
|
|
904
|
+
(0, import_typeorm8.Column)({ name: "user_id", type: "integer" }),
|
|
905
|
+
(0, import_typeorm8.Index)()
|
|
906
|
+
], JobApplication.prototype, "userId", 2);
|
|
907
|
+
__decorateClass([
|
|
908
|
+
(0, import_typeorm8.ManyToOne)(() => User, (user) => user.jobApplications),
|
|
909
|
+
(0, import_typeorm8.JoinColumn)({ name: "user_id" })
|
|
910
|
+
], JobApplication.prototype, "user", 2);
|
|
911
|
+
__decorateClass([
|
|
912
|
+
(0, import_typeorm8.Column)({
|
|
913
|
+
name: "status",
|
|
914
|
+
type: "enum",
|
|
915
|
+
enum: ApplicationStatusEnum,
|
|
916
|
+
default: "PENDING" /* PENDING */
|
|
917
|
+
})
|
|
918
|
+
], JobApplication.prototype, "status", 2);
|
|
919
|
+
__decorateClass([
|
|
920
|
+
(0, import_typeorm8.Column)({
|
|
921
|
+
name: "applied_at",
|
|
922
|
+
type: "timestamp with time zone",
|
|
923
|
+
default: () => "CURRENT_TIMESTAMP"
|
|
924
|
+
})
|
|
925
|
+
], JobApplication.prototype, "appliedAt", 2);
|
|
926
|
+
__decorateClass([
|
|
927
|
+
(0, import_typeorm8.Column)({
|
|
928
|
+
name: "shortlisted_at",
|
|
929
|
+
type: "timestamp with time zone",
|
|
930
|
+
nullable: true
|
|
931
|
+
})
|
|
932
|
+
], JobApplication.prototype, "shortlistedAt", 2);
|
|
933
|
+
__decorateClass([
|
|
934
|
+
(0, import_typeorm8.Column)({
|
|
935
|
+
name: "interview_started_at",
|
|
936
|
+
type: "timestamp with time zone",
|
|
937
|
+
nullable: true
|
|
938
|
+
})
|
|
939
|
+
], JobApplication.prototype, "interviewStartedAt", 2);
|
|
940
|
+
__decorateClass([
|
|
941
|
+
(0, import_typeorm8.Column)({
|
|
942
|
+
name: "interview_completed_at",
|
|
943
|
+
type: "timestamp with time zone",
|
|
944
|
+
nullable: true
|
|
945
|
+
})
|
|
946
|
+
], JobApplication.prototype, "interviewCompletedAt", 2);
|
|
947
|
+
__decorateClass([
|
|
948
|
+
(0, import_typeorm8.Column)({
|
|
949
|
+
name: "offered_at",
|
|
950
|
+
type: "timestamp with time zone",
|
|
951
|
+
nullable: true
|
|
952
|
+
})
|
|
953
|
+
], JobApplication.prototype, "offeredAt", 2);
|
|
954
|
+
__decorateClass([
|
|
955
|
+
(0, import_typeorm8.Column)({
|
|
956
|
+
name: "hired_at",
|
|
957
|
+
type: "timestamp with time zone",
|
|
958
|
+
nullable: true
|
|
959
|
+
})
|
|
960
|
+
], JobApplication.prototype, "hiredAt", 2);
|
|
961
|
+
__decorateClass([
|
|
962
|
+
(0, import_typeorm8.Column)({
|
|
963
|
+
name: "rejected_at",
|
|
964
|
+
type: "timestamp with time zone",
|
|
965
|
+
nullable: true
|
|
966
|
+
})
|
|
967
|
+
], JobApplication.prototype, "rejectedAt", 2);
|
|
968
|
+
__decorateClass([
|
|
969
|
+
(0, import_typeorm8.Column)({ name: "rejection_reason", type: "varchar", nullable: true })
|
|
970
|
+
], JobApplication.prototype, "rejectionReason", 2);
|
|
971
|
+
__decorateClass([
|
|
972
|
+
(0, import_typeorm8.Column)({
|
|
973
|
+
name: "withdrawn_at",
|
|
974
|
+
type: "timestamp with time zone",
|
|
975
|
+
nullable: true
|
|
976
|
+
})
|
|
977
|
+
], JobApplication.prototype, "withdrawnAt", 2);
|
|
978
|
+
__decorateClass([
|
|
979
|
+
(0, import_typeorm8.Column)({ name: "withdrawn_reason", type: "varchar", nullable: true })
|
|
980
|
+
], JobApplication.prototype, "withdrawnReason", 2);
|
|
981
|
+
JobApplication = __decorateClass([
|
|
982
|
+
(0, import_typeorm8.Entity)("job_applications")
|
|
983
|
+
], JobApplication);
|
|
984
|
+
|
|
867
985
|
// src/entities/job-entity.ts
|
|
868
986
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
869
987
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -894,28 +1012,28 @@ var JobStatusEnum = /* @__PURE__ */ ((JobStatusEnum2) => {
|
|
|
894
1012
|
var Job = class extends BaseEntity {
|
|
895
1013
|
};
|
|
896
1014
|
__decorateClass([
|
|
897
|
-
(0,
|
|
1015
|
+
(0, import_typeorm9.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
898
1016
|
], Job.prototype, "jobId", 2);
|
|
899
1017
|
// individual index to find jobs by user
|
|
900
1018
|
__decorateClass([
|
|
901
|
-
(0,
|
|
902
|
-
(0,
|
|
1019
|
+
(0, import_typeorm9.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1020
|
+
(0, import_typeorm9.Index)()
|
|
903
1021
|
], Job.prototype, "userId", 2);
|
|
904
1022
|
__decorateClass([
|
|
905
|
-
(0,
|
|
906
|
-
(0,
|
|
1023
|
+
(0, import_typeorm9.ManyToOne)(() => User, (user) => user.jobs),
|
|
1024
|
+
(0, import_typeorm9.JoinColumn)({ name: "user_id" })
|
|
907
1025
|
], Job.prototype, "user", 2);
|
|
908
1026
|
__decorateClass([
|
|
909
|
-
(0,
|
|
1027
|
+
(0, import_typeorm9.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
910
1028
|
], Job.prototype, "jobRole", 2);
|
|
911
1029
|
__decorateClass([
|
|
912
|
-
(0,
|
|
1030
|
+
(0, import_typeorm9.Column)({ name: "note", type: "varchar", nullable: true })
|
|
913
1031
|
], Job.prototype, "note", 2);
|
|
914
1032
|
__decorateClass([
|
|
915
|
-
(0,
|
|
1033
|
+
(0, import_typeorm9.Column)({ name: "openings", type: "integer", default: 0 })
|
|
916
1034
|
], Job.prototype, "openings", 2);
|
|
917
1035
|
__decorateClass([
|
|
918
|
-
(0,
|
|
1036
|
+
(0, import_typeorm9.Column)({
|
|
919
1037
|
name: "location",
|
|
920
1038
|
type: "enum",
|
|
921
1039
|
enum: JobLocationEnum,
|
|
@@ -923,7 +1041,7 @@ __decorateClass([
|
|
|
923
1041
|
})
|
|
924
1042
|
], Job.prototype, "location", 2);
|
|
925
1043
|
__decorateClass([
|
|
926
|
-
(0,
|
|
1044
|
+
(0, import_typeorm9.Column)({
|
|
927
1045
|
name: "type_of_employment",
|
|
928
1046
|
type: "enum",
|
|
929
1047
|
enum: TypeOfEmploymentEnum,
|
|
@@ -931,28 +1049,28 @@ __decorateClass([
|
|
|
931
1049
|
})
|
|
932
1050
|
], Job.prototype, "typeOfEmployment", 2);
|
|
933
1051
|
__decorateClass([
|
|
934
|
-
(0,
|
|
1052
|
+
(0, import_typeorm9.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
935
1053
|
], Job.prototype, "currency", 2);
|
|
936
1054
|
__decorateClass([
|
|
937
|
-
(0,
|
|
1055
|
+
(0, import_typeorm9.Column)({ name: "expected_salary_from", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
938
1056
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
939
1057
|
__decorateClass([
|
|
940
|
-
(0,
|
|
1058
|
+
(0, import_typeorm9.Column)({ name: "expected_salary_to", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
941
1059
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
942
1060
|
__decorateClass([
|
|
943
|
-
(0,
|
|
1061
|
+
(0, import_typeorm9.Column)({ name: "description", type: "varchar", nullable: true })
|
|
944
1062
|
], Job.prototype, "description", 2);
|
|
945
1063
|
__decorateClass([
|
|
946
|
-
(0,
|
|
1064
|
+
(0, import_typeorm9.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
947
1065
|
], Job.prototype, "additionalComment", 2);
|
|
948
1066
|
__decorateClass([
|
|
949
|
-
(0,
|
|
1067
|
+
(0, import_typeorm9.Column)({ name: "onboarding_tat", type: "varchar", length: 50, nullable: true })
|
|
950
1068
|
], Job.prototype, "onboardingTat", 2);
|
|
951
1069
|
__decorateClass([
|
|
952
|
-
(0,
|
|
1070
|
+
(0, import_typeorm9.Column)({ name: "candidate_communication_skills", type: "varchar", nullable: true })
|
|
953
1071
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
954
1072
|
__decorateClass([
|
|
955
|
-
(0,
|
|
1073
|
+
(0, import_typeorm9.Column)({
|
|
956
1074
|
name: "step_completed",
|
|
957
1075
|
type: "enum",
|
|
958
1076
|
enum: Step,
|
|
@@ -960,7 +1078,7 @@ __decorateClass([
|
|
|
960
1078
|
})
|
|
961
1079
|
], Job.prototype, "stepCompleted", 2);
|
|
962
1080
|
__decorateClass([
|
|
963
|
-
(0,
|
|
1081
|
+
(0, import_typeorm9.Column)({
|
|
964
1082
|
name: "status",
|
|
965
1083
|
type: "enum",
|
|
966
1084
|
enum: JobStatusEnum,
|
|
@@ -968,14 +1086,17 @@ __decorateClass([
|
|
|
968
1086
|
})
|
|
969
1087
|
], Job.prototype, "status", 2);
|
|
970
1088
|
__decorateClass([
|
|
971
|
-
(0,
|
|
1089
|
+
(0, import_typeorm9.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
972
1090
|
], Job.prototype, "jobSkills", 2);
|
|
1091
|
+
__decorateClass([
|
|
1092
|
+
(0, import_typeorm9.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, { cascade: true })
|
|
1093
|
+
], Job.prototype, "jobApplications", 2);
|
|
973
1094
|
Job = __decorateClass([
|
|
974
|
-
(0,
|
|
1095
|
+
(0, import_typeorm9.Entity)("jobs")
|
|
975
1096
|
], Job);
|
|
976
1097
|
|
|
977
1098
|
// src/entities/bank-details.entity.ts
|
|
978
|
-
var
|
|
1099
|
+
var import_typeorm10 = require("typeorm");
|
|
979
1100
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
980
1101
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
981
1102
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -990,48 +1111,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
990
1111
|
};
|
|
991
1112
|
// individual index to find bank details by user
|
|
992
1113
|
__decorateClass([
|
|
993
|
-
(0,
|
|
994
|
-
(0,
|
|
1114
|
+
(0, import_typeorm10.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1115
|
+
(0, import_typeorm10.Index)()
|
|
995
1116
|
], BankDetail.prototype, "userId", 2);
|
|
996
1117
|
__decorateClass([
|
|
997
|
-
(0,
|
|
998
|
-
(0,
|
|
1118
|
+
(0, import_typeorm10.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
1119
|
+
(0, import_typeorm10.JoinColumn)({ name: "user_id" })
|
|
999
1120
|
], BankDetail.prototype, "user", 2);
|
|
1000
1121
|
__decorateClass([
|
|
1001
|
-
(0,
|
|
1122
|
+
(0, import_typeorm10.Column)({ name: "name", type: "varchar", nullable: true })
|
|
1002
1123
|
], BankDetail.prototype, "name", 2);
|
|
1003
1124
|
__decorateClass([
|
|
1004
|
-
(0,
|
|
1125
|
+
(0, import_typeorm10.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1005
1126
|
], BankDetail.prototype, "mobile", 2);
|
|
1006
1127
|
__decorateClass([
|
|
1007
|
-
(0,
|
|
1128
|
+
(0, import_typeorm10.Column)({ name: "email", type: "varchar", unique: true })
|
|
1008
1129
|
], BankDetail.prototype, "email", 2);
|
|
1009
1130
|
__decorateClass([
|
|
1010
|
-
(0,
|
|
1131
|
+
(0, import_typeorm10.Column)({ name: "address", type: "varchar", nullable: true })
|
|
1011
1132
|
], BankDetail.prototype, "address", 2);
|
|
1012
1133
|
__decorateClass([
|
|
1013
|
-
(0,
|
|
1134
|
+
(0, import_typeorm10.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
1014
1135
|
], BankDetail.prototype, "accountNumber", 2);
|
|
1015
1136
|
__decorateClass([
|
|
1016
|
-
(0,
|
|
1137
|
+
(0, import_typeorm10.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
1017
1138
|
], BankDetail.prototype, "bankName", 2);
|
|
1018
1139
|
__decorateClass([
|
|
1019
|
-
(0,
|
|
1140
|
+
(0, import_typeorm10.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
1020
1141
|
], BankDetail.prototype, "ifscCode", 2);
|
|
1021
1142
|
__decorateClass([
|
|
1022
|
-
(0,
|
|
1143
|
+
(0, import_typeorm10.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
1023
1144
|
], BankDetail.prototype, "branchName", 2);
|
|
1024
1145
|
__decorateClass([
|
|
1025
|
-
(0,
|
|
1146
|
+
(0, import_typeorm10.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
1026
1147
|
], BankDetail.prototype, "routingNo", 2);
|
|
1027
1148
|
__decorateClass([
|
|
1028
|
-
(0,
|
|
1149
|
+
(0, import_typeorm10.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
1029
1150
|
], BankDetail.prototype, "abaNumber", 2);
|
|
1030
1151
|
__decorateClass([
|
|
1031
|
-
(0,
|
|
1152
|
+
(0, import_typeorm10.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
1032
1153
|
], BankDetail.prototype, "iban", 2);
|
|
1033
1154
|
__decorateClass([
|
|
1034
|
-
(0,
|
|
1155
|
+
(0, import_typeorm10.Column)({
|
|
1035
1156
|
name: "account_type",
|
|
1036
1157
|
type: "enum",
|
|
1037
1158
|
enum: BankAccountTypeEnum,
|
|
@@ -1039,7 +1160,7 @@ __decorateClass([
|
|
|
1039
1160
|
})
|
|
1040
1161
|
], BankDetail.prototype, "accountType", 2);
|
|
1041
1162
|
__decorateClass([
|
|
1042
|
-
(0,
|
|
1163
|
+
(0, import_typeorm10.Column)({
|
|
1043
1164
|
name: "account_scope",
|
|
1044
1165
|
type: "enum",
|
|
1045
1166
|
enum: BankAccountScopeEnum,
|
|
@@ -1047,34 +1168,34 @@ __decorateClass([
|
|
|
1047
1168
|
})
|
|
1048
1169
|
], BankDetail.prototype, "accountScope", 2);
|
|
1049
1170
|
BankDetail = __decorateClass([
|
|
1050
|
-
(0,
|
|
1171
|
+
(0, import_typeorm10.Entity)("bank_details")
|
|
1051
1172
|
], BankDetail);
|
|
1052
1173
|
|
|
1053
1174
|
// src/entities/system-preference.entity.ts
|
|
1054
|
-
var
|
|
1175
|
+
var import_typeorm11 = require("typeorm");
|
|
1055
1176
|
var SystemPreference = class extends BaseEntity {
|
|
1056
1177
|
};
|
|
1057
1178
|
// individual index to find system preference by user
|
|
1058
1179
|
__decorateClass([
|
|
1059
|
-
(0,
|
|
1060
|
-
(0,
|
|
1180
|
+
(0, import_typeorm11.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1181
|
+
(0, import_typeorm11.Index)()
|
|
1061
1182
|
], SystemPreference.prototype, "userId", 2);
|
|
1062
1183
|
__decorateClass([
|
|
1063
|
-
(0,
|
|
1064
|
-
(0,
|
|
1184
|
+
(0, import_typeorm11.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
1185
|
+
(0, import_typeorm11.JoinColumn)({ name: "user_id" })
|
|
1065
1186
|
], SystemPreference.prototype, "user", 2);
|
|
1066
1187
|
__decorateClass([
|
|
1067
|
-
(0,
|
|
1188
|
+
(0, import_typeorm11.Column)({ name: "key", type: "varchar", unique: true, nullable: false })
|
|
1068
1189
|
], SystemPreference.prototype, "key", 2);
|
|
1069
1190
|
__decorateClass([
|
|
1070
|
-
(0,
|
|
1191
|
+
(0, import_typeorm11.Column)({ name: "value", type: "boolean", default: false })
|
|
1071
1192
|
], SystemPreference.prototype, "value", 2);
|
|
1072
1193
|
SystemPreference = __decorateClass([
|
|
1073
|
-
(0,
|
|
1194
|
+
(0, import_typeorm11.Entity)("system_preferences")
|
|
1074
1195
|
], SystemPreference);
|
|
1075
1196
|
|
|
1076
1197
|
// src/entities/rating.entity.ts
|
|
1077
|
-
var
|
|
1198
|
+
var import_typeorm12 = require("typeorm");
|
|
1078
1199
|
var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
1079
1200
|
RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
|
|
1080
1201
|
RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
|
|
@@ -1083,36 +1204,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
1083
1204
|
var Rating = class extends BaseEntity {
|
|
1084
1205
|
};
|
|
1085
1206
|
__decorateClass([
|
|
1086
|
-
(0,
|
|
1087
|
-
(0,
|
|
1207
|
+
(0, import_typeorm12.Column)({ name: "reviewer_id", type: "integer" }),
|
|
1208
|
+
(0, import_typeorm12.Index)()
|
|
1088
1209
|
], Rating.prototype, "reviewer_id", 2);
|
|
1089
1210
|
__decorateClass([
|
|
1090
|
-
(0,
|
|
1091
|
-
(0,
|
|
1211
|
+
(0, import_typeorm12.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
1212
|
+
(0, import_typeorm12.JoinColumn)({ name: "reviewer_id" })
|
|
1092
1213
|
], Rating.prototype, "reviewer", 2);
|
|
1093
1214
|
__decorateClass([
|
|
1094
|
-
(0,
|
|
1095
|
-
(0,
|
|
1215
|
+
(0, import_typeorm12.Column)({ name: "reviewee_id", type: "integer" }),
|
|
1216
|
+
(0, import_typeorm12.Index)()
|
|
1096
1217
|
], Rating.prototype, "reviewee_id", 2);
|
|
1097
1218
|
__decorateClass([
|
|
1098
|
-
(0,
|
|
1099
|
-
(0,
|
|
1219
|
+
(0, import_typeorm12.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
1220
|
+
(0, import_typeorm12.JoinColumn)({ name: "reviewee_id" })
|
|
1100
1221
|
], Rating.prototype, "reviewee", 2);
|
|
1101
1222
|
__decorateClass([
|
|
1102
|
-
(0,
|
|
1223
|
+
(0, import_typeorm12.Column)({
|
|
1103
1224
|
type: "enum",
|
|
1104
1225
|
enum: RatingTypeEnum,
|
|
1105
1226
|
nullable: true
|
|
1106
1227
|
})
|
|
1107
1228
|
], Rating.prototype, "ratingType", 2);
|
|
1108
1229
|
__decorateClass([
|
|
1109
|
-
(0,
|
|
1230
|
+
(0, import_typeorm12.Column)({ type: "integer", nullable: true })
|
|
1110
1231
|
], Rating.prototype, "rating", 2);
|
|
1111
1232
|
__decorateClass([
|
|
1112
|
-
(0,
|
|
1233
|
+
(0, import_typeorm12.Column)({ type: "text", nullable: true })
|
|
1113
1234
|
], Rating.prototype, "review", 2);
|
|
1114
1235
|
Rating = __decorateClass([
|
|
1115
|
-
(0,
|
|
1236
|
+
(0, import_typeorm12.Entity)("ratings")
|
|
1116
1237
|
], Rating);
|
|
1117
1238
|
|
|
1118
1239
|
// src/entities/user.entity.ts
|
|
@@ -1139,40 +1260,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1139
1260
|
var User = class extends BaseEntity {
|
|
1140
1261
|
};
|
|
1141
1262
|
__decorateClass([
|
|
1142
|
-
(0,
|
|
1263
|
+
(0, import_typeorm13.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
1143
1264
|
], User.prototype, "uniqueId", 2);
|
|
1144
1265
|
__decorateClass([
|
|
1145
|
-
(0,
|
|
1266
|
+
(0, import_typeorm13.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1146
1267
|
], User.prototype, "username", 2);
|
|
1147
1268
|
__decorateClass([
|
|
1148
|
-
(0,
|
|
1269
|
+
(0, import_typeorm13.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1149
1270
|
], User.prototype, "firstName", 2);
|
|
1150
1271
|
__decorateClass([
|
|
1151
|
-
(0,
|
|
1272
|
+
(0, import_typeorm13.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1152
1273
|
], User.prototype, "lastName", 2);
|
|
1153
1274
|
__decorateClass([
|
|
1154
|
-
(0,
|
|
1275
|
+
(0, import_typeorm13.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
1155
1276
|
], User.prototype, "dateOfBirth", 2);
|
|
1156
1277
|
__decorateClass([
|
|
1157
|
-
(0,
|
|
1278
|
+
(0, import_typeorm13.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1158
1279
|
], User.prototype, "gender", 2);
|
|
1159
1280
|
__decorateClass([
|
|
1160
|
-
(0,
|
|
1281
|
+
(0, import_typeorm13.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1161
1282
|
], User.prototype, "profilePictureUrl", 2);
|
|
1162
1283
|
__decorateClass([
|
|
1163
|
-
(0,
|
|
1284
|
+
(0, import_typeorm13.Column)({ name: "email", type: "varchar", unique: true })
|
|
1164
1285
|
], User.prototype, "email", 2);
|
|
1165
1286
|
__decorateClass([
|
|
1166
|
-
(0,
|
|
1287
|
+
(0, import_typeorm13.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1167
1288
|
], User.prototype, "mobileCode", 2);
|
|
1168
1289
|
__decorateClass([
|
|
1169
|
-
(0,
|
|
1290
|
+
(0, import_typeorm13.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1170
1291
|
], User.prototype, "mobile", 2);
|
|
1171
1292
|
__decorateClass([
|
|
1172
|
-
(0,
|
|
1293
|
+
(0, import_typeorm13.Column)({ name: "password", type: "varchar" })
|
|
1173
1294
|
], User.prototype, "password", 2);
|
|
1174
1295
|
__decorateClass([
|
|
1175
|
-
(0,
|
|
1296
|
+
(0, import_typeorm13.Column)({
|
|
1176
1297
|
name: "account_type",
|
|
1177
1298
|
type: "enum",
|
|
1178
1299
|
enum: AccountType,
|
|
@@ -1180,7 +1301,7 @@ __decorateClass([
|
|
|
1180
1301
|
})
|
|
1181
1302
|
], User.prototype, "accountType", 2);
|
|
1182
1303
|
__decorateClass([
|
|
1183
|
-
(0,
|
|
1304
|
+
(0, import_typeorm13.Column)({
|
|
1184
1305
|
name: "account_status",
|
|
1185
1306
|
type: "enum",
|
|
1186
1307
|
enum: AccountStatus,
|
|
@@ -1188,36 +1309,36 @@ __decorateClass([
|
|
|
1188
1309
|
})
|
|
1189
1310
|
], User.prototype, "accountStatus", 2);
|
|
1190
1311
|
__decorateClass([
|
|
1191
|
-
(0,
|
|
1312
|
+
(0, import_typeorm13.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
1192
1313
|
], User.prototype, "isEmailVerified", 2);
|
|
1193
1314
|
__decorateClass([
|
|
1194
|
-
(0,
|
|
1315
|
+
(0, import_typeorm13.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1195
1316
|
], User.prototype, "isMobileVerified", 2);
|
|
1196
1317
|
__decorateClass([
|
|
1197
|
-
(0,
|
|
1318
|
+
(0, import_typeorm13.Column)({
|
|
1198
1319
|
name: "last_login_at",
|
|
1199
1320
|
type: "timestamp with time zone",
|
|
1200
1321
|
nullable: true
|
|
1201
1322
|
})
|
|
1202
1323
|
], User.prototype, "lastLoginAt", 2);
|
|
1203
1324
|
__decorateClass([
|
|
1204
|
-
(0,
|
|
1325
|
+
(0, import_typeorm13.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1205
1326
|
], User.prototype, "lastLoginIp", 2);
|
|
1206
1327
|
__decorateClass([
|
|
1207
|
-
(0,
|
|
1328
|
+
(0, import_typeorm13.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
1208
1329
|
], User.prototype, "resetToken", 2);
|
|
1209
1330
|
__decorateClass([
|
|
1210
|
-
(0,
|
|
1331
|
+
(0, import_typeorm13.Column)({
|
|
1211
1332
|
name: "reset_token_expire_at",
|
|
1212
1333
|
type: "timestamp with time zone",
|
|
1213
1334
|
nullable: true
|
|
1214
1335
|
})
|
|
1215
1336
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
1216
1337
|
__decorateClass([
|
|
1217
|
-
(0,
|
|
1338
|
+
(0, import_typeorm13.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
1218
1339
|
], User.prototype, "refreshTokens", 2);
|
|
1219
1340
|
__decorateClass([
|
|
1220
|
-
(0,
|
|
1341
|
+
(0, import_typeorm13.Column)({
|
|
1221
1342
|
name: "provider",
|
|
1222
1343
|
type: "enum",
|
|
1223
1344
|
enum: Provider,
|
|
@@ -1226,52 +1347,55 @@ __decorateClass([
|
|
|
1226
1347
|
})
|
|
1227
1348
|
], User.prototype, "provider", 2);
|
|
1228
1349
|
__decorateClass([
|
|
1229
|
-
(0,
|
|
1350
|
+
(0, import_typeorm13.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
1230
1351
|
], User.prototype, "providerToken", 2);
|
|
1231
1352
|
__decorateClass([
|
|
1232
|
-
(0,
|
|
1353
|
+
(0, import_typeorm13.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1233
1354
|
], User.prototype, "linkedInId", 2);
|
|
1234
1355
|
__decorateClass([
|
|
1235
|
-
(0,
|
|
1356
|
+
(0, import_typeorm13.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
1236
1357
|
], User.prototype, "googleId", 2);
|
|
1237
1358
|
__decorateClass([
|
|
1238
|
-
(0,
|
|
1359
|
+
(0, import_typeorm13.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1239
1360
|
], User.prototype, "gitLabsId", 2);
|
|
1240
1361
|
__decorateClass([
|
|
1241
|
-
(0,
|
|
1362
|
+
(0, import_typeorm13.OneToMany)(() => Otp, (otp) => otp.user)
|
|
1242
1363
|
], User.prototype, "otps", 2);
|
|
1243
1364
|
__decorateClass([
|
|
1244
|
-
(0,
|
|
1365
|
+
(0, import_typeorm13.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
1245
1366
|
], User.prototype, "resumeParserLogs", 2);
|
|
1246
1367
|
__decorateClass([
|
|
1247
|
-
(0,
|
|
1368
|
+
(0, import_typeorm13.OneToOne)(
|
|
1248
1369
|
() => FreelancerProfile,
|
|
1249
1370
|
(freelancerProfile) => freelancerProfile.user
|
|
1250
1371
|
)
|
|
1251
1372
|
], User.prototype, "freelancerProfile", 2);
|
|
1252
1373
|
__decorateClass([
|
|
1253
|
-
(0,
|
|
1374
|
+
(0, import_typeorm13.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
1254
1375
|
], User.prototype, "companyProfile", 2);
|
|
1255
1376
|
__decorateClass([
|
|
1256
|
-
(0,
|
|
1377
|
+
(0, import_typeorm13.OneToMany)(() => Job, (job) => job.user)
|
|
1257
1378
|
], User.prototype, "jobs", 2);
|
|
1258
1379
|
__decorateClass([
|
|
1259
|
-
(0,
|
|
1380
|
+
(0, import_typeorm13.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
1260
1381
|
], User.prototype, "bankDetail", 2);
|
|
1261
1382
|
__decorateClass([
|
|
1262
|
-
(0,
|
|
1383
|
+
(0, import_typeorm13.OneToMany)(
|
|
1263
1384
|
() => SystemPreference,
|
|
1264
1385
|
(systemPreference) => systemPreference.user
|
|
1265
1386
|
)
|
|
1266
1387
|
], User.prototype, "systemPreference", 2);
|
|
1267
1388
|
__decorateClass([
|
|
1268
|
-
(0,
|
|
1389
|
+
(0, import_typeorm13.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
1269
1390
|
], User.prototype, "givenRatings", 2);
|
|
1270
1391
|
__decorateClass([
|
|
1271
|
-
(0,
|
|
1392
|
+
(0, import_typeorm13.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
1272
1393
|
], User.prototype, "receivedRatings", 2);
|
|
1394
|
+
__decorateClass([
|
|
1395
|
+
(0, import_typeorm13.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
1396
|
+
], User.prototype, "jobApplications", 2);
|
|
1273
1397
|
User = __decorateClass([
|
|
1274
|
-
(0,
|
|
1398
|
+
(0, import_typeorm13.Entity)("users")
|
|
1275
1399
|
], User);
|
|
1276
1400
|
|
|
1277
1401
|
// src/entities/company-profile.entity.ts
|
|
@@ -1298,42 +1422,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1298
1422
|
};
|
|
1299
1423
|
// individual index to find company profile by user
|
|
1300
1424
|
__decorateClass([
|
|
1301
|
-
(0,
|
|
1302
|
-
(0,
|
|
1425
|
+
(0, import_typeorm14.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1426
|
+
(0, import_typeorm14.Index)()
|
|
1303
1427
|
], CompanyProfile.prototype, "userId", 2);
|
|
1304
1428
|
__decorateClass([
|
|
1305
|
-
(0,
|
|
1306
|
-
(0,
|
|
1429
|
+
(0, import_typeorm14.ManyToOne)(() => User, (user) => user.otps),
|
|
1430
|
+
(0, import_typeorm14.JoinColumn)({ name: "user_id" })
|
|
1307
1431
|
], CompanyProfile.prototype, "user", 2);
|
|
1308
1432
|
__decorateClass([
|
|
1309
|
-
(0,
|
|
1433
|
+
(0, import_typeorm14.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
1310
1434
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1311
1435
|
__decorateClass([
|
|
1312
|
-
(0,
|
|
1436
|
+
(0, import_typeorm14.Column)({ name: "bio", type: "varchar", nullable: true })
|
|
1313
1437
|
], CompanyProfile.prototype, "bio", 2);
|
|
1314
1438
|
__decorateClass([
|
|
1315
|
-
(0,
|
|
1439
|
+
(0, import_typeorm14.Column)({ name: "website", type: "varchar", nullable: true })
|
|
1316
1440
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1317
1441
|
__decorateClass([
|
|
1318
|
-
(0,
|
|
1442
|
+
(0, import_typeorm14.Column)({ name: "about_company", type: "varchar", nullable: true })
|
|
1319
1443
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1320
1444
|
__decorateClass([
|
|
1321
|
-
(0,
|
|
1445
|
+
(0, import_typeorm14.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1322
1446
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1323
1447
|
__decorateClass([
|
|
1324
|
-
(0,
|
|
1448
|
+
(0, import_typeorm14.Column)({ name: "company_address", type: "varchar", nullable: true })
|
|
1325
1449
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1326
1450
|
__decorateClass([
|
|
1327
|
-
(0,
|
|
1451
|
+
(0, import_typeorm14.Column)({ name: "phone_number", type: "varchar", nullable: true })
|
|
1328
1452
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1329
1453
|
__decorateClass([
|
|
1330
|
-
(0,
|
|
1454
|
+
(0, import_typeorm14.Column)({ name: "skills", type: "text", nullable: true })
|
|
1331
1455
|
], CompanyProfile.prototype, "skills", 2);
|
|
1332
1456
|
__decorateClass([
|
|
1333
|
-
(0,
|
|
1457
|
+
(0, import_typeorm14.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1334
1458
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1335
1459
|
__decorateClass([
|
|
1336
|
-
(0,
|
|
1460
|
+
(0, import_typeorm14.Column)({
|
|
1337
1461
|
name: "kind_of_hiring",
|
|
1338
1462
|
type: "enum",
|
|
1339
1463
|
enum: KindOfHire,
|
|
@@ -1341,7 +1465,7 @@ __decorateClass([
|
|
|
1341
1465
|
})
|
|
1342
1466
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1343
1467
|
__decorateClass([
|
|
1344
|
-
(0,
|
|
1468
|
+
(0, import_typeorm14.Column)({
|
|
1345
1469
|
name: "mode_of_hire",
|
|
1346
1470
|
type: "enum",
|
|
1347
1471
|
enum: ModeOfHire,
|
|
@@ -1349,7 +1473,7 @@ __decorateClass([
|
|
|
1349
1473
|
})
|
|
1350
1474
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1351
1475
|
__decorateClass([
|
|
1352
|
-
(0,
|
|
1476
|
+
(0, import_typeorm14.Column)({
|
|
1353
1477
|
name: "found_us_on",
|
|
1354
1478
|
type: "enum",
|
|
1355
1479
|
enum: FromUsOn,
|
|
@@ -1357,7 +1481,7 @@ __decorateClass([
|
|
|
1357
1481
|
})
|
|
1358
1482
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1359
1483
|
CompanyProfile = __decorateClass([
|
|
1360
|
-
(0,
|
|
1484
|
+
(0, import_typeorm14.Entity)("company_profiles")
|
|
1361
1485
|
], CompanyProfile);
|
|
1362
1486
|
|
|
1363
1487
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -1477,7 +1601,8 @@ var JOB_PATTERN = {
|
|
|
1477
1601
|
updateJobAdditionalComments: "update.job.additional.comments",
|
|
1478
1602
|
fetchJobDescription: "fetch.job.description",
|
|
1479
1603
|
updateJobDescription: "update.job.description",
|
|
1480
|
-
updateJobStatus: "update.job.status"
|
|
1604
|
+
updateJobStatus: "update.job.status",
|
|
1605
|
+
searchJobsByRoleAndSkills: "search.jobs.by.role.and.skills"
|
|
1481
1606
|
};
|
|
1482
1607
|
|
|
1483
1608
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
@@ -1971,7 +2096,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
1971
2096
|
};
|
|
1972
2097
|
|
|
1973
2098
|
// src/entities/question.entity.ts
|
|
1974
|
-
var
|
|
2099
|
+
var import_typeorm15 = require("typeorm");
|
|
1975
2100
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
1976
2101
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
1977
2102
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -1980,16 +2105,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
1980
2105
|
var Question = class extends BaseEntity {
|
|
1981
2106
|
};
|
|
1982
2107
|
__decorateClass([
|
|
1983
|
-
(0,
|
|
2108
|
+
(0, import_typeorm15.Column)({ name: "question", type: "varchar" })
|
|
1984
2109
|
], Question.prototype, "question", 2);
|
|
1985
2110
|
__decorateClass([
|
|
1986
|
-
(0,
|
|
2111
|
+
(0, import_typeorm15.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
1987
2112
|
], Question.prototype, "hint", 2);
|
|
1988
2113
|
__decorateClass([
|
|
1989
|
-
(0,
|
|
2114
|
+
(0, import_typeorm15.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1990
2115
|
], Question.prototype, "slug", 2);
|
|
1991
2116
|
__decorateClass([
|
|
1992
|
-
(0,
|
|
2117
|
+
(0, import_typeorm15.Column)({
|
|
1993
2118
|
name: "question_for",
|
|
1994
2119
|
type: "enum",
|
|
1995
2120
|
enum: QuestionFor,
|
|
@@ -1997,82 +2122,83 @@ __decorateClass([
|
|
|
1997
2122
|
})
|
|
1998
2123
|
], Question.prototype, "questionFor", 2);
|
|
1999
2124
|
__decorateClass([
|
|
2000
|
-
(0,
|
|
2125
|
+
(0, import_typeorm15.Column)({ name: "type", type: "varchar", nullable: true })
|
|
2001
2126
|
], Question.prototype, "type", 2);
|
|
2002
2127
|
__decorateClass([
|
|
2003
|
-
(0,
|
|
2128
|
+
(0, import_typeorm15.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
2004
2129
|
], Question.prototype, "options", 2);
|
|
2005
2130
|
__decorateClass([
|
|
2006
|
-
(0,
|
|
2131
|
+
(0, import_typeorm15.Column)({ name: "is_active", type: "boolean", default: false })
|
|
2007
2132
|
], Question.prototype, "isActive", 2);
|
|
2008
2133
|
Question = __decorateClass([
|
|
2009
|
-
(0,
|
|
2134
|
+
(0, import_typeorm15.Entity)("questions")
|
|
2010
2135
|
], Question);
|
|
2011
2136
|
|
|
2012
2137
|
// src/entities/job-role.entity.ts
|
|
2013
|
-
var
|
|
2138
|
+
var import_typeorm16 = require("typeorm");
|
|
2014
2139
|
var JobRoles = class extends BaseEntity {
|
|
2015
2140
|
};
|
|
2016
2141
|
__decorateClass([
|
|
2017
|
-
(0,
|
|
2142
|
+
(0, import_typeorm16.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2018
2143
|
], JobRoles.prototype, "slug", 2);
|
|
2019
2144
|
__decorateClass([
|
|
2020
|
-
(0,
|
|
2145
|
+
(0, import_typeorm16.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2021
2146
|
], JobRoles.prototype, "name", 2);
|
|
2022
2147
|
__decorateClass([
|
|
2023
|
-
(0,
|
|
2148
|
+
(0, import_typeorm16.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2024
2149
|
], JobRoles.prototype, "isActive", 2);
|
|
2025
2150
|
JobRoles = __decorateClass([
|
|
2026
|
-
(0,
|
|
2151
|
+
(0, import_typeorm16.Entity)("job_roles")
|
|
2027
2152
|
], JobRoles);
|
|
2028
2153
|
|
|
2029
2154
|
// src/entities/plan.entity.ts
|
|
2030
|
-
var
|
|
2155
|
+
var import_typeorm18 = require("typeorm");
|
|
2031
2156
|
|
|
2032
2157
|
// src/entities/feature.entity.ts
|
|
2033
|
-
var
|
|
2158
|
+
var import_typeorm17 = require("typeorm");
|
|
2034
2159
|
var Feature = class extends BaseEntity {
|
|
2035
2160
|
};
|
|
2036
2161
|
__decorateClass([
|
|
2037
|
-
(0,
|
|
2162
|
+
(0, import_typeorm17.Column)({ name: "name", type: "varchar", unique: true })
|
|
2038
2163
|
], Feature.prototype, "name", 2);
|
|
2039
2164
|
__decorateClass([
|
|
2040
|
-
(0,
|
|
2165
|
+
(0, import_typeorm17.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
2041
2166
|
], Feature.prototype, "plans", 2);
|
|
2042
2167
|
Feature = __decorateClass([
|
|
2043
|
-
(0,
|
|
2168
|
+
(0, import_typeorm17.Entity)("features")
|
|
2044
2169
|
], Feature);
|
|
2045
2170
|
|
|
2046
2171
|
// src/entities/plan.entity.ts
|
|
2047
2172
|
var Plan = class extends BaseEntity {
|
|
2048
2173
|
};
|
|
2049
2174
|
__decorateClass([
|
|
2050
|
-
(0,
|
|
2175
|
+
(0, import_typeorm18.Column)({ name: "name", type: "varchar", unique: true })
|
|
2051
2176
|
], Plan.prototype, "name", 2);
|
|
2052
2177
|
__decorateClass([
|
|
2053
|
-
(0,
|
|
2178
|
+
(0, import_typeorm18.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2054
2179
|
], Plan.prototype, "description", 2);
|
|
2055
2180
|
__decorateClass([
|
|
2056
|
-
(0,
|
|
2181
|
+
(0, import_typeorm18.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2057
2182
|
], Plan.prototype, "price", 2);
|
|
2058
2183
|
__decorateClass([
|
|
2059
|
-
(0,
|
|
2184
|
+
(0, import_typeorm18.Column)({ name: "billing_period", type: "varchar" })
|
|
2060
2185
|
], Plan.prototype, "billingPeriod", 2);
|
|
2061
2186
|
__decorateClass([
|
|
2062
|
-
(0,
|
|
2187
|
+
(0, import_typeorm18.Column)({ name: "is_current", type: "boolean", default: false })
|
|
2063
2188
|
], Plan.prototype, "isCurrent", 2);
|
|
2064
2189
|
__decorateClass([
|
|
2065
|
-
(0,
|
|
2066
|
-
(0,
|
|
2190
|
+
(0, import_typeorm18.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2191
|
+
(0, import_typeorm18.JoinTable)()
|
|
2067
2192
|
], Plan.prototype, "features", 2);
|
|
2068
2193
|
Plan = __decorateClass([
|
|
2069
|
-
(0,
|
|
2194
|
+
(0, import_typeorm18.Entity)("plans")
|
|
2070
2195
|
], Plan);
|
|
2071
2196
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2072
2197
|
0 && (module.exports = {
|
|
2073
2198
|
AUTHENTICATION_PATTERN,
|
|
2074
2199
|
AccountStatus,
|
|
2075
2200
|
AccountType,
|
|
2201
|
+
ApplicationStatusEnum,
|
|
2076
2202
|
BANK_PATTERN,
|
|
2077
2203
|
BankAccountScope,
|
|
2078
2204
|
BankAccountScopeEnum,
|
|
@@ -2103,6 +2229,7 @@ Plan = __decorateClass([
|
|
|
2103
2229
|
JOB_ROLE_PATTERN,
|
|
2104
2230
|
Job,
|
|
2105
2231
|
JobAdditionalCommentDto,
|
|
2232
|
+
JobApplication,
|
|
2106
2233
|
JobBasicInformationDto,
|
|
2107
2234
|
JobDescriptionDto,
|
|
2108
2235
|
JobIdParamDto,
|