@experts_hub/shared 1.0.330 → 1.0.331

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
@@ -1391,17 +1391,17 @@ import {
1391
1391
  } from "class-validator";
1392
1392
 
1393
1393
  // src/entities/rating.entity.ts
1394
- import { Entity as Entity43, Column as Column44, ManyToOne as ManyToOne38, JoinColumn as JoinColumn38, Index as Index38 } from "typeorm";
1394
+ import { Entity as Entity45, Column as Column46, ManyToOne as ManyToOne39, JoinColumn as JoinColumn39, Index as Index39 } from "typeorm";
1395
1395
 
1396
1396
  // src/entities/user.entity.ts
1397
1397
  import {
1398
- Entity as Entity42,
1399
- Column as Column43,
1398
+ Entity as Entity44,
1399
+ Column as Column45,
1400
1400
  OneToMany as OneToMany14,
1401
- OneToOne,
1402
- Index as Index37,
1403
- ManyToOne as ManyToOne37,
1404
- JoinColumn as JoinColumn37
1401
+ OneToOne as OneToOne3,
1402
+ Index as Index38,
1403
+ ManyToOne as ManyToOne38,
1404
+ JoinColumn as JoinColumn38
1405
1405
  } from "typeorm";
1406
1406
 
1407
1407
  // src/entities/base.entity.ts
@@ -3705,6 +3705,140 @@ FreelancerResume = __decorateClass([
3705
3705
  Entity41("freelancer_resumes")
3706
3706
  ], FreelancerResume);
3707
3707
 
