@experts_hub/shared 1.0.519 → 1.0.520

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
@@ -1713,17 +1713,17 @@ import {
1713
1713
  } from "class-validator";
1714
1714
 
1715
1715
  // src/entities/rating.entity.ts
1716
- import { Entity as Entity61, Column as Column62, ManyToOne as ManyToOne56, JoinColumn as JoinColumn57, Index as Index55 } from "typeorm";
1716
+ import { Entity as Entity62, Column as Column63, ManyToOne as ManyToOne57, JoinColumn as JoinColumn58, Index as Index56 } from "typeorm";
1717
1717
 
1718
1718
  // src/entities/user.entity.ts
1719
1719
  import {
1720
- Entity as Entity60,
1721
- Column as Column61,
1720
+ Entity as Entity61,
1721
+ Column as Column62,
1722
1722
  OneToMany as OneToMany21,
1723
- OneToOne as OneToOne11,
1724
- Index as Index54,
1725
- ManyToOne as ManyToOne55,
1726
- JoinColumn as JoinColumn56
1723
+ OneToOne as OneToOne12,
1724
+ Index as Index55,
1725
+ ManyToOne as ManyToOne56,
1726
+ JoinColumn as JoinColumn57
1727
1727
  } from "typeorm";
1728
1728
 
1729
1729
  // src/entities/base.entity.ts
