@experts_hub/shared 1.0.115 → 1.0.117

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/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 import_typeorm13 = require("typeorm");
551
+ var import_typeorm15 = 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 import_typeorm12 = require("typeorm");
591
+ var import_typeorm14 = 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 import_typeorm8 = require("typeorm");
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, import_typeorm8.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
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, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
902
- (0, import_typeorm8.Index)()
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, import_typeorm8.ManyToOne)(() => User, (user) => user.jobs),
906
- (0, import_typeorm8.JoinColumn)({ name: "user_id" })
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, import_typeorm8.Column)({ name: "job_role", type: "varchar", nullable: true })
1027
+ (0, import_typeorm9.Column)({ name: "job_role", type: "varchar", nullable: true })
910
1028
  ], Job.prototype, "jobRole", 2);
911
1029
  __decorateClass([
912
- (0, import_typeorm8.Column)({ name: "note", type: "varchar", nullable: true })
1030
+ (0, import_typeorm9.Column)({ name: "note", type: "varchar", nullable: true })
913
1031
  ], Job.prototype, "note", 2);
914
1032
  __decorateClass([
915
- (0, import_typeorm8.Column)({ name: "openings", type: "integer", default: 0 })
1033
+ (0, import_typeorm9.Column)({ name: "openings", type: "integer", default: 0 })
916
1034
  ], Job.prototype, "openings", 2);
917
1035
  __decorateClass([
918
- (0, import_typeorm8.Column)({
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, import_typeorm8.Column)({
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, import_typeorm8.Column)({ name: "currency", type: "varchar", default: "USD" })
1052
+ (0, import_typeorm9.Column)({ name: "currency", type: "varchar", default: "USD" })
935
1053
  ], Job.prototype, "currency", 2);
936
1054
  __decorateClass([
937
- (0, import_typeorm8.Column)({ name: "expected_salary_from", type: "decimal", precision: 10, scale: 2, default: 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, import_typeorm8.Column)({ name: "expected_salary_to", type: "decimal", precision: 10, scale: 2, default: 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, import_typeorm8.Column)({ name: "description", type: "varchar", nullable: true })
1061
+ (0, import_typeorm9.Column)({ name: "description", type: "varchar", nullable: true })
944
1062
  ], Job.prototype, "description", 2);
945
1063
  __decorateClass([
946
- (0, import_typeorm8.Column)({ name: "additional_comment", type: "varchar", nullable: true })
1064
+ (0, import_typeorm9.Column)({ name: "additional_comment", type: "varchar", nullable: true })
947
1065
  ], Job.prototype, "additionalComment", 2);
948
1066
  __decorateClass([
949
- (0, import_typeorm8.Column)({ name: "onboarding_tat", type: "varchar", length: 50, nullable: true })
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, import_typeorm8.Column)({ name: "candidate_communication_skills", type: "varchar", nullable: true })
1070
+ (0, import_typeorm9.Column)({ name: "candidate_communication_skills", type: "varchar", nullable: true })
953
1071
  ], Job.prototype, "candidateCommunicationSkills", 2);
954
1072
  __decorateClass([
955
- (0, import_typeorm8.Column)({
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, import_typeorm8.Column)({
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, import_typeorm8.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
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, import_typeorm8.Entity)("jobs")
1095
+ (0, import_typeorm9.Entity)("jobs")
975
1096
  ], Job);
976
1097
 
977
1098
  // src/entities/bank-details.entity.ts
978
- var import_typeorm9 = require("typeorm");
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, import_typeorm9.Column)({ name: "user_id", type: "integer", nullable: true }),
994
- (0, import_typeorm9.Index)()
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, import_typeorm9.ManyToOne)(() => User, (user) => user.bankDetail),
998
- (0, import_typeorm9.JoinColumn)({ name: "user_id" })
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, import_typeorm9.Column)({ name: "name", type: "varchar", nullable: true })
1122
+ (0, import_typeorm10.Column)({ name: "name", type: "varchar", nullable: true })
1002
1123
  ], BankDetail.prototype, "name", 2);
