@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/entities/company-role.entity.d.ts +10 -0
- 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 +4 -0
- package/dist/index.d.mts +46 -1
- package/dist/index.d.ts +46 -1
- package/dist/index.js +302 -143
- package/dist/index.mjs +318 -155
- package/package.json +1 -1
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
|
|
493
|
-
Column as
|
|
494
|
-
ManyToOne as
|
|
495
|
-
JoinColumn as
|
|
496
|
-
Index as
|
|
492
|
+
Entity as Entity14,
|
|
493
|
+
Column as Column15,
|
|
494
|
+
ManyToOne as ManyToOne12,
|
|
495
|
+
JoinColumn as JoinColumn12,
|
|
496
|
+
Index as Index10
|
|
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
|
|
544
|
+
import { Entity as Entity13, Column as Column14, 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
|
|
805
|
-
Column as
|
|
806
|
-
Index as
|
|
807
|
-
ManyToOne as
|
|
808
|
-
JoinColumn as
|
|
809
|
-
OneToMany as
|
|
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
|
-
|
|
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
|
-
|
|
893
|
-
|
|
1014
|
+
Column9({ name: "user_id", type: "integer", nullable: true }),
|
|
1015
|
+
Index5()
|
|
894
1016
|
], Job.prototype, "userId", 2);
|
|
895
1017
|
__decorateClass([
|
|
896
|
-
|
|
897
|
-
|
|
1018
|
+
ManyToOne7(() => User, (user) => user.jobs),
|
|
1019
|
+
JoinColumn7({ name: "user_id" })
|
|
898
1020
|
], Job.prototype, "user", 2);
|
|
899
1021
|
__decorateClass([
|
|
900
|
-
|
|
1022
|
+
Column9({ name: "job_role", type: "varchar", nullable: true })
|
|
901
1023
|
], Job.prototype, "jobRole", 2);
|
|
902
1024
|
__decorateClass([
|
|
903
|
-
|
|
1025
|
+
Column9({ name: "note", type: "varchar", nullable: true })
|
|
904
1026
|
], Job.prototype, "note", 2);
|
|
905
1027
|
__decorateClass([
|
|
906
|
-
|
|
1028
|
+
Column9({ name: "openings", type: "integer", default: 0 })
|
|
907
1029
|
], Job.prototype, "openings", 2);
|
|
908
1030
|
__decorateClass([
|
|
909
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1047
|
+
Column9({ name: "currency", type: "varchar", default: "USD" })
|
|
926
1048
|
], Job.prototype, "currency", 2);
|
|
927
1049
|
__decorateClass([
|
|
928
|
-
|
|
1050
|
+
Column9({ name: "expected_salary_from", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
929
1051
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
930
1052
|
__decorateClass([
|
|
931
|
-
|
|
1053
|
+
Column9({ name: "expected_salary_to", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
932
1054
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
933
1055
|
__decorateClass([
|
|
934
|
-
|
|
1056
|
+
Column9({ name: "description", type: "varchar", nullable: true })
|
|
935
1057
|
], Job.prototype, "description", 2);
|
|
936
1058
|
__decorateClass([
|
|
937
|
-
|
|
1059
|
+
Column9({ name: "additional_comment", type: "varchar", nullable: true })
|
|
938
1060
|
], Job.prototype, "additionalComment", 2);
|
|
939
1061
|
__decorateClass([
|
|
940
|
-
|
|
1062
|
+
Column9({ name: "onboarding_tat", type: "varchar", length: 50, nullable: true })
|
|
941
1063
|
], Job.prototype, "onboardingTat", 2);
|
|
942
1064
|
__decorateClass([
|
|
943
|
-
|
|
1065
|
+
Column9({ name: "candidate_communication_skills", type: "varchar", nullable: true })
|
|
944
1066
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
945
1067
|
__decorateClass([
|
|
946
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1090
|
+
Entity8("jobs")
|
|
966
1091
|
], Job);
|
|
967
1092
|
|
|
968
1093
|
// src/entities/bank-details.entity.ts
|
|
969
1094
|
import {
|
|
970
|
-
Entity as
|
|
971
|
-
Column as
|
|
972
|
-
Index as
|
|
973
|
-
ManyToOne as
|
|
974
|
-
JoinColumn as
|
|
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
|
-
|
|
991
|
-
|
|
1115
|
+
Column10({ name: "user_id", type: "integer", nullable: true }),
|
|
1116
|
+
Index6()
|
|
992
1117
|
], BankDetail.prototype, "userId", 2);
|
|
993
1118
|
__decorateClass([
|
|
994
|
-
|
|
995
|
-
|
|
1119
|
+
ManyToOne8(() => User, (user) => user.bankDetail),
|
|
1120
|
+
JoinColumn8({ name: "user_id" })
|
|
996
1121
|
], BankDetail.prototype, "user", 2);
|
|
997
1122
|
__decorateClass([
|
|
998
|
-
|
|
1123
|
+
Column10({ name: "name", type: "varchar", nullable: true })
|
|
999
1124
|
], BankDetail.prototype, "name", 2);
|
|
1000
1125
|
__decorateClass([
|
|
1001
|
-
|
|
1126
|
+
Column10({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1002
1127
|
], BankDetail.prototype, "mobile", 2);
|
|
1003
1128
|
__decorateClass([
|
|
1004
|
-
|
|
1129
|
+
Column10({ name: "email", type: "varchar", unique: true })
|
|
1005
1130
|
], BankDetail.prototype, "email", 2);
|
|
1006
1131
|
__decorateClass([
|
|
1007
|
-
|
|
1132
|
+
Column10({ name: "address", type: "varchar", nullable: true })
|
|
1008
1133
|
], BankDetail.prototype, "address", 2);
|
|
1009
1134
|
__decorateClass([
|
|
1010
|
-
|
|
1135
|
+
Column10({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
1011
1136
|
], BankDetail.prototype, "accountNumber", 2);
|
|
1012
1137
|
__decorateClass([
|
|
1013
|
-
|
|
1138
|
+
Column10({ name: "bank_name", type: "varchar", nullable: true })
|
|
1014
1139
|
], BankDetail.prototype, "bankName", 2);
|
|
1015
1140
|
__decorateClass([
|
|
1016
|
-
|
|
1141
|
+
Column10({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
1017
1142
|
], BankDetail.prototype, "ifscCode", 2);
|
|
1018
1143
|
__decorateClass([
|
|
1019
|
-
|
|
1144
|
+
Column10({ name: "branch_name", type: "varchar", nullable: true })
|
|
1020
1145
|
], BankDetail.prototype, "branchName", 2);
|
|
1021
1146
|
__decorateClass([
|
|
1022
|
-
|
|
1147
|
+
Column10({ name: "routing_no", type: "varchar", nullable: true })
|
|
1023
1148
|
], BankDetail.prototype, "routingNo", 2);
|
|
1024
1149
|
__decorateClass([
|
|
1025
|
-
|
|
1150
|
+
Column10({ name: "aba_no", type: "varchar", nullable: true })
|
|
1026
1151
|
], BankDetail.prototype, "abaNumber", 2);
|
|
1027
1152
|
__decorateClass([
|
|
1028
|
-
|
|
1153
|
+
Column10({ name: "iban", type: "varchar", nullable: true })
|
|
1029
1154
|
], BankDetail.prototype, "iban", 2);
|
|
1030
1155
|
__decorateClass([
|
|
1031
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1172
|
+
Entity9("bank_details")
|
|
1048
1173
|
], BankDetail);
|
|
1049
1174
|
|
|
1050
1175
|
// src/entities/system-preference.entity.ts
|
|
1051
1176
|
import {
|
|
1052
|
-
Entity as
|
|
1053
|
-
Column as
|
|
1054
|
-
Index as
|
|
1055
|
-
ManyToOne as
|
|
1056
|
-
JoinColumn as
|
|
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
|
-
|
|
1063
|
-
|
|
1187
|
+
Column11({ name: "user_id", type: "integer", nullable: true }),
|
|
1188
|
+
Index7()
|
|
1064
1189
|
], SystemPreference.prototype, "userId", 2);
|
|
1065
1190
|
__decorateClass([
|
|
1066
|
-
|
|
1067
|
-
|
|
1191
|
+
ManyToOne9(() => User, (user) => user.systemPreference),
|
|
1192
|
+
JoinColumn9({ name: "user_id" })
|
|
1068
1193
|
], SystemPreference.prototype, "user", 2);
|
|
1069
1194
|
__decorateClass([
|
|
1070
|
-
|
|
1195
|
+
Column11({ name: "key", type: "varchar", unique: true, nullable: false })
|
|
1071
1196
|
], SystemPreference.prototype, "key", 2);
|
|
1072
1197
|
__decorateClass([
|
|
1073
|
-
|
|
1198
|
+
Column11({ name: "value", type: "boolean", default: false })
|
|
1074
1199
|
], SystemPreference.prototype, "value", 2);
|
|
1075
1200
|
SystemPreference = __decorateClass([
|
|
1076
|
-
|
|
1201
|
+
Entity10("system_preferences")
|
|
1077
1202
|
], SystemPreference);
|
|
1078
1203
|
|
|
1079
1204
|
// src/entities/rating.entity.ts
|
|
1080
|
-
import { Entity as
|
|
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,38 +1211,68 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
1086
1211
|
var Rating = class extends BaseEntity {
|
|
1087
1212
|
};
|
|
1088
1213
|
__decorateClass([
|
|
1089
|
-
|
|
1090
|
-
|
|
1214
|
+
Column12({ name: "reviewer_id", type: "integer" }),
|
|
1215
|
+
Index8()
|
|
1091
1216
|
], Rating.prototype, "reviewer_id", 2);
|
|
1092
1217
|
__decorateClass([
|
|
1093
|
-
|
|
1094
|
-
|
|
1218
|
+
ManyToOne10(() => User, { onDelete: "CASCADE" }),
|
|
1219
|
+
JoinColumn10({ name: "reviewer_id" })
|
|
1095
1220
|
], Rating.prototype, "reviewer", 2);
|
|
1096
1221
|
__decorateClass([
|
|
1097
|
-
|
|
1098
|
-
|
|
1222
|
+
Column12({ name: "reviewee_id", type: "integer" }),
|
|
1223
|
+
Index8()
|
|
1099
1224
|
], Rating.prototype, "reviewee_id", 2);
|
|
1100
1225
|
__decorateClass([
|
|
1101
|
-
|
|
1102
|
-
|
|
1226
|
+
ManyToOne10(() => User, { onDelete: "CASCADE" }),
|
|
1227
|
+
JoinColumn10({ name: "reviewee_id" })
|
|
1103
1228
|
], Rating.prototype, "reviewee", 2);
|
|
1104
1229
|
__decorateClass([
|
|
1105
|
-
|
|
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
|
-
|
|
1237
|
+
Column12({ type: "integer", nullable: true })
|
|
1113
1238
|
], Rating.prototype, "rating", 2);
|
|
1114
1239
|
__decorateClass([
|
|
1115
|
-
|
|
1240
|
+
Column12({ type: "text", nullable: true })
|
|
1116
1241
|
], Rating.prototype, "review", 2);
|
|
1117
1242
|
Rating = __decorateClass([
|
|
1118
|
-
|
|
1243
|
+
Entity11("ratings")
|
|
1119
1244
|
], Rating);
|
|
1120
1245
|
|
|
1246
|
+
// src/entities/company-role.entity.ts
|
|
1247
|
+
import { BaseEntity as BaseEntity2, Column as Column13, Entity as Entity12, Index as Index9, JoinColumn as JoinColumn11, ManyToOne as ManyToOne11 } from "typeorm";
|
|
1248
|
+
var CompanyRole = class extends BaseEntity2 {
|
|
1249
|
+
};
|
|
1250
|
+
// individual index to find company roles by user
|
|
1251
|
+
__decorateClass([
|
|
1252
|
+
Column13({ name: "user_id", type: "integer", nullable: true }),
|
|
1253
|
+
Index9()
|
|
1254
|
+
], CompanyRole.prototype, "userId", 2);
|
|
1255
|
+
__decorateClass([
|
|
1256
|
+
ManyToOne11(() => User, (user) => user.companyRole),
|
|
1257
|
+
JoinColumn11({ name: "user_id" })
|
|
1258
|
+
], CompanyRole.prototype, "user", 2);
|
|
1259
|
+
__decorateClass([
|
|
1260
|
+
Column13({ name: "name", type: "varchar" })
|
|
1261
|
+
], CompanyRole.prototype, "name", 2);
|
|
1262
|
+
__decorateClass([
|
|
1263
|
+
Column13({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
1264
|
+
Index9()
|
|
1265
|
+
], CompanyRole.prototype, "slug", 2);
|
|
1266
|
+
__decorateClass([
|
|
1267
|
+
Column13({ name: "description", type: "text", nullable: true })
|
|
1268
|
+
], CompanyRole.prototype, "description", 2);
|
|
1269
|
+
__decorateClass([
|
|
1270
|
+
Column13({ name: "is_active", type: "boolean", default: true })
|
|
1271
|
+
], CompanyRole.prototype, "isActive", 2);
|
|
1272
|
+
CompanyRole = __decorateClass([
|
|
1273
|
+
Entity12("company_roles")
|
|
1274
|
+
], CompanyRole);
|
|
1275
|
+
|
|
1121
1276
|
// src/entities/user.entity.ts
|
|
1122
1277
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1123
1278
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1142,40 +1297,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1142
1297
|
var User = class extends BaseEntity {
|
|
1143
1298
|
};
|
|
1144
1299
|
__decorateClass([
|
|
1145
|
-
|
|
1300
|
+
Column14({ name: "unique_id", type: "varchar", unique: true })
|
|
1146
1301
|
], User.prototype, "uniqueId", 2);
|
|
1147
1302
|
__decorateClass([
|
|
1148
|
-
|
|
1303
|
+
Column14({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1149
1304
|
], User.prototype, "username", 2);
|
|
1150
1305
|
__decorateClass([
|
|
1151
|
-
|
|
1306
|
+
Column14({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1152
1307
|
], User.prototype, "firstName", 2);
|
|
1153
1308
|
__decorateClass([
|
|
1154
|
-
|
|
1309
|
+
Column14({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1155
1310
|
], User.prototype, "lastName", 2);
|
|
1156
1311
|
__decorateClass([
|
|
1157
|
-
|
|
1312
|
+
Column14({ name: "date_of_birth", type: "date", nullable: true })
|
|
1158
1313
|
], User.prototype, "dateOfBirth", 2);
|
|
1159
1314
|
__decorateClass([
|
|
1160
|
-
|
|
1315
|
+
Column14({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1161
1316
|
], User.prototype, "gender", 2);
|
|
1162
1317
|
__decorateClass([
|
|
1163
|
-
|
|
1318
|
+
Column14({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1164
1319
|
], User.prototype, "profilePictureUrl", 2);
|
|
1165
1320
|
__decorateClass([
|
|
1166
|
-
|
|
1321
|
+
Column14({ name: "email", type: "varchar", unique: true })
|
|
1167
1322
|
], User.prototype, "email", 2);
|
|
1168
1323
|
__decorateClass([
|
|
1169
|
-
|
|
1324
|
+
Column14({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1170
1325
|
], User.prototype, "mobileCode", 2);
|
|
1171
1326
|
__decorateClass([
|
|
1172
|
-
|
|
1327
|
+
Column14({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1173
1328
|
], User.prototype, "mobile", 2);
|
|
1174
1329
|
__decorateClass([
|
|
1175
|
-
|
|
1330
|
+
Column14({ name: "password", type: "varchar" })
|
|
1176
1331
|
], User.prototype, "password", 2);
|
|
1177
1332
|
__decorateClass([
|
|
1178
|
-
|
|
1333
|
+
Column14({
|
|
1179
1334
|
name: "account_type",
|
|
1180
1335
|
type: "enum",
|
|
1181
1336
|
enum: AccountType,
|
|
@@ -1183,7 +1338,7 @@ __decorateClass([
|
|
|
1183
1338
|
})
|
|
1184
1339
|
], User.prototype, "accountType", 2);
|
|
1185
1340
|
__decorateClass([
|
|
1186
|
-
|
|
1341
|
+
Column14({
|
|
1187
1342
|
name: "account_status",
|
|
1188
1343
|
type: "enum",
|
|
1189
1344
|
enum: AccountStatus,
|
|
@@ -1191,36 +1346,36 @@ __decorateClass([
|
|
|
1191
1346
|
})
|
|
1192
1347
|
], User.prototype, "accountStatus", 2);
|
|
1193
1348
|
__decorateClass([
|
|
1194
|
-
|
|
1349
|
+
Column14({ name: "is_email_verified", type: "boolean", default: false })
|
|
1195
1350
|
], User.prototype, "isEmailVerified", 2);
|
|
1196
1351
|
__decorateClass([
|
|
1197
|
-
|
|
1352
|
+
Column14({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1198
1353
|
], User.prototype, "isMobileVerified", 2);
|
|
1199
1354
|
__decorateClass([
|
|
1200
|
-
|
|
1355
|
+
Column14({
|
|
1201
1356
|
name: "last_login_at",
|
|
1202
1357
|
type: "timestamp with time zone",
|
|
1203
1358
|
nullable: true
|
|
1204
1359
|
})
|
|
1205
1360
|
], User.prototype, "lastLoginAt", 2);
|
|
1206
1361
|
__decorateClass([
|
|
1207
|
-
|
|
1362
|
+
Column14({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1208
1363
|
], User.prototype, "lastLoginIp", 2);
|
|
1209
1364
|
__decorateClass([
|
|
1210
|
-
|
|
1365
|
+
Column14({ name: "reset_token", type: "varchar", nullable: true })
|
|
1211
1366
|
], User.prototype, "resetToken", 2);
|
|
1212
1367
|
__decorateClass([
|
|
1213
|
-
|
|
1368
|
+
Column14({
|
|
1214
1369
|
name: "reset_token_expire_at",
|
|
1215
1370
|
type: "timestamp with time zone",
|
|
1216
1371
|
nullable: true
|
|
1217
1372
|
})
|
|
1218
1373
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
1219
1374
|
__decorateClass([
|
|
1220
|
-
|
|
1375
|
+
OneToMany6(() => RefreshToken, (token) => token.user)
|
|
1221
1376
|
], User.prototype, "refreshTokens", 2);
|
|
1222
1377
|
__decorateClass([
|
|
1223
|
-
|
|
1378
|
+
Column14({
|
|
1224
1379
|
name: "provider",
|
|
1225
1380
|
type: "enum",
|
|
1226
1381
|
enum: Provider,
|
|
@@ -1229,22 +1384,22 @@ __decorateClass([
|
|
|
1229
1384
|
})
|
|
1230
1385
|
], User.prototype, "provider", 2);
|
|
1231
1386
|
__decorateClass([
|
|
1232
|
-
|
|
1387
|
+
Column14({ name: "provider_token", type: "varchar", nullable: true })
|
|
1233
1388
|
], User.prototype, "providerToken", 2);
|
|
1234
1389
|
__decorateClass([
|
|
1235
|
-
|
|
1390
|
+
Column14({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1236
1391
|
], User.prototype, "linkedInId", 2);
|
|
1237
1392
|
__decorateClass([
|
|
1238
|
-
|
|
1393
|
+
Column14({ name: "google_id", type: "varchar", nullable: true })
|
|
1239
1394
|
], User.prototype, "googleId", 2);
|
|
1240
1395
|
__decorateClass([
|
|
1241
|
-
|
|
1396
|
+
Column14({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1242
1397
|
], User.prototype, "gitLabsId", 2);
|
|
1243
1398
|
__decorateClass([
|
|
1244
|
-
|
|
1399
|
+
OneToMany6(() => Otp, (otp) => otp.user)
|
|
1245
1400
|
], User.prototype, "otps", 2);
|
|
1246
1401
|
__decorateClass([
|
|
1247
|
-
|
|
1402
|
+
OneToMany6(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
1248
1403
|
], User.prototype, "resumeParserLogs", 2);
|
|
1249
1404
|
__decorateClass([
|
|
1250
1405
|
OneToOne(
|
|
@@ -1256,25 +1411,31 @@ __decorateClass([
|
|
|
1256
1411
|
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
1257
1412
|
], User.prototype, "companyProfile", 2);
|
|
1258
1413
|
__decorateClass([
|
|
1259
|
-
|
|
1414
|
+
OneToMany6(() => Job, (job) => job.user)
|
|
1260
1415
|
], User.prototype, "jobs", 2);
|
|
1261
1416
|
__decorateClass([
|
|
1262
|
-
|
|
1417
|
+
OneToMany6(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
1263
1418
|
], User.prototype, "bankDetail", 2);
|
|
1264
1419
|
__decorateClass([
|
|
1265
|
-
|
|
1420
|
+
OneToMany6(
|
|
1266
1421
|
() => SystemPreference,
|
|
1267
1422
|
(systemPreference) => systemPreference.user
|
|
1268
1423
|
)
|
|
1269
1424
|
], User.prototype, "systemPreference", 2);
|
|
1270
1425
|
__decorateClass([
|
|
1271
|
-
|
|
1426
|
+
OneToMany6(() => Rating, (rating) => rating.reviewer)
|
|
1272
1427
|
], User.prototype, "givenRatings", 2);
|
|
1273
1428
|
__decorateClass([
|
|
1274
|
-
|
|
1429
|
+
OneToMany6(() => Rating, (rating) => rating.reviewee)
|
|
1275
1430
|
], User.prototype, "receivedRatings", 2);
|
|
1431
|
+
__decorateClass([
|
|
1432
|
+
OneToMany6(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
1433
|
+
], User.prototype, "jobApplications", 2);
|
|
1434
|
+
__decorateClass([
|
|
1435
|
+
OneToMany6(() => CompanyRole, (companyRole) => companyRole.user)
|
|
1436
|
+
], User.prototype, "companyRole", 2);
|
|
1276
1437
|
User = __decorateClass([
|
|
1277
|
-
|
|
1438
|
+
Entity13("users")
|
|
1278
1439
|
], User);
|
|
1279
1440
|
|
|
1280
1441
|
// src/entities/company-profile.entity.ts
|
|
@@ -1301,42 +1462,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
1301
1462
|
};
|
|
1302
1463
|
// individual index to find company profile by user
|
|
1303
1464
|
__decorateClass([
|
|
1304
|
-
|
|
1305
|
-
|
|
1465
|
+
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
1466
|
+
Index10()
|
|
1306
1467
|
], CompanyProfile.prototype, "userId", 2);
|
|
1307
1468
|
__decorateClass([
|
|
1308
|
-
|
|
1309
|
-
|
|
1469
|
+
ManyToOne12(() => User, (user) => user.otps),
|
|
1470
|
+
JoinColumn12({ name: "user_id" })
|
|
1310
1471
|
], CompanyProfile.prototype, "user", 2);
|
|
1311
1472
|
__decorateClass([
|
|
1312
|
-
|
|
1473
|
+
Column15({ name: "company_name", type: "varchar", nullable: true })
|
|
1313
1474
|
], CompanyProfile.prototype, "companyName", 2);
|
|
1314
1475
|
__decorateClass([
|
|
1315
|
-
|
|
1476
|
+
Column15({ name: "bio", type: "varchar", nullable: true })
|
|
1316
1477
|
], CompanyProfile.prototype, "bio", 2);
|
|
1317
1478
|
__decorateClass([
|
|
1318
|
-
|
|
1479
|
+
Column15({ name: "website", type: "varchar", nullable: true })
|
|
1319
1480
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1320
1481
|
__decorateClass([
|
|
1321
|
-
|
|
1482
|
+
Column15({ name: "about_company", type: "varchar", nullable: true })
|
|
1322
1483
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1323
1484
|
__decorateClass([
|
|
1324
|
-
|
|
1485
|
+
Column15({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1325
1486
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1326
1487
|
__decorateClass([
|
|
1327
|
-
|
|
1488
|
+
Column15({ name: "company_address", type: "varchar", nullable: true })
|
|
1328
1489
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1329
1490
|
__decorateClass([
|
|
1330
|
-
|
|
1491
|
+
Column15({ name: "phone_number", type: "varchar", nullable: true })
|
|
1331
1492
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1332
1493
|
__decorateClass([
|
|
1333
|
-
|
|
1494
|
+
Column15({ name: "skills", type: "text", nullable: true })
|
|
1334
1495
|
], CompanyProfile.prototype, "skills", 2);
|
|
1335
1496
|
__decorateClass([
|
|
1336
|
-
|
|
1497
|
+
Column15({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1337
1498
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1338
1499
|
__decorateClass([
|
|
1339
|
-
|
|
1500
|
+
Column15({
|
|
1340
1501
|
name: "kind_of_hiring",
|
|
1341
1502
|
type: "enum",
|
|
1342
1503
|
enum: KindOfHire,
|
|
@@ -1344,7 +1505,7 @@ __decorateClass([
|
|
|
1344
1505
|
})
|
|
1345
1506
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1346
1507
|
__decorateClass([
|
|
1347
|
-
|
|
1508
|
+
Column15({
|
|
1348
1509
|
name: "mode_of_hire",
|
|
1349
1510
|
type: "enum",
|
|
1350
1511
|
enum: ModeOfHire,
|
|
@@ -1352,7 +1513,7 @@ __decorateClass([
|
|
|
1352
1513
|
})
|
|
1353
1514
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1354
1515
|
__decorateClass([
|
|
1355
|
-
|
|
1516
|
+
Column15({
|
|
1356
1517
|
name: "found_us_on",
|
|
1357
1518
|
type: "enum",
|
|
1358
1519
|
enum: FromUsOn,
|
|
@@ -1360,7 +1521,7 @@ __decorateClass([
|
|
|
1360
1521
|
})
|
|
1361
1522
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1362
1523
|
CompanyProfile = __decorateClass([
|
|
1363
|
-
|
|
1524
|
+
Entity14("company_profiles")
|
|
1364
1525
|
], CompanyProfile);
|
|
1365
1526
|
|
|
1366
1527
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -2016,7 +2177,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2016
2177
|
};
|
|
2017
2178
|
|
|
2018
2179
|
// src/entities/question.entity.ts
|
|
2019
|
-
import { Entity as
|
|
2180
|
+
import { Entity as Entity15, Column as Column16 } from "typeorm";
|
|
2020
2181
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2021
2182
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2022
2183
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2025,16 +2186,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2025
2186
|
var Question = class extends BaseEntity {
|
|
2026
2187
|
};
|
|
2027
2188
|
__decorateClass([
|
|
2028
|
-
|
|
2189
|
+
Column16({ name: "question", type: "varchar" })
|
|
2029
2190
|
], Question.prototype, "question", 2);
|
|
2030
2191
|
__decorateClass([
|
|
2031
|
-
|
|
2192
|
+
Column16({ name: "hint", type: "varchar", nullable: true })
|
|
2032
2193
|
], Question.prototype, "hint", 2);
|
|
2033
2194
|
__decorateClass([
|
|
2034
|
-
|
|
2195
|
+
Column16({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2035
2196
|
], Question.prototype, "slug", 2);
|
|
2036
2197
|
__decorateClass([
|
|
2037
|
-
|
|
2198
|
+
Column16({
|
|
2038
2199
|
name: "question_for",
|
|
2039
2200
|
type: "enum",
|
|
2040
2201
|
enum: QuestionFor,
|
|
@@ -2042,81 +2203,82 @@ __decorateClass([
|
|
|
2042
2203
|
})
|
|
2043
2204
|
], Question.prototype, "questionFor", 2);
|
|
2044
2205
|
__decorateClass([
|
|
2045
|
-
|
|
2206
|
+
Column16({ name: "type", type: "varchar", nullable: true })
|
|
2046
2207
|
], Question.prototype, "type", 2);
|
|
2047
2208
|
__decorateClass([
|
|
2048
|
-
|
|
2209
|
+
Column16({ name: "options", type: "jsonb", nullable: true })
|
|
2049
2210
|
], Question.prototype, "options", 2);
|
|
2050
2211
|
__decorateClass([
|
|
2051
|
-
|
|
2212
|
+
Column16({ name: "is_active", type: "boolean", default: false })
|
|
2052
2213
|
], Question.prototype, "isActive", 2);
|
|
2053
2214
|
Question = __decorateClass([
|
|
2054
|
-
|
|
2215
|
+
Entity15("questions")
|
|
2055
2216
|
], Question);
|
|
2056
2217
|
|
|
2057
2218
|
// src/entities/job-role.entity.ts
|
|
2058
|
-
import { Entity as
|
|
2219
|
+
import { Entity as Entity16, Column as Column17 } from "typeorm";
|
|
2059
2220
|
var JobRoles = class extends BaseEntity {
|
|
2060
2221
|
};
|
|
2061
2222
|
__decorateClass([
|
|
2062
|
-
|
|
2223
|
+
Column17({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2063
2224
|
], JobRoles.prototype, "slug", 2);
|
|
2064
2225
|
__decorateClass([
|
|
2065
|
-
|
|
2226
|
+
Column17({ name: "name", type: "varchar", nullable: true })
|
|
2066
2227
|
], JobRoles.prototype, "name", 2);
|
|
2067
2228
|
__decorateClass([
|
|
2068
|
-
|
|
2229
|
+
Column17({ name: "is_active", type: "boolean", default: true })
|
|
2069
2230
|
], JobRoles.prototype, "isActive", 2);
|
|
2070
2231
|
JobRoles = __decorateClass([
|
|
2071
|
-
|
|
2232
|
+
Entity16("job_roles")
|
|
2072
2233
|
], JobRoles);
|
|
2073
2234
|
|
|
2074
2235
|
// src/entities/plan.entity.ts
|
|
2075
|
-
import { Entity as
|
|
2236
|
+
import { Entity as Entity18, Column as Column19, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
2076
2237
|
|
|
2077
2238
|
// src/entities/feature.entity.ts
|
|
2078
|
-
import { Entity as
|
|
2239
|
+
import { Entity as Entity17, Column as Column18, ManyToMany } from "typeorm";
|
|
2079
2240
|
var Feature = class extends BaseEntity {
|
|
2080
2241
|
};
|
|
2081
2242
|
__decorateClass([
|
|
2082
|
-
|
|
2243
|
+
Column18({ name: "name", type: "varchar", unique: true })
|
|
2083
2244
|
], Feature.prototype, "name", 2);
|
|
2084
2245
|
__decorateClass([
|
|
2085
2246
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
2086
2247
|
], Feature.prototype, "plans", 2);
|
|
2087
2248
|
Feature = __decorateClass([
|
|
2088
|
-
|
|
2249
|
+
Entity17("features")
|
|
2089
2250
|
], Feature);
|
|
2090
2251
|
|
|
2091
2252
|
// src/entities/plan.entity.ts
|
|
2092
2253
|
var Plan = class extends BaseEntity {
|
|
2093
2254
|
};
|
|
2094
2255
|
__decorateClass([
|
|
2095
|
-
|
|
2256
|
+
Column19({ name: "name", type: "varchar", unique: true })
|
|
2096
2257
|
], Plan.prototype, "name", 2);
|
|
2097
2258
|
__decorateClass([
|
|
2098
|
-
|
|
2259
|
+
Column19({ name: "description", type: "varchar", nullable: true })
|
|
2099
2260
|
], Plan.prototype, "description", 2);
|
|
2100
2261
|
__decorateClass([
|
|
2101
|
-
|
|
2262
|
+
Column19({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2102
2263
|
], Plan.prototype, "price", 2);
|
|
2103
2264
|
__decorateClass([
|
|
2104
|
-
|
|
2265
|
+
Column19({ name: "billing_period", type: "varchar" })
|
|
2105
2266
|
], Plan.prototype, "billingPeriod", 2);
|
|
2106
2267
|
__decorateClass([
|
|
2107
|
-
|
|
2268
|
+
Column19({ name: "is_current", type: "boolean", default: false })
|
|
2108
2269
|
], Plan.prototype, "isCurrent", 2);
|
|
2109
2270
|
__decorateClass([
|
|
2110
2271
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2111
2272
|
JoinTable()
|
|
2112
2273
|
], Plan.prototype, "features", 2);
|
|
2113
2274
|
Plan = __decorateClass([
|
|
2114
|
-
|
|
2275
|
+
Entity18("plans")
|
|
2115
2276
|
], Plan);
|
|
2116
2277
|
export {
|
|
2117
2278
|
AUTHENTICATION_PATTERN,
|
|
2118
2279
|
AccountStatus,
|
|
2119
2280
|
AccountType,
|
|
2281
|
+
ApplicationStatusEnum,
|
|
2120
2282
|
BANK_PATTERN,
|
|
2121
2283
|
BankAccountScope,
|
|
2122
2284
|
BankAccountScopeEnum,
|
|
@@ -2147,6 +2309,7 @@ export {
|
|
|
2147
2309
|
JOB_ROLE_PATTERN,
|
|
2148
2310
|
Job,
|
|
2149
2311
|
JobAdditionalCommentDto,
|
|
2312
|
+
JobApplication,
|
|
2150
2313
|
JobBasicInformationDto,
|
|
2151
2314
|
JobDescriptionDto,
|
|
2152
2315
|
JobIdParamDto,
|