@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/entities/admin-role.entity.d.ts +2 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user-role.entity.d.ts +9 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +35 -25
- package/dist/index.d.ts +35 -25
- package/dist/index.js +287 -244
- package/dist/index.mjs +256 -214
- package/dist/modules/admin-role/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1198,17 +1198,17 @@ import {
|
|
|
1198
1198
|
} from "class-validator";
|
|
1199
1199
|
|
|
1200
1200
|
// src/entities/rating.entity.ts
|
|
1201
|
-
import { Entity as
|
|
1201
|
+
import { Entity as Entity40, Column as Column41, ManyToOne as ManyToOne34, JoinColumn as JoinColumn34, Index as Index33 } from "typeorm";
|
|
1202
1202
|
|
|
1203
1203
|
// src/entities/user.entity.ts
|
|
1204
1204
|
import {
|
|
1205
|
-
Entity as
|
|
1206
|
-
Column as
|
|
1207
|
-
OneToMany as
|
|
1205
|
+
Entity as Entity39,
|
|
1206
|
+
Column as Column40,
|
|
1207
|
+
OneToMany as OneToMany15,
|
|
1208
1208
|
OneToOne,
|
|
1209
|
-
Index as
|
|
1210
|
-
ManyToOne as
|
|
1211
|
-
JoinColumn as
|
|
1209
|
+
Index as Index32,
|
|
1210
|
+
ManyToOne as ManyToOne33,
|
|
1211
|
+
JoinColumn as JoinColumn33
|
|
1212
1212
|
} from "typeorm";
|
|
1213
1213
|
|
|
1214
1214
|
// src/entities/base.entity.ts
|
|
@@ -3145,6 +3145,141 @@ CompanySkill = __decorateClass([
|
|
|
3145
3145
|
Entity34("company_skills")
|
|
3146
3146
|
], CompanySkill);
|
|
3147
3147
|
|
|
3148
|
+
// src/entities/user-role.entity.ts
|
|
3149
|
+
import { Entity as Entity38, Column as Column39, ManyToOne as ManyToOne32, JoinColumn as JoinColumn32 } from "typeorm";
|
|
3150
|
+
|
|
3151
|
+
// src/entities/admin-role.entity.ts
|
|
3152
|
+
import { Entity as Entity37, Column as Column38, Index as Index30, OneToMany as OneToMany14 } from "typeorm";
|
|
3153
|
+
|
|
3154
|
+
// src/entities/admin-role-permission.entity.ts
|
|
3155
|
+
import { Entity as Entity36, Column as Column37, ManyToOne as ManyToOne31, JoinColumn as JoinColumn31 } from "typeorm";
|
|
3156
|
+
|
|
3157
|
+
// src/entities/admin-permission.entity.ts
|
|
3158
|
+
import { Entity as Entity35, Column as Column36, Index as Index28, OneToMany as OneToMany13 } from "typeorm";
|
|
3159
|
+
var AdminPermission = class extends BaseEntity {
|
|
3160
|
+
};
|
|
3161
|
+
__decorateClass([
|
|
3162
|
+
Column36({ name: "permission_name", type: "varchar", nullable: true })
|
|
3163
|
+
], AdminPermission.prototype, "permissionName", 2);
|
|
3164
|
+
__decorateClass([
|
|
3165
|
+
Column36({
|
|
3166
|
+
name: "permission_slug",
|
|
3167
|
+
type: "varchar",
|
|
3168
|
+
unique: true,
|
|
3169
|
+
nullable: true
|
|
3170
|
+
}),
|
|
3171
|
+
Index28()
|
|
3172
|
+
], AdminPermission.prototype, "permissionSlug", 2);
|
|
3173
|
+
__decorateClass([
|
|
3174
|
+
Column36({ name: "permission_description", type: "varchar", nullable: true })
|
|
3175
|
+
], AdminPermission.prototype, "permissionDescription", 2);
|
|
3176
|
+
__decorateClass([
|
|
3177
|
+
Column36({ name: "module", type: "varchar", nullable: true })
|
|
3178
|
+
], AdminPermission.prototype, "module", 2);
|
|
3179
|
+
__decorateClass([
|
|
3180
|
+
Column36({ name: "is_active", type: "boolean", default: true })
|
|
3181
|
+
], AdminPermission.prototype, "isActive", 2);
|
|
3182
|
+
__decorateClass([
|
|
3183
|
+
OneToMany13(
|
|
3184
|
+
() => AdminRolePermission,
|
|
3185
|
+
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
3186
|
+
)
|
|
3187
|
+
], AdminPermission.prototype, "adminRole", 2);
|
|
3188
|
+
AdminPermission = __decorateClass([
|
|
3189
|
+
Entity35("admin_permissions")
|
|
3190
|
+
], AdminPermission);
|
|
3191
|
+
|
|
3192
|
+
// src/entities/admin-role-permission.entity.ts
|
|
3193
|
+
var AdminRolePermission = class extends BaseEntity {
|
|
3194
|
+
};
|
|
3195
|
+
__decorateClass([
|
|
3196
|
+
Column37({
|
|
3197
|
+
name: "role_id",
|
|
3198
|
+
type: "int",
|
|
3199
|
+
nullable: true,
|
|
3200
|
+
comment: "Id of particular role"
|
|
3201
|
+
})
|
|
3202
|
+
], AdminRolePermission.prototype, "roleId", 2);
|
|
3203
|
+
__decorateClass([
|
|
3204
|
+
ManyToOne31(() => AdminRole),
|
|
3205
|
+
JoinColumn31({ name: "role_id" })
|
|
3206
|
+
], AdminRolePermission.prototype, "adminRole", 2);
|
|
3207
|
+
__decorateClass([
|
|
3208
|
+
Column37({
|
|
3209
|
+
name: "permission_id",
|
|
3210
|
+
type: "int",
|
|
3211
|
+
nullable: true,
|
|
3212
|
+
comment: "Id of particular permission"
|
|
3213
|
+
})
|
|
3214
|
+
], AdminRolePermission.prototype, "permissionId", 2);
|
|
3215
|
+
__decorateClass([
|
|
3216
|
+
ManyToOne31(() => AdminPermission),
|
|
3217
|
+
JoinColumn31({ name: "permission_id" })
|
|
3218
|
+
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
3219
|
+
AdminRolePermission = __decorateClass([
|
|
3220
|
+
Entity36("admin_role_permissions")
|
|
3221
|
+
], AdminRolePermission);
|
|
3222
|
+
|
|
3223
|
+
// src/entities/admin-role.entity.ts
|
|
3224
|
+
var AdminRole = class extends BaseEntity {
|
|
3225
|
+
};
|
|
3226
|
+
__decorateClass([
|
|
3227
|
+
Column38({ name: "role_name", type: "varchar", nullable: true })
|
|
3228
|
+
], AdminRole.prototype, "roleName", 2);
|
|
3229
|
+
__decorateClass([
|
|
3230
|
+
Column38({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
3231
|
+
Index30()
|
|
3232
|
+
], AdminRole.prototype, "roleSlug", 2);
|
|
3233
|
+
__decorateClass([
|
|
3234
|
+
Column38({ name: "role_description", type: "varchar", nullable: true })
|
|
3235
|
+
], AdminRole.prototype, "roleDescription", 2);
|
|
3236
|
+
__decorateClass([
|
|
3237
|
+
Column38({ name: "is_active", type: "boolean", default: true })
|
|
3238
|
+
], AdminRole.prototype, "isActive", 2);
|
|
3239
|
+
__decorateClass([
|
|
3240
|
+
OneToMany14(
|
|
3241
|
+
() => AdminRolePermission,
|
|
3242
|
+
(addminRolePermission) => addminRolePermission.adminRole
|
|
3243
|
+
)
|
|
3244
|
+
], AdminRole.prototype, "adminRolePermission", 2);
|
|
3245
|
+
__decorateClass([
|
|
3246
|
+
OneToMany14(() => UserRole, (userRole) => userRole.adminRole)
|
|
3247
|
+
], AdminRole.prototype, "userRoles", 2);
|
|
3248
|
+
AdminRole = __decorateClass([
|
|
3249
|
+
Entity37("admin_roles")
|
|
3250
|
+
], AdminRole);
|
|
3251
|
+
|
|
3252
|
+
// src/entities/user-role.entity.ts
|
|
3253
|
+
var UserRole = class extends BaseEntity {
|
|
3254
|
+
};
|
|
3255
|
+
__decorateClass([
|
|
3256
|
+
Column39({
|
|
3257
|
+
name: "user_id",
|
|
3258
|
+
type: "int",
|
|
3259
|
+
nullable: true,
|
|
3260
|
+
comment: "Id of particular user"
|
|
3261
|
+
})
|
|
3262
|
+
], UserRole.prototype, "userId", 2);
|
|
3263
|
+
__decorateClass([
|
|
3264
|
+
ManyToOne32(() => User),
|
|
3265
|
+
JoinColumn32({ name: "user_id" })
|
|
3266
|
+
], UserRole.prototype, "user", 2);
|
|
3267
|
+
__decorateClass([
|
|
3268
|
+
Column39({
|
|
3269
|
+
name: "role_id",
|
|
3270
|
+
type: "int",
|
|
3271
|
+
nullable: true,
|
|
3272
|
+
comment: "Id of particular role"
|
|
3273
|
+
})
|
|
3274
|
+
], UserRole.prototype, "roleId", 2);
|
|
3275
|
+
__decorateClass([
|
|
3276
|
+
ManyToOne32(() => AdminRole),
|
|
3277
|
+
JoinColumn32({ name: "role_id" })
|
|
3278
|
+
], UserRole.prototype, "adminRole", 2);
|
|
3279
|
+
UserRole = __decorateClass([
|
|
3280
|
+
Entity38("user_roles")
|
|
3281
|
+
], UserRole);
|
|
3282
|
+
|
|
3148
3283
|
// src/entities/user.entity.ts
|
|
3149
3284
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
3150
3285
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -3170,51 +3305,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
3170
3305
|
var User = class extends BaseEntity {
|
|
3171
3306
|
};
|
|
3172
3307
|
__decorateClass([
|
|
3173
|
-
|
|
3308
|
+
Column40({ name: "unique_id", type: "varchar", unique: true })
|
|
3174
3309
|
], User.prototype, "uniqueId", 2);
|
|
3175
3310
|
__decorateClass([
|
|
3176
|
-
|
|
3177
|
-
|
|
3311
|
+
Column40({ name: "parent_id", type: "integer", nullable: true }),
|
|
3312
|
+
Index32()
|
|
3178
3313
|
], User.prototype, "parentId", 2);
|
|
3179
3314
|
__decorateClass([
|
|
3180
|
-
|
|
3181
|
-
|
|
3315
|
+
ManyToOne33(() => User, (user) => user.children, { nullable: true }),
|
|
3316
|
+
JoinColumn33({ name: "parent_id" })
|
|
3182
3317
|
], User.prototype, "parent", 2);
|
|
3183
3318
|
__decorateClass([
|
|
3184
|
-
|
|
3319
|
+
OneToMany15(() => User, (user) => user.parent)
|
|
3185
3320
|
], User.prototype, "children", 2);
|
|
3186
3321
|
__decorateClass([
|
|
3187
|
-
|
|
3322
|
+
Column40({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
3188
3323
|
], User.prototype, "username", 2);
|
|
3189
3324
|
__decorateClass([
|
|
3190
|
-
|
|
3325
|
+
Column40({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
3191
3326
|
], User.prototype, "firstName", 2);
|
|
3192
3327
|
__decorateClass([
|
|
3193
|
-
|
|
3328
|
+
Column40({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
3194
3329
|
], User.prototype, "lastName", 2);
|
|
3195
3330
|
__decorateClass([
|
|
3196
|
-
|
|
3331
|
+
Column40({ name: "date_of_birth", type: "date", nullable: true })
|
|
3197
3332
|
], User.prototype, "dateOfBirth", 2);
|
|
3198
3333
|
__decorateClass([
|
|
3199
|
-
|
|
3334
|
+
Column40({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
3200
3335
|
], User.prototype, "gender", 2);
|
|
3201
3336
|
__decorateClass([
|
|
3202
|
-
|
|
3337
|
+
Column40({ name: "profile_picture_url", type: "text", nullable: true })
|
|
3203
3338
|
], User.prototype, "profilePictureUrl", 2);
|
|
3204
3339
|
__decorateClass([
|
|
3205
|
-
|
|
3340
|
+
Column40({ name: "email", type: "varchar", unique: true })
|
|
3206
3341
|
], User.prototype, "email", 2);
|
|
3207
3342
|
__decorateClass([
|
|
3208
|
-
|
|
3343
|
+
Column40({ name: "mobile_code", type: "varchar", nullable: true })
|
|
3209
3344
|
], User.prototype, "mobileCode", 2);
|
|
3210
3345
|
__decorateClass([
|
|
3211
|
-
|
|
3346
|
+
Column40({ name: "mobile", type: "varchar", nullable: true })
|
|
3212
3347
|
], User.prototype, "mobile", 2);
|
|
3213
3348
|
__decorateClass([
|
|
3214
|
-
|
|
3349
|
+
Column40({ name: "password", type: "varchar", nullable: true })
|
|
3215
3350
|
], User.prototype, "password", 2);
|
|
3216
3351
|
__decorateClass([
|
|
3217
|
-
|
|
3352
|
+
Column40({
|
|
3218
3353
|
name: "account_type",
|
|
3219
3354
|
type: "enum",
|
|
3220
3355
|
enum: AccountType,
|
|
@@ -3222,7 +3357,7 @@ __decorateClass([
|
|
|
3222
3357
|
})
|
|
3223
3358
|
], User.prototype, "accountType", 2);
|
|
3224
3359
|
__decorateClass([
|
|
3225
|
-
|
|
3360
|
+
Column40({
|
|
3226
3361
|
name: "account_status",
|
|
3227
3362
|
type: "enum",
|
|
3228
3363
|
enum: AccountStatus,
|
|
@@ -3230,36 +3365,36 @@ __decorateClass([
|
|
|
3230
3365
|
})
|
|
3231
3366
|
], User.prototype, "accountStatus", 2);
|
|
3232
3367
|
__decorateClass([
|
|
3233
|
-
|
|
3368
|
+
Column40({ name: "is_email_verified", type: "boolean", default: false })
|
|
3234
3369
|
], User.prototype, "isEmailVerified", 2);
|
|
3235
3370
|
__decorateClass([
|
|
3236
|
-
|
|
3371
|
+
Column40({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
3237
3372
|
], User.prototype, "isMobileVerified", 2);
|
|
3238
3373
|
__decorateClass([
|
|
3239
|
-
|
|
3374
|
+
Column40({
|
|
3240
3375
|
name: "last_login_at",
|
|
3241
3376
|
type: "timestamp with time zone",
|
|
3242
3377
|
nullable: true
|
|
3243
3378
|
})
|
|
3244
3379
|
], User.prototype, "lastLoginAt", 2);
|
|
3245
3380
|
__decorateClass([
|
|
3246
|
-
|
|
3381
|
+
Column40({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
3247
3382
|
], User.prototype, "lastLoginIp", 2);
|
|
3248
3383
|
__decorateClass([
|
|
3249
|
-
|
|
3384
|
+
Column40({ name: "reset_token", type: "varchar", nullable: true })
|
|
3250
3385
|
], User.prototype, "resetToken", 2);
|
|
3251
3386
|
__decorateClass([
|
|
3252
|
-
|
|
3387
|
+
Column40({
|
|
3253
3388
|
name: "reset_token_expire_at",
|
|
3254
3389
|
type: "timestamp with time zone",
|
|
3255
3390
|
nullable: true
|
|
3256
3391
|
})
|
|
3257
3392
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
3258
3393
|
__decorateClass([
|
|
3259
|
-
|
|
3394
|
+
OneToMany15(() => RefreshToken, (token) => token.user)
|
|
3260
3395
|
], User.prototype, "refreshTokens", 2);
|
|
3261
3396
|
__decorateClass([
|
|
3262
|
-
|
|
3397
|
+
Column40({
|
|
3263
3398
|
name: "provider",
|
|
3264
3399
|
type: "enum",
|
|
3265
3400
|
enum: Provider,
|
|
@@ -3268,88 +3403,91 @@ __decorateClass([
|
|
|
3268
3403
|
})
|
|
3269
3404
|
], User.prototype, "provider", 2);
|
|
3270
3405
|
__decorateClass([
|
|
3271
|
-
|
|
3406
|
+
Column40({ name: "provider_token", type: "varchar", nullable: true })
|
|
3272
3407
|
], User.prototype, "providerToken", 2);
|
|
3273
3408
|
__decorateClass([
|
|
3274
|
-
|
|
3409
|
+
Column40({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
3275
3410
|
], User.prototype, "linkedInId", 2);
|
|
3276
3411
|
__decorateClass([
|
|
3277
|
-
|
|
3412
|
+
Column40({ name: "google_id", type: "varchar", nullable: true })
|
|
3278
3413
|
], User.prototype, "googleId", 2);
|
|
3279
3414
|
__decorateClass([
|
|
3280
|
-
|
|
3415
|
+
Column40({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3281
3416
|
], User.prototype, "gitLabsId", 2);
|
|
3282
3417
|
__decorateClass([
|
|
3283
|
-
|
|
3418
|
+
OneToMany15(() => Otp, (otp) => otp.user)
|
|
3284
3419
|
], User.prototype, "otps", 2);
|
|
3285
3420
|
__decorateClass([
|
|
3286
|
-
|
|
3421
|
+
OneToMany15(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
3287
3422
|
], User.prototype, "senseloafLogs", 2);
|
|
3288
3423
|
__decorateClass([
|
|
3289
3424
|
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
3290
3425
|
], User.prototype, "companyProfile", 2);
|
|
3291
3426
|
__decorateClass([
|
|
3292
|
-
|
|
3427
|
+
OneToMany15(() => CompanySkill, (companySkill) => companySkill.user)
|
|
3293
3428
|
], User.prototype, "companySkills", 2);
|
|
3294
3429
|
__decorateClass([
|
|
3295
|
-
|
|
3430
|
+
OneToMany15(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3296
3431
|
], User.prototype, "companyMemberRoles", 2);
|
|
3297
3432
|
__decorateClass([
|
|
3298
3433
|
OneToOne(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
|
|
3299
3434
|
], User.prototype, "freelancerProfile", 2);
|
|
3300
3435
|
__decorateClass([
|
|
3301
|
-
|
|
3436
|
+
OneToMany15(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
3302
3437
|
], User.prototype, "assessments", 2);
|
|
3303
3438
|
__decorateClass([
|
|
3304
|
-
|
|
3439
|
+
OneToMany15(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
3305
3440
|
], User.prototype, "assessmentAnswers", 2);
|
|
3306
3441
|
__decorateClass([
|
|
3307
|
-
|
|
3442
|
+
OneToMany15(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
3308
3443
|
], User.prototype, "freelancerSkills", 2);
|
|
3309
3444
|
__decorateClass([
|
|
3310
|
-
|
|
3445
|
+
OneToMany15(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
3311
3446
|
], User.prototype, "freelancerExperience", 2);
|
|
3312
3447
|
__decorateClass([
|
|
3313
|
-
|
|
3448
|
+
OneToMany15(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
3314
3449
|
], User.prototype, "freelancerEducation", 2);
|
|
3315
3450
|
__decorateClass([
|
|
3316
|
-
|
|
3451
|
+
OneToMany15(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
3317
3452
|
], User.prototype, "freelancerProject", 2);
|
|
3318
3453
|
__decorateClass([
|
|
3319
|
-
|
|
3454
|
+
OneToMany15(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
3320
3455
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
3321
3456
|
__decorateClass([
|
|
3322
|
-
|
|
3457
|
+
OneToMany15(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3323
3458
|
], User.prototype, "freelancerTool", 2);
|
|
3324
3459
|
__decorateClass([
|
|
3325
|
-
|
|
3460
|
+
OneToMany15(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3326
3461
|
], User.prototype, "freelancerFramework", 2);
|
|
3327
3462
|
__decorateClass([
|
|
3328
3463
|
OneToOne(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3329
3464
|
], User.prototype, "freelancerDeclaration", 2);
|
|
3330
3465
|
__decorateClass([
|
|
3331
|
-
|
|
3466
|
+
OneToMany15(() => Job, (job) => job.user)
|
|
3332
3467
|
], User.prototype, "jobs", 2);
|
|
3333
3468
|
__decorateClass([
|
|
3334
|
-
|
|
3469
|
+
OneToMany15(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
3335
3470
|
], User.prototype, "jobApplications", 2);
|
|
3336
3471
|
__decorateClass([
|
|
3337
|
-
|
|
3472
|
+
OneToMany15(() => Interview, (interview) => interview.user)
|
|
3338
3473
|
], User.prototype, "interviews", 2);
|
|
3339
3474
|
__decorateClass([
|
|
3340
|
-
|
|
3475
|
+
OneToMany15(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
3341
3476
|
], User.prototype, "bankDetail", 2);
|
|
3342
3477
|
__decorateClass([
|
|
3343
|
-
|
|
3478
|
+
OneToMany15(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
3344
3479
|
], User.prototype, "systemPreference", 2);
|
|
3345
3480
|
__decorateClass([
|
|
3346
|
-
|
|
3481
|
+
OneToMany15(() => Rating, (rating) => rating.reviewer)
|
|
3347
3482
|
], User.prototype, "givenRatings", 2);
|
|
3348
3483
|
__decorateClass([
|
|
3349
|
-
|
|
3484
|
+
OneToMany15(() => Rating, (rating) => rating.reviewee)
|
|
3350
3485
|
], User.prototype, "receivedRatings", 2);
|
|
3486
|
+
__decorateClass([
|
|
3487
|
+
OneToMany15(() => UserRole, (userRole) => userRole.user)
|
|
3488
|
+
], User.prototype, "userRoles", 2);
|
|
3351
3489
|
User = __decorateClass([
|
|
3352
|
-
|
|
3490
|
+
Entity39("users")
|
|
3353
3491
|
], User);
|
|
3354
3492
|
|
|
3355
3493
|
// src/entities/rating.entity.ts
|
|
@@ -3361,36 +3499,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3361
3499
|
var Rating = class extends BaseEntity {
|
|
3362
3500
|
};
|
|
3363
3501
|
__decorateClass([
|
|
3364
|
-
|
|
3365
|
-
|
|
3502
|
+
Column41({ name: "reviewer_id", type: "integer" }),
|
|
3503
|
+
Index33()
|
|
3366
3504
|
], Rating.prototype, "reviewer_id", 2);
|
|
3367
3505
|
__decorateClass([
|
|
3368
|
-
|
|
3369
|
-
|
|
3506
|
+
ManyToOne34(() => User, { onDelete: "CASCADE" }),
|
|
3507
|
+
JoinColumn34({ name: "reviewer_id" })
|
|
3370
3508
|
], Rating.prototype, "reviewer", 2);
|
|
3371
3509
|
__decorateClass([
|
|
3372
|
-
|
|
3373
|
-
|
|
3510
|
+
Column41({ name: "reviewee_id", type: "integer" }),
|
|
3511
|
+
Index33()
|
|
3374
3512
|
], Rating.prototype, "reviewee_id", 2);
|
|
3375
3513
|
__decorateClass([
|
|
3376
|
-
|
|
3377
|
-
|
|
3514
|
+
ManyToOne34(() => User, { onDelete: "CASCADE" }),
|
|
3515
|
+
JoinColumn34({ name: "reviewee_id" })
|
|
3378
3516
|
], Rating.prototype, "reviewee", 2);
|
|
3379
3517
|
__decorateClass([
|
|
3380
|
-
|
|
3518
|
+
Column41({
|
|
3381
3519
|
type: "enum",
|
|
3382
3520
|
enum: RatingTypeEnum,
|
|
3383
3521
|
nullable: true
|
|
3384
3522
|
})
|
|
3385
3523
|
], Rating.prototype, "ratingType", 2);
|
|
3386
3524
|
__decorateClass([
|
|
3387
|
-
|
|
3525
|
+
Column41({ type: "integer", nullable: true })
|
|
3388
3526
|
], Rating.prototype, "rating", 2);
|
|
3389
3527
|
__decorateClass([
|
|
3390
|
-
|
|
3528
|
+
Column41({ type: "text", nullable: true })
|
|
3391
3529
|
], Rating.prototype, "review", 2);
|
|
3392
3530
|
Rating = __decorateClass([
|
|
3393
|
-
|
|
3531
|
+
Entity40("ratings")
|
|
3394
3532
|
], Rating);
|
|
3395
3533
|
|
|
3396
3534
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -4477,7 +4615,8 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
4477
4615
|
adminCreateRole: "admin.create.role",
|
|
4478
4616
|
adminUpdateRole: "admin.update.role",
|
|
4479
4617
|
adminDeleteRole: "admin.delete.role",
|
|
4480
|
-
attachPermissionsToRole: "attach.permissions.to.role"
|
|
4618
|
+
attachPermissionsToRole: "attach.permissions.to.role",
|
|
4619
|
+
fetchAdminPermissions: "fetch.admin.permissions"
|
|
4481
4620
|
};
|
|
4482
4621
|
|
|
4483
4622
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
@@ -4740,11 +4879,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
4740
4879
|
};
|
|
4741
4880
|
|
|
4742
4881
|
// src/entities/sequence-generator.entity.ts
|
|
4743
|
-
import { Entity as
|
|
4882
|
+
import { Entity as Entity41, Column as Column42 } from "typeorm";
|
|
4744
4883
|
var SequenceGenerator = class extends BaseEntity {
|
|
4745
4884
|
};
|
|
4746
4885
|
__decorateClass([
|
|
4747
|
-
|
|
4886
|
+
Column42({
|
|
4748
4887
|
name: "module",
|
|
4749
4888
|
type: "varchar",
|
|
4750
4889
|
length: 50,
|
|
@@ -4753,7 +4892,7 @@ __decorateClass([
|
|
|
4753
4892
|
})
|
|
4754
4893
|
], SequenceGenerator.prototype, "module", 2);
|
|
4755
4894
|
__decorateClass([
|
|
4756
|
-
|
|
4895
|
+
Column42({
|
|
4757
4896
|
name: "prefix",
|
|
4758
4897
|
type: "varchar",
|
|
4759
4898
|
length: 10,
|
|
@@ -4762,7 +4901,7 @@ __decorateClass([
|
|
|
4762
4901
|
})
|
|
4763
4902
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
4764
4903
|
__decorateClass([
|
|
4765
|
-
|
|
4904
|
+
Column42({
|
|
4766
4905
|
name: "last_sequence",
|
|
4767
4906
|
type: "int",
|
|
4768
4907
|
nullable: false,
|
|
@@ -4770,7 +4909,7 @@ __decorateClass([
|
|
|
4770
4909
|
})
|
|
4771
4910
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
4772
4911
|
__decorateClass([
|
|
4773
|
-
|
|
4912
|
+
Column42({
|
|
4774
4913
|
name: "year",
|
|
4775
4914
|
type: "int",
|
|
4776
4915
|
nullable: true,
|
|
@@ -4778,11 +4917,11 @@ __decorateClass([
|
|
|
4778
4917
|
})
|
|
4779
4918
|
], SequenceGenerator.prototype, "year", 2);
|
|
4780
4919
|
SequenceGenerator = __decorateClass([
|
|
4781
|
-
|
|
4920
|
+
Entity41("sequence_generators")
|
|
4782
4921
|
], SequenceGenerator);
|
|
4783
4922
|
|
|
4784
4923
|
// src/entities/question.entity.ts
|
|
4785
|
-
import { Entity as
|
|
4924
|
+
import { Entity as Entity42, Column as Column43 } from "typeorm";
|
|
4786
4925
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
4787
4926
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
4788
4927
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -4791,16 +4930,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
4791
4930
|
var Question = class extends BaseEntity {
|
|
4792
4931
|
};
|
|
4793
4932
|
__decorateClass([
|
|
4794
|
-
|
|
4933
|
+
Column43({ name: "question", type: "varchar" })
|
|
4795
4934
|
], Question.prototype, "question", 2);
|
|
4796
4935
|
__decorateClass([
|
|
4797
|
-
|
|
4936
|
+
Column43({ name: "hint", type: "varchar", nullable: true })
|
|
4798
4937
|
], Question.prototype, "hint", 2);
|
|
4799
4938
|
__decorateClass([
|
|
4800
|
-
|
|
4939
|
+
Column43({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4801
4940
|
], Question.prototype, "slug", 2);
|
|
4802
4941
|
__decorateClass([
|
|
4803
|
-
|
|
4942
|
+
Column43({
|
|
4804
4943
|
name: "question_for",
|
|
4805
4944
|
type: "enum",
|
|
4806
4945
|
enum: QuestionFor,
|
|
@@ -4808,102 +4947,102 @@ __decorateClass([
|
|
|
4808
4947
|
})
|
|
4809
4948
|
], Question.prototype, "questionFor", 2);
|
|
4810
4949
|
__decorateClass([
|
|
4811
|
-
|
|
4950
|
+
Column43({ name: "type", type: "varchar", nullable: true })
|
|
4812
4951
|
], Question.prototype, "type", 2);
|
|
4813
4952
|
__decorateClass([
|
|
4814
|
-
|
|
4953
|
+
Column43({ name: "options", type: "jsonb", nullable: true })
|
|
4815
4954
|
], Question.prototype, "options", 2);
|
|
4816
4955
|
__decorateClass([
|
|
4817
|
-
|
|
4956
|
+
Column43({ name: "is_active", type: "boolean", default: false })
|
|
4818
4957
|
], Question.prototype, "isActive", 2);
|
|
4819
4958
|
Question = __decorateClass([
|
|
4820
|
-
|
|
4959
|
+
Entity42("questions")
|
|
4821
4960
|
], Question);
|
|
4822
4961
|
|
|
4823
4962
|
// src/entities/job-role.entity.ts
|
|
4824
|
-
import { Entity as
|
|
4963
|
+
import { Entity as Entity43, Column as Column44 } from "typeorm";
|
|
4825
4964
|
var JobRoles = class extends BaseEntity {
|
|
4826
4965
|
};
|
|
4827
4966
|
__decorateClass([
|
|
4828
|
-
|
|
4967
|
+
Column44({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4829
4968
|
], JobRoles.prototype, "slug", 2);
|
|
4830
4969
|
__decorateClass([
|
|
4831
|
-
|
|
4970
|
+
Column44({ name: "name", type: "varchar", nullable: true })
|
|
4832
4971
|
], JobRoles.prototype, "name", 2);
|
|
4833
4972
|
__decorateClass([
|
|
4834
|
-
|
|
4973
|
+
Column44({ name: "is_active", type: "boolean", default: true })
|
|
4835
4974
|
], JobRoles.prototype, "isActive", 2);
|
|
4836
4975
|
JobRoles = __decorateClass([
|
|
4837
|
-
|
|
4976
|
+
Entity43("job_roles")
|
|
4838
4977
|
], JobRoles);
|
|
4839
4978
|
|
|
4840
4979
|
// src/entities/plan.entity.ts
|
|
4841
|
-
import { Entity as
|
|
4980
|
+
import { Entity as Entity45, Column as Column46, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
4842
4981
|
|
|
4843
4982
|
// src/entities/feature.entity.ts
|
|
4844
|
-
import { Entity as
|
|
4983
|
+
import { Entity as Entity44, Column as Column45, ManyToMany as ManyToMany2 } from "typeorm";
|
|
4845
4984
|
var Feature = class extends BaseEntity {
|
|
4846
4985
|
};
|
|
4847
4986
|
__decorateClass([
|
|
4848
|
-
|
|
4987
|
+
Column45({ name: "name", type: "varchar", unique: true })
|
|
4849
4988
|
], Feature.prototype, "name", 2);
|
|
4850
4989
|
__decorateClass([
|
|
4851
4990
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
4852
4991
|
], Feature.prototype, "plans", 2);
|
|
4853
4992
|
Feature = __decorateClass([
|
|
4854
|
-
|
|
4993
|
+
Entity44("features")
|
|
4855
4994
|
], Feature);
|
|
4856
4995
|
|
|
4857
4996
|
// src/entities/plan.entity.ts
|
|
4858
4997
|
var Plan = class extends BaseEntity {
|
|
4859
4998
|
};
|
|
4860
4999
|
__decorateClass([
|
|
4861
|
-
|
|
5000
|
+
Column46({ name: "name", type: "varchar", unique: true })
|
|
4862
5001
|
], Plan.prototype, "name", 2);
|
|
4863
5002
|
__decorateClass([
|
|
4864
|
-
|
|
5003
|
+
Column46({ name: "description", type: "varchar", nullable: true })
|
|
4865
5004
|
], Plan.prototype, "description", 2);
|
|
4866
5005
|
__decorateClass([
|
|
4867
|
-
|
|
5006
|
+
Column46({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
4868
5007
|
], Plan.prototype, "price", 2);
|
|
4869
5008
|
__decorateClass([
|
|
4870
|
-
|
|
5009
|
+
Column46({ name: "billing_period", type: "varchar" })
|
|
4871
5010
|
], Plan.prototype, "billingPeriod", 2);
|
|
4872
5011
|
__decorateClass([
|
|
4873
|
-
|
|
5012
|
+
Column46({ name: "is_current", type: "boolean", default: false })
|
|
4874
5013
|
], Plan.prototype, "isCurrent", 2);
|
|
4875
5014
|
__decorateClass([
|
|
4876
5015
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
4877
5016
|
JoinTable()
|
|
4878
5017
|
], Plan.prototype, "features", 2);
|
|
4879
5018
|
Plan = __decorateClass([
|
|
4880
|
-
|
|
5019
|
+
Entity45("plans")
|
|
4881
5020
|
], Plan);
|
|
4882
5021
|
|
|
4883
5022
|
// src/entities/cms.entity.ts
|
|
4884
|
-
import { Entity as
|
|
5023
|
+
import { Entity as Entity46, Column as Column47 } from "typeorm";
|
|
4885
5024
|
var Cms = class extends BaseEntity {
|
|
4886
5025
|
};
|
|
4887
5026
|
__decorateClass([
|
|
4888
|
-
|
|
5027
|
+
Column47({ name: "title", type: "varchar", nullable: true })
|
|
4889
5028
|
], Cms.prototype, "title", 2);
|
|
4890
5029
|
__decorateClass([
|
|
4891
|
-
|
|
5030
|
+
Column47({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
4892
5031
|
], Cms.prototype, "slug", 2);
|
|
4893
5032
|
__decorateClass([
|
|
4894
|
-
|
|
5033
|
+
Column47({ name: "content", type: "varchar", nullable: true })
|
|
4895
5034
|
], Cms.prototype, "content", 2);
|
|
4896
5035
|
__decorateClass([
|
|
4897
|
-
|
|
5036
|
+
Column47({ name: "is_active", type: "boolean", default: true })
|
|
4898
5037
|
], Cms.prototype, "isActive", 2);
|
|
4899
5038
|
Cms = __decorateClass([
|
|
4900
|
-
|
|
5039
|
+
Entity46("cms")
|
|
4901
5040
|
], Cms);
|
|
4902
5041
|
|
|
4903
5042
|
// src/entities/lead.entity.ts
|
|
4904
5043
|
import {
|
|
4905
|
-
Entity as
|
|
4906
|
-
Column as
|
|
5044
|
+
Entity as Entity47,
|
|
5045
|
+
Column as Column48
|
|
4907
5046
|
} from "typeorm";
|
|
4908
5047
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
4909
5048
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -4913,22 +5052,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
4913
5052
|
var Lead = class extends BaseEntity {
|
|
4914
5053
|
};
|
|
4915
5054
|
__decorateClass([
|
|
4916
|
-
|
|
5055
|
+
Column48({ name: "name", type: "varchar", nullable: true })
|
|
4917
5056
|
], Lead.prototype, "name", 2);
|
|
4918
5057
|
__decorateClass([
|
|
4919
|
-
|
|
5058
|
+
Column48({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4920
5059
|
], Lead.prototype, "mobileCode", 2);
|
|
4921
5060
|
__decorateClass([
|
|
4922
|
-
|
|
5061
|
+
Column48({ name: "mobile", type: "varchar", nullable: true })
|
|
4923
5062
|
], Lead.prototype, "mobile", 2);
|
|
4924
5063
|
__decorateClass([
|
|
4925
|
-
|
|
5064
|
+
Column48({ name: "email", type: "varchar", nullable: true })
|
|
4926
5065
|
], Lead.prototype, "email", 2);
|
|
4927
5066
|
__decorateClass([
|
|
4928
|
-
|
|
5067
|
+
Column48({ name: "description", type: "varchar", nullable: true })
|
|
4929
5068
|
], Lead.prototype, "description", 2);
|
|
4930
5069
|
__decorateClass([
|
|
4931
|
-
|
|
5070
|
+
Column48({
|
|
4932
5071
|
name: "category",
|
|
4933
5072
|
type: "enum",
|
|
4934
5073
|
enum: CategoryEmum,
|
|
@@ -4936,7 +5075,7 @@ __decorateClass([
|
|
|
4936
5075
|
})
|
|
4937
5076
|
], Lead.prototype, "category", 2);
|
|
4938
5077
|
Lead = __decorateClass([
|
|
4939
|
-
|
|
5078
|
+
Entity47("leads")
|
|
4940
5079
|
], Lead);
|
|
4941
5080
|
|
|
4942
5081
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -5035,104 +5174,6 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
5035
5174
|
// ✅ important: prevent auto-sync during migrations
|
|
5036
5175
|
})
|
|
5037
5176
|
], JobFreelancerRecommendation);
|
|
5038
|
-
|
|
5039
|
-
// src/entities/admin-role.entity.ts
|
|
5040
|
-
import { Entity as Entity46, Column as Column47, Index as Index32, OneToMany as OneToMany18 } from "typeorm";
|
|
5041
|
-
|
|
5042
|
-
// src/entities/admin-role-permission.entity.ts
|
|
5043
|
-
import { Entity as Entity45, Column as Column46, ManyToOne as ManyToOne33, JoinColumn as JoinColumn33 } from "typeorm";
|
|
5044
|
-
|
|
5045
|
-
// src/entities/admin-permission.entity.ts
|
|
5046
|
-
import { Entity as Entity44, Column as Column45, Index as Index30, OneToMany as OneToMany17 } from "typeorm";
|
|
5047
|
-
var AdminPermission = class extends BaseEntity {
|
|
5048
|
-
};
|
|
5049
|
-
__decorateClass([
|
|
5050
|
-
Column45({ name: "permission_name", type: "varchar", nullable: true })
|
|
5051
|
-
], AdminPermission.prototype, "permissionName", 2);
|
|
5052
|
-
__decorateClass([
|
|
5053
|
-
Column45({
|
|
5054
|
-
name: "permission_slug",
|
|
5055
|
-
type: "varchar",
|
|
5056
|
-
unique: true,
|
|
5057
|
-
nullable: true
|
|
5058
|
-
}),
|
|
5059
|
-
Index30()
|
|
5060
|
-
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5061
|
-
__decorateClass([
|
|
5062
|
-
Column45({ name: "permission_description", type: "varchar", nullable: true })
|
|
5063
|
-
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5064
|
-
__decorateClass([
|
|
5065
|
-
Column45({ name: "module", type: "varchar", nullable: true })
|
|
5066
|
-
], AdminPermission.prototype, "module", 2);
|
|
5067
|
-
__decorateClass([
|
|
5068
|
-
Column45({ name: "is_active", type: "boolean", default: true })
|
|
5069
|
-
], AdminPermission.prototype, "isActive", 2);
|
|
5070
|
-
__decorateClass([
|
|
5071
|
-
OneToMany17(
|
|
5072
|
-
() => AdminRolePermission,
|
|
5073
|
-
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5074
|
-
)
|
|
5075
|
-
], AdminPermission.prototype, "adminRole", 2);
|
|
5076
|
-
AdminPermission = __decorateClass([
|
|
5077
|
-
Entity44("admin_permissions")
|
|
5078
|
-
], AdminPermission);
|
|
5079
|
-
|
|
5080
|
-
// src/entities/admin-role-permission.entity.ts
|
|
5081
|
-
var AdminRolePermission = class extends BaseEntity {
|
|
5082
|
-
};
|
|
5083
|
-
__decorateClass([
|
|
5084
|
-
Column46({
|
|
5085
|
-
name: "role_id",
|
|
5086
|
-
type: "int",
|
|
5087
|
-
nullable: true,
|
|
5088
|
-
comment: "Id of particular role"
|
|
5089
|
-
})
|
|
5090
|
-
], AdminRolePermission.prototype, "roleId", 2);
|
|
5091
|
-
__decorateClass([
|
|
5092
|
-
ManyToOne33(() => AdminRole),
|
|
5093
|
-
JoinColumn33({ name: "role_id" })
|
|
5094
|
-
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5095
|
-
__decorateClass([
|
|
5096
|
-
Column46({
|
|
5097
|
-
name: "permission_id",
|
|
5098
|
-
type: "int",
|
|
5099
|
-
nullable: true,
|
|
5100
|
-
comment: "Id of particular permission"
|
|
5101
|
-
})
|
|
5102
|
-
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5103
|
-
__decorateClass([
|
|
5104
|
-
ManyToOne33(() => AdminPermission),
|
|
5105
|
-
JoinColumn33({ name: "permission_id" })
|
|
5106
|
-
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5107
|
-
AdminRolePermission = __decorateClass([
|
|
5108
|
-
Entity45("admin_role_permissions")
|
|
5109
|
-
], AdminRolePermission);
|
|
5110
|
-
|
|
5111
|
-
// src/entities/admin-role.entity.ts
|
|
5112
|
-
var AdminRole = class extends BaseEntity {
|
|
5113
|
-
};
|
|
5114
|
-
__decorateClass([
|
|
5115
|
-
Column47({ name: "role_name", type: "varchar", nullable: true })
|
|
5116
|
-
], AdminRole.prototype, "roleName", 2);
|
|
5117
|
-
__decorateClass([
|
|
5118
|
-
Column47({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5119
|
-
Index32()
|
|
5120
|
-
], AdminRole.prototype, "roleSlug", 2);
|
|
5121
|
-
__decorateClass([
|
|
5122
|
-
Column47({ name: "role_description", type: "varchar", nullable: true })
|
|
5123
|
-
], AdminRole.prototype, "roleDescription", 2);
|
|
5124
|
-
__decorateClass([
|
|
5125
|
-
Column47({ name: "is_active", type: "boolean", default: true })
|
|
5126
|
-
], AdminRole.prototype, "isActive", 2);
|
|
5127
|
-
__decorateClass([
|
|
5128
|
-
OneToMany18(
|
|
5129
|
-
() => AdminRolePermission,
|
|
5130
|
-
(addminRolePermission) => addminRolePermission.adminRole
|
|
5131
|
-
)
|
|
5132
|
-
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5133
|
-
AdminRole = __decorateClass([
|
|
5134
|
-
Entity46("admin_roles")
|
|
5135
|
-
], AdminRole);
|
|
5136
5177
|
export {
|
|
5137
5178
|
ADMIN_FREELANCER_PATTERN,
|
|
5138
5179
|
ADMIN_JOB_PATTERN,
|
|
@@ -5332,6 +5373,7 @@ export {
|
|
|
5332
5373
|
UpdateSubAdminDto,
|
|
5333
5374
|
User,
|
|
5334
5375
|
UserRMQAdapter,
|
|
5376
|
+
UserRole,
|
|
5335
5377
|
UserTCPAdapter,
|
|
5336
5378
|
VerifyGuestOtpDto,
|
|
5337
5379
|
VerifyGuestOtpPurposeEnum
|