@experts_hub/shared 1.0.436 → 1.0.438

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
@@ -1273,6 +1273,10 @@ __decorateClass([
1273
1273
  __decorateClass([
1274
1274
  IsNotEmpty33({ message: "Please enter expected hourly compensation." })
1275
1275
  ], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
1276
+ __decorateClass([
1277
+ IsOptional15(),
1278
+ IsNotEmpty33({ message: "Please enter weekly availability hours." })
1279
+ ], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
1276
1280
  __decorateClass([
1277
1281
  IsNotEmpty33({ message: "Please select engagement type." }),
1278
1282
  IsEnum12(NatureOfWorkDto, {
@@ -1450,17 +1454,17 @@ import {
1450
1454
  } from "class-validator";
1451
1455
 
1452
1456
  // src/entities/rating.entity.ts
1453
- import { Entity as Entity56, Column as Column57, ManyToOne as ManyToOne50, JoinColumn as JoinColumn51, Index as Index49 } from "typeorm";
1457
+ import { Entity as Entity57, Column as Column58, ManyToOne as ManyToOne51, JoinColumn as JoinColumn52, Index as Index50 } from "typeorm";
1454
1458
 
1455
1459
  // src/entities/user.entity.ts
1456
1460
  import {
1457
- Entity as Entity55,
1458
- Column as Column56,
1461
+ Entity as Entity56,
1462
+ Column as Column57,
1459
1463
  OneToMany as OneToMany19,
1460
1464
  OneToOne as OneToOne7,
1461
- Index as Index48,
1462
- ManyToOne as ManyToOne49,
1463
- JoinColumn as JoinColumn50
1465
+ Index as Index49,
1466
+ ManyToOne as ManyToOne50,
1467
+ JoinColumn as JoinColumn51
1464
1468
  } from "typeorm";
1465
1469
 
1466
1470
  // src/entities/base.entity.ts
@@ -3264,7 +3268,7 @@ Timesheet = __decorateClass([
3264
3268
  ], Timesheet);
3265
3269
 
3266
3270
  // src/entities/timesheet-line.entity.ts
3267
- import { Entity as Entity25, Column as Column26, Index as Index19, JoinColumn as JoinColumn24, OneToMany as OneToMany9, ManyToOne as ManyToOne24 } from "typeorm";
3271
+ import { Entity as Entity26, Column as Column27, Index as Index20, JoinColumn as JoinColumn25, OneToMany as OneToMany9, ManyToOne as ManyToOne25 } from "typeorm";
3268
3272
 
3269
3273
  // src/entities/timesheet-logs.entity.ts
3270
3274
  import { Entity as Entity23, Column as Column24, Index as Index17, ManyToOne as ManyToOne22, JoinColumn as JoinColumn22 } from "typeorm";
@@ -3387,167 +3391,196 @@ TimesheetLineHistory = __decorateClass([
3387
3391
  Entity24("timesheet_line_histories")
3388
3392
  ], TimesheetLineHistory);
3389
3393
 
3390
- // src/entities/timesheet-line.entity.ts
3391
- var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
3392
- TimesheetLineStatusEnum2["DRAFT"] = "DRAFT";
3393
- TimesheetLineStatusEnum2["SEND"] = "SEND";
3394
- TimesheetLineStatusEnum2["SEND_BACK"] = "SEND_BACK";
3395
- TimesheetLineStatusEnum2["APPROVED"] = "APPROVED";
3396
- TimesheetLineStatusEnum2["REJECTED"] = "REJECTED";
3397
- TimesheetLineStatusEnum2["PAID"] = "PAID";
3398
- TimesheetLineStatusEnum2["MISSING"] = "MISSING";
3399
- TimesheetLineStatusEnum2["ACTIVE"] = "ACTIVE";
3400
- return TimesheetLineStatusEnum2;
3401
- })(TimesheetLineStatusEnum || {});
3402
- var TimesheetLine = class extends BaseEntity {
3394
+ // src/entities/invoice.entity.ts
3395
+ import { Entity as Entity25, Column as Column26, Index as Index19, JoinColumn as JoinColumn24, ManyToOne as ManyToOne24 } from "typeorm";
3396
+ var InvoiceTypeEnum = /* @__PURE__ */ ((InvoiceTypeEnum2) => {
3397
+ InvoiceTypeEnum2["WEEKLY"] = "WEEKLY";
3398
+ InvoiceTypeEnum2["MONTHLY"] = "MONTHLY";
3399
+ return InvoiceTypeEnum2;
3400
+ })(InvoiceTypeEnum || {});
3401
+ var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
3402
+ InvoiceStatusEnum2["SUBMITTED"] = "SUBMITTED";
3403
+ InvoiceStatusEnum2["UNDER_REVIEW"] = "UNDER_REVIEW";
3404
+ InvoiceStatusEnum2["APPROVED"] = "APPROVED";
3405
+ InvoiceStatusEnum2["REJECTED"] = "REJECTED";
3406
+ return InvoiceStatusEnum2;
3407
+ })(InvoiceStatusEnum || {});
3408
+ var InvoicePaymentStatusEnum = /* @__PURE__ */ ((InvoicePaymentStatusEnum2) => {
3409
+ InvoicePaymentStatusEnum2["PENDING"] = "PENDING";
3410
+ InvoicePaymentStatusEnum2["OVERDUE"] = "OVERDUE";
3411
+ InvoicePaymentStatusEnum2["INTRANSACTION"] = "INTRANSACTION";
3412
+ InvoicePaymentStatusEnum2["PAID"] = "PAID";
3413
+ InvoicePaymentStatusEnum2["REFUNDED"] = "REFUNDED";
3414
+ return InvoicePaymentStatusEnum2;
3415
+ })(InvoicePaymentStatusEnum || {});
3416
+ var Invoice = class extends BaseEntity {
3403
3417
  };
3418
+ __decorateClass([
3419
+ Column26({ name: "timesheet_line_id", type: "integer", nullable: true }),
3420
+ Index19()
3421
+ ], Invoice.prototype, "timesheetLineId", 2);
3422
+ __decorateClass([
3423
+ ManyToOne24(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
3424
+ JoinColumn24({ name: "timesheet_line_id" })
3425
+ ], Invoice.prototype, "timesheetLine", 2);
3404
3426
  __decorateClass([
3405
3427
  Column26({ name: "job_id", type: "integer", nullable: true }),
3406
3428
  Index19()
3407
- ], TimesheetLine.prototype, "jobId", 2);
3429
+ ], Invoice.prototype, "jobId", 2);
3408
3430
  __decorateClass([
3409
- ManyToOne24(() => Job, (job) => job.timesheetLine),
3431
+ ManyToOne24(() => Job, (job) => job.invoice),
3410
3432
  JoinColumn24({ name: "job_id" })
3411
- ], TimesheetLine.prototype, "job", 2);
3433
+ ], Invoice.prototype, "job", 2);
3412
3434
  __decorateClass([
3413
3435
  Column26({ name: "client_id", type: "integer", nullable: true }),
3414
3436
  Index19()
3415
- ], TimesheetLine.prototype, "clientId", 2);
3437
+ ], Invoice.prototype, "clientId", 2);
3416
3438
  __decorateClass([
3417
- ManyToOne24(() => User, (user) => user.clientTimesheetLine),
3439
+ ManyToOne24(() => User, (user) => user.clientInvoice),
3418
3440
  JoinColumn24({ name: "client_id" })
3419
- ], TimesheetLine.prototype, "client", 2);
3441
+ ], Invoice.prototype, "client", 2);
3420
3442
  __decorateClass([
3421
3443
  Column26({ name: "freelancer_id", type: "integer", nullable: true }),
3422
3444
  Index19()
3423
- ], TimesheetLine.prototype, "freelancerId", 2);
3445
+ ], Invoice.prototype, "freelancerId", 2);
3424
3446
  __decorateClass([
3425
- ManyToOne24(() => User, (user) => user.freelancerTimesheetLine),
3447
+ ManyToOne24(() => User, (user) => user.freelancerInvoice),
3426
3448
  JoinColumn24({ name: "freelancer_id" })
3427
- ], TimesheetLine.prototype, "freelancer", 2);
3449
+ ], Invoice.prototype, "freelancer", 2);
3428
3450
  __decorateClass([
3429
- OneToMany9(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
3430
- ], TimesheetLine.prototype, "timesheetLogs", 2);
3451
+ Column26({ name: "invoice_unique_id", type: "varchar", nullable: true })
3452
+ ], Invoice.prototype, "invoiceUniqueId", 2);
3431
3453
  __decorateClass([
3432
- OneToMany9(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
3433
- ], TimesheetLine.prototype, "timesheetLineHistory", 2);
3454
+ Column26({
3455
+ name: "issued_at",
3456
+ type: "date",
3457
+ nullable: true
3458
+ })
3459
+ ], Invoice.prototype, "issuedAt", 2);
3434
3460
  __decorateClass([
3435
- Column26({ name: "unique_id", type: "varchar", nullable: true })
3436
- ], TimesheetLine.prototype, "uniqueId", 2);
3461
+ Column26({
3462
+ name: "due_at",
3463
+ type: "date",
3464
+ nullable: true
3465
+ })
3466
+ ], Invoice.prototype, "dueAt", 2);
3437
3467
  __decorateClass([
3438
3468
  Column26({
3439
- name: "week_start_date",
3469
+ name: "billing_cycle_from",
3440
3470
  type: "date",
3441
3471
  nullable: true
3442
3472
  })
3443
- ], TimesheetLine.prototype, "weekStartDate", 2);
3473
+ ], Invoice.prototype, "billingCycleFrom", 2);
3444
3474
  __decorateClass([
3445
3475
  Column26({
3446
- name: "week_end_date",
3476
+ name: "billing_cycle_to",
3447
3477
  type: "date",
3448
3478
  nullable: true
3449
3479
  })
3450
- ], TimesheetLine.prototype, "weekEndDate", 2);
3480
+ ], Invoice.prototype, "billingCycleTo", 2);
3451
3481
  __decorateClass([
3452
- Column26({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
3453
- ], TimesheetLine.prototype, "status", 2);
3482
+ Column26({ name: "billing_hours", type: "varchar", nullable: true })
3483
+ ], Invoice.prototype, "billingHours", 2);
3454
3484
  __decorateClass([
3455
- Column26({ name: "weekly_hours_sum", type: "varchar", nullable: true })
3456
- ], TimesheetLine.prototype, "weeklyHoursSum", 2);
3485
+ Column26({ name: "hourly_rate", type: "varchar", nullable: true })
3486
+ ], Invoice.prototype, "hourlyRate", 2);
3457
3487
  __decorateClass([
3458
- Column26({ name: "is_invoice_genrated", type: "boolean", default: false })
3459
- ], TimesheetLine.prototype, "isInvoiceGenrated", 2);
3488
+ Column26({ name: "billing_amount", type: "varchar", nullable: true })
3489
+ ], Invoice.prototype, "billingAmount", 2);
3460
3490
  __decorateClass([
3461
- Column26({ name: "is_invoice_approved", type: "boolean", default: false })
3462
- ], TimesheetLine.prototype, "isInvoiceApproved", 2);
3463
- TimesheetLine = __decorateClass([
3464
- Entity25("timesheet_lines")
3465
- ], TimesheetLine);
3491
+ Column26({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
3492
+ ], Invoice.prototype, "invoiceType", 2);
3493
+ __decorateClass([
3494
+ Column26({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
3495
+ ], Invoice.prototype, "status", 2);
3496
+ __decorateClass([
3497
+ Column26({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
3498
+ ], Invoice.prototype, "paymentStatus", 2);
3499
+ Invoice = __decorateClass([
3500
+ Entity25("invoices")
3501
+ ], Invoice);
3466
3502
 
3467
- // src/entities/invoice.entity.ts
3468
- import { Entity as Entity26, Column as Column27, Index as Index20, JoinColumn as JoinColumn25, ManyToOne as ManyToOne25 } from "typeorm";
3469
- var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
3470
- InvoiceStatusEnum2["SUBMITTED"] = "SUBMITTED";
3471
- InvoiceStatusEnum2["PENDING"] = "PENDING";
3472
- InvoiceStatusEnum2["APPROVED"] = "APPROVED";
3473
- InvoiceStatusEnum2["OVERDUE"] = "OVERDUE";
3474
- InvoiceStatusEnum2["REJECTED"] = "REJECTED";
3475
- InvoiceStatusEnum2["PAID"] = "PAID";
3476
- InvoiceStatusEnum2["INTRANSACTION"] = "INTRANSACTION";
3477
- return InvoiceStatusEnum2;
3478
- })(InvoiceStatusEnum || {});
3479
- var Invoice = class extends BaseEntity {
3503
+ // src/entities/timesheet-line.entity.ts
3504
+ var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
3505
+ TimesheetLineStatusEnum2["DRAFT"] = "DRAFT";
3506
+ TimesheetLineStatusEnum2["SEND"] = "SEND";
3507
+ TimesheetLineStatusEnum2["SEND_BACK"] = "SEND_BACK";
3508
+ TimesheetLineStatusEnum2["APPROVED"] = "APPROVED";
3509
+ TimesheetLineStatusEnum2["REJECTED"] = "REJECTED";
3510
+ TimesheetLineStatusEnum2["PAID"] = "PAID";
3511
+ TimesheetLineStatusEnum2["MISSING"] = "MISSING";
3512
+ TimesheetLineStatusEnum2["ACTIVE"] = "ACTIVE";
3513
+ return TimesheetLineStatusEnum2;
3514
+ })(TimesheetLineStatusEnum || {});
3515
+ var TimesheetLine = class extends BaseEntity {
3480
3516
  };
3481
3517
  __decorateClass([
3482
3518
  Column27({ name: "job_id", type: "integer", nullable: true }),
3483
3519
  Index20()
3484
- ], Invoice.prototype, "jobId", 2);
3520
+ ], TimesheetLine.prototype, "jobId", 2);
3485
3521
  __decorateClass([
3486
- ManyToOne25(() => Job, (job) => job.invoice),
3522
+ ManyToOne25(() => Job, (job) => job.timesheetLine),
3487
3523
  JoinColumn25({ name: "job_id" })
3488
- ], Invoice.prototype, "job", 2);
3524
+ ], TimesheetLine.prototype, "job", 2);
3489
3525
  __decorateClass([
3490
3526
  Column27({ name: "client_id", type: "integer", nullable: true }),
3491
3527
  Index20()
3492
- ], Invoice.prototype, "clientId", 2);
3528
+ ], TimesheetLine.prototype, "clientId", 2);
3493
3529
  __decorateClass([
3494
- ManyToOne25(() => User, (user) => user.clientInvoice),
3530
+ ManyToOne25(() => User, (user) => user.clientTimesheetLine),
3495
3531
  JoinColumn25({ name: "client_id" })
3496
- ], Invoice.prototype, "client", 2);
3532
+ ], TimesheetLine.prototype, "client", 2);
3497
3533
  __decorateClass([
3498
3534
  Column27({ name: "freelancer_id", type: "integer", nullable: true }),
3499
3535
  Index20()
3500
- ], Invoice.prototype, "freelancerId", 2);
3536
+ ], TimesheetLine.prototype, "freelancerId", 2);
3501
3537
  __decorateClass([
3502
- ManyToOne25(() => User, (user) => user.freelancerInvoice),
3538
+ ManyToOne25(() => User, (user) => user.freelancerTimesheetLine),
3503
3539
  JoinColumn25({ name: "freelancer_id" })
3504
- ], Invoice.prototype, "freelancer", 2);
3540
+ ], TimesheetLine.prototype, "freelancer", 2);
3505
3541
  __decorateClass([
3506
- Column27({ name: "invoice_unique_id", type: "varchar", nullable: true })
3507
- ], Invoice.prototype, "invoiceUniqueId", 2);
3542
+ OneToMany9(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
3543
+ ], TimesheetLine.prototype, "timesheetLogs", 2);
3508
3544
  __decorateClass([
3509
- Column27({
3510
- name: "issued_at",
3511
- type: "date",
3512
- nullable: true
3513
- })
3514
- ], Invoice.prototype, "issuedAt", 2);
3545
+ OneToMany9(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
3546
+ ], TimesheetLine.prototype, "timesheetLineHistory", 2);
3515
3547
  __decorateClass([
3516
- Column27({
3517
- name: "due_at",
3518
- type: "date",
3519
- nullable: true
3520
- })
3521
- ], Invoice.prototype, "dueAt", 2);
3548
+ Column27({ name: "unique_id", type: "varchar", nullable: true })
3549
+ ], TimesheetLine.prototype, "uniqueId", 2);
3522
3550
  __decorateClass([
3523
3551
  Column27({
3524
- name: "billing_cycle_from",
3552
+ name: "week_start_date",
3525
3553
  type: "date",
3526
3554
  nullable: true
3527
3555
  })
3528
- ], Invoice.prototype, "billingCycleFrom", 2);
3556
+ ], TimesheetLine.prototype, "weekStartDate", 2);
3529
3557
  __decorateClass([
3530
3558
  Column27({
3531
- name: "billing_cycle_to",
3559
+ name: "week_end_date",
3532
3560
  type: "date",
3533
3561
  nullable: true
3534
3562
  })
3535
- ], Invoice.prototype, "billingCycleTo", 2);
3563
+ ], TimesheetLine.prototype, "weekEndDate", 2);
3536
3564
  __decorateClass([
3537
- Column27({ name: "billing_hours", type: "varchar", nullable: true })
3538
- ], Invoice.prototype, "billingHours", 2);
3565
+ Column27({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
3566
+ ], TimesheetLine.prototype, "status", 2);
3539
3567
  __decorateClass([
3540
- Column27({ name: "hourly_rate", type: "varchar", nullable: true })
3541
- ], Invoice.prototype, "hourlyRate", 2);
3568
+ Column27({ name: "weekly_hours_sum", type: "varchar", nullable: true })
3569
+ ], TimesheetLine.prototype, "weeklyHoursSum", 2);
3542
3570
  __decorateClass([
3543
- Column27({ name: "billing_amount", type: "varchar", nullable: true })
3544
- ], Invoice.prototype, "billingAmount", 2);
3571
+ Column27({ name: "is_invoice_genrated", type: "boolean", default: false })
3572
+ ], TimesheetLine.prototype, "isInvoiceGenrated", 2);
3545
3573
  __decorateClass([
3546
- Column27({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
3547
- ], Invoice.prototype, "status", 2);
3548
- Invoice = __decorateClass([
3549
- Entity26("invoices")
3550
- ], Invoice);
3574
+ Column27({ name: "is_invoice_approved", type: "boolean", default: false })
3575
+ ], TimesheetLine.prototype, "isInvoiceApproved", 2);
3576
+ __decorateClass([
3577
+ OneToMany9(() => Invoice, (invoice) => invoice.timesheetLine, {
3578
+ cascade: true
3579
+ })
3580
+ ], TimesheetLine.prototype, "invoice", 2);
3581
+ TimesheetLine = __decorateClass([
3582
+ Entity26("timesheet_lines")
3583
+ ], TimesheetLine);
3551
3584
 
