@experts_hub/shared 1.0.111 → 1.0.112

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.
@@ -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 "./review.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 {
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 {
package/dist/index.js CHANGED
@@ -542,7 +542,7 @@ var CLIENT_PROFILE_PATTERN = {
542
542
  var import_class_validator17 = require("class-validator");
543
543
 
544
544
  // src/entities/company-profile.entity.ts
545
- var import_typeorm12 = require("typeorm");
545
+ var import_typeorm13 = require("typeorm");
546
546
 
547
547
  // src/entities/base.entity.ts
548
548
  var import_typeorm = require("typeorm");
@@ -582,7 +582,7 @@ __decorateClass([
582
582
  ], BaseEntity.prototype, "deletedAt", 2);
583
583
 
584
584
  // src/entities/user.entity.ts
585
- var import_typeorm11 = require("typeorm");
585
+ var import_typeorm12 = require("typeorm");
586
586
 
587
587
  // src/entities/refresh-token.entity.ts
588
588
  var import_typeorm2 = require("typeorm");
@@ -1069,6 +1069,48 @@ SystemPreference = __decorateClass([
1069
1069
  (0, import_typeorm10.Entity)("system_preferences")
1070
1070
  ], SystemPreference);
1071
1071
 
1072
+ // src/entities/review.entity.ts
1073
+ var import_typeorm11 = require("typeorm");
1074
+ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
1075
+ RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
1076
+ RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
1077
+ return RatingTypeEnum2;
1078
+ })(RatingTypeEnum || {});
1079
+ var Rating = class extends BaseEntity {
1080
+ };
1081
+ __decorateClass([
1082
+ (0, import_typeorm11.Column)({ name: "reviewer_id", type: "integer" }),
1083
+ (0, import_typeorm11.Index)()
1084
+ ], Rating.prototype, "reviewer_id", 2);
1085
+ __decorateClass([
1086
+ (0, import_typeorm11.ManyToOne)(() => User, { onDelete: "CASCADE" }),
1087
+ (0, import_typeorm11.JoinColumn)({ name: "reviewer_id" })
1088
+ ], Rating.prototype, "reviewer", 2);
1089
+ __decorateClass([
1090
+ (0, import_typeorm11.Column)({ name: "reviewee_id", type: "integer" }),
1091
+ (0, import_typeorm11.Index)()
1092
+ ], Rating.prototype, "reviewee_id", 2);
1093
+ __decorateClass([
1094
+ (0, import_typeorm11.ManyToOne)(() => User, { onDelete: "CASCADE" }),
1095
+ (0, import_typeorm11.JoinColumn)({ name: "reviewee_id" })
1096
+ ], Rating.prototype, "reviewee", 2);
1097
+ __decorateClass([
1098
+ (0, import_typeorm11.Column)({
1099
+ type: "enum",
1100
+ enum: RatingTypeEnum,
1101
+ nullable: true
1102
+ })
1103
+ ], Rating.prototype, "ratingType", 2);
1104
+ __decorateClass([
1105
+ (0, import_typeorm11.Column)({ type: "integer", nullable: true })
1106
+ ], Rating.prototype, "rating", 2);
1107
+ __decorateClass([
1108
+ (0, import_typeorm11.Column)({ type: "text", nullable: true })
1109
+ ], Rating.prototype, "review", 2);
1110
+ Rating = __decorateClass([
1111
+ (0, import_typeorm11.Entity)("ratings")
1112
+ ], Rating);
1113
+
1072
1114
  // src/entities/user.entity.ts
1073
1115
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
1074
1116
  AccountType2["ADMIN"] = "ADMIN";
@@ -1093,40 +1135,40 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
1093
1135
  var User = class extends BaseEntity {
1094
1136
  };
1095
1137
  __decorateClass([
1096
- (0, import_typeorm11.Column)({ name: "unique_id", type: "varchar", unique: true })
1138
+ (0, import_typeorm12.Column)({ name: "unique_id", type: "varchar", unique: true })
1097
1139
  ], User.prototype, "uniqueId", 2);
