@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.mjs CHANGED
@@ -1512,17 +1512,17 @@ import {
1512
1512
  } from "class-validator";
1513
1513
 
1514
1514
  // src/entities/rating.entity.ts
1515
- import { Entity as Entity58, Column as Column59, ManyToOne as ManyToOne52, JoinColumn as JoinColumn53, Index as Index51 } from "typeorm";
1515
+ import { Entity as Entity60, Column as Column61, ManyToOne as ManyToOne54, JoinColumn as JoinColumn55, Index as Index53 } from "typeorm";
1516
1516
 
1517
1517
  // src/entities/user.entity.ts
1518
1518
  import {
1519
- Entity as Entity57,
1520
- Column as Column58,
1521
- OneToMany as OneToMany20,
1522
- OneToOne as OneToOne7,
1523
- Index as Index50,
1524
- ManyToOne as ManyToOne51,
1525
- JoinColumn as JoinColumn52
1519
+ Entity as Entity59,
1520
+ Column as Column60,
1521
+ OneToMany as OneToMany21,
1522
+ OneToOne as OneToOne11,
1523
+ Index as Index52,
1524
+ ManyToOne as ManyToOne53,
1525
+ JoinColumn as JoinColumn54
1526
1526
  } from "typeorm";
1527
1527
 
1528
1528
  // src/entities/base.entity.ts