3708
+ // src/entities/f2f-interview.entity.ts
3709
+ import {
3710
+ Entity as Entity43,
3711
+ Column as Column44,
3712
+ ManyToOne as ManyToOne37,
3713
+ JoinColumn as JoinColumn37,
3714
+ OneToOne as OneToOne2
3715
+ } from "typeorm";
3716
+
3717
+ // src/entities/calendly-meeting.entity.ts
3718
+ import {
3719
+ Entity as Entity42,
3720
+ Column as Column43,
3721
+ Index as Index37,
3722
+ Unique,
3723
+ OneToOne
3724
+ } from "typeorm";
3725
+ var CalendlyMeetingStatus = /* @__PURE__ */ ((CalendlyMeetingStatus2) => {
3726
+ CalendlyMeetingStatus2["PENDING"] = "PENDING";
3727
+ CalendlyMeetingStatus2["CONFIRMED"] = "CONFIRMED";
3728
+ CalendlyMeetingStatus2["CANCELED"] = "CANCELED";
3729
+ CalendlyMeetingStatus2["COMPLETED"] = "COMPLETED";
3730
+ return CalendlyMeetingStatus2;
3731
+ })(CalendlyMeetingStatus || {});
3732
+ var CalendlyMeeting = class extends BaseEntity {
3733
+ };
3734
+ __decorateClass([
3735
+ OneToOne(() => F2FInterview, (F2FInterview2) => F2FInterview2.calendlyMeeting)
3736
+ ], CalendlyMeeting.prototype, "f2fInterview", 2);
3737
+ __decorateClass([
3738
+ Column43({ name: "calendly_event_id", type: "varchar", nullable: true, unique: true }),
3739
+ Index37()
3740
+ ], CalendlyMeeting.prototype, "calendlyEventId", 2);
3741
+ __decorateClass([
3742
+ Column43({ name: "event_name", type: "varchar", nullable: false })
3743
+ ], CalendlyMeeting.prototype, "eventName", 2);
3744
+ __decorateClass([
3745
+ Column43({ name: "invitee_email", type: "varchar", nullable: false }),
3746
+ Index37()
3747
+ ], CalendlyMeeting.prototype, "inviteeEmail", 2);
3748
+ __decorateClass([
3749
+ Column43({ name: "start_time", type: "timestamp with time zone", nullable: true }),
3750
+ Index37()
3751
+ ], CalendlyMeeting.prototype, "startTime", 2);
3752
+ __decorateClass([
3753
+ Column43({ name: "end_time", type: "timestamp with time zone", nullable: true })
3754
+ ], CalendlyMeeting.prototype, "endTime", 2);
3755
+ __decorateClass([
3756
+ Column43({ name: "raw_webhook_data", type: "jsonb", nullable: true })
3757
+ ], CalendlyMeeting.prototype, "rawWebhookData", 2);
3758
+ CalendlyMeeting = __decorateClass([
3759
+ Entity42("calendly_meetings"),
3760
+ Unique("UQ_calendly_event_invitee", ["calendlyEventId", "inviteeEmail"]),
3761
+ Unique("UQ_calendly_meeting_time_email", ["inviteeEmail", "startTime", "eventName"])
3762
+ ], CalendlyMeeting);
3763
+
3764
+ // src/entities/f2f-interview.entity.ts
3765
+ var F2FInterview = class extends BaseEntity {
3766
+ };
3767
+ __decorateClass([
3768
+ OneToOne2(() => CalendlyMeeting),
3769
+ JoinColumn37({ name: "calendly_meeting_id" })
3770
+ ], F2FInterview.prototype, "calendlyMeeting", 2);
3771
+ __decorateClass([
3772
+ Column44({ name: "calendly_meeting_id", type: "integer" })
3773
+ ], F2FInterview.prototype, "calendlyMeetingId", 2);
3774
+ __decorateClass([
3775
+ ManyToOne37(() => User, (user) => user.clientF2FInterviews, { nullable: true }),
3776
+ JoinColumn37({ name: "client_id" })
3777
+ ], F2FInterview.prototype, "client", 2);
3778
+ __decorateClass([
3779
+ Column44({ name: "client_id", type: "integer", nullable: true })
3780
+ ], F2FInterview.prototype, "clientId", 2);
3781
+ __decorateClass([
3782
+ ManyToOne37(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
3783
+ JoinColumn37({ name: "freelancer_id" })
3784
+ ], F2FInterview.prototype, "freelancer", 2);
3785
+ __decorateClass([
3786
+ Column44({ name: "freelancer_id", type: "integer", nullable: true })
3787
+ ], F2FInterview.prototype, "freelancerId", 2);
3788
+ __decorateClass([
3789
+ Column44({ name: "invitee_email", type: "varchar", nullable: false })
3790
+ ], F2FInterview.prototype, "inviteeEmail", 2);
3791
+ __decorateClass([
3792
+ Column44({ name: "invitee_name", type: "varchar", nullable: true })
3793
+ ], F2FInterview.prototype, "inviteeName", 2);
3794
+ __decorateClass([
3795
+ Column44({ name: "zoom_link", type: "varchar", nullable: true })
3796
+ ], F2FInterview.prototype, "meetingZoomLink", 2);
3797
+ __decorateClass([
3798
+ Column44({ name: "meeting_id", type: "varchar", nullable: true })
3799
+ ], F2FInterview.prototype, "meetingId", 2);
3800
+ __decorateClass([
3801
+ Column44({ name: "meeting_passcode", type: "varchar", nullable: true })
3802
+ ], F2FInterview.prototype, "meetingPasscode", 2);
3803
+ __decorateClass([
3804
+ Column44({ name: "reschedule_url", type: "varchar", nullable: true })
3805
+ ], F2FInterview.prototype, "rescheduleUrl", 2);
3806
+ __decorateClass([
3807
+ Column44({ name: "event_name", type: "varchar", nullable: false })
3808
+ ], F2FInterview.prototype, "eventName", 2);
3809
+ __decorateClass([
3810
+ Column44({ name: "is_rescheduled", type: "boolean", default: false })
3811
+ ], F2FInterview.prototype, "isRescheduled", 2);
3812
+ __decorateClass([
3813
+ Column44({
3814
+ name: "status",
3815
+ type: "enum",
3816
+ enum: CalendlyMeetingStatus,
3817
+ default: "PENDING" /* PENDING */
3818
+ })
3819
+ ], F2FInterview.prototype, "status", 2);
3820
+ __decorateClass([
3821
+ Column44({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
3822
+ ], F2FInterview.prototype, "cancelledAt", 2);
3823
+ __decorateClass([
3824
+ Column44({ name: "cancel_reason", type: "varchar", nullable: true })
3825
+ ], F2FInterview.prototype, "cancelReason", 2);
3826
+ __decorateClass([
3827
+ Column44({ name: "rescheduled_at", type: "timestamp with time zone", nullable: true })
3828
+ ], F2FInterview.prototype, "rescheduledAt", 2);
3829
+ __decorateClass([
3830
+ Column44({ name: "is_completed", type: "boolean", default: false })
3831
+ ], F2FInterview.prototype, "isCompleted", 2);
3832
+ __decorateClass([
3833
+ Column44({ name: "meeting_start_time", type: "timestamp with time zone", nullable: true })
3834
+ ], F2FInterview.prototype, "meetingStartTime", 2);
3835
+ __decorateClass([
3836
+ Column44({ name: "meeting_end_time", type: "timestamp with time zone", nullable: true })
3837
+ ], F2FInterview.prototype, "meetingEndTime", 2);
3838
+ F2FInterview = __decorateClass([
3839
+ Entity43("f2f_interviews")
3840
+ ], F2FInterview);
3841
+
3708
3842
  // src/entities/user.entity.ts
3709
3843
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
3710
3844
  AccountType2["ADMIN"] = "ADMIN";
@@ -3728,59 +3862,53 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
3728
3862
  return Provider2;
3729
3863
  })(Provider || {});
3730
3864
  var User = class extends BaseEntity {
3731
- // @OneToMany(() => CalendlyMeeting, (calendlyMeeting) => calendlyMeeting.user)
3732
- // calendlyMeetings: CalendlyMeeting[];
3733
- // @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.client)
3734
- // clientF2FInterviews: FreelancerF2FInterview[];
3735
- // @OneToMany(() => FreelancerF2FInterview, (freelancerF2FInterview) => freelancerF2FInterview.freelancer)
3736
- // freelancerF2FInterviews: FreelancerF2FInterview[];
3737
3865
  };
3738
3866
  __decorateClass([
3739
- Column43({ name: "unique_id", type: "varchar", unique: true })
3867
+ Column45({ name: "unique_id", type: "varchar", unique: true })
3740
3868
  ], User.prototype, "uniqueId", 2);
3741
3869
  __decorateClass([
3742
- Column43({ name: "parent_id", type: "integer", nullable: true }),
3743
- Index37()
3870
+ Column45({ name: "parent_id", type: "integer", nullable: true }),
3871
+ Index38()
3744
3872
  ], User.prototype, "parentId", 2);
3745
3873
  __decorateClass([
3746
- ManyToOne37(() => User, (user) => user.children, { nullable: true }),
3747
- JoinColumn37({ name: "parent_id" })
3874
+ ManyToOne38(() => User, (user) => user.children, { nullable: true }),
3875
+ JoinColumn38({ name: "parent_id" })
3748
3876
  ], User.prototype, "parent", 2);
3749
3877
  __decorateClass([
3750
3878
  OneToMany14(() => User, (user) => user.parent)
3751
3879
  ], User.prototype, "children", 2);
3752
3880
  __decorateClass([
3753
- Column43({ name: "username", type: "varchar", unique: true, nullable: true })
3881
+ Column45({ name: "username", type: "varchar", unique: true, nullable: true })
3754
3882
  ], User.prototype, "username", 2);
3755
3883
  __decorateClass([
3756
- Column43({ name: "first_name", type: "varchar", length: 100, nullable: true })
3884
+ Column45({ name: "first_name", type: "varchar", length: 100, nullable: true })
3757
3885
  ], User.prototype, "firstName", 2);
3758
3886
  __decorateClass([
3759
- Column43({ name: "last_name", type: "varchar", length: 100, nullable: true })
3887
+ Column45({ name: "last_name", type: "varchar", length: 100, nullable: true })
3760
3888
  ], User.prototype, "lastName", 2);
3761
3889
  __decorateClass([
3762
- Column43({ name: "date_of_birth", type: "date", nullable: true })
3890
+ Column45({ name: "date_of_birth", type: "date", nullable: true })
3763
3891
  ], User.prototype, "dateOfBirth", 2);
3764
3892
  __decorateClass([
3765
- Column43({ name: "gender", type: "varchar", length: 10, nullable: true })
3893
+ Column45({ name: "gender", type: "varchar", length: 10, nullable: true })
3766
3894
  ], User.prototype, "gender", 2);
3767
3895
  __decorateClass([
3768
- Column43({ name: "profile_picture_url", type: "text", nullable: true })
3896
+ Column45({ name: "profile_picture_url", type: "text", nullable: true })
3769
3897
  ], User.prototype, "profilePictureUrl", 2);
3770
3898
  __decorateClass([
3771
- Column43({ name: "email", type: "varchar", unique: true })
3899
+ Column45({ name: "email", type: "varchar", unique: true })
3772
3900
  ], User.prototype, "email", 2);
3773
3901
  __decorateClass([
3774
- Column43({ name: "mobile_code", type: "varchar", nullable: true })
3902
+ Column45({ name: "mobile_code", type: "varchar", nullable: true })
3775
3903
  ], User.prototype, "mobileCode", 2);
3776
3904
  __decorateClass([
3777
- Column43({ name: "mobile", type: "varchar", nullable: true })
3905
+ Column45({ name: "mobile", type: "varchar", nullable: true })
3778
3906
  ], User.prototype, "mobile", 2);
3779
3907
  __decorateClass([
3780
- Column43({ name: "password", type: "varchar", nullable: true })
3908
+ Column45({ name: "password", type: "varchar", nullable: true })
3781
3909
  ], User.prototype, "password", 2);
3782
3910
  __decorateClass([
3783
- Column43({
3911
+ Column45({
3784
3912
  name: "account_type",
3785
3913
  type: "enum",
3786
3914
  enum: AccountType,
@@ -3788,7 +3916,7 @@ __decorateClass([
3788
3916
  })
3789
3917
  ], User.prototype, "accountType", 2);
3790
3918
  __decorateClass([
3791
- Column43({
3919
+ Column45({
3792
3920
  name: "account_status",
3793
3921
  type: "enum",
3794
3922
  enum: AccountStatus,
@@ -3796,29 +3924,29 @@ __decorateClass([
3796
3924
  })
3797
3925
  ], User.prototype, "accountStatus", 2);
3798
3926
  __decorateClass([
3799
- Column43({ name: "is_email_verified", type: "boolean", default: false })
3927
+ Column45({ name: "is_email_verified", type: "boolean", default: false })
3800
3928
  ], User.prototype, "isEmailVerified", 2);
3801
3929
  __decorateClass([
3802
- Column43({ name: "is_mobile_verified", type: "boolean", default: false })
3930
+ Column45({ name: "is_mobile_verified", type: "boolean", default: false })
3803
3931
  ], User.prototype, "isMobileVerified", 2);
3804
3932
  __decorateClass([
3805
- Column43({ name: "is_social", type: "boolean", default: false })
3933
+ Column45({ name: "is_social", type: "boolean", default: false })
3806
3934
  ], User.prototype, "isSocial", 2);
3807
3935
  __decorateClass([
3808
- Column43({
3936
+ Column45({
3809
3937
  name: "last_login_at",
3810
3938
  type: "timestamp with time zone",
3811
3939
  nullable: true
3812
3940
  })
3813
3941
  ], User.prototype, "lastLoginAt", 2);
3814
3942
  __decorateClass([
3815
- Column43({ name: "last_login_ip", type: "varchar", nullable: true })
3943
+ Column45({ name: "last_login_ip", type: "varchar", nullable: true })
3816
3944
  ], User.prototype, "lastLoginIp", 2);
3817
3945
  __decorateClass([
3818
- Column43({ name: "reset_token", type: "varchar", nullable: true })
3946
+ Column45({ name: "reset_token", type: "varchar", nullable: true })
3819
3947
  ], User.prototype, "resetToken", 2);
3820
3948
  __decorateClass([
3821
- Column43({
3949
+ Column45({
3822
3950
  name: "reset_token_expire_at",
3823
3951
  type: "timestamp with time zone",
3824
3952
  nullable: true
@@ -3828,7 +3956,7 @@ __decorateClass([
3828
3956
  OneToMany14(() => RefreshToken, (token) => token.user)
3829
3957
  ], User.prototype, "refreshTokens", 2);
3830
3958
  __decorateClass([
3831
- Column43({
3959
+ Column45({
3832
3960
  name: "provider",
3833
3961
  type: "enum",
3834
3962
  enum: Provider,
@@ -3837,16 +3965,16 @@ __decorateClass([
3837
3965
  })
3838
3966
  ], User.prototype, "provider", 2);
3839
3967
  __decorateClass([
3840
- Column43({ name: "provider_token", type: "varchar", nullable: true })
3968
+ Column45({ name: "provider_token", type: "varchar", nullable: true })
3841
3969
  ], User.prototype, "providerToken", 2);
3842
3970
  __decorateClass([
3843
- Column43({ name: "linkedin_id", type: "varchar", nullable: true })
3971
+ Column45({ name: "linkedin_id", type: "varchar", nullable: true })
3844
3972
  ], User.prototype, "linkedInId", 2);
3845
3973
  __decorateClass([
3846
- Column43({ name: "google_id", type: "varchar", nullable: true })
3974
+ Column45({ name: "google_id", type: "varchar", nullable: true })
3847
3975
  ], User.prototype, "googleId", 2);
3848
3976
  __decorateClass([
3849
- Column43({ name: "gitlabs_id", type: "varchar", nullable: true })
3977
+ Column45({ name: "gitlabs_id", type: "varchar", nullable: true })
3850
3978
  ], User.prototype, "gitLabsId", 2);
3851
3979
  __decorateClass([
3852
3980
  OneToMany14(() => Otp, (otp) => otp.user)
@@ -3855,7 +3983,7 @@ __decorateClass([
3855
3983
  OneToMany14(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
3856
3984
  ], User.prototype, "senseloafLogs", 2);
3857
3985
  __decorateClass([
3858
- OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user)
3986
+ OneToOne3(() => CompanyProfile, (companyProfile) => companyProfile.user)
3859
3987
  ], User.prototype, "companyProfile", 2);
3860
3988
  __decorateClass([
3861
3989
  OneToMany14(() => CompanySkill, (companySkill) => companySkill.user)
@@ -3867,10 +3995,10 @@ __decorateClass([
3867
3995
  OneToMany14(() => AiInterview, (aiInterview) => aiInterview.interviwer)
3868
3996
  ], User.prototype, "companyAiInterview", 2);
3869
3997
  __decorateClass([
3870
- OneToOne(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
3998
+ OneToOne3(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user)
3871
3999
  ], User.prototype, "freelancerProfile", 2);
3872
4000
  __decorateClass([
3873
- OneToOne(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
4001
+ OneToOne3(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
3874
4002
  ], User.prototype, "freelancerResume", 2);
3875
4003
  __decorateClass([
3876
4004
  OneToMany14(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
@@ -3900,7 +4028,7 @@ __decorateClass([
3900
4028
  OneToMany14(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
3901
4029
  ], User.prototype, "freelancerFramework", 2);
3902
4030
  __decorateClass([
3903
- OneToOne(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
4031
+ OneToOne3(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
3904
4032
  ], User.prototype, "freelancerDeclaration", 2);
3905
4033
  __decorateClass([
3906
4034
  OneToMany14(() => AiInterview, (aiInterview) => aiInterview.candidate)
@@ -3929,8 +4057,14 @@ __decorateClass([
3929
4057
  __decorateClass([
3930
4058
  OneToMany14(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
3931
4059
  ], User.prototype, "adminUserRoles", 2);
4060
+ __decorateClass([
4061
+ OneToMany14(() => F2FInterview, (F2FInterview2) => F2FInterview2.client)
4062
+ ], User.prototype, "clientF2FInterviews", 2);
4063
+ __decorateClass([
4064
+ OneToMany14(() => F2FInterview, (F2FInterview2) => F2FInterview2.freelancer)
4065
+ ], User.prototype, "freelancerF2FInterviews", 2);
3932
4066
  User = __decorateClass([
3933
- Entity42("users")
4067
+ Entity44("users")
3934
4068
  ], User);
3935
4069
 
3936
4070
  // src/entities/rating.entity.ts
@@ -3942,36 +4076,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
3942
4076
  var Rating = class extends BaseEntity {
3943
4077
  };
3944
4078
  __decorateClass([
3945
- Column44({ name: "reviewer_id", type: "integer" }),
3946
- Index38()
4079
+ Column46({ name: "reviewer_id", type: "integer" }),
4080
+ Index39()
3947
4081
  ], Rating.prototype, "reviewer_id", 2);
3948
4082
  __decorateClass([
3949
- ManyToOne38(() => User, { onDelete: "CASCADE" }),
3950
- JoinColumn38({ name: "reviewer_id" })
4083
+ ManyToOne39(() => User, { onDelete: "CASCADE" }),
4084
+ JoinColumn39({ name: "reviewer_id" })
3951
4085
  ], Rating.prototype, "reviewer", 2);
3952
4086
  __decorateClass([
3953
- Column44({ name: "reviewee_id", type: "integer" }),
3954
- Index38()
4087
+ Column46({ name: "reviewee_id", type: "integer" }),
4088
+ Index39()
3955
4089
  ], Rating.prototype, "reviewee_id", 2);
3956
4090
  __decorateClass([
3957
- ManyToOne38(() => User, { onDelete: "CASCADE" }),
3958
- JoinColumn38({ name: "reviewee_id" })
4091
+ ManyToOne39(() => User, { onDelete: "CASCADE" }),
4092
+ JoinColumn39({ name: "reviewee_id" })
3959
4093
  ], Rating.prototype, "reviewee", 2);
3960
4094
  __decorateClass([
3961
- Column44({
4095
+ Column46({
3962
4096
  type: "enum",
3963
4097
  enum: RatingTypeEnum,
3964
4098
  nullable: true
3965
4099
  })
3966
4100
  ], Rating.prototype, "ratingType", 2);
3967
4101
  __decorateClass([
3968
- Column44({ type: "integer", nullable: true })
4102
+ Column46({ type: "integer", nullable: true })
3969
4103
  ], Rating.prototype, "rating", 2);
3970
4104
  __decorateClass([
3971
- Column44({ type: "text", nullable: true })
4105
+ Column46({ type: "text", nullable: true })
3972
4106
  ], Rating.prototype, "review", 2);
3973
4107
  Rating = __decorateClass([
3974
- Entity43("ratings")
4108
+ Entity45("ratings")
3975
4109
  ], Rating);
3976
4110
 
3977
4111
  // src/modules/rating/dto/add.rating.dto.ts
@@ -5404,11 +5538,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
5404
5538
  };
5405
5539
 
5406
5540
  // src/entities/sequence-generator.entity.ts
5407
- import { Entity as Entity44, Column as Column45 } from "typeorm";
5541
+ import { Entity as Entity46, Column as Column47 } from "typeorm";
5408
5542
  var SequenceGenerator = class extends BaseEntity {
5409
5543
  };
5410
5544
  __decorateClass([
5411
- Column45({
5545
+ Column47({
5412
5546
  name: "module",
5413
5547
  type: "varchar",
5414
5548
  length: 50,
@@ -5417,7 +5551,7 @@ __decorateClass([
5417
5551
  })
5418
5552
  ], SequenceGenerator.prototype, "module", 2);
5419
5553
  __decorateClass([
5420
- Column45({
5554
+ Column47({
5421
5555
  name: "prefix",
5422
5556
  type: "varchar",
5423
5557
  length: 10,
@@ -5426,7 +5560,7 @@ __decorateClass([
5426
5560
  })
5427
5561
  ], SequenceGenerator.prototype, "prefix", 2);
5428
5562
  __decorateClass([
5429
- Column45({
5563
+ Column47({
5430
5564
  name: "last_sequence",
5431
5565
  type: "int",
5432
5566
  nullable: false,
@@ -5434,7 +5568,7 @@ __decorateClass([
5434
5568
  })
5435
5569
  ], SequenceGenerator.prototype, "lastSequence", 2);
5436
5570
  __decorateClass([
5437
- Column45({
5571
+ Column47({
5438
5572
  name: "year",
5439
5573
  type: "int",
5440
5574
  nullable: true,
@@ -5442,11 +5576,11 @@ __decorateClass([
5442
5576
  })
5443
5577
  ], SequenceGenerator.prototype, "year", 2);
5444
5578
  SequenceGenerator = __decorateClass([
5445
- Entity44("sequence_generators")
5579
+ Entity46("sequence_generators")
5446
5580
  ], SequenceGenerator);
5447
5581
 
5448
5582
  // src/entities/question.entity.ts
5449
- import { Entity as Entity45, Column as Column46 } from "typeorm";
5583
+ import { Entity as Entity47, Column as Column48 } from "typeorm";
5450
5584
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
5451
5585
  QuestionFor2["CLIENT"] = "CLIENT";
5452
5586
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -5455,16 +5589,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
5455
5589
  var Question = class extends BaseEntity {
5456
5590
  };
5457
5591
  __decorateClass([
5458
- Column46({ name: "question", type: "varchar" })
5592
+ Column48({ name: "question", type: "varchar" })
5459
5593
  ], Question.prototype, "question", 2);
5460
5594
  __decorateClass([
5461
- Column46({ name: "hint", type: "varchar", nullable: true })
5595
+ Column48({ name: "hint", type: "varchar", nullable: true })
5462
5596
  ], Question.prototype, "hint", 2);
5463
5597
  __decorateClass([
5464
- Column46({ name: "slug", type: "varchar", nullable: true, unique: true })
5598
+ Column48({ name: "slug", type: "varchar", nullable: true, unique: true })
5465
5599
  ], Question.prototype, "slug", 2);
5466
5600
  __decorateClass([
5467
- Column46({
5601
+ Column48({
5468
5602
  name: "question_for",
5469
5603
  type: "enum",
5470
5604
  enum: QuestionFor,
@@ -5472,119 +5606,119 @@ __decorateClass([
5472
5606
  })
5473
5607
  ], Question.prototype, "questionFor", 2);
5474
5608
  __decorateClass([
5475
- Column46({ name: "type", type: "varchar", nullable: true })
5609
+ Column48({ name: "type", type: "varchar", nullable: true })
5476
5610
  ], Question.prototype, "type", 2);
5477
5611
  __decorateClass([
5478
- Column46({ name: "options", type: "jsonb", nullable: true })
5612
+ Column48({ name: "options", type: "jsonb", nullable: true })
5479
5613
  ], Question.prototype, "options", 2);
5480
5614
  __decorateClass([
5481
- Column46({ name: "is_active", type: "boolean", default: false })
5615
+ Column48({ name: "is_active", type: "boolean", default: false })
5482
5616
  ], Question.prototype, "isActive", 2);
5483
5617
  Question = __decorateClass([
5484
- Entity45("questions")
5618
+ Entity47("questions")
5485
5619
  ], Question);
5486
5620
 
5487
5621
  // src/entities/skill.entity.ts
5488
- import { Entity as Entity46, Column as Column47 } from "typeorm";
5622
+ import { Entity as Entity48, Column as Column49 } from "typeorm";
5489
5623
  var Skill = class extends BaseEntity {
5490
5624
  };
5491
5625
  __decorateClass([
5492
- Column47({ name: "name", type: "varchar", nullable: true })
5626
+ Column49({ name: "name", type: "varchar", nullable: true })
5493
5627
  ], Skill.prototype, "name", 2);
5494
5628
  __decorateClass([
5495
- Column47({ name: "slug", type: "varchar", nullable: true, unique: true })
5629
+ Column49({ name: "slug", type: "varchar", nullable: true, unique: true })
5496
5630
  ], Skill.prototype, "slug", 2);
5497
5631
  __decorateClass([
5498
- Column47({ name: "is_active", type: "boolean", default: false })
5632
+ Column49({ name: "is_active", type: "boolean", default: false })
5499
5633
  ], Skill.prototype, "isActive", 2);
5500
5634
  Skill = __decorateClass([
5501
- Entity46("skills")
5635
+ Entity48("skills")
5502
5636
  ], Skill);
5503
5637
 
5504
5638
  // src/entities/job-role.entity.ts
5505
- import { Entity as Entity47, Column as Column48 } from "typeorm";
5639
+ import { Entity as Entity49, Column as Column50 } from "typeorm";
5506
5640
  var JobRoles = class extends BaseEntity {
5507
5641
  };
5508
5642
  __decorateClass([
5509
- Column48({ name: "slug", type: "varchar", nullable: true, unique: true })
5643
+ Column50({ name: "slug", type: "varchar", nullable: true, unique: true })
5510
5644
  ], JobRoles.prototype, "slug", 2);
5511
5645
  __decorateClass([
5512
- Column48({ name: "name", type: "varchar", nullable: true })
5646
+ Column50({ name: "name", type: "varchar", nullable: true })
5513
5647
  ], JobRoles.prototype, "name", 2);
5514
5648
  __decorateClass([
5515
- Column48({ name: "is_active", type: "boolean", default: true })
5649
+ Column50({ name: "is_active", type: "boolean", default: true })
5516
5650
  ], JobRoles.prototype, "isActive", 2);
5517
5651
  JobRoles = __decorateClass([
5518
- Entity47("job_roles")
5652
+ Entity49("job_roles")
5519
5653
  ], JobRoles);
5520
5654
 
5521
5655
  // src/entities/plan.entity.ts
5522
- import { Entity as Entity49, Column as Column50, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
5656
+ import { Entity as Entity51, Column as Column52, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
5523
5657
 
5524
5658
  // src/entities/feature.entity.ts
5525
- import { Entity as Entity48, Column as Column49, ManyToMany as ManyToMany2 } from "typeorm";
5659
+ import { Entity as Entity50, Column as Column51, ManyToMany as ManyToMany2 } from "typeorm";
5526
5660
  var Feature = class extends BaseEntity {
5527
5661
  };
5528
5662
  __decorateClass([
5529
- Column49({ name: "name", type: "varchar", unique: true })
5663
+ Column51({ name: "name", type: "varchar", unique: true })
5530
5664
  ], Feature.prototype, "name", 2);
5531
5665
  __decorateClass([
5532
5666
  ManyToMany2(() => Plan, (plan) => plan.features)
5533
5667
  ], Feature.prototype, "plans", 2);
5534
5668
  Feature = __decorateClass([
5535
- Entity48("features")
5669
+ Entity50("features")
5536
5670
  ], Feature);
5537
5671
 
5538
5672
  // src/entities/plan.entity.ts
5539
5673
  var Plan = class extends BaseEntity {
5540
5674
  };
5541
5675
  __decorateClass([
5542
- Column50({ name: "name", type: "varchar", unique: true })
5676
+ Column52({ name: "name", type: "varchar", unique: true })
5543
5677
  ], Plan.prototype, "name", 2);
5544
5678
  __decorateClass([
5545
- Column50({ name: "description", type: "varchar", nullable: true })
5679
+ Column52({ name: "description", type: "varchar", nullable: true })
5546
5680
  ], Plan.prototype, "description", 2);
5547
5681
  __decorateClass([
5548
- Column50({ name: "price", type: "decimal", precision: 10, scale: 2 })
5682
+ Column52({ name: "price", type: "decimal", precision: 10, scale: 2 })
5549
5683
  ], Plan.prototype, "price", 2);
5550
5684
  __decorateClass([
5551
- Column50({ name: "billing_period", type: "varchar" })
5685
+ Column52({ name: "billing_period", type: "varchar" })
5552
5686
  ], Plan.prototype, "billingPeriod", 2);
5553
5687
  __decorateClass([
5554
- Column50({ name: "is_current", type: "boolean", default: false })
5688
+ Column52({ name: "is_current", type: "boolean", default: false })
5555
5689
  ], Plan.prototype, "isCurrent", 2);
5556
5690
  __decorateClass([
5557
5691
  ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
5558
5692
  JoinTable()
5559
5693
  ], Plan.prototype, "features", 2);
5560
5694
  Plan = __decorateClass([
5561
- Entity49("plans")
5695
+ Entity51("plans")
5562
5696
  ], Plan);
5563
5697
 
5564
5698
  // src/entities/cms.entity.ts
5565
- import { Entity as Entity50, Column as Column51 } from "typeorm";
5699
+ import { Entity as Entity52, Column as Column53 } from "typeorm";
5566
5700
  var Cms = class extends BaseEntity {
5567
5701
  };
5568
5702
  __decorateClass([
5569
- Column51({ name: "title", type: "varchar", nullable: true })
5703
+ Column53({ name: "title", type: "varchar", nullable: true })
5570
5704
  ], Cms.prototype, "title", 2);
5571
5705
  __decorateClass([
5572
- Column51({ name: "slug", type: "varchar", nullable: true, unique: true })
5706
+ Column53({ name: "slug", type: "varchar", nullable: true, unique: true })
5573
5707
  ], Cms.prototype, "slug", 2);
5574
5708
  __decorateClass([
5575
- Column51({ name: "content", type: "varchar", nullable: true })
5709
+ Column53({ name: "content", type: "varchar", nullable: true })
5576
5710
  ], Cms.prototype, "content", 2);
5577
5711
  __decorateClass([
5578
- Column51({ name: "is_active", type: "boolean", default: true })
5712
+ Column53({ name: "is_active", type: "boolean", default: true })
5579
5713
  ], Cms.prototype, "isActive", 2);
5580
5714
  Cms = __decorateClass([
5581
- Entity50("cms")
5715
+ Entity52("cms")
5582
5716
  ], Cms);
5583
5717
 
5584
5718
  // src/entities/lead.entity.ts
5585
5719
  import {
5586
- Entity as Entity51,
5587
- Column as Column52
5720
+ Entity as Entity53,
5721
+ Column as Column54
5588
5722
  } from "typeorm";
5589
5723
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
5590
5724
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -5594,22 +5728,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
5594
5728
  var Lead = class extends BaseEntity {
5595
5729
  };
5596
5730
  __decorateClass([
5597
- Column52({ name: "name", type: "varchar", nullable: true })
5731
+ Column54({ name: "name", type: "varchar", nullable: true })
5598
5732
  ], Lead.prototype, "name", 2);
5599
5733
  __decorateClass([
5600
- Column52({ name: "mobile_code", type: "varchar", nullable: true })
5734
+ Column54({ name: "mobile_code", type: "varchar", nullable: true })
5601
5735
  ], Lead.prototype, "mobileCode", 2);
5602
5736
  __decorateClass([
5603
- Column52({ name: "mobile", type: "varchar", nullable: true })
5737
+ Column54({ name: "mobile", type: "varchar", nullable: true })
5604
5738
  ], Lead.prototype, "mobile", 2);
5605
5739
  __decorateClass([
5606
- Column52({ name: "email", type: "varchar", nullable: true })
5740
+ Column54({ name: "email", type: "varchar", nullable: true })
5607
5741
  ], Lead.prototype, "email", 2);
5608
5742
  __decorateClass([
5609
- Column52({ name: "description", type: "varchar", nullable: true })
5743
+ Column54({ name: "description", type: "varchar", nullable: true })
5610
5744
  ], Lead.prototype, "description", 2);
5611
5745
  __decorateClass([
5612
- Column52({
5746
+ Column54({
5613
5747
  name: "category",
5614
5748
  type: "enum",
5615
5749
  enum: CategoryEmum,
@@ -5617,7 +5751,7 @@ __decorateClass([
5617
5751
  })
5618
5752
  ], Lead.prototype, "category", 2);
5619
5753
  Lead = __decorateClass([
5620
- Entity51("leads")
5754
+ Entity53("leads")
5621
5755
  ], Lead);
5622
5756
 
5623
5757
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -5858,7 +5992,7 @@ ClientFreelancerRecommendation = __decorateClass([
5858
5992
  ], ClientFreelancerRecommendation);
5859
5993
 
5860
5994
  // src/entities/commission.entity.ts
5861
- import { Entity as Entity52, Column as Column53 } from "typeorm";
5995
+ import { Entity as Entity54, Column as Column55 } from "typeorm";
5862
5996
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
5863
5997
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
5864
5998
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -5867,7 +6001,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
5867
6001
  var Commission = class extends BaseEntity {
5868
6002
  };
5869
6003
  __decorateClass([
5870
- Column53({
6004
+ Column55({
5871
6005
  name: "freelancer_commission_type",
5872
6006
  type: "enum",
5873
6007
  enum: CommissionTypeEnum,
@@ -5875,10 +6009,10 @@ __decorateClass([
5875
6009
  })
5876
6010
  ], Commission.prototype, "freelancerCommissionType", 2);
5877
6011
  __decorateClass([
5878
- Column53({ name: "freelancer_commission", type: "integer", default: 0 })
6012
+ Column55({ name: "freelancer_commission", type: "integer", default: 0 })
5879
6013
  ], Commission.prototype, "freelancerCommission", 2);
5880
6014
  __decorateClass([
5881
- Column53({
6015
+ Column55({
5882
6016
  name: "client_commission_type",
5883
6017
  type: "enum",
5884
6018
  enum: CommissionTypeEnum,
@@ -5886,10 +6020,10 @@ __decorateClass([
5886
6020
  })
5887
6021
  ], Commission.prototype, "clientCommissionType", 2);
5888
6022
  __decorateClass([
5889
- Column53({ name: "client_commission", type: "integer", default: 0 })
6023
+ Column55({ name: "client_commission", type: "integer", default: 0 })
5890
6024
  ], Commission.prototype, "clientCommission", 2);
5891
6025
  Commission = __decorateClass([
5892
- Entity52("commissions")
6026
+ Entity54("commissions")
5893
6027
  ], Commission);
5894
6028
  export {
5895
6029
  ADMIN_FREELANCER_PATTERN,