@experts_hub/shared 1.0.425 → 1.0.427
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/client-candidate-preference.entity.d.ts +16 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +3 -0
- package/dist/index.d.mts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +631 -585
- package/dist/index.mjs +588 -538
- package/package.json +1 -1
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 Entity55, Column as Column56, ManyToOne as ManyToOne49, JoinColumn as JoinColumn50, Index as Index48 } from "typeorm";
|
|
1446
1446
|
|
|
1447
1447
|
// src/entities/user.entity.ts
|
|
1448
1448
|
import {
|
|
1449
|
-
Entity as
|
|
1450
|
-
Column as
|
|
1449
|
+
Entity as Entity54,
|
|
1450
|
+
Column as Column55,
|
|
1451
1451
|
OneToMany as OneToMany19,
|
|
1452
1452
|
OneToOne as OneToOne5,
|
|
1453
|
-
Index as
|
|
1454
|
-
ManyToOne as
|
|
1455
|
-
JoinColumn as
|
|
1453
|
+
Index as Index47,
|
|
1454
|
+
ManyToOne as ManyToOne48,
|
|
1455
|
+
JoinColumn as JoinColumn49
|
|
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 Entity26,
|
|
2198
|
+
Column as Column27,
|
|
2199
|
+
Index as Index20,
|
|
2200
|
+
ManyToOne as ManyToOne25,
|
|
2201
|
+
JoinColumn as JoinColumn25,
|
|
2202
2202
|
OneToMany as OneToMany10
|
|
2203
2203
|
} from "typeorm";
|
|
2204
2204
|
|
|
@@ -3374,6 +3374,57 @@ TimesheetLine = __decorateClass([
|
|
|
3374
3374
|
Entity24("timesheet_lines")
|
|
3375
3375
|
], TimesheetLine);
|
|
3376
3376
|
|
|
3377
|
+
// src/entities/client-candidate-preference.entity.ts
|
|
3378
|
+
import {
|
|
3379
|
+
Entity as Entity25,
|
|
3380
|
+
Column as Column26,
|
|
3381
|
+
Index as Index19,
|
|
3382
|
+
ManyToOne as ManyToOne24,
|
|
3383
|
+
JoinColumn as JoinColumn24
|
|
3384
|
+
} from "typeorm";
|
|
3385
|
+
var ClientCandidatePreferenceEnum = /* @__PURE__ */ ((ClientCandidatePreferenceEnum2) => {
|
|
3386
|
+
ClientCandidatePreferenceEnum2["NOT_SUITABLE"] = "NOT_SUITABLE";
|
|
3387
|
+
ClientCandidatePreferenceEnum2["SHORTLISTED"] = "SHORTLISTED";
|
|
3388
|
+
return ClientCandidatePreferenceEnum2;
|
|
3389
|
+
})(ClientCandidatePreferenceEnum || {});
|
|
3390
|
+
var ClientCandidatePreference = class extends BaseEntity {
|
|
3391
|
+
};
|
|
3392
|
+
__decorateClass([
|
|
3393
|
+
Column26({ name: "client_id", type: "integer" }),
|
|
3394
|
+
Index19()
|
|
3395
|
+
], ClientCandidatePreference.prototype, "clientId", 2);
|
|
3396
|
+
__decorateClass([
|
|
3397
|
+
ManyToOne24(() => User, (user) => user.clientPreferencesGiven),
|
|
3398
|
+
JoinColumn24({ name: "client_id" })
|
|
3399
|
+
], ClientCandidatePreference.prototype, "client", 2);
|
|
3400
|
+
__decorateClass([
|
|
3401
|
+
Column26({ name: "candidate_id", type: "integer" }),
|
|
3402
|
+
Index19()
|
|
3403
|
+
], ClientCandidatePreference.prototype, "candidateId", 2);
|
|
3404
|
+
__decorateClass([
|
|
3405
|
+
ManyToOne24(() => User, (user) => user.clientPreferencesReceived),
|
|
3406
|
+
JoinColumn24({ name: "candidate_id" })
|
|
3407
|
+
], ClientCandidatePreference.prototype, "candidate", 2);
|
|
3408
|
+
__decorateClass([
|
|
3409
|
+
Column26({ name: "job_id", type: "integer", nullable: true }),
|
|
3410
|
+
Index19()
|
|
3411
|
+
], ClientCandidatePreference.prototype, "jobId", 2);
|
|
3412
|
+
__decorateClass([
|
|
3413
|
+
ManyToOne24(() => Job, (job) => job.clientCandidatePreferences, { nullable: true }),
|
|
3414
|
+
JoinColumn24({ name: "job_id" })
|
|
3415
|
+
], ClientCandidatePreference.prototype, "job", 2);
|
|
3416
|
+
__decorateClass([
|
|
3417
|
+
Column26({
|
|
3418
|
+
name: "preference",
|
|
3419
|
+
type: "enum",
|
|
3420
|
+
enum: ClientCandidatePreferenceEnum
|
|
3421
|
+
}),
|
|
3422
|
+
Index19()
|
|
3423
|
+
], ClientCandidatePreference.prototype, "preference", 2);
|
|
3424
|
+
ClientCandidatePreference = __decorateClass([
|
|
3425
|
+
Entity25("client_candidate_preferences")
|
|
3426
|
+
], ClientCandidatePreference);
|
|
3427
|
+
|
|
3377
3428
|
// src/entities/job.entity.ts
|
|
3378
3429
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
3379
3430
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -3414,52 +3465,52 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
3414
3465
|
var Job = class extends BaseEntity {
|
|
3415
3466
|
};
|
|
3416
3467
|
__decorateClass([
|
|
3417
|
-
|
|
3468
|
+
Column27({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
3418
3469
|
], Job.prototype, "jobId", 2);
|
|
3419
3470
|
// individual index to find jobs by user
|
|
3420
3471
|
__decorateClass([
|
|
3421
|
-
|
|
3422
|
-
|
|
3472
|
+
Column27({ name: "user_id", type: "integer", nullable: true }),
|
|
3473
|
+
Index20()
|
|
3423
3474
|
], Job.prototype, "userId", 2);
|
|
3424
3475
|
__decorateClass([
|
|
3425
|
-
|
|
3426
|
-
|
|
3476
|
+
ManyToOne25(() => User, (user) => user.jobs),
|
|
3477
|
+
JoinColumn25({ name: "user_id" })
|
|
3427
3478
|
], Job.prototype, "user", 2);
|
|
3428
3479
|
__decorateClass([
|
|
3429
|
-
|
|
3480
|
+
Column27({ name: "country_id", type: "int", nullable: true })
|
|
3430
3481
|
], Job.prototype, "countryId", 2);
|
|
3431
3482
|
__decorateClass([
|
|
3432
|
-
|
|
3433
|
-
|
|
3483
|
+
ManyToOne25(() => Country),
|
|
3484
|
+
JoinColumn25({ name: "country_id" })
|
|
3434
3485
|
], Job.prototype, "country", 2);
|
|
3435
3486
|
__decorateClass([
|
|
3436
|
-
|
|
3487
|
+
Column27({ name: "state_id", type: "int", nullable: true })
|
|
3437
3488
|
], Job.prototype, "stateId", 2);
|
|
3438
3489
|
__decorateClass([
|
|
3439
|
-
|
|
3440
|
-
|
|
3490
|
+
ManyToOne25(() => State),
|
|
3491
|
+
JoinColumn25({ name: "state_id" })
|
|
3441
3492
|
], Job.prototype, "state", 2);
|
|
3442
3493
|
__decorateClass([
|
|
3443
|
-
|
|
3494
|
+
Column27({ name: "city_id", type: "int", nullable: true })
|
|
3444
3495
|
], Job.prototype, "cityId", 2);
|
|
3445
3496
|
__decorateClass([
|
|
3446
|
-
|
|
3447
|
-
|
|
3497
|
+
ManyToOne25(() => City),
|
|
3498
|
+
JoinColumn25({ name: "city_id" })
|
|
3448
3499
|
], Job.prototype, "city", 2);
|
|
3449
3500
|
__decorateClass([
|
|
3450
|
-
|
|
3501
|
+
Column27({ name: "job_role", type: "varchar", nullable: true })
|
|
3451
3502
|
], Job.prototype, "jobRole", 2);
|
|
3452
3503
|
__decorateClass([
|
|
3453
|
-
|
|
3504
|
+
Column27({ name: "project_name", type: "varchar", nullable: true })
|
|
3454
3505
|
], Job.prototype, "projectName", 2);
|
|
3455
3506
|
__decorateClass([
|
|
3456
|
-
|
|
3507
|
+
Column27({ name: "note", type: "varchar", nullable: true })
|
|
3457
3508
|
], Job.prototype, "note", 2);
|
|
3458
3509
|
__decorateClass([
|
|
3459
|
-
|
|
3510
|
+
Column27({ name: "openings", type: "integer", default: 0 })
|
|
3460
3511
|
], Job.prototype, "openings", 2);
|
|
3461
3512
|
__decorateClass([
|
|
3462
|
-
|
|
3513
|
+
Column27({
|
|
3463
3514
|
name: "location",
|
|
3464
3515
|
type: "enum",
|
|
3465
3516
|
enum: JobLocationEnum,
|
|
@@ -3467,7 +3518,7 @@ __decorateClass([
|
|
|
3467
3518
|
})
|
|
3468
3519
|
], Job.prototype, "location", 2);
|
|
3469
3520
|
__decorateClass([
|
|
3470
|
-
|
|
3521
|
+
Column27({
|
|
3471
3522
|
name: "type_of_employment",
|
|
3472
3523
|
type: "enum",
|
|
3473
3524
|
enum: TypeOfEmploymentEnum,
|
|
@@ -3475,19 +3526,19 @@ __decorateClass([
|
|
|
3475
3526
|
})
|
|
3476
3527
|
], Job.prototype, "typeOfEmployment", 2);
|
|
3477
3528
|
__decorateClass([
|
|
3478
|
-
|
|
3529
|
+
Column27({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
3479
3530
|
], Job.prototype, "academicQualification", 2);
|
|
3480
3531
|
__decorateClass([
|
|
3481
|
-
|
|
3532
|
+
Column27({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
3482
3533
|
], Job.prototype, "yearsOfExperience", 2);
|
|
3483
3534
|
__decorateClass([
|
|
3484
|
-
|
|
3535
|
+
Column27({ name: "business_industry", type: "varchar", nullable: true })
|
|
3485
3536
|
], Job.prototype, "businessIndustry", 2);
|
|
3486
3537
|
__decorateClass([
|
|
3487
|
-
|
|
3538
|
+
Column27({ name: "currency", type: "varchar", default: "USD" })
|
|
3488
3539
|
], Job.prototype, "currency", 2);
|
|
3489
3540
|
__decorateClass([
|
|
3490
|
-
|
|
3541
|
+
Column27({
|
|
3491
3542
|
name: "expected_salary_from",
|
|
3492
3543
|
type: "decimal",
|
|
3493
3544
|
precision: 10,
|
|
@@ -3496,14 +3547,14 @@ __decorateClass([
|
|
|
3496
3547
|
})
|
|
3497
3548
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
3498
3549
|
__decorateClass([
|
|
3499
|
-
|
|
3550
|
+
Column27({
|
|
3500
3551
|
name: "hide_expected_salary_from",
|
|
3501
3552
|
type: "boolean",
|
|
3502
3553
|
default: false
|
|
3503
3554
|
})
|
|
3504
3555
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
3505
3556
|
__decorateClass([
|
|
3506
|
-
|
|
3557
|
+
Column27({
|
|
3507
3558
|
name: "expected_salary_to",
|
|
3508
3559
|
type: "decimal",
|
|
3509
3560
|
precision: 10,
|
|
@@ -3512,32 +3563,32 @@ __decorateClass([
|
|
|
3512
3563
|
})
|
|
3513
3564
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
3514
3565
|
__decorateClass([
|
|
3515
|
-
|
|
3566
|
+
Column27({
|
|
3516
3567
|
name: "hide_expected_salary_to",
|
|
3517
3568
|
type: "boolean",
|
|
3518
3569
|
default: false
|
|
3519
3570
|
})
|
|
3520
3571
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
3521
3572
|
__decorateClass([
|
|
3522
|
-
|
|
3573
|
+
Column27({ name: "years", type: "varchar", nullable: true })
|
|
3523
3574
|
], Job.prototype, "years", 2);
|
|
3524
3575
|
__decorateClass([
|
|
3525
|
-
|
|
3576
|
+
Column27({ name: "months", type: "varchar", nullable: true })
|
|
3526
3577
|
], Job.prototype, "months", 2);
|
|
3527
3578
|
__decorateClass([
|
|
3528
|
-
|
|
3579
|
+
Column27({ name: "weeks", type: "varchar", nullable: true })
|
|
3529
3580
|
], Job.prototype, "weeks", 2);
|
|
3530
3581
|
__decorateClass([
|
|
3531
|
-
|
|
3582
|
+
Column27({ name: "days", type: "varchar", nullable: true })
|
|
3532
3583
|
], Job.prototype, "days", 2);
|
|
3533
3584
|
__decorateClass([
|
|
3534
|
-
|
|
3585
|
+
Column27({ name: "tentative_start_date", type: "date", nullable: true })
|
|
3535
3586
|
], Job.prototype, "tentativeStartDate", 2);
|
|
3536
3587
|
__decorateClass([
|
|
3537
|
-
|
|
3588
|
+
Column27({ name: "tentative_end_date", type: "date", nullable: true })
|
|
3538
3589
|
], Job.prototype, "tentativeEndDate", 2);
|
|
3539
3590
|
__decorateClass([
|
|
3540
|
-
|
|
3591
|
+
Column27({
|
|
3541
3592
|
name: "duration_type",
|
|
3542
3593
|
type: "enum",
|
|
3543
3594
|
enum: DurationTypeEnum,
|
|
@@ -3545,10 +3596,10 @@ __decorateClass([
|
|
|
3545
3596
|
})
|
|
3546
3597
|
], Job.prototype, "durationType", 2);
|
|
3547
3598
|
__decorateClass([
|
|
3548
|
-
|
|
3599
|
+
Column27({ name: "duration", type: "varchar", nullable: true })
|
|
3549
3600
|
], Job.prototype, "duration", 2);
|
|
3550
3601
|
__decorateClass([
|
|
3551
|
-
|
|
3602
|
+
Column27({
|
|
3552
3603
|
name: "number_of_hours",
|
|
3553
3604
|
type: "decimal",
|
|
3554
3605
|
precision: 4,
|
|
@@ -3557,13 +3608,13 @@ __decorateClass([
|
|
|
3557
3608
|
})
|
|
3558
3609
|
], Job.prototype, "numberOfHours", 2);
|
|
3559
3610
|
__decorateClass([
|
|
3560
|
-
|
|
3611
|
+
Column27({ name: "description", type: "varchar", nullable: true })
|
|
3561
3612
|
], Job.prototype, "description", 2);
|
|
3562
3613
|
__decorateClass([
|
|
3563
|
-
|
|
3614
|
+
Column27({ name: "additional_comment", type: "varchar", nullable: true })
|
|
3564
3615
|
], Job.prototype, "additionalComment", 2);
|
|
3565
3616
|
__decorateClass([
|
|
3566
|
-
|
|
3617
|
+
Column27({
|
|
3567
3618
|
name: "onboarding_tat",
|
|
3568
3619
|
type: "varchar",
|
|
3569
3620
|
length: 50,
|
|
@@ -3571,14 +3622,14 @@ __decorateClass([
|
|
|
3571
3622
|
})
|
|
3572
3623
|
], Job.prototype, "onboardingTat", 2);
|
|
3573
3624
|
__decorateClass([
|
|
3574
|
-
|
|
3625
|
+
Column27({
|
|
3575
3626
|
name: "candidate_communication_skills",
|
|
3576
3627
|
type: "varchar",
|
|
3577
3628
|
nullable: true
|
|
3578
3629
|
})
|
|
3579
3630
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
3580
3631
|
__decorateClass([
|
|
3581
|
-
|
|
3632
|
+
Column27({
|
|
3582
3633
|
name: "step_completed",
|
|
3583
3634
|
type: "enum",
|
|
3584
3635
|
enum: Step,
|
|
@@ -3586,7 +3637,7 @@ __decorateClass([
|
|
|
3586
3637
|
})
|
|
3587
3638
|
], Job.prototype, "stepCompleted", 2);
|
|
3588
3639
|
__decorateClass([
|
|
3589
|
-
|
|
3640
|
+
Column27({
|
|
3590
3641
|
name: "status",
|
|
3591
3642
|
type: "enum",
|
|
3592
3643
|
enum: JobStatusEnum,
|
|
@@ -3594,16 +3645,16 @@ __decorateClass([
|
|
|
3594
3645
|
})
|
|
3595
3646
|
], Job.prototype, "status", 2);
|
|
3596
3647
|
__decorateClass([
|
|
3597
|
-
|
|
3648
|
+
Column27({ name: "viewed_count", type: "integer", default: 0 })
|
|
3598
3649
|
], Job.prototype, "viewedCount", 2);
|
|
3599
3650
|
__decorateClass([
|
|
3600
|
-
|
|
3651
|
+
Column27({ name: "application_count", type: "integer", default: 0 })
|
|
3601
3652
|
], Job.prototype, "applicationCount", 2);
|
|
3602
3653
|
__decorateClass([
|
|
3603
|
-
|
|
3654
|
+
Column27({ name: "is_contract_signed", type: "boolean", default: false })
|
|
3604
3655
|
], Job.prototype, "isContractSigned", 2);
|
|
3605
3656
|
__decorateClass([
|
|
3606
|
-
|
|
3657
|
+
Column27({ name: "is_interview_created", type: "boolean", default: false })
|
|
3607
3658
|
], Job.prototype, "isInterviewCreated", 2);
|
|
3608
3659
|
__decorateClass([
|
|
3609
3660
|
OneToMany10(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
@@ -3628,43 +3679,34 @@ __decorateClass([
|
|
|
3628
3679
|
)
|
|
3629
3680
|
], Job.prototype, "recommendations", 2);
|
|
3630
3681
|
__decorateClass([
|
|
3631
|
-
OneToMany10(
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
{
|
|
3635
|
-
cascade: true
|
|
3636
|
-
}
|
|
3637
|
-
)
|
|
3682
|
+
OneToMany10(() => Contract, (contract) => contract.job, {
|
|
3683
|
+
cascade: true
|
|
3684
|
+
})
|
|
3638
3685
|
], Job.prototype, "contracts", 2);
|
|
3639
3686
|
__decorateClass([
|
|
3640
|
-
OneToMany10(
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
{
|
|
3644
|
-
cascade: true
|
|
3645
|
-
}
|
|
3646
|
-
)
|
|
3687
|
+
OneToMany10(() => Timesheet, (timesheet) => timesheet.job, {
|
|
3688
|
+
cascade: true
|
|
3689
|
+
})
|
|
3647
3690
|
], Job.prototype, "timesheets", 2);
|
|
3648
3691
|
__decorateClass([
|
|
3649
|
-
OneToMany10(
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
{
|
|
3653
|
-
cascade: true
|
|
3654
|
-
}
|
|
3655
|
-
)
|
|
3692
|
+
OneToMany10(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
3693
|
+
cascade: true
|
|
3694
|
+
})
|
|
3656
3695
|
], Job.prototype, "timesheetLine", 2);
|
|
3696
|
+
__decorateClass([
|
|
3697
|
+
OneToMany10(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
3698
|
+
], Job.prototype, "clientCandidatePreferences", 2);
|
|
3657
3699
|
Job = __decorateClass([
|
|
3658
|
-
|
|
3700
|
+
Entity26("jobs")
|
|
3659
3701
|
], Job);
|
|
3660
3702
|
|
|
3661
3703
|
// src/entities/bank-details.entity.ts
|
|
3662
3704
|
import {
|
|
3663
|
-
Entity as
|
|
3664
|
-
Column as
|
|
3665
|
-
Index as
|
|
3666
|
-
ManyToOne as
|
|
3667
|
-
JoinColumn as
|
|
3705
|
+
Entity as Entity27,
|
|
3706
|
+
Column as Column28,
|
|
3707
|
+
Index as Index21,
|
|
3708
|
+
ManyToOne as ManyToOne26,
|
|
3709
|
+
JoinColumn as JoinColumn26
|
|
3668
3710
|
} from "typeorm";
|
|
3669
3711
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
3670
3712
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -3680,48 +3722,48 @@ var BankDetail = class extends BaseEntity {
|
|
|
3680
3722
|
};
|
|
3681
3723
|
// individual index to find bank details by user
|
|
3682
3724
|
__decorateClass([
|
|
3683
|
-
|
|
3684
|
-
|
|
3725
|
+
Column28({ name: "user_id", type: "integer", nullable: true }),
|
|
3726
|
+
Index21()
|
|
3685
3727
|
], BankDetail.prototype, "userId", 2);
|
|
3686
3728
|
__decorateClass([
|
|
3687
|
-
|
|
3688
|
-
|
|
3729
|
+
ManyToOne26(() => User, (user) => user.bankDetail),
|
|
3730
|
+
JoinColumn26({ name: "user_id" })
|
|
3689
3731
|
], BankDetail.prototype, "user", 2);
|
|
3690
3732
|
__decorateClass([
|
|
3691
|
-
|
|
3733
|
+
Column28({ name: "name", type: "varchar", nullable: true })
|
|
3692
3734
|
], BankDetail.prototype, "name", 2);
|
|
3693
3735
|
__decorateClass([
|
|
3694
|
-
|
|
3736
|
+
Column28({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
3695
3737
|
], BankDetail.prototype, "mobile", 2);
|
|
3696
3738
|
__decorateClass([
|
|
3697
|
-
|
|
3739
|
+
Column28({ name: "email", type: "varchar", unique: true })
|
|
3698
3740
|
], BankDetail.prototype, "email", 2);
|
|
3699
3741
|
__decorateClass([
|
|
3700
|
-
|
|
3742
|
+
Column28({ name: "address", type: "varchar", nullable: true })
|
|
3701
3743
|
], BankDetail.prototype, "address", 2);
|
|
3702
3744
|
__decorateClass([
|
|
3703
|
-
|
|
3745
|
+
Column28({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
3704
3746
|
], BankDetail.prototype, "accountNumber", 2);
|
|
3705
3747
|
__decorateClass([
|
|
3706
|
-
|
|
3748
|
+
Column28({ name: "bank_name", type: "varchar", nullable: true })
|
|
3707
3749
|
], BankDetail.prototype, "bankName", 2);
|
|
3708
3750
|
__decorateClass([
|
|
3709
|
-
|
|
3751
|
+
Column28({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
3710
3752
|
], BankDetail.prototype, "ifscCode", 2);
|
|
3711
3753
|
__decorateClass([
|
|
3712
|
-
|
|
3754
|
+
Column28({ name: "branch_name", type: "varchar", nullable: true })
|
|
3713
3755
|
], BankDetail.prototype, "branchName", 2);
|
|
3714
3756
|
__decorateClass([
|
|
3715
|
-
|
|
3757
|
+
Column28({ name: "routing_no", type: "varchar", nullable: true })
|
|
3716
3758
|
], BankDetail.prototype, "routingNo", 2);
|
|
3717
3759
|
__decorateClass([
|
|
3718
|
-
|
|
3760
|
+
Column28({ name: "aba_no", type: "varchar", nullable: true })
|
|
3719
3761
|
], BankDetail.prototype, "abaNumber", 2);
|
|
3720
3762
|
__decorateClass([
|
|
3721
|
-
|
|
3763
|
+
Column28({ name: "iban", type: "varchar", nullable: true })
|
|
3722
3764
|
], BankDetail.prototype, "iban", 2);
|
|
3723
3765
|
__decorateClass([
|
|
3724
|
-
|
|
3766
|
+
Column28({
|
|
3725
3767
|
name: "account_type",
|
|
3726
3768
|
type: "enum",
|
|
3727
3769
|
enum: BankAccountTypeEnum,
|
|
@@ -3729,7 +3771,7 @@ __decorateClass([
|
|
|
3729
3771
|
})
|
|
3730
3772
|
], BankDetail.prototype, "accountType", 2);
|
|
3731
3773
|
__decorateClass([
|
|
3732
|
-
|
|
3774
|
+
Column28({
|
|
3733
3775
|
name: "account_scope",
|
|
3734
3776
|
type: "enum",
|
|
3735
3777
|
enum: BankAccountScopeEnum,
|
|
@@ -3737,263 +3779,263 @@ __decorateClass([
|
|
|
3737
3779
|
})
|
|
3738
3780
|
], BankDetail.prototype, "accountScope", 2);
|
|
3739
3781
|
BankDetail = __decorateClass([
|
|
3740
|
-
|
|
3782
|
+
Entity27("bank_details")
|
|
3741
3783
|
], BankDetail);
|
|
3742
3784
|
|
|
3743
3785
|
// src/entities/system-preference.entity.ts
|
|
3744
3786
|
import {
|
|
3745
|
-
Entity as
|
|
3746
|
-
Column as
|
|
3747
|
-
Index as
|
|
3748
|
-
ManyToOne as
|
|
3749
|
-
JoinColumn as
|
|
3787
|
+
Entity as Entity28,
|
|
3788
|
+
Column as Column29,
|
|
3789
|
+
Index as Index22,
|
|
3790
|
+
ManyToOne as ManyToOne27,
|
|
3791
|
+
JoinColumn as JoinColumn27
|
|
3750
3792
|
} from "typeorm";
|
|
3751
3793
|
var SystemPreference = class extends BaseEntity {
|
|
3752
3794
|
};
|
|
3753
3795
|
// individual index to find system preference by user
|
|
3754
3796
|
__decorateClass([
|
|
3755
|
-
|
|
3756
|
-
|
|
3797
|
+
Column29({ name: "user_id", type: "integer", nullable: true }),
|
|
3798
|
+
Index22()
|
|
3757
3799
|
], SystemPreference.prototype, "userId", 2);
|
|
3758
3800
|
__decorateClass([
|
|
3759
|
-
|
|
3760
|
-
|
|
3801
|
+
ManyToOne27(() => User, (user) => user.systemPreference),
|
|
3802
|
+
JoinColumn27({ name: "user_id" })
|
|
3761
3803
|
], SystemPreference.prototype, "user", 2);
|
|
3762
3804
|
__decorateClass([
|
|
3763
|
-
|
|
3805
|
+
Column29({ name: "key", type: "varchar", nullable: false })
|
|
3764
3806
|
], SystemPreference.prototype, "key", 2);
|
|
3765
3807
|
__decorateClass([
|
|
3766
|
-
|
|
3808
|
+
Column29({ name: "value", type: "boolean", default: false })
|
|
3767
3809
|
], SystemPreference.prototype, "value", 2);
|
|
3768
3810
|
SystemPreference = __decorateClass([
|
|
3769
|
-
|
|
3811
|
+
Entity28("system_preferences")
|
|
3770
3812
|
], SystemPreference);
|
|
3771
3813
|
|
|
3772
3814
|
// src/entities/freelancer-experience.entity.ts
|
|
3773
3815
|
import {
|
|
3774
|
-
Entity as
|
|
3775
|
-
Column as
|
|
3776
|
-
Index as
|
|
3777
|
-
ManyToOne as
|
|
3778
|
-
JoinColumn as
|
|
3816
|
+
Entity as Entity29,
|
|
3817
|
+
Column as Column30,
|
|
3818
|
+
Index as Index23,
|
|
3819
|
+
ManyToOne as ManyToOne28,
|
|
3820
|
+
JoinColumn as JoinColumn28
|
|
3779
3821
|
} from "typeorm";
|
|
3780
3822
|
var FreelancerExperience = class extends BaseEntity {
|
|
3781
3823
|
};
|
|
3782
3824
|
// individual index to find experence by user
|
|
3783
3825
|
__decorateClass([
|
|
3784
|
-
|
|
3785
|
-
|
|
3826
|
+
Column30({ name: "user_id", type: "integer", nullable: true }),
|
|
3827
|
+
Index23()
|
|
3786
3828
|
], FreelancerExperience.prototype, "userId", 2);
|
|
3787
3829
|
__decorateClass([
|
|
3788
|
-
|
|
3789
|
-
|
|
3830
|
+
ManyToOne28(() => User, (user) => user.freelancerExperience),
|
|
3831
|
+
JoinColumn28({ name: "user_id" })
|
|
3790
3832
|
], FreelancerExperience.prototype, "user", 2);
|
|
3791
3833
|
__decorateClass([
|
|
3792
|
-
|
|
3834
|
+
Column30({ name: "company_name", type: "varchar", nullable: true })
|
|
3793
3835
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
3794
3836
|
__decorateClass([
|
|
3795
|
-
|
|
3837
|
+
Column30({ name: "designation", type: "varchar", nullable: true })
|
|
3796
3838
|
], FreelancerExperience.prototype, "designation", 2);
|
|
3797
3839
|
__decorateClass([
|
|
3798
|
-
|
|
3840
|
+
Column30({ name: "job_duration", type: "varchar", nullable: true })
|
|
3799
3841
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
3800
3842
|
__decorateClass([
|
|
3801
|
-
|
|
3843
|
+
Column30({ name: "description", type: "varchar", nullable: true })
|
|
3802
3844
|
], FreelancerExperience.prototype, "description", 2);
|
|
3803
3845
|
FreelancerExperience = __decorateClass([
|
|
3804
|
-
|
|
3846
|
+
Entity29("freelancer_experiences")
|
|
3805
3847
|
], FreelancerExperience);
|
|
3806
3848
|
|
|
3807
3849
|
// src/entities/freelancer-education.entity.ts
|
|
3808
3850
|
import {
|
|
3809
|
-
Entity as
|
|
3810
|
-
Column as
|
|
3811
|
-
Index as
|
|
3812
|
-
ManyToOne as
|
|
3813
|
-
JoinColumn as
|
|
3851
|
+
Entity as Entity30,
|
|
3852
|
+
Column as Column31,
|
|
3853
|
+
Index as Index24,
|
|
3854
|
+
ManyToOne as ManyToOne29,
|
|
3855
|
+
JoinColumn as JoinColumn29
|
|
3814
3856
|
} from "typeorm";
|
|
3815
3857
|
var FreelancerEducation = class extends BaseEntity {
|
|
3816
3858
|
};
|
|
3817
3859
|
// individual index to find education by user
|
|
3818
3860
|
__decorateClass([
|
|
3819
|
-
|
|
3820
|
-
|
|
3861
|
+
Column31({ name: "user_id", type: "integer", nullable: true }),
|
|
3862
|
+
Index24()
|
|
3821
3863
|
], FreelancerEducation.prototype, "userId", 2);
|
|
3822
3864
|
__decorateClass([
|
|
3823
|
-
|
|
3824
|
-
|
|
3865
|
+
ManyToOne29(() => User, (user) => user.freelancerEducation),
|
|
3866
|
+
JoinColumn29({ name: "user_id" })
|
|
3825
3867
|
], FreelancerEducation.prototype, "user", 2);
|
|
3826
3868
|
__decorateClass([
|
|
3827
|
-
|
|
3869
|
+
Column31({ name: "degree", type: "varchar", nullable: true })
|
|
3828
3870
|
], FreelancerEducation.prototype, "degree", 2);
|
|
3829
3871
|
__decorateClass([
|
|
3830
|
-
|
|
3872
|
+
Column31({ name: "university", type: "varchar", nullable: true })
|
|
3831
3873
|
], FreelancerEducation.prototype, "university", 2);
|
|
3832
3874
|
__decorateClass([
|
|
3833
|
-
|
|
3875
|
+
Column31({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
3834
3876
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
3835
3877
|
FreelancerEducation = __decorateClass([
|
|
3836
|
-
|
|
3878
|
+
Entity30("freelancer_educations")
|
|
3837
3879
|
], FreelancerEducation);
|
|
3838
3880
|
|
|
3839
3881
|
// src/entities/freelancer-project.entity.ts
|
|
3840
3882
|
import {
|
|
3841
|
-
Entity as
|
|
3842
|
-
Column as
|
|
3843
|
-
Index as
|
|
3844
|
-
ManyToOne as
|
|
3845
|
-
JoinColumn as
|
|
3883
|
+
Entity as Entity31,
|
|
3884
|
+
Column as Column32,
|
|
3885
|
+
Index as Index25,
|
|
3886
|
+
ManyToOne as ManyToOne30,
|
|
3887
|
+
JoinColumn as JoinColumn30
|
|
3846
3888
|
} from "typeorm";
|
|
3847
3889
|
var FreelancerProject = class extends BaseEntity {
|
|
3848
3890
|
};
|
|
3849
3891
|
// individual index to find project by user
|
|
3850
3892
|
__decorateClass([
|
|
3851
|
-
|
|
3852
|
-
|
|
3893
|
+
Column32({ name: "user_id", type: "integer", nullable: true }),
|
|
3894
|
+
Index25()
|
|
3853
3895
|
], FreelancerProject.prototype, "userId", 2);
|
|
3854
3896
|
__decorateClass([
|
|
3855
|
-
|
|
3856
|
-
|
|
3897
|
+
ManyToOne30(() => User, (user) => user.freelancerProject),
|
|
3898
|
+
JoinColumn30({ name: "user_id" })
|
|
3857
3899
|
], FreelancerProject.prototype, "user", 2);
|
|
3858
3900
|
__decorateClass([
|
|
3859
|
-
|
|
3901
|
+
Column32({ name: "project_name", type: "varchar", nullable: true })
|
|
3860
3902
|
], FreelancerProject.prototype, "projectName", 2);
|
|
3861
3903
|
__decorateClass([
|
|
3862
|
-
|
|
3904
|
+
Column32({ name: "start_date", type: "date", nullable: true })
|
|
3863
3905
|
], FreelancerProject.prototype, "startDate", 2);
|
|
3864
3906
|
__decorateClass([
|
|
3865
|
-
|
|
3907
|
+
Column32({ name: "end_date", type: "date", nullable: true })
|
|
3866
3908
|
], FreelancerProject.prototype, "endDate", 2);
|
|
3867
3909
|
__decorateClass([
|
|
3868
|
-
|
|
3910
|
+
Column32({ name: "client_name", type: "varchar", nullable: true })
|
|
3869
3911
|
], FreelancerProject.prototype, "clientName", 2);
|
|
3870
3912
|
__decorateClass([
|
|
3871
|
-
|
|
3913
|
+
Column32({ name: "git_link", type: "varchar", nullable: true })
|
|
3872
3914
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
3873
3915
|
__decorateClass([
|
|
3874
|
-
|
|
3916
|
+
Column32({ name: "description", type: "varchar", nullable: true })
|
|
3875
3917
|
], FreelancerProject.prototype, "description", 2);
|
|
3876
3918
|
FreelancerProject = __decorateClass([
|
|
3877
|
-
|
|
3919
|
+
Entity31("freelancer_projects")
|
|
3878
3920
|
], FreelancerProject);
|
|
3879
3921
|
|
|
3880
3922
|
// src/entities/freelancer-casestudy.entity.ts
|
|
3881
3923
|
import {
|
|
3882
|
-
Entity as
|
|
3883
|
-
Column as
|
|
3884
|
-
Index as
|
|
3885
|
-
ManyToOne as
|
|
3886
|
-
JoinColumn as
|
|
3924
|
+
Entity as Entity32,
|
|
3925
|
+
Column as Column33,
|
|
3926
|
+
Index as Index26,
|
|
3927
|
+
ManyToOne as ManyToOne31,
|
|
3928
|
+
JoinColumn as JoinColumn31
|
|
3887
3929
|
} from "typeorm";
|
|
3888
3930
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
3889
3931
|
};
|
|
3890
3932
|
// individual index to find case study by user
|
|
3891
3933
|
__decorateClass([
|
|
3892
|
-
|
|
3893
|
-
|
|
3934
|
+
Column33({ name: "user_id", type: "integer", nullable: true }),
|
|
3935
|
+
Index26()
|
|
3894
3936
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
3895
3937
|
__decorateClass([
|
|
3896
|
-
|
|
3897
|
-
|
|
3938
|
+
ManyToOne31(() => User, (user) => user.freelancerCaseStudy),
|
|
3939
|
+
JoinColumn31({ name: "user_id" })
|
|
3898
3940
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
3899
3941
|
__decorateClass([
|
|
3900
|
-
|
|
3942
|
+
Column33({ name: "project_name", type: "varchar", nullable: true })
|
|
3901
3943
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
3902
3944
|
__decorateClass([
|
|
3903
|
-
|
|
3945
|
+
Column33({ name: "case_study_link", type: "varchar", nullable: true })
|
|
3904
3946
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
3905
3947
|
__decorateClass([
|
|
3906
|
-
|
|
3948
|
+
Column33({ name: "description", type: "varchar", nullable: true })
|
|
3907
3949
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
3908
3950
|
FreelancerCaseStudy = __decorateClass([
|
|
3909
|
-
|
|
3951
|
+
Entity32("freelancer_case_studies")
|
|
3910
3952
|
], FreelancerCaseStudy);
|
|
3911
3953
|
|
|
3912
3954
|
// src/entities/freelancer-skill.entity.ts
|
|
3913
3955
|
import {
|
|
3914
|
-
Entity as
|
|
3915
|
-
Column as
|
|
3916
|
-
Index as
|
|
3917
|
-
ManyToOne as
|
|
3918
|
-
JoinColumn as
|
|
3956
|
+
Entity as Entity33,
|
|
3957
|
+
Column as Column34,
|
|
3958
|
+
Index as Index27,
|
|
3959
|
+
ManyToOne as ManyToOne32,
|
|
3960
|
+
JoinColumn as JoinColumn32
|
|
3919
3961
|
} from "typeorm";
|
|
3920
3962
|
var FreelancerSkill = class extends BaseEntity {
|
|
3921
3963
|
};
|
|
3922
3964
|
// individual index to find core skills by user
|
|
3923
3965
|
__decorateClass([
|
|
3924
|
-
|
|
3925
|
-
|
|
3966
|
+
Column34({ name: "user_id", type: "integer", nullable: true }),
|
|
3967
|
+
Index27()
|
|
3926
3968
|
], FreelancerSkill.prototype, "userId", 2);
|
|
3927
3969
|
__decorateClass([
|
|
3928
|
-
|
|
3929
|
-
|
|
3970
|
+
ManyToOne32(() => User, (user) => user.freelancerSkills),
|
|
3971
|
+
JoinColumn32({ name: "user_id" })
|
|
3930
3972
|
], FreelancerSkill.prototype, "user", 2);
|
|
3931
3973
|
__decorateClass([
|
|
3932
|
-
|
|
3974
|
+
Column34({ name: "skill_name", type: "varchar", nullable: true })
|
|
3933
3975
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
3934
3976
|
FreelancerSkill = __decorateClass([
|
|
3935
|
-
|
|
3977
|
+
Entity33("freelancer_skills")
|
|
3936
3978
|
], FreelancerSkill);
|
|
3937
3979
|
|
|
3938
3980
|
// src/entities/freelancer-tool.entity.ts
|
|
3939
3981
|
import {
|
|
3940
|
-
Entity as
|
|
3941
|
-
Column as
|
|
3942
|
-
Index as
|
|
3943
|
-
ManyToOne as
|
|
3944
|
-
JoinColumn as
|
|
3982
|
+
Entity as Entity34,
|
|
3983
|
+
Column as Column35,
|
|
3984
|
+
Index as Index28,
|
|
3985
|
+
ManyToOne as ManyToOne33,
|
|
3986
|
+
JoinColumn as JoinColumn33
|
|
3945
3987
|
} from "typeorm";
|
|
3946
3988
|
var FreelancerTool = class extends BaseEntity {
|
|
3947
3989
|
};
|
|
3948
3990
|
// individual index to find tool by user
|
|
3949
3991
|
__decorateClass([
|
|
3950
|
-
|
|
3951
|
-
|
|
3992
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
3993
|
+
Index28()
|
|
3952
3994
|
], FreelancerTool.prototype, "userId", 2);
|
|
3953
3995
|
__decorateClass([
|
|
3954
|
-
|
|
3955
|
-
|
|
3996
|
+
ManyToOne33(() => User, (user) => user.freelancerTool),
|
|
3997
|
+
JoinColumn33({ name: "user_id" })
|
|
3956
3998
|
], FreelancerTool.prototype, "user", 2);
|
|
3957
3999
|
__decorateClass([
|
|
3958
|
-
|
|
4000
|
+
Column35({ name: "tool_name", type: "varchar", nullable: true })
|
|
3959
4001
|
], FreelancerTool.prototype, "toolName", 2);
|
|
3960
4002
|
FreelancerTool = __decorateClass([
|
|
3961
|
-
|
|
4003
|
+
Entity34("freelancer_tools")
|
|
3962
4004
|
], FreelancerTool);
|
|
3963
4005
|
|
|
3964
4006
|
// src/entities/freelancer-framework.entity.ts
|
|
3965
4007
|
import {
|
|
3966
|
-
Entity as
|
|
3967
|
-
Column as
|
|
3968
|
-
Index as
|
|
3969
|
-
ManyToOne as
|
|
3970
|
-
JoinColumn as
|
|
4008
|
+
Entity as Entity35,
|
|
4009
|
+
Column as Column36,
|
|
4010
|
+
Index as Index29,
|
|
4011
|
+
ManyToOne as ManyToOne34,
|
|
4012
|
+
JoinColumn as JoinColumn34
|
|
3971
4013
|
} from "typeorm";
|
|
3972
4014
|
var FreelancerFramework = class extends BaseEntity {
|
|
3973
4015
|
};
|
|
3974
4016
|
// individual index to find framework by user
|
|
3975
4017
|
__decorateClass([
|
|
3976
|
-
|
|
3977
|
-
|
|
4018
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
4019
|
+
Index29()
|
|
3978
4020
|
], FreelancerFramework.prototype, "userId", 2);
|
|
3979
4021
|
__decorateClass([
|
|
3980
|
-
|
|
3981
|
-
|
|
4022
|
+
ManyToOne34(() => User, (user) => user.freelancerFramework),
|
|
4023
|
+
JoinColumn34({ name: "user_id" })
|
|
3982
4024
|
], FreelancerFramework.prototype, "user", 2);
|
|
3983
4025
|
__decorateClass([
|
|
3984
|
-
|
|
4026
|
+
Column36({ name: "framework_name", type: "varchar", nullable: true })
|
|
3985
4027
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
3986
4028
|
FreelancerFramework = __decorateClass([
|
|
3987
|
-
|
|
4029
|
+
Entity35("freelancer_frameworks")
|
|
3988
4030
|
], FreelancerFramework);
|
|
3989
4031
|
|
|
3990
4032
|
// src/entities/freelancer-assessment.entity.ts
|
|
3991
4033
|
import {
|
|
3992
|
-
Entity as
|
|
3993
|
-
Column as
|
|
3994
|
-
Index as
|
|
3995
|
-
ManyToOne as
|
|
3996
|
-
JoinColumn as
|
|
4034
|
+
Entity as Entity36,
|
|
4035
|
+
Column as Column37,
|
|
4036
|
+
Index as Index30,
|
|
4037
|
+
ManyToOne as ManyToOne35,
|
|
4038
|
+
JoinColumn as JoinColumn35
|
|
3997
4039
|
} from "typeorm";
|
|
3998
4040
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
3999
4041
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -4010,30 +4052,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4010
4052
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4011
4053
|
};
|
|
4012
4054
|
__decorateClass([
|
|
4013
|
-
|
|
4014
|
-
|
|
4055
|
+
Column37({ name: "user_id", type: "integer", nullable: true }),
|
|
4056
|
+
Index30()
|
|
4015
4057
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4016
4058
|
__decorateClass([
|
|
4017
|
-
|
|
4018
|
-
|
|
4059
|
+
ManyToOne35(() => User, (user) => user.assessments),
|
|
4060
|
+
JoinColumn35({ name: "user_id" })
|
|
4019
4061
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4020
4062
|
__decorateClass([
|
|
4021
|
-
|
|
4063
|
+
Column37({ name: "interview_id", type: "varchar", nullable: true })
|
|
4022
4064
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4023
4065
|
__decorateClass([
|
|
4024
|
-
|
|
4066
|
+
Column37({ name: "interview_link", type: "text", nullable: true })
|
|
4025
4067
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4026
4068
|
__decorateClass([
|
|
4027
|
-
|
|
4069
|
+
Column37({ name: "recording_link", type: "text", nullable: true })
|
|
4028
4070
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4029
4071
|
__decorateClass([
|
|
4030
|
-
|
|
4072
|
+
Column37({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4031
4073
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4032
4074
|
__decorateClass([
|
|
4033
|
-
|
|
4075
|
+
Column37({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4034
4076
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4035
4077
|
__decorateClass([
|
|
4036
|
-
|
|
4078
|
+
Column37({
|
|
4037
4079
|
name: "status",
|
|
4038
4080
|
type: "enum",
|
|
4039
4081
|
enum: AssessmentStatusEnum,
|
|
@@ -4041,11 +4083,11 @@ __decorateClass([
|
|
|
4041
4083
|
})
|
|
4042
4084
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4043
4085
|
FreelancerAssessment = __decorateClass([
|
|
4044
|
-
|
|
4086
|
+
Entity36("freelancer_assessments")
|
|
4045
4087
|
], FreelancerAssessment);
|
|
4046
4088
|
|
|
4047
4089
|
// src/entities/freelancer-declaration.entity.ts
|
|
4048
|
-
import { Entity as
|
|
4090
|
+
import { Entity as Entity37, Column as Column38, Index as Index31, ManyToOne as ManyToOne36, JoinColumn as JoinColumn36 } from "typeorm";
|
|
4049
4091
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4050
4092
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4051
4093
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4057,15 +4099,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4057
4099
|
};
|
|
4058
4100
|
// individual index to find declaration by user
|
|
4059
4101
|
__decorateClass([
|
|
4060
|
-
|
|
4061
|
-
|
|
4102
|
+
Column38({ name: "user_id", type: "integer", nullable: true }),
|
|
4103
|
+
Index31()
|
|
4062
4104
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4063
4105
|
__decorateClass([
|
|
4064
|
-
|
|
4065
|
-
|
|
4106
|
+
ManyToOne36(() => User, (user) => user.freelancerDeclaration),
|
|
4107
|
+
JoinColumn36({ name: "user_id" })
|
|
4066
4108
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4067
4109
|
__decorateClass([
|
|
4068
|
-
|
|
4110
|
+
Column38({
|
|
4069
4111
|
name: "document_type",
|
|
4070
4112
|
type: "enum",
|
|
4071
4113
|
enum: DocumentType,
|
|
@@ -4073,175 +4115,175 @@ __decorateClass([
|
|
|
4073
4115
|
})
|
|
4074
4116
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
4075
4117
|
__decorateClass([
|
|
4076
|
-
|
|
4118
|
+
Column38({ name: "front_document_url", type: "varchar", nullable: true })
|
|
4077
4119
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
4078
4120
|
__decorateClass([
|
|
4079
|
-
|
|
4121
|
+
Column38({ name: "back_document_url", type: "varchar", nullable: true })
|
|
4080
4122
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
4081
4123
|
__decorateClass([
|
|
4082
|
-
|
|
4124
|
+
Column38({ name: "declaration_accepted", type: "boolean", default: false })
|
|
4083
4125
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
4084
4126
|
__decorateClass([
|
|
4085
|
-
|
|
4127
|
+
Column38({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
4086
4128
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
4087
4129
|
FreelancerDeclaration = __decorateClass([
|
|
4088
|
-
|
|
4130
|
+
Entity37("freelancer_declaration")
|
|
4089
4131
|
], FreelancerDeclaration);
|
|
4090
4132
|
|
|
4091
4133
|
// src/entities/company-members-roles.entity.ts
|
|
4092
4134
|
import {
|
|
4093
|
-
Column as
|
|
4094
|
-
Entity as
|
|
4095
|
-
ManyToOne as
|
|
4096
|
-
JoinColumn as
|
|
4097
|
-
Index as
|
|
4135
|
+
Column as Column42,
|
|
4136
|
+
Entity as Entity41,
|
|
4137
|
+
ManyToOne as ManyToOne39,
|
|
4138
|
+
JoinColumn as JoinColumn39,
|
|
4139
|
+
Index as Index35
|
|
4098
4140
|
} from "typeorm";
|
|
4099
4141
|
|
|
4100
4142
|
// src/entities/company-role.entity.ts
|
|
4101
4143
|
import {
|
|
4102
|
-
Column as
|
|
4103
|
-
Entity as
|
|
4104
|
-
Index as
|
|
4105
|
-
JoinColumn as
|
|
4106
|
-
ManyToOne as
|
|
4144
|
+
Column as Column41,
|
|
4145
|
+
Entity as Entity40,
|
|
4146
|
+
Index as Index34,
|
|
4147
|
+
JoinColumn as JoinColumn38,
|
|
4148
|
+
ManyToOne as ManyToOne38,
|
|
4107
4149
|
OneToMany as OneToMany12
|
|
4108
4150
|
} from "typeorm";
|
|
4109
4151
|
|
|
4110
4152
|
// src/entities/company-role-permission.entity.ts
|
|
4111
4153
|
import {
|
|
4112
|
-
Column as
|
|
4113
|
-
Entity as
|
|
4114
|
-
ManyToOne as
|
|
4115
|
-
JoinColumn as
|
|
4116
|
-
Index as
|
|
4154
|
+
Column as Column40,
|
|
4155
|
+
Entity as Entity39,
|
|
4156
|
+
ManyToOne as ManyToOne37,
|
|
4157
|
+
JoinColumn as JoinColumn37,
|
|
4158
|
+
Index as Index33
|
|
4117
4159
|
} from "typeorm";
|
|
4118
4160
|
|
|
4119
4161
|
// src/entities/permission.entity.ts
|
|
4120
|
-
import { Column as
|
|
4162
|
+
import { Column as Column39, Entity as Entity38, Index as Index32 } from "typeorm";
|
|
4121
4163
|
var Permission = class extends BaseEntity {
|
|
4122
4164
|
};
|
|
4123
4165
|
__decorateClass([
|
|
4124
|
-
|
|
4166
|
+
Column39({ name: "name", type: "varchar", nullable: true })
|
|
4125
4167
|
], Permission.prototype, "name", 2);
|
|
4126
4168
|
__decorateClass([
|
|
4127
|
-
|
|
4128
|
-
|
|
4169
|
+
Column39({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4170
|
+
Index32()
|
|
4129
4171
|
], Permission.prototype, "slug", 2);
|
|
4130
4172
|
__decorateClass([
|
|
4131
|
-
|
|
4173
|
+
Column39({ name: "description", type: "text", nullable: true })
|
|
4132
4174
|
], Permission.prototype, "description", 2);
|
|
4133
4175
|
__decorateClass([
|
|
4134
|
-
|
|
4176
|
+
Column39({ name: "is_active", type: "boolean", default: true })
|
|
4135
4177
|
], Permission.prototype, "isActive", 2);
|
|
4136
4178
|
Permission = __decorateClass([
|
|
4137
|
-
|
|
4179
|
+
Entity38("permissions")
|
|
4138
4180
|
], Permission);
|
|
4139
4181
|
|
|
4140
4182
|
// src/entities/company-role-permission.entity.ts
|
|
4141
4183
|
var CompanyRolePermission = class extends BaseEntity {
|
|
4142
4184
|
};
|
|
4143
4185
|
__decorateClass([
|
|
4144
|
-
|
|
4145
|
-
|
|
4186
|
+
Column40({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4187
|
+
Index33()
|
|
4146
4188
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
4147
4189
|
__decorateClass([
|
|
4148
|
-
|
|
4190
|
+
ManyToOne37(() => CompanyRole, (role) => role.rolePermissions, {
|
|
4149
4191
|
onDelete: "CASCADE"
|
|
4150
4192
|
}),
|
|
4151
|
-
|
|
4193
|
+
JoinColumn37({ name: "company_role_id" })
|
|
4152
4194
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
4153
4195
|
__decorateClass([
|
|
4154
|
-
|
|
4155
|
-
|
|
4196
|
+
Column40({ name: "permission_id", type: "integer" }),
|
|
4197
|
+
Index33()
|
|
4156
4198
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
4157
4199
|
__decorateClass([
|
|
4158
|
-
|
|
4159
|
-
|
|
4200
|
+
ManyToOne37(() => Permission, { onDelete: "CASCADE" }),
|
|
4201
|
+
JoinColumn37({ name: "permission_id" })
|
|
4160
4202
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
4161
4203
|
__decorateClass([
|
|
4162
|
-
|
|
4204
|
+
Column40({ name: "assigned_by", type: "integer", nullable: true })
|
|
4163
4205
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
4164
4206
|
CompanyRolePermission = __decorateClass([
|
|
4165
|
-
|
|
4207
|
+
Entity39("company_role_permissions")
|
|
4166
4208
|
], CompanyRolePermission);
|
|
4167
4209
|
|
|
4168
4210
|
// src/entities/company-role.entity.ts
|
|
4169
4211
|
var CompanyRole = class extends BaseEntity {
|
|
4170
4212
|
};
|
|
4171
4213
|
__decorateClass([
|
|
4172
|
-
|
|
4173
|
-
|
|
4214
|
+
Column41({ name: "user_id", type: "integer", nullable: true }),
|
|
4215
|
+
Index34()
|
|
4174
4216
|
], CompanyRole.prototype, "userId", 2);
|
|
4175
4217
|
__decorateClass([
|
|
4176
|
-
|
|
4177
|
-
|
|
4218
|
+
ManyToOne38(() => User, (user) => user.otps),
|
|
4219
|
+
JoinColumn38({ name: "user_id" })
|
|
4178
4220
|
], CompanyRole.prototype, "user", 2);
|
|
4179
4221
|
__decorateClass([
|
|
4180
|
-
|
|
4222
|
+
Column41({ name: "name", type: "varchar" })
|
|
4181
4223
|
], CompanyRole.prototype, "name", 2);
|
|
4182
4224
|
__decorateClass([
|
|
4183
|
-
|
|
4184
|
-
|
|
4225
|
+
Column41({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4226
|
+
Index34()
|
|
4185
4227
|
], CompanyRole.prototype, "slug", 2);
|
|
4186
4228
|
__decorateClass([
|
|
4187
|
-
|
|
4229
|
+
Column41({ name: "description", type: "text", nullable: true })
|
|
4188
4230
|
], CompanyRole.prototype, "description", 2);
|
|
4189
4231
|
__decorateClass([
|
|
4190
|
-
|
|
4232
|
+
Column41({ name: "is_active", type: "boolean", default: true })
|
|
4191
4233
|
], CompanyRole.prototype, "isActive", 2);
|
|
4192
4234
|
__decorateClass([
|
|
4193
4235
|
OneToMany12(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4194
4236
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4195
4237
|
CompanyRole = __decorateClass([
|
|
4196
|
-
|
|
4238
|
+
Entity40("company_roles")
|
|
4197
4239
|
], CompanyRole);
|
|
4198
4240
|
|
|
4199
4241
|
// src/entities/company-members-roles.entity.ts
|
|
4200
4242
|
var CompanyMemberRole = class extends BaseEntity {
|
|
4201
4243
|
};
|
|
4202
4244
|
__decorateClass([
|
|
4203
|
-
|
|
4204
|
-
|
|
4245
|
+
Column42({ name: "user_id", type: "integer", nullable: true }),
|
|
4246
|
+
Index35()
|
|
4205
4247
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
4206
4248
|
__decorateClass([
|
|
4207
|
-
|
|
4208
|
-
|
|
4249
|
+
ManyToOne39(() => User),
|
|
4250
|
+
JoinColumn39({ name: "user_id" })
|
|
4209
4251
|
], CompanyMemberRole.prototype, "user", 2);
|
|
4210
4252
|
__decorateClass([
|
|
4211
|
-
|
|
4212
|
-
|
|
4253
|
+
ManyToOne39(() => CompanyRole),
|
|
4254
|
+
JoinColumn39({ name: "company_role_id" })
|
|
4213
4255
|
], CompanyMemberRole.prototype, "role", 2);
|
|
4214
4256
|
__decorateClass([
|
|
4215
|
-
|
|
4216
|
-
|
|
4257
|
+
Column42({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4258
|
+
Index35()
|
|
4217
4259
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
4218
4260
|
__decorateClass([
|
|
4219
|
-
|
|
4261
|
+
Column42({ name: "assigned_by", type: "integer", nullable: true })
|
|
4220
4262
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
4221
4263
|
CompanyMemberRole = __decorateClass([
|
|
4222
|
-
|
|
4264
|
+
Entity41("company_member_roles")
|
|
4223
4265
|
], CompanyMemberRole);
|
|
4224
4266
|
|
|
4225
4267
|
// src/entities/assessment-answer.entity.ts
|
|
4226
4268
|
import {
|
|
4227
|
-
Entity as
|
|
4228
|
-
Column as
|
|
4229
|
-
ManyToOne as
|
|
4230
|
-
Index as
|
|
4231
|
-
JoinColumn as
|
|
4269
|
+
Entity as Entity44,
|
|
4270
|
+
Column as Column45,
|
|
4271
|
+
ManyToOne as ManyToOne41,
|
|
4272
|
+
Index as Index37,
|
|
4273
|
+
JoinColumn as JoinColumn41
|
|
4232
4274
|
} from "typeorm";
|
|
4233
4275
|
|
|
4234
4276
|
// src/entities/assessment-question.entity.ts
|
|
4235
|
-
import { Entity as
|
|
4277
|
+
import { Entity as Entity43, Column as Column44, OneToMany as OneToMany14 } from "typeorm";
|
|
4236
4278
|
|
|
4237
4279
|
// src/entities/assessment-question-option.entity.ts
|
|
4238
4280
|
import {
|
|
4239
|
-
Entity as
|
|
4240
|
-
Column as
|
|
4281
|
+
Entity as Entity42,
|
|
4282
|
+
Column as Column43,
|
|
4241
4283
|
OneToMany as OneToMany13,
|
|
4242
|
-
ManyToOne as
|
|
4243
|
-
Index as
|
|
4244
|
-
JoinColumn as
|
|
4284
|
+
ManyToOne as ManyToOne40,
|
|
4285
|
+
Index as Index36,
|
|
4286
|
+
JoinColumn as JoinColumn40
|
|
4245
4287
|
} from "typeorm";
|
|
4246
4288
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
4247
4289
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -4252,21 +4294,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
4252
4294
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
4253
4295
|
};
|
|
4254
4296
|
__decorateClass([
|
|
4255
|
-
|
|
4256
|
-
|
|
4297
|
+
Column43({ name: "question_id", type: "integer", nullable: true }),
|
|
4298
|
+
Index36()
|
|
4257
4299
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
4258
4300
|
__decorateClass([
|
|
4259
|
-
|
|
4301
|
+
ManyToOne40(
|
|
4260
4302
|
() => AssessmetQuestion,
|
|
4261
4303
|
(assessmentQuestion) => assessmentQuestion.options
|
|
4262
4304
|
),
|
|
4263
|
-
|
|
4305
|
+
JoinColumn40({ name: "question_id" })
|
|
4264
4306
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
4265
4307
|
__decorateClass([
|
|
4266
|
-
|
|
4308
|
+
Column43({ name: "text", type: "varchar", nullable: true })
|
|
4267
4309
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
4268
4310
|
__decorateClass([
|
|
4269
|
-
|
|
4311
|
+
Column43({
|
|
4270
4312
|
name: "answer_type",
|
|
4271
4313
|
type: "enum",
|
|
4272
4314
|
enum: AnswerTypeEnum,
|
|
@@ -4274,13 +4316,13 @@ __decorateClass([
|
|
|
4274
4316
|
})
|
|
4275
4317
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
4276
4318
|
__decorateClass([
|
|
4277
|
-
|
|
4319
|
+
Column43({ name: "is_active", type: "boolean", default: true })
|
|
4278
4320
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
4279
4321
|
__decorateClass([
|
|
4280
4322
|
OneToMany13(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
4281
4323
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
4282
4324
|
AssessmetQuestionOption = __decorateClass([
|
|
4283
|
-
|
|
4325
|
+
Entity42("assessment_question_options")
|
|
4284
4326
|
], AssessmetQuestionOption);
|
|
4285
4327
|
|
|
4286
4328
|
// src/entities/assessment-question.entity.ts
|
|
@@ -4292,10 +4334,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
4292
4334
|
var AssessmetQuestion = class extends BaseEntity {
|
|
4293
4335
|
};
|
|
4294
4336
|
__decorateClass([
|
|
4295
|
-
|
|
4337
|
+
Column44({ name: "text", type: "varchar", nullable: true })
|
|
4296
4338
|
], AssessmetQuestion.prototype, "text", 2);
|
|
4297
4339
|
__decorateClass([
|
|
4298
|
-
|
|
4340
|
+
Column44({
|
|
4299
4341
|
name: "question_for",
|
|
4300
4342
|
type: "enum",
|
|
4301
4343
|
enum: QuestionForEnum,
|
|
@@ -4303,7 +4345,7 @@ __decorateClass([
|
|
|
4303
4345
|
})
|
|
4304
4346
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
4305
4347
|
__decorateClass([
|
|
4306
|
-
|
|
4348
|
+
Column44({ name: "is_active", type: "boolean", default: true })
|
|
4307
4349
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
4308
4350
|
__decorateClass([
|
|
4309
4351
|
OneToMany14(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -4312,7 +4354,7 @@ __decorateClass([
|
|
|
4312
4354
|
OneToMany14(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
4313
4355
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
4314
4356
|
AssessmetQuestion = __decorateClass([
|
|
4315
|
-
|
|
4357
|
+
Entity43("assessment_questions")
|
|
4316
4358
|
], AssessmetQuestion);
|
|
4317
4359
|
|
|
4318
4360
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -4325,102 +4367,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
4325
4367
|
var AssessmentAnswer = class extends BaseEntity {
|
|
4326
4368
|
};
|
|
4327
4369
|
__decorateClass([
|
|
4328
|
-
|
|
4329
|
-
|
|
4370
|
+
Column45({ name: "user_id", type: "integer" }),
|
|
4371
|
+
Index37()
|
|
4330
4372
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
4331
4373
|
__decorateClass([
|
|
4332
|
-
|
|
4333
|
-
|
|
4374
|
+
ManyToOne41(() => User, (user) => user.assessmentAnswers),
|
|
4375
|
+
JoinColumn41({ name: "user_id" })
|
|
4334
4376
|
], AssessmentAnswer.prototype, "user", 2);
|
|
4335
4377
|
__decorateClass([
|
|
4336
|
-
|
|
4337
|
-
|
|
4378
|
+
Column45({ name: "question_id", type: "integer" }),
|
|
4379
|
+
Index37()
|
|
4338
4380
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
4339
4381
|
__decorateClass([
|
|
4340
|
-
|
|
4382
|
+
ManyToOne41(
|
|
4341
4383
|
() => AssessmetQuestion,
|
|
4342
4384
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
4343
4385
|
),
|
|
4344
|
-
|
|
4386
|
+
JoinColumn41({ name: "question_id" })
|
|
4345
4387
|
], AssessmentAnswer.prototype, "question", 2);
|
|
4346
4388
|
__decorateClass([
|
|
4347
|
-
|
|
4348
|
-
|
|
4389
|
+
Column45({ name: "selected_option_id", type: "integer" }),
|
|
4390
|
+
Index37()
|
|
4349
4391
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
4350
4392
|
__decorateClass([
|
|
4351
|
-
|
|
4393
|
+
ManyToOne41(
|
|
4352
4394
|
() => AssessmetQuestionOption,
|
|
4353
4395
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
4354
4396
|
),
|
|
4355
|
-
|
|
4397
|
+
JoinColumn41({ name: "selected_option_id" })
|
|
4356
4398
|
], AssessmentAnswer.prototype, "option", 2);
|
|
4357
4399
|
__decorateClass([
|
|
4358
|
-
|
|
4400
|
+
Column45({
|
|
4359
4401
|
name: "selected_answer_type",
|
|
4360
4402
|
type: "enum",
|
|
4361
4403
|
enum: SelectedAnswerTypeEnum
|
|
4362
4404
|
})
|
|
4363
4405
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
4364
4406
|
__decorateClass([
|
|
4365
|
-
|
|
4407
|
+
Column45({ name: "score", type: "float" })
|
|
4366
4408
|
], AssessmentAnswer.prototype, "score", 2);
|
|
4367
4409
|
AssessmentAnswer = __decorateClass([
|
|
4368
|
-
|
|
4410
|
+
Entity44("assessment_answers")
|
|
4369
4411
|
], AssessmentAnswer);
|
|
4370
4412
|
|
|
4371
4413
|
// src/entities/company-skill.entity.ts
|
|
4372
|
-
import { Entity as
|
|
4414
|
+
import { Entity as Entity45, Column as Column46, Index as Index38, ManyToOne as ManyToOne42, JoinColumn as JoinColumn42 } from "typeorm";
|
|
4373
4415
|
var CompanySkill = class extends BaseEntity {
|
|
4374
4416
|
};
|
|
4375
4417
|
// individual index to find core skills by user
|
|
4376
4418
|
__decorateClass([
|
|
4377
|
-
|
|
4378
|
-
|
|
4419
|
+
Column46({ name: "user_id", type: "integer", nullable: true }),
|
|
4420
|
+
Index38()
|
|
4379
4421
|
], CompanySkill.prototype, "userId", 2);
|
|
4380
4422
|
__decorateClass([
|
|
4381
|
-
|
|
4382
|
-
|
|
4423
|
+
ManyToOne42(() => User, (user) => user.freelancerSkills),
|
|
4424
|
+
JoinColumn42({ name: "user_id" })
|
|
4383
4425
|
], CompanySkill.prototype, "user", 2);
|
|
4384
4426
|
__decorateClass([
|
|
4385
|
-
|
|
4427
|
+
Column46({ name: "skill_name", type: "varchar", nullable: true })
|
|
4386
4428
|
], CompanySkill.prototype, "skillName", 2);
|
|
4387
4429
|
CompanySkill = __decorateClass([
|
|
4388
|
-
|
|
4430
|
+
Entity45("company_skills")
|
|
4389
4431
|
], CompanySkill);
|
|
4390
4432
|
|
|
4391
4433
|
// src/entities/admin-user-role.entity.ts
|
|
4392
|
-
import { Entity as
|
|
4434
|
+
import { Entity as Entity49, Column as Column50, ManyToOne as ManyToOne44, JoinColumn as JoinColumn44 } from "typeorm";
|
|
4393
4435
|
|
|
4394
4436
|
// src/entities/admin-role.entity.ts
|
|
4395
|
-
import { Entity as
|
|
4437
|
+
import { Entity as Entity48, Column as Column49, Index as Index41, OneToMany as OneToMany17 } from "typeorm";
|
|
4396
4438
|
|
|
4397
4439
|
// src/entities/admin-role-permission.entity.ts
|
|
4398
|
-
import { Entity as
|
|
4440
|
+
import { Entity as Entity47, Column as Column48, ManyToOne as ManyToOne43, JoinColumn as JoinColumn43 } from "typeorm";
|
|
4399
4441
|
|
|
4400
4442
|
// src/entities/admin-permission.entity.ts
|
|
4401
|
-
import { Entity as
|
|
4443
|
+
import { Entity as Entity46, Column as Column47, Index as Index39, OneToMany as OneToMany16 } from "typeorm";
|
|
4402
4444
|
var AdminPermission = class extends BaseEntity {
|
|
4403
4445
|
};
|
|
4404
4446
|
__decorateClass([
|
|
4405
|
-
|
|
4447
|
+
Column47({ name: "permission_name", type: "varchar", nullable: true })
|
|
4406
4448
|
], AdminPermission.prototype, "permissionName", 2);
|
|
4407
4449
|
__decorateClass([
|
|
4408
|
-
|
|
4450
|
+
Column47({
|
|
4409
4451
|
name: "permission_slug",
|
|
4410
4452
|
type: "varchar",
|
|
4411
4453
|
unique: true,
|
|
4412
4454
|
nullable: true
|
|
4413
4455
|
}),
|
|
4414
|
-
|
|
4456
|
+
Index39()
|
|
4415
4457
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
4416
4458
|
__decorateClass([
|
|
4417
|
-
|
|
4459
|
+
Column47({ name: "permission_description", type: "varchar", nullable: true })
|
|
4418
4460
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
4419
4461
|
__decorateClass([
|
|
4420
|
-
|
|
4462
|
+
Column47({ name: "module", type: "varchar", nullable: true })
|
|
4421
4463
|
], AdminPermission.prototype, "module", 2);
|
|
4422
4464
|
__decorateClass([
|
|
4423
|
-
|
|
4465
|
+
Column47({ name: "is_active", type: "boolean", default: true })
|
|
4424
4466
|
], AdminPermission.prototype, "isActive", 2);
|
|
4425
4467
|
__decorateClass([
|
|
4426
4468
|
OneToMany16(
|
|
@@ -4429,14 +4471,14 @@ __decorateClass([
|
|
|
4429
4471
|
)
|
|
4430
4472
|
], AdminPermission.prototype, "adminRole", 2);
|
|
4431
4473
|
AdminPermission = __decorateClass([
|
|
4432
|
-
|
|
4474
|
+
Entity46("admin_permissions")
|
|
4433
4475
|
], AdminPermission);
|
|
4434
4476
|
|
|
4435
4477
|
// src/entities/admin-role-permission.entity.ts
|
|
4436
4478
|
var AdminRolePermission = class extends BaseEntity {
|
|
4437
4479
|
};
|
|
4438
4480
|
__decorateClass([
|
|
4439
|
-
|
|
4481
|
+
Column48({
|
|
4440
4482
|
name: "role_id",
|
|
4441
4483
|
type: "int",
|
|
4442
4484
|
nullable: true,
|
|
@@ -4444,11 +4486,11 @@ __decorateClass([
|
|
|
4444
4486
|
})
|
|
4445
4487
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
4446
4488
|
__decorateClass([
|
|
4447
|
-
|
|
4448
|
-
|
|
4489
|
+
ManyToOne43(() => AdminRole),
|
|
4490
|
+
JoinColumn43({ name: "role_id" })
|
|
4449
4491
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
4450
4492
|
__decorateClass([
|
|
4451
|
-
|
|
4493
|
+
Column48({
|
|
4452
4494
|
name: "permission_id",
|
|
4453
4495
|
type: "int",
|
|
4454
4496
|
nullable: true,
|
|
@@ -4456,28 +4498,28 @@ __decorateClass([
|
|
|
4456
4498
|
})
|
|
4457
4499
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
4458
4500
|
__decorateClass([
|
|
4459
|
-
|
|
4460
|
-
|
|
4501
|
+
ManyToOne43(() => AdminPermission),
|
|
4502
|
+
JoinColumn43({ name: "permission_id" })
|
|
4461
4503
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
4462
4504
|
AdminRolePermission = __decorateClass([
|
|
4463
|
-
|
|
4505
|
+
Entity47("admin_role_permissions")
|
|
4464
4506
|
], AdminRolePermission);
|
|
4465
4507
|
|
|
4466
4508
|
// src/entities/admin-role.entity.ts
|
|
4467
4509
|
var AdminRole = class extends BaseEntity {
|
|
4468
4510
|
};
|
|
4469
4511
|
__decorateClass([
|
|
4470
|
-
|
|
4512
|
+
Column49({ name: "role_name", type: "varchar", nullable: true })
|
|
4471
4513
|
], AdminRole.prototype, "roleName", 2);
|
|
4472
4514
|
__decorateClass([
|
|
4473
|
-
|
|
4474
|
-
|
|
4515
|
+
Column49({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
4516
|
+
Index41()
|
|
4475
4517
|
], AdminRole.prototype, "roleSlug", 2);
|
|
4476
4518
|
__decorateClass([
|
|
4477
|
-
|
|
4519
|
+
Column49({ name: "role_description", type: "varchar", nullable: true })
|
|
4478
4520
|
], AdminRole.prototype, "roleDescription", 2);
|
|
4479
4521
|
__decorateClass([
|
|
4480
|
-
|
|
4522
|
+
Column49({ name: "is_active", type: "boolean", default: true })
|
|
4481
4523
|
], AdminRole.prototype, "isActive", 2);
|
|
4482
4524
|
__decorateClass([
|
|
4483
4525
|
OneToMany17(
|
|
@@ -4489,14 +4531,14 @@ __decorateClass([
|
|
|
4489
4531
|
OneToMany17(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
4490
4532
|
], AdminRole.prototype, "userRoles", 2);
|
|
4491
4533
|
AdminRole = __decorateClass([
|
|
4492
|
-
|
|
4534
|
+
Entity48("admin_roles")
|
|
4493
4535
|
], AdminRole);
|
|
4494
4536
|
|
|
4495
4537
|
// src/entities/admin-user-role.entity.ts
|
|
4496
4538
|
var AdminUserRole = class extends BaseEntity {
|
|
4497
4539
|
};
|
|
4498
4540
|
__decorateClass([
|
|
4499
|
-
|
|
4541
|
+
Column50({
|
|
4500
4542
|
name: "user_id",
|
|
4501
4543
|
type: "int",
|
|
4502
4544
|
nullable: true,
|
|
@@ -4504,11 +4546,11 @@ __decorateClass([
|
|
|
4504
4546
|
})
|
|
4505
4547
|
], AdminUserRole.prototype, "userId", 2);
|
|
4506
4548
|
__decorateClass([
|
|
4507
|
-
|
|
4508
|
-
|
|
4549
|
+
ManyToOne44(() => User),
|
|
4550
|
+
JoinColumn44({ name: "user_id" })
|
|
4509
4551
|
], AdminUserRole.prototype, "user", 2);
|
|
4510
4552
|
__decorateClass([
|
|
4511
|
-
|
|
4553
|
+
Column50({
|
|
4512
4554
|
name: "role_id",
|
|
4513
4555
|
type: "int",
|
|
4514
4556
|
nullable: true,
|
|
@@ -4516,47 +4558,47 @@ __decorateClass([
|
|
|
4516
4558
|
})
|
|
4517
4559
|
], AdminUserRole.prototype, "roleId", 2);
|
|
4518
4560
|
__decorateClass([
|
|
4519
|
-
|
|
4520
|
-
|
|
4561
|
+
ManyToOne44(() => AdminRole),
|
|
4562
|
+
JoinColumn44({ name: "role_id" })
|
|
4521
4563
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
4522
4564
|
AdminUserRole = __decorateClass([
|
|
4523
|
-
|
|
4565
|
+
Entity49("admin_user_roles")
|
|
4524
4566
|
], AdminUserRole);
|
|
4525
4567
|
|
|
4526
4568
|
// src/entities/freelancer-resume.entity.ts
|
|
4527
4569
|
import {
|
|
4528
|
-
Entity as
|
|
4529
|
-
Column as
|
|
4530
|
-
Index as
|
|
4531
|
-
ManyToOne as
|
|
4532
|
-
JoinColumn as
|
|
4570
|
+
Entity as Entity50,
|
|
4571
|
+
Column as Column51,
|
|
4572
|
+
Index as Index43,
|
|
4573
|
+
ManyToOne as ManyToOne45,
|
|
4574
|
+
JoinColumn as JoinColumn45
|
|
4533
4575
|
} from "typeorm";
|
|
4534
4576
|
var FreelancerResume = class extends BaseEntity {
|
|
4535
4577
|
};
|
|
4536
4578
|
// individual index to find profile by user
|
|
4537
4579
|
__decorateClass([
|
|
4538
|
-
|
|
4539
|
-
|
|
4580
|
+
Column51({ name: "user_id", type: "integer", nullable: true }),
|
|
4581
|
+
Index43()
|
|
4540
4582
|
], FreelancerResume.prototype, "userId", 2);
|
|
4541
4583
|
__decorateClass([
|
|
4542
|
-
|
|
4543
|
-
|
|
4584
|
+
ManyToOne45(() => User, (user) => user.freelancerProfile),
|
|
4585
|
+
JoinColumn45({ name: "user_id" })
|
|
4544
4586
|
], FreelancerResume.prototype, "user", 2);
|
|
4545
4587
|
__decorateClass([
|
|
4546
|
-
|
|
4588
|
+
Column51({ name: "resume_data", type: "jsonb", nullable: true })
|
|
4547
4589
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
4548
4590
|
__decorateClass([
|
|
4549
|
-
|
|
4591
|
+
Column51({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
4550
4592
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
4551
4593
|
FreelancerResume = __decorateClass([
|
|
4552
|
-
|
|
4594
|
+
Entity50("freelancer_resumes")
|
|
4553
4595
|
], FreelancerResume);
|
|
4554
4596
|
|
|
4555
4597
|
// src/entities/stripe-wallet.entity.ts
|
|
4556
|
-
import { Entity as
|
|
4598
|
+
import { Entity as Entity52, Column as Column53, Index as Index45, JoinColumn as JoinColumn47, OneToOne as OneToOne4, OneToMany as OneToMany18 } from "typeorm";
|
|
4557
4599
|
|
|
4558
4600
|
// src/entities/stripe-wallet-transaction.entity.ts
|
|
4559
|
-
import { Entity as
|
|
4601
|
+
import { Entity as Entity51, Column as Column52, Index as Index44, ManyToOne as ManyToOne46, JoinColumn as JoinColumn46 } from "typeorm";
|
|
4560
4602
|
var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionTypeEnum2) => {
|
|
4561
4603
|
StripeWalletTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
4562
4604
|
StripeWalletTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -4576,63 +4618,63 @@ var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactio
|
|
|
4576
4618
|
var StripeWalletTransaction = class extends BaseEntity {
|
|
4577
4619
|
};
|
|
4578
4620
|
__decorateClass([
|
|
4579
|
-
|
|
4580
|
-
|
|
4621
|
+
Column52({ name: "wallet_id", type: "integer", nullable: true }),
|
|
4622
|
+
Index44()
|
|
4581
4623
|
], StripeWalletTransaction.prototype, "walletId", 2);
|
|
4582
4624
|
__decorateClass([
|
|
4583
|
-
|
|
4584
|
-
|
|
4625
|
+
ManyToOne46(() => StripeWallet, (stripeWallet) => stripeWallet.transactions),
|
|
4626
|
+
JoinColumn46({ name: "wallet_id" })
|
|
4585
4627
|
], StripeWalletTransaction.prototype, "stripeWallet", 2);
|
|
4586
4628
|
__decorateClass([
|
|
4587
|
-
|
|
4629
|
+
Column52({ name: "amount", type: "bigint", nullable: true })
|
|
4588
4630
|
], StripeWalletTransaction.prototype, "amount", 2);
|
|
4589
4631
|
__decorateClass([
|
|
4590
|
-
|
|
4632
|
+
Column52({ name: "currency", type: "varchar", nullable: true })
|
|
4591
4633
|
], StripeWalletTransaction.prototype, "currency", 2);
|
|
4592
4634
|
__decorateClass([
|
|
4593
|
-
|
|
4635
|
+
Column52({ name: "type", type: "enum", enum: StripeWalletTransactionTypeEnum })
|
|
4594
4636
|
], StripeWalletTransaction.prototype, "type", 2);
|
|
4595
4637
|
__decorateClass([
|
|
4596
|
-
|
|
4638
|
+
Column52({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4597
4639
|
], StripeWalletTransaction.prototype, "status", 2);
|
|
4598
4640
|
__decorateClass([
|
|
4599
|
-
|
|
4641
|
+
Column52({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
4600
4642
|
], StripeWalletTransaction.prototype, "stripeSessionId", 2);
|
|
4601
4643
|
__decorateClass([
|
|
4602
|
-
|
|
4644
|
+
Column52({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
4603
4645
|
], StripeWalletTransaction.prototype, "stripePaymentIntentId", 2);
|
|
4604
4646
|
__decorateClass([
|
|
4605
|
-
|
|
4647
|
+
Column52({ name: "description", type: "text", nullable: true })
|
|
4606
4648
|
], StripeWalletTransaction.prototype, "description", 2);
|
|
4607
4649
|
__decorateClass([
|
|
4608
|
-
|
|
4650
|
+
Column52({ name: "deposit_amount_cents", type: "bigint", nullable: true, default: 0 })
|
|
4609
4651
|
], StripeWalletTransaction.prototype, "depositAmountCents", 2);
|
|
4610
4652
|
__decorateClass([
|
|
4611
|
-
|
|
4653
|
+
Column52({ name: "platform_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4612
4654
|
], StripeWalletTransaction.prototype, "platformFeeCents", 2);
|
|
4613
4655
|
__decorateClass([
|
|
4614
|
-
|
|
4656
|
+
Column52({ name: "tax_cents", type: "bigint", nullable: true, default: 0 })
|
|
4615
4657
|
], StripeWalletTransaction.prototype, "taxCents", 2);
|
|
4616
4658
|
__decorateClass([
|
|
4617
|
-
|
|
4659
|
+
Column52({ name: "stripe_fee_cents", type: "bigint", nullable: true, default: 0 })
|
|
4618
4660
|
], StripeWalletTransaction.prototype, "stripeFeeCents", 2);
|
|
4619
4661
|
__decorateClass([
|
|
4620
|
-
|
|
4662
|
+
Column52({ name: "total_paid_cents", type: "bigint", nullable: true, default: 0 })
|
|
4621
4663
|
], StripeWalletTransaction.prototype, "totalPaidCents", 2);
|
|
4622
4664
|
__decorateClass([
|
|
4623
|
-
|
|
4665
|
+
Column52({ name: "net_received_cents", type: "bigint", nullable: true, default: 0 })
|
|
4624
4666
|
], StripeWalletTransaction.prototype, "netReceivedCents", 2);
|
|
4625
4667
|
__decorateClass([
|
|
4626
|
-
|
|
4668
|
+
Column52({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4627
4669
|
], StripeWalletTransaction.prototype, "stripeChargeId", 2);
|
|
4628
4670
|
__decorateClass([
|
|
4629
|
-
|
|
4671
|
+
Column52({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4630
4672
|
], StripeWalletTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
4631
4673
|
__decorateClass([
|
|
4632
|
-
|
|
4674
|
+
Column52({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
4633
4675
|
], StripeWalletTransaction.prototype, "completedAt", 2);
|
|
4634
4676
|
StripeWalletTransaction = __decorateClass([
|
|
4635
|
-
|
|
4677
|
+
Entity51("stripe_wallet_transactions")
|
|
4636
4678
|
], StripeWalletTransaction);
|
|
4637
4679
|
|
|
4638
4680
|
// src/entities/stripe-wallet.entity.ts
|
|
@@ -4649,65 +4691,65 @@ var StripeWalletOnboardingStatusEnum = /* @__PURE__ */ ((StripeWalletOnboardingS
|
|
|
4649
4691
|
var StripeWallet = class extends BaseEntity {
|
|
4650
4692
|
};
|
|
4651
4693
|
__decorateClass([
|
|
4652
|
-
|
|
4653
|
-
|
|
4694
|
+
Column53({ name: "user_id", type: "integer", nullable: true }),
|
|
4695
|
+
Index45()
|
|
4654
4696
|
], StripeWallet.prototype, "userId", 2);
|
|
4655
4697
|
__decorateClass([
|
|
4656
4698
|
OneToOne4(() => User, (user) => user.stripeWallet),
|
|
4657
|
-
|
|
4699
|
+
JoinColumn47({ name: "user_id" })
|
|
4658
4700
|
], StripeWallet.prototype, "user", 2);
|
|
4659
4701
|
__decorateClass([
|
|
4660
|
-
|
|
4702
|
+
Column53({ name: "account_type", type: "enum", enum: StripeWalletAccountTypeEnum, nullable: true })
|
|
4661
4703
|
], StripeWallet.prototype, "accountType", 2);
|
|
4662
4704
|
__decorateClass([
|
|
4663
|
-
|
|
4705
|
+
Column53({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
4664
4706
|
], StripeWallet.prototype, "stripeAccountId", 2);
|
|
4665
4707
|
__decorateClass([
|
|
4666
|
-
|
|
4708
|
+
Column53({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
4667
4709
|
], StripeWallet.prototype, "stripeCustomerId", 2);
|
|
4668
4710
|
__decorateClass([
|
|
4669
|
-
|
|
4711
|
+
Column53({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4670
4712
|
], StripeWallet.prototype, "walletBalance", 2);
|
|
4671
4713
|
__decorateClass([
|
|
4672
|
-
|
|
4714
|
+
Column53({ name: "wallet_balance_cents", type: "bigint", default: 0 })
|
|
4673
4715
|
], StripeWallet.prototype, "walletBalanceCents", 2);
|
|
4674
4716
|
__decorateClass([
|
|
4675
|
-
|
|
4717
|
+
Column53({ name: "onboarding_status", type: "enum", enum: StripeWalletOnboardingStatusEnum, nullable: true })
|
|
4676
4718
|
], StripeWallet.prototype, "onboardingStatus", 2);
|
|
4677
4719
|
__decorateClass([
|
|
4678
|
-
|
|
4720
|
+
Column53({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
4679
4721
|
], StripeWallet.prototype, "stripeMetadata", 2);
|
|
4680
4722
|
__decorateClass([
|
|
4681
4723
|
OneToMany18(() => StripeWalletTransaction, (stripeWalletTransaction) => stripeWalletTransaction.stripeWallet)
|
|
4682
4724
|
], StripeWallet.prototype, "transactions", 2);
|
|
4683
4725
|
StripeWallet = __decorateClass([
|
|
4684
|
-
|
|
4726
|
+
Entity52("stripe_wallets")
|
|
4685
4727
|
], StripeWallet);
|
|
4686
4728
|
|
|
4687
4729
|
// src/entities/signature.entity.ts
|
|
4688
4730
|
import {
|
|
4689
|
-
Entity as
|
|
4690
|
-
Column as
|
|
4691
|
-
Index as
|
|
4692
|
-
ManyToOne as
|
|
4693
|
-
JoinColumn as
|
|
4731
|
+
Entity as Entity53,
|
|
4732
|
+
Column as Column54,
|
|
4733
|
+
Index as Index46,
|
|
4734
|
+
ManyToOne as ManyToOne47,
|
|
4735
|
+
JoinColumn as JoinColumn48
|
|
4694
4736
|
} from "typeorm";
|
|
4695
4737
|
var Signature = class extends BaseEntity {
|
|
4696
4738
|
};
|
|
4697
4739
|
// individual index to find profile by user
|
|
4698
4740
|
__decorateClass([
|
|
4699
|
-
|
|
4700
|
-
|
|
4741
|
+
Column54({ name: "user_id", type: "integer", nullable: true }),
|
|
4742
|
+
Index46()
|
|
4701
4743
|
], Signature.prototype, "userId", 2);
|
|
4702
4744
|
__decorateClass([
|
|
4703
|
-
|
|
4704
|
-
|
|
4745
|
+
ManyToOne47(() => User, (user) => user.signatures),
|
|
4746
|
+
JoinColumn48({ name: "user_id" })
|
|
4705
4747
|
], Signature.prototype, "user", 2);
|
|
4706
4748
|
__decorateClass([
|
|
4707
|
-
|
|
4749
|
+
Column54({ name: "signature_url", type: "text", nullable: true })
|
|
4708
4750
|
], Signature.prototype, "signatureUrl", 2);
|
|
4709
4751
|
Signature = __decorateClass([
|
|
4710
|
-
|
|
4752
|
+
Entity53("signatures")
|
|
4711
4753
|
], Signature);
|
|
4712
4754
|
|
|
4713
4755
|
// src/entities/user.entity.ts
|
|
@@ -4735,51 +4777,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
4735
4777
|
var User = class extends BaseEntity {
|
|
4736
4778
|
};
|
|
4737
4779
|
__decorateClass([
|
|
4738
|
-
|
|
4780
|
+
Column55({ name: "unique_id", type: "varchar", unique: true })
|
|
4739
4781
|
], User.prototype, "uniqueId", 2);
|
|
4740
4782
|
__decorateClass([
|
|
4741
|
-
|
|
4742
|
-
|
|
4783
|
+
Column55({ name: "parent_id", type: "integer", nullable: true }),
|
|
4784
|
+
Index47()
|
|
4743
4785
|
], User.prototype, "parentId", 2);
|
|
4744
4786
|
__decorateClass([
|
|
4745
|
-
|
|
4746
|
-
|
|
4787
|
+
ManyToOne48(() => User, (user) => user.children, { nullable: true }),
|
|
4788
|
+
JoinColumn49({ name: "parent_id" })
|
|
4747
4789
|
], User.prototype, "parent", 2);
|
|
4748
4790
|
__decorateClass([
|
|
4749
4791
|
OneToMany19(() => User, (user) => user.parent)
|
|
4750
4792
|
], User.prototype, "children", 2);
|
|
4751
4793
|
__decorateClass([
|
|
4752
|
-
|
|
4794
|
+
Column55({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
4753
4795
|
], User.prototype, "username", 2);
|
|
4754
4796
|
__decorateClass([
|
|
4755
|
-
|
|
4797
|
+
Column55({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
4756
4798
|
], User.prototype, "firstName", 2);
|
|
4757
4799
|
__decorateClass([
|
|
4758
|
-
|
|
4800
|
+
Column55({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
4759
4801
|
], User.prototype, "lastName", 2);
|
|
4760
4802
|
__decorateClass([
|
|
4761
|
-
|
|
4803
|
+
Column55({ name: "date_of_birth", type: "date", nullable: true })
|
|
4762
4804
|
], User.prototype, "dateOfBirth", 2);
|
|
4763
4805
|
__decorateClass([
|
|
4764
|
-
|
|
4806
|
+
Column55({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
4765
4807
|
], User.prototype, "gender", 2);
|
|
4766
4808
|
__decorateClass([
|
|
4767
|
-
|
|
4809
|
+
Column55({ name: "profile_picture_url", type: "text", nullable: true })
|
|
4768
4810
|
], User.prototype, "profilePictureUrl", 2);
|
|
4769
4811
|
__decorateClass([
|
|
4770
|
-
|
|
4812
|
+
Column55({ name: "email", type: "varchar", unique: true })
|
|
4771
4813
|
], User.prototype, "email", 2);
|
|
4772
4814
|
__decorateClass([
|
|
4773
|
-
|
|
4815
|
+
Column55({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4774
4816
|
], User.prototype, "mobileCode", 2);
|
|
4775
4817
|
__decorateClass([
|
|
4776
|
-
|
|
4818
|
+
Column55({ name: "mobile", type: "varchar", nullable: true })
|
|
4777
4819
|
], User.prototype, "mobile", 2);
|
|
4778
4820
|
__decorateClass([
|
|
4779
|
-
|
|
4821
|
+
Column55({ name: "password", type: "varchar", nullable: true })
|
|
4780
4822
|
], User.prototype, "password", 2);
|
|
4781
4823
|
__decorateClass([
|
|
4782
|
-
|
|
4824
|
+
Column55({
|
|
4783
4825
|
name: "account_type",
|
|
4784
4826
|
type: "enum",
|
|
4785
4827
|
enum: AccountType,
|
|
@@ -4787,7 +4829,7 @@ __decorateClass([
|
|
|
4787
4829
|
})
|
|
4788
4830
|
], User.prototype, "accountType", 2);
|
|
4789
4831
|
__decorateClass([
|
|
4790
|
-
|
|
4832
|
+
Column55({
|
|
4791
4833
|
name: "account_status",
|
|
4792
4834
|
type: "enum",
|
|
4793
4835
|
enum: AccountStatus,
|
|
@@ -4795,42 +4837,42 @@ __decorateClass([
|
|
|
4795
4837
|
})
|
|
4796
4838
|
], User.prototype, "accountStatus", 2);
|
|
4797
4839
|
__decorateClass([
|
|
4798
|
-
|
|
4840
|
+
Column55({ name: "is_email_verified", type: "boolean", default: false })
|
|
4799
4841
|
], User.prototype, "isEmailVerified", 2);
|
|
4800
4842
|
__decorateClass([
|
|
4801
|
-
|
|
4843
|
+
Column55({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
4802
4844
|
], User.prototype, "isMobileVerified", 2);
|
|
4803
4845
|
__decorateClass([
|
|
4804
|
-
|
|
4846
|
+
Column55({ name: "is_social", type: "boolean", default: false })
|
|
4805
4847
|
], User.prototype, "isSocial", 2);
|
|
4806
4848
|
__decorateClass([
|
|
4807
|
-
|
|
4849
|
+
Column55({
|
|
4808
4850
|
name: "last_login_at",
|
|
4809
4851
|
type: "timestamp with time zone",
|
|
4810
4852
|
nullable: true
|
|
4811
4853
|
})
|
|
4812
4854
|
], User.prototype, "lastLoginAt", 2);
|
|
4813
4855
|
__decorateClass([
|
|
4814
|
-
|
|
4856
|
+
Column55({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
4815
4857
|
], User.prototype, "lastLoginIp", 2);
|
|
4816
4858
|
__decorateClass([
|
|
4817
|
-
|
|
4859
|
+
Column55({ name: "reset_token", type: "varchar", nullable: true })
|
|
4818
4860
|
], User.prototype, "resetToken", 2);
|
|
4819
4861
|
__decorateClass([
|
|
4820
|
-
|
|
4862
|
+
Column55({
|
|
4821
4863
|
name: "reset_token_expire_at",
|
|
4822
4864
|
type: "timestamp with time zone",
|
|
4823
4865
|
nullable: true
|
|
4824
4866
|
})
|
|
4825
4867
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
4826
4868
|
__decorateClass([
|
|
4827
|
-
|
|
4869
|
+
Column55({ name: "set_password_token", type: "varchar", nullable: true })
|
|
4828
4870
|
], User.prototype, "setPasswordToken", 2);
|
|
4829
4871
|
__decorateClass([
|
|
4830
4872
|
OneToMany19(() => RefreshToken, (token) => token.user)
|
|
4831
4873
|
], User.prototype, "refreshTokens", 2);
|
|
4832
4874
|
__decorateClass([
|
|
4833
|
-
|
|
4875
|
+
Column55({
|
|
4834
4876
|
name: "provider",
|
|
4835
4877
|
type: "enum",
|
|
4836
4878
|
enum: Provider,
|
|
@@ -4839,19 +4881,19 @@ __decorateClass([
|
|
|
4839
4881
|
})
|
|
4840
4882
|
], User.prototype, "provider", 2);
|
|
4841
4883
|
__decorateClass([
|
|
4842
|
-
|
|
4884
|
+
Column55({ name: "provider_token", type: "varchar", nullable: true })
|
|
4843
4885
|
], User.prototype, "providerToken", 2);
|
|
4844
4886
|
__decorateClass([
|
|
4845
|
-
|
|
4887
|
+
Column55({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
4846
4888
|
], User.prototype, "linkedInId", 2);
|
|
4847
4889
|
__decorateClass([
|
|
4848
|
-
|
|
4890
|
+
Column55({ name: "google_id", type: "varchar", nullable: true })
|
|
4849
4891
|
], User.prototype, "googleId", 2);
|
|
4850
4892
|
__decorateClass([
|
|
4851
|
-
|
|
4893
|
+
Column55({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
4852
4894
|
], User.prototype, "gitLabsId", 2);
|
|
4853
4895
|
__decorateClass([
|
|
4854
|
-
|
|
4896
|
+
Column55({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
4855
4897
|
], User.prototype, "onBoardedBy", 2);
|
|
4856
4898
|
__decorateClass([
|
|
4857
4899
|
OneToMany19(() => Otp, (otp) => otp.user)
|
|
@@ -5003,8 +5045,14 @@ __decorateClass([
|
|
|
5003
5045
|
__decorateClass([
|
|
5004
5046
|
OneToMany19(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
5005
5047
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
5048
|
+
__decorateClass([
|
|
5049
|
+
OneToMany19(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
5050
|
+
], User.prototype, "clientPreferencesGiven", 2);
|
|
5051
|
+
__decorateClass([
|
|
5052
|
+
OneToMany19(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
5053
|
+
], User.prototype, "clientPreferencesReceived", 2);
|
|
5006
5054
|
User = __decorateClass([
|
|
5007
|
-
|
|
5055
|
+
Entity54("users")
|
|
5008
5056
|
], User);
|
|
5009
5057
|
|
|
5010
5058
|
// src/entities/rating.entity.ts
|
|
@@ -5016,36 +5064,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
5016
5064
|
var Rating = class extends BaseEntity {
|
|
5017
5065
|
};
|
|
5018
5066
|
__decorateClass([
|
|
5019
|
-
|
|
5020
|
-
|
|
5067
|
+
Column56({ name: "reviewer_id", type: "integer" }),
|
|
5068
|
+
Index48()
|
|
5021
5069
|
], Rating.prototype, "reviewer_id", 2);
|
|
5022
5070
|
__decorateClass([
|
|
5023
|
-
|
|
5024
|
-
|
|
5071
|
+
ManyToOne49(() => User, { onDelete: "CASCADE" }),
|
|
5072
|
+
JoinColumn50({ name: "reviewer_id" })
|
|
5025
5073
|
], Rating.prototype, "reviewer", 2);
|
|
5026
5074
|
__decorateClass([
|
|
5027
|
-
|
|
5028
|
-
|
|
5075
|
+
Column56({ name: "reviewee_id", type: "integer" }),
|
|
5076
|
+
Index48()
|
|
5029
5077
|
], Rating.prototype, "reviewee_id", 2);
|
|
5030
5078
|
__decorateClass([
|
|
5031
|
-
|
|
5032
|
-
|
|
5079
|
+
ManyToOne49(() => User, { onDelete: "CASCADE" }),
|
|
5080
|
+
JoinColumn50({ name: "reviewee_id" })
|
|
5033
5081
|
], Rating.prototype, "reviewee", 2);
|
|
5034
5082
|
__decorateClass([
|
|
5035
|
-
|
|
5083
|
+
Column56({
|
|
5036
5084
|
type: "enum",
|
|
5037
5085
|
enum: RatingTypeEnum,
|
|
5038
5086
|
nullable: true
|
|
5039
5087
|
})
|
|
5040
5088
|
], Rating.prototype, "ratingType", 2);
|
|
5041
5089
|
__decorateClass([
|
|
5042
|
-
|
|
5090
|
+
Column56({ type: "integer", nullable: true })
|
|
5043
5091
|
], Rating.prototype, "rating", 2);
|
|
5044
5092
|
__decorateClass([
|
|
5045
|
-
|
|
5093
|
+
Column56({ type: "text", nullable: true })
|
|
5046
5094
|
], Rating.prototype, "review", 2);
|
|
5047
5095
|
Rating = __decorateClass([
|
|
5048
|
-
|
|
5096
|
+
Entity55("ratings")
|
|
5049
5097
|
], Rating);
|
|
5050
5098
|
|
|
5051
5099
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -6837,11 +6885,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
6837
6885
|
};
|
|
6838
6886
|
|
|
6839
6887
|
// src/entities/sequence-generator.entity.ts
|
|
6840
|
-
import { Entity as
|
|
6888
|
+
import { Entity as Entity56, Column as Column57 } from "typeorm";
|
|
6841
6889
|
var SequenceGenerator = class extends BaseEntity {
|
|
6842
6890
|
};
|
|
6843
6891
|
__decorateClass([
|
|
6844
|
-
|
|
6892
|
+
Column57({
|
|
6845
6893
|
name: "module",
|
|
6846
6894
|
type: "varchar",
|
|
6847
6895
|
length: 50,
|
|
@@ -6850,7 +6898,7 @@ __decorateClass([
|
|
|
6850
6898
|
})
|
|
6851
6899
|
], SequenceGenerator.prototype, "module", 2);
|
|
6852
6900
|
__decorateClass([
|
|
6853
|
-
|
|
6901
|
+
Column57({
|
|
6854
6902
|
name: "prefix",
|
|
6855
6903
|
type: "varchar",
|
|
6856
6904
|
length: 10,
|
|
@@ -6859,7 +6907,7 @@ __decorateClass([
|
|
|
6859
6907
|
})
|
|
6860
6908
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
6861
6909
|
__decorateClass([
|
|
6862
|
-
|
|
6910
|
+
Column57({
|
|
6863
6911
|
name: "last_sequence",
|
|
6864
6912
|
type: "int",
|
|
6865
6913
|
nullable: false,
|
|
@@ -6867,7 +6915,7 @@ __decorateClass([
|
|
|
6867
6915
|
})
|
|
6868
6916
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
6869
6917
|
__decorateClass([
|
|
6870
|
-
|
|
6918
|
+
Column57({
|
|
6871
6919
|
name: "year",
|
|
6872
6920
|
type: "int",
|
|
6873
6921
|
nullable: true,
|
|
@@ -6875,11 +6923,11 @@ __decorateClass([
|
|
|
6875
6923
|
})
|
|
6876
6924
|
], SequenceGenerator.prototype, "year", 2);
|
|
6877
6925
|
SequenceGenerator = __decorateClass([
|
|
6878
|
-
|
|
6926
|
+
Entity56("sequence_generators")
|
|
6879
6927
|
], SequenceGenerator);
|
|
6880
6928
|
|
|
6881
6929
|
// src/entities/question.entity.ts
|
|
6882
|
-
import { Entity as
|
|
6930
|
+
import { Entity as Entity57, Column as Column58 } from "typeorm";
|
|
6883
6931
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
6884
6932
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
6885
6933
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -6888,16 +6936,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
6888
6936
|
var Question = class extends BaseEntity {
|
|
6889
6937
|
};
|
|
6890
6938
|
__decorateClass([
|
|
6891
|
-
|
|
6939
|
+
Column58({ name: "question", type: "varchar" })
|
|
6892
6940
|
], Question.prototype, "question", 2);
|
|
6893
6941
|
__decorateClass([
|
|
6894
|
-
|
|
6942
|
+
Column58({ name: "hint", type: "varchar", nullable: true })
|
|
6895
6943
|
], Question.prototype, "hint", 2);
|
|
6896
6944
|
__decorateClass([
|
|
6897
|
-
|
|
6945
|
+
Column58({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6898
6946
|
], Question.prototype, "slug", 2);
|
|
6899
6947
|
__decorateClass([
|
|
6900
|
-
|
|
6948
|
+
Column58({
|
|
6901
6949
|
name: "question_for",
|
|
6902
6950
|
type: "enum",
|
|
6903
6951
|
enum: QuestionFor,
|
|
@@ -6905,119 +6953,119 @@ __decorateClass([
|
|
|
6905
6953
|
})
|
|
6906
6954
|
], Question.prototype, "questionFor", 2);
|
|
6907
6955
|
__decorateClass([
|
|
6908
|
-
|
|
6956
|
+
Column58({ name: "type", type: "varchar", nullable: true })
|
|
6909
6957
|
], Question.prototype, "type", 2);
|
|
6910
6958
|
__decorateClass([
|
|
6911
|
-
|
|
6959
|
+
Column58({ name: "options", type: "jsonb", nullable: true })
|
|
6912
6960
|
], Question.prototype, "options", 2);
|
|
6913
6961
|
__decorateClass([
|
|
6914
|
-
|
|
6962
|
+
Column58({ name: "is_active", type: "boolean", default: false })
|
|
6915
6963
|
], Question.prototype, "isActive", 2);
|
|
6916
6964
|
Question = __decorateClass([
|
|
6917
|
-
|
|
6965
|
+
Entity57("questions")
|
|
6918
6966
|
], Question);
|
|
6919
6967
|
|
|
6920
6968
|
// src/entities/skill.entity.ts
|
|
6921
|
-
import { Entity as
|
|
6969
|
+
import { Entity as Entity58, Column as Column59 } from "typeorm";
|
|
6922
6970
|
var Skill = class extends BaseEntity {
|
|
6923
6971
|
};
|
|
6924
6972
|
__decorateClass([
|
|
6925
|
-
|
|
6973
|
+
Column59({ name: "name", type: "varchar", nullable: true })
|
|
6926
6974
|
], Skill.prototype, "name", 2);
|
|
6927
6975
|
__decorateClass([
|
|
6928
|
-
|
|
6976
|
+
Column59({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6929
6977
|
], Skill.prototype, "slug", 2);
|
|
6930
6978
|
__decorateClass([
|
|
6931
|
-
|
|
6979
|
+
Column59({ name: "is_active", type: "boolean", default: false })
|
|
6932
6980
|
], Skill.prototype, "isActive", 2);
|
|
6933
6981
|
Skill = __decorateClass([
|
|
6934
|
-
|
|
6982
|
+
Entity58("skills")
|
|
6935
6983
|
], Skill);
|
|
6936
6984
|
|
|
6937
6985
|
// src/entities/job-role.entity.ts
|
|
6938
|
-
import { Entity as
|
|
6986
|
+
import { Entity as Entity59, Column as Column60 } from "typeorm";
|
|
6939
6987
|
var JobRoles = class extends BaseEntity {
|
|
6940
6988
|
};
|
|
6941
6989
|
__decorateClass([
|
|
6942
|
-
|
|
6990
|
+
Column60({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
6943
6991
|
], JobRoles.prototype, "slug", 2);
|
|
6944
6992
|
__decorateClass([
|
|
6945
|
-
|
|
6993
|
+
Column60({ name: "name", type: "varchar", nullable: true })
|
|
6946
6994
|
], JobRoles.prototype, "name", 2);
|
|
6947
6995
|
__decorateClass([
|
|
6948
|
-
|
|
6996
|
+
Column60({ name: "is_active", type: "boolean", default: true })
|
|
6949
6997
|
], JobRoles.prototype, "isActive", 2);
|
|
6950
6998
|
JobRoles = __decorateClass([
|
|
6951
|
-
|
|
6999
|
+
Entity59("job_roles")
|
|
6952
7000
|
], JobRoles);
|
|
6953
7001
|
|
|
6954
7002
|
// src/entities/plan.entity.ts
|
|
6955
|
-
import { Entity as
|
|
7003
|
+
import { Entity as Entity61, Column as Column62, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
6956
7004
|
|
|
6957
7005
|
// src/entities/feature.entity.ts
|
|
6958
|
-
import { Entity as
|
|
7006
|
+
import { Entity as Entity60, Column as Column61, ManyToMany as ManyToMany2 } from "typeorm";
|
|
6959
7007
|
var Feature = class extends BaseEntity {
|
|
6960
7008
|
};
|
|
6961
7009
|
__decorateClass([
|
|
6962
|
-
|
|
7010
|
+
Column61({ name: "name", type: "varchar", unique: true })
|
|
6963
7011
|
], Feature.prototype, "name", 2);
|
|
6964
7012
|
__decorateClass([
|
|
6965
7013
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
6966
7014
|
], Feature.prototype, "plans", 2);
|
|
6967
7015
|
Feature = __decorateClass([
|
|
6968
|
-
|
|
7016
|
+
Entity60("features")
|
|
6969
7017
|
], Feature);
|
|
6970
7018
|
|
|
6971
7019
|
// src/entities/plan.entity.ts
|
|
6972
7020
|
var Plan = class extends BaseEntity {
|
|
6973
7021
|
};
|
|
6974
7022
|
__decorateClass([
|
|
6975
|
-
|
|
7023
|
+
Column62({ name: "name", type: "varchar", unique: true })
|
|
6976
7024
|
], Plan.prototype, "name", 2);
|
|
6977
7025
|
__decorateClass([
|
|
6978
|
-
|
|
7026
|
+
Column62({ name: "description", type: "varchar", nullable: true })
|
|
6979
7027
|
], Plan.prototype, "description", 2);
|
|
6980
7028
|
__decorateClass([
|
|
6981
|
-
|
|
7029
|
+
Column62({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
6982
7030
|
], Plan.prototype, "price", 2);
|
|
6983
7031
|
__decorateClass([
|
|
6984
|
-
|
|
7032
|
+
Column62({ name: "billing_period", type: "varchar" })
|
|
6985
7033
|
], Plan.prototype, "billingPeriod", 2);
|
|
6986
7034
|
__decorateClass([
|
|
6987
|
-
|
|
7035
|
+
Column62({ name: "is_current", type: "boolean", default: false })
|
|
6988
7036
|
], Plan.prototype, "isCurrent", 2);
|
|
6989
7037
|
__decorateClass([
|
|
6990
7038
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
6991
7039
|
JoinTable()
|
|
6992
7040
|
], Plan.prototype, "features", 2);
|
|
6993
7041
|
Plan = __decorateClass([
|
|
6994
|
-
|
|
7042
|
+
Entity61("plans")
|
|
6995
7043
|
], Plan);
|
|
6996
7044
|
|
|
6997
7045
|
// src/entities/cms.entity.ts
|
|
6998
|
-
import { Entity as
|
|
7046
|
+
import { Entity as Entity62, Column as Column63 } from "typeorm";
|
|
6999
7047
|
var Cms = class extends BaseEntity {
|
|
7000
7048
|
};
|
|
7001
7049
|
__decorateClass([
|
|
7002
|
-
|
|
7050
|
+
Column63({ name: "title", type: "varchar", nullable: true })
|
|
7003
7051
|
], Cms.prototype, "title", 2);
|
|
7004
7052
|
__decorateClass([
|
|
7005
|
-
|
|
7053
|
+
Column63({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7006
7054
|
], Cms.prototype, "slug", 2);
|
|
7007
7055
|
__decorateClass([
|
|
7008
|
-
|
|
7056
|
+
Column63({ name: "content", type: "varchar", nullable: true })
|
|
7009
7057
|
], Cms.prototype, "content", 2);
|
|
7010
7058
|
__decorateClass([
|
|
7011
|
-
|
|
7059
|
+
Column63({ name: "is_active", type: "boolean", default: true })
|
|
7012
7060
|
], Cms.prototype, "isActive", 2);
|
|
7013
7061
|
Cms = __decorateClass([
|
|
7014
|
-
|
|
7062
|
+
Entity62("cms")
|
|
7015
7063
|
], Cms);
|
|
7016
7064
|
|
|
7017
7065
|
// src/entities/lead.entity.ts
|
|
7018
7066
|
import {
|
|
7019
|
-
Entity as
|
|
7020
|
-
Column as
|
|
7067
|
+
Entity as Entity63,
|
|
7068
|
+
Column as Column64
|
|
7021
7069
|
} from "typeorm";
|
|
7022
7070
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
7023
7071
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -7027,22 +7075,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
7027
7075
|
var Lead = class extends BaseEntity {
|
|
7028
7076
|
};
|
|
7029
7077
|
__decorateClass([
|
|
7030
|
-
|
|
7078
|
+
Column64({ name: "name", type: "varchar", nullable: true })
|
|
7031
7079
|
], Lead.prototype, "name", 2);
|
|
7032
7080
|
__decorateClass([
|
|
7033
|
-
|
|
7081
|
+
Column64({ name: "mobile_code", type: "varchar", nullable: true })
|
|
7034
7082
|
], Lead.prototype, "mobileCode", 2);
|
|
7035
7083
|
__decorateClass([
|
|
7036
|
-
|
|
7084
|
+
Column64({ name: "mobile", type: "varchar", nullable: true })
|
|
7037
7085
|
], Lead.prototype, "mobile", 2);
|
|
7038
7086
|
__decorateClass([
|
|
7039
|
-
|
|
7087
|
+
Column64({ name: "email", type: "varchar", nullable: true })
|
|
7040
7088
|
], Lead.prototype, "email", 2);
|
|
7041
7089
|
__decorateClass([
|
|
7042
|
-
|
|
7090
|
+
Column64({ name: "description", type: "varchar", nullable: true })
|
|
7043
7091
|
], Lead.prototype, "description", 2);
|
|
7044
7092
|
__decorateClass([
|
|
7045
|
-
|
|
7093
|
+
Column64({
|
|
7046
7094
|
name: "category",
|
|
7047
7095
|
type: "enum",
|
|
7048
7096
|
enum: CategoryEmum,
|
|
@@ -7050,7 +7098,7 @@ __decorateClass([
|
|
|
7050
7098
|
})
|
|
7051
7099
|
], Lead.prototype, "category", 2);
|
|
7052
7100
|
Lead = __decorateClass([
|
|
7053
|
-
|
|
7101
|
+
Entity63("leads")
|
|
7054
7102
|
], Lead);
|
|
7055
7103
|
|
|
7056
7104
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -7291,7 +7339,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
7291
7339
|
], ClientFreelancerRecommendation);
|
|
7292
7340
|
|
|
7293
7341
|
// src/entities/commission.entity.ts
|
|
7294
|
-
import { Entity as
|
|
7342
|
+
import { Entity as Entity64, Column as Column65 } from "typeorm";
|
|
7295
7343
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
7296
7344
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
7297
7345
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -7300,7 +7348,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
7300
7348
|
var Commission = class extends BaseEntity {
|
|
7301
7349
|
};
|
|
7302
7350
|
__decorateClass([
|
|
7303
|
-
|
|
7351
|
+
Column65({
|
|
7304
7352
|
name: "freelancer_commission_type",
|
|
7305
7353
|
type: "enum",
|
|
7306
7354
|
enum: CommissionTypeEnum,
|
|
@@ -7308,10 +7356,10 @@ __decorateClass([
|
|
|
7308
7356
|
})
|
|
7309
7357
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
7310
7358
|
__decorateClass([
|
|
7311
|
-
|
|
7359
|
+
Column65({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
7312
7360
|
], Commission.prototype, "freelancerCommission", 2);
|
|
7313
7361
|
__decorateClass([
|
|
7314
|
-
|
|
7362
|
+
Column65({
|
|
7315
7363
|
name: "client_commission_type",
|
|
7316
7364
|
type: "enum",
|
|
7317
7365
|
enum: CommissionTypeEnum,
|
|
@@ -7319,74 +7367,74 @@ __decorateClass([
|
|
|
7319
7367
|
})
|
|
7320
7368
|
], Commission.prototype, "clientCommissionType", 2);
|
|
7321
7369
|
__decorateClass([
|
|
7322
|
-
|
|
7370
|
+
Column65({ name: "client_commission", type: "integer", default: 0 })
|
|
7323
7371
|
], Commission.prototype, "clientCommission", 2);
|
|
7324
7372
|
Commission = __decorateClass([
|
|
7325
|
-
|
|
7373
|
+
Entity64("commissions")
|
|
7326
7374
|
], Commission);
|
|
7327
7375
|
|
|
7328
7376
|
// src/entities/calendly-meeting-log.entity.ts
|
|
7329
7377
|
import {
|
|
7330
|
-
Entity as
|
|
7331
|
-
Column as
|
|
7332
|
-
Index as
|
|
7378
|
+
Entity as Entity65,
|
|
7379
|
+
Column as Column66,
|
|
7380
|
+
Index as Index49
|
|
7333
7381
|
} from "typeorm";
|
|
7334
7382
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
7335
7383
|
};
|
|
7336
7384
|
__decorateClass([
|
|
7337
|
-
|
|
7338
|
-
|
|
7385
|
+
Column66({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
7386
|
+
Index49()
|
|
7339
7387
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
7340
7388
|
__decorateClass([
|
|
7341
|
-
|
|
7389
|
+
Column66({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
7342
7390
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
7343
7391
|
__decorateClass([
|
|
7344
|
-
|
|
7392
|
+
Column66({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7345
7393
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
7346
7394
|
CalendlyMeetingLog = __decorateClass([
|
|
7347
|
-
|
|
7395
|
+
Entity65("calendly_meeting_logs")
|
|
7348
7396
|
], CalendlyMeetingLog);
|
|
7349
7397
|
|
|
7350
7398
|
// src/entities/zoom-meeting-log.entity.ts
|
|
7351
7399
|
import {
|
|
7352
|
-
Entity as
|
|
7353
|
-
Column as
|
|
7354
|
-
Index as
|
|
7400
|
+
Entity as Entity66,
|
|
7401
|
+
Column as Column67,
|
|
7402
|
+
Index as Index50
|
|
7355
7403
|
} from "typeorm";
|
|
7356
7404
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
7357
7405
|
};
|
|
7358
7406
|
__decorateClass([
|
|
7359
|
-
|
|
7360
|
-
|
|
7407
|
+
Column67({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
7408
|
+
Index50()
|
|
7361
7409
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
7362
7410
|
__decorateClass([
|
|
7363
|
-
|
|
7411
|
+
Column67({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
7364
7412
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
7365
7413
|
__decorateClass([
|
|
7366
|
-
|
|
7414
|
+
Column67({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7367
7415
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
7368
7416
|
ZoomMeetingLog = __decorateClass([
|
|
7369
|
-
|
|
7417
|
+
Entity66("zoom_meeting_logs")
|
|
7370
7418
|
], ZoomMeetingLog);
|
|
7371
7419
|
|
|
7372
7420
|
// src/entities/stripe-logs.entity.ts
|
|
7373
|
-
import { Entity as
|
|
7421
|
+
import { Entity as Entity67, Column as Column68 } from "typeorm";
|
|
7374
7422
|
var StripeLog = class extends BaseEntity {
|
|
7375
7423
|
};
|
|
7376
7424
|
__decorateClass([
|
|
7377
|
-
|
|
7425
|
+
Column68({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
7378
7426
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
7379
7427
|
__decorateClass([
|
|
7380
|
-
|
|
7428
|
+
Column68({ name: "event_type", type: "varchar", nullable: true })
|
|
7381
7429
|
], StripeLog.prototype, "eventType", 2);
|
|
7382
7430
|
__decorateClass([
|
|
7383
|
-
|
|
7431
|
+
Column68({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
7384
7432
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
7385
7433
|
__decorateClass([
|
|
7386
|
-
|
|
7434
|
+
Column68({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
7387
7435
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
7388
7436
|
StripeLog = __decorateClass([
|
|
7389
|
-
|
|
7437
|
+
Entity67("stripe_logs")
|
|
7390
7438
|
], StripeLog);
|
|
7391
7439
|
export {
|
|
7392
7440
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -7434,6 +7482,8 @@ export {
|
|
|
7434
7482
|
CategoryEmum,
|
|
7435
7483
|
CategoryEmumDto,
|
|
7436
7484
|
City,
|
|
7485
|
+
ClientCandidatePreference,
|
|
7486
|
+
ClientCandidatePreferenceEnum,
|
|
7437
7487
|
ClientChangePasswordDto,
|
|
7438
7488
|
ClientCreateAccountDto,
|
|
7439
7489
|
ClientFreelancerRecommendation,
|