@experts_hub/shared 1.0.519 → 1.0.521

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