@experts_hub/shared 1.0.497 → 1.0.499

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
@@ -1700,10 +1700,10 @@ var RATING_PATTERN = {
1700
1700
  var import_class_validator42 = require("class-validator");
1701
1701
 
1702
1702
  // src/entities/rating.entity.ts
1703
- var import_typeorm59 = require("typeorm");
1703
+ var import_typeorm61 = require("typeorm");
1704
1704
 
1705
1705
  // src/entities/user.entity.ts
1706
- var import_typeorm58 = require("typeorm");
1706
+ var import_typeorm60 = require("typeorm");
1707
1707
 
1708
1708
  // src/entities/base.entity.ts
1709
1709
  var import_typeorm = require("typeorm");
@@ -2477,7 +2477,7 @@ FreelancerProfile = __decorateClass([
2477
2477
  ], FreelancerProfile);
2478
2478
 
2479
2479
  // src/entities/job.entity.ts
2480
- var import_typeorm28 = require("typeorm");
2480
+ var import_typeorm30 = require("typeorm");
2481
2481
 
2482
2482
  // src/entities/job-skill.entity.ts
2483
2483
  var import_typeorm10 = require("typeorm");
@@ -3187,6 +3187,9 @@ __decorateClass([
3187
3187
  __decorateClass([
3188
3188
  (0, import_typeorm19.Column)({ name: "end_interview_prompt", type: "varchar", nullable: true })
3189
3189
  ], Interview.prototype, "endInterviewPrompt", 2);
3190
+ __decorateClass([
3191
+ (0, import_typeorm19.Column)({ name: "interview_template_id", type: "varchar", nullable: true })
3192
+ ], Interview.prototype, "interviewTemplateId", 2);
3190
3193
  __decorateClass([
3191
3194
  (0, import_typeorm19.Column)({
3192
3195
  name: "status",
@@ -3343,309 +3346,76 @@ JobRecommendation = __decorateClass([
3343
3346
  ], JobRecommendation);
3344
3347
 
3345
3348
  // src/entities/contract.entity.ts
3346
- var import_typeorm22 = require("typeorm");
3347
- var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
3348
- ContractStatusEnum2["GENERATED"] = "GENERATED";
3349
- ContractStatusEnum2["DRAFTED"] = "DRAFTED";
3350
- ContractStatusEnum2["SENT"] = "SENT";
3351
- ContractStatusEnum2["SIGNED"] = "SIGNED";
3352
- ContractStatusEnum2["ACTIVE"] = "ACTIVE";
3353
- ContractStatusEnum2["CANCELLED"] = "CANCELLED";
3354
- ContractStatusEnum2["DISPUTED"] = "DISPUTED";
3355
- ContractStatusEnum2["REJECTED"] = "REJECTED";
3356
- ContractStatusEnum2["RENEWED"] = "RENEWED";
3357
- ContractStatusEnum2["EXPIRED"] = "EXPIRED";
3358
- return ContractStatusEnum2;
3359
- })(ContractStatusEnum || {});
3360
- var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
3361
- ContractTypeEnum2["NDA"] = "NDA";
3362
- ContractTypeEnum2["WORK"] = "WORK";
3363
- return ContractTypeEnum2;
3364
- })(ContractTypeEnum || {});
3365
- var Contract = class extends BaseEntity {
3366
- // stores the positions JSON
3367
- };
3368
- __decorateClass([
3369
- (0, import_typeorm22.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3370
- ], Contract.prototype, "contractUniqueId", 2);
3371
- __decorateClass([
3372
- (0, import_typeorm22.Column)({ name: "job_id", type: "integer", nullable: true }),
3373
- (0, import_typeorm22.Index)()
3374
- ], Contract.prototype, "jobId", 2);
3375
- __decorateClass([
3376
- (0, import_typeorm22.ManyToOne)(() => Job, (job) => job.contracts),
3377
- (0, import_typeorm22.JoinColumn)({ name: "job_id" })
3378
- ], Contract.prototype, "job", 2);
3379
- __decorateClass([
3380
- (0, import_typeorm22.Column)({ name: "client_id", type: "integer", nullable: true }),
3381
- (0, import_typeorm22.Index)()
3382
- ], Contract.prototype, "clientId", 2);
3383
- __decorateClass([
3384
- (0, import_typeorm22.ManyToOne)(() => User, (user) => user.clientContracts),
3385
- (0, import_typeorm22.JoinColumn)({ name: "client_id" })
3386
- ], Contract.prototype, "client", 2);
3387
- __decorateClass([
3388
- (0, import_typeorm22.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3389
- (0, import_typeorm22.Index)()
3390
- ], Contract.prototype, "freelancerId", 2);
3391
- __decorateClass([
3392
- (0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerContracts),
3393
- (0, import_typeorm22.JoinColumn)({ name: "freelancer_id" })
3394
- ], Contract.prototype, "freelancer", 2);
3395
- __decorateClass([
3396
- (0, import_typeorm22.Column)({ name: "duration", type: "integer", nullable: true })
3397
- ], Contract.prototype, "duration", 2);
3398
- __decorateClass([
3399
- (0, import_typeorm22.Column)({
3400
- name: "status",
3401
- type: "enum",
3402
- enum: ContractStatusEnum,
3403
- nullable: true
3404
- })
3405
- ], Contract.prototype, "status", 2);
3406
- __decorateClass([
3407
- (0, import_typeorm22.Column)({
3408
- name: "type",
3409
- type: "enum",
3410
- enum: ContractTypeEnum,
3411
- nullable: true
3412
- })
3413
- ], Contract.prototype, "type", 2);
3414
- __decorateClass([
3415
- (0, import_typeorm22.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
3416
- ], Contract.prototype, "invoicingCycle", 2);
3417
- __decorateClass([
3418
- (0, import_typeorm22.Column)({
3419
- name: "escrow_deposite_amount",
3420
- type: "decimal",
3421
- precision: 10,
3422
- scale: 2,
3423
- nullable: true
3424
- })
3425
- ], Contract.prototype, "escrowDepositeAmount", 2);
3426
- __decorateClass([
3427
- (0, import_typeorm22.Column)({
3428
- name: "start_date",
3429
- type: "timestamp with time zone",
3430
- nullable: true
3431
- })
3432
- ], Contract.prototype, "startDate", 2);
3433
- __decorateClass([
3434
- (0, import_typeorm22.Column)({
3435
- name: "end_date",
3436
- type: "timestamp with time zone",
3437
- nullable: true
3438
- })
3439
- ], Contract.prototype, "endDate", 2);
3440
- __decorateClass([
3441
- (0, import_typeorm22.Column)({ name: "original_document_url", type: "varchar", nullable: true })
3442
- ], Contract.prototype, "originalDocumentUrl", 2);
3443
- __decorateClass([
3444
- (0, import_typeorm22.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
3445
- ], Contract.prototype, "contractDocumentUrl", 2);
3446
- __decorateClass([
3447
- (0, import_typeorm22.Column)({
3448
- name: "client_signed_at",
3449
- type: "timestamp with time zone",
3450
- nullable: true
3451
- })
3452
- ], Contract.prototype, "clientSignedAt", 2);
3453
- __decorateClass([
3454
- (0, import_typeorm22.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
3455
- ], Contract.prototype, "freelancerViewed", 2);
3456
- __decorateClass([
3457
- (0, import_typeorm22.Column)({
3458
- name: "freelancer_viewed_at",
3459
- type: "timestamp with time zone",
3460
- nullable: true
3461
- })
3462
- ], Contract.prototype, "freelancerViewedAt", 2);
3463
- __decorateClass([
3464
- (0, import_typeorm22.Column)({
3465
- name: "freelancer_signed_at",
3466
- type: "timestamp with time zone",
3467
- nullable: true
3468
- })
3469
- ], Contract.prototype, "freelancerSignedAt", 2);
3470
- __decorateClass([
3471
- (0, import_typeorm22.Column)({
3472
- name: "rejectd_at",
3473
- type: "timestamp with time zone",
3474
- nullable: true
3475
- })
3476
- ], Contract.prototype, "rejectedAt", 2);
3477
- __decorateClass([
3478
- (0, import_typeorm22.Column)({ name: "reject_reason", type: "varchar", nullable: true })
3479
- ], Contract.prototype, "rejectReason", 2);
3480
- __decorateClass([
3481
- (0, import_typeorm22.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
3482
- ], Contract.prototype, "isWorkContractSent", 2);
3483
- __decorateClass([
3484
- (0, import_typeorm22.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
3485
- ], Contract.prototype, "isEscrowDeposited", 2);
3486
- __decorateClass([
3487
- (0, import_typeorm22.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
3488
- ], Contract.prototype, "signaturePositions", 2);
3489
- Contract = __decorateClass([
3490
- (0, import_typeorm22.Entity)("contracts")
3491
- ], Contract);
3349
+ var import_typeorm28 = require("typeorm");
3492
3350
 
3493
- // src/entities/timesheets.entity.ts
3494
- var import_typeorm23 = require("typeorm");
3495
- var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
3496
- TimesheetStatusEnum2["DRAFT"] = "DRAFT";
3497
- TimesheetStatusEnum2["SEND"] = "SEND";
3498
- TimesheetStatusEnum2["SEND_BACK"] = "SEND_BACK";
3499
- TimesheetStatusEnum2["APPROVED"] = "APPROVED";
3500
- TimesheetStatusEnum2["REJECTED"] = "REJECTED";
3501
- TimesheetStatusEnum2["PAID"] = "PAID";
3502
- return TimesheetStatusEnum2;
3503
- })(TimesheetStatusEnum || {});
3504
- var Timesheet = class extends BaseEntity {
3505
- };
3506
- __decorateClass([
3507
- (0, import_typeorm23.Column)({ name: "job_id", type: "integer", nullable: true }),
3508
- (0, import_typeorm23.Index)()
3509
- ], Timesheet.prototype, "jobId", 2);
3510
- __decorateClass([
3511
- (0, import_typeorm23.ManyToOne)(() => Job, (job) => job.timesheets),
3512
- (0, import_typeorm23.JoinColumn)({ name: "job_id" })
3513
- ], Timesheet.prototype, "job", 2);
3514
- __decorateClass([
3515
- (0, import_typeorm23.Column)({ name: "client_id", type: "integer", nullable: true }),
3516
- (0, import_typeorm23.Index)()
3517
- ], Timesheet.prototype, "clientId", 2);
3518
- __decorateClass([
3519
- (0, import_typeorm23.ManyToOne)(() => User, (user) => user.clientTimesheets),
3520
- (0, import_typeorm23.JoinColumn)({ name: "client_id" })
3521
- ], Timesheet.prototype, "client", 2);
3522
- __decorateClass([
3523
- (0, import_typeorm23.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3524
- (0, import_typeorm23.Index)()
3525
- ], Timesheet.prototype, "freelancerId", 2);
3526
- __decorateClass([
3527
- (0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
3528
- (0, import_typeorm23.JoinColumn)({ name: "freelancer_id" })
3529
- ], Timesheet.prototype, "freelancer", 2);
3530
- __decorateClass([
3531
- (0, import_typeorm23.Column)({
3532
- name: "start_date",
3533
- type: "date",
3534
- nullable: true
3535
- })
3536
- ], Timesheet.prototype, "startDate", 2);
3537
- __decorateClass([
3538
- (0, import_typeorm23.Column)({
3539
- name: "end_date",
3540
- type: "date",
3541
- nullable: true
3542
- })
3543
- ], Timesheet.prototype, "endDate", 2);
3544
- __decorateClass([
3545
- (0, import_typeorm23.Column)({ name: "start_time", type: "varchar", nullable: true })
3546
- ], Timesheet.prototype, "startTime", 2);
3547
- __decorateClass([
3548
- (0, import_typeorm23.Column)({ name: "end_time", type: "varchar", nullable: true })
3549
- ], Timesheet.prototype, "endTime", 2);
3550
- __decorateClass([
3551
- (0, import_typeorm23.Column)({ name: "worked_hours", type: "varchar", nullable: true })
3552
- ], Timesheet.prototype, "workedHours", 2);
3553
- __decorateClass([
3554
- (0, import_typeorm23.Column)({ name: "task_id", type: "integer", nullable: true })
3555
- ], Timesheet.prototype, "taskId", 2);
3556
- __decorateClass([
3557
- (0, import_typeorm23.Column)({ name: "task_name", type: "varchar", nullable: true })
3558
- ], Timesheet.prototype, "taskName", 2);
3559
- __decorateClass([
3560
- (0, import_typeorm23.Column)({ name: "description", type: "varchar", nullable: true })
3561
- ], Timesheet.prototype, "description", 2);
3562
- __decorateClass([
3563
- (0, import_typeorm23.Column)({ name: "week_start_date", type: "date", nullable: true })
3564
- ], Timesheet.prototype, "weekStartDate", 2);
3565
- __decorateClass([
3566
- (0, import_typeorm23.Column)({ name: "week_end_date", type: "date", nullable: true })
3567
- ], Timesheet.prototype, "weekEndDate", 2);
3568
- __decorateClass([
3569
- (0, import_typeorm23.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
3570
- ], Timesheet.prototype, "rejectedAt", 2);
3571
- __decorateClass([
3572
- (0, import_typeorm23.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
3573
- ], Timesheet.prototype, "submittedAt", 2);
3574
- __decorateClass([
3575
- (0, import_typeorm23.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
3576
- ], Timesheet.prototype, "resubmittedAt", 2);
3577
- __decorateClass([
3578
- (0, import_typeorm23.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
3579
- ], Timesheet.prototype, "approvedAt", 2);
3580
- __decorateClass([
3581
- (0, import_typeorm23.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
3582
- ], Timesheet.prototype, "status", 2);
3583
- __decorateClass([
3584
- (0, import_typeorm23.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
3585
- ], Timesheet.prototype, "clientSendBackReason", 2);
3586
- Timesheet = __decorateClass([
3587
- (0, import_typeorm23.Entity)("timesheets")
3588
- ], Timesheet);
3351
+ // src/entities/escrow-wallet.entity.ts
3352
+ var import_typeorm27 = require("typeorm");
3353
+
3354
+ // src/entities/escrow-wallet-transaction.entity.ts
3355
+ var import_typeorm26 = require("typeorm");
3356
+
3357
+ // src/entities/invoice.entity.ts
3358
+ var import_typeorm25 = require("typeorm");
3589
3359
 
3590
3360
  // src/entities/timesheet-line.entity.ts
3591
- var import_typeorm27 = require("typeorm");
3361
+ var import_typeorm24 = require("typeorm");
3592
3362
 
3593
3363
  // src/entities/timesheet-logs.entity.ts
3594
- var import_typeorm24 = require("typeorm");
3364
+ var import_typeorm22 = require("typeorm");
3595
3365
  var TimesheetLogs = class extends BaseEntity {
3596
3366
  };
3597
3367
  __decorateClass([
3598
- (0, import_typeorm24.Column)({ name: "timesheet_line_id", type: "integer", nullable: false }),
3599
- (0, import_typeorm24.Index)()
3368
+ (0, import_typeorm22.Column)({ name: "timesheet_line_id", type: "integer", nullable: false }),
3369
+ (0, import_typeorm22.Index)()
3600
3370
  ], TimesheetLogs.prototype, "timesheetLineId", 2);
3601
3371
  __decorateClass([
3602
- (0, import_typeorm24.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLogs),
3603
- (0, import_typeorm24.JoinColumn)({ name: "timesheet_line_id" })
3372
+ (0, import_typeorm22.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLogs),
3373
+ (0, import_typeorm22.JoinColumn)({ name: "timesheet_line_id" })
3604
3374
  ], TimesheetLogs.prototype, "timesheetLine", 2);
3605
3375
  __decorateClass([
3606
- (0, import_typeorm24.Column)({
3376
+ (0, import_typeorm22.Column)({
3607
3377
  name: "start_date",
3608
3378
  type: "date",
3609
3379
  nullable: true
3610
3380
  })
3611
3381
  ], TimesheetLogs.prototype, "startDate", 2);
3612
3382
  __decorateClass([
3613
- (0, import_typeorm24.Column)({
3383
+ (0, import_typeorm22.Column)({
3614
3384
  name: "end_date",
3615
3385
  type: "date",
3616
3386
  nullable: true
3617
3387
  })
3618
3388
  ], TimesheetLogs.prototype, "endDate", 2);
3619
3389
  __decorateClass([
3620
- (0, import_typeorm24.Column)({ name: "start_time", type: "varchar", nullable: true })
3390
+ (0, import_typeorm22.Column)({ name: "start_time", type: "varchar", nullable: true })
3621
3391
  ], TimesheetLogs.prototype, "startTime", 2);
3622
3392
  __decorateClass([
3623
- (0, import_typeorm24.Column)({ name: "end_time", type: "varchar", nullable: true })
3393
+ (0, import_typeorm22.Column)({ name: "end_time", type: "varchar", nullable: true })
3624
3394
  ], TimesheetLogs.prototype, "endTime", 2);
3625
3395
  __decorateClass([
3626
- (0, import_typeorm24.Column)({ name: "worked_hours", type: "varchar", nullable: true })
3396
+ (0, import_typeorm22.Column)({ name: "worked_hours", type: "varchar", nullable: true })
3627
3397
  ], TimesheetLogs.prototype, "workedHours", 2);
3628
3398
  __decorateClass([
3629
- (0, import_typeorm24.Column)({ name: "task_id", type: "integer", nullable: true })
3399
+ (0, import_typeorm22.Column)({ name: "task_id", type: "integer", nullable: true })
3630
3400
  ], TimesheetLogs.prototype, "taskId", 2);
3631
3401
  __decorateClass([
3632
- (0, import_typeorm24.Column)({ name: "project_name", type: "varchar", nullable: true })
3402
+ (0, import_typeorm22.Column)({ name: "project_name", type: "varchar", nullable: true })
3633
3403
  ], TimesheetLogs.prototype, "projectName", 2);
3634
3404
  __decorateClass([
3635
- (0, import_typeorm24.Column)({ name: "deliverable", type: "varchar", nullable: true })
3405
+ (0, import_typeorm22.Column)({ name: "deliverable", type: "varchar", nullable: true })
3636
3406
  ], TimesheetLogs.prototype, "deliverable", 2);
3637
3407
  __decorateClass([
3638
- (0, import_typeorm24.Column)({ name: "task_name", type: "varchar", nullable: true })
3408
+ (0, import_typeorm22.Column)({ name: "task_name", type: "varchar", nullable: true })
3639
3409
  ], TimesheetLogs.prototype, "taskName", 2);
3640
3410
  __decorateClass([
3641
- (0, import_typeorm24.Column)({ name: "description", type: "varchar", nullable: true })
3411
+ (0, import_typeorm22.Column)({ name: "description", type: "varchar", nullable: true })
3642
3412
  ], TimesheetLogs.prototype, "description", 2);
3643
3413
  TimesheetLogs = __decorateClass([
3644
- (0, import_typeorm24.Entity)("timesheet_logs")
3414
+ (0, import_typeorm22.Entity)("timesheet_logs")
3645
3415
  ], TimesheetLogs);
3646
3416
 
3647
3417
  // src/entities/timesheet-line-history.entity.ts
3648
- var import_typeorm25 = require("typeorm");
3418
+ var import_typeorm23 = require("typeorm");
3649
3419
  var TimesheetLineHistoryStatusEnum = /* @__PURE__ */ ((TimesheetLineHistoryStatusEnum2) => {
3650
3420
  TimesheetLineHistoryStatusEnum2["DRAFT"] = "DRAFT";
3651
3421
  TimesheetLineHistoryStatusEnum2["SEND"] = "SEND";
@@ -3669,19 +3439,19 @@ var TimesheetSubmissionActionEnum = /* @__PURE__ */ ((TimesheetSubmissionActionE
3669
3439
  var TimesheetLineHistory = class extends BaseEntity {
3670
3440
  };
3671
3441
  __decorateClass([
3672
- (0, import_typeorm25.Column)({ name: "timesheet_line_id", type: "integer", nullable: false }),
3673
- (0, import_typeorm25.Index)()
3442
+ (0, import_typeorm23.Column)({ name: "timesheet_line_id", type: "integer", nullable: false }),
3443
+ (0, import_typeorm23.Index)()
3674
3444
  ], TimesheetLineHistory.prototype, "timesheetLineId", 2);
3675
3445
  __decorateClass([
3676
- (0, import_typeorm25.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLineHistory),
3677
- (0, import_typeorm25.JoinColumn)({ name: "timesheet_line_id" })
3446
+ (0, import_typeorm23.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLineHistory),
3447
+ (0, import_typeorm23.JoinColumn)({ name: "timesheet_line_id" })
3678
3448
  ], TimesheetLineHistory.prototype, "timesheetLine", 2);
3679
3449
  __decorateClass([
3680
- (0, import_typeorm25.Column)({ name: "changed_by", type: "integer", nullable: true }),
3681
- (0, import_typeorm25.Index)()
3450
+ (0, import_typeorm23.Column)({ name: "changed_by", type: "integer", nullable: true }),
3451
+ (0, import_typeorm23.Index)()
3682
3452
  ], TimesheetLineHistory.prototype, "changedBy", 2);
3683
3453
  __decorateClass([
3684
- (0, import_typeorm25.Column)({
3454
+ (0, import_typeorm23.Column)({
3685
3455
  name: "previous_status",
3686
3456
  type: "enum",
3687
3457
  enum: TimesheetLineHistoryStatusEnum,
@@ -3689,7 +3459,7 @@ __decorateClass([
3689
3459
  })
3690
3460
  ], TimesheetLineHistory.prototype, "previousStatus", 2);
3691
3461
  __decorateClass([
3692
- (0, import_typeorm25.Column)({
3462
+ (0, import_typeorm23.Column)({
3693
3463
  name: "new_status",
3694
3464
  type: "enum",
3695
3465
  enum: TimesheetLineHistoryStatusEnum,
@@ -3697,7 +3467,7 @@ __decorateClass([
3697
3467
  })
3698
3468
  ], TimesheetLineHistory.prototype, "newStatus", 2);
3699
3469
  __decorateClass([
3700
- (0, import_typeorm25.Column)({
3470
+ (0, import_typeorm23.Column)({
3701
3471
  name: "action_type",
3702
3472
  type: "enum",
3703
3473
  enum: TimesheetSubmissionActionEnum,
@@ -3705,208 +3475,555 @@ __decorateClass([
3705
3475
  })
3706
3476
  ], TimesheetLineHistory.prototype, "actionType", 2);
3707
3477
  __decorateClass([
3708
- (0, import_typeorm25.Column)({ name: "remarks", type: "varchar", nullable: true })
3478
+ (0, import_typeorm23.Column)({ name: "remarks", type: "varchar", nullable: true })
3709
3479
  ], TimesheetLineHistory.prototype, "remarks", 2);
3710
3480
  TimesheetLineHistory = __decorateClass([
3711
- (0, import_typeorm25.Entity)("timesheet_line_histories")
3481
+ (0, import_typeorm23.Entity)("timesheet_line_histories")
3712
3482
  ], TimesheetLineHistory);
3713
3483
 
3714
- // src/entities/invoice.entity.ts
3715
- var import_typeorm26 = require("typeorm");
3716
- var InvoiceTypeEnum = /* @__PURE__ */ ((InvoiceTypeEnum2) => {
3717
- InvoiceTypeEnum2["WEEKLY"] = "WEEKLY";
3718
- InvoiceTypeEnum2["MONTHLY"] = "MONTHLY";
3719
- return InvoiceTypeEnum2;
3720
- })(InvoiceTypeEnum || {});
3721
- var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
3722
- InvoiceStatusEnum2["SUBMITTED"] = "SUBMITTED";
3723
- InvoiceStatusEnum2["UNDER_REVIEW"] = "UNDER_REVIEW";
3724
- InvoiceStatusEnum2["APPROVED"] = "APPROVED";
3725
- InvoiceStatusEnum2["REJECTED"] = "REJECTED";
3726
- return InvoiceStatusEnum2;
3727
- })(InvoiceStatusEnum || {});
3728
- var InvoicePaymentStatusEnum = /* @__PURE__ */ ((InvoicePaymentStatusEnum2) => {
3729
- InvoicePaymentStatusEnum2["PENDING"] = "PENDING";
3730
- InvoicePaymentStatusEnum2["OVERDUE"] = "OVERDUE";
3731
- InvoicePaymentStatusEnum2["INTRANSACTION"] = "INTRANSACTION";
3732
- InvoicePaymentStatusEnum2["PAID"] = "PAID";
3733
- InvoicePaymentStatusEnum2["REFUNDED"] = "REFUNDED";
3734
- return InvoicePaymentStatusEnum2;
3484
+ // src/entities/timesheet-line.entity.ts
3485
+ var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
3486
+ TimesheetLineStatusEnum2["DRAFT"] = "DRAFT";
3487
+ TimesheetLineStatusEnum2["SEND"] = "SEND";
3488
+ TimesheetLineStatusEnum2["SEND_BACK"] = "SEND_BACK";
3489
+ TimesheetLineStatusEnum2["APPROVED"] = "APPROVED";
3490
+ TimesheetLineStatusEnum2["REJECTED"] = "REJECTED";
3491
+ TimesheetLineStatusEnum2["PAID"] = "PAID";
3492
+ TimesheetLineStatusEnum2["MISSING"] = "MISSING";
3493
+ TimesheetLineStatusEnum2["ACTIVE"] = "ACTIVE";
3494
+ return TimesheetLineStatusEnum2;
3495
+ })(TimesheetLineStatusEnum || {});
3496
+ var TimesheetLine = class extends BaseEntity {
3497
+ };
3498
+ __decorateClass([
3499
+ (0, import_typeorm24.Column)({ name: "job_id", type: "integer", nullable: true }),
3500
+ (0, import_typeorm24.Index)()
3501
+ ], TimesheetLine.prototype, "jobId", 2);
3502
+ __decorateClass([
3503
+ (0, import_typeorm24.ManyToOne)(() => Job, (job) => job.timesheetLine),
3504
+ (0, import_typeorm24.JoinColumn)({ name: "job_id" })
3505
+ ], TimesheetLine.prototype, "job", 2);
3506
+ __decorateClass([
3507
+ (0, import_typeorm24.Column)({ name: "client_id", type: "integer", nullable: true }),
3508
+ (0, import_typeorm24.Index)()
3509
+ ], TimesheetLine.prototype, "clientId", 2);
3510
+ __decorateClass([
3511
+ (0, import_typeorm24.ManyToOne)(() => User, (user) => user.clientTimesheetLine),
3512
+ (0, import_typeorm24.JoinColumn)({ name: "client_id" })
3513
+ ], TimesheetLine.prototype, "client", 2);
3514
+ __decorateClass([
3515
+ (0, import_typeorm24.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3516
+ (0, import_typeorm24.Index)()
3517
+ ], TimesheetLine.prototype, "freelancerId", 2);
3518
+ __decorateClass([
3519
+ (0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerTimesheetLine),
3520
+ (0, import_typeorm24.JoinColumn)({ name: "freelancer_id" })
3521
+ ], TimesheetLine.prototype, "freelancer", 2);
3522
+ __decorateClass([
3523
+ (0, import_typeorm24.OneToMany)(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
3524
+ ], TimesheetLine.prototype, "timesheetLogs", 2);
3525
+ __decorateClass([
3526
+ (0, import_typeorm24.OneToMany)(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
3527
+ ], TimesheetLine.prototype, "timesheetLineHistory", 2);
3528
+ __decorateClass([
3529
+ (0, import_typeorm24.Column)({ name: "unique_id", type: "varchar", nullable: true })
3530
+ ], TimesheetLine.prototype, "uniqueId", 2);
3531
+ __decorateClass([
3532
+ (0, import_typeorm24.Column)({
3533
+ name: "week_start_date",
3534
+ type: "date",
3535
+ nullable: true
3536
+ })
3537
+ ], TimesheetLine.prototype, "weekStartDate", 2);
3538
+ __decorateClass([
3539
+ (0, import_typeorm24.Column)({
3540
+ name: "week_end_date",
3541
+ type: "date",
3542
+ nullable: true
3543
+ })
3544
+ ], TimesheetLine.prototype, "weekEndDate", 2);
3545
+ __decorateClass([
3546
+ (0, import_typeorm24.Column)({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
3547
+ ], TimesheetLine.prototype, "status", 2);
3548
+ __decorateClass([
3549
+ (0, import_typeorm24.Column)({ name: "weekly_hours_sum", type: "varchar", nullable: true })
3550
+ ], TimesheetLine.prototype, "weeklyHoursSum", 2);
3551
+ __decorateClass([
3552
+ (0, import_typeorm24.Column)({ name: "is_invoice_genrated", type: "boolean", default: false })
3553
+ ], TimesheetLine.prototype, "isInvoiceGenrated", 2);
3554
+ __decorateClass([
3555
+ (0, import_typeorm24.Column)({ name: "is_invoice_approved", type: "boolean", default: false })
3556
+ ], TimesheetLine.prototype, "isInvoiceApproved", 2);
3557
+ __decorateClass([
3558
+ (0, import_typeorm24.OneToMany)(() => Invoice, (invoice) => invoice.timesheetLine, {
3559
+ cascade: true
3560
+ })
3561
+ ], TimesheetLine.prototype, "invoice", 2);
3562
+ TimesheetLine = __decorateClass([
3563
+ (0, import_typeorm24.Entity)("timesheet_lines")
3564
+ ], TimesheetLine);
3565
+
3566
+ // src/entities/invoice.entity.ts
3567
+ var InvoiceTypeEnum = /* @__PURE__ */ ((InvoiceTypeEnum2) => {
3568
+ InvoiceTypeEnum2["WEEKLY"] = "WEEKLY";
3569
+ InvoiceTypeEnum2["MONTHLY"] = "MONTHLY";
3570
+ return InvoiceTypeEnum2;
3571
+ })(InvoiceTypeEnum || {});
3572
+ var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
3573
+ InvoiceStatusEnum2["SUBMITTED"] = "SUBMITTED";
3574
+ InvoiceStatusEnum2["UNDER_REVIEW"] = "UNDER_REVIEW";
3575
+ InvoiceStatusEnum2["APPROVED"] = "APPROVED";
3576
+ InvoiceStatusEnum2["REJECTED"] = "REJECTED";
3577
+ return InvoiceStatusEnum2;
3578
+ })(InvoiceStatusEnum || {});
3579
+ var InvoicePaymentStatusEnum = /* @__PURE__ */ ((InvoicePaymentStatusEnum2) => {
3580
+ InvoicePaymentStatusEnum2["PENDING"] = "PENDING";
3581
+ InvoicePaymentStatusEnum2["OVERDUE"] = "OVERDUE";
3582
+ InvoicePaymentStatusEnum2["INTRANSACTION"] = "INTRANSACTION";
3583
+ InvoicePaymentStatusEnum2["PAID"] = "PAID";
3584
+ InvoicePaymentStatusEnum2["REFUNDED"] = "REFUNDED";
3585
+ return InvoicePaymentStatusEnum2;
3735
3586
  })(InvoicePaymentStatusEnum || {});
3736
3587
  var Invoice = class extends BaseEntity {
3737
3588
  };
3738
3589
  __decorateClass([
3739
- (0, import_typeorm26.Column)({ name: "timesheet_line_id", type: "integer", nullable: true }),
3740
- (0, import_typeorm26.Index)()
3590
+ (0, import_typeorm25.Column)({ name: "timesheet_line_id", type: "integer", nullable: true }),
3591
+ (0, import_typeorm25.Index)()
3741
3592
  ], Invoice.prototype, "timesheetLineId", 2);
3742
3593
  __decorateClass([
3743
- (0, import_typeorm26.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
3744
- (0, import_typeorm26.JoinColumn)({ name: "timesheet_line_id" })
3594
+ (0, import_typeorm25.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
3595
+ (0, import_typeorm25.JoinColumn)({ name: "timesheet_line_id" })
3745
3596
  ], Invoice.prototype, "timesheetLine", 2);
3746
3597
  __decorateClass([
3747
- (0, import_typeorm26.Column)({ name: "job_id", type: "integer", nullable: true }),
3748
- (0, import_typeorm26.Index)()
3598
+ (0, import_typeorm25.Column)({ name: "job_id", type: "integer", nullable: true }),
3599
+ (0, import_typeorm25.Index)()
3749
3600
  ], Invoice.prototype, "jobId", 2);
3750
3601
  __decorateClass([
3751
- (0, import_typeorm26.ManyToOne)(() => Job, (job) => job.invoice),
3752
- (0, import_typeorm26.JoinColumn)({ name: "job_id" })
3602
+ (0, import_typeorm25.ManyToOne)(() => Job, (job) => job.invoice),
3603
+ (0, import_typeorm25.JoinColumn)({ name: "job_id" })
3753
3604
  ], Invoice.prototype, "job", 2);
3754
3605
  __decorateClass([
3755
- (0, import_typeorm26.Column)({ name: "client_id", type: "integer", nullable: true }),
3756
- (0, import_typeorm26.Index)()
3606
+ (0, import_typeorm25.Column)({ name: "client_id", type: "integer", nullable: true }),
3607
+ (0, import_typeorm25.Index)()
3757
3608
  ], Invoice.prototype, "clientId", 2);
3758
3609
  __decorateClass([
3759
- (0, import_typeorm26.ManyToOne)(() => User, (user) => user.clientInvoice),
3760
- (0, import_typeorm26.JoinColumn)({ name: "client_id" })
3610
+ (0, import_typeorm25.ManyToOne)(() => User, (user) => user.clientInvoice),
3611
+ (0, import_typeorm25.JoinColumn)({ name: "client_id" })
3761
3612
  ], Invoice.prototype, "client", 2);
3762
3613
  __decorateClass([
3763
- (0, import_typeorm26.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3764
- (0, import_typeorm26.Index)()
3614
+ (0, import_typeorm25.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3615
+ (0, import_typeorm25.Index)()
3765
3616
  ], Invoice.prototype, "freelancerId", 2);
3766
3617
  __decorateClass([
3767
- (0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerInvoice),
3768
- (0, import_typeorm26.JoinColumn)({ name: "freelancer_id" })
3618
+ (0, import_typeorm25.ManyToOne)(() => User, (user) => user.freelancerInvoice),
3619
+ (0, import_typeorm25.JoinColumn)({ name: "freelancer_id" })
3769
3620
  ], Invoice.prototype, "freelancer", 2);
3770
3621
  __decorateClass([
3771
- (0, import_typeorm26.Column)({ name: "invoice_unique_id", type: "varchar", nullable: true })
3622
+ (0, import_typeorm25.Column)({ name: "invoice_unique_id", type: "varchar", nullable: true })
3772
3623
  ], Invoice.prototype, "invoiceUniqueId", 2);
3773
3624
  __decorateClass([
3774
- (0, import_typeorm26.Column)({
3625
+ (0, import_typeorm25.Column)({
3775
3626
  name: "issued_at",
3776
3627
  type: "date",
3777
3628
  nullable: true
3778
3629
  })
3779
3630
  ], Invoice.prototype, "issuedAt", 2);
3780
3631
  __decorateClass([
3781
- (0, import_typeorm26.Column)({
3632
+ (0, import_typeorm25.Column)({
3782
3633
  name: "due_at",
3783
3634
  type: "date",
3784
3635
  nullable: true
3785
3636
  })
3786
3637
  ], Invoice.prototype, "dueAt", 2);
3787
3638
  __decorateClass([
3788
- (0, import_typeorm26.Column)({
3639
+ (0, import_typeorm25.Column)({
3789
3640
  name: "billing_cycle_from",
3790
3641
  type: "date",
3791
3642
  nullable: true
3792
3643
  })
3793
3644
  ], Invoice.prototype, "billingCycleFrom", 2);
3794
3645
  __decorateClass([
3795
- (0, import_typeorm26.Column)({
3646
+ (0, import_typeorm25.Column)({
3796
3647
  name: "billing_cycle_to",
3797
3648
  type: "date",
3798
3649
  nullable: true
3799
3650
  })
3800
3651
  ], Invoice.prototype, "billingCycleTo", 2);
3801
3652
  __decorateClass([
3802
- (0, import_typeorm26.Column)({ name: "billing_hours", type: "varchar", nullable: true })
3653
+ (0, import_typeorm25.Column)({ name: "billing_hours", type: "varchar", nullable: true })
3803
3654
  ], Invoice.prototype, "billingHours", 2);
3804
3655
  __decorateClass([
3805
- (0, import_typeorm26.Column)({ name: "hourly_rate", type: "varchar", nullable: true })
3656
+ (0, import_typeorm25.Column)({ name: "hourly_rate", type: "varchar", nullable: true })
3806
3657
  ], Invoice.prototype, "hourlyRate", 2);
3807
3658
  __decorateClass([
3808
- (0, import_typeorm26.Column)({ name: "billing_amount", type: "varchar", nullable: true })
3659
+ (0, import_typeorm25.Column)({ name: "billing_amount", type: "varchar", nullable: true })
3809
3660
  ], Invoice.prototype, "billingAmount", 2);
3810
3661
  __decorateClass([
3811
- (0, import_typeorm26.Column)({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
3662
+ (0, import_typeorm25.Column)({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
3812
3663
  ], Invoice.prototype, "invoiceType", 2);
3813
3664
  __decorateClass([
3814
- (0, import_typeorm26.Column)({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
3665
+ (0, import_typeorm25.Column)({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
3815
3666
  ], Invoice.prototype, "status", 2);
3816
3667
  __decorateClass([
3817
- (0, import_typeorm26.Column)({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
3668
+ (0, import_typeorm25.Column)({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
3818
3669
  ], Invoice.prototype, "paymentStatus", 2);
3819
3670
  __decorateClass([
3820
- (0, import_typeorm26.Column)({ name: "client_invoice_url", type: "varchar", nullable: true })
3671
+ (0, import_typeorm25.Column)({ name: "client_invoice_url", type: "varchar", nullable: true })
3821
3672
  ], Invoice.prototype, "clientInvoiceUrl", 2);
3822
3673
  __decorateClass([
3823
- (0, import_typeorm26.Column)({ name: "freelancer_invoice_url", type: "varchar", nullable: true })
3674
+ (0, import_typeorm25.Column)({ name: "freelancer_invoice_url", type: "varchar", nullable: true })
3824
3675
  ], Invoice.prototype, "freelancerInvoiceUrl", 2);
3676
+ __decorateClass([
3677
+ (0, import_typeorm25.OneToOne)(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.invoice)
3678
+ ], Invoice.prototype, "escrowWalletTransaction", 2);
3825
3679
  Invoice = __decorateClass([
3826
- (0, import_typeorm26.Entity)("invoices")
3680
+ (0, import_typeorm25.Entity)("invoices")
3827
3681
  ], Invoice);
3828
3682
 
3829
- // src/entities/timesheet-line.entity.ts
3830
- var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
3831
- TimesheetLineStatusEnum2["DRAFT"] = "DRAFT";
3832
- TimesheetLineStatusEnum2["SEND"] = "SEND";
3833
- TimesheetLineStatusEnum2["SEND_BACK"] = "SEND_BACK";
3834
- TimesheetLineStatusEnum2["APPROVED"] = "APPROVED";
3835
- TimesheetLineStatusEnum2["REJECTED"] = "REJECTED";
3836
- TimesheetLineStatusEnum2["PAID"] = "PAID";
3837
- TimesheetLineStatusEnum2["MISSING"] = "MISSING";
3838
- TimesheetLineStatusEnum2["ACTIVE"] = "ACTIVE";
3839
- return TimesheetLineStatusEnum2;
3840
- })(TimesheetLineStatusEnum || {});
3841
- var TimesheetLine = class extends BaseEntity {
3683
+ // src/entities/escrow-wallet-transaction.entity.ts
3684
+ var EscrowWalletTransactionTypeEnum = /* @__PURE__ */ ((EscrowWalletTransactionTypeEnum2) => {
3685
+ EscrowWalletTransactionTypeEnum2["CR"] = "CR";
3686
+ EscrowWalletTransactionTypeEnum2["DR"] = "DR";
3687
+ return EscrowWalletTransactionTypeEnum2;
3688
+ })(EscrowWalletTransactionTypeEnum || {});
3689
+ var EscrowWalletTransactionForEnum = /* @__PURE__ */ ((EscrowWalletTransactionForEnum2) => {
3690
+ EscrowWalletTransactionForEnum2["CONTRACT"] = "CONTRACT";
3691
+ EscrowWalletTransactionForEnum2["INVOICE"] = "INVOICE";
3692
+ return EscrowWalletTransactionForEnum2;
3693
+ })(EscrowWalletTransactionForEnum || {});
3694
+ var EscrowWalletTransaction = class extends BaseEntity {
3695
+ };
3696
+ __decorateClass([
3697
+ (0, import_typeorm26.Column)({ name: "escrow_wallet_id", type: "integer", nullable: true }),
3698
+ (0, import_typeorm26.Index)()
3699
+ ], EscrowWalletTransaction.prototype, "escrowWalletId", 2);
3700
+ __decorateClass([
3701
+ (0, import_typeorm26.ManyToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.escrowWalletTransactions),
3702
+ (0, import_typeorm26.JoinColumn)({ name: "wallet_id" })
3703
+ ], EscrowWalletTransaction.prototype, "escrowWallet", 2);
3704
+ __decorateClass([
3705
+ (0, import_typeorm26.Column)({ name: "invoice_id", type: "integer", nullable: true }),
3706
+ (0, import_typeorm26.Index)()
3707
+ ], EscrowWalletTransaction.prototype, "invoiceId", 2);
3708
+ __decorateClass([
3709
+ (0, import_typeorm26.OneToOne)(() => Invoice, (invoice) => invoice.escrowWalletTransaction),
3710
+ (0, import_typeorm26.JoinColumn)({ name: "invoice_id" })
3711
+ ], EscrowWalletTransaction.prototype, "invoice", 2);
3712
+ __decorateClass([
3713
+ (0, import_typeorm26.Column)({ name: "amount", type: "bigint", nullable: true })
3714
+ ], EscrowWalletTransaction.prototype, "amount", 2);
3715
+ __decorateClass([
3716
+ (0, import_typeorm26.Column)({ name: "escrow_type", type: "enum", enum: EscrowWalletTransactionTypeEnum })
3717
+ ], EscrowWalletTransaction.prototype, "escrowType", 2);
3718
+ __decorateClass([
3719
+ (0, import_typeorm26.Column)({ name: "description", type: "text", nullable: true })
3720
+ ], EscrowWalletTransaction.prototype, "description", 2);
3721
+ __decorateClass([
3722
+ (0, import_typeorm26.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
3723
+ ], EscrowWalletTransaction.prototype, "completedAt", 2);
3724
+ __decorateClass([
3725
+ (0, import_typeorm26.Column)({ name: "escrow_transaction_for", type: "enum", enum: EscrowWalletTransactionForEnum })
3726
+ ], EscrowWalletTransaction.prototype, "escrowTransactionFor", 2);
3727
+ __decorateClass([
3728
+ (0, import_typeorm26.Column)({ name: "meta_data", type: "varchar", nullable: true })
3729
+ ], EscrowWalletTransaction.prototype, "metaData", 2);
3730
+ EscrowWalletTransaction = __decorateClass([
3731
+ (0, import_typeorm26.Entity)("escrow_wallet_transactions")
3732
+ ], EscrowWalletTransaction);
3733
+
3734
+ // src/entities/escrow-wallet.entity.ts
3735
+ var EscrowWallet = class extends BaseEntity {
3842
3736
  };
3843
3737
  __decorateClass([
3844
3738
  (0, import_typeorm27.Column)({ name: "job_id", type: "integer", nullable: true }),
3845
3739
  (0, import_typeorm27.Index)()
3846
- ], TimesheetLine.prototype, "jobId", 2);
3740
+ ], EscrowWallet.prototype, "jobId", 2);
3847
3741
  __decorateClass([
3848
- (0, import_typeorm27.ManyToOne)(() => Job, (job) => job.timesheetLine),
3742
+ (0, import_typeorm27.ManyToOne)(() => Job, (job) => job.escrowWallets),
3849
3743
  (0, import_typeorm27.JoinColumn)({ name: "job_id" })
3850
- ], TimesheetLine.prototype, "job", 2);
3744
+ ], EscrowWallet.prototype, "job", 2);
3851
3745
  __decorateClass([
3852
3746
  (0, import_typeorm27.Column)({ name: "client_id", type: "integer", nullable: true }),
3853
3747
  (0, import_typeorm27.Index)()
3854
- ], TimesheetLine.prototype, "clientId", 2);
3748
+ ], EscrowWallet.prototype, "clientId", 2);
3855
3749
  __decorateClass([
3856
- (0, import_typeorm27.ManyToOne)(() => User, (user) => user.clientTimesheetLine),
3750
+ (0, import_typeorm27.ManyToOne)(() => User, (user) => user.clientEscrowWallets),
3857
3751
  (0, import_typeorm27.JoinColumn)({ name: "client_id" })
3858
- ], TimesheetLine.prototype, "client", 2);
3752
+ ], EscrowWallet.prototype, "client", 2);
3859
3753
  __decorateClass([
3860
3754
  (0, import_typeorm27.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3861
3755
  (0, import_typeorm27.Index)()
3862
- ], TimesheetLine.prototype, "freelancerId", 2);
3756
+ ], EscrowWallet.prototype, "freelancerId", 2);
3863
3757
  __decorateClass([
3864
- (0, import_typeorm27.ManyToOne)(() => User, (user) => user.freelancerTimesheetLine),
3758
+ (0, import_typeorm27.ManyToOne)(() => User, (user) => user.freelancerEscrowWallets),
3865
3759
  (0, import_typeorm27.JoinColumn)({ name: "freelancer_id" })
3866
- ], TimesheetLine.prototype, "freelancer", 2);
3760
+ ], EscrowWallet.prototype, "freelancer", 2);
3867
3761
  __decorateClass([
3868
- (0, import_typeorm27.OneToMany)(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
3869
- ], TimesheetLine.prototype, "timesheetLogs", 2);
3762
+ (0, import_typeorm27.Column)({ name: "contract_id", type: "integer", nullable: true }),
3763
+ (0, import_typeorm27.Index)()
3764
+ ], EscrowWallet.prototype, "contractId", 2);
3870
3765
  __decorateClass([
3871
- (0, import_typeorm27.OneToMany)(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
3872
- ], TimesheetLine.prototype, "timesheetLineHistory", 2);
3766
+ (0, import_typeorm27.OneToOne)(() => Contract, (contract) => contract.escrowWallet),
3767
+ (0, import_typeorm27.JoinColumn)({ name: "contract_id" })
3768
+ ], EscrowWallet.prototype, "contract", 2);
3873
3769
  __decorateClass([
3874
- (0, import_typeorm27.Column)({ name: "unique_id", type: "varchar", nullable: true })
3875
- ], TimesheetLine.prototype, "uniqueId", 2);
3770
+ (0, import_typeorm27.Column)({ name: "wallet_balance", type: "varchar", default: "0" })
3771
+ ], EscrowWallet.prototype, "escrowBalance", 2);
3876
3772
  __decorateClass([
3877
- (0, import_typeorm27.Column)({
3878
- name: "week_start_date",
3773
+ (0, import_typeorm27.Column)({ name: "metadata", type: "jsonb", nullable: true })
3774
+ ], EscrowWallet.prototype, "metadata", 2);
3775
+ __decorateClass([
3776
+ (0, import_typeorm27.OneToMany)(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.escrowWallet)
3777
+ ], EscrowWallet.prototype, "escrowWalletTransactions", 2);
3778
+ EscrowWallet = __decorateClass([
3779
+ (0, import_typeorm27.Entity)("escrow_wallets")
3780
+ ], EscrowWallet);
3781
+
3782
+ // src/entities/contract.entity.ts
3783
+ var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
3784
+ ContractStatusEnum2["GENERATED"] = "GENERATED";
3785
+ ContractStatusEnum2["DRAFTED"] = "DRAFTED";
3786
+ ContractStatusEnum2["SENT"] = "SENT";
3787
+ ContractStatusEnum2["SIGNED"] = "SIGNED";
3788
+ ContractStatusEnum2["ACTIVE"] = "ACTIVE";
3789
+ ContractStatusEnum2["CANCELLED"] = "CANCELLED";
3790
+ ContractStatusEnum2["DISPUTED"] = "DISPUTED";
3791
+ ContractStatusEnum2["REJECTED"] = "REJECTED";
3792
+ ContractStatusEnum2["RENEWED"] = "RENEWED";
3793
+ ContractStatusEnum2["EXPIRED"] = "EXPIRED";
3794
+ return ContractStatusEnum2;
3795
+ })(ContractStatusEnum || {});
3796
+ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
3797
+ ContractTypeEnum2["NDA"] = "NDA";
3798
+ ContractTypeEnum2["WORK"] = "WORK";
3799
+ return ContractTypeEnum2;
3800
+ })(ContractTypeEnum || {});
3801
+ var Contract = class extends BaseEntity {
3802
+ };
3803
+ __decorateClass([
3804
+ (0, import_typeorm28.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3805
+ ], Contract.prototype, "contractUniqueId", 2);
3806
+ __decorateClass([
3807
+ (0, import_typeorm28.Column)({ name: "job_id", type: "integer", nullable: true }),
3808
+ (0, import_typeorm28.Index)()
3809
+ ], Contract.prototype, "jobId", 2);
3810
+ __decorateClass([
3811
+ (0, import_typeorm28.ManyToOne)(() => Job, (job) => job.contracts),
3812
+ (0, import_typeorm28.JoinColumn)({ name: "job_id" })
3813
+ ], Contract.prototype, "job", 2);
3814
+ __decorateClass([
3815
+ (0, import_typeorm28.Column)({ name: "client_id", type: "integer", nullable: true }),
3816
+ (0, import_typeorm28.Index)()
3817
+ ], Contract.prototype, "clientId", 2);
3818
+ __decorateClass([
3819
+ (0, import_typeorm28.ManyToOne)(() => User, (user) => user.clientContracts),
3820
+ (0, import_typeorm28.JoinColumn)({ name: "client_id" })
3821
+ ], Contract.prototype, "client", 2);
3822
+ __decorateClass([
3823
+ (0, import_typeorm28.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3824
+ (0, import_typeorm28.Index)()
3825
+ ], Contract.prototype, "freelancerId", 2);
3826
+ __decorateClass([
3827
+ (0, import_typeorm28.ManyToOne)(() => User, (user) => user.freelancerContracts),
3828
+ (0, import_typeorm28.JoinColumn)({ name: "freelancer_id" })
3829
+ ], Contract.prototype, "freelancer", 2);
3830
+ __decorateClass([
3831
+ (0, import_typeorm28.Column)({ name: "duration", type: "integer", nullable: true })
3832
+ ], Contract.prototype, "duration", 2);
3833
+ __decorateClass([
3834
+ (0, import_typeorm28.Column)({
3835
+ name: "status",
3836
+ type: "enum",
3837
+ enum: ContractStatusEnum,
3838
+ nullable: true
3839
+ })
3840
+ ], Contract.prototype, "status", 2);
3841
+ __decorateClass([
3842
+ (0, import_typeorm28.Column)({
3843
+ name: "type",
3844
+ type: "enum",
3845
+ enum: ContractTypeEnum,
3846
+ nullable: true
3847
+ })
3848
+ ], Contract.prototype, "type", 2);
3849
+ __decorateClass([
3850
+ (0, import_typeorm28.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
3851
+ ], Contract.prototype, "invoicingCycle", 2);
3852
+ __decorateClass([
3853
+ (0, import_typeorm28.Column)({
3854
+ name: "escrow_deposite_amount",
3855
+ type: "decimal",
3856
+ precision: 10,
3857
+ scale: 2,
3858
+ nullable: true
3859
+ })
3860
+ ], Contract.prototype, "escrowDepositeAmount", 2);
3861
+ __decorateClass([
3862
+ (0, import_typeorm28.Column)({
3863
+ name: "start_date",
3864
+ type: "timestamp with time zone",
3865
+ nullable: true
3866
+ })
3867
+ ], Contract.prototype, "startDate", 2);
3868
+ __decorateClass([
3869
+ (0, import_typeorm28.Column)({
3870
+ name: "end_date",
3871
+ type: "timestamp with time zone",
3872
+ nullable: true
3873
+ })
3874
+ ], Contract.prototype, "endDate", 2);
3875
+ __decorateClass([
3876
+ (0, import_typeorm28.Column)({ name: "original_document_url", type: "varchar", nullable: true })
3877
+ ], Contract.prototype, "originalDocumentUrl", 2);
3878
+ __decorateClass([
3879
+ (0, import_typeorm28.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
3880
+ ], Contract.prototype, "contractDocumentUrl", 2);
3881
+ __decorateClass([
3882
+ (0, import_typeorm28.Column)({
3883
+ name: "client_signed_at",
3884
+ type: "timestamp with time zone",
3885
+ nullable: true
3886
+ })
3887
+ ], Contract.prototype, "clientSignedAt", 2);
3888
+ __decorateClass([
3889
+ (0, import_typeorm28.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
3890
+ ], Contract.prototype, "freelancerViewed", 2);
3891
+ __decorateClass([
3892
+ (0, import_typeorm28.Column)({
3893
+ name: "freelancer_viewed_at",
3894
+ type: "timestamp with time zone",
3895
+ nullable: true
3896
+ })
3897
+ ], Contract.prototype, "freelancerViewedAt", 2);
3898
+ __decorateClass([
3899
+ (0, import_typeorm28.Column)({
3900
+ name: "freelancer_signed_at",
3901
+ type: "timestamp with time zone",
3902
+ nullable: true
3903
+ })
3904
+ ], Contract.prototype, "freelancerSignedAt", 2);
3905
+ __decorateClass([
3906
+ (0, import_typeorm28.Column)({
3907
+ name: "rejectd_at",
3908
+ type: "timestamp with time zone",
3909
+ nullable: true
3910
+ })
3911
+ ], Contract.prototype, "rejectedAt", 2);
3912
+ __decorateClass([
3913
+ (0, import_typeorm28.Column)({ name: "reject_reason", type: "varchar", nullable: true })
3914
+ ], Contract.prototype, "rejectReason", 2);
3915
+ __decorateClass([
3916
+ (0, import_typeorm28.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
3917
+ ], Contract.prototype, "isWorkContractSent", 2);
3918
+ __decorateClass([
3919
+ (0, import_typeorm28.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
3920
+ ], Contract.prototype, "isEscrowDeposited", 2);
3921
+ __decorateClass([
3922
+ (0, import_typeorm28.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
3923
+ ], Contract.prototype, "signaturePositions", 2);
3924
+ __decorateClass([
3925
+ (0, import_typeorm28.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
3926
+ ], Contract.prototype, "escrowWallet", 2);
3927
+ Contract = __decorateClass([
3928
+ (0, import_typeorm28.Entity)("contracts")
3929
+ ], Contract);
3930
+
3931
+ // src/entities/timesheets.entity.ts
3932
+ var import_typeorm29 = require("typeorm");
3933
+ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
3934
+ TimesheetStatusEnum2["DRAFT"] = "DRAFT";
3935
+ TimesheetStatusEnum2["SEND"] = "SEND";
3936
+ TimesheetStatusEnum2["SEND_BACK"] = "SEND_BACK";
3937
+ TimesheetStatusEnum2["APPROVED"] = "APPROVED";
3938
+ TimesheetStatusEnum2["REJECTED"] = "REJECTED";
3939
+ TimesheetStatusEnum2["PAID"] = "PAID";
3940
+ return TimesheetStatusEnum2;
3941
+ })(TimesheetStatusEnum || {});
3942
+ var Timesheet = class extends BaseEntity {
3943
+ };
3944
+ __decorateClass([
3945
+ (0, import_typeorm29.Column)({ name: "job_id", type: "integer", nullable: true }),
3946
+ (0, import_typeorm29.Index)()
3947
+ ], Timesheet.prototype, "jobId", 2);
3948
+ __decorateClass([
3949
+ (0, import_typeorm29.ManyToOne)(() => Job, (job) => job.timesheets),
3950
+ (0, import_typeorm29.JoinColumn)({ name: "job_id" })
3951
+ ], Timesheet.prototype, "job", 2);
3952
+ __decorateClass([
3953
+ (0, import_typeorm29.Column)({ name: "client_id", type: "integer", nullable: true }),
3954
+ (0, import_typeorm29.Index)()
3955
+ ], Timesheet.prototype, "clientId", 2);
3956
+ __decorateClass([
3957
+ (0, import_typeorm29.ManyToOne)(() => User, (user) => user.clientTimesheets),
3958
+ (0, import_typeorm29.JoinColumn)({ name: "client_id" })
3959
+ ], Timesheet.prototype, "client", 2);
3960
+ __decorateClass([
3961
+ (0, import_typeorm29.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3962
+ (0, import_typeorm29.Index)()
3963
+ ], Timesheet.prototype, "freelancerId", 2);
3964
+ __decorateClass([
3965
+ (0, import_typeorm29.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
3966
+ (0, import_typeorm29.JoinColumn)({ name: "freelancer_id" })
3967
+ ], Timesheet.prototype, "freelancer", 2);
3968
+ __decorateClass([
3969
+ (0, import_typeorm29.Column)({
3970
+ name: "start_date",
3879
3971
  type: "date",
3880
3972
  nullable: true
3881
3973
  })
3882
- ], TimesheetLine.prototype, "weekStartDate", 2);
3974
+ ], Timesheet.prototype, "startDate", 2);
3883
3975
  __decorateClass([
3884
- (0, import_typeorm27.Column)({
3885
- name: "week_end_date",
3976
+ (0, import_typeorm29.Column)({
3977
+ name: "end_date",
3886
3978
  type: "date",
3887
3979
  nullable: true
3888
3980
  })
3889
- ], TimesheetLine.prototype, "weekEndDate", 2);
3981
+ ], Timesheet.prototype, "endDate", 2);
3890
3982
  __decorateClass([
3891
- (0, import_typeorm27.Column)({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
3892
- ], TimesheetLine.prototype, "status", 2);
3983
+ (0, import_typeorm29.Column)({ name: "start_time", type: "varchar", nullable: true })
3984
+ ], Timesheet.prototype, "startTime", 2);
3893
3985
  __decorateClass([
3894
- (0, import_typeorm27.Column)({ name: "weekly_hours_sum", type: "varchar", nullable: true })
3895
- ], TimesheetLine.prototype, "weeklyHoursSum", 2);
3986
+ (0, import_typeorm29.Column)({ name: "end_time", type: "varchar", nullable: true })
3987
+ ], Timesheet.prototype, "endTime", 2);
3896
3988
  __decorateClass([
3897
- (0, import_typeorm27.Column)({ name: "is_invoice_genrated", type: "boolean", default: false })
3898
- ], TimesheetLine.prototype, "isInvoiceGenrated", 2);
3989
+ (0, import_typeorm29.Column)({ name: "worked_hours", type: "varchar", nullable: true })
3990
+ ], Timesheet.prototype, "workedHours", 2);
3899
3991
  __decorateClass([
3900
- (0, import_typeorm27.Column)({ name: "is_invoice_approved", type: "boolean", default: false })
3901
- ], TimesheetLine.prototype, "isInvoiceApproved", 2);
3992
+ (0, import_typeorm29.Column)({ name: "task_id", type: "integer", nullable: true })
3993
+ ], Timesheet.prototype, "taskId", 2);
3902
3994
  __decorateClass([
3903
- (0, import_typeorm27.OneToMany)(() => Invoice, (invoice) => invoice.timesheetLine, {
3904
- cascade: true
3905
- })
3906
- ], TimesheetLine.prototype, "invoice", 2);
3907
- TimesheetLine = __decorateClass([
3908
- (0, import_typeorm27.Entity)("timesheet_lines")
3909
- ], TimesheetLine);
3995
+ (0, import_typeorm29.Column)({ name: "task_name", type: "varchar", nullable: true })
3996
+ ], Timesheet.prototype, "taskName", 2);
3997
+ __decorateClass([
3998
+ (0, import_typeorm29.Column)({ name: "description", type: "varchar", nullable: true })
3999
+ ], Timesheet.prototype, "description", 2);
4000
+ __decorateClass([
4001
+ (0, import_typeorm29.Column)({ name: "week_start_date", type: "date", nullable: true })
4002
+ ], Timesheet.prototype, "weekStartDate", 2);
4003
+ __decorateClass([
4004
+ (0, import_typeorm29.Column)({ name: "week_end_date", type: "date", nullable: true })
4005
+ ], Timesheet.prototype, "weekEndDate", 2);
4006
+ __decorateClass([
4007
+ (0, import_typeorm29.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
4008
+ ], Timesheet.prototype, "rejectedAt", 2);
4009
+ __decorateClass([
4010
+ (0, import_typeorm29.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
4011
+ ], Timesheet.prototype, "submittedAt", 2);
4012
+ __decorateClass([
4013
+ (0, import_typeorm29.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
4014
+ ], Timesheet.prototype, "resubmittedAt", 2);
4015
+ __decorateClass([
4016
+ (0, import_typeorm29.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
4017
+ ], Timesheet.prototype, "approvedAt", 2);
4018
+ __decorateClass([
4019
+ (0, import_typeorm29.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
4020
+ ], Timesheet.prototype, "status", 2);
4021
+ __decorateClass([
4022
+ (0, import_typeorm29.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
4023
+ ], Timesheet.prototype, "clientSendBackReason", 2);
4024
+ Timesheet = __decorateClass([
4025
+ (0, import_typeorm29.Entity)("timesheets")
4026
+ ], Timesheet);
3910
4027
 
3911
4028
  // src/entities/job.entity.ts
3912
4029
  var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
@@ -3949,55 +4066,55 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
3949
4066
  var Job = class extends BaseEntity {
3950
4067
  };
3951
4068
  __decorateClass([
3952
- (0, import_typeorm28.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
4069
+ (0, import_typeorm30.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
3953
4070
  ], Job.prototype, "jobId", 2);
3954
4071
  // individual index to find jobs by user
3955
4072
  __decorateClass([
3956
- (0, import_typeorm28.Column)({ name: "user_id", type: "integer", nullable: true }),
3957
- (0, import_typeorm28.Index)()
4073
+ (0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
4074
+ (0, import_typeorm30.Index)()
3958
4075
  ], Job.prototype, "userId", 2);
3959
4076
  __decorateClass([
3960
- (0, import_typeorm28.ManyToOne)(() => User, (user) => user.jobs),
3961
- (0, import_typeorm28.JoinColumn)({ name: "user_id" })
4077
+ (0, import_typeorm30.ManyToOne)(() => User, (user) => user.jobs),
4078
+ (0, import_typeorm30.JoinColumn)({ name: "user_id" })
3962
4079
  ], Job.prototype, "user", 2);
3963
4080
  __decorateClass([
3964
- (0, import_typeorm28.Column)({ name: "country_id", type: "int", nullable: true })
4081
+ (0, import_typeorm30.Column)({ name: "country_id", type: "int", nullable: true })
3965
4082
  ], Job.prototype, "countryId", 2);
3966
4083
  __decorateClass([
3967
- (0, import_typeorm28.ManyToOne)(() => Country),
3968
- (0, import_typeorm28.JoinColumn)({ name: "country_id" })
4084
+ (0, import_typeorm30.ManyToOne)(() => Country),
4085
+ (0, import_typeorm30.JoinColumn)({ name: "country_id" })
3969
4086
  ], Job.prototype, "country", 2);
3970
4087
  __decorateClass([
3971
- (0, import_typeorm28.Column)({ name: "state_id", type: "int", nullable: true })
4088
+ (0, import_typeorm30.Column)({ name: "state_id", type: "int", nullable: true })
3972
4089
  ], Job.prototype, "stateId", 2);
3973
4090
  __decorateClass([
3974
- (0, import_typeorm28.ManyToOne)(() => State),
3975
- (0, import_typeorm28.JoinColumn)({ name: "state_id" })
4091
+ (0, import_typeorm30.ManyToOne)(() => State),
4092
+ (0, import_typeorm30.JoinColumn)({ name: "state_id" })
3976
4093
  ], Job.prototype, "state", 2);
3977
4094
  __decorateClass([
3978
- (0, import_typeorm28.Column)({ name: "city_id", type: "int", nullable: true })
4095
+ (0, import_typeorm30.Column)({ name: "city_id", type: "int", nullable: true })
3979
4096
  ], Job.prototype, "cityId", 2);
3980
4097
  __decorateClass([
3981
- (0, import_typeorm28.ManyToOne)(() => City),
3982
- (0, import_typeorm28.JoinColumn)({ name: "city_id" })
4098
+ (0, import_typeorm30.ManyToOne)(() => City),
4099
+ (0, import_typeorm30.JoinColumn)({ name: "city_id" })
3983
4100
  ], Job.prototype, "city", 2);
3984
4101
  __decorateClass([
3985
- (0, import_typeorm28.Column)({ name: "job_role", type: "varchar", nullable: true })
4102
+ (0, import_typeorm30.Column)({ name: "job_role", type: "varchar", nullable: true })
3986
4103
  ], Job.prototype, "jobRole", 2);
3987
4104
  __decorateClass([
3988
- (0, import_typeorm28.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4105
+ (0, import_typeorm30.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
3989
4106
  ], Job.prototype, "jobRoleCanonicalName", 2);
3990
4107
  __decorateClass([
3991
- (0, import_typeorm28.Column)({ name: "project_name", type: "varchar", nullable: true })
4108
+ (0, import_typeorm30.Column)({ name: "project_name", type: "varchar", nullable: true })
3992
4109
  ], Job.prototype, "projectName", 2);
3993
4110
  __decorateClass([
3994
- (0, import_typeorm28.Column)({ name: "note", type: "varchar", nullable: true })
4111
+ (0, import_typeorm30.Column)({ name: "note", type: "varchar", nullable: true })
3995
4112
  ], Job.prototype, "note", 2);
3996
4113
  __decorateClass([
3997
- (0, import_typeorm28.Column)({ name: "openings", type: "integer", default: 0 })
4114
+ (0, import_typeorm30.Column)({ name: "openings", type: "integer", default: 0 })
3998
4115
  ], Job.prototype, "openings", 2);
3999
4116
  __decorateClass([
4000
- (0, import_typeorm28.Column)({
4117
+ (0, import_typeorm30.Column)({
4001
4118
  name: "location",
4002
4119
  type: "enum",
4003
4120
  enum: JobLocationEnum,
@@ -4005,7 +4122,7 @@ __decorateClass([
4005
4122
  })
4006
4123
  ], Job.prototype, "location", 2);
4007
4124
  __decorateClass([
4008
- (0, import_typeorm28.Column)({
4125
+ (0, import_typeorm30.Column)({
4009
4126
  name: "type_of_employment",
4010
4127
  type: "enum",
4011
4128
  enum: TypeOfEmploymentEnum,
@@ -4013,19 +4130,19 @@ __decorateClass([
4013
4130
  })
4014
4131
  ], Job.prototype, "typeOfEmployment", 2);
4015
4132
  __decorateClass([
4016
- (0, import_typeorm28.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4133
+ (0, import_typeorm30.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4017
4134
  ], Job.prototype, "academicQualification", 2);
4018
4135
  __decorateClass([
4019
- (0, import_typeorm28.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
4136
+ (0, import_typeorm30.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
4020
4137
  ], Job.prototype, "yearsOfExperience", 2);
4021
4138
  __decorateClass([
4022
- (0, import_typeorm28.Column)({ name: "business_industry", type: "varchar", nullable: true })
4139
+ (0, import_typeorm30.Column)({ name: "business_industry", type: "varchar", nullable: true })
4023
4140
  ], Job.prototype, "businessIndustry", 2);
4024
4141
  __decorateClass([
4025
- (0, import_typeorm28.Column)({ name: "currency", type: "varchar", default: "USD" })
4142
+ (0, import_typeorm30.Column)({ name: "currency", type: "varchar", default: "USD" })
4026
4143
  ], Job.prototype, "currency", 2);
4027
4144
  __decorateClass([
4028
- (0, import_typeorm28.Column)({
4145
+ (0, import_typeorm30.Column)({
4029
4146
  name: "expected_salary_from",
4030
4147
  type: "decimal",
4031
4148
  precision: 10,
@@ -4034,14 +4151,14 @@ __decorateClass([
4034
4151
  })
4035
4152
  ], Job.prototype, "expectedSalaryFrom", 2);
4036
4153
  __decorateClass([
4037
- (0, import_typeorm28.Column)({
4154
+ (0, import_typeorm30.Column)({
4038
4155
  name: "hide_expected_salary_from",
4039
4156
  type: "boolean",
4040
4157
  default: false
4041
4158
  })
4042
4159
  ], Job.prototype, "hideExpectedSalaryFrom", 2);
4043
4160
  __decorateClass([
4044
- (0, import_typeorm28.Column)({
4161
+ (0, import_typeorm30.Column)({
4045
4162
  name: "expected_salary_to",
4046
4163
  type: "decimal",
4047
4164
  precision: 10,
@@ -4050,32 +4167,32 @@ __decorateClass([
4050
4167
  })
4051
4168
  ], Job.prototype, "expectedSalaryTo", 2);
4052
4169
  __decorateClass([
4053
- (0, import_typeorm28.Column)({
4170
+ (0, import_typeorm30.Column)({
4054
4171
  name: "hide_expected_salary_to",
4055
4172
  type: "boolean",
4056
4173
  default: false
4057
4174
  })
4058
4175
  ], Job.prototype, "hideExpectedSalaryTo", 2);
4059
4176
  __decorateClass([
4060
- (0, import_typeorm28.Column)({ name: "years", type: "varchar", nullable: true })
4177
+ (0, import_typeorm30.Column)({ name: "years", type: "varchar", nullable: true })
4061
4178
  ], Job.prototype, "years", 2);
4062
4179
  __decorateClass([
4063
- (0, import_typeorm28.Column)({ name: "months", type: "varchar", nullable: true })
4180
+ (0, import_typeorm30.Column)({ name: "months", type: "varchar", nullable: true })
4064
4181
  ], Job.prototype, "months", 2);
4065
4182
  __decorateClass([
4066
- (0, import_typeorm28.Column)({ name: "weeks", type: "varchar", nullable: true })
4183
+ (0, import_typeorm30.Column)({ name: "weeks", type: "varchar", nullable: true })
4067
4184
  ], Job.prototype, "weeks", 2);
4068
4185
  __decorateClass([
4069
- (0, import_typeorm28.Column)({ name: "days", type: "varchar", nullable: true })
4186
+ (0, import_typeorm30.Column)({ name: "days", type: "varchar", nullable: true })
4070
4187
  ], Job.prototype, "days", 2);
4071
4188
  __decorateClass([
4072
- (0, import_typeorm28.Column)({ name: "tentative_start_date", type: "date", nullable: true })
4189
+ (0, import_typeorm30.Column)({ name: "tentative_start_date", type: "date", nullable: true })
4073
4190
  ], Job.prototype, "tentativeStartDate", 2);
4074
4191
  __decorateClass([
4075
- (0, import_typeorm28.Column)({ name: "tentative_end_date", type: "date", nullable: true })
4192
+ (0, import_typeorm30.Column)({ name: "tentative_end_date", type: "date", nullable: true })
4076
4193
  ], Job.prototype, "tentativeEndDate", 2);
4077
4194
  __decorateClass([
4078
- (0, import_typeorm28.Column)({
4195
+ (0, import_typeorm30.Column)({
4079
4196
  name: "duration_type",
4080
4197
  type: "enum",
4081
4198
  enum: DurationTypeEnum,
@@ -4083,10 +4200,10 @@ __decorateClass([
4083
4200
  })
4084
4201
  ], Job.prototype, "durationType", 2);
4085
4202
  __decorateClass([
4086
- (0, import_typeorm28.Column)({ name: "duration", type: "varchar", nullable: true })
4203
+ (0, import_typeorm30.Column)({ name: "duration", type: "varchar", nullable: true })
4087
4204
  ], Job.prototype, "duration", 2);
4088
4205
  __decorateClass([
4089
- (0, import_typeorm28.Column)({
4206
+ (0, import_typeorm30.Column)({
4090
4207
  name: "number_of_hours",
4091
4208
  type: "decimal",
4092
4209
  precision: 4,
@@ -4095,13 +4212,13 @@ __decorateClass([
4095
4212
  })
4096
4213
  ], Job.prototype, "numberOfHours", 2);
4097
4214
  __decorateClass([
4098
- (0, import_typeorm28.Column)({ name: "description", type: "varchar", nullable: true })
4215
+ (0, import_typeorm30.Column)({ name: "description", type: "varchar", nullable: true })
4099
4216
  ], Job.prototype, "description", 2);
4100
4217
  __decorateClass([
4101
- (0, import_typeorm28.Column)({ name: "additional_comment", type: "varchar", nullable: true })
4218
+ (0, import_typeorm30.Column)({ name: "additional_comment", type: "varchar", nullable: true })
4102
4219
  ], Job.prototype, "additionalComment", 2);
4103
4220
  __decorateClass([
4104
- (0, import_typeorm28.Column)({
4221
+ (0, import_typeorm30.Column)({
4105
4222
  name: "onboarding_tat",
4106
4223
  type: "varchar",
4107
4224
  length: 50,
@@ -4109,14 +4226,14 @@ __decorateClass([
4109
4226
  })
4110
4227
  ], Job.prototype, "onboardingTat", 2);
4111
4228
  __decorateClass([
4112
- (0, import_typeorm28.Column)({
4229
+ (0, import_typeorm30.Column)({
4113
4230
  name: "candidate_communication_skills",
4114
4231
  type: "varchar",
4115
4232
  nullable: true
4116
4233
  })
4117
4234
  ], Job.prototype, "candidateCommunicationSkills", 2);
4118
4235
  __decorateClass([
4119
- (0, import_typeorm28.Column)({
4236
+ (0, import_typeorm30.Column)({
4120
4237
  name: "step_completed",
4121
4238
  type: "enum",
4122
4239
  enum: Step,
@@ -4124,7 +4241,7 @@ __decorateClass([
4124
4241
  })
4125
4242
  ], Job.prototype, "stepCompleted", 2);
4126
4243
  __decorateClass([
4127
- (0, import_typeorm28.Column)({
4244
+ (0, import_typeorm30.Column)({
4128
4245
  name: "status",
4129
4246
  type: "enum",
4130
4247
  enum: JobStatusEnum,
@@ -4132,40 +4249,40 @@ __decorateClass([
4132
4249
  })
4133
4250
  ], Job.prototype, "status", 2);
4134
4251
  __decorateClass([
4135
- (0, import_typeorm28.Column)({ name: "viewed_count", type: "integer", default: 0 })
4252
+ (0, import_typeorm30.Column)({ name: "viewed_count", type: "integer", default: 0 })
4136
4253
  ], Job.prototype, "viewedCount", 2);
4137
4254
  __decorateClass([
4138
- (0, import_typeorm28.Column)({ name: "application_count", type: "integer", default: 0 })
4255
+ (0, import_typeorm30.Column)({ name: "application_count", type: "integer", default: 0 })
4139
4256
  ], Job.prototype, "applicationCount", 2);
4140
4257
  __decorateClass([
4141
- (0, import_typeorm28.Column)({ name: "is_contract_signed", type: "boolean", default: false })
4258
+ (0, import_typeorm30.Column)({ name: "is_contract_signed", type: "boolean", default: false })
4142
4259
  ], Job.prototype, "isContractSigned", 2);
4143
4260
  __decorateClass([
4144
- (0, import_typeorm28.Column)({ name: "is_interview_created", type: "boolean", default: false })
4261
+ (0, import_typeorm30.Column)({ name: "is_interview_created", type: "boolean", default: false })
4145
4262
  ], Job.prototype, "isInterviewCreated", 2);
4146
4263
  __decorateClass([
4147
- (0, import_typeorm28.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4264
+ (0, import_typeorm30.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4148
4265
  ], Job.prototype, "interviewInvites", 2);
4149
4266
  __decorateClass([
4150
- (0, import_typeorm28.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4267
+ (0, import_typeorm30.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4151
4268
  ], Job.prototype, "jobSkills", 2);
4152
4269
  __decorateClass([
4153
- (0, import_typeorm28.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
4270
+ (0, import_typeorm30.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
4154
4271
  cascade: true
4155
4272
  })
4156
4273
  ], Job.prototype, "jobApplications", 2);
4157
4274
  __decorateClass([
4158
- (0, import_typeorm28.OneToMany)(() => Interview, (interview) => interview.job, {
4275
+ (0, import_typeorm30.OneToMany)(() => Interview, (interview) => interview.job, {
4159
4276
  cascade: true
4160
4277
  })
4161
4278
  ], Job.prototype, "interviews", 2);
4162
4279
  __decorateClass([
4163
- (0, import_typeorm28.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4280
+ (0, import_typeorm30.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4164
4281
  cascade: true
4165
4282
  })
4166
4283
  ], Job.prototype, "f2fInterviews", 2);
4167
4284
  __decorateClass([
4168
- (0, import_typeorm28.OneToMany)(
4285
+ (0, import_typeorm30.OneToMany)(
4169
4286
  () => JobRecommendation,
4170
4287
  (jobRecommendation) => jobRecommendation.job,
4171
4288
  {
@@ -4174,34 +4291,39 @@ __decorateClass([
4174
4291
  )
4175
4292
  ], Job.prototype, "recommendations", 2);
4176
4293
  __decorateClass([
4177
- (0, import_typeorm28.OneToMany)(() => Contract, (contract) => contract.job, {
4294
+ (0, import_typeorm30.OneToMany)(() => Contract, (contract) => contract.job, {
4178
4295
  cascade: true
4179
4296
  })
4180
4297
  ], Job.prototype, "contracts", 2);
4181
4298
  __decorateClass([
4182
- (0, import_typeorm28.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
4299
+ (0, import_typeorm30.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
4300
+ cascade: true
4301
+ })
4302
+ ], Job.prototype, "escrowWallets", 2);
4303
+ __decorateClass([
4304
+ (0, import_typeorm30.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
4183
4305
  cascade: true
4184
4306
  })
4185
4307
  ], Job.prototype, "timesheets", 2);
4186
4308
  __decorateClass([
4187
- (0, import_typeorm28.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4309
+ (0, import_typeorm30.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4188
4310
  cascade: true
4189
4311
  })
4190
4312
  ], Job.prototype, "timesheetLine", 2);
4191
4313
  __decorateClass([
4192
- (0, import_typeorm28.OneToMany)(() => Invoice, (invoice) => invoice.job, {
4314
+ (0, import_typeorm30.OneToMany)(() => Invoice, (invoice) => invoice.job, {
4193
4315
  cascade: true
4194
4316
  })
4195
4317
  ], Job.prototype, "invoice", 2);
4196
4318
  __decorateClass([
4197
- (0, import_typeorm28.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
4319
+ (0, import_typeorm30.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
4198
4320
  ], Job.prototype, "clientCandidatePreferences", 2);
4199
4321
  Job = __decorateClass([
4200
- (0, import_typeorm28.Entity)("jobs")
4322
+ (0, import_typeorm30.Entity)("jobs")
4201
4323
  ], Job);
4202
4324
 
4203
4325
  // src/entities/bank-details.entity.ts
4204
- var import_typeorm29 = require("typeorm");
4326
+ var import_typeorm31 = require("typeorm");
4205
4327
  var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
4206
4328
  BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
4207
4329
  BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
@@ -4216,51 +4338,51 @@ var BankDetail = class extends BaseEntity {
4216
4338
  };
4217
4339
  // individual index to find bank details by user
4218
4340
  __decorateClass([
4219
- (0, import_typeorm29.Column)({ name: "user_id", type: "integer", nullable: true }),
4220
- (0, import_typeorm29.Index)()
4341
+ (0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
4342
+ (0, import_typeorm31.Index)()
4221
4343
  ], BankDetail.prototype, "userId", 2);
4222
4344
  __decorateClass([
4223
- (0, import_typeorm29.ManyToOne)(() => User, (user) => user.bankDetail),
4224
- (0, import_typeorm29.JoinColumn)({ name: "user_id" })
4345
+ (0, import_typeorm31.ManyToOne)(() => User, (user) => user.bankDetail),
4346
+ (0, import_typeorm31.JoinColumn)({ name: "user_id" })
4225
4347
  ], BankDetail.prototype, "user", 2);
4226
4348
  __decorateClass([
4227
- (0, import_typeorm29.Column)({ name: "name", type: "varchar", nullable: true })
4349
+ (0, import_typeorm31.Column)({ name: "name", type: "varchar", nullable: true })
4228
4350
  ], BankDetail.prototype, "name", 2);
4229
4351
  __decorateClass([
4230
- (0, import_typeorm29.Column)({ name: "mobile_code", type: "varchar", nullable: true })
4352
+ (0, import_typeorm31.Column)({ name: "mobile_code", type: "varchar", nullable: true })
4231
4353
  ], BankDetail.prototype, "mobileCode", 2);
4232
4354
  __decorateClass([
4233
- (0, import_typeorm29.Column)({ name: "mobile", type: "varchar", nullable: true })
4355
+ (0, import_typeorm31.Column)({ name: "mobile", type: "varchar", nullable: true })
4234
4356
  ], BankDetail.prototype, "mobile", 2);
4235
4357
  __decorateClass([
4236
- (0, import_typeorm29.Column)({ name: "email", type: "varchar" })
4358
+ (0, import_typeorm31.Column)({ name: "email", type: "varchar" })
4237
4359
  ], BankDetail.prototype, "email", 2);
4238
4360
  __decorateClass([
4239
- (0, import_typeorm29.Column)({ name: "address", type: "varchar", nullable: true })
4361
+ (0, import_typeorm31.Column)({ name: "address", type: "varchar", nullable: true })
4240
4362
  ], BankDetail.prototype, "address", 2);
4241
4363
  __decorateClass([
4242
- (0, import_typeorm29.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
4364
+ (0, import_typeorm31.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
4243
4365
  ], BankDetail.prototype, "accountNumber", 2);
4244
4366
  __decorateClass([
4245
- (0, import_typeorm29.Column)({ name: "bank_name", type: "varchar", nullable: true })
4367
+ (0, import_typeorm31.Column)({ name: "bank_name", type: "varchar", nullable: true })
4246
4368
  ], BankDetail.prototype, "bankName", 2);
4247
4369
  __decorateClass([
4248
- (0, import_typeorm29.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
4370
+ (0, import_typeorm31.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
4249
4371
  ], BankDetail.prototype, "ifscCode", 2);
4250
4372
  __decorateClass([
4251
- (0, import_typeorm29.Column)({ name: "branch_name", type: "varchar", nullable: true })
4373
+ (0, import_typeorm31.Column)({ name: "branch_name", type: "varchar", nullable: true })
4252
4374
  ], BankDetail.prototype, "branchName", 2);
4253
4375
  __decorateClass([
4254
- (0, import_typeorm29.Column)({ name: "routing_no", type: "varchar", nullable: true })
4376
+ (0, import_typeorm31.Column)({ name: "routing_no", type: "varchar", nullable: true })
4255
4377
  ], BankDetail.prototype, "routingNo", 2);
4256
4378
  __decorateClass([
4257
- (0, import_typeorm29.Column)({ name: "aba_no", type: "varchar", nullable: true })
4379
+ (0, import_typeorm31.Column)({ name: "aba_no", type: "varchar", nullable: true })
4258
4380
  ], BankDetail.prototype, "abaNumber", 2);
4259
4381
  __decorateClass([
4260
- (0, import_typeorm29.Column)({ name: "iban", type: "varchar", nullable: true })
4382
+ (0, import_typeorm31.Column)({ name: "iban", type: "varchar", nullable: true })
4261
4383
  ], BankDetail.prototype, "iban", 2);
4262
4384
  __decorateClass([
4263
- (0, import_typeorm29.Column)({
4385
+ (0, import_typeorm31.Column)({
4264
4386
  name: "account_type",
4265
4387
  type: "enum",
4266
4388
  enum: BankAccountTypeEnum,
@@ -4268,7 +4390,7 @@ __decorateClass([
4268
4390
  })
4269
4391
  ], BankDetail.prototype, "accountType", 2);
4270
4392
  __decorateClass([
4271
- (0, import_typeorm29.Column)({
4393
+ (0, import_typeorm31.Column)({
4272
4394
  name: "account_scope",
4273
4395
  type: "enum",
4274
4396
  enum: BankAccountScopeEnum,
@@ -4276,150 +4398,150 @@ __decorateClass([
4276
4398
  })
4277
4399
  ], BankDetail.prototype, "accountScope", 2);
4278
4400
  BankDetail = __decorateClass([
4279
- (0, import_typeorm29.Entity)("bank_details")
4401
+ (0, import_typeorm31.Entity)("bank_details")
4280
4402
  ], BankDetail);
4281
4403
 
4282
4404
  // src/entities/system-preference.entity.ts
4283
- var import_typeorm30 = require("typeorm");
4405
+ var import_typeorm32 = require("typeorm");
4284
4406
  var SystemPreference = class extends BaseEntity {
4285
4407
  };
4286
4408
  // individual index to find system preference by user
4287
4409
  __decorateClass([
4288
- (0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
4289
- (0, import_typeorm30.Index)()
4410
+ (0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
4411
+ (0, import_typeorm32.Index)()
4290
4412
  ], SystemPreference.prototype, "userId", 2);
4291
4413
  __decorateClass([
4292
- (0, import_typeorm30.ManyToOne)(() => User, (user) => user.systemPreference),
4293
- (0, import_typeorm30.JoinColumn)({ name: "user_id" })
4414
+ (0, import_typeorm32.ManyToOne)(() => User, (user) => user.systemPreference),
4415
+ (0, import_typeorm32.JoinColumn)({ name: "user_id" })
4294
4416
  ], SystemPreference.prototype, "user", 2);
4295
4417
  __decorateClass([
4296
- (0, import_typeorm30.Column)({ name: "key", type: "varchar", nullable: false })
4418
+ (0, import_typeorm32.Column)({ name: "key", type: "varchar", nullable: false })
4297
4419
  ], SystemPreference.prototype, "key", 2);
4298
4420
  __decorateClass([
4299
- (0, import_typeorm30.Column)({ name: "value", type: "boolean", default: false })
4421
+ (0, import_typeorm32.Column)({ name: "value", type: "boolean", default: false })
4300
4422
  ], SystemPreference.prototype, "value", 2);
4301
4423
  SystemPreference = __decorateClass([
4302
- (0, import_typeorm30.Entity)("system_preferences")
4424
+ (0, import_typeorm32.Entity)("system_preferences")
4303
4425
  ], SystemPreference);
4304
4426
 
4305
4427
  // src/entities/freelancer-experience.entity.ts
4306
- var import_typeorm31 = require("typeorm");
4428
+ var import_typeorm33 = require("typeorm");
4307
4429
  var FreelancerExperience = class extends BaseEntity {
4308
4430
  };
4309
4431
  // individual index to find experence by user
4310
4432
  __decorateClass([
4311
- (0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
4312
- (0, import_typeorm31.Index)()
4433
+ (0, import_typeorm33.Column)({ name: "user_id", type: "integer", nullable: true }),
4434
+ (0, import_typeorm33.Index)()
4313
4435
  ], FreelancerExperience.prototype, "userId", 2);
4314
4436
  __decorateClass([
4315
- (0, import_typeorm31.ManyToOne)(() => User, (user) => user.freelancerExperience),
4316
- (0, import_typeorm31.JoinColumn)({ name: "user_id" })
4437
+ (0, import_typeorm33.ManyToOne)(() => User, (user) => user.freelancerExperience),
4438
+ (0, import_typeorm33.JoinColumn)({ name: "user_id" })
4317
4439
  ], FreelancerExperience.prototype, "user", 2);
4318
4440
  __decorateClass([
4319
- (0, import_typeorm31.Column)({ name: "company_name", type: "varchar", nullable: true })
4441
+ (0, import_typeorm33.Column)({ name: "company_name", type: "varchar", nullable: true })
4320
4442
  ], FreelancerExperience.prototype, "companyName", 2);
4321
4443
  __decorateClass([
4322
- (0, import_typeorm31.Column)({ name: "designation", type: "varchar", nullable: true })
4444
+ (0, import_typeorm33.Column)({ name: "designation", type: "varchar", nullable: true })
4323
4445
  ], FreelancerExperience.prototype, "designation", 2);
4324
4446
  __decorateClass([
4325
- (0, import_typeorm31.Column)({ name: "job_duration", type: "varchar", nullable: true })
4447
+ (0, import_typeorm33.Column)({ name: "job_duration", type: "varchar", nullable: true })
4326
4448
  ], FreelancerExperience.prototype, "jobDuration", 2);
4327
4449
  __decorateClass([
4328
- (0, import_typeorm31.Column)({ name: "description", type: "varchar", nullable: true })
4450
+ (0, import_typeorm33.Column)({ name: "description", type: "varchar", nullable: true })
4329
4451
  ], FreelancerExperience.prototype, "description", 2);
4330
4452
  FreelancerExperience = __decorateClass([
4331
- (0, import_typeorm31.Entity)("freelancer_experiences")
4453
+ (0, import_typeorm33.Entity)("freelancer_experiences")
4332
4454
  ], FreelancerExperience);
4333
4455
 
4334
4456
  // src/entities/freelancer-education.entity.ts
4335
- var import_typeorm32 = require("typeorm");
4457
+ var import_typeorm34 = require("typeorm");
4336
4458
  var FreelancerEducation = class extends BaseEntity {
4337
4459
  };
4338
4460
  // individual index to find education by user
4339
4461
  __decorateClass([
4340
- (0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
4341
- (0, import_typeorm32.Index)()
4462
+ (0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
4463
+ (0, import_typeorm34.Index)()
4342
4464
  ], FreelancerEducation.prototype, "userId", 2);
4343
4465
  __decorateClass([
4344
- (0, import_typeorm32.ManyToOne)(() => User, (user) => user.freelancerEducation),
4345
- (0, import_typeorm32.JoinColumn)({ name: "user_id" })
4466
+ (0, import_typeorm34.ManyToOne)(() => User, (user) => user.freelancerEducation),
4467
+ (0, import_typeorm34.JoinColumn)({ name: "user_id" })
4346
4468
  ], FreelancerEducation.prototype, "user", 2);
4347
4469
  __decorateClass([
4348
- (0, import_typeorm32.Column)({ name: "degree", type: "varchar", nullable: true })
4470
+ (0, import_typeorm34.Column)({ name: "degree", type: "varchar", nullable: true })
4349
4471
  ], FreelancerEducation.prototype, "degree", 2);
4350
4472
  __decorateClass([
4351
- (0, import_typeorm32.Column)({ name: "university", type: "varchar", nullable: true })
4473
+ (0, import_typeorm34.Column)({ name: "university", type: "varchar", nullable: true })
4352
4474
  ], FreelancerEducation.prototype, "university", 2);
4353
4475
  __decorateClass([
4354
- (0, import_typeorm32.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
4476
+ (0, import_typeorm34.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
4355
4477
  ], FreelancerEducation.prototype, "yearOfGraduation", 2);
4356
4478
  FreelancerEducation = __decorateClass([
4357
- (0, import_typeorm32.Entity)("freelancer_educations")
4479
+ (0, import_typeorm34.Entity)("freelancer_educations")
4358
4480
  ], FreelancerEducation);
4359
4481
 
4360
4482
  // src/entities/freelancer-project.entity.ts
4361
- var import_typeorm33 = require("typeorm");
4483
+ var import_typeorm35 = require("typeorm");
4362
4484
  var FreelancerProject = class extends BaseEntity {
4363
4485
  };
4364
4486
  // individual index to find project by user
4365
4487
  __decorateClass([
4366
- (0, import_typeorm33.Column)({ name: "user_id", type: "integer", nullable: true }),
4367
- (0, import_typeorm33.Index)()
4488
+ (0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
4489
+ (0, import_typeorm35.Index)()
4368
4490
  ], FreelancerProject.prototype, "userId", 2);
4369
4491
  __decorateClass([
4370
- (0, import_typeorm33.ManyToOne)(() => User, (user) => user.freelancerProject),
4371
- (0, import_typeorm33.JoinColumn)({ name: "user_id" })
4492
+ (0, import_typeorm35.ManyToOne)(() => User, (user) => user.freelancerProject),
4493
+ (0, import_typeorm35.JoinColumn)({ name: "user_id" })
4372
4494
  ], FreelancerProject.prototype, "user", 2);
4373
4495
  __decorateClass([
4374
- (0, import_typeorm33.Column)({ name: "project_name", type: "varchar", nullable: true })
4496
+ (0, import_typeorm35.Column)({ name: "project_name", type: "varchar", nullable: true })
4375
4497
  ], FreelancerProject.prototype, "projectName", 2);
4376
4498
  __decorateClass([
4377
- (0, import_typeorm33.Column)({ name: "start_date", type: "date", nullable: true })
4499
+ (0, import_typeorm35.Column)({ name: "start_date", type: "date", nullable: true })
4378
4500
  ], FreelancerProject.prototype, "startDate", 2);
4379
4501
  __decorateClass([
4380
- (0, import_typeorm33.Column)({ name: "end_date", type: "date", nullable: true })
4502
+ (0, import_typeorm35.Column)({ name: "end_date", type: "date", nullable: true })
4381
4503
  ], FreelancerProject.prototype, "endDate", 2);
4382
4504
  __decorateClass([
4383
- (0, import_typeorm33.Column)({ name: "client_name", type: "varchar", nullable: true })
4505
+ (0, import_typeorm35.Column)({ name: "client_name", type: "varchar", nullable: true })
4384
4506
  ], FreelancerProject.prototype, "clientName", 2);
4385
4507
  __decorateClass([
4386
- (0, import_typeorm33.Column)({ name: "git_link", type: "varchar", nullable: true })
4508
+ (0, import_typeorm35.Column)({ name: "git_link", type: "varchar", nullable: true })
4387
4509
  ], FreelancerProject.prototype, "gitLink", 2);
4388
4510
  __decorateClass([
4389
- (0, import_typeorm33.Column)({ name: "description", type: "varchar", nullable: true })
4511
+ (0, import_typeorm35.Column)({ name: "description", type: "varchar", nullable: true })
4390
4512
  ], FreelancerProject.prototype, "description", 2);
4391
4513
  FreelancerProject = __decorateClass([
4392
- (0, import_typeorm33.Entity)("freelancer_projects")
4514
+ (0, import_typeorm35.Entity)("freelancer_projects")
4393
4515
  ], FreelancerProject);
4394
4516
 
4395
4517
  // src/entities/freelancer-casestudy.entity.ts
4396
- var import_typeorm34 = require("typeorm");
4518
+ var import_typeorm36 = require("typeorm");
4397
4519
  var FreelancerCaseStudy = class extends BaseEntity {
4398
4520
  };
4399
4521
  // individual index to find case study by user
4400
4522
  __decorateClass([
4401
- (0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
4402
- (0, import_typeorm34.Index)()
4523
+ (0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
4524
+ (0, import_typeorm36.Index)()
4403
4525
  ], FreelancerCaseStudy.prototype, "userId", 2);
4404
4526
  __decorateClass([
4405
- (0, import_typeorm34.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
4406
- (0, import_typeorm34.JoinColumn)({ name: "user_id" })
4527
+ (0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
4528
+ (0, import_typeorm36.JoinColumn)({ name: "user_id" })
4407
4529
  ], FreelancerCaseStudy.prototype, "user", 2);
4408
4530
  __decorateClass([
4409
- (0, import_typeorm34.Column)({ name: "project_name", type: "varchar", nullable: true })
4531
+ (0, import_typeorm36.Column)({ name: "project_name", type: "varchar", nullable: true })
4410
4532
  ], FreelancerCaseStudy.prototype, "projectName", 2);
4411
4533
  __decorateClass([
4412
- (0, import_typeorm34.Column)({ name: "case_study_link", type: "varchar", nullable: true })
4534
+ (0, import_typeorm36.Column)({ name: "case_study_link", type: "varchar", nullable: true })
4413
4535
  ], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
4414
4536
  __decorateClass([
4415
- (0, import_typeorm34.Column)({ name: "description", type: "varchar", nullable: true })
4537
+ (0, import_typeorm36.Column)({ name: "description", type: "varchar", nullable: true })
4416
4538
  ], FreelancerCaseStudy.prototype, "description", 2);
4417
4539
  FreelancerCaseStudy = __decorateClass([
4418
- (0, import_typeorm34.Entity)("freelancer_case_studies")
4540
+ (0, import_typeorm36.Entity)("freelancer_case_studies")
4419
4541
  ], FreelancerCaseStudy);
4420
4542
 
4421
4543
  // src/entities/freelancer-skill.entity.ts
4422
- var import_typeorm35 = require("typeorm");
4544
+ var import_typeorm37 = require("typeorm");
4423
4545
  var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
4424
4546
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
4425
4547
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
@@ -4429,18 +4551,18 @@ var FreelancerSkill = class extends BaseEntity {
4429
4551
  };
4430
4552
  // individual index to find core skills by user
4431
4553
  __decorateClass([
4432
- (0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
4433
- (0, import_typeorm35.Index)()
4554
+ (0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
4555
+ (0, import_typeorm37.Index)()
4434
4556
  ], FreelancerSkill.prototype, "userId", 2);
4435
4557
  __decorateClass([
4436
- (0, import_typeorm35.ManyToOne)(() => User, (user) => user.freelancerSkills),
4437
- (0, import_typeorm35.JoinColumn)({ name: "user_id" })
4558
+ (0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerSkills),
4559
+ (0, import_typeorm37.JoinColumn)({ name: "user_id" })
4438
4560
  ], FreelancerSkill.prototype, "user", 2);
4439
4561
  __decorateClass([
4440
- (0, import_typeorm35.Column)({ name: "skill_name", type: "varchar", nullable: true })
4562
+ (0, import_typeorm37.Column)({ name: "skill_name", type: "varchar", nullable: true })
4441
4563
  ], FreelancerSkill.prototype, "skillName", 2);
4442
4564
  __decorateClass([
4443
- (0, import_typeorm35.Column)({
4565
+ (0, import_typeorm37.Column)({
4444
4566
  name: "skill_category",
4445
4567
  type: "smallint",
4446
4568
  default: 1,
@@ -4448,51 +4570,51 @@ __decorateClass([
4448
4570
  })
4449
4571
  ], FreelancerSkill.prototype, "skillCategory", 2);
4450
4572
  FreelancerSkill = __decorateClass([
4451
- (0, import_typeorm35.Entity)("freelancer_skills")
4573
+ (0, import_typeorm37.Entity)("freelancer_skills")
4452
4574
  ], FreelancerSkill);
4453
4575
 
4454
4576
  // src/entities/freelancer-tool.entity.ts
4455
- var import_typeorm36 = require("typeorm");
4577
+ var import_typeorm38 = require("typeorm");
4456
4578
  var FreelancerTool = class extends BaseEntity {
4457
4579
  };
4458
4580
  // individual index to find tool by user
4459
4581
  __decorateClass([
4460
- (0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
4461
- (0, import_typeorm36.Index)()
4582
+ (0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
4583
+ (0, import_typeorm38.Index)()
4462
4584
  ], FreelancerTool.prototype, "userId", 2);
4463
4585
  __decorateClass([
4464
- (0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerTool),
4465
- (0, import_typeorm36.JoinColumn)({ name: "user_id" })
4586
+ (0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerTool),
4587
+ (0, import_typeorm38.JoinColumn)({ name: "user_id" })
4466
4588
  ], FreelancerTool.prototype, "user", 2);
4467
4589
  __decorateClass([
4468
- (0, import_typeorm36.Column)({ name: "tool_name", type: "varchar", nullable: true })
4590
+ (0, import_typeorm38.Column)({ name: "tool_name", type: "varchar", nullable: true })
4469
4591
  ], FreelancerTool.prototype, "toolName", 2);
4470
4592
  FreelancerTool = __decorateClass([
4471
- (0, import_typeorm36.Entity)("freelancer_tools")
4593
+ (0, import_typeorm38.Entity)("freelancer_tools")
4472
4594
  ], FreelancerTool);
4473
4595
 
4474
4596
  // src/entities/freelancer-framework.entity.ts
4475
- var import_typeorm37 = require("typeorm");
4597
+ var import_typeorm39 = require("typeorm");
4476
4598
  var FreelancerFramework = class extends BaseEntity {
4477
4599
  };
4478
4600
  // individual index to find framework by user
4479
4601
  __decorateClass([
4480
- (0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
4481
- (0, import_typeorm37.Index)()
4602
+ (0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
4603
+ (0, import_typeorm39.Index)()
4482
4604
  ], FreelancerFramework.prototype, "userId", 2);
4483
4605
  __decorateClass([
4484
- (0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerFramework),
4485
- (0, import_typeorm37.JoinColumn)({ name: "user_id" })
4606
+ (0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerFramework),
4607
+ (0, import_typeorm39.JoinColumn)({ name: "user_id" })
4486
4608
  ], FreelancerFramework.prototype, "user", 2);
4487
4609
  __decorateClass([
4488
- (0, import_typeorm37.Column)({ name: "framework_name", type: "varchar", nullable: true })
4610
+ (0, import_typeorm39.Column)({ name: "framework_name", type: "varchar", nullable: true })
4489
4611
  ], FreelancerFramework.prototype, "frameworkName", 2);
4490
4612
  FreelancerFramework = __decorateClass([
4491
- (0, import_typeorm37.Entity)("freelancer_frameworks")
4613
+ (0, import_typeorm39.Entity)("freelancer_frameworks")
4492
4614
  ], FreelancerFramework);
4493
4615
 
4494
4616
  // src/entities/freelancer-assessment.entity.ts
4495
- var import_typeorm38 = require("typeorm");
4617
+ var import_typeorm40 = require("typeorm");
4496
4618
  var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
4497
4619
  AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
4498
4620
  AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
@@ -4508,30 +4630,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
4508
4630
  var FreelancerAssessment = class extends BaseEntity {
4509
4631
  };
4510
4632
  __decorateClass([
4511
- (0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
4512
- (0, import_typeorm38.Index)()
4633
+ (0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
4634
+ (0, import_typeorm40.Index)()
4513
4635
  ], FreelancerAssessment.prototype, "userId", 2);
4514
4636
  __decorateClass([
4515
- (0, import_typeorm38.ManyToOne)(() => User, (user) => user.assessments),
4516
- (0, import_typeorm38.JoinColumn)({ name: "user_id" })
4637
+ (0, import_typeorm40.ManyToOne)(() => User, (user) => user.assessments),
4638
+ (0, import_typeorm40.JoinColumn)({ name: "user_id" })
4517
4639
  ], FreelancerAssessment.prototype, "user", 2);
4518
4640
  __decorateClass([
4519
- (0, import_typeorm38.Column)({ name: "interview_id", type: "varchar", nullable: true })
4641
+ (0, import_typeorm40.Column)({ name: "interview_id", type: "varchar", nullable: true })
4520
4642
  ], FreelancerAssessment.prototype, "interviewId", 2);
4521
4643
  __decorateClass([
4522
- (0, import_typeorm38.Column)({ name: "interview_link", type: "text", nullable: true })
4644
+ (0, import_typeorm40.Column)({ name: "interview_link", type: "text", nullable: true })
4523
4645
  ], FreelancerAssessment.prototype, "interviewLink", 2);
4524
4646
  __decorateClass([
4525
- (0, import_typeorm38.Column)({ name: "recording_link", type: "text", nullable: true })
4647
+ (0, import_typeorm40.Column)({ name: "recording_link", type: "text", nullable: true })
4526
4648
  ], FreelancerAssessment.prototype, "recordingLink", 2);
4527
4649
  __decorateClass([
4528
- (0, import_typeorm38.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
4650
+ (0, import_typeorm40.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
4529
4651
  ], FreelancerAssessment.prototype, "iframeResponse", 2);
4530
4652
  __decorateClass([
4531
- (0, import_typeorm38.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
4653
+ (0, import_typeorm40.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
4532
4654
  ], FreelancerAssessment.prototype, "interviewSummary", 2);
4533
4655
  __decorateClass([
4534
- (0, import_typeorm38.Column)({
4656
+ (0, import_typeorm40.Column)({
4535
4657
  name: "status",
4536
4658
  type: "enum",
4537
4659
  enum: AssessmentStatusEnum,
@@ -4539,11 +4661,11 @@ __decorateClass([
4539
4661
  })
4540
4662
  ], FreelancerAssessment.prototype, "status", 2);
4541
4663
  FreelancerAssessment = __decorateClass([
4542
- (0, import_typeorm38.Entity)("freelancer_assessments")
4664
+ (0, import_typeorm40.Entity)("freelancer_assessments")
4543
4665
  ], FreelancerAssessment);
4544
4666
 
4545
4667
  // src/entities/freelancer-declaration.entity.ts
4546
- var import_typeorm39 = require("typeorm");
4668
+ var import_typeorm41 = require("typeorm");
4547
4669
  var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
4548
4670
  DocumentType2["AADHAAR"] = "AADHAAR_CARD";
4549
4671
  DocumentType2["PASSPORT"] = "PASSPORT";
@@ -4555,15 +4677,15 @@ var FreelancerDeclaration = class extends BaseEntity {
4555
4677
  };
4556
4678
  // individual index to find declaration by user
4557
4679
  __decorateClass([
4558
- (0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
4559
- (0, import_typeorm39.Index)()
4680
+ (0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
4681
+ (0, import_typeorm41.Index)()
4560
4682
  ], FreelancerDeclaration.prototype, "userId", 2);
4561
4683
  __decorateClass([
4562
- (0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
4563
- (0, import_typeorm39.JoinColumn)({ name: "user_id" })
4684
+ (0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
4685
+ (0, import_typeorm41.JoinColumn)({ name: "user_id" })
4564
4686
  ], FreelancerDeclaration.prototype, "user", 2);
4565
4687
  __decorateClass([
4566
- (0, import_typeorm39.Column)({
4688
+ (0, import_typeorm41.Column)({
4567
4689
  name: "document_type",
4568
4690
  type: "enum",
4569
4691
  enum: DocumentType,
@@ -4571,144 +4693,144 @@ __decorateClass([
4571
4693
  })
4572
4694
  ], FreelancerDeclaration.prototype, "documentType", 2);
4573
4695
  __decorateClass([
4574
- (0, import_typeorm39.Column)({ name: "front_document_url", type: "varchar", nullable: true })
4696
+ (0, import_typeorm41.Column)({ name: "front_document_url", type: "varchar", nullable: true })
4575
4697
  ], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
4576
4698
  __decorateClass([
4577
- (0, import_typeorm39.Column)({ name: "back_document_url", type: "varchar", nullable: true })
4699
+ (0, import_typeorm41.Column)({ name: "back_document_url", type: "varchar", nullable: true })
4578
4700
  ], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
4579
4701
  __decorateClass([
4580
- (0, import_typeorm39.Column)({ name: "declaration_accepted", type: "boolean", default: false })
4702
+ (0, import_typeorm41.Column)({ name: "declaration_accepted", type: "boolean", default: false })
4581
4703
  ], FreelancerDeclaration.prototype, "declarationAccepted", 2);
4582
4704
  __decorateClass([
4583
- (0, import_typeorm39.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
4705
+ (0, import_typeorm41.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
4584
4706
  ], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
4585
4707
  FreelancerDeclaration = __decorateClass([
4586
- (0, import_typeorm39.Entity)("freelancer_declaration")
4708
+ (0, import_typeorm41.Entity)("freelancer_declaration")
4587
4709
  ], FreelancerDeclaration);
4588
4710
 
4589
4711
  // src/entities/company-members-roles.entity.ts
4590
- var import_typeorm43 = require("typeorm");
4712
+ var import_typeorm45 = require("typeorm");
4591
4713
 
4592
4714
  // src/entities/company-role.entity.ts
4593
- var import_typeorm42 = require("typeorm");
4715
+ var import_typeorm44 = require("typeorm");
4594
4716
 
4595
4717
  // src/entities/company-role-permission.entity.ts
4596
- var import_typeorm41 = require("typeorm");
4718
+ var import_typeorm43 = require("typeorm");
4597
4719
 
4598
4720
  // src/entities/permission.entity.ts
4599
- var import_typeorm40 = require("typeorm");
4721
+ var import_typeorm42 = require("typeorm");
4600
4722
  var Permission = class extends BaseEntity {
4601
4723
  };
4602
4724
  __decorateClass([
4603
- (0, import_typeorm40.Column)({ name: "name", type: "varchar", nullable: true })
4725
+ (0, import_typeorm42.Column)({ name: "name", type: "varchar", nullable: true })
4604
4726
  ], Permission.prototype, "name", 2);
4605
4727
  __decorateClass([
4606
- (0, import_typeorm40.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
4607
- (0, import_typeorm40.Index)()
4728
+ (0, import_typeorm42.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
4729
+ (0, import_typeorm42.Index)()
4608
4730
  ], Permission.prototype, "slug", 2);
4609
4731
  __decorateClass([
4610
- (0, import_typeorm40.Column)({ name: "description", type: "text", nullable: true })
4732
+ (0, import_typeorm42.Column)({ name: "description", type: "text", nullable: true })
4611
4733
  ], Permission.prototype, "description", 2);
4612
4734
  __decorateClass([
4613
- (0, import_typeorm40.Column)({ name: "is_active", type: "boolean", default: true })
4735
+ (0, import_typeorm42.Column)({ name: "is_active", type: "boolean", default: true })
4614
4736
  ], Permission.prototype, "isActive", 2);
4615
4737
  Permission = __decorateClass([
4616
- (0, import_typeorm40.Entity)("permissions")
4738
+ (0, import_typeorm42.Entity)("permissions")
4617
4739
  ], Permission);
4618
4740
 
4619
4741
  // src/entities/company-role-permission.entity.ts
4620
4742
  var CompanyRolePermission = class extends BaseEntity {
4621
4743
  };
4622
4744
  __decorateClass([
4623
- (0, import_typeorm41.Column)({ name: "company_role_id", type: "integer", nullable: true }),
4624
- (0, import_typeorm41.Index)()
4745
+ (0, import_typeorm43.Column)({ name: "company_role_id", type: "integer", nullable: true }),
4746
+ (0, import_typeorm43.Index)()
4625
4747
  ], CompanyRolePermission.prototype, "companyRoleId", 2);
4626
4748
  __decorateClass([
4627
- (0, import_typeorm41.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
4749
+ (0, import_typeorm43.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
4628
4750
  onDelete: "CASCADE"
4629
4751
  }),
4630
- (0, import_typeorm41.JoinColumn)({ name: "company_role_id" })
4752
+ (0, import_typeorm43.JoinColumn)({ name: "company_role_id" })
4631
4753
  ], CompanyRolePermission.prototype, "companyRole", 2);
4632
4754
  __decorateClass([
4633
- (0, import_typeorm41.Column)({ name: "permission_id", type: "integer" }),
4634
- (0, import_typeorm41.Index)()
4755
+ (0, import_typeorm43.Column)({ name: "permission_id", type: "integer" }),
4756
+ (0, import_typeorm43.Index)()
4635
4757
  ], CompanyRolePermission.prototype, "permissionId", 2);
4636
4758
  __decorateClass([
4637
- (0, import_typeorm41.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
4638
- (0, import_typeorm41.JoinColumn)({ name: "permission_id" })
4759
+ (0, import_typeorm43.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
4760
+ (0, import_typeorm43.JoinColumn)({ name: "permission_id" })
4639
4761
  ], CompanyRolePermission.prototype, "permission", 2);
4640
4762
  __decorateClass([
4641
- (0, import_typeorm41.Column)({ name: "assigned_by", type: "integer", nullable: true })
4763
+ (0, import_typeorm43.Column)({ name: "assigned_by", type: "integer", nullable: true })
4642
4764
  ], CompanyRolePermission.prototype, "assignedBy", 2);
4643
4765
  CompanyRolePermission = __decorateClass([
4644
- (0, import_typeorm41.Entity)("company_role_permissions")
4766
+ (0, import_typeorm43.Entity)("company_role_permissions")
4645
4767
  ], CompanyRolePermission);
4646
4768
 
4647
4769
  // src/entities/company-role.entity.ts
4648
4770
  var CompanyRole = class extends BaseEntity {
4649
4771
  };
4650
4772
  __decorateClass([
4651
- (0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
4652
- (0, import_typeorm42.Index)()
4773
+ (0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
4774
+ (0, import_typeorm44.Index)()
4653
4775
  ], CompanyRole.prototype, "userId", 2);
4654
4776
  __decorateClass([
4655
- (0, import_typeorm42.ManyToOne)(() => User, (user) => user.otps),
4656
- (0, import_typeorm42.JoinColumn)({ name: "user_id" })
4777
+ (0, import_typeorm44.ManyToOne)(() => User, (user) => user.otps),
4778
+ (0, import_typeorm44.JoinColumn)({ name: "user_id" })
4657
4779
  ], CompanyRole.prototype, "user", 2);
4658
4780
  __decorateClass([
4659
- (0, import_typeorm42.Column)({ name: "name", type: "varchar" })
4781
+ (0, import_typeorm44.Column)({ name: "name", type: "varchar" })
4660
4782
  ], CompanyRole.prototype, "name", 2);
4661
4783
  __decorateClass([
4662
- (0, import_typeorm42.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
4663
- (0, import_typeorm42.Index)()
4784
+ (0, import_typeorm44.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
4785
+ (0, import_typeorm44.Index)()
4664
4786
  ], CompanyRole.prototype, "slug", 2);
4665
4787
  __decorateClass([
4666
- (0, import_typeorm42.Column)({ name: "description", type: "text", nullable: true })
4788
+ (0, import_typeorm44.Column)({ name: "description", type: "text", nullable: true })
4667
4789
  ], CompanyRole.prototype, "description", 2);
4668
4790
  __decorateClass([
4669
- (0, import_typeorm42.Column)({ name: "is_active", type: "boolean", default: true })
4791
+ (0, import_typeorm44.Column)({ name: "is_active", type: "boolean", default: true })
4670
4792
  ], CompanyRole.prototype, "isActive", 2);
4671
4793
  __decorateClass([
4672
- (0, import_typeorm42.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
4794
+ (0, import_typeorm44.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
4673
4795
  ], CompanyRole.prototype, "rolePermissions", 2);
4674
4796
  CompanyRole = __decorateClass([
4675
- (0, import_typeorm42.Entity)("company_roles")
4797
+ (0, import_typeorm44.Entity)("company_roles")
4676
4798
  ], CompanyRole);
4677
4799
 
4678
4800
  // src/entities/company-members-roles.entity.ts
4679
4801
  var CompanyMemberRole = class extends BaseEntity {
4680
4802
  };
4681
4803
  __decorateClass([
4682
- (0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
4683
- (0, import_typeorm43.Index)()
4804
+ (0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
4805
+ (0, import_typeorm45.Index)()
4684
4806
  ], CompanyMemberRole.prototype, "userId", 2);
4685
4807
  __decorateClass([
4686
- (0, import_typeorm43.ManyToOne)(() => User),
4687
- (0, import_typeorm43.JoinColumn)({ name: "user_id" })
4808
+ (0, import_typeorm45.ManyToOne)(() => User),
4809
+ (0, import_typeorm45.JoinColumn)({ name: "user_id" })
4688
4810
  ], CompanyMemberRole.prototype, "user", 2);
4689
4811
  __decorateClass([
4690
- (0, import_typeorm43.ManyToOne)(() => CompanyRole),
4691
- (0, import_typeorm43.JoinColumn)({ name: "company_role_id" })
4812
+ (0, import_typeorm45.ManyToOne)(() => CompanyRole),
4813
+ (0, import_typeorm45.JoinColumn)({ name: "company_role_id" })
4692
4814
  ], CompanyMemberRole.prototype, "role", 2);
4693
4815
  __decorateClass([
4694
- (0, import_typeorm43.Column)({ name: "company_role_id", type: "integer", nullable: true }),
4695
- (0, import_typeorm43.Index)()
4816
+ (0, import_typeorm45.Column)({ name: "company_role_id", type: "integer", nullable: true }),
4817
+ (0, import_typeorm45.Index)()
4696
4818
  ], CompanyMemberRole.prototype, "companyRoleId", 2);
4697
4819
  __decorateClass([
4698
- (0, import_typeorm43.Column)({ name: "assigned_by", type: "integer", nullable: true })
4820
+ (0, import_typeorm45.Column)({ name: "assigned_by", type: "integer", nullable: true })
4699
4821
  ], CompanyMemberRole.prototype, "assignedBy", 2);
4700
4822
  CompanyMemberRole = __decorateClass([
4701
- (0, import_typeorm43.Entity)("company_member_roles")
4823
+ (0, import_typeorm45.Entity)("company_member_roles")
4702
4824
  ], CompanyMemberRole);
4703
4825
 
4704
4826
  // src/entities/assessment-answer.entity.ts
4705
- var import_typeorm46 = require("typeorm");
4827
+ var import_typeorm48 = require("typeorm");
4706
4828
 
4707
4829
  // src/entities/assessment-question.entity.ts
4708
- var import_typeorm45 = require("typeorm");
4830
+ var import_typeorm47 = require("typeorm");
4709
4831
 
4710
4832
  // src/entities/assessment-question-option.entity.ts
4711
- var import_typeorm44 = require("typeorm");
4833
+ var import_typeorm46 = require("typeorm");
4712
4834
  var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
4713
4835
  AnswerTypeEnum2["CORRECT"] = "CORRECT";
4714
4836
  AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
@@ -4718,21 +4840,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
4718
4840
  var AssessmetQuestionOption = class extends BaseEntity {
4719
4841
  };
4720
4842
  __decorateClass([
4721
- (0, import_typeorm44.Column)({ name: "question_id", type: "integer", nullable: true }),
4722
- (0, import_typeorm44.Index)()
4843
+ (0, import_typeorm46.Column)({ name: "question_id", type: "integer", nullable: true }),
4844
+ (0, import_typeorm46.Index)()
4723
4845
  ], AssessmetQuestionOption.prototype, "questionId", 2);
4724
4846
  __decorateClass([
4725
- (0, import_typeorm44.ManyToOne)(
4847
+ (0, import_typeorm46.ManyToOne)(
4726
4848
  () => AssessmetQuestion,
4727
4849
  (assessmentQuestion) => assessmentQuestion.options
4728
4850
  ),
4729
- (0, import_typeorm44.JoinColumn)({ name: "question_id" })
4851
+ (0, import_typeorm46.JoinColumn)({ name: "question_id" })
4730
4852
  ], AssessmetQuestionOption.prototype, "question", 2);
4731
4853
  __decorateClass([
4732
- (0, import_typeorm44.Column)({ name: "text", type: "varchar", nullable: true })
4854
+ (0, import_typeorm46.Column)({ name: "text", type: "varchar", nullable: true })
4733
4855
  ], AssessmetQuestionOption.prototype, "text", 2);
4734
4856
  __decorateClass([
4735
- (0, import_typeorm44.Column)({
4857
+ (0, import_typeorm46.Column)({
4736
4858
  name: "answer_type",
4737
4859
  type: "enum",
4738
4860
  enum: AnswerTypeEnum,
@@ -4740,13 +4862,13 @@ __decorateClass([
4740
4862
  })
4741
4863
  ], AssessmetQuestionOption.prototype, "answerType", 2);
4742
4864
  __decorateClass([
4743
- (0, import_typeorm44.Column)({ name: "is_active", type: "boolean", default: true })
4865
+ (0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: true })
4744
4866
  ], AssessmetQuestionOption.prototype, "isActive", 2);
4745
4867
  __decorateClass([
4746
- (0, import_typeorm44.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
4868
+ (0, import_typeorm46.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
4747
4869
  ], AssessmetQuestionOption.prototype, "selectedOptions", 2);
4748
4870
  AssessmetQuestionOption = __decorateClass([
4749
- (0, import_typeorm44.Entity)("assessment_question_options")
4871
+ (0, import_typeorm46.Entity)("assessment_question_options")
4750
4872
  ], AssessmetQuestionOption);
4751
4873
 
4752
4874
  // src/entities/assessment-question.entity.ts
@@ -4758,10 +4880,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
4758
4880
  var AssessmetQuestion = class extends BaseEntity {
4759
4881
  };
4760
4882
  __decorateClass([
4761
- (0, import_typeorm45.Column)({ name: "text", type: "varchar", nullable: true })
4883
+ (0, import_typeorm47.Column)({ name: "text", type: "varchar", nullable: true })
4762
4884
  ], AssessmetQuestion.prototype, "text", 2);
4763
4885
  __decorateClass([
4764
- (0, import_typeorm45.Column)({
4886
+ (0, import_typeorm47.Column)({
4765
4887
  name: "question_for",
4766
4888
  type: "enum",
4767
4889
  enum: QuestionForEnum,
@@ -4769,16 +4891,16 @@ __decorateClass([
4769
4891
  })
4770
4892
  ], AssessmetQuestion.prototype, "questionFor", 2);
4771
4893
  __decorateClass([
4772
- (0, import_typeorm45.Column)({ name: "is_active", type: "boolean", default: true })
4894
+ (0, import_typeorm47.Column)({ name: "is_active", type: "boolean", default: true })
4773
4895
  ], AssessmetQuestion.prototype, "isActive", 2);
4774
4896
  __decorateClass([
4775
- (0, import_typeorm45.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
4897
+ (0, import_typeorm47.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
4776
4898
  ], AssessmetQuestion.prototype, "options", 2);
4777
4899
  __decorateClass([
4778
- (0, import_typeorm45.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
4900
+ (0, import_typeorm47.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
4779
4901
  ], AssessmetQuestion.prototype, "answers", 2);
4780
4902
  AssessmetQuestion = __decorateClass([
4781
- (0, import_typeorm45.Entity)("assessment_questions")
4903
+ (0, import_typeorm47.Entity)("assessment_questions")
4782
4904
  ], AssessmetQuestion);
4783
4905
 
4784
4906
  // src/entities/assessment-answer.entity.ts
@@ -4791,118 +4913,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
4791
4913
  var AssessmentAnswer = class extends BaseEntity {
4792
4914
  };
4793
4915
  __decorateClass([
4794
- (0, import_typeorm46.Column)({ name: "user_id", type: "integer" }),
4795
- (0, import_typeorm46.Index)()
4916
+ (0, import_typeorm48.Column)({ name: "user_id", type: "integer" }),
4917
+ (0, import_typeorm48.Index)()
4796
4918
  ], AssessmentAnswer.prototype, "userId", 2);
4797
4919
  __decorateClass([
4798
- (0, import_typeorm46.ManyToOne)(() => User, (user) => user.assessmentAnswers),
4799
- (0, import_typeorm46.JoinColumn)({ name: "user_id" })
4920
+ (0, import_typeorm48.ManyToOne)(() => User, (user) => user.assessmentAnswers),
4921
+ (0, import_typeorm48.JoinColumn)({ name: "user_id" })
4800
4922
  ], AssessmentAnswer.prototype, "user", 2);
4801
4923
  __decorateClass([
4802
- (0, import_typeorm46.Column)({ name: "question_id", type: "integer" }),
4803
- (0, import_typeorm46.Index)()
4924
+ (0, import_typeorm48.Column)({ name: "question_id", type: "integer" }),
4925
+ (0, import_typeorm48.Index)()
4804
4926
  ], AssessmentAnswer.prototype, "questionId", 2);
4805
4927
  __decorateClass([
4806
- (0, import_typeorm46.ManyToOne)(
4928
+ (0, import_typeorm48.ManyToOne)(
4807
4929
  () => AssessmetQuestion,
4808
4930
  (assessmentQuestion) => assessmentQuestion.answers
4809
4931
  ),
4810
- (0, import_typeorm46.JoinColumn)({ name: "question_id" })
4932
+ (0, import_typeorm48.JoinColumn)({ name: "question_id" })
4811
4933
  ], AssessmentAnswer.prototype, "question", 2);
4812
4934
  __decorateClass([
4813
- (0, import_typeorm46.Column)({ name: "selected_option_id", type: "integer" }),
4814
- (0, import_typeorm46.Index)()
4935
+ (0, import_typeorm48.Column)({ name: "selected_option_id", type: "integer" }),
4936
+ (0, import_typeorm48.Index)()
4815
4937
  ], AssessmentAnswer.prototype, "selectedOptionId", 2);
4816
4938
  __decorateClass([
4817
- (0, import_typeorm46.ManyToOne)(
4939
+ (0, import_typeorm48.ManyToOne)(
4818
4940
  () => AssessmetQuestionOption,
4819
4941
  (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
4820
4942
  ),
4821
- (0, import_typeorm46.JoinColumn)({ name: "selected_option_id" })
4943
+ (0, import_typeorm48.JoinColumn)({ name: "selected_option_id" })
4822
4944
  ], AssessmentAnswer.prototype, "option", 2);
4823
4945
  __decorateClass([
4824
- (0, import_typeorm46.Column)({
4946
+ (0, import_typeorm48.Column)({
4825
4947
  name: "selected_answer_type",
4826
4948
  type: "enum",
4827
4949
  enum: SelectedAnswerTypeEnum
4828
4950
  })
4829
4951
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
4830
4952
  __decorateClass([
4831
- (0, import_typeorm46.Column)({ name: "score", type: "float" })
4953
+ (0, import_typeorm48.Column)({ name: "score", type: "float" })
4832
4954
  ], AssessmentAnswer.prototype, "score", 2);
4833
4955
  AssessmentAnswer = __decorateClass([
4834
- (0, import_typeorm46.Entity)("assessment_answers")
4956
+ (0, import_typeorm48.Entity)("assessment_answers")
4835
4957
  ], AssessmentAnswer);
4836
4958
 
4837
4959
  // src/entities/company-skill.entity.ts
4838
- var import_typeorm47 = require("typeorm");
4960
+ var import_typeorm49 = require("typeorm");
4839
4961
  var CompanySkill = class extends BaseEntity {
4840
4962
  };
4841
4963
  // individual index to find core skills by user
4842
4964
  __decorateClass([
4843
- (0, import_typeorm47.Column)({ name: "user_id", type: "integer", nullable: true }),
4844
- (0, import_typeorm47.Index)()
4965
+ (0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
4966
+ (0, import_typeorm49.Index)()
4845
4967
  ], CompanySkill.prototype, "userId", 2);
4846
4968
  __decorateClass([
4847
- (0, import_typeorm47.ManyToOne)(() => User, (user) => user.freelancerSkills),
4848
- (0, import_typeorm47.JoinColumn)({ name: "user_id" })
4969
+ (0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerSkills),
4970
+ (0, import_typeorm49.JoinColumn)({ name: "user_id" })
4849
4971
  ], CompanySkill.prototype, "user", 2);
4850
4972
  __decorateClass([
4851
- (0, import_typeorm47.Column)({ name: "skill_name", type: "varchar", nullable: true })
4973
+ (0, import_typeorm49.Column)({ name: "skill_name", type: "varchar", nullable: true })
4852
4974
  ], CompanySkill.prototype, "skillName", 2);
4853
4975
  CompanySkill = __decorateClass([
4854
- (0, import_typeorm47.Entity)("company_skills")
4976
+ (0, import_typeorm49.Entity)("company_skills")
4855
4977
  ], CompanySkill);
4856
4978
 
4857
4979
  // src/entities/admin-user-role.entity.ts
4858
- var import_typeorm51 = require("typeorm");
4980
+ var import_typeorm53 = require("typeorm");
4859
4981
 
4860
4982
  // src/entities/admin-role.entity.ts
4861
- var import_typeorm50 = require("typeorm");
4983
+ var import_typeorm52 = require("typeorm");
4862
4984
 
4863
4985
  // src/entities/admin-role-permission.entity.ts
4864
- var import_typeorm49 = require("typeorm");
4986
+ var import_typeorm51 = require("typeorm");
4865
4987
 
4866
4988
  // src/entities/admin-permission.entity.ts
4867
- var import_typeorm48 = require("typeorm");
4989
+ var import_typeorm50 = require("typeorm");
4868
4990
  var AdminPermission = class extends BaseEntity {
4869
4991
  };
4870
4992
  __decorateClass([
4871
- (0, import_typeorm48.Column)({ name: "permission_name", type: "varchar", nullable: true })
4993
+ (0, import_typeorm50.Column)({ name: "permission_name", type: "varchar", nullable: true })
4872
4994
  ], AdminPermission.prototype, "permissionName", 2);
4873
4995
  __decorateClass([
4874
- (0, import_typeorm48.Column)({
4996
+ (0, import_typeorm50.Column)({
4875
4997
  name: "permission_slug",
4876
4998
  type: "varchar",
4877
4999
  unique: true,
4878
5000
  nullable: true
4879
5001
  }),
4880
- (0, import_typeorm48.Index)()
5002
+ (0, import_typeorm50.Index)()
4881
5003
  ], AdminPermission.prototype, "permissionSlug", 2);
4882
5004
  __decorateClass([
4883
- (0, import_typeorm48.Column)({ name: "permission_description", type: "varchar", nullable: true })
5005
+ (0, import_typeorm50.Column)({ name: "permission_description", type: "varchar", nullable: true })
4884
5006
  ], AdminPermission.prototype, "permissionDescription", 2);
4885
5007
  __decorateClass([
4886
- (0, import_typeorm48.Column)({ name: "module", type: "varchar", nullable: true })
5008
+ (0, import_typeorm50.Column)({ name: "module", type: "varchar", nullable: true })
4887
5009
  ], AdminPermission.prototype, "module", 2);
4888
5010
  __decorateClass([
4889
- (0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: true })
5011
+ (0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: true })
4890
5012
  ], AdminPermission.prototype, "isActive", 2);
4891
5013
  __decorateClass([
4892
- (0, import_typeorm48.OneToMany)(
5014
+ (0, import_typeorm50.OneToMany)(
4893
5015
  () => AdminRolePermission,
4894
5016
  (adminRolePermission) => adminRolePermission.adminPermissions
4895
5017
  )
4896
5018
  ], AdminPermission.prototype, "adminRole", 2);
4897
5019
  AdminPermission = __decorateClass([
4898
- (0, import_typeorm48.Entity)("admin_permissions")
5020
+ (0, import_typeorm50.Entity)("admin_permissions")
4899
5021
  ], AdminPermission);
4900
5022
 
4901
5023
  // src/entities/admin-role-permission.entity.ts
4902
5024
  var AdminRolePermission = class extends BaseEntity {
4903
5025
  };
4904
5026
  __decorateClass([
4905
- (0, import_typeorm49.Column)({
5027
+ (0, import_typeorm51.Column)({
4906
5028
  name: "role_id",
4907
5029
  type: "int",
4908
5030
  nullable: true,
@@ -4910,11 +5032,11 @@ __decorateClass([
4910
5032
  })
4911
5033
  ], AdminRolePermission.prototype, "roleId", 2);
4912
5034
  __decorateClass([
4913
- (0, import_typeorm49.ManyToOne)(() => AdminRole),
4914
- (0, import_typeorm49.JoinColumn)({ name: "role_id" })
5035
+ (0, import_typeorm51.ManyToOne)(() => AdminRole),
5036
+ (0, import_typeorm51.JoinColumn)({ name: "role_id" })
4915
5037
  ], AdminRolePermission.prototype, "adminRole", 2);
4916
5038
  __decorateClass([
4917
- (0, import_typeorm49.Column)({
5039
+ (0, import_typeorm51.Column)({
4918
5040
  name: "permission_id",
4919
5041
  type: "int",
4920
5042
  nullable: true,
@@ -4922,47 +5044,47 @@ __decorateClass([
4922
5044
  })
4923
5045
  ], AdminRolePermission.prototype, "permissionId", 2);
4924
5046
  __decorateClass([
4925
- (0, import_typeorm49.ManyToOne)(() => AdminPermission),
4926
- (0, import_typeorm49.JoinColumn)({ name: "permission_id" })
5047
+ (0, import_typeorm51.ManyToOne)(() => AdminPermission),
5048
+ (0, import_typeorm51.JoinColumn)({ name: "permission_id" })
4927
5049
  ], AdminRolePermission.prototype, "adminPermissions", 2);
4928
5050
  AdminRolePermission = __decorateClass([
4929
- (0, import_typeorm49.Entity)("admin_role_permissions")
5051
+ (0, import_typeorm51.Entity)("admin_role_permissions")
4930
5052
  ], AdminRolePermission);
4931
5053
 
4932
5054
  // src/entities/admin-role.entity.ts
4933
5055
  var AdminRole = class extends BaseEntity {
4934
5056
  };
4935
5057
  __decorateClass([
4936
- (0, import_typeorm50.Column)({ name: "role_name", type: "varchar", nullable: true })
5058
+ (0, import_typeorm52.Column)({ name: "role_name", type: "varchar", nullable: true })
4937
5059
  ], AdminRole.prototype, "roleName", 2);
4938
5060
  __decorateClass([
4939
- (0, import_typeorm50.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
4940
- (0, import_typeorm50.Index)()
5061
+ (0, import_typeorm52.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5062
+ (0, import_typeorm52.Index)()
4941
5063
  ], AdminRole.prototype, "roleSlug", 2);
4942
5064
  __decorateClass([
4943
- (0, import_typeorm50.Column)({ name: "role_description", type: "varchar", nullable: true })
5065
+ (0, import_typeorm52.Column)({ name: "role_description", type: "varchar", nullable: true })
4944
5066
  ], AdminRole.prototype, "roleDescription", 2);
4945
5067
  __decorateClass([
4946
- (0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: true })
5068
+ (0, import_typeorm52.Column)({ name: "is_active", type: "boolean", default: true })
4947
5069
  ], AdminRole.prototype, "isActive", 2);
4948
5070
  __decorateClass([
4949
- (0, import_typeorm50.OneToMany)(
5071
+ (0, import_typeorm52.OneToMany)(
4950
5072
  () => AdminRolePermission,
4951
5073
  (addminRolePermission) => addminRolePermission.adminRole
4952
5074
  )
4953
5075
  ], AdminRole.prototype, "adminRolePermission", 2);
4954
5076
  __decorateClass([
4955
- (0, import_typeorm50.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5077
+ (0, import_typeorm52.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
4956
5078
  ], AdminRole.prototype, "userRoles", 2);
4957
5079
  AdminRole = __decorateClass([
4958
- (0, import_typeorm50.Entity)("admin_roles")
5080
+ (0, import_typeorm52.Entity)("admin_roles")
4959
5081
  ], AdminRole);
4960
5082
 
4961
5083
  // src/entities/admin-user-role.entity.ts
4962
5084
  var AdminUserRole = class extends BaseEntity {
4963
5085
  };
4964
5086
  __decorateClass([
4965
- (0, import_typeorm51.Column)({
5087
+ (0, import_typeorm53.Column)({
4966
5088
  name: "user_id",
4967
5089
  type: "int",
4968
5090
  nullable: true,
@@ -4970,11 +5092,11 @@ __decorateClass([
4970
5092
  })
4971
5093
  ], AdminUserRole.prototype, "userId", 2);
4972
5094
  __decorateClass([
4973
- (0, import_typeorm51.ManyToOne)(() => User),
4974
- (0, import_typeorm51.JoinColumn)({ name: "user_id" })
5095
+ (0, import_typeorm53.ManyToOne)(() => User),
5096
+ (0, import_typeorm53.JoinColumn)({ name: "user_id" })
4975
5097
  ], AdminUserRole.prototype, "user", 2);
4976
5098
  __decorateClass([
4977
- (0, import_typeorm51.Column)({
5099
+ (0, import_typeorm53.Column)({
4978
5100
  name: "role_id",
4979
5101
  type: "int",
4980
5102
  nullable: true,
@@ -4982,58 +5104,58 @@ __decorateClass([
4982
5104
  })
4983
5105
  ], AdminUserRole.prototype, "roleId", 2);
4984
5106
  __decorateClass([
4985
- (0, import_typeorm51.ManyToOne)(() => AdminRole),
4986
- (0, import_typeorm51.JoinColumn)({ name: "role_id" })
5107
+ (0, import_typeorm53.ManyToOne)(() => AdminRole),
5108
+ (0, import_typeorm53.JoinColumn)({ name: "role_id" })
4987
5109
  ], AdminUserRole.prototype, "adminRole", 2);
4988
5110
  AdminUserRole = __decorateClass([
4989
- (0, import_typeorm51.Entity)("admin_user_roles")
5111
+ (0, import_typeorm53.Entity)("admin_user_roles")
4990
5112
  ], AdminUserRole);
4991
5113
 
4992
5114
  // src/entities/freelancer-resume.entity.ts
4993
- var import_typeorm52 = require("typeorm");
5115
+ var import_typeorm54 = require("typeorm");
4994
5116
  var FreelancerResume = class extends BaseEntity {
4995
5117
  };
4996
5118
  // individual index to find profile by user
4997
5119
  __decorateClass([
4998
- (0, import_typeorm52.Column)({ name: "user_id", type: "integer", nullable: true }),
4999
- (0, import_typeorm52.Index)()
5120
+ (0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
5121
+ (0, import_typeorm54.Index)()
5000
5122
  ], FreelancerResume.prototype, "userId", 2);
5001
5123
  __decorateClass([
5002
- (0, import_typeorm52.ManyToOne)(() => User, (user) => user.freelancerProfile),
5003
- (0, import_typeorm52.JoinColumn)({ name: "user_id" })
5124
+ (0, import_typeorm54.ManyToOne)(() => User, (user) => user.freelancerProfile),
5125
+ (0, import_typeorm54.JoinColumn)({ name: "user_id" })
5004
5126
  ], FreelancerResume.prototype, "user", 2);
5005
5127
  __decorateClass([
5006
- (0, import_typeorm52.Column)({ name: "resume_data", type: "jsonb", nullable: true })
5128
+ (0, import_typeorm54.Column)({ name: "resume_data", type: "jsonb", nullable: true })
5007
5129
  ], FreelancerResume.prototype, "resumeData", 2);
5008
5130
  __decorateClass([
5009
- (0, import_typeorm52.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
5131
+ (0, import_typeorm54.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
5010
5132
  ], FreelancerResume.prototype, "processedResumeData", 2);
5011
5133
  FreelancerResume = __decorateClass([
5012
- (0, import_typeorm52.Entity)("freelancer_resumes")
5134
+ (0, import_typeorm54.Entity)("freelancer_resumes")
5013
5135
  ], FreelancerResume);
5014
5136
 
5015
5137
  // src/entities/signature.entity.ts
5016
- var import_typeorm53 = require("typeorm");
5138
+ var import_typeorm55 = require("typeorm");
5017
5139
  var Signature = class extends BaseEntity {
5018
5140
  };
5019
5141
  // individual index to find profile by user
5020
5142
  __decorateClass([
5021
- (0, import_typeorm53.Column)({ name: "user_id", type: "integer", nullable: true }),
5022
- (0, import_typeorm53.Index)()
5143
+ (0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
5144
+ (0, import_typeorm55.Index)()
5023
5145
  ], Signature.prototype, "userId", 2);
5024
5146
  __decorateClass([
5025
- (0, import_typeorm53.ManyToOne)(() => User, (user) => user.signatures),
5026
- (0, import_typeorm53.JoinColumn)({ name: "user_id" })
5147
+ (0, import_typeorm55.ManyToOne)(() => User, (user) => user.signatures),
5148
+ (0, import_typeorm55.JoinColumn)({ name: "user_id" })
5027
5149
  ], Signature.prototype, "user", 2);
5028
5150
  __decorateClass([
5029
- (0, import_typeorm53.Column)({ name: "signature_url", type: "text", nullable: true })
5151
+ (0, import_typeorm55.Column)({ name: "signature_url", type: "text", nullable: true })
5030
5152
  ], Signature.prototype, "signatureUrl", 2);
5031
5153
  Signature = __decorateClass([
5032
- (0, import_typeorm53.Entity)("signatures")
5154
+ (0, import_typeorm55.Entity)("signatures")
5033
5155
  ], Signature);
5034
5156
 
5035
5157
  // src/entities/dispute.entity.ts
5036
- var import_typeorm54 = require("typeorm");
5158
+ var import_typeorm56 = require("typeorm");
5037
5159
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
5038
5160
  DisputeStatusEnum2["OPEN"] = "OPEN";
5039
5161
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -5054,36 +5176,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
5054
5176
  var Dispute = class extends BaseEntity {
5055
5177
  };
5056
5178
  __decorateClass([
5057
- (0, import_typeorm54.Column)({ name: "client_id", type: "integer", nullable: true }),
5058
- (0, import_typeorm54.Index)()
5179
+ (0, import_typeorm56.Column)({ name: "client_id", type: "integer", nullable: true }),
5180
+ (0, import_typeorm56.Index)()
5059
5181
  ], Dispute.prototype, "clientId", 2);
5060
5182
  __decorateClass([
5061
- (0, import_typeorm54.ManyToOne)(() => User, (user) => user.clientDisputes),
5062
- (0, import_typeorm54.JoinColumn)({ name: "client_id" })
5183
+ (0, import_typeorm56.ManyToOne)(() => User, (user) => user.clientDisputes),
5184
+ (0, import_typeorm56.JoinColumn)({ name: "client_id" })
5063
5185
  ], Dispute.prototype, "client", 2);
5064
5186
  __decorateClass([
5065
- (0, import_typeorm54.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
5066
- (0, import_typeorm54.Index)()
5187
+ (0, import_typeorm56.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
5188
+ (0, import_typeorm56.Index)()
5067
5189
  ], Dispute.prototype, "freelancerId", 2);
5068
5190
  __decorateClass([
5069
- (0, import_typeorm54.ManyToOne)(() => User, (user) => user.freelancerDisputes),
5070
- (0, import_typeorm54.JoinColumn)({ name: "freelancer_id" })
5191
+ (0, import_typeorm56.ManyToOne)(() => User, (user) => user.freelancerDisputes),
5192
+ (0, import_typeorm56.JoinColumn)({ name: "freelancer_id" })
5071
5193
  ], Dispute.prototype, "freelancer", 2);
5072
5194
  __decorateClass([
5073
- (0, import_typeorm54.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
5195
+ (0, import_typeorm56.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
5074
5196
  ], Dispute.prototype, "disputeUniqueId", 2);
5075
5197
  __decorateClass([
5076
- (0, import_typeorm54.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
5077
- (0, import_typeorm54.Index)()
5198
+ (0, import_typeorm56.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
5199
+ (0, import_typeorm56.Index)()
5078
5200
  ], Dispute.prototype, "disputeType", 2);
5079
5201
  __decorateClass([
5080
- (0, import_typeorm54.Column)({ name: "description", type: "varchar", nullable: true })
5202
+ (0, import_typeorm56.Column)({ name: "description", type: "varchar", nullable: true })
5081
5203
  ], Dispute.prototype, "description", 2);
5082
5204
  __decorateClass([
5083
- (0, import_typeorm54.Column)({ name: "comment", type: "varchar", nullable: true })
5205
+ (0, import_typeorm56.Column)({ name: "comment", type: "varchar", nullable: true })
5084
5206
  ], Dispute.prototype, "comment", 2);
5085
5207
  __decorateClass([
5086
- (0, import_typeorm54.Column)({
5208
+ (0, import_typeorm56.Column)({
5087
5209
  name: "status",
5088
5210
  type: "enum",
5089
5211
  enum: DisputeStatusEnum,
@@ -5091,7 +5213,7 @@ __decorateClass([
5091
5213
  })
5092
5214
  ], Dispute.prototype, "status", 2);
5093
5215
  __decorateClass([
5094
- (0, import_typeorm54.Column)({
5216
+ (0, import_typeorm56.Column)({
5095
5217
  name: "initiator_type",
5096
5218
  type: "enum",
5097
5219
  enum: InitiatorTypeEnum,
@@ -5100,33 +5222,33 @@ __decorateClass([
5100
5222
  })
5101
5223
  ], Dispute.prototype, "initiatorType", 2);
5102
5224
  __decorateClass([
5103
- (0, import_typeorm54.Column)({ name: "initiator_id", type: "integer" }),
5104
- (0, import_typeorm54.Index)()
5225
+ (0, import_typeorm56.Column)({ name: "initiator_id", type: "integer" }),
5226
+ (0, import_typeorm56.Index)()
5105
5227
  ], Dispute.prototype, "initiatorId", 2);
5106
5228
  __decorateClass([
5107
- (0, import_typeorm54.ManyToOne)(() => User, (user) => user.initiatedDisputes),
5108
- (0, import_typeorm54.JoinColumn)({ name: "initiator_id" })
5229
+ (0, import_typeorm56.ManyToOne)(() => User, (user) => user.initiatedDisputes),
5230
+ (0, import_typeorm56.JoinColumn)({ name: "initiator_id" })
5109
5231
  ], Dispute.prototype, "initiator", 2);
5110
5232
  __decorateClass([
5111
- (0, import_typeorm54.Column)({ name: "respondent_id", type: "integer", nullable: true }),
5112
- (0, import_typeorm54.Index)()
5233
+ (0, import_typeorm56.Column)({ name: "respondent_id", type: "integer", nullable: true }),
5234
+ (0, import_typeorm56.Index)()
5113
5235
  ], Dispute.prototype, "respondentId", 2);
5114
5236
  __decorateClass([
5115
- (0, import_typeorm54.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
5116
- (0, import_typeorm54.JoinColumn)({ name: "respondent_id" })
5237
+ (0, import_typeorm56.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
5238
+ (0, import_typeorm56.JoinColumn)({ name: "respondent_id" })
5117
5239
  ], Dispute.prototype, "respondent", 2);
5118
5240
  __decorateClass([
5119
- (0, import_typeorm54.Column)({ name: "attachments", type: "jsonb", nullable: true })
5241
+ (0, import_typeorm56.Column)({ name: "attachments", type: "jsonb", nullable: true })
5120
5242
  ], Dispute.prototype, "attachments", 2);
5121
5243
  __decorateClass([
5122
- (0, import_typeorm54.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
5244
+ (0, import_typeorm56.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
5123
5245
  ], Dispute.prototype, "dynamicFields", 2);
5124
5246
  Dispute = __decorateClass([
5125
- (0, import_typeorm54.Entity)("disputes")
5247
+ (0, import_typeorm56.Entity)("disputes")
5126
5248
  ], Dispute);
5127
5249
 
5128
5250
  // src/entities/stripe-transaction.entity.ts
5129
- var import_typeorm55 = require("typeorm");
5251
+ var import_typeorm57 = require("typeorm");
5130
5252
  var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
5131
5253
  StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
5132
5254
  StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -5148,97 +5270,97 @@ var StripeTransaction = class extends BaseEntity {
5148
5270
  // Full Stripe session response
5149
5271
  };
5150
5272
  __decorateClass([
5151
- (0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
5152
- (0, import_typeorm55.Index)()
5273
+ (0, import_typeorm57.Column)({ name: "user_id", type: "integer", nullable: true }),
5274
+ (0, import_typeorm57.Index)()
5153
5275
  ], StripeTransaction.prototype, "userId", 2);
5154
5276
  __decorateClass([
5155
- (0, import_typeorm55.ManyToOne)(() => User, (user) => user.stripeTransactions),
5156
- (0, import_typeorm55.JoinColumn)({ name: "user_id" })
5277
+ (0, import_typeorm57.ManyToOne)(() => User, (user) => user.stripeTransactions),
5278
+ (0, import_typeorm57.JoinColumn)({ name: "user_id" })
5157
5279
  ], StripeTransaction.prototype, "user", 2);
5158
5280
  __decorateClass([
5159
- (0, import_typeorm55.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
5281
+ (0, import_typeorm57.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
5160
5282
  ], StripeTransaction.prototype, "stripeSessionId", 2);
5161
5283
  __decorateClass([
5162
- (0, import_typeorm55.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5284
+ (0, import_typeorm57.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5163
5285
  ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
5164
5286
  __decorateClass([
5165
- (0, import_typeorm55.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
5287
+ (0, import_typeorm57.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
5166
5288
  ], StripeTransaction.prototype, "stripeChargeId", 2);
5167
5289
  __decorateClass([
5168
- (0, import_typeorm55.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5290
+ (0, import_typeorm57.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5169
5291
  ], StripeTransaction.prototype, "stripeReceiptUrl", 2);
5170
5292
  __decorateClass([
5171
- (0, import_typeorm55.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5293
+ (0, import_typeorm57.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5172
5294
  ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
5173
5295
  __decorateClass([
5174
- (0, import_typeorm55.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
5296
+ (0, import_typeorm57.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
5175
5297
  ], StripeTransaction.prototype, "stripePaymentMethod", 2);
5176
5298
  __decorateClass([
5177
- (0, import_typeorm55.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
5299
+ (0, import_typeorm57.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
5178
5300
  ], StripeTransaction.prototype, "stripePaymentStatus", 2);
5179
5301
  __decorateClass([
5180
- (0, import_typeorm55.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5302
+ (0, import_typeorm57.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5181
5303
  ], StripeTransaction.prototype, "type", 2);
5182
5304
  __decorateClass([
5183
- (0, import_typeorm55.Column)({ name: "currency", type: "varchar", nullable: true })
5305
+ (0, import_typeorm57.Column)({ name: "currency", type: "varchar", nullable: true })
5184
5306
  ], StripeTransaction.prototype, "currency", 2);
5185
5307
  __decorateClass([
5186
- (0, import_typeorm55.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" })
5308
+ (0, import_typeorm57.Column)({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
5187
5309
  ], StripeTransaction.prototype, "desiredDepositCents", 2);
5188
5310
  __decorateClass([
5189
- (0, import_typeorm55.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5311
+ (0, import_typeorm57.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5190
5312
  ], StripeTransaction.prototype, "platformFeeCents", 2);
5191
5313
  __decorateClass([
5192
- (0, import_typeorm55.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5314
+ (0, import_typeorm57.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5193
5315
  ], StripeTransaction.prototype, "taxCents", 2);
5194
5316
  __decorateClass([
5195
- (0, import_typeorm55.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5317
+ (0, import_typeorm57.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5196
5318
  ], StripeTransaction.prototype, "estimatedStripeFee", 2);
5197
5319
  __decorateClass([
5198
- (0, import_typeorm55.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" })
5320
+ (0, import_typeorm57.Column)({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
5199
5321
  ], StripeTransaction.prototype, "estimatedTotalCents", 2);
5200
5322
  __decorateClass([
5201
- (0, import_typeorm55.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5323
+ (0, import_typeorm57.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5202
5324
  ], StripeTransaction.prototype, "actualStripeFee", 2);
5203
5325
  __decorateClass([
5204
- (0, import_typeorm55.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5326
+ (0, import_typeorm57.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5205
5327
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
5206
5328
  __decorateClass([
5207
- (0, import_typeorm55.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" })
5329
+ (0, import_typeorm57.Column)({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
5208
5330
  ], StripeTransaction.prototype, "netReceivedCents", 2);
5209
5331
  __decorateClass([
5210
- (0, import_typeorm55.Column)({ name: "description", type: "text", nullable: true })
5332
+ (0, import_typeorm57.Column)({ name: "description", type: "text", nullable: true })
5211
5333
  ], StripeTransaction.prototype, "description", 2);
5212
5334
  __decorateClass([
5213
- (0, import_typeorm55.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5335
+ (0, import_typeorm57.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5214
5336
  ], StripeTransaction.prototype, "status", 2);
5215
5337
  __decorateClass([
5216
- (0, import_typeorm55.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5338
+ (0, import_typeorm57.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5217
5339
  ], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
5218
5340
  __decorateClass([
5219
- (0, import_typeorm55.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
5341
+ (0, import_typeorm57.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
5220
5342
  ], StripeTransaction.prototype, "completedAt", 2);
5221
5343
  __decorateClass([
5222
- (0, import_typeorm55.Column)({ name: "billing_details", type: "jsonb", nullable: true })
5344
+ (0, import_typeorm57.Column)({ name: "billing_details", type: "jsonb", nullable: true })
5223
5345
  ], StripeTransaction.prototype, "billingDetails", 2);
5224
5346
  __decorateClass([
5225
- (0, import_typeorm55.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
5347
+ (0, import_typeorm57.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
5226
5348
  ], StripeTransaction.prototype, "paymentMethodDetails", 2);
5227
5349
  __decorateClass([
5228
- (0, import_typeorm55.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
5350
+ (0, import_typeorm57.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
5229
5351
  ], StripeTransaction.prototype, "rawSessionPayload", 2);
5230
5352
  __decorateClass([
5231
- (0, import_typeorm55.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
5353
+ (0, import_typeorm57.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
5232
5354
  ], StripeTransaction.prototype, "rawSessionResponse", 2);
5233
5355
  StripeTransaction = __decorateClass([
5234
- (0, import_typeorm55.Entity)("stripe_transactions")
5356
+ (0, import_typeorm57.Entity)("stripe_transactions")
5235
5357
  ], StripeTransaction);
5236
5358
 
5237
5359
  // src/entities/wallet.entity.ts
5238
- var import_typeorm57 = require("typeorm");
5360
+ var import_typeorm59 = require("typeorm");
5239
5361
 
5240
5362
  // src/entities/wallet-transaction.entity.ts
5241
- var import_typeorm56 = require("typeorm");
5363
+ var import_typeorm58 = require("typeorm");
5242
5364
  var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
5243
5365
  WalletTransactionTypeEnum2["CR"] = "CR";
5244
5366
  WalletTransactionTypeEnum2["DR"] = "DR";
@@ -5255,46 +5377,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
5255
5377
  var WalletTransaction = class extends BaseEntity {
5256
5378
  };
5257
5379
  __decorateClass([
5258
- (0, import_typeorm56.Column)({ name: "wallet_id", type: "integer", nullable: true }),
5259
- (0, import_typeorm56.Index)()
5380
+ (0, import_typeorm58.Column)({ name: "wallet_id", type: "integer", nullable: true }),
5381
+ (0, import_typeorm58.Index)()
5260
5382
  ], WalletTransaction.prototype, "walletId", 2);
5261
5383
  __decorateClass([
5262
- (0, import_typeorm56.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
5263
- (0, import_typeorm56.JoinColumn)({ name: "wallet_id" })
5384
+ (0, import_typeorm58.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
5385
+ (0, import_typeorm58.JoinColumn)({ name: "wallet_id" })
5264
5386
  ], WalletTransaction.prototype, "wallet", 2);
5265
5387
  __decorateClass([
5266
- (0, import_typeorm56.Column)({ name: "amount", type: "bigint", nullable: true })
5388
+ (0, import_typeorm58.Column)({ name: "amount", type: "bigint", nullable: true })
5267
5389
  ], WalletTransaction.prototype, "amount", 2);
5268
5390
  __decorateClass([
5269
- (0, import_typeorm56.Column)({ name: "balance_before", type: "bigint", nullable: true })
5391
+ (0, import_typeorm58.Column)({ name: "balance_before", type: "bigint", nullable: true })
5270
5392
  ], WalletTransaction.prototype, "balanceBefore", 2);
5271
5393
  __decorateClass([
5272
- (0, import_typeorm56.Column)({ name: "balance_after", type: "bigint", nullable: true })
5394
+ (0, import_typeorm58.Column)({ name: "balance_after", type: "bigint", nullable: true })
5273
5395
  ], WalletTransaction.prototype, "balanceAfter", 2);
5274
5396
  __decorateClass([
5275
- (0, import_typeorm56.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5397
+ (0, import_typeorm58.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5276
5398
  ], WalletTransaction.prototype, "type", 2);
5277
5399
  __decorateClass([
5278
- (0, import_typeorm56.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5400
+ (0, import_typeorm58.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5279
5401
  ], WalletTransaction.prototype, "status", 2);
5280
5402
  __decorateClass([
5281
- (0, import_typeorm56.Column)({ name: "description", type: "text", nullable: true })
5403
+ (0, import_typeorm58.Column)({ name: "description", type: "text", nullable: true })
5282
5404
  ], WalletTransaction.prototype, "description", 2);
5283
5405
  __decorateClass([
5284
- (0, import_typeorm56.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
5406
+ (0, import_typeorm58.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
5285
5407
  ], WalletTransaction.prototype, "completedAt", 2);
5286
5408
  __decorateClass([
5287
- (0, import_typeorm56.Column)({ name: "transaction_for", type: "varchar", nullable: true })
5409
+ (0, import_typeorm58.Column)({ name: "transaction_for", type: "varchar", nullable: true })
5288
5410
  ], WalletTransaction.prototype, "transactionFor", 2);
5289
5411
  __decorateClass([
5290
- (0, import_typeorm56.Column)({ name: "meta_data", type: "varchar", nullable: true })
5412
+ (0, import_typeorm58.Column)({ name: "meta_data", type: "varchar", nullable: true })
5291
5413
  ], WalletTransaction.prototype, "metaData", 2);
5292
5414
  __decorateClass([
5293
- (0, import_typeorm56.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5294
- (0, import_typeorm56.Index)()
5415
+ (0, import_typeorm58.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5416
+ (0, import_typeorm58.Index)()
5295
5417
  ], WalletTransaction.prototype, "stripeTransactionId", 2);
5296
5418
  WalletTransaction = __decorateClass([
5297
- (0, import_typeorm56.Entity)("wallet_transactions")
5419
+ (0, import_typeorm58.Entity)("wallet_transactions")
5298
5420
  ], WalletTransaction);
5299
5421
 
5300
5422
  // src/entities/wallet.entity.ts
@@ -5312,39 +5434,39 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
5312
5434
  var Wallet = class extends BaseEntity {
5313
5435
  };
5314
5436
  __decorateClass([
5315
- (0, import_typeorm57.Column)({ name: "user_id", type: "integer", nullable: true }),
5316
- (0, import_typeorm57.Index)()
5437
+ (0, import_typeorm59.Column)({ name: "user_id", type: "integer", nullable: true }),
5438
+ (0, import_typeorm59.Index)()
5317
5439
  ], Wallet.prototype, "userId", 2);
5318
5440
  __decorateClass([
5319
- (0, import_typeorm57.OneToOne)(() => User, (user) => user.wallet),
5320
- (0, import_typeorm57.JoinColumn)({ name: "user_id" })
5441
+ (0, import_typeorm59.OneToOne)(() => User, (user) => user.wallet),
5442
+ (0, import_typeorm59.JoinColumn)({ name: "user_id" })
5321
5443
  ], Wallet.prototype, "user", 2);
5322
5444
  __decorateClass([
5323
- (0, import_typeorm57.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5445
+ (0, import_typeorm59.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5324
5446
  ], Wallet.prototype, "accountType", 2);
5325
5447
  __decorateClass([
5326
- (0, import_typeorm57.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
5448
+ (0, import_typeorm59.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
5327
5449
  ], Wallet.prototype, "stripeAccountId", 2);
5328
5450
  __decorateClass([
5329
- (0, import_typeorm57.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
5451
+ (0, import_typeorm59.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
5330
5452
  ], Wallet.prototype, "stripeCustomerId", 2);
5331
5453
  __decorateClass([
5332
- (0, import_typeorm57.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" })
5454
+ (0, import_typeorm59.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
5333
5455
  ], Wallet.prototype, "walletBalance", 2);
5334
5456
  __decorateClass([
5335
- (0, import_typeorm57.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" })
5457
+ (0, import_typeorm59.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
5336
5458
  ], Wallet.prototype, "walletBalanceCents", 2);
5337
5459
  __decorateClass([
5338
- (0, import_typeorm57.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5460
+ (0, import_typeorm59.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5339
5461
  ], Wallet.prototype, "onboardingStatus", 2);
5340
5462
  __decorateClass([
5341
- (0, import_typeorm57.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
5463
+ (0, import_typeorm59.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
5342
5464
  ], Wallet.prototype, "stripeMetadata", 2);
5343
5465
  __decorateClass([
5344
- (0, import_typeorm57.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5466
+ (0, import_typeorm59.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5345
5467
  ], Wallet.prototype, "walletTransactions", 2);
5346
5468
  Wallet = __decorateClass([
5347
- (0, import_typeorm57.Entity)("wallets")
5469
+ (0, import_typeorm59.Entity)("wallets")
5348
5470
  ], Wallet);
5349
5471
 
5350
5472
  // src/entities/user.entity.ts
@@ -5372,51 +5494,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
5372
5494
  var User = class extends BaseEntity {
5373
5495
  };
5374
5496
  __decorateClass([
5375
- (0, import_typeorm58.Column)({ name: "unique_id", type: "varchar", unique: true })
5497
+ (0, import_typeorm60.Column)({ name: "unique_id", type: "varchar", unique: true })
5376
5498
  ], User.prototype, "uniqueId", 2);
5377
5499
  __decorateClass([
5378
- (0, import_typeorm58.Column)({ name: "parent_id", type: "integer", nullable: true }),
5379
- (0, import_typeorm58.Index)()
5500
+ (0, import_typeorm60.Column)({ name: "parent_id", type: "integer", nullable: true }),
5501
+ (0, import_typeorm60.Index)()
5380
5502
  ], User.prototype, "parentId", 2);
5381
5503
  __decorateClass([
5382
- (0, import_typeorm58.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
5383
- (0, import_typeorm58.JoinColumn)({ name: "parent_id" })
5504
+ (0, import_typeorm60.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
5505
+ (0, import_typeorm60.JoinColumn)({ name: "parent_id" })
5384
5506
  ], User.prototype, "parent", 2);
5385
5507
  __decorateClass([
5386
- (0, import_typeorm58.OneToMany)(() => User, (user) => user.parent)
5508
+ (0, import_typeorm60.OneToMany)(() => User, (user) => user.parent)
5387
5509
  ], User.prototype, "children", 2);
5388
5510
  __decorateClass([
5389
- (0, import_typeorm58.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
5511
+ (0, import_typeorm60.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
5390
5512
  ], User.prototype, "username", 2);
5391
5513
  __decorateClass([
5392
- (0, import_typeorm58.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
5514
+ (0, import_typeorm60.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
5393
5515
  ], User.prototype, "firstName", 2);
5394
5516
  __decorateClass([
5395
- (0, import_typeorm58.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
5517
+ (0, import_typeorm60.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
5396
5518
  ], User.prototype, "lastName", 2);
5397
5519
  __decorateClass([
5398
- (0, import_typeorm58.Column)({ name: "date_of_birth", type: "date", nullable: true })
5520
+ (0, import_typeorm60.Column)({ name: "date_of_birth", type: "date", nullable: true })
5399
5521
  ], User.prototype, "dateOfBirth", 2);
5400
5522
  __decorateClass([
5401
- (0, import_typeorm58.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
5523
+ (0, import_typeorm60.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
5402
5524
  ], User.prototype, "gender", 2);
5403
5525
  __decorateClass([
5404
- (0, import_typeorm58.Column)({ name: "profile_picture_url", type: "text", nullable: true })
5526
+ (0, import_typeorm60.Column)({ name: "profile_picture_url", type: "text", nullable: true })
5405
5527
  ], User.prototype, "profilePictureUrl", 2);
5406
5528
  __decorateClass([
5407
- (0, import_typeorm58.Column)({ name: "email", type: "varchar", unique: true })
5529
+ (0, import_typeorm60.Column)({ name: "email", type: "varchar", unique: true })
5408
5530
  ], User.prototype, "email", 2);
5409
5531
  __decorateClass([
5410
- (0, import_typeorm58.Column)({ name: "mobile_code", type: "varchar", nullable: true })
5532
+ (0, import_typeorm60.Column)({ name: "mobile_code", type: "varchar", nullable: true })
5411
5533
  ], User.prototype, "mobileCode", 2);
5412
5534
  __decorateClass([
5413
- (0, import_typeorm58.Column)({ name: "mobile", type: "varchar", nullable: true })
5535
+ (0, import_typeorm60.Column)({ name: "mobile", type: "varchar", nullable: true })
5414
5536
  ], User.prototype, "mobile", 2);
5415
5537
  __decorateClass([
5416
- (0, import_typeorm58.Column)({ name: "password", type: "varchar", nullable: true })
5538
+ (0, import_typeorm60.Column)({ name: "password", type: "varchar", nullable: true })
5417
5539
  ], User.prototype, "password", 2);
5418
5540
  __decorateClass([
5419
- (0, import_typeorm58.Column)({
5541
+ (0, import_typeorm60.Column)({
5420
5542
  name: "account_type",
5421
5543
  type: "enum",
5422
5544
  enum: AccountType,
@@ -5424,7 +5546,7 @@ __decorateClass([
5424
5546
  })
5425
5547
  ], User.prototype, "accountType", 2);
5426
5548
  __decorateClass([
5427
- (0, import_typeorm58.Column)({
5549
+ (0, import_typeorm60.Column)({
5428
5550
  name: "account_status",
5429
5551
  type: "enum",
5430
5552
  enum: AccountStatus,
@@ -5432,42 +5554,42 @@ __decorateClass([
5432
5554
  })
5433
5555
  ], User.prototype, "accountStatus", 2);
5434
5556
  __decorateClass([
5435
- (0, import_typeorm58.Column)({ name: "is_email_verified", type: "boolean", default: false })
5557
+ (0, import_typeorm60.Column)({ name: "is_email_verified", type: "boolean", default: false })
5436
5558
  ], User.prototype, "isEmailVerified", 2);
5437
5559
  __decorateClass([
5438
- (0, import_typeorm58.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
5560
+ (0, import_typeorm60.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
5439
5561
  ], User.prototype, "isMobileVerified", 2);
5440
5562
  __decorateClass([
5441
- (0, import_typeorm58.Column)({ name: "is_social", type: "boolean", default: false })
5563
+ (0, import_typeorm60.Column)({ name: "is_social", type: "boolean", default: false })
5442
5564
  ], User.prototype, "isSocial", 2);
5443
5565
  __decorateClass([
5444
- (0, import_typeorm58.Column)({
5566
+ (0, import_typeorm60.Column)({
5445
5567
  name: "last_login_at",
5446
5568
  type: "timestamp with time zone",
5447
5569
  nullable: true
5448
5570
  })
5449
5571
  ], User.prototype, "lastLoginAt", 2);
5450
5572
  __decorateClass([
5451
- (0, import_typeorm58.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
5573
+ (0, import_typeorm60.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
5452
5574
  ], User.prototype, "lastLoginIp", 2);
5453
5575
  __decorateClass([
5454
- (0, import_typeorm58.Column)({ name: "reset_token", type: "varchar", nullable: true })
5576
+ (0, import_typeorm60.Column)({ name: "reset_token", type: "varchar", nullable: true })
5455
5577
  ], User.prototype, "resetToken", 2);
5456
5578
  __decorateClass([
5457
- (0, import_typeorm58.Column)({
5579
+ (0, import_typeorm60.Column)({
5458
5580
  name: "reset_token_expire_at",
5459
5581
  type: "timestamp with time zone",
5460
5582
  nullable: true
5461
5583
  })
5462
5584
  ], User.prototype, "resetTokenExpireAt", 2);
5463
5585
  __decorateClass([
5464
- (0, import_typeorm58.Column)({ name: "set_password_token", type: "varchar", nullable: true })
5586
+ (0, import_typeorm60.Column)({ name: "set_password_token", type: "varchar", nullable: true })
5465
5587
  ], User.prototype, "setPasswordToken", 2);
5466
5588
  __decorateClass([
5467
- (0, import_typeorm58.OneToMany)(() => RefreshToken, (token) => token.user)
5589
+ (0, import_typeorm60.OneToMany)(() => RefreshToken, (token) => token.user)
5468
5590
  ], User.prototype, "refreshTokens", 2);
5469
5591
  __decorateClass([
5470
- (0, import_typeorm58.Column)({
5592
+ (0, import_typeorm60.Column)({
5471
5593
  name: "provider",
5472
5594
  type: "enum",
5473
5595
  enum: Provider,
@@ -5476,199 +5598,205 @@ __decorateClass([
5476
5598
  })
5477
5599
  ], User.prototype, "provider", 2);
5478
5600
  __decorateClass([
5479
- (0, import_typeorm58.Column)({ name: "provider_token", type: "varchar", nullable: true })
5601
+ (0, import_typeorm60.Column)({ name: "provider_token", type: "varchar", nullable: true })
5480
5602
  ], User.prototype, "providerToken", 2);
5481
5603
  __decorateClass([
5482
- (0, import_typeorm58.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
5604
+ (0, import_typeorm60.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
5483
5605
  ], User.prototype, "linkedInId", 2);
5484
5606
  __decorateClass([
5485
- (0, import_typeorm58.Column)({ name: "google_id", type: "varchar", nullable: true })
5607
+ (0, import_typeorm60.Column)({ name: "google_id", type: "varchar", nullable: true })
5486
5608
  ], User.prototype, "googleId", 2);
5487
5609
  __decorateClass([
5488
- (0, import_typeorm58.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
5610
+ (0, import_typeorm60.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
5489
5611
  ], User.prototype, "gitLabsId", 2);
5490
5612
  __decorateClass([
5491
- (0, import_typeorm58.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
5613
+ (0, import_typeorm60.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
5492
5614
  ], User.prototype, "onBoardedBy", 2);
5493
5615
  __decorateClass([
5494
- (0, import_typeorm58.OneToMany)(() => Otp, (otp) => otp.user)
5616
+ (0, import_typeorm60.OneToMany)(() => Otp, (otp) => otp.user)
5495
5617
  ], User.prototype, "otps", 2);
5496
5618
  __decorateClass([
5497
- (0, import_typeorm58.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
5619
+ (0, import_typeorm60.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
5498
5620
  ], User.prototype, "senseloafLogs", 2);
5499
5621
  __decorateClass([
5500
- (0, import_typeorm58.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
5622
+ (0, import_typeorm60.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
5501
5623
  ], User.prototype, "companyProfile", 2);
5502
5624
  __decorateClass([
5503
- (0, import_typeorm58.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
5625
+ (0, import_typeorm60.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
5504
5626
  ], User.prototype, "companySkills", 2);
5505
5627
  __decorateClass([
5506
- (0, import_typeorm58.OneToMany)(
5628
+ (0, import_typeorm60.OneToMany)(
5507
5629
  () => CompanyMemberRole,
5508
5630
  (companyMemberRole) => companyMemberRole.user
5509
5631
  )
5510
5632
  ], User.prototype, "companyMemberRoles", 2);
5511
5633
  __decorateClass([
5512
- (0, import_typeorm58.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
5634
+ (0, import_typeorm60.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
5513
5635
  ], User.prototype, "companyAiInterview", 2);
5514
5636
  __decorateClass([
5515
- (0, import_typeorm58.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
5637
+ (0, import_typeorm60.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
5516
5638
  ], User.prototype, "clientF2FInterviews", 2);
5517
5639
  __decorateClass([
5518
- (0, import_typeorm58.OneToOne)(
5640
+ (0, import_typeorm60.OneToOne)(
5519
5641
  () => FreelancerProfile,
5520
5642
  (freelancerProfile) => freelancerProfile.user
5521
5643
  )
5522
5644
  ], User.prototype, "freelancerProfile", 2);
5523
5645
  __decorateClass([
5524
- (0, import_typeorm58.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
5646
+ (0, import_typeorm60.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
5525
5647
  ], User.prototype, "freelancerResume", 2);
5526
5648
  __decorateClass([
5527
- (0, import_typeorm58.OneToMany)(
5649
+ (0, import_typeorm60.OneToMany)(
5528
5650
  () => FreelancerAssessment,
5529
5651
  (freelancerAssessment) => freelancerAssessment.user
5530
5652
  )
5531
5653
  ], User.prototype, "assessments", 2);
5532
5654
  __decorateClass([
5533
- (0, import_typeorm58.OneToMany)(
5655
+ (0, import_typeorm60.OneToMany)(
5534
5656
  () => AssessmentAnswer,
5535
5657
  (assessmentAnswer) => assessmentAnswer.user
5536
5658
  )
5537
5659
  ], User.prototype, "assessmentAnswers", 2);
5538
5660
  __decorateClass([
5539
- (0, import_typeorm58.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
5661
+ (0, import_typeorm60.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
5540
5662
  ], User.prototype, "freelancerSkills", 2);
5541
5663
  __decorateClass([
5542
- (0, import_typeorm58.OneToMany)(
5664
+ (0, import_typeorm60.OneToMany)(
5543
5665
  () => FreelancerExperience,
5544
5666
  (freelancerExperience) => freelancerExperience.user
5545
5667
  )
5546
5668
  ], User.prototype, "freelancerExperience", 2);
5547
5669
  __decorateClass([
5548
- (0, import_typeorm58.OneToMany)(
5670
+ (0, import_typeorm60.OneToMany)(
5549
5671
  () => FreelancerEducation,
5550
5672
  (freelancerEducation) => freelancerEducation.user
5551
5673
  )
5552
5674
  ], User.prototype, "freelancerEducation", 2);
5553
5675
  __decorateClass([
5554
- (0, import_typeorm58.OneToMany)(
5676
+ (0, import_typeorm60.OneToMany)(
5555
5677
  () => FreelancerProject,
5556
5678
  (freelancerProject) => freelancerProject.user
5557
5679
  )
5558
5680
  ], User.prototype, "freelancerProject", 2);
5559
5681
  __decorateClass([
5560
- (0, import_typeorm58.OneToMany)(
5682
+ (0, import_typeorm60.OneToMany)(
5561
5683
  () => FreelancerCaseStudy,
5562
5684
  (freelancerCaseStudy) => freelancerCaseStudy.user
5563
5685
  )
5564
5686
  ], User.prototype, "freelancerCaseStudy", 2);
5565
5687
  __decorateClass([
5566
- (0, import_typeorm58.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
5688
+ (0, import_typeorm60.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
5567
5689
  ], User.prototype, "freelancerTool", 2);
5568
5690
  __decorateClass([
5569
- (0, import_typeorm58.OneToMany)(
5691
+ (0, import_typeorm60.OneToMany)(
5570
5692
  () => FreelancerFramework,
5571
5693
  (freelancerFramework) => freelancerFramework.user
5572
5694
  )
5573
5695
  ], User.prototype, "freelancerFramework", 2);
5574
5696
  __decorateClass([
5575
- (0, import_typeorm58.OneToOne)(
5697
+ (0, import_typeorm60.OneToOne)(
5576
5698
  () => FreelancerDeclaration,
5577
5699
  (freelancerDeclaration) => freelancerDeclaration.user
5578
5700
  )
5579
5701
  ], User.prototype, "freelancerDeclaration", 2);
5580
5702
  __decorateClass([
5581
- (0, import_typeorm58.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
5703
+ (0, import_typeorm60.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
5582
5704
  ], User.prototype, "freelancerAiInterview", 2);
5583
5705
  __decorateClass([
5584
- (0, import_typeorm58.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
5706
+ (0, import_typeorm60.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
5585
5707
  ], User.prototype, "freelancerF2FInterviews", 2);
5586
5708
  __decorateClass([
5587
- (0, import_typeorm58.OneToMany)(
5709
+ (0, import_typeorm60.OneToMany)(
5588
5710
  () => F2fInterviewRescheduleRequest,
5589
5711
  (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
5590
5712
  )
5591
5713
  ], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
5592
5714
  __decorateClass([
5593
- (0, import_typeorm58.OneToMany)(() => Job, (job) => job.user)
5715
+ (0, import_typeorm60.OneToMany)(() => Job, (job) => job.user)
5594
5716
  ], User.prototype, "jobs", 2);
5595
5717
  __decorateClass([
5596
- (0, import_typeorm58.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
5718
+ (0, import_typeorm60.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
5597
5719
  ], User.prototype, "jobApplications", 2);
5598
5720
  __decorateClass([
5599
- (0, import_typeorm58.OneToMany)(() => Interview, (interview) => interview.user)
5721
+ (0, import_typeorm60.OneToMany)(() => Interview, (interview) => interview.user)
5600
5722
  ], User.prototype, "interviews", 2);
5601
5723
  __decorateClass([
5602
- (0, import_typeorm58.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
5724
+ (0, import_typeorm60.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
5603
5725
  ], User.prototype, "bankDetail", 2);
5604
5726
  __decorateClass([
5605
- (0, import_typeorm58.OneToMany)(
5727
+ (0, import_typeorm60.OneToMany)(
5606
5728
  () => SystemPreference,
5607
5729
  (systemPreference) => systemPreference.user
5608
5730
  )
5609
5731
  ], User.prototype, "systemPreference", 2);
5610
5732
  __decorateClass([
5611
- (0, import_typeorm58.OneToMany)(() => Rating, (rating) => rating.reviewer)
5733
+ (0, import_typeorm60.OneToMany)(() => Rating, (rating) => rating.reviewer)
5612
5734
  ], User.prototype, "givenRatings", 2);
5613
5735
  __decorateClass([
5614
- (0, import_typeorm58.OneToMany)(() => Rating, (rating) => rating.reviewee)
5736
+ (0, import_typeorm60.OneToMany)(() => Rating, (rating) => rating.reviewee)
5615
5737
  ], User.prototype, "receivedRatings", 2);
5616
5738
  __decorateClass([
5617
- (0, import_typeorm58.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
5739
+ (0, import_typeorm60.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
5618
5740
  ], User.prototype, "adminUserRoles", 2);
5619
5741
  __decorateClass([
5620
- (0, import_typeorm58.OneToMany)(() => Contract, (contract) => contract.client)
5742
+ (0, import_typeorm60.OneToMany)(() => Contract, (contract) => contract.client)
5621
5743
  ], User.prototype, "clientContracts", 2);
5622
5744
  __decorateClass([
5623
- (0, import_typeorm58.OneToMany)(() => Contract, (contract) => contract.freelancer)
5745
+ (0, import_typeorm60.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
5746
+ ], User.prototype, "clientEscrowWallets", 2);
5747
+ __decorateClass([
5748
+ (0, import_typeorm60.OneToMany)(() => Contract, (contract) => contract.freelancer)
5624
5749
  ], User.prototype, "freelancerContracts", 2);
5625
5750
  __decorateClass([
5626
- (0, import_typeorm58.OneToOne)(() => Signature, (signature) => signature.user)
5751
+ (0, import_typeorm60.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
5752
+ ], User.prototype, "freelancerEscrowWallets", 2);
5753
+ __decorateClass([
5754
+ (0, import_typeorm60.OneToOne)(() => Signature, (signature) => signature.user)
5627
5755
  ], User.prototype, "signatures", 2);
5628
5756
  __decorateClass([
5629
- (0, import_typeorm58.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
5757
+ (0, import_typeorm60.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
5630
5758
  ], User.prototype, "clientTimesheets", 2);
5631
5759
  __decorateClass([
5632
- (0, import_typeorm58.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
5760
+ (0, import_typeorm60.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
5633
5761
  ], User.prototype, "freelancerTimesheets", 2);
5634
5762
  __decorateClass([
5635
- (0, import_typeorm58.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
5763
+ (0, import_typeorm60.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
5636
5764
  ], User.prototype, "clientTimesheetLine", 2);
5637
5765
  __decorateClass([
5638
- (0, import_typeorm58.OneToMany)(() => Invoice, (invoice) => invoice.client)
5766
+ (0, import_typeorm60.OneToMany)(() => Invoice, (invoice) => invoice.client)
5639
5767
  ], User.prototype, "clientInvoice", 2);
5640
5768
  __decorateClass([
5641
- (0, import_typeorm58.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
5769
+ (0, import_typeorm60.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
5642
5770
  ], User.prototype, "freelancerTimesheetLine", 2);
5643
5771
  __decorateClass([
5644
- (0, import_typeorm58.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
5772
+ (0, import_typeorm60.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
5645
5773
  ], User.prototype, "freelancerInvoice", 2);
5646
5774
  __decorateClass([
5647
- (0, import_typeorm58.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
5775
+ (0, import_typeorm60.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
5648
5776
  ], User.prototype, "clientPreferencesGiven", 2);
5649
5777
  __decorateClass([
5650
- (0, import_typeorm58.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
5778
+ (0, import_typeorm60.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
5651
5779
  ], User.prototype, "clientPreferencesReceived", 2);
5652
5780
  __decorateClass([
5653
- (0, import_typeorm58.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
5781
+ (0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
5654
5782
  ], User.prototype, "initiatedDisputes", 2);
5655
5783
  __decorateClass([
5656
- (0, import_typeorm58.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
5784
+ (0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
5657
5785
  ], User.prototype, "respondentDisputes", 2);
5658
5786
  __decorateClass([
5659
- (0, import_typeorm58.OneToOne)(() => Wallet, (wallet) => wallet.user)
5787
+ (0, import_typeorm60.OneToOne)(() => Wallet, (wallet) => wallet.user)
5660
5788
  ], User.prototype, "wallet", 2);
5661
5789
  __decorateClass([
5662
- (0, import_typeorm58.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
5790
+ (0, import_typeorm60.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
5663
5791
  ], User.prototype, "stripeTransactions", 2);
5664
5792
  __decorateClass([
5665
- (0, import_typeorm58.OneToMany)(() => Dispute, (dispute) => dispute.client)
5793
+ (0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.client)
5666
5794
  ], User.prototype, "clientDisputes", 2);
5667
5795
  __decorateClass([
5668
- (0, import_typeorm58.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
5796
+ (0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
5669
5797
  ], User.prototype, "freelancerDisputes", 2);
5670
5798
  User = __decorateClass([
5671
- (0, import_typeorm58.Entity)("users")
5799
+ (0, import_typeorm60.Entity)("users")
5672
5800
  ], User);
5673
5801
 
5674
5802
  // src/entities/rating.entity.ts
@@ -5680,36 +5808,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
5680
5808
  var Rating = class extends BaseEntity {
5681
5809
  };
5682
5810
  __decorateClass([
5683
- (0, import_typeorm59.Column)({ name: "reviewer_id", type: "integer" }),
5684
- (0, import_typeorm59.Index)()
5811
+ (0, import_typeorm61.Column)({ name: "reviewer_id", type: "integer" }),
5812
+ (0, import_typeorm61.Index)()
5685
5813
  ], Rating.prototype, "reviewer_id", 2);
5686
5814
  __decorateClass([
5687
- (0, import_typeorm59.ManyToOne)(() => User, { onDelete: "CASCADE" }),
5688
- (0, import_typeorm59.JoinColumn)({ name: "reviewer_id" })
5815
+ (0, import_typeorm61.ManyToOne)(() => User, { onDelete: "CASCADE" }),
5816
+ (0, import_typeorm61.JoinColumn)({ name: "reviewer_id" })
5689
5817
  ], Rating.prototype, "reviewer", 2);
5690
5818
  __decorateClass([
5691
- (0, import_typeorm59.Column)({ name: "reviewee_id", type: "integer" }),
5692
- (0, import_typeorm59.Index)()
5819
+ (0, import_typeorm61.Column)({ name: "reviewee_id", type: "integer" }),
5820
+ (0, import_typeorm61.Index)()
5693
5821
  ], Rating.prototype, "reviewee_id", 2);
5694
5822
  __decorateClass([
5695
- (0, import_typeorm59.ManyToOne)(() => User, { onDelete: "CASCADE" }),
5696
- (0, import_typeorm59.JoinColumn)({ name: "reviewee_id" })
5823
+ (0, import_typeorm61.ManyToOne)(() => User, { onDelete: "CASCADE" }),
5824
+ (0, import_typeorm61.JoinColumn)({ name: "reviewee_id" })
5697
5825
  ], Rating.prototype, "reviewee", 2);
5698
5826
  __decorateClass([
5699
- (0, import_typeorm59.Column)({
5827
+ (0, import_typeorm61.Column)({
5700
5828
  type: "enum",
5701
5829
  enum: RatingTypeEnum,
5702
5830
  nullable: true
5703
5831
  })
5704
5832
  ], Rating.prototype, "ratingType", 2);
5705
5833
  __decorateClass([
5706
- (0, import_typeorm59.Column)({ type: "integer", nullable: true })
5834
+ (0, import_typeorm61.Column)({ type: "integer", nullable: true })
5707
5835
  ], Rating.prototype, "rating", 2);
5708
5836
  __decorateClass([
5709
- (0, import_typeorm59.Column)({ type: "text", nullable: true })
5837
+ (0, import_typeorm61.Column)({ type: "text", nullable: true })
5710
5838
  ], Rating.prototype, "review", 2);
5711
5839
  Rating = __decorateClass([
5712
- (0, import_typeorm59.Entity)("ratings")
5840
+ (0, import_typeorm61.Entity)("ratings")
5713
5841
  ], Rating);
5714
5842
 
5715
5843
  // src/modules/rating/dto/add.rating.dto.ts
@@ -7568,11 +7696,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
7568
7696
  };
7569
7697
 
7570
7698
  // src/entities/sequence-generator.entity.ts
7571
- var import_typeorm60 = require("typeorm");
7699
+ var import_typeorm62 = require("typeorm");
7572
7700
  var SequenceGenerator = class extends BaseEntity {
7573
7701
  };
7574
7702
  __decorateClass([
7575
- (0, import_typeorm60.Column)({
7703
+ (0, import_typeorm62.Column)({
7576
7704
  name: "module",
7577
7705
  type: "varchar",
7578
7706
  length: 50,
@@ -7581,7 +7709,7 @@ __decorateClass([
7581
7709
  })
7582
7710
  ], SequenceGenerator.prototype, "module", 2);
7583
7711
  __decorateClass([
7584
- (0, import_typeorm60.Column)({
7712
+ (0, import_typeorm62.Column)({
7585
7713
  name: "prefix",
7586
7714
  type: "varchar",
7587
7715
  length: 10,
@@ -7590,7 +7718,7 @@ __decorateClass([
7590
7718
  })
7591
7719
  ], SequenceGenerator.prototype, "prefix", 2);
7592
7720
  __decorateClass([
7593
- (0, import_typeorm60.Column)({
7721
+ (0, import_typeorm62.Column)({
7594
7722
  name: "last_sequence",
7595
7723
  type: "int",
7596
7724
  nullable: false,
@@ -7598,7 +7726,7 @@ __decorateClass([
7598
7726
  })
7599
7727
  ], SequenceGenerator.prototype, "lastSequence", 2);
7600
7728
  __decorateClass([
7601
- (0, import_typeorm60.Column)({
7729
+ (0, import_typeorm62.Column)({
7602
7730
  name: "year",
7603
7731
  type: "int",
7604
7732
  nullable: true,
@@ -7606,11 +7734,11 @@ __decorateClass([
7606
7734
  })
7607
7735
  ], SequenceGenerator.prototype, "year", 2);
7608
7736
  SequenceGenerator = __decorateClass([
7609
- (0, import_typeorm60.Entity)("sequence_generators")
7737
+ (0, import_typeorm62.Entity)("sequence_generators")
7610
7738
  ], SequenceGenerator);
7611
7739
 
7612
7740
  // src/entities/question.entity.ts
7613
- var import_typeorm61 = require("typeorm");
7741
+ var import_typeorm63 = require("typeorm");
7614
7742
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7615
7743
  QuestionFor2["CLIENT"] = "CLIENT";
7616
7744
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -7619,16 +7747,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7619
7747
  var Question = class extends BaseEntity {
7620
7748
  };
7621
7749
  __decorateClass([
7622
- (0, import_typeorm61.Column)({ name: "question", type: "varchar" })
7750
+ (0, import_typeorm63.Column)({ name: "question", type: "varchar" })
7623
7751
  ], Question.prototype, "question", 2);
7624
7752
  __decorateClass([
7625
- (0, import_typeorm61.Column)({ name: "hint", type: "varchar", nullable: true })
7753
+ (0, import_typeorm63.Column)({ name: "hint", type: "varchar", nullable: true })
7626
7754
  ], Question.prototype, "hint", 2);
7627
7755
  __decorateClass([
7628
- (0, import_typeorm61.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7756
+ (0, import_typeorm63.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7629
7757
  ], Question.prototype, "slug", 2);
7630
7758
  __decorateClass([
7631
- (0, import_typeorm61.Column)({
7759
+ (0, import_typeorm63.Column)({
7632
7760
  name: "question_for",
7633
7761
  type: "enum",
7634
7762
  enum: QuestionFor,
@@ -7636,45 +7764,45 @@ __decorateClass([
7636
7764
  })
7637
7765
  ], Question.prototype, "questionFor", 2);
7638
7766
  __decorateClass([
7639
- (0, import_typeorm61.Column)({ name: "type", type: "varchar", nullable: true })
7767
+ (0, import_typeorm63.Column)({ name: "type", type: "varchar", nullable: true })
7640
7768
  ], Question.prototype, "type", 2);
7641
7769
  __decorateClass([
7642
- (0, import_typeorm61.Column)({ name: "options", type: "jsonb", nullable: true })
7770
+ (0, import_typeorm63.Column)({ name: "options", type: "jsonb", nullable: true })
7643
7771
  ], Question.prototype, "options", 2);
7644
7772
  __decorateClass([
7645
- (0, import_typeorm61.Column)({ name: "is_active", type: "boolean", default: false })
7773
+ (0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: false })
7646
7774
  ], Question.prototype, "isActive", 2);
7647
7775
  Question = __decorateClass([
7648
- (0, import_typeorm61.Entity)("questions")
7776
+ (0, import_typeorm63.Entity)("questions")
7649
7777
  ], Question);
7650
7778
 
7651
7779
  // src/entities/skill.entity.ts
7652
- var import_typeorm62 = require("typeorm");
7780
+ var import_typeorm64 = require("typeorm");
7653
7781
  var Skill = class extends BaseEntity {
7654
7782
  };
7655
7783
  __decorateClass([
7656
- (0, import_typeorm62.Column)({ name: "name", type: "varchar", nullable: true })
7784
+ (0, import_typeorm64.Column)({ name: "name", type: "varchar", nullable: true })
7657
7785
  ], Skill.prototype, "name", 2);
7658
7786
  __decorateClass([
7659
- (0, import_typeorm62.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7787
+ (0, import_typeorm64.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7660
7788
  ], Skill.prototype, "slug", 2);
7661
7789
  __decorateClass([
7662
- (0, import_typeorm62.Column)({ name: "is_active", type: "boolean", default: false })
7790
+ (0, import_typeorm64.Column)({ name: "is_active", type: "boolean", default: false })
7663
7791
  ], Skill.prototype, "isActive", 2);
7664
7792
  Skill = __decorateClass([
7665
- (0, import_typeorm62.Entity)("skills")
7793
+ (0, import_typeorm64.Entity)("skills")
7666
7794
  ], Skill);
7667
7795
 
7668
7796
  // src/entities/skill-catalog.entity.ts
7669
- var import_typeorm63 = require("typeorm");
7797
+ var import_typeorm65 = require("typeorm");
7670
7798
  var SkillCatalog = class extends BaseEntity {
7671
7799
  };
7672
7800
  __decorateClass([
7673
- (0, import_typeorm63.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
7674
- (0, import_typeorm63.Index)()
7801
+ (0, import_typeorm65.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
7802
+ (0, import_typeorm65.Index)()
7675
7803
  ], SkillCatalog.prototype, "canonicalName", 2);
7676
7804
  __decorateClass([
7677
- (0, import_typeorm63.Column)({
7805
+ (0, import_typeorm65.Column)({
7678
7806
  name: "aliases",
7679
7807
  type: "text",
7680
7808
  array: true,
@@ -7682,20 +7810,20 @@ __decorateClass([
7682
7810
  })
7683
7811
  ], SkillCatalog.prototype, "aliases", 2);
7684
7812
  __decorateClass([
7685
- (0, import_typeorm63.Column)({
7813
+ (0, import_typeorm65.Column)({
7686
7814
  name: "variations",
7687
7815
  type: "jsonb",
7688
7816
  default: "{}"
7689
7817
  })
7690
7818
  ], SkillCatalog.prototype, "variations", 2);
7691
7819
  __decorateClass([
7692
- (0, import_typeorm63.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
7820
+ (0, import_typeorm65.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
7693
7821
  ], SkillCatalog.prototype, "category", 2);
7694
7822
  __decorateClass([
7695
- (0, import_typeorm63.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
7823
+ (0, import_typeorm65.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
7696
7824
  ], SkillCatalog.prototype, "parentSkill", 2);
7697
7825
  __decorateClass([
7698
- (0, import_typeorm63.Column)({
7826
+ (0, import_typeorm65.Column)({
7699
7827
  name: "related_skills",
7700
7828
  type: "text",
7701
7829
  array: true,
@@ -7703,111 +7831,111 @@ __decorateClass([
7703
7831
  })
7704
7832
  ], SkillCatalog.prototype, "relatedSkills", 2);
7705
7833
  __decorateClass([
7706
- (0, import_typeorm63.Column)({ name: "usage_count", type: "integer", default: 0 }),
7707
- (0, import_typeorm63.Index)()
7834
+ (0, import_typeorm65.Column)({ name: "usage_count", type: "integer", default: 0 }),
7835
+ (0, import_typeorm65.Index)()
7708
7836
  ], SkillCatalog.prototype, "usageCount", 2);
7709
7837
  __decorateClass([
7710
- (0, import_typeorm63.Column)({ name: "is_verified", type: "boolean", default: false })
7838
+ (0, import_typeorm65.Column)({ name: "is_verified", type: "boolean", default: false })
7711
7839
  ], SkillCatalog.prototype, "isVerified", 2);
7712
7840
  __decorateClass([
7713
- (0, import_typeorm63.Column)({ name: "first_seen_date", type: "date" })
7841
+ (0, import_typeorm65.Column)({ name: "first_seen_date", type: "date" })
7714
7842
  ], SkillCatalog.prototype, "firstSeenDate", 2);
7715
7843
  __decorateClass([
7716
- (0, import_typeorm63.Column)({ name: "last_updated_date", type: "date" })
7844
+ (0, import_typeorm65.Column)({ name: "last_updated_date", type: "date" })
7717
7845
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
7718
7846
  __decorateClass([
7719
- (0, import_typeorm63.Column)({
7847
+ (0, import_typeorm65.Column)({
7720
7848
  name: "search_vector",
7721
7849
  type: "tsvector",
7722
7850
  nullable: true
7723
7851
  })
7724
7852
  ], SkillCatalog.prototype, "searchVector", 2);
7725
7853
  SkillCatalog = __decorateClass([
7726
- (0, import_typeorm63.Entity)("skill_catalogs")
7854
+ (0, import_typeorm65.Entity)("skill_catalogs")
7727
7855
  ], SkillCatalog);
7728
7856
 
7729
7857
  // src/entities/job-role.entity.ts
7730
- var import_typeorm64 = require("typeorm");
7858
+ var import_typeorm66 = require("typeorm");
7731
7859
  var JobRoles = class extends BaseEntity {
7732
7860
  };
7733
7861
  __decorateClass([
7734
- (0, import_typeorm64.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7862
+ (0, import_typeorm66.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7735
7863
  ], JobRoles.prototype, "slug", 2);
7736
7864
  __decorateClass([
7737
- (0, import_typeorm64.Column)({ name: "name", type: "varchar", nullable: true })
7865
+ (0, import_typeorm66.Column)({ name: "name", type: "varchar", nullable: true })
7738
7866
  ], JobRoles.prototype, "name", 2);
7739
7867
  __decorateClass([
7740
- (0, import_typeorm64.Column)({ name: "is_active", type: "boolean", default: true })
7868
+ (0, import_typeorm66.Column)({ name: "is_active", type: "boolean", default: true })
7741
7869
  ], JobRoles.prototype, "isActive", 2);
7742
7870
  JobRoles = __decorateClass([
7743
- (0, import_typeorm64.Entity)("job_roles")
7871
+ (0, import_typeorm66.Entity)("job_roles")
7744
7872
  ], JobRoles);
7745
7873
 
7746
7874
  // src/entities/plan.entity.ts
7747
- var import_typeorm66 = require("typeorm");
7875
+ var import_typeorm68 = require("typeorm");
7748
7876
 
7749
7877
  // src/entities/feature.entity.ts
7750
- var import_typeorm65 = require("typeorm");
7878
+ var import_typeorm67 = require("typeorm");
7751
7879
  var Feature = class extends BaseEntity {
7752
7880
  };
7753
7881
  __decorateClass([
7754
- (0, import_typeorm65.Column)({ name: "name", type: "varchar", unique: true })
7882
+ (0, import_typeorm67.Column)({ name: "name", type: "varchar", unique: true })
7755
7883
  ], Feature.prototype, "name", 2);
7756
7884
  __decorateClass([
7757
- (0, import_typeorm65.ManyToMany)(() => Plan, (plan) => plan.features)
7885
+ (0, import_typeorm67.ManyToMany)(() => Plan, (plan) => plan.features)
7758
7886
  ], Feature.prototype, "plans", 2);
7759
7887
  Feature = __decorateClass([
7760
- (0, import_typeorm65.Entity)("features")
7888
+ (0, import_typeorm67.Entity)("features")
7761
7889
  ], Feature);
7762
7890
 
7763
7891
  // src/entities/plan.entity.ts
7764
7892
  var Plan = class extends BaseEntity {
7765
7893
  };
7766
7894
  __decorateClass([
7767
- (0, import_typeorm66.Column)({ name: "name", type: "varchar", unique: true })
7895
+ (0, import_typeorm68.Column)({ name: "name", type: "varchar", unique: true })
7768
7896
  ], Plan.prototype, "name", 2);
7769
7897
  __decorateClass([
7770
- (0, import_typeorm66.Column)({ name: "description", type: "varchar", nullable: true })
7898
+ (0, import_typeorm68.Column)({ name: "description", type: "varchar", nullable: true })
7771
7899
  ], Plan.prototype, "description", 2);
7772
7900
  __decorateClass([
7773
- (0, import_typeorm66.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
7901
+ (0, import_typeorm68.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
7774
7902
  ], Plan.prototype, "price", 2);
7775
7903
  __decorateClass([
7776
- (0, import_typeorm66.Column)({ name: "billing_period", type: "varchar" })
7904
+ (0, import_typeorm68.Column)({ name: "billing_period", type: "varchar" })
7777
7905
  ], Plan.prototype, "billingPeriod", 2);
7778
7906
  __decorateClass([
7779
- (0, import_typeorm66.Column)({ name: "is_current", type: "boolean", default: false })
7907
+ (0, import_typeorm68.Column)({ name: "is_current", type: "boolean", default: false })
7780
7908
  ], Plan.prototype, "isCurrent", 2);
7781
7909
  __decorateClass([
7782
- (0, import_typeorm66.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
7783
- (0, import_typeorm66.JoinTable)()
7910
+ (0, import_typeorm68.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
7911
+ (0, import_typeorm68.JoinTable)()
7784
7912
  ], Plan.prototype, "features", 2);
7785
7913
  Plan = __decorateClass([
7786
- (0, import_typeorm66.Entity)("plans")
7914
+ (0, import_typeorm68.Entity)("plans")
7787
7915
  ], Plan);
7788
7916
 
7789
7917
  // src/entities/cms.entity.ts
7790
- var import_typeorm67 = require("typeorm");
7918
+ var import_typeorm69 = require("typeorm");
7791
7919
  var Cms = class extends BaseEntity {
7792
7920
  };
7793
7921
  __decorateClass([
7794
- (0, import_typeorm67.Column)({ name: "title", type: "varchar", nullable: true })
7922
+ (0, import_typeorm69.Column)({ name: "title", type: "varchar", nullable: true })
7795
7923
  ], Cms.prototype, "title", 2);
7796
7924
  __decorateClass([
7797
- (0, import_typeorm67.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7925
+ (0, import_typeorm69.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
7798
7926
  ], Cms.prototype, "slug", 2);
7799
7927
  __decorateClass([
7800
- (0, import_typeorm67.Column)({ name: "content", type: "varchar", nullable: true })
7928
+ (0, import_typeorm69.Column)({ name: "content", type: "varchar", nullable: true })
7801
7929
  ], Cms.prototype, "content", 2);
7802
7930
  __decorateClass([
7803
- (0, import_typeorm67.Column)({ name: "is_active", type: "boolean", default: true })
7931
+ (0, import_typeorm69.Column)({ name: "is_active", type: "boolean", default: true })
7804
7932
  ], Cms.prototype, "isActive", 2);
7805
7933
  Cms = __decorateClass([
7806
- (0, import_typeorm67.Entity)("cms")
7934
+ (0, import_typeorm69.Entity)("cms")
7807
7935
  ], Cms);
7808
7936
 
7809
7937
  // src/entities/lead.entity.ts
7810
- var import_typeorm68 = require("typeorm");
7938
+ var import_typeorm70 = require("typeorm");
7811
7939
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7812
7940
  CategoryEmum2["BUSINESS"] = "BUSINESS";
7813
7941
  CategoryEmum2["FREELANCER"] = "FREELANCER";
@@ -7816,22 +7944,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7816
7944
  var Lead = class extends BaseEntity {
7817
7945
  };
7818
7946
  __decorateClass([
7819
- (0, import_typeorm68.Column)({ name: "name", type: "varchar", nullable: true })
7947
+ (0, import_typeorm70.Column)({ name: "name", type: "varchar", nullable: true })
7820
7948
  ], Lead.prototype, "name", 2);
7821
7949
  __decorateClass([
7822
- (0, import_typeorm68.Column)({ name: "mobile_code", type: "varchar", nullable: true })
7950
+ (0, import_typeorm70.Column)({ name: "mobile_code", type: "varchar", nullable: true })
7823
7951
  ], Lead.prototype, "mobileCode", 2);
7824
7952
  __decorateClass([
7825
- (0, import_typeorm68.Column)({ name: "mobile", type: "varchar", nullable: true })
7953
+ (0, import_typeorm70.Column)({ name: "mobile", type: "varchar", nullable: true })
7826
7954
  ], Lead.prototype, "mobile", 2);
7827
7955
  __decorateClass([
7828
- (0, import_typeorm68.Column)({ name: "email", type: "varchar", nullable: true })
7956
+ (0, import_typeorm70.Column)({ name: "email", type: "varchar", nullable: true })
7829
7957
  ], Lead.prototype, "email", 2);
7830
7958
  __decorateClass([
7831
- (0, import_typeorm68.Column)({ name: "description", type: "varchar", nullable: true })
7959
+ (0, import_typeorm70.Column)({ name: "description", type: "varchar", nullable: true })
7832
7960
  ], Lead.prototype, "description", 2);
7833
7961
  __decorateClass([
7834
- (0, import_typeorm68.Column)({
7962
+ (0, import_typeorm70.Column)({
7835
7963
  name: "category",
7836
7964
  type: "enum",
7837
7965
  enum: CategoryEmum,
@@ -7839,129 +7967,129 @@ __decorateClass([
7839
7967
  })
7840
7968
  ], Lead.prototype, "category", 2);
7841
7969
  Lead = __decorateClass([
7842
- (0, import_typeorm68.Entity)("leads")
7970
+ (0, import_typeorm70.Entity)("leads")
7843
7971
  ], Lead);
7844
7972
 
7845
7973
  // src/entities/job-freelancer-recommendation.entity.ts
7846
- var import_typeorm69 = require("typeorm");
7974
+ var import_typeorm71 = require("typeorm");
7847
7975
  var JobFreelancerRecommendation = class {
7848
7976
  };
7849
7977
  __decorateClass([
7850
- (0, import_typeorm69.ViewColumn)({ name: "job_id" })
7978
+ (0, import_typeorm71.ViewColumn)({ name: "job_id" })
7851
7979
  ], JobFreelancerRecommendation.prototype, "jobId", 2);
7852
7980
  __decorateClass([
7853
- (0, import_typeorm69.ViewColumn)({ name: "job_uuid" })
7981
+ (0, import_typeorm71.ViewColumn)({ name: "job_uuid" })
7854
7982
  ], JobFreelancerRecommendation.prototype, "jobUuid", 2);
7855
7983
  __decorateClass([
7856
- (0, import_typeorm69.ViewColumn)({ name: "job_unique_id" })
7984
+ (0, import_typeorm71.ViewColumn)({ name: "job_unique_id" })
7857
7985
  ], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
7858
7986
  __decorateClass([
7859
- (0, import_typeorm69.ViewColumn)({ name: "job_role" })
7987
+ (0, import_typeorm71.ViewColumn)({ name: "job_role" })
7860
7988
  ], JobFreelancerRecommendation.prototype, "jobRole", 2);
7861
7989
  __decorateClass([
7862
- (0, import_typeorm69.ViewColumn)({ name: "job_openings" })
7990
+ (0, import_typeorm71.ViewColumn)({ name: "job_openings" })
7863
7991
  ], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
7864
7992
  __decorateClass([
7865
- (0, import_typeorm69.ViewColumn)({ name: "job_location" })
7993
+ (0, import_typeorm71.ViewColumn)({ name: "job_location" })
7866
7994
  ], JobFreelancerRecommendation.prototype, "jobLocation", 2);
7867
7995
  __decorateClass([
7868
- (0, import_typeorm69.ViewColumn)({ name: "job_currency" })
7996
+ (0, import_typeorm71.ViewColumn)({ name: "job_currency" })
7869
7997
  ], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
7870
7998
  __decorateClass([
7871
- (0, import_typeorm69.ViewColumn)({ name: "job_salary_from" })
7999
+ (0, import_typeorm71.ViewColumn)({ name: "job_salary_from" })
7872
8000
  ], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
7873
8001
  __decorateClass([
7874
- (0, import_typeorm69.ViewColumn)({ name: "job_salary_to" })
8002
+ (0, import_typeorm71.ViewColumn)({ name: "job_salary_to" })
7875
8003
  ], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
7876
8004
  __decorateClass([
7877
- (0, import_typeorm69.ViewColumn)({ name: "job_employment_type" })
8005
+ (0, import_typeorm71.ViewColumn)({ name: "job_employment_type" })
7878
8006
  ], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
7879
8007
  __decorateClass([
7880
- (0, import_typeorm69.ViewColumn)({ name: "application_received" })
8008
+ (0, import_typeorm71.ViewColumn)({ name: "application_received" })
7881
8009
  ], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
7882
8010
  __decorateClass([
7883
- (0, import_typeorm69.ViewColumn)({ name: "job_posted_at" })
8011
+ (0, import_typeorm71.ViewColumn)({ name: "job_posted_at" })
7884
8012
  ], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
7885
8013
  __decorateClass([
7886
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_id" })
8014
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_id" })
7887
8015
  ], JobFreelancerRecommendation.prototype, "freelancerId", 2);
7888
8016
  __decorateClass([
7889
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_uuid" })
8017
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_uuid" })
7890
8018
  ], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
7891
8019
  __decorateClass([
7892
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_unique_id" })
8020
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_unique_id" })
7893
8021
  ], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
7894
8022
  __decorateClass([
7895
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_first_name" })
8023
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_first_name" })
7896
8024
  ], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
7897
8025
  __decorateClass([
7898
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_last_name" })
8026
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_last_name" })
7899
8027
  ], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
7900
8028
  __decorateClass([
7901
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_email" })
8029
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_email" })
7902
8030
  ], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
7903
8031
  __decorateClass([
7904
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_profile_picture" })
8032
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_profile_picture" })
7905
8033
  ], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
7906
8034
  __decorateClass([
7907
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_is_social" })
8035
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_is_social" })
7908
8036
  ], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
7909
8037
  __decorateClass([
7910
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_created_at" })
8038
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_created_at" })
7911
8039
  ], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
7912
8040
  __decorateClass([
7913
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_designation" })
8041
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_designation" })
7914
8042
  ], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
7915
8043
  __decorateClass([
7916
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_experience" })
8044
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_experience" })
7917
8045
  ], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
7918
8046
  __decorateClass([
7919
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_expertshub_verified" })
8047
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_expertshub_verified" })
7920
8048
  ], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
7921
8049
  __decorateClass([
7922
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_hourly_compensation" })
8050
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_hourly_compensation" })
7923
8051
  ], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
7924
8052
  __decorateClass([
7925
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_country_name" })
8053
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_country_name" })
7926
8054
  ], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
7927
8055
  __decorateClass([
7928
- (0, import_typeorm69.ViewColumn)({ name: "freelancer_country_iso_code" })
8056
+ (0, import_typeorm71.ViewColumn)({ name: "freelancer_country_iso_code" })
7929
8057
  ], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
7930
8058
  __decorateClass([
7931
- (0, import_typeorm69.ViewColumn)({ name: "client_id" })
8059
+ (0, import_typeorm71.ViewColumn)({ name: "client_id" })
7932
8060
  ], JobFreelancerRecommendation.prototype, "clientId", 2);
7933
8061
  __decorateClass([
7934
- (0, import_typeorm69.ViewColumn)({ name: "client_uuid" })
8062
+ (0, import_typeorm71.ViewColumn)({ name: "client_uuid" })
7935
8063
  ], JobFreelancerRecommendation.prototype, "clientUuid", 2);
7936
8064
  __decorateClass([
7937
- (0, import_typeorm69.ViewColumn)({ name: "client_first_name" })
8065
+ (0, import_typeorm71.ViewColumn)({ name: "client_first_name" })
7938
8066
  ], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
7939
8067
  __decorateClass([
7940
- (0, import_typeorm69.ViewColumn)({ name: "client_last_name" })
8068
+ (0, import_typeorm71.ViewColumn)({ name: "client_last_name" })
7941
8069
  ], JobFreelancerRecommendation.prototype, "clientLastName", 2);
7942
8070
  __decorateClass([
7943
- (0, import_typeorm69.ViewColumn)({ name: "client_email" })
8071
+ (0, import_typeorm71.ViewColumn)({ name: "client_email" })
7944
8072
  ], JobFreelancerRecommendation.prototype, "clientEmail", 2);
7945
8073
  __decorateClass([
7946
- (0, import_typeorm69.ViewColumn)({ name: "client_company_logo" })
8074
+ (0, import_typeorm71.ViewColumn)({ name: "client_company_logo" })
7947
8075
  ], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
7948
8076
  __decorateClass([
7949
- (0, import_typeorm69.ViewColumn)({ name: "client_company_name" })
8077
+ (0, import_typeorm71.ViewColumn)({ name: "client_company_name" })
7950
8078
  ], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
7951
8079
  __decorateClass([
7952
- (0, import_typeorm69.ViewColumn)({ name: "matching_skills" })
8080
+ (0, import_typeorm71.ViewColumn)({ name: "matching_skills" })
7953
8081
  ], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
7954
8082
  __decorateClass([
7955
- (0, import_typeorm69.ViewColumn)({ name: "matching_skills_count" })
8083
+ (0, import_typeorm71.ViewColumn)({ name: "matching_skills_count" })
7956
8084
  ], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
7957
8085
  __decorateClass([
7958
- (0, import_typeorm69.ViewColumn)({ name: "required_skills" })
8086
+ (0, import_typeorm71.ViewColumn)({ name: "required_skills" })
7959
8087
  ], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
7960
8088
  __decorateClass([
7961
- (0, import_typeorm69.ViewColumn)({ name: "required_skills_count" })
8089
+ (0, import_typeorm71.ViewColumn)({ name: "required_skills_count" })
7962
8090
  ], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
7963
8091
  JobFreelancerRecommendation = __decorateClass([
7964
- (0, import_typeorm69.ViewEntity)({
8092
+ (0, import_typeorm71.ViewEntity)({
7965
8093
  name: "job_freelancer_recommendations",
7966
8094
  materialized: true,
7967
8095
  synchronize: false
@@ -7970,32 +8098,32 @@ JobFreelancerRecommendation = __decorateClass([
7970
8098
  ], JobFreelancerRecommendation);
7971
8099
 
7972
8100
  // src/entities/job-freelancer-recommendation-v2.entity.ts
7973
- var import_typeorm70 = require("typeorm");
8101
+ var import_typeorm72 = require("typeorm");
7974
8102
  var JobFreelancerRecommendationV2 = class {
7975
8103
  };
7976
8104
  __decorateClass([
7977
- (0, import_typeorm70.ViewColumn)({ name: "job_id" })
8105
+ (0, import_typeorm72.ViewColumn)({ name: "job_id" })
7978
8106
  ], JobFreelancerRecommendationV2.prototype, "jobId", 2);
7979
8107
  __decorateClass([
7980
- (0, import_typeorm70.ViewColumn)({ name: "job_owner_id" })
8108
+ (0, import_typeorm72.ViewColumn)({ name: "job_owner_id" })
7981
8109
  ], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
7982
8110
  __decorateClass([
7983
- (0, import_typeorm70.ViewColumn)({ name: "freelancer_id" })
8111
+ (0, import_typeorm72.ViewColumn)({ name: "freelancer_id" })
7984
8112
  ], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
7985
8113
  __decorateClass([
7986
- (0, import_typeorm70.ViewColumn)({ name: "matching_skills" })
8114
+ (0, import_typeorm72.ViewColumn)({ name: "matching_skills" })
7987
8115
  ], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
7988
8116
  __decorateClass([
7989
- (0, import_typeorm70.ViewColumn)({ name: "matching_skills_count" })
8117
+ (0, import_typeorm72.ViewColumn)({ name: "matching_skills_count" })
7990
8118
  ], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
7991
8119
  __decorateClass([
7992
- (0, import_typeorm70.ViewColumn)({ name: "required_skills" })
8120
+ (0, import_typeorm72.ViewColumn)({ name: "required_skills" })
7993
8121
  ], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
7994
8122
  __decorateClass([
7995
- (0, import_typeorm70.ViewColumn)({ name: "required_skills_count" })
8123
+ (0, import_typeorm72.ViewColumn)({ name: "required_skills_count" })
7996
8124
  ], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
7997
8125
  JobFreelancerRecommendationV2 = __decorateClass([
7998
- (0, import_typeorm70.ViewEntity)({
8126
+ (0, import_typeorm72.ViewEntity)({
7999
8127
  name: "job_freelancer_recommendations_v2",
8000
8128
  materialized: true,
8001
8129
  synchronize: false
@@ -8004,74 +8132,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
8004
8132
  ], JobFreelancerRecommendationV2);
8005
8133
 
8006
8134
  // src/entities/client-freelancer-recommendation.entity.ts
8007
- var import_typeorm71 = require("typeorm");
8135
+ var import_typeorm73 = require("typeorm");
8008
8136
  var ClientFreelancerRecommendation = class {
8009
8137
  };
8010
8138
  __decorateClass([
8011
- (0, import_typeorm71.ViewColumn)({ name: "client_id" })
8139
+ (0, import_typeorm73.ViewColumn)({ name: "client_id" })
8012
8140
  ], ClientFreelancerRecommendation.prototype, "clientId", 2);
8013
8141
  __decorateClass([
8014
- (0, import_typeorm71.ViewColumn)({ name: "client_uuid" })
8142
+ (0, import_typeorm73.ViewColumn)({ name: "client_uuid" })
8015
8143
  ], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
8016
8144
  __decorateClass([
8017
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_id" })
8145
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_id" })
8018
8146
  ], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
8019
8147
  __decorateClass([
8020
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_uuid" })
8148
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_uuid" })
8021
8149
  ], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
8022
8150
  __decorateClass([
8023
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_unique_id" })
8151
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_unique_id" })
8024
8152
  ], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
8025
8153
  __decorateClass([
8026
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_first_name" })
8154
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_first_name" })
8027
8155
  ], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
8028
8156
  __decorateClass([
8029
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_last_name" })
8157
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_last_name" })
8030
8158
  ], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
8031
8159
  __decorateClass([
8032
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_email" })
8160
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_email" })
8033
8161
  ], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
8034
8162
  __decorateClass([
8035
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_profile_picture" })
8163
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_profile_picture" })
8036
8164
  ], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
8037
8165
  __decorateClass([
8038
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_is_social" })
8166
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_is_social" })
8039
8167
  ], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
8040
8168
  __decorateClass([
8041
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_created_at" })
8169
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_created_at" })
8042
8170
  ], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
8043
8171
  __decorateClass([
8044
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_designation" })
8172
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_designation" })
8045
8173
  ], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
8046
8174
  __decorateClass([
8047
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_experience" })
8175
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_experience" })
8048
8176
  ], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
8049
8177
  __decorateClass([
8050
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_expertshub_verified" })
8178
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_expertshub_verified" })
8051
8179
  ], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
8052
8180
  __decorateClass([
8053
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_hourly_compensation" })
8181
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_hourly_compensation" })
8054
8182
  ], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
8055
8183
  __decorateClass([
8056
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_country_name" })
8184
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_country_name" })
8057
8185
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
8058
8186
  __decorateClass([
8059
- (0, import_typeorm71.ViewColumn)({ name: "freelancer_country_iso_code" })
8187
+ (0, import_typeorm73.ViewColumn)({ name: "freelancer_country_iso_code" })
8060
8188
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
8061
8189
  __decorateClass([
8062
- (0, import_typeorm71.ViewColumn)({ name: "matching_skills" })
8190
+ (0, import_typeorm73.ViewColumn)({ name: "matching_skills" })
8063
8191
  ], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
8064
8192
  __decorateClass([
8065
- (0, import_typeorm71.ViewColumn)({ name: "matching_skills_count" })
8193
+ (0, import_typeorm73.ViewColumn)({ name: "matching_skills_count" })
8066
8194
  ], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
8067
8195
  __decorateClass([
8068
- (0, import_typeorm71.ViewColumn)({ name: "required_skills" })
8196
+ (0, import_typeorm73.ViewColumn)({ name: "required_skills" })
8069
8197
  ], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
8070
8198
  __decorateClass([
8071
- (0, import_typeorm71.ViewColumn)({ name: "required_skills_count" })
8199
+ (0, import_typeorm73.ViewColumn)({ name: "required_skills_count" })
8072
8200
  ], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
8073
8201
  ClientFreelancerRecommendation = __decorateClass([
8074
- (0, import_typeorm71.ViewEntity)({
8202
+ (0, import_typeorm73.ViewEntity)({
8075
8203
  name: "client_freelancer_recommendations",
8076
8204
  materialized: true,
8077
8205
  synchronize: false
@@ -8080,7 +8208,7 @@ ClientFreelancerRecommendation = __decorateClass([
8080
8208
  ], ClientFreelancerRecommendation);
8081
8209
 
8082
8210
  // src/entities/commission.entity.ts
8083
- var import_typeorm72 = require("typeorm");
8211
+ var import_typeorm74 = require("typeorm");
8084
8212
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
8085
8213
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
8086
8214
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -8089,7 +8217,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
8089
8217
  var Commission = class extends BaseEntity {
8090
8218
  };
8091
8219
  __decorateClass([
8092
- (0, import_typeorm72.Column)({
8220
+ (0, import_typeorm74.Column)({
8093
8221
  name: "freelancer_commission_type",
8094
8222
  type: "enum",
8095
8223
  enum: CommissionTypeEnum,
@@ -8097,10 +8225,10 @@ __decorateClass([
8097
8225
  })
8098
8226
  ], Commission.prototype, "freelancerCommissionType", 2);
8099
8227
  __decorateClass([
8100
- (0, import_typeorm72.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
8228
+ (0, import_typeorm74.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
8101
8229
  ], Commission.prototype, "freelancerCommission", 2);
8102
8230
  __decorateClass([
8103
- (0, import_typeorm72.Column)({
8231
+ (0, import_typeorm74.Column)({
8104
8232
  name: "client_commission_type",
8105
8233
  type: "enum",
8106
8234
  enum: CommissionTypeEnum,
@@ -8108,93 +8236,93 @@ __decorateClass([
8108
8236
  })
8109
8237
  ], Commission.prototype, "clientCommissionType", 2);
8110
8238
  __decorateClass([
8111
- (0, import_typeorm72.Column)({ name: "client_commission", type: "integer", default: 0 })
8239
+ (0, import_typeorm74.Column)({ name: "client_commission", type: "integer", default: 0 })
8112
8240
  ], Commission.prototype, "clientCommission", 2);
8113
8241
  Commission = __decorateClass([
8114
- (0, import_typeorm72.Entity)("commissions")
8242
+ (0, import_typeorm74.Entity)("commissions")
8115
8243
  ], Commission);
8116
8244
 
8117
8245
  // src/entities/calendly-meeting-log.entity.ts
8118
- var import_typeorm73 = require("typeorm");
8246
+ var import_typeorm75 = require("typeorm");
8119
8247
  var CalendlyMeetingLog = class extends BaseEntity {
8120
8248
  };
8121
8249
  __decorateClass([
8122
- (0, import_typeorm73.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
8123
- (0, import_typeorm73.Index)()
8250
+ (0, import_typeorm75.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
8251
+ (0, import_typeorm75.Index)()
8124
8252
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
8125
8253
  __decorateClass([
8126
- (0, import_typeorm73.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
8254
+ (0, import_typeorm75.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
8127
8255
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
8128
8256
  __decorateClass([
8129
- (0, import_typeorm73.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8257
+ (0, import_typeorm75.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8130
8258
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
8131
8259
  CalendlyMeetingLog = __decorateClass([
8132
- (0, import_typeorm73.Entity)("calendly_meeting_logs")
8260
+ (0, import_typeorm75.Entity)("calendly_meeting_logs")
8133
8261
  ], CalendlyMeetingLog);
8134
8262
 
8135
8263
  // src/entities/zoom-meeting-log.entity.ts
8136
- var import_typeorm74 = require("typeorm");
8264
+ var import_typeorm76 = require("typeorm");
8137
8265
  var ZoomMeetingLog = class extends BaseEntity {
8138
8266
  };
8139
8267
  __decorateClass([
8140
- (0, import_typeorm74.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
8141
- (0, import_typeorm74.Index)()
8268
+ (0, import_typeorm76.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
8269
+ (0, import_typeorm76.Index)()
8142
8270
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
8143
8271
  __decorateClass([
8144
- (0, import_typeorm74.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
8272
+ (0, import_typeorm76.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
8145
8273
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
8146
8274
  __decorateClass([
8147
- (0, import_typeorm74.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8275
+ (0, import_typeorm76.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8148
8276
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
8149
8277
  ZoomMeetingLog = __decorateClass([
8150
- (0, import_typeorm74.Entity)("zoom_meeting_logs")
8278
+ (0, import_typeorm76.Entity)("zoom_meeting_logs")
8151
8279
  ], ZoomMeetingLog);
8152
8280
 
8153
8281
  // src/entities/stripe-logs.entity.ts
8154
- var import_typeorm75 = require("typeorm");
8282
+ var import_typeorm77 = require("typeorm");
8155
8283
  var StripeLog = class extends BaseEntity {
8156
8284
  };
8157
8285
  __decorateClass([
8158
- (0, import_typeorm75.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
8286
+ (0, import_typeorm77.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
8159
8287
  ], StripeLog.prototype, "stripeEventId", 2);
8160
8288
  __decorateClass([
8161
- (0, import_typeorm75.Column)({ name: "event_type", type: "varchar", nullable: true })
8289
+ (0, import_typeorm77.Column)({ name: "event_type", type: "varchar", nullable: true })
8162
8290
  ], StripeLog.prototype, "eventType", 2);
8163
8291
  __decorateClass([
8164
- (0, import_typeorm75.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
8292
+ (0, import_typeorm77.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
8165
8293
  ], StripeLog.prototype, "stripeAccountId", 2);
8166
8294
  __decorateClass([
8167
- (0, import_typeorm75.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8295
+ (0, import_typeorm77.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8168
8296
  ], StripeLog.prototype, "rawWebhookData", 2);
8169
8297
  StripeLog = __decorateClass([
8170
- (0, import_typeorm75.Entity)("stripe_logs")
8298
+ (0, import_typeorm77.Entity)("stripe_logs")
8171
8299
  ], StripeLog);
8172
8300
 
8173
8301
  // src/entities/recommendation-weightage-config.entity.ts
8174
- var import_typeorm76 = require("typeorm");
8302
+ var import_typeorm78 = require("typeorm");
8175
8303
  var RecommendationWeightageConfig = class extends BaseEntity {
8176
8304
  };
8177
8305
  __decorateClass([
8178
- (0, import_typeorm76.Column)({
8306
+ (0, import_typeorm78.Column)({
8179
8307
  type: "varchar",
8180
8308
  length: 100,
8181
8309
  unique: true,
8182
8310
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
8183
8311
  }),
8184
- (0, import_typeorm76.Index)()
8312
+ (0, import_typeorm78.Index)()
8185
8313
  ], RecommendationWeightageConfig.prototype, "key", 2);
8186
8314
  __decorateClass([
8187
- (0, import_typeorm76.Column)({
8315
+ (0, import_typeorm78.Column)({
8188
8316
  type: "jsonb",
8189
8317
  comment: "JSON object containing weight values",
8190
8318
  nullable: true
8191
8319
  })
8192
8320
  ], RecommendationWeightageConfig.prototype, "value", 2);
8193
8321
  __decorateClass([
8194
- (0, import_typeorm76.Column)({ name: "is_active", type: "boolean", default: true })
8322
+ (0, import_typeorm78.Column)({ name: "is_active", type: "boolean", default: true })
8195
8323
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
8196
8324
  RecommendationWeightageConfig = __decorateClass([
8197
- (0, import_typeorm76.Entity)("recommendation_weightage_configs")
8325
+ (0, import_typeorm78.Entity)("recommendation_weightage_configs")
8198
8326
  ], RecommendationWeightageConfig);
8199
8327
  // Annotate the CommonJS export names for ESM import in node:
8200
8328
  0 && (module.exports = {