1003
1124
  __decorateClass([
1004
- (0, import_typeorm9.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1125
+ (0, import_typeorm10.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1005
1126
  ], BankDetail.prototype, "mobile", 2);
1006
1127
  __decorateClass([
1007
- (0, import_typeorm9.Column)({ name: "email", type: "varchar", unique: true })
1128
+ (0, import_typeorm10.Column)({ name: "email", type: "varchar", unique: true })
1008
1129
  ], BankDetail.prototype, "email", 2);
1009
1130
  __decorateClass([
1010
- (0, import_typeorm9.Column)({ name: "address", type: "varchar", nullable: true })
1131
+ (0, import_typeorm10.Column)({ name: "address", type: "varchar", nullable: true })
1011
1132
  ], BankDetail.prototype, "address", 2);
1012
1133
  __decorateClass([
1013
- (0, import_typeorm9.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
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, import_typeorm9.Column)({ name: "bank_name", type: "varchar", nullable: true })
1137
+ (0, import_typeorm10.Column)({ name: "bank_name", type: "varchar", nullable: true })
1017
1138
  ], BankDetail.prototype, "bankName", 2);
1018
1139
  __decorateClass([
1019
- (0, import_typeorm9.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
1140
+ (0, import_typeorm10.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
1020
1141
  ], BankDetail.prototype, "ifscCode", 2);
1021
1142
  __decorateClass([
1022
- (0, import_typeorm9.Column)({ name: "branch_name", type: "varchar", nullable: true })
1143
+ (0, import_typeorm10.Column)({ name: "branch_name", type: "varchar", nullable: true })
1023
1144
  ], BankDetail.prototype, "branchName", 2);
1024
1145
  __decorateClass([
1025
- (0, import_typeorm9.Column)({ name: "routing_no", type: "varchar", nullable: true })
1146
+ (0, import_typeorm10.Column)({ name: "routing_no", type: "varchar", nullable: true })
1026
1147
  ], BankDetail.prototype, "routingNo", 2);
1027
1148
  __decorateClass([
1028
- (0, import_typeorm9.Column)({ name: "aba_no", type: "varchar", nullable: true })
1149
+ (0, import_typeorm10.Column)({ name: "aba_no", type: "varchar", nullable: true })
1029
1150
  ], BankDetail.prototype, "abaNumber", 2);
1030
1151
  __decorateClass([
1031
- (0, import_typeorm9.Column)({ name: "iban", type: "varchar", nullable: true })
1152
+ (0, import_typeorm10.Column)({ name: "iban", type: "varchar", nullable: true })
1032
1153
  ], BankDetail.prototype, "iban", 2);
1033
1154
  __decorateClass([
1034
- (0, import_typeorm9.Column)({
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, import_typeorm9.Column)({
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, import_typeorm9.Entity)("bank_details")
1171
+ (0, import_typeorm10.Entity)("bank_details")
1051
1172
  ], BankDetail);
1052
1173
 
1053
1174
  // src/entities/system-preference.entity.ts
1054
- var import_typeorm10 = require("typeorm");
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, import_typeorm10.Column)({ name: "user_id", type: "integer", nullable: true }),
1060
- (0, import_typeorm10.Index)()
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, import_typeorm10.ManyToOne)(() => User, (user) => user.systemPreference),
1064
- (0, import_typeorm10.JoinColumn)({ name: "user_id" })
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, import_typeorm10.Column)({ name: "key", type: "varchar", unique: true, nullable: false })
1188
+ (0, import_typeorm11.Column)({ name: "key", type: "varchar", unique: true, nullable: false })
1068
1189
  ], SystemPreference.prototype, "key", 2);
1069
1190
  __decorateClass([
1070
- (0, import_typeorm10.Column)({ name: "value", type: "boolean", default: false })
1191
+ (0, import_typeorm11.Column)({ name: "value", type: "boolean", default: false })
1071
1192
  ], SystemPreference.prototype, "value", 2);
1072
1193
  SystemPreference = __decorateClass([
1073
- (0, import_typeorm10.Entity)("system_preferences")
1194
+ (0, import_typeorm11.Entity)("system_preferences")
1074
1195
  ], SystemPreference);
1075
1196
 
1076
1197
  // src/entities/rating.entity.ts
1077
- var import_typeorm11 = require("typeorm");
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,38 +1204,68 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
1083
1204
  var Rating = class extends BaseEntity {
1084
1205
  };
1085
1206
  __decorateClass([
1086
- (0, import_typeorm11.Column)({ name: "reviewer_id", type: "integer" }),
1087
- (0, import_typeorm11.Index)()
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, import_typeorm11.ManyToOne)(() => User, { onDelete: "CASCADE" }),
1091
- (0, import_typeorm11.JoinColumn)({ name: "reviewer_id" })
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, import_typeorm11.Column)({ name: "reviewee_id", type: "integer" }),
1095
- (0, import_typeorm11.Index)()
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, import_typeorm11.ManyToOne)(() => User, { onDelete: "CASCADE" }),
1099
- (0, import_typeorm11.JoinColumn)({ name: "reviewee_id" })
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, import_typeorm11.Column)({
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, import_typeorm11.Column)({ type: "integer", nullable: true })
1230
+ (0, import_typeorm12.Column)({ type: "integer", nullable: true })
1110
1231
  ], Rating.prototype, "rating", 2);
