@experts_hub/shared 1.0.503 → 1.0.505

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