@experts_hub/shared 1.0.650 → 1.0.652

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