3552
3585
  // src/entities/job.entity.ts
3553
3586
  var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
@@ -4886,6 +4919,65 @@ Signature = __decorateClass([
4886
4919
  Entity54("signatures")
4887
4920
  ], Signature);
4888
4921
 
4922
+ // src/entities/dispute.entity.ts
4923
+ import { Entity as Entity55, Column as Column56, Index as Index48, JoinColumn as JoinColumn50, ManyToOne as ManyToOne49 } from "typeorm";
4924
+ var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
4925
+ DisputeStatusEnum2["OPEN"] = "OPEN";
4926
+ DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
4927
+ DisputeStatusEnum2["PENDING_RESPONSE"] = "PENDING_RESPONSE";
4928
+ DisputeStatusEnum2["UNDER_INVESTIGATION"] = "UNDER_INVESTIGATION";
4929
+ DisputeStatusEnum2["RESOLVED"] = "RESOLVED";
4930
+ DisputeStatusEnum2["CLOSED"] = "CLOSED";
4931
+ DisputeStatusEnum2["ESCALATED"] = "ESCALATED";
4932
+ DisputeStatusEnum2["CANCELLED"] = "CANCELLED";
4933
+ DisputeStatusEnum2["REOPENED"] = "REOPENED";
4934
+ return DisputeStatusEnum2;
4935
+ })(DisputeStatusEnum || {});
4936
+ var Dispute = class extends BaseEntity {
4937
+ };
4938
+ __decorateClass([
4939
+ Column56({ name: "dispute_unique_id", type: "varchar", unique: true })
4940
+ ], Dispute.prototype, "disputeUniqueId", 2);
4941
+ __decorateClass([
4942
+ Column56({ name: "dispute_type", type: "varchar", nullable: true })
4943
+ ], Dispute.prototype, "disputeType", 2);
4944
+ __decorateClass([
4945
+ Column56({ name: "description", type: "varchar", nullable: true })
4946
+ ], Dispute.prototype, "description", 2);
4947
+ __decorateClass([
4948
+ Column56({ name: "comment", type: "varchar", nullable: true })
4949
+ ], Dispute.prototype, "comment", 2);
4950
+ __decorateClass([
4951
+ Column56({
4952
+ name: "status",
4953
+ type: "enum",
4954
+ enum: DisputeStatusEnum,
4955
+ default: "OPEN" /* OPEN */
4956
+ })
4957
+ ], Dispute.prototype, "status", 2);
4958
+ __decorateClass([
4959
+ Column56({ name: "initiator_id", type: "integer" }),
4960
+ Index48()
4961
+ ], Dispute.prototype, "initiatorId", 2);
4962
+ __decorateClass([
4963
+ ManyToOne49(() => User, (user) => user.initiatedDisputes),
4964
+ JoinColumn50({ name: "initiator_id" })
4965
+ ], Dispute.prototype, "initiator", 2);
4966
+ __decorateClass([
4967
+ Column56({ name: "respondent_id", type: "integer" }),
4968
+ Index48()
4969
+ ], Dispute.prototype, "respondentId", 2);
4970
+ __decorateClass([
4971
+ ManyToOne49(() => User, (user) => user.respondentDisputes),
4972
+ JoinColumn50({ name: "respondent_id" })
4973
+ ], Dispute.prototype, "respondent", 2);
4974
+ __decorateClass([
4975
+ Column56({ name: "attachments", type: "jsonb", nullable: true })
4976
+ ], Dispute.prototype, "attachments", 2);
4977
+ Dispute = __decorateClass([
4978
+ Entity55("disputes")
4979
+ ], Dispute);
4980
+
4889
4981
  // src/entities/user.entity.ts