1098
1140
  __decorateClass([
1099
- (0, import_typeorm11.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1141
+ (0, import_typeorm12.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1100
1142
  ], User.prototype, "username", 2);
1101
1143
  __decorateClass([
1102
- (0, import_typeorm11.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1144
+ (0, import_typeorm12.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1103
1145
  ], User.prototype, "firstName", 2);
1104
1146
  __decorateClass([
1105
- (0, import_typeorm11.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1147
+ (0, import_typeorm12.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1106
1148
  ], User.prototype, "lastName", 2);
1107
1149
  __decorateClass([
1108
- (0, import_typeorm11.Column)({ name: "date_of_birth", type: "date", nullable: true })
1150
+ (0, import_typeorm12.Column)({ name: "date_of_birth", type: "date", nullable: true })
1109
1151
  ], User.prototype, "dateOfBirth", 2);
1110
1152
  __decorateClass([
1111
- (0, import_typeorm11.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1153
+ (0, import_typeorm12.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1112
1154
  ], User.prototype, "gender", 2);
1113
1155
  __decorateClass([
1114
- (0, import_typeorm11.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1156
+ (0, import_typeorm12.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1115
1157
  ], User.prototype, "profilePictureUrl", 2);
1116
1158
  __decorateClass([
1117
- (0, import_typeorm11.Column)({ name: "email", type: "varchar", unique: true })
1159
+ (0, import_typeorm12.Column)({ name: "email", type: "varchar", unique: true })
1118
1160
  ], User.prototype, "email", 2);
1119
1161
  __decorateClass([
1120
- (0, import_typeorm11.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1162
+ (0, import_typeorm12.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1121
1163
  ], User.prototype, "mobileCode", 2);
1122
1164
  __decorateClass([
1123
- (0, import_typeorm11.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1165
+ (0, import_typeorm12.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1124
1166
  ], User.prototype, "mobile", 2);
1125
1167
  __decorateClass([
1126
- (0, import_typeorm11.Column)({ name: "password", type: "varchar" })
1168
+ (0, import_typeorm12.Column)({ name: "password", type: "varchar" })
1127
1169
  ], User.prototype, "password", 2);
1128
1170
  __decorateClass([
1129
- (0, import_typeorm11.Column)({
1171
+ (0, import_typeorm12.Column)({
1130
1172
  name: "account_type",
1131
1173
  type: "enum",
1132
1174
  enum: AccountType,
@@ -1134,7 +1176,7 @@ __decorateClass([
1134
1176
  })
1135
1177
  ], User.prototype, "accountType", 2);
1136
1178
  __decorateClass([
1137
- (0, import_typeorm11.Column)({
1179
+ (0, import_typeorm12.Column)({
1138
1180
  name: "account_status",
1139
1181
  type: "enum",
1140
1182
  enum: AccountStatus,
@@ -1142,32 +1184,36 @@ __decorateClass([
1142
1184
  })
1143
1185
  ], User.prototype, "accountStatus", 2);
1144
1186
  __decorateClass([
1145
- (0, import_typeorm11.Column)({ name: "is_email_verified", type: "boolean", default: false })
1187
+ (0, import_typeorm12.Column)({ name: "is_email_verified", type: "boolean", default: false })
1146
1188
  ], User.prototype, "isEmailVerified", 2);
1147
1189
  __decorateClass([
1148
- (0, import_typeorm11.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1190
+ (0, import_typeorm12.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1149
1191
  ], User.prototype, "isMobileVerified", 2);
1150
1192
  __decorateClass([
1151
- (0, import_typeorm11.Column)({
1193
+ (0, import_typeorm12.Column)({
1152
1194
  name: "last_login_at",
1153
1195
  type: "timestamp with time zone",
1154
1196
  nullable: true
1155
1197
  })
1156
1198
  ], User.prototype, "lastLoginAt", 2);
1157
1199
  __decorateClass([
1158
- (0, import_typeorm11.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1200
+ (0, import_typeorm12.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1159
1201
  ], User.prototype, "lastLoginIp", 2);
1160
1202
  __decorateClass([
1161
- (0, import_typeorm11.Column)({ name: "reset_token", type: "varchar", nullable: true })
1203
+ (0, import_typeorm12.Column)({ name: "reset_token", type: "varchar", nullable: true })
1162
1204
  ], User.prototype, "resetToken", 2);
1163
1205
  __decorateClass([
1164
- (0, import_typeorm11.Column)({ name: "reset_token_expire_at", type: "timestamp with time zone", nullable: true })
1206
+ (0, import_typeorm12.Column)({
1207
+ name: "reset_token_expire_at",
1208
+ type: "timestamp with time zone",
1209
+ nullable: true
1210
+ })
1165
1211
  ], User.prototype, "resetTokenExpireAt", 2);
1166
1212
  __decorateClass([
1167
- (0, import_typeorm11.OneToMany)(() => RefreshToken, (token) => token.user)
1213
+ (0, import_typeorm12.OneToMany)(() => RefreshToken, (token) => token.user)
1168
1214
  ], User.prototype, "refreshTokens", 2);
1169
1215
  __decorateClass([
1170
- (0, import_typeorm11.Column)({
1216
+ (0, import_typeorm12.Column)({
1171
1217
  name: "provider",
1172
1218
  type: "enum",
1173
1219
  enum: Provider,
@@ -1176,43 +1222,52 @@ __decorateClass([
1176
1222
  })
1177
1223
  ], User.prototype, "provider", 2);
1178
1224
  __decorateClass([
1179
- (0, import_typeorm11.Column)({ name: "provider_token", type: "varchar", nullable: true })
1225
+ (0, import_typeorm12.Column)({ name: "provider_token", type: "varchar", nullable: true })
1180
1226
  ], User.prototype, "providerToken", 2);
1181
1227
  __decorateClass([
1182
- (0, import_typeorm11.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1228
+ (0, import_typeorm12.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1183
1229
  ], User.prototype, "linkedInId", 2);
1184
1230
  __decorateClass([
1185
- (0, import_typeorm11.Column)({ name: "google_id", type: "varchar", nullable: true })
1231
+ (0, import_typeorm12.Column)({ name: "google_id", type: "varchar", nullable: true })
1186
1232
  ], User.prototype, "googleId", 2);
1187
1233
  __decorateClass([
1188
- (0, import_typeorm11.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1234
+ (0, import_typeorm12.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1189
1235
  ], User.prototype, "gitLabsId", 2);
1190
1236
  __decorateClass([
1191
- (0, import_typeorm11.OneToMany)(() => Otp, (otp) => otp.user)
1237
+ (0, import_typeorm12.OneToMany)(() => Otp, (otp) => otp.user)
1192
1238
  ], User.prototype, "otps", 2);
1193
1239
  __decorateClass([
1194
- (0, import_typeorm11.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1240
+ (0, import_typeorm12.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1195
1241
  ], User.prototype, "resumeParserLogs", 2);
1196
1242
  __decorateClass([
1197
- (0, import_typeorm11.OneToOne)(
1243
+ (0, import_typeorm12.OneToOne)(
1198
1244
  () => FreelancerProfile,
1199
1245
  (freelancerProfile) => freelancerProfile.user
1200
1246
  )
1201
1247
  ], User.prototype, "freelancerProfile", 2);
1202
1248
  __decorateClass([
1203
- (0, import_typeorm11.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
1249
+ (0, import_typeorm12.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
1204
1250
  ], User.prototype, "companyProfile", 2);
1205
1251
  __decorateClass([
1206
- (0, import_typeorm11.OneToMany)(() => Job, (job) => job.user)
1252
+ (0, import_typeorm12.OneToMany)(() => Job, (job) => job.user)
1207
1253
  ], User.prototype, "jobs", 2);
1208
1254
  __decorateClass([
1209
- (0, import_typeorm11.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1255
+ (0, import_typeorm12.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1210
1256
  ], User.prototype, "bankDetail", 2);
1211
1257
  __decorateClass([
1212
- (0, import_typeorm11.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
1258
+ (0, import_typeorm12.OneToMany)(
1259
+ () => SystemPreference,
1260
+ (systemPreference) => systemPreference.user
1261
+ )
1213
1262
  ], User.prototype, "systemPreference", 2);
1263
+ __decorateClass([
1264
+ (0, import_typeorm12.OneToMany)(() => Rating, (rating) => rating.reviewer)
1265
+ ], User.prototype, "givenRatings", 2);
1266
+ __decorateClass([
1267
+ (0, import_typeorm12.OneToMany)(() => Rating, (rating) => rating.reviewee)
1268
+ ], User.prototype, "receivedRatings", 2);
1214
1269
  User = __decorateClass([
1215
- (0, import_typeorm11.Entity)("users")
1270
+ (0, import_typeorm12.Entity)("users")
1216
1271
  ], User);
1217
1272
 
1218
1273
  // src/entities/company-profile.entity.ts
@@ -1239,42 +1294,42 @@ var CompanyProfile = class extends BaseEntity {
1239
1294
  };
1240
1295
  // individual index to find company profile by user
1241
1296
  __decorateClass([
1242
- (0, import_typeorm12.Column)({ name: "user_id", type: "integer", nullable: true }),
1243
- (0, import_typeorm12.Index)()
1297
+ (0, import_typeorm13.Column)({ name: "user_id", type: "integer", nullable: true }),
1298
+ (0, import_typeorm13.Index)()
1244
1299
  ], CompanyProfile.prototype, "userId", 2);
1245
1300
  __decorateClass([
1246
- (0, import_typeorm12.ManyToOne)(() => User, (user) => user.otps),
1247
- (0, import_typeorm12.JoinColumn)({ name: "user_id" })
1301
+ (0, import_typeorm13.ManyToOne)(() => User, (user) => user.otps),
1302
+ (0, import_typeorm13.JoinColumn)({ name: "user_id" })
1248
1303
  ], CompanyProfile.prototype, "user", 2);
1249
1304
  __decorateClass([
1250
- (0, import_typeorm12.Column)({ name: "company_name", type: "varchar", nullable: true })
1305
+ (0, import_typeorm13.Column)({ name: "company_name", type: "varchar", nullable: true })
1251
1306
  ], CompanyProfile.prototype, "companyName", 2);
1252
1307
  __decorateClass([
1253
- (0, import_typeorm12.Column)({ name: "bio", type: "varchar", nullable: true })
1308
+ (0, import_typeorm13.Column)({ name: "bio", type: "varchar", nullable: true })
1254
1309
  ], CompanyProfile.prototype, "bio", 2);
1255
1310
  __decorateClass([
1256
- (0, import_typeorm12.Column)({ name: "website", type: "varchar", nullable: true })
1311
+ (0, import_typeorm13.Column)({ name: "website", type: "varchar", nullable: true })
1257
1312
  ], CompanyProfile.prototype, "webSite", 2);
1258
1313
  __decorateClass([
1259
- (0, import_typeorm12.Column)({ name: "about_company", type: "varchar", nullable: true })
1314
+ (0, import_typeorm13.Column)({ name: "about_company", type: "varchar", nullable: true })
1260
1315
  ], CompanyProfile.prototype, "aboutCompany", 2);
1261
1316
  __decorateClass([
1262
- (0, import_typeorm12.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1317
+ (0, import_typeorm13.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1263
1318
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
1264
1319
  __decorateClass([
1265
- (0, import_typeorm12.Column)({ name: "company_address", type: "varchar", nullable: true })
1320
+ (0, import_typeorm13.Column)({ name: "company_address", type: "varchar", nullable: true })
1266
1321
  ], CompanyProfile.prototype, "companyAddress", 2);
1267
1322
  __decorateClass([
1268
- (0, import_typeorm12.Column)({ name: "phone_number", type: "varchar", nullable: true })
1323
+ (0, import_typeorm13.Column)({ name: "phone_number", type: "varchar", nullable: true })
1269
1324
  ], CompanyProfile.prototype, "phoneNumber", 2);
1270
1325
  __decorateClass([
1271
- (0, import_typeorm12.Column)({ name: "skills", type: "text", nullable: true })
1326
+ (0, import_typeorm13.Column)({ name: "skills", type: "text", nullable: true })
1272
1327
  ], CompanyProfile.prototype, "skills", 2);
1273
1328
  __decorateClass([
1274
- (0, import_typeorm12.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
1329
+ (0, import_typeorm13.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
1275
1330
  ], CompanyProfile.prototype, "requiredFreelancer", 2);
1276
1331
  __decorateClass([
1277
- (0, import_typeorm12.Column)({
1332
+ (0, import_typeorm13.Column)({
1278
1333
  name: "kind_of_hiring",
1279
1334
  type: "enum",
1280
1335
  enum: KindOfHire,
@@ -1282,7 +1337,7 @@ __decorateClass([
1282
1337
  })
1283
1338
  ], CompanyProfile.prototype, "kindOfHiring", 2);
1284
1339
  __decorateClass([
1285
- (0, import_typeorm12.Column)({
1340
+ (0, import_typeorm13.Column)({
1286
1341
  name: "mode_of_hire",
1287
1342
  type: "enum",
1288
1343
  enum: ModeOfHire,
@@ -1290,7 +1345,7 @@ __decorateClass([
1290
1345
  })
1291
1346
  ], CompanyProfile.prototype, "modeOfHire", 2);
1292
1347
  __decorateClass([
1293
- (0, import_typeorm12.Column)({
1348
+ (0, import_typeorm13.Column)({
1294
1349
  name: "found_us_on",
1295
1350
  type: "enum",
1296
1351
  enum: FromUsOn,
@@ -1298,7 +1353,7 @@ __decorateClass([
1298
1353
  })
1299
1354
  ], CompanyProfile.prototype, "foundUsOn", 2);
1300
1355
  CompanyProfile = __decorateClass([
1301
- (0, import_typeorm12.Entity)("company_profiles")
1356
+ (0, import_typeorm13.Entity)("company_profiles")
1302
1357
  ], CompanyProfile);
1303
1358
 
1304
1359
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -1883,7 +1938,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
1883
1938
  };
1884
1939
 
1885
1940
  // src/entities/question.entity.ts
1886
- var import_typeorm13 = require("typeorm");
1941
+ var import_typeorm14 = require("typeorm");
1887
1942
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1888
1943
  QuestionFor2["CLIENT"] = "CLIENT";
1889
1944
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -1892,16 +1947,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1892
1947
  var Question = class extends BaseEntity {
1893
1948
  };
1894
1949
  __decorateClass([
1895
- (0, import_typeorm13.Column)({ name: "question", type: "varchar" })
1950
+ (0, import_typeorm14.Column)({ name: "question", type: "varchar" })
1896
1951
  ], Question.prototype, "question", 2);
1897
1952
  __decorateClass([
1898
- (0, import_typeorm13.Column)({ name: "hint", type: "varchar", nullable: true })
1953
+ (0, import_typeorm14.Column)({ name: "hint", type: "varchar", nullable: true })
1899
1954
  ], Question.prototype, "hint", 2);
1900
1955
  __decorateClass([
1901
- (0, import_typeorm13.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1956
+ (0, import_typeorm14.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1902
1957
  ], Question.prototype, "slug", 2);
1903
1958
  __decorateClass([
1904
- (0, import_typeorm13.Column)({
1959
+ (0, import_typeorm14.Column)({
1905
1960
  name: "question_for",
1906
1961
  type: "enum",
1907
1962
  enum: QuestionFor,
@@ -1909,76 +1964,76 @@ __decorateClass([
1909
1964
  })
1910
1965
  ], Question.prototype, "questionFor", 2);
1911
1966
  __decorateClass([
1912
- (0, import_typeorm13.Column)({ name: "type", type: "varchar", nullable: true })
1967
+ (0, import_typeorm14.Column)({ name: "type", type: "varchar", nullable: true })
1913
1968
  ], Question.prototype, "type", 2);
1914
1969
  __decorateClass([
1915
- (0, import_typeorm13.Column)({ name: "options", type: "jsonb", nullable: true })
1970
+ (0, import_typeorm14.Column)({ name: "options", type: "jsonb", nullable: true })
1916
1971
  ], Question.prototype, "options", 2);
1917
1972
  __decorateClass([
1918
- (0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: false })
1973
+ (0, import_typeorm14.Column)({ name: "is_active", type: "boolean", default: false })
1919
1974
  ], Question.prototype, "isActive", 2);
1920
1975
  Question = __decorateClass([
1921
- (0, import_typeorm13.Entity)("questions")
1976
+ (0, import_typeorm14.Entity)("questions")
1922
1977
  ], Question);
1923
1978
 
1924
1979
  // src/entities/job-role.entity.ts
1925
- var import_typeorm14 = require("typeorm");
1980
+ var import_typeorm15 = require("typeorm");
1926
1981
  var JobRoles = class extends BaseEntity {
1927
1982
  };
1928
1983
  __decorateClass([
1929
- (0, import_typeorm14.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1984
+ (0, import_typeorm15.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1930
1985
  ], JobRoles.prototype, "slug", 2);
1931
1986
  __decorateClass([
1932
- (0, import_typeorm14.Column)({ name: "name", type: "varchar", nullable: true })
1987
+ (0, import_typeorm15.Column)({ name: "name", type: "varchar", nullable: true })
1933
1988
  ], JobRoles.prototype, "name", 2);
1934
1989
  __decorateClass([
1935
- (0, import_typeorm14.Column)({ name: "is_active", type: "boolean", default: true })
1990
+ (0, import_typeorm15.Column)({ name: "is_active", type: "boolean", default: true })
1936
1991
  ], JobRoles.prototype, "isActive", 2);
1937
1992
  JobRoles = __decorateClass([
1938
- (0, import_typeorm14.Entity)("job_roles")
1993
+ (0, import_typeorm15.Entity)("job_roles")
1939
1994
  ], JobRoles);
1940
1995
 
1941
1996
  // src/entities/plan.entity.ts
1942
- var import_typeorm16 = require("typeorm");
1997
+ var import_typeorm17 = require("typeorm");
1943
1998
 
1944
1999
  // src/entities/feature.entity.ts
1945
- var import_typeorm15 = require("typeorm");
2000
+ var import_typeorm16 = require("typeorm");
1946
2001
  var Feature = class extends BaseEntity {
1947
2002
  };
1948
2003
  __decorateClass([
1949
- (0, import_typeorm15.Column)({ name: "name", type: "varchar", unique: true })
2004
+ (0, import_typeorm16.Column)({ name: "name", type: "varchar", unique: true })
1950
2005
  ], Feature.prototype, "name", 2);
1951
2006
  __decorateClass([
1952
- (0, import_typeorm15.ManyToMany)(() => Plan, (plan) => plan.features)
2007
+ (0, import_typeorm16.ManyToMany)(() => Plan, (plan) => plan.features)
1953
2008
  ], Feature.prototype, "plans", 2);
1954
2009
  Feature = __decorateClass([
1955
- (0, import_typeorm15.Entity)("features")
2010
+ (0, import_typeorm16.Entity)("features")
1956
2011
  ], Feature);
1957
2012
 
1958
2013
  // src/entities/plan.entity.ts
1959
2014
  var Plan = class extends BaseEntity {
1960
2015
  };
1961
2016
  __decorateClass([
1962
- (0, import_typeorm16.Column)({ name: "name", type: "varchar", unique: true })
2017
+ (0, import_typeorm17.Column)({ name: "name", type: "varchar", unique: true })
1963
2018
  ], Plan.prototype, "name", 2);
1964
2019
  __decorateClass([
1965
- (0, import_typeorm16.Column)({ name: "description", type: "varchar", nullable: true })
2020
+ (0, import_typeorm17.Column)({ name: "description", type: "varchar", nullable: true })
1966
2021
  ], Plan.prototype, "description", 2);
1967
2022
  __decorateClass([
1968
- (0, import_typeorm16.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2023
+ (0, import_typeorm17.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
1969
2024
  ], Plan.prototype, "price", 2);
1970
2025
  __decorateClass([
1971
- (0, import_typeorm16.Column)({ name: "billing_period", type: "varchar" })
2026
+ (0, import_typeorm17.Column)({ name: "billing_period", type: "varchar" })
1972
2027
  ], Plan.prototype, "billingPeriod", 2);
1973
2028
  __decorateClass([
1974
- (0, import_typeorm16.Column)({ name: "is_current", type: "boolean", default: false })
2029
+ (0, import_typeorm17.Column)({ name: "is_current", type: "boolean", default: false })
1975
2030
  ], Plan.prototype, "isCurrent", 2);
1976
2031
  __decorateClass([
1977
- (0, import_typeorm16.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
1978
- (0, import_typeorm16.JoinTable)()
2032
+ (0, import_typeorm17.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2033
+ (0, import_typeorm17.JoinTable)()
1979
2034
  ], Plan.prototype, "features", 2);
1980
2035
  Plan = __decorateClass([
1981
- (0, import_typeorm16.Entity)("plans")
2036
+ (0, import_typeorm17.Entity)("plans")
1982
2037
  ], Plan);
1983
2038
  // Annotate the CommonJS export names for ESM import in node:
1984
2039
  0 && (module.exports = {
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/review.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,
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.112",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",