@experts_hub/shared 1.0.429 → 1.0.431
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/entities/index.d.ts +1 -0
- package/dist/entities/invoice.entity.d.ts +29 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/entities/timesheet-line.entity.d.ts +3 -0
- package/dist/entities/user.entity.d.ts +3 -0
- package/dist/index.d.mts +41 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.js +762 -632
- package/dist/index.mjs +696 -564
- package/dist/modules/interview/dto/create-f2f-interview-direct.dto.d.ts +6 -0
- package/dist/modules/interview/dto/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/entities/invoices.entity.d.ts +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1442,17 +1442,17 @@ import {
|
|
|
1442
1442
|
} from "class-validator";
|
|
1443
1443
|
|
|
1444
1444
|
// src/entities/rating.entity.ts
|
|
1445
|
-
import { Entity as
|
|
1445
|
+
import { Entity as Entity56, Column as Column57, ManyToOne as ManyToOne50, JoinColumn as JoinColumn51, Index as Index49 } from "typeorm";
|
|
1446
1446
|
|
|
1447
1447
|
// src/entities/user.entity.ts
|
|
1448
1448
|
import {
|
|
1449
|
-
Entity as
|
|
1450
|
-
Column as
|
|
1449
|
+
Entity as Entity55,
|
|
1450
|
+
Column as Column56,
|
|
1451
1451
|
OneToMany as OneToMany19,
|
|
1452
1452
|
OneToOne as OneToOne5,
|
|
1453
|
-
Index as
|
|
1454
|
-
ManyToOne as
|
|
1455
|
-
JoinColumn as
|
|
1453
|
+
Index as Index48,
|
|
1454
|
+
ManyToOne as ManyToOne49,
|
|
1455
|
+
JoinColumn as JoinColumn50
|
|
1456
1456
|
} from "typeorm";
|
|
1457
1457
|
|
|
1458
1458
|
// src/entities/base.entity.ts
|
|
@@ -2194,11 +2194,11 @@ CompanyProfile = __decorateClass([
|
|
|
2194
2194
|
|
|
2195
2195
|
// src/entities/job.entity.ts
|
|
2196
2196
|
import {
|
|
2197
|
-
Entity as
|
|
2198
|
-
Column as
|
|
2199
|
-
Index as
|
|
2200
|
-
ManyToOne as
|
|
2201
|
-
JoinColumn as
|
|
2197
|
+
Entity as Entity27,
|
|
2198
|
+
Column as Column28,
|
|
2199
|
+
Index as Index21,
|
|
2200
|
+
ManyToOne as ManyToOne26,
|
|
2201
|
+
JoinColumn as JoinColumn26,
|
|
2202
2202
|
OneToMany as OneToMany10
|
|
2203
2203
|
} from "typeorm";
|
|
2204
2204
|
|
|
@@ -3370,6 +3370,15 @@ __decorateClass([
|
|
|
3370
3370
|
__decorateClass([
|
|
3371
3371
|
Column25({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
|
|
3372
3372
|
], TimesheetLine.prototype, "status", 2);
|
|
3373
|
+
__decorateClass([
|
|
3374
|
+
Column25({ name: "weekly_hours_sum", type: "varchar", nullable: true })
|
|
3375
|
+
], TimesheetLine.prototype, "weeklyHoursSum", 2);
|
|
3376
|
+
__decorateClass([
|
|
3377
|
+
Column25({ name: "is_invoice_genrated", type: "boolean", default: false })
|
|
3378
|
+
], TimesheetLine.prototype, "isInvoiceGenrated", 2);
|
|
3379
|
+
__decorateClass([
|
|
3380
|
+
Column25({ name: "is_invoice_approved", type: "boolean", default: false })
|
|
3381
|
+
], TimesheetLine.prototype, "isInvoiceApproved", 2);
|
|
3373
3382
|
TimesheetLine = __decorateClass([
|
|
3374
3383
|
Entity24("timesheet_lines")
|
|
3375
3384
|
], TimesheetLine);
|
|
@@ -3425,6 +3434,91 @@ ClientCandidatePreference = __decorateClass([
|
|
|
3425
3434
|
Entity25("client_candidate_preferences")
|
|
3426
3435
|
], ClientCandidatePreference);
|
|
3427
3436
|
|
|
3437
|
+
// src/entities/invoice.entity.ts
|
|
3438
|
+
import { Entity as Entity26, Column as Column27, Index as Index20, JoinColumn as JoinColumn25, ManyToOne as ManyToOne25 } from "typeorm";
|
|
3439
|
+
var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
|
|
3440
|
+
InvoiceStatusEnum2["SUBMITTED"] = "SUBMITTED";
|
|
3441
|
+
InvoiceStatusEnum2["PENDING"] = "PENDING";
|
|
3442
|
+
InvoiceStatusEnum2["APPROVED"] = "APPROVED";
|
|
3443
|
+
InvoiceStatusEnum2["OVERDUE"] = "OVERDUE";
|
|
3444
|
+
InvoiceStatusEnum2["REJECTED"] = "REJECTED";
|
|
3445
|
+
InvoiceStatusEnum2["PAID"] = "PAID";
|
|
3446
|
+
InvoiceStatusEnum2["INTRANSACTION"] = "INTRANSACTION";
|
|
3447
|
+
return InvoiceStatusEnum2;
|
|
3448
|
+
})(InvoiceStatusEnum || {});
|
|
3449
|
+
var Invoice = class extends BaseEntity {
|
|
3450
|
+
};
|
|
3451
|
+
__decorateClass([
|
|
3452
|
+
Column27({ name: "job_id", type: "integer", nullable: true }),
|
|
3453
|
+
Index20()
|
|
3454
|
+
], Invoice.prototype, "jobId", 2);
|
|
3455
|
+
__decorateClass([
|
|
3456
|
+
ManyToOne25(() => Job, (job) => job.invoice),
|
|
3457
|
+
JoinColumn25({ name: "job_id" })
|
|
3458
|
+
], Invoice.prototype, "job", 2);
|
|
3459
|
+
__decorateClass([
|
|
3460
|
+
Column27({ name: "client_id", type: "integer", nullable: true }),
|
|
3461
|
+
Index20()
|
|
3462
|
+
], Invoice.prototype, "clientId", 2);
|
|
3463
|
+
__decorateClass([
|
|
3464
|
+
ManyToOne25(() => User, (user) => user.clientInvoice),
|
|
3465
|
+
JoinColumn25({ name: "client_id" })
|
|
3466
|
+
], Invoice.prototype, "client", 2);
|
|
3467
|
+
__decorateClass([
|
|
3468
|
+
Column27({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3469
|
+
Index20()
|
|
3470
|
+
], Invoice.prototype, "freelancerId", 2);
|
|
3471
|
+
__decorateClass([
|
|
3472
|
+
ManyToOne25(() => User, (user) => user.freelancerInvoice),
|
|
3473
|
+
JoinColumn25({ name: "freelancer_id" })
|
|
3474
|
+
], Invoice.prototype, "freelancer", 2);
|
|
3475
|
+
__decorateClass([
|
|
3476
|
+
Column27({ name: "invoice_unique_id", type: "varchar", nullable: true })
|
|
3477
|
+
], Invoice.prototype, "invoiceUniqueId", 2);
|
|
3478
|
+
__decorateClass([
|
|
3479
|
+
Column27({
|
|
3480
|
+
name: "issued_at",
|
|
3481
|
+
type: "date",
|
|
3482
|
+
nullable: true
|
|
3483
|
+
})
|
|
3484
|
+
], Invoice.prototype, "issuedAt", 2);
|
|
3485
|
+
__decorateClass([
|
|
3486
|
+
Column27({
|
|
3487
|
+
name: "due_at",
|
|
3488
|
+
type: "date",
|
|
3489
|
+
nullable: true
|
|
3490
|
+
})
|
|
3491
|
+
], Invoice.prototype, "dueAt", 2);
|
|
3492
|
+
__decorateClass([
|
|
3493
|
+
Column27({
|
|
3494
|
+
name: "billing_cycle_from",
|
|
3495
|
+
type: "date",
|
|
3496
|
+
nullable: true
|
|
3497
|
+
})
|
|
3498
|
+
], Invoice.prototype, "billingCycleFrom", 2);
|
|
3499
|
+
__decorateClass([
|
|
3500
|
+
Column27({
|
|
3501
|
+
name: "billing_cycle_to",
|
|
3502
|
+
type: "date",
|
|
3503
|
+
nullable: true
|
|
3504
|
+
})
|
|
3505
|
+
], Invoice.prototype, "billingCycleTo", 2);
|
|
3506
|
+
__decorateClass([
|
|
3507
|
+
Column27({ name: "billing_hours", type: "varchar", nullable: true })
|
|
3508
|
+
], Invoice.prototype, "billingHours", 2);
|
|
3509
|
+
__decorateClass([
|
|
3510
|
+
Column27({ name: "hourly_rate", type: "varchar", nullable: true })
|
|
3511
|
+
], Invoice.prototype, "hourlyRate", 2);
|
|
3512
|
+
__decorateClass([
|
|
3513
|
+
Column27({ name: "billing_amount", type: "varchar", nullable: true })
|
|
3514
|
+
], Invoice.prototype, "billingAmount", 2);
|
|
3515
|
+
__decorateClass([
|
|
3516
|
+
Column27({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
|
|
3517
|
+
], Invoice.prototype, "status", 2);
|
|
3518
|
+
Invoice = __decorateClass([
|
|
3519
|
+
Entity26("invoices")
|
|
3520
|
+
], Invoice);
|
|
3521
|
+
|
|
3428
3522
|
// src/entities/job.entity.ts
|
|
3429
3523
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
3430
3524
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -3465,52 +3559,52 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
3465
3559
|
var Job = class extends BaseEntity {
|
|
3466
3560
|
};
|
|
3467
3561
|
__decorateClass([
|
|
3468
|
-
|
|
3562
|
+
Column28({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
3469
3563
|
], Job.prototype, "jobId", 2);
|
|
3470
3564
|
// individual index to find jobs by user
|
|
3471
3565
|
__decorateClass([
|
|
3472
|
-
|
|
3473
|
-
|
|
3566
|
+
Column28({ name: "user_id", type: "integer", nullable: true }),
|
|
3567
|
+
Index21()
|
|
3474
3568
|
], Job.prototype, "userId", 2);
|
|
3475
3569
|
__decorateClass([
|
|
3476
|
-
|
|
3477
|
-
|
|
3570
|
+
ManyToOne26(() => User, (user) => user.jobs),
|
|
3571
|
+
JoinColumn26({ name: "user_id" })
|
|
3478
3572
|
], Job.prototype, "user", 2);
|
|
3479
3573
|
__decorateClass([
|
|
3480
|
-
|
|
3574
|
+
Column28({ name: "country_id", type: "int", nullable: true })
|
|
3481
3575
|
], Job.prototype, "countryId", 2);
|
|
3482
3576
|
__decorateClass([
|
|
3483
|
-
|
|
3484
|
-
|
|
3577
|
+
ManyToOne26(() => Country),
|
|
3578
|
+
JoinColumn26({ name: "country_id" })
|
|
3485
3579
|
], Job.prototype, "country", 2);
|
|
3486
3580
|
__decorateClass([
|
|
3487
|
-
|
|
3581
|
+
Column28({ name: "state_id", type: "int", nullable: true })
|
|
3488
3582
|
], Job.prototype, "stateId", 2);
|
|
3489
3583
|
__decorateClass([
|
|
3490
|
-
|
|
3491
|
-
|
|
3584
|
+
ManyToOne26(() => State),
|
|
3585
|
+
JoinColumn26({ name: "state_id" })
|
|
3492
3586
|
], Job.prototype, "state", 2);
|
|
3493
3587
|
__decorateClass([
|
|
3494
|
-
|
|
3588
|
+
Column28({ name: "city_id", type: "int", nullable: true })
|
|
3495
3589
|
], Job.prototype, "cityId", 2);
|
|
3496
3590
|
__decorateClass([
|
|
3497
|
-
|
|
3498
|
-
|
|
3591
|
+
ManyToOne26(() => City),
|
|
3592
|
+
JoinColumn26({ name: "city_id" })
|
|
3499
3593
|
], Job.prototype, "city", 2);
|
|
3500
3594
|
__decorateClass([
|
|
3501
|
-
|
|
3595
|
+
Column28({ name: "job_role", type: "varchar", nullable: true })
|
|
3502
3596
|
], Job.prototype, "jobRole", 2);
|
|
3503
3597
|
__decorateClass([
|
|
3504
|
-
|
|
3598
|
+
Column28({ name: "project_name", type: "varchar", nullable: true })
|
|
3505
3599
|
], Job.prototype, "projectName", 2);
|
|
3506
3600
|
__decorateClass([
|
|
3507
|
-
|
|
3601
|
+
Column28({ name: "note", type: "varchar", nullable: true })
|
|
3508
3602
|
], Job.prototype, "note", 2);
|
|
3509
3603
|
__decorateClass([
|
|
3510
|
-
|
|
3604
|
+
Column28({ name: "openings", type: "integer", default: 0 })
|
|
3511
3605
|
], Job.prototype, "openings", 2);
|
|
3512
3606
|
__decorateClass([
|
|
3513
|
-
|
|
3607
|
+
Column28({
|
|
3514
3608
|
name: "location",
|
|
3515
3609
|
type: "enum",
|
|
3516
3610
|
enum: JobLocationEnum,
|
|
@@ -3518,7 +3612,7 @@ __decorateClass([
|
|
|
3518
3612
|
})
|
|
3519
3613
|
], Job.prototype, "location", 2);
|
|
3520
3614
|
__decorateClass([
|
|
3521
|
-
|
|
3615
|
+
Column28({
|
|
3522
3616
|
name: "type_of_employment",
|
|
3523
3617
|
type: "enum",
|
|
3524
3618
|
enum: TypeOfEmploymentEnum,
|
|
@@ -3526,19 +3620,19 @@ __decorateClass([
|
|
|
3526
3620
|
})
|
|
3527
3621
|
], Job.prototype, "typeOfEmployment", 2);
|
|
3528
3622
|
__decorateClass([
|
|
3529
|
-
|
|
3623
|
+
Column28({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
3530
3624
|
], Job.prototype, "academicQualification", 2);
|
|
3531
3625
|
__decorateClass([
|
|
3532
|
-
|
|
3626
|
+
Column28({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
3533
3627
|
], Job.prototype, "yearsOfExperience", 2);
|
|
3534
3628
|
__decorateClass([
|
|
3535
|
-
|
|
3629
|
+
Column28({ name: "business_industry", type: "varchar", nullable: true })
|
|
3536
3630
|
], Job.prototype, "businessIndustry", 2);
|
|
3537
3631
|
__decorateClass([
|
|
3538
|
-
|
|
3632
|
+
Column28({ name: "currency", type: "varchar", default: "USD" })
|
|
3539
3633
|
], Job.prototype, "currency", 2);
|
|
3540
3634
|
__decorateClass([
|
|
3541
|
-
|
|
3635
|
+
Column28({
|
|
3542
3636
|
name: "expected_salary_from",
|
|
3543
3637
|
type: "decimal",
|
|
3544
3638
|
precision: 10,
|
|
@@ -3547,14 +3641,14 @@ __decorateClass([
|
|
|
3547
3641
|
})
|
|
3548
3642
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
3549
3643
|
__decorateClass([
|
|
3550
|
-
|
|
3644
|
+
Column28({
|
|
3551
3645
|
name: "hide_expected_salary_from",
|
|
3552
3646
|
type: "boolean",
|
|
3553
3647
|
default: false
|
|
3554
3648
|
})
|
|
3555
3649
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
3556
3650
|
__decorateClass([
|
|
3557
|
-
|
|
3651
|
+
Column28({
|
|
3558
3652
|
name: "expected_salary_to",
|
|
3559
3653
|
type: "decimal",
|
|
3560
3654
|
precision: 10,
|
|
@@ -3563,32 +3657,32 @@ __decorateClass([
|
|
|
3563
3657
|
})
|
|
3564
3658
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
3565
3659
|
__decorateClass([
|
|
3566
|
-
|
|
3660
|
+
Column28({
|
|
3567
3661
|
name: "hide_expected_salary_to",
|
|
3568
3662
|
type: "boolean",
|
|
3569
3663
|
default: false
|
|
3570
3664
|
})
|
|
3571
3665
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
3572
3666
|
__decorateClass([
|
|
3573
|
-
|
|
3667
|
+
Column28({ name: "years", type: "varchar", nullable: true })
|
|
3574
3668
|
], Job.prototype, "years", 2);
|
|
3575
3669
|
__decorateClass([
|
|
3576
|
-
|
|
3670
|
+
Column28({ name: "months", type: "varchar", nullable: true })
|
|
3577
3671
|
], Job.prototype, "months", 2);
|
|
3578
3672
|
__decorateClass([
|
|
3579
|
-
|
|
3673
|
+
Column28({ name: "weeks", type: "varchar", nullable: true })
|
|
3580
3674
|
], Job.prototype, "weeks", 2);
|
|
3581
3675
|
__decorateClass([
|
|
3582
|
-
|
|
3676
|
+
Column28({ name: "days", type: "varchar", nullable: true })
|
|
3583
3677
|
], Job.prototype, "days", 2);
|
|
3584
3678
|
__decorateClass([
|
|
3585
|
-
|
|
3679
|
+
Column28({ name: "tentative_start_date", type: "date", nullable: true })
|
|
3586
3680
|
], Job.prototype, "tentativeStartDate", 2);
|
|
3587
3681
|
__decorateClass([
|
|
3588
|
-
|
|
3682
|
+
Column28({ name: "tentative_end_date", type: "date", nullable: true })
|
|
3589
3683
|
], Job.prototype, "tentativeEndDate", 2);
|
|
3590
3684
|
__decorateClass([
|
|
3591
|
-
|
|
3685
|
+
Column28({
|
|
3592
3686
|
name: "duration_type",
|
|
3593
3687
|
type: "enum",
|
|
3594
3688
|
enum: DurationTypeEnum,
|
|
@@ -3596,10 +3690,10 @@ __decorateClass([
|
|
|
3596
3690
|
})
|
|
3597
3691
|
], Job.prototype, "durationType", 2);
|
|
3598
3692
|
__decorateClass([
|
|
3599
|
-
|
|
3693
|
+
Column28({ name: "duration", type: "varchar", nullable: true })
|
|
3600
3694
|
], Job.prototype, "duration", 2);
|
|
3601
3695
|
__decorateClass([
|
|
3602
|
-
|
|
3696
|
+
Column28({
|
|
3603
3697
|
name: "number_of_hours",
|
|
3604
3698
|
type: "decimal",
|
|
3605
3699
|
precision: 4,
|
|
@@ -3608,13 +3702,13 @@ __decorateClass([
|
|
|
3608
3702
|
})
|
|
3609
3703
|
], Job.prototype, "numberOfHours", 2);
|
|
3610
3704
|
__decorateClass([
|
|
3611
|
-
|
|
3705
|
+
Column28({ name: "description", type: "varchar", nullable: true })
|
|
3612
3706
|
], Job.prototype, "description", 2);
|
|
3613
3707
|
__decorateClass([
|
|
3614
|
-
|
|
3708
|
+
Column28({ name: "additional_comment", type: "varchar", nullable: true })
|
|
3615
3709
|
], Job.prototype, "additionalComment", 2);
|
|
3616
3710
|
__decorateClass([
|
|
3617
|
-
|
|
3711
|
+
Column28({
|
|
3618
3712
|
name: "onboarding_tat",
|
|
3619
3713
|
type: "varchar",
|
|
3620
3714
|
length: 50,
|
|
@@ -3622,14 +3716,14 @@ __decorateClass([
|
|
|
3622
3716
|
})
|
|
3623
3717
|
], Job.prototype, "onboardingTat", 2);
|
|
3624
3718
|
__decorateClass([
|
|
3625
|
-
|
|
3719
|
+
Column28({
|
|
3626
3720
|
name: "candidate_communication_skills",
|
|
3627
3721
|
type: "varchar",
|
|
3628
3722
|
nullable: true
|
|
3629
3723
|
})
|
|
3630
3724
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
3631
3725
|
__decorateClass([
|
|
3632
|
-
|
|
3726
|
+
Column28({
|
|
3633
3727
|
name: "step_completed",
|
|
3634
3728
|
type: "enum",
|
|
3635
3729
|
enum: Step,
|
|
@@ -3637,7 +3731,7 @@ __decorateClass([
|
|
|
3637
3731
|
})
|
|
3638
3732
|
], Job.prototype, "stepCompleted", 2);
|
|
3639
3733
|
__decorateClass([
|
|
3640
|
-
|
|
3734
|
+
Column28({
|
|
3641
3735
|
name: "status",
|
|
3642
3736
|
type: "enum",
|
|
3643
3737
|
enum: JobStatusEnum,
|
|
@@ -3645,16 +3739,16 @@ __decorateClass([
|
|
|
3645
3739
|
})
|
|
3646
3740
|
], Job.prototype, "status", 2);
|
|
3647
3741
|
__decorateClass([
|
|
3648
|
-
|
|
3742
|
+
Column28({ name: "viewed_count", type: "integer", default: 0 })
|
|
3649
3743
|
], Job.prototype, "viewedCount", 2);
|
|
3650
3744
|
__decorateClass([
|
|
3651
|
-
|
|
3745
|
+
Column28({ name: "application_count", type: "integer", default: 0 })
|
|
3652
3746
|
], Job.prototype, "applicationCount", 2);
|
|
3653
3747
|
__decorateClass([
|
|
3654
|
-
|
|
3748
|
+
Column28({ name: "is_contract_signed", type: "boolean", default: false })
|
|
3655
3749
|
], Job.prototype, "isContractSigned", 2);
|
|
3656
3750
|
__decorateClass([
|
|
3657
|
-
|
|
3751
|
+
Column28({ name: "is_interview_created", type: "boolean", default: false })
|
|
3658
3752
|
], Job.prototype, "isInterviewCreated", 2);
|
|
3659
3753
|
__decorateClass([
|
|
3660
3754
|
OneToMany10(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
@@ -3693,20 +3787,25 @@ __decorateClass([
|
|
|
3693
3787
|
cascade: true
|
|
3694
3788
|
})
|
|
3695
3789
|
], Job.prototype, "timesheetLine", 2);
|
|
3790
|
+
__decorateClass([
|
|
3791
|
+
OneToMany10(() => Invoice, (invoice) => invoice.job, {
|
|
3792
|
+
cascade: true
|
|
3793
|
+
})
|
|
3794
|
+
], Job.prototype, "invoice", 2);
|
|
3696
3795
|
__decorateClass([
|
|
3697
3796
|
OneToMany10(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
3698
3797
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
3699
3798
|
Job = __decorateClass([
|
|
3700
|
-
|
|
3799
|
+
Entity27("jobs")
|
|
3701
3800
|
], Job);
|
|
3702
3801
|
|
|
3703
3802
|
// src/entities/bank-details.entity.ts
|
|
3704
3803
|
import {
|
|
3705
|
-
Entity as
|
|
3706
|
-
Column as
|
|
3707
|
-
Index as
|
|
3708
|
-
ManyToOne as
|
|
3709
|
-
JoinColumn as
|
|
3804
|
+
Entity as Entity28,
|
|
3805
|
+
Column as Column29,
|
|
3806
|
+
Index as Index22,
|
|
3807
|
+
ManyToOne as ManyToOne27,
|
|
3808
|
+
JoinColumn as JoinColumn27
|
|
3710
3809
|
} from "typeorm";
|
|
3711
3810
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
3712
3811
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -3722,48 +3821,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
3722
3821
|
};
|
|
3723
3822
|
// individual index to find bank details by user
|
|
3724
3823
|
__decorateClass([
|
|
3725
|
-
|
|
3726
|
-
|
|
3824
|
+
Column29({ name: "user_id", type: "integer", nullable: true }),
|
|
3825
|
+
Index22()
|
|
3727
3826
|
], BankDetail.prototype, "userId", 2);
|
|
3728
3827
|
__decorateClass([
|
|
3729
|
-
|
|
3730
|
-
|
|
3828
|
+
ManyToOne27(() => User, (user) => user.bankDetail),
|
|
3829
|
+
JoinColumn27({ name: "user_id" })
|
|
3731
3830
|
], BankDetail.prototype, "user", 2);
|
|
3732
3831
|
__decorateClass([
|
|
3733
|
-
|
|
3832
|
+
Column29({ name: "name", type: "varchar", nullable: true })
|
|
3734
3833
|
], BankDetail.prototype, "name", 2);
|
|
3735
3834
|
__decorateClass([
|
|
3736
|
-
|
|
3835
|
+
Column29({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
3737
3836
|
], BankDetail.prototype, "mobile", 2);
|
|
3738
3837
|
__decorateClass([
|
|
3739
|
-
|
|
3838
|
+
Column29({ name: "email", type: "varchar", unique: true })
|
|
3740
3839
|
], BankDetail.prototype, "email", 2);
|
|
3741
3840
|
__decorateClass([
|
|
3742
|
-
|
|
3841
|
+
Column29({ name: "address", type: "varchar", nullable: true })
|
|
3743
3842
|
], BankDetail.prototype, "address", 2);
|
|
3744
3843
|
__decorateClass([
|
|
3745
|
-
|
|
3844
|
+
Column29({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
3746
3845
|
], BankDetail.prototype, "accountNumber", 2);
|
|
3747
3846
|
__decorateClass([
|
|
3748
|
-
|
|
3847
|
+
Column29({ name: "bank_name", type: "varchar", nullable: true })
|
|
3749
3848
|
], BankDetail.prototype, "bankName", 2);
|
|
3750
3849
|
__decorateClass([
|
|
3751
|
-
|
|
3850
|
+
Column29({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
3752
3851
|
], BankDetail.prototype, "ifscCode", 2);
|
|
3753
3852
|
__decorateClass([
|
|
3754
|
-
|
|
3853
|
+
Column29({ name: "branch_name", type: "varchar", nullable: true })
|
|
3755
3854
|
], BankDetail.prototype, "branchName", 2);
|
|
3756
3855
|
__decorateClass([
|
|
3757
|
-
|
|
3856
|
+
Column29({ name: "routing_no", type: "varchar", nullable: true })
|
|
3758
3857
|
], BankDetail.prototype, "routingNo", 2);
|
|
3759
3858
|
__decorateClass([
|
|
3760
|
-
|
|
3859
|
+
Column29({ name: "aba_no", type: "varchar", nullable: true })
|
|
3761
3860
|
], BankDetail.prototype, "abaNumber", 2);
|
|
3762
3861
|
__decorateClass([
|
|
3763
|
-
|
|
3862
|
+
Column29({ name: "iban", type: "varchar", nullable: true })
|
|
3764
3863
|
], BankDetail.prototype, "iban", 2);
|
|
3765
3864
|
__decorateClass([
|
|
3766
|
-
|
|
3865
|
+
Column29({
|
|
3767
3866
|
name: "account_type",
|
|
3768
3867
|
type: "enum",
|
|
3769
3868
|
enum: BankAccountTypeEnum,
|
|
@@ -3771,7 +3870,7 @@ __decorateClass([
|
|
|
3771
3870
|
})
|
|
3772
3871
|
], BankDetail.prototype, "accountType", 2);
|
|
3773
3872
|
__decorateClass([
|
|
3774
|
-
|
|
3873
|
+
Column29({
|
|
3775
3874
|
name: "account_scope",
|
|
3776
3875
|
type: "enum",
|
|
3777
3876
|
enum: BankAccountScopeEnum,
|
|
@@ -3779,263 +3878,263 @@ __decorateClass([
|
|
|
3779
3878
|
})
|
|
3780
3879
|
], BankDetail.prototype, "accountScope", 2);
|
|
3781
3880
|
BankDetail = __decorateClass([
|
|
3782
|
-
|
|
3881
|
+
Entity28("bank_details")
|
|
3783
3882
|
], BankDetail);
|
|
3784
3883
|
|
|
3785
3884
|
// src/entities/system-preference.entity.ts
|
|
3786
3885
|
import {
|
|
3787
|
-
Entity as
|
|
3788
|
-
Column as
|
|
3789
|
-
Index as
|
|
3790
|
-
ManyToOne as
|
|
3791
|
-
JoinColumn as
|
|
3886
|
+
Entity as Entity29,
|
|
3887
|
+
Column as Column30,
|
|
3888
|
+
Index as Index23,
|
|
3889
|
+
ManyToOne as ManyToOne28,
|
|
3890
|
+
JoinColumn as JoinColumn28
|
|
3792
3891
|
} from "typeorm";
|
|
3793
3892
|
var SystemPreference = class extends BaseEntity {
|
|
3794
3893
|
};
|
|
3795
3894
|
// individual index to find system preference by user
|
|
3796
3895
|
__decorateClass([
|
|
3797
|
-
|
|
3798
|
-
|
|
3896
|
+
Column30({ name: "user_id", type: "integer", nullable: true }),
|
|
3897
|
+
Index23()
|
|
3799
3898
|
], SystemPreference.prototype, "userId", 2);
|
|
3800
3899
|
__decorateClass([
|
|
3801
|
-
|
|
3802
|
-
|
|
3900
|
+
ManyToOne28(() => User, (user) => user.systemPreference),
|
|
3901
|
+
JoinColumn28({ name: "user_id" })
|
|
3803
3902
|
], SystemPreference.prototype, "user", 2);
|
|
3804
3903
|
__decorateClass([
|
|
3805
|
-
|
|
3904
|
+
Column30({ name: "key", type: "varchar", nullable: false })
|
|
3806
3905
|
], SystemPreference.prototype, "key", 2);
|
|
3807
3906
|
__decorateClass([
|
|
3808
|
-
|
|
3907
|
+
Column30({ name: "value", type: "boolean", default: false })
|
|
3809
3908
|
], SystemPreference.prototype, "value", 2);
|
|
3810
3909
|
SystemPreference = __decorateClass([
|
|
3811
|
-
|
|
3910
|
+
Entity29("system_preferences")
|
|
3812
3911
|
], SystemPreference);
|
|
3813
3912
|
|
|
3814
3913
|
// src/entities/freelancer-experience.entity.ts
|
|
3815
3914
|
import {
|
|
3816
|
-
Entity as
|
|
3817
|
-
Column as
|
|
3818
|
-
Index as
|
|
3819
|
-
ManyToOne as
|
|
3820
|
-
JoinColumn as
|
|
3915
|
+
Entity as Entity30,
|
|
3916
|
+
Column as Column31,
|
|
3917
|
+
Index as Index24,
|
|
3918
|
+
ManyToOne as ManyToOne29,
|
|
3919
|
+
JoinColumn as JoinColumn29
|
|
3821
3920
|
} from "typeorm";
|
|
3822
3921
|
var FreelancerExperience = class extends BaseEntity {
|
|
3823
3922
|
};
|
|
3824
3923
|
// individual index to find experence by user
|
|
3825
3924
|
__decorateClass([
|
|
3826
|
-
|
|
3827
|
-
|
|
3925
|
+
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
3926
|
+
Index24()
|
|
3828
3927
|
], FreelancerExperience.prototype, "userId", 2);
|
|
3829
3928
|
__decorateClass([
|
|
3830
|
-
|
|
3831
|
-
|
|
3929
|
+
ManyToOne29(() => User, (user) => user.freelancerExperience),
|
|
3930
|
+
JoinColumn29({ name: "user_id" })
|
|
3832
3931
|
], FreelancerExperience.prototype, "user", 2);
|
|
3833
3932
|
__decorateClass([
|
|
3834
|
-
|
|
3933
|
+
Column31({ name: "company_name", type: "varchar", nullable: true })
|
|
3835
3934
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
3836
3935
|
__decorateClass([
|
|
3837
|
-
|
|
3936
|
+
Column31({ name: "designation", type: "varchar", nullable: true })
|
|
3838
3937
|
], FreelancerExperience.prototype, "designation", 2);
|
|
3839
3938
|
__decorateClass([
|
|
3840
|
-
|
|
3939
|
+
Column31({ name: "job_duration", type: "varchar", nullable: true })
|
|
3841
3940
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
3842
3941
|
__decorateClass([
|
|
3843
|
-
|
|
3942
|
+
Column31({ name: "description", type: "varchar", nullable: true })
|
|
3844
3943
|
], FreelancerExperience.prototype, "description", 2);
|
|
3845
3944
|
FreelancerExperience = __decorateClass([
|
|
3846
|
-
|
|
3945
|
+
Entity30("freelancer_experiences")
|
|
3847
3946
|
], FreelancerExperience);
|
|
3848
3947
|
|
|
3849
3948
|
// src/entities/freelancer-education.entity.ts
|
|
3850
3949
|
import {
|
|
3851
|
-
Entity as
|
|
3852
|
-
Column as
|
|
3853
|
-
Index as
|
|
3854
|
-
ManyToOne as
|
|
3855
|
-
JoinColumn as
|
|
3950
|
+
Entity as Entity31,
|
|
3951
|
+
Column as Column32,
|
|
3952
|
+
Index as Index25,
|
|
3953
|
+
ManyToOne as ManyToOne30,
|
|
3954
|
+
JoinColumn as JoinColumn30
|
|
3856
3955
|
} from "typeorm";
|
|
3857
3956
|
var FreelancerEducation = class extends BaseEntity {
|
|
3858
3957
|
};
|
|
3859
3958
|
// individual index to find education by user
|
|
3860
3959
|
__decorateClass([
|
|
3861
|
-
|
|
3862
|
-
|
|
3960
|
+
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
3961
|
+
Index25()
|
|
3863
3962
|
], FreelancerEducation.prototype, "userId", 2);
|
|
3864
3963
|
__decorateClass([
|
|
3865
|
-
|
|
3866
|
-
|
|
3964
|
+
ManyToOne30(() => User, (user) => user.freelancerEducation),
|
|
3965
|
+
JoinColumn30({ name: "user_id" })
|
|
3867
3966
|
], FreelancerEducation.prototype, "user", 2);
|
|
3868
3967
|
__decorateClass([
|
|
3869
|
-
|
|
3968
|
+
Column32({ name: "degree", type: "varchar", nullable: true })
|
|
3870
3969
|
], FreelancerEducation.prototype, "degree", 2);
|
|
3871
3970
|
__decorateClass([
|
|
3872
|
-
|
|
3971
|
+
Column32({ name: "university", type: "varchar", nullable: true })
|
|
3873
3972
|
], FreelancerEducation.prototype, "university", 2);
|
|
3874
3973
|
__decorateClass([
|
|
3875
|
-
|
|
3974
|
+
Column32({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
3876
3975
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
3877
3976
|
FreelancerEducation = __decorateClass([
|
|
3878
|
-
|
|
3977
|
+
Entity31("freelancer_educations")
|
|
3879
3978
|
], FreelancerEducation);
|
|
3880
3979
|
|
|
3881
3980
|
// src/entities/freelancer-project.entity.ts
|
|
3882
3981
|
import {
|
|
3883
|
-
Entity as
|
|
3884
|
-
Column as
|
|
3885
|
-
Index as
|
|
3886
|
-
ManyToOne as
|
|
3887
|
-
JoinColumn as
|
|
3982
|
+
Entity as Entity32,
|
|
3983
|
+
Column as Column33,
|
|
3984
|
+
Index as Index26,
|
|
3985
|
+
ManyToOne as ManyToOne31,
|
|
3986
|
+
JoinColumn as JoinColumn31
|
|
3888
3987
|
} from "typeorm";
|
|
3889
3988
|
var FreelancerProject = class extends BaseEntity {
|
|
3890
3989
|
};
|
|
3891
3990
|
// individual index to find project by user
|
|
3892
3991
|
__decorateClass([
|
|
3893
|
-
|
|
3894
|
-
|
|
3992
|
+
Column33({ name: "user_id", type: "integer", nullable: true }),
|
|
3993
|
+
Index26()
|
|
3895
3994
|
], FreelancerProject.prototype, "userId", 2);
|
|
3896
3995
|
__decorateClass([
|
|
3897
|
-
|
|
3898
|
-
|
|
3996
|
+
ManyToOne31(() => User, (user) => user.freelancerProject),
|
|
3997
|
+
JoinColumn31({ name: "user_id" })
|
|
3899
3998
|
], FreelancerProject.prototype, "user", 2);
|
|
3900
3999
|
__decorateClass([
|
|
3901
|
-
|
|
4000
|
+
Column33({ name: "project_name", type: "varchar", nullable: true })
|
|
3902
4001
|
], FreelancerProject.prototype, "projectName", 2);
|
|
3903
4002
|
__decorateClass([
|
|
3904
|
-
|
|
4003
|
+
Column33({ name: "start_date", type: "date", nullable: true })
|
|
3905
4004
|
], FreelancerProject.prototype, "startDate", 2);
|
|
3906
4005
|
__decorateClass([
|
|
3907
|
-
|
|
4006
|
+
Column33({ name: "end_date", type: "date", nullable: true })
|
|
3908
4007
|
], FreelancerProject.prototype, "endDate", 2);
|
|
3909
4008
|
__decorateClass([
|
|
3910
|
-
|
|
4009
|
+
Column33({ name: "client_name", type: "varchar", nullable: true })
|
|
3911
4010
|
], FreelancerProject.prototype, "clientName", 2);
|
|
3912
4011
|
__decorateClass([
|
|
3913
|
-
|
|
4012
|
+
Column33({ name: "git_link", type: "varchar", nullable: true })
|
|
3914
4013
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
3915
4014
|
__decorateClass([
|
|
3916
|
-
|
|
4015
|
+
Column33({ name: "description", type: "varchar", nullable: true })
|
|
3917
4016
|
], FreelancerProject.prototype, "description", 2);
|
|
3918
4017
|
FreelancerProject = __decorateClass([
|
|
3919
|
-
|
|
4018
|
+
Entity32("freelancer_projects")
|
|
3920
4019
|
], FreelancerProject);
|
|
3921
4020
|
|
|
3922
4021
|
// src/entities/freelancer-casestudy.entity.ts
|
|
3923
4022
|
import {
|
|
3924
|
-
Entity as
|
|
3925
|
-
Column as
|
|
3926
|
-
Index as
|
|
3927
|
-
ManyToOne as
|
|
3928
|
-
JoinColumn as
|
|
4023
|
+
Entity as Entity33,
|
|
4024
|
+
Column as Column34,
|
|
4025
|
+
Index as Index27,
|
|
4026
|
+
ManyToOne as ManyToOne32,
|
|
4027
|
+
JoinColumn as JoinColumn32
|
|
3929
4028
|
} from "typeorm";
|
|
3930
4029
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
3931
4030
|
};
|
|
3932
4031
|
// individual index to find case study by user
|
|
3933
4032
|
__decorateClass([
|
|
3934
|
-
|
|
3935
|
-
|
|
4033
|
+
Column34({ name: "user_id", type: "integer", nullable: true }),
|
|
4034
|
+
Index27()
|
|
3936
4035
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
3937
4036
|
__decorateClass([
|
|
3938
|
-
|
|
3939
|
-
|
|
4037
|
+
ManyToOne32(() => User, (user) => user.freelancerCaseStudy),
|
|
4038
|
+
JoinColumn32({ name: "user_id" })
|
|
3940
4039
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
3941
4040
|
__decorateClass([
|
|
3942
|
-
|
|
4041
|
+
Column34({ name: "project_name", type: "varchar", nullable: true })
|
|
3943
4042
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
3944
4043
|
__decorateClass([
|
|
3945
|
-
|
|
4044
|
+
Column34({ name: "case_study_link", type: "varchar", nullable: true })
|
|
3946
4045
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
3947
4046
|
__decorateClass([
|
|
3948
|
-
|
|
4047
|
+
Column34({ name: "description", type: "varchar", nullable: true })
|
|
3949
4048
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
3950
4049
|
FreelancerCaseStudy = __decorateClass([
|
|
3951
|
-
|
|
4050
|
+
Entity33("freelancer_case_studies")
|
|
3952
4051
|
], FreelancerCaseStudy);
|
|
3953
4052
|
|
|
3954
4053
|
// src/entities/freelancer-skill.entity.ts
|
|
3955
4054
|
import {
|
|
3956
|
-
Entity as
|
|
3957
|
-
Column as
|
|
3958
|
-
Index as
|
|
3959
|
-
ManyToOne as
|
|
3960
|
-
JoinColumn as
|
|
4055
|
+
Entity as Entity34,
|
|
4056
|
+
Column as Column35,
|
|
4057
|
+
Index as Index28,
|
|
4058
|
+
ManyToOne as ManyToOne33,
|
|
4059
|
+
JoinColumn as JoinColumn33
|
|
3961
4060
|
} from "typeorm";
|
|
3962
4061
|
var FreelancerSkill = class extends BaseEntity {
|
|
3963
4062
|
};
|
|
3964
4063
|
// individual index to find core skills by user
|
|
3965
4064
|
__decorateClass([
|
|
3966
|
-
|
|
3967
|
-
|
|
4065
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
4066
|
+
Index28()
|
|
3968
4067
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3969
4068
|
__decorateClass([
|
|
3970
|
-
|
|
3971
|
-
|
|
4069
|
+
ManyToOne33(() => User, (user) => user.freelancerSkills),
|
|
4070
|
+
JoinColumn33({ name: "user_id" })
|
|
3972
4071
|
], FreelancerSkill.prototype, "user", 2);
|
|
3973
4072
|
__decorateClass([
|
|
3974
|
-
|
|
4073
|
+
Column35({ name: "skill_name", type: "varchar", nullable: true })
|
|
3975
4074
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
3976
4075
|
FreelancerSkill = __decorateClass([
|
|
3977
|
-
|
|
4076
|
+
Entity34("freelancer_skills")
|
|
3978
4077
|
], FreelancerSkill);
|
|
3979
4078
|
|
|
3980
4079
|
// src/entities/freelancer-tool.entity.ts
|
|
3981
4080
|
import {
|
|
3982
|
-
Entity as
|
|
3983
|
-
Column as
|
|
3984
|
-
Index as
|
|
3985
|
-
ManyToOne as
|
|
3986
|
-
JoinColumn as
|
|
4081
|
+
Entity as Entity35,
|
|
4082
|
+
Column as Column36,
|
|
4083
|
+
Index as Index29,
|
|
4084
|
+
ManyToOne as ManyToOne34,
|
|
4085
|
+
JoinColumn as JoinColumn34
|
|
3987
4086
|
} from "typeorm";
|
|
3988
4087
|
var FreelancerTool = class extends BaseEntity {
|
|
3989
4088
|
};
|
|
3990
4089
|
// individual index to find tool by user
|
|
3991
4090
|
__decorateClass([
|
|
3992
|
-
|
|
3993
|
-
|
|
4091
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
4092
|
+
Index29()
|
|
3994
4093
|
], FreelancerTool.prototype, "userId", 2);
|
|
3995
4094
|
__decorateClass([
|
|
3996
|
-
|
|
3997
|
-
|
|
4095
|
+
ManyToOne34(() => User, (user) => user.freelancerTool),
|
|
4096
|
+
JoinColumn34({ name: "user_id" })
|
|
3998
4097
|
], FreelancerTool.prototype, "user", 2);
|
|
3999
4098
|
__decorateClass([
|
|
4000
|
-
|
|
4099
|
+
Column36({ name: "tool_name", type: "varchar", nullable: true })
|
|
4001
4100
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4002
4101
|
FreelancerTool = __decorateClass([
|
|
4003
|
-
|
|
4102
|
+
Entity35("freelancer_tools")
|
|
4004
4103
|
], FreelancerTool);
|
|
4005
4104
|
|
|
4006
4105
|
// src/entities/freelancer-framework.entity.ts
|
|
4007
4106
|
import {
|
|
4008
|
-
Entity as
|
|
4009
|
-
Column as
|
|
4010
|
-
Index as
|
|
4011
|
-
ManyToOne as
|
|
4012
|
-
JoinColumn as
|
|
4107
|
+
Entity as Entity36,
|
|
4108
|
+
Column as Column37,
|
|
4109
|
+
Index as Index30,
|
|
4110
|
+
ManyToOne as ManyToOne35,
|
|
4111
|
+
JoinColumn as JoinColumn35
|
|
4013
4112
|
} from "typeorm";
|
|
4014
4113
|
var FreelancerFramework = class extends BaseEntity {
|
|
4015
4114
|
};
|
|
4016
4115
|
// individual index to find framework by user
|
|
4017
4116
|
__decorateClass([
|
|
4018
|
-
|
|
4019
|
-
|
|
4117
|
+
Column37({ name: "user_id", type: "integer", nullable: true }),
|
|
4118
|
+
Index30()
|
|
4020
4119
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4021
4120
|
__decorateClass([
|
|
4022
|
-
|
|
4023
|
-
|
|
4121
|
+
ManyToOne35(() => User, (user) => user.freelancerFramework),
|
|
4122
|
+
JoinColumn35({ name: "user_id" })
|
|
4024
4123
|
], FreelancerFramework.prototype, "user", 2);
|
|
4025
4124
|
__decorateClass([
|
|
4026
|
-
|
|
4125
|
+
Column37({ name: "framework_name", type: "varchar", nullable: true })
|
|
4027
4126
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4028
4127
|
FreelancerFramework = __decorateClass([
|
|
4029
|
-
|
|
4128
|
+
Entity36("freelancer_frameworks")
|
|
4030
4129
|
], FreelancerFramework);
|
|
4031
4130
|
|
|
4032
4131
|
// src/entities/freelancer-assessment.entity.ts
|
|
4033
4132
|
import {
|
|
4034
|
-
Entity as
|
|
4035
|
-
Column as
|
|
4036
|
-
Index as
|
|
4037
|
-
ManyToOne as
|
|
4038
|
-
JoinColumn as
|
|
4133
|
+
Entity as Entity37,
|
|
4134
|
+
Column as Column38,
|
|
4135
|
+
Index as Index31,
|
|
4136
|
+
ManyToOne as ManyToOne36,
|
|
4137
|
+
JoinColumn as JoinColumn36
|
|
4039
4138
|
} from "typeorm";
|
|
4040
4139
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4041
4140
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -4052,30 +4151,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4052
4151
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4053
4152
|
};
|
|
4054
4153
|
__decorateClass([
|
|
4055
|
-
|
|
4056
|
-
|
|
4154
|
+
Column38({ name: "user_id", type: "integer", nullable: true }),
|
|
4155
|
+
Index31()
|
|
4057
4156
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4058
4157
|
__decorateClass([
|
|
4059
|
-
|
|
4060
|
-
|
|
4158
|
+
ManyToOne36(() => User, (user) => user.assessments),
|
|
4159
|
+
JoinColumn36({ name: "user_id" })
|
|
4061
4160
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4062
4161
|
__decorateClass([
|
|
4063
|
-
|
|
4162
|
+
Column38({ name: "interview_id", type: "varchar", nullable: true })
|
|
4064
4163
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4065
4164
|
__decorateClass([
|
|
4066
|
-
|
|
4165
|
+
Column38({ name: "interview_link", type: "text", nullable: true })
|
|
4067
4166
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4068
4167
|
__decorateClass([
|
|
4069
|
-
|
|
4168
|
+
Column38({ name: "recording_link", type: "text", nullable: true })
|
|
4070
4169
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4071
4170
|
__decorateClass([
|
|
4072
|
-
|
|
4171
|
+
Column38({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4073
4172
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4074
4173
|
__decorateClass([
|
|
4075
|
-
|
|
4174
|
+
Column38({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4076
4175
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4077
4176
|
__decorateClass([
|
|
4078
|
-
|
|
4177
|
+
Column38({
|
|
4079
4178
|
name: "status",
|
|
4080
4179
|
type: "enum",
|
|
4081
4180
|
enum: AssessmentStatusEnum,
|
|
@@ -4083,11 +4182,11 @@ __decorateClass([
|
|
|
4083
4182
|
})
|
|
4084
4183
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4085
4184
|
FreelancerAssessment = __decorateClass([
|
|
4086
|
-
|
|
4185
|
+
Entity37("freelancer_assessments")
|
|
4087
4186
|
], FreelancerAssessment);
|
|
4088
4187
|
|
|
4089
4188
|
// src/entities/freelancer-declaration.entity.ts
|
|
4090
|
-
import { Entity as
|
|
4189
|
+
import { Entity as Entity38, Column as Column39, Index as Index32, ManyToOne as ManyToOne37, JoinColumn as JoinColumn37 } from "typeorm";
|
|
4091
4190
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4092
4191
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4093
4192
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4099,15 +4198,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4099
4198
|
};
|
|
4100
4199
|
// individual index to find declaration by user
|
|
4101
4200
|
__decorateClass([
|
|
4102
|
-
|
|
4103
|
-
|
|
4201
|
+
Column39({ name: "user_id", type: "integer", nullable: true }),
|
|
4202
|
+
Index32()
|
|
4104
4203
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4105
4204
|
__decorateClass([
|
|
4106
|
-
|
|
4107
|
-
|
|
4205
|
+
ManyToOne37(() => User, (user) => user.freelancerDeclaration),
|
|
4206
|
+
JoinColumn37({ name: "user_id" })
|
|
4108
4207
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4109
4208
|
__decorateClass([
|
|
4110
|
-
|
|
4209
|
+
Column39({
|
|
4111
4210
|
name: "document_type",
|
|
4112
4211
|
type: "enum",
|
|
4113
4212
|
enum: DocumentType,
|
|
@@ -4115,175 +4214,175 @@ __decorateClass([
|
|
|
4115
4214
|
})
|
|
4116
4215
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
4117
4216
|
__decorateClass([
|
|
4118
|
-
|
|
4217
|
+
Column39({ name: "front_document_url", type: "varchar", nullable: true })
|
|
4119
4218
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
4120
4219
|
__decorateClass([
|
|
4121
|
-
|
|
4220
|
+
Column39({ name: "back_document_url", type: "varchar", nullable: true })
|
|
4122
4221
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
4123
4222
|
__decorateClass([
|
|
4124
|
-
|
|
4223
|
+
Column39({ name: "declaration_accepted", type: "boolean", default: false })
|
|
4125
4224
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
4126
4225
|
__decorateClass([
|
|
4127
|
-
|
|
4226
|
+
Column39({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
4128
4227
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
4129
4228
|
FreelancerDeclaration = __decorateClass([
|
|
4130
|
-
|
|
4229
|
+
Entity38("freelancer_declaration")
|
|
4131
4230
|
], FreelancerDeclaration);
|
|
4132
4231
|
|
|
4133
4232
|
// src/entities/company-members-roles.entity.ts
|
|
4134
4233
|
import {
|
|
4135
|
-
Column as
|
|
4136
|
-
Entity as
|
|
4137
|
-
ManyToOne as
|
|
4138
|
-
JoinColumn as
|
|
4139
|
-
Index as
|
|
4234
|
+
Column as Column43,
|
|
4235
|
+
Entity as Entity42,
|
|
4236
|
+
ManyToOne as ManyToOne40,
|
|
4237
|
+
JoinColumn as JoinColumn40,
|
|
4238
|
+
Index as Index36
|
|
4140
4239
|
} from "typeorm";
|
|
4141
4240
|
|
|
4142
4241
|
// src/entities/company-role.entity.ts
|
|
4143
4242
|
import {
|
|
4144
|
-
Column as
|
|
4145
|
-
Entity as
|
|
4146
|
-
Index as
|
|
4147
|
-
JoinColumn as
|
|
4148
|
-
ManyToOne as
|
|
4243
|
+
Column as Column42,
|
|
4244
|
+
Entity as Entity41,
|
|
4245
|
+
Index as Index35,
|
|
4246
|
+
JoinColumn as JoinColumn39,
|
|
4247
|
+
ManyToOne as ManyToOne39,
|
|
4149
4248
|
OneToMany as OneToMany12
|
|
4150
4249
|
} from "typeorm";
|
|
4151
4250
|
|
|
4152
4251
|
// src/entities/company-role-permission.entity.ts
|
|
4153
4252
|
import {
|
|
4154
|
-
Column as
|
|
4155
|
-
Entity as
|
|
4156
|
-
ManyToOne as
|
|
4157
|
-
JoinColumn as
|
|
4158
|
-
Index as
|
|
4253
|
+
Column as Column41,
|
|
4254
|
+
Entity as Entity40,
|
|
4255
|
+
ManyToOne as ManyToOne38,
|
|
4256
|
+
JoinColumn as JoinColumn38,
|
|
4257
|
+
Index as Index34
|
|
4159
4258
|
} from "typeorm";
|
|
4160
4259
|
|
|
4161
4260
|
// src/entities/permission.entity.ts
|
|
4162
|
-
import { Column as
|
|
4261
|
+
import { Column as Column40, Entity as Entity39, Index as Index33 } from "typeorm";
|
|
4163
4262
|
var Permission = class extends BaseEntity {
|
|
4164
4263
|
};
|
|
4165
4264
|
__decorateClass([
|
|
4166
|
-
|
|
4265
|
+
Column40({ name: "name", type: "varchar", nullable: true })
|
|
4167
4266
|
], Permission.prototype, "name", 2);
|
|
4168
4267
|
__decorateClass([
|
|
4169
|
-
|
|
4170
|
-
|
|
4268
|
+
Column40({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4269
|
+
Index33()
|
|
4171
4270
|
], Permission.prototype, "slug", 2);
|
|
4172
4271
|
__decorateClass([
|
|
4173
|
-
|
|
4272
|
+
Column40({ name: "description", type: "text", nullable: true })
|
|
4174
4273
|
], Permission.prototype, "description", 2);
|
|
4175
4274
|
__decorateClass([
|
|
4176
|
-
|
|
4275
|
+
Column40({ name: "is_active", type: "boolean", default: true })
|
|
4177
4276
|
], Permission.prototype, "isActive", 2);
|
|
4178
4277
|
Permission = __decorateClass([
|
|
4179
|
-
|
|
4278
|
+
Entity39("permissions")
|
|
4180
4279
|
], Permission);
|
|
4181
4280
|
|
|
4182
4281
|
// src/entities/company-role-permission.entity.ts
|
|
4183
4282
|
var CompanyRolePermission = class extends BaseEntity {
|
|
4184
4283
|
};
|
|
4185
4284
|
__decorateClass([
|
|
4186
|
-
|
|
4187
|
-
|
|
4285
|
+
Column41({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4286
|
+
Index34()
|
|
4188
4287
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
4189
4288
|
__decorateClass([
|
|
4190
|
-
|
|
4289
|
+
ManyToOne38(() => CompanyRole, (role) => role.rolePermissions, {
|
|
4191
4290
|
onDelete: "CASCADE"
|
|
4192
4291
|
}),
|
|
4193
|
-
|
|
4292
|
+
JoinColumn38({ name: "company_role_id" })
|
|
4194
4293
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
4195
4294
|
__decorateClass([
|
|
4196
|
-
|
|
4197
|
-
|
|
4295
|
+
Column41({ name: "permission_id", type: "integer" }),
|
|
4296
|
+
Index34()
|
|
4198
4297
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
4199
4298
|
__decorateClass([
|
|
4200
|
-
|
|
4201
|
-
|
|
4299
|
+
ManyToOne38(() => Permission, { onDelete: "CASCADE" }),
|
|
4300
|
+
JoinColumn38({ name: "permission_id" })
|
|
4202
4301
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
4203
4302
|
__decorateClass([
|
|
4204
|
-
|
|
4303
|
+
Column41({ name: "assigned_by", type: "integer", nullable: true })
|
|
4205
4304
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
4206
4305
|
CompanyRolePermission = __decorateClass([
|
|
4207
|
-
|
|
4306
|
+
Entity40("company_role_permissions")
|
|
4208
4307
|
], CompanyRolePermission);
|
|
4209
4308
|
|
|
4210
4309
|
// src/entities/company-role.entity.ts
|
|
4211
4310
|
var CompanyRole = class extends BaseEntity {
|
|
4212
4311
|
};
|
|
4213
4312
|
__decorateClass([
|
|
4214
|
-
|
|
4215
|
-
|
|
4313
|
+
Column42({ name: "user_id", type: "integer", nullable: true }),
|
|
4314
|
+
Index35()
|
|
4216
4315
|
], CompanyRole.prototype, "userId", 2);
|
|
4217
4316
|
__decorateClass([
|
|
4218
|
-
|
|
4219
|
-
|
|
4317
|
+
ManyToOne39(() => User, (user) => user.otps),
|
|
4318
|
+
JoinColumn39({ name: "user_id" })
|
|
4220
4319
|
], CompanyRole.prototype, "user", 2);
|
|
4221
4320
|
__decorateClass([
|
|
4222
|
-
|
|
4321
|
+
Column42({ name: "name", type: "varchar" })
|
|
4223
4322
|
], CompanyRole.prototype, "name", 2);
|
|
4224
4323
|
__decorateClass([
|
|
4225
|
-
|
|
4226
|
-
|
|
4324
|
+
Column42({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4325
|
+
Index35()
|
|
4227
4326
|
], CompanyRole.prototype, "slug", 2);
|
|
4228
4327
|
__decorateClass([
|
|
4229
|
-
|
|
4328
|
+
Column42({ name: "description", type: "text", nullable: true })
|
|
4230
4329
|
], CompanyRole.prototype, "description", 2);
|
|
4231
4330
|
__decorateClass([
|
|
4232
|
-
|
|
4331
|
+
Column42({ name: "is_active", type: "boolean", default: true })
|
|
4233
4332
|
], CompanyRole.prototype, "isActive", 2);
|
|
4234
4333
|
__decorateClass([
|
|
4235
4334
|
OneToMany12(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4236
4335
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4237
4336
|
CompanyRole = __decorateClass([
|
|
4238
|
-
|
|
4337
|
+
Entity41("company_roles")
|
|
4239
4338
|
], CompanyRole);
|
|
4240
4339
|
|
|
4241
4340
|
// src/entities/company-members-roles.entity.ts
|
|
4242
4341
|
var CompanyMemberRole = class extends BaseEntity {
|
|
4243
4342
|
};
|
|
4244
4343
|
__decorateClass([
|
|
4245
|
-
|
|
4246
|
-
|
|
4344
|
+
Column43({ name: "user_id", type: "integer", nullable: true }),
|
|
4345
|
+
Index36()
|
|
4247
4346
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
4248
4347
|
__decorateClass([
|
|
4249
|
-
|
|
4250
|
-
|
|
4348
|
+
ManyToOne40(() => User),
|
|
4349
|
+
JoinColumn40({ name: "user_id" })
|
|
4251
4350
|
], CompanyMemberRole.prototype, "user", 2);
|
|
4252
4351
|
__decorateClass([
|
|
4253
|
-
|
|
4254
|
-
|
|
4352
|
+
ManyToOne40(() => CompanyRole),
|
|
4353
|
+
JoinColumn40({ name: "company_role_id" })
|
|
4255
4354
|
], CompanyMemberRole.prototype, "role", 2);
|
|
4256
4355
|
__decorateClass([
|
|
4257
|
-
|
|
4258
|
-
|
|
4356
|
+
Column43({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4357
|
+
Index36()
|
|
4259
4358
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
4260
4359
|
__decorateClass([
|
|
4261
|
-
|
|
4360
|
+
Column43({ name: "assigned_by", type: "integer", nullable: true })
|
|
4262
4361
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
4263
4362
|
CompanyMemberRole = __decorateClass([
|
|
4264
|
-
|
|
4363
|
+
Entity42("company_member_roles")
|
|
4265
4364
|
], CompanyMemberRole);
|
|
4266
4365
|
|
|
4267
4366
|
// src/entities/assessment-answer.entity.ts
|
|
4268
4367
|
import {
|
|
4269
|
-
Entity as
|
|
4270
|
-
Column as
|
|
4271
|
-
ManyToOne as
|
|
4272
|
-
Index as
|
|
4273
|
-
JoinColumn as
|
|
4368
|
+
Entity as Entity45,
|
|
4369
|
+
Column as Column46,
|
|
4370
|
+
ManyToOne as ManyToOne42,
|
|
4371
|
+
Index as Index38,
|
|
4372
|
+
JoinColumn as JoinColumn42
|
|
4274
4373
|
} from "typeorm";
|
|
4275
4374
|
|
|
4276
4375
|
// src/entities/assessment-question.entity.ts
|
|
4277
|
-
import { Entity as
|
|
4376
|
+
import { Entity as Entity44, Column as Column45, OneToMany as OneToMany14 } from "typeorm";
|
|
4278
4377
|
|
|
4279
4378
|
// src/entities/assessment-question-option.entity.ts
|
|
4280
4379
|
import {
|
|
4281
|
-
Entity as
|
|
4282
|
-
Column as
|
|
4380
|
+
Entity as Entity43,
|
|
4381
|
+
Column as Column44,
|
|
4283
4382
|
OneToMany as OneToMany13,
|
|
4284
|
-
ManyToOne as
|
|
4285
|
-
Index as
|
|
4286
|
-
JoinColumn as
|
|
4383
|
+
ManyToOne as ManyToOne41,
|
|
4384
|
+
Index as Index37,
|
|
4385
|
+
JoinColumn as JoinColumn41
|
|
4287
4386
|
} from "typeorm";
|
|
4288
4387
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
4289
4388
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -4294,21 +4393,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
4294
4393
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
4295
4394
|
};
|
|
4296
4395
|
__decorateClass([
|
|
4297
|
-
|
|
4298
|
-
|
|
4396
|
+
Column44({ name: "question_id", type: "integer", nullable: true }),
|
|
4397
|
+
Index37()
|
|
4299
4398
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
4300
4399
|
__decorateClass([
|
|
4301
|
-
|
|
4400
|
+
ManyToOne41(
|
|
4302
4401
|
() => AssessmetQuestion,
|
|
4303
4402
|
(assessmentQuestion) => assessmentQuestion.options
|
|
4304
4403
|
),
|
|
4305
|
-
|
|
4404
|
+
JoinColumn41({ name: "question_id" })
|
|
4306
4405
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
4307
4406
|
__decorateClass([
|
|
4308
|
-
|
|
4407
|
+
Column44({ name: "text", type: "varchar", nullable: true })
|
|
4309
4408
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
4310
4409
|
__decorateClass([
|
|
4311
|
-
|
|
4410
|
+
Column44({
|
|
4312
4411
|
name: "answer_type",
|
|
4313
4412
|
type: "enum",
|
|
4314
4413
|
enum: AnswerTypeEnum,
|
|
@@ -4316,13 +4415,13 @@ __decorateClass([
|
|
|
4316
4415
|
})
|
|
4317
4416
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
4318
4417
|
__decorateClass([
|
|
4319
|
-
|
|
4418
|
+
Column44({ name: "is_active", type: "boolean", default: true })
|
|
4320
4419
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
4321
4420
|
__decorateClass([
|
|
4322
4421
|
OneToMany13(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
4323
4422
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
4324
4423
|
AssessmetQuestionOption = __decorateClass([
|
|
4325
|
-
|
|
4424
|
+
Entity43("assessment_question_options")
|
|
4326
4425
|
], AssessmetQuestionOption);
|
|
4327
4426
|
|
|
4328
4427
|
// src/entities/assessment-question.entity.ts
|
|
@@ -4334,10 +4433,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
4334
4433
|
var AssessmetQuestion = class extends BaseEntity {
|
|
4335
4434
|
};
|
|
4336
4435
|
__decorateClass([
|
|
4337
|
-
|
|
4436
|
+
Column45({ name: "text", type: "varchar", nullable: true })
|
|
4338
4437
|
], AssessmetQuestion.prototype, "text", 2);
|
|
4339
4438
|
__decorateClass([
|
|
4340
|
-
|
|
4439
|
+
Column45({
|
|
4341
4440
|
name: "question_for",
|
|
4342
4441
|
type: "enum",
|
|
4343
4442
|
enum: QuestionForEnum,
|
|
@@ -4345,7 +4444,7 @@ __decorateClass([
|
|
|
4345
4444
|
})
|
|
4346
4445
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
4347
4446
|
__decorateClass([
|
|
4348
|
-
|
|
4447
|
+
Column45({ name: "is_active", type: "boolean", default: true })
|
|
4349
4448
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
4350
4449
|
__decorateClass([
|
|
4351
4450
|
OneToMany14(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -4354,7 +4453,7 @@ __decorateClass([
|
|
|
4354
4453
|
OneToMany14(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
4355
4454
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
4356
4455
|
AssessmetQuestion = __decorateClass([
|
|
4357
|
-
|
|
4456
|
+
Entity44("assessment_questions")
|
|
4358
4457
|
], AssessmetQuestion);
|
|
4359
4458
|
|
|
4360
4459
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -4367,102 +4466,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
4367
4466
|
var AssessmentAnswer = class extends BaseEntity {
|
|
4368
4467
|
};
|
|
4369
4468
|
__decorateClass([
|
|
4370
|
-
|
|
4371
|
-
|
|
4469
|
+
Column46({ name: "user_id", type: "integer" }),
|
|
4470
|
+
Index38()
|
|
4372
4471
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
4373
4472
|
__decorateClass([
|
|
4374
|
-
|
|
4375
|
-
|
|
4473
|
+
ManyToOne42(() => User, (user) => user.assessmentAnswers),
|
|
4474
|
+
JoinColumn42({ name: "user_id" })
|
|
4376
4475
|
], AssessmentAnswer.prototype, "user", 2);
|
|
4377
4476
|
__decorateClass([
|
|
4378
|
-
|
|
4379
|
-
|
|
4477
|
+
Column46({ name: "question_id", type: "integer" }),
|
|
4478
|
+
Index38()
|
|
4380
4479
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
4381
4480
|
__decorateClass([
|
|
4382
|
-
|
|
4481
|
+
ManyToOne42(
|
|
4383
4482
|
() => AssessmetQuestion,
|
|
4384
4483
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
4385
4484
|
),
|
|
4386
|
-
|
|
4485
|
+
JoinColumn42({ name: "question_id" })
|
|
4387
4486
|
], AssessmentAnswer.prototype, "question", 2);
|
|
4388
4487
|
__decorateClass([
|
|
4389
|
-
|
|
4390
|
-
|
|
4488
|
+
Column46({ name: "selected_option_id", type: "integer" }),
|
|
4489
|
+
Index38()
|
|
4391
4490
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
4392
4491
|
__decorateClass([
|
|
4393
|
-
|
|
4492
|
+
ManyToOne42(
|
|
4394
4493
|
() => AssessmetQuestionOption,
|
|
4395
4494
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
4396
4495
|
),
|
|
4397
|
-
|
|
4496
|
+
JoinColumn42({ name: "selected_option_id" })
|
|
4398
4497
|
], AssessmentAnswer.prototype, "option", 2);
|
|
4399
4498
|
__decorateClass([
|
|
4400
|
-
|
|
4499
|
+
Column46({
|
|
4401
4500
|
name: "selected_answer_type",
|
|
4402
4501
|
type: "enum",
|
|
4403
4502
|
enum: SelectedAnswerTypeEnum
|
|
4404
4503
|
})
|
|
4405
4504
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
4406
4505
|
__decorateClass([
|
|
4407
|
-
|
|
4506
|
+
Column46({ name: "score", type: "float" })
|
|
4408
4507
|
], AssessmentAnswer.prototype, "score", 2);
|
|
4409
4508
|
AssessmentAnswer = __decorateClass([
|
|
4410
|
-
|
|
4509
|
+
Entity45("assessment_answers")
|
|
4411
4510
|
], AssessmentAnswer);
|
|
4412
4511
|
|
|
4413
4512
|
// src/entities/company-skill.entity.ts
|
|
4414
|
-
import { Entity as
|
|
4513
|
+
import { Entity as Entity46, Column as Column47, Index as Index39, ManyToOne as ManyToOne43, JoinColumn as JoinColumn43 } from "typeorm";
|
|
4415
4514
|
var CompanySkill = class extends BaseEntity {
|
|
4416
4515
|
};
|
|
4417
4516
|
// individual index to find core skills by user
|
|
4418
4517
|
__decorateClass([
|
|
4419
|
-
|
|
4420
|
-
|
|
4518
|
+
Column47({ name: "user_id", type: "integer", nullable: true }),
|
|
4519
|
+
Index39()
|
|
4421
4520
|
], CompanySkill.prototype, "userId", 2);
|
|
4422
4521
|
__decorateClass([
|
|
4423
|
-
|
|
4424
|
-
|
|
4522
|
+
ManyToOne43(() => User, (user) => user.freelancerSkills),
|
|
4523
|
+
JoinColumn43({ name: "user_id" })
|
|
4425
4524
|
], CompanySkill.prototype, "user", 2);
|
|
4426
4525
|
__decorateClass([
|
|
4427
|
-
|
|
4526
|
+
Column47({ name: "skill_name", type: "varchar", nullable: true })
|
|
4428
4527
|
], CompanySkill.prototype, "skillName", 2);
|
|
4429
4528
|
CompanySkill = __decorateClass([
|
|
4430
|
-
|
|
4529
|
+
Entity46("company_skills")
|
|
4431
4530
|
], CompanySkill);
|
|
4432
4531
|
|
|
4433
4532
|
// src/entities/admin-user-role.entity.ts
|
|
4434
|
-
import { Entity as
|
|
4533
|
+
import { Entity as Entity50, Column as Column51, ManyToOne as ManyToOne45, JoinColumn as JoinColumn45 } from "typeorm";
|
|
4435
4534
|
|
|
4436
4535
|
// src/entities/admin-role.entity.ts
|
|
4437
|
-
import { Entity as
|
|
4536
|
+
import { Entity as Entity49, Column as Column50, Index as Index42, OneToMany as OneToMany17 } from "typeorm";
|
|
4438
4537
|
|
|
4439
4538
|
// src/entities/admin-role-permission.entity.ts
|
|
4440
|
-
import { Entity as
|
|
4539
|
+
import { Entity as Entity48, Column as Column49, ManyToOne as ManyToOne44, JoinColumn as JoinColumn44 } from "typeorm";
|
|
4441
4540
|
|
|
4442
4541
|
// src/entities/admin-permission.entity.ts
|
|
4443
|
-
import { Entity as
|
|
4542
|
+
import { Entity as Entity47, Column as Column48, Index as Index40, OneToMany as OneToMany16 } from "typeorm";
|
|
4444
4543
|
var AdminPermission = class extends BaseEntity {
|
|
4445
4544
|
};
|
|
4446
4545
|
__decorateClass([
|
|
4447
|
-
|
|
4546
|
+
Column48({ name: "permission_name", type: "varchar", nullable: true })
|
|
4448
4547
|
], AdminPermission.prototype, "permissionName", 2);
|
|
4449
4548
|
__decorateClass([
|
|
4450
|
-
|
|
4549
|
+
Column48({
|
|
4451
4550
|
name: "permission_slug",
|
|
4452
4551
|
type: "varchar",
|
|
4453
4552
|
unique: true,
|
|
4454
4553
|
nullable: true
|
|
4455
4554
|
}),
|
|
4456
|
-
|
|
4555
|
+
Index40()
|
|
4457
4556
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
4458
4557
|
__decorateClass([
|
|
4459
|
-
|
|
4558
|
+
Column48({ name: "permission_description", type: "varchar", nullable: true })
|
|
4460
4559
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
4461
4560
|
__decorateClass([
|
|
4462
|
-
|
|
4561
|
+
Column48({ name: "module", type: "varchar", nullable: true })
|
|
4463
4562
|
], AdminPermission.prototype, "module", 2);
|
|
4464
4563
|
__decorateClass([
|
|
4465
|
-
|
|
4564
|
+
Column48({ name: "is_active", type: "boolean", default: true })
|
|
4466
4565
|
], AdminPermission.prototype, "isActive", 2);
|
|
4467
4566
|
__decorateClass([
|
|
4468
4567
|
OneToMany16(
|
|
@@ -4471,14 +4570,14 @@ __decorateClass([
|
|
|
4471
4570
|
)
|
|
4472
4571
|
], AdminPermission.prototype, "adminRole", 2);
|
|
4473
4572
|
AdminPermission = __decorateClass([
|
|
4474
|
-
|
|
4573
|
+
Entity47("admin_permissions")
|
|
4475
4574
|
], AdminPermission);
|
|
4476
4575
|
|
|
4477
4576
|
// src/entities/admin-role-permission.entity.ts
|
|
4478
4577
|
var AdminRolePermission = class extends BaseEntity {
|
|
4479
4578
|
};
|
|
4480
4579
|
__decorateClass([
|
|
4481
|
-
|
|
4580
|
+
Column49({
|
|
4482
4581
|
name: "role_id",
|
|
4483
4582
|
type: "int",
|
|
4484
4583
|
nullable: true,
|
|
@@ -4486,11 +4585,11 @@ __decorateClass([
|
|
|
4486
4585
|
})
|
|
4487
4586
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
4488
4587
|
__decorateClass([
|
|
4489
|
-
|
|
4490
|
-
|
|
4588
|
+
ManyToOne44(() => AdminRole),
|
|
4589
|
+
JoinColumn44({ name: "role_id" })
|
|
4491
4590
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
4492
4591
|
__decorateClass([
|
|
4493
|
-
|
|
4592
|
+
Column49({
|
|
4494
4593
|
name: "permission_id",
|
|
4495
4594
|
type: "int",
|
|
4496
4595
|
nullable: true,
|
|
@@ -4498,28 +4597,28 @@ __decorateClass([
|
|
|
4498
4597
|
})
|
|
4499
4598
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
4500
4599
|
__decorateClass([
|
|
4501
|
-
|
|
4502
|
-
|
|
4600
|
+
ManyToOne44(() => AdminPermission),
|
|
4601
|
+
JoinColumn44({ name: "permission_id" })
|
|
4503
4602
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
4504
4603
|
AdminRolePermission = __decorateClass([
|
|
4505
|
-
|
|
4604
|
+
Entity48("admin_role_permissions")
|
|
4506
4605
|
], AdminRolePermission);
|
|
4507
4606
|
|
|
4508
4607
|
// src/entities/admin-role.entity.ts
|
|
4509
4608
|
var AdminRole = class extends BaseEntity {
|
|
4510
4609
|
};
|
|
4511
4610
|
__decorateClass([
|
|
4512
|
-
|
|
4611
|
+
Column50({ name: "role_name", type: "varchar", nullable: true })
|
|
4513
4612
|
], AdminRole.prototype, "roleName", 2);
|
|
4514
4613
|
__decorateClass([
|
|
4515
|
-
|
|
4516
|
-
|
|
4614
|
+
Column50({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
4615
|
+
Index42()
|
|
4517
4616
|
], AdminRole.prototype, "roleSlug", 2);
|
|
4518
4617
|
__decorateClass([
|
|
4519
|
-
|
|
4618
|
+
Column50({ name: "role_description", type: "varchar", nullable: true })
|
|
4520
4619
|
], AdminRole.prototype, "roleDescription", 2);
|
|
4521
4620
|
__decorateClass([
|
|
4522
|
-
|
|
4621
|
+
Column50({ name: "is_active", type: "boolean", default: true })
|
|
4523
4622
|
], AdminRole.prototype, "isActive", 2);
|
|
4524
4623
|
__decorateClass([
|
|
4525
4624
|
OneToMany17(
|
|
@@ -4531,14 +4630,14 @@ __decorateClass([
|
|
|
4531
4630
|
OneToMany17(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
4532
4631
|
], AdminRole.prototype, "userRoles", 2);
|
|
4533
4632
|
AdminRole = __decorateClass([
|
|
4534
|
-
|
|
4633
|
+
Entity49("admin_roles")
|
|
4535
4634
|
], AdminRole);
|
|
4536
4635
|
|
|
4537
4636
|
// src/entities/admin-user-role.entity.ts
|
|
4538
4637
|
var AdminUserRole = class extends BaseEntity {
|
|
4539
4638
|
};
|
|
4540
4639
|
__decorateClass([
|
|
4541
|
-
|
|
4640
|
+
Column51({
|
|
4542
4641
|
name: "user_id",
|
|
4543
4642
|
type: "int",
|
|
4544
4643
|
nullable: true,
|
|
@@ -4546,11 +4645,11 @@ __decorateClass([
|
|
|
4546
4645
|
})
|
|
4547
4646
|
], AdminUserRole.prototype, "userId", 2);
|
|
4548
4647
|
__decorateClass([
|
|
4549
|
-
|
|
4550
|
-
|
|
4648
|
+
ManyToOne45(() => User),
|
|
4649
|
+
JoinColumn45({ name: "user_id" })
|
|
4551
4650
|
], AdminUserRole.prototype, "user", 2);
|
|
4552
4651
|
__decorateClass([
|
|
4553
|
-
|
|
4652
|
+
Column51({
|
|
4554
4653
|
name: "role_id",
|
|
4555
4654
|
type: "int",
|
|
4556
4655
|
nullable: true,
|
|
@@ -4558,47 +4657,47 @@ __decorateClass([
|
|
|
4558
4657
|
})
|
|
4559
4658
|
], AdminUserRole.prototype, "roleId", 2);
|
|
4560
4659
|
__decorateClass([
|
|
4561
|
-
|
|
4562
|
-
|
|
4660
|
+
ManyToOne45(() => AdminRole),
|
|
4661
|
+
JoinColumn45({ name: "role_id" })
|
|
4563
4662
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
4564
4663
|
AdminUserRole = __decorateClass([
|
|
4565
|
-
|
|
4664
|
+
Entity50("admin_user_roles")
|
|
4566
4665
|
], AdminUserRole);
|
|
4567
4666
|
|
|
4568
4667
|
// src/entities/freelancer-resume.entity.ts
|
|
4569
4668
|
import {
|
|
4570
|
-
Entity as
|
|
4571
|
-
Column as
|
|
4572
|
-
Index as
|
|
4573
|
-
ManyToOne as
|
|
4574
|
-
JoinColumn as
|
|
4669
|
+
Entity as Entity51,
|
|
4670
|
+
Column as Column52,
|
|
4671
|
+
Index as Index44,
|
|
4672
|
+
ManyToOne as ManyToOne46,
|
|
4673
|
+
JoinColumn as JoinColumn46
|
|
4575
4674
|
} from "typeorm";
|
|
4576
4675
|
var FreelancerResume = class extends BaseEntity {
|
|
4577
4676
|
};
|
|
4578
4677
|
// individual index to find profile by user
|
|
4579
4678
|
__decorateClass([
|
|
4580
|
-
|
|
4581
|
-
|
|
4679
|
+
Column52({ name: "user_id", type: "integer", nullable: true }),
|
|
4680
|
+
Index44()
|
|
4582
4681
|
], FreelancerResume.prototype, "userId", 2);
|
|
4583
4682
|
__decorateClass([
|
|
4584
|
-
|
|
4585
|
-
|
|
4683
|
+
ManyToOne46(() => User, (user) => user.freelancerProfile),
|
|
4684
|
+
JoinColumn46({ name: "user_id" })
|
|
4586
4685
|
], FreelancerResume.prototype, "user", 2);
|
|
4587
4686
|
__decorateClass([
|
|
4588
|
-
|
|
4687
|
+
Column52({ name: "resume_data", type: "jsonb", nullable: true })
|
|
4589
4688
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
4590
4689
|
__decorateClass([
|
|
4591
|
-
|
|
4690
|
+
Column52({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
4592
4691
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
4593
4692
|
FreelancerResume = __decorateClass([
|
|
4594
|
-
|
|
4693
|
+
Entity51("freelancer_resumes")
|
|
4595
4694
|
], FreelancerResume);
|
|
4596
4695
|
|
|
4597
4696
|
// src/entities/stripe-wallet.entity.ts
|
|
4598
|
-
import { Entity as
|
|
4697
|
+
import { Entity as Entity53, Column as Column54, Index as Index46, JoinColumn as JoinColumn48, OneToOne as OneToOne4, OneToMany as OneToMany18 } from "typeorm";
|
|
4599
4698
|
|
|
4600
4699
|
// src/entities/stripe-wallet-transaction.entity.ts
|
|
4601
|
-
import { Entity as
|
|
4700
|
+
import { Entity as Entity52, Column as Column53, Index as Index45, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
|
|
4602
4701
|
var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionTypeEnum2) => {
|
|
4603
4702
|
StripeWalletTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
4604
4703
|
StripeWalletTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -4618,63 +4717,63 @@ var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactio
|
|
|
4618
4717
|
var StripeWalletTransaction = class extends BaseEntity {
|
|
4619
4718
|
};
|
|
4620
4719
|
__decorateClass([
|
|
4621
|
-
|
|
4622
|
-
|
|
4720
|
+
Column53({ name: "wallet_id", type: "integer", nullable: true }),
|
|
4721
|
+
Index45()
|
|
4623
4722
|
], StripeWalletTransaction.prototype, "walletId", 2);
|
|
4624
4723
|
__decorateClass([
|
|
4625
|
-
|
|
4626
|
-
|
|
4724
|
+
ManyToOne47(() => StripeWallet, (stripeWallet) => stripeWallet.transactions),
|
|
4725
|
+
JoinColumn47({ name: "wallet_id" })
|
|
4627
4726
|
], StripeWalletTransaction.prototype, "stripeWallet", 2);
|
|
4628
4727
|
__decorateClass([
|
|
4629
|
-
|
|
4728
|
+
Column53({ name: "amount", type: "bigint", nullable: true })
|
|
4630
4729
|
], StripeWalletTransaction.prototype, "amount", 2);
|
|
4631
4730
|
__decorateClass([
|
|
4632
|
-
|
|
4731
|
+
Column53({ name: "currency", type: "varchar", nullable: true })
|
|
4633
4732
|
], StripeWalletTransaction.prototype, "currency", 2);
|
|
4634
4733
|
__decorateClass([
|
|
4635
|
-
|
|
4734
|
+
Column53({ name: "type", type: "enum", enum: StripeWalletTransactionTypeEnum })
|
|
4636
4735
|
], StripeWalletTransaction.prototype, "type", 2);
|
|
4637
4736
|
__decorateClass([
|
|
4638
|
-
|
|
4737
|
+
Column53({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4639
4738
|
], StripeWalletTransaction.prototype, "status", 2);
|
|
4640
4739
|
__decorateClass([
|
|
4641
|
-
|
|
4740
|
+
Column53({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
4642
4741
|
], StripeWalletTransaction.prototype, "stripeSessionId", 2);
|
|
4643
4742
|
__decorateClass([
|
|
4644
|
-
|
|
4743
|
+
Column53({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
4645
4744
|
], StripeWalletTransaction.prototype, "stripePaymentIntentId", 2);
|
|
4646
4745
|
__decorateClass([
|
|
4647
|
-
|
|
4746
|
+
Column53({ name: "description", type: "text", nullable: true })
|
|
4648
4747
|
], StripeWalletTransaction.prototype, "description", 2);
|
|
4649
4748
|
__decorateClass([
|
|
4650
|
-
|
|
4749
|
+
Column53({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
|
|
4651
4750
|
], StripeWalletTransaction.prototype, "depositAmountCents", 2);
|
|
4652
4751
|
__decorateClass([
|
|
4653
|
-
|
|
4752
|
+
Column53({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4654
4753
|
], StripeWalletTransaction.prototype, "platformFeeCents", 2);
|
|
4655
4754
|
__decorateClass([
|
|
4656
|
-
|
|
4755
|
+
Column53({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
|
|
4657
4756
|
], StripeWalletTransaction.prototype, "taxCents", 2);
|
|
4658
4757
|
__decorateClass([
|
|
4659
|
-
|
|
4758
|
+
Column53({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4660
4759
|
], StripeWalletTransaction.prototype, "stripeFeeCents", 2);
|
|
4661
4760
|
__decorateClass([
|
|
4662
|
-
|
|
4761
|
+
Column53({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
|
|
4663
4762
|
], StripeWalletTransaction.prototype, "totalPaidCents", 2);
|
|
4664
4763
|
__decorateClass([
|
|
4665
|
-
|
|
4764
|
+
Column53({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
|
|
4666
4765
|
], StripeWalletTransaction.prototype, "netReceivedCents", 2);
|
|
4667
4766
|
__decorateClass([
|
|
4668
|
-
|
|
4767
|
+
Column53({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4669
4768
|
], StripeWalletTransaction.prototype, "stripeChargeId", 2);
|
|
4670
4769
|
__decorateClass([
|
|
4671
|
-
|
|
4770
|
+
Column53({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4672
4771
|
], StripeWalletTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
4673
4772
|
__decorateClass([
|
|
4674
|
-
|
|
4773
|
+
Column53({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4675
4774
|
], StripeWalletTransaction.prototype, "completedAt", 2);
|
|
4676
4775
|
StripeWalletTransaction = __decorateClass([
|
|
4677
|
-
|
|
4776
|
+
Entity52("stripe_wallet_transactions")
|
|
4678
4777
|
], StripeWalletTransaction);
|
|
4679
4778
|
|
|
4680
4779
|
// src/entities/stripe-wallet.entity.ts
|
|
@@ -4691,65 +4790,65 @@ var StripeWalletOnboardingStatusEnum = /* @__PURE__ */ ((StripeWalletOnboardingS
|
|
|
4691
4790
|
var StripeWallet = class extends BaseEntity {
|
|
4692
4791
|
};
|
|
4693
4792
|
__decorateClass([
|
|
4694
|
-
|
|
4695
|
-
|
|
4793
|
+
Column54({ name: "user_id", type: "integer", nullable: true }),
|
|
4794
|
+
Index46()
|
|
4696
4795
|
], StripeWallet.prototype, "userId", 2);
|
|
4697
4796
|
__decorateClass([
|
|
4698
4797
|
OneToOne4(() => User, (user) => user.stripeWallet),
|
|
4699
|
-
|
|
4798
|
+
JoinColumn48({ name: "user_id" })
|
|
4700
4799
|
], StripeWallet.prototype, "user", 2);
|
|
4701
4800
|
__decorateClass([
|
|
4702
|
-
|
|
4801
|
+
Column54({ name: "account_type", type: "enum", enum: StripeWalletAccountTypeEnum, nullable: true })
|
|
4703
4802
|
], StripeWallet.prototype, "accountType", 2);
|
|
4704
4803
|
__decorateClass([
|
|
4705
|
-
|
|
4804
|
+
Column54({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
4706
4805
|
], StripeWallet.prototype, "stripeAccountId", 2);
|
|
4707
4806
|
__decorateClass([
|
|
4708
|
-
|
|
4807
|
+
Column54({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
4709
4808
|
], StripeWallet.prototype, "stripeCustomerId", 2);
|
|
4710
4809
|
__decorateClass([
|
|
4711
|
-
|
|
4810
|
+
Column54({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4712
4811
|
], StripeWallet.prototype, "walletBalance", 2);
|
|
4713
4812
|
__decorateClass([
|
|
4714
|
-
|
|
4813
|
+
Column54({ name: "wallet_balance_cents", type: "bigint", default: 0 })
|
|
4715
4814
|
], StripeWallet.prototype, "walletBalanceCents", 2);
|
|
4716
4815
|
__decorateClass([
|
|
4717
|
-
|
|
4816
|
+
Column54({ name: "onboarding_status", type: "enum", enum: StripeWalletOnboardingStatusEnum, nullable: true })
|
|
4718
4817
|
], StripeWallet.prototype, "onboardingStatus", 2);
|
|
4719
4818
|
__decorateClass([
|
|
4720
|
-
|
|
4819
|
+
Column54({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
4721
4820
|
], StripeWallet.prototype, "stripeMetadata", 2);
|
|
4722
4821
|
__decorateClass([
|
|
4723
4822
|
OneToMany18(() => StripeWalletTransaction, (stripeWalletTransaction) => stripeWalletTransaction.stripeWallet)
|
|
4724
4823
|
], StripeWallet.prototype, "transactions", 2);
|
|
4725
4824
|
StripeWallet = __decorateClass([
|
|
4726
|
-
|
|
4825
|
+
Entity53("stripe_wallets")
|
|
4727
4826
|
], StripeWallet);
|
|
4728
4827
|
|
|
4729
4828
|
// src/entities/signature.entity.ts
|
|
4730
4829
|
import {
|
|
4731
|
-
Entity as
|
|
4732
|
-
Column as
|
|
4733
|
-
Index as
|
|
4734
|
-
ManyToOne as
|
|
4735
|
-
JoinColumn as
|
|
4830
|
+
Entity as Entity54,
|
|
4831
|
+
Column as Column55,
|
|
4832
|
+
Index as Index47,
|
|
4833
|
+
ManyToOne as ManyToOne48,
|
|
4834
|
+
JoinColumn as JoinColumn49
|
|
4736
4835
|
} from "typeorm";
|
|
4737
4836
|
var Signature = class extends BaseEntity {
|
|
4738
4837
|
};
|
|
4739
4838
|
// individual index to find profile by user
|
|
4740
4839
|
__decorateClass([
|
|
4741
|
-
|
|
4742
|
-
|
|
4840
|
+
Column55({ name: "user_id", type: "integer", nullable: true }),
|
|
4841
|
+
Index47()
|
|
4743
4842
|
], Signature.prototype, "userId", 2);
|
|
4744
4843
|
__decorateClass([
|
|
4745
|
-
|
|
4746
|
-
|
|
4844
|
+
ManyToOne48(() => User, (user) => user.signatures),
|
|
4845
|
+
JoinColumn49({ name: "user_id" })
|
|
4747
4846
|
], Signature.prototype, "user", 2);
|
|
4748
4847
|
__decorateClass([
|
|
4749
|
-
|
|
4848
|
+
Column55({ name: "signature_url", type: "text", nullable: true })
|
|
4750
4849
|
], Signature.prototype, "signatureUrl", 2);
|
|
4751
4850
|
Signature = __decorateClass([
|
|
4752
|
-
|
|
4851
|
+
Entity54("signatures")
|
|
4753
4852
|
], Signature);
|
|
4754
4853
|
|
|
4755
4854
|
// src/entities/user.entity.ts
|
|
@@ -4777,51 +4876,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
4777
4876
|
var User = class extends BaseEntity {
|
|
4778
4877
|
};
|
|
4779
4878
|
__decorateClass([
|
|
4780
|
-
|
|
4879
|
+
Column56({ name: "unique_id", type: "varchar", unique: true })
|
|
4781
4880
|
], User.prototype, "uniqueId", 2);
|
|
4782
4881
|
__decorateClass([
|
|
4783
|
-
|
|
4784
|
-
|
|
4882
|
+
Column56({ name: "parent_id", type: "integer", nullable: true }),
|
|
4883
|
+
Index48()
|
|
4785
4884
|
], User.prototype, "parentId", 2);
|
|
4786
4885
|
__decorateClass([
|
|
4787
|
-
|
|
4788
|
-
|
|
4886
|
+
ManyToOne49(() => User, (user) => user.children, { nullable: true }),
|
|
4887
|
+
JoinColumn50({ name: "parent_id" })
|
|
4789
4888
|
], User.prototype, "parent", 2);
|
|
4790
4889
|
__decorateClass([
|
|
4791
4890
|
OneToMany19(() => User, (user) => user.parent)
|
|
4792
4891
|
], User.prototype, "children", 2);
|
|
4793
4892
|
__decorateClass([
|
|
4794
|
-
|
|
4893
|
+
Column56({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
4795
4894
|
], User.prototype, "username", 2);
|
|
4796
4895
|
__decorateClass([
|
|
4797
|
-
|
|
4896
|
+
Column56({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
4798
4897
|
], User.prototype, "firstName", 2);
|
|
4799
4898
|
__decorateClass([
|
|
4800
|
-
|
|
4899
|
+
Column56({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
4801
4900
|
], User.prototype, "lastName", 2);
|
|
4802
4901
|
__decorateClass([
|
|
4803
|
-
|
|
4902
|
+
Column56({ name: "date_of_birth", type: "date", nullable: true })
|
|
4804
4903
|
], User.prototype, "dateOfBirth", 2);
|
|
4805
4904
|
__decorateClass([
|
|
4806
|
-
|
|
4905
|
+
Column56({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
4807
4906
|
], User.prototype, "gender", 2);
|
|
4808
4907
|
__decorateClass([
|
|
4809
|
-
|
|
4908
|
+
Column56({ name: "profile_picture_url", type: "text", nullable: true })
|
|
4810
4909
|
], User.prototype, "profilePictureUrl", 2);
|
|
4811
4910
|
__decorateClass([
|
|
4812
|
-
|
|
4911
|
+
Column56({ name: "email", type: "varchar", unique: true })
|
|
4813
4912
|
], User.prototype, "email", 2);
|
|
4814
4913
|
__decorateClass([
|
|
4815
|
-
|
|
4914
|
+
Column56({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4816
4915
|
], User.prototype, "mobileCode", 2);
|
|
4817
4916
|
__decorateClass([
|
|
4818
|
-
|
|
4917
|
+
Column56({ name: "mobile", type: "varchar", nullable: true })
|
|
4819
4918
|
], User.prototype, "mobile", 2);
|
|
4820
4919
|
__decorateClass([
|
|
4821
|
-
|
|
4920
|
+
Column56({ name: "password", type: "varchar", nullable: true })
|
|
4822
4921
|
], User.prototype, "password", 2);
|
|
4823
4922
|
__decorateClass([
|
|
4824
|
-
|
|
4923
|
+
Column56({
|
|
4825
4924
|
name: "account_type",
|
|
4826
4925
|
type: "enum",
|
|
4827
4926
|
enum: AccountType,
|
|
@@ -4829,7 +4928,7 @@ __decorateClass([
|
|
|
4829
4928
|
})
|
|
4830
4929
|
], User.prototype, "accountType", 2);
|
|
4831
4930
|
__decorateClass([
|
|
4832
|
-
|
|
4931
|
+
Column56({
|
|
4833
4932
|
name: "account_status",
|
|
4834
4933
|
type: "enum",
|
|
4835
4934
|
enum: AccountStatus,
|
|
@@ -4837,42 +4936,42 @@ __decorateClass([
|
|
|
4837
4936
|
})
|
|
4838
4937
|
], User.prototype, "accountStatus", 2);
|
|
4839
4938
|
__decorateClass([
|
|
4840
|
-
|
|
4939
|
+
Column56({ name: "is_email_verified", type: "boolean", default: false })
|
|
4841
4940
|
], User.prototype, "isEmailVerified", 2);
|
|
4842
4941
|
__decorateClass([
|
|
4843
|
-
|
|
4942
|
+
Column56({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
4844
4943
|
], User.prototype, "isMobileVerified", 2);
|
|
4845
4944
|
__decorateClass([
|
|
4846
|
-
|
|
4945
|
+
Column56({ name: "is_social", type: "boolean", default: false })
|
|
4847
4946
|
], User.prototype, "isSocial", 2);
|
|
4848
4947
|
__decorateClass([
|
|
4849
|
-
|
|
4948
|
+
Column56({
|
|
4850
4949
|
name: "last_login_at",
|
|
4851
4950
|
type: "timestamp with time zone",
|
|
4852
4951
|
nullable: true
|
|
4853
4952
|
})
|
|
4854
4953
|
], User.prototype, "lastLoginAt", 2);
|
|
4855
4954
|
__decorateClass([
|
|
4856
|
-
|
|
4955
|
+
Column56({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
4857
4956
|
], User.prototype, "lastLoginIp", 2);
|
|
4858
4957
|
__decorateClass([
|
|
4859
|
-
|
|
4958
|
+
Column56({ name: "reset_token", type: "varchar", nullable: true })
|
|
4860
4959
|
], User.prototype, "resetToken", 2);
|
|
4861
4960
|
__decorateClass([
|
|
4862
|
-
|
|
4961
|
+
Column56({
|
|
4863
4962
|
name: "reset_token_expire_at",
|
|
4864
4963
|
type: "timestamp with time zone",
|
|
4865
4964
|
nullable: true
|
|
4866
4965
|
})
|
|
4867
4966
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
4868
4967
|
__decorateClass([
|
|
4869
|
-
|
|
4968
|
+
Column56({ name: "set_password_token", type: "varchar", nullable: true })
|
|
4870
4969
|
], User.prototype, "setPasswordToken", 2);
|
|
4871
4970
|
__decorateClass([
|
|
4872
4971
|
OneToMany19(() => RefreshToken, (token) => token.user)
|
|
4873
4972
|
], User.prototype, "refreshTokens", 2);
|
|
4874
4973
|
__decorateClass([
|
|
4875
|
-
|
|
4974
|
+
Column56({
|
|
4876
4975
|
name: "provider",
|
|
4877
4976
|
type: "enum",
|
|
4878
4977
|
enum: Provider,
|
|
@@ -4881,19 +4980,19 @@ __decorateClass([
|
|
|
4881
4980
|
})
|
|
4882
4981
|
], User.prototype, "provider", 2);
|
|
4883
4982
|
__decorateClass([
|
|
4884
|
-
|
|
4983
|
+
Column56({ name: "provider_token", type: "varchar", nullable: true })
|
|
4885
4984
|
], User.prototype, "providerToken", 2);
|
|
4886
4985
|
__decorateClass([
|
|
4887
|
-
|
|
4986
|
+
Column56({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
4888
4987
|
], User.prototype, "linkedInId", 2);
|
|
4889
4988
|
__decorateClass([
|
|
4890
|
-
|
|
4989
|
+
Column56({ name: "google_id", type: "varchar", nullable: true })
|
|
4891
4990
|
], User.prototype, "googleId", 2);
|
|
4892
4991
|
__decorateClass([
|
|
4893
|
-
|
|
4992
|
+
Column56({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
4894
4993
|
], User.prototype, "gitLabsId", 2);
|
|
4895
4994
|
__decorateClass([
|
|
4896
|
-
|
|
4995
|
+
Column56({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
4897
4996
|
], User.prototype, "onBoardedBy", 2);
|
|
4898
4997
|
__decorateClass([
|
|
4899
4998
|
OneToMany19(() => Otp, (otp) => otp.user)
|
|
@@ -5042,9 +5141,15 @@ __decorateClass([
|
|
|
5042
5141
|
__decorateClass([
|
|
5043
5142
|
OneToMany19(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
5044
5143
|
], User.prototype, "clientTimesheetLine", 2);
|
|
5144
|
+
__decorateClass([
|
|
5145
|
+
OneToMany19(() => Invoice, (invoice) => invoice.client)
|
|
5146
|
+
], User.prototype, "clientInvoice", 2);
|
|
5045
5147
|
__decorateClass([
|
|
5046
5148
|
OneToMany19(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
5047
5149
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
5150
|
+
__decorateClass([
|
|
5151
|
+
OneToMany19(() => Invoice, (invoice) => invoice.freelancer)
|
|
5152
|
+
], User.prototype, "freelancerInvoice", 2);
|
|
5048
5153
|
__decorateClass([
|
|
5049
5154
|
OneToMany19(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
5050
5155
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
@@ -5052,7 +5157,7 @@ __decorateClass([
|
|
|
5052
5157
|
OneToMany19(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
5053
5158
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
5054
5159
|
User = __decorateClass([
|
|
5055
|
-
|
|
5160
|
+
Entity55("users")
|
|
5056
5161
|
], User);
|
|
5057
5162
|
|
|
5058
5163
|
// src/entities/rating.entity.ts
|
|
@@ -5064,36 +5169,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
5064
5169
|
var Rating = class extends BaseEntity {
|
|
5065
5170
|
};
|
|
5066
5171
|
__decorateClass([
|
|
5067
|
-
|
|
5068
|
-
|
|
5172
|
+
Column57({ name: "reviewer_id", type: "integer" }),
|
|
5173
|
+
Index49()
|
|
5069
5174
|
], Rating.prototype, "reviewer_id", 2);
|
|
5070
5175
|
__decorateClass([
|
|
5071
|
-
|
|
5072
|
-
|
|
5176
|
+
ManyToOne50(() => User, { onDelete: "CASCADE" }),
|
|
5177
|
+
JoinColumn51({ name: "reviewer_id" })
|
|
5073
5178
|
], Rating.prototype, "reviewer", 2);
|
|
5074
5179
|
__decorateClass([
|
|
5075
|
-
|
|
5076
|
-
|
|
5180
|
+
Column57({ name: "reviewee_id", type: "integer" }),
|
|
5181
|
+
Index49()
|
|
5077
5182
|
], Rating.prototype, "reviewee_id", 2);
|
|
5078
5183
|
__decorateClass([
|
|
5079
|
-
|
|
5080
|
-
|
|
5184
|
+
ManyToOne50(() => User, { onDelete: "CASCADE" }),
|
|
5185
|
+
JoinColumn51({ name: "reviewee_id" })
|
|
5081
5186
|
], Rating.prototype, "reviewee", 2);
|
|
5082
5187
|
__decorateClass([
|
|
5083
|
-
|
|
5188
|
+
Column57({
|
|
5084
5189
|
type: "enum",
|
|
5085
5190
|
enum: RatingTypeEnum,
|
|
5086
5191
|
nullable: true
|
|
5087
5192
|
})
|
|
5088
5193
|
], Rating.prototype, "ratingType", 2);
|
|
5089
5194
|
__decorateClass([
|
|
5090
|
-
|
|
5195
|
+
Column57({ type: "integer", nullable: true })
|
|
5091
5196
|
], Rating.prototype, "rating", 2);
|
|
5092
5197
|
__decorateClass([
|
|
5093
|
-
|
|
5198
|
+
Column57({ type: "text", nullable: true })
|
|
5094
5199
|
], Rating.prototype, "review", 2);
|
|
5095
5200
|
Rating = __decorateClass([
|
|
5096
|
-
|
|
5201
|
+
Entity56("ratings")
|
|
5097
5202
|
], Rating);
|
|
5098
5203
|
|
|
5099
5204
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -6363,25 +6468,49 @@ __decorateClass([
|
|
|
6363
6468
|
IsNumber7({}, { message: "Candidate ID must be a number." })
|
|
6364
6469
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
6365
6470
|
|
|
6366
|
-
// src/modules/interview/dto/create-f2f-interview-
|
|
6471
|
+
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
6367
6472
|
import {
|
|
6368
6473
|
IsString as IsString40,
|
|
6369
|
-
IsNotEmpty as IsNotEmpty59
|
|
6474
|
+
IsNotEmpty as IsNotEmpty59,
|
|
6475
|
+
IsEmail as IsEmail17,
|
|
6476
|
+
IsNumber as IsNumber8
|
|
6477
|
+
} from "class-validator";
|
|
6478
|
+
var CreateF2FInterviewDirectDto = class {
|
|
6479
|
+
};
|
|
6480
|
+
__decorateClass([
|
|
6481
|
+
IsEmail17({}, { message: "Please enter a valid email address." }),
|
|
6482
|
+
IsNotEmpty59({ message: "Invitee email is required." })
|
|
6483
|
+
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
6484
|
+
__decorateClass([
|
|
6485
|
+
IsString40({ message: "Invitee name must be a string." }),
|
|
6486
|
+
IsNotEmpty59({ message: "Invitee name is required." })
|
|
6487
|
+
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
6488
|
+
__decorateClass([
|
|
6489
|
+
IsNumber8({}, { message: "Job ID must be a number." })
|
|
6490
|
+
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
6491
|
+
__decorateClass([
|
|
6492
|
+
IsNumber8({}, { message: "Candidate ID must be a number." })
|
|
6493
|
+
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
6494
|
+
|
|
6495
|
+
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
6496
|
+
import {
|
|
6497
|
+
IsString as IsString41,
|
|
6498
|
+
IsNotEmpty as IsNotEmpty60
|
|
6370
6499
|
} from "class-validator";
|
|
6371
6500
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
6372
6501
|
};
|
|
6373
6502
|
__decorateClass([
|
|
6374
|
-
|
|
6503
|
+
IsNotEmpty60({ message: "F2F Interview ID is required." })
|
|
6375
6504
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
6376
6505
|
__decorateClass([
|
|
6377
|
-
|
|
6506
|
+
IsNotEmpty60({ message: "Rescheduled date is required." })
|
|
6378
6507
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
6379
6508
|
__decorateClass([
|
|
6380
|
-
|
|
6381
|
-
|
|
6509
|
+
IsString41({ message: "Rescheduled slot must be a string." }),
|
|
6510
|
+
IsNotEmpty60({ message: "Rescheduled slot is required." })
|
|
6382
6511
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
6383
6512
|
__decorateClass([
|
|
6384
|
-
|
|
6513
|
+
IsString41({ message: "Freelancer reason must be a string." })
|
|
6385
6514
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
6386
6515
|
|
|
6387
6516
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -6404,42 +6533,42 @@ var CONTRACT_PATTERN = {
|
|
|
6404
6533
|
};
|
|
6405
6534
|
|
|
6406
6535
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
6407
|
-
import { IsEnum as IsEnum25, IsNotEmpty as
|
|
6536
|
+
import { IsEnum as IsEnum25, IsNotEmpty as IsNotEmpty61, IsNumber as IsNumber9 } from "class-validator";
|
|
6408
6537
|
import { Type as Type11 } from "class-transformer";
|
|
6409
6538
|
var SignContractForClientDto = class {
|
|
6410
6539
|
};
|
|
6411
6540
|
__decorateClass([
|
|
6412
|
-
|
|
6541
|
+
IsNotEmpty61({ message: "Job Id is required." }),
|
|
6413
6542
|
Type11(() => Number),
|
|
6414
|
-
|
|
6543
|
+
IsNumber9({}, { message: "Job ID must be a number." })
|
|
6415
6544
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
6416
6545
|
__decorateClass([
|
|
6417
|
-
|
|
6546
|
+
IsNotEmpty61({ message: "Freelancer ID is required." }),
|
|
6418
6547
|
Type11(() => Number),
|
|
6419
|
-
|
|
6548
|
+
IsNumber9({}, { message: "Freelancer ID must be a number." })
|
|
6420
6549
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
6421
6550
|
__decorateClass([
|
|
6422
|
-
|
|
6551
|
+
IsNotEmpty61({ message: "Contract type is required." }),
|
|
6423
6552
|
IsEnum25(ContractTypeEnum)
|
|
6424
6553
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
6425
6554
|
|
|
6426
6555
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
6427
|
-
import { IsEnum as IsEnum26, IsNotEmpty as
|
|
6556
|
+
import { IsEnum as IsEnum26, IsNotEmpty as IsNotEmpty62, IsNumber as IsNumber10 } from "class-validator";
|
|
6428
6557
|
import { Type as Type12 } from "class-transformer";
|
|
6429
6558
|
var SignContractForFreelancerDto = class {
|
|
6430
6559
|
};
|
|
6431
6560
|
__decorateClass([
|
|
6432
|
-
|
|
6561
|
+
IsNotEmpty62({ message: "Job Id is required." }),
|
|
6433
6562
|
Type12(() => Number),
|
|
6434
|
-
|
|
6563
|
+
IsNumber10({}, { message: "Job ID must be a number." })
|
|
6435
6564
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
6436
6565
|
__decorateClass([
|
|
6437
|
-
|
|
6566
|
+
IsNotEmpty62({ message: "Client ID is required." }),
|
|
6438
6567
|
Type12(() => Number),
|
|
6439
|
-
|
|
6568
|
+
IsNumber10({}, { message: "Client ID must be a number." })
|
|
6440
6569
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
6441
6570
|
__decorateClass([
|
|
6442
|
-
|
|
6571
|
+
IsNotEmpty62({ message: "Contract type is required." }),
|
|
6443
6572
|
IsEnum26(ContractTypeEnum)
|
|
6444
6573
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
6445
6574
|
|
|
@@ -6459,12 +6588,12 @@ var STRIPE_PATTERN = {
|
|
|
6459
6588
|
|
|
6460
6589
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
6461
6590
|
import {
|
|
6462
|
-
IsNotEmpty as
|
|
6591
|
+
IsNotEmpty as IsNotEmpty63
|
|
6463
6592
|
} from "class-validator";
|
|
6464
6593
|
var CreateCheckoutSessionDto = class {
|
|
6465
6594
|
};
|
|
6466
6595
|
__decorateClass([
|
|
6467
|
-
|
|
6596
|
+
IsNotEmpty63({ message: "Amount is required" })
|
|
6468
6597
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
6469
6598
|
|
|
6470
6599
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -6488,34 +6617,34 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
6488
6617
|
import {
|
|
6489
6618
|
IsDateString as IsDateString6,
|
|
6490
6619
|
IsInt as IsInt8,
|
|
6491
|
-
IsNotEmpty as
|
|
6620
|
+
IsNotEmpty as IsNotEmpty64,
|
|
6492
6621
|
IsOptional as IsOptional39,
|
|
6493
|
-
IsString as
|
|
6622
|
+
IsString as IsString42,
|
|
6494
6623
|
Matches as Matches13,
|
|
6495
|
-
IsNumber as
|
|
6624
|
+
IsNumber as IsNumber11
|
|
6496
6625
|
} from "class-validator";
|
|
6497
6626
|
var CreateFreelancerTimesheetDto = class {
|
|
6498
6627
|
};
|
|
6499
6628
|
__decorateClass([
|
|
6500
|
-
|
|
6501
|
-
|
|
6629
|
+
IsNotEmpty64({ message: "Job id is required" }),
|
|
6630
|
+
IsNumber11({}, { message: "Job id must be a number" })
|
|
6502
6631
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
6503
6632
|
__decorateClass([
|
|
6504
|
-
|
|
6633
|
+
IsNotEmpty64({ message: "start date is required" }),
|
|
6505
6634
|
IsDateString6()
|
|
6506
6635
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
6507
6636
|
__decorateClass([
|
|
6508
|
-
|
|
6637
|
+
IsNotEmpty64({ message: "end date is required" }),
|
|
6509
6638
|
IsDateString6()
|
|
6510
6639
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
6511
6640
|
__decorateClass([
|
|
6512
|
-
|
|
6641
|
+
IsNotEmpty64({ message: "start time is required" }),
|
|
6513
6642
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
6514
6643
|
message: "startTime must be in HH:mm:ss format"
|
|
6515
6644
|
})
|
|
6516
6645
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
6517
6646
|
__decorateClass([
|
|
6518
|
-
|
|
6647
|
+
IsNotEmpty64({ message: "end time is required" }),
|
|
6519
6648
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
6520
6649
|
message: "endTime must be in HH:mm:ss format"
|
|
6521
6650
|
})
|
|
@@ -6526,52 +6655,52 @@ __decorateClass([
|
|
|
6526
6655
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
6527
6656
|
__decorateClass([
|
|
6528
6657
|
IsOptional39(),
|
|
6529
|
-
|
|
6658
|
+
IsString42()
|
|
6530
6659
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
6531
6660
|
__decorateClass([
|
|
6532
6661
|
IsOptional39(),
|
|
6533
|
-
|
|
6662
|
+
IsString42()
|
|
6534
6663
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
6535
6664
|
__decorateClass([
|
|
6536
6665
|
IsOptional39(),
|
|
6537
|
-
|
|
6666
|
+
IsString42()
|
|
6538
6667
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
6539
6668
|
__decorateClass([
|
|
6540
|
-
|
|
6669
|
+
IsNotEmpty64({ message: "Description is required" })
|
|
6541
6670
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
6542
6671
|
|
|
6543
6672
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
6544
6673
|
import {
|
|
6545
6674
|
IsDateString as IsDateString7,
|
|
6546
6675
|
IsInt as IsInt9,
|
|
6547
|
-
IsNotEmpty as
|
|
6676
|
+
IsNotEmpty as IsNotEmpty65,
|
|
6548
6677
|
IsOptional as IsOptional40,
|
|
6549
|
-
IsString as
|
|
6678
|
+
IsString as IsString43,
|
|
6550
6679
|
Matches as Matches14,
|
|
6551
|
-
IsNumber as
|
|
6680
|
+
IsNumber as IsNumber12
|
|
6552
6681
|
} from "class-validator";
|
|
6553
6682
|
var UpdateFreelancerTimesheetDto = class {
|
|
6554
6683
|
};
|
|
6555
6684
|
__decorateClass([
|
|
6556
|
-
|
|
6557
|
-
|
|
6685
|
+
IsNotEmpty65({ message: "Job id is required" }),
|
|
6686
|
+
IsNumber12({}, { message: "Job id must be a number" })
|
|
6558
6687
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
6559
6688
|
__decorateClass([
|
|
6560
|
-
|
|
6689
|
+
IsNotEmpty65({ message: "start date is required" }),
|
|
6561
6690
|
IsDateString7()
|
|
6562
6691
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
6563
6692
|
__decorateClass([
|
|
6564
|
-
|
|
6693
|
+
IsNotEmpty65({ message: "end date is required" }),
|
|
6565
6694
|
IsDateString7()
|
|
6566
6695
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
6567
6696
|
__decorateClass([
|
|
6568
|
-
|
|
6697
|
+
IsNotEmpty65({ message: "start time is required" }),
|
|
6569
6698
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
6570
6699
|
message: "startTime must be in HH:mm:ss format"
|
|
6571
6700
|
})
|
|
6572
6701
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
6573
6702
|
__decorateClass([
|
|
6574
|
-
|
|
6703
|
+
IsNotEmpty65({ message: "end time is required" }),
|
|
6575
6704
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
6576
6705
|
message: "endTime must be in HH:mm:ss format"
|
|
6577
6706
|
})
|
|
@@ -6582,18 +6711,18 @@ __decorateClass([
|
|
|
6582
6711
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
6583
6712
|
__decorateClass([
|
|
6584
6713
|
IsOptional40(),
|
|
6585
|
-
|
|
6714
|
+
IsString43()
|
|
6586
6715
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
6587
6716
|
__decorateClass([
|
|
6588
6717
|
IsOptional40(),
|
|
6589
|
-
|
|
6718
|
+
IsString43()
|
|
6590
6719
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
6591
6720
|
__decorateClass([
|
|
6592
6721
|
IsOptional40(),
|
|
6593
|
-
|
|
6722
|
+
IsString43()
|
|
6594
6723
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
6595
6724
|
__decorateClass([
|
|
6596
|
-
|
|
6725
|
+
IsNotEmpty65({ message: "Description is required" })
|
|
6597
6726
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
6598
6727
|
|
|
6599
6728
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -6885,11 +7014,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
6885
7014
|
};
|
|
6886
7015
|
|
|
6887
7016
|
// src/entities/sequence-generator.entity.ts
|
|
6888
|
-
import { Entity as
|
|
7017
|
+
import { Entity as Entity57, Column as Column58 } from "typeorm";
|
|
6889
7018
|
var SequenceGenerator = class extends BaseEntity {
|
|
6890
7019
|
};
|
|
6891
7020
|
__decorateClass([
|
|
6892
|
-
|
|
7021
|
+
Column58({
|
|
6893
7022
|
name: "module",
|
|
6894
7023
|
type: "varchar",
|
|
6895
7024
|
length: 50,
|
|
@@ -6898,7 +7027,7 @@ __decorateClass([
|
|
|
6898
7027
|
})
|
|
6899
7028
|
], SequenceGenerator.prototype, "module", 2);
|
|
6900
7029
|
__decorateClass([
|
|
6901
|
-
|
|
7030
|
+
Column58({
|
|
6902
7031
|
name: "prefix",
|
|
6903
7032
|
type: "varchar",
|
|
6904
7033
|
length: 10,
|
|
@@ -6907,7 +7036,7 @@ __decorateClass([
|
|
|
6907
7036
|
})
|
|
6908
7037
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
6909
7038
|
__decorateClass([
|
|
6910
|
-
|
|
7039
|
+
Column58({
|
|
6911
7040
|
name: "last_sequence",
|
|
6912
7041
|
type: "int",
|
|
6913
7042
|
nullable: false,
|
|
@@ -6915,7 +7044,7 @@ __decorateClass([
|
|
|
6915
7044
|
})
|
|
6916
7045
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
6917
7046
|
__decorateClass([
|
|
6918
|
-
|
|
7047
|
+
Column58({
|
|
6919
7048
|
name: "year",
|
|
6920
7049
|
type: "int",
|
|
6921
7050
|
nullable: true,
|
|
@@ -6923,11 +7052,11 @@ __decorateClass([
|
|
|
6923
7052
|
})
|
|
6924
7053
|
], SequenceGenerator.prototype, "year", 2);
|
|
6925
7054
|
SequenceGenerator = __decorateClass([
|
|
6926
|
-
|
|
7055
|
+
Entity57("sequence_generators")
|
|
6927
7056
|
], SequenceGenerator);
|
|
6928
7057
|
|
|
6929
7058
|
// src/entities/question.entity.ts
|
|
6930
|
-
import { Entity as
|
|
7059
|
+
import { Entity as Entity58, Column as Column59 } from "typeorm";
|
|
6931
7060
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
6932
7061
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
6933
7062
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -6936,16 +7065,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
6936
7065
|
var Question = class extends BaseEntity {
|
|
6937
7066
|
};
|
|
6938
7067
|
__decorateClass([
|
|
6939
|
-
|
|
7068
|
+
Column59({ name: "question", type: "varchar" })
|
|
6940
7069
|
], Question.prototype, "question", 2);
|
|
6941
7070
|
__decorateClass([
|
|
6942
|
-
|
|
7071
|
+
Column59({ name: "hint", type: "varchar", nullable: true })
|
|
6943
7072
|
], Question.prototype, "hint", 2);
|
|
6944
7073
|
__decorateClass([
|
|
6945
|
-
|
|
7074
|
+
Column59({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6946
7075
|
], Question.prototype, "slug", 2);
|
|
6947
7076
|
__decorateClass([
|
|
6948
|
-
|
|
7077
|
+
Column59({
|
|
6949
7078
|
name: "question_for",
|
|
6950
7079
|
type: "enum",
|
|
6951
7080
|
enum: QuestionFor,
|
|
@@ -6953,119 +7082,119 @@ __decorateClass([
|
|
|
6953
7082
|
})
|
|
6954
7083
|
], Question.prototype, "questionFor", 2);
|
|
6955
7084
|
__decorateClass([
|
|
6956
|
-
|
|
7085
|
+
Column59({ name: "type", type: "varchar", nullable: true })
|
|
6957
7086
|
], Question.prototype, "type", 2);
|
|
6958
7087
|
__decorateClass([
|
|
6959
|
-
|
|
7088
|
+
Column59({ name: "options", type: "jsonb", nullable: true })
|
|
6960
7089
|
], Question.prototype, "options", 2);
|
|
6961
7090
|
__decorateClass([
|
|
6962
|
-
|
|
7091
|
+
Column59({ name: "is_active", type: "boolean", default: false })
|
|
6963
7092
|
], Question.prototype, "isActive", 2);
|
|
6964
7093
|
Question = __decorateClass([
|
|
6965
|
-
|
|
7094
|
+
Entity58("questions")
|
|
6966
7095
|
], Question);
|
|
6967
7096
|
|
|
6968
7097
|
// src/entities/skill.entity.ts
|
|
6969
|
-
import { Entity as
|
|
7098
|
+
import { Entity as Entity59, Column as Column60 } from "typeorm";
|
|
6970
7099
|
var Skill = class extends BaseEntity {
|
|
6971
7100
|
};
|
|
6972
7101
|
__decorateClass([
|
|
6973
|
-
|
|
7102
|
+
Column60({ name: "name", type: "varchar", nullable: true })
|
|
6974
7103
|
], Skill.prototype, "name", 2);
|
|
6975
7104
|
__decorateClass([
|
|
6976
|
-
|
|
7105
|
+
Column60({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6977
7106
|
], Skill.prototype, "slug", 2);
|
|
6978
7107
|
__decorateClass([
|
|
6979
|
-
|
|
7108
|
+
Column60({ name: "is_active", type: "boolean", default: false })
|
|
6980
7109
|
], Skill.prototype, "isActive", 2);
|
|
6981
7110
|
Skill = __decorateClass([
|
|
6982
|
-
|
|
7111
|
+
Entity59("skills")
|
|
6983
7112
|
], Skill);
|
|
6984
7113
|
|
|
6985
7114
|
// src/entities/job-role.entity.ts
|
|
6986
|
-
import { Entity as
|
|
7115
|
+
import { Entity as Entity60, Column as Column61 } from "typeorm";
|
|
6987
7116
|
var JobRoles = class extends BaseEntity {
|
|
6988
7117
|
};
|
|
6989
7118
|
__decorateClass([
|
|
6990
|
-
|
|
7119
|
+
Column61({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6991
7120
|
], JobRoles.prototype, "slug", 2);
|
|
6992
7121
|
__decorateClass([
|
|
6993
|
-
|
|
7122
|
+
Column61({ name: "name", type: "varchar", nullable: true })
|
|
6994
7123
|
], JobRoles.prototype, "name", 2);
|
|
6995
7124
|
__decorateClass([
|
|
6996
|
-
|
|
7125
|
+
Column61({ name: "is_active", type: "boolean", default: true })
|
|
6997
7126
|
], JobRoles.prototype, "isActive", 2);
|
|
6998
7127
|
JobRoles = __decorateClass([
|
|
6999
|
-
|
|
7128
|
+
Entity60("job_roles")
|
|
7000
7129
|
], JobRoles);
|
|
7001
7130
|
|
|
7002
7131
|
// src/entities/plan.entity.ts
|
|
7003
|
-
import { Entity as
|
|
7132
|
+
import { Entity as Entity62, Column as Column63, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
7004
7133
|
|
|
7005
7134
|
// src/entities/feature.entity.ts
|
|
7006
|
-
import { Entity as
|
|
7135
|
+
import { Entity as Entity61, Column as Column62, ManyToMany as ManyToMany2 } from "typeorm";
|
|
7007
7136
|
var Feature = class extends BaseEntity {
|
|
7008
7137
|
};
|
|
7009
7138
|
__decorateClass([
|
|
7010
|
-
|
|
7139
|
+
Column62({ name: "name", type: "varchar", unique: true })
|
|
7011
7140
|
], Feature.prototype, "name", 2);
|
|
7012
7141
|
__decorateClass([
|
|
7013
7142
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
7014
7143
|
], Feature.prototype, "plans", 2);
|
|
7015
7144
|
Feature = __decorateClass([
|
|
7016
|
-
|
|
7145
|
+
Entity61("features")
|
|
7017
7146
|
], Feature);
|
|
7018
7147
|
|
|
7019
7148
|
// src/entities/plan.entity.ts
|
|
7020
7149
|
var Plan = class extends BaseEntity {
|
|
7021
7150
|
};
|
|
7022
7151
|
__decorateClass([
|
|
7023
|
-
|
|
7152
|
+
Column63({ name: "name", type: "varchar", unique: true })
|
|
7024
7153
|
], Plan.prototype, "name", 2);
|
|
7025
7154
|
__decorateClass([
|
|
7026
|
-
|
|
7155
|
+
Column63({ name: "description", type: "varchar", nullable: true })
|
|
7027
7156
|
], Plan.prototype, "description", 2);
|
|
7028
7157
|
__decorateClass([
|
|
7029
|
-
|
|
7158
|
+
Column63({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
7030
7159
|
], Plan.prototype, "price", 2);
|
|
7031
7160
|
__decorateClass([
|
|
7032
|
-
|
|
7161
|
+
Column63({ name: "billing_period", type: "varchar" })
|
|
7033
7162
|
], Plan.prototype, "billingPeriod", 2);
|
|
7034
7163
|
__decorateClass([
|
|
7035
|
-
|
|
7164
|
+
Column63({ name: "is_current", type: "boolean", default: false })
|
|
7036
7165
|
], Plan.prototype, "isCurrent", 2);
|
|
7037
7166
|
__decorateClass([
|
|
7038
7167
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
7039
7168
|
JoinTable()
|
|
7040
7169
|
], Plan.prototype, "features", 2);
|
|
7041
7170
|
Plan = __decorateClass([
|
|
7042
|
-
|
|
7171
|
+
Entity62("plans")
|
|
7043
7172
|
], Plan);
|
|
7044
7173
|
|
|
7045
7174
|
// src/entities/cms.entity.ts
|
|
7046
|
-
import { Entity as
|
|
7175
|
+
import { Entity as Entity63, Column as Column64 } from "typeorm";
|
|
7047
7176
|
var Cms = class extends BaseEntity {
|
|
7048
7177
|
};
|
|
7049
7178
|
__decorateClass([
|
|
7050
|
-
|
|
7179
|
+
Column64({ name: "title", type: "varchar", nullable: true })
|
|
7051
7180
|
], Cms.prototype, "title", 2);
|
|
7052
7181
|
__decorateClass([
|
|
7053
|
-
|
|
7182
|
+
Column64({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7054
7183
|
], Cms.prototype, "slug", 2);
|
|
7055
7184
|
__decorateClass([
|
|
7056
|
-
|
|
7185
|
+
Column64({ name: "content", type: "varchar", nullable: true })
|
|
7057
7186
|
], Cms.prototype, "content", 2);
|
|
7058
7187
|
__decorateClass([
|
|
7059
|
-
|
|
7188
|
+
Column64({ name: "is_active", type: "boolean", default: true })
|
|
7060
7189
|
], Cms.prototype, "isActive", 2);
|
|
7061
7190
|
Cms = __decorateClass([
|
|
7062
|
-
|
|
7191
|
+
Entity63("cms")
|
|
7063
7192
|
], Cms);
|
|
7064
7193
|
|
|
7065
7194
|
// src/entities/lead.entity.ts
|
|
7066
7195
|
import {
|
|
7067
|
-
Entity as
|
|
7068
|
-
Column as
|
|
7196
|
+
Entity as Entity64,
|
|
7197
|
+
Column as Column65
|
|
7069
7198
|
} from "typeorm";
|
|
7070
7199
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
7071
7200
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -7075,22 +7204,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
7075
7204
|
var Lead = class extends BaseEntity {
|
|
7076
7205
|
};
|
|
7077
7206
|
__decorateClass([
|
|
7078
|
-
|
|
7207
|
+
Column65({ name: "name", type: "varchar", nullable: true })
|
|
7079
7208
|
], Lead.prototype, "name", 2);
|
|
7080
7209
|
__decorateClass([
|
|
7081
|
-
|
|
7210
|
+
Column65({ name: "mobile_code", type: "varchar", nullable: true })
|
|
7082
7211
|
], Lead.prototype, "mobileCode", 2);
|
|
7083
7212
|
__decorateClass([
|
|
7084
|
-
|
|
7213
|
+
Column65({ name: "mobile", type: "varchar", nullable: true })
|
|
7085
7214
|
], Lead.prototype, "mobile", 2);
|
|
7086
7215
|
__decorateClass([
|
|
7087
|
-
|
|
7216
|
+
Column65({ name: "email", type: "varchar", nullable: true })
|
|
7088
7217
|
], Lead.prototype, "email", 2);
|
|
7089
7218
|
__decorateClass([
|
|
7090
|
-
|
|
7219
|
+
Column65({ name: "description", type: "varchar", nullable: true })
|
|
7091
7220
|
], Lead.prototype, "description", 2);
|
|
7092
7221
|
__decorateClass([
|
|
7093
|
-
|
|
7222
|
+
Column65({
|
|
7094
7223
|
name: "category",
|
|
7095
7224
|
type: "enum",
|
|
7096
7225
|
enum: CategoryEmum,
|
|
@@ -7098,7 +7227,7 @@ __decorateClass([
|
|
|
7098
7227
|
})
|
|
7099
7228
|
], Lead.prototype, "category", 2);
|
|
7100
7229
|
Lead = __decorateClass([
|
|
7101
|
-
|
|
7230
|
+
Entity64("leads")
|
|
7102
7231
|
], Lead);
|
|
7103
7232
|
|
|
7104
7233
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -7339,7 +7468,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
7339
7468
|
], ClientFreelancerRecommendation);
|
|
7340
7469
|
|
|
7341
7470
|
// src/entities/commission.entity.ts
|
|
7342
|
-
import { Entity as
|
|
7471
|
+
import { Entity as Entity65, Column as Column66 } from "typeorm";
|
|
7343
7472
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
7344
7473
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
7345
7474
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -7348,7 +7477,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
7348
7477
|
var Commission = class extends BaseEntity {
|
|
7349
7478
|
};
|
|
7350
7479
|
__decorateClass([
|
|
7351
|
-
|
|
7480
|
+
Column66({
|
|
7352
7481
|
name: "freelancer_commission_type",
|
|
7353
7482
|
type: "enum",
|
|
7354
7483
|
enum: CommissionTypeEnum,
|
|
@@ -7356,10 +7485,10 @@ __decorateClass([
|
|
|
7356
7485
|
})
|
|
7357
7486
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
7358
7487
|
__decorateClass([
|
|
7359
|
-
|
|
7488
|
+
Column66({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
7360
7489
|
], Commission.prototype, "freelancerCommission", 2);
|
|
7361
7490
|
__decorateClass([
|
|
7362
|
-
|
|
7491
|
+
Column66({
|
|
7363
7492
|
name: "client_commission_type",
|
|
7364
7493
|
type: "enum",
|
|
7365
7494
|
enum: CommissionTypeEnum,
|
|
@@ -7367,74 +7496,74 @@ __decorateClass([
|
|
|
7367
7496
|
})
|
|
7368
7497
|
], Commission.prototype, "clientCommissionType", 2);
|
|
7369
7498
|
__decorateClass([
|
|
7370
|
-
|
|
7499
|
+
Column66({ name: "client_commission", type: "integer", default: 0 })
|
|
7371
7500
|
], Commission.prototype, "clientCommission", 2);
|
|
7372
7501
|
Commission = __decorateClass([
|
|
7373
|
-
|
|
7502
|
+
Entity65("commissions")
|
|
7374
7503
|
], Commission);
|
|
7375
7504
|
|
|
7376
7505
|
// src/entities/calendly-meeting-log.entity.ts
|
|
7377
7506
|
import {
|
|
7378
|
-
Entity as
|
|
7379
|
-
Column as
|
|
7380
|
-
Index as
|
|
7507
|
+
Entity as Entity66,
|
|
7508
|
+
Column as Column67,
|
|
7509
|
+
Index as Index50
|
|
7381
7510
|
} from "typeorm";
|
|
7382
7511
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
7383
7512
|
};
|
|
7384
7513
|
__decorateClass([
|
|
7385
|
-
|
|
7386
|
-
|
|
7514
|
+
Column67({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
7515
|
+
Index50()
|
|
7387
7516
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
7388
7517
|
__decorateClass([
|
|
7389
|
-
|
|
7518
|
+
Column67({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
7390
7519
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
7391
7520
|
__decorateClass([
|
|
7392
|
-
|
|
7521
|
+
Column67({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7393
7522
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
7394
7523
|
CalendlyMeetingLog = __decorateClass([
|
|
7395
|
-
|
|
7524
|
+
Entity66("calendly_meeting_logs")
|
|
7396
7525
|
], CalendlyMeetingLog);
|
|
7397
7526
|
|
|
7398
7527
|
// src/entities/zoom-meeting-log.entity.ts
|
|
7399
7528
|
import {
|
|
7400
|
-
Entity as
|
|
7401
|
-
Column as
|
|
7402
|
-
Index as
|
|
7529
|
+
Entity as Entity67,
|
|
7530
|
+
Column as Column68,
|
|
7531
|
+
Index as Index51
|
|
7403
7532
|
} from "typeorm";
|
|
7404
7533
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
7405
7534
|
};
|
|
7406
7535
|
__decorateClass([
|
|
7407
|
-
|
|
7408
|
-
|
|
7536
|
+
Column68({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
7537
|
+
Index51()
|
|
7409
7538
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
7410
7539
|
__decorateClass([
|
|
7411
|
-
|
|
7540
|
+
Column68({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
7412
7541
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
7413
7542
|
__decorateClass([
|
|
7414
|
-
|
|
7543
|
+
Column68({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7415
7544
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
7416
7545
|
ZoomMeetingLog = __decorateClass([
|
|
7417
|
-
|
|
7546
|
+
Entity67("zoom_meeting_logs")
|
|
7418
7547
|
], ZoomMeetingLog);
|
|
7419
7548
|
|
|
7420
7549
|
// src/entities/stripe-logs.entity.ts
|
|
7421
|
-
import { Entity as
|
|
7550
|
+
import { Entity as Entity68, Column as Column69 } from "typeorm";
|
|
7422
7551
|
var StripeLog = class extends BaseEntity {
|
|
7423
7552
|
};
|
|
7424
7553
|
__decorateClass([
|
|
7425
|
-
|
|
7554
|
+
Column69({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
7426
7555
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
7427
7556
|
__decorateClass([
|
|
7428
|
-
|
|
7557
|
+
Column69({ name: "event_type", type: "varchar", nullable: true })
|
|
7429
7558
|
], StripeLog.prototype, "eventType", 2);
|
|
7430
7559
|
__decorateClass([
|
|
7431
|
-
|
|
7560
|
+
Column69({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
7432
7561
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
7433
7562
|
__decorateClass([
|
|
7434
|
-
|
|
7563
|
+
Column69({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7435
7564
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
7436
7565
|
StripeLog = __decorateClass([
|
|
7437
|
-
|
|
7566
|
+
Entity68("stripe_logs")
|
|
7438
7567
|
], StripeLog);
|
|
7439
7568
|
export {
|
|
7440
7569
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -7511,6 +7640,7 @@ export {
|
|
|
7511
7640
|
CreateCmsDto,
|
|
7512
7641
|
CreateCompanyMemberDto,
|
|
7513
7642
|
CreateCompanyRoleDto,
|
|
7643
|
+
CreateF2FInterviewDirectDto,
|
|
7514
7644
|
CreateF2FInterviewDto,
|
|
7515
7645
|
CreateF2FInterviewRescheduleRequestDto,
|
|
7516
7646
|
CreateFreelancerDto,
|
|
@@ -7576,6 +7706,8 @@ export {
|
|
|
7576
7706
|
InterviewQuestion,
|
|
7577
7707
|
InterviewSkill,
|
|
7578
7708
|
InterviewStatusEnum,
|
|
7709
|
+
Invoice,
|
|
7710
|
+
InvoiceStatusEnum,
|
|
7579
7711
|
JOB_PATTERN,
|
|
7580
7712
|
JOB_ROLE_PATTERN,
|
|
7581
7713
|
Job,
|