@experts_hub/shared 1.0.692 → 1.0.695

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.mjs CHANGED
@@ -988,13 +988,13 @@ import { IsEnum as IsEnum13 } from "class-validator";
988
988
 
989
989
  // src/entities/user.entity.ts
990
990
  import {
991
- Entity as Entity74,
992
- Column as Column75,
993
- OneToMany as OneToMany25,
991
+ Entity as Entity78,
992
+ Column as Column79,
993
+ OneToMany as OneToMany27,
994
994
  OneToOne as OneToOne12,
995
- Index as Index67,
996
- ManyToOne as ManyToOne69,
997
- JoinColumn as JoinColumn70
995
+ Index as Index69,
996
+ ManyToOne as ManyToOne73,
997
+ JoinColumn as JoinColumn74
998
998
  } from "typeorm";
999
999
 
1000
1000
  // src/entities/base.entity.ts
@@ -6245,6 +6245,258 @@ InAppNotification = __decorateClass([
6245
6245
  Entity73("in_app_notifications")
6246
6246
  ], InAppNotification);
6247
6247
 
6248
+ // src/entities/user-subscription.entity.ts
6249
+ import { Entity as Entity77, Column as Column78, ManyToOne as ManyToOne72, OneToMany as OneToMany26, JoinColumn as JoinColumn73 } from "typeorm";
6250
+
6251
+ // src/entities/user-subscription-plan.entity.ts
6252
+ import { Entity as Entity76, Column as Column77, JoinColumn as JoinColumn72, ManyToOne as ManyToOne71, OneToMany as OneToMany25 } from "typeorm";
6253
+
6254
+ // src/entities/user-subscription-plan-feature.entity.ts
6255
+ import { Entity as Entity74, Column as Column75, ManyToOne as ManyToOne69, JoinColumn as JoinColumn70, Index as Index67 } from "typeorm";
6256
+ var UserSubscriptionPlanFeature = class extends BaseEntity {
6257
+ };
6258
+ __decorateClass([
6259
+ Column75({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
6260
+ Index67()
6261
+ ], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlanId", 2);
6262
+ __decorateClass([
6263
+ ManyToOne69(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanFeatures, { onDelete: "CASCADE", nullable: false }),
6264
+ JoinColumn70({ name: "user_subscription_plan_id" })
6265
+ ], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlan", 2);
6266
+ __decorateClass([
6267
+ Column75({ name: "plan_feature_id", type: "integer", nullable: false })
6268
+ ], UserSubscriptionPlanFeature.prototype, "planFeatureId", 2);
6269
+ __decorateClass([
6270
+ Column75({ name: "name", type: "varchar", length: 200 })
6271
+ ], UserSubscriptionPlanFeature.prototype, "name", 2);
6272
+ __decorateClass([
6273
+ Column75({ name: "slug", type: "varchar", length: 100 }),
6274
+ Index67()
6275
+ ], UserSubscriptionPlanFeature.prototype, "slug", 2);
6276
+ __decorateClass([
6277
+ Column75({ name: "tooltip", type: "varchar", length: 300, nullable: true })
6278
+ ], UserSubscriptionPlanFeature.prototype, "tooltip", 2);
6279
+ __decorateClass([
6280
+ Column75({ name: "sort_order", type: "smallint", default: 0 })
6281
+ ], UserSubscriptionPlanFeature.prototype, "sortOrder", 2);
6282
+ __decorateClass([
6283
+ Column75({ name: "is_active", type: "boolean", default: true })
6284
+ ], UserSubscriptionPlanFeature.prototype, "isActive", 2);
6285
+ UserSubscriptionPlanFeature = __decorateClass([
6286
+ Entity74("user_subscription_plan_features")
6287
+ ], UserSubscriptionPlanFeature);
6288
+
6289
+ // src/entities/user-subscription-plan-pricing.entity.ts
6290
+ import { Entity as Entity75, Column as Column76, ManyToOne as ManyToOne70, JoinColumn as JoinColumn71, Index as Index68 } from "typeorm";
6291
+ var UserSubscriptionPlanPricingBillingCycleEnum = /* @__PURE__ */ ((UserSubscriptionPlanPricingBillingCycleEnum2) => {
6292
+ UserSubscriptionPlanPricingBillingCycleEnum2["MONTHLY"] = "MONTHLY";
6293
+ UserSubscriptionPlanPricingBillingCycleEnum2["YEARLY"] = "YEARLY";
6294
+ return UserSubscriptionPlanPricingBillingCycleEnum2;
6295
+ })(UserSubscriptionPlanPricingBillingCycleEnum || {});
6296
+ var UserSubscriptionPlanPricing = class extends BaseEntity {
6297
+ };
6298
+ __decorateClass([
6299
+ Column76({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
6300
+ Index68()
6301
+ ], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlanId", 2);
6302
+ __decorateClass([
6303
+ ManyToOne70(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanPricing, { onDelete: "CASCADE", nullable: false }),
6304
+ JoinColumn71({ name: "user_subscription_plan_id" })
6305
+ ], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlan", 2);
6306
+ __decorateClass([
6307
+ Column76({ name: "plan_pricing_id", type: "integer", nullable: false })
6308
+ ], UserSubscriptionPlanPricing.prototype, "planPricingId", 2);
6309
+ __decorateClass([
6310
+ Column76({ name: "billing_cycle", type: "enum", enum: UserSubscriptionPlanPricingBillingCycleEnum })
6311
+ ], UserSubscriptionPlanPricing.prototype, "billingCycle", 2);
6312
+ __decorateClass([
6313
+ Column76({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
6314
+ ], UserSubscriptionPlanPricing.prototype, "price", 2);
6315
+ __decorateClass([
6316
+ Column76({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
6317
+ ], UserSubscriptionPlanPricing.prototype, "originalPrice", 2);
6318
+ __decorateClass([
6319
+ Column76({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
6320
+ ], UserSubscriptionPlanPricing.prototype, "discountPct", 2);
6321
+ __decorateClass([
6322
+ Column76({ name: "currency", type: "varchar", length: 3, default: "USD" })
6323
+ ], UserSubscriptionPlanPricing.prototype, "currency", 2);
6324
+ __decorateClass([
6325
+ Column76({ name: "is_free", type: "boolean", default: false })
6326
+ ], UserSubscriptionPlanPricing.prototype, "isFree", 2);
6327
+ __decorateClass([
6328
+ Column76({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true })
6329
+ ], UserSubscriptionPlanPricing.prototype, "stripePriceId", 2);
6330
+ __decorateClass([
6331
+ Column76({ name: "is_active", type: "boolean", default: true })
6332
+ ], UserSubscriptionPlanPricing.prototype, "isActive", 2);
6333
+ UserSubscriptionPlanPricing = __decorateClass([
6334
+ Entity75("user_subscription_plan_pricings")
6335
+ ], UserSubscriptionPlanPricing);
6336
+
6337
+ // src/entities/user-subscription-plan.entity.ts
6338
+ var UserSubscriptionPlanTypeEnum = /* @__PURE__ */ ((UserSubscriptionPlanTypeEnum2) => {
6339
+ UserSubscriptionPlanTypeEnum2["FREELANCER"] = "FREELANCER";
6340
+ UserSubscriptionPlanTypeEnum2["BUSINESS"] = "BUSINESS";
6341
+ return UserSubscriptionPlanTypeEnum2;
6342
+ })(UserSubscriptionPlanTypeEnum || {});
6343
+ var UserSubscriptionPlan = class extends BaseEntity {
6344
+ };
6345
+ __decorateClass([
6346
+ Column77({ name: "user_subscription_id", type: "integer", nullable: false })
6347
+ ], UserSubscriptionPlan.prototype, "userSubscriptionId", 2);
6348
+ __decorateClass([
6349
+ ManyToOne71(() => UserSubscription, (userSubscription) => userSubscription.userSubscriptionPlans, { onDelete: "CASCADE", nullable: false }),
6350
+ JoinColumn72({ name: "user_subscription_id" })
6351
+ ], UserSubscriptionPlan.prototype, "userSubscription", 2);
6352
+ __decorateClass([
6353
+ Column77({ name: "plan_id", type: "integer", nullable: false })
6354
+ ], UserSubscriptionPlan.prototype, "planId", 2);
6355
+ __decorateClass([
6356
+ Column77({ name: "name", type: "varchar", length: 100 })
6357
+ ], UserSubscriptionPlan.prototype, "name", 2);
6358
+ __decorateClass([
6359
+ Column77({ name: "slug", type: "varchar", length: 100 })
6360
+ ], UserSubscriptionPlan.prototype, "slug", 2);
6361
+ __decorateClass([
6362
+ Column77({ name: "badge_label", type: "varchar", length: 60, nullable: true })
6363
+ ], UserSubscriptionPlan.prototype, "badgeLabel", 2);
6364
+ __decorateClass([
6365
+ Column77({ name: "sort_order", type: "smallint", default: 0 })
6366
+ ], UserSubscriptionPlan.prototype, "sortOrder", 2);
6367
+ __decorateClass([
6368
+ Column77({ name: "is_active", type: "boolean", default: true })
6369
+ ], UserSubscriptionPlan.prototype, "isActive", 2);
6370
+ __decorateClass([
6371
+ Column77({ name: "plan_type", type: "enum", enum: UserSubscriptionPlanTypeEnum, default: "BUSINESS" /* BUSINESS */ })
6372
+ ], UserSubscriptionPlan.prototype, "planType", 2);
6373
+ __decorateClass([
6374
+ Column77({ name: "metadata", type: "jsonb", default: {} })
6375
+ ], UserSubscriptionPlan.prototype, "metadata", 2);
6376
+ __decorateClass([
6377
+ OneToMany25(() => UserSubscriptionPlanFeature, (f) => f.userSubscriptionPlan)
6378
+ ], UserSubscriptionPlan.prototype, "userSubscriptionPlanFeatures", 2);
6379
+ __decorateClass([
6380
+ OneToMany25(() => UserSubscriptionPlanPricing, (p) => p.userSubscriptionPlan)
6381
+ ], UserSubscriptionPlan.prototype, "userSubscriptionPlanPricing", 2);
6382
+ UserSubscriptionPlan = __decorateClass([
6383
+ Entity76("user_subscription_plans")
6384
+ ], UserSubscriptionPlan);
6385
+
6386
+ // src/entities/user-subscription.entity.ts
6387
+ var UserSubscriptionStatusEnum = /* @__PURE__ */ ((UserSubscriptionStatusEnum2) => {
6388
+ UserSubscriptionStatusEnum2["INCOMPLETE"] = "INCOMPLETE";
6389
+ UserSubscriptionStatusEnum2["INCOMPLETE_EXPIRED"] = "INCOMPLETE_EXPIRED";
6390
+ UserSubscriptionStatusEnum2["TRIALING"] = "TRIALING";
6391
+ UserSubscriptionStatusEnum2["ACTIVE"] = "ACTIVE";
6392
+ UserSubscriptionStatusEnum2["PAST_DUE"] = "PAST_DUE";
6393
+ UserSubscriptionStatusEnum2["CANCELED"] = "CANCELED";
6394
+ UserSubscriptionStatusEnum2["UNPAID"] = "UNPAID";
6395
+ UserSubscriptionStatusEnum2["EXPIRED"] = "EXPIRED";
6396
+ return UserSubscriptionStatusEnum2;
6397
+ })(UserSubscriptionStatusEnum || {});
6398
+ var UserSubscription = class extends BaseEntity {
6399
+ };
6400
+ __decorateClass([
6401
+ Column78({ name: "user_id", type: "integer", nullable: false })
6402
+ ], UserSubscription.prototype, "userId", 2);
6403
+ __decorateClass([
6404
+ ManyToOne72(() => User, (user) => user.userSubscriptions, { onDelete: "CASCADE", nullable: false }),
6405
+ JoinColumn73({ name: "user_id" })
6406
+ ], UserSubscription.prototype, "user", 2);
6407
+ __decorateClass([
6408
+ OneToMany26(() => UserSubscriptionPlan, (plan) => plan.userSubscription)
6409
+ ], UserSubscription.prototype, "userSubscriptionPlans", 2);
6410
+ __decorateClass([
6411
+ Column78({ name: "subscription_amount", type: "integer", nullable: false })
6412
+ ], UserSubscription.prototype, "subscriptionAmount", 2);
6413
+ __decorateClass([
6414
+ Column78({ name: "total_tax_amount", type: "integer", nullable: false })
6415
+ ], UserSubscription.prototype, "totalTaxAmount", 2);
6416
+ __decorateClass([
6417
+ Column78({ name: "total_amount", type: "integer", nullable: false })
6418
+ ], UserSubscription.prototype, "totalAmount", 2);
6419
+ __decorateClass([
6420
+ Column78({
6421
+ name: "status",
6422
+ type: "enum",
6423
+ enum: UserSubscriptionStatusEnum,
6424
+ default: "INCOMPLETE" /* INCOMPLETE */
6425
+ })
6426
+ ], UserSubscription.prototype, "status", 2);
6427
+ __decorateClass([
6428
+ Column78({
6429
+ name: "subscription_start_date",
6430
+ type: "timestamptz",
6431
+ nullable: true
6432
+ })
6433
+ ], UserSubscription.prototype, "subscriptionStartDate", 2);
6434
+ __decorateClass([
6435
+ Column78({
6436
+ name: "subscription_start_date_timestamp",
6437
+ type: "integer",
6438
+ nullable: true
6439
+ })
6440
+ ], UserSubscription.prototype, "subscriptionStartDateTimestamp", 2);
6441
+ __decorateClass([
6442
+ Column78({
6443
+ name: "subscription_end_date",
6444
+ type: "timestamptz",
6445
+ nullable: true
6446
+ })
6447
+ ], UserSubscription.prototype, "subscriptionEndDate", 2);
6448
+ __decorateClass([
6449
+ Column78({
6450
+ name: "subscription_end_date_timestamp",
6451
+ type: "integer",
6452
+ nullable: true
6453
+ })
6454
+ ], UserSubscription.prototype, "subscriptionEndDateTimestamp", 2);
6455
+ __decorateClass([
6456
+ Column78({
6457
+ name: "stripe_price_id",
6458
+ type: "varchar",
6459
+ length: 100,
6460
+ nullable: true
6461
+ })
6462
+ ], UserSubscription.prototype, "stripePriceId", 2);
6463
+ __decorateClass([
6464
+ Column78({
6465
+ name: "stripe_product_id",
6466
+ type: "varchar",
6467
+ length: 100,
6468
+ nullable: true
6469
+ })
6470
+ ], UserSubscription.prototype, "stripeProductId", 2);
6471
+ __decorateClass([
6472
+ Column78({
6473
+ name: "stripe_customer_id",
6474
+ type: "varchar",
6475
+ length: 64,
6476
+ nullable: true
6477
+ })
6478
+ ], UserSubscription.prototype, "stripeCustomerId", 2);
6479
+ __decorateClass([
6480
+ Column78({
6481
+ name: "stripe_subscription_id",
6482
+ type: "varchar",
6483
+ length: 64,
6484
+ nullable: true,
6485
+ unique: true
6486
+ })
6487
+ ], UserSubscription.prototype, "stripeSubscriptionId", 2);
6488
+ __decorateClass([
6489
+ Column78({
6490
+ name: "stripe_checkout_session_id",
6491
+ type: "varchar",
6492
+ length: 255,
6493
+ nullable: true
6494
+ })
6495
+ ], UserSubscription.prototype, "stripeCheckoutSessionId", 2);
6496
+ UserSubscription = __decorateClass([
6497
+ Entity77("user_subscriptions")
6498
+ ], UserSubscription);
6499
+
6248
6500
  // src/entities/user.entity.ts
6249
6501
  var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
6250
6502
  AccountType4["SUPER_ADMIN"] = "SUPER_ADMIN";
@@ -6271,51 +6523,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
6271
6523
  var User = class extends BaseEntity {
6272
6524
  };
6273
6525
  __decorateClass([
6274
- Column75({ name: "unique_id", type: "varchar", unique: true })
6526
+ Column79({ name: "unique_id", type: "varchar", unique: true })
6275
6527
  ], User.prototype, "uniqueId", 2);
6276
6528
  __decorateClass([
6277
- Column75({ name: "parent_id", type: "integer", nullable: true }),
6278
- Index67()
6529
+ Column79({ name: "parent_id", type: "integer", nullable: true }),
6530
+ Index69()
6279
6531
  ], User.prototype, "parentId", 2);
6280
6532
  __decorateClass([
6281
- ManyToOne69(() => User, (user) => user.children, { nullable: true }),
6282
- JoinColumn70({ name: "parent_id" })
6533
+ ManyToOne73(() => User, (user) => user.children, { nullable: true }),
6534
+ JoinColumn74({ name: "parent_id" })
6283
6535
  ], User.prototype, "parent", 2);
6284
6536
  __decorateClass([
6285
- OneToMany25(() => User, (user) => user.parent)
6537
+ OneToMany27(() => User, (user) => user.parent)
6286
6538
  ], User.prototype, "children", 2);
6287
6539
  __decorateClass([
6288
- Column75({ name: "username", type: "varchar", unique: true, nullable: true })
6540
+ Column79({ name: "username", type: "varchar", unique: true, nullable: true })
6289
6541
  ], User.prototype, "username", 2);
6290
6542
  __decorateClass([
6291
- Column75({ name: "first_name", type: "varchar", length: 100, nullable: true })
6543
+ Column79({ name: "first_name", type: "varchar", length: 100, nullable: true })
6292
6544
  ], User.prototype, "firstName", 2);
6293
6545
  __decorateClass([
6294
- Column75({ name: "last_name", type: "varchar", length: 100, nullable: true })
6546
+ Column79({ name: "last_name", type: "varchar", length: 100, nullable: true })
6295
6547
  ], User.prototype, "lastName", 2);
6296
6548
  __decorateClass([
6297
- Column75({ name: "date_of_birth", type: "date", nullable: true })
6549
+ Column79({ name: "date_of_birth", type: "date", nullable: true })
6298
6550
  ], User.prototype, "dateOfBirth", 2);
6299
6551
  __decorateClass([
6300
- Column75({ name: "gender", type: "varchar", length: 10, nullable: true })
6552
+ Column79({ name: "gender", type: "varchar", length: 10, nullable: true })
6301
6553
  ], User.prototype, "gender", 2);
6302
6554
  __decorateClass([
6303
- Column75({ name: "profile_picture_url", type: "text", nullable: true })
6555
+ Column79({ name: "profile_picture_url", type: "text", nullable: true })
6304
6556
  ], User.prototype, "profilePictureUrl", 2);
6305
6557
  __decorateClass([
6306
- Column75({ name: "email", type: "varchar", unique: true })
6558
+ Column79({ name: "email", type: "varchar", unique: true })
6307
6559
  ], User.prototype, "email", 2);
6308
6560
  __decorateClass([
6309
- Column75({ name: "mobile_code", type: "varchar", nullable: true })
6561
+ Column79({ name: "mobile_code", type: "varchar", nullable: true })
6310
6562
  ], User.prototype, "mobileCode", 2);
6311
6563
  __decorateClass([
6312
- Column75({ name: "mobile", type: "varchar", nullable: true })
6564
+ Column79({ name: "mobile", type: "varchar", nullable: true })
6313
6565
  ], User.prototype, "mobile", 2);
6314
6566
  __decorateClass([
6315
- Column75({ name: "password", type: "varchar", nullable: true })
6567
+ Column79({ name: "password", type: "varchar", nullable: true })
6316
6568
  ], User.prototype, "password", 2);
6317
6569
  __decorateClass([
6318
- Column75({
6570
+ Column79({
6319
6571
  name: "account_type",
6320
6572
  type: "enum",
6321
6573
  enum: AccountType2,
@@ -6323,7 +6575,7 @@ __decorateClass([
6323
6575
  })
6324
6576
  ], User.prototype, "accountType", 2);
6325
6577
  __decorateClass([
6326
- Column75({
6578
+ Column79({
6327
6579
  name: "account_status",
6328
6580
  type: "enum",
6329
6581
  enum: AccountStatus,
@@ -6331,45 +6583,45 @@ __decorateClass([
6331
6583
  })
6332
6584
  ], User.prototype, "accountStatus", 2);
6333
6585
  __decorateClass([
6334
- Column75({ name: "is_email_verified", type: "boolean", default: false })
6586
+ Column79({ name: "is_email_verified", type: "boolean", default: false })
6335
6587
  ], User.prototype, "isEmailVerified", 2);
6336
6588
  __decorateClass([
6337
- Column75({ name: "is_mobile_verified", type: "boolean", default: false })
6589
+ Column79({ name: "is_mobile_verified", type: "boolean", default: false })
6338
6590
  ], User.prototype, "isMobileVerified", 2);
6339
6591
  __decorateClass([
6340
- Column75({ name: "is_social", type: "boolean", default: false })
6592
+ Column79({ name: "is_social", type: "boolean", default: false })
6341
6593
  ], User.prototype, "isSocial", 2);
6342
6594
  __decorateClass([
6343
- Column75({ name: "is_referral_user", type: "boolean", default: false })
6595
+ Column79({ name: "is_referral_user", type: "boolean", default: false })
6344
6596
  ], User.prototype, "isReferralUser", 2);
6345
6597
  __decorateClass([
6346
- Column75({
6598
+ Column79({
6347
6599
  name: "last_login_at",
6348
6600
  type: "timestamp with time zone",
6349
6601
  nullable: true
6350
6602
  })
6351
6603
  ], User.prototype, "lastLoginAt", 2);
6352
6604
  __decorateClass([
6353
- Column75({ name: "last_login_ip", type: "varchar", nullable: true })
6605
+ Column79({ name: "last_login_ip", type: "varchar", nullable: true })
6354
6606
  ], User.prototype, "lastLoginIp", 2);
6355
6607
  __decorateClass([
6356
- Column75({ name: "reset_token", type: "varchar", nullable: true })
6608
+ Column79({ name: "reset_token", type: "varchar", nullable: true })
6357
6609
  ], User.prototype, "resetToken", 2);
6358
6610
  __decorateClass([
6359
- Column75({
6611
+ Column79({
6360
6612
  name: "reset_token_expire_at",
6361
6613
  type: "timestamp with time zone",
6362
6614
  nullable: true
6363
6615
  })
6364
6616
  ], User.prototype, "resetTokenExpireAt", 2);
6365
6617
  __decorateClass([
6366
- Column75({ name: "set_password_token", type: "varchar", nullable: true })
6618
+ Column79({ name: "set_password_token", type: "varchar", nullable: true })
6367
6619
  ], User.prototype, "setPasswordToken", 2);
6368
6620
  __decorateClass([
6369
- OneToMany25(() => RefreshToken, (token) => token.user)
6621
+ OneToMany27(() => RefreshToken, (token) => token.user)
6370
6622
  ], User.prototype, "refreshTokens", 2);
6371
6623
  __decorateClass([
6372
- Column75({
6624
+ Column79({
6373
6625
  name: "provider",
6374
6626
  type: "enum",
6375
6627
  enum: Provider,
@@ -6378,43 +6630,43 @@ __decorateClass([
6378
6630
  })
6379
6631
  ], User.prototype, "provider", 2);
6380
6632
  __decorateClass([
6381
- Column75({ name: "provider_token", type: "varchar", nullable: true })
6633
+ Column79({ name: "provider_token", type: "varchar", nullable: true })
6382
6634
  ], User.prototype, "providerToken", 2);
6383
6635
  __decorateClass([
6384
- Column75({ name: "linkedin_id", type: "varchar", nullable: true })
6636
+ Column79({ name: "linkedin_id", type: "varchar", nullable: true })
6385
6637
  ], User.prototype, "linkedInId", 2);
6386
6638
  __decorateClass([
6387
- Column75({ name: "google_id", type: "varchar", nullable: true })
6639
+ Column79({ name: "google_id", type: "varchar", nullable: true })
6388
6640
  ], User.prototype, "googleId", 2);
6389
6641
  __decorateClass([
6390
- Column75({ name: "gitlabs_id", type: "varchar", nullable: true })
6642
+ Column79({ name: "gitlabs_id", type: "varchar", nullable: true })
6391
6643
  ], User.prototype, "gitLabsId", 2);
6392
6644
  __decorateClass([
6393
- Column75({ name: "onboarded_by", type: "varchar", nullable: true })
6645
+ Column79({ name: "onboarded_by", type: "varchar", nullable: true })
6394
6646
  ], User.prototype, "onBoardedBy", 2);
6395
6647
  __decorateClass([
6396
- OneToMany25(() => Otp, (otp) => otp.user)
6648
+ OneToMany27(() => Otp, (otp) => otp.user)
6397
6649
  ], User.prototype, "otps", 2);
6398
6650
  __decorateClass([
6399
- OneToMany25(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
6651
+ OneToMany27(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
6400
6652
  ], User.prototype, "senseloafLogs", 2);
6401
6653
  __decorateClass([
6402
6654
  OneToOne12(() => CompanyProfile, (companyProfile) => companyProfile.user)
6403
6655
  ], User.prototype, "companyProfile", 2);
6404
6656
  __decorateClass([
6405
- OneToMany25(() => CompanySkill, (companySkill) => companySkill.user)
6657
+ OneToMany27(() => CompanySkill, (companySkill) => companySkill.user)
6406
6658
  ], User.prototype, "companySkills", 2);
6407
6659
  __decorateClass([
6408
- OneToMany25(
6660
+ OneToMany27(
6409
6661
  () => CompanyMemberRole,
6410
6662
  (companyMemberRole) => companyMemberRole.user
6411
6663
  )
6412
6664
  ], User.prototype, "companyMemberRoles", 2);
6413
6665
  __decorateClass([
6414
- OneToMany25(() => AiInterview, (aiInterview) => aiInterview.interviwer)
6666
+ OneToMany27(() => AiInterview, (aiInterview) => aiInterview.interviwer)
6415
6667
  ], User.prototype, "companyAiInterview", 2);
6416
6668
  __decorateClass([
6417
- OneToMany25(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
6669
+ OneToMany27(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
6418
6670
  ], User.prototype, "clientF2FInterviews", 2);
6419
6671
  __decorateClass([
6420
6672
  OneToOne12(
@@ -6426,61 +6678,61 @@ __decorateClass([
6426
6678
  OneToOne12(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
6427
6679
  ], User.prototype, "freelancerResume", 2);
6428
6680
  __decorateClass([
6429
- OneToMany25(
6681
+ OneToMany27(
6430
6682
  () => FreelancerAssessmentRequest,
6431
6683
  (freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
6432
6684
  )
6433
6685
  ], User.prototype, "freelancerAssessmentRequests", 2);
6434
6686
  __decorateClass([
6435
- OneToMany25(
6687
+ OneToMany27(
6436
6688
  () => FreelancerAssessmentRequest,
6437
6689
  (freelancerAssessment) => freelancerAssessment.approvedBy
6438
6690
  )
6439
6691
  ], User.prototype, "assessmentRequests", 2);
6440
6692
  __decorateClass([
6441
- OneToMany25(
6693
+ OneToMany27(
6442
6694
  () => FreelancerAssessment,
6443
6695
  (freelancerAssessment) => freelancerAssessment.user
6444
6696
  )
6445
6697
  ], User.prototype, "assessments", 2);
6446
6698
  __decorateClass([
6447
- OneToMany25(
6699
+ OneToMany27(
6448
6700
  () => AssessmentAnswer,
6449
6701
  (assessmentAnswer) => assessmentAnswer.user
6450
6702
  )
6451
6703
  ], User.prototype, "assessmentAnswers", 2);
6452
6704
  __decorateClass([
6453
- OneToMany25(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
6705
+ OneToMany27(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
6454
6706
  ], User.prototype, "freelancerSkills", 2);
6455
6707
  __decorateClass([
6456
- OneToMany25(
6708
+ OneToMany27(
6457
6709
  () => FreelancerExperience,
6458
6710
  (freelancerExperience) => freelancerExperience.user
6459
6711
  )
6460
6712
  ], User.prototype, "freelancerExperience", 2);
6461
6713
  __decorateClass([
6462
- OneToMany25(
6714
+ OneToMany27(
6463
6715
  () => FreelancerEducation,
6464
6716
  (freelancerEducation) => freelancerEducation.user
6465
6717
  )
6466
6718
  ], User.prototype, "freelancerEducation", 2);
6467
6719
  __decorateClass([
6468
- OneToMany25(
6720
+ OneToMany27(
6469
6721
  () => FreelancerProject,
6470
6722
  (freelancerProject) => freelancerProject.user
6471
6723
  )
6472
6724
  ], User.prototype, "freelancerProject", 2);
6473
6725
  __decorateClass([
6474
- OneToMany25(
6726
+ OneToMany27(
6475
6727
  () => FreelancerCaseStudy,
6476
6728
  (freelancerCaseStudy) => freelancerCaseStudy.user
6477
6729
  )
6478
6730
  ], User.prototype, "freelancerCaseStudy", 2);
6479
6731
  __decorateClass([
6480
- OneToMany25(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
6732
+ OneToMany27(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
6481
6733
  ], User.prototype, "freelancerTool", 2);
6482
6734
  __decorateClass([
6483
- OneToMany25(
6735
+ OneToMany27(
6484
6736
  () => FreelancerFramework,
6485
6737
  (freelancerFramework) => freelancerFramework.user
6486
6738
  )
@@ -6492,152 +6744,155 @@ __decorateClass([
6492
6744
  )
6493
6745
  ], User.prototype, "freelancerDeclaration", 2);
6494
6746
  __decorateClass([
6495
- OneToMany25(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
6747
+ OneToMany27(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
6496
6748
  ], User.prototype, "freelancerMcq", 2);
6497
6749
  __decorateClass([
6498
- OneToMany25(() => AiInterview, (aiInterview) => aiInterview.candidate)
6750
+ OneToMany27(() => AiInterview, (aiInterview) => aiInterview.candidate)
6499
6751
  ], User.prototype, "freelancerAiInterview", 2);
6500
6752
  __decorateClass([
6501
- OneToMany25(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
6753
+ OneToMany27(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
6502
6754
  ], User.prototype, "freelancerF2FInterviews", 2);
6503
6755
  __decorateClass([
6504
- OneToMany25(
6756
+ OneToMany27(
6505
6757
  () => F2fInterviewRescheduleRequest,
6506
6758
  (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
6507
6759
  )
6508
6760
  ], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
6509
6761
  __decorateClass([
6510
- OneToMany25(
6762
+ OneToMany27(
6511
6763
  () => AiInterviewRescheduleRequest,
6512
6764
  (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
6513
6765
  )
6514
6766
  ], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
6515
6767
  __decorateClass([
6516
- OneToMany25(
6768
+ OneToMany27(
6517
6769
  () => AiInterviewRescheduleRequest,
6518
6770
  (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
6519
6771
  )
6520
6772
  ], User.prototype, "clientAiInterviewRescheduleRequests", 2);
6521
6773
  __decorateClass([
6522
- OneToMany25(() => Job, (job) => job.user)
6774
+ OneToMany27(() => Job, (job) => job.user)
6523
6775
  ], User.prototype, "jobs", 2);
6524
6776
  __decorateClass([
6525
- OneToMany25(() => Task, (task) => task.client)
6777
+ OneToMany27(() => Task, (task) => task.client)
6526
6778
  ], User.prototype, "clientTasks", 2);
6527
6779
  __decorateClass([
6528
- OneToMany25(() => Task, (task) => task.freelancer)
6780
+ OneToMany27(() => Task, (task) => task.freelancer)
6529
6781
  ], User.prototype, "freelancerTasks", 2);
6530
6782
  __decorateClass([
6531
- OneToMany25(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
6783
+ OneToMany27(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
6532
6784
  ], User.prototype, "raisedTaskQueries", 2);
6533
6785
  __decorateClass([
6534
- OneToMany25(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
6786
+ OneToMany27(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
6535
6787
  ], User.prototype, "assignedTaskQueries", 2);
6536
6788
  __decorateClass([
6537
- OneToMany25(() => TaskQueryMessage, (message) => message.senderUser)
6789
+ OneToMany27(() => TaskQueryMessage, (message) => message.senderUser)
6538
6790
  ], User.prototype, "taskQueryMessages", 2);
6539
6791
  __decorateClass([
6540
- OneToMany25(() => JobApplication, (jobApplication) => jobApplication.user)
6792
+ OneToMany27(() => JobApplication, (jobApplication) => jobApplication.user)
6541
6793
  ], User.prototype, "jobApplications", 2);
6542
6794
  __decorateClass([
6543
- OneToMany25(() => Interview, (interview) => interview.user)
6795
+ OneToMany27(() => Interview, (interview) => interview.user)
6544
6796
  ], User.prototype, "interviews", 2);
6545
6797
  __decorateClass([
6546
- OneToMany25(() => BankDetail, (bankDetail) => bankDetail.user)
6798
+ OneToMany27(() => BankDetail, (bankDetail) => bankDetail.user)
6547
6799
  ], User.prototype, "bankDetail", 2);
6548
6800
  __decorateClass([
6549
- OneToMany25(
6801
+ OneToMany27(
6550
6802
  () => SystemPreference,
6551
6803
  (systemPreference) => systemPreference.user
6552
6804
  )
6553
6805
  ], User.prototype, "systemPreference", 2);
6554
6806
  __decorateClass([
6555
- OneToMany25(() => Rating, (rating) => rating.reviewer)
6807
+ OneToMany27(() => Rating, (rating) => rating.reviewer)
6556
6808
  ], User.prototype, "givenRatings", 2);
6557
6809
  __decorateClass([
6558
- OneToMany25(() => Rating, (rating) => rating.reviewee)
6810
+ OneToMany27(() => Rating, (rating) => rating.reviewee)
6559
6811
  ], User.prototype, "receivedRatings", 2);
6560
6812
  __decorateClass([
6561
- OneToMany25(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
6813
+ OneToMany27(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
6562
6814
  ], User.prototype, "adminUserRoles", 2);
6563
6815
  __decorateClass([
6564
- OneToMany25(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
6816
+ OneToMany27(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
6565
6817
  cascade: true
6566
6818
  })
6567
6819
  ], User.prototype, "clientContractSummaries", 2);
6568
6820
  __decorateClass([
6569
- OneToMany25(() => Contract, (contract) => contract.client)
6821
+ OneToMany27(() => Contract, (contract) => contract.client)
6570
6822
  ], User.prototype, "clientContracts", 2);
6571
6823
  __decorateClass([
6572
- OneToMany25(() => Hiring, (hiring) => hiring.client)
6824
+ OneToMany27(() => Hiring, (hiring) => hiring.client)
6573
6825
  ], User.prototype, "clientHirings", 2);
6574
6826
  __decorateClass([
6575
- OneToMany25(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
6827
+ OneToMany27(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
6576
6828
  ], User.prototype, "clientEscrowWallets", 2);
6577
6829
  __decorateClass([
6578
- OneToMany25(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
6830
+ OneToMany27(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
6579
6831
  cascade: true
6580
6832
  })
6581
6833
  ], User.prototype, "freelancerContractSummaries", 2);
6582
6834
  __decorateClass([
6583
- OneToMany25(() => Contract, (contract) => contract.freelancer)
6835
+ OneToMany27(() => Contract, (contract) => contract.freelancer)
6584
6836
  ], User.prototype, "freelancerContracts", 2);
6585
6837
  __decorateClass([
6586
- OneToMany25(() => Hiring, (hiring) => hiring.freelancer)
6838
+ OneToMany27(() => Hiring, (hiring) => hiring.freelancer)
6587
6839
  ], User.prototype, "freelancerHirings", 2);
6588
6840
  __decorateClass([
6589
- OneToMany25(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
6841
+ OneToMany27(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
6590
6842
  ], User.prototype, "freelancerEscrowWallets", 2);
6591
6843
  __decorateClass([
6592
6844
  OneToOne12(() => Signature, (signature) => signature.user)
6593
6845
  ], User.prototype, "signatures", 2);
6594
6846
  __decorateClass([
6595
- OneToMany25(() => Timesheet, (timesheet) => timesheet.client)
6847
+ OneToMany27(() => Timesheet, (timesheet) => timesheet.client)
6596
6848
  ], User.prototype, "clientTimesheets", 2);
6597
6849
  __decorateClass([
6598
- OneToMany25(() => Timesheet, (timesheet) => timesheet.freelancer)
6850
+ OneToMany27(() => Timesheet, (timesheet) => timesheet.freelancer)
6599
6851
  ], User.prototype, "freelancerTimesheets", 2);
6600
6852
  __decorateClass([
6601
- OneToMany25(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
6853
+ OneToMany27(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
6602
6854
  ], User.prototype, "clientTimesheetLine", 2);
6603
6855
  __decorateClass([
6604
- OneToMany25(() => Invoice, (invoice) => invoice.client)
6856
+ OneToMany27(() => Invoice, (invoice) => invoice.client)
6605
6857
  ], User.prototype, "clientInvoice", 2);
6606
6858
  __decorateClass([
6607
- OneToMany25(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
6859
+ OneToMany27(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
6608
6860
  ], User.prototype, "freelancerTimesheetLine", 2);
6609
6861
  __decorateClass([
6610
- OneToMany25(() => Invoice, (invoice) => invoice.freelancer)
6862
+ OneToMany27(() => Invoice, (invoice) => invoice.freelancer)
6611
6863
  ], User.prototype, "freelancerInvoice", 2);
6612
6864
  __decorateClass([
6613
- OneToMany25(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
6865
+ OneToMany27(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
6614
6866
  ], User.prototype, "clientPreferencesGiven", 2);
6615
6867
  __decorateClass([
6616
- OneToMany25(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
6868
+ OneToMany27(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
6617
6869
  ], User.prototype, "clientPreferencesReceived", 2);
6618
6870
  __decorateClass([
6619
- OneToMany25(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
6871
+ OneToMany27(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
6620
6872
  ], User.prototype, "initiatedDisputes", 2);
6621
6873
  __decorateClass([
6622
- OneToMany25(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
6874
+ OneToMany27(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
6623
6875
  ], User.prototype, "respondentDisputes", 2);
6624
6876
  __decorateClass([
6625
6877
  OneToOne12(() => Wallet, (wallet) => wallet.user)
6626
6878
  ], User.prototype, "wallet", 2);
6627
6879
  __decorateClass([
6628
- OneToMany25(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
6880
+ OneToMany27(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
6629
6881
  ], User.prototype, "stripeTransactions", 2);
6630
6882
  __decorateClass([
6631
- OneToMany25(() => Dispute, (dispute) => dispute.client)
6883
+ OneToMany27(() => Dispute, (dispute) => dispute.client)
6632
6884
  ], User.prototype, "clientDisputes", 2);
6633
6885
  __decorateClass([
6634
- OneToMany25(() => Dispute, (dispute) => dispute.freelancer)
6886
+ OneToMany27(() => Dispute, (dispute) => dispute.freelancer)
6635
6887
  ], User.prototype, "freelancerDisputes", 2);
6636
6888
  __decorateClass([
6637
- OneToMany25(() => InAppNotification, (inAppNotification) => inAppNotification.user)
6889
+ OneToMany27(() => InAppNotification, (inAppNotification) => inAppNotification.user)
6638
6890
  ], User.prototype, "inAppNotifications", 2);
6891
+ __decorateClass([
6892
+ OneToMany27(() => UserSubscription, (userSubscription) => userSubscription.user)
6893
+ ], User.prototype, "userSubscriptions", 2);
6639
6894
  User = __decorateClass([
6640
- Entity74("users")
6895
+ Entity78("users")
6641
6896
  ], User);
6642
6897
 
6643
6898
  // src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
@@ -13858,11 +14113,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
13858
14113
  };
13859
14114
 
13860
14115
  // src/entities/sequence-generator.entity.ts
13861
- import { Entity as Entity75, Column as Column76 } from "typeorm";
14116
+ import { Entity as Entity79, Column as Column80 } from "typeorm";
13862
14117
  var SequenceGenerator = class extends BaseEntity {
13863
14118
  };
13864
14119
  __decorateClass([
13865
- Column76({
14120
+ Column80({
13866
14121
  name: "module",
13867
14122
  type: "varchar",
13868
14123
  length: 50,
@@ -13871,7 +14126,7 @@ __decorateClass([
13871
14126
  })
13872
14127
  ], SequenceGenerator.prototype, "module", 2);
13873
14128
  __decorateClass([
13874
- Column76({
14129
+ Column80({
13875
14130
  name: "prefix",
13876
14131
  type: "varchar",
13877
14132
  length: 10,
@@ -13880,7 +14135,7 @@ __decorateClass([
13880
14135
  })
13881
14136
  ], SequenceGenerator.prototype, "prefix", 2);
13882
14137
  __decorateClass([
13883
- Column76({
14138
+ Column80({
13884
14139
  name: "last_sequence",
13885
14140
  type: "int",
13886
14141
  nullable: false,
@@ -13888,7 +14143,7 @@ __decorateClass([
13888
14143
  })
13889
14144
  ], SequenceGenerator.prototype, "lastSequence", 2);
13890
14145
  __decorateClass([
13891
- Column76({
14146
+ Column80({
13892
14147
  name: "year",
13893
14148
  type: "int",
13894
14149
  nullable: true,
@@ -13896,11 +14151,11 @@ __decorateClass([
13896
14151
  })
13897
14152
  ], SequenceGenerator.prototype, "year", 2);
13898
14153
  SequenceGenerator = __decorateClass([
13899
- Entity75("sequence_generators")
14154
+ Entity79("sequence_generators")
13900
14155
  ], SequenceGenerator);
13901
14156
 
13902
14157
  // src/entities/question.entity.ts
13903
- import { Entity as Entity76, Column as Column77 } from "typeorm";
14158
+ import { Entity as Entity80, Column as Column81 } from "typeorm";
13904
14159
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
13905
14160
  QuestionFor2["CLIENT"] = "CLIENT";
13906
14161
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -13909,16 +14164,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
13909
14164
  var Question = class extends BaseEntity {
13910
14165
  };
13911
14166
  __decorateClass([
13912
- Column77({ name: "question", type: "varchar" })
14167
+ Column81({ name: "question", type: "varchar" })
13913
14168
  ], Question.prototype, "question", 2);
13914
14169
  __decorateClass([
13915
- Column77({ name: "hint", type: "varchar", nullable: true })
14170
+ Column81({ name: "hint", type: "varchar", nullable: true })
13916
14171
  ], Question.prototype, "hint", 2);
13917
14172
  __decorateClass([
13918
- Column77({ name: "slug", type: "varchar", nullable: true, unique: true })
14173
+ Column81({ name: "slug", type: "varchar", nullable: true, unique: true })
13919
14174
  ], Question.prototype, "slug", 2);
13920
14175
  __decorateClass([
13921
- Column77({
14176
+ Column81({
13922
14177
  name: "question_for",
13923
14178
  type: "enum",
13924
14179
  enum: QuestionFor,
@@ -13926,49 +14181,49 @@ __decorateClass([
13926
14181
  })
13927
14182
  ], Question.prototype, "questionFor", 2);
13928
14183
  __decorateClass([
13929
- Column77({ name: "type", type: "varchar", nullable: true })
14184
+ Column81({ name: "type", type: "varchar", nullable: true })
13930
14185
  ], Question.prototype, "type", 2);
13931
14186
  __decorateClass([
13932
- Column77({ name: "options", type: "jsonb", nullable: true })
14187
+ Column81({ name: "options", type: "jsonb", nullable: true })
13933
14188
  ], Question.prototype, "options", 2);
13934
14189
  __decorateClass([
13935
- Column77({ name: "is_active", type: "boolean", default: false })
14190
+ Column81({ name: "is_active", type: "boolean", default: false })
13936
14191
  ], Question.prototype, "isActive", 2);
13937
14192
  Question = __decorateClass([
13938
- Entity76("questions")
14193
+ Entity80("questions")
13939
14194
  ], Question);
13940
14195
 
13941
14196
  // src/entities/skill.entity.ts
13942
- import { Entity as Entity77, Column as Column78 } from "typeorm";
14197
+ import { Entity as Entity81, Column as Column82 } from "typeorm";
13943
14198
  var Skill = class extends BaseEntity {
13944
14199
  };
13945
14200
  __decorateClass([
13946
- Column78({ name: "name", type: "varchar", nullable: true })
14201
+ Column82({ name: "name", type: "varchar", nullable: true })
13947
14202
  ], Skill.prototype, "name", 2);
13948
14203
  __decorateClass([
13949
- Column78({ name: "slug", type: "varchar", nullable: true, unique: true })
14204
+ Column82({ name: "slug", type: "varchar", nullable: true, unique: true })
13950
14205
  ], Skill.prototype, "slug", 2);
13951
14206
  __decorateClass([
13952
- Column78({ name: "is_active", type: "boolean", default: false })
14207
+ Column82({ name: "is_active", type: "boolean", default: false })
13953
14208
  ], Skill.prototype, "isActive", 2);
13954
14209
  Skill = __decorateClass([
13955
- Entity77("skills")
14210
+ Entity81("skills")
13956
14211
  ], Skill);
13957
14212
 
13958
14213
  // src/entities/skill-catalog.entity.ts
13959
14214
  import {
13960
- Entity as Entity78,
13961
- Column as Column79,
13962
- Index as Index68
14215
+ Entity as Entity82,
14216
+ Column as Column83,
14217
+ Index as Index70
13963
14218
  } from "typeorm";
13964
14219
  var SkillCatalog = class extends BaseEntity {
13965
14220
  };
13966
14221
  __decorateClass([
13967
- Column79({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
13968
- Index68()
14222
+ Column83({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14223
+ Index70()
13969
14224
  ], SkillCatalog.prototype, "canonicalName", 2);
13970
14225
  __decorateClass([
13971
- Column79({
14226
+ Column83({
13972
14227
  name: "aliases",
13973
14228
  type: "text",
13974
14229
  array: true,
@@ -13976,20 +14231,20 @@ __decorateClass([
13976
14231
  })
13977
14232
  ], SkillCatalog.prototype, "aliases", 2);
13978
14233
  __decorateClass([
13979
- Column79({
14234
+ Column83({
13980
14235
  name: "variations",
13981
14236
  type: "jsonb",
13982
14237
  default: "{}"
13983
14238
  })
13984
14239
  ], SkillCatalog.prototype, "variations", 2);
13985
14240
  __decorateClass([
13986
- Column79({ name: "category", type: "varchar", length: 50, nullable: true })
14241
+ Column83({ name: "category", type: "varchar", length: 50, nullable: true })
13987
14242
  ], SkillCatalog.prototype, "category", 2);
13988
14243
  __decorateClass([
13989
- Column79({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
14244
+ Column83({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
13990
14245
  ], SkillCatalog.prototype, "parentSkill", 2);
13991
14246
  __decorateClass([
13992
- Column79({
14247
+ Column83({
13993
14248
  name: "related_skills",
13994
14249
  type: "text",
13995
14250
  array: true,
@@ -13997,70 +14252,70 @@ __decorateClass([
13997
14252
  })
13998
14253
  ], SkillCatalog.prototype, "relatedSkills", 2);
13999
14254
  __decorateClass([
14000
- Column79({ name: "usage_count", type: "integer", default: 0 }),
14001
- Index68()
14255
+ Column83({ name: "usage_count", type: "integer", default: 0 }),
14256
+ Index70()
14002
14257
  ], SkillCatalog.prototype, "usageCount", 2);
14003
14258
  __decorateClass([
14004
- Column79({ name: "is_verified", type: "boolean", default: false })
14259
+ Column83({ name: "is_verified", type: "boolean", default: false })
14005
14260
  ], SkillCatalog.prototype, "isVerified", 2);
14006
14261
  __decorateClass([
14007
- Column79({ name: "first_seen_date", type: "date" })
14262
+ Column83({ name: "first_seen_date", type: "date" })
14008
14263
  ], SkillCatalog.prototype, "firstSeenDate", 2);
14009
14264
  __decorateClass([
14010
- Column79({ name: "last_updated_date", type: "date" })
14265
+ Column83({ name: "last_updated_date", type: "date" })
14011
14266
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
14012
14267
  __decorateClass([
14013
- Column79({
14268
+ Column83({
14014
14269
  name: "search_vector",
14015
14270
  type: "tsvector",
14016
14271
  nullable: true
14017
14272
  })
14018
14273
  ], SkillCatalog.prototype, "searchVector", 2);
14019
14274
  SkillCatalog = __decorateClass([
14020
- Entity78("skill_catalogs")
14275
+ Entity82("skill_catalogs")
14021
14276
  ], SkillCatalog);
14022
14277
 
14023
14278
  // src/entities/job-role.entity.ts
14024
- import { Entity as Entity79, Column as Column80 } from "typeorm";
14279
+ import { Entity as Entity83, Column as Column84 } from "typeorm";
14025
14280
  var JobRoles = class extends BaseEntity {
14026
14281
  };
14027
14282
  __decorateClass([
14028
- Column80({ name: "slug", type: "varchar", nullable: true, unique: true })
14283
+ Column84({ name: "slug", type: "varchar", nullable: true, unique: true })
14029
14284
  ], JobRoles.prototype, "slug", 2);
14030
14285
  __decorateClass([
14031
- Column80({ name: "name", type: "varchar", nullable: true })
14286
+ Column84({ name: "name", type: "varchar", nullable: true })
14032
14287
  ], JobRoles.prototype, "name", 2);
14033
14288
  __decorateClass([
14034
- Column80({ name: "is_active", type: "boolean", default: true })
14289
+ Column84({ name: "is_active", type: "boolean", default: true })
14035
14290
  ], JobRoles.prototype, "isActive", 2);
14036
14291
  JobRoles = __decorateClass([
14037
- Entity79("job_roles")
14292
+ Entity83("job_roles")
14038
14293
  ], JobRoles);
14039
14294
 
14040
14295
  // src/entities/cms.entity.ts
14041
- import { Entity as Entity80, Column as Column81 } from "typeorm";
14296
+ import { Entity as Entity84, Column as Column85 } from "typeorm";
14042
14297
  var Cms = class extends BaseEntity {
14043
14298
  };
14044
14299
  __decorateClass([
14045
- Column81({ name: "title", type: "varchar", nullable: true })
14300
+ Column85({ name: "title", type: "varchar", nullable: true })
14046
14301
  ], Cms.prototype, "title", 2);
14047
14302
  __decorateClass([
14048
- Column81({ name: "slug", type: "varchar", nullable: true, unique: true })
14303
+ Column85({ name: "slug", type: "varchar", nullable: true, unique: true })
14049
14304
  ], Cms.prototype, "slug", 2);
14050
14305
  __decorateClass([
14051
- Column81({ name: "content", type: "varchar", nullable: true })
14306
+ Column85({ name: "content", type: "varchar", nullable: true })
14052
14307
  ], Cms.prototype, "content", 2);
14053
14308
  __decorateClass([
14054
- Column81({ name: "is_active", type: "boolean", default: true })
14309
+ Column85({ name: "is_active", type: "boolean", default: true })
14055
14310
  ], Cms.prototype, "isActive", 2);
14056
14311
  Cms = __decorateClass([
14057
- Entity80("cms")
14312
+ Entity84("cms")
14058
14313
  ], Cms);
14059
14314
 
14060
14315
  // src/entities/lead.entity.ts
14061
14316
  import {
14062
- Entity as Entity81,
14063
- Column as Column82
14317
+ Entity as Entity85,
14318
+ Column as Column86
14064
14319
  } from "typeorm";
14065
14320
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14066
14321
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -14070,22 +14325,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14070
14325
  var Lead = class extends BaseEntity {
14071
14326
  };
14072
14327
  __decorateClass([
14073
- Column82({ name: "name", type: "varchar", nullable: true })
14328
+ Column86({ name: "name", type: "varchar", nullable: true })
14074
14329
  ], Lead.prototype, "name", 2);
14075
14330
  __decorateClass([
14076
- Column82({ name: "mobile_code", type: "varchar", nullable: true })
14331
+ Column86({ name: "mobile_code", type: "varchar", nullable: true })
14077
14332
  ], Lead.prototype, "mobileCode", 2);
14078
14333
  __decorateClass([
14079
- Column82({ name: "mobile", type: "varchar", nullable: true })
14334
+ Column86({ name: "mobile", type: "varchar", nullable: true })
14080
14335
  ], Lead.prototype, "mobile", 2);
14081
14336
  __decorateClass([
14082
- Column82({ name: "email", type: "varchar", nullable: true })
14337
+ Column86({ name: "email", type: "varchar", nullable: true })
14083
14338
  ], Lead.prototype, "email", 2);
14084
14339
  __decorateClass([
14085
- Column82({ name: "description", type: "varchar", nullable: true })
14340
+ Column86({ name: "description", type: "varchar", nullable: true })
14086
14341
  ], Lead.prototype, "description", 2);
14087
14342
  __decorateClass([
14088
- Column82({
14343
+ Column86({
14089
14344
  name: "category",
14090
14345
  type: "enum",
14091
14346
  enum: CategoryEmum,
@@ -14093,7 +14348,7 @@ __decorateClass([
14093
14348
  })
14094
14349
  ], Lead.prototype, "category", 2);
14095
14350
  Lead = __decorateClass([
14096
- Entity81("leads")
14351
+ Entity85("leads")
14097
14352
  ], Lead);
14098
14353
 
14099
14354
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -14334,7 +14589,7 @@ ClientFreelancerRecommendation = __decorateClass([
14334
14589
  ], ClientFreelancerRecommendation);
14335
14590
 
14336
14591
  // src/entities/commission.entity.ts
14337
- import { Entity as Entity82, Column as Column83 } from "typeorm";
14592
+ import { Entity as Entity86, Column as Column87 } from "typeorm";
14338
14593
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
14339
14594
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
14340
14595
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -14343,7 +14598,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
14343
14598
  var Commission = class extends BaseEntity {
14344
14599
  };
14345
14600
  __decorateClass([
14346
- Column83({
14601
+ Column87({
14347
14602
  name: "freelancer_commission_type",
14348
14603
  type: "enum",
14349
14604
  enum: CommissionTypeEnum,
@@ -14351,10 +14606,10 @@ __decorateClass([
14351
14606
  })
14352
14607
  ], Commission.prototype, "freelancerCommissionType", 2);
14353
14608
  __decorateClass([
14354
- Column83({ name: "freelancer_commission", type: "integer", default: 0 })
14609
+ Column87({ name: "freelancer_commission", type: "integer", default: 0 })
14355
14610
  ], Commission.prototype, "freelancerCommission", 2);
14356
14611
  __decorateClass([
14357
- Column83({
14612
+ Column87({
14358
14613
  name: "client_commission_type",
14359
14614
  type: "enum",
14360
14615
  enum: CommissionTypeEnum,
@@ -14362,58 +14617,58 @@ __decorateClass([
14362
14617
  })
14363
14618
  ], Commission.prototype, "clientCommissionType", 2);
14364
14619
  __decorateClass([
14365
- Column83({ name: "client_commission", type: "integer", default: 0 })
14620
+ Column87({ name: "client_commission", type: "integer", default: 0 })
14366
14621
  ], Commission.prototype, "clientCommission", 2);
14367
14622
  Commission = __decorateClass([
14368
- Entity82("commissions")
14623
+ Entity86("commissions")
14369
14624
  ], Commission);
14370
14625
 
14371
14626
  // src/entities/calendly-meeting-log.entity.ts
14372
14627
  import {
14373
- Entity as Entity83,
14374
- Column as Column84,
14375
- Index as Index69
14628
+ Entity as Entity87,
14629
+ Column as Column88,
14630
+ Index as Index71
14376
14631
  } from "typeorm";
14377
14632
  var CalendlyMeetingLog = class extends BaseEntity {
14378
14633
  };
14379
14634
  __decorateClass([
14380
- Column84({ name: "calendly_event_id", type: "varchar", nullable: true }),
14381
- Index69()
14635
+ Column88({ name: "calendly_event_id", type: "varchar", nullable: true }),
14636
+ Index71()
14382
14637
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
14383
14638
  __decorateClass([
14384
- Column84({ name: "calendly_event_type", type: "varchar", nullable: true })
14639
+ Column88({ name: "calendly_event_type", type: "varchar", nullable: true })
14385
14640
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
14386
14641
  __decorateClass([
14387
- Column84({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14642
+ Column88({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14388
14643
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
14389
14644
  CalendlyMeetingLog = __decorateClass([
14390
- Entity83("calendly_meeting_logs")
14645
+ Entity87("calendly_meeting_logs")
14391
14646
  ], CalendlyMeetingLog);
14392
14647
 
14393
14648
  // src/entities/zoom-meeting-log.entity.ts
14394
14649
  import {
14395
- Entity as Entity84,
14396
- Column as Column85,
14397
- Index as Index70
14650
+ Entity as Entity88,
14651
+ Column as Column89,
14652
+ Index as Index72
14398
14653
  } from "typeorm";
14399
14654
  var ZoomMeetingLog = class extends BaseEntity {
14400
14655
  };
14401
14656
  __decorateClass([
14402
- Column85({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
14403
- Index70()
14657
+ Column89({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
14658
+ Index72()
14404
14659
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
14405
14660
  __decorateClass([
14406
- Column85({ name: "zoom_event_type", type: "varchar", nullable: true })
14661
+ Column89({ name: "zoom_event_type", type: "varchar", nullable: true })
14407
14662
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
14408
14663
  __decorateClass([
14409
- Column85({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14664
+ Column89({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14410
14665
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
14411
14666
  ZoomMeetingLog = __decorateClass([
14412
- Entity84("zoom_meeting_logs")
14667
+ Entity88("zoom_meeting_logs")
14413
14668
  ], ZoomMeetingLog);
14414
14669
 
14415
14670
  // src/entities/docuseal.entity.ts
14416
- import { Entity as Entity85, Column as Column86, Index as Index71 } from "typeorm";
14671
+ import { Entity as Entity89, Column as Column90, Index as Index73 } from "typeorm";
14417
14672
  var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
14418
14673
  DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
14419
14674
  DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
@@ -14423,160 +14678,160 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
14423
14678
  var DocuSeal = class extends BaseEntity {
14424
14679
  };
14425
14680
  __decorateClass([
14426
- Column86({ name: "reference_id", type: "integer", nullable: false }),
14427
- Index71()
14681
+ Column90({ name: "reference_id", type: "integer", nullable: false }),
14682
+ Index73()
14428
14683
  ], DocuSeal.prototype, "referenceId", 2);
14429
14684
  __decorateClass([
14430
- Column86({ name: "submitter_id", type: "integer", nullable: true }),
14431
- Index71()
14685
+ Column90({ name: "submitter_id", type: "integer", nullable: true }),
14686
+ Index73()
14432
14687
  ], DocuSeal.prototype, "submitterId", 2);
14433
14688
  __decorateClass([
14434
- Column86({ name: "submitter_response", type: "jsonb", nullable: true })
14689
+ Column90({ name: "submitter_response", type: "jsonb", nullable: true })
14435
14690
  ], DocuSeal.prototype, "submitterResponse", 2);
14436
14691
  __decorateClass([
14437
- Column86({ name: "webhook_response", type: "jsonb", nullable: true })
14692
+ Column90({ name: "webhook_response", type: "jsonb", nullable: true })
14438
14693
  ], DocuSeal.prototype, "webhookResponse", 2);
14439
14694
  __decorateClass([
14440
- Column86({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
14695
+ Column90({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
14441
14696
  ], DocuSeal.prototype, "type", 2);
14442
14697
  DocuSeal = __decorateClass([
14443
- Entity85("docuseal")
14698
+ Entity89("docuseal")
14444
14699
  ], DocuSeal);
14445
14700
 
14446
14701
  // src/entities/stripe-logs.entity.ts
14447
- import { Entity as Entity86, Column as Column87 } from "typeorm";
14702
+ import { Entity as Entity90, Column as Column91 } from "typeorm";
14448
14703
  var StripeLog = class extends BaseEntity {
14449
14704
  };
14450
14705
  __decorateClass([
14451
- Column87({ name: "stripe_event_id", type: "varchar", nullable: true })
14706
+ Column91({ name: "stripe_event_id", type: "varchar", nullable: true })
14452
14707
  ], StripeLog.prototype, "stripeEventId", 2);
14453
14708
  __decorateClass([
14454
- Column87({ name: "event_type", type: "varchar", nullable: true })
14709
+ Column91({ name: "event_type", type: "varchar", nullable: true })
14455
14710
  ], StripeLog.prototype, "eventType", 2);
14456
14711
  __decorateClass([
14457
- Column87({ name: "stripe_account_id", type: "varchar", nullable: true })
14712
+ Column91({ name: "stripe_account_id", type: "varchar", nullable: true })
14458
14713
  ], StripeLog.prototype, "stripeAccountId", 2);
14459
14714
  __decorateClass([
14460
- Column87({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14715
+ Column91({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14461
14716
  ], StripeLog.prototype, "rawWebhookData", 2);
14462
14717
  StripeLog = __decorateClass([
14463
- Entity86("stripe_logs")
14718
+ Entity90("stripe_logs")
14464
14719
  ], StripeLog);
14465
14720
 
14466
14721
  // src/entities/recommendation-weightage-config.entity.ts
14467
14722
  import {
14468
- Entity as Entity87,
14469
- Column as Column88,
14470
- Index as Index72
14723
+ Entity as Entity91,
14724
+ Column as Column92,
14725
+ Index as Index74
14471
14726
  } from "typeorm";
14472
14727
  var RecommendationWeightageConfig = class extends BaseEntity {
14473
14728
  };
14474
14729
  __decorateClass([
14475
- Column88({
14730
+ Column92({
14476
14731
  type: "varchar",
14477
14732
  length: 100,
14478
14733
  unique: true,
14479
14734
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
14480
14735
  }),
14481
- Index72()
14736
+ Index74()
14482
14737
  ], RecommendationWeightageConfig.prototype, "key", 2);
14483
14738
  __decorateClass([
14484
- Column88({
14739
+ Column92({
14485
14740
  type: "jsonb",
14486
14741
  comment: "JSON object containing weight values",
14487
14742
  nullable: true
14488
14743
  })
14489
14744
  ], RecommendationWeightageConfig.prototype, "value", 2);
14490
14745
  __decorateClass([
14491
- Column88({ name: "is_active", type: "boolean", default: true })
14746
+ Column92({ name: "is_active", type: "boolean", default: true })
14492
14747
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
14493
14748
  RecommendationWeightageConfig = __decorateClass([
14494
- Entity87("recommendation_weightage_configs")
14749
+ Entity91("recommendation_weightage_configs")
14495
14750
  ], RecommendationWeightageConfig);
14496
14751
 
14497
14752
  // src/entities/global-setting.entity.ts
14498
14753
  import {
14499
- Entity as Entity88,
14500
- Column as Column89,
14501
- Index as Index73
14754
+ Entity as Entity92,
14755
+ Column as Column93,
14756
+ Index as Index75
14502
14757
  } from "typeorm";
14503
14758
  var GlobalSetting = class extends BaseEntity {
14504
14759
  };
14505
14760
  __decorateClass([
14506
- Column89({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
14761
+ Column93({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
14507
14762
  ], GlobalSetting.prototype, "key", 2);
14508
14763
  __decorateClass([
14509
- Column89({ name: "value", type: "text", nullable: false })
14764
+ Column93({ name: "value", type: "text", nullable: false })
14510
14765
  ], GlobalSetting.prototype, "value", 2);
14511
14766
  GlobalSetting = __decorateClass([
14512
- Entity88("global_settings"),
14513
- Index73(["key"], { unique: true })
14767
+ Entity92("global_settings"),
14768
+ Index75(["key"], { unique: true })
14514
14769
  ], GlobalSetting);
14515
14770
 
14516
14771
  // src/entities/plan.entity.ts
14517
14772
  import {
14518
- Entity as Entity91,
14519
- Column as Column92,
14520
- Index as Index76,
14773
+ Entity as Entity95,
14774
+ Column as Column96,
14775
+ Index as Index78,
14521
14776
  Check as Check4,
14522
14777
  BeforeInsert as BeforeInsert2,
14523
14778
  BeforeUpdate as BeforeUpdate2,
14524
- OneToMany as OneToMany30
14779
+ OneToMany as OneToMany32
14525
14780
  } from "typeorm";
14526
14781
 
14527
14782
  // src/entities/plan-feature.entity.ts
14528
14783
  import {
14529
- Entity as Entity89,
14530
- Column as Column90,
14531
- ManyToOne as ManyToOne71,
14532
- JoinColumn as JoinColumn72,
14533
- Index as Index74,
14784
+ Entity as Entity93,
14785
+ Column as Column94,
14786
+ ManyToOne as ManyToOne75,
14787
+ JoinColumn as JoinColumn76,
14788
+ Index as Index76,
14534
14789
  Check as Check2
14535
14790
  } from "typeorm";
14536
14791
  var PlanFeature = class extends BaseEntity {
14537
14792
  };
14538
14793
  // individual index to find features by plan
14539
14794
  __decorateClass([
14540
- Column90({ name: "plan_id", type: "integer", nullable: false }),
14541
- Index74()
14795
+ Column94({ name: "plan_id", type: "integer", nullable: false }),
14796
+ Index76()
14542
14797
  ], PlanFeature.prototype, "planId", 2);
14543
14798
  __decorateClass([
14544
- ManyToOne71(() => Plan, (plan) => plan.features, {
14799
+ ManyToOne75(() => Plan, (plan) => plan.features, {
14545
14800
  onDelete: "CASCADE",
14546
14801
  nullable: false
14547
14802
  }),
14548
- JoinColumn72({ name: "plan_id" })
14803
+ JoinColumn76({ name: "plan_id" })
14549
14804
  ], PlanFeature.prototype, "plan", 2);
14550
14805
  __decorateClass([
14551
- Column90({ name: "name", type: "varchar", length: 200 })
14806
+ Column94({ name: "name", type: "varchar", length: 200 })
14552
14807
  ], PlanFeature.prototype, "name", 2);
14553
14808
  __decorateClass([
14554
- Column90({ name: "slug", type: "varchar", length: 100 }),
14555
- Index74()
14809
+ Column94({ name: "slug", type: "varchar", length: 100 }),
14810
+ Index76()
14556
14811
  ], PlanFeature.prototype, "slug", 2);
14557
14812
  __decorateClass([
14558
- Column90({ name: "tooltip", type: "varchar", length: 300, nullable: true })
14813
+ Column94({ name: "tooltip", type: "varchar", length: 300, nullable: true })
14559
14814
  ], PlanFeature.prototype, "tooltip", 2);
14560
14815
  __decorateClass([
14561
- Column90({ name: "sort_order", type: "smallint", default: 0 })
14816
+ Column94({ name: "sort_order", type: "smallint", default: 0 })
14562
14817
  ], PlanFeature.prototype, "sortOrder", 2);
14563
14818
  __decorateClass([
14564
- Column90({ name: "is_active", type: "boolean", default: true })
14819
+ Column94({ name: "is_active", type: "boolean", default: true })
14565
14820
  ], PlanFeature.prototype, "isActive", 2);
14566
14821
  PlanFeature = __decorateClass([
14567
- Entity89("plan_features"),
14568
- Index74("idx_plan_features_plan_id", ["planId"]),
14569
- Index74("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
14822
+ Entity93("plan_features"),
14823
+ Index76("idx_plan_features_plan_id", ["planId"]),
14824
+ Index76("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
14570
14825
  Check2("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
14571
14826
  ], PlanFeature);
14572
14827
 
14573
14828
  // src/entities/plan-pricing.entity.ts
14574
14829
  import {
14575
- Entity as Entity90,
14576
- Column as Column91,
14577
- ManyToOne as ManyToOne72,
14578
- JoinColumn as JoinColumn73,
14579
- Index as Index75,
14830
+ Entity as Entity94,
14831
+ Column as Column95,
14832
+ ManyToOne as ManyToOne76,
14833
+ JoinColumn as JoinColumn77,
14834
+ Index as Index77,
14580
14835
  Unique,
14581
14836
  Check as Check3,
14582
14837
  BeforeInsert,
@@ -14636,56 +14891,56 @@ var PlanPricing = class extends BaseEntity {
14636
14891
  };
14637
14892
  // individual index to find pricing by plan
14638
14893
  __decorateClass([
14639
- Column91({ name: "plan_id", type: "integer", nullable: false }),
14640
- Index75()
14894
+ Column95({ name: "plan_id", type: "integer", nullable: false }),
14895
+ Index77()
14641
14896
  ], PlanPricing.prototype, "planId", 2);
14642
14897
  __decorateClass([
14643
- ManyToOne72(() => Plan, (plan) => plan.pricing, {
14898
+ ManyToOne76(() => Plan, (plan) => plan.pricing, {
14644
14899
  onDelete: "CASCADE",
14645
14900
  nullable: false
14646
14901
  }),
14647
- JoinColumn73({ name: "plan_id" })
14902
+ JoinColumn77({ name: "plan_id" })
14648
14903
  ], PlanPricing.prototype, "plan", 2);
14649
14904
  __decorateClass([
14650
- Column91({
14905
+ Column95({
14651
14906
  name: "billing_cycle",
14652
14907
  type: "enum",
14653
14908
  enum: PlanPricingBillingCycleEnum
14654
14909
  })
14655
14910
  ], PlanPricing.prototype, "billingCycle", 2);
14656
14911
  __decorateClass([
14657
- Column91({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
14912
+ Column95({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
14658
14913
  ], PlanPricing.prototype, "price", 2);
14659
14914
  __decorateClass([
14660
- Column91({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
14915
+ Column95({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
14661
14916
  ], PlanPricing.prototype, "originalPrice", 2);
14662
14917
  __decorateClass([
14663
- Column91({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
14918
+ Column95({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
14664
14919
  ], PlanPricing.prototype, "discountPct", 2);
14665
14920
  __decorateClass([
14666
- Column91({ name: "currency", type: "varchar", length: 3, default: "USD" })
14921
+ Column95({ name: "currency", type: "varchar", length: 3, default: "USD" })
14667
14922
  ], PlanPricing.prototype, "currency", 2);
14668
14923
  __decorateClass([
14669
- Column91({ name: "is_free", type: "boolean", default: false })
14924
+ Column95({ name: "is_free", type: "boolean", default: false })
14670
14925
  ], PlanPricing.prototype, "isFree", 2);
14671
14926
  __decorateClass([
14672
- Column91({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
14927
+ Column95({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
14673
14928
  ], PlanPricing.prototype, "stripePriceId", 2);
14674
14929
  __decorateClass([
14675
- Column91({ name: "trial_days", type: "smallint", default: 0 })
14930
+ Column95({ name: "trial_days", type: "smallint", default: 0 })
14676
14931
  ], PlanPricing.prototype, "trialDays", 2);
14677
14932
  __decorateClass([
14678
- Column91({ name: "is_active", type: "boolean", default: true })
14933
+ Column95({ name: "is_active", type: "boolean", default: true })
14679
14934
  ], PlanPricing.prototype, "isActive", 2);
14680
14935
  __decorateClass([
14681
14936
  BeforeInsert(),
14682
14937
  BeforeUpdate()
14683
14938
  ], PlanPricing.prototype, "sanitize", 1);
14684
14939
  PlanPricing = __decorateClass([
14685
- Entity90("plan_pricings"),
14940
+ Entity94("plan_pricings"),
14686
14941
  Unique("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
14687
- Index75("idx_plan_pricings_plan_id", ["planId"]),
14688
- Index75("idx_plan_pricings_active", ["isActive", "billingCycle"]),
14942
+ Index77("idx_plan_pricings_plan_id", ["planId"]),
14943
+ Index77("idx_plan_pricings_active", ["isActive", "billingCycle"]),
14689
14944
  Check3("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
14690
14945
  Check3("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
14691
14946
  Check3("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
@@ -14707,22 +14962,22 @@ var Plan = class extends BaseEntity {
14707
14962
  }
14708
14963
  };
14709
14964
  __decorateClass([
14710
- Column92({ name: "name", type: "varchar", length: 100 })
14965
+ Column96({ name: "name", type: "varchar", length: 100 })
14711
14966
  ], Plan.prototype, "name", 2);
14712
14967
  __decorateClass([
14713
- Column92({ name: "slug", type: "varchar", length: 100 })
14968
+ Column96({ name: "slug", type: "varchar", length: 100 })
14714
14969
  ], Plan.prototype, "slug", 2);
14715
14970
  __decorateClass([
14716
- Column92({ name: "badge_label", type: "varchar", length: 60, nullable: true })
14971
+ Column96({ name: "badge_label", type: "varchar", length: 60, nullable: true })
14717
14972
  ], Plan.prototype, "badgeLabel", 2);
14718
14973
  __decorateClass([
14719
- Column92({ name: "sort_order", type: "smallint", default: 0 })
14974
+ Column96({ name: "sort_order", type: "smallint", default: 0 })
14720
14975
  ], Plan.prototype, "sortOrder", 2);
14721
14976
  __decorateClass([
14722
- Column92({ name: "is_active", type: "boolean", default: true })
14977
+ Column96({ name: "is_active", type: "boolean", default: true })
14723
14978
  ], Plan.prototype, "isActive", 2);
14724
14979
  __decorateClass([
14725
- Column92({
14980
+ Column96({
14726
14981
  name: "plan_type",
14727
14982
  type: "enum",
14728
14983
  enum: PlanTypeEnum,
@@ -14730,35 +14985,35 @@ __decorateClass([
14730
14985
  })
14731
14986
  ], Plan.prototype, "planType", 2);
14732
14987
  __decorateClass([
14733
- Column92({ name: "metadata", type: "jsonb", default: {} })
14988
+ Column96({ name: "metadata", type: "jsonb", default: {} })
14734
14989
  ], Plan.prototype, "metadata", 2);
14735
14990
  __decorateClass([
14736
14991
  BeforeInsert2(),
14737
14992
  BeforeUpdate2()
14738
14993
  ], Plan.prototype, "createSlug", 1);
14739
14994
  __decorateClass([
14740
- OneToMany30(() => PlanFeature, (feature) => feature.plan, {
14995
+ OneToMany32(() => PlanFeature, (feature) => feature.plan, {
14741
14996
  cascade: ["insert", "update"]
14742
14997
  })
14743
14998
  ], Plan.prototype, "features", 2);
14744
14999
  __decorateClass([
14745
- OneToMany30(() => PlanPricing, (pricing) => pricing.plan, {
15000
+ OneToMany32(() => PlanPricing, (pricing) => pricing.plan, {
14746
15001
  cascade: ["insert", "update"]
14747
15002
  })
14748
15003
  ], Plan.prototype, "pricing", 2);
14749
15004
  Plan = __decorateClass([
14750
- Entity91("plans"),
14751
- Index76("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
14752
- Index76("idx_plans_active_sort", ["isActive", "sortOrder"]),
15005
+ Entity95("plans"),
15006
+ Index78("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15007
+ Index78("idx_plans_active_sort", ["isActive", "sortOrder"]),
14753
15008
  Check4("chk_plans_sort_order_positive", '"sort_order" >= 0')
14754
15009
  ], Plan);
14755
15010
 
14756
15011
  // src/entities/subscription-feature.entity.ts
14757
15012
  import {
14758
- Entity as Entity92,
14759
- Column as Column93,
15013
+ Entity as Entity96,
15014
+ Column as Column97,
14760
15015
  Check as Check5,
14761
- Index as Index77,
15016
+ Index as Index79,
14762
15017
  BeforeInsert as BeforeInsert3,
14763
15018
  BeforeUpdate as BeforeUpdate3
14764
15019
  } from "typeorm";
@@ -14776,28 +15031,28 @@ var SubscriptionFeature = class extends BaseEntity {
14776
15031
  }
14777
15032
  };
14778
15033
  __decorateClass([
14779
- Column93({ name: "name", type: "varchar", length: 200 })
15034
+ Column97({ name: "name", type: "varchar", length: 200 })
14780
15035
  ], SubscriptionFeature.prototype, "name", 2);
14781
15036
  __decorateClass([
14782
- Column93({ name: "slug", type: "varchar", length: 100 })
15037
+ Column97({ name: "slug", type: "varchar", length: 100 })
14783
15038
  ], SubscriptionFeature.prototype, "slug", 2);
14784
15039
  __decorateClass([
14785
- Column93({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15040
+ Column97({ name: "tooltip", type: "varchar", length: 300, nullable: true })
14786
15041
  ], SubscriptionFeature.prototype, "tooltip", 2);
14787
15042
  __decorateClass([
14788
- Column93({ name: "sort_order", type: "smallint", default: 0 })
15043
+ Column97({ name: "sort_order", type: "smallint", default: 0 })
14789
15044
  ], SubscriptionFeature.prototype, "sortOrder", 2);
14790
15045
  __decorateClass([
14791
- Column93({ name: "is_active", type: "boolean", default: true })
15046
+ Column97({ name: "is_active", type: "boolean", default: true })
14792
15047
  ], SubscriptionFeature.prototype, "isActive", 2);
14793
15048
  __decorateClass([
14794
15049
  BeforeInsert3(),
14795
15050
  BeforeUpdate3()
14796
15051
  ], SubscriptionFeature.prototype, "createSlug", 1);
14797
15052
  SubscriptionFeature = __decorateClass([
14798
- Entity92("subscription_features"),
14799
- Index77("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
14800
- Index77("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
15053
+ Entity96("subscription_features"),
15054
+ Index79("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15055
+ Index79("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
14801
15056
  Check5("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
14802
15057
  ], SubscriptionFeature);
14803
15058
  export {
@@ -15224,6 +15479,13 @@ export {
15224
15479
  UpdateTaskDto,
15225
15480
  User,
15226
15481
  UserRMQAdapter,
15482
+ UserSubscription,
15483
+ UserSubscriptionPlan,
15484
+ UserSubscriptionPlanFeature,
15485
+ UserSubscriptionPlanPricing,
15486
+ UserSubscriptionPlanPricingBillingCycleEnum,
15487
+ UserSubscriptionPlanTypeEnum,
15488
+ UserSubscriptionStatusEnum,
15227
15489
  UserTCPAdapter,
15228
15490
  ValidateEmailDto,
15229
15491
  ValidateEmailForLoginDto,