@experts_hub/shared 1.0.688 → 1.0.689

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
@@ -48,6 +48,7 @@ __export(index_exports, {
48
48
  AccountType: () => AccountType2,
49
49
  AddClientRemarkDto: () => AddClientRemarkDto,
50
50
  AddGlobalSettingDto: () => AddGlobalSettingDto,
51
+ AddTaskQueryReplyDto: () => AddTaskQueryReplyDto,
51
52
  AddTopupEscrowAmountDto: () => AddTopupEscrowAmountDto,
52
53
  AdminCreateJobInformationDto: () => AdminCreateJobInformationDto,
53
54
  AdminExportClientV2OptimisedDto: () => AdminExportClientV2OptimisedDto,
@@ -165,6 +166,7 @@ __export(index_exports, {
165
166
  CreateRatingDto: () => CreateRatingDto,
166
167
  CreateSubAdminDto: () => CreateSubAdminDto,
167
168
  CreateTaskDto: () => CreateTaskDto,
169
+ CreateTaskQueryDto: () => CreateTaskQueryDto,
168
170
  CreateUserSigningDto: () => CreateUserSigningDto,
169
171
  CustomQuestionItemDto: () => CustomQuestionItemDto,
170
172
  DISPUTE_PATTERN: () => DISPUTE_PATTERN,
@@ -306,6 +308,7 @@ __export(index_exports, {
306
308
  MarkCandidateStatusBulkDto: () => MarkCandidateStatusBulkDto,
307
309
  MarkCandidateStatusDto: () => MarkCandidateStatusDto,
308
310
  MarkTaskAsCompletedDto: () => MarkTaskAsCompletedDto,
311
+ MarkTaskQueryMessagesReadDto: () => MarkTaskQueryMessagesReadDto,
309
312
  McqStatusEnum: () => McqStatusEnum,
310
313
  ModeOfHire: () => ModeOfHire,
311
314
  ModeOfWork: () => ModeOfWork,
@@ -402,6 +405,7 @@ __export(index_exports, {
402
405
  TaskChecklistItem: () => TaskChecklistItem,
403
406
  TaskDeliverable: () => TaskDeliverable,
404
407
  TaskDeliverableTypeEnum: () => TaskDeliverableTypeEnum,
408
+ TaskLogTime: () => TaskLogTime,
405
409
  TaskPriorityEnum: () => TaskPriorityEnum,
406
410
  TaskQuery: () => TaskQuery,
407
411
  TaskQueryCategoryEnum: () => TaskQueryCategoryEnum,
@@ -1397,7 +1401,7 @@ __decorateClass([
1397
1401
  var import_class_validator37 = require("class-validator");
1398
1402
 
1399
1403
  // src/entities/user.entity.ts
1400
- var import_typeorm74 = require("typeorm");
1404
+ var import_typeorm75 = require("typeorm");
1401
1405
 
1402
1406
  // src/entities/base.entity.ts
1403
1407
  var import_typeorm = require("typeorm");
@@ -2226,7 +2230,7 @@ FreelancerProfile = __decorateClass([
2226
2230
  ], FreelancerProfile);
2227
2231
 
2228
2232
  // src/entities/job.entity.ts
2229
- var import_typeorm40 = require("typeorm");
2233
+ var import_typeorm41 = require("typeorm");
2230
2234
 
2231
2235
  // src/entities/job-skill.entity.ts
2232
2236
  var import_typeorm10 = require("typeorm");
@@ -4078,10 +4082,10 @@ Contract = __decorateClass([
4078
4082
  ], Contract);
4079
4083
 
4080
4084
  // src/entities/timesheets.entity.ts
4081
- var import_typeorm37 = require("typeorm");
4085
+ var import_typeorm38 = require("typeorm");
4082
4086
 
4083
4087
  // src/entities/task.entity.ts
4084
- var import_typeorm36 = require("typeorm");
4088
+ var import_typeorm37 = require("typeorm");
4085
4089
 
4086
4090
  // src/entities/task-deliverable.entity.ts
4087
4091
  var import_typeorm32 = require("typeorm");
@@ -4214,6 +4218,45 @@ TaskSubtask = __decorateClass([
4214
4218
  (0, import_typeorm35.Entity)("task_subtasks")
4215
4219
  ], TaskSubtask);
4216
4220
 
4221
+ // src/entities/task-logtime.entity.ts
4222
+ var import_typeorm36 = require("typeorm");
4223
+ var TaskLogTime = class extends BaseEntity {
4224
+ };
4225
+ __decorateClass([
4226
+ (0, import_typeorm36.Column)({ name: "task_id", type: "integer" }),
4227
+ (0, import_typeorm36.Index)()
4228
+ ], TaskLogTime.prototype, "taskId", 2);
4229
+ __decorateClass([
4230
+ (0, import_typeorm36.ManyToOne)(() => Task, (task) => task.taskLogTimes),
4231
+ (0, import_typeorm36.JoinColumn)({ name: "task_id" })
4232
+ ], TaskLogTime.prototype, "task", 2);
4233
+ __decorateClass([
4234
+ (0, import_typeorm36.Column)({ name: "start_date", type: "date", nullable: true })
4235
+ ], TaskLogTime.prototype, "startDate", 2);
4236
+ __decorateClass([
4237
+ (0, import_typeorm36.Column)({ name: "start_time", type: "time", nullable: true })
4238
+ ], TaskLogTime.prototype, "startTime", 2);
4239
+ __decorateClass([
4240
+ (0, import_typeorm36.Column)({ name: "end_date", type: "date", nullable: true })
4241
+ ], TaskLogTime.prototype, "endDate", 2);
4242
+ __decorateClass([
4243
+ (0, import_typeorm36.Column)({ name: "end_time", type: "time", nullable: true })
4244
+ ], TaskLogTime.prototype, "endTime", 2);
4245
+ __decorateClass([
4246
+ (0, import_typeorm36.Column)({ name: "log_hours", type: "varchar", nullable: true })
4247
+ ], TaskLogTime.prototype, "logHours", 2);
4248
+ __decorateClass([
4249
+ (0, import_typeorm36.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
4250
+ (0, import_typeorm36.Index)()
4251
+ ], TaskLogTime.prototype, "freelancerId", 2);
4252
+ __decorateClass([
4253
+ (0, import_typeorm36.Column)({ name: "job_id", type: "integer", nullable: true }),
4254
+ (0, import_typeorm36.Index)()
4255
+ ], TaskLogTime.prototype, "jobId", 2);
4256
+ TaskLogTime = __decorateClass([
4257
+ (0, import_typeorm36.Entity)("task_log_times")
4258
+ ], TaskLogTime);
4259
+
4217
4260
  // src/entities/task.entity.ts
4218
4261
  var TaskPriorityEnum = /* @__PURE__ */ ((TaskPriorityEnum2) => {
4219
4262
  TaskPriorityEnum2["LOW"] = "LOW";
@@ -4233,37 +4276,37 @@ var TaskStatusEnum = /* @__PURE__ */ ((TaskStatusEnum2) => {
4233
4276
  var Task = class extends BaseEntity {
4234
4277
  };
4235
4278
  __decorateClass([
4236
- (0, import_typeorm36.Column)({ name: "task_unique_id", type: "varchar", nullable: true, unique: true })
4279
+ (0, import_typeorm37.Column)({ name: "task_unique_id", type: "varchar", nullable: true, unique: true })
4237
4280
  ], Task.prototype, "taskUniqueId", 2);
4238
4281
  __decorateClass([
4239
- (0, import_typeorm36.Column)({ name: "job_id", type: "integer", nullable: true }),
4240
- (0, import_typeorm36.Index)()
4282
+ (0, import_typeorm37.Column)({ name: "job_id", type: "integer", nullable: true }),
4283
+ (0, import_typeorm37.Index)()
4241
4284
  ], Task.prototype, "jobId", 2);
4242
4285
  __decorateClass([
4243
- (0, import_typeorm36.ManyToOne)(() => Job, (job) => job.tasks),
4244
- (0, import_typeorm36.JoinColumn)({ name: "job_id" })
4286
+ (0, import_typeorm37.ManyToOne)(() => Job, (job) => job.tasks),
4287
+ (0, import_typeorm37.JoinColumn)({ name: "job_id" })
4245
4288
  ], Task.prototype, "job", 2);
4246
4289
  __decorateClass([
4247
- (0, import_typeorm36.Column)({ name: "client_id", type: "integer", nullable: true }),
4248
- (0, import_typeorm36.Index)()
4290
+ (0, import_typeorm37.Column)({ name: "client_id", type: "integer", nullable: true }),
4291
+ (0, import_typeorm37.Index)()
4249
4292
  ], Task.prototype, "clientId", 2);
4250
4293
  __decorateClass([
4251
- (0, import_typeorm36.ManyToOne)(() => User, (user) => user.clientTasks),
4252
- (0, import_typeorm36.JoinColumn)({ name: "client_id" })
4294
+ (0, import_typeorm37.ManyToOne)(() => User, (user) => user.clientTasks),
4295
+ (0, import_typeorm37.JoinColumn)({ name: "client_id" })
4253
4296
  ], Task.prototype, "client", 2);
4254
4297
  __decorateClass([
4255
- (0, import_typeorm36.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
4256
- (0, import_typeorm36.Index)()
4298
+ (0, import_typeorm37.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
4299
+ (0, import_typeorm37.Index)()
4257
4300
  ], Task.prototype, "freelancerId", 2);
4258
4301
  __decorateClass([
4259
- (0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerTasks),
4260
- (0, import_typeorm36.JoinColumn)({ name: "freelancer_id" })
4302
+ (0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerTasks),
4303
+ (0, import_typeorm37.JoinColumn)({ name: "freelancer_id" })
4261
4304
  ], Task.prototype, "freelancer", 2);
4262
4305
  __decorateClass([
4263
- (0, import_typeorm36.Column)({ name: "task_name", type: "varchar", nullable: true })
4306
+ (0, import_typeorm37.Column)({ name: "task_name", type: "varchar", nullable: true })
4264
4307
  ], Task.prototype, "taskName", 2);
4265
4308
  __decorateClass([
4266
- (0, import_typeorm36.Column)({
4309
+ (0, import_typeorm37.Column)({
4267
4310
  name: "status",
4268
4311
  type: "enum",
4269
4312
  enum: TaskStatusEnum,
@@ -4271,7 +4314,7 @@ __decorateClass([
4271
4314
  })
4272
4315
  ], Task.prototype, "status", 2);
4273
4316
  __decorateClass([
4274
- (0, import_typeorm36.Column)({
4317
+ (0, import_typeorm37.Column)({
4275
4318
  name: "priority",
4276
4319
  type: "enum",
4277
4320
  enum: TaskPriorityEnum,
@@ -4279,52 +4322,55 @@ __decorateClass([
4279
4322
  })
4280
4323
  ], Task.prototype, "priority", 2);
4281
4324
  __decorateClass([
4282
- (0, import_typeorm36.Column)({ name: "description", type: "varchar", nullable: true })
4325
+ (0, import_typeorm37.Column)({ name: "description", type: "varchar", nullable: true })
4283
4326
  ], Task.prototype, "description", 2);
4284
4327
  __decorateClass([
4285
- (0, import_typeorm36.Column)({
4328
+ (0, import_typeorm37.Column)({
4286
4329
  name: "due_date",
4287
4330
  type: "timestamp with time zone",
4288
4331
  nullable: true
4289
4332
  })
4290
4333
  ], Task.prototype, "dueDate", 2);
4291
4334
  __decorateClass([
4292
- (0, import_typeorm36.Column)({
4335
+ (0, import_typeorm37.Column)({
4293
4336
  name: "created_on",
4294
4337
  type: "timestamp with time zone",
4295
4338
  nullable: true
4296
4339
  })
4297
4340
  ], Task.prototype, "createdOn", 2);
4298
4341
  __decorateClass([
4299
- (0, import_typeorm36.Column)({
4342
+ (0, import_typeorm37.Column)({
4300
4343
  name: "estimate_hours",
4301
4344
  type: "integer",
4302
4345
  nullable: true
4303
4346
  })
4304
4347
  ], Task.prototype, "estimateHours", 2);
4305
4348
  __decorateClass([
4306
- (0, import_typeorm36.Column)({ name: "client_remarks", type: "varchar", nullable: true })
4349
+ (0, import_typeorm37.Column)({ name: "client_remarks", type: "varchar", nullable: true })
4307
4350
  ], Task.prototype, "clientRemarks", 2);
4308
4351
  __decorateClass([
4309
- (0, import_typeorm36.Column)({ name: "freelancer_work_note", type: "varchar", nullable: true })
4352
+ (0, import_typeorm37.Column)({ name: "freelancer_work_note", type: "varchar", nullable: true })
4310
4353
  ], Task.prototype, "freelancerWorkNote", 2);
4311
4354
  __decorateClass([
4312
- (0, import_typeorm36.OneToMany)(() => TaskDeliverable, (taskDeliverable) => taskDeliverable.task, { cascade: true })
4355
+ (0, import_typeorm37.OneToMany)(() => TaskDeliverable, (taskDeliverable) => taskDeliverable.task, { cascade: true })
4313
4356
  ], Task.prototype, "deliverables", 2);
4314
4357
  __decorateClass([
4315
- (0, import_typeorm36.OneToMany)(() => TaskResource, (taskResource) => taskResource.task, { cascade: true })
4358
+ (0, import_typeorm37.OneToMany)(() => TaskResource, (taskResource) => taskResource.task, { cascade: true })
4316
4359
  ], Task.prototype, "resources", 2);
4317
4360
  __decorateClass([
4318
- (0, import_typeorm36.OneToMany)(() => TaskChecklistItem, (taskChecklistItem) => taskChecklistItem.task, { cascade: true })
4361
+ (0, import_typeorm37.OneToMany)(() => TaskChecklistItem, (taskChecklistItem) => taskChecklistItem.task, { cascade: true })
4319
4362
  ], Task.prototype, "checklistItems", 2);
4320
4363
  __decorateClass([
4321
- (0, import_typeorm36.OneToMany)(() => TaskSubtask, (taskSubtask) => taskSubtask.task, { cascade: true })
4364
+ (0, import_typeorm37.OneToMany)(() => TaskSubtask, (taskSubtask) => taskSubtask.task, { cascade: true })
4322
4365
  ], Task.prototype, "subtasks", 2);
4323
4366
  __decorateClass([
4324
- (0, import_typeorm36.OneToMany)(() => Timesheet, (timesheet) => timesheet.task, { cascade: true })
4367
+ (0, import_typeorm37.OneToMany)(() => Timesheet, (timesheet) => timesheet.task, { cascade: true })
4325
4368
  ], Task.prototype, "timesheets", 2);
4369
+ __decorateClass([
4370
+ (0, import_typeorm37.OneToMany)(() => TaskLogTime, (taskLogTime) => taskLogTime.task, { cascade: true })
4371
+ ], Task.prototype, "taskLogTimes", 2);
4326
4372
  Task = __decorateClass([
4327
- (0, import_typeorm36.Entity)("tasks")
4373
+ (0, import_typeorm37.Entity)("tasks")
4328
4374
  ], Task);
4329
4375
 
4330
4376
  // src/entities/timesheets.entity.ts
@@ -4340,144 +4386,144 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
4340
4386
  var Timesheet = class extends BaseEntity {
4341
4387
  };
4342
4388
  __decorateClass([
4343
- (0, import_typeorm37.Column)({ name: "job_id", type: "integer", nullable: true }),
4344
- (0, import_typeorm37.Index)()
4389
+ (0, import_typeorm38.Column)({ name: "job_id", type: "integer", nullable: true }),
4390
+ (0, import_typeorm38.Index)()
4345
4391
  ], Timesheet.prototype, "jobId", 2);
4346
4392
  __decorateClass([
4347
- (0, import_typeorm37.ManyToOne)(() => Job, (job) => job.timesheets),
4348
- (0, import_typeorm37.JoinColumn)({ name: "job_id" })
4393
+ (0, import_typeorm38.ManyToOne)(() => Job, (job) => job.timesheets),
4394
+ (0, import_typeorm38.JoinColumn)({ name: "job_id" })
4349
4395
  ], Timesheet.prototype, "job", 2);
4350
4396
  __decorateClass([
4351
- (0, import_typeorm37.Column)({ name: "client_id", type: "integer", nullable: true }),
4352
- (0, import_typeorm37.Index)()
4397
+ (0, import_typeorm38.Column)({ name: "client_id", type: "integer", nullable: true }),
4398
+ (0, import_typeorm38.Index)()
4353
4399
  ], Timesheet.prototype, "clientId", 2);
4354
4400
  __decorateClass([
4355
- (0, import_typeorm37.ManyToOne)(() => User, (user) => user.clientTimesheets),
4356
- (0, import_typeorm37.JoinColumn)({ name: "client_id" })
4401
+ (0, import_typeorm38.ManyToOne)(() => User, (user) => user.clientTimesheets),
4402
+ (0, import_typeorm38.JoinColumn)({ name: "client_id" })
4357
4403
  ], Timesheet.prototype, "client", 2);
4358
4404
  __decorateClass([
4359
- (0, import_typeorm37.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
4360
- (0, import_typeorm37.Index)()
4405
+ (0, import_typeorm38.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
4406
+ (0, import_typeorm38.Index)()
4361
4407
  ], Timesheet.prototype, "freelancerId", 2);
4362
4408
  __decorateClass([
4363
- (0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
4364
- (0, import_typeorm37.JoinColumn)({ name: "freelancer_id" })
4409
+ (0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
4410
+ (0, import_typeorm38.JoinColumn)({ name: "freelancer_id" })
4365
4411
  ], Timesheet.prototype, "freelancer", 2);
4366
4412
  __decorateClass([
4367
- (0, import_typeorm37.Column)({
4413
+ (0, import_typeorm38.Column)({
4368
4414
  name: "start_date",
4369
4415
  type: "date",
4370
4416
  nullable: true
4371
4417
  })
4372
4418
  ], Timesheet.prototype, "startDate", 2);
4373
4419
  __decorateClass([
4374
- (0, import_typeorm37.Column)({
4420
+ (0, import_typeorm38.Column)({
4375
4421
  name: "end_date",
4376
4422
  type: "date",
4377
4423
  nullable: true
4378
4424
  })
4379
4425
  ], Timesheet.prototype, "endDate", 2);
4380
4426
  __decorateClass([
4381
- (0, import_typeorm37.Column)({ name: "start_time", type: "varchar", nullable: true })
4427
+ (0, import_typeorm38.Column)({ name: "start_time", type: "varchar", nullable: true })
4382
4428
  ], Timesheet.prototype, "startTime", 2);
4383
4429
  __decorateClass([
4384
- (0, import_typeorm37.Column)({ name: "end_time", type: "varchar", nullable: true })
4430
+ (0, import_typeorm38.Column)({ name: "end_time", type: "varchar", nullable: true })
4385
4431
  ], Timesheet.prototype, "endTime", 2);
4386
4432
  __decorateClass([
4387
- (0, import_typeorm37.Column)({ name: "worked_hours", type: "varchar", nullable: true })
4433
+ (0, import_typeorm38.Column)({ name: "worked_hours", type: "varchar", nullable: true })
4388
4434
  ], Timesheet.prototype, "workedHours", 2);
4389
4435
  __decorateClass([
4390
- (0, import_typeorm37.Column)({ name: "task_id", type: "integer", nullable: true })
4436
+ (0, import_typeorm38.Column)({ name: "task_id", type: "integer", nullable: true })
4391
4437
  ], Timesheet.prototype, "taskId", 2);
4392
4438
  __decorateClass([
4393
- (0, import_typeorm37.ManyToOne)(() => Task, (task) => task.timesheets),
4394
- (0, import_typeorm37.JoinColumn)({ name: "task_id" })
4439
+ (0, import_typeorm38.ManyToOne)(() => Task, (task) => task.timesheets),
4440
+ (0, import_typeorm38.JoinColumn)({ name: "task_id" })
4395
4441
  ], Timesheet.prototype, "task", 2);
4396
4442
  __decorateClass([
4397
- (0, import_typeorm37.Column)({ name: "task_name", type: "varchar", nullable: true })
4443
+ (0, import_typeorm38.Column)({ name: "task_name", type: "varchar", nullable: true })
4398
4444
  ], Timesheet.prototype, "taskName", 2);
4399
4445
  __decorateClass([
4400
- (0, import_typeorm37.Column)({ name: "description", type: "varchar", nullable: true })
4446
+ (0, import_typeorm38.Column)({ name: "description", type: "varchar", nullable: true })
4401
4447
  ], Timesheet.prototype, "description", 2);
4402
4448
  __decorateClass([
4403
- (0, import_typeorm37.Column)({ name: "week_start_date", type: "date", nullable: true })
4449
+ (0, import_typeorm38.Column)({ name: "week_start_date", type: "date", nullable: true })
4404
4450
  ], Timesheet.prototype, "weekStartDate", 2);
4405
4451
  __decorateClass([
4406
- (0, import_typeorm37.Column)({ name: "week_end_date", type: "date", nullable: true })
4452
+ (0, import_typeorm38.Column)({ name: "week_end_date", type: "date", nullable: true })
4407
4453
  ], Timesheet.prototype, "weekEndDate", 2);
4408
4454
  __decorateClass([
4409
- (0, import_typeorm37.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4455
+ (0, import_typeorm38.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4410
4456
  ], Timesheet.prototype, "rejectedAt", 2);
4411
4457
  __decorateClass([
4412
- (0, import_typeorm37.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4458
+ (0, import_typeorm38.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4413
4459
  ], Timesheet.prototype, "submittedAt", 2);
4414
4460
  __decorateClass([
4415
- (0, import_typeorm37.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4461
+ (0, import_typeorm38.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4416
4462
  ], Timesheet.prototype, "resubmittedAt", 2);
4417
4463
  __decorateClass([
4418
- (0, import_typeorm37.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4464
+ (0, import_typeorm38.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4419
4465
  ], Timesheet.prototype, "approvedAt", 2);
4420
4466
  __decorateClass([
4421
- (0, import_typeorm37.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4467
+ (0, import_typeorm38.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4422
4468
  ], Timesheet.prototype, "status", 2);
4423
4469
  __decorateClass([
4424
- (0, import_typeorm37.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
4470
+ (0, import_typeorm38.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
4425
4471
  ], Timesheet.prototype, "clientSendBackReason", 2);
4426
4472
  Timesheet = __decorateClass([
4427
- (0, import_typeorm37.Entity)("timesheets")
4473
+ (0, import_typeorm38.Entity)("timesheets")
4428
4474
  ], Timesheet);
4429
4475
 
4430
4476
  // src/entities/job-location.entity.ts
4431
- var import_typeorm38 = require("typeorm");
4477
+ var import_typeorm39 = require("typeorm");
4432
4478
  var JobLocation = class extends BaseEntity {
4433
4479
  };
4434
4480
  __decorateClass([
4435
- (0, import_typeorm38.Column)({ name: "job_id", type: "integer", nullable: false }),
4436
- (0, import_typeorm38.Index)()
4481
+ (0, import_typeorm39.Column)({ name: "job_id", type: "integer", nullable: false }),
4482
+ (0, import_typeorm39.Index)()
4437
4483
  ], JobLocation.prototype, "jobId", 2);
4438
4484
  __decorateClass([
4439
- (0, import_typeorm38.ManyToOne)(() => Job, (job) => job.jobLocations),
4440
- (0, import_typeorm38.JoinColumn)({ name: "job_id" })
4485
+ (0, import_typeorm39.ManyToOne)(() => Job, (job) => job.jobLocations),
4486
+ (0, import_typeorm39.JoinColumn)({ name: "job_id" })
4441
4487
  ], JobLocation.prototype, "job", 2);
4442
4488
  __decorateClass([
4443
- (0, import_typeorm38.Column)({ name: "country_id", type: "int", nullable: false })
4489
+ (0, import_typeorm39.Column)({ name: "country_id", type: "int", nullable: false })
4444
4490
  ], JobLocation.prototype, "countryId", 2);
4445
4491
  __decorateClass([
4446
- (0, import_typeorm38.Column)({ name: "country_name", type: "varchar", nullable: true })
4492
+ (0, import_typeorm39.Column)({ name: "country_name", type: "varchar", nullable: true })
4447
4493
  ], JobLocation.prototype, "countryName", 2);
4448
4494
  __decorateClass([
4449
- (0, import_typeorm38.ManyToOne)(() => Country),
4450
- (0, import_typeorm38.JoinColumn)({ name: "country_id" })
4495
+ (0, import_typeorm39.ManyToOne)(() => Country),
4496
+ (0, import_typeorm39.JoinColumn)({ name: "country_id" })
4451
4497
  ], JobLocation.prototype, "country", 2);
4452
4498
  __decorateClass([
4453
- (0, import_typeorm38.Column)({ name: "state_id", type: "int", nullable: false })
4499
+ (0, import_typeorm39.Column)({ name: "state_id", type: "int", nullable: false })
4454
4500
  ], JobLocation.prototype, "stateId", 2);
4455
4501
  __decorateClass([
4456
- (0, import_typeorm38.Column)({ name: "state_name", type: "varchar", nullable: true })
4502
+ (0, import_typeorm39.Column)({ name: "state_name", type: "varchar", nullable: true })
4457
4503
  ], JobLocation.prototype, "stateName", 2);
4458
4504
  __decorateClass([
4459
- (0, import_typeorm38.ManyToOne)(() => State),
4460
- (0, import_typeorm38.JoinColumn)({ name: "state_id" })
4505
+ (0, import_typeorm39.ManyToOne)(() => State),
4506
+ (0, import_typeorm39.JoinColumn)({ name: "state_id" })
4461
4507
  ], JobLocation.prototype, "state", 2);
4462
4508
  __decorateClass([
4463
- (0, import_typeorm38.Column)({ name: "city_id", type: "int", nullable: false })
4509
+ (0, import_typeorm39.Column)({ name: "city_id", type: "int", nullable: false })
4464
4510
  ], JobLocation.prototype, "cityId", 2);
4465
4511
  __decorateClass([
4466
- (0, import_typeorm38.Column)({ name: "city_name", type: "varchar", nullable: true })
4512
+ (0, import_typeorm39.Column)({ name: "city_name", type: "varchar", nullable: true })
4467
4513
  ], JobLocation.prototype, "cityName", 2);
4468
4514
  __decorateClass([
4469
- (0, import_typeorm38.ManyToOne)(() => City),
4470
- (0, import_typeorm38.JoinColumn)({ name: "city_id" })
4515
+ (0, import_typeorm39.ManyToOne)(() => City),
4516
+ (0, import_typeorm39.JoinColumn)({ name: "city_id" })
4471
4517
  ], JobLocation.prototype, "city", 2);
4472
4518
  __decorateClass([
4473
- (0, import_typeorm38.Column)({ name: "location_wise_openings", type: "int", default: 0 })
4519
+ (0, import_typeorm39.Column)({ name: "location_wise_openings", type: "int", default: 0 })
4474
4520
  ], JobLocation.prototype, "locationWiseOpenings", 2);
4475
4521
  JobLocation = __decorateClass([
4476
- (0, import_typeorm38.Entity)("job_locations")
4522
+ (0, import_typeorm39.Entity)("job_locations")
4477
4523
  ], JobLocation);
4478
4524
 
4479
4525
  // src/entities/rating.entity.ts
4480
- var import_typeorm39 = require("typeorm");
4526
+ var import_typeorm40 = require("typeorm");
4481
4527
  var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
4482
4528
  RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
4483
4529
  RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
@@ -4486,31 +4532,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
4486
4532
  var Rating = class extends BaseEntity {
4487
4533
  };
4488
4534
  __decorateClass([
4489
- (0, import_typeorm39.Column)({ name: "reviewer_id", type: "integer" }),
4490
- (0, import_typeorm39.Index)()
4535
+ (0, import_typeorm40.Column)({ name: "reviewer_id", type: "integer" }),
4536
+ (0, import_typeorm40.Index)()
4491
4537
  ], Rating.prototype, "reviewerId", 2);
4492
4538
  __decorateClass([
4493
- (0, import_typeorm39.ManyToOne)(() => User, { onDelete: "CASCADE" }),
4494
- (0, import_typeorm39.JoinColumn)({ name: "reviewer_id" })
4539
+ (0, import_typeorm40.ManyToOne)(() => User, { onDelete: "CASCADE" }),
4540
+ (0, import_typeorm40.JoinColumn)({ name: "reviewer_id" })
4495
4541
  ], Rating.prototype, "reviewer", 2);
4496
4542
  __decorateClass([
4497
- (0, import_typeorm39.Column)({ name: "reviewee_id", type: "integer" }),
4498
- (0, import_typeorm39.Index)()
4543
+ (0, import_typeorm40.Column)({ name: "reviewee_id", type: "integer" }),
4544
+ (0, import_typeorm40.Index)()
4499
4545
  ], Rating.prototype, "revieweeId", 2);
4500
4546
  __decorateClass([
4501
- (0, import_typeorm39.ManyToOne)(() => User, { onDelete: "CASCADE" }),
4502
- (0, import_typeorm39.JoinColumn)({ name: "reviewee_id" })
4547
+ (0, import_typeorm40.ManyToOne)(() => User, { onDelete: "CASCADE" }),
4548
+ (0, import_typeorm40.JoinColumn)({ name: "reviewee_id" })
4503
4549
  ], Rating.prototype, "reviewee", 2);
4504
4550
  __decorateClass([
4505
- (0, import_typeorm39.Column)({ name: "job_id", type: "integer" }),
4506
- (0, import_typeorm39.Index)()
4551
+ (0, import_typeorm40.Column)({ name: "job_id", type: "integer" }),
4552
+ (0, import_typeorm40.Index)()
4507
4553
  ], Rating.prototype, "jobId", 2);
4508
4554
  __decorateClass([
4509
- (0, import_typeorm39.ManyToOne)(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
4510
- (0, import_typeorm39.JoinColumn)({ name: "job_id" })
4555
+ (0, import_typeorm40.ManyToOne)(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
4556
+ (0, import_typeorm40.JoinColumn)({ name: "job_id" })
4511
4557
  ], Rating.prototype, "job", 2);
4512
4558
  __decorateClass([
4513
- (0, import_typeorm39.Column)({
4559
+ (0, import_typeorm40.Column)({
4514
4560
  name: "rating_type",
4515
4561
  type: "enum",
4516
4562
  enum: RatingTypeEnum,
@@ -4518,67 +4564,67 @@ __decorateClass([
4518
4564
  })
4519
4565
  ], Rating.prototype, "ratingType", 2);
4520
4566
  __decorateClass([
4521
- (0, import_typeorm39.Column)({ name: "reviewer_comment", type: "text", nullable: true })
4567
+ (0, import_typeorm40.Column)({ name: "reviewer_comment", type: "text", nullable: true })
4522
4568
  ], Rating.prototype, "reviewerComment", 2);
4523
4569
  __decorateClass([
4524
- (0, import_typeorm39.Column)({
4570
+ (0, import_typeorm40.Column)({
4525
4571
  name: "overall_experience",
4526
4572
  type: "float",
4527
4573
  default: 0
4528
4574
  })
4529
4575
  ], Rating.prototype, "overAllExperience", 2);
4530
4576
  __decorateClass([
4531
- (0, import_typeorm39.Column)({
4577
+ (0, import_typeorm40.Column)({
4532
4578
  name: "work_quality",
4533
4579
  type: "float",
4534
4580
  default: 0
4535
4581
  })
4536
4582
  ], Rating.prototype, "workQuality", 2);
4537
4583
  __decorateClass([
4538
- (0, import_typeorm39.Column)({
4584
+ (0, import_typeorm40.Column)({
4539
4585
  name: "one_time_delivery",
4540
4586
  type: "float",
4541
4587
  default: 0
4542
4588
  })
4543
4589
  ], Rating.prototype, "oneTimeDelivery", 2);
4544
4590
  __decorateClass([
4545
- (0, import_typeorm39.Column)({
4591
+ (0, import_typeorm40.Column)({
4546
4592
  name: "understaning",
4547
4593
  type: "float",
4548
4594
  default: 0
4549
4595
  })
4550
4596
  ], Rating.prototype, "understaning", 2);
4551
4597
  __decorateClass([
4552
- (0, import_typeorm39.Column)({
4598
+ (0, import_typeorm40.Column)({
4553
4599
  name: "communication",
4554
4600
  type: "float",
4555
4601
  default: 0
4556
4602
  })
4557
4603
  ], Rating.prototype, "communication", 2);
4558
4604
  __decorateClass([
4559
- (0, import_typeorm39.Column)({
4605
+ (0, import_typeorm40.Column)({
4560
4606
  name: "skill_utilized",
4561
4607
  type: "float",
4562
4608
  default: 0
4563
4609
  })
4564
4610
  ], Rating.prototype, "skillUtilized", 2);
4565
4611
  __decorateClass([
4566
- (0, import_typeorm39.Column)({ name: "communication_clarity", type: "float", default: 0 })
4612
+ (0, import_typeorm40.Column)({ name: "communication_clarity", type: "float", default: 0 })
4567
4613
  ], Rating.prototype, "communicationClarity", 2);
4568
4614
  __decorateClass([
4569
- (0, import_typeorm39.Column)({ name: "requirements_clarity", type: "float", default: 0 })
4615
+ (0, import_typeorm40.Column)({ name: "requirements_clarity", type: "float", default: 0 })
4570
4616
  ], Rating.prototype, "requirementsClarity", 2);
4571
4617
  __decorateClass([
4572
- (0, import_typeorm39.Column)({ name: "responsiveness", type: "float", default: 0 })
4618
+ (0, import_typeorm40.Column)({ name: "responsiveness", type: "float", default: 0 })
4573
4619
  ], Rating.prototype, "responsiveness", 2);
4574
4620
  __decorateClass([
4575
- (0, import_typeorm39.Column)({ name: "payment_promptness", type: "float", default: 0 })
4621
+ (0, import_typeorm40.Column)({ name: "payment_promptness", type: "float", default: 0 })
4576
4622
  ], Rating.prototype, "paymentPromptness", 2);
4577
4623
  __decorateClass([
4578
- (0, import_typeorm39.Column)({ name: "responsibilities_and_expectations", type: "float", default: 0 })
4624
+ (0, import_typeorm40.Column)({ name: "responsibilities_and_expectations", type: "float", default: 0 })
4579
4625
  ], Rating.prototype, "responsibilitiesAndExpectations", 2);
4580
4626
  Rating = __decorateClass([
4581
- (0, import_typeorm39.Entity)("ratings")
4627
+ (0, import_typeorm40.Entity)("ratings")
4582
4628
  ], Rating);
4583
4629
 
4584
4630
  // src/entities/job.entity.ts
@@ -4633,58 +4679,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
4633
4679
  var Job = class extends BaseEntity {
4634
4680
  };
4635
4681
  __decorateClass([
4636
- (0, import_typeorm40.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
4682
+ (0, import_typeorm41.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
4637
4683
  ], Job.prototype, "jobId", 2);
4638
4684
  // individual index to find jobs by user
4639
4685
  __decorateClass([
4640
- (0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
4641
- (0, import_typeorm40.Index)()
4686
+ (0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
4687
+ (0, import_typeorm41.Index)()
4642
4688
  ], Job.prototype, "userId", 2);
4643
4689
  __decorateClass([
4644
- (0, import_typeorm40.ManyToOne)(() => User, (user) => user.jobs),
4645
- (0, import_typeorm40.JoinColumn)({ name: "user_id" })
4690
+ (0, import_typeorm41.ManyToOne)(() => User, (user) => user.jobs),
4691
+ (0, import_typeorm41.JoinColumn)({ name: "user_id" })
4646
4692
  ], Job.prototype, "user", 2);
4647
4693
  __decorateClass([
4648
- (0, import_typeorm40.Column)({ name: "country_id", type: "int", nullable: true })
4694
+ (0, import_typeorm41.Column)({ name: "country_id", type: "int", nullable: true })
4649
4695
  ], Job.prototype, "countryId", 2);
4650
4696
  __decorateClass([
4651
- (0, import_typeorm40.ManyToOne)(() => Country),
4652
- (0, import_typeorm40.JoinColumn)({ name: "country_id" })
4697
+ (0, import_typeorm41.ManyToOne)(() => Country),
4698
+ (0, import_typeorm41.JoinColumn)({ name: "country_id" })
4653
4699
  ], Job.prototype, "country", 2);
4654
4700
  __decorateClass([
4655
- (0, import_typeorm40.Column)({ name: "state_id", type: "int", nullable: true })
4701
+ (0, import_typeorm41.Column)({ name: "state_id", type: "int", nullable: true })
4656
4702
  ], Job.prototype, "stateId", 2);
4657
4703
  __decorateClass([
4658
- (0, import_typeorm40.ManyToOne)(() => State),
4659
- (0, import_typeorm40.JoinColumn)({ name: "state_id" })
4704
+ (0, import_typeorm41.ManyToOne)(() => State),
4705
+ (0, import_typeorm41.JoinColumn)({ name: "state_id" })
4660
4706
  ], Job.prototype, "state", 2);
4661
4707
  __decorateClass([
4662
- (0, import_typeorm40.Column)({ name: "city_id", type: "int", nullable: true })
4708
+ (0, import_typeorm41.Column)({ name: "city_id", type: "int", nullable: true })
4663
4709
  ], Job.prototype, "cityId", 2);
4664
4710
  __decorateClass([
4665
- (0, import_typeorm40.ManyToOne)(() => City),
4666
- (0, import_typeorm40.JoinColumn)({ name: "city_id" })
4711
+ (0, import_typeorm41.ManyToOne)(() => City),
4712
+ (0, import_typeorm41.JoinColumn)({ name: "city_id" })
4667
4713
  ], Job.prototype, "city", 2);
4668
4714
  __decorateClass([
4669
- (0, import_typeorm40.Column)({ name: "job_role", type: "varchar", nullable: true })
4715
+ (0, import_typeorm41.Column)({ name: "job_role", type: "varchar", nullable: true })
4670
4716
  ], Job.prototype, "jobRole", 2);
4671
4717
  __decorateClass([
4672
- (0, import_typeorm40.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4718
+ (0, import_typeorm41.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4673
4719
  ], Job.prototype, "jobRoleCanonicalName", 2);
4674
4720
  __decorateClass([
4675
- (0, import_typeorm40.Column)({ name: "project_name", type: "varchar", nullable: true })
4721
+ (0, import_typeorm41.Column)({ name: "project_name", type: "varchar", nullable: true })
4676
4722
  ], Job.prototype, "projectName", 2);
4677
4723
  __decorateClass([
4678
- (0, import_typeorm40.Column)({ name: "note", type: "varchar", nullable: true })
4724
+ (0, import_typeorm41.Column)({ name: "note", type: "varchar", nullable: true })
4679
4725
  ], Job.prototype, "note", 2);
4680
4726
  __decorateClass([
4681
- (0, import_typeorm40.Column)({ name: "openings", type: "integer", default: 0 })
4727
+ (0, import_typeorm41.Column)({ name: "openings", type: "integer", default: 0 })
4682
4728
  ], Job.prototype, "openings", 2);
4683
4729
  __decorateClass([
4684
- (0, import_typeorm40.Column)({ name: "utilised_openings", type: "integer", default: 0 })
4730
+ (0, import_typeorm41.Column)({ name: "utilised_openings", type: "integer", default: 0 })
4685
4731
  ], Job.prototype, "utilisedOpenings", 2);
4686
4732
  __decorateClass([
4687
- (0, import_typeorm40.Column)({
4733
+ (0, import_typeorm41.Column)({
4688
4734
  name: "location",
4689
4735
  type: "enum",
4690
4736
  enum: JobLocationEnum,
@@ -4692,7 +4738,7 @@ __decorateClass([
4692
4738
  })
4693
4739
  ], Job.prototype, "location", 2);
4694
4740
  __decorateClass([
4695
- (0, import_typeorm40.Column)({
4741
+ (0, import_typeorm41.Column)({
4696
4742
  name: "type_of_employment",
4697
4743
  type: "enum",
4698
4744
  enum: TypeOfEmploymentEnum,
@@ -4700,7 +4746,7 @@ __decorateClass([
4700
4746
  })
4701
4747
  ], Job.prototype, "typeOfEmployment", 2);
4702
4748
  __decorateClass([
4703
- (0, import_typeorm40.Column)({
4749
+ (0, import_typeorm41.Column)({
4704
4750
  name: "billing_cycle",
4705
4751
  type: "enum",
4706
4752
  enum: BillingCycleEnum,
@@ -4708,10 +4754,10 @@ __decorateClass([
4708
4754
  })
4709
4755
  ], Job.prototype, "billingCycle", 2);
4710
4756
  __decorateClass([
4711
- (0, import_typeorm40.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4757
+ (0, import_typeorm41.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4712
4758
  ], Job.prototype, "academicQualification", 2);
4713
4759
  __decorateClass([
4714
- (0, import_typeorm40.Column)({
4760
+ (0, import_typeorm41.Column)({
4715
4761
  name: "type_of_experience",
4716
4762
  type: "enum",
4717
4763
  enum: typeOfExperienceEnum,
@@ -4719,22 +4765,22 @@ __decorateClass([
4719
4765
  })
4720
4766
  ], Job.prototype, "typeOfExperience", 2);
4721
4767
  __decorateClass([
4722
- (0, import_typeorm40.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
4768
+ (0, import_typeorm41.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
4723
4769
  ], Job.prototype, "yearsOfExperience", 2);
4724
4770
  __decorateClass([
4725
- (0, import_typeorm40.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
4771
+ (0, import_typeorm41.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
4726
4772
  ], Job.prototype, "yearsOfExperienceFrom", 2);
4727
4773
  __decorateClass([
4728
- (0, import_typeorm40.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
4774
+ (0, import_typeorm41.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
4729
4775
  ], Job.prototype, "yearsOfExperienceTo", 2);
4730
4776
  __decorateClass([
4731
- (0, import_typeorm40.Column)({ name: "business_industry", type: "varchar", nullable: true })
4777
+ (0, import_typeorm41.Column)({ name: "business_industry", type: "varchar", nullable: true })
4732
4778
  ], Job.prototype, "businessIndustry", 2);
4733
4779
  __decorateClass([
4734
- (0, import_typeorm40.Column)({ name: "currency", type: "varchar", default: "USD" })
4780
+ (0, import_typeorm41.Column)({ name: "currency", type: "varchar", default: "USD" })
4735
4781
  ], Job.prototype, "currency", 2);
4736
4782
  __decorateClass([
4737
- (0, import_typeorm40.Column)({
4783
+ (0, import_typeorm41.Column)({
4738
4784
  name: "expected_salary_from",
4739
4785
  type: "decimal",
4740
4786
  precision: 10,
@@ -4743,14 +4789,14 @@ __decorateClass([
4743
4789
  })
4744
4790
  ], Job.prototype, "expectedSalaryFrom", 2);
4745
4791
  __decorateClass([
4746
- (0, import_typeorm40.Column)({
4792
+ (0, import_typeorm41.Column)({
4747
4793
  name: "hide_expected_salary_from",
4748
4794
  type: "boolean",
4749
4795
  default: false
4750
4796
  })
4751
4797
  ], Job.prototype, "hideExpectedSalaryFrom", 2);
4752
4798
  __decorateClass([
4753
- (0, import_typeorm40.Column)({
4799
+ (0, import_typeorm41.Column)({
4754
4800
  name: "expected_salary_to",
4755
4801
  type: "decimal",
4756
4802
  precision: 10,
@@ -4759,14 +4805,14 @@ __decorateClass([
4759
4805
  })
4760
4806
  ], Job.prototype, "expectedSalaryTo", 2);
4761
4807
  __decorateClass([
4762
- (0, import_typeorm40.Column)({
4808
+ (0, import_typeorm41.Column)({
4763
4809
  name: "hide_expected_salary_to",
4764
4810
  type: "boolean",
4765
4811
  default: false
4766
4812
  })
4767
4813
  ], Job.prototype, "hideExpectedSalaryTo", 2);
4768
4814
  __decorateClass([
4769
- (0, import_typeorm40.Column)({
4815
+ (0, import_typeorm41.Column)({
4770
4816
  name: "expected_annual_budget_from",
4771
4817
  type: "decimal",
4772
4818
  precision: 10,
@@ -4775,14 +4821,14 @@ __decorateClass([
4775
4821
  })
4776
4822
  ], Job.prototype, "expectedAnnualBudgetFrom", 2);
4777
4823
  __decorateClass([
4778
- (0, import_typeorm40.Column)({
4824
+ (0, import_typeorm41.Column)({
4779
4825
  name: "hide_expected_annual_budget_from",
4780
4826
  type: "boolean",
4781
4827
  default: false
4782
4828
  })
4783
4829
  ], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
4784
4830
  __decorateClass([
4785
- (0, import_typeorm40.Column)({
4831
+ (0, import_typeorm41.Column)({
4786
4832
  name: "expected_annual_budget_to",
4787
4833
  type: "decimal",
4788
4834
  precision: 10,
@@ -4791,32 +4837,32 @@ __decorateClass([
4791
4837
  })
4792
4838
  ], Job.prototype, "expectedAnnualBudgetTo", 2);
4793
4839
  __decorateClass([
4794
- (0, import_typeorm40.Column)({
4840
+ (0, import_typeorm41.Column)({
4795
4841
  name: "hide_expected_annual_budget_to",
4796
4842
  type: "boolean",
4797
4843
  default: false
4798
4844
  })
4799
4845
  ], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
4800
4846
  __decorateClass([
4801
- (0, import_typeorm40.Column)({ name: "years", type: "varchar", nullable: true })
4847
+ (0, import_typeorm41.Column)({ name: "years", type: "varchar", nullable: true })
4802
4848
  ], Job.prototype, "years", 2);
4803
4849
  __decorateClass([
4804
- (0, import_typeorm40.Column)({ name: "months", type: "varchar", nullable: true })
4850
+ (0, import_typeorm41.Column)({ name: "months", type: "varchar", nullable: true })
4805
4851
  ], Job.prototype, "months", 2);
4806
4852
  __decorateClass([
4807
- (0, import_typeorm40.Column)({ name: "weeks", type: "varchar", nullable: true })
4853
+ (0, import_typeorm41.Column)({ name: "weeks", type: "varchar", nullable: true })
4808
4854
  ], Job.prototype, "weeks", 2);
4809
4855
  __decorateClass([
4810
- (0, import_typeorm40.Column)({ name: "days", type: "varchar", nullable: true })
4856
+ (0, import_typeorm41.Column)({ name: "days", type: "varchar", nullable: true })
4811
4857
  ], Job.prototype, "days", 2);
4812
4858
  __decorateClass([
4813
- (0, import_typeorm40.Column)({ name: "tentative_start_date", type: "date", nullable: true })
4859
+ (0, import_typeorm41.Column)({ name: "tentative_start_date", type: "date", nullable: true })
4814
4860
  ], Job.prototype, "tentativeStartDate", 2);
4815
4861
  __decorateClass([
4816
- (0, import_typeorm40.Column)({ name: "tentative_end_date", type: "date", nullable: true })
4862
+ (0, import_typeorm41.Column)({ name: "tentative_end_date", type: "date", nullable: true })
4817
4863
  ], Job.prototype, "tentativeEndDate", 2);
4818
4864
  __decorateClass([
4819
- (0, import_typeorm40.Column)({
4865
+ (0, import_typeorm41.Column)({
4820
4866
  name: "duration_type",
4821
4867
  type: "enum",
4822
4868
  enum: DurationTypeEnum,
@@ -4824,10 +4870,10 @@ __decorateClass([
4824
4870
  })
4825
4871
  ], Job.prototype, "durationType", 2);
4826
4872
  __decorateClass([
4827
- (0, import_typeorm40.Column)({ name: "duration", type: "varchar", nullable: true })
4873
+ (0, import_typeorm41.Column)({ name: "duration", type: "varchar", nullable: true })
4828
4874
  ], Job.prototype, "duration", 2);
4829
4875
  __decorateClass([
4830
- (0, import_typeorm40.Column)({
4876
+ (0, import_typeorm41.Column)({
4831
4877
  name: "number_of_hours",
4832
4878
  type: "decimal",
4833
4879
  precision: 4,
@@ -4836,13 +4882,13 @@ __decorateClass([
4836
4882
  })
4837
4883
  ], Job.prototype, "numberOfHours", 2);
4838
4884
  __decorateClass([
4839
- (0, import_typeorm40.Column)({ name: "description", type: "varchar", nullable: true })
4885
+ (0, import_typeorm41.Column)({ name: "description", type: "varchar", nullable: true })
4840
4886
  ], Job.prototype, "description", 2);
4841
4887
  __decorateClass([
4842
- (0, import_typeorm40.Column)({ name: "additional_comment", type: "varchar", nullable: true })
4888
+ (0, import_typeorm41.Column)({ name: "additional_comment", type: "varchar", nullable: true })
4843
4889
  ], Job.prototype, "additionalComment", 2);
4844
4890
  __decorateClass([
4845
- (0, import_typeorm40.Column)({
4891
+ (0, import_typeorm41.Column)({
4846
4892
  name: "onboarding_tat",
4847
4893
  type: "varchar",
4848
4894
  length: 50,
@@ -4850,17 +4896,17 @@ __decorateClass([
4850
4896
  })
4851
4897
  ], Job.prototype, "onboardingTat", 2);
4852
4898
  __decorateClass([
4853
- (0, import_typeorm40.Column)({
4899
+ (0, import_typeorm41.Column)({
4854
4900
  name: "candidate_communication_skills",
4855
4901
  type: "varchar",
4856
4902
  nullable: true
4857
4903
  })
4858
4904
  ], Job.prototype, "candidateCommunicationSkills", 2);
4859
4905
  __decorateClass([
4860
- (0, import_typeorm40.Column)({ name: "deal_breakers", type: "jsonb", nullable: true })
4906
+ (0, import_typeorm41.Column)({ name: "deal_breakers", type: "jsonb", nullable: true })
4861
4907
  ], Job.prototype, "dealBreakers", 2);
4862
4908
  __decorateClass([
4863
- (0, import_typeorm40.Column)({
4909
+ (0, import_typeorm41.Column)({
4864
4910
  name: "step_completed",
4865
4911
  type: "enum",
4866
4912
  enum: Step,
@@ -4868,7 +4914,7 @@ __decorateClass([
4868
4914
  })
4869
4915
  ], Job.prototype, "stepCompleted", 2);
4870
4916
  __decorateClass([
4871
- (0, import_typeorm40.Column)({
4917
+ (0, import_typeorm41.Column)({
4872
4918
  name: "status",
4873
4919
  type: "enum",
4874
4920
  enum: JobStatusEnum,
@@ -4876,43 +4922,43 @@ __decorateClass([
4876
4922
  })
4877
4923
  ], Job.prototype, "status", 2);
4878
4924
  __decorateClass([
4879
- (0, import_typeorm40.Column)({ name: "viewed_count", type: "integer", default: 0 })
4925
+ (0, import_typeorm41.Column)({ name: "viewed_count", type: "integer", default: 0 })
4880
4926
  ], Job.prototype, "viewedCount", 2);
4881
4927
  __decorateClass([
4882
- (0, import_typeorm40.Column)({ name: "application_count", type: "integer", default: 0 })
4928
+ (0, import_typeorm41.Column)({ name: "application_count", type: "integer", default: 0 })
4883
4929
  ], Job.prototype, "applicationCount", 2);
4884
4930
  __decorateClass([
4885
- (0, import_typeorm40.Column)({ name: "is_contract_signed", type: "boolean", default: false })
4931
+ (0, import_typeorm41.Column)({ name: "is_contract_signed", type: "boolean", default: false })
4886
4932
  ], Job.prototype, "isContractSigned", 2);
4887
4933
  __decorateClass([
4888
- (0, import_typeorm40.Column)({ name: "is_interview_created", type: "boolean", default: false })
4934
+ (0, import_typeorm41.Column)({ name: "is_interview_created", type: "boolean", default: false })
4889
4935
  ], Job.prototype, "isInterviewCreated", 2);
4890
4936
  __decorateClass([
4891
- (0, import_typeorm40.Column)({ name: "is_job_created_via_ai", type: "boolean", default: false })
4937
+ (0, import_typeorm41.Column)({ name: "is_job_created_via_ai", type: "boolean", default: false })
4892
4938
  ], Job.prototype, "isJobCreatedViaAI", 2);
4893
4939
  __decorateClass([
4894
- (0, import_typeorm40.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4940
+ (0, import_typeorm41.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4895
4941
  ], Job.prototype, "interviewInvites", 2);
4896
4942
  __decorateClass([
4897
- (0, import_typeorm40.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4943
+ (0, import_typeorm41.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4898
4944
  ], Job.prototype, "jobSkills", 2);
4899
4945
  __decorateClass([
4900
- (0, import_typeorm40.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
4946
+ (0, import_typeorm41.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
4901
4947
  cascade: true
4902
4948
  })
4903
4949
  ], Job.prototype, "jobApplications", 2);
4904
4950
  __decorateClass([
4905
- (0, import_typeorm40.OneToMany)(() => Interview, (interview) => interview.job, {
4951
+ (0, import_typeorm41.OneToMany)(() => Interview, (interview) => interview.job, {
4906
4952
  cascade: true
4907
4953
  })
4908
4954
  ], Job.prototype, "interviews", 2);
4909
4955
  __decorateClass([
4910
- (0, import_typeorm40.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4956
+ (0, import_typeorm41.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4911
4957
  cascade: true
4912
4958
  })
4913
4959
  ], Job.prototype, "f2fInterviews", 2);
4914
4960
  __decorateClass([
4915
- (0, import_typeorm40.OneToMany)(
4961
+ (0, import_typeorm41.OneToMany)(
4916
4962
  () => JobRecommendation,
4917
4963
  (jobRecommendation) => jobRecommendation.job,
4918
4964
  {
@@ -4921,64 +4967,64 @@ __decorateClass([
4921
4967
  )
4922
4968
  ], Job.prototype, "recommendations", 2);
4923
4969
  __decorateClass([
4924
- (0, import_typeorm40.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.job, {
4970
+ (0, import_typeorm41.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.job, {
4925
4971
  cascade: true
4926
4972
  })
4927
4973
  ], Job.prototype, "contractSummaries", 2);
4928
4974
  __decorateClass([
4929
- (0, import_typeorm40.OneToMany)(() => Contract, (contract) => contract.job, {
4975
+ (0, import_typeorm41.OneToMany)(() => Contract, (contract) => contract.job, {
4930
4976
  cascade: true
4931
4977
  })
4932
4978
  ], Job.prototype, "contracts", 2);
4933
4979
  __decorateClass([
4934
- (0, import_typeorm40.OneToMany)(() => Hiring, (hiring) => hiring.job, {
4980
+ (0, import_typeorm41.OneToMany)(() => Hiring, (hiring) => hiring.job, {
4935
4981
  cascade: true
4936
4982
  })
4937
4983
  ], Job.prototype, "hirings", 2);
4938
4984
  __decorateClass([
4939
- (0, import_typeorm40.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
4985
+ (0, import_typeorm41.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
4940
4986
  cascade: true
4941
4987
  })
4942
4988
  ], Job.prototype, "escrowWallets", 2);
4943
4989
  __decorateClass([
4944
- (0, import_typeorm40.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
4990
+ (0, import_typeorm41.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
4945
4991
  cascade: true
4946
4992
  })
4947
4993
  ], Job.prototype, "timesheets", 2);
4948
4994
  __decorateClass([
4949
- (0, import_typeorm40.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4995
+ (0, import_typeorm41.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4950
4996
  cascade: true
4951
4997
  })
4952
4998
  ], Job.prototype, "timesheetLine", 2);
4953
4999
  __decorateClass([
4954
- (0, import_typeorm40.OneToMany)(() => Invoice, (invoice) => invoice.job, {
5000
+ (0, import_typeorm41.OneToMany)(() => Invoice, (invoice) => invoice.job, {
4955
5001
  cascade: true
4956
5002
  })
4957
5003
  ], Job.prototype, "invoice", 2);
4958
5004
  __decorateClass([
4959
- (0, import_typeorm40.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
5005
+ (0, import_typeorm41.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
4960
5006
  ], Job.prototype, "clientCandidatePreferences", 2);
4961
5007
  __decorateClass([
4962
- (0, import_typeorm40.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
5008
+ (0, import_typeorm41.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
4963
5009
  cascade: true
4964
5010
  })
4965
5011
  ], Job.prototype, "jobLocations", 2);
4966
5012
  __decorateClass([
4967
- (0, import_typeorm40.OneToMany)(() => Rating, (rating) => rating.job, {
5013
+ (0, import_typeorm41.OneToMany)(() => Rating, (rating) => rating.job, {
4968
5014
  cascade: true
4969
5015
  })
4970
5016
  ], Job.prototype, "ratings", 2);
4971
5017
  __decorateClass([
4972
- (0, import_typeorm40.OneToMany)(() => Task, (task) => task.job, {
5018
+ (0, import_typeorm41.OneToMany)(() => Task, (task) => task.job, {
4973
5019
  cascade: true
4974
5020
  })
4975
5021
  ], Job.prototype, "tasks", 2);
4976
5022
  Job = __decorateClass([
4977
- (0, import_typeorm40.Entity)("jobs")
5023
+ (0, import_typeorm41.Entity)("jobs")
4978
5024
  ], Job);
4979
5025
 
4980
5026
  // src/entities/bank-details.entity.ts
4981
- var import_typeorm41 = require("typeorm");
5027
+ var import_typeorm42 = require("typeorm");
4982
5028
  var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
4983
5029
  BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
4984
5030
  BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
@@ -4993,51 +5039,51 @@ var BankDetail = class extends BaseEntity {
4993
5039
  };
4994
5040
  // individual index to find bank details by user
4995
5041
  __decorateClass([
4996
- (0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
4997
- (0, import_typeorm41.Index)()
5042
+ (0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
5043
+ (0, import_typeorm42.Index)()
4998
5044
  ], BankDetail.prototype, "userId", 2);
4999
5045
  __decorateClass([
5000
- (0, import_typeorm41.ManyToOne)(() => User, (user) => user.bankDetail),
5001
- (0, import_typeorm41.JoinColumn)({ name: "user_id" })
5046
+ (0, import_typeorm42.ManyToOne)(() => User, (user) => user.bankDetail),
5047
+ (0, import_typeorm42.JoinColumn)({ name: "user_id" })
5002
5048
  ], BankDetail.prototype, "user", 2);
5003
5049
  __decorateClass([
5004
- (0, import_typeorm41.Column)({ name: "name", type: "varchar", nullable: true })
5050
+ (0, import_typeorm42.Column)({ name: "name", type: "varchar", nullable: true })
5005
5051
  ], BankDetail.prototype, "name", 2);
5006
5052
  __decorateClass([
5007
- (0, import_typeorm41.Column)({ name: "mobile_code", type: "varchar", nullable: true })
5053
+ (0, import_typeorm42.Column)({ name: "mobile_code", type: "varchar", nullable: true })
5008
5054
  ], BankDetail.prototype, "mobileCode", 2);
5009
5055
  __decorateClass([
5010
- (0, import_typeorm41.Column)({ name: "mobile", type: "varchar", nullable: true })
5056
+ (0, import_typeorm42.Column)({ name: "mobile", type: "varchar", nullable: true })
5011
5057
  ], BankDetail.prototype, "mobile", 2);
5012
5058
  __decorateClass([
5013
- (0, import_typeorm41.Column)({ name: "email", type: "varchar" })
5059
+ (0, import_typeorm42.Column)({ name: "email", type: "varchar" })
5014
5060
  ], BankDetail.prototype, "email", 2);
5015
5061
  __decorateClass([
5016
- (0, import_typeorm41.Column)({ name: "address", type: "varchar", nullable: true })
5062
+ (0, import_typeorm42.Column)({ name: "address", type: "varchar", nullable: true })
5017
5063
  ], BankDetail.prototype, "address", 2);
5018
5064
  __decorateClass([
5019
- (0, import_typeorm41.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
5065
+ (0, import_typeorm42.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
5020
5066
  ], BankDetail.prototype, "accountNumber", 2);
5021
5067
  __decorateClass([
5022
- (0, import_typeorm41.Column)({ name: "bank_name", type: "varchar", nullable: true })
5068
+ (0, import_typeorm42.Column)({ name: "bank_name", type: "varchar", nullable: true })
5023
5069
  ], BankDetail.prototype, "bankName", 2);
5024
5070
  __decorateClass([
5025
- (0, import_typeorm41.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
5071
+ (0, import_typeorm42.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
5026
5072
  ], BankDetail.prototype, "ifscCode", 2);
5027
5073
  __decorateClass([
5028
- (0, import_typeorm41.Column)({ name: "branch_name", type: "varchar", nullable: true })
5074
+ (0, import_typeorm42.Column)({ name: "branch_name", type: "varchar", nullable: true })
5029
5075
  ], BankDetail.prototype, "branchName", 2);
5030
5076
  __decorateClass([
5031
- (0, import_typeorm41.Column)({ name: "routing_no", type: "varchar", nullable: true })
5077
+ (0, import_typeorm42.Column)({ name: "routing_no", type: "varchar", nullable: true })
5032
5078
  ], BankDetail.prototype, "routingNo", 2);
5033
5079
  __decorateClass([
5034
- (0, import_typeorm41.Column)({ name: "aba_no", type: "varchar", nullable: true })
5080
+ (0, import_typeorm42.Column)({ name: "aba_no", type: "varchar", nullable: true })
5035
5081
  ], BankDetail.prototype, "abaNumber", 2);
5036
5082
  __decorateClass([
5037
- (0, import_typeorm41.Column)({ name: "iban", type: "varchar", nullable: true })
5083
+ (0, import_typeorm42.Column)({ name: "iban", type: "varchar", nullable: true })
5038
5084
  ], BankDetail.prototype, "iban", 2);
5039
5085
  __decorateClass([
5040
- (0, import_typeorm41.Column)({
5086
+ (0, import_typeorm42.Column)({
5041
5087
  name: "account_type",
5042
5088
  type: "enum",
5043
5089
  enum: BankAccountTypeEnum,
@@ -5045,7 +5091,7 @@ __decorateClass([
5045
5091
  })
5046
5092
  ], BankDetail.prototype, "accountType", 2);
5047
5093
  __decorateClass([
5048
- (0, import_typeorm41.Column)({
5094
+ (0, import_typeorm42.Column)({
5049
5095
  name: "account_scope",
5050
5096
  type: "enum",
5051
5097
  enum: BankAccountScopeEnum,
@@ -5053,150 +5099,150 @@ __decorateClass([
5053
5099
  })
5054
5100
  ], BankDetail.prototype, "accountScope", 2);
5055
5101
  BankDetail = __decorateClass([
5056
- (0, import_typeorm41.Entity)("bank_details")
5102
+ (0, import_typeorm42.Entity)("bank_details")
5057
5103
  ], BankDetail);
5058
5104
 
5059
5105
  // src/entities/system-preference.entity.ts
5060
- var import_typeorm42 = require("typeorm");
5106
+ var import_typeorm43 = require("typeorm");
5061
5107
  var SystemPreference = class extends BaseEntity {
5062
5108
  };
5063
5109
  // individual index to find system preference by user
5064
5110
  __decorateClass([
5065
- (0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
5066
- (0, import_typeorm42.Index)()
5111
+ (0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
5112
+ (0, import_typeorm43.Index)()
5067
5113
  ], SystemPreference.prototype, "userId", 2);
5068
5114
  __decorateClass([
5069
- (0, import_typeorm42.ManyToOne)(() => User, (user) => user.systemPreference),
5070
- (0, import_typeorm42.JoinColumn)({ name: "user_id" })
5115
+ (0, import_typeorm43.ManyToOne)(() => User, (user) => user.systemPreference),
5116
+ (0, import_typeorm43.JoinColumn)({ name: "user_id" })
5071
5117
  ], SystemPreference.prototype, "user", 2);
5072
5118
  __decorateClass([
5073
- (0, import_typeorm42.Column)({ name: "key", type: "varchar", nullable: false })
5119
+ (0, import_typeorm43.Column)({ name: "key", type: "varchar", nullable: false })
5074
5120
  ], SystemPreference.prototype, "key", 2);
5075
5121
  __decorateClass([
5076
- (0, import_typeorm42.Column)({ name: "value", type: "boolean", default: false })
5122
+ (0, import_typeorm43.Column)({ name: "value", type: "boolean", default: false })
5077
5123
  ], SystemPreference.prototype, "value", 2);
5078
5124
  SystemPreference = __decorateClass([
5079
- (0, import_typeorm42.Entity)("system_preferences")
5125
+ (0, import_typeorm43.Entity)("system_preferences")
5080
5126
  ], SystemPreference);
5081
5127
 
5082
5128
  // src/entities/freelancer-experience.entity.ts
5083
- var import_typeorm43 = require("typeorm");
5129
+ var import_typeorm44 = require("typeorm");
5084
5130
  var FreelancerExperience = class extends BaseEntity {
5085
5131
  };
5086
5132
  // individual index to find experence by user
5087
5133
  __decorateClass([
5088
- (0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
5089
- (0, import_typeorm43.Index)()
5134
+ (0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
5135
+ (0, import_typeorm44.Index)()
5090
5136
  ], FreelancerExperience.prototype, "userId", 2);
5091
5137
  __decorateClass([
5092
- (0, import_typeorm43.ManyToOne)(() => User, (user) => user.freelancerExperience),
5093
- (0, import_typeorm43.JoinColumn)({ name: "user_id" })
5138
+ (0, import_typeorm44.ManyToOne)(() => User, (user) => user.freelancerExperience),
5139
+ (0, import_typeorm44.JoinColumn)({ name: "user_id" })
5094
5140
  ], FreelancerExperience.prototype, "user", 2);
5095
5141
  __decorateClass([
5096
- (0, import_typeorm43.Column)({ name: "company_name", type: "varchar", nullable: true })
5142
+ (0, import_typeorm44.Column)({ name: "company_name", type: "varchar", nullable: true })
5097
5143
  ], FreelancerExperience.prototype, "companyName", 2);
5098
5144
  __decorateClass([
5099
- (0, import_typeorm43.Column)({ name: "designation", type: "varchar", nullable: true })
5145
+ (0, import_typeorm44.Column)({ name: "designation", type: "varchar", nullable: true })
5100
5146
  ], FreelancerExperience.prototype, "designation", 2);
5101
5147
  __decorateClass([
5102
- (0, import_typeorm43.Column)({ name: "job_duration", type: "varchar", nullable: true })
5148
+ (0, import_typeorm44.Column)({ name: "job_duration", type: "varchar", nullable: true })
5103
5149
  ], FreelancerExperience.prototype, "jobDuration", 2);
5104
5150
  __decorateClass([
5105
- (0, import_typeorm43.Column)({ name: "description", type: "varchar", nullable: true })
5151
+ (0, import_typeorm44.Column)({ name: "description", type: "varchar", nullable: true })
5106
5152
  ], FreelancerExperience.prototype, "description", 2);
5107
5153
  FreelancerExperience = __decorateClass([
5108
- (0, import_typeorm43.Entity)("freelancer_experiences")
5154
+ (0, import_typeorm44.Entity)("freelancer_experiences")
5109
5155
  ], FreelancerExperience);
5110
5156
 
5111
5157
  // src/entities/freelancer-education.entity.ts
5112
- var import_typeorm44 = require("typeorm");
5158
+ var import_typeorm45 = require("typeorm");
5113
5159
  var FreelancerEducation = class extends BaseEntity {
5114
5160
  };
5115
5161
  // individual index to find education by user
5116
5162
  __decorateClass([
5117
- (0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
5118
- (0, import_typeorm44.Index)()
5163
+ (0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
5164
+ (0, import_typeorm45.Index)()
5119
5165
  ], FreelancerEducation.prototype, "userId", 2);
5120
5166
  __decorateClass([
5121
- (0, import_typeorm44.ManyToOne)(() => User, (user) => user.freelancerEducation),
5122
- (0, import_typeorm44.JoinColumn)({ name: "user_id" })
5167
+ (0, import_typeorm45.ManyToOne)(() => User, (user) => user.freelancerEducation),
5168
+ (0, import_typeorm45.JoinColumn)({ name: "user_id" })
5123
5169
  ], FreelancerEducation.prototype, "user", 2);
5124
5170
  __decorateClass([
5125
- (0, import_typeorm44.Column)({ name: "degree", type: "varchar", nullable: true })
5171
+ (0, import_typeorm45.Column)({ name: "degree", type: "varchar", nullable: true })
5126
5172
  ], FreelancerEducation.prototype, "degree", 2);
5127
5173
  __decorateClass([
5128
- (0, import_typeorm44.Column)({ name: "university", type: "varchar", nullable: true })
5174
+ (0, import_typeorm45.Column)({ name: "university", type: "varchar", nullable: true })
5129
5175
  ], FreelancerEducation.prototype, "university", 2);
5130
5176
  __decorateClass([
5131
- (0, import_typeorm44.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
5177
+ (0, import_typeorm45.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
5132
5178
  ], FreelancerEducation.prototype, "yearOfGraduation", 2);
5133
5179
  FreelancerEducation = __decorateClass([
5134
- (0, import_typeorm44.Entity)("freelancer_educations")
5180
+ (0, import_typeorm45.Entity)("freelancer_educations")
5135
5181
  ], FreelancerEducation);
5136
5182
 
5137
5183
  // src/entities/freelancer-project.entity.ts
5138
- var import_typeorm45 = require("typeorm");
5184
+ var import_typeorm46 = require("typeorm");
5139
5185
  var FreelancerProject = class extends BaseEntity {
5140
5186
  };
5141
5187
  // individual index to find project by user
5142
5188
  __decorateClass([
5143
- (0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
5144
- (0, import_typeorm45.Index)()
5189
+ (0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
5190
+ (0, import_typeorm46.Index)()
5145
5191
  ], FreelancerProject.prototype, "userId", 2);
5146
5192
  __decorateClass([
5147
- (0, import_typeorm45.ManyToOne)(() => User, (user) => user.freelancerProject),
5148
- (0, import_typeorm45.JoinColumn)({ name: "user_id" })
5193
+ (0, import_typeorm46.ManyToOne)(() => User, (user) => user.freelancerProject),
5194
+ (0, import_typeorm46.JoinColumn)({ name: "user_id" })
5149
5195
  ], FreelancerProject.prototype, "user", 2);
5150
5196
  __decorateClass([
5151
- (0, import_typeorm45.Column)({ name: "project_name", type: "varchar", nullable: true })
5197
+ (0, import_typeorm46.Column)({ name: "project_name", type: "varchar", nullable: true })
5152
5198
  ], FreelancerProject.prototype, "projectName", 2);
5153
5199
  __decorateClass([
5154
- (0, import_typeorm45.Column)({ name: "start_date", type: "date", nullable: true })
5200
+ (0, import_typeorm46.Column)({ name: "start_date", type: "date", nullable: true })
5155
5201
  ], FreelancerProject.prototype, "startDate", 2);
5156
5202
  __decorateClass([
5157
- (0, import_typeorm45.Column)({ name: "end_date", type: "date", nullable: true })
5203
+ (0, import_typeorm46.Column)({ name: "end_date", type: "date", nullable: true })
5158
5204
  ], FreelancerProject.prototype, "endDate", 2);
5159
5205
  __decorateClass([
5160
- (0, import_typeorm45.Column)({ name: "client_name", type: "varchar", nullable: true })
5206
+ (0, import_typeorm46.Column)({ name: "client_name", type: "varchar", nullable: true })
5161
5207
  ], FreelancerProject.prototype, "clientName", 2);
5162
5208
  __decorateClass([
5163
- (0, import_typeorm45.Column)({ name: "git_link", type: "varchar", nullable: true })
5209
+ (0, import_typeorm46.Column)({ name: "git_link", type: "varchar", nullable: true })
5164
5210
  ], FreelancerProject.prototype, "gitLink", 2);
5165
5211
  __decorateClass([
5166
- (0, import_typeorm45.Column)({ name: "description", type: "varchar", nullable: true })
5212
+ (0, import_typeorm46.Column)({ name: "description", type: "varchar", nullable: true })
5167
5213
  ], FreelancerProject.prototype, "description", 2);
5168
5214
  FreelancerProject = __decorateClass([
5169
- (0, import_typeorm45.Entity)("freelancer_projects")
5215
+ (0, import_typeorm46.Entity)("freelancer_projects")
5170
5216
  ], FreelancerProject);
5171
5217
 
5172
5218
  // src/entities/freelancer-casestudy.entity.ts
5173
- var import_typeorm46 = require("typeorm");
5219
+ var import_typeorm47 = require("typeorm");
5174
5220
  var FreelancerCaseStudy = class extends BaseEntity {
5175
5221
  };
5176
5222
  // individual index to find case study by user
5177
5223
  __decorateClass([
5178
- (0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
5179
- (0, import_typeorm46.Index)()
5224
+ (0, import_typeorm47.Column)({ name: "user_id", type: "integer", nullable: true }),
5225
+ (0, import_typeorm47.Index)()
5180
5226
  ], FreelancerCaseStudy.prototype, "userId", 2);
5181
5227
  __decorateClass([
5182
- (0, import_typeorm46.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
5183
- (0, import_typeorm46.JoinColumn)({ name: "user_id" })
5228
+ (0, import_typeorm47.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
5229
+ (0, import_typeorm47.JoinColumn)({ name: "user_id" })
5184
5230
  ], FreelancerCaseStudy.prototype, "user", 2);
5185
5231
  __decorateClass([
5186
- (0, import_typeorm46.Column)({ name: "project_name", type: "varchar", nullable: true })
5232
+ (0, import_typeorm47.Column)({ name: "project_name", type: "varchar", nullable: true })
5187
5233
  ], FreelancerCaseStudy.prototype, "projectName", 2);
5188
5234
  __decorateClass([
5189
- (0, import_typeorm46.Column)({ name: "case_study_link", type: "varchar", nullable: true })
5235
+ (0, import_typeorm47.Column)({ name: "case_study_link", type: "varchar", nullable: true })
5190
5236
  ], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
5191
5237
  __decorateClass([
5192
- (0, import_typeorm46.Column)({ name: "description", type: "varchar", nullable: true })
5238
+ (0, import_typeorm47.Column)({ name: "description", type: "varchar", nullable: true })
5193
5239
  ], FreelancerCaseStudy.prototype, "description", 2);
5194
5240
  FreelancerCaseStudy = __decorateClass([
5195
- (0, import_typeorm46.Entity)("freelancer_case_studies")
5241
+ (0, import_typeorm47.Entity)("freelancer_case_studies")
5196
5242
  ], FreelancerCaseStudy);
5197
5243
 
5198
5244
  // src/entities/freelancer-skill.entity.ts
5199
- var import_typeorm47 = require("typeorm");
5245
+ var import_typeorm48 = require("typeorm");
5200
5246
  var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
5201
5247
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
5202
5248
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
@@ -5206,18 +5252,18 @@ var FreelancerSkill = class extends BaseEntity {
5206
5252
  };
5207
5253
  // individual index to find core skills by user
5208
5254
  __decorateClass([
5209
- (0, import_typeorm47.Column)({ name: "user_id", type: "integer", nullable: true }),
5210
- (0, import_typeorm47.Index)()
5255
+ (0, import_typeorm48.Column)({ name: "user_id", type: "integer", nullable: true }),
5256
+ (0, import_typeorm48.Index)()
5211
5257
  ], FreelancerSkill.prototype, "userId", 2);
5212
5258
  __decorateClass([
5213
- (0, import_typeorm47.ManyToOne)(() => User, (user) => user.freelancerSkills),
5214
- (0, import_typeorm47.JoinColumn)({ name: "user_id" })
5259
+ (0, import_typeorm48.ManyToOne)(() => User, (user) => user.freelancerSkills),
5260
+ (0, import_typeorm48.JoinColumn)({ name: "user_id" })
5215
5261
  ], FreelancerSkill.prototype, "user", 2);
5216
5262
  __decorateClass([
5217
- (0, import_typeorm47.Column)({ name: "skill_name", type: "varchar", nullable: true })
5263
+ (0, import_typeorm48.Column)({ name: "skill_name", type: "varchar", nullable: true })
5218
5264
  ], FreelancerSkill.prototype, "skillName", 2);
5219
5265
  __decorateClass([
5220
- (0, import_typeorm47.Column)({
5266
+ (0, import_typeorm48.Column)({
5221
5267
  name: "skill_category",
5222
5268
  type: "smallint",
5223
5269
  default: 1,
@@ -5225,51 +5271,51 @@ __decorateClass([
5225
5271
  })
5226
5272
  ], FreelancerSkill.prototype, "skillCategory", 2);
5227
5273
  FreelancerSkill = __decorateClass([
5228
- (0, import_typeorm47.Entity)("freelancer_skills")
5274
+ (0, import_typeorm48.Entity)("freelancer_skills")
5229
5275
  ], FreelancerSkill);
5230
5276
 
5231
5277
  // src/entities/freelancer-tool.entity.ts
5232
- var import_typeorm48 = require("typeorm");
5278
+ var import_typeorm49 = require("typeorm");
5233
5279
  var FreelancerTool = class extends BaseEntity {
5234
5280
  };
5235
5281
  // individual index to find tool by user
5236
5282
  __decorateClass([
5237
- (0, import_typeorm48.Column)({ name: "user_id", type: "integer", nullable: true }),
5238
- (0, import_typeorm48.Index)()
5283
+ (0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
5284
+ (0, import_typeorm49.Index)()
5239
5285
  ], FreelancerTool.prototype, "userId", 2);
5240
5286
  __decorateClass([
5241
- (0, import_typeorm48.ManyToOne)(() => User, (user) => user.freelancerTool),
5242
- (0, import_typeorm48.JoinColumn)({ name: "user_id" })
5287
+ (0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerTool),
5288
+ (0, import_typeorm49.JoinColumn)({ name: "user_id" })
5243
5289
  ], FreelancerTool.prototype, "user", 2);
5244
5290
  __decorateClass([
5245
- (0, import_typeorm48.Column)({ name: "tool_name", type: "varchar", nullable: true })
5291
+ (0, import_typeorm49.Column)({ name: "tool_name", type: "varchar", nullable: true })
5246
5292
  ], FreelancerTool.prototype, "toolName", 2);
5247
5293
  FreelancerTool = __decorateClass([
5248
- (0, import_typeorm48.Entity)("freelancer_tools")
5294
+ (0, import_typeorm49.Entity)("freelancer_tools")
5249
5295
  ], FreelancerTool);
5250
5296
 
5251
5297
  // src/entities/freelancer-framework.entity.ts
5252
- var import_typeorm49 = require("typeorm");
5298
+ var import_typeorm50 = require("typeorm");
5253
5299
  var FreelancerFramework = class extends BaseEntity {
5254
5300
  };
5255
5301
  // individual index to find framework by user
5256
5302
  __decorateClass([
5257
- (0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
5258
- (0, import_typeorm49.Index)()
5303
+ (0, import_typeorm50.Column)({ name: "user_id", type: "integer", nullable: true }),
5304
+ (0, import_typeorm50.Index)()
5259
5305
  ], FreelancerFramework.prototype, "userId", 2);
5260
5306
  __decorateClass([
5261
- (0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerFramework),
5262
- (0, import_typeorm49.JoinColumn)({ name: "user_id" })
5307
+ (0, import_typeorm50.ManyToOne)(() => User, (user) => user.freelancerFramework),
5308
+ (0, import_typeorm50.JoinColumn)({ name: "user_id" })
5263
5309
  ], FreelancerFramework.prototype, "user", 2);
5264
5310
  __decorateClass([
5265
- (0, import_typeorm49.Column)({ name: "framework_name", type: "varchar", nullable: true })
5311
+ (0, import_typeorm50.Column)({ name: "framework_name", type: "varchar", nullable: true })
5266
5312
  ], FreelancerFramework.prototype, "frameworkName", 2);
5267
5313
  FreelancerFramework = __decorateClass([
5268
- (0, import_typeorm49.Entity)("freelancer_frameworks")
5314
+ (0, import_typeorm50.Entity)("freelancer_frameworks")
5269
5315
  ], FreelancerFramework);
5270
5316
 
5271
5317
  // src/entities/freelancer-assessment.entity.ts
5272
- var import_typeorm50 = require("typeorm");
5318
+ var import_typeorm51 = require("typeorm");
5273
5319
  var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
5274
5320
  AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
5275
5321
  AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
@@ -5286,33 +5332,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
5286
5332
  var FreelancerAssessment = class extends BaseEntity {
5287
5333
  };
5288
5334
  __decorateClass([
5289
- (0, import_typeorm50.Column)({ name: "user_id", type: "integer", nullable: true }),
5290
- (0, import_typeorm50.Index)()
5335
+ (0, import_typeorm51.Column)({ name: "user_id", type: "integer", nullable: true }),
5336
+ (0, import_typeorm51.Index)()
5291
5337
  ], FreelancerAssessment.prototype, "userId", 2);
5292
5338
  __decorateClass([
5293
- (0, import_typeorm50.ManyToOne)(() => User, (user) => user.assessments),
5294
- (0, import_typeorm50.JoinColumn)({ name: "user_id" })
5339
+ (0, import_typeorm51.ManyToOne)(() => User, (user) => user.assessments),
5340
+ (0, import_typeorm51.JoinColumn)({ name: "user_id" })
5295
5341
  ], FreelancerAssessment.prototype, "user", 2);
5296
5342
  __decorateClass([
5297
- (0, import_typeorm50.Column)({ name: "interview_id", type: "varchar", nullable: true })
5343
+ (0, import_typeorm51.Column)({ name: "interview_id", type: "varchar", nullable: true })
5298
5344
  ], FreelancerAssessment.prototype, "interviewId", 2);
5299
5345
  __decorateClass([
5300
- (0, import_typeorm50.Column)({ name: "interview_link", type: "text", nullable: true })
5346
+ (0, import_typeorm51.Column)({ name: "interview_link", type: "text", nullable: true })
5301
5347
  ], FreelancerAssessment.prototype, "interviewLink", 2);
5302
5348
  __decorateClass([
5303
- (0, import_typeorm50.Column)({ name: "recording_link", type: "text", nullable: true })
5349
+ (0, import_typeorm51.Column)({ name: "recording_link", type: "text", nullable: true })
5304
5350
  ], FreelancerAssessment.prototype, "recordingLink", 2);
5305
5351
  __decorateClass([
5306
- (0, import_typeorm50.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
5352
+ (0, import_typeorm51.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
5307
5353
  ], FreelancerAssessment.prototype, "iframeResponse", 2);
5308
5354
  __decorateClass([
5309
- (0, import_typeorm50.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
5355
+ (0, import_typeorm51.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
5310
5356
  ], FreelancerAssessment.prototype, "interviewSummary", 2);
5311
5357
  __decorateClass([
5312
- (0, import_typeorm50.Column)({ name: "score", type: "float", nullable: true })
5358
+ (0, import_typeorm51.Column)({ name: "score", type: "float", nullable: true })
5313
5359
  ], FreelancerAssessment.prototype, "score", 2);
5314
5360
  __decorateClass([
5315
- (0, import_typeorm50.Column)({
5361
+ (0, import_typeorm51.Column)({
5316
5362
  name: "status",
5317
5363
  type: "enum",
5318
5364
  enum: AssessmentStatusEnum,
@@ -5320,17 +5366,17 @@ __decorateClass([
5320
5366
  })
5321
5367
  ], FreelancerAssessment.prototype, "status", 2);
5322
5368
  __decorateClass([
5323
- (0, import_typeorm50.Column)({ name: "task_id", type: "varchar", nullable: true })
5369
+ (0, import_typeorm51.Column)({ name: "task_id", type: "varchar", nullable: true })
5324
5370
  ], FreelancerAssessment.prototype, "taskId", 2);
5325
5371
  __decorateClass([
5326
- (0, import_typeorm50.Column)({ name: "meta_data", type: "jsonb", nullable: true })
5372
+ (0, import_typeorm51.Column)({ name: "meta_data", type: "jsonb", nullable: true })
5327
5373
  ], FreelancerAssessment.prototype, "metaData", 2);
5328
5374
  FreelancerAssessment = __decorateClass([
5329
- (0, import_typeorm50.Entity)("freelancer_assessments")
5375
+ (0, import_typeorm51.Entity)("freelancer_assessments")
5330
5376
  ], FreelancerAssessment);
5331
5377
 
5332
5378
  // src/entities/freelancer-declaration.entity.ts
5333
- var import_typeorm51 = require("typeorm");
5379
+ var import_typeorm52 = require("typeorm");
5334
5380
  var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
5335
5381
  DocumentType2["AADHAAR"] = "AADHAAR_CARD";
5336
5382
  DocumentType2["PASSPORT"] = "PASSPORT";
@@ -5342,15 +5388,15 @@ var FreelancerDeclaration = class extends BaseEntity {
5342
5388
  };
5343
5389
  // individual index to find declaration by user
5344
5390
  __decorateClass([
5345
- (0, import_typeorm51.Column)({ name: "user_id", type: "integer", nullable: true }),
5346
- (0, import_typeorm51.Index)()
5391
+ (0, import_typeorm52.Column)({ name: "user_id", type: "integer", nullable: true }),
5392
+ (0, import_typeorm52.Index)()
5347
5393
  ], FreelancerDeclaration.prototype, "userId", 2);
5348
5394
  __decorateClass([
5349
- (0, import_typeorm51.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
5350
- (0, import_typeorm51.JoinColumn)({ name: "user_id" })
5395
+ (0, import_typeorm52.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
5396
+ (0, import_typeorm52.JoinColumn)({ name: "user_id" })
5351
5397
  ], FreelancerDeclaration.prototype, "user", 2);
5352
5398
  __decorateClass([
5353
- (0, import_typeorm51.Column)({
5399
+ (0, import_typeorm52.Column)({
5354
5400
  name: "document_type",
5355
5401
  type: "enum",
5356
5402
  enum: DocumentType,
@@ -5358,147 +5404,147 @@ __decorateClass([
5358
5404
  })
5359
5405
  ], FreelancerDeclaration.prototype, "documentType", 2);
5360
5406
  __decorateClass([
5361
- (0, import_typeorm51.Column)({ name: "front_document_url", type: "varchar", nullable: true })
5407
+ (0, import_typeorm52.Column)({ name: "front_document_url", type: "varchar", nullable: true })
5362
5408
  ], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
5363
5409
  __decorateClass([
5364
- (0, import_typeorm51.Column)({ name: "back_document_url", type: "varchar", nullable: true })
5410
+ (0, import_typeorm52.Column)({ name: "back_document_url", type: "varchar", nullable: true })
5365
5411
  ], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
5366
5412
  __decorateClass([
5367
- (0, import_typeorm51.Column)({ name: "declaration_accepted", type: "boolean", default: false })
5413
+ (0, import_typeorm52.Column)({ name: "declaration_accepted", type: "boolean", default: false })
5368
5414
  ], FreelancerDeclaration.prototype, "declarationAccepted", 2);
5369
5415
  __decorateClass([
5370
- (0, import_typeorm51.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
5416
+ (0, import_typeorm52.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
5371
5417
  ], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
5372
5418
  FreelancerDeclaration = __decorateClass([
5373
- (0, import_typeorm51.Entity)("freelancer_declaration")
5419
+ (0, import_typeorm52.Entity)("freelancer_declaration")
5374
5420
  ], FreelancerDeclaration);
5375
5421
 
5376
5422
  // src/entities/company-members-roles.entity.ts
5377
- var import_typeorm55 = require("typeorm");
5423
+ var import_typeorm56 = require("typeorm");
5378
5424
 
5379
5425
  // src/entities/company-role.entity.ts
5380
- var import_typeorm54 = require("typeorm");
5426
+ var import_typeorm55 = require("typeorm");
5381
5427
 
5382
5428
  // src/entities/company-role-permission.entity.ts
5383
- var import_typeorm53 = require("typeorm");
5429
+ var import_typeorm54 = require("typeorm");
5384
5430
 
5385
5431
  // src/entities/permission.entity.ts
5386
- var import_typeorm52 = require("typeorm");
5432
+ var import_typeorm53 = require("typeorm");
5387
5433
  var Permission = class extends BaseEntity {
5388
5434
  };
5389
5435
  __decorateClass([
5390
- (0, import_typeorm52.Column)({ name: "name", type: "varchar", nullable: true })
5436
+ (0, import_typeorm53.Column)({ name: "name", type: "varchar", nullable: true })
5391
5437
  ], Permission.prototype, "name", 2);
5392
5438
  __decorateClass([
5393
- (0, import_typeorm52.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
5394
- (0, import_typeorm52.Index)()
5439
+ (0, import_typeorm53.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
5440
+ (0, import_typeorm53.Index)()
5395
5441
  ], Permission.prototype, "slug", 2);
5396
5442
  __decorateClass([
5397
- (0, import_typeorm52.Column)({ name: "description", type: "text", nullable: true })
5443
+ (0, import_typeorm53.Column)({ name: "description", type: "text", nullable: true })
5398
5444
  ], Permission.prototype, "description", 2);
5399
5445
  __decorateClass([
5400
- (0, import_typeorm52.Column)({ name: "module", type: "varchar", nullable: true })
5446
+ (0, import_typeorm53.Column)({ name: "module", type: "varchar", nullable: true })
5401
5447
  ], Permission.prototype, "module", 2);
5402
5448
  __decorateClass([
5403
- (0, import_typeorm52.Column)({ name: "is_active", type: "boolean", default: true })
5449
+ (0, import_typeorm53.Column)({ name: "is_active", type: "boolean", default: true })
5404
5450
  ], Permission.prototype, "isActive", 2);
5405
5451
  Permission = __decorateClass([
5406
- (0, import_typeorm52.Entity)("permissions")
5452
+ (0, import_typeorm53.Entity)("permissions")
5407
5453
  ], Permission);
5408
5454
 
5409
5455
  // src/entities/company-role-permission.entity.ts
5410
5456
  var CompanyRolePermission = class extends BaseEntity {
5411
5457
  };
5412
5458
  __decorateClass([
5413
- (0, import_typeorm53.Column)({ name: "company_role_id", type: "integer", nullable: true }),
5414
- (0, import_typeorm53.Index)()
5459
+ (0, import_typeorm54.Column)({ name: "company_role_id", type: "integer", nullable: true }),
5460
+ (0, import_typeorm54.Index)()
5415
5461
  ], CompanyRolePermission.prototype, "companyRoleId", 2);
5416
5462
  __decorateClass([
5417
- (0, import_typeorm53.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
5463
+ (0, import_typeorm54.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
5418
5464
  onDelete: "CASCADE"
5419
5465
  }),
5420
- (0, import_typeorm53.JoinColumn)({ name: "company_role_id" })
5466
+ (0, import_typeorm54.JoinColumn)({ name: "company_role_id" })
5421
5467
  ], CompanyRolePermission.prototype, "companyRole", 2);
5422
5468
  __decorateClass([
5423
- (0, import_typeorm53.Column)({ name: "permission_id", type: "integer" }),
5424
- (0, import_typeorm53.Index)()
5469
+ (0, import_typeorm54.Column)({ name: "permission_id", type: "integer" }),
5470
+ (0, import_typeorm54.Index)()
5425
5471
  ], CompanyRolePermission.prototype, "permissionId", 2);
5426
5472
  __decorateClass([
5427
- (0, import_typeorm53.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
5428
- (0, import_typeorm53.JoinColumn)({ name: "permission_id" })
5473
+ (0, import_typeorm54.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
5474
+ (0, import_typeorm54.JoinColumn)({ name: "permission_id" })
5429
5475
  ], CompanyRolePermission.prototype, "permission", 2);
5430
5476
  __decorateClass([
5431
- (0, import_typeorm53.Column)({ name: "assigned_by", type: "integer", nullable: true })
5477
+ (0, import_typeorm54.Column)({ name: "assigned_by", type: "integer", nullable: true })
5432
5478
  ], CompanyRolePermission.prototype, "assignedBy", 2);
5433
5479
  CompanyRolePermission = __decorateClass([
5434
- (0, import_typeorm53.Entity)("company_role_permissions")
5480
+ (0, import_typeorm54.Entity)("company_role_permissions")
5435
5481
  ], CompanyRolePermission);
5436
5482
 
5437
5483
  // src/entities/company-role.entity.ts
5438
5484
  var CompanyRole = class extends BaseEntity {
5439
5485
  };
5440
5486
  __decorateClass([
5441
- (0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
5442
- (0, import_typeorm54.Index)()
5487
+ (0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
5488
+ (0, import_typeorm55.Index)()
5443
5489
  ], CompanyRole.prototype, "userId", 2);
5444
5490
  __decorateClass([
5445
- (0, import_typeorm54.ManyToOne)(() => User, (user) => user.otps),
5446
- (0, import_typeorm54.JoinColumn)({ name: "user_id" })
5491
+ (0, import_typeorm55.ManyToOne)(() => User, (user) => user.otps),
5492
+ (0, import_typeorm55.JoinColumn)({ name: "user_id" })
5447
5493
  ], CompanyRole.prototype, "user", 2);
5448
5494
  __decorateClass([
5449
- (0, import_typeorm54.Column)({ name: "name", type: "varchar" })
5495
+ (0, import_typeorm55.Column)({ name: "name", type: "varchar" })
5450
5496
  ], CompanyRole.prototype, "name", 2);
5451
5497
  __decorateClass([
5452
- (0, import_typeorm54.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
5453
- (0, import_typeorm54.Index)()
5498
+ (0, import_typeorm55.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
5499
+ (0, import_typeorm55.Index)()
5454
5500
  ], CompanyRole.prototype, "slug", 2);
5455
5501
  __decorateClass([
5456
- (0, import_typeorm54.Column)({ name: "description", type: "text", nullable: true })
5502
+ (0, import_typeorm55.Column)({ name: "description", type: "text", nullable: true })
5457
5503
  ], CompanyRole.prototype, "description", 2);
5458
5504
  __decorateClass([
5459
- (0, import_typeorm54.Column)({ name: "is_active", type: "boolean", default: true })
5505
+ (0, import_typeorm55.Column)({ name: "is_active", type: "boolean", default: true })
5460
5506
  ], CompanyRole.prototype, "isActive", 2);
5461
5507
  __decorateClass([
5462
- (0, import_typeorm54.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
5508
+ (0, import_typeorm55.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
5463
5509
  ], CompanyRole.prototype, "rolePermissions", 2);
5464
5510
  CompanyRole = __decorateClass([
5465
- (0, import_typeorm54.Entity)("company_roles")
5511
+ (0, import_typeorm55.Entity)("company_roles")
5466
5512
  ], CompanyRole);
5467
5513
 
5468
5514
  // src/entities/company-members-roles.entity.ts
5469
5515
  var CompanyMemberRole = class extends BaseEntity {
5470
5516
  };
5471
5517
  __decorateClass([
5472
- (0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
5473
- (0, import_typeorm55.Index)()
5518
+ (0, import_typeorm56.Column)({ name: "user_id", type: "integer", nullable: true }),
5519
+ (0, import_typeorm56.Index)()
5474
5520
  ], CompanyMemberRole.prototype, "userId", 2);
5475
5521
  __decorateClass([
5476
- (0, import_typeorm55.ManyToOne)(() => User),
5477
- (0, import_typeorm55.JoinColumn)({ name: "user_id" })
5522
+ (0, import_typeorm56.ManyToOne)(() => User),
5523
+ (0, import_typeorm56.JoinColumn)({ name: "user_id" })
5478
5524
  ], CompanyMemberRole.prototype, "user", 2);
5479
5525
  __decorateClass([
5480
- (0, import_typeorm55.ManyToOne)(() => CompanyRole),
5481
- (0, import_typeorm55.JoinColumn)({ name: "company_role_id" })
5526
+ (0, import_typeorm56.ManyToOne)(() => CompanyRole),
5527
+ (0, import_typeorm56.JoinColumn)({ name: "company_role_id" })
5482
5528
  ], CompanyMemberRole.prototype, "role", 2);
5483
5529
  __decorateClass([
5484
- (0, import_typeorm55.Column)({ name: "company_role_id", type: "integer", nullable: true }),
5485
- (0, import_typeorm55.Index)()
5530
+ (0, import_typeorm56.Column)({ name: "company_role_id", type: "integer", nullable: true }),
5531
+ (0, import_typeorm56.Index)()
5486
5532
  ], CompanyMemberRole.prototype, "companyRoleId", 2);
5487
5533
  __decorateClass([
5488
- (0, import_typeorm55.Column)({ name: "assigned_by", type: "integer", nullable: true })
5534
+ (0, import_typeorm56.Column)({ name: "assigned_by", type: "integer", nullable: true })
5489
5535
  ], CompanyMemberRole.prototype, "assignedBy", 2);
5490
5536
  CompanyMemberRole = __decorateClass([
5491
- (0, import_typeorm55.Entity)("company_member_roles")
5537
+ (0, import_typeorm56.Entity)("company_member_roles")
5492
5538
  ], CompanyMemberRole);
5493
5539
 
5494
5540
  // src/entities/assessment-answer.entity.ts
5495
- var import_typeorm58 = require("typeorm");
5541
+ var import_typeorm59 = require("typeorm");
5496
5542
 
5497
5543
  // src/entities/assessment-question.entity.ts
5498
- var import_typeorm57 = require("typeorm");
5544
+ var import_typeorm58 = require("typeorm");
5499
5545
 
5500
5546
  // src/entities/assessment-question-option.entity.ts
5501
- var import_typeorm56 = require("typeorm");
5547
+ var import_typeorm57 = require("typeorm");
5502
5548
  var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5503
5549
  AnswerTypeEnum2["CORRECT"] = "CORRECT";
5504
5550
  AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
@@ -5508,21 +5554,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5508
5554
  var AssessmetQuestionOption = class extends BaseEntity {
5509
5555
  };
5510
5556
  __decorateClass([
5511
- (0, import_typeorm56.Column)({ name: "question_id", type: "integer", nullable: true }),
5512
- (0, import_typeorm56.Index)()
5557
+ (0, import_typeorm57.Column)({ name: "question_id", type: "integer", nullable: true }),
5558
+ (0, import_typeorm57.Index)()
5513
5559
  ], AssessmetQuestionOption.prototype, "questionId", 2);
5514
5560
  __decorateClass([
5515
- (0, import_typeorm56.ManyToOne)(
5561
+ (0, import_typeorm57.ManyToOne)(
5516
5562
  () => AssessmetQuestion,
5517
5563
  (assessmentQuestion) => assessmentQuestion.options
5518
5564
  ),
5519
- (0, import_typeorm56.JoinColumn)({ name: "question_id" })
5565
+ (0, import_typeorm57.JoinColumn)({ name: "question_id" })
5520
5566
  ], AssessmetQuestionOption.prototype, "question", 2);
5521
5567
  __decorateClass([
5522
- (0, import_typeorm56.Column)({ name: "text", type: "varchar", nullable: true })
5568
+ (0, import_typeorm57.Column)({ name: "text", type: "varchar", nullable: true })
5523
5569
  ], AssessmetQuestionOption.prototype, "text", 2);
5524
5570
  __decorateClass([
5525
- (0, import_typeorm56.Column)({
5571
+ (0, import_typeorm57.Column)({
5526
5572
  name: "answer_type",
5527
5573
  type: "enum",
5528
5574
  enum: AnswerTypeEnum,
@@ -5530,13 +5576,13 @@ __decorateClass([
5530
5576
  })
5531
5577
  ], AssessmetQuestionOption.prototype, "answerType", 2);
5532
5578
  __decorateClass([
5533
- (0, import_typeorm56.Column)({ name: "is_active", type: "boolean", default: true })
5579
+ (0, import_typeorm57.Column)({ name: "is_active", type: "boolean", default: true })
5534
5580
  ], AssessmetQuestionOption.prototype, "isActive", 2);
5535
5581
  __decorateClass([
5536
- (0, import_typeorm56.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5582
+ (0, import_typeorm57.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5537
5583
  ], AssessmetQuestionOption.prototype, "selectedOptions", 2);
5538
5584
  AssessmetQuestionOption = __decorateClass([
5539
- (0, import_typeorm56.Entity)("assessment_question_options")
5585
+ (0, import_typeorm57.Entity)("assessment_question_options")
5540
5586
  ], AssessmetQuestionOption);
5541
5587
 
5542
5588
  // src/entities/assessment-question.entity.ts
@@ -5548,10 +5594,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
5548
5594
  var AssessmetQuestion = class extends BaseEntity {
5549
5595
  };
5550
5596
  __decorateClass([
5551
- (0, import_typeorm57.Column)({ name: "text", type: "varchar", nullable: true })
5597
+ (0, import_typeorm58.Column)({ name: "text", type: "varchar", nullable: true })
5552
5598
  ], AssessmetQuestion.prototype, "text", 2);
5553
5599
  __decorateClass([
5554
- (0, import_typeorm57.Column)({
5600
+ (0, import_typeorm58.Column)({
5555
5601
  name: "question_for",
5556
5602
  type: "enum",
5557
5603
  enum: QuestionForEnum,
@@ -5559,24 +5605,24 @@ __decorateClass([
5559
5605
  })
5560
5606
  ], AssessmetQuestion.prototype, "questionFor", 2);
5561
5607
  __decorateClass([
5562
- (0, import_typeorm57.Column)({ name: "is_active", type: "boolean", default: true })
5608
+ (0, import_typeorm58.Column)({ name: "is_active", type: "boolean", default: true })
5563
5609
  ], AssessmetQuestion.prototype, "isActive", 2);
5564
5610
  __decorateClass([
5565
- (0, import_typeorm57.Column)({ name: "candidate_id", type: "integer", nullable: true }),
5566
- (0, import_typeorm57.Index)()
5611
+ (0, import_typeorm58.Column)({ name: "candidate_id", type: "integer", nullable: true }),
5612
+ (0, import_typeorm58.Index)()
5567
5613
  ], AssessmetQuestion.prototype, "candidateId", 2);
5568
5614
  __decorateClass([
5569
- (0, import_typeorm57.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
5570
- (0, import_typeorm57.JoinColumn)({ name: "candidate_id" })
5615
+ (0, import_typeorm58.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
5616
+ (0, import_typeorm58.JoinColumn)({ name: "candidate_id" })
5571
5617
  ], AssessmetQuestion.prototype, "candidate", 2);
5572
5618
  __decorateClass([
5573
- (0, import_typeorm57.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5619
+ (0, import_typeorm58.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5574
5620
  ], AssessmetQuestion.prototype, "options", 2);
5575
5621
  __decorateClass([
5576
- (0, import_typeorm57.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5622
+ (0, import_typeorm58.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5577
5623
  ], AssessmetQuestion.prototype, "answers", 2);
5578
5624
  AssessmetQuestion = __decorateClass([
5579
- (0, import_typeorm57.Entity)("assessment_questions")
5625
+ (0, import_typeorm58.Entity)("assessment_questions")
5580
5626
  ], AssessmetQuestion);
5581
5627
 
5582
5628
  // src/entities/assessment-answer.entity.ts
@@ -5589,118 +5635,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
5589
5635
  var AssessmentAnswer = class extends BaseEntity {
5590
5636
  };
5591
5637
  __decorateClass([
5592
- (0, import_typeorm58.Column)({ name: "user_id", type: "integer" }),
5593
- (0, import_typeorm58.Index)()
5638
+ (0, import_typeorm59.Column)({ name: "user_id", type: "integer" }),
5639
+ (0, import_typeorm59.Index)()
5594
5640
  ], AssessmentAnswer.prototype, "userId", 2);
5595
5641
  __decorateClass([
5596
- (0, import_typeorm58.ManyToOne)(() => User, (user) => user.assessmentAnswers),
5597
- (0, import_typeorm58.JoinColumn)({ name: "user_id" })
5642
+ (0, import_typeorm59.ManyToOne)(() => User, (user) => user.assessmentAnswers),
5643
+ (0, import_typeorm59.JoinColumn)({ name: "user_id" })
5598
5644
  ], AssessmentAnswer.prototype, "user", 2);
5599
5645
  __decorateClass([
5600
- (0, import_typeorm58.Column)({ name: "question_id", type: "integer" }),
5601
- (0, import_typeorm58.Index)()
5646
+ (0, import_typeorm59.Column)({ name: "question_id", type: "integer" }),
5647
+ (0, import_typeorm59.Index)()
5602
5648
  ], AssessmentAnswer.prototype, "questionId", 2);
5603
5649
  __decorateClass([
5604
- (0, import_typeorm58.ManyToOne)(
5650
+ (0, import_typeorm59.ManyToOne)(
5605
5651
  () => AssessmetQuestion,
5606
5652
  (assessmentQuestion) => assessmentQuestion.answers
5607
5653
  ),
5608
- (0, import_typeorm58.JoinColumn)({ name: "question_id" })
5654
+ (0, import_typeorm59.JoinColumn)({ name: "question_id" })
5609
5655
  ], AssessmentAnswer.prototype, "question", 2);
5610
5656
  __decorateClass([
5611
- (0, import_typeorm58.Column)({ name: "selected_option_id", type: "integer" }),
5612
- (0, import_typeorm58.Index)()
5657
+ (0, import_typeorm59.Column)({ name: "selected_option_id", type: "integer" }),
5658
+ (0, import_typeorm59.Index)()
5613
5659
  ], AssessmentAnswer.prototype, "selectedOptionId", 2);
5614
5660
  __decorateClass([
5615
- (0, import_typeorm58.ManyToOne)(
5661
+ (0, import_typeorm59.ManyToOne)(
5616
5662
  () => AssessmetQuestionOption,
5617
5663
  (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
5618
5664
  ),
5619
- (0, import_typeorm58.JoinColumn)({ name: "selected_option_id" })
5665
+ (0, import_typeorm59.JoinColumn)({ name: "selected_option_id" })
5620
5666
  ], AssessmentAnswer.prototype, "option", 2);
5621
5667
  __decorateClass([
5622
- (0, import_typeorm58.Column)({
5668
+ (0, import_typeorm59.Column)({
5623
5669
  name: "selected_answer_type",
5624
5670
  type: "enum",
5625
5671
  enum: SelectedAnswerTypeEnum
5626
5672
  })
5627
5673
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
5628
5674
  __decorateClass([
5629
- (0, import_typeorm58.Column)({ name: "score", type: "float" })
5675
+ (0, import_typeorm59.Column)({ name: "score", type: "float" })
5630
5676
  ], AssessmentAnswer.prototype, "score", 2);
5631
5677
  AssessmentAnswer = __decorateClass([
5632
- (0, import_typeorm58.Entity)("assessment_answers")
5678
+ (0, import_typeorm59.Entity)("assessment_answers")
5633
5679
  ], AssessmentAnswer);
5634
5680
 
5635
5681
  // src/entities/company-skill.entity.ts
5636
- var import_typeorm59 = require("typeorm");
5682
+ var import_typeorm60 = require("typeorm");
5637
5683
  var CompanySkill = class extends BaseEntity {
5638
5684
  };
5639
5685
  // individual index to find core skills by user
5640
5686
  __decorateClass([
5641
- (0, import_typeorm59.Column)({ name: "user_id", type: "integer", nullable: true }),
5642
- (0, import_typeorm59.Index)()
5687
+ (0, import_typeorm60.Column)({ name: "user_id", type: "integer", nullable: true }),
5688
+ (0, import_typeorm60.Index)()
5643
5689
  ], CompanySkill.prototype, "userId", 2);
5644
5690
  __decorateClass([
5645
- (0, import_typeorm59.ManyToOne)(() => User, (user) => user.companySkills),
5646
- (0, import_typeorm59.JoinColumn)({ name: "user_id" })
5691
+ (0, import_typeorm60.ManyToOne)(() => User, (user) => user.companySkills),
5692
+ (0, import_typeorm60.JoinColumn)({ name: "user_id" })
5647
5693
  ], CompanySkill.prototype, "user", 2);
5648
5694
  __decorateClass([
5649
- (0, import_typeorm59.Column)({ name: "skill_name", type: "varchar", nullable: true })
5695
+ (0, import_typeorm60.Column)({ name: "skill_name", type: "varchar", nullable: true })
5650
5696
  ], CompanySkill.prototype, "skillName", 2);
5651
5697
  CompanySkill = __decorateClass([
5652
- (0, import_typeorm59.Entity)("company_skills")
5698
+ (0, import_typeorm60.Entity)("company_skills")
5653
5699
  ], CompanySkill);
5654
5700
 
5655
5701
  // src/entities/admin-user-role.entity.ts
5656
- var import_typeorm63 = require("typeorm");
5702
+ var import_typeorm64 = require("typeorm");
5657
5703
 
5658
5704
  // src/entities/admin-role.entity.ts
5659
- var import_typeorm62 = require("typeorm");
5705
+ var import_typeorm63 = require("typeorm");
5660
5706
 
5661
5707
  // src/entities/admin-role-permission.entity.ts
5662
- var import_typeorm61 = require("typeorm");
5708
+ var import_typeorm62 = require("typeorm");
5663
5709
 
5664
5710
  // src/entities/admin-permission.entity.ts
5665
- var import_typeorm60 = require("typeorm");
5711
+ var import_typeorm61 = require("typeorm");
5666
5712
  var AdminPermission = class extends BaseEntity {
5667
5713
  };
5668
5714
  __decorateClass([
5669
- (0, import_typeorm60.Column)({ name: "permission_name", type: "varchar", nullable: true })
5715
+ (0, import_typeorm61.Column)({ name: "permission_name", type: "varchar", nullable: true })
5670
5716
  ], AdminPermission.prototype, "permissionName", 2);
5671
5717
  __decorateClass([
5672
- (0, import_typeorm60.Column)({
5718
+ (0, import_typeorm61.Column)({
5673
5719
  name: "permission_slug",
5674
5720
  type: "varchar",
5675
5721
  unique: true,
5676
5722
  nullable: true
5677
5723
  }),
5678
- (0, import_typeorm60.Index)()
5724
+ (0, import_typeorm61.Index)()
5679
5725
  ], AdminPermission.prototype, "permissionSlug", 2);
5680
5726
  __decorateClass([
5681
- (0, import_typeorm60.Column)({ name: "permission_description", type: "varchar", nullable: true })
5727
+ (0, import_typeorm61.Column)({ name: "permission_description", type: "varchar", nullable: true })
5682
5728
  ], AdminPermission.prototype, "permissionDescription", 2);
5683
5729
  __decorateClass([
5684
- (0, import_typeorm60.Column)({ name: "module", type: "varchar", nullable: true })
5730
+ (0, import_typeorm61.Column)({ name: "module", type: "varchar", nullable: true })
5685
5731
  ], AdminPermission.prototype, "module", 2);
5686
5732
  __decorateClass([
5687
- (0, import_typeorm60.Column)({ name: "is_active", type: "boolean", default: true })
5733
+ (0, import_typeorm61.Column)({ name: "is_active", type: "boolean", default: true })
5688
5734
  ], AdminPermission.prototype, "isActive", 2);
5689
5735
  __decorateClass([
5690
- (0, import_typeorm60.OneToMany)(
5736
+ (0, import_typeorm61.OneToMany)(
5691
5737
  () => AdminRolePermission,
5692
5738
  (adminRolePermission) => adminRolePermission.adminPermissions
5693
5739
  )
5694
5740
  ], AdminPermission.prototype, "adminRole", 2);
5695
5741
  AdminPermission = __decorateClass([
5696
- (0, import_typeorm60.Entity)("admin_permissions")
5742
+ (0, import_typeorm61.Entity)("admin_permissions")
5697
5743
  ], AdminPermission);
5698
5744
 
5699
5745
  // src/entities/admin-role-permission.entity.ts
5700
5746
  var AdminRolePermission = class extends BaseEntity {
5701
5747
  };
5702
5748
  __decorateClass([
5703
- (0, import_typeorm61.Column)({
5749
+ (0, import_typeorm62.Column)({
5704
5750
  name: "role_id",
5705
5751
  type: "int",
5706
5752
  nullable: true,
@@ -5708,11 +5754,11 @@ __decorateClass([
5708
5754
  })
5709
5755
  ], AdminRolePermission.prototype, "roleId", 2);
5710
5756
  __decorateClass([
5711
- (0, import_typeorm61.ManyToOne)(() => AdminRole),
5712
- (0, import_typeorm61.JoinColumn)({ name: "role_id" })
5757
+ (0, import_typeorm62.ManyToOne)(() => AdminRole),
5758
+ (0, import_typeorm62.JoinColumn)({ name: "role_id" })
5713
5759
  ], AdminRolePermission.prototype, "adminRole", 2);
5714
5760
  __decorateClass([
5715
- (0, import_typeorm61.Column)({
5761
+ (0, import_typeorm62.Column)({
5716
5762
  name: "permission_id",
5717
5763
  type: "int",
5718
5764
  nullable: true,
@@ -5720,47 +5766,47 @@ __decorateClass([
5720
5766
  })
5721
5767
  ], AdminRolePermission.prototype, "permissionId", 2);
5722
5768
  __decorateClass([
5723
- (0, import_typeorm61.ManyToOne)(() => AdminPermission),
5724
- (0, import_typeorm61.JoinColumn)({ name: "permission_id" })
5769
+ (0, import_typeorm62.ManyToOne)(() => AdminPermission),
5770
+ (0, import_typeorm62.JoinColumn)({ name: "permission_id" })
5725
5771
  ], AdminRolePermission.prototype, "adminPermissions", 2);
5726
5772
  AdminRolePermission = __decorateClass([
5727
- (0, import_typeorm61.Entity)("admin_role_permissions")
5773
+ (0, import_typeorm62.Entity)("admin_role_permissions")
5728
5774
  ], AdminRolePermission);
5729
5775
 
5730
5776
  // src/entities/admin-role.entity.ts
5731
5777
  var AdminRole = class extends BaseEntity {
5732
5778
  };
5733
5779
  __decorateClass([
5734
- (0, import_typeorm62.Column)({ name: "role_name", type: "varchar", nullable: true })
5780
+ (0, import_typeorm63.Column)({ name: "role_name", type: "varchar", nullable: true })
5735
5781
  ], AdminRole.prototype, "roleName", 2);
5736
5782
  __decorateClass([
5737
- (0, import_typeorm62.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5738
- (0, import_typeorm62.Index)()
5783
+ (0, import_typeorm63.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5784
+ (0, import_typeorm63.Index)()
5739
5785
  ], AdminRole.prototype, "roleSlug", 2);
5740
5786
  __decorateClass([
5741
- (0, import_typeorm62.Column)({ name: "role_description", type: "varchar", nullable: true })
5787
+ (0, import_typeorm63.Column)({ name: "role_description", type: "varchar", nullable: true })
5742
5788
  ], AdminRole.prototype, "roleDescription", 2);
5743
5789
  __decorateClass([
5744
- (0, import_typeorm62.Column)({ name: "is_active", type: "boolean", default: true })
5790
+ (0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: true })
5745
5791
  ], AdminRole.prototype, "isActive", 2);
5746
5792
  __decorateClass([
5747
- (0, import_typeorm62.OneToMany)(
5793
+ (0, import_typeorm63.OneToMany)(
5748
5794
  () => AdminRolePermission,
5749
5795
  (addminRolePermission) => addminRolePermission.adminRole
5750
5796
  )
5751
5797
  ], AdminRole.prototype, "adminRolePermission", 2);
5752
5798
  __decorateClass([
5753
- (0, import_typeorm62.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5799
+ (0, import_typeorm63.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5754
5800
  ], AdminRole.prototype, "userRoles", 2);
5755
5801
  AdminRole = __decorateClass([
5756
- (0, import_typeorm62.Entity)("admin_roles")
5802
+ (0, import_typeorm63.Entity)("admin_roles")
5757
5803
  ], AdminRole);
5758
5804
 
5759
5805
  // src/entities/admin-user-role.entity.ts
5760
5806
  var AdminUserRole = class extends BaseEntity {
5761
5807
  };
5762
5808
  __decorateClass([
5763
- (0, import_typeorm63.Column)({
5809
+ (0, import_typeorm64.Column)({
5764
5810
  name: "user_id",
5765
5811
  type: "int",
5766
5812
  nullable: true,
@@ -5768,11 +5814,11 @@ __decorateClass([
5768
5814
  })
5769
5815
  ], AdminUserRole.prototype, "userId", 2);
5770
5816
  __decorateClass([
5771
- (0, import_typeorm63.ManyToOne)(() => User),
5772
- (0, import_typeorm63.JoinColumn)({ name: "user_id" })
5817
+ (0, import_typeorm64.ManyToOne)(() => User),
5818
+ (0, import_typeorm64.JoinColumn)({ name: "user_id" })
5773
5819
  ], AdminUserRole.prototype, "user", 2);
5774
5820
  __decorateClass([
5775
- (0, import_typeorm63.Column)({
5821
+ (0, import_typeorm64.Column)({
5776
5822
  name: "role_id",
5777
5823
  type: "int",
5778
5824
  nullable: true,
@@ -5780,58 +5826,58 @@ __decorateClass([
5780
5826
  })
5781
5827
  ], AdminUserRole.prototype, "roleId", 2);
5782
5828
  __decorateClass([
5783
- (0, import_typeorm63.ManyToOne)(() => AdminRole),
5784
- (0, import_typeorm63.JoinColumn)({ name: "role_id" })
5829
+ (0, import_typeorm64.ManyToOne)(() => AdminRole),
5830
+ (0, import_typeorm64.JoinColumn)({ name: "role_id" })
5785
5831
  ], AdminUserRole.prototype, "adminRole", 2);
5786
5832
  AdminUserRole = __decorateClass([
5787
- (0, import_typeorm63.Entity)("admin_user_roles")
5833
+ (0, import_typeorm64.Entity)("admin_user_roles")
5788
5834
  ], AdminUserRole);
5789
5835
 
5790
5836
  // src/entities/freelancer-resume.entity.ts
5791
- var import_typeorm64 = require("typeorm");
5837
+ var import_typeorm65 = require("typeorm");
5792
5838
  var FreelancerResume = class extends BaseEntity {
5793
5839
  };
5794
5840
  // individual index to find profile by user
5795
5841
  __decorateClass([
5796
- (0, import_typeorm64.Column)({ name: "user_id", type: "integer", nullable: true }),
5797
- (0, import_typeorm64.Index)()
5842
+ (0, import_typeorm65.Column)({ name: "user_id", type: "integer", nullable: true }),
5843
+ (0, import_typeorm65.Index)()
5798
5844
  ], FreelancerResume.prototype, "userId", 2);
5799
5845
  __decorateClass([
5800
- (0, import_typeorm64.ManyToOne)(() => User, (user) => user.freelancerProfile),
5801
- (0, import_typeorm64.JoinColumn)({ name: "user_id" })
5846
+ (0, import_typeorm65.ManyToOne)(() => User, (user) => user.freelancerProfile),
5847
+ (0, import_typeorm65.JoinColumn)({ name: "user_id" })
5802
5848
  ], FreelancerResume.prototype, "user", 2);
5803
5849
  __decorateClass([
5804
- (0, import_typeorm64.Column)({ name: "resume_data", type: "jsonb", nullable: true })
5850
+ (0, import_typeorm65.Column)({ name: "resume_data", type: "jsonb", nullable: true })
5805
5851
  ], FreelancerResume.prototype, "resumeData", 2);
5806
5852
  __decorateClass([
5807
- (0, import_typeorm64.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
5853
+ (0, import_typeorm65.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
5808
5854
  ], FreelancerResume.prototype, "processedResumeData", 2);
5809
5855
  FreelancerResume = __decorateClass([
5810
- (0, import_typeorm64.Entity)("freelancer_resumes")
5856
+ (0, import_typeorm65.Entity)("freelancer_resumes")
5811
5857
  ], FreelancerResume);
5812
5858
 
5813
5859
  // src/entities/signature.entity.ts
5814
- var import_typeorm65 = require("typeorm");
5860
+ var import_typeorm66 = require("typeorm");
5815
5861
  var Signature = class extends BaseEntity {
5816
5862
  };
5817
5863
  // individual index to find profile by user
5818
5864
  __decorateClass([
5819
- (0, import_typeorm65.Column)({ name: "user_id", type: "integer", nullable: true }),
5820
- (0, import_typeorm65.Index)()
5865
+ (0, import_typeorm66.Column)({ name: "user_id", type: "integer", nullable: true }),
5866
+ (0, import_typeorm66.Index)()
5821
5867
  ], Signature.prototype, "userId", 2);
5822
5868
  __decorateClass([
5823
- (0, import_typeorm65.ManyToOne)(() => User, (user) => user.signatures),
5824
- (0, import_typeorm65.JoinColumn)({ name: "user_id" })
5869
+ (0, import_typeorm66.ManyToOne)(() => User, (user) => user.signatures),
5870
+ (0, import_typeorm66.JoinColumn)({ name: "user_id" })
5825
5871
  ], Signature.prototype, "user", 2);
5826
5872
  __decorateClass([
5827
- (0, import_typeorm65.Column)({ name: "signature_url", type: "text", nullable: true })
5873
+ (0, import_typeorm66.Column)({ name: "signature_url", type: "text", nullable: true })
5828
5874
  ], Signature.prototype, "signatureUrl", 2);
5829
5875
  Signature = __decorateClass([
5830
- (0, import_typeorm65.Entity)("signatures")
5876
+ (0, import_typeorm66.Entity)("signatures")
5831
5877
  ], Signature);
5832
5878
 
5833
5879
  // src/entities/dispute.entity.ts
5834
- var import_typeorm66 = require("typeorm");
5880
+ var import_typeorm67 = require("typeorm");
5835
5881
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
5836
5882
  DisputeStatusEnum2["OPEN"] = "OPEN";
5837
5883
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -5852,36 +5898,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
5852
5898
  var Dispute = class extends BaseEntity {
5853
5899
  };
5854
5900
  __decorateClass([
5855
- (0, import_typeorm66.Column)({ name: "client_id", type: "integer", nullable: true }),
5856
- (0, import_typeorm66.Index)()
5901
+ (0, import_typeorm67.Column)({ name: "client_id", type: "integer", nullable: true }),
5902
+ (0, import_typeorm67.Index)()
5857
5903
  ], Dispute.prototype, "clientId", 2);
5858
5904
  __decorateClass([
5859
- (0, import_typeorm66.ManyToOne)(() => User, (user) => user.clientDisputes),
5860
- (0, import_typeorm66.JoinColumn)({ name: "client_id" })
5905
+ (0, import_typeorm67.ManyToOne)(() => User, (user) => user.clientDisputes),
5906
+ (0, import_typeorm67.JoinColumn)({ name: "client_id" })
5861
5907
  ], Dispute.prototype, "client", 2);
5862
5908
  __decorateClass([
5863
- (0, import_typeorm66.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
5864
- (0, import_typeorm66.Index)()
5909
+ (0, import_typeorm67.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
5910
+ (0, import_typeorm67.Index)()
5865
5911
  ], Dispute.prototype, "freelancerId", 2);
5866
5912
  __decorateClass([
5867
- (0, import_typeorm66.ManyToOne)(() => User, (user) => user.freelancerDisputes),
5868
- (0, import_typeorm66.JoinColumn)({ name: "freelancer_id" })
5913
+ (0, import_typeorm67.ManyToOne)(() => User, (user) => user.freelancerDisputes),
5914
+ (0, import_typeorm67.JoinColumn)({ name: "freelancer_id" })
5869
5915
  ], Dispute.prototype, "freelancer", 2);
5870
5916
  __decorateClass([
5871
- (0, import_typeorm66.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
5917
+ (0, import_typeorm67.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
5872
5918
  ], Dispute.prototype, "disputeUniqueId", 2);
5873
5919
  __decorateClass([
5874
- (0, import_typeorm66.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
5875
- (0, import_typeorm66.Index)()
5920
+ (0, import_typeorm67.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
5921
+ (0, import_typeorm67.Index)()
5876
5922
  ], Dispute.prototype, "disputeType", 2);
5877
5923
  __decorateClass([
5878
- (0, import_typeorm66.Column)({ name: "description", type: "varchar", nullable: true })
5924
+ (0, import_typeorm67.Column)({ name: "description", type: "varchar", nullable: true })
5879
5925
  ], Dispute.prototype, "description", 2);
5880
5926
  __decorateClass([
5881
- (0, import_typeorm66.Column)({ name: "comment", type: "varchar", nullable: true })
5927
+ (0, import_typeorm67.Column)({ name: "comment", type: "varchar", nullable: true })
5882
5928
  ], Dispute.prototype, "comment", 2);
5883
5929
  __decorateClass([
5884
- (0, import_typeorm66.Column)({
5930
+ (0, import_typeorm67.Column)({
5885
5931
  name: "status",
5886
5932
  type: "enum",
5887
5933
  enum: DisputeStatusEnum,
@@ -5889,7 +5935,7 @@ __decorateClass([
5889
5935
  })
5890
5936
  ], Dispute.prototype, "status", 2);
5891
5937
  __decorateClass([
5892
- (0, import_typeorm66.Column)({
5938
+ (0, import_typeorm67.Column)({
5893
5939
  name: "initiator_type",
5894
5940
  type: "enum",
5895
5941
  enum: InitiatorTypeEnum,
@@ -5898,33 +5944,33 @@ __decorateClass([
5898
5944
  })
5899
5945
  ], Dispute.prototype, "initiatorType", 2);
5900
5946
  __decorateClass([
5901
- (0, import_typeorm66.Column)({ name: "initiator_id", type: "integer" }),
5902
- (0, import_typeorm66.Index)()
5947
+ (0, import_typeorm67.Column)({ name: "initiator_id", type: "integer" }),
5948
+ (0, import_typeorm67.Index)()
5903
5949
  ], Dispute.prototype, "initiatorId", 2);
5904
5950
  __decorateClass([
5905
- (0, import_typeorm66.ManyToOne)(() => User, (user) => user.initiatedDisputes),
5906
- (0, import_typeorm66.JoinColumn)({ name: "initiator_id" })
5951
+ (0, import_typeorm67.ManyToOne)(() => User, (user) => user.initiatedDisputes),
5952
+ (0, import_typeorm67.JoinColumn)({ name: "initiator_id" })
5907
5953
  ], Dispute.prototype, "initiator", 2);
5908
5954
  __decorateClass([
5909
- (0, import_typeorm66.Column)({ name: "respondent_id", type: "integer", nullable: true }),
5910
- (0, import_typeorm66.Index)()
5955
+ (0, import_typeorm67.Column)({ name: "respondent_id", type: "integer", nullable: true }),
5956
+ (0, import_typeorm67.Index)()
5911
5957
  ], Dispute.prototype, "respondentId", 2);
5912
5958
  __decorateClass([
5913
- (0, import_typeorm66.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
5914
- (0, import_typeorm66.JoinColumn)({ name: "respondent_id" })
5959
+ (0, import_typeorm67.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
5960
+ (0, import_typeorm67.JoinColumn)({ name: "respondent_id" })
5915
5961
  ], Dispute.prototype, "respondent", 2);
5916
5962
  __decorateClass([
5917
- (0, import_typeorm66.Column)({ name: "attachments", type: "jsonb", nullable: true })
5963
+ (0, import_typeorm67.Column)({ name: "attachments", type: "jsonb", nullable: true })
5918
5964
  ], Dispute.prototype, "attachments", 2);
5919
5965
  __decorateClass([
5920
- (0, import_typeorm66.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
5966
+ (0, import_typeorm67.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
5921
5967
  ], Dispute.prototype, "dynamicFields", 2);
5922
5968
  Dispute = __decorateClass([
5923
- (0, import_typeorm66.Entity)("disputes")
5969
+ (0, import_typeorm67.Entity)("disputes")
5924
5970
  ], Dispute);
5925
5971
 
5926
5972
  // src/entities/stripe-transaction.entity.ts
5927
- var import_typeorm67 = require("typeorm");
5973
+ var import_typeorm68 = require("typeorm");
5928
5974
  var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
5929
5975
  StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
5930
5976
  StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -5946,97 +5992,97 @@ var StripeTransaction = class extends BaseEntity {
5946
5992
  // Full Stripe session response
5947
5993
  };
5948
5994
  __decorateClass([
5949
- (0, import_typeorm67.Column)({ name: "user_id", type: "integer", nullable: true }),
5950
- (0, import_typeorm67.Index)()
5995
+ (0, import_typeorm68.Column)({ name: "user_id", type: "integer", nullable: true }),
5996
+ (0, import_typeorm68.Index)()
5951
5997
  ], StripeTransaction.prototype, "userId", 2);
5952
5998
  __decorateClass([
5953
- (0, import_typeorm67.ManyToOne)(() => User, (user) => user.stripeTransactions),
5954
- (0, import_typeorm67.JoinColumn)({ name: "user_id" })
5999
+ (0, import_typeorm68.ManyToOne)(() => User, (user) => user.stripeTransactions),
6000
+ (0, import_typeorm68.JoinColumn)({ name: "user_id" })
5955
6001
  ], StripeTransaction.prototype, "user", 2);
5956
6002
  __decorateClass([
5957
- (0, import_typeorm67.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
6003
+ (0, import_typeorm68.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
5958
6004
  ], StripeTransaction.prototype, "stripeSessionId", 2);
5959
6005
  __decorateClass([
5960
- (0, import_typeorm67.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
6006
+ (0, import_typeorm68.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5961
6007
  ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
5962
6008
  __decorateClass([
5963
- (0, import_typeorm67.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
6009
+ (0, import_typeorm68.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
5964
6010
  ], StripeTransaction.prototype, "stripeChargeId", 2);
5965
6011
  __decorateClass([
5966
- (0, import_typeorm67.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
6012
+ (0, import_typeorm68.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5967
6013
  ], StripeTransaction.prototype, "stripeReceiptUrl", 2);
5968
6014
  __decorateClass([
5969
- (0, import_typeorm67.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
6015
+ (0, import_typeorm68.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5970
6016
  ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
5971
6017
  __decorateClass([
5972
- (0, import_typeorm67.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
6018
+ (0, import_typeorm68.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
5973
6019
  ], StripeTransaction.prototype, "stripePaymentMethod", 2);
5974
6020
  __decorateClass([
5975
- (0, import_typeorm67.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
6021
+ (0, import_typeorm68.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
5976
6022
  ], StripeTransaction.prototype, "stripePaymentStatus", 2);
5977
6023
  __decorateClass([
5978
- (0, import_typeorm67.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
6024
+ (0, import_typeorm68.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5979
6025
  ], StripeTransaction.prototype, "type", 2);
5980
6026
  __decorateClass([
5981
- (0, import_typeorm67.Column)({ name: "currency", type: "varchar", nullable: true })
6027
+ (0, import_typeorm68.Column)({ name: "currency", type: "varchar", nullable: true })
5982
6028
  ], StripeTransaction.prototype, "currency", 2);
5983
6029
  __decorateClass([
5984
- (0, import_typeorm67.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" })
6030
+ (0, import_typeorm68.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" })
5985
6031
  ], StripeTransaction.prototype, "desiredDepositCents", 2);
5986
6032
  __decorateClass([
5987
- (0, import_typeorm67.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
6033
+ (0, import_typeorm68.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5988
6034
  ], StripeTransaction.prototype, "platformFeeCents", 2);
5989
6035
  __decorateClass([
5990
- (0, import_typeorm67.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
6036
+ (0, import_typeorm68.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5991
6037
  ], StripeTransaction.prototype, "taxCents", 2);
5992
6038
  __decorateClass([
5993
- (0, import_typeorm67.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
6039
+ (0, import_typeorm68.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5994
6040
  ], StripeTransaction.prototype, "estimatedStripeFee", 2);
5995
6041
  __decorateClass([
5996
- (0, import_typeorm67.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" })
6042
+ (0, import_typeorm68.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" })
5997
6043
  ], StripeTransaction.prototype, "estimatedTotalCents", 2);
5998
6044
  __decorateClass([
5999
- (0, import_typeorm67.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
6045
+ (0, import_typeorm68.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
6000
6046
  ], StripeTransaction.prototype, "actualStripeFee", 2);
6001
6047
  __decorateClass([
6002
- (0, import_typeorm67.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
6048
+ (0, import_typeorm68.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
6003
6049
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
6004
6050
  __decorateClass([
6005
- (0, import_typeorm67.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" })
6051
+ (0, import_typeorm68.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" })
6006
6052
  ], StripeTransaction.prototype, "netReceivedCents", 2);
6007
6053
  __decorateClass([
6008
- (0, import_typeorm67.Column)({ name: "description", type: "text", nullable: true })
6054
+ (0, import_typeorm68.Column)({ name: "description", type: "text", nullable: true })
6009
6055
  ], StripeTransaction.prototype, "description", 2);
6010
6056
  __decorateClass([
6011
- (0, import_typeorm67.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6057
+ (0, import_typeorm68.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6012
6058
  ], StripeTransaction.prototype, "status", 2);
6013
6059
  __decorateClass([
6014
- (0, import_typeorm67.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
6060
+ (0, import_typeorm68.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
6015
6061
  ], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
6016
6062
  __decorateClass([
6017
- (0, import_typeorm67.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
6063
+ (0, import_typeorm68.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
6018
6064
  ], StripeTransaction.prototype, "completedAt", 2);
6019
6065
  __decorateClass([
6020
- (0, import_typeorm67.Column)({ name: "billing_details", type: "jsonb", nullable: true })
6066
+ (0, import_typeorm68.Column)({ name: "billing_details", type: "jsonb", nullable: true })
6021
6067
  ], StripeTransaction.prototype, "billingDetails", 2);
6022
6068
  __decorateClass([
6023
- (0, import_typeorm67.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
6069
+ (0, import_typeorm68.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
6024
6070
  ], StripeTransaction.prototype, "paymentMethodDetails", 2);
6025
6071
  __decorateClass([
6026
- (0, import_typeorm67.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
6072
+ (0, import_typeorm68.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
6027
6073
  ], StripeTransaction.prototype, "rawSessionPayload", 2);
6028
6074
  __decorateClass([
6029
- (0, import_typeorm67.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
6075
+ (0, import_typeorm68.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
6030
6076
  ], StripeTransaction.prototype, "rawSessionResponse", 2);
6031
6077
  StripeTransaction = __decorateClass([
6032
- (0, import_typeorm67.Entity)("stripe_transactions")
6078
+ (0, import_typeorm68.Entity)("stripe_transactions")
6033
6079
  ], StripeTransaction);
6034
6080
 
6035
6081
  // src/entities/wallet.entity.ts
6036
- var import_typeorm69 = require("typeorm");
6082
+ var import_typeorm70 = require("typeorm");
6037
6083
 
6038
6084
  // src/entities/wallet-transaction.entity.ts
6039
- var import_typeorm68 = require("typeorm");
6085
+ var import_typeorm69 = require("typeorm");
6040
6086
  var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
6041
6087
  WalletTransactionTypeEnum2["CR"] = "CR";
6042
6088
  WalletTransactionTypeEnum2["DR"] = "DR";
@@ -6053,46 +6099,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
6053
6099
  var WalletTransaction = class extends BaseEntity {
6054
6100
  };
6055
6101
  __decorateClass([
6056
- (0, import_typeorm68.Column)({ name: "wallet_id", type: "integer", nullable: true }),
6057
- (0, import_typeorm68.Index)()
6102
+ (0, import_typeorm69.Column)({ name: "wallet_id", type: "integer", nullable: true }),
6103
+ (0, import_typeorm69.Index)()
6058
6104
  ], WalletTransaction.prototype, "walletId", 2);
6059
6105
  __decorateClass([
6060
- (0, import_typeorm68.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
6061
- (0, import_typeorm68.JoinColumn)({ name: "wallet_id" })
6106
+ (0, import_typeorm69.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
6107
+ (0, import_typeorm69.JoinColumn)({ name: "wallet_id" })
6062
6108
  ], WalletTransaction.prototype, "wallet", 2);
6063
6109
  __decorateClass([
6064
- (0, import_typeorm68.Column)({ name: "amount", type: "bigint", nullable: true })
6110
+ (0, import_typeorm69.Column)({ name: "amount", type: "bigint", nullable: true })
6065
6111
  ], WalletTransaction.prototype, "amount", 2);
6066
6112
  __decorateClass([
6067
- (0, import_typeorm68.Column)({ name: "balance_before", type: "bigint", nullable: true })
6113
+ (0, import_typeorm69.Column)({ name: "balance_before", type: "bigint", nullable: true })
6068
6114
  ], WalletTransaction.prototype, "balanceBefore", 2);
6069
6115
  __decorateClass([
6070
- (0, import_typeorm68.Column)({ name: "balance_after", type: "bigint", nullable: true })
6116
+ (0, import_typeorm69.Column)({ name: "balance_after", type: "bigint", nullable: true })
6071
6117
  ], WalletTransaction.prototype, "balanceAfter", 2);
6072
6118
  __decorateClass([
6073
- (0, import_typeorm68.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
6119
+ (0, import_typeorm69.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
6074
6120
  ], WalletTransaction.prototype, "type", 2);
6075
6121
  __decorateClass([
6076
- (0, import_typeorm68.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6122
+ (0, import_typeorm69.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6077
6123
  ], WalletTransaction.prototype, "status", 2);
6078
6124
  __decorateClass([
6079
- (0, import_typeorm68.Column)({ name: "description", type: "text", nullable: true })
6125
+ (0, import_typeorm69.Column)({ name: "description", type: "text", nullable: true })
6080
6126
  ], WalletTransaction.prototype, "description", 2);
6081
6127
  __decorateClass([
6082
- (0, import_typeorm68.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
6128
+ (0, import_typeorm69.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
6083
6129
  ], WalletTransaction.prototype, "completedAt", 2);
6084
6130
  __decorateClass([
6085
- (0, import_typeorm68.Column)({ name: "transaction_for", type: "varchar", nullable: true })
6131
+ (0, import_typeorm69.Column)({ name: "transaction_for", type: "varchar", nullable: true })
6086
6132
  ], WalletTransaction.prototype, "transactionFor", 2);
6087
6133
  __decorateClass([
6088
- (0, import_typeorm68.Column)({ name: "meta_data", type: "varchar", nullable: true })
6134
+ (0, import_typeorm69.Column)({ name: "meta_data", type: "varchar", nullable: true })
6089
6135
  ], WalletTransaction.prototype, "metaData", 2);
6090
6136
  __decorateClass([
6091
- (0, import_typeorm68.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
6092
- (0, import_typeorm68.Index)()
6137
+ (0, import_typeorm69.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
6138
+ (0, import_typeorm69.Index)()
6093
6139
  ], WalletTransaction.prototype, "stripeTransactionId", 2);
6094
6140
  WalletTransaction = __decorateClass([
6095
- (0, import_typeorm68.Entity)("wallet_transactions")
6141
+ (0, import_typeorm69.Entity)("wallet_transactions")
6096
6142
  ], WalletTransaction);
6097
6143
 
6098
6144
  // src/entities/wallet.entity.ts
@@ -6110,43 +6156,43 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
6110
6156
  var Wallet = class extends BaseEntity {
6111
6157
  };
6112
6158
  __decorateClass([
6113
- (0, import_typeorm69.Column)({ name: "user_id", type: "integer", nullable: true }),
6114
- (0, import_typeorm69.Index)()
6159
+ (0, import_typeorm70.Column)({ name: "user_id", type: "integer", nullable: true }),
6160
+ (0, import_typeorm70.Index)()
6115
6161
  ], Wallet.prototype, "userId", 2);
6116
6162
  __decorateClass([
6117
- (0, import_typeorm69.OneToOne)(() => User, (user) => user.wallet),
6118
- (0, import_typeorm69.JoinColumn)({ name: "user_id" })
6163
+ (0, import_typeorm70.OneToOne)(() => User, (user) => user.wallet),
6164
+ (0, import_typeorm70.JoinColumn)({ name: "user_id" })
6119
6165
  ], Wallet.prototype, "user", 2);
6120
6166
  __decorateClass([
6121
- (0, import_typeorm69.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
6167
+ (0, import_typeorm70.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
6122
6168
  ], Wallet.prototype, "accountType", 2);
6123
6169
  __decorateClass([
6124
- (0, import_typeorm69.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
6170
+ (0, import_typeorm70.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
6125
6171
  ], Wallet.prototype, "stripeAccountId", 2);
6126
6172
  __decorateClass([
6127
- (0, import_typeorm69.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
6173
+ (0, import_typeorm70.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
6128
6174
  ], Wallet.prototype, "stripeCustomerId", 2);
6129
6175
  __decorateClass([
6130
- (0, import_typeorm69.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" })
6176
+ (0, import_typeorm70.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" })
6131
6177
  ], Wallet.prototype, "walletBalance", 2);
6132
6178
  __decorateClass([
6133
- (0, import_typeorm69.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" })
6179
+ (0, import_typeorm70.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" })
6134
6180
  ], Wallet.prototype, "walletBalanceCents", 2);
6135
6181
  __decorateClass([
6136
- (0, import_typeorm69.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
6182
+ (0, import_typeorm70.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
6137
6183
  ], Wallet.prototype, "onboardingStatus", 2);
6138
6184
  __decorateClass([
6139
- (0, import_typeorm69.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
6185
+ (0, import_typeorm70.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
6140
6186
  ], Wallet.prototype, "stripeMetadata", 2);
6141
6187
  __decorateClass([
6142
- (0, import_typeorm69.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
6188
+ (0, import_typeorm70.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
6143
6189
  ], Wallet.prototype, "walletTransactions", 2);
6144
6190
  Wallet = __decorateClass([
6145
- (0, import_typeorm69.Entity)("wallets")
6191
+ (0, import_typeorm70.Entity)("wallets")
6146
6192
  ], Wallet);
6147
6193
 
6148
6194
  // src/entities/freelancer-assessment-request.entity.ts
6149
- var import_typeorm70 = require("typeorm");
6195
+ var import_typeorm71 = require("typeorm");
6150
6196
  var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
6151
6197
  AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
6152
6198
  AssessmentRequestStatusEnum2["APPROVED"] = "APPROVED";
@@ -6156,23 +6202,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
6156
6202
  var FreelancerAssessmentRequest = class extends BaseEntity {
6157
6203
  };
6158
6204
  __decorateClass([
6159
- (0, import_typeorm70.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
6160
- (0, import_typeorm70.Index)()
6205
+ (0, import_typeorm71.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
6206
+ (0, import_typeorm71.Index)()
6161
6207
  ], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
6162
6208
  __decorateClass([
6163
- (0, import_typeorm70.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
6164
- (0, import_typeorm70.JoinColumn)({ name: "freelancer_id" })
6209
+ (0, import_typeorm71.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
6210
+ (0, import_typeorm71.JoinColumn)({ name: "freelancer_id" })
6165
6211
  ], FreelancerAssessmentRequest.prototype, "freelancer", 2);
6166
6212
  __decorateClass([
6167
- (0, import_typeorm70.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
6168
- (0, import_typeorm70.Index)()
6213
+ (0, import_typeorm71.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
6214
+ (0, import_typeorm71.Index)()
6169
6215
  ], FreelancerAssessmentRequest.prototype, "approvedById", 2);
6170
6216
  __decorateClass([
6171
- (0, import_typeorm70.ManyToOne)(() => User, (user) => user.assessmentRequests),
6172
- (0, import_typeorm70.JoinColumn)({ name: "approved_by_id" })
6217
+ (0, import_typeorm71.ManyToOne)(() => User, (user) => user.assessmentRequests),
6218
+ (0, import_typeorm71.JoinColumn)({ name: "approved_by_id" })
6173
6219
  ], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
6174
6220
  __decorateClass([
6175
- (0, import_typeorm70.Column)({
6221
+ (0, import_typeorm71.Column)({
6176
6222
  name: "status",
6177
6223
  type: "enum",
6178
6224
  enum: AssessmentRequestStatusEnum,
@@ -6180,51 +6226,51 @@ __decorateClass([
6180
6226
  })
6181
6227
  ], FreelancerAssessmentRequest.prototype, "status", 2);
6182
6228
  __decorateClass([
6183
- (0, import_typeorm70.Column)({ name: "assessment_link", type: "text", nullable: true })
6229
+ (0, import_typeorm71.Column)({ name: "assessment_link", type: "text", nullable: true })
6184
6230
  ], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
6185
6231
  FreelancerAssessmentRequest = __decorateClass([
6186
- (0, import_typeorm70.Entity)({ name: "freelancer_assessment_requests" })
6232
+ (0, import_typeorm71.Entity)({ name: "freelancer_assessment_requests" })
6187
6233
  ], FreelancerAssessmentRequest);
6188
6234
 
6189
6235
  // src/entities/in-app-notification.entity.ts
6190
- var import_typeorm71 = require("typeorm");
6236
+ var import_typeorm72 = require("typeorm");
6191
6237
  var InAppNotification = class extends BaseEntity {
6192
6238
  };
6193
6239
  __decorateClass([
6194
- (0, import_typeorm71.Column)({ name: "user_id", type: "integer", nullable: true }),
6195
- (0, import_typeorm71.Index)()
6240
+ (0, import_typeorm72.Column)({ name: "user_id", type: "integer", nullable: true }),
6241
+ (0, import_typeorm72.Index)()
6196
6242
  ], InAppNotification.prototype, "userId", 2);
6197
6243
  __decorateClass([
6198
- (0, import_typeorm71.ManyToOne)(() => User, (user) => user.inAppNotifications),
6199
- (0, import_typeorm71.JoinColumn)({ name: "user_id" })
6244
+ (0, import_typeorm72.ManyToOne)(() => User, (user) => user.inAppNotifications),
6245
+ (0, import_typeorm72.JoinColumn)({ name: "user_id" })
6200
6246
  ], InAppNotification.prototype, "user", 2);
6201
6247
  __decorateClass([
6202
- (0, import_typeorm71.Column)({ name: "event", type: "varchar", nullable: true })
6248
+ (0, import_typeorm72.Column)({ name: "event", type: "varchar", nullable: true })
6203
6249
  ], InAppNotification.prototype, "event", 2);
6204
6250
  __decorateClass([
6205
- (0, import_typeorm71.Column)({ name: "title", type: "varchar", nullable: true })
6251
+ (0, import_typeorm72.Column)({ name: "title", type: "varchar", nullable: true })
6206
6252
  ], InAppNotification.prototype, "title", 2);
6207
6253
  __decorateClass([
6208
- (0, import_typeorm71.Column)({ name: "message", type: "varchar", nullable: true })
6254
+ (0, import_typeorm72.Column)({ name: "message", type: "varchar", nullable: true })
6209
6255
  ], InAppNotification.prototype, "message", 2);
6210
6256
  __decorateClass([
6211
- (0, import_typeorm71.Column)({ name: "redirect_url", type: "varchar", nullable: true })
6257
+ (0, import_typeorm72.Column)({ name: "redirect_url", type: "varchar", nullable: true })
6212
6258
  ], InAppNotification.prototype, "redirectUrl", 2);
6213
6259
  __decorateClass([
6214
- (0, import_typeorm71.Column)({ name: "is_read", type: "boolean", default: false })
6260
+ (0, import_typeorm72.Column)({ name: "is_read", type: "boolean", default: false })
6215
6261
  ], InAppNotification.prototype, "isRead", 2);
6216
6262
  __decorateClass([
6217
- (0, import_typeorm71.Column)({ name: "meta_data", type: "jsonb", nullable: true })
6263
+ (0, import_typeorm72.Column)({ name: "meta_data", type: "jsonb", nullable: true })
6218
6264
  ], InAppNotification.prototype, "metaData", 2);
6219
6265
  InAppNotification = __decorateClass([
6220
- (0, import_typeorm71.Entity)("in_app_notifications")
6266
+ (0, import_typeorm72.Entity)("in_app_notifications")
6221
6267
  ], InAppNotification);
6222
6268
 
6223
6269
  // src/entities/task-query.entity.ts
6224
- var import_typeorm73 = require("typeorm");
6270
+ var import_typeorm74 = require("typeorm");
6225
6271
 
6226
6272
  // src/entities/task-query-message.entity.ts
6227
- var import_typeorm72 = require("typeorm");
6273
+ var import_typeorm73 = require("typeorm");
6228
6274
  var TaskQueryMessageUserTypeEnum = /* @__PURE__ */ ((TaskQueryMessageUserTypeEnum2) => {
6229
6275
  TaskQueryMessageUserTypeEnum2["CLIENT"] = "CLIENT";
6230
6276
  TaskQueryMessageUserTypeEnum2["FREELANCER"] = "FREELANCER";
@@ -6233,52 +6279,52 @@ var TaskQueryMessageUserTypeEnum = /* @__PURE__ */ ((TaskQueryMessageUserTypeEnu
6233
6279
  var TaskQueryMessage = class extends BaseEntity {
6234
6280
  };
6235
6281
  __decorateClass([
6236
- (0, import_typeorm72.Column)({ name: "task_query_id", type: "integer" }),
6237
- (0, import_typeorm72.Index)()
6282
+ (0, import_typeorm73.Column)({ name: "task_query_id", type: "integer" }),
6283
+ (0, import_typeorm73.Index)()
6238
6284
  ], TaskQueryMessage.prototype, "taskQueryId", 2);
6239
6285
  __decorateClass([
6240
- (0, import_typeorm72.ManyToOne)(() => TaskQuery, (taskQuery) => taskQuery.messages),
6241
- (0, import_typeorm72.JoinColumn)({ name: "task_query_id" })
6286
+ (0, import_typeorm73.ManyToOne)(() => TaskQuery, (taskQuery) => taskQuery.messages),
6287
+ (0, import_typeorm73.JoinColumn)({ name: "task_query_id" })
6242
6288
  ], TaskQueryMessage.prototype, "taskQuery", 2);
6243
6289
  __decorateClass([
6244
- (0, import_typeorm72.Column)({ name: "sender_user_id", type: "integer" }),
6245
- (0, import_typeorm72.Index)()
6290
+ (0, import_typeorm73.Column)({ name: "sender_user_id", type: "integer" }),
6291
+ (0, import_typeorm73.Index)()
6246
6292
  ], TaskQueryMessage.prototype, "senderUserId", 2);
6247
6293
  __decorateClass([
6248
- (0, import_typeorm72.ManyToOne)(() => User, (user) => user.taskQueryMessages),
6249
- (0, import_typeorm72.JoinColumn)({ name: "sender_user_id" })
6294
+ (0, import_typeorm73.ManyToOne)(() => User, (user) => user.taskQueryMessages),
6295
+ (0, import_typeorm73.JoinColumn)({ name: "sender_user_id" })
6250
6296
  ], TaskQueryMessage.prototype, "senderUser", 2);
6251
6297
  __decorateClass([
6252
- (0, import_typeorm72.Column)({
6298
+ (0, import_typeorm73.Column)({
6253
6299
  name: "sender_type",
6254
6300
  type: "enum",
6255
6301
  enum: TaskQueryMessageUserTypeEnum
6256
6302
  })
6257
6303
  ], TaskQueryMessage.prototype, "senderType", 2);
6258
6304
  __decorateClass([
6259
- (0, import_typeorm72.Column)({ name: "message", type: "varchar", nullable: true })
6305
+ (0, import_typeorm73.Column)({ name: "message", type: "varchar", nullable: true })
6260
6306
  ], TaskQueryMessage.prototype, "message", 2);
6261
6307
  __decorateClass([
6262
- (0, import_typeorm72.Column)({ name: "attachment_url", type: "varchar", nullable: true })
6308
+ (0, import_typeorm73.Column)({ name: "attachment_url", type: "varchar", nullable: true })
6263
6309
  ], TaskQueryMessage.prototype, "attachmentUrl", 2);
6264
6310
  __decorateClass([
6265
- (0, import_typeorm72.Column)({ name: "attachment_type", type: "varchar", nullable: true })
6311
+ (0, import_typeorm73.Column)({ name: "attachment_type", type: "varchar", nullable: true })
6266
6312
  ], TaskQueryMessage.prototype, "attachmentType", 2);
6267
6313
  __decorateClass([
6268
- (0, import_typeorm72.Column)({ name: "meta", type: "jsonb", nullable: true })
6314
+ (0, import_typeorm73.Column)({ name: "meta", type: "jsonb", nullable: true })
6269
6315
  ], TaskQueryMessage.prototype, "meta", 2);
6270
6316
  __decorateClass([
6271
- (0, import_typeorm72.Column)({ name: "is_read", type: "boolean", default: false })
6317
+ (0, import_typeorm73.Column)({ name: "is_read", type: "boolean", default: false })
6272
6318
  ], TaskQueryMessage.prototype, "isRead", 2);
6273
6319
  __decorateClass([
6274
- (0, import_typeorm72.Column)({
6320
+ (0, import_typeorm73.Column)({
6275
6321
  name: "read_at",
6276
6322
  type: "timestamp with time zone",
6277
6323
  nullable: true
6278
6324
  })
6279
6325
  ], TaskQueryMessage.prototype, "readAt", 2);
6280
6326
  TaskQueryMessage = __decorateClass([
6281
- (0, import_typeorm72.Entity)("task_query_messages")
6327
+ (0, import_typeorm73.Entity)("task_query_messages")
6282
6328
  ], TaskQueryMessage);
6283
6329
 
6284
6330
  // src/entities/task-query.entity.ts
@@ -6302,58 +6348,58 @@ var TaskQueryStatusEnum = /* @__PURE__ */ ((TaskQueryStatusEnum2) => {
6302
6348
  var TaskQuery = class extends BaseEntity {
6303
6349
  };
6304
6350
  __decorateClass([
6305
- (0, import_typeorm73.Column)({ name: "task_id", type: "integer" }),
6306
- (0, import_typeorm73.Index)()
6351
+ (0, import_typeorm74.Column)({ name: "task_id", type: "integer" }),
6352
+ (0, import_typeorm74.Index)()
6307
6353
  ], TaskQuery.prototype, "taskId", 2);
6308
6354
  __decorateClass([
6309
- (0, import_typeorm73.ManyToOne)(() => Task),
6310
- (0, import_typeorm73.JoinColumn)({ name: "task_id" })
6355
+ (0, import_typeorm74.ManyToOne)(() => Task),
6356
+ (0, import_typeorm74.JoinColumn)({ name: "task_id" })
6311
6357
  ], TaskQuery.prototype, "task", 2);
6312
6358
  __decorateClass([
6313
- (0, import_typeorm73.Column)({ name: "raised_by_user_id", type: "integer" }),
6314
- (0, import_typeorm73.Index)()
6359
+ (0, import_typeorm74.Column)({ name: "raised_by_user_id", type: "integer" }),
6360
+ (0, import_typeorm74.Index)()
6315
6361
  ], TaskQuery.prototype, "raisedByUserId", 2);
6316
6362
  __decorateClass([
6317
- (0, import_typeorm73.ManyToOne)(() => User, (user) => user.raisedTaskQueries),
6318
- (0, import_typeorm73.JoinColumn)({ name: "raised_by_user_id" })
6363
+ (0, import_typeorm74.ManyToOne)(() => User, (user) => user.raisedTaskQueries),
6364
+ (0, import_typeorm74.JoinColumn)({ name: "raised_by_user_id" })
6319
6365
  ], TaskQuery.prototype, "raisedByUser", 2);
6320
6366
  __decorateClass([
6321
- (0, import_typeorm73.Column)({
6367
+ (0, import_typeorm74.Column)({
6322
6368
  name: "raised_by_type",
6323
6369
  type: "enum",
6324
6370
  enum: TaskQueryUserTypeEnum
6325
6371
  })
6326
6372
  ], TaskQuery.prototype, "raisedByType", 2);
6327
6373
  __decorateClass([
6328
- (0, import_typeorm73.Column)({ name: "assigned_to_user_id", type: "integer" }),
6329
- (0, import_typeorm73.Index)()
6374
+ (0, import_typeorm74.Column)({ name: "assigned_to_user_id", type: "integer" }),
6375
+ (0, import_typeorm74.Index)()
6330
6376
  ], TaskQuery.prototype, "assignedToUserId", 2);
6331
6377
  __decorateClass([
6332
- (0, import_typeorm73.ManyToOne)(() => User, (user) => user.assignedTaskQueries),
6333
- (0, import_typeorm73.JoinColumn)({ name: "assigned_to_user_id" })
6378
+ (0, import_typeorm74.ManyToOne)(() => User, (user) => user.assignedTaskQueries),
6379
+ (0, import_typeorm74.JoinColumn)({ name: "assigned_to_user_id" })
6334
6380
  ], TaskQuery.prototype, "assignedToUser", 2);
6335
6381
  __decorateClass([
6336
- (0, import_typeorm73.Column)({
6382
+ (0, import_typeorm74.Column)({
6337
6383
  name: "assigned_to_type",
6338
6384
  type: "enum",
6339
6385
  enum: TaskQueryUserTypeEnum
6340
6386
  })
6341
6387
  ], TaskQuery.prototype, "assignedToType", 2);
6342
6388
  __decorateClass([
6343
- (0, import_typeorm73.Column)({
6389
+ (0, import_typeorm74.Column)({
6344
6390
  name: "query_category",
6345
6391
  type: "enum",
6346
6392
  enum: TaskQueryCategoryEnum
6347
6393
  })
6348
6394
  ], TaskQuery.prototype, "queryCategory", 2);
6349
6395
  __decorateClass([
6350
- (0, import_typeorm73.Column)({ name: "subject", type: "varchar", nullable: true })
6396
+ (0, import_typeorm74.Column)({ name: "subject", type: "varchar", nullable: true })
6351
6397
  ], TaskQuery.prototype, "subject", 2);
6352
6398
  __decorateClass([
6353
- (0, import_typeorm73.Column)({ name: "description", type: "varchar", nullable: true })
6399
+ (0, import_typeorm74.Column)({ name: "description", type: "varchar", nullable: true })
6354
6400
  ], TaskQuery.prototype, "description", 2);
6355
6401
  __decorateClass([
6356
- (0, import_typeorm73.Column)({
6402
+ (0, import_typeorm74.Column)({
6357
6403
  name: "status",
6358
6404
  type: "enum",
6359
6405
  enum: TaskQueryStatusEnum,
@@ -6361,26 +6407,26 @@ __decorateClass([
6361
6407
  })
6362
6408
  ], TaskQuery.prototype, "status", 2);
6363
6409
  __decorateClass([
6364
- (0, import_typeorm73.Column)({
6410
+ (0, import_typeorm74.Column)({
6365
6411
  name: "last_message_at",
6366
6412
  type: "timestamp with time zone",
6367
6413
  nullable: true
6368
6414
  })
6369
6415
  ], TaskQuery.prototype, "lastMessageAt", 2);
6370
6416
  __decorateClass([
6371
- (0, import_typeorm73.Column)({ name: "last_message_preview", type: "varchar", nullable: true })
6417
+ (0, import_typeorm74.Column)({ name: "last_message_preview", type: "varchar", nullable: true })
6372
6418
  ], TaskQuery.prototype, "lastMessagePreview", 2);
6373
6419
  __decorateClass([
6374
- (0, import_typeorm73.Column)({ name: "unread_count_client", type: "integer", default: 0 })
6420
+ (0, import_typeorm74.Column)({ name: "unread_count_client", type: "integer", default: 0 })
6375
6421
  ], TaskQuery.prototype, "unreadCountClient", 2);
6376
6422
  __decorateClass([
6377
- (0, import_typeorm73.Column)({ name: "unread_count_freelancer", type: "integer", default: 0 })
6423
+ (0, import_typeorm74.Column)({ name: "unread_count_freelancer", type: "integer", default: 0 })
6378
6424
  ], TaskQuery.prototype, "unreadCountFreelancer", 2);
6379
6425
  __decorateClass([
6380
- (0, import_typeorm73.OneToMany)(() => TaskQueryMessage, (message) => message.taskQuery, { cascade: true })
6426
+ (0, import_typeorm74.OneToMany)(() => TaskQueryMessage, (message) => message.taskQuery, { cascade: true })
6381
6427
  ], TaskQuery.prototype, "messages", 2);
6382
6428
  TaskQuery = __decorateClass([
6383
- (0, import_typeorm73.Entity)("task_queries")
6429
+ (0, import_typeorm74.Entity)("task_queries")
6384
6430
  ], TaskQuery);
6385
6431
 
6386
6432
  // src/entities/user.entity.ts
@@ -6409,51 +6455,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
6409
6455
  var User = class extends BaseEntity {
6410
6456
  };
6411
6457
  __decorateClass([
6412
- (0, import_typeorm74.Column)({ name: "unique_id", type: "varchar", unique: true })
6458
+ (0, import_typeorm75.Column)({ name: "unique_id", type: "varchar", unique: true })
6413
6459
  ], User.prototype, "uniqueId", 2);
6414
6460
  __decorateClass([
6415
- (0, import_typeorm74.Column)({ name: "parent_id", type: "integer", nullable: true }),
6416
- (0, import_typeorm74.Index)()
6461
+ (0, import_typeorm75.Column)({ name: "parent_id", type: "integer", nullable: true }),
6462
+ (0, import_typeorm75.Index)()
6417
6463
  ], User.prototype, "parentId", 2);
6418
6464
  __decorateClass([
6419
- (0, import_typeorm74.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
6420
- (0, import_typeorm74.JoinColumn)({ name: "parent_id" })
6465
+ (0, import_typeorm75.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
6466
+ (0, import_typeorm75.JoinColumn)({ name: "parent_id" })
6421
6467
  ], User.prototype, "parent", 2);
6422
6468
  __decorateClass([
6423
- (0, import_typeorm74.OneToMany)(() => User, (user) => user.parent)
6469
+ (0, import_typeorm75.OneToMany)(() => User, (user) => user.parent)
6424
6470
  ], User.prototype, "children", 2);
6425
6471
  __decorateClass([
6426
- (0, import_typeorm74.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
6472
+ (0, import_typeorm75.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
6427
6473
  ], User.prototype, "username", 2);
6428
6474
  __decorateClass([
6429
- (0, import_typeorm74.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
6475
+ (0, import_typeorm75.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
6430
6476
  ], User.prototype, "firstName", 2);
6431
6477
  __decorateClass([
6432
- (0, import_typeorm74.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
6478
+ (0, import_typeorm75.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
6433
6479
  ], User.prototype, "lastName", 2);
6434
6480
  __decorateClass([
6435
- (0, import_typeorm74.Column)({ name: "date_of_birth", type: "date", nullable: true })
6481
+ (0, import_typeorm75.Column)({ name: "date_of_birth", type: "date", nullable: true })
6436
6482
  ], User.prototype, "dateOfBirth", 2);
6437
6483
  __decorateClass([
6438
- (0, import_typeorm74.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
6484
+ (0, import_typeorm75.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
6439
6485
  ], User.prototype, "gender", 2);
6440
6486
  __decorateClass([
6441
- (0, import_typeorm74.Column)({ name: "profile_picture_url", type: "text", nullable: true })
6487
+ (0, import_typeorm75.Column)({ name: "profile_picture_url", type: "text", nullable: true })
6442
6488
  ], User.prototype, "profilePictureUrl", 2);
6443
6489
  __decorateClass([
6444
- (0, import_typeorm74.Column)({ name: "email", type: "varchar", unique: true })
6490
+ (0, import_typeorm75.Column)({ name: "email", type: "varchar", unique: true })
6445
6491
  ], User.prototype, "email", 2);
6446
6492
  __decorateClass([
6447
- (0, import_typeorm74.Column)({ name: "mobile_code", type: "varchar", nullable: true })
6493
+ (0, import_typeorm75.Column)({ name: "mobile_code", type: "varchar", nullable: true })
6448
6494
  ], User.prototype, "mobileCode", 2);
6449
6495
  __decorateClass([
6450
- (0, import_typeorm74.Column)({ name: "mobile", type: "varchar", nullable: true })
6496
+ (0, import_typeorm75.Column)({ name: "mobile", type: "varchar", nullable: true })
6451
6497
  ], User.prototype, "mobile", 2);
6452
6498
  __decorateClass([
6453
- (0, import_typeorm74.Column)({ name: "password", type: "varchar", nullable: true })
6499
+ (0, import_typeorm75.Column)({ name: "password", type: "varchar", nullable: true })
6454
6500
  ], User.prototype, "password", 2);
6455
6501
  __decorateClass([
6456
- (0, import_typeorm74.Column)({
6502
+ (0, import_typeorm75.Column)({
6457
6503
  name: "account_type",
6458
6504
  type: "enum",
6459
6505
  enum: AccountType2,
@@ -6461,7 +6507,7 @@ __decorateClass([
6461
6507
  })
6462
6508
  ], User.prototype, "accountType", 2);
6463
6509
  __decorateClass([
6464
- (0, import_typeorm74.Column)({
6510
+ (0, import_typeorm75.Column)({
6465
6511
  name: "account_status",
6466
6512
  type: "enum",
6467
6513
  enum: AccountStatus,
@@ -6469,45 +6515,45 @@ __decorateClass([
6469
6515
  })
6470
6516
  ], User.prototype, "accountStatus", 2);
6471
6517
  __decorateClass([
6472
- (0, import_typeorm74.Column)({ name: "is_email_verified", type: "boolean", default: false })
6518
+ (0, import_typeorm75.Column)({ name: "is_email_verified", type: "boolean", default: false })
6473
6519
  ], User.prototype, "isEmailVerified", 2);
6474
6520
  __decorateClass([
6475
- (0, import_typeorm74.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
6521
+ (0, import_typeorm75.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
6476
6522
  ], User.prototype, "isMobileVerified", 2);
6477
6523
  __decorateClass([
6478
- (0, import_typeorm74.Column)({ name: "is_social", type: "boolean", default: false })
6524
+ (0, import_typeorm75.Column)({ name: "is_social", type: "boolean", default: false })
6479
6525
  ], User.prototype, "isSocial", 2);
6480
6526
  __decorateClass([
6481
- (0, import_typeorm74.Column)({ name: "is_referral_user", type: "boolean", default: false })
6527
+ (0, import_typeorm75.Column)({ name: "is_referral_user", type: "boolean", default: false })
6482
6528
  ], User.prototype, "isReferralUser", 2);
6483
6529
  __decorateClass([
6484
- (0, import_typeorm74.Column)({
6530
+ (0, import_typeorm75.Column)({
6485
6531
  name: "last_login_at",
6486
6532
  type: "timestamp with time zone",
6487
6533
  nullable: true
6488
6534
  })
6489
6535
  ], User.prototype, "lastLoginAt", 2);
6490
6536
  __decorateClass([
6491
- (0, import_typeorm74.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
6537
+ (0, import_typeorm75.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
6492
6538
  ], User.prototype, "lastLoginIp", 2);
6493
6539
  __decorateClass([
6494
- (0, import_typeorm74.Column)({ name: "reset_token", type: "varchar", nullable: true })
6540
+ (0, import_typeorm75.Column)({ name: "reset_token", type: "varchar", nullable: true })
6495
6541
  ], User.prototype, "resetToken", 2);
6496
6542
  __decorateClass([
6497
- (0, import_typeorm74.Column)({
6543
+ (0, import_typeorm75.Column)({
6498
6544
  name: "reset_token_expire_at",
6499
6545
  type: "timestamp with time zone",
6500
6546
  nullable: true
6501
6547
  })
6502
6548
  ], User.prototype, "resetTokenExpireAt", 2);
6503
6549
  __decorateClass([
6504
- (0, import_typeorm74.Column)({ name: "set_password_token", type: "varchar", nullable: true })
6550
+ (0, import_typeorm75.Column)({ name: "set_password_token", type: "varchar", nullable: true })
6505
6551
  ], User.prototype, "setPasswordToken", 2);
6506
6552
  __decorateClass([
6507
- (0, import_typeorm74.OneToMany)(() => RefreshToken, (token) => token.user)
6553
+ (0, import_typeorm75.OneToMany)(() => RefreshToken, (token) => token.user)
6508
6554
  ], User.prototype, "refreshTokens", 2);
6509
6555
  __decorateClass([
6510
- (0, import_typeorm74.Column)({
6556
+ (0, import_typeorm75.Column)({
6511
6557
  name: "provider",
6512
6558
  type: "enum",
6513
6559
  enum: Provider,
@@ -6516,266 +6562,266 @@ __decorateClass([
6516
6562
  })
6517
6563
  ], User.prototype, "provider", 2);
6518
6564
  __decorateClass([
6519
- (0, import_typeorm74.Column)({ name: "provider_token", type: "varchar", nullable: true })
6565
+ (0, import_typeorm75.Column)({ name: "provider_token", type: "varchar", nullable: true })
6520
6566
  ], User.prototype, "providerToken", 2);
6521
6567
  __decorateClass([
6522
- (0, import_typeorm74.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
6568
+ (0, import_typeorm75.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
6523
6569
  ], User.prototype, "linkedInId", 2);
6524
6570
  __decorateClass([
6525
- (0, import_typeorm74.Column)({ name: "google_id", type: "varchar", nullable: true })
6571
+ (0, import_typeorm75.Column)({ name: "google_id", type: "varchar", nullable: true })
6526
6572
  ], User.prototype, "googleId", 2);
6527
6573
  __decorateClass([
6528
- (0, import_typeorm74.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
6574
+ (0, import_typeorm75.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
6529
6575
  ], User.prototype, "gitLabsId", 2);
6530
6576
  __decorateClass([
6531
- (0, import_typeorm74.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
6577
+ (0, import_typeorm75.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
6532
6578
  ], User.prototype, "onBoardedBy", 2);
6533
6579
  __decorateClass([
6534
- (0, import_typeorm74.OneToMany)(() => Otp, (otp) => otp.user)
6580
+ (0, import_typeorm75.OneToMany)(() => Otp, (otp) => otp.user)
6535
6581
  ], User.prototype, "otps", 2);
6536
6582
  __decorateClass([
6537
- (0, import_typeorm74.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
6583
+ (0, import_typeorm75.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
6538
6584
  ], User.prototype, "senseloafLogs", 2);
6539
6585
  __decorateClass([
6540
- (0, import_typeorm74.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
6586
+ (0, import_typeorm75.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
6541
6587
  ], User.prototype, "companyProfile", 2);
6542
6588
  __decorateClass([
6543
- (0, import_typeorm74.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
6589
+ (0, import_typeorm75.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
6544
6590
  ], User.prototype, "companySkills", 2);
6545
6591
  __decorateClass([
6546
- (0, import_typeorm74.OneToMany)(
6592
+ (0, import_typeorm75.OneToMany)(
6547
6593
  () => CompanyMemberRole,
6548
6594
  (companyMemberRole) => companyMemberRole.user
6549
6595
  )
6550
6596
  ], User.prototype, "companyMemberRoles", 2);
6551
6597
  __decorateClass([
6552
- (0, import_typeorm74.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
6598
+ (0, import_typeorm75.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
6553
6599
  ], User.prototype, "companyAiInterview", 2);
6554
6600
  __decorateClass([
6555
- (0, import_typeorm74.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
6601
+ (0, import_typeorm75.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
6556
6602
  ], User.prototype, "clientF2FInterviews", 2);
6557
6603
  __decorateClass([
6558
- (0, import_typeorm74.OneToOne)(
6604
+ (0, import_typeorm75.OneToOne)(
6559
6605
  () => FreelancerProfile,
6560
6606
  (freelancerProfile) => freelancerProfile.user
6561
6607
  )
6562
6608
  ], User.prototype, "freelancerProfile", 2);
6563
6609
  __decorateClass([
6564
- (0, import_typeorm74.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
6610
+ (0, import_typeorm75.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
6565
6611
  ], User.prototype, "freelancerResume", 2);
6566
6612
  __decorateClass([
6567
- (0, import_typeorm74.OneToMany)(
6613
+ (0, import_typeorm75.OneToMany)(
6568
6614
  () => FreelancerAssessmentRequest,
6569
6615
  (freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
6570
6616
  )
6571
6617
  ], User.prototype, "freelancerAssessmentRequests", 2);
6572
6618
  __decorateClass([
6573
- (0, import_typeorm74.OneToMany)(
6619
+ (0, import_typeorm75.OneToMany)(
6574
6620
  () => FreelancerAssessmentRequest,
6575
6621
  (freelancerAssessment) => freelancerAssessment.approvedBy
6576
6622
  )
6577
6623
  ], User.prototype, "assessmentRequests", 2);
6578
6624
  __decorateClass([
6579
- (0, import_typeorm74.OneToMany)(
6625
+ (0, import_typeorm75.OneToMany)(
6580
6626
  () => FreelancerAssessment,
6581
6627
  (freelancerAssessment) => freelancerAssessment.user
6582
6628
  )
6583
6629
  ], User.prototype, "assessments", 2);
6584
6630
  __decorateClass([
6585
- (0, import_typeorm74.OneToMany)(
6631
+ (0, import_typeorm75.OneToMany)(
6586
6632
  () => AssessmentAnswer,
6587
6633
  (assessmentAnswer) => assessmentAnswer.user
6588
6634
  )
6589
6635
  ], User.prototype, "assessmentAnswers", 2);
6590
6636
  __decorateClass([
6591
- (0, import_typeorm74.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
6637
+ (0, import_typeorm75.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
6592
6638
  ], User.prototype, "freelancerSkills", 2);
6593
6639
  __decorateClass([
6594
- (0, import_typeorm74.OneToMany)(
6640
+ (0, import_typeorm75.OneToMany)(
6595
6641
  () => FreelancerExperience,
6596
6642
  (freelancerExperience) => freelancerExperience.user
6597
6643
  )
6598
6644
  ], User.prototype, "freelancerExperience", 2);
6599
6645
  __decorateClass([
6600
- (0, import_typeorm74.OneToMany)(
6646
+ (0, import_typeorm75.OneToMany)(
6601
6647
  () => FreelancerEducation,
6602
6648
  (freelancerEducation) => freelancerEducation.user
6603
6649
  )
6604
6650
  ], User.prototype, "freelancerEducation", 2);
6605
6651
  __decorateClass([
6606
- (0, import_typeorm74.OneToMany)(
6652
+ (0, import_typeorm75.OneToMany)(
6607
6653
  () => FreelancerProject,
6608
6654
  (freelancerProject) => freelancerProject.user
6609
6655
  )
6610
6656
  ], User.prototype, "freelancerProject", 2);
6611
6657
  __decorateClass([
6612
- (0, import_typeorm74.OneToMany)(
6658
+ (0, import_typeorm75.OneToMany)(
6613
6659
  () => FreelancerCaseStudy,
6614
6660
  (freelancerCaseStudy) => freelancerCaseStudy.user
6615
6661
  )
6616
6662
  ], User.prototype, "freelancerCaseStudy", 2);
6617
6663
  __decorateClass([
6618
- (0, import_typeorm74.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
6664
+ (0, import_typeorm75.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
6619
6665
  ], User.prototype, "freelancerTool", 2);
6620
6666
  __decorateClass([
6621
- (0, import_typeorm74.OneToMany)(
6667
+ (0, import_typeorm75.OneToMany)(
6622
6668
  () => FreelancerFramework,
6623
6669
  (freelancerFramework) => freelancerFramework.user
6624
6670
  )
6625
6671
  ], User.prototype, "freelancerFramework", 2);
6626
6672
  __decorateClass([
6627
- (0, import_typeorm74.OneToOne)(
6673
+ (0, import_typeorm75.OneToOne)(
6628
6674
  () => FreelancerDeclaration,
6629
6675
  (freelancerDeclaration) => freelancerDeclaration.user
6630
6676
  )
6631
6677
  ], User.prototype, "freelancerDeclaration", 2);
6632
6678
  __decorateClass([
6633
- (0, import_typeorm74.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
6679
+ (0, import_typeorm75.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
6634
6680
  ], User.prototype, "freelancerMcq", 2);
6635
6681
  __decorateClass([
6636
- (0, import_typeorm74.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
6682
+ (0, import_typeorm75.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
6637
6683
  ], User.prototype, "freelancerAiInterview", 2);
6638
6684
  __decorateClass([
6639
- (0, import_typeorm74.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
6685
+ (0, import_typeorm75.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
6640
6686
  ], User.prototype, "freelancerF2FInterviews", 2);
6641
6687
  __decorateClass([
6642
- (0, import_typeorm74.OneToMany)(
6688
+ (0, import_typeorm75.OneToMany)(
6643
6689
  () => F2fInterviewRescheduleRequest,
6644
6690
  (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
6645
6691
  )
6646
6692
  ], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
6647
6693
  __decorateClass([
6648
- (0, import_typeorm74.OneToMany)(
6694
+ (0, import_typeorm75.OneToMany)(
6649
6695
  () => AiInterviewRescheduleRequest,
6650
6696
  (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
6651
6697
  )
6652
6698
  ], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
6653
6699
  __decorateClass([
6654
- (0, import_typeorm74.OneToMany)(
6700
+ (0, import_typeorm75.OneToMany)(
6655
6701
  () => AiInterviewRescheduleRequest,
6656
6702
  (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
6657
6703
  )
6658
6704
  ], User.prototype, "clientAiInterviewRescheduleRequests", 2);
6659
6705
  __decorateClass([
6660
- (0, import_typeorm74.OneToMany)(() => Job, (job) => job.user)
6706
+ (0, import_typeorm75.OneToMany)(() => Job, (job) => job.user)
6661
6707
  ], User.prototype, "jobs", 2);
6662
6708
  __decorateClass([
6663
- (0, import_typeorm74.OneToMany)(() => Task, (task) => task.client)
6709
+ (0, import_typeorm75.OneToMany)(() => Task, (task) => task.client)
6664
6710
  ], User.prototype, "clientTasks", 2);
6665
6711
  __decorateClass([
6666
- (0, import_typeorm74.OneToMany)(() => Task, (task) => task.freelancer)
6712
+ (0, import_typeorm75.OneToMany)(() => Task, (task) => task.freelancer)
6667
6713
  ], User.prototype, "freelancerTasks", 2);
6668
6714
  __decorateClass([
6669
- (0, import_typeorm74.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
6715
+ (0, import_typeorm75.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
6670
6716
  ], User.prototype, "raisedTaskQueries", 2);
6671
6717
  __decorateClass([
6672
- (0, import_typeorm74.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
6718
+ (0, import_typeorm75.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
6673
6719
  ], User.prototype, "assignedTaskQueries", 2);
6674
6720
  __decorateClass([
6675
- (0, import_typeorm74.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
6721
+ (0, import_typeorm75.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
6676
6722
  ], User.prototype, "taskQueryMessages", 2);
6677
6723
  __decorateClass([
6678
- (0, import_typeorm74.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
6724
+ (0, import_typeorm75.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
6679
6725
  ], User.prototype, "jobApplications", 2);
6680
6726
  __decorateClass([
6681
- (0, import_typeorm74.OneToMany)(() => Interview, (interview) => interview.user)
6727
+ (0, import_typeorm75.OneToMany)(() => Interview, (interview) => interview.user)
6682
6728
  ], User.prototype, "interviews", 2);
6683
6729
  __decorateClass([
6684
- (0, import_typeorm74.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
6730
+ (0, import_typeorm75.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
6685
6731
  ], User.prototype, "bankDetail", 2);
6686
6732
  __decorateClass([
6687
- (0, import_typeorm74.OneToMany)(
6733
+ (0, import_typeorm75.OneToMany)(
6688
6734
  () => SystemPreference,
6689
6735
  (systemPreference) => systemPreference.user
6690
6736
  )
6691
6737
  ], User.prototype, "systemPreference", 2);
6692
6738
  __decorateClass([
6693
- (0, import_typeorm74.OneToMany)(() => Rating, (rating) => rating.reviewer)
6739
+ (0, import_typeorm75.OneToMany)(() => Rating, (rating) => rating.reviewer)
6694
6740
  ], User.prototype, "givenRatings", 2);
6695
6741
  __decorateClass([
6696
- (0, import_typeorm74.OneToMany)(() => Rating, (rating) => rating.reviewee)
6742
+ (0, import_typeorm75.OneToMany)(() => Rating, (rating) => rating.reviewee)
6697
6743
  ], User.prototype, "receivedRatings", 2);
6698
6744
  __decorateClass([
6699
- (0, import_typeorm74.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
6745
+ (0, import_typeorm75.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
6700
6746
  ], User.prototype, "adminUserRoles", 2);
6701
6747
  __decorateClass([
6702
- (0, import_typeorm74.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
6748
+ (0, import_typeorm75.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
6703
6749
  cascade: true
6704
6750
  })
6705
6751
  ], User.prototype, "clientContractSummaries", 2);
6706
6752
  __decorateClass([
6707
- (0, import_typeorm74.OneToMany)(() => Contract, (contract) => contract.client)
6753
+ (0, import_typeorm75.OneToMany)(() => Contract, (contract) => contract.client)
6708
6754
  ], User.prototype, "clientContracts", 2);
6709
6755
  __decorateClass([
6710
- (0, import_typeorm74.OneToMany)(() => Hiring, (hiring) => hiring.client)
6756
+ (0, import_typeorm75.OneToMany)(() => Hiring, (hiring) => hiring.client)
6711
6757
  ], User.prototype, "clientHirings", 2);
6712
6758
  __decorateClass([
6713
- (0, import_typeorm74.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
6759
+ (0, import_typeorm75.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
6714
6760
  ], User.prototype, "clientEscrowWallets", 2);
6715
6761
  __decorateClass([
6716
- (0, import_typeorm74.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
6762
+ (0, import_typeorm75.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
6717
6763
  cascade: true
6718
6764
  })
6719
6765
  ], User.prototype, "freelancerContractSummaries", 2);
6720
6766
  __decorateClass([
6721
- (0, import_typeorm74.OneToMany)(() => Contract, (contract) => contract.freelancer)
6767
+ (0, import_typeorm75.OneToMany)(() => Contract, (contract) => contract.freelancer)
6722
6768
  ], User.prototype, "freelancerContracts", 2);
6723
6769
  __decorateClass([
6724
- (0, import_typeorm74.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
6770
+ (0, import_typeorm75.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
6725
6771
  ], User.prototype, "freelancerHirings", 2);
6726
6772
  __decorateClass([
6727
- (0, import_typeorm74.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
6773
+ (0, import_typeorm75.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
6728
6774
  ], User.prototype, "freelancerEscrowWallets", 2);
6729
6775
  __decorateClass([
6730
- (0, import_typeorm74.OneToOne)(() => Signature, (signature) => signature.user)
6776
+ (0, import_typeorm75.OneToOne)(() => Signature, (signature) => signature.user)
6731
6777
  ], User.prototype, "signatures", 2);
6732
6778
  __decorateClass([
6733
- (0, import_typeorm74.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
6779
+ (0, import_typeorm75.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
6734
6780
  ], User.prototype, "clientTimesheets", 2);
6735
6781
  __decorateClass([
6736
- (0, import_typeorm74.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
6782
+ (0, import_typeorm75.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
6737
6783
  ], User.prototype, "freelancerTimesheets", 2);
6738
6784
  __decorateClass([
6739
- (0, import_typeorm74.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
6785
+ (0, import_typeorm75.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
6740
6786
  ], User.prototype, "clientTimesheetLine", 2);
6741
6787
  __decorateClass([
6742
- (0, import_typeorm74.OneToMany)(() => Invoice, (invoice) => invoice.client)
6788
+ (0, import_typeorm75.OneToMany)(() => Invoice, (invoice) => invoice.client)
6743
6789
  ], User.prototype, "clientInvoice", 2);
6744
6790
  __decorateClass([
6745
- (0, import_typeorm74.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
6791
+ (0, import_typeorm75.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
6746
6792
  ], User.prototype, "freelancerTimesheetLine", 2);
6747
6793
  __decorateClass([
6748
- (0, import_typeorm74.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
6794
+ (0, import_typeorm75.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
6749
6795
  ], User.prototype, "freelancerInvoice", 2);
6750
6796
  __decorateClass([
6751
- (0, import_typeorm74.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
6797
+ (0, import_typeorm75.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
6752
6798
  ], User.prototype, "clientPreferencesGiven", 2);
6753
6799
  __decorateClass([
6754
- (0, import_typeorm74.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
6800
+ (0, import_typeorm75.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
6755
6801
  ], User.prototype, "clientPreferencesReceived", 2);
6756
6802
  __decorateClass([
6757
- (0, import_typeorm74.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
6803
+ (0, import_typeorm75.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
6758
6804
  ], User.prototype, "initiatedDisputes", 2);
6759
6805
  __decorateClass([
6760
- (0, import_typeorm74.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
6806
+ (0, import_typeorm75.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
6761
6807
  ], User.prototype, "respondentDisputes", 2);
6762
6808
  __decorateClass([
6763
- (0, import_typeorm74.OneToOne)(() => Wallet, (wallet) => wallet.user)
6809
+ (0, import_typeorm75.OneToOne)(() => Wallet, (wallet) => wallet.user)
6764
6810
  ], User.prototype, "wallet", 2);
6765
6811
  __decorateClass([
6766
- (0, import_typeorm74.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
6812
+ (0, import_typeorm75.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
6767
6813
  ], User.prototype, "stripeTransactions", 2);
6768
6814
  __decorateClass([
6769
- (0, import_typeorm74.OneToMany)(() => Dispute, (dispute) => dispute.client)
6815
+ (0, import_typeorm75.OneToMany)(() => Dispute, (dispute) => dispute.client)
6770
6816
  ], User.prototype, "clientDisputes", 2);
6771
6817
  __decorateClass([
6772
- (0, import_typeorm74.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
6818
+ (0, import_typeorm75.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
6773
6819
  ], User.prototype, "freelancerDisputes", 2);
6774
6820
  __decorateClass([
6775
- (0, import_typeorm74.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
6821
+ (0, import_typeorm75.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
6776
6822
  ], User.prototype, "inAppNotifications", 2);
6777
6823
  User = __decorateClass([
6778
- (0, import_typeorm74.Entity)("users")
6824
+ (0, import_typeorm75.Entity)("users")
6779
6825
  ], User);
6780
6826
 
6781
6827
  // src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
@@ -12953,7 +12999,12 @@ var TASK_PATTERN = {
12953
12999
  deleteTask: "delete.task",
12954
13000
  addClientRemark: "task.client.remark",
12955
13001
  markTaskAsCompleted: "task.client.mark.as.completed",
12956
- updateEstimateTime: "task.freelancer.update.estimate.time"
13002
+ markTaskAsSubmitted: "task.freelancer.mark.as.submitted",
13003
+ updateEstimateTime: "task.freelancer.update.estimate.time",
13004
+ addTaskQuery: "task.query.add",
13005
+ fetchTaskQueriesWithDetails: "task.query.fetch.with.details",
13006
+ addTaskQueryReply: "task.query.reply.add",
13007
+ markTaskQueryMessagesRead: "task.query.messages.read"
12957
13008
  };
12958
13009
 
12959
13010
  // src/modules/task/dto/create-task.dto.ts
@@ -13214,6 +13265,55 @@ __decorateClass([
13214
13265
  (0, import_class_validator171.IsString)()
13215
13266
  ], UpdateEstimateTimeDto.prototype, "additionalWorkNote", 2);
13216
13267
 
13268
+ // src/modules/task/dto/create-task-query.dto.ts
13269
+ var import_class_validator172 = require("class-validator");
13270
+ var CreateTaskQueryDto = class {
13271
+ };
13272
+ __decorateClass([
13273
+ (0, import_class_validator172.IsEnum)(TaskQueryCategoryEnum)
13274
+ ], CreateTaskQueryDto.prototype, "queryCategory", 2);
13275
+ __decorateClass([
13276
+ (0, import_class_validator172.IsOptional)(),
13277
+ (0, import_class_validator172.IsString)()
13278
+ ], CreateTaskQueryDto.prototype, "subject", 2);
13279
+ __decorateClass([
13280
+ (0, import_class_validator172.IsOptional)(),
13281
+ (0, import_class_validator172.IsString)()
13282
+ ], CreateTaskQueryDto.prototype, "description", 2);
13283
+ __decorateClass([
13284
+ (0, import_class_validator172.IsOptional)(),
13285
+ (0, import_class_validator172.IsString)()
13286
+ ], CreateTaskQueryDto.prototype, "message", 2);
13287
+ __decorateClass([
13288
+ (0, import_class_validator172.IsOptional)()
13289
+ ], CreateTaskQueryDto.prototype, "file", 2);
13290
+
13291
+ // src/modules/task/dto/add-task-query-reply.dto.ts
13292
+ var import_class_validator173 = require("class-validator");
13293
+ var AddTaskQueryReplyDto = class {
13294
+ };
13295
+ __decorateClass([
13296
+ (0, import_class_validator173.IsOptional)(),
13297
+ (0, import_class_validator173.IsString)()
13298
+ ], AddTaskQueryReplyDto.prototype, "message", 2);
13299
+ __decorateClass([
13300
+ (0, import_class_validator173.IsOptional)()
13301
+ ], AddTaskQueryReplyDto.prototype, "file", 2);
13302
+
13303
+ // src/modules/task/dto/mark-task-query-messages-read.dto.ts
13304
+ var import_class_validator174 = require("class-validator");
13305
+ var MarkTaskQueryMessagesReadDto = class {
13306
+ };
13307
+ __decorateClass([
13308
+ (0, import_class_validator174.IsOptional)(),
13309
+ (0, import_class_validator174.IsString)()
13310
+ ], MarkTaskQueryMessagesReadDto.prototype, "messageUuid", 2);
13311
+ __decorateClass([
13312
+ (0, import_class_validator174.IsOptional)(),
13313
+ (0, import_class_validator174.IsArray)(),
13314
+ (0, import_class_validator174.IsString)({ each: true })
13315
+ ], MarkTaskQueryMessagesReadDto.prototype, "messageUuids", 2);
13316
+
13217
13317
  // src/adapters/tcp/user.tcp.adapter.ts
13218
13318
  var import_dotenv = require("dotenv");
13219
13319
  var import_microservices = require("@nestjs/microservices");
@@ -13575,11 +13675,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
13575
13675
  };
13576
13676
 
13577
13677
  // src/entities/sequence-generator.entity.ts
13578
- var import_typeorm75 = require("typeorm");
13678
+ var import_typeorm76 = require("typeorm");
13579
13679
  var SequenceGenerator = class extends BaseEntity {
13580
13680
  };
13581
13681
  __decorateClass([
13582
- (0, import_typeorm75.Column)({
13682
+ (0, import_typeorm76.Column)({
13583
13683
  name: "module",
13584
13684
  type: "varchar",
13585
13685
  length: 50,
@@ -13588,7 +13688,7 @@ __decorateClass([
13588
13688
  })
13589
13689
  ], SequenceGenerator.prototype, "module", 2);
13590
13690
  __decorateClass([
13591
- (0, import_typeorm75.Column)({
13691
+ (0, import_typeorm76.Column)({
13592
13692
  name: "prefix",
13593
13693
  type: "varchar",
13594
13694
  length: 10,
@@ -13597,7 +13697,7 @@ __decorateClass([
13597
13697
  })
13598
13698
  ], SequenceGenerator.prototype, "prefix", 2);
13599
13699
  __decorateClass([
13600
- (0, import_typeorm75.Column)({
13700
+ (0, import_typeorm76.Column)({
13601
13701
  name: "last_sequence",
13602
13702
  type: "int",
13603
13703
  nullable: false,
@@ -13605,7 +13705,7 @@ __decorateClass([
13605
13705
  })
13606
13706
  ], SequenceGenerator.prototype, "lastSequence", 2);
13607
13707
  __decorateClass([
13608
- (0, import_typeorm75.Column)({
13708
+ (0, import_typeorm76.Column)({
13609
13709
  name: "year",
13610
13710
  type: "int",
13611
13711
  nullable: true,
@@ -13613,11 +13713,11 @@ __decorateClass([
13613
13713
  })
13614
13714
  ], SequenceGenerator.prototype, "year", 2);
13615
13715
  SequenceGenerator = __decorateClass([
13616
- (0, import_typeorm75.Entity)("sequence_generators")
13716
+ (0, import_typeorm76.Entity)("sequence_generators")
13617
13717
  ], SequenceGenerator);
13618
13718
 
13619
13719
  // src/entities/question.entity.ts
13620
- var import_typeorm76 = require("typeorm");
13720
+ var import_typeorm77 = require("typeorm");
13621
13721
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
13622
13722
  QuestionFor2["CLIENT"] = "CLIENT";
13623
13723
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -13626,16 +13726,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
13626
13726
  var Question = class extends BaseEntity {
13627
13727
  };
13628
13728
  __decorateClass([
13629
- (0, import_typeorm76.Column)({ name: "question", type: "varchar" })
13729
+ (0, import_typeorm77.Column)({ name: "question", type: "varchar" })
13630
13730
  ], Question.prototype, "question", 2);
13631
13731
  __decorateClass([
13632
- (0, import_typeorm76.Column)({ name: "hint", type: "varchar", nullable: true })
13732
+ (0, import_typeorm77.Column)({ name: "hint", type: "varchar", nullable: true })
13633
13733
  ], Question.prototype, "hint", 2);
13634
13734
  __decorateClass([
13635
- (0, import_typeorm76.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
13735
+ (0, import_typeorm77.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
13636
13736
  ], Question.prototype, "slug", 2);
13637
13737
  __decorateClass([
13638
- (0, import_typeorm76.Column)({
13738
+ (0, import_typeorm77.Column)({
13639
13739
  name: "question_for",
13640
13740
  type: "enum",
13641
13741
  enum: QuestionFor,
@@ -13643,45 +13743,45 @@ __decorateClass([
13643
13743
  })
13644
13744
  ], Question.prototype, "questionFor", 2);
13645
13745
  __decorateClass([
13646
- (0, import_typeorm76.Column)({ name: "type", type: "varchar", nullable: true })
13746
+ (0, import_typeorm77.Column)({ name: "type", type: "varchar", nullable: true })
13647
13747
  ], Question.prototype, "type", 2);
13648
13748
  __decorateClass([
13649
- (0, import_typeorm76.Column)({ name: "options", type: "jsonb", nullable: true })
13749
+ (0, import_typeorm77.Column)({ name: "options", type: "jsonb", nullable: true })
13650
13750
  ], Question.prototype, "options", 2);
13651
13751
  __decorateClass([
13652
- (0, import_typeorm76.Column)({ name: "is_active", type: "boolean", default: false })
13752
+ (0, import_typeorm77.Column)({ name: "is_active", type: "boolean", default: false })
13653
13753
  ], Question.prototype, "isActive", 2);
13654
13754
  Question = __decorateClass([
13655
- (0, import_typeorm76.Entity)("questions")
13755
+ (0, import_typeorm77.Entity)("questions")
13656
13756
  ], Question);
13657
13757
 
13658
13758
  // src/entities/skill.entity.ts
13659
- var import_typeorm77 = require("typeorm");
13759
+ var import_typeorm78 = require("typeorm");
13660
13760
  var Skill = class extends BaseEntity {
13661
13761
  };
13662
13762
  __decorateClass([
13663
- (0, import_typeorm77.Column)({ name: "name", type: "varchar", nullable: true })
13763
+ (0, import_typeorm78.Column)({ name: "name", type: "varchar", nullable: true })
13664
13764
  ], Skill.prototype, "name", 2);
13665
13765
  __decorateClass([
13666
- (0, import_typeorm77.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
13766
+ (0, import_typeorm78.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
13667
13767
  ], Skill.prototype, "slug", 2);
13668
13768
  __decorateClass([
13669
- (0, import_typeorm77.Column)({ name: "is_active", type: "boolean", default: false })
13769
+ (0, import_typeorm78.Column)({ name: "is_active", type: "boolean", default: false })
13670
13770
  ], Skill.prototype, "isActive", 2);
13671
13771
  Skill = __decorateClass([
13672
- (0, import_typeorm77.Entity)("skills")
13772
+ (0, import_typeorm78.Entity)("skills")
13673
13773
  ], Skill);
13674
13774
 
13675
13775
  // src/entities/skill-catalog.entity.ts
13676
- var import_typeorm78 = require("typeorm");
13776
+ var import_typeorm79 = require("typeorm");
13677
13777
  var SkillCatalog = class extends BaseEntity {
13678
13778
  };
13679
13779
  __decorateClass([
13680
- (0, import_typeorm78.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
13681
- (0, import_typeorm78.Index)()
13780
+ (0, import_typeorm79.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
13781
+ (0, import_typeorm79.Index)()
13682
13782
  ], SkillCatalog.prototype, "canonicalName", 2);
13683
13783
  __decorateClass([
13684
- (0, import_typeorm78.Column)({
13784
+ (0, import_typeorm79.Column)({
13685
13785
  name: "aliases",
13686
13786
  type: "text",
13687
13787
  array: true,
@@ -13689,20 +13789,20 @@ __decorateClass([
13689
13789
  })
13690
13790
  ], SkillCatalog.prototype, "aliases", 2);
13691
13791
  __decorateClass([
13692
- (0, import_typeorm78.Column)({
13792
+ (0, import_typeorm79.Column)({
13693
13793
  name: "variations",
13694
13794
  type: "jsonb",
13695
13795
  default: "{}"
13696
13796
  })
13697
13797
  ], SkillCatalog.prototype, "variations", 2);
13698
13798
  __decorateClass([
13699
- (0, import_typeorm78.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
13799
+ (0, import_typeorm79.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
13700
13800
  ], SkillCatalog.prototype, "category", 2);
13701
13801
  __decorateClass([
13702
- (0, import_typeorm78.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
13802
+ (0, import_typeorm79.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
13703
13803
  ], SkillCatalog.prototype, "parentSkill", 2);
13704
13804
  __decorateClass([
13705
- (0, import_typeorm78.Column)({
13805
+ (0, import_typeorm79.Column)({
13706
13806
  name: "related_skills",
13707
13807
  type: "text",
13708
13808
  array: true,
@@ -13710,68 +13810,68 @@ __decorateClass([
13710
13810
  })
13711
13811
  ], SkillCatalog.prototype, "relatedSkills", 2);
13712
13812
  __decorateClass([
13713
- (0, import_typeorm78.Column)({ name: "usage_count", type: "integer", default: 0 }),
13714
- (0, import_typeorm78.Index)()
13813
+ (0, import_typeorm79.Column)({ name: "usage_count", type: "integer", default: 0 }),
13814
+ (0, import_typeorm79.Index)()
13715
13815
  ], SkillCatalog.prototype, "usageCount", 2);
13716
13816
  __decorateClass([
13717
- (0, import_typeorm78.Column)({ name: "is_verified", type: "boolean", default: false })
13817
+ (0, import_typeorm79.Column)({ name: "is_verified", type: "boolean", default: false })
13718
13818
  ], SkillCatalog.prototype, "isVerified", 2);
13719
13819
  __decorateClass([
13720
- (0, import_typeorm78.Column)({ name: "first_seen_date", type: "date" })
13820
+ (0, import_typeorm79.Column)({ name: "first_seen_date", type: "date" })
13721
13821
  ], SkillCatalog.prototype, "firstSeenDate", 2);
13722
13822
  __decorateClass([
13723
- (0, import_typeorm78.Column)({ name: "last_updated_date", type: "date" })
13823
+ (0, import_typeorm79.Column)({ name: "last_updated_date", type: "date" })
13724
13824
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
13725
13825
  __decorateClass([
13726
- (0, import_typeorm78.Column)({
13826
+ (0, import_typeorm79.Column)({
13727
13827
  name: "search_vector",
13728
13828
  type: "tsvector",
13729
13829
  nullable: true
13730
13830
  })
13731
13831
  ], SkillCatalog.prototype, "searchVector", 2);
13732
13832
  SkillCatalog = __decorateClass([
13733
- (0, import_typeorm78.Entity)("skill_catalogs")
13833
+ (0, import_typeorm79.Entity)("skill_catalogs")
13734
13834
  ], SkillCatalog);
13735
13835
 
13736
13836
  // src/entities/job-role.entity.ts
13737
- var import_typeorm79 = require("typeorm");
13837
+ var import_typeorm80 = require("typeorm");
13738
13838
  var JobRoles = class extends BaseEntity {
13739
13839
  };
13740
13840
  __decorateClass([
13741
- (0, import_typeorm79.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
13841
+ (0, import_typeorm80.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
13742
13842
  ], JobRoles.prototype, "slug", 2);
13743
13843
  __decorateClass([
13744
- (0, import_typeorm79.Column)({ name: "name", type: "varchar", nullable: true })
13844
+ (0, import_typeorm80.Column)({ name: "name", type: "varchar", nullable: true })
13745
13845
  ], JobRoles.prototype, "name", 2);
13746
13846
  __decorateClass([
13747
- (0, import_typeorm79.Column)({ name: "is_active", type: "boolean", default: true })
13847
+ (0, import_typeorm80.Column)({ name: "is_active", type: "boolean", default: true })
13748
13848
  ], JobRoles.prototype, "isActive", 2);
13749
13849
  JobRoles = __decorateClass([
13750
- (0, import_typeorm79.Entity)("job_roles")
13850
+ (0, import_typeorm80.Entity)("job_roles")
13751
13851
  ], JobRoles);
13752
13852
 
13753
13853
  // src/entities/cms.entity.ts
13754
- var import_typeorm80 = require("typeorm");
13854
+ var import_typeorm81 = require("typeorm");
13755
13855
  var Cms = class extends BaseEntity {
13756
13856
  };
13757
13857
  __decorateClass([
13758
- (0, import_typeorm80.Column)({ name: "title", type: "varchar", nullable: true })
13858
+ (0, import_typeorm81.Column)({ name: "title", type: "varchar", nullable: true })
13759
13859
  ], Cms.prototype, "title", 2);
13760
13860
  __decorateClass([
13761
- (0, import_typeorm80.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
13861
+ (0, import_typeorm81.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
13762
13862
  ], Cms.prototype, "slug", 2);
13763
13863
  __decorateClass([
13764
- (0, import_typeorm80.Column)({ name: "content", type: "varchar", nullable: true })
13864
+ (0, import_typeorm81.Column)({ name: "content", type: "varchar", nullable: true })
13765
13865
  ], Cms.prototype, "content", 2);
13766
13866
  __decorateClass([
13767
- (0, import_typeorm80.Column)({ name: "is_active", type: "boolean", default: true })
13867
+ (0, import_typeorm81.Column)({ name: "is_active", type: "boolean", default: true })
13768
13868
  ], Cms.prototype, "isActive", 2);
13769
13869
  Cms = __decorateClass([
13770
- (0, import_typeorm80.Entity)("cms")
13870
+ (0, import_typeorm81.Entity)("cms")
13771
13871
  ], Cms);
13772
13872
 
13773
13873
  // src/entities/lead.entity.ts
13774
- var import_typeorm81 = require("typeorm");
13874
+ var import_typeorm82 = require("typeorm");
13775
13875
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
13776
13876
  CategoryEmum2["BUSINESS"] = "BUSINESS";
13777
13877
  CategoryEmum2["FREELANCER"] = "FREELANCER";
@@ -13780,22 +13880,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
13780
13880
  var Lead = class extends BaseEntity {
13781
13881
  };
13782
13882
  __decorateClass([
13783
- (0, import_typeorm81.Column)({ name: "name", type: "varchar", nullable: true })
13883
+ (0, import_typeorm82.Column)({ name: "name", type: "varchar", nullable: true })
13784
13884
  ], Lead.prototype, "name", 2);
13785
13885
  __decorateClass([
13786
- (0, import_typeorm81.Column)({ name: "mobile_code", type: "varchar", nullable: true })
13886
+ (0, import_typeorm82.Column)({ name: "mobile_code", type: "varchar", nullable: true })
13787
13887
  ], Lead.prototype, "mobileCode", 2);
13788
13888
  __decorateClass([
13789
- (0, import_typeorm81.Column)({ name: "mobile", type: "varchar", nullable: true })
13889
+ (0, import_typeorm82.Column)({ name: "mobile", type: "varchar", nullable: true })
13790
13890
  ], Lead.prototype, "mobile", 2);
13791
13891
  __decorateClass([
13792
- (0, import_typeorm81.Column)({ name: "email", type: "varchar", nullable: true })
13892
+ (0, import_typeorm82.Column)({ name: "email", type: "varchar", nullable: true })
13793
13893
  ], Lead.prototype, "email", 2);
13794
13894
  __decorateClass([
13795
- (0, import_typeorm81.Column)({ name: "description", type: "varchar", nullable: true })
13895
+ (0, import_typeorm82.Column)({ name: "description", type: "varchar", nullable: true })
13796
13896
  ], Lead.prototype, "description", 2);
13797
13897
  __decorateClass([
13798
- (0, import_typeorm81.Column)({
13898
+ (0, import_typeorm82.Column)({
13799
13899
  name: "category",
13800
13900
  type: "enum",
13801
13901
  enum: CategoryEmum,
@@ -13803,129 +13903,129 @@ __decorateClass([
13803
13903
  })
13804
13904
  ], Lead.prototype, "category", 2);
13805
13905
  Lead = __decorateClass([
13806
- (0, import_typeorm81.Entity)("leads")
13906
+ (0, import_typeorm82.Entity)("leads")
13807
13907
  ], Lead);
13808
13908
 
13809
13909
  // src/entities/job-freelancer-recommendation.entity.ts
13810
- var import_typeorm82 = require("typeorm");
13910
+ var import_typeorm83 = require("typeorm");
13811
13911
  var JobFreelancerRecommendation = class {
13812
13912
  };
13813
13913
  __decorateClass([
13814
- (0, import_typeorm82.ViewColumn)({ name: "job_id" })
13914
+ (0, import_typeorm83.ViewColumn)({ name: "job_id" })
13815
13915
  ], JobFreelancerRecommendation.prototype, "jobId", 2);
13816
13916
  __decorateClass([
13817
- (0, import_typeorm82.ViewColumn)({ name: "job_uuid" })
13917
+ (0, import_typeorm83.ViewColumn)({ name: "job_uuid" })
13818
13918
  ], JobFreelancerRecommendation.prototype, "jobUuid", 2);
13819
13919
  __decorateClass([
13820
- (0, import_typeorm82.ViewColumn)({ name: "job_unique_id" })
13920
+ (0, import_typeorm83.ViewColumn)({ name: "job_unique_id" })
13821
13921
  ], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
13822
13922
  __decorateClass([
13823
- (0, import_typeorm82.ViewColumn)({ name: "job_role" })
13923
+ (0, import_typeorm83.ViewColumn)({ name: "job_role" })
13824
13924
  ], JobFreelancerRecommendation.prototype, "jobRole", 2);
13825
13925
  __decorateClass([
13826
- (0, import_typeorm82.ViewColumn)({ name: "job_openings" })
13926
+ (0, import_typeorm83.ViewColumn)({ name: "job_openings" })
13827
13927
  ], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
13828
13928
  __decorateClass([
13829
- (0, import_typeorm82.ViewColumn)({ name: "job_location" })
13929
+ (0, import_typeorm83.ViewColumn)({ name: "job_location" })
13830
13930
  ], JobFreelancerRecommendation.prototype, "jobLocation", 2);
13831
13931
  __decorateClass([
13832
- (0, import_typeorm82.ViewColumn)({ name: "job_currency" })
13932
+ (0, import_typeorm83.ViewColumn)({ name: "job_currency" })
13833
13933
  ], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
13834
13934
  __decorateClass([
13835
- (0, import_typeorm82.ViewColumn)({ name: "job_salary_from" })
13935
+ (0, import_typeorm83.ViewColumn)({ name: "job_salary_from" })
13836
13936
  ], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
13837
13937
  __decorateClass([
13838
- (0, import_typeorm82.ViewColumn)({ name: "job_salary_to" })
13938
+ (0, import_typeorm83.ViewColumn)({ name: "job_salary_to" })
13839
13939
  ], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
13840
13940
  __decorateClass([
13841
- (0, import_typeorm82.ViewColumn)({ name: "job_employment_type" })
13941
+ (0, import_typeorm83.ViewColumn)({ name: "job_employment_type" })
13842
13942
  ], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
13843
13943
  __decorateClass([
13844
- (0, import_typeorm82.ViewColumn)({ name: "application_received" })
13944
+ (0, import_typeorm83.ViewColumn)({ name: "application_received" })
13845
13945
  ], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
13846
13946
  __decorateClass([
13847
- (0, import_typeorm82.ViewColumn)({ name: "job_posted_at" })
13947
+ (0, import_typeorm83.ViewColumn)({ name: "job_posted_at" })
13848
13948
  ], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
13849
13949
  __decorateClass([
13850
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_id" })
13950
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_id" })
13851
13951
  ], JobFreelancerRecommendation.prototype, "freelancerId", 2);
13852
13952
  __decorateClass([
13853
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_uuid" })
13953
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_uuid" })
13854
13954
  ], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
13855
13955
  __decorateClass([
13856
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_unique_id" })
13956
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_unique_id" })
13857
13957
  ], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
13858
13958
  __decorateClass([
13859
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_first_name" })
13959
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_first_name" })
13860
13960
  ], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
13861
13961
  __decorateClass([
13862
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_last_name" })
13962
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_last_name" })
13863
13963
  ], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
13864
13964
  __decorateClass([
13865
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_email" })
13965
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_email" })
13866
13966
  ], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
13867
13967
  __decorateClass([
13868
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_profile_picture" })
13968
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_profile_picture" })
13869
13969
  ], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
13870
13970
  __decorateClass([
13871
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_is_social" })
13971
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_is_social" })
13872
13972
  ], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
13873
13973
  __decorateClass([
13874
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_created_at" })
13974
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_created_at" })
13875
13975
  ], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
13876
13976
  __decorateClass([
13877
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_designation" })
13977
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_designation" })
13878
13978
  ], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
13879
13979
  __decorateClass([
13880
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_experience" })
13980
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_experience" })
13881
13981
  ], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
13882
13982
  __decorateClass([
13883
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_expertshub_verified" })
13983
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_expertshub_verified" })
13884
13984
  ], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
13885
13985
  __decorateClass([
13886
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_hourly_compensation" })
13986
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_hourly_compensation" })
13887
13987
  ], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
13888
13988
  __decorateClass([
13889
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_country_name" })
13989
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_country_name" })
13890
13990
  ], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
13891
13991
  __decorateClass([
13892
- (0, import_typeorm82.ViewColumn)({ name: "freelancer_country_iso_code" })
13992
+ (0, import_typeorm83.ViewColumn)({ name: "freelancer_country_iso_code" })
13893
13993
  ], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
13894
13994
  __decorateClass([
13895
- (0, import_typeorm82.ViewColumn)({ name: "client_id" })
13995
+ (0, import_typeorm83.ViewColumn)({ name: "client_id" })
13896
13996
  ], JobFreelancerRecommendation.prototype, "clientId", 2);
13897
13997
  __decorateClass([
13898
- (0, import_typeorm82.ViewColumn)({ name: "client_uuid" })
13998
+ (0, import_typeorm83.ViewColumn)({ name: "client_uuid" })
13899
13999
  ], JobFreelancerRecommendation.prototype, "clientUuid", 2);
13900
14000
  __decorateClass([
13901
- (0, import_typeorm82.ViewColumn)({ name: "client_first_name" })
14001
+ (0, import_typeorm83.ViewColumn)({ name: "client_first_name" })
13902
14002
  ], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
13903
14003
  __decorateClass([
13904
- (0, import_typeorm82.ViewColumn)({ name: "client_last_name" })
14004
+ (0, import_typeorm83.ViewColumn)({ name: "client_last_name" })
13905
14005
  ], JobFreelancerRecommendation.prototype, "clientLastName", 2);
13906
14006
  __decorateClass([
13907
- (0, import_typeorm82.ViewColumn)({ name: "client_email" })
14007
+ (0, import_typeorm83.ViewColumn)({ name: "client_email" })
13908
14008
  ], JobFreelancerRecommendation.prototype, "clientEmail", 2);
13909
14009
  __decorateClass([
13910
- (0, import_typeorm82.ViewColumn)({ name: "client_company_logo" })
14010
+ (0, import_typeorm83.ViewColumn)({ name: "client_company_logo" })
13911
14011
  ], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
13912
14012
  __decorateClass([
13913
- (0, import_typeorm82.ViewColumn)({ name: "client_company_name" })
14013
+ (0, import_typeorm83.ViewColumn)({ name: "client_company_name" })
13914
14014
  ], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
13915
14015
  __decorateClass([
13916
- (0, import_typeorm82.ViewColumn)({ name: "matching_skills" })
14016
+ (0, import_typeorm83.ViewColumn)({ name: "matching_skills" })
13917
14017
  ], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
13918
14018
  __decorateClass([
13919
- (0, import_typeorm82.ViewColumn)({ name: "matching_skills_count" })
14019
+ (0, import_typeorm83.ViewColumn)({ name: "matching_skills_count" })
13920
14020
  ], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
13921
14021
  __decorateClass([
13922
- (0, import_typeorm82.ViewColumn)({ name: "required_skills" })
14022
+ (0, import_typeorm83.ViewColumn)({ name: "required_skills" })
13923
14023
  ], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
13924
14024
  __decorateClass([
13925
- (0, import_typeorm82.ViewColumn)({ name: "required_skills_count" })
14025
+ (0, import_typeorm83.ViewColumn)({ name: "required_skills_count" })
13926
14026
  ], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
13927
14027
  JobFreelancerRecommendation = __decorateClass([
13928
- (0, import_typeorm82.ViewEntity)({
14028
+ (0, import_typeorm83.ViewEntity)({
13929
14029
  name: "job_freelancer_recommendations",
13930
14030
  materialized: true,
13931
14031
  synchronize: false
@@ -13934,32 +14034,32 @@ JobFreelancerRecommendation = __decorateClass([
13934
14034
  ], JobFreelancerRecommendation);
13935
14035
 
13936
14036
  // src/entities/job-freelancer-recommendation-v2.entity.ts
13937
- var import_typeorm83 = require("typeorm");
14037
+ var import_typeorm84 = require("typeorm");
13938
14038
  var JobFreelancerRecommendationV2 = class {
13939
14039
  };
13940
14040
  __decorateClass([
13941
- (0, import_typeorm83.ViewColumn)({ name: "job_id" })
14041
+ (0, import_typeorm84.ViewColumn)({ name: "job_id" })
13942
14042
  ], JobFreelancerRecommendationV2.prototype, "jobId", 2);
13943
14043
  __decorateClass([
13944
- (0, import_typeorm83.ViewColumn)({ name: "job_owner_id" })
14044
+ (0, import_typeorm84.ViewColumn)({ name: "job_owner_id" })
13945
14045
  ], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
13946
14046
  __decorateClass([
13947
- (0, import_typeorm83.ViewColumn)({ name: "freelancer_id" })
14047
+ (0, import_typeorm84.ViewColumn)({ name: "freelancer_id" })
13948
14048
  ], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
13949
14049
  __decorateClass([
13950
- (0, import_typeorm83.ViewColumn)({ name: "matching_skills" })
14050
+ (0, import_typeorm84.ViewColumn)({ name: "matching_skills" })
13951
14051
  ], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
13952
14052
  __decorateClass([
13953
- (0, import_typeorm83.ViewColumn)({ name: "matching_skills_count" })
14053
+ (0, import_typeorm84.ViewColumn)({ name: "matching_skills_count" })
13954
14054
  ], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
13955
14055
  __decorateClass([
13956
- (0, import_typeorm83.ViewColumn)({ name: "required_skills" })
14056
+ (0, import_typeorm84.ViewColumn)({ name: "required_skills" })
13957
14057
  ], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
13958
14058
  __decorateClass([
13959
- (0, import_typeorm83.ViewColumn)({ name: "required_skills_count" })
14059
+ (0, import_typeorm84.ViewColumn)({ name: "required_skills_count" })
13960
14060
  ], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
13961
14061
  JobFreelancerRecommendationV2 = __decorateClass([
13962
- (0, import_typeorm83.ViewEntity)({
14062
+ (0, import_typeorm84.ViewEntity)({
13963
14063
  name: "job_freelancer_recommendations_v2",
13964
14064
  materialized: true,
13965
14065
  synchronize: false
@@ -13968,74 +14068,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
13968
14068
  ], JobFreelancerRecommendationV2);
13969
14069
 
13970
14070
  // src/entities/client-freelancer-recommendation.entity.ts
13971
- var import_typeorm84 = require("typeorm");
14071
+ var import_typeorm85 = require("typeorm");
13972
14072
  var ClientFreelancerRecommendation = class {
13973
14073
  };
13974
14074
  __decorateClass([
13975
- (0, import_typeorm84.ViewColumn)({ name: "client_id" })
14075
+ (0, import_typeorm85.ViewColumn)({ name: "client_id" })
13976
14076
  ], ClientFreelancerRecommendation.prototype, "clientId", 2);
13977
14077
  __decorateClass([
13978
- (0, import_typeorm84.ViewColumn)({ name: "client_uuid" })
14078
+ (0, import_typeorm85.ViewColumn)({ name: "client_uuid" })
13979
14079
  ], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
13980
14080
  __decorateClass([
13981
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_id" })
14081
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_id" })
13982
14082
  ], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
13983
14083
  __decorateClass([
13984
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_uuid" })
14084
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_uuid" })
13985
14085
  ], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
13986
14086
  __decorateClass([
13987
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_unique_id" })
14087
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_unique_id" })
13988
14088
  ], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
13989
14089
  __decorateClass([
13990
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_first_name" })
14090
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_first_name" })
13991
14091
  ], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
13992
14092
  __decorateClass([
13993
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_last_name" })
14093
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_last_name" })
13994
14094
  ], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
13995
14095
  __decorateClass([
13996
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_email" })
14096
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_email" })
13997
14097
  ], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
13998
14098
  __decorateClass([
13999
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_profile_picture" })
14099
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_profile_picture" })
14000
14100
  ], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
14001
14101
  __decorateClass([
14002
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_is_social" })
14102
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_is_social" })
14003
14103
  ], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
14004
14104
  __decorateClass([
14005
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_created_at" })
14105
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_created_at" })
14006
14106
  ], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
14007
14107
  __decorateClass([
14008
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_designation" })
14108
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_designation" })
14009
14109
  ], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
14010
14110
  __decorateClass([
14011
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_experience" })
14111
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_experience" })
14012
14112
  ], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
14013
14113
  __decorateClass([
14014
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_expertshub_verified" })
14114
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_expertshub_verified" })
14015
14115
  ], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
14016
14116
  __decorateClass([
14017
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_hourly_compensation" })
14117
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_hourly_compensation" })
14018
14118
  ], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
14019
14119
  __decorateClass([
14020
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_country_name" })
14120
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_country_name" })
14021
14121
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
14022
14122
  __decorateClass([
14023
- (0, import_typeorm84.ViewColumn)({ name: "freelancer_country_iso_code" })
14123
+ (0, import_typeorm85.ViewColumn)({ name: "freelancer_country_iso_code" })
14024
14124
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
14025
14125
  __decorateClass([
14026
- (0, import_typeorm84.ViewColumn)({ name: "matching_skills" })
14126
+ (0, import_typeorm85.ViewColumn)({ name: "matching_skills" })
14027
14127
  ], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
14028
14128
  __decorateClass([
14029
- (0, import_typeorm84.ViewColumn)({ name: "matching_skills_count" })
14129
+ (0, import_typeorm85.ViewColumn)({ name: "matching_skills_count" })
14030
14130
  ], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
14031
14131
  __decorateClass([
14032
- (0, import_typeorm84.ViewColumn)({ name: "required_skills" })
14132
+ (0, import_typeorm85.ViewColumn)({ name: "required_skills" })
14033
14133
  ], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
14034
14134
  __decorateClass([
14035
- (0, import_typeorm84.ViewColumn)({ name: "required_skills_count" })
14135
+ (0, import_typeorm85.ViewColumn)({ name: "required_skills_count" })
14036
14136
  ], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
14037
14137
  ClientFreelancerRecommendation = __decorateClass([
14038
- (0, import_typeorm84.ViewEntity)({
14138
+ (0, import_typeorm85.ViewEntity)({
14039
14139
  name: "client_freelancer_recommendations",
14040
14140
  materialized: true,
14041
14141
  synchronize: false
@@ -14044,7 +14144,7 @@ ClientFreelancerRecommendation = __decorateClass([
14044
14144
  ], ClientFreelancerRecommendation);
14045
14145
 
14046
14146
  // src/entities/commission.entity.ts
14047
- var import_typeorm85 = require("typeorm");
14147
+ var import_typeorm86 = require("typeorm");
14048
14148
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
14049
14149
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
14050
14150
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -14053,7 +14153,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
14053
14153
  var Commission = class extends BaseEntity {
14054
14154
  };
14055
14155
  __decorateClass([
14056
- (0, import_typeorm85.Column)({
14156
+ (0, import_typeorm86.Column)({
14057
14157
  name: "freelancer_commission_type",
14058
14158
  type: "enum",
14059
14159
  enum: CommissionTypeEnum,
@@ -14061,10 +14161,10 @@ __decorateClass([
14061
14161
  })
14062
14162
  ], Commission.prototype, "freelancerCommissionType", 2);
14063
14163
  __decorateClass([
14064
- (0, import_typeorm85.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
14164
+ (0, import_typeorm86.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
14065
14165
  ], Commission.prototype, "freelancerCommission", 2);
14066
14166
  __decorateClass([
14067
- (0, import_typeorm85.Column)({
14167
+ (0, import_typeorm86.Column)({
14068
14168
  name: "client_commission_type",
14069
14169
  type: "enum",
14070
14170
  enum: CommissionTypeEnum,
@@ -14072,50 +14172,50 @@ __decorateClass([
14072
14172
  })
14073
14173
  ], Commission.prototype, "clientCommissionType", 2);
14074
14174
  __decorateClass([
14075
- (0, import_typeorm85.Column)({ name: "client_commission", type: "integer", default: 0 })
14175
+ (0, import_typeorm86.Column)({ name: "client_commission", type: "integer", default: 0 })
14076
14176
  ], Commission.prototype, "clientCommission", 2);
14077
14177
  Commission = __decorateClass([
14078
- (0, import_typeorm85.Entity)("commissions")
14178
+ (0, import_typeorm86.Entity)("commissions")
14079
14179
  ], Commission);
14080
14180
 
14081
14181
  // src/entities/calendly-meeting-log.entity.ts
14082
- var import_typeorm86 = require("typeorm");
14182
+ var import_typeorm87 = require("typeorm");
14083
14183
  var CalendlyMeetingLog = class extends BaseEntity {
14084
14184
  };
14085
14185
  __decorateClass([
14086
- (0, import_typeorm86.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
14087
- (0, import_typeorm86.Index)()
14186
+ (0, import_typeorm87.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
14187
+ (0, import_typeorm87.Index)()
14088
14188
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
14089
14189
  __decorateClass([
14090
- (0, import_typeorm86.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
14190
+ (0, import_typeorm87.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
14091
14191
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
14092
14192
  __decorateClass([
14093
- (0, import_typeorm86.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14193
+ (0, import_typeorm87.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14094
14194
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
14095
14195
  CalendlyMeetingLog = __decorateClass([
14096
- (0, import_typeorm86.Entity)("calendly_meeting_logs")
14196
+ (0, import_typeorm87.Entity)("calendly_meeting_logs")
14097
14197
  ], CalendlyMeetingLog);
14098
14198
 
14099
14199
  // src/entities/zoom-meeting-log.entity.ts
14100
- var import_typeorm87 = require("typeorm");
14200
+ var import_typeorm88 = require("typeorm");
14101
14201
  var ZoomMeetingLog = class extends BaseEntity {
14102
14202
  };
14103
14203
  __decorateClass([
14104
- (0, import_typeorm87.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
14105
- (0, import_typeorm87.Index)()
14204
+ (0, import_typeorm88.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
14205
+ (0, import_typeorm88.Index)()
14106
14206
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
14107
14207
  __decorateClass([
14108
- (0, import_typeorm87.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
14208
+ (0, import_typeorm88.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
14109
14209
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
14110
14210
  __decorateClass([
14111
- (0, import_typeorm87.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14211
+ (0, import_typeorm88.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14112
14212
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
14113
14213
  ZoomMeetingLog = __decorateClass([
14114
- (0, import_typeorm87.Entity)("zoom_meeting_logs")
14214
+ (0, import_typeorm88.Entity)("zoom_meeting_logs")
14115
14215
  ], ZoomMeetingLog);
14116
14216
 
14117
14217
  // src/entities/docuseal.entity.ts
14118
- var import_typeorm88 = require("typeorm");
14218
+ var import_typeorm89 = require("typeorm");
14119
14219
  var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
14120
14220
  DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
14121
14221
  DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
@@ -14125,132 +14225,132 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
14125
14225
  var DocuSeal = class extends BaseEntity {
14126
14226
  };
14127
14227
  __decorateClass([
14128
- (0, import_typeorm88.Column)({ name: "reference_id", type: "integer", nullable: false }),
14129
- (0, import_typeorm88.Index)()
14228
+ (0, import_typeorm89.Column)({ name: "reference_id", type: "integer", nullable: false }),
14229
+ (0, import_typeorm89.Index)()
14130
14230
  ], DocuSeal.prototype, "referenceId", 2);
14131
14231
  __decorateClass([
14132
- (0, import_typeorm88.Column)({ name: "submitter_id", type: "integer", nullable: true }),
14133
- (0, import_typeorm88.Index)()
14232
+ (0, import_typeorm89.Column)({ name: "submitter_id", type: "integer", nullable: true }),
14233
+ (0, import_typeorm89.Index)()
14134
14234
  ], DocuSeal.prototype, "submitterId", 2);
14135
14235
  __decorateClass([
14136
- (0, import_typeorm88.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
14236
+ (0, import_typeorm89.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
14137
14237
  ], DocuSeal.prototype, "submitterResponse", 2);
14138
14238
  __decorateClass([
14139
- (0, import_typeorm88.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
14239
+ (0, import_typeorm89.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
14140
14240
  ], DocuSeal.prototype, "webhookResponse", 2);
14141
14241
  __decorateClass([
14142
- (0, import_typeorm88.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
14242
+ (0, import_typeorm89.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
14143
14243
  ], DocuSeal.prototype, "type", 2);
14144
14244
  DocuSeal = __decorateClass([
14145
- (0, import_typeorm88.Entity)("docuseal")
14245
+ (0, import_typeorm89.Entity)("docuseal")
14146
14246
  ], DocuSeal);
14147
14247
 
14148
14248
  // src/entities/stripe-logs.entity.ts
14149
- var import_typeorm89 = require("typeorm");
14249
+ var import_typeorm90 = require("typeorm");
14150
14250
  var StripeLog = class extends BaseEntity {
14151
14251
  };
14152
14252
  __decorateClass([
14153
- (0, import_typeorm89.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
14253
+ (0, import_typeorm90.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
14154
14254
  ], StripeLog.prototype, "stripeEventId", 2);
14155
14255
  __decorateClass([
14156
- (0, import_typeorm89.Column)({ name: "event_type", type: "varchar", nullable: true })
14256
+ (0, import_typeorm90.Column)({ name: "event_type", type: "varchar", nullable: true })
14157
14257
  ], StripeLog.prototype, "eventType", 2);
14158
14258
  __decorateClass([
14159
- (0, import_typeorm89.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
14259
+ (0, import_typeorm90.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
14160
14260
  ], StripeLog.prototype, "stripeAccountId", 2);
14161
14261
  __decorateClass([
14162
- (0, import_typeorm89.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14262
+ (0, import_typeorm90.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14163
14263
  ], StripeLog.prototype, "rawWebhookData", 2);
14164
14264
  StripeLog = __decorateClass([
14165
- (0, import_typeorm89.Entity)("stripe_logs")
14265
+ (0, import_typeorm90.Entity)("stripe_logs")
14166
14266
  ], StripeLog);
14167
14267
 
14168
14268
  // src/entities/recommendation-weightage-config.entity.ts
14169
- var import_typeorm90 = require("typeorm");
14269
+ var import_typeorm91 = require("typeorm");
14170
14270
  var RecommendationWeightageConfig = class extends BaseEntity {
14171
14271
  };
14172
14272
  __decorateClass([
14173
- (0, import_typeorm90.Column)({
14273
+ (0, import_typeorm91.Column)({
14174
14274
  type: "varchar",
14175
14275
  length: 100,
14176
14276
  unique: true,
14177
14277
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
14178
14278
  }),
14179
- (0, import_typeorm90.Index)()
14279
+ (0, import_typeorm91.Index)()
14180
14280
  ], RecommendationWeightageConfig.prototype, "key", 2);
14181
14281
  __decorateClass([
14182
- (0, import_typeorm90.Column)({
14282
+ (0, import_typeorm91.Column)({
14183
14283
  type: "jsonb",
14184
14284
  comment: "JSON object containing weight values",
14185
14285
  nullable: true
14186
14286
  })
14187
14287
  ], RecommendationWeightageConfig.prototype, "value", 2);
14188
14288
  __decorateClass([
14189
- (0, import_typeorm90.Column)({ name: "is_active", type: "boolean", default: true })
14289
+ (0, import_typeorm91.Column)({ name: "is_active", type: "boolean", default: true })
14190
14290
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
14191
14291
  RecommendationWeightageConfig = __decorateClass([
14192
- (0, import_typeorm90.Entity)("recommendation_weightage_configs")
14292
+ (0, import_typeorm91.Entity)("recommendation_weightage_configs")
14193
14293
  ], RecommendationWeightageConfig);
14194
14294
 
14195
14295
  // src/entities/global-setting.entity.ts
14196
- var import_typeorm91 = require("typeorm");
14296
+ var import_typeorm92 = require("typeorm");
14197
14297
  var GlobalSetting = class extends BaseEntity {
14198
14298
  };
14199
14299
  __decorateClass([
14200
- (0, import_typeorm91.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
14300
+ (0, import_typeorm92.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
14201
14301
  ], GlobalSetting.prototype, "key", 2);
14202
14302
  __decorateClass([
14203
- (0, import_typeorm91.Column)({ name: "value", type: "text", nullable: false })
14303
+ (0, import_typeorm92.Column)({ name: "value", type: "text", nullable: false })
14204
14304
  ], GlobalSetting.prototype, "value", 2);
14205
14305
  GlobalSetting = __decorateClass([
14206
- (0, import_typeorm91.Entity)("global_settings"),
14207
- (0, import_typeorm91.Index)(["key"], { unique: true })
14306
+ (0, import_typeorm92.Entity)("global_settings"),
14307
+ (0, import_typeorm92.Index)(["key"], { unique: true })
14208
14308
  ], GlobalSetting);
14209
14309
 
14210
14310
  // src/entities/plan.entity.ts
14211
- var import_typeorm94 = require("typeorm");
14311
+ var import_typeorm95 = require("typeorm");
14212
14312
 
14213
14313
  // src/entities/plan-feature.entity.ts
14214
- var import_typeorm92 = require("typeorm");
14314
+ var import_typeorm93 = require("typeorm");
14215
14315
  var PlanFeature = class extends BaseEntity {
14216
14316
  };
14217
14317
  // individual index to find features by plan
14218
14318
  __decorateClass([
14219
- (0, import_typeorm92.Column)({ name: "plan_id", type: "integer", nullable: false }),
14220
- (0, import_typeorm92.Index)()
14319
+ (0, import_typeorm93.Column)({ name: "plan_id", type: "integer", nullable: false }),
14320
+ (0, import_typeorm93.Index)()
14221
14321
  ], PlanFeature.prototype, "planId", 2);
14222
14322
  __decorateClass([
14223
- (0, import_typeorm92.ManyToOne)(() => Plan, (plan) => plan.features, {
14323
+ (0, import_typeorm93.ManyToOne)(() => Plan, (plan) => plan.features, {
14224
14324
  onDelete: "CASCADE",
14225
14325
  nullable: false
14226
14326
  }),
14227
- (0, import_typeorm92.JoinColumn)({ name: "plan_id" })
14327
+ (0, import_typeorm93.JoinColumn)({ name: "plan_id" })
14228
14328
  ], PlanFeature.prototype, "plan", 2);
14229
14329
  __decorateClass([
14230
- (0, import_typeorm92.Column)({ name: "name", type: "varchar", length: 200 })
14330
+ (0, import_typeorm93.Column)({ name: "name", type: "varchar", length: 200 })
14231
14331
  ], PlanFeature.prototype, "name", 2);
14232
14332
  __decorateClass([
14233
- (0, import_typeorm92.Column)({ name: "slug", type: "varchar", length: 100 }),
14234
- (0, import_typeorm92.Index)()
14333
+ (0, import_typeorm93.Column)({ name: "slug", type: "varchar", length: 100 }),
14334
+ (0, import_typeorm93.Index)()
14235
14335
  ], PlanFeature.prototype, "slug", 2);
14236
14336
  __decorateClass([
14237
- (0, import_typeorm92.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
14337
+ (0, import_typeorm93.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
14238
14338
  ], PlanFeature.prototype, "tooltip", 2);
14239
14339
  __decorateClass([
14240
- (0, import_typeorm92.Column)({ name: "sort_order", type: "smallint", default: 0 })
14340
+ (0, import_typeorm93.Column)({ name: "sort_order", type: "smallint", default: 0 })
14241
14341
  ], PlanFeature.prototype, "sortOrder", 2);
14242
14342
  __decorateClass([
14243
- (0, import_typeorm92.Column)({ name: "is_active", type: "boolean", default: true })
14343
+ (0, import_typeorm93.Column)({ name: "is_active", type: "boolean", default: true })
14244
14344
  ], PlanFeature.prototype, "isActive", 2);
14245
14345
  PlanFeature = __decorateClass([
14246
- (0, import_typeorm92.Entity)("plan_features"),
14247
- (0, import_typeorm92.Index)("idx_plan_features_plan_id", ["planId"]),
14248
- (0, import_typeorm92.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
14249
- (0, import_typeorm92.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
14346
+ (0, import_typeorm93.Entity)("plan_features"),
14347
+ (0, import_typeorm93.Index)("idx_plan_features_plan_id", ["planId"]),
14348
+ (0, import_typeorm93.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
14349
+ (0, import_typeorm93.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
14250
14350
  ], PlanFeature);
14251
14351
 
14252
14352
  // src/entities/plan-pricing.entity.ts
14253
- var import_typeorm93 = require("typeorm");
14353
+ var import_typeorm94 = require("typeorm");
14254
14354
  var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
14255
14355
  PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
14256
14356
  PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
@@ -14305,61 +14405,61 @@ var PlanPricing = class extends BaseEntity {
14305
14405
  };
14306
14406
  // individual index to find pricing by plan
14307
14407
  __decorateClass([
14308
- (0, import_typeorm93.Column)({ name: "plan_id", type: "integer", nullable: false }),
14309
- (0, import_typeorm93.Index)()
14408
+ (0, import_typeorm94.Column)({ name: "plan_id", type: "integer", nullable: false }),
14409
+ (0, import_typeorm94.Index)()
14310
14410
  ], PlanPricing.prototype, "planId", 2);
14311
14411
  __decorateClass([
14312
- (0, import_typeorm93.ManyToOne)(() => Plan, (plan) => plan.pricing, {
14412
+ (0, import_typeorm94.ManyToOne)(() => Plan, (plan) => plan.pricing, {
14313
14413
  onDelete: "CASCADE",
14314
14414
  nullable: false
14315
14415
  }),
14316
- (0, import_typeorm93.JoinColumn)({ name: "plan_id" })
14416
+ (0, import_typeorm94.JoinColumn)({ name: "plan_id" })
14317
14417
  ], PlanPricing.prototype, "plan", 2);
14318
14418
  __decorateClass([
14319
- (0, import_typeorm93.Column)({
14419
+ (0, import_typeorm94.Column)({
14320
14420
  name: "billing_cycle",
14321
14421
  type: "enum",
14322
14422
  enum: PlanPricingBillingCycleEnum
14323
14423
  })
14324
14424
  ], PlanPricing.prototype, "billingCycle", 2);
14325
14425
  __decorateClass([
14326
- (0, import_typeorm93.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
14426
+ (0, import_typeorm94.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
14327
14427
  ], PlanPricing.prototype, "price", 2);
14328
14428
  __decorateClass([
14329
- (0, import_typeorm93.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
14429
+ (0, import_typeorm94.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
14330
14430
  ], PlanPricing.prototype, "originalPrice", 2);
14331
14431
  __decorateClass([
14332
- (0, import_typeorm93.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
14432
+ (0, import_typeorm94.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
14333
14433
  ], PlanPricing.prototype, "discountPct", 2);
14334
14434
  __decorateClass([
14335
- (0, import_typeorm93.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
14435
+ (0, import_typeorm94.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
14336
14436
  ], PlanPricing.prototype, "currency", 2);
14337
14437
  __decorateClass([
14338
- (0, import_typeorm93.Column)({ name: "is_free", type: "boolean", default: false })
14438
+ (0, import_typeorm94.Column)({ name: "is_free", type: "boolean", default: false })
14339
14439
  ], PlanPricing.prototype, "isFree", 2);
14340
14440
  __decorateClass([
14341
- (0, import_typeorm93.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
14441
+ (0, import_typeorm94.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
14342
14442
  ], PlanPricing.prototype, "stripePriceId", 2);
14343
14443
  __decorateClass([
14344
- (0, import_typeorm93.Column)({ name: "trial_days", type: "smallint", default: 0 })
14444
+ (0, import_typeorm94.Column)({ name: "trial_days", type: "smallint", default: 0 })
14345
14445
  ], PlanPricing.prototype, "trialDays", 2);
14346
14446
  __decorateClass([
14347
- (0, import_typeorm93.Column)({ name: "is_active", type: "boolean", default: true })
14447
+ (0, import_typeorm94.Column)({ name: "is_active", type: "boolean", default: true })
14348
14448
  ], PlanPricing.prototype, "isActive", 2);
14349
14449
  __decorateClass([
14350
- (0, import_typeorm93.BeforeInsert)(),
14351
- (0, import_typeorm93.BeforeUpdate)()
14450
+ (0, import_typeorm94.BeforeInsert)(),
14451
+ (0, import_typeorm94.BeforeUpdate)()
14352
14452
  ], PlanPricing.prototype, "sanitize", 1);
14353
14453
  PlanPricing = __decorateClass([
14354
- (0, import_typeorm93.Entity)("plan_pricings"),
14355
- (0, import_typeorm93.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
14356
- (0, import_typeorm93.Index)("idx_plan_pricings_plan_id", ["planId"]),
14357
- (0, import_typeorm93.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
14358
- (0, import_typeorm93.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
14359
- (0, import_typeorm93.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
14360
- (0, import_typeorm93.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
14361
- (0, import_typeorm93.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
14362
- (0, import_typeorm93.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
14454
+ (0, import_typeorm94.Entity)("plan_pricings"),
14455
+ (0, import_typeorm94.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
14456
+ (0, import_typeorm94.Index)("idx_plan_pricings_plan_id", ["planId"]),
14457
+ (0, import_typeorm94.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
14458
+ (0, import_typeorm94.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
14459
+ (0, import_typeorm94.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
14460
+ (0, import_typeorm94.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
14461
+ (0, import_typeorm94.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
14462
+ (0, import_typeorm94.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
14363
14463
  ], PlanPricing);
14364
14464
 
14365
14465
  // src/entities/plan.entity.ts
@@ -14376,22 +14476,22 @@ var Plan = class extends BaseEntity {
14376
14476
  }
14377
14477
  };
14378
14478
  __decorateClass([
14379
- (0, import_typeorm94.Column)({ name: "name", type: "varchar", length: 100 })
14479
+ (0, import_typeorm95.Column)({ name: "name", type: "varchar", length: 100 })
14380
14480
  ], Plan.prototype, "name", 2);
14381
14481
  __decorateClass([
14382
- (0, import_typeorm94.Column)({ name: "slug", type: "varchar", length: 100 })
14482
+ (0, import_typeorm95.Column)({ name: "slug", type: "varchar", length: 100 })
14383
14483
  ], Plan.prototype, "slug", 2);
14384
14484
  __decorateClass([
14385
- (0, import_typeorm94.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
14485
+ (0, import_typeorm95.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
14386
14486
  ], Plan.prototype, "badgeLabel", 2);
14387
14487
  __decorateClass([
14388
- (0, import_typeorm94.Column)({ name: "sort_order", type: "smallint", default: 0 })
14488
+ (0, import_typeorm95.Column)({ name: "sort_order", type: "smallint", default: 0 })
14389
14489
  ], Plan.prototype, "sortOrder", 2);
14390
14490
  __decorateClass([
14391
- (0, import_typeorm94.Column)({ name: "is_active", type: "boolean", default: true })
14491
+ (0, import_typeorm95.Column)({ name: "is_active", type: "boolean", default: true })
14392
14492
  ], Plan.prototype, "isActive", 2);
14393
14493
  __decorateClass([
14394
- (0, import_typeorm94.Column)({
14494
+ (0, import_typeorm95.Column)({
14395
14495
  name: "plan_type",
14396
14496
  type: "enum",
14397
14497
  enum: PlanTypeEnum,
@@ -14399,31 +14499,31 @@ __decorateClass([
14399
14499
  })
14400
14500
  ], Plan.prototype, "planType", 2);
14401
14501
  __decorateClass([
14402
- (0, import_typeorm94.Column)({ name: "metadata", type: "jsonb", default: {} })
14502
+ (0, import_typeorm95.Column)({ name: "metadata", type: "jsonb", default: {} })
14403
14503
  ], Plan.prototype, "metadata", 2);
14404
14504
  __decorateClass([
14405
- (0, import_typeorm94.BeforeInsert)(),
14406
- (0, import_typeorm94.BeforeUpdate)()
14505
+ (0, import_typeorm95.BeforeInsert)(),
14506
+ (0, import_typeorm95.BeforeUpdate)()
14407
14507
  ], Plan.prototype, "createSlug", 1);
14408
14508
  __decorateClass([
14409
- (0, import_typeorm94.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
14509
+ (0, import_typeorm95.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
14410
14510
  cascade: ["insert", "update"]
14411
14511
  })
14412
14512
  ], Plan.prototype, "features", 2);
14413
14513
  __decorateClass([
14414
- (0, import_typeorm94.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
14514
+ (0, import_typeorm95.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
14415
14515
  cascade: ["insert", "update"]
14416
14516
  })
14417
14517
  ], Plan.prototype, "pricing", 2);
14418
14518
  Plan = __decorateClass([
14419
- (0, import_typeorm94.Entity)("plans"),
14420
- (0, import_typeorm94.Index)("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
14421
- (0, import_typeorm94.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
14422
- (0, import_typeorm94.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
14519
+ (0, import_typeorm95.Entity)("plans"),
14520
+ (0, import_typeorm95.Index)("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
14521
+ (0, import_typeorm95.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
14522
+ (0, import_typeorm95.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
14423
14523
  ], Plan);
14424
14524
 
14425
14525
  // src/entities/subscription-feature.entity.ts
14426
- var import_typeorm95 = require("typeorm");
14526
+ var import_typeorm96 = require("typeorm");
14427
14527
  var SubscriptionFeature = class extends BaseEntity {
14428
14528
  toSlug(value) {
14429
14529
  return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
@@ -14438,29 +14538,29 @@ var SubscriptionFeature = class extends BaseEntity {
14438
14538
  }
14439
14539
  };
14440
14540
  __decorateClass([
14441
- (0, import_typeorm95.Column)({ name: "name", type: "varchar", length: 200 })
14541
+ (0, import_typeorm96.Column)({ name: "name", type: "varchar", length: 200 })
14442
14542
  ], SubscriptionFeature.prototype, "name", 2);
14443
14543
  __decorateClass([
14444
- (0, import_typeorm95.Column)({ name: "slug", type: "varchar", length: 100 })
14544
+ (0, import_typeorm96.Column)({ name: "slug", type: "varchar", length: 100 })
14445
14545
  ], SubscriptionFeature.prototype, "slug", 2);
14446
14546
  __decorateClass([
14447
- (0, import_typeorm95.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
14547
+ (0, import_typeorm96.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
14448
14548
  ], SubscriptionFeature.prototype, "tooltip", 2);
14449
14549
  __decorateClass([
14450
- (0, import_typeorm95.Column)({ name: "sort_order", type: "smallint", default: 0 })
14550
+ (0, import_typeorm96.Column)({ name: "sort_order", type: "smallint", default: 0 })
14451
14551
  ], SubscriptionFeature.prototype, "sortOrder", 2);
14452
14552
  __decorateClass([
14453
- (0, import_typeorm95.Column)({ name: "is_active", type: "boolean", default: true })
14553
+ (0, import_typeorm96.Column)({ name: "is_active", type: "boolean", default: true })
14454
14554
  ], SubscriptionFeature.prototype, "isActive", 2);
14455
14555
  __decorateClass([
14456
- (0, import_typeorm95.BeforeInsert)(),
14457
- (0, import_typeorm95.BeforeUpdate)()
14556
+ (0, import_typeorm96.BeforeInsert)(),
14557
+ (0, import_typeorm96.BeforeUpdate)()
14458
14558
  ], SubscriptionFeature.prototype, "createSlug", 1);
14459
14559
  SubscriptionFeature = __decorateClass([
14460
- (0, import_typeorm95.Entity)("subscription_features"),
14461
- (0, import_typeorm95.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
14462
- (0, import_typeorm95.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
14463
- (0, import_typeorm95.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
14560
+ (0, import_typeorm96.Entity)("subscription_features"),
14561
+ (0, import_typeorm96.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
14562
+ (0, import_typeorm96.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
14563
+ (0, import_typeorm96.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
14464
14564
  ], SubscriptionFeature);
14465
14565
  // Annotate the CommonJS export names for ESM import in node:
14466
14566
  0 && (module.exports = {
@@ -14475,6 +14575,7 @@ SubscriptionFeature = __decorateClass([
14475
14575
  AccountType,
14476
14576
  AddClientRemarkDto,
14477
14577
  AddGlobalSettingDto,
14578
+ AddTaskQueryReplyDto,
14478
14579
  AddTopupEscrowAmountDto,
14479
14580
  AdminCreateJobInformationDto,
14480
14581
  AdminExportClientV2OptimisedDto,
@@ -14592,6 +14693,7 @@ SubscriptionFeature = __decorateClass([
14592
14693
  CreateRatingDto,
14593
14694
  CreateSubAdminDto,
14594
14695
  CreateTaskDto,
14696
+ CreateTaskQueryDto,
14595
14697
  CreateUserSigningDto,
14596
14698
  CustomQuestionItemDto,
14597
14699
  DISPUTE_PATTERN,
@@ -14733,6 +14835,7 @@ SubscriptionFeature = __decorateClass([
14733
14835
  MarkCandidateStatusBulkDto,
14734
14836
  MarkCandidateStatusDto,
14735
14837
  MarkTaskAsCompletedDto,
14838
+ MarkTaskQueryMessagesReadDto,
14736
14839
  McqStatusEnum,
14737
14840
  ModeOfHire,
14738
14841
  ModeOfWork,
@@ -14829,6 +14932,7 @@ SubscriptionFeature = __decorateClass([
14829
14932
  TaskChecklistItem,
14830
14933
  TaskDeliverable,
14831
14934
  TaskDeliverableTypeEnum,
14935
+ TaskLogTime,
14832
14936
  TaskPriorityEnum,
14833
14937
  TaskQuery,
14834
14938
  TaskQueryCategoryEnum,