1111
1232
  __decorateClass([
1112
- (0, import_typeorm11.Column)({ type: "text", nullable: true })
1233
+ (0, import_typeorm12.Column)({ type: "text", nullable: true })
1113
1234
  ], Rating.prototype, "review", 2);
1114
1235
  Rating = __decorateClass([
1115
- (0, import_typeorm11.Entity)("ratings")
1236
+ (0, import_typeorm12.Entity)("ratings")
1116
1237
  ], Rating);
1117
1238
 
1239
+ // src/entities/company-role.entity.ts
1240
+ var import_typeorm13 = require("typeorm");
1241
+ var CompanyRole = class extends import_typeorm13.BaseEntity {
1242
+ };
1243
+ // individual index to find company roles by user
1244
+ __decorateClass([
1245
+ (0, import_typeorm13.Column)({ name: "user_id", type: "integer", nullable: true }),
1246
+ (0, import_typeorm13.Index)()
1247
+ ], CompanyRole.prototype, "userId", 2);
1248
+ __decorateClass([
1249
+ (0, import_typeorm13.ManyToOne)(() => User, (user) => user.companyRole),
1250
+ (0, import_typeorm13.JoinColumn)({ name: "user_id" })
1251
+ ], CompanyRole.prototype, "user", 2);
1252
+ __decorateClass([
1253
+ (0, import_typeorm13.Column)({ name: "name", type: "varchar" })
1254
+ ], CompanyRole.prototype, "name", 2);
1255
+ __decorateClass([
1256
+ (0, import_typeorm13.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
1257
+ (0, import_typeorm13.Index)()
1258
+ ], CompanyRole.prototype, "slug", 2);
1259
+ __decorateClass([
1260
+ (0, import_typeorm13.Column)({ name: "description", type: "text", nullable: true })
1261
+ ], CompanyRole.prototype, "description", 2);
1262
+ __decorateClass([
1263
+ (0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: true })
1264
+ ], CompanyRole.prototype, "isActive", 2);
1265
+ CompanyRole = __decorateClass([
1266
+ (0, import_typeorm13.Entity)("company_roles")
1267
+ ], CompanyRole);
1268
+
1118
1269
  // src/entities/user.entity.ts
1119
1270
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
1120
1271
  AccountType2["ADMIN"] = "ADMIN";
@@ -1139,40 +1290,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
1139
1290
  var User = class extends BaseEntity {
1140
1291
  };
1141
1292
  __decorateClass([
1142
- (0, import_typeorm12.Column)({ name: "unique_id", type: "varchar", unique: true })
1293
+ (0, import_typeorm14.Column)({ name: "unique_id", type: "varchar", unique: true })
1143
1294
  ], User.prototype, "uniqueId", 2);
