@experts_hub/shared 1.0.657 → 1.0.660

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
@@ -174,6 +174,7 @@ __export(index_exports, {
174
174
  DocuSeal: () => DocuSeal,
175
175
  DocuSealMessageDto: () => DocuSealMessageDto,
176
176
  DocuSealSubmitterDto: () => DocuSealSubmitterDto,
177
+ DocuSealTypeEnum: () => DocuSealTypeEnum,
177
178
  DocumentType: () => DocumentType,
178
179
  DurationTypeEnum: () => DurationTypeEnum,
179
180
  EMAIL_PATTERN: () => EMAIL_PATTERN,
@@ -1358,7 +1359,7 @@ __decorateClass([
1358
1359
  var import_class_validator37 = require("class-validator");
1359
1360
 
1360
1361
  // src/entities/user.entity.ts
1361
- var import_typeorm68 = require("typeorm");
1362
+ var import_typeorm67 = require("typeorm");
1362
1363
 
1363
1364
  // src/entities/base.entity.ts
1364
1365
  var import_typeorm = require("typeorm");
@@ -1733,6 +1734,9 @@ __decorateClass([
1733
1734
  default: 0
1734
1735
  })
1735
1736
  ], CompanyProfile.prototype, "rating", 2);
1737
+ __decorateClass([
1738
+ (0, import_typeorm5.Column)({ name: "signature_url", type: "varchar", nullable: true })
1739
+ ], CompanyProfile.prototype, "signatureUrl", 2);
1736
1740
  CompanyProfile = __decorateClass([
1737
1741
  (0, import_typeorm5.Entity)("company_profiles")
1738
1742
  ], CompanyProfile);
@@ -2176,12 +2180,15 @@ __decorateClass([
2176
2180
  default: 0
2177
2181
  })
2178
2182
  ], FreelancerProfile.prototype, "rating", 2);
2183
+ __decorateClass([
2184
+ (0, import_typeorm9.Column)({ name: "signature_url", type: "varchar", nullable: true })
2185
+ ], FreelancerProfile.prototype, "signatureUrl", 2);
2179
2186
  FreelancerProfile = __decorateClass([
2180
2187
  (0, import_typeorm9.Entity)("freelancer_profiles")
2181
2188
  ], FreelancerProfile);
2182
2189
 
2183
2190
  // src/entities/job.entity.ts
2184
- var import_typeorm36 = require("typeorm");
2191
+ var import_typeorm35 = require("typeorm");
2185
2192
 
2186
2193
  // src/entities/job-skill.entity.ts
2187
2194
  var import_typeorm10 = require("typeorm");
@@ -3209,7 +3216,7 @@ JobRecommendation = __decorateClass([
3209
3216
  ], JobRecommendation);
3210
3217
 
3211
3218
  // src/entities/contract.entity.ts
3212
- var import_typeorm32 = require("typeorm");
3219
+ var import_typeorm31 = require("typeorm");
3213
3220
 
3214
3221
  // src/entities/escrow-wallet.entity.ts
3215
3222
  var import_typeorm30 = require("typeorm");
@@ -3846,32 +3853,6 @@ EscrowWallet = __decorateClass([
3846
3853
  (0, import_typeorm30.Entity)("escrow_wallets")
3847
3854
  ], EscrowWallet);
3848
3855
 