@@ -2344,12 +2344,12 @@ FreelancerProfile = __decorateClass([
2344
2344
 
2345
2345
  // src/entities/job.entity.ts
2346
2346
  import {
2347
- Entity as Entity27,
2348
- Column as Column28,
2349
- Index as Index21,
2350
- ManyToOne as ManyToOne26,
2351
- JoinColumn as JoinColumn26,
2352
- OneToMany as OneToMany11
2347
+ Entity as Entity29,
2348
+ Column as Column30,
2349
+ Index as Index23,
2350
+ ManyToOne as ManyToOne28,
2351
+ JoinColumn as JoinColumn28,
2352
+ OneToMany as OneToMany12
2353
2353
  } from "typeorm";
2354
2354
 
2355
2355
  // src/entities/job-skill.entity.ts
@@ -3264,309 +3264,76 @@ JobRecommendation = __decorateClass([
3264
3264
  ], JobRecommendation);
3265
3265
 
3266
3266
  // src/entities/contract.entity.ts
3267
- import { Entity as Entity21, Column as Column22, Index as Index15, ManyToOne as ManyToOne20, JoinColumn as JoinColumn20 } from "typeorm";
3268
- var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
3269
- ContractStatusEnum2["GENERATED"] = "GENERATED";
3270
- ContractStatusEnum2["DRAFTED"] = "DRAFTED";
3271
- ContractStatusEnum2["SENT"] = "SENT";
3272
- ContractStatusEnum2["SIGNED"] = "SIGNED";
3273
- ContractStatusEnum2["ACTIVE"] = "ACTIVE";
3274
- ContractStatusEnum2["CANCELLED"] = "CANCELLED";
3275
- ContractStatusEnum2["DISPUTED"] = "DISPUTED";
3276
- ContractStatusEnum2["REJECTED"] = "REJECTED";
3277
- ContractStatusEnum2["RENEWED"] = "RENEWED";
3278
- ContractStatusEnum2["EXPIRED"] = "EXPIRED";
3279
- return ContractStatusEnum2;
3280
- })(ContractStatusEnum || {});
3281
- var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
3282
- ContractTypeEnum2["NDA"] = "NDA";
3283
- ContractTypeEnum2["WORK"] = "WORK";
3284
- return ContractTypeEnum2;
3285
- })(ContractTypeEnum || {});
3286
- var Contract = class extends BaseEntity {
3287
- // stores the positions JSON
3288
- };
3289
- __decorateClass([
3290
- Column22({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3291
- ], Contract.prototype, "contractUniqueId", 2);
3292
- __decorateClass([
3293
- Column22({ name: "job_id", type: "integer", nullable: true }),
3294
- Index15()
3295
- ], Contract.prototype, "jobId", 2);
3296
- __decorateClass([
3297
- ManyToOne20(() => Job, (job) => job.contracts),
3298
- JoinColumn20({ name: "job_id" })
3299
- ], Contract.prototype, "job", 2);
3300
- __decorateClass([
3301
- Column22({ name: "client_id", type: "integer", nullable: true }),
3302
- Index15()
3303
- ], Contract.prototype, "clientId", 2);
3304
- __decorateClass([
3305
- ManyToOne20(() => User, (user) => user.clientContracts),
3306
- JoinColumn20({ name: "client_id" })
3307
- ], Contract.prototype, "client", 2);
3308
- __decorateClass([
3309
- Column22({ name: "freelancer_id", type: "integer", nullable: true }),
3310
- Index15()
3311
- ], Contract.prototype, "freelancerId", 2);
3312
- __decorateClass([
3313
- ManyToOne20(() => User, (user) => user.freelancerContracts),
3314
- JoinColumn20({ name: "freelancer_id" })
3315
- ], Contract.prototype, "freelancer", 2);
3316
- __decorateClass([
3317
- Column22({ name: "duration", type: "integer", nullable: true })
3318
- ], Contract.prototype, "duration", 2);
3319
- __decorateClass([
3320
- Column22({
3321
- name: "status",
3322
- type: "enum",
3323
- enum: ContractStatusEnum,
3324
- nullable: true
3325
- })
3326
- ], Contract.prototype, "status", 2);
3327
- __decorateClass([
3328
- Column22({
3329
- name: "type",
3330
- type: "enum",
3331
- enum: ContractTypeEnum,
3332
- nullable: true
3333
- })
3334
- ], Contract.prototype, "type", 2);
3335
- __decorateClass([
3336
- Column22({ name: "invoicing_cycle", type: "varchar", nullable: true })
3337
- ], Contract.prototype, "invoicingCycle", 2);
3338
- __decorateClass([
3339
- Column22({
3340
- name: "escrow_deposite_amount",
3341
- type: "decimal",
3342
- precision: 10,
3343
- scale: 2,
3344
- nullable: true
3345
- })
3346
- ], Contract.prototype, "escrowDepositeAmount", 2);
3347
- __decorateClass([
3348
- Column22({
3349
- name: "start_date",
3350
- type: "timestamp with time zone",
3351
- nullable: true
3352
- })
3353
- ], Contract.prototype, "startDate", 2);
3354
- __decorateClass([
3355
- Column22({
3356
- name: "end_date",
3357
- type: "timestamp with time zone",
3358
- nullable: true
3359
- })
3360
- ], Contract.prototype, "endDate", 2);
3361
- __decorateClass([
3362
- Column22({ name: "original_document_url", type: "varchar", nullable: true })
3363
- ], Contract.prototype, "originalDocumentUrl", 2);
3364
- __decorateClass([
3365
- Column22({ name: "contract_document_url", type: "varchar", nullable: true })
3366
- ], Contract.prototype, "contractDocumentUrl", 2);
3367
- __decorateClass([
3368
- Column22({
3369
- name: "client_signed_at",
3370
- type: "timestamp with time zone",
3371
- nullable: true
3372
- })
3373
- ], Contract.prototype, "clientSignedAt", 2);
3374
- __decorateClass([
3375
- Column22({ name: "freelancer_viewed", type: "boolean", default: false })
3376
- ], Contract.prototype, "freelancerViewed", 2);
3377
- __decorateClass([
3378
- Column22({
3379
- name: "freelancer_viewed_at",
3380
- type: "timestamp with time zone",
3381
- nullable: true
3382
- })
3383
- ], Contract.prototype, "freelancerViewedAt", 2);
3384
- __decorateClass([
3385
- Column22({
3386
- name: "freelancer_signed_at",
3387
- type: "timestamp with time zone",
3388
- nullable: true
3389
- })
3390
- ], Contract.prototype, "freelancerSignedAt", 2);
3391
- __decorateClass([
3392
- Column22({
3393
- name: "rejectd_at",
3394
- type: "timestamp with time zone",
3395
- nullable: true
3396
- })
3397
- ], Contract.prototype, "rejectedAt", 2);
3398
- __decorateClass([
3399
- Column22({ name: "reject_reason", type: "varchar", nullable: true })
3400
- ], Contract.prototype, "rejectReason", 2);
3401
- __decorateClass([
3402
- Column22({ name: "is_work_contract_sent", type: "boolean", default: false })
3403
- ], Contract.prototype, "isWorkContractSent", 2);
3404
- __decorateClass([
3405
- Column22({ name: "is_escrow_deposited", type: "boolean", default: false })
3406
- ], Contract.prototype, "isEscrowDeposited", 2);
3407
- __decorateClass([
3408
- Column22({ name: "signature_positions", type: "jsonb", nullable: true })
3409
- ], Contract.prototype, "signaturePositions", 2);
3410
- Contract = __decorateClass([
3411
- Entity21("contracts")
3412
- ], Contract);
3267
+ import { Entity as Entity27, Column as Column28, Index as Index21, ManyToOne as ManyToOne26, JoinColumn as JoinColumn26, OneToOne as OneToOne8 } from "typeorm";
3413
3268
 
3414
- // src/entities/timesheets.entity.ts
3415
- import { Entity as Entity22, Column as Column23, Index as Index16, JoinColumn as JoinColumn21, ManyToOne as ManyToOne21 } from "typeorm";
3416
- var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
3417
- TimesheetStatusEnum2["DRAFT"] = "DRAFT";
3418
- TimesheetStatusEnum2["SEND"] = "SEND";
3419
- TimesheetStatusEnum2["SEND_BACK"] = "SEND_BACK";
3420
- TimesheetStatusEnum2["APPROVED"] = "APPROVED";
3421
- TimesheetStatusEnum2["REJECTED"] = "REJECTED";
3422
- TimesheetStatusEnum2["PAID"] = "PAID";
3423
- return TimesheetStatusEnum2;
3424
- })(TimesheetStatusEnum || {});
3425
- var Timesheet = class extends BaseEntity {
3426
- };
3427
- __decorateClass([
3428
- Column23({ name: "job_id", type: "integer", nullable: true }),
3429
- Index16()
3430
- ], Timesheet.prototype, "jobId", 2);
3431
- __decorateClass([
3432
- ManyToOne21(() => Job, (job) => job.timesheets),
3433
- JoinColumn21({ name: "job_id" })
3434
- ], Timesheet.prototype, "job", 2);
3435
- __decorateClass([
3436
- Column23({ name: "client_id", type: "integer", nullable: true }),
3437
- Index16()
3438
- ], Timesheet.prototype, "clientId", 2);
3439
- __decorateClass([
3440
- ManyToOne21(() => User, (user) => user.clientTimesheets),
3441
- JoinColumn21({ name: "client_id" })
3442
- ], Timesheet.prototype, "client", 2);
3443
- __decorateClass([
3444
- Column23({ name: "freelancer_id", type: "integer", nullable: true }),
3445
- Index16()
3446
- ], Timesheet.prototype, "freelancerId", 2);
3447
- __decorateClass([
3448
- ManyToOne21(() => User, (user) => user.freelancerTimesheets),
3449
- JoinColumn21({ name: "freelancer_id" })
3450
- ], Timesheet.prototype, "freelancer", 2);
3451
- __decorateClass([
3452
- Column23({
3453
- name: "start_date",
3454
- type: "date",
3455
- nullable: true
3456
- })
3457
- ], Timesheet.prototype, "startDate", 2);
3458
- __decorateClass([
3459
- Column23({
3460
- name: "end_date",
3461
- type: "date",
3462
- nullable: true
3463
- })
3464
- ], Timesheet.prototype, "endDate", 2);
3465
- __decorateClass([
3466
- Column23({ name: "start_time", type: "varchar", nullable: true })
3467
- ], Timesheet.prototype, "startTime", 2);
3468
- __decorateClass([
3469
- Column23({ name: "end_time", type: "varchar", nullable: true })
3470
- ], Timesheet.prototype, "endTime", 2);
3471
- __decorateClass([
3472
- Column23({ name: "worked_hours", type: "varchar", nullable: true })
3473
- ], Timesheet.prototype, "workedHours", 2);
3474
- __decorateClass([
3475
- Column23({ name: "task_id", type: "integer", nullable: true })
3476
- ], Timesheet.prototype, "taskId", 2);
3477
- __decorateClass([
3478
- Column23({ name: "task_name", type: "varchar", nullable: true })
3479
- ], Timesheet.prototype, "taskName", 2);
3480
- __decorateClass([
3481
- Column23({ name: "description", type: "varchar", nullable: true })
3482
- ], Timesheet.prototype, "description", 2);
3483
- __decorateClass([
3484
- Column23({ name: "week_start_date", type: "date", nullable: true })
3485
- ], Timesheet.prototype, "weekStartDate", 2);
3486
- __decorateClass([
3487
- Column23({ name: "week_end_date", type: "date", nullable: true })
3488
- ], Timesheet.prototype, "weekEndDate", 2);
3489
- __decorateClass([
3490
- Column23({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
3491
- ], Timesheet.prototype, "rejectedAt", 2);
3492
- __decorateClass([
3493
- Column23({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
3494
- ], Timesheet.prototype, "submittedAt", 2);
3495
- __decorateClass([
3496
- Column23({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
3497
- ], Timesheet.prototype, "resubmittedAt", 2);
3498
- __decorateClass([
3499
- Column23({ name: "approved_at", type: "timestamp with time zone", nullable: true })
3500
- ], Timesheet.prototype, "approvedAt", 2);
3501
- __decorateClass([
3502
- Column23({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
3503
- ], Timesheet.prototype, "status", 2);
3504
- __decorateClass([
3505
- Column23({ name: "client_send_back_reason", type: "varchar", nullable: true })
3506
- ], Timesheet.prototype, "clientSendBackReason", 2);
3507
- Timesheet = __decorateClass([
3508
- Entity22("timesheets")
3509
- ], Timesheet);
3269
+ // src/entities/escrow-wallet.entity.ts
3270
+ import { Entity as Entity26, Column as Column27, Index as Index20, JoinColumn as JoinColumn25, OneToOne as OneToOne7, OneToMany as OneToMany10, ManyToOne as ManyToOne25 } from "typeorm";
3271
+
3272
+ // src/entities/escrow-wallet-transaction.entity.ts
3273
+ import { Entity as Entity25, Column as Column26, Index as Index19, ManyToOne as ManyToOne24, JoinColumn as JoinColumn24, OneToOne as OneToOne6 } from "typeorm";
3274
+
3275
+ // src/entities/invoice.entity.ts
3276
+ import { Entity as Entity24, Column as Column25, Index as Index18, JoinColumn as JoinColumn23, ManyToOne as ManyToOne23, OneToOne as OneToOne5 } from "typeorm";
3510
3277
 
3511
3278
  // src/entities/timesheet-line.entity.ts
3512
- import { Entity as Entity26, Column as Column27, Index as Index20, JoinColumn as JoinColumn25, OneToMany as OneToMany10, ManyToOne as ManyToOne25 } from "typeorm";
3279
+ import { Entity as Entity23, Column as Column24, Index as Index17, JoinColumn as JoinColumn22, OneToMany as OneToMany9, ManyToOne as ManyToOne22 } from "typeorm";
3513
3280
 
3514
3281
  // src/entities/timesheet-logs.entity.ts
3515
- import { Entity as Entity23, Column as Column24, Index as Index17, ManyToOne as ManyToOne22, JoinColumn as JoinColumn22 } from "typeorm";
3282
+ import { Entity as Entity21, Column as Column22, Index as Index15, ManyToOne as ManyToOne20, JoinColumn as JoinColumn20 } from "typeorm";
3516
3283
  var TimesheetLogs = class extends BaseEntity {
3517
3284
  };
3518
3285
  __decorateClass([
3519
- Column24({ name: "timesheet_line_id", type: "integer", nullable: false }),
3520
- Index17()
3286
+ Column22({ name: "timesheet_line_id", type: "integer", nullable: false }),
3287
+ Index15()
3521
3288
  ], TimesheetLogs.prototype, "timesheetLineId", 2);
3522
3289
  __decorateClass([
3523
- ManyToOne22(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLogs),
3524
- JoinColumn22({ name: "timesheet_line_id" })
3290
+ ManyToOne20(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLogs),
3291
+ JoinColumn20({ name: "timesheet_line_id" })
3525
3292
  ], TimesheetLogs.prototype, "timesheetLine", 2);
3526
3293
  __decorateClass([
3527
- Column24({
3294
+ Column22({
3528
3295
  name: "start_date",
3529
3296
  type: "date",
3530
3297
  nullable: true
3531
3298
  })
3532
3299
  ], TimesheetLogs.prototype, "startDate", 2);
3533
3300
  __decorateClass([
3534
- Column24({
3301
+ Column22({
3535
3302
  name: "end_date",
3536
3303
  type: "date",
3537
3304
  nullable: true
3538
3305
  })
3539
3306
  ], TimesheetLogs.prototype, "endDate", 2);
3540
3307
  __decorateClass([
3541
- Column24({ name: "start_time", type: "varchar", nullable: true })
3308
+ Column22({ name: "start_time", type: "varchar", nullable: true })
3542
3309
  ], TimesheetLogs.prototype, "startTime", 2);
3543
3310
  __decorateClass([
3544
- Column24({ name: "end_time", type: "varchar", nullable: true })
3311
+ Column22({ name: "end_time", type: "varchar", nullable: true })
3545
3312
  ], TimesheetLogs.prototype, "endTime", 2);
3546
3313
  __decorateClass([
3547
- Column24({ name: "worked_hours", type: "varchar", nullable: true })
3314
+ Column22({ name: "worked_hours", type: "varchar", nullable: true })
3548
3315
  ], TimesheetLogs.prototype, "workedHours", 2);
3549
3316
  __decorateClass([
3550
- Column24({ name: "task_id", type: "integer", nullable: true })
3317
+ Column22({ name: "task_id", type: "integer", nullable: true })
3551
3318
  ], TimesheetLogs.prototype, "taskId", 2);
3552
3319
  __decorateClass([
3553
- Column24({ name: "project_name", type: "varchar", nullable: true })
3320
+ Column22({ name: "project_name", type: "varchar", nullable: true })
3554
3321
  ], TimesheetLogs.prototype, "projectName", 2);
3555
3322
  __decorateClass([
3556
- Column24({ name: "deliverable", type: "varchar", nullable: true })
3323
+ Column22({ name: "deliverable", type: "varchar", nullable: true })
3557
3324
  ], TimesheetLogs.prototype, "deliverable", 2);
3558
3325
  __decorateClass([
3559
- Column24({ name: "task_name", type: "varchar", nullable: true })
3326
+ Column22({ name: "task_name", type: "varchar", nullable: true })
3560
3327
  ], TimesheetLogs.prototype, "taskName", 2);
3561
3328
  __decorateClass([
3562
- Column24({ name: "description", type: "varchar", nullable: true })
3329
+ Column22({ name: "description", type: "varchar", nullable: true })
3563
3330
  ], TimesheetLogs.prototype, "description", 2);
3564
3331
  TimesheetLogs = __decorateClass([
3565
- Entity23("timesheet_logs")
3332
+ Entity21("timesheet_logs")
3566
3333
  ], TimesheetLogs);
3567
3334
 
3568
3335
  // src/entities/timesheet-line-history.entity.ts
3569
- import { Entity as Entity24, Column as Column25, Index as Index18, ManyToOne as ManyToOne23, JoinColumn as JoinColumn23 } from "typeorm";
3336
+ import { Entity as Entity22, Column as Column23, Index as Index16, ManyToOne as ManyToOne21, JoinColumn as JoinColumn21 } from "typeorm";
3570
3337
  var TimesheetLineHistoryStatusEnum = /* @__PURE__ */ ((TimesheetLineHistoryStatusEnum2) => {
3571
3338
  TimesheetLineHistoryStatusEnum2["DRAFT"] = "DRAFT";
3572
3339
  TimesheetLineHistoryStatusEnum2["SEND"] = "SEND";
@@ -3590,19 +3357,19 @@ var TimesheetSubmissionActionEnum = /* @__PURE__ */ ((TimesheetSubmissionActionE
3590
3357
  var TimesheetLineHistory = class extends BaseEntity {
3591
3358
  };
3592
3359
  __decorateClass([
3593
- Column25({ name: "timesheet_line_id", type: "integer", nullable: false }),
3594
- Index18()
3360
+ Column23({ name: "timesheet_line_id", type: "integer", nullable: false }),
3361
+ Index16()
3595
3362
  ], TimesheetLineHistory.prototype, "timesheetLineId", 2);
3596
3363
  __decorateClass([
3597
- ManyToOne23(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLineHistory),
3598
- JoinColumn23({ name: "timesheet_line_id" })
3364
+ ManyToOne21(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLineHistory),
3365
+ JoinColumn21({ name: "timesheet_line_id" })
3599
3366
  ], TimesheetLineHistory.prototype, "timesheetLine", 2);
3600
3367
  __decorateClass([
3601
- Column25({ name: "changed_by", type: "integer", nullable: true }),
3602
- Index18()
3368
+ Column23({ name: "changed_by", type: "integer", nullable: true }),
3369
+ Index16()
3603
3370
  ], TimesheetLineHistory.prototype, "changedBy", 2);
3604
3371
  __decorateClass([
3605
- Column25({
3372
+ Column23({
3606
3373
  name: "previous_status",
3607
3374
  type: "enum",
3608
3375
  enum: TimesheetLineHistoryStatusEnum,
@@ -3610,7 +3377,7 @@ __decorateClass([
3610
3377
  })
3611
3378
  ], TimesheetLineHistory.prototype, "previousStatus", 2);
3612
3379
  __decorateClass([
3613
- Column25({
3380
+ Column23({
3614
3381
  name: "new_status",
3615
3382
  type: "enum",
3616
3383
  enum: TimesheetLineHistoryStatusEnum,
@@ -3618,7 +3385,7 @@ __decorateClass([
3618
3385
  })
3619
3386
  ], TimesheetLineHistory.prototype, "newStatus", 2);
3620
3387
  __decorateClass([
3621
- Column25({
3388
+ Column23({
3622
3389
  name: "action_type",
3623
3390
  type: "enum",
3624
3391
  enum: TimesheetSubmissionActionEnum,
@@ -3626,208 +3393,555 @@ __decorateClass([
3626
3393
  })
3627
3394
  ], TimesheetLineHistory.prototype, "actionType", 2);
3628
3395
  __decorateClass([
3629
- Column25({ name: "remarks", type: "varchar", nullable: true })
3396
+ Column23({ name: "remarks", type: "varchar", nullable: true })
3630
3397
  ], TimesheetLineHistory.prototype, "remarks", 2);
3631
3398
  TimesheetLineHistory = __decorateClass([
3632
- Entity24("timesheet_line_histories")
3399
+ Entity22("timesheet_line_histories")
3633
3400
  ], TimesheetLineHistory);
3634
3401
 
3635
- // src/entities/invoice.entity.ts
3636
- import { Entity as Entity25, Column as Column26, Index as Index19, JoinColumn as JoinColumn24, ManyToOne as ManyToOne24 } from "typeorm";
3637
- var InvoiceTypeEnum = /* @__PURE__ */ ((InvoiceTypeEnum2) => {
3638
- InvoiceTypeEnum2["WEEKLY"] = "WEEKLY";
3639
- InvoiceTypeEnum2["MONTHLY"] = "MONTHLY";
3640
- return InvoiceTypeEnum2;
3641
- })(InvoiceTypeEnum || {});
3642
- var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
3643
- InvoiceStatusEnum2["SUBMITTED"] = "SUBMITTED";
3644
- InvoiceStatusEnum2["UNDER_REVIEW"] = "UNDER_REVIEW";
3645
- InvoiceStatusEnum2["APPROVED"] = "APPROVED";
3646
- InvoiceStatusEnum2["REJECTED"] = "REJECTED";
3647
- return InvoiceStatusEnum2;
3648
- })(InvoiceStatusEnum || {});
3649
- var InvoicePaymentStatusEnum = /* @__PURE__ */ ((InvoicePaymentStatusEnum2) => {
3650
- InvoicePaymentStatusEnum2["PENDING"] = "PENDING";
3651
- InvoicePaymentStatusEnum2["OVERDUE"] = "OVERDUE";
3652
- InvoicePaymentStatusEnum2["INTRANSACTION"] = "INTRANSACTION";
3653
- InvoicePaymentStatusEnum2["PAID"] = "PAID";
3654
- InvoicePaymentStatusEnum2["REFUNDED"] = "REFUNDED";
3655
- return InvoicePaymentStatusEnum2;
3656
- })(InvoicePaymentStatusEnum || {});
3657
- var Invoice = class extends BaseEntity {
3658
- };
3659
- __decorateClass([
3660
- Column26({ name: "timesheet_line_id", type: "integer", nullable: true }),
3661
- Index19()
3662
- ], Invoice.prototype, "timesheetLineId", 2);
3663
- __decorateClass([
3664
- ManyToOne24(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
3665
- JoinColumn24({ name: "timesheet_line_id" })
3666
- ], Invoice.prototype, "timesheetLine", 2);
3667
- __decorateClass([
3668
- Column26({ name: "job_id", type: "integer", nullable: true }),
3669
- Index19()
3670
- ], Invoice.prototype, "jobId", 2);
3671
- __decorateClass([
3672
- ManyToOne24(() => Job, (job) => job.invoice),
3673
- JoinColumn24({ name: "job_id" })
3674
- ], Invoice.prototype, "job", 2);
3675
- __decorateClass([
3676
- Column26({ name: "client_id", type: "integer", nullable: true }),
3677
- Index19()
3402
+ // src/entities/timesheet-line.entity.ts
3403
+ var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
3404
+ TimesheetLineStatusEnum2["DRAFT"] = "DRAFT";
3405
+ TimesheetLineStatusEnum2["SEND"] = "SEND";
3406
+ TimesheetLineStatusEnum2["SEND_BACK"] = "SEND_BACK";
3407
+ TimesheetLineStatusEnum2["APPROVED"] = "APPROVED";
3408
+ TimesheetLineStatusEnum2["REJECTED"] = "REJECTED";
3409
+ TimesheetLineStatusEnum2["PAID"] = "PAID";
3410
+ TimesheetLineStatusEnum2["MISSING"] = "MISSING";
3411
+ TimesheetLineStatusEnum2["ACTIVE"] = "ACTIVE";
3412
+ return TimesheetLineStatusEnum2;
3413
+ })(TimesheetLineStatusEnum || {});
3414
+ var TimesheetLine = class extends BaseEntity {
3415
+ };
3416
+ __decorateClass([
3417
+ Column24({ name: "job_id", type: "integer", nullable: true }),
3418
+ Index17()
3419
+ ], TimesheetLine.prototype, "jobId", 2);
3420
+ __decorateClass([
3421
+ ManyToOne22(() => Job, (job) => job.timesheetLine),
3422
+ JoinColumn22({ name: "job_id" })
3423
+ ], TimesheetLine.prototype, "job", 2);
3424
+ __decorateClass([
3425
+ Column24({ name: "client_id", type: "integer", nullable: true }),
3426
+ Index17()
3427
+ ], TimesheetLine.prototype, "clientId", 2);
3428
+ __decorateClass([
3429
+ ManyToOne22(() => User, (user) => user.clientTimesheetLine),
3430
+ JoinColumn22({ name: "client_id" })
3431
+ ], TimesheetLine.prototype, "client", 2);
3432
+ __decorateClass([
3433
+ Column24({ name: "freelancer_id", type: "integer", nullable: true }),
3434
+ Index17()
3435
+ ], TimesheetLine.prototype, "freelancerId", 2);
3436
+ __decorateClass([
3437
+ ManyToOne22(() => User, (user) => user.freelancerTimesheetLine),
3438
+ JoinColumn22({ name: "freelancer_id" })
3439
+ ], TimesheetLine.prototype, "freelancer", 2);
3440
+ __decorateClass([
3441
+ OneToMany9(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
3442
+ ], TimesheetLine.prototype, "timesheetLogs", 2);
3443
+ __decorateClass([
3444
+ OneToMany9(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
3445
+ ], TimesheetLine.prototype, "timesheetLineHistory", 2);
3446
+ __decorateClass([
3447
+ Column24({ name: "unique_id", type: "varchar", nullable: true })
3448
+ ], TimesheetLine.prototype, "uniqueId", 2);
3449
+ __decorateClass([
3450
+ Column24({
3451
+ name: "week_start_date",
3452
+ type: "date",
3453
+ nullable: true
3454
+ })
3455
+ ], TimesheetLine.prototype, "weekStartDate", 2);
3456
+ __decorateClass([
3457
+ Column24({
3458
+ name: "week_end_date",
3459
+ type: "date",
3460
+ nullable: true
3461
+ })
3462
+ ], TimesheetLine.prototype, "weekEndDate", 2);
3463
+ __decorateClass([
3464
+ Column24({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
3465
+ ], TimesheetLine.prototype, "status", 2);
3466
+ __decorateClass([
3467
+ Column24({ name: "weekly_hours_sum", type: "varchar", nullable: true })
3468
+ ], TimesheetLine.prototype, "weeklyHoursSum", 2);
3469
+ __decorateClass([
3470
+ Column24({ name: "is_invoice_genrated", type: "boolean", default: false })
3471
+ ], TimesheetLine.prototype, "isInvoiceGenrated", 2);
3472
+ __decorateClass([
3473
+ Column24({ name: "is_invoice_approved", type: "boolean", default: false })
3474
+ ], TimesheetLine.prototype, "isInvoiceApproved", 2);
3475
+ __decorateClass([
3476
+ OneToMany9(() => Invoice, (invoice) => invoice.timesheetLine, {
3477
+ cascade: true
3478
+ })
3479
+ ], TimesheetLine.prototype, "invoice", 2);
3480
+ TimesheetLine = __decorateClass([
3481
+ Entity23("timesheet_lines")
3482
+ ], TimesheetLine);
3483
+
3484
+ // src/entities/invoice.entity.ts
3485
+ var InvoiceTypeEnum = /* @__PURE__ */ ((InvoiceTypeEnum2) => {
3486
+ InvoiceTypeEnum2["WEEKLY"] = "WEEKLY";
3487
+ InvoiceTypeEnum2["MONTHLY"] = "MONTHLY";
3488
+ return InvoiceTypeEnum2;
3489
+ })(InvoiceTypeEnum || {});
3490
+ var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
3491
+ InvoiceStatusEnum2["SUBMITTED"] = "SUBMITTED";
3492
+ InvoiceStatusEnum2["UNDER_REVIEW"] = "UNDER_REVIEW";
3493
+ InvoiceStatusEnum2["APPROVED"] = "APPROVED";
3494
+ InvoiceStatusEnum2["REJECTED"] = "REJECTED";
3495
+ return InvoiceStatusEnum2;
3496
+ })(InvoiceStatusEnum || {});
3497
+ var InvoicePaymentStatusEnum = /* @__PURE__ */ ((InvoicePaymentStatusEnum2) => {
3498
+ InvoicePaymentStatusEnum2["PENDING"] = "PENDING";
3499
+ InvoicePaymentStatusEnum2["OVERDUE"] = "OVERDUE";
3500
+ InvoicePaymentStatusEnum2["INTRANSACTION"] = "INTRANSACTION";
3501
+ InvoicePaymentStatusEnum2["PAID"] = "PAID";
3502
+ InvoicePaymentStatusEnum2["REFUNDED"] = "REFUNDED";
3503
+ return InvoicePaymentStatusEnum2;
3504
+ })(InvoicePaymentStatusEnum || {});
3505
+ var Invoice = class extends BaseEntity {
3506
+ };
3507
+ __decorateClass([
3508
+ Column25({ name: "timesheet_line_id", type: "integer", nullable: true }),
3509
+ Index18()
3510
+ ], Invoice.prototype, "timesheetLineId", 2);
3511
+ __decorateClass([
3512
+ ManyToOne23(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
3513
+ JoinColumn23({ name: "timesheet_line_id" })
3514
+ ], Invoice.prototype, "timesheetLine", 2);
3515
+ __decorateClass([
3516
+ Column25({ name: "job_id", type: "integer", nullable: true }),
3517
+ Index18()
3518
+ ], Invoice.prototype, "jobId", 2);
3519
+ __decorateClass([
3520
+ ManyToOne23(() => Job, (job) => job.invoice),
3521
+ JoinColumn23({ name: "job_id" })
3522
+ ], Invoice.prototype, "job", 2);
3523
+ __decorateClass([
3524
+ Column25({ name: "client_id", type: "integer", nullable: true }),
3525
+ Index18()
3678
3526
  ], Invoice.prototype, "clientId", 2);
3679
3527
  __decorateClass([
3680
- ManyToOne24(() => User, (user) => user.clientInvoice),
3681
- JoinColumn24({ name: "client_id" })
3528
+ ManyToOne23(() => User, (user) => user.clientInvoice),
3529
+ JoinColumn23({ name: "client_id" })
3682
3530
  ], Invoice.prototype, "client", 2);
3683
3531
  __decorateClass([
3684
- Column26({ name: "freelancer_id", type: "integer", nullable: true }),
3685
- Index19()
3532
+ Column25({ name: "freelancer_id", type: "integer", nullable: true }),
3533
+ Index18()
3686
3534
  ], Invoice.prototype, "freelancerId", 2);
3687
3535
  __decorateClass([
3688
- ManyToOne24(() => User, (user) => user.freelancerInvoice),
3689
- JoinColumn24({ name: "freelancer_id" })
3536
+ ManyToOne23(() => User, (user) => user.freelancerInvoice),
3537
+ JoinColumn23({ name: "freelancer_id" })
3690
3538
  ], Invoice.prototype, "freelancer", 2);
3691
3539
  __decorateClass([
3692
- Column26({ name: "invoice_unique_id", type: "varchar", nullable: true })
3540
+ Column25({ name: "invoice_unique_id", type: "varchar", nullable: true })
3693
3541
  ], Invoice.prototype, "invoiceUniqueId", 2);
3694
3542
  __decorateClass([
3695
- Column26({
3543
+ Column25({
3696
3544
  name: "issued_at",
3697
3545
  type: "date",
3698
3546
  nullable: true
3699
3547
  })
3700
3548
  ], Invoice.prototype, "issuedAt", 2);
3701
3549
  __decorateClass([
3702
- Column26({
3550
+ Column25({
3703
3551
  name: "due_at",
3704
3552
  type: "date",
3705
3553
  nullable: true
3706
3554
  })
3707
3555
  ], Invoice.prototype, "dueAt", 2);
3708
3556
  __decorateClass([
3709
- Column26({
3557
+ Column25({
3710
3558
  name: "billing_cycle_from",
3711
3559
  type: "date",
3712
3560
  nullable: true
3713
3561
  })
3714
3562
  ], Invoice.prototype, "billingCycleFrom", 2);
3715
3563
  __decorateClass([
3716
- Column26({
3564
+ Column25({
3717
3565
  name: "billing_cycle_to",
3718
3566
  type: "date",
3719
3567
  nullable: true
3720
3568
  })
3721
3569
  ], Invoice.prototype, "billingCycleTo", 2);
3722
3570
  __decorateClass([
3723
- Column26({ name: "billing_hours", type: "varchar", nullable: true })
3571
+ Column25({ name: "billing_hours", type: "varchar", nullable: true })
3724
3572
  ], Invoice.prototype, "billingHours", 2);
3725
3573
  __decorateClass([
3726
- Column26({ name: "hourly_rate", type: "varchar", nullable: true })
3574
+ Column25({ name: "hourly_rate", type: "varchar", nullable: true })
3727
3575
  ], Invoice.prototype, "hourlyRate", 2);
3728
3576
  __decorateClass([
3729
- Column26({ name: "billing_amount", type: "varchar", nullable: true })
3577
+ Column25({ name: "billing_amount", type: "varchar", nullable: true })
3730
3578
  ], Invoice.prototype, "billingAmount", 2);
3731
3579
  __decorateClass([
3732
- Column26({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
3580
+ Column25({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
3733
3581
  ], Invoice.prototype, "invoiceType", 2);
3734
3582
  __decorateClass([
3735
- Column26({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
3583
+ Column25({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
3736
3584
  ], Invoice.prototype, "status", 2);
3737
3585
  __decorateClass([
3738
- Column26({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
3586
+ Column25({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
3739
3587
  ], Invoice.prototype, "paymentStatus", 2);
3740
3588
  __decorateClass([
3741
- Column26({ name: "client_invoice_url", type: "varchar", nullable: true })
3589
+ Column25({ name: "client_invoice_url", type: "varchar", nullable: true })
3742
3590
  ], Invoice.prototype, "clientInvoiceUrl", 2);
3743
3591
  __decorateClass([
3744
- Column26({ name: "freelancer_invoice_url", type: "varchar", nullable: true })
3592
+ Column25({ name: "freelancer_invoice_url", type: "varchar", nullable: true })
3745
3593
  ], Invoice.prototype, "freelancerInvoiceUrl", 2);
3594
+ __decorateClass([
3595
+ OneToOne5(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.invoice)
3596
+ ], Invoice.prototype, "escrowWalletTransaction", 2);
3746
3597
  Invoice = __decorateClass([
3747
- Entity25("invoices")
3598
+ Entity24("invoices")
3748
3599
  ], Invoice);
3749
3600
 
3750
- // src/entities/timesheet-line.entity.ts
3751
- var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
3752
- TimesheetLineStatusEnum2["DRAFT"] = "DRAFT";
3753
- TimesheetLineStatusEnum2["SEND"] = "SEND";
3754
- TimesheetLineStatusEnum2["SEND_BACK"] = "SEND_BACK";
3755
- TimesheetLineStatusEnum2["APPROVED"] = "APPROVED";
3756
- TimesheetLineStatusEnum2["REJECTED"] = "REJECTED";
3757
- TimesheetLineStatusEnum2["PAID"] = "PAID";
3758
- TimesheetLineStatusEnum2["MISSING"] = "MISSING";
3759
- TimesheetLineStatusEnum2["ACTIVE"] = "ACTIVE";
3760
- return TimesheetLineStatusEnum2;
3761
- })(TimesheetLineStatusEnum || {});
3762
- var TimesheetLine = class extends BaseEntity {
3601
+ // src/entities/escrow-wallet-transaction.entity.ts
3602
+ var EscrowWalletTransactionTypeEnum = /* @__PURE__ */ ((EscrowWalletTransactionTypeEnum2) => {
3603
+ EscrowWalletTransactionTypeEnum2["CR"] = "CR";
3604
+ EscrowWalletTransactionTypeEnum2["DR"] = "DR";
3605
+ return EscrowWalletTransactionTypeEnum2;
3606
+ })(EscrowWalletTransactionTypeEnum || {});
3607
+ var EscrowWalletTransactionForEnum = /* @__PURE__ */ ((EscrowWalletTransactionForEnum2) => {
3608
+ EscrowWalletTransactionForEnum2["CONTRACT"] = "CONTRACT";
3609
+ EscrowWalletTransactionForEnum2["INVOICE"] = "INVOICE";
3610
+ return EscrowWalletTransactionForEnum2;
3611
+ })(EscrowWalletTransactionForEnum || {});
3612
+ var EscrowWalletTransaction = class extends BaseEntity {
3613
+ };
3614
+ __decorateClass([
3615
+ Column26({ name: "escrow_wallet_id", type: "integer", nullable: true }),
3616
+ Index19()
3617
+ ], EscrowWalletTransaction.prototype, "escrowWalletId", 2);
3618
+ __decorateClass([
3619
+ ManyToOne24(() => EscrowWallet, (escrowWallet) => escrowWallet.escrowWalletTransactions),
3620
+ JoinColumn24({ name: "wallet_id" })
3621
+ ], EscrowWalletTransaction.prototype, "escrowWallet", 2);
3622
+ __decorateClass([
3623
+ Column26({ name: "invoice_id", type: "integer", nullable: true }),
3624
+ Index19()
3625
+ ], EscrowWalletTransaction.prototype, "invoiceId", 2);
3626
+ __decorateClass([
3627
+ OneToOne6(() => Invoice, (invoice) => invoice.escrowWalletTransaction),
3628
+ JoinColumn24({ name: "invoice_id" })
3629
+ ], EscrowWalletTransaction.prototype, "invoice", 2);
3630
+ __decorateClass([
3631
+ Column26({ name: "amount", type: "bigint", nullable: true })
3632
+ ], EscrowWalletTransaction.prototype, "amount", 2);
3633
+ __decorateClass([
3634
+ Column26({ name: "escrow_type", type: "enum", enum: EscrowWalletTransactionTypeEnum })
3635
+ ], EscrowWalletTransaction.prototype, "escrowType", 2);
3636
+ __decorateClass([
3637
+ Column26({ name: "description", type: "text", nullable: true })
3638
+ ], EscrowWalletTransaction.prototype, "description", 2);
3639
+ __decorateClass([
3640
+ Column26({ name: "completed_at", type: "timestamptz", nullable: true })
3641
+ ], EscrowWalletTransaction.prototype, "completedAt", 2);
3642
+ __decorateClass([
3643
+ Column26({ name: "escrow_transaction_for", type: "enum", enum: EscrowWalletTransactionForEnum })
3644
+ ], EscrowWalletTransaction.prototype, "escrowTransactionFor", 2);
3645
+ __decorateClass([
3646
+ Column26({ name: "meta_data", type: "varchar", nullable: true })
3647
+ ], EscrowWalletTransaction.prototype, "metaData", 2);
3648
+ EscrowWalletTransaction = __decorateClass([
3649
+ Entity25("escrow_wallet_transactions")
3650
+ ], EscrowWalletTransaction);
3651
+
3652
+ // src/entities/escrow-wallet.entity.ts
3653
+ var EscrowWallet = class extends BaseEntity {
3763
3654
  };
3764
3655
  __decorateClass([
3765
3656
  Column27({ name: "job_id", type: "integer", nullable: true }),
3766
3657
  Index20()
3767
- ], TimesheetLine.prototype, "jobId", 2);
3658
+ ], EscrowWallet.prototype, "jobId", 2);
3768
3659
  __decorateClass([
3769
- ManyToOne25(() => Job, (job) => job.timesheetLine),
3660
+ ManyToOne25(() => Job, (job) => job.escrowWallets),
3770
3661
  JoinColumn25({ name: "job_id" })
3771
- ], TimesheetLine.prototype, "job", 2);
3662
+ ], EscrowWallet.prototype, "job", 2);
3772
3663
  __decorateClass([
3773
3664
  Column27({ name: "client_id", type: "integer", nullable: true }),
3774
3665
  Index20()
3775
- ], TimesheetLine.prototype, "clientId", 2);
3666
+ ], EscrowWallet.prototype, "clientId", 2);
3776
3667
  __decorateClass([
3777
- ManyToOne25(() => User, (user) => user.clientTimesheetLine),
3668
+ ManyToOne25(() => User, (user) => user.clientEscrowWallets),
3778
3669
  JoinColumn25({ name: "client_id" })
3779
- ], TimesheetLine.prototype, "client", 2);
3670
+ ], EscrowWallet.prototype, "client", 2);
3780
3671
  __decorateClass([
3781
3672
  Column27({ name: "freelancer_id", type: "integer", nullable: true }),
3782
3673
  Index20()
3783
- ], TimesheetLine.prototype, "freelancerId", 2);
3674
+ ], EscrowWallet.prototype, "freelancerId", 2);
3784
3675
  __decorateClass([
3785
- ManyToOne25(() => User, (user) => user.freelancerTimesheetLine),
3676
+ ManyToOne25(() => User, (user) => user.freelancerEscrowWallets),
3786
3677
  JoinColumn25({ name: "freelancer_id" })
3787
- ], TimesheetLine.prototype, "freelancer", 2);
3678
+ ], EscrowWallet.prototype, "freelancer", 2);
3788
3679
  __decorateClass([
3789
- OneToMany10(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
3790
- ], TimesheetLine.prototype, "timesheetLogs", 2);
3680
+ Column27({ name: "contract_id", type: "integer", nullable: true }),
3681
+ Index20()
3682
+ ], EscrowWallet.prototype, "contractId", 2);
3791
3683
  __decorateClass([
3792
- OneToMany10(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
3793
- ], TimesheetLine.prototype, "timesheetLineHistory", 2);
3684
+ OneToOne7(() => Contract, (contract) => contract.escrowWallet),
3685
+ JoinColumn25({ name: "contract_id" })
3686
+ ], EscrowWallet.prototype, "contract", 2);
3794
3687
  __decorateClass([
3795
- Column27({ name: "unique_id", type: "varchar", nullable: true })
3796
- ], TimesheetLine.prototype, "uniqueId", 2);
3688
+ Column27({ name: "wallet_balance", type: "varchar", default: "0" })
3689
+ ], EscrowWallet.prototype, "escrowBalance", 2);
3797
3690
  __decorateClass([
3798
- Column27({
3799
- name: "week_start_date",
3691
+ Column27({ name: "metadata", type: "jsonb", nullable: true })
3692
+ ], EscrowWallet.prototype, "metadata", 2);
3693
+ __decorateClass([
3694
+ OneToMany10(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.escrowWallet)
3695
+ ], EscrowWallet.prototype, "escrowWalletTransactions", 2);
3696
+ EscrowWallet = __decorateClass([
3697
+ Entity26("escrow_wallets")
3698
+ ], EscrowWallet);
3699
+
3700
+ // src/entities/contract.entity.ts
3701
+ var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
3702
+ ContractStatusEnum2["GENERATED"] = "GENERATED";
3703
+ ContractStatusEnum2["DRAFTED"] = "DRAFTED";
3704
+ ContractStatusEnum2["SENT"] = "SENT";
3705
+ ContractStatusEnum2["SIGNED"] = "SIGNED";
3706
+ ContractStatusEnum2["ACTIVE"] = "ACTIVE";
3707
+ ContractStatusEnum2["CANCELLED"] = "CANCELLED";
3708
+ ContractStatusEnum2["DISPUTED"] = "DISPUTED";
3709
+ ContractStatusEnum2["REJECTED"] = "REJECTED";
3710
+ ContractStatusEnum2["RENEWED"] = "RENEWED";
3711
+ ContractStatusEnum2["EXPIRED"] = "EXPIRED";
3712
+ return ContractStatusEnum2;
3713
+ })(ContractStatusEnum || {});
3714
+ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
3715
+ ContractTypeEnum2["NDA"] = "NDA";
3716
+ ContractTypeEnum2["WORK"] = "WORK";
3717
+ return ContractTypeEnum2;
3718
+ })(ContractTypeEnum || {});
3719
+ var Contract = class extends BaseEntity {
3720
+ };
3721
+ __decorateClass([
3722
+ Column28({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3723
+ ], Contract.prototype, "contractUniqueId", 2);
3724
+ __decorateClass([
3725
+ Column28({ name: "job_id", type: "integer", nullable: true }),
3726
+ Index21()
3727
+ ], Contract.prototype, "jobId", 2);
3728
+ __decorateClass([
3729
+ ManyToOne26(() => Job, (job) => job.contracts),
3730
+ JoinColumn26({ name: "job_id" })
3731
+ ], Contract.prototype, "job", 2);
3732
+ __decorateClass([
3733
+ Column28({ name: "client_id", type: "integer", nullable: true }),
3734
+ Index21()
3735
+ ], Contract.prototype, "clientId", 2);
3736
+ __decorateClass([
3737
+ ManyToOne26(() => User, (user) => user.clientContracts),
3738
+ JoinColumn26({ name: "client_id" })
3739
+ ], Contract.prototype, "client", 2);
3740
+ __decorateClass([
3741
+ Column28({ name: "freelancer_id", type: "integer", nullable: true }),
3742
+ Index21()
3743
+ ], Contract.prototype, "freelancerId", 2);
3744
+ __decorateClass([
3745
+ ManyToOne26(() => User, (user) => user.freelancerContracts),
3746
+ JoinColumn26({ name: "freelancer_id" })
3747
+ ], Contract.prototype, "freelancer", 2);
3748
+ __decorateClass([
3749
+ Column28({ name: "duration", type: "integer", nullable: true })
3750
+ ], Contract.prototype, "duration", 2);
3751
+ __decorateClass([
3752
+ Column28({
3753
+ name: "status",
3754
+ type: "enum",
3755
+ enum: ContractStatusEnum,
3756
+ nullable: true
3757
+ })
3758
+ ], Contract.prototype, "status", 2);
3759
+ __decorateClass([
3760
+ Column28({
3761
+ name: "type",
3762
+ type: "enum",
3763
+ enum: ContractTypeEnum,
3764
+ nullable: true
3765
+ })
3766
+ ], Contract.prototype, "type", 2);
3767
+ __decorateClass([
3768
+ Column28({ name: "invoicing_cycle", type: "varchar", nullable: true })
3769
+ ], Contract.prototype, "invoicingCycle", 2);
3770
+ __decorateClass([
3771
+ Column28({
3772
+ name: "escrow_deposite_amount",
3773
+ type: "decimal",
3774
+ precision: 10,
3775
+ scale: 2,
3776
+ nullable: true
3777
+ })
3778
+ ], Contract.prototype, "escrowDepositeAmount", 2);
3779
+ __decorateClass([
3780
+ Column28({
3781
+ name: "start_date",
3782
+ type: "timestamp with time zone",
3783
+ nullable: true
3784
+ })
3785
+ ], Contract.prototype, "startDate", 2);
3786
+ __decorateClass([
3787
+ Column28({
3788
+ name: "end_date",
3789
+ type: "timestamp with time zone",
3790
+ nullable: true
3791
+ })
3792
+ ], Contract.prototype, "endDate", 2);
3793
+ __decorateClass([
3794
+ Column28({ name: "original_document_url", type: "varchar", nullable: true })
3795
+ ], Contract.prototype, "originalDocumentUrl", 2);
3796
+ __decorateClass([
3797
+ Column28({ name: "contract_document_url", type: "varchar", nullable: true })
3798
+ ], Contract.prototype, "contractDocumentUrl", 2);
3799
+ __decorateClass([
3800
+ Column28({
3801
+ name: "client_signed_at",
3802
+ type: "timestamp with time zone",
3803
+ nullable: true
3804
+ })
3805
+ ], Contract.prototype, "clientSignedAt", 2);
3806
+ __decorateClass([
3807
+ Column28({ name: "freelancer_viewed", type: "boolean", default: false })
3808
+ ], Contract.prototype, "freelancerViewed", 2);
3809
+ __decorateClass([
3810
+ Column28({
3811
+ name: "freelancer_viewed_at",
3812
+ type: "timestamp with time zone",
3813
+ nullable: true
3814
+ })
3815
+ ], Contract.prototype, "freelancerViewedAt", 2);
3816
+ __decorateClass([
3817
+ Column28({
3818
+ name: "freelancer_signed_at",
3819
+ type: "timestamp with time zone",
3820
+ nullable: true
3821
+ })
3822
+ ], Contract.prototype, "freelancerSignedAt", 2);
3823
+ __decorateClass([
3824
+ Column28({
3825
+ name: "rejectd_at",
3826
+ type: "timestamp with time zone",
3827
+ nullable: true
3828
+ })
3829
+ ], Contract.prototype, "rejectedAt", 2);
3830
+ __decorateClass([
3831
+ Column28({ name: "reject_reason", type: "varchar", nullable: true })
3832
+ ], Contract.prototype, "rejectReason", 2);
3833
+ __decorateClass([
3834
+ Column28({ name: "is_work_contract_sent", type: "boolean", default: false })
3835
+ ], Contract.prototype, "isWorkContractSent", 2);
3836
+ __decorateClass([
3837
+ Column28({ name: "is_escrow_deposited", type: "boolean", default: false })
3838
+ ], Contract.prototype, "isEscrowDeposited", 2);
3839
+ __decorateClass([
3840
+ Column28({ name: "signature_positions", type: "jsonb", nullable: true })
3841
+ ], Contract.prototype, "signaturePositions", 2);
3842
+ __decorateClass([
3843
+ OneToOne8(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
3844
+ ], Contract.prototype, "escrowWallet", 2);
3845
+ Contract = __decorateClass([
3846
+ Entity27("contracts")
3847
+ ], Contract);
3848
+
3849
+ // src/entities/timesheets.entity.ts
3850
+ import { Entity as Entity28, Column as Column29, Index as Index22, JoinColumn as JoinColumn27, ManyToOne as ManyToOne27 } from "typeorm";
3851
+ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
3852
+ TimesheetStatusEnum2["DRAFT"] = "DRAFT";
3853
+ TimesheetStatusEnum2["SEND"] = "SEND";
3854
+ TimesheetStatusEnum2["SEND_BACK"] = "SEND_BACK";
3855
+ TimesheetStatusEnum2["APPROVED"] = "APPROVED";
3856
+ TimesheetStatusEnum2["REJECTED"] = "REJECTED";
3857
+ TimesheetStatusEnum2["PAID"] = "PAID";
3858
+ return TimesheetStatusEnum2;
3859
+ })(TimesheetStatusEnum || {});
3860
+ var Timesheet = class extends BaseEntity {
3861
+ };
3862
+ __decorateClass([
3863
+ Column29({ name: "job_id", type: "integer", nullable: true }),
3864
+ Index22()
3865
+ ], Timesheet.prototype, "jobId", 2);
3866
+ __decorateClass([
3867
+ ManyToOne27(() => Job, (job) => job.timesheets),
3868
+ JoinColumn27({ name: "job_id" })
3869
+ ], Timesheet.prototype, "job", 2);
3870
+ __decorateClass([
3871
+ Column29({ name: "client_id", type: "integer", nullable: true }),
3872
+ Index22()
3873
+ ], Timesheet.prototype, "clientId", 2);
3874
+ __decorateClass([
3875
+ ManyToOne27(() => User, (user) => user.clientTimesheets),
3876
+ JoinColumn27({ name: "client_id" })
3877
+ ], Timesheet.prototype, "client", 2);
3878
+ __decorateClass([
3879
+ Column29({ name: "freelancer_id", type: "integer", nullable: true }),
3880
+ Index22()
3881
+ ], Timesheet.prototype, "freelancerId", 2);
3882
+ __decorateClass([
3883
+ ManyToOne27(() => User, (user) => user.freelancerTimesheets),
3884
+ JoinColumn27({ name: "freelancer_id" })
3885
+ ], Timesheet.prototype, "freelancer", 2);
3886
+ __decorateClass([
3887
+ Column29({
3888
+ name: "start_date",
3800
3889
  type: "date",
3801
3890
  nullable: true
3802
3891
  })
3803
- ], TimesheetLine.prototype, "weekStartDate", 2);
3892
+ ], Timesheet.prototype, "startDate", 2);
3804
3893
  __decorateClass([
3805
- Column27({
3806
- name: "week_end_date",
3894
+ Column29({
3895
+ name: "end_date",
3807
3896
  type: "date",
3808
3897
  nullable: true
3809
3898
  })
3810
- ], TimesheetLine.prototype, "weekEndDate", 2);
3899
+ ], Timesheet.prototype, "endDate", 2);
3811
3900
  __decorateClass([
3812
- Column27({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
3813
- ], TimesheetLine.prototype, "status", 2);
3901
+ Column29({ name: "start_time", type: "varchar", nullable: true })
3902
+ ], Timesheet.prototype, "startTime", 2);
3814
3903
  __decorateClass([
3815
- Column27({ name: "weekly_hours_sum", type: "varchar", nullable: true })
3816
- ], TimesheetLine.prototype, "weeklyHoursSum", 2);
3904
+ Column29({ name: "end_time", type: "varchar", nullable: true })
3905
+ ], Timesheet.prototype, "endTime", 2);
3817
3906
  __decorateClass([
3818
- Column27({ name: "is_invoice_genrated", type: "boolean", default: false })
3819
- ], TimesheetLine.prototype, "isInvoiceGenrated", 2);
3907
+ Column29({ name: "worked_hours", type: "varchar", nullable: true })
3908
+ ], Timesheet.prototype, "workedHours", 2);
3820
3909
  __decorateClass([
3821
- Column27({ name: "is_invoice_approved", type: "boolean", default: false })
3822
- ], TimesheetLine.prototype, "isInvoiceApproved", 2);
3910
+ Column29({ name: "task_id", type: "integer", nullable: true })
3911
+ ], Timesheet.prototype, "taskId", 2);
3823
3912
  __decorateClass([
3824
- OneToMany10(() => Invoice, (invoice) => invoice.timesheetLine, {
3825
- cascade: true
3826
- })
3827
- ], TimesheetLine.prototype, "invoice", 2);
3828
- TimesheetLine = __decorateClass([
3829
- Entity26("timesheet_lines")
3830
- ], TimesheetLine);
3913
+ Column29({ name: "task_name", type: "varchar", nullable: true })
3914
+ ], Timesheet.prototype, "taskName", 2);
3915
+ __decorateClass([
3916
+ Column29({ name: "description", type: "varchar", nullable: true })
3917
+ ], Timesheet.prototype, "description", 2);
3918
+ __decorateClass([
3919
+ Column29({ name: "week_start_date", type: "date", nullable: true })
3920
+ ], Timesheet.prototype, "weekStartDate", 2);
3921
+ __decorateClass([
3922
+ Column29({ name: "week_end_date", type: "date", nullable: true })
3923
+ ], Timesheet.prototype, "weekEndDate", 2);
3924
+ __decorateClass([
3925
+ Column29({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
3926
+ ], Timesheet.prototype, "rejectedAt", 2);
3927
+ __decorateClass([
3928
+ Column29({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
3929
+ ], Timesheet.prototype, "submittedAt", 2);
3930
+ __decorateClass([
3931
+ Column29({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
3932
+ ], Timesheet.prototype, "resubmittedAt", 2);
3933
+ __decorateClass([
3934
+ Column29({ name: "approved_at", type: "timestamp with time zone", nullable: true })
3935
+ ], Timesheet.prototype, "approvedAt", 2);
3936
+ __decorateClass([
3937
+ Column29({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
3938
+ ], Timesheet.prototype, "status", 2);
3939
+ __decorateClass([
3940
+ Column29({ name: "client_send_back_reason", type: "varchar", nullable: true })
3941
+ ], Timesheet.prototype, "clientSendBackReason", 2);
3942
+ Timesheet = __decorateClass([
3943
+ Entity28("timesheets")
3944
+ ], Timesheet);
3831
3945
 
3832
3946
  // src/entities/job.entity.ts
3833
3947
  var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
@@ -3870,55 +3984,55 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
3870
3984
  var Job = class extends BaseEntity {
3871
3985
  };
3872
3986
  __decorateClass([
3873
- Column28({ name: "job_id", type: "varchar", unique: true, nullable: true })
3987
+ Column30({ name: "job_id", type: "varchar", unique: true, nullable: true })
3874
3988
  ], Job.prototype, "jobId", 2);
3875
3989
  // individual index to find jobs by user
3876
3990
  __decorateClass([
3877
- Column28({ name: "user_id", type: "integer", nullable: true }),
3878
- Index21()
3991
+ Column30({ name: "user_id", type: "integer", nullable: true }),
3992
+ Index23()
3879
3993
  ], Job.prototype, "userId", 2);
3880
3994
  __decorateClass([
3881
- ManyToOne26(() => User, (user) => user.jobs),
3882
- JoinColumn26({ name: "user_id" })
3995
+ ManyToOne28(() => User, (user) => user.jobs),
3996
+ JoinColumn28({ name: "user_id" })
3883
3997
  ], Job.prototype, "user", 2);
3884
3998
  __decorateClass([
3885
- Column28({ name: "country_id", type: "int", nullable: true })
3999
+ Column30({ name: "country_id", type: "int", nullable: true })
3886
4000
  ], Job.prototype, "countryId", 2);
3887
4001
  __decorateClass([
3888
- ManyToOne26(() => Country),
3889
- JoinColumn26({ name: "country_id" })
4002
+ ManyToOne28(() => Country),
4003
+ JoinColumn28({ name: "country_id" })
3890
4004
  ], Job.prototype, "country", 2);
3891
4005
  __decorateClass([
3892
- Column28({ name: "state_id", type: "int", nullable: true })
4006
+ Column30({ name: "state_id", type: "int", nullable: true })
3893
4007
  ], Job.prototype, "stateId", 2);
3894
4008
  __decorateClass([
3895
- ManyToOne26(() => State),
3896
- JoinColumn26({ name: "state_id" })
4009
+ ManyToOne28(() => State),
4010
+ JoinColumn28({ name: "state_id" })
3897
4011
  ], Job.prototype, "state", 2);
3898
4012
  __decorateClass([
3899
- Column28({ name: "city_id", type: "int", nullable: true })
4013
+ Column30({ name: "city_id", type: "int", nullable: true })
3900
4014
  ], Job.prototype, "cityId", 2);
3901
4015
  __decorateClass([
3902
- ManyToOne26(() => City),
3903
- JoinColumn26({ name: "city_id" })
4016
+ ManyToOne28(() => City),
4017
+ JoinColumn28({ name: "city_id" })
3904
4018
  ], Job.prototype, "city", 2);
3905
4019
  __decorateClass([
3906
- Column28({ name: "job_role", type: "varchar", nullable: true })
4020
+ Column30({ name: "job_role", type: "varchar", nullable: true })
3907
4021
  ], Job.prototype, "jobRole", 2);
3908
4022
  __decorateClass([
3909
- Column28({ name: "job_role_canonical_name", type: "varchar", nullable: true })
4023
+ Column30({ name: "job_role_canonical_name", type: "varchar", nullable: true })
3910
4024
  ], Job.prototype, "jobRoleCanonicalName", 2);
3911
4025
  __decorateClass([
3912
- Column28({ name: "project_name", type: "varchar", nullable: true })
4026
+ Column30({ name: "project_name", type: "varchar", nullable: true })
3913
4027
  ], Job.prototype, "projectName", 2);
3914
4028
  __decorateClass([
3915
- Column28({ name: "note", type: "varchar", nullable: true })
4029
+ Column30({ name: "note", type: "varchar", nullable: true })
3916
4030
  ], Job.prototype, "note", 2);
3917
4031
  __decorateClass([
3918
- Column28({ name: "openings", type: "integer", default: 0 })
4032
+ Column30({ name: "openings", type: "integer", default: 0 })
3919
4033
  ], Job.prototype, "openings", 2);
3920
4034
  __decorateClass([
3921
- Column28({
4035
+ Column30({
3922
4036
  name: "location",
3923
4037
  type: "enum",
3924
4038
  enum: JobLocationEnum,
@@ -3926,7 +4040,7 @@ __decorateClass([
3926
4040
  })
3927
4041
  ], Job.prototype, "location", 2);
3928
4042
  __decorateClass([
3929
- Column28({
4043
+ Column30({
3930
4044
  name: "type_of_employment",
3931
4045
  type: "enum",
3932
4046
  enum: TypeOfEmploymentEnum,
@@ -3934,19 +4048,19 @@ __decorateClass([
3934
4048
  })
3935
4049
  ], Job.prototype, "typeOfEmployment", 2);
3936
4050
  __decorateClass([
3937
- Column28({ name: "academic_qualifictaion", type: "varchar", nullable: true })
4051
+ Column30({ name: "academic_qualifictaion", type: "varchar", nullable: true })
3938
4052
  ], Job.prototype, "academicQualification", 2);
3939
4053
  __decorateClass([
3940
- Column28({ name: "years_of_experience", type: "varchar", nullable: true })
4054
+ Column30({ name: "years_of_experience", type: "varchar", nullable: true })
3941
4055
  ], Job.prototype, "yearsOfExperience", 2);
3942
4056
  __decorateClass([
3943
- Column28({ name: "business_industry", type: "varchar", nullable: true })
4057
+ Column30({ name: "business_industry", type: "varchar", nullable: true })
3944
4058
  ], Job.prototype, "businessIndustry", 2);
3945
4059
  __decorateClass([
3946
- Column28({ name: "currency", type: "varchar", default: "USD" })
4060
+ Column30({ name: "currency", type: "varchar", default: "USD" })
3947
4061
  ], Job.prototype, "currency", 2);
3948
4062
  __decorateClass([
3949
- Column28({
4063
+ Column30({
3950
4064
  name: "expected_salary_from",
3951
4065
  type: "decimal",
3952
4066
  precision: 10,
@@ -3955,14 +4069,14 @@ __decorateClass([
3955
4069
  })
3956
4070
  ], Job.prototype, "expectedSalaryFrom", 2);
3957
4071
  __decorateClass([
3958
- Column28({
4072
+ Column30({
3959
4073
  name: "hide_expected_salary_from",
3960
4074
  type: "boolean",
3961
4075
  default: false
3962
4076
  })
3963
4077
  ], Job.prototype, "hideExpectedSalaryFrom", 2);
3964
4078
  __decorateClass([
3965
- Column28({
4079
+ Column30({
3966
4080
  name: "expected_salary_to",
3967
4081
  type: "decimal",
3968
4082
  precision: 10,
@@ -3971,32 +4085,32 @@ __decorateClass([
3971
4085
  })
3972
4086
  ], Job.prototype, "expectedSalaryTo", 2);
3973
4087
  __decorateClass([
3974
- Column28({
4088
+ Column30({
3975
4089
  name: "hide_expected_salary_to",
3976
4090
  type: "boolean",
3977
4091
  default: false
3978
4092
  })
3979
4093
  ], Job.prototype, "hideExpectedSalaryTo", 2);
3980
4094
  __decorateClass([
3981
- Column28({ name: "years", type: "varchar", nullable: true })
4095
+ Column30({ name: "years", type: "varchar", nullable: true })
3982
4096
  ], Job.prototype, "years", 2);
3983
4097
  __decorateClass([
3984
- Column28({ name: "months", type: "varchar", nullable: true })
4098
+ Column30({ name: "months", type: "varchar", nullable: true })
3985
4099
  ], Job.prototype, "months", 2);
3986
4100
  __decorateClass([
3987
- Column28({ name: "weeks", type: "varchar", nullable: true })
4101
+ Column30({ name: "weeks", type: "varchar", nullable: true })
3988
4102
  ], Job.prototype, "weeks", 2);
3989
4103
  __decorateClass([
3990
- Column28({ name: "days", type: "varchar", nullable: true })
4104
+ Column30({ name: "days", type: "varchar", nullable: true })
3991
4105
  ], Job.prototype, "days", 2);
3992
4106
  __decorateClass([
3993
- Column28({ name: "tentative_start_date", type: "date", nullable: true })
4107
+ Column30({ name: "tentative_start_date", type: "date", nullable: true })
3994
4108
  ], Job.prototype, "tentativeStartDate", 2);
3995
4109
  __decorateClass([
3996
- Column28({ name: "tentative_end_date", type: "date", nullable: true })
4110
+ Column30({ name: "tentative_end_date", type: "date", nullable: true })
3997
4111
  ], Job.prototype, "tentativeEndDate", 2);
3998
4112
  __decorateClass([
3999
- Column28({
4113
+ Column30({
4000
4114
  name: "duration_type",
4001
4115
  type: "enum",
4002
4116
  enum: DurationTypeEnum,
@@ -4004,10 +4118,10 @@ __decorateClass([
4004
4118
  })
4005
4119
  ], Job.prototype, "durationType", 2);
4006
4120
  __decorateClass([
4007
- Column28({ name: "duration", type: "varchar", nullable: true })
4121
+ Column30({ name: "duration", type: "varchar", nullable: true })
4008
4122
  ], Job.prototype, "duration", 2);
4009
4123
  __decorateClass([
4010
- Column28({
4124
+ Column30({
4011
4125
  name: "number_of_hours",
4012
4126
  type: "decimal",
4013
4127
  precision: 4,
@@ -4016,13 +4130,13 @@ __decorateClass([
4016
4130
  })
4017
4131
  ], Job.prototype, "numberOfHours", 2);
4018
4132
  __decorateClass([
4019
- Column28({ name: "description", type: "varchar", nullable: true })
4133
+ Column30({ name: "description", type: "varchar", nullable: true })
4020
4134
  ], Job.prototype, "description", 2);
4021
4135
  __decorateClass([
4022
- Column28({ name: "additional_comment", type: "varchar", nullable: true })
4136
+ Column30({ name: "additional_comment", type: "varchar", nullable: true })
4023
4137
  ], Job.prototype, "additionalComment", 2);
4024
4138
  __decorateClass([
4025
- Column28({
4139
+ Column30({
4026
4140
  name: "onboarding_tat",
4027
4141
  type: "varchar",
4028
4142
  length: 50,
@@ -4030,14 +4144,14 @@ __decorateClass([
4030
4144
  })
4031
4145
  ], Job.prototype, "onboardingTat", 2);
4032
4146
  __decorateClass([
4033
- Column28({
4147
+ Column30({
4034
4148
  name: "candidate_communication_skills",
4035
4149
  type: "varchar",
4036
4150
  nullable: true
4037
4151
  })
4038
4152
  ], Job.prototype, "candidateCommunicationSkills", 2);
4039
4153
  __decorateClass([
4040
- Column28({
4154
+ Column30({
4041
4155
  name: "step_completed",
4042
4156
  type: "enum",
4043
4157
  enum: Step,
@@ -4045,7 +4159,7 @@ __decorateClass([
4045
4159
  })
4046
4160
  ], Job.prototype, "stepCompleted", 2);
4047
4161
  __decorateClass([
4048
- Column28({
4162
+ Column30({
4049
4163
  name: "status",
4050
4164
  type: "enum",
4051
4165
  enum: JobStatusEnum,
@@ -4053,40 +4167,40 @@ __decorateClass([
4053
4167
  })
4054
4168
  ], Job.prototype, "status", 2);
4055
4169
  __decorateClass([
4056
- Column28({ name: "viewed_count", type: "integer", default: 0 })
4170
+ Column30({ name: "viewed_count", type: "integer", default: 0 })
4057
4171
  ], Job.prototype, "viewedCount", 2);
4058
4172
  __decorateClass([
4059
- Column28({ name: "application_count", type: "integer", default: 0 })
4173
+ Column30({ name: "application_count", type: "integer", default: 0 })
4060
4174
  ], Job.prototype, "applicationCount", 2);
4061
4175
  __decorateClass([
4062
- Column28({ name: "is_contract_signed", type: "boolean", default: false })
4176
+ Column30({ name: "is_contract_signed", type: "boolean", default: false })
4063
4177
  ], Job.prototype, "isContractSigned", 2);
4064
4178
  __decorateClass([
4065
- Column28({ name: "is_interview_created", type: "boolean", default: false })
4179
+ Column30({ name: "is_interview_created", type: "boolean", default: false })
4066
4180
  ], Job.prototype, "isInterviewCreated", 2);
4067
4181
  __decorateClass([
4068
- OneToMany11(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4182
+ OneToMany12(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
4069
4183
  ], Job.prototype, "interviewInvites", 2);
4070
4184
  __decorateClass([
4071
- OneToMany11(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4185
+ OneToMany12(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
4072
4186
  ], Job.prototype, "jobSkills", 2);
4073
4187
  __decorateClass([
4074
- OneToMany11(() => JobApplication, (jobApplication) => jobApplication.job, {
4188
+ OneToMany12(() => JobApplication, (jobApplication) => jobApplication.job, {
4075
4189
  cascade: true
4076
4190
  })
4077
4191
  ], Job.prototype, "jobApplications", 2);
4078
4192
  __decorateClass([
4079
- OneToMany11(() => Interview, (interview) => interview.job, {
4193
+ OneToMany12(() => Interview, (interview) => interview.job, {
4080
4194
  cascade: true
4081
4195
  })
4082
4196
  ], Job.prototype, "interviews", 2);
4083
4197
  __decorateClass([
4084
- OneToMany11(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4198
+ OneToMany12(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
4085
4199
  cascade: true
4086
4200
  })
4087
4201
  ], Job.prototype, "f2fInterviews", 2);
4088
4202
  __decorateClass([
4089
- OneToMany11(
4203
+ OneToMany12(
4090
4204
  () => JobRecommendation,
4091
4205
  (jobRecommendation) => jobRecommendation.job,
4092
4206
  {
@@ -4095,39 +4209,44 @@ __decorateClass([
4095
4209
  )
4096
4210
  ], Job.prototype, "recommendations", 2);
4097
4211
  __decorateClass([
4098
- OneToMany11(() => Contract, (contract) => contract.job, {
4212
+ OneToMany12(() => Contract, (contract) => contract.job, {
4099
4213
  cascade: true
4100
4214
  })
4101
4215
  ], Job.prototype, "contracts", 2);
4102
4216
  __decorateClass([
4103
- OneToMany11(() => Timesheet, (timesheet) => timesheet.job, {
4217
+ OneToMany12(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
4218
+ cascade: true
4219
+ })
4220
+ ], Job.prototype, "escrowWallets", 2);
4221
+ __decorateClass([
4222
+ OneToMany12(() => Timesheet, (timesheet) => timesheet.job, {
4104
4223
  cascade: true
4105
4224
  })
4106
4225
  ], Job.prototype, "timesheets", 2);
4107
4226
  __decorateClass([
4108
- OneToMany11(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4227
+ OneToMany12(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
4109
4228
  cascade: true
4110
4229
  })
4111
4230
  ], Job.prototype, "timesheetLine", 2);
4112
4231
  __decorateClass([
4113
- OneToMany11(() => Invoice, (invoice) => invoice.job, {
4232
+ OneToMany12(() => Invoice, (invoice) => invoice.job, {
4114
4233
  cascade: true
4115
4234
  })
4116
4235
  ], Job.prototype, "invoice", 2);
4117
4236
  __decorateClass([
4118
- OneToMany11(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
4237
+ OneToMany12(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
4119
4238
  ], Job.prototype, "clientCandidatePreferences", 2);
4120
4239
  Job = __decorateClass([
4121
- Entity27("jobs")
4240
+ Entity29("jobs")
4122
4241
  ], Job);
4123
4242
 
4124
4243
  // src/entities/bank-details.entity.ts
4125
4244
  import {
4126
- Entity as Entity28,
4127
- Column as Column29,
4128
- Index as Index22,
4129
- ManyToOne as ManyToOne27,
4130
- JoinColumn as JoinColumn27
4245
+ Entity as Entity30,
4246
+ Column as Column31,
4247
+ Index as Index24,
4248
+ ManyToOne as ManyToOne29,
4249
+ JoinColumn as JoinColumn29
4131
4250
  } from "typeorm";
4132
4251
  var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
4133
4252
  BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
@@ -4143,51 +4262,51 @@ var BankDetail = class extends BaseEntity {
4143
4262
  };
4144
4263
  // individual index to find bank details by user
4145
4264
  __decorateClass([
4146
- Column29({ name: "user_id", type: "integer", nullable: true }),
4147
- Index22()
4265
+ Column31({ name: "user_id", type: "integer", nullable: true }),
4266
+ Index24()
4148
4267
  ], BankDetail.prototype, "userId", 2);
4149
4268
  __decorateClass([
4150
- ManyToOne27(() => User, (user) => user.bankDetail),
4151
- JoinColumn27({ name: "user_id" })
4269
+ ManyToOne29(() => User, (user) => user.bankDetail),
4270
+ JoinColumn29({ name: "user_id" })
4152
4271
  ], BankDetail.prototype, "user", 2);
4153
4272
  __decorateClass([
4154
- Column29({ name: "name", type: "varchar", nullable: true })
4273
+ Column31({ name: "name", type: "varchar", nullable: true })
4155
4274
  ], BankDetail.prototype, "name", 2);
4156
4275
  __decorateClass([
4157
- Column29({ name: "mobile_code", type: "varchar", nullable: true })
4276
+ Column31({ name: "mobile_code", type: "varchar", nullable: true })
4158
4277
  ], BankDetail.prototype, "mobileCode", 2);
4159
4278
  __decorateClass([
4160
- Column29({ name: "mobile", type: "varchar", nullable: true })
4279
+ Column31({ name: "mobile", type: "varchar", nullable: true })
4161
4280
  ], BankDetail.prototype, "mobile", 2);
4162
4281
  __decorateClass([
4163
- Column29({ name: "email", type: "varchar" })
4282
+ Column31({ name: "email", type: "varchar" })
4164
4283
  ], BankDetail.prototype, "email", 2);
4165
4284
  __decorateClass([
4166
- Column29({ name: "address", type: "varchar", nullable: true })
4285
+ Column31({ name: "address", type: "varchar", nullable: true })
4167
4286
  ], BankDetail.prototype, "address", 2);
4168
4287
  __decorateClass([
4169
- Column29({ name: "account_number", type: "varchar", unique: true, nullable: true })
4288
+ Column31({ name: "account_number", type: "varchar", unique: true, nullable: true })
4170
4289
  ], BankDetail.prototype, "accountNumber", 2);
4171
4290
  __decorateClass([
4172
- Column29({ name: "bank_name", type: "varchar", nullable: true })
4291
+ Column31({ name: "bank_name", type: "varchar", nullable: true })
4173
4292
  ], BankDetail.prototype, "bankName", 2);
4174
4293
  __decorateClass([
4175
- Column29({ name: "ifsc_code", type: "varchar", nullable: true })
4294
+ Column31({ name: "ifsc_code", type: "varchar", nullable: true })
4176
4295
  ], BankDetail.prototype, "ifscCode", 2);
4177
4296
  __decorateClass([
4178
- Column29({ name: "branch_name", type: "varchar", nullable: true })
4297
+ Column31({ name: "branch_name", type: "varchar", nullable: true })
4179
4298
  ], BankDetail.prototype, "branchName", 2);
4180
4299
  __decorateClass([
4181
- Column29({ name: "routing_no", type: "varchar", nullable: true })
4300
+ Column31({ name: "routing_no", type: "varchar", nullable: true })
4182
4301
  ], BankDetail.prototype, "routingNo", 2);
4183
4302
  __decorateClass([
4184
- Column29({ name: "aba_no", type: "varchar", nullable: true })
4303
+ Column31({ name: "aba_no", type: "varchar", nullable: true })
4185
4304
  ], BankDetail.prototype, "abaNumber", 2);
4186
4305
  __decorateClass([
4187
- Column29({ name: "iban", type: "varchar", nullable: true })
4306
+ Column31({ name: "iban", type: "varchar", nullable: true })
4188
4307
  ], BankDetail.prototype, "iban", 2);
4189
4308
  __decorateClass([
4190
- Column29({
4309
+ Column31({
4191
4310
  name: "account_type",
4192
4311
  type: "enum",
4193
4312
  enum: BankAccountTypeEnum,
@@ -4195,7 +4314,7 @@ __decorateClass([
4195
4314
  })
4196
4315
  ], BankDetail.prototype, "accountType", 2);
4197
4316
  __decorateClass([
4198
- Column29({
4317
+ Column31({
4199
4318
  name: "account_scope",
4200
4319
  type: "enum",
4201
4320
  enum: BankAccountScopeEnum,
@@ -4203,185 +4322,185 @@ __decorateClass([
4203
4322
  })
4204
4323
  ], BankDetail.prototype, "accountScope", 2);
4205
4324
  BankDetail = __decorateClass([
4206
- Entity28("bank_details")
4325
+ Entity30("bank_details")
4207
4326
  ], BankDetail);
4208
4327
 
4209
4328
  // src/entities/system-preference.entity.ts
4210
4329
  import {
4211
- Entity as Entity29,
4212
- Column as Column30,
4213
- Index as Index23,
4214
- ManyToOne as ManyToOne28,
4215
- JoinColumn as JoinColumn28
4330
+ Entity as Entity31,
4331
+ Column as Column32,
4332
+ Index as Index25,
4333
+ ManyToOne as ManyToOne30,
4334
+ JoinColumn as JoinColumn30
4216
4335
  } from "typeorm";
4217
4336
  var SystemPreference = class extends BaseEntity {
4218
4337
  };
4219
4338
  // individual index to find system preference by user
4220
4339
  __decorateClass([
4221
- Column30({ name: "user_id", type: "integer", nullable: true }),
4222
- Index23()
4340
+ Column32({ name: "user_id", type: "integer", nullable: true }),
4341
+ Index25()
4223
4342
  ], SystemPreference.prototype, "userId", 2);
4224
4343
  __decorateClass([
4225
- ManyToOne28(() => User, (user) => user.systemPreference),
4226
- JoinColumn28({ name: "user_id" })
4344
+ ManyToOne30(() => User, (user) => user.systemPreference),
4345
+ JoinColumn30({ name: "user_id" })
4227
4346
  ], SystemPreference.prototype, "user", 2);
4228
4347
  __decorateClass([
4229
- Column30({ name: "key", type: "varchar", nullable: false })
4348
+ Column32({ name: "key", type: "varchar", nullable: false })
4230
4349
  ], SystemPreference.prototype, "key", 2);
4231
4350
  __decorateClass([
4232
- Column30({ name: "value", type: "boolean", default: false })
4351
+ Column32({ name: "value", type: "boolean", default: false })
4233
4352
  ], SystemPreference.prototype, "value", 2);
4234
4353
  SystemPreference = __decorateClass([
4235
- Entity29("system_preferences")
4354
+ Entity31("system_preferences")
4236
4355
  ], SystemPreference);
4237
4356
 
4238
4357
  // src/entities/freelancer-experience.entity.ts
4239
4358
  import {
4240
- Entity as Entity30,
4241
- Column as Column31,
4242
- Index as Index24,
4243
- ManyToOne as ManyToOne29,
4244
- JoinColumn as JoinColumn29
4359
+ Entity as Entity32,
4360
+ Column as Column33,
4361
+ Index as Index26,
4362
+ ManyToOne as ManyToOne31,
4363
+ JoinColumn as JoinColumn31
4245
4364
  } from "typeorm";
4246
4365
  var FreelancerExperience = class extends BaseEntity {
4247
4366
  };
4248
4367
  // individual index to find experence by user
4249
4368
  __decorateClass([
4250
- Column31({ name: "user_id", type: "integer", nullable: true }),
4251
- Index24()
4369
+ Column33({ name: "user_id", type: "integer", nullable: true }),
4370
+ Index26()
4252
4371
  ], FreelancerExperience.prototype, "userId", 2);
4253
4372
  __decorateClass([
4254
- ManyToOne29(() => User, (user) => user.freelancerExperience),
4255
- JoinColumn29({ name: "user_id" })
4373
+ ManyToOne31(() => User, (user) => user.freelancerExperience),
4374
+ JoinColumn31({ name: "user_id" })
4256
4375
  ], FreelancerExperience.prototype, "user", 2);
4257
4376
  __decorateClass([
4258
- Column31({ name: "company_name", type: "varchar", nullable: true })
4377
+ Column33({ name: "company_name", type: "varchar", nullable: true })
4259
4378
  ], FreelancerExperience.prototype, "companyName", 2);
4260
4379
  __decorateClass([
4261
- Column31({ name: "designation", type: "varchar", nullable: true })
4380
+ Column33({ name: "designation", type: "varchar", nullable: true })
4262
4381
  ], FreelancerExperience.prototype, "designation", 2);
4263
4382
  __decorateClass([
4264
- Column31({ name: "job_duration", type: "varchar", nullable: true })
4383
+ Column33({ name: "job_duration", type: "varchar", nullable: true })
4265
4384
  ], FreelancerExperience.prototype, "jobDuration", 2);
4266
4385
  __decorateClass([
4267
- Column31({ name: "description", type: "varchar", nullable: true })
4386
+ Column33({ name: "description", type: "varchar", nullable: true })
4268
4387
  ], FreelancerExperience.prototype, "description", 2);
4269
4388
  FreelancerExperience = __decorateClass([
4270
- Entity30("freelancer_experiences")
4389
+ Entity32("freelancer_experiences")
4271
4390
  ], FreelancerExperience);
4272
4391
 
4273
4392
  // src/entities/freelancer-education.entity.ts
4274
4393
  import {
4275
- Entity as Entity31,
4276
- Column as Column32,
4277
- Index as Index25,
4278
- ManyToOne as ManyToOne30,
4279
- JoinColumn as JoinColumn30
4394
+ Entity as Entity33,
4395
+ Column as Column34,
4396
+ Index as Index27,
4397
+ ManyToOne as ManyToOne32,
4398
+ JoinColumn as JoinColumn32
4280
4399
  } from "typeorm";
4281
4400
  var FreelancerEducation = class extends BaseEntity {
4282
4401
  };
4283
4402
  // individual index to find education by user
4284
4403
  __decorateClass([
4285
- Column32({ name: "user_id", type: "integer", nullable: true }),
4286
- Index25()
4404
+ Column34({ name: "user_id", type: "integer", nullable: true }),
4405
+ Index27()
4287
4406
  ], FreelancerEducation.prototype, "userId", 2);
4288
4407
  __decorateClass([
4289
- ManyToOne30(() => User, (user) => user.freelancerEducation),
4290
- JoinColumn30({ name: "user_id" })
4408
+ ManyToOne32(() => User, (user) => user.freelancerEducation),
4409
+ JoinColumn32({ name: "user_id" })
4291
4410
  ], FreelancerEducation.prototype, "user", 2);
4292
4411
  __decorateClass([
4293
- Column32({ name: "degree", type: "varchar", nullable: true })
4412
+ Column34({ name: "degree", type: "varchar", nullable: true })
4294
4413
  ], FreelancerEducation.prototype, "degree", 2);
4295
4414
  __decorateClass([
4296
- Column32({ name: "university", type: "varchar", nullable: true })
4415
+ Column34({ name: "university", type: "varchar", nullable: true })
4297
4416
  ], FreelancerEducation.prototype, "university", 2);
4298
4417
  __decorateClass([
4299
- Column32({ name: "year_of_graduation", type: "varchar", nullable: true })
4418
+ Column34({ name: "year_of_graduation", type: "varchar", nullable: true })
4300
4419
  ], FreelancerEducation.prototype, "yearOfGraduation", 2);
4301
4420
  FreelancerEducation = __decorateClass([
4302
- Entity31("freelancer_educations")
4421
+ Entity33("freelancer_educations")
4303
4422
  ], FreelancerEducation);
4304
4423
 
4305
4424
  // src/entities/freelancer-project.entity.ts
4306
4425
  import {
4307
- Entity as Entity32,
4308
- Column as Column33,
4309
- Index as Index26,
4310
- ManyToOne as ManyToOne31,
4311
- JoinColumn as JoinColumn31
4426
+ Entity as Entity34,
4427
+ Column as Column35,
4428
+ Index as Index28,
4429
+ ManyToOne as ManyToOne33,
4430
+ JoinColumn as JoinColumn33
4312
4431
  } from "typeorm";
4313
4432
  var FreelancerProject = class extends BaseEntity {
4314
4433
  };
4315
4434
  // individual index to find project by user
4316
4435
  __decorateClass([
4317
- Column33({ name: "user_id", type: "integer", nullable: true }),
4318
- Index26()
4436
+ Column35({ name: "user_id", type: "integer", nullable: true }),
4437
+ Index28()
4319
4438
  ], FreelancerProject.prototype, "userId", 2);
4320
4439
  __decorateClass([
4321
- ManyToOne31(() => User, (user) => user.freelancerProject),
4322
- JoinColumn31({ name: "user_id" })
4440
+ ManyToOne33(() => User, (user) => user.freelancerProject),
4441
+ JoinColumn33({ name: "user_id" })
4323
4442
  ], FreelancerProject.prototype, "user", 2);
4324
4443
  __decorateClass([
4325
- Column33({ name: "project_name", type: "varchar", nullable: true })
4444
+ Column35({ name: "project_name", type: "varchar", nullable: true })
4326
4445
  ], FreelancerProject.prototype, "projectName", 2);
4327
4446
  __decorateClass([
4328
- Column33({ name: "start_date", type: "date", nullable: true })
4447
+ Column35({ name: "start_date", type: "date", nullable: true })
4329
4448
  ], FreelancerProject.prototype, "startDate", 2);
4330
4449
  __decorateClass([
4331
- Column33({ name: "end_date", type: "date", nullable: true })
4450
+ Column35({ name: "end_date", type: "date", nullable: true })
4332
4451
  ], FreelancerProject.prototype, "endDate", 2);
4333
4452
  __decorateClass([
4334
- Column33({ name: "client_name", type: "varchar", nullable: true })
4453
+ Column35({ name: "client_name", type: "varchar", nullable: true })
4335
4454
  ], FreelancerProject.prototype, "clientName", 2);
4336
4455
  __decorateClass([
4337
- Column33({ name: "git_link", type: "varchar", nullable: true })
4456
+ Column35({ name: "git_link", type: "varchar", nullable: true })
4338
4457
  ], FreelancerProject.prototype, "gitLink", 2);
4339
4458
  __decorateClass([
4340
- Column33({ name: "description", type: "varchar", nullable: true })
4459
+ Column35({ name: "description", type: "varchar", nullable: true })
4341
4460
  ], FreelancerProject.prototype, "description", 2);
4342
4461
  FreelancerProject = __decorateClass([
4343
- Entity32("freelancer_projects")
4462
+ Entity34("freelancer_projects")
4344
4463
  ], FreelancerProject);
4345
4464
 
4346
4465
  // src/entities/freelancer-casestudy.entity.ts
4347
4466
  import {
4348
- Entity as Entity33,
4349
- Column as Column34,
4350
- Index as Index27,
4351
- ManyToOne as ManyToOne32,
4352
- JoinColumn as JoinColumn32
4467
+ Entity as Entity35,
4468
+ Column as Column36,
4469
+ Index as Index29,
4470
+ ManyToOne as ManyToOne34,
4471
+ JoinColumn as JoinColumn34
4353
4472
  } from "typeorm";
4354
4473
  var FreelancerCaseStudy = class extends BaseEntity {
4355
4474
  };
4356
4475
  // individual index to find case study by user
4357
4476
  __decorateClass([
4358
- Column34({ name: "user_id", type: "integer", nullable: true }),
4359
- Index27()
4477
+ Column36({ name: "user_id", type: "integer", nullable: true }),
4478
+ Index29()
4360
4479
  ], FreelancerCaseStudy.prototype, "userId", 2);
4361
4480
  __decorateClass([
4362
- ManyToOne32(() => User, (user) => user.freelancerCaseStudy),
4363
- JoinColumn32({ name: "user_id" })
4481
+ ManyToOne34(() => User, (user) => user.freelancerCaseStudy),
4482
+ JoinColumn34({ name: "user_id" })
4364
4483
  ], FreelancerCaseStudy.prototype, "user", 2);
4365
4484
  __decorateClass([
4366
- Column34({ name: "project_name", type: "varchar", nullable: true })
4485
+ Column36({ name: "project_name", type: "varchar", nullable: true })
4367
4486
  ], FreelancerCaseStudy.prototype, "projectName", 2);
4368
4487
  __decorateClass([
4369
- Column34({ name: "case_study_link", type: "varchar", nullable: true })
4488
+ Column36({ name: "case_study_link", type: "varchar", nullable: true })
4370
4489
  ], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
4371
4490
  __decorateClass([
4372
- Column34({ name: "description", type: "varchar", nullable: true })
4491
+ Column36({ name: "description", type: "varchar", nullable: true })
4373
4492
  ], FreelancerCaseStudy.prototype, "description", 2);
4374
4493
  FreelancerCaseStudy = __decorateClass([
4375
- Entity33("freelancer_case_studies")
4494
+ Entity35("freelancer_case_studies")
4376
4495
  ], FreelancerCaseStudy);
4377
4496
 
4378
4497
  // src/entities/freelancer-skill.entity.ts
4379
4498
  import {
4380
- Entity as Entity34,
4381
- Column as Column35,
4382
- Index as Index28,
4383
- ManyToOne as ManyToOne33,
4384
- JoinColumn as JoinColumn33
4499
+ Entity as Entity36,
4500
+ Column as Column37,
4501
+ Index as Index30,
4502
+ ManyToOne as ManyToOne35,
4503
+ JoinColumn as JoinColumn35
4385
4504
  } from "typeorm";
4386
4505
  var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
4387
4506
  FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
@@ -4392,18 +4511,18 @@ var FreelancerSkill = class extends BaseEntity {
4392
4511
  };
4393
4512
  // individual index to find core skills by user
4394
4513
  __decorateClass([
4395
- Column35({ name: "user_id", type: "integer", nullable: true }),
4396
- Index28()
4514
+ Column37({ name: "user_id", type: "integer", nullable: true }),
4515
+ Index30()
4397
4516
  ], FreelancerSkill.prototype, "userId", 2);
4398
4517
  __decorateClass([
4399
- ManyToOne33(() => User, (user) => user.freelancerSkills),
4400
- JoinColumn33({ name: "user_id" })
4518
+ ManyToOne35(() => User, (user) => user.freelancerSkills),
4519
+ JoinColumn35({ name: "user_id" })
4401
4520
  ], FreelancerSkill.prototype, "user", 2);
4402
4521
  __decorateClass([
4403
- Column35({ name: "skill_name", type: "varchar", nullable: true })
4522
+ Column37({ name: "skill_name", type: "varchar", nullable: true })
4404
4523
  ], FreelancerSkill.prototype, "skillName", 2);
4405
4524
  __decorateClass([
4406
- Column35({
4525
+ Column37({
4407
4526
  name: "skill_category",
4408
4527
  type: "smallint",
4409
4528
  default: 1,
@@ -4411,68 +4530,68 @@ __decorateClass([
4411
4530
  })
4412
4531
  ], FreelancerSkill.prototype, "skillCategory", 2);
4413
4532
  FreelancerSkill = __decorateClass([
4414
- Entity34("freelancer_skills")
4533
+ Entity36("freelancer_skills")
4415
4534
  ], FreelancerSkill);
4416
4535
 
4417
4536
  // src/entities/freelancer-tool.entity.ts
4418
4537
  import {
4419
- Entity as Entity35,
4420
- Column as Column36,
4421
- Index as Index29,
4422
- ManyToOne as ManyToOne34,
4423
- JoinColumn as JoinColumn34
4538
+ Entity as Entity37,
4539
+ Column as Column38,
4540
+ Index as Index31,
4541
+ ManyToOne as ManyToOne36,
4542
+ JoinColumn as JoinColumn36
4424
4543
  } from "typeorm";
4425
4544
  var FreelancerTool = class extends BaseEntity {
4426
4545
  };
4427
4546
  // individual index to find tool by user
4428
4547
  __decorateClass([
4429
- Column36({ name: "user_id", type: "integer", nullable: true }),
4430
- Index29()
4548
+ Column38({ name: "user_id", type: "integer", nullable: true }),
4549
+ Index31()
4431
4550
  ], FreelancerTool.prototype, "userId", 2);
4432
4551
  __decorateClass([
4433
- ManyToOne34(() => User, (user) => user.freelancerTool),
4434
- JoinColumn34({ name: "user_id" })
4552
+ ManyToOne36(() => User, (user) => user.freelancerTool),
4553
+ JoinColumn36({ name: "user_id" })
4435
4554
  ], FreelancerTool.prototype, "user", 2);
4436
4555
  __decorateClass([
4437
- Column36({ name: "tool_name", type: "varchar", nullable: true })
4556
+ Column38({ name: "tool_name", type: "varchar", nullable: true })
4438
4557
  ], FreelancerTool.prototype, "toolName", 2);
4439
4558
  FreelancerTool = __decorateClass([
4440
- Entity35("freelancer_tools")
4559
+ Entity37("freelancer_tools")
4441
4560
  ], FreelancerTool);
4442
4561
 
4443
4562
  // src/entities/freelancer-framework.entity.ts
4444
4563
  import {
4445
- Entity as Entity36,
4446
- Column as Column37,
4447
- Index as Index30,
4448
- ManyToOne as ManyToOne35,
4449
- JoinColumn as JoinColumn35
4564
+ Entity as Entity38,
4565
+ Column as Column39,
4566
+ Index as Index32,
4567
+ ManyToOne as ManyToOne37,
4568
+ JoinColumn as JoinColumn37
4450
4569
  } from "typeorm";
4451
4570
  var FreelancerFramework = class extends BaseEntity {
4452
4571
  };
4453
4572
  // individual index to find framework by user
4454
4573
  __decorateClass([
4455
- Column37({ name: "user_id", type: "integer", nullable: true }),
4456
- Index30()
4574
+ Column39({ name: "user_id", type: "integer", nullable: true }),
4575
+ Index32()
4457
4576
  ], FreelancerFramework.prototype, "userId", 2);
4458
4577
  __decorateClass([
4459
- ManyToOne35(() => User, (user) => user.freelancerFramework),
4460
- JoinColumn35({ name: "user_id" })
4578
+ ManyToOne37(() => User, (user) => user.freelancerFramework),
4579
+ JoinColumn37({ name: "user_id" })
4461
4580
  ], FreelancerFramework.prototype, "user", 2);
4462
4581
  __decorateClass([
4463
- Column37({ name: "framework_name", type: "varchar", nullable: true })
4582
+ Column39({ name: "framework_name", type: "varchar", nullable: true })
4464
4583
  ], FreelancerFramework.prototype, "frameworkName", 2);
4465
4584
  FreelancerFramework = __decorateClass([
4466
- Entity36("freelancer_frameworks")
4585
+ Entity38("freelancer_frameworks")
4467
4586
  ], FreelancerFramework);
4468
4587
 
4469
4588
  // src/entities/freelancer-assessment.entity.ts
4470
4589
  import {
4471
- Entity as Entity37,
4472
- Column as Column38,
4473
- Index as Index31,
4474
- ManyToOne as ManyToOne36,
4475
- JoinColumn as JoinColumn36
4590
+ Entity as Entity39,
4591
+ Column as Column40,
4592
+ Index as Index33,
4593
+ ManyToOne as ManyToOne38,
4594
+ JoinColumn as JoinColumn38
4476
4595
  } from "typeorm";
4477
4596
  var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
4478
4597
  AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
@@ -4489,30 +4608,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
4489
4608
  var FreelancerAssessment = class extends BaseEntity {
4490
4609
  };
4491
4610
  __decorateClass([
4492
- Column38({ name: "user_id", type: "integer", nullable: true }),
4493
- Index31()
4611
+ Column40({ name: "user_id", type: "integer", nullable: true }),
4612
+ Index33()
4494
4613
  ], FreelancerAssessment.prototype, "userId", 2);
4495
4614
  __decorateClass([
4496
- ManyToOne36(() => User, (user) => user.assessments),
4497
- JoinColumn36({ name: "user_id" })
4615
+ ManyToOne38(() => User, (user) => user.assessments),
4616
+ JoinColumn38({ name: "user_id" })
4498
4617
  ], FreelancerAssessment.prototype, "user", 2);
4499
4618
  __decorateClass([
4500
- Column38({ name: "interview_id", type: "varchar", nullable: true })
4619
+ Column40({ name: "interview_id", type: "varchar", nullable: true })
4501
4620
  ], FreelancerAssessment.prototype, "interviewId", 2);
4502
4621
  __decorateClass([
4503
- Column38({ name: "interview_link", type: "text", nullable: true })
4622
+ Column40({ name: "interview_link", type: "text", nullable: true })
4504
4623
  ], FreelancerAssessment.prototype, "interviewLink", 2);
4505
4624
  __decorateClass([
4506
- Column38({ name: "recording_link", type: "text", nullable: true })
4625
+ Column40({ name: "recording_link", type: "text", nullable: true })
4507
4626
  ], FreelancerAssessment.prototype, "recordingLink", 2);
4508
4627
  __decorateClass([
4509
- Column38({ name: "iframe_response", type: "jsonb", nullable: true })
4628
+ Column40({ name: "iframe_response", type: "jsonb", nullable: true })
4510
4629
  ], FreelancerAssessment.prototype, "iframeResponse", 2);
4511
4630
  __decorateClass([
4512
- Column38({ name: "interview_summary", type: "jsonb", nullable: true })
4631
+ Column40({ name: "interview_summary", type: "jsonb", nullable: true })
4513
4632
  ], FreelancerAssessment.prototype, "interviewSummary", 2);
4514
4633
  __decorateClass([
4515
- Column38({
4634
+ Column40({
4516
4635
  name: "status",
4517
4636
  type: "enum",
4518
4637
  enum: AssessmentStatusEnum,
@@ -4520,11 +4639,11 @@ __decorateClass([
4520
4639
  })
4521
4640
  ], FreelancerAssessment.prototype, "status", 2);
4522
4641
  FreelancerAssessment = __decorateClass([
4523
- Entity37("freelancer_assessments")
4642
+ Entity39("freelancer_assessments")
4524
4643
  ], FreelancerAssessment);
4525
4644
 
4526
4645
  // src/entities/freelancer-declaration.entity.ts
4527
- import { Entity as Entity38, Column as Column39, Index as Index32, ManyToOne as ManyToOne37, JoinColumn as JoinColumn37 } from "typeorm";
4646
+ import { Entity as Entity40, Column as Column41, Index as Index34, ManyToOne as ManyToOne39, JoinColumn as JoinColumn39 } from "typeorm";
4528
4647
  var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
4529
4648
  DocumentType2["AADHAAR"] = "AADHAAR_CARD";
4530
4649
  DocumentType2["PASSPORT"] = "PASSPORT";
@@ -4536,15 +4655,15 @@ var FreelancerDeclaration = class extends BaseEntity {
4536
4655
  };
4537
4656
  // individual index to find declaration by user
4538
4657
  __decorateClass([
4539
- Column39({ name: "user_id", type: "integer", nullable: true }),
4540
- Index32()
4658
+ Column41({ name: "user_id", type: "integer", nullable: true }),
4659
+ Index34()
4541
4660
  ], FreelancerDeclaration.prototype, "userId", 2);
4542
4661
  __decorateClass([
4543
- ManyToOne37(() => User, (user) => user.freelancerDeclaration),
4544
- JoinColumn37({ name: "user_id" })
4662
+ ManyToOne39(() => User, (user) => user.freelancerDeclaration),
4663
+ JoinColumn39({ name: "user_id" })
4545
4664
  ], FreelancerDeclaration.prototype, "user", 2);
4546
4665
  __decorateClass([
4547
- Column39({
4666
+ Column41({
4548
4667
  name: "document_type",
4549
4668
  type: "enum",
4550
4669
  enum: DocumentType,
@@ -4552,175 +4671,175 @@ __decorateClass([
4552
4671
  })
4553
4672
  ], FreelancerDeclaration.prototype, "documentType", 2);
4554
4673
  __decorateClass([
4555
- Column39({ name: "front_document_url", type: "varchar", nullable: true })
4674
+ Column41({ name: "front_document_url", type: "varchar", nullable: true })
4556
4675
  ], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
4557
4676
  __decorateClass([
4558
- Column39({ name: "back_document_url", type: "varchar", nullable: true })
4677
+ Column41({ name: "back_document_url", type: "varchar", nullable: true })
4559
4678
  ], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
4560
4679
  __decorateClass([
4561
- Column39({ name: "declaration_accepted", type: "boolean", default: false })
4680
+ Column41({ name: "declaration_accepted", type: "boolean", default: false })
4562
4681
  ], FreelancerDeclaration.prototype, "declarationAccepted", 2);
4563
4682
  __decorateClass([
4564
- Column39({ name: "digital_signature_url", type: "varchar", nullable: true })
4683
+ Column41({ name: "digital_signature_url", type: "varchar", nullable: true })
4565
4684
  ], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
4566
4685
  FreelancerDeclaration = __decorateClass([
4567
- Entity38("freelancer_declaration")
4686
+ Entity40("freelancer_declaration")
4568
4687
  ], FreelancerDeclaration);
4569
4688
 
4570
4689
  // src/entities/company-members-roles.entity.ts
4571
4690
  import {
4572
- Column as Column43,
4573
- Entity as Entity42,
4574
- ManyToOne as ManyToOne40,
4575
- JoinColumn as JoinColumn40,
4576
- Index as Index36
4691
+ Column as Column45,
4692
+ Entity as Entity44,
4693
+ ManyToOne as ManyToOne42,
4694
+ JoinColumn as JoinColumn42,
4695
+ Index as Index38
4577
4696
  } from "typeorm";
4578
4697
 
4579
4698
  // src/entities/company-role.entity.ts
4580
4699
  import {
4581
- Column as Column42,
4582
- Entity as Entity41,
4583
- Index as Index35,
4584
- JoinColumn as JoinColumn39,
4585
- ManyToOne as ManyToOne39,
4586
- OneToMany as OneToMany13
4700
+ Column as Column44,
4701
+ Entity as Entity43,
4702
+ Index as Index37,
4703
+ JoinColumn as JoinColumn41,
4704
+ ManyToOne as ManyToOne41,
4705
+ OneToMany as OneToMany14
4587
4706
  } from "typeorm";
4588
4707
 
4589
4708
  // src/entities/company-role-permission.entity.ts
4590
4709
  import {
4591
- Column as Column41,
4592
- Entity as Entity40,
4593
- ManyToOne as ManyToOne38,
4594
- JoinColumn as JoinColumn38,
4595
- Index as Index34
4710
+ Column as Column43,
4711
+ Entity as Entity42,
4712
+ ManyToOne as ManyToOne40,
4713
+ JoinColumn as JoinColumn40,
4714
+ Index as Index36
4596
4715
  } from "typeorm";
4597
4716
 
4598
4717
  // src/entities/permission.entity.ts
4599
- import { Column as Column40, Entity as Entity39, Index as Index33 } from "typeorm";
4718
+ import { Column as Column42, Entity as Entity41, Index as Index35 } from "typeorm";
4600
4719
  var Permission = class extends BaseEntity {
4601
4720
  };
4602
4721
  __decorateClass([
4603
- Column40({ name: "name", type: "varchar", nullable: true })
4722
+ Column42({ name: "name", type: "varchar", nullable: true })
4604
4723
  ], Permission.prototype, "name", 2);
4605
4724
  __decorateClass([
4606
- Column40({ name: "slug", type: "varchar", nullable: true, unique: true }),
4607
- Index33()
4725
+ Column42({ name: "slug", type: "varchar", nullable: true, unique: true }),
4726
+ Index35()
4608
4727
  ], Permission.prototype, "slug", 2);
4609
4728
  __decorateClass([
4610
- Column40({ name: "description", type: "text", nullable: true })
4729
+ Column42({ name: "description", type: "text", nullable: true })
4611
4730
  ], Permission.prototype, "description", 2);
4612
4731
  __decorateClass([
4613
- Column40({ name: "is_active", type: "boolean", default: true })
4732
+ Column42({ name: "is_active", type: "boolean", default: true })
4614
4733
  ], Permission.prototype, "isActive", 2);
4615
4734
  Permission = __decorateClass([
4616
- Entity39("permissions")
4735
+ Entity41("permissions")
4617
4736
  ], Permission);
4618
4737
 
4619
4738
  // src/entities/company-role-permission.entity.ts
4620
4739
  var CompanyRolePermission = class extends BaseEntity {
4621
4740
  };
4622
4741
  __decorateClass([
4623
- Column41({ name: "company_role_id", type: "integer", nullable: true }),
4624
- Index34()
4742
+ Column43({ name: "company_role_id", type: "integer", nullable: true }),
4743
+ Index36()
4625
4744
  ], CompanyRolePermission.prototype, "companyRoleId", 2);
4626
4745
  __decorateClass([
4627
- ManyToOne38(() => CompanyRole, (role) => role.rolePermissions, {
4746
+ ManyToOne40(() => CompanyRole, (role) => role.rolePermissions, {
4628
4747
  onDelete: "CASCADE"
4629
4748
  }),
4630
- JoinColumn38({ name: "company_role_id" })
4749
+ JoinColumn40({ name: "company_role_id" })
4631
4750
  ], CompanyRolePermission.prototype, "companyRole", 2);
4632
4751
  __decorateClass([
4633
- Column41({ name: "permission_id", type: "integer" }),
4634
- Index34()
4752
+ Column43({ name: "permission_id", type: "integer" }),
4753
+ Index36()
4635
4754
  ], CompanyRolePermission.prototype, "permissionId", 2);
4636
4755
  __decorateClass([
4637
- ManyToOne38(() => Permission, { onDelete: "CASCADE" }),
4638
- JoinColumn38({ name: "permission_id" })
4756
+ ManyToOne40(() => Permission, { onDelete: "CASCADE" }),
4757
+ JoinColumn40({ name: "permission_id" })
4639
4758
  ], CompanyRolePermission.prototype, "permission", 2);
4640
4759
  __decorateClass([
4641
- Column41({ name: "assigned_by", type: "integer", nullable: true })
4760
+ Column43({ name: "assigned_by", type: "integer", nullable: true })
4642
4761
  ], CompanyRolePermission.prototype, "assignedBy", 2);
4643
4762
  CompanyRolePermission = __decorateClass([
4644
- Entity40("company_role_permissions")
4763
+ Entity42("company_role_permissions")
4645
4764
  ], CompanyRolePermission);
4646
4765
 
4647
4766
  // src/entities/company-role.entity.ts
4648
4767
  var CompanyRole = class extends BaseEntity {
4649
4768
  };
4650
4769
  __decorateClass([
4651
- Column42({ name: "user_id", type: "integer", nullable: true }),
4652
- Index35()
4770
+ Column44({ name: "user_id", type: "integer", nullable: true }),
4771
+ Index37()
4653
4772
  ], CompanyRole.prototype, "userId", 2);
4654
4773
  __decorateClass([
4655
- ManyToOne39(() => User, (user) => user.otps),
4656
- JoinColumn39({ name: "user_id" })
4774
+ ManyToOne41(() => User, (user) => user.otps),
4775
+ JoinColumn41({ name: "user_id" })
4657
4776
  ], CompanyRole.prototype, "user", 2);
4658
4777
  __decorateClass([
4659
- Column42({ name: "name", type: "varchar" })
4778
+ Column44({ name: "name", type: "varchar" })
4660
4779
  ], CompanyRole.prototype, "name", 2);
4661
4780
  __decorateClass([
4662
- Column42({ name: "slug", type: "varchar", nullable: true, unique: true }),
4663
- Index35()
4781
+ Column44({ name: "slug", type: "varchar", nullable: true, unique: true }),
4782
+ Index37()
4664
4783
  ], CompanyRole.prototype, "slug", 2);
4665
4784
  __decorateClass([
4666
- Column42({ name: "description", type: "text", nullable: true })
4785
+ Column44({ name: "description", type: "text", nullable: true })
4667
4786
  ], CompanyRole.prototype, "description", 2);
4668
4787
  __decorateClass([
4669
- Column42({ name: "is_active", type: "boolean", default: true })
4788
+ Column44({ name: "is_active", type: "boolean", default: true })
4670
4789
  ], CompanyRole.prototype, "isActive", 2);
4671
4790
  __decorateClass([
4672
- OneToMany13(() => CompanyRolePermission, (rp) => rp.companyRole)
4791
+ OneToMany14(() => CompanyRolePermission, (rp) => rp.companyRole)
4673
4792
  ], CompanyRole.prototype, "rolePermissions", 2);
4674
4793
  CompanyRole = __decorateClass([
4675
- Entity41("company_roles")
4794
+ Entity43("company_roles")
4676
4795
  ], CompanyRole);
4677
4796
 
4678
4797
  // src/entities/company-members-roles.entity.ts
4679
4798
  var CompanyMemberRole = class extends BaseEntity {
4680
4799
  };
4681
4800
  __decorateClass([
4682
- Column43({ name: "user_id", type: "integer", nullable: true }),
4683
- Index36()
4801
+ Column45({ name: "user_id", type: "integer", nullable: true }),
4802
+ Index38()
4684
4803
  ], CompanyMemberRole.prototype, "userId", 2);
4685
4804
  __decorateClass([
4686
- ManyToOne40(() => User),
4687
- JoinColumn40({ name: "user_id" })
4805
+ ManyToOne42(() => User),
4806
+ JoinColumn42({ name: "user_id" })
4688
4807
  ], CompanyMemberRole.prototype, "user", 2);
4689
4808
  __decorateClass([
4690
- ManyToOne40(() => CompanyRole),
4691
- JoinColumn40({ name: "company_role_id" })
4809
+ ManyToOne42(() => CompanyRole),
4810
+ JoinColumn42({ name: "company_role_id" })
4692
4811
  ], CompanyMemberRole.prototype, "role", 2);
4693
4812
  __decorateClass([
4694
- Column43({ name: "company_role_id", type: "integer", nullable: true }),
4695
- Index36()
4813
+ Column45({ name: "company_role_id", type: "integer", nullable: true }),
4814
+ Index38()
4696
4815
  ], CompanyMemberRole.prototype, "companyRoleId", 2);
4697
4816
  __decorateClass([
4698
- Column43({ name: "assigned_by", type: "integer", nullable: true })
4817
+ Column45({ name: "assigned_by", type: "integer", nullable: true })
4699
4818
  ], CompanyMemberRole.prototype, "assignedBy", 2);
4700
4819
  CompanyMemberRole = __decorateClass([
4701
- Entity42("company_member_roles")
4820
+ Entity44("company_member_roles")
4702
4821
  ], CompanyMemberRole);
4703
4822
 
4704
4823
  // src/entities/assessment-answer.entity.ts
4705
4824
  import {
4706
- Entity as Entity45,
4707
- Column as Column46,
4708
- ManyToOne as ManyToOne42,
4709
- Index as Index38,
4710
- JoinColumn as JoinColumn42
4825
+ Entity as Entity47,
4826
+ Column as Column48,
4827
+ ManyToOne as ManyToOne44,
4828
+ Index as Index40,
4829
+ JoinColumn as JoinColumn44
4711
4830
  } from "typeorm";
4712
4831
 
4713
4832
  // src/entities/assessment-question.entity.ts
4714
- import { Entity as Entity44, Column as Column45, OneToMany as OneToMany15 } from "typeorm";
4833
+ import { Entity as Entity46, Column as Column47, OneToMany as OneToMany16 } from "typeorm";
4715
4834
 
4716
4835
  // src/entities/assessment-question-option.entity.ts
4717
4836
  import {
4718
- Entity as Entity43,
4719
- Column as Column44,
4720
- OneToMany as OneToMany14,
4721
- ManyToOne as ManyToOne41,
4722
- Index as Index37,
4723
- JoinColumn as JoinColumn41
4837
+ Entity as Entity45,
4838
+ Column as Column46,
4839
+ OneToMany as OneToMany15,
4840
+ ManyToOne as ManyToOne43,
4841
+ Index as Index39,
4842
+ JoinColumn as JoinColumn43
4724
4843
  } from "typeorm";
4725
4844
  var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
4726
4845
  AnswerTypeEnum2["CORRECT"] = "CORRECT";
@@ -4731,21 +4850,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
4731
4850
  var AssessmetQuestionOption = class extends BaseEntity {
4732
4851
  };
4733
4852
  __decorateClass([
4734
- Column44({ name: "question_id", type: "integer", nullable: true }),
4735
- Index37()
4853
+ Column46({ name: "question_id", type: "integer", nullable: true }),
4854
+ Index39()
4736
4855
  ], AssessmetQuestionOption.prototype, "questionId", 2);
4737
4856
  __decorateClass([
4738
- ManyToOne41(
4857
+ ManyToOne43(
4739
4858
  () => AssessmetQuestion,
4740
4859
  (assessmentQuestion) => assessmentQuestion.options
4741
4860
  ),
4742
- JoinColumn41({ name: "question_id" })
4861
+ JoinColumn43({ name: "question_id" })
4743
4862
  ], AssessmetQuestionOption.prototype, "question", 2);
4744
4863
  __decorateClass([
4745
- Column44({ name: "text", type: "varchar", nullable: true })
4864
+ Column46({ name: "text", type: "varchar", nullable: true })
4746
4865
  ], AssessmetQuestionOption.prototype, "text", 2);
4747
4866
  __decorateClass([
4748
- Column44({
4867
+ Column46({
4749
4868
  name: "answer_type",
4750
4869
  type: "enum",
4751
4870
  enum: AnswerTypeEnum,
@@ -4753,13 +4872,13 @@ __decorateClass([
4753
4872
  })
4754
4873
  ], AssessmetQuestionOption.prototype, "answerType", 2);
4755
4874
  __decorateClass([
4756
- Column44({ name: "is_active", type: "boolean", default: true })
4875
+ Column46({ name: "is_active", type: "boolean", default: true })
4757
4876
  ], AssessmetQuestionOption.prototype, "isActive", 2);
4758
4877
  __decorateClass([
4759
- OneToMany14(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
4878
+ OneToMany15(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
4760
4879
  ], AssessmetQuestionOption.prototype, "selectedOptions", 2);
4761
4880
  AssessmetQuestionOption = __decorateClass([
4762
- Entity43("assessment_question_options")
4881
+ Entity45("assessment_question_options")
4763
4882
  ], AssessmetQuestionOption);
4764
4883
 
4765
4884
  // src/entities/assessment-question.entity.ts
@@ -4771,10 +4890,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
4771
4890
  var AssessmetQuestion = class extends BaseEntity {
4772
4891
  };
4773
4892
  __decorateClass([
4774
- Column45({ name: "text", type: "varchar", nullable: true })
4893
+ Column47({ name: "text", type: "varchar", nullable: true })
4775
4894
  ], AssessmetQuestion.prototype, "text", 2);
4776
4895
  __decorateClass([
4777
- Column45({
4896
+ Column47({
4778
4897
  name: "question_for",
4779
4898
  type: "enum",
4780
4899
  enum: QuestionForEnum,
@@ -4782,16 +4901,16 @@ __decorateClass([
4782
4901
  })
4783
4902
  ], AssessmetQuestion.prototype, "questionFor", 2);
4784
4903
  __decorateClass([
4785
- Column45({ name: "is_active", type: "boolean", default: true })
4904
+ Column47({ name: "is_active", type: "boolean", default: true })
4786
4905
  ], AssessmetQuestion.prototype, "isActive", 2);
4787
4906
  __decorateClass([
4788
- OneToMany15(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
4907
+ OneToMany16(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
4789
4908
  ], AssessmetQuestion.prototype, "options", 2);
4790
4909
  __decorateClass([
4791
- OneToMany15(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
4910
+ OneToMany16(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
4792
4911
  ], AssessmetQuestion.prototype, "answers", 2);
4793
4912
  AssessmetQuestion = __decorateClass([
4794
- Entity44("assessment_questions")
4913
+ Entity46("assessment_questions")
4795
4914
  ], AssessmetQuestion);
4796
4915
 
4797
4916
  // src/entities/assessment-answer.entity.ts
@@ -4804,118 +4923,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
4804
4923
  var AssessmentAnswer = class extends BaseEntity {
4805
4924
  };
4806
4925
  __decorateClass([
4807
- Column46({ name: "user_id", type: "integer" }),
4808
- Index38()
4926
+ Column48({ name: "user_id", type: "integer" }),
4927
+ Index40()
4809
4928
  ], AssessmentAnswer.prototype, "userId", 2);
4810
4929
  __decorateClass([
4811
- ManyToOne42(() => User, (user) => user.assessmentAnswers),
4812
- JoinColumn42({ name: "user_id" })
4930
+ ManyToOne44(() => User, (user) => user.assessmentAnswers),
4931
+ JoinColumn44({ name: "user_id" })
4813
4932
  ], AssessmentAnswer.prototype, "user", 2);
4814
4933
  __decorateClass([
4815
- Column46({ name: "question_id", type: "integer" }),
4816
- Index38()
4934
+ Column48({ name: "question_id", type: "integer" }),
4935
+ Index40()
4817
4936
  ], AssessmentAnswer.prototype, "questionId", 2);
4818
4937
  __decorateClass([
4819
- ManyToOne42(
4938
+ ManyToOne44(
4820
4939
  () => AssessmetQuestion,
4821
4940
  (assessmentQuestion) => assessmentQuestion.answers
4822
4941
  ),
4823
- JoinColumn42({ name: "question_id" })
4942
+ JoinColumn44({ name: "question_id" })
4824
4943
  ], AssessmentAnswer.prototype, "question", 2);
4825
4944
  __decorateClass([
4826
- Column46({ name: "selected_option_id", type: "integer" }),
4827
- Index38()
4945
+ Column48({ name: "selected_option_id", type: "integer" }),
4946
+ Index40()
4828
4947
  ], AssessmentAnswer.prototype, "selectedOptionId", 2);
4829
4948
  __decorateClass([
4830
- ManyToOne42(
4949
+ ManyToOne44(
4831
4950
  () => AssessmetQuestionOption,
4832
4951
  (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
4833
4952
  ),
4834
- JoinColumn42({ name: "selected_option_id" })
4953
+ JoinColumn44({ name: "selected_option_id" })
4835
4954
  ], AssessmentAnswer.prototype, "option", 2);
4836
4955
  __decorateClass([
4837
- Column46({
4956
+ Column48({
4838
4957
  name: "selected_answer_type",
4839
4958
  type: "enum",
4840
4959
  enum: SelectedAnswerTypeEnum
4841
4960
  })
4842
4961
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
4843
4962
  __decorateClass([
4844
- Column46({ name: "score", type: "float" })
4963
+ Column48({ name: "score", type: "float" })
4845
4964
  ], AssessmentAnswer.prototype, "score", 2);
4846
4965
  AssessmentAnswer = __decorateClass([
4847
- Entity45("assessment_answers")
4966
+ Entity47("assessment_answers")
4848
4967
  ], AssessmentAnswer);
4849
4968
 
4850
4969
  // src/entities/company-skill.entity.ts
4851
- import { Entity as Entity46, Column as Column47, Index as Index39, ManyToOne as ManyToOne43, JoinColumn as JoinColumn43 } from "typeorm";
4970
+ import { Entity as Entity48, Column as Column49, Index as Index41, ManyToOne as ManyToOne45, JoinColumn as JoinColumn45 } from "typeorm";
4852
4971
  var CompanySkill = class extends BaseEntity {
4853
4972
  };
4854
4973
  // individual index to find core skills by user
4855
4974
  __decorateClass([
4856
- Column47({ name: "user_id", type: "integer", nullable: true }),
4857
- Index39()
4975
+ Column49({ name: "user_id", type: "integer", nullable: true }),
4976
+ Index41()
4858
4977
  ], CompanySkill.prototype, "userId", 2);
4859
4978
  __decorateClass([
4860
- ManyToOne43(() => User, (user) => user.freelancerSkills),
4861
- JoinColumn43({ name: "user_id" })
4979
+ ManyToOne45(() => User, (user) => user.freelancerSkills),
4980
+ JoinColumn45({ name: "user_id" })
4862
4981
  ], CompanySkill.prototype, "user", 2);
4863
4982
  __decorateClass([
4864
- Column47({ name: "skill_name", type: "varchar", nullable: true })
4983
+ Column49({ name: "skill_name", type: "varchar", nullable: true })
4865
4984
  ], CompanySkill.prototype, "skillName", 2);
4866
4985
  CompanySkill = __decorateClass([
4867
- Entity46("company_skills")
4986
+ Entity48("company_skills")
4868
4987
  ], CompanySkill);
4869
4988
 
4870
4989
  // src/entities/admin-user-role.entity.ts
4871
- import { Entity as Entity50, Column as Column51, ManyToOne as ManyToOne45, JoinColumn as JoinColumn45 } from "typeorm";
4990
+ import { Entity as Entity52, Column as Column53, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
4872
4991
 
4873
4992
  // src/entities/admin-role.entity.ts
4874
- import { Entity as Entity49, Column as Column50, Index as Index42, OneToMany as OneToMany18 } from "typeorm";
4993
+ import { Entity as Entity51, Column as Column52, Index as Index44, OneToMany as OneToMany19 } from "typeorm";
4875
4994
 
4876
4995
  // src/entities/admin-role-permission.entity.ts
4877
- import { Entity as Entity48, Column as Column49, ManyToOne as ManyToOne44, JoinColumn as JoinColumn44 } from "typeorm";
4996
+ import { Entity as Entity50, Column as Column51, ManyToOne as ManyToOne46, JoinColumn as JoinColumn46 } from "typeorm";
4878
4997
 
4879
4998
  // src/entities/admin-permission.entity.ts
4880
- import { Entity as Entity47, Column as Column48, Index as Index40, OneToMany as OneToMany17 } from "typeorm";
4999
+ import { Entity as Entity49, Column as Column50, Index as Index42, OneToMany as OneToMany18 } from "typeorm";
4881
5000
  var AdminPermission = class extends BaseEntity {
4882
5001
  };
4883
5002
  __decorateClass([
4884
- Column48({ name: "permission_name", type: "varchar", nullable: true })
5003
+ Column50({ name: "permission_name", type: "varchar", nullable: true })
4885
5004
  ], AdminPermission.prototype, "permissionName", 2);
4886
5005
  __decorateClass([
4887
- Column48({
5006
+ Column50({
4888
5007
  name: "permission_slug",
4889
5008
  type: "varchar",
4890
5009
  unique: true,
4891
5010
  nullable: true
4892
5011
  }),
4893
- Index40()
5012
+ Index42()
4894
5013
  ], AdminPermission.prototype, "permissionSlug", 2);
4895
5014
  __decorateClass([
4896
- Column48({ name: "permission_description", type: "varchar", nullable: true })
5015
+ Column50({ name: "permission_description", type: "varchar", nullable: true })
4897
5016
  ], AdminPermission.prototype, "permissionDescription", 2);
4898
5017
  __decorateClass([
4899
- Column48({ name: "module", type: "varchar", nullable: true })
5018
+ Column50({ name: "module", type: "varchar", nullable: true })
4900
5019
  ], AdminPermission.prototype, "module", 2);
4901
5020
  __decorateClass([
4902
- Column48({ name: "is_active", type: "boolean", default: true })
5021
+ Column50({ name: "is_active", type: "boolean", default: true })
4903
5022
  ], AdminPermission.prototype, "isActive", 2);
4904
5023
  __decorateClass([
4905
- OneToMany17(
5024
+ OneToMany18(
4906
5025
  () => AdminRolePermission,
4907
5026
  (adminRolePermission) => adminRolePermission.adminPermissions
4908
5027
  )
4909
5028
  ], AdminPermission.prototype, "adminRole", 2);
4910
5029
  AdminPermission = __decorateClass([
4911
- Entity47("admin_permissions")
5030
+ Entity49("admin_permissions")
4912
5031
  ], AdminPermission);
4913
5032
 
4914
5033
  // src/entities/admin-role-permission.entity.ts
4915
5034
  var AdminRolePermission = class extends BaseEntity {
4916
5035
  };
4917
5036
  __decorateClass([
4918
- Column49({
5037
+ Column51({
4919
5038
  name: "role_id",
4920
5039
  type: "int",
4921
5040
  nullable: true,
@@ -4923,11 +5042,11 @@ __decorateClass([
4923
5042
  })
4924
5043
  ], AdminRolePermission.prototype, "roleId", 2);
4925
5044
  __decorateClass([
4926
- ManyToOne44(() => AdminRole),
4927
- JoinColumn44({ name: "role_id" })
5045
+ ManyToOne46(() => AdminRole),
5046
+ JoinColumn46({ name: "role_id" })
4928
5047
  ], AdminRolePermission.prototype, "adminRole", 2);
4929
5048
  __decorateClass([
4930
- Column49({
5049
+ Column51({
4931
5050
  name: "permission_id",
4932
5051
  type: "int",
4933
5052
  nullable: true,
@@ -4935,47 +5054,47 @@ __decorateClass([
4935
5054
  })
4936
5055
  ], AdminRolePermission.prototype, "permissionId", 2);
4937
5056
  __decorateClass([
4938
- ManyToOne44(() => AdminPermission),
4939
- JoinColumn44({ name: "permission_id" })
5057
+ ManyToOne46(() => AdminPermission),
5058
+ JoinColumn46({ name: "permission_id" })
4940
5059
  ], AdminRolePermission.prototype, "adminPermissions", 2);
4941
5060
  AdminRolePermission = __decorateClass([
4942
- Entity48("admin_role_permissions")
5061
+ Entity50("admin_role_permissions")
4943
5062
  ], AdminRolePermission);
4944
5063
 
4945
5064
  // src/entities/admin-role.entity.ts
4946
5065
  var AdminRole = class extends BaseEntity {
4947
5066
  };
4948
5067
  __decorateClass([
4949
- Column50({ name: "role_name", type: "varchar", nullable: true })
5068
+ Column52({ name: "role_name", type: "varchar", nullable: true })
4950
5069
  ], AdminRole.prototype, "roleName", 2);
4951
5070
  __decorateClass([
4952
- Column50({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
4953
- Index42()
5071
+ Column52({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5072
+ Index44()
4954
5073
  ], AdminRole.prototype, "roleSlug", 2);
4955
5074
  __decorateClass([
4956
- Column50({ name: "role_description", type: "varchar", nullable: true })
5075
+ Column52({ name: "role_description", type: "varchar", nullable: true })
4957
5076
  ], AdminRole.prototype, "roleDescription", 2);
4958
5077
  __decorateClass([
4959
- Column50({ name: "is_active", type: "boolean", default: true })
5078
+ Column52({ name: "is_active", type: "boolean", default: true })
4960
5079
  ], AdminRole.prototype, "isActive", 2);
4961
5080
  __decorateClass([
4962
- OneToMany18(
5081
+ OneToMany19(
4963
5082
  () => AdminRolePermission,
4964
5083
  (addminRolePermission) => addminRolePermission.adminRole
4965
5084
  )
4966
5085
  ], AdminRole.prototype, "adminRolePermission", 2);
4967
5086
  __decorateClass([
4968
- OneToMany18(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
5087
+ OneToMany19(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
4969
5088
  ], AdminRole.prototype, "userRoles", 2);
4970
5089
  AdminRole = __decorateClass([
4971
- Entity49("admin_roles")
5090
+ Entity51("admin_roles")
4972
5091
  ], AdminRole);
4973
5092
 
4974
5093
  // src/entities/admin-user-role.entity.ts
4975
5094
  var AdminUserRole = class extends BaseEntity {
4976
5095
  };
4977
5096
  __decorateClass([
4978
- Column51({
5097
+ Column53({
4979
5098
  name: "user_id",
4980
5099
  type: "int",
4981
5100
  nullable: true,
@@ -4983,11 +5102,11 @@ __decorateClass([
4983
5102
  })
4984
5103
  ], AdminUserRole.prototype, "userId", 2);
4985
5104
  __decorateClass([
4986
- ManyToOne45(() => User),
4987
- JoinColumn45({ name: "user_id" })
5105
+ ManyToOne47(() => User),
5106
+ JoinColumn47({ name: "user_id" })
4988
5107
  ], AdminUserRole.prototype, "user", 2);
4989
5108
  __decorateClass([
4990
- Column51({
5109
+ Column53({
4991
5110
  name: "role_id",
4992
5111
  type: "int",
4993
5112
  nullable: true,
@@ -4995,70 +5114,70 @@ __decorateClass([
4995
5114
  })
4996
5115
  ], AdminUserRole.prototype, "roleId", 2);
4997
5116
  __decorateClass([
4998
- ManyToOne45(() => AdminRole),
4999
- JoinColumn45({ name: "role_id" })
5117
+ ManyToOne47(() => AdminRole),
5118
+ JoinColumn47({ name: "role_id" })
5000
5119
  ], AdminUserRole.prototype, "adminRole", 2);
5001
5120
  AdminUserRole = __decorateClass([
5002
- Entity50("admin_user_roles")
5121
+ Entity52("admin_user_roles")
5003
5122
  ], AdminUserRole);
5004
5123
 
5005
5124
  // src/entities/freelancer-resume.entity.ts
5006
5125
  import {
5007
- Entity as Entity51,
5008
- Column as Column52,
5009
- Index as Index44,
5010
- ManyToOne as ManyToOne46,
5011
- JoinColumn as JoinColumn46
5126
+ Entity as Entity53,
5127
+ Column as Column54,
5128
+ Index as Index46,
5129
+ ManyToOne as ManyToOne48,
5130
+ JoinColumn as JoinColumn48
5012
5131
  } from "typeorm";
5013
5132
  var FreelancerResume = class extends BaseEntity {
5014
5133
  };
5015
5134
  // individual index to find profile by user
5016
5135
  __decorateClass([
5017
- Column52({ name: "user_id", type: "integer", nullable: true }),
5018
- Index44()
5136
+ Column54({ name: "user_id", type: "integer", nullable: true }),
5137
+ Index46()
5019
5138
  ], FreelancerResume.prototype, "userId", 2);
5020
5139
  __decorateClass([
5021
- ManyToOne46(() => User, (user) => user.freelancerProfile),
5022
- JoinColumn46({ name: "user_id" })
5140
+ ManyToOne48(() => User, (user) => user.freelancerProfile),
5141
+ JoinColumn48({ name: "user_id" })
5023
5142
  ], FreelancerResume.prototype, "user", 2);
5024
5143
  __decorateClass([
5025
- Column52({ name: "resume_data", type: "jsonb", nullable: true })
5144
+ Column54({ name: "resume_data", type: "jsonb", nullable: true })
5026
5145
  ], FreelancerResume.prototype, "resumeData", 2);
5027
5146
  __decorateClass([
5028
- Column52({ name: "processed_resume_data", type: "jsonb", nullable: true })
5147
+ Column54({ name: "processed_resume_data", type: "jsonb", nullable: true })
5029
5148
  ], FreelancerResume.prototype, "processedResumeData", 2);
5030
5149
  FreelancerResume = __decorateClass([
5031
- Entity51("freelancer_resumes")
5150
+ Entity53("freelancer_resumes")
5032
5151
  ], FreelancerResume);
5033
5152
 
5034
5153
  // src/entities/signature.entity.ts
5035
5154
  import {
5036
- Entity as Entity52,
5037
- Column as Column53,
5038
- Index as Index45,
5039
- ManyToOne as ManyToOne47,
5040
- JoinColumn as JoinColumn47
5155
+ Entity as Entity54,
5156
+ Column as Column55,
5157
+ Index as Index47,
5158
+ ManyToOne as ManyToOne49,
5159
+ JoinColumn as JoinColumn49
5041
5160
  } from "typeorm";
5042
5161
  var Signature = class extends BaseEntity {
5043
5162
  };
5044
5163
  // individual index to find profile by user
5045
5164
  __decorateClass([
5046
- Column53({ name: "user_id", type: "integer", nullable: true }),
5047
- Index45()
5165
+ Column55({ name: "user_id", type: "integer", nullable: true }),
5166
+ Index47()
5048
5167
  ], Signature.prototype, "userId", 2);
5049
5168
  __decorateClass([
5050
- ManyToOne47(() => User, (user) => user.signatures),
5051
- JoinColumn47({ name: "user_id" })
5169
+ ManyToOne49(() => User, (user) => user.signatures),
5170
+ JoinColumn49({ name: "user_id" })
5052
5171
  ], Signature.prototype, "user", 2);
5053
5172
  __decorateClass([
5054
- Column53({ name: "signature_url", type: "text", nullable: true })
5173
+ Column55({ name: "signature_url", type: "text", nullable: true })
5055
5174
  ], Signature.prototype, "signatureUrl", 2);
5056
5175
  Signature = __decorateClass([
5057
- Entity52("signatures")
5176
+ Entity54("signatures")
5058
5177
  ], Signature);
5059
5178
 
5060
5179
  // src/entities/dispute.entity.ts
5061
- import { Entity as Entity53, Column as Column54, Index as Index46, JoinColumn as JoinColumn48, ManyToOne as ManyToOne48 } from "typeorm";
5180
+ import { Entity as Entity55, Column as Column56, Index as Index48, JoinColumn as JoinColumn50, ManyToOne as ManyToOne50 } from "typeorm";
5062
5181
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
5063
5182
  DisputeStatusEnum2["OPEN"] = "OPEN";
5064
5183
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -5079,36 +5198,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
5079
5198
  var Dispute = class extends BaseEntity {
5080
5199
  };
5081
5200
  __decorateClass([
5082
- Column54({ name: "client_id", type: "integer", nullable: true }),
5083
- Index46()
5201
+ Column56({ name: "client_id", type: "integer", nullable: true }),
5202
+ Index48()
5084
5203
  ], Dispute.prototype, "clientId", 2);
5085
5204
  __decorateClass([
5086
- ManyToOne48(() => User, (user) => user.clientDisputes),
5087
- JoinColumn48({ name: "client_id" })
5205
+ ManyToOne50(() => User, (user) => user.clientDisputes),
5206
+ JoinColumn50({ name: "client_id" })
5088
5207
  ], Dispute.prototype, "client", 2);
5089
5208
  __decorateClass([
5090
- Column54({ name: "freelancer_id", type: "integer", nullable: true }),
5091
- Index46()
5209
+ Column56({ name: "freelancer_id", type: "integer", nullable: true }),
5210
+ Index48()
5092
5211
  ], Dispute.prototype, "freelancerId", 2);
5093
5212
  __decorateClass([
5094
- ManyToOne48(() => User, (user) => user.freelancerDisputes),
5095
- JoinColumn48({ name: "freelancer_id" })
5213
+ ManyToOne50(() => User, (user) => user.freelancerDisputes),
5214
+ JoinColumn50({ name: "freelancer_id" })
5096
5215
  ], Dispute.prototype, "freelancer", 2);
5097
5216
  __decorateClass([
5098
- Column54({ name: "dispute_unique_id", type: "varchar", unique: true })
5217
+ Column56({ name: "dispute_unique_id", type: "varchar", unique: true })
5099
5218
  ], Dispute.prototype, "disputeUniqueId", 2);
5100
5219
  __decorateClass([
5101
- Column54({ name: "dispute_type", type: "varchar", nullable: true }),
5102
- Index46()
5220
+ Column56({ name: "dispute_type", type: "varchar", nullable: true }),
5221
+ Index48()
5103
5222
  ], Dispute.prototype, "disputeType", 2);
5104
5223
  __decorateClass([
5105
- Column54({ name: "description", type: "varchar", nullable: true })
5224
+ Column56({ name: "description", type: "varchar", nullable: true })
5106
5225
  ], Dispute.prototype, "description", 2);
5107
5226
  __decorateClass([
5108
- Column54({ name: "comment", type: "varchar", nullable: true })
5227
+ Column56({ name: "comment", type: "varchar", nullable: true })
5109
5228
  ], Dispute.prototype, "comment", 2);
5110
5229
  __decorateClass([
5111
- Column54({
5230
+ Column56({
5112
5231
  name: "status",
5113
5232
  type: "enum",
5114
5233
  enum: DisputeStatusEnum,
@@ -5116,7 +5235,7 @@ __decorateClass([
5116
5235
  })
5117
5236
  ], Dispute.prototype, "status", 2);
5118
5237
  __decorateClass([
5119
- Column54({
5238
+ Column56({
5120
5239
  name: "initiator_type",
5121
5240
  type: "enum",
5122
5241
  enum: InitiatorTypeEnum,
@@ -5125,33 +5244,33 @@ __decorateClass([
5125
5244
  })
5126
5245
  ], Dispute.prototype, "initiatorType", 2);
5127
5246
  __decorateClass([
5128
- Column54({ name: "initiator_id", type: "integer" }),
5129
- Index46()
5247
+ Column56({ name: "initiator_id", type: "integer" }),
5248
+ Index48()
5130
5249
  ], Dispute.prototype, "initiatorId", 2);
5131
5250
  __decorateClass([
5132
- ManyToOne48(() => User, (user) => user.initiatedDisputes),
5133
- JoinColumn48({ name: "initiator_id" })
5251
+ ManyToOne50(() => User, (user) => user.initiatedDisputes),
5252
+ JoinColumn50({ name: "initiator_id" })
5134
5253
  ], Dispute.prototype, "initiator", 2);
5135
5254
  __decorateClass([
5136
- Column54({ name: "respondent_id", type: "integer", nullable: true }),
5137
- Index46()
5255
+ Column56({ name: "respondent_id", type: "integer", nullable: true }),
5256
+ Index48()
5138
5257
  ], Dispute.prototype, "respondentId", 2);
5139
5258
  __decorateClass([
5140
- ManyToOne48(() => User, (user) => user.respondentDisputes, { nullable: true }),
5141
- JoinColumn48({ name: "respondent_id" })
5259
+ ManyToOne50(() => User, (user) => user.respondentDisputes, { nullable: true }),
5260
+ JoinColumn50({ name: "respondent_id" })
5142
5261
  ], Dispute.prototype, "respondent", 2);
5143
5262
  __decorateClass([
5144
- Column54({ name: "attachments", type: "jsonb", nullable: true })
5263
+ Column56({ name: "attachments", type: "jsonb", nullable: true })
5145
5264
  ], Dispute.prototype, "attachments", 2);
5146
5265
  __decorateClass([
5147
- Column54({ name: "dynamic_fields", type: "jsonb", nullable: true })
5266
+ Column56({ name: "dynamic_fields", type: "jsonb", nullable: true })
5148
5267
  ], Dispute.prototype, "dynamicFields", 2);
5149
5268
  Dispute = __decorateClass([
5150
- Entity53("disputes")
5269
+ Entity55("disputes")
5151
5270
  ], Dispute);
5152
5271
 
5153
5272
  // src/entities/stripe-transaction.entity.ts
5154
- import { Entity as Entity54, Column as Column55, Index as Index47, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
5273
+ import { Entity as Entity56, Column as Column57, Index as Index49, ManyToOne as ManyToOne51, JoinColumn as JoinColumn51 } from "typeorm";
5155
5274
  var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
5156
5275
  StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
5157
5276
  StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -5173,97 +5292,97 @@ var StripeTransaction = class extends BaseEntity {
5173
5292
  // Full Stripe session response
5174
5293
  };
5175
5294
  __decorateClass([
5176
- Column55({ name: "user_id", type: "integer", nullable: true }),
5177
- Index47()
5295
+ Column57({ name: "user_id", type: "integer", nullable: true }),
5296
+ Index49()
5178
5297
  ], StripeTransaction.prototype, "userId", 2);
5179
5298
  __decorateClass([
5180
- ManyToOne49(() => User, (user) => user.stripeTransactions),
5181
- JoinColumn49({ name: "user_id" })
5299
+ ManyToOne51(() => User, (user) => user.stripeTransactions),
5300
+ JoinColumn51({ name: "user_id" })
5182
5301
  ], StripeTransaction.prototype, "user", 2);
5183
5302
  __decorateClass([
5184
- Column55({ name: "stripe_session_id", type: "varchar", nullable: true })
5303
+ Column57({ name: "stripe_session_id", type: "varchar", nullable: true })
5185
5304
  ], StripeTransaction.prototype, "stripeSessionId", 2);
5186
5305
  __decorateClass([
5187
- Column55({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5306
+ Column57({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
5188
5307
  ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
5189
5308
  __decorateClass([
5190
- Column55({ name: "stripe_charge_id", type: "varchar", nullable: true })
5309
+ Column57({ name: "stripe_charge_id", type: "varchar", nullable: true })
5191
5310
  ], StripeTransaction.prototype, "stripeChargeId", 2);
5192
5311
  __decorateClass([
5193
- Column55({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5312
+ Column57({ name: "stripe_receipt_url", type: "varchar", nullable: true })
5194
5313
  ], StripeTransaction.prototype, "stripeReceiptUrl", 2);
5195
5314
  __decorateClass([
5196
- Column55({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5315
+ Column57({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
5197
5316
  ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
5198
5317
  __decorateClass([
5199
- Column55({ name: "stripe_payment_method", type: "varchar", nullable: true })
5318
+ Column57({ name: "stripe_payment_method", type: "varchar", nullable: true })
5200
5319
  ], StripeTransaction.prototype, "stripePaymentMethod", 2);
5201
5320
  __decorateClass([
5202
- Column55({ name: "stripe_payment_status", type: "varchar", nullable: true })
5321
+ Column57({ name: "stripe_payment_status", type: "varchar", nullable: true })
5203
5322
  ], StripeTransaction.prototype, "stripePaymentStatus", 2);
5204
5323
  __decorateClass([
5205
- Column55({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5324
+ Column57({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
5206
5325
  ], StripeTransaction.prototype, "type", 2);
5207
5326
  __decorateClass([
5208
- Column55({ name: "currency", type: "varchar", nullable: true })
5327
+ Column57({ name: "currency", type: "varchar", nullable: true })
5209
5328
  ], StripeTransaction.prototype, "currency", 2);
5210
5329
  __decorateClass([
5211
- Column55({ 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" })
5330
+ Column57({ 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" })
5212
5331
  ], StripeTransaction.prototype, "desiredDepositCents", 2);
5213
5332
  __decorateClass([
5214
- Column55({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5333
+ Column57({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
5215
5334
  ], StripeTransaction.prototype, "platformFeeCents", 2);
5216
5335
  __decorateClass([
5217
- Column55({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5336
+ Column57({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
5218
5337
  ], StripeTransaction.prototype, "taxCents", 2);
5219
5338
  __decorateClass([
5220
- Column55({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5339
+ Column57({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
5221
5340
  ], StripeTransaction.prototype, "estimatedStripeFee", 2);
5222
5341
  __decorateClass([
5223
- Column55({ 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" })
5342
+ Column57({ 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" })
5224
5343
  ], StripeTransaction.prototype, "estimatedTotalCents", 2);
5225
5344
  __decorateClass([
5226
- Column55({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5345
+ Column57({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
5227
5346
  ], StripeTransaction.prototype, "actualStripeFee", 2);
5228
5347
  __decorateClass([
5229
- Column55({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5348
+ Column57({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
5230
5349
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
5231
5350
  __decorateClass([
5232
- Column55({ 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" })
5351
+ Column57({ 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" })
5233
5352
  ], StripeTransaction.prototype, "netReceivedCents", 2);
5234
5353
  __decorateClass([
5235
- Column55({ name: "description", type: "text", nullable: true })
5354
+ Column57({ name: "description", type: "text", nullable: true })
5236
5355
  ], StripeTransaction.prototype, "description", 2);
5237
5356
  __decorateClass([
5238
- Column55({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5357
+ Column57({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5239
5358
  ], StripeTransaction.prototype, "status", 2);
5240
5359
  __decorateClass([
5241
- Column55({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5360
+ Column57({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
5242
5361
  ], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
5243
5362
  __decorateClass([
5244
- Column55({ name: "completed_at", type: "timestamptz", nullable: true })
5363
+ Column57({ name: "completed_at", type: "timestamptz", nullable: true })
5245
5364
  ], StripeTransaction.prototype, "completedAt", 2);
5246
5365
  __decorateClass([
5247
- Column55({ name: "billing_details", type: "jsonb", nullable: true })
5366
+ Column57({ name: "billing_details", type: "jsonb", nullable: true })
5248
5367
  ], StripeTransaction.prototype, "billingDetails", 2);
5249
5368
  __decorateClass([
5250
- Column55({ name: "payment_method_details", type: "jsonb", nullable: true })
5369
+ Column57({ name: "payment_method_details", type: "jsonb", nullable: true })
5251
5370
  ], StripeTransaction.prototype, "paymentMethodDetails", 2);
5252
5371
  __decorateClass([
5253
- Column55({ name: "raw_session_payload", type: "jsonb", nullable: true })
5372
+ Column57({ name: "raw_session_payload", type: "jsonb", nullable: true })
5254
5373
  ], StripeTransaction.prototype, "rawSessionPayload", 2);
5255
5374
  __decorateClass([
5256
- Column55({ name: "raw_session_response", type: "jsonb", nullable: true })
5375
+ Column57({ name: "raw_session_response", type: "jsonb", nullable: true })
5257
5376
  ], StripeTransaction.prototype, "rawSessionResponse", 2);
5258
5377
  StripeTransaction = __decorateClass([
5259
- Entity54("stripe_transactions")
5378
+ Entity56("stripe_transactions")
5260
5379
  ], StripeTransaction);
5261
5380
 
5262
5381
  // src/entities/wallet.entity.ts
5263
- import { Entity as Entity56, Column as Column57, Index as Index49, JoinColumn as JoinColumn51, OneToOne as OneToOne6, OneToMany as OneToMany19 } from "typeorm";
5382
+ import { Entity as Entity58, Column as Column59, Index as Index51, JoinColumn as JoinColumn53, OneToOne as OneToOne10, OneToMany as OneToMany20 } from "typeorm";
5264
5383
 
5265
5384
  // src/entities/wallet-transaction.entity.ts
5266
- import { Entity as Entity55, Column as Column56, Index as Index48, ManyToOne as ManyToOne50, JoinColumn as JoinColumn50 } from "typeorm";
5385
+ import { Entity as Entity57, Column as Column58, Index as Index50, ManyToOne as ManyToOne52, JoinColumn as JoinColumn52 } from "typeorm";
5267
5386
  var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
5268
5387
  WalletTransactionTypeEnum2["CR"] = "CR";
5269
5388
  WalletTransactionTypeEnum2["DR"] = "DR";
@@ -5280,46 +5399,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
5280
5399
  var WalletTransaction = class extends BaseEntity {
5281
5400
  };
5282
5401
  __decorateClass([
5283
- Column56({ name: "wallet_id", type: "integer", nullable: true }),
5284
- Index48()
5402
+ Column58({ name: "wallet_id", type: "integer", nullable: true }),
5403
+ Index50()
5285
5404
  ], WalletTransaction.prototype, "walletId", 2);
5286
5405
  __decorateClass([
5287
- ManyToOne50(() => Wallet, (wallet) => wallet.walletTransactions),
5288
- JoinColumn50({ name: "wallet_id" })
5406
+ ManyToOne52(() => Wallet, (wallet) => wallet.walletTransactions),
5407
+ JoinColumn52({ name: "wallet_id" })
5289
5408
  ], WalletTransaction.prototype, "wallet", 2);
5290
5409
  __decorateClass([
5291
- Column56({ name: "amount", type: "bigint", nullable: true })
5410
+ Column58({ name: "amount", type: "bigint", nullable: true })
5292
5411
  ], WalletTransaction.prototype, "amount", 2);
5293
5412
  __decorateClass([
5294
- Column56({ name: "balance_before", type: "bigint", nullable: true })
5413
+ Column58({ name: "balance_before", type: "bigint", nullable: true })
5295
5414
  ], WalletTransaction.prototype, "balanceBefore", 2);
5296
5415
  __decorateClass([
5297
- Column56({ name: "balance_after", type: "bigint", nullable: true })
5416
+ Column58({ name: "balance_after", type: "bigint", nullable: true })
5298
5417
  ], WalletTransaction.prototype, "balanceAfter", 2);
5299
5418
  __decorateClass([
5300
- Column56({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5419
+ Column58({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5301
5420
  ], WalletTransaction.prototype, "type", 2);
5302
5421
  __decorateClass([
5303
- Column56({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5422
+ Column58({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
5304
5423
  ], WalletTransaction.prototype, "status", 2);
5305
5424
  __decorateClass([
5306
- Column56({ name: "description", type: "text", nullable: true })
5425
+ Column58({ name: "description", type: "text", nullable: true })
5307
5426
  ], WalletTransaction.prototype, "description", 2);
5308
5427
  __decorateClass([
5309
- Column56({ name: "completed_at", type: "timestamptz", nullable: true })
5428
+ Column58({ name: "completed_at", type: "timestamptz", nullable: true })
5310
5429
  ], WalletTransaction.prototype, "completedAt", 2);
5311
5430
  __decorateClass([
5312
- Column56({ name: "transaction_for", type: "varchar", nullable: true })
5431
+ Column58({ name: "transaction_for", type: "varchar", nullable: true })
5313
5432
  ], WalletTransaction.prototype, "transactionFor", 2);
5314
5433
  __decorateClass([
5315
- Column56({ name: "meta_data", type: "varchar", nullable: true })
5434
+ Column58({ name: "meta_data", type: "varchar", nullable: true })
5316
5435
  ], WalletTransaction.prototype, "metaData", 2);
5317
5436
  __decorateClass([
5318
- Column56({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5319
- Index48()
5437
+ Column58({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5438
+ Index50()
5320
5439
  ], WalletTransaction.prototype, "stripeTransactionId", 2);
5321
5440
  WalletTransaction = __decorateClass([
5322
- Entity55("wallet_transactions")
5441
+ Entity57("wallet_transactions")
5323
5442
  ], WalletTransaction);
5324
5443
 
5325
5444
  // src/entities/wallet.entity.ts
@@ -5337,39 +5456,39 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
5337
5456
  var Wallet = class extends BaseEntity {
5338
5457
  };
5339
5458
  __decorateClass([
5340
- Column57({ name: "user_id", type: "integer", nullable: true }),
5341
- Index49()
5459
+ Column59({ name: "user_id", type: "integer", nullable: true }),
5460
+ Index51()
5342
5461
  ], Wallet.prototype, "userId", 2);
5343
5462
  __decorateClass([
5344
- OneToOne6(() => User, (user) => user.wallet),
5345
- JoinColumn51({ name: "user_id" })
5463
+ OneToOne10(() => User, (user) => user.wallet),
5464
+ JoinColumn53({ name: "user_id" })
5346
5465
  ], Wallet.prototype, "user", 2);
5347
5466
  __decorateClass([
5348
- Column57({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5467
+ Column59({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
5349
5468
  ], Wallet.prototype, "accountType", 2);
5350
5469
  __decorateClass([
5351
- Column57({ name: "stripe_account_id", type: "varchar", nullable: true })
5470
+ Column59({ name: "stripe_account_id", type: "varchar", nullable: true })
5352
5471
  ], Wallet.prototype, "stripeAccountId", 2);
5353
5472
  __decorateClass([
5354
- Column57({ name: "stripe_customer_id", type: "varchar", nullable: true })
5473
+ Column59({ name: "stripe_customer_id", type: "varchar", nullable: true })
5355
5474
  ], Wallet.prototype, "stripeCustomerId", 2);
5356
5475
  __decorateClass([
5357
- Column57({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
5476
+ Column59({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
5358
5477
  ], Wallet.prototype, "walletBalance", 2);
5359
5478
  __decorateClass([
5360
- Column57({ 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" })
5479
+ Column59({ 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" })
5361
5480
  ], Wallet.prototype, "walletBalanceCents", 2);
5362
5481
  __decorateClass([
5363
- Column57({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5482
+ Column59({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
5364
5483
  ], Wallet.prototype, "onboardingStatus", 2);
5365
5484
  __decorateClass([
5366
- Column57({ name: "stripe_metadata", type: "jsonb", nullable: true })
5485
+ Column59({ name: "stripe_metadata", type: "jsonb", nullable: true })
5367
5486
  ], Wallet.prototype, "stripeMetadata", 2);
5368
5487
  __decorateClass([
5369
- OneToMany19(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5488
+ OneToMany20(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
5370
5489
  ], Wallet.prototype, "walletTransactions", 2);
5371
5490
  Wallet = __decorateClass([
5372
- Entity56("wallets")
5491
+ Entity58("wallets")
5373
5492
  ], Wallet);
5374
5493
 
5375
5494
  // src/entities/user.entity.ts
@@ -5397,51 +5516,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
5397
5516
  var User = class extends BaseEntity {
5398
5517
  };
5399
5518
  __decorateClass([
5400
- Column58({ name: "unique_id", type: "varchar", unique: true })
5519
+ Column60({ name: "unique_id", type: "varchar", unique: true })
5401
5520
  ], User.prototype, "uniqueId", 2);
5402
5521
  __decorateClass([
5403
- Column58({ name: "parent_id", type: "integer", nullable: true }),
5404
- Index50()
5522
+ Column60({ name: "parent_id", type: "integer", nullable: true }),
5523
+ Index52()
5405
5524
  ], User.prototype, "parentId", 2);
5406
5525
  __decorateClass([
5407
- ManyToOne51(() => User, (user) => user.children, { nullable: true }),
5408
- JoinColumn52({ name: "parent_id" })
5526
+ ManyToOne53(() => User, (user) => user.children, { nullable: true }),
5527
+ JoinColumn54({ name: "parent_id" })
5409
5528
  ], User.prototype, "parent", 2);
5410
5529
  __decorateClass([
5411
- OneToMany20(() => User, (user) => user.parent)
5530
+ OneToMany21(() => User, (user) => user.parent)
5412
5531
  ], User.prototype, "children", 2);
5413
5532
  __decorateClass([
5414
- Column58({ name: "username", type: "varchar", unique: true, nullable: true })
5533
+ Column60({ name: "username", type: "varchar", unique: true, nullable: true })
5415
5534
  ], User.prototype, "username", 2);
5416
5535
  __decorateClass([
5417
- Column58({ name: "first_name", type: "varchar", length: 100, nullable: true })
5536
+ Column60({ name: "first_name", type: "varchar", length: 100, nullable: true })
5418
5537
  ], User.prototype, "firstName", 2);
5419
5538
  __decorateClass([
5420
- Column58({ name: "last_name", type: "varchar", length: 100, nullable: true })
5539
+ Column60({ name: "last_name", type: "varchar", length: 100, nullable: true })
5421
5540
  ], User.prototype, "lastName", 2);
5422
5541
  __decorateClass([
5423
- Column58({ name: "date_of_birth", type: "date", nullable: true })
5542
+ Column60({ name: "date_of_birth", type: "date", nullable: true })
5424
5543
  ], User.prototype, "dateOfBirth", 2);
5425
5544
  __decorateClass([
5426
- Column58({ name: "gender", type: "varchar", length: 10, nullable: true })
5545
+ Column60({ name: "gender", type: "varchar", length: 10, nullable: true })
5427
5546
  ], User.prototype, "gender", 2);
5428
5547
  __decorateClass([
5429
- Column58({ name: "profile_picture_url", type: "text", nullable: true })
5548
+ Column60({ name: "profile_picture_url", type: "text", nullable: true })
5430
5549
  ], User.prototype, "profilePictureUrl", 2);
5431
5550
  __decorateClass([
5432
- Column58({ name: "email", type: "varchar", unique: true })
5551
+ Column60({ name: "email", type: "varchar", unique: true })
5433
5552
  ], User.prototype, "email", 2);
5434
5553
  __decorateClass([
5435
- Column58({ name: "mobile_code", type: "varchar", nullable: true })
5554
+ Column60({ name: "mobile_code", type: "varchar", nullable: true })
5436
5555
  ], User.prototype, "mobileCode", 2);
5437
5556
  __decorateClass([
5438
- Column58({ name: "mobile", type: "varchar", nullable: true })
5557
+ Column60({ name: "mobile", type: "varchar", nullable: true })
5439
5558
  ], User.prototype, "mobile", 2);
5440
5559
  __decorateClass([
5441
- Column58({ name: "password", type: "varchar", nullable: true })
5560
+ Column60({ name: "password", type: "varchar", nullable: true })
5442
5561
  ], User.prototype, "password", 2);
5443
5562
  __decorateClass([
5444
- Column58({
5563
+ Column60({
5445
5564
  name: "account_type",
5446
5565
  type: "enum",
5447
5566
  enum: AccountType,
@@ -5449,7 +5568,7 @@ __decorateClass([
5449
5568
  })
5450
5569
  ], User.prototype, "accountType", 2);
5451
5570
  __decorateClass([
5452
- Column58({
5571
+ Column60({
5453
5572
  name: "account_status",
5454
5573
  type: "enum",
5455
5574
  enum: AccountStatus,
@@ -5457,42 +5576,42 @@ __decorateClass([
5457
5576
  })
5458
5577
  ], User.prototype, "accountStatus", 2);
5459
5578
  __decorateClass([
5460
- Column58({ name: "is_email_verified", type: "boolean", default: false })
5579
+ Column60({ name: "is_email_verified", type: "boolean", default: false })
5461
5580
  ], User.prototype, "isEmailVerified", 2);
5462
5581
  __decorateClass([
5463
- Column58({ name: "is_mobile_verified", type: "boolean", default: false })
5582
+ Column60({ name: "is_mobile_verified", type: "boolean", default: false })
5464
5583
  ], User.prototype, "isMobileVerified", 2);
5465
5584
  __decorateClass([
5466
- Column58({ name: "is_social", type: "boolean", default: false })
5585
+ Column60({ name: "is_social", type: "boolean", default: false })
5467
5586
  ], User.prototype, "isSocial", 2);
5468
5587
  __decorateClass([
5469
- Column58({
5588
+ Column60({
5470
5589
  name: "last_login_at",
5471
5590
  type: "timestamp with time zone",
5472
5591
  nullable: true
5473
5592
  })
5474
5593
  ], User.prototype, "lastLoginAt", 2);
5475
5594
  __decorateClass([
5476
- Column58({ name: "last_login_ip", type: "varchar", nullable: true })
5595
+ Column60({ name: "last_login_ip", type: "varchar", nullable: true })
5477
5596
  ], User.prototype, "lastLoginIp", 2);
5478
5597
  __decorateClass([
5479
- Column58({ name: "reset_token", type: "varchar", nullable: true })
5598
+ Column60({ name: "reset_token", type: "varchar", nullable: true })
5480
5599
  ], User.prototype, "resetToken", 2);
5481
5600
  __decorateClass([
5482
- Column58({
5601
+ Column60({
5483
5602
  name: "reset_token_expire_at",
5484
5603
  type: "timestamp with time zone",
5485
5604
  nullable: true
5486
5605
  })
5487
5606
  ], User.prototype, "resetTokenExpireAt", 2);
5488
5607
  __decorateClass([
5489
- Column58({ name: "set_password_token", type: "varchar", nullable: true })
5608
+ Column60({ name: "set_password_token", type: "varchar", nullable: true })
5490
5609
  ], User.prototype, "setPasswordToken", 2);
5491
5610
  __decorateClass([
5492
- OneToMany20(() => RefreshToken, (token) => token.user)
5611
+ OneToMany21(() => RefreshToken, (token) => token.user)
5493
5612
  ], User.prototype, "refreshTokens", 2);
5494
5613
  __decorateClass([
5495
- Column58({
5614
+ Column60({
5496
5615
  name: "provider",
5497
5616
  type: "enum",
5498
5617
  enum: Provider,
@@ -5501,199 +5620,205 @@ __decorateClass([
5501
5620
  })
5502
5621
  ], User.prototype, "provider", 2);
5503
5622
  __decorateClass([
5504
- Column58({ name: "provider_token", type: "varchar", nullable: true })
5623
+ Column60({ name: "provider_token", type: "varchar", nullable: true })
5505
5624
  ], User.prototype, "providerToken", 2);
5506
5625
  __decorateClass([
5507
- Column58({ name: "linkedin_id", type: "varchar", nullable: true })
5626
+ Column60({ name: "linkedin_id", type: "varchar", nullable: true })
5508
5627
  ], User.prototype, "linkedInId", 2);
5509
5628
  __decorateClass([
5510
- Column58({ name: "google_id", type: "varchar", nullable: true })
5629
+ Column60({ name: "google_id", type: "varchar", nullable: true })
5511
5630
  ], User.prototype, "googleId", 2);
5512
5631
  __decorateClass([
5513
- Column58({ name: "gitlabs_id", type: "varchar", nullable: true })
5632
+ Column60({ name: "gitlabs_id", type: "varchar", nullable: true })
5514
5633
  ], User.prototype, "gitLabsId", 2);
5515
5634
  __decorateClass([
5516
- Column58({ name: "onboarded_by", type: "varchar", nullable: true })
5635
+ Column60({ name: "onboarded_by", type: "varchar", nullable: true })
5517
5636
  ], User.prototype, "onBoardedBy", 2);
5518
5637
  __decorateClass([
5519
- OneToMany20(() => Otp, (otp) => otp.user)
5638
+ OneToMany21(() => Otp, (otp) => otp.user)
5520
5639
  ], User.prototype, "otps", 2);
5521
5640
  __decorateClass([
5522
- OneToMany20(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
5641
+ OneToMany21(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
5523
5642
  ], User.prototype, "senseloafLogs", 2);
5524
5643
  __decorateClass([
5525
- OneToOne7(() => CompanyProfile, (companyProfile) => companyProfile.user)
5644
+ OneToOne11(() => CompanyProfile, (companyProfile) => companyProfile.user)
5526
5645
  ], User.prototype, "companyProfile", 2);
5527
5646
  __decorateClass([
5528
- OneToMany20(() => CompanySkill, (companySkill) => companySkill.user)
5647
+ OneToMany21(() => CompanySkill, (companySkill) => companySkill.user)
5529
5648
  ], User.prototype, "companySkills", 2);
5530
5649
  __decorateClass([
5531
- OneToMany20(
5650
+ OneToMany21(
5532
5651
  () => CompanyMemberRole,
5533
5652
  (companyMemberRole) => companyMemberRole.user
5534
5653
  )
5535
5654
  ], User.prototype, "companyMemberRoles", 2);
5536
5655
  __decorateClass([
5537
- OneToMany20(() => AiInterview, (aiInterview) => aiInterview.interviwer)
5656
+ OneToMany21(() => AiInterview, (aiInterview) => aiInterview.interviwer)
5538
5657
  ], User.prototype, "companyAiInterview", 2);
5539
5658
  __decorateClass([
5540
- OneToMany20(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
5659
+ OneToMany21(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
5541
5660
  ], User.prototype, "clientF2FInterviews", 2);
5542
5661
  __decorateClass([
5543
- OneToOne7(
5662
+ OneToOne11(
5544
5663
  () => FreelancerProfile,
5545
5664
  (freelancerProfile) => freelancerProfile.user
5546
5665
  )
5547
5666
  ], User.prototype, "freelancerProfile", 2);
5548
5667
  __decorateClass([
5549
- OneToOne7(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
5668
+ OneToOne11(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
5550
5669
  ], User.prototype, "freelancerResume", 2);
5551
5670
  __decorateClass([
5552
- OneToMany20(
5671
+ OneToMany21(
5553
5672
  () => FreelancerAssessment,
5554
5673
  (freelancerAssessment) => freelancerAssessment.user
5555
5674
  )
5556
5675
  ], User.prototype, "assessments", 2);
5557
5676
  __decorateClass([
5558
- OneToMany20(
5677
+ OneToMany21(
5559
5678
  () => AssessmentAnswer,
5560
5679
  (assessmentAnswer) => assessmentAnswer.user
5561
5680
  )
5562
5681
  ], User.prototype, "assessmentAnswers", 2);
5563
5682
  __decorateClass([
5564
- OneToMany20(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
5683
+ OneToMany21(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
5565
5684
  ], User.prototype, "freelancerSkills", 2);
5566
5685
  __decorateClass([
5567
- OneToMany20(
5686
+ OneToMany21(
5568
5687
  () => FreelancerExperience,
5569
5688
  (freelancerExperience) => freelancerExperience.user
5570
5689
  )
5571
5690
  ], User.prototype, "freelancerExperience", 2);
5572
5691
  __decorateClass([
5573
- OneToMany20(
5692
+ OneToMany21(
5574
5693
  () => FreelancerEducation,
5575
5694
  (freelancerEducation) => freelancerEducation.user
5576
5695
  )
5577
5696
  ], User.prototype, "freelancerEducation", 2);
5578
5697
  __decorateClass([
5579
- OneToMany20(
5698
+ OneToMany21(
5580
5699
  () => FreelancerProject,
5581
5700
  (freelancerProject) => freelancerProject.user
5582
5701
  )
5583
5702
  ], User.prototype, "freelancerProject", 2);
5584
5703
  __decorateClass([
5585
- OneToMany20(
5704
+ OneToMany21(
5586
5705
  () => FreelancerCaseStudy,
5587
5706
  (freelancerCaseStudy) => freelancerCaseStudy.user
5588
5707
  )
5589
5708
  ], User.prototype, "freelancerCaseStudy", 2);
5590
5709
  __decorateClass([
5591
- OneToMany20(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
5710
+ OneToMany21(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
5592
5711
  ], User.prototype, "freelancerTool", 2);
5593
5712
  __decorateClass([
5594
- OneToMany20(
5713
+ OneToMany21(
5595
5714
  () => FreelancerFramework,
5596
5715
  (freelancerFramework) => freelancerFramework.user
5597
5716
  )
5598
5717
  ], User.prototype, "freelancerFramework", 2);
5599
5718
  __decorateClass([
5600
- OneToOne7(
5719
+ OneToOne11(
5601
5720
  () => FreelancerDeclaration,
5602
5721
  (freelancerDeclaration) => freelancerDeclaration.user
5603
5722
  )
5604
5723
  ], User.prototype, "freelancerDeclaration", 2);
5605
5724
  __decorateClass([
5606
- OneToMany20(() => AiInterview, (aiInterview) => aiInterview.candidate)
5725
+ OneToMany21(() => AiInterview, (aiInterview) => aiInterview.candidate)
5607
5726
  ], User.prototype, "freelancerAiInterview", 2);
5608
5727
  __decorateClass([
5609
- OneToMany20(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
5728
+ OneToMany21(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
5610
5729
  ], User.prototype, "freelancerF2FInterviews", 2);
5611
5730
  __decorateClass([
5612
- OneToMany20(
5731
+ OneToMany21(
5613
5732
  () => F2fInterviewRescheduleRequest,
5614
5733
  (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
5615
5734
  )
5616
5735
  ], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
5617
5736
  __decorateClass([
5618
- OneToMany20(() => Job, (job) => job.user)
5737
+ OneToMany21(() => Job, (job) => job.user)
5619
5738
  ], User.prototype, "jobs", 2);
5620
5739
  __decorateClass([
5621
- OneToMany20(() => JobApplication, (jobApplication) => jobApplication.user)
5740
+ OneToMany21(() => JobApplication, (jobApplication) => jobApplication.user)
5622
5741
  ], User.prototype, "jobApplications", 2);
5623
5742
  __decorateClass([
5624
- OneToMany20(() => Interview, (interview) => interview.user)
5743
+ OneToMany21(() => Interview, (interview) => interview.user)
5625
5744
  ], User.prototype, "interviews", 2);
5626
5745
  __decorateClass([
5627
- OneToMany20(() => BankDetail, (bankDetail) => bankDetail.user)
5746
+ OneToMany21(() => BankDetail, (bankDetail) => bankDetail.user)
5628
5747
  ], User.prototype, "bankDetail", 2);
5629
5748
  __decorateClass([
5630
- OneToMany20(
5749
+ OneToMany21(
5631
5750
  () => SystemPreference,
5632
5751
  (systemPreference) => systemPreference.user
5633
5752
  )
5634
5753
  ], User.prototype, "systemPreference", 2);
5635
5754
  __decorateClass([
5636
- OneToMany20(() => Rating, (rating) => rating.reviewer)
5755
+ OneToMany21(() => Rating, (rating) => rating.reviewer)
5637
5756
  ], User.prototype, "givenRatings", 2);
5638
5757
  __decorateClass([
5639
- OneToMany20(() => Rating, (rating) => rating.reviewee)
5758
+ OneToMany21(() => Rating, (rating) => rating.reviewee)
5640
5759
  ], User.prototype, "receivedRatings", 2);
5641
5760
  __decorateClass([
5642
- OneToMany20(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
5761
+ OneToMany21(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
5643
5762
  ], User.prototype, "adminUserRoles", 2);
5644
5763
  __decorateClass([
5645
- OneToMany20(() => Contract, (contract) => contract.client)
5764
+ OneToMany21(() => Contract, (contract) => contract.client)
5646
5765
  ], User.prototype, "clientContracts", 2);
5647
5766
  __decorateClass([
5648
- OneToMany20(() => Contract, (contract) => contract.freelancer)
5767
+ OneToMany21(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
5768
+ ], User.prototype, "clientEscrowWallets", 2);
5769
+ __decorateClass([
5770
+ OneToMany21(() => Contract, (contract) => contract.freelancer)
5649
5771
  ], User.prototype, "freelancerContracts", 2);
5650
5772
  __decorateClass([
5651
- OneToOne7(() => Signature, (signature) => signature.user)
5773
+ OneToMany21(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
5774
+ ], User.prototype, "freelancerEscrowWallets", 2);
5775
+ __decorateClass([
5776
+ OneToOne11(() => Signature, (signature) => signature.user)
5652
5777
  ], User.prototype, "signatures", 2);
5653
5778
  __decorateClass([
5654
- OneToMany20(() => Timesheet, (timesheet) => timesheet.client)
5779
+ OneToMany21(() => Timesheet, (timesheet) => timesheet.client)
5655
5780
  ], User.prototype, "clientTimesheets", 2);
5656
5781
  __decorateClass([
5657
- OneToMany20(() => Timesheet, (timesheet) => timesheet.freelancer)
5782
+ OneToMany21(() => Timesheet, (timesheet) => timesheet.freelancer)
5658
5783
  ], User.prototype, "freelancerTimesheets", 2);
5659
5784
  __decorateClass([
5660
- OneToMany20(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
5785
+ OneToMany21(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
5661
5786
  ], User.prototype, "clientTimesheetLine", 2);
5662
5787
  __decorateClass([
5663
- OneToMany20(() => Invoice, (invoice) => invoice.client)
5788
+ OneToMany21(() => Invoice, (invoice) => invoice.client)
5664
5789
  ], User.prototype, "clientInvoice", 2);
5665
5790
  __decorateClass([
5666
- OneToMany20(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
5791
+ OneToMany21(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
5667
5792
  ], User.prototype, "freelancerTimesheetLine", 2);
5668
5793
  __decorateClass([
5669
- OneToMany20(() => Invoice, (invoice) => invoice.freelancer)
5794
+ OneToMany21(() => Invoice, (invoice) => invoice.freelancer)
5670
5795
  ], User.prototype, "freelancerInvoice", 2);
5671
5796
  __decorateClass([
5672
- OneToMany20(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
5797
+ OneToMany21(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
5673
5798
  ], User.prototype, "clientPreferencesGiven", 2);
5674
5799
  __decorateClass([
5675
- OneToMany20(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
5800
+ OneToMany21(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
5676
5801
  ], User.prototype, "clientPreferencesReceived", 2);
5677
5802
  __decorateClass([
5678
- OneToMany20(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
5803
+ OneToMany21(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
5679
5804
  ], User.prototype, "initiatedDisputes", 2);
5680
5805
  __decorateClass([
5681
- OneToMany20(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
5806
+ OneToMany21(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
5682
5807
  ], User.prototype, "respondentDisputes", 2);
5683
5808
  __decorateClass([
5684
- OneToOne7(() => Wallet, (wallet) => wallet.user)
5809
+ OneToOne11(() => Wallet, (wallet) => wallet.user)
5685
5810
  ], User.prototype, "wallet", 2);
5686
5811
  __decorateClass([
5687
- OneToMany20(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
5812
+ OneToMany21(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
5688
5813
  ], User.prototype, "stripeTransactions", 2);
5689
5814
  __decorateClass([
5690
- OneToMany20(() => Dispute, (dispute) => dispute.client)
5815
+ OneToMany21(() => Dispute, (dispute) => dispute.client)
5691
5816
  ], User.prototype, "clientDisputes", 2);
5692
5817
  __decorateClass([
5693
- OneToMany20(() => Dispute, (dispute) => dispute.freelancer)
5818
+ OneToMany21(() => Dispute, (dispute) => dispute.freelancer)
5694
5819
  ], User.prototype, "freelancerDisputes", 2);
5695
5820
  User = __decorateClass([
5696
- Entity57("users")
5821
+ Entity59("users")
5697
5822
  ], User);
5698
5823
 
5699
5824
  // src/entities/rating.entity.ts
@@ -5705,36 +5830,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
5705
5830
  var Rating = class extends BaseEntity {
5706
5831
  };
5707
5832
  __decorateClass([
5708
- Column59({ name: "reviewer_id", type: "integer" }),
5709
- Index51()
5833
+ Column61({ name: "reviewer_id", type: "integer" }),
5834
+ Index53()
5710
5835
  ], Rating.prototype, "reviewer_id", 2);
5711
5836
  __decorateClass([
5712
- ManyToOne52(() => User, { onDelete: "CASCADE" }),
5713
- JoinColumn53({ name: "reviewer_id" })
5837
+ ManyToOne54(() => User, { onDelete: "CASCADE" }),
5838
+ JoinColumn55({ name: "reviewer_id" })
5714
5839
  ], Rating.prototype, "reviewer", 2);
5715
5840
  __decorateClass([
5716
- Column59({ name: "reviewee_id", type: "integer" }),
5717
- Index51()
5841
+ Column61({ name: "reviewee_id", type: "integer" }),
5842
+ Index53()
5718
5843
  ], Rating.prototype, "reviewee_id", 2);
5719
5844
  __decorateClass([
5720
- ManyToOne52(() => User, { onDelete: "CASCADE" }),
5721
- JoinColumn53({ name: "reviewee_id" })
5845
+ ManyToOne54(() => User, { onDelete: "CASCADE" }),
5846
+ JoinColumn55({ name: "reviewee_id" })
5722
5847
  ], Rating.prototype, "reviewee", 2);
5723
5848
  __decorateClass([
5724
- Column59({
5849
+ Column61({
5725
5850
  type: "enum",
5726
5851
  enum: RatingTypeEnum,
5727
5852
  nullable: true
5728
5853
  })
5729
5854
  ], Rating.prototype, "ratingType", 2);
5730
5855
  __decorateClass([
5731
- Column59({ type: "integer", nullable: true })
5856
+ Column61({ type: "integer", nullable: true })
5732
5857
  ], Rating.prototype, "rating", 2);
5733
5858
  __decorateClass([
5734
- Column59({ type: "text", nullable: true })
5859
+ Column61({ type: "text", nullable: true })
5735
5860
  ], Rating.prototype, "review", 2);
5736
5861
  Rating = __decorateClass([
5737
- Entity58("ratings")
5862
+ Entity60("ratings")
5738
5863
  ], Rating);
5739
5864
 
5740
5865
  // src/modules/rating/dto/add.rating.dto.ts
@@ -7722,11 +7847,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
7722
7847
  };
7723
7848
 
7724
7849
  // src/entities/sequence-generator.entity.ts
7725
- import { Entity as Entity59, Column as Column60 } from "typeorm";
7850
+ import { Entity as Entity61, Column as Column62 } from "typeorm";
7726
7851
  var SequenceGenerator = class extends BaseEntity {
7727
7852
  };
7728
7853
  __decorateClass([
7729
- Column60({
7854
+ Column62({
7730
7855
  name: "module",
7731
7856
  type: "varchar",
7732
7857
  length: 50,
@@ -7735,7 +7860,7 @@ __decorateClass([
7735
7860
  })
7736
7861
  ], SequenceGenerator.prototype, "module", 2);
7737
7862
  __decorateClass([
7738
- Column60({
7863
+ Column62({
7739
7864
  name: "prefix",
7740
7865
  type: "varchar",
7741
7866
  length: 10,
@@ -7744,7 +7869,7 @@ __decorateClass([
7744
7869
  })
7745
7870
  ], SequenceGenerator.prototype, "prefix", 2);
7746
7871
  __decorateClass([
7747
- Column60({
7872
+ Column62({
7748
7873
  name: "last_sequence",
7749
7874
  type: "int",
7750
7875
  nullable: false,
@@ -7752,7 +7877,7 @@ __decorateClass([
7752
7877
  })
7753
7878
  ], SequenceGenerator.prototype, "lastSequence", 2);
7754
7879
  __decorateClass([
7755
- Column60({
7880
+ Column62({
7756
7881
  name: "year",
7757
7882
  type: "int",
7758
7883
  nullable: true,
@@ -7760,11 +7885,11 @@ __decorateClass([
7760
7885
  })
7761
7886
  ], SequenceGenerator.prototype, "year", 2);
7762
7887
  SequenceGenerator = __decorateClass([
7763
- Entity59("sequence_generators")
7888
+ Entity61("sequence_generators")
7764
7889
  ], SequenceGenerator);
7765
7890
 
7766
7891
  // src/entities/question.entity.ts
7767
- import { Entity as Entity60, Column as Column61 } from "typeorm";
7892
+ import { Entity as Entity62, Column as Column63 } from "typeorm";
7768
7893
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7769
7894
  QuestionFor2["CLIENT"] = "CLIENT";
7770
7895
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -7773,16 +7898,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7773
7898
  var Question = class extends BaseEntity {
7774
7899
  };
7775
7900
  __decorateClass([
7776
- Column61({ name: "question", type: "varchar" })
7901
+ Column63({ name: "question", type: "varchar" })
7777
7902
  ], Question.prototype, "question", 2);
7778
7903
  __decorateClass([
7779
- Column61({ name: "hint", type: "varchar", nullable: true })
7904
+ Column63({ name: "hint", type: "varchar", nullable: true })
7780
7905
  ], Question.prototype, "hint", 2);
7781
7906
  __decorateClass([
7782
- Column61({ name: "slug", type: "varchar", nullable: true, unique: true })
7907
+ Column63({ name: "slug", type: "varchar", nullable: true, unique: true })
7783
7908
  ], Question.prototype, "slug", 2);
7784
7909
  __decorateClass([
7785
- Column61({
7910
+ Column63({
7786
7911
  name: "question_for",
7787
7912
  type: "enum",
7788
7913
  enum: QuestionFor,
@@ -7790,49 +7915,49 @@ __decorateClass([
7790
7915
  })
7791
7916
  ], Question.prototype, "questionFor", 2);
7792
7917
  __decorateClass([
7793
- Column61({ name: "type", type: "varchar", nullable: true })
7918
+ Column63({ name: "type", type: "varchar", nullable: true })
7794
7919
  ], Question.prototype, "type", 2);
7795
7920
  __decorateClass([
7796
- Column61({ name: "options", type: "jsonb", nullable: true })
7921
+ Column63({ name: "options", type: "jsonb", nullable: true })
7797
7922
  ], Question.prototype, "options", 2);
7798
7923
  __decorateClass([
7799
- Column61({ name: "is_active", type: "boolean", default: false })
7924
+ Column63({ name: "is_active", type: "boolean", default: false })
7800
7925
  ], Question.prototype, "isActive", 2);
7801
7926
  Question = __decorateClass([
7802
- Entity60("questions")
7927
+ Entity62("questions")
7803
7928
  ], Question);
7804
7929
 
7805
7930
  // src/entities/skill.entity.ts
7806
- import { Entity as Entity61, Column as Column62 } from "typeorm";
7931
+ import { Entity as Entity63, Column as Column64 } from "typeorm";
7807
7932
  var Skill = class extends BaseEntity {
7808
7933
  };
7809
7934
  __decorateClass([
7810
- Column62({ name: "name", type: "varchar", nullable: true })
7935
+ Column64({ name: "name", type: "varchar", nullable: true })
7811
7936
  ], Skill.prototype, "name", 2);
7812
7937
  __decorateClass([
7813
- Column62({ name: "slug", type: "varchar", nullable: true, unique: true })
7938
+ Column64({ name: "slug", type: "varchar", nullable: true, unique: true })
7814
7939
  ], Skill.prototype, "slug", 2);
7815
7940
  __decorateClass([
7816
- Column62({ name: "is_active", type: "boolean", default: false })
7941
+ Column64({ name: "is_active", type: "boolean", default: false })
7817
7942
  ], Skill.prototype, "isActive", 2);
7818
7943
  Skill = __decorateClass([
7819
- Entity61("skills")
7944
+ Entity63("skills")
7820
7945
  ], Skill);
7821
7946
 
7822
7947
  // src/entities/skill-catalog.entity.ts
7823
7948
  import {
7824
- Entity as Entity62,
7825
- Column as Column63,
7826
- Index as Index52
7949
+ Entity as Entity64,
7950
+ Column as Column65,
7951
+ Index as Index54
7827
7952
  } from "typeorm";
7828
7953
  var SkillCatalog = class extends BaseEntity {
7829
7954
  };
7830
7955
  __decorateClass([
7831
- Column63({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
7832
- Index52()
7956
+ Column65({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
7957
+ Index54()
7833
7958
  ], SkillCatalog.prototype, "canonicalName", 2);
7834
7959
  __decorateClass([
7835
- Column63({
7960
+ Column65({
7836
7961
  name: "aliases",
7837
7962
  type: "text",
7838
7963
  array: true,
@@ -7840,20 +7965,20 @@ __decorateClass([
7840
7965
  })
7841
7966
  ], SkillCatalog.prototype, "aliases", 2);
7842
7967
  __decorateClass([
7843
- Column63({
7968
+ Column65({
7844
7969
  name: "variations",
7845
7970
  type: "jsonb",
7846
7971
  default: "{}"
7847
7972
  })
7848
7973
  ], SkillCatalog.prototype, "variations", 2);
7849
7974
  __decorateClass([
7850
- Column63({ name: "category", type: "varchar", length: 50, nullable: true })
7975
+ Column65({ name: "category", type: "varchar", length: 50, nullable: true })
7851
7976
  ], SkillCatalog.prototype, "category", 2);
7852
7977
  __decorateClass([
7853
- Column63({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
7978
+ Column65({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
7854
7979
  ], SkillCatalog.prototype, "parentSkill", 2);
7855
7980
  __decorateClass([
7856
- Column63({
7981
+ Column65({
7857
7982
  name: "related_skills",
7858
7983
  type: "text",
7859
7984
  array: true,
@@ -7861,113 +7986,113 @@ __decorateClass([
7861
7986
  })
7862
7987
  ], SkillCatalog.prototype, "relatedSkills", 2);
7863
7988
  __decorateClass([
7864
- Column63({ name: "usage_count", type: "integer", default: 0 }),
7865
- Index52()
7989
+ Column65({ name: "usage_count", type: "integer", default: 0 }),
7990
+ Index54()
7866
7991
  ], SkillCatalog.prototype, "usageCount", 2);
7867
7992
  __decorateClass([
7868
- Column63({ name: "is_verified", type: "boolean", default: false })
7993
+ Column65({ name: "is_verified", type: "boolean", default: false })
7869
7994
  ], SkillCatalog.prototype, "isVerified", 2);
7870
7995
  __decorateClass([
7871
- Column63({ name: "first_seen_date", type: "date" })
7996
+ Column65({ name: "first_seen_date", type: "date" })
7872
7997
  ], SkillCatalog.prototype, "firstSeenDate", 2);
7873
7998
  __decorateClass([
7874
- Column63({ name: "last_updated_date", type: "date" })
7999
+ Column65({ name: "last_updated_date", type: "date" })
7875
8000
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
7876
8001
  __decorateClass([
7877
- Column63({
8002
+ Column65({
7878
8003
  name: "search_vector",
7879
8004
  type: "tsvector",
7880
8005
  nullable: true
7881
8006
  })
7882
8007
  ], SkillCatalog.prototype, "searchVector", 2);
7883
8008
  SkillCatalog = __decorateClass([
7884
- Entity62("skill_catalogs")
8009
+ Entity64("skill_catalogs")
7885
8010
  ], SkillCatalog);
7886
8011
 
7887
8012
  // src/entities/job-role.entity.ts
7888
- import { Entity as Entity63, Column as Column64 } from "typeorm";
8013
+ import { Entity as Entity65, Column as Column66 } from "typeorm";
7889
8014
  var JobRoles = class extends BaseEntity {
7890
8015
  };
7891
8016
  __decorateClass([
7892
- Column64({ name: "slug", type: "varchar", nullable: true, unique: true })
8017
+ Column66({ name: "slug", type: "varchar", nullable: true, unique: true })
7893
8018
  ], JobRoles.prototype, "slug", 2);
7894
8019
  __decorateClass([
7895
- Column64({ name: "name", type: "varchar", nullable: true })
8020
+ Column66({ name: "name", type: "varchar", nullable: true })
7896
8021
  ], JobRoles.prototype, "name", 2);
7897
8022
  __decorateClass([
7898
- Column64({ name: "is_active", type: "boolean", default: true })
8023
+ Column66({ name: "is_active", type: "boolean", default: true })
7899
8024
  ], JobRoles.prototype, "isActive", 2);
7900
8025
  JobRoles = __decorateClass([
7901
- Entity63("job_roles")
8026
+ Entity65("job_roles")
7902
8027
  ], JobRoles);
7903
8028
 
7904
8029
  // src/entities/plan.entity.ts
7905
- import { Entity as Entity65, Column as Column66, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
8030
+ import { Entity as Entity67, Column as Column68, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
7906
8031
 
7907
8032
  // src/entities/feature.entity.ts
7908
- import { Entity as Entity64, Column as Column65, ManyToMany as ManyToMany2 } from "typeorm";
8033
+ import { Entity as Entity66, Column as Column67, ManyToMany as ManyToMany2 } from "typeorm";
7909
8034
  var Feature = class extends BaseEntity {
7910
8035
  };
7911
8036
  __decorateClass([
7912
- Column65({ name: "name", type: "varchar", unique: true })
8037
+ Column67({ name: "name", type: "varchar", unique: true })
7913
8038
  ], Feature.prototype, "name", 2);
7914
8039
  __decorateClass([
7915
8040
  ManyToMany2(() => Plan, (plan) => plan.features)
7916
8041
  ], Feature.prototype, "plans", 2);
7917
8042
  Feature = __decorateClass([
7918
- Entity64("features")
8043
+ Entity66("features")
7919
8044
  ], Feature);
7920
8045
 
7921
8046
  // src/entities/plan.entity.ts
7922
8047
  var Plan = class extends BaseEntity {
7923
8048
  };
7924
8049
  __decorateClass([
7925
- Column66({ name: "name", type: "varchar", unique: true })
8050
+ Column68({ name: "name", type: "varchar", unique: true })
7926
8051
  ], Plan.prototype, "name", 2);
7927
8052
  __decorateClass([
7928
- Column66({ name: "description", type: "varchar", nullable: true })
8053
+ Column68({ name: "description", type: "varchar", nullable: true })
7929
8054
  ], Plan.prototype, "description", 2);
7930
8055
  __decorateClass([
7931
- Column66({ name: "price", type: "decimal", precision: 10, scale: 2 })
8056
+ Column68({ name: "price", type: "decimal", precision: 10, scale: 2 })
7932
8057
  ], Plan.prototype, "price", 2);
7933
8058
  __decorateClass([
7934
- Column66({ name: "billing_period", type: "varchar" })
8059
+ Column68({ name: "billing_period", type: "varchar" })
7935
8060
  ], Plan.prototype, "billingPeriod", 2);
7936
8061
  __decorateClass([
7937
- Column66({ name: "is_current", type: "boolean", default: false })
8062
+ Column68({ name: "is_current", type: "boolean", default: false })
7938
8063
  ], Plan.prototype, "isCurrent", 2);
7939
8064
  __decorateClass([
7940
8065
  ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
7941
8066
  JoinTable()
7942
8067
  ], Plan.prototype, "features", 2);
7943
8068
  Plan = __decorateClass([
7944
- Entity65("plans")
8069
+ Entity67("plans")
7945
8070
  ], Plan);
7946
8071
 
7947
8072
  // src/entities/cms.entity.ts
7948
- import { Entity as Entity66, Column as Column67 } from "typeorm";
8073
+ import { Entity as Entity68, Column as Column69 } from "typeorm";
7949
8074
  var Cms = class extends BaseEntity {
7950
8075
  };
7951
8076
  __decorateClass([
7952
- Column67({ name: "title", type: "varchar", nullable: true })
8077
+ Column69({ name: "title", type: "varchar", nullable: true })
7953
8078
  ], Cms.prototype, "title", 2);
7954
8079
  __decorateClass([
7955
- Column67({ name: "slug", type: "varchar", nullable: true, unique: true })
8080
+ Column69({ name: "slug", type: "varchar", nullable: true, unique: true })
7956
8081
  ], Cms.prototype, "slug", 2);
7957
8082
  __decorateClass([
7958
- Column67({ name: "content", type: "varchar", nullable: true })
8083
+ Column69({ name: "content", type: "varchar", nullable: true })
7959
8084
  ], Cms.prototype, "content", 2);
7960
8085
  __decorateClass([
7961
- Column67({ name: "is_active", type: "boolean", default: true })
8086
+ Column69({ name: "is_active", type: "boolean", default: true })
7962
8087
  ], Cms.prototype, "isActive", 2);
7963
8088
  Cms = __decorateClass([
7964
- Entity66("cms")
8089
+ Entity68("cms")
7965
8090
  ], Cms);
7966
8091
 
7967
8092
  // src/entities/lead.entity.ts
7968
8093
  import {
7969
- Entity as Entity67,
7970
- Column as Column68
8094
+ Entity as Entity69,
8095
+ Column as Column70
7971
8096
  } from "typeorm";
7972
8097
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7973
8098
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -7977,22 +8102,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7977
8102
  var Lead = class extends BaseEntity {
7978
8103
  };
7979
8104
  __decorateClass([
7980
- Column68({ name: "name", type: "varchar", nullable: true })
8105
+ Column70({ name: "name", type: "varchar", nullable: true })
7981
8106
  ], Lead.prototype, "name", 2);
7982
8107
  __decorateClass([
7983
- Column68({ name: "mobile_code", type: "varchar", nullable: true })
8108
+ Column70({ name: "mobile_code", type: "varchar", nullable: true })
7984
8109
  ], Lead.prototype, "mobileCode", 2);
7985
8110
  __decorateClass([
7986
- Column68({ name: "mobile", type: "varchar", nullable: true })
8111
+ Column70({ name: "mobile", type: "varchar", nullable: true })
7987
8112
  ], Lead.prototype, "mobile", 2);
7988
8113
  __decorateClass([
7989
- Column68({ name: "email", type: "varchar", nullable: true })
8114
+ Column70({ name: "email", type: "varchar", nullable: true })
7990
8115
  ], Lead.prototype, "email", 2);
7991
8116
  __decorateClass([
7992
- Column68({ name: "description", type: "varchar", nullable: true })
8117
+ Column70({ name: "description", type: "varchar", nullable: true })
7993
8118
  ], Lead.prototype, "description", 2);
7994
8119
  __decorateClass([
7995
- Column68({
8120
+ Column70({
7996
8121
  name: "category",
7997
8122
  type: "enum",
7998
8123
  enum: CategoryEmum,
@@ -8000,7 +8125,7 @@ __decorateClass([
8000
8125
  })
8001
8126
  ], Lead.prototype, "category", 2);
8002
8127
  Lead = __decorateClass([
8003
- Entity67("leads")
8128
+ Entity69("leads")
8004
8129
  ], Lead);
8005
8130
 
8006
8131
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -8241,7 +8366,7 @@ ClientFreelancerRecommendation = __decorateClass([
8241
8366
  ], ClientFreelancerRecommendation);
8242
8367
 
8243
8368
  // src/entities/commission.entity.ts
8244
- import { Entity as Entity68, Column as Column69 } from "typeorm";
8369
+ import { Entity as Entity70, Column as Column71 } from "typeorm";
8245
8370
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
8246
8371
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
8247
8372
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -8250,7 +8375,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
8250
8375
  var Commission = class extends BaseEntity {
8251
8376
  };
8252
8377
  __decorateClass([
8253
- Column69({
8378
+ Column71({
8254
8379
  name: "freelancer_commission_type",
8255
8380
  type: "enum",
8256
8381
  enum: CommissionTypeEnum,
@@ -8258,10 +8383,10 @@ __decorateClass([
8258
8383
  })
8259
8384
  ], Commission.prototype, "freelancerCommissionType", 2);
8260
8385
  __decorateClass([
8261
- Column69({ name: "freelancer_commission", type: "integer", default: 0 })
8386
+ Column71({ name: "freelancer_commission", type: "integer", default: 0 })
8262
8387
  ], Commission.prototype, "freelancerCommission", 2);
8263
8388
  __decorateClass([
8264
- Column69({
8389
+ Column71({
8265
8390
  name: "client_commission_type",
8266
8391
  type: "enum",
8267
8392
  enum: CommissionTypeEnum,
@@ -8269,105 +8394,105 @@ __decorateClass([
8269
8394
  })
8270
8395
  ], Commission.prototype, "clientCommissionType", 2);
8271
8396
  __decorateClass([
8272
- Column69({ name: "client_commission", type: "integer", default: 0 })
8397
+ Column71({ name: "client_commission", type: "integer", default: 0 })
8273
8398
  ], Commission.prototype, "clientCommission", 2);
8274
8399
  Commission = __decorateClass([
8275
- Entity68("commissions")
8400
+ Entity70("commissions")
8276
8401
  ], Commission);
8277
8402
 
8278
8403
  // src/entities/calendly-meeting-log.entity.ts
8279
8404
  import {
8280
- Entity as Entity69,
8281
- Column as Column70,
8282
- Index as Index53
8405
+ Entity as Entity71,
8406
+ Column as Column72,
8407
+ Index as Index55
8283
8408
  } from "typeorm";
8284
8409
  var CalendlyMeetingLog = class extends BaseEntity {
8285
8410
  };
8286
8411
  __decorateClass([
8287
- Column70({ name: "calendly_event_id", type: "varchar", nullable: true }),
8288
- Index53()
8412
+ Column72({ name: "calendly_event_id", type: "varchar", nullable: true }),
8413
+ Index55()
8289
8414
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
8290
8415
  __decorateClass([
8291
- Column70({ name: "calendly_event_type", type: "varchar", nullable: true })
8416
+ Column72({ name: "calendly_event_type", type: "varchar", nullable: true })
8292
8417
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
8293
8418
  __decorateClass([
8294
- Column70({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8419
+ Column72({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8295
8420
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
8296
8421
  CalendlyMeetingLog = __decorateClass([
8297
- Entity69("calendly_meeting_logs")
8422
+ Entity71("calendly_meeting_logs")
8298
8423
  ], CalendlyMeetingLog);
8299
8424
 
8300
8425
  // src/entities/zoom-meeting-log.entity.ts
8301
8426
  import {
8302
- Entity as Entity70,
8303
- Column as Column71,
8304
- Index as Index54
8427
+ Entity as Entity72,
8428
+ Column as Column73,
8429
+ Index as Index56
8305
8430
  } from "typeorm";
8306
8431
  var ZoomMeetingLog = class extends BaseEntity {
8307
8432
  };
8308
8433
  __decorateClass([
8309
- Column71({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
8310
- Index54()
8434
+ Column73({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
8435
+ Index56()
8311
8436
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
8312
8437
  __decorateClass([
8313
- Column71({ name: "zoom_event_type", type: "varchar", nullable: true })
8438
+ Column73({ name: "zoom_event_type", type: "varchar", nullable: true })
8314
8439
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
8315
8440
  __decorateClass([
8316
- Column71({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8441
+ Column73({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8317
8442
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
8318
8443
  ZoomMeetingLog = __decorateClass([
8319
- Entity70("zoom_meeting_logs")
8444
+ Entity72("zoom_meeting_logs")
8320
8445
  ], ZoomMeetingLog);
8321
8446
 
8322
8447
  // src/entities/stripe-logs.entity.ts
8323
- import { Entity as Entity71, Column as Column72 } from "typeorm";
8448
+ import { Entity as Entity73, Column as Column74 } from "typeorm";
8324
8449
  var StripeLog = class extends BaseEntity {
8325
8450
  };
8326
8451
  __decorateClass([
8327
- Column72({ name: "stripe_event_id", type: "varchar", nullable: true })
8452
+ Column74({ name: "stripe_event_id", type: "varchar", nullable: true })
8328
8453
  ], StripeLog.prototype, "stripeEventId", 2);
8329
8454
  __decorateClass([
8330
- Column72({ name: "event_type", type: "varchar", nullable: true })
8455
+ Column74({ name: "event_type", type: "varchar", nullable: true })
8331
8456
  ], StripeLog.prototype, "eventType", 2);
8332
8457
  __decorateClass([
8333
- Column72({ name: "stripe_account_id", type: "varchar", nullable: true })
8458
+ Column74({ name: "stripe_account_id", type: "varchar", nullable: true })
8334
8459
  ], StripeLog.prototype, "stripeAccountId", 2);
8335
8460
  __decorateClass([
8336
- Column72({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8461
+ Column74({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8337
8462
  ], StripeLog.prototype, "rawWebhookData", 2);
8338
8463
  StripeLog = __decorateClass([
8339
- Entity71("stripe_logs")
8464
+ Entity73("stripe_logs")
8340
8465
  ], StripeLog);
8341
8466
 
8342
8467
  // src/entities/recommendation-weightage-config.entity.ts
8343
8468
  import {
8344
- Entity as Entity72,
8345
- Column as Column73,
8346
- Index as Index55
8469
+ Entity as Entity74,
8470
+ Column as Column75,
8471
+ Index as Index57
8347
8472
  } from "typeorm";
8348
8473
  var RecommendationWeightageConfig = class extends BaseEntity {
8349
8474
  };
8350
8475
  __decorateClass([
8351
- Column73({
8476
+ Column75({
8352
8477
  type: "varchar",
8353
8478
  length: 100,
8354
8479
  unique: true,
8355
8480
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
8356
8481
  }),
8357
- Index55()
8482
+ Index57()
8358
8483
  ], RecommendationWeightageConfig.prototype, "key", 2);
8359
8484
  __decorateClass([
8360
- Column73({
8485
+ Column75({
8361
8486
  type: "jsonb",
8362
8487
  comment: "JSON object containing weight values",
8363
8488
  nullable: true
8364
8489
  })
8365
8490
  ], RecommendationWeightageConfig.prototype, "value", 2);
8366
8491
  __decorateClass([
8367
- Column73({ name: "is_active", type: "boolean", default: true })
8492
+ Column75({ name: "is_active", type: "boolean", default: true })
8368
8493
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
8369
8494
  RecommendationWeightageConfig = __decorateClass([
8370
- Entity72("recommendation_weightage_configs")
8495
+ Entity74("recommendation_weightage_configs")
8371
8496
  ], RecommendationWeightageConfig);
8372
8497
  export {
8373
8498
  ADMIN_FREELANCER_PATTERN,