4890
4982
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
4891
4983
  AccountType2["ADMIN"] = "ADMIN";
@@ -4911,51 +5003,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
4911
5003
  var User = class extends BaseEntity {
4912
5004
  };
4913
5005
  __decorateClass([
4914
- Column56({ name: "unique_id", type: "varchar", unique: true })
5006
+ Column57({ name: "unique_id", type: "varchar", unique: true })
4915
5007
  ], User.prototype, "uniqueId", 2);
4916
5008
  __decorateClass([
4917
- Column56({ name: "parent_id", type: "integer", nullable: true }),
4918
- Index48()
5009
+ Column57({ name: "parent_id", type: "integer", nullable: true }),
5010
+ Index49()
4919
5011
  ], User.prototype, "parentId", 2);
4920
5012
  __decorateClass([
4921
- ManyToOne49(() => User, (user) => user.children, { nullable: true }),
4922
- JoinColumn50({ name: "parent_id" })
5013
+ ManyToOne50(() => User, (user) => user.children, { nullable: true }),
5014
+ JoinColumn51({ name: "parent_id" })
4923
5015
  ], User.prototype, "parent", 2);
4924
5016
  __decorateClass([
4925
5017
  OneToMany19(() => User, (user) => user.parent)
4926
5018
  ], User.prototype, "children", 2);
