@experts_hub/shared 1.0.656 → 1.0.658

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
@@ -982,13 +982,13 @@ import { IsEnum as IsEnum13 } from "class-validator";
982
982
 
983
983
  // src/entities/user.entity.ts
984
984
  import {
985
- Entity as Entity67,
986
- Column as Column68,
985
+ Entity as Entity66,
986
+ Column as Column67,
987
987
  OneToMany as OneToMany24,
988
988
  OneToOne as OneToOne13,
989
- Index as Index60,
990
- ManyToOne as ManyToOne62,
991
- JoinColumn as JoinColumn63
989
+ Index as Index59,
990
+ ManyToOne as ManyToOne61,
991
+ JoinColumn as JoinColumn62
992
992
  } from "typeorm";
993
993
 
994
994
  // src/entities/base.entity.ts
@@ -1410,6 +1410,9 @@ __decorateClass([
1410
1410
  default: 0
1411
1411
  })
1412
1412
  ], CompanyProfile.prototype, "rating", 2);
1413
+ __decorateClass([
1414
+ Column5({ name: "signature_url", type: "varchar", nullable: true })
1415
+ ], CompanyProfile.prototype, "signatureUrl", 2);
1413
1416
  CompanyProfile = __decorateClass([
1414
1417
  Entity4("company_profiles")
1415
1418
  ], CompanyProfile);
@@ -1853,17 +1856,20 @@ __decorateClass([
1853
1856
  default: 0
1854
1857
  })
1855
1858
  ], FreelancerProfile.prototype, "rating", 2);
1859
+ __decorateClass([
1860
+ Column9({ name: "signature_url", type: "varchar", nullable: true })
1861
+ ], FreelancerProfile.prototype, "signatureUrl", 2);
1856
1862
  FreelancerProfile = __decorateClass([
1857
1863
  Entity8("freelancer_profiles")
1858
1864
  ], FreelancerProfile);
1859
1865
 
1860
1866
  // src/entities/job.entity.ts
1861
1867
  import {
1862
- Entity as Entity35,
1863
- Column as Column36,
1864
- Index as Index28,
1865
- ManyToOne as ManyToOne34,
1866
- JoinColumn as JoinColumn34,
1868
+ Entity as Entity34,
1869
+ Column as Column35,
1870
+ Index as Index27,
1871
+ ManyToOne as ManyToOne33,
1872
+ JoinColumn as JoinColumn33,
1867
1873
  OneToMany as OneToMany15
1868
1874
  } from "typeorm";
1869
1875
 
@@ -2943,7 +2949,7 @@ JobRecommendation = __decorateClass([
2943
2949
  ], JobRecommendation);
2944
2950
 
2945
2951
  // src/entities/contract.entity.ts
2946
- import { Entity as Entity31, Column as Column32, Index as Index24, ManyToOne as ManyToOne30, JoinColumn as JoinColumn30, OneToOne as OneToOne10 } from "typeorm";
2952
+ import { Entity as Entity30, Column as Column31, Index as Index23, ManyToOne as ManyToOne29, JoinColumn as JoinColumn29, OneToOne as OneToOne10 } from "typeorm";
2947
2953
 
2948
2954
  // src/entities/escrow-wallet.entity.ts
2949
2955
  import { Entity as Entity29, Column as Column30, Index as Index22, JoinColumn as JoinColumn28, OneToOne as OneToOne9, OneToMany as OneToMany12, ManyToOne as ManyToOne28 } from "typeorm";
@@ -3580,32 +3586,6 @@ EscrowWallet = __decorateClass([
3580
3586
  Entity29("escrow_wallets")
3581
3587
  ], EscrowWallet);
3582
3588
 
3583
- // src/entities/docuseal.entity.ts
3584
- import { Entity as Entity30, Column as Column31, Index as Index23, ManyToOne as ManyToOne29, JoinColumn as JoinColumn29 } from "typeorm";
3585
- var DocuSeal = class extends BaseEntity {
3586
- };
3587
- __decorateClass([
3588
- Column31({ name: "contract_id", type: "integer", nullable: true }),
3589
- Index23()
3590
- ], DocuSeal.prototype, "contractId", 2);
3591
- __decorateClass([
3592
- ManyToOne29(() => Contract, (contract) => contract.docuseal),
3593
- JoinColumn29({ name: "contract_id" })
3594
- ], DocuSeal.prototype, "contract", 2);
3595
- __decorateClass([
3596
- Column31({ name: "submitter_id", type: "integer", nullable: true }),
3597
- Index23()
3598
- ], DocuSeal.prototype, "submitterId", 2);
3599
- __decorateClass([
3600
- Column31({ name: "submitter_response", type: "jsonb", nullable: true })
3601
- ], DocuSeal.prototype, "submitterResponse", 2);
3602
- __decorateClass([
3603
- Column31({ name: "webhook_response", type: "jsonb", nullable: true })
3604
- ], DocuSeal.prototype, "webhookResponse", 2);
3605
- DocuSeal = __decorateClass([
3606
- Entity30("docuseal")
3607
- ], DocuSeal);
3608
-
3609
3589
  // src/entities/contract.entity.ts
3610
3590
  var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
3611
3591
  ContractStatusEnum2["GENERATED"] = "GENERATED";
@@ -3631,45 +3611,45 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
3631
3611
  var Contract = class extends BaseEntity {
3632
3612
  };