@@ -2545,11 +2545,11 @@ FreelancerProfile = __decorateClass([
2545
2545
 
2546
2546
  // src/entities/job.entity.ts
2547
2547
  import {
2548
- Entity as Entity30,
2549
- Column as Column31,
2550
- Index as Index24,
2551
- ManyToOne as ManyToOne29,
2552
- JoinColumn as JoinColumn29,
2548
+ Entity as Entity31,
2549
+ Column as Column32,
2550
+ Index as Index25,
2551
+ ManyToOne as ManyToOne30,
2552
+ JoinColumn as JoinColumn30,
2553
2553
  OneToMany as OneToMany12
2554
2554
  } from "typeorm";
2555
2555
 
@@ -3499,16 +3499,16 @@ JobRecommendation = __decorateClass([
3499
3499
  ], JobRecommendation);
3500
3500
 
3501
3501
  // src/entities/contract.entity.ts
3502
- import { Entity as Entity27, Column as Column28, Index as Index21, ManyToOne as ManyToOne26, JoinColumn as JoinColumn26, OneToOne as OneToOne8 } from "typeorm";
3502
+ import { Entity as Entity28, Column as Column29, Index as Index22, ManyToOne as ManyToOne27, JoinColumn as JoinColumn27, OneToOne as OneToOne9 } from "typeorm";
3503
3503
 
3504
3504
  // src/entities/escrow-wallet.entity.ts
3505
- import { Entity as Entity26, Column as Column27, Index as Index20, JoinColumn as JoinColumn25, OneToOne as OneToOne7, OneToMany as OneToMany10, ManyToOne as ManyToOne25 } from "typeorm";
3505
+ import { Entity as Entity27, Column as Column28, Index as Index21, JoinColumn as JoinColumn26, OneToOne as OneToOne8, OneToMany as OneToMany10, ManyToOne as ManyToOne26 } from "typeorm";
3506
3506
 
3507
3507
  // src/entities/escrow-wallet-transaction.entity.ts
3508
- import { Entity as Entity25, Column as Column26, Index as Index19, ManyToOne as ManyToOne24, JoinColumn as JoinColumn24, OneToOne as OneToOne6 } from "typeorm";
3508
+ import { Entity as Entity26, Column as Column27, Index as Index20, ManyToOne as ManyToOne25, JoinColumn as JoinColumn25, OneToOne as OneToOne7 } from "typeorm";
3509
3509
 
3510
3510
  // src/entities/invoice.entity.ts
3511
- import { Entity as Entity24, Column as Column25, Index as Index18, JoinColumn as JoinColumn23, ManyToOne as ManyToOne23, OneToOne as OneToOne5 } from "typeorm";
3511
+ import { Entity as Entity25, Column as Column26, Index as Index19, JoinColumn as JoinColumn24, ManyToOne as ManyToOne24, OneToOne as OneToOne6 } from "typeorm";
3512
3512
 
3513
3513
  // src/entities/timesheet-line.entity.ts
3514
3514
  import { Entity as Entity23, Column as Column24, Index as Index17, JoinColumn as JoinColumn22, OneToMany as OneToMany9, ManyToOne as ManyToOne22 } from "typeorm";
@@ -3716,6 +3716,62 @@ TimesheetLine = __decorateClass([
3716
3716
  Entity23("timesheet_lines")
3717
3717
  ], TimesheetLine);
3718
3718
 
3719
+ // src/entities/hiring.entity.ts
3720
+ import { Entity as Entity24, Column as Column25, Index as Index18, ManyToOne as ManyToOne23, JoinColumn as JoinColumn23, OneToOne as OneToOne5 } from "typeorm";
3721
+ var HiredFreelancerNatureOfWorkEnum = /* @__PURE__ */ ((HiredFreelancerNatureOfWorkEnum2) => {
3722
+ HiredFreelancerNatureOfWorkEnum2["FTE"] = "FTE";
3723
+ HiredFreelancerNatureOfWorkEnum2["FREELANCE"] = "FREELANCE";
3724
+ return HiredFreelancerNatureOfWorkEnum2;
3725
+ })(HiredFreelancerNatureOfWorkEnum || {});
3726
+ var Hiring = class extends BaseEntity {
3727
+ };
3728
+ __decorateClass([
3729
+ Column25({ name: "job_id", type: "integer", nullable: true }),
3730
+ Index18()
3731
+ ], Hiring.prototype, "jobId", 2);
3732
+ __decorateClass([
3733
+ ManyToOne23(() => Job, (job) => job.hirings),
3734
+ JoinColumn23({ name: "job_id" })
3735
+ ], Hiring.prototype, "job", 2);
3736
+ __decorateClass([
3737
+ Column25({ name: "client_id", type: "integer", nullable: true }),
3738
+ Index18()
3739
+ ], Hiring.prototype, "clientId", 2);
3740
+ __decorateClass([
3741
+ ManyToOne23(() => User, (user) => user.clientHirings),
3742
+ JoinColumn23({ name: "client_id" })
3743
+ ], Hiring.prototype, "client", 2);
3744
+ __decorateClass([
3745
+ Column25({ name: "freelancer_id", type: "integer", nullable: true }),
3746
+ Index18()
3747
+ ], Hiring.prototype, "freelancerId", 2);
3748
+ __decorateClass([
3749
+ ManyToOne23(() => User, (user) => user.freelancerHirings),
3750
+ JoinColumn23({ name: "freelancer_id" })
3751
+ ], Hiring.prototype, "freelancer", 2);
3752
+ __decorateClass([
3753
+ Column25({ name: "invoice_id", type: "integer", nullable: true }),
3754
+ Index18()
3755
+ ], Hiring.prototype, "invoiceId", 2);
3756
+ __decorateClass([
3757
+ OneToOne5(() => Invoice, (invoice) => invoice.hiring),
3758
+ JoinColumn23({ name: "invoice_id" })
3759
+ ], Hiring.prototype, "invoice", 2);
3760
+ __decorateClass([
3761
+ Column25({
3762
+ name: "freelancer_nature_of_work",
3763
+ type: "enum",
3764
+ enum: HiredFreelancerNatureOfWorkEnum,
3765
+ nullable: true
3766
+ })
3767
+ ], Hiring.prototype, "freelancerNatureOfWork", 2);
3768
+ __decorateClass([
3769
+ Column25({ name: "is_invoice_genrated", type: "boolean", default: false })
3770
+ ], Hiring.prototype, "isInvoiceGenrated", 2);
3771
+ Hiring = __decorateClass([
3772
+ Entity24("hirings")
3773
+ ], Hiring);
3774
+
3719
3775
  // src/entities/invoice.entity.ts
3720
3776
  var InvoiceTypeEnum = /* @__PURE__ */ ((InvoiceTypeEnum2) => {
3721
3777
  InvoiceTypeEnum2["WEEKLY"] = "WEEKLY";
@@ -3740,97 +3796,100 @@ var InvoicePaymentStatusEnum = /* @__PURE__ */ ((InvoicePaymentStatusEnum2) => {
3740
3796
  var Invoice = class extends BaseEntity {
3741
3797
  };
3742
3798
  __decorateClass([
3743
- Column25({ name: "timesheet_line_id", type: "integer", nullable: true }),
3744
- Index18()
3799
+ Column26({ name: "timesheet_line_id", type: "integer", nullable: true }),
3800
+ Index19()
3745
3801
  ], Invoice.prototype, "timesheetLineId", 2);
3746
3802
  __decorateClass([
3747
- ManyToOne23(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
3748
- JoinColumn23({ name: "timesheet_line_id" })
3803
+ ManyToOne24(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
3804
+ JoinColumn24({ name: "timesheet_line_id" })
3749
3805
  ], Invoice.prototype, "timesheetLine", 2);
3750
3806
  __decorateClass([
3751
- Column25({ name: "job_id", type: "integer", nullable: true }),
3752
- Index18()
3807
+ Column26({ name: "job_id", type: "integer", nullable: true }),
3808
+ Index19()
3753
3809
  ], Invoice.prototype, "jobId", 2);
3754
3810
  __decorateClass([
3755
- ManyToOne23(() => Job, (job) => job.invoice),
3756
- JoinColumn23({ name: "job_id" })
3811
+ ManyToOne24(() => Job, (job) => job.invoice),
3812
+ JoinColumn24({ name: "job_id" })
3757
3813
  ], Invoice.prototype, "job", 2);
3758
3814
  __decorateClass([
3759
- Column25({ name: "client_id", type: "integer", nullable: true }),
3760
- Index18()
3815
+ Column26({ name: "client_id", type: "integer", nullable: true }),
3816
+ Index19()
3761
3817
  ], Invoice.prototype, "clientId", 2);
3762
3818
  __decorateClass([
3763
- ManyToOne23(() => User, (user) => user.clientInvoice),
3764
- JoinColumn23({ name: "client_id" })
3819
+ ManyToOne24(() => User, (user) => user.clientInvoice),
3820
+ JoinColumn24({ name: "client_id" })
3765
3821
  ], Invoice.prototype, "client", 2);
3766
3822
  __decorateClass([
3767
- Column25({ name: "freelancer_id", type: "integer", nullable: true }),
3768
- Index18()
3823
+ Column26({ name: "freelancer_id", type: "integer", nullable: true }),
3824
+ Index19()
3769
3825
  ], Invoice.prototype, "freelancerId", 2);
3770
3826
  __decorateClass([
3771
- ManyToOne23(() => User, (user) => user.freelancerInvoice),
3772
- JoinColumn23({ name: "freelancer_id" })
3827
+ ManyToOne24(() => User, (user) => user.freelancerInvoice),
3828
+ JoinColumn24({ name: "freelancer_id" })
3773
3829
  ], Invoice.prototype, "freelancer", 2);
3774
3830
  __decorateClass([
3775
- Column25({ name: "invoice_unique_id", type: "varchar", nullable: true })
3831
+ Column26({ name: "invoice_unique_id", type: "varchar", nullable: true })
3776
3832
  ], Invoice.prototype, "invoiceUniqueId", 2);
3777
3833
  __decorateClass([
3778
- Column25({
3834
+ Column26({
3779
3835
  name: "issued_at",
3780
3836
  type: "date",
3781
3837
  nullable: true
3782
3838
  })
3783
3839
  ], Invoice.prototype, "issuedAt", 2);
3784
3840
  __decorateClass([
3785
- Column25({
3841
+ Column26({
3786
3842
  name: "due_at",
3787
3843
  type: "date",
3788
3844
  nullable: true
3789
3845
  })
3790
3846
  ], Invoice.prototype, "dueAt", 2);
3791
3847
  __decorateClass([
3792
- Column25({
3848
+ Column26({
3793
3849
  name: "billing_cycle_from",
3794
3850
  type: "date",
3795
3851
  nullable: true
3796
3852
  })
3797
3853
  ], Invoice.prototype, "billingCycleFrom", 2);
3798
3854
  __decorateClass([
3799
- Column25({
3855
+ Column26({
3800
3856
  name: "billing_cycle_to",
3801
3857
  type: "date",
3802
3858
  nullable: true
3803
3859
  })
3804
3860
  ], Invoice.prototype, "billingCycleTo", 2);
3805
3861
  __decorateClass([
3806
- Column25({ name: "billing_hours", type: "varchar", nullable: true })
3862
+ Column26({ name: "billing_hours", type: "varchar", nullable: true })
3807
3863
  ], Invoice.prototype, "billingHours", 2);
3808
3864
  __decorateClass([
3809
- Column25({ name: "hourly_rate", type: "varchar", nullable: true })
3865
+ Column26({ name: "hourly_rate", type: "varchar", nullable: true })
3810
3866
  ], Invoice.prototype, "hourlyRate", 2);
3811
3867
  __decorateClass([
3812
- Column25({ name: "billing_amount", type: "varchar", nullable: true })
3868
+ Column26({ name: "billing_amount", type: "varchar", nullable: true })
3813
3869
  ], Invoice.prototype, "billingAmount", 2);
3814
3870
  __decorateClass([
3815
- Column25({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
3871
+ Column26({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
3816
3872
  ], Invoice.prototype, "invoiceType", 2);
3817
3873
  __decorateClass([
3818
- Column25({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
3874
+ Column26({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
3819
3875
  ], Invoice.prototype, "status", 2);
3820
3876
  __decorateClass([
3821
- Column25({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
3877
+ Column26({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
3822
3878
  ], Invoice.prototype, "paymentStatus", 2);
3823
3879
  __decorateClass([
3824
- Column25({ name: "client_invoice_url", type: "varchar", nullable: true })
3880
+ Column26({ name: "client_invoice_url", type: "varchar", nullable: true })
3825
3881
  ], Invoice.prototype, "clientInvoiceUrl", 2);
3826
3882
  __decorateClass([
3827
- Column25({ name: "freelancer_invoice_url", type: "varchar", nullable: true })
3883
+ Column26({ name: "freelancer_invoice_url", type: "varchar", nullable: true })
3828
3884
  ], Invoice.prototype, "freelancerInvoiceUrl", 2);
3829
3885
  __decorateClass([
3830
- OneToOne5(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.invoice)
3886
+ OneToOne6(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.invoice)
3831
3887
  ], Invoice.prototype, "escrowWalletTransaction", 2);
3888
+ __decorateClass([
3889
+ OneToOne6(() => Hiring, (hiring) => hiring.invoice)
3890
+ ], Invoice.prototype, "hiring", 2);
3832
3891
  Invoice = __decorateClass([
3833
- Entity24("invoices")
3892
+ Entity25("invoices")
3834
3893
  ], Invoice);
3835
3894
 
3836
3895
  // src/entities/escrow-wallet-transaction.entity.ts
@@ -3847,89 +3906,89 @@ var EscrowWalletTransactionForEnum = /* @__PURE__ */ ((EscrowWalletTransactionFo
3847
3906
  var EscrowWalletTransaction = class extends BaseEntity {
3848
3907
  };
3849
3908
  __decorateClass([
3850
- Column26({ name: "escrow_wallet_id", type: "integer", nullable: true }),
3851
- Index19()
3909
+ Column27({ name: "escrow_wallet_id", type: "integer", nullable: true }),
3910
+ Index20()
3852
3911
  ], EscrowWalletTransaction.prototype, "escrowWalletId", 2);
3853
3912
  __decorateClass([
3854
- ManyToOne24(() => EscrowWallet, (escrowWallet) => escrowWallet.escrowWalletTransactions),
3855
- JoinColumn24({ name: "wallet_id" })
3913
+ ManyToOne25(() => EscrowWallet, (escrowWallet) => escrowWallet.escrowWalletTransactions),
3914
+ JoinColumn25({ name: "wallet_id" })
3856
3915
  ], EscrowWalletTransaction.prototype, "escrowWallet", 2);
3857
3916
  __decorateClass([
3858
- Column26({ name: "invoice_id", type: "integer", nullable: true }),
3859
- Index19()
3917
+ Column27({ name: "invoice_id", type: "integer", nullable: true }),
3918
+ Index20()
3860
3919
  ], EscrowWalletTransaction.prototype, "invoiceId", 2);
3861
3920
  __decorateClass([
3862
- OneToOne6(() => Invoice, (invoice) => invoice.escrowWalletTransaction),
3863
- JoinColumn24({ name: "invoice_id" })
3921
+ OneToOne7(() => Invoice, (invoice) => invoice.escrowWalletTransaction),
3922
+ JoinColumn25({ name: "invoice_id" })
3864
3923
  ], EscrowWalletTransaction.prototype, "invoice", 2);
3865
3924
  __decorateClass([
3866
- Column26({ name: "amount", type: "bigint", nullable: true })
3925
+ Column27({ name: "amount", type: "bigint", nullable: true })
3867
3926
  ], EscrowWalletTransaction.prototype, "amount", 2);
3868
3927
  __decorateClass([
3869
- Column26({ name: "escrow_type", type: "enum", enum: EscrowWalletTransactionTypeEnum })
3928
+ Column27({ name: "escrow_type", type: "enum", enum: EscrowWalletTransactionTypeEnum })
3870
3929
  ], EscrowWalletTransaction.prototype, "escrowType", 2);
3871
3930
  __decorateClass([
3872
- Column26({ name: "description", type: "text", nullable: true })
3931
+ Column27({ name: "description", type: "text", nullable: true })
3873
3932
  ], EscrowWalletTransaction.prototype, "description", 2);
3874
3933
  __decorateClass([
3875
- Column26({ name: "completed_at", type: "timestamptz", nullable: true })
3934
+ Column27({ name: "completed_at", type: "timestamptz", nullable: true })
3876
3935
  ], EscrowWalletTransaction.prototype, "completedAt", 2);
3877
3936
  __decorateClass([
3878
- Column26({ name: "escrow_transaction_for", type: "enum", enum: EscrowWalletTransactionForEnum })
3937
+ Column27({ name: "escrow_transaction_for", type: "enum", enum: EscrowWalletTransactionForEnum })
3879
3938
  ], EscrowWalletTransaction.prototype, "escrowTransactionFor", 2);
3880
3939
  __decorateClass([
3881
- Column26({ name: "meta_data", type: "varchar", nullable: true })
3940
+ Column27({ name: "meta_data", type: "varchar", nullable: true })
3882
3941
  ], EscrowWalletTransaction.prototype, "metaData", 2);
3883
3942
  EscrowWalletTransaction = __decorateClass([
3884
- Entity25("escrow_wallet_transactions")
3943
+ Entity26("escrow_wallet_transactions")
3885
3944
  ], EscrowWalletTransaction);
3886
3945
 
3887
3946
  // src/entities/escrow-wallet.entity.ts
3888
3947
  var EscrowWallet = class extends BaseEntity {
3889
3948
  };
3890
3949
  __decorateClass([
3891
- Column27({ name: "job_id", type: "integer", nullable: true }),
3892
- Index20()
3950
+ Column28({ name: "job_id", type: "integer", nullable: true }),
3951
+ Index21()
3893
3952
  ], EscrowWallet.prototype, "jobId", 2);
3894
3953
  __decorateClass([
3895
- ManyToOne25(() => Job, (job) => job.escrowWallets),
3896
- JoinColumn25({ name: "job_id" })
3954
+ ManyToOne26(() => Job, (job) => job.escrowWallets),
3955
+ JoinColumn26({ name: "job_id" })
3897
3956
  ], EscrowWallet.prototype, "job", 2);
3898
3957
  __decorateClass([
3899
- Column27({ name: "client_id", type: "integer", nullable: true }),
3900
- Index20()
3958
+ Column28({ name: "client_id", type: "integer", nullable: true }),
3959
+ Index21()
3901
3960
  ], EscrowWallet.prototype, "clientId", 2);
3902
3961
  __decorateClass([
3903
- ManyToOne25(() => User, (user) => user.clientEscrowWallets),
3904
- JoinColumn25({ name: "client_id" })
3962
+ ManyToOne26(() => User, (user) => user.clientEscrowWallets),
3963
+ JoinColumn26({ name: "client_id" })
3905
3964
  ], EscrowWallet.prototype, "client", 2);
3906
3965
  __decorateClass([
3907
- Column27({ name: "freelancer_id", type: "integer", nullable: true }),
3908
- Index20()
3966
+ Column28({ name: "freelancer_id", type: "integer", nullable: true }),
3967
+ Index21()
3909
3968
  ], EscrowWallet.prototype, "freelancerId", 2);
3910
3969
  __decorateClass([
3911
- ManyToOne25(() => User, (user) => user.freelancerEscrowWallets),
3912
- JoinColumn25({ name: "freelancer_id" })
3970
+ ManyToOne26(() => User, (user) => user.freelancerEscrowWallets),
3971
+ JoinColumn26({ name: "freelancer_id" })
3913
3972
  ], EscrowWallet.prototype, "freelancer", 2);
3914
3973
  __decorateClass([
3915
- Column27({ name: "contract_id", type: "integer", nullable: true }),
3916
- Index20()
3974
+ Column28({ name: "contract_id", type: "integer", nullable: true }),
3975
+ Index21()
3917
3976
  ], EscrowWallet.prototype, "contractId", 2);
3918
3977
  __decorateClass([
3919
- OneToOne7(() => Contract, (contract) => contract.escrowWallet),
3920
- JoinColumn25({ name: "contract_id" })
3978
+ OneToOne8(() => Contract, (contract) => contract.escrowWallet),
3979
+ JoinColumn26({ name: "contract_id" })
3921
3980
  ], EscrowWallet.prototype, "contract", 2);
3922
3981
  __decorateClass([
3923
- Column27({ name: "wallet_balance", type: "varchar", default: "0" })
3982
+ Column28({ name: "wallet_balance", type: "varchar", default: "0" })
3924
3983
  ], EscrowWallet.prototype, "escrowBalance", 2);
3925
3984
  __decorateClass([
3926
- Column27({ name: "metadata", type: "jsonb", nullable: true })
3985
+ Column28({ name: "metadata", type: "jsonb", nullable: true })
3927
3986
  ], EscrowWallet.prototype, "metadata", 2);
3928
3987
  __decorateClass([
3929
3988
  OneToMany10(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.escrowWallet)
3930
3989
  ], EscrowWallet.prototype, "escrowWalletTransactions", 2);
3931
3990
  EscrowWallet = __decorateClass([
3932
- Entity26("escrow_wallets")
3991
+ Entity27("escrow_wallets")
3933
3992
  ], EscrowWallet);
3934
3993
 
3935
3994
  // src/entities/contract.entity.ts
@@ -3954,37 +4013,37 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
3954
4013
  var Contract = class extends BaseEntity {
3955
4014
  };
3956
4015
  __decorateClass([
3957
- Column28({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
4016
+ Column29({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3958
4017
  ], Contract.prototype, "contractUniqueId", 2);
3959
4018
  __decorateClass([
3960
- Column28({ name: "job_id", type: "integer", nullable: true }),
3961
- Index21()
4019
+ Column29({ name: "job_id", type: "integer", nullable: true }),
4020
+ Index22()
3962
4021
  ], Contract.prototype, "jobId", 2);
3963
4022
  __decorateClass([
3964
- ManyToOne26(() => Job, (job) => job.contracts),
3965
- JoinColumn26({ name: "job_id" })
4023
+ ManyToOne27(() => Job, (job) => job.contracts),
4024
+ JoinColumn27({ name: "job_id" })
3966
4025
  ], Contract.prototype, "job", 2);
3967
4026
  __decorateClass([
3968
- Column28({ name: "client_id", type: "integer", nullable: true }),
3969
- Index21()
4027
+ Column29({ name: "client_id", type: "integer", nullable: true }),
4028
+ Index22()
3970
4029
  ], Contract.prototype, "clientId", 2);
3971
4030
  __decorateClass([
3972
- ManyToOne26(() => User, (user) => user.clientContracts),
3973
- JoinColumn26({ name: "client_id" })
4031
+ ManyToOne27(() => User, (user) => user.clientContracts),
4032
+ JoinColumn27({ name: "client_id" })
3974
4033
  ], Contract.prototype, "client", 2);
3975
4034
  __decorateClass([
3976
- Column28({ name: "freelancer_id", type: "integer", nullable: true }),
3977
- Index21()
4035
+ Column29({ name: "freelancer_id", type: "integer", nullable: true }),
4036
+ Index22()
3978
4037
  ], Contract.prototype, "freelancerId", 2);
3979
4038
  __decorateClass([
3980
- ManyToOne26(() => User, (user) => user.freelancerContracts),
3981
- JoinColumn26({ name: "freelancer_id" })
4039
+ ManyToOne27(() => User, (user) => user.freelancerContracts),
4040
+ JoinColumn27({ name: "freelancer_id" })
3982
4041
  ], Contract.prototype, "freelancer", 2);
3983
4042
  __decorateClass([
3984
- Column28({ name: "duration", type: "integer", nullable: true })
4043
+ Column29({ name: "duration", type: "integer", nullable: true })
3985
4044
  ], Contract.prototype, "duration", 2);
3986
4045
  __decorateClass([
3987
- Column28({
4046
+ Column29({
3988
4047
  name: "status",
3989
4048
  type: "enum",
3990
4049
  enum: ContractStatusEnum,
@@ -3992,7 +4051,7 @@ __decorateClass([
3992
4051
  })
3993
4052
  ], Contract.prototype, "status", 2);
3994
4053
  __decorateClass([
3995
- Column28({
4054
+ Column29({
3996
4055
  name: "type",
3997
4056
  type: "enum",
3998
4057
  enum: ContractTypeEnum,
@@ -4000,10 +4059,10 @@ __decorateClass([
4000
4059
  })
4001
4060
  ], Contract.prototype, "type", 2);
4002
4061
  __decorateClass([
4003
- Column28({ name: "invoicing_cycle", type: "varchar", nullable: true })
4062
+ Column29({ name: "invoicing_cycle", type: "varchar", nullable: true })
4004
4063
  ], Contract.prototype, "invoicingCycle", 2);
4005
4064
  __decorateClass([
4006
- Column28({
4065
+ Column29({
4007
4066
  name: "escrow_deposite_amount",
4008
4067
  type: "decimal",
4009
4068
  precision: 10,
@@ -4012,80 +4071,80 @@ __decorateClass([
4012
4071
  })
4013
4072
  ], Contract.prototype, "escrowDepositeAmount", 2);
4014
4073
  __decorateClass([
4015
- Column28({
4074
+ Column29({
4016
4075
  name: "start_date",
4017
4076
  type: "timestamp with time zone",
4018
4077
  nullable: true
4019
4078
  })
4020
4079
  ], Contract.prototype, "startDate", 2);
4021
4080
  __decorateClass([
4022
- Column28({
4081
+ Column29({
4023
4082
  name: "end_date",
4024
4083
  type: "timestamp with time zone",
4025
4084
  nullable: true
4026
4085
  })
4027
4086
  ], Contract.prototype, "endDate", 2);
4028
4087
  __decorateClass([
4029
- Column28({ name: "original_document_url", type: "varchar", nullable: true })
4088
+ Column29({ name: "original_document_url", type: "varchar", nullable: true })
4030
4089
  ], Contract.prototype, "originalDocumentUrl", 2);
4031
4090
  __decorateClass([
4032
- Column28({ name: "contract_document_url", type: "varchar", nullable: true })
4091
+ Column29({ name: "contract_document_url", type: "varchar", nullable: true })
4033
4092
  ], Contract.prototype, "contractDocumentUrl", 2);
4034
4093
  __decorateClass([
4035
- Column28({
4094
+ Column29({
4036
4095
  name: "client_signed_at",
4037
4096
  type: "timestamp with time zone",
4038
4097
  nullable: true
4039
4098
  })
4040
4099
  ], Contract.prototype, "clientSignedAt", 2);
4041
4100
  __decorateClass([
4042
- Column28({ name: "freelancer_viewed", type: "boolean", default: false })
4101
+ Column29({ name: "freelancer_viewed", type: "boolean", default: false })
4043
4102
  ], Contract.prototype, "freelancerViewed", 2);
4044
4103
  __decorateClass([
4045
- Column28({
4104
+ Column29({
4046
4105
  name: "freelancer_viewed_at",
4047
4106
  type: "timestamp with time zone",
4048
4107
  nullable: true
4049
4108
  })
4050
4109
  ], Contract.prototype, "freelancerViewedAt", 2);
4051
4110
  __decorateClass([
4052
- Column28({
4111
+ Column29({
4053
4112
  name: "freelancer_signed_at",
4054
4113
  type: "timestamp with time zone",
4055
4114
  nullable: true
4056
4115
  })
4057
4116
  ], Contract.prototype, "freelancerSignedAt", 2);
4058
4117
  __decorateClass([
4059
- Column28({
4118
+ Column29({
4060
4119
  name: "rejectd_at",
4061
4120
  type: "timestamp with time zone",
4062
4121
  nullable: true
4063
4122
  })
4064
4123
  ], Contract.prototype, "rejectedAt", 2);
4065
4124
  __decorateClass([
4066
- Column28({ name: "reject_reason", type: "varchar", nullable: true })
4125
+ Column29({ name: "reject_reason", type: "varchar", nullable: true })
4067
4126
  ], Contract.prototype, "rejectReason", 2);
4068
4127
  __decorateClass([
4069
- Column28({ name: "resend_count", type: "integer", default: 0 })
4128
+ Column29({ name: "resend_count", type: "integer", default: 0 })
4070
4129
  ], Contract.prototype, "resendCount", 2);
4071
4130
  __decorateClass([
4072
- Column28({ name: "is_work_contract_sent", type: "boolean", default: false })
4131
+ Column29({ name: "is_work_contract_sent", type: "boolean", default: false })
4073
4132
  ], Contract.prototype, "isWorkContractSent", 2);
4074
4133
  __decorateClass([
4075
- Column28({ name: "is_escrow_deposited", type: "boolean", default: false })
4134
+ Column29({ name: "is_escrow_deposited", type: "boolean", default: false })
4076
4135
  ], Contract.prototype, "isEscrowDeposited", 2);
4077
4136
  __decorateClass([
4078
- Column28({ name: "signature_positions", type: "jsonb", nullable: true })
4137
+ Column29({ name: "signature_positions", type: "jsonb", nullable: true })
4079
4138
  ], Contract.prototype, "signaturePositions", 2);
4080
4139
  __decorateClass([
4081
- OneToOne8(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
4140
+ OneToOne9(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
4082
4141
  ], Contract.prototype, "escrowWallet", 2);
4083
4142
  Contract = __decorateClass([
4084
- Entity27("contracts")
4143
+ Entity28("contracts")
4085
4144
  ], Contract);
4086
4145
 
4087
4146
  // src/entities/timesheets.entity.ts
4088
- import { Entity as Entity28, Column as Column29, Index as Index22, JoinColumn as JoinColumn27, ManyToOne as ManyToOne27 } from "typeorm";
4147
+ import { Entity as Entity29, Column as Column30, Index as Index23, JoinColumn as JoinColumn28, ManyToOne as ManyToOne28 } from "typeorm";
4089
4148
  var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
4090
4149
  TimesheetStatusEnum2["DRAFT"] = "DRAFT";
4091
4150
  TimesheetStatusEnum2["SEND"] = "SEND";
@@ -4098,142 +4157,142 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
4098
4157
  var Timesheet = class extends BaseEntity {
4099
4158
  };
4100
4159
  __decorateClass([
4101
- Column29({ name: "job_id", type: "integer", nullable: true }),
4102
- Index22()
4160
+ Column30({ name: "job_id", type: "integer", nullable: true }),
4161
+ Index23()
4103
4162
  ], Timesheet.prototype, "jobId", 2);
4104
4163
  __decorateClass([
4105
- ManyToOne27(() => Job, (job) => job.timesheets),
4106
- JoinColumn27({ name: "job_id" })
4164
+ ManyToOne28(() => Job, (job) => job.timesheets),
4165
+ JoinColumn28({ name: "job_id" })
4107
4166
  ], Timesheet.prototype, "job", 2);
4108
4167
  __decorateClass([
4109
- Column29({ name: "client_id", type: "integer", nullable: true }),
4110
- Index22()
4168
+ Column30({ name: "client_id", type: "integer", nullable: true }),
4169
+ Index23()
4111
4170
  ], Timesheet.prototype, "clientId", 2);
4112
4171
  __decorateClass([
4113
- ManyToOne27(() => User, (user) => user.clientTimesheets),
4114
- JoinColumn27({ name: "client_id" })
4172
+ ManyToOne28(() => User, (user) => user.clientTimesheets),
4173
+ JoinColumn28({ name: "client_id" })
4115
4174
  ], Timesheet.prototype, "client", 2);
4116
4175
  __decorateClass([
4117
- Column29({ name: "freelancer_id", type: "integer", nullable: true }),
4118
- Index22()
4176
+ Column30({ name: "freelancer_id", type: "integer", nullable: true }),
4177
+ Index23()
4119
4178
  ], Timesheet.prototype, "freelancerId", 2);
4120
4179
  __decorateClass([
4121
- ManyToOne27(() => User, (user) => user.freelancerTimesheets),
4122
- JoinColumn27({ name: "freelancer_id" })
4180
+ ManyToOne28(() => User, (user) => user.freelancerTimesheets),
4181
+ JoinColumn28({ name: "freelancer_id" })
4123
4182
  ], Timesheet.prototype, "freelancer", 2);
4124
4183
  __decorateClass([
4125
- Column29({
4184
+ Column30({
4126
4185
  name: "start_date",
4127
4186
  type: "date",
4128
4187
  nullable: true
4129
4188
  })
4130
4189
  ], Timesheet.prototype, "startDate", 2);
4131
4190
  __decorateClass([
4132
- Column29({
4191
+ Column30({
4133
4192
  name: "end_date",
4134
4193
  type: "date",
4135
4194
  nullable: true
4136
4195
  })
4137
4196
  ], Timesheet.prototype, "endDate", 2);
4138
4197
  __decorateClass([
4139
- Column29({ name: "start_time", type: "varchar", nullable: true })
4198
+ Column30({ name: "start_time", type: "varchar", nullable: true })
4140
4199
  ], Timesheet.prototype, "startTime", 2);
4141
4200
  __decorateClass([
4142
- Column29({ name: "end_time", type: "varchar", nullable: true })
4201
+ Column30({ name: "end_time", type: "varchar", nullable: true })
4143
4202
  ], Timesheet.prototype, "endTime", 2);
4144
4203
  __decorateClass([
4145
- Column29({ name: "worked_hours", type: "varchar", nullable: true })
4204
+ Column30({ name: "worked_hours", type: "varchar", nullable: true })
4146
4205
  ], Timesheet.prototype, "workedHours", 2);
4147
4206
  __decorateClass([
4148
- Column29({ name: "task_id", type: "integer", nullable: true })
4207
+ Column30({ name: "task_id", type: "integer", nullable: true })
4149
4208
  ], Timesheet.prototype, "taskId", 2);
4150
4209
  __decorateClass([
4151
- Column29({ name: "task_name", type: "varchar", nullable: true })
4210
+ Column30({ name: "task_name", type: "varchar", nullable: true })
4152
4211
  ], Timesheet.prototype, "taskName", 2);
4153
4212
  __decorateClass([
4154
- Column29({ name: "description", type: "varchar", nullable: true })
4213
+ Column30({ name: "description", type: "varchar", nullable: true })
4155
4214
  ], Timesheet.prototype, "description", 2);
4156
4215
  __decorateClass([
4157
- Column29({ name: "week_start_date", type: "date", nullable: true })
4216
+ Column30({ name: "week_start_date", type: "date", nullable: true })
4158
4217
  ], Timesheet.prototype, "weekStartDate", 2);
4159
4218
  __decorateClass([
4160
- Column29({ name: "week_end_date", type: "date", nullable: true })
4219
+ Column30({ name: "week_end_date", type: "date", nullable: true })
4161
4220
  ], Timesheet.prototype, "weekEndDate", 2);
4162
4221
  __decorateClass([
4163
- Column29({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4222
+ Column30({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4164
4223
  ], Timesheet.prototype, "rejectedAt", 2);
4165
4224
  __decorateClass([
4166
- Column29({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4225
+ Column30({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4167
4226
  ], Timesheet.prototype, "submittedAt", 2);
4168
4227
  __decorateClass([
4169
- Column29({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4228
+ Column30({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4170
4229
  ], Timesheet.prototype, "resubmittedAt", 2);
4171
4230
  __decorateClass([
4172
- Column29({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4231
+ Column30({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4173
4232
  ], Timesheet.prototype, "approvedAt", 2);
4174
4233
  __decorateClass([
4175
- Column29({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4234
+ Column30({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4176
4235
  ], Timesheet.prototype, "status", 2);
4177
4236
  __decorateClass([
4178
- Column29({ name: "client_send_back_reason", type: "varchar", nullable: true })
4237
+ Column30({ name: "client_send_back_reason", type: "varchar", nullable: true })
4179
4238
  ], Timesheet.prototype, "clientSendBackReason", 2);
4180
4239
  Timesheet = __decorateClass([
4181
- Entity28("timesheets")
4240
+ Entity29("timesheets")
4182
4241
  ], Timesheet);
4183
4242
 
4184
4243
  // src/entities/job-location.entity.ts
4185
4244
  import {
4186
- Entity as Entity29,
4187
- Column as Column30,
4188
- ManyToOne as ManyToOne28,
4189
- JoinColumn as JoinColumn28,
4190
- Index as Index23
4245
+ Entity as Entity30,
4246
+ Column as Column31,
4247
+ ManyToOne as ManyToOne29,
4248
+ JoinColumn as JoinColumn29,
4249
+ Index as Index24
4191
4250
  } from "typeorm";
4192
4251
  var JobLocation = class extends BaseEntity {
4193
4252
  };
4194
4253
  __decorateClass([
4195
- Column30({ name: "job_id", type: "integer", nullable: false }),
4196
- Index23()
4254
+ Column31({ name: "job_id", type: "integer", nullable: false }),
4255
+ Index24()
4197
4256
  ], JobLocation.prototype, "jobId", 2);
4198
4257
  __decorateClass([
4199
- ManyToOne28(() => Job, (job) => job.jobLocations),
4200
- JoinColumn28({ name: "job_id" })
4258
+ ManyToOne29(() => Job, (job) => job.jobLocations),
4259
+ JoinColumn29({ name: "job_id" })
4201
4260
  ], JobLocation.prototype, "job", 2);
4202
4261
  __decorateClass([
4203
- Column30({ name: "country_id", type: "int", nullable: false })
4262
+ Column31({ name: "country_id", type: "int", nullable: false })
4204
4263
  ], JobLocation.prototype, "countryId", 2);
4205
4264
  __decorateClass([
4206
- Column30({ name: "country_name", type: "varchar", nullable: true })
4265
+ Column31({ name: "country_name", type: "varchar", nullable: true })
4207
4266
  ], JobLocation.prototype, "countryName", 2);
4208
4267
  __decorateClass([
4209
- ManyToOne28(() => Country),
4210
- JoinColumn28({ name: "country_id" })
4268
+ ManyToOne29(() => Country),
4269
+ JoinColumn29({ name: "country_id" })
4211
4270
  ], JobLocation.prototype, "country", 2);
4212
4271
  __decorateClass([
4213
- Column30({ name: "state_id", type: "int", nullable: false })
4272
+ Column31({ name: "state_id", type: "int", nullable: false })
4214
4273
  ], JobLocation.prototype, "stateId", 2);
4215
4274
  __decorateClass([
4216
- Column30({ name: "state_name", type: "varchar", nullable: true })
4275
+ Column31({ name: "state_name", type: "varchar", nullable: true })
4217
4276
  ], JobLocation.prototype, "stateName", 2);
4218
4277
  __decorateClass([
4219
- ManyToOne28(() => State),
4220
- JoinColumn28({ name: "state_id" })
4278
+ ManyToOne29(() => State),
4279
+ JoinColumn29({ name: "state_id" })
4221
4280
  ], JobLocation.prototype, "state", 2);
4222
4281
  __decorateClass([
4223
- Column30({ name: "city_id", type: "int", nullable: false })
4282
+ Column31({ name: "city_id", type: "int", nullable: false })
4224
4283
  ], JobLocation.prototype, "cityId", 2);
4225
4284
  __decorateClass([
4226
- Column30({ name: "city_name", type: "varchar", nullable: true })
4285
+ Column31({ name: "city_name", type: "varchar", nullable: true })
4227
4286
  ], JobLocation.prototype, "cityName", 2);
4228
4287
  __decorateClass([
4229
- ManyToOne28(() => City),
4230
- JoinColumn28({ name: "city_id" })
4288
+ ManyToOne29(() => City),
4289
+ JoinColumn29({ name: "city_id" })
4231
4290
  ], JobLocation.prototype, "city", 2);
4232
4291
  __decorateClass([
4233
- Column30({ name: "location_wise_openings", type: "int", default: 0 })
4292
+ Column31({ name: "location_wise_openings", type: "int", default: 0 })
4234
4293
  ], JobLocation.prototype, "locationWiseOpenings", 2);
4235
4294
  JobLocation = __decorateClass([
4236
- Entity29("job_locations")
4295
+ Entity30("job_locations")
4237
4296
  ], JobLocation);
4238
4297
 
4239
4298
  // src/entities/job.entity.ts
@@ -4282,55 +4341,55 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
4282
4341
  var Job = class extends BaseEntity {
4283
4342
  };
4284
4343
  __decorateClass([
4285
- Column31({ name: "job_id", type: "varchar", unique: true, nullable: true })
4344
+ Column32({ name: "job_id", type: "varchar", unique: true, nullable: true })
4286
4345
  ], Job.prototype, "jobId", 2);
4287
4346
  // individual index to find jobs by user
4288
4347
  __decorateClass([
4289
- Column31({ name: "user_id", type: "integer", nullable: true }),
4290
- Index24()
4348
+ Column32({ name: "user_id", type: "integer", nullable: true }),
4349
+ Index25()
4291
4350
  ], Job.prototype, "userId", 2);
4292
4351
  __decorateClass([
4293
- ManyToOne29(() => User, (user) => user.jobs),
4294
- JoinColumn29({ name: "user_id" })
4352
+ ManyToOne30(() => User, (user) => user.jobs),
4353
+ JoinColumn30({ name: "user_id" })
4295
4354
  ], Job.prototype, "user", 2);
4296
4355
  __decorateClass([
4297
- Column31({ name: "country_id", type: "int", nullable: true })
4356
+ Column32({ name: "country_id", type: "int", nullable: true })
4298
4357
  ], Job.prototype, "countryId", 2);
4299
4358
  __decorateClass([
4300
- ManyToOne29(() => Country),
4301
- JoinColumn29({ name: "country_id" })
4359
+ ManyToOne30(() => Country),
4360
+ JoinColumn30({ name: "country_id" })
4302
4361
  ], Job.prototype, "country", 2);
4303
4362
  __decorateClass([
4304
- Column31({ name: "state_id", type: "int", nullable: true })
4363
+ Column32({ name: "state_id", type: "int", nullable: true })
4305
4364
  ], Job.prototype, "stateId", 2);
4306
4365
  __decorateClass([
4307
- ManyToOne29(() => State),
4308
- JoinColumn29({ name: "state_id" })
4366
+ ManyToOne30(() => State),
4367
+ JoinColumn30({ name: "state_id" })
4309
4368
  ], Job.prototype, "state", 2);
4310
4369
  __decorateClass([
4311
- Column31({ name: "city_id", type: "int", nullable: true })
4370
+ Column32({ name: "city_id", type: "int", nullable: true })
4312
4371
  ], Job.prototype, "cityId", 2);
4313
4372
  __decorateClass([
4314
- ManyToOne29(() => City),
4315
- JoinColumn29({ name: "city_id" })
4373
+ ManyToOne30(() => City),
4374
+ JoinColumn30({ name: "city_id" })
4316
4375
  ], Job.prototype, "city", 2);
4317
4376
  __decorateClass([
4318
- Column31({ name: "job_role", type: "varchar", nullable: true })
4377
+ Column32({ name: "job_role", type: "varchar", nullable: true })
4319
4378
  ], Job.prototype, "jobRole", 2);
4320
4379
  __decorateClass([
4321
- Column31({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4380
+ Column32({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4322
4381
  ], Job.prototype, "jobRoleCanonicalName", 2);
4323
4382
  __decorateClass([
4324
- Column31({ name: "project_name", type: "varchar", nullable: true })
4383
+ Column32({ name: "project_name", type: "varchar", nullable: true })
4325
4384
  ], Job.prototype, "projectName", 2);
4326
4385
  __decorateClass([
4327
- Column31({ name: "note", type: "varchar", nullable: true })
4386
+ Column32({ name: "note", type: "varchar", nullable: true })
4328
4387
  ], Job.prototype, "note", 2);
4329
4388
  __decorateClass([
4330
- Column31({ name: "openings", type: "integer", default: 0 })
4389
+ Column32({ name: "openings", type: "integer", default: 0 })
4331
4390
  ], Job.prototype, "openings", 2);
4332
4391
  __decorateClass([
4333
- Column31({
4392
+ Column32({
4334
4393
  name: "location",
4335
4394
  type: "enum",
4336
4395
  enum: JobLocationEnum2,
@@ -4338,7 +4397,7 @@ __decorateClass([
4338
4397
  })
4339
4398
  ], Job.prototype, "location", 2);
4340
4399
  __decorateClass([
4341
- Column31({
4400
+ Column32({
4342
4401
  name: "type_of_employment",
4343
4402
  type: "enum",
4344
4403
  enum: TypeOfEmploymentEnum,
@@ -4346,10 +4405,10 @@ __decorateClass([
4346
4405
  })
4347
4406
  ], Job.prototype, "typeOfEmployment", 2);
4348
4407
  __decorateClass([
4349
- Column31({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4408
+ Column32({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4350
4409
  ], Job.prototype, "academicQualification", 2);
4351
4410
  __decorateClass([
4352
- Column31({
4411
+ Column32({
4353
4412
  name: "type_of_experience",
4354
4413
  type: "enum",
4355
4414
  enum: typeOfExperienceEnum,
@@ -4357,22 +4416,22 @@ __decorateClass([
4357
4416
  })
4358
4417
  ], Job.prototype, "typeOfExperience", 2);
4359
4418
  __decorateClass([
4360
- Column31({ name: "years_of_experience", type: "varchar", nullable: true })
4419
+ Column32({ name: "years_of_experience", type: "varchar", nullable: true })
4361
4420
  ], Job.prototype, "yearsOfExperience", 2);
4362
4421
  __decorateClass([
4363
- Column31({ name: "years_of_experience_from", type: "varchar", nullable: true })
4422
+ Column32({ name: "years_of_experience_from", type: "varchar", nullable: true })
4364
4423
  ], Job.prototype, "yearsOfExperienceFrom", 2);
4365
4424
  __decorateClass([
4366
- Column31({ name: "years_of_experience_to", type: "varchar", nullable: true })
4425
+ Column32({ name: "years_of_experience_to", type: "varchar", nullable: true })
4367
4426
  ], Job.prototype, "yearsOfExperienceTo", 2);
4368
4427
  __decorateClass([
4369
- Column31({ name: "business_industry", type: "varchar", nullable: true })
4428
+ Column32({ name: "business_industry", type: "varchar", nullable: true })
4370
4429
  ], Job.prototype, "businessIndustry", 2);
4371
4430
  __decorateClass([
4372
- Column31({ name: "currency", type: "varchar", default: "USD" })
4431
+ Column32({ name: "currency", type: "varchar", default: "USD" })
4373
4432
  ], Job.prototype, "currency", 2);
4374
4433
  __decorateClass([
4375
- Column31({
4434
+ Column32({
4376
4435
  name: "expected_salary_from",
4377
4436
  type: "decimal",
4378
4437
  precision: 10,
@@ -4381,14 +4440,14 @@ __decorateClass([
4381
4440
  })
4382
4441
  ], Job.prototype, "expectedSalaryFrom", 2);
4383
4442
  __decorateClass([
4384
- Column31({
4443
+ Column32({
4385
4444
  name: "hide_expected_salary_from",
4386
4445
  type: "boolean",
4387
4446
  default: false
4388
4447
  })
4389
4448
  ], Job.prototype, "hideExpectedSalaryFrom", 2);
4390
4449
  __decorateClass([
4391
- Column31({
4450
+ Column32({
4392
4451
  name: "expected_salary_to",
4393
4452
  type: "decimal",
4394
4453
  precision: 10,
@@ -4397,32 +4456,32 @@ __decorateClass([
4397
4456
  })
4398
4457
  ], Job.prototype, "expectedSalaryTo", 2);
4399
4458
  __decorateClass([
4400
- Column31({
4459
+ Column32({
4401
4460
  name: "hide_expected_salary_to",
4402
4461
  type: "boolean",
4403
4462
  default: false
4404
4463
  })
4405
4464
  ], Job.prototype, "hideExpectedSalaryTo", 2);
4406
4465
  __decorateClass([
4407
- Column31({ name: "years", type: "varchar", nullable: true })
4466
+ Column32({ name: "years", type: "varchar", nullable: true })
4408
4467
  ], Job.prototype, "years", 2);
4409
4468
  __decorateClass([
4410
- Column31({ name: "months", type: "varchar", nullable: true })
4469
+ Column32({ name: "months", type: "varchar", nullable: true })
4411
4470
  ], Job.prototype, "months", 2);
4412
4471
  __decorateClass([
4413
- Column31({ name: "weeks", type: "varchar", nullable: true })
4472
+ Column32({ name: "weeks", type: "varchar", nullable: true })
4414
4473
  ], Job.prototype, "weeks", 2);
4415
4474
  __decorateClass([
4416
- Column31({ name: "days", type: "varchar", nullable: true })
4475
+ Column32({ name: "days", type: "varchar", nullable: true })
4417
4476
  ], Job.prototype, "days", 2);
4418
4477
  __decorateClass([
4419
- Column31({ name: "tentative_start_date", type: "date", nullable: true })
4478
+ Column32({ name: "tentative_start_date", type: "date", nullable: true })
4420
4479
  ], Job.prototype, "tentativeStartDate", 2);
4421
4480
  __decorateClass([
4422
- Column31({ name: "tentative_end_date", type: "date", nullable: true })
4481
+ Column32({ name: "tentative_end_date", type: "date", nullable: true })
4423
4482
  ], Job.prototype, "tentativeEndDate", 2);
4424
4483
  __decorateClass([
4425
- Column31({
4484
+ Column32({
4426
4485
  name: "duration_type",
4427
4486
  type: "enum",
4428
4487
  enum: DurationTypeEnum,
@@ -4430,10 +4489,10 @@ __decorateClass([
4430
4489
  })
4431
4490
  ], Job.prototype, "durationType", 2);
4432
4491
  __decorateClass([
4433
- Column31({ name: "duration", type: "varchar", nullable: true })
4492
+ Column32({ name: "duration", type: "varchar", nullable: true })
4434
4493
  ], Job.prototype, "duration", 2);
4435
4494
  __decorateClass([
4436
- Column31({
4495
+ Column32({
4437
4496
  name: "number_of_hours",
4438
4497
  type: "decimal",
4439
4498
  precision: 4,
@@ -4442,13 +4501,13 @@ __decorateClass([
4442
4501
  })
4443
4502
  ], Job.prototype, "numberOfHours", 2);
4444
4503
  __decorateClass([
4445
- Column31({ name: "description", type: "varchar", nullable: true })
4504
+ Column32({ name: "description", type: "varchar", nullable: true })
4446
4505
  ], Job.prototype, "description", 2);
4447
4506
  __decorateClass([
4448
- Column31({ name: "additional_comment", type: "varchar", nullable: true })
4507
+ Column32({ name: "additional_comment", type: "varchar", nullable: true })
4449
4508
  ], Job.prototype, "additionalComment", 2);
4450
4509
  __decorateClass([
4451
- Column31({
4510
+ Column32({
4452
4511
  name: "onboarding_tat",
4453
4512
  type: "varchar",
4454
4513
  length: 50,
@@ -4456,14 +4515,14 @@ __decorateClass([
4456
4515
  })
4457
4516
  ], Job.prototype, "onboardingTat", 2);
4458
4517
  __decorateClass([
4459
- Column31({
4518
+ Column32({
4460
4519
  name: "candidate_communication_skills",
4461
4520
  type: "varchar",
4462
4521
  nullable: true
4463
4522
  })
4464
4523
  ], Job.prototype, "candidateCommunicationSkills", 2);
4465
4524
  __decorateClass([
4466
- Column31({
4525
+ Column32({
4467
4526
  name: "step_completed",
4468
4527
  type: "enum",
4469
4528
  enum: Step,
@@ -4471,7 +4530,7 @@ __decorateClass([
4471
4530
  })
4472
4531
  ], Job.prototype, "stepCompleted", 2);
4473
4532
  __decorateClass([
4474
- Column31({
4533
+ Column32({
4475
4534
  name: "status",
4476
4535
  type: "enum",
4477
4536
  enum: JobStatusEnum,
@@ -4479,16 +4538,16 @@ __decorateClass([
4479
4538
  })
4480
4539
  ], Job.prototype, "status", 2);
4481
4540
  __decorateClass([
4482
- Column31({ name: "viewed_count", type: "integer", default: 0 })
4541
+ Column32({ name: "viewed_count", type: "integer", default: 0 })
4483
4542
  ], Job.prototype, "viewedCount", 2);
4484
4543
  __decorateClass([
4485
- Column31({ name: "application_count", type: "integer", default: 0 })
4544
+ Column32({ name: "application_count", type: "integer", default: 0 })
4486
4545
  ], Job.prototype, "applicationCount", 2);
4487
4546
  __decorateClass([
4488
- Column31({ name: "is_contract_signed", type: "boolean", default: false })
4547
+ Column32({ name: "is_contract_signed", type: "boolean", default: false })
4489
4548
  ], Job.prototype, "isContractSigned", 2);
4490
4549
  __decorateClass([
4491
- Column31({ name: "is_interview_created", type: "boolean", default: false })
4550
+ Column32({ name: "is_interview_created", type: "boolean", default: false })
4492
4551
  ], Job.prototype, "isInterviewCreated", 2);
4493
4552
  __decorateClass([
4494
4553
  OneToMany12(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
@@ -4525,6 +4584,11 @@ __decorateClass([
4525
4584
  cascade: true
4526
4585
  })
4527
4586
  ], Job.prototype, "contracts", 2);
4587
+ __decorateClass([
4588
+ OneToMany12(() => Hiring, (hiring) => hiring.job, {
4589
+ cascade: true
4590
+ })
4591
+ ], Job.prototype, "hirings", 2);
4528
4592
  __decorateClass([
4529
4593
  OneToMany12(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
4530
4594
  cascade: true
@@ -4554,16 +4618,16 @@ __decorateClass([
4554
4618
  })
4555
4619
  ], Job.prototype, "jobLocations", 2);
4556
4620
  Job = __decorateClass([
4557
- Entity30("jobs")
4621
+ Entity31("jobs")
4558
4622
  ], Job);
4559
4623
 
4560
4624
  // src/entities/bank-details.entity.ts
4561
4625
  import {
4562
- Entity as Entity31,
4563
- Column as Column32,
4564
- Index as Index25,
4565
- ManyToOne as ManyToOne30,
4566
- JoinColumn as JoinColumn30
4626
+ Entity as Entity32,
4627
+ Column as Column33,
4628
+ Index as Index26,
4629
+ ManyToOne as ManyToOne31,
4630
+ JoinColumn as JoinColumn31
4567
4631
  } from "typeorm";
4568
4632
  var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
4569
4633
  BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
@@ -4579,51 +4643,51 @@ var BankDetail = class extends BaseEntity {
4579
4643
  };
4580
4644
  // individual index to find bank details by user
4581
4645
  __decorateClass([
4582
- Column32({ name: "user_id", type: "integer", nullable: true }),
4583
- Index25()
4646
+ Column33({ name: "user_id", type: "integer", nullable: true }),
4647
+ Index26()
4584
4648
  ], BankDetail.prototype, "userId", 2);
4585
4649
  __decorateClass([
4586
- ManyToOne30(() => User, (user) => user.bankDetail),
4587
- JoinColumn30({ name: "user_id" })
4650
+ ManyToOne31(() => User, (user) => user.bankDetail),
4651
+ JoinColumn31({ name: "user_id" })
4588
4652
  ], BankDetail.prototype, "user", 2);
4589
4653
  __decorateClass([
4590
- Column32({ name: "name", type: "varchar", nullable: true })
4654
+ Column33({ name: "name", type: "varchar", nullable: true })
4591
4655
  ], BankDetail.prototype, "name", 2);
4592
4656
  __decorateClass([
4593
- Column32({ name: "mobile_code", type: "varchar", nullable: true })
4657
+ Column33({ name: "mobile_code", type: "varchar", nullable: true })
4594
4658
  ], BankDetail.prototype, "mobileCode", 2);
4595
4659
  __decorateClass([
4596
- Column32({ name: "mobile", type: "varchar", nullable: true })
4660
+ Column33({ name: "mobile", type: "varchar", nullable: true })
4597
4661
  ], BankDetail.prototype, "mobile", 2);
4598
4662
  __decorateClass([
4599
- Column32({ name: "email", type: "varchar" })
4663
+ Column33({ name: "email", type: "varchar" })
4600
4664
  ], BankDetail.prototype, "email", 2);
4601
4665
  __decorateClass([
4602
- Column32({ name: "address", type: "varchar", nullable: true })
4666
+ Column33({ name: "address", type: "varchar", nullable: true })
4603
4667
  ], BankDetail.prototype, "address", 2);
4604
4668
  __decorateClass([
4605
- Column32({ name: "account_number", type: "varchar", unique: true, nullable: true })
4669
+ Column33({ name: "account_number", type: "varchar", unique: true, nullable: true })
4606
4670
  ], BankDetail.prototype, "accountNumber", 2);
4607
4671
  __decorateClass([
4608
- Column32({ name: "bank_name", type: "varchar", nullable: true })
4672
+ Column33({ name: "bank_name", type: "varchar", nullable: true })
4609
4673
  ], BankDetail.prototype, "bankName", 2);
4610
4674
  __decorateClass([
4611
- Column32({ name: "ifsc_code", type: "varchar", nullable: true })
4675
+ Column33({ name: "ifsc_code", type: "varchar", nullable: true })
4612
4676
  ], BankDetail.prototype, "ifscCode", 2);
4613
4677
  __decorateClass([
4614
- Column32({ name: "branch_name", type: "varchar", nullable: true })
4678
+ Column33({ name: "branch_name", type: "varchar", nullable: true })
4615
4679
  ], BankDetail.prototype, "branchName", 2);
4616
4680
  __decorateClass([
4617
- Column32({ name: "routing_no", type: "varchar", nullable: true })
4681
+ Column33({ name: "routing_no", type: "varchar", nullable: true })
4618
4682
  ], BankDetail.prototype, "routingNo", 2);
4619
4683
  __decorateClass([
4620
- Column32({ name: "aba_no", type: "varchar", nullable: true })
4684
+ Column33({ name: "aba_no", type: "varchar", nullable: true })
4621
4685
  ], BankDetail.prototype, "abaNumber", 2);
4622
4686
  __decorateClass([
4623
- Column32({ name: "iban", type: "varchar", nullable: true })
4687
+ Column33({ name: "iban", type: "varchar", nullable: true })
4624
4688
  ], BankDetail.prototype, "iban", 2);
4625
4689
  __decorateClass([
4626
- Column32({
4690
+ Column33({
4627
4691
  name: "account_type",
4628
4692
  type: "enum",
4629
4693
  enum: BankAccountTypeEnum,
@@ -4631,7 +4695,7 @@ __decorateClass([
4631
4695
  })
4632
4696
  ], BankDetail.prototype, "accountType", 2);
4633
4697
  __decorateClass([
4634
- Column32({
4698
+ Column33({
4635
4699
  name: "account_scope",
4636
4700
  type: "enum",
4637
4701
  enum: BankAccountScopeEnum,
@@ -4639,185 +4703,185 @@ __decorateClass([
4639
4703
  })
4640
4704
  ], BankDetail.prototype, "accountScope", 2);
4641
4705
  BankDetail = __decorateClass([
4642
- Entity31("bank_details")
4706
+ Entity32("bank_details")
4643
4707
  ], BankDetail);
4644
4708
 
4645
4709
  // src/entities/system-preference.entity.ts
4646
4710
  import {
4647
- Entity as Entity32,
4648
- Column as Column33,
4649
- Index as Index26,
4650
- ManyToOne as ManyToOne31,
4651
- JoinColumn as JoinColumn31
4711
+ Entity as Entity33,
4712
+ Column as Column34,
4713
+ Index as Index27,
4714
+ ManyToOne as ManyToOne32,
4715
+ JoinColumn as JoinColumn32
4652
4716
  } from "typeorm";
4653
4717
  var SystemPreference = class extends BaseEntity {
4654
4718
  };
4655
4719
  // individual index to find system preference by user
4656
4720
  __decorateClass([
4657
- Column33({ name: "user_id", type: "integer", nullable: true }),
4658
- Index26()
4721
+ Column34({ name: "user_id", type: "integer", nullable: true }),
4722
+ Index27()
4659
4723
  ], SystemPreference.prototype, "userId", 2);
4660
4724
  __decorateClass([
4661
- ManyToOne31(() => User, (user) => user.systemPreference),
4662
- JoinColumn31({ name: "user_id" })
4725
+ ManyToOne32(() => User, (user) => user.systemPreference),
4726
+ JoinColumn32({ name: "user_id" })
4663
4727
  ], SystemPreference.prototype, "user", 2);
4664
4728
  __decorateClass([
4665
- Column33({ name: "key", type: "varchar", nullable: false })
4729
+ Column34({ name: "key", type: "varchar", nullable: false })
4666
4730
  ], SystemPreference.prototype, "key", 2);
4667
4731
  __decorateClass([
4668
- Column33({ name: "value", type: "boolean", default: false })
4732
+ Column34({ name: "value", type: "boolean", default: false })
4669
4733
  ], SystemPreference.prototype, "value", 2);
4670
4734
  SystemPreference = __decorateClass([
4671
- Entity32("system_preferences")
4735
+ Entity33("system_preferences")
4672
4736
  ], SystemPreference);
4673
4737
 
4674
4738
  // src/entities/freelancer-experience.entity.ts
4675
4739
  import {
4676
- Entity as Entity33,
4677
- Column as Column34,
4678
- Index as Index27,
4679
- ManyToOne as ManyToOne32,
4680
- JoinColumn as JoinColumn32
4740
+ Entity as Entity34,
4741
+ Column as Column35,
4742
+ Index as Index28,
4743
+ ManyToOne as ManyToOne33,
4744
+ JoinColumn as JoinColumn33
4681
4745
  } from "typeorm";
4682
4746
  var FreelancerExperience = class extends BaseEntity {
4683
4747
  };
4684
4748
  // individual index to find experence by user
4685
4749
  __decorateClass([
4686
- Column34({ name: "user_id", type: "integer", nullable: true }),
4687
- Index27()
4750
+ Column35({ name: "user_id", type: "integer", nullable: true }),
4751
+ Index28()
4688
4752
  ], FreelancerExperience.prototype, "userId", 2);
4689
4753
  __decorateClass([
4690
- ManyToOne32(() => User, (user) => user.freelancerExperience),
4691
- JoinColumn32({ name: "user_id" })
4754
+ ManyToOne33(() => User, (user) => user.freelancerExperience),
4755
+ JoinColumn33({ name: "user_id" })
4692
4756
  ], FreelancerExperience.prototype, "user", 2);
4693
4757
  __decorateClass([
4694
- Column34({ name: "company_name", type: "varchar", nullable: true })
4758
+ Column35({ name: "company_name", type: "varchar", nullable: true })
4695
4759
  ], FreelancerExperience.prototype, "companyName", 2);
4696
4760
  __decorateClass([
4697
- Column34({ name: "designation", type: "varchar", nullable: true })
4761
+ Column35({ name: "designation", type: "varchar", nullable: true })
4698
4762
  ], FreelancerExperience.prototype, "designation", 2);
4699
4763
  __decorateClass([
4700
- Column34({ name: "job_duration", type: "varchar", nullable: true })
4764
+ Column35({ name: "job_duration", type: "varchar", nullable: true })
4701
4765
  ], FreelancerExperience.prototype, "jobDuration", 2);
4702
4766
  __decorateClass([
4703
- Column34({ name: "description", type: "varchar", nullable: true })
4767
+ Column35({ name: "description", type: "varchar", nullable: true })
4704
4768
  ], FreelancerExperience.prototype, "description", 2);
4705
4769
  FreelancerExperience = __decorateClass([
4706
- Entity33("freelancer_experiences")
4770
+ Entity34("freelancer_experiences")
4707
4771
  ], FreelancerExperience);
4708
4772
 
4709
4773
  // src/entities/freelancer-education.entity.ts
4710
4774
  import {
4711
- Entity as Entity34,
4712
- Column as Column35,
4713
- Index as Index28,
4714
- ManyToOne as ManyToOne33,
4715
- JoinColumn as JoinColumn33
4775
+ Entity as Entity35,
4776
+ Column as Column36,
4777
+ Index as Index29,
4778
+ ManyToOne as ManyToOne34,
4779
+ JoinColumn as JoinColumn34
4716
4780
  } from "typeorm";
4717
4781
  var FreelancerEducation = class extends BaseEntity {
4718
4782
  };
4719
4783
  // individual index to find education by user
4720
4784
  __decorateClass([
4721
- Column35({ name: "user_id", type: "integer", nullable: true }),
4722
- Index28()
4785
+ Column36({ name: "user_id", type: "integer", nullable: true }),
4786
+ Index29()
4723
4787
  ], FreelancerEducation.prototype, "userId", 2);
4724
4788
  __decorateClass([
4725
- ManyToOne33(() => User, (user) => user.freelancerEducation),
4726
- JoinColumn33({ name: "user_id" })
4789
+ ManyToOne34(() => User, (user) => user.freelancerEducation),
4790
+ JoinColumn34({ name: "user_id" })
4727
4791
  ], FreelancerEducation.prototype, "user", 2);
4728
4792
  __decorateClass([
4729
- Column35({ name: "degree", type: "varchar", nullable: true })
4793
+ Column36({ name: "degree", type: "varchar", nullable: true })
4730
4794
  ], FreelancerEducation.prototype, "degree", 2);
4731
4795
  __decorateClass([
4732
- Column35({ name: "university", type: "varchar", nullable: true })
4796
+ Column36({ name: "university", type: "varchar", nullable: true })
4733
4797
  ], FreelancerEducation.prototype, "university", 2);
4734
4798
  __decorateClass([
4735
- Column35({ name: "year_of_graduation", type: "varchar", nullable: true })
4799
+ Column36({ name: "year_of_graduation", type: "varchar", nullable: true })
4736
4800
  ], FreelancerEducation.prototype, "yearOfGraduation", 2);
4737
4801
  FreelancerEducation = __decorateClass([
4738
- Entity34("freelancer_educations")
4802
+ Entity35("freelancer_educations")
4739
4803
  ], FreelancerEducation);
4740
4804
 
4741
4805
  // src/entities/freelancer-project.entity.ts
4742
4806
  import {
4743
- Entity as Entity35,
4744
- Column as Column36,
4745
- Index as Index29,
4746
- ManyToOne as ManyToOne34,
4747
- JoinColumn as JoinColumn34
4807
+ Entity as Entity36,
4808
+ Column as Column37,
4809
+ Index as Index30,
4810
+ ManyToOne as ManyToOne35,
4811
+ JoinColumn as JoinColumn35
4748
4812
  } from "typeorm";
4749
4813
  var FreelancerProject = class extends BaseEntity {
4750
4814
  };
4751
4815
  // individual index to find project by user
4752
4816
  __decorateClass([
4753
- Column36({ name: "user_id", type: "integer", nullable: true }),
4754
- Index29()
4817
+ Column37({ name: "user_id", type: "integer", nullable: true }),
4818
+ Index30()
4755
4819
  ], FreelancerProject.prototype, "userId", 2);
4756
4820
  __decorateClass([
4757
- ManyToOne34(() => User, (user) => user.freelancerProject),
4758
- JoinColumn34({ name: "user_id" })
4821
+ ManyToOne35(() => User, (user) => user.freelancerProject),
4822
+ JoinColumn35({ name: "user_id" })
4759
4823
  ], FreelancerProject.prototype, "user", 2);
4760
4824
  __decorateClass([
4761
- Column36({ name: "project_name", type: "varchar", nullable: true })
4825
+ Column37({ name: "project_name", type: "varchar", nullable: true })
4762
4826
  ], FreelancerProject.prototype, "projectName", 2);
4763
4827
  __decorateClass([
4764
- Column36({ name: "start_date", type: "date", nullable: true })
4828
+ Column37({ name: "start_date", type: "date", nullable: true })
4765
4829
  ], FreelancerProject.prototype, "startDate", 2);
4766
4830
  __decorateClass([
4767
- Column36({ name: "end_date", type: "date", nullable: true })
4831
+ Column37({ name: "end_date", type: "date", nullable: true })
4768
4832
  ], FreelancerProject.prototype, "endDate", 2);
4769
4833
  __decorateClass([
4770
- Column36({ name: "client_name", type: "varchar", nullable: true })
4834
+ Column37({ name: "client_name", type: "varchar", nullable: true })
4771
4835
  ], FreelancerProject.prototype, "clientName", 2);
4772
4836
  __decorateClass([
4773
- Column36({ name: "git_link", type: "varchar", nullable: true })
4837
+ Column37({ name: "git_link", type: "varchar", nullable: true })
4774
4838
  ], FreelancerProject.prototype, "gitLink", 2);
4775
4839
  __decorateClass([
4776
- Column36({ name: "description", type: "varchar", nullable: true })
4840
+ Column37({ name: "description", type: "varchar", nullable: true })
4777
4841
  ], FreelancerProject.prototype, "description", 2);
4778
4842
  FreelancerProject = __decorateClass([
4779
- Entity35("freelancer_projects")
4843
+ Entity36("freelancer_projects")
4780
4844
  ], FreelancerProject);
4781
4845
 
4782
4846
  // src/entities/freelancer-casestudy.entity.ts
4783
4847
  import {
4784
- Entity as Entity36,
4785
- Column as Column37,
4786
- Index as Index30,
4787
- ManyToOne as ManyToOne35,
4788
- JoinColumn as JoinColumn35
4848
+ Entity as Entity37,
4849
+ Column as Column38,
4850
+ Index as Index31,
4851
+ ManyToOne as ManyToOne36,
4852
+ JoinColumn as JoinColumn36
4789
4853
  } from "typeorm";
4790
4854
  var FreelancerCaseStudy = class extends BaseEntity {
4791
4855
  };
4792
4856
  // individual index to find case study by user
4793
4857
  __decorateClass([
4794
- Column37({ name: "user_id", type: "integer", nullable: true }),
4795
- Index30()
4858
+ Column38({ name: "user_id", type: "integer", nullable: true }),
4859
+ Index31()
4796
4860
  ], FreelancerCaseStudy.prototype, "userId", 2);
4797
4861
  __decorateClass([
4798
- ManyToOne35(() => User, (user) => user.freelancerCaseStudy),
4799
- JoinColumn35({ name: "user_id" })
4862
+ ManyToOne36(() => User, (user) => user.freelancerCaseStudy),
4863
+ JoinColumn36({ name: "user_id" })
4800
4864
  ], FreelancerCaseStudy.prototype, "user", 2);
4801
4865
  __decorateClass([
4802
- Column37({ name: "project_name", type: "varchar", nullable: true })
4866
+ Column38({ name: "project_name", type: "varchar", nullable: true })
4803
4867
  ], FreelancerCaseStudy.prototype, "projectName", 2);
4804
4868
  __decorateClass([
4805
- Column37({ name: "case_study_link", type: "varchar", nullable: true })
4869
+ Column38({ name: "case_study_link", type: "varchar", nullable: true })
4806
4870
  ], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
4807
4871
  __decorateClass([
4808
- Column37({ name: "description", type: "varchar", nullable: true })
4872
+ Column38({ name: "description", type: "varchar", nullable: true })
4809
4873
  ], FreelancerCaseStudy.prototype, "description", 2);
4810
4874
  FreelancerCaseStudy = __decorateClass([
4811
- Entity36("freelancer_case_studies")
4875
+ Entity37("freelancer_case_studies")
4812
4876
  ], FreelancerCaseStudy);
4813
4877
 
4814
4878
  // src/entities/freelancer-skill.entity.ts
4815
4879
  import {
4816
- Entity as Entity37,
4817
- Column as Column38,
4818
- Index as Index31,
4819
- ManyToOne as ManyToOne36,
4820
- JoinColumn as JoinColumn36
4880
+ Entity as Entity38,
4881
+ Column as Column39,
4882
+ Index as Index32,
4883
+ ManyToOne as ManyToOne37,
4884
+ JoinColumn as JoinColumn37
4821
4885
  } from "typeorm";
4822
4886
  var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
4823
4887
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
@@ -4828,18 +4892,18 @@ var FreelancerSkill = class extends BaseEntity {
4828
4892
  };
4829
4893
  // individual index to find core skills by user
4830
4894
  __decorateClass([
4831
- Column38({ name: "user_id", type: "integer", nullable: true }),
4832
- Index31()
4895
+ Column39({ name: "user_id", type: "integer", nullable: true }),
4896
+ Index32()
4833
4897
  ], FreelancerSkill.prototype, "userId", 2);
4834
4898
  __decorateClass([
4835
- ManyToOne36(() => User, (user) => user.freelancerSkills),
4836
- JoinColumn36({ name: "user_id" })
4899
+ ManyToOne37(() => User, (user) => user.freelancerSkills),
4900
+ JoinColumn37({ name: "user_id" })
4837
4901
  ], FreelancerSkill.prototype, "user", 2);
4838
4902
  __decorateClass([
4839
- Column38({ name: "skill_name", type: "varchar", nullable: true })
4903
+ Column39({ name: "skill_name", type: "varchar", nullable: true })
4840
4904
  ], FreelancerSkill.prototype, "skillName", 2);
4841
4905
  __decorateClass([
4842
- Column38({
4906
+ Column39({
4843
4907
  name: "skill_category",
4844
4908
  type: "smallint",
4845
4909
  default: 1,
@@ -4847,68 +4911,68 @@ __decorateClass([
4847
4911
  })
4848
4912
  ], FreelancerSkill.prototype, "skillCategory", 2);
4849
4913
  FreelancerSkill = __decorateClass([
4850
- Entity37("freelancer_skills")
4914
+ Entity38("freelancer_skills")
4851
4915
  ], FreelancerSkill);
4852
4916
 
4853
4917
  // src/entities/freelancer-tool.entity.ts
4854
4918
  import {
4855
- Entity as Entity38,
4856
- Column as Column39,
4857
- Index as Index32,
4858
- ManyToOne as ManyToOne37,
4859
- JoinColumn as JoinColumn37
4919
+ Entity as Entity39,
4920
+ Column as Column40,
4921
+ Index as Index33,
4922
+ ManyToOne as ManyToOne38,
4923
+ JoinColumn as JoinColumn38
4860
4924
  } from "typeorm";
4861
4925
  var FreelancerTool = class extends BaseEntity {
4862
4926
  };
4863
4927
  // individual index to find tool by user
4864
4928
  __decorateClass([
4865
- Column39({ name: "user_id", type: "integer", nullable: true }),
4866
- Index32()
4929
+ Column40({ name: "user_id", type: "integer", nullable: true }),
4930
+ Index33()
4867
4931
  ], FreelancerTool.prototype, "userId", 2);
4868
4932
  __decorateClass([
4869
- ManyToOne37(() => User, (user) => user.freelancerTool),
4870
- JoinColumn37({ name: "user_id" })
4933
+ ManyToOne38(() => User, (user) => user.freelancerTool),
4934
+ JoinColumn38({ name: "user_id" })
4871
4935
  ], FreelancerTool.prototype, "user", 2);
4872
4936
  __decorateClass([
4873
- Column39({ name: "tool_name", type: "varchar", nullable: true })
4937
+ Column40({ name: "tool_name", type: "varchar", nullable: true })
4874
4938
  ], FreelancerTool.prototype, "toolName", 2);
4875
4939
  FreelancerTool = __decorateClass([
4876
- Entity38("freelancer_tools")
4940
+ Entity39("freelancer_tools")
4877
4941
  ], FreelancerTool);
4878
4942
 
4879
4943
  // src/entities/freelancer-framework.entity.ts
4880
4944
  import {
4881
- Entity as Entity39,
4882
- Column as Column40,
4883
- Index as Index33,
4884
- ManyToOne as ManyToOne38,
4885
- JoinColumn as JoinColumn38
4945
+ Entity as Entity40,
4946
+ Column as Column41,
4947
+ Index as Index34,
4948
+ ManyToOne as ManyToOne39,
4949
+ JoinColumn as JoinColumn39
4886
4950
  } from "typeorm";
4887
4951
  var FreelancerFramework = class extends BaseEntity {
4888
4952
  };
4889
4953
  // individual index to find framework by user
4890
4954
  __decorateClass([
4891
- Column40({ name: "user_id", type: "integer", nullable: true }),
4892
- Index33()
4955
+ Column41({ name: "user_id", type: "integer", nullable: true }),
4956
+ Index34()
4893
4957
  ], FreelancerFramework.prototype, "userId", 2);
4894
4958
  __decorateClass([
4895
- ManyToOne38(() => User, (user) => user.freelancerFramework),
4896
- JoinColumn38({ name: "user_id" })
4959
+ ManyToOne39(() => User, (user) => user.freelancerFramework),
4960
+ JoinColumn39({ name: "user_id" })
4897
4961
  ], FreelancerFramework.prototype, "user", 2);
4898
4962
  __decorateClass([
4899
- Column40({ name: "framework_name", type: "varchar", nullable: true })
4963
+ Column41({ name: "framework_name", type: "varchar", nullable: true })
4900
4964
  ], FreelancerFramework.prototype, "frameworkName", 2);
4901
4965
  FreelancerFramework = __decorateClass([
4902
- Entity39("freelancer_frameworks")
4966
+ Entity40("freelancer_frameworks")
4903
4967
  ], FreelancerFramework);
4904
4968
 
4905
4969
  // src/entities/freelancer-assessment.entity.ts
4906
4970
  import {
4907
- Entity as Entity40,
4908
- Column as Column41,
4909
- Index as Index34,
4910
- ManyToOne as ManyToOne39,
4911
- JoinColumn as JoinColumn39
4971
+ Entity as Entity41,
4972
+ Column as Column42,
4973
+ Index as Index35,
4974
+ ManyToOne as ManyToOne40,
4975
+ JoinColumn as JoinColumn40
4912
4976
  } from "typeorm";
4913
4977
  var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
4914
4978
  AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
@@ -4925,30 +4989,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
4925
4989
  var FreelancerAssessment = class extends BaseEntity {
4926
4990
  };
4927
4991
  __decorateClass([
4928
- Column41({ name: "user_id", type: "integer", nullable: true }),
4929
- Index34()
4992
+ Column42({ name: "user_id", type: "integer", nullable: true }),
4993
+ Index35()
4930
4994
  ], FreelancerAssessment.prototype, "userId", 2);
4931
4995
  __decorateClass([
4932
- ManyToOne39(() => User, (user) => user.assessments),
4933
- JoinColumn39({ name: "user_id" })
4996
+ ManyToOne40(() => User, (user) => user.assessments),
4997
+ JoinColumn40({ name: "user_id" })
4934
4998
  ], FreelancerAssessment.prototype, "user", 2);
4935
4999
  __decorateClass([
4936
- Column41({ name: "interview_id", type: "varchar", nullable: true })
5000
+ Column42({ name: "interview_id", type: "varchar", nullable: true })
4937
5001
  ], FreelancerAssessment.prototype, "interviewId", 2);
4938
5002
  __decorateClass([
4939
- Column41({ name: "interview_link", type: "text", nullable: true })
5003
+ Column42({ name: "interview_link", type: "text", nullable: true })
4940
5004
  ], FreelancerAssessment.prototype, "interviewLink", 2);
4941
5005
  __decorateClass([
4942
- Column41({ name: "recording_link", type: "text", nullable: true })
5006
+ Column42({ name: "recording_link", type: "text", nullable: true })
4943
5007
  ], FreelancerAssessment.prototype, "recordingLink", 2);
4944
5008
  __decorateClass([
4945
- Column41({ name: "iframe_response", type: "jsonb", nullable: true })
5009
+ Column42({ name: "iframe_response", type: "jsonb", nullable: true })
4946
5010
  ], FreelancerAssessment.prototype, "iframeResponse", 2);
4947
5011
  __decorateClass([
4948
- Column41({ name: "interview_summary", type: "jsonb", nullable: true })
5012
+ Column42({ name: "interview_summary", type: "jsonb", nullable: true })
4949
5013
  ], FreelancerAssessment.prototype, "interviewSummary", 2);
4950
5014
  __decorateClass([
4951
- Column41({
5015
+ Column42({
4952
5016
  name: "status",
4953
5017
  type: "enum",
4954
5018
  enum: AssessmentStatusEnum,
@@ -4956,11 +5020,11 @@ __decorateClass([
4956
5020
  })
4957
5021
  ], FreelancerAssessment.prototype, "status", 2);
4958
5022
  FreelancerAssessment = __decorateClass([
4959
- Entity40("freelancer_assessments")
5023
+ Entity41("freelancer_assessments")
4960
5024
  ], FreelancerAssessment);
4961
5025
 
4962
5026
  // src/entities/freelancer-declaration.entity.ts
4963
- import { Entity as Entity41, Column as Column42, Index as Index35, ManyToOne as ManyToOne40, JoinColumn as JoinColumn40 } from "typeorm";
5027
+ import { Entity as Entity42, Column as Column43, Index as Index36, ManyToOne as ManyToOne41, JoinColumn as JoinColumn41 } from "typeorm";
4964
5028
  var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
4965
5029
  DocumentType2["AADHAAR"] = "AADHAAR_CARD";
4966
5030
  DocumentType2["PASSPORT"] = "PASSPORT";
@@ -4972,15 +5036,15 @@ var FreelancerDeclaration = class extends BaseEntity {
4972
5036
  };
4973
5037
  // individual index to find declaration by user
4974
5038
  __decorateClass([
4975
- Column42({ name: "user_id", type: "integer", nullable: true }),
4976
- Index35()
5039
+ Column43({ name: "user_id", type: "integer", nullable: true }),
5040
+ Index36()
4977
5041
  ], FreelancerDeclaration.prototype, "userId", 2);
4978
5042
  __decorateClass([
4979
- ManyToOne40(() => User, (user) => user.freelancerDeclaration),
4980
- JoinColumn40({ name: "user_id" })
5043
+ ManyToOne41(() => User, (user) => user.freelancerDeclaration),
5044
+ JoinColumn41({ name: "user_id" })
4981
5045
  ], FreelancerDeclaration.prototype, "user", 2);
4982
5046
  __decorateClass([
4983
- Column42({
5047
+ Column43({
4984
5048
  name: "document_type",
4985
5049
  type: "enum",
4986
5050
  enum: DocumentType,
@@ -4988,175 +5052,175 @@ __decorateClass([
4988
5052
  })
4989
5053
  ], FreelancerDeclaration.prototype, "documentType", 2);
4990
5054
  __decorateClass([
4991
- Column42({ name: "front_document_url", type: "varchar", nullable: true })
5055
+ Column43({ name: "front_document_url", type: "varchar", nullable: true })
4992
5056
  ], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
4993
5057
  __decorateClass([
4994
- Column42({ name: "back_document_url", type: "varchar", nullable: true })
5058
+ Column43({ name: "back_document_url", type: "varchar", nullable: true })
4995
5059
  ], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
4996
5060
  __decorateClass([
4997
- Column42({ name: "declaration_accepted", type: "boolean", default: false })
5061
+ Column43({ name: "declaration_accepted", type: "boolean", default: false })
4998
5062
  ], FreelancerDeclaration.prototype, "declarationAccepted", 2);
4999
5063
  __decorateClass([
5000
- Column42({ name: "digital_signature_url", type: "varchar", nullable: true })
5064
+ Column43({ name: "digital_signature_url", type: "varchar", nullable: true })
5001
5065
  ], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
5002
5066
  FreelancerDeclaration = __decorateClass([
5003
- Entity41("freelancer_declaration")
5067
+ Entity42("freelancer_declaration")
5004
5068
  ], FreelancerDeclaration);
5005
5069
 
5006
5070
  // src/entities/company-members-roles.entity.ts
5007
5071
  import {
5008
- Column as Column46,
5009
- Entity as Entity45,
5010
- ManyToOne as ManyToOne43,
5011
- JoinColumn as JoinColumn43,
5012
- Index as Index39
5072
+ Column as Column47,
5073
+ Entity as Entity46,
5074
+ ManyToOne as ManyToOne44,
5075
+ JoinColumn as JoinColumn44,
5076
+ Index as Index40
5013
5077
  } from "typeorm";
5014
5078
 
5015
5079
  // src/entities/company-role.entity.ts
5016
5080
  import {
5017
- Column as Column45,
5018
- Entity as Entity44,
5019
- Index as Index38,
5020
- JoinColumn as JoinColumn42,
5021
- ManyToOne as ManyToOne42,
5081
+ Column as Column46,
5082
+ Entity as Entity45,
5083
+ Index as Index39,
5084
+ JoinColumn as JoinColumn43,
5085
+ ManyToOne as ManyToOne43,
5022
5086
  OneToMany as OneToMany14
5023
5087
  } from "typeorm";
5024
5088
 
5025
5089
  // src/entities/company-role-permission.entity.ts
5026
5090
  import {
5027
- Column as Column44,
5028
- Entity as Entity43,
5029
- ManyToOne as ManyToOne41,
5030
- JoinColumn as JoinColumn41,
5031
- Index as Index37
5091
+ Column as Column45,
5092
+ Entity as Entity44,
5093
+ ManyToOne as ManyToOne42,
5094
+ JoinColumn as JoinColumn42,
5095
+ Index as Index38
5032
5096
  } from "typeorm";
5033
5097
 
5034
5098
  // src/entities/permission.entity.ts
5035
- import { Column as Column43, Entity as Entity42, Index as Index36 } from "typeorm";
5099
+ import { Column as Column44, Entity as Entity43, Index as Index37 } from "typeorm";
5036
5100
  var Permission = class extends BaseEntity {
5037
5101
  };
5038
5102
  __decorateClass([
5039
- Column43({ name: "name", type: "varchar", nullable: true })
5103
+ Column44({ name: "name", type: "varchar", nullable: true })
5040
5104
  ], Permission.prototype, "name", 2);
5041
5105
  __decorateClass([
5042
- Column43({ name: "slug", type: "varchar", nullable: true, unique: true }),
5043
- Index36()
5106
+ Column44({ name: "slug", type: "varchar", nullable: true, unique: true }),
5107
+ Index37()
5044
5108
  ], Permission.prototype, "slug", 2);
5045
5109
  __decorateClass([
5046
- Column43({ name: "description", type: "text", nullable: true })
5110
+ Column44({ name: "description", type: "text", nullable: true })
5047
5111
  ], Permission.prototype, "description", 2);
5048
5112
  __decorateClass([
5049
- Column43({ name: "is_active", type: "boolean", default: true })
5113
+ Column44({ name: "is_active", type: "boolean", default: true })
5050
5114
  ], Permission.prototype, "isActive", 2);
5051
5115
  Permission = __decorateClass([
5052
- Entity42("permissions")
5116
+ Entity43("permissions")
5053
5117
  ], Permission);
5054
5118
 
5055
5119
  // src/entities/company-role-permission.entity.ts
5056
5120
  var CompanyRolePermission = class extends BaseEntity {
5057
5121
  };
5058
5122
  __decorateClass([
5059
- Column44({ name: "company_role_id", type: "integer", nullable: true }),
5060
- Index37()
5123
+ Column45({ name: "company_role_id", type: "integer", nullable: true }),
5124
+ Index38()
5061
5125
  ], CompanyRolePermission.prototype, "companyRoleId", 2);
5062
5126
  __decorateClass([
5063
- ManyToOne41(() => CompanyRole, (role) => role.rolePermissions, {
5127
+ ManyToOne42(() => CompanyRole, (role) => role.rolePermissions, {
5064
5128
  onDelete: "CASCADE"
5065
5129
  }),
5066
- JoinColumn41({ name: "company_role_id" })
5130
+ JoinColumn42({ name: "company_role_id" })
5067
5131
  ], CompanyRolePermission.prototype, "companyRole", 2);
5068
5132
  __decorateClass([
5069
- Column44({ name: "permission_id", type: "integer" }),
5070
- Index37()
5133
+ Column45({ name: "permission_id", type: "integer" }),
5134
+ Index38()
5071
5135
  ], CompanyRolePermission.prototype, "permissionId", 2);
5072
5136
  __decorateClass([
5073
- ManyToOne41(() => Permission, { onDelete: "CASCADE" }),
5074
- JoinColumn41({ name: "permission_id" })
5137
+ ManyToOne42(() => Permission, { onDelete: "CASCADE" }),
5138
+ JoinColumn42({ name: "permission_id" })
5075
5139
  ], CompanyRolePermission.prototype, "permission", 2);
5076
5140
  __decorateClass([
5077
- Column44({ name: "assigned_by", type: "integer", nullable: true })
5141
+ Column45({ name: "assigned_by", type: "integer", nullable: true })
5078
5142
  ], CompanyRolePermission.prototype, "assignedBy", 2);
5079
5143
  CompanyRolePermission = __decorateClass([
5080
- Entity43("company_role_permissions")
5144
+ Entity44("company_role_permissions")
5081
5145
  ], CompanyRolePermission);
5082
5146
 
5083
5147
  // src/entities/company-role.entity.ts
5084
5148
  var CompanyRole = class extends BaseEntity {
5085
5149
  };
5086
5150
  __decorateClass([
5087
- Column45({ name: "user_id", type: "integer", nullable: true }),
5088
- Index38()
5151
+ Column46({ name: "user_id", type: "integer", nullable: true }),
5152
+ Index39()
5089
5153
  ], CompanyRole.prototype, "userId", 2);
5090
5154
  __decorateClass([
5091
- ManyToOne42(() => User, (user) => user.otps),
5092
- JoinColumn42({ name: "user_id" })
5155
+ ManyToOne43(() => User, (user) => user.otps),
5156
+ JoinColumn43({ name: "user_id" })
5093
5157
  ], CompanyRole.prototype, "user", 2);
5094
5158
  __decorateClass([
5095
- Column45({ name: "name", type: "varchar" })
5159
+ Column46({ name: "name", type: "varchar" })
5096
5160
  ], CompanyRole.prototype, "name", 2);
5097
5161
  __decorateClass([
5098
- Column45({ name: "slug", type: "varchar", nullable: true, unique: true }),
5099
- Index38()
5162
+ Column46({ name: "slug", type: "varchar", nullable: true, unique: true }),
5163
+ Index39()
5100
5164
  ], CompanyRole.prototype, "slug", 2);
5101
5165
  __decorateClass([
5102
- Column45({ name: "description", type: "text", nullable: true })
5166
+ Column46({ name: "description", type: "text", nullable: true })
5103
5167
  ], CompanyRole.prototype, "description", 2);
5104
5168
  __decorateClass([
5105
- Column45({ name: "is_active", type: "boolean", default: true })
5169
+ Column46({ name: "is_active", type: "boolean", default: true })
5106
5170
  ], CompanyRole.prototype, "isActive", 2);
5107
5171
  __decorateClass([
5108
5172
  OneToMany14(() => CompanyRolePermission, (rp) => rp.companyRole)
5109
5173
  ], CompanyRole.prototype, "rolePermissions", 2);
5110
5174
  CompanyRole = __decorateClass([
5111
- Entity44("company_roles")
5175
+ Entity45("company_roles")
5112
5176
  ], CompanyRole);
5113
5177
 
5114
5178
  // src/entities/company-members-roles.entity.ts
5115
5179
  var CompanyMemberRole = class extends BaseEntity {
5116
5180
  };
5117
5181
  __decorateClass([
5118
- Column46({ name: "user_id", type: "integer", nullable: true }),
5119
- Index39()
5182
+ Column47({ name: "user_id", type: "integer", nullable: true }),
5183
+ Index40()
5120
5184
  ], CompanyMemberRole.prototype, "userId", 2);
5121
5185
  __decorateClass([
5122
- ManyToOne43(() => User),
5123
- JoinColumn43({ name: "user_id" })
5186
+ ManyToOne44(() => User),
5187
+ JoinColumn44({ name: "user_id" })
5124
5188
  ], CompanyMemberRole.prototype, "user", 2);
5125
5189
  __decorateClass([
5126
- ManyToOne43(() => CompanyRole),
5127
- JoinColumn43({ name: "company_role_id" })
5190
+ ManyToOne44(() => CompanyRole),
5191
+ JoinColumn44({ name: "company_role_id" })
5128
5192
  ], CompanyMemberRole.prototype, "role", 2);
5129
5193
  __decorateClass([
5130
- Column46({ name: "company_role_id", type: "integer", nullable: true }),
5131
- Index39()
5194
+ Column47({ name: "company_role_id", type: "integer", nullable: true }),
5195
+ Index40()
5132
5196
  ], CompanyMemberRole.prototype, "companyRoleId", 2);
5133
5197
  __decorateClass([
5134
- Column46({ name: "assigned_by", type: "integer", nullable: true })
5198
+ Column47({ name: "assigned_by", type: "integer", nullable: true })
5135
5199
  ], CompanyMemberRole.prototype, "assignedBy", 2);
5136
5200
  CompanyMemberRole = __decorateClass([
5137
- Entity45("company_member_roles")
5201
+ Entity46("company_member_roles")
5138
5202
  ], CompanyMemberRole);
5139
5203
 
5140
5204
  // src/entities/assessment-answer.entity.ts
5141
5205
  import {
5142
- Entity as Entity48,
5143
- Column as Column49,
5144
- ManyToOne as ManyToOne46,
5145
- Index as Index42,
5146
- JoinColumn as JoinColumn46
5206
+ Entity as Entity49,
5207
+ Column as Column50,
5208
+ ManyToOne as ManyToOne47,
5209
+ Index as Index43,
5210
+ JoinColumn as JoinColumn47
5147
5211
  } from "typeorm";
5148
5212
 
5149
5213
  // src/entities/assessment-question.entity.ts
5150
- import { Entity as Entity47, Column as Column48, OneToMany as OneToMany16, Index as Index41, ManyToOne as ManyToOne45, JoinColumn as JoinColumn45 } from "typeorm";
5214
+ import { Entity as Entity48, Column as Column49, OneToMany as OneToMany16, Index as Index42, ManyToOne as ManyToOne46, JoinColumn as JoinColumn46 } from "typeorm";
5151
5215
 
5152
5216
  // src/entities/assessment-question-option.entity.ts
5153
5217
  import {
5154
- Entity as Entity46,
5155
- Column as Column47,
5218
+ Entity as Entity47,
5219
+ Column as Column48,
5156
5220
  OneToMany as OneToMany15,
5157
- ManyToOne as ManyToOne44,
5158
- Index as Index40,
5159
- JoinColumn as JoinColumn44
5221
+ ManyToOne as ManyToOne45,
5222
+ Index as Index41,
5223
+ JoinColumn as JoinColumn45
5160
5224
  } from "typeorm";
5161
5225
  var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5162
5226
  AnswerTypeEnum2["CORRECT"] = "CORRECT";
@@ -5167,21 +5231,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5167
5231
  var AssessmetQuestionOption = class extends BaseEntity {
5168
5232
  };
5169
5233
  __decorateClass([
5170
- Column47({ name: "question_id", type: "integer", nullable: true }),
5171
- Index40()
5234
+ Column48({ name: "question_id", type: "integer", nullable: true }),
5235
+ Index41()
5172
5236
  ], AssessmetQuestionOption.prototype, "questionId", 2);
5173
5237
  __decorateClass([
5174
- ManyToOne44(
5238
+ ManyToOne45(
5175
5239
  () => AssessmetQuestion,
5176
5240
  (assessmentQuestion) => assessmentQuestion.options
5177
5241
  ),
5178
- JoinColumn44({ name: "question_id" })
5242
+ JoinColumn45({ name: "question_id" })
5179
5243
  ], AssessmetQuestionOption.prototype, "question", 2);
5180
5244
  __decorateClass([
5181
- Column47({ name: "text", type: "varchar", nullable: true })
5245
+ Column48({ name: "text", type: "varchar", nullable: true })
5182
5246
  ], AssessmetQuestionOption.prototype, "text", 2);
5183
5247
  __decorateClass([
5184
- Column47({
5248
+ Column48({
5185
5249
  name: "answer_type",
5186
5250
  type: "enum",
5187
5251
  enum: AnswerTypeEnum,
@@ -5189,13 +5253,13 @@ __decorateClass([
5189
5253
  })
5190
5254
  ], AssessmetQuestionOption.prototype, "answerType", 2);
5191
5255
  __decorateClass([
5192
- Column47({ name: "is_active", type: "boolean", default: true })
5256
+ Column48({ name: "is_active", type: "boolean", default: true })
5193
5257
  ], AssessmetQuestionOption.prototype, "isActive", 2);
5194
5258
  __decorateClass([
5195
5259
  OneToMany15(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5196
5260
  ], AssessmetQuestionOption.prototype, "selectedOptions", 2);
5197
5261
  AssessmetQuestionOption = __decorateClass([
5198
- Entity46("assessment_question_options")
5262
+ Entity47("assessment_question_options")
5199
5263
  ], AssessmetQuestionOption);
5200
5264
 
5201
5265
  // src/entities/assessment-question.entity.ts
@@ -5207,10 +5271,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
5207
5271
  var AssessmetQuestion = class extends BaseEntity {
5208
5272
  };
5209
5273
  __decorateClass([
5210
- Column48({ name: "text", type: "varchar", nullable: true })
5274
+ Column49({ name: "text", type: "varchar", nullable: true })
5211
5275
  ], AssessmetQuestion.prototype, "text", 2);
5212
5276
  __decorateClass([
5213
- Column48({
5277
+ Column49({
5214
5278
  name: "question_for",
5215
5279
  type: "enum",
5216
5280
  enum: QuestionForEnum,
@@ -5218,15 +5282,15 @@ __decorateClass([
5218
5282
  })
5219
5283
  ], AssessmetQuestion.prototype, "questionFor", 2);
5220
5284
  __decorateClass([
5221
- Column48({ name: "is_active", type: "boolean", default: true })
5285
+ Column49({ name: "is_active", type: "boolean", default: true })
5222
5286
  ], AssessmetQuestion.prototype, "isActive", 2);
5223
5287
  __decorateClass([
5224
- Column48({ name: "candidate_id", type: "integer", nullable: true }),
5225
- Index41()
5288
+ Column49({ name: "candidate_id", type: "integer", nullable: true }),
5289
+ Index42()
5226
5290
  ], AssessmetQuestion.prototype, "candidateId", 2);
5227
5291
  __decorateClass([
5228
- ManyToOne45(() => User, (user) => user.freelancerMcq, { nullable: true }),
5229
- JoinColumn45({ name: "candidate_id" })
5292
+ ManyToOne46(() => User, (user) => user.freelancerMcq, { nullable: true }),
5293
+ JoinColumn46({ name: "candidate_id" })
5230
5294
  ], AssessmetQuestion.prototype, "candidate", 2);
5231
5295
  __decorateClass([
5232
5296
  OneToMany16(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
@@ -5235,7 +5299,7 @@ __decorateClass([
5235
5299
  OneToMany16(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5236
5300
  ], AssessmetQuestion.prototype, "answers", 2);
5237
5301
  AssessmetQuestion = __decorateClass([
5238
- Entity47("assessment_questions")
5302
+ Entity48("assessment_questions")
5239
5303
  ], AssessmetQuestion);
5240
5304
 
5241
5305
  // src/entities/assessment-answer.entity.ts
@@ -5248,102 +5312,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
5248
5312
  var AssessmentAnswer = class extends BaseEntity {
5249
5313
  };
5250
5314
  __decorateClass([
5251
- Column49({ name: "user_id", type: "integer" }),
5252
- Index42()
5315
+ Column50({ name: "user_id", type: "integer" }),
5316
+ Index43()
5253
5317
  ], AssessmentAnswer.prototype, "userId", 2);
5254
5318
  __decorateClass([
5255
- ManyToOne46(() => User, (user) => user.assessmentAnswers),
5256
- JoinColumn46({ name: "user_id" })
5319
+ ManyToOne47(() => User, (user) => user.assessmentAnswers),
5320
+ JoinColumn47({ name: "user_id" })
5257
5321
  ], AssessmentAnswer.prototype, "user", 2);
5258
5322
  __decorateClass([
5259
- Column49({ name: "question_id", type: "integer" }),
5260
- Index42()
5323
+ Column50({ name: "question_id", type: "integer" }),
5324
+ Index43()
5261
5325
  ], AssessmentAnswer.prototype, "questionId", 2);
5262
5326
  __decorateClass([
5263
- ManyToOne46(
5327
+ ManyToOne47(
5264
5328
  () => AssessmetQuestion,
5265
5329
  (assessmentQuestion) => assessmentQuestion.answers
5266
5330
  ),
5267
- JoinColumn46({ name: "question_id" })
5331
+ JoinColumn47({ name: "question_id" })
5268
5332
  ], AssessmentAnswer.prototype, "question", 2);
5269
5333
  __decorateClass([
5270
- Column49({ name: "selected_option_id", type: "integer" }),
5271
- Index42()
5334
+ Column50({ name: "selected_option_id", type: "integer" }),
5335
+ Index43()
5272
5336
  ], AssessmentAnswer.prototype, "selectedOptionId", 2);
5273
5337
  __decorateClass([
5274
- ManyToOne46(
5338
+ ManyToOne47(
5275
5339
  () => AssessmetQuestionOption,
5276
5340
  (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
5277
5341
  ),
5278
- JoinColumn46({ name: "selected_option_id" })
5342
+ JoinColumn47({ name: "selected_option_id" })
5279
5343
  ], AssessmentAnswer.prototype, "option", 2);
5280
5344
  __decorateClass([
5281
- Column49({
5345
+ Column50({
5282
5346
  name: "selected_answer_type",
5283
5347
  type: "enum",
5284
5348
  enum: SelectedAnswerTypeEnum
5285
5349
  })
5286
5350
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
5287
5351
  __decorateClass([
5288
- Column49({ name: "score", type: "float" })
5352
+ Column50({ name: "score", type: "float" })
5289
5353
  ], AssessmentAnswer.prototype, "score", 2);
5290
5354
  AssessmentAnswer = __decorateClass([
5291
- Entity48("assessment_answers")
5355
+ Entity49("assessment_answers")
5292
5356
  ], AssessmentAnswer);
5293
5357
 
5294
5358
  // src/entities/company-skill.entity.ts
5295
- import { Entity as Entity49, Column as Column50, Index as Index43, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
5359
+ import { Entity as Entity50, Column as Column51, Index as Index44, ManyToOne as ManyToOne48, JoinColumn as JoinColumn48 } from "typeorm";
5296
5360
  var CompanySkill = class extends BaseEntity {
5297
5361
  };
5298
5362
  // individual index to find core skills by user
5299
5363
  __decorateClass([
5300
- Column50({ name: "user_id", type: "integer", nullable: true }),
5301
- Index43()
5364
+ Column51({ name: "user_id", type: "integer", nullable: true }),
5365
+ Index44()
5302
5366
  ], CompanySkill.prototype, "userId", 2);
5303
5367
  __decorateClass([
5304
- ManyToOne47(() => User, (user) => user.freelancerSkills),
5305
- JoinColumn47({ name: "user_id" })
5368
+ ManyToOne48(() => User, (user) => user.freelancerSkills),
5369
+ JoinColumn48({ name: "user_id" })
5306
5370
  ], CompanySkill.prototype, "user", 2);
5307
5371
  __decorateClass([
5308
- Column50({ name: "skill_name", type: "varchar", nullable: true })
5372
+ Column51({ name: "skill_name", type: "varchar", nullable: true })
5309
5373
  ], CompanySkill.prototype, "skillName", 2);
5310
5374
  CompanySkill = __decorateClass([
5311
- Entity49("company_skills")
5375
+ Entity50("company_skills")
5312
5376
  ], CompanySkill);
5313
5377
 
5314
5378
  // src/entities/admin-user-role.entity.ts
5315
- import { Entity as Entity53, Column as Column54, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
5379
+ import { Entity as Entity54, Column as Column55, ManyToOne as ManyToOne50, JoinColumn as JoinColumn50 } from "typeorm";
5316
5380
 
5317
5381
  // src/entities/admin-role.entity.ts
5318
- import { Entity as Entity52, Column as Column53, Index as Index46, OneToMany as OneToMany19 } from "typeorm";
5382
+ import { Entity as Entity53, Column as Column54, Index as Index47, OneToMany as OneToMany19 } from "typeorm";
5319
5383
 
5320
5384
  // src/entities/admin-role-permission.entity.ts
5321
- import { Entity as Entity51, Column as Column52, ManyToOne as ManyToOne48, JoinColumn as JoinColumn48 } from "typeorm";
5385
+ import { Entity as Entity52, Column as Column53, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
5322
5386
 
5323
5387
  // src/entities/admin-permission.entity.ts
5324
- import { Entity as Entity50, Column as Column51, Index as Index44, OneToMany as OneToMany18 } from "typeorm";
5388
+ import { Entity as Entity51, Column as Column52, Index as Index45, OneToMany as OneToMany18 } from "typeorm";
5325
5389
  var AdminPermission = class extends BaseEntity {
5326
5390
  };
5327
5391
  __decorateClass([
5328
- Column51({ name: "permission_name", type: "varchar", nullable: true })
5392
+ Column52({ name: "permission_name", type: "varchar", nullable: true })
5329
5393
  ], AdminPermission.prototype, "permissionName", 2);
5330
5394
  __decorateClass([
5331
- Column51({
5395
+ Column52({
5332
5396
  name: "permission_slug",
5333
5397
  type: "varchar",
5334
5398
  unique: true,
5335
5399
  nullable: true
5336
5400
  }),
5337
- Index44()
5401
+ Index45()
5338
5402
  ], AdminPermission.prototype, "permissionSlug", 2);
5339
5403
  __decorateClass([
5340
- Column51({ name: "permission_description", type: "varchar", nullable: true })
5404
+ Column52({ name: "permission_description", type: "varchar", nullable: true })
5341
5405
  ], AdminPermission.prototype, "permissionDescription", 2);
5342
5406
  __decorateClass([
5343
- Column51({ name: "module", type: "varchar", nullable: true })
5407
+ Column52({ name: "module", type: "varchar", nullable: true })
5344
5408
  ], AdminPermission.prototype, "module", 2);
5345
5409
  __decorateClass([
5346
- Column51({ name: "is_active", type: "boolean", default: true })
5410
+ Column52({ name: "is_active", type: "boolean", default: true })
5347
5411
  ], AdminPermission.prototype, "isActive", 2);
5348
5412
  __decorateClass([
5349
5413
  OneToMany18(
@@ -5352,14 +5416,14 @@ __decorateClass([
5352
5416
  )
5353
5417
  ], AdminPermission.prototype, "adminRole", 2);
5354
5418
  AdminPermission = __decorateClass([
5355
- Entity50("admin_permissions")
5419
+ Entity51("admin_permissions")
5356
5420
  ], AdminPermission);
5357
5421
 
5358
5422
  // src/entities/admin-role-permission.entity.ts
5359
5423
  var AdminRolePermission = class extends BaseEntity {
5360
5424
  };
5361
5425
  __decorateClass([
5362
- Column52({
5426
+ Column53({
5363
5427
  name: "role_id",
5364
5428
  type: "int",
5365
5429
  nullable: true,
@@ -5367,11 +5431,11 @@ __decorateClass([
5367
5431
  })
5368
5432
  ], AdminRolePermission.prototype, "roleId", 2);
5369
5433
  __decorateClass([
5370
- ManyToOne48(() => AdminRole),
5371
- JoinColumn48({ name: "role_id" })
5434
+ ManyToOne49(() => AdminRole),
5435
+ JoinColumn49({ name: "role_id" })
5372
5436
  ], AdminRolePermission.prototype, "adminRole", 2);
5373
5437
  __decorateClass([
5374
- Column52({
5438
+ Column53({
5375
5439
  name: "permission_id",
5376
5440
  type: "int",
5377
5441
  nullable: true,
@@ -5379,28 +5443,28 @@ __decorateClass([
5379
5443
  })
5380
5444
  ], AdminRolePermission.prototype, "permissionId", 2);
5381
5445
  __decorateClass([
5382
- ManyToOne48(() => AdminPermission),
5383
- JoinColumn48({ name: "permission_id" })
5446
+ ManyToOne49(() => AdminPermission),
5447
+ JoinColumn49({ name: "permission_id" })
5384
5448
  ], AdminRolePermission.prototype, "adminPermissions", 2);
5385
5449
  AdminRolePermission = __decorateClass([
5386
- Entity51("admin_role_permissions")
5450
+ Entity52("admin_role_permissions")
5387
5451
  ], AdminRolePermission);
5388
5452
 
5389
5453
  // src/entities/admin-role.entity.ts
5390
5454
  var AdminRole = class extends BaseEntity {
5391
5455
  };
5392
5456
  __decorateClass([
5393
- Column53({ name: "role_name", type: "varchar", nullable: true })
5457
+ Column54({ name: "role_name", type: "varchar", nullable: true })
5394
5458
  ], AdminRole.prototype, "roleName", 2);
5395
5459
  __decorateClass([
5396
- Column53({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5397
- Index46()
5460
+ Column54({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5461
+ Index47()
5398
5462
  ], AdminRole.prototype, "roleSlug", 2);
5399
5463
  __decorateClass([
5400
- Column53({ name: "role_description", type: "varchar", nullable: true })
5464
+ Column54({ name: "role_description", type: "varchar", nullable: true })
5401
5465
  ], AdminRole.prototype, "roleDescription", 2);
5402
5466
  __decorateClass([
5403
- Column53({ name: "is_active", type: "boolean", default: true })
5467
+ Column54({ name: "is_active", type: "boolean", default: true })
5404
5468
  ], AdminRole.prototype, "isActive", 2);
5405
5469
  __decorateClass([
5406
5470
  OneToMany19(
@@ -5412,14 +5476,14 @@ __decorateClass([
5412
5476
  OneToMany19(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5413
5477
  ], AdminRole.prototype, "userRoles", 2);
5414
5478
  AdminRole = __decorateClass([
5415
- Entity52("admin_roles")
5479
+ Entity53("admin_roles")
5416
5480
  ], AdminRole);
5417
5481
 
5418
5482
  // src/entities/admin-user-role.entity.ts
5419
5483
  var AdminUserRole = class extends BaseEntity {
5420
5484
  };
5421
5485
  __decorateClass([
5422
- Column54({
5486
+ Column55({
5423
5487
  name: "user_id",
5424
5488
  type: "int",
5425
5489
  nullable: true,
@@ -5427,11 +5491,11 @@ __decorateClass([
5427
5491
  })
5428
5492
  ], AdminUserRole.prototype, "userId", 2);
5429
5493
  __decorateClass([
5430
- ManyToOne49(() => User),
5431
- JoinColumn49({ name: "user_id" })
5494
+ ManyToOne50(() => User),
5495
+ JoinColumn50({ name: "user_id" })
5432
5496
  ], AdminUserRole.prototype, "user", 2);
5433
5497
  __decorateClass([
5434
- Column54({
5498
+ Column55({
5435
5499
  name: "role_id",
5436
5500
  type: "int",
5437
5501
  nullable: true,
@@ -5439,70 +5503,70 @@ __decorateClass([
5439
5503
  })
5440
5504
  ], AdminUserRole.prototype, "roleId", 2);
5441
5505
  __decorateClass([
5442
- ManyToOne49(() => AdminRole),
5443
- JoinColumn49({ name: "role_id" })
5506
+ ManyToOne50(() => AdminRole),
5507
+ JoinColumn50({ name: "role_id" })
5444
5508
  ], AdminUserRole.prototype, "adminRole", 2);
5445
5509
  AdminUserRole = __decorateClass([
5446
- Entity53("admin_user_roles")
5510
+ Entity54("admin_user_roles")
5447
5511
  ], AdminUserRole);
5448
5512
 
5449
5513
  // src/entities/freelancer-resume.entity.ts
5450
5514
  import {
5451
- Entity as Entity54,
5452
- Column as Column55,
5453
- Index as Index48,
5454
- ManyToOne as ManyToOne50,
5455
- JoinColumn as JoinColumn50
5515
+ Entity as Entity55,
5516
+ Column as Column56,
5517
+ Index as Index49,
5518
+ ManyToOne as ManyToOne51,
5519
+ JoinColumn as JoinColumn51
5456
5520
  } from "typeorm";
5457
5521
  var FreelancerResume = class extends BaseEntity {
5458
5522
  };
5459
5523
  // individual index to find profile by user
5460
5524
  __decorateClass([
5461
- Column55({ name: "user_id", type: "integer", nullable: true }),
5462
- Index48()
5525
+ Column56({ name: "user_id", type: "integer", nullable: true }),
5526
+ Index49()
5463
5527
  ], FreelancerResume.prototype, "userId", 2);
5464
5528
  __decorateClass([
5465
- ManyToOne50(() => User, (user) => user.freelancerProfile),
5466
- JoinColumn50({ name: "user_id" })
5529
+ ManyToOne51(() => User, (user) => user.freelancerProfile),
5530
+ JoinColumn51({ name: "user_id" })
5467
5531
  ], FreelancerResume.prototype, "user", 2);
5468
5532
  __decorateClass([
5469
- Column55({ name: "resume_data", type: "jsonb", nullable: true })
5533
+ Column56({ name: "resume_data", type: "jsonb", nullable: true })
5470
5534
  ], FreelancerResume.prototype, "resumeData", 2);
5471
5535
  __decorateClass([
5472
- Column55({ name: "processed_resume_data", type: "jsonb", nullable: true })
5536
+ Column56({ name: "processed_resume_data", type: "jsonb", nullable: true })
5473
5537
  ], FreelancerResume.prototype, "processedResumeData", 2);
5474
5538
  FreelancerResume = __decorateClass([
5475
- Entity54("freelancer_resumes")
5539
+ Entity55("freelancer_resumes")
5476
5540
  ], FreelancerResume);
5477
5541
 
5478
5542
  // src/entities/signature.entity.ts
5479
5543
  import {
5480
- Entity as Entity55,
5481
- Column as Column56,
5482
- Index as Index49,
5483
- ManyToOne as ManyToOne51,
5484
- JoinColumn as JoinColumn51
5544
+ Entity as Entity56,
5545
+ Column as Column57,
5546
+ Index as Index50,
5547
+ ManyToOne as ManyToOne52,
5548
+ JoinColumn as JoinColumn52
5485
5549
  } from "typeorm";
5486
5550
  var Signature = class extends BaseEntity {
5487
5551
  };
5488
5552
  // individual index to find profile by user
5489
5553
  __decorateClass([
5490
- Column56({ name: "user_id", type: "integer", nullable: true }),
5491
- Index49()
5554
+ Column57({ name: "user_id", type: "integer", nullable: true }),
5555
+ Index50()
5492
5556
  ], Signature.prototype, "userId", 2);
5493
5557
  __decorateClass([
5494
- ManyToOne51(() => User, (user) => user.signatures),
5495
- JoinColumn51({ name: "user_id" })
5558
+ ManyToOne52(() => User, (user) => user.signatures),
5559
+ JoinColumn52({ name: "user_id" })
5496
5560
  ], Signature.prototype, "user", 2);
5497
5561
  __decorateClass([
5498
- Column56({ name: "signature_url", type: "text", nullable: true })
5562
+ Column57({ name: "signature_url", type: "text", nullable: true })
5499
5563
  ], Signature.prototype, "signatureUrl", 2);
5500
5564
  Signature = __decorateClass([
5501
- Entity55("signatures")
5565
+ Entity56("signatures")
5502
5566
  ], Signature);
5503
5567
 
5504
5568
  // src/entities/dispute.entity.ts
5505
- import { Entity as Entity56, Column as Column57, Index as Index50, JoinColumn as JoinColumn52, ManyToOne as ManyToOne52 } from "typeorm";
5569
+ import { Entity as Entity57, Column as Column58, Index as Index51, JoinColumn as JoinColumn53, ManyToOne as ManyToOne53 } from "typeorm";
5506
5570
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
5507
5571
  DisputeStatusEnum2["OPEN"] = "OPEN";
5508
5572
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -5523,36 +5587,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
5523
5587
  var Dispute = class extends BaseEntity {
5524
5588
  };
5525
5589
  __decorateClass([
5526
- Column57({ name: "client_id", type: "integer", nullable: true }),
5527
- Index50()
5590
+ Column58({ name: "client_id", type: "integer", nullable: true }),
5591
+ Index51()
5528
5592
  ], Dispute.prototype, "clientId", 2);
5529
5593
  __decorateClass([
5530
- ManyToOne52(() => User, (user) => user.clientDisputes),
5531
- JoinColumn52({ name: "client_id" })
5594
+ ManyToOne53(() => User, (user) => user.clientDisputes),
5595
+ JoinColumn53({ name: "client_id" })
5532
5596
  ], Dispute.prototype, "client", 2);
5533
5597
  __decorateClass([
5534
- Column57({ name: "freelancer_id", type: "integer", nullable: true }),
5535
- Index50()
5598
+ Column58({ name: "freelancer_id", type: "integer", nullable: true }),
5599
+ Index51()
5536
5600
  ], Dispute.prototype, "freelancerId", 2);
5537
5601
  __decorateClass([
5538
- ManyToOne52(() => User, (user) => user.freelancerDisputes),
5539
- JoinColumn52({ name: "freelancer_id" })
5602
+ ManyToOne53(() => User, (user) => user.freelancerDisputes),
5603
+ JoinColumn53({ name: "freelancer_id" })
5540
5604
  ], Dispute.prototype, "freelancer", 2);
5541
5605
  __decorateClass([
5542
- Column57({ name: "dispute_unique_id", type: "varchar", unique: true })
5606
+ Column58({ name: "dispute_unique_id", type: "varchar", unique: true })
5543
5607
  ], Dispute.prototype, "disputeUniqueId", 2);
5544
5608
  __decorateClass([
5545
- Column57({ name: "dispute_type", type: "varchar", nullable: true }),
5546
- Index50()
5609
+ Column58({ name: "dispute_type", type: "varchar", nullable: true }),
5610
+ Index51()
5547
5611
  ], Dispute.prototype, "disputeType", 2);
5548
5612
  __decorateClass([
5549
- Column57({ name: "description", type: "varchar", nullable: true })
5613
+ Column58({ name: "description", type: "varchar", nullable: true })
5550
5614
  ], Dispute.prototype, "description", 2);
5551
5615
  __decorateClass([
5552
- Column57({ name: "comment", type: "varchar", nullable: true })
5616
+ Column58({ name: "comment", type: "varchar", nullable: true })
5553
5617
  ], Dispute.prototype, "comment", 2);
5554
5618
  __decorateClass([
5555
- Column57({
5619
+ Column58({
5556
5620
  name: "status",
5557
5621
  type: "enum",
5558
5622
  enum: DisputeStatusEnum,
@@ -5560,7 +5624,7 @@ __decorateClass([
5560
5624
  })
5561
5625
  ], Dispute.prototype, "status", 2);
5562
5626
  __decorateClass([
5563
- Column57({
5627
+ Column58({
5564
5628
  name: "initiator_type",
5565
5629
  type: "enum",
5566
5630
  enum: InitiatorTypeEnum,
@@ -5569,33 +5633,33 @@ __decorateClass([
5569
5633
  })
5570
5634
  ], Dispute.prototype, "initiatorType", 2);
5571
5635
  __decorateClass([
5572
- Column57({ name: "initiator_id", type: "integer" }),
5573
- Index50()
5636
+ Column58({ name: "initiator_id", type: "integer" }),
5637
+ Index51()
5574
5638
  ], Dispute.prototype, "initiatorId", 2);
5575
5639
  __decorateClass([
5576
- ManyToOne52(() => User, (user) => user.initiatedDisputes),
5577
- JoinColumn52({ name: "initiator_id" })
5640
+ ManyToOne53(() => User, (user) => user.initiatedDisputes),
5641
+ JoinColumn53({ name: "initiator_id" })
5578
5642
  ], Dispute.prototype, "initiator", 2);
5579
5643
  __decorateClass([
5580
- Column57({ name: "respondent_id", type: "integer", nullable: true }),
5581
- Index50()
5644
+ Column58({ name: "respondent_id", type: "integer", nullable: true }),
5645
+ Index51()
5582
5646
  ], Dispute.prototype, "respondentId", 2);
5583
5647
  __decorateClass([
5584
- ManyToOne52(() => User, (user) => user.respondentDisputes, { nullable: true }),
5585
- JoinColumn52({ name: "respondent_id" })
5648
+ ManyToOne53(() => User, (user) => user.respondentDisputes, { nullable: true }),
5649
+ JoinColumn53({ name: "respondent_id" })
5586
5650
  ], Dispute.prototype, "respondent", 2);
5587
5651
  __decorateClass([
5588
- Column57({ name: "attachments", type: "jsonb", nullable: true })
5652
+ Column58({ name: "attachments", type: "jsonb", nullable: true })
5589
5653
  ], Dispute.prototype, "attachments", 2);
5590
5654
  __decorateClass([
5591
- Column57({ name: "dynamic_fields", type: "jsonb", nullable: true })
5655
+ Column58({ name: "dynamic_fields", type: "jsonb", nullable: true })
5592
5656
  ], Dispute.prototype, "dynamicFields", 2);
5593
5657
  Dispute = __decorateClass([
5594
- Entity56("disputes")
5658
+ Entity57("disputes")
5595
5659
  ], Dispute);
5596
5660
 
5597
5661
  // src/entities/stripe-transaction.entity.ts
5598
- import { Entity as Entity57, Column as Column58, Index as Index51, ManyToOne as ManyToOne53, JoinColumn as JoinColumn53 } from "typeorm";
5662
+ import { Entity as Entity58, Column as Column59, Index as Index52, ManyToOne as ManyToOne54, JoinColumn as JoinColumn54 } from "typeorm";
5599
5663
  var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
5600
5664
  StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
5601
5665
  StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -5617,97 +5681,97 @@ var StripeTransaction = class extends BaseEntity {
5617
5681
  // Full Stripe session response
5618
5682
  };
5619
5683
  __decorateClass([
5620
- Column58({ name: "user_id", type: "integer", nullable: true }),
5621
- Index51()
5684
+ Column59({ name: "user_id", type: "integer", nullable: true }),
5685
+ Index52()
5622
5686
  ], StripeTransaction.prototype, "userId", 2);
5623
5687
  __decorateClass([
5624
- ManyToOne53(() => User, (user) => user.stripeTransactions),
5625
- JoinColumn53({ name: "user_id" })
5688
+ ManyToOne54(() => User, (user) => user.stripeTransactions),
5689
+ JoinColumn54({ name: "user_id" })
5626
5690
  ], StripeTransaction.prototype, "user", 2);
5627
5691
  __decorateClass([
5628
- Column58({ name: "stripe_session_id", type: "varchar", nullable: true })
5692
+ Column59({ name: "stripe_session_id", type: "varchar", nullable: true })
5629
5693
  ], StripeTransaction.prototype, "stripeSessionId", 2);
5630
5694
  __decorateClass([
5631
- Column58({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5695
+ Column59({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5632
5696
  ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
5633
5697
  __decorateClass([
5634
- Column58({ name: "stripe_charge_id", type: "varchar", nullable: true })
5698
+ Column59({ name: "stripe_charge_id", type: "varchar", nullable: true })
5635
5699
  ], StripeTransaction.prototype, "stripeChargeId", 2);
5636
5700
  __decorateClass([
5637
- Column58({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5701
+ Column59({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5638
5702
  ], StripeTransaction.prototype, "stripeReceiptUrl", 2);
5639
5703
  __decorateClass([
5640
- Column58({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5704
+ Column59({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5641
5705
  ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
5642
5706
  __decorateClass([
5643
- Column58({ name: "stripe_payment_method", type: "varchar", nullable: true })
5707
+ Column59({ name: "stripe_payment_method", type: "varchar", nullable: true })
5644
5708
  ], StripeTransaction.prototype, "stripePaymentMethod", 2);
5645
5709
  __decorateClass([
5646
- Column58({ name: "stripe_payment_status", type: "varchar", nullable: true })
5710
+ Column59({ name: "stripe_payment_status", type: "varchar", nullable: true })
5647
5711
  ], StripeTransaction.prototype, "stripePaymentStatus", 2);
5648
5712
  __decorateClass([
5649
- Column58({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5713
+ Column59({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5650
5714
  ], StripeTransaction.prototype, "type", 2);
5651
5715
  __decorateClass([
5652
- Column58({ name: "currency", type: "varchar", nullable: true })
5716
+ Column59({ name: "currency", type: "varchar", nullable: true })
5653
5717
  ], StripeTransaction.prototype, "currency", 2);
5654
5718
  __decorateClass([
5655
- Column58({ 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" })
5719
+ Column59({ 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" })
5656
5720
  ], StripeTransaction.prototype, "desiredDepositCents", 2);
5657
5721
  __decorateClass([
5658
- Column58({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5722
+ Column59({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5659
5723
  ], StripeTransaction.prototype, "platformFeeCents", 2);
5660
5724
  __decorateClass([
5661
- Column58({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5725
+ Column59({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5662
5726
  ], StripeTransaction.prototype, "taxCents", 2);
5663
5727
  __decorateClass([
5664
- Column58({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5728
+ Column59({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5665
5729
  ], StripeTransaction.prototype, "estimatedStripeFee", 2);
5666
5730
  __decorateClass([
5667
- Column58({ 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" })
5731
+ Column59({ 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" })
5668
5732
  ], StripeTransaction.prototype, "estimatedTotalCents", 2);
5669
5733
  __decorateClass([
5670
- Column58({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5734
+ Column59({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5671
5735
  ], StripeTransaction.prototype, "actualStripeFee", 2);
5672
5736
  __decorateClass([
5673
- Column58({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5737
+ Column59({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5674
5738
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
5675
5739
  __decorateClass([
5676
- Column58({ 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" })
5740
+ Column59({ 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" })
5677
5741
  ], StripeTransaction.prototype, "netReceivedCents", 2);
5678
5742
  __decorateClass([
5679
- Column58({ name: "description", type: "text", nullable: true })
5743
+ Column59({ name: "description", type: "text", nullable: true })
5680
5744
  ], StripeTransaction.prototype, "description", 2);
5681
5745
  __decorateClass([
5682
- Column58({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5746
+ Column59({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5683
5747
  ], StripeTransaction.prototype, "status", 2);
5684
5748
  __decorateClass([
5685
- Column58({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5749
+ Column59({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5686
5750
  ], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
5687
5751
  __decorateClass([
5688
- Column58({ name: "completed_at", type: "timestamptz", nullable: true })
5752
+ Column59({ name: "completed_at", type: "timestamptz", nullable: true })
5689
5753
  ], StripeTransaction.prototype, "completedAt", 2);
5690
5754
  __decorateClass([
5691
- Column58({ name: "billing_details", type: "jsonb", nullable: true })
5755
+ Column59({ name: "billing_details", type: "jsonb", nullable: true })
5692
5756
  ], StripeTransaction.prototype, "billingDetails", 2);
5693
5757
  __decorateClass([
5694
- Column58({ name: "payment_method_details", type: "jsonb", nullable: true })
5758
+ Column59({ name: "payment_method_details", type: "jsonb", nullable: true })
5695
5759
  ], StripeTransaction.prototype, "paymentMethodDetails", 2);
5696
5760
  __decorateClass([
5697
- Column58({ name: "raw_session_payload", type: "jsonb", nullable: true })
5761
+ Column59({ name: "raw_session_payload", type: "jsonb", nullable: true })
5698
5762
  ], StripeTransaction.prototype, "rawSessionPayload", 2);
5699
5763
  __decorateClass([
5700
- Column58({ name: "raw_session_response", type: "jsonb", nullable: true })
5764
+ Column59({ name: "raw_session_response", type: "jsonb", nullable: true })
5701
5765
  ], StripeTransaction.prototype, "rawSessionResponse", 2);
5702
5766
  StripeTransaction = __decorateClass([
5703
- Entity57("stripe_transactions")
5767
+ Entity58("stripe_transactions")
5704
5768
  ], StripeTransaction);
5705
5769
 
5706
5770
  // src/entities/wallet.entity.ts
5707
- import { Entity as Entity59, Column as Column60, Index as Index53, JoinColumn as JoinColumn55, OneToOne as OneToOne10, OneToMany as OneToMany20 } from "typeorm";
5771
+ import { Entity as Entity60, Column as Column61, Index as Index54, JoinColumn as JoinColumn56, OneToOne as OneToOne11, OneToMany as OneToMany20 } from "typeorm";
5708
5772
 
5709
5773
  // src/entities/wallet-transaction.entity.ts
5710
- import { Entity as Entity58, Column as Column59, Index as Index52, ManyToOne as ManyToOne54, JoinColumn as JoinColumn54 } from "typeorm";
5774
+ import { Entity as Entity59, Column as Column60, Index as Index53, ManyToOne as ManyToOne55, JoinColumn as JoinColumn55 } from "typeorm";
5711
5775
  var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
5712
5776
  WalletTransactionTypeEnum2["CR"] = "CR";
5713
5777
  WalletTransactionTypeEnum2["DR"] = "DR";
@@ -5724,46 +5788,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
5724
5788
  var WalletTransaction = class extends BaseEntity {
5725
5789
  };
5726
5790
  __decorateClass([
5727
- Column59({ name: "wallet_id", type: "integer", nullable: true }),
5728
- Index52()
5791
+ Column60({ name: "wallet_id", type: "integer", nullable: true }),
5792
+ Index53()
5729
5793
  ], WalletTransaction.prototype, "walletId", 2);
5730
5794
  __decorateClass([
5731
- ManyToOne54(() => Wallet, (wallet) => wallet.walletTransactions),
5732
- JoinColumn54({ name: "wallet_id" })
5795
+ ManyToOne55(() => Wallet, (wallet) => wallet.walletTransactions),
5796
+ JoinColumn55({ name: "wallet_id" })
5733
5797
  ], WalletTransaction.prototype, "wallet", 2);
5734
5798
  __decorateClass([
5735
- Column59({ name: "amount", type: "bigint", nullable: true })
5799
+ Column60({ name: "amount", type: "bigint", nullable: true })
5736
5800
  ], WalletTransaction.prototype, "amount", 2);
5737
5801
  __decorateClass([
5738
- Column59({ name: "balance_before", type: "bigint", nullable: true })
5802
+ Column60({ name: "balance_before", type: "bigint", nullable: true })
5739
5803
  ], WalletTransaction.prototype, "balanceBefore", 2);
5740
5804
  __decorateClass([
5741
- Column59({ name: "balance_after", type: "bigint", nullable: true })
5805
+ Column60({ name: "balance_after", type: "bigint", nullable: true })
5742
5806
  ], WalletTransaction.prototype, "balanceAfter", 2);
5743
5807
  __decorateClass([
5744
- Column59({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5808
+ Column60({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5745
5809
  ], WalletTransaction.prototype, "type", 2);
5746
5810
  __decorateClass([
5747
- Column59({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5811
+ Column60({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5748
5812
  ], WalletTransaction.prototype, "status", 2);
5749
5813
  __decorateClass([
5750
- Column59({ name: "description", type: "text", nullable: true })
5814
+ Column60({ name: "description", type: "text", nullable: true })
5751
5815
  ], WalletTransaction.prototype, "description", 2);
5752
5816
  __decorateClass([
5753
- Column59({ name: "completed_at", type: "timestamptz", nullable: true })
5817
+ Column60({ name: "completed_at", type: "timestamptz", nullable: true })
5754
5818
  ], WalletTransaction.prototype, "completedAt", 2);
5755
5819
  __decorateClass([
5756
- Column59({ name: "transaction_for", type: "varchar", nullable: true })
5820
+ Column60({ name: "transaction_for", type: "varchar", nullable: true })
5757
5821
  ], WalletTransaction.prototype, "transactionFor", 2);
5758
5822
  __decorateClass([
5759
- Column59({ name: "meta_data", type: "varchar", nullable: true })
5823
+ Column60({ name: "meta_data", type: "varchar", nullable: true })
5760
5824
  ], WalletTransaction.prototype, "metaData", 2);
5761
5825
  __decorateClass([
5762
- Column59({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5763
- Index52()
5826
+ Column60({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5827
+ Index53()
5764
5828
  ], WalletTransaction.prototype, "stripeTransactionId", 2);
5765
5829
  WalletTransaction = __decorateClass([
5766
- Entity58("wallet_transactions")
5830
+ Entity59("wallet_transactions")
5767
5831
  ], WalletTransaction);
5768
5832
 
5769
5833
  // src/entities/wallet.entity.ts
@@ -5781,39 +5845,39 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
5781
5845
  var Wallet = class extends BaseEntity {
5782
5846
  };
5783
5847
  __decorateClass([
5784
- Column60({ name: "user_id", type: "integer", nullable: true }),
5785
- Index53()
5848
+ Column61({ name: "user_id", type: "integer", nullable: true }),
5849
+ Index54()
5786
5850
  ], Wallet.prototype, "userId", 2);
5787
5851
  __decorateClass([
5788
- OneToOne10(() => User, (user) => user.wallet),
5789
- JoinColumn55({ name: "user_id" })
5852
+ OneToOne11(() => User, (user) => user.wallet),
5853
+ JoinColumn56({ name: "user_id" })
5790
5854
  ], Wallet.prototype, "user", 2);
5791
5855
  __decorateClass([
5792
- Column60({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5856
+ Column61({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5793
5857
  ], Wallet.prototype, "accountType", 2);
5794
5858
  __decorateClass([
5795
- Column60({ name: "stripe_account_id", type: "varchar", nullable: true })
5859
+ Column61({ name: "stripe_account_id", type: "varchar", nullable: true })
5796
5860
  ], Wallet.prototype, "stripeAccountId", 2);
5797
5861
  __decorateClass([
5798
- Column60({ name: "stripe_customer_id", type: "varchar", nullable: true })
5862
+ Column61({ name: "stripe_customer_id", type: "varchar", nullable: true })
5799
5863
  ], Wallet.prototype, "stripeCustomerId", 2);
5800
5864
  __decorateClass([
5801
- Column60({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
5865
+ Column61({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
5802
5866
  ], Wallet.prototype, "walletBalance", 2);
5803
5867
  __decorateClass([
5804
- Column60({ 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" })
5868
+ Column61({ 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" })
5805
5869
  ], Wallet.prototype, "walletBalanceCents", 2);
5806
5870
  __decorateClass([
5807
- Column60({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5871
+ Column61({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5808
5872
  ], Wallet.prototype, "onboardingStatus", 2);
5809
5873
  __decorateClass([
5810
- Column60({ name: "stripe_metadata", type: "jsonb", nullable: true })
5874
+ Column61({ name: "stripe_metadata", type: "jsonb", nullable: true })
5811
5875
  ], Wallet.prototype, "stripeMetadata", 2);
5812
5876
  __decorateClass([
5813
5877
  OneToMany20(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5814
5878
  ], Wallet.prototype, "walletTransactions", 2);
5815
5879
  Wallet = __decorateClass([
5816
- Entity59("wallets")
5880
+ Entity60("wallets")
5817
5881
  ], Wallet);
5818
5882
 
5819
5883
  // src/entities/user.entity.ts
@@ -5841,51 +5905,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
5841
5905
  var User = class extends BaseEntity {
5842
5906
  };
5843
5907
  __decorateClass([
5844
- Column61({ name: "unique_id", type: "varchar", unique: true })
5908
+ Column62({ name: "unique_id", type: "varchar", unique: true })
5845
5909
  ], User.prototype, "uniqueId", 2);
5846
5910
  __decorateClass([
5847
- Column61({ name: "parent_id", type: "integer", nullable: true }),
5848
- Index54()
5911
+ Column62({ name: "parent_id", type: "integer", nullable: true }),
5912
+ Index55()
5849
5913
  ], User.prototype, "parentId", 2);
5850
5914
  __decorateClass([
5851
- ManyToOne55(() => User, (user) => user.children, { nullable: true }),
5852
- JoinColumn56({ name: "parent_id" })
5915
+ ManyToOne56(() => User, (user) => user.children, { nullable: true }),
5916
+ JoinColumn57({ name: "parent_id" })
5853
5917
  ], User.prototype, "parent", 2);
5854
5918
  __decorateClass([
5855
5919
  OneToMany21(() => User, (user) => user.parent)
5856
5920
  ], User.prototype, "children", 2);
5857
5921
  __decorateClass([
5858
- Column61({ name: "username", type: "varchar", unique: true, nullable: true })
5922
+ Column62({ name: "username", type: "varchar", unique: true, nullable: true })
5859
5923
  ], User.prototype, "username", 2);
5860
5924
  __decorateClass([
5861
- Column61({ name: "first_name", type: "varchar", length: 100, nullable: true })
5925
+ Column62({ name: "first_name", type: "varchar", length: 100, nullable: true })
5862
5926
  ], User.prototype, "firstName", 2);
5863
5927
  __decorateClass([
5864
- Column61({ name: "last_name", type: "varchar", length: 100, nullable: true })
5928
+ Column62({ name: "last_name", type: "varchar", length: 100, nullable: true })
5865
5929
  ], User.prototype, "lastName", 2);
5866
5930
  __decorateClass([
5867
- Column61({ name: "date_of_birth", type: "date", nullable: true })
5931
+ Column62({ name: "date_of_birth", type: "date", nullable: true })
5868
5932
  ], User.prototype, "dateOfBirth", 2);
5869
5933
  __decorateClass([
5870
- Column61({ name: "gender", type: "varchar", length: 10, nullable: true })
5934
+ Column62({ name: "gender", type: "varchar", length: 10, nullable: true })
5871
5935
  ], User.prototype, "gender", 2);
5872
5936
  __decorateClass([
5873
- Column61({ name: "profile_picture_url", type: "text", nullable: true })
5937
+ Column62({ name: "profile_picture_url", type: "text", nullable: true })
5874
5938
  ], User.prototype, "profilePictureUrl", 2);
5875
5939
  __decorateClass([
5876
- Column61({ name: "email", type: "varchar", unique: true })
5940
+ Column62({ name: "email", type: "varchar", unique: true })
5877
5941
  ], User.prototype, "email", 2);
5878
5942
  __decorateClass([
5879
- Column61({ name: "mobile_code", type: "varchar", nullable: true })
5943
+ Column62({ name: "mobile_code", type: "varchar", nullable: true })
5880
5944
  ], User.prototype, "mobileCode", 2);
5881
5945
  __decorateClass([
5882
- Column61({ name: "mobile", type: "varchar", nullable: true })
5946
+ Column62({ name: "mobile", type: "varchar", nullable: true })
5883
5947
  ], User.prototype, "mobile", 2);
5884
5948
  __decorateClass([
5885
- Column61({ name: "password", type: "varchar", nullable: true })
5949
+ Column62({ name: "password", type: "varchar", nullable: true })
5886
5950
  ], User.prototype, "password", 2);
5887
5951
  __decorateClass([
5888
- Column61({
5952
+ Column62({
5889
5953
  name: "account_type",
5890
5954
  type: "enum",
5891
5955
  enum: AccountType,
@@ -5893,7 +5957,7 @@ __decorateClass([
5893
5957
  })
5894
5958
  ], User.prototype, "accountType", 2);
5895
5959
  __decorateClass([
5896
- Column61({
5960
+ Column62({
5897
5961
  name: "account_status",
5898
5962
  type: "enum",
5899
5963
  enum: AccountStatus,
@@ -5901,42 +5965,42 @@ __decorateClass([
5901
5965
  })
5902
5966
  ], User.prototype, "accountStatus", 2);
5903
5967
  __decorateClass([
5904
- Column61({ name: "is_email_verified", type: "boolean", default: false })
5968
+ Column62({ name: "is_email_verified", type: "boolean", default: false })
5905
5969
  ], User.prototype, "isEmailVerified", 2);
5906
5970
  __decorateClass([
5907
- Column61({ name: "is_mobile_verified", type: "boolean", default: false })
5971
+ Column62({ name: "is_mobile_verified", type: "boolean", default: false })
5908
5972
  ], User.prototype, "isMobileVerified", 2);
5909
5973
  __decorateClass([
5910
- Column61({ name: "is_social", type: "boolean", default: false })
5974
+ Column62({ name: "is_social", type: "boolean", default: false })
5911
5975
  ], User.prototype, "isSocial", 2);
5912
5976
  __decorateClass([
5913
- Column61({
5977
+ Column62({
5914
5978
  name: "last_login_at",
5915
5979
  type: "timestamp with time zone",
5916
5980
  nullable: true
5917
5981
  })
5918
5982
  ], User.prototype, "lastLoginAt", 2);
5919
5983
  __decorateClass([
5920
- Column61({ name: "last_login_ip", type: "varchar", nullable: true })
5984
+ Column62({ name: "last_login_ip", type: "varchar", nullable: true })
5921
5985
  ], User.prototype, "lastLoginIp", 2);
5922
5986
  __decorateClass([
5923
- Column61({ name: "reset_token", type: "varchar", nullable: true })
5987
+ Column62({ name: "reset_token", type: "varchar", nullable: true })
5924
5988
  ], User.prototype, "resetToken", 2);
5925
5989
  __decorateClass([
5926
- Column61({
5990
+ Column62({
5927
5991
  name: "reset_token_expire_at",
5928
5992
  type: "timestamp with time zone",
5929
5993
  nullable: true
5930
5994
  })
5931
5995
  ], User.prototype, "resetTokenExpireAt", 2);
5932
5996
  __decorateClass([
5933
- Column61({ name: "set_password_token", type: "varchar", nullable: true })
5997
+ Column62({ name: "set_password_token", type: "varchar", nullable: true })
5934
5998
  ], User.prototype, "setPasswordToken", 2);
5935
5999
  __decorateClass([
5936
6000
  OneToMany21(() => RefreshToken, (token) => token.user)
5937
6001
  ], User.prototype, "refreshTokens", 2);
5938
6002
  __decorateClass([
5939
- Column61({
6003
+ Column62({
5940
6004
  name: "provider",
5941
6005
  type: "enum",
5942
6006
  enum: Provider,
@@ -5945,19 +6009,19 @@ __decorateClass([
5945
6009
  })
5946
6010
  ], User.prototype, "provider", 2);
5947
6011
  __decorateClass([
5948
- Column61({ name: "provider_token", type: "varchar", nullable: true })
6012
+ Column62({ name: "provider_token", type: "varchar", nullable: true })
5949
6013
  ], User.prototype, "providerToken", 2);
5950
6014
  __decorateClass([
5951
- Column61({ name: "linkedin_id", type: "varchar", nullable: true })
6015
+ Column62({ name: "linkedin_id", type: "varchar", nullable: true })
5952
6016
  ], User.prototype, "linkedInId", 2);
5953
6017
  __decorateClass([
5954
- Column61({ name: "google_id", type: "varchar", nullable: true })
6018
+ Column62({ name: "google_id", type: "varchar", nullable: true })
5955
6019
  ], User.prototype, "googleId", 2);
5956
6020
  __decorateClass([
5957
- Column61({ name: "gitlabs_id", type: "varchar", nullable: true })
6021
+ Column62({ name: "gitlabs_id", type: "varchar", nullable: true })
5958
6022
  ], User.prototype, "gitLabsId", 2);
5959
6023
  __decorateClass([
5960
- Column61({ name: "onboarded_by", type: "varchar", nullable: true })
6024
+ Column62({ name: "onboarded_by", type: "varchar", nullable: true })
5961
6025
  ], User.prototype, "onBoardedBy", 2);
5962
6026
  __decorateClass([
5963
6027
  OneToMany21(() => Otp, (otp) => otp.user)
@@ -5966,7 +6030,7 @@ __decorateClass([
5966
6030
  OneToMany21(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
5967
6031
  ], User.prototype, "senseloafLogs", 2);
5968
6032
  __decorateClass([
5969
- OneToOne11(() => CompanyProfile, (companyProfile) => companyProfile.user)
6033
+ OneToOne12(() => CompanyProfile, (companyProfile) => companyProfile.user)
5970
6034
  ], User.prototype, "companyProfile", 2);
5971
6035
  __decorateClass([
5972
6036
  OneToMany21(() => CompanySkill, (companySkill) => companySkill.user)
@@ -5984,13 +6048,13 @@ __decorateClass([
5984
6048
  OneToMany21(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
5985
6049
  ], User.prototype, "clientF2FInterviews", 2);
5986
6050
  __decorateClass([
5987
- OneToOne11(
6051
+ OneToOne12(
5988
6052
  () => FreelancerProfile,
5989
6053
  (freelancerProfile) => freelancerProfile.user
5990
6054
  )
5991
6055
  ], User.prototype, "freelancerProfile", 2);
5992
6056
  __decorateClass([
5993
- OneToOne11(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
6057
+ OneToOne12(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
5994
6058
  ], User.prototype, "freelancerResume", 2);
5995
6059
  __decorateClass([
5996
6060
  OneToMany21(
@@ -6041,7 +6105,7 @@ __decorateClass([
6041
6105
  )
6042
6106
  ], User.prototype, "freelancerFramework", 2);
6043
6107
  __decorateClass([
6044
- OneToOne11(
6108
+ OneToOne12(
6045
6109
  () => FreelancerDeclaration,
6046
6110
  (freelancerDeclaration) => freelancerDeclaration.user
6047
6111
  )
@@ -6091,17 +6155,23 @@ __decorateClass([
6091
6155
  __decorateClass([
6092
6156
  OneToMany21(() => Contract, (contract) => contract.client)
6093
6157
  ], User.prototype, "clientContracts", 2);
6158
+ __decorateClass([
6159
+ OneToMany21(() => Hiring, (hiring) => hiring.client)
6160
+ ], User.prototype, "clientHirings", 2);
6094
6161
  __decorateClass([
6095
6162
  OneToMany21(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
6096
6163
  ], User.prototype, "clientEscrowWallets", 2);
6097
6164
  __decorateClass([
6098
6165
  OneToMany21(() => Contract, (contract) => contract.freelancer)
6099
6166
  ], User.prototype, "freelancerContracts", 2);
6167
+ __decorateClass([
6168
+ OneToMany21(() => Hiring, (hiring) => hiring.freelancer)
6169
+ ], User.prototype, "freelancerHirings", 2);
6100
6170
  __decorateClass([
6101
6171
  OneToMany21(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
6102
6172
  ], User.prototype, "freelancerEscrowWallets", 2);
6103
6173
  __decorateClass([
6104
- OneToOne11(() => Signature, (signature) => signature.user)
6174
+ OneToOne12(() => Signature, (signature) => signature.user)
6105
6175
  ], User.prototype, "signatures", 2);
6106
6176
  __decorateClass([
6107
6177
  OneToMany21(() => Timesheet, (timesheet) => timesheet.client)
@@ -6134,7 +6204,7 @@ __decorateClass([
6134
6204
  OneToMany21(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
6135
6205
  ], User.prototype, "respondentDisputes", 2);
6136
6206
  __decorateClass([
6137
- OneToOne11(() => Wallet, (wallet) => wallet.user)
6207
+ OneToOne12(() => Wallet, (wallet) => wallet.user)
6138
6208
  ], User.prototype, "wallet", 2);
6139
6209
  __decorateClass([
6140
6210
  OneToMany21(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
@@ -6146,7 +6216,7 @@ __decorateClass([
6146
6216
  OneToMany21(() => Dispute, (dispute) => dispute.freelancer)
6147
6217
  ], User.prototype, "freelancerDisputes", 2);
6148
6218
  User = __decorateClass([
6149
- Entity60("users")
6219
+ Entity61("users")
6150
6220
  ], User);
6151
6221
 
6152
6222
  // src/entities/rating.entity.ts
@@ -6158,36 +6228,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
6158
6228
  var Rating = class extends BaseEntity {
6159
6229
  };
6160
6230
  __decorateClass([
6161
- Column62({ name: "reviewer_id", type: "integer" }),
6162
- Index55()
6231
+ Column63({ name: "reviewer_id", type: "integer" }),
6232
+ Index56()
6163
6233
  ], Rating.prototype, "reviewer_id", 2);
6164
6234
  __decorateClass([
6165
- ManyToOne56(() => User, { onDelete: "CASCADE" }),
6166
- JoinColumn57({ name: "reviewer_id" })
6235
+ ManyToOne57(() => User, { onDelete: "CASCADE" }),
6236
+ JoinColumn58({ name: "reviewer_id" })
6167
6237
  ], Rating.prototype, "reviewer", 2);
6168
6238
  __decorateClass([
6169
- Column62({ name: "reviewee_id", type: "integer" }),
6170
- Index55()
6239
+ Column63({ name: "reviewee_id", type: "integer" }),
6240
+ Index56()
6171
6241
  ], Rating.prototype, "reviewee_id", 2);
6172
6242
  __decorateClass([
6173
- ManyToOne56(() => User, { onDelete: "CASCADE" }),
6174
- JoinColumn57({ name: "reviewee_id" })
6243
+ ManyToOne57(() => User, { onDelete: "CASCADE" }),
6244
+ JoinColumn58({ name: "reviewee_id" })
6175
6245
  ], Rating.prototype, "reviewee", 2);
6176
6246
  __decorateClass([
6177
- Column62({
6247
+ Column63({
6178
6248
  type: "enum",
6179
6249
  enum: RatingTypeEnum,
6180
6250
  nullable: true
6181
6251
  })
6182
6252
  ], Rating.prototype, "ratingType", 2);
6183
6253
  __decorateClass([
6184
- Column62({ type: "integer", nullable: true })
6254
+ Column63({ type: "integer", nullable: true })
6185
6255
  ], Rating.prototype, "rating", 2);
6186
6256
  __decorateClass([
6187
- Column62({ type: "text", nullable: true })
6257
+ Column63({ type: "text", nullable: true })
6188
6258
  ], Rating.prototype, "review", 2);
6189
6259
  Rating = __decorateClass([
6190
- Entity61("ratings")
6260
+ Entity62("ratings")
6191
6261
  ], Rating);
6192
6262
 
6193
6263
  // src/modules/rating/dto/add.rating.dto.ts
@@ -8380,11 +8450,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
8380
8450
  };
8381
8451
 
8382
8452
  // src/entities/sequence-generator.entity.ts
8383
- import { Entity as Entity62, Column as Column63 } from "typeorm";
8453
+ import { Entity as Entity63, Column as Column64 } from "typeorm";
8384
8454
  var SequenceGenerator = class extends BaseEntity {
8385
8455
  };
8386
8456
  __decorateClass([
8387
- Column63({
8457
+ Column64({
8388
8458
  name: "module",
8389
8459
  type: "varchar",
8390
8460
  length: 50,
@@ -8393,7 +8463,7 @@ __decorateClass([
8393
8463
  })
8394
8464
  ], SequenceGenerator.prototype, "module", 2);
8395
8465
  __decorateClass([
8396
- Column63({
8466
+ Column64({
8397
8467
  name: "prefix",
8398
8468
  type: "varchar",
8399
8469
  length: 10,
@@ -8402,7 +8472,7 @@ __decorateClass([
8402
8472
  })
8403
8473
  ], SequenceGenerator.prototype, "prefix", 2);
8404
8474
  __decorateClass([
8405
- Column63({
8475
+ Column64({
8406
8476
  name: "last_sequence",
8407
8477
  type: "int",
8408
8478
  nullable: false,
@@ -8410,7 +8480,7 @@ __decorateClass([
8410
8480
  })
8411
8481
  ], SequenceGenerator.prototype, "lastSequence", 2);
8412
8482
  __decorateClass([
8413
- Column63({
8483
+ Column64({
8414
8484
  name: "year",
8415
8485
  type: "int",
8416
8486
  nullable: true,
@@ -8418,11 +8488,11 @@ __decorateClass([
8418
8488
  })
8419
8489
  ], SequenceGenerator.prototype, "year", 2);
8420
8490
  SequenceGenerator = __decorateClass([
8421
- Entity62("sequence_generators")
8491
+ Entity63("sequence_generators")
8422
8492
  ], SequenceGenerator);
8423
8493
 
8424
8494
  // src/entities/question.entity.ts
8425
- import { Entity as Entity63, Column as Column64 } from "typeorm";
8495
+ import { Entity as Entity64, Column as Column65 } from "typeorm";
8426
8496
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
8427
8497
  QuestionFor2["CLIENT"] = "CLIENT";
8428
8498
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -8431,16 +8501,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
8431
8501
  var Question = class extends BaseEntity {
8432
8502
  };
8433
8503
  __decorateClass([
8434
- Column64({ name: "question", type: "varchar" })
8504
+ Column65({ name: "question", type: "varchar" })
8435
8505
  ], Question.prototype, "question", 2);
8436
8506
  __decorateClass([
8437
- Column64({ name: "hint", type: "varchar", nullable: true })
8507
+ Column65({ name: "hint", type: "varchar", nullable: true })
8438
8508
  ], Question.prototype, "hint", 2);
8439
8509
  __decorateClass([
8440
- Column64({ name: "slug", type: "varchar", nullable: true, unique: true })
8510
+ Column65({ name: "slug", type: "varchar", nullable: true, unique: true })
8441
8511
  ], Question.prototype, "slug", 2);
8442
8512
  __decorateClass([
8443
- Column64({
8513
+ Column65({
8444
8514
  name: "question_for",
8445
8515
  type: "enum",
8446
8516
  enum: QuestionFor,
@@ -8448,49 +8518,49 @@ __decorateClass([
8448
8518
  })
8449
8519
  ], Question.prototype, "questionFor", 2);
8450
8520
  __decorateClass([
8451
- Column64({ name: "type", type: "varchar", nullable: true })
8521
+ Column65({ name: "type", type: "varchar", nullable: true })
8452
8522
  ], Question.prototype, "type", 2);
8453
8523
  __decorateClass([
8454
- Column64({ name: "options", type: "jsonb", nullable: true })
8524
+ Column65({ name: "options", type: "jsonb", nullable: true })
8455
8525
  ], Question.prototype, "options", 2);
8456
8526
  __decorateClass([
8457
- Column64({ name: "is_active", type: "boolean", default: false })
8527
+ Column65({ name: "is_active", type: "boolean", default: false })
8458
8528
  ], Question.prototype, "isActive", 2);
8459
8529
  Question = __decorateClass([
8460
- Entity63("questions")
8530
+ Entity64("questions")
8461
8531
  ], Question);
8462
8532
 
8463
8533
  // src/entities/skill.entity.ts
8464
- import { Entity as Entity64, Column as Column65 } from "typeorm";
8534
+ import { Entity as Entity65, Column as Column66 } from "typeorm";
8465
8535
  var Skill = class extends BaseEntity {
8466
8536
  };
8467
8537
  __decorateClass([
8468
- Column65({ name: "name", type: "varchar", nullable: true })
8538
+ Column66({ name: "name", type: "varchar", nullable: true })
8469
8539
  ], Skill.prototype, "name", 2);
8470
8540
  __decorateClass([
8471
- Column65({ name: "slug", type: "varchar", nullable: true, unique: true })
8541
+ Column66({ name: "slug", type: "varchar", nullable: true, unique: true })
8472
8542
  ], Skill.prototype, "slug", 2);
8473
8543
  __decorateClass([
8474
- Column65({ name: "is_active", type: "boolean", default: false })
8544
+ Column66({ name: "is_active", type: "boolean", default: false })
8475
8545
  ], Skill.prototype, "isActive", 2);
8476
8546
  Skill = __decorateClass([
8477
- Entity64("skills")
8547
+ Entity65("skills")
8478
8548
  ], Skill);
8479
8549
 
8480
8550
  // src/entities/skill-catalog.entity.ts
8481
8551
  import {
8482
- Entity as Entity65,
8483
- Column as Column66,
8484
- Index as Index56
8552
+ Entity as Entity66,
8553
+ Column as Column67,
8554
+ Index as Index57
8485
8555
  } from "typeorm";
8486
8556
  var SkillCatalog = class extends BaseEntity {
8487
8557
  };
8488
8558
  __decorateClass([
8489
- Column66({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
8490
- Index56()
8559
+ Column67({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
8560
+ Index57()
8491
8561
  ], SkillCatalog.prototype, "canonicalName", 2);
8492
8562
  __decorateClass([
8493
- Column66({
8563
+ Column67({
8494
8564
  name: "aliases",
8495
8565
  type: "text",
8496
8566
  array: true,
@@ -8498,20 +8568,20 @@ __decorateClass([
8498
8568
  })
8499
8569
  ], SkillCatalog.prototype, "aliases", 2);
8500
8570
  __decorateClass([
8501
- Column66({
8571
+ Column67({
8502
8572
  name: "variations",
8503
8573
  type: "jsonb",
8504
8574
  default: "{}"
8505
8575
  })
8506
8576
  ], SkillCatalog.prototype, "variations", 2);
8507
8577
  __decorateClass([
8508
- Column66({ name: "category", type: "varchar", length: 50, nullable: true })
8578
+ Column67({ name: "category", type: "varchar", length: 50, nullable: true })
8509
8579
  ], SkillCatalog.prototype, "category", 2);
8510
8580
  __decorateClass([
8511
- Column66({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
8581
+ Column67({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
8512
8582
  ], SkillCatalog.prototype, "parentSkill", 2);
8513
8583
  __decorateClass([
8514
- Column66({
8584
+ Column67({
8515
8585
  name: "related_skills",
8516
8586
  type: "text",
8517
8587
  array: true,
@@ -8519,113 +8589,113 @@ __decorateClass([
8519
8589
  })
8520
8590
  ], SkillCatalog.prototype, "relatedSkills", 2);
8521
8591
  __decorateClass([
8522
- Column66({ name: "usage_count", type: "integer", default: 0 }),
8523
- Index56()
8592
+ Column67({ name: "usage_count", type: "integer", default: 0 }),
8593
+ Index57()
8524
8594
  ], SkillCatalog.prototype, "usageCount", 2);
8525
8595
  __decorateClass([
8526
- Column66({ name: "is_verified", type: "boolean", default: false })
8596
+ Column67({ name: "is_verified", type: "boolean", default: false })
8527
8597
  ], SkillCatalog.prototype, "isVerified", 2);
8528
8598
  __decorateClass([
8529
- Column66({ name: "first_seen_date", type: "date" })
8599
+ Column67({ name: "first_seen_date", type: "date" })
8530
8600
  ], SkillCatalog.prototype, "firstSeenDate", 2);
8531
8601
  __decorateClass([
8532
- Column66({ name: "last_updated_date", type: "date" })
8602
+ Column67({ name: "last_updated_date", type: "date" })
8533
8603
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
8534
8604
  __decorateClass([
8535
- Column66({
8605
+ Column67({
8536
8606
  name: "search_vector",
8537
8607
  type: "tsvector",
8538
8608
  nullable: true
8539
8609
  })
8540
8610
  ], SkillCatalog.prototype, "searchVector", 2);
8541
8611
  SkillCatalog = __decorateClass([
8542
- Entity65("skill_catalogs")
8612
+ Entity66("skill_catalogs")
8543
8613
  ], SkillCatalog);
8544
8614
 
8545
8615
  // src/entities/job-role.entity.ts
8546
- import { Entity as Entity66, Column as Column67 } from "typeorm";
8616
+ import { Entity as Entity67, Column as Column68 } from "typeorm";
8547
8617
  var JobRoles = class extends BaseEntity {
8548
8618
  };
8549
8619
  __decorateClass([
8550
- Column67({ name: "slug", type: "varchar", nullable: true, unique: true })
8620
+ Column68({ name: "slug", type: "varchar", nullable: true, unique: true })
8551
8621
  ], JobRoles.prototype, "slug", 2);
8552
8622
  __decorateClass([
8553
- Column67({ name: "name", type: "varchar", nullable: true })
8623
+ Column68({ name: "name", type: "varchar", nullable: true })
8554
8624
  ], JobRoles.prototype, "name", 2);
8555
8625
  __decorateClass([
8556
- Column67({ name: "is_active", type: "boolean", default: true })
8626
+ Column68({ name: "is_active", type: "boolean", default: true })
8557
8627
  ], JobRoles.prototype, "isActive", 2);
8558
8628
  JobRoles = __decorateClass([
8559
- Entity66("job_roles")
8629
+ Entity67("job_roles")
8560
8630
  ], JobRoles);
8561
8631
 
8562
8632
  // src/entities/plan.entity.ts
8563
- import { Entity as Entity68, Column as Column69, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
8633
+ import { Entity as Entity69, Column as Column70, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
8564
8634
 
8565
8635
  // src/entities/feature.entity.ts
8566
- import { Entity as Entity67, Column as Column68, ManyToMany as ManyToMany2 } from "typeorm";
8636
+ import { Entity as Entity68, Column as Column69, ManyToMany as ManyToMany2 } from "typeorm";
8567
8637
  var Feature = class extends BaseEntity {
8568
8638
  };
8569
8639
  __decorateClass([
8570
- Column68({ name: "name", type: "varchar", unique: true })
8640
+ Column69({ name: "name", type: "varchar", unique: true })
8571
8641
  ], Feature.prototype, "name", 2);
8572
8642
  __decorateClass([
8573
8643
  ManyToMany2(() => Plan, (plan) => plan.features)
8574
8644
  ], Feature.prototype, "plans", 2);
8575
8645
  Feature = __decorateClass([
8576
- Entity67("features")
8646
+ Entity68("features")
8577
8647
  ], Feature);
8578
8648
 
8579
8649
  // src/entities/plan.entity.ts
8580
8650
  var Plan = class extends BaseEntity {
8581
8651
  };
8582
8652
  __decorateClass([
8583
- Column69({ name: "name", type: "varchar", unique: true })
8653
+ Column70({ name: "name", type: "varchar", unique: true })
8584
8654
  ], Plan.prototype, "name", 2);
8585
8655
  __decorateClass([
8586
- Column69({ name: "description", type: "varchar", nullable: true })
8656
+ Column70({ name: "description", type: "varchar", nullable: true })
8587
8657
  ], Plan.prototype, "description", 2);
8588
8658
  __decorateClass([
8589
- Column69({ name: "price", type: "decimal", precision: 10, scale: 2 })
8659
+ Column70({ name: "price", type: "decimal", precision: 10, scale: 2 })
8590
8660
  ], Plan.prototype, "price", 2);
8591
8661
  __decorateClass([
8592
- Column69({ name: "billing_period", type: "varchar" })
8662
+ Column70({ name: "billing_period", type: "varchar" })
8593
8663
  ], Plan.prototype, "billingPeriod", 2);
8594
8664
  __decorateClass([
8595
- Column69({ name: "is_current", type: "boolean", default: false })
8665
+ Column70({ name: "is_current", type: "boolean", default: false })
8596
8666
  ], Plan.prototype, "isCurrent", 2);
8597
8667
  __decorateClass([
8598
8668
  ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
8599
8669
  JoinTable()
8600
8670
  ], Plan.prototype, "features", 2);
8601
8671
  Plan = __decorateClass([
8602
- Entity68("plans")
8672
+ Entity69("plans")
8603
8673
  ], Plan);
8604
8674
 
8605
8675
  // src/entities/cms.entity.ts
8606
- import { Entity as Entity69, Column as Column70 } from "typeorm";
8676
+ import { Entity as Entity70, Column as Column71 } from "typeorm";
8607
8677
  var Cms = class extends BaseEntity {
8608
8678
  };
8609
8679
  __decorateClass([
8610
- Column70({ name: "title", type: "varchar", nullable: true })
8680
+ Column71({ name: "title", type: "varchar", nullable: true })
8611
8681
  ], Cms.prototype, "title", 2);
8612
8682
  __decorateClass([
8613
- Column70({ name: "slug", type: "varchar", nullable: true, unique: true })
8683
+ Column71({ name: "slug", type: "varchar", nullable: true, unique: true })
8614
8684
  ], Cms.prototype, "slug", 2);
8615
8685
  __decorateClass([
8616
- Column70({ name: "content", type: "varchar", nullable: true })
8686
+ Column71({ name: "content", type: "varchar", nullable: true })
8617
8687
  ], Cms.prototype, "content", 2);
8618
8688
  __decorateClass([
8619
- Column70({ name: "is_active", type: "boolean", default: true })
8689
+ Column71({ name: "is_active", type: "boolean", default: true })
8620
8690
  ], Cms.prototype, "isActive", 2);
8621
8691
  Cms = __decorateClass([
8622
- Entity69("cms")
8692
+ Entity70("cms")
8623
8693
  ], Cms);
8624
8694
 
8625
8695
  // src/entities/lead.entity.ts
8626
8696
  import {
8627
- Entity as Entity70,
8628
- Column as Column71
8697
+ Entity as Entity71,
8698
+ Column as Column72
8629
8699
  } from "typeorm";
8630
8700
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
8631
8701
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -8635,22 +8705,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
8635
8705
  var Lead = class extends BaseEntity {
8636
8706
  };
8637
8707
  __decorateClass([
8638
- Column71({ name: "name", type: "varchar", nullable: true })
8708
+ Column72({ name: "name", type: "varchar", nullable: true })
8639
8709
  ], Lead.prototype, "name", 2);
8640
8710
  __decorateClass([
8641
- Column71({ name: "mobile_code", type: "varchar", nullable: true })
8711
+ Column72({ name: "mobile_code", type: "varchar", nullable: true })
8642
8712
  ], Lead.prototype, "mobileCode", 2);
8643
8713
  __decorateClass([
8644
- Column71({ name: "mobile", type: "varchar", nullable: true })
8714
+ Column72({ name: "mobile", type: "varchar", nullable: true })
8645
8715
  ], Lead.prototype, "mobile", 2);
8646
8716
  __decorateClass([
8647
- Column71({ name: "email", type: "varchar", nullable: true })
8717
+ Column72({ name: "email", type: "varchar", nullable: true })
8648
8718
  ], Lead.prototype, "email", 2);
8649
8719
  __decorateClass([
8650
- Column71({ name: "description", type: "varchar", nullable: true })
8720
+ Column72({ name: "description", type: "varchar", nullable: true })
8651
8721
  ], Lead.prototype, "description", 2);
8652
8722
  __decorateClass([
8653
- Column71({
8723
+ Column72({
8654
8724
  name: "category",
8655
8725
  type: "enum",
8656
8726
  enum: CategoryEmum,
@@ -8658,7 +8728,7 @@ __decorateClass([
8658
8728
  })
8659
8729
  ], Lead.prototype, "category", 2);
8660
8730
  Lead = __decorateClass([
8661
- Entity70("leads")
8731
+ Entity71("leads")
8662
8732
  ], Lead);
8663
8733
 
8664
8734
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -8899,7 +8969,7 @@ ClientFreelancerRecommendation = __decorateClass([
8899
8969
  ], ClientFreelancerRecommendation);
8900
8970
 
8901
8971
  // src/entities/commission.entity.ts
8902
- import { Entity as Entity71, Column as Column72 } from "typeorm";
8972
+ import { Entity as Entity72, Column as Column73 } from "typeorm";
8903
8973
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
8904
8974
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
8905
8975
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -8908,7 +8978,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
8908
8978
  var Commission = class extends BaseEntity {
8909
8979
  };
8910
8980
  __decorateClass([
8911
- Column72({
8981
+ Column73({
8912
8982
  name: "freelancer_commission_type",
8913
8983
  type: "enum",
8914
8984
  enum: CommissionTypeEnum,
@@ -8916,10 +8986,10 @@ __decorateClass([
8916
8986
  })
8917
8987
  ], Commission.prototype, "freelancerCommissionType", 2);
8918
8988
  __decorateClass([
8919
- Column72({ name: "freelancer_commission", type: "integer", default: 0 })
8989
+ Column73({ name: "freelancer_commission", type: "integer", default: 0 })
8920
8990
  ], Commission.prototype, "freelancerCommission", 2);
8921
8991
  __decorateClass([
8922
- Column72({
8992
+ Column73({
8923
8993
  name: "client_commission_type",
8924
8994
  type: "enum",
8925
8995
  enum: CommissionTypeEnum,
@@ -8927,105 +8997,105 @@ __decorateClass([
8927
8997
  })
8928
8998
  ], Commission.prototype, "clientCommissionType", 2);
8929
8999
  __decorateClass([
8930
- Column72({ name: "client_commission", type: "integer", default: 0 })
9000
+ Column73({ name: "client_commission", type: "integer", default: 0 })
8931
9001
  ], Commission.prototype, "clientCommission", 2);
8932
9002
  Commission = __decorateClass([
8933
- Entity71("commissions")
9003
+ Entity72("commissions")
8934
9004
  ], Commission);
8935
9005
 
8936
9006
  // src/entities/calendly-meeting-log.entity.ts
8937
9007
  import {
8938
- Entity as Entity72,
8939
- Column as Column73,
8940
- Index as Index57
9008
+ Entity as Entity73,
9009
+ Column as Column74,
9010
+ Index as Index58
8941
9011
  } from "typeorm";
8942
9012
  var CalendlyMeetingLog = class extends BaseEntity {
8943
9013
  };
8944
9014
  __decorateClass([
8945
- Column73({ name: "calendly_event_id", type: "varchar", nullable: true }),
8946
- Index57()
9015
+ Column74({ name: "calendly_event_id", type: "varchar", nullable: true }),
9016
+ Index58()
8947
9017
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
8948
9018
  __decorateClass([
8949
- Column73({ name: "calendly_event_type", type: "varchar", nullable: true })
9019
+ Column74({ name: "calendly_event_type", type: "varchar", nullable: true })
8950
9020
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
8951
9021
  __decorateClass([
8952
- Column73({ name: "raw_webhook_data", type: "jsonb", nullable: true })
9022
+ Column74({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8953
9023
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
8954
9024
  CalendlyMeetingLog = __decorateClass([
8955
- Entity72("calendly_meeting_logs")
9025
+ Entity73("calendly_meeting_logs")
8956
9026
  ], CalendlyMeetingLog);
8957
9027
 
8958
9028
  // src/entities/zoom-meeting-log.entity.ts
8959
9029
  import {
8960
- Entity as Entity73,
8961
- Column as Column74,
8962
- Index as Index58
9030
+ Entity as Entity74,
9031
+ Column as Column75,
9032
+ Index as Index59
8963
9033
  } from "typeorm";
8964
9034
  var ZoomMeetingLog = class extends BaseEntity {
8965
9035
  };
8966
9036
  __decorateClass([
8967
- Column74({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
8968
- Index58()
9037
+ Column75({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
9038
+ Index59()
8969
9039
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
8970
9040
  __decorateClass([
8971
- Column74({ name: "zoom_event_type", type: "varchar", nullable: true })
9041
+ Column75({ name: "zoom_event_type", type: "varchar", nullable: true })
8972
9042
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
8973
9043
  __decorateClass([
8974
- Column74({ name: "raw_webhook_data", type: "jsonb", nullable: true })
9044
+ Column75({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8975
9045
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
8976
9046
  ZoomMeetingLog = __decorateClass([
8977
- Entity73("zoom_meeting_logs")
9047
+ Entity74("zoom_meeting_logs")
8978
9048
  ], ZoomMeetingLog);
8979
9049
 
8980
9050
  // src/entities/stripe-logs.entity.ts
8981
- import { Entity as Entity74, Column as Column75 } from "typeorm";
9051
+ import { Entity as Entity75, Column as Column76 } from "typeorm";
8982
9052
  var StripeLog = class extends BaseEntity {
8983
9053
  };
8984
9054
  __decorateClass([
8985
- Column75({ name: "stripe_event_id", type: "varchar", nullable: true })
9055
+ Column76({ name: "stripe_event_id", type: "varchar", nullable: true })
8986
9056
  ], StripeLog.prototype, "stripeEventId", 2);
8987
9057
  __decorateClass([
8988
- Column75({ name: "event_type", type: "varchar", nullable: true })
9058
+ Column76({ name: "event_type", type: "varchar", nullable: true })
8989
9059
  ], StripeLog.prototype, "eventType", 2);
8990
9060
  __decorateClass([
8991
- Column75({ name: "stripe_account_id", type: "varchar", nullable: true })
9061
+ Column76({ name: "stripe_account_id", type: "varchar", nullable: true })
8992
9062
  ], StripeLog.prototype, "stripeAccountId", 2);
8993
9063
  __decorateClass([
8994
- Column75({ name: "raw_webhook_data", type: "jsonb", nullable: true })
9064
+ Column76({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8995
9065
  ], StripeLog.prototype, "rawWebhookData", 2);
8996
9066
  StripeLog = __decorateClass([
8997
- Entity74("stripe_logs")
9067
+ Entity75("stripe_logs")
8998
9068
  ], StripeLog);
8999
9069
 
9000
9070
  // src/entities/recommendation-weightage-config.entity.ts
9001
9071
  import {
9002
- Entity as Entity75,
9003
- Column as Column76,
9004
- Index as Index59
9072
+ Entity as Entity76,
9073
+ Column as Column77,
9074
+ Index as Index60
9005
9075
  } from "typeorm";
9006
9076
  var RecommendationWeightageConfig = class extends BaseEntity {
9007
9077
  };
9008
9078
  __decorateClass([
9009
- Column76({
9079
+ Column77({
9010
9080
  type: "varchar",
9011
9081
  length: 100,
9012
9082
  unique: true,
9013
9083
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
9014
9084
  }),
9015
- Index59()
9085
+ Index60()
9016
9086
  ], RecommendationWeightageConfig.prototype, "key", 2);
9017
9087
  __decorateClass([
9018
- Column76({
9088
+ Column77({
9019
9089
  type: "jsonb",
9020
9090
  comment: "JSON object containing weight values",
9021
9091
  nullable: true
9022
9092
  })
9023
9093
  ], RecommendationWeightageConfig.prototype, "value", 2);
9024
9094
  __decorateClass([
9025
- Column76({ name: "is_active", type: "boolean", default: true })
9095
+ Column77({ name: "is_active", type: "boolean", default: true })
9026
9096
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
9027
9097
  RecommendationWeightageConfig = __decorateClass([
9028
- Entity75("recommendation_weightage_configs")
9098
+ Entity76("recommendation_weightage_configs")
9029
9099
  ], RecommendationWeightageConfig);
9030
9100
  export {
9031
9101
  ADMIN_FREELANCER_PATTERN,
@@ -9173,6 +9243,8 @@ export {
9173
9243
  FreelancerUploadResumeDto,
9174
9244
  FreelancerWorkShowcaseDto,
9175
9245
  FromUsOn,
9246
+ HiredFreelancerNatureOfWorkEnum,
9247
+ Hiring,
9176
9248
  INTERVIEW_INVITE_PATTERN,
9177
9249
  INVOICE_PATTERN,
9178
9250
  InitiatorTypeEnum,