@experts_hub/shared 1.0.497 → 1.0.499

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