@experts_hub/shared 1.0.115 → 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/index.mjs CHANGED
@@ -489,11 +489,11 @@ import {
489
489
 
490
490
  // src/entities/company-profile.entity.ts
491
491
  import {
492
- Entity as Entity12,
493
- Column as Column13,
494
- ManyToOne as ManyToOne10,
495
- JoinColumn as JoinColumn10,
496
- Index as Index8
492
+ Entity as Entity13,
493
+ Column as Column14,
494
+ ManyToOne as ManyToOne11,
495
+ JoinColumn as JoinColumn11,
496
+ Index as Index9
497
497
  } from "typeorm";
498
498
 
499
499
  // src/entities/base.entity.ts
@@ -541,7 +541,7 @@ __decorateClass([
541
541
  ], BaseEntity.prototype, "deletedAt", 2);
542
542
 
543
543
  // src/entities/user.entity.ts
544
- import { Entity as Entity11, Column as Column12, OneToMany as OneToMany5, OneToOne } from "typeorm";
544
+ import { Entity as Entity12, Column as Column13, OneToMany as OneToMany6, OneToOne } from "typeorm";
545
545
 
546
546
  // src/entities/refresh-token.entity.ts
547
547
  import {
@@ -801,12 +801,12 @@ FreelancerProfile = __decorateClass([
801
801
 
802
802
  // src/entities/job-entity.ts
803
803
  import {
804
- Entity as Entity7,
805
- Column as Column8,
806
- Index as Index4,
807
- ManyToOne as ManyToOne6,
808
- JoinColumn as JoinColumn6,
809
- OneToMany as OneToMany3
804
+ Entity as Entity8,
805
+ Column as Column9,
806
+ Index as Index5,
807
+ ManyToOne as ManyToOne7,
808
+ JoinColumn as JoinColumn7,
809
+ OneToMany as OneToMany4
810
810
  } from "typeorm";
811
811
 
812
812
  // src/entities/job-skill.entity.ts
@@ -855,6 +855,128 @@ JobSkill = __decorateClass([
855
855
  Entity6("job_skills")
856
856
  ], JobSkill);
857
857
 
858
+ // src/entities/job-application.entity.ts
859
+ import {
860
+ Entity as Entity7,
861
+ Column as Column8,
862
+ Index as Index4,
863
+ ManyToOne as ManyToOne6,
864
+ JoinColumn as JoinColumn6
865
+ } from "typeorm";
866
+ var ApplicationStatusEnum = /* @__PURE__ */ ((ApplicationStatusEnum2) => {
867
+ ApplicationStatusEnum2["PENDING"] = "PENDING";
868
+ ApplicationStatusEnum2["SHORTLISTED"] = "SHORTLISTED";
869
+ ApplicationStatusEnum2["INTERVIEW_IN_PROGRESS"] = "INTERVIEW_IN_PROGRESS";
870
+ ApplicationStatusEnum2["INTERVIEWED"] = "INTERVIEWED";
871
+ ApplicationStatusEnum2["OFFERED"] = "OFFERED";
872
+ ApplicationStatusEnum2["HIRED"] = "HIRED";
873
+ ApplicationStatusEnum2["REJECTED_BEFORE_INTERVIEW"] = "REJECTED_BEFORE_INTERVIEW";
874
+ ApplicationStatusEnum2["REJECTED_IN_INTERVIEW"] = "REJECTED_IN_INTERVIEW";
875
+ ApplicationStatusEnum2["REJECTED_AFTER_INTERVIEW"] = "REJECTED_AFTER_INTERVIEW";
876
+ ApplicationStatusEnum2["NOT_SUITABLE"] = "NOT_SUITABLE";
877
+ ApplicationStatusEnum2["WITHDRAWN"] = "WITHDRAWN";
878
+ return ApplicationStatusEnum2;
879
+ })(ApplicationStatusEnum || {});
880
+ var JobApplication = class extends BaseEntity {
881
+ };
882
+ __decorateClass([
883
+ Column8({
884
+ name: "job_application_id",
885
+ type: "varchar",
886
+ unique: true,
887
+ nullable: true
888
+ })
889
+ ], JobApplication.prototype, "jobApplicationId", 2);
890
+ __decorateClass([
891
+ Column8({ name: "job_id", type: "integer" }),
892
+ Index4()
893
+ ], JobApplication.prototype, "jobId", 2);
894
+ __decorateClass([
895
+ ManyToOne6(() => Job, (job) => job.jobApplications, { onDelete: "CASCADE" }),
896
+ JoinColumn6({ name: "job_id" })
897
+ ], JobApplication.prototype, "job", 2);
898
+ __decorateClass([
899
+ Column8({ name: "user_id", type: "integer" }),
900
+ Index4()
901
+ ], JobApplication.prototype, "userId", 2);
902
+ __decorateClass([
903
+ ManyToOne6(() => User, (user) => user.jobApplications),
904
+ JoinColumn6({ name: "user_id" })
905
+ ], JobApplication.prototype, "user", 2);
906
+ __decorateClass([
907
+ Column8({
908
+ name: "status",
909
+ type: "enum",
910
+ enum: ApplicationStatusEnum,
911
+ default: "PENDING" /* PENDING */
912
+ })
913
+ ], JobApplication.prototype, "status", 2);
914
+ __decorateClass([
915
+ Column8({
916
+ name: "applied_at",
917
+ type: "timestamp with time zone",
918
+ default: () => "CURRENT_TIMESTAMP"
919
+ })
920
+ ], JobApplication.prototype, "appliedAt", 2);
921
+ __decorateClass([
922
+ Column8({
923
+ name: "shortlisted_at",
924
+ type: "timestamp with time zone",
925
+ nullable: true
926
+ })
927
+ ], JobApplication.prototype, "shortlistedAt", 2);
928
+ __decorateClass([
929
+ Column8({
930
+ name: "interview_started_at",
931
+ type: "timestamp with time zone",
932
+ nullable: true
933
+ })
934
+ ], JobApplication.prototype, "interviewStartedAt", 2);
935
+ __decorateClass([
936
+ Column8({
937
+ name: "interview_completed_at",
938
+ type: "timestamp with time zone",
939
+ nullable: true
940
+ })
941
+ ], JobApplication.prototype, "interviewCompletedAt", 2);
942
+ __decorateClass([
943
+ Column8({
944
+ name: "offered_at",
945
+ type: "timestamp with time zone",
946
+ nullable: true
947
+ })
948
+ ], JobApplication.prototype, "offeredAt", 2);
949
+ __decorateClass([
950
+ Column8({
951
+ name: "hired_at",
952
+ type: "timestamp with time zone",
953
+ nullable: true
954
+ })
955
+ ], JobApplication.prototype, "hiredAt", 2);
956
+ __decorateClass([
957
+ Column8({
958
+ name: "rejected_at",
959
+ type: "timestamp with time zone",
960
+ nullable: true
961
+ })
962
+ ], JobApplication.prototype, "rejectedAt", 2);
963
+ __decorateClass([
964
+ Column8({ name: "rejection_reason", type: "varchar", nullable: true })
965
+ ], JobApplication.prototype, "rejectionReason", 2);
966
+ __decorateClass([
967
+ Column8({
968
+ name: "withdrawn_at",
969
+ type: "timestamp with time zone",
970
+ nullable: true
971
+ })
972
+ ], JobApplication.prototype, "withdrawnAt", 2);
973
+ __decorateClass([
974
+ Column8({ name: "withdrawn_reason", type: "varchar", nullable: true })
975
+ ], JobApplication.prototype, "withdrawnReason", 2);
976
+ JobApplication = __decorateClass([
977
+ Entity7("job_applications")
978
+ ], JobApplication);
979
+
858
980
  // src/entities/job-entity.ts
859
981
  var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
860
982
  JobLocationEnum2["ONSITE"] = "ONSITE";
@@ -885,28 +1007,28 @@ var JobStatusEnum = /* @__PURE__ */ ((JobStatusEnum2) => {
885
1007
  var Job = class extends BaseEntity {
886
1008
  };
887
1009
  __decorateClass([
888
- Column8({ name: "job_id", type: "varchar", unique: true, nullable: true })
1010
+ Column9({ name: "job_id", type: "varchar", unique: true, nullable: true })
889
1011
  ], Job.prototype, "jobId", 2);
890
1012
  // individual index to find jobs by user
891
1013
  __decorateClass([
892
- Column8({ name: "user_id", type: "integer", nullable: true }),
893
- Index4()
1014
+ Column9({ name: "user_id", type: "integer", nullable: true }),
1015
+ Index5()
894
1016
  ], Job.prototype, "userId", 2);
895
1017
  __decorateClass([
896
- ManyToOne6(() => User, (user) => user.jobs),
897
- JoinColumn6({ name: "user_id" })
1018
+ ManyToOne7(() => User, (user) => user.jobs),
1019
+ JoinColumn7({ name: "user_id" })
898
1020
  ], Job.prototype, "user", 2);
899
1021
  __decorateClass([
900
- Column8({ name: "job_role", type: "varchar", nullable: true })
1022
+ Column9({ name: "job_role", type: "varchar", nullable: true })
901
1023
  ], Job.prototype, "jobRole", 2);
902
1024
  __decorateClass([
903
- Column8({ name: "note", type: "varchar", nullable: true })
1025
+ Column9({ name: "note", type: "varchar", nullable: true })
904
1026
  ], Job.prototype, "note", 2);
905
1027
  __decorateClass([
906
- Column8({ name: "openings", type: "integer", default: 0 })
1028
+ Column9({ name: "openings", type: "integer", default: 0 })
907
1029
  ], Job.prototype, "openings", 2);
908
1030
  __decorateClass([
909
- Column8({
1031
+ Column9({
910
1032
  name: "location",
911
1033
  type: "enum",
912
1034
  enum: JobLocationEnum,
@@ -914,7 +1036,7 @@ __decorateClass([
914
1036
  })
915
1037
  ], Job.prototype, "location", 2);
916
1038
  __decorateClass([
917
- Column8({
1039
+ Column9({
918
1040
  name: "type_of_employment",
919
1041
  type: "enum",
920
1042
  enum: TypeOfEmploymentEnum,
@@ -922,28 +1044,28 @@ __decorateClass([
922
1044
  })
923
1045
  ], Job.prototype, "typeOfEmployment", 2);
924
1046
  __decorateClass([
925
- Column8({ name: "currency", type: "varchar", default: "USD" })
1047
+ Column9({ name: "currency", type: "varchar", default: "USD" })
926
1048
  ], Job.prototype, "currency", 2);
927
1049
  __decorateClass([
928
- Column8({ name: "expected_salary_from", type: "decimal", precision: 10, scale: 2, default: 0 })
1050
+ Column9({ name: "expected_salary_from", type: "decimal", precision: 10, scale: 2, default: 0 })
929
1051
  ], Job.prototype, "expectedSalaryFrom", 2);
930
1052
  __decorateClass([
931
- Column8({ name: "expected_salary_to", type: "decimal", precision: 10, scale: 2, default: 0 })
1053
+ Column9({ name: "expected_salary_to", type: "decimal", precision: 10, scale: 2, default: 0 })
932
1054
  ], Job.prototype, "expectedSalaryTo", 2);
933
1055
  __decorateClass([
934
- Column8({ name: "description", type: "varchar", nullable: true })
1056
+ Column9({ name: "description", type: "varchar", nullable: true })
935
1057
  ], Job.prototype, "description", 2);
936
1058
  __decorateClass([
937
- Column8({ name: "additional_comment", type: "varchar", nullable: true })
1059
+ Column9({ name: "additional_comment", type: "varchar", nullable: true })
938
1060
  ], Job.prototype, "additionalComment", 2);
939
1061
  __decorateClass([
940
- Column8({ name: "onboarding_tat", type: "varchar", length: 50, nullable: true })
1062
+ Column9({ name: "onboarding_tat", type: "varchar", length: 50, nullable: true })
941
1063
  ], Job.prototype, "onboardingTat", 2);
942
1064
  __decorateClass([
943
- Column8({ name: "candidate_communication_skills", type: "varchar", nullable: true })
1065
+ Column9({ name: "candidate_communication_skills", type: "varchar", nullable: true })
944
1066
  ], Job.prototype, "candidateCommunicationSkills", 2);
945
1067
  __decorateClass([
946
- Column8({
1068
+ Column9({
947
1069
  name: "step_completed",
948
1070
  type: "enum",
949
1071
  enum: Step,
@@ -951,7 +1073,7 @@ __decorateClass([
951
1073
  })
952
1074
  ], Job.prototype, "stepCompleted", 2);
953
1075
  __decorateClass([
954
- Column8({
1076
+ Column9({
955
1077
  name: "status",
956
1078
  type: "enum",
957
1079
  enum: JobStatusEnum,
@@ -959,19 +1081,22 @@ __decorateClass([
959
1081
  })
960
1082
  ], Job.prototype, "status", 2);
961
1083
  __decorateClass([
962
- OneToMany3(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
1084
+ OneToMany4(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
963
1085
  ], Job.prototype, "jobSkills", 2);
1086
+ __decorateClass([
1087
+ OneToMany4(() => JobApplication, (jobApplication) => jobApplication.job, { cascade: true })
1088
+ ], Job.prototype, "jobApplications", 2);
964
1089
  Job = __decorateClass([
965
- Entity7("jobs")
1090
+ Entity8("jobs")
966
1091
  ], Job);
967
1092
 
968
1093
  // src/entities/bank-details.entity.ts
969
1094
  import {
970
- Entity as Entity8,
971
- Column as Column9,
972
- Index as Index5,
973
- ManyToOne as ManyToOne7,
974
- JoinColumn as JoinColumn7
1095
+ Entity as Entity9,
1096
+ Column as Column10,
1097
+ Index as Index6,
1098
+ ManyToOne as ManyToOne8,
1099
+ JoinColumn as JoinColumn8
975
1100
  } from "typeorm";
976
1101
  var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
977
1102
  BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
@@ -987,48 +1112,48 @@ var BankDetail = class extends BaseEntity {
987
1112
  };
988
1113
  // individual index to find bank details by user
989
1114
  __decorateClass([
990
- Column9({ name: "user_id", type: "integer", nullable: true }),
991
- Index5()
1115
+ Column10({ name: "user_id", type: "integer", nullable: true }),
1116
+ Index6()
992
1117
  ], BankDetail.prototype, "userId", 2);
993
1118
  __decorateClass([
994
- ManyToOne7(() => User, (user) => user.bankDetail),
995
- JoinColumn7({ name: "user_id" })
1119
+ ManyToOne8(() => User, (user) => user.bankDetail),
1120
+ JoinColumn8({ name: "user_id" })
996
1121
  ], BankDetail.prototype, "user", 2);
997
1122
  __decorateClass([
998
- Column9({ name: "name", type: "varchar", nullable: true })
1123
+ Column10({ name: "name", type: "varchar", nullable: true })
999
1124
  ], BankDetail.prototype, "name", 2);
1000
1125
  __decorateClass([
1001
- Column9({ name: "mobile", type: "varchar", unique: true, nullable: true })
1126
+ Column10({ name: "mobile", type: "varchar", unique: true, nullable: true })
1002
1127
  ], BankDetail.prototype, "mobile", 2);
1003
1128
  __decorateClass([
1004
- Column9({ name: "email", type: "varchar", unique: true })
1129
+ Column10({ name: "email", type: "varchar", unique: true })
1005
1130
  ], BankDetail.prototype, "email", 2);
1006
1131
  __decorateClass([
1007
- Column9({ name: "address", type: "varchar", nullable: true })
1132
+ Column10({ name: "address", type: "varchar", nullable: true })
1008
1133
  ], BankDetail.prototype, "address", 2);
1009
1134
  __decorateClass([
1010
- Column9({ name: "account_number", type: "varchar", unique: true, nullable: true })
1135
+ Column10({ name: "account_number", type: "varchar", unique: true, nullable: true })
1011
1136
  ], BankDetail.prototype, "accountNumber", 2);
1012
1137
  __decorateClass([
1013
- Column9({ name: "bank_name", type: "varchar", nullable: true })
1138
+ Column10({ name: "bank_name", type: "varchar", nullable: true })
1014
1139
  ], BankDetail.prototype, "bankName", 2);
1015
1140
  __decorateClass([
1016
- Column9({ name: "ifsc_code", type: "varchar", nullable: true })
1141
+ Column10({ name: "ifsc_code", type: "varchar", nullable: true })
1017
1142
  ], BankDetail.prototype, "ifscCode", 2);
1018
1143
  __decorateClass([
1019
- Column9({ name: "branch_name", type: "varchar", nullable: true })
1144
+ Column10({ name: "branch_name", type: "varchar", nullable: true })
1020
1145
  ], BankDetail.prototype, "branchName", 2);
1021
1146
  __decorateClass([
1022
- Column9({ name: "routing_no", type: "varchar", nullable: true })
1147
+ Column10({ name: "routing_no", type: "varchar", nullable: true })
1023
1148
  ], BankDetail.prototype, "routingNo", 2);
1024
1149
  __decorateClass([
1025
- Column9({ name: "aba_no", type: "varchar", nullable: true })
1150
+ Column10({ name: "aba_no", type: "varchar", nullable: true })
1026
1151
  ], BankDetail.prototype, "abaNumber", 2);
1027
1152
  __decorateClass([
1028
- Column9({ name: "iban", type: "varchar", nullable: true })
1153
+ Column10({ name: "iban", type: "varchar", nullable: true })
1029
1154
  ], BankDetail.prototype, "iban", 2);
1030
1155
  __decorateClass([
1031
- Column9({
1156
+ Column10({
1032
1157
  name: "account_type",
1033
1158
  type: "enum",
1034
1159
  enum: BankAccountTypeEnum,
@@ -1036,7 +1161,7 @@ __decorateClass([
1036
1161
  })
1037
1162
  ], BankDetail.prototype, "accountType", 2);
1038
1163
  __decorateClass([
1039
- Column9({
1164
+ Column10({
1040
1165
  name: "account_scope",
1041
1166
  type: "enum",
1042
1167
  enum: BankAccountScopeEnum,
@@ -1044,40 +1169,40 @@ __decorateClass([
1044
1169
  })
1045
1170
  ], BankDetail.prototype, "accountScope", 2);
1046
1171
  BankDetail = __decorateClass([
1047
- Entity8("bank_details")
1172
+ Entity9("bank_details")
1048
1173
  ], BankDetail);
1049
1174
 
1050
1175
  // src/entities/system-preference.entity.ts
1051
1176
  import {
1052
- Entity as Entity9,
1053
- Column as Column10,
1054
- Index as Index6,
1055
- ManyToOne as ManyToOne8,
1056
- JoinColumn as JoinColumn8
1177
+ Entity as Entity10,
1178
+ Column as Column11,
1179
+ Index as Index7,
1180
+ ManyToOne as ManyToOne9,
1181
+ JoinColumn as JoinColumn9
1057
1182
  } from "typeorm";
1058
1183
  var SystemPreference = class extends BaseEntity {
1059
1184
  };
1060
1185
  // individual index to find system preference by user
1061
1186
  __decorateClass([
1062
- Column10({ name: "user_id", type: "integer", nullable: true }),
1063
- Index6()
1187
+ Column11({ name: "user_id", type: "integer", nullable: true }),
1188
+ Index7()
1064
1189
  ], SystemPreference.prototype, "userId", 2);
1065
1190
  __decorateClass([
1066
- ManyToOne8(() => User, (user) => user.systemPreference),
1067
- JoinColumn8({ name: "user_id" })
1191
+ ManyToOne9(() => User, (user) => user.systemPreference),
1192
+ JoinColumn9({ name: "user_id" })
1068
1193
  ], SystemPreference.prototype, "user", 2);
1069
1194
  __decorateClass([
1070
- Column10({ name: "key", type: "varchar", unique: true, nullable: false })
1195
+ Column11({ name: "key", type: "varchar", unique: true, nullable: false })
1071
1196
  ], SystemPreference.prototype, "key", 2);
1072
1197
  __decorateClass([
1073
- Column10({ name: "value", type: "boolean", default: false })
1198
+ Column11({ name: "value", type: "boolean", default: false })
1074
1199
  ], SystemPreference.prototype, "value", 2);
1075
1200
  SystemPreference = __decorateClass([
1076
- Entity9("system_preferences")
1201
+ Entity10("system_preferences")
1077
1202
  ], SystemPreference);
1078
1203
 
1079
1204
  // src/entities/rating.entity.ts
1080
- import { Entity as Entity10, Column as Column11, ManyToOne as ManyToOne9, JoinColumn as JoinColumn9, Index as Index7 } from "typeorm";
1205
+ import { Entity as Entity11, Column as Column12, ManyToOne as ManyToOne10, JoinColumn as JoinColumn10, Index as Index8 } from "typeorm";
1081
1206
  var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
1082
1207
  RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
1083
1208
  RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
@@ -1086,36 +1211,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
1086
1211
  var Rating = class extends BaseEntity {
1087
1212
  };
1088
1213
  __decorateClass([
1089
- Column11({ name: "reviewer_id", type: "integer" }),
1090
- Index7()
1214
+ Column12({ name: "reviewer_id", type: "integer" }),
1215
+ Index8()
1091
1216
  ], Rating.prototype, "reviewer_id", 2);
1092
1217
  __decorateClass([
1093
- ManyToOne9(() => User, { onDelete: "CASCADE" }),
1094
- JoinColumn9({ name: "reviewer_id" })
1218
+ ManyToOne10(() => User, { onDelete: "CASCADE" }),
1219
+ JoinColumn10({ name: "reviewer_id" })
1095
1220
  ], Rating.prototype, "reviewer", 2);
1096
1221
  __decorateClass([
1097
- Column11({ name: "reviewee_id", type: "integer" }),
1098
- Index7()
1222
+ Column12({ name: "reviewee_id", type: "integer" }),
1223
+ Index8()
1099
1224
  ], Rating.prototype, "reviewee_id", 2);
1100
1225
  __decorateClass([
1101
- ManyToOne9(() => User, { onDelete: "CASCADE" }),
1102
- JoinColumn9({ name: "reviewee_id" })
1226
+ ManyToOne10(() => User, { onDelete: "CASCADE" }),
1227
+ JoinColumn10({ name: "reviewee_id" })
1103
1228
  ], Rating.prototype, "reviewee", 2);
1104
1229
  __decorateClass([
1105
- Column11({
1230
+ Column12({
1106
1231
  type: "enum",
1107
1232
  enum: RatingTypeEnum,
1108
1233
  nullable: true
1109
1234
  })
1110
1235
  ], Rating.prototype, "ratingType", 2);
1111
1236
  __decorateClass([
1112
- Column11({ type: "integer", nullable: true })
1237
+ Column12({ type: "integer", nullable: true })
1113
1238
  ], Rating.prototype, "rating", 2);
1114
1239
  __decorateClass([
1115
- Column11({ type: "text", nullable: true })
1240
+ Column12({ type: "text", nullable: true })
1116
1241
  ], Rating.prototype, "review", 2);
1117
1242
  Rating = __decorateClass([
1118
- Entity10("ratings")
1243
+ Entity11("ratings")
1119
1244
  ], Rating);
1120
1245
 
1121
1246
  // src/entities/user.entity.ts
@@ -1142,40 +1267,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
1142
1267
  var User = class extends BaseEntity {
1143
1268
  };
1144
1269
  __decorateClass([
1145
- Column12({ name: "unique_id", type: "varchar", unique: true })
1270
+ Column13({ name: "unique_id", type: "varchar", unique: true })
1146
1271
  ], User.prototype, "uniqueId", 2);
1147
1272
  __decorateClass([
1148
- Column12({ name: "username", type: "varchar", unique: true, nullable: true })
1273
+ Column13({ name: "username", type: "varchar", unique: true, nullable: true })
1149
1274
  ], User.prototype, "username", 2);
1150
1275
  __decorateClass([
1151
- Column12({ name: "first_name", type: "varchar", length: 100, nullable: true })
1276
+ Column13({ name: "first_name", type: "varchar", length: 100, nullable: true })
1152
1277
  ], User.prototype, "firstName", 2);
1153
1278
  __decorateClass([
1154
- Column12({ name: "last_name", type: "varchar", length: 100, nullable: true })
1279
+ Column13({ name: "last_name", type: "varchar", length: 100, nullable: true })
1155
1280
  ], User.prototype, "lastName", 2);
1156
1281
  __decorateClass([
1157
- Column12({ name: "date_of_birth", type: "date", nullable: true })
1282
+ Column13({ name: "date_of_birth", type: "date", nullable: true })
1158
1283
  ], User.prototype, "dateOfBirth", 2);
1159
1284
  __decorateClass([
1160
- Column12({ name: "gender", type: "varchar", length: 10, nullable: true })
1285
+ Column13({ name: "gender", type: "varchar", length: 10, nullable: true })
1161
1286
  ], User.prototype, "gender", 2);
1162
1287
  __decorateClass([
1163
- Column12({ name: "profile_picture_url", type: "text", nullable: true })
1288
+ Column13({ name: "profile_picture_url", type: "text", nullable: true })
1164
1289
  ], User.prototype, "profilePictureUrl", 2);
1165
1290
  __decorateClass([
1166
- Column12({ name: "email", type: "varchar", unique: true })
1291
+ Column13({ name: "email", type: "varchar", unique: true })
1167
1292
  ], User.prototype, "email", 2);
1168
1293
  __decorateClass([
1169
- Column12({ name: "mobile_code", type: "varchar", nullable: true })
1294
+ Column13({ name: "mobile_code", type: "varchar", nullable: true })
1170
1295
  ], User.prototype, "mobileCode", 2);
1171
1296
  __decorateClass([
1172
- Column12({ name: "mobile", type: "varchar", unique: true, nullable: true })
1297
+ Column13({ name: "mobile", type: "varchar", unique: true, nullable: true })
1173
1298
  ], User.prototype, "mobile", 2);
1174
1299
  __decorateClass([
1175
- Column12({ name: "password", type: "varchar" })
1300
+ Column13({ name: "password", type: "varchar" })
1176
1301
  ], User.prototype, "password", 2);
1177
1302
  __decorateClass([
1178
- Column12({
1303
+ Column13({
1179
1304
  name: "account_type",
1180
1305
  type: "enum",
1181
1306
  enum: AccountType,
@@ -1183,7 +1308,7 @@ __decorateClass([
1183
1308
  })
1184
1309
  ], User.prototype, "accountType", 2);
1185
1310
  __decorateClass([
1186
- Column12({
1311
+ Column13({
1187
1312
  name: "account_status",
1188
1313
  type: "enum",
1189
1314
  enum: AccountStatus,
@@ -1191,36 +1316,36 @@ __decorateClass([
1191
1316
  })
1192
1317
  ], User.prototype, "accountStatus", 2);
1193
1318
  __decorateClass([
1194
- Column12({ name: "is_email_verified", type: "boolean", default: false })
1319
+ Column13({ name: "is_email_verified", type: "boolean", default: false })
1195
1320
  ], User.prototype, "isEmailVerified", 2);
1196
1321
  __decorateClass([
1197
- Column12({ name: "is_mobile_verified", type: "boolean", default: false })
1322
+ Column13({ name: "is_mobile_verified", type: "boolean", default: false })
1198
1323
  ], User.prototype, "isMobileVerified", 2);
1199
1324
  __decorateClass([
1200
- Column12({
1325
+ Column13({
1201
1326
  name: "last_login_at",
1202
1327
  type: "timestamp with time zone",
1203
1328
  nullable: true
1204
1329
  })
1205
1330
  ], User.prototype, "lastLoginAt", 2);
1206
1331
  __decorateClass([
1207
- Column12({ name: "last_login_ip", type: "varchar", nullable: true })
1332
+ Column13({ name: "last_login_ip", type: "varchar", nullable: true })
1208
1333
  ], User.prototype, "lastLoginIp", 2);
1209
1334
  __decorateClass([
1210
- Column12({ name: "reset_token", type: "varchar", nullable: true })
1335
+ Column13({ name: "reset_token", type: "varchar", nullable: true })
1211
1336
  ], User.prototype, "resetToken", 2);
1212
1337
  __decorateClass([
1213
- Column12({
1338
+ Column13({
1214
1339
  name: "reset_token_expire_at",
1215
1340
  type: "timestamp with time zone",
1216
1341
  nullable: true
1217
1342
  })
1218
1343
  ], User.prototype, "resetTokenExpireAt", 2);
1219
1344
  __decorateClass([
1220
- OneToMany5(() => RefreshToken, (token) => token.user)
1345
+ OneToMany6(() => RefreshToken, (token) => token.user)
1221
1346
  ], User.prototype, "refreshTokens", 2);
1222
1347
  __decorateClass([
1223
- Column12({
1348
+ Column13({
1224
1349
  name: "provider",
1225
1350
  type: "enum",
1226
1351
  enum: Provider,
@@ -1229,22 +1354,22 @@ __decorateClass([
1229
1354
  })
1230
1355
  ], User.prototype, "provider", 2);
1231
1356
  __decorateClass([
1232
- Column12({ name: "provider_token", type: "varchar", nullable: true })
1357
+ Column13({ name: "provider_token", type: "varchar", nullable: true })
1233
1358
  ], User.prototype, "providerToken", 2);
1234
1359
  __decorateClass([
1235
- Column12({ name: "linkedin_id", type: "varchar", nullable: true })
1360
+ Column13({ name: "linkedin_id", type: "varchar", nullable: true })
1236
1361
  ], User.prototype, "linkedInId", 2);
1237
1362
  __decorateClass([
1238
- Column12({ name: "google_id", type: "varchar", nullable: true })
1363
+ Column13({ name: "google_id", type: "varchar", nullable: true })
1239
1364
  ], User.prototype, "googleId", 2);
1240
1365
  __decorateClass([
1241
- Column12({ name: "gitlabs_id", type: "varchar", nullable: true })
1366
+ Column13({ name: "gitlabs_id", type: "varchar", nullable: true })
1242
1367
  ], User.prototype, "gitLabsId", 2);
1243
1368
  __decorateClass([
1244
- OneToMany5(() => Otp, (otp) => otp.user)
1369
+ OneToMany6(() => Otp, (otp) => otp.user)
1245
1370
  ], User.prototype, "otps", 2);
1246
1371
  __decorateClass([
1247
- OneToMany5(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1372
+ OneToMany6(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1248
1373
  ], User.prototype, "resumeParserLogs", 2);
1249
1374
  __decorateClass([
1250
1375
  OneToOne(
@@ -1256,25 +1381,28 @@ __decorateClass([
1256
1381
  OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user)
1257
1382
  ], User.prototype, "companyProfile", 2);
1258
1383
  __decorateClass([
1259
- OneToMany5(() => Job, (job) => job.user)
1384
+ OneToMany6(() => Job, (job) => job.user)
1260
1385
  ], User.prototype, "jobs", 2);
1261
1386
  __decorateClass([
1262
- OneToMany5(() => BankDetail, (bankDetail) => bankDetail.user)
1387
+ OneToMany6(() => BankDetail, (bankDetail) => bankDetail.user)
1263
1388
  ], User.prototype, "bankDetail", 2);
1264
1389
  __decorateClass([
1265
- OneToMany5(
1390
+ OneToMany6(
1266
1391
  () => SystemPreference,
1267
1392
  (systemPreference) => systemPreference.user
1268
1393
  )
1269
1394
  ], User.prototype, "systemPreference", 2);
1270
1395
  __decorateClass([
1271
- OneToMany5(() => Rating, (rating) => rating.reviewer)
1396
+ OneToMany6(() => Rating, (rating) => rating.reviewer)
1272
1397
  ], User.prototype, "givenRatings", 2);
1273
1398
  __decorateClass([
1274
- OneToMany5(() => Rating, (rating) => rating.reviewee)
1399
+ OneToMany6(() => Rating, (rating) => rating.reviewee)
1275
1400
  ], User.prototype, "receivedRatings", 2);
1401
+ __decorateClass([
1402
+ OneToMany6(() => JobApplication, (jobApplication) => jobApplication.user)
1403
+ ], User.prototype, "jobApplications", 2);
1276
1404
  User = __decorateClass([
1277
- Entity11("users")
1405
+ Entity12("users")
1278
1406
  ], User);
1279
1407
 
1280
1408
  // src/entities/company-profile.entity.ts
@@ -1301,42 +1429,42 @@ var CompanyProfile = class extends BaseEntity {
1301
1429
  };
1302
1430
  // individual index to find company profile by user
1303
1431
  __decorateClass([
1304
- Column13({ name: "user_id", type: "integer", nullable: true }),
1305
- Index8()
1432
+ Column14({ name: "user_id", type: "integer", nullable: true }),
1433
+ Index9()
1306
1434
  ], CompanyProfile.prototype, "userId", 2);
1307
1435
  __decorateClass([
1308
- ManyToOne10(() => User, (user) => user.otps),
1309
- JoinColumn10({ name: "user_id" })
1436
+ ManyToOne11(() => User, (user) => user.otps),
1437
+ JoinColumn11({ name: "user_id" })
1310
1438
  ], CompanyProfile.prototype, "user", 2);
1311
1439
  __decorateClass([
1312
- Column13({ name: "company_name", type: "varchar", nullable: true })
1440
+ Column14({ name: "company_name", type: "varchar", nullable: true })
1313
1441
  ], CompanyProfile.prototype, "companyName", 2);
1314
1442
  __decorateClass([
1315
- Column13({ name: "bio", type: "varchar", nullable: true })
1443
+ Column14({ name: "bio", type: "varchar", nullable: true })
1316
1444
  ], CompanyProfile.prototype, "bio", 2);
1317
1445
  __decorateClass([
1318
- Column13({ name: "website", type: "varchar", nullable: true })
1446
+ Column14({ name: "website", type: "varchar", nullable: true })
1319
1447
  ], CompanyProfile.prototype, "webSite", 2);
1320
1448
  __decorateClass([
1321
- Column13({ name: "about_company", type: "varchar", nullable: true })
1449
+ Column14({ name: "about_company", type: "varchar", nullable: true })
1322
1450
  ], CompanyProfile.prototype, "aboutCompany", 2);
1323
1451
  __decorateClass([
1324
- Column13({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1452
+ Column14({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1325
1453
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
1326
1454
  __decorateClass([
1327
- Column13({ name: "company_address", type: "varchar", nullable: true })
1455
+ Column14({ name: "company_address", type: "varchar", nullable: true })
1328
1456
  ], CompanyProfile.prototype, "companyAddress", 2);
1329
1457
  __decorateClass([
1330
- Column13({ name: "phone_number", type: "varchar", nullable: true })
1458
+ Column14({ name: "phone_number", type: "varchar", nullable: true })
1331
1459
  ], CompanyProfile.prototype, "phoneNumber", 2);
1332
1460
  __decorateClass([
1333
- Column13({ name: "skills", type: "text", nullable: true })
1461
+ Column14({ name: "skills", type: "text", nullable: true })
1334
1462
  ], CompanyProfile.prototype, "skills", 2);
1335
1463
  __decorateClass([
1336
- Column13({ name: "required_freelancer", type: "varchar", nullable: true })
1464
+ Column14({ name: "required_freelancer", type: "varchar", nullable: true })
1337
1465
  ], CompanyProfile.prototype, "requiredFreelancer", 2);
1338
1466
  __decorateClass([
1339
- Column13({
1467
+ Column14({
1340
1468
  name: "kind_of_hiring",
1341
1469
  type: "enum",
1342
1470
  enum: KindOfHire,
@@ -1344,7 +1472,7 @@ __decorateClass([
1344
1472
  })
1345
1473
  ], CompanyProfile.prototype, "kindOfHiring", 2);
1346
1474
  __decorateClass([
1347
- Column13({
1475
+ Column14({
1348
1476
  name: "mode_of_hire",
1349
1477
  type: "enum",
1350
1478
  enum: ModeOfHire,
@@ -1352,7 +1480,7 @@ __decorateClass([
1352
1480
  })
1353
1481
  ], CompanyProfile.prototype, "modeOfHire", 2);
1354
1482
  __decorateClass([
1355
- Column13({
1483
+ Column14({
1356
1484
  name: "found_us_on",
1357
1485
  type: "enum",
1358
1486
  enum: FromUsOn,
@@ -1360,7 +1488,7 @@ __decorateClass([
1360
1488
  })
1361
1489
  ], CompanyProfile.prototype, "foundUsOn", 2);
1362
1490
  CompanyProfile = __decorateClass([
1363
- Entity12("company_profiles")
1491
+ Entity13("company_profiles")
1364
1492
  ], CompanyProfile);
1365
1493
 
1366
1494
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -2016,7 +2144,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
2016
2144
  };
2017
2145
 
2018
2146
  // src/entities/question.entity.ts
2019
- import { Entity as Entity13, Column as Column14 } from "typeorm";
2147
+ import { Entity as Entity14, Column as Column15 } from "typeorm";
2020
2148
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2021
2149
  QuestionFor2["CLIENT"] = "CLIENT";
2022
2150
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -2025,16 +2153,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2025
2153
  var Question = class extends BaseEntity {
2026
2154
  };
2027
2155
  __decorateClass([
2028
- Column14({ name: "question", type: "varchar" })
2156
+ Column15({ name: "question", type: "varchar" })
2029
2157
  ], Question.prototype, "question", 2);
2030
2158
  __decorateClass([
2031
- Column14({ name: "hint", type: "varchar", nullable: true })
2159
+ Column15({ name: "hint", type: "varchar", nullable: true })
2032
2160
  ], Question.prototype, "hint", 2);
2033
2161
  __decorateClass([
2034
- Column14({ name: "slug", type: "varchar", nullable: true, unique: true })
2162
+ Column15({ name: "slug", type: "varchar", nullable: true, unique: true })
2035
2163
  ], Question.prototype, "slug", 2);
2036
2164
  __decorateClass([
2037
- Column14({
2165
+ Column15({
2038
2166
  name: "question_for",
2039
2167
  type: "enum",
2040
2168
  enum: QuestionFor,
@@ -2042,81 +2170,82 @@ __decorateClass([
2042
2170
  })
2043
2171
  ], Question.prototype, "questionFor", 2);
2044
2172
  __decorateClass([
2045
- Column14({ name: "type", type: "varchar", nullable: true })
2173
+ Column15({ name: "type", type: "varchar", nullable: true })
2046
2174
  ], Question.prototype, "type", 2);
2047
2175
  __decorateClass([
2048
- Column14({ name: "options", type: "jsonb", nullable: true })
2176
+ Column15({ name: "options", type: "jsonb", nullable: true })
2049
2177
  ], Question.prototype, "options", 2);
2050
2178
  __decorateClass([
2051
- Column14({ name: "is_active", type: "boolean", default: false })
2179
+ Column15({ name: "is_active", type: "boolean", default: false })
2052
2180
  ], Question.prototype, "isActive", 2);
2053
2181
  Question = __decorateClass([
2054
- Entity13("questions")
2182
+ Entity14("questions")
2055
2183
  ], Question);
2056
2184
 
2057
2185
  // src/entities/job-role.entity.ts
2058
- import { Entity as Entity14, Column as Column15 } from "typeorm";
2186
+ import { Entity as Entity15, Column as Column16 } from "typeorm";
2059
2187
  var JobRoles = class extends BaseEntity {
2060
2188
  };
2061
2189
  __decorateClass([
2062
- Column15({ name: "slug", type: "varchar", nullable: true, unique: true })
2190
+ Column16({ name: "slug", type: "varchar", nullable: true, unique: true })
2063
2191
  ], JobRoles.prototype, "slug", 2);
2064
2192
  __decorateClass([
2065
- Column15({ name: "name", type: "varchar", nullable: true })
2193
+ Column16({ name: "name", type: "varchar", nullable: true })
2066
2194
  ], JobRoles.prototype, "name", 2);
2067
2195
  __decorateClass([
2068
- Column15({ name: "is_active", type: "boolean", default: true })
2196
+ Column16({ name: "is_active", type: "boolean", default: true })
2069
2197
  ], JobRoles.prototype, "isActive", 2);
2070
2198
  JobRoles = __decorateClass([
2071
- Entity14("job_roles")
2199
+ Entity15("job_roles")
2072
2200
  ], JobRoles);
2073
2201
 
2074
2202
  // src/entities/plan.entity.ts
2075
- import { Entity as Entity16, Column as Column17, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
2203
+ import { Entity as Entity17, Column as Column18, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
2076
2204
 
2077
2205
  // src/entities/feature.entity.ts
2078
- import { Entity as Entity15, Column as Column16, ManyToMany } from "typeorm";
2206
+ import { Entity as Entity16, Column as Column17, ManyToMany } from "typeorm";
2079
2207
  var Feature = class extends BaseEntity {
2080
2208
  };
2081
2209
  __decorateClass([
2082
- Column16({ name: "name", type: "varchar", unique: true })
2210
+ Column17({ name: "name", type: "varchar", unique: true })
2083
2211
  ], Feature.prototype, "name", 2);
2084
2212
  __decorateClass([
2085
2213
  ManyToMany(() => Plan, (plan) => plan.features)
2086
2214
  ], Feature.prototype, "plans", 2);
2087
2215
  Feature = __decorateClass([
2088
- Entity15("features")
2216
+ Entity16("features")
2089
2217
  ], Feature);
2090
2218
 
2091
2219
  // src/entities/plan.entity.ts
2092
2220
  var Plan = class extends BaseEntity {
2093
2221
  };
2094
2222
  __decorateClass([
2095
- Column17({ name: "name", type: "varchar", unique: true })
2223
+ Column18({ name: "name", type: "varchar", unique: true })
2096
2224
  ], Plan.prototype, "name", 2);
2097
2225
  __decorateClass([
2098
- Column17({ name: "description", type: "varchar", nullable: true })
2226
+ Column18({ name: "description", type: "varchar", nullable: true })
2099
2227
  ], Plan.prototype, "description", 2);
2100
2228
  __decorateClass([
2101
- Column17({ name: "price", type: "decimal", precision: 10, scale: 2 })
2229
+ Column18({ name: "price", type: "decimal", precision: 10, scale: 2 })
2102
2230
  ], Plan.prototype, "price", 2);
2103
2231
  __decorateClass([
2104
- Column17({ name: "billing_period", type: "varchar" })
2232
+ Column18({ name: "billing_period", type: "varchar" })
2105
2233
  ], Plan.prototype, "billingPeriod", 2);
2106
2234
  __decorateClass([
2107
- Column17({ name: "is_current", type: "boolean", default: false })
2235
+ Column18({ name: "is_current", type: "boolean", default: false })
2108
2236
  ], Plan.prototype, "isCurrent", 2);
2109
2237
  __decorateClass([
2110
2238
  ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
2111
2239
  JoinTable()
2112
2240
  ], Plan.prototype, "features", 2);
2113
2241
  Plan = __decorateClass([
2114
- Entity16("plans")
2242
+ Entity17("plans")
2115
2243
  ], Plan);
2116
2244
  export {
2117
2245
  AUTHENTICATION_PATTERN,
2118
2246
  AccountStatus,
2119
2247
  AccountType,
2248
+ ApplicationStatusEnum,
2120
2249
  BANK_PATTERN,
2121
2250
  BankAccountScope,
2122
2251
  BankAccountScopeEnum,
@@ -2147,6 +2276,7 @@ export {
2147
2276
  JOB_ROLE_PATTERN,
2148
2277
  Job,
2149
2278
  JobAdditionalCommentDto,
2279
+ JobApplication,
2150
2280
  JobBasicInformationDto,
2151
2281
  JobDescriptionDto,
2152
2282
  JobIdParamDto,