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