@experts_hub/shared 1.0.273 → 1.0.274

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -225,6 +225,7 @@ __export(index_exports, {
225
225
  UpdateSubAdminDto: () => UpdateSubAdminDto,
226
226
  User: () => User,
227
227
  UserRMQAdapter: () => UserRMQAdapter,
228
+ UserRole: () => UserRole,
228
229
  UserTCPAdapter: () => UserTCPAdapter,
229
230
  VerifyGuestOtpDto: () => VerifyGuestOtpDto,
230
231
  VerifyGuestOtpPurposeEnum: () => VerifyGuestOtpPurposeEnum
@@ -1312,10 +1313,10 @@ var RATING_PATTERN = {
1312
1313
  var import_class_validator38 = require("class-validator");
1313
1314
 
1314
1315
  // src/entities/rating.entity.ts
1315
- var import_typeorm37 = require("typeorm");
1316
+ var import_typeorm41 = require("typeorm");
1316
1317
 
1317
1318
  // src/entities/user.entity.ts
1318
- var import_typeorm36 = require("typeorm");
1319
+ var import_typeorm40 = require("typeorm");
1319
1320
 
1320
1321
  // src/entities/base.entity.ts
1321
1322
  var import_typeorm = require("typeorm");
@@ -3082,6 +3083,141 @@ CompanySkill = __decorateClass([
3082
3083
  (0, import_typeorm35.Entity)("company_skills")
3083
3084
  ], CompanySkill);
3084
3085
 
3086
+ // src/entities/user-role.entity.ts
3087
+ var import_typeorm39 = require("typeorm");
3088
+
3089
+ // src/entities/admin-role.entity.ts
3090
+ var import_typeorm38 = require("typeorm");
3091
+
3092
+ // src/entities/admin-role-permission.entity.ts
3093
+ var import_typeorm37 = require("typeorm");
3094
+
3095
+ // src/entities/admin-permission.entity.ts
3096
+ var import_typeorm36 = require("typeorm");
3097
+ var AdminPermission = class extends BaseEntity {
3098
+ };
3099
+ __decorateClass([
3100
+ (0, import_typeorm36.Column)({ name: "permission_name", type: "varchar", nullable: true })
3101
+ ], AdminPermission.prototype, "permissionName", 2);
3102
+ __decorateClass([
3103
+ (0, import_typeorm36.Column)({
3104
+ name: "permission_slug",
3105
+ type: "varchar",
3106
+ unique: true,
3107
+ nullable: true
3108
+ }),
3109
+ (0, import_typeorm36.Index)()
3110
+ ], AdminPermission.prototype, "permissionSlug", 2);
3111
+ __decorateClass([
3112
+ (0, import_typeorm36.Column)({ name: "permission_description", type: "varchar", nullable: true })
3113
+ ], AdminPermission.prototype, "permissionDescription", 2);
3114
+ __decorateClass([
3115
+ (0, import_typeorm36.Column)({ name: "module", type: "varchar", nullable: true })
3116
+ ], AdminPermission.prototype, "module", 2);
3117
+ __decorateClass([
3118
+ (0, import_typeorm36.Column)({ name: "is_active", type: "boolean", default: true })
3119
+ ], AdminPermission.prototype, "isActive", 2);
3120
+ __decorateClass([
3121
+ (0, import_typeorm36.OneToMany)(
3122
+ () => AdminRolePermission,
3123
+ (adminRolePermission) => adminRolePermission.adminPermissions
3124
+ )
3125
+ ], AdminPermission.prototype, "adminRole", 2);
3126
+ AdminPermission = __decorateClass([
3127
+ (0, import_typeorm36.Entity)("admin_permissions")
3128
+ ], AdminPermission);
3129
+
3130
+ // src/entities/admin-role-permission.entity.ts
3131
+ var AdminRolePermission = class extends BaseEntity {
3132
+ };
3133
+ __decorateClass([
3134
+ (0, import_typeorm37.Column)({
3135
+ name: "role_id",
3136
+ type: "int",
3137
+ nullable: true,
3138
+ comment: "Id of particular role"
3139
+ })
3140
+ ], AdminRolePermission.prototype, "roleId", 2);
3141
+ __decorateClass([
3142
+ (0, import_typeorm37.ManyToOne)(() => AdminRole),
3143
+ (0, import_typeorm37.JoinColumn)({ name: "role_id" })
3144
+ ], AdminRolePermission.prototype, "adminRole", 2);
3145
+ __decorateClass([
3146
+ (0, import_typeorm37.Column)({
3147
+ name: "permission_id",
3148
+ type: "int",
3149
+ nullable: true,
3150
+ comment: "Id of particular permission"
3151
+ })
3152
+ ], AdminRolePermission.prototype, "permissionId", 2);
3153
+ __decorateClass([
3154
+ (0, import_typeorm37.ManyToOne)(() => AdminPermission),
3155
+ (0, import_typeorm37.JoinColumn)({ name: "permission_id" })
3156
+ ], AdminRolePermission.prototype, "adminPermissions", 2);
3157
+ AdminRolePermission = __decorateClass([
3158
+ (0, import_typeorm37.Entity)("admin_role_permissions")
3159
+ ], AdminRolePermission);
3160
+
3161
+ // src/entities/admin-role.entity.ts
3162
+ var AdminRole = class extends BaseEntity {
3163
+ };
3164
+ __decorateClass([
3165
+ (0, import_typeorm38.Column)({ name: "role_name", type: "varchar", nullable: true })
3166
+ ], AdminRole.prototype, "roleName", 2);
3167
+ __decorateClass([
3168
+ (0, import_typeorm38.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
3169
+ (0, import_typeorm38.Index)()
3170
+ ], AdminRole.prototype, "roleSlug", 2);
3171
+ __decorateClass([
3172
+ (0, import_typeorm38.Column)({ name: "role_description", type: "varchar", nullable: true })
3173
+ ], AdminRole.prototype, "roleDescription", 2);
3174
+ __decorateClass([
3175
+ (0, import_typeorm38.Column)({ name: "is_active", type: "boolean", default: true })
3176
+ ], AdminRole.prototype, "isActive", 2);
3177
+ __decorateClass([
3178
+ (0, import_typeorm38.OneToMany)(
3179
+ () => AdminRolePermission,
3180
+ (addminRolePermission) => addminRolePermission.adminRole
3181
+ )
3182
+ ], AdminRole.prototype, "adminRolePermission", 2);
3183
+ __decorateClass([
3184
+ (0, import_typeorm38.OneToMany)(() => UserRole, (userRole) => userRole.adminRole)
3185
+ ], AdminRole.prototype, "userRoles", 2);
3186
+ AdminRole = __decorateClass([
3187
+ (0, import_typeorm38.Entity)("admin_roles")
3188
+ ], AdminRole);
3189
+
3190
+ // src/entities/user-role.entity.ts
3191
+ var UserRole = class extends BaseEntity {
3192
+ };
3193
+ __decorateClass([
3194
+ (0, import_typeorm39.Column)({
3195
+ name: "user_id",
3196
+ type: "int",
3197
+ nullable: true,
3198
+ comment: "Id of particular user"
3199
+ })
3200
+ ], UserRole.prototype, "userId", 2);
3201
+ __decorateClass([
3202
+ (0, import_typeorm39.ManyToOne)(() => User),
3203
+ (0, import_typeorm39.JoinColumn)({ name: "user_id" })
3204
+ ], UserRole.prototype, "user", 2);
3205
+ __decorateClass([
3206
+ (0, import_typeorm39.Column)({
3207
+ name: "role_id",
3208
+ type: "int",
3209
+ nullable: true,
3210
+ comment: "Id of particular role"
3211
+ })
3212
+ ], UserRole.prototype, "roleId", 2);
3213
+ __decorateClass([
3214
+ (0, import_typeorm39.ManyToOne)(() => AdminRole),
3215
+ (0, import_typeorm39.JoinColumn)({ name: "role_id" })
3216
+ ], UserRole.prototype, "adminRole", 2);
3217
+ UserRole = __decorateClass([
3218
+ (0, import_typeorm39.Entity)("user_roles")
3219
+ ], UserRole);
3220
+
3085
3221
  // src/entities/user.entity.ts
3086
3222
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
3087
3223
  AccountType2["ADMIN"] = "ADMIN";
@@ -3107,51 +3243,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
3107
3243
  var User = class extends BaseEntity {
3108
3244
  };
3109
3245
  __decorateClass([
3110
- (0, import_typeorm36.Column)({ name: "unique_id", type: "varchar", unique: true })
3246
+ (0, import_typeorm40.Column)({ name: "unique_id", type: "varchar", unique: true })
3111
3247
  ], User.prototype, "uniqueId", 2);
3112
3248
  __decorateClass([
3113
- (0, import_typeorm36.Column)({ name: "parent_id", type: "integer", nullable: true }),
3114
- (0, import_typeorm36.Index)()
3249
+ (0, import_typeorm40.Column)({ name: "parent_id", type: "integer", nullable: true }),
3250
+ (0, import_typeorm40.Index)()
3115
3251
  ], User.prototype, "parentId", 2);
3116
3252
  __decorateClass([
3117
- (0, import_typeorm36.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
3118
- (0, import_typeorm36.JoinColumn)({ name: "parent_id" })
3253
+ (0, import_typeorm40.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
3254
+ (0, import_typeorm40.JoinColumn)({ name: "parent_id" })
3119
3255
  ], User.prototype, "parent", 2);
3120
3256
  __decorateClass([
3121
- (0, import_typeorm36.OneToMany)(() => User, (user) => user.parent)
3257
+ (0, import_typeorm40.OneToMany)(() => User, (user) => user.parent)
3122
3258
  ], User.prototype, "children", 2);
3123
3259
  __decorateClass([
3124
- (0, import_typeorm36.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
3260
+ (0, import_typeorm40.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
3125
3261
  ], User.prototype, "username", 2);
3126
3262
  __decorateClass([
3127
- (0, import_typeorm36.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
3263
+ (0, import_typeorm40.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
3128
3264
  ], User.prototype, "firstName", 2);
3129
3265
  __decorateClass([
3130
- (0, import_typeorm36.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
3266
+ (0, import_typeorm40.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
3131
3267
  ], User.prototype, "lastName", 2);
3132
3268
  __decorateClass([
3133
- (0, import_typeorm36.Column)({ name: "date_of_birth", type: "date", nullable: true })
3269
+ (0, import_typeorm40.Column)({ name: "date_of_birth", type: "date", nullable: true })
3134
3270
  ], User.prototype, "dateOfBirth", 2);
3135
3271
  __decorateClass([
3136
- (0, import_typeorm36.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
3272
+ (0, import_typeorm40.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
3137
3273
  ], User.prototype, "gender", 2);
3138
3274
  __decorateClass([
3139
- (0, import_typeorm36.Column)({ name: "profile_picture_url", type: "text", nullable: true })
3275
+ (0, import_typeorm40.Column)({ name: "profile_picture_url", type: "text", nullable: true })
3140
3276
  ], User.prototype, "profilePictureUrl", 2);
3141
3277
  __decorateClass([
3142
- (0, import_typeorm36.Column)({ name: "email", type: "varchar", unique: true })
3278
+ (0, import_typeorm40.Column)({ name: "email", type: "varchar", unique: true })
3143
3279
  ], User.prototype, "email", 2);
3144
3280
  __decorateClass([
3145
- (0, import_typeorm36.Column)({ name: "mobile_code", type: "varchar", nullable: true })
3281
+ (0, import_typeorm40.Column)({ name: "mobile_code", type: "varchar", nullable: true })
3146
3282
  ], User.prototype, "mobileCode", 2);
3147
3283
  __decorateClass([
3148
- (0, import_typeorm36.Column)({ name: "mobile", type: "varchar", nullable: true })
3284
+ (0, import_typeorm40.Column)({ name: "mobile", type: "varchar", nullable: true })
3149
3285
  ], User.prototype, "mobile", 2);
3150
3286
  __decorateClass([
3151
- (0, import_typeorm36.Column)({ name: "password", type: "varchar", nullable: true })
3287
+ (0, import_typeorm40.Column)({ name: "password", type: "varchar", nullable: true })
3152
3288
  ], User.prototype, "password", 2);
3153
3289
  __decorateClass([
3154
- (0, import_typeorm36.Column)({
3290
+ (0, import_typeorm40.Column)({
3155
3291
  name: "account_type",
3156
3292
  type: "enum",
3157
3293
  enum: AccountType,
@@ -3159,7 +3295,7 @@ __decorateClass([
3159
3295
  })
3160
3296
  ], User.prototype, "accountType", 2);
3161
3297
  __decorateClass([
3162
- (0, import_typeorm36.Column)({
3298
+ (0, import_typeorm40.Column)({
3163
3299
  name: "account_status",
3164
3300
  type: "enum",
3165
3301
  enum: AccountStatus,
@@ -3167,36 +3303,36 @@ __decorateClass([
3167
3303
  })
3168
3304
  ], User.prototype, "accountStatus", 2);
3169
3305
  __decorateClass([
3170
- (0, import_typeorm36.Column)({ name: "is_email_verified", type: "boolean", default: false })
3306
+ (0, import_typeorm40.Column)({ name: "is_email_verified", type: "boolean", default: false })
3171
3307
  ], User.prototype, "isEmailVerified", 2);
3172
3308
  __decorateClass([
3173
- (0, import_typeorm36.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
3309
+ (0, import_typeorm40.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
3174
3310
  ], User.prototype, "isMobileVerified", 2);
3175
3311
  __decorateClass([
3176
- (0, import_typeorm36.Column)({
3312
+ (0, import_typeorm40.Column)({
3177
3313
  name: "last_login_at",
3178
3314
  type: "timestamp with time zone",
3179
3315
  nullable: true
3180
3316
  })
3181
3317
  ], User.prototype, "lastLoginAt", 2);
3182
3318
  __decorateClass([
3183
- (0, import_typeorm36.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
3319
+ (0, import_typeorm40.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
3184
3320
  ], User.prototype, "lastLoginIp", 2);
3185
3321
  __decorateClass([
3186
- (0, import_typeorm36.Column)({ name: "reset_token", type: "varchar", nullable: true })
3322
+ (0, import_typeorm40.Column)({ name: "reset_token", type: "varchar", nullable: true })
3187
3323
  ], User.prototype, "resetToken", 2);
3188
3324
  __decorateClass([
3189
- (0, import_typeorm36.Column)({
3325
+ (0, import_typeorm40.Column)({
3190
3326
  name: "reset_token_expire_at",
3191
3327
  type: "timestamp with time zone",
3192
3328
  nullable: true
3193
3329
  })
3194
3330
  ], User.prototype, "resetTokenExpireAt", 2);
3195
3331
  __decorateClass([
3196
- (0, import_typeorm36.OneToMany)(() => RefreshToken, (token) => token.user)
3332
+ (0, import_typeorm40.OneToMany)(() => RefreshToken, (token) => token.user)
3197
3333
  ], User.prototype, "refreshTokens", 2);
3198
3334
  __decorateClass([
3199
- (0, import_typeorm36.Column)({
3335
+ (0, import_typeorm40.Column)({
3200
3336
  name: "provider",
3201
3337
  type: "enum",
3202
3338
  enum: Provider,
@@ -3205,88 +3341,91 @@ __decorateClass([
3205
3341
  })
3206
3342
  ], User.prototype, "provider", 2);
3207
3343
  __decorateClass([
3208
- (0, import_typeorm36.Column)({ name: "provider_token", type: "varchar", nullable: true })
3344
+ (0, import_typeorm40.Column)({ name: "provider_token", type: "varchar", nullable: true })
3209
3345
  ], User.prototype, "providerToken", 2);
3210
3346
  __decorateClass([
3211
- (0, import_typeorm36.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
3347
+ (0, import_typeorm40.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
3212
3348
  ], User.prototype, "linkedInId", 2);
3213
3349
  __decorateClass([
3214
- (0, import_typeorm36.Column)({ name: "google_id", type: "varchar", nullable: true })
3350
+ (0, import_typeorm40.Column)({ name: "google_id", type: "varchar", nullable: true })
3215
3351
  ], User.prototype, "googleId", 2);
3216
3352
  __decorateClass([
3217
- (0, import_typeorm36.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
3353
+ (0, import_typeorm40.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
3218
3354
  ], User.prototype, "gitLabsId", 2);
3219
3355
  __decorateClass([
3220
- (0, import_typeorm36.OneToMany)(() => Otp, (otp) => otp.user)
3356
+ (0, import_typeorm40.OneToMany)(() => Otp, (otp) => otp.user)
3221
3357
  ], User.prototype, "otps", 2);
3222
3358
  __decorateClass([
3223
- (0, import_typeorm36.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
3359
+ (0, import_typeorm40.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
3224
3360
  ], User.prototype, "senseloafLogs", 2);
3225
3361
  __decorateClass([
3226
- (0, import_typeorm36.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
3362
+ (0, import_typeorm40.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
3227
3363
  ], User.prototype, "companyProfile", 2);
3228
3364
  __decorateClass([
3229
- (0, import_typeorm36.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
3365
+ (0, import_typeorm40.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
3230
3366
  ], User.prototype, "companySkills", 2);
3231
3367
  __decorateClass([
3232
- (0, import_typeorm36.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
3368
+ (0, import_typeorm40.OneToMany)(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
3233
3369
  ], User.prototype, "companyMemberRoles", 2);
3234
3370
  __decorateClass([
3235
- (0, import_typeorm36.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
3371
+ (0, import_typeorm40.OneToOne)(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
3236
3372
  ], User.prototype, "freelancerProfile", 2);
3237
3373
  __decorateClass([
3238
- (0, import_typeorm36.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
3374
+ (0, import_typeorm40.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
3239
3375
  ], User.prototype, "assessments", 2);
3240
3376
  __decorateClass([
3241
- (0, import_typeorm36.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
3377
+ (0, import_typeorm40.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
3242
3378
  ], User.prototype, "assessmentAnswers", 2);
3243
3379
  __decorateClass([
3244
- (0, import_typeorm36.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
3380
+ (0, import_typeorm40.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
3245
3381
  ], User.prototype, "freelancerSkills", 2);
3246
3382
  __decorateClass([
3247
- (0, import_typeorm36.OneToMany)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
3383
+ (0, import_typeorm40.OneToMany)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
3248
3384
  ], User.prototype, "freelancerExperience", 2);
3249
3385
  __decorateClass([
3250
- (0, import_typeorm36.OneToMany)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
3386
+ (0, import_typeorm40.OneToMany)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
3251
3387
  ], User.prototype, "freelancerEducation", 2);
3252
3388
  __decorateClass([
3253
- (0, import_typeorm36.OneToMany)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
3389
+ (0, import_typeorm40.OneToMany)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
3254
3390
  ], User.prototype, "freelancerProject", 2);
3255
3391
  __decorateClass([
3256
- (0, import_typeorm36.OneToMany)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
3392
+ (0, import_typeorm40.OneToMany)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
3257
3393
  ], User.prototype, "freelancerCaseStudy", 2);
3258
3394
  __decorateClass([
3259
- (0, import_typeorm36.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
3395
+ (0, import_typeorm40.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
3260
3396
  ], User.prototype, "freelancerTool", 2);
3261
3397
  __decorateClass([
3262
- (0, import_typeorm36.OneToMany)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
3398
+ (0, import_typeorm40.OneToMany)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
3263
3399
  ], User.prototype, "freelancerFramework", 2);
3264
3400
  __decorateClass([
3265
- (0, import_typeorm36.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
3401
+ (0, import_typeorm40.OneToOne)(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
3266
3402
  ], User.prototype, "freelancerDeclaration", 2);
3267
3403
  __decorateClass([
3268
- (0, import_typeorm36.OneToMany)(() => Job, (job) => job.user)
3404
+ (0, import_typeorm40.OneToMany)(() => Job, (job) => job.user)
3269
3405
  ], User.prototype, "jobs", 2);
3270
3406
  __decorateClass([
3271
- (0, import_typeorm36.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
3407
+ (0, import_typeorm40.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
3272
3408
  ], User.prototype, "jobApplications", 2);
3273
3409
  __decorateClass([
3274
- (0, import_typeorm36.OneToMany)(() => Interview, (interview) => interview.user)
3410
+ (0, import_typeorm40.OneToMany)(() => Interview, (interview) => interview.user)
3275
3411
  ], User.prototype, "interviews", 2);
3276
3412
  __decorateClass([
3277
- (0, import_typeorm36.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
3413
+ (0, import_typeorm40.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
3278
3414
  ], User.prototype, "bankDetail", 2);
3279
3415
  __decorateClass([
3280
- (0, import_typeorm36.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
3416
+ (0, import_typeorm40.OneToMany)(() => SystemPreference, (systemPreference) => systemPreference.user)
3281
3417
  ], User.prototype, "systemPreference", 2);
3282
3418
  __decorateClass([
3283
- (0, import_typeorm36.OneToMany)(() => Rating, (rating) => rating.reviewer)
3419
+ (0, import_typeorm40.OneToMany)(() => Rating, (rating) => rating.reviewer)
3284
3420
  ], User.prototype, "givenRatings", 2);
3285
3421
  __decorateClass([
3286
- (0, import_typeorm36.OneToMany)(() => Rating, (rating) => rating.reviewee)
3422
+ (0, import_typeorm40.OneToMany)(() => Rating, (rating) => rating.reviewee)
3287
3423
  ], User.prototype, "receivedRatings", 2);
3424
+ __decorateClass([
3425
+ (0, import_typeorm40.OneToMany)(() => UserRole, (userRole) => userRole.user)
3426
+ ], User.prototype, "userRoles", 2);
3288
3427
  User = __decorateClass([
3289
- (0, import_typeorm36.Entity)("users")
3428
+ (0, import_typeorm40.Entity)("users")
3290
3429
  ], User);
3291
3430
 
3292
3431
  // src/entities/rating.entity.ts
@@ -3298,36 +3437,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
3298
3437
  var Rating = class extends BaseEntity {
3299
3438
  };
3300
3439
  __decorateClass([
3301
- (0, import_typeorm37.Column)({ name: "reviewer_id", type: "integer" }),
3302
- (0, import_typeorm37.Index)()
3440
+ (0, import_typeorm41.Column)({ name: "reviewer_id", type: "integer" }),
3441
+ (0, import_typeorm41.Index)()
3303
3442
  ], Rating.prototype, "reviewer_id", 2);
3304
3443
  __decorateClass([
3305
- (0, import_typeorm37.ManyToOne)(() => User, { onDelete: "CASCADE" }),
3306
- (0, import_typeorm37.JoinColumn)({ name: "reviewer_id" })
3444
+ (0, import_typeorm41.ManyToOne)(() => User, { onDelete: "CASCADE" }),
3445
+ (0, import_typeorm41.JoinColumn)({ name: "reviewer_id" })
3307
3446
  ], Rating.prototype, "reviewer", 2);
3308
3447
  __decorateClass([
3309
- (0, import_typeorm37.Column)({ name: "reviewee_id", type: "integer" }),
3310
- (0, import_typeorm37.Index)()
3448
+ (0, import_typeorm41.Column)({ name: "reviewee_id", type: "integer" }),
3449
+ (0, import_typeorm41.Index)()
3311
3450
  ], Rating.prototype, "reviewee_id", 2);
3312
3451
  __decorateClass([
3313
- (0, import_typeorm37.ManyToOne)(() => User, { onDelete: "CASCADE" }),
3314
- (0, import_typeorm37.JoinColumn)({ name: "reviewee_id" })
3452
+ (0, import_typeorm41.ManyToOne)(() => User, { onDelete: "CASCADE" }),
3453
+ (0, import_typeorm41.JoinColumn)({ name: "reviewee_id" })
3315
3454
  ], Rating.prototype, "reviewee", 2);
3316
3455
  __decorateClass([
3317
- (0, import_typeorm37.Column)({
3456
+ (0, import_typeorm41.Column)({
3318
3457
  type: "enum",
3319
3458
  enum: RatingTypeEnum,
3320
3459
  nullable: true
3321
3460
  })
3322
3461
  ], Rating.prototype, "ratingType", 2);
3323
3462
  __decorateClass([
3324
- (0, import_typeorm37.Column)({ type: "integer", nullable: true })
3463
+ (0, import_typeorm41.Column)({ type: "integer", nullable: true })
3325
3464
  ], Rating.prototype, "rating", 2);
3326
3465
  __decorateClass([
3327
- (0, import_typeorm37.Column)({ type: "text", nullable: true })
3466
+ (0, import_typeorm41.Column)({ type: "text", nullable: true })
3328
3467
  ], Rating.prototype, "review", 2);
3329
3468
  Rating = __decorateClass([
3330
- (0, import_typeorm37.Entity)("ratings")
3469
+ (0, import_typeorm41.Entity)("ratings")
3331
3470
  ], Rating);
3332
3471
 
3333
3472
  // src/modules/rating/dto/add.rating.dto.ts
@@ -4337,7 +4476,8 @@ var ADMIN_ROLE_PATTERN = {
4337
4476
  adminCreateRole: "admin.create.role",
4338
4477
  adminUpdateRole: "admin.update.role",
4339
4478
  adminDeleteRole: "admin.delete.role",
4340
- attachPermissionsToRole: "attach.permissions.to.role"
4479
+ attachPermissionsToRole: "attach.permissions.to.role",
4480
+ fetchAdminPermissions: "fetch.admin.permissions"
4341
4481
  };
4342
4482
 
4343
4483
  // src/modules/admin-role/dto/create-admin-role.dto.ts
@@ -4600,11 +4740,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
4600
4740
  };
4601
4741
 
4602
4742
  // src/entities/sequence-generator.entity.ts
4603
- var import_typeorm38 = require("typeorm");
4743
+ var import_typeorm42 = require("typeorm");
4604
4744
  var SequenceGenerator = class extends BaseEntity {
4605
4745
  };
4606
4746
  __decorateClass([
4607
- (0, import_typeorm38.Column)({
4747
+ (0, import_typeorm42.Column)({
4608
4748
  name: "module",
4609
4749
  type: "varchar",
4610
4750
  length: 50,
@@ -4613,7 +4753,7 @@ __decorateClass([
4613
4753
  })
4614
4754
  ], SequenceGenerator.prototype, "module", 2);
4615
4755
  __decorateClass([
4616
- (0, import_typeorm38.Column)({
4756
+ (0, import_typeorm42.Column)({
4617
4757
  name: "prefix",
4618
4758
  type: "varchar",
4619
4759
  length: 10,
@@ -4622,7 +4762,7 @@ __decorateClass([
4622
4762
  })
4623
4763
  ], SequenceGenerator.prototype, "prefix", 2);
4624
4764
  __decorateClass([
4625
- (0, import_typeorm38.Column)({
4765
+ (0, import_typeorm42.Column)({
4626
4766
  name: "last_sequence",
4627
4767
  type: "int",
4628
4768
  nullable: false,
@@ -4630,7 +4770,7 @@ __decorateClass([
4630
4770
  })
4631
4771
  ], SequenceGenerator.prototype, "lastSequence", 2);
4632
4772
  __decorateClass([
4633
- (0, import_typeorm38.Column)({
4773
+ (0, import_typeorm42.Column)({
4634
4774
  name: "year",
4635
4775
  type: "int",
4636
4776
  nullable: true,
@@ -4638,11 +4778,11 @@ __decorateClass([
4638
4778
  })
4639
4779
  ], SequenceGenerator.prototype, "year", 2);
4640
4780
  SequenceGenerator = __decorateClass([
4641
- (0, import_typeorm38.Entity)("sequence_generators")
4781
+ (0, import_typeorm42.Entity)("sequence_generators")
4642
4782
  ], SequenceGenerator);
4643
4783
 
4644
4784
  // src/entities/question.entity.ts
4645
- var import_typeorm39 = require("typeorm");
4785
+ var import_typeorm43 = require("typeorm");
4646
4786
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
4647
4787
  QuestionFor2["CLIENT"] = "CLIENT";
4648
4788
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -4651,16 +4791,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
4651
4791
  var Question = class extends BaseEntity {
4652
4792
  };
4653
4793
  __decorateClass([
4654
- (0, import_typeorm39.Column)({ name: "question", type: "varchar" })
4794
+ (0, import_typeorm43.Column)({ name: "question", type: "varchar" })
4655
4795
  ], Question.prototype, "question", 2);
4656
4796
  __decorateClass([
4657
- (0, import_typeorm39.Column)({ name: "hint", type: "varchar", nullable: true })
4797
+ (0, import_typeorm43.Column)({ name: "hint", type: "varchar", nullable: true })
4658
4798
  ], Question.prototype, "hint", 2);
4659
4799
  __decorateClass([
4660
- (0, import_typeorm39.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
4800
+ (0, import_typeorm43.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
4661
4801
  ], Question.prototype, "slug", 2);
4662
4802
  __decorateClass([
4663
- (0, import_typeorm39.Column)({
4803
+ (0, import_typeorm43.Column)({
4664
4804
  name: "question_for",
4665
4805
  type: "enum",
4666
4806
  enum: QuestionFor,
@@ -4668,100 +4808,100 @@ __decorateClass([
4668
4808
  })
4669
4809
  ], Question.prototype, "questionFor", 2);
4670
4810
  __decorateClass([
4671
- (0, import_typeorm39.Column)({ name: "type", type: "varchar", nullable: true })
4811
+ (0, import_typeorm43.Column)({ name: "type", type: "varchar", nullable: true })
4672
4812
  ], Question.prototype, "type", 2);
4673
4813
  __decorateClass([
4674
- (0, import_typeorm39.Column)({ name: "options", type: "jsonb", nullable: true })
4814
+ (0, import_typeorm43.Column)({ name: "options", type: "jsonb", nullable: true })
4675
4815
  ], Question.prototype, "options", 2);
4676
4816
  __decorateClass([
4677
- (0, import_typeorm39.Column)({ name: "is_active", type: "boolean", default: false })
4817
+ (0, import_typeorm43.Column)({ name: "is_active", type: "boolean", default: false })
4678
4818
  ], Question.prototype, "isActive", 2);
4679
4819
  Question = __decorateClass([
4680
- (0, import_typeorm39.Entity)("questions")
4820
+ (0, import_typeorm43.Entity)("questions")
4681
4821
  ], Question);
4682
4822
 
4683
4823
  // src/entities/job-role.entity.ts
4684
- var import_typeorm40 = require("typeorm");
4824
+ var import_typeorm44 = require("typeorm");
4685
4825
  var JobRoles = class extends BaseEntity {
4686
4826
  };
4687
4827
  __decorateClass([
4688
- (0, import_typeorm40.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
4828
+ (0, import_typeorm44.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
4689
4829
  ], JobRoles.prototype, "slug", 2);
4690
4830
  __decorateClass([
4691
- (0, import_typeorm40.Column)({ name: "name", type: "varchar", nullable: true })
4831
+ (0, import_typeorm44.Column)({ name: "name", type: "varchar", nullable: true })
4692
4832
  ], JobRoles.prototype, "name", 2);
4693
4833
  __decorateClass([
4694
- (0, import_typeorm40.Column)({ name: "is_active", type: "boolean", default: true })
4834
+ (0, import_typeorm44.Column)({ name: "is_active", type: "boolean", default: true })
4695
4835
  ], JobRoles.prototype, "isActive", 2);
4696
4836
  JobRoles = __decorateClass([
4697
- (0, import_typeorm40.Entity)("job_roles")
4837
+ (0, import_typeorm44.Entity)("job_roles")
4698
4838
  ], JobRoles);
4699
4839
 
4700
4840
  // src/entities/plan.entity.ts
4701
- var import_typeorm42 = require("typeorm");
4841
+ var import_typeorm46 = require("typeorm");
4702
4842
 
4703
4843
  // src/entities/feature.entity.ts
4704
- var import_typeorm41 = require("typeorm");
4844
+ var import_typeorm45 = require("typeorm");
4705
4845
  var Feature = class extends BaseEntity {
4706
4846
  };
4707
4847
  __decorateClass([
4708
- (0, import_typeorm41.Column)({ name: "name", type: "varchar", unique: true })
4848
+ (0, import_typeorm45.Column)({ name: "name", type: "varchar", unique: true })
4709
4849
  ], Feature.prototype, "name", 2);
4710
4850
  __decorateClass([
4711
- (0, import_typeorm41.ManyToMany)(() => Plan, (plan) => plan.features)
4851
+ (0, import_typeorm45.ManyToMany)(() => Plan, (plan) => plan.features)
4712
4852
  ], Feature.prototype, "plans", 2);
4713
4853
  Feature = __decorateClass([
4714
- (0, import_typeorm41.Entity)("features")
4854
+ (0, import_typeorm45.Entity)("features")
4715
4855
  ], Feature);
4716
4856
 
4717
4857
  // src/entities/plan.entity.ts
4718
4858
  var Plan = class extends BaseEntity {
4719
4859
  };
4720
4860
  __decorateClass([
4721
- (0, import_typeorm42.Column)({ name: "name", type: "varchar", unique: true })
4861
+ (0, import_typeorm46.Column)({ name: "name", type: "varchar", unique: true })
4722
4862
  ], Plan.prototype, "name", 2);
4723
4863
  __decorateClass([
4724
- (0, import_typeorm42.Column)({ name: "description", type: "varchar", nullable: true })
4864
+ (0, import_typeorm46.Column)({ name: "description", type: "varchar", nullable: true })
4725
4865
  ], Plan.prototype, "description", 2);
4726
4866
  __decorateClass([
4727
- (0, import_typeorm42.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
4867
+ (0, import_typeorm46.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
4728
4868
  ], Plan.prototype, "price", 2);
4729
4869
  __decorateClass([
4730
- (0, import_typeorm42.Column)({ name: "billing_period", type: "varchar" })
4870
+ (0, import_typeorm46.Column)({ name: "billing_period", type: "varchar" })
4731
4871
  ], Plan.prototype, "billingPeriod", 2);
4732
4872
  __decorateClass([
4733
- (0, import_typeorm42.Column)({ name: "is_current", type: "boolean", default: false })
4873
+ (0, import_typeorm46.Column)({ name: "is_current", type: "boolean", default: false })
4734
4874
  ], Plan.prototype, "isCurrent", 2);
4735
4875
  __decorateClass([
4736
- (0, import_typeorm42.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
4737
- (0, import_typeorm42.JoinTable)()
4876
+ (0, import_typeorm46.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
4877
+ (0, import_typeorm46.JoinTable)()
4738
4878
  ], Plan.prototype, "features", 2);
4739
4879
  Plan = __decorateClass([
4740
- (0, import_typeorm42.Entity)("plans")
4880
+ (0, import_typeorm46.Entity)("plans")
4741
4881
  ], Plan);
4742
4882
 
4743
4883
  // src/entities/cms.entity.ts
4744
- var import_typeorm43 = require("typeorm");
4884
+ var import_typeorm47 = require("typeorm");
4745
4885
  var Cms = class extends BaseEntity {
4746
4886
  };
4747
4887
  __decorateClass([
4748
- (0, import_typeorm43.Column)({ name: "title", type: "varchar", nullable: true })
4888
+ (0, import_typeorm47.Column)({ name: "title", type: "varchar", nullable: true })
4749
4889
  ], Cms.prototype, "title", 2);
4750
4890
  __decorateClass([
4751
- (0, import_typeorm43.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
4891
+ (0, import_typeorm47.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
4752
4892
  ], Cms.prototype, "slug", 2);
4753
4893
  __decorateClass([
4754
- (0, import_typeorm43.Column)({ name: "content", type: "varchar", nullable: true })
4894
+ (0, import_typeorm47.Column)({ name: "content", type: "varchar", nullable: true })
4755
4895
  ], Cms.prototype, "content", 2);
4756
4896
  __decorateClass([
4757
- (0, import_typeorm43.Column)({ name: "is_active", type: "boolean", default: true })
4897
+ (0, import_typeorm47.Column)({ name: "is_active", type: "boolean", default: true })
4758
4898
  ], Cms.prototype, "isActive", 2);
4759
4899
  Cms = __decorateClass([
4760
- (0, import_typeorm43.Entity)("cms")
4900
+ (0, import_typeorm47.Entity)("cms")
4761
4901
  ], Cms);
4762
4902
 
4763
4903
  // src/entities/lead.entity.ts
4764
- var import_typeorm44 = require("typeorm");
4904
+ var import_typeorm48 = require("typeorm");
4765
4905
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
4766
4906
  CategoryEmum2["BUSINESS"] = "BUSINESS";
4767
4907
  CategoryEmum2["FREELANCER"] = "FREELANCER";
@@ -4770,22 +4910,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
4770
4910
  var Lead = class extends BaseEntity {
4771
4911
  };
4772
4912
  __decorateClass([
4773
- (0, import_typeorm44.Column)({ name: "name", type: "varchar", nullable: true })
4913
+ (0, import_typeorm48.Column)({ name: "name", type: "varchar", nullable: true })
4774
4914
  ], Lead.prototype, "name", 2);
4775
4915
  __decorateClass([
4776
- (0, import_typeorm44.Column)({ name: "mobile_code", type: "varchar", nullable: true })
4916
+ (0, import_typeorm48.Column)({ name: "mobile_code", type: "varchar", nullable: true })
4777
4917
  ], Lead.prototype, "mobileCode", 2);
4778
4918
  __decorateClass([
4779
- (0, import_typeorm44.Column)({ name: "mobile", type: "varchar", nullable: true })
4919
+ (0, import_typeorm48.Column)({ name: "mobile", type: "varchar", nullable: true })
4780
4920
  ], Lead.prototype, "mobile", 2);
4781
4921
  __decorateClass([
4782
- (0, import_typeorm44.Column)({ name: "email", type: "varchar", nullable: true })
4922
+ (0, import_typeorm48.Column)({ name: "email", type: "varchar", nullable: true })
4783
4923
  ], Lead.prototype, "email", 2);
4784
4924
  __decorateClass([
4785
- (0, import_typeorm44.Column)({ name: "description", type: "varchar", nullable: true })
4925
+ (0, import_typeorm48.Column)({ name: "description", type: "varchar", nullable: true })
4786
4926
  ], Lead.prototype, "description", 2);
4787
4927
  __decorateClass([
4788
- (0, import_typeorm44.Column)({
4928
+ (0, import_typeorm48.Column)({
4789
4929
  name: "category",
4790
4930
  type: "enum",
4791
4931
  enum: CategoryEmum,
@@ -4793,203 +4933,105 @@ __decorateClass([
4793
4933
  })
4794
4934
  ], Lead.prototype, "category", 2);
4795
4935
  Lead = __decorateClass([
4796
- (0, import_typeorm44.Entity)("leads")
4936
+ (0, import_typeorm48.Entity)("leads")
4797
4937
  ], Lead);
4798
4938
 
4799
4939
  // src/entities/job-freelancer-recommendation.entity.ts
4800
- var import_typeorm45 = require("typeorm");
4940
+ var import_typeorm49 = require("typeorm");
4801
4941
  var JobFreelancerRecommendation = class {
4802
4942
  };
4803
4943
  __decorateClass([
4804
- (0, import_typeorm45.ViewColumn)({ name: "job_id" })
4944
+ (0, import_typeorm49.ViewColumn)({ name: "job_id" })
4805
4945
  ], JobFreelancerRecommendation.prototype, "jobId", 2);
4806
4946
  __decorateClass([
4807
- (0, import_typeorm45.ViewColumn)({ name: "job_uuid" })
4947
+ (0, import_typeorm49.ViewColumn)({ name: "job_uuid" })
4808
4948
  ], JobFreelancerRecommendation.prototype, "jobUuid", 2);
4809
4949
  __decorateClass([
4810
- (0, import_typeorm45.ViewColumn)({ name: "job_unique_id" })
4950
+ (0, import_typeorm49.ViewColumn)({ name: "job_unique_id" })
4811
4951
  ], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
4812
4952
  __decorateClass([
4813
- (0, import_typeorm45.ViewColumn)({ name: "job_role" })
4953
+ (0, import_typeorm49.ViewColumn)({ name: "job_role" })
4814
4954
  ], JobFreelancerRecommendation.prototype, "jobRole", 2);
4815
4955
  __decorateClass([
4816
- (0, import_typeorm45.ViewColumn)({ name: "job_openings" })
4956
+ (0, import_typeorm49.ViewColumn)({ name: "job_openings" })
4817
4957
  ], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
4818
4958
  __decorateClass([
4819
- (0, import_typeorm45.ViewColumn)({ name: "job_location" })
4959
+ (0, import_typeorm49.ViewColumn)({ name: "job_location" })
4820
4960
  ], JobFreelancerRecommendation.prototype, "jobLocation", 2);
4821
4961
  __decorateClass([
4822
- (0, import_typeorm45.ViewColumn)({ name: "job_employment_type" })
4962
+ (0, import_typeorm49.ViewColumn)({ name: "job_employment_type" })
4823
4963
  ], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
4824
4964
  __decorateClass([
4825
- (0, import_typeorm45.ViewColumn)({ name: "application_received" })
4965
+ (0, import_typeorm49.ViewColumn)({ name: "application_received" })
4826
4966
  ], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
4827
4967
  __decorateClass([
4828
- (0, import_typeorm45.ViewColumn)({ name: "job_posted_at" })
4968
+ (0, import_typeorm49.ViewColumn)({ name: "job_posted_at" })
4829
4969
  ], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
4830
4970
  __decorateClass([
4831
- (0, import_typeorm45.ViewColumn)({ name: "freelancer_id" })
4971
+ (0, import_typeorm49.ViewColumn)({ name: "freelancer_id" })
4832
4972
  ], JobFreelancerRecommendation.prototype, "freelancerId", 2);
4833
4973
  __decorateClass([
4834
- (0, import_typeorm45.ViewColumn)({ name: "freelancer_uuid" })
4974
+ (0, import_typeorm49.ViewColumn)({ name: "freelancer_uuid" })
4835
4975
  ], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
4836
4976
  __decorateClass([
4837
- (0, import_typeorm45.ViewColumn)({ name: "freelancer_unique_id" })
4977
+ (0, import_typeorm49.ViewColumn)({ name: "freelancer_unique_id" })
4838
4978
  ], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
4839
4979
  __decorateClass([
4840
- (0, import_typeorm45.ViewColumn)({ name: "freelancer_first_name" })
4980
+ (0, import_typeorm49.ViewColumn)({ name: "freelancer_first_name" })
4841
4981
  ], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
4842
4982
  __decorateClass([
4843
- (0, import_typeorm45.ViewColumn)({ name: "freelancer_last_name" })
4983
+ (0, import_typeorm49.ViewColumn)({ name: "freelancer_last_name" })
4844
4984
  ], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
4845
4985
  __decorateClass([
4846
- (0, import_typeorm45.ViewColumn)({ name: "freelancer_email" })
4986
+ (0, import_typeorm49.ViewColumn)({ name: "freelancer_email" })
4847
4987
  ], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
4848
4988
  __decorateClass([
4849
- (0, import_typeorm45.ViewColumn)({ name: "freelancer_profile_picture" })
4989
+ (0, import_typeorm49.ViewColumn)({ name: "freelancer_profile_picture" })
4850
4990
  ], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
4851
4991
  __decorateClass([
4852
- (0, import_typeorm45.ViewColumn)({ name: "freelancer_created_at" })
4992
+ (0, import_typeorm49.ViewColumn)({ name: "freelancer_created_at" })
4853
4993
  ], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
4854
4994
  __decorateClass([
4855
- (0, import_typeorm45.ViewColumn)({ name: "client_id" })
4995
+ (0, import_typeorm49.ViewColumn)({ name: "client_id" })
4856
4996
  ], JobFreelancerRecommendation.prototype, "clientId", 2);
4857
4997
  __decorateClass([
4858
- (0, import_typeorm45.ViewColumn)({ name: "client_uuid" })
4998
+ (0, import_typeorm49.ViewColumn)({ name: "client_uuid" })
4859
4999
  ], JobFreelancerRecommendation.prototype, "clientUuid", 2);
4860
5000
  __decorateClass([
4861
- (0, import_typeorm45.ViewColumn)({ name: "client_first_name" })
5001
+ (0, import_typeorm49.ViewColumn)({ name: "client_first_name" })
4862
5002
  ], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
4863
5003
  __decorateClass([
4864
- (0, import_typeorm45.ViewColumn)({ name: "client_last_name" })
5004
+ (0, import_typeorm49.ViewColumn)({ name: "client_last_name" })
4865
5005
  ], JobFreelancerRecommendation.prototype, "clientLastName", 2);
4866
5006
  __decorateClass([
4867
- (0, import_typeorm45.ViewColumn)({ name: "client_email" })
5007
+ (0, import_typeorm49.ViewColumn)({ name: "client_email" })
4868
5008
  ], JobFreelancerRecommendation.prototype, "clientEmail", 2);
4869
5009
  __decorateClass([
4870
- (0, import_typeorm45.ViewColumn)({ name: "client_company_logo" })
5010
+ (0, import_typeorm49.ViewColumn)({ name: "client_company_logo" })
4871
5011
  ], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
4872
5012
  __decorateClass([
4873
- (0, import_typeorm45.ViewColumn)({ name: "client_company_name" })
5013
+ (0, import_typeorm49.ViewColumn)({ name: "client_company_name" })
4874
5014
  ], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
4875
5015
  __decorateClass([
4876
- (0, import_typeorm45.ViewColumn)({ name: "matching_skills" })
5016
+ (0, import_typeorm49.ViewColumn)({ name: "matching_skills" })
4877
5017
  ], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
4878
5018
  __decorateClass([
4879
- (0, import_typeorm45.ViewColumn)({ name: "matching_skills_count" })
5019
+ (0, import_typeorm49.ViewColumn)({ name: "matching_skills_count" })
4880
5020
  ], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
4881
5021
  __decorateClass([
4882
- (0, import_typeorm45.ViewColumn)({ name: "required_skills" })
5022
+ (0, import_typeorm49.ViewColumn)({ name: "required_skills" })
4883
5023
  ], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
4884
5024
  __decorateClass([
4885
- (0, import_typeorm45.ViewColumn)({ name: "required_skills_count" })
5025
+ (0, import_typeorm49.ViewColumn)({ name: "required_skills_count" })
4886
5026
  ], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
4887
5027
  JobFreelancerRecommendation = __decorateClass([
4888
- (0, import_typeorm45.ViewEntity)({
5028
+ (0, import_typeorm49.ViewEntity)({
4889
5029
  name: "job_freelancer_recommendations",
4890
5030
  materialized: true,
4891
5031
  synchronize: false
4892
5032
  // ✅ important: prevent auto-sync during migrations
4893
5033
  })
4894
5034
  ], JobFreelancerRecommendation);
4895
-
4896
- // src/entities/admin-role.entity.ts
4897
- var import_typeorm48 = require("typeorm");
4898
-
4899
- // src/entities/admin-role-permission.entity.ts
4900
- var import_typeorm47 = require("typeorm");
4901
-
4902
- // src/entities/admin-permission.entity.ts
4903
- var import_typeorm46 = require("typeorm");
4904
- var AdminPermission = class extends BaseEntity {
4905
- };
4906
- __decorateClass([
4907
- (0, import_typeorm46.Column)({ name: "permission_name", type: "varchar", nullable: true })
4908
- ], AdminPermission.prototype, "permissionName", 2);
4909
- __decorateClass([
4910
- (0, import_typeorm46.Column)({
4911
- name: "permission_slug",
4912
- type: "varchar",
4913
- unique: true,
4914
- nullable: true
4915
- }),
4916
- (0, import_typeorm46.Index)()
4917
- ], AdminPermission.prototype, "permissionSlug", 2);
4918
- __decorateClass([
4919
- (0, import_typeorm46.Column)({ name: "permission_description", type: "varchar", nullable: true })
4920
- ], AdminPermission.prototype, "permissionDescription", 2);
4921
- __decorateClass([
4922
- (0, import_typeorm46.Column)({ name: "module", type: "varchar", nullable: true })
4923
- ], AdminPermission.prototype, "module", 2);
4924
- __decorateClass([
4925
- (0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: true })
4926
- ], AdminPermission.prototype, "isActive", 2);
4927
- __decorateClass([
4928
- (0, import_typeorm46.OneToMany)(
4929
- () => AdminRolePermission,
4930
- (adminRolePermission) => adminRolePermission.adminPermissions
4931
- )
4932
- ], AdminPermission.prototype, "adminRole", 2);
4933
- AdminPermission = __decorateClass([
4934
- (0, import_typeorm46.Entity)("admin_permissions")
4935
- ], AdminPermission);
4936
-
4937
- // src/entities/admin-role-permission.entity.ts
4938
- var AdminRolePermission = class extends BaseEntity {
4939
- };
4940
- __decorateClass([
4941
- (0, import_typeorm47.Column)({
4942
- name: "role_id",
4943
- type: "int",
4944
- nullable: true,
4945
- comment: "Id of particular role"
4946
- })
4947
- ], AdminRolePermission.prototype, "roleId", 2);
4948
- __decorateClass([
4949
- (0, import_typeorm47.ManyToOne)(() => AdminRole),
4950
- (0, import_typeorm47.JoinColumn)({ name: "role_id" })
4951
- ], AdminRolePermission.prototype, "adminRole", 2);
4952
- __decorateClass([
4953
- (0, import_typeorm47.Column)({
4954
- name: "permission_id",
4955
- type: "int",
4956
- nullable: true,
4957
- comment: "Id of particular permission"
4958
- })
4959
- ], AdminRolePermission.prototype, "permissionId", 2);
4960
- __decorateClass([
4961
- (0, import_typeorm47.ManyToOne)(() => AdminPermission),
4962
- (0, import_typeorm47.JoinColumn)({ name: "permission_id" })
4963
- ], AdminRolePermission.prototype, "adminPermissions", 2);
4964
- AdminRolePermission = __decorateClass([
4965
- (0, import_typeorm47.Entity)("admin_role_permissions")
4966
- ], AdminRolePermission);
4967
-
4968
- // src/entities/admin-role.entity.ts
4969
- var AdminRole = class extends BaseEntity {
4970
- };
4971
- __decorateClass([
4972
- (0, import_typeorm48.Column)({ name: "role_name", type: "varchar", nullable: true })
4973
- ], AdminRole.prototype, "roleName", 2);
4974
- __decorateClass([
4975
- (0, import_typeorm48.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
4976
- (0, import_typeorm48.Index)()
4977
- ], AdminRole.prototype, "roleSlug", 2);
4978
- __decorateClass([
4979
- (0, import_typeorm48.Column)({ name: "role_description", type: "varchar", nullable: true })
4980
- ], AdminRole.prototype, "roleDescription", 2);
4981
- __decorateClass([
4982
- (0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: true })
4983
- ], AdminRole.prototype, "isActive", 2);
4984
- __decorateClass([
4985
- (0, import_typeorm48.OneToMany)(
4986
- () => AdminRolePermission,
4987
- (addminRolePermission) => addminRolePermission.adminRole
4988
- )
4989
- ], AdminRole.prototype, "adminRolePermission", 2);
4990
- AdminRole = __decorateClass([
4991
- (0, import_typeorm48.Entity)("admin_roles")
4992
- ], AdminRole);
4993
5035
  // Annotate the CommonJS export names for ESM import in node:
4994
5036
  0 && (module.exports = {
4995
5037
  ADMIN_FREELANCER_PATTERN,
@@ -5190,6 +5232,7 @@ AdminRole = __decorateClass([
5190
5232
  UpdateSubAdminDto,
5191
5233
  User,
5192
5234
  UserRMQAdapter,
5235
+ UserRole,
5193
5236
  UserTCPAdapter,
5194
5237
  VerifyGuestOtpDto,
5195
5238
  VerifyGuestOtpPurposeEnum