1144
1295
  __decorateClass([
1145
- (0, import_typeorm12.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1296
+ (0, import_typeorm14.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1146
1297
  ], User.prototype, "username", 2);
1147
1298
  __decorateClass([
1148
- (0, import_typeorm12.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1299
+ (0, import_typeorm14.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1149
1300
  ], User.prototype, "firstName", 2);
1150
1301
  __decorateClass([
1151
- (0, import_typeorm12.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1302
+ (0, import_typeorm14.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1152
1303
  ], User.prototype, "lastName", 2);
1153
1304
  __decorateClass([
1154
- (0, import_typeorm12.Column)({ name: "date_of_birth", type: "date", nullable: true })
1305
+ (0, import_typeorm14.Column)({ name: "date_of_birth", type: "date", nullable: true })
1155
1306
  ], User.prototype, "dateOfBirth", 2);
1156
1307
  __decorateClass([
1157
- (0, import_typeorm12.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1308
+ (0, import_typeorm14.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1158
1309
  ], User.prototype, "gender", 2);
1159
1310
  __decorateClass([
1160
- (0, import_typeorm12.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1311
+ (0, import_typeorm14.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1161
1312
  ], User.prototype, "profilePictureUrl", 2);
1162
1313
  __decorateClass([
1163
- (0, import_typeorm12.Column)({ name: "email", type: "varchar", unique: true })
1314
+ (0, import_typeorm14.Column)({ name: "email", type: "varchar", unique: true })
1164
1315
  ], User.prototype, "email", 2);
1165
1316
  __decorateClass([
1166
- (0, import_typeorm12.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1317
+ (0, import_typeorm14.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1167
1318
  ], User.prototype, "mobileCode", 2);
1168
1319
  __decorateClass([
1169
- (0, import_typeorm12.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1320
+ (0, import_typeorm14.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1170
1321
  ], User.prototype, "mobile", 2);
1171
1322
  __decorateClass([
1172
- (0, import_typeorm12.Column)({ name: "password", type: "varchar" })
1323
+ (0, import_typeorm14.Column)({ name: "password", type: "varchar" })
1173
1324
  ], User.prototype, "password", 2);
1174
1325
  __decorateClass([
1175
- (0, import_typeorm12.Column)({
1326
+ (0, import_typeorm14.Column)({
1176
1327
  name: "account_type",
1177
1328
  type: "enum",
1178
1329
  enum: AccountType,
@@ -1180,7 +1331,7 @@ __decorateClass([
1180
1331
  })
1181
1332
  ], User.prototype, "accountType", 2);
1182
1333
  __decorateClass([
1183
- (0, import_typeorm12.Column)({
1334
+ (0, import_typeorm14.Column)({
1184
1335
  name: "account_status",
1185
1336
  type: "enum",
1186
1337
  enum: AccountStatus,
@@ -1188,36 +1339,36 @@ __decorateClass([
1188
1339
  })
1189
1340
  ], User.prototype, "accountStatus", 2);
1190
1341
  __decorateClass([
1191
- (0, import_typeorm12.Column)({ name: "is_email_verified", type: "boolean", default: false })
1342
+ (0, import_typeorm14.Column)({ name: "is_email_verified", type: "boolean", default: false })
1192
1343
  ], User.prototype, "isEmailVerified", 2);
1193
1344
  __decorateClass([
1194
- (0, import_typeorm12.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1345
+ (0, import_typeorm14.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1195
1346
  ], User.prototype, "isMobileVerified", 2);
1196
1347
  __decorateClass([
1197
- (0, import_typeorm12.Column)({
1348
+ (0, import_typeorm14.Column)({
1198
1349
  name: "last_login_at",
1199
1350
  type: "timestamp with time zone",
1200
1351
  nullable: true
1201
1352
  })
1202
1353
  ], User.prototype, "lastLoginAt", 2);
1203
1354
  __decorateClass([
1204
- (0, import_typeorm12.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1355
+ (0, import_typeorm14.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1205
1356
  ], User.prototype, "lastLoginIp", 2);
1206
1357
  __decorateClass([
1207
- (0, import_typeorm12.Column)({ name: "reset_token", type: "varchar", nullable: true })
1358
+ (0, import_typeorm14.Column)({ name: "reset_token", type: "varchar", nullable: true })
1208
1359
  ], User.prototype, "resetToken", 2);
1209
1360
  __decorateClass([
1210
- (0, import_typeorm12.Column)({
1361
+ (0, import_typeorm14.Column)({
1211
1362
  name: "reset_token_expire_at",
1212
1363
  type: "timestamp with time zone",
1213
1364
  nullable: true
1214
1365
  })
1215
1366
  ], User.prototype, "resetTokenExpireAt", 2);
1216
1367
  __decorateClass([
1217
- (0, import_typeorm12.OneToMany)(() => RefreshToken, (token) => token.user)
1368
+ (0, import_typeorm14.OneToMany)(() => RefreshToken, (token) => token.user)
1218
1369
  ], User.prototype, "refreshTokens", 2);
1219
1370
  __decorateClass([
1220
- (0, import_typeorm12.Column)({
1371
+ (0, import_typeorm14.Column)({
1221
1372
  name: "provider",
1222
1373
  type: "enum",
1223
1374
  enum: Provider,
@@ -1226,52 +1377,58 @@ __decorateClass([
1226
1377
  })
1227
1378
  ], User.prototype, "provider", 2);
1228
1379
  __decorateClass([
1229
- (0, import_typeorm12.Column)({ name: "provider_token", type: "varchar", nullable: true })
1380
+ (0, import_typeorm14.Column)({ name: "provider_token", type: "varchar", nullable: true })
1230
1381
  ], User.prototype, "providerToken", 2);
1231
1382
  __decorateClass([
1232
- (0, import_typeorm12.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1383
+ (0, import_typeorm14.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1233
1384
  ], User.prototype, "linkedInId", 2);
1234
1385
  __decorateClass([
1235
- (0, import_typeorm12.Column)({ name: "google_id", type: "varchar", nullable: true })
1386
+ (0, import_typeorm14.Column)({ name: "google_id", type: "varchar", nullable: true })
1236
1387
  ], User.prototype, "googleId", 2);
1237
1388
  __decorateClass([
1238
- (0, import_typeorm12.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1389
+ (0, import_typeorm14.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1239
1390
  ], User.prototype, "gitLabsId", 2);
1240
1391
  __decorateClass([
1241
- (0, import_typeorm12.OneToMany)(() => Otp, (otp) => otp.user)
1392
+ (0, import_typeorm14.OneToMany)(() => Otp, (otp) => otp.user)
1242
1393
  ], User.prototype, "otps", 2);
1243
1394
  __decorateClass([
1244
- (0, import_typeorm12.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1395
+ (0, import_typeorm14.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1245
1396
  ], User.prototype, "resumeParserLogs", 2);
1246
1397
  __decorateClass([
1247
- (0, import_typeorm12.OneToOne)(
1398
+ (0, import_typeorm14.OneToOne)(
1248
1399
  () => FreelancerProfile,
1249
1400
  (freelancerProfile) => freelancerProfile.user
1250
1401
  )
1251
1402
  ], User.prototype, "freelancerProfile", 2);
1252
1403
  __decorateClass([
1253
- (0, import_typeorm12.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
1404
+ (0, import_typeorm14.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
1254
1405
  ], User.prototype, "companyProfile", 2);
1255
1406
  __decorateClass([
1256
- (0, import_typeorm12.OneToMany)(() => Job, (job) => job.user)
1407
+ (0, import_typeorm14.OneToMany)(() => Job, (job) => job.user)
1257
1408
  ], User.prototype, "jobs", 2);
1258
1409
  __decorateClass([
1259
- (0, import_typeorm12.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1410
+ (0, import_typeorm14.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1260
1411
  ], User.prototype, "bankDetail", 2);
1261
1412
  __decorateClass([
1262
- (0, import_typeorm12.OneToMany)(
1413
+ (0, import_typeorm14.OneToMany)(
1263
1414
  () => SystemPreference,
1264
1415
  (systemPreference) => systemPreference.user
1265
1416
  )
1266
1417
  ], User.prototype, "systemPreference", 2);
1267
1418
  __decorateClass([
1268
- (0, import_typeorm12.OneToMany)(() => Rating, (rating) => rating.reviewer)
1419
+ (0, import_typeorm14.OneToMany)(() => Rating, (rating) => rating.reviewer)
1269
1420
  ], User.prototype, "givenRatings", 2);
1270
1421
  __decorateClass([
1271
- (0, import_typeorm12.OneToMany)(() => Rating, (rating) => rating.reviewee)
1422
+ (0, import_typeorm14.OneToMany)(() => Rating, (rating) => rating.reviewee)
1272
1423
  ], User.prototype, "receivedRatings", 2);
1424
+ __decorateClass([
1425
+ (0, import_typeorm14.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
1426
+ ], User.prototype, "jobApplications", 2);
1427
+ __decorateClass([
1428
+ (0, import_typeorm14.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
1429
+ ], User.prototype, "companyRole", 2);
1273
1430
  User = __decorateClass([
1274
- (0, import_typeorm12.Entity)("users")
1431
+ (0, import_typeorm14.Entity)("users")
1275
1432
  ], User);
1276
1433
 
1277
1434
  // src/entities/company-profile.entity.ts
@@ -1298,42 +1455,42 @@ var CompanyProfile = class extends BaseEntity {
1298
1455
  };
1299
1456
  // individual index to find company profile by user
1300
1457
  __decorateClass([
1301
- (0, import_typeorm13.Column)({ name: "user_id", type: "integer", nullable: true }),
1302
- (0, import_typeorm13.Index)()
1458
+ (0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
1459
+ (0, import_typeorm15.Index)()
1303
1460
  ], CompanyProfile.prototype, "userId", 2);
1304
1461
  __decorateClass([
1305
- (0, import_typeorm13.ManyToOne)(() => User, (user) => user.otps),
1306
- (0, import_typeorm13.JoinColumn)({ name: "user_id" })
1462
+ (0, import_typeorm15.ManyToOne)(() => User, (user) => user.otps),
1463
+ (0, import_typeorm15.JoinColumn)({ name: "user_id" })
1307
1464
  ], CompanyProfile.prototype, "user", 2);
1308
1465
  __decorateClass([
1309
- (0, import_typeorm13.Column)({ name: "company_name", type: "varchar", nullable: true })
1466
+ (0, import_typeorm15.Column)({ name: "company_name", type: "varchar", nullable: true })
1310
1467
  ], CompanyProfile.prototype, "companyName", 2);
1311
1468
  __decorateClass([
1312
- (0, import_typeorm13.Column)({ name: "bio", type: "varchar", nullable: true })
1469
+ (0, import_typeorm15.Column)({ name: "bio", type: "varchar", nullable: true })
1313
1470
  ], CompanyProfile.prototype, "bio", 2);
1314
1471
  __decorateClass([
1315
- (0, import_typeorm13.Column)({ name: "website", type: "varchar", nullable: true })
1472
+ (0, import_typeorm15.Column)({ name: "website", type: "varchar", nullable: true })
1316
1473
  ], CompanyProfile.prototype, "webSite", 2);
1317
1474
  __decorateClass([
1318
- (0, import_typeorm13.Column)({ name: "about_company", type: "varchar", nullable: true })
1475
+ (0, import_typeorm15.Column)({ name: "about_company", type: "varchar", nullable: true })
1319
1476
  ], CompanyProfile.prototype, "aboutCompany", 2);
1320
1477
  __decorateClass([
1321
- (0, import_typeorm13.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1478
+ (0, import_typeorm15.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1322
1479
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
1323
1480
  __decorateClass([
1324
- (0, import_typeorm13.Column)({ name: "company_address", type: "varchar", nullable: true })
1481
+ (0, import_typeorm15.Column)({ name: "company_address", type: "varchar", nullable: true })
1325
1482
  ], CompanyProfile.prototype, "companyAddress", 2);
1326
1483
  __decorateClass([
1327
- (0, import_typeorm13.Column)({ name: "phone_number", type: "varchar", nullable: true })
1484
+ (0, import_typeorm15.Column)({ name: "phone_number", type: "varchar", nullable: true })
1328
1485
  ], CompanyProfile.prototype, "phoneNumber", 2);
1329
1486
  __decorateClass([
1330
- (0, import_typeorm13.Column)({ name: "skills", type: "text", nullable: true })
1487
+ (0, import_typeorm15.Column)({ name: "skills", type: "text", nullable: true })
1331
1488
  ], CompanyProfile.prototype, "skills", 2);
1332
1489
  __decorateClass([
1333
- (0, import_typeorm13.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
1490
+ (0, import_typeorm15.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
1334
1491
  ], CompanyProfile.prototype, "requiredFreelancer", 2);
1335
1492
  __decorateClass([
1336
- (0, import_typeorm13.Column)({
1493
+ (0, import_typeorm15.Column)({
1337
1494
  name: "kind_of_hiring",
1338
1495
  type: "enum",
1339
1496
  enum: KindOfHire,
@@ -1341,7 +1498,7 @@ __decorateClass([
1341
1498
  })
1342
1499
  ], CompanyProfile.prototype, "kindOfHiring", 2);
1343
1500
  __decorateClass([
1344
- (0, import_typeorm13.Column)({
1501
+ (0, import_typeorm15.Column)({
1345
1502
  name: "mode_of_hire",
1346
1503
  type: "enum",
1347
1504
  enum: ModeOfHire,
@@ -1349,7 +1506,7 @@ __decorateClass([
1349
1506
  })
1350
1507
  ], CompanyProfile.prototype, "modeOfHire", 2);
1351
1508
  __decorateClass([
1352
- (0, import_typeorm13.Column)({
1509
+ (0, import_typeorm15.Column)({
1353
1510
  name: "found_us_on",
1354
1511
  type: "enum",
1355
1512
  enum: FromUsOn,
@@ -1357,7 +1514,7 @@ __decorateClass([
1357
1514
  })
1358
1515
  ], CompanyProfile.prototype, "foundUsOn", 2);
1359
1516
  CompanyProfile = __decorateClass([
1360
- (0, import_typeorm13.Entity)("company_profiles")
1517
+ (0, import_typeorm15.Entity)("company_profiles")
1361
1518
  ], CompanyProfile);
1362
1519
 
1363
1520
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -1972,7 +2129,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
1972
2129
  };
1973
2130
 
1974
2131
  // src/entities/question.entity.ts
1975
- var import_typeorm14 = require("typeorm");
2132
+ var import_typeorm16 = require("typeorm");
1976
2133
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1977
2134
  QuestionFor2["CLIENT"] = "CLIENT";
1978
2135
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -1981,16 +2138,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1981
2138
  var Question = class extends BaseEntity {
1982
2139
  };
1983
2140
  __decorateClass([
1984
- (0, import_typeorm14.Column)({ name: "question", type: "varchar" })
2141
+ (0, import_typeorm16.Column)({ name: "question", type: "varchar" })
1985
2142
  ], Question.prototype, "question", 2);
1986
2143
  __decorateClass([
1987
- (0, import_typeorm14.Column)({ name: "hint", type: "varchar", nullable: true })
2144
+ (0, import_typeorm16.Column)({ name: "hint", type: "varchar", nullable: true })
1988
2145
  ], Question.prototype, "hint", 2);
1989
2146
  __decorateClass([
1990
- (0, import_typeorm14.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2147
+ (0, import_typeorm16.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1991
2148
  ], Question.prototype, "slug", 2);
1992
2149
  __decorateClass([
1993
- (0, import_typeorm14.Column)({
2150
+ (0, import_typeorm16.Column)({
1994
2151
  name: "question_for",
1995
2152
  type: "enum",
1996
2153
  enum: QuestionFor,
@@ -1998,82 +2155,83 @@ __decorateClass([
1998
2155
  })
1999
2156
  ], Question.prototype, "questionFor", 2);
2000
2157
  __decorateClass([
2001
- (0, import_typeorm14.Column)({ name: "type", type: "varchar", nullable: true })
2158
+ (0, import_typeorm16.Column)({ name: "type", type: "varchar", nullable: true })
2002
2159
  ], Question.prototype, "type", 2);
2003
2160
  __decorateClass([
2004
- (0, import_typeorm14.Column)({ name: "options", type: "jsonb", nullable: true })
2161
+ (0, import_typeorm16.Column)({ name: "options", type: "jsonb", nullable: true })
2005
2162
  ], Question.prototype, "options", 2);
2006
2163
  __decorateClass([
2007
- (0, import_typeorm14.Column)({ name: "is_active", type: "boolean", default: false })
2164
+ (0, import_typeorm16.Column)({ name: "is_active", type: "boolean", default: false })
2008
2165
  ], Question.prototype, "isActive", 2);
2009
2166
  Question = __decorateClass([
2010
- (0, import_typeorm14.Entity)("questions")
2167
+ (0, import_typeorm16.Entity)("questions")
2011
2168
  ], Question);
2012
2169
 
2013
2170
  // src/entities/job-role.entity.ts
2014
- var import_typeorm15 = require("typeorm");
2171
+ var import_typeorm17 = require("typeorm");
2015
2172
  var JobRoles = class extends BaseEntity {
2016
2173
  };
2017
2174
  __decorateClass([
2018
- (0, import_typeorm15.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2175
+ (0, import_typeorm17.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2019
2176
  ], JobRoles.prototype, "slug", 2);
2020
2177
  __decorateClass([
2021
- (0, import_typeorm15.Column)({ name: "name", type: "varchar", nullable: true })
2178
+ (0, import_typeorm17.Column)({ name: "name", type: "varchar", nullable: true })
2022
2179
  ], JobRoles.prototype, "name", 2);
2023
2180
  __decorateClass([
2024
- (0, import_typeorm15.Column)({ name: "is_active", type: "boolean", default: true })
2181
+ (0, import_typeorm17.Column)({ name: "is_active", type: "boolean", default: true })
2025
2182
  ], JobRoles.prototype, "isActive", 2);
2026
2183
  JobRoles = __decorateClass([
2027
- (0, import_typeorm15.Entity)("job_roles")
2184
+ (0, import_typeorm17.Entity)("job_roles")
2028
2185
  ], JobRoles);
2029
2186
 
2030
2187
  // src/entities/plan.entity.ts
2031
- var import_typeorm17 = require("typeorm");
2188
+ var import_typeorm19 = require("typeorm");
2032
2189
 
2033
2190
  // src/entities/feature.entity.ts
2034
- var import_typeorm16 = require("typeorm");
2191
+ var import_typeorm18 = require("typeorm");
2035
2192
  var Feature = class extends BaseEntity {
2036
2193
  };
2037
2194
  __decorateClass([
2038
- (0, import_typeorm16.Column)({ name: "name", type: "varchar", unique: true })
2195
+ (0, import_typeorm18.Column)({ name: "name", type: "varchar", unique: true })
2039
2196
  ], Feature.prototype, "name", 2);
2040
2197
  __decorateClass([
2041
- (0, import_typeorm16.ManyToMany)(() => Plan, (plan) => plan.features)
2198
+ (0, import_typeorm18.ManyToMany)(() => Plan, (plan) => plan.features)
2042
2199
  ], Feature.prototype, "plans", 2);
2043
2200
  Feature = __decorateClass([
2044
- (0, import_typeorm16.Entity)("features")
2201
+ (0, import_typeorm18.Entity)("features")
2045
2202
  ], Feature);
2046
2203
 
2047
2204
  // src/entities/plan.entity.ts
2048
2205
  var Plan = class extends BaseEntity {
2049
2206
  };
2050
2207
  __decorateClass([
2051
- (0, import_typeorm17.Column)({ name: "name", type: "varchar", unique: true })
2208
+ (0, import_typeorm19.Column)({ name: "name", type: "varchar", unique: true })
2052
2209
  ], Plan.prototype, "name", 2);
2053
2210
  __decorateClass([
2054
- (0, import_typeorm17.Column)({ name: "description", type: "varchar", nullable: true })
2211
+ (0, import_typeorm19.Column)({ name: "description", type: "varchar", nullable: true })
2055
2212
  ], Plan.prototype, "description", 2);
2056
2213
  __decorateClass([
2057
- (0, import_typeorm17.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2214
+ (0, import_typeorm19.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2058
2215
  ], Plan.prototype, "price", 2);
2059
2216
  __decorateClass([
2060
- (0, import_typeorm17.Column)({ name: "billing_period", type: "varchar" })
2217
+ (0, import_typeorm19.Column)({ name: "billing_period", type: "varchar" })
2061
2218
  ], Plan.prototype, "billingPeriod", 2);
2062
2219
  __decorateClass([
2063
- (0, import_typeorm17.Column)({ name: "is_current", type: "boolean", default: false })
2220
+ (0, import_typeorm19.Column)({ name: "is_current", type: "boolean", default: false })
2064
2221
  ], Plan.prototype, "isCurrent", 2);
2065
2222
  __decorateClass([
2066
- (0, import_typeorm17.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2067
- (0, import_typeorm17.JoinTable)()
2223
+ (0, import_typeorm19.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2224
+ (0, import_typeorm19.JoinTable)()
2068
2225
  ], Plan.prototype, "features", 2);
2069
2226
  Plan = __decorateClass([
2070
- (0, import_typeorm17.Entity)("plans")
2227
+ (0, import_typeorm19.Entity)("plans")
2071
2228
  ], Plan);
2072
2229
  // Annotate the CommonJS export names for ESM import in node:
2073
2230
  0 && (module.exports = {
2074
2231
  AUTHENTICATION_PATTERN,
2075
2232
  AccountStatus,
2076
2233
  AccountType,
2234
+ ApplicationStatusEnum,
2077
2235
  BANK_PATTERN,
2078
2236
  BankAccountScope,
2079
2237
  BankAccountScopeEnum,
@@ -2104,6 +2262,7 @@ Plan = __decorateClass([
2104
2262
  JOB_ROLE_PATTERN,
2105
2263
  Job,
2106
2264
  JobAdditionalCommentDto,
2265
+ JobApplication,
2107
2266
  JobBasicInformationDto,
2108
2267
  JobDescriptionDto,
2109
2268
  JobIdParamDto,