@experts_hub/shared 1.0.511 → 1.0.514

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