3849
- // src/entities/docuseal.entity.ts
3850
- var import_typeorm31 = require("typeorm");
3851
- var DocuSeal = class extends BaseEntity {
3852
- };
3853
- __decorateClass([
3854
- (0, import_typeorm31.Column)({ name: "contract_id", type: "integer", nullable: true }),
3855
- (0, import_typeorm31.Index)()
3856
- ], DocuSeal.prototype, "contractId", 2);
3857
- __decorateClass([
3858
- (0, import_typeorm31.ManyToOne)(() => Contract, (contract) => contract.docuseal),
3859
- (0, import_typeorm31.JoinColumn)({ name: "contract_id" })
3860
- ], DocuSeal.prototype, "contract", 2);
3861
- __decorateClass([
3862
- (0, import_typeorm31.Column)({ name: "submitter_id", type: "integer", nullable: true }),
3863
- (0, import_typeorm31.Index)()
3864
- ], DocuSeal.prototype, "submitterId", 2);
3865
- __decorateClass([
3866
- (0, import_typeorm31.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
3867
- ], DocuSeal.prototype, "submitterResponse", 2);
3868
- __decorateClass([
3869
- (0, import_typeorm31.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
3870
- ], DocuSeal.prototype, "webhookResponse", 2);
3871
- DocuSeal = __decorateClass([
3872
- (0, import_typeorm31.Entity)("docuseal")
3873
- ], DocuSeal);
3874
-
3875
3856
  // src/entities/contract.entity.ts
3876
3857
  var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
3877
3858
  ContractStatusEnum2["GENERATED"] = "GENERATED";
@@ -3897,45 +3878,45 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
3897
3878
  var Contract = class extends BaseEntity {
3898
3879
  };
3899
3880
  __decorateClass([
3900
- (0, import_typeorm32.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3881
+ (0, import_typeorm31.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3901
3882
  ], Contract.prototype, "contractUniqueId", 2);
3902
3883
  __decorateClass([
3903
- (0, import_typeorm32.Column)({ name: "contract_summary_id", type: "integer", nullable: true }),
3904
- (0, import_typeorm32.Index)()
3884
+ (0, import_typeorm31.Column)({ name: "contract_summary_id", type: "integer", nullable: true }),
3885
+ (0, import_typeorm31.Index)()
3905
3886
  ], Contract.prototype, "contractSummaryId", 2);
3906
3887
  __decorateClass([
3907
- (0, import_typeorm32.ManyToOne)(() => ContractSummary, (contractSummary) => contractSummary.contracts),
3908
- (0, import_typeorm32.JoinColumn)({ name: "contract_summary_id" })
3888
+ (0, import_typeorm31.ManyToOne)(() => ContractSummary, (contractSummary) => contractSummary.contracts),
3889
+ (0, import_typeorm31.JoinColumn)({ name: "contract_summary_id" })
3909
3890
  ], Contract.prototype, "contractSummary", 2);
3910
3891
  __decorateClass([
3911
- (0, import_typeorm32.Column)({ name: "job_id", type: "integer", nullable: true }),
3912
- (0, import_typeorm32.Index)()
3892
+ (0, import_typeorm31.Column)({ name: "job_id", type: "integer", nullable: true }),
3893
+ (0, import_typeorm31.Index)()
3913
3894
  ], Contract.prototype, "jobId", 2);
3914
3895
  __decorateClass([
3915
- (0, import_typeorm32.ManyToOne)(() => Job, (job) => job.contracts),
3916
- (0, import_typeorm32.JoinColumn)({ name: "job_id" })
3896
+ (0, import_typeorm31.ManyToOne)(() => Job, (job) => job.contracts),
3897
+ (0, import_typeorm31.JoinColumn)({ name: "job_id" })
3917
3898
  ], Contract.prototype, "job", 2);
3918
3899
  __decorateClass([
3919
- (0, import_typeorm32.Column)({ name: "client_id", type: "integer", nullable: true }),
3920
- (0, import_typeorm32.Index)()
3900
+ (0, import_typeorm31.Column)({ name: "client_id", type: "integer", nullable: true }),
3901
+ (0, import_typeorm31.Index)()
3921
3902
  ], Contract.prototype, "clientId", 2);
3922
3903
  __decorateClass([
3923
- (0, import_typeorm32.ManyToOne)(() => User, (user) => user.clientContracts),
3924
- (0, import_typeorm32.JoinColumn)({ name: "client_id" })
3904
+ (0, import_typeorm31.ManyToOne)(() => User, (user) => user.clientContracts),
3905
+ (0, import_typeorm31.JoinColumn)({ name: "client_id" })
3925
3906
  ], Contract.prototype, "client", 2);
3926
3907
  __decorateClass([
3927
- (0, import_typeorm32.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3928
- (0, import_typeorm32.Index)()
3908
+ (0, import_typeorm31.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3909
+ (0, import_typeorm31.Index)()
3929
3910
  ], Contract.prototype, "freelancerId", 2);
3930
3911
  __decorateClass([
3931
- (0, import_typeorm32.ManyToOne)(() => User, (user) => user.freelancerContracts),
3932
- (0, import_typeorm32.JoinColumn)({ name: "freelancer_id" })
3912
+ (0, import_typeorm31.ManyToOne)(() => User, (user) => user.freelancerContracts),
3913
+ (0, import_typeorm31.JoinColumn)({ name: "freelancer_id" })
3933
3914
  ], Contract.prototype, "freelancer", 2);
3934
3915
  __decorateClass([
3935
- (0, import_typeorm32.Column)({ name: "duration", type: "integer", nullable: true })
3916
+ (0, import_typeorm31.Column)({ name: "duration", type: "integer", nullable: true })
3936
3917
  ], Contract.prototype, "duration", 2);
3937
3918
  __decorateClass([
3938
- (0, import_typeorm32.Column)({
3919
+ (0, import_typeorm31.Column)({
3939
3920
  name: "status",
3940
3921
  type: "enum",
3941
3922
  enum: ContractStatusEnum,
@@ -3943,7 +3924,7 @@ __decorateClass([
3943
3924
  })
3944
3925
  ], Contract.prototype, "status", 2);
3945
3926
  __decorateClass([
3946
- (0, import_typeorm32.Column)({
3927
+ (0, import_typeorm31.Column)({
3947
3928
  name: "type",
3948
3929
  type: "enum",
3949
3930
  enum: ContractTypeEnum,
@@ -3951,10 +3932,10 @@ __decorateClass([
3951
3932
  })
3952
3933
  ], Contract.prototype, "type", 2);
3953
3934
  __decorateClass([
3954
- (0, import_typeorm32.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
3935
+ (0, import_typeorm31.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
3955
3936
  ], Contract.prototype, "invoicingCycle", 2);
3956
3937
  __decorateClass([
3957
- (0, import_typeorm32.Column)({
3938
+ (0, import_typeorm31.Column)({
3958
3939
  name: "escrow_deposite_amount",
3959
3940
  type: "decimal",
3960
3941
  precision: 10,
@@ -3963,103 +3944,100 @@ __decorateClass([
3963
3944
  })
3964
3945
  ], Contract.prototype, "escrowDepositeAmount", 2);
3965
3946
  __decorateClass([
3966
- (0, import_typeorm32.Column)({
3947
+ (0, import_typeorm31.Column)({
3967
3948
  name: "start_date",
3968
3949
  type: "timestamp with time zone",
3969
3950
  nullable: true
3970
3951
  })
3971
3952
  ], Contract.prototype, "startDate", 2);
3972
3953
  __decorateClass([
3973
- (0, import_typeorm32.Column)({
3954
+ (0, import_typeorm31.Column)({
3974
3955
  name: "end_date",
3975
3956
  type: "timestamp with time zone",
3976
3957
  nullable: true
3977
3958
  })
3978
3959
  ], Contract.prototype, "endDate", 2);
3979
3960
  __decorateClass([
3980
- (0, import_typeorm32.Column)({
3961
+ (0, import_typeorm31.Column)({
3981
3962
  name: "actual_start_date",
3982
3963
  type: "timestamp with time zone",
3983
3964
  nullable: true
3984
3965
  })
3985
3966
  ], Contract.prototype, "actualStartDate", 2);
3986
3967
  __decorateClass([
3987
- (0, import_typeorm32.Column)({
3968
+ (0, import_typeorm31.Column)({
3988
3969
  name: "actual_end_date",
3989
3970
  type: "timestamp with time zone",
3990
3971
  nullable: true
3991
3972
  })
3992
3973
  ], Contract.prototype, "actualEndDate", 2);
3993
3974
  __decorateClass([
3994
- (0, import_typeorm32.Column)({ name: "original_document_url", type: "varchar", nullable: true })
3975
+ (0, import_typeorm31.Column)({ name: "original_document_url", type: "varchar", nullable: true })
3995
3976
  ], Contract.prototype, "originalDocumentUrl", 2);
3996
3977
  __decorateClass([
3997
- (0, import_typeorm32.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
3978
+ (0, import_typeorm31.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
3998
3979
  ], Contract.prototype, "contractDocumentUrl", 2);
3999
3980
  __decorateClass([
4000
- (0, import_typeorm32.Column)({
3981
+ (0, import_typeorm31.Column)({
4001
3982
  name: "client_signed_at",
4002
3983
  type: "timestamp with time zone",
4003
3984
  nullable: true
4004
3985
  })
4005
3986
  ], Contract.prototype, "clientSignedAt", 2);
4006
3987
  __decorateClass([
4007
- (0, import_typeorm32.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
3988
+ (0, import_typeorm31.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
4008
3989
  ], Contract.prototype, "freelancerViewed", 2);
4009
3990
  __decorateClass([
4010
- (0, import_typeorm32.Column)({
3991
+ (0, import_typeorm31.Column)({
4011
3992
  name: "freelancer_viewed_at",
4012
3993
  type: "timestamp with time zone",
4013
3994
  nullable: true
4014
3995
  })
4015
3996
  ], Contract.prototype, "freelancerViewedAt", 2);
4016
3997
  __decorateClass([
4017
- (0, import_typeorm32.Column)({
3998
+ (0, import_typeorm31.Column)({
4018
3999
  name: "freelancer_signed_at",
4019
4000
  type: "timestamp with time zone",
4020
4001
  nullable: true
4021
4002
  })
4022
4003
  ], Contract.prototype, "freelancerSignedAt", 2);
4023
4004
  __decorateClass([
4024
- (0, import_typeorm32.Column)({
4005
+ (0, import_typeorm31.Column)({
4025
4006
  name: "rejectd_at",
4026
4007
  type: "timestamp with time zone",
4027
4008
  nullable: true
4028
4009
  })
4029
4010
  ], Contract.prototype, "rejectedAt", 2);
4030
4011
  __decorateClass([
4031
- (0, import_typeorm32.Column)({ name: "reject_reason", type: "varchar", nullable: true })
4012
+ (0, import_typeorm31.Column)({ name: "reject_reason", type: "varchar", nullable: true })
4032
4013
  ], Contract.prototype, "rejectReason", 2);
4033
4014
  __decorateClass([
4034
- (0, import_typeorm32.Column)({ name: "resend_count", type: "integer", default: 0 })
4015
+ (0, import_typeorm31.Column)({ name: "resend_count", type: "integer", default: 0 })
4035
4016
  ], Contract.prototype, "resendCount", 2);
4036
4017
  __decorateClass([
4037
- (0, import_typeorm32.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
4018
+ (0, import_typeorm31.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
4038
4019
  ], Contract.prototype, "isWorkContractSent", 2);
4039
4020
  __decorateClass([
4040
- (0, import_typeorm32.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
4021
+ (0, import_typeorm31.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
4041
4022
  ], Contract.prototype, "isEscrowDeposited", 2);
4042
4023
  __decorateClass([
4043
- (0, import_typeorm32.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
4024
+ (0, import_typeorm31.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
4044
4025
  ], Contract.prototype, "signaturePositions", 2);
4045
4026
  __decorateClass([
4046
- (0, import_typeorm32.Column)({ name: "signature_url", type: "varchar", nullable: true })
4027
+ (0, import_typeorm31.Column)({ name: "signature_url", type: "varchar", nullable: true })
4047
4028
  ], Contract.prototype, "signatureUrl", 2);
4048
4029
  __decorateClass([
4049
- (0, import_typeorm32.Column)({ name: "meta_data", type: "jsonb", nullable: true })
4030
+ (0, import_typeorm31.Column)({ name: "meta_data", type: "jsonb", nullable: true })
4050
4031
  ], Contract.prototype, "metaData", 2);
4051
4032
  __decorateClass([
4052
- (0, import_typeorm32.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
4033
+ (0, import_typeorm31.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
4053
4034
  ], Contract.prototype, "escrowWallet", 2);
4054
- __decorateClass([
4055
- (0, import_typeorm32.OneToOne)(() => DocuSeal, (docuseal) => docuseal.contract)
4056
- ], Contract.prototype, "docuseal", 2);
4057
4035
  Contract = __decorateClass([
4058
- (0, import_typeorm32.Entity)("contracts")
4036
+ (0, import_typeorm31.Entity)("contracts")
4059
4037
  ], Contract);
4060
4038
 
4061
4039
  // src/entities/timesheets.entity.ts
4062
- var import_typeorm33 = require("typeorm");
4040
+ var import_typeorm32 = require("typeorm");
4063
4041
  var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
4064
4042
  TimesheetStatusEnum2["DRAFT"] = "DRAFT";
4065
4043
  TimesheetStatusEnum2["SEND"] = "SEND";
@@ -4072,140 +4050,140 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
4072
4050
  var Timesheet = class extends BaseEntity {
4073
4051
  };
4074
4052
  __decorateClass([
4075
- (0, import_typeorm33.Column)({ name: "job_id", type: "integer", nullable: true }),
4076
- (0, import_typeorm33.Index)()
4053
+ (0, import_typeorm32.Column)({ name: "job_id", type: "integer", nullable: true }),
4054
+ (0, import_typeorm32.Index)()
4077
4055
  ], Timesheet.prototype, "jobId", 2);
4078
4056
  __decorateClass([
4079
- (0, import_typeorm33.ManyToOne)(() => Job, (job) => job.timesheets),
4080
- (0, import_typeorm33.JoinColumn)({ name: "job_id" })
4057
+ (0, import_typeorm32.ManyToOne)(() => Job, (job) => job.timesheets),
4058
+ (0, import_typeorm32.JoinColumn)({ name: "job_id" })
4081
4059
  ], Timesheet.prototype, "job", 2);
4082
4060
  __decorateClass([
4083
- (0, import_typeorm33.Column)({ name: "client_id", type: "integer", nullable: true }),
4084
- (0, import_typeorm33.Index)()
4061
+ (0, import_typeorm32.Column)({ name: "client_id", type: "integer", nullable: true }),
4062
+ (0, import_typeorm32.Index)()
4085
4063
  ], Timesheet.prototype, "clientId", 2);
4086
4064
  __decorateClass([
4087
- (0, import_typeorm33.ManyToOne)(() => User, (user) => user.clientTimesheets),
4088
- (0, import_typeorm33.JoinColumn)({ name: "client_id" })
4065
+ (0, import_typeorm32.ManyToOne)(() => User, (user) => user.clientTimesheets),
4066
+ (0, import_typeorm32.JoinColumn)({ name: "client_id" })
4089
4067
  ], Timesheet.prototype, "client", 2);
4090
4068
  __decorateClass([
4091
- (0, import_typeorm33.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
4092
- (0, import_typeorm33.Index)()
4069
+ (0, import_typeorm32.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
4070
+ (0, import_typeorm32.Index)()
4093
4071
  ], Timesheet.prototype, "freelancerId", 2);
4094
4072
  __decorateClass([
4095
- (0, import_typeorm33.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
4096
- (0, import_typeorm33.JoinColumn)({ name: "freelancer_id" })
4073
+ (0, import_typeorm32.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
4074
+ (0, import_typeorm32.JoinColumn)({ name: "freelancer_id" })
4097
4075
  ], Timesheet.prototype, "freelancer", 2);
4098
4076
  __decorateClass([
4099
- (0, import_typeorm33.Column)({
4077
+ (0, import_typeorm32.Column)({
4100
4078
  name: "start_date",
4101
4079
  type: "date",
4102
4080
  nullable: true
4103
4081
  })
4104
4082
  ], Timesheet.prototype, "startDate", 2);
4105
4083
  __decorateClass([
4106
- (0, import_typeorm33.Column)({
4084
+ (0, import_typeorm32.Column)({
4107
4085
  name: "end_date",
4108
4086
  type: "date",
4109
4087
  nullable: true
4110
4088
  })
4111
4089
  ], Timesheet.prototype, "endDate", 2);
4112
4090
  __decorateClass([
4113
- (0, import_typeorm33.Column)({ name: "start_time", type: "varchar", nullable: true })
4091
+ (0, import_typeorm32.Column)({ name: "start_time", type: "varchar", nullable: true })
4114
4092
  ], Timesheet.prototype, "startTime", 2);
4115
4093
  __decorateClass([
4116
- (0, import_typeorm33.Column)({ name: "end_time", type: "varchar", nullable: true })
4094
+ (0, import_typeorm32.Column)({ name: "end_time", type: "varchar", nullable: true })
4117
4095
  ], Timesheet.prototype, "endTime", 2);
4118
4096
  __decorateClass([
4119
- (0, import_typeorm33.Column)({ name: "worked_hours", type: "varchar", nullable: true })
4097
+ (0, import_typeorm32.Column)({ name: "worked_hours", type: "varchar", nullable: true })
4120
4098
  ], Timesheet.prototype, "workedHours", 2);
4121
4099
  __decorateClass([
4122
- (0, import_typeorm33.Column)({ name: "task_id", type: "integer", nullable: true })
4100
+ (0, import_typeorm32.Column)({ name: "task_id", type: "integer", nullable: true })
4123
4101
  ], Timesheet.prototype, "taskId", 2);
4124
4102
  __decorateClass([
4125
- (0, import_typeorm33.Column)({ name: "task_name", type: "varchar", nullable: true })
4103
+ (0, import_typeorm32.Column)({ name: "task_name", type: "varchar", nullable: true })
4126
4104
  ], Timesheet.prototype, "taskName", 2);
4127
4105
  __decorateClass([
4128
- (0, import_typeorm33.Column)({ name: "description", type: "varchar", nullable: true })
4106
+ (0, import_typeorm32.Column)({ name: "description", type: "varchar", nullable: true })
4129
4107
  ], Timesheet.prototype, "description", 2);
4130
4108
  __decorateClass([
4131
- (0, import_typeorm33.Column)({ name: "week_start_date", type: "date", nullable: true })
4109
+ (0, import_typeorm32.Column)({ name: "week_start_date", type: "date", nullable: true })
4132
4110
  ], Timesheet.prototype, "weekStartDate", 2);
4133
4111
  __decorateClass([
4134
- (0, import_typeorm33.Column)({ name: "week_end_date", type: "date", nullable: true })
4112
+ (0, import_typeorm32.Column)({ name: "week_end_date", type: "date", nullable: true })
4135
4113
  ], Timesheet.prototype, "weekEndDate", 2);
4136
4114
  __decorateClass([
4137
- (0, import_typeorm33.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4115
+ (0, import_typeorm32.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4138
4116
  ], Timesheet.prototype, "rejectedAt", 2);
4139
4117
  __decorateClass([
4140
- (0, import_typeorm33.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4118
+ (0, import_typeorm32.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4141
4119
  ], Timesheet.prototype, "submittedAt", 2);
4142
4120
  __decorateClass([
4143
- (0, import_typeorm33.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4121
+ (0, import_typeorm32.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4144
4122
  ], Timesheet.prototype, "resubmittedAt", 2);
4145
4123
  __decorateClass([
4146
- (0, import_typeorm33.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4124
+ (0, import_typeorm32.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4147
4125
  ], Timesheet.prototype, "approvedAt", 2);
4148
4126
  __decorateClass([
4149
- (0, import_typeorm33.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4127
+ (0, import_typeorm32.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4150
4128
  ], Timesheet.prototype, "status", 2);
4151
4129
  __decorateClass([
4152
- (0, import_typeorm33.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
4130
+ (0, import_typeorm32.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
4153
4131
  ], Timesheet.prototype, "clientSendBackReason", 2);
4154
4132
  Timesheet = __decorateClass([
4155
- (0, import_typeorm33.Entity)("timesheets")
4133
+ (0, import_typeorm32.Entity)("timesheets")
4156
4134
  ], Timesheet);
4157
4135
 
4158
4136
  // src/entities/job-location.entity.ts
4159
- var import_typeorm34 = require("typeorm");
4137
+ var import_typeorm33 = require("typeorm");
4160
4138
  var JobLocation = class extends BaseEntity {
4161
4139
  };
4162
4140
  __decorateClass([
4163
- (0, import_typeorm34.Column)({ name: "job_id", type: "integer", nullable: false }),
4164
- (0, import_typeorm34.Index)()
4141
+ (0, import_typeorm33.Column)({ name: "job_id", type: "integer", nullable: false }),
4142
+ (0, import_typeorm33.Index)()
4165
4143
  ], JobLocation.prototype, "jobId", 2);
4166
4144
  __decorateClass([
4167
- (0, import_typeorm34.ManyToOne)(() => Job, (job) => job.jobLocations),
4168
- (0, import_typeorm34.JoinColumn)({ name: "job_id" })
4145
+ (0, import_typeorm33.ManyToOne)(() => Job, (job) => job.jobLocations),
4146
+ (0, import_typeorm33.JoinColumn)({ name: "job_id" })
4169
4147
  ], JobLocation.prototype, "job", 2);
4170
4148
  __decorateClass([
4171
- (0, import_typeorm34.Column)({ name: "country_id", type: "int", nullable: false })
4149
+ (0, import_typeorm33.Column)({ name: "country_id", type: "int", nullable: false })
4172
4150
  ], JobLocation.prototype, "countryId", 2);
4173
4151
  __decorateClass([
4174
- (0, import_typeorm34.Column)({ name: "country_name", type: "varchar", nullable: true })
4152
+ (0, import_typeorm33.Column)({ name: "country_name", type: "varchar", nullable: true })
4175
4153
  ], JobLocation.prototype, "countryName", 2);
4176
4154
  __decorateClass([
4177
- (0, import_typeorm34.ManyToOne)(() => Country),
4178
- (0, import_typeorm34.JoinColumn)({ name: "country_id" })
4155
+ (0, import_typeorm33.ManyToOne)(() => Country),
4156
+ (0, import_typeorm33.JoinColumn)({ name: "country_id" })
4179
4157
  ], JobLocation.prototype, "country", 2);
4180
4158
  __decorateClass([
4181
- (0, import_typeorm34.Column)({ name: "state_id", type: "int", nullable: false })
4159
+ (0, import_typeorm33.Column)({ name: "state_id", type: "int", nullable: false })
4182
4160
  ], JobLocation.prototype, "stateId", 2);
4183
4161
  __decorateClass([
4184
- (0, import_typeorm34.Column)({ name: "state_name", type: "varchar", nullable: true })
4162
+ (0, import_typeorm33.Column)({ name: "state_name", type: "varchar", nullable: true })
4185
4163
  ], JobLocation.prototype, "stateName", 2);
4186
4164
  __decorateClass([
4187
- (0, import_typeorm34.ManyToOne)(() => State),
4188
- (0, import_typeorm34.JoinColumn)({ name: "state_id" })
4165
+ (0, import_typeorm33.ManyToOne)(() => State),
4166
+ (0, import_typeorm33.JoinColumn)({ name: "state_id" })
4189
4167
  ], JobLocation.prototype, "state", 2);
4190
4168
  __decorateClass([
4191
- (0, import_typeorm34.Column)({ name: "city_id", type: "int", nullable: false })
4169
+ (0, import_typeorm33.Column)({ name: "city_id", type: "int", nullable: false })
4192
4170
  ], JobLocation.prototype, "cityId", 2);
4193
4171
  __decorateClass([
4194
- (0, import_typeorm34.Column)({ name: "city_name", type: "varchar", nullable: true })
4172
+ (0, import_typeorm33.Column)({ name: "city_name", type: "varchar", nullable: true })
4195
4173
  ], JobLocation.prototype, "cityName", 2);
4196
4174
  __decorateClass([
4197
- (0, import_typeorm34.ManyToOne)(() => City),
4198
- (0, import_typeorm34.JoinColumn)({ name: "city_id" })
4175
+ (0, import_typeorm33.ManyToOne)(() => City),
4176
+ (0, import_typeorm33.JoinColumn)({ name: "city_id" })
4199
4177
  ], JobLocation.prototype, "city", 2);
4200
4178
  __decorateClass([
4201
- (0, import_typeorm34.Column)({ name: "location_wise_openings", type: "int", default: 0 })
4179
+ (0, import_typeorm33.Column)({ name: "location_wise_openings", type: "int", default: 0 })
4202
4180
  ], JobLocation.prototype, "locationWiseOpenings", 2);
4203
4181
  JobLocation = __decorateClass([
4204
- (0, import_typeorm34.Entity)("job_locations")
4182
+ (0, import_typeorm33.Entity)("job_locations")
4205
4183
  ], JobLocation);
4206
4184
 
4207
4185
  // src/entities/rating.entity.ts
4208
- var import_typeorm35 = require("typeorm");
4186
+ var import_typeorm34 = require("typeorm");
4209
4187
  var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
4210
4188
  RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
4211
4189
  RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
@@ -4214,31 +4192,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
4214
4192
  var Rating = class extends BaseEntity {
4215
4193
  };
4216
4194
  __decorateClass([
4217
- (0, import_typeorm35.Column)({ name: "reviewer_id", type: "integer" }),
4218
- (0, import_typeorm35.Index)()
4195
+ (0, import_typeorm34.Column)({ name: "reviewer_id", type: "integer" }),
4196
+ (0, import_typeorm34.Index)()
4219
4197
  ], Rating.prototype, "reviewerId", 2);
4220
4198
  __decorateClass([
4221
- (0, import_typeorm35.ManyToOne)(() => User, { onDelete: "CASCADE" }),
4222
- (0, import_typeorm35.JoinColumn)({ name: "reviewer_id" })
4199
+ (0, import_typeorm34.ManyToOne)(() => User, { onDelete: "CASCADE" }),
4200
+ (0, import_typeorm34.JoinColumn)({ name: "reviewer_id" })
4223
4201
  ], Rating.prototype, "reviewer", 2);
4224
4202
  __decorateClass([
4225
- (0, import_typeorm35.Column)({ name: "reviewee_id", type: "integer" }),
4226
- (0, import_typeorm35.Index)()
4203
+ (0, import_typeorm34.Column)({ name: "reviewee_id", type: "integer" }),
4204
+ (0, import_typeorm34.Index)()
4227
4205
  ], Rating.prototype, "revieweeId", 2);
4228
4206
  __decorateClass([
4229
- (0, import_typeorm35.ManyToOne)(() => User, { onDelete: "CASCADE" }),
4230
- (0, import_typeorm35.JoinColumn)({ name: "reviewee_id" })
4207
+ (0, import_typeorm34.ManyToOne)(() => User, { onDelete: "CASCADE" }),
4208
+ (0, import_typeorm34.JoinColumn)({ name: "reviewee_id" })
4231
4209
  ], Rating.prototype, "reviewee", 2);
4232
4210
  __decorateClass([
4233
- (0, import_typeorm35.Column)({ name: "job_id", type: "integer" }),
4234
- (0, import_typeorm35.Index)()
4211
+ (0, import_typeorm34.Column)({ name: "job_id", type: "integer" }),
4212
+ (0, import_typeorm34.Index)()
4235
4213
  ], Rating.prototype, "jobId", 2);
4236
4214
  __decorateClass([
4237
- (0, import_typeorm35.ManyToOne)(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
4238
- (0, import_typeorm35.JoinColumn)({ name: "job_id" })
4215
+ (0, import_typeorm34.ManyToOne)(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
4216
+ (0, import_typeorm34.JoinColumn)({ name: "job_id" })
4239
4217
  ], Rating.prototype, "job", 2);
4240
4218
  __decorateClass([
4241
- (0, import_typeorm35.Column)({
4219
+ (0, import_typeorm34.Column)({
4242
4220
  name: "rating_type",
4243
4221
  type: "enum",
4244
4222
  enum: RatingTypeEnum,
@@ -4246,67 +4224,67 @@ __decorateClass([
4246
4224
  })
4247
4225
  ], Rating.prototype, "ratingType", 2);
4248
4226
  __decorateClass([
4249
- (0, import_typeorm35.Column)({ name: "reviewer_comment", type: "text", nullable: true })
4227
+ (0, import_typeorm34.Column)({ name: "reviewer_comment", type: "text", nullable: true })
4250
4228
  ], Rating.prototype, "reviewerComment", 2);
4251
4229
  __decorateClass([
4252
- (0, import_typeorm35.Column)({
4230
+ (0, import_typeorm34.Column)({
4253
4231
  name: "overall_experience",
4254
4232
  type: "float",
4255
4233
  default: 0
4256
4234
  })
4257
4235
  ], Rating.prototype, "overAllExperience", 2);
4258
4236
  __decorateClass([
4259
- (0, import_typeorm35.Column)({
4237
+ (0, import_typeorm34.Column)({
4260
4238
  name: "work_quality",
4261
4239
  type: "float",
4262
4240
  default: 0
4263
4241
  })
4264
4242
  ], Rating.prototype, "workQuality", 2);
4265
4243
  __decorateClass([
4266
- (0, import_typeorm35.Column)({
4244
+ (0, import_typeorm34.Column)({
4267
4245
  name: "one_time_delivery",
4268
4246
  type: "float",
4269
4247
  default: 0
4270
4248
  })
4271
4249
  ], Rating.prototype, "oneTimeDelivery", 2);
4272
4250
  __decorateClass([
4273
- (0, import_typeorm35.Column)({
4251
+ (0, import_typeorm34.Column)({
4274
4252
  name: "understaning",
4275
4253
  type: "float",
4276
4254
  default: 0
4277
4255
  })
4278
4256
  ], Rating.prototype, "understaning", 2);
4279
4257
  __decorateClass([
4280
- (0, import_typeorm35.Column)({
4258
+ (0, import_typeorm34.Column)({
4281
4259
  name: "communication",
4282
4260
  type: "float",
4283
4261
  default: 0
4284
4262
  })
4285
4263
  ], Rating.prototype, "communication", 2);
4286
4264
  __decorateClass([
4287
- (0, import_typeorm35.Column)({
4265
+ (0, import_typeorm34.Column)({
4288
4266
  name: "skill_utilized",
4289
4267
  type: "float",
4290
4268
  default: 0
4291
4269
  })
4292
4270
  ], Rating.prototype, "skillUtilized", 2);
4293
4271
  __decorateClass([
4294
- (0, import_typeorm35.Column)({ name: "communication_clarity", type: "float", default: 0 })
4272
+ (0, import_typeorm34.Column)({ name: "communication_clarity", type: "float", default: 0 })
4295
4273
  ], Rating.prototype, "communicationClarity", 2);
4296
4274
  __decorateClass([
4297
- (0, import_typeorm35.Column)({ name: "requirements_clarity", type: "float", default: 0 })
4275
+ (0, import_typeorm34.Column)({ name: "requirements_clarity", type: "float", default: 0 })
4298
4276
  ], Rating.prototype, "requirementsClarity", 2);
4299
4277
  __decorateClass([
4300
- (0, import_typeorm35.Column)({ name: "responsiveness", type: "float", default: 0 })
4278
+ (0, import_typeorm34.Column)({ name: "responsiveness", type: "float", default: 0 })
4301
4279
  ], Rating.prototype, "responsiveness", 2);
4302
4280
  __decorateClass([
4303
- (0, import_typeorm35.Column)({ name: "payment_promptness", type: "float", default: 0 })
4281
+ (0, import_typeorm34.Column)({ name: "payment_promptness", type: "float", default: 0 })
4304
4282
  ], Rating.prototype, "paymentPromptness", 2);
4305
4283
  __decorateClass([
4306
- (0, import_typeorm35.Column)({ name: "responsibilities_and_expectations", type: "float", default: 0 })
4284
+ (0, import_typeorm34.Column)({ name: "responsibilities_and_expectations", type: "float", default: 0 })
4307
4285
  ], Rating.prototype, "responsibilitiesAndExpectations", 2);
4308
4286
  Rating = __decorateClass([
4309
- (0, import_typeorm35.Entity)("ratings")
4287
+ (0, import_typeorm34.Entity)("ratings")
4310
4288
  ], Rating);
4311
4289
 
4312
4290
  // src/entities/job.entity.ts
@@ -4361,58 +4339,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
4361
4339
  var Job = class extends BaseEntity {
4362
4340
  };
4363
4341
  __decorateClass([
4364
- (0, import_typeorm36.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
4342
+ (0, import_typeorm35.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
4365
4343
  ], Job.prototype, "jobId", 2);
4366
4344
  // individual index to find jobs by user
4367
4345
  __decorateClass([
4368
- (0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
4369
- (0, import_typeorm36.Index)()
4346
+ (0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
4347
+ (0, import_typeorm35.Index)()
4370
4348
  ], Job.prototype, "userId", 2);
4371
4349
  __decorateClass([
4372
- (0, import_typeorm36.ManyToOne)(() => User, (user) => user.jobs),
4373
- (0, import_typeorm36.JoinColumn)({ name: "user_id" })
4350
+ (0, import_typeorm35.ManyToOne)(() => User, (user) => user.jobs),
4351
+ (0, import_typeorm35.JoinColumn)({ name: "user_id" })
4374
4352
  ], Job.prototype, "user", 2);
4375
4353
  __decorateClass([
4376
- (0, import_typeorm36.Column)({ name: "country_id", type: "int", nullable: true })
4354
+ (0, import_typeorm35.Column)({ name: "country_id", type: "int", nullable: true })
4377
4355
  ], Job.prototype, "countryId", 2);
4378
4356
  __decorateClass([
4379
- (0, import_typeorm36.ManyToOne)(() => Country),
4380
- (0, import_typeorm36.JoinColumn)({ name: "country_id" })
4357
+ (0, import_typeorm35.ManyToOne)(() => Country),
4358
+ (0, import_typeorm35.JoinColumn)({ name: "country_id" })
4381
4359
  ], Job.prototype, "country", 2);
4382
4360
  __decorateClass([
4383
- (0, import_typeorm36.Column)({ name: "state_id", type: "int", nullable: true })
4361
+ (0, import_typeorm35.Column)({ name: "state_id", type: "int", nullable: true })
4384
4362
  ], Job.prototype, "stateId", 2);
4385
4363
  __decorateClass([
4386
- (0, import_typeorm36.ManyToOne)(() => State),
4387
- (0, import_typeorm36.JoinColumn)({ name: "state_id" })
4364
+ (0, import_typeorm35.ManyToOne)(() => State),
4365
+ (0, import_typeorm35.JoinColumn)({ name: "state_id" })
4388
4366
  ], Job.prototype, "state", 2);
4389
4367
  __decorateClass([
4390
- (0, import_typeorm36.Column)({ name: "city_id", type: "int", nullable: true })
4368
+ (0, import_typeorm35.Column)({ name: "city_id", type: "int", nullable: true })
4391
4369
  ], Job.prototype, "cityId", 2);
4392
4370
  __decorateClass([
4393
- (0, import_typeorm36.ManyToOne)(() => City),
4394
- (0, import_typeorm36.JoinColumn)({ name: "city_id" })
4371
+ (0, import_typeorm35.ManyToOne)(() => City),
4372
+ (0, import_typeorm35.JoinColumn)({ name: "city_id" })
4395
4373
  ], Job.prototype, "city", 2);
4396
4374
  __decorateClass([
4397
- (0, import_typeorm36.Column)({ name: "job_role", type: "varchar", nullable: true })
4375
+ (0, import_typeorm35.Column)({ name: "job_role", type: "varchar", nullable: true })
4398
4376
  ], Job.prototype, "jobRole", 2);
4399
4377
  __decorateClass([
4400
- (0, import_typeorm36.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4378
+ (0, import_typeorm35.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4401
4379
  ], Job.prototype, "jobRoleCanonicalName", 2);
4402
4380
  __decorateClass([
4403
- (0, import_typeorm36.Column)({ name: "project_name", type: "varchar", nullable: true })
4381
+ (0, import_typeorm35.Column)({ name: "project_name", type: "varchar", nullable: true })
4404
4382
  ], Job.prototype, "projectName", 2);
4405
4383
  __decorateClass([
4406
- (0, import_typeorm36.Column)({ name: "note", type: "varchar", nullable: true })
4384
+ (0, import_typeorm35.Column)({ name: "note", type: "varchar", nullable: true })
4407
4385
  ], Job.prototype, "note", 2);
4408
4386
  __decorateClass([
4409
- (0, import_typeorm36.Column)({ name: "openings", type: "integer", default: 0 })
4387
+ (0, import_typeorm35.Column)({ name: "openings", type: "integer", default: 0 })
4410
4388
  ], Job.prototype, "openings", 2);
4411
4389
  __decorateClass([
4412
- (0, import_typeorm36.Column)({ name: "utilised_openings", type: "integer", default: 0 })
4390
+ (0, import_typeorm35.Column)({ name: "utilised_openings", type: "integer", default: 0 })
4413
4391
  ], Job.prototype, "utilisedOpenings", 2);
4414
4392
  __decorateClass([
4415
- (0, import_typeorm36.Column)({
4393
+ (0, import_typeorm35.Column)({
4416
4394
  name: "location",
4417
4395
  type: "enum",
4418
4396
  enum: JobLocationEnum,
@@ -4420,7 +4398,7 @@ __decorateClass([
4420
4398
  })
4421
4399
  ], Job.prototype, "location", 2);
4422
4400
  __decorateClass([
4423
- (0, import_typeorm36.Column)({
4401
+ (0, import_typeorm35.Column)({
4424
4402
  name: "type_of_employment",
4425
4403
  type: "enum",
4426
4404
  enum: TypeOfEmploymentEnum,
@@ -4428,7 +4406,7 @@ __decorateClass([
4428
4406
  })
4429
4407
  ], Job.prototype, "typeOfEmployment", 2);
4430
4408
  __decorateClass([
4431
- (0, import_typeorm36.Column)({
4409
+ (0, import_typeorm35.Column)({
4432
4410
  name: "billing_cycle",
4433
4411
  type: "enum",
4434
4412
  enum: BillingCycleEnum,
@@ -4436,10 +4414,10 @@ __decorateClass([
4436
4414
  })
4437
4415
  ], Job.prototype, "billingCycle", 2);
4438
4416
  __decorateClass([
4439
- (0, import_typeorm36.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4417
+ (0, import_typeorm35.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4440
4418
  ], Job.prototype, "academicQualification", 2);
4441
4419
  __decorateClass([
4442
- (0, import_typeorm36.Column)({
4420
+ (0, import_typeorm35.Column)({
4443
4421
  name: "type_of_experience",
4444
4422
  type: "enum",
4445
4423
  enum: typeOfExperienceEnum,
@@ -4447,22 +4425,22 @@ __decorateClass([
4447
4425
  })
4448
4426
  ], Job.prototype, "typeOfExperience", 2);
4449
4427
  __decorateClass([
4450
- (0, import_typeorm36.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
4428
+ (0, import_typeorm35.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
4451
4429
  ], Job.prototype, "yearsOfExperience", 2);
4452
4430
  __decorateClass([
4453
- (0, import_typeorm36.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
4431
+ (0, import_typeorm35.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
4454
4432
  ], Job.prototype, "yearsOfExperienceFrom", 2);
4455
4433
  __decorateClass([
4456
- (0, import_typeorm36.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
4434
+ (0, import_typeorm35.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
4457
4435
  ], Job.prototype, "yearsOfExperienceTo", 2);
4458
4436
  __decorateClass([
4459
- (0, import_typeorm36.Column)({ name: "business_industry", type: "varchar", nullable: true })
4437
+ (0, import_typeorm35.Column)({ name: "business_industry", type: "varchar", nullable: true })
4460
4438
  ], Job.prototype, "businessIndustry", 2);
4461
4439
  __decorateClass([
4462
- (0, import_typeorm36.Column)({ name: "currency", type: "varchar", default: "USD" })
4440
+ (0, import_typeorm35.Column)({ name: "currency", type: "varchar", default: "USD" })
4463
4441
  ], Job.prototype, "currency", 2);
4464
4442
  __decorateClass([
4465
- (0, import_typeorm36.Column)({
4443
+ (0, import_typeorm35.Column)({
4466
4444
  name: "expected_salary_from",
4467
4445
  type: "decimal",
4468
4446
  precision: 10,
@@ -4471,14 +4449,14 @@ __decorateClass([
4471
4449
  })
4472
4450
  ], Job.prototype, "expectedSalaryFrom", 2);
4473
4451
  __decorateClass([
4474
- (0, import_typeorm36.Column)({
4452
+ (0, import_typeorm35.Column)({
4475
4453
  name: "hide_expected_salary_from",
4476
4454
  type: "boolean",
4477
4455
  default: false
4478
4456
  })
4479
4457
  ], Job.prototype, "hideExpectedSalaryFrom", 2);
4480
4458
  __decorateClass([
4481
- (0, import_typeorm36.Column)({
4459
+ (0, import_typeorm35.Column)({
4482
4460
  name: "expected_salary_to",
4483
4461
  type: "decimal",
4484
4462
  precision: 10,
@@ -4487,14 +4465,14 @@ __decorateClass([
4487
4465
  })
4488
4466
  ], Job.prototype, "expectedSalaryTo", 2);
4489
4467
  __decorateClass([
4490
- (0, import_typeorm36.Column)({
4468
+ (0, import_typeorm35.Column)({
4491
4469
  name: "hide_expected_salary_to",
4492
4470
  type: "boolean",
4493
4471
  default: false
4494
4472
  })
4495
4473
  ], Job.prototype, "hideExpectedSalaryTo", 2);
4496
4474
  __decorateClass([
4497
- (0, import_typeorm36.Column)({
4475
+ (0, import_typeorm35.Column)({
4498
4476
  name: "expected_annual_budget_from",
4499
4477
  type: "decimal",
4500
4478
  precision: 10,
@@ -4503,14 +4481,14 @@ __decorateClass([
4503
4481
  })
4504
4482
  ], Job.prototype, "expectedAnnualBudgetFrom", 2);
4505
4483
  __decorateClass([
4506
- (0, import_typeorm36.Column)({
4484
+ (0, import_typeorm35.Column)({
4507
4485
  name: "hide_expected_annual_budget_from",
4508
4486
  type: "boolean",
4509
4487
  default: false
4510
4488
  })
4511
4489
  ], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
4512
4490
  __decorateClass([
4513
- (0, import_typeorm36.Column)({
4491
+ (0, import_typeorm35.Column)({
4514
4492
  name: "expected_annual_budget_to",
4515
4493
  type: "decimal",
4516
4494
  precision: 10,
@@ -4519,32 +4497,32 @@ __decorateClass([
4519
4497
  })
4520
4498
  ], Job.prototype, "expectedAnnualBudgetTo", 2);
4521
4499
  __decorateClass([
4522
- (0, import_typeorm36.Column)({
4500
+ (0, import_typeorm35.Column)({
4523
4501
  name: "hide_expected_annual_budget_to",
4524
4502
  type: "boolean",
4525
4503
  default: false
4526
4504
  })
4527
4505
  ], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
4528
4506
  __decorateClass([
4529
- (0, import_typeorm36.Column)({ name: "years", type: "varchar", nullable: true })
4507
+ (0, import_typeorm35.Column)({ name: "years", type: "varchar", nullable: true })
4530
4508
  ], Job.prototype, "years", 2);
4531
4509
  __decorateClass([
4532
- (0, import_typeorm36.Column)({ name: "months", type: "varchar", nullable: true })
4510
+ (0, import_typeorm35.Column)({ name: "months", type: "varchar", nullable: true })
4533
4511
  ], Job.prototype, "months", 2);
4534
4512
  __decorateClass([
4535
- (0, import_typeorm36.Column)({ name: "weeks", type: "varchar", nullable: true })
4513
+ (0, import_typeorm35.Column)({ name: "weeks", type: "varchar", nullable: true })
4536
4514
  ], Job.prototype, "weeks", 2);
4537
4515
  __decorateClass([
4538
- (0, import_typeorm36.Column)({ name: "days", type: "varchar", nullable: true })
4516
+ (0, import_typeorm35.Column)({ name: "days", type: "varchar", nullable: true })
4539
4517
  ], Job.prototype, "days", 2);
4540
4518
  __decorateClass([
4541
- (0, import_typeorm36.Column)({ name: "tentative_start_date", type: "date", nullable: true })
4519
+ (0, import_typeorm35.Column)({ name: "tentative_start_date", type: "date", nullable: true })
4542
4520
  ], Job.prototype, "tentativeStartDate", 2);
4543
4521
  __decorateClass([
4544
- (0, import_typeorm36.Column)({ name: "tentative_end_date", type: "date", nullable: true })
4522
+ (0, import_typeorm35.Column)({ name: "tentative_end_date", type: "date", nullable: true })
4545
4523
  ], Job.prototype, "tentativeEndDate", 2);
4546
4524
  __decorateClass([
4547
- (0, import_typeorm36.Column)({
4525
+ (0, import_typeorm35.Column)({
4548
4526
  name: "duration_type",
4549
4527
  type: "enum",
4550
4528
  enum: DurationTypeEnum,
@@ -4552,10 +4530,10 @@ __decorateClass([
4552
4530
  })
4553
4531
  ], Job.prototype, "durationType", 2);
4554
4532
  __decorateClass([
4555
- (0, import_typeorm36.Column)({ name: "duration", type: "varchar", nullable: true })
4533
+ (0, import_typeorm35.Column)({ name: "duration", type: "varchar", nullable: true })
4556
4534
  ], Job.prototype, "duration", 2);
4557
4535
  __decorateClass([
4558
- (0, import_typeorm36.Column)({
4536
+ (0, import_typeorm35.Column)({
4559
4537
  name: "number_of_hours",
4560
4538
  type: "decimal",
4561
4539
  precision: 4,
@@ -4564,13 +4542,13 @@ __decorateClass([
4564
4542
  })
4565
4543
  ], Job.prototype, "numberOfHours", 2);
4566
4544
  __decorateClass([
4567
- (0, import_typeorm36.Column)({ name: "description", type: "varchar", nullable: true })
4545
+ (0, import_typeorm35.Column)({ name: "description", type: "varchar", nullable: true })
4568
4546
  ], Job.prototype, "description", 2);
4569
4547
  __decorateClass([
4570
- (0, import_typeorm36.Column)({ name: "additional_comment", type: "varchar", nullable: true })
4548
+ (0, import_typeorm35.Column)({ name: "additional_comment", type: "varchar", nullable: true })
4571
4549
  ], Job.prototype, "additionalComment", 2);
4572
4550
  __decorateClass([
4573
- (0, import_typeorm36.Column)({
4551
+ (0, import_typeorm35.Column)({
4574
4552
  name: "onboarding_tat",
4575
4553
  type: "varchar",
4576
4554
  length: 50,
@@ -4578,14 +4556,14 @@ __decorateClass([
4578
4556
  })
4579
4557
  ], Job.prototype, "onboardingTat", 2);
4580
4558
  __decorateClass([
4581
- (0, import_typeorm36.Column)({
4559
+ (0, import_typeorm35.Column)({
4582
4560
  name: "candidate_communication_skills",
4583
4561
  type: "varchar",
4584
4562
  nullable: true
4585
4563
  })
4586
4564
  ], Job.prototype, "candidateCommunicationSkills", 2);
4587
4565
  __decorateClass([
4588
- (0, import_typeorm36.Column)({
4566
+ (0, import_typeorm35.Column)({
4589
4567
  name: "step_completed",
4590
4568
  type: "enum",
4591
4569
  enum: Step,
@@ -4593,7 +4571,7 @@ __decorateClass([
4593
4571
  })
4594
4572
  ], Job.prototype, "stepCompleted", 2);
4595
4573
  __decorateClass([
4596
- (0, import_typeorm36.Column)({
4574
+ (0, import_typeorm35.Column)({
4597
4575
  name: "status",
4598
4576
  type: "enum",
4599
4577
  enum: JobStatusEnum,
@@ -4601,43 +4579,43 @@ __decorateClass([
4601
4579
  })
4602
4580
  ], Job.prototype, "status", 2);
4603
4581
  __decorateClass([
4604
- (0, import_typeorm36.Column)({ name: "viewed_count", type: "integer", default: 0 })
4582
+ (0, import_typeorm35.Column)({ name: "viewed_count", type: "integer", default: 0 })
4605
4583
  ], Job.prototype, "viewedCount", 2);
4606
4584
  __decorateClass([
4607
- (0, import_typeorm36.Column)({ name: "application_count", type: "integer", default: 0 })
4585
+ (0, import_typeorm35.Column)({ name: "application_count", type: "integer", default: 0 })
4608
4586
  ], Job.prototype, "applicationCount", 2);
4609
4587
  __decorateClass([
4610
- (0, import_typeorm36.Column)({ name: "is_contract_signed", type: "boolean", default: false })
4588
+ (0, import_typeorm35.Column)({ name: "is_contract_signed", type: "boolean", default: false })
4611
4589
  ], Job.prototype, "isContractSigned", 2);
4612
4590
  __decorateClass([
4613
- (0, import_typeorm36.Column)({ name: "is_interview_created", type: "boolean", default: false })
4591
+ (0, import_typeorm35.Column)({ name: "is_interview_created", type: "boolean", default: false })
4614
4592
  ], Job.prototype, "isInterviewCreated", 2);
4615
4593
  __decorateClass([
4616
- (0, import_typeorm36.Column)({ name: "is_job_created_via_ai", type: "boolean", default: false })
4594
+ (0, import_typeorm35.Column)({ name: "is_job_created_via_ai", type: "boolean", default: false })
4617
4595
  ], Job.prototype, "isJobCreatedViaAI", 2);
4618
4596
  __decorateClass([
4619
- (0, import_typeorm36.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4597
+ (0, import_typeorm35.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4620
4598
  ], Job.prototype, "interviewInvites", 2);
4621
4599
  __decorateClass([
4622
- (0, import_typeorm36.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4600
+ (0, import_typeorm35.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4623
4601
  ], Job.prototype, "jobSkills", 2);
4624
4602
  __decorateClass([
4625
- (0, import_typeorm36.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
4603
+ (0, import_typeorm35.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
4626
4604
  cascade: true
4627
4605
  })
4628
4606
  ], Job.prototype, "jobApplications", 2);
4629
4607
  __decorateClass([
4630
- (0, import_typeorm36.OneToMany)(() => Interview, (interview) => interview.job, {
4608
+ (0, import_typeorm35.OneToMany)(() => Interview, (interview) => interview.job, {
4631
4609
  cascade: true
4632
4610
  })
4633
4611
  ], Job.prototype, "interviews", 2);
4634
4612
  __decorateClass([
4635
- (0, import_typeorm36.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4613
+ (0, import_typeorm35.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4636
4614
  cascade: true
4637
4615
  })
4638
4616
  ], Job.prototype, "f2fInterviews", 2);
4639
4617
  __decorateClass([
4640
- (0, import_typeorm36.OneToMany)(
4618
+ (0, import_typeorm35.OneToMany)(
4641
4619
  () => JobRecommendation,
4642
4620
  (jobRecommendation) => jobRecommendation.job,
4643
4621
  {
@@ -4646,59 +4624,59 @@ __decorateClass([
4646
4624
  )
4647
4625
  ], Job.prototype, "recommendations", 2);
4648
4626
  __decorateClass([
4649
- (0, import_typeorm36.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.job, {
4627
+ (0, import_typeorm35.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.job, {
4650
4628
  cascade: true
4651
4629
  })
4652
4630
  ], Job.prototype, "contractSummaries", 2);
4653
4631
  __decorateClass([
4654
- (0, import_typeorm36.OneToMany)(() => Contract, (contract) => contract.job, {
4632
+ (0, import_typeorm35.OneToMany)(() => Contract, (contract) => contract.job, {
4655
4633
  cascade: true
4656
4634
  })
4657
4635
  ], Job.prototype, "contracts", 2);
4658
4636
  __decorateClass([
4659
- (0, import_typeorm36.OneToMany)(() => Hiring, (hiring) => hiring.job, {
4637
+ (0, import_typeorm35.OneToMany)(() => Hiring, (hiring) => hiring.job, {
4660
4638
  cascade: true
4661
4639
  })
4662
4640
  ], Job.prototype, "hirings", 2);
4663
4641
  __decorateClass([
4664
- (0, import_typeorm36.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
4642
+ (0, import_typeorm35.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
4665
4643
  cascade: true
4666
4644
  })
4667
4645
  ], Job.prototype, "escrowWallets", 2);
4668
4646
  __decorateClass([
4669
- (0, import_typeorm36.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
4647
+ (0, import_typeorm35.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
4670
4648
  cascade: true
4671
4649
  })
4672
4650
  ], Job.prototype, "timesheets", 2);
4673
4651
  __decorateClass([
4674
- (0, import_typeorm36.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4652
+ (0, import_typeorm35.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4675
4653
  cascade: true
4676
4654
  })
4677
4655
  ], Job.prototype, "timesheetLine", 2);
4678
4656
  __decorateClass([
4679
- (0, import_typeorm36.OneToMany)(() => Invoice, (invoice) => invoice.job, {
4657
+ (0, import_typeorm35.OneToMany)(() => Invoice, (invoice) => invoice.job, {
4680
4658
  cascade: true
4681
4659
  })
4682
4660
  ], Job.prototype, "invoice", 2);
4683
4661
  __decorateClass([
4684
- (0, import_typeorm36.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
4662
+ (0, import_typeorm35.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
4685
4663
  ], Job.prototype, "clientCandidatePreferences", 2);
4686
4664
  __decorateClass([
4687
- (0, import_typeorm36.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
4665
+ (0, import_typeorm35.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
4688
4666
  cascade: true
4689
4667
  })
4690
4668
  ], Job.prototype, "jobLocations", 2);
4691
4669
  __decorateClass([
4692
- (0, import_typeorm36.OneToMany)(() => Rating, (rating) => rating.job, {
4670
+ (0, import_typeorm35.OneToMany)(() => Rating, (rating) => rating.job, {
4693
4671
  cascade: true
4694
4672
  })
4695
4673
  ], Job.prototype, "ratings", 2);
4696
4674
  Job = __decorateClass([
4697
- (0, import_typeorm36.Entity)("jobs")
4675
+ (0, import_typeorm35.Entity)("jobs")
4698
4676
  ], Job);
4699
4677
 
4700
4678
  // src/entities/bank-details.entity.ts
4701
- var import_typeorm37 = require("typeorm");
4679
+ var import_typeorm36 = require("typeorm");
4702
4680
  var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
4703
4681
  BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
4704
4682
  BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
@@ -4713,51 +4691,51 @@ var BankDetail = class extends BaseEntity {
4713
4691
  };
4714
4692
  // individual index to find bank details by user
4715
4693
  __decorateClass([
4716
- (0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
4717
- (0, import_typeorm37.Index)()
4694
+ (0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
4695
+ (0, import_typeorm36.Index)()
4718
4696
  ], BankDetail.prototype, "userId", 2);
4719
4697
  __decorateClass([
4720
- (0, import_typeorm37.ManyToOne)(() => User, (user) => user.bankDetail),
4721
- (0, import_typeorm37.JoinColumn)({ name: "user_id" })
4698
+ (0, import_typeorm36.ManyToOne)(() => User, (user) => user.bankDetail),
4699
+ (0, import_typeorm36.JoinColumn)({ name: "user_id" })
4722
4700
  ], BankDetail.prototype, "user", 2);
4723
4701
  __decorateClass([
4724
- (0, import_typeorm37.Column)({ name: "name", type: "varchar", nullable: true })
4702
+ (0, import_typeorm36.Column)({ name: "name", type: "varchar", nullable: true })
4725
4703
  ], BankDetail.prototype, "name", 2);
4726
4704
  __decorateClass([
4727
- (0, import_typeorm37.Column)({ name: "mobile_code", type: "varchar", nullable: true })
4705
+ (0, import_typeorm36.Column)({ name: "mobile_code", type: "varchar", nullable: true })
4728
4706
  ], BankDetail.prototype, "mobileCode", 2);
4729
4707
  __decorateClass([
4730
- (0, import_typeorm37.Column)({ name: "mobile", type: "varchar", nullable: true })
4708
+ (0, import_typeorm36.Column)({ name: "mobile", type: "varchar", nullable: true })
4731
4709
  ], BankDetail.prototype, "mobile", 2);
4732
4710
  __decorateClass([
4733
- (0, import_typeorm37.Column)({ name: "email", type: "varchar" })
4711
+ (0, import_typeorm36.Column)({ name: "email", type: "varchar" })
4734
4712
  ], BankDetail.prototype, "email", 2);
4735
4713
  __decorateClass([
4736
- (0, import_typeorm37.Column)({ name: "address", type: "varchar", nullable: true })
4714
+ (0, import_typeorm36.Column)({ name: "address", type: "varchar", nullable: true })
4737
4715
  ], BankDetail.prototype, "address", 2);
4738
4716
  __decorateClass([
4739
- (0, import_typeorm37.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
4717
+ (0, import_typeorm36.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
4740
4718
  ], BankDetail.prototype, "accountNumber", 2);
4741
4719
  __decorateClass([
4742
- (0, import_typeorm37.Column)({ name: "bank_name", type: "varchar", nullable: true })
4720
+ (0, import_typeorm36.Column)({ name: "bank_name", type: "varchar", nullable: true })
4743
4721
  ], BankDetail.prototype, "bankName", 2);
4744
4722
  __decorateClass([
4745
- (0, import_typeorm37.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
4723
+ (0, import_typeorm36.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
4746
4724
  ], BankDetail.prototype, "ifscCode", 2);
4747
4725
  __decorateClass([
4748
- (0, import_typeorm37.Column)({ name: "branch_name", type: "varchar", nullable: true })
4726
+ (0, import_typeorm36.Column)({ name: "branch_name", type: "varchar", nullable: true })
4749
4727
  ], BankDetail.prototype, "branchName", 2);
4750
4728
  __decorateClass([
4751
- (0, import_typeorm37.Column)({ name: "routing_no", type: "varchar", nullable: true })
4729
+ (0, import_typeorm36.Column)({ name: "routing_no", type: "varchar", nullable: true })
4752
4730
  ], BankDetail.prototype, "routingNo", 2);
4753
4731
  __decorateClass([
4754
- (0, import_typeorm37.Column)({ name: "aba_no", type: "varchar", nullable: true })
4732
+ (0, import_typeorm36.Column)({ name: "aba_no", type: "varchar", nullable: true })
4755
4733
  ], BankDetail.prototype, "abaNumber", 2);
4756
4734
  __decorateClass([
4757
- (0, import_typeorm37.Column)({ name: "iban", type: "varchar", nullable: true })
4735
+ (0, import_typeorm36.Column)({ name: "iban", type: "varchar", nullable: true })
4758
4736
  ], BankDetail.prototype, "iban", 2);
4759
4737
  __decorateClass([
4760
- (0, import_typeorm37.Column)({
4738
+ (0, import_typeorm36.Column)({
4761
4739
  name: "account_type",
4762
4740
  type: "enum",
4763
4741
  enum: BankAccountTypeEnum,
@@ -4765,7 +4743,7 @@ __decorateClass([
4765
4743
  })
4766
4744
  ], BankDetail.prototype, "accountType", 2);
4767
4745
  __decorateClass([
4768
- (0, import_typeorm37.Column)({
4746
+ (0, import_typeorm36.Column)({
4769
4747
  name: "account_scope",
4770
4748
  type: "enum",
4771
4749
  enum: BankAccountScopeEnum,
@@ -4773,150 +4751,150 @@ __decorateClass([
4773
4751
  })
4774
4752
  ], BankDetail.prototype, "accountScope", 2);
4775
4753
  BankDetail = __decorateClass([
4776
- (0, import_typeorm37.Entity)("bank_details")
4754
+ (0, import_typeorm36.Entity)("bank_details")
4777
4755
  ], BankDetail);
4778
4756
 
4779
4757
  // src/entities/system-preference.entity.ts
4780
- var import_typeorm38 = require("typeorm");
4758
+ var import_typeorm37 = require("typeorm");
4781
4759
  var SystemPreference = class extends BaseEntity {
4782
4760
  };
4783
4761
  // individual index to find system preference by user
4784
4762
  __decorateClass([
4785
- (0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
4786
- (0, import_typeorm38.Index)()
4763
+ (0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
4764
+ (0, import_typeorm37.Index)()
4787
4765
  ], SystemPreference.prototype, "userId", 2);
4788
4766
  __decorateClass([
4789
- (0, import_typeorm38.ManyToOne)(() => User, (user) => user.systemPreference),
4790
- (0, import_typeorm38.JoinColumn)({ name: "user_id" })
4767
+ (0, import_typeorm37.ManyToOne)(() => User, (user) => user.systemPreference),
4768
+ (0, import_typeorm37.JoinColumn)({ name: "user_id" })
4791
4769
  ], SystemPreference.prototype, "user", 2);
4792
4770
  __decorateClass([
4793
- (0, import_typeorm38.Column)({ name: "key", type: "varchar", nullable: false })
4771
+ (0, import_typeorm37.Column)({ name: "key", type: "varchar", nullable: false })
4794
4772
  ], SystemPreference.prototype, "key", 2);
4795
4773
  __decorateClass([
4796
- (0, import_typeorm38.Column)({ name: "value", type: "boolean", default: false })
4774
+ (0, import_typeorm37.Column)({ name: "value", type: "boolean", default: false })
4797
4775
  ], SystemPreference.prototype, "value", 2);
4798
4776
  SystemPreference = __decorateClass([
4799
- (0, import_typeorm38.Entity)("system_preferences")
4777
+ (0, import_typeorm37.Entity)("system_preferences")
4800
4778
  ], SystemPreference);
4801
4779
 
4802
4780
  // src/entities/freelancer-experience.entity.ts
4803
- var import_typeorm39 = require("typeorm");
4781
+ var import_typeorm38 = require("typeorm");
4804
4782
  var FreelancerExperience = class extends BaseEntity {
4805
4783
  };
4806
4784
  // individual index to find experence by user
4807
4785
  __decorateClass([
4808
- (0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
4809
- (0, import_typeorm39.Index)()
4786
+ (0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
4787
+ (0, import_typeorm38.Index)()
4810
4788
  ], FreelancerExperience.prototype, "userId", 2);
4811
4789
  __decorateClass([
4812
- (0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerExperience),
4813
- (0, import_typeorm39.JoinColumn)({ name: "user_id" })
4790
+ (0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerExperience),
4791
+ (0, import_typeorm38.JoinColumn)({ name: "user_id" })
4814
4792
  ], FreelancerExperience.prototype, "user", 2);
4815
4793
  __decorateClass([
4816
- (0, import_typeorm39.Column)({ name: "company_name", type: "varchar", nullable: true })
4794
+ (0, import_typeorm38.Column)({ name: "company_name", type: "varchar", nullable: true })
4817
4795
  ], FreelancerExperience.prototype, "companyName", 2);
4818
4796
  __decorateClass([
4819
- (0, import_typeorm39.Column)({ name: "designation", type: "varchar", nullable: true })
4797
+ (0, import_typeorm38.Column)({ name: "designation", type: "varchar", nullable: true })
4820
4798
  ], FreelancerExperience.prototype, "designation", 2);
4821
4799
  __decorateClass([
4822
- (0, import_typeorm39.Column)({ name: "job_duration", type: "varchar", nullable: true })
4800
+ (0, import_typeorm38.Column)({ name: "job_duration", type: "varchar", nullable: true })
4823
4801
  ], FreelancerExperience.prototype, "jobDuration", 2);
4824
4802
  __decorateClass([
4825
- (0, import_typeorm39.Column)({ name: "description", type: "varchar", nullable: true })
4803
+ (0, import_typeorm38.Column)({ name: "description", type: "varchar", nullable: true })
4826
4804
  ], FreelancerExperience.prototype, "description", 2);
4827
4805
  FreelancerExperience = __decorateClass([
4828
- (0, import_typeorm39.Entity)("freelancer_experiences")
4806
+ (0, import_typeorm38.Entity)("freelancer_experiences")
4829
4807
  ], FreelancerExperience);
4830
4808
 
4831
4809
  // src/entities/freelancer-education.entity.ts
4832
- var import_typeorm40 = require("typeorm");
4810
+ var import_typeorm39 = require("typeorm");
4833
4811
  var FreelancerEducation = class extends BaseEntity {
4834
4812
  };
4835
4813
  // individual index to find education by user
4836
4814
  __decorateClass([
4837
- (0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
4838
- (0, import_typeorm40.Index)()
4815
+ (0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
4816
+ (0, import_typeorm39.Index)()
4839
4817
  ], FreelancerEducation.prototype, "userId", 2);
4840
4818
  __decorateClass([
4841
- (0, import_typeorm40.ManyToOne)(() => User, (user) => user.freelancerEducation),
4842
- (0, import_typeorm40.JoinColumn)({ name: "user_id" })
4819
+ (0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerEducation),
4820
+ (0, import_typeorm39.JoinColumn)({ name: "user_id" })
4843
4821
  ], FreelancerEducation.prototype, "user", 2);
4844
4822
  __decorateClass([
4845
- (0, import_typeorm40.Column)({ name: "degree", type: "varchar", nullable: true })
4823
+ (0, import_typeorm39.Column)({ name: "degree", type: "varchar", nullable: true })
4846
4824
  ], FreelancerEducation.prototype, "degree", 2);
4847
4825
  __decorateClass([
4848
- (0, import_typeorm40.Column)({ name: "university", type: "varchar", nullable: true })
4826
+ (0, import_typeorm39.Column)({ name: "university", type: "varchar", nullable: true })
4849
4827
  ], FreelancerEducation.prototype, "university", 2);
4850
4828
  __decorateClass([
4851
- (0, import_typeorm40.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
4829
+ (0, import_typeorm39.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
4852
4830
  ], FreelancerEducation.prototype, "yearOfGraduation", 2);
4853
4831
  FreelancerEducation = __decorateClass([
4854
- (0, import_typeorm40.Entity)("freelancer_educations")
4832
+ (0, import_typeorm39.Entity)("freelancer_educations")
4855
4833
  ], FreelancerEducation);
4856
4834
 
4857
4835
  // src/entities/freelancer-project.entity.ts
4858
- var import_typeorm41 = require("typeorm");
4836
+ var import_typeorm40 = require("typeorm");
4859
4837
  var FreelancerProject = class extends BaseEntity {
4860
4838
  };
4861
4839
  // individual index to find project by user
4862
4840
  __decorateClass([
4863
- (0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
4864
- (0, import_typeorm41.Index)()
4841
+ (0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
4842
+ (0, import_typeorm40.Index)()
4865
4843
  ], FreelancerProject.prototype, "userId", 2);
4866
4844
  __decorateClass([
4867
- (0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerProject),
4868
- (0, import_typeorm41.JoinColumn)({ name: "user_id" })
4845
+ (0, import_typeorm40.ManyToOne)(() => User, (user) => user.freelancerProject),
4846
+ (0, import_typeorm40.JoinColumn)({ name: "user_id" })
4869
4847
  ], FreelancerProject.prototype, "user", 2);
4870
4848
  __decorateClass([
4871
- (0, import_typeorm41.Column)({ name: "project_name", type: "varchar", nullable: true })
4849
+ (0, import_typeorm40.Column)({ name: "project_name", type: "varchar", nullable: true })
4872
4850
  ], FreelancerProject.prototype, "projectName", 2);
4873
4851
  __decorateClass([
4874
- (0, import_typeorm41.Column)({ name: "start_date", type: "date", nullable: true })
4852
+ (0, import_typeorm40.Column)({ name: "start_date", type: "date", nullable: true })
4875
4853
  ], FreelancerProject.prototype, "startDate", 2);
4876
4854
  __decorateClass([
4877
- (0, import_typeorm41.Column)({ name: "end_date", type: "date", nullable: true })
4855
+ (0, import_typeorm40.Column)({ name: "end_date", type: "date", nullable: true })
4878
4856
  ], FreelancerProject.prototype, "endDate", 2);
4879
4857
  __decorateClass([
4880
- (0, import_typeorm41.Column)({ name: "client_name", type: "varchar", nullable: true })
4858
+ (0, import_typeorm40.Column)({ name: "client_name", type: "varchar", nullable: true })
4881
4859
  ], FreelancerProject.prototype, "clientName", 2);
4882
4860
  __decorateClass([
4883
- (0, import_typeorm41.Column)({ name: "git_link", type: "varchar", nullable: true })
4861
+ (0, import_typeorm40.Column)({ name: "git_link", type: "varchar", nullable: true })
4884
4862
  ], FreelancerProject.prototype, "gitLink", 2);
4885
4863
  __decorateClass([
4886
- (0, import_typeorm41.Column)({ name: "description", type: "varchar", nullable: true })
4864
+ (0, import_typeorm40.Column)({ name: "description", type: "varchar", nullable: true })
4887
4865
  ], FreelancerProject.prototype, "description", 2);
4888
4866
  FreelancerProject = __decorateClass([
4889
- (0, import_typeorm41.Entity)("freelancer_projects")
4867
+ (0, import_typeorm40.Entity)("freelancer_projects")
4890
4868
  ], FreelancerProject);
4891
4869
 
4892
4870
  // src/entities/freelancer-casestudy.entity.ts
4893
- var import_typeorm42 = require("typeorm");
4871
+ var import_typeorm41 = require("typeorm");
4894
4872
  var FreelancerCaseStudy = class extends BaseEntity {
4895
4873
  };
4896
4874
  // individual index to find case study by user
4897
4875
  __decorateClass([
4898
- (0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
4899
- (0, import_typeorm42.Index)()
4876
+ (0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
4877
+ (0, import_typeorm41.Index)()
4900
4878
  ], FreelancerCaseStudy.prototype, "userId", 2);
4901
4879
  __decorateClass([
4902
- (0, import_typeorm42.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
4903
- (0, import_typeorm42.JoinColumn)({ name: "user_id" })
4880
+ (0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
4881
+ (0, import_typeorm41.JoinColumn)({ name: "user_id" })
4904
4882
  ], FreelancerCaseStudy.prototype, "user", 2);
4905
4883
  __decorateClass([
4906
- (0, import_typeorm42.Column)({ name: "project_name", type: "varchar", nullable: true })
4884
+ (0, import_typeorm41.Column)({ name: "project_name", type: "varchar", nullable: true })
4907
4885
  ], FreelancerCaseStudy.prototype, "projectName", 2);
4908
4886
  __decorateClass([
4909
- (0, import_typeorm42.Column)({ name: "case_study_link", type: "varchar", nullable: true })
4887
+ (0, import_typeorm41.Column)({ name: "case_study_link", type: "varchar", nullable: true })
4910
4888
  ], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
4911
4889
  __decorateClass([
4912
- (0, import_typeorm42.Column)({ name: "description", type: "varchar", nullable: true })
4890
+ (0, import_typeorm41.Column)({ name: "description", type: "varchar", nullable: true })
4913
4891
  ], FreelancerCaseStudy.prototype, "description", 2);
4914
4892
  FreelancerCaseStudy = __decorateClass([
4915
- (0, import_typeorm42.Entity)("freelancer_case_studies")
4893
+ (0, import_typeorm41.Entity)("freelancer_case_studies")
4916
4894
  ], FreelancerCaseStudy);
4917
4895
 
4918
4896
  // src/entities/freelancer-skill.entity.ts
4919
- var import_typeorm43 = require("typeorm");
4897
+ var import_typeorm42 = require("typeorm");
4920
4898
  var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
4921
4899
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
4922
4900
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
@@ -4926,18 +4904,18 @@ var FreelancerSkill = class extends BaseEntity {
4926
4904
  };
4927
4905
  // individual index to find core skills by user
4928
4906
  __decorateClass([
4929
- (0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
4930
- (0, import_typeorm43.Index)()
4907
+ (0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
4908
+ (0, import_typeorm42.Index)()
4931
4909
  ], FreelancerSkill.prototype, "userId", 2);
4932
4910
  __decorateClass([
4933
- (0, import_typeorm43.ManyToOne)(() => User, (user) => user.freelancerSkills),
4934
- (0, import_typeorm43.JoinColumn)({ name: "user_id" })
4911
+ (0, import_typeorm42.ManyToOne)(() => User, (user) => user.freelancerSkills),
4912
+ (0, import_typeorm42.JoinColumn)({ name: "user_id" })
4935
4913
  ], FreelancerSkill.prototype, "user", 2);
4936
4914
  __decorateClass([
4937
- (0, import_typeorm43.Column)({ name: "skill_name", type: "varchar", nullable: true })
4915
+ (0, import_typeorm42.Column)({ name: "skill_name", type: "varchar", nullable: true })
4938
4916
  ], FreelancerSkill.prototype, "skillName", 2);
4939
4917
  __decorateClass([
4940
- (0, import_typeorm43.Column)({
4918
+ (0, import_typeorm42.Column)({
4941
4919
  name: "skill_category",
4942
4920
  type: "smallint",
4943
4921
  default: 1,
@@ -4945,51 +4923,51 @@ __decorateClass([
4945
4923
  })
4946
4924
  ], FreelancerSkill.prototype, "skillCategory", 2);
4947
4925
  FreelancerSkill = __decorateClass([
4948
- (0, import_typeorm43.Entity)("freelancer_skills")
4926
+ (0, import_typeorm42.Entity)("freelancer_skills")
4949
4927
  ], FreelancerSkill);
4950
4928
 
4951
4929
  // src/entities/freelancer-tool.entity.ts
4952
- var import_typeorm44 = require("typeorm");
4930
+ var import_typeorm43 = require("typeorm");
4953
4931
  var FreelancerTool = class extends BaseEntity {
4954
4932
  };
4955
4933
  // individual index to find tool by user
4956
4934
  __decorateClass([
4957
- (0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
4958
- (0, import_typeorm44.Index)()
4935
+ (0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
4936
+ (0, import_typeorm43.Index)()
4959
4937
  ], FreelancerTool.prototype, "userId", 2);
4960
4938
  __decorateClass([
4961
- (0, import_typeorm44.ManyToOne)(() => User, (user) => user.freelancerTool),
4962
- (0, import_typeorm44.JoinColumn)({ name: "user_id" })
4939
+ (0, import_typeorm43.ManyToOne)(() => User, (user) => user.freelancerTool),
4940
+ (0, import_typeorm43.JoinColumn)({ name: "user_id" })
4963
4941
  ], FreelancerTool.prototype, "user", 2);
4964
4942
  __decorateClass([
4965
- (0, import_typeorm44.Column)({ name: "tool_name", type: "varchar", nullable: true })
4943
+ (0, import_typeorm43.Column)({ name: "tool_name", type: "varchar", nullable: true })
4966
4944
  ], FreelancerTool.prototype, "toolName", 2);
4967
4945
  FreelancerTool = __decorateClass([
4968
- (0, import_typeorm44.Entity)("freelancer_tools")
4946
+ (0, import_typeorm43.Entity)("freelancer_tools")
4969
4947
  ], FreelancerTool);
4970
4948
 
4971
4949
  // src/entities/freelancer-framework.entity.ts
4972
- var import_typeorm45 = require("typeorm");
4950
+ var import_typeorm44 = require("typeorm");
4973
4951
  var FreelancerFramework = class extends BaseEntity {
4974
4952
  };
4975
4953
  // individual index to find framework by user
4976
4954
  __decorateClass([
4977
- (0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
4978
- (0, import_typeorm45.Index)()
4955
+ (0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
4956
+ (0, import_typeorm44.Index)()
4979
4957
  ], FreelancerFramework.prototype, "userId", 2);
4980
4958
  __decorateClass([
4981
- (0, import_typeorm45.ManyToOne)(() => User, (user) => user.freelancerFramework),
4982
- (0, import_typeorm45.JoinColumn)({ name: "user_id" })
4959
+ (0, import_typeorm44.ManyToOne)(() => User, (user) => user.freelancerFramework),
4960
+ (0, import_typeorm44.JoinColumn)({ name: "user_id" })
4983
4961
  ], FreelancerFramework.prototype, "user", 2);
4984
4962
  __decorateClass([
4985
- (0, import_typeorm45.Column)({ name: "framework_name", type: "varchar", nullable: true })
4963
+ (0, import_typeorm44.Column)({ name: "framework_name", type: "varchar", nullable: true })
4986
4964
  ], FreelancerFramework.prototype, "frameworkName", 2);
4987
4965
  FreelancerFramework = __decorateClass([
4988
- (0, import_typeorm45.Entity)("freelancer_frameworks")
4966
+ (0, import_typeorm44.Entity)("freelancer_frameworks")
4989
4967
  ], FreelancerFramework);
4990
4968
 
4991
4969
  // src/entities/freelancer-assessment.entity.ts
4992
- var import_typeorm46 = require("typeorm");
4970
+ var import_typeorm45 = require("typeorm");
4993
4971
  var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
4994
4972
  AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
4995
4973
  AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
@@ -5006,33 +4984,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
5006
4984
  var FreelancerAssessment = class extends BaseEntity {
5007
4985
  };
5008
4986
  __decorateClass([
5009
- (0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
5010
- (0, import_typeorm46.Index)()
4987
+ (0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
4988
+ (0, import_typeorm45.Index)()
5011
4989
  ], FreelancerAssessment.prototype, "userId", 2);
5012
4990
  __decorateClass([
5013
- (0, import_typeorm46.ManyToOne)(() => User, (user) => user.assessments),
5014
- (0, import_typeorm46.JoinColumn)({ name: "user_id" })
4991
+ (0, import_typeorm45.ManyToOne)(() => User, (user) => user.assessments),
4992
+ (0, import_typeorm45.JoinColumn)({ name: "user_id" })
5015
4993
  ], FreelancerAssessment.prototype, "user", 2);
5016
4994
  __decorateClass([
5017
- (0, import_typeorm46.Column)({ name: "interview_id", type: "varchar", nullable: true })
4995
+ (0, import_typeorm45.Column)({ name: "interview_id", type: "varchar", nullable: true })
5018
4996
  ], FreelancerAssessment.prototype, "interviewId", 2);
5019
4997
  __decorateClass([
5020
- (0, import_typeorm46.Column)({ name: "interview_link", type: "text", nullable: true })
4998
+ (0, import_typeorm45.Column)({ name: "interview_link", type: "text", nullable: true })
5021
4999
  ], FreelancerAssessment.prototype, "interviewLink", 2);
5022
5000
  __decorateClass([
5023
- (0, import_typeorm46.Column)({ name: "recording_link", type: "text", nullable: true })
5001
+ (0, import_typeorm45.Column)({ name: "recording_link", type: "text", nullable: true })
5024
5002
  ], FreelancerAssessment.prototype, "recordingLink", 2);
5025
5003
  __decorateClass([
5026
- (0, import_typeorm46.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
5004
+ (0, import_typeorm45.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
5027
5005
  ], FreelancerAssessment.prototype, "iframeResponse", 2);
5028
5006
  __decorateClass([
5029
- (0, import_typeorm46.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
5007
+ (0, import_typeorm45.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
5030
5008
  ], FreelancerAssessment.prototype, "interviewSummary", 2);
5031
5009
  __decorateClass([
5032
- (0, import_typeorm46.Column)({ name: "score", type: "float", nullable: true })
5010
+ (0, import_typeorm45.Column)({ name: "score", type: "float", nullable: true })
5033
5011
  ], FreelancerAssessment.prototype, "score", 2);
5034
5012
  __decorateClass([
5035
- (0, import_typeorm46.Column)({
5013
+ (0, import_typeorm45.Column)({
5036
5014
  name: "status",
5037
5015
  type: "enum",
5038
5016
  enum: AssessmentStatusEnum,
@@ -5040,17 +5018,17 @@ __decorateClass([
5040
5018
  })
5041
5019
  ], FreelancerAssessment.prototype, "status", 2);
5042
5020
  __decorateClass([
5043
- (0, import_typeorm46.Column)({ name: "task_id", type: "varchar", nullable: true })
5021
+ (0, import_typeorm45.Column)({ name: "task_id", type: "varchar", nullable: true })
5044
5022
  ], FreelancerAssessment.prototype, "taskId", 2);
5045
5023
  __decorateClass([
5046
- (0, import_typeorm46.Column)({ name: "meta_data", type: "jsonb", nullable: true })
5024
+ (0, import_typeorm45.Column)({ name: "meta_data", type: "jsonb", nullable: true })
5047
5025
  ], FreelancerAssessment.prototype, "metaData", 2);
5048
5026
  FreelancerAssessment = __decorateClass([
5049
- (0, import_typeorm46.Entity)("freelancer_assessments")
5027
+ (0, import_typeorm45.Entity)("freelancer_assessments")
5050
5028
  ], FreelancerAssessment);
5051
5029
 
5052
5030
  // src/entities/freelancer-declaration.entity.ts
5053
- var import_typeorm47 = require("typeorm");
5031
+ var import_typeorm46 = require("typeorm");
5054
5032
  var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
5055
5033
  DocumentType2["AADHAAR"] = "AADHAAR_CARD";
5056
5034
  DocumentType2["PASSPORT"] = "PASSPORT";
@@ -5062,15 +5040,15 @@ var FreelancerDeclaration = class extends BaseEntity {
5062
5040
  };
5063
5041
  // individual index to find declaration by user
5064
5042
  __decorateClass([
5065
- (0, import_typeorm47.Column)({ name: "user_id", type: "integer", nullable: true }),
5066
- (0, import_typeorm47.Index)()
5043
+ (0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
5044
+ (0, import_typeorm46.Index)()
5067
5045
  ], FreelancerDeclaration.prototype, "userId", 2);
5068
5046
  __decorateClass([
5069
- (0, import_typeorm47.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
5070
- (0, import_typeorm47.JoinColumn)({ name: "user_id" })
5047
+ (0, import_typeorm46.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
5048
+ (0, import_typeorm46.JoinColumn)({ name: "user_id" })
5071
5049
  ], FreelancerDeclaration.prototype, "user", 2);
5072
5050
  __decorateClass([
5073
- (0, import_typeorm47.Column)({
5051
+ (0, import_typeorm46.Column)({
5074
5052
  name: "document_type",
5075
5053
  type: "enum",
5076
5054
  enum: DocumentType,
@@ -5078,144 +5056,144 @@ __decorateClass([
5078
5056
  })
5079
5057
  ], FreelancerDeclaration.prototype, "documentType", 2);
5080
5058
  __decorateClass([
5081
- (0, import_typeorm47.Column)({ name: "front_document_url", type: "varchar", nullable: true })
5059
+ (0, import_typeorm46.Column)({ name: "front_document_url", type: "varchar", nullable: true })
5082
5060
  ], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
5083
5061
  __decorateClass([
5084
- (0, import_typeorm47.Column)({ name: "back_document_url", type: "varchar", nullable: true })
5062
+ (0, import_typeorm46.Column)({ name: "back_document_url", type: "varchar", nullable: true })
5085
5063
  ], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
5086
5064
  __decorateClass([
5087
- (0, import_typeorm47.Column)({ name: "declaration_accepted", type: "boolean", default: false })
5065
+ (0, import_typeorm46.Column)({ name: "declaration_accepted", type: "boolean", default: false })
5088
5066
  ], FreelancerDeclaration.prototype, "declarationAccepted", 2);
5089
5067
  __decorateClass([
5090
- (0, import_typeorm47.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
5068
+ (0, import_typeorm46.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
5091
5069
  ], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
5092
5070
  FreelancerDeclaration = __decorateClass([
5093
- (0, import_typeorm47.Entity)("freelancer_declaration")
5071
+ (0, import_typeorm46.Entity)("freelancer_declaration")
5094
5072
  ], FreelancerDeclaration);
5095
5073
 
5096
5074
  // src/entities/company-members-roles.entity.ts
5097
- var import_typeorm51 = require("typeorm");
5075
+ var import_typeorm50 = require("typeorm");
5098
5076
 
5099
5077
  // src/entities/company-role.entity.ts
5100
- var import_typeorm50 = require("typeorm");
5078
+ var import_typeorm49 = require("typeorm");
5101
5079
 
5102
5080
  // src/entities/company-role-permission.entity.ts
5103
- var import_typeorm49 = require("typeorm");
5081
+ var import_typeorm48 = require("typeorm");
5104
5082
 
5105
5083
  // src/entities/permission.entity.ts
5106
- var import_typeorm48 = require("typeorm");
5084
+ var import_typeorm47 = require("typeorm");
5107
5085
  var Permission = class extends BaseEntity {
5108
5086
  };
5109
5087
  __decorateClass([
5110
- (0, import_typeorm48.Column)({ name: "name", type: "varchar", nullable: true })
5088
+ (0, import_typeorm47.Column)({ name: "name", type: "varchar", nullable: true })
5111
5089
  ], Permission.prototype, "name", 2);
5112
5090
  __decorateClass([
5113
- (0, import_typeorm48.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
5114
- (0, import_typeorm48.Index)()
5091
+ (0, import_typeorm47.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
5092
+ (0, import_typeorm47.Index)()
5115
5093
  ], Permission.prototype, "slug", 2);
5116
5094
  __decorateClass([
5117
- (0, import_typeorm48.Column)({ name: "description", type: "text", nullable: true })
5095
+ (0, import_typeorm47.Column)({ name: "description", type: "text", nullable: true })
5118
5096
  ], Permission.prototype, "description", 2);
5119
5097
  __decorateClass([
5120
- (0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: true })
5098
+ (0, import_typeorm47.Column)({ name: "is_active", type: "boolean", default: true })
5121
5099
  ], Permission.prototype, "isActive", 2);
5122
5100
  Permission = __decorateClass([
5123
- (0, import_typeorm48.Entity)("permissions")
5101
+ (0, import_typeorm47.Entity)("permissions")
5124
5102
  ], Permission);
5125
5103
 
5126
5104
  // src/entities/company-role-permission.entity.ts
5127
5105
  var CompanyRolePermission = class extends BaseEntity {
5128
5106
  };
5129
5107
  __decorateClass([
5130
- (0, import_typeorm49.Column)({ name: "company_role_id", type: "integer", nullable: true }),
5131
- (0, import_typeorm49.Index)()
5108
+ (0, import_typeorm48.Column)({ name: "company_role_id", type: "integer", nullable: true }),
5109
+ (0, import_typeorm48.Index)()
5132
5110
  ], CompanyRolePermission.prototype, "companyRoleId", 2);
5133
5111
  __decorateClass([
5134
- (0, import_typeorm49.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
5112
+ (0, import_typeorm48.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
5135
5113
  onDelete: "CASCADE"
5136
5114
  }),
5137
- (0, import_typeorm49.JoinColumn)({ name: "company_role_id" })
5115
+ (0, import_typeorm48.JoinColumn)({ name: "company_role_id" })
5138
5116
  ], CompanyRolePermission.prototype, "companyRole", 2);
5139
5117
  __decorateClass([
5140
- (0, import_typeorm49.Column)({ name: "permission_id", type: "integer" }),
5141
- (0, import_typeorm49.Index)()
5118
+ (0, import_typeorm48.Column)({ name: "permission_id", type: "integer" }),
5119
+ (0, import_typeorm48.Index)()
5142
5120
  ], CompanyRolePermission.prototype, "permissionId", 2);
5143
5121
  __decorateClass([
5144
- (0, import_typeorm49.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
5145
- (0, import_typeorm49.JoinColumn)({ name: "permission_id" })
5122
+ (0, import_typeorm48.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
5123
+ (0, import_typeorm48.JoinColumn)({ name: "permission_id" })
5146
5124
  ], CompanyRolePermission.prototype, "permission", 2);
5147
5125
  __decorateClass([
5148
- (0, import_typeorm49.Column)({ name: "assigned_by", type: "integer", nullable: true })
5126
+ (0, import_typeorm48.Column)({ name: "assigned_by", type: "integer", nullable: true })
5149
5127
  ], CompanyRolePermission.prototype, "assignedBy", 2);
5150
5128
  CompanyRolePermission = __decorateClass([
5151
- (0, import_typeorm49.Entity)("company_role_permissions")
5129
+ (0, import_typeorm48.Entity)("company_role_permissions")
5152
5130
  ], CompanyRolePermission);
5153
5131
 
5154
5132
  // src/entities/company-role.entity.ts
5155
5133
  var CompanyRole = class extends BaseEntity {
5156
5134
  };
5157
5135
  __decorateClass([
5158
- (0, import_typeorm50.Column)({ name: "user_id", type: "integer", nullable: true }),
5159
- (0, import_typeorm50.Index)()
5136
+ (0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
5137
+ (0, import_typeorm49.Index)()
5160
5138
  ], CompanyRole.prototype, "userId", 2);
5161
5139
  __decorateClass([
5162
- (0, import_typeorm50.ManyToOne)(() => User, (user) => user.otps),
5163
- (0, import_typeorm50.JoinColumn)({ name: "user_id" })
5140
+ (0, import_typeorm49.ManyToOne)(() => User, (user) => user.otps),
5141
+ (0, import_typeorm49.JoinColumn)({ name: "user_id" })
5164
5142
  ], CompanyRole.prototype, "user", 2);
5165
5143
  __decorateClass([
5166
- (0, import_typeorm50.Column)({ name: "name", type: "varchar" })
5144
+ (0, import_typeorm49.Column)({ name: "name", type: "varchar" })
5167
5145
  ], CompanyRole.prototype, "name", 2);
5168
5146
  __decorateClass([
5169
- (0, import_typeorm50.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
5170
- (0, import_typeorm50.Index)()
5147
+ (0, import_typeorm49.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
5148
+ (0, import_typeorm49.Index)()
5171
5149
  ], CompanyRole.prototype, "slug", 2);
5172
5150
  __decorateClass([
5173
- (0, import_typeorm50.Column)({ name: "description", type: "text", nullable: true })
5151
+ (0, import_typeorm49.Column)({ name: "description", type: "text", nullable: true })
5174
5152
  ], CompanyRole.prototype, "description", 2);
5175
5153
  __decorateClass([
5176
- (0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: true })
5154
+ (0, import_typeorm49.Column)({ name: "is_active", type: "boolean", default: true })
5177
5155
  ], CompanyRole.prototype, "isActive", 2);
5178
5156
  __decorateClass([
5179
- (0, import_typeorm50.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
5157
+ (0, import_typeorm49.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
5180
5158
  ], CompanyRole.prototype, "rolePermissions", 2);
5181
5159
  CompanyRole = __decorateClass([
5182
- (0, import_typeorm50.Entity)("company_roles")
5160
+ (0, import_typeorm49.Entity)("company_roles")
5183
5161
  ], CompanyRole);
5184
5162
 
5185
5163
  // src/entities/company-members-roles.entity.ts
5186
5164
  var CompanyMemberRole = class extends BaseEntity {
5187
5165
  };
5188
5166
  __decorateClass([
5189
- (0, import_typeorm51.Column)({ name: "user_id", type: "integer", nullable: true }),
5190
- (0, import_typeorm51.Index)()
5167
+ (0, import_typeorm50.Column)({ name: "user_id", type: "integer", nullable: true }),
5168
+ (0, import_typeorm50.Index)()
5191
5169
  ], CompanyMemberRole.prototype, "userId", 2);
5192
5170
  __decorateClass([
5193
- (0, import_typeorm51.ManyToOne)(() => User),
5194
- (0, import_typeorm51.JoinColumn)({ name: "user_id" })
5171
+ (0, import_typeorm50.ManyToOne)(() => User),
5172
+ (0, import_typeorm50.JoinColumn)({ name: "user_id" })
5195
5173
  ], CompanyMemberRole.prototype, "user", 2);
5196
5174
  __decorateClass([
5197
- (0, import_typeorm51.ManyToOne)(() => CompanyRole),
5198
- (0, import_typeorm51.JoinColumn)({ name: "company_role_id" })
5175
+ (0, import_typeorm50.ManyToOne)(() => CompanyRole),
5176
+ (0, import_typeorm50.JoinColumn)({ name: "company_role_id" })
5199
5177
  ], CompanyMemberRole.prototype, "role", 2);
5200
5178
  __decorateClass([
5201
- (0, import_typeorm51.Column)({ name: "company_role_id", type: "integer", nullable: true }),
5202
- (0, import_typeorm51.Index)()
5179
+ (0, import_typeorm50.Column)({ name: "company_role_id", type: "integer", nullable: true }),
5180
+ (0, import_typeorm50.Index)()
5203
5181
  ], CompanyMemberRole.prototype, "companyRoleId", 2);
5204
5182
  __decorateClass([
5205
- (0, import_typeorm51.Column)({ name: "assigned_by", type: "integer", nullable: true })
5183
+ (0, import_typeorm50.Column)({ name: "assigned_by", type: "integer", nullable: true })
5206
5184
  ], CompanyMemberRole.prototype, "assignedBy", 2);
5207
5185
  CompanyMemberRole = __decorateClass([
5208
- (0, import_typeorm51.Entity)("company_member_roles")
5186
+ (0, import_typeorm50.Entity)("company_member_roles")
5209
5187
  ], CompanyMemberRole);
5210
5188
 
5211
5189
  // src/entities/assessment-answer.entity.ts
5212
- var import_typeorm54 = require("typeorm");
5190
+ var import_typeorm53 = require("typeorm");
5213
5191
 
5214
5192
  // src/entities/assessment-question.entity.ts
5215
- var import_typeorm53 = require("typeorm");
5193
+ var import_typeorm52 = require("typeorm");
5216
5194
 
5217
5195
  // src/entities/assessment-question-option.entity.ts
5218
- var import_typeorm52 = require("typeorm");
5196
+ var import_typeorm51 = require("typeorm");
5219
5197
  var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5220
5198
  AnswerTypeEnum2["CORRECT"] = "CORRECT";
5221
5199
  AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
@@ -5225,21 +5203,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5225
5203
  var AssessmetQuestionOption = class extends BaseEntity {
5226
5204
  };
5227
5205
  __decorateClass([
5228
- (0, import_typeorm52.Column)({ name: "question_id", type: "integer", nullable: true }),
5229
- (0, import_typeorm52.Index)()
5206
+ (0, import_typeorm51.Column)({ name: "question_id", type: "integer", nullable: true }),
5207
+ (0, import_typeorm51.Index)()
5230
5208
  ], AssessmetQuestionOption.prototype, "questionId", 2);
5231
5209
  __decorateClass([
5232
- (0, import_typeorm52.ManyToOne)(
5210
+ (0, import_typeorm51.ManyToOne)(
5233
5211
  () => AssessmetQuestion,
5234
5212
  (assessmentQuestion) => assessmentQuestion.options
5235
5213
  ),
5236
- (0, import_typeorm52.JoinColumn)({ name: "question_id" })
5214
+ (0, import_typeorm51.JoinColumn)({ name: "question_id" })
5237
5215
  ], AssessmetQuestionOption.prototype, "question", 2);
5238
5216
  __decorateClass([
5239
- (0, import_typeorm52.Column)({ name: "text", type: "varchar", nullable: true })
5217
+ (0, import_typeorm51.Column)({ name: "text", type: "varchar", nullable: true })
5240
5218
  ], AssessmetQuestionOption.prototype, "text", 2);
5241
5219
  __decorateClass([
5242
- (0, import_typeorm52.Column)({
5220
+ (0, import_typeorm51.Column)({
5243
5221
  name: "answer_type",
5244
5222
  type: "enum",
5245
5223
  enum: AnswerTypeEnum,
@@ -5247,13 +5225,13 @@ __decorateClass([
5247
5225
  })
5248
5226
  ], AssessmetQuestionOption.prototype, "answerType", 2);
5249
5227
  __decorateClass([
5250
- (0, import_typeorm52.Column)({ name: "is_active", type: "boolean", default: true })
5228
+ (0, import_typeorm51.Column)({ name: "is_active", type: "boolean", default: true })
5251
5229
  ], AssessmetQuestionOption.prototype, "isActive", 2);
5252
5230
  __decorateClass([
5253
- (0, import_typeorm52.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5231
+ (0, import_typeorm51.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5254
5232
  ], AssessmetQuestionOption.prototype, "selectedOptions", 2);
5255
5233
  AssessmetQuestionOption = __decorateClass([
5256
- (0, import_typeorm52.Entity)("assessment_question_options")
5234
+ (0, import_typeorm51.Entity)("assessment_question_options")
5257
5235
  ], AssessmetQuestionOption);
5258
5236
 
5259
5237
  // src/entities/assessment-question.entity.ts
@@ -5265,10 +5243,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
5265
5243
  var AssessmetQuestion = class extends BaseEntity {
5266
5244
  };
5267
5245
  __decorateClass([
5268
- (0, import_typeorm53.Column)({ name: "text", type: "varchar", nullable: true })
5246
+ (0, import_typeorm52.Column)({ name: "text", type: "varchar", nullable: true })
5269
5247
  ], AssessmetQuestion.prototype, "text", 2);
5270
5248
  __decorateClass([
5271
- (0, import_typeorm53.Column)({
5249
+ (0, import_typeorm52.Column)({
5272
5250
  name: "question_for",
5273
5251
  type: "enum",
5274
5252
  enum: QuestionForEnum,
@@ -5276,24 +5254,24 @@ __decorateClass([
5276
5254
  })
5277
5255
  ], AssessmetQuestion.prototype, "questionFor", 2);
5278
5256
  __decorateClass([
5279
- (0, import_typeorm53.Column)({ name: "is_active", type: "boolean", default: true })
5257
+ (0, import_typeorm52.Column)({ name: "is_active", type: "boolean", default: true })
5280
5258
  ], AssessmetQuestion.prototype, "isActive", 2);
5281
5259
  __decorateClass([
5282
- (0, import_typeorm53.Column)({ name: "candidate_id", type: "integer", nullable: true }),
5283
- (0, import_typeorm53.Index)()
5260
+ (0, import_typeorm52.Column)({ name: "candidate_id", type: "integer", nullable: true }),
5261
+ (0, import_typeorm52.Index)()
5284
5262
  ], AssessmetQuestion.prototype, "candidateId", 2);
5285
5263
  __decorateClass([
5286
- (0, import_typeorm53.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
5287
- (0, import_typeorm53.JoinColumn)({ name: "candidate_id" })
5264
+ (0, import_typeorm52.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
5265
+ (0, import_typeorm52.JoinColumn)({ name: "candidate_id" })
5288
5266
  ], AssessmetQuestion.prototype, "candidate", 2);
5289
5267
  __decorateClass([
5290
- (0, import_typeorm53.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5268
+ (0, import_typeorm52.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5291
5269
  ], AssessmetQuestion.prototype, "options", 2);
5292
5270
  __decorateClass([
5293
- (0, import_typeorm53.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5271
+ (0, import_typeorm52.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5294
5272
  ], AssessmetQuestion.prototype, "answers", 2);
5295
5273
  AssessmetQuestion = __decorateClass([
5296
- (0, import_typeorm53.Entity)("assessment_questions")
5274
+ (0, import_typeorm52.Entity)("assessment_questions")
5297
5275
  ], AssessmetQuestion);
5298
5276
 
5299
5277
  // src/entities/assessment-answer.entity.ts
@@ -5306,118 +5284,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
5306
5284
  var AssessmentAnswer = class extends BaseEntity {
5307
5285
  };
5308
5286
  __decorateClass([
5309
- (0, import_typeorm54.Column)({ name: "user_id", type: "integer" }),
5310
- (0, import_typeorm54.Index)()
5287
+ (0, import_typeorm53.Column)({ name: "user_id", type: "integer" }),
5288
+ (0, import_typeorm53.Index)()
5311
5289
  ], AssessmentAnswer.prototype, "userId", 2);
5312
5290
  __decorateClass([
5313
- (0, import_typeorm54.ManyToOne)(() => User, (user) => user.assessmentAnswers),
5314
- (0, import_typeorm54.JoinColumn)({ name: "user_id" })
5291
+ (0, import_typeorm53.ManyToOne)(() => User, (user) => user.assessmentAnswers),
5292
+ (0, import_typeorm53.JoinColumn)({ name: "user_id" })
5315
5293
  ], AssessmentAnswer.prototype, "user", 2);
5316
5294
  __decorateClass([
5317
- (0, import_typeorm54.Column)({ name: "question_id", type: "integer" }),
5318
- (0, import_typeorm54.Index)()
5295
+ (0, import_typeorm53.Column)({ name: "question_id", type: "integer" }),
5296
+ (0, import_typeorm53.Index)()
5319
5297
  ], AssessmentAnswer.prototype, "questionId", 2);
5320
5298
  __decorateClass([
5321
- (0, import_typeorm54.ManyToOne)(
5299
+ (0, import_typeorm53.ManyToOne)(
5322
5300
  () => AssessmetQuestion,
5323
5301
  (assessmentQuestion) => assessmentQuestion.answers
5324
5302
  ),
5325
- (0, import_typeorm54.JoinColumn)({ name: "question_id" })
5303
+ (0, import_typeorm53.JoinColumn)({ name: "question_id" })
5326
5304
  ], AssessmentAnswer.prototype, "question", 2);
5327
5305
  __decorateClass([
5328
- (0, import_typeorm54.Column)({ name: "selected_option_id", type: "integer" }),
5329
- (0, import_typeorm54.Index)()
5306
+ (0, import_typeorm53.Column)({ name: "selected_option_id", type: "integer" }),
5307
+ (0, import_typeorm53.Index)()
5330
5308
  ], AssessmentAnswer.prototype, "selectedOptionId", 2);
5331
5309
  __decorateClass([
5332
- (0, import_typeorm54.ManyToOne)(
5310
+ (0, import_typeorm53.ManyToOne)(
5333
5311
  () => AssessmetQuestionOption,
5334
5312
  (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
5335
5313
  ),
5336
- (0, import_typeorm54.JoinColumn)({ name: "selected_option_id" })
5314
+ (0, import_typeorm53.JoinColumn)({ name: "selected_option_id" })
5337
5315
  ], AssessmentAnswer.prototype, "option", 2);
5338
5316
  __decorateClass([
5339
- (0, import_typeorm54.Column)({
5317
+ (0, import_typeorm53.Column)({
5340
5318
  name: "selected_answer_type",
5341
5319
  type: "enum",
5342
5320
  enum: SelectedAnswerTypeEnum
5343
5321
  })
5344
5322
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
5345
5323
  __decorateClass([
5346
- (0, import_typeorm54.Column)({ name: "score", type: "float" })
5324
+ (0, import_typeorm53.Column)({ name: "score", type: "float" })
5347
5325
  ], AssessmentAnswer.prototype, "score", 2);
5348
5326
  AssessmentAnswer = __decorateClass([
5349
- (0, import_typeorm54.Entity)("assessment_answers")
5327
+ (0, import_typeorm53.Entity)("assessment_answers")
5350
5328
  ], AssessmentAnswer);
5351
5329
 
5352
5330
  // src/entities/company-skill.entity.ts
5353
- var import_typeorm55 = require("typeorm");
5331
+ var import_typeorm54 = require("typeorm");
5354
5332
  var CompanySkill = class extends BaseEntity {
5355
5333
  };
5356
5334
  // individual index to find core skills by user
5357
5335
  __decorateClass([
5358
- (0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
5359
- (0, import_typeorm55.Index)()
5336
+ (0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
5337
+ (0, import_typeorm54.Index)()
5360
5338
  ], CompanySkill.prototype, "userId", 2);
5361
5339
  __decorateClass([
5362
- (0, import_typeorm55.ManyToOne)(() => User, (user) => user.companySkills),
5363
- (0, import_typeorm55.JoinColumn)({ name: "user_id" })
5340
+ (0, import_typeorm54.ManyToOne)(() => User, (user) => user.companySkills),
5341
+ (0, import_typeorm54.JoinColumn)({ name: "user_id" })
5364
5342
  ], CompanySkill.prototype, "user", 2);
5365
5343
  __decorateClass([
5366
- (0, import_typeorm55.Column)({ name: "skill_name", type: "varchar", nullable: true })
5344
+ (0, import_typeorm54.Column)({ name: "skill_name", type: "varchar", nullable: true })
5367
5345
  ], CompanySkill.prototype, "skillName", 2);
5368
5346
  CompanySkill = __decorateClass([
5369
- (0, import_typeorm55.Entity)("company_skills")
5347
+ (0, import_typeorm54.Entity)("company_skills")
5370
5348
  ], CompanySkill);
5371
5349
 
5372
5350
  // src/entities/admin-user-role.entity.ts
5373
- var import_typeorm59 = require("typeorm");
5351
+ var import_typeorm58 = require("typeorm");
5374
5352
 
5375
5353
  // src/entities/admin-role.entity.ts
5376
- var import_typeorm58 = require("typeorm");
5354
+ var import_typeorm57 = require("typeorm");
5377
5355
 
5378
5356
  // src/entities/admin-role-permission.entity.ts
5379
- var import_typeorm57 = require("typeorm");
5357
+ var import_typeorm56 = require("typeorm");
5380
5358
 
5381
5359
  // src/entities/admin-permission.entity.ts
5382
- var import_typeorm56 = require("typeorm");
5360
+ var import_typeorm55 = require("typeorm");
5383
5361
  var AdminPermission = class extends BaseEntity {
5384
5362
  };
5385
5363
  __decorateClass([
5386
- (0, import_typeorm56.Column)({ name: "permission_name", type: "varchar", nullable: true })
5364
+ (0, import_typeorm55.Column)({ name: "permission_name", type: "varchar", nullable: true })
5387
5365
  ], AdminPermission.prototype, "permissionName", 2);
5388
5366
  __decorateClass([
5389
- (0, import_typeorm56.Column)({
5367
+ (0, import_typeorm55.Column)({
5390
5368
  name: "permission_slug",
5391
5369
  type: "varchar",
5392
5370
  unique: true,
5393
5371
  nullable: true
5394
5372
  }),
5395
- (0, import_typeorm56.Index)()
5373
+ (0, import_typeorm55.Index)()
5396
5374
  ], AdminPermission.prototype, "permissionSlug", 2);
5397
5375
  __decorateClass([
5398
- (0, import_typeorm56.Column)({ name: "permission_description", type: "varchar", nullable: true })
5376
+ (0, import_typeorm55.Column)({ name: "permission_description", type: "varchar", nullable: true })
5399
5377
  ], AdminPermission.prototype, "permissionDescription", 2);
5400
5378
  __decorateClass([
5401
- (0, import_typeorm56.Column)({ name: "module", type: "varchar", nullable: true })
5379
+ (0, import_typeorm55.Column)({ name: "module", type: "varchar", nullable: true })
5402
5380
  ], AdminPermission.prototype, "module", 2);
5403
5381
  __decorateClass([
5404
- (0, import_typeorm56.Column)({ name: "is_active", type: "boolean", default: true })
5382
+ (0, import_typeorm55.Column)({ name: "is_active", type: "boolean", default: true })
5405
5383
  ], AdminPermission.prototype, "isActive", 2);
5406
5384
  __decorateClass([
5407
- (0, import_typeorm56.OneToMany)(
5385
+ (0, import_typeorm55.OneToMany)(
5408
5386
  () => AdminRolePermission,
5409
5387
  (adminRolePermission) => adminRolePermission.adminPermissions
5410
5388
  )
5411
5389
  ], AdminPermission.prototype, "adminRole", 2);
5412
5390
  AdminPermission = __decorateClass([
5413
- (0, import_typeorm56.Entity)("admin_permissions")
5391
+ (0, import_typeorm55.Entity)("admin_permissions")
5414
5392
  ], AdminPermission);
5415
5393
 
5416
5394
  // src/entities/admin-role-permission.entity.ts
5417
5395
  var AdminRolePermission = class extends BaseEntity {
5418
5396
  };
5419
5397
  __decorateClass([
5420
- (0, import_typeorm57.Column)({
5398
+ (0, import_typeorm56.Column)({
5421
5399
  name: "role_id",
5422
5400
  type: "int",
5423
5401
  nullable: true,
@@ -5425,11 +5403,11 @@ __decorateClass([
5425
5403
  })
5426
5404
  ], AdminRolePermission.prototype, "roleId", 2);
5427
5405
  __decorateClass([
5428
- (0, import_typeorm57.ManyToOne)(() => AdminRole),
5429
- (0, import_typeorm57.JoinColumn)({ name: "role_id" })
5406
+ (0, import_typeorm56.ManyToOne)(() => AdminRole),
5407
+ (0, import_typeorm56.JoinColumn)({ name: "role_id" })
5430
5408
  ], AdminRolePermission.prototype, "adminRole", 2);
5431
5409
  __decorateClass([
5432
- (0, import_typeorm57.Column)({
5410
+ (0, import_typeorm56.Column)({
5433
5411
  name: "permission_id",
5434
5412
  type: "int",
5435
5413
  nullable: true,
@@ -5437,47 +5415,47 @@ __decorateClass([
5437
5415
  })
5438
5416
  ], AdminRolePermission.prototype, "permissionId", 2);
5439
5417
  __decorateClass([
5440
- (0, import_typeorm57.ManyToOne)(() => AdminPermission),
5441
- (0, import_typeorm57.JoinColumn)({ name: "permission_id" })
5418
+ (0, import_typeorm56.ManyToOne)(() => AdminPermission),
5419
+ (0, import_typeorm56.JoinColumn)({ name: "permission_id" })
5442
5420
  ], AdminRolePermission.prototype, "adminPermissions", 2);
5443
5421
  AdminRolePermission = __decorateClass([
5444
- (0, import_typeorm57.Entity)("admin_role_permissions")
5422
+ (0, import_typeorm56.Entity)("admin_role_permissions")
5445
5423
  ], AdminRolePermission);
5446
5424
 
5447
5425
  // src/entities/admin-role.entity.ts
5448
5426
  var AdminRole = class extends BaseEntity {
5449
5427
  };
5450
5428
  __decorateClass([
5451
- (0, import_typeorm58.Column)({ name: "role_name", type: "varchar", nullable: true })
5429
+ (0, import_typeorm57.Column)({ name: "role_name", type: "varchar", nullable: true })
5452
5430
  ], AdminRole.prototype, "roleName", 2);
5453
5431
  __decorateClass([
5454
- (0, import_typeorm58.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5455
- (0, import_typeorm58.Index)()
5432
+ (0, import_typeorm57.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5433
+ (0, import_typeorm57.Index)()
5456
5434
  ], AdminRole.prototype, "roleSlug", 2);
5457
5435
  __decorateClass([
5458
- (0, import_typeorm58.Column)({ name: "role_description", type: "varchar", nullable: true })
5436
+ (0, import_typeorm57.Column)({ name: "role_description", type: "varchar", nullable: true })
5459
5437
  ], AdminRole.prototype, "roleDescription", 2);
5460
5438
  __decorateClass([
5461
- (0, import_typeorm58.Column)({ name: "is_active", type: "boolean", default: true })
5439
+ (0, import_typeorm57.Column)({ name: "is_active", type: "boolean", default: true })
5462
5440
  ], AdminRole.prototype, "isActive", 2);
5463
5441
  __decorateClass([
5464
- (0, import_typeorm58.OneToMany)(
5442
+ (0, import_typeorm57.OneToMany)(
5465
5443
  () => AdminRolePermission,
5466
5444
  (addminRolePermission) => addminRolePermission.adminRole
5467
5445
  )
5468
5446
  ], AdminRole.prototype, "adminRolePermission", 2);
5469
5447
  __decorateClass([
5470
- (0, import_typeorm58.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5448
+ (0, import_typeorm57.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5471
5449
  ], AdminRole.prototype, "userRoles", 2);
5472
5450
  AdminRole = __decorateClass([
5473
- (0, import_typeorm58.Entity)("admin_roles")
5451
+ (0, import_typeorm57.Entity)("admin_roles")
5474
5452
  ], AdminRole);
5475
5453
 
5476
5454
  // src/entities/admin-user-role.entity.ts
5477
5455
  var AdminUserRole = class extends BaseEntity {
5478
5456
  };
5479
5457
  __decorateClass([
5480
- (0, import_typeorm59.Column)({
5458
+ (0, import_typeorm58.Column)({
5481
5459
  name: "user_id",
5482
5460
  type: "int",
5483
5461
  nullable: true,
@@ -5485,11 +5463,11 @@ __decorateClass([
5485
5463
  })
5486
5464
  ], AdminUserRole.prototype, "userId", 2);
5487
5465
  __decorateClass([
5488
- (0, import_typeorm59.ManyToOne)(() => User),
5489
- (0, import_typeorm59.JoinColumn)({ name: "user_id" })
5466
+ (0, import_typeorm58.ManyToOne)(() => User),
5467
+ (0, import_typeorm58.JoinColumn)({ name: "user_id" })
5490
5468
  ], AdminUserRole.prototype, "user", 2);
5491
5469
  __decorateClass([
5492
- (0, import_typeorm59.Column)({
5470
+ (0, import_typeorm58.Column)({
5493
5471
  name: "role_id",
5494
5472
  type: "int",
5495
5473
  nullable: true,
@@ -5497,58 +5475,58 @@ __decorateClass([
5497
5475
  })
5498
5476
  ], AdminUserRole.prototype, "roleId", 2);
5499
5477
  __decorateClass([
5500
- (0, import_typeorm59.ManyToOne)(() => AdminRole),
5501
- (0, import_typeorm59.JoinColumn)({ name: "role_id" })
5478
+ (0, import_typeorm58.ManyToOne)(() => AdminRole),
5479
+ (0, import_typeorm58.JoinColumn)({ name: "role_id" })
5502
5480
  ], AdminUserRole.prototype, "adminRole", 2);
5503
5481
  AdminUserRole = __decorateClass([
5504
- (0, import_typeorm59.Entity)("admin_user_roles")
5482
+ (0, import_typeorm58.Entity)("admin_user_roles")
5505
5483
  ], AdminUserRole);
5506
5484
 
5507
5485
  // src/entities/freelancer-resume.entity.ts
5508
- var import_typeorm60 = require("typeorm");
5486
+ var import_typeorm59 = require("typeorm");
5509
5487
  var FreelancerResume = class extends BaseEntity {
5510
5488
  };
5511
5489
  // individual index to find profile by user
5512
5490
  __decorateClass([
5513
- (0, import_typeorm60.Column)({ name: "user_id", type: "integer", nullable: true }),
5514
- (0, import_typeorm60.Index)()
5491
+ (0, import_typeorm59.Column)({ name: "user_id", type: "integer", nullable: true }),
5492
+ (0, import_typeorm59.Index)()
5515
5493
  ], FreelancerResume.prototype, "userId", 2);
5516
5494
  __decorateClass([
5517
- (0, import_typeorm60.ManyToOne)(() => User, (user) => user.freelancerProfile),
5518
- (0, import_typeorm60.JoinColumn)({ name: "user_id" })
5495
+ (0, import_typeorm59.ManyToOne)(() => User, (user) => user.freelancerProfile),
5496
+ (0, import_typeorm59.JoinColumn)({ name: "user_id" })
5519
5497
  ], FreelancerResume.prototype, "user", 2);
5520
5498
  __decorateClass([
5521
- (0, import_typeorm60.Column)({ name: "resume_data", type: "jsonb", nullable: true })
5499
+ (0, import_typeorm59.Column)({ name: "resume_data", type: "jsonb", nullable: true })
5522
5500
  ], FreelancerResume.prototype, "resumeData", 2);
5523
5501
  __decorateClass([
5524
- (0, import_typeorm60.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
5502
+ (0, import_typeorm59.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
5525
5503
  ], FreelancerResume.prototype, "processedResumeData", 2);
5526
5504
  FreelancerResume = __decorateClass([
5527
- (0, import_typeorm60.Entity)("freelancer_resumes")
5505
+ (0, import_typeorm59.Entity)("freelancer_resumes")
5528
5506
  ], FreelancerResume);
5529
5507
 
5530
5508
  // src/entities/signature.entity.ts
5531
- var import_typeorm61 = require("typeorm");
5509
+ var import_typeorm60 = require("typeorm");
5532
5510
  var Signature = class extends BaseEntity {
5533
5511
  };
5534
5512
  // individual index to find profile by user
5535
5513
  __decorateClass([
5536
- (0, import_typeorm61.Column)({ name: "user_id", type: "integer", nullable: true }),
5537
- (0, import_typeorm61.Index)()
5514
+ (0, import_typeorm60.Column)({ name: "user_id", type: "integer", nullable: true }),
5515
+ (0, import_typeorm60.Index)()
5538
5516
  ], Signature.prototype, "userId", 2);
5539
5517
  __decorateClass([
5540
- (0, import_typeorm61.ManyToOne)(() => User, (user) => user.signatures),
5541
- (0, import_typeorm61.JoinColumn)({ name: "user_id" })
5518
+ (0, import_typeorm60.ManyToOne)(() => User, (user) => user.signatures),
5519
+ (0, import_typeorm60.JoinColumn)({ name: "user_id" })
5542
5520
  ], Signature.prototype, "user", 2);
5543
5521
  __decorateClass([
5544
- (0, import_typeorm61.Column)({ name: "signature_url", type: "text", nullable: true })
5522
+ (0, import_typeorm60.Column)({ name: "signature_url", type: "text", nullable: true })
5545
5523
  ], Signature.prototype, "signatureUrl", 2);
5546
5524
  Signature = __decorateClass([
5547
- (0, import_typeorm61.Entity)("signatures")
5525
+ (0, import_typeorm60.Entity)("signatures")
5548
5526
  ], Signature);
5549
5527
 
5550
5528
  // src/entities/dispute.entity.ts
5551
- var import_typeorm62 = require("typeorm");
5529
+ var import_typeorm61 = require("typeorm");
5552
5530
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
5553
5531
  DisputeStatusEnum2["OPEN"] = "OPEN";
5554
5532
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -5569,36 +5547,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
5569
5547
  var Dispute = class extends BaseEntity {
5570
5548
  };
5571
5549
  __decorateClass([
5572
- (0, import_typeorm62.Column)({ name: "client_id", type: "integer", nullable: true }),
5573
- (0, import_typeorm62.Index)()
5550
+ (0, import_typeorm61.Column)({ name: "client_id", type: "integer", nullable: true }),
5551
+ (0, import_typeorm61.Index)()
5574
5552
  ], Dispute.prototype, "clientId", 2);
5575
5553
  __decorateClass([
5576
- (0, import_typeorm62.ManyToOne)(() => User, (user) => user.clientDisputes),
5577
- (0, import_typeorm62.JoinColumn)({ name: "client_id" })
5554
+ (0, import_typeorm61.ManyToOne)(() => User, (user) => user.clientDisputes),
5555
+ (0, import_typeorm61.JoinColumn)({ name: "client_id" })
5578
5556
  ], Dispute.prototype, "client", 2);
5579
5557
  __decorateClass([
5580
- (0, import_typeorm62.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
5581
- (0, import_typeorm62.Index)()
5558
+ (0, import_typeorm61.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
5559
+ (0, import_typeorm61.Index)()
5582
5560
  ], Dispute.prototype, "freelancerId", 2);
5583
5561
  __decorateClass([
5584
- (0, import_typeorm62.ManyToOne)(() => User, (user) => user.freelancerDisputes),
5585
- (0, import_typeorm62.JoinColumn)({ name: "freelancer_id" })
5562
+ (0, import_typeorm61.ManyToOne)(() => User, (user) => user.freelancerDisputes),
5563
+ (0, import_typeorm61.JoinColumn)({ name: "freelancer_id" })
5586
5564
  ], Dispute.prototype, "freelancer", 2);
5587
5565
  __decorateClass([
5588
- (0, import_typeorm62.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
5566
+ (0, import_typeorm61.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
5589
5567
  ], Dispute.prototype, "disputeUniqueId", 2);
5590
5568
  __decorateClass([
5591
- (0, import_typeorm62.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
5592
- (0, import_typeorm62.Index)()
5569
+ (0, import_typeorm61.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
5570
+ (0, import_typeorm61.Index)()
5593
5571
  ], Dispute.prototype, "disputeType", 2);
5594
5572
  __decorateClass([
5595
- (0, import_typeorm62.Column)({ name: "description", type: "varchar", nullable: true })
5573
+ (0, import_typeorm61.Column)({ name: "description", type: "varchar", nullable: true })
5596
5574
  ], Dispute.prototype, "description", 2);
5597
5575
  __decorateClass([
5598
- (0, import_typeorm62.Column)({ name: "comment", type: "varchar", nullable: true })
5576
+ (0, import_typeorm61.Column)({ name: "comment", type: "varchar", nullable: true })
5599
5577
  ], Dispute.prototype, "comment", 2);
5600
5578
  __decorateClass([
5601
- (0, import_typeorm62.Column)({
5579
+ (0, import_typeorm61.Column)({
5602
5580
  name: "status",
5603
5581
  type: "enum",
5604
5582
  enum: DisputeStatusEnum,
@@ -5606,7 +5584,7 @@ __decorateClass([
5606
5584
  })
5607
5585
  ], Dispute.prototype, "status", 2);
5608
5586
  __decorateClass([
5609
- (0, import_typeorm62.Column)({
5587
+ (0, import_typeorm61.Column)({
5610
5588
  name: "initiator_type",
5611
5589
  type: "enum",
5612
5590
  enum: InitiatorTypeEnum,
@@ -5615,33 +5593,33 @@ __decorateClass([
5615
5593
  })
5616
5594
  ], Dispute.prototype, "initiatorType", 2);
5617
5595
  __decorateClass([
5618
- (0, import_typeorm62.Column)({ name: "initiator_id", type: "integer" }),
5619
- (0, import_typeorm62.Index)()
5596
+ (0, import_typeorm61.Column)({ name: "initiator_id", type: "integer" }),
5597
+ (0, import_typeorm61.Index)()
5620
5598
  ], Dispute.prototype, "initiatorId", 2);
5621
5599
  __decorateClass([
5622
- (0, import_typeorm62.ManyToOne)(() => User, (user) => user.initiatedDisputes),
5623
- (0, import_typeorm62.JoinColumn)({ name: "initiator_id" })
5600
+ (0, import_typeorm61.ManyToOne)(() => User, (user) => user.initiatedDisputes),
5601
+ (0, import_typeorm61.JoinColumn)({ name: "initiator_id" })
5624
5602
  ], Dispute.prototype, "initiator", 2);
5625
5603
  __decorateClass([
5626
- (0, import_typeorm62.Column)({ name: "respondent_id", type: "integer", nullable: true }),
5627
- (0, import_typeorm62.Index)()
5604
+ (0, import_typeorm61.Column)({ name: "respondent_id", type: "integer", nullable: true }),
5605
+ (0, import_typeorm61.Index)()
5628
5606
  ], Dispute.prototype, "respondentId", 2);
5629
5607
  __decorateClass([
5630
- (0, import_typeorm62.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
5631
- (0, import_typeorm62.JoinColumn)({ name: "respondent_id" })
5608
+ (0, import_typeorm61.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
5609
+ (0, import_typeorm61.JoinColumn)({ name: "respondent_id" })
5632
5610
  ], Dispute.prototype, "respondent", 2);
5633
5611
  __decorateClass([
5634
- (0, import_typeorm62.Column)({ name: "attachments", type: "jsonb", nullable: true })
5612
+ (0, import_typeorm61.Column)({ name: "attachments", type: "jsonb", nullable: true })
5635
5613
  ], Dispute.prototype, "attachments", 2);
5636
5614
  __decorateClass([
5637
- (0, import_typeorm62.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
5615
+ (0, import_typeorm61.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
5638
5616
  ], Dispute.prototype, "dynamicFields", 2);
5639
5617
  Dispute = __decorateClass([
5640
- (0, import_typeorm62.Entity)("disputes")
5618
+ (0, import_typeorm61.Entity)("disputes")
5641
5619
  ], Dispute);
5642
5620
 
5643
5621
  // src/entities/stripe-transaction.entity.ts
5644
- var import_typeorm63 = require("typeorm");
5622
+ var import_typeorm62 = require("typeorm");
5645
5623
  var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
5646
5624
  StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
5647
5625
  StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -5663,97 +5641,97 @@ var StripeTransaction = class extends BaseEntity {
5663
5641
  // Full Stripe session response
5664
5642
  };
5665
5643
  __decorateClass([
5666
- (0, import_typeorm63.Column)({ name: "user_id", type: "integer", nullable: true }),
5667
- (0, import_typeorm63.Index)()
5644
+ (0, import_typeorm62.Column)({ name: "user_id", type: "integer", nullable: true }),
5645
+ (0, import_typeorm62.Index)()
5668
5646
  ], StripeTransaction.prototype, "userId", 2);
5669
5647
  __decorateClass([
5670
- (0, import_typeorm63.ManyToOne)(() => User, (user) => user.stripeTransactions),
5671
- (0, import_typeorm63.JoinColumn)({ name: "user_id" })
5648
+ (0, import_typeorm62.ManyToOne)(() => User, (user) => user.stripeTransactions),
5649
+ (0, import_typeorm62.JoinColumn)({ name: "user_id" })
5672
5650
  ], StripeTransaction.prototype, "user", 2);
5673
5651
  __decorateClass([
5674
- (0, import_typeorm63.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
5652
+ (0, import_typeorm62.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
5675
5653
  ], StripeTransaction.prototype, "stripeSessionId", 2);
5676
5654
  __decorateClass([
5677
- (0, import_typeorm63.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5655
+ (0, import_typeorm62.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5678
5656
  ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
5679
5657
  __decorateClass([
5680
- (0, import_typeorm63.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
5658
+ (0, import_typeorm62.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
5681
5659
  ], StripeTransaction.prototype, "stripeChargeId", 2);
5682
5660
  __decorateClass([
5683
- (0, import_typeorm63.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5661
+ (0, import_typeorm62.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5684
5662
  ], StripeTransaction.prototype, "stripeReceiptUrl", 2);
5685
5663
  __decorateClass([
5686
- (0, import_typeorm63.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5664
+ (0, import_typeorm62.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5687
5665
  ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
5688
5666
  __decorateClass([
5689
- (0, import_typeorm63.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
5667
+ (0, import_typeorm62.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
5690
5668
  ], StripeTransaction.prototype, "stripePaymentMethod", 2);
5691
5669
  __decorateClass([
5692
- (0, import_typeorm63.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
5670
+ (0, import_typeorm62.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
5693
5671
  ], StripeTransaction.prototype, "stripePaymentStatus", 2);
5694
5672
  __decorateClass([
5695
- (0, import_typeorm63.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5673
+ (0, import_typeorm62.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5696
5674
  ], StripeTransaction.prototype, "type", 2);
5697
5675
  __decorateClass([
5698
- (0, import_typeorm63.Column)({ name: "currency", type: "varchar", nullable: true })
5676
+ (0, import_typeorm62.Column)({ name: "currency", type: "varchar", nullable: true })
5699
5677
  ], StripeTransaction.prototype, "currency", 2);
5700
5678
  __decorateClass([
5701
- (0, import_typeorm63.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" })
5679
+ (0, import_typeorm62.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" })
5702
5680
  ], StripeTransaction.prototype, "desiredDepositCents", 2);
5703
5681
  __decorateClass([
5704
- (0, import_typeorm63.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5682
+ (0, import_typeorm62.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5705
5683
  ], StripeTransaction.prototype, "platformFeeCents", 2);
5706
5684
  __decorateClass([
5707
- (0, import_typeorm63.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5685
+ (0, import_typeorm62.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5708
5686
  ], StripeTransaction.prototype, "taxCents", 2);
5709
5687
  __decorateClass([
5710
- (0, import_typeorm63.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5688
+ (0, import_typeorm62.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5711
5689
  ], StripeTransaction.prototype, "estimatedStripeFee", 2);
5712
5690
  __decorateClass([
5713
- (0, import_typeorm63.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" })
5691
+ (0, import_typeorm62.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" })
5714
5692
  ], StripeTransaction.prototype, "estimatedTotalCents", 2);
5715
5693
  __decorateClass([
5716
- (0, import_typeorm63.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5694
+ (0, import_typeorm62.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5717
5695
  ], StripeTransaction.prototype, "actualStripeFee", 2);
5718
5696
  __decorateClass([
5719
- (0, import_typeorm63.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5697
+ (0, import_typeorm62.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5720
5698
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
5721
5699
  __decorateClass([
5722
- (0, import_typeorm63.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" })
5700
+ (0, import_typeorm62.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" })
5723
5701
  ], StripeTransaction.prototype, "netReceivedCents", 2);
5724
5702
  __decorateClass([
5725
- (0, import_typeorm63.Column)({ name: "description", type: "text", nullable: true })
5703
+ (0, import_typeorm62.Column)({ name: "description", type: "text", nullable: true })
5726
5704
  ], StripeTransaction.prototype, "description", 2);
5727
5705
  __decorateClass([
5728
- (0, import_typeorm63.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5706
+ (0, import_typeorm62.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5729
5707
  ], StripeTransaction.prototype, "status", 2);
5730
5708
  __decorateClass([
5731
- (0, import_typeorm63.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5709
+ (0, import_typeorm62.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5732
5710
  ], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
5733
5711
  __decorateClass([
5734
- (0, import_typeorm63.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
5712
+ (0, import_typeorm62.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
5735
5713
  ], StripeTransaction.prototype, "completedAt", 2);
5736
5714
  __decorateClass([
5737
- (0, import_typeorm63.Column)({ name: "billing_details", type: "jsonb", nullable: true })
5715
+ (0, import_typeorm62.Column)({ name: "billing_details", type: "jsonb", nullable: true })
5738
5716
  ], StripeTransaction.prototype, "billingDetails", 2);
5739
5717
  __decorateClass([
5740
- (0, import_typeorm63.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
5718
+ (0, import_typeorm62.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
5741
5719
  ], StripeTransaction.prototype, "paymentMethodDetails", 2);
5742
5720
  __decorateClass([
5743
- (0, import_typeorm63.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
5721
+ (0, import_typeorm62.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
5744
5722
  ], StripeTransaction.prototype, "rawSessionPayload", 2);
5745
5723
  __decorateClass([
5746
- (0, import_typeorm63.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
5724
+ (0, import_typeorm62.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
5747
5725
  ], StripeTransaction.prototype, "rawSessionResponse", 2);
5748
5726
  StripeTransaction = __decorateClass([
5749
- (0, import_typeorm63.Entity)("stripe_transactions")
5727
+ (0, import_typeorm62.Entity)("stripe_transactions")
5750
5728
  ], StripeTransaction);
5751
5729
 
5752
5730
  // src/entities/wallet.entity.ts
5753
- var import_typeorm65 = require("typeorm");
5731
+ var import_typeorm64 = require("typeorm");
5754
5732
 
5755
5733
  // src/entities/wallet-transaction.entity.ts
5756
- var import_typeorm64 = require("typeorm");
5734
+ var import_typeorm63 = require("typeorm");
5757
5735
  var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
5758
5736
  WalletTransactionTypeEnum2["CR"] = "CR";
5759
5737
  WalletTransactionTypeEnum2["DR"] = "DR";
@@ -5770,46 +5748,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
5770
5748
  var WalletTransaction = class extends BaseEntity {
5771
5749
  };
5772
5750
  __decorateClass([
5773
- (0, import_typeorm64.Column)({ name: "wallet_id", type: "integer", nullable: true }),
5774
- (0, import_typeorm64.Index)()
5751
+ (0, import_typeorm63.Column)({ name: "wallet_id", type: "integer", nullable: true }),
5752
+ (0, import_typeorm63.Index)()
5775
5753
  ], WalletTransaction.prototype, "walletId", 2);
5776
5754
  __decorateClass([
5777
- (0, import_typeorm64.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
5778
- (0, import_typeorm64.JoinColumn)({ name: "wallet_id" })
5755
+ (0, import_typeorm63.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
5756
+ (0, import_typeorm63.JoinColumn)({ name: "wallet_id" })
5779
5757
  ], WalletTransaction.prototype, "wallet", 2);
5780
5758
  __decorateClass([
5781
- (0, import_typeorm64.Column)({ name: "amount", type: "bigint", nullable: true })
5759
+ (0, import_typeorm63.Column)({ name: "amount", type: "bigint", nullable: true })
5782
5760
  ], WalletTransaction.prototype, "amount", 2);
5783
5761
  __decorateClass([
5784
- (0, import_typeorm64.Column)({ name: "balance_before", type: "bigint", nullable: true })
5762
+ (0, import_typeorm63.Column)({ name: "balance_before", type: "bigint", nullable: true })
5785
5763
  ], WalletTransaction.prototype, "balanceBefore", 2);
5786
5764
  __decorateClass([
5787
- (0, import_typeorm64.Column)({ name: "balance_after", type: "bigint", nullable: true })
5765
+ (0, import_typeorm63.Column)({ name: "balance_after", type: "bigint", nullable: true })
5788
5766
  ], WalletTransaction.prototype, "balanceAfter", 2);
5789
5767
  __decorateClass([
5790
- (0, import_typeorm64.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5768
+ (0, import_typeorm63.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5791
5769
  ], WalletTransaction.prototype, "type", 2);
5792
5770
  __decorateClass([
5793
- (0, import_typeorm64.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5771
+ (0, import_typeorm63.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5794
5772
  ], WalletTransaction.prototype, "status", 2);
5795
5773
  __decorateClass([
5796
- (0, import_typeorm64.Column)({ name: "description", type: "text", nullable: true })
5774
+ (0, import_typeorm63.Column)({ name: "description", type: "text", nullable: true })
5797
5775
  ], WalletTransaction.prototype, "description", 2);
5798
5776
  __decorateClass([
5799
- (0, import_typeorm64.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
5777
+ (0, import_typeorm63.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
5800
5778
  ], WalletTransaction.prototype, "completedAt", 2);
5801
5779
  __decorateClass([
5802
- (0, import_typeorm64.Column)({ name: "transaction_for", type: "varchar", nullable: true })
5780
+ (0, import_typeorm63.Column)({ name: "transaction_for", type: "varchar", nullable: true })
5803
5781
  ], WalletTransaction.prototype, "transactionFor", 2);
5804
5782
  __decorateClass([
5805
- (0, import_typeorm64.Column)({ name: "meta_data", type: "varchar", nullable: true })
5783
+ (0, import_typeorm63.Column)({ name: "meta_data", type: "varchar", nullable: true })
5806
5784
  ], WalletTransaction.prototype, "metaData", 2);
5807
5785
  __decorateClass([
5808
- (0, import_typeorm64.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5809
- (0, import_typeorm64.Index)()
5786
+ (0, import_typeorm63.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5787
+ (0, import_typeorm63.Index)()
5810
5788
  ], WalletTransaction.prototype, "stripeTransactionId", 2);
5811
5789
  WalletTransaction = __decorateClass([
5812
- (0, import_typeorm64.Entity)("wallet_transactions")
5790
+ (0, import_typeorm63.Entity)("wallet_transactions")
5813
5791
  ], WalletTransaction);
5814
5792
 
5815
5793
  // src/entities/wallet.entity.ts
@@ -5827,43 +5805,43 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
5827
5805
  var Wallet = class extends BaseEntity {
5828
5806
  };
5829
5807
  __decorateClass([
5830
- (0, import_typeorm65.Column)({ name: "user_id", type: "integer", nullable: true }),
5831
- (0, import_typeorm65.Index)()
5808
+ (0, import_typeorm64.Column)({ name: "user_id", type: "integer", nullable: true }),
5809
+ (0, import_typeorm64.Index)()
5832
5810
  ], Wallet.prototype, "userId", 2);
5833
5811
  __decorateClass([
5834
- (0, import_typeorm65.OneToOne)(() => User, (user) => user.wallet),
5835
- (0, import_typeorm65.JoinColumn)({ name: "user_id" })
5812
+ (0, import_typeorm64.OneToOne)(() => User, (user) => user.wallet),
5813
+ (0, import_typeorm64.JoinColumn)({ name: "user_id" })
5836
5814
  ], Wallet.prototype, "user", 2);
5837
5815
  __decorateClass([
5838
- (0, import_typeorm65.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5816
+ (0, import_typeorm64.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5839
5817
  ], Wallet.prototype, "accountType", 2);
5840
5818
  __decorateClass([
5841
- (0, import_typeorm65.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
5819
+ (0, import_typeorm64.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
5842
5820
  ], Wallet.prototype, "stripeAccountId", 2);
5843
5821
  __decorateClass([
5844
- (0, import_typeorm65.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
5822
+ (0, import_typeorm64.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
5845
5823
  ], Wallet.prototype, "stripeCustomerId", 2);
5846
5824
  __decorateClass([
5847
- (0, import_typeorm65.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" })
5825
+ (0, import_typeorm64.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" })
5848
5826
  ], Wallet.prototype, "walletBalance", 2);
5849
5827
  __decorateClass([
5850
- (0, import_typeorm65.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" })
5828
+ (0, import_typeorm64.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" })
5851
5829
  ], Wallet.prototype, "walletBalanceCents", 2);
5852
5830
  __decorateClass([
5853
- (0, import_typeorm65.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5831
+ (0, import_typeorm64.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5854
5832
  ], Wallet.prototype, "onboardingStatus", 2);
5855
5833
  __decorateClass([
5856
- (0, import_typeorm65.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
5834
+ (0, import_typeorm64.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
5857
5835
  ], Wallet.prototype, "stripeMetadata", 2);
5858
5836
  __decorateClass([
5859
- (0, import_typeorm65.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5837
+ (0, import_typeorm64.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5860
5838
  ], Wallet.prototype, "walletTransactions", 2);
5861
5839
  Wallet = __decorateClass([
5862
- (0, import_typeorm65.Entity)("wallets")
5840
+ (0, import_typeorm64.Entity)("wallets")
5863
5841
  ], Wallet);
5864
5842
 
5865
5843
  // src/entities/freelancer-assessment-request.entity.ts
5866
- var import_typeorm66 = require("typeorm");
5844
+ var import_typeorm65 = require("typeorm");
5867
5845
  var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
5868
5846
  AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
5869
5847
  AssessmentRequestStatusEnum2["APPROVED"] = "APPROVED";
@@ -5873,23 +5851,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
5873
5851
  var FreelancerAssessmentRequest = class extends BaseEntity {
5874
5852
  };
5875
5853
  __decorateClass([
5876
- (0, import_typeorm66.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
5877
- (0, import_typeorm66.Index)()
5854
+ (0, import_typeorm65.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
5855
+ (0, import_typeorm65.Index)()
5878
5856
  ], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
5879
5857
  __decorateClass([
5880
- (0, import_typeorm66.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
5881
- (0, import_typeorm66.JoinColumn)({ name: "freelancer_id" })
5858
+ (0, import_typeorm65.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
5859
+ (0, import_typeorm65.JoinColumn)({ name: "freelancer_id" })
5882
5860
  ], FreelancerAssessmentRequest.prototype, "freelancer", 2);
5883
5861
  __decorateClass([
5884
- (0, import_typeorm66.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
5885
- (0, import_typeorm66.Index)()
5862
+ (0, import_typeorm65.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
5863
+ (0, import_typeorm65.Index)()
5886
5864
  ], FreelancerAssessmentRequest.prototype, "approvedById", 2);
5887
5865
  __decorateClass([
5888
- (0, import_typeorm66.ManyToOne)(() => User, (user) => user.assessmentRequests),
5889
- (0, import_typeorm66.JoinColumn)({ name: "approved_by_id" })
5866
+ (0, import_typeorm65.ManyToOne)(() => User, (user) => user.assessmentRequests),
5867
+ (0, import_typeorm65.JoinColumn)({ name: "approved_by_id" })
5890
5868
  ], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
5891
5869
  __decorateClass([
5892
- (0, import_typeorm66.Column)({
5870
+ (0, import_typeorm65.Column)({
5893
5871
  name: "status",
5894
5872
  type: "enum",
5895
5873
  enum: AssessmentRequestStatusEnum,
@@ -5897,44 +5875,44 @@ __decorateClass([
5897
5875
  })
5898
5876
  ], FreelancerAssessmentRequest.prototype, "status", 2);
5899
5877
  __decorateClass([
5900
- (0, import_typeorm66.Column)({ name: "assessment_link", type: "text", nullable: true })
5878
+ (0, import_typeorm65.Column)({ name: "assessment_link", type: "text", nullable: true })
5901
5879
  ], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
5902
5880
  FreelancerAssessmentRequest = __decorateClass([
5903
- (0, import_typeorm66.Entity)({ name: "freelancer_assessment_requests" })
5881
+ (0, import_typeorm65.Entity)({ name: "freelancer_assessment_requests" })
5904
5882
  ], FreelancerAssessmentRequest);
5905
5883
 
5906
5884
  // src/entities/in-app-notification.entity.ts
5907
- var import_typeorm67 = require("typeorm");
5885
+ var import_typeorm66 = require("typeorm");
5908
5886
  var InAppNotification = class extends BaseEntity {
5909
5887
  };
5910
5888
  __decorateClass([
5911
- (0, import_typeorm67.Column)({ name: "user_id", type: "integer", nullable: true }),
5912
- (0, import_typeorm67.Index)()
5889
+ (0, import_typeorm66.Column)({ name: "user_id", type: "integer", nullable: true }),
5890
+ (0, import_typeorm66.Index)()
5913
5891
  ], InAppNotification.prototype, "userId", 2);
5914
5892
  __decorateClass([
5915
- (0, import_typeorm67.ManyToOne)(() => User, (user) => user.inAppNotifications),
5916
- (0, import_typeorm67.JoinColumn)({ name: "user_id" })
5893
+ (0, import_typeorm66.ManyToOne)(() => User, (user) => user.inAppNotifications),
5894
+ (0, import_typeorm66.JoinColumn)({ name: "user_id" })
5917
5895
  ], InAppNotification.prototype, "user", 2);
5918
5896
  __decorateClass([
5919
- (0, import_typeorm67.Column)({ name: "event", type: "varchar", nullable: true })
5897
+ (0, import_typeorm66.Column)({ name: "event", type: "varchar", nullable: true })
5920
5898
  ], InAppNotification.prototype, "event", 2);
5921
5899
  __decorateClass([
5922
- (0, import_typeorm67.Column)({ name: "title", type: "varchar", nullable: true })
5900
+ (0, import_typeorm66.Column)({ name: "title", type: "varchar", nullable: true })
5923
5901
  ], InAppNotification.prototype, "title", 2);
5924
5902
  __decorateClass([
5925
- (0, import_typeorm67.Column)({ name: "message", type: "varchar", nullable: true })
5903
+ (0, import_typeorm66.Column)({ name: "message", type: "varchar", nullable: true })
5926
5904
  ], InAppNotification.prototype, "message", 2);
5927
5905
  __decorateClass([
5928
- (0, import_typeorm67.Column)({ name: "redirect_url", type: "varchar", nullable: true })
5906
+ (0, import_typeorm66.Column)({ name: "redirect_url", type: "varchar", nullable: true })
5929
5907
  ], InAppNotification.prototype, "redirectUrl", 2);
5930
5908
  __decorateClass([
5931
- (0, import_typeorm67.Column)({ name: "is_read", type: "boolean", default: false })
5909
+ (0, import_typeorm66.Column)({ name: "is_read", type: "boolean", default: false })
5932
5910
  ], InAppNotification.prototype, "isRead", 2);
5933
5911
  __decorateClass([
5934
- (0, import_typeorm67.Column)({ name: "meta_data", type: "jsonb", nullable: true })
5912
+ (0, import_typeorm66.Column)({ name: "meta_data", type: "jsonb", nullable: true })
5935
5913
  ], InAppNotification.prototype, "metaData", 2);
5936
5914
  InAppNotification = __decorateClass([
5937
- (0, import_typeorm67.Entity)("in_app_notifications")
5915
+ (0, import_typeorm66.Entity)("in_app_notifications")
5938
5916
  ], InAppNotification);
5939
5917
 
5940
5918
  // src/entities/user.entity.ts
@@ -5963,51 +5941,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
5963
5941
  var User = class extends BaseEntity {
5964
5942
  };
5965
5943
  __decorateClass([
5966
- (0, import_typeorm68.Column)({ name: "unique_id", type: "varchar", unique: true })
5944
+ (0, import_typeorm67.Column)({ name: "unique_id", type: "varchar", unique: true })
5967
5945
  ], User.prototype, "uniqueId", 2);
5968
5946
  __decorateClass([
5969
- (0, import_typeorm68.Column)({ name: "parent_id", type: "integer", nullable: true }),
5970
- (0, import_typeorm68.Index)()
5947
+ (0, import_typeorm67.Column)({ name: "parent_id", type: "integer", nullable: true }),
5948
+ (0, import_typeorm67.Index)()
5971
5949
  ], User.prototype, "parentId", 2);
5972
5950
  __decorateClass([
5973
- (0, import_typeorm68.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
5974
- (0, import_typeorm68.JoinColumn)({ name: "parent_id" })
5951
+ (0, import_typeorm67.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
5952
+ (0, import_typeorm67.JoinColumn)({ name: "parent_id" })
5975
5953
  ], User.prototype, "parent", 2);
5976
5954
  __decorateClass([
5977
- (0, import_typeorm68.OneToMany)(() => User, (user) => user.parent)
5955
+ (0, import_typeorm67.OneToMany)(() => User, (user) => user.parent)
5978
5956
  ], User.prototype, "children", 2);
5979
5957
  __decorateClass([
5980
- (0, import_typeorm68.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
5958
+ (0, import_typeorm67.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
5981
5959
  ], User.prototype, "username", 2);
5982
5960
  __decorateClass([
5983
- (0, import_typeorm68.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
5961
+ (0, import_typeorm67.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
5984
5962
  ], User.prototype, "firstName", 2);
5985
5963
  __decorateClass([
5986
- (0, import_typeorm68.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
5964
+ (0, import_typeorm67.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
5987
5965
  ], User.prototype, "lastName", 2);
5988
5966
  __decorateClass([
5989
- (0, import_typeorm68.Column)({ name: "date_of_birth", type: "date", nullable: true })
5967
+ (0, import_typeorm67.Column)({ name: "date_of_birth", type: "date", nullable: true })
5990
5968
  ], User.prototype, "dateOfBirth", 2);
5991
5969
  __decorateClass([
5992
- (0, import_typeorm68.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
5970
+ (0, import_typeorm67.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
5993
5971
  ], User.prototype, "gender", 2);
5994
5972
  __decorateClass([
5995
- (0, import_typeorm68.Column)({ name: "profile_picture_url", type: "text", nullable: true })
5973
+ (0, import_typeorm67.Column)({ name: "profile_picture_url", type: "text", nullable: true })
5996
5974
  ], User.prototype, "profilePictureUrl", 2);
5997
5975
  __decorateClass([
5998
- (0, import_typeorm68.Column)({ name: "email", type: "varchar", unique: true })
5976
+ (0, import_typeorm67.Column)({ name: "email", type: "varchar", unique: true })
5999
5977
  ], User.prototype, "email", 2);
6000
5978
  __decorateClass([
6001
- (0, import_typeorm68.Column)({ name: "mobile_code", type: "varchar", nullable: true })
5979
+ (0, import_typeorm67.Column)({ name: "mobile_code", type: "varchar", nullable: true })
6002
5980
  ], User.prototype, "mobileCode", 2);
6003
5981
  __decorateClass([
6004
- (0, import_typeorm68.Column)({ name: "mobile", type: "varchar", nullable: true })
5982
+ (0, import_typeorm67.Column)({ name: "mobile", type: "varchar", nullable: true })
6005
5983
  ], User.prototype, "mobile", 2);
6006
5984
  __decorateClass([
6007
- (0, import_typeorm68.Column)({ name: "password", type: "varchar", nullable: true })
5985
+ (0, import_typeorm67.Column)({ name: "password", type: "varchar", nullable: true })
6008
5986
  ], User.prototype, "password", 2);
6009
5987
  __decorateClass([
6010
- (0, import_typeorm68.Column)({
5988
+ (0, import_typeorm67.Column)({
6011
5989
  name: "account_type",
6012
5990
  type: "enum",
6013
5991
  enum: AccountType2,
@@ -6015,7 +5993,7 @@ __decorateClass([
6015
5993
  })
6016
5994
  ], User.prototype, "accountType", 2);
6017
5995
  __decorateClass([
6018
- (0, import_typeorm68.Column)({
5996
+ (0, import_typeorm67.Column)({
6019
5997
  name: "account_status",
6020
5998
  type: "enum",
6021
5999
  enum: AccountStatus,
@@ -6023,42 +6001,42 @@ __decorateClass([
6023
6001
  })
6024
6002
  ], User.prototype, "accountStatus", 2);
6025
6003
  __decorateClass([
6026
- (0, import_typeorm68.Column)({ name: "is_email_verified", type: "boolean", default: false })
6004
+ (0, import_typeorm67.Column)({ name: "is_email_verified", type: "boolean", default: false })
6027
6005
  ], User.prototype, "isEmailVerified", 2);
6028
6006
  __decorateClass([
6029
- (0, import_typeorm68.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
6007
+ (0, import_typeorm67.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
6030
6008
  ], User.prototype, "isMobileVerified", 2);
6031
6009
  __decorateClass([
6032
- (0, import_typeorm68.Column)({ name: "is_social", type: "boolean", default: false })
6010
+ (0, import_typeorm67.Column)({ name: "is_social", type: "boolean", default: false })
6033
6011
  ], User.prototype, "isSocial", 2);
6034
6012
  __decorateClass([
6035
- (0, import_typeorm68.Column)({
6013
+ (0, import_typeorm67.Column)({
6036
6014
  name: "last_login_at",
6037
6015
  type: "timestamp with time zone",
6038
6016
  nullable: true
6039
6017
  })
6040
6018
  ], User.prototype, "lastLoginAt", 2);
6041
6019
  __decorateClass([
6042
- (0, import_typeorm68.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
6020
+ (0, import_typeorm67.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
6043
6021
  ], User.prototype, "lastLoginIp", 2);
6044
6022
  __decorateClass([
6045
- (0, import_typeorm68.Column)({ name: "reset_token", type: "varchar", nullable: true })
6023
+ (0, import_typeorm67.Column)({ name: "reset_token", type: "varchar", nullable: true })
6046
6024
  ], User.prototype, "resetToken", 2);
6047
6025
  __decorateClass([
6048
- (0, import_typeorm68.Column)({
6026
+ (0, import_typeorm67.Column)({
6049
6027
  name: "reset_token_expire_at",
6050
6028
  type: "timestamp with time zone",
6051
6029
  nullable: true
6052
6030
  })
6053
6031
  ], User.prototype, "resetTokenExpireAt", 2);
6054
6032
  __decorateClass([
6055
- (0, import_typeorm68.Column)({ name: "set_password_token", type: "varchar", nullable: true })
6033
+ (0, import_typeorm67.Column)({ name: "set_password_token", type: "varchar", nullable: true })
6056
6034
  ], User.prototype, "setPasswordToken", 2);
6057
6035
  __decorateClass([
6058
- (0, import_typeorm68.OneToMany)(() => RefreshToken, (token) => token.user)
6036
+ (0, import_typeorm67.OneToMany)(() => RefreshToken, (token) => token.user)
6059
6037
  ], User.prototype, "refreshTokens", 2);
6060
6038
  __decorateClass([
6061
- (0, import_typeorm68.Column)({
6039
+ (0, import_typeorm67.Column)({
6062
6040
  name: "provider",
6063
6041
  type: "enum",
6064
6042
  enum: Provider,
@@ -6067,251 +6045,251 @@ __decorateClass([
6067
6045
  })
6068
6046
  ], User.prototype, "provider", 2);
6069
6047
  __decorateClass([
6070
- (0, import_typeorm68.Column)({ name: "provider_token", type: "varchar", nullable: true })
6048
+ (0, import_typeorm67.Column)({ name: "provider_token", type: "varchar", nullable: true })
6071
6049
  ], User.prototype, "providerToken", 2);
6072
6050
  __decorateClass([
6073
- (0, import_typeorm68.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
6051
+ (0, import_typeorm67.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
6074
6052
  ], User.prototype, "linkedInId", 2);
6075
6053
  __decorateClass([
6076
- (0, import_typeorm68.Column)({ name: "google_id", type: "varchar", nullable: true })
6054
+ (0, import_typeorm67.Column)({ name: "google_id", type: "varchar", nullable: true })
6077
6055
  ], User.prototype, "googleId", 2);
6078
6056
  __decorateClass([
6079
- (0, import_typeorm68.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
6057
+ (0, import_typeorm67.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
6080
6058
  ], User.prototype, "gitLabsId", 2);
6081
6059
  __decorateClass([
6082
- (0, import_typeorm68.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
6060
+ (0, import_typeorm67.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
6083
6061
  ], User.prototype, "onBoardedBy", 2);
6084
6062
  __decorateClass([
6085
- (0, import_typeorm68.OneToMany)(() => Otp, (otp) => otp.user)
6063
+ (0, import_typeorm67.OneToMany)(() => Otp, (otp) => otp.user)
6086
6064
  ], User.prototype, "otps", 2);
6087
6065
  __decorateClass([
6088
- (0, import_typeorm68.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
6066
+ (0, import_typeorm67.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
6089
6067
  ], User.prototype, "senseloafLogs", 2);
6090
6068
  __decorateClass([
6091
- (0, import_typeorm68.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
6069
+ (0, import_typeorm67.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
6092
6070
  ], User.prototype, "companyProfile", 2);
6093
6071
  __decorateClass([
6094
- (0, import_typeorm68.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
6072
+ (0, import_typeorm67.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
6095
6073
  ], User.prototype, "companySkills", 2);
6096
6074
  __decorateClass([
6097
- (0, import_typeorm68.OneToMany)(
6075
+ (0, import_typeorm67.OneToMany)(
6098
6076
  () => CompanyMemberRole,
6099
6077
  (companyMemberRole) => companyMemberRole.user
6100
6078
  )
6101
6079
  ], User.prototype, "companyMemberRoles", 2);
6102
6080
  __decorateClass([
6103
- (0, import_typeorm68.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
6081
+ (0, import_typeorm67.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
6104
6082
  ], User.prototype, "companyAiInterview", 2);
6105
6083
  __decorateClass([
6106
- (0, import_typeorm68.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
6084
+ (0, import_typeorm67.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
6107
6085
  ], User.prototype, "clientF2FInterviews", 2);
6108
6086
  __decorateClass([
6109
- (0, import_typeorm68.OneToOne)(
6087
+ (0, import_typeorm67.OneToOne)(
6110
6088
  () => FreelancerProfile,
6111
6089
  (freelancerProfile) => freelancerProfile.user
6112
6090
  )
6113
6091
  ], User.prototype, "freelancerProfile", 2);
6114
6092
  __decorateClass([
6115
- (0, import_typeorm68.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
6093
+ (0, import_typeorm67.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
6116
6094
  ], User.prototype, "freelancerResume", 2);
6117
6095
  __decorateClass([
6118
- (0, import_typeorm68.OneToMany)(
6096
+ (0, import_typeorm67.OneToMany)(
6119
6097
  () => FreelancerAssessmentRequest,
6120
6098
  (freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
6121
6099
  )
6122
6100
  ], User.prototype, "freelancerAssessmentRequests", 2);
6123
6101
  __decorateClass([
6124
- (0, import_typeorm68.OneToMany)(
6102
+ (0, import_typeorm67.OneToMany)(
6125
6103
  () => FreelancerAssessmentRequest,
6126
6104
  (freelancerAssessment) => freelancerAssessment.approvedBy
6127
6105
  )
6128
6106
  ], User.prototype, "assessmentRequests", 2);
6129
6107
  __decorateClass([
6130
- (0, import_typeorm68.OneToMany)(
6108
+ (0, import_typeorm67.OneToMany)(
6131
6109
  () => FreelancerAssessment,
6132
6110
  (freelancerAssessment) => freelancerAssessment.user
6133
6111
  )
6134
6112
  ], User.prototype, "assessments", 2);
6135
6113
  __decorateClass([
6136
- (0, import_typeorm68.OneToMany)(
6114
+ (0, import_typeorm67.OneToMany)(
6137
6115
  () => AssessmentAnswer,
6138
6116
  (assessmentAnswer) => assessmentAnswer.user
6139
6117
  )
6140
6118
  ], User.prototype, "assessmentAnswers", 2);
6141
6119
  __decorateClass([
6142
- (0, import_typeorm68.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
6120
+ (0, import_typeorm67.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
6143
6121
  ], User.prototype, "freelancerSkills", 2);
6144
6122
  __decorateClass([
6145
- (0, import_typeorm68.OneToMany)(
6123
+ (0, import_typeorm67.OneToMany)(
6146
6124
  () => FreelancerExperience,
6147
6125
  (freelancerExperience) => freelancerExperience.user
6148
6126
  )
6149
6127
  ], User.prototype, "freelancerExperience", 2);
6150
6128
  __decorateClass([
6151
- (0, import_typeorm68.OneToMany)(
6129
+ (0, import_typeorm67.OneToMany)(
6152
6130
  () => FreelancerEducation,
6153
6131
  (freelancerEducation) => freelancerEducation.user
6154
6132
  )
6155
6133
  ], User.prototype, "freelancerEducation", 2);
6156
6134
  __decorateClass([
6157
- (0, import_typeorm68.OneToMany)(
6135
+ (0, import_typeorm67.OneToMany)(
6158
6136
  () => FreelancerProject,
6159
6137
  (freelancerProject) => freelancerProject.user
6160
6138
  )
6161
6139
  ], User.prototype, "freelancerProject", 2);
6162
6140
  __decorateClass([
6163
- (0, import_typeorm68.OneToMany)(
6141
+ (0, import_typeorm67.OneToMany)(
6164
6142
  () => FreelancerCaseStudy,
6165
6143
  (freelancerCaseStudy) => freelancerCaseStudy.user
6166
6144
  )
6167
6145
  ], User.prototype, "freelancerCaseStudy", 2);
6168
6146
  __decorateClass([
6169
- (0, import_typeorm68.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
6147
+ (0, import_typeorm67.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
6170
6148
  ], User.prototype, "freelancerTool", 2);
6171
6149
  __decorateClass([
6172
- (0, import_typeorm68.OneToMany)(
6150
+ (0, import_typeorm67.OneToMany)(
6173
6151
  () => FreelancerFramework,
6174
6152
  (freelancerFramework) => freelancerFramework.user
6175
6153
  )
6176
6154
  ], User.prototype, "freelancerFramework", 2);
6177
6155
  __decorateClass([
6178
- (0, import_typeorm68.OneToOne)(
6156
+ (0, import_typeorm67.OneToOne)(
6179
6157
  () => FreelancerDeclaration,
6180
6158
  (freelancerDeclaration) => freelancerDeclaration.user
6181
6159
  )
6182
6160
  ], User.prototype, "freelancerDeclaration", 2);
6183
6161
  __decorateClass([
6184
- (0, import_typeorm68.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
6162
+ (0, import_typeorm67.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
6185
6163
  ], User.prototype, "freelancerMcq", 2);
6186
6164
  __decorateClass([
6187
- (0, import_typeorm68.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
6165
+ (0, import_typeorm67.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
6188
6166
  ], User.prototype, "freelancerAiInterview", 2);
6189
6167
  __decorateClass([
6190
- (0, import_typeorm68.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
6168
+ (0, import_typeorm67.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
6191
6169
  ], User.prototype, "freelancerF2FInterviews", 2);
6192
6170
  __decorateClass([
6193
- (0, import_typeorm68.OneToMany)(
6171
+ (0, import_typeorm67.OneToMany)(
6194
6172
  () => F2fInterviewRescheduleRequest,
6195
6173
  (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
6196
6174
  )
6197
6175
  ], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
6198
6176
  __decorateClass([
6199
- (0, import_typeorm68.OneToMany)(
6177
+ (0, import_typeorm67.OneToMany)(
6200
6178
  () => AiInterviewRescheduleRequest,
6201
6179
  (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
6202
6180
  )
6203
6181
  ], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
6204
6182
  __decorateClass([
6205
- (0, import_typeorm68.OneToMany)(
6183
+ (0, import_typeorm67.OneToMany)(
6206
6184
  () => AiInterviewRescheduleRequest,
6207
6185
  (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
6208
6186
  )
6209
6187
  ], User.prototype, "clientAiInterviewRescheduleRequests", 2);
6210
6188
  __decorateClass([
6211
- (0, import_typeorm68.OneToMany)(() => Job, (job) => job.user)
6189
+ (0, import_typeorm67.OneToMany)(() => Job, (job) => job.user)
6212
6190
  ], User.prototype, "jobs", 2);
6213
6191
  __decorateClass([
6214
- (0, import_typeorm68.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
6192
+ (0, import_typeorm67.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
6215
6193
  ], User.prototype, "jobApplications", 2);
6216
6194
  __decorateClass([
6217
- (0, import_typeorm68.OneToMany)(() => Interview, (interview) => interview.user)
6195
+ (0, import_typeorm67.OneToMany)(() => Interview, (interview) => interview.user)
6218
6196
  ], User.prototype, "interviews", 2);
6219
6197
  __decorateClass([
6220
- (0, import_typeorm68.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
6198
+ (0, import_typeorm67.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
6221
6199
  ], User.prototype, "bankDetail", 2);
6222
6200
  __decorateClass([
6223
- (0, import_typeorm68.OneToMany)(
6201
+ (0, import_typeorm67.OneToMany)(
6224
6202
  () => SystemPreference,
6225
6203
  (systemPreference) => systemPreference.user
6226
6204
  )
6227
6205
  ], User.prototype, "systemPreference", 2);
6228
6206
  __decorateClass([
6229
- (0, import_typeorm68.OneToMany)(() => Rating, (rating) => rating.reviewer)
6207
+ (0, import_typeorm67.OneToMany)(() => Rating, (rating) => rating.reviewer)
6230
6208
  ], User.prototype, "givenRatings", 2);
6231
6209
  __decorateClass([
6232
- (0, import_typeorm68.OneToMany)(() => Rating, (rating) => rating.reviewee)
6210
+ (0, import_typeorm67.OneToMany)(() => Rating, (rating) => rating.reviewee)
6233
6211
  ], User.prototype, "receivedRatings", 2);
6234
6212
  __decorateClass([
6235
- (0, import_typeorm68.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
6213
+ (0, import_typeorm67.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
6236
6214
  ], User.prototype, "adminUserRoles", 2);
6237
6215
  __decorateClass([
6238
- (0, import_typeorm68.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
6216
+ (0, import_typeorm67.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
6239
6217
  cascade: true
6240
6218
  })
6241
6219
  ], User.prototype, "clientContractSummaries", 2);
6242
6220
  __decorateClass([
6243
- (0, import_typeorm68.OneToMany)(() => Contract, (contract) => contract.client)
6221
+ (0, import_typeorm67.OneToMany)(() => Contract, (contract) => contract.client)
6244
6222
  ], User.prototype, "clientContracts", 2);
6245
6223
  __decorateClass([
6246
- (0, import_typeorm68.OneToMany)(() => Hiring, (hiring) => hiring.client)
6224
+ (0, import_typeorm67.OneToMany)(() => Hiring, (hiring) => hiring.client)
6247
6225
  ], User.prototype, "clientHirings", 2);
6248
6226
  __decorateClass([
6249
- (0, import_typeorm68.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
6227
+ (0, import_typeorm67.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
6250
6228
  ], User.prototype, "clientEscrowWallets", 2);
6251
6229
  __decorateClass([
6252
- (0, import_typeorm68.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
6230
+ (0, import_typeorm67.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
6253
6231
  cascade: true
6254
6232
  })
6255
6233
  ], User.prototype, "freelancerContractSummaries", 2);
6256
6234
  __decorateClass([
6257
- (0, import_typeorm68.OneToMany)(() => Contract, (contract) => contract.freelancer)
6235
+ (0, import_typeorm67.OneToMany)(() => Contract, (contract) => contract.freelancer)
6258
6236
  ], User.prototype, "freelancerContracts", 2);
6259
6237
  __decorateClass([
6260
- (0, import_typeorm68.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
6238
+ (0, import_typeorm67.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
6261
6239
  ], User.prototype, "freelancerHirings", 2);
6262
6240
  __decorateClass([
6263
- (0, import_typeorm68.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
6241
+ (0, import_typeorm67.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
6264
6242
  ], User.prototype, "freelancerEscrowWallets", 2);
6265
6243
  __decorateClass([
6266
- (0, import_typeorm68.OneToOne)(() => Signature, (signature) => signature.user)
6244
+ (0, import_typeorm67.OneToOne)(() => Signature, (signature) => signature.user)
6267
6245
  ], User.prototype, "signatures", 2);
6268
6246
  __decorateClass([
6269
- (0, import_typeorm68.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
6247
+ (0, import_typeorm67.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
6270
6248
  ], User.prototype, "clientTimesheets", 2);
6271
6249
  __decorateClass([
6272
- (0, import_typeorm68.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
6250
+ (0, import_typeorm67.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
6273
6251
  ], User.prototype, "freelancerTimesheets", 2);
6274
6252
  __decorateClass([
6275
- (0, import_typeorm68.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
6253
+ (0, import_typeorm67.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
6276
6254
  ], User.prototype, "clientTimesheetLine", 2);
6277
6255
  __decorateClass([
6278
- (0, import_typeorm68.OneToMany)(() => Invoice, (invoice) => invoice.client)
6256
+ (0, import_typeorm67.OneToMany)(() => Invoice, (invoice) => invoice.client)
6279
6257
  ], User.prototype, "clientInvoice", 2);
6280
6258
  __decorateClass([
6281
- (0, import_typeorm68.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
6259
+ (0, import_typeorm67.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
6282
6260
  ], User.prototype, "freelancerTimesheetLine", 2);
6283
6261
  __decorateClass([
6284
- (0, import_typeorm68.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
6262
+ (0, import_typeorm67.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
6285
6263
  ], User.prototype, "freelancerInvoice", 2);
6286
6264
  __decorateClass([
6287
- (0, import_typeorm68.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
6265
+ (0, import_typeorm67.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
6288
6266
  ], User.prototype, "clientPreferencesGiven", 2);
6289
6267
  __decorateClass([
6290
- (0, import_typeorm68.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
6268
+ (0, import_typeorm67.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
6291
6269
  ], User.prototype, "clientPreferencesReceived", 2);
6292
6270
  __decorateClass([
6293
- (0, import_typeorm68.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
6271
+ (0, import_typeorm67.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
6294
6272
  ], User.prototype, "initiatedDisputes", 2);
6295
6273
  __decorateClass([
6296
- (0, import_typeorm68.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
6274
+ (0, import_typeorm67.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
6297
6275
  ], User.prototype, "respondentDisputes", 2);
6298
6276
  __decorateClass([
6299
- (0, import_typeorm68.OneToOne)(() => Wallet, (wallet) => wallet.user)
6277
+ (0, import_typeorm67.OneToOne)(() => Wallet, (wallet) => wallet.user)
6300
6278
  ], User.prototype, "wallet", 2);
6301
6279
  __decorateClass([
6302
- (0, import_typeorm68.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
6280
+ (0, import_typeorm67.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
6303
6281
  ], User.prototype, "stripeTransactions", 2);
6304
6282
  __decorateClass([
6305
- (0, import_typeorm68.OneToMany)(() => Dispute, (dispute) => dispute.client)
6283
+ (0, import_typeorm67.OneToMany)(() => Dispute, (dispute) => dispute.client)
6306
6284
  ], User.prototype, "clientDisputes", 2);
6307
6285
  __decorateClass([
6308
- (0, import_typeorm68.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
6286
+ (0, import_typeorm67.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
6309
6287
  ], User.prototype, "freelancerDisputes", 2);
6310
6288
  __decorateClass([
6311
- (0, import_typeorm68.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
6289
+ (0, import_typeorm67.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
6312
6290
  ], User.prototype, "inAppNotifications", 2);
6313
6291
  User = __decorateClass([
6314
- (0, import_typeorm68.Entity)("users")
6292
+ (0, import_typeorm67.Entity)("users")
6315
6293
  ], User);
6316
6294
 
6317
6295
  // src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
@@ -6870,6 +6848,10 @@ var CreateJobViaAIDto = class {
6870
6848
  this.isDraft = false;
6871
6849
  }
6872
6850
  };
6851
+ __decorateClass([
6852
+ (0, import_class_validator50.IsNumber)({}, { message: "User ID must be a number" }),
6853
+ (0, import_class_transformer4.Type)(() => Number)
6854
+ ], CreateJobViaAIDto.prototype, "userId", 2);
6873
6855
  __decorateClass([
6874
6856
  (0, import_class_validator50.IsOptional)(),
6875
6857
  (0, import_class_transformer4.Type)(() => Boolean)
@@ -12713,11 +12695,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
12713
12695
  };
12714
12696
 
12715
12697
  // src/entities/sequence-generator.entity.ts
12716
- var import_typeorm69 = require("typeorm");
12698
+ var import_typeorm68 = require("typeorm");
12717
12699
  var SequenceGenerator = class extends BaseEntity {
12718
12700
  };
12719
12701
  __decorateClass([
12720
- (0, import_typeorm69.Column)({
12702
+ (0, import_typeorm68.Column)({
12721
12703
  name: "module",
12722
12704
  type: "varchar",
12723
12705
  length: 50,
@@ -12726,7 +12708,7 @@ __decorateClass([
12726
12708
  })
12727
12709
  ], SequenceGenerator.prototype, "module", 2);
12728
12710
  __decorateClass([
12729
- (0, import_typeorm69.Column)({
12711
+ (0, import_typeorm68.Column)({
12730
12712
  name: "prefix",
12731
12713
  type: "varchar",
12732
12714
  length: 10,
@@ -12735,7 +12717,7 @@ __decorateClass([
12735
12717
  })
12736
12718
  ], SequenceGenerator.prototype, "prefix", 2);
12737
12719
  __decorateClass([
12738
- (0, import_typeorm69.Column)({
12720
+ (0, import_typeorm68.Column)({
12739
12721
  name: "last_sequence",
12740
12722
  type: "int",
12741
12723
  nullable: false,
@@ -12743,7 +12725,7 @@ __decorateClass([
12743
12725
  })
12744
12726
  ], SequenceGenerator.prototype, "lastSequence", 2);
12745
12727
  __decorateClass([
12746
- (0, import_typeorm69.Column)({
12728
+ (0, import_typeorm68.Column)({
12747
12729
  name: "year",
12748
12730
  type: "int",
12749
12731
  nullable: true,
@@ -12751,11 +12733,11 @@ __decorateClass([
12751
12733
  })
12752
12734
  ], SequenceGenerator.prototype, "year", 2);
12753
12735
  SequenceGenerator = __decorateClass([
12754
- (0, import_typeorm69.Entity)("sequence_generators")
12736
+ (0, import_typeorm68.Entity)("sequence_generators")
12755
12737
  ], SequenceGenerator);
12756
12738
 
12757
12739
  // src/entities/question.entity.ts
12758
- var import_typeorm70 = require("typeorm");
12740
+ var import_typeorm69 = require("typeorm");
12759
12741
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
12760
12742
  QuestionFor2["CLIENT"] = "CLIENT";
12761
12743
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -12764,16 +12746,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
12764
12746
  var Question = class extends BaseEntity {
12765
12747
  };
12766
12748
  __decorateClass([
12767
- (0, import_typeorm70.Column)({ name: "question", type: "varchar" })
12749
+ (0, import_typeorm69.Column)({ name: "question", type: "varchar" })
12768
12750
  ], Question.prototype, "question", 2);
12769
12751
  __decorateClass([
12770
- (0, import_typeorm70.Column)({ name: "hint", type: "varchar", nullable: true })
12752
+ (0, import_typeorm69.Column)({ name: "hint", type: "varchar", nullable: true })
12771
12753
  ], Question.prototype, "hint", 2);
12772
12754
  __decorateClass([
12773
- (0, import_typeorm70.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
12755
+ (0, import_typeorm69.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
12774
12756
  ], Question.prototype, "slug", 2);
12775
12757
  __decorateClass([
12776
- (0, import_typeorm70.Column)({
12758
+ (0, import_typeorm69.Column)({
12777
12759
  name: "question_for",
12778
12760
  type: "enum",
12779
12761
  enum: QuestionFor,
@@ -12781,45 +12763,45 @@ __decorateClass([
12781
12763
  })
12782
12764
  ], Question.prototype, "questionFor", 2);
12783
12765
  __decorateClass([
12784
- (0, import_typeorm70.Column)({ name: "type", type: "varchar", nullable: true })
12766
+ (0, import_typeorm69.Column)({ name: "type", type: "varchar", nullable: true })
12785
12767
  ], Question.prototype, "type", 2);
12786
12768
  __decorateClass([
12787
- (0, import_typeorm70.Column)({ name: "options", type: "jsonb", nullable: true })
12769
+ (0, import_typeorm69.Column)({ name: "options", type: "jsonb", nullable: true })
12788
12770
  ], Question.prototype, "options", 2);
12789
12771
  __decorateClass([
12790
- (0, import_typeorm70.Column)({ name: "is_active", type: "boolean", default: false })
12772
+ (0, import_typeorm69.Column)({ name: "is_active", type: "boolean", default: false })
12791
12773
  ], Question.prototype, "isActive", 2);
12792
12774
  Question = __decorateClass([
12793
- (0, import_typeorm70.Entity)("questions")
12775
+ (0, import_typeorm69.Entity)("questions")
12794
12776
  ], Question);
12795
12777
 
12796
12778
  // src/entities/skill.entity.ts
12797
- var import_typeorm71 = require("typeorm");
12779
+ var import_typeorm70 = require("typeorm");
12798
12780
  var Skill = class extends BaseEntity {
12799
12781
  };
12800
12782
  __decorateClass([
12801
- (0, import_typeorm71.Column)({ name: "name", type: "varchar", nullable: true })
12783
+ (0, import_typeorm70.Column)({ name: "name", type: "varchar", nullable: true })
12802
12784
  ], Skill.prototype, "name", 2);
12803
12785
  __decorateClass([
12804
- (0, import_typeorm71.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
12786
+ (0, import_typeorm70.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
12805
12787
  ], Skill.prototype, "slug", 2);
12806
12788
  __decorateClass([
12807
- (0, import_typeorm71.Column)({ name: "is_active", type: "boolean", default: false })
12789
+ (0, import_typeorm70.Column)({ name: "is_active", type: "boolean", default: false })
12808
12790
  ], Skill.prototype, "isActive", 2);
12809
12791
  Skill = __decorateClass([
12810
- (0, import_typeorm71.Entity)("skills")
12792
+ (0, import_typeorm70.Entity)("skills")
12811
12793
  ], Skill);
12812
12794
 
12813
12795
  // src/entities/skill-catalog.entity.ts
12814
- var import_typeorm72 = require("typeorm");
12796
+ var import_typeorm71 = require("typeorm");
12815
12797
  var SkillCatalog = class extends BaseEntity {
12816
12798
  };
12817
12799
  __decorateClass([
12818
- (0, import_typeorm72.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
12819
- (0, import_typeorm72.Index)()
12800
+ (0, import_typeorm71.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
12801
+ (0, import_typeorm71.Index)()
12820
12802
  ], SkillCatalog.prototype, "canonicalName", 2);
12821
12803
  __decorateClass([
12822
- (0, import_typeorm72.Column)({
12804
+ (0, import_typeorm71.Column)({
12823
12805
  name: "aliases",
12824
12806
  type: "text",
12825
12807
  array: true,
@@ -12827,20 +12809,20 @@ __decorateClass([
12827
12809
  })
12828
12810
  ], SkillCatalog.prototype, "aliases", 2);
12829
12811
  __decorateClass([
12830
- (0, import_typeorm72.Column)({
12812
+ (0, import_typeorm71.Column)({
12831
12813
  name: "variations",
12832
12814
  type: "jsonb",
12833
12815
  default: "{}"
12834
12816
  })
12835
12817
  ], SkillCatalog.prototype, "variations", 2);
12836
12818
  __decorateClass([
12837
- (0, import_typeorm72.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
12819
+ (0, import_typeorm71.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
12838
12820
  ], SkillCatalog.prototype, "category", 2);
12839
12821
  __decorateClass([
12840
- (0, import_typeorm72.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
12822
+ (0, import_typeorm71.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
12841
12823
  ], SkillCatalog.prototype, "parentSkill", 2);
12842
12824
  __decorateClass([
12843
- (0, import_typeorm72.Column)({
12825
+ (0, import_typeorm71.Column)({
12844
12826
  name: "related_skills",
12845
12827
  type: "text",
12846
12828
  array: true,
@@ -12848,111 +12830,111 @@ __decorateClass([
12848
12830
  })
12849
12831
  ], SkillCatalog.prototype, "relatedSkills", 2);
12850
12832
  __decorateClass([
12851
- (0, import_typeorm72.Column)({ name: "usage_count", type: "integer", default: 0 }),
12852
- (0, import_typeorm72.Index)()
12833
+ (0, import_typeorm71.Column)({ name: "usage_count", type: "integer", default: 0 }),
12834
+ (0, import_typeorm71.Index)()
12853
12835
  ], SkillCatalog.prototype, "usageCount", 2);
12854
12836
  __decorateClass([
12855
- (0, import_typeorm72.Column)({ name: "is_verified", type: "boolean", default: false })
12837
+ (0, import_typeorm71.Column)({ name: "is_verified", type: "boolean", default: false })
12856
12838
  ], SkillCatalog.prototype, "isVerified", 2);
12857
12839
  __decorateClass([
12858
- (0, import_typeorm72.Column)({ name: "first_seen_date", type: "date" })
12840
+ (0, import_typeorm71.Column)({ name: "first_seen_date", type: "date" })
12859
12841
  ], SkillCatalog.prototype, "firstSeenDate", 2);
12860
12842
  __decorateClass([
12861
- (0, import_typeorm72.Column)({ name: "last_updated_date", type: "date" })
12843
+ (0, import_typeorm71.Column)({ name: "last_updated_date", type: "date" })
12862
12844
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
12863
12845
  __decorateClass([
12864
- (0, import_typeorm72.Column)({
12846
+ (0, import_typeorm71.Column)({
12865
12847
  name: "search_vector",
12866
12848
  type: "tsvector",
12867
12849
  nullable: true
12868
12850
  })
12869
12851
  ], SkillCatalog.prototype, "searchVector", 2);
12870
12852
  SkillCatalog = __decorateClass([
12871
- (0, import_typeorm72.Entity)("skill_catalogs")
12853
+ (0, import_typeorm71.Entity)("skill_catalogs")
12872
12854
  ], SkillCatalog);
12873
12855
 
12874
12856
  // src/entities/job-role.entity.ts
12875
- var import_typeorm73 = require("typeorm");
12857
+ var import_typeorm72 = require("typeorm");
12876
12858
  var JobRoles = class extends BaseEntity {
12877
12859
  };
12878
12860
  __decorateClass([
12879
- (0, import_typeorm73.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
12861
+ (0, import_typeorm72.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
12880
12862
  ], JobRoles.prototype, "slug", 2);
12881
12863
  __decorateClass([
12882
- (0, import_typeorm73.Column)({ name: "name", type: "varchar", nullable: true })
12864
+ (0, import_typeorm72.Column)({ name: "name", type: "varchar", nullable: true })
12883
12865
  ], JobRoles.prototype, "name", 2);
12884
12866
  __decorateClass([
12885
- (0, import_typeorm73.Column)({ name: "is_active", type: "boolean", default: true })
12867
+ (0, import_typeorm72.Column)({ name: "is_active", type: "boolean", default: true })
12886
12868
  ], JobRoles.prototype, "isActive", 2);
12887
12869
  JobRoles = __decorateClass([
12888
- (0, import_typeorm73.Entity)("job_roles")
12870
+ (0, import_typeorm72.Entity)("job_roles")
12889
12871
  ], JobRoles);
12890
12872
 
12891
12873
  // src/entities/plan.entity.ts
12892
- var import_typeorm75 = require("typeorm");
12874
+ var import_typeorm74 = require("typeorm");
12893
12875
 
12894
12876
  // src/entities/feature.entity.ts
12895
- var import_typeorm74 = require("typeorm");
12877
+ var import_typeorm73 = require("typeorm");
12896
12878
  var Feature = class extends BaseEntity {
12897
12879
  };
12898
12880
  __decorateClass([
12899
- (0, import_typeorm74.Column)({ name: "name", type: "varchar", unique: true })
12881
+ (0, import_typeorm73.Column)({ name: "name", type: "varchar", unique: true })
12900
12882
  ], Feature.prototype, "name", 2);
12901
12883
  __decorateClass([
12902
- (0, import_typeorm74.ManyToMany)(() => Plan, (plan) => plan.features)
12884
+ (0, import_typeorm73.ManyToMany)(() => Plan, (plan) => plan.features)
12903
12885
  ], Feature.prototype, "plans", 2);
12904
12886
  Feature = __decorateClass([
12905
- (0, import_typeorm74.Entity)("features")
12887
+ (0, import_typeorm73.Entity)("features")
12906
12888
  ], Feature);
12907
12889
 
12908
12890
  // src/entities/plan.entity.ts
12909
12891
  var Plan = class extends BaseEntity {
12910
12892
  };
12911
12893
  __decorateClass([
12912
- (0, import_typeorm75.Column)({ name: "name", type: "varchar", unique: true })
12894
+ (0, import_typeorm74.Column)({ name: "name", type: "varchar", unique: true })
12913
12895
  ], Plan.prototype, "name", 2);
12914
12896
  __decorateClass([
12915
- (0, import_typeorm75.Column)({ name: "description", type: "varchar", nullable: true })
12897
+ (0, import_typeorm74.Column)({ name: "description", type: "varchar", nullable: true })
12916
12898
  ], Plan.prototype, "description", 2);
12917
12899
  __decorateClass([
12918
- (0, import_typeorm75.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
12900
+ (0, import_typeorm74.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
12919
12901
  ], Plan.prototype, "price", 2);
12920
12902
  __decorateClass([
12921
- (0, import_typeorm75.Column)({ name: "billing_period", type: "varchar" })
12903
+ (0, import_typeorm74.Column)({ name: "billing_period", type: "varchar" })
12922
12904
  ], Plan.prototype, "billingPeriod", 2);
12923
12905
  __decorateClass([
12924
- (0, import_typeorm75.Column)({ name: "is_current", type: "boolean", default: false })
12906
+ (0, import_typeorm74.Column)({ name: "is_current", type: "boolean", default: false })
12925
12907
  ], Plan.prototype, "isCurrent", 2);
12926
12908
  __decorateClass([
12927
- (0, import_typeorm75.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
12928
- (0, import_typeorm75.JoinTable)()
12909
+ (0, import_typeorm74.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
12910
+ (0, import_typeorm74.JoinTable)()
12929
12911
  ], Plan.prototype, "features", 2);
12930
12912
  Plan = __decorateClass([
12931
- (0, import_typeorm75.Entity)("plans")
12913
+ (0, import_typeorm74.Entity)("plans")
12932
12914
  ], Plan);
12933
12915
 
12934
12916
  // src/entities/cms.entity.ts
12935
- var import_typeorm76 = require("typeorm");
12917
+ var import_typeorm75 = require("typeorm");
12936
12918
  var Cms = class extends BaseEntity {
12937
12919
  };
12938
12920
  __decorateClass([
12939
- (0, import_typeorm76.Column)({ name: "title", type: "varchar", nullable: true })
12921
+ (0, import_typeorm75.Column)({ name: "title", type: "varchar", nullable: true })
12940
12922
  ], Cms.prototype, "title", 2);
12941
12923
  __decorateClass([
12942
- (0, import_typeorm76.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
12924
+ (0, import_typeorm75.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
12943
12925
  ], Cms.prototype, "slug", 2);
12944
12926
  __decorateClass([
12945
- (0, import_typeorm76.Column)({ name: "content", type: "varchar", nullable: true })
12927
+ (0, import_typeorm75.Column)({ name: "content", type: "varchar", nullable: true })
12946
12928
  ], Cms.prototype, "content", 2);
12947
12929
  __decorateClass([
12948
- (0, import_typeorm76.Column)({ name: "is_active", type: "boolean", default: true })
12930
+ (0, import_typeorm75.Column)({ name: "is_active", type: "boolean", default: true })
12949
12931
  ], Cms.prototype, "isActive", 2);
12950
12932
  Cms = __decorateClass([
12951
- (0, import_typeorm76.Entity)("cms")
12933
+ (0, import_typeorm75.Entity)("cms")
12952
12934
  ], Cms);
12953
12935
 
12954
12936
  // src/entities/lead.entity.ts
12955
- var import_typeorm77 = require("typeorm");
12937
+ var import_typeorm76 = require("typeorm");
12956
12938
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
12957
12939
  CategoryEmum2["BUSINESS"] = "BUSINESS";
12958
12940
  CategoryEmum2["FREELANCER"] = "FREELANCER";
@@ -12961,22 +12943,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
12961
12943
  var Lead = class extends BaseEntity {
12962
12944
  };
12963
12945
  __decorateClass([
12964
- (0, import_typeorm77.Column)({ name: "name", type: "varchar", nullable: true })
12946
+ (0, import_typeorm76.Column)({ name: "name", type: "varchar", nullable: true })
12965
12947
  ], Lead.prototype, "name", 2);
12966
12948
  __decorateClass([
12967
- (0, import_typeorm77.Column)({ name: "mobile_code", type: "varchar", nullable: true })
12949
+ (0, import_typeorm76.Column)({ name: "mobile_code", type: "varchar", nullable: true })
12968
12950
  ], Lead.prototype, "mobileCode", 2);
12969
12951
  __decorateClass([
12970
- (0, import_typeorm77.Column)({ name: "mobile", type: "varchar", nullable: true })
12952
+ (0, import_typeorm76.Column)({ name: "mobile", type: "varchar", nullable: true })
12971
12953
  ], Lead.prototype, "mobile", 2);
12972
12954
  __decorateClass([
12973
- (0, import_typeorm77.Column)({ name: "email", type: "varchar", nullable: true })
12955
+ (0, import_typeorm76.Column)({ name: "email", type: "varchar", nullable: true })
12974
12956
  ], Lead.prototype, "email", 2);
12975
12957
  __decorateClass([
12976
- (0, import_typeorm77.Column)({ name: "description", type: "varchar", nullable: true })
12958
+ (0, import_typeorm76.Column)({ name: "description", type: "varchar", nullable: true })
12977
12959
  ], Lead.prototype, "description", 2);
12978
12960
  __decorateClass([
12979
- (0, import_typeorm77.Column)({
12961
+ (0, import_typeorm76.Column)({
12980
12962
  name: "category",
12981
12963
  type: "enum",
12982
12964
  enum: CategoryEmum,
@@ -12984,129 +12966,129 @@ __decorateClass([
12984
12966
  })
12985
12967
  ], Lead.prototype, "category", 2);
12986
12968
  Lead = __decorateClass([
12987
- (0, import_typeorm77.Entity)("leads")
12969
+ (0, import_typeorm76.Entity)("leads")
12988
12970
  ], Lead);
12989
12971
 
12990
12972
  // src/entities/job-freelancer-recommendation.entity.ts
12991
- var import_typeorm78 = require("typeorm");
12973
+ var import_typeorm77 = require("typeorm");
12992
12974
  var JobFreelancerRecommendation = class {
12993
12975
  };
12994
12976
  __decorateClass([
12995
- (0, import_typeorm78.ViewColumn)({ name: "job_id" })
12977
+ (0, import_typeorm77.ViewColumn)({ name: "job_id" })
12996
12978
  ], JobFreelancerRecommendation.prototype, "jobId", 2);
12997
12979
  __decorateClass([
12998
- (0, import_typeorm78.ViewColumn)({ name: "job_uuid" })
12980
+ (0, import_typeorm77.ViewColumn)({ name: "job_uuid" })
12999
12981
  ], JobFreelancerRecommendation.prototype, "jobUuid", 2);
13000
12982
  __decorateClass([
13001
- (0, import_typeorm78.ViewColumn)({ name: "job_unique_id" })
12983
+ (0, import_typeorm77.ViewColumn)({ name: "job_unique_id" })
13002
12984
  ], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
13003
12985
  __decorateClass([
13004
- (0, import_typeorm78.ViewColumn)({ name: "job_role" })
12986
+ (0, import_typeorm77.ViewColumn)({ name: "job_role" })
13005
12987
  ], JobFreelancerRecommendation.prototype, "jobRole", 2);
13006
12988
  __decorateClass([
13007
- (0, import_typeorm78.ViewColumn)({ name: "job_openings" })
12989
+ (0, import_typeorm77.ViewColumn)({ name: "job_openings" })
13008
12990
  ], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
13009
12991
  __decorateClass([
13010
- (0, import_typeorm78.ViewColumn)({ name: "job_location" })
12992
+ (0, import_typeorm77.ViewColumn)({ name: "job_location" })
13011
12993
  ], JobFreelancerRecommendation.prototype, "jobLocation", 2);
13012
12994
  __decorateClass([
13013
- (0, import_typeorm78.ViewColumn)({ name: "job_currency" })
12995
+ (0, import_typeorm77.ViewColumn)({ name: "job_currency" })
13014
12996
  ], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
13015
12997
  __decorateClass([
13016
- (0, import_typeorm78.ViewColumn)({ name: "job_salary_from" })
12998
+ (0, import_typeorm77.ViewColumn)({ name: "job_salary_from" })
13017
12999
  ], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
13018
13000
  __decorateClass([
13019
- (0, import_typeorm78.ViewColumn)({ name: "job_salary_to" })
13001
+ (0, import_typeorm77.ViewColumn)({ name: "job_salary_to" })
13020
13002
  ], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
13021
13003
  __decorateClass([
13022
- (0, import_typeorm78.ViewColumn)({ name: "job_employment_type" })
13004
+ (0, import_typeorm77.ViewColumn)({ name: "job_employment_type" })
13023
13005
  ], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
13024
13006
  __decorateClass([
13025
- (0, import_typeorm78.ViewColumn)({ name: "application_received" })
13007
+ (0, import_typeorm77.ViewColumn)({ name: "application_received" })
13026
13008
  ], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
13027
13009
  __decorateClass([
13028
- (0, import_typeorm78.ViewColumn)({ name: "job_posted_at" })
13010
+ (0, import_typeorm77.ViewColumn)({ name: "job_posted_at" })
13029
13011
  ], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
13030
13012
  __decorateClass([
13031
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_id" })
13013
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_id" })
13032
13014
  ], JobFreelancerRecommendation.prototype, "freelancerId", 2);
13033
13015
  __decorateClass([
13034
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_uuid" })
13016
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_uuid" })
13035
13017
  ], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
13036
13018
  __decorateClass([
13037
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_unique_id" })
13019
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_unique_id" })
13038
13020
  ], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
13039
13021
  __decorateClass([
13040
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_first_name" })
13022
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_first_name" })
13041
13023
  ], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
13042
13024
  __decorateClass([
13043
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_last_name" })
13025
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_last_name" })
13044
13026
  ], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
13045
13027
  __decorateClass([
13046
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_email" })
13028
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_email" })
13047
13029
  ], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
13048
13030
  __decorateClass([
13049
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_profile_picture" })
13031
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_profile_picture" })
13050
13032
  ], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
13051
13033
  __decorateClass([
13052
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_is_social" })
13034
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_is_social" })
13053
13035
  ], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
13054
13036
  __decorateClass([
13055
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_created_at" })
13037
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_created_at" })
13056
13038
  ], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
13057
13039
  __decorateClass([
13058
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_designation" })
13040
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_designation" })
13059
13041
  ], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
13060
13042
  __decorateClass([
13061
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_experience" })
13043
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_experience" })
13062
13044
  ], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
13063
13045
  __decorateClass([
13064
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_expertshub_verified" })
13046
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_expertshub_verified" })
13065
13047
  ], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
13066
13048
  __decorateClass([
13067
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_hourly_compensation" })
13049
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_hourly_compensation" })
13068
13050
  ], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
13069
13051
  __decorateClass([
13070
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_country_name" })
13052
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_country_name" })
13071
13053
  ], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
13072
13054
  __decorateClass([
13073
- (0, import_typeorm78.ViewColumn)({ name: "freelancer_country_iso_code" })
13055
+ (0, import_typeorm77.ViewColumn)({ name: "freelancer_country_iso_code" })
13074
13056
  ], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
13075
13057
  __decorateClass([
13076
- (0, import_typeorm78.ViewColumn)({ name: "client_id" })
13058
+ (0, import_typeorm77.ViewColumn)({ name: "client_id" })
13077
13059
  ], JobFreelancerRecommendation.prototype, "clientId", 2);
13078
13060
  __decorateClass([
13079
- (0, import_typeorm78.ViewColumn)({ name: "client_uuid" })
13061
+ (0, import_typeorm77.ViewColumn)({ name: "client_uuid" })
13080
13062
  ], JobFreelancerRecommendation.prototype, "clientUuid", 2);
13081
13063
  __decorateClass([
13082
- (0, import_typeorm78.ViewColumn)({ name: "client_first_name" })
13064
+ (0, import_typeorm77.ViewColumn)({ name: "client_first_name" })
13083
13065
  ], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
13084
13066
  __decorateClass([
13085
- (0, import_typeorm78.ViewColumn)({ name: "client_last_name" })
13067
+ (0, import_typeorm77.ViewColumn)({ name: "client_last_name" })
13086
13068
  ], JobFreelancerRecommendation.prototype, "clientLastName", 2);
13087
13069
  __decorateClass([
13088
- (0, import_typeorm78.ViewColumn)({ name: "client_email" })
13070
+ (0, import_typeorm77.ViewColumn)({ name: "client_email" })
13089
13071
  ], JobFreelancerRecommendation.prototype, "clientEmail", 2);
13090
13072
  __decorateClass([
13091
- (0, import_typeorm78.ViewColumn)({ name: "client_company_logo" })
13073
+ (0, import_typeorm77.ViewColumn)({ name: "client_company_logo" })
13092
13074
  ], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
13093
13075
  __decorateClass([
13094
- (0, import_typeorm78.ViewColumn)({ name: "client_company_name" })
13076
+ (0, import_typeorm77.ViewColumn)({ name: "client_company_name" })
13095
13077
  ], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
13096
13078
  __decorateClass([
13097
- (0, import_typeorm78.ViewColumn)({ name: "matching_skills" })
13079
+ (0, import_typeorm77.ViewColumn)({ name: "matching_skills" })
13098
13080
  ], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
13099
13081
  __decorateClass([
13100
- (0, import_typeorm78.ViewColumn)({ name: "matching_skills_count" })
13082
+ (0, import_typeorm77.ViewColumn)({ name: "matching_skills_count" })
13101
13083
  ], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
13102
13084
  __decorateClass([
13103
- (0, import_typeorm78.ViewColumn)({ name: "required_skills" })
13085
+ (0, import_typeorm77.ViewColumn)({ name: "required_skills" })
13104
13086
  ], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
13105
13087
  __decorateClass([
13106
- (0, import_typeorm78.ViewColumn)({ name: "required_skills_count" })
13088
+ (0, import_typeorm77.ViewColumn)({ name: "required_skills_count" })
13107
13089
  ], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
13108
13090
  JobFreelancerRecommendation = __decorateClass([
13109
- (0, import_typeorm78.ViewEntity)({
13091
+ (0, import_typeorm77.ViewEntity)({
13110
13092
  name: "job_freelancer_recommendations",
13111
13093
  materialized: true,
13112
13094
  synchronize: false
@@ -13115,32 +13097,32 @@ JobFreelancerRecommendation = __decorateClass([
13115
13097
  ], JobFreelancerRecommendation);
13116
13098
 
13117
13099
  // src/entities/job-freelancer-recommendation-v2.entity.ts
13118
- var import_typeorm79 = require("typeorm");
13100
+ var import_typeorm78 = require("typeorm");
13119
13101
  var JobFreelancerRecommendationV2 = class {
13120
13102
  };
13121
13103
  __decorateClass([
13122
- (0, import_typeorm79.ViewColumn)({ name: "job_id" })
13104
+ (0, import_typeorm78.ViewColumn)({ name: "job_id" })
13123
13105
  ], JobFreelancerRecommendationV2.prototype, "jobId", 2);
13124
13106
  __decorateClass([
13125
- (0, import_typeorm79.ViewColumn)({ name: "job_owner_id" })
13107
+ (0, import_typeorm78.ViewColumn)({ name: "job_owner_id" })
13126
13108
  ], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
13127
13109
  __decorateClass([
13128
- (0, import_typeorm79.ViewColumn)({ name: "freelancer_id" })
13110
+ (0, import_typeorm78.ViewColumn)({ name: "freelancer_id" })
13129
13111
  ], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
13130
13112
  __decorateClass([
13131
- (0, import_typeorm79.ViewColumn)({ name: "matching_skills" })
13113
+ (0, import_typeorm78.ViewColumn)({ name: "matching_skills" })
13132
13114
  ], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
13133
13115
  __decorateClass([
13134
- (0, import_typeorm79.ViewColumn)({ name: "matching_skills_count" })
13116
+ (0, import_typeorm78.ViewColumn)({ name: "matching_skills_count" })
13135
13117
  ], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
13136
13118
  __decorateClass([
13137
- (0, import_typeorm79.ViewColumn)({ name: "required_skills" })
13119
+ (0, import_typeorm78.ViewColumn)({ name: "required_skills" })
13138
13120
  ], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
13139
13121
  __decorateClass([
13140
- (0, import_typeorm79.ViewColumn)({ name: "required_skills_count" })
13122
+ (0, import_typeorm78.ViewColumn)({ name: "required_skills_count" })
13141
13123
  ], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
13142
13124
  JobFreelancerRecommendationV2 = __decorateClass([
13143
- (0, import_typeorm79.ViewEntity)({
13125
+ (0, import_typeorm78.ViewEntity)({
13144
13126
  name: "job_freelancer_recommendations_v2",
13145
13127
  materialized: true,
13146
13128
  synchronize: false
@@ -13149,74 +13131,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
13149
13131
  ], JobFreelancerRecommendationV2);
13150
13132
 
13151
13133
  // src/entities/client-freelancer-recommendation.entity.ts
13152
- var import_typeorm80 = require("typeorm");
13134
+ var import_typeorm79 = require("typeorm");
13153
13135
  var ClientFreelancerRecommendation = class {
13154
13136
  };
13155
13137
  __decorateClass([
13156
- (0, import_typeorm80.ViewColumn)({ name: "client_id" })
13138
+ (0, import_typeorm79.ViewColumn)({ name: "client_id" })
13157
13139
  ], ClientFreelancerRecommendation.prototype, "clientId", 2);
13158
13140
  __decorateClass([
13159
- (0, import_typeorm80.ViewColumn)({ name: "client_uuid" })
13141
+ (0, import_typeorm79.ViewColumn)({ name: "client_uuid" })
13160
13142
  ], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
13161
13143
  __decorateClass([
13162
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_id" })
13144
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_id" })
13163
13145
  ], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
13164
13146
  __decorateClass([
13165
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_uuid" })
13147
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_uuid" })
13166
13148
  ], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
13167
13149
  __decorateClass([
13168
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_unique_id" })
13150
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_unique_id" })
13169
13151
  ], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
13170
13152
  __decorateClass([
13171
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_first_name" })
13153
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_first_name" })
13172
13154
  ], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
13173
13155
  __decorateClass([
13174
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_last_name" })
13156
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_last_name" })
13175
13157
  ], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
13176
13158
  __decorateClass([
13177
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_email" })
13159
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_email" })
13178
13160
  ], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
13179
13161
  __decorateClass([
13180
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_profile_picture" })
13162
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_profile_picture" })
13181
13163
  ], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
13182
13164
  __decorateClass([
13183
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_is_social" })
13165
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_is_social" })
13184
13166
  ], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
13185
13167
  __decorateClass([
13186
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_created_at" })
13168
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_created_at" })
13187
13169
  ], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
13188
13170
  __decorateClass([
13189
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_designation" })
13171
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_designation" })
13190
13172
  ], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
13191
13173
  __decorateClass([
13192
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_experience" })
13174
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_experience" })
13193
13175
  ], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
13194
13176
  __decorateClass([
13195
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_expertshub_verified" })
13177
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_expertshub_verified" })
13196
13178
  ], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
13197
13179
  __decorateClass([
13198
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_hourly_compensation" })
13180
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_hourly_compensation" })
13199
13181
  ], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
13200
13182
  __decorateClass([
13201
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_country_name" })
13183
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_country_name" })
13202
13184
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
13203
13185
  __decorateClass([
13204
- (0, import_typeorm80.ViewColumn)({ name: "freelancer_country_iso_code" })
13186
+ (0, import_typeorm79.ViewColumn)({ name: "freelancer_country_iso_code" })
13205
13187
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
13206
13188
  __decorateClass([
13207
- (0, import_typeorm80.ViewColumn)({ name: "matching_skills" })
13189
+ (0, import_typeorm79.ViewColumn)({ name: "matching_skills" })
13208
13190
  ], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
13209
13191
  __decorateClass([
13210
- (0, import_typeorm80.ViewColumn)({ name: "matching_skills_count" })
13192
+ (0, import_typeorm79.ViewColumn)({ name: "matching_skills_count" })
13211
13193
  ], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
13212
13194
  __decorateClass([
13213
- (0, import_typeorm80.ViewColumn)({ name: "required_skills" })
13195
+ (0, import_typeorm79.ViewColumn)({ name: "required_skills" })
13214
13196
  ], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
13215
13197
  __decorateClass([
13216
- (0, import_typeorm80.ViewColumn)({ name: "required_skills_count" })
13198
+ (0, import_typeorm79.ViewColumn)({ name: "required_skills_count" })
13217
13199
  ], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
13218
13200
  ClientFreelancerRecommendation = __decorateClass([
13219
- (0, import_typeorm80.ViewEntity)({
13201
+ (0, import_typeorm79.ViewEntity)({
13220
13202
  name: "client_freelancer_recommendations",
13221
13203
  materialized: true,
13222
13204
  synchronize: false
@@ -13225,7 +13207,7 @@ ClientFreelancerRecommendation = __decorateClass([
13225
13207
  ], ClientFreelancerRecommendation);
13226
13208
 
13227
13209
  // src/entities/commission.entity.ts
13228
- var import_typeorm81 = require("typeorm");
13210
+ var import_typeorm80 = require("typeorm");
13229
13211
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
13230
13212
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
13231
13213
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -13234,7 +13216,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
13234
13216
  var Commission = class extends BaseEntity {
13235
13217
  };
13236
13218
  __decorateClass([
13237
- (0, import_typeorm81.Column)({
13219
+ (0, import_typeorm80.Column)({
13238
13220
  name: "freelancer_commission_type",
13239
13221
  type: "enum",
13240
13222
  enum: CommissionTypeEnum,
@@ -13242,10 +13224,10 @@ __decorateClass([
13242
13224
  })
13243
13225
  ], Commission.prototype, "freelancerCommissionType", 2);
13244
13226
  __decorateClass([
13245
- (0, import_typeorm81.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
13227
+ (0, import_typeorm80.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
13246
13228
  ], Commission.prototype, "freelancerCommission", 2);
13247
13229
  __decorateClass([
13248
- (0, import_typeorm81.Column)({
13230
+ (0, import_typeorm80.Column)({
13249
13231
  name: "client_commission_type",
13250
13232
  type: "enum",
13251
13233
  enum: CommissionTypeEnum,
@@ -13253,48 +13235,79 @@ __decorateClass([
13253
13235
  })
13254
13236
  ], Commission.prototype, "clientCommissionType", 2);
13255
13237
  __decorateClass([
13256
- (0, import_typeorm81.Column)({ name: "client_commission", type: "integer", default: 0 })
13238
+ (0, import_typeorm80.Column)({ name: "client_commission", type: "integer", default: 0 })
13257
13239
  ], Commission.prototype, "clientCommission", 2);
13258
13240
  Commission = __decorateClass([
13259
- (0, import_typeorm81.Entity)("commissions")
13241
+ (0, import_typeorm80.Entity)("commissions")
13260
13242
  ], Commission);
13261
13243
 
13262
13244
  // src/entities/calendly-meeting-log.entity.ts
13263
- var import_typeorm82 = require("typeorm");
13245
+ var import_typeorm81 = require("typeorm");
13264
13246
  var CalendlyMeetingLog = class extends BaseEntity {
13265
13247
  };
13266
13248
  __decorateClass([
13267
- (0, import_typeorm82.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
13268
- (0, import_typeorm82.Index)()
13249
+ (0, import_typeorm81.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
13250
+ (0, import_typeorm81.Index)()
13269
13251
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
13270
13252
  __decorateClass([
13271
- (0, import_typeorm82.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
13253
+ (0, import_typeorm81.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
13272
13254
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
13273
13255
  __decorateClass([
13274
- (0, import_typeorm82.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
13256
+ (0, import_typeorm81.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
13275
13257
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
13276
13258
  CalendlyMeetingLog = __decorateClass([
13277
- (0, import_typeorm82.Entity)("calendly_meeting_logs")
13259
+ (0, import_typeorm81.Entity)("calendly_meeting_logs")
13278
13260
  ], CalendlyMeetingLog);
13279
13261
 
13280
13262
  // src/entities/zoom-meeting-log.entity.ts
13281
- var import_typeorm83 = require("typeorm");
13263
+ var import_typeorm82 = require("typeorm");
13282
13264
  var ZoomMeetingLog = class extends BaseEntity {
13283
13265
  };
13284
13266
  __decorateClass([
13285
- (0, import_typeorm83.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
13286
- (0, import_typeorm83.Index)()
13267
+ (0, import_typeorm82.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
13268
+ (0, import_typeorm82.Index)()
13287
13269
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
13288
13270
  __decorateClass([
13289
- (0, import_typeorm83.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
13271
+ (0, import_typeorm82.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
13290
13272
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
13291
13273
  __decorateClass([
13292
- (0, import_typeorm83.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
13274
+ (0, import_typeorm82.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
13293
13275
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
13294
13276
  ZoomMeetingLog = __decorateClass([
13295
- (0, import_typeorm83.Entity)("zoom_meeting_logs")
13277
+ (0, import_typeorm82.Entity)("zoom_meeting_logs")
13296
13278
  ], ZoomMeetingLog);
13297
13279
 
13280
+ // src/entities/docuseal.entity.ts
13281
+ var import_typeorm83 = require("typeorm");
13282
+ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
13283
+ DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
13284
+ DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
13285
+ DocuSealTypeEnum2["CONTRACT"] = "CONTRACT";
13286
+ return DocuSealTypeEnum2;
13287
+ })(DocuSealTypeEnum || {});
13288
+ var DocuSeal = class extends BaseEntity {
13289
+ };
13290
+ __decorateClass([
13291
+ (0, import_typeorm83.Column)({ name: "reference_id", type: "integer", nullable: false }),
13292
+ (0, import_typeorm83.Index)()
13293
+ ], DocuSeal.prototype, "referenceId", 2);
13294
+ __decorateClass([
13295
+ (0, import_typeorm83.Column)({ name: "submitter_id", type: "integer", nullable: true }),
13296
+ (0, import_typeorm83.Index)()
13297
+ ], DocuSeal.prototype, "submitterId", 2);
13298
+ __decorateClass([
13299
+ (0, import_typeorm83.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
13300
+ ], DocuSeal.prototype, "submitterResponse", 2);
13301
+ __decorateClass([
13302
+ (0, import_typeorm83.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
13303
+ ], DocuSeal.prototype, "webhookResponse", 2);
13304
+ __decorateClass([
13305
+ (0, import_typeorm83.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
13306
+ ], DocuSeal.prototype, "type", 2);
13307
+ DocuSeal = __decorateClass([
13308
+ (0, import_typeorm83.Entity)("docuseal")
13309
+ ], DocuSeal);
13310
+
13298
13311
  // src/entities/stripe-logs.entity.ts
13299
13312
  var import_typeorm84 = require("typeorm");
13300
13313
  var StripeLog = class extends BaseEntity {
@@ -13495,6 +13508,7 @@ GlobalSetting = __decorateClass([
13495
13508
  DocuSeal,
13496
13509
  DocuSealMessageDto,
13497
13510
  DocuSealSubmitterDto,
13511
+ DocuSealTypeEnum,
13498
13512
  DocumentType,
13499
13513
  DurationTypeEnum,
13500
13514
  EMAIL_PATTERN,