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