4927
5019
  __decorateClass([
4928
- Column56({ name: "username", type: "varchar", unique: true, nullable: true })
5020
+ Column57({ name: "username", type: "varchar", unique: true, nullable: true })
4929
5021
  ], User.prototype, "username", 2);
4930
5022
  __decorateClass([
4931
- Column56({ name: "first_name", type: "varchar", length: 100, nullable: true })
5023
+ Column57({ name: "first_name", type: "varchar", length: 100, nullable: true })
4932
5024
  ], User.prototype, "firstName", 2);
4933
5025
  __decorateClass([
4934
- Column56({ name: "last_name", type: "varchar", length: 100, nullable: true })
5026
+ Column57({ name: "last_name", type: "varchar", length: 100, nullable: true })
4935
5027
  ], User.prototype, "lastName", 2);
4936
5028
  __decorateClass([
4937
- Column56({ name: "date_of_birth", type: "date", nullable: true })
5029
+ Column57({ name: "date_of_birth", type: "date", nullable: true })
4938
5030
  ], User.prototype, "dateOfBirth", 2);
4939
5031
  __decorateClass([
4940
- Column56({ name: "gender", type: "varchar", length: 10, nullable: true })
5032
+ Column57({ name: "gender", type: "varchar", length: 10, nullable: true })
4941
5033
  ], User.prototype, "gender", 2);
4942
5034
  __decorateClass([
4943
- Column56({ name: "profile_picture_url", type: "text", nullable: true })
5035
+ Column57({ name: "profile_picture_url", type: "text", nullable: true })
4944
5036
  ], User.prototype, "profilePictureUrl", 2);
4945
5037
  __decorateClass([
4946
- Column56({ name: "email", type: "varchar", unique: true })
5038
+ Column57({ name: "email", type: "varchar", unique: true })
4947
5039
  ], User.prototype, "email", 2);
4948
5040
  __decorateClass([
4949
- Column56({ name: "mobile_code", type: "varchar", nullable: true })
5041
+ Column57({ name: "mobile_code", type: "varchar", nullable: true })
4950
5042
  ], User.prototype, "mobileCode", 2);
4951
5043
  __decorateClass([
4952
- Column56({ name: "mobile", type: "varchar", nullable: true })
5044
+ Column57({ name: "mobile", type: "varchar", nullable: true })
4953
5045
  ], User.prototype, "mobile", 2);
4954
5046
  __decorateClass([
4955
- Column56({ name: "password", type: "varchar", nullable: true })
5047
+ Column57({ name: "password", type: "varchar", nullable: true })
4956
5048
  ], User.prototype, "password", 2);
