@experts_hub/shared 1.0.502 → 1.0.504

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.js CHANGED
@@ -91,6 +91,8 @@ __export(index_exports, {
91
91
  CompanyRolePermission: () => CompanyRolePermission,
92
92
  CompanySkill: () => CompanySkill,
93
93
  Contract: () => Contract,
94
+ ContractHistory: () => ContractHistory,
95
+ ContractHistoryActionEnum: () => ContractHistoryActionEnum,
94
96
  ContractRMQAdapter: () => ContractRMQAdapter,
95
97
  ContractStatusEnum: () => ContractStatusEnum,
96
98
  ContractTCPAdapter: () => ContractTCPAdapter,
@@ -1704,10 +1706,10 @@ var RATING_PATTERN = {
1704
1706
  var import_class_validator42 = require("class-validator");
1705
1707
 
1706
1708
  // src/entities/rating.entity.ts
1707
- var import_typeorm61 = require("typeorm");
1709
+ var import_typeorm62 = require("typeorm");
1708
1710
 
1709
1711
  // src/entities/user.entity.ts
1710
- var import_typeorm60 = require("typeorm");
1712
+ var import_typeorm61 = require("typeorm");
1711
1713
 
1712
1714
  // src/entities/base.entity.ts
1713
1715
  var import_typeorm = require("typeorm");
@@ -2481,7 +2483,7 @@ FreelancerProfile = __decorateClass([
2481
2483
  ], FreelancerProfile);
2482
2484
 
2483
2485
  // src/entities/job.entity.ts
2484
- var import_typeorm30 = require("typeorm");
2486
+ var import_typeorm31 = require("typeorm");
2485
2487
 
2486
2488
  // src/entities/job-skill.entity.ts
2487
2489
  var import_typeorm10 = require("typeorm");
@@ -2875,6 +2877,21 @@ __decorateClass([
2875
2877
  __decorateClass([
2876
2878
  (0, import_typeorm15.Column)({ name: "invite_id", type: "integer", nullable: true })
2877
2879
  ], AiInterview.prototype, "inviteId", 2);
2880
+ __decorateClass([
2881
+ (0, import_typeorm15.Column)({
2882
+ name: "candidate_interview_id",
2883
+ type: "varchar",
2884
+ nullable: true
2885
+ })
2886
+ ], AiInterview.prototype, "candidateInterviewId", 2);
2887
+ __decorateClass([
2888
+ (0, import_typeorm15.Column)({
2889
+ name: "candidate_interview_link",
2890
+ type: "varchar",
2891
+ nullable: true
2892
+ }),
2893
+ (0, import_typeorm15.Index)()
2894
+ ], AiInterview.prototype, "candidateInterviewLink", 2);
2878
2895
  __decorateClass([
2879
2896
  (0, import_typeorm15.Column)({
2880
2897
  name: "status",
@@ -3365,7 +3382,7 @@ JobRecommendation = __decorateClass([
3365
3382
  ], JobRecommendation);
3366
3383
 
3367
3384
  // src/entities/contract.entity.ts
3368
- var import_typeorm28 = require("typeorm");
3385
+ var import_typeorm29 = require("typeorm");
3369
3386
 
3370
3387
  // src/entities/escrow-wallet.entity.ts
3371
3388
  var import_typeorm27 = require("typeorm");
@@ -3798,6 +3815,77 @@ EscrowWallet = __decorateClass([
3798
3815
  (0, import_typeorm27.Entity)("escrow_wallets")
3799
3816
  ], EscrowWallet);
3800
3817
 
3818
+ // src/entities/contract-history.entity.ts
3819
+ var import_typeorm28 = require("typeorm");
3820
+ var ContractHistoryActionEnum = /* @__PURE__ */ ((ContractHistoryActionEnum2) => {
3821
+ ContractHistoryActionEnum2["GENERATED"] = "GENERATED";
3822
+ ContractHistoryActionEnum2["DRAFTED"] = "DRAFTED";
3823
+ ContractHistoryActionEnum2["SENT"] = "SENT";
3824
+ ContractHistoryActionEnum2["SIGNED"] = "SIGNED";
3825
+ ContractHistoryActionEnum2["ACTIVE"] = "ACTIVE";
3826
+ ContractHistoryActionEnum2["CANCELLED"] = "CANCELLED";
3827
+ ContractHistoryActionEnum2["DISPUTED"] = "DISPUTED";
3828
+ ContractHistoryActionEnum2["REJECTED"] = "REJECTED";
3829
+ ContractHistoryActionEnum2["RENEWED"] = "RENEWED";
3830
+ ContractHistoryActionEnum2["EXPIRED"] = "EXPIRED";
3831
+ ContractHistoryActionEnum2["VIEWED"] = "VIEWED";
3832
+ return ContractHistoryActionEnum2;
3833
+ })(ContractHistoryActionEnum || {});
3834
+ var ContractHistory = class extends BaseEntity {
3835
+ };
3836
+ __decorateClass([
3837
+ (0, import_typeorm28.Column)({ name: "contract_id", type: "integer", nullable: false }),
3838
+ (0, import_typeorm28.Index)()
3839
+ ], ContractHistory.prototype, "contractId", 2);
3840
+ __decorateClass([
3841
+ (0, import_typeorm28.ManyToOne)(() => Contract, (contract) => contract.history),
3842
+ (0, import_typeorm28.JoinColumn)({ name: "contract_id" })
3843
+ ], ContractHistory.prototype, "contract", 2);
3844
+ __decorateClass([
3845
+ (0, import_typeorm28.Column)({ name: "action_by", type: "integer", nullable: true })
3846
+ ], ContractHistory.prototype, "actionBy", 2);
3847
+ __decorateClass([
3848
+ (0, import_typeorm28.Column)({ name: "action_by_type", type: "varchar", nullable: true })
3849
+ ], ContractHistory.prototype, "actionByType", 2);
3850
+ __decorateClass([
3851
+ (0, import_typeorm28.Column)({
3852
+ name: "previous_status",
3853
+ type: "enum",
3854
+ enum: ContractStatusEnum,
3855
+ nullable: true
3856
+ })
3857
+ ], ContractHistory.prototype, "previousStatus", 2);
3858
+ __decorateClass([
3859
+ (0, import_typeorm28.Column)({
3860
+ name: "new_status",
3861
+ type: "enum",
3862
+ enum: ContractStatusEnum,
3863
+ nullable: false
3864
+ })
3865
+ ], ContractHistory.prototype, "newStatus", 2);
3866
+ __decorateClass([
3867
+ (0, import_typeorm28.Column)({
3868
+ name: "type",
3869
+ type: "enum",
3870
+ enum: ContractTypeEnum,
3871
+ nullable: true
3872
+ })
3873
+ ], ContractHistory.prototype, "type", 2);
3874
+ __decorateClass([
3875
+ (0, import_typeorm28.Column)({
3876
+ name: "action_type",
3877
+ type: "enum",
3878
+ enum: ContractHistoryActionEnum,
3879
+ nullable: false
3880
+ })
3881
+ ], ContractHistory.prototype, "actionType", 2);
3882
+ __decorateClass([
3883
+ (0, import_typeorm28.Column)({ name: "remarks", type: "varchar", nullable: true })
3884
+ ], ContractHistory.prototype, "remarks", 2);
3885
+ ContractHistory = __decorateClass([
3886
+ (0, import_typeorm28.Entity)("contract_histories")
3887
+ ], ContractHistory);
3888
+
3801
3889
  // src/entities/contract.entity.ts
3802
3890
  var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
3803
3891
  ContractStatusEnum2["GENERATED"] = "GENERATED";
@@ -3820,37 +3908,41 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
3820
3908
  var Contract = class extends BaseEntity {
3821
3909
  };
3822
3910
  __decorateClass([
3823
- (0, import_typeorm28.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3911
+ (0, import_typeorm29.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3824
3912
  ], Contract.prototype, "contractUniqueId", 2);
3825
3913
  __decorateClass([
3826
- (0, import_typeorm28.Column)({ name: "job_id", type: "integer", nullable: true }),
3827
- (0, import_typeorm28.Index)()
3914
+ (0, import_typeorm29.Column)({ name: "job_id", type: "integer", nullable: true }),
3915
+ (0, import_typeorm29.Index)()
3828
3916
  ], Contract.prototype, "jobId", 2);
3829
3917
  __decorateClass([
3830
- (0, import_typeorm28.ManyToOne)(() => Job, (job) => job.contracts),
3831
- (0, import_typeorm28.JoinColumn)({ name: "job_id" })
3918
+ (0, import_typeorm29.ManyToOne)(() => Job, (job) => job.contracts),
3919
+ (0, import_typeorm29.JoinColumn)({ name: "job_id" })
3832
3920
  ], Contract.prototype, "job", 2);
3833
3921
  __decorateClass([
3834
- (0, import_typeorm28.Column)({ name: "client_id", type: "integer", nullable: true }),
3835
- (0, import_typeorm28.Index)()
3922
+ (0, import_typeorm29.Column)({ name: "client_id", type: "integer", nullable: true }),
3923
+ (0, import_typeorm29.Index)()
3836
3924
  ], Contract.prototype, "clientId", 2);
3837
3925
  __decorateClass([
3838
- (0, import_typeorm28.ManyToOne)(() => User, (user) => user.clientContracts),
3839
- (0, import_typeorm28.JoinColumn)({ name: "client_id" })
3926
+ (0, import_typeorm29.ManyToOne)(() => User, (user) => user.clientContracts),
3927
+ (0, import_typeorm29.JoinColumn)({ name: "client_id" })
3840
3928
  ], Contract.prototype, "client", 2);
3841
3929
  __decorateClass([
3842
- (0, import_typeorm28.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3843
- (0, import_typeorm28.Index)()
3930
+ (0, import_typeorm29.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3931
+ (0, import_typeorm29.Index)()
3844
3932
  ], Contract.prototype, "freelancerId", 2);
3845
3933
  __decorateClass([
3846
- (0, import_typeorm28.ManyToOne)(() => User, (user) => user.freelancerContracts),
3847
- (0, import_typeorm28.JoinColumn)({ name: "freelancer_id" })
3934
+ (0, import_typeorm29.ManyToOne)(() => User, (user) => user.freelancerContracts),
3935
+ (0, import_typeorm29.JoinColumn)({ name: "freelancer_id" })
3848
3936
  ], Contract.prototype, "freelancer", 2);
3849
3937
  __decorateClass([
3850
- (0, import_typeorm28.Column)({ name: "duration", type: "integer", nullable: true })
3938
+ (0, import_typeorm29.OneToMany)(() => ContractHistory, (history) => history.contract),
3939
+ (0, import_typeorm29.JoinColumn)({ name: "contract_id" })
3940
+ ], Contract.prototype, "history", 2);
3941
+ __decorateClass([
3942
+ (0, import_typeorm29.Column)({ name: "duration", type: "integer", nullable: true })
3851
3943
  ], Contract.prototype, "duration", 2);
3852
3944
  __decorateClass([
3853
- (0, import_typeorm28.Column)({
3945
+ (0, import_typeorm29.Column)({
3854
3946
  name: "status",
3855
3947
  type: "enum",
3856
3948
  enum: ContractStatusEnum,
@@ -3858,7 +3950,7 @@ __decorateClass([
3858
3950
  })
3859
3951
  ], Contract.prototype, "status", 2);
3860
3952
  __decorateClass([
3861
- (0, import_typeorm28.Column)({
3953
+ (0, import_typeorm29.Column)({
3862
3954
  name: "type",
3863
3955
  type: "enum",
3864
3956
  enum: ContractTypeEnum,
@@ -3866,10 +3958,10 @@ __decorateClass([
3866
3958
  })
3867
3959
  ], Contract.prototype, "type", 2);
3868
3960
  __decorateClass([
3869
- (0, import_typeorm28.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
3961
+ (0, import_typeorm29.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
3870
3962
  ], Contract.prototype, "invoicingCycle", 2);
3871
3963
  __decorateClass([
3872
- (0, import_typeorm28.Column)({
3964
+ (0, import_typeorm29.Column)({
3873
3965
  name: "escrow_deposite_amount",
3874
3966
  type: "decimal",
3875
3967
  precision: 10,
@@ -3878,77 +3970,80 @@ __decorateClass([
3878
3970
  })
3879
3971
  ], Contract.prototype, "escrowDepositeAmount", 2);
3880
3972
  __decorateClass([
3881
- (0, import_typeorm28.Column)({
3973
+ (0, import_typeorm29.Column)({
3882
3974
  name: "start_date",
3883
3975
  type: "timestamp with time zone",
3884
3976
  nullable: true
3885
3977
  })
3886
3978
  ], Contract.prototype, "startDate", 2);
3887
3979
  __decorateClass([
3888
- (0, import_typeorm28.Column)({
3980
+ (0, import_typeorm29.Column)({
3889
3981
  name: "end_date",
3890
3982
  type: "timestamp with time zone",
3891
3983
  nullable: true
3892
3984
  })
3893
3985
  ], Contract.prototype, "endDate", 2);
3894
3986
  __decorateClass([
3895
- (0, import_typeorm28.Column)({ name: "original_document_url", type: "varchar", nullable: true })
3987
+ (0, import_typeorm29.Column)({ name: "original_document_url", type: "varchar", nullable: true })
3896
3988
  ], Contract.prototype, "originalDocumentUrl", 2);
3897
3989
  __decorateClass([
3898
- (0, import_typeorm28.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
3990
+ (0, import_typeorm29.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
3899
3991
  ], Contract.prototype, "contractDocumentUrl", 2);
3900
3992
  __decorateClass([
3901
- (0, import_typeorm28.Column)({
3993
+ (0, import_typeorm29.Column)({
3902
3994
  name: "client_signed_at",
3903
3995
  type: "timestamp with time zone",
3904
3996
  nullable: true
3905
3997
  })
3906
3998
  ], Contract.prototype, "clientSignedAt", 2);
3907
3999
  __decorateClass([
3908
- (0, import_typeorm28.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
4000
+ (0, import_typeorm29.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
3909
4001
  ], Contract.prototype, "freelancerViewed", 2);
3910
4002
  __decorateClass([
3911
- (0, import_typeorm28.Column)({
4003
+ (0, import_typeorm29.Column)({
3912
4004
  name: "freelancer_viewed_at",
3913
4005
  type: "timestamp with time zone",
3914
4006
  nullable: true
3915
4007
  })
3916
4008
  ], Contract.prototype, "freelancerViewedAt", 2);
3917
4009
  __decorateClass([
3918
- (0, import_typeorm28.Column)({
4010
+ (0, import_typeorm29.Column)({
3919
4011
  name: "freelancer_signed_at",
3920
4012
  type: "timestamp with time zone",
3921
4013
  nullable: true
3922
4014
  })
3923
4015
  ], Contract.prototype, "freelancerSignedAt", 2);
3924
4016
  __decorateClass([
3925
- (0, import_typeorm28.Column)({
4017
+ (0, import_typeorm29.Column)({
3926
4018
  name: "rejectd_at",
3927
4019
  type: "timestamp with time zone",
3928
4020
  nullable: true
3929
4021
  })
3930
4022
  ], Contract.prototype, "rejectedAt", 2);
3931
4023
  __decorateClass([
3932
- (0, import_typeorm28.Column)({ name: "reject_reason", type: "varchar", nullable: true })
4024
+ (0, import_typeorm29.Column)({ name: "reject_reason", type: "varchar", nullable: true })
3933
4025
  ], Contract.prototype, "rejectReason", 2);
3934
4026
  __decorateClass([
3935
- (0, import_typeorm28.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
4027
+ (0, import_typeorm29.Column)({ name: "resend_count", type: "integer", default: 0 })
4028
+ ], Contract.prototype, "resendCount", 2);
4029
+ __decorateClass([
4030
+ (0, import_typeorm29.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
3936
4031
  ], Contract.prototype, "isWorkContractSent", 2);
3937
4032
  __decorateClass([
3938
- (0, import_typeorm28.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
4033
+ (0, import_typeorm29.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
3939
4034
  ], Contract.prototype, "isEscrowDeposited", 2);
3940
4035
  __decorateClass([
3941
- (0, import_typeorm28.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
4036
+ (0, import_typeorm29.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
3942
4037
  ], Contract.prototype, "signaturePositions", 2);
3943
4038
  __decorateClass([
3944
- (0, import_typeorm28.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
4039
+ (0, import_typeorm29.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
3945
4040
  ], Contract.prototype, "escrowWallet", 2);
3946
4041
  Contract = __decorateClass([
3947
- (0, import_typeorm28.Entity)("contracts")
4042
+ (0, import_typeorm29.Entity)("contracts")
3948
4043
  ], Contract);
3949
4044
 
3950
4045
  // src/entities/timesheets.entity.ts
3951
- var import_typeorm29 = require("typeorm");
4046
+ var import_typeorm30 = require("typeorm");
3952
4047
  var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
3953
4048
  TimesheetStatusEnum2["DRAFT"] = "DRAFT";
3954
4049
  TimesheetStatusEnum2["SEND"] = "SEND";
@@ -3961,87 +4056,87 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
3961
4056
  var Timesheet = class extends BaseEntity {
3962
4057
  };
3963
4058
  __decorateClass([
3964
- (0, import_typeorm29.Column)({ name: "job_id", type: "integer", nullable: true }),
3965
- (0, import_typeorm29.Index)()
4059
+ (0, import_typeorm30.Column)({ name: "job_id", type: "integer", nullable: true }),
4060
+ (0, import_typeorm30.Index)()
3966
4061
  ], Timesheet.prototype, "jobId", 2);
3967
4062
  __decorateClass([
3968
- (0, import_typeorm29.ManyToOne)(() => Job, (job) => job.timesheets),
3969
- (0, import_typeorm29.JoinColumn)({ name: "job_id" })
4063
+ (0, import_typeorm30.ManyToOne)(() => Job, (job) => job.timesheets),
4064
+ (0, import_typeorm30.JoinColumn)({ name: "job_id" })
3970
4065
  ], Timesheet.prototype, "job", 2);
3971
4066
  __decorateClass([
3972
- (0, import_typeorm29.Column)({ name: "client_id", type: "integer", nullable: true }),
3973
- (0, import_typeorm29.Index)()
4067
+ (0, import_typeorm30.Column)({ name: "client_id", type: "integer", nullable: true }),
4068
+ (0, import_typeorm30.Index)()
3974
4069
  ], Timesheet.prototype, "clientId", 2);
3975
4070
  __decorateClass([
3976
- (0, import_typeorm29.ManyToOne)(() => User, (user) => user.clientTimesheets),
3977
- (0, import_typeorm29.JoinColumn)({ name: "client_id" })
4071
+ (0, import_typeorm30.ManyToOne)(() => User, (user) => user.clientTimesheets),
4072
+ (0, import_typeorm30.JoinColumn)({ name: "client_id" })
3978
4073
  ], Timesheet.prototype, "client", 2);
3979
4074
  __decorateClass([
3980
- (0, import_typeorm29.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3981
- (0, import_typeorm29.Index)()
4075
+ (0, import_typeorm30.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
4076
+ (0, import_typeorm30.Index)()
3982
4077
  ], Timesheet.prototype, "freelancerId", 2);
3983
4078
  __decorateClass([
3984
- (0, import_typeorm29.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
3985
- (0, import_typeorm29.JoinColumn)({ name: "freelancer_id" })
4079
+ (0, import_typeorm30.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
4080
+ (0, import_typeorm30.JoinColumn)({ name: "freelancer_id" })
3986
4081
  ], Timesheet.prototype, "freelancer", 2);
3987
4082
  __decorateClass([
3988
- (0, import_typeorm29.Column)({
4083
+ (0, import_typeorm30.Column)({
3989
4084
  name: "start_date",
3990
4085
  type: "date",
3991
4086
  nullable: true
3992
4087
  })
3993
4088
  ], Timesheet.prototype, "startDate", 2);
3994
4089
  __decorateClass([
3995
- (0, import_typeorm29.Column)({
4090
+ (0, import_typeorm30.Column)({
3996
4091
  name: "end_date",
3997
4092
  type: "date",
3998
4093
  nullable: true
3999
4094
  })
4000
4095
  ], Timesheet.prototype, "endDate", 2);
4001
4096
  __decorateClass([
4002
- (0, import_typeorm29.Column)({ name: "start_time", type: "varchar", nullable: true })
4097
+ (0, import_typeorm30.Column)({ name: "start_time", type: "varchar", nullable: true })
4003
4098
  ], Timesheet.prototype, "startTime", 2);
4004
4099
  __decorateClass([
4005
- (0, import_typeorm29.Column)({ name: "end_time", type: "varchar", nullable: true })
4100
+ (0, import_typeorm30.Column)({ name: "end_time", type: "varchar", nullable: true })
4006
4101
  ], Timesheet.prototype, "endTime", 2);
4007
4102
  __decorateClass([
4008
- (0, import_typeorm29.Column)({ name: "worked_hours", type: "varchar", nullable: true })
4103
+ (0, import_typeorm30.Column)({ name: "worked_hours", type: "varchar", nullable: true })
4009
4104
  ], Timesheet.prototype, "workedHours", 2);
4010
4105
  __decorateClass([
4011
- (0, import_typeorm29.Column)({ name: "task_id", type: "integer", nullable: true })
4106
+ (0, import_typeorm30.Column)({ name: "task_id", type: "integer", nullable: true })
4012
4107
  ], Timesheet.prototype, "taskId", 2);
4013
4108
  __decorateClass([
4014
- (0, import_typeorm29.Column)({ name: "task_name", type: "varchar", nullable: true })
4109
+ (0, import_typeorm30.Column)({ name: "task_name", type: "varchar", nullable: true })
4015
4110
  ], Timesheet.prototype, "taskName", 2);
4016
4111
  __decorateClass([
4017
- (0, import_typeorm29.Column)({ name: "description", type: "varchar", nullable: true })
4112
+ (0, import_typeorm30.Column)({ name: "description", type: "varchar", nullable: true })
4018
4113
  ], Timesheet.prototype, "description", 2);
4019
4114
  __decorateClass([
4020
- (0, import_typeorm29.Column)({ name: "week_start_date", type: "date", nullable: true })
4115
+ (0, import_typeorm30.Column)({ name: "week_start_date", type: "date", nullable: true })
4021
4116
  ], Timesheet.prototype, "weekStartDate", 2);
4022
4117
  __decorateClass([
4023
- (0, import_typeorm29.Column)({ name: "week_end_date", type: "date", nullable: true })
4118
+ (0, import_typeorm30.Column)({ name: "week_end_date", type: "date", nullable: true })
4024
4119
  ], Timesheet.prototype, "weekEndDate", 2);
4025
4120
  __decorateClass([
4026
- (0, import_typeorm29.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4121
+ (0, import_typeorm30.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4027
4122
  ], Timesheet.prototype, "rejectedAt", 2);
4028
4123
  __decorateClass([
4029
- (0, import_typeorm29.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4124
+ (0, import_typeorm30.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4030
4125
  ], Timesheet.prototype, "submittedAt", 2);
4031
4126
  __decorateClass([
4032
- (0, import_typeorm29.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4127
+ (0, import_typeorm30.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4033
4128
  ], Timesheet.prototype, "resubmittedAt", 2);
4034
4129
  __decorateClass([
4035
- (0, import_typeorm29.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4130
+ (0, import_typeorm30.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4036
4131
  ], Timesheet.prototype, "approvedAt", 2);
4037
4132
  __decorateClass([
4038
- (0, import_typeorm29.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4133
+ (0, import_typeorm30.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4039
4134
  ], Timesheet.prototype, "status", 2);
4040
4135
  __decorateClass([
4041
- (0, import_typeorm29.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
4136
+ (0, import_typeorm30.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
4042
4137
  ], Timesheet.prototype, "clientSendBackReason", 2);
4043
4138
  Timesheet = __decorateClass([
4044
- (0, import_typeorm29.Entity)("timesheets")
4139
+ (0, import_typeorm30.Entity)("timesheets")
4045
4140
  ], Timesheet);
4046
4141
 
4047
4142
  // src/entities/job.entity.ts
@@ -4085,55 +4180,55 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
4085
4180
  var Job = class extends BaseEntity {
4086
4181
  };
4087
4182
  __decorateClass([
4088
- (0, import_typeorm30.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
4183
+ (0, import_typeorm31.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
4089
4184
  ], Job.prototype, "jobId", 2);
4090
4185
  // individual index to find jobs by user
4091
4186
  __decorateClass([
4092
- (0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
4093
- (0, import_typeorm30.Index)()
4187
+ (0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
4188
+ (0, import_typeorm31.Index)()
4094
4189
  ], Job.prototype, "userId", 2);
4095
4190
  __decorateClass([
4096
- (0, import_typeorm30.ManyToOne)(() => User, (user) => user.jobs),
4097
- (0, import_typeorm30.JoinColumn)({ name: "user_id" })
4191
+ (0, import_typeorm31.ManyToOne)(() => User, (user) => user.jobs),
4192
+ (0, import_typeorm31.JoinColumn)({ name: "user_id" })
4098
4193
  ], Job.prototype, "user", 2);
4099
4194
  __decorateClass([
4100
- (0, import_typeorm30.Column)({ name: "country_id", type: "int", nullable: true })
4195
+ (0, import_typeorm31.Column)({ name: "country_id", type: "int", nullable: true })
4101
4196
  ], Job.prototype, "countryId", 2);
4102
4197
  __decorateClass([
4103
- (0, import_typeorm30.ManyToOne)(() => Country),
4104
- (0, import_typeorm30.JoinColumn)({ name: "country_id" })
4198
+ (0, import_typeorm31.ManyToOne)(() => Country),
4199
+ (0, import_typeorm31.JoinColumn)({ name: "country_id" })
4105
4200
  ], Job.prototype, "country", 2);
4106
4201
  __decorateClass([
4107
- (0, import_typeorm30.Column)({ name: "state_id", type: "int", nullable: true })
4202
+ (0, import_typeorm31.Column)({ name: "state_id", type: "int", nullable: true })
4108
4203
  ], Job.prototype, "stateId", 2);
4109
4204
  __decorateClass([
4110
- (0, import_typeorm30.ManyToOne)(() => State),
4111
- (0, import_typeorm30.JoinColumn)({ name: "state_id" })
4205
+ (0, import_typeorm31.ManyToOne)(() => State),
4206
+ (0, import_typeorm31.JoinColumn)({ name: "state_id" })
4112
4207
  ], Job.prototype, "state", 2);
4113
4208
  __decorateClass([
4114
- (0, import_typeorm30.Column)({ name: "city_id", type: "int", nullable: true })
4209
+ (0, import_typeorm31.Column)({ name: "city_id", type: "int", nullable: true })
4115
4210
  ], Job.prototype, "cityId", 2);
4116
4211
  __decorateClass([
4117
- (0, import_typeorm30.ManyToOne)(() => City),
4118
- (0, import_typeorm30.JoinColumn)({ name: "city_id" })
4212
+ (0, import_typeorm31.ManyToOne)(() => City),
4213
+ (0, import_typeorm31.JoinColumn)({ name: "city_id" })
4119
4214
  ], Job.prototype, "city", 2);
4120
4215
  __decorateClass([
4121
- (0, import_typeorm30.Column)({ name: "job_role", type: "varchar", nullable: true })
4216
+ (0, import_typeorm31.Column)({ name: "job_role", type: "varchar", nullable: true })
4122
4217
  ], Job.prototype, "jobRole", 2);
4123
4218
  __decorateClass([
4124
- (0, import_typeorm30.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4219
+ (0, import_typeorm31.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4125
4220
  ], Job.prototype, "jobRoleCanonicalName", 2);
4126
4221
  __decorateClass([
4127
- (0, import_typeorm30.Column)({ name: "project_name", type: "varchar", nullable: true })
4222
+ (0, import_typeorm31.Column)({ name: "project_name", type: "varchar", nullable: true })
4128
4223
  ], Job.prototype, "projectName", 2);
4129
4224
  __decorateClass([
4130
- (0, import_typeorm30.Column)({ name: "note", type: "varchar", nullable: true })
4225
+ (0, import_typeorm31.Column)({ name: "note", type: "varchar", nullable: true })
4131
4226
  ], Job.prototype, "note", 2);
4132
4227
  __decorateClass([
4133
- (0, import_typeorm30.Column)({ name: "openings", type: "integer", default: 0 })
4228
+ (0, import_typeorm31.Column)({ name: "openings", type: "integer", default: 0 })
4134
4229
  ], Job.prototype, "openings", 2);
4135
4230
  __decorateClass([
4136
- (0, import_typeorm30.Column)({
4231
+ (0, import_typeorm31.Column)({
4137
4232
  name: "location",
4138
4233
  type: "enum",
4139
4234
  enum: JobLocationEnum,
@@ -4141,7 +4236,7 @@ __decorateClass([
4141
4236
  })
4142
4237
  ], Job.prototype, "location", 2);
4143
4238
  __decorateClass([
4144
- (0, import_typeorm30.Column)({
4239
+ (0, import_typeorm31.Column)({
4145
4240
  name: "type_of_employment",
4146
4241
  type: "enum",
4147
4242
  enum: TypeOfEmploymentEnum,
@@ -4149,19 +4244,19 @@ __decorateClass([
4149
4244
  })
4150
4245
  ], Job.prototype, "typeOfEmployment", 2);
4151
4246
  __decorateClass([
4152
- (0, import_typeorm30.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4247
+ (0, import_typeorm31.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4153
4248
  ], Job.prototype, "academicQualification", 2);
4154
4249
  __decorateClass([
4155
- (0, import_typeorm30.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
4250
+ (0, import_typeorm31.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
4156
4251
  ], Job.prototype, "yearsOfExperience", 2);
4157
4252
  __decorateClass([
4158
- (0, import_typeorm30.Column)({ name: "business_industry", type: "varchar", nullable: true })
4253
+ (0, import_typeorm31.Column)({ name: "business_industry", type: "varchar", nullable: true })
4159
4254
  ], Job.prototype, "businessIndustry", 2);
4160
4255
  __decorateClass([
4161
- (0, import_typeorm30.Column)({ name: "currency", type: "varchar", default: "USD" })
4256
+ (0, import_typeorm31.Column)({ name: "currency", type: "varchar", default: "USD" })
4162
4257
  ], Job.prototype, "currency", 2);
4163
4258
  __decorateClass([
4164
- (0, import_typeorm30.Column)({
4259
+ (0, import_typeorm31.Column)({
4165
4260
  name: "expected_salary_from",
4166
4261
  type: "decimal",
4167
4262
  precision: 10,
@@ -4170,14 +4265,14 @@ __decorateClass([
4170
4265
  })
4171
4266
  ], Job.prototype, "expectedSalaryFrom", 2);
4172
4267
  __decorateClass([
4173
- (0, import_typeorm30.Column)({
4268
+ (0, import_typeorm31.Column)({
4174
4269
  name: "hide_expected_salary_from",
4175
4270
  type: "boolean",
4176
4271
  default: false
4177
4272
  })
4178
4273
  ], Job.prototype, "hideExpectedSalaryFrom", 2);
4179
4274
  __decorateClass([
4180
- (0, import_typeorm30.Column)({
4275
+ (0, import_typeorm31.Column)({
4181
4276
  name: "expected_salary_to",
4182
4277
  type: "decimal",
4183
4278
  precision: 10,
@@ -4186,32 +4281,32 @@ __decorateClass([
4186
4281
  })
4187
4282
  ], Job.prototype, "expectedSalaryTo", 2);
4188
4283
  __decorateClass([
4189
- (0, import_typeorm30.Column)({
4284
+ (0, import_typeorm31.Column)({
4190
4285
  name: "hide_expected_salary_to",
4191
4286
  type: "boolean",
4192
4287
  default: false
4193
4288
  })
4194
4289
  ], Job.prototype, "hideExpectedSalaryTo", 2);
4195
4290
  __decorateClass([
4196
- (0, import_typeorm30.Column)({ name: "years", type: "varchar", nullable: true })
4291
+ (0, import_typeorm31.Column)({ name: "years", type: "varchar", nullable: true })
4197
4292
  ], Job.prototype, "years", 2);
4198
4293
  __decorateClass([
4199
- (0, import_typeorm30.Column)({ name: "months", type: "varchar", nullable: true })
4294
+ (0, import_typeorm31.Column)({ name: "months", type: "varchar", nullable: true })
4200
4295
  ], Job.prototype, "months", 2);
4201
4296
  __decorateClass([
4202
- (0, import_typeorm30.Column)({ name: "weeks", type: "varchar", nullable: true })
4297
+ (0, import_typeorm31.Column)({ name: "weeks", type: "varchar", nullable: true })
4203
4298
  ], Job.prototype, "weeks", 2);
4204
4299
  __decorateClass([
4205
- (0, import_typeorm30.Column)({ name: "days", type: "varchar", nullable: true })
4300
+ (0, import_typeorm31.Column)({ name: "days", type: "varchar", nullable: true })
4206
4301
  ], Job.prototype, "days", 2);
4207
4302
  __decorateClass([
4208
- (0, import_typeorm30.Column)({ name: "tentative_start_date", type: "date", nullable: true })
4303
+ (0, import_typeorm31.Column)({ name: "tentative_start_date", type: "date", nullable: true })
4209
4304
  ], Job.prototype, "tentativeStartDate", 2);
4210
4305
  __decorateClass([
4211
- (0, import_typeorm30.Column)({ name: "tentative_end_date", type: "date", nullable: true })
4306
+ (0, import_typeorm31.Column)({ name: "tentative_end_date", type: "date", nullable: true })
4212
4307
  ], Job.prototype, "tentativeEndDate", 2);
4213
4308
  __decorateClass([
4214
- (0, import_typeorm30.Column)({
4309
+ (0, import_typeorm31.Column)({
4215
4310
  name: "duration_type",
4216
4311
  type: "enum",
4217
4312
  enum: DurationTypeEnum,
@@ -4219,10 +4314,10 @@ __decorateClass([
4219
4314
  })
4220
4315
  ], Job.prototype, "durationType", 2);
4221
4316
  __decorateClass([
4222
- (0, import_typeorm30.Column)({ name: "duration", type: "varchar", nullable: true })
4317
+ (0, import_typeorm31.Column)({ name: "duration", type: "varchar", nullable: true })
4223
4318
  ], Job.prototype, "duration", 2);
4224
4319
  __decorateClass([
4225
- (0, import_typeorm30.Column)({
4320
+ (0, import_typeorm31.Column)({
4226
4321
  name: "number_of_hours",
4227
4322
  type: "decimal",
4228
4323
  precision: 4,
@@ -4231,13 +4326,13 @@ __decorateClass([
4231
4326
  })
4232
4327
  ], Job.prototype, "numberOfHours", 2);
4233
4328
  __decorateClass([
4234
- (0, import_typeorm30.Column)({ name: "description", type: "varchar", nullable: true })
4329
+ (0, import_typeorm31.Column)({ name: "description", type: "varchar", nullable: true })
4235
4330
  ], Job.prototype, "description", 2);
4236
4331
  __decorateClass([
4237
- (0, import_typeorm30.Column)({ name: "additional_comment", type: "varchar", nullable: true })
4332
+ (0, import_typeorm31.Column)({ name: "additional_comment", type: "varchar", nullable: true })
4238
4333
  ], Job.prototype, "additionalComment", 2);
4239
4334
  __decorateClass([
4240
- (0, import_typeorm30.Column)({
4335
+ (0, import_typeorm31.Column)({
4241
4336
  name: "onboarding_tat",
4242
4337
  type: "varchar",
4243
4338
  length: 50,
@@ -4245,14 +4340,14 @@ __decorateClass([
4245
4340
  })
4246
4341
  ], Job.prototype, "onboardingTat", 2);
4247
4342
  __decorateClass([
4248
- (0, import_typeorm30.Column)({
4343
+ (0, import_typeorm31.Column)({
4249
4344
  name: "candidate_communication_skills",
4250
4345
  type: "varchar",
4251
4346
  nullable: true
4252
4347
  })
4253
4348
  ], Job.prototype, "candidateCommunicationSkills", 2);
4254
4349
  __decorateClass([
4255
- (0, import_typeorm30.Column)({
4350
+ (0, import_typeorm31.Column)({
4256
4351
  name: "step_completed",
4257
4352
  type: "enum",
4258
4353
  enum: Step,
@@ -4260,7 +4355,7 @@ __decorateClass([
4260
4355
  })
4261
4356
  ], Job.prototype, "stepCompleted", 2);
4262
4357
  __decorateClass([
4263
- (0, import_typeorm30.Column)({
4358
+ (0, import_typeorm31.Column)({
4264
4359
  name: "status",
4265
4360
  type: "enum",
4266
4361
  enum: JobStatusEnum,
@@ -4268,40 +4363,40 @@ __decorateClass([
4268
4363
  })
4269
4364
  ], Job.prototype, "status", 2);
4270
4365
  __decorateClass([
4271
- (0, import_typeorm30.Column)({ name: "viewed_count", type: "integer", default: 0 })
4366
+ (0, import_typeorm31.Column)({ name: "viewed_count", type: "integer", default: 0 })
4272
4367
  ], Job.prototype, "viewedCount", 2);
4273
4368
  __decorateClass([
4274
- (0, import_typeorm30.Column)({ name: "application_count", type: "integer", default: 0 })
4369
+ (0, import_typeorm31.Column)({ name: "application_count", type: "integer", default: 0 })
4275
4370
  ], Job.prototype, "applicationCount", 2);
4276
4371
  __decorateClass([
4277
- (0, import_typeorm30.Column)({ name: "is_contract_signed", type: "boolean", default: false })
4372
+ (0, import_typeorm31.Column)({ name: "is_contract_signed", type: "boolean", default: false })
4278
4373
  ], Job.prototype, "isContractSigned", 2);
4279
4374
  __decorateClass([
4280
- (0, import_typeorm30.Column)({ name: "is_interview_created", type: "boolean", default: false })
4375
+ (0, import_typeorm31.Column)({ name: "is_interview_created", type: "boolean", default: false })
4281
4376
  ], Job.prototype, "isInterviewCreated", 2);
4282
4377
  __decorateClass([
4283
- (0, import_typeorm30.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4378
+ (0, import_typeorm31.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4284
4379
  ], Job.prototype, "interviewInvites", 2);
4285
4380
  __decorateClass([
4286
- (0, import_typeorm30.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4381
+ (0, import_typeorm31.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4287
4382
  ], Job.prototype, "jobSkills", 2);
4288
4383
  __decorateClass([
4289
- (0, import_typeorm30.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
4384
+ (0, import_typeorm31.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
4290
4385
  cascade: true
4291
4386
  })
4292
4387
  ], Job.prototype, "jobApplications", 2);
4293
4388
  __decorateClass([
4294
- (0, import_typeorm30.OneToMany)(() => Interview, (interview) => interview.job, {
4389
+ (0, import_typeorm31.OneToMany)(() => Interview, (interview) => interview.job, {
4295
4390
  cascade: true
4296
4391
  })
4297
4392
  ], Job.prototype, "interviews", 2);
4298
4393
  __decorateClass([
4299
- (0, import_typeorm30.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4394
+ (0, import_typeorm31.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4300
4395
  cascade: true
4301
4396
  })
4302
4397
  ], Job.prototype, "f2fInterviews", 2);
4303
4398
  __decorateClass([
4304
- (0, import_typeorm30.OneToMany)(
4399
+ (0, import_typeorm31.OneToMany)(
4305
4400
  () => JobRecommendation,
4306
4401
  (jobRecommendation) => jobRecommendation.job,
4307
4402
  {
@@ -4310,39 +4405,39 @@ __decorateClass([
4310
4405
  )
4311
4406
  ], Job.prototype, "recommendations", 2);
4312
4407
  __decorateClass([
4313
- (0, import_typeorm30.OneToMany)(() => Contract, (contract) => contract.job, {
4408
+ (0, import_typeorm31.OneToMany)(() => Contract, (contract) => contract.job, {
4314
4409
  cascade: true
4315
4410
  })
4316
4411
  ], Job.prototype, "contracts", 2);
4317
4412
  __decorateClass([
4318
- (0, import_typeorm30.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
4413
+ (0, import_typeorm31.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
4319
4414
  cascade: true
4320
4415
  })
4321
4416
  ], Job.prototype, "escrowWallets", 2);
4322
4417
  __decorateClass([
4323
- (0, import_typeorm30.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
4418
+ (0, import_typeorm31.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
4324
4419
  cascade: true
4325
4420
  })
4326
4421
  ], Job.prototype, "timesheets", 2);
4327
4422
  __decorateClass([
4328
- (0, import_typeorm30.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4423
+ (0, import_typeorm31.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4329
4424
  cascade: true
4330
4425
  })
4331
4426
  ], Job.prototype, "timesheetLine", 2);
4332
4427
  __decorateClass([
4333
- (0, import_typeorm30.OneToMany)(() => Invoice, (invoice) => invoice.job, {
4428
+ (0, import_typeorm31.OneToMany)(() => Invoice, (invoice) => invoice.job, {
4334
4429
  cascade: true
4335
4430
  })
4336
4431
  ], Job.prototype, "invoice", 2);
4337
4432
  __decorateClass([
4338
- (0, import_typeorm30.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
4433
+ (0, import_typeorm31.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
4339
4434
  ], Job.prototype, "clientCandidatePreferences", 2);
4340
4435
  Job = __decorateClass([
4341
- (0, import_typeorm30.Entity)("jobs")
4436
+ (0, import_typeorm31.Entity)("jobs")
4342
4437
  ], Job);
4343
4438
 
4344
4439
  // src/entities/bank-details.entity.ts
4345
- var import_typeorm31 = require("typeorm");
4440
+ var import_typeorm32 = require("typeorm");
4346
4441
  var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
4347
4442
  BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
4348
4443
  BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
@@ -4357,51 +4452,51 @@ var BankDetail = class extends BaseEntity {
4357
4452
  };
4358
4453
  // individual index to find bank details by user
4359
4454
  __decorateClass([
4360
- (0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
4361
- (0, import_typeorm31.Index)()
4455
+ (0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
4456
+ (0, import_typeorm32.Index)()
4362
4457
  ], BankDetail.prototype, "userId", 2);
4363
4458
  __decorateClass([
4364
- (0, import_typeorm31.ManyToOne)(() => User, (user) => user.bankDetail),
4365
- (0, import_typeorm31.JoinColumn)({ name: "user_id" })
4459
+ (0, import_typeorm32.ManyToOne)(() => User, (user) => user.bankDetail),
4460
+ (0, import_typeorm32.JoinColumn)({ name: "user_id" })
4366
4461
  ], BankDetail.prototype, "user", 2);
4367
4462
  __decorateClass([
4368
- (0, import_typeorm31.Column)({ name: "name", type: "varchar", nullable: true })
4463
+ (0, import_typeorm32.Column)({ name: "name", type: "varchar", nullable: true })
4369
4464
  ], BankDetail.prototype, "name", 2);
4370
4465
  __decorateClass([
4371
- (0, import_typeorm31.Column)({ name: "mobile_code", type: "varchar", nullable: true })
4466
+ (0, import_typeorm32.Column)({ name: "mobile_code", type: "varchar", nullable: true })
4372
4467
  ], BankDetail.prototype, "mobileCode", 2);
4373
4468
  __decorateClass([
4374
- (0, import_typeorm31.Column)({ name: "mobile", type: "varchar", nullable: true })
4469
+ (0, import_typeorm32.Column)({ name: "mobile", type: "varchar", nullable: true })
4375
4470
  ], BankDetail.prototype, "mobile", 2);
4376
4471
  __decorateClass([
4377
- (0, import_typeorm31.Column)({ name: "email", type: "varchar" })
4472
+ (0, import_typeorm32.Column)({ name: "email", type: "varchar" })
4378
4473
  ], BankDetail.prototype, "email", 2);
4379
4474
  __decorateClass([
4380
- (0, import_typeorm31.Column)({ name: "address", type: "varchar", nullable: true })
4475
+ (0, import_typeorm32.Column)({ name: "address", type: "varchar", nullable: true })
4381
4476
  ], BankDetail.prototype, "address", 2);
4382
4477
  __decorateClass([
4383
- (0, import_typeorm31.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
4478
+ (0, import_typeorm32.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
4384
4479
  ], BankDetail.prototype, "accountNumber", 2);
4385
4480
  __decorateClass([
4386
- (0, import_typeorm31.Column)({ name: "bank_name", type: "varchar", nullable: true })
4481
+ (0, import_typeorm32.Column)({ name: "bank_name", type: "varchar", nullable: true })
4387
4482
  ], BankDetail.prototype, "bankName", 2);
4388
4483
  __decorateClass([
4389
- (0, import_typeorm31.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
4484
+ (0, import_typeorm32.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
4390
4485
  ], BankDetail.prototype, "ifscCode", 2);
4391
4486
  __decorateClass([
4392
- (0, import_typeorm31.Column)({ name: "branch_name", type: "varchar", nullable: true })
4487
+ (0, import_typeorm32.Column)({ name: "branch_name", type: "varchar", nullable: true })
4393
4488
  ], BankDetail.prototype, "branchName", 2);
4394
4489
  __decorateClass([
4395
- (0, import_typeorm31.Column)({ name: "routing_no", type: "varchar", nullable: true })
4490
+ (0, import_typeorm32.Column)({ name: "routing_no", type: "varchar", nullable: true })
4396
4491
  ], BankDetail.prototype, "routingNo", 2);
4397
4492
  __decorateClass([
4398
- (0, import_typeorm31.Column)({ name: "aba_no", type: "varchar", nullable: true })
4493
+ (0, import_typeorm32.Column)({ name: "aba_no", type: "varchar", nullable: true })
4399
4494
  ], BankDetail.prototype, "abaNumber", 2);
4400
4495
  __decorateClass([
4401
- (0, import_typeorm31.Column)({ name: "iban", type: "varchar", nullable: true })
4496
+ (0, import_typeorm32.Column)({ name: "iban", type: "varchar", nullable: true })
4402
4497
  ], BankDetail.prototype, "iban", 2);
4403
4498
  __decorateClass([
4404
- (0, import_typeorm31.Column)({
4499
+ (0, import_typeorm32.Column)({
4405
4500
  name: "account_type",
4406
4501
  type: "enum",
4407
4502
  enum: BankAccountTypeEnum,
@@ -4409,7 +4504,7 @@ __decorateClass([
4409
4504
  })
4410
4505
  ], BankDetail.prototype, "accountType", 2);
4411
4506
  __decorateClass([
4412
- (0, import_typeorm31.Column)({
4507
+ (0, import_typeorm32.Column)({
4413
4508
  name: "account_scope",
4414
4509
  type: "enum",
4415
4510
  enum: BankAccountScopeEnum,
@@ -4417,150 +4512,150 @@ __decorateClass([
4417
4512
  })
4418
4513
  ], BankDetail.prototype, "accountScope", 2);
4419
4514
  BankDetail = __decorateClass([
4420
- (0, import_typeorm31.Entity)("bank_details")
4515
+ (0, import_typeorm32.Entity)("bank_details")
4421
4516
  ], BankDetail);
4422
4517
 
4423
4518
  // src/entities/system-preference.entity.ts
4424
- var import_typeorm32 = require("typeorm");
4519
+ var import_typeorm33 = require("typeorm");
4425
4520
  var SystemPreference = class extends BaseEntity {
4426
4521
  };
4427
4522
  // individual index to find system preference by user
4428
4523
  __decorateClass([
4429
- (0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
4430
- (0, import_typeorm32.Index)()
4524
+ (0, import_typeorm33.Column)({ name: "user_id", type: "integer", nullable: true }),
4525
+ (0, import_typeorm33.Index)()
4431
4526
  ], SystemPreference.prototype, "userId", 2);
4432
4527
  __decorateClass([
4433
- (0, import_typeorm32.ManyToOne)(() => User, (user) => user.systemPreference),
4434
- (0, import_typeorm32.JoinColumn)({ name: "user_id" })
4528
+ (0, import_typeorm33.ManyToOne)(() => User, (user) => user.systemPreference),
4529
+ (0, import_typeorm33.JoinColumn)({ name: "user_id" })
4435
4530
  ], SystemPreference.prototype, "user", 2);
4436
4531
  __decorateClass([
4437
- (0, import_typeorm32.Column)({ name: "key", type: "varchar", nullable: false })
4532
+ (0, import_typeorm33.Column)({ name: "key", type: "varchar", nullable: false })
4438
4533
  ], SystemPreference.prototype, "key", 2);
4439
4534
  __decorateClass([
4440
- (0, import_typeorm32.Column)({ name: "value", type: "boolean", default: false })
4535
+ (0, import_typeorm33.Column)({ name: "value", type: "boolean", default: false })
4441
4536
  ], SystemPreference.prototype, "value", 2);
4442
4537
  SystemPreference = __decorateClass([
4443
- (0, import_typeorm32.Entity)("system_preferences")
4538
+ (0, import_typeorm33.Entity)("system_preferences")
4444
4539
  ], SystemPreference);
4445
4540
 
4446
4541
  // src/entities/freelancer-experience.entity.ts
4447
- var import_typeorm33 = require("typeorm");
4542
+ var import_typeorm34 = require("typeorm");
4448
4543
  var FreelancerExperience = class extends BaseEntity {
4449
4544
  };
4450
4545
  // individual index to find experence by user
4451
4546
  __decorateClass([
4452
- (0, import_typeorm33.Column)({ name: "user_id", type: "integer", nullable: true }),
4453
- (0, import_typeorm33.Index)()
4547
+ (0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
4548
+ (0, import_typeorm34.Index)()
4454
4549
  ], FreelancerExperience.prototype, "userId", 2);
4455
4550
  __decorateClass([
4456
- (0, import_typeorm33.ManyToOne)(() => User, (user) => user.freelancerExperience),
4457
- (0, import_typeorm33.JoinColumn)({ name: "user_id" })
4551
+ (0, import_typeorm34.ManyToOne)(() => User, (user) => user.freelancerExperience),
4552
+ (0, import_typeorm34.JoinColumn)({ name: "user_id" })
4458
4553
  ], FreelancerExperience.prototype, "user", 2);
4459
4554
  __decorateClass([
4460
- (0, import_typeorm33.Column)({ name: "company_name", type: "varchar", nullable: true })
4555
+ (0, import_typeorm34.Column)({ name: "company_name", type: "varchar", nullable: true })
4461
4556
  ], FreelancerExperience.prototype, "companyName", 2);
4462
4557
  __decorateClass([
4463
- (0, import_typeorm33.Column)({ name: "designation", type: "varchar", nullable: true })
4558
+ (0, import_typeorm34.Column)({ name: "designation", type: "varchar", nullable: true })
4464
4559
  ], FreelancerExperience.prototype, "designation", 2);
4465
4560
  __decorateClass([
4466
- (0, import_typeorm33.Column)({ name: "job_duration", type: "varchar", nullable: true })
4561
+ (0, import_typeorm34.Column)({ name: "job_duration", type: "varchar", nullable: true })
4467
4562
  ], FreelancerExperience.prototype, "jobDuration", 2);
4468
4563
  __decorateClass([
4469
- (0, import_typeorm33.Column)({ name: "description", type: "varchar", nullable: true })
4564
+ (0, import_typeorm34.Column)({ name: "description", type: "varchar", nullable: true })
4470
4565
  ], FreelancerExperience.prototype, "description", 2);
4471
4566
  FreelancerExperience = __decorateClass([
4472
- (0, import_typeorm33.Entity)("freelancer_experiences")
4567
+ (0, import_typeorm34.Entity)("freelancer_experiences")
4473
4568
  ], FreelancerExperience);
4474
4569
 
4475
4570
  // src/entities/freelancer-education.entity.ts
4476
- var import_typeorm34 = require("typeorm");
4571
+ var import_typeorm35 = require("typeorm");
4477
4572
  var FreelancerEducation = class extends BaseEntity {
4478
4573
  };
4479
4574
  // individual index to find education by user
4480
4575
  __decorateClass([
4481
- (0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
4482
- (0, import_typeorm34.Index)()
4576
+ (0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
4577
+ (0, import_typeorm35.Index)()
4483
4578
  ], FreelancerEducation.prototype, "userId", 2);
4484
4579
  __decorateClass([
4485
- (0, import_typeorm34.ManyToOne)(() => User, (user) => user.freelancerEducation),
4486
- (0, import_typeorm34.JoinColumn)({ name: "user_id" })
4580
+ (0, import_typeorm35.ManyToOne)(() => User, (user) => user.freelancerEducation),
4581
+ (0, import_typeorm35.JoinColumn)({ name: "user_id" })
4487
4582
  ], FreelancerEducation.prototype, "user", 2);
4488
4583
  __decorateClass([
4489
- (0, import_typeorm34.Column)({ name: "degree", type: "varchar", nullable: true })
4584
+ (0, import_typeorm35.Column)({ name: "degree", type: "varchar", nullable: true })
4490
4585
  ], FreelancerEducation.prototype, "degree", 2);
4491
4586
  __decorateClass([
4492
- (0, import_typeorm34.Column)({ name: "university", type: "varchar", nullable: true })
4587
+ (0, import_typeorm35.Column)({ name: "university", type: "varchar", nullable: true })
4493
4588
  ], FreelancerEducation.prototype, "university", 2);
4494
4589
  __decorateClass([
4495
- (0, import_typeorm34.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
4590
+ (0, import_typeorm35.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
4496
4591
  ], FreelancerEducation.prototype, "yearOfGraduation", 2);
4497
4592
  FreelancerEducation = __decorateClass([
4498
- (0, import_typeorm34.Entity)("freelancer_educations")
4593
+ (0, import_typeorm35.Entity)("freelancer_educations")
4499
4594
  ], FreelancerEducation);
4500
4595
 
4501
4596
  // src/entities/freelancer-project.entity.ts
4502
- var import_typeorm35 = require("typeorm");
4597
+ var import_typeorm36 = require("typeorm");
4503
4598
  var FreelancerProject = class extends BaseEntity {
4504
4599
  };
4505
4600
  // individual index to find project by user
4506
4601
  __decorateClass([
4507
- (0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
4508
- (0, import_typeorm35.Index)()
4602
+ (0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
4603
+ (0, import_typeorm36.Index)()
4509
4604
  ], FreelancerProject.prototype, "userId", 2);
4510
4605
  __decorateClass([
4511
- (0, import_typeorm35.ManyToOne)(() => User, (user) => user.freelancerProject),
4512
- (0, import_typeorm35.JoinColumn)({ name: "user_id" })
4606
+ (0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerProject),
4607
+ (0, import_typeorm36.JoinColumn)({ name: "user_id" })
4513
4608
  ], FreelancerProject.prototype, "user", 2);
4514
4609
  __decorateClass([
4515
- (0, import_typeorm35.Column)({ name: "project_name", type: "varchar", nullable: true })
4610
+ (0, import_typeorm36.Column)({ name: "project_name", type: "varchar", nullable: true })
4516
4611
  ], FreelancerProject.prototype, "projectName", 2);
4517
4612
  __decorateClass([
4518
- (0, import_typeorm35.Column)({ name: "start_date", type: "date", nullable: true })
4613
+ (0, import_typeorm36.Column)({ name: "start_date", type: "date", nullable: true })
4519
4614
  ], FreelancerProject.prototype, "startDate", 2);
4520
4615
  __decorateClass([
4521
- (0, import_typeorm35.Column)({ name: "end_date", type: "date", nullable: true })
4616
+ (0, import_typeorm36.Column)({ name: "end_date", type: "date", nullable: true })
4522
4617
  ], FreelancerProject.prototype, "endDate", 2);
4523
4618
  __decorateClass([
4524
- (0, import_typeorm35.Column)({ name: "client_name", type: "varchar", nullable: true })
4619
+ (0, import_typeorm36.Column)({ name: "client_name", type: "varchar", nullable: true })
4525
4620
  ], FreelancerProject.prototype, "clientName", 2);
4526
4621
  __decorateClass([
4527
- (0, import_typeorm35.Column)({ name: "git_link", type: "varchar", nullable: true })
4622
+ (0, import_typeorm36.Column)({ name: "git_link", type: "varchar", nullable: true })
4528
4623
  ], FreelancerProject.prototype, "gitLink", 2);
4529
4624
  __decorateClass([
4530
- (0, import_typeorm35.Column)({ name: "description", type: "varchar", nullable: true })
4625
+ (0, import_typeorm36.Column)({ name: "description", type: "varchar", nullable: true })
4531
4626
  ], FreelancerProject.prototype, "description", 2);
4532
4627
  FreelancerProject = __decorateClass([
4533
- (0, import_typeorm35.Entity)("freelancer_projects")
4628
+ (0, import_typeorm36.Entity)("freelancer_projects")
4534
4629
  ], FreelancerProject);
4535
4630
 
4536
4631
  // src/entities/freelancer-casestudy.entity.ts
4537
- var import_typeorm36 = require("typeorm");
4632
+ var import_typeorm37 = require("typeorm");
4538
4633
  var FreelancerCaseStudy = class extends BaseEntity {
4539
4634
  };
4540
4635
  // individual index to find case study by user
4541
4636
  __decorateClass([
4542
- (0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
4543
- (0, import_typeorm36.Index)()
4637
+ (0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
4638
+ (0, import_typeorm37.Index)()
4544
4639
  ], FreelancerCaseStudy.prototype, "userId", 2);
4545
4640
  __decorateClass([
4546
- (0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
4547
- (0, import_typeorm36.JoinColumn)({ name: "user_id" })
4641
+ (0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
4642
+ (0, import_typeorm37.JoinColumn)({ name: "user_id" })
4548
4643
  ], FreelancerCaseStudy.prototype, "user", 2);
4549
4644
  __decorateClass([
4550
- (0, import_typeorm36.Column)({ name: "project_name", type: "varchar", nullable: true })
4645
+ (0, import_typeorm37.Column)({ name: "project_name", type: "varchar", nullable: true })
4551
4646
  ], FreelancerCaseStudy.prototype, "projectName", 2);
4552
4647
  __decorateClass([
4553
- (0, import_typeorm36.Column)({ name: "case_study_link", type: "varchar", nullable: true })
4648
+ (0, import_typeorm37.Column)({ name: "case_study_link", type: "varchar", nullable: true })
4554
4649
  ], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
4555
4650
  __decorateClass([
4556
- (0, import_typeorm36.Column)({ name: "description", type: "varchar", nullable: true })
4651
+ (0, import_typeorm37.Column)({ name: "description", type: "varchar", nullable: true })
4557
4652
  ], FreelancerCaseStudy.prototype, "description", 2);
4558
4653
  FreelancerCaseStudy = __decorateClass([
4559
- (0, import_typeorm36.Entity)("freelancer_case_studies")
4654
+ (0, import_typeorm37.Entity)("freelancer_case_studies")
4560
4655
  ], FreelancerCaseStudy);
4561
4656
 
4562
4657
  // src/entities/freelancer-skill.entity.ts
4563
- var import_typeorm37 = require("typeorm");
4658
+ var import_typeorm38 = require("typeorm");
4564
4659
  var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
4565
4660
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
4566
4661
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
@@ -4570,18 +4665,18 @@ var FreelancerSkill = class extends BaseEntity {
4570
4665
  };
4571
4666
  // individual index to find core skills by user
4572
4667
  __decorateClass([
4573
- (0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
4574
- (0, import_typeorm37.Index)()
4668
+ (0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
4669
+ (0, import_typeorm38.Index)()
4575
4670
  ], FreelancerSkill.prototype, "userId", 2);
4576
4671
  __decorateClass([
4577
- (0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerSkills),
4578
- (0, import_typeorm37.JoinColumn)({ name: "user_id" })
4672
+ (0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerSkills),
4673
+ (0, import_typeorm38.JoinColumn)({ name: "user_id" })
4579
4674
  ], FreelancerSkill.prototype, "user", 2);
4580
4675
  __decorateClass([
4581
- (0, import_typeorm37.Column)({ name: "skill_name", type: "varchar", nullable: true })
4676
+ (0, import_typeorm38.Column)({ name: "skill_name", type: "varchar", nullable: true })
4582
4677
  ], FreelancerSkill.prototype, "skillName", 2);
4583
4678
  __decorateClass([
4584
- (0, import_typeorm37.Column)({
4679
+ (0, import_typeorm38.Column)({
4585
4680
  name: "skill_category",
4586
4681
  type: "smallint",
4587
4682
  default: 1,
@@ -4589,51 +4684,51 @@ __decorateClass([
4589
4684
  })
4590
4685
  ], FreelancerSkill.prototype, "skillCategory", 2);
4591
4686
  FreelancerSkill = __decorateClass([
4592
- (0, import_typeorm37.Entity)("freelancer_skills")
4687
+ (0, import_typeorm38.Entity)("freelancer_skills")
4593
4688
  ], FreelancerSkill);
4594
4689
 
4595
4690
  // src/entities/freelancer-tool.entity.ts
4596
- var import_typeorm38 = require("typeorm");
4691
+ var import_typeorm39 = require("typeorm");
4597
4692
  var FreelancerTool = class extends BaseEntity {
4598
4693
  };
4599
4694
  // individual index to find tool by user
4600
4695
  __decorateClass([
4601
- (0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
4602
- (0, import_typeorm38.Index)()
4696
+ (0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
4697
+ (0, import_typeorm39.Index)()
4603
4698
  ], FreelancerTool.prototype, "userId", 2);
4604
4699
  __decorateClass([
4605
- (0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerTool),
4606
- (0, import_typeorm38.JoinColumn)({ name: "user_id" })
4700
+ (0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerTool),
4701
+ (0, import_typeorm39.JoinColumn)({ name: "user_id" })
4607
4702
  ], FreelancerTool.prototype, "user", 2);
4608
4703
  __decorateClass([
4609
- (0, import_typeorm38.Column)({ name: "tool_name", type: "varchar", nullable: true })
4704
+ (0, import_typeorm39.Column)({ name: "tool_name", type: "varchar", nullable: true })
4610
4705
  ], FreelancerTool.prototype, "toolName", 2);
4611
4706
  FreelancerTool = __decorateClass([
4612
- (0, import_typeorm38.Entity)("freelancer_tools")
4707
+ (0, import_typeorm39.Entity)("freelancer_tools")
4613
4708
  ], FreelancerTool);
4614
4709
 
4615
4710
  // src/entities/freelancer-framework.entity.ts
4616
- var import_typeorm39 = require("typeorm");
4711
+ var import_typeorm40 = require("typeorm");
4617
4712
  var FreelancerFramework = class extends BaseEntity {
4618
4713
  };
4619
4714
  // individual index to find framework by user
4620
4715
  __decorateClass([
4621
- (0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
4622
- (0, import_typeorm39.Index)()
4716
+ (0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
4717
+ (0, import_typeorm40.Index)()
4623
4718
  ], FreelancerFramework.prototype, "userId", 2);
4624
4719
  __decorateClass([
4625
- (0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerFramework),
4626
- (0, import_typeorm39.JoinColumn)({ name: "user_id" })
4720
+ (0, import_typeorm40.ManyToOne)(() => User, (user) => user.freelancerFramework),
4721
+ (0, import_typeorm40.JoinColumn)({ name: "user_id" })
4627
4722
  ], FreelancerFramework.prototype, "user", 2);
4628
4723
  __decorateClass([
4629
- (0, import_typeorm39.Column)({ name: "framework_name", type: "varchar", nullable: true })
4724
+ (0, import_typeorm40.Column)({ name: "framework_name", type: "varchar", nullable: true })
4630
4725
  ], FreelancerFramework.prototype, "frameworkName", 2);
4631
4726
  FreelancerFramework = __decorateClass([
4632
- (0, import_typeorm39.Entity)("freelancer_frameworks")
4727
+ (0, import_typeorm40.Entity)("freelancer_frameworks")
4633
4728
  ], FreelancerFramework);
4634
4729
 
4635
4730
  // src/entities/freelancer-assessment.entity.ts
4636
- var import_typeorm40 = require("typeorm");
4731
+ var import_typeorm41 = require("typeorm");
4637
4732
  var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
4638
4733
  AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
4639
4734
  AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
@@ -4649,30 +4744,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
4649
4744
  var FreelancerAssessment = class extends BaseEntity {
4650
4745
  };
4651
4746
  __decorateClass([
4652
- (0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
4653
- (0, import_typeorm40.Index)()
4747
+ (0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
4748
+ (0, import_typeorm41.Index)()
4654
4749
  ], FreelancerAssessment.prototype, "userId", 2);
4655
4750
  __decorateClass([
4656
- (0, import_typeorm40.ManyToOne)(() => User, (user) => user.assessments),
4657
- (0, import_typeorm40.JoinColumn)({ name: "user_id" })
4751
+ (0, import_typeorm41.ManyToOne)(() => User, (user) => user.assessments),
4752
+ (0, import_typeorm41.JoinColumn)({ name: "user_id" })
4658
4753
  ], FreelancerAssessment.prototype, "user", 2);
4659
4754
  __decorateClass([
4660
- (0, import_typeorm40.Column)({ name: "interview_id", type: "varchar", nullable: true })
4755
+ (0, import_typeorm41.Column)({ name: "interview_id", type: "varchar", nullable: true })
4661
4756
  ], FreelancerAssessment.prototype, "interviewId", 2);
4662
4757
  __decorateClass([
4663
- (0, import_typeorm40.Column)({ name: "interview_link", type: "text", nullable: true })
4758
+ (0, import_typeorm41.Column)({ name: "interview_link", type: "text", nullable: true })
4664
4759
  ], FreelancerAssessment.prototype, "interviewLink", 2);
4665
4760
  __decorateClass([
4666
- (0, import_typeorm40.Column)({ name: "recording_link", type: "text", nullable: true })
4761
+ (0, import_typeorm41.Column)({ name: "recording_link", type: "text", nullable: true })
4667
4762
  ], FreelancerAssessment.prototype, "recordingLink", 2);
4668
4763
  __decorateClass([
4669
- (0, import_typeorm40.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
4764
+ (0, import_typeorm41.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
4670
4765
  ], FreelancerAssessment.prototype, "iframeResponse", 2);
4671
4766
  __decorateClass([
4672
- (0, import_typeorm40.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
4767
+ (0, import_typeorm41.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
4673
4768
  ], FreelancerAssessment.prototype, "interviewSummary", 2);
4674
4769
  __decorateClass([
4675
- (0, import_typeorm40.Column)({
4770
+ (0, import_typeorm41.Column)({
4676
4771
  name: "status",
4677
4772
  type: "enum",
4678
4773
  enum: AssessmentStatusEnum,
@@ -4680,11 +4775,11 @@ __decorateClass([
4680
4775
  })
4681
4776
  ], FreelancerAssessment.prototype, "status", 2);
4682
4777
  FreelancerAssessment = __decorateClass([
4683
- (0, import_typeorm40.Entity)("freelancer_assessments")
4778
+ (0, import_typeorm41.Entity)("freelancer_assessments")
4684
4779
  ], FreelancerAssessment);
4685
4780
 
4686
4781
  // src/entities/freelancer-declaration.entity.ts
4687
- var import_typeorm41 = require("typeorm");
4782
+ var import_typeorm42 = require("typeorm");
4688
4783
  var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
4689
4784
  DocumentType2["AADHAAR"] = "AADHAAR_CARD";
4690
4785
  DocumentType2["PASSPORT"] = "PASSPORT";
@@ -4696,15 +4791,15 @@ var FreelancerDeclaration = class extends BaseEntity {
4696
4791
  };
4697
4792
  // individual index to find declaration by user
4698
4793
  __decorateClass([
4699
- (0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
4700
- (0, import_typeorm41.Index)()
4794
+ (0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
4795
+ (0, import_typeorm42.Index)()
4701
4796
  ], FreelancerDeclaration.prototype, "userId", 2);
4702
4797
  __decorateClass([
4703
- (0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
4704
- (0, import_typeorm41.JoinColumn)({ name: "user_id" })
4798
+ (0, import_typeorm42.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
4799
+ (0, import_typeorm42.JoinColumn)({ name: "user_id" })
4705
4800
  ], FreelancerDeclaration.prototype, "user", 2);
4706
4801
  __decorateClass([
4707
- (0, import_typeorm41.Column)({
4802
+ (0, import_typeorm42.Column)({
4708
4803
  name: "document_type",
4709
4804
  type: "enum",
4710
4805
  enum: DocumentType,
@@ -4712,144 +4807,144 @@ __decorateClass([
4712
4807
  })
4713
4808
  ], FreelancerDeclaration.prototype, "documentType", 2);
4714
4809
  __decorateClass([
4715
- (0, import_typeorm41.Column)({ name: "front_document_url", type: "varchar", nullable: true })
4810
+ (0, import_typeorm42.Column)({ name: "front_document_url", type: "varchar", nullable: true })
4716
4811
  ], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
4717
4812
  __decorateClass([
4718
- (0, import_typeorm41.Column)({ name: "back_document_url", type: "varchar", nullable: true })
4813
+ (0, import_typeorm42.Column)({ name: "back_document_url", type: "varchar", nullable: true })
4719
4814
  ], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
4720
4815
  __decorateClass([
4721
- (0, import_typeorm41.Column)({ name: "declaration_accepted", type: "boolean", default: false })
4816
+ (0, import_typeorm42.Column)({ name: "declaration_accepted", type: "boolean", default: false })
4722
4817
  ], FreelancerDeclaration.prototype, "declarationAccepted", 2);
4723
4818
  __decorateClass([
4724
- (0, import_typeorm41.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
4819
+ (0, import_typeorm42.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
4725
4820
  ], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
4726
4821
  FreelancerDeclaration = __decorateClass([
4727
- (0, import_typeorm41.Entity)("freelancer_declaration")
4822
+ (0, import_typeorm42.Entity)("freelancer_declaration")
4728
4823
  ], FreelancerDeclaration);
4729
4824
 
4730
4825
  // src/entities/company-members-roles.entity.ts
4731
- var import_typeorm45 = require("typeorm");
4826
+ var import_typeorm46 = require("typeorm");
4732
4827
 
4733
4828
  // src/entities/company-role.entity.ts
4734
- var import_typeorm44 = require("typeorm");
4829
+ var import_typeorm45 = require("typeorm");
4735
4830
 
4736
4831
  // src/entities/company-role-permission.entity.ts
4737
- var import_typeorm43 = require("typeorm");
4832
+ var import_typeorm44 = require("typeorm");
4738
4833
 
4739
4834
  // src/entities/permission.entity.ts
4740
- var import_typeorm42 = require("typeorm");
4835
+ var import_typeorm43 = require("typeorm");
4741
4836
  var Permission = class extends BaseEntity {
4742
4837
  };
4743
4838
  __decorateClass([
4744
- (0, import_typeorm42.Column)({ name: "name", type: "varchar", nullable: true })
4839
+ (0, import_typeorm43.Column)({ name: "name", type: "varchar", nullable: true })
4745
4840
  ], Permission.prototype, "name", 2);
4746
4841
  __decorateClass([
4747
- (0, import_typeorm42.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
4748
- (0, import_typeorm42.Index)()
4842
+ (0, import_typeorm43.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
4843
+ (0, import_typeorm43.Index)()
4749
4844
  ], Permission.prototype, "slug", 2);
4750
4845
  __decorateClass([
4751
- (0, import_typeorm42.Column)({ name: "description", type: "text", nullable: true })
4846
+ (0, import_typeorm43.Column)({ name: "description", type: "text", nullable: true })
4752
4847
  ], Permission.prototype, "description", 2);
4753
4848
  __decorateClass([
4754
- (0, import_typeorm42.Column)({ name: "is_active", type: "boolean", default: true })
4849
+ (0, import_typeorm43.Column)({ name: "is_active", type: "boolean", default: true })
4755
4850
  ], Permission.prototype, "isActive", 2);
4756
4851
  Permission = __decorateClass([
4757
- (0, import_typeorm42.Entity)("permissions")
4852
+ (0, import_typeorm43.Entity)("permissions")
4758
4853
  ], Permission);
4759
4854
 
4760
4855
  // src/entities/company-role-permission.entity.ts
4761
4856
  var CompanyRolePermission = class extends BaseEntity {
4762
4857
  };
4763
4858
  __decorateClass([
4764
- (0, import_typeorm43.Column)({ name: "company_role_id", type: "integer", nullable: true }),
4765
- (0, import_typeorm43.Index)()
4859
+ (0, import_typeorm44.Column)({ name: "company_role_id", type: "integer", nullable: true }),
4860
+ (0, import_typeorm44.Index)()
4766
4861
  ], CompanyRolePermission.prototype, "companyRoleId", 2);
4767
4862
  __decorateClass([
4768
- (0, import_typeorm43.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
4863
+ (0, import_typeorm44.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
4769
4864
  onDelete: "CASCADE"
4770
4865
  }),
4771
- (0, import_typeorm43.JoinColumn)({ name: "company_role_id" })
4866
+ (0, import_typeorm44.JoinColumn)({ name: "company_role_id" })
4772
4867
  ], CompanyRolePermission.prototype, "companyRole", 2);
4773
4868
  __decorateClass([
4774
- (0, import_typeorm43.Column)({ name: "permission_id", type: "integer" }),
4775
- (0, import_typeorm43.Index)()
4869
+ (0, import_typeorm44.Column)({ name: "permission_id", type: "integer" }),
4870
+ (0, import_typeorm44.Index)()
4776
4871
  ], CompanyRolePermission.prototype, "permissionId", 2);
4777
4872
  __decorateClass([
4778
- (0, import_typeorm43.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
4779
- (0, import_typeorm43.JoinColumn)({ name: "permission_id" })
4873
+ (0, import_typeorm44.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
4874
+ (0, import_typeorm44.JoinColumn)({ name: "permission_id" })
4780
4875
  ], CompanyRolePermission.prototype, "permission", 2);
4781
4876
  __decorateClass([
4782
- (0, import_typeorm43.Column)({ name: "assigned_by", type: "integer", nullable: true })
4877
+ (0, import_typeorm44.Column)({ name: "assigned_by", type: "integer", nullable: true })
4783
4878
  ], CompanyRolePermission.prototype, "assignedBy", 2);
4784
4879
  CompanyRolePermission = __decorateClass([
4785
- (0, import_typeorm43.Entity)("company_role_permissions")
4880
+ (0, import_typeorm44.Entity)("company_role_permissions")
4786
4881
  ], CompanyRolePermission);
4787
4882
 
4788
4883
  // src/entities/company-role.entity.ts
4789
4884
  var CompanyRole = class extends BaseEntity {
4790
4885
  };
4791
4886
  __decorateClass([
4792
- (0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
4793
- (0, import_typeorm44.Index)()
4887
+ (0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
4888
+ (0, import_typeorm45.Index)()
4794
4889
  ], CompanyRole.prototype, "userId", 2);
4795
4890
  __decorateClass([
4796
- (0, import_typeorm44.ManyToOne)(() => User, (user) => user.otps),
4797
- (0, import_typeorm44.JoinColumn)({ name: "user_id" })
4891
+ (0, import_typeorm45.ManyToOne)(() => User, (user) => user.otps),
4892
+ (0, import_typeorm45.JoinColumn)({ name: "user_id" })
4798
4893
  ], CompanyRole.prototype, "user", 2);
4799
4894
  __decorateClass([
4800
- (0, import_typeorm44.Column)({ name: "name", type: "varchar" })
4895
+ (0, import_typeorm45.Column)({ name: "name", type: "varchar" })
4801
4896
  ], CompanyRole.prototype, "name", 2);
4802
4897
  __decorateClass([
4803
- (0, import_typeorm44.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
4804
- (0, import_typeorm44.Index)()
4898
+ (0, import_typeorm45.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
4899
+ (0, import_typeorm45.Index)()
4805
4900
  ], CompanyRole.prototype, "slug", 2);
4806
4901
  __decorateClass([
4807
- (0, import_typeorm44.Column)({ name: "description", type: "text", nullable: true })
4902
+ (0, import_typeorm45.Column)({ name: "description", type: "text", nullable: true })
4808
4903
  ], CompanyRole.prototype, "description", 2);
4809
4904
  __decorateClass([
4810
- (0, import_typeorm44.Column)({ name: "is_active", type: "boolean", default: true })
4905
+ (0, import_typeorm45.Column)({ name: "is_active", type: "boolean", default: true })
4811
4906
  ], CompanyRole.prototype, "isActive", 2);
4812
4907
  __decorateClass([
4813
- (0, import_typeorm44.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
4908
+ (0, import_typeorm45.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
4814
4909
  ], CompanyRole.prototype, "rolePermissions", 2);
4815
4910
  CompanyRole = __decorateClass([
4816
- (0, import_typeorm44.Entity)("company_roles")
4911
+ (0, import_typeorm45.Entity)("company_roles")
4817
4912
  ], CompanyRole);
4818
4913
 
4819
4914
  // src/entities/company-members-roles.entity.ts
4820
4915
  var CompanyMemberRole = class extends BaseEntity {
4821
4916
  };
4822
4917
  __decorateClass([
4823
- (0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
4824
- (0, import_typeorm45.Index)()
4918
+ (0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
4919
+ (0, import_typeorm46.Index)()
4825
4920
  ], CompanyMemberRole.prototype, "userId", 2);
4826
4921
  __decorateClass([
4827
- (0, import_typeorm45.ManyToOne)(() => User),
4828
- (0, import_typeorm45.JoinColumn)({ name: "user_id" })
4922
+ (0, import_typeorm46.ManyToOne)(() => User),
4923
+ (0, import_typeorm46.JoinColumn)({ name: "user_id" })
4829
4924
  ], CompanyMemberRole.prototype, "user", 2);
4830
4925
  __decorateClass([
4831
- (0, import_typeorm45.ManyToOne)(() => CompanyRole),
4832
- (0, import_typeorm45.JoinColumn)({ name: "company_role_id" })
4926
+ (0, import_typeorm46.ManyToOne)(() => CompanyRole),
4927
+ (0, import_typeorm46.JoinColumn)({ name: "company_role_id" })
4833
4928
  ], CompanyMemberRole.prototype, "role", 2);
4834
4929
  __decorateClass([
4835
- (0, import_typeorm45.Column)({ name: "company_role_id", type: "integer", nullable: true }),
4836
- (0, import_typeorm45.Index)()
4930
+ (0, import_typeorm46.Column)({ name: "company_role_id", type: "integer", nullable: true }),
4931
+ (0, import_typeorm46.Index)()
4837
4932
  ], CompanyMemberRole.prototype, "companyRoleId", 2);
4838
4933
  __decorateClass([
4839
- (0, import_typeorm45.Column)({ name: "assigned_by", type: "integer", nullable: true })
4934
+ (0, import_typeorm46.Column)({ name: "assigned_by", type: "integer", nullable: true })
4840
4935
  ], CompanyMemberRole.prototype, "assignedBy", 2);
4841
4936
  CompanyMemberRole = __decorateClass([
4842
- (0, import_typeorm45.Entity)("company_member_roles")
4937
+ (0, import_typeorm46.Entity)("company_member_roles")
4843
4938
  ], CompanyMemberRole);
4844
4939
 
4845
4940
  // src/entities/assessment-answer.entity.ts
4846
- var import_typeorm48 = require("typeorm");
4941
+ var import_typeorm49 = require("typeorm");
4847
4942
 
4848
4943
  // src/entities/assessment-question.entity.ts
4849
- var import_typeorm47 = require("typeorm");
4944
+ var import_typeorm48 = require("typeorm");
4850
4945
 
4851
4946
  // src/entities/assessment-question-option.entity.ts
4852
- var import_typeorm46 = require("typeorm");
4947
+ var import_typeorm47 = require("typeorm");
4853
4948
  var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
4854
4949
  AnswerTypeEnum2["CORRECT"] = "CORRECT";
4855
4950
  AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
@@ -4859,21 +4954,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
4859
4954
  var AssessmetQuestionOption = class extends BaseEntity {
4860
4955
  };
4861
4956
  __decorateClass([
4862
- (0, import_typeorm46.Column)({ name: "question_id", type: "integer", nullable: true }),
4863
- (0, import_typeorm46.Index)()
4957
+ (0, import_typeorm47.Column)({ name: "question_id", type: "integer", nullable: true }),
4958
+ (0, import_typeorm47.Index)()
4864
4959
  ], AssessmetQuestionOption.prototype, "questionId", 2);
4865
4960
  __decorateClass([
4866
- (0, import_typeorm46.ManyToOne)(
4961
+ (0, import_typeorm47.ManyToOne)(
4867
4962
  () => AssessmetQuestion,
4868
4963
  (assessmentQuestion) => assessmentQuestion.options
4869
4964
  ),
4870
- (0, import_typeorm46.JoinColumn)({ name: "question_id" })
4965
+ (0, import_typeorm47.JoinColumn)({ name: "question_id" })
4871
4966
  ], AssessmetQuestionOption.prototype, "question", 2);
4872
4967
  __decorateClass([
4873
- (0, import_typeorm46.Column)({ name: "text", type: "varchar", nullable: true })
4968
+ (0, import_typeorm47.Column)({ name: "text", type: "varchar", nullable: true })
4874
4969
  ], AssessmetQuestionOption.prototype, "text", 2);
4875
4970
  __decorateClass([
4876
- (0, import_typeorm46.Column)({
4971
+ (0, import_typeorm47.Column)({
4877
4972
  name: "answer_type",
4878
4973
  type: "enum",
4879
4974
  enum: AnswerTypeEnum,
@@ -4881,13 +4976,13 @@ __decorateClass([
4881
4976
  })
4882
4977
  ], AssessmetQuestionOption.prototype, "answerType", 2);
4883
4978
  __decorateClass([
4884
- (0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: true })
4979
+ (0, import_typeorm47.Column)({ name: "is_active", type: "boolean", default: true })
4885
4980
  ], AssessmetQuestionOption.prototype, "isActive", 2);
4886
4981
  __decorateClass([
4887
- (0, import_typeorm46.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
4982
+ (0, import_typeorm47.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
4888
4983
  ], AssessmetQuestionOption.prototype, "selectedOptions", 2);
4889
4984
  AssessmetQuestionOption = __decorateClass([
4890
- (0, import_typeorm46.Entity)("assessment_question_options")
4985
+ (0, import_typeorm47.Entity)("assessment_question_options")
4891
4986
  ], AssessmetQuestionOption);
4892
4987
 
4893
4988
  // src/entities/assessment-question.entity.ts
@@ -4899,10 +4994,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
4899
4994
  var AssessmetQuestion = class extends BaseEntity {
4900
4995
  };
4901
4996
  __decorateClass([
4902
- (0, import_typeorm47.Column)({ name: "text", type: "varchar", nullable: true })
4997
+ (0, import_typeorm48.Column)({ name: "text", type: "varchar", nullable: true })
4903
4998
  ], AssessmetQuestion.prototype, "text", 2);
4904
4999
  __decorateClass([
4905
- (0, import_typeorm47.Column)({
5000
+ (0, import_typeorm48.Column)({
4906
5001
  name: "question_for",
4907
5002
  type: "enum",
4908
5003
  enum: QuestionForEnum,
@@ -4910,16 +5005,16 @@ __decorateClass([
4910
5005
  })
4911
5006
  ], AssessmetQuestion.prototype, "questionFor", 2);
4912
5007
  __decorateClass([
4913
- (0, import_typeorm47.Column)({ name: "is_active", type: "boolean", default: true })
5008
+ (0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: true })
4914
5009
  ], AssessmetQuestion.prototype, "isActive", 2);
4915
5010
  __decorateClass([
4916
- (0, import_typeorm47.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5011
+ (0, import_typeorm48.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
4917
5012
  ], AssessmetQuestion.prototype, "options", 2);
4918
5013
  __decorateClass([
4919
- (0, import_typeorm47.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5014
+ (0, import_typeorm48.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
4920
5015
  ], AssessmetQuestion.prototype, "answers", 2);
4921
5016
  AssessmetQuestion = __decorateClass([
4922
- (0, import_typeorm47.Entity)("assessment_questions")
5017
+ (0, import_typeorm48.Entity)("assessment_questions")
4923
5018
  ], AssessmetQuestion);
4924
5019
 
4925
5020
  // src/entities/assessment-answer.entity.ts
@@ -4932,118 +5027,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
4932
5027
  var AssessmentAnswer = class extends BaseEntity {
4933
5028
  };
4934
5029
  __decorateClass([
4935
- (0, import_typeorm48.Column)({ name: "user_id", type: "integer" }),
4936
- (0, import_typeorm48.Index)()
5030
+ (0, import_typeorm49.Column)({ name: "user_id", type: "integer" }),
5031
+ (0, import_typeorm49.Index)()
4937
5032
  ], AssessmentAnswer.prototype, "userId", 2);
4938
5033
  __decorateClass([
4939
- (0, import_typeorm48.ManyToOne)(() => User, (user) => user.assessmentAnswers),
4940
- (0, import_typeorm48.JoinColumn)({ name: "user_id" })
5034
+ (0, import_typeorm49.ManyToOne)(() => User, (user) => user.assessmentAnswers),
5035
+ (0, import_typeorm49.JoinColumn)({ name: "user_id" })
4941
5036
  ], AssessmentAnswer.prototype, "user", 2);
4942
5037
  __decorateClass([
4943
- (0, import_typeorm48.Column)({ name: "question_id", type: "integer" }),
4944
- (0, import_typeorm48.Index)()
5038
+ (0, import_typeorm49.Column)({ name: "question_id", type: "integer" }),
5039
+ (0, import_typeorm49.Index)()
4945
5040
  ], AssessmentAnswer.prototype, "questionId", 2);
4946
5041
  __decorateClass([
4947
- (0, import_typeorm48.ManyToOne)(
5042
+ (0, import_typeorm49.ManyToOne)(
4948
5043
  () => AssessmetQuestion,
4949
5044
  (assessmentQuestion) => assessmentQuestion.answers
4950
5045
  ),
4951
- (0, import_typeorm48.JoinColumn)({ name: "question_id" })
5046
+ (0, import_typeorm49.JoinColumn)({ name: "question_id" })
4952
5047
  ], AssessmentAnswer.prototype, "question", 2);
4953
5048
  __decorateClass([
4954
- (0, import_typeorm48.Column)({ name: "selected_option_id", type: "integer" }),
4955
- (0, import_typeorm48.Index)()
5049
+ (0, import_typeorm49.Column)({ name: "selected_option_id", type: "integer" }),
5050
+ (0, import_typeorm49.Index)()
4956
5051
  ], AssessmentAnswer.prototype, "selectedOptionId", 2);
4957
5052
  __decorateClass([
4958
- (0, import_typeorm48.ManyToOne)(
5053
+ (0, import_typeorm49.ManyToOne)(
4959
5054
  () => AssessmetQuestionOption,
4960
5055
  (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
4961
5056
  ),
4962
- (0, import_typeorm48.JoinColumn)({ name: "selected_option_id" })
5057
+ (0, import_typeorm49.JoinColumn)({ name: "selected_option_id" })
4963
5058
  ], AssessmentAnswer.prototype, "option", 2);
4964
5059
  __decorateClass([
4965
- (0, import_typeorm48.Column)({
5060
+ (0, import_typeorm49.Column)({
4966
5061
  name: "selected_answer_type",
4967
5062
  type: "enum",
4968
5063
  enum: SelectedAnswerTypeEnum
4969
5064
  })
4970
5065
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
4971
5066
  __decorateClass([
4972
- (0, import_typeorm48.Column)({ name: "score", type: "float" })
5067
+ (0, import_typeorm49.Column)({ name: "score", type: "float" })
4973
5068
  ], AssessmentAnswer.prototype, "score", 2);
4974
5069
  AssessmentAnswer = __decorateClass([
4975
- (0, import_typeorm48.Entity)("assessment_answers")
5070
+ (0, import_typeorm49.Entity)("assessment_answers")
4976
5071
  ], AssessmentAnswer);
4977
5072
 
4978
5073
  // src/entities/company-skill.entity.ts
4979
- var import_typeorm49 = require("typeorm");
5074
+ var import_typeorm50 = require("typeorm");
4980
5075
  var CompanySkill = class extends BaseEntity {
4981
5076
  };
4982
5077
  // individual index to find core skills by user
4983
5078
  __decorateClass([
4984
- (0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
4985
- (0, import_typeorm49.Index)()
5079
+ (0, import_typeorm50.Column)({ name: "user_id", type: "integer", nullable: true }),
5080
+ (0, import_typeorm50.Index)()
4986
5081
  ], CompanySkill.prototype, "userId", 2);
4987
5082
  __decorateClass([
4988
- (0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerSkills),
4989
- (0, import_typeorm49.JoinColumn)({ name: "user_id" })
5083
+ (0, import_typeorm50.ManyToOne)(() => User, (user) => user.freelancerSkills),
5084
+ (0, import_typeorm50.JoinColumn)({ name: "user_id" })
4990
5085
  ], CompanySkill.prototype, "user", 2);
4991
5086
  __decorateClass([
4992
- (0, import_typeorm49.Column)({ name: "skill_name", type: "varchar", nullable: true })
5087
+ (0, import_typeorm50.Column)({ name: "skill_name", type: "varchar", nullable: true })
4993
5088
  ], CompanySkill.prototype, "skillName", 2);
4994
5089
  CompanySkill = __decorateClass([
4995
- (0, import_typeorm49.Entity)("company_skills")
5090
+ (0, import_typeorm50.Entity)("company_skills")
4996
5091
  ], CompanySkill);
4997
5092
 
4998
5093
  // src/entities/admin-user-role.entity.ts
4999
- var import_typeorm53 = require("typeorm");
5094
+ var import_typeorm54 = require("typeorm");
5000
5095
 
5001
5096
  // src/entities/admin-role.entity.ts
5002
- var import_typeorm52 = require("typeorm");
5097
+ var import_typeorm53 = require("typeorm");
5003
5098
 
5004
5099
  // src/entities/admin-role-permission.entity.ts
5005
- var import_typeorm51 = require("typeorm");
5100
+ var import_typeorm52 = require("typeorm");
5006
5101
 
5007
5102
  // src/entities/admin-permission.entity.ts
5008
- var import_typeorm50 = require("typeorm");
5103
+ var import_typeorm51 = require("typeorm");
5009
5104
  var AdminPermission = class extends BaseEntity {
5010
5105
  };
5011
5106
  __decorateClass([
5012
- (0, import_typeorm50.Column)({ name: "permission_name", type: "varchar", nullable: true })
5107
+ (0, import_typeorm51.Column)({ name: "permission_name", type: "varchar", nullable: true })
5013
5108
  ], AdminPermission.prototype, "permissionName", 2);
5014
5109
  __decorateClass([
5015
- (0, import_typeorm50.Column)({
5110
+ (0, import_typeorm51.Column)({
5016
5111
  name: "permission_slug",
5017
5112
  type: "varchar",
5018
5113
  unique: true,
5019
5114
  nullable: true
5020
5115
  }),
5021
- (0, import_typeorm50.Index)()
5116
+ (0, import_typeorm51.Index)()
5022
5117
  ], AdminPermission.prototype, "permissionSlug", 2);
5023
5118
  __decorateClass([
5024
- (0, import_typeorm50.Column)({ name: "permission_description", type: "varchar", nullable: true })
5119
+ (0, import_typeorm51.Column)({ name: "permission_description", type: "varchar", nullable: true })
5025
5120
  ], AdminPermission.prototype, "permissionDescription", 2);
5026
5121
  __decorateClass([
5027
- (0, import_typeorm50.Column)({ name: "module", type: "varchar", nullable: true })
5122
+ (0, import_typeorm51.Column)({ name: "module", type: "varchar", nullable: true })
5028
5123
  ], AdminPermission.prototype, "module", 2);
5029
5124
  __decorateClass([
5030
- (0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: true })
5125
+ (0, import_typeorm51.Column)({ name: "is_active", type: "boolean", default: true })
5031
5126
  ], AdminPermission.prototype, "isActive", 2);
5032
5127
  __decorateClass([
5033
- (0, import_typeorm50.OneToMany)(
5128
+ (0, import_typeorm51.OneToMany)(
5034
5129
  () => AdminRolePermission,
5035
5130
  (adminRolePermission) => adminRolePermission.adminPermissions
5036
5131
  )
5037
5132
  ], AdminPermission.prototype, "adminRole", 2);
5038
5133
  AdminPermission = __decorateClass([
5039
- (0, import_typeorm50.Entity)("admin_permissions")
5134
+ (0, import_typeorm51.Entity)("admin_permissions")
5040
5135
  ], AdminPermission);
5041
5136
 
5042
5137
  // src/entities/admin-role-permission.entity.ts
5043
5138
  var AdminRolePermission = class extends BaseEntity {
5044
5139
  };
5045
5140
  __decorateClass([
5046
- (0, import_typeorm51.Column)({
5141
+ (0, import_typeorm52.Column)({
5047
5142
  name: "role_id",
5048
5143
  type: "int",
5049
5144
  nullable: true,
@@ -5051,11 +5146,11 @@ __decorateClass([
5051
5146
  })
5052
5147
  ], AdminRolePermission.prototype, "roleId", 2);
5053
5148
  __decorateClass([
5054
- (0, import_typeorm51.ManyToOne)(() => AdminRole),
5055
- (0, import_typeorm51.JoinColumn)({ name: "role_id" })
5149
+ (0, import_typeorm52.ManyToOne)(() => AdminRole),
5150
+ (0, import_typeorm52.JoinColumn)({ name: "role_id" })
5056
5151
  ], AdminRolePermission.prototype, "adminRole", 2);
5057
5152
  __decorateClass([
5058
- (0, import_typeorm51.Column)({
5153
+ (0, import_typeorm52.Column)({
5059
5154
  name: "permission_id",
5060
5155
  type: "int",
5061
5156
  nullable: true,
@@ -5063,47 +5158,47 @@ __decorateClass([
5063
5158
  })
5064
5159
  ], AdminRolePermission.prototype, "permissionId", 2);
5065
5160
  __decorateClass([
5066
- (0, import_typeorm51.ManyToOne)(() => AdminPermission),
5067
- (0, import_typeorm51.JoinColumn)({ name: "permission_id" })
5161
+ (0, import_typeorm52.ManyToOne)(() => AdminPermission),
5162
+ (0, import_typeorm52.JoinColumn)({ name: "permission_id" })
5068
5163
  ], AdminRolePermission.prototype, "adminPermissions", 2);
5069
5164
  AdminRolePermission = __decorateClass([
5070
- (0, import_typeorm51.Entity)("admin_role_permissions")
5165
+ (0, import_typeorm52.Entity)("admin_role_permissions")
5071
5166
  ], AdminRolePermission);
5072
5167
 
5073
5168
  // src/entities/admin-role.entity.ts
5074
5169
  var AdminRole = class extends BaseEntity {
5075
5170
  };
5076
5171
  __decorateClass([
5077
- (0, import_typeorm52.Column)({ name: "role_name", type: "varchar", nullable: true })
5172
+ (0, import_typeorm53.Column)({ name: "role_name", type: "varchar", nullable: true })
5078
5173
  ], AdminRole.prototype, "roleName", 2);
5079
5174
  __decorateClass([
5080
- (0, import_typeorm52.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5081
- (0, import_typeorm52.Index)()
5175
+ (0, import_typeorm53.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5176
+ (0, import_typeorm53.Index)()
5082
5177
  ], AdminRole.prototype, "roleSlug", 2);
5083
5178
  __decorateClass([
5084
- (0, import_typeorm52.Column)({ name: "role_description", type: "varchar", nullable: true })
5179
+ (0, import_typeorm53.Column)({ name: "role_description", type: "varchar", nullable: true })
5085
5180
  ], AdminRole.prototype, "roleDescription", 2);
5086
5181
  __decorateClass([
5087
- (0, import_typeorm52.Column)({ name: "is_active", type: "boolean", default: true })
5182
+ (0, import_typeorm53.Column)({ name: "is_active", type: "boolean", default: true })
5088
5183
  ], AdminRole.prototype, "isActive", 2);
5089
5184
  __decorateClass([
5090
- (0, import_typeorm52.OneToMany)(
5185
+ (0, import_typeorm53.OneToMany)(
5091
5186
  () => AdminRolePermission,
5092
5187
  (addminRolePermission) => addminRolePermission.adminRole
5093
5188
  )
5094
5189
  ], AdminRole.prototype, "adminRolePermission", 2);
5095
5190
  __decorateClass([
5096
- (0, import_typeorm52.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5191
+ (0, import_typeorm53.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5097
5192
  ], AdminRole.prototype, "userRoles", 2);
5098
5193
  AdminRole = __decorateClass([
5099
- (0, import_typeorm52.Entity)("admin_roles")
5194
+ (0, import_typeorm53.Entity)("admin_roles")
5100
5195
  ], AdminRole);
5101
5196
 
5102
5197
  // src/entities/admin-user-role.entity.ts
5103
5198
  var AdminUserRole = class extends BaseEntity {
5104
5199
  };
5105
5200
  __decorateClass([
5106
- (0, import_typeorm53.Column)({
5201
+ (0, import_typeorm54.Column)({
5107
5202
  name: "user_id",
5108
5203
  type: "int",
5109
5204
  nullable: true,
@@ -5111,11 +5206,11 @@ __decorateClass([
5111
5206
  })
5112
5207
  ], AdminUserRole.prototype, "userId", 2);
5113
5208
  __decorateClass([
5114
- (0, import_typeorm53.ManyToOne)(() => User),
5115
- (0, import_typeorm53.JoinColumn)({ name: "user_id" })
5209
+ (0, import_typeorm54.ManyToOne)(() => User),
5210
+ (0, import_typeorm54.JoinColumn)({ name: "user_id" })
5116
5211
  ], AdminUserRole.prototype, "user", 2);
5117
5212
  __decorateClass([
5118
- (0, import_typeorm53.Column)({
5213
+ (0, import_typeorm54.Column)({
5119
5214
  name: "role_id",
5120
5215
  type: "int",
5121
5216
  nullable: true,
@@ -5123,58 +5218,58 @@ __decorateClass([
5123
5218
  })
5124
5219
  ], AdminUserRole.prototype, "roleId", 2);
5125
5220
  __decorateClass([
5126
- (0, import_typeorm53.ManyToOne)(() => AdminRole),
5127
- (0, import_typeorm53.JoinColumn)({ name: "role_id" })
5221
+ (0, import_typeorm54.ManyToOne)(() => AdminRole),
5222
+ (0, import_typeorm54.JoinColumn)({ name: "role_id" })
5128
5223
  ], AdminUserRole.prototype, "adminRole", 2);
5129
5224
  AdminUserRole = __decorateClass([
5130
- (0, import_typeorm53.Entity)("admin_user_roles")
5225
+ (0, import_typeorm54.Entity)("admin_user_roles")
5131
5226
  ], AdminUserRole);
5132
5227
 
5133
5228
  // src/entities/freelancer-resume.entity.ts
5134
- var import_typeorm54 = require("typeorm");
5229
+ var import_typeorm55 = require("typeorm");
5135
5230
  var FreelancerResume = class extends BaseEntity {
5136
5231
  };
5137
5232
  // individual index to find profile by user
5138
5233
  __decorateClass([
5139
- (0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
5140
- (0, import_typeorm54.Index)()
5234
+ (0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
5235
+ (0, import_typeorm55.Index)()
5141
5236
  ], FreelancerResume.prototype, "userId", 2);
5142
5237
  __decorateClass([
5143
- (0, import_typeorm54.ManyToOne)(() => User, (user) => user.freelancerProfile),
5144
- (0, import_typeorm54.JoinColumn)({ name: "user_id" })
5238
+ (0, import_typeorm55.ManyToOne)(() => User, (user) => user.freelancerProfile),
5239
+ (0, import_typeorm55.JoinColumn)({ name: "user_id" })
5145
5240
  ], FreelancerResume.prototype, "user", 2);
5146
5241
  __decorateClass([
5147
- (0, import_typeorm54.Column)({ name: "resume_data", type: "jsonb", nullable: true })
5242
+ (0, import_typeorm55.Column)({ name: "resume_data", type: "jsonb", nullable: true })
5148
5243
  ], FreelancerResume.prototype, "resumeData", 2);
5149
5244
  __decorateClass([
5150
- (0, import_typeorm54.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
5245
+ (0, import_typeorm55.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
5151
5246
  ], FreelancerResume.prototype, "processedResumeData", 2);
5152
5247
  FreelancerResume = __decorateClass([
5153
- (0, import_typeorm54.Entity)("freelancer_resumes")
5248
+ (0, import_typeorm55.Entity)("freelancer_resumes")
5154
5249
  ], FreelancerResume);
5155
5250
 
5156
5251
  // src/entities/signature.entity.ts
5157
- var import_typeorm55 = require("typeorm");
5252
+ var import_typeorm56 = require("typeorm");
5158
5253
  var Signature = class extends BaseEntity {
5159
5254
  };
5160
5255
  // individual index to find profile by user
5161
5256
  __decorateClass([
5162
- (0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
5163
- (0, import_typeorm55.Index)()
5257
+ (0, import_typeorm56.Column)({ name: "user_id", type: "integer", nullable: true }),
5258
+ (0, import_typeorm56.Index)()
5164
5259
  ], Signature.prototype, "userId", 2);
5165
5260
  __decorateClass([
5166
- (0, import_typeorm55.ManyToOne)(() => User, (user) => user.signatures),
5167
- (0, import_typeorm55.JoinColumn)({ name: "user_id" })
5261
+ (0, import_typeorm56.ManyToOne)(() => User, (user) => user.signatures),
5262
+ (0, import_typeorm56.JoinColumn)({ name: "user_id" })
5168
5263
  ], Signature.prototype, "user", 2);
5169
5264
  __decorateClass([
5170
- (0, import_typeorm55.Column)({ name: "signature_url", type: "text", nullable: true })
5265
+ (0, import_typeorm56.Column)({ name: "signature_url", type: "text", nullable: true })
5171
5266
  ], Signature.prototype, "signatureUrl", 2);
5172
5267
  Signature = __decorateClass([
5173
- (0, import_typeorm55.Entity)("signatures")
5268
+ (0, import_typeorm56.Entity)("signatures")
5174
5269
  ], Signature);
5175
5270
 
5176
5271
  // src/entities/dispute.entity.ts
5177
- var import_typeorm56 = require("typeorm");
5272
+ var import_typeorm57 = require("typeorm");
5178
5273
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
5179
5274
  DisputeStatusEnum2["OPEN"] = "OPEN";
5180
5275
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -5195,36 +5290,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
5195
5290
  var Dispute = class extends BaseEntity {
5196
5291
  };
5197
5292
  __decorateClass([
5198
- (0, import_typeorm56.Column)({ name: "client_id", type: "integer", nullable: true }),
5199
- (0, import_typeorm56.Index)()
5293
+ (0, import_typeorm57.Column)({ name: "client_id", type: "integer", nullable: true }),
5294
+ (0, import_typeorm57.Index)()
5200
5295
  ], Dispute.prototype, "clientId", 2);
5201
5296
  __decorateClass([
5202
- (0, import_typeorm56.ManyToOne)(() => User, (user) => user.clientDisputes),
5203
- (0, import_typeorm56.JoinColumn)({ name: "client_id" })
5297
+ (0, import_typeorm57.ManyToOne)(() => User, (user) => user.clientDisputes),
5298
+ (0, import_typeorm57.JoinColumn)({ name: "client_id" })
5204
5299
  ], Dispute.prototype, "client", 2);
5205
5300
  __decorateClass([
5206
- (0, import_typeorm56.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
5207
- (0, import_typeorm56.Index)()
5301
+ (0, import_typeorm57.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
5302
+ (0, import_typeorm57.Index)()
5208
5303
  ], Dispute.prototype, "freelancerId", 2);
5209
5304
  __decorateClass([
5210
- (0, import_typeorm56.ManyToOne)(() => User, (user) => user.freelancerDisputes),
5211
- (0, import_typeorm56.JoinColumn)({ name: "freelancer_id" })
5305
+ (0, import_typeorm57.ManyToOne)(() => User, (user) => user.freelancerDisputes),
5306
+ (0, import_typeorm57.JoinColumn)({ name: "freelancer_id" })
5212
5307
  ], Dispute.prototype, "freelancer", 2);
5213
5308
  __decorateClass([
5214
- (0, import_typeorm56.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
5309
+ (0, import_typeorm57.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
5215
5310
  ], Dispute.prototype, "disputeUniqueId", 2);
5216
5311
  __decorateClass([
5217
- (0, import_typeorm56.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
5218
- (0, import_typeorm56.Index)()
5312
+ (0, import_typeorm57.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
5313
+ (0, import_typeorm57.Index)()
5219
5314
  ], Dispute.prototype, "disputeType", 2);
5220
5315
  __decorateClass([
5221
- (0, import_typeorm56.Column)({ name: "description", type: "varchar", nullable: true })
5316
+ (0, import_typeorm57.Column)({ name: "description", type: "varchar", nullable: true })
5222
5317
  ], Dispute.prototype, "description", 2);
5223
5318
  __decorateClass([
5224
- (0, import_typeorm56.Column)({ name: "comment", type: "varchar", nullable: true })
5319
+ (0, import_typeorm57.Column)({ name: "comment", type: "varchar", nullable: true })
5225
5320
  ], Dispute.prototype, "comment", 2);
5226
5321
  __decorateClass([
5227
- (0, import_typeorm56.Column)({
5322
+ (0, import_typeorm57.Column)({
5228
5323
  name: "status",
5229
5324
  type: "enum",
5230
5325
  enum: DisputeStatusEnum,
@@ -5232,7 +5327,7 @@ __decorateClass([
5232
5327
  })
5233
5328
  ], Dispute.prototype, "status", 2);
5234
5329
  __decorateClass([
5235
- (0, import_typeorm56.Column)({
5330
+ (0, import_typeorm57.Column)({
5236
5331
  name: "initiator_type",
5237
5332
  type: "enum",
5238
5333
  enum: InitiatorTypeEnum,
@@ -5241,33 +5336,33 @@ __decorateClass([
5241
5336
  })
5242
5337
  ], Dispute.prototype, "initiatorType", 2);
5243
5338
  __decorateClass([
5244
- (0, import_typeorm56.Column)({ name: "initiator_id", type: "integer" }),
5245
- (0, import_typeorm56.Index)()
5339
+ (0, import_typeorm57.Column)({ name: "initiator_id", type: "integer" }),
5340
+ (0, import_typeorm57.Index)()
5246
5341
  ], Dispute.prototype, "initiatorId", 2);
5247
5342
  __decorateClass([
5248
- (0, import_typeorm56.ManyToOne)(() => User, (user) => user.initiatedDisputes),
5249
- (0, import_typeorm56.JoinColumn)({ name: "initiator_id" })
5343
+ (0, import_typeorm57.ManyToOne)(() => User, (user) => user.initiatedDisputes),
5344
+ (0, import_typeorm57.JoinColumn)({ name: "initiator_id" })
5250
5345
  ], Dispute.prototype, "initiator", 2);
5251
5346
  __decorateClass([
5252
- (0, import_typeorm56.Column)({ name: "respondent_id", type: "integer", nullable: true }),
5253
- (0, import_typeorm56.Index)()
5347
+ (0, import_typeorm57.Column)({ name: "respondent_id", type: "integer", nullable: true }),
5348
+ (0, import_typeorm57.Index)()
5254
5349
  ], Dispute.prototype, "respondentId", 2);
5255
5350
  __decorateClass([
5256
- (0, import_typeorm56.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
5257
- (0, import_typeorm56.JoinColumn)({ name: "respondent_id" })
5351
+ (0, import_typeorm57.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
5352
+ (0, import_typeorm57.JoinColumn)({ name: "respondent_id" })
5258
5353
  ], Dispute.prototype, "respondent", 2);
5259
5354
  __decorateClass([
5260
- (0, import_typeorm56.Column)({ name: "attachments", type: "jsonb", nullable: true })
5355
+ (0, import_typeorm57.Column)({ name: "attachments", type: "jsonb", nullable: true })
5261
5356
  ], Dispute.prototype, "attachments", 2);
5262
5357
  __decorateClass([
5263
- (0, import_typeorm56.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
5358
+ (0, import_typeorm57.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
5264
5359
  ], Dispute.prototype, "dynamicFields", 2);
5265
5360
  Dispute = __decorateClass([
5266
- (0, import_typeorm56.Entity)("disputes")
5361
+ (0, import_typeorm57.Entity)("disputes")
5267
5362
  ], Dispute);
5268
5363
 
5269
5364
  // src/entities/stripe-transaction.entity.ts
5270
- var import_typeorm57 = require("typeorm");
5365
+ var import_typeorm58 = require("typeorm");
5271
5366
  var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
5272
5367
  StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
5273
5368
  StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -5289,97 +5384,97 @@ var StripeTransaction = class extends BaseEntity {
5289
5384
  // Full Stripe session response
5290
5385
  };
5291
5386
  __decorateClass([
5292
- (0, import_typeorm57.Column)({ name: "user_id", type: "integer", nullable: true }),
5293
- (0, import_typeorm57.Index)()
5387
+ (0, import_typeorm58.Column)({ name: "user_id", type: "integer", nullable: true }),
5388
+ (0, import_typeorm58.Index)()
5294
5389
  ], StripeTransaction.prototype, "userId", 2);
5295
5390
  __decorateClass([
5296
- (0, import_typeorm57.ManyToOne)(() => User, (user) => user.stripeTransactions),
5297
- (0, import_typeorm57.JoinColumn)({ name: "user_id" })
5391
+ (0, import_typeorm58.ManyToOne)(() => User, (user) => user.stripeTransactions),
5392
+ (0, import_typeorm58.JoinColumn)({ name: "user_id" })
5298
5393
  ], StripeTransaction.prototype, "user", 2);
5299
5394
  __decorateClass([
5300
- (0, import_typeorm57.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
5395
+ (0, import_typeorm58.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
5301
5396
  ], StripeTransaction.prototype, "stripeSessionId", 2);
5302
5397
  __decorateClass([
5303
- (0, import_typeorm57.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5398
+ (0, import_typeorm58.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5304
5399
  ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
5305
5400
  __decorateClass([
5306
- (0, import_typeorm57.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
5401
+ (0, import_typeorm58.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
5307
5402
  ], StripeTransaction.prototype, "stripeChargeId", 2);
5308
5403
  __decorateClass([
5309
- (0, import_typeorm57.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5404
+ (0, import_typeorm58.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5310
5405
  ], StripeTransaction.prototype, "stripeReceiptUrl", 2);
5311
5406
  __decorateClass([
5312
- (0, import_typeorm57.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5407
+ (0, import_typeorm58.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5313
5408
  ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
5314
5409
  __decorateClass([
5315
- (0, import_typeorm57.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
5410
+ (0, import_typeorm58.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
5316
5411
  ], StripeTransaction.prototype, "stripePaymentMethod", 2);
5317
5412
  __decorateClass([
5318
- (0, import_typeorm57.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
5413
+ (0, import_typeorm58.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
5319
5414
  ], StripeTransaction.prototype, "stripePaymentStatus", 2);
5320
5415
  __decorateClass([
5321
- (0, import_typeorm57.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5416
+ (0, import_typeorm58.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5322
5417
  ], StripeTransaction.prototype, "type", 2);
5323
5418
  __decorateClass([
5324
- (0, import_typeorm57.Column)({ name: "currency", type: "varchar", nullable: true })
5419
+ (0, import_typeorm58.Column)({ name: "currency", type: "varchar", nullable: true })
5325
5420
  ], StripeTransaction.prototype, "currency", 2);
5326
5421
  __decorateClass([
5327
- (0, import_typeorm57.Column)({ 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" })
5422
+ (0, import_typeorm58.Column)({ 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" })
5328
5423
  ], StripeTransaction.prototype, "desiredDepositCents", 2);
5329
5424
  __decorateClass([
5330
- (0, import_typeorm57.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5425
+ (0, import_typeorm58.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5331
5426
  ], StripeTransaction.prototype, "platformFeeCents", 2);
5332
5427
  __decorateClass([
5333
- (0, import_typeorm57.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5428
+ (0, import_typeorm58.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5334
5429
  ], StripeTransaction.prototype, "taxCents", 2);
5335
5430
  __decorateClass([
5336
- (0, import_typeorm57.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5431
+ (0, import_typeorm58.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5337
5432
  ], StripeTransaction.prototype, "estimatedStripeFee", 2);
5338
5433
  __decorateClass([
5339
- (0, import_typeorm57.Column)({ 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" })
5434
+ (0, import_typeorm58.Column)({ 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" })
5340
5435
  ], StripeTransaction.prototype, "estimatedTotalCents", 2);
5341
5436
  __decorateClass([
5342
- (0, import_typeorm57.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5437
+ (0, import_typeorm58.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5343
5438
  ], StripeTransaction.prototype, "actualStripeFee", 2);
5344
5439
  __decorateClass([
5345
- (0, import_typeorm57.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5440
+ (0, import_typeorm58.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5346
5441
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
5347
5442
  __decorateClass([
5348
- (0, import_typeorm57.Column)({ 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" })
5443
+ (0, import_typeorm58.Column)({ 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" })
5349
5444
  ], StripeTransaction.prototype, "netReceivedCents", 2);
5350
5445
  __decorateClass([
5351
- (0, import_typeorm57.Column)({ name: "description", type: "text", nullable: true })
5446
+ (0, import_typeorm58.Column)({ name: "description", type: "text", nullable: true })
5352
5447
  ], StripeTransaction.prototype, "description", 2);
5353
5448
  __decorateClass([
5354
- (0, import_typeorm57.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5449
+ (0, import_typeorm58.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5355
5450
  ], StripeTransaction.prototype, "status", 2);
5356
5451
  __decorateClass([
5357
- (0, import_typeorm57.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5452
+ (0, import_typeorm58.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5358
5453
  ], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
5359
5454
  __decorateClass([
5360
- (0, import_typeorm57.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
5455
+ (0, import_typeorm58.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
5361
5456
  ], StripeTransaction.prototype, "completedAt", 2);
5362
5457
  __decorateClass([
5363
- (0, import_typeorm57.Column)({ name: "billing_details", type: "jsonb", nullable: true })
5458
+ (0, import_typeorm58.Column)({ name: "billing_details", type: "jsonb", nullable: true })
5364
5459
  ], StripeTransaction.prototype, "billingDetails", 2);
5365
5460
  __decorateClass([
5366
- (0, import_typeorm57.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
5461
+ (0, import_typeorm58.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
5367
5462
  ], StripeTransaction.prototype, "paymentMethodDetails", 2);
5368
5463
  __decorateClass([
5369
- (0, import_typeorm57.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
5464
+ (0, import_typeorm58.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
5370
5465
  ], StripeTransaction.prototype, "rawSessionPayload", 2);
5371
5466
  __decorateClass([
5372
- (0, import_typeorm57.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
5467
+ (0, import_typeorm58.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
5373
5468
  ], StripeTransaction.prototype, "rawSessionResponse", 2);
5374
5469
  StripeTransaction = __decorateClass([
5375
- (0, import_typeorm57.Entity)("stripe_transactions")
5470
+ (0, import_typeorm58.Entity)("stripe_transactions")
5376
5471
  ], StripeTransaction);
5377
5472
 
5378
5473
  // src/entities/wallet.entity.ts
5379
- var import_typeorm59 = require("typeorm");
5474
+ var import_typeorm60 = require("typeorm");
5380
5475
 
5381
5476
  // src/entities/wallet-transaction.entity.ts
5382
- var import_typeorm58 = require("typeorm");
5477
+ var import_typeorm59 = require("typeorm");
5383
5478
  var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
5384
5479
  WalletTransactionTypeEnum2["CR"] = "CR";
5385
5480
  WalletTransactionTypeEnum2["DR"] = "DR";
@@ -5396,46 +5491,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
5396
5491
  var WalletTransaction = class extends BaseEntity {
5397
5492
  };
5398
5493
  __decorateClass([
5399
- (0, import_typeorm58.Column)({ name: "wallet_id", type: "integer", nullable: true }),
5400
- (0, import_typeorm58.Index)()
5494
+ (0, import_typeorm59.Column)({ name: "wallet_id", type: "integer", nullable: true }),
5495
+ (0, import_typeorm59.Index)()
5401
5496
  ], WalletTransaction.prototype, "walletId", 2);
5402
5497
  __decorateClass([
5403
- (0, import_typeorm58.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
5404
- (0, import_typeorm58.JoinColumn)({ name: "wallet_id" })
5498
+ (0, import_typeorm59.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
5499
+ (0, import_typeorm59.JoinColumn)({ name: "wallet_id" })
5405
5500
  ], WalletTransaction.prototype, "wallet", 2);
5406
5501
  __decorateClass([
5407
- (0, import_typeorm58.Column)({ name: "amount", type: "bigint", nullable: true })
5502
+ (0, import_typeorm59.Column)({ name: "amount", type: "bigint", nullable: true })
5408
5503
  ], WalletTransaction.prototype, "amount", 2);
5409
5504
  __decorateClass([
5410
- (0, import_typeorm58.Column)({ name: "balance_before", type: "bigint", nullable: true })
5505
+ (0, import_typeorm59.Column)({ name: "balance_before", type: "bigint", nullable: true })
5411
5506
  ], WalletTransaction.prototype, "balanceBefore", 2);
5412
5507
  __decorateClass([
5413
- (0, import_typeorm58.Column)({ name: "balance_after", type: "bigint", nullable: true })
5508
+ (0, import_typeorm59.Column)({ name: "balance_after", type: "bigint", nullable: true })
5414
5509
  ], WalletTransaction.prototype, "balanceAfter", 2);
5415
5510
  __decorateClass([
5416
- (0, import_typeorm58.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5511
+ (0, import_typeorm59.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5417
5512
  ], WalletTransaction.prototype, "type", 2);
5418
5513
  __decorateClass([
5419
- (0, import_typeorm58.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5514
+ (0, import_typeorm59.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5420
5515
  ], WalletTransaction.prototype, "status", 2);
5421
5516
  __decorateClass([
5422
- (0, import_typeorm58.Column)({ name: "description", type: "text", nullable: true })
5517
+ (0, import_typeorm59.Column)({ name: "description", type: "text", nullable: true })
5423
5518
  ], WalletTransaction.prototype, "description", 2);
5424
5519
  __decorateClass([
5425
- (0, import_typeorm58.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
5520
+ (0, import_typeorm59.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
5426
5521
  ], WalletTransaction.prototype, "completedAt", 2);
5427
5522
  __decorateClass([
5428
- (0, import_typeorm58.Column)({ name: "transaction_for", type: "varchar", nullable: true })
5523
+ (0, import_typeorm59.Column)({ name: "transaction_for", type: "varchar", nullable: true })
5429
5524
  ], WalletTransaction.prototype, "transactionFor", 2);
5430
5525
  __decorateClass([
5431
- (0, import_typeorm58.Column)({ name: "meta_data", type: "varchar", nullable: true })
5526
+ (0, import_typeorm59.Column)({ name: "meta_data", type: "varchar", nullable: true })
5432
5527
  ], WalletTransaction.prototype, "metaData", 2);
5433
5528
  __decorateClass([
5434
- (0, import_typeorm58.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5435
- (0, import_typeorm58.Index)()
5529
+ (0, import_typeorm59.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5530
+ (0, import_typeorm59.Index)()
5436
5531
  ], WalletTransaction.prototype, "stripeTransactionId", 2);
5437
5532
  WalletTransaction = __decorateClass([
5438
- (0, import_typeorm58.Entity)("wallet_transactions")
5533
+ (0, import_typeorm59.Entity)("wallet_transactions")
5439
5534
  ], WalletTransaction);
5440
5535
 
5441
5536
  // src/entities/wallet.entity.ts
@@ -5453,39 +5548,39 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
5453
5548
  var Wallet = class extends BaseEntity {
5454
5549
  };
5455
5550
  __decorateClass([
5456
- (0, import_typeorm59.Column)({ name: "user_id", type: "integer", nullable: true }),
5457
- (0, import_typeorm59.Index)()
5551
+ (0, import_typeorm60.Column)({ name: "user_id", type: "integer", nullable: true }),
5552
+ (0, import_typeorm60.Index)()
5458
5553
  ], Wallet.prototype, "userId", 2);
5459
5554
  __decorateClass([
5460
- (0, import_typeorm59.OneToOne)(() => User, (user) => user.wallet),
5461
- (0, import_typeorm59.JoinColumn)({ name: "user_id" })
5555
+ (0, import_typeorm60.OneToOne)(() => User, (user) => user.wallet),
5556
+ (0, import_typeorm60.JoinColumn)({ name: "user_id" })
5462
5557
  ], Wallet.prototype, "user", 2);
5463
5558
  __decorateClass([
5464
- (0, import_typeorm59.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5559
+ (0, import_typeorm60.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5465
5560
  ], Wallet.prototype, "accountType", 2);
5466
5561
  __decorateClass([
5467
- (0, import_typeorm59.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
5562
+ (0, import_typeorm60.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
5468
5563
  ], Wallet.prototype, "stripeAccountId", 2);
5469
5564
  __decorateClass([
5470
- (0, import_typeorm59.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
5565
+ (0, import_typeorm60.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
5471
5566
  ], Wallet.prototype, "stripeCustomerId", 2);
5472
5567
  __decorateClass([
5473
- (0, import_typeorm59.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
5568
+ (0, import_typeorm60.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
5474
5569
  ], Wallet.prototype, "walletBalance", 2);
5475
5570
  __decorateClass([
5476
- (0, import_typeorm59.Column)({ 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" })
5571
+ (0, import_typeorm60.Column)({ 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" })
5477
5572
  ], Wallet.prototype, "walletBalanceCents", 2);
5478
5573
  __decorateClass([
5479
- (0, import_typeorm59.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5574
+ (0, import_typeorm60.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5480
5575
  ], Wallet.prototype, "onboardingStatus", 2);
5481
5576
  __decorateClass([
5482
- (0, import_typeorm59.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
5577
+ (0, import_typeorm60.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
5483
5578
  ], Wallet.prototype, "stripeMetadata", 2);
5484
5579
  __decorateClass([
5485
- (0, import_typeorm59.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5580
+ (0, import_typeorm60.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5486
5581
  ], Wallet.prototype, "walletTransactions", 2);
5487
5582
  Wallet = __decorateClass([
5488
- (0, import_typeorm59.Entity)("wallets")
5583
+ (0, import_typeorm60.Entity)("wallets")
5489
5584
  ], Wallet);
5490
5585
 
5491
5586
  // src/entities/user.entity.ts
@@ -5513,51 +5608,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
5513
5608
  var User = class extends BaseEntity {
5514
5609
  };
5515
5610
  __decorateClass([
5516
- (0, import_typeorm60.Column)({ name: "unique_id", type: "varchar", unique: true })
5611
+ (0, import_typeorm61.Column)({ name: "unique_id", type: "varchar", unique: true })
5517
5612
  ], User.prototype, "uniqueId", 2);
5518
5613
  __decorateClass([
5519
- (0, import_typeorm60.Column)({ name: "parent_id", type: "integer", nullable: true }),
5520
- (0, import_typeorm60.Index)()
5614
+ (0, import_typeorm61.Column)({ name: "parent_id", type: "integer", nullable: true }),
5615
+ (0, import_typeorm61.Index)()
5521
5616
  ], User.prototype, "parentId", 2);
5522
5617
  __decorateClass([
5523
- (0, import_typeorm60.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
5524
- (0, import_typeorm60.JoinColumn)({ name: "parent_id" })
5618
+ (0, import_typeorm61.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
5619
+ (0, import_typeorm61.JoinColumn)({ name: "parent_id" })
5525
5620
  ], User.prototype, "parent", 2);
5526
5621
  __decorateClass([
5527
- (0, import_typeorm60.OneToMany)(() => User, (user) => user.parent)
5622
+ (0, import_typeorm61.OneToMany)(() => User, (user) => user.parent)
5528
5623
  ], User.prototype, "children", 2);
5529
5624
  __decorateClass([
5530
- (0, import_typeorm60.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
5625
+ (0, import_typeorm61.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
5531
5626
  ], User.prototype, "username", 2);
5532
5627
  __decorateClass([
5533
- (0, import_typeorm60.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
5628
+ (0, import_typeorm61.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
5534
5629
  ], User.prototype, "firstName", 2);
5535
5630
  __decorateClass([
5536
- (0, import_typeorm60.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
5631
+ (0, import_typeorm61.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
5537
5632
  ], User.prototype, "lastName", 2);
5538
5633
  __decorateClass([
5539
- (0, import_typeorm60.Column)({ name: "date_of_birth", type: "date", nullable: true })
5634
+ (0, import_typeorm61.Column)({ name: "date_of_birth", type: "date", nullable: true })
5540
5635
  ], User.prototype, "dateOfBirth", 2);
5541
5636
  __decorateClass([
5542
- (0, import_typeorm60.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
5637
+ (0, import_typeorm61.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
5543
5638
  ], User.prototype, "gender", 2);
5544
5639
  __decorateClass([
5545
- (0, import_typeorm60.Column)({ name: "profile_picture_url", type: "text", nullable: true })
5640
+ (0, import_typeorm61.Column)({ name: "profile_picture_url", type: "text", nullable: true })
5546
5641
  ], User.prototype, "profilePictureUrl", 2);
5547
5642
  __decorateClass([
5548
- (0, import_typeorm60.Column)({ name: "email", type: "varchar", unique: true })
5643
+ (0, import_typeorm61.Column)({ name: "email", type: "varchar", unique: true })
5549
5644
  ], User.prototype, "email", 2);
5550
5645
  __decorateClass([
5551
- (0, import_typeorm60.Column)({ name: "mobile_code", type: "varchar", nullable: true })
5646
+ (0, import_typeorm61.Column)({ name: "mobile_code", type: "varchar", nullable: true })
5552
5647
  ], User.prototype, "mobileCode", 2);
5553
5648
  __decorateClass([
5554
- (0, import_typeorm60.Column)({ name: "mobile", type: "varchar", nullable: true })
5649
+ (0, import_typeorm61.Column)({ name: "mobile", type: "varchar", nullable: true })
5555
5650
  ], User.prototype, "mobile", 2);
5556
5651
  __decorateClass([
5557
- (0, import_typeorm60.Column)({ name: "password", type: "varchar", nullable: true })
5652
+ (0, import_typeorm61.Column)({ name: "password", type: "varchar", nullable: true })
5558
5653
  ], User.prototype, "password", 2);
5559
5654
  __decorateClass([
5560
- (0, import_typeorm60.Column)({
5655
+ (0, import_typeorm61.Column)({
5561
5656
  name: "account_type",
5562
5657
  type: "enum",
5563
5658
  enum: AccountType,
@@ -5565,7 +5660,7 @@ __decorateClass([
5565
5660
  })
5566
5661
  ], User.prototype, "accountType", 2);
5567
5662
  __decorateClass([
5568
- (0, import_typeorm60.Column)({
5663
+ (0, import_typeorm61.Column)({
5569
5664
  name: "account_status",
5570
5665
  type: "enum",
5571
5666
  enum: AccountStatus,
@@ -5573,42 +5668,42 @@ __decorateClass([
5573
5668
  })
5574
5669
  ], User.prototype, "accountStatus", 2);
5575
5670
  __decorateClass([
5576
- (0, import_typeorm60.Column)({ name: "is_email_verified", type: "boolean", default: false })
5671
+ (0, import_typeorm61.Column)({ name: "is_email_verified", type: "boolean", default: false })
5577
5672
  ], User.prototype, "isEmailVerified", 2);
5578
5673
  __decorateClass([
5579
- (0, import_typeorm60.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
5674
+ (0, import_typeorm61.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
5580
5675
  ], User.prototype, "isMobileVerified", 2);
5581
5676
  __decorateClass([
5582
- (0, import_typeorm60.Column)({ name: "is_social", type: "boolean", default: false })
5677
+ (0, import_typeorm61.Column)({ name: "is_social", type: "boolean", default: false })
5583
5678
  ], User.prototype, "isSocial", 2);
5584
5679
  __decorateClass([
5585
- (0, import_typeorm60.Column)({
5680
+ (0, import_typeorm61.Column)({
5586
5681
  name: "last_login_at",
5587
5682
  type: "timestamp with time zone",
5588
5683
  nullable: true
5589
5684
  })
5590
5685
  ], User.prototype, "lastLoginAt", 2);
5591
5686
  __decorateClass([
5592
- (0, import_typeorm60.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
5687
+ (0, import_typeorm61.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
5593
5688
  ], User.prototype, "lastLoginIp", 2);
5594
5689
  __decorateClass([
5595
- (0, import_typeorm60.Column)({ name: "reset_token", type: "varchar", nullable: true })
5690
+ (0, import_typeorm61.Column)({ name: "reset_token", type: "varchar", nullable: true })
5596
5691
  ], User.prototype, "resetToken", 2);
5597
5692
  __decorateClass([
5598
- (0, import_typeorm60.Column)({
5693
+ (0, import_typeorm61.Column)({
5599
5694
  name: "reset_token_expire_at",
5600
5695
  type: "timestamp with time zone",
5601
5696
  nullable: true
5602
5697
  })
5603
5698
  ], User.prototype, "resetTokenExpireAt", 2);
5604
5699
  __decorateClass([
5605
- (0, import_typeorm60.Column)({ name: "set_password_token", type: "varchar", nullable: true })
5700
+ (0, import_typeorm61.Column)({ name: "set_password_token", type: "varchar", nullable: true })
5606
5701
  ], User.prototype, "setPasswordToken", 2);
5607
5702
  __decorateClass([
5608
- (0, import_typeorm60.OneToMany)(() => RefreshToken, (token) => token.user)
5703
+ (0, import_typeorm61.OneToMany)(() => RefreshToken, (token) => token.user)
5609
5704
  ], User.prototype, "refreshTokens", 2);
5610
5705
  __decorateClass([
5611
- (0, import_typeorm60.Column)({
5706
+ (0, import_typeorm61.Column)({
5612
5707
  name: "provider",
5613
5708
  type: "enum",
5614
5709
  enum: Provider,
@@ -5617,205 +5712,205 @@ __decorateClass([
5617
5712
  })
5618
5713
  ], User.prototype, "provider", 2);
5619
5714
  __decorateClass([
5620
- (0, import_typeorm60.Column)({ name: "provider_token", type: "varchar", nullable: true })
5715
+ (0, import_typeorm61.Column)({ name: "provider_token", type: "varchar", nullable: true })
5621
5716
  ], User.prototype, "providerToken", 2);
5622
5717
  __decorateClass([
5623
- (0, import_typeorm60.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
5718
+ (0, import_typeorm61.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
5624
5719
  ], User.prototype, "linkedInId", 2);
5625
5720
  __decorateClass([
5626
- (0, import_typeorm60.Column)({ name: "google_id", type: "varchar", nullable: true })
5721
+ (0, import_typeorm61.Column)({ name: "google_id", type: "varchar", nullable: true })
5627
5722
  ], User.prototype, "googleId", 2);
5628
5723
  __decorateClass([
5629
- (0, import_typeorm60.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
5724
+ (0, import_typeorm61.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
5630
5725
  ], User.prototype, "gitLabsId", 2);
5631
5726
  __decorateClass([
5632
- (0, import_typeorm60.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
5727
+ (0, import_typeorm61.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
5633
5728
  ], User.prototype, "onBoardedBy", 2);
5634
5729
  __decorateClass([
5635
- (0, import_typeorm60.OneToMany)(() => Otp, (otp) => otp.user)
5730
+ (0, import_typeorm61.OneToMany)(() => Otp, (otp) => otp.user)
5636
5731
  ], User.prototype, "otps", 2);
5637
5732
  __decorateClass([
5638
- (0, import_typeorm60.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
5733
+ (0, import_typeorm61.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
5639
5734
  ], User.prototype, "senseloafLogs", 2);
5640
5735
  __decorateClass([
5641
- (0, import_typeorm60.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
5736
+ (0, import_typeorm61.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
5642
5737
  ], User.prototype, "companyProfile", 2);
5643
5738
  __decorateClass([
5644
- (0, import_typeorm60.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
5739
+ (0, import_typeorm61.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
5645
5740
  ], User.prototype, "companySkills", 2);
5646
5741
  __decorateClass([
5647
- (0, import_typeorm60.OneToMany)(
5742
+ (0, import_typeorm61.OneToMany)(
5648
5743
  () => CompanyMemberRole,
5649
5744
  (companyMemberRole) => companyMemberRole.user
5650
5745
  )
5651
5746
  ], User.prototype, "companyMemberRoles", 2);
5652
5747
  __decorateClass([
5653
- (0, import_typeorm60.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
5748
+ (0, import_typeorm61.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
5654
5749
  ], User.prototype, "companyAiInterview", 2);
5655
5750
  __decorateClass([
5656
- (0, import_typeorm60.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
5751
+ (0, import_typeorm61.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
5657
5752
  ], User.prototype, "clientF2FInterviews", 2);
5658
5753
  __decorateClass([
5659
- (0, import_typeorm60.OneToOne)(
5754
+ (0, import_typeorm61.OneToOne)(
5660
5755
  () => FreelancerProfile,
5661
5756
  (freelancerProfile) => freelancerProfile.user
5662
5757
  )
5663
5758
  ], User.prototype, "freelancerProfile", 2);
5664
5759
  __decorateClass([
5665
- (0, import_typeorm60.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
5760
+ (0, import_typeorm61.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
5666
5761
  ], User.prototype, "freelancerResume", 2);
5667
5762
  __decorateClass([
5668
- (0, import_typeorm60.OneToMany)(
5763
+ (0, import_typeorm61.OneToMany)(
5669
5764
  () => FreelancerAssessment,
5670
5765
  (freelancerAssessment) => freelancerAssessment.user
5671
5766
  )
5672
5767
  ], User.prototype, "assessments", 2);
5673
5768
  __decorateClass([
5674
- (0, import_typeorm60.OneToMany)(
5769
+ (0, import_typeorm61.OneToMany)(
5675
5770
  () => AssessmentAnswer,
5676
5771
  (assessmentAnswer) => assessmentAnswer.user
5677
5772
  )
5678
5773
  ], User.prototype, "assessmentAnswers", 2);
5679
5774
  __decorateClass([
5680
- (0, import_typeorm60.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
5775
+ (0, import_typeorm61.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
5681
5776
  ], User.prototype, "freelancerSkills", 2);
5682
5777
  __decorateClass([
5683
- (0, import_typeorm60.OneToMany)(
5778
+ (0, import_typeorm61.OneToMany)(
5684
5779
  () => FreelancerExperience,
5685
5780
  (freelancerExperience) => freelancerExperience.user
5686
5781
  )
5687
5782
  ], User.prototype, "freelancerExperience", 2);
5688
5783
  __decorateClass([
5689
- (0, import_typeorm60.OneToMany)(
5784
+ (0, import_typeorm61.OneToMany)(
5690
5785
  () => FreelancerEducation,
5691
5786
  (freelancerEducation) => freelancerEducation.user
5692
5787
  )
5693
5788
  ], User.prototype, "freelancerEducation", 2);
5694
5789
  __decorateClass([
5695
- (0, import_typeorm60.OneToMany)(
5790
+ (0, import_typeorm61.OneToMany)(
5696
5791
  () => FreelancerProject,
5697
5792
  (freelancerProject) => freelancerProject.user
5698
5793
  )
5699
5794
  ], User.prototype, "freelancerProject", 2);
5700
5795
  __decorateClass([
5701
- (0, import_typeorm60.OneToMany)(
5796
+ (0, import_typeorm61.OneToMany)(
5702
5797
  () => FreelancerCaseStudy,
5703
5798
  (freelancerCaseStudy) => freelancerCaseStudy.user
5704
5799
  )
5705
5800
  ], User.prototype, "freelancerCaseStudy", 2);
5706
5801
  __decorateClass([
5707
- (0, import_typeorm60.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
5802
+ (0, import_typeorm61.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
5708
5803
  ], User.prototype, "freelancerTool", 2);
5709
5804
  __decorateClass([
5710
- (0, import_typeorm60.OneToMany)(
5805
+ (0, import_typeorm61.OneToMany)(
5711
5806
  () => FreelancerFramework,
5712
5807
  (freelancerFramework) => freelancerFramework.user
5713
5808
  )
5714
5809
  ], User.prototype, "freelancerFramework", 2);
5715
5810
  __decorateClass([
5716
- (0, import_typeorm60.OneToOne)(
5811
+ (0, import_typeorm61.OneToOne)(
5717
5812
  () => FreelancerDeclaration,
5718
5813
  (freelancerDeclaration) => freelancerDeclaration.user
5719
5814
  )
5720
5815
  ], User.prototype, "freelancerDeclaration", 2);
5721
5816
  __decorateClass([
5722
- (0, import_typeorm60.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
5817
+ (0, import_typeorm61.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
5723
5818
  ], User.prototype, "freelancerAiInterview", 2);
5724
5819
  __decorateClass([
5725
- (0, import_typeorm60.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
5820
+ (0, import_typeorm61.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
5726
5821
  ], User.prototype, "freelancerF2FInterviews", 2);
5727
5822
  __decorateClass([
5728
- (0, import_typeorm60.OneToMany)(
5823
+ (0, import_typeorm61.OneToMany)(
5729
5824
  () => F2fInterviewRescheduleRequest,
5730
5825
  (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
5731
5826
  )
5732
5827
  ], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
5733
5828
  __decorateClass([
5734
- (0, import_typeorm60.OneToMany)(() => Job, (job) => job.user)
5829
+ (0, import_typeorm61.OneToMany)(() => Job, (job) => job.user)
5735
5830
  ], User.prototype, "jobs", 2);
5736
5831
  __decorateClass([
5737
- (0, import_typeorm60.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
5832
+ (0, import_typeorm61.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
5738
5833
  ], User.prototype, "jobApplications", 2);
5739
5834
  __decorateClass([
5740
- (0, import_typeorm60.OneToMany)(() => Interview, (interview) => interview.user)
5835
+ (0, import_typeorm61.OneToMany)(() => Interview, (interview) => interview.user)
5741
5836
  ], User.prototype, "interviews", 2);
5742
5837
  __decorateClass([
5743
- (0, import_typeorm60.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
5838
+ (0, import_typeorm61.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
5744
5839
  ], User.prototype, "bankDetail", 2);
5745
5840
  __decorateClass([
5746
- (0, import_typeorm60.OneToMany)(
5841
+ (0, import_typeorm61.OneToMany)(
5747
5842
  () => SystemPreference,
5748
5843
  (systemPreference) => systemPreference.user
5749
5844
  )
5750
5845
  ], User.prototype, "systemPreference", 2);
5751
5846
  __decorateClass([
5752
- (0, import_typeorm60.OneToMany)(() => Rating, (rating) => rating.reviewer)
5847
+ (0, import_typeorm61.OneToMany)(() => Rating, (rating) => rating.reviewer)
5753
5848
  ], User.prototype, "givenRatings", 2);
5754
5849
  __decorateClass([
5755
- (0, import_typeorm60.OneToMany)(() => Rating, (rating) => rating.reviewee)
5850
+ (0, import_typeorm61.OneToMany)(() => Rating, (rating) => rating.reviewee)
5756
5851
  ], User.prototype, "receivedRatings", 2);
5757
5852
  __decorateClass([
5758
- (0, import_typeorm60.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
5853
+ (0, import_typeorm61.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
5759
5854
  ], User.prototype, "adminUserRoles", 2);
5760
5855
  __decorateClass([
5761
- (0, import_typeorm60.OneToMany)(() => Contract, (contract) => contract.client)
5856
+ (0, import_typeorm61.OneToMany)(() => Contract, (contract) => contract.client)
5762
5857
  ], User.prototype, "clientContracts", 2);
5763
5858
  __decorateClass([
5764
- (0, import_typeorm60.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
5859
+ (0, import_typeorm61.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
5765
5860
  ], User.prototype, "clientEscrowWallets", 2);
5766
5861
  __decorateClass([
5767
- (0, import_typeorm60.OneToMany)(() => Contract, (contract) => contract.freelancer)
5862
+ (0, import_typeorm61.OneToMany)(() => Contract, (contract) => contract.freelancer)
5768
5863
  ], User.prototype, "freelancerContracts", 2);
5769
5864
  __decorateClass([
5770
- (0, import_typeorm60.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
5865
+ (0, import_typeorm61.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
5771
5866
  ], User.prototype, "freelancerEscrowWallets", 2);
5772
5867
  __decorateClass([
5773
- (0, import_typeorm60.OneToOne)(() => Signature, (signature) => signature.user)
5868
+ (0, import_typeorm61.OneToOne)(() => Signature, (signature) => signature.user)
5774
5869
  ], User.prototype, "signatures", 2);
5775
5870
  __decorateClass([
5776
- (0, import_typeorm60.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
5871
+ (0, import_typeorm61.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
5777
5872
  ], User.prototype, "clientTimesheets", 2);
5778
5873
  __decorateClass([
5779
- (0, import_typeorm60.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
5874
+ (0, import_typeorm61.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
5780
5875
  ], User.prototype, "freelancerTimesheets", 2);
5781
5876
  __decorateClass([
5782
- (0, import_typeorm60.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
5877
+ (0, import_typeorm61.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
5783
5878
  ], User.prototype, "clientTimesheetLine", 2);
5784
5879
  __decorateClass([
5785
- (0, import_typeorm60.OneToMany)(() => Invoice, (invoice) => invoice.client)
5880
+ (0, import_typeorm61.OneToMany)(() => Invoice, (invoice) => invoice.client)
5786
5881
  ], User.prototype, "clientInvoice", 2);
5787
5882
  __decorateClass([
5788
- (0, import_typeorm60.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
5883
+ (0, import_typeorm61.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
5789
5884
  ], User.prototype, "freelancerTimesheetLine", 2);
5790
5885
  __decorateClass([
5791
- (0, import_typeorm60.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
5886
+ (0, import_typeorm61.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
5792
5887
  ], User.prototype, "freelancerInvoice", 2);
5793
5888
  __decorateClass([
5794
- (0, import_typeorm60.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
5889
+ (0, import_typeorm61.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
5795
5890
  ], User.prototype, "clientPreferencesGiven", 2);
5796
5891
  __decorateClass([
5797
- (0, import_typeorm60.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
5892
+ (0, import_typeorm61.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
5798
5893
  ], User.prototype, "clientPreferencesReceived", 2);
5799
5894
  __decorateClass([
5800
- (0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
5895
+ (0, import_typeorm61.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
5801
5896
  ], User.prototype, "initiatedDisputes", 2);
5802
5897
  __decorateClass([
5803
- (0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
5898
+ (0, import_typeorm61.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
5804
5899
  ], User.prototype, "respondentDisputes", 2);
5805
5900
  __decorateClass([
5806
- (0, import_typeorm60.OneToOne)(() => Wallet, (wallet) => wallet.user)
5901
+ (0, import_typeorm61.OneToOne)(() => Wallet, (wallet) => wallet.user)
5807
5902
  ], User.prototype, "wallet", 2);
5808
5903
  __decorateClass([
5809
- (0, import_typeorm60.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
5904
+ (0, import_typeorm61.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
5810
5905
  ], User.prototype, "stripeTransactions", 2);
5811
5906
  __decorateClass([
5812
- (0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.client)
5907
+ (0, import_typeorm61.OneToMany)(() => Dispute, (dispute) => dispute.client)
5813
5908
  ], User.prototype, "clientDisputes", 2);
5814
5909
  __decorateClass([
5815
- (0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
5910
+ (0, import_typeorm61.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
5816
5911
  ], User.prototype, "freelancerDisputes", 2);
5817
5912
  User = __decorateClass([
5818
- (0, import_typeorm60.Entity)("users")
5913
+ (0, import_typeorm61.Entity)("users")
5819
5914
  ], User);
5820
5915
 
5821
5916
  // src/entities/rating.entity.ts
@@ -5827,36 +5922,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
5827
5922
  var Rating = class extends BaseEntity {
5828
5923
  };
5829
5924
  __decorateClass([
5830
- (0, import_typeorm61.Column)({ name: "reviewer_id", type: "integer" }),
5831
- (0, import_typeorm61.Index)()
5925
+ (0, import_typeorm62.Column)({ name: "reviewer_id", type: "integer" }),
5926
+ (0, import_typeorm62.Index)()
5832
5927
  ], Rating.prototype, "reviewer_id", 2);
5833
5928
  __decorateClass([
5834
- (0, import_typeorm61.ManyToOne)(() => User, { onDelete: "CASCADE" }),
5835
- (0, import_typeorm61.JoinColumn)({ name: "reviewer_id" })
5929
+ (0, import_typeorm62.ManyToOne)(() => User, { onDelete: "CASCADE" }),
5930
+ (0, import_typeorm62.JoinColumn)({ name: "reviewer_id" })
5836
5931
  ], Rating.prototype, "reviewer", 2);
5837
5932
  __decorateClass([
5838
- (0, import_typeorm61.Column)({ name: "reviewee_id", type: "integer" }),
5839
- (0, import_typeorm61.Index)()
5933
+ (0, import_typeorm62.Column)({ name: "reviewee_id", type: "integer" }),
5934
+ (0, import_typeorm62.Index)()
5840
5935
  ], Rating.prototype, "reviewee_id", 2);
5841
5936
  __decorateClass([
5842
- (0, import_typeorm61.ManyToOne)(() => User, { onDelete: "CASCADE" }),
5843
- (0, import_typeorm61.JoinColumn)({ name: "reviewee_id" })
5937
+ (0, import_typeorm62.ManyToOne)(() => User, { onDelete: "CASCADE" }),
5938
+ (0, import_typeorm62.JoinColumn)({ name: "reviewee_id" })
5844
5939
  ], Rating.prototype, "reviewee", 2);
5845
5940
  __decorateClass([
5846
- (0, import_typeorm61.Column)({
5941
+ (0, import_typeorm62.Column)({
5847
5942
  type: "enum",
5848
5943
  enum: RatingTypeEnum,
5849
5944
  nullable: true
5850
5945
  })
5851
5946
  ], Rating.prototype, "ratingType", 2);
5852
5947
  __decorateClass([
5853
- (0, import_typeorm61.Column)({ type: "integer", nullable: true })
5948
+ (0, import_typeorm62.Column)({ type: "integer", nullable: true })
5854
5949
  ], Rating.prototype, "rating", 2);
5855
5950
  __decorateClass([
5856
- (0, import_typeorm61.Column)({ type: "text", nullable: true })
5951
+ (0, import_typeorm62.Column)({ type: "text", nullable: true })
5857
5952
  ], Rating.prototype, "review", 2);
5858
5953
  Rating = __decorateClass([
5859
- (0, import_typeorm61.Entity)("ratings")
5954
+ (0, import_typeorm62.Entity)("ratings")
5860
5955
  ], Rating);
5861
5956
 
5862
5957
  // src/modules/rating/dto/add.rating.dto.ts
@@ -7094,7 +7189,8 @@ var CONTRACT_PATTERN = {
7094
7189
  fetchContractsForClientContractRepository: "fetch.contracts.for.client.contract.repository",
7095
7190
  fetchClientsForFreelancerContractRepository: "fetch.clients.for.feelancer.contract.repository",
7096
7191
  fetchJobsForFreelancerContractRepository: "fetch.jobs.for.freelancer.contract.repository",
7097
- fetchContractsForFreelancerContractRepository: "fetch.contracts.for.freelancer.contract.repository"
7192
+ fetchContractsForFreelancerContractRepository: "fetch.contracts.for.freelancer.contract.repository",
7193
+ resendContractForFreelancer: "resend.contract.for.freelancer"
7098
7194
  };
7099
7195
 
7100
7196
  // src/modules/contract/dto/sign-contract-for-client.dto.ts
@@ -7715,11 +7811,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
7715
7811
  };
7716
7812
 
7717
7813
  // src/entities/sequence-generator.entity.ts
7718
- var import_typeorm62 = require("typeorm");
7814
+ var import_typeorm63 = require("typeorm");
7719
7815
  var SequenceGenerator = class extends BaseEntity {
7720
7816
  };
7721
7817
  __decorateClass([
7722
- (0, import_typeorm62.Column)({
7818
+ (0, import_typeorm63.Column)({
7723
7819
  name: "module",
7724
7820
  type: "varchar",
7725
7821
  length: 50,
@@ -7728,7 +7824,7 @@ __decorateClass([
7728
7824
  })
7729
7825
  ], SequenceGenerator.prototype, "module", 2);
7730
7826
  __decorateClass([
7731
- (0, import_typeorm62.Column)({
7827
+ (0, import_typeorm63.Column)({
7732
7828
  name: "prefix",
7733
7829
  type: "varchar",
7734
7830
  length: 10,
@@ -7737,7 +7833,7 @@ __decorateClass([
7737
7833
  })
7738
7834
  ], SequenceGenerator.prototype, "prefix", 2);
7739
7835
  __decorateClass([
7740
- (0, import_typeorm62.Column)({
7836
+ (0, import_typeorm63.Column)({
7741
7837
  name: "last_sequence",
7742
7838
  type: "int",
7743
7839
  nullable: false,
@@ -7745,7 +7841,7 @@ __decorateClass([
7745
7841
  })
7746
7842
  ], SequenceGenerator.prototype, "lastSequence", 2);
7747
7843
  __decorateClass([
7748
- (0, import_typeorm62.Column)({
7844
+ (0, import_typeorm63.Column)({
7749
7845
  name: "year",
7750
7846
  type: "int",
7751
7847
  nullable: true,
@@ -7753,11 +7849,11 @@ __decorateClass([
7753
7849
  })
7754
7850
  ], SequenceGenerator.prototype, "year", 2);
7755
7851
  SequenceGenerator = __decorateClass([
7756
- (0, import_typeorm62.Entity)("sequence_generators")
7852
+ (0, import_typeorm63.Entity)("sequence_generators")
7757
7853
  ], SequenceGenerator);
7758
7854
 
7759
7855
  // src/entities/question.entity.ts
7760
- var import_typeorm63 = require("typeorm");
7856
+ var import_typeorm64 = require("typeorm");
7761
7857
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7762
7858
  QuestionFor2["CLIENT"] = "CLIENT";
7763
7859
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -7766,16 +7862,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7766
7862
  var Question = class extends BaseEntity {
7767
7863
  };
7768
7864
  __decorateClass([
7769
- (0, import_typeorm63.Column)({ name: "question", type: "varchar" })
7865
+ (0, import_typeorm64.Column)({ name: "question", type: "varchar" })
7770
7866
  ], Question.prototype, "question", 2);
7771
7867
  __decorateClass([
7772
- (0, import_typeorm63.Column)({ name: "hint", type: "varchar", nullable: true })
7868
+ (0, import_typeorm64.Column)({ name: "hint", type: "varchar", nullable: true })
7773
7869
  ], Question.prototype, "hint", 2);
7774
7870
  __decorateClass([
7775
- (0, import_typeorm63.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7871
+ (0, import_typeorm64.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7776
7872
  ], Question.prototype, "slug", 2);
7777
7873
  __decorateClass([
7778
- (0, import_typeorm63.Column)({
7874
+ (0, import_typeorm64.Column)({
7779
7875
  name: "question_for",
7780
7876
  type: "enum",
7781
7877
  enum: QuestionFor,
@@ -7783,45 +7879,45 @@ __decorateClass([
7783
7879
  })
7784
7880
  ], Question.prototype, "questionFor", 2);
7785
7881
  __decorateClass([
7786
- (0, import_typeorm63.Column)({ name: "type", type: "varchar", nullable: true })
7882
+ (0, import_typeorm64.Column)({ name: "type", type: "varchar", nullable: true })
7787
7883
  ], Question.prototype, "type", 2);
7788
7884
  __decorateClass([
7789
- (0, import_typeorm63.Column)({ name: "options", type: "jsonb", nullable: true })
7885
+ (0, import_typeorm64.Column)({ name: "options", type: "jsonb", nullable: true })
7790
7886
  ], Question.prototype, "options", 2);
7791
7887
  __decorateClass([
7792
- (0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: false })
7888
+ (0, import_typeorm64.Column)({ name: "is_active", type: "boolean", default: false })
7793
7889
  ], Question.prototype, "isActive", 2);
7794
7890
  Question = __decorateClass([
7795
- (0, import_typeorm63.Entity)("questions")
7891
+ (0, import_typeorm64.Entity)("questions")
7796
7892
  ], Question);
7797
7893
 
7798
7894
  // src/entities/skill.entity.ts
7799
- var import_typeorm64 = require("typeorm");
7895
+ var import_typeorm65 = require("typeorm");
7800
7896
  var Skill = class extends BaseEntity {
7801
7897
  };
7802
7898
  __decorateClass([
7803
- (0, import_typeorm64.Column)({ name: "name", type: "varchar", nullable: true })
7899
+ (0, import_typeorm65.Column)({ name: "name", type: "varchar", nullable: true })
7804
7900
  ], Skill.prototype, "name", 2);
7805
7901
  __decorateClass([
7806
- (0, import_typeorm64.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7902
+ (0, import_typeorm65.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7807
7903
  ], Skill.prototype, "slug", 2);
7808
7904
  __decorateClass([
7809
- (0, import_typeorm64.Column)({ name: "is_active", type: "boolean", default: false })
7905
+ (0, import_typeorm65.Column)({ name: "is_active", type: "boolean", default: false })
7810
7906
  ], Skill.prototype, "isActive", 2);
7811
7907
  Skill = __decorateClass([
7812
- (0, import_typeorm64.Entity)("skills")
7908
+ (0, import_typeorm65.Entity)("skills")
7813
7909
  ], Skill);
7814
7910
 
7815
7911
  // src/entities/skill-catalog.entity.ts
7816
- var import_typeorm65 = require("typeorm");
7912
+ var import_typeorm66 = require("typeorm");
7817
7913
  var SkillCatalog = class extends BaseEntity {
7818
7914
  };
7819
7915
  __decorateClass([
7820
- (0, import_typeorm65.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
7821
- (0, import_typeorm65.Index)()
7916
+ (0, import_typeorm66.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
7917
+ (0, import_typeorm66.Index)()
7822
7918
  ], SkillCatalog.prototype, "canonicalName", 2);
7823
7919
  __decorateClass([
7824
- (0, import_typeorm65.Column)({
7920
+ (0, import_typeorm66.Column)({
7825
7921
  name: "aliases",
7826
7922
  type: "text",
7827
7923
  array: true,
@@ -7829,20 +7925,20 @@ __decorateClass([
7829
7925
  })
7830
7926
  ], SkillCatalog.prototype, "aliases", 2);
7831
7927
  __decorateClass([
7832
- (0, import_typeorm65.Column)({
7928
+ (0, import_typeorm66.Column)({
7833
7929
  name: "variations",
7834
7930
  type: "jsonb",
7835
7931
  default: "{}"
7836
7932
  })
7837
7933
  ], SkillCatalog.prototype, "variations", 2);
7838
7934
  __decorateClass([
7839
- (0, import_typeorm65.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
7935
+ (0, import_typeorm66.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
7840
7936
  ], SkillCatalog.prototype, "category", 2);
7841
7937
  __decorateClass([
7842
- (0, import_typeorm65.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
7938
+ (0, import_typeorm66.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
7843
7939
  ], SkillCatalog.prototype, "parentSkill", 2);
7844
7940
  __decorateClass([
7845
- (0, import_typeorm65.Column)({
7941
+ (0, import_typeorm66.Column)({
7846
7942
  name: "related_skills",
7847
7943
  type: "text",
7848
7944
  array: true,
@@ -7850,111 +7946,111 @@ __decorateClass([
7850
7946
  })
7851
7947
  ], SkillCatalog.prototype, "relatedSkills", 2);
7852
7948
  __decorateClass([
7853
- (0, import_typeorm65.Column)({ name: "usage_count", type: "integer", default: 0 }),
7854
- (0, import_typeorm65.Index)()
7949
+ (0, import_typeorm66.Column)({ name: "usage_count", type: "integer", default: 0 }),
7950
+ (0, import_typeorm66.Index)()
7855
7951
  ], SkillCatalog.prototype, "usageCount", 2);
7856
7952
  __decorateClass([
7857
- (0, import_typeorm65.Column)({ name: "is_verified", type: "boolean", default: false })
7953
+ (0, import_typeorm66.Column)({ name: "is_verified", type: "boolean", default: false })
7858
7954
  ], SkillCatalog.prototype, "isVerified", 2);
7859
7955
  __decorateClass([
7860
- (0, import_typeorm65.Column)({ name: "first_seen_date", type: "date" })
7956
+ (0, import_typeorm66.Column)({ name: "first_seen_date", type: "date" })
7861
7957
  ], SkillCatalog.prototype, "firstSeenDate", 2);
7862
7958
  __decorateClass([
7863
- (0, import_typeorm65.Column)({ name: "last_updated_date", type: "date" })
7959
+ (0, import_typeorm66.Column)({ name: "last_updated_date", type: "date" })
7864
7960
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
7865
7961
  __decorateClass([
7866
- (0, import_typeorm65.Column)({
7962
+ (0, import_typeorm66.Column)({
7867
7963
  name: "search_vector",
7868
7964
  type: "tsvector",
7869
7965
  nullable: true
7870
7966
  })
7871
7967
  ], SkillCatalog.prototype, "searchVector", 2);
7872
7968
  SkillCatalog = __decorateClass([
7873
- (0, import_typeorm65.Entity)("skill_catalogs")
7969
+ (0, import_typeorm66.Entity)("skill_catalogs")
7874
7970
  ], SkillCatalog);
7875
7971
 
7876
7972
  // src/entities/job-role.entity.ts
7877
- var import_typeorm66 = require("typeorm");
7973
+ var import_typeorm67 = require("typeorm");
7878
7974
  var JobRoles = class extends BaseEntity {
7879
7975
  };
7880
7976
  __decorateClass([
7881
- (0, import_typeorm66.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7977
+ (0, import_typeorm67.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7882
7978
  ], JobRoles.prototype, "slug", 2);
7883
7979
  __decorateClass([
7884
- (0, import_typeorm66.Column)({ name: "name", type: "varchar", nullable: true })
7980
+ (0, import_typeorm67.Column)({ name: "name", type: "varchar", nullable: true })
7885
7981
  ], JobRoles.prototype, "name", 2);
7886
7982
  __decorateClass([
7887
- (0, import_typeorm66.Column)({ name: "is_active", type: "boolean", default: true })
7983
+ (0, import_typeorm67.Column)({ name: "is_active", type: "boolean", default: true })
7888
7984
  ], JobRoles.prototype, "isActive", 2);
7889
7985
  JobRoles = __decorateClass([
7890
- (0, import_typeorm66.Entity)("job_roles")
7986
+ (0, import_typeorm67.Entity)("job_roles")
7891
7987
  ], JobRoles);
7892
7988
 
7893
7989
  // src/entities/plan.entity.ts
7894
- var import_typeorm68 = require("typeorm");
7990
+ var import_typeorm69 = require("typeorm");
7895
7991
 
7896
7992
  // src/entities/feature.entity.ts
7897
- var import_typeorm67 = require("typeorm");
7993
+ var import_typeorm68 = require("typeorm");
7898
7994
  var Feature = class extends BaseEntity {
7899
7995
  };
7900
7996
  __decorateClass([
7901
- (0, import_typeorm67.Column)({ name: "name", type: "varchar", unique: true })
7997
+ (0, import_typeorm68.Column)({ name: "name", type: "varchar", unique: true })
7902
7998
  ], Feature.prototype, "name", 2);
7903
7999
  __decorateClass([
7904
- (0, import_typeorm67.ManyToMany)(() => Plan, (plan) => plan.features)
8000
+ (0, import_typeorm68.ManyToMany)(() => Plan, (plan) => plan.features)
7905
8001
  ], Feature.prototype, "plans", 2);
7906
8002
  Feature = __decorateClass([
7907
- (0, import_typeorm67.Entity)("features")
8003
+ (0, import_typeorm68.Entity)("features")
7908
8004
  ], Feature);
7909
8005
 
7910
8006
  // src/entities/plan.entity.ts
7911
8007
  var Plan = class extends BaseEntity {
7912
8008
  };
7913
8009
  __decorateClass([
7914
- (0, import_typeorm68.Column)({ name: "name", type: "varchar", unique: true })
8010
+ (0, import_typeorm69.Column)({ name: "name", type: "varchar", unique: true })
7915
8011
  ], Plan.prototype, "name", 2);
7916
8012
  __decorateClass([
7917
- (0, import_typeorm68.Column)({ name: "description", type: "varchar", nullable: true })
8013
+ (0, import_typeorm69.Column)({ name: "description", type: "varchar", nullable: true })
7918
8014
  ], Plan.prototype, "description", 2);
7919
8015
  __decorateClass([
7920
- (0, import_typeorm68.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
8016
+ (0, import_typeorm69.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
7921
8017
  ], Plan.prototype, "price", 2);
7922
8018
  __decorateClass([
7923
- (0, import_typeorm68.Column)({ name: "billing_period", type: "varchar" })
8019
+ (0, import_typeorm69.Column)({ name: "billing_period", type: "varchar" })
7924
8020
  ], Plan.prototype, "billingPeriod", 2);
7925
8021
  __decorateClass([
7926
- (0, import_typeorm68.Column)({ name: "is_current", type: "boolean", default: false })
8022
+ (0, import_typeorm69.Column)({ name: "is_current", type: "boolean", default: false })
7927
8023
  ], Plan.prototype, "isCurrent", 2);
7928
8024
  __decorateClass([
7929
- (0, import_typeorm68.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
7930
- (0, import_typeorm68.JoinTable)()
8025
+ (0, import_typeorm69.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
8026
+ (0, import_typeorm69.JoinTable)()
7931
8027
  ], Plan.prototype, "features", 2);
7932
8028
  Plan = __decorateClass([
7933
- (0, import_typeorm68.Entity)("plans")
8029
+ (0, import_typeorm69.Entity)("plans")
7934
8030
  ], Plan);
7935
8031
 
7936
8032
  // src/entities/cms.entity.ts
7937
- var import_typeorm69 = require("typeorm");
8033
+ var import_typeorm70 = require("typeorm");
7938
8034
  var Cms = class extends BaseEntity {
7939
8035
  };
7940
8036
  __decorateClass([
7941
- (0, import_typeorm69.Column)({ name: "title", type: "varchar", nullable: true })
8037
+ (0, import_typeorm70.Column)({ name: "title", type: "varchar", nullable: true })
7942
8038
  ], Cms.prototype, "title", 2);
7943
8039
  __decorateClass([
7944
- (0, import_typeorm69.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
8040
+ (0, import_typeorm70.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7945
8041
  ], Cms.prototype, "slug", 2);
7946
8042
  __decorateClass([
7947
- (0, import_typeorm69.Column)({ name: "content", type: "varchar", nullable: true })
8043
+ (0, import_typeorm70.Column)({ name: "content", type: "varchar", nullable: true })
7948
8044
  ], Cms.prototype, "content", 2);
7949
8045
  __decorateClass([
7950
- (0, import_typeorm69.Column)({ name: "is_active", type: "boolean", default: true })
8046
+ (0, import_typeorm70.Column)({ name: "is_active", type: "boolean", default: true })
7951
8047
  ], Cms.prototype, "isActive", 2);
7952
8048
  Cms = __decorateClass([
7953
- (0, import_typeorm69.Entity)("cms")
8049
+ (0, import_typeorm70.Entity)("cms")
7954
8050
  ], Cms);
7955
8051
 
7956
8052
  // src/entities/lead.entity.ts
7957
- var import_typeorm70 = require("typeorm");
8053
+ var import_typeorm71 = require("typeorm");
7958
8054
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7959
8055
  CategoryEmum2["BUSINESS"] = "BUSINESS";
7960
8056
  CategoryEmum2["FREELANCER"] = "FREELANCER";
@@ -7963,22 +8059,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7963
8059
  var Lead = class extends BaseEntity {
7964
8060
  };
7965
8061
  __decorateClass([
7966
- (0, import_typeorm70.Column)({ name: "name", type: "varchar", nullable: true })
8062
+ (0, import_typeorm71.Column)({ name: "name", type: "varchar", nullable: true })
7967
8063
  ], Lead.prototype, "name", 2);
7968
8064
  __decorateClass([
7969
- (0, import_typeorm70.Column)({ name: "mobile_code", type: "varchar", nullable: true })
8065
+ (0, import_typeorm71.Column)({ name: "mobile_code", type: "varchar", nullable: true })
7970
8066
  ], Lead.prototype, "mobileCode", 2);
7971
8067
  __decorateClass([
7972
- (0, import_typeorm70.Column)({ name: "mobile", type: "varchar", nullable: true })
8068
+ (0, import_typeorm71.Column)({ name: "mobile", type: "varchar", nullable: true })
7973
8069
  ], Lead.prototype, "mobile", 2);
7974
8070
  __decorateClass([
7975
- (0, import_typeorm70.Column)({ name: "email", type: "varchar", nullable: true })
8071
+ (0, import_typeorm71.Column)({ name: "email", type: "varchar", nullable: true })
7976
8072
  ], Lead.prototype, "email", 2);
7977
8073
  __decorateClass([
7978
- (0, import_typeorm70.Column)({ name: "description", type: "varchar", nullable: true })
8074
+ (0, import_typeorm71.Column)({ name: "description", type: "varchar", nullable: true })
7979
8075
  ], Lead.prototype, "description", 2);
7980
8076
  __decorateClass([
7981
- (0, import_typeorm70.Column)({
8077
+ (0, import_typeorm71.Column)({
7982
8078
  name: "category",
7983
8079
  type: "enum",
7984
8080
  enum: CategoryEmum,
@@ -7986,129 +8082,129 @@ __decorateClass([
7986
8082
  })
7987
8083
  ], Lead.prototype, "category", 2);
7988
8084
  Lead = __decorateClass([
7989
- (0, import_typeorm70.Entity)("leads")
8085
+ (0, import_typeorm71.Entity)("leads")
7990
8086
  ], Lead);
7991
8087
 
7992
8088
  // src/entities/job-freelancer-recommendation.entity.ts
7993
- var import_typeorm71 = require("typeorm");
8089
+ var import_typeorm72 = require("typeorm");
7994
8090
  var JobFreelancerRecommendation = class {
7995
8091
  };
7996
8092
  __decorateClass([
7997
- (0, import_typeorm71.ViewColumn)({ name: "job_id" })
8093
+ (0, import_typeorm72.ViewColumn)({ name: "job_id" })
7998
8094
  ], JobFreelancerRecommendation.prototype, "jobId", 2);
7999
8095
  __decorateClass([
8000
- (0, import_typeorm71.ViewColumn)({ name: "job_uuid" })
8096
+ (0, import_typeorm72.ViewColumn)({ name: "job_uuid" })
8001
8097
  ], JobFreelancerRecommendation.prototype, "jobUuid", 2);
8002
8098
  __decorateClass([
8003
- (0, import_typeorm71.ViewColumn)({ name: "job_unique_id" })
8099
+ (0, import_typeorm72.ViewColumn)({ name: "job_unique_id" })
8004
8100
  ], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
8005
8101
  __decorateClass([
8006
- (0, import_typeorm71.ViewColumn)({ name: "job_role" })
8102
+ (0, import_typeorm72.ViewColumn)({ name: "job_role" })
8007
8103
  ], JobFreelancerRecommendation.prototype, "jobRole", 2);
8008
8104
  __decorateClass([
8009
- (0, import_typeorm71.ViewColumn)({ name: "job_openings" })
8105
+ (0, import_typeorm72.ViewColumn)({ name: "job_openings" })
8010
8106
  ], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
8011
8107
  __decorateClass([
8012
- (0, import_typeorm71.ViewColumn)({ name: "job_location" })
8108
+ (0, import_typeorm72.ViewColumn)({ name: "job_location" })
8013
8109
  ], JobFreelancerRecommendation.prototype, "jobLocation", 2);
8014
8110
  __decorateClass([
8015
- (0, import_typeorm71.ViewColumn)({ name: "job_currency" })
8111
+ (0, import_typeorm72.ViewColumn)({ name: "job_currency" })
8016
8112
  ], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
8017
8113
  __decorateClass([
8018
- (0, import_typeorm71.ViewColumn)({ name: "job_salary_from" })
8114
+ (0, import_typeorm72.ViewColumn)({ name: "job_salary_from" })
8019
8115
  ], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
8020
8116
  __decorateClass([
8021
- (0, import_typeorm71.ViewColumn)({ name: "job_salary_to" })
8117
+ (0, import_typeorm72.ViewColumn)({ name: "job_salary_to" })
8022
8118
  ], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
8023
8119
  __decorateClass([
8024
- (0, import_typeorm71.ViewColumn)({ name: "job_employment_type" })
8120
+ (0, import_typeorm72.ViewColumn)({ name: "job_employment_type" })
8025
8121
  ], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
8026
8122
  __decorateClass([
8027
- (0, import_typeorm71.ViewColumn)({ name: "application_received" })
8123
+ (0, import_typeorm72.ViewColumn)({ name: "application_received" })
8028
8124
  ], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
8029
8125
  __decorateClass([
8030
- (0, import_typeorm71.ViewColumn)({ name: "job_posted_at" })
8126
+ (0, import_typeorm72.ViewColumn)({ name: "job_posted_at" })
8031
8127
  ], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
8032
8128
  __decorateClass([
8033
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_id" })
8129
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_id" })
8034
8130
  ], JobFreelancerRecommendation.prototype, "freelancerId", 2);
8035
8131
  __decorateClass([
8036
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_uuid" })
8132
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_uuid" })
8037
8133
  ], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
8038
8134
  __decorateClass([
8039
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_unique_id" })
8135
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_unique_id" })
8040
8136
  ], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
8041
8137
  __decorateClass([
8042
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_first_name" })
8138
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_first_name" })
8043
8139
  ], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
8044
8140
  __decorateClass([
8045
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_last_name" })
8141
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_last_name" })
8046
8142
  ], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
8047
8143
  __decorateClass([
8048
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_email" })
8144
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_email" })
8049
8145
  ], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
8050
8146
  __decorateClass([
8051
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_profile_picture" })
8147
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_profile_picture" })
8052
8148
  ], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
8053
8149
  __decorateClass([
8054
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_is_social" })
8150
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_is_social" })
8055
8151
  ], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
8056
8152
  __decorateClass([
8057
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_created_at" })
8153
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_created_at" })
8058
8154
  ], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
8059
8155
  __decorateClass([
8060
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_designation" })
8156
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_designation" })
8061
8157
  ], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
8062
8158
  __decorateClass([
8063
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_experience" })
8159
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_experience" })
8064
8160
  ], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
8065
8161
  __decorateClass([
8066
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_expertshub_verified" })
8162
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_expertshub_verified" })
8067
8163
  ], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
8068
8164
  __decorateClass([
8069
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_hourly_compensation" })
8165
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_hourly_compensation" })
8070
8166
  ], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
8071
8167
  __decorateClass([
8072
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_country_name" })
8168
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_country_name" })
8073
8169
  ], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
8074
8170
  __decorateClass([
8075
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_country_iso_code" })
8171
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_country_iso_code" })
8076
8172
  ], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
8077
8173
  __decorateClass([
8078
- (0, import_typeorm71.ViewColumn)({ name: "client_id" })
8174
+ (0, import_typeorm72.ViewColumn)({ name: "client_id" })
8079
8175
  ], JobFreelancerRecommendation.prototype, "clientId", 2);
8080
8176
  __decorateClass([
8081
- (0, import_typeorm71.ViewColumn)({ name: "client_uuid" })
8177
+ (0, import_typeorm72.ViewColumn)({ name: "client_uuid" })
8082
8178
  ], JobFreelancerRecommendation.prototype, "clientUuid", 2);
8083
8179
  __decorateClass([
8084
- (0, import_typeorm71.ViewColumn)({ name: "client_first_name" })
8180
+ (0, import_typeorm72.ViewColumn)({ name: "client_first_name" })
8085
8181
  ], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
8086
8182
  __decorateClass([
8087
- (0, import_typeorm71.ViewColumn)({ name: "client_last_name" })
8183
+ (0, import_typeorm72.ViewColumn)({ name: "client_last_name" })
8088
8184
  ], JobFreelancerRecommendation.prototype, "clientLastName", 2);
8089
8185
  __decorateClass([
8090
- (0, import_typeorm71.ViewColumn)({ name: "client_email" })
8186
+ (0, import_typeorm72.ViewColumn)({ name: "client_email" })
8091
8187
  ], JobFreelancerRecommendation.prototype, "clientEmail", 2);
8092
8188
  __decorateClass([
8093
- (0, import_typeorm71.ViewColumn)({ name: "client_company_logo" })
8189
+ (0, import_typeorm72.ViewColumn)({ name: "client_company_logo" })
8094
8190
  ], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
8095
8191
  __decorateClass([
8096
- (0, import_typeorm71.ViewColumn)({ name: "client_company_name" })
8192
+ (0, import_typeorm72.ViewColumn)({ name: "client_company_name" })
8097
8193
  ], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
8098
8194
  __decorateClass([
8099
- (0, import_typeorm71.ViewColumn)({ name: "matching_skills" })
8195
+ (0, import_typeorm72.ViewColumn)({ name: "matching_skills" })
8100
8196
  ], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
8101
8197
  __decorateClass([
8102
- (0, import_typeorm71.ViewColumn)({ name: "matching_skills_count" })
8198
+ (0, import_typeorm72.ViewColumn)({ name: "matching_skills_count" })
8103
8199
  ], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
8104
8200
  __decorateClass([
8105
- (0, import_typeorm71.ViewColumn)({ name: "required_skills" })
8201
+ (0, import_typeorm72.ViewColumn)({ name: "required_skills" })
8106
8202
  ], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
8107
8203
  __decorateClass([
8108
- (0, import_typeorm71.ViewColumn)({ name: "required_skills_count" })
8204
+ (0, import_typeorm72.ViewColumn)({ name: "required_skills_count" })
8109
8205
  ], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
8110
8206
  JobFreelancerRecommendation = __decorateClass([
8111
- (0, import_typeorm71.ViewEntity)({
8207
+ (0, import_typeorm72.ViewEntity)({
8112
8208
  name: "job_freelancer_recommendations",
8113
8209
  materialized: true,
8114
8210
  synchronize: false
@@ -8117,32 +8213,32 @@ JobFreelancerRecommendation = __decorateClass([
8117
8213
  ], JobFreelancerRecommendation);
8118
8214
 
8119
8215
  // src/entities/job-freelancer-recommendation-v2.entity.ts
8120
- var import_typeorm72 = require("typeorm");
8216
+ var import_typeorm73 = require("typeorm");
8121
8217
  var JobFreelancerRecommendationV2 = class {
8122
8218
  };
8123
8219
  __decorateClass([
8124
- (0, import_typeorm72.ViewColumn)({ name: "job_id" })
8220
+ (0, import_typeorm73.ViewColumn)({ name: "job_id" })
8125
8221
  ], JobFreelancerRecommendationV2.prototype, "jobId", 2);
8126
8222
  __decorateClass([
8127
- (0, import_typeorm72.ViewColumn)({ name: "job_owner_id" })
8223
+ (0, import_typeorm73.ViewColumn)({ name: "job_owner_id" })
8128
8224
  ], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
8129
8225
  __decorateClass([
8130
- (0, import_typeorm72.ViewColumn)({ name: "freelancer_id" })
8226
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_id" })
8131
8227
  ], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
8132
8228
  __decorateClass([
8133
- (0, import_typeorm72.ViewColumn)({ name: "matching_skills" })
8229
+ (0, import_typeorm73.ViewColumn)({ name: "matching_skills" })
8134
8230
  ], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
8135
8231
  __decorateClass([
8136
- (0, import_typeorm72.ViewColumn)({ name: "matching_skills_count" })
8232
+ (0, import_typeorm73.ViewColumn)({ name: "matching_skills_count" })
8137
8233
  ], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
8138
8234
  __decorateClass([
8139
- (0, import_typeorm72.ViewColumn)({ name: "required_skills" })
8235
+ (0, import_typeorm73.ViewColumn)({ name: "required_skills" })
8140
8236
  ], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
8141
8237
  __decorateClass([
8142
- (0, import_typeorm72.ViewColumn)({ name: "required_skills_count" })
8238
+ (0, import_typeorm73.ViewColumn)({ name: "required_skills_count" })
8143
8239
  ], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
8144
8240
  JobFreelancerRecommendationV2 = __decorateClass([
8145
- (0, import_typeorm72.ViewEntity)({
8241
+ (0, import_typeorm73.ViewEntity)({
8146
8242
  name: "job_freelancer_recommendations_v2",
8147
8243
  materialized: true,
8148
8244
  synchronize: false
@@ -8151,74 +8247,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
8151
8247
  ], JobFreelancerRecommendationV2);
8152
8248
 
8153
8249
  // src/entities/client-freelancer-recommendation.entity.ts
8154
- var import_typeorm73 = require("typeorm");
8250
+ var import_typeorm74 = require("typeorm");
8155
8251
  var ClientFreelancerRecommendation = class {
8156
8252
  };
8157
8253
  __decorateClass([
8158
- (0, import_typeorm73.ViewColumn)({ name: "client_id" })
8254
+ (0, import_typeorm74.ViewColumn)({ name: "client_id" })
8159
8255
  ], ClientFreelancerRecommendation.prototype, "clientId", 2);
8160
8256
  __decorateClass([
8161
- (0, import_typeorm73.ViewColumn)({ name: "client_uuid" })
8257
+ (0, import_typeorm74.ViewColumn)({ name: "client_uuid" })
8162
8258
  ], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
8163
8259
  __decorateClass([
8164
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_id" })
8260
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_id" })
8165
8261
  ], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
8166
8262
  __decorateClass([
8167
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_uuid" })
8263
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_uuid" })
8168
8264
  ], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
8169
8265
  __decorateClass([
8170
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_unique_id" })
8266
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_unique_id" })
8171
8267
  ], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
8172
8268
  __decorateClass([
8173
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_first_name" })
8269
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_first_name" })
8174
8270
  ], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
8175
8271
  __decorateClass([
8176
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_last_name" })
8272
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_last_name" })
8177
8273
  ], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
8178
8274
  __decorateClass([
8179
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_email" })
8275
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_email" })
8180
8276
  ], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
8181
8277
  __decorateClass([
8182
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_profile_picture" })
8278
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_profile_picture" })
8183
8279
  ], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
8184
8280
  __decorateClass([
8185
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_is_social" })
8281
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_is_social" })
8186
8282
  ], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
8187
8283
  __decorateClass([
8188
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_created_at" })
8284
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_created_at" })
8189
8285
  ], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
8190
8286
  __decorateClass([
8191
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_designation" })
8287
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_designation" })
8192
8288
  ], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
8193
8289
  __decorateClass([
8194
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_experience" })
8290
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_experience" })
8195
8291
  ], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
8196
8292
  __decorateClass([
8197
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_expertshub_verified" })
8293
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_expertshub_verified" })
8198
8294
  ], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
8199
8295
  __decorateClass([
8200
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_hourly_compensation" })
8296
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_hourly_compensation" })
8201
8297
  ], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
8202
8298
  __decorateClass([
8203
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_country_name" })
8299
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_country_name" })
8204
8300
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
8205
8301
  __decorateClass([
8206
- (0, import_typeorm73.ViewColumn)({ name: "freelancer_country_iso_code" })
8302
+ (0, import_typeorm74.ViewColumn)({ name: "freelancer_country_iso_code" })
8207
8303
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
8208
8304
  __decorateClass([
8209
- (0, import_typeorm73.ViewColumn)({ name: "matching_skills" })
8305
+ (0, import_typeorm74.ViewColumn)({ name: "matching_skills" })
8210
8306
  ], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
8211
8307
  __decorateClass([
8212
- (0, import_typeorm73.ViewColumn)({ name: "matching_skills_count" })
8308
+ (0, import_typeorm74.ViewColumn)({ name: "matching_skills_count" })
8213
8309
  ], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
8214
8310
  __decorateClass([
8215
- (0, import_typeorm73.ViewColumn)({ name: "required_skills" })
8311
+ (0, import_typeorm74.ViewColumn)({ name: "required_skills" })
8216
8312
  ], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
8217
8313
  __decorateClass([
8218
- (0, import_typeorm73.ViewColumn)({ name: "required_skills_count" })
8314
+ (0, import_typeorm74.ViewColumn)({ name: "required_skills_count" })
8219
8315
  ], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
8220
8316
  ClientFreelancerRecommendation = __decorateClass([
8221
- (0, import_typeorm73.ViewEntity)({
8317
+ (0, import_typeorm74.ViewEntity)({
8222
8318
  name: "client_freelancer_recommendations",
8223
8319
  materialized: true,
8224
8320
  synchronize: false
@@ -8227,7 +8323,7 @@ ClientFreelancerRecommendation = __decorateClass([
8227
8323
  ], ClientFreelancerRecommendation);
8228
8324
 
8229
8325
  // src/entities/commission.entity.ts
8230
- var import_typeorm74 = require("typeorm");
8326
+ var import_typeorm75 = require("typeorm");
8231
8327
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
8232
8328
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
8233
8329
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -8236,7 +8332,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
8236
8332
  var Commission = class extends BaseEntity {
8237
8333
  };
8238
8334
  __decorateClass([
8239
- (0, import_typeorm74.Column)({
8335
+ (0, import_typeorm75.Column)({
8240
8336
  name: "freelancer_commission_type",
8241
8337
  type: "enum",
8242
8338
  enum: CommissionTypeEnum,
@@ -8244,10 +8340,10 @@ __decorateClass([
8244
8340
  })
8245
8341
  ], Commission.prototype, "freelancerCommissionType", 2);
8246
8342
  __decorateClass([
8247
- (0, import_typeorm74.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
8343
+ (0, import_typeorm75.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
8248
8344
  ], Commission.prototype, "freelancerCommission", 2);
8249
8345
  __decorateClass([
8250
- (0, import_typeorm74.Column)({
8346
+ (0, import_typeorm75.Column)({
8251
8347
  name: "client_commission_type",
8252
8348
  type: "enum",
8253
8349
  enum: CommissionTypeEnum,
@@ -8255,93 +8351,93 @@ __decorateClass([
8255
8351
  })
8256
8352
  ], Commission.prototype, "clientCommissionType", 2);
8257
8353
  __decorateClass([
8258
- (0, import_typeorm74.Column)({ name: "client_commission", type: "integer", default: 0 })
8354
+ (0, import_typeorm75.Column)({ name: "client_commission", type: "integer", default: 0 })
8259
8355
  ], Commission.prototype, "clientCommission", 2);
8260
8356
  Commission = __decorateClass([
8261
- (0, import_typeorm74.Entity)("commissions")
8357
+ (0, import_typeorm75.Entity)("commissions")
8262
8358
  ], Commission);
8263
8359
 
8264
8360
  // src/entities/calendly-meeting-log.entity.ts
8265
- var import_typeorm75 = require("typeorm");
8361
+ var import_typeorm76 = require("typeorm");
8266
8362
  var CalendlyMeetingLog = class extends BaseEntity {
8267
8363
  };
8268
8364
  __decorateClass([
8269
- (0, import_typeorm75.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
8270
- (0, import_typeorm75.Index)()
8365
+ (0, import_typeorm76.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
8366
+ (0, import_typeorm76.Index)()
8271
8367
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
8272
8368
  __decorateClass([
8273
- (0, import_typeorm75.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
8369
+ (0, import_typeorm76.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
8274
8370
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
8275
8371
  __decorateClass([
8276
- (0, import_typeorm75.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8372
+ (0, import_typeorm76.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8277
8373
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
8278
8374
  CalendlyMeetingLog = __decorateClass([
8279
- (0, import_typeorm75.Entity)("calendly_meeting_logs")
8375
+ (0, import_typeorm76.Entity)("calendly_meeting_logs")
8280
8376
  ], CalendlyMeetingLog);
8281
8377
 
8282
8378
  // src/entities/zoom-meeting-log.entity.ts
8283
- var import_typeorm76 = require("typeorm");
8379
+ var import_typeorm77 = require("typeorm");
8284
8380
  var ZoomMeetingLog = class extends BaseEntity {
8285
8381
  };
8286
8382
  __decorateClass([
8287
- (0, import_typeorm76.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
8288
- (0, import_typeorm76.Index)()
8383
+ (0, import_typeorm77.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
8384
+ (0, import_typeorm77.Index)()
8289
8385
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
8290
8386
  __decorateClass([
8291
- (0, import_typeorm76.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
8387
+ (0, import_typeorm77.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
8292
8388
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
8293
8389
  __decorateClass([
8294
- (0, import_typeorm76.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8390
+ (0, import_typeorm77.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8295
8391
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
8296
8392
  ZoomMeetingLog = __decorateClass([
8297
- (0, import_typeorm76.Entity)("zoom_meeting_logs")
8393
+ (0, import_typeorm77.Entity)("zoom_meeting_logs")
8298
8394
  ], ZoomMeetingLog);
8299
8395
 
8300
8396
  // src/entities/stripe-logs.entity.ts
8301
- var import_typeorm77 = require("typeorm");
8397
+ var import_typeorm78 = require("typeorm");
8302
8398
  var StripeLog = class extends BaseEntity {
8303
8399
  };
8304
8400
  __decorateClass([
8305
- (0, import_typeorm77.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
8401
+ (0, import_typeorm78.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
8306
8402
  ], StripeLog.prototype, "stripeEventId", 2);
8307
8403
  __decorateClass([
8308
- (0, import_typeorm77.Column)({ name: "event_type", type: "varchar", nullable: true })
8404
+ (0, import_typeorm78.Column)({ name: "event_type", type: "varchar", nullable: true })
8309
8405
  ], StripeLog.prototype, "eventType", 2);
8310
8406
  __decorateClass([
8311
- (0, import_typeorm77.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
8407
+ (0, import_typeorm78.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
8312
8408
  ], StripeLog.prototype, "stripeAccountId", 2);
8313
8409
  __decorateClass([
8314
- (0, import_typeorm77.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8410
+ (0, import_typeorm78.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8315
8411
  ], StripeLog.prototype, "rawWebhookData", 2);
8316
8412
  StripeLog = __decorateClass([
8317
- (0, import_typeorm77.Entity)("stripe_logs")
8413
+ (0, import_typeorm78.Entity)("stripe_logs")
8318
8414
  ], StripeLog);
8319
8415
 
8320
8416
  // src/entities/recommendation-weightage-config.entity.ts
8321
- var import_typeorm78 = require("typeorm");
8417
+ var import_typeorm79 = require("typeorm");
8322
8418
  var RecommendationWeightageConfig = class extends BaseEntity {
8323
8419
  };
8324
8420
  __decorateClass([
8325
- (0, import_typeorm78.Column)({
8421
+ (0, import_typeorm79.Column)({
8326
8422
  type: "varchar",
8327
8423
  length: 100,
8328
8424
  unique: true,
8329
8425
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
8330
8426
  }),
8331
- (0, import_typeorm78.Index)()
8427
+ (0, import_typeorm79.Index)()
8332
8428
  ], RecommendationWeightageConfig.prototype, "key", 2);
8333
8429
  __decorateClass([
8334
- (0, import_typeorm78.Column)({
8430
+ (0, import_typeorm79.Column)({
8335
8431
  type: "jsonb",
8336
8432
  comment: "JSON object containing weight values",
8337
8433
  nullable: true
8338
8434
  })
8339
8435
  ], RecommendationWeightageConfig.prototype, "value", 2);
8340
8436
  __decorateClass([
8341
- (0, import_typeorm78.Column)({ name: "is_active", type: "boolean", default: true })
8437
+ (0, import_typeorm79.Column)({ name: "is_active", type: "boolean", default: true })
8342
8438
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
8343
8439
  RecommendationWeightageConfig = __decorateClass([
8344
- (0, import_typeorm78.Entity)("recommendation_weightage_configs")
8440
+ (0, import_typeorm79.Entity)("recommendation_weightage_configs")
8345
8441
  ], RecommendationWeightageConfig);
8346
8442
  // Annotate the CommonJS export names for ESM import in node:
8347
8443
  0 && (module.exports = {
@@ -8409,6 +8505,8 @@ RecommendationWeightageConfig = __decorateClass([
8409
8505
  CompanyRolePermission,
8410
8506
  CompanySkill,
8411
8507
  Contract,
8508
+ ContractHistory,
8509
+ ContractHistoryActionEnum,
8412
8510
  ContractRMQAdapter,
8413
8511
  ContractStatusEnum,
8414
8512
  ContractTCPAdapter,