3633
3613
  __decorateClass([
3634
- Column32({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3614
+ Column31({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3635
3615
  ], Contract.prototype, "contractUniqueId", 2);
3636
3616
  __decorateClass([
3637
- Column32({ name: "contract_summary_id", type: "integer", nullable: true }),
3638
- Index24()
3617
+ Column31({ name: "contract_summary_id", type: "integer", nullable: true }),
3618
+ Index23()
3639
3619
  ], Contract.prototype, "contractSummaryId", 2);
3640
3620
  __decorateClass([
3641
- ManyToOne30(() => ContractSummary, (contractSummary) => contractSummary.contracts),
3642
- JoinColumn30({ name: "contract_summary_id" })
3621
+ ManyToOne29(() => ContractSummary, (contractSummary) => contractSummary.contracts),
3622
+ JoinColumn29({ name: "contract_summary_id" })
3643
3623
  ], Contract.prototype, "contractSummary", 2);
3644
3624
  __decorateClass([
3645
- Column32({ name: "job_id", type: "integer", nullable: true }),
3646
- Index24()
3625
+ Column31({ name: "job_id", type: "integer", nullable: true }),
3626
+ Index23()
3647
3627
  ], Contract.prototype, "jobId", 2);
3648
3628
  __decorateClass([
3649
- ManyToOne30(() => Job, (job) => job.contracts),
3650
- JoinColumn30({ name: "job_id" })
3629
+ ManyToOne29(() => Job, (job) => job.contracts),
3630
+ JoinColumn29({ name: "job_id" })
3651
3631
  ], Contract.prototype, "job", 2);
3652
3632
  __decorateClass([
3653
- Column32({ name: "client_id", type: "integer", nullable: true }),
3654
- Index24()
3633
+ Column31({ name: "client_id", type: "integer", nullable: true }),
3634
+ Index23()
3655
3635
  ], Contract.prototype, "clientId", 2);
3656
3636
  __decorateClass([
3657
- ManyToOne30(() => User, (user) => user.clientContracts),
3658
- JoinColumn30({ name: "client_id" })
3637
+ ManyToOne29(() => User, (user) => user.clientContracts),
3638
+ JoinColumn29({ name: "client_id" })
3659
3639
  ], Contract.prototype, "client", 2);
3660
3640
  __decorateClass([
3661
- Column32({ name: "freelancer_id", type: "integer", nullable: true }),
3662
- Index24()
3641
+ Column31({ name: "freelancer_id", type: "integer", nullable: true }),
3642
+ Index23()
3663
3643
  ], Contract.prototype, "freelancerId", 2);
3664
3644
  __decorateClass([
3665
- ManyToOne30(() => User, (user) => user.freelancerContracts),
3666
- JoinColumn30({ name: "freelancer_id" })
3645
+ ManyToOne29(() => User, (user) => user.freelancerContracts),
3646
+ JoinColumn29({ name: "freelancer_id" })
3667
3647
  ], Contract.prototype, "freelancer", 2);
3668
3648
  __decorateClass([
3669
- Column32({ name: "duration", type: "integer", nullable: true })
3649
+ Column31({ name: "duration", type: "integer", nullable: true })
3670
3650
  ], Contract.prototype, "duration", 2);
3671
3651
  __decorateClass([
3672
- Column32({
3652
+ Column31({
3673
3653
  name: "status",
3674
3654
  type: "enum",
3675
3655
  enum: ContractStatusEnum,
@@ -3677,7 +3657,7 @@ __decorateClass([
3677
3657
  })
3678
3658
  ], Contract.prototype, "status", 2);
3679
3659
  __decorateClass([
3680
- Column32({
3660
+ Column31({
3681
3661
  name: "type",
3682
3662
  type: "enum",
3683
3663
  enum: ContractTypeEnum,
@@ -3685,10 +3665,10 @@ __decorateClass([
3685
3665
  })
3686
3666
  ], Contract.prototype, "type", 2);
3687
3667
  __decorateClass([
3688
- Column32({ name: "invoicing_cycle", type: "varchar", nullable: true })
3668
+ Column31({ name: "invoicing_cycle", type: "varchar", nullable: true })
3689
3669
  ], Contract.prototype, "invoicingCycle", 2);
3690
3670
  __decorateClass([
3691
- Column32({
3671
+ Column31({
3692
3672
  name: "escrow_deposite_amount",
3693
3673
  type: "decimal",
3694
3674
  precision: 10,
@@ -3697,103 +3677,100 @@ __decorateClass([
3697
3677
  })
3698
3678
  ], Contract.prototype, "escrowDepositeAmount", 2);
3699
3679
  __decorateClass([
3700
- Column32({
3680
+ Column31({
3701
3681
  name: "start_date",
3702
3682
  type: "timestamp with time zone",
3703
3683
  nullable: true
3704
3684
  })
3705
3685
  ], Contract.prototype, "startDate", 2);
3706
3686
  __decorateClass([
3707
- Column32({
3687
+ Column31({
3708
3688
  name: "end_date",
3709
3689
  type: "timestamp with time zone",
3710
3690
  nullable: true
3711
3691
  })
3712
3692
  ], Contract.prototype, "endDate", 2);
3713
3693
  __decorateClass([
3714
- Column32({
3694
+ Column31({
3715
3695
  name: "actual_start_date",
3716
3696
  type: "timestamp with time zone",
3717
3697
  nullable: true
3718
3698
  })
3719
3699
  ], Contract.prototype, "actualStartDate", 2);
3720
3700
  __decorateClass([
3721
- Column32({
3701
+ Column31({
3722
3702
  name: "actual_end_date",
3723
3703
  type: "timestamp with time zone",
3724
3704
  nullable: true
3725
3705
  })
3726
3706
  ], Contract.prototype, "actualEndDate", 2);
3727
3707
  __decorateClass([
3728
- Column32({ name: "original_document_url", type: "varchar", nullable: true })
3708
+ Column31({ name: "original_document_url", type: "varchar", nullable: true })
3729
3709
  ], Contract.prototype, "originalDocumentUrl", 2);
3730
3710
  __decorateClass([
3731
- Column32({ name: "contract_document_url", type: "varchar", nullable: true })
3711
+ Column31({ name: "contract_document_url", type: "varchar", nullable: true })
3732
3712
  ], Contract.prototype, "contractDocumentUrl", 2);
3733
3713
  __decorateClass([
3734
- Column32({
3714
+ Column31({
3735
3715
  name: "client_signed_at",
3736
3716
  type: "timestamp with time zone",
3737
3717
  nullable: true
3738
3718
  })
3739
3719
  ], Contract.prototype, "clientSignedAt", 2);
3740
3720
  __decorateClass([
3741
- Column32({ name: "freelancer_viewed", type: "boolean", default: false })
3721
+ Column31({ name: "freelancer_viewed", type: "boolean", default: false })
3742
3722
  ], Contract.prototype, "freelancerViewed", 2);
3743
3723
  __decorateClass([
3744
- Column32({
3724
+ Column31({
3745
3725
  name: "freelancer_viewed_at",
3746
3726
  type: "timestamp with time zone",
3747
3727
  nullable: true
3748
3728
  })
3749
3729
  ], Contract.prototype, "freelancerViewedAt", 2);
3750
3730
  __decorateClass([
3751
- Column32({
3731
+ Column31({
3752
3732
  name: "freelancer_signed_at",
3753
3733
  type: "timestamp with time zone",
3754
3734
  nullable: true
3755
3735
  })
3756
3736
  ], Contract.prototype, "freelancerSignedAt", 2);
3757
3737
  __decorateClass([
3758
- Column32({
3738
+ Column31({
3759
3739
  name: "rejectd_at",
3760
3740
  type: "timestamp with time zone",
3761
3741
  nullable: true
3762
3742
  })
3763
3743
  ], Contract.prototype, "rejectedAt", 2);
3764
3744
  __decorateClass([
3765
- Column32({ name: "reject_reason", type: "varchar", nullable: true })
3745
+ Column31({ name: "reject_reason", type: "varchar", nullable: true })
3766
3746
  ], Contract.prototype, "rejectReason", 2);
3767
3747
  __decorateClass([
3768
- Column32({ name: "resend_count", type: "integer", default: 0 })
3748
+ Column31({ name: "resend_count", type: "integer", default: 0 })
3769
3749
  ], Contract.prototype, "resendCount", 2);
3770
3750
  __decorateClass([
3771
- Column32({ name: "is_work_contract_sent", type: "boolean", default: false })
3751
+ Column31({ name: "is_work_contract_sent", type: "boolean", default: false })
3772
3752
  ], Contract.prototype, "isWorkContractSent", 2);
3773
3753
  __decorateClass([
3774
- Column32({ name: "is_escrow_deposited", type: "boolean", default: false })
3754
+ Column31({ name: "is_escrow_deposited", type: "boolean", default: false })
3775
3755
  ], Contract.prototype, "isEscrowDeposited", 2);
3776
3756
  __decorateClass([
3777
- Column32({ name: "signature_positions", type: "jsonb", nullable: true })
3757
+ Column31({ name: "signature_positions", type: "jsonb", nullable: true })
3778
3758
  ], Contract.prototype, "signaturePositions", 2);
3779
3759
  __decorateClass([
3780
- Column32({ name: "signature_url", type: "varchar", nullable: true })
3760
+ Column31({ name: "signature_url", type: "varchar", nullable: true })
3781
3761
  ], Contract.prototype, "signatureUrl", 2);
3782
3762
  __decorateClass([
3783
- Column32({ name: "meta_data", type: "jsonb", nullable: true })
3763
+ Column31({ name: "meta_data", type: "jsonb", nullable: true })
3784
3764
  ], Contract.prototype, "metaData", 2);
3785
3765
  __decorateClass([
3786
3766
  OneToOne10(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
3787
3767
  ], Contract.prototype, "escrowWallet", 2);
3788
- __decorateClass([
3789
- OneToOne10(() => DocuSeal, (docuseal) => docuseal.contract)
3790
- ], Contract.prototype, "docuseal", 2);
3791
3768
  Contract = __decorateClass([
3792
- Entity31("contracts")
3769
+ Entity30("contracts")
3793
3770
  ], Contract);
3794
3771
 
3795
3772
  // src/entities/timesheets.entity.ts
3796
- import { Entity as Entity32, Column as Column33, Index as Index25, JoinColumn as JoinColumn31, ManyToOne as ManyToOne31 } from "typeorm";
3773
+ import { Entity as Entity31, Column as Column32, Index as Index24, JoinColumn as JoinColumn30, ManyToOne as ManyToOne30 } from "typeorm";
3797
3774
  var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
3798
3775
  TimesheetStatusEnum2["DRAFT"] = "DRAFT";
3799
3776
  TimesheetStatusEnum2["SEND"] = "SEND";
@@ -3806,146 +3783,146 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
3806
3783
  var Timesheet = class extends BaseEntity {
3807
3784
  };
3808
3785
  __decorateClass([
3809
- Column33({ name: "job_id", type: "integer", nullable: true }),
3810
- Index25()
3786
+ Column32({ name: "job_id", type: "integer", nullable: true }),
3787
+ Index24()
3811
3788
  ], Timesheet.prototype, "jobId", 2);
3812
3789
  __decorateClass([
3813
- ManyToOne31(() => Job, (job) => job.timesheets),
3814
- JoinColumn31({ name: "job_id" })
3790
+ ManyToOne30(() => Job, (job) => job.timesheets),
3791
+ JoinColumn30({ name: "job_id" })
3815
3792
  ], Timesheet.prototype, "job", 2);
3816
3793
  __decorateClass([
3817
- Column33({ name: "client_id", type: "integer", nullable: true }),
3818
- Index25()
3794
+ Column32({ name: "client_id", type: "integer", nullable: true }),
3795
+ Index24()
3819
3796
  ], Timesheet.prototype, "clientId", 2);
3820
3797
  __decorateClass([
3821
- ManyToOne31(() => User, (user) => user.clientTimesheets),
3822
- JoinColumn31({ name: "client_id" })
3798
+ ManyToOne30(() => User, (user) => user.clientTimesheets),
3799
+ JoinColumn30({ name: "client_id" })
3823
3800
  ], Timesheet.prototype, "client", 2);
3824
3801
  __decorateClass([
3825
- Column33({ name: "freelancer_id", type: "integer", nullable: true }),
3826
- Index25()
3802
+ Column32({ name: "freelancer_id", type: "integer", nullable: true }),
3803
+ Index24()
3827
3804
  ], Timesheet.prototype, "freelancerId", 2);
3828
3805
  __decorateClass([
3829
- ManyToOne31(() => User, (user) => user.freelancerTimesheets),
3830
- JoinColumn31({ name: "freelancer_id" })
3806
+ ManyToOne30(() => User, (user) => user.freelancerTimesheets),
3807
+ JoinColumn30({ name: "freelancer_id" })
3831
3808
  ], Timesheet.prototype, "freelancer", 2);
3832
3809
  __decorateClass([
3833
- Column33({
3810
+ Column32({
3834
3811
  name: "start_date",
3835
3812
  type: "date",
3836
3813
  nullable: true
3837
3814
  })
3838
3815
  ], Timesheet.prototype, "startDate", 2);
3839
3816
  __decorateClass([
3840
- Column33({
3817
+ Column32({
3841
3818
  name: "end_date",
3842
3819
  type: "date",
3843
3820
  nullable: true
3844
3821
  })
3845
3822
  ], Timesheet.prototype, "endDate", 2);
3846
3823
  __decorateClass([
3847
- Column33({ name: "start_time", type: "varchar", nullable: true })
3824
+ Column32({ name: "start_time", type: "varchar", nullable: true })
3848
3825
  ], Timesheet.prototype, "startTime", 2);
3849
3826
  __decorateClass([
3850
- Column33({ name: "end_time", type: "varchar", nullable: true })
3827
+ Column32({ name: "end_time", type: "varchar", nullable: true })
3851
3828
  ], Timesheet.prototype, "endTime", 2);
3852
3829
  __decorateClass([
3853
- Column33({ name: "worked_hours", type: "varchar", nullable: true })
3830
+ Column32({ name: "worked_hours", type: "varchar", nullable: true })
3854
3831
  ], Timesheet.prototype, "workedHours", 2);
3855
3832
  __decorateClass([
3856
- Column33({ name: "task_id", type: "integer", nullable: true })
3833
+ Column32({ name: "task_id", type: "integer", nullable: true })
3857
3834
  ], Timesheet.prototype, "taskId", 2);
3858
3835
  __decorateClass([
3859
- Column33({ name: "task_name", type: "varchar", nullable: true })
3836
+ Column32({ name: "task_name", type: "varchar", nullable: true })
3860
3837
  ], Timesheet.prototype, "taskName", 2);
3861
3838
  __decorateClass([
3862
- Column33({ name: "description", type: "varchar", nullable: true })
3839
+ Column32({ name: "description", type: "varchar", nullable: true })
3863
3840
  ], Timesheet.prototype, "description", 2);
3864
3841
  __decorateClass([
3865
- Column33({ name: "week_start_date", type: "date", nullable: true })
3842
+ Column32({ name: "week_start_date", type: "date", nullable: true })
3866
3843
  ], Timesheet.prototype, "weekStartDate", 2);
3867
3844
  __decorateClass([
3868
- Column33({ name: "week_end_date", type: "date", nullable: true })
3845
+ Column32({ name: "week_end_date", type: "date", nullable: true })
3869
3846
  ], Timesheet.prototype, "weekEndDate", 2);
3870
3847
  __decorateClass([
3871
- Column33({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
3848
+ Column32({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
3872
3849
  ], Timesheet.prototype, "rejectedAt", 2);
3873
3850
  __decorateClass([
3874
- Column33({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
3851
+ Column32({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
3875
3852
  ], Timesheet.prototype, "submittedAt", 2);
3876
3853
  __decorateClass([
3877
- Column33({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
3854
+ Column32({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
3878
3855
  ], Timesheet.prototype, "resubmittedAt", 2);
3879
3856
  __decorateClass([
3880
- Column33({ name: "approved_at", type: "timestamp with time zone", nullable: true })
3857
+ Column32({ name: "approved_at", type: "timestamp with time zone", nullable: true })
3881
3858
  ], Timesheet.prototype, "approvedAt", 2);
3882
3859
  __decorateClass([
3883
- Column33({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
3860
+ Column32({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
3884
3861
  ], Timesheet.prototype, "status", 2);
3885
3862
  __decorateClass([
3886
- Column33({ name: "client_send_back_reason", type: "varchar", nullable: true })
3863
+ Column32({ name: "client_send_back_reason", type: "varchar", nullable: true })
3887
3864
  ], Timesheet.prototype, "clientSendBackReason", 2);
3888
3865
  Timesheet = __decorateClass([
3889
- Entity32("timesheets")
3866
+ Entity31("timesheets")
3890
3867
  ], Timesheet);
3891
3868
 
3892
3869
  // src/entities/job-location.entity.ts
3893
3870
  import {
3894
- Entity as Entity33,
3895
- Column as Column34,
3896
- ManyToOne as ManyToOne32,
3897
- JoinColumn as JoinColumn32,
3898
- Index as Index26
3871
+ Entity as Entity32,
3872
+ Column as Column33,
3873
+ ManyToOne as ManyToOne31,
3874
+ JoinColumn as JoinColumn31,
3875
+ Index as Index25
3899
3876
  } from "typeorm";
3900
3877
  var JobLocation = class extends BaseEntity {
3901
3878
  };
3902
3879
  __decorateClass([
3903
- Column34({ name: "job_id", type: "integer", nullable: false }),
3904
- Index26()
3880
+ Column33({ name: "job_id", type: "integer", nullable: false }),
3881
+ Index25()
3905
3882
  ], JobLocation.prototype, "jobId", 2);
3906
3883
  __decorateClass([
3907
- ManyToOne32(() => Job, (job) => job.jobLocations),
3908
- JoinColumn32({ name: "job_id" })
3884
+ ManyToOne31(() => Job, (job) => job.jobLocations),
3885
+ JoinColumn31({ name: "job_id" })
3909
3886
  ], JobLocation.prototype, "job", 2);
3910
3887
  __decorateClass([
3911
- Column34({ name: "country_id", type: "int", nullable: false })
3888
+ Column33({ name: "country_id", type: "int", nullable: false })
3912
3889
  ], JobLocation.prototype, "countryId", 2);
3913
3890
  __decorateClass([
3914
- Column34({ name: "country_name", type: "varchar", nullable: true })
3891
+ Column33({ name: "country_name", type: "varchar", nullable: true })
3915
3892
  ], JobLocation.prototype, "countryName", 2);
3916
3893
  __decorateClass([
3917
- ManyToOne32(() => Country),
3918
- JoinColumn32({ name: "country_id" })
3894
+ ManyToOne31(() => Country),
3895
+ JoinColumn31({ name: "country_id" })
3919
3896
  ], JobLocation.prototype, "country", 2);
3920
3897
  __decorateClass([
3921
- Column34({ name: "state_id", type: "int", nullable: false })
3898
+ Column33({ name: "state_id", type: "int", nullable: false })
3922
3899
  ], JobLocation.prototype, "stateId", 2);
3923
3900
  __decorateClass([
3924
- Column34({ name: "state_name", type: "varchar", nullable: true })
3901
+ Column33({ name: "state_name", type: "varchar", nullable: true })
3925
3902
  ], JobLocation.prototype, "stateName", 2);
3926
3903
  __decorateClass([
3927
- ManyToOne32(() => State),
3928
- JoinColumn32({ name: "state_id" })
3904
+ ManyToOne31(() => State),
3905
+ JoinColumn31({ name: "state_id" })
3929
3906
  ], JobLocation.prototype, "state", 2);
3930
3907
  __decorateClass([
3931
- Column34({ name: "city_id", type: "int", nullable: false })
3908
+ Column33({ name: "city_id", type: "int", nullable: false })
3932
3909
  ], JobLocation.prototype, "cityId", 2);
3933
3910
  __decorateClass([
3934
- Column34({ name: "city_name", type: "varchar", nullable: true })
3911
+ Column33({ name: "city_name", type: "varchar", nullable: true })
3935
3912
  ], JobLocation.prototype, "cityName", 2);
3936
3913
  __decorateClass([
3937
- ManyToOne32(() => City),
3938
- JoinColumn32({ name: "city_id" })
3914
+ ManyToOne31(() => City),
3915
+ JoinColumn31({ name: "city_id" })
3939
3916
  ], JobLocation.prototype, "city", 2);
3940
3917
  __decorateClass([
3941
- Column34({ name: "location_wise_openings", type: "int", default: 0 })
3918
+ Column33({ name: "location_wise_openings", type: "int", default: 0 })
3942
3919
  ], JobLocation.prototype, "locationWiseOpenings", 2);
3943
3920
  JobLocation = __decorateClass([
3944
- Entity33("job_locations")
3921
+ Entity32("job_locations")
3945
3922
  ], JobLocation);
3946
3923
 
3947
3924
  // src/entities/rating.entity.ts
3948
- import { Entity as Entity34, Column as Column35, ManyToOne as ManyToOne33, JoinColumn as JoinColumn33, Index as Index27 } from "typeorm";
3925
+ import { Entity as Entity33, Column as Column34, ManyToOne as ManyToOne32, JoinColumn as JoinColumn32, Index as Index26 } from "typeorm";
3949
3926
  var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
3950
3927
  RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
3951
3928
  RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
@@ -3954,31 +3931,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
3954
3931
  var Rating = class extends BaseEntity {
3955
3932
  };
3956
3933
  __decorateClass([
3957
- Column35({ name: "reviewer_id", type: "integer" }),
3958
- Index27()
3934
+ Column34({ name: "reviewer_id", type: "integer" }),
3935
+ Index26()
3959
3936
  ], Rating.prototype, "reviewerId", 2);
3960
3937
  __decorateClass([
3961
- ManyToOne33(() => User, { onDelete: "CASCADE" }),
3962
- JoinColumn33({ name: "reviewer_id" })
3938
+ ManyToOne32(() => User, { onDelete: "CASCADE" }),
3939
+ JoinColumn32({ name: "reviewer_id" })
3963
3940
  ], Rating.prototype, "reviewer", 2);
3964
3941
  __decorateClass([
3965
- Column35({ name: "reviewee_id", type: "integer" }),
3966
- Index27()
3942
+ Column34({ name: "reviewee_id", type: "integer" }),
3943
+ Index26()
3967
3944
  ], Rating.prototype, "revieweeId", 2);
3968
3945
  __decorateClass([
3969
- ManyToOne33(() => User, { onDelete: "CASCADE" }),
3970
- JoinColumn33({ name: "reviewee_id" })
3946
+ ManyToOne32(() => User, { onDelete: "CASCADE" }),
3947
+ JoinColumn32({ name: "reviewee_id" })
3971
3948
  ], Rating.prototype, "reviewee", 2);
3972
3949
  __decorateClass([
3973
- Column35({ name: "job_id", type: "integer" }),
3974
- Index27()
3950
+ Column34({ name: "job_id", type: "integer" }),
3951
+ Index26()
3975
3952
  ], Rating.prototype, "jobId", 2);
3976
3953
  __decorateClass([
3977
- ManyToOne33(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
3978
- JoinColumn33({ name: "job_id" })
3954
+ ManyToOne32(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
3955
+ JoinColumn32({ name: "job_id" })
3979
3956
  ], Rating.prototype, "job", 2);
3980
3957
  __decorateClass([
3981
- Column35({
3958
+ Column34({
3982
3959
  name: "rating_type",
3983
3960
  type: "enum",
3984
3961
  enum: RatingTypeEnum,
@@ -3986,67 +3963,67 @@ __decorateClass([
3986
3963
  })
3987
3964
  ], Rating.prototype, "ratingType", 2);
3988
3965
  __decorateClass([
3989
- Column35({ name: "reviewer_comment", type: "text", nullable: true })
3966
+ Column34({ name: "reviewer_comment", type: "text", nullable: true })
3990
3967
  ], Rating.prototype, "reviewerComment", 2);
3991
3968
  __decorateClass([
3992
- Column35({
3969
+ Column34({
3993
3970
  name: "overall_experience",
3994
3971
  type: "float",
3995
3972
  default: 0
3996
3973
  })
3997
3974
  ], Rating.prototype, "overAllExperience", 2);
3998
3975
  __decorateClass([
3999
- Column35({
3976
+ Column34({
4000
3977
  name: "work_quality",
4001
3978
  type: "float",
4002
3979
  default: 0
4003
3980
  })
4004
3981
  ], Rating.prototype, "workQuality", 2);
4005
3982
  __decorateClass([
4006
- Column35({
3983
+ Column34({
4007
3984
  name: "one_time_delivery",
4008
3985
  type: "float",
4009
3986
  default: 0
4010
3987
  })
4011
3988
  ], Rating.prototype, "oneTimeDelivery", 2);
4012
3989
  __decorateClass([
4013
- Column35({
3990
+ Column34({
4014
3991
  name: "understaning",
4015
3992
  type: "float",
4016
3993
  default: 0
4017
3994
  })
4018
3995
  ], Rating.prototype, "understaning", 2);
4019
3996
  __decorateClass([
4020
- Column35({
3997
+ Column34({
4021
3998
  name: "communication",
4022
3999
  type: "float",
4023
4000
  default: 0
4024
4001
  })
4025
4002
  ], Rating.prototype, "communication", 2);
4026
4003
  __decorateClass([
4027
- Column35({
4004
+ Column34({
4028
4005
  name: "skill_utilized",
4029
4006
  type: "float",
4030
4007
  default: 0
4031
4008
  })
4032
4009
  ], Rating.prototype, "skillUtilized", 2);
4033
4010
  __decorateClass([
4034
- Column35({ name: "communication_clarity", type: "float", default: 0 })
4011
+ Column34({ name: "communication_clarity", type: "float", default: 0 })
4035
4012
  ], Rating.prototype, "communicationClarity", 2);
4036
4013
  __decorateClass([
4037
- Column35({ name: "requirements_clarity", type: "float", default: 0 })
4014
+ Column34({ name: "requirements_clarity", type: "float", default: 0 })
4038
4015
  ], Rating.prototype, "requirementsClarity", 2);
4039
4016
  __decorateClass([
4040
- Column35({ name: "responsiveness", type: "float", default: 0 })
4017
+ Column34({ name: "responsiveness", type: "float", default: 0 })
4041
4018
  ], Rating.prototype, "responsiveness", 2);
4042
4019
  __decorateClass([
4043
- Column35({ name: "payment_promptness", type: "float", default: 0 })
4020
+ Column34({ name: "payment_promptness", type: "float", default: 0 })
4044
4021
  ], Rating.prototype, "paymentPromptness", 2);
4045
4022
  __decorateClass([
4046
- Column35({ name: "responsibilities_and_expectations", type: "float", default: 0 })
4023
+ Column34({ name: "responsibilities_and_expectations", type: "float", default: 0 })
4047
4024
  ], Rating.prototype, "responsibilitiesAndExpectations", 2);
4048
4025
  Rating = __decorateClass([
4049
- Entity34("ratings")
4026
+ Entity33("ratings")
4050
4027
  ], Rating);
4051
4028
 
4052
4029
  // src/entities/job.entity.ts
@@ -4101,58 +4078,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
4101
4078
  var Job = class extends BaseEntity {
4102
4079
  };
4103
4080
  __decorateClass([
4104
- Column36({ name: "job_id", type: "varchar", unique: true, nullable: true })
4081
+ Column35({ name: "job_id", type: "varchar", unique: true, nullable: true })
4105
4082
  ], Job.prototype, "jobId", 2);
4106
4083
  // individual index to find jobs by user
4107
4084
  __decorateClass([
4108
- Column36({ name: "user_id", type: "integer", nullable: true }),
4109
- Index28()
4085
+ Column35({ name: "user_id", type: "integer", nullable: true }),
4086
+ Index27()
4110
4087
  ], Job.prototype, "userId", 2);
4111
4088
  __decorateClass([
4112
- ManyToOne34(() => User, (user) => user.jobs),
4113
- JoinColumn34({ name: "user_id" })
4089
+ ManyToOne33(() => User, (user) => user.jobs),
4090
+ JoinColumn33({ name: "user_id" })
4114
4091
  ], Job.prototype, "user", 2);
4115
4092
  __decorateClass([
4116
- Column36({ name: "country_id", type: "int", nullable: true })
4093
+ Column35({ name: "country_id", type: "int", nullable: true })
4117
4094
  ], Job.prototype, "countryId", 2);
4118
4095
  __decorateClass([
4119
- ManyToOne34(() => Country),
4120
- JoinColumn34({ name: "country_id" })
4096
+ ManyToOne33(() => Country),
4097
+ JoinColumn33({ name: "country_id" })
4121
4098
  ], Job.prototype, "country", 2);
4122
4099
  __decorateClass([
4123
- Column36({ name: "state_id", type: "int", nullable: true })
4100
+ Column35({ name: "state_id", type: "int", nullable: true })
4124
4101
  ], Job.prototype, "stateId", 2);
4125
4102
  __decorateClass([
4126
- ManyToOne34(() => State),
4127
- JoinColumn34({ name: "state_id" })
4103
+ ManyToOne33(() => State),
4104
+ JoinColumn33({ name: "state_id" })
4128
4105
  ], Job.prototype, "state", 2);
4129
4106
  __decorateClass([
4130
- Column36({ name: "city_id", type: "int", nullable: true })
4107
+ Column35({ name: "city_id", type: "int", nullable: true })
4131
4108
  ], Job.prototype, "cityId", 2);
4132
4109
  __decorateClass([
4133
- ManyToOne34(() => City),
4134
- JoinColumn34({ name: "city_id" })
4110
+ ManyToOne33(() => City),
4111
+ JoinColumn33({ name: "city_id" })
4135
4112
  ], Job.prototype, "city", 2);
4136
4113
  __decorateClass([
4137
- Column36({ name: "job_role", type: "varchar", nullable: true })
4114
+ Column35({ name: "job_role", type: "varchar", nullable: true })
4138
4115
  ], Job.prototype, "jobRole", 2);
4139
4116
  __decorateClass([
4140
- Column36({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4117
+ Column35({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4141
4118
  ], Job.prototype, "jobRoleCanonicalName", 2);
4142
4119
  __decorateClass([
4143
- Column36({ name: "project_name", type: "varchar", nullable: true })
4120
+ Column35({ name: "project_name", type: "varchar", nullable: true })
4144
4121
  ], Job.prototype, "projectName", 2);
4145
4122
  __decorateClass([
4146
- Column36({ name: "note", type: "varchar", nullable: true })
4123
+ Column35({ name: "note", type: "varchar", nullable: true })
4147
4124
  ], Job.prototype, "note", 2);
4148
4125
  __decorateClass([
4149
- Column36({ name: "openings", type: "integer", default: 0 })
4126
+ Column35({ name: "openings", type: "integer", default: 0 })
4150
4127
  ], Job.prototype, "openings", 2);
4151
4128
  __decorateClass([
4152
- Column36({ name: "utilised_openings", type: "integer", default: 0 })
4129
+ Column35({ name: "utilised_openings", type: "integer", default: 0 })
4153
4130
  ], Job.prototype, "utilisedOpenings", 2);
4154
4131
  __decorateClass([
4155
- Column36({
4132
+ Column35({
4156
4133
  name: "location",
4157
4134
  type: "enum",
4158
4135
  enum: JobLocationEnum,
@@ -4160,7 +4137,7 @@ __decorateClass([
4160
4137
  })
4161
4138
  ], Job.prototype, "location", 2);
4162
4139
  __decorateClass([
4163
- Column36({
4140
+ Column35({
4164
4141
  name: "type_of_employment",
4165
4142
  type: "enum",
4166
4143
  enum: TypeOfEmploymentEnum,
@@ -4168,7 +4145,7 @@ __decorateClass([
4168
4145
  })
4169
4146
  ], Job.prototype, "typeOfEmployment", 2);
4170
4147
  __decorateClass([
4171
- Column36({
4148
+ Column35({
4172
4149
  name: "billing_cycle",
4173
4150
  type: "enum",
4174
4151
  enum: BillingCycleEnum,
@@ -4176,10 +4153,10 @@ __decorateClass([
4176
4153
  })
4177
4154
  ], Job.prototype, "billingCycle", 2);
4178
4155
  __decorateClass([
4179
- Column36({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4156
+ Column35({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4180
4157
  ], Job.prototype, "academicQualification", 2);
4181
4158
  __decorateClass([
4182
- Column36({
4159
+ Column35({
4183
4160
  name: "type_of_experience",
4184
4161
  type: "enum",
4185
4162
  enum: typeOfExperienceEnum,
@@ -4187,22 +4164,22 @@ __decorateClass([
4187
4164
  })
4188
4165
  ], Job.prototype, "typeOfExperience", 2);
4189
4166
  __decorateClass([
4190
- Column36({ name: "years_of_experience", type: "varchar", nullable: true })
4167
+ Column35({ name: "years_of_experience", type: "varchar", nullable: true })
4191
4168
  ], Job.prototype, "yearsOfExperience", 2);
4192
4169
  __decorateClass([
4193
- Column36({ name: "years_of_experience_from", type: "varchar", nullable: true })
4170
+ Column35({ name: "years_of_experience_from", type: "varchar", nullable: true })
4194
4171
  ], Job.prototype, "yearsOfExperienceFrom", 2);
4195
4172
  __decorateClass([
4196
- Column36({ name: "years_of_experience_to", type: "varchar", nullable: true })
4173
+ Column35({ name: "years_of_experience_to", type: "varchar", nullable: true })
4197
4174
  ], Job.prototype, "yearsOfExperienceTo", 2);
4198
4175
  __decorateClass([
4199
- Column36({ name: "business_industry", type: "varchar", nullable: true })
4176
+ Column35({ name: "business_industry", type: "varchar", nullable: true })
4200
4177
  ], Job.prototype, "businessIndustry", 2);
4201
4178
  __decorateClass([
4202
- Column36({ name: "currency", type: "varchar", default: "USD" })
4179
+ Column35({ name: "currency", type: "varchar", default: "USD" })
4203
4180
  ], Job.prototype, "currency", 2);
4204
4181
  __decorateClass([
4205
- Column36({
4182
+ Column35({
4206
4183
  name: "expected_salary_from",
4207
4184
  type: "decimal",
4208
4185
  precision: 10,
@@ -4211,14 +4188,14 @@ __decorateClass([
4211
4188
  })
4212
4189
  ], Job.prototype, "expectedSalaryFrom", 2);
4213
4190
  __decorateClass([
4214
- Column36({
4191
+ Column35({
4215
4192
  name: "hide_expected_salary_from",
4216
4193
  type: "boolean",
4217
4194
  default: false
4218
4195
  })
4219
4196
  ], Job.prototype, "hideExpectedSalaryFrom", 2);
4220
4197
  __decorateClass([
4221
- Column36({
4198
+ Column35({
4222
4199
  name: "expected_salary_to",
4223
4200
  type: "decimal",
4224
4201
  precision: 10,
@@ -4227,14 +4204,14 @@ __decorateClass([
4227
4204
  })
4228
4205
  ], Job.prototype, "expectedSalaryTo", 2);
4229
4206
  __decorateClass([
4230
- Column36({
4207
+ Column35({
4231
4208
  name: "hide_expected_salary_to",
4232
4209
  type: "boolean",
4233
4210
  default: false
4234
4211
  })
4235
4212
  ], Job.prototype, "hideExpectedSalaryTo", 2);
4236
4213
  __decorateClass([
4237
- Column36({
4214
+ Column35({
4238
4215
  name: "expected_annual_budget_from",
4239
4216
  type: "decimal",
4240
4217
  precision: 10,
@@ -4243,14 +4220,14 @@ __decorateClass([
4243
4220
  })
4244
4221
  ], Job.prototype, "expectedAnnualBudgetFrom", 2);
4245
4222
  __decorateClass([
4246
- Column36({
4223
+ Column35({
4247
4224
  name: "hide_expected_annual_budget_from",
4248
4225
  type: "boolean",
4249
4226
  default: false
4250
4227
  })
4251
4228
  ], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
4252
4229
  __decorateClass([
4253
- Column36({
4230
+ Column35({
4254
4231
  name: "expected_annual_budget_to",
4255
4232
  type: "decimal",
4256
4233
  precision: 10,
@@ -4259,32 +4236,32 @@ __decorateClass([
4259
4236
  })
4260
4237
  ], Job.prototype, "expectedAnnualBudgetTo", 2);
4261
4238
  __decorateClass([
4262
- Column36({
4239
+ Column35({
4263
4240
  name: "hide_expected_annual_budget_to",
4264
4241
  type: "boolean",
4265
4242
  default: false
4266
4243
  })
4267
4244
  ], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
4268
4245
  __decorateClass([
4269
- Column36({ name: "years", type: "varchar", nullable: true })
4246
+ Column35({ name: "years", type: "varchar", nullable: true })
4270
4247
  ], Job.prototype, "years", 2);
4271
4248
  __decorateClass([
4272
- Column36({ name: "months", type: "varchar", nullable: true })
4249
+ Column35({ name: "months", type: "varchar", nullable: true })
4273
4250
  ], Job.prototype, "months", 2);
4274
4251
  __decorateClass([
4275
- Column36({ name: "weeks", type: "varchar", nullable: true })
4252
+ Column35({ name: "weeks", type: "varchar", nullable: true })
4276
4253
  ], Job.prototype, "weeks", 2);
4277
4254
  __decorateClass([
4278
- Column36({ name: "days", type: "varchar", nullable: true })
4255
+ Column35({ name: "days", type: "varchar", nullable: true })
4279
4256
  ], Job.prototype, "days", 2);
4280
4257
  __decorateClass([
4281
- Column36({ name: "tentative_start_date", type: "date", nullable: true })
4258
+ Column35({ name: "tentative_start_date", type: "date", nullable: true })
4282
4259
  ], Job.prototype, "tentativeStartDate", 2);
4283
4260
  __decorateClass([
4284
- Column36({ name: "tentative_end_date", type: "date", nullable: true })
4261
+ Column35({ name: "tentative_end_date", type: "date", nullable: true })
4285
4262
  ], Job.prototype, "tentativeEndDate", 2);
4286
4263
  __decorateClass([
4287
- Column36({
4264
+ Column35({
4288
4265
  name: "duration_type",
4289
4266
  type: "enum",
4290
4267
  enum: DurationTypeEnum,
@@ -4292,10 +4269,10 @@ __decorateClass([
4292
4269
  })
4293
4270
  ], Job.prototype, "durationType", 2);
4294
4271
  __decorateClass([
4295
- Column36({ name: "duration", type: "varchar", nullable: true })
4272
+ Column35({ name: "duration", type: "varchar", nullable: true })
4296
4273
  ], Job.prototype, "duration", 2);
4297
4274
  __decorateClass([
4298
- Column36({
4275
+ Column35({
4299
4276
  name: "number_of_hours",
4300
4277
  type: "decimal",
4301
4278
  precision: 4,
@@ -4304,13 +4281,13 @@ __decorateClass([
4304
4281
  })
4305
4282
  ], Job.prototype, "numberOfHours", 2);
4306
4283
  __decorateClass([
4307
- Column36({ name: "description", type: "varchar", nullable: true })
4284
+ Column35({ name: "description", type: "varchar", nullable: true })
4308
4285
  ], Job.prototype, "description", 2);
4309
4286
  __decorateClass([
4310
- Column36({ name: "additional_comment", type: "varchar", nullable: true })
4287
+ Column35({ name: "additional_comment", type: "varchar", nullable: true })
4311
4288
  ], Job.prototype, "additionalComment", 2);
4312
4289
  __decorateClass([
4313
- Column36({
4290
+ Column35({
4314
4291
  name: "onboarding_tat",
4315
4292
  type: "varchar",
4316
4293
  length: 50,
@@ -4318,14 +4295,14 @@ __decorateClass([
4318
4295
  })
4319
4296
  ], Job.prototype, "onboardingTat", 2);
4320
4297
  __decorateClass([
4321
- Column36({
4298
+ Column35({
4322
4299
  name: "candidate_communication_skills",
4323
4300
  type: "varchar",
4324
4301
  nullable: true
4325
4302
  })
4326
4303
  ], Job.prototype, "candidateCommunicationSkills", 2);
4327
4304
  __decorateClass([
4328
- Column36({
4305
+ Column35({
4329
4306
  name: "step_completed",
4330
4307
  type: "enum",
4331
4308
  enum: Step,
@@ -4333,7 +4310,7 @@ __decorateClass([
4333
4310
  })
4334
4311
  ], Job.prototype, "stepCompleted", 2);
4335
4312
  __decorateClass([
4336
- Column36({
4313
+ Column35({
4337
4314
  name: "status",
4338
4315
  type: "enum",
4339
4316
  enum: JobStatusEnum,
@@ -4341,19 +4318,19 @@ __decorateClass([
4341
4318
  })
4342
4319
  ], Job.prototype, "status", 2);
4343
4320
  __decorateClass([
4344
- Column36({ name: "viewed_count", type: "integer", default: 0 })
4321
+ Column35({ name: "viewed_count", type: "integer", default: 0 })
4345
4322
  ], Job.prototype, "viewedCount", 2);
4346
4323
  __decorateClass([
4347
- Column36({ name: "application_count", type: "integer", default: 0 })
4324
+ Column35({ name: "application_count", type: "integer", default: 0 })
4348
4325
  ], Job.prototype, "applicationCount", 2);
4349
4326
  __decorateClass([
4350
- Column36({ name: "is_contract_signed", type: "boolean", default: false })
4327
+ Column35({ name: "is_contract_signed", type: "boolean", default: false })
4351
4328
  ], Job.prototype, "isContractSigned", 2);
4352
4329
  __decorateClass([
4353
- Column36({ name: "is_interview_created", type: "boolean", default: false })
4330
+ Column35({ name: "is_interview_created", type: "boolean", default: false })
4354
4331
  ], Job.prototype, "isInterviewCreated", 2);
4355
4332
  __decorateClass([
4356
- Column36({ name: "is_job_created_via_ai", type: "boolean", default: false })
4333
+ Column35({ name: "is_job_created_via_ai", type: "boolean", default: false })
4357
4334
  ], Job.prototype, "isJobCreatedViaAI", 2);
4358
4335
  __decorateClass([
4359
4336
  OneToMany15(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
@@ -4434,16 +4411,16 @@ __decorateClass([
4434
4411
  })
4435
4412
  ], Job.prototype, "ratings", 2);
4436
4413
  Job = __decorateClass([
4437
- Entity35("jobs")
4414
+ Entity34("jobs")
4438
4415
  ], Job);
4439
4416
 
4440
4417
  // src/entities/bank-details.entity.ts
4441
4418
  import {
4442
- Entity as Entity36,
4443
- Column as Column37,
4444
- Index as Index29,
4445
- ManyToOne as ManyToOne35,
4446
- JoinColumn as JoinColumn35
4419
+ Entity as Entity35,
4420
+ Column as Column36,
4421
+ Index as Index28,
4422
+ ManyToOne as ManyToOne34,
4423
+ JoinColumn as JoinColumn34
4447
4424
  } from "typeorm";
4448
4425
  var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
4449
4426
  BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
@@ -4459,51 +4436,51 @@ var BankDetail = class extends BaseEntity {
4459
4436
  };
4460
4437
  // individual index to find bank details by user
4461
4438
  __decorateClass([
4462
- Column37({ name: "user_id", type: "integer", nullable: true }),
4463
- Index29()
4439
+ Column36({ name: "user_id", type: "integer", nullable: true }),
4440
+ Index28()
4464
4441
  ], BankDetail.prototype, "userId", 2);
4465
4442
  __decorateClass([
4466
- ManyToOne35(() => User, (user) => user.bankDetail),
4467
- JoinColumn35({ name: "user_id" })
4443
+ ManyToOne34(() => User, (user) => user.bankDetail),
4444
+ JoinColumn34({ name: "user_id" })
4468
4445
  ], BankDetail.prototype, "user", 2);
4469
4446
  __decorateClass([
4470
- Column37({ name: "name", type: "varchar", nullable: true })
4447
+ Column36({ name: "name", type: "varchar", nullable: true })
4471
4448
  ], BankDetail.prototype, "name", 2);
4472
4449
  __decorateClass([
4473
- Column37({ name: "mobile_code", type: "varchar", nullable: true })
4450
+ Column36({ name: "mobile_code", type: "varchar", nullable: true })
4474
4451
  ], BankDetail.prototype, "mobileCode", 2);
4475
4452
  __decorateClass([
4476
- Column37({ name: "mobile", type: "varchar", nullable: true })
4453
+ Column36({ name: "mobile", type: "varchar", nullable: true })
4477
4454
  ], BankDetail.prototype, "mobile", 2);
4478
4455
  __decorateClass([
4479
- Column37({ name: "email", type: "varchar" })
4456
+ Column36({ name: "email", type: "varchar" })
4480
4457
  ], BankDetail.prototype, "email", 2);
4481
4458
  __decorateClass([
4482
- Column37({ name: "address", type: "varchar", nullable: true })
4459
+ Column36({ name: "address", type: "varchar", nullable: true })
4483
4460
  ], BankDetail.prototype, "address", 2);
4484
4461
  __decorateClass([
4485
- Column37({ name: "account_number", type: "varchar", unique: true, nullable: true })
4462
+ Column36({ name: "account_number", type: "varchar", unique: true, nullable: true })
4486
4463
  ], BankDetail.prototype, "accountNumber", 2);
4487
4464
  __decorateClass([
4488
- Column37({ name: "bank_name", type: "varchar", nullable: true })
4465
+ Column36({ name: "bank_name", type: "varchar", nullable: true })
4489
4466
  ], BankDetail.prototype, "bankName", 2);
4490
4467
  __decorateClass([
4491
- Column37({ name: "ifsc_code", type: "varchar", nullable: true })
4468
+ Column36({ name: "ifsc_code", type: "varchar", nullable: true })
4492
4469
  ], BankDetail.prototype, "ifscCode", 2);
4493
4470
  __decorateClass([
4494
- Column37({ name: "branch_name", type: "varchar", nullable: true })
4471
+ Column36({ name: "branch_name", type: "varchar", nullable: true })
4495
4472
  ], BankDetail.prototype, "branchName", 2);
4496
4473
  __decorateClass([
4497
- Column37({ name: "routing_no", type: "varchar", nullable: true })
4474
+ Column36({ name: "routing_no", type: "varchar", nullable: true })
4498
4475
  ], BankDetail.prototype, "routingNo", 2);
4499
4476
  __decorateClass([
4500
- Column37({ name: "aba_no", type: "varchar", nullable: true })
4477
+ Column36({ name: "aba_no", type: "varchar", nullable: true })
4501
4478
  ], BankDetail.prototype, "abaNumber", 2);
4502
4479
  __decorateClass([
4503
- Column37({ name: "iban", type: "varchar", nullable: true })
4480
+ Column36({ name: "iban", type: "varchar", nullable: true })
4504
4481
  ], BankDetail.prototype, "iban", 2);
4505
4482
  __decorateClass([
4506
- Column37({
4483
+ Column36({
4507
4484
  name: "account_type",
4508
4485
  type: "enum",
4509
4486
  enum: BankAccountTypeEnum,
@@ -4511,7 +4488,7 @@ __decorateClass([
4511
4488
  })
4512
4489
  ], BankDetail.prototype, "accountType", 2);
4513
4490
  __decorateClass([
4514
- Column37({
4491
+ Column36({
4515
4492
  name: "account_scope",
4516
4493
  type: "enum",
4517
4494
  enum: BankAccountScopeEnum,
@@ -4519,185 +4496,185 @@ __decorateClass([
4519
4496
  })
4520
4497
  ], BankDetail.prototype, "accountScope", 2);
4521
4498
  BankDetail = __decorateClass([
4522
- Entity36("bank_details")
4499
+ Entity35("bank_details")
4523
4500
  ], BankDetail);
4524
4501
 
4525
4502
  // src/entities/system-preference.entity.ts
4526
4503
  import {
4527
- Entity as Entity37,
4528
- Column as Column38,
4529
- Index as Index30,
4530
- ManyToOne as ManyToOne36,
4531
- JoinColumn as JoinColumn36
4504
+ Entity as Entity36,
4505
+ Column as Column37,
4506
+ Index as Index29,
4507
+ ManyToOne as ManyToOne35,
4508
+ JoinColumn as JoinColumn35
4532
4509
  } from "typeorm";
4533
4510
  var SystemPreference = class extends BaseEntity {
4534
4511
  };
4535
4512
  // individual index to find system preference by user
4536
4513
  __decorateClass([
4537
- Column38({ name: "user_id", type: "integer", nullable: true }),
4538
- Index30()
4514
+ Column37({ name: "user_id", type: "integer", nullable: true }),
4515
+ Index29()
4539
4516
  ], SystemPreference.prototype, "userId", 2);
4540
4517
  __decorateClass([
4541
- ManyToOne36(() => User, (user) => user.systemPreference),
4542
- JoinColumn36({ name: "user_id" })
4518
+ ManyToOne35(() => User, (user) => user.systemPreference),
4519
+ JoinColumn35({ name: "user_id" })
4543
4520
  ], SystemPreference.prototype, "user", 2);
4544
4521
  __decorateClass([
4545
- Column38({ name: "key", type: "varchar", nullable: false })
4522
+ Column37({ name: "key", type: "varchar", nullable: false })
4546
4523
  ], SystemPreference.prototype, "key", 2);
4547
4524
  __decorateClass([
4548
- Column38({ name: "value", type: "boolean", default: false })
4525
+ Column37({ name: "value", type: "boolean", default: false })
4549
4526
  ], SystemPreference.prototype, "value", 2);
4550
4527
  SystemPreference = __decorateClass([
4551
- Entity37("system_preferences")
4528
+ Entity36("system_preferences")
4552
4529
  ], SystemPreference);
4553
4530
 
4554
4531
  // src/entities/freelancer-experience.entity.ts
4555
4532
  import {
4556
- Entity as Entity38,
4557
- Column as Column39,
4558
- Index as Index31,
4559
- ManyToOne as ManyToOne37,
4560
- JoinColumn as JoinColumn37
4533
+ Entity as Entity37,
4534
+ Column as Column38,
4535
+ Index as Index30,
4536
+ ManyToOne as ManyToOne36,
4537
+ JoinColumn as JoinColumn36
4561
4538
  } from "typeorm";
4562
4539
  var FreelancerExperience = class extends BaseEntity {
4563
4540
  };
4564
4541
  // individual index to find experence by user
4565
4542
  __decorateClass([
4566
- Column39({ name: "user_id", type: "integer", nullable: true }),
4567
- Index31()
4543
+ Column38({ name: "user_id", type: "integer", nullable: true }),
4544
+ Index30()
4568
4545
  ], FreelancerExperience.prototype, "userId", 2);
4569
4546
  __decorateClass([
4570
- ManyToOne37(() => User, (user) => user.freelancerExperience),
4571
- JoinColumn37({ name: "user_id" })
4547
+ ManyToOne36(() => User, (user) => user.freelancerExperience),
4548
+ JoinColumn36({ name: "user_id" })
4572
4549
  ], FreelancerExperience.prototype, "user", 2);
4573
4550
  __decorateClass([
4574
- Column39({ name: "company_name", type: "varchar", nullable: true })
4551
+ Column38({ name: "company_name", type: "varchar", nullable: true })
4575
4552
  ], FreelancerExperience.prototype, "companyName", 2);
4576
4553
  __decorateClass([
4577
- Column39({ name: "designation", type: "varchar", nullable: true })
4554
+ Column38({ name: "designation", type: "varchar", nullable: true })
4578
4555
  ], FreelancerExperience.prototype, "designation", 2);
4579
4556
  __decorateClass([
4580
- Column39({ name: "job_duration", type: "varchar", nullable: true })
4557
+ Column38({ name: "job_duration", type: "varchar", nullable: true })
4581
4558
  ], FreelancerExperience.prototype, "jobDuration", 2);
4582
4559
  __decorateClass([
4583
- Column39({ name: "description", type: "varchar", nullable: true })
4560
+ Column38({ name: "description", type: "varchar", nullable: true })
4584
4561
  ], FreelancerExperience.prototype, "description", 2);
4585
4562
  FreelancerExperience = __decorateClass([
4586
- Entity38("freelancer_experiences")
4563
+ Entity37("freelancer_experiences")
4587
4564
  ], FreelancerExperience);
4588
4565
 
4589
4566
  // src/entities/freelancer-education.entity.ts
4590
4567
  import {
4591
- Entity as Entity39,
4592
- Column as Column40,
4593
- Index as Index32,
4594
- ManyToOne as ManyToOne38,
4595
- JoinColumn as JoinColumn38
4568
+ Entity as Entity38,
4569
+ Column as Column39,
4570
+ Index as Index31,
4571
+ ManyToOne as ManyToOne37,
4572
+ JoinColumn as JoinColumn37
4596
4573
  } from "typeorm";
4597
4574
  var FreelancerEducation = class extends BaseEntity {
4598
4575
  };
4599
4576
  // individual index to find education by user
4600
4577
  __decorateClass([
4601
- Column40({ name: "user_id", type: "integer", nullable: true }),
4602
- Index32()
4578
+ Column39({ name: "user_id", type: "integer", nullable: true }),
4579
+ Index31()
4603
4580
  ], FreelancerEducation.prototype, "userId", 2);
4604
4581
  __decorateClass([
4605
- ManyToOne38(() => User, (user) => user.freelancerEducation),
4606
- JoinColumn38({ name: "user_id" })
4582
+ ManyToOne37(() => User, (user) => user.freelancerEducation),
4583
+ JoinColumn37({ name: "user_id" })
4607
4584
  ], FreelancerEducation.prototype, "user", 2);
4608
4585
  __decorateClass([
4609
- Column40({ name: "degree", type: "varchar", nullable: true })
4586
+ Column39({ name: "degree", type: "varchar", nullable: true })
4610
4587
  ], FreelancerEducation.prototype, "degree", 2);
4611
4588
  __decorateClass([
4612
- Column40({ name: "university", type: "varchar", nullable: true })
4589
+ Column39({ name: "university", type: "varchar", nullable: true })
4613
4590
  ], FreelancerEducation.prototype, "university", 2);
4614
4591
  __decorateClass([
4615
- Column40({ name: "year_of_graduation", type: "varchar", nullable: true })
4592
+ Column39({ name: "year_of_graduation", type: "varchar", nullable: true })
4616
4593
  ], FreelancerEducation.prototype, "yearOfGraduation", 2);
4617
4594
  FreelancerEducation = __decorateClass([
4618
- Entity39("freelancer_educations")
4595
+ Entity38("freelancer_educations")
4619
4596
  ], FreelancerEducation);
4620
4597
 
4621
4598
  // src/entities/freelancer-project.entity.ts
4622
4599
  import {
4623
- Entity as Entity40,
4624
- Column as Column41,
4625
- Index as Index33,
4626
- ManyToOne as ManyToOne39,
4627
- JoinColumn as JoinColumn39
4600
+ Entity as Entity39,
4601
+ Column as Column40,
4602
+ Index as Index32,
4603
+ ManyToOne as ManyToOne38,
4604
+ JoinColumn as JoinColumn38
4628
4605
  } from "typeorm";
4629
4606
  var FreelancerProject = class extends BaseEntity {
4630
4607
  };
4631
4608
  // individual index to find project by user
4632
4609
  __decorateClass([
4633
- Column41({ name: "user_id", type: "integer", nullable: true }),
4634
- Index33()
4610
+ Column40({ name: "user_id", type: "integer", nullable: true }),
4611
+ Index32()
4635
4612
  ], FreelancerProject.prototype, "userId", 2);
4636
4613
  __decorateClass([
4637
- ManyToOne39(() => User, (user) => user.freelancerProject),
4638
- JoinColumn39({ name: "user_id" })
4614
+ ManyToOne38(() => User, (user) => user.freelancerProject),
4615
+ JoinColumn38({ name: "user_id" })
4639
4616
  ], FreelancerProject.prototype, "user", 2);
4640
4617
  __decorateClass([
4641
- Column41({ name: "project_name", type: "varchar", nullable: true })
4618
+ Column40({ name: "project_name", type: "varchar", nullable: true })
4642
4619
  ], FreelancerProject.prototype, "projectName", 2);
4643
4620
  __decorateClass([
4644
- Column41({ name: "start_date", type: "date", nullable: true })
4621
+ Column40({ name: "start_date", type: "date", nullable: true })
4645
4622
  ], FreelancerProject.prototype, "startDate", 2);
4646
4623
  __decorateClass([
4647
- Column41({ name: "end_date", type: "date", nullable: true })
4624
+ Column40({ name: "end_date", type: "date", nullable: true })
4648
4625
  ], FreelancerProject.prototype, "endDate", 2);
4649
4626
  __decorateClass([
4650
- Column41({ name: "client_name", type: "varchar", nullable: true })
4627
+ Column40({ name: "client_name", type: "varchar", nullable: true })
4651
4628
  ], FreelancerProject.prototype, "clientName", 2);
4652
4629
  __decorateClass([
4653
- Column41({ name: "git_link", type: "varchar", nullable: true })
4630
+ Column40({ name: "git_link", type: "varchar", nullable: true })
4654
4631
  ], FreelancerProject.prototype, "gitLink", 2);
4655
4632
  __decorateClass([
4656
- Column41({ name: "description", type: "varchar", nullable: true })
4633
+ Column40({ name: "description", type: "varchar", nullable: true })
4657
4634
  ], FreelancerProject.prototype, "description", 2);
4658
4635
  FreelancerProject = __decorateClass([
4659
- Entity40("freelancer_projects")
4636
+ Entity39("freelancer_projects")
4660
4637
  ], FreelancerProject);
4661
4638
 
4662
4639
  // src/entities/freelancer-casestudy.entity.ts
4663
4640
  import {
4664
- Entity as Entity41,
4665
- Column as Column42,
4666
- Index as Index34,
4667
- ManyToOne as ManyToOne40,
4668
- JoinColumn as JoinColumn40
4641
+ Entity as Entity40,
4642
+ Column as Column41,
4643
+ Index as Index33,
4644
+ ManyToOne as ManyToOne39,
4645
+ JoinColumn as JoinColumn39
4669
4646
  } from "typeorm";
4670
4647
  var FreelancerCaseStudy = class extends BaseEntity {
4671
4648
  };
4672
4649
  // individual index to find case study by user
4673
4650
  __decorateClass([
4674
- Column42({ name: "user_id", type: "integer", nullable: true }),
4675
- Index34()
4651
+ Column41({ name: "user_id", type: "integer", nullable: true }),
4652
+ Index33()
4676
4653
  ], FreelancerCaseStudy.prototype, "userId", 2);
4677
4654
  __decorateClass([
4678
- ManyToOne40(() => User, (user) => user.freelancerCaseStudy),
4679
- JoinColumn40({ name: "user_id" })
4655
+ ManyToOne39(() => User, (user) => user.freelancerCaseStudy),
4656
+ JoinColumn39({ name: "user_id" })
4680
4657
  ], FreelancerCaseStudy.prototype, "user", 2);
4681
4658
  __decorateClass([
4682
- Column42({ name: "project_name", type: "varchar", nullable: true })
4659
+ Column41({ name: "project_name", type: "varchar", nullable: true })
4683
4660
  ], FreelancerCaseStudy.prototype, "projectName", 2);
4684
4661
  __decorateClass([
4685
- Column42({ name: "case_study_link", type: "varchar", nullable: true })
4662
+ Column41({ name: "case_study_link", type: "varchar", nullable: true })
4686
4663
  ], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
4687
4664
  __decorateClass([
4688
- Column42({ name: "description", type: "varchar", nullable: true })
4665
+ Column41({ name: "description", type: "varchar", nullable: true })
4689
4666
  ], FreelancerCaseStudy.prototype, "description", 2);
4690
4667
  FreelancerCaseStudy = __decorateClass([
4691
- Entity41("freelancer_case_studies")
4668
+ Entity40("freelancer_case_studies")
4692
4669
  ], FreelancerCaseStudy);
4693
4670
 
4694
4671
  // src/entities/freelancer-skill.entity.ts
4695
4672
  import {
4696
- Entity as Entity42,
4697
- Column as Column43,
4698
- Index as Index35,
4699
- ManyToOne as ManyToOne41,
4700
- JoinColumn as JoinColumn41
4673
+ Entity as Entity41,
4674
+ Column as Column42,
4675
+ Index as Index34,
4676
+ ManyToOne as ManyToOne40,
4677
+ JoinColumn as JoinColumn40
4701
4678
  } from "typeorm";
4702
4679
  var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
4703
4680
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
@@ -4708,18 +4685,18 @@ var FreelancerSkill = class extends BaseEntity {
4708
4685
  };
4709
4686
  // individual index to find core skills by user
4710
4687
  __decorateClass([
4711
- Column43({ name: "user_id", type: "integer", nullable: true }),
4712
- Index35()
4688
+ Column42({ name: "user_id", type: "integer", nullable: true }),
4689
+ Index34()
4713
4690
  ], FreelancerSkill.prototype, "userId", 2);
4714
4691
  __decorateClass([
4715
- ManyToOne41(() => User, (user) => user.freelancerSkills),
4716
- JoinColumn41({ name: "user_id" })
4692
+ ManyToOne40(() => User, (user) => user.freelancerSkills),
4693
+ JoinColumn40({ name: "user_id" })
4717
4694
  ], FreelancerSkill.prototype, "user", 2);
4718
4695
  __decorateClass([
4719
- Column43({ name: "skill_name", type: "varchar", nullable: true })
4696
+ Column42({ name: "skill_name", type: "varchar", nullable: true })
4720
4697
  ], FreelancerSkill.prototype, "skillName", 2);
4721
4698
  __decorateClass([
4722
- Column43({
4699
+ Column42({
4723
4700
  name: "skill_category",
4724
4701
  type: "smallint",
4725
4702
  default: 1,
@@ -4727,68 +4704,68 @@ __decorateClass([
4727
4704
  })
4728
4705
  ], FreelancerSkill.prototype, "skillCategory", 2);
4729
4706
  FreelancerSkill = __decorateClass([
4730
- Entity42("freelancer_skills")
4707
+ Entity41("freelancer_skills")
4731
4708
  ], FreelancerSkill);
4732
4709
 
4733
4710
  // src/entities/freelancer-tool.entity.ts
4734
4711
  import {
4735
- Entity as Entity43,
4736
- Column as Column44,
4737
- Index as Index36,
4738
- ManyToOne as ManyToOne42,
4739
- JoinColumn as JoinColumn42
4712
+ Entity as Entity42,
4713
+ Column as Column43,
4714
+ Index as Index35,
4715
+ ManyToOne as ManyToOne41,
4716
+ JoinColumn as JoinColumn41
4740
4717
  } from "typeorm";
4741
4718
  var FreelancerTool = class extends BaseEntity {
4742
4719
  };
4743
4720
  // individual index to find tool by user
4744
4721
  __decorateClass([
4745
- Column44({ name: "user_id", type: "integer", nullable: true }),
4746
- Index36()
4722
+ Column43({ name: "user_id", type: "integer", nullable: true }),
4723
+ Index35()
4747
4724
  ], FreelancerTool.prototype, "userId", 2);
4748
4725
  __decorateClass([
4749
- ManyToOne42(() => User, (user) => user.freelancerTool),
4750
- JoinColumn42({ name: "user_id" })
4726
+ ManyToOne41(() => User, (user) => user.freelancerTool),
4727
+ JoinColumn41({ name: "user_id" })
4751
4728
  ], FreelancerTool.prototype, "user", 2);
4752
4729
  __decorateClass([
4753
- Column44({ name: "tool_name", type: "varchar", nullable: true })
4730
+ Column43({ name: "tool_name", type: "varchar", nullable: true })
4754
4731
  ], FreelancerTool.prototype, "toolName", 2);
4755
4732
  FreelancerTool = __decorateClass([
4756
- Entity43("freelancer_tools")
4733
+ Entity42("freelancer_tools")
4757
4734
  ], FreelancerTool);
4758
4735
 
4759
4736
  // src/entities/freelancer-framework.entity.ts
4760
4737
  import {
4761
- Entity as Entity44,
4762
- Column as Column45,
4763
- Index as Index37,
4764
- ManyToOne as ManyToOne43,
4765
- JoinColumn as JoinColumn43
4738
+ Entity as Entity43,
4739
+ Column as Column44,
4740
+ Index as Index36,
4741
+ ManyToOne as ManyToOne42,
4742
+ JoinColumn as JoinColumn42
4766
4743
  } from "typeorm";
4767
4744
  var FreelancerFramework = class extends BaseEntity {
4768
4745
  };
4769
4746
  // individual index to find framework by user
4770
4747
  __decorateClass([
4771
- Column45({ name: "user_id", type: "integer", nullable: true }),
4772
- Index37()
4748
+ Column44({ name: "user_id", type: "integer", nullable: true }),
4749
+ Index36()
4773
4750
  ], FreelancerFramework.prototype, "userId", 2);
4774
4751
  __decorateClass([
4775
- ManyToOne43(() => User, (user) => user.freelancerFramework),
4776
- JoinColumn43({ name: "user_id" })
4752
+ ManyToOne42(() => User, (user) => user.freelancerFramework),
4753
+ JoinColumn42({ name: "user_id" })
4777
4754
  ], FreelancerFramework.prototype, "user", 2);
4778
4755
  __decorateClass([
4779
- Column45({ name: "framework_name", type: "varchar", nullable: true })
4756
+ Column44({ name: "framework_name", type: "varchar", nullable: true })
4780
4757
  ], FreelancerFramework.prototype, "frameworkName", 2);
4781
4758
  FreelancerFramework = __decorateClass([
4782
- Entity44("freelancer_frameworks")
4759
+ Entity43("freelancer_frameworks")
4783
4760
  ], FreelancerFramework);
4784
4761
 
4785
4762
  // src/entities/freelancer-assessment.entity.ts
4786
4763
  import {
4787
- Entity as Entity45,
4788
- Column as Column46,
4789
- Index as Index38,
4790
- ManyToOne as ManyToOne44,
4791
- JoinColumn as JoinColumn44
4764
+ Entity as Entity44,
4765
+ Column as Column45,
4766
+ Index as Index37,
4767
+ ManyToOne as ManyToOne43,
4768
+ JoinColumn as JoinColumn43
4792
4769
  } from "typeorm";
4793
4770
  var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
4794
4771
  AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
@@ -4806,33 +4783,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
4806
4783
  var FreelancerAssessment = class extends BaseEntity {
4807
4784
  };
4808
4785
  __decorateClass([
4809
- Column46({ name: "user_id", type: "integer", nullable: true }),
4810
- Index38()
4786
+ Column45({ name: "user_id", type: "integer", nullable: true }),
4787
+ Index37()
4811
4788
  ], FreelancerAssessment.prototype, "userId", 2);
4812
4789
  __decorateClass([
4813
- ManyToOne44(() => User, (user) => user.assessments),
4814
- JoinColumn44({ name: "user_id" })
4790
+ ManyToOne43(() => User, (user) => user.assessments),
4791
+ JoinColumn43({ name: "user_id" })
4815
4792
  ], FreelancerAssessment.prototype, "user", 2);
4816
4793
  __decorateClass([
4817
- Column46({ name: "interview_id", type: "varchar", nullable: true })
4794
+ Column45({ name: "interview_id", type: "varchar", nullable: true })
4818
4795
  ], FreelancerAssessment.prototype, "interviewId", 2);
4819
4796
  __decorateClass([
4820
- Column46({ name: "interview_link", type: "text", nullable: true })
4797
+ Column45({ name: "interview_link", type: "text", nullable: true })
4821
4798
  ], FreelancerAssessment.prototype, "interviewLink", 2);
4822
4799
  __decorateClass([
4823
- Column46({ name: "recording_link", type: "text", nullable: true })
4800
+ Column45({ name: "recording_link", type: "text", nullable: true })
4824
4801
  ], FreelancerAssessment.prototype, "recordingLink", 2);
4825
4802
  __decorateClass([
4826
- Column46({ name: "iframe_response", type: "jsonb", nullable: true })
4803
+ Column45({ name: "iframe_response", type: "jsonb", nullable: true })
4827
4804
  ], FreelancerAssessment.prototype, "iframeResponse", 2);
4828
4805
  __decorateClass([
4829
- Column46({ name: "interview_summary", type: "jsonb", nullable: true })
4806
+ Column45({ name: "interview_summary", type: "jsonb", nullable: true })
4830
4807
  ], FreelancerAssessment.prototype, "interviewSummary", 2);
4831
4808
  __decorateClass([
4832
- Column46({ name: "score", type: "float", nullable: true })
4809
+ Column45({ name: "score", type: "float", nullable: true })
4833
4810
  ], FreelancerAssessment.prototype, "score", 2);
4834
4811
  __decorateClass([
4835
- Column46({
4812
+ Column45({
4836
4813
  name: "status",
4837
4814
  type: "enum",
4838
4815
  enum: AssessmentStatusEnum,
@@ -4840,17 +4817,17 @@ __decorateClass([
4840
4817
  })
4841
4818
  ], FreelancerAssessment.prototype, "status", 2);
4842
4819
  __decorateClass([
4843
- Column46({ name: "task_id", type: "varchar", nullable: true })
4820
+ Column45({ name: "task_id", type: "varchar", nullable: true })
4844
4821
  ], FreelancerAssessment.prototype, "taskId", 2);
4845
4822
  __decorateClass([
4846
- Column46({ name: "meta_data", type: "jsonb", nullable: true })
4823
+ Column45({ name: "meta_data", type: "jsonb", nullable: true })
4847
4824
  ], FreelancerAssessment.prototype, "metaData", 2);
4848
4825
  FreelancerAssessment = __decorateClass([
4849
- Entity45("freelancer_assessments")
4826
+ Entity44("freelancer_assessments")
4850
4827
  ], FreelancerAssessment);
4851
4828
 
4852
4829
  // src/entities/freelancer-declaration.entity.ts
4853
- import { Entity as Entity46, Column as Column47, Index as Index39, ManyToOne as ManyToOne45, JoinColumn as JoinColumn45 } from "typeorm";
4830
+ import { Entity as Entity45, Column as Column46, Index as Index38, ManyToOne as ManyToOne44, JoinColumn as JoinColumn44 } from "typeorm";
4854
4831
  var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
4855
4832
  DocumentType2["AADHAAR"] = "AADHAAR_CARD";
4856
4833
  DocumentType2["PASSPORT"] = "PASSPORT";
@@ -4862,15 +4839,15 @@ var FreelancerDeclaration = class extends BaseEntity {
4862
4839
  };
4863
4840
  // individual index to find declaration by user
4864
4841
  __decorateClass([
4865
- Column47({ name: "user_id", type: "integer", nullable: true }),
4866
- Index39()
4842
+ Column46({ name: "user_id", type: "integer", nullable: true }),
4843
+ Index38()
4867
4844
  ], FreelancerDeclaration.prototype, "userId", 2);
4868
4845
  __decorateClass([
4869
- ManyToOne45(() => User, (user) => user.freelancerDeclaration),
4870
- JoinColumn45({ name: "user_id" })
4846
+ ManyToOne44(() => User, (user) => user.freelancerDeclaration),
4847
+ JoinColumn44({ name: "user_id" })
4871
4848
  ], FreelancerDeclaration.prototype, "user", 2);
4872
4849
  __decorateClass([
4873
- Column47({
4850
+ Column46({
4874
4851
  name: "document_type",
4875
4852
  type: "enum",
4876
4853
  enum: DocumentType,
@@ -4878,175 +4855,175 @@ __decorateClass([
4878
4855
  })
4879
4856
  ], FreelancerDeclaration.prototype, "documentType", 2);
4880
4857
  __decorateClass([
4881
- Column47({ name: "front_document_url", type: "varchar", nullable: true })
4858
+ Column46({ name: "front_document_url", type: "varchar", nullable: true })
4882
4859
  ], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
4883
4860
  __decorateClass([
4884
- Column47({ name: "back_document_url", type: "varchar", nullable: true })
4861
+ Column46({ name: "back_document_url", type: "varchar", nullable: true })
4885
4862
  ], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
4886
4863
  __decorateClass([
4887
- Column47({ name: "declaration_accepted", type: "boolean", default: false })
4864
+ Column46({ name: "declaration_accepted", type: "boolean", default: false })
4888
4865
  ], FreelancerDeclaration.prototype, "declarationAccepted", 2);
4889
4866
  __decorateClass([
4890
- Column47({ name: "digital_signature_url", type: "varchar", nullable: true })
4867
+ Column46({ name: "digital_signature_url", type: "varchar", nullable: true })
4891
4868
  ], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
4892
4869
  FreelancerDeclaration = __decorateClass([
4893
- Entity46("freelancer_declaration")
4870
+ Entity45("freelancer_declaration")
4894
4871
  ], FreelancerDeclaration);
4895
4872
 
4896
4873
  // src/entities/company-members-roles.entity.ts
4897
- import {
4898
- Column as Column51,
4899
- Entity as Entity50,
4900
- ManyToOne as ManyToOne48,
4901
- JoinColumn as JoinColumn48,
4902
- Index as Index43
4903
- } from "typeorm";
4904
-
4905
- // src/entities/company-role.entity.ts
4906
4874
  import {
4907
4875
  Column as Column50,
4908
4876
  Entity as Entity49,
4909
- Index as Index42,
4910
- JoinColumn as JoinColumn47,
4911
4877
  ManyToOne as ManyToOne47,
4912
- OneToMany as OneToMany17
4878
+ JoinColumn as JoinColumn47,
4879
+ Index as Index42
4913
4880
  } from "typeorm";
4914
4881
 
4915
- // src/entities/company-role-permission.entity.ts
4882
+ // src/entities/company-role.entity.ts
4916
4883
  import {
4917
4884
  Column as Column49,
4918
4885
  Entity as Entity48,
4919
- ManyToOne as ManyToOne46,
4886
+ Index as Index41,
4920
4887
  JoinColumn as JoinColumn46,
4921
- Index as Index41
4888
+ ManyToOne as ManyToOne46,
4889
+ OneToMany as OneToMany17
4890
+ } from "typeorm";
4891
+
4892
+ // src/entities/company-role-permission.entity.ts
4893
+ import {
4894
+ Column as Column48,
4895
+ Entity as Entity47,
4896
+ ManyToOne as ManyToOne45,
4897
+ JoinColumn as JoinColumn45,
4898
+ Index as Index40
4922
4899
  } from "typeorm";
4923
4900
 
4924
4901
  // src/entities/permission.entity.ts
4925
- import { Column as Column48, Entity as Entity47, Index as Index40 } from "typeorm";
4902
+ import { Column as Column47, Entity as Entity46, Index as Index39 } from "typeorm";
4926
4903
  var Permission = class extends BaseEntity {
4927
4904
  };
4928
4905
  __decorateClass([
4929
- Column48({ name: "name", type: "varchar", nullable: true })
4906
+ Column47({ name: "name", type: "varchar", nullable: true })
4930
4907
  ], Permission.prototype, "name", 2);
4931
4908
  __decorateClass([
4932
- Column48({ name: "slug", type: "varchar", nullable: true, unique: true }),
4933
- Index40()
4909
+ Column47({ name: "slug", type: "varchar", nullable: true, unique: true }),
4910
+ Index39()
4934
4911
  ], Permission.prototype, "slug", 2);
4935
4912
  __decorateClass([
4936
- Column48({ name: "description", type: "text", nullable: true })
4913
+ Column47({ name: "description", type: "text", nullable: true })
4937
4914
  ], Permission.prototype, "description", 2);
4938
4915
  __decorateClass([
4939
- Column48({ name: "is_active", type: "boolean", default: true })
4916
+ Column47({ name: "is_active", type: "boolean", default: true })
4940
4917
  ], Permission.prototype, "isActive", 2);
4941
4918
  Permission = __decorateClass([
4942
- Entity47("permissions")
4919
+ Entity46("permissions")
4943
4920
  ], Permission);
4944
4921
 
4945
4922
  // src/entities/company-role-permission.entity.ts
4946
4923
  var CompanyRolePermission = class extends BaseEntity {
4947
4924
  };
4948
4925
  __decorateClass([
4949
- Column49({ name: "company_role_id", type: "integer", nullable: true }),
4950
- Index41()
4926
+ Column48({ name: "company_role_id", type: "integer", nullable: true }),
4927
+ Index40()
4951
4928
  ], CompanyRolePermission.prototype, "companyRoleId", 2);
4952
4929
  __decorateClass([
4953
- ManyToOne46(() => CompanyRole, (role) => role.rolePermissions, {
4930
+ ManyToOne45(() => CompanyRole, (role) => role.rolePermissions, {
4954
4931
  onDelete: "CASCADE"
4955
4932
  }),
4956
- JoinColumn46({ name: "company_role_id" })
4933
+ JoinColumn45({ name: "company_role_id" })
4957
4934
  ], CompanyRolePermission.prototype, "companyRole", 2);
4958
4935
  __decorateClass([
4959
- Column49({ name: "permission_id", type: "integer" }),
4960
- Index41()
4936
+ Column48({ name: "permission_id", type: "integer" }),
4937
+ Index40()
4961
4938
  ], CompanyRolePermission.prototype, "permissionId", 2);
4962
4939
  __decorateClass([
4963
- ManyToOne46(() => Permission, { onDelete: "CASCADE" }),
4964
- JoinColumn46({ name: "permission_id" })
4940
+ ManyToOne45(() => Permission, { onDelete: "CASCADE" }),
4941
+ JoinColumn45({ name: "permission_id" })
4965
4942
  ], CompanyRolePermission.prototype, "permission", 2);
4966
4943
  __decorateClass([
4967
- Column49({ name: "assigned_by", type: "integer", nullable: true })
4944
+ Column48({ name: "assigned_by", type: "integer", nullable: true })
4968
4945
  ], CompanyRolePermission.prototype, "assignedBy", 2);
4969
4946
  CompanyRolePermission = __decorateClass([
4970
- Entity48("company_role_permissions")
4947
+ Entity47("company_role_permissions")
4971
4948
  ], CompanyRolePermission);
4972
4949
 
4973
4950
  // src/entities/company-role.entity.ts
4974
4951
  var CompanyRole = class extends BaseEntity {
4975
4952
  };
4976
4953
  __decorateClass([
4977
- Column50({ name: "user_id", type: "integer", nullable: true }),
4978
- Index42()
4954
+ Column49({ name: "user_id", type: "integer", nullable: true }),
4955
+ Index41()
4979
4956
  ], CompanyRole.prototype, "userId", 2);
4980
4957
  __decorateClass([
4981
- ManyToOne47(() => User, (user) => user.otps),
4982
- JoinColumn47({ name: "user_id" })
4958
+ ManyToOne46(() => User, (user) => user.otps),
4959
+ JoinColumn46({ name: "user_id" })
4983
4960
  ], CompanyRole.prototype, "user", 2);
4984
4961
  __decorateClass([
4985
- Column50({ name: "name", type: "varchar" })
4962
+ Column49({ name: "name", type: "varchar" })
4986
4963
  ], CompanyRole.prototype, "name", 2);
4987
4964
  __decorateClass([
4988
- Column50({ name: "slug", type: "varchar", nullable: true, unique: true }),
4989
- Index42()
4965
+ Column49({ name: "slug", type: "varchar", nullable: true, unique: true }),
4966
+ Index41()
4990
4967
  ], CompanyRole.prototype, "slug", 2);
4991
4968
  __decorateClass([
4992
- Column50({ name: "description", type: "text", nullable: true })
4969
+ Column49({ name: "description", type: "text", nullable: true })
4993
4970
  ], CompanyRole.prototype, "description", 2);
4994
4971
  __decorateClass([
4995
- Column50({ name: "is_active", type: "boolean", default: true })
4972
+ Column49({ name: "is_active", type: "boolean", default: true })
4996
4973
  ], CompanyRole.prototype, "isActive", 2);
4997
4974
  __decorateClass([
4998
4975
  OneToMany17(() => CompanyRolePermission, (rp) => rp.companyRole)
4999
4976
  ], CompanyRole.prototype, "rolePermissions", 2);
5000
4977
  CompanyRole = __decorateClass([
5001
- Entity49("company_roles")
4978
+ Entity48("company_roles")
5002
4979
  ], CompanyRole);
5003
4980
 
5004
4981
  // src/entities/company-members-roles.entity.ts
5005
4982
  var CompanyMemberRole = class extends BaseEntity {
5006
4983
  };
5007
4984
  __decorateClass([
5008
- Column51({ name: "user_id", type: "integer", nullable: true }),
5009
- Index43()
4985
+ Column50({ name: "user_id", type: "integer", nullable: true }),
4986
+ Index42()
5010
4987
  ], CompanyMemberRole.prototype, "userId", 2);
5011
4988
  __decorateClass([
5012
- ManyToOne48(() => User),
5013
- JoinColumn48({ name: "user_id" })
4989
+ ManyToOne47(() => User),
4990
+ JoinColumn47({ name: "user_id" })
5014
4991
  ], CompanyMemberRole.prototype, "user", 2);
5015
4992
  __decorateClass([
5016
- ManyToOne48(() => CompanyRole),
5017
- JoinColumn48({ name: "company_role_id" })
4993
+ ManyToOne47(() => CompanyRole),
4994
+ JoinColumn47({ name: "company_role_id" })
5018
4995
  ], CompanyMemberRole.prototype, "role", 2);
5019
4996
  __decorateClass([
5020
- Column51({ name: "company_role_id", type: "integer", nullable: true }),
5021
- Index43()
4997
+ Column50({ name: "company_role_id", type: "integer", nullable: true }),
4998
+ Index42()
5022
4999
  ], CompanyMemberRole.prototype, "companyRoleId", 2);
5023
5000
  __decorateClass([
5024
- Column51({ name: "assigned_by", type: "integer", nullable: true })
5001
+ Column50({ name: "assigned_by", type: "integer", nullable: true })
5025
5002
  ], CompanyMemberRole.prototype, "assignedBy", 2);
5026
5003
  CompanyMemberRole = __decorateClass([
5027
- Entity50("company_member_roles")
5004
+ Entity49("company_member_roles")
5028
5005
  ], CompanyMemberRole);
5029
5006
 
5030
5007
  // src/entities/assessment-answer.entity.ts
5031
5008
  import {
5032
- Entity as Entity53,
5033
- Column as Column54,
5034
- ManyToOne as ManyToOne51,
5035
- Index as Index46,
5036
- JoinColumn as JoinColumn51
5009
+ Entity as Entity52,
5010
+ Column as Column53,
5011
+ ManyToOne as ManyToOne50,
5012
+ Index as Index45,
5013
+ JoinColumn as JoinColumn50
5037
5014
  } from "typeorm";
5038
5015
 
5039
5016
  // src/entities/assessment-question.entity.ts
5040
- import { Entity as Entity52, Column as Column53, OneToMany as OneToMany19, Index as Index45, ManyToOne as ManyToOne50, JoinColumn as JoinColumn50 } from "typeorm";
5017
+ import { Entity as Entity51, Column as Column52, OneToMany as OneToMany19, Index as Index44, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
5041
5018
 
5042
5019
  // src/entities/assessment-question-option.entity.ts
5043
5020
  import {
5044
- Entity as Entity51,
5045
- Column as Column52,
5021
+ Entity as Entity50,
5022
+ Column as Column51,
5046
5023
  OneToMany as OneToMany18,
5047
- ManyToOne as ManyToOne49,
5048
- Index as Index44,
5049
- JoinColumn as JoinColumn49
5024
+ ManyToOne as ManyToOne48,
5025
+ Index as Index43,
5026
+ JoinColumn as JoinColumn48
5050
5027
  } from "typeorm";
5051
5028
  var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5052
5029
  AnswerTypeEnum2["CORRECT"] = "CORRECT";
@@ -5057,21 +5034,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5057
5034
  var AssessmetQuestionOption = class extends BaseEntity {
5058
5035
  };
5059
5036
  __decorateClass([
5060
- Column52({ name: "question_id", type: "integer", nullable: true }),
5061
- Index44()
5037
+ Column51({ name: "question_id", type: "integer", nullable: true }),
5038
+ Index43()
5062
5039
  ], AssessmetQuestionOption.prototype, "questionId", 2);
5063
5040
  __decorateClass([
5064
- ManyToOne49(
5041
+ ManyToOne48(
5065
5042
  () => AssessmetQuestion,
5066
5043
  (assessmentQuestion) => assessmentQuestion.options
5067
5044
  ),
5068
- JoinColumn49({ name: "question_id" })
5045
+ JoinColumn48({ name: "question_id" })
5069
5046
  ], AssessmetQuestionOption.prototype, "question", 2);
5070
5047
  __decorateClass([
5071
- Column52({ name: "text", type: "varchar", nullable: true })
5048
+ Column51({ name: "text", type: "varchar", nullable: true })
5072
5049
  ], AssessmetQuestionOption.prototype, "text", 2);
5073
5050
  __decorateClass([
5074
- Column52({
5051
+ Column51({
5075
5052
  name: "answer_type",
5076
5053
  type: "enum",
5077
5054
  enum: AnswerTypeEnum,
@@ -5079,13 +5056,13 @@ __decorateClass([
5079
5056
  })
5080
5057
  ], AssessmetQuestionOption.prototype, "answerType", 2);
5081
5058
  __decorateClass([
5082
- Column52({ name: "is_active", type: "boolean", default: true })
5059
+ Column51({ name: "is_active", type: "boolean", default: true })
5083
5060
  ], AssessmetQuestionOption.prototype, "isActive", 2);
5084
5061
  __decorateClass([
5085
5062
  OneToMany18(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5086
5063
  ], AssessmetQuestionOption.prototype, "selectedOptions", 2);
5087
5064
  AssessmetQuestionOption = __decorateClass([
5088
- Entity51("assessment_question_options")
5065
+ Entity50("assessment_question_options")
5089
5066
  ], AssessmetQuestionOption);
5090
5067
 
5091
5068
  // src/entities/assessment-question.entity.ts
@@ -5097,10 +5074,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
5097
5074
  var AssessmetQuestion = class extends BaseEntity {
5098
5075
  };
5099
5076
  __decorateClass([
5100
- Column53({ name: "text", type: "varchar", nullable: true })
5077
+ Column52({ name: "text", type: "varchar", nullable: true })
5101
5078
  ], AssessmetQuestion.prototype, "text", 2);
5102
5079
  __decorateClass([
5103
- Column53({
5080
+ Column52({
5104
5081
  name: "question_for",
5105
5082
  type: "enum",
5106
5083
  enum: QuestionForEnum,
@@ -5108,15 +5085,15 @@ __decorateClass([
5108
5085
  })
5109
5086
  ], AssessmetQuestion.prototype, "questionFor", 2);
5110
5087
  __decorateClass([
5111
- Column53({ name: "is_active", type: "boolean", default: true })
5088
+ Column52({ name: "is_active", type: "boolean", default: true })
5112
5089
  ], AssessmetQuestion.prototype, "isActive", 2);
5113
5090
  __decorateClass([
5114
- Column53({ name: "candidate_id", type: "integer", nullable: true }),
5115
- Index45()
5091
+ Column52({ name: "candidate_id", type: "integer", nullable: true }),
5092
+ Index44()
5116
5093
  ], AssessmetQuestion.prototype, "candidateId", 2);
5117
5094
  __decorateClass([
5118
- ManyToOne50(() => User, (user) => user.freelancerMcq, { nullable: true }),
5119
- JoinColumn50({ name: "candidate_id" })
5095
+ ManyToOne49(() => User, (user) => user.freelancerMcq, { nullable: true }),
5096
+ JoinColumn49({ name: "candidate_id" })
5120
5097
  ], AssessmetQuestion.prototype, "candidate", 2);
5121
5098
  __decorateClass([
5122
5099
  OneToMany19(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
@@ -5125,7 +5102,7 @@ __decorateClass([
5125
5102
  OneToMany19(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5126
5103
  ], AssessmetQuestion.prototype, "answers", 2);
5127
5104
  AssessmetQuestion = __decorateClass([
5128
- Entity52("assessment_questions")
5105
+ Entity51("assessment_questions")
5129
5106
  ], AssessmetQuestion);
5130
5107
 
5131
5108
  // src/entities/assessment-answer.entity.ts
@@ -5138,102 +5115,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
5138
5115
  var AssessmentAnswer = class extends BaseEntity {
5139
5116
  };
5140
5117
  __decorateClass([
5141
- Column54({ name: "user_id", type: "integer" }),
5142
- Index46()
5118
+ Column53({ name: "user_id", type: "integer" }),
5119
+ Index45()
5143
5120
  ], AssessmentAnswer.prototype, "userId", 2);
5144
5121
  __decorateClass([
5145
- ManyToOne51(() => User, (user) => user.assessmentAnswers),
5146
- JoinColumn51({ name: "user_id" })
5122
+ ManyToOne50(() => User, (user) => user.assessmentAnswers),
5123
+ JoinColumn50({ name: "user_id" })
5147
5124
  ], AssessmentAnswer.prototype, "user", 2);
5148
5125
  __decorateClass([
5149
- Column54({ name: "question_id", type: "integer" }),
5150
- Index46()
5126
+ Column53({ name: "question_id", type: "integer" }),
5127
+ Index45()
5151
5128
  ], AssessmentAnswer.prototype, "questionId", 2);
5152
5129
  __decorateClass([
5153
- ManyToOne51(
5130
+ ManyToOne50(
5154
5131
  () => AssessmetQuestion,
5155
5132
  (assessmentQuestion) => assessmentQuestion.answers
5156
5133
  ),
5157
- JoinColumn51({ name: "question_id" })
5134
+ JoinColumn50({ name: "question_id" })
5158
5135
  ], AssessmentAnswer.prototype, "question", 2);
5159
5136
  __decorateClass([
5160
- Column54({ name: "selected_option_id", type: "integer" }),
5161
- Index46()
5137
+ Column53({ name: "selected_option_id", type: "integer" }),
5138
+ Index45()
5162
5139
  ], AssessmentAnswer.prototype, "selectedOptionId", 2);
5163
5140
  __decorateClass([
5164
- ManyToOne51(
5141
+ ManyToOne50(
5165
5142
  () => AssessmetQuestionOption,
5166
5143
  (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
5167
5144
  ),
5168
- JoinColumn51({ name: "selected_option_id" })
5145
+ JoinColumn50({ name: "selected_option_id" })
5169
5146
  ], AssessmentAnswer.prototype, "option", 2);
5170
5147
  __decorateClass([
5171
- Column54({
5148
+ Column53({
5172
5149
  name: "selected_answer_type",
5173
5150
  type: "enum",
5174
5151
  enum: SelectedAnswerTypeEnum
5175
5152
  })
5176
5153
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
5177
5154
  __decorateClass([
5178
- Column54({ name: "score", type: "float" })
5155
+ Column53({ name: "score", type: "float" })
5179
5156
  ], AssessmentAnswer.prototype, "score", 2);
5180
5157
  AssessmentAnswer = __decorateClass([
5181
- Entity53("assessment_answers")
5158
+ Entity52("assessment_answers")
5182
5159
  ], AssessmentAnswer);
5183
5160
 
5184
5161
  // src/entities/company-skill.entity.ts
5185
- import { Entity as Entity54, Column as Column55, Index as Index47, ManyToOne as ManyToOne52, JoinColumn as JoinColumn52 } from "typeorm";
5162
+ import { Entity as Entity53, Column as Column54, Index as Index46, ManyToOne as ManyToOne51, JoinColumn as JoinColumn51 } from "typeorm";
5186
5163
  var CompanySkill = class extends BaseEntity {
5187
5164
  };
5188
5165
  // individual index to find core skills by user
5189
5166
  __decorateClass([
5190
- Column55({ name: "user_id", type: "integer", nullable: true }),
5191
- Index47()
5167
+ Column54({ name: "user_id", type: "integer", nullable: true }),
5168
+ Index46()
5192
5169
  ], CompanySkill.prototype, "userId", 2);
5193
5170
  __decorateClass([
5194
- ManyToOne52(() => User, (user) => user.companySkills),
5195
- JoinColumn52({ name: "user_id" })
5171
+ ManyToOne51(() => User, (user) => user.companySkills),
5172
+ JoinColumn51({ name: "user_id" })
5196
5173
  ], CompanySkill.prototype, "user", 2);
5197
5174
  __decorateClass([
5198
- Column55({ name: "skill_name", type: "varchar", nullable: true })
5175
+ Column54({ name: "skill_name", type: "varchar", nullable: true })
5199
5176
  ], CompanySkill.prototype, "skillName", 2);
5200
5177
  CompanySkill = __decorateClass([
5201
- Entity54("company_skills")
5178
+ Entity53("company_skills")
5202
5179
  ], CompanySkill);
5203
5180
 
5204
5181
  // src/entities/admin-user-role.entity.ts
5205
- import { Entity as Entity58, Column as Column59, ManyToOne as ManyToOne54, JoinColumn as JoinColumn54 } from "typeorm";
5182
+ import { Entity as Entity57, Column as Column58, ManyToOne as ManyToOne53, JoinColumn as JoinColumn53 } from "typeorm";
5206
5183
 
5207
5184
  // src/entities/admin-role.entity.ts
5208
- import { Entity as Entity57, Column as Column58, Index as Index50, OneToMany as OneToMany22 } from "typeorm";
5185
+ import { Entity as Entity56, Column as Column57, Index as Index49, OneToMany as OneToMany22 } from "typeorm";
5209
5186
 
5210
5187
  // src/entities/admin-role-permission.entity.ts
5211
- import { Entity as Entity56, Column as Column57, ManyToOne as ManyToOne53, JoinColumn as JoinColumn53 } from "typeorm";
5188
+ import { Entity as Entity55, Column as Column56, ManyToOne as ManyToOne52, JoinColumn as JoinColumn52 } from "typeorm";
5212
5189
 
5213
5190
  // src/entities/admin-permission.entity.ts
5214
- import { Entity as Entity55, Column as Column56, Index as Index48, OneToMany as OneToMany21 } from "typeorm";
5191
+ import { Entity as Entity54, Column as Column55, Index as Index47, OneToMany as OneToMany21 } from "typeorm";
5215
5192
  var AdminPermission = class extends BaseEntity {
5216
5193
  };
5217
5194
  __decorateClass([
5218
- Column56({ name: "permission_name", type: "varchar", nullable: true })
5195
+ Column55({ name: "permission_name", type: "varchar", nullable: true })
5219
5196
  ], AdminPermission.prototype, "permissionName", 2);
5220
5197
  __decorateClass([
5221
- Column56({
5198
+ Column55({
5222
5199
  name: "permission_slug",
5223
5200
  type: "varchar",
5224
5201
  unique: true,
5225
5202
  nullable: true
5226
5203
  }),
5227
- Index48()
5204
+ Index47()
5228
5205
  ], AdminPermission.prototype, "permissionSlug", 2);
5229
5206
  __decorateClass([
5230
- Column56({ name: "permission_description", type: "varchar", nullable: true })
5207
+ Column55({ name: "permission_description", type: "varchar", nullable: true })
5231
5208
  ], AdminPermission.prototype, "permissionDescription", 2);
5232
5209
  __decorateClass([
5233
- Column56({ name: "module", type: "varchar", nullable: true })
5210
+ Column55({ name: "module", type: "varchar", nullable: true })
5234
5211
  ], AdminPermission.prototype, "module", 2);
5235
5212
  __decorateClass([
5236
- Column56({ name: "is_active", type: "boolean", default: true })
5213
+ Column55({ name: "is_active", type: "boolean", default: true })
5237
5214
  ], AdminPermission.prototype, "isActive", 2);
5238
5215
  __decorateClass([
5239
5216
  OneToMany21(
@@ -5242,14 +5219,14 @@ __decorateClass([
5242
5219
  )
5243
5220
  ], AdminPermission.prototype, "adminRole", 2);
5244
5221
  AdminPermission = __decorateClass([
5245
- Entity55("admin_permissions")
5222
+ Entity54("admin_permissions")
5246
5223
  ], AdminPermission);
5247
5224
 
5248
5225
  // src/entities/admin-role-permission.entity.ts
5249
5226
  var AdminRolePermission = class extends BaseEntity {
5250
5227
  };
5251
5228
  __decorateClass([
5252
- Column57({
5229
+ Column56({
5253
5230
  name: "role_id",
5254
5231
  type: "int",
5255
5232
  nullable: true,
@@ -5257,11 +5234,11 @@ __decorateClass([
5257
5234
  })
5258
5235
  ], AdminRolePermission.prototype, "roleId", 2);
5259
5236
  __decorateClass([
5260
- ManyToOne53(() => AdminRole),
5261
- JoinColumn53({ name: "role_id" })
5237
+ ManyToOne52(() => AdminRole),
5238
+ JoinColumn52({ name: "role_id" })
5262
5239
  ], AdminRolePermission.prototype, "adminRole", 2);
5263
5240
  __decorateClass([
5264
- Column57({
5241
+ Column56({
5265
5242
  name: "permission_id",
5266
5243
  type: "int",
5267
5244
  nullable: true,
@@ -5269,28 +5246,28 @@ __decorateClass([
5269
5246
  })
5270
5247
  ], AdminRolePermission.prototype, "permissionId", 2);
5271
5248
  __decorateClass([
5272
- ManyToOne53(() => AdminPermission),
5273
- JoinColumn53({ name: "permission_id" })
5249
+ ManyToOne52(() => AdminPermission),
5250
+ JoinColumn52({ name: "permission_id" })
5274
5251
  ], AdminRolePermission.prototype, "adminPermissions", 2);
5275
5252
  AdminRolePermission = __decorateClass([
5276
- Entity56("admin_role_permissions")
5253
+ Entity55("admin_role_permissions")
5277
5254
  ], AdminRolePermission);
5278
5255
 
5279
5256
  // src/entities/admin-role.entity.ts
5280
5257
  var AdminRole = class extends BaseEntity {
5281
5258
  };
5282
5259
  __decorateClass([
5283
- Column58({ name: "role_name", type: "varchar", nullable: true })
5260
+ Column57({ name: "role_name", type: "varchar", nullable: true })
5284
5261
  ], AdminRole.prototype, "roleName", 2);
5285
5262
  __decorateClass([
5286
- Column58({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5287
- Index50()
5263
+ Column57({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5264
+ Index49()
5288
5265
  ], AdminRole.prototype, "roleSlug", 2);
5289
5266
  __decorateClass([
5290
- Column58({ name: "role_description", type: "varchar", nullable: true })
5267
+ Column57({ name: "role_description", type: "varchar", nullable: true })
5291
5268
  ], AdminRole.prototype, "roleDescription", 2);
5292
5269
  __decorateClass([
5293
- Column58({ name: "is_active", type: "boolean", default: true })
5270
+ Column57({ name: "is_active", type: "boolean", default: true })
5294
5271
  ], AdminRole.prototype, "isActive", 2);
5295
5272
  __decorateClass([
5296
5273
  OneToMany22(
@@ -5302,14 +5279,14 @@ __decorateClass([
5302
5279
  OneToMany22(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5303
5280
  ], AdminRole.prototype, "userRoles", 2);
5304
5281
  AdminRole = __decorateClass([
5305
- Entity57("admin_roles")
5282
+ Entity56("admin_roles")
5306
5283
  ], AdminRole);
5307
5284
 
5308
5285
  // src/entities/admin-user-role.entity.ts
5309
5286
  var AdminUserRole = class extends BaseEntity {
5310
5287
  };
5311
5288
  __decorateClass([
5312
- Column59({
5289
+ Column58({
5313
5290
  name: "user_id",
5314
5291
  type: "int",
5315
5292
  nullable: true,
@@ -5317,11 +5294,11 @@ __decorateClass([
5317
5294
  })
5318
5295
  ], AdminUserRole.prototype, "userId", 2);
5319
5296
  __decorateClass([
5320
- ManyToOne54(() => User),
5321
- JoinColumn54({ name: "user_id" })
5297
+ ManyToOne53(() => User),
5298
+ JoinColumn53({ name: "user_id" })
5322
5299
  ], AdminUserRole.prototype, "user", 2);
5323
5300
  __decorateClass([
5324
- Column59({
5301
+ Column58({
5325
5302
  name: "role_id",
5326
5303
  type: "int",
5327
5304
  nullable: true,
@@ -5329,70 +5306,70 @@ __decorateClass([
5329
5306
  })
5330
5307
  ], AdminUserRole.prototype, "roleId", 2);
5331
5308
  __decorateClass([
5332
- ManyToOne54(() => AdminRole),
5333
- JoinColumn54({ name: "role_id" })
5309
+ ManyToOne53(() => AdminRole),
5310
+ JoinColumn53({ name: "role_id" })
5334
5311
  ], AdminUserRole.prototype, "adminRole", 2);
5335
5312
  AdminUserRole = __decorateClass([
5336
- Entity58("admin_user_roles")
5313
+ Entity57("admin_user_roles")
5337
5314
  ], AdminUserRole);
5338
5315
 
5339
5316
  // src/entities/freelancer-resume.entity.ts
5340
5317
  import {
5341
- Entity as Entity59,
5342
- Column as Column60,
5343
- Index as Index52,
5344
- ManyToOne as ManyToOne55,
5345
- JoinColumn as JoinColumn55
5318
+ Entity as Entity58,
5319
+ Column as Column59,
5320
+ Index as Index51,
5321
+ ManyToOne as ManyToOne54,
5322
+ JoinColumn as JoinColumn54
5346
5323
  } from "typeorm";
5347
5324
  var FreelancerResume = class extends BaseEntity {
5348
5325
  };
5349
5326
  // individual index to find profile by user
5350
5327
  __decorateClass([
5351
- Column60({ name: "user_id", type: "integer", nullable: true }),
5352
- Index52()
5328
+ Column59({ name: "user_id", type: "integer", nullable: true }),
5329
+ Index51()
5353
5330
  ], FreelancerResume.prototype, "userId", 2);
5354
5331
  __decorateClass([
5355
- ManyToOne55(() => User, (user) => user.freelancerProfile),
5356
- JoinColumn55({ name: "user_id" })
5332
+ ManyToOne54(() => User, (user) => user.freelancerProfile),
5333
+ JoinColumn54({ name: "user_id" })
5357
5334
  ], FreelancerResume.prototype, "user", 2);
5358
5335
  __decorateClass([
5359
- Column60({ name: "resume_data", type: "jsonb", nullable: true })
5336
+ Column59({ name: "resume_data", type: "jsonb", nullable: true })
5360
5337
  ], FreelancerResume.prototype, "resumeData", 2);
5361
5338
  __decorateClass([
5362
- Column60({ name: "processed_resume_data", type: "jsonb", nullable: true })
5339
+ Column59({ name: "processed_resume_data", type: "jsonb", nullable: true })
5363
5340
  ], FreelancerResume.prototype, "processedResumeData", 2);
5364
5341
  FreelancerResume = __decorateClass([
5365
- Entity59("freelancer_resumes")
5342
+ Entity58("freelancer_resumes")
5366
5343
  ], FreelancerResume);
5367
5344
 
5368
5345
  // src/entities/signature.entity.ts
5369
5346
  import {
5370
- Entity as Entity60,
5371
- Column as Column61,
5372
- Index as Index53,
5373
- ManyToOne as ManyToOne56,
5374
- JoinColumn as JoinColumn56
5347
+ Entity as Entity59,
5348
+ Column as Column60,
5349
+ Index as Index52,
5350
+ ManyToOne as ManyToOne55,
5351
+ JoinColumn as JoinColumn55
5375
5352
  } from "typeorm";
5376
5353
  var Signature = class extends BaseEntity {
5377
5354
  };
5378
5355
  // individual index to find profile by user
5379
5356
  __decorateClass([
5380
- Column61({ name: "user_id", type: "integer", nullable: true }),
5381
- Index53()
5357
+ Column60({ name: "user_id", type: "integer", nullable: true }),
5358
+ Index52()
5382
5359
  ], Signature.prototype, "userId", 2);
5383
5360
  __decorateClass([
5384
- ManyToOne56(() => User, (user) => user.signatures),
5385
- JoinColumn56({ name: "user_id" })
5361
+ ManyToOne55(() => User, (user) => user.signatures),
5362
+ JoinColumn55({ name: "user_id" })
5386
5363
  ], Signature.prototype, "user", 2);
5387
5364
  __decorateClass([
5388
- Column61({ name: "signature_url", type: "text", nullable: true })
5365
+ Column60({ name: "signature_url", type: "text", nullable: true })
5389
5366
  ], Signature.prototype, "signatureUrl", 2);
5390
5367
  Signature = __decorateClass([
5391
- Entity60("signatures")
5368
+ Entity59("signatures")
5392
5369
  ], Signature);
5393
5370
 
5394
5371
  // src/entities/dispute.entity.ts
5395
- import { Entity as Entity61, Column as Column62, Index as Index54, JoinColumn as JoinColumn57, ManyToOne as ManyToOne57 } from "typeorm";
5372
+ import { Entity as Entity60, Column as Column61, Index as Index53, JoinColumn as JoinColumn56, ManyToOne as ManyToOne56 } from "typeorm";
5396
5373
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
5397
5374
  DisputeStatusEnum2["OPEN"] = "OPEN";
5398
5375
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -5413,36 +5390,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
5413
5390
  var Dispute = class extends BaseEntity {
5414
5391
  };
5415
5392
  __decorateClass([
5416
- Column62({ name: "client_id", type: "integer", nullable: true }),
5417
- Index54()
5393
+ Column61({ name: "client_id", type: "integer", nullable: true }),
5394
+ Index53()
5418
5395
  ], Dispute.prototype, "clientId", 2);
5419
5396
  __decorateClass([
5420
- ManyToOne57(() => User, (user) => user.clientDisputes),
5421
- JoinColumn57({ name: "client_id" })
5397
+ ManyToOne56(() => User, (user) => user.clientDisputes),
5398
+ JoinColumn56({ name: "client_id" })
5422
5399
  ], Dispute.prototype, "client", 2);
5423
5400
  __decorateClass([
5424
- Column62({ name: "freelancer_id", type: "integer", nullable: true }),
5425
- Index54()
5401
+ Column61({ name: "freelancer_id", type: "integer", nullable: true }),
5402
+ Index53()
5426
5403
  ], Dispute.prototype, "freelancerId", 2);
5427
5404
  __decorateClass([
5428
- ManyToOne57(() => User, (user) => user.freelancerDisputes),
5429
- JoinColumn57({ name: "freelancer_id" })
5405
+ ManyToOne56(() => User, (user) => user.freelancerDisputes),
5406
+ JoinColumn56({ name: "freelancer_id" })
5430
5407
  ], Dispute.prototype, "freelancer", 2);
5431
5408
  __decorateClass([
5432
- Column62({ name: "dispute_unique_id", type: "varchar", unique: true })
5409
+ Column61({ name: "dispute_unique_id", type: "varchar", unique: true })
5433
5410
  ], Dispute.prototype, "disputeUniqueId", 2);
5434
5411
  __decorateClass([
5435
- Column62({ name: "dispute_type", type: "varchar", nullable: true }),
5436
- Index54()
5412
+ Column61({ name: "dispute_type", type: "varchar", nullable: true }),
5413
+ Index53()
5437
5414
  ], Dispute.prototype, "disputeType", 2);
5438
5415
  __decorateClass([
5439
- Column62({ name: "description", type: "varchar", nullable: true })
5416
+ Column61({ name: "description", type: "varchar", nullable: true })
5440
5417
  ], Dispute.prototype, "description", 2);
5441
5418
  __decorateClass([
5442
- Column62({ name: "comment", type: "varchar", nullable: true })
5419
+ Column61({ name: "comment", type: "varchar", nullable: true })
5443
5420
  ], Dispute.prototype, "comment", 2);
5444
5421
  __decorateClass([
5445
- Column62({
5422
+ Column61({
5446
5423
  name: "status",
5447
5424
  type: "enum",
5448
5425
  enum: DisputeStatusEnum,
@@ -5450,7 +5427,7 @@ __decorateClass([
5450
5427
  })
5451
5428
  ], Dispute.prototype, "status", 2);
5452
5429
  __decorateClass([
5453
- Column62({
5430
+ Column61({
5454
5431
  name: "initiator_type",
5455
5432
  type: "enum",
5456
5433
  enum: InitiatorTypeEnum,
@@ -5459,33 +5436,33 @@ __decorateClass([
5459
5436
  })
5460
5437
  ], Dispute.prototype, "initiatorType", 2);
5461
5438
  __decorateClass([
5462
- Column62({ name: "initiator_id", type: "integer" }),
5463
- Index54()
5439
+ Column61({ name: "initiator_id", type: "integer" }),
5440
+ Index53()
5464
5441
  ], Dispute.prototype, "initiatorId", 2);
5465
5442
  __decorateClass([
5466
- ManyToOne57(() => User, (user) => user.initiatedDisputes),
5467
- JoinColumn57({ name: "initiator_id" })
5443
+ ManyToOne56(() => User, (user) => user.initiatedDisputes),
5444
+ JoinColumn56({ name: "initiator_id" })
5468
5445
  ], Dispute.prototype, "initiator", 2);
5469
5446
  __decorateClass([
5470
- Column62({ name: "respondent_id", type: "integer", nullable: true }),
5471
- Index54()
5447
+ Column61({ name: "respondent_id", type: "integer", nullable: true }),
5448
+ Index53()
5472
5449
  ], Dispute.prototype, "respondentId", 2);
5473
5450
  __decorateClass([
5474
- ManyToOne57(() => User, (user) => user.respondentDisputes, { nullable: true }),
5475
- JoinColumn57({ name: "respondent_id" })
5451
+ ManyToOne56(() => User, (user) => user.respondentDisputes, { nullable: true }),
5452
+ JoinColumn56({ name: "respondent_id" })
5476
5453
  ], Dispute.prototype, "respondent", 2);
5477
5454
  __decorateClass([
5478
- Column62({ name: "attachments", type: "jsonb", nullable: true })
5455
+ Column61({ name: "attachments", type: "jsonb", nullable: true })
5479
5456
  ], Dispute.prototype, "attachments", 2);
5480
5457
  __decorateClass([
5481
- Column62({ name: "dynamic_fields", type: "jsonb", nullable: true })
5458
+ Column61({ name: "dynamic_fields", type: "jsonb", nullable: true })
5482
5459
  ], Dispute.prototype, "dynamicFields", 2);
5483
5460
  Dispute = __decorateClass([
5484
- Entity61("disputes")
5461
+ Entity60("disputes")
5485
5462
  ], Dispute);
5486
5463
 
5487
5464
  // src/entities/stripe-transaction.entity.ts
5488
- import { Entity as Entity62, Column as Column63, Index as Index55, ManyToOne as ManyToOne58, JoinColumn as JoinColumn58 } from "typeorm";
5465
+ import { Entity as Entity61, Column as Column62, Index as Index54, ManyToOne as ManyToOne57, JoinColumn as JoinColumn57 } from "typeorm";
5489
5466
  var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
5490
5467
  StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
5491
5468
  StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -5507,97 +5484,97 @@ var StripeTransaction = class extends BaseEntity {
5507
5484
  // Full Stripe session response
5508
5485
  };
5509
5486
  __decorateClass([
5510
- Column63({ name: "user_id", type: "integer", nullable: true }),
5511
- Index55()
5487
+ Column62({ name: "user_id", type: "integer", nullable: true }),
5488
+ Index54()
5512
5489
  ], StripeTransaction.prototype, "userId", 2);
5513
5490
  __decorateClass([
5514
- ManyToOne58(() => User, (user) => user.stripeTransactions),
5515
- JoinColumn58({ name: "user_id" })
5491
+ ManyToOne57(() => User, (user) => user.stripeTransactions),
5492
+ JoinColumn57({ name: "user_id" })
5516
5493
  ], StripeTransaction.prototype, "user", 2);
5517
5494
  __decorateClass([
5518
- Column63({ name: "stripe_session_id", type: "varchar", nullable: true })
5495
+ Column62({ name: "stripe_session_id", type: "varchar", nullable: true })
5519
5496
  ], StripeTransaction.prototype, "stripeSessionId", 2);
5520
5497
  __decorateClass([
5521
- Column63({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5498
+ Column62({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5522
5499
  ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
5523
5500
  __decorateClass([
5524
- Column63({ name: "stripe_charge_id", type: "varchar", nullable: true })
5501
+ Column62({ name: "stripe_charge_id", type: "varchar", nullable: true })
5525
5502
  ], StripeTransaction.prototype, "stripeChargeId", 2);
5526
5503
  __decorateClass([
5527
- Column63({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5504
+ Column62({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5528
5505
  ], StripeTransaction.prototype, "stripeReceiptUrl", 2);
5529
5506
  __decorateClass([
5530
- Column63({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5507
+ Column62({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5531
5508
  ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
5532
5509
  __decorateClass([
5533
- Column63({ name: "stripe_payment_method", type: "varchar", nullable: true })
5510
+ Column62({ name: "stripe_payment_method", type: "varchar", nullable: true })
5534
5511
  ], StripeTransaction.prototype, "stripePaymentMethod", 2);
5535
5512
  __decorateClass([
5536
- Column63({ name: "stripe_payment_status", type: "varchar", nullable: true })
5513
+ Column62({ name: "stripe_payment_status", type: "varchar", nullable: true })
5537
5514
  ], StripeTransaction.prototype, "stripePaymentStatus", 2);
5538
5515
  __decorateClass([
5539
- Column63({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5516
+ Column62({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5540
5517
  ], StripeTransaction.prototype, "type", 2);
5541
5518
  __decorateClass([
5542
- Column63({ name: "currency", type: "varchar", nullable: true })
5519
+ Column62({ name: "currency", type: "varchar", nullable: true })
5543
5520
  ], StripeTransaction.prototype, "currency", 2);
5544
5521
  __decorateClass([
5545
- Column63({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
5522
+ Column62({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
5546
5523
  ], StripeTransaction.prototype, "desiredDepositCents", 2);
5547
5524
  __decorateClass([
5548
- Column63({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5525
+ Column62({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5549
5526
  ], StripeTransaction.prototype, "platformFeeCents", 2);
5550
5527
  __decorateClass([
5551
- Column63({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5528
+ Column62({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5552
5529
  ], StripeTransaction.prototype, "taxCents", 2);
5553
5530
  __decorateClass([
5554
- Column63({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5531
+ Column62({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5555
5532
  ], StripeTransaction.prototype, "estimatedStripeFee", 2);
5556
5533
  __decorateClass([
5557
- Column63({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
5534
+ Column62({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
5558
5535
  ], StripeTransaction.prototype, "estimatedTotalCents", 2);
5559
5536
  __decorateClass([
5560
- Column63({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5537
+ Column62({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5561
5538
  ], StripeTransaction.prototype, "actualStripeFee", 2);
5562
5539
  __decorateClass([
5563
- Column63({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5540
+ Column62({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5564
5541
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
5565
5542
  __decorateClass([
5566
- Column63({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
5543
+ Column62({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
5567
5544
  ], StripeTransaction.prototype, "netReceivedCents", 2);
5568
5545
  __decorateClass([
5569
- Column63({ name: "description", type: "text", nullable: true })
5546
+ Column62({ name: "description", type: "text", nullable: true })
5570
5547
  ], StripeTransaction.prototype, "description", 2);
5571
5548
  __decorateClass([
5572
- Column63({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5549
+ Column62({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5573
5550
  ], StripeTransaction.prototype, "status", 2);
5574
5551
  __decorateClass([
5575
- Column63({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5552
+ Column62({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5576
5553
  ], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
5577
5554
  __decorateClass([
5578
- Column63({ name: "completed_at", type: "timestamptz", nullable: true })
5555
+ Column62({ name: "completed_at", type: "timestamptz", nullable: true })
5579
5556
  ], StripeTransaction.prototype, "completedAt", 2);
5580
5557
  __decorateClass([
5581
- Column63({ name: "billing_details", type: "jsonb", nullable: true })
5558
+ Column62({ name: "billing_details", type: "jsonb", nullable: true })
5582
5559
  ], StripeTransaction.prototype, "billingDetails", 2);
5583
5560
  __decorateClass([
5584
- Column63({ name: "payment_method_details", type: "jsonb", nullable: true })
5561
+ Column62({ name: "payment_method_details", type: "jsonb", nullable: true })
5585
5562
  ], StripeTransaction.prototype, "paymentMethodDetails", 2);
5586
5563
  __decorateClass([
5587
- Column63({ name: "raw_session_payload", type: "jsonb", nullable: true })
5564
+ Column62({ name: "raw_session_payload", type: "jsonb", nullable: true })
5588
5565
  ], StripeTransaction.prototype, "rawSessionPayload", 2);
5589
5566
  __decorateClass([
5590
- Column63({ name: "raw_session_response", type: "jsonb", nullable: true })
5567
+ Column62({ name: "raw_session_response", type: "jsonb", nullable: true })
5591
5568
  ], StripeTransaction.prototype, "rawSessionResponse", 2);
5592
5569
  StripeTransaction = __decorateClass([
5593
- Entity62("stripe_transactions")
5570
+ Entity61("stripe_transactions")
5594
5571
  ], StripeTransaction);
5595
5572
 
5596
5573
  // src/entities/wallet.entity.ts
5597
- import { Entity as Entity64, Column as Column65, Index as Index57, JoinColumn as JoinColumn60, OneToOne as OneToOne12, OneToMany as OneToMany23 } from "typeorm";
5574
+ import { Entity as Entity63, Column as Column64, Index as Index56, JoinColumn as JoinColumn59, OneToOne as OneToOne12, OneToMany as OneToMany23 } from "typeorm";
5598
5575
 
5599
5576
  // src/entities/wallet-transaction.entity.ts
5600
- import { Entity as Entity63, Column as Column64, Index as Index56, ManyToOne as ManyToOne59, JoinColumn as JoinColumn59 } from "typeorm";
5577
+ import { Entity as Entity62, Column as Column63, Index as Index55, ManyToOne as ManyToOne58, JoinColumn as JoinColumn58 } from "typeorm";
5601
5578
  var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
5602
5579
  WalletTransactionTypeEnum2["CR"] = "CR";
5603
5580
  WalletTransactionTypeEnum2["DR"] = "DR";
@@ -5614,46 +5591,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
5614
5591
  var WalletTransaction = class extends BaseEntity {
5615
5592
  };
5616
5593
  __decorateClass([
5617
- Column64({ name: "wallet_id", type: "integer", nullable: true }),
5618
- Index56()
5594
+ Column63({ name: "wallet_id", type: "integer", nullable: true }),
5595
+ Index55()
5619
5596
  ], WalletTransaction.prototype, "walletId", 2);
5620
5597
  __decorateClass([
5621
- ManyToOne59(() => Wallet, (wallet) => wallet.walletTransactions),
5622
- JoinColumn59({ name: "wallet_id" })
5598
+ ManyToOne58(() => Wallet, (wallet) => wallet.walletTransactions),
5599
+ JoinColumn58({ name: "wallet_id" })
5623
5600
  ], WalletTransaction.prototype, "wallet", 2);
5624
5601
  __decorateClass([
5625
- Column64({ name: "amount", type: "bigint", nullable: true })
5602
+ Column63({ name: "amount", type: "bigint", nullable: true })
5626
5603
  ], WalletTransaction.prototype, "amount", 2);
5627
5604
  __decorateClass([
5628
- Column64({ name: "balance_before", type: "bigint", nullable: true })
5605
+ Column63({ name: "balance_before", type: "bigint", nullable: true })
5629
5606
  ], WalletTransaction.prototype, "balanceBefore", 2);
5630
5607
  __decorateClass([
5631
- Column64({ name: "balance_after", type: "bigint", nullable: true })
5608
+ Column63({ name: "balance_after", type: "bigint", nullable: true })
5632
5609
  ], WalletTransaction.prototype, "balanceAfter", 2);
5633
5610
  __decorateClass([
5634
- Column64({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5611
+ Column63({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5635
5612
  ], WalletTransaction.prototype, "type", 2);
5636
5613
  __decorateClass([
5637
- Column64({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5614
+ Column63({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5638
5615
  ], WalletTransaction.prototype, "status", 2);
5639
5616
  __decorateClass([
5640
- Column64({ name: "description", type: "text", nullable: true })
5617
+ Column63({ name: "description", type: "text", nullable: true })
5641
5618
  ], WalletTransaction.prototype, "description", 2);
5642
5619
  __decorateClass([
5643
- Column64({ name: "completed_at", type: "timestamptz", nullable: true })
5620
+ Column63({ name: "completed_at", type: "timestamptz", nullable: true })
5644
5621
  ], WalletTransaction.prototype, "completedAt", 2);
5645
5622
  __decorateClass([
5646
- Column64({ name: "transaction_for", type: "varchar", nullable: true })
5623
+ Column63({ name: "transaction_for", type: "varchar", nullable: true })
5647
5624
  ], WalletTransaction.prototype, "transactionFor", 2);
5648
5625
  __decorateClass([
5649
- Column64({ name: "meta_data", type: "varchar", nullable: true })
5626
+ Column63({ name: "meta_data", type: "varchar", nullable: true })
5650
5627
  ], WalletTransaction.prototype, "metaData", 2);
5651
5628
  __decorateClass([
5652
- Column64({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5653
- Index56()
5629
+ Column63({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5630
+ Index55()
5654
5631
  ], WalletTransaction.prototype, "stripeTransactionId", 2);
5655
5632
  WalletTransaction = __decorateClass([
5656
- Entity63("wallet_transactions")
5633
+ Entity62("wallet_transactions")
5657
5634
  ], WalletTransaction);
5658
5635
 
5659
5636
  // src/entities/wallet.entity.ts
@@ -5671,48 +5648,48 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
5671
5648
  var Wallet = class extends BaseEntity {
5672
5649
  };
5673
5650
  __decorateClass([
5674
- Column65({ name: "user_id", type: "integer", nullable: true }),
5675
- Index57()
5651
+ Column64({ name: "user_id", type: "integer", nullable: true }),
5652
+ Index56()
5676
5653
  ], Wallet.prototype, "userId", 2);
5677
5654
  __decorateClass([
5678
5655
  OneToOne12(() => User, (user) => user.wallet),
5679
- JoinColumn60({ name: "user_id" })
5656
+ JoinColumn59({ name: "user_id" })
5680
5657
  ], Wallet.prototype, "user", 2);
5681
5658
  __decorateClass([
5682
- Column65({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5659
+ Column64({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5683
5660
  ], Wallet.prototype, "accountType", 2);
5684
5661
  __decorateClass([
5685
- Column65({ name: "stripe_account_id", type: "varchar", nullable: true })
5662
+ Column64({ name: "stripe_account_id", type: "varchar", nullable: true })
5686
5663
  ], Wallet.prototype, "stripeAccountId", 2);
5687
5664
  __decorateClass([
5688
- Column65({ name: "stripe_customer_id", type: "varchar", nullable: true })
5665
+ Column64({ name: "stripe_customer_id", type: "varchar", nullable: true })
5689
5666
  ], Wallet.prototype, "stripeCustomerId", 2);
5690
5667
  __decorateClass([
5691
- Column65({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
5668
+ Column64({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
5692
5669
  ], Wallet.prototype, "walletBalance", 2);
5693
5670
  __decorateClass([
5694
- Column65({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
5671
+ Column64({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
5695
5672
  ], Wallet.prototype, "walletBalanceCents", 2);
5696
5673
  __decorateClass([
5697
- Column65({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5674
+ Column64({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5698
5675
  ], Wallet.prototype, "onboardingStatus", 2);
5699
5676
  __decorateClass([
5700
- Column65({ name: "stripe_metadata", type: "jsonb", nullable: true })
5677
+ Column64({ name: "stripe_metadata", type: "jsonb", nullable: true })
5701
5678
  ], Wallet.prototype, "stripeMetadata", 2);
5702
5679
  __decorateClass([
5703
5680
  OneToMany23(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5704
5681
  ], Wallet.prototype, "walletTransactions", 2);
5705
5682
  Wallet = __decorateClass([
5706
- Entity64("wallets")
5683
+ Entity63("wallets")
5707
5684
  ], Wallet);
5708
5685
 
5709
5686
  // src/entities/freelancer-assessment-request.entity.ts
5710
5687
  import {
5711
- Entity as Entity65,
5712
- Column as Column66,
5713
- ManyToOne as ManyToOne60,
5714
- Index as Index58,
5715
- JoinColumn as JoinColumn61
5688
+ Entity as Entity64,
5689
+ Column as Column65,
5690
+ ManyToOne as ManyToOne59,
5691
+ Index as Index57,
5692
+ JoinColumn as JoinColumn60
5716
5693
  } from "typeorm";
5717
5694
  var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
5718
5695
  AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
@@ -5723,23 +5700,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
5723
5700
  var FreelancerAssessmentRequest = class extends BaseEntity {
5724
5701
  };
5725
5702
  __decorateClass([
5726
- Column66({ name: "freelancer_id", type: "integer", nullable: true }),
5727
- Index58()
5703
+ Column65({ name: "freelancer_id", type: "integer", nullable: true }),
5704
+ Index57()
5728
5705
  ], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
5729
5706
  __decorateClass([
5730
- ManyToOne60(() => User, (user) => user.freelancerAssessmentRequests),
5731
- JoinColumn61({ name: "freelancer_id" })
5707
+ ManyToOne59(() => User, (user) => user.freelancerAssessmentRequests),
5708
+ JoinColumn60({ name: "freelancer_id" })
5732
5709
  ], FreelancerAssessmentRequest.prototype, "freelancer", 2);
5733
5710
  __decorateClass([
5734
- Column66({ name: "approved_by_id", type: "integer", nullable: true }),
5735
- Index58()
5711
+ Column65({ name: "approved_by_id", type: "integer", nullable: true }),
5712
+ Index57()
5736
5713
  ], FreelancerAssessmentRequest.prototype, "approvedById", 2);
5737
5714
  __decorateClass([
5738
- ManyToOne60(() => User, (user) => user.assessmentRequests),
5739
- JoinColumn61({ name: "approved_by_id" })
5715
+ ManyToOne59(() => User, (user) => user.assessmentRequests),
5716
+ JoinColumn60({ name: "approved_by_id" })
5740
5717
  ], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
5741
5718
  __decorateClass([
5742
- Column66({
5719
+ Column65({
5743
5720
  name: "status",
5744
5721
  type: "enum",
5745
5722
  enum: AssessmentRequestStatusEnum,
@@ -5747,44 +5724,44 @@ __decorateClass([
5747
5724
  })
5748
5725
  ], FreelancerAssessmentRequest.prototype, "status", 2);
5749
5726
  __decorateClass([
5750
- Column66({ name: "assessment_link", type: "text", nullable: true })
5727
+ Column65({ name: "assessment_link", type: "text", nullable: true })
5751
5728
  ], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
5752
5729
  FreelancerAssessmentRequest = __decorateClass([
5753
- Entity65({ name: "freelancer_assessment_requests" })
5730
+ Entity64({ name: "freelancer_assessment_requests" })
5754
5731
  ], FreelancerAssessmentRequest);
5755
5732
 
5756
5733
  // src/entities/in-app-notification.entity.ts
5757
- import { Entity as Entity66, Column as Column67, Index as Index59, ManyToOne as ManyToOne61, JoinColumn as JoinColumn62 } from "typeorm";
5734
+ import { Entity as Entity65, Column as Column66, Index as Index58, ManyToOne as ManyToOne60, JoinColumn as JoinColumn61 } from "typeorm";
5758
5735
  var InAppNotification = class extends BaseEntity {
5759
5736
  };
5760
5737
  __decorateClass([
5761
- Column67({ name: "user_id", type: "integer", nullable: true }),
5762
- Index59()
5738
+ Column66({ name: "user_id", type: "integer", nullable: true }),
5739
+ Index58()
5763
5740
  ], InAppNotification.prototype, "userId", 2);
5764
5741
  __decorateClass([
5765
- ManyToOne61(() => User, (user) => user.inAppNotifications),
5766
- JoinColumn62({ name: "user_id" })
5742
+ ManyToOne60(() => User, (user) => user.inAppNotifications),
5743
+ JoinColumn61({ name: "user_id" })
5767
5744
  ], InAppNotification.prototype, "user", 2);
5768
5745
  __decorateClass([
5769
- Column67({ name: "event", type: "varchar", nullable: true })
5746
+ Column66({ name: "event", type: "varchar", nullable: true })
5770
5747
  ], InAppNotification.prototype, "event", 2);
5771
5748
  __decorateClass([
5772
- Column67({ name: "title", type: "varchar", nullable: true })
5749
+ Column66({ name: "title", type: "varchar", nullable: true })
5773
5750
  ], InAppNotification.prototype, "title", 2);
5774
5751
  __decorateClass([
5775
- Column67({ name: "message", type: "varchar", nullable: true })
5752
+ Column66({ name: "message", type: "varchar", nullable: true })
5776
5753
  ], InAppNotification.prototype, "message", 2);
5777
5754
  __decorateClass([
5778
- Column67({ name: "redirect_url", type: "varchar", nullable: true })
5755
+ Column66({ name: "redirect_url", type: "varchar", nullable: true })
5779
5756
  ], InAppNotification.prototype, "redirectUrl", 2);
5780
5757
  __decorateClass([
5781
- Column67({ name: "is_read", type: "boolean", default: false })
5758
+ Column66({ name: "is_read", type: "boolean", default: false })
5782
5759
  ], InAppNotification.prototype, "isRead", 2);
5783
5760
  __decorateClass([
5784
- Column67({ name: "meta_data", type: "jsonb", nullable: true })
5761
+ Column66({ name: "meta_data", type: "jsonb", nullable: true })
5785
5762
  ], InAppNotification.prototype, "metaData", 2);
5786
5763
  InAppNotification = __decorateClass([
5787
- Entity66("in_app_notifications")
5764
+ Entity65("in_app_notifications")
5788
5765
  ], InAppNotification);
5789
5766
 
5790
5767
  // src/entities/user.entity.ts
@@ -5813,51 +5790,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
5813
5790
  var User = class extends BaseEntity {
5814
5791
  };
5815
5792
  __decorateClass([
5816
- Column68({ name: "unique_id", type: "varchar", unique: true })
5793
+ Column67({ name: "unique_id", type: "varchar", unique: true })
5817
5794
  ], User.prototype, "uniqueId", 2);
5818
5795
  __decorateClass([
5819
- Column68({ name: "parent_id", type: "integer", nullable: true }),
5820
- Index60()
5796
+ Column67({ name: "parent_id", type: "integer", nullable: true }),
5797
+ Index59()
5821
5798
  ], User.prototype, "parentId", 2);
5822
5799
  __decorateClass([
5823
- ManyToOne62(() => User, (user) => user.children, { nullable: true }),
5824
- JoinColumn63({ name: "parent_id" })
5800
+ ManyToOne61(() => User, (user) => user.children, { nullable: true }),
5801
+ JoinColumn62({ name: "parent_id" })
5825
5802
  ], User.prototype, "parent", 2);
5826
5803
  __decorateClass([
5827
5804
  OneToMany24(() => User, (user) => user.parent)
5828
5805
  ], User.prototype, "children", 2);
5829
5806
  __decorateClass([
5830
- Column68({ name: "username", type: "varchar", unique: true, nullable: true })
5807
+ Column67({ name: "username", type: "varchar", unique: true, nullable: true })
5831
5808
  ], User.prototype, "username", 2);
5832
5809
  __decorateClass([
5833
- Column68({ name: "first_name", type: "varchar", length: 100, nullable: true })
5810
+ Column67({ name: "first_name", type: "varchar", length: 100, nullable: true })
5834
5811
  ], User.prototype, "firstName", 2);
5835
5812
  __decorateClass([
5836
- Column68({ name: "last_name", type: "varchar", length: 100, nullable: true })
5813
+ Column67({ name: "last_name", type: "varchar", length: 100, nullable: true })
5837
5814
  ], User.prototype, "lastName", 2);
5838
5815
  __decorateClass([
5839
- Column68({ name: "date_of_birth", type: "date", nullable: true })
5816
+ Column67({ name: "date_of_birth", type: "date", nullable: true })
5840
5817
  ], User.prototype, "dateOfBirth", 2);
5841
5818
  __decorateClass([
5842
- Column68({ name: "gender", type: "varchar", length: 10, nullable: true })
5819
+ Column67({ name: "gender", type: "varchar", length: 10, nullable: true })
5843
5820
  ], User.prototype, "gender", 2);
5844
5821
  __decorateClass([
5845
- Column68({ name: "profile_picture_url", type: "text", nullable: true })
5822
+ Column67({ name: "profile_picture_url", type: "text", nullable: true })
5846
5823
  ], User.prototype, "profilePictureUrl", 2);
5847
5824
  __decorateClass([
5848
- Column68({ name: "email", type: "varchar", unique: true })
5825
+ Column67({ name: "email", type: "varchar", unique: true })
5849
5826
  ], User.prototype, "email", 2);
5850
5827
  __decorateClass([
5851
- Column68({ name: "mobile_code", type: "varchar", nullable: true })
5828
+ Column67({ name: "mobile_code", type: "varchar", nullable: true })
5852
5829
  ], User.prototype, "mobileCode", 2);
5853
5830
  __decorateClass([
5854
- Column68({ name: "mobile", type: "varchar", nullable: true })
5831
+ Column67({ name: "mobile", type: "varchar", nullable: true })
5855
5832
  ], User.prototype, "mobile", 2);
5856
5833
  __decorateClass([
5857
- Column68({ name: "password", type: "varchar", nullable: true })
5834
+ Column67({ name: "password", type: "varchar", nullable: true })
5858
5835
  ], User.prototype, "password", 2);
5859
5836
  __decorateClass([
5860
- Column68({
5837
+ Column67({
5861
5838
  name: "account_type",
5862
5839
  type: "enum",
5863
5840
  enum: AccountType2,
@@ -5865,7 +5842,7 @@ __decorateClass([
5865
5842
  })
5866
5843
  ], User.prototype, "accountType", 2);
5867
5844
  __decorateClass([
5868
- Column68({
5845
+ Column67({
5869
5846
  name: "account_status",
5870
5847
  type: "enum",
5871
5848
  enum: AccountStatus,
@@ -5873,42 +5850,42 @@ __decorateClass([
5873
5850
  })
5874
5851
  ], User.prototype, "accountStatus", 2);
5875
5852
  __decorateClass([
5876
- Column68({ name: "is_email_verified", type: "boolean", default: false })
5853
+ Column67({ name: "is_email_verified", type: "boolean", default: false })
5877
5854
  ], User.prototype, "isEmailVerified", 2);
5878
5855
  __decorateClass([
5879
- Column68({ name: "is_mobile_verified", type: "boolean", default: false })
5856
+ Column67({ name: "is_mobile_verified", type: "boolean", default: false })
5880
5857
  ], User.prototype, "isMobileVerified", 2);
5881
5858
  __decorateClass([
5882
- Column68({ name: "is_social", type: "boolean", default: false })
5859
+ Column67({ name: "is_social", type: "boolean", default: false })
5883
5860
  ], User.prototype, "isSocial", 2);
5884
5861
  __decorateClass([
5885
- Column68({
5862
+ Column67({
5886
5863
  name: "last_login_at",
5887
5864
  type: "timestamp with time zone",
5888
5865
  nullable: true
5889
5866
  })
5890
5867
  ], User.prototype, "lastLoginAt", 2);
5891
5868
  __decorateClass([
5892
- Column68({ name: "last_login_ip", type: "varchar", nullable: true })
5869
+ Column67({ name: "last_login_ip", type: "varchar", nullable: true })
5893
5870
  ], User.prototype, "lastLoginIp", 2);
5894
5871
  __decorateClass([
5895
- Column68({ name: "reset_token", type: "varchar", nullable: true })
5872
+ Column67({ name: "reset_token", type: "varchar", nullable: true })
5896
5873
  ], User.prototype, "resetToken", 2);
5897
5874
  __decorateClass([
5898
- Column68({
5875
+ Column67({
5899
5876
  name: "reset_token_expire_at",
5900
5877
  type: "timestamp with time zone",
5901
5878
  nullable: true
5902
5879
  })
5903
5880
  ], User.prototype, "resetTokenExpireAt", 2);
5904
5881
  __decorateClass([
5905
- Column68({ name: "set_password_token", type: "varchar", nullable: true })
5882
+ Column67({ name: "set_password_token", type: "varchar", nullable: true })
5906
5883
  ], User.prototype, "setPasswordToken", 2);
5907
5884
  __decorateClass([
5908
5885
  OneToMany24(() => RefreshToken, (token) => token.user)
5909
5886
  ], User.prototype, "refreshTokens", 2);
5910
5887
  __decorateClass([
5911
- Column68({
5888
+ Column67({
5912
5889
  name: "provider",
5913
5890
  type: "enum",
5914
5891
  enum: Provider,
@@ -5917,19 +5894,19 @@ __decorateClass([
5917
5894
  })
5918
5895
  ], User.prototype, "provider", 2);
5919
5896
  __decorateClass([
5920
- Column68({ name: "provider_token", type: "varchar", nullable: true })
5897
+ Column67({ name: "provider_token", type: "varchar", nullable: true })
5921
5898
  ], User.prototype, "providerToken", 2);
5922
5899
  __decorateClass([
5923
- Column68({ name: "linkedin_id", type: "varchar", nullable: true })
5900
+ Column67({ name: "linkedin_id", type: "varchar", nullable: true })
5924
5901
  ], User.prototype, "linkedInId", 2);
5925
5902
  __decorateClass([
5926
- Column68({ name: "google_id", type: "varchar", nullable: true })
5903
+ Column67({ name: "google_id", type: "varchar", nullable: true })
5927
5904
  ], User.prototype, "googleId", 2);
5928
5905
  __decorateClass([
5929
- Column68({ name: "gitlabs_id", type: "varchar", nullable: true })
5906
+ Column67({ name: "gitlabs_id", type: "varchar", nullable: true })
5930
5907
  ], User.prototype, "gitLabsId", 2);
5931
5908
  __decorateClass([
5932
- Column68({ name: "onboarded_by", type: "varchar", nullable: true })
5909
+ Column67({ name: "onboarded_by", type: "varchar", nullable: true })
5933
5910
  ], User.prototype, "onBoardedBy", 2);
5934
5911
  __decorateClass([
5935
5912
  OneToMany24(() => Otp, (otp) => otp.user)
@@ -6161,7 +6138,7 @@ __decorateClass([
6161
6138
  OneToMany24(() => InAppNotification, (inAppNotification) => inAppNotification.user)
6162
6139
  ], User.prototype, "inAppNotifications", 2);
6163
6140
  User = __decorateClass([
6164
- Entity67("users")
6141
+ Entity66("users")
6165
6142
  ], User);
6166
6143
 
6167
6144
  // src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
@@ -10478,9 +10455,13 @@ __decorateClass([
10478
10455
  })
10479
10456
  ], GenerateContractDto.prototype, "contractType", 2);
10480
10457
  __decorateClass([
10481
- IsOptional69(),
10458
+ IsNotEmpty97({ message: "Contract start date is required." }),
10482
10459
  IsString71({ message: "Contract start date must be a string." })
10483
10460
  ], GenerateContractDto.prototype, "contractStartDate", 2);
10461
+ __decorateClass([
10462
+ IsNotEmpty97({ message: "Contract end date is required." }),
10463
+ IsString71({ message: "Contract end date must be a string." })
10464
+ ], GenerateContractDto.prototype, "contractEndDate", 2);
10484
10465
  __decorateClass([
10485
10466
  IsOptional69(),
10486
10467
  IsString71({ message: "Contract invoicing cycle must be a string." })
@@ -12845,11 +12826,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
12845
12826
  };
12846
12827
 
12847
12828
  // src/entities/sequence-generator.entity.ts
12848
- import { Entity as Entity68, Column as Column69 } from "typeorm";
12829
+ import { Entity as Entity67, Column as Column68 } from "typeorm";
12849
12830
  var SequenceGenerator = class extends BaseEntity {
12850
12831
  };
12851
12832
  __decorateClass([
12852
- Column69({
12833
+ Column68({
12853
12834
  name: "module",
12854
12835
  type: "varchar",
12855
12836
  length: 50,
@@ -12858,7 +12839,7 @@ __decorateClass([
12858
12839
  })
12859
12840
  ], SequenceGenerator.prototype, "module", 2);
12860
12841
  __decorateClass([
12861
- Column69({
12842
+ Column68({
12862
12843
  name: "prefix",
12863
12844
  type: "varchar",
12864
12845
  length: 10,
@@ -12867,7 +12848,7 @@ __decorateClass([
12867
12848
  })
12868
12849
  ], SequenceGenerator.prototype, "prefix", 2);
12869
12850
  __decorateClass([
12870
- Column69({
12851
+ Column68({
12871
12852
  name: "last_sequence",
12872
12853
  type: "int",
12873
12854
  nullable: false,
@@ -12875,7 +12856,7 @@ __decorateClass([
12875
12856
  })
12876
12857
  ], SequenceGenerator.prototype, "lastSequence", 2);
12877
12858
  __decorateClass([
12878
- Column69({
12859
+ Column68({
12879
12860
  name: "year",
12880
12861
  type: "int",
12881
12862
  nullable: true,
@@ -12883,11 +12864,11 @@ __decorateClass([
12883
12864
  })
12884
12865
  ], SequenceGenerator.prototype, "year", 2);
12885
12866
  SequenceGenerator = __decorateClass([
12886
- Entity68("sequence_generators")
12867
+ Entity67("sequence_generators")
12887
12868
  ], SequenceGenerator);
12888
12869
 
12889
12870
  // src/entities/question.entity.ts
12890
- import { Entity as Entity69, Column as Column70 } from "typeorm";
12871
+ import { Entity as Entity68, Column as Column69 } from "typeorm";
12891
12872
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
12892
12873
  QuestionFor2["CLIENT"] = "CLIENT";
12893
12874
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -12896,16 +12877,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
12896
12877
  var Question = class extends BaseEntity {
12897
12878
  };
12898
12879
  __decorateClass([
12899
- Column70({ name: "question", type: "varchar" })
12880
+ Column69({ name: "question", type: "varchar" })
12900
12881
  ], Question.prototype, "question", 2);
12901
12882
  __decorateClass([
12902
- Column70({ name: "hint", type: "varchar", nullable: true })
12883
+ Column69({ name: "hint", type: "varchar", nullable: true })
12903
12884
  ], Question.prototype, "hint", 2);
12904
12885
  __decorateClass([
12905
- Column70({ name: "slug", type: "varchar", nullable: true, unique: true })
12886
+ Column69({ name: "slug", type: "varchar", nullable: true, unique: true })
12906
12887
  ], Question.prototype, "slug", 2);
12907
12888
  __decorateClass([
12908
- Column70({
12889
+ Column69({
12909
12890
  name: "question_for",
12910
12891
  type: "enum",
12911
12892
  enum: QuestionFor,
@@ -12913,49 +12894,49 @@ __decorateClass([
12913
12894
  })
12914
12895
  ], Question.prototype, "questionFor", 2);
12915
12896
  __decorateClass([
12916
- Column70({ name: "type", type: "varchar", nullable: true })
12897
+ Column69({ name: "type", type: "varchar", nullable: true })
12917
12898
  ], Question.prototype, "type", 2);
12918
12899
  __decorateClass([
12919
- Column70({ name: "options", type: "jsonb", nullable: true })
12900
+ Column69({ name: "options", type: "jsonb", nullable: true })
12920
12901
  ], Question.prototype, "options", 2);
12921
12902
  __decorateClass([
12922
- Column70({ name: "is_active", type: "boolean", default: false })
12903
+ Column69({ name: "is_active", type: "boolean", default: false })
12923
12904
  ], Question.prototype, "isActive", 2);
12924
12905
  Question = __decorateClass([
12925
- Entity69("questions")
12906
+ Entity68("questions")
12926
12907
  ], Question);
12927
12908
 
12928
12909
  // src/entities/skill.entity.ts
12929
- import { Entity as Entity70, Column as Column71 } from "typeorm";
12910
+ import { Entity as Entity69, Column as Column70 } from "typeorm";
12930
12911
  var Skill = class extends BaseEntity {
12931
12912
  };
12932
12913
  __decorateClass([
12933
- Column71({ name: "name", type: "varchar", nullable: true })
12914
+ Column70({ name: "name", type: "varchar", nullable: true })
12934
12915
  ], Skill.prototype, "name", 2);
12935
12916
  __decorateClass([
12936
- Column71({ name: "slug", type: "varchar", nullable: true, unique: true })
12917
+ Column70({ name: "slug", type: "varchar", nullable: true, unique: true })
12937
12918
  ], Skill.prototype, "slug", 2);
12938
12919
  __decorateClass([
12939
- Column71({ name: "is_active", type: "boolean", default: false })
12920
+ Column70({ name: "is_active", type: "boolean", default: false })
12940
12921
  ], Skill.prototype, "isActive", 2);
12941
12922
  Skill = __decorateClass([
12942
- Entity70("skills")
12923
+ Entity69("skills")
12943
12924
  ], Skill);
12944
12925
 
12945
12926
  // src/entities/skill-catalog.entity.ts
12946
12927
  import {
12947
- Entity as Entity71,
12948
- Column as Column72,
12949
- Index as Index61
12928
+ Entity as Entity70,
12929
+ Column as Column71,
12930
+ Index as Index60
12950
12931
  } from "typeorm";
12951
12932
  var SkillCatalog = class extends BaseEntity {
12952
12933
  };
12953
12934
  __decorateClass([
12954
- Column72({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
12955
- Index61()
12935
+ Column71({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
12936
+ Index60()
12956
12937
  ], SkillCatalog.prototype, "canonicalName", 2);
12957
12938
  __decorateClass([
12958
- Column72({
12939
+ Column71({
12959
12940
  name: "aliases",
12960
12941
  type: "text",
12961
12942
  array: true,
@@ -12963,20 +12944,20 @@ __decorateClass([
12963
12944
  })
12964
12945
  ], SkillCatalog.prototype, "aliases", 2);
12965
12946
  __decorateClass([
12966
- Column72({
12947
+ Column71({
12967
12948
  name: "variations",
12968
12949
  type: "jsonb",
12969
12950
  default: "{}"
12970
12951
  })
12971
12952
  ], SkillCatalog.prototype, "variations", 2);
12972
12953
  __decorateClass([
12973
- Column72({ name: "category", type: "varchar", length: 50, nullable: true })
12954
+ Column71({ name: "category", type: "varchar", length: 50, nullable: true })
12974
12955
  ], SkillCatalog.prototype, "category", 2);
12975
12956
  __decorateClass([
12976
- Column72({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
12957
+ Column71({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
12977
12958
  ], SkillCatalog.prototype, "parentSkill", 2);
12978
12959
  __decorateClass([
12979
- Column72({
12960
+ Column71({
12980
12961
  name: "related_skills",
12981
12962
  type: "text",
12982
12963
  array: true,
@@ -12984,113 +12965,113 @@ __decorateClass([
12984
12965
  })
12985
12966
  ], SkillCatalog.prototype, "relatedSkills", 2);
12986
12967
  __decorateClass([
12987
- Column72({ name: "usage_count", type: "integer", default: 0 }),
12988
- Index61()
12968
+ Column71({ name: "usage_count", type: "integer", default: 0 }),
12969
+ Index60()
12989
12970
  ], SkillCatalog.prototype, "usageCount", 2);
12990
12971
  __decorateClass([
12991
- Column72({ name: "is_verified", type: "boolean", default: false })
12972
+ Column71({ name: "is_verified", type: "boolean", default: false })
12992
12973
  ], SkillCatalog.prototype, "isVerified", 2);
12993
12974
  __decorateClass([
12994
- Column72({ name: "first_seen_date", type: "date" })
12975
+ Column71({ name: "first_seen_date", type: "date" })
12995
12976
  ], SkillCatalog.prototype, "firstSeenDate", 2);
12996
12977
  __decorateClass([
12997
- Column72({ name: "last_updated_date", type: "date" })
12978
+ Column71({ name: "last_updated_date", type: "date" })
12998
12979
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
12999
12980
  __decorateClass([
13000
- Column72({
12981
+ Column71({
13001
12982
  name: "search_vector",
13002
12983
  type: "tsvector",
13003
12984
  nullable: true
13004
12985
  })
13005
12986
  ], SkillCatalog.prototype, "searchVector", 2);
13006
12987
  SkillCatalog = __decorateClass([
13007
- Entity71("skill_catalogs")
12988
+ Entity70("skill_catalogs")
13008
12989
  ], SkillCatalog);
13009
12990
 
13010
12991
  // src/entities/job-role.entity.ts
13011
- import { Entity as Entity72, Column as Column73 } from "typeorm";
12992
+ import { Entity as Entity71, Column as Column72 } from "typeorm";
13012
12993
  var JobRoles = class extends BaseEntity {
13013
12994
  };
13014
12995
  __decorateClass([
13015
- Column73({ name: "slug", type: "varchar", nullable: true, unique: true })
12996
+ Column72({ name: "slug", type: "varchar", nullable: true, unique: true })
13016
12997
  ], JobRoles.prototype, "slug", 2);
13017
12998
  __decorateClass([
13018
- Column73({ name: "name", type: "varchar", nullable: true })
12999
+ Column72({ name: "name", type: "varchar", nullable: true })
13019
13000
  ], JobRoles.prototype, "name", 2);
13020
13001
  __decorateClass([
13021
- Column73({ name: "is_active", type: "boolean", default: true })
13002
+ Column72({ name: "is_active", type: "boolean", default: true })
13022
13003
  ], JobRoles.prototype, "isActive", 2);
13023
13004
  JobRoles = __decorateClass([
13024
- Entity72("job_roles")
13005
+ Entity71("job_roles")
13025
13006
  ], JobRoles);
13026
13007
 
13027
13008
  // src/entities/plan.entity.ts
13028
- import { Entity as Entity74, Column as Column75, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
13009
+ import { Entity as Entity73, Column as Column74, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
13029
13010
 
13030
13011
  // src/entities/feature.entity.ts
13031
- import { Entity as Entity73, Column as Column74, ManyToMany as ManyToMany2 } from "typeorm";
13012
+ import { Entity as Entity72, Column as Column73, ManyToMany as ManyToMany2 } from "typeorm";
13032
13013
  var Feature = class extends BaseEntity {
13033
13014
  };
13034
13015
  __decorateClass([
13035
- Column74({ name: "name", type: "varchar", unique: true })
13016
+ Column73({ name: "name", type: "varchar", unique: true })
13036
13017
  ], Feature.prototype, "name", 2);
13037
13018
  __decorateClass([
13038
13019
  ManyToMany2(() => Plan, (plan) => plan.features)
13039
13020
  ], Feature.prototype, "plans", 2);
13040
13021
  Feature = __decorateClass([
13041
- Entity73("features")
13022
+ Entity72("features")
13042
13023
  ], Feature);
13043
13024
 
13044
13025
  // src/entities/plan.entity.ts
13045
13026
  var Plan = class extends BaseEntity {
13046
13027
  };
13047
13028
  __decorateClass([
13048
- Column75({ name: "name", type: "varchar", unique: true })
13029
+ Column74({ name: "name", type: "varchar", unique: true })
13049
13030
  ], Plan.prototype, "name", 2);
13050
13031
  __decorateClass([
13051
- Column75({ name: "description", type: "varchar", nullable: true })
13032
+ Column74({ name: "description", type: "varchar", nullable: true })
13052
13033
  ], Plan.prototype, "description", 2);
13053
13034
  __decorateClass([
13054
- Column75({ name: "price", type: "decimal", precision: 10, scale: 2 })
13035
+ Column74({ name: "price", type: "decimal", precision: 10, scale: 2 })
13055
13036
  ], Plan.prototype, "price", 2);
13056
13037
  __decorateClass([
13057
- Column75({ name: "billing_period", type: "varchar" })
13038
+ Column74({ name: "billing_period", type: "varchar" })
13058
13039
  ], Plan.prototype, "billingPeriod", 2);
13059
13040
  __decorateClass([
13060
- Column75({ name: "is_current", type: "boolean", default: false })
13041
+ Column74({ name: "is_current", type: "boolean", default: false })
13061
13042
  ], Plan.prototype, "isCurrent", 2);
13062
13043
  __decorateClass([
13063
13044
  ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
13064
13045
  JoinTable()
13065
13046
  ], Plan.prototype, "features", 2);
13066
13047
  Plan = __decorateClass([
13067
- Entity74("plans")
13048
+ Entity73("plans")
13068
13049
  ], Plan);
13069
13050
 
13070
13051
  // src/entities/cms.entity.ts
13071
- import { Entity as Entity75, Column as Column76 } from "typeorm";
13052
+ import { Entity as Entity74, Column as Column75 } from "typeorm";
13072
13053
  var Cms = class extends BaseEntity {
13073
13054
  };
13074
13055
  __decorateClass([
13075
- Column76({ name: "title", type: "varchar", nullable: true })
13056
+ Column75({ name: "title", type: "varchar", nullable: true })
13076
13057
  ], Cms.prototype, "title", 2);
13077
13058
  __decorateClass([
13078
- Column76({ name: "slug", type: "varchar", nullable: true, unique: true })
13059
+ Column75({ name: "slug", type: "varchar", nullable: true, unique: true })
13079
13060
  ], Cms.prototype, "slug", 2);
13080
13061
  __decorateClass([
13081
- Column76({ name: "content", type: "varchar", nullable: true })
13062
+ Column75({ name: "content", type: "varchar", nullable: true })
13082
13063
  ], Cms.prototype, "content", 2);
13083
13064
  __decorateClass([
13084
- Column76({ name: "is_active", type: "boolean", default: true })
13065
+ Column75({ name: "is_active", type: "boolean", default: true })
13085
13066
  ], Cms.prototype, "isActive", 2);
13086
13067
  Cms = __decorateClass([
13087
- Entity75("cms")
13068
+ Entity74("cms")
13088
13069
  ], Cms);
13089
13070
 
13090
13071
  // src/entities/lead.entity.ts
13091
13072
  import {
13092
- Entity as Entity76,
13093
- Column as Column77
13073
+ Entity as Entity75,
13074
+ Column as Column76
13094
13075
  } from "typeorm";
13095
13076
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
13096
13077
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -13100,22 +13081,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
13100
13081
  var Lead = class extends BaseEntity {
13101
13082
  };
13102
13083
  __decorateClass([
13103
- Column77({ name: "name", type: "varchar", nullable: true })
13084
+ Column76({ name: "name", type: "varchar", nullable: true })
13104
13085
  ], Lead.prototype, "name", 2);
13105
13086
  __decorateClass([
13106
- Column77({ name: "mobile_code", type: "varchar", nullable: true })
13087
+ Column76({ name: "mobile_code", type: "varchar", nullable: true })
13107
13088
  ], Lead.prototype, "mobileCode", 2);
13108
13089
  __decorateClass([
13109
- Column77({ name: "mobile", type: "varchar", nullable: true })
13090
+ Column76({ name: "mobile", type: "varchar", nullable: true })
13110
13091
  ], Lead.prototype, "mobile", 2);
13111
13092
  __decorateClass([
13112
- Column77({ name: "email", type: "varchar", nullable: true })
13093
+ Column76({ name: "email", type: "varchar", nullable: true })
13113
13094
  ], Lead.prototype, "email", 2);
13114
13095
  __decorateClass([
13115
- Column77({ name: "description", type: "varchar", nullable: true })
13096
+ Column76({ name: "description", type: "varchar", nullable: true })
13116
13097
  ], Lead.prototype, "description", 2);
13117
13098
  __decorateClass([
13118
- Column77({
13099
+ Column76({
13119
13100
  name: "category",
13120
13101
  type: "enum",
13121
13102
  enum: CategoryEmum,
@@ -13123,7 +13104,7 @@ __decorateClass([
13123
13104
  })
13124
13105
  ], Lead.prototype, "category", 2);
13125
13106
  Lead = __decorateClass([
13126
- Entity76("leads")
13107
+ Entity75("leads")
13127
13108
  ], Lead);
13128
13109
 
13129
13110
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -13364,7 +13345,7 @@ ClientFreelancerRecommendation = __decorateClass([
13364
13345
  ], ClientFreelancerRecommendation);
13365
13346
 
13366
13347
  // src/entities/commission.entity.ts
13367
- import { Entity as Entity77, Column as Column78 } from "typeorm";
13348
+ import { Entity as Entity76, Column as Column77 } from "typeorm";
13368
13349
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
13369
13350
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
13370
13351
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -13373,7 +13354,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
13373
13354
  var Commission = class extends BaseEntity {
13374
13355
  };
13375
13356
  __decorateClass([
13376
- Column78({
13357
+ Column77({
13377
13358
  name: "freelancer_commission_type",
13378
13359
  type: "enum",
13379
13360
  enum: CommissionTypeEnum,
@@ -13381,10 +13362,10 @@ __decorateClass([
13381
13362
  })
13382
13363
  ], Commission.prototype, "freelancerCommissionType", 2);
13383
13364
  __decorateClass([
13384
- Column78({ name: "freelancer_commission", type: "integer", default: 0 })
13365
+ Column77({ name: "freelancer_commission", type: "integer", default: 0 })
13385
13366
  ], Commission.prototype, "freelancerCommission", 2);
13386
13367
  __decorateClass([
13387
- Column78({
13368
+ Column77({
13388
13369
  name: "client_commission_type",
13389
13370
  type: "enum",
13390
13371
  enum: CommissionTypeEnum,
@@ -13392,56 +13373,87 @@ __decorateClass([
13392
13373
  })
13393
13374
  ], Commission.prototype, "clientCommissionType", 2);
13394
13375
  __decorateClass([
13395
- Column78({ name: "client_commission", type: "integer", default: 0 })
13376
+ Column77({ name: "client_commission", type: "integer", default: 0 })
13396
13377
  ], Commission.prototype, "clientCommission", 2);
13397
13378
  Commission = __decorateClass([
13398
- Entity77("commissions")
13379
+ Entity76("commissions")
13399
13380
  ], Commission);
13400
13381
 
13401
13382
  // src/entities/calendly-meeting-log.entity.ts
13402
13383
  import {
13403
- Entity as Entity78,
13404
- Column as Column79,
13405
- Index as Index62
13384
+ Entity as Entity77,
13385
+ Column as Column78,
13386
+ Index as Index61
13406
13387
  } from "typeorm";
13407
13388
  var CalendlyMeetingLog = class extends BaseEntity {
13408
13389
  };
13409
13390
  __decorateClass([
13410
- Column79({ name: "calendly_event_id", type: "varchar", nullable: true }),
13411
- Index62()
13391
+ Column78({ name: "calendly_event_id", type: "varchar", nullable: true }),
13392
+ Index61()
13412
13393
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
13413
13394
  __decorateClass([
13414
- Column79({ name: "calendly_event_type", type: "varchar", nullable: true })
13395
+ Column78({ name: "calendly_event_type", type: "varchar", nullable: true })
13415
13396
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
13416
13397
  __decorateClass([
13417
- Column79({ name: "raw_webhook_data", type: "jsonb", nullable: true })
13398
+ Column78({ name: "raw_webhook_data", type: "jsonb", nullable: true })
13418
13399
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
13419
13400
  CalendlyMeetingLog = __decorateClass([
13420
- Entity78("calendly_meeting_logs")
13401
+ Entity77("calendly_meeting_logs")
13421
13402
  ], CalendlyMeetingLog);
13422
13403
 
13423
13404
  // src/entities/zoom-meeting-log.entity.ts
13424
13405
  import {
13425
- Entity as Entity79,
13426
- Column as Column80,
13427
- Index as Index63
13406
+ Entity as Entity78,
13407
+ Column as Column79,
13408
+ Index as Index62
13428
13409
  } from "typeorm";
13429
13410
  var ZoomMeetingLog = class extends BaseEntity {
13430
13411
  };
13431
13412
  __decorateClass([
13432
- Column80({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
13433
- Index63()
13413
+ Column79({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
13414
+ Index62()
13434
13415
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
13435
13416
  __decorateClass([
13436
- Column80({ name: "zoom_event_type", type: "varchar", nullable: true })
13417
+ Column79({ name: "zoom_event_type", type: "varchar", nullable: true })
13437
13418
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
13438
13419
  __decorateClass([
13439
- Column80({ name: "raw_webhook_data", type: "jsonb", nullable: true })
13420
+ Column79({ name: "raw_webhook_data", type: "jsonb", nullable: true })
13440
13421
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
13441
13422
  ZoomMeetingLog = __decorateClass([
13442
- Entity79("zoom_meeting_logs")
13423
+ Entity78("zoom_meeting_logs")
13443
13424
  ], ZoomMeetingLog);
13444
13425
 
13426
+ // src/entities/docuseal.entity.ts
13427
+ import { Entity as Entity79, Column as Column80, Index as Index63 } from "typeorm";
13428
+ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
13429
+ DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
13430
+ DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
13431
+ DocuSealTypeEnum2["CONTRACT"] = "CONTRACT";
13432
+ return DocuSealTypeEnum2;
13433
+ })(DocuSealTypeEnum || {});
13434
+ var DocuSeal = class extends BaseEntity {
13435
+ };
13436
+ __decorateClass([
13437
+ Column80({ name: "reference_id", type: "integer", nullable: false }),
13438
+ Index63()
13439
+ ], DocuSeal.prototype, "referenceId", 2);
13440
+ __decorateClass([
13441
+ Column80({ name: "submitter_id", type: "integer", nullable: true }),
13442
+ Index63()
13443
+ ], DocuSeal.prototype, "submitterId", 2);
13444
+ __decorateClass([
13445
+ Column80({ name: "submitter_response", type: "jsonb", nullable: true })
13446
+ ], DocuSeal.prototype, "submitterResponse", 2);
13447
+ __decorateClass([
13448
+ Column80({ name: "webhook_response", type: "jsonb", nullable: true })
13449
+ ], DocuSeal.prototype, "webhookResponse", 2);
13450
+ __decorateClass([
13451
+ Column80({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
13452
+ ], DocuSeal.prototype, "type", 2);
13453
+ DocuSeal = __decorateClass([
13454
+ Entity79("docuseal")
13455
+ ], DocuSeal);
13456
+
13445
13457
  // src/entities/stripe-logs.entity.ts
13446
13458
  import { Entity as Entity80, Column as Column81 } from "typeorm";
13447
13459
  var StripeLog = class extends BaseEntity {
@@ -13649,6 +13661,7 @@ export {
13649
13661
  DocuSeal,
13650
13662
  DocuSealMessageDto,
13651
13663
  DocuSealSubmitterDto,
13664
+ DocuSealTypeEnum,
13652
13665
  DocumentType,
13653
13666
  DurationTypeEnum,
13654
13667
  EMAIL_PATTERN,