@experts_hub/shared 1.0.111 → 1.0.113

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.
@@ -14,3 +14,4 @@ export * from './bank-details.entity';
14
14
  export * from './plan.entity';
15
15
  export * from './feature.entity';
16
16
  export * from './system-preference.entity';
17
+ export * from './rating.entity';
@@ -0,0 +1,15 @@
1
+ import { User } from "./user.entity";
2
+ import { BaseEntity } from "./base.entity";
3
+ export declare enum RatingTypeEnum {
4
+ FREELANCER_TO_CLIENT = "FREELANCER_TO_CLIENT",
5
+ CLIENT_TO_FREELANCER = "CLIENT_TO_FREELANCER"
6
+ }
7
+ export declare class Rating extends BaseEntity {
8
+ reviewer_id: number;
9
+ reviewer: User;
10
+ reviewee_id: number;
11
+ reviewee: User;
12
+ ratingType: RatingTypeEnum;
13
+ rating: number;
14
+ review: string;
15
+ }
@@ -7,6 +7,7 @@ import { CompanyProfile } from "./company-profile.entity";
7
7
  import { Job } from "./job-entity";
8
8
  import { BankDetail } from "./bank-details.entity";
9
9
  import { SystemPreference } from "./system-preference.entity";
10
+ import { Rating } from "./rating.entity";
10
11
  export declare enum AccountType {
11
12
  ADMIN = "ADMIN",
12
13
  SUB_ADMIN = "SUB_ADMIN",
@@ -57,4 +58,6 @@ export declare class User extends BaseEntity {
57
58
  jobs: Job[];
58
59
  bankDetail: BankDetail[];
59
60
  systemPreference: SystemPreference[];
61
+ givenRatings: Rating[];
62
+ receivedRatings: Rating[];
60
63
  }
package/dist/index.d.mts CHANGED
@@ -418,6 +418,20 @@ declare class SystemPreference extends BaseEntity {
418
418
  value: boolean;
419
419
  }
420
420
 
421
+ declare enum RatingTypeEnum {
422
+ FREELANCER_TO_CLIENT = "FREELANCER_TO_CLIENT",
423
+ CLIENT_TO_FREELANCER = "CLIENT_TO_FREELANCER"
424
+ }
425
+ declare class Rating extends BaseEntity {
426
+ reviewer_id: number;
427
+ reviewer: User;
428
+ reviewee_id: number;
429
+ reviewee: User;
430
+ ratingType: RatingTypeEnum;
431
+ rating: number;
432
+ review: string;
433
+ }
434
+
421
435
  declare enum AccountType {
422
436
  ADMIN = "ADMIN",
423
437
  SUB_ADMIN = "SUB_ADMIN",
@@ -468,6 +482,8 @@ declare class User extends BaseEntity {
468
482
  jobs: Job[];
469
483
  bankDetail: BankDetail[];
470
484
  systemPreference: SystemPreference[];
485
+ givenRatings: Rating[];
486
+ receivedRatings: Rating[];
471
487
  }
472
488
 
473
489
  declare enum KindOfHire {
@@ -787,4 +803,4 @@ declare class Plan extends BaseEntity {
787
803
  features: Feature[];
788
804
  }
789
805
 
790
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
806
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -418,6 +418,20 @@ declare class SystemPreference extends BaseEntity {
418
418
  value: boolean;
419
419
  }
420
420
 
421
+ declare enum RatingTypeEnum {
422
+ FREELANCER_TO_CLIENT = "FREELANCER_TO_CLIENT",
423
+ CLIENT_TO_FREELANCER = "CLIENT_TO_FREELANCER"
424
+ }
425
+ declare class Rating extends BaseEntity {
426
+ reviewer_id: number;
427
+ reviewer: User;
428
+ reviewee_id: number;
429
+ reviewee: User;
430
+ ratingType: RatingTypeEnum;
431
+ rating: number;
432
+ review: string;
433
+ }
434
+
421
435
  declare enum AccountType {
422
436
  ADMIN = "ADMIN",
423
437
  SUB_ADMIN = "SUB_ADMIN",
@@ -468,6 +482,8 @@ declare class User extends BaseEntity {
468
482
  jobs: Job[];
469
483
  bankDetail: BankDetail[];
470
484
  systemPreference: SystemPreference[];
485
+ givenRatings: Rating[];
486
+ receivedRatings: Rating[];
471
487
  }
472
488
 
473
489
  declare enum KindOfHire {
@@ -787,4 +803,4 @@ declare class Plan extends BaseEntity {
787
803
  features: Feature[];
788
804
  }
789
805
 
790
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
806
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -92,6 +92,8 @@ __export(index_exports, {
92
92
  Question: () => Question,
93
93
  QuestionFor: () => QuestionFor,
94
94
  RESUME_PARSER_PATTERN: () => RESUME_PARSER_PATTERN,
95
+ Rating: () => Rating,
96
+ RatingTypeEnum: () => RatingTypeEnum,
95
97
  RefreshDto: () => RefreshDto,
96
98
  RefreshToken: () => RefreshToken,
97
99
  ResetPasswordDto: () => ResetPasswordDto,
@@ -542,7 +544,7 @@ var CLIENT_PROFILE_PATTERN = {
542
544
  var import_class_validator17 = require("class-validator");
543
545
 
544
546
  // src/entities/company-profile.entity.ts
545
- var import_typeorm12 = require("typeorm");
547
+ var import_typeorm13 = require("typeorm");
546
548
 
547
549
  // src/entities/base.entity.ts
548
550
  var import_typeorm = require("typeorm");
@@ -582,7 +584,7 @@ __decorateClass([
582
584
  ], BaseEntity.prototype, "deletedAt", 2);
583
585
 
584
586
  // src/entities/user.entity.ts
585
- var import_typeorm11 = require("typeorm");
587
+ var import_typeorm12 = require("typeorm");
586
588
 
587
589
  // src/entities/refresh-token.entity.ts
588
590
  var import_typeorm2 = require("typeorm");
@@ -1069,6 +1071,48 @@ SystemPreference = __decorateClass([
1069
1071
  (0, import_typeorm10.Entity)("system_preferences")
1070
1072
  ], SystemPreference);
1071
1073
 
1074
+ // src/entities/rating.entity.ts
1075
+ var import_typeorm11 = require("typeorm");
1076
+ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
1077
+ RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
1078
+ RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
1079
+ return RatingTypeEnum2;
1080
+ })(RatingTypeEnum || {});
1081
+ var Rating = class extends BaseEntity {
1082
+ };
1083
+ __decorateClass([
1084
+ (0, import_typeorm11.Column)({ name: "reviewer_id", type: "integer" }),
1085
+ (0, import_typeorm11.Index)()
1086
+ ], Rating.prototype, "reviewer_id", 2);
1087
+ __decorateClass([
1088
+ (0, import_typeorm11.ManyToOne)(() => User, { onDelete: "CASCADE" }),
1089
+ (0, import_typeorm11.JoinColumn)({ name: "reviewer_id" })
1090
+ ], Rating.prototype, "reviewer", 2);
1091
+ __decorateClass([
1092
+ (0, import_typeorm11.Column)({ name: "reviewee_id", type: "integer" }),
1093
+ (0, import_typeorm11.Index)()
1094
+ ], Rating.prototype, "reviewee_id", 2);
1095
+ __decorateClass([
1096
+ (0, import_typeorm11.ManyToOne)(() => User, { onDelete: "CASCADE" }),
1097
+ (0, import_typeorm11.JoinColumn)({ name: "reviewee_id" })
1098
+ ], Rating.prototype, "reviewee", 2);
1099
+ __decorateClass([
1100
+ (0, import_typeorm11.Column)({
1101
+ type: "enum",
1102
+ enum: RatingTypeEnum,
1103
+ nullable: true
1104
+ })
1105
+ ], Rating.prototype, "ratingType", 2);
1106
+ __decorateClass([
1107
+ (0, import_typeorm11.Column)({ type: "integer", nullable: true })
1108
+ ], Rating.prototype, "rating", 2);
1109
+ __decorateClass([
1110
+ (0, import_typeorm11.Column)({ type: "text", nullable: true })
1111
+ ], Rating.prototype, "review", 2);
1112
+ Rating = __decorateClass([
1113
+ (0, import_typeorm11.Entity)("ratings")
1114
+ ], Rating);
1115
+
1072
1116
  // src/entities/user.entity.ts
1073
1117
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
1074
1118
  AccountType2["ADMIN"] = "ADMIN";
@@ -1093,40 +1137,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
1093
1137
  var User = class extends BaseEntity {
1094
1138
  };
1095
1139
  __decorateClass([
1096
- (0, import_typeorm11.Column)({ name: "unique_id", type: "varchar", unique: true })
1140
+ (0, import_typeorm12.Column)({ name: "unique_id", type: "varchar", unique: true })
1097
1141
  ], User.prototype, "uniqueId", 2);
1098
1142
  __decorateClass([
1099
- (0, import_typeorm11.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1143
+ (0, import_typeorm12.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1100
1144
  ], User.prototype, "username", 2);
1101
1145
  __decorateClass([
1102
- (0, import_typeorm11.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1146
+ (0, import_typeorm12.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1103
1147
  ], User.prototype, "firstName", 2);
1104
1148
  __decorateClass([
1105
- (0, import_typeorm11.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1149
+ (0, import_typeorm12.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1106
1150
  ], User.prototype, "lastName", 2);
1107
1151
  __decorateClass([
1108
- (0, import_typeorm11.Column)({ name: "date_of_birth", type: "date", nullable: true })
1152
+ (0, import_typeorm12.Column)({ name: "date_of_birth", type: "date", nullable: true })
1109
1153
  ], User.prototype, "dateOfBirth", 2);
1110
1154
  __decorateClass([
1111
- (0, import_typeorm11.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1155
+ (0, import_typeorm12.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1112
1156
  ], User.prototype, "gender", 2);
1113
1157
  __decorateClass([
1114
- (0, import_typeorm11.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1158
+ (0, import_typeorm12.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1115
1159
  ], User.prototype, "profilePictureUrl", 2);
1116
1160
  __decorateClass([
1117
- (0, import_typeorm11.Column)({ name: "email", type: "varchar", unique: true })
1161
+ (0, import_typeorm12.Column)({ name: "email", type: "varchar", unique: true })
1118
1162
  ], User.prototype, "email", 2);
1119
1163
  __decorateClass([
1120
- (0, import_typeorm11.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1164
+ (0, import_typeorm12.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1121
1165
  ], User.prototype, "mobileCode", 2);
1122
1166
  __decorateClass([
1123
- (0, import_typeorm11.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1167
+ (0, import_typeorm12.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1124
1168
  ], User.prototype, "mobile", 2);
1125
1169
  __decorateClass([
1126
- (0, import_typeorm11.Column)({ name: "password", type: "varchar" })
1170
+ (0, import_typeorm12.Column)({ name: "password", type: "varchar" })
1127
1171
  ], User.prototype, "password", 2);
1128
1172
  __decorateClass([
1129
- (0, import_typeorm11.Column)({
1173
+ (0, import_typeorm12.Column)({
1130
1174
  name: "account_type",
1131
1175
  type: "enum",
1132
1176
  enum: AccountType,
@@ -1134,7 +1178,7 @@ __decorateClass([
1134
1178
  })
1135
1179
  ], User.prototype, "accountType", 2);
1136
1180
  __decorateClass([
1137
- (0, import_typeorm11.Column)({
1181
+ (0, import_typeorm12.Column)({
1138
1182
  name: "account_status",
1139
1183
  type: "enum",
1140
1184
  enum: AccountStatus,
@@ -1142,32 +1186,36 @@ __decorateClass([
1142
1186
  })
1143
1187
  ], User.prototype, "accountStatus", 2);
1144
1188
  __decorateClass([
1145
- (0, import_typeorm11.Column)({ name: "is_email_verified", type: "boolean", default: false })
1189
+ (0, import_typeorm12.Column)({ name: "is_email_verified", type: "boolean", default: false })
1146
1190
  ], User.prototype, "isEmailVerified", 2);
1147
1191
  __decorateClass([
1148
- (0, import_typeorm11.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1192
+ (0, import_typeorm12.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1149
1193
  ], User.prototype, "isMobileVerified", 2);
1150
1194
  __decorateClass([
1151
- (0, import_typeorm11.Column)({
1195
+ (0, import_typeorm12.Column)({
1152
1196
  name: "last_login_at",
1153
1197
  type: "timestamp with time zone",
1154
1198
  nullable: true
1155
1199
  })
1156
1200
  ], User.prototype, "lastLoginAt", 2);
1157
1201
  __decorateClass([
1158
- (0, import_typeorm11.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1202
+ (0, import_typeorm12.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1159
1203
  ], User.prototype, "lastLoginIp", 2);
1160
1204
  __decorateClass([
1161
- (0, import_typeorm11.Column)({ name: "reset_token", type: "varchar", nullable: true })
1205
+ (0, import_typeorm12.Column)({ name: "reset_token", type: "varchar", nullable: true })
1162
1206
  ], User.prototype, "resetToken", 2);
1163
1207
  __decorateClass([
1164
- (0, import_typeorm11.Column)({ name: "reset_token_expire_at", type: "timestamp with time zone", nullable: true })
1208
+ (0, import_typeorm12.Column)({
1209
+ name: "reset_token_expire_at",
1210
+ type: "timestamp with time zone",
1211
+ nullable: true
1212
+ })
1165
1213
  ], User.prototype, "resetTokenExpireAt", 2);
1166
1214
  __decorateClass([
1167
- (0, import_typeorm11.OneToMany)(() => RefreshToken, (token) => token.user)
1215
+ (0, import_typeorm12.OneToMany)(() => RefreshToken, (token) => token.user)
1168
1216
  ], User.prototype, "refreshTokens", 2);
1169
1217
  __decorateClass([
1170
- (0, import_typeorm11.Column)({
1218
+ (0, import_typeorm12.Column)({
1171
1219
  name: "provider",
1172
1220
  type: "enum",
1173
1221
  enum: Provider,
@@ -1176,43 +1224,52 @@ __decorateClass([
1176
1224
  })
1177
1225
  ], User.prototype, "provider", 2);
1178
1226
  __decorateClass([
1179
- (0, import_typeorm11.Column)({ name: "provider_token", type: "varchar", nullable: true })
1227
+ (0, import_typeorm12.Column)({ name: "provider_token", type: "varchar", nullable: true })
1180
1228
  ], User.prototype, "providerToken", 2);
1181
1229
  __decorateClass([
1182
- (0, import_typeorm11.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1230
+ (0, import_typeorm12.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1183
1231
  ], User.prototype, "linkedInId", 2);
1184
1232
  __decorateClass([
1185
- (0, import_typeorm11.Column)({ name: "google_id", type: "varchar", nullable: true })
1233
+ (0, import_typeorm12.Column)({ name: "google_id", type: "varchar", nullable: true })
1186
1234
  ], User.prototype, "googleId", 2);
1187
1235
  __decorateClass([
1188
- (0, import_typeorm11.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1236
+ (0, import_typeorm12.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1189
1237
  ], User.prototype, "gitLabsId", 2);
1190
1238
  __decorateClass([
1191
- (0, import_typeorm11.OneToMany)(() => Otp, (otp) => otp.user)
1239
+ (0, import_typeorm12.OneToMany)(() => Otp, (otp) => otp.user)
1192
1240
  ], User.prototype, "otps", 2);
1193
1241
  __decorateClass([
1194
- (0, import_typeorm11.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1242
+ (0, import_typeorm12.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1195
1243
  ], User.prototype, "resumeParserLogs", 2);
1196
1244
  __decorateClass([
1197
- (0, import_typeorm11.OneToOne)(
1245
+ (0, import_typeorm12.OneToOne)(
1198
1246
  () => FreelancerProfile,
1199
1247
  (freelancerProfile) => freelancerProfile.user
1200
1248
  )
1201
1249
  ], User.prototype, "freelancerProfile", 2);
1202
1250
  __decorateClass([
1203
- (0, import_typeorm11.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
1251
+ (0, import_typeorm12.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
1204
1252
  ], User.prototype, "companyProfile", 2);
1205
1253
  __decorateClass([
1206
- (0, import_typeorm11.OneToMany)(() => Job, (job) => job.user)
1254
+ (0, import_typeorm12.OneToMany)(() => Job, (job) => job.user)
1207
1255
  ], User.prototype, "jobs", 2);
1208
1256
  __decorateClass([
1209
- (0, import_typeorm11.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1257
+ (0, import_typeorm12.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1210
1258
  ], User.prototype, "bankDetail", 2);
1211
1259
  __decorateClass([
1212
- (0, import_typeorm11.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
1260
+ (0, import_typeorm12.OneToMany)(
1261
+ () => SystemPreference,
1262
+ (systemPreference) => systemPreference.user
1263
+ )
1213
1264
  ], User.prototype, "systemPreference", 2);
1265
+ __decorateClass([
1266
+ (0, import_typeorm12.OneToMany)(() => Rating, (rating) => rating.reviewer)
1267
+ ], User.prototype, "givenRatings", 2);
1268
+ __decorateClass([
1269
+ (0, import_typeorm12.OneToMany)(() => Rating, (rating) => rating.reviewee)
1270
+ ], User.prototype, "receivedRatings", 2);
1214
1271
  User = __decorateClass([
1215
- (0, import_typeorm11.Entity)("users")
1272
+ (0, import_typeorm12.Entity)("users")
1216
1273
  ], User);
1217
1274
 
1218
1275
  // src/entities/company-profile.entity.ts
@@ -1239,42 +1296,42 @@ var CompanyProfile = class extends BaseEntity {
1239
1296
  };
1240
1297
  // individual index to find company profile by user
1241
1298
  __decorateClass([
1242
- (0, import_typeorm12.Column)({ name: "user_id", type: "integer", nullable: true }),
1243
- (0, import_typeorm12.Index)()
1299
+ (0, import_typeorm13.Column)({ name: "user_id", type: "integer", nullable: true }),
1300
+ (0, import_typeorm13.Index)()
1244
1301
  ], CompanyProfile.prototype, "userId", 2);
1245
1302
  __decorateClass([
1246
- (0, import_typeorm12.ManyToOne)(() => User, (user) => user.otps),
1247
- (0, import_typeorm12.JoinColumn)({ name: "user_id" })
1303
+ (0, import_typeorm13.ManyToOne)(() => User, (user) => user.otps),
1304
+ (0, import_typeorm13.JoinColumn)({ name: "user_id" })
1248
1305
  ], CompanyProfile.prototype, "user", 2);
1249
1306
  __decorateClass([
1250
- (0, import_typeorm12.Column)({ name: "company_name", type: "varchar", nullable: true })
1307
+ (0, import_typeorm13.Column)({ name: "company_name", type: "varchar", nullable: true })
1251
1308
  ], CompanyProfile.prototype, "companyName", 2);
1252
1309
  __decorateClass([
1253
- (0, import_typeorm12.Column)({ name: "bio", type: "varchar", nullable: true })
1310
+ (0, import_typeorm13.Column)({ name: "bio", type: "varchar", nullable: true })
1254
1311
  ], CompanyProfile.prototype, "bio", 2);
1255
1312
  __decorateClass([
1256
- (0, import_typeorm12.Column)({ name: "website", type: "varchar", nullable: true })
1313
+ (0, import_typeorm13.Column)({ name: "website", type: "varchar", nullable: true })
1257
1314
  ], CompanyProfile.prototype, "webSite", 2);
1258
1315
  __decorateClass([
1259
- (0, import_typeorm12.Column)({ name: "about_company", type: "varchar", nullable: true })
1316
+ (0, import_typeorm13.Column)({ name: "about_company", type: "varchar", nullable: true })
1260
1317
  ], CompanyProfile.prototype, "aboutCompany", 2);
1261
1318
  __decorateClass([
1262
- (0, import_typeorm12.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1319
+ (0, import_typeorm13.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1263
1320
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
1264
1321
  __decorateClass([
1265
- (0, import_typeorm12.Column)({ name: "company_address", type: "varchar", nullable: true })
1322
+ (0, import_typeorm13.Column)({ name: "company_address", type: "varchar", nullable: true })
1266
1323
  ], CompanyProfile.prototype, "companyAddress", 2);
1267
1324
  __decorateClass([
1268
- (0, import_typeorm12.Column)({ name: "phone_number", type: "varchar", nullable: true })
1325
+ (0, import_typeorm13.Column)({ name: "phone_number", type: "varchar", nullable: true })
1269
1326
  ], CompanyProfile.prototype, "phoneNumber", 2);
1270
1327
  __decorateClass([
1271
- (0, import_typeorm12.Column)({ name: "skills", type: "text", nullable: true })
1328
+ (0, import_typeorm13.Column)({ name: "skills", type: "text", nullable: true })
1272
1329
  ], CompanyProfile.prototype, "skills", 2);
1273
1330
  __decorateClass([
1274
- (0, import_typeorm12.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
1331
+ (0, import_typeorm13.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
1275
1332
  ], CompanyProfile.prototype, "requiredFreelancer", 2);
1276
1333
  __decorateClass([
1277
- (0, import_typeorm12.Column)({
1334
+ (0, import_typeorm13.Column)({
1278
1335
  name: "kind_of_hiring",
1279
1336
  type: "enum",
1280
1337
  enum: KindOfHire,
@@ -1282,7 +1339,7 @@ __decorateClass([
1282
1339
  })
1283
1340
  ], CompanyProfile.prototype, "kindOfHiring", 2);
1284
1341
  __decorateClass([
1285
- (0, import_typeorm12.Column)({
1342
+ (0, import_typeorm13.Column)({
1286
1343
  name: "mode_of_hire",
1287
1344
  type: "enum",
1288
1345
  enum: ModeOfHire,
@@ -1290,7 +1347,7 @@ __decorateClass([
1290
1347
  })
1291
1348
  ], CompanyProfile.prototype, "modeOfHire", 2);
1292
1349
  __decorateClass([
1293
- (0, import_typeorm12.Column)({
1350
+ (0, import_typeorm13.Column)({
1294
1351
  name: "found_us_on",
1295
1352
  type: "enum",
1296
1353
  enum: FromUsOn,
@@ -1298,7 +1355,7 @@ __decorateClass([
1298
1355
  })
1299
1356
  ], CompanyProfile.prototype, "foundUsOn", 2);
1300
1357
  CompanyProfile = __decorateClass([
1301
- (0, import_typeorm12.Entity)("company_profiles")
1358
+ (0, import_typeorm13.Entity)("company_profiles")
1302
1359
  ], CompanyProfile);
1303
1360
 
1304
1361
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -1883,7 +1940,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
1883
1940
  };
1884
1941
 
1885
1942
  // src/entities/question.entity.ts
1886
- var import_typeorm13 = require("typeorm");
1943
+ var import_typeorm14 = require("typeorm");
1887
1944
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1888
1945
  QuestionFor2["CLIENT"] = "CLIENT";
1889
1946
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -1892,16 +1949,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1892
1949
  var Question = class extends BaseEntity {
1893
1950
  };
1894
1951
  __decorateClass([
1895
- (0, import_typeorm13.Column)({ name: "question", type: "varchar" })
1952
+ (0, import_typeorm14.Column)({ name: "question", type: "varchar" })
1896
1953
  ], Question.prototype, "question", 2);
1897
1954
  __decorateClass([
1898
- (0, import_typeorm13.Column)({ name: "hint", type: "varchar", nullable: true })
1955
+ (0, import_typeorm14.Column)({ name: "hint", type: "varchar", nullable: true })
1899
1956
  ], Question.prototype, "hint", 2);
1900
1957
  __decorateClass([
1901
- (0, import_typeorm13.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1958
+ (0, import_typeorm14.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1902
1959
  ], Question.prototype, "slug", 2);
1903
1960
  __decorateClass([
1904
- (0, import_typeorm13.Column)({
1961
+ (0, import_typeorm14.Column)({
1905
1962
  name: "question_for",
1906
1963
  type: "enum",
1907
1964
  enum: QuestionFor,
@@ -1909,76 +1966,76 @@ __decorateClass([
1909
1966
  })
1910
1967
  ], Question.prototype, "questionFor", 2);
1911
1968
  __decorateClass([
1912
- (0, import_typeorm13.Column)({ name: "type", type: "varchar", nullable: true })
1969
+ (0, import_typeorm14.Column)({ name: "type", type: "varchar", nullable: true })
1913
1970
  ], Question.prototype, "type", 2);
1914
1971
  __decorateClass([
1915
- (0, import_typeorm13.Column)({ name: "options", type: "jsonb", nullable: true })
1972
+ (0, import_typeorm14.Column)({ name: "options", type: "jsonb", nullable: true })
1916
1973
  ], Question.prototype, "options", 2);
1917
1974
  __decorateClass([
1918
- (0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: false })
1975
+ (0, import_typeorm14.Column)({ name: "is_active", type: "boolean", default: false })
1919
1976
  ], Question.prototype, "isActive", 2);
1920
1977
  Question = __decorateClass([
1921
- (0, import_typeorm13.Entity)("questions")
1978
+ (0, import_typeorm14.Entity)("questions")
1922
1979
  ], Question);
1923
1980
 
1924
1981
  // src/entities/job-role.entity.ts
1925
- var import_typeorm14 = require("typeorm");
1982
+ var import_typeorm15 = require("typeorm");
1926
1983
  var JobRoles = class extends BaseEntity {
1927
1984
  };
1928
1985
  __decorateClass([
1929
- (0, import_typeorm14.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1986
+ (0, import_typeorm15.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1930
1987
  ], JobRoles.prototype, "slug", 2);
1931
1988
  __decorateClass([
1932
- (0, import_typeorm14.Column)({ name: "name", type: "varchar", nullable: true })
1989
+ (0, import_typeorm15.Column)({ name: "name", type: "varchar", nullable: true })
1933
1990
  ], JobRoles.prototype, "name", 2);
1934
1991
  __decorateClass([
1935
- (0, import_typeorm14.Column)({ name: "is_active", type: "boolean", default: true })
1992
+ (0, import_typeorm15.Column)({ name: "is_active", type: "boolean", default: true })
1936
1993
  ], JobRoles.prototype, "isActive", 2);
1937
1994
  JobRoles = __decorateClass([
1938
- (0, import_typeorm14.Entity)("job_roles")
1995
+ (0, import_typeorm15.Entity)("job_roles")
1939
1996
  ], JobRoles);
1940
1997
 
1941
1998
  // src/entities/plan.entity.ts
1942
- var import_typeorm16 = require("typeorm");
1999
+ var import_typeorm17 = require("typeorm");
1943
2000
 
1944
2001
  // src/entities/feature.entity.ts
1945
- var import_typeorm15 = require("typeorm");
2002
+ var import_typeorm16 = require("typeorm");
1946
2003
  var Feature = class extends BaseEntity {
1947
2004
  };
1948
2005
  __decorateClass([
1949
- (0, import_typeorm15.Column)({ name: "name", type: "varchar", unique: true })
2006
+ (0, import_typeorm16.Column)({ name: "name", type: "varchar", unique: true })
1950
2007
  ], Feature.prototype, "name", 2);
1951
2008
  __decorateClass([
1952
- (0, import_typeorm15.ManyToMany)(() => Plan, (plan) => plan.features)
2009
+ (0, import_typeorm16.ManyToMany)(() => Plan, (plan) => plan.features)
1953
2010
  ], Feature.prototype, "plans", 2);
1954
2011
  Feature = __decorateClass([
1955
- (0, import_typeorm15.Entity)("features")
2012
+ (0, import_typeorm16.Entity)("features")
1956
2013
  ], Feature);
1957
2014
 
1958
2015
  // src/entities/plan.entity.ts
1959
2016
  var Plan = class extends BaseEntity {
1960
2017
  };
1961
2018
  __decorateClass([
1962
- (0, import_typeorm16.Column)({ name: "name", type: "varchar", unique: true })
2019
+ (0, import_typeorm17.Column)({ name: "name", type: "varchar", unique: true })
1963
2020
  ], Plan.prototype, "name", 2);
1964
2021
  __decorateClass([
1965
- (0, import_typeorm16.Column)({ name: "description", type: "varchar", nullable: true })
2022
+ (0, import_typeorm17.Column)({ name: "description", type: "varchar", nullable: true })
1966
2023
  ], Plan.prototype, "description", 2);
1967
2024
  __decorateClass([
1968
- (0, import_typeorm16.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2025
+ (0, import_typeorm17.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
1969
2026
  ], Plan.prototype, "price", 2);
1970
2027
  __decorateClass([
1971
- (0, import_typeorm16.Column)({ name: "billing_period", type: "varchar" })
2028
+ (0, import_typeorm17.Column)({ name: "billing_period", type: "varchar" })
1972
2029
  ], Plan.prototype, "billingPeriod", 2);
1973
2030
  __decorateClass([
1974
- (0, import_typeorm16.Column)({ name: "is_current", type: "boolean", default: false })
2031
+ (0, import_typeorm17.Column)({ name: "is_current", type: "boolean", default: false })
1975
2032
  ], Plan.prototype, "isCurrent", 2);
1976
2033
  __decorateClass([
1977
- (0, import_typeorm16.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
1978
- (0, import_typeorm16.JoinTable)()
2034
+ (0, import_typeorm17.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2035
+ (0, import_typeorm17.JoinTable)()
1979
2036
  ], Plan.prototype, "features", 2);
1980
2037
  Plan = __decorateClass([
1981
- (0, import_typeorm16.Entity)("plans")
2038
+ (0, import_typeorm17.Entity)("plans")
1982
2039
  ], Plan);
1983
2040
  // Annotate the CommonJS export names for ESM import in node:
1984
2041
  0 && (module.exports = {
@@ -2047,6 +2104,8 @@ Plan = __decorateClass([
2047
2104
  Question,
2048
2105
  QuestionFor,
2049
2106
  RESUME_PARSER_PATTERN,
2107
+ Rating,
2108
+ RatingTypeEnum,
2050
2109
  RefreshDto,
2051
2110
  RefreshToken,
2052
2111
  ResetPasswordDto,
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 Entity11,
493
- Column as Column12,
494
- ManyToOne as ManyToOne9,
495
- JoinColumn as JoinColumn9,
496
- Index as Index7
492
+ Entity as Entity12,
493
+ Column as Column13,
494
+ ManyToOne as ManyToOne10,
495
+ JoinColumn as JoinColumn10,
496
+ Index as Index8
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 Entity10, Column as Column11, OneToMany as OneToMany5, OneToOne } from "typeorm";
544
+ import { Entity as Entity11, Column as Column12, OneToMany as OneToMany5, OneToOne } from "typeorm";
545
545
 
546
546
  // src/entities/refresh-token.entity.ts
547
547
  import {
@@ -1076,6 +1076,48 @@ SystemPreference = __decorateClass([
1076
1076
  Entity9("system_preferences")
1077
1077
  ], SystemPreference);
1078
1078
 
1079
+ // src/entities/rating.entity.ts
1080
+ import { Entity as Entity10, Column as Column11, ManyToOne as ManyToOne9, JoinColumn as JoinColumn9, Index as Index7 } from "typeorm";
1081
+ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
1082
+ RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
1083
+ RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
1084
+ return RatingTypeEnum2;
1085
+ })(RatingTypeEnum || {});
1086
+ var Rating = class extends BaseEntity {
1087
+ };
1088
+ __decorateClass([
1089
+ Column11({ name: "reviewer_id", type: "integer" }),
1090
+ Index7()
1091
+ ], Rating.prototype, "reviewer_id", 2);
1092
+ __decorateClass([
1093
+ ManyToOne9(() => User, { onDelete: "CASCADE" }),
1094
+ JoinColumn9({ name: "reviewer_id" })
1095
+ ], Rating.prototype, "reviewer", 2);
1096
+ __decorateClass([
1097
+ Column11({ name: "reviewee_id", type: "integer" }),
1098
+ Index7()
1099
+ ], Rating.prototype, "reviewee_id", 2);
1100
+ __decorateClass([
1101
+ ManyToOne9(() => User, { onDelete: "CASCADE" }),
1102
+ JoinColumn9({ name: "reviewee_id" })
1103
+ ], Rating.prototype, "reviewee", 2);
1104
+ __decorateClass([
1105
+ Column11({
1106
+ type: "enum",
1107
+ enum: RatingTypeEnum,
1108
+ nullable: true
1109
+ })
1110
+ ], Rating.prototype, "ratingType", 2);
1111
+ __decorateClass([
1112
+ Column11({ type: "integer", nullable: true })
1113
+ ], Rating.prototype, "rating", 2);
1114
+ __decorateClass([
1115
+ Column11({ type: "text", nullable: true })
1116
+ ], Rating.prototype, "review", 2);
1117
+ Rating = __decorateClass([
1118
+ Entity10("ratings")
1119
+ ], Rating);
1120
+
1079
1121
  // src/entities/user.entity.ts
1080
1122
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
1081
1123
  AccountType2["ADMIN"] = "ADMIN";
@@ -1100,40 +1142,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
1100
1142
  var User = class extends BaseEntity {
1101
1143
  };
1102
1144
  __decorateClass([
1103
- Column11({ name: "unique_id", type: "varchar", unique: true })
1145
+ Column12({ name: "unique_id", type: "varchar", unique: true })
1104
1146
  ], User.prototype, "uniqueId", 2);
1105
1147
  __decorateClass([
1106
- Column11({ name: "username", type: "varchar", unique: true, nullable: true })
1148
+ Column12({ name: "username", type: "varchar", unique: true, nullable: true })
1107
1149
  ], User.prototype, "username", 2);
1108
1150
  __decorateClass([
1109
- Column11({ name: "first_name", type: "varchar", length: 100, nullable: true })
1151
+ Column12({ name: "first_name", type: "varchar", length: 100, nullable: true })
1110
1152
  ], User.prototype, "firstName", 2);
1111
1153
  __decorateClass([
1112
- Column11({ name: "last_name", type: "varchar", length: 100, nullable: true })
1154
+ Column12({ name: "last_name", type: "varchar", length: 100, nullable: true })
1113
1155
  ], User.prototype, "lastName", 2);
1114
1156
  __decorateClass([
1115
- Column11({ name: "date_of_birth", type: "date", nullable: true })
1157
+ Column12({ name: "date_of_birth", type: "date", nullable: true })
1116
1158
  ], User.prototype, "dateOfBirth", 2);
1117
1159
  __decorateClass([
1118
- Column11({ name: "gender", type: "varchar", length: 10, nullable: true })
1160
+ Column12({ name: "gender", type: "varchar", length: 10, nullable: true })
1119
1161
  ], User.prototype, "gender", 2);
1120
1162
  __decorateClass([
1121
- Column11({ name: "profile_picture_url", type: "text", nullable: true })
1163
+ Column12({ name: "profile_picture_url", type: "text", nullable: true })
1122
1164
  ], User.prototype, "profilePictureUrl", 2);
1123
1165
  __decorateClass([
1124
- Column11({ name: "email", type: "varchar", unique: true })
1166
+ Column12({ name: "email", type: "varchar", unique: true })
1125
1167
  ], User.prototype, "email", 2);
1126
1168
  __decorateClass([
1127
- Column11({ name: "mobile_code", type: "varchar", nullable: true })
1169
+ Column12({ name: "mobile_code", type: "varchar", nullable: true })
1128
1170
  ], User.prototype, "mobileCode", 2);
1129
1171
  __decorateClass([
1130
- Column11({ name: "mobile", type: "varchar", unique: true, nullable: true })
1172
+ Column12({ name: "mobile", type: "varchar", unique: true, nullable: true })
1131
1173
  ], User.prototype, "mobile", 2);
1132
1174
  __decorateClass([
1133
- Column11({ name: "password", type: "varchar" })
1175
+ Column12({ name: "password", type: "varchar" })
1134
1176
  ], User.prototype, "password", 2);
1135
1177
  __decorateClass([
1136
- Column11({
1178
+ Column12({
1137
1179
  name: "account_type",
1138
1180
  type: "enum",
1139
1181
  enum: AccountType,
@@ -1141,7 +1183,7 @@ __decorateClass([
1141
1183
  })
1142
1184
  ], User.prototype, "accountType", 2);
1143
1185
  __decorateClass([
1144
- Column11({
1186
+ Column12({
1145
1187
  name: "account_status",
1146
1188
  type: "enum",
1147
1189
  enum: AccountStatus,
@@ -1149,32 +1191,36 @@ __decorateClass([
1149
1191
  })
1150
1192
  ], User.prototype, "accountStatus", 2);
1151
1193
  __decorateClass([
1152
- Column11({ name: "is_email_verified", type: "boolean", default: false })
1194
+ Column12({ name: "is_email_verified", type: "boolean", default: false })
1153
1195
  ], User.prototype, "isEmailVerified", 2);
1154
1196
  __decorateClass([
1155
- Column11({ name: "is_mobile_verified", type: "boolean", default: false })
1197
+ Column12({ name: "is_mobile_verified", type: "boolean", default: false })
1156
1198
  ], User.prototype, "isMobileVerified", 2);
1157
1199
  __decorateClass([
1158
- Column11({
1200
+ Column12({
1159
1201
  name: "last_login_at",
1160
1202
  type: "timestamp with time zone",
1161
1203
  nullable: true
1162
1204
  })
1163
1205
  ], User.prototype, "lastLoginAt", 2);
1164
1206
  __decorateClass([
1165
- Column11({ name: "last_login_ip", type: "varchar", nullable: true })
1207
+ Column12({ name: "last_login_ip", type: "varchar", nullable: true })
1166
1208
  ], User.prototype, "lastLoginIp", 2);
1167
1209
  __decorateClass([
1168
- Column11({ name: "reset_token", type: "varchar", nullable: true })
1210
+ Column12({ name: "reset_token", type: "varchar", nullable: true })
1169
1211
  ], User.prototype, "resetToken", 2);
1170
1212
  __decorateClass([
1171
- Column11({ name: "reset_token_expire_at", type: "timestamp with time zone", nullable: true })
1213
+ Column12({
1214
+ name: "reset_token_expire_at",
1215
+ type: "timestamp with time zone",
1216
+ nullable: true
1217
+ })
1172
1218
  ], User.prototype, "resetTokenExpireAt", 2);
1173
1219
  __decorateClass([
1174
1220
  OneToMany5(() => RefreshToken, (token) => token.user)
1175
1221
  ], User.prototype, "refreshTokens", 2);
1176
1222
  __decorateClass([
1177
- Column11({
1223
+ Column12({
1178
1224
  name: "provider",
1179
1225
  type: "enum",
1180
1226
  enum: Provider,
@@ -1183,16 +1229,16 @@ __decorateClass([
1183
1229
  })
1184
1230
  ], User.prototype, "provider", 2);
1185
1231
  __decorateClass([
1186
- Column11({ name: "provider_token", type: "varchar", nullable: true })
1232
+ Column12({ name: "provider_token", type: "varchar", nullable: true })
1187
1233
  ], User.prototype, "providerToken", 2);
1188
1234
  __decorateClass([
1189
- Column11({ name: "linkedin_id", type: "varchar", nullable: true })
1235
+ Column12({ name: "linkedin_id", type: "varchar", nullable: true })
1190
1236
  ], User.prototype, "linkedInId", 2);
1191
1237
  __decorateClass([
1192
- Column11({ name: "google_id", type: "varchar", nullable: true })
1238
+ Column12({ name: "google_id", type: "varchar", nullable: true })
1193
1239
  ], User.prototype, "googleId", 2);
1194
1240
  __decorateClass([
1195
- Column11({ name: "gitlabs_id", type: "varchar", nullable: true })
1241
+ Column12({ name: "gitlabs_id", type: "varchar", nullable: true })
1196
1242
  ], User.prototype, "gitLabsId", 2);
1197
1243
  __decorateClass([
1198
1244
  OneToMany5(() => Otp, (otp) => otp.user)
@@ -1216,10 +1262,19 @@ __decorateClass([
1216
1262
  OneToMany5(() => BankDetail, (bankDetail) => bankDetail.user)
1217
1263
  ], User.prototype, "bankDetail", 2);
1218
1264
  __decorateClass([
1219
- OneToMany5(() => SystemPreference, (systemPreference) => systemPreference.user)
1265
+ OneToMany5(
1266
+ () => SystemPreference,
1267
+ (systemPreference) => systemPreference.user
1268
+ )
1220
1269
  ], User.prototype, "systemPreference", 2);
1270
+ __decorateClass([
1271
+ OneToMany5(() => Rating, (rating) => rating.reviewer)
1272
+ ], User.prototype, "givenRatings", 2);
1273
+ __decorateClass([
1274
+ OneToMany5(() => Rating, (rating) => rating.reviewee)
1275
+ ], User.prototype, "receivedRatings", 2);
1221
1276
  User = __decorateClass([
1222
- Entity10("users")
1277
+ Entity11("users")
1223
1278
  ], User);
1224
1279
 
1225
1280
  // src/entities/company-profile.entity.ts
@@ -1246,42 +1301,42 @@ var CompanyProfile = class extends BaseEntity {
1246
1301
  };
1247
1302
  // individual index to find company profile by user
1248
1303
  __decorateClass([
1249
- Column12({ name: "user_id", type: "integer", nullable: true }),
1250
- Index7()
1304
+ Column13({ name: "user_id", type: "integer", nullable: true }),
1305
+ Index8()
1251
1306
  ], CompanyProfile.prototype, "userId", 2);
1252
1307
  __decorateClass([
1253
- ManyToOne9(() => User, (user) => user.otps),
1254
- JoinColumn9({ name: "user_id" })
1308
+ ManyToOne10(() => User, (user) => user.otps),
1309
+ JoinColumn10({ name: "user_id" })
1255
1310
  ], CompanyProfile.prototype, "user", 2);
1256
1311
  __decorateClass([
1257
- Column12({ name: "company_name", type: "varchar", nullable: true })
1312
+ Column13({ name: "company_name", type: "varchar", nullable: true })
1258
1313
  ], CompanyProfile.prototype, "companyName", 2);
1259
1314
  __decorateClass([
1260
- Column12({ name: "bio", type: "varchar", nullable: true })
1315
+ Column13({ name: "bio", type: "varchar", nullable: true })
1261
1316
  ], CompanyProfile.prototype, "bio", 2);
1262
1317
  __decorateClass([
1263
- Column12({ name: "website", type: "varchar", nullable: true })
1318
+ Column13({ name: "website", type: "varchar", nullable: true })
1264
1319
  ], CompanyProfile.prototype, "webSite", 2);
1265
1320
  __decorateClass([
1266
- Column12({ name: "about_company", type: "varchar", nullable: true })
1321
+ Column13({ name: "about_company", type: "varchar", nullable: true })
1267
1322
  ], CompanyProfile.prototype, "aboutCompany", 2);
1268
1323
  __decorateClass([
1269
- Column12({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1324
+ Column13({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1270
1325
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
1271
1326
  __decorateClass([
1272
- Column12({ name: "company_address", type: "varchar", nullable: true })
1327
+ Column13({ name: "company_address", type: "varchar", nullable: true })
1273
1328
  ], CompanyProfile.prototype, "companyAddress", 2);
1274
1329
  __decorateClass([
1275
- Column12({ name: "phone_number", type: "varchar", nullable: true })
1330
+ Column13({ name: "phone_number", type: "varchar", nullable: true })
1276
1331
  ], CompanyProfile.prototype, "phoneNumber", 2);
1277
1332
  __decorateClass([
1278
- Column12({ name: "skills", type: "text", nullable: true })
1333
+ Column13({ name: "skills", type: "text", nullable: true })
1279
1334
  ], CompanyProfile.prototype, "skills", 2);
1280
1335
  __decorateClass([
1281
- Column12({ name: "required_freelancer", type: "varchar", nullable: true })
1336
+ Column13({ name: "required_freelancer", type: "varchar", nullable: true })
1282
1337
  ], CompanyProfile.prototype, "requiredFreelancer", 2);
1283
1338
  __decorateClass([
1284
- Column12({
1339
+ Column13({
1285
1340
  name: "kind_of_hiring",
1286
1341
  type: "enum",
1287
1342
  enum: KindOfHire,
@@ -1289,7 +1344,7 @@ __decorateClass([
1289
1344
  })
1290
1345
  ], CompanyProfile.prototype, "kindOfHiring", 2);
1291
1346
  __decorateClass([
1292
- Column12({
1347
+ Column13({
1293
1348
  name: "mode_of_hire",
1294
1349
  type: "enum",
1295
1350
  enum: ModeOfHire,
@@ -1297,7 +1352,7 @@ __decorateClass([
1297
1352
  })
1298
1353
  ], CompanyProfile.prototype, "modeOfHire", 2);
1299
1354
  __decorateClass([
1300
- Column12({
1355
+ Column13({
1301
1356
  name: "found_us_on",
1302
1357
  type: "enum",
1303
1358
  enum: FromUsOn,
@@ -1305,7 +1360,7 @@ __decorateClass([
1305
1360
  })
1306
1361
  ], CompanyProfile.prototype, "foundUsOn", 2);
1307
1362
  CompanyProfile = __decorateClass([
1308
- Entity11("company_profiles")
1363
+ Entity12("company_profiles")
1309
1364
  ], CompanyProfile);
1310
1365
 
1311
1366
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -1923,7 +1978,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
1923
1978
  };
1924
1979
 
1925
1980
  // src/entities/question.entity.ts
1926
- import { Entity as Entity12, Column as Column13 } from "typeorm";
1981
+ import { Entity as Entity13, Column as Column14 } from "typeorm";
1927
1982
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1928
1983
  QuestionFor2["CLIENT"] = "CLIENT";
1929
1984
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -1932,16 +1987,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1932
1987
  var Question = class extends BaseEntity {
1933
1988
  };
1934
1989
  __decorateClass([
1935
- Column13({ name: "question", type: "varchar" })
1990
+ Column14({ name: "question", type: "varchar" })
1936
1991
  ], Question.prototype, "question", 2);
1937
1992
  __decorateClass([
1938
- Column13({ name: "hint", type: "varchar", nullable: true })
1993
+ Column14({ name: "hint", type: "varchar", nullable: true })
1939
1994
  ], Question.prototype, "hint", 2);
1940
1995
  __decorateClass([
1941
- Column13({ name: "slug", type: "varchar", nullable: true, unique: true })
1996
+ Column14({ name: "slug", type: "varchar", nullable: true, unique: true })
1942
1997
  ], Question.prototype, "slug", 2);
1943
1998
  __decorateClass([
1944
- Column13({
1999
+ Column14({
1945
2000
  name: "question_for",
1946
2001
  type: "enum",
1947
2002
  enum: QuestionFor,
@@ -1949,76 +2004,76 @@ __decorateClass([
1949
2004
  })
1950
2005
  ], Question.prototype, "questionFor", 2);
1951
2006
  __decorateClass([
1952
- Column13({ name: "type", type: "varchar", nullable: true })
2007
+ Column14({ name: "type", type: "varchar", nullable: true })
1953
2008
  ], Question.prototype, "type", 2);
1954
2009
  __decorateClass([
1955
- Column13({ name: "options", type: "jsonb", nullable: true })
2010
+ Column14({ name: "options", type: "jsonb", nullable: true })
1956
2011
  ], Question.prototype, "options", 2);
1957
2012
  __decorateClass([
1958
- Column13({ name: "is_active", type: "boolean", default: false })
2013
+ Column14({ name: "is_active", type: "boolean", default: false })
1959
2014
  ], Question.prototype, "isActive", 2);
1960
2015
  Question = __decorateClass([
1961
- Entity12("questions")
2016
+ Entity13("questions")
1962
2017
  ], Question);
1963
2018
 
1964
2019
  // src/entities/job-role.entity.ts
1965
- import { Entity as Entity13, Column as Column14 } from "typeorm";
2020
+ import { Entity as Entity14, Column as Column15 } from "typeorm";
1966
2021
  var JobRoles = class extends BaseEntity {
1967
2022
  };
1968
2023
  __decorateClass([
1969
- Column14({ name: "slug", type: "varchar", nullable: true, unique: true })
2024
+ Column15({ name: "slug", type: "varchar", nullable: true, unique: true })
1970
2025
  ], JobRoles.prototype, "slug", 2);
1971
2026
  __decorateClass([
1972
- Column14({ name: "name", type: "varchar", nullable: true })
2027
+ Column15({ name: "name", type: "varchar", nullable: true })
1973
2028
  ], JobRoles.prototype, "name", 2);
1974
2029
  __decorateClass([
1975
- Column14({ name: "is_active", type: "boolean", default: true })
2030
+ Column15({ name: "is_active", type: "boolean", default: true })
1976
2031
  ], JobRoles.prototype, "isActive", 2);
1977
2032
  JobRoles = __decorateClass([
1978
- Entity13("job_roles")
2033
+ Entity14("job_roles")
1979
2034
  ], JobRoles);
1980
2035
 
1981
2036
  // src/entities/plan.entity.ts
1982
- import { Entity as Entity15, Column as Column16, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
2037
+ import { Entity as Entity16, Column as Column17, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
1983
2038
 
1984
2039
  // src/entities/feature.entity.ts
1985
- import { Entity as Entity14, Column as Column15, ManyToMany } from "typeorm";
2040
+ import { Entity as Entity15, Column as Column16, ManyToMany } from "typeorm";
1986
2041
  var Feature = class extends BaseEntity {
1987
2042
  };
1988
2043
  __decorateClass([
1989
- Column15({ name: "name", type: "varchar", unique: true })
2044
+ Column16({ name: "name", type: "varchar", unique: true })
1990
2045
  ], Feature.prototype, "name", 2);
1991
2046
  __decorateClass([
1992
2047
  ManyToMany(() => Plan, (plan) => plan.features)
1993
2048
  ], Feature.prototype, "plans", 2);
1994
2049
  Feature = __decorateClass([
1995
- Entity14("features")
2050
+ Entity15("features")
1996
2051
  ], Feature);
1997
2052
 
1998
2053
  // src/entities/plan.entity.ts
1999
2054
  var Plan = class extends BaseEntity {
2000
2055
  };
2001
2056
  __decorateClass([
2002
- Column16({ name: "name", type: "varchar", unique: true })
2057
+ Column17({ name: "name", type: "varchar", unique: true })
2003
2058
  ], Plan.prototype, "name", 2);
2004
2059
  __decorateClass([
2005
- Column16({ name: "description", type: "varchar", nullable: true })
2060
+ Column17({ name: "description", type: "varchar", nullable: true })
2006
2061
  ], Plan.prototype, "description", 2);
2007
2062
  __decorateClass([
2008
- Column16({ name: "price", type: "decimal", precision: 10, scale: 2 })
2063
+ Column17({ name: "price", type: "decimal", precision: 10, scale: 2 })
2009
2064
  ], Plan.prototype, "price", 2);
2010
2065
  __decorateClass([
2011
- Column16({ name: "billing_period", type: "varchar" })
2066
+ Column17({ name: "billing_period", type: "varchar" })
2012
2067
  ], Plan.prototype, "billingPeriod", 2);
2013
2068
  __decorateClass([
2014
- Column16({ name: "is_current", type: "boolean", default: false })
2069
+ Column17({ name: "is_current", type: "boolean", default: false })
2015
2070
  ], Plan.prototype, "isCurrent", 2);
2016
2071
  __decorateClass([
2017
2072
  ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
2018
2073
  JoinTable()
2019
2074
  ], Plan.prototype, "features", 2);
2020
2075
  Plan = __decorateClass([
2021
- Entity15("plans")
2076
+ Entity16("plans")
2022
2077
  ], Plan);
2023
2078
  export {
2024
2079
  AUTHENTICATION_PATTERN,
@@ -2086,6 +2141,8 @@ export {
2086
2141
  Question,
2087
2142
  QuestionFor,
2088
2143
  RESUME_PARSER_PATTERN,
2144
+ Rating,
2145
+ RatingTypeEnum,
2089
2146
  RefreshDto,
2090
2147
  RefreshToken,
2091
2148
  ResetPasswordDto,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.111",
3
+ "version": "1.0.113",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",