@experts_hub/shared 1.0.498 → 1.0.500
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/contract.entity.d.ts +2 -0
- package/dist/entities/escrow-wallet-transaction.entity.d.ts +23 -0
- package/dist/entities/escrow-wallet.entity.d.ts +18 -0
- package/dist/entities/index.d.ts +2 -0
- package/dist/entities/invoice.entity.d.ts +2 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +3 -0
- package/dist/index.d.mts +131 -91
- package/dist/index.d.ts +131 -91
- package/dist/index.js +1162 -1029
- package/dist/index.mjs +1184 -1055
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -121,6 +121,10 @@ __export(index_exports, {
|
|
|
121
121
|
DurationTypeEnum: () => DurationTypeEnum,
|
|
122
122
|
EducationDto: () => EducationDto,
|
|
123
123
|
EmploymentType: () => EmploymentType,
|
|
124
|
+
EscrowWallet: () => EscrowWallet,
|
|
125
|
+
EscrowWalletTransaction: () => EscrowWalletTransaction,
|
|
126
|
+
EscrowWalletTransactionForEnum: () => EscrowWalletTransactionForEnum,
|
|
127
|
+
EscrowWalletTransactionTypeEnum: () => EscrowWalletTransactionTypeEnum,
|
|
124
128
|
ExperienceDto: () => ExperienceDto,
|
|
125
129
|
F2FInterview: () => F2FInterview,
|
|
126
130
|
F2FInterviewSchedule: () => F2FInterviewSchedule,
|
|
@@ -1700,10 +1704,10 @@ var RATING_PATTERN = {
|
|
|
1700
1704
|
var import_class_validator42 = require("class-validator");
|
|
1701
1705
|
|
|
1702
1706
|
// src/entities/rating.entity.ts
|
|
1703
|
-
var
|
|
1707
|
+
var import_typeorm61 = require("typeorm");
|
|
1704
1708
|
|
|
1705
1709
|
// src/entities/user.entity.ts
|
|
1706
|
-
var
|
|
1710
|
+
var import_typeorm60 = require("typeorm");
|
|
1707
1711
|
|
|
1708
1712
|
// src/entities/base.entity.ts
|
|
1709
1713
|
var import_typeorm = require("typeorm");
|
|
@@ -2477,7 +2481,7 @@ FreelancerProfile = __decorateClass([
|
|
|
2477
2481
|
], FreelancerProfile);
|
|
2478
2482
|
|
|
2479
2483
|
// src/entities/job.entity.ts
|
|
2480
|
-
var
|
|
2484
|
+
var import_typeorm30 = require("typeorm");
|
|
2481
2485
|
|
|
2482
2486
|
// src/entities/job-skill.entity.ts
|
|
2483
2487
|
var import_typeorm10 = require("typeorm");
|
|
@@ -3346,309 +3350,76 @@ JobRecommendation = __decorateClass([
|
|
|
3346
3350
|
], JobRecommendation);
|
|
3347
3351
|
|
|
3348
3352
|
// src/entities/contract.entity.ts
|
|
3349
|
-
var
|
|
3350
|
-
var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
|
|
3351
|
-
ContractStatusEnum2["GENERATED"] = "GENERATED";
|
|
3352
|
-
ContractStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
3353
|
-
ContractStatusEnum2["SENT"] = "SENT";
|
|
3354
|
-
ContractStatusEnum2["SIGNED"] = "SIGNED";
|
|
3355
|
-
ContractStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
3356
|
-
ContractStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
3357
|
-
ContractStatusEnum2["DISPUTED"] = "DISPUTED";
|
|
3358
|
-
ContractStatusEnum2["REJECTED"] = "REJECTED";
|
|
3359
|
-
ContractStatusEnum2["RENEWED"] = "RENEWED";
|
|
3360
|
-
ContractStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
3361
|
-
return ContractStatusEnum2;
|
|
3362
|
-
})(ContractStatusEnum || {});
|
|
3363
|
-
var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
3364
|
-
ContractTypeEnum2["NDA"] = "NDA";
|
|
3365
|
-
ContractTypeEnum2["WORK"] = "WORK";
|
|
3366
|
-
return ContractTypeEnum2;
|
|
3367
|
-
})(ContractTypeEnum || {});
|
|
3368
|
-
var Contract = class extends BaseEntity {
|
|
3369
|
-
// stores the positions JSON
|
|
3370
|
-
};
|
|
3371
|
-
__decorateClass([
|
|
3372
|
-
(0, import_typeorm22.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
3373
|
-
], Contract.prototype, "contractUniqueId", 2);
|
|
3374
|
-
__decorateClass([
|
|
3375
|
-
(0, import_typeorm22.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3376
|
-
(0, import_typeorm22.Index)()
|
|
3377
|
-
], Contract.prototype, "jobId", 2);
|
|
3378
|
-
__decorateClass([
|
|
3379
|
-
(0, import_typeorm22.ManyToOne)(() => Job, (job) => job.contracts),
|
|
3380
|
-
(0, import_typeorm22.JoinColumn)({ name: "job_id" })
|
|
3381
|
-
], Contract.prototype, "job", 2);
|
|
3382
|
-
__decorateClass([
|
|
3383
|
-
(0, import_typeorm22.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3384
|
-
(0, import_typeorm22.Index)()
|
|
3385
|
-
], Contract.prototype, "clientId", 2);
|
|
3386
|
-
__decorateClass([
|
|
3387
|
-
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.clientContracts),
|
|
3388
|
-
(0, import_typeorm22.JoinColumn)({ name: "client_id" })
|
|
3389
|
-
], Contract.prototype, "client", 2);
|
|
3390
|
-
__decorateClass([
|
|
3391
|
-
(0, import_typeorm22.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3392
|
-
(0, import_typeorm22.Index)()
|
|
3393
|
-
], Contract.prototype, "freelancerId", 2);
|
|
3394
|
-
__decorateClass([
|
|
3395
|
-
(0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerContracts),
|
|
3396
|
-
(0, import_typeorm22.JoinColumn)({ name: "freelancer_id" })
|
|
3397
|
-
], Contract.prototype, "freelancer", 2);
|
|
3398
|
-
__decorateClass([
|
|
3399
|
-
(0, import_typeorm22.Column)({ name: "duration", type: "integer", nullable: true })
|
|
3400
|
-
], Contract.prototype, "duration", 2);
|
|
3401
|
-
__decorateClass([
|
|
3402
|
-
(0, import_typeorm22.Column)({
|
|
3403
|
-
name: "status",
|
|
3404
|
-
type: "enum",
|
|
3405
|
-
enum: ContractStatusEnum,
|
|
3406
|
-
nullable: true
|
|
3407
|
-
})
|
|
3408
|
-
], Contract.prototype, "status", 2);
|
|
3409
|
-
__decorateClass([
|
|
3410
|
-
(0, import_typeorm22.Column)({
|
|
3411
|
-
name: "type",
|
|
3412
|
-
type: "enum",
|
|
3413
|
-
enum: ContractTypeEnum,
|
|
3414
|
-
nullable: true
|
|
3415
|
-
})
|
|
3416
|
-
], Contract.prototype, "type", 2);
|
|
3417
|
-
__decorateClass([
|
|
3418
|
-
(0, import_typeorm22.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
3419
|
-
], Contract.prototype, "invoicingCycle", 2);
|
|
3420
|
-
__decorateClass([
|
|
3421
|
-
(0, import_typeorm22.Column)({
|
|
3422
|
-
name: "escrow_deposite_amount",
|
|
3423
|
-
type: "decimal",
|
|
3424
|
-
precision: 10,
|
|
3425
|
-
scale: 2,
|
|
3426
|
-
nullable: true
|
|
3427
|
-
})
|
|
3428
|
-
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
3429
|
-
__decorateClass([
|
|
3430
|
-
(0, import_typeorm22.Column)({
|
|
3431
|
-
name: "start_date",
|
|
3432
|
-
type: "timestamp with time zone",
|
|
3433
|
-
nullable: true
|
|
3434
|
-
})
|
|
3435
|
-
], Contract.prototype, "startDate", 2);
|
|
3436
|
-
__decorateClass([
|
|
3437
|
-
(0, import_typeorm22.Column)({
|
|
3438
|
-
name: "end_date",
|
|
3439
|
-
type: "timestamp with time zone",
|
|
3440
|
-
nullable: true
|
|
3441
|
-
})
|
|
3442
|
-
], Contract.prototype, "endDate", 2);
|
|
3443
|
-
__decorateClass([
|
|
3444
|
-
(0, import_typeorm22.Column)({ name: "original_document_url", type: "varchar", nullable: true })
|
|
3445
|
-
], Contract.prototype, "originalDocumentUrl", 2);
|
|
3446
|
-
__decorateClass([
|
|
3447
|
-
(0, import_typeorm22.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
3448
|
-
], Contract.prototype, "contractDocumentUrl", 2);
|
|
3449
|
-
__decorateClass([
|
|
3450
|
-
(0, import_typeorm22.Column)({
|
|
3451
|
-
name: "client_signed_at",
|
|
3452
|
-
type: "timestamp with time zone",
|
|
3453
|
-
nullable: true
|
|
3454
|
-
})
|
|
3455
|
-
], Contract.prototype, "clientSignedAt", 2);
|
|
3456
|
-
__decorateClass([
|
|
3457
|
-
(0, import_typeorm22.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
3458
|
-
], Contract.prototype, "freelancerViewed", 2);
|
|
3459
|
-
__decorateClass([
|
|
3460
|
-
(0, import_typeorm22.Column)({
|
|
3461
|
-
name: "freelancer_viewed_at",
|
|
3462
|
-
type: "timestamp with time zone",
|
|
3463
|
-
nullable: true
|
|
3464
|
-
})
|
|
3465
|
-
], Contract.prototype, "freelancerViewedAt", 2);
|
|
3466
|
-
__decorateClass([
|
|
3467
|
-
(0, import_typeorm22.Column)({
|
|
3468
|
-
name: "freelancer_signed_at",
|
|
3469
|
-
type: "timestamp with time zone",
|
|
3470
|
-
nullable: true
|
|
3471
|
-
})
|
|
3472
|
-
], Contract.prototype, "freelancerSignedAt", 2);
|
|
3473
|
-
__decorateClass([
|
|
3474
|
-
(0, import_typeorm22.Column)({
|
|
3475
|
-
name: "rejectd_at",
|
|
3476
|
-
type: "timestamp with time zone",
|
|
3477
|
-
nullable: true
|
|
3478
|
-
})
|
|
3479
|
-
], Contract.prototype, "rejectedAt", 2);
|
|
3480
|
-
__decorateClass([
|
|
3481
|
-
(0, import_typeorm22.Column)({ name: "reject_reason", type: "varchar", nullable: true })
|
|
3482
|
-
], Contract.prototype, "rejectReason", 2);
|
|
3483
|
-
__decorateClass([
|
|
3484
|
-
(0, import_typeorm22.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
3485
|
-
], Contract.prototype, "isWorkContractSent", 2);
|
|
3486
|
-
__decorateClass([
|
|
3487
|
-
(0, import_typeorm22.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
3488
|
-
], Contract.prototype, "isEscrowDeposited", 2);
|
|
3489
|
-
__decorateClass([
|
|
3490
|
-
(0, import_typeorm22.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
3491
|
-
], Contract.prototype, "signaturePositions", 2);
|
|
3492
|
-
Contract = __decorateClass([
|
|
3493
|
-
(0, import_typeorm22.Entity)("contracts")
|
|
3494
|
-
], Contract);
|
|
3353
|
+
var import_typeorm28 = require("typeorm");
|
|
3495
3354
|
|
|
3496
|
-
// src/entities/
|
|
3497
|
-
var
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
TimesheetStatusEnum2["PAID"] = "PAID";
|
|
3505
|
-
return TimesheetStatusEnum2;
|
|
3506
|
-
})(TimesheetStatusEnum || {});
|
|
3507
|
-
var Timesheet = class extends BaseEntity {
|
|
3508
|
-
};
|
|
3509
|
-
__decorateClass([
|
|
3510
|
-
(0, import_typeorm23.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3511
|
-
(0, import_typeorm23.Index)()
|
|
3512
|
-
], Timesheet.prototype, "jobId", 2);
|
|
3513
|
-
__decorateClass([
|
|
3514
|
-
(0, import_typeorm23.ManyToOne)(() => Job, (job) => job.timesheets),
|
|
3515
|
-
(0, import_typeorm23.JoinColumn)({ name: "job_id" })
|
|
3516
|
-
], Timesheet.prototype, "job", 2);
|
|
3517
|
-
__decorateClass([
|
|
3518
|
-
(0, import_typeorm23.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3519
|
-
(0, import_typeorm23.Index)()
|
|
3520
|
-
], Timesheet.prototype, "clientId", 2);
|
|
3521
|
-
__decorateClass([
|
|
3522
|
-
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.clientTimesheets),
|
|
3523
|
-
(0, import_typeorm23.JoinColumn)({ name: "client_id" })
|
|
3524
|
-
], Timesheet.prototype, "client", 2);
|
|
3525
|
-
__decorateClass([
|
|
3526
|
-
(0, import_typeorm23.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3527
|
-
(0, import_typeorm23.Index)()
|
|
3528
|
-
], Timesheet.prototype, "freelancerId", 2);
|
|
3529
|
-
__decorateClass([
|
|
3530
|
-
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
|
|
3531
|
-
(0, import_typeorm23.JoinColumn)({ name: "freelancer_id" })
|
|
3532
|
-
], Timesheet.prototype, "freelancer", 2);
|
|
3533
|
-
__decorateClass([
|
|
3534
|
-
(0, import_typeorm23.Column)({
|
|
3535
|
-
name: "start_date",
|
|
3536
|
-
type: "date",
|
|
3537
|
-
nullable: true
|
|
3538
|
-
})
|
|
3539
|
-
], Timesheet.prototype, "startDate", 2);
|
|
3540
|
-
__decorateClass([
|
|
3541
|
-
(0, import_typeorm23.Column)({
|
|
3542
|
-
name: "end_date",
|
|
3543
|
-
type: "date",
|
|
3544
|
-
nullable: true
|
|
3545
|
-
})
|
|
3546
|
-
], Timesheet.prototype, "endDate", 2);
|
|
3547
|
-
__decorateClass([
|
|
3548
|
-
(0, import_typeorm23.Column)({ name: "start_time", type: "varchar", nullable: true })
|
|
3549
|
-
], Timesheet.prototype, "startTime", 2);
|
|
3550
|
-
__decorateClass([
|
|
3551
|
-
(0, import_typeorm23.Column)({ name: "end_time", type: "varchar", nullable: true })
|
|
3552
|
-
], Timesheet.prototype, "endTime", 2);
|
|
3553
|
-
__decorateClass([
|
|
3554
|
-
(0, import_typeorm23.Column)({ name: "worked_hours", type: "varchar", nullable: true })
|
|
3555
|
-
], Timesheet.prototype, "workedHours", 2);
|
|
3556
|
-
__decorateClass([
|
|
3557
|
-
(0, import_typeorm23.Column)({ name: "task_id", type: "integer", nullable: true })
|
|
3558
|
-
], Timesheet.prototype, "taskId", 2);
|
|
3559
|
-
__decorateClass([
|
|
3560
|
-
(0, import_typeorm23.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
3561
|
-
], Timesheet.prototype, "taskName", 2);
|
|
3562
|
-
__decorateClass([
|
|
3563
|
-
(0, import_typeorm23.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3564
|
-
], Timesheet.prototype, "description", 2);
|
|
3565
|
-
__decorateClass([
|
|
3566
|
-
(0, import_typeorm23.Column)({ name: "week_start_date", type: "date", nullable: true })
|
|
3567
|
-
], Timesheet.prototype, "weekStartDate", 2);
|
|
3568
|
-
__decorateClass([
|
|
3569
|
-
(0, import_typeorm23.Column)({ name: "week_end_date", type: "date", nullable: true })
|
|
3570
|
-
], Timesheet.prototype, "weekEndDate", 2);
|
|
3571
|
-
__decorateClass([
|
|
3572
|
-
(0, import_typeorm23.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
3573
|
-
], Timesheet.prototype, "rejectedAt", 2);
|
|
3574
|
-
__decorateClass([
|
|
3575
|
-
(0, import_typeorm23.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
3576
|
-
], Timesheet.prototype, "submittedAt", 2);
|
|
3577
|
-
__decorateClass([
|
|
3578
|
-
(0, import_typeorm23.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
3579
|
-
], Timesheet.prototype, "resubmittedAt", 2);
|
|
3580
|
-
__decorateClass([
|
|
3581
|
-
(0, import_typeorm23.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
3582
|
-
], Timesheet.prototype, "approvedAt", 2);
|
|
3583
|
-
__decorateClass([
|
|
3584
|
-
(0, import_typeorm23.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
3585
|
-
], Timesheet.prototype, "status", 2);
|
|
3586
|
-
__decorateClass([
|
|
3587
|
-
(0, import_typeorm23.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
3588
|
-
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
3589
|
-
Timesheet = __decorateClass([
|
|
3590
|
-
(0, import_typeorm23.Entity)("timesheets")
|
|
3591
|
-
], Timesheet);
|
|
3355
|
+
// src/entities/escrow-wallet.entity.ts
|
|
3356
|
+
var import_typeorm27 = require("typeorm");
|
|
3357
|
+
|
|
3358
|
+
// src/entities/escrow-wallet-transaction.entity.ts
|
|
3359
|
+
var import_typeorm26 = require("typeorm");
|
|
3360
|
+
|
|
3361
|
+
// src/entities/invoice.entity.ts
|
|
3362
|
+
var import_typeorm25 = require("typeorm");
|
|
3592
3363
|
|
|
3593
3364
|
// src/entities/timesheet-line.entity.ts
|
|
3594
|
-
var
|
|
3365
|
+
var import_typeorm24 = require("typeorm");
|
|
3595
3366
|
|
|
3596
3367
|
// src/entities/timesheet-logs.entity.ts
|
|
3597
|
-
var
|
|
3368
|
+
var import_typeorm22 = require("typeorm");
|
|
3598
3369
|
var TimesheetLogs = class extends BaseEntity {
|
|
3599
3370
|
};
|
|
3600
3371
|
__decorateClass([
|
|
3601
|
-
(0,
|
|
3602
|
-
(0,
|
|
3372
|
+
(0, import_typeorm22.Column)({ name: "timesheet_line_id", type: "integer", nullable: false }),
|
|
3373
|
+
(0, import_typeorm22.Index)()
|
|
3603
3374
|
], TimesheetLogs.prototype, "timesheetLineId", 2);
|
|
3604
3375
|
__decorateClass([
|
|
3605
|
-
(0,
|
|
3606
|
-
(0,
|
|
3376
|
+
(0, import_typeorm22.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLogs),
|
|
3377
|
+
(0, import_typeorm22.JoinColumn)({ name: "timesheet_line_id" })
|
|
3607
3378
|
], TimesheetLogs.prototype, "timesheetLine", 2);
|
|
3608
3379
|
__decorateClass([
|
|
3609
|
-
(0,
|
|
3380
|
+
(0, import_typeorm22.Column)({
|
|
3610
3381
|
name: "start_date",
|
|
3611
3382
|
type: "date",
|
|
3612
3383
|
nullable: true
|
|
3613
3384
|
})
|
|
3614
3385
|
], TimesheetLogs.prototype, "startDate", 2);
|
|
3615
3386
|
__decorateClass([
|
|
3616
|
-
(0,
|
|
3387
|
+
(0, import_typeorm22.Column)({
|
|
3617
3388
|
name: "end_date",
|
|
3618
3389
|
type: "date",
|
|
3619
3390
|
nullable: true
|
|
3620
3391
|
})
|
|
3621
3392
|
], TimesheetLogs.prototype, "endDate", 2);
|
|
3622
3393
|
__decorateClass([
|
|
3623
|
-
(0,
|
|
3394
|
+
(0, import_typeorm22.Column)({ name: "start_time", type: "varchar", nullable: true })
|
|
3624
3395
|
], TimesheetLogs.prototype, "startTime", 2);
|
|
3625
3396
|
__decorateClass([
|
|
3626
|
-
(0,
|
|
3397
|
+
(0, import_typeorm22.Column)({ name: "end_time", type: "varchar", nullable: true })
|
|
3627
3398
|
], TimesheetLogs.prototype, "endTime", 2);
|
|
3628
3399
|
__decorateClass([
|
|
3629
|
-
(0,
|
|
3400
|
+
(0, import_typeorm22.Column)({ name: "worked_hours", type: "varchar", nullable: true })
|
|
3630
3401
|
], TimesheetLogs.prototype, "workedHours", 2);
|
|
3631
3402
|
__decorateClass([
|
|
3632
|
-
(0,
|
|
3403
|
+
(0, import_typeorm22.Column)({ name: "task_id", type: "integer", nullable: true })
|
|
3633
3404
|
], TimesheetLogs.prototype, "taskId", 2);
|
|
3634
3405
|
__decorateClass([
|
|
3635
|
-
(0,
|
|
3406
|
+
(0, import_typeorm22.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
3636
3407
|
], TimesheetLogs.prototype, "projectName", 2);
|
|
3637
3408
|
__decorateClass([
|
|
3638
|
-
(0,
|
|
3409
|
+
(0, import_typeorm22.Column)({ name: "deliverable", type: "varchar", nullable: true })
|
|
3639
3410
|
], TimesheetLogs.prototype, "deliverable", 2);
|
|
3640
3411
|
__decorateClass([
|
|
3641
|
-
(0,
|
|
3412
|
+
(0, import_typeorm22.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
3642
3413
|
], TimesheetLogs.prototype, "taskName", 2);
|
|
3643
3414
|
__decorateClass([
|
|
3644
|
-
(0,
|
|
3415
|
+
(0, import_typeorm22.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3645
3416
|
], TimesheetLogs.prototype, "description", 2);
|
|
3646
3417
|
TimesheetLogs = __decorateClass([
|
|
3647
|
-
(0,
|
|
3418
|
+
(0, import_typeorm22.Entity)("timesheet_logs")
|
|
3648
3419
|
], TimesheetLogs);
|
|
3649
3420
|
|
|
3650
3421
|
// src/entities/timesheet-line-history.entity.ts
|
|
3651
|
-
var
|
|
3422
|
+
var import_typeorm23 = require("typeorm");
|
|
3652
3423
|
var TimesheetLineHistoryStatusEnum = /* @__PURE__ */ ((TimesheetLineHistoryStatusEnum2) => {
|
|
3653
3424
|
TimesheetLineHistoryStatusEnum2["DRAFT"] = "DRAFT";
|
|
3654
3425
|
TimesheetLineHistoryStatusEnum2["SEND"] = "SEND";
|
|
@@ -3672,19 +3443,19 @@ var TimesheetSubmissionActionEnum = /* @__PURE__ */ ((TimesheetSubmissionActionE
|
|
|
3672
3443
|
var TimesheetLineHistory = class extends BaseEntity {
|
|
3673
3444
|
};
|
|
3674
3445
|
__decorateClass([
|
|
3675
|
-
(0,
|
|
3676
|
-
(0,
|
|
3446
|
+
(0, import_typeorm23.Column)({ name: "timesheet_line_id", type: "integer", nullable: false }),
|
|
3447
|
+
(0, import_typeorm23.Index)()
|
|
3677
3448
|
], TimesheetLineHistory.prototype, "timesheetLineId", 2);
|
|
3678
3449
|
__decorateClass([
|
|
3679
|
-
(0,
|
|
3680
|
-
(0,
|
|
3450
|
+
(0, import_typeorm23.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLineHistory),
|
|
3451
|
+
(0, import_typeorm23.JoinColumn)({ name: "timesheet_line_id" })
|
|
3681
3452
|
], TimesheetLineHistory.prototype, "timesheetLine", 2);
|
|
3682
3453
|
__decorateClass([
|
|
3683
|
-
(0,
|
|
3684
|
-
(0,
|
|
3454
|
+
(0, import_typeorm23.Column)({ name: "changed_by", type: "integer", nullable: true }),
|
|
3455
|
+
(0, import_typeorm23.Index)()
|
|
3685
3456
|
], TimesheetLineHistory.prototype, "changedBy", 2);
|
|
3686
3457
|
__decorateClass([
|
|
3687
|
-
(0,
|
|
3458
|
+
(0, import_typeorm23.Column)({
|
|
3688
3459
|
name: "previous_status",
|
|
3689
3460
|
type: "enum",
|
|
3690
3461
|
enum: TimesheetLineHistoryStatusEnum,
|
|
@@ -3692,7 +3463,7 @@ __decorateClass([
|
|
|
3692
3463
|
})
|
|
3693
3464
|
], TimesheetLineHistory.prototype, "previousStatus", 2);
|
|
3694
3465
|
__decorateClass([
|
|
3695
|
-
(0,
|
|
3466
|
+
(0, import_typeorm23.Column)({
|
|
3696
3467
|
name: "new_status",
|
|
3697
3468
|
type: "enum",
|
|
3698
3469
|
enum: TimesheetLineHistoryStatusEnum,
|
|
@@ -3700,7 +3471,7 @@ __decorateClass([
|
|
|
3700
3471
|
})
|
|
3701
3472
|
], TimesheetLineHistory.prototype, "newStatus", 2);
|
|
3702
3473
|
__decorateClass([
|
|
3703
|
-
(0,
|
|
3474
|
+
(0, import_typeorm23.Column)({
|
|
3704
3475
|
name: "action_type",
|
|
3705
3476
|
type: "enum",
|
|
3706
3477
|
enum: TimesheetSubmissionActionEnum,
|
|
@@ -3708,208 +3479,555 @@ __decorateClass([
|
|
|
3708
3479
|
})
|
|
3709
3480
|
], TimesheetLineHistory.prototype, "actionType", 2);
|
|
3710
3481
|
__decorateClass([
|
|
3711
|
-
(0,
|
|
3482
|
+
(0, import_typeorm23.Column)({ name: "remarks", type: "varchar", nullable: true })
|
|
3712
3483
|
], TimesheetLineHistory.prototype, "remarks", 2);
|
|
3713
3484
|
TimesheetLineHistory = __decorateClass([
|
|
3714
|
-
(0,
|
|
3485
|
+
(0, import_typeorm23.Entity)("timesheet_line_histories")
|
|
3715
3486
|
], TimesheetLineHistory);
|
|
3716
3487
|
|
|
3717
|
-
// src/entities/
|
|
3718
|
-
var
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
}
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3488
|
+
// src/entities/timesheet-line.entity.ts
|
|
3489
|
+
var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
|
|
3490
|
+
TimesheetLineStatusEnum2["DRAFT"] = "DRAFT";
|
|
3491
|
+
TimesheetLineStatusEnum2["SEND"] = "SEND";
|
|
3492
|
+
TimesheetLineStatusEnum2["SEND_BACK"] = "SEND_BACK";
|
|
3493
|
+
TimesheetLineStatusEnum2["APPROVED"] = "APPROVED";
|
|
3494
|
+
TimesheetLineStatusEnum2["REJECTED"] = "REJECTED";
|
|
3495
|
+
TimesheetLineStatusEnum2["PAID"] = "PAID";
|
|
3496
|
+
TimesheetLineStatusEnum2["MISSING"] = "MISSING";
|
|
3497
|
+
TimesheetLineStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
3498
|
+
return TimesheetLineStatusEnum2;
|
|
3499
|
+
})(TimesheetLineStatusEnum || {});
|
|
3500
|
+
var TimesheetLine = class extends BaseEntity {
|
|
3501
|
+
};
|
|
3502
|
+
__decorateClass([
|
|
3503
|
+
(0, import_typeorm24.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3504
|
+
(0, import_typeorm24.Index)()
|
|
3505
|
+
], TimesheetLine.prototype, "jobId", 2);
|
|
3506
|
+
__decorateClass([
|
|
3507
|
+
(0, import_typeorm24.ManyToOne)(() => Job, (job) => job.timesheetLine),
|
|
3508
|
+
(0, import_typeorm24.JoinColumn)({ name: "job_id" })
|
|
3509
|
+
], TimesheetLine.prototype, "job", 2);
|
|
3510
|
+
__decorateClass([
|
|
3511
|
+
(0, import_typeorm24.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3512
|
+
(0, import_typeorm24.Index)()
|
|
3513
|
+
], TimesheetLine.prototype, "clientId", 2);
|
|
3514
|
+
__decorateClass([
|
|
3515
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.clientTimesheetLine),
|
|
3516
|
+
(0, import_typeorm24.JoinColumn)({ name: "client_id" })
|
|
3517
|
+
], TimesheetLine.prototype, "client", 2);
|
|
3518
|
+
__decorateClass([
|
|
3519
|
+
(0, import_typeorm24.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3520
|
+
(0, import_typeorm24.Index)()
|
|
3521
|
+
], TimesheetLine.prototype, "freelancerId", 2);
|
|
3522
|
+
__decorateClass([
|
|
3523
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.freelancerTimesheetLine),
|
|
3524
|
+
(0, import_typeorm24.JoinColumn)({ name: "freelancer_id" })
|
|
3525
|
+
], TimesheetLine.prototype, "freelancer", 2);
|
|
3526
|
+
__decorateClass([
|
|
3527
|
+
(0, import_typeorm24.OneToMany)(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
|
|
3528
|
+
], TimesheetLine.prototype, "timesheetLogs", 2);
|
|
3529
|
+
__decorateClass([
|
|
3530
|
+
(0, import_typeorm24.OneToMany)(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
|
|
3531
|
+
], TimesheetLine.prototype, "timesheetLineHistory", 2);
|
|
3532
|
+
__decorateClass([
|
|
3533
|
+
(0, import_typeorm24.Column)({ name: "unique_id", type: "varchar", nullable: true })
|
|
3534
|
+
], TimesheetLine.prototype, "uniqueId", 2);
|
|
3535
|
+
__decorateClass([
|
|
3536
|
+
(0, import_typeorm24.Column)({
|
|
3537
|
+
name: "week_start_date",
|
|
3538
|
+
type: "date",
|
|
3539
|
+
nullable: true
|
|
3540
|
+
})
|
|
3541
|
+
], TimesheetLine.prototype, "weekStartDate", 2);
|
|
3542
|
+
__decorateClass([
|
|
3543
|
+
(0, import_typeorm24.Column)({
|
|
3544
|
+
name: "week_end_date",
|
|
3545
|
+
type: "date",
|
|
3546
|
+
nullable: true
|
|
3547
|
+
})
|
|
3548
|
+
], TimesheetLine.prototype, "weekEndDate", 2);
|
|
3549
|
+
__decorateClass([
|
|
3550
|
+
(0, import_typeorm24.Column)({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
|
|
3551
|
+
], TimesheetLine.prototype, "status", 2);
|
|
3552
|
+
__decorateClass([
|
|
3553
|
+
(0, import_typeorm24.Column)({ name: "weekly_hours_sum", type: "varchar", nullable: true })
|
|
3554
|
+
], TimesheetLine.prototype, "weeklyHoursSum", 2);
|
|
3555
|
+
__decorateClass([
|
|
3556
|
+
(0, import_typeorm24.Column)({ name: "is_invoice_genrated", type: "boolean", default: false })
|
|
3557
|
+
], TimesheetLine.prototype, "isInvoiceGenrated", 2);
|
|
3558
|
+
__decorateClass([
|
|
3559
|
+
(0, import_typeorm24.Column)({ name: "is_invoice_approved", type: "boolean", default: false })
|
|
3560
|
+
], TimesheetLine.prototype, "isInvoiceApproved", 2);
|
|
3561
|
+
__decorateClass([
|
|
3562
|
+
(0, import_typeorm24.OneToMany)(() => Invoice, (invoice) => invoice.timesheetLine, {
|
|
3563
|
+
cascade: true
|
|
3564
|
+
})
|
|
3565
|
+
], TimesheetLine.prototype, "invoice", 2);
|
|
3566
|
+
TimesheetLine = __decorateClass([
|
|
3567
|
+
(0, import_typeorm24.Entity)("timesheet_lines")
|
|
3568
|
+
], TimesheetLine);
|
|
3569
|
+
|
|
3570
|
+
// src/entities/invoice.entity.ts
|
|
3571
|
+
var InvoiceTypeEnum = /* @__PURE__ */ ((InvoiceTypeEnum2) => {
|
|
3572
|
+
InvoiceTypeEnum2["WEEKLY"] = "WEEKLY";
|
|
3573
|
+
InvoiceTypeEnum2["MONTHLY"] = "MONTHLY";
|
|
3574
|
+
return InvoiceTypeEnum2;
|
|
3575
|
+
})(InvoiceTypeEnum || {});
|
|
3576
|
+
var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
|
|
3577
|
+
InvoiceStatusEnum2["SUBMITTED"] = "SUBMITTED";
|
|
3578
|
+
InvoiceStatusEnum2["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
3579
|
+
InvoiceStatusEnum2["APPROVED"] = "APPROVED";
|
|
3580
|
+
InvoiceStatusEnum2["REJECTED"] = "REJECTED";
|
|
3581
|
+
return InvoiceStatusEnum2;
|
|
3582
|
+
})(InvoiceStatusEnum || {});
|
|
3583
|
+
var InvoicePaymentStatusEnum = /* @__PURE__ */ ((InvoicePaymentStatusEnum2) => {
|
|
3584
|
+
InvoicePaymentStatusEnum2["PENDING"] = "PENDING";
|
|
3585
|
+
InvoicePaymentStatusEnum2["OVERDUE"] = "OVERDUE";
|
|
3586
|
+
InvoicePaymentStatusEnum2["INTRANSACTION"] = "INTRANSACTION";
|
|
3587
|
+
InvoicePaymentStatusEnum2["PAID"] = "PAID";
|
|
3588
|
+
InvoicePaymentStatusEnum2["REFUNDED"] = "REFUNDED";
|
|
3589
|
+
return InvoicePaymentStatusEnum2;
|
|
3590
|
+
})(InvoicePaymentStatusEnum || {});
|
|
3739
3591
|
var Invoice = class extends BaseEntity {
|
|
3740
3592
|
};
|
|
3741
3593
|
__decorateClass([
|
|
3742
|
-
(0,
|
|
3743
|
-
(0,
|
|
3594
|
+
(0, import_typeorm25.Column)({ name: "timesheet_line_id", type: "integer", nullable: true }),
|
|
3595
|
+
(0, import_typeorm25.Index)()
|
|
3744
3596
|
], Invoice.prototype, "timesheetLineId", 2);
|
|
3745
3597
|
__decorateClass([
|
|
3746
|
-
(0,
|
|
3747
|
-
(0,
|
|
3598
|
+
(0, import_typeorm25.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
|
|
3599
|
+
(0, import_typeorm25.JoinColumn)({ name: "timesheet_line_id" })
|
|
3748
3600
|
], Invoice.prototype, "timesheetLine", 2);
|
|
3749
3601
|
__decorateClass([
|
|
3750
|
-
(0,
|
|
3751
|
-
(0,
|
|
3602
|
+
(0, import_typeorm25.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3603
|
+
(0, import_typeorm25.Index)()
|
|
3752
3604
|
], Invoice.prototype, "jobId", 2);
|
|
3753
3605
|
__decorateClass([
|
|
3754
|
-
(0,
|
|
3755
|
-
(0,
|
|
3606
|
+
(0, import_typeorm25.ManyToOne)(() => Job, (job) => job.invoice),
|
|
3607
|
+
(0, import_typeorm25.JoinColumn)({ name: "job_id" })
|
|
3756
3608
|
], Invoice.prototype, "job", 2);
|
|
3757
3609
|
__decorateClass([
|
|
3758
|
-
(0,
|
|
3759
|
-
(0,
|
|
3610
|
+
(0, import_typeorm25.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3611
|
+
(0, import_typeorm25.Index)()
|
|
3760
3612
|
], Invoice.prototype, "clientId", 2);
|
|
3761
3613
|
__decorateClass([
|
|
3762
|
-
(0,
|
|
3763
|
-
(0,
|
|
3614
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.clientInvoice),
|
|
3615
|
+
(0, import_typeorm25.JoinColumn)({ name: "client_id" })
|
|
3764
3616
|
], Invoice.prototype, "client", 2);
|
|
3765
3617
|
__decorateClass([
|
|
3766
|
-
(0,
|
|
3767
|
-
(0,
|
|
3618
|
+
(0, import_typeorm25.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3619
|
+
(0, import_typeorm25.Index)()
|
|
3768
3620
|
], Invoice.prototype, "freelancerId", 2);
|
|
3769
3621
|
__decorateClass([
|
|
3770
|
-
(0,
|
|
3771
|
-
(0,
|
|
3622
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.freelancerInvoice),
|
|
3623
|
+
(0, import_typeorm25.JoinColumn)({ name: "freelancer_id" })
|
|
3772
3624
|
], Invoice.prototype, "freelancer", 2);
|
|
3773
3625
|
__decorateClass([
|
|
3774
|
-
(0,
|
|
3626
|
+
(0, import_typeorm25.Column)({ name: "invoice_unique_id", type: "varchar", nullable: true })
|
|
3775
3627
|
], Invoice.prototype, "invoiceUniqueId", 2);
|
|
3776
3628
|
__decorateClass([
|
|
3777
|
-
(0,
|
|
3629
|
+
(0, import_typeorm25.Column)({
|
|
3778
3630
|
name: "issued_at",
|
|
3779
3631
|
type: "date",
|
|
3780
3632
|
nullable: true
|
|
3781
3633
|
})
|
|
3782
3634
|
], Invoice.prototype, "issuedAt", 2);
|
|
3783
3635
|
__decorateClass([
|
|
3784
|
-
(0,
|
|
3636
|
+
(0, import_typeorm25.Column)({
|
|
3785
3637
|
name: "due_at",
|
|
3786
3638
|
type: "date",
|
|
3787
3639
|
nullable: true
|
|
3788
3640
|
})
|
|
3789
3641
|
], Invoice.prototype, "dueAt", 2);
|
|
3790
3642
|
__decorateClass([
|
|
3791
|
-
(0,
|
|
3643
|
+
(0, import_typeorm25.Column)({
|
|
3792
3644
|
name: "billing_cycle_from",
|
|
3793
3645
|
type: "date",
|
|
3794
3646
|
nullable: true
|
|
3795
3647
|
})
|
|
3796
3648
|
], Invoice.prototype, "billingCycleFrom", 2);
|
|
3797
3649
|
__decorateClass([
|
|
3798
|
-
(0,
|
|
3650
|
+
(0, import_typeorm25.Column)({
|
|
3799
3651
|
name: "billing_cycle_to",
|
|
3800
3652
|
type: "date",
|
|
3801
3653
|
nullable: true
|
|
3802
3654
|
})
|
|
3803
3655
|
], Invoice.prototype, "billingCycleTo", 2);
|
|
3804
3656
|
__decorateClass([
|
|
3805
|
-
(0,
|
|
3657
|
+
(0, import_typeorm25.Column)({ name: "billing_hours", type: "varchar", nullable: true })
|
|
3806
3658
|
], Invoice.prototype, "billingHours", 2);
|
|
3807
3659
|
__decorateClass([
|
|
3808
|
-
(0,
|
|
3660
|
+
(0, import_typeorm25.Column)({ name: "hourly_rate", type: "varchar", nullable: true })
|
|
3809
3661
|
], Invoice.prototype, "hourlyRate", 2);
|
|
3810
3662
|
__decorateClass([
|
|
3811
|
-
(0,
|
|
3663
|
+
(0, import_typeorm25.Column)({ name: "billing_amount", type: "varchar", nullable: true })
|
|
3812
3664
|
], Invoice.prototype, "billingAmount", 2);
|
|
3813
3665
|
__decorateClass([
|
|
3814
|
-
(0,
|
|
3666
|
+
(0, import_typeorm25.Column)({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
|
|
3815
3667
|
], Invoice.prototype, "invoiceType", 2);
|
|
3816
3668
|
__decorateClass([
|
|
3817
|
-
(0,
|
|
3669
|
+
(0, import_typeorm25.Column)({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
|
|
3818
3670
|
], Invoice.prototype, "status", 2);
|
|
3819
3671
|
__decorateClass([
|
|
3820
|
-
(0,
|
|
3672
|
+
(0, import_typeorm25.Column)({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
|
|
3821
3673
|
], Invoice.prototype, "paymentStatus", 2);
|
|
3822
3674
|
__decorateClass([
|
|
3823
|
-
(0,
|
|
3675
|
+
(0, import_typeorm25.Column)({ name: "client_invoice_url", type: "varchar", nullable: true })
|
|
3824
3676
|
], Invoice.prototype, "clientInvoiceUrl", 2);
|
|
3825
3677
|
__decorateClass([
|
|
3826
|
-
(0,
|
|
3678
|
+
(0, import_typeorm25.Column)({ name: "freelancer_invoice_url", type: "varchar", nullable: true })
|
|
3827
3679
|
], Invoice.prototype, "freelancerInvoiceUrl", 2);
|
|
3680
|
+
__decorateClass([
|
|
3681
|
+
(0, import_typeorm25.OneToOne)(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.invoice)
|
|
3682
|
+
], Invoice.prototype, "escrowWalletTransaction", 2);
|
|
3828
3683
|
Invoice = __decorateClass([
|
|
3829
|
-
(0,
|
|
3684
|
+
(0, import_typeorm25.Entity)("invoices")
|
|
3830
3685
|
], Invoice);
|
|
3831
3686
|
|
|
3832
|
-
// src/entities/
|
|
3833
|
-
var
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3687
|
+
// src/entities/escrow-wallet-transaction.entity.ts
|
|
3688
|
+
var EscrowWalletTransactionTypeEnum = /* @__PURE__ */ ((EscrowWalletTransactionTypeEnum2) => {
|
|
3689
|
+
EscrowWalletTransactionTypeEnum2["CR"] = "CR";
|
|
3690
|
+
EscrowWalletTransactionTypeEnum2["DR"] = "DR";
|
|
3691
|
+
return EscrowWalletTransactionTypeEnum2;
|
|
3692
|
+
})(EscrowWalletTransactionTypeEnum || {});
|
|
3693
|
+
var EscrowWalletTransactionForEnum = /* @__PURE__ */ ((EscrowWalletTransactionForEnum2) => {
|
|
3694
|
+
EscrowWalletTransactionForEnum2["CONTRACT"] = "CONTRACT";
|
|
3695
|
+
EscrowWalletTransactionForEnum2["INVOICE"] = "INVOICE";
|
|
3696
|
+
return EscrowWalletTransactionForEnum2;
|
|
3697
|
+
})(EscrowWalletTransactionForEnum || {});
|
|
3698
|
+
var EscrowWalletTransaction = class extends BaseEntity {
|
|
3699
|
+
};
|
|
3700
|
+
__decorateClass([
|
|
3701
|
+
(0, import_typeorm26.Column)({ name: "escrow_wallet_id", type: "integer", nullable: true }),
|
|
3702
|
+
(0, import_typeorm26.Index)()
|
|
3703
|
+
], EscrowWalletTransaction.prototype, "escrowWalletId", 2);
|
|
3704
|
+
__decorateClass([
|
|
3705
|
+
(0, import_typeorm26.ManyToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.escrowWalletTransactions),
|
|
3706
|
+
(0, import_typeorm26.JoinColumn)({ name: "wallet_id" })
|
|
3707
|
+
], EscrowWalletTransaction.prototype, "escrowWallet", 2);
|
|
3708
|
+
__decorateClass([
|
|
3709
|
+
(0, import_typeorm26.Column)({ name: "invoice_id", type: "integer", nullable: true }),
|
|
3710
|
+
(0, import_typeorm26.Index)()
|
|
3711
|
+
], EscrowWalletTransaction.prototype, "invoiceId", 2);
|
|
3712
|
+
__decorateClass([
|
|
3713
|
+
(0, import_typeorm26.OneToOne)(() => Invoice, (invoice) => invoice.escrowWalletTransaction),
|
|
3714
|
+
(0, import_typeorm26.JoinColumn)({ name: "invoice_id" })
|
|
3715
|
+
], EscrowWalletTransaction.prototype, "invoice", 2);
|
|
3716
|
+
__decorateClass([
|
|
3717
|
+
(0, import_typeorm26.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
3718
|
+
], EscrowWalletTransaction.prototype, "amount", 2);
|
|
3719
|
+
__decorateClass([
|
|
3720
|
+
(0, import_typeorm26.Column)({ name: "escrow_type", type: "enum", enum: EscrowWalletTransactionTypeEnum })
|
|
3721
|
+
], EscrowWalletTransaction.prototype, "escrowType", 2);
|
|
3722
|
+
__decorateClass([
|
|
3723
|
+
(0, import_typeorm26.Column)({ name: "description", type: "text", nullable: true })
|
|
3724
|
+
], EscrowWalletTransaction.prototype, "description", 2);
|
|
3725
|
+
__decorateClass([
|
|
3726
|
+
(0, import_typeorm26.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
3727
|
+
], EscrowWalletTransaction.prototype, "completedAt", 2);
|
|
3728
|
+
__decorateClass([
|
|
3729
|
+
(0, import_typeorm26.Column)({ name: "escrow_transaction_for", type: "enum", enum: EscrowWalletTransactionForEnum })
|
|
3730
|
+
], EscrowWalletTransaction.prototype, "escrowTransactionFor", 2);
|
|
3731
|
+
__decorateClass([
|
|
3732
|
+
(0, import_typeorm26.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
3733
|
+
], EscrowWalletTransaction.prototype, "metaData", 2);
|
|
3734
|
+
EscrowWalletTransaction = __decorateClass([
|
|
3735
|
+
(0, import_typeorm26.Entity)("escrow_wallet_transactions")
|
|
3736
|
+
], EscrowWalletTransaction);
|
|
3737
|
+
|
|
3738
|
+
// src/entities/escrow-wallet.entity.ts
|
|
3739
|
+
var EscrowWallet = class extends BaseEntity {
|
|
3845
3740
|
};
|
|
3846
3741
|
__decorateClass([
|
|
3847
3742
|
(0, import_typeorm27.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3848
3743
|
(0, import_typeorm27.Index)()
|
|
3849
|
-
],
|
|
3744
|
+
], EscrowWallet.prototype, "jobId", 2);
|
|
3850
3745
|
__decorateClass([
|
|
3851
|
-
(0, import_typeorm27.ManyToOne)(() => Job, (job) => job.
|
|
3746
|
+
(0, import_typeorm27.ManyToOne)(() => Job, (job) => job.escrowWallets),
|
|
3852
3747
|
(0, import_typeorm27.JoinColumn)({ name: "job_id" })
|
|
3853
|
-
],
|
|
3748
|
+
], EscrowWallet.prototype, "job", 2);
|
|
3854
3749
|
__decorateClass([
|
|
3855
3750
|
(0, import_typeorm27.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3856
3751
|
(0, import_typeorm27.Index)()
|
|
3857
|
-
],
|
|
3752
|
+
], EscrowWallet.prototype, "clientId", 2);
|
|
3858
3753
|
__decorateClass([
|
|
3859
|
-
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.
|
|
3754
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.clientEscrowWallets),
|
|
3860
3755
|
(0, import_typeorm27.JoinColumn)({ name: "client_id" })
|
|
3861
|
-
],
|
|
3756
|
+
], EscrowWallet.prototype, "client", 2);
|
|
3862
3757
|
__decorateClass([
|
|
3863
3758
|
(0, import_typeorm27.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3864
3759
|
(0, import_typeorm27.Index)()
|
|
3865
|
-
],
|
|
3760
|
+
], EscrowWallet.prototype, "freelancerId", 2);
|
|
3866
3761
|
__decorateClass([
|
|
3867
|
-
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.
|
|
3762
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.freelancerEscrowWallets),
|
|
3868
3763
|
(0, import_typeorm27.JoinColumn)({ name: "freelancer_id" })
|
|
3869
|
-
],
|
|
3764
|
+
], EscrowWallet.prototype, "freelancer", 2);
|
|
3870
3765
|
__decorateClass([
|
|
3871
|
-
(0, import_typeorm27.
|
|
3872
|
-
|
|
3766
|
+
(0, import_typeorm27.Column)({ name: "contract_id", type: "integer", nullable: true }),
|
|
3767
|
+
(0, import_typeorm27.Index)()
|
|
3768
|
+
], EscrowWallet.prototype, "contractId", 2);
|
|
3873
3769
|
__decorateClass([
|
|
3874
|
-
(0, import_typeorm27.
|
|
3875
|
-
|
|
3770
|
+
(0, import_typeorm27.OneToOne)(() => Contract, (contract) => contract.escrowWallet),
|
|
3771
|
+
(0, import_typeorm27.JoinColumn)({ name: "contract_id" })
|
|
3772
|
+
], EscrowWallet.prototype, "contract", 2);
|
|
3876
3773
|
__decorateClass([
|
|
3877
|
-
(0, import_typeorm27.Column)({ name: "
|
|
3878
|
-
],
|
|
3774
|
+
(0, import_typeorm27.Column)({ name: "wallet_balance", type: "varchar", default: "0" })
|
|
3775
|
+
], EscrowWallet.prototype, "escrowBalance", 2);
|
|
3879
3776
|
__decorateClass([
|
|
3880
|
-
(0, import_typeorm27.Column)({
|
|
3881
|
-
|
|
3777
|
+
(0, import_typeorm27.Column)({ name: "metadata", type: "jsonb", nullable: true })
|
|
3778
|
+
], EscrowWallet.prototype, "metadata", 2);
|
|
3779
|
+
__decorateClass([
|
|
3780
|
+
(0, import_typeorm27.OneToMany)(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.escrowWallet)
|
|
3781
|
+
], EscrowWallet.prototype, "escrowWalletTransactions", 2);
|
|
3782
|
+
EscrowWallet = __decorateClass([
|
|
3783
|
+
(0, import_typeorm27.Entity)("escrow_wallets")
|
|
3784
|
+
], EscrowWallet);
|
|
3785
|
+
|
|
3786
|
+
// src/entities/contract.entity.ts
|
|
3787
|
+
var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
|
|
3788
|
+
ContractStatusEnum2["GENERATED"] = "GENERATED";
|
|
3789
|
+
ContractStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
3790
|
+
ContractStatusEnum2["SENT"] = "SENT";
|
|
3791
|
+
ContractStatusEnum2["SIGNED"] = "SIGNED";
|
|
3792
|
+
ContractStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
3793
|
+
ContractStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
3794
|
+
ContractStatusEnum2["DISPUTED"] = "DISPUTED";
|
|
3795
|
+
ContractStatusEnum2["REJECTED"] = "REJECTED";
|
|
3796
|
+
ContractStatusEnum2["RENEWED"] = "RENEWED";
|
|
3797
|
+
ContractStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
3798
|
+
return ContractStatusEnum2;
|
|
3799
|
+
})(ContractStatusEnum || {});
|
|
3800
|
+
var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
3801
|
+
ContractTypeEnum2["NDA"] = "NDA";
|
|
3802
|
+
ContractTypeEnum2["WORK"] = "WORK";
|
|
3803
|
+
return ContractTypeEnum2;
|
|
3804
|
+
})(ContractTypeEnum || {});
|
|
3805
|
+
var Contract = class extends BaseEntity {
|
|
3806
|
+
};
|
|
3807
|
+
__decorateClass([
|
|
3808
|
+
(0, import_typeorm28.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
3809
|
+
], Contract.prototype, "contractUniqueId", 2);
|
|
3810
|
+
__decorateClass([
|
|
3811
|
+
(0, import_typeorm28.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3812
|
+
(0, import_typeorm28.Index)()
|
|
3813
|
+
], Contract.prototype, "jobId", 2);
|
|
3814
|
+
__decorateClass([
|
|
3815
|
+
(0, import_typeorm28.ManyToOne)(() => Job, (job) => job.contracts),
|
|
3816
|
+
(0, import_typeorm28.JoinColumn)({ name: "job_id" })
|
|
3817
|
+
], Contract.prototype, "job", 2);
|
|
3818
|
+
__decorateClass([
|
|
3819
|
+
(0, import_typeorm28.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3820
|
+
(0, import_typeorm28.Index)()
|
|
3821
|
+
], Contract.prototype, "clientId", 2);
|
|
3822
|
+
__decorateClass([
|
|
3823
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.clientContracts),
|
|
3824
|
+
(0, import_typeorm28.JoinColumn)({ name: "client_id" })
|
|
3825
|
+
], Contract.prototype, "client", 2);
|
|
3826
|
+
__decorateClass([
|
|
3827
|
+
(0, import_typeorm28.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3828
|
+
(0, import_typeorm28.Index)()
|
|
3829
|
+
], Contract.prototype, "freelancerId", 2);
|
|
3830
|
+
__decorateClass([
|
|
3831
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.freelancerContracts),
|
|
3832
|
+
(0, import_typeorm28.JoinColumn)({ name: "freelancer_id" })
|
|
3833
|
+
], Contract.prototype, "freelancer", 2);
|
|
3834
|
+
__decorateClass([
|
|
3835
|
+
(0, import_typeorm28.Column)({ name: "duration", type: "integer", nullable: true })
|
|
3836
|
+
], Contract.prototype, "duration", 2);
|
|
3837
|
+
__decorateClass([
|
|
3838
|
+
(0, import_typeorm28.Column)({
|
|
3839
|
+
name: "status",
|
|
3840
|
+
type: "enum",
|
|
3841
|
+
enum: ContractStatusEnum,
|
|
3842
|
+
nullable: true
|
|
3843
|
+
})
|
|
3844
|
+
], Contract.prototype, "status", 2);
|
|
3845
|
+
__decorateClass([
|
|
3846
|
+
(0, import_typeorm28.Column)({
|
|
3847
|
+
name: "type",
|
|
3848
|
+
type: "enum",
|
|
3849
|
+
enum: ContractTypeEnum,
|
|
3850
|
+
nullable: true
|
|
3851
|
+
})
|
|
3852
|
+
], Contract.prototype, "type", 2);
|
|
3853
|
+
__decorateClass([
|
|
3854
|
+
(0, import_typeorm28.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
3855
|
+
], Contract.prototype, "invoicingCycle", 2);
|
|
3856
|
+
__decorateClass([
|
|
3857
|
+
(0, import_typeorm28.Column)({
|
|
3858
|
+
name: "escrow_deposite_amount",
|
|
3859
|
+
type: "decimal",
|
|
3860
|
+
precision: 10,
|
|
3861
|
+
scale: 2,
|
|
3862
|
+
nullable: true
|
|
3863
|
+
})
|
|
3864
|
+
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
3865
|
+
__decorateClass([
|
|
3866
|
+
(0, import_typeorm28.Column)({
|
|
3867
|
+
name: "start_date",
|
|
3868
|
+
type: "timestamp with time zone",
|
|
3869
|
+
nullable: true
|
|
3870
|
+
})
|
|
3871
|
+
], Contract.prototype, "startDate", 2);
|
|
3872
|
+
__decorateClass([
|
|
3873
|
+
(0, import_typeorm28.Column)({
|
|
3874
|
+
name: "end_date",
|
|
3875
|
+
type: "timestamp with time zone",
|
|
3876
|
+
nullable: true
|
|
3877
|
+
})
|
|
3878
|
+
], Contract.prototype, "endDate", 2);
|
|
3879
|
+
__decorateClass([
|
|
3880
|
+
(0, import_typeorm28.Column)({ name: "original_document_url", type: "varchar", nullable: true })
|
|
3881
|
+
], Contract.prototype, "originalDocumentUrl", 2);
|
|
3882
|
+
__decorateClass([
|
|
3883
|
+
(0, import_typeorm28.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
3884
|
+
], Contract.prototype, "contractDocumentUrl", 2);
|
|
3885
|
+
__decorateClass([
|
|
3886
|
+
(0, import_typeorm28.Column)({
|
|
3887
|
+
name: "client_signed_at",
|
|
3888
|
+
type: "timestamp with time zone",
|
|
3889
|
+
nullable: true
|
|
3890
|
+
})
|
|
3891
|
+
], Contract.prototype, "clientSignedAt", 2);
|
|
3892
|
+
__decorateClass([
|
|
3893
|
+
(0, import_typeorm28.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
3894
|
+
], Contract.prototype, "freelancerViewed", 2);
|
|
3895
|
+
__decorateClass([
|
|
3896
|
+
(0, import_typeorm28.Column)({
|
|
3897
|
+
name: "freelancer_viewed_at",
|
|
3898
|
+
type: "timestamp with time zone",
|
|
3899
|
+
nullable: true
|
|
3900
|
+
})
|
|
3901
|
+
], Contract.prototype, "freelancerViewedAt", 2);
|
|
3902
|
+
__decorateClass([
|
|
3903
|
+
(0, import_typeorm28.Column)({
|
|
3904
|
+
name: "freelancer_signed_at",
|
|
3905
|
+
type: "timestamp with time zone",
|
|
3906
|
+
nullable: true
|
|
3907
|
+
})
|
|
3908
|
+
], Contract.prototype, "freelancerSignedAt", 2);
|
|
3909
|
+
__decorateClass([
|
|
3910
|
+
(0, import_typeorm28.Column)({
|
|
3911
|
+
name: "rejectd_at",
|
|
3912
|
+
type: "timestamp with time zone",
|
|
3913
|
+
nullable: true
|
|
3914
|
+
})
|
|
3915
|
+
], Contract.prototype, "rejectedAt", 2);
|
|
3916
|
+
__decorateClass([
|
|
3917
|
+
(0, import_typeorm28.Column)({ name: "reject_reason", type: "varchar", nullable: true })
|
|
3918
|
+
], Contract.prototype, "rejectReason", 2);
|
|
3919
|
+
__decorateClass([
|
|
3920
|
+
(0, import_typeorm28.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
3921
|
+
], Contract.prototype, "isWorkContractSent", 2);
|
|
3922
|
+
__decorateClass([
|
|
3923
|
+
(0, import_typeorm28.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
3924
|
+
], Contract.prototype, "isEscrowDeposited", 2);
|
|
3925
|
+
__decorateClass([
|
|
3926
|
+
(0, import_typeorm28.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
3927
|
+
], Contract.prototype, "signaturePositions", 2);
|
|
3928
|
+
__decorateClass([
|
|
3929
|
+
(0, import_typeorm28.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
3930
|
+
], Contract.prototype, "escrowWallet", 2);
|
|
3931
|
+
Contract = __decorateClass([
|
|
3932
|
+
(0, import_typeorm28.Entity)("contracts")
|
|
3933
|
+
], Contract);
|
|
3934
|
+
|
|
3935
|
+
// src/entities/timesheets.entity.ts
|
|
3936
|
+
var import_typeorm29 = require("typeorm");
|
|
3937
|
+
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
3938
|
+
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
3939
|
+
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
3940
|
+
TimesheetStatusEnum2["SEND_BACK"] = "SEND_BACK";
|
|
3941
|
+
TimesheetStatusEnum2["APPROVED"] = "APPROVED";
|
|
3942
|
+
TimesheetStatusEnum2["REJECTED"] = "REJECTED";
|
|
3943
|
+
TimesheetStatusEnum2["PAID"] = "PAID";
|
|
3944
|
+
return TimesheetStatusEnum2;
|
|
3945
|
+
})(TimesheetStatusEnum || {});
|
|
3946
|
+
var Timesheet = class extends BaseEntity {
|
|
3947
|
+
};
|
|
3948
|
+
__decorateClass([
|
|
3949
|
+
(0, import_typeorm29.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3950
|
+
(0, import_typeorm29.Index)()
|
|
3951
|
+
], Timesheet.prototype, "jobId", 2);
|
|
3952
|
+
__decorateClass([
|
|
3953
|
+
(0, import_typeorm29.ManyToOne)(() => Job, (job) => job.timesheets),
|
|
3954
|
+
(0, import_typeorm29.JoinColumn)({ name: "job_id" })
|
|
3955
|
+
], Timesheet.prototype, "job", 2);
|
|
3956
|
+
__decorateClass([
|
|
3957
|
+
(0, import_typeorm29.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3958
|
+
(0, import_typeorm29.Index)()
|
|
3959
|
+
], Timesheet.prototype, "clientId", 2);
|
|
3960
|
+
__decorateClass([
|
|
3961
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.clientTimesheets),
|
|
3962
|
+
(0, import_typeorm29.JoinColumn)({ name: "client_id" })
|
|
3963
|
+
], Timesheet.prototype, "client", 2);
|
|
3964
|
+
__decorateClass([
|
|
3965
|
+
(0, import_typeorm29.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3966
|
+
(0, import_typeorm29.Index)()
|
|
3967
|
+
], Timesheet.prototype, "freelancerId", 2);
|
|
3968
|
+
__decorateClass([
|
|
3969
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
|
|
3970
|
+
(0, import_typeorm29.JoinColumn)({ name: "freelancer_id" })
|
|
3971
|
+
], Timesheet.prototype, "freelancer", 2);
|
|
3972
|
+
__decorateClass([
|
|
3973
|
+
(0, import_typeorm29.Column)({
|
|
3974
|
+
name: "start_date",
|
|
3882
3975
|
type: "date",
|
|
3883
3976
|
nullable: true
|
|
3884
3977
|
})
|
|
3885
|
-
],
|
|
3978
|
+
], Timesheet.prototype, "startDate", 2);
|
|
3886
3979
|
__decorateClass([
|
|
3887
|
-
(0,
|
|
3888
|
-
name: "
|
|
3980
|
+
(0, import_typeorm29.Column)({
|
|
3981
|
+
name: "end_date",
|
|
3889
3982
|
type: "date",
|
|
3890
3983
|
nullable: true
|
|
3891
3984
|
})
|
|
3892
|
-
],
|
|
3985
|
+
], Timesheet.prototype, "endDate", 2);
|
|
3893
3986
|
__decorateClass([
|
|
3894
|
-
(0,
|
|
3895
|
-
],
|
|
3987
|
+
(0, import_typeorm29.Column)({ name: "start_time", type: "varchar", nullable: true })
|
|
3988
|
+
], Timesheet.prototype, "startTime", 2);
|
|
3896
3989
|
__decorateClass([
|
|
3897
|
-
(0,
|
|
3898
|
-
],
|
|
3990
|
+
(0, import_typeorm29.Column)({ name: "end_time", type: "varchar", nullable: true })
|
|
3991
|
+
], Timesheet.prototype, "endTime", 2);
|
|
3899
3992
|
__decorateClass([
|
|
3900
|
-
(0,
|
|
3901
|
-
],
|
|
3993
|
+
(0, import_typeorm29.Column)({ name: "worked_hours", type: "varchar", nullable: true })
|
|
3994
|
+
], Timesheet.prototype, "workedHours", 2);
|
|
3902
3995
|
__decorateClass([
|
|
3903
|
-
(0,
|
|
3904
|
-
],
|
|
3996
|
+
(0, import_typeorm29.Column)({ name: "task_id", type: "integer", nullable: true })
|
|
3997
|
+
], Timesheet.prototype, "taskId", 2);
|
|
3905
3998
|
__decorateClass([
|
|
3906
|
-
(0,
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3999
|
+
(0, import_typeorm29.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
4000
|
+
], Timesheet.prototype, "taskName", 2);
|
|
4001
|
+
__decorateClass([
|
|
4002
|
+
(0, import_typeorm29.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4003
|
+
], Timesheet.prototype, "description", 2);
|
|
4004
|
+
__decorateClass([
|
|
4005
|
+
(0, import_typeorm29.Column)({ name: "week_start_date", type: "date", nullable: true })
|
|
4006
|
+
], Timesheet.prototype, "weekStartDate", 2);
|
|
4007
|
+
__decorateClass([
|
|
4008
|
+
(0, import_typeorm29.Column)({ name: "week_end_date", type: "date", nullable: true })
|
|
4009
|
+
], Timesheet.prototype, "weekEndDate", 2);
|
|
4010
|
+
__decorateClass([
|
|
4011
|
+
(0, import_typeorm29.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
4012
|
+
], Timesheet.prototype, "rejectedAt", 2);
|
|
4013
|
+
__decorateClass([
|
|
4014
|
+
(0, import_typeorm29.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
4015
|
+
], Timesheet.prototype, "submittedAt", 2);
|
|
4016
|
+
__decorateClass([
|
|
4017
|
+
(0, import_typeorm29.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
4018
|
+
], Timesheet.prototype, "resubmittedAt", 2);
|
|
4019
|
+
__decorateClass([
|
|
4020
|
+
(0, import_typeorm29.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
4021
|
+
], Timesheet.prototype, "approvedAt", 2);
|
|
4022
|
+
__decorateClass([
|
|
4023
|
+
(0, import_typeorm29.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
4024
|
+
], Timesheet.prototype, "status", 2);
|
|
4025
|
+
__decorateClass([
|
|
4026
|
+
(0, import_typeorm29.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
4027
|
+
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
4028
|
+
Timesheet = __decorateClass([
|
|
4029
|
+
(0, import_typeorm29.Entity)("timesheets")
|
|
4030
|
+
], Timesheet);
|
|
3913
4031
|
|
|
3914
4032
|
// src/entities/job.entity.ts
|
|
3915
4033
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
@@ -3952,55 +4070,55 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
3952
4070
|
var Job = class extends BaseEntity {
|
|
3953
4071
|
};
|
|
3954
4072
|
__decorateClass([
|
|
3955
|
-
(0,
|
|
4073
|
+
(0, import_typeorm30.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
3956
4074
|
], Job.prototype, "jobId", 2);
|
|
3957
4075
|
// individual index to find jobs by user
|
|
3958
4076
|
__decorateClass([
|
|
3959
|
-
(0,
|
|
3960
|
-
(0,
|
|
4077
|
+
(0, import_typeorm30.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4078
|
+
(0, import_typeorm30.Index)()
|
|
3961
4079
|
], Job.prototype, "userId", 2);
|
|
3962
4080
|
__decorateClass([
|
|
3963
|
-
(0,
|
|
3964
|
-
(0,
|
|
4081
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.jobs),
|
|
4082
|
+
(0, import_typeorm30.JoinColumn)({ name: "user_id" })
|
|
3965
4083
|
], Job.prototype, "user", 2);
|
|
3966
4084
|
__decorateClass([
|
|
3967
|
-
(0,
|
|
4085
|
+
(0, import_typeorm30.Column)({ name: "country_id", type: "int", nullable: true })
|
|
3968
4086
|
], Job.prototype, "countryId", 2);
|
|
3969
4087
|
__decorateClass([
|
|
3970
|
-
(0,
|
|
3971
|
-
(0,
|
|
4088
|
+
(0, import_typeorm30.ManyToOne)(() => Country),
|
|
4089
|
+
(0, import_typeorm30.JoinColumn)({ name: "country_id" })
|
|
3972
4090
|
], Job.prototype, "country", 2);
|
|
3973
4091
|
__decorateClass([
|
|
3974
|
-
(0,
|
|
4092
|
+
(0, import_typeorm30.Column)({ name: "state_id", type: "int", nullable: true })
|
|
3975
4093
|
], Job.prototype, "stateId", 2);
|
|
3976
4094
|
__decorateClass([
|
|
3977
|
-
(0,
|
|
3978
|
-
(0,
|
|
4095
|
+
(0, import_typeorm30.ManyToOne)(() => State),
|
|
4096
|
+
(0, import_typeorm30.JoinColumn)({ name: "state_id" })
|
|
3979
4097
|
], Job.prototype, "state", 2);
|
|
3980
4098
|
__decorateClass([
|
|
3981
|
-
(0,
|
|
4099
|
+
(0, import_typeorm30.Column)({ name: "city_id", type: "int", nullable: true })
|
|
3982
4100
|
], Job.prototype, "cityId", 2);
|
|
3983
4101
|
__decorateClass([
|
|
3984
|
-
(0,
|
|
3985
|
-
(0,
|
|
4102
|
+
(0, import_typeorm30.ManyToOne)(() => City),
|
|
4103
|
+
(0, import_typeorm30.JoinColumn)({ name: "city_id" })
|
|
3986
4104
|
], Job.prototype, "city", 2);
|
|
3987
4105
|
__decorateClass([
|
|
3988
|
-
(0,
|
|
4106
|
+
(0, import_typeorm30.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
3989
4107
|
], Job.prototype, "jobRole", 2);
|
|
3990
4108
|
__decorateClass([
|
|
3991
|
-
(0,
|
|
4109
|
+
(0, import_typeorm30.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
3992
4110
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
3993
4111
|
__decorateClass([
|
|
3994
|
-
(0,
|
|
4112
|
+
(0, import_typeorm30.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
3995
4113
|
], Job.prototype, "projectName", 2);
|
|
3996
4114
|
__decorateClass([
|
|
3997
|
-
(0,
|
|
4115
|
+
(0, import_typeorm30.Column)({ name: "note", type: "varchar", nullable: true })
|
|
3998
4116
|
], Job.prototype, "note", 2);
|
|
3999
4117
|
__decorateClass([
|
|
4000
|
-
(0,
|
|
4118
|
+
(0, import_typeorm30.Column)({ name: "openings", type: "integer", default: 0 })
|
|
4001
4119
|
], Job.prototype, "openings", 2);
|
|
4002
4120
|
__decorateClass([
|
|
4003
|
-
(0,
|
|
4121
|
+
(0, import_typeorm30.Column)({
|
|
4004
4122
|
name: "location",
|
|
4005
4123
|
type: "enum",
|
|
4006
4124
|
enum: JobLocationEnum,
|
|
@@ -4008,7 +4126,7 @@ __decorateClass([
|
|
|
4008
4126
|
})
|
|
4009
4127
|
], Job.prototype, "location", 2);
|
|
4010
4128
|
__decorateClass([
|
|
4011
|
-
(0,
|
|
4129
|
+
(0, import_typeorm30.Column)({
|
|
4012
4130
|
name: "type_of_employment",
|
|
4013
4131
|
type: "enum",
|
|
4014
4132
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4016,19 +4134,19 @@ __decorateClass([
|
|
|
4016
4134
|
})
|
|
4017
4135
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4018
4136
|
__decorateClass([
|
|
4019
|
-
(0,
|
|
4137
|
+
(0, import_typeorm30.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4020
4138
|
], Job.prototype, "academicQualification", 2);
|
|
4021
4139
|
__decorateClass([
|
|
4022
|
-
(0,
|
|
4140
|
+
(0, import_typeorm30.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4023
4141
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4024
4142
|
__decorateClass([
|
|
4025
|
-
(0,
|
|
4143
|
+
(0, import_typeorm30.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
4026
4144
|
], Job.prototype, "businessIndustry", 2);
|
|
4027
4145
|
__decorateClass([
|
|
4028
|
-
(0,
|
|
4146
|
+
(0, import_typeorm30.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
4029
4147
|
], Job.prototype, "currency", 2);
|
|
4030
4148
|
__decorateClass([
|
|
4031
|
-
(0,
|
|
4149
|
+
(0, import_typeorm30.Column)({
|
|
4032
4150
|
name: "expected_salary_from",
|
|
4033
4151
|
type: "decimal",
|
|
4034
4152
|
precision: 10,
|
|
@@ -4037,14 +4155,14 @@ __decorateClass([
|
|
|
4037
4155
|
})
|
|
4038
4156
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4039
4157
|
__decorateClass([
|
|
4040
|
-
(0,
|
|
4158
|
+
(0, import_typeorm30.Column)({
|
|
4041
4159
|
name: "hide_expected_salary_from",
|
|
4042
4160
|
type: "boolean",
|
|
4043
4161
|
default: false
|
|
4044
4162
|
})
|
|
4045
4163
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4046
4164
|
__decorateClass([
|
|
4047
|
-
(0,
|
|
4165
|
+
(0, import_typeorm30.Column)({
|
|
4048
4166
|
name: "expected_salary_to",
|
|
4049
4167
|
type: "decimal",
|
|
4050
4168
|
precision: 10,
|
|
@@ -4053,32 +4171,32 @@ __decorateClass([
|
|
|
4053
4171
|
})
|
|
4054
4172
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4055
4173
|
__decorateClass([
|
|
4056
|
-
(0,
|
|
4174
|
+
(0, import_typeorm30.Column)({
|
|
4057
4175
|
name: "hide_expected_salary_to",
|
|
4058
4176
|
type: "boolean",
|
|
4059
4177
|
default: false
|
|
4060
4178
|
})
|
|
4061
4179
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4062
4180
|
__decorateClass([
|
|
4063
|
-
(0,
|
|
4181
|
+
(0, import_typeorm30.Column)({ name: "years", type: "varchar", nullable: true })
|
|
4064
4182
|
], Job.prototype, "years", 2);
|
|
4065
4183
|
__decorateClass([
|
|
4066
|
-
(0,
|
|
4184
|
+
(0, import_typeorm30.Column)({ name: "months", type: "varchar", nullable: true })
|
|
4067
4185
|
], Job.prototype, "months", 2);
|
|
4068
4186
|
__decorateClass([
|
|
4069
|
-
(0,
|
|
4187
|
+
(0, import_typeorm30.Column)({ name: "weeks", type: "varchar", nullable: true })
|
|
4070
4188
|
], Job.prototype, "weeks", 2);
|
|
4071
4189
|
__decorateClass([
|
|
4072
|
-
(0,
|
|
4190
|
+
(0, import_typeorm30.Column)({ name: "days", type: "varchar", nullable: true })
|
|
4073
4191
|
], Job.prototype, "days", 2);
|
|
4074
4192
|
__decorateClass([
|
|
4075
|
-
(0,
|
|
4193
|
+
(0, import_typeorm30.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4076
4194
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4077
4195
|
__decorateClass([
|
|
4078
|
-
(0,
|
|
4196
|
+
(0, import_typeorm30.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4079
4197
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4080
4198
|
__decorateClass([
|
|
4081
|
-
(0,
|
|
4199
|
+
(0, import_typeorm30.Column)({
|
|
4082
4200
|
name: "duration_type",
|
|
4083
4201
|
type: "enum",
|
|
4084
4202
|
enum: DurationTypeEnum,
|
|
@@ -4086,10 +4204,10 @@ __decorateClass([
|
|
|
4086
4204
|
})
|
|
4087
4205
|
], Job.prototype, "durationType", 2);
|
|
4088
4206
|
__decorateClass([
|
|
4089
|
-
(0,
|
|
4207
|
+
(0, import_typeorm30.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
4090
4208
|
], Job.prototype, "duration", 2);
|
|
4091
4209
|
__decorateClass([
|
|
4092
|
-
(0,
|
|
4210
|
+
(0, import_typeorm30.Column)({
|
|
4093
4211
|
name: "number_of_hours",
|
|
4094
4212
|
type: "decimal",
|
|
4095
4213
|
precision: 4,
|
|
@@ -4098,13 +4216,13 @@ __decorateClass([
|
|
|
4098
4216
|
})
|
|
4099
4217
|
], Job.prototype, "numberOfHours", 2);
|
|
4100
4218
|
__decorateClass([
|
|
4101
|
-
(0,
|
|
4219
|
+
(0, import_typeorm30.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4102
4220
|
], Job.prototype, "description", 2);
|
|
4103
4221
|
__decorateClass([
|
|
4104
|
-
(0,
|
|
4222
|
+
(0, import_typeorm30.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4105
4223
|
], Job.prototype, "additionalComment", 2);
|
|
4106
4224
|
__decorateClass([
|
|
4107
|
-
(0,
|
|
4225
|
+
(0, import_typeorm30.Column)({
|
|
4108
4226
|
name: "onboarding_tat",
|
|
4109
4227
|
type: "varchar",
|
|
4110
4228
|
length: 50,
|
|
@@ -4112,14 +4230,14 @@ __decorateClass([
|
|
|
4112
4230
|
})
|
|
4113
4231
|
], Job.prototype, "onboardingTat", 2);
|
|
4114
4232
|
__decorateClass([
|
|
4115
|
-
(0,
|
|
4233
|
+
(0, import_typeorm30.Column)({
|
|
4116
4234
|
name: "candidate_communication_skills",
|
|
4117
4235
|
type: "varchar",
|
|
4118
4236
|
nullable: true
|
|
4119
4237
|
})
|
|
4120
4238
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4121
4239
|
__decorateClass([
|
|
4122
|
-
(0,
|
|
4240
|
+
(0, import_typeorm30.Column)({
|
|
4123
4241
|
name: "step_completed",
|
|
4124
4242
|
type: "enum",
|
|
4125
4243
|
enum: Step,
|
|
@@ -4127,7 +4245,7 @@ __decorateClass([
|
|
|
4127
4245
|
})
|
|
4128
4246
|
], Job.prototype, "stepCompleted", 2);
|
|
4129
4247
|
__decorateClass([
|
|
4130
|
-
(0,
|
|
4248
|
+
(0, import_typeorm30.Column)({
|
|
4131
4249
|
name: "status",
|
|
4132
4250
|
type: "enum",
|
|
4133
4251
|
enum: JobStatusEnum,
|
|
@@ -4135,40 +4253,40 @@ __decorateClass([
|
|
|
4135
4253
|
})
|
|
4136
4254
|
], Job.prototype, "status", 2);
|
|
4137
4255
|
__decorateClass([
|
|
4138
|
-
(0,
|
|
4256
|
+
(0, import_typeorm30.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
4139
4257
|
], Job.prototype, "viewedCount", 2);
|
|
4140
4258
|
__decorateClass([
|
|
4141
|
-
(0,
|
|
4259
|
+
(0, import_typeorm30.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
4142
4260
|
], Job.prototype, "applicationCount", 2);
|
|
4143
4261
|
__decorateClass([
|
|
4144
|
-
(0,
|
|
4262
|
+
(0, import_typeorm30.Column)({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4145
4263
|
], Job.prototype, "isContractSigned", 2);
|
|
4146
4264
|
__decorateClass([
|
|
4147
|
-
(0,
|
|
4265
|
+
(0, import_typeorm30.Column)({ name: "is_interview_created", type: "boolean", default: false })
|
|
4148
4266
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4149
4267
|
__decorateClass([
|
|
4150
|
-
(0,
|
|
4268
|
+
(0, import_typeorm30.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4151
4269
|
], Job.prototype, "interviewInvites", 2);
|
|
4152
4270
|
__decorateClass([
|
|
4153
|
-
(0,
|
|
4271
|
+
(0, import_typeorm30.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4154
4272
|
], Job.prototype, "jobSkills", 2);
|
|
4155
4273
|
__decorateClass([
|
|
4156
|
-
(0,
|
|
4274
|
+
(0, import_typeorm30.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4157
4275
|
cascade: true
|
|
4158
4276
|
})
|
|
4159
4277
|
], Job.prototype, "jobApplications", 2);
|
|
4160
4278
|
__decorateClass([
|
|
4161
|
-
(0,
|
|
4279
|
+
(0, import_typeorm30.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
4162
4280
|
cascade: true
|
|
4163
4281
|
})
|
|
4164
4282
|
], Job.prototype, "interviews", 2);
|
|
4165
4283
|
__decorateClass([
|
|
4166
|
-
(0,
|
|
4284
|
+
(0, import_typeorm30.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4167
4285
|
cascade: true
|
|
4168
4286
|
})
|
|
4169
4287
|
], Job.prototype, "f2fInterviews", 2);
|
|
4170
4288
|
__decorateClass([
|
|
4171
|
-
(0,
|
|
4289
|
+
(0, import_typeorm30.OneToMany)(
|
|
4172
4290
|
() => JobRecommendation,
|
|
4173
4291
|
(jobRecommendation) => jobRecommendation.job,
|
|
4174
4292
|
{
|
|
@@ -4177,34 +4295,39 @@ __decorateClass([
|
|
|
4177
4295
|
)
|
|
4178
4296
|
], Job.prototype, "recommendations", 2);
|
|
4179
4297
|
__decorateClass([
|
|
4180
|
-
(0,
|
|
4298
|
+
(0, import_typeorm30.OneToMany)(() => Contract, (contract) => contract.job, {
|
|
4181
4299
|
cascade: true
|
|
4182
4300
|
})
|
|
4183
4301
|
], Job.prototype, "contracts", 2);
|
|
4184
4302
|
__decorateClass([
|
|
4185
|
-
(0,
|
|
4303
|
+
(0, import_typeorm30.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4304
|
+
cascade: true
|
|
4305
|
+
})
|
|
4306
|
+
], Job.prototype, "escrowWallets", 2);
|
|
4307
|
+
__decorateClass([
|
|
4308
|
+
(0, import_typeorm30.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4186
4309
|
cascade: true
|
|
4187
4310
|
})
|
|
4188
4311
|
], Job.prototype, "timesheets", 2);
|
|
4189
4312
|
__decorateClass([
|
|
4190
|
-
(0,
|
|
4313
|
+
(0, import_typeorm30.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4191
4314
|
cascade: true
|
|
4192
4315
|
})
|
|
4193
4316
|
], Job.prototype, "timesheetLine", 2);
|
|
4194
4317
|
__decorateClass([
|
|
4195
|
-
(0,
|
|
4318
|
+
(0, import_typeorm30.OneToMany)(() => Invoice, (invoice) => invoice.job, {
|
|
4196
4319
|
cascade: true
|
|
4197
4320
|
})
|
|
4198
4321
|
], Job.prototype, "invoice", 2);
|
|
4199
4322
|
__decorateClass([
|
|
4200
|
-
(0,
|
|
4323
|
+
(0, import_typeorm30.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4201
4324
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4202
4325
|
Job = __decorateClass([
|
|
4203
|
-
(0,
|
|
4326
|
+
(0, import_typeorm30.Entity)("jobs")
|
|
4204
4327
|
], Job);
|
|
4205
4328
|
|
|
4206
4329
|
// src/entities/bank-details.entity.ts
|
|
4207
|
-
var
|
|
4330
|
+
var import_typeorm31 = require("typeorm");
|
|
4208
4331
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4209
4332
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
4210
4333
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -4219,51 +4342,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4219
4342
|
};
|
|
4220
4343
|
// individual index to find bank details by user
|
|
4221
4344
|
__decorateClass([
|
|
4222
|
-
(0,
|
|
4223
|
-
(0,
|
|
4345
|
+
(0, import_typeorm31.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4346
|
+
(0, import_typeorm31.Index)()
|
|
4224
4347
|
], BankDetail.prototype, "userId", 2);
|
|
4225
4348
|
__decorateClass([
|
|
4226
|
-
(0,
|
|
4227
|
-
(0,
|
|
4349
|
+
(0, import_typeorm31.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
4350
|
+
(0, import_typeorm31.JoinColumn)({ name: "user_id" })
|
|
4228
4351
|
], BankDetail.prototype, "user", 2);
|
|
4229
4352
|
__decorateClass([
|
|
4230
|
-
(0,
|
|
4353
|
+
(0, import_typeorm31.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4231
4354
|
], BankDetail.prototype, "name", 2);
|
|
4232
4355
|
__decorateClass([
|
|
4233
|
-
(0,
|
|
4356
|
+
(0, import_typeorm31.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4234
4357
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4235
4358
|
__decorateClass([
|
|
4236
|
-
(0,
|
|
4359
|
+
(0, import_typeorm31.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
4237
4360
|
], BankDetail.prototype, "mobile", 2);
|
|
4238
4361
|
__decorateClass([
|
|
4239
|
-
(0,
|
|
4362
|
+
(0, import_typeorm31.Column)({ name: "email", type: "varchar" })
|
|
4240
4363
|
], BankDetail.prototype, "email", 2);
|
|
4241
4364
|
__decorateClass([
|
|
4242
|
-
(0,
|
|
4365
|
+
(0, import_typeorm31.Column)({ name: "address", type: "varchar", nullable: true })
|
|
4243
4366
|
], BankDetail.prototype, "address", 2);
|
|
4244
4367
|
__decorateClass([
|
|
4245
|
-
(0,
|
|
4368
|
+
(0, import_typeorm31.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4246
4369
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4247
4370
|
__decorateClass([
|
|
4248
|
-
(0,
|
|
4371
|
+
(0, import_typeorm31.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
4249
4372
|
], BankDetail.prototype, "bankName", 2);
|
|
4250
4373
|
__decorateClass([
|
|
4251
|
-
(0,
|
|
4374
|
+
(0, import_typeorm31.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4252
4375
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4253
4376
|
__decorateClass([
|
|
4254
|
-
(0,
|
|
4377
|
+
(0, import_typeorm31.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
4255
4378
|
], BankDetail.prototype, "branchName", 2);
|
|
4256
4379
|
__decorateClass([
|
|
4257
|
-
(0,
|
|
4380
|
+
(0, import_typeorm31.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
4258
4381
|
], BankDetail.prototype, "routingNo", 2);
|
|
4259
4382
|
__decorateClass([
|
|
4260
|
-
(0,
|
|
4383
|
+
(0, import_typeorm31.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
4261
4384
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4262
4385
|
__decorateClass([
|
|
4263
|
-
(0,
|
|
4386
|
+
(0, import_typeorm31.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
4264
4387
|
], BankDetail.prototype, "iban", 2);
|
|
4265
4388
|
__decorateClass([
|
|
4266
|
-
(0,
|
|
4389
|
+
(0, import_typeorm31.Column)({
|
|
4267
4390
|
name: "account_type",
|
|
4268
4391
|
type: "enum",
|
|
4269
4392
|
enum: BankAccountTypeEnum,
|
|
@@ -4271,7 +4394,7 @@ __decorateClass([
|
|
|
4271
4394
|
})
|
|
4272
4395
|
], BankDetail.prototype, "accountType", 2);
|
|
4273
4396
|
__decorateClass([
|
|
4274
|
-
(0,
|
|
4397
|
+
(0, import_typeorm31.Column)({
|
|
4275
4398
|
name: "account_scope",
|
|
4276
4399
|
type: "enum",
|
|
4277
4400
|
enum: BankAccountScopeEnum,
|
|
@@ -4279,150 +4402,150 @@ __decorateClass([
|
|
|
4279
4402
|
})
|
|
4280
4403
|
], BankDetail.prototype, "accountScope", 2);
|
|
4281
4404
|
BankDetail = __decorateClass([
|
|
4282
|
-
(0,
|
|
4405
|
+
(0, import_typeorm31.Entity)("bank_details")
|
|
4283
4406
|
], BankDetail);
|
|
4284
4407
|
|
|
4285
4408
|
// src/entities/system-preference.entity.ts
|
|
4286
|
-
var
|
|
4409
|
+
var import_typeorm32 = require("typeorm");
|
|
4287
4410
|
var SystemPreference = class extends BaseEntity {
|
|
4288
4411
|
};
|
|
4289
4412
|
// individual index to find system preference by user
|
|
4290
4413
|
__decorateClass([
|
|
4291
|
-
(0,
|
|
4292
|
-
(0,
|
|
4414
|
+
(0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4415
|
+
(0, import_typeorm32.Index)()
|
|
4293
4416
|
], SystemPreference.prototype, "userId", 2);
|
|
4294
4417
|
__decorateClass([
|
|
4295
|
-
(0,
|
|
4296
|
-
(0,
|
|
4418
|
+
(0, import_typeorm32.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
4419
|
+
(0, import_typeorm32.JoinColumn)({ name: "user_id" })
|
|
4297
4420
|
], SystemPreference.prototype, "user", 2);
|
|
4298
4421
|
__decorateClass([
|
|
4299
|
-
(0,
|
|
4422
|
+
(0, import_typeorm32.Column)({ name: "key", type: "varchar", nullable: false })
|
|
4300
4423
|
], SystemPreference.prototype, "key", 2);
|
|
4301
4424
|
__decorateClass([
|
|
4302
|
-
(0,
|
|
4425
|
+
(0, import_typeorm32.Column)({ name: "value", type: "boolean", default: false })
|
|
4303
4426
|
], SystemPreference.prototype, "value", 2);
|
|
4304
4427
|
SystemPreference = __decorateClass([
|
|
4305
|
-
(0,
|
|
4428
|
+
(0, import_typeorm32.Entity)("system_preferences")
|
|
4306
4429
|
], SystemPreference);
|
|
4307
4430
|
|
|
4308
4431
|
// src/entities/freelancer-experience.entity.ts
|
|
4309
|
-
var
|
|
4432
|
+
var import_typeorm33 = require("typeorm");
|
|
4310
4433
|
var FreelancerExperience = class extends BaseEntity {
|
|
4311
4434
|
};
|
|
4312
4435
|
// individual index to find experence by user
|
|
4313
4436
|
__decorateClass([
|
|
4314
|
-
(0,
|
|
4315
|
-
(0,
|
|
4437
|
+
(0, import_typeorm33.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4438
|
+
(0, import_typeorm33.Index)()
|
|
4316
4439
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4317
4440
|
__decorateClass([
|
|
4318
|
-
(0,
|
|
4319
|
-
(0,
|
|
4441
|
+
(0, import_typeorm33.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
4442
|
+
(0, import_typeorm33.JoinColumn)({ name: "user_id" })
|
|
4320
4443
|
], FreelancerExperience.prototype, "user", 2);
|
|
4321
4444
|
__decorateClass([
|
|
4322
|
-
(0,
|
|
4445
|
+
(0, import_typeorm33.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
4323
4446
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4324
4447
|
__decorateClass([
|
|
4325
|
-
(0,
|
|
4448
|
+
(0, import_typeorm33.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
4326
4449
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4327
4450
|
__decorateClass([
|
|
4328
|
-
(0,
|
|
4451
|
+
(0, import_typeorm33.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
4329
4452
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4330
4453
|
__decorateClass([
|
|
4331
|
-
(0,
|
|
4454
|
+
(0, import_typeorm33.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4332
4455
|
], FreelancerExperience.prototype, "description", 2);
|
|
4333
4456
|
FreelancerExperience = __decorateClass([
|
|
4334
|
-
(0,
|
|
4457
|
+
(0, import_typeorm33.Entity)("freelancer_experiences")
|
|
4335
4458
|
], FreelancerExperience);
|
|
4336
4459
|
|
|
4337
4460
|
// src/entities/freelancer-education.entity.ts
|
|
4338
|
-
var
|
|
4461
|
+
var import_typeorm34 = require("typeorm");
|
|
4339
4462
|
var FreelancerEducation = class extends BaseEntity {
|
|
4340
4463
|
};
|
|
4341
4464
|
// individual index to find education by user
|
|
4342
4465
|
__decorateClass([
|
|
4343
|
-
(0,
|
|
4344
|
-
(0,
|
|
4466
|
+
(0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4467
|
+
(0, import_typeorm34.Index)()
|
|
4345
4468
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4346
4469
|
__decorateClass([
|
|
4347
|
-
(0,
|
|
4348
|
-
(0,
|
|
4470
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
4471
|
+
(0, import_typeorm34.JoinColumn)({ name: "user_id" })
|
|
4349
4472
|
], FreelancerEducation.prototype, "user", 2);
|
|
4350
4473
|
__decorateClass([
|
|
4351
|
-
(0,
|
|
4474
|
+
(0, import_typeorm34.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
4352
4475
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4353
4476
|
__decorateClass([
|
|
4354
|
-
(0,
|
|
4477
|
+
(0, import_typeorm34.Column)({ name: "university", type: "varchar", nullable: true })
|
|
4355
4478
|
], FreelancerEducation.prototype, "university", 2);
|
|
4356
4479
|
__decorateClass([
|
|
4357
|
-
(0,
|
|
4480
|
+
(0, import_typeorm34.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4358
4481
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4359
4482
|
FreelancerEducation = __decorateClass([
|
|
4360
|
-
(0,
|
|
4483
|
+
(0, import_typeorm34.Entity)("freelancer_educations")
|
|
4361
4484
|
], FreelancerEducation);
|
|
4362
4485
|
|
|
4363
4486
|
// src/entities/freelancer-project.entity.ts
|
|
4364
|
-
var
|
|
4487
|
+
var import_typeorm35 = require("typeorm");
|
|
4365
4488
|
var FreelancerProject = class extends BaseEntity {
|
|
4366
4489
|
};
|
|
4367
4490
|
// individual index to find project by user
|
|
4368
4491
|
__decorateClass([
|
|
4369
|
-
(0,
|
|
4370
|
-
(0,
|
|
4492
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4493
|
+
(0, import_typeorm35.Index)()
|
|
4371
4494
|
], FreelancerProject.prototype, "userId", 2);
|
|
4372
4495
|
__decorateClass([
|
|
4373
|
-
(0,
|
|
4374
|
-
(0,
|
|
4496
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
4497
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
4375
4498
|
], FreelancerProject.prototype, "user", 2);
|
|
4376
4499
|
__decorateClass([
|
|
4377
|
-
(0,
|
|
4500
|
+
(0, import_typeorm35.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4378
4501
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4379
4502
|
__decorateClass([
|
|
4380
|
-
(0,
|
|
4503
|
+
(0, import_typeorm35.Column)({ name: "start_date", type: "date", nullable: true })
|
|
4381
4504
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4382
4505
|
__decorateClass([
|
|
4383
|
-
(0,
|
|
4506
|
+
(0, import_typeorm35.Column)({ name: "end_date", type: "date", nullable: true })
|
|
4384
4507
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4385
4508
|
__decorateClass([
|
|
4386
|
-
(0,
|
|
4509
|
+
(0, import_typeorm35.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
4387
4510
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4388
4511
|
__decorateClass([
|
|
4389
|
-
(0,
|
|
4512
|
+
(0, import_typeorm35.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
4390
4513
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4391
4514
|
__decorateClass([
|
|
4392
|
-
(0,
|
|
4515
|
+
(0, import_typeorm35.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4393
4516
|
], FreelancerProject.prototype, "description", 2);
|
|
4394
4517
|
FreelancerProject = __decorateClass([
|
|
4395
|
-
(0,
|
|
4518
|
+
(0, import_typeorm35.Entity)("freelancer_projects")
|
|
4396
4519
|
], FreelancerProject);
|
|
4397
4520
|
|
|
4398
4521
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4399
|
-
var
|
|
4522
|
+
var import_typeorm36 = require("typeorm");
|
|
4400
4523
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4401
4524
|
};
|
|
4402
4525
|
// individual index to find case study by user
|
|
4403
4526
|
__decorateClass([
|
|
4404
|
-
(0,
|
|
4405
|
-
(0,
|
|
4527
|
+
(0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4528
|
+
(0, import_typeorm36.Index)()
|
|
4406
4529
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4407
4530
|
__decorateClass([
|
|
4408
|
-
(0,
|
|
4409
|
-
(0,
|
|
4531
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
4532
|
+
(0, import_typeorm36.JoinColumn)({ name: "user_id" })
|
|
4410
4533
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4411
4534
|
__decorateClass([
|
|
4412
|
-
(0,
|
|
4535
|
+
(0, import_typeorm36.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4413
4536
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4414
4537
|
__decorateClass([
|
|
4415
|
-
(0,
|
|
4538
|
+
(0, import_typeorm36.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4416
4539
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4417
4540
|
__decorateClass([
|
|
4418
|
-
(0,
|
|
4541
|
+
(0, import_typeorm36.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4419
4542
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4420
4543
|
FreelancerCaseStudy = __decorateClass([
|
|
4421
|
-
(0,
|
|
4544
|
+
(0, import_typeorm36.Entity)("freelancer_case_studies")
|
|
4422
4545
|
], FreelancerCaseStudy);
|
|
4423
4546
|
|
|
4424
4547
|
// src/entities/freelancer-skill.entity.ts
|
|
4425
|
-
var
|
|
4548
|
+
var import_typeorm37 = require("typeorm");
|
|
4426
4549
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4427
4550
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
4428
4551
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
|
|
@@ -4432,18 +4555,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4432
4555
|
};
|
|
4433
4556
|
// individual index to find core skills by user
|
|
4434
4557
|
__decorateClass([
|
|
4435
|
-
(0,
|
|
4436
|
-
(0,
|
|
4558
|
+
(0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4559
|
+
(0, import_typeorm37.Index)()
|
|
4437
4560
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4438
4561
|
__decorateClass([
|
|
4439
|
-
(0,
|
|
4440
|
-
(0,
|
|
4562
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
4563
|
+
(0, import_typeorm37.JoinColumn)({ name: "user_id" })
|
|
4441
4564
|
], FreelancerSkill.prototype, "user", 2);
|
|
4442
4565
|
__decorateClass([
|
|
4443
|
-
(0,
|
|
4566
|
+
(0, import_typeorm37.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
4444
4567
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4445
4568
|
__decorateClass([
|
|
4446
|
-
(0,
|
|
4569
|
+
(0, import_typeorm37.Column)({
|
|
4447
4570
|
name: "skill_category",
|
|
4448
4571
|
type: "smallint",
|
|
4449
4572
|
default: 1,
|
|
@@ -4451,51 +4574,51 @@ __decorateClass([
|
|
|
4451
4574
|
})
|
|
4452
4575
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4453
4576
|
FreelancerSkill = __decorateClass([
|
|
4454
|
-
(0,
|
|
4577
|
+
(0, import_typeorm37.Entity)("freelancer_skills")
|
|
4455
4578
|
], FreelancerSkill);
|
|
4456
4579
|
|
|
4457
4580
|
// src/entities/freelancer-tool.entity.ts
|
|
4458
|
-
var
|
|
4581
|
+
var import_typeorm38 = require("typeorm");
|
|
4459
4582
|
var FreelancerTool = class extends BaseEntity {
|
|
4460
4583
|
};
|
|
4461
4584
|
// individual index to find tool by user
|
|
4462
4585
|
__decorateClass([
|
|
4463
|
-
(0,
|
|
4464
|
-
(0,
|
|
4586
|
+
(0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4587
|
+
(0, import_typeorm38.Index)()
|
|
4465
4588
|
], FreelancerTool.prototype, "userId", 2);
|
|
4466
4589
|
__decorateClass([
|
|
4467
|
-
(0,
|
|
4468
|
-
(0,
|
|
4590
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
4591
|
+
(0, import_typeorm38.JoinColumn)({ name: "user_id" })
|
|
4469
4592
|
], FreelancerTool.prototype, "user", 2);
|
|
4470
4593
|
__decorateClass([
|
|
4471
|
-
(0,
|
|
4594
|
+
(0, import_typeorm38.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
4472
4595
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4473
4596
|
FreelancerTool = __decorateClass([
|
|
4474
|
-
(0,
|
|
4597
|
+
(0, import_typeorm38.Entity)("freelancer_tools")
|
|
4475
4598
|
], FreelancerTool);
|
|
4476
4599
|
|
|
4477
4600
|
// src/entities/freelancer-framework.entity.ts
|
|
4478
|
-
var
|
|
4601
|
+
var import_typeorm39 = require("typeorm");
|
|
4479
4602
|
var FreelancerFramework = class extends BaseEntity {
|
|
4480
4603
|
};
|
|
4481
4604
|
// individual index to find framework by user
|
|
4482
4605
|
__decorateClass([
|
|
4483
|
-
(0,
|
|
4484
|
-
(0,
|
|
4606
|
+
(0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4607
|
+
(0, import_typeorm39.Index)()
|
|
4485
4608
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4486
4609
|
__decorateClass([
|
|
4487
|
-
(0,
|
|
4488
|
-
(0,
|
|
4610
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
4611
|
+
(0, import_typeorm39.JoinColumn)({ name: "user_id" })
|
|
4489
4612
|
], FreelancerFramework.prototype, "user", 2);
|
|
4490
4613
|
__decorateClass([
|
|
4491
|
-
(0,
|
|
4614
|
+
(0, import_typeorm39.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
4492
4615
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4493
4616
|
FreelancerFramework = __decorateClass([
|
|
4494
|
-
(0,
|
|
4617
|
+
(0, import_typeorm39.Entity)("freelancer_frameworks")
|
|
4495
4618
|
], FreelancerFramework);
|
|
4496
4619
|
|
|
4497
4620
|
// src/entities/freelancer-assessment.entity.ts
|
|
4498
|
-
var
|
|
4621
|
+
var import_typeorm40 = require("typeorm");
|
|
4499
4622
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4500
4623
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
4501
4624
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -4511,30 +4634,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4511
4634
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4512
4635
|
};
|
|
4513
4636
|
__decorateClass([
|
|
4514
|
-
(0,
|
|
4515
|
-
(0,
|
|
4637
|
+
(0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4638
|
+
(0, import_typeorm40.Index)()
|
|
4516
4639
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4517
4640
|
__decorateClass([
|
|
4518
|
-
(0,
|
|
4519
|
-
(0,
|
|
4641
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.assessments),
|
|
4642
|
+
(0, import_typeorm40.JoinColumn)({ name: "user_id" })
|
|
4520
4643
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4521
4644
|
__decorateClass([
|
|
4522
|
-
(0,
|
|
4645
|
+
(0, import_typeorm40.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
4523
4646
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4524
4647
|
__decorateClass([
|
|
4525
|
-
(0,
|
|
4648
|
+
(0, import_typeorm40.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
4526
4649
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4527
4650
|
__decorateClass([
|
|
4528
|
-
(0,
|
|
4651
|
+
(0, import_typeorm40.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
4529
4652
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4530
4653
|
__decorateClass([
|
|
4531
|
-
(0,
|
|
4654
|
+
(0, import_typeorm40.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4532
4655
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4533
4656
|
__decorateClass([
|
|
4534
|
-
(0,
|
|
4657
|
+
(0, import_typeorm40.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4535
4658
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4536
4659
|
__decorateClass([
|
|
4537
|
-
(0,
|
|
4660
|
+
(0, import_typeorm40.Column)({
|
|
4538
4661
|
name: "status",
|
|
4539
4662
|
type: "enum",
|
|
4540
4663
|
enum: AssessmentStatusEnum,
|
|
@@ -4542,11 +4665,11 @@ __decorateClass([
|
|
|
4542
4665
|
})
|
|
4543
4666
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4544
4667
|
FreelancerAssessment = __decorateClass([
|
|
4545
|
-
(0,
|
|
4668
|
+
(0, import_typeorm40.Entity)("freelancer_assessments")
|
|
4546
4669
|
], FreelancerAssessment);
|
|
4547
4670
|
|
|
4548
4671
|
// src/entities/freelancer-declaration.entity.ts
|
|
4549
|
-
var
|
|
4672
|
+
var import_typeorm41 = require("typeorm");
|
|
4550
4673
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4551
4674
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4552
4675
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4558,15 +4681,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4558
4681
|
};
|
|
4559
4682
|
// individual index to find declaration by user
|
|
4560
4683
|
__decorateClass([
|
|
4561
|
-
(0,
|
|
4562
|
-
(0,
|
|
4684
|
+
(0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4685
|
+
(0, import_typeorm41.Index)()
|
|
4563
4686
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4564
4687
|
__decorateClass([
|
|
4565
|
-
(0,
|
|
4566
|
-
(0,
|
|
4688
|
+
(0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
4689
|
+
(0, import_typeorm41.JoinColumn)({ name: "user_id" })
|
|
4567
4690
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4568
4691
|
__decorateClass([
|
|
4569
|
-
(0,
|
|
4692
|
+
(0, import_typeorm41.Column)({
|
|
4570
4693
|
name: "document_type",
|
|
4571
4694
|
type: "enum",
|
|
4572
4695
|
enum: DocumentType,
|
|
@@ -4574,144 +4697,144 @@ __decorateClass([
|
|
|
4574
4697
|
})
|
|
4575
4698
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
4576
4699
|
__decorateClass([
|
|
4577
|
-
(0,
|
|
4700
|
+
(0, import_typeorm41.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
4578
4701
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
4579
4702
|
__decorateClass([
|
|
4580
|
-
(0,
|
|
4703
|
+
(0, import_typeorm41.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
4581
4704
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
4582
4705
|
__decorateClass([
|
|
4583
|
-
(0,
|
|
4706
|
+
(0, import_typeorm41.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
4584
4707
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
4585
4708
|
__decorateClass([
|
|
4586
|
-
(0,
|
|
4709
|
+
(0, import_typeorm41.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
4587
4710
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
4588
4711
|
FreelancerDeclaration = __decorateClass([
|
|
4589
|
-
(0,
|
|
4712
|
+
(0, import_typeorm41.Entity)("freelancer_declaration")
|
|
4590
4713
|
], FreelancerDeclaration);
|
|
4591
4714
|
|
|
4592
4715
|
// src/entities/company-members-roles.entity.ts
|
|
4593
|
-
var
|
|
4716
|
+
var import_typeorm45 = require("typeorm");
|
|
4594
4717
|
|
|
4595
4718
|
// src/entities/company-role.entity.ts
|
|
4596
|
-
var
|
|
4719
|
+
var import_typeorm44 = require("typeorm");
|
|
4597
4720
|
|
|
4598
4721
|
// src/entities/company-role-permission.entity.ts
|
|
4599
|
-
var
|
|
4722
|
+
var import_typeorm43 = require("typeorm");
|
|
4600
4723
|
|
|
4601
4724
|
// src/entities/permission.entity.ts
|
|
4602
|
-
var
|
|
4725
|
+
var import_typeorm42 = require("typeorm");
|
|
4603
4726
|
var Permission = class extends BaseEntity {
|
|
4604
4727
|
};
|
|
4605
4728
|
__decorateClass([
|
|
4606
|
-
(0,
|
|
4729
|
+
(0, import_typeorm42.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4607
4730
|
], Permission.prototype, "name", 2);
|
|
4608
4731
|
__decorateClass([
|
|
4609
|
-
(0,
|
|
4610
|
-
(0,
|
|
4732
|
+
(0, import_typeorm42.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4733
|
+
(0, import_typeorm42.Index)()
|
|
4611
4734
|
], Permission.prototype, "slug", 2);
|
|
4612
4735
|
__decorateClass([
|
|
4613
|
-
(0,
|
|
4736
|
+
(0, import_typeorm42.Column)({ name: "description", type: "text", nullable: true })
|
|
4614
4737
|
], Permission.prototype, "description", 2);
|
|
4615
4738
|
__decorateClass([
|
|
4616
|
-
(0,
|
|
4739
|
+
(0, import_typeorm42.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4617
4740
|
], Permission.prototype, "isActive", 2);
|
|
4618
4741
|
Permission = __decorateClass([
|
|
4619
|
-
(0,
|
|
4742
|
+
(0, import_typeorm42.Entity)("permissions")
|
|
4620
4743
|
], Permission);
|
|
4621
4744
|
|
|
4622
4745
|
// src/entities/company-role-permission.entity.ts
|
|
4623
4746
|
var CompanyRolePermission = class extends BaseEntity {
|
|
4624
4747
|
};
|
|
4625
4748
|
__decorateClass([
|
|
4626
|
-
(0,
|
|
4627
|
-
(0,
|
|
4749
|
+
(0, import_typeorm43.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4750
|
+
(0, import_typeorm43.Index)()
|
|
4628
4751
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
4629
4752
|
__decorateClass([
|
|
4630
|
-
(0,
|
|
4753
|
+
(0, import_typeorm43.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
4631
4754
|
onDelete: "CASCADE"
|
|
4632
4755
|
}),
|
|
4633
|
-
(0,
|
|
4756
|
+
(0, import_typeorm43.JoinColumn)({ name: "company_role_id" })
|
|
4634
4757
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
4635
4758
|
__decorateClass([
|
|
4636
|
-
(0,
|
|
4637
|
-
(0,
|
|
4759
|
+
(0, import_typeorm43.Column)({ name: "permission_id", type: "integer" }),
|
|
4760
|
+
(0, import_typeorm43.Index)()
|
|
4638
4761
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
4639
4762
|
__decorateClass([
|
|
4640
|
-
(0,
|
|
4641
|
-
(0,
|
|
4763
|
+
(0, import_typeorm43.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
4764
|
+
(0, import_typeorm43.JoinColumn)({ name: "permission_id" })
|
|
4642
4765
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
4643
4766
|
__decorateClass([
|
|
4644
|
-
(0,
|
|
4767
|
+
(0, import_typeorm43.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
4645
4768
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
4646
4769
|
CompanyRolePermission = __decorateClass([
|
|
4647
|
-
(0,
|
|
4770
|
+
(0, import_typeorm43.Entity)("company_role_permissions")
|
|
4648
4771
|
], CompanyRolePermission);
|
|
4649
4772
|
|
|
4650
4773
|
// src/entities/company-role.entity.ts
|
|
4651
4774
|
var CompanyRole = class extends BaseEntity {
|
|
4652
4775
|
};
|
|
4653
4776
|
__decorateClass([
|
|
4654
|
-
(0,
|
|
4655
|
-
(0,
|
|
4777
|
+
(0, import_typeorm44.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4778
|
+
(0, import_typeorm44.Index)()
|
|
4656
4779
|
], CompanyRole.prototype, "userId", 2);
|
|
4657
4780
|
__decorateClass([
|
|
4658
|
-
(0,
|
|
4659
|
-
(0,
|
|
4781
|
+
(0, import_typeorm44.ManyToOne)(() => User, (user) => user.otps),
|
|
4782
|
+
(0, import_typeorm44.JoinColumn)({ name: "user_id" })
|
|
4660
4783
|
], CompanyRole.prototype, "user", 2);
|
|
4661
4784
|
__decorateClass([
|
|
4662
|
-
(0,
|
|
4785
|
+
(0, import_typeorm44.Column)({ name: "name", type: "varchar" })
|
|
4663
4786
|
], CompanyRole.prototype, "name", 2);
|
|
4664
4787
|
__decorateClass([
|
|
4665
|
-
(0,
|
|
4666
|
-
(0,
|
|
4788
|
+
(0, import_typeorm44.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
4789
|
+
(0, import_typeorm44.Index)()
|
|
4667
4790
|
], CompanyRole.prototype, "slug", 2);
|
|
4668
4791
|
__decorateClass([
|
|
4669
|
-
(0,
|
|
4792
|
+
(0, import_typeorm44.Column)({ name: "description", type: "text", nullable: true })
|
|
4670
4793
|
], CompanyRole.prototype, "description", 2);
|
|
4671
4794
|
__decorateClass([
|
|
4672
|
-
(0,
|
|
4795
|
+
(0, import_typeorm44.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4673
4796
|
], CompanyRole.prototype, "isActive", 2);
|
|
4674
4797
|
__decorateClass([
|
|
4675
|
-
(0,
|
|
4798
|
+
(0, import_typeorm44.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4676
4799
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4677
4800
|
CompanyRole = __decorateClass([
|
|
4678
|
-
(0,
|
|
4801
|
+
(0, import_typeorm44.Entity)("company_roles")
|
|
4679
4802
|
], CompanyRole);
|
|
4680
4803
|
|
|
4681
4804
|
// src/entities/company-members-roles.entity.ts
|
|
4682
4805
|
var CompanyMemberRole = class extends BaseEntity {
|
|
4683
4806
|
};
|
|
4684
4807
|
__decorateClass([
|
|
4685
|
-
(0,
|
|
4686
|
-
(0,
|
|
4808
|
+
(0, import_typeorm45.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4809
|
+
(0, import_typeorm45.Index)()
|
|
4687
4810
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
4688
4811
|
__decorateClass([
|
|
4689
|
-
(0,
|
|
4690
|
-
(0,
|
|
4812
|
+
(0, import_typeorm45.ManyToOne)(() => User),
|
|
4813
|
+
(0, import_typeorm45.JoinColumn)({ name: "user_id" })
|
|
4691
4814
|
], CompanyMemberRole.prototype, "user", 2);
|
|
4692
4815
|
__decorateClass([
|
|
4693
|
-
(0,
|
|
4694
|
-
(0,
|
|
4816
|
+
(0, import_typeorm45.ManyToOne)(() => CompanyRole),
|
|
4817
|
+
(0, import_typeorm45.JoinColumn)({ name: "company_role_id" })
|
|
4695
4818
|
], CompanyMemberRole.prototype, "role", 2);
|
|
4696
4819
|
__decorateClass([
|
|
4697
|
-
(0,
|
|
4698
|
-
(0,
|
|
4820
|
+
(0, import_typeorm45.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
4821
|
+
(0, import_typeorm45.Index)()
|
|
4699
4822
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
4700
4823
|
__decorateClass([
|
|
4701
|
-
(0,
|
|
4824
|
+
(0, import_typeorm45.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
4702
4825
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
4703
4826
|
CompanyMemberRole = __decorateClass([
|
|
4704
|
-
(0,
|
|
4827
|
+
(0, import_typeorm45.Entity)("company_member_roles")
|
|
4705
4828
|
], CompanyMemberRole);
|
|
4706
4829
|
|
|
4707
4830
|
// src/entities/assessment-answer.entity.ts
|
|
4708
|
-
var
|
|
4831
|
+
var import_typeorm48 = require("typeorm");
|
|
4709
4832
|
|
|
4710
4833
|
// src/entities/assessment-question.entity.ts
|
|
4711
|
-
var
|
|
4834
|
+
var import_typeorm47 = require("typeorm");
|
|
4712
4835
|
|
|
4713
4836
|
// src/entities/assessment-question-option.entity.ts
|
|
4714
|
-
var
|
|
4837
|
+
var import_typeorm46 = require("typeorm");
|
|
4715
4838
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
4716
4839
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
4717
4840
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -4721,21 +4844,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
4721
4844
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
4722
4845
|
};
|
|
4723
4846
|
__decorateClass([
|
|
4724
|
-
(0,
|
|
4725
|
-
(0,
|
|
4847
|
+
(0, import_typeorm46.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
4848
|
+
(0, import_typeorm46.Index)()
|
|
4726
4849
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
4727
4850
|
__decorateClass([
|
|
4728
|
-
(0,
|
|
4851
|
+
(0, import_typeorm46.ManyToOne)(
|
|
4729
4852
|
() => AssessmetQuestion,
|
|
4730
4853
|
(assessmentQuestion) => assessmentQuestion.options
|
|
4731
4854
|
),
|
|
4732
|
-
(0,
|
|
4855
|
+
(0, import_typeorm46.JoinColumn)({ name: "question_id" })
|
|
4733
4856
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
4734
4857
|
__decorateClass([
|
|
4735
|
-
(0,
|
|
4858
|
+
(0, import_typeorm46.Column)({ name: "text", type: "varchar", nullable: true })
|
|
4736
4859
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
4737
4860
|
__decorateClass([
|
|
4738
|
-
(0,
|
|
4861
|
+
(0, import_typeorm46.Column)({
|
|
4739
4862
|
name: "answer_type",
|
|
4740
4863
|
type: "enum",
|
|
4741
4864
|
enum: AnswerTypeEnum,
|
|
@@ -4743,13 +4866,13 @@ __decorateClass([
|
|
|
4743
4866
|
})
|
|
4744
4867
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
4745
4868
|
__decorateClass([
|
|
4746
|
-
(0,
|
|
4869
|
+
(0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4747
4870
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
4748
4871
|
__decorateClass([
|
|
4749
|
-
(0,
|
|
4872
|
+
(0, import_typeorm46.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
4750
4873
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
4751
4874
|
AssessmetQuestionOption = __decorateClass([
|
|
4752
|
-
(0,
|
|
4875
|
+
(0, import_typeorm46.Entity)("assessment_question_options")
|
|
4753
4876
|
], AssessmetQuestionOption);
|
|
4754
4877
|
|
|
4755
4878
|
// src/entities/assessment-question.entity.ts
|
|
@@ -4761,10 +4884,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
4761
4884
|
var AssessmetQuestion = class extends BaseEntity {
|
|
4762
4885
|
};
|
|
4763
4886
|
__decorateClass([
|
|
4764
|
-
(0,
|
|
4887
|
+
(0, import_typeorm47.Column)({ name: "text", type: "varchar", nullable: true })
|
|
4765
4888
|
], AssessmetQuestion.prototype, "text", 2);
|
|
4766
4889
|
__decorateClass([
|
|
4767
|
-
(0,
|
|
4890
|
+
(0, import_typeorm47.Column)({
|
|
4768
4891
|
name: "question_for",
|
|
4769
4892
|
type: "enum",
|
|
4770
4893
|
enum: QuestionForEnum,
|
|
@@ -4772,16 +4895,16 @@ __decorateClass([
|
|
|
4772
4895
|
})
|
|
4773
4896
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
4774
4897
|
__decorateClass([
|
|
4775
|
-
(0,
|
|
4898
|
+
(0, import_typeorm47.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4776
4899
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
4777
4900
|
__decorateClass([
|
|
4778
|
-
(0,
|
|
4901
|
+
(0, import_typeorm47.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
4779
4902
|
], AssessmetQuestion.prototype, "options", 2);
|
|
4780
4903
|
__decorateClass([
|
|
4781
|
-
(0,
|
|
4904
|
+
(0, import_typeorm47.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
4782
4905
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
4783
4906
|
AssessmetQuestion = __decorateClass([
|
|
4784
|
-
(0,
|
|
4907
|
+
(0, import_typeorm47.Entity)("assessment_questions")
|
|
4785
4908
|
], AssessmetQuestion);
|
|
4786
4909
|
|
|
4787
4910
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -4794,118 +4917,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
4794
4917
|
var AssessmentAnswer = class extends BaseEntity {
|
|
4795
4918
|
};
|
|
4796
4919
|
__decorateClass([
|
|
4797
|
-
(0,
|
|
4798
|
-
(0,
|
|
4920
|
+
(0, import_typeorm48.Column)({ name: "user_id", type: "integer" }),
|
|
4921
|
+
(0, import_typeorm48.Index)()
|
|
4799
4922
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
4800
4923
|
__decorateClass([
|
|
4801
|
-
(0,
|
|
4802
|
-
(0,
|
|
4924
|
+
(0, import_typeorm48.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
4925
|
+
(0, import_typeorm48.JoinColumn)({ name: "user_id" })
|
|
4803
4926
|
], AssessmentAnswer.prototype, "user", 2);
|
|
4804
4927
|
__decorateClass([
|
|
4805
|
-
(0,
|
|
4806
|
-
(0,
|
|
4928
|
+
(0, import_typeorm48.Column)({ name: "question_id", type: "integer" }),
|
|
4929
|
+
(0, import_typeorm48.Index)()
|
|
4807
4930
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
4808
4931
|
__decorateClass([
|
|
4809
|
-
(0,
|
|
4932
|
+
(0, import_typeorm48.ManyToOne)(
|
|
4810
4933
|
() => AssessmetQuestion,
|
|
4811
4934
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
4812
4935
|
),
|
|
4813
|
-
(0,
|
|
4936
|
+
(0, import_typeorm48.JoinColumn)({ name: "question_id" })
|
|
4814
4937
|
], AssessmentAnswer.prototype, "question", 2);
|
|
4815
4938
|
__decorateClass([
|
|
4816
|
-
(0,
|
|
4817
|
-
(0,
|
|
4939
|
+
(0, import_typeorm48.Column)({ name: "selected_option_id", type: "integer" }),
|
|
4940
|
+
(0, import_typeorm48.Index)()
|
|
4818
4941
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
4819
4942
|
__decorateClass([
|
|
4820
|
-
(0,
|
|
4943
|
+
(0, import_typeorm48.ManyToOne)(
|
|
4821
4944
|
() => AssessmetQuestionOption,
|
|
4822
4945
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
4823
4946
|
),
|
|
4824
|
-
(0,
|
|
4947
|
+
(0, import_typeorm48.JoinColumn)({ name: "selected_option_id" })
|
|
4825
4948
|
], AssessmentAnswer.prototype, "option", 2);
|
|
4826
4949
|
__decorateClass([
|
|
4827
|
-
(0,
|
|
4950
|
+
(0, import_typeorm48.Column)({
|
|
4828
4951
|
name: "selected_answer_type",
|
|
4829
4952
|
type: "enum",
|
|
4830
4953
|
enum: SelectedAnswerTypeEnum
|
|
4831
4954
|
})
|
|
4832
4955
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
4833
4956
|
__decorateClass([
|
|
4834
|
-
(0,
|
|
4957
|
+
(0, import_typeorm48.Column)({ name: "score", type: "float" })
|
|
4835
4958
|
], AssessmentAnswer.prototype, "score", 2);
|
|
4836
4959
|
AssessmentAnswer = __decorateClass([
|
|
4837
|
-
(0,
|
|
4960
|
+
(0, import_typeorm48.Entity)("assessment_answers")
|
|
4838
4961
|
], AssessmentAnswer);
|
|
4839
4962
|
|
|
4840
4963
|
// src/entities/company-skill.entity.ts
|
|
4841
|
-
var
|
|
4964
|
+
var import_typeorm49 = require("typeorm");
|
|
4842
4965
|
var CompanySkill = class extends BaseEntity {
|
|
4843
4966
|
};
|
|
4844
4967
|
// individual index to find core skills by user
|
|
4845
4968
|
__decorateClass([
|
|
4846
|
-
(0,
|
|
4847
|
-
(0,
|
|
4969
|
+
(0, import_typeorm49.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4970
|
+
(0, import_typeorm49.Index)()
|
|
4848
4971
|
], CompanySkill.prototype, "userId", 2);
|
|
4849
4972
|
__decorateClass([
|
|
4850
|
-
(0,
|
|
4851
|
-
(0,
|
|
4973
|
+
(0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
4974
|
+
(0, import_typeorm49.JoinColumn)({ name: "user_id" })
|
|
4852
4975
|
], CompanySkill.prototype, "user", 2);
|
|
4853
4976
|
__decorateClass([
|
|
4854
|
-
(0,
|
|
4977
|
+
(0, import_typeorm49.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
4855
4978
|
], CompanySkill.prototype, "skillName", 2);
|
|
4856
4979
|
CompanySkill = __decorateClass([
|
|
4857
|
-
(0,
|
|
4980
|
+
(0, import_typeorm49.Entity)("company_skills")
|
|
4858
4981
|
], CompanySkill);
|
|
4859
4982
|
|
|
4860
4983
|
// src/entities/admin-user-role.entity.ts
|
|
4861
|
-
var
|
|
4984
|
+
var import_typeorm53 = require("typeorm");
|
|
4862
4985
|
|
|
4863
4986
|
// src/entities/admin-role.entity.ts
|
|
4864
|
-
var
|
|
4987
|
+
var import_typeorm52 = require("typeorm");
|
|
4865
4988
|
|
|
4866
4989
|
// src/entities/admin-role-permission.entity.ts
|
|
4867
|
-
var
|
|
4990
|
+
var import_typeorm51 = require("typeorm");
|
|
4868
4991
|
|
|
4869
4992
|
// src/entities/admin-permission.entity.ts
|
|
4870
|
-
var
|
|
4993
|
+
var import_typeorm50 = require("typeorm");
|
|
4871
4994
|
var AdminPermission = class extends BaseEntity {
|
|
4872
4995
|
};
|
|
4873
4996
|
__decorateClass([
|
|
4874
|
-
(0,
|
|
4997
|
+
(0, import_typeorm50.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
4875
4998
|
], AdminPermission.prototype, "permissionName", 2);
|
|
4876
4999
|
__decorateClass([
|
|
4877
|
-
(0,
|
|
5000
|
+
(0, import_typeorm50.Column)({
|
|
4878
5001
|
name: "permission_slug",
|
|
4879
5002
|
type: "varchar",
|
|
4880
5003
|
unique: true,
|
|
4881
5004
|
nullable: true
|
|
4882
5005
|
}),
|
|
4883
|
-
(0,
|
|
5006
|
+
(0, import_typeorm50.Index)()
|
|
4884
5007
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
4885
5008
|
__decorateClass([
|
|
4886
|
-
(0,
|
|
5009
|
+
(0, import_typeorm50.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
4887
5010
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
4888
5011
|
__decorateClass([
|
|
4889
|
-
(0,
|
|
5012
|
+
(0, import_typeorm50.Column)({ name: "module", type: "varchar", nullable: true })
|
|
4890
5013
|
], AdminPermission.prototype, "module", 2);
|
|
4891
5014
|
__decorateClass([
|
|
4892
|
-
(0,
|
|
5015
|
+
(0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4893
5016
|
], AdminPermission.prototype, "isActive", 2);
|
|
4894
5017
|
__decorateClass([
|
|
4895
|
-
(0,
|
|
5018
|
+
(0, import_typeorm50.OneToMany)(
|
|
4896
5019
|
() => AdminRolePermission,
|
|
4897
5020
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
4898
5021
|
)
|
|
4899
5022
|
], AdminPermission.prototype, "adminRole", 2);
|
|
4900
5023
|
AdminPermission = __decorateClass([
|
|
4901
|
-
(0,
|
|
5024
|
+
(0, import_typeorm50.Entity)("admin_permissions")
|
|
4902
5025
|
], AdminPermission);
|
|
4903
5026
|
|
|
4904
5027
|
// src/entities/admin-role-permission.entity.ts
|
|
4905
5028
|
var AdminRolePermission = class extends BaseEntity {
|
|
4906
5029
|
};
|
|
4907
5030
|
__decorateClass([
|
|
4908
|
-
(0,
|
|
5031
|
+
(0, import_typeorm51.Column)({
|
|
4909
5032
|
name: "role_id",
|
|
4910
5033
|
type: "int",
|
|
4911
5034
|
nullable: true,
|
|
@@ -4913,11 +5036,11 @@ __decorateClass([
|
|
|
4913
5036
|
})
|
|
4914
5037
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
4915
5038
|
__decorateClass([
|
|
4916
|
-
(0,
|
|
4917
|
-
(0,
|
|
5039
|
+
(0, import_typeorm51.ManyToOne)(() => AdminRole),
|
|
5040
|
+
(0, import_typeorm51.JoinColumn)({ name: "role_id" })
|
|
4918
5041
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
4919
5042
|
__decorateClass([
|
|
4920
|
-
(0,
|
|
5043
|
+
(0, import_typeorm51.Column)({
|
|
4921
5044
|
name: "permission_id",
|
|
4922
5045
|
type: "int",
|
|
4923
5046
|
nullable: true,
|
|
@@ -4925,47 +5048,47 @@ __decorateClass([
|
|
|
4925
5048
|
})
|
|
4926
5049
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
4927
5050
|
__decorateClass([
|
|
4928
|
-
(0,
|
|
4929
|
-
(0,
|
|
5051
|
+
(0, import_typeorm51.ManyToOne)(() => AdminPermission),
|
|
5052
|
+
(0, import_typeorm51.JoinColumn)({ name: "permission_id" })
|
|
4930
5053
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
4931
5054
|
AdminRolePermission = __decorateClass([
|
|
4932
|
-
(0,
|
|
5055
|
+
(0, import_typeorm51.Entity)("admin_role_permissions")
|
|
4933
5056
|
], AdminRolePermission);
|
|
4934
5057
|
|
|
4935
5058
|
// src/entities/admin-role.entity.ts
|
|
4936
5059
|
var AdminRole = class extends BaseEntity {
|
|
4937
5060
|
};
|
|
4938
5061
|
__decorateClass([
|
|
4939
|
-
(0,
|
|
5062
|
+
(0, import_typeorm52.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
4940
5063
|
], AdminRole.prototype, "roleName", 2);
|
|
4941
5064
|
__decorateClass([
|
|
4942
|
-
(0,
|
|
4943
|
-
(0,
|
|
5065
|
+
(0, import_typeorm52.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5066
|
+
(0, import_typeorm52.Index)()
|
|
4944
5067
|
], AdminRole.prototype, "roleSlug", 2);
|
|
4945
5068
|
__decorateClass([
|
|
4946
|
-
(0,
|
|
5069
|
+
(0, import_typeorm52.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
4947
5070
|
], AdminRole.prototype, "roleDescription", 2);
|
|
4948
5071
|
__decorateClass([
|
|
4949
|
-
(0,
|
|
5072
|
+
(0, import_typeorm52.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4950
5073
|
], AdminRole.prototype, "isActive", 2);
|
|
4951
5074
|
__decorateClass([
|
|
4952
|
-
(0,
|
|
5075
|
+
(0, import_typeorm52.OneToMany)(
|
|
4953
5076
|
() => AdminRolePermission,
|
|
4954
5077
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
4955
5078
|
)
|
|
4956
5079
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
4957
5080
|
__decorateClass([
|
|
4958
|
-
(0,
|
|
5081
|
+
(0, import_typeorm52.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
4959
5082
|
], AdminRole.prototype, "userRoles", 2);
|
|
4960
5083
|
AdminRole = __decorateClass([
|
|
4961
|
-
(0,
|
|
5084
|
+
(0, import_typeorm52.Entity)("admin_roles")
|
|
4962
5085
|
], AdminRole);
|
|
4963
5086
|
|
|
4964
5087
|
// src/entities/admin-user-role.entity.ts
|
|
4965
5088
|
var AdminUserRole = class extends BaseEntity {
|
|
4966
5089
|
};
|
|
4967
5090
|
__decorateClass([
|
|
4968
|
-
(0,
|
|
5091
|
+
(0, import_typeorm53.Column)({
|
|
4969
5092
|
name: "user_id",
|
|
4970
5093
|
type: "int",
|
|
4971
5094
|
nullable: true,
|
|
@@ -4973,11 +5096,11 @@ __decorateClass([
|
|
|
4973
5096
|
})
|
|
4974
5097
|
], AdminUserRole.prototype, "userId", 2);
|
|
4975
5098
|
__decorateClass([
|
|
4976
|
-
(0,
|
|
4977
|
-
(0,
|
|
5099
|
+
(0, import_typeorm53.ManyToOne)(() => User),
|
|
5100
|
+
(0, import_typeorm53.JoinColumn)({ name: "user_id" })
|
|
4978
5101
|
], AdminUserRole.prototype, "user", 2);
|
|
4979
5102
|
__decorateClass([
|
|
4980
|
-
(0,
|
|
5103
|
+
(0, import_typeorm53.Column)({
|
|
4981
5104
|
name: "role_id",
|
|
4982
5105
|
type: "int",
|
|
4983
5106
|
nullable: true,
|
|
@@ -4985,58 +5108,58 @@ __decorateClass([
|
|
|
4985
5108
|
})
|
|
4986
5109
|
], AdminUserRole.prototype, "roleId", 2);
|
|
4987
5110
|
__decorateClass([
|
|
4988
|
-
(0,
|
|
4989
|
-
(0,
|
|
5111
|
+
(0, import_typeorm53.ManyToOne)(() => AdminRole),
|
|
5112
|
+
(0, import_typeorm53.JoinColumn)({ name: "role_id" })
|
|
4990
5113
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
4991
5114
|
AdminUserRole = __decorateClass([
|
|
4992
|
-
(0,
|
|
5115
|
+
(0, import_typeorm53.Entity)("admin_user_roles")
|
|
4993
5116
|
], AdminUserRole);
|
|
4994
5117
|
|
|
4995
5118
|
// src/entities/freelancer-resume.entity.ts
|
|
4996
|
-
var
|
|
5119
|
+
var import_typeorm54 = require("typeorm");
|
|
4997
5120
|
var FreelancerResume = class extends BaseEntity {
|
|
4998
5121
|
};
|
|
4999
5122
|
// individual index to find profile by user
|
|
5000
5123
|
__decorateClass([
|
|
5001
|
-
(0,
|
|
5002
|
-
(0,
|
|
5124
|
+
(0, import_typeorm54.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5125
|
+
(0, import_typeorm54.Index)()
|
|
5003
5126
|
], FreelancerResume.prototype, "userId", 2);
|
|
5004
5127
|
__decorateClass([
|
|
5005
|
-
(0,
|
|
5006
|
-
(0,
|
|
5128
|
+
(0, import_typeorm54.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
5129
|
+
(0, import_typeorm54.JoinColumn)({ name: "user_id" })
|
|
5007
5130
|
], FreelancerResume.prototype, "user", 2);
|
|
5008
5131
|
__decorateClass([
|
|
5009
|
-
(0,
|
|
5132
|
+
(0, import_typeorm54.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5010
5133
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5011
5134
|
__decorateClass([
|
|
5012
|
-
(0,
|
|
5135
|
+
(0, import_typeorm54.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5013
5136
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5014
5137
|
FreelancerResume = __decorateClass([
|
|
5015
|
-
(0,
|
|
5138
|
+
(0, import_typeorm54.Entity)("freelancer_resumes")
|
|
5016
5139
|
], FreelancerResume);
|
|
5017
5140
|
|
|
5018
5141
|
// src/entities/signature.entity.ts
|
|
5019
|
-
var
|
|
5142
|
+
var import_typeorm55 = require("typeorm");
|
|
5020
5143
|
var Signature = class extends BaseEntity {
|
|
5021
5144
|
};
|
|
5022
5145
|
// individual index to find profile by user
|
|
5023
5146
|
__decorateClass([
|
|
5024
|
-
(0,
|
|
5025
|
-
(0,
|
|
5147
|
+
(0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5148
|
+
(0, import_typeorm55.Index)()
|
|
5026
5149
|
], Signature.prototype, "userId", 2);
|
|
5027
5150
|
__decorateClass([
|
|
5028
|
-
(0,
|
|
5029
|
-
(0,
|
|
5151
|
+
(0, import_typeorm55.ManyToOne)(() => User, (user) => user.signatures),
|
|
5152
|
+
(0, import_typeorm55.JoinColumn)({ name: "user_id" })
|
|
5030
5153
|
], Signature.prototype, "user", 2);
|
|
5031
5154
|
__decorateClass([
|
|
5032
|
-
(0,
|
|
5155
|
+
(0, import_typeorm55.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
5033
5156
|
], Signature.prototype, "signatureUrl", 2);
|
|
5034
5157
|
Signature = __decorateClass([
|
|
5035
|
-
(0,
|
|
5158
|
+
(0, import_typeorm55.Entity)("signatures")
|
|
5036
5159
|
], Signature);
|
|
5037
5160
|
|
|
5038
5161
|
// src/entities/dispute.entity.ts
|
|
5039
|
-
var
|
|
5162
|
+
var import_typeorm56 = require("typeorm");
|
|
5040
5163
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5041
5164
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5042
5165
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5057,36 +5180,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5057
5180
|
var Dispute = class extends BaseEntity {
|
|
5058
5181
|
};
|
|
5059
5182
|
__decorateClass([
|
|
5060
|
-
(0,
|
|
5061
|
-
(0,
|
|
5183
|
+
(0, import_typeorm56.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
5184
|
+
(0, import_typeorm56.Index)()
|
|
5062
5185
|
], Dispute.prototype, "clientId", 2);
|
|
5063
5186
|
__decorateClass([
|
|
5064
|
-
(0,
|
|
5065
|
-
(0,
|
|
5187
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
5188
|
+
(0, import_typeorm56.JoinColumn)({ name: "client_id" })
|
|
5066
5189
|
], Dispute.prototype, "client", 2);
|
|
5067
5190
|
__decorateClass([
|
|
5068
|
-
(0,
|
|
5069
|
-
(0,
|
|
5191
|
+
(0, import_typeorm56.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5192
|
+
(0, import_typeorm56.Index)()
|
|
5070
5193
|
], Dispute.prototype, "freelancerId", 2);
|
|
5071
5194
|
__decorateClass([
|
|
5072
|
-
(0,
|
|
5073
|
-
(0,
|
|
5195
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
5196
|
+
(0, import_typeorm56.JoinColumn)({ name: "freelancer_id" })
|
|
5074
5197
|
], Dispute.prototype, "freelancer", 2);
|
|
5075
5198
|
__decorateClass([
|
|
5076
|
-
(0,
|
|
5199
|
+
(0, import_typeorm56.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5077
5200
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5078
5201
|
__decorateClass([
|
|
5079
|
-
(0,
|
|
5080
|
-
(0,
|
|
5202
|
+
(0, import_typeorm56.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5203
|
+
(0, import_typeorm56.Index)()
|
|
5081
5204
|
], Dispute.prototype, "disputeType", 2);
|
|
5082
5205
|
__decorateClass([
|
|
5083
|
-
(0,
|
|
5206
|
+
(0, import_typeorm56.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5084
5207
|
], Dispute.prototype, "description", 2);
|
|
5085
5208
|
__decorateClass([
|
|
5086
|
-
(0,
|
|
5209
|
+
(0, import_typeorm56.Column)({ name: "comment", type: "varchar", nullable: true })
|
|
5087
5210
|
], Dispute.prototype, "comment", 2);
|
|
5088
5211
|
__decorateClass([
|
|
5089
|
-
(0,
|
|
5212
|
+
(0, import_typeorm56.Column)({
|
|
5090
5213
|
name: "status",
|
|
5091
5214
|
type: "enum",
|
|
5092
5215
|
enum: DisputeStatusEnum,
|
|
@@ -5094,7 +5217,7 @@ __decorateClass([
|
|
|
5094
5217
|
})
|
|
5095
5218
|
], Dispute.prototype, "status", 2);
|
|
5096
5219
|
__decorateClass([
|
|
5097
|
-
(0,
|
|
5220
|
+
(0, import_typeorm56.Column)({
|
|
5098
5221
|
name: "initiator_type",
|
|
5099
5222
|
type: "enum",
|
|
5100
5223
|
enum: InitiatorTypeEnum,
|
|
@@ -5103,33 +5226,33 @@ __decorateClass([
|
|
|
5103
5226
|
})
|
|
5104
5227
|
], Dispute.prototype, "initiatorType", 2);
|
|
5105
5228
|
__decorateClass([
|
|
5106
|
-
(0,
|
|
5107
|
-
(0,
|
|
5229
|
+
(0, import_typeorm56.Column)({ name: "initiator_id", type: "integer" }),
|
|
5230
|
+
(0, import_typeorm56.Index)()
|
|
5108
5231
|
], Dispute.prototype, "initiatorId", 2);
|
|
5109
5232
|
__decorateClass([
|
|
5110
|
-
(0,
|
|
5111
|
-
(0,
|
|
5233
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.initiatedDisputes),
|
|
5234
|
+
(0, import_typeorm56.JoinColumn)({ name: "initiator_id" })
|
|
5112
5235
|
], Dispute.prototype, "initiator", 2);
|
|
5113
5236
|
__decorateClass([
|
|
5114
|
-
(0,
|
|
5115
|
-
(0,
|
|
5237
|
+
(0, import_typeorm56.Column)({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5238
|
+
(0, import_typeorm56.Index)()
|
|
5116
5239
|
], Dispute.prototype, "respondentId", 2);
|
|
5117
5240
|
__decorateClass([
|
|
5118
|
-
(0,
|
|
5119
|
-
(0,
|
|
5241
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5242
|
+
(0, import_typeorm56.JoinColumn)({ name: "respondent_id" })
|
|
5120
5243
|
], Dispute.prototype, "respondent", 2);
|
|
5121
5244
|
__decorateClass([
|
|
5122
|
-
(0,
|
|
5245
|
+
(0, import_typeorm56.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
5123
5246
|
], Dispute.prototype, "attachments", 2);
|
|
5124
5247
|
__decorateClass([
|
|
5125
|
-
(0,
|
|
5248
|
+
(0, import_typeorm56.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5126
5249
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5127
5250
|
Dispute = __decorateClass([
|
|
5128
|
-
(0,
|
|
5251
|
+
(0, import_typeorm56.Entity)("disputes")
|
|
5129
5252
|
], Dispute);
|
|
5130
5253
|
|
|
5131
5254
|
// src/entities/stripe-transaction.entity.ts
|
|
5132
|
-
var
|
|
5255
|
+
var import_typeorm57 = require("typeorm");
|
|
5133
5256
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5134
5257
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5135
5258
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5151,97 +5274,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5151
5274
|
// Full Stripe session response
|
|
5152
5275
|
};
|
|
5153
5276
|
__decorateClass([
|
|
5154
|
-
(0,
|
|
5155
|
-
(0,
|
|
5277
|
+
(0, import_typeorm57.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5278
|
+
(0, import_typeorm57.Index)()
|
|
5156
5279
|
], StripeTransaction.prototype, "userId", 2);
|
|
5157
5280
|
__decorateClass([
|
|
5158
|
-
(0,
|
|
5159
|
-
(0,
|
|
5281
|
+
(0, import_typeorm57.ManyToOne)(() => User, (user) => user.stripeTransactions),
|
|
5282
|
+
(0, import_typeorm57.JoinColumn)({ name: "user_id" })
|
|
5160
5283
|
], StripeTransaction.prototype, "user", 2);
|
|
5161
5284
|
__decorateClass([
|
|
5162
|
-
(0,
|
|
5285
|
+
(0, import_typeorm57.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5163
5286
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5164
5287
|
__decorateClass([
|
|
5165
|
-
(0,
|
|
5288
|
+
(0, import_typeorm57.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5166
5289
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5167
5290
|
__decorateClass([
|
|
5168
|
-
(0,
|
|
5291
|
+
(0, import_typeorm57.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5169
5292
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5170
5293
|
__decorateClass([
|
|
5171
|
-
(0,
|
|
5294
|
+
(0, import_typeorm57.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5172
5295
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5173
5296
|
__decorateClass([
|
|
5174
|
-
(0,
|
|
5297
|
+
(0, import_typeorm57.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5175
5298
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5176
5299
|
__decorateClass([
|
|
5177
|
-
(0,
|
|
5300
|
+
(0, import_typeorm57.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5178
5301
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5179
5302
|
__decorateClass([
|
|
5180
|
-
(0,
|
|
5303
|
+
(0, import_typeorm57.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5181
5304
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5182
5305
|
__decorateClass([
|
|
5183
|
-
(0,
|
|
5306
|
+
(0, import_typeorm57.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5184
5307
|
], StripeTransaction.prototype, "type", 2);
|
|
5185
5308
|
__decorateClass([
|
|
5186
|
-
(0,
|
|
5309
|
+
(0, import_typeorm57.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
5187
5310
|
], StripeTransaction.prototype, "currency", 2);
|
|
5188
5311
|
__decorateClass([
|
|
5189
|
-
(0,
|
|
5312
|
+
(0, import_typeorm57.Column)({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
|
|
5190
5313
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5191
5314
|
__decorateClass([
|
|
5192
|
-
(0,
|
|
5315
|
+
(0, import_typeorm57.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5193
5316
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5194
5317
|
__decorateClass([
|
|
5195
|
-
(0,
|
|
5318
|
+
(0, import_typeorm57.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5196
5319
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5197
5320
|
__decorateClass([
|
|
5198
|
-
(0,
|
|
5321
|
+
(0, import_typeorm57.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5199
5322
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5200
5323
|
__decorateClass([
|
|
5201
|
-
(0,
|
|
5324
|
+
(0, import_typeorm57.Column)({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
|
|
5202
5325
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5203
5326
|
__decorateClass([
|
|
5204
|
-
(0,
|
|
5327
|
+
(0, import_typeorm57.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5205
5328
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5206
5329
|
__decorateClass([
|
|
5207
|
-
(0,
|
|
5330
|
+
(0, import_typeorm57.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5208
5331
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5209
5332
|
__decorateClass([
|
|
5210
|
-
(0,
|
|
5333
|
+
(0, import_typeorm57.Column)({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
|
|
5211
5334
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5212
5335
|
__decorateClass([
|
|
5213
|
-
(0,
|
|
5336
|
+
(0, import_typeorm57.Column)({ name: "description", type: "text", nullable: true })
|
|
5214
5337
|
], StripeTransaction.prototype, "description", 2);
|
|
5215
5338
|
__decorateClass([
|
|
5216
|
-
(0,
|
|
5339
|
+
(0, import_typeorm57.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5217
5340
|
], StripeTransaction.prototype, "status", 2);
|
|
5218
5341
|
__decorateClass([
|
|
5219
|
-
(0,
|
|
5342
|
+
(0, import_typeorm57.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5220
5343
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5221
5344
|
__decorateClass([
|
|
5222
|
-
(0,
|
|
5345
|
+
(0, import_typeorm57.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5223
5346
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5224
5347
|
__decorateClass([
|
|
5225
|
-
(0,
|
|
5348
|
+
(0, import_typeorm57.Column)({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5226
5349
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5227
5350
|
__decorateClass([
|
|
5228
|
-
(0,
|
|
5351
|
+
(0, import_typeorm57.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5229
5352
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5230
5353
|
__decorateClass([
|
|
5231
|
-
(0,
|
|
5354
|
+
(0, import_typeorm57.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5232
5355
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5233
5356
|
__decorateClass([
|
|
5234
|
-
(0,
|
|
5357
|
+
(0, import_typeorm57.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5235
5358
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5236
5359
|
StripeTransaction = __decorateClass([
|
|
5237
|
-
(0,
|
|
5360
|
+
(0, import_typeorm57.Entity)("stripe_transactions")
|
|
5238
5361
|
], StripeTransaction);
|
|
5239
5362
|
|
|
5240
5363
|
// src/entities/wallet.entity.ts
|
|
5241
|
-
var
|
|
5364
|
+
var import_typeorm59 = require("typeorm");
|
|
5242
5365
|
|
|
5243
5366
|
// src/entities/wallet-transaction.entity.ts
|
|
5244
|
-
var
|
|
5367
|
+
var import_typeorm58 = require("typeorm");
|
|
5245
5368
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5246
5369
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5247
5370
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5258,46 +5381,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5258
5381
|
var WalletTransaction = class extends BaseEntity {
|
|
5259
5382
|
};
|
|
5260
5383
|
__decorateClass([
|
|
5261
|
-
(0,
|
|
5262
|
-
(0,
|
|
5384
|
+
(0, import_typeorm58.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5385
|
+
(0, import_typeorm58.Index)()
|
|
5263
5386
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5264
5387
|
__decorateClass([
|
|
5265
|
-
(0,
|
|
5266
|
-
(0,
|
|
5388
|
+
(0, import_typeorm58.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5389
|
+
(0, import_typeorm58.JoinColumn)({ name: "wallet_id" })
|
|
5267
5390
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5268
5391
|
__decorateClass([
|
|
5269
|
-
(0,
|
|
5392
|
+
(0, import_typeorm58.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
5270
5393
|
], WalletTransaction.prototype, "amount", 2);
|
|
5271
5394
|
__decorateClass([
|
|
5272
|
-
(0,
|
|
5395
|
+
(0, import_typeorm58.Column)({ name: "balance_before", type: "bigint", nullable: true })
|
|
5273
5396
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5274
5397
|
__decorateClass([
|
|
5275
|
-
(0,
|
|
5398
|
+
(0, import_typeorm58.Column)({ name: "balance_after", type: "bigint", nullable: true })
|
|
5276
5399
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5277
5400
|
__decorateClass([
|
|
5278
|
-
(0,
|
|
5401
|
+
(0, import_typeorm58.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5279
5402
|
], WalletTransaction.prototype, "type", 2);
|
|
5280
5403
|
__decorateClass([
|
|
5281
|
-
(0,
|
|
5404
|
+
(0, import_typeorm58.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5282
5405
|
], WalletTransaction.prototype, "status", 2);
|
|
5283
5406
|
__decorateClass([
|
|
5284
|
-
(0,
|
|
5407
|
+
(0, import_typeorm58.Column)({ name: "description", type: "text", nullable: true })
|
|
5285
5408
|
], WalletTransaction.prototype, "description", 2);
|
|
5286
5409
|
__decorateClass([
|
|
5287
|
-
(0,
|
|
5410
|
+
(0, import_typeorm58.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5288
5411
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5289
5412
|
__decorateClass([
|
|
5290
|
-
(0,
|
|
5413
|
+
(0, import_typeorm58.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5291
5414
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5292
5415
|
__decorateClass([
|
|
5293
|
-
(0,
|
|
5416
|
+
(0, import_typeorm58.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
5294
5417
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5295
5418
|
__decorateClass([
|
|
5296
|
-
(0,
|
|
5297
|
-
(0,
|
|
5419
|
+
(0, import_typeorm58.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5420
|
+
(0, import_typeorm58.Index)()
|
|
5298
5421
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5299
5422
|
WalletTransaction = __decorateClass([
|
|
5300
|
-
(0,
|
|
5423
|
+
(0, import_typeorm58.Entity)("wallet_transactions")
|
|
5301
5424
|
], WalletTransaction);
|
|
5302
5425
|
|
|
5303
5426
|
// src/entities/wallet.entity.ts
|
|
@@ -5315,39 +5438,39 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5315
5438
|
var Wallet = class extends BaseEntity {
|
|
5316
5439
|
};
|
|
5317
5440
|
__decorateClass([
|
|
5318
|
-
(0,
|
|
5319
|
-
(0,
|
|
5441
|
+
(0, import_typeorm59.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5442
|
+
(0, import_typeorm59.Index)()
|
|
5320
5443
|
], Wallet.prototype, "userId", 2);
|
|
5321
5444
|
__decorateClass([
|
|
5322
|
-
(0,
|
|
5323
|
-
(0,
|
|
5445
|
+
(0, import_typeorm59.OneToOne)(() => User, (user) => user.wallet),
|
|
5446
|
+
(0, import_typeorm59.JoinColumn)({ name: "user_id" })
|
|
5324
5447
|
], Wallet.prototype, "user", 2);
|
|
5325
5448
|
__decorateClass([
|
|
5326
|
-
(0,
|
|
5449
|
+
(0, import_typeorm59.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5327
5450
|
], Wallet.prototype, "accountType", 2);
|
|
5328
5451
|
__decorateClass([
|
|
5329
|
-
(0,
|
|
5452
|
+
(0, import_typeorm59.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5330
5453
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5331
5454
|
__decorateClass([
|
|
5332
|
-
(0,
|
|
5455
|
+
(0, import_typeorm59.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5333
5456
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5334
5457
|
__decorateClass([
|
|
5335
|
-
(0,
|
|
5458
|
+
(0, import_typeorm59.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
5336
5459
|
], Wallet.prototype, "walletBalance", 2);
|
|
5337
5460
|
__decorateClass([
|
|
5338
|
-
(0,
|
|
5461
|
+
(0, import_typeorm59.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
|
|
5339
5462
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5340
5463
|
__decorateClass([
|
|
5341
|
-
(0,
|
|
5464
|
+
(0, import_typeorm59.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5342
5465
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5343
5466
|
__decorateClass([
|
|
5344
|
-
(0,
|
|
5467
|
+
(0, import_typeorm59.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5345
5468
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5346
5469
|
__decorateClass([
|
|
5347
|
-
(0,
|
|
5470
|
+
(0, import_typeorm59.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5348
5471
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5349
5472
|
Wallet = __decorateClass([
|
|
5350
|
-
(0,
|
|
5473
|
+
(0, import_typeorm59.Entity)("wallets")
|
|
5351
5474
|
], Wallet);
|
|
5352
5475
|
|
|
5353
5476
|
// src/entities/user.entity.ts
|
|
@@ -5375,51 +5498,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5375
5498
|
var User = class extends BaseEntity {
|
|
5376
5499
|
};
|
|
5377
5500
|
__decorateClass([
|
|
5378
|
-
(0,
|
|
5501
|
+
(0, import_typeorm60.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
5379
5502
|
], User.prototype, "uniqueId", 2);
|
|
5380
5503
|
__decorateClass([
|
|
5381
|
-
(0,
|
|
5382
|
-
(0,
|
|
5504
|
+
(0, import_typeorm60.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
5505
|
+
(0, import_typeorm60.Index)()
|
|
5383
5506
|
], User.prototype, "parentId", 2);
|
|
5384
5507
|
__decorateClass([
|
|
5385
|
-
(0,
|
|
5386
|
-
(0,
|
|
5508
|
+
(0, import_typeorm60.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
5509
|
+
(0, import_typeorm60.JoinColumn)({ name: "parent_id" })
|
|
5387
5510
|
], User.prototype, "parent", 2);
|
|
5388
5511
|
__decorateClass([
|
|
5389
|
-
(0,
|
|
5512
|
+
(0, import_typeorm60.OneToMany)(() => User, (user) => user.parent)
|
|
5390
5513
|
], User.prototype, "children", 2);
|
|
5391
5514
|
__decorateClass([
|
|
5392
|
-
(0,
|
|
5515
|
+
(0, import_typeorm60.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5393
5516
|
], User.prototype, "username", 2);
|
|
5394
5517
|
__decorateClass([
|
|
5395
|
-
(0,
|
|
5518
|
+
(0, import_typeorm60.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5396
5519
|
], User.prototype, "firstName", 2);
|
|
5397
5520
|
__decorateClass([
|
|
5398
|
-
(0,
|
|
5521
|
+
(0, import_typeorm60.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5399
5522
|
], User.prototype, "lastName", 2);
|
|
5400
5523
|
__decorateClass([
|
|
5401
|
-
(0,
|
|
5524
|
+
(0, import_typeorm60.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
5402
5525
|
], User.prototype, "dateOfBirth", 2);
|
|
5403
5526
|
__decorateClass([
|
|
5404
|
-
(0,
|
|
5527
|
+
(0, import_typeorm60.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5405
5528
|
], User.prototype, "gender", 2);
|
|
5406
5529
|
__decorateClass([
|
|
5407
|
-
(0,
|
|
5530
|
+
(0, import_typeorm60.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5408
5531
|
], User.prototype, "profilePictureUrl", 2);
|
|
5409
5532
|
__decorateClass([
|
|
5410
|
-
(0,
|
|
5533
|
+
(0, import_typeorm60.Column)({ name: "email", type: "varchar", unique: true })
|
|
5411
5534
|
], User.prototype, "email", 2);
|
|
5412
5535
|
__decorateClass([
|
|
5413
|
-
(0,
|
|
5536
|
+
(0, import_typeorm60.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5414
5537
|
], User.prototype, "mobileCode", 2);
|
|
5415
5538
|
__decorateClass([
|
|
5416
|
-
(0,
|
|
5539
|
+
(0, import_typeorm60.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5417
5540
|
], User.prototype, "mobile", 2);
|
|
5418
5541
|
__decorateClass([
|
|
5419
|
-
(0,
|
|
5542
|
+
(0, import_typeorm60.Column)({ name: "password", type: "varchar", nullable: true })
|
|
5420
5543
|
], User.prototype, "password", 2);
|
|
5421
5544
|
__decorateClass([
|
|
5422
|
-
(0,
|
|
5545
|
+
(0, import_typeorm60.Column)({
|
|
5423
5546
|
name: "account_type",
|
|
5424
5547
|
type: "enum",
|
|
5425
5548
|
enum: AccountType,
|
|
@@ -5427,7 +5550,7 @@ __decorateClass([
|
|
|
5427
5550
|
})
|
|
5428
5551
|
], User.prototype, "accountType", 2);
|
|
5429
5552
|
__decorateClass([
|
|
5430
|
-
(0,
|
|
5553
|
+
(0, import_typeorm60.Column)({
|
|
5431
5554
|
name: "account_status",
|
|
5432
5555
|
type: "enum",
|
|
5433
5556
|
enum: AccountStatus,
|
|
@@ -5435,42 +5558,42 @@ __decorateClass([
|
|
|
5435
5558
|
})
|
|
5436
5559
|
], User.prototype, "accountStatus", 2);
|
|
5437
5560
|
__decorateClass([
|
|
5438
|
-
(0,
|
|
5561
|
+
(0, import_typeorm60.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
5439
5562
|
], User.prototype, "isEmailVerified", 2);
|
|
5440
5563
|
__decorateClass([
|
|
5441
|
-
(0,
|
|
5564
|
+
(0, import_typeorm60.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5442
5565
|
], User.prototype, "isMobileVerified", 2);
|
|
5443
5566
|
__decorateClass([
|
|
5444
|
-
(0,
|
|
5567
|
+
(0, import_typeorm60.Column)({ name: "is_social", type: "boolean", default: false })
|
|
5445
5568
|
], User.prototype, "isSocial", 2);
|
|
5446
5569
|
__decorateClass([
|
|
5447
|
-
(0,
|
|
5570
|
+
(0, import_typeorm60.Column)({
|
|
5448
5571
|
name: "last_login_at",
|
|
5449
5572
|
type: "timestamp with time zone",
|
|
5450
5573
|
nullable: true
|
|
5451
5574
|
})
|
|
5452
5575
|
], User.prototype, "lastLoginAt", 2);
|
|
5453
5576
|
__decorateClass([
|
|
5454
|
-
(0,
|
|
5577
|
+
(0, import_typeorm60.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5455
5578
|
], User.prototype, "lastLoginIp", 2);
|
|
5456
5579
|
__decorateClass([
|
|
5457
|
-
(0,
|
|
5580
|
+
(0, import_typeorm60.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
5458
5581
|
], User.prototype, "resetToken", 2);
|
|
5459
5582
|
__decorateClass([
|
|
5460
|
-
(0,
|
|
5583
|
+
(0, import_typeorm60.Column)({
|
|
5461
5584
|
name: "reset_token_expire_at",
|
|
5462
5585
|
type: "timestamp with time zone",
|
|
5463
5586
|
nullable: true
|
|
5464
5587
|
})
|
|
5465
5588
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5466
5589
|
__decorateClass([
|
|
5467
|
-
(0,
|
|
5590
|
+
(0, import_typeorm60.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5468
5591
|
], User.prototype, "setPasswordToken", 2);
|
|
5469
5592
|
__decorateClass([
|
|
5470
|
-
(0,
|
|
5593
|
+
(0, import_typeorm60.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
5471
5594
|
], User.prototype, "refreshTokens", 2);
|
|
5472
5595
|
__decorateClass([
|
|
5473
|
-
(0,
|
|
5596
|
+
(0, import_typeorm60.Column)({
|
|
5474
5597
|
name: "provider",
|
|
5475
5598
|
type: "enum",
|
|
5476
5599
|
enum: Provider,
|
|
@@ -5479,199 +5602,205 @@ __decorateClass([
|
|
|
5479
5602
|
})
|
|
5480
5603
|
], User.prototype, "provider", 2);
|
|
5481
5604
|
__decorateClass([
|
|
5482
|
-
(0,
|
|
5605
|
+
(0, import_typeorm60.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
5483
5606
|
], User.prototype, "providerToken", 2);
|
|
5484
5607
|
__decorateClass([
|
|
5485
|
-
(0,
|
|
5608
|
+
(0, import_typeorm60.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5486
5609
|
], User.prototype, "linkedInId", 2);
|
|
5487
5610
|
__decorateClass([
|
|
5488
|
-
(0,
|
|
5611
|
+
(0, import_typeorm60.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
5489
5612
|
], User.prototype, "googleId", 2);
|
|
5490
5613
|
__decorateClass([
|
|
5491
|
-
(0,
|
|
5614
|
+
(0, import_typeorm60.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5492
5615
|
], User.prototype, "gitLabsId", 2);
|
|
5493
5616
|
__decorateClass([
|
|
5494
|
-
(0,
|
|
5617
|
+
(0, import_typeorm60.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5495
5618
|
], User.prototype, "onBoardedBy", 2);
|
|
5496
5619
|
__decorateClass([
|
|
5497
|
-
(0,
|
|
5620
|
+
(0, import_typeorm60.OneToMany)(() => Otp, (otp) => otp.user)
|
|
5498
5621
|
], User.prototype, "otps", 2);
|
|
5499
5622
|
__decorateClass([
|
|
5500
|
-
(0,
|
|
5623
|
+
(0, import_typeorm60.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
5501
5624
|
], User.prototype, "senseloafLogs", 2);
|
|
5502
5625
|
__decorateClass([
|
|
5503
|
-
(0,
|
|
5626
|
+
(0, import_typeorm60.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
5504
5627
|
], User.prototype, "companyProfile", 2);
|
|
5505
5628
|
__decorateClass([
|
|
5506
|
-
(0,
|
|
5629
|
+
(0, import_typeorm60.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
5507
5630
|
], User.prototype, "companySkills", 2);
|
|
5508
5631
|
__decorateClass([
|
|
5509
|
-
(0,
|
|
5632
|
+
(0, import_typeorm60.OneToMany)(
|
|
5510
5633
|
() => CompanyMemberRole,
|
|
5511
5634
|
(companyMemberRole) => companyMemberRole.user
|
|
5512
5635
|
)
|
|
5513
5636
|
], User.prototype, "companyMemberRoles", 2);
|
|
5514
5637
|
__decorateClass([
|
|
5515
|
-
(0,
|
|
5638
|
+
(0, import_typeorm60.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
5516
5639
|
], User.prototype, "companyAiInterview", 2);
|
|
5517
5640
|
__decorateClass([
|
|
5518
|
-
(0,
|
|
5641
|
+
(0, import_typeorm60.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
5519
5642
|
], User.prototype, "clientF2FInterviews", 2);
|
|
5520
5643
|
__decorateClass([
|
|
5521
|
-
(0,
|
|
5644
|
+
(0, import_typeorm60.OneToOne)(
|
|
5522
5645
|
() => FreelancerProfile,
|
|
5523
5646
|
(freelancerProfile) => freelancerProfile.user
|
|
5524
5647
|
)
|
|
5525
5648
|
], User.prototype, "freelancerProfile", 2);
|
|
5526
5649
|
__decorateClass([
|
|
5527
|
-
(0,
|
|
5650
|
+
(0, import_typeorm60.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
5528
5651
|
], User.prototype, "freelancerResume", 2);
|
|
5529
5652
|
__decorateClass([
|
|
5530
|
-
(0,
|
|
5653
|
+
(0, import_typeorm60.OneToMany)(
|
|
5531
5654
|
() => FreelancerAssessment,
|
|
5532
5655
|
(freelancerAssessment) => freelancerAssessment.user
|
|
5533
5656
|
)
|
|
5534
5657
|
], User.prototype, "assessments", 2);
|
|
5535
5658
|
__decorateClass([
|
|
5536
|
-
(0,
|
|
5659
|
+
(0, import_typeorm60.OneToMany)(
|
|
5537
5660
|
() => AssessmentAnswer,
|
|
5538
5661
|
(assessmentAnswer) => assessmentAnswer.user
|
|
5539
5662
|
)
|
|
5540
5663
|
], User.prototype, "assessmentAnswers", 2);
|
|
5541
5664
|
__decorateClass([
|
|
5542
|
-
(0,
|
|
5665
|
+
(0, import_typeorm60.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
5543
5666
|
], User.prototype, "freelancerSkills", 2);
|
|
5544
5667
|
__decorateClass([
|
|
5545
|
-
(0,
|
|
5668
|
+
(0, import_typeorm60.OneToMany)(
|
|
5546
5669
|
() => FreelancerExperience,
|
|
5547
5670
|
(freelancerExperience) => freelancerExperience.user
|
|
5548
5671
|
)
|
|
5549
5672
|
], User.prototype, "freelancerExperience", 2);
|
|
5550
5673
|
__decorateClass([
|
|
5551
|
-
(0,
|
|
5674
|
+
(0, import_typeorm60.OneToMany)(
|
|
5552
5675
|
() => FreelancerEducation,
|
|
5553
5676
|
(freelancerEducation) => freelancerEducation.user
|
|
5554
5677
|
)
|
|
5555
5678
|
], User.prototype, "freelancerEducation", 2);
|
|
5556
5679
|
__decorateClass([
|
|
5557
|
-
(0,
|
|
5680
|
+
(0, import_typeorm60.OneToMany)(
|
|
5558
5681
|
() => FreelancerProject,
|
|
5559
5682
|
(freelancerProject) => freelancerProject.user
|
|
5560
5683
|
)
|
|
5561
5684
|
], User.prototype, "freelancerProject", 2);
|
|
5562
5685
|
__decorateClass([
|
|
5563
|
-
(0,
|
|
5686
|
+
(0, import_typeorm60.OneToMany)(
|
|
5564
5687
|
() => FreelancerCaseStudy,
|
|
5565
5688
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
5566
5689
|
)
|
|
5567
5690
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
5568
5691
|
__decorateClass([
|
|
5569
|
-
(0,
|
|
5692
|
+
(0, import_typeorm60.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
5570
5693
|
], User.prototype, "freelancerTool", 2);
|
|
5571
5694
|
__decorateClass([
|
|
5572
|
-
(0,
|
|
5695
|
+
(0, import_typeorm60.OneToMany)(
|
|
5573
5696
|
() => FreelancerFramework,
|
|
5574
5697
|
(freelancerFramework) => freelancerFramework.user
|
|
5575
5698
|
)
|
|
5576
5699
|
], User.prototype, "freelancerFramework", 2);
|
|
5577
5700
|
__decorateClass([
|
|
5578
|
-
(0,
|
|
5701
|
+
(0, import_typeorm60.OneToOne)(
|
|
5579
5702
|
() => FreelancerDeclaration,
|
|
5580
5703
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
5581
5704
|
)
|
|
5582
5705
|
], User.prototype, "freelancerDeclaration", 2);
|
|
5583
5706
|
__decorateClass([
|
|
5584
|
-
(0,
|
|
5707
|
+
(0, import_typeorm60.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
5585
5708
|
], User.prototype, "freelancerAiInterview", 2);
|
|
5586
5709
|
__decorateClass([
|
|
5587
|
-
(0,
|
|
5710
|
+
(0, import_typeorm60.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
5588
5711
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
5589
5712
|
__decorateClass([
|
|
5590
|
-
(0,
|
|
5713
|
+
(0, import_typeorm60.OneToMany)(
|
|
5591
5714
|
() => F2fInterviewRescheduleRequest,
|
|
5592
5715
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
5593
5716
|
)
|
|
5594
5717
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
5595
5718
|
__decorateClass([
|
|
5596
|
-
(0,
|
|
5719
|
+
(0, import_typeorm60.OneToMany)(() => Job, (job) => job.user)
|
|
5597
5720
|
], User.prototype, "jobs", 2);
|
|
5598
5721
|
__decorateClass([
|
|
5599
|
-
(0,
|
|
5722
|
+
(0, import_typeorm60.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
5600
5723
|
], User.prototype, "jobApplications", 2);
|
|
5601
5724
|
__decorateClass([
|
|
5602
|
-
(0,
|
|
5725
|
+
(0, import_typeorm60.OneToMany)(() => Interview, (interview) => interview.user)
|
|
5603
5726
|
], User.prototype, "interviews", 2);
|
|
5604
5727
|
__decorateClass([
|
|
5605
|
-
(0,
|
|
5728
|
+
(0, import_typeorm60.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
5606
5729
|
], User.prototype, "bankDetail", 2);
|
|
5607
5730
|
__decorateClass([
|
|
5608
|
-
(0,
|
|
5731
|
+
(0, import_typeorm60.OneToMany)(
|
|
5609
5732
|
() => SystemPreference,
|
|
5610
5733
|
(systemPreference) => systemPreference.user
|
|
5611
5734
|
)
|
|
5612
5735
|
], User.prototype, "systemPreference", 2);
|
|
5613
5736
|
__decorateClass([
|
|
5614
|
-
(0,
|
|
5737
|
+
(0, import_typeorm60.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
5615
5738
|
], User.prototype, "givenRatings", 2);
|
|
5616
5739
|
__decorateClass([
|
|
5617
|
-
(0,
|
|
5740
|
+
(0, import_typeorm60.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
5618
5741
|
], User.prototype, "receivedRatings", 2);
|
|
5619
5742
|
__decorateClass([
|
|
5620
|
-
(0,
|
|
5743
|
+
(0, import_typeorm60.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
5621
5744
|
], User.prototype, "adminUserRoles", 2);
|
|
5622
5745
|
__decorateClass([
|
|
5623
|
-
(0,
|
|
5746
|
+
(0, import_typeorm60.OneToMany)(() => Contract, (contract) => contract.client)
|
|
5624
5747
|
], User.prototype, "clientContracts", 2);
|
|
5625
5748
|
__decorateClass([
|
|
5626
|
-
(0,
|
|
5749
|
+
(0, import_typeorm60.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
5750
|
+
], User.prototype, "clientEscrowWallets", 2);
|
|
5751
|
+
__decorateClass([
|
|
5752
|
+
(0, import_typeorm60.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
5627
5753
|
], User.prototype, "freelancerContracts", 2);
|
|
5628
5754
|
__decorateClass([
|
|
5629
|
-
(0,
|
|
5755
|
+
(0, import_typeorm60.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
5756
|
+
], User.prototype, "freelancerEscrowWallets", 2);
|
|
5757
|
+
__decorateClass([
|
|
5758
|
+
(0, import_typeorm60.OneToOne)(() => Signature, (signature) => signature.user)
|
|
5630
5759
|
], User.prototype, "signatures", 2);
|
|
5631
5760
|
__decorateClass([
|
|
5632
|
-
(0,
|
|
5761
|
+
(0, import_typeorm60.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
5633
5762
|
], User.prototype, "clientTimesheets", 2);
|
|
5634
5763
|
__decorateClass([
|
|
5635
|
-
(0,
|
|
5764
|
+
(0, import_typeorm60.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
5636
5765
|
], User.prototype, "freelancerTimesheets", 2);
|
|
5637
5766
|
__decorateClass([
|
|
5638
|
-
(0,
|
|
5767
|
+
(0, import_typeorm60.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
5639
5768
|
], User.prototype, "clientTimesheetLine", 2);
|
|
5640
5769
|
__decorateClass([
|
|
5641
|
-
(0,
|
|
5770
|
+
(0, import_typeorm60.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
5642
5771
|
], User.prototype, "clientInvoice", 2);
|
|
5643
5772
|
__decorateClass([
|
|
5644
|
-
(0,
|
|
5773
|
+
(0, import_typeorm60.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
5645
5774
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
5646
5775
|
__decorateClass([
|
|
5647
|
-
(0,
|
|
5776
|
+
(0, import_typeorm60.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
5648
5777
|
], User.prototype, "freelancerInvoice", 2);
|
|
5649
5778
|
__decorateClass([
|
|
5650
|
-
(0,
|
|
5779
|
+
(0, import_typeorm60.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
5651
5780
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
5652
5781
|
__decorateClass([
|
|
5653
|
-
(0,
|
|
5782
|
+
(0, import_typeorm60.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
5654
5783
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
5655
5784
|
__decorateClass([
|
|
5656
|
-
(0,
|
|
5785
|
+
(0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
5657
5786
|
], User.prototype, "initiatedDisputes", 2);
|
|
5658
5787
|
__decorateClass([
|
|
5659
|
-
(0,
|
|
5788
|
+
(0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
5660
5789
|
], User.prototype, "respondentDisputes", 2);
|
|
5661
5790
|
__decorateClass([
|
|
5662
|
-
(0,
|
|
5791
|
+
(0, import_typeorm60.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
5663
5792
|
], User.prototype, "wallet", 2);
|
|
5664
5793
|
__decorateClass([
|
|
5665
|
-
(0,
|
|
5794
|
+
(0, import_typeorm60.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
5666
5795
|
], User.prototype, "stripeTransactions", 2);
|
|
5667
5796
|
__decorateClass([
|
|
5668
|
-
(0,
|
|
5797
|
+
(0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
5669
5798
|
], User.prototype, "clientDisputes", 2);
|
|
5670
5799
|
__decorateClass([
|
|
5671
|
-
(0,
|
|
5800
|
+
(0, import_typeorm60.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
5672
5801
|
], User.prototype, "freelancerDisputes", 2);
|
|
5673
5802
|
User = __decorateClass([
|
|
5674
|
-
(0,
|
|
5803
|
+
(0, import_typeorm60.Entity)("users")
|
|
5675
5804
|
], User);
|
|
5676
5805
|
|
|
5677
5806
|
// src/entities/rating.entity.ts
|
|
@@ -5683,36 +5812,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
5683
5812
|
var Rating = class extends BaseEntity {
|
|
5684
5813
|
};
|
|
5685
5814
|
__decorateClass([
|
|
5686
|
-
(0,
|
|
5687
|
-
(0,
|
|
5815
|
+
(0, import_typeorm61.Column)({ name: "reviewer_id", type: "integer" }),
|
|
5816
|
+
(0, import_typeorm61.Index)()
|
|
5688
5817
|
], Rating.prototype, "reviewer_id", 2);
|
|
5689
5818
|
__decorateClass([
|
|
5690
|
-
(0,
|
|
5691
|
-
(0,
|
|
5819
|
+
(0, import_typeorm61.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5820
|
+
(0, import_typeorm61.JoinColumn)({ name: "reviewer_id" })
|
|
5692
5821
|
], Rating.prototype, "reviewer", 2);
|
|
5693
5822
|
__decorateClass([
|
|
5694
|
-
(0,
|
|
5695
|
-
(0,
|
|
5823
|
+
(0, import_typeorm61.Column)({ name: "reviewee_id", type: "integer" }),
|
|
5824
|
+
(0, import_typeorm61.Index)()
|
|
5696
5825
|
], Rating.prototype, "reviewee_id", 2);
|
|
5697
5826
|
__decorateClass([
|
|
5698
|
-
(0,
|
|
5699
|
-
(0,
|
|
5827
|
+
(0, import_typeorm61.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5828
|
+
(0, import_typeorm61.JoinColumn)({ name: "reviewee_id" })
|
|
5700
5829
|
], Rating.prototype, "reviewee", 2);
|
|
5701
5830
|
__decorateClass([
|
|
5702
|
-
(0,
|
|
5831
|
+
(0, import_typeorm61.Column)({
|
|
5703
5832
|
type: "enum",
|
|
5704
5833
|
enum: RatingTypeEnum,
|
|
5705
5834
|
nullable: true
|
|
5706
5835
|
})
|
|
5707
5836
|
], Rating.prototype, "ratingType", 2);
|
|
5708
5837
|
__decorateClass([
|
|
5709
|
-
(0,
|
|
5838
|
+
(0, import_typeorm61.Column)({ type: "integer", nullable: true })
|
|
5710
5839
|
], Rating.prototype, "rating", 2);
|
|
5711
5840
|
__decorateClass([
|
|
5712
|
-
(0,
|
|
5841
|
+
(0, import_typeorm61.Column)({ type: "text", nullable: true })
|
|
5713
5842
|
], Rating.prototype, "review", 2);
|
|
5714
5843
|
Rating = __decorateClass([
|
|
5715
|
-
(0,
|
|
5844
|
+
(0, import_typeorm61.Entity)("ratings")
|
|
5716
5845
|
], Rating);
|
|
5717
5846
|
|
|
5718
5847
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -7571,11 +7700,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
7571
7700
|
};
|
|
7572
7701
|
|
|
7573
7702
|
// src/entities/sequence-generator.entity.ts
|
|
7574
|
-
var
|
|
7703
|
+
var import_typeorm62 = require("typeorm");
|
|
7575
7704
|
var SequenceGenerator = class extends BaseEntity {
|
|
7576
7705
|
};
|
|
7577
7706
|
__decorateClass([
|
|
7578
|
-
(0,
|
|
7707
|
+
(0, import_typeorm62.Column)({
|
|
7579
7708
|
name: "module",
|
|
7580
7709
|
type: "varchar",
|
|
7581
7710
|
length: 50,
|
|
@@ -7584,7 +7713,7 @@ __decorateClass([
|
|
|
7584
7713
|
})
|
|
7585
7714
|
], SequenceGenerator.prototype, "module", 2);
|
|
7586
7715
|
__decorateClass([
|
|
7587
|
-
(0,
|
|
7716
|
+
(0, import_typeorm62.Column)({
|
|
7588
7717
|
name: "prefix",
|
|
7589
7718
|
type: "varchar",
|
|
7590
7719
|
length: 10,
|
|
@@ -7593,7 +7722,7 @@ __decorateClass([
|
|
|
7593
7722
|
})
|
|
7594
7723
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
7595
7724
|
__decorateClass([
|
|
7596
|
-
(0,
|
|
7725
|
+
(0, import_typeorm62.Column)({
|
|
7597
7726
|
name: "last_sequence",
|
|
7598
7727
|
type: "int",
|
|
7599
7728
|
nullable: false,
|
|
@@ -7601,7 +7730,7 @@ __decorateClass([
|
|
|
7601
7730
|
})
|
|
7602
7731
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
7603
7732
|
__decorateClass([
|
|
7604
|
-
(0,
|
|
7733
|
+
(0, import_typeorm62.Column)({
|
|
7605
7734
|
name: "year",
|
|
7606
7735
|
type: "int",
|
|
7607
7736
|
nullable: true,
|
|
@@ -7609,11 +7738,11 @@ __decorateClass([
|
|
|
7609
7738
|
})
|
|
7610
7739
|
], SequenceGenerator.prototype, "year", 2);
|
|
7611
7740
|
SequenceGenerator = __decorateClass([
|
|
7612
|
-
(0,
|
|
7741
|
+
(0, import_typeorm62.Entity)("sequence_generators")
|
|
7613
7742
|
], SequenceGenerator);
|
|
7614
7743
|
|
|
7615
7744
|
// src/entities/question.entity.ts
|
|
7616
|
-
var
|
|
7745
|
+
var import_typeorm63 = require("typeorm");
|
|
7617
7746
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
7618
7747
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
7619
7748
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -7622,16 +7751,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
7622
7751
|
var Question = class extends BaseEntity {
|
|
7623
7752
|
};
|
|
7624
7753
|
__decorateClass([
|
|
7625
|
-
(0,
|
|
7754
|
+
(0, import_typeorm63.Column)({ name: "question", type: "varchar" })
|
|
7626
7755
|
], Question.prototype, "question", 2);
|
|
7627
7756
|
__decorateClass([
|
|
7628
|
-
(0,
|
|
7757
|
+
(0, import_typeorm63.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
7629
7758
|
], Question.prototype, "hint", 2);
|
|
7630
7759
|
__decorateClass([
|
|
7631
|
-
(0,
|
|
7760
|
+
(0, import_typeorm63.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7632
7761
|
], Question.prototype, "slug", 2);
|
|
7633
7762
|
__decorateClass([
|
|
7634
|
-
(0,
|
|
7763
|
+
(0, import_typeorm63.Column)({
|
|
7635
7764
|
name: "question_for",
|
|
7636
7765
|
type: "enum",
|
|
7637
7766
|
enum: QuestionFor,
|
|
@@ -7639,45 +7768,45 @@ __decorateClass([
|
|
|
7639
7768
|
})
|
|
7640
7769
|
], Question.prototype, "questionFor", 2);
|
|
7641
7770
|
__decorateClass([
|
|
7642
|
-
(0,
|
|
7771
|
+
(0, import_typeorm63.Column)({ name: "type", type: "varchar", nullable: true })
|
|
7643
7772
|
], Question.prototype, "type", 2);
|
|
7644
7773
|
__decorateClass([
|
|
7645
|
-
(0,
|
|
7774
|
+
(0, import_typeorm63.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
7646
7775
|
], Question.prototype, "options", 2);
|
|
7647
7776
|
__decorateClass([
|
|
7648
|
-
(0,
|
|
7777
|
+
(0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: false })
|
|
7649
7778
|
], Question.prototype, "isActive", 2);
|
|
7650
7779
|
Question = __decorateClass([
|
|
7651
|
-
(0,
|
|
7780
|
+
(0, import_typeorm63.Entity)("questions")
|
|
7652
7781
|
], Question);
|
|
7653
7782
|
|
|
7654
7783
|
// src/entities/skill.entity.ts
|
|
7655
|
-
var
|
|
7784
|
+
var import_typeorm64 = require("typeorm");
|
|
7656
7785
|
var Skill = class extends BaseEntity {
|
|
7657
7786
|
};
|
|
7658
7787
|
__decorateClass([
|
|
7659
|
-
(0,
|
|
7788
|
+
(0, import_typeorm64.Column)({ name: "name", type: "varchar", nullable: true })
|
|
7660
7789
|
], Skill.prototype, "name", 2);
|
|
7661
7790
|
__decorateClass([
|
|
7662
|
-
(0,
|
|
7791
|
+
(0, import_typeorm64.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7663
7792
|
], Skill.prototype, "slug", 2);
|
|
7664
7793
|
__decorateClass([
|
|
7665
|
-
(0,
|
|
7794
|
+
(0, import_typeorm64.Column)({ name: "is_active", type: "boolean", default: false })
|
|
7666
7795
|
], Skill.prototype, "isActive", 2);
|
|
7667
7796
|
Skill = __decorateClass([
|
|
7668
|
-
(0,
|
|
7797
|
+
(0, import_typeorm64.Entity)("skills")
|
|
7669
7798
|
], Skill);
|
|
7670
7799
|
|
|
7671
7800
|
// src/entities/skill-catalog.entity.ts
|
|
7672
|
-
var
|
|
7801
|
+
var import_typeorm65 = require("typeorm");
|
|
7673
7802
|
var SkillCatalog = class extends BaseEntity {
|
|
7674
7803
|
};
|
|
7675
7804
|
__decorateClass([
|
|
7676
|
-
(0,
|
|
7677
|
-
(0,
|
|
7805
|
+
(0, import_typeorm65.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
7806
|
+
(0, import_typeorm65.Index)()
|
|
7678
7807
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
7679
7808
|
__decorateClass([
|
|
7680
|
-
(0,
|
|
7809
|
+
(0, import_typeorm65.Column)({
|
|
7681
7810
|
name: "aliases",
|
|
7682
7811
|
type: "text",
|
|
7683
7812
|
array: true,
|
|
@@ -7685,20 +7814,20 @@ __decorateClass([
|
|
|
7685
7814
|
})
|
|
7686
7815
|
], SkillCatalog.prototype, "aliases", 2);
|
|
7687
7816
|
__decorateClass([
|
|
7688
|
-
(0,
|
|
7817
|
+
(0, import_typeorm65.Column)({
|
|
7689
7818
|
name: "variations",
|
|
7690
7819
|
type: "jsonb",
|
|
7691
7820
|
default: "{}"
|
|
7692
7821
|
})
|
|
7693
7822
|
], SkillCatalog.prototype, "variations", 2);
|
|
7694
7823
|
__decorateClass([
|
|
7695
|
-
(0,
|
|
7824
|
+
(0, import_typeorm65.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
7696
7825
|
], SkillCatalog.prototype, "category", 2);
|
|
7697
7826
|
__decorateClass([
|
|
7698
|
-
(0,
|
|
7827
|
+
(0, import_typeorm65.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
7699
7828
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
7700
7829
|
__decorateClass([
|
|
7701
|
-
(0,
|
|
7830
|
+
(0, import_typeorm65.Column)({
|
|
7702
7831
|
name: "related_skills",
|
|
7703
7832
|
type: "text",
|
|
7704
7833
|
array: true,
|
|
@@ -7706,111 +7835,111 @@ __decorateClass([
|
|
|
7706
7835
|
})
|
|
7707
7836
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
7708
7837
|
__decorateClass([
|
|
7709
|
-
(0,
|
|
7710
|
-
(0,
|
|
7838
|
+
(0, import_typeorm65.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
7839
|
+
(0, import_typeorm65.Index)()
|
|
7711
7840
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
7712
7841
|
__decorateClass([
|
|
7713
|
-
(0,
|
|
7842
|
+
(0, import_typeorm65.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
7714
7843
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
7715
7844
|
__decorateClass([
|
|
7716
|
-
(0,
|
|
7845
|
+
(0, import_typeorm65.Column)({ name: "first_seen_date", type: "date" })
|
|
7717
7846
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
7718
7847
|
__decorateClass([
|
|
7719
|
-
(0,
|
|
7848
|
+
(0, import_typeorm65.Column)({ name: "last_updated_date", type: "date" })
|
|
7720
7849
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
7721
7850
|
__decorateClass([
|
|
7722
|
-
(0,
|
|
7851
|
+
(0, import_typeorm65.Column)({
|
|
7723
7852
|
name: "search_vector",
|
|
7724
7853
|
type: "tsvector",
|
|
7725
7854
|
nullable: true
|
|
7726
7855
|
})
|
|
7727
7856
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
7728
7857
|
SkillCatalog = __decorateClass([
|
|
7729
|
-
(0,
|
|
7858
|
+
(0, import_typeorm65.Entity)("skill_catalogs")
|
|
7730
7859
|
], SkillCatalog);
|
|
7731
7860
|
|
|
7732
7861
|
// src/entities/job-role.entity.ts
|
|
7733
|
-
var
|
|
7862
|
+
var import_typeorm66 = require("typeorm");
|
|
7734
7863
|
var JobRoles = class extends BaseEntity {
|
|
7735
7864
|
};
|
|
7736
7865
|
__decorateClass([
|
|
7737
|
-
(0,
|
|
7866
|
+
(0, import_typeorm66.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7738
7867
|
], JobRoles.prototype, "slug", 2);
|
|
7739
7868
|
__decorateClass([
|
|
7740
|
-
(0,
|
|
7869
|
+
(0, import_typeorm66.Column)({ name: "name", type: "varchar", nullable: true })
|
|
7741
7870
|
], JobRoles.prototype, "name", 2);
|
|
7742
7871
|
__decorateClass([
|
|
7743
|
-
(0,
|
|
7872
|
+
(0, import_typeorm66.Column)({ name: "is_active", type: "boolean", default: true })
|
|
7744
7873
|
], JobRoles.prototype, "isActive", 2);
|
|
7745
7874
|
JobRoles = __decorateClass([
|
|
7746
|
-
(0,
|
|
7875
|
+
(0, import_typeorm66.Entity)("job_roles")
|
|
7747
7876
|
], JobRoles);
|
|
7748
7877
|
|
|
7749
7878
|
// src/entities/plan.entity.ts
|
|
7750
|
-
var
|
|
7879
|
+
var import_typeorm68 = require("typeorm");
|
|
7751
7880
|
|
|
7752
7881
|
// src/entities/feature.entity.ts
|
|
7753
|
-
var
|
|
7882
|
+
var import_typeorm67 = require("typeorm");
|
|
7754
7883
|
var Feature = class extends BaseEntity {
|
|
7755
7884
|
};
|
|
7756
7885
|
__decorateClass([
|
|
7757
|
-
(0,
|
|
7886
|
+
(0, import_typeorm67.Column)({ name: "name", type: "varchar", unique: true })
|
|
7758
7887
|
], Feature.prototype, "name", 2);
|
|
7759
7888
|
__decorateClass([
|
|
7760
|
-
(0,
|
|
7889
|
+
(0, import_typeorm67.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
7761
7890
|
], Feature.prototype, "plans", 2);
|
|
7762
7891
|
Feature = __decorateClass([
|
|
7763
|
-
(0,
|
|
7892
|
+
(0, import_typeorm67.Entity)("features")
|
|
7764
7893
|
], Feature);
|
|
7765
7894
|
|
|
7766
7895
|
// src/entities/plan.entity.ts
|
|
7767
7896
|
var Plan = class extends BaseEntity {
|
|
7768
7897
|
};
|
|
7769
7898
|
__decorateClass([
|
|
7770
|
-
(0,
|
|
7899
|
+
(0, import_typeorm68.Column)({ name: "name", type: "varchar", unique: true })
|
|
7771
7900
|
], Plan.prototype, "name", 2);
|
|
7772
7901
|
__decorateClass([
|
|
7773
|
-
(0,
|
|
7902
|
+
(0, import_typeorm68.Column)({ name: "description", type: "varchar", nullable: true })
|
|
7774
7903
|
], Plan.prototype, "description", 2);
|
|
7775
7904
|
__decorateClass([
|
|
7776
|
-
(0,
|
|
7905
|
+
(0, import_typeorm68.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
7777
7906
|
], Plan.prototype, "price", 2);
|
|
7778
7907
|
__decorateClass([
|
|
7779
|
-
(0,
|
|
7908
|
+
(0, import_typeorm68.Column)({ name: "billing_period", type: "varchar" })
|
|
7780
7909
|
], Plan.prototype, "billingPeriod", 2);
|
|
7781
7910
|
__decorateClass([
|
|
7782
|
-
(0,
|
|
7911
|
+
(0, import_typeorm68.Column)({ name: "is_current", type: "boolean", default: false })
|
|
7783
7912
|
], Plan.prototype, "isCurrent", 2);
|
|
7784
7913
|
__decorateClass([
|
|
7785
|
-
(0,
|
|
7786
|
-
(0,
|
|
7914
|
+
(0, import_typeorm68.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
7915
|
+
(0, import_typeorm68.JoinTable)()
|
|
7787
7916
|
], Plan.prototype, "features", 2);
|
|
7788
7917
|
Plan = __decorateClass([
|
|
7789
|
-
(0,
|
|
7918
|
+
(0, import_typeorm68.Entity)("plans")
|
|
7790
7919
|
], Plan);
|
|
7791
7920
|
|
|
7792
7921
|
// src/entities/cms.entity.ts
|
|
7793
|
-
var
|
|
7922
|
+
var import_typeorm69 = require("typeorm");
|
|
7794
7923
|
var Cms = class extends BaseEntity {
|
|
7795
7924
|
};
|
|
7796
7925
|
__decorateClass([
|
|
7797
|
-
(0,
|
|
7926
|
+
(0, import_typeorm69.Column)({ name: "title", type: "varchar", nullable: true })
|
|
7798
7927
|
], Cms.prototype, "title", 2);
|
|
7799
7928
|
__decorateClass([
|
|
7800
|
-
(0,
|
|
7929
|
+
(0, import_typeorm69.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
7801
7930
|
], Cms.prototype, "slug", 2);
|
|
7802
7931
|
__decorateClass([
|
|
7803
|
-
(0,
|
|
7932
|
+
(0, import_typeorm69.Column)({ name: "content", type: "varchar", nullable: true })
|
|
7804
7933
|
], Cms.prototype, "content", 2);
|
|
7805
7934
|
__decorateClass([
|
|
7806
|
-
(0,
|
|
7935
|
+
(0, import_typeorm69.Column)({ name: "is_active", type: "boolean", default: true })
|
|
7807
7936
|
], Cms.prototype, "isActive", 2);
|
|
7808
7937
|
Cms = __decorateClass([
|
|
7809
|
-
(0,
|
|
7938
|
+
(0, import_typeorm69.Entity)("cms")
|
|
7810
7939
|
], Cms);
|
|
7811
7940
|
|
|
7812
7941
|
// src/entities/lead.entity.ts
|
|
7813
|
-
var
|
|
7942
|
+
var import_typeorm70 = require("typeorm");
|
|
7814
7943
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
7815
7944
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
7816
7945
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -7819,22 +7948,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
7819
7948
|
var Lead = class extends BaseEntity {
|
|
7820
7949
|
};
|
|
7821
7950
|
__decorateClass([
|
|
7822
|
-
(0,
|
|
7951
|
+
(0, import_typeorm70.Column)({ name: "name", type: "varchar", nullable: true })
|
|
7823
7952
|
], Lead.prototype, "name", 2);
|
|
7824
7953
|
__decorateClass([
|
|
7825
|
-
(0,
|
|
7954
|
+
(0, import_typeorm70.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
7826
7955
|
], Lead.prototype, "mobileCode", 2);
|
|
7827
7956
|
__decorateClass([
|
|
7828
|
-
(0,
|
|
7957
|
+
(0, import_typeorm70.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
7829
7958
|
], Lead.prototype, "mobile", 2);
|
|
7830
7959
|
__decorateClass([
|
|
7831
|
-
(0,
|
|
7960
|
+
(0, import_typeorm70.Column)({ name: "email", type: "varchar", nullable: true })
|
|
7832
7961
|
], Lead.prototype, "email", 2);
|
|
7833
7962
|
__decorateClass([
|
|
7834
|
-
(0,
|
|
7963
|
+
(0, import_typeorm70.Column)({ name: "description", type: "varchar", nullable: true })
|
|
7835
7964
|
], Lead.prototype, "description", 2);
|
|
7836
7965
|
__decorateClass([
|
|
7837
|
-
(0,
|
|
7966
|
+
(0, import_typeorm70.Column)({
|
|
7838
7967
|
name: "category",
|
|
7839
7968
|
type: "enum",
|
|
7840
7969
|
enum: CategoryEmum,
|
|
@@ -7842,129 +7971,129 @@ __decorateClass([
|
|
|
7842
7971
|
})
|
|
7843
7972
|
], Lead.prototype, "category", 2);
|
|
7844
7973
|
Lead = __decorateClass([
|
|
7845
|
-
(0,
|
|
7974
|
+
(0, import_typeorm70.Entity)("leads")
|
|
7846
7975
|
], Lead);
|
|
7847
7976
|
|
|
7848
7977
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
7849
|
-
var
|
|
7978
|
+
var import_typeorm71 = require("typeorm");
|
|
7850
7979
|
var JobFreelancerRecommendation = class {
|
|
7851
7980
|
};
|
|
7852
7981
|
__decorateClass([
|
|
7853
|
-
(0,
|
|
7982
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_id" })
|
|
7854
7983
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
7855
7984
|
__decorateClass([
|
|
7856
|
-
(0,
|
|
7985
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_uuid" })
|
|
7857
7986
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
7858
7987
|
__decorateClass([
|
|
7859
|
-
(0,
|
|
7988
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_unique_id" })
|
|
7860
7989
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
7861
7990
|
__decorateClass([
|
|
7862
|
-
(0,
|
|
7991
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_role" })
|
|
7863
7992
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
7864
7993
|
__decorateClass([
|
|
7865
|
-
(0,
|
|
7994
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_openings" })
|
|
7866
7995
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
7867
7996
|
__decorateClass([
|
|
7868
|
-
(0,
|
|
7997
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_location" })
|
|
7869
7998
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
7870
7999
|
__decorateClass([
|
|
7871
|
-
(0,
|
|
8000
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_currency" })
|
|
7872
8001
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
7873
8002
|
__decorateClass([
|
|
7874
|
-
(0,
|
|
8003
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_salary_from" })
|
|
7875
8004
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
7876
8005
|
__decorateClass([
|
|
7877
|
-
(0,
|
|
8006
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_salary_to" })
|
|
7878
8007
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
7879
8008
|
__decorateClass([
|
|
7880
|
-
(0,
|
|
8009
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_employment_type" })
|
|
7881
8010
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
7882
8011
|
__decorateClass([
|
|
7883
|
-
(0,
|
|
8012
|
+
(0, import_typeorm71.ViewColumn)({ name: "application_received" })
|
|
7884
8013
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
7885
8014
|
__decorateClass([
|
|
7886
|
-
(0,
|
|
8015
|
+
(0, import_typeorm71.ViewColumn)({ name: "job_posted_at" })
|
|
7887
8016
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
7888
8017
|
__decorateClass([
|
|
7889
|
-
(0,
|
|
8018
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_id" })
|
|
7890
8019
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
7891
8020
|
__decorateClass([
|
|
7892
|
-
(0,
|
|
8021
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_uuid" })
|
|
7893
8022
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
7894
8023
|
__decorateClass([
|
|
7895
|
-
(0,
|
|
8024
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_unique_id" })
|
|
7896
8025
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
7897
8026
|
__decorateClass([
|
|
7898
|
-
(0,
|
|
8027
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_first_name" })
|
|
7899
8028
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
7900
8029
|
__decorateClass([
|
|
7901
|
-
(0,
|
|
8030
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_last_name" })
|
|
7902
8031
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
7903
8032
|
__decorateClass([
|
|
7904
|
-
(0,
|
|
8033
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_email" })
|
|
7905
8034
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
7906
8035
|
__decorateClass([
|
|
7907
|
-
(0,
|
|
8036
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
7908
8037
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
7909
8038
|
__decorateClass([
|
|
7910
|
-
(0,
|
|
8039
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_is_social" })
|
|
7911
8040
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
7912
8041
|
__decorateClass([
|
|
7913
|
-
(0,
|
|
8042
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_created_at" })
|
|
7914
8043
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
7915
8044
|
__decorateClass([
|
|
7916
|
-
(0,
|
|
8045
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_designation" })
|
|
7917
8046
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
7918
8047
|
__decorateClass([
|
|
7919
|
-
(0,
|
|
8048
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_experience" })
|
|
7920
8049
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
7921
8050
|
__decorateClass([
|
|
7922
|
-
(0,
|
|
8051
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
7923
8052
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
7924
8053
|
__decorateClass([
|
|
7925
|
-
(0,
|
|
8054
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
7926
8055
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
7927
8056
|
__decorateClass([
|
|
7928
|
-
(0,
|
|
8057
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_country_name" })
|
|
7929
8058
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
7930
8059
|
__decorateClass([
|
|
7931
|
-
(0,
|
|
8060
|
+
(0, import_typeorm71.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
7932
8061
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
7933
8062
|
__decorateClass([
|
|
7934
|
-
(0,
|
|
8063
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_id" })
|
|
7935
8064
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
7936
8065
|
__decorateClass([
|
|
7937
|
-
(0,
|
|
8066
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_uuid" })
|
|
7938
8067
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
7939
8068
|
__decorateClass([
|
|
7940
|
-
(0,
|
|
8069
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_first_name" })
|
|
7941
8070
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
7942
8071
|
__decorateClass([
|
|
7943
|
-
(0,
|
|
8072
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_last_name" })
|
|
7944
8073
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
7945
8074
|
__decorateClass([
|
|
7946
|
-
(0,
|
|
8075
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_email" })
|
|
7947
8076
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
7948
8077
|
__decorateClass([
|
|
7949
|
-
(0,
|
|
8078
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_company_logo" })
|
|
7950
8079
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
7951
8080
|
__decorateClass([
|
|
7952
|
-
(0,
|
|
8081
|
+
(0, import_typeorm71.ViewColumn)({ name: "client_company_name" })
|
|
7953
8082
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
7954
8083
|
__decorateClass([
|
|
7955
|
-
(0,
|
|
8084
|
+
(0, import_typeorm71.ViewColumn)({ name: "matching_skills" })
|
|
7956
8085
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
7957
8086
|
__decorateClass([
|
|
7958
|
-
(0,
|
|
8087
|
+
(0, import_typeorm71.ViewColumn)({ name: "matching_skills_count" })
|
|
7959
8088
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
7960
8089
|
__decorateClass([
|
|
7961
|
-
(0,
|
|
8090
|
+
(0, import_typeorm71.ViewColumn)({ name: "required_skills" })
|
|
7962
8091
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
7963
8092
|
__decorateClass([
|
|
7964
|
-
(0,
|
|
8093
|
+
(0, import_typeorm71.ViewColumn)({ name: "required_skills_count" })
|
|
7965
8094
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
7966
8095
|
JobFreelancerRecommendation = __decorateClass([
|
|
7967
|
-
(0,
|
|
8096
|
+
(0, import_typeorm71.ViewEntity)({
|
|
7968
8097
|
name: "job_freelancer_recommendations",
|
|
7969
8098
|
materialized: true,
|
|
7970
8099
|
synchronize: false
|
|
@@ -7973,32 +8102,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
7973
8102
|
], JobFreelancerRecommendation);
|
|
7974
8103
|
|
|
7975
8104
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
7976
|
-
var
|
|
8105
|
+
var import_typeorm72 = require("typeorm");
|
|
7977
8106
|
var JobFreelancerRecommendationV2 = class {
|
|
7978
8107
|
};
|
|
7979
8108
|
__decorateClass([
|
|
7980
|
-
(0,
|
|
8109
|
+
(0, import_typeorm72.ViewColumn)({ name: "job_id" })
|
|
7981
8110
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
7982
8111
|
__decorateClass([
|
|
7983
|
-
(0,
|
|
8112
|
+
(0, import_typeorm72.ViewColumn)({ name: "job_owner_id" })
|
|
7984
8113
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
7985
8114
|
__decorateClass([
|
|
7986
|
-
(0,
|
|
8115
|
+
(0, import_typeorm72.ViewColumn)({ name: "freelancer_id" })
|
|
7987
8116
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
7988
8117
|
__decorateClass([
|
|
7989
|
-
(0,
|
|
8118
|
+
(0, import_typeorm72.ViewColumn)({ name: "matching_skills" })
|
|
7990
8119
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
7991
8120
|
__decorateClass([
|
|
7992
|
-
(0,
|
|
8121
|
+
(0, import_typeorm72.ViewColumn)({ name: "matching_skills_count" })
|
|
7993
8122
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
7994
8123
|
__decorateClass([
|
|
7995
|
-
(0,
|
|
8124
|
+
(0, import_typeorm72.ViewColumn)({ name: "required_skills" })
|
|
7996
8125
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
7997
8126
|
__decorateClass([
|
|
7998
|
-
(0,
|
|
8127
|
+
(0, import_typeorm72.ViewColumn)({ name: "required_skills_count" })
|
|
7999
8128
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
8000
8129
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
8001
|
-
(0,
|
|
8130
|
+
(0, import_typeorm72.ViewEntity)({
|
|
8002
8131
|
name: "job_freelancer_recommendations_v2",
|
|
8003
8132
|
materialized: true,
|
|
8004
8133
|
synchronize: false
|
|
@@ -8007,74 +8136,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
8007
8136
|
], JobFreelancerRecommendationV2);
|
|
8008
8137
|
|
|
8009
8138
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
8010
|
-
var
|
|
8139
|
+
var import_typeorm73 = require("typeorm");
|
|
8011
8140
|
var ClientFreelancerRecommendation = class {
|
|
8012
8141
|
};
|
|
8013
8142
|
__decorateClass([
|
|
8014
|
-
(0,
|
|
8143
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_id" })
|
|
8015
8144
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
8016
8145
|
__decorateClass([
|
|
8017
|
-
(0,
|
|
8146
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_uuid" })
|
|
8018
8147
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
8019
8148
|
__decorateClass([
|
|
8020
|
-
(0,
|
|
8149
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_id" })
|
|
8021
8150
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
8022
8151
|
__decorateClass([
|
|
8023
|
-
(0,
|
|
8152
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_uuid" })
|
|
8024
8153
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
8025
8154
|
__decorateClass([
|
|
8026
|
-
(0,
|
|
8155
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_unique_id" })
|
|
8027
8156
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
8028
8157
|
__decorateClass([
|
|
8029
|
-
(0,
|
|
8158
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_first_name" })
|
|
8030
8159
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
8031
8160
|
__decorateClass([
|
|
8032
|
-
(0,
|
|
8161
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_last_name" })
|
|
8033
8162
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
8034
8163
|
__decorateClass([
|
|
8035
|
-
(0,
|
|
8164
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_email" })
|
|
8036
8165
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
8037
8166
|
__decorateClass([
|
|
8038
|
-
(0,
|
|
8167
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
8039
8168
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
8040
8169
|
__decorateClass([
|
|
8041
|
-
(0,
|
|
8170
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_is_social" })
|
|
8042
8171
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
8043
8172
|
__decorateClass([
|
|
8044
|
-
(0,
|
|
8173
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_created_at" })
|
|
8045
8174
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
8046
8175
|
__decorateClass([
|
|
8047
|
-
(0,
|
|
8176
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_designation" })
|
|
8048
8177
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
8049
8178
|
__decorateClass([
|
|
8050
|
-
(0,
|
|
8179
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_experience" })
|
|
8051
8180
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
8052
8181
|
__decorateClass([
|
|
8053
|
-
(0,
|
|
8182
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
8054
8183
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
8055
8184
|
__decorateClass([
|
|
8056
|
-
(0,
|
|
8185
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
8057
8186
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
8058
8187
|
__decorateClass([
|
|
8059
|
-
(0,
|
|
8188
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_country_name" })
|
|
8060
8189
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
8061
8190
|
__decorateClass([
|
|
8062
|
-
(0,
|
|
8191
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
8063
8192
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
8064
8193
|
__decorateClass([
|
|
8065
|
-
(0,
|
|
8194
|
+
(0, import_typeorm73.ViewColumn)({ name: "matching_skills" })
|
|
8066
8195
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
8067
8196
|
__decorateClass([
|
|
8068
|
-
(0,
|
|
8197
|
+
(0, import_typeorm73.ViewColumn)({ name: "matching_skills_count" })
|
|
8069
8198
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
8070
8199
|
__decorateClass([
|
|
8071
|
-
(0,
|
|
8200
|
+
(0, import_typeorm73.ViewColumn)({ name: "required_skills" })
|
|
8072
8201
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
8073
8202
|
__decorateClass([
|
|
8074
|
-
(0,
|
|
8203
|
+
(0, import_typeorm73.ViewColumn)({ name: "required_skills_count" })
|
|
8075
8204
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
8076
8205
|
ClientFreelancerRecommendation = __decorateClass([
|
|
8077
|
-
(0,
|
|
8206
|
+
(0, import_typeorm73.ViewEntity)({
|
|
8078
8207
|
name: "client_freelancer_recommendations",
|
|
8079
8208
|
materialized: true,
|
|
8080
8209
|
synchronize: false
|
|
@@ -8083,7 +8212,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
8083
8212
|
], ClientFreelancerRecommendation);
|
|
8084
8213
|
|
|
8085
8214
|
// src/entities/commission.entity.ts
|
|
8086
|
-
var
|
|
8215
|
+
var import_typeorm74 = require("typeorm");
|
|
8087
8216
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
8088
8217
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
8089
8218
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -8092,7 +8221,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
8092
8221
|
var Commission = class extends BaseEntity {
|
|
8093
8222
|
};
|
|
8094
8223
|
__decorateClass([
|
|
8095
|
-
(0,
|
|
8224
|
+
(0, import_typeorm74.Column)({
|
|
8096
8225
|
name: "freelancer_commission_type",
|
|
8097
8226
|
type: "enum",
|
|
8098
8227
|
enum: CommissionTypeEnum,
|
|
@@ -8100,10 +8229,10 @@ __decorateClass([
|
|
|
8100
8229
|
})
|
|
8101
8230
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
8102
8231
|
__decorateClass([
|
|
8103
|
-
(0,
|
|
8232
|
+
(0, import_typeorm74.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
8104
8233
|
], Commission.prototype, "freelancerCommission", 2);
|
|
8105
8234
|
__decorateClass([
|
|
8106
|
-
(0,
|
|
8235
|
+
(0, import_typeorm74.Column)({
|
|
8107
8236
|
name: "client_commission_type",
|
|
8108
8237
|
type: "enum",
|
|
8109
8238
|
enum: CommissionTypeEnum,
|
|
@@ -8111,93 +8240,93 @@ __decorateClass([
|
|
|
8111
8240
|
})
|
|
8112
8241
|
], Commission.prototype, "clientCommissionType", 2);
|
|
8113
8242
|
__decorateClass([
|
|
8114
|
-
(0,
|
|
8243
|
+
(0, import_typeorm74.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
8115
8244
|
], Commission.prototype, "clientCommission", 2);
|
|
8116
8245
|
Commission = __decorateClass([
|
|
8117
|
-
(0,
|
|
8246
|
+
(0, import_typeorm74.Entity)("commissions")
|
|
8118
8247
|
], Commission);
|
|
8119
8248
|
|
|
8120
8249
|
// src/entities/calendly-meeting-log.entity.ts
|
|
8121
|
-
var
|
|
8250
|
+
var import_typeorm75 = require("typeorm");
|
|
8122
8251
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
8123
8252
|
};
|
|
8124
8253
|
__decorateClass([
|
|
8125
|
-
(0,
|
|
8126
|
-
(0,
|
|
8254
|
+
(0, import_typeorm75.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
8255
|
+
(0, import_typeorm75.Index)()
|
|
8127
8256
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
8128
8257
|
__decorateClass([
|
|
8129
|
-
(0,
|
|
8258
|
+
(0, import_typeorm75.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
8130
8259
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
8131
8260
|
__decorateClass([
|
|
8132
|
-
(0,
|
|
8261
|
+
(0, import_typeorm75.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8133
8262
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
8134
8263
|
CalendlyMeetingLog = __decorateClass([
|
|
8135
|
-
(0,
|
|
8264
|
+
(0, import_typeorm75.Entity)("calendly_meeting_logs")
|
|
8136
8265
|
], CalendlyMeetingLog);
|
|
8137
8266
|
|
|
8138
8267
|
// src/entities/zoom-meeting-log.entity.ts
|
|
8139
|
-
var
|
|
8268
|
+
var import_typeorm76 = require("typeorm");
|
|
8140
8269
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
8141
8270
|
};
|
|
8142
8271
|
__decorateClass([
|
|
8143
|
-
(0,
|
|
8144
|
-
(0,
|
|
8272
|
+
(0, import_typeorm76.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
8273
|
+
(0, import_typeorm76.Index)()
|
|
8145
8274
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
8146
8275
|
__decorateClass([
|
|
8147
|
-
(0,
|
|
8276
|
+
(0, import_typeorm76.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
8148
8277
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
8149
8278
|
__decorateClass([
|
|
8150
|
-
(0,
|
|
8279
|
+
(0, import_typeorm76.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8151
8280
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
8152
8281
|
ZoomMeetingLog = __decorateClass([
|
|
8153
|
-
(0,
|
|
8282
|
+
(0, import_typeorm76.Entity)("zoom_meeting_logs")
|
|
8154
8283
|
], ZoomMeetingLog);
|
|
8155
8284
|
|
|
8156
8285
|
// src/entities/stripe-logs.entity.ts
|
|
8157
|
-
var
|
|
8286
|
+
var import_typeorm77 = require("typeorm");
|
|
8158
8287
|
var StripeLog = class extends BaseEntity {
|
|
8159
8288
|
};
|
|
8160
8289
|
__decorateClass([
|
|
8161
|
-
(0,
|
|
8290
|
+
(0, import_typeorm77.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
8162
8291
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
8163
8292
|
__decorateClass([
|
|
8164
|
-
(0,
|
|
8293
|
+
(0, import_typeorm77.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
8165
8294
|
], StripeLog.prototype, "eventType", 2);
|
|
8166
8295
|
__decorateClass([
|
|
8167
|
-
(0,
|
|
8296
|
+
(0, import_typeorm77.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
8168
8297
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
8169
8298
|
__decorateClass([
|
|
8170
|
-
(0,
|
|
8299
|
+
(0, import_typeorm77.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8171
8300
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
8172
8301
|
StripeLog = __decorateClass([
|
|
8173
|
-
(0,
|
|
8302
|
+
(0, import_typeorm77.Entity)("stripe_logs")
|
|
8174
8303
|
], StripeLog);
|
|
8175
8304
|
|
|
8176
8305
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
8177
|
-
var
|
|
8306
|
+
var import_typeorm78 = require("typeorm");
|
|
8178
8307
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
8179
8308
|
};
|
|
8180
8309
|
__decorateClass([
|
|
8181
|
-
(0,
|
|
8310
|
+
(0, import_typeorm78.Column)({
|
|
8182
8311
|
type: "varchar",
|
|
8183
8312
|
length: 100,
|
|
8184
8313
|
unique: true,
|
|
8185
8314
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
8186
8315
|
}),
|
|
8187
|
-
(0,
|
|
8316
|
+
(0, import_typeorm78.Index)()
|
|
8188
8317
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
8189
8318
|
__decorateClass([
|
|
8190
|
-
(0,
|
|
8319
|
+
(0, import_typeorm78.Column)({
|
|
8191
8320
|
type: "jsonb",
|
|
8192
8321
|
comment: "JSON object containing weight values",
|
|
8193
8322
|
nullable: true
|
|
8194
8323
|
})
|
|
8195
8324
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
8196
8325
|
__decorateClass([
|
|
8197
|
-
(0,
|
|
8326
|
+
(0, import_typeorm78.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8198
8327
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
8199
8328
|
RecommendationWeightageConfig = __decorateClass([
|
|
8200
|
-
(0,
|
|
8329
|
+
(0, import_typeorm78.Entity)("recommendation_weightage_configs")
|
|
8201
8330
|
], RecommendationWeightageConfig);
|
|
8202
8331
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8203
8332
|
0 && (module.exports = {
|
|
@@ -8295,6 +8424,10 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8295
8424
|
DurationTypeEnum,
|
|
8296
8425
|
EducationDto,
|
|
8297
8426
|
EmploymentType,
|
|
8427
|
+
EscrowWallet,
|
|
8428
|
+
EscrowWalletTransaction,
|
|
8429
|
+
EscrowWalletTransactionForEnum,
|
|
8430
|
+
EscrowWalletTransactionTypeEnum,
|
|
8298
8431
|
ExperienceDto,
|
|
8299
8432
|
F2FInterview,
|
|
8300
8433
|
F2FInterviewSchedule,
|