4957
5049
  __decorateClass([
4958
- Column56({
5050
+ Column57({
4959
5051
  name: "account_type",
4960
5052
  type: "enum",
4961
5053
  enum: AccountType,
@@ -4963,7 +5055,7 @@ __decorateClass([
4963
5055
  })
4964
5056
  ], User.prototype, "accountType", 2);
4965
5057
  __decorateClass([
4966
- Column56({
5058
+ Column57({
4967
5059
  name: "account_status",
4968
5060
  type: "enum",
4969
5061
  enum: AccountStatus,
@@ -4971,42 +5063,42 @@ __decorateClass([
4971
5063
  })
4972
5064
  ], User.prototype, "accountStatus", 2);
4973
5065
  __decorateClass([
4974
- Column56({ name: "is_email_verified", type: "boolean", default: false })
5066
+ Column57({ name: "is_email_verified", type: "boolean", default: false })
4975
5067
  ], User.prototype, "isEmailVerified", 2);
4976
5068
  __decorateClass([
4977
- Column56({ name: "is_mobile_verified", type: "boolean", default: false })
5069
+ Column57({ name: "is_mobile_verified", type: "boolean", default: false })
4978
5070
  ], User.prototype, "isMobileVerified", 2);
4979
5071
  __decorateClass([
4980
- Column56({ name: "is_social", type: "boolean", default: false })
5072
+ Column57({ name: "is_social", type: "boolean", default: false })
4981
5073
  ], User.prototype, "isSocial", 2);
4982
5074
  __decorateClass([
4983
- Column56({
5075
+ Column57({
4984
5076
  name: "last_login_at",
4985
5077
  type: "timestamp with time zone",
4986
5078
  nullable: true
4987
5079
  })
4988
5080
  ], User.prototype, "lastLoginAt", 2);
4989
5081
  __decorateClass([
4990
- Column56({ name: "last_login_ip", type: "varchar", nullable: true })
5082
+ Column57({ name: "last_login_ip", type: "varchar", nullable: true })
4991
5083
  ], User.prototype, "lastLoginIp", 2);
4992
5084
  __decorateClass([
4993
- Column56({ name: "reset_token", type: "varchar", nullable: true })
5085
+ Column57({ name: "reset_token", type: "varchar", nullable: true })
4994
5086
  ], User.prototype, "resetToken", 2);
4995
5087
  __decorateClass([
4996
- Column56({
5088
+ Column57({
4997
5089
  name: "reset_token_expire_at",
4998
5090
  type: "timestamp with time zone",
4999
5091
  nullable: true
5000
5092
  })
5001
5093
  ], User.prototype, "resetTokenExpireAt", 2);
5002
5094
  __decorateClass([
5003
- Column56({ name: "set_password_token", type: "varchar", nullable: true })
5095
+ Column57({ name: "set_password_token", type: "varchar", nullable: true })
5004
5096
  ], User.prototype, "setPasswordToken", 2);
5005
5097
  __decorateClass([
5006
5098
  OneToMany19(() => RefreshToken, (token) => token.user)
5007
5099
  ], User.prototype, "refreshTokens", 2);
5008
5100
  __decorateClass([
5009
- Column56({
5101
+ Column57({
5010
5102
  name: "provider",
5011
5103
  type: "enum",
5012
5104
  enum: Provider,
@@ -5015,19 +5107,19 @@ __decorateClass([
5015
5107
  })
5016
5108
  ], User.prototype, "provider", 2);
5017
5109
  __decorateClass([
5018
- Column56({ name: "provider_token", type: "varchar", nullable: true })
5110
+ Column57({ name: "provider_token", type: "varchar", nullable: true })
5019
5111
  ], User.prototype, "providerToken", 2);
5020
5112
  __decorateClass([
5021
- Column56({ name: "linkedin_id", type: "varchar", nullable: true })
5113
+ Column57({ name: "linkedin_id", type: "varchar", nullable: true })
5022
5114
  ], User.prototype, "linkedInId", 2);
5023
5115
  __decorateClass([
5024
- Column56({ name: "google_id", type: "varchar", nullable: true })
5116
+ Column57({ name: "google_id", type: "varchar", nullable: true })
5025
5117
  ], User.prototype, "googleId", 2);
5026
5118
  __decorateClass([
5027
- Column56({ name: "gitlabs_id", type: "varchar", nullable: true })
5119
+ Column57({ name: "gitlabs_id", type: "varchar", nullable: true })
5028
5120
  ], User.prototype, "gitLabsId", 2);
5029
5121
  __decorateClass([
5030
- Column56({ name: "onboarded_by", type: "varchar", nullable: true })
5122
+ Column57({ name: "onboarded_by", type: "varchar", nullable: true })
5031
5123
  ], User.prototype, "onBoardedBy", 2);
5032
5124
  __decorateClass([
5033
5125
  OneToMany19(() => Otp, (otp) => otp.user)
@@ -5191,8 +5283,14 @@ __decorateClass([
5191
5283
  __decorateClass([
5192
5284
  OneToMany19(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
5193
5285
  ], User.prototype, "clientPreferencesReceived", 2);
5286
+ __decorateClass([
5287
+ OneToMany19(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
5288
+ ], User.prototype, "initiatedDisputes", 2);
5289
+ __decorateClass([
5290
+ OneToMany19(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
5291
+ ], User.prototype, "respondentDisputes", 2);
5194
5292
  User = __decorateClass([
5195
- Entity55("users")
5293
+ Entity56("users")
5196
5294
  ], User);
5197
5295
 
5198
5296
  // src/entities/rating.entity.ts
@@ -5204,36 +5302,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
5204
5302
  var Rating = class extends BaseEntity {
5205
5303
  };
5206
5304
  __decorateClass([
5207
- Column57({ name: "reviewer_id", type: "integer" }),
5208
- Index49()
5305
+ Column58({ name: "reviewer_id", type: "integer" }),
5306
+ Index50()
5209
5307
  ], Rating.prototype, "reviewer_id", 2);
5210
5308
  __decorateClass([
5211
- ManyToOne50(() => User, { onDelete: "CASCADE" }),
5212
- JoinColumn51({ name: "reviewer_id" })
5309
+ ManyToOne51(() => User, { onDelete: "CASCADE" }),
5310
+ JoinColumn52({ name: "reviewer_id" })
5213
5311
  ], Rating.prototype, "reviewer", 2);
5214
5312
  __decorateClass([
5215
- Column57({ name: "reviewee_id", type: "integer" }),
5216
- Index49()
5313
+ Column58({ name: "reviewee_id", type: "integer" }),
5314
+ Index50()
5217
5315
  ], Rating.prototype, "reviewee_id", 2);
5218
5316
  __decorateClass([
5219
- ManyToOne50(() => User, { onDelete: "CASCADE" }),
5220
- JoinColumn51({ name: "reviewee_id" })
5317
+ ManyToOne51(() => User, { onDelete: "CASCADE" }),
5318
+ JoinColumn52({ name: "reviewee_id" })
5221
5319
  ], Rating.prototype, "reviewee", 2);
5222
5320
  __decorateClass([
5223
- Column57({
5321
+ Column58({
5224
5322
  type: "enum",
5225
5323
  enum: RatingTypeEnum,
5226
5324
  nullable: true
5227
5325
  })
5228
5326
  ], Rating.prototype, "ratingType", 2);
5229
5327
  __decorateClass([
5230
- Column57({ type: "integer", nullable: true })
5328
+ Column58({ type: "integer", nullable: true })
5231
5329
  ], Rating.prototype, "rating", 2);
5232
5330
  __decorateClass([
5233
- Column57({ type: "text", nullable: true })
5331
+ Column58({ type: "text", nullable: true })
5234
5332
  ], Rating.prototype, "review", 2);
5235
5333
  Rating = __decorateClass([
5236
- Entity56("ratings")
5334
+ Entity57("ratings")
5237
5335
  ], Rating);
5238
5336
 
5239
5337
  // src/modules/rating/dto/add.rating.dto.ts
@@ -7049,11 +7147,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
7049
7147
  };
7050
7148
 
7051
7149
  // src/entities/sequence-generator.entity.ts
7052
- import { Entity as Entity57, Column as Column58 } from "typeorm";
7150
+ import { Entity as Entity58, Column as Column59 } from "typeorm";
7053
7151
  var SequenceGenerator = class extends BaseEntity {
7054
7152
  };
7055
7153
  __decorateClass([
7056
- Column58({
7154
+ Column59({
7057
7155
  name: "module",
7058
7156
  type: "varchar",
7059
7157
  length: 50,
@@ -7062,7 +7160,7 @@ __decorateClass([
7062
7160
  })
7063
7161
  ], SequenceGenerator.prototype, "module", 2);
7064
7162
  __decorateClass([
7065
- Column58({
7163
+ Column59({
7066
7164
  name: "prefix",
7067
7165
  type: "varchar",
7068
7166
  length: 10,
@@ -7071,7 +7169,7 @@ __decorateClass([
7071
7169
  })
7072
7170
  ], SequenceGenerator.prototype, "prefix", 2);
7073
7171
  __decorateClass([
7074
- Column58({
7172
+ Column59({
7075
7173
  name: "last_sequence",
7076
7174
  type: "int",
7077
7175
  nullable: false,
@@ -7079,7 +7177,7 @@ __decorateClass([
7079
7177
  })
7080
7178
  ], SequenceGenerator.prototype, "lastSequence", 2);
7081
7179
  __decorateClass([
7082
- Column58({
7180
+ Column59({
7083
7181
  name: "year",
7084
7182
  type: "int",
7085
7183
  nullable: true,
@@ -7087,11 +7185,11 @@ __decorateClass([
7087
7185
  })
7088
7186
  ], SequenceGenerator.prototype, "year", 2);
7089
7187
  SequenceGenerator = __decorateClass([
7090
- Entity57("sequence_generators")
7188
+ Entity58("sequence_generators")
7091
7189
  ], SequenceGenerator);
7092
7190
 
7093
7191
  // src/entities/question.entity.ts
7094
- import { Entity as Entity58, Column as Column59 } from "typeorm";
7192
+ import { Entity as Entity59, Column as Column60 } from "typeorm";
7095
7193
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7096
7194
  QuestionFor2["CLIENT"] = "CLIENT";
7097
7195
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -7100,16 +7198,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7100
7198
  var Question = class extends BaseEntity {
7101
7199
  };
7102
7200
  __decorateClass([
7103
- Column59({ name: "question", type: "varchar" })
7201
+ Column60({ name: "question", type: "varchar" })
7104
7202
  ], Question.prototype, "question", 2);
7105
7203
  __decorateClass([
7106
- Column59({ name: "hint", type: "varchar", nullable: true })
7204
+ Column60({ name: "hint", type: "varchar", nullable: true })
7107
7205
  ], Question.prototype, "hint", 2);
7108
7206
  __decorateClass([
7109
- Column59({ name: "slug", type: "varchar", nullable: true, unique: true })
7207
+ Column60({ name: "slug", type: "varchar", nullable: true, unique: true })
7110
7208
  ], Question.prototype, "slug", 2);
7111
7209
  __decorateClass([
7112
- Column59({
7210
+ Column60({
7113
7211
  name: "question_for",
7114
7212
  type: "enum",
7115
7213
  enum: QuestionFor,
@@ -7117,119 +7215,119 @@ __decorateClass([
7117
7215
  })
7118
7216
  ], Question.prototype, "questionFor", 2);
7119
7217
  __decorateClass([
7120
- Column59({ name: "type", type: "varchar", nullable: true })
7218
+ Column60({ name: "type", type: "varchar", nullable: true })
7121
7219
  ], Question.prototype, "type", 2);
7122
7220
  __decorateClass([
7123
- Column59({ name: "options", type: "jsonb", nullable: true })
7221
+ Column60({ name: "options", type: "jsonb", nullable: true })
7124
7222
  ], Question.prototype, "options", 2);
7125
7223
  __decorateClass([
7126
- Column59({ name: "is_active", type: "boolean", default: false })
7224
+ Column60({ name: "is_active", type: "boolean", default: false })
7127
7225
  ], Question.prototype, "isActive", 2);
7128
7226
  Question = __decorateClass([
7129
- Entity58("questions")
7227
+ Entity59("questions")
7130
7228
  ], Question);
7131
7229
 
7132
7230
  // src/entities/skill.entity.ts
7133
- import { Entity as Entity59, Column as Column60 } from "typeorm";
7231
+ import { Entity as Entity60, Column as Column61 } from "typeorm";
7134
7232
  var Skill = class extends BaseEntity {
7135
7233
  };
7136
7234
  __decorateClass([
7137
- Column60({ name: "name", type: "varchar", nullable: true })
7235
+ Column61({ name: "name", type: "varchar", nullable: true })
7138
7236
  ], Skill.prototype, "name", 2);
7139
7237
  __decorateClass([
7140
- Column60({ name: "slug", type: "varchar", nullable: true, unique: true })
7238
+ Column61({ name: "slug", type: "varchar", nullable: true, unique: true })
7141
7239
  ], Skill.prototype, "slug", 2);
7142
7240
  __decorateClass([
7143
- Column60({ name: "is_active", type: "boolean", default: false })
7241
+ Column61({ name: "is_active", type: "boolean", default: false })
7144
7242
  ], Skill.prototype, "isActive", 2);
7145
7243
  Skill = __decorateClass([
7146
- Entity59("skills")
7244
+ Entity60("skills")
7147
7245
  ], Skill);
7148
7246
 
7149
7247
  // src/entities/job-role.entity.ts
7150
- import { Entity as Entity60, Column as Column61 } from "typeorm";
7248
+ import { Entity as Entity61, Column as Column62 } from "typeorm";
7151
7249
  var JobRoles = class extends BaseEntity {
7152
7250
  };
7153
7251
  __decorateClass([
7154
- Column61({ name: "slug", type: "varchar", nullable: true, unique: true })
7252
+ Column62({ name: "slug", type: "varchar", nullable: true, unique: true })
7155
7253
  ], JobRoles.prototype, "slug", 2);
7156
7254
  __decorateClass([
7157
- Column61({ name: "name", type: "varchar", nullable: true })
7255
+ Column62({ name: "name", type: "varchar", nullable: true })
7158
7256
  ], JobRoles.prototype, "name", 2);
7159
7257
  __decorateClass([
7160
- Column61({ name: "is_active", type: "boolean", default: true })
7258
+ Column62({ name: "is_active", type: "boolean", default: true })
7161
7259
  ], JobRoles.prototype, "isActive", 2);
7162
7260
  JobRoles = __decorateClass([
7163
- Entity60("job_roles")
7261
+ Entity61("job_roles")
7164
7262
  ], JobRoles);
7165
7263
 
7166
7264
  // src/entities/plan.entity.ts
7167
- import { Entity as Entity62, Column as Column63, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
7265
+ import { Entity as Entity63, Column as Column64, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
7168
7266
 
7169
7267
  // src/entities/feature.entity.ts
7170
- import { Entity as Entity61, Column as Column62, ManyToMany as ManyToMany2 } from "typeorm";
7268
+ import { Entity as Entity62, Column as Column63, ManyToMany as ManyToMany2 } from "typeorm";
7171
7269
  var Feature = class extends BaseEntity {
7172
7270
  };
7173
7271
  __decorateClass([
7174
- Column62({ name: "name", type: "varchar", unique: true })
7272
+ Column63({ name: "name", type: "varchar", unique: true })
7175
7273
  ], Feature.prototype, "name", 2);
7176
7274
  __decorateClass([
7177
7275
  ManyToMany2(() => Plan, (plan) => plan.features)
7178
7276
  ], Feature.prototype, "plans", 2);
7179
7277
  Feature = __decorateClass([
7180
- Entity61("features")
7278
+ Entity62("features")
7181
7279
  ], Feature);
7182
7280
 
7183
7281
  // src/entities/plan.entity.ts
7184
7282
  var Plan = class extends BaseEntity {
7185
7283
  };
7186
7284
  __decorateClass([
7187
- Column63({ name: "name", type: "varchar", unique: true })
7285
+ Column64({ name: "name", type: "varchar", unique: true })
7188
7286
  ], Plan.prototype, "name", 2);
7189
7287
  __decorateClass([
7190
- Column63({ name: "description", type: "varchar", nullable: true })
7288
+ Column64({ name: "description", type: "varchar", nullable: true })
7191
7289
  ], Plan.prototype, "description", 2);
7192
7290
  __decorateClass([
7193
- Column63({ name: "price", type: "decimal", precision: 10, scale: 2 })
7291
+ Column64({ name: "price", type: "decimal", precision: 10, scale: 2 })
7194
7292
  ], Plan.prototype, "price", 2);
7195
7293
  __decorateClass([
7196
- Column63({ name: "billing_period", type: "varchar" })
7294
+ Column64({ name: "billing_period", type: "varchar" })
7197
7295
  ], Plan.prototype, "billingPeriod", 2);
7198
7296
  __decorateClass([
7199
- Column63({ name: "is_current", type: "boolean", default: false })
7297
+ Column64({ name: "is_current", type: "boolean", default: false })
7200
7298
  ], Plan.prototype, "isCurrent", 2);
7201
7299
  __decorateClass([
7202
7300
  ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
7203
7301
  JoinTable()
7204
7302
  ], Plan.prototype, "features", 2);
7205
7303
  Plan = __decorateClass([
7206
- Entity62("plans")
7304
+ Entity63("plans")
7207
7305
  ], Plan);
7208
7306
 
7209
7307
  // src/entities/cms.entity.ts
7210
- import { Entity as Entity63, Column as Column64 } from "typeorm";
7308
+ import { Entity as Entity64, Column as Column65 } from "typeorm";
7211
7309
  var Cms = class extends BaseEntity {
7212
7310
  };
7213
7311
  __decorateClass([
7214
- Column64({ name: "title", type: "varchar", nullable: true })
7312
+ Column65({ name: "title", type: "varchar", nullable: true })
7215
7313
  ], Cms.prototype, "title", 2);
7216
7314
  __decorateClass([
7217
- Column64({ name: "slug", type: "varchar", nullable: true, unique: true })
7315
+ Column65({ name: "slug", type: "varchar", nullable: true, unique: true })
7218
7316
  ], Cms.prototype, "slug", 2);
7219
7317
  __decorateClass([
7220
- Column64({ name: "content", type: "varchar", nullable: true })
7318
+ Column65({ name: "content", type: "varchar", nullable: true })
7221
7319
  ], Cms.prototype, "content", 2);
7222
7320
  __decorateClass([
7223
- Column64({ name: "is_active", type: "boolean", default: true })
7321
+ Column65({ name: "is_active", type: "boolean", default: true })
7224
7322
  ], Cms.prototype, "isActive", 2);
7225
7323
  Cms = __decorateClass([
7226
- Entity63("cms")
7324
+ Entity64("cms")
7227
7325
  ], Cms);
7228
7326
 
7229
7327
  // src/entities/lead.entity.ts
7230
7328
  import {
7231
- Entity as Entity64,
7232
- Column as Column65
7329
+ Entity as Entity65,
7330
+ Column as Column66
7233
7331
  } from "typeorm";
7234
7332
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7235
7333
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -7239,22 +7337,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7239
7337
  var Lead = class extends BaseEntity {
7240
7338
  };
7241
7339
  __decorateClass([
7242
- Column65({ name: "name", type: "varchar", nullable: true })
7340
+ Column66({ name: "name", type: "varchar", nullable: true })
7243
7341
  ], Lead.prototype, "name", 2);
7244
7342
  __decorateClass([
7245
- Column65({ name: "mobile_code", type: "varchar", nullable: true })
7343
+ Column66({ name: "mobile_code", type: "varchar", nullable: true })
7246
7344
  ], Lead.prototype, "mobileCode", 2);
7247
7345
  __decorateClass([
7248
- Column65({ name: "mobile", type: "varchar", nullable: true })
7346
+ Column66({ name: "mobile", type: "varchar", nullable: true })
7249
7347
  ], Lead.prototype, "mobile", 2);
7250
7348
  __decorateClass([
7251
- Column65({ name: "email", type: "varchar", nullable: true })
7349
+ Column66({ name: "email", type: "varchar", nullable: true })
7252
7350
  ], Lead.prototype, "email", 2);
7253
7351
  __decorateClass([
7254
- Column65({ name: "description", type: "varchar", nullable: true })
7352
+ Column66({ name: "description", type: "varchar", nullable: true })
7255
7353
  ], Lead.prototype, "description", 2);
7256
7354
  __decorateClass([
7257
- Column65({
7355
+ Column66({
7258
7356
  name: "category",
7259
7357
  type: "enum",
7260
7358
  enum: CategoryEmum,
@@ -7262,7 +7360,7 @@ __decorateClass([
7262
7360
  })
7263
7361
  ], Lead.prototype, "category", 2);
7264
7362
  Lead = __decorateClass([
7265
- Entity64("leads")
7363
+ Entity65("leads")
7266
7364
  ], Lead);
7267
7365
 
7268
7366
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -7503,7 +7601,7 @@ ClientFreelancerRecommendation = __decorateClass([
7503
7601
  ], ClientFreelancerRecommendation);
7504
7602
 
7505
7603
  // src/entities/commission.entity.ts
7506
- import { Entity as Entity65, Column as Column66 } from "typeorm";
7604
+ import { Entity as Entity66, Column as Column67 } from "typeorm";
7507
7605
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
7508
7606
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
7509
7607
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -7512,7 +7610,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
7512
7610
  var Commission = class extends BaseEntity {
7513
7611
  };
7514
7612
  __decorateClass([
7515
- Column66({
7613
+ Column67({
7516
7614
  name: "freelancer_commission_type",
7517
7615
  type: "enum",
7518
7616
  enum: CommissionTypeEnum,
@@ -7520,10 +7618,10 @@ __decorateClass([
7520
7618
  })
7521
7619
  ], Commission.prototype, "freelancerCommissionType", 2);
7522
7620
  __decorateClass([
7523
- Column66({ name: "freelancer_commission", type: "integer", default: 0 })
7621
+ Column67({ name: "freelancer_commission", type: "integer", default: 0 })
7524
7622
  ], Commission.prototype, "freelancerCommission", 2);
7525
7623
  __decorateClass([
7526
- Column66({
7624
+ Column67({
7527
7625
  name: "client_commission_type",
7528
7626
  type: "enum",
7529
7627
  enum: CommissionTypeEnum,
@@ -7531,74 +7629,74 @@ __decorateClass([
7531
7629
  })
7532
7630
  ], Commission.prototype, "clientCommissionType", 2);
7533
7631
  __decorateClass([
7534
- Column66({ name: "client_commission", type: "integer", default: 0 })
7632
+ Column67({ name: "client_commission", type: "integer", default: 0 })
7535
7633
  ], Commission.prototype, "clientCommission", 2);
7536
7634
  Commission = __decorateClass([
7537
- Entity65("commissions")
7635
+ Entity66("commissions")
7538
7636
  ], Commission);
7539
7637
 
7540
7638
  // src/entities/calendly-meeting-log.entity.ts
7541
7639
  import {
7542
- Entity as Entity66,
7543
- Column as Column67,
7544
- Index as Index50
7640
+ Entity as Entity67,
7641
+ Column as Column68,
7642
+ Index as Index51
7545
7643
  } from "typeorm";
7546
7644
  var CalendlyMeetingLog = class extends BaseEntity {
7547
7645
  };
7548
7646
  __decorateClass([
7549
- Column67({ name: "calendly_event_id", type: "varchar", nullable: true }),
7550
- Index50()
7647
+ Column68({ name: "calendly_event_id", type: "varchar", nullable: true }),
7648
+ Index51()
7551
7649
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
7552
7650
  __decorateClass([
7553
- Column67({ name: "calendly_event_type", type: "varchar", nullable: true })
7651
+ Column68({ name: "calendly_event_type", type: "varchar", nullable: true })
7554
7652
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
7555
7653
  __decorateClass([
7556
- Column67({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7654
+ Column68({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7557
7655
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
7558
7656
  CalendlyMeetingLog = __decorateClass([
7559
- Entity66("calendly_meeting_logs")
7657
+ Entity67("calendly_meeting_logs")
7560
7658
  ], CalendlyMeetingLog);
7561
7659
 
7562
7660
  // src/entities/zoom-meeting-log.entity.ts
7563
7661
  import {
7564
- Entity as Entity67,
7565
- Column as Column68,
7566
- Index as Index51
7662
+ Entity as Entity68,
7663
+ Column as Column69,
7664
+ Index as Index52
7567
7665
  } from "typeorm";
7568
7666
  var ZoomMeetingLog = class extends BaseEntity {
7569
7667
  };
7570
7668
  __decorateClass([
7571
- Column68({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
7572
- Index51()
7669
+ Column69({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
7670
+ Index52()
7573
7671
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
7574
7672
  __decorateClass([
7575
- Column68({ name: "zoom_event_type", type: "varchar", nullable: true })
7673
+ Column69({ name: "zoom_event_type", type: "varchar", nullable: true })
7576
7674
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
7577
7675
  __decorateClass([
7578
- Column68({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7676
+ Column69({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7579
7677
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
7580
7678
  ZoomMeetingLog = __decorateClass([
7581
- Entity67("zoom_meeting_logs")
7679
+ Entity68("zoom_meeting_logs")
7582
7680
  ], ZoomMeetingLog);
7583
7681
 
7584
7682
  // src/entities/stripe-logs.entity.ts
7585
- import { Entity as Entity68, Column as Column69 } from "typeorm";
7683
+ import { Entity as Entity69, Column as Column70 } from "typeorm";
7586
7684
  var StripeLog = class extends BaseEntity {
7587
7685
  };
7588
7686
  __decorateClass([
7589
- Column69({ name: "stripe_event_id", type: "varchar", nullable: true })
7687
+ Column70({ name: "stripe_event_id", type: "varchar", nullable: true })
7590
7688
  ], StripeLog.prototype, "stripeEventId", 2);
7591
7689
  __decorateClass([
7592
- Column69({ name: "event_type", type: "varchar", nullable: true })
7690
+ Column70({ name: "event_type", type: "varchar", nullable: true })
7593
7691
  ], StripeLog.prototype, "eventType", 2);
7594
7692
  __decorateClass([
7595
- Column69({ name: "stripe_account_id", type: "varchar", nullable: true })
7693
+ Column70({ name: "stripe_account_id", type: "varchar", nullable: true })
7596
7694
  ], StripeLog.prototype, "stripeAccountId", 2);
7597
7695
  __decorateClass([
7598
- Column69({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7696
+ Column70({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7599
7697
  ], StripeLog.prototype, "rawWebhookData", 2);
7600
7698
  StripeLog = __decorateClass([
7601
- Entity68("stripe_logs")
7699
+ Entity69("stripe_logs")
7602
7700
  ], StripeLog);
7603
7701
  export {
7604
7702
  ADMIN_FREELANCER_PATTERN,
@@ -7684,6 +7782,8 @@ export {
7684
7782
  CreateQuestionDto,
7685
7783
  CreateRatingDto,
7686
7784
  CreateSubAdminDto,
7785
+ Dispute,
7786
+ DisputeStatusEnum,
7687
7787
  DocumentType,
7688
7788
  DocumentTypeEnum,
7689
7789
  DurationTypeEnum,
@@ -7742,7 +7842,9 @@ export {
7742
7842
  InterviewSkill,
7743
7843
  InterviewStatusEnum,
7744
7844
  Invoice,
7845
+ InvoicePaymentStatusEnum,
7745
7846
  InvoiceStatusEnum,
7847
+ InvoiceTypeEnum,
7746
7848
  JOB_PATTERN,
7747
7849
  JOB_ROLE_PATTERN,
7748
7850
  Job,