@experts_hub/shared 1.0.519 → 1.0.520
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/hiring.entity.d.ts +20 -0
- package/dist/entities/index.d.ts +1 -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 +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +896 -822
- package/dist/index.mjs +841 -769
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -172,6 +172,8 @@ __export(index_exports, {
|
|
|
172
172
|
FreelancerUploadResumeDto: () => FreelancerUploadResumeDto,
|
|
173
173
|
FreelancerWorkShowcaseDto: () => FreelancerWorkShowcaseDto,
|
|
174
174
|
FromUsOn: () => FromUsOn,
|
|
175
|
+
HiredFreelancerNatureOfWorkEnum: () => HiredFreelancerNatureOfWorkEnum,
|
|
176
|
+
Hiring: () => Hiring,
|
|
175
177
|
INTERVIEW_INVITE_PATTERN: () => INTERVIEW_INVITE_PATTERN,
|
|
176
178
|
INVOICE_PATTERN: () => INVOICE_PATTERN,
|
|
177
179
|
InitiatorTypeEnum: () => InitiatorTypeEnum,
|
|
@@ -1900,10 +1902,10 @@ var RATING_PATTERN = {
|
|
|
1900
1902
|
var import_class_validator43 = require("class-validator");
|
|
1901
1903
|
|
|
1902
1904
|
// src/entities/rating.entity.ts
|
|
1903
|
-
var
|
|
1905
|
+
var import_typeorm63 = require("typeorm");
|
|
1904
1906
|
|
|
1905
1907
|
// src/entities/user.entity.ts
|
|
1906
|
-
var
|
|
1908
|
+
var import_typeorm62 = require("typeorm");
|
|
1907
1909
|
|
|
1908
1910
|
// src/entities/base.entity.ts
|
|
1909
1911
|
var import_typeorm = require("typeorm");
|
|
@@ -2677,7 +2679,7 @@ FreelancerProfile = __decorateClass([
|
|
|
2677
2679
|
], FreelancerProfile);
|
|
2678
2680
|
|
|
2679
2681
|
// src/entities/job.entity.ts
|
|
2680
|
-
var
|
|
2682
|
+
var import_typeorm32 = require("typeorm");
|
|
2681
2683
|
|
|
2682
2684
|
// src/entities/job-skill.entity.ts
|
|
2683
2685
|
var import_typeorm10 = require("typeorm");
|
|
@@ -3580,16 +3582,16 @@ JobRecommendation = __decorateClass([
|
|
|
3580
3582
|
], JobRecommendation);
|
|
3581
3583
|
|
|
3582
3584
|
// src/entities/contract.entity.ts
|
|
3583
|
-
var
|
|
3585
|
+
var import_typeorm29 = require("typeorm");
|
|
3584
3586
|
|
|
3585
3587
|
// src/entities/escrow-wallet.entity.ts
|
|
3586
|
-
var
|
|
3588
|
+
var import_typeorm28 = require("typeorm");
|
|
3587
3589
|
|
|
3588
3590
|
// src/entities/escrow-wallet-transaction.entity.ts
|
|
3589
|
-
var
|
|
3591
|
+
var import_typeorm27 = require("typeorm");
|
|
3590
3592
|
|
|
3591
3593
|
// src/entities/invoice.entity.ts
|
|
3592
|
-
var
|
|
3594
|
+
var import_typeorm26 = require("typeorm");
|
|
3593
3595
|
|
|
3594
3596
|
// src/entities/timesheet-line.entity.ts
|
|
3595
3597
|
var import_typeorm24 = require("typeorm");
|
|
@@ -3797,6 +3799,62 @@ TimesheetLine = __decorateClass([
|
|
|
3797
3799
|
(0, import_typeorm24.Entity)("timesheet_lines")
|
|
3798
3800
|
], TimesheetLine);
|
|
3799
3801
|
|
|
3802
|
+
// src/entities/hiring.entity.ts
|
|
3803
|
+
var import_typeorm25 = require("typeorm");
|
|
3804
|
+
var HiredFreelancerNatureOfWorkEnum = /* @__PURE__ */ ((HiredFreelancerNatureOfWorkEnum2) => {
|
|
3805
|
+
HiredFreelancerNatureOfWorkEnum2["FTE"] = "FTE";
|
|
3806
|
+
HiredFreelancerNatureOfWorkEnum2["FREELANCE"] = "FREELANCE";
|
|
3807
|
+
return HiredFreelancerNatureOfWorkEnum2;
|
|
3808
|
+
})(HiredFreelancerNatureOfWorkEnum || {});
|
|
3809
|
+
var Hiring = class extends BaseEntity {
|
|
3810
|
+
};
|
|
3811
|
+
__decorateClass([
|
|
3812
|
+
(0, import_typeorm25.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3813
|
+
(0, import_typeorm25.Index)()
|
|
3814
|
+
], Hiring.prototype, "jobId", 2);
|
|
3815
|
+
__decorateClass([
|
|
3816
|
+
(0, import_typeorm25.ManyToOne)(() => Job, (job) => job.hirings),
|
|
3817
|
+
(0, import_typeorm25.JoinColumn)({ name: "job_id" })
|
|
3818
|
+
], Hiring.prototype, "job", 2);
|
|
3819
|
+
__decorateClass([
|
|
3820
|
+
(0, import_typeorm25.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3821
|
+
(0, import_typeorm25.Index)()
|
|
3822
|
+
], Hiring.prototype, "clientId", 2);
|
|
3823
|
+
__decorateClass([
|
|
3824
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.clientHirings),
|
|
3825
|
+
(0, import_typeorm25.JoinColumn)({ name: "client_id" })
|
|
3826
|
+
], Hiring.prototype, "client", 2);
|
|
3827
|
+
__decorateClass([
|
|
3828
|
+
(0, import_typeorm25.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3829
|
+
(0, import_typeorm25.Index)()
|
|
3830
|
+
], Hiring.prototype, "freelancerId", 2);
|
|
3831
|
+
__decorateClass([
|
|
3832
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.freelancerHirings),
|
|
3833
|
+
(0, import_typeorm25.JoinColumn)({ name: "freelancer_id" })
|
|
3834
|
+
], Hiring.prototype, "freelancer", 2);
|
|
3835
|
+
__decorateClass([
|
|
3836
|
+
(0, import_typeorm25.Column)({ name: "invoice_id", type: "integer", nullable: true }),
|
|
3837
|
+
(0, import_typeorm25.Index)()
|
|
3838
|
+
], Hiring.prototype, "invoiceId", 2);
|
|
3839
|
+
__decorateClass([
|
|
3840
|
+
(0, import_typeorm25.OneToOne)(() => Invoice, (invoice) => invoice.hiring),
|
|
3841
|
+
(0, import_typeorm25.JoinColumn)({ name: "invoice_id" })
|
|
3842
|
+
], Hiring.prototype, "invoice", 2);
|
|
3843
|
+
__decorateClass([
|
|
3844
|
+
(0, import_typeorm25.Column)({
|
|
3845
|
+
name: "freelancer_nature_of_work",
|
|
3846
|
+
type: "enum",
|
|
3847
|
+
enum: HiredFreelancerNatureOfWorkEnum,
|
|
3848
|
+
nullable: true
|
|
3849
|
+
})
|
|
3850
|
+
], Hiring.prototype, "freelancerNatureOfWork", 2);
|
|
3851
|
+
__decorateClass([
|
|
3852
|
+
(0, import_typeorm25.Column)({ name: "is_invoice_genrated", type: "boolean", default: false })
|
|
3853
|
+
], Hiring.prototype, "isInvoiceGenrated", 2);
|
|
3854
|
+
Hiring = __decorateClass([
|
|
3855
|
+
(0, import_typeorm25.Entity)("hirings")
|
|
3856
|
+
], Hiring);
|
|
3857
|
+
|
|
3800
3858
|
// src/entities/invoice.entity.ts
|
|
3801
3859
|
var InvoiceTypeEnum = /* @__PURE__ */ ((InvoiceTypeEnum2) => {
|
|
3802
3860
|
InvoiceTypeEnum2["WEEKLY"] = "WEEKLY";
|
|
@@ -3821,97 +3879,100 @@ var InvoicePaymentStatusEnum = /* @__PURE__ */ ((InvoicePaymentStatusEnum2) => {
|
|
|
3821
3879
|
var Invoice = class extends BaseEntity {
|
|
3822
3880
|
};
|
|
3823
3881
|
__decorateClass([
|
|
3824
|
-
(0,
|
|
3825
|
-
(0,
|
|
3882
|
+
(0, import_typeorm26.Column)({ name: "timesheet_line_id", type: "integer", nullable: true }),
|
|
3883
|
+
(0, import_typeorm26.Index)()
|
|
3826
3884
|
], Invoice.prototype, "timesheetLineId", 2);
|
|
3827
3885
|
__decorateClass([
|
|
3828
|
-
(0,
|
|
3829
|
-
(0,
|
|
3886
|
+
(0, import_typeorm26.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
|
|
3887
|
+
(0, import_typeorm26.JoinColumn)({ name: "timesheet_line_id" })
|
|
3830
3888
|
], Invoice.prototype, "timesheetLine", 2);
|
|
3831
3889
|
__decorateClass([
|
|
3832
|
-
(0,
|
|
3833
|
-
(0,
|
|
3890
|
+
(0, import_typeorm26.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3891
|
+
(0, import_typeorm26.Index)()
|
|
3834
3892
|
], Invoice.prototype, "jobId", 2);
|
|
3835
3893
|
__decorateClass([
|
|
3836
|
-
(0,
|
|
3837
|
-
(0,
|
|
3894
|
+
(0, import_typeorm26.ManyToOne)(() => Job, (job) => job.invoice),
|
|
3895
|
+
(0, import_typeorm26.JoinColumn)({ name: "job_id" })
|
|
3838
3896
|
], Invoice.prototype, "job", 2);
|
|
3839
3897
|
__decorateClass([
|
|
3840
|
-
(0,
|
|
3841
|
-
(0,
|
|
3898
|
+
(0, import_typeorm26.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3899
|
+
(0, import_typeorm26.Index)()
|
|
3842
3900
|
], Invoice.prototype, "clientId", 2);
|
|
3843
3901
|
__decorateClass([
|
|
3844
|
-
(0,
|
|
3845
|
-
(0,
|
|
3902
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.clientInvoice),
|
|
3903
|
+
(0, import_typeorm26.JoinColumn)({ name: "client_id" })
|
|
3846
3904
|
], Invoice.prototype, "client", 2);
|
|
3847
3905
|
__decorateClass([
|
|
3848
|
-
(0,
|
|
3849
|
-
(0,
|
|
3906
|
+
(0, import_typeorm26.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3907
|
+
(0, import_typeorm26.Index)()
|
|
3850
3908
|
], Invoice.prototype, "freelancerId", 2);
|
|
3851
3909
|
__decorateClass([
|
|
3852
|
-
(0,
|
|
3853
|
-
(0,
|
|
3910
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerInvoice),
|
|
3911
|
+
(0, import_typeorm26.JoinColumn)({ name: "freelancer_id" })
|
|
3854
3912
|
], Invoice.prototype, "freelancer", 2);
|
|
3855
3913
|
__decorateClass([
|
|
3856
|
-
(0,
|
|
3914
|
+
(0, import_typeorm26.Column)({ name: "invoice_unique_id", type: "varchar", nullable: true })
|
|
3857
3915
|
], Invoice.prototype, "invoiceUniqueId", 2);
|
|
3858
3916
|
__decorateClass([
|
|
3859
|
-
(0,
|
|
3917
|
+
(0, import_typeorm26.Column)({
|
|
3860
3918
|
name: "issued_at",
|
|
3861
3919
|
type: "date",
|
|
3862
3920
|
nullable: true
|
|
3863
3921
|
})
|
|
3864
3922
|
], Invoice.prototype, "issuedAt", 2);
|
|
3865
3923
|
__decorateClass([
|
|
3866
|
-
(0,
|
|
3924
|
+
(0, import_typeorm26.Column)({
|
|
3867
3925
|
name: "due_at",
|
|
3868
3926
|
type: "date",
|
|
3869
3927
|
nullable: true
|
|
3870
3928
|
})
|
|
3871
3929
|
], Invoice.prototype, "dueAt", 2);
|
|
3872
3930
|
__decorateClass([
|
|
3873
|
-
(0,
|
|
3931
|
+
(0, import_typeorm26.Column)({
|
|
3874
3932
|
name: "billing_cycle_from",
|
|
3875
3933
|
type: "date",
|
|
3876
3934
|
nullable: true
|
|
3877
3935
|
})
|
|
3878
3936
|
], Invoice.prototype, "billingCycleFrom", 2);
|
|
3879
3937
|
__decorateClass([
|
|
3880
|
-
(0,
|
|
3938
|
+
(0, import_typeorm26.Column)({
|
|
3881
3939
|
name: "billing_cycle_to",
|
|
3882
3940
|
type: "date",
|
|
3883
3941
|
nullable: true
|
|
3884
3942
|
})
|
|
3885
3943
|
], Invoice.prototype, "billingCycleTo", 2);
|
|
3886
3944
|
__decorateClass([
|
|
3887
|
-
(0,
|
|
3945
|
+
(0, import_typeorm26.Column)({ name: "billing_hours", type: "varchar", nullable: true })
|
|
3888
3946
|
], Invoice.prototype, "billingHours", 2);
|
|
3889
3947
|
__decorateClass([
|
|
3890
|
-
(0,
|
|
3948
|
+
(0, import_typeorm26.Column)({ name: "hourly_rate", type: "varchar", nullable: true })
|
|
3891
3949
|
], Invoice.prototype, "hourlyRate", 2);
|
|
3892
3950
|
__decorateClass([
|
|
3893
|
-
(0,
|
|
3951
|
+
(0, import_typeorm26.Column)({ name: "billing_amount", type: "varchar", nullable: true })
|
|
3894
3952
|
], Invoice.prototype, "billingAmount", 2);
|
|
3895
3953
|
__decorateClass([
|
|
3896
|
-
(0,
|
|
3954
|
+
(0, import_typeorm26.Column)({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
|
|
3897
3955
|
], Invoice.prototype, "invoiceType", 2);
|
|
3898
3956
|
__decorateClass([
|
|
3899
|
-
(0,
|
|
3957
|
+
(0, import_typeorm26.Column)({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
|
|
3900
3958
|
], Invoice.prototype, "status", 2);
|
|
3901
3959
|
__decorateClass([
|
|
3902
|
-
(0,
|
|
3960
|
+
(0, import_typeorm26.Column)({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
|
|
3903
3961
|
], Invoice.prototype, "paymentStatus", 2);
|
|
3904
3962
|
__decorateClass([
|
|
3905
|
-
(0,
|
|
3963
|
+
(0, import_typeorm26.Column)({ name: "client_invoice_url", type: "varchar", nullable: true })
|
|
3906
3964
|
], Invoice.prototype, "clientInvoiceUrl", 2);
|
|
3907
3965
|
__decorateClass([
|
|
3908
|
-
(0,
|
|
3966
|
+
(0, import_typeorm26.Column)({ name: "freelancer_invoice_url", type: "varchar", nullable: true })
|
|
3909
3967
|
], Invoice.prototype, "freelancerInvoiceUrl", 2);
|
|
3910
3968
|
__decorateClass([
|
|
3911
|
-
(0,
|
|
3969
|
+
(0, import_typeorm26.OneToOne)(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.invoice)
|
|
3912
3970
|
], Invoice.prototype, "escrowWalletTransaction", 2);
|
|
3971
|
+
__decorateClass([
|
|
3972
|
+
(0, import_typeorm26.OneToOne)(() => Hiring, (hiring) => hiring.invoice)
|
|
3973
|
+
], Invoice.prototype, "hiring", 2);
|
|
3913
3974
|
Invoice = __decorateClass([
|
|
3914
|
-
(0,
|
|
3975
|
+
(0, import_typeorm26.Entity)("invoices")
|
|
3915
3976
|
], Invoice);
|
|
3916
3977
|
|
|
3917
3978
|
// src/entities/escrow-wallet-transaction.entity.ts
|
|
@@ -3928,89 +3989,89 @@ var EscrowWalletTransactionForEnum = /* @__PURE__ */ ((EscrowWalletTransactionFo
|
|
|
3928
3989
|
var EscrowWalletTransaction = class extends BaseEntity {
|
|
3929
3990
|
};
|
|
3930
3991
|
__decorateClass([
|
|
3931
|
-
(0,
|
|
3932
|
-
(0,
|
|
3992
|
+
(0, import_typeorm27.Column)({ name: "escrow_wallet_id", type: "integer", nullable: true }),
|
|
3993
|
+
(0, import_typeorm27.Index)()
|
|
3933
3994
|
], EscrowWalletTransaction.prototype, "escrowWalletId", 2);
|
|
3934
3995
|
__decorateClass([
|
|
3935
|
-
(0,
|
|
3936
|
-
(0,
|
|
3996
|
+
(0, import_typeorm27.ManyToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.escrowWalletTransactions),
|
|
3997
|
+
(0, import_typeorm27.JoinColumn)({ name: "wallet_id" })
|
|
3937
3998
|
], EscrowWalletTransaction.prototype, "escrowWallet", 2);
|
|
3938
3999
|
__decorateClass([
|
|
3939
|
-
(0,
|
|
3940
|
-
(0,
|
|
4000
|
+
(0, import_typeorm27.Column)({ name: "invoice_id", type: "integer", nullable: true }),
|
|
4001
|
+
(0, import_typeorm27.Index)()
|
|
3941
4002
|
], EscrowWalletTransaction.prototype, "invoiceId", 2);
|
|
3942
4003
|
__decorateClass([
|
|
3943
|
-
(0,
|
|
3944
|
-
(0,
|
|
4004
|
+
(0, import_typeorm27.OneToOne)(() => Invoice, (invoice) => invoice.escrowWalletTransaction),
|
|
4005
|
+
(0, import_typeorm27.JoinColumn)({ name: "invoice_id" })
|
|
3945
4006
|
], EscrowWalletTransaction.prototype, "invoice", 2);
|
|
3946
4007
|
__decorateClass([
|
|
3947
|
-
(0,
|
|
4008
|
+
(0, import_typeorm27.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
3948
4009
|
], EscrowWalletTransaction.prototype, "amount", 2);
|
|
3949
4010
|
__decorateClass([
|
|
3950
|
-
(0,
|
|
4011
|
+
(0, import_typeorm27.Column)({ name: "escrow_type", type: "enum", enum: EscrowWalletTransactionTypeEnum })
|
|
3951
4012
|
], EscrowWalletTransaction.prototype, "escrowType", 2);
|
|
3952
4013
|
__decorateClass([
|
|
3953
|
-
(0,
|
|
4014
|
+
(0, import_typeorm27.Column)({ name: "description", type: "text", nullable: true })
|
|
3954
4015
|
], EscrowWalletTransaction.prototype, "description", 2);
|
|
3955
4016
|
__decorateClass([
|
|
3956
|
-
(0,
|
|
4017
|
+
(0, import_typeorm27.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
3957
4018
|
], EscrowWalletTransaction.prototype, "completedAt", 2);
|
|
3958
4019
|
__decorateClass([
|
|
3959
|
-
(0,
|
|
4020
|
+
(0, import_typeorm27.Column)({ name: "escrow_transaction_for", type: "enum", enum: EscrowWalletTransactionForEnum })
|
|
3960
4021
|
], EscrowWalletTransaction.prototype, "escrowTransactionFor", 2);
|
|
3961
4022
|
__decorateClass([
|
|
3962
|
-
(0,
|
|
4023
|
+
(0, import_typeorm27.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
3963
4024
|
], EscrowWalletTransaction.prototype, "metaData", 2);
|
|
3964
4025
|
EscrowWalletTransaction = __decorateClass([
|
|
3965
|
-
(0,
|
|
4026
|
+
(0, import_typeorm27.Entity)("escrow_wallet_transactions")
|
|
3966
4027
|
], EscrowWalletTransaction);
|
|
3967
4028
|
|
|
3968
4029
|
// src/entities/escrow-wallet.entity.ts
|
|
3969
4030
|
var EscrowWallet = class extends BaseEntity {
|
|
3970
4031
|
};
|
|
3971
4032
|
__decorateClass([
|
|
3972
|
-
(0,
|
|
3973
|
-
(0,
|
|
4033
|
+
(0, import_typeorm28.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4034
|
+
(0, import_typeorm28.Index)()
|
|
3974
4035
|
], EscrowWallet.prototype, "jobId", 2);
|
|
3975
4036
|
__decorateClass([
|
|
3976
|
-
(0,
|
|
3977
|
-
(0,
|
|
4037
|
+
(0, import_typeorm28.ManyToOne)(() => Job, (job) => job.escrowWallets),
|
|
4038
|
+
(0, import_typeorm28.JoinColumn)({ name: "job_id" })
|
|
3978
4039
|
], EscrowWallet.prototype, "job", 2);
|
|
3979
4040
|
__decorateClass([
|
|
3980
|
-
(0,
|
|
3981
|
-
(0,
|
|
4041
|
+
(0, import_typeorm28.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4042
|
+
(0, import_typeorm28.Index)()
|
|
3982
4043
|
], EscrowWallet.prototype, "clientId", 2);
|
|
3983
4044
|
__decorateClass([
|
|
3984
|
-
(0,
|
|
3985
|
-
(0,
|
|
4045
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.clientEscrowWallets),
|
|
4046
|
+
(0, import_typeorm28.JoinColumn)({ name: "client_id" })
|
|
3986
4047
|
], EscrowWallet.prototype, "client", 2);
|
|
3987
4048
|
__decorateClass([
|
|
3988
|
-
(0,
|
|
3989
|
-
(0,
|
|
4049
|
+
(0, import_typeorm28.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4050
|
+
(0, import_typeorm28.Index)()
|
|
3990
4051
|
], EscrowWallet.prototype, "freelancerId", 2);
|
|
3991
4052
|
__decorateClass([
|
|
3992
|
-
(0,
|
|
3993
|
-
(0,
|
|
4053
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.freelancerEscrowWallets),
|
|
4054
|
+
(0, import_typeorm28.JoinColumn)({ name: "freelancer_id" })
|
|
3994
4055
|
], EscrowWallet.prototype, "freelancer", 2);
|
|
3995
4056
|
__decorateClass([
|
|
3996
|
-
(0,
|
|
3997
|
-
(0,
|
|
4057
|
+
(0, import_typeorm28.Column)({ name: "contract_id", type: "integer", nullable: true }),
|
|
4058
|
+
(0, import_typeorm28.Index)()
|
|
3998
4059
|
], EscrowWallet.prototype, "contractId", 2);
|
|
3999
4060
|
__decorateClass([
|
|
4000
|
-
(0,
|
|
4001
|
-
(0,
|
|
4061
|
+
(0, import_typeorm28.OneToOne)(() => Contract, (contract) => contract.escrowWallet),
|
|
4062
|
+
(0, import_typeorm28.JoinColumn)({ name: "contract_id" })
|
|
4002
4063
|
], EscrowWallet.prototype, "contract", 2);
|
|
4003
4064
|
__decorateClass([
|
|
4004
|
-
(0,
|
|
4065
|
+
(0, import_typeorm28.Column)({ name: "wallet_balance", type: "varchar", default: "0" })
|
|
4005
4066
|
], EscrowWallet.prototype, "escrowBalance", 2);
|
|
4006
4067
|
__decorateClass([
|
|
4007
|
-
(0,
|
|
4068
|
+
(0, import_typeorm28.Column)({ name: "metadata", type: "jsonb", nullable: true })
|
|
4008
4069
|
], EscrowWallet.prototype, "metadata", 2);
|
|
4009
4070
|
__decorateClass([
|
|
4010
|
-
(0,
|
|
4071
|
+
(0, import_typeorm28.OneToMany)(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.escrowWallet)
|
|
4011
4072
|
], EscrowWallet.prototype, "escrowWalletTransactions", 2);
|
|
4012
4073
|
EscrowWallet = __decorateClass([
|
|
4013
|
-
(0,
|
|
4074
|
+
(0, import_typeorm28.Entity)("escrow_wallets")
|
|
4014
4075
|
], EscrowWallet);
|
|
4015
4076
|
|
|
4016
4077
|
// src/entities/contract.entity.ts
|
|
@@ -4035,37 +4096,37 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
|
4035
4096
|
var Contract = class extends BaseEntity {
|
|
4036
4097
|
};
|
|
4037
4098
|
__decorateClass([
|
|
4038
|
-
(0,
|
|
4099
|
+
(0, import_typeorm29.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
4039
4100
|
], Contract.prototype, "contractUniqueId", 2);
|
|
4040
4101
|
__decorateClass([
|
|
4041
|
-
(0,
|
|
4042
|
-
(0,
|
|
4102
|
+
(0, import_typeorm29.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4103
|
+
(0, import_typeorm29.Index)()
|
|
4043
4104
|
], Contract.prototype, "jobId", 2);
|
|
4044
4105
|
__decorateClass([
|
|
4045
|
-
(0,
|
|
4046
|
-
(0,
|
|
4106
|
+
(0, import_typeorm29.ManyToOne)(() => Job, (job) => job.contracts),
|
|
4107
|
+
(0, import_typeorm29.JoinColumn)({ name: "job_id" })
|
|
4047
4108
|
], Contract.prototype, "job", 2);
|
|
4048
4109
|
__decorateClass([
|
|
4049
|
-
(0,
|
|
4050
|
-
(0,
|
|
4110
|
+
(0, import_typeorm29.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4111
|
+
(0, import_typeorm29.Index)()
|
|
4051
4112
|
], Contract.prototype, "clientId", 2);
|
|
4052
4113
|
__decorateClass([
|
|
4053
|
-
(0,
|
|
4054
|
-
(0,
|
|
4114
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.clientContracts),
|
|
4115
|
+
(0, import_typeorm29.JoinColumn)({ name: "client_id" })
|
|
4055
4116
|
], Contract.prototype, "client", 2);
|
|
4056
4117
|
__decorateClass([
|
|
4057
|
-
(0,
|
|
4058
|
-
(0,
|
|
4118
|
+
(0, import_typeorm29.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4119
|
+
(0, import_typeorm29.Index)()
|
|
4059
4120
|
], Contract.prototype, "freelancerId", 2);
|
|
4060
4121
|
__decorateClass([
|
|
4061
|
-
(0,
|
|
4062
|
-
(0,
|
|
4122
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.freelancerContracts),
|
|
4123
|
+
(0, import_typeorm29.JoinColumn)({ name: "freelancer_id" })
|
|
4063
4124
|
], Contract.prototype, "freelancer", 2);
|
|
4064
4125
|
__decorateClass([
|
|
4065
|
-
(0,
|
|
4126
|
+
(0, import_typeorm29.Column)({ name: "duration", type: "integer", nullable: true })
|
|
4066
4127
|
], Contract.prototype, "duration", 2);
|
|
4067
4128
|
__decorateClass([
|
|
4068
|
-
(0,
|
|
4129
|
+
(0, import_typeorm29.Column)({
|
|
4069
4130
|
name: "status",
|
|
4070
4131
|
type: "enum",
|
|
4071
4132
|
enum: ContractStatusEnum,
|
|
@@ -4073,7 +4134,7 @@ __decorateClass([
|
|
|
4073
4134
|
})
|
|
4074
4135
|
], Contract.prototype, "status", 2);
|
|
4075
4136
|
__decorateClass([
|
|
4076
|
-
(0,
|
|
4137
|
+
(0, import_typeorm29.Column)({
|
|
4077
4138
|
name: "type",
|
|
4078
4139
|
type: "enum",
|
|
4079
4140
|
enum: ContractTypeEnum,
|
|
@@ -4081,10 +4142,10 @@ __decorateClass([
|
|
|
4081
4142
|
})
|
|
4082
4143
|
], Contract.prototype, "type", 2);
|
|
4083
4144
|
__decorateClass([
|
|
4084
|
-
(0,
|
|
4145
|
+
(0, import_typeorm29.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
4085
4146
|
], Contract.prototype, "invoicingCycle", 2);
|
|
4086
4147
|
__decorateClass([
|
|
4087
|
-
(0,
|
|
4148
|
+
(0, import_typeorm29.Column)({
|
|
4088
4149
|
name: "escrow_deposite_amount",
|
|
4089
4150
|
type: "decimal",
|
|
4090
4151
|
precision: 10,
|
|
@@ -4093,80 +4154,80 @@ __decorateClass([
|
|
|
4093
4154
|
})
|
|
4094
4155
|
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
4095
4156
|
__decorateClass([
|
|
4096
|
-
(0,
|
|
4157
|
+
(0, import_typeorm29.Column)({
|
|
4097
4158
|
name: "start_date",
|
|
4098
4159
|
type: "timestamp with time zone",
|
|
4099
4160
|
nullable: true
|
|
4100
4161
|
})
|
|
4101
4162
|
], Contract.prototype, "startDate", 2);
|
|
4102
4163
|
__decorateClass([
|
|
4103
|
-
(0,
|
|
4164
|
+
(0, import_typeorm29.Column)({
|
|
4104
4165
|
name: "end_date",
|
|
4105
4166
|
type: "timestamp with time zone",
|
|
4106
4167
|
nullable: true
|
|
4107
4168
|
})
|
|
4108
4169
|
], Contract.prototype, "endDate", 2);
|
|
4109
4170
|
__decorateClass([
|
|
4110
|
-
(0,
|
|
4171
|
+
(0, import_typeorm29.Column)({ name: "original_document_url", type: "varchar", nullable: true })
|
|
4111
4172
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
4112
4173
|
__decorateClass([
|
|
4113
|
-
(0,
|
|
4174
|
+
(0, import_typeorm29.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
4114
4175
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
4115
4176
|
__decorateClass([
|
|
4116
|
-
(0,
|
|
4177
|
+
(0, import_typeorm29.Column)({
|
|
4117
4178
|
name: "client_signed_at",
|
|
4118
4179
|
type: "timestamp with time zone",
|
|
4119
4180
|
nullable: true
|
|
4120
4181
|
})
|
|
4121
4182
|
], Contract.prototype, "clientSignedAt", 2);
|
|
4122
4183
|
__decorateClass([
|
|
4123
|
-
(0,
|
|
4184
|
+
(0, import_typeorm29.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
4124
4185
|
], Contract.prototype, "freelancerViewed", 2);
|
|
4125
4186
|
__decorateClass([
|
|
4126
|
-
(0,
|
|
4187
|
+
(0, import_typeorm29.Column)({
|
|
4127
4188
|
name: "freelancer_viewed_at",
|
|
4128
4189
|
type: "timestamp with time zone",
|
|
4129
4190
|
nullable: true
|
|
4130
4191
|
})
|
|
4131
4192
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
4132
4193
|
__decorateClass([
|
|
4133
|
-
(0,
|
|
4194
|
+
(0, import_typeorm29.Column)({
|
|
4134
4195
|
name: "freelancer_signed_at",
|
|
4135
4196
|
type: "timestamp with time zone",
|
|
4136
4197
|
nullable: true
|
|
4137
4198
|
})
|
|
4138
4199
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
4139
4200
|
__decorateClass([
|
|
4140
|
-
(0,
|
|
4201
|
+
(0, import_typeorm29.Column)({
|
|
4141
4202
|
name: "rejectd_at",
|
|
4142
4203
|
type: "timestamp with time zone",
|
|
4143
4204
|
nullable: true
|
|
4144
4205
|
})
|
|
4145
4206
|
], Contract.prototype, "rejectedAt", 2);
|
|
4146
4207
|
__decorateClass([
|
|
4147
|
-
(0,
|
|
4208
|
+
(0, import_typeorm29.Column)({ name: "reject_reason", type: "varchar", nullable: true })
|
|
4148
4209
|
], Contract.prototype, "rejectReason", 2);
|
|
4149
4210
|
__decorateClass([
|
|
4150
|
-
(0,
|
|
4211
|
+
(0, import_typeorm29.Column)({ name: "resend_count", type: "integer", default: 0 })
|
|
4151
4212
|
], Contract.prototype, "resendCount", 2);
|
|
4152
4213
|
__decorateClass([
|
|
4153
|
-
(0,
|
|
4214
|
+
(0, import_typeorm29.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
4154
4215
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
4155
4216
|
__decorateClass([
|
|
4156
|
-
(0,
|
|
4217
|
+
(0, import_typeorm29.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
4157
4218
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
4158
4219
|
__decorateClass([
|
|
4159
|
-
(0,
|
|
4220
|
+
(0, import_typeorm29.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
4160
4221
|
], Contract.prototype, "signaturePositions", 2);
|
|
4161
4222
|
__decorateClass([
|
|
4162
|
-
(0,
|
|
4223
|
+
(0, import_typeorm29.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
4163
4224
|
], Contract.prototype, "escrowWallet", 2);
|
|
4164
4225
|
Contract = __decorateClass([
|
|
4165
|
-
(0,
|
|
4226
|
+
(0, import_typeorm29.Entity)("contracts")
|
|
4166
4227
|
], Contract);
|
|
4167
4228
|
|
|
4168
4229
|
// src/entities/timesheets.entity.ts
|
|
4169
|
-
var
|
|
4230
|
+
var import_typeorm30 = require("typeorm");
|
|
4170
4231
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
4171
4232
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
4172
4233
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -4179,136 +4240,136 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
4179
4240
|
var Timesheet = class extends BaseEntity {
|
|
4180
4241
|
};
|
|
4181
4242
|
__decorateClass([
|
|
4182
|
-
(0,
|
|
4183
|
-
(0,
|
|
4243
|
+
(0, import_typeorm30.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4244
|
+
(0, import_typeorm30.Index)()
|
|
4184
4245
|
], Timesheet.prototype, "jobId", 2);
|
|
4185
4246
|
__decorateClass([
|
|
4186
|
-
(0,
|
|
4187
|
-
(0,
|
|
4247
|
+
(0, import_typeorm30.ManyToOne)(() => Job, (job) => job.timesheets),
|
|
4248
|
+
(0, import_typeorm30.JoinColumn)({ name: "job_id" })
|
|
4188
4249
|
], Timesheet.prototype, "job", 2);
|
|
4189
4250
|
__decorateClass([
|
|
4190
|
-
(0,
|
|
4191
|
-
(0,
|
|
4251
|
+
(0, import_typeorm30.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4252
|
+
(0, import_typeorm30.Index)()
|
|
4192
4253
|
], Timesheet.prototype, "clientId", 2);
|
|
4193
4254
|
__decorateClass([
|
|
4194
|
-
(0,
|
|
4195
|
-
(0,
|
|
4255
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.clientTimesheets),
|
|
4256
|
+
(0, import_typeorm30.JoinColumn)({ name: "client_id" })
|
|
4196
4257
|
], Timesheet.prototype, "client", 2);
|
|
4197
4258
|
__decorateClass([
|
|
4198
|
-
(0,
|
|
4199
|
-
(0,
|
|
4259
|
+
(0, import_typeorm30.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4260
|
+
(0, import_typeorm30.Index)()
|
|
4200
4261
|
], Timesheet.prototype, "freelancerId", 2);
|
|
4201
4262
|
__decorateClass([
|
|
4202
|
-
(0,
|
|
4203
|
-
(0,
|
|
4263
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
|
|
4264
|
+
(0, import_typeorm30.JoinColumn)({ name: "freelancer_id" })
|
|
4204
4265
|
], Timesheet.prototype, "freelancer", 2);
|
|
4205
4266
|
__decorateClass([
|
|
4206
|
-
(0,
|
|
4267
|
+
(0, import_typeorm30.Column)({
|
|
4207
4268
|
name: "start_date",
|
|
4208
4269
|
type: "date",
|
|
4209
4270
|
nullable: true
|
|
4210
4271
|
})
|
|
4211
4272
|
], Timesheet.prototype, "startDate", 2);
|
|
4212
4273
|
__decorateClass([
|
|
4213
|
-
(0,
|
|
4274
|
+
(0, import_typeorm30.Column)({
|
|
4214
4275
|
name: "end_date",
|
|
4215
4276
|
type: "date",
|
|
4216
4277
|
nullable: true
|
|
4217
4278
|
})
|
|
4218
4279
|
], Timesheet.prototype, "endDate", 2);
|
|
4219
4280
|
__decorateClass([
|
|
4220
|
-
(0,
|
|
4281
|
+
(0, import_typeorm30.Column)({ name: "start_time", type: "varchar", nullable: true })
|
|
4221
4282
|
], Timesheet.prototype, "startTime", 2);
|
|
4222
4283
|
__decorateClass([
|
|
4223
|
-
(0,
|
|
4284
|
+
(0, import_typeorm30.Column)({ name: "end_time", type: "varchar", nullable: true })
|
|
4224
4285
|
], Timesheet.prototype, "endTime", 2);
|
|
4225
4286
|
__decorateClass([
|
|
4226
|
-
(0,
|
|
4287
|
+
(0, import_typeorm30.Column)({ name: "worked_hours", type: "varchar", nullable: true })
|
|
4227
4288
|
], Timesheet.prototype, "workedHours", 2);
|
|
4228
4289
|
__decorateClass([
|
|
4229
|
-
(0,
|
|
4290
|
+
(0, import_typeorm30.Column)({ name: "task_id", type: "integer", nullable: true })
|
|
4230
4291
|
], Timesheet.prototype, "taskId", 2);
|
|
4231
4292
|
__decorateClass([
|
|
4232
|
-
(0,
|
|
4293
|
+
(0, import_typeorm30.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
4233
4294
|
], Timesheet.prototype, "taskName", 2);
|
|
4234
4295
|
__decorateClass([
|
|
4235
|
-
(0,
|
|
4296
|
+
(0, import_typeorm30.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4236
4297
|
], Timesheet.prototype, "description", 2);
|
|
4237
4298
|
__decorateClass([
|
|
4238
|
-
(0,
|
|
4299
|
+
(0, import_typeorm30.Column)({ name: "week_start_date", type: "date", nullable: true })
|
|
4239
4300
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
4240
4301
|
__decorateClass([
|
|
4241
|
-
(0,
|
|
4302
|
+
(0, import_typeorm30.Column)({ name: "week_end_date", type: "date", nullable: true })
|
|
4242
4303
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
4243
4304
|
__decorateClass([
|
|
4244
|
-
(0,
|
|
4305
|
+
(0, import_typeorm30.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
4245
4306
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
4246
4307
|
__decorateClass([
|
|
4247
|
-
(0,
|
|
4308
|
+
(0, import_typeorm30.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
4248
4309
|
], Timesheet.prototype, "submittedAt", 2);
|
|
4249
4310
|
__decorateClass([
|
|
4250
|
-
(0,
|
|
4311
|
+
(0, import_typeorm30.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
4251
4312
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
4252
4313
|
__decorateClass([
|
|
4253
|
-
(0,
|
|
4314
|
+
(0, import_typeorm30.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
4254
4315
|
], Timesheet.prototype, "approvedAt", 2);
|
|
4255
4316
|
__decorateClass([
|
|
4256
|
-
(0,
|
|
4317
|
+
(0, import_typeorm30.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
4257
4318
|
], Timesheet.prototype, "status", 2);
|
|
4258
4319
|
__decorateClass([
|
|
4259
|
-
(0,
|
|
4320
|
+
(0, import_typeorm30.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
4260
4321
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
4261
4322
|
Timesheet = __decorateClass([
|
|
4262
|
-
(0,
|
|
4323
|
+
(0, import_typeorm30.Entity)("timesheets")
|
|
4263
4324
|
], Timesheet);
|
|
4264
4325
|
|
|
4265
4326
|
// src/entities/job-location.entity.ts
|
|
4266
|
-
var
|
|
4327
|
+
var import_typeorm31 = require("typeorm");
|
|
4267
4328
|
var JobLocation = class extends BaseEntity {
|
|
4268
4329
|
};
|
|
4269
4330
|
__decorateClass([
|
|
4270
|
-
(0,
|
|
4271
|
-
(0,
|
|
4331
|
+
(0, import_typeorm31.Column)({ name: "job_id", type: "integer", nullable: false }),
|
|
4332
|
+
(0, import_typeorm31.Index)()
|
|
4272
4333
|
], JobLocation.prototype, "jobId", 2);
|
|
4273
4334
|
__decorateClass([
|
|
4274
|
-
(0,
|
|
4275
|
-
(0,
|
|
4335
|
+
(0, import_typeorm31.ManyToOne)(() => Job, (job) => job.jobLocations),
|
|
4336
|
+
(0, import_typeorm31.JoinColumn)({ name: "job_id" })
|
|
4276
4337
|
], JobLocation.prototype, "job", 2);
|
|
4277
4338
|
__decorateClass([
|
|
4278
|
-
(0,
|
|
4339
|
+
(0, import_typeorm31.Column)({ name: "country_id", type: "int", nullable: false })
|
|
4279
4340
|
], JobLocation.prototype, "countryId", 2);
|
|
4280
4341
|
__decorateClass([
|
|
4281
|
-
(0,
|
|
4342
|
+
(0, import_typeorm31.Column)({ name: "country_name", type: "varchar", nullable: true })
|
|
4282
4343
|
], JobLocation.prototype, "countryName", 2);
|
|
4283
4344
|
__decorateClass([
|
|
4284
|
-
(0,
|
|
4285
|
-
(0,
|
|
4345
|
+
(0, import_typeorm31.ManyToOne)(() => Country),
|
|
4346
|
+
(0, import_typeorm31.JoinColumn)({ name: "country_id" })
|
|
4286
4347
|
], JobLocation.prototype, "country", 2);
|
|
4287
4348
|
__decorateClass([
|
|
4288
|
-
(0,
|
|
4349
|
+
(0, import_typeorm31.Column)({ name: "state_id", type: "int", nullable: false })
|
|
4289
4350
|
], JobLocation.prototype, "stateId", 2);
|
|
4290
4351
|
__decorateClass([
|
|
4291
|
-
(0,
|
|
4352
|
+
(0, import_typeorm31.Column)({ name: "state_name", type: "varchar", nullable: true })
|
|
4292
4353
|
], JobLocation.prototype, "stateName", 2);
|
|
4293
4354
|
__decorateClass([
|
|
4294
|
-
(0,
|
|
4295
|
-
(0,
|
|
4355
|
+
(0, import_typeorm31.ManyToOne)(() => State),
|
|
4356
|
+
(0, import_typeorm31.JoinColumn)({ name: "state_id" })
|
|
4296
4357
|
], JobLocation.prototype, "state", 2);
|
|
4297
4358
|
__decorateClass([
|
|
4298
|
-
(0,
|
|
4359
|
+
(0, import_typeorm31.Column)({ name: "city_id", type: "int", nullable: false })
|
|
4299
4360
|
], JobLocation.prototype, "cityId", 2);
|
|
4300
4361
|
__decorateClass([
|
|
4301
|
-
(0,
|
|
4362
|
+
(0, import_typeorm31.Column)({ name: "city_name", type: "varchar", nullable: true })
|
|
4302
4363
|
], JobLocation.prototype, "cityName", 2);
|
|
4303
4364
|
__decorateClass([
|
|
4304
|
-
(0,
|
|
4305
|
-
(0,
|
|
4365
|
+
(0, import_typeorm31.ManyToOne)(() => City),
|
|
4366
|
+
(0, import_typeorm31.JoinColumn)({ name: "city_id" })
|
|
4306
4367
|
], JobLocation.prototype, "city", 2);
|
|
4307
4368
|
__decorateClass([
|
|
4308
|
-
(0,
|
|
4369
|
+
(0, import_typeorm31.Column)({ name: "location_wise_openings", type: "int", default: 0 })
|
|
4309
4370
|
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
4310
4371
|
JobLocation = __decorateClass([
|
|
4311
|
-
(0,
|
|
4372
|
+
(0, import_typeorm31.Entity)("job_locations")
|
|
4312
4373
|
], JobLocation);
|
|
4313
4374
|
|
|
4314
4375
|
// src/entities/job.entity.ts
|
|
@@ -4357,55 +4418,55 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4357
4418
|
var Job = class extends BaseEntity {
|
|
4358
4419
|
};
|
|
4359
4420
|
__decorateClass([
|
|
4360
|
-
(0,
|
|
4421
|
+
(0, import_typeorm32.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4361
4422
|
], Job.prototype, "jobId", 2);
|
|
4362
4423
|
// individual index to find jobs by user
|
|
4363
4424
|
__decorateClass([
|
|
4364
|
-
(0,
|
|
4365
|
-
(0,
|
|
4425
|
+
(0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4426
|
+
(0, import_typeorm32.Index)()
|
|
4366
4427
|
], Job.prototype, "userId", 2);
|
|
4367
4428
|
__decorateClass([
|
|
4368
|
-
(0,
|
|
4369
|
-
(0,
|
|
4429
|
+
(0, import_typeorm32.ManyToOne)(() => User, (user) => user.jobs),
|
|
4430
|
+
(0, import_typeorm32.JoinColumn)({ name: "user_id" })
|
|
4370
4431
|
], Job.prototype, "user", 2);
|
|
4371
4432
|
__decorateClass([
|
|
4372
|
-
(0,
|
|
4433
|
+
(0, import_typeorm32.Column)({ name: "country_id", type: "int", nullable: true })
|
|
4373
4434
|
], Job.prototype, "countryId", 2);
|
|
4374
4435
|
__decorateClass([
|
|
4375
|
-
(0,
|
|
4376
|
-
(0,
|
|
4436
|
+
(0, import_typeorm32.ManyToOne)(() => Country),
|
|
4437
|
+
(0, import_typeorm32.JoinColumn)({ name: "country_id" })
|
|
4377
4438
|
], Job.prototype, "country", 2);
|
|
4378
4439
|
__decorateClass([
|
|
4379
|
-
(0,
|
|
4440
|
+
(0, import_typeorm32.Column)({ name: "state_id", type: "int", nullable: true })
|
|
4380
4441
|
], Job.prototype, "stateId", 2);
|
|
4381
4442
|
__decorateClass([
|
|
4382
|
-
(0,
|
|
4383
|
-
(0,
|
|
4443
|
+
(0, import_typeorm32.ManyToOne)(() => State),
|
|
4444
|
+
(0, import_typeorm32.JoinColumn)({ name: "state_id" })
|
|
4384
4445
|
], Job.prototype, "state", 2);
|
|
4385
4446
|
__decorateClass([
|
|
4386
|
-
(0,
|
|
4447
|
+
(0, import_typeorm32.Column)({ name: "city_id", type: "int", nullable: true })
|
|
4387
4448
|
], Job.prototype, "cityId", 2);
|
|
4388
4449
|
__decorateClass([
|
|
4389
|
-
(0,
|
|
4390
|
-
(0,
|
|
4450
|
+
(0, import_typeorm32.ManyToOne)(() => City),
|
|
4451
|
+
(0, import_typeorm32.JoinColumn)({ name: "city_id" })
|
|
4391
4452
|
], Job.prototype, "city", 2);
|
|
4392
4453
|
__decorateClass([
|
|
4393
|
-
(0,
|
|
4454
|
+
(0, import_typeorm32.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
4394
4455
|
], Job.prototype, "jobRole", 2);
|
|
4395
4456
|
__decorateClass([
|
|
4396
|
-
(0,
|
|
4457
|
+
(0, import_typeorm32.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4397
4458
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4398
4459
|
__decorateClass([
|
|
4399
|
-
(0,
|
|
4460
|
+
(0, import_typeorm32.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4400
4461
|
], Job.prototype, "projectName", 2);
|
|
4401
4462
|
__decorateClass([
|
|
4402
|
-
(0,
|
|
4463
|
+
(0, import_typeorm32.Column)({ name: "note", type: "varchar", nullable: true })
|
|
4403
4464
|
], Job.prototype, "note", 2);
|
|
4404
4465
|
__decorateClass([
|
|
4405
|
-
(0,
|
|
4466
|
+
(0, import_typeorm32.Column)({ name: "openings", type: "integer", default: 0 })
|
|
4406
4467
|
], Job.prototype, "openings", 2);
|
|
4407
4468
|
__decorateClass([
|
|
4408
|
-
(0,
|
|
4469
|
+
(0, import_typeorm32.Column)({
|
|
4409
4470
|
name: "location",
|
|
4410
4471
|
type: "enum",
|
|
4411
4472
|
enum: JobLocationEnum2,
|
|
@@ -4413,7 +4474,7 @@ __decorateClass([
|
|
|
4413
4474
|
})
|
|
4414
4475
|
], Job.prototype, "location", 2);
|
|
4415
4476
|
__decorateClass([
|
|
4416
|
-
(0,
|
|
4477
|
+
(0, import_typeorm32.Column)({
|
|
4417
4478
|
name: "type_of_employment",
|
|
4418
4479
|
type: "enum",
|
|
4419
4480
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4421,10 +4482,10 @@ __decorateClass([
|
|
|
4421
4482
|
})
|
|
4422
4483
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4423
4484
|
__decorateClass([
|
|
4424
|
-
(0,
|
|
4485
|
+
(0, import_typeorm32.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4425
4486
|
], Job.prototype, "academicQualification", 2);
|
|
4426
4487
|
__decorateClass([
|
|
4427
|
-
(0,
|
|
4488
|
+
(0, import_typeorm32.Column)({
|
|
4428
4489
|
name: "type_of_experience",
|
|
4429
4490
|
type: "enum",
|
|
4430
4491
|
enum: typeOfExperienceEnum,
|
|
@@ -4432,22 +4493,22 @@ __decorateClass([
|
|
|
4432
4493
|
})
|
|
4433
4494
|
], Job.prototype, "typeOfExperience", 2);
|
|
4434
4495
|
__decorateClass([
|
|
4435
|
-
(0,
|
|
4496
|
+
(0, import_typeorm32.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4436
4497
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4437
4498
|
__decorateClass([
|
|
4438
|
-
(0,
|
|
4499
|
+
(0, import_typeorm32.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4439
4500
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4440
4501
|
__decorateClass([
|
|
4441
|
-
(0,
|
|
4502
|
+
(0, import_typeorm32.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4442
4503
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4443
4504
|
__decorateClass([
|
|
4444
|
-
(0,
|
|
4505
|
+
(0, import_typeorm32.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
4445
4506
|
], Job.prototype, "businessIndustry", 2);
|
|
4446
4507
|
__decorateClass([
|
|
4447
|
-
(0,
|
|
4508
|
+
(0, import_typeorm32.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
4448
4509
|
], Job.prototype, "currency", 2);
|
|
4449
4510
|
__decorateClass([
|
|
4450
|
-
(0,
|
|
4511
|
+
(0, import_typeorm32.Column)({
|
|
4451
4512
|
name: "expected_salary_from",
|
|
4452
4513
|
type: "decimal",
|
|
4453
4514
|
precision: 10,
|
|
@@ -4456,14 +4517,14 @@ __decorateClass([
|
|
|
4456
4517
|
})
|
|
4457
4518
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4458
4519
|
__decorateClass([
|
|
4459
|
-
(0,
|
|
4520
|
+
(0, import_typeorm32.Column)({
|
|
4460
4521
|
name: "hide_expected_salary_from",
|
|
4461
4522
|
type: "boolean",
|
|
4462
4523
|
default: false
|
|
4463
4524
|
})
|
|
4464
4525
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4465
4526
|
__decorateClass([
|
|
4466
|
-
(0,
|
|
4527
|
+
(0, import_typeorm32.Column)({
|
|
4467
4528
|
name: "expected_salary_to",
|
|
4468
4529
|
type: "decimal",
|
|
4469
4530
|
precision: 10,
|
|
@@ -4472,32 +4533,32 @@ __decorateClass([
|
|
|
4472
4533
|
})
|
|
4473
4534
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4474
4535
|
__decorateClass([
|
|
4475
|
-
(0,
|
|
4536
|
+
(0, import_typeorm32.Column)({
|
|
4476
4537
|
name: "hide_expected_salary_to",
|
|
4477
4538
|
type: "boolean",
|
|
4478
4539
|
default: false
|
|
4479
4540
|
})
|
|
4480
4541
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4481
4542
|
__decorateClass([
|
|
4482
|
-
(0,
|
|
4543
|
+
(0, import_typeorm32.Column)({ name: "years", type: "varchar", nullable: true })
|
|
4483
4544
|
], Job.prototype, "years", 2);
|
|
4484
4545
|
__decorateClass([
|
|
4485
|
-
(0,
|
|
4546
|
+
(0, import_typeorm32.Column)({ name: "months", type: "varchar", nullable: true })
|
|
4486
4547
|
], Job.prototype, "months", 2);
|
|
4487
4548
|
__decorateClass([
|
|
4488
|
-
(0,
|
|
4549
|
+
(0, import_typeorm32.Column)({ name: "weeks", type: "varchar", nullable: true })
|
|
4489
4550
|
], Job.prototype, "weeks", 2);
|
|
4490
4551
|
__decorateClass([
|
|
4491
|
-
(0,
|
|
4552
|
+
(0, import_typeorm32.Column)({ name: "days", type: "varchar", nullable: true })
|
|
4492
4553
|
], Job.prototype, "days", 2);
|
|
4493
4554
|
__decorateClass([
|
|
4494
|
-
(0,
|
|
4555
|
+
(0, import_typeorm32.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4495
4556
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4496
4557
|
__decorateClass([
|
|
4497
|
-
(0,
|
|
4558
|
+
(0, import_typeorm32.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4498
4559
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4499
4560
|
__decorateClass([
|
|
4500
|
-
(0,
|
|
4561
|
+
(0, import_typeorm32.Column)({
|
|
4501
4562
|
name: "duration_type",
|
|
4502
4563
|
type: "enum",
|
|
4503
4564
|
enum: DurationTypeEnum,
|
|
@@ -4505,10 +4566,10 @@ __decorateClass([
|
|
|
4505
4566
|
})
|
|
4506
4567
|
], Job.prototype, "durationType", 2);
|
|
4507
4568
|
__decorateClass([
|
|
4508
|
-
(0,
|
|
4569
|
+
(0, import_typeorm32.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
4509
4570
|
], Job.prototype, "duration", 2);
|
|
4510
4571
|
__decorateClass([
|
|
4511
|
-
(0,
|
|
4572
|
+
(0, import_typeorm32.Column)({
|
|
4512
4573
|
name: "number_of_hours",
|
|
4513
4574
|
type: "decimal",
|
|
4514
4575
|
precision: 4,
|
|
@@ -4517,13 +4578,13 @@ __decorateClass([
|
|
|
4517
4578
|
})
|
|
4518
4579
|
], Job.prototype, "numberOfHours", 2);
|
|
4519
4580
|
__decorateClass([
|
|
4520
|
-
(0,
|
|
4581
|
+
(0, import_typeorm32.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4521
4582
|
], Job.prototype, "description", 2);
|
|
4522
4583
|
__decorateClass([
|
|
4523
|
-
(0,
|
|
4584
|
+
(0, import_typeorm32.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4524
4585
|
], Job.prototype, "additionalComment", 2);
|
|
4525
4586
|
__decorateClass([
|
|
4526
|
-
(0,
|
|
4587
|
+
(0, import_typeorm32.Column)({
|
|
4527
4588
|
name: "onboarding_tat",
|
|
4528
4589
|
type: "varchar",
|
|
4529
4590
|
length: 50,
|
|
@@ -4531,14 +4592,14 @@ __decorateClass([
|
|
|
4531
4592
|
})
|
|
4532
4593
|
], Job.prototype, "onboardingTat", 2);
|
|
4533
4594
|
__decorateClass([
|
|
4534
|
-
(0,
|
|
4595
|
+
(0, import_typeorm32.Column)({
|
|
4535
4596
|
name: "candidate_communication_skills",
|
|
4536
4597
|
type: "varchar",
|
|
4537
4598
|
nullable: true
|
|
4538
4599
|
})
|
|
4539
4600
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4540
4601
|
__decorateClass([
|
|
4541
|
-
(0,
|
|
4602
|
+
(0, import_typeorm32.Column)({
|
|
4542
4603
|
name: "step_completed",
|
|
4543
4604
|
type: "enum",
|
|
4544
4605
|
enum: Step,
|
|
@@ -4546,7 +4607,7 @@ __decorateClass([
|
|
|
4546
4607
|
})
|
|
4547
4608
|
], Job.prototype, "stepCompleted", 2);
|
|
4548
4609
|
__decorateClass([
|
|
4549
|
-
(0,
|
|
4610
|
+
(0, import_typeorm32.Column)({
|
|
4550
4611
|
name: "status",
|
|
4551
4612
|
type: "enum",
|
|
4552
4613
|
enum: JobStatusEnum,
|
|
@@ -4554,40 +4615,40 @@ __decorateClass([
|
|
|
4554
4615
|
})
|
|
4555
4616
|
], Job.prototype, "status", 2);
|
|
4556
4617
|
__decorateClass([
|
|
4557
|
-
(0,
|
|
4618
|
+
(0, import_typeorm32.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
4558
4619
|
], Job.prototype, "viewedCount", 2);
|
|
4559
4620
|
__decorateClass([
|
|
4560
|
-
(0,
|
|
4621
|
+
(0, import_typeorm32.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
4561
4622
|
], Job.prototype, "applicationCount", 2);
|
|
4562
4623
|
__decorateClass([
|
|
4563
|
-
(0,
|
|
4624
|
+
(0, import_typeorm32.Column)({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4564
4625
|
], Job.prototype, "isContractSigned", 2);
|
|
4565
4626
|
__decorateClass([
|
|
4566
|
-
(0,
|
|
4627
|
+
(0, import_typeorm32.Column)({ name: "is_interview_created", type: "boolean", default: false })
|
|
4567
4628
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4568
4629
|
__decorateClass([
|
|
4569
|
-
(0,
|
|
4630
|
+
(0, import_typeorm32.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4570
4631
|
], Job.prototype, "interviewInvites", 2);
|
|
4571
4632
|
__decorateClass([
|
|
4572
|
-
(0,
|
|
4633
|
+
(0, import_typeorm32.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4573
4634
|
], Job.prototype, "jobSkills", 2);
|
|
4574
4635
|
__decorateClass([
|
|
4575
|
-
(0,
|
|
4636
|
+
(0, import_typeorm32.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4576
4637
|
cascade: true
|
|
4577
4638
|
})
|
|
4578
4639
|
], Job.prototype, "jobApplications", 2);
|
|
4579
4640
|
__decorateClass([
|
|
4580
|
-
(0,
|
|
4641
|
+
(0, import_typeorm32.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
4581
4642
|
cascade: true
|
|
4582
4643
|
})
|
|
4583
4644
|
], Job.prototype, "interviews", 2);
|
|
4584
4645
|
__decorateClass([
|
|
4585
|
-
(0,
|
|
4646
|
+
(0, import_typeorm32.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4586
4647
|
cascade: true
|
|
4587
4648
|
})
|
|
4588
4649
|
], Job.prototype, "f2fInterviews", 2);
|
|
4589
4650
|
__decorateClass([
|
|
4590
|
-
(0,
|
|
4651
|
+
(0, import_typeorm32.OneToMany)(
|
|
4591
4652
|
() => JobRecommendation,
|
|
4592
4653
|
(jobRecommendation) => jobRecommendation.job,
|
|
4593
4654
|
{
|
|
@@ -4596,44 +4657,49 @@ __decorateClass([
|
|
|
4596
4657
|
)
|
|
4597
4658
|
], Job.prototype, "recommendations", 2);
|
|
4598
4659
|
__decorateClass([
|
|
4599
|
-
(0,
|
|
4660
|
+
(0, import_typeorm32.OneToMany)(() => Contract, (contract) => contract.job, {
|
|
4600
4661
|
cascade: true
|
|
4601
4662
|
})
|
|
4602
4663
|
], Job.prototype, "contracts", 2);
|
|
4603
4664
|
__decorateClass([
|
|
4604
|
-
(0,
|
|
4665
|
+
(0, import_typeorm32.OneToMany)(() => Hiring, (hiring) => hiring.job, {
|
|
4666
|
+
cascade: true
|
|
4667
|
+
})
|
|
4668
|
+
], Job.prototype, "hirings", 2);
|
|
4669
|
+
__decorateClass([
|
|
4670
|
+
(0, import_typeorm32.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4605
4671
|
cascade: true
|
|
4606
4672
|
})
|
|
4607
4673
|
], Job.prototype, "escrowWallets", 2);
|
|
4608
4674
|
__decorateClass([
|
|
4609
|
-
(0,
|
|
4675
|
+
(0, import_typeorm32.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4610
4676
|
cascade: true
|
|
4611
4677
|
})
|
|
4612
4678
|
], Job.prototype, "timesheets", 2);
|
|
4613
4679
|
__decorateClass([
|
|
4614
|
-
(0,
|
|
4680
|
+
(0, import_typeorm32.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4615
4681
|
cascade: true
|
|
4616
4682
|
})
|
|
4617
4683
|
], Job.prototype, "timesheetLine", 2);
|
|
4618
4684
|
__decorateClass([
|
|
4619
|
-
(0,
|
|
4685
|
+
(0, import_typeorm32.OneToMany)(() => Invoice, (invoice) => invoice.job, {
|
|
4620
4686
|
cascade: true
|
|
4621
4687
|
})
|
|
4622
4688
|
], Job.prototype, "invoice", 2);
|
|
4623
4689
|
__decorateClass([
|
|
4624
|
-
(0,
|
|
4690
|
+
(0, import_typeorm32.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4625
4691
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4626
4692
|
__decorateClass([
|
|
4627
|
-
(0,
|
|
4693
|
+
(0, import_typeorm32.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
4628
4694
|
cascade: true
|
|
4629
4695
|
})
|
|
4630
4696
|
], Job.prototype, "jobLocations", 2);
|
|
4631
4697
|
Job = __decorateClass([
|
|
4632
|
-
(0,
|
|
4698
|
+
(0, import_typeorm32.Entity)("jobs")
|
|
4633
4699
|
], Job);
|
|
4634
4700
|
|
|
4635
4701
|
// src/entities/bank-details.entity.ts
|
|
4636
|
-
var
|
|
4702
|
+
var import_typeorm33 = require("typeorm");
|
|
4637
4703
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4638
4704
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
4639
4705
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -4648,51 +4714,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4648
4714
|
};
|
|
4649
4715
|
// individual index to find bank details by user
|
|
4650
4716
|
__decorateClass([
|
|
4651
|
-
(0,
|
|
4652
|
-
(0,
|
|
4717
|
+
(0, import_typeorm33.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4718
|
+
(0, import_typeorm33.Index)()
|
|
4653
4719
|
], BankDetail.prototype, "userId", 2);
|
|
4654
4720
|
__decorateClass([
|
|
4655
|
-
(0,
|
|
4656
|
-
(0,
|
|
4721
|
+
(0, import_typeorm33.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
4722
|
+
(0, import_typeorm33.JoinColumn)({ name: "user_id" })
|
|
4657
4723
|
], BankDetail.prototype, "user", 2);
|
|
4658
4724
|
__decorateClass([
|
|
4659
|
-
(0,
|
|
4725
|
+
(0, import_typeorm33.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4660
4726
|
], BankDetail.prototype, "name", 2);
|
|
4661
4727
|
__decorateClass([
|
|
4662
|
-
(0,
|
|
4728
|
+
(0, import_typeorm33.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4663
4729
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4664
4730
|
__decorateClass([
|
|
4665
|
-
(0,
|
|
4731
|
+
(0, import_typeorm33.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
4666
4732
|
], BankDetail.prototype, "mobile", 2);
|
|
4667
4733
|
__decorateClass([
|
|
4668
|
-
(0,
|
|
4734
|
+
(0, import_typeorm33.Column)({ name: "email", type: "varchar" })
|
|
4669
4735
|
], BankDetail.prototype, "email", 2);
|
|
4670
4736
|
__decorateClass([
|
|
4671
|
-
(0,
|
|
4737
|
+
(0, import_typeorm33.Column)({ name: "address", type: "varchar", nullable: true })
|
|
4672
4738
|
], BankDetail.prototype, "address", 2);
|
|
4673
4739
|
__decorateClass([
|
|
4674
|
-
(0,
|
|
4740
|
+
(0, import_typeorm33.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4675
4741
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4676
4742
|
__decorateClass([
|
|
4677
|
-
(0,
|
|
4743
|
+
(0, import_typeorm33.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
4678
4744
|
], BankDetail.prototype, "bankName", 2);
|
|
4679
4745
|
__decorateClass([
|
|
4680
|
-
(0,
|
|
4746
|
+
(0, import_typeorm33.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4681
4747
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4682
4748
|
__decorateClass([
|
|
4683
|
-
(0,
|
|
4749
|
+
(0, import_typeorm33.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
4684
4750
|
], BankDetail.prototype, "branchName", 2);
|
|
4685
4751
|
__decorateClass([
|
|
4686
|
-
(0,
|
|
4752
|
+
(0, import_typeorm33.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
4687
4753
|
], BankDetail.prototype, "routingNo", 2);
|
|
4688
4754
|
__decorateClass([
|
|
4689
|
-
(0,
|
|
4755
|
+
(0, import_typeorm33.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
4690
4756
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4691
4757
|
__decorateClass([
|
|
4692
|
-
(0,
|
|
4758
|
+
(0, import_typeorm33.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
4693
4759
|
], BankDetail.prototype, "iban", 2);
|
|
4694
4760
|
__decorateClass([
|
|
4695
|
-
(0,
|
|
4761
|
+
(0, import_typeorm33.Column)({
|
|
4696
4762
|
name: "account_type",
|
|
4697
4763
|
type: "enum",
|
|
4698
4764
|
enum: BankAccountTypeEnum,
|
|
@@ -4700,7 +4766,7 @@ __decorateClass([
|
|
|
4700
4766
|
})
|
|
4701
4767
|
], BankDetail.prototype, "accountType", 2);
|
|
4702
4768
|
__decorateClass([
|
|
4703
|
-
(0,
|
|
4769
|
+
(0, import_typeorm33.Column)({
|
|
4704
4770
|
name: "account_scope",
|
|
4705
4771
|
type: "enum",
|
|
4706
4772
|
enum: BankAccountScopeEnum,
|
|
@@ -4708,150 +4774,150 @@ __decorateClass([
|
|
|
4708
4774
|
})
|
|
4709
4775
|
], BankDetail.prototype, "accountScope", 2);
|
|
4710
4776
|
BankDetail = __decorateClass([
|
|
4711
|
-
(0,
|
|
4777
|
+
(0, import_typeorm33.Entity)("bank_details")
|
|
4712
4778
|
], BankDetail);
|
|
4713
4779
|
|
|
4714
4780
|
// src/entities/system-preference.entity.ts
|
|
4715
|
-
var
|
|
4781
|
+
var import_typeorm34 = require("typeorm");
|
|
4716
4782
|
var SystemPreference = class extends BaseEntity {
|
|
4717
4783
|
};
|
|
4718
4784
|
// individual index to find system preference by user
|
|
4719
4785
|
__decorateClass([
|
|
4720
|
-
(0,
|
|
4721
|
-
(0,
|
|
4786
|
+
(0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4787
|
+
(0, import_typeorm34.Index)()
|
|
4722
4788
|
], SystemPreference.prototype, "userId", 2);
|
|
4723
4789
|
__decorateClass([
|
|
4724
|
-
(0,
|
|
4725
|
-
(0,
|
|
4790
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
4791
|
+
(0, import_typeorm34.JoinColumn)({ name: "user_id" })
|
|
4726
4792
|
], SystemPreference.prototype, "user", 2);
|
|
4727
4793
|
__decorateClass([
|
|
4728
|
-
(0,
|
|
4794
|
+
(0, import_typeorm34.Column)({ name: "key", type: "varchar", nullable: false })
|
|
4729
4795
|
], SystemPreference.prototype, "key", 2);
|
|
4730
4796
|
__decorateClass([
|
|
4731
|
-
(0,
|
|
4797
|
+
(0, import_typeorm34.Column)({ name: "value", type: "boolean", default: false })
|
|
4732
4798
|
], SystemPreference.prototype, "value", 2);
|
|
4733
4799
|
SystemPreference = __decorateClass([
|
|
4734
|
-
(0,
|
|
4800
|
+
(0, import_typeorm34.Entity)("system_preferences")
|
|
4735
4801
|
], SystemPreference);
|
|
4736
4802
|
|
|
4737
4803
|
// src/entities/freelancer-experience.entity.ts
|
|
4738
|
-
var
|
|
4804
|
+
var import_typeorm35 = require("typeorm");
|
|
4739
4805
|
var FreelancerExperience = class extends BaseEntity {
|
|
4740
4806
|
};
|
|
4741
4807
|
// individual index to find experence by user
|
|
4742
4808
|
__decorateClass([
|
|
4743
|
-
(0,
|
|
4744
|
-
(0,
|
|
4809
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4810
|
+
(0, import_typeorm35.Index)()
|
|
4745
4811
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4746
4812
|
__decorateClass([
|
|
4747
|
-
(0,
|
|
4748
|
-
(0,
|
|
4813
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
4814
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
4749
4815
|
], FreelancerExperience.prototype, "user", 2);
|
|
4750
4816
|
__decorateClass([
|
|
4751
|
-
(0,
|
|
4817
|
+
(0, import_typeorm35.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
4752
4818
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4753
4819
|
__decorateClass([
|
|
4754
|
-
(0,
|
|
4820
|
+
(0, import_typeorm35.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
4755
4821
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4756
4822
|
__decorateClass([
|
|
4757
|
-
(0,
|
|
4823
|
+
(0, import_typeorm35.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
4758
4824
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4759
4825
|
__decorateClass([
|
|
4760
|
-
(0,
|
|
4826
|
+
(0, import_typeorm35.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4761
4827
|
], FreelancerExperience.prototype, "description", 2);
|
|
4762
4828
|
FreelancerExperience = __decorateClass([
|
|
4763
|
-
(0,
|
|
4829
|
+
(0, import_typeorm35.Entity)("freelancer_experiences")
|
|
4764
4830
|
], FreelancerExperience);
|
|
4765
4831
|
|
|
4766
4832
|
// src/entities/freelancer-education.entity.ts
|
|
4767
|
-
var
|
|
4833
|
+
var import_typeorm36 = require("typeorm");
|
|
4768
4834
|
var FreelancerEducation = class extends BaseEntity {
|
|
4769
4835
|
};
|
|
4770
4836
|
// individual index to find education by user
|
|
4771
4837
|
__decorateClass([
|
|
4772
|
-
(0,
|
|
4773
|
-
(0,
|
|
4838
|
+
(0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4839
|
+
(0, import_typeorm36.Index)()
|
|
4774
4840
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4775
4841
|
__decorateClass([
|
|
4776
|
-
(0,
|
|
4777
|
-
(0,
|
|
4842
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
4843
|
+
(0, import_typeorm36.JoinColumn)({ name: "user_id" })
|
|
4778
4844
|
], FreelancerEducation.prototype, "user", 2);
|
|
4779
4845
|
__decorateClass([
|
|
4780
|
-
(0,
|
|
4846
|
+
(0, import_typeorm36.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
4781
4847
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4782
4848
|
__decorateClass([
|
|
4783
|
-
(0,
|
|
4849
|
+
(0, import_typeorm36.Column)({ name: "university", type: "varchar", nullable: true })
|
|
4784
4850
|
], FreelancerEducation.prototype, "university", 2);
|
|
4785
4851
|
__decorateClass([
|
|
4786
|
-
(0,
|
|
4852
|
+
(0, import_typeorm36.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4787
4853
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4788
4854
|
FreelancerEducation = __decorateClass([
|
|
4789
|
-
(0,
|
|
4855
|
+
(0, import_typeorm36.Entity)("freelancer_educations")
|
|
4790
4856
|
], FreelancerEducation);
|
|
4791
4857
|
|
|
4792
4858
|
// src/entities/freelancer-project.entity.ts
|
|
4793
|
-
var
|
|
4859
|
+
var import_typeorm37 = require("typeorm");
|
|
4794
4860
|
var FreelancerProject = class extends BaseEntity {
|
|
4795
4861
|
};
|
|
4796
4862
|
// individual index to find project by user
|
|
4797
4863
|
__decorateClass([
|
|
4798
|
-
(0,
|
|
4799
|
-
(0,
|
|
4864
|
+
(0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4865
|
+
(0, import_typeorm37.Index)()
|
|
4800
4866
|
], FreelancerProject.prototype, "userId", 2);
|
|
4801
4867
|
__decorateClass([
|
|
4802
|
-
(0,
|
|
4803
|
-
(0,
|
|
4868
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
4869
|
+
(0, import_typeorm37.JoinColumn)({ name: "user_id" })
|
|
4804
4870
|
], FreelancerProject.prototype, "user", 2);
|
|
4805
4871
|
__decorateClass([
|
|
4806
|
-
(0,
|
|
4872
|
+
(0, import_typeorm37.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4807
4873
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4808
4874
|
__decorateClass([
|
|
4809
|
-
(0,
|
|
4875
|
+
(0, import_typeorm37.Column)({ name: "start_date", type: "date", nullable: true })
|
|
4810
4876
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4811
4877
|
__decorateClass([
|
|
4812
|
-
(0,
|
|
4878
|
+
(0, import_typeorm37.Column)({ name: "end_date", type: "date", nullable: true })
|
|
4813
4879
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4814
4880
|
__decorateClass([
|
|
4815
|
-
(0,
|
|
4881
|
+
(0, import_typeorm37.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
4816
4882
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4817
4883
|
__decorateClass([
|
|
4818
|
-
(0,
|
|
4884
|
+
(0, import_typeorm37.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
4819
4885
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4820
4886
|
__decorateClass([
|
|
4821
|
-
(0,
|
|
4887
|
+
(0, import_typeorm37.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4822
4888
|
], FreelancerProject.prototype, "description", 2);
|
|
4823
4889
|
FreelancerProject = __decorateClass([
|
|
4824
|
-
(0,
|
|
4890
|
+
(0, import_typeorm37.Entity)("freelancer_projects")
|
|
4825
4891
|
], FreelancerProject);
|
|
4826
4892
|
|
|
4827
4893
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4828
|
-
var
|
|
4894
|
+
var import_typeorm38 = require("typeorm");
|
|
4829
4895
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4830
4896
|
};
|
|
4831
4897
|
// individual index to find case study by user
|
|
4832
4898
|
__decorateClass([
|
|
4833
|
-
(0,
|
|
4834
|
-
(0,
|
|
4899
|
+
(0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4900
|
+
(0, import_typeorm38.Index)()
|
|
4835
4901
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4836
4902
|
__decorateClass([
|
|
4837
|
-
(0,
|
|
4838
|
-
(0,
|
|
4903
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
4904
|
+
(0, import_typeorm38.JoinColumn)({ name: "user_id" })
|
|
4839
4905
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4840
4906
|
__decorateClass([
|
|
4841
|
-
(0,
|
|
4907
|
+
(0, import_typeorm38.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4842
4908
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4843
4909
|
__decorateClass([
|
|
4844
|
-
(0,
|
|
4910
|
+
(0, import_typeorm38.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4845
4911
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4846
4912
|
__decorateClass([
|
|
4847
|
-
(0,
|
|
4913
|
+
(0, import_typeorm38.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4848
4914
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4849
4915
|
FreelancerCaseStudy = __decorateClass([
|
|
4850
|
-
(0,
|
|
4916
|
+
(0, import_typeorm38.Entity)("freelancer_case_studies")
|
|
4851
4917
|
], FreelancerCaseStudy);
|
|
4852
4918
|
|
|
4853
4919
|
// src/entities/freelancer-skill.entity.ts
|
|
4854
|
-
var
|
|
4920
|
+
var import_typeorm39 = require("typeorm");
|
|
4855
4921
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4856
4922
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
4857
4923
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
|
|
@@ -4861,18 +4927,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4861
4927
|
};
|
|
4862
4928
|
// individual index to find core skills by user
|
|
4863
4929
|
__decorateClass([
|
|
4864
|
-
(0,
|
|
4865
|
-
(0,
|
|
4930
|
+
(0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4931
|
+
(0, import_typeorm39.Index)()
|
|
4866
4932
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4867
4933
|
__decorateClass([
|
|
4868
|
-
(0,
|
|
4869
|
-
(0,
|
|
4934
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
4935
|
+
(0, import_typeorm39.JoinColumn)({ name: "user_id" })
|
|
4870
4936
|
], FreelancerSkill.prototype, "user", 2);
|
|
4871
4937
|
__decorateClass([
|
|
4872
|
-
(0,
|
|
4938
|
+
(0, import_typeorm39.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
4873
4939
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4874
4940
|
__decorateClass([
|
|
4875
|
-
(0,
|
|
4941
|
+
(0, import_typeorm39.Column)({
|
|
4876
4942
|
name: "skill_category",
|
|
4877
4943
|
type: "smallint",
|
|
4878
4944
|
default: 1,
|
|
@@ -4880,51 +4946,51 @@ __decorateClass([
|
|
|
4880
4946
|
})
|
|
4881
4947
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4882
4948
|
FreelancerSkill = __decorateClass([
|
|
4883
|
-
(0,
|
|
4949
|
+
(0, import_typeorm39.Entity)("freelancer_skills")
|
|
4884
4950
|
], FreelancerSkill);
|
|
4885
4951
|
|
|
4886
4952
|
// src/entities/freelancer-tool.entity.ts
|
|
4887
|
-
var
|
|
4953
|
+
var import_typeorm40 = require("typeorm");
|
|
4888
4954
|
var FreelancerTool = class extends BaseEntity {
|
|
4889
4955
|
};
|
|
4890
4956
|
// individual index to find tool by user
|
|
4891
4957
|
__decorateClass([
|
|
4892
|
-
(0,
|
|
4893
|
-
(0,
|
|
4958
|
+
(0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4959
|
+
(0, import_typeorm40.Index)()
|
|
4894
4960
|
], FreelancerTool.prototype, "userId", 2);
|
|
4895
4961
|
__decorateClass([
|
|
4896
|
-
(0,
|
|
4897
|
-
(0,
|
|
4962
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
4963
|
+
(0, import_typeorm40.JoinColumn)({ name: "user_id" })
|
|
4898
4964
|
], FreelancerTool.prototype, "user", 2);
|
|
4899
4965
|
__decorateClass([
|
|
4900
|
-
(0,
|
|
4966
|
+
(0, import_typeorm40.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
4901
4967
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4902
4968
|
FreelancerTool = __decorateClass([
|
|
4903
|
-
(0,
|
|
4969
|
+
(0, import_typeorm40.Entity)("freelancer_tools")
|
|
4904
4970
|
], FreelancerTool);
|
|
4905
4971
|
|
|
4906
4972
|
// src/entities/freelancer-framework.entity.ts
|
|
4907
|
-
var
|
|
4973
|
+
var import_typeorm41 = require("typeorm");
|
|
4908
4974
|
var FreelancerFramework = class extends BaseEntity {
|
|
4909
4975
|
};
|
|
4910
4976
|
// individual index to find framework by user
|
|
4911
4977
|
__decorateClass([
|
|
4912
|
-
(0,
|
|
4913
|
-
(0,
|
|
4978
|
+
(0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4979
|
+
(0, import_typeorm41.Index)()
|
|
4914
4980
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4915
4981
|
__decorateClass([
|
|
4916
|
-
(0,
|
|
4917
|
-
(0,
|
|
4982
|
+
(0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
4983
|
+
(0, import_typeorm41.JoinColumn)({ name: "user_id" })
|
|
4918
4984
|
], FreelancerFramework.prototype, "user", 2);
|
|
4919
4985
|
__decorateClass([
|
|
4920
|
-
(0,
|
|
4986
|
+
(0, import_typeorm41.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
4921
4987
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4922
4988
|
FreelancerFramework = __decorateClass([
|
|
4923
|
-
(0,
|
|
4989
|
+
(0, import_typeorm41.Entity)("freelancer_frameworks")
|
|
4924
4990
|
], FreelancerFramework);
|
|
4925
4991
|
|
|
4926
4992
|
// src/entities/freelancer-assessment.entity.ts
|
|
4927
|
-
var
|
|
4993
|
+
var import_typeorm42 = require("typeorm");
|
|
4928
4994
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4929
4995
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
4930
4996
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -4940,30 +5006,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4940
5006
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4941
5007
|
};
|
|
4942
5008
|
__decorateClass([
|
|
4943
|
-
(0,
|
|
4944
|
-
(0,
|
|
5009
|
+
(0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5010
|
+
(0, import_typeorm42.Index)()
|
|
4945
5011
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4946
5012
|
__decorateClass([
|
|
4947
|
-
(0,
|
|
4948
|
-
(0,
|
|
5013
|
+
(0, import_typeorm42.ManyToOne)(() => User, (user) => user.assessments),
|
|
5014
|
+
(0, import_typeorm42.JoinColumn)({ name: "user_id" })
|
|
4949
5015
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4950
5016
|
__decorateClass([
|
|
4951
|
-
(0,
|
|
5017
|
+
(0, import_typeorm42.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
4952
5018
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4953
5019
|
__decorateClass([
|
|
4954
|
-
(0,
|
|
5020
|
+
(0, import_typeorm42.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
4955
5021
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4956
5022
|
__decorateClass([
|
|
4957
|
-
(0,
|
|
5023
|
+
(0, import_typeorm42.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
4958
5024
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4959
5025
|
__decorateClass([
|
|
4960
|
-
(0,
|
|
5026
|
+
(0, import_typeorm42.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4961
5027
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4962
5028
|
__decorateClass([
|
|
4963
|
-
(0,
|
|
5029
|
+
(0, import_typeorm42.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4964
5030
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4965
5031
|
__decorateClass([
|
|
4966
|
-
(0,
|
|
5032
|
+
(0, import_typeorm42.Column)({
|
|
4967
5033
|
name: "status",
|
|
4968
5034
|
type: "enum",
|
|
4969
5035
|
enum: AssessmentStatusEnum,
|
|
@@ -4971,11 +5037,11 @@ __decorateClass([
|
|
|
4971
5037
|
})
|
|
4972
5038
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4973
5039
|
FreelancerAssessment = __decorateClass([
|
|
4974
|
-
(0,
|
|
5040
|
+
(0, import_typeorm42.Entity)("freelancer_assessments")
|
|
4975
5041
|
], FreelancerAssessment);
|
|
4976
5042
|
|
|
4977
5043
|
// src/entities/freelancer-declaration.entity.ts
|
|
4978
|
-
var
|
|
5044
|
+
var import_typeorm43 = require("typeorm");
|
|
4979
5045
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4980
5046
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4981
5047
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4987,15 +5053,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4987
5053
|
};
|
|
4988
5054
|
// individual index to find declaration by user
|
|
4989
5055
|
__decorateClass([
|
|
4990
|
-
(0,
|
|
4991
|
-
(0,
|
|
5056
|
+
(0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5057
|
+
(0, import_typeorm43.Index)()
|
|
4992
5058
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4993
5059
|
__decorateClass([
|
|
4994
|
-
(0,
|
|
4995
|
-
(0,
|
|
5060
|
+
(0, import_typeorm43.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
5061
|
+
(0, import_typeorm43.JoinColumn)({ name: "user_id" })
|
|
4996
5062
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4997
5063
|
__decorateClass([
|
|
4998
|
-
(0,
|
|
5064
|
+
(0, import_typeorm43.Column)({
|
|
4999
5065
|
name: "document_type",
|
|
5000
5066
|
type: "enum",
|
|
5001
5067
|
enum: DocumentType,
|
|
@@ -5003,144 +5069,144 @@ __decorateClass([
|
|
|
5003
5069
|
})
|
|
5004
5070
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
5005
5071
|
__decorateClass([
|
|
5006
|
-
(0,
|
|
5072
|
+
(0, import_typeorm43.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
5007
5073
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
5008
5074
|
__decorateClass([
|
|
5009
|
-
(0,
|
|
5075
|
+
(0, import_typeorm43.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
5010
5076
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
5011
5077
|
__decorateClass([
|
|
5012
|
-
(0,
|
|
5078
|
+
(0, import_typeorm43.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
5013
5079
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
5014
5080
|
__decorateClass([
|
|
5015
|
-
(0,
|
|
5081
|
+
(0, import_typeorm43.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
5016
5082
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
5017
5083
|
FreelancerDeclaration = __decorateClass([
|
|
5018
|
-
(0,
|
|
5084
|
+
(0, import_typeorm43.Entity)("freelancer_declaration")
|
|
5019
5085
|
], FreelancerDeclaration);
|
|
5020
5086
|
|
|
5021
5087
|
// src/entities/company-members-roles.entity.ts
|
|
5022
|
-
var
|
|
5088
|
+
var import_typeorm47 = require("typeorm");
|
|
5023
5089
|
|
|
5024
5090
|
// src/entities/company-role.entity.ts
|
|
5025
|
-
var
|
|
5091
|
+
var import_typeorm46 = require("typeorm");
|
|
5026
5092
|
|
|
5027
5093
|
// src/entities/company-role-permission.entity.ts
|
|
5028
|
-
var
|
|
5094
|
+
var import_typeorm45 = require("typeorm");
|
|
5029
5095
|
|
|
5030
5096
|
// src/entities/permission.entity.ts
|
|
5031
|
-
var
|
|
5097
|
+
var import_typeorm44 = require("typeorm");
|
|
5032
5098
|
var Permission = class extends BaseEntity {
|
|
5033
5099
|
};
|
|
5034
5100
|
__decorateClass([
|
|
5035
|
-
(0,
|
|
5101
|
+
(0, import_typeorm44.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5036
5102
|
], Permission.prototype, "name", 2);
|
|
5037
5103
|
__decorateClass([
|
|
5038
|
-
(0,
|
|
5039
|
-
(0,
|
|
5104
|
+
(0, import_typeorm44.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5105
|
+
(0, import_typeorm44.Index)()
|
|
5040
5106
|
], Permission.prototype, "slug", 2);
|
|
5041
5107
|
__decorateClass([
|
|
5042
|
-
(0,
|
|
5108
|
+
(0, import_typeorm44.Column)({ name: "description", type: "text", nullable: true })
|
|
5043
5109
|
], Permission.prototype, "description", 2);
|
|
5044
5110
|
__decorateClass([
|
|
5045
|
-
(0,
|
|
5111
|
+
(0, import_typeorm44.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5046
5112
|
], Permission.prototype, "isActive", 2);
|
|
5047
5113
|
Permission = __decorateClass([
|
|
5048
|
-
(0,
|
|
5114
|
+
(0, import_typeorm44.Entity)("permissions")
|
|
5049
5115
|
], Permission);
|
|
5050
5116
|
|
|
5051
5117
|
// src/entities/company-role-permission.entity.ts
|
|
5052
5118
|
var CompanyRolePermission = class extends BaseEntity {
|
|
5053
5119
|
};
|
|
5054
5120
|
__decorateClass([
|
|
5055
|
-
(0,
|
|
5056
|
-
(0,
|
|
5121
|
+
(0, import_typeorm45.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5122
|
+
(0, import_typeorm45.Index)()
|
|
5057
5123
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
5058
5124
|
__decorateClass([
|
|
5059
|
-
(0,
|
|
5125
|
+
(0, import_typeorm45.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
5060
5126
|
onDelete: "CASCADE"
|
|
5061
5127
|
}),
|
|
5062
|
-
(0,
|
|
5128
|
+
(0, import_typeorm45.JoinColumn)({ name: "company_role_id" })
|
|
5063
5129
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
5064
5130
|
__decorateClass([
|
|
5065
|
-
(0,
|
|
5066
|
-
(0,
|
|
5131
|
+
(0, import_typeorm45.Column)({ name: "permission_id", type: "integer" }),
|
|
5132
|
+
(0, import_typeorm45.Index)()
|
|
5067
5133
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
5068
5134
|
__decorateClass([
|
|
5069
|
-
(0,
|
|
5070
|
-
(0,
|
|
5135
|
+
(0, import_typeorm45.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
5136
|
+
(0, import_typeorm45.JoinColumn)({ name: "permission_id" })
|
|
5071
5137
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
5072
5138
|
__decorateClass([
|
|
5073
|
-
(0,
|
|
5139
|
+
(0, import_typeorm45.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5074
5140
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
5075
5141
|
CompanyRolePermission = __decorateClass([
|
|
5076
|
-
(0,
|
|
5142
|
+
(0, import_typeorm45.Entity)("company_role_permissions")
|
|
5077
5143
|
], CompanyRolePermission);
|
|
5078
5144
|
|
|
5079
5145
|
// src/entities/company-role.entity.ts
|
|
5080
5146
|
var CompanyRole = class extends BaseEntity {
|
|
5081
5147
|
};
|
|
5082
5148
|
__decorateClass([
|
|
5083
|
-
(0,
|
|
5084
|
-
(0,
|
|
5149
|
+
(0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5150
|
+
(0, import_typeorm46.Index)()
|
|
5085
5151
|
], CompanyRole.prototype, "userId", 2);
|
|
5086
5152
|
__decorateClass([
|
|
5087
|
-
(0,
|
|
5088
|
-
(0,
|
|
5153
|
+
(0, import_typeorm46.ManyToOne)(() => User, (user) => user.otps),
|
|
5154
|
+
(0, import_typeorm46.JoinColumn)({ name: "user_id" })
|
|
5089
5155
|
], CompanyRole.prototype, "user", 2);
|
|
5090
5156
|
__decorateClass([
|
|
5091
|
-
(0,
|
|
5157
|
+
(0, import_typeorm46.Column)({ name: "name", type: "varchar" })
|
|
5092
5158
|
], CompanyRole.prototype, "name", 2);
|
|
5093
5159
|
__decorateClass([
|
|
5094
|
-
(0,
|
|
5095
|
-
(0,
|
|
5160
|
+
(0, import_typeorm46.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5161
|
+
(0, import_typeorm46.Index)()
|
|
5096
5162
|
], CompanyRole.prototype, "slug", 2);
|
|
5097
5163
|
__decorateClass([
|
|
5098
|
-
(0,
|
|
5164
|
+
(0, import_typeorm46.Column)({ name: "description", type: "text", nullable: true })
|
|
5099
5165
|
], CompanyRole.prototype, "description", 2);
|
|
5100
5166
|
__decorateClass([
|
|
5101
|
-
(0,
|
|
5167
|
+
(0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5102
5168
|
], CompanyRole.prototype, "isActive", 2);
|
|
5103
5169
|
__decorateClass([
|
|
5104
|
-
(0,
|
|
5170
|
+
(0, import_typeorm46.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
5105
5171
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
5106
5172
|
CompanyRole = __decorateClass([
|
|
5107
|
-
(0,
|
|
5173
|
+
(0, import_typeorm46.Entity)("company_roles")
|
|
5108
5174
|
], CompanyRole);
|
|
5109
5175
|
|
|
5110
5176
|
// src/entities/company-members-roles.entity.ts
|
|
5111
5177
|
var CompanyMemberRole = class extends BaseEntity {
|
|
5112
5178
|
};
|
|
5113
5179
|
__decorateClass([
|
|
5114
|
-
(0,
|
|
5115
|
-
(0,
|
|
5180
|
+
(0, import_typeorm47.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5181
|
+
(0, import_typeorm47.Index)()
|
|
5116
5182
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
5117
5183
|
__decorateClass([
|
|
5118
|
-
(0,
|
|
5119
|
-
(0,
|
|
5184
|
+
(0, import_typeorm47.ManyToOne)(() => User),
|
|
5185
|
+
(0, import_typeorm47.JoinColumn)({ name: "user_id" })
|
|
5120
5186
|
], CompanyMemberRole.prototype, "user", 2);
|
|
5121
5187
|
__decorateClass([
|
|
5122
|
-
(0,
|
|
5123
|
-
(0,
|
|
5188
|
+
(0, import_typeorm47.ManyToOne)(() => CompanyRole),
|
|
5189
|
+
(0, import_typeorm47.JoinColumn)({ name: "company_role_id" })
|
|
5124
5190
|
], CompanyMemberRole.prototype, "role", 2);
|
|
5125
5191
|
__decorateClass([
|
|
5126
|
-
(0,
|
|
5127
|
-
(0,
|
|
5192
|
+
(0, import_typeorm47.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5193
|
+
(0, import_typeorm47.Index)()
|
|
5128
5194
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
5129
5195
|
__decorateClass([
|
|
5130
|
-
(0,
|
|
5196
|
+
(0, import_typeorm47.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5131
5197
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
5132
5198
|
CompanyMemberRole = __decorateClass([
|
|
5133
|
-
(0,
|
|
5199
|
+
(0, import_typeorm47.Entity)("company_member_roles")
|
|
5134
5200
|
], CompanyMemberRole);
|
|
5135
5201
|
|
|
5136
5202
|
// src/entities/assessment-answer.entity.ts
|
|
5137
|
-
var
|
|
5203
|
+
var import_typeorm50 = require("typeorm");
|
|
5138
5204
|
|
|
5139
5205
|
// src/entities/assessment-question.entity.ts
|
|
5140
|
-
var
|
|
5206
|
+
var import_typeorm49 = require("typeorm");
|
|
5141
5207
|
|
|
5142
5208
|
// src/entities/assessment-question-option.entity.ts
|
|
5143
|
-
var
|
|
5209
|
+
var import_typeorm48 = require("typeorm");
|
|
5144
5210
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5145
5211
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
5146
5212
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -5150,21 +5216,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5150
5216
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5151
5217
|
};
|
|
5152
5218
|
__decorateClass([
|
|
5153
|
-
(0,
|
|
5154
|
-
(0,
|
|
5219
|
+
(0, import_typeorm48.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
5220
|
+
(0, import_typeorm48.Index)()
|
|
5155
5221
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5156
5222
|
__decorateClass([
|
|
5157
|
-
(0,
|
|
5223
|
+
(0, import_typeorm48.ManyToOne)(
|
|
5158
5224
|
() => AssessmetQuestion,
|
|
5159
5225
|
(assessmentQuestion) => assessmentQuestion.options
|
|
5160
5226
|
),
|
|
5161
|
-
(0,
|
|
5227
|
+
(0, import_typeorm48.JoinColumn)({ name: "question_id" })
|
|
5162
5228
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5163
5229
|
__decorateClass([
|
|
5164
|
-
(0,
|
|
5230
|
+
(0, import_typeorm48.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5165
5231
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5166
5232
|
__decorateClass([
|
|
5167
|
-
(0,
|
|
5233
|
+
(0, import_typeorm48.Column)({
|
|
5168
5234
|
name: "answer_type",
|
|
5169
5235
|
type: "enum",
|
|
5170
5236
|
enum: AnswerTypeEnum,
|
|
@@ -5172,13 +5238,13 @@ __decorateClass([
|
|
|
5172
5238
|
})
|
|
5173
5239
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5174
5240
|
__decorateClass([
|
|
5175
|
-
(0,
|
|
5241
|
+
(0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5176
5242
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5177
5243
|
__decorateClass([
|
|
5178
|
-
(0,
|
|
5244
|
+
(0, import_typeorm48.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5179
5245
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5180
5246
|
AssessmetQuestionOption = __decorateClass([
|
|
5181
|
-
(0,
|
|
5247
|
+
(0, import_typeorm48.Entity)("assessment_question_options")
|
|
5182
5248
|
], AssessmetQuestionOption);
|
|
5183
5249
|
|
|
5184
5250
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5190,10 +5256,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5190
5256
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5191
5257
|
};
|
|
5192
5258
|
__decorateClass([
|
|
5193
|
-
(0,
|
|
5259
|
+
(0, import_typeorm49.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5194
5260
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5195
5261
|
__decorateClass([
|
|
5196
|
-
(0,
|
|
5262
|
+
(0, import_typeorm49.Column)({
|
|
5197
5263
|
name: "question_for",
|
|
5198
5264
|
type: "enum",
|
|
5199
5265
|
enum: QuestionForEnum,
|
|
@@ -5201,24 +5267,24 @@ __decorateClass([
|
|
|
5201
5267
|
})
|
|
5202
5268
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5203
5269
|
__decorateClass([
|
|
5204
|
-
(0,
|
|
5270
|
+
(0, import_typeorm49.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5205
5271
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5206
5272
|
__decorateClass([
|
|
5207
|
-
(0,
|
|
5208
|
-
(0,
|
|
5273
|
+
(0, import_typeorm49.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5274
|
+
(0, import_typeorm49.Index)()
|
|
5209
5275
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5210
5276
|
__decorateClass([
|
|
5211
|
-
(0,
|
|
5212
|
-
(0,
|
|
5277
|
+
(0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5278
|
+
(0, import_typeorm49.JoinColumn)({ name: "candidate_id" })
|
|
5213
5279
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5214
5280
|
__decorateClass([
|
|
5215
|
-
(0,
|
|
5281
|
+
(0, import_typeorm49.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5216
5282
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5217
5283
|
__decorateClass([
|
|
5218
|
-
(0,
|
|
5284
|
+
(0, import_typeorm49.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5219
5285
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5220
5286
|
AssessmetQuestion = __decorateClass([
|
|
5221
|
-
(0,
|
|
5287
|
+
(0, import_typeorm49.Entity)("assessment_questions")
|
|
5222
5288
|
], AssessmetQuestion);
|
|
5223
5289
|
|
|
5224
5290
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5231,118 +5297,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5231
5297
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5232
5298
|
};
|
|
5233
5299
|
__decorateClass([
|
|
5234
|
-
(0,
|
|
5235
|
-
(0,
|
|
5300
|
+
(0, import_typeorm50.Column)({ name: "user_id", type: "integer" }),
|
|
5301
|
+
(0, import_typeorm50.Index)()
|
|
5236
5302
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5237
5303
|
__decorateClass([
|
|
5238
|
-
(0,
|
|
5239
|
-
(0,
|
|
5304
|
+
(0, import_typeorm50.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
5305
|
+
(0, import_typeorm50.JoinColumn)({ name: "user_id" })
|
|
5240
5306
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5241
5307
|
__decorateClass([
|
|
5242
|
-
(0,
|
|
5243
|
-
(0,
|
|
5308
|
+
(0, import_typeorm50.Column)({ name: "question_id", type: "integer" }),
|
|
5309
|
+
(0, import_typeorm50.Index)()
|
|
5244
5310
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5245
5311
|
__decorateClass([
|
|
5246
|
-
(0,
|
|
5312
|
+
(0, import_typeorm50.ManyToOne)(
|
|
5247
5313
|
() => AssessmetQuestion,
|
|
5248
5314
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5249
5315
|
),
|
|
5250
|
-
(0,
|
|
5316
|
+
(0, import_typeorm50.JoinColumn)({ name: "question_id" })
|
|
5251
5317
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5252
5318
|
__decorateClass([
|
|
5253
|
-
(0,
|
|
5254
|
-
(0,
|
|
5319
|
+
(0, import_typeorm50.Column)({ name: "selected_option_id", type: "integer" }),
|
|
5320
|
+
(0, import_typeorm50.Index)()
|
|
5255
5321
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5256
5322
|
__decorateClass([
|
|
5257
|
-
(0,
|
|
5323
|
+
(0, import_typeorm50.ManyToOne)(
|
|
5258
5324
|
() => AssessmetQuestionOption,
|
|
5259
5325
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5260
5326
|
),
|
|
5261
|
-
(0,
|
|
5327
|
+
(0, import_typeorm50.JoinColumn)({ name: "selected_option_id" })
|
|
5262
5328
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5263
5329
|
__decorateClass([
|
|
5264
|
-
(0,
|
|
5330
|
+
(0, import_typeorm50.Column)({
|
|
5265
5331
|
name: "selected_answer_type",
|
|
5266
5332
|
type: "enum",
|
|
5267
5333
|
enum: SelectedAnswerTypeEnum
|
|
5268
5334
|
})
|
|
5269
5335
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5270
5336
|
__decorateClass([
|
|
5271
|
-
(0,
|
|
5337
|
+
(0, import_typeorm50.Column)({ name: "score", type: "float" })
|
|
5272
5338
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5273
5339
|
AssessmentAnswer = __decorateClass([
|
|
5274
|
-
(0,
|
|
5340
|
+
(0, import_typeorm50.Entity)("assessment_answers")
|
|
5275
5341
|
], AssessmentAnswer);
|
|
5276
5342
|
|
|
5277
5343
|
// src/entities/company-skill.entity.ts
|
|
5278
|
-
var
|
|
5344
|
+
var import_typeorm51 = require("typeorm");
|
|
5279
5345
|
var CompanySkill = class extends BaseEntity {
|
|
5280
5346
|
};
|
|
5281
5347
|
// individual index to find core skills by user
|
|
5282
5348
|
__decorateClass([
|
|
5283
|
-
(0,
|
|
5284
|
-
(0,
|
|
5349
|
+
(0, import_typeorm51.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5350
|
+
(0, import_typeorm51.Index)()
|
|
5285
5351
|
], CompanySkill.prototype, "userId", 2);
|
|
5286
5352
|
__decorateClass([
|
|
5287
|
-
(0,
|
|
5288
|
-
(0,
|
|
5353
|
+
(0, import_typeorm51.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
5354
|
+
(0, import_typeorm51.JoinColumn)({ name: "user_id" })
|
|
5289
5355
|
], CompanySkill.prototype, "user", 2);
|
|
5290
5356
|
__decorateClass([
|
|
5291
|
-
(0,
|
|
5357
|
+
(0, import_typeorm51.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
5292
5358
|
], CompanySkill.prototype, "skillName", 2);
|
|
5293
5359
|
CompanySkill = __decorateClass([
|
|
5294
|
-
(0,
|
|
5360
|
+
(0, import_typeorm51.Entity)("company_skills")
|
|
5295
5361
|
], CompanySkill);
|
|
5296
5362
|
|
|
5297
5363
|
// src/entities/admin-user-role.entity.ts
|
|
5298
|
-
var
|
|
5364
|
+
var import_typeorm55 = require("typeorm");
|
|
5299
5365
|
|
|
5300
5366
|
// src/entities/admin-role.entity.ts
|
|
5301
|
-
var
|
|
5367
|
+
var import_typeorm54 = require("typeorm");
|
|
5302
5368
|
|
|
5303
5369
|
// src/entities/admin-role-permission.entity.ts
|
|
5304
|
-
var
|
|
5370
|
+
var import_typeorm53 = require("typeorm");
|
|
5305
5371
|
|
|
5306
5372
|
// src/entities/admin-permission.entity.ts
|
|
5307
|
-
var
|
|
5373
|
+
var import_typeorm52 = require("typeorm");
|
|
5308
5374
|
var AdminPermission = class extends BaseEntity {
|
|
5309
5375
|
};
|
|
5310
5376
|
__decorateClass([
|
|
5311
|
-
(0,
|
|
5377
|
+
(0, import_typeorm52.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
5312
5378
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5313
5379
|
__decorateClass([
|
|
5314
|
-
(0,
|
|
5380
|
+
(0, import_typeorm52.Column)({
|
|
5315
5381
|
name: "permission_slug",
|
|
5316
5382
|
type: "varchar",
|
|
5317
5383
|
unique: true,
|
|
5318
5384
|
nullable: true
|
|
5319
5385
|
}),
|
|
5320
|
-
(0,
|
|
5386
|
+
(0, import_typeorm52.Index)()
|
|
5321
5387
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5322
5388
|
__decorateClass([
|
|
5323
|
-
(0,
|
|
5389
|
+
(0, import_typeorm52.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
5324
5390
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5325
5391
|
__decorateClass([
|
|
5326
|
-
(0,
|
|
5392
|
+
(0, import_typeorm52.Column)({ name: "module", type: "varchar", nullable: true })
|
|
5327
5393
|
], AdminPermission.prototype, "module", 2);
|
|
5328
5394
|
__decorateClass([
|
|
5329
|
-
(0,
|
|
5395
|
+
(0, import_typeorm52.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5330
5396
|
], AdminPermission.prototype, "isActive", 2);
|
|
5331
5397
|
__decorateClass([
|
|
5332
|
-
(0,
|
|
5398
|
+
(0, import_typeorm52.OneToMany)(
|
|
5333
5399
|
() => AdminRolePermission,
|
|
5334
5400
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5335
5401
|
)
|
|
5336
5402
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5337
5403
|
AdminPermission = __decorateClass([
|
|
5338
|
-
(0,
|
|
5404
|
+
(0, import_typeorm52.Entity)("admin_permissions")
|
|
5339
5405
|
], AdminPermission);
|
|
5340
5406
|
|
|
5341
5407
|
// src/entities/admin-role-permission.entity.ts
|
|
5342
5408
|
var AdminRolePermission = class extends BaseEntity {
|
|
5343
5409
|
};
|
|
5344
5410
|
__decorateClass([
|
|
5345
|
-
(0,
|
|
5411
|
+
(0, import_typeorm53.Column)({
|
|
5346
5412
|
name: "role_id",
|
|
5347
5413
|
type: "int",
|
|
5348
5414
|
nullable: true,
|
|
@@ -5350,11 +5416,11 @@ __decorateClass([
|
|
|
5350
5416
|
})
|
|
5351
5417
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5352
5418
|
__decorateClass([
|
|
5353
|
-
(0,
|
|
5354
|
-
(0,
|
|
5419
|
+
(0, import_typeorm53.ManyToOne)(() => AdminRole),
|
|
5420
|
+
(0, import_typeorm53.JoinColumn)({ name: "role_id" })
|
|
5355
5421
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5356
5422
|
__decorateClass([
|
|
5357
|
-
(0,
|
|
5423
|
+
(0, import_typeorm53.Column)({
|
|
5358
5424
|
name: "permission_id",
|
|
5359
5425
|
type: "int",
|
|
5360
5426
|
nullable: true,
|
|
@@ -5362,47 +5428,47 @@ __decorateClass([
|
|
|
5362
5428
|
})
|
|
5363
5429
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5364
5430
|
__decorateClass([
|
|
5365
|
-
(0,
|
|
5366
|
-
(0,
|
|
5431
|
+
(0, import_typeorm53.ManyToOne)(() => AdminPermission),
|
|
5432
|
+
(0, import_typeorm53.JoinColumn)({ name: "permission_id" })
|
|
5367
5433
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5368
5434
|
AdminRolePermission = __decorateClass([
|
|
5369
|
-
(0,
|
|
5435
|
+
(0, import_typeorm53.Entity)("admin_role_permissions")
|
|
5370
5436
|
], AdminRolePermission);
|
|
5371
5437
|
|
|
5372
5438
|
// src/entities/admin-role.entity.ts
|
|
5373
5439
|
var AdminRole = class extends BaseEntity {
|
|
5374
5440
|
};
|
|
5375
5441
|
__decorateClass([
|
|
5376
|
-
(0,
|
|
5442
|
+
(0, import_typeorm54.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
5377
5443
|
], AdminRole.prototype, "roleName", 2);
|
|
5378
5444
|
__decorateClass([
|
|
5379
|
-
(0,
|
|
5380
|
-
(0,
|
|
5445
|
+
(0, import_typeorm54.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5446
|
+
(0, import_typeorm54.Index)()
|
|
5381
5447
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5382
5448
|
__decorateClass([
|
|
5383
|
-
(0,
|
|
5449
|
+
(0, import_typeorm54.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
5384
5450
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5385
5451
|
__decorateClass([
|
|
5386
|
-
(0,
|
|
5452
|
+
(0, import_typeorm54.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5387
5453
|
], AdminRole.prototype, "isActive", 2);
|
|
5388
5454
|
__decorateClass([
|
|
5389
|
-
(0,
|
|
5455
|
+
(0, import_typeorm54.OneToMany)(
|
|
5390
5456
|
() => AdminRolePermission,
|
|
5391
5457
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5392
5458
|
)
|
|
5393
5459
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5394
5460
|
__decorateClass([
|
|
5395
|
-
(0,
|
|
5461
|
+
(0, import_typeorm54.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5396
5462
|
], AdminRole.prototype, "userRoles", 2);
|
|
5397
5463
|
AdminRole = __decorateClass([
|
|
5398
|
-
(0,
|
|
5464
|
+
(0, import_typeorm54.Entity)("admin_roles")
|
|
5399
5465
|
], AdminRole);
|
|
5400
5466
|
|
|
5401
5467
|
// src/entities/admin-user-role.entity.ts
|
|
5402
5468
|
var AdminUserRole = class extends BaseEntity {
|
|
5403
5469
|
};
|
|
5404
5470
|
__decorateClass([
|
|
5405
|
-
(0,
|
|
5471
|
+
(0, import_typeorm55.Column)({
|
|
5406
5472
|
name: "user_id",
|
|
5407
5473
|
type: "int",
|
|
5408
5474
|
nullable: true,
|
|
@@ -5410,11 +5476,11 @@ __decorateClass([
|
|
|
5410
5476
|
})
|
|
5411
5477
|
], AdminUserRole.prototype, "userId", 2);
|
|
5412
5478
|
__decorateClass([
|
|
5413
|
-
(0,
|
|
5414
|
-
(0,
|
|
5479
|
+
(0, import_typeorm55.ManyToOne)(() => User),
|
|
5480
|
+
(0, import_typeorm55.JoinColumn)({ name: "user_id" })
|
|
5415
5481
|
], AdminUserRole.prototype, "user", 2);
|
|
5416
5482
|
__decorateClass([
|
|
5417
|
-
(0,
|
|
5483
|
+
(0, import_typeorm55.Column)({
|
|
5418
5484
|
name: "role_id",
|
|
5419
5485
|
type: "int",
|
|
5420
5486
|
nullable: true,
|
|
@@ -5422,58 +5488,58 @@ __decorateClass([
|
|
|
5422
5488
|
})
|
|
5423
5489
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5424
5490
|
__decorateClass([
|
|
5425
|
-
(0,
|
|
5426
|
-
(0,
|
|
5491
|
+
(0, import_typeorm55.ManyToOne)(() => AdminRole),
|
|
5492
|
+
(0, import_typeorm55.JoinColumn)({ name: "role_id" })
|
|
5427
5493
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5428
5494
|
AdminUserRole = __decorateClass([
|
|
5429
|
-
(0,
|
|
5495
|
+
(0, import_typeorm55.Entity)("admin_user_roles")
|
|
5430
5496
|
], AdminUserRole);
|
|
5431
5497
|
|
|
5432
5498
|
// src/entities/freelancer-resume.entity.ts
|
|
5433
|
-
var
|
|
5499
|
+
var import_typeorm56 = require("typeorm");
|
|
5434
5500
|
var FreelancerResume = class extends BaseEntity {
|
|
5435
5501
|
};
|
|
5436
5502
|
// individual index to find profile by user
|
|
5437
5503
|
__decorateClass([
|
|
5438
|
-
(0,
|
|
5439
|
-
(0,
|
|
5504
|
+
(0, import_typeorm56.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5505
|
+
(0, import_typeorm56.Index)()
|
|
5440
5506
|
], FreelancerResume.prototype, "userId", 2);
|
|
5441
5507
|
__decorateClass([
|
|
5442
|
-
(0,
|
|
5443
|
-
(0,
|
|
5508
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
5509
|
+
(0, import_typeorm56.JoinColumn)({ name: "user_id" })
|
|
5444
5510
|
], FreelancerResume.prototype, "user", 2);
|
|
5445
5511
|
__decorateClass([
|
|
5446
|
-
(0,
|
|
5512
|
+
(0, import_typeorm56.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5447
5513
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5448
5514
|
__decorateClass([
|
|
5449
|
-
(0,
|
|
5515
|
+
(0, import_typeorm56.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5450
5516
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5451
5517
|
FreelancerResume = __decorateClass([
|
|
5452
|
-
(0,
|
|
5518
|
+
(0, import_typeorm56.Entity)("freelancer_resumes")
|
|
5453
5519
|
], FreelancerResume);
|
|
5454
5520
|
|
|
5455
5521
|
// src/entities/signature.entity.ts
|
|
5456
|
-
var
|
|
5522
|
+
var import_typeorm57 = require("typeorm");
|
|
5457
5523
|
var Signature = class extends BaseEntity {
|
|
5458
5524
|
};
|
|
5459
5525
|
// individual index to find profile by user
|
|
5460
5526
|
__decorateClass([
|
|
5461
|
-
(0,
|
|
5462
|
-
(0,
|
|
5527
|
+
(0, import_typeorm57.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5528
|
+
(0, import_typeorm57.Index)()
|
|
5463
5529
|
], Signature.prototype, "userId", 2);
|
|
5464
5530
|
__decorateClass([
|
|
5465
|
-
(0,
|
|
5466
|
-
(0,
|
|
5531
|
+
(0, import_typeorm57.ManyToOne)(() => User, (user) => user.signatures),
|
|
5532
|
+
(0, import_typeorm57.JoinColumn)({ name: "user_id" })
|
|
5467
5533
|
], Signature.prototype, "user", 2);
|
|
5468
5534
|
__decorateClass([
|
|
5469
|
-
(0,
|
|
5535
|
+
(0, import_typeorm57.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
5470
5536
|
], Signature.prototype, "signatureUrl", 2);
|
|
5471
5537
|
Signature = __decorateClass([
|
|
5472
|
-
(0,
|
|
5538
|
+
(0, import_typeorm57.Entity)("signatures")
|
|
5473
5539
|
], Signature);
|
|
5474
5540
|
|
|
5475
5541
|
// src/entities/dispute.entity.ts
|
|
5476
|
-
var
|
|
5542
|
+
var import_typeorm58 = require("typeorm");
|
|
5477
5543
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5478
5544
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5479
5545
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5494,36 +5560,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5494
5560
|
var Dispute = class extends BaseEntity {
|
|
5495
5561
|
};
|
|
5496
5562
|
__decorateClass([
|
|
5497
|
-
(0,
|
|
5498
|
-
(0,
|
|
5563
|
+
(0, import_typeorm58.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
5564
|
+
(0, import_typeorm58.Index)()
|
|
5499
5565
|
], Dispute.prototype, "clientId", 2);
|
|
5500
5566
|
__decorateClass([
|
|
5501
|
-
(0,
|
|
5502
|
-
(0,
|
|
5567
|
+
(0, import_typeorm58.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
5568
|
+
(0, import_typeorm58.JoinColumn)({ name: "client_id" })
|
|
5503
5569
|
], Dispute.prototype, "client", 2);
|
|
5504
5570
|
__decorateClass([
|
|
5505
|
-
(0,
|
|
5506
|
-
(0,
|
|
5571
|
+
(0, import_typeorm58.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5572
|
+
(0, import_typeorm58.Index)()
|
|
5507
5573
|
], Dispute.prototype, "freelancerId", 2);
|
|
5508
5574
|
__decorateClass([
|
|
5509
|
-
(0,
|
|
5510
|
-
(0,
|
|
5575
|
+
(0, import_typeorm58.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
5576
|
+
(0, import_typeorm58.JoinColumn)({ name: "freelancer_id" })
|
|
5511
5577
|
], Dispute.prototype, "freelancer", 2);
|
|
5512
5578
|
__decorateClass([
|
|
5513
|
-
(0,
|
|
5579
|
+
(0, import_typeorm58.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5514
5580
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5515
5581
|
__decorateClass([
|
|
5516
|
-
(0,
|
|
5517
|
-
(0,
|
|
5582
|
+
(0, import_typeorm58.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5583
|
+
(0, import_typeorm58.Index)()
|
|
5518
5584
|
], Dispute.prototype, "disputeType", 2);
|
|
5519
5585
|
__decorateClass([
|
|
5520
|
-
(0,
|
|
5586
|
+
(0, import_typeorm58.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5521
5587
|
], Dispute.prototype, "description", 2);
|
|
5522
5588
|
__decorateClass([
|
|
5523
|
-
(0,
|
|
5589
|
+
(0, import_typeorm58.Column)({ name: "comment", type: "varchar", nullable: true })
|
|
5524
5590
|
], Dispute.prototype, "comment", 2);
|
|
5525
5591
|
__decorateClass([
|
|
5526
|
-
(0,
|
|
5592
|
+
(0, import_typeorm58.Column)({
|
|
5527
5593
|
name: "status",
|
|
5528
5594
|
type: "enum",
|
|
5529
5595
|
enum: DisputeStatusEnum,
|
|
@@ -5531,7 +5597,7 @@ __decorateClass([
|
|
|
5531
5597
|
})
|
|
5532
5598
|
], Dispute.prototype, "status", 2);
|
|
5533
5599
|
__decorateClass([
|
|
5534
|
-
(0,
|
|
5600
|
+
(0, import_typeorm58.Column)({
|
|
5535
5601
|
name: "initiator_type",
|
|
5536
5602
|
type: "enum",
|
|
5537
5603
|
enum: InitiatorTypeEnum,
|
|
@@ -5540,33 +5606,33 @@ __decorateClass([
|
|
|
5540
5606
|
})
|
|
5541
5607
|
], Dispute.prototype, "initiatorType", 2);
|
|
5542
5608
|
__decorateClass([
|
|
5543
|
-
(0,
|
|
5544
|
-
(0,
|
|
5609
|
+
(0, import_typeorm58.Column)({ name: "initiator_id", type: "integer" }),
|
|
5610
|
+
(0, import_typeorm58.Index)()
|
|
5545
5611
|
], Dispute.prototype, "initiatorId", 2);
|
|
5546
5612
|
__decorateClass([
|
|
5547
|
-
(0,
|
|
5548
|
-
(0,
|
|
5613
|
+
(0, import_typeorm58.ManyToOne)(() => User, (user) => user.initiatedDisputes),
|
|
5614
|
+
(0, import_typeorm58.JoinColumn)({ name: "initiator_id" })
|
|
5549
5615
|
], Dispute.prototype, "initiator", 2);
|
|
5550
5616
|
__decorateClass([
|
|
5551
|
-
(0,
|
|
5552
|
-
(0,
|
|
5617
|
+
(0, import_typeorm58.Column)({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5618
|
+
(0, import_typeorm58.Index)()
|
|
5553
5619
|
], Dispute.prototype, "respondentId", 2);
|
|
5554
5620
|
__decorateClass([
|
|
5555
|
-
(0,
|
|
5556
|
-
(0,
|
|
5621
|
+
(0, import_typeorm58.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5622
|
+
(0, import_typeorm58.JoinColumn)({ name: "respondent_id" })
|
|
5557
5623
|
], Dispute.prototype, "respondent", 2);
|
|
5558
5624
|
__decorateClass([
|
|
5559
|
-
(0,
|
|
5625
|
+
(0, import_typeorm58.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
5560
5626
|
], Dispute.prototype, "attachments", 2);
|
|
5561
5627
|
__decorateClass([
|
|
5562
|
-
(0,
|
|
5628
|
+
(0, import_typeorm58.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5563
5629
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5564
5630
|
Dispute = __decorateClass([
|
|
5565
|
-
(0,
|
|
5631
|
+
(0, import_typeorm58.Entity)("disputes")
|
|
5566
5632
|
], Dispute);
|
|
5567
5633
|
|
|
5568
5634
|
// src/entities/stripe-transaction.entity.ts
|
|
5569
|
-
var
|
|
5635
|
+
var import_typeorm59 = require("typeorm");
|
|
5570
5636
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5571
5637
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5572
5638
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5588,97 +5654,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5588
5654
|
// Full Stripe session response
|
|
5589
5655
|
};
|
|
5590
5656
|
__decorateClass([
|
|
5591
|
-
(0,
|
|
5592
|
-
(0,
|
|
5657
|
+
(0, import_typeorm59.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5658
|
+
(0, import_typeorm59.Index)()
|
|
5593
5659
|
], StripeTransaction.prototype, "userId", 2);
|
|
5594
5660
|
__decorateClass([
|
|
5595
|
-
(0,
|
|
5596
|
-
(0,
|
|
5661
|
+
(0, import_typeorm59.ManyToOne)(() => User, (user) => user.stripeTransactions),
|
|
5662
|
+
(0, import_typeorm59.JoinColumn)({ name: "user_id" })
|
|
5597
5663
|
], StripeTransaction.prototype, "user", 2);
|
|
5598
5664
|
__decorateClass([
|
|
5599
|
-
(0,
|
|
5665
|
+
(0, import_typeorm59.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5600
5666
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5601
5667
|
__decorateClass([
|
|
5602
|
-
(0,
|
|
5668
|
+
(0, import_typeorm59.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5603
5669
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5604
5670
|
__decorateClass([
|
|
5605
|
-
(0,
|
|
5671
|
+
(0, import_typeorm59.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5606
5672
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5607
5673
|
__decorateClass([
|
|
5608
|
-
(0,
|
|
5674
|
+
(0, import_typeorm59.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5609
5675
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5610
5676
|
__decorateClass([
|
|
5611
|
-
(0,
|
|
5677
|
+
(0, import_typeorm59.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5612
5678
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5613
5679
|
__decorateClass([
|
|
5614
|
-
(0,
|
|
5680
|
+
(0, import_typeorm59.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5615
5681
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5616
5682
|
__decorateClass([
|
|
5617
|
-
(0,
|
|
5683
|
+
(0, import_typeorm59.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5618
5684
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5619
5685
|
__decorateClass([
|
|
5620
|
-
(0,
|
|
5686
|
+
(0, import_typeorm59.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5621
5687
|
], StripeTransaction.prototype, "type", 2);
|
|
5622
5688
|
__decorateClass([
|
|
5623
|
-
(0,
|
|
5689
|
+
(0, import_typeorm59.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
5624
5690
|
], StripeTransaction.prototype, "currency", 2);
|
|
5625
5691
|
__decorateClass([
|
|
5626
|
-
(0,
|
|
5692
|
+
(0, import_typeorm59.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" })
|
|
5627
5693
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5628
5694
|
__decorateClass([
|
|
5629
|
-
(0,
|
|
5695
|
+
(0, import_typeorm59.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5630
5696
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5631
5697
|
__decorateClass([
|
|
5632
|
-
(0,
|
|
5698
|
+
(0, import_typeorm59.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5633
5699
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5634
5700
|
__decorateClass([
|
|
5635
|
-
(0,
|
|
5701
|
+
(0, import_typeorm59.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5636
5702
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5637
5703
|
__decorateClass([
|
|
5638
|
-
(0,
|
|
5704
|
+
(0, import_typeorm59.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" })
|
|
5639
5705
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5640
5706
|
__decorateClass([
|
|
5641
|
-
(0,
|
|
5707
|
+
(0, import_typeorm59.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5642
5708
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5643
5709
|
__decorateClass([
|
|
5644
|
-
(0,
|
|
5710
|
+
(0, import_typeorm59.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5645
5711
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5646
5712
|
__decorateClass([
|
|
5647
|
-
(0,
|
|
5713
|
+
(0, import_typeorm59.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" })
|
|
5648
5714
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5649
5715
|
__decorateClass([
|
|
5650
|
-
(0,
|
|
5716
|
+
(0, import_typeorm59.Column)({ name: "description", type: "text", nullable: true })
|
|
5651
5717
|
], StripeTransaction.prototype, "description", 2);
|
|
5652
5718
|
__decorateClass([
|
|
5653
|
-
(0,
|
|
5719
|
+
(0, import_typeorm59.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5654
5720
|
], StripeTransaction.prototype, "status", 2);
|
|
5655
5721
|
__decorateClass([
|
|
5656
|
-
(0,
|
|
5722
|
+
(0, import_typeorm59.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5657
5723
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5658
5724
|
__decorateClass([
|
|
5659
|
-
(0,
|
|
5725
|
+
(0, import_typeorm59.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5660
5726
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5661
5727
|
__decorateClass([
|
|
5662
|
-
(0,
|
|
5728
|
+
(0, import_typeorm59.Column)({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5663
5729
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5664
5730
|
__decorateClass([
|
|
5665
|
-
(0,
|
|
5731
|
+
(0, import_typeorm59.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5666
5732
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5667
5733
|
__decorateClass([
|
|
5668
|
-
(0,
|
|
5734
|
+
(0, import_typeorm59.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5669
5735
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5670
5736
|
__decorateClass([
|
|
5671
|
-
(0,
|
|
5737
|
+
(0, import_typeorm59.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5672
5738
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5673
5739
|
StripeTransaction = __decorateClass([
|
|
5674
|
-
(0,
|
|
5740
|
+
(0, import_typeorm59.Entity)("stripe_transactions")
|
|
5675
5741
|
], StripeTransaction);
|
|
5676
5742
|
|
|
5677
5743
|
// src/entities/wallet.entity.ts
|
|
5678
|
-
var
|
|
5744
|
+
var import_typeorm61 = require("typeorm");
|
|
5679
5745
|
|
|
5680
5746
|
// src/entities/wallet-transaction.entity.ts
|
|
5681
|
-
var
|
|
5747
|
+
var import_typeorm60 = require("typeorm");
|
|
5682
5748
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5683
5749
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5684
5750
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5695,46 +5761,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5695
5761
|
var WalletTransaction = class extends BaseEntity {
|
|
5696
5762
|
};
|
|
5697
5763
|
__decorateClass([
|
|
5698
|
-
(0,
|
|
5699
|
-
(0,
|
|
5764
|
+
(0, import_typeorm60.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5765
|
+
(0, import_typeorm60.Index)()
|
|
5700
5766
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5701
5767
|
__decorateClass([
|
|
5702
|
-
(0,
|
|
5703
|
-
(0,
|
|
5768
|
+
(0, import_typeorm60.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5769
|
+
(0, import_typeorm60.JoinColumn)({ name: "wallet_id" })
|
|
5704
5770
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5705
5771
|
__decorateClass([
|
|
5706
|
-
(0,
|
|
5772
|
+
(0, import_typeorm60.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
5707
5773
|
], WalletTransaction.prototype, "amount", 2);
|
|
5708
5774
|
__decorateClass([
|
|
5709
|
-
(0,
|
|
5775
|
+
(0, import_typeorm60.Column)({ name: "balance_before", type: "bigint", nullable: true })
|
|
5710
5776
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5711
5777
|
__decorateClass([
|
|
5712
|
-
(0,
|
|
5778
|
+
(0, import_typeorm60.Column)({ name: "balance_after", type: "bigint", nullable: true })
|
|
5713
5779
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5714
5780
|
__decorateClass([
|
|
5715
|
-
(0,
|
|
5781
|
+
(0, import_typeorm60.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5716
5782
|
], WalletTransaction.prototype, "type", 2);
|
|
5717
5783
|
__decorateClass([
|
|
5718
|
-
(0,
|
|
5784
|
+
(0, import_typeorm60.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5719
5785
|
], WalletTransaction.prototype, "status", 2);
|
|
5720
5786
|
__decorateClass([
|
|
5721
|
-
(0,
|
|
5787
|
+
(0, import_typeorm60.Column)({ name: "description", type: "text", nullable: true })
|
|
5722
5788
|
], WalletTransaction.prototype, "description", 2);
|
|
5723
5789
|
__decorateClass([
|
|
5724
|
-
(0,
|
|
5790
|
+
(0, import_typeorm60.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5725
5791
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5726
5792
|
__decorateClass([
|
|
5727
|
-
(0,
|
|
5793
|
+
(0, import_typeorm60.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5728
5794
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5729
5795
|
__decorateClass([
|
|
5730
|
-
(0,
|
|
5796
|
+
(0, import_typeorm60.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
5731
5797
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5732
5798
|
__decorateClass([
|
|
5733
|
-
(0,
|
|
5734
|
-
(0,
|
|
5799
|
+
(0, import_typeorm60.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5800
|
+
(0, import_typeorm60.Index)()
|
|
5735
5801
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5736
5802
|
WalletTransaction = __decorateClass([
|
|
5737
|
-
(0,
|
|
5803
|
+
(0, import_typeorm60.Entity)("wallet_transactions")
|
|
5738
5804
|
], WalletTransaction);
|
|
5739
5805
|
|
|
5740
5806
|
// src/entities/wallet.entity.ts
|
|
@@ -5752,39 +5818,39 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5752
5818
|
var Wallet = class extends BaseEntity {
|
|
5753
5819
|
};
|
|
5754
5820
|
__decorateClass([
|
|
5755
|
-
(0,
|
|
5756
|
-
(0,
|
|
5821
|
+
(0, import_typeorm61.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5822
|
+
(0, import_typeorm61.Index)()
|
|
5757
5823
|
], Wallet.prototype, "userId", 2);
|
|
5758
5824
|
__decorateClass([
|
|
5759
|
-
(0,
|
|
5760
|
-
(0,
|
|
5825
|
+
(0, import_typeorm61.OneToOne)(() => User, (user) => user.wallet),
|
|
5826
|
+
(0, import_typeorm61.JoinColumn)({ name: "user_id" })
|
|
5761
5827
|
], Wallet.prototype, "user", 2);
|
|
5762
5828
|
__decorateClass([
|
|
5763
|
-
(0,
|
|
5829
|
+
(0, import_typeorm61.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5764
5830
|
], Wallet.prototype, "accountType", 2);
|
|
5765
5831
|
__decorateClass([
|
|
5766
|
-
(0,
|
|
5832
|
+
(0, import_typeorm61.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5767
5833
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5768
5834
|
__decorateClass([
|
|
5769
|
-
(0,
|
|
5835
|
+
(0, import_typeorm61.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5770
5836
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5771
5837
|
__decorateClass([
|
|
5772
|
-
(0,
|
|
5838
|
+
(0, import_typeorm61.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" })
|
|
5773
5839
|
], Wallet.prototype, "walletBalance", 2);
|
|
5774
5840
|
__decorateClass([
|
|
5775
|
-
(0,
|
|
5841
|
+
(0, import_typeorm61.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" })
|
|
5776
5842
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5777
5843
|
__decorateClass([
|
|
5778
|
-
(0,
|
|
5844
|
+
(0, import_typeorm61.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5779
5845
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5780
5846
|
__decorateClass([
|
|
5781
|
-
(0,
|
|
5847
|
+
(0, import_typeorm61.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5782
5848
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5783
5849
|
__decorateClass([
|
|
5784
|
-
(0,
|
|
5850
|
+
(0, import_typeorm61.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5785
5851
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5786
5852
|
Wallet = __decorateClass([
|
|
5787
|
-
(0,
|
|
5853
|
+
(0, import_typeorm61.Entity)("wallets")
|
|
5788
5854
|
], Wallet);
|
|
5789
5855
|
|
|
5790
5856
|
// src/entities/user.entity.ts
|
|
@@ -5812,51 +5878,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5812
5878
|
var User = class extends BaseEntity {
|
|
5813
5879
|
};
|
|
5814
5880
|
__decorateClass([
|
|
5815
|
-
(0,
|
|
5881
|
+
(0, import_typeorm62.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
5816
5882
|
], User.prototype, "uniqueId", 2);
|
|
5817
5883
|
__decorateClass([
|
|
5818
|
-
(0,
|
|
5819
|
-
(0,
|
|
5884
|
+
(0, import_typeorm62.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
5885
|
+
(0, import_typeorm62.Index)()
|
|
5820
5886
|
], User.prototype, "parentId", 2);
|
|
5821
5887
|
__decorateClass([
|
|
5822
|
-
(0,
|
|
5823
|
-
(0,
|
|
5888
|
+
(0, import_typeorm62.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
5889
|
+
(0, import_typeorm62.JoinColumn)({ name: "parent_id" })
|
|
5824
5890
|
], User.prototype, "parent", 2);
|
|
5825
5891
|
__decorateClass([
|
|
5826
|
-
(0,
|
|
5892
|
+
(0, import_typeorm62.OneToMany)(() => User, (user) => user.parent)
|
|
5827
5893
|
], User.prototype, "children", 2);
|
|
5828
5894
|
__decorateClass([
|
|
5829
|
-
(0,
|
|
5895
|
+
(0, import_typeorm62.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5830
5896
|
], User.prototype, "username", 2);
|
|
5831
5897
|
__decorateClass([
|
|
5832
|
-
(0,
|
|
5898
|
+
(0, import_typeorm62.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5833
5899
|
], User.prototype, "firstName", 2);
|
|
5834
5900
|
__decorateClass([
|
|
5835
|
-
(0,
|
|
5901
|
+
(0, import_typeorm62.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5836
5902
|
], User.prototype, "lastName", 2);
|
|
5837
5903
|
__decorateClass([
|
|
5838
|
-
(0,
|
|
5904
|
+
(0, import_typeorm62.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
5839
5905
|
], User.prototype, "dateOfBirth", 2);
|
|
5840
5906
|
__decorateClass([
|
|
5841
|
-
(0,
|
|
5907
|
+
(0, import_typeorm62.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5842
5908
|
], User.prototype, "gender", 2);
|
|
5843
5909
|
__decorateClass([
|
|
5844
|
-
(0,
|
|
5910
|
+
(0, import_typeorm62.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5845
5911
|
], User.prototype, "profilePictureUrl", 2);
|
|
5846
5912
|
__decorateClass([
|
|
5847
|
-
(0,
|
|
5913
|
+
(0, import_typeorm62.Column)({ name: "email", type: "varchar", unique: true })
|
|
5848
5914
|
], User.prototype, "email", 2);
|
|
5849
5915
|
__decorateClass([
|
|
5850
|
-
(0,
|
|
5916
|
+
(0, import_typeorm62.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5851
5917
|
], User.prototype, "mobileCode", 2);
|
|
5852
5918
|
__decorateClass([
|
|
5853
|
-
(0,
|
|
5919
|
+
(0, import_typeorm62.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5854
5920
|
], User.prototype, "mobile", 2);
|
|
5855
5921
|
__decorateClass([
|
|
5856
|
-
(0,
|
|
5922
|
+
(0, import_typeorm62.Column)({ name: "password", type: "varchar", nullable: true })
|
|
5857
5923
|
], User.prototype, "password", 2);
|
|
5858
5924
|
__decorateClass([
|
|
5859
|
-
(0,
|
|
5925
|
+
(0, import_typeorm62.Column)({
|
|
5860
5926
|
name: "account_type",
|
|
5861
5927
|
type: "enum",
|
|
5862
5928
|
enum: AccountType,
|
|
@@ -5864,7 +5930,7 @@ __decorateClass([
|
|
|
5864
5930
|
})
|
|
5865
5931
|
], User.prototype, "accountType", 2);
|
|
5866
5932
|
__decorateClass([
|
|
5867
|
-
(0,
|
|
5933
|
+
(0, import_typeorm62.Column)({
|
|
5868
5934
|
name: "account_status",
|
|
5869
5935
|
type: "enum",
|
|
5870
5936
|
enum: AccountStatus,
|
|
@@ -5872,42 +5938,42 @@ __decorateClass([
|
|
|
5872
5938
|
})
|
|
5873
5939
|
], User.prototype, "accountStatus", 2);
|
|
5874
5940
|
__decorateClass([
|
|
5875
|
-
(0,
|
|
5941
|
+
(0, import_typeorm62.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
5876
5942
|
], User.prototype, "isEmailVerified", 2);
|
|
5877
5943
|
__decorateClass([
|
|
5878
|
-
(0,
|
|
5944
|
+
(0, import_typeorm62.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5879
5945
|
], User.prototype, "isMobileVerified", 2);
|
|
5880
5946
|
__decorateClass([
|
|
5881
|
-
(0,
|
|
5947
|
+
(0, import_typeorm62.Column)({ name: "is_social", type: "boolean", default: false })
|
|
5882
5948
|
], User.prototype, "isSocial", 2);
|
|
5883
5949
|
__decorateClass([
|
|
5884
|
-
(0,
|
|
5950
|
+
(0, import_typeorm62.Column)({
|
|
5885
5951
|
name: "last_login_at",
|
|
5886
5952
|
type: "timestamp with time zone",
|
|
5887
5953
|
nullable: true
|
|
5888
5954
|
})
|
|
5889
5955
|
], User.prototype, "lastLoginAt", 2);
|
|
5890
5956
|
__decorateClass([
|
|
5891
|
-
(0,
|
|
5957
|
+
(0, import_typeorm62.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5892
5958
|
], User.prototype, "lastLoginIp", 2);
|
|
5893
5959
|
__decorateClass([
|
|
5894
|
-
(0,
|
|
5960
|
+
(0, import_typeorm62.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
5895
5961
|
], User.prototype, "resetToken", 2);
|
|
5896
5962
|
__decorateClass([
|
|
5897
|
-
(0,
|
|
5963
|
+
(0, import_typeorm62.Column)({
|
|
5898
5964
|
name: "reset_token_expire_at",
|
|
5899
5965
|
type: "timestamp with time zone",
|
|
5900
5966
|
nullable: true
|
|
5901
5967
|
})
|
|
5902
5968
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5903
5969
|
__decorateClass([
|
|
5904
|
-
(0,
|
|
5970
|
+
(0, import_typeorm62.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5905
5971
|
], User.prototype, "setPasswordToken", 2);
|
|
5906
5972
|
__decorateClass([
|
|
5907
|
-
(0,
|
|
5973
|
+
(0, import_typeorm62.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
5908
5974
|
], User.prototype, "refreshTokens", 2);
|
|
5909
5975
|
__decorateClass([
|
|
5910
|
-
(0,
|
|
5976
|
+
(0, import_typeorm62.Column)({
|
|
5911
5977
|
name: "provider",
|
|
5912
5978
|
type: "enum",
|
|
5913
5979
|
enum: Provider,
|
|
@@ -5916,208 +5982,214 @@ __decorateClass([
|
|
|
5916
5982
|
})
|
|
5917
5983
|
], User.prototype, "provider", 2);
|
|
5918
5984
|
__decorateClass([
|
|
5919
|
-
(0,
|
|
5985
|
+
(0, import_typeorm62.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
5920
5986
|
], User.prototype, "providerToken", 2);
|
|
5921
5987
|
__decorateClass([
|
|
5922
|
-
(0,
|
|
5988
|
+
(0, import_typeorm62.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5923
5989
|
], User.prototype, "linkedInId", 2);
|
|
5924
5990
|
__decorateClass([
|
|
5925
|
-
(0,
|
|
5991
|
+
(0, import_typeorm62.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
5926
5992
|
], User.prototype, "googleId", 2);
|
|
5927
5993
|
__decorateClass([
|
|
5928
|
-
(0,
|
|
5994
|
+
(0, import_typeorm62.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5929
5995
|
], User.prototype, "gitLabsId", 2);
|
|
5930
5996
|
__decorateClass([
|
|
5931
|
-
(0,
|
|
5997
|
+
(0, import_typeorm62.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5932
5998
|
], User.prototype, "onBoardedBy", 2);
|
|
5933
5999
|
__decorateClass([
|
|
5934
|
-
(0,
|
|
6000
|
+
(0, import_typeorm62.OneToMany)(() => Otp, (otp) => otp.user)
|
|
5935
6001
|
], User.prototype, "otps", 2);
|
|
5936
6002
|
__decorateClass([
|
|
5937
|
-
(0,
|
|
6003
|
+
(0, import_typeorm62.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
5938
6004
|
], User.prototype, "senseloafLogs", 2);
|
|
5939
6005
|
__decorateClass([
|
|
5940
|
-
(0,
|
|
6006
|
+
(0, import_typeorm62.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
5941
6007
|
], User.prototype, "companyProfile", 2);
|
|
5942
6008
|
__decorateClass([
|
|
5943
|
-
(0,
|
|
6009
|
+
(0, import_typeorm62.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
5944
6010
|
], User.prototype, "companySkills", 2);
|
|
5945
6011
|
__decorateClass([
|
|
5946
|
-
(0,
|
|
6012
|
+
(0, import_typeorm62.OneToMany)(
|
|
5947
6013
|
() => CompanyMemberRole,
|
|
5948
6014
|
(companyMemberRole) => companyMemberRole.user
|
|
5949
6015
|
)
|
|
5950
6016
|
], User.prototype, "companyMemberRoles", 2);
|
|
5951
6017
|
__decorateClass([
|
|
5952
|
-
(0,
|
|
6018
|
+
(0, import_typeorm62.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
5953
6019
|
], User.prototype, "companyAiInterview", 2);
|
|
5954
6020
|
__decorateClass([
|
|
5955
|
-
(0,
|
|
6021
|
+
(0, import_typeorm62.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
5956
6022
|
], User.prototype, "clientF2FInterviews", 2);
|
|
5957
6023
|
__decorateClass([
|
|
5958
|
-
(0,
|
|
6024
|
+
(0, import_typeorm62.OneToOne)(
|
|
5959
6025
|
() => FreelancerProfile,
|
|
5960
6026
|
(freelancerProfile) => freelancerProfile.user
|
|
5961
6027
|
)
|
|
5962
6028
|
], User.prototype, "freelancerProfile", 2);
|
|
5963
6029
|
__decorateClass([
|
|
5964
|
-
(0,
|
|
6030
|
+
(0, import_typeorm62.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
5965
6031
|
], User.prototype, "freelancerResume", 2);
|
|
5966
6032
|
__decorateClass([
|
|
5967
|
-
(0,
|
|
6033
|
+
(0, import_typeorm62.OneToMany)(
|
|
5968
6034
|
() => FreelancerAssessment,
|
|
5969
6035
|
(freelancerAssessment) => freelancerAssessment.user
|
|
5970
6036
|
)
|
|
5971
6037
|
], User.prototype, "assessments", 2);
|
|
5972
6038
|
__decorateClass([
|
|
5973
|
-
(0,
|
|
6039
|
+
(0, import_typeorm62.OneToMany)(
|
|
5974
6040
|
() => AssessmentAnswer,
|
|
5975
6041
|
(assessmentAnswer) => assessmentAnswer.user
|
|
5976
6042
|
)
|
|
5977
6043
|
], User.prototype, "assessmentAnswers", 2);
|
|
5978
6044
|
__decorateClass([
|
|
5979
|
-
(0,
|
|
6045
|
+
(0, import_typeorm62.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
5980
6046
|
], User.prototype, "freelancerSkills", 2);
|
|
5981
6047
|
__decorateClass([
|
|
5982
|
-
(0,
|
|
6048
|
+
(0, import_typeorm62.OneToMany)(
|
|
5983
6049
|
() => FreelancerExperience,
|
|
5984
6050
|
(freelancerExperience) => freelancerExperience.user
|
|
5985
6051
|
)
|
|
5986
6052
|
], User.prototype, "freelancerExperience", 2);
|
|
5987
6053
|
__decorateClass([
|
|
5988
|
-
(0,
|
|
6054
|
+
(0, import_typeorm62.OneToMany)(
|
|
5989
6055
|
() => FreelancerEducation,
|
|
5990
6056
|
(freelancerEducation) => freelancerEducation.user
|
|
5991
6057
|
)
|
|
5992
6058
|
], User.prototype, "freelancerEducation", 2);
|
|
5993
6059
|
__decorateClass([
|
|
5994
|
-
(0,
|
|
6060
|
+
(0, import_typeorm62.OneToMany)(
|
|
5995
6061
|
() => FreelancerProject,
|
|
5996
6062
|
(freelancerProject) => freelancerProject.user
|
|
5997
6063
|
)
|
|
5998
6064
|
], User.prototype, "freelancerProject", 2);
|
|
5999
6065
|
__decorateClass([
|
|
6000
|
-
(0,
|
|
6066
|
+
(0, import_typeorm62.OneToMany)(
|
|
6001
6067
|
() => FreelancerCaseStudy,
|
|
6002
6068
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6003
6069
|
)
|
|
6004
6070
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6005
6071
|
__decorateClass([
|
|
6006
|
-
(0,
|
|
6072
|
+
(0, import_typeorm62.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6007
6073
|
], User.prototype, "freelancerTool", 2);
|
|
6008
6074
|
__decorateClass([
|
|
6009
|
-
(0,
|
|
6075
|
+
(0, import_typeorm62.OneToMany)(
|
|
6010
6076
|
() => FreelancerFramework,
|
|
6011
6077
|
(freelancerFramework) => freelancerFramework.user
|
|
6012
6078
|
)
|
|
6013
6079
|
], User.prototype, "freelancerFramework", 2);
|
|
6014
6080
|
__decorateClass([
|
|
6015
|
-
(0,
|
|
6081
|
+
(0, import_typeorm62.OneToOne)(
|
|
6016
6082
|
() => FreelancerDeclaration,
|
|
6017
6083
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
6018
6084
|
)
|
|
6019
6085
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6020
6086
|
__decorateClass([
|
|
6021
|
-
(0,
|
|
6087
|
+
(0, import_typeorm62.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6022
6088
|
], User.prototype, "freelancerMcq", 2);
|
|
6023
6089
|
__decorateClass([
|
|
6024
|
-
(0,
|
|
6090
|
+
(0, import_typeorm62.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6025
6091
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6026
6092
|
__decorateClass([
|
|
6027
|
-
(0,
|
|
6093
|
+
(0, import_typeorm62.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6028
6094
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6029
6095
|
__decorateClass([
|
|
6030
|
-
(0,
|
|
6096
|
+
(0, import_typeorm62.OneToMany)(
|
|
6031
6097
|
() => F2fInterviewRescheduleRequest,
|
|
6032
6098
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6033
6099
|
)
|
|
6034
6100
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6035
6101
|
__decorateClass([
|
|
6036
|
-
(0,
|
|
6102
|
+
(0, import_typeorm62.OneToMany)(() => Job, (job) => job.user)
|
|
6037
6103
|
], User.prototype, "jobs", 2);
|
|
6038
6104
|
__decorateClass([
|
|
6039
|
-
(0,
|
|
6105
|
+
(0, import_typeorm62.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6040
6106
|
], User.prototype, "jobApplications", 2);
|
|
6041
6107
|
__decorateClass([
|
|
6042
|
-
(0,
|
|
6108
|
+
(0, import_typeorm62.OneToMany)(() => Interview, (interview) => interview.user)
|
|
6043
6109
|
], User.prototype, "interviews", 2);
|
|
6044
6110
|
__decorateClass([
|
|
6045
|
-
(0,
|
|
6111
|
+
(0, import_typeorm62.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6046
6112
|
], User.prototype, "bankDetail", 2);
|
|
6047
6113
|
__decorateClass([
|
|
6048
|
-
(0,
|
|
6114
|
+
(0, import_typeorm62.OneToMany)(
|
|
6049
6115
|
() => SystemPreference,
|
|
6050
6116
|
(systemPreference) => systemPreference.user
|
|
6051
6117
|
)
|
|
6052
6118
|
], User.prototype, "systemPreference", 2);
|
|
6053
6119
|
__decorateClass([
|
|
6054
|
-
(0,
|
|
6120
|
+
(0, import_typeorm62.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
6055
6121
|
], User.prototype, "givenRatings", 2);
|
|
6056
6122
|
__decorateClass([
|
|
6057
|
-
(0,
|
|
6123
|
+
(0, import_typeorm62.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
6058
6124
|
], User.prototype, "receivedRatings", 2);
|
|
6059
6125
|
__decorateClass([
|
|
6060
|
-
(0,
|
|
6126
|
+
(0, import_typeorm62.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6061
6127
|
], User.prototype, "adminUserRoles", 2);
|
|
6062
6128
|
__decorateClass([
|
|
6063
|
-
(0,
|
|
6129
|
+
(0, import_typeorm62.OneToMany)(() => Contract, (contract) => contract.client)
|
|
6064
6130
|
], User.prototype, "clientContracts", 2);
|
|
6065
6131
|
__decorateClass([
|
|
6066
|
-
(0,
|
|
6132
|
+
(0, import_typeorm62.OneToMany)(() => Hiring, (hiring) => hiring.client)
|
|
6133
|
+
], User.prototype, "clientHirings", 2);
|
|
6134
|
+
__decorateClass([
|
|
6135
|
+
(0, import_typeorm62.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6067
6136
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6068
6137
|
__decorateClass([
|
|
6069
|
-
(0,
|
|
6138
|
+
(0, import_typeorm62.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
6070
6139
|
], User.prototype, "freelancerContracts", 2);
|
|
6071
6140
|
__decorateClass([
|
|
6072
|
-
(0,
|
|
6141
|
+
(0, import_typeorm62.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
|
|
6142
|
+
], User.prototype, "freelancerHirings", 2);
|
|
6143
|
+
__decorateClass([
|
|
6144
|
+
(0, import_typeorm62.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6073
6145
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6074
6146
|
__decorateClass([
|
|
6075
|
-
(0,
|
|
6147
|
+
(0, import_typeorm62.OneToOne)(() => Signature, (signature) => signature.user)
|
|
6076
6148
|
], User.prototype, "signatures", 2);
|
|
6077
6149
|
__decorateClass([
|
|
6078
|
-
(0,
|
|
6150
|
+
(0, import_typeorm62.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
6079
6151
|
], User.prototype, "clientTimesheets", 2);
|
|
6080
6152
|
__decorateClass([
|
|
6081
|
-
(0,
|
|
6153
|
+
(0, import_typeorm62.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6082
6154
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6083
6155
|
__decorateClass([
|
|
6084
|
-
(0,
|
|
6156
|
+
(0, import_typeorm62.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6085
6157
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6086
6158
|
__decorateClass([
|
|
6087
|
-
(0,
|
|
6159
|
+
(0, import_typeorm62.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
6088
6160
|
], User.prototype, "clientInvoice", 2);
|
|
6089
6161
|
__decorateClass([
|
|
6090
|
-
(0,
|
|
6162
|
+
(0, import_typeorm62.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6091
6163
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6092
6164
|
__decorateClass([
|
|
6093
|
-
(0,
|
|
6165
|
+
(0, import_typeorm62.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
6094
6166
|
], User.prototype, "freelancerInvoice", 2);
|
|
6095
6167
|
__decorateClass([
|
|
6096
|
-
(0,
|
|
6168
|
+
(0, import_typeorm62.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6097
6169
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6098
6170
|
__decorateClass([
|
|
6099
|
-
(0,
|
|
6171
|
+
(0, import_typeorm62.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6100
6172
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6101
6173
|
__decorateClass([
|
|
6102
|
-
(0,
|
|
6174
|
+
(0, import_typeorm62.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6103
6175
|
], User.prototype, "initiatedDisputes", 2);
|
|
6104
6176
|
__decorateClass([
|
|
6105
|
-
(0,
|
|
6177
|
+
(0, import_typeorm62.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6106
6178
|
], User.prototype, "respondentDisputes", 2);
|
|
6107
6179
|
__decorateClass([
|
|
6108
|
-
(0,
|
|
6180
|
+
(0, import_typeorm62.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
6109
6181
|
], User.prototype, "wallet", 2);
|
|
6110
6182
|
__decorateClass([
|
|
6111
|
-
(0,
|
|
6183
|
+
(0, import_typeorm62.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6112
6184
|
], User.prototype, "stripeTransactions", 2);
|
|
6113
6185
|
__decorateClass([
|
|
6114
|
-
(0,
|
|
6186
|
+
(0, import_typeorm62.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
6115
6187
|
], User.prototype, "clientDisputes", 2);
|
|
6116
6188
|
__decorateClass([
|
|
6117
|
-
(0,
|
|
6189
|
+
(0, import_typeorm62.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
6118
6190
|
], User.prototype, "freelancerDisputes", 2);
|
|
6119
6191
|
User = __decorateClass([
|
|
6120
|
-
(0,
|
|
6192
|
+
(0, import_typeorm62.Entity)("users")
|
|
6121
6193
|
], User);
|
|
6122
6194
|
|
|
6123
6195
|
// src/entities/rating.entity.ts
|
|
@@ -6129,36 +6201,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
6129
6201
|
var Rating = class extends BaseEntity {
|
|
6130
6202
|
};
|
|
6131
6203
|
__decorateClass([
|
|
6132
|
-
(0,
|
|
6133
|
-
(0,
|
|
6204
|
+
(0, import_typeorm63.Column)({ name: "reviewer_id", type: "integer" }),
|
|
6205
|
+
(0, import_typeorm63.Index)()
|
|
6134
6206
|
], Rating.prototype, "reviewer_id", 2);
|
|
6135
6207
|
__decorateClass([
|
|
6136
|
-
(0,
|
|
6137
|
-
(0,
|
|
6208
|
+
(0, import_typeorm63.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
6209
|
+
(0, import_typeorm63.JoinColumn)({ name: "reviewer_id" })
|
|
6138
6210
|
], Rating.prototype, "reviewer", 2);
|
|
6139
6211
|
__decorateClass([
|
|
6140
|
-
(0,
|
|
6141
|
-
(0,
|
|
6212
|
+
(0, import_typeorm63.Column)({ name: "reviewee_id", type: "integer" }),
|
|
6213
|
+
(0, import_typeorm63.Index)()
|
|
6142
6214
|
], Rating.prototype, "reviewee_id", 2);
|
|
6143
6215
|
__decorateClass([
|
|
6144
|
-
(0,
|
|
6145
|
-
(0,
|
|
6216
|
+
(0, import_typeorm63.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
6217
|
+
(0, import_typeorm63.JoinColumn)({ name: "reviewee_id" })
|
|
6146
6218
|
], Rating.prototype, "reviewee", 2);
|
|
6147
6219
|
__decorateClass([
|
|
6148
|
-
(0,
|
|
6220
|
+
(0, import_typeorm63.Column)({
|
|
6149
6221
|
type: "enum",
|
|
6150
6222
|
enum: RatingTypeEnum,
|
|
6151
6223
|
nullable: true
|
|
6152
6224
|
})
|
|
6153
6225
|
], Rating.prototype, "ratingType", 2);
|
|
6154
6226
|
__decorateClass([
|
|
6155
|
-
(0,
|
|
6227
|
+
(0, import_typeorm63.Column)({ type: "integer", nullable: true })
|
|
6156
6228
|
], Rating.prototype, "rating", 2);
|
|
6157
6229
|
__decorateClass([
|
|
6158
|
-
(0,
|
|
6230
|
+
(0, import_typeorm63.Column)({ type: "text", nullable: true })
|
|
6159
6231
|
], Rating.prototype, "review", 2);
|
|
6160
6232
|
Rating = __decorateClass([
|
|
6161
|
-
(0,
|
|
6233
|
+
(0, import_typeorm63.Entity)("ratings")
|
|
6162
6234
|
], Rating);
|
|
6163
6235
|
|
|
6164
6236
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -8208,11 +8280,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
8208
8280
|
};
|
|
8209
8281
|
|
|
8210
8282
|
// src/entities/sequence-generator.entity.ts
|
|
8211
|
-
var
|
|
8283
|
+
var import_typeorm64 = require("typeorm");
|
|
8212
8284
|
var SequenceGenerator = class extends BaseEntity {
|
|
8213
8285
|
};
|
|
8214
8286
|
__decorateClass([
|
|
8215
|
-
(0,
|
|
8287
|
+
(0, import_typeorm64.Column)({
|
|
8216
8288
|
name: "module",
|
|
8217
8289
|
type: "varchar",
|
|
8218
8290
|
length: 50,
|
|
@@ -8221,7 +8293,7 @@ __decorateClass([
|
|
|
8221
8293
|
})
|
|
8222
8294
|
], SequenceGenerator.prototype, "module", 2);
|
|
8223
8295
|
__decorateClass([
|
|
8224
|
-
(0,
|
|
8296
|
+
(0, import_typeorm64.Column)({
|
|
8225
8297
|
name: "prefix",
|
|
8226
8298
|
type: "varchar",
|
|
8227
8299
|
length: 10,
|
|
@@ -8230,7 +8302,7 @@ __decorateClass([
|
|
|
8230
8302
|
})
|
|
8231
8303
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
8232
8304
|
__decorateClass([
|
|
8233
|
-
(0,
|
|
8305
|
+
(0, import_typeorm64.Column)({
|
|
8234
8306
|
name: "last_sequence",
|
|
8235
8307
|
type: "int",
|
|
8236
8308
|
nullable: false,
|
|
@@ -8238,7 +8310,7 @@ __decorateClass([
|
|
|
8238
8310
|
})
|
|
8239
8311
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
8240
8312
|
__decorateClass([
|
|
8241
|
-
(0,
|
|
8313
|
+
(0, import_typeorm64.Column)({
|
|
8242
8314
|
name: "year",
|
|
8243
8315
|
type: "int",
|
|
8244
8316
|
nullable: true,
|
|
@@ -8246,11 +8318,11 @@ __decorateClass([
|
|
|
8246
8318
|
})
|
|
8247
8319
|
], SequenceGenerator.prototype, "year", 2);
|
|
8248
8320
|
SequenceGenerator = __decorateClass([
|
|
8249
|
-
(0,
|
|
8321
|
+
(0, import_typeorm64.Entity)("sequence_generators")
|
|
8250
8322
|
], SequenceGenerator);
|
|
8251
8323
|
|
|
8252
8324
|
// src/entities/question.entity.ts
|
|
8253
|
-
var
|
|
8325
|
+
var import_typeorm65 = require("typeorm");
|
|
8254
8326
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
8255
8327
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
8256
8328
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -8259,16 +8331,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
8259
8331
|
var Question = class extends BaseEntity {
|
|
8260
8332
|
};
|
|
8261
8333
|
__decorateClass([
|
|
8262
|
-
(0,
|
|
8334
|
+
(0, import_typeorm65.Column)({ name: "question", type: "varchar" })
|
|
8263
8335
|
], Question.prototype, "question", 2);
|
|
8264
8336
|
__decorateClass([
|
|
8265
|
-
(0,
|
|
8337
|
+
(0, import_typeorm65.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
8266
8338
|
], Question.prototype, "hint", 2);
|
|
8267
8339
|
__decorateClass([
|
|
8268
|
-
(0,
|
|
8340
|
+
(0, import_typeorm65.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8269
8341
|
], Question.prototype, "slug", 2);
|
|
8270
8342
|
__decorateClass([
|
|
8271
|
-
(0,
|
|
8343
|
+
(0, import_typeorm65.Column)({
|
|
8272
8344
|
name: "question_for",
|
|
8273
8345
|
type: "enum",
|
|
8274
8346
|
enum: QuestionFor,
|
|
@@ -8276,45 +8348,45 @@ __decorateClass([
|
|
|
8276
8348
|
})
|
|
8277
8349
|
], Question.prototype, "questionFor", 2);
|
|
8278
8350
|
__decorateClass([
|
|
8279
|
-
(0,
|
|
8351
|
+
(0, import_typeorm65.Column)({ name: "type", type: "varchar", nullable: true })
|
|
8280
8352
|
], Question.prototype, "type", 2);
|
|
8281
8353
|
__decorateClass([
|
|
8282
|
-
(0,
|
|
8354
|
+
(0, import_typeorm65.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
8283
8355
|
], Question.prototype, "options", 2);
|
|
8284
8356
|
__decorateClass([
|
|
8285
|
-
(0,
|
|
8357
|
+
(0, import_typeorm65.Column)({ name: "is_active", type: "boolean", default: false })
|
|
8286
8358
|
], Question.prototype, "isActive", 2);
|
|
8287
8359
|
Question = __decorateClass([
|
|
8288
|
-
(0,
|
|
8360
|
+
(0, import_typeorm65.Entity)("questions")
|
|
8289
8361
|
], Question);
|
|
8290
8362
|
|
|
8291
8363
|
// src/entities/skill.entity.ts
|
|
8292
|
-
var
|
|
8364
|
+
var import_typeorm66 = require("typeorm");
|
|
8293
8365
|
var Skill = class extends BaseEntity {
|
|
8294
8366
|
};
|
|
8295
8367
|
__decorateClass([
|
|
8296
|
-
(0,
|
|
8368
|
+
(0, import_typeorm66.Column)({ name: "name", type: "varchar", nullable: true })
|
|
8297
8369
|
], Skill.prototype, "name", 2);
|
|
8298
8370
|
__decorateClass([
|
|
8299
|
-
(0,
|
|
8371
|
+
(0, import_typeorm66.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8300
8372
|
], Skill.prototype, "slug", 2);
|
|
8301
8373
|
__decorateClass([
|
|
8302
|
-
(0,
|
|
8374
|
+
(0, import_typeorm66.Column)({ name: "is_active", type: "boolean", default: false })
|
|
8303
8375
|
], Skill.prototype, "isActive", 2);
|
|
8304
8376
|
Skill = __decorateClass([
|
|
8305
|
-
(0,
|
|
8377
|
+
(0, import_typeorm66.Entity)("skills")
|
|
8306
8378
|
], Skill);
|
|
8307
8379
|
|
|
8308
8380
|
// src/entities/skill-catalog.entity.ts
|
|
8309
|
-
var
|
|
8381
|
+
var import_typeorm67 = require("typeorm");
|
|
8310
8382
|
var SkillCatalog = class extends BaseEntity {
|
|
8311
8383
|
};
|
|
8312
8384
|
__decorateClass([
|
|
8313
|
-
(0,
|
|
8314
|
-
(0,
|
|
8385
|
+
(0, import_typeorm67.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
8386
|
+
(0, import_typeorm67.Index)()
|
|
8315
8387
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
8316
8388
|
__decorateClass([
|
|
8317
|
-
(0,
|
|
8389
|
+
(0, import_typeorm67.Column)({
|
|
8318
8390
|
name: "aliases",
|
|
8319
8391
|
type: "text",
|
|
8320
8392
|
array: true,
|
|
@@ -8322,20 +8394,20 @@ __decorateClass([
|
|
|
8322
8394
|
})
|
|
8323
8395
|
], SkillCatalog.prototype, "aliases", 2);
|
|
8324
8396
|
__decorateClass([
|
|
8325
|
-
(0,
|
|
8397
|
+
(0, import_typeorm67.Column)({
|
|
8326
8398
|
name: "variations",
|
|
8327
8399
|
type: "jsonb",
|
|
8328
8400
|
default: "{}"
|
|
8329
8401
|
})
|
|
8330
8402
|
], SkillCatalog.prototype, "variations", 2);
|
|
8331
8403
|
__decorateClass([
|
|
8332
|
-
(0,
|
|
8404
|
+
(0, import_typeorm67.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
8333
8405
|
], SkillCatalog.prototype, "category", 2);
|
|
8334
8406
|
__decorateClass([
|
|
8335
|
-
(0,
|
|
8407
|
+
(0, import_typeorm67.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
8336
8408
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
8337
8409
|
__decorateClass([
|
|
8338
|
-
(0,
|
|
8410
|
+
(0, import_typeorm67.Column)({
|
|
8339
8411
|
name: "related_skills",
|
|
8340
8412
|
type: "text",
|
|
8341
8413
|
array: true,
|
|
@@ -8343,111 +8415,111 @@ __decorateClass([
|
|
|
8343
8415
|
})
|
|
8344
8416
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
8345
8417
|
__decorateClass([
|
|
8346
|
-
(0,
|
|
8347
|
-
(0,
|
|
8418
|
+
(0, import_typeorm67.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
8419
|
+
(0, import_typeorm67.Index)()
|
|
8348
8420
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
8349
8421
|
__decorateClass([
|
|
8350
|
-
(0,
|
|
8422
|
+
(0, import_typeorm67.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
8351
8423
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
8352
8424
|
__decorateClass([
|
|
8353
|
-
(0,
|
|
8425
|
+
(0, import_typeorm67.Column)({ name: "first_seen_date", type: "date" })
|
|
8354
8426
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
8355
8427
|
__decorateClass([
|
|
8356
|
-
(0,
|
|
8428
|
+
(0, import_typeorm67.Column)({ name: "last_updated_date", type: "date" })
|
|
8357
8429
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
8358
8430
|
__decorateClass([
|
|
8359
|
-
(0,
|
|
8431
|
+
(0, import_typeorm67.Column)({
|
|
8360
8432
|
name: "search_vector",
|
|
8361
8433
|
type: "tsvector",
|
|
8362
8434
|
nullable: true
|
|
8363
8435
|
})
|
|
8364
8436
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
8365
8437
|
SkillCatalog = __decorateClass([
|
|
8366
|
-
(0,
|
|
8438
|
+
(0, import_typeorm67.Entity)("skill_catalogs")
|
|
8367
8439
|
], SkillCatalog);
|
|
8368
8440
|
|
|
8369
8441
|
// src/entities/job-role.entity.ts
|
|
8370
|
-
var
|
|
8442
|
+
var import_typeorm68 = require("typeorm");
|
|
8371
8443
|
var JobRoles = class extends BaseEntity {
|
|
8372
8444
|
};
|
|
8373
8445
|
__decorateClass([
|
|
8374
|
-
(0,
|
|
8446
|
+
(0, import_typeorm68.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8375
8447
|
], JobRoles.prototype, "slug", 2);
|
|
8376
8448
|
__decorateClass([
|
|
8377
|
-
(0,
|
|
8449
|
+
(0, import_typeorm68.Column)({ name: "name", type: "varchar", nullable: true })
|
|
8378
8450
|
], JobRoles.prototype, "name", 2);
|
|
8379
8451
|
__decorateClass([
|
|
8380
|
-
(0,
|
|
8452
|
+
(0, import_typeorm68.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8381
8453
|
], JobRoles.prototype, "isActive", 2);
|
|
8382
8454
|
JobRoles = __decorateClass([
|
|
8383
|
-
(0,
|
|
8455
|
+
(0, import_typeorm68.Entity)("job_roles")
|
|
8384
8456
|
], JobRoles);
|
|
8385
8457
|
|
|
8386
8458
|
// src/entities/plan.entity.ts
|
|
8387
|
-
var
|
|
8459
|
+
var import_typeorm70 = require("typeorm");
|
|
8388
8460
|
|
|
8389
8461
|
// src/entities/feature.entity.ts
|
|
8390
|
-
var
|
|
8462
|
+
var import_typeorm69 = require("typeorm");
|
|
8391
8463
|
var Feature = class extends BaseEntity {
|
|
8392
8464
|
};
|
|
8393
8465
|
__decorateClass([
|
|
8394
|
-
(0,
|
|
8466
|
+
(0, import_typeorm69.Column)({ name: "name", type: "varchar", unique: true })
|
|
8395
8467
|
], Feature.prototype, "name", 2);
|
|
8396
8468
|
__decorateClass([
|
|
8397
|
-
(0,
|
|
8469
|
+
(0, import_typeorm69.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
8398
8470
|
], Feature.prototype, "plans", 2);
|
|
8399
8471
|
Feature = __decorateClass([
|
|
8400
|
-
(0,
|
|
8472
|
+
(0, import_typeorm69.Entity)("features")
|
|
8401
8473
|
], Feature);
|
|
8402
8474
|
|
|
8403
8475
|
// src/entities/plan.entity.ts
|
|
8404
8476
|
var Plan = class extends BaseEntity {
|
|
8405
8477
|
};
|
|
8406
8478
|
__decorateClass([
|
|
8407
|
-
(0,
|
|
8479
|
+
(0, import_typeorm70.Column)({ name: "name", type: "varchar", unique: true })
|
|
8408
8480
|
], Plan.prototype, "name", 2);
|
|
8409
8481
|
__decorateClass([
|
|
8410
|
-
(0,
|
|
8482
|
+
(0, import_typeorm70.Column)({ name: "description", type: "varchar", nullable: true })
|
|
8411
8483
|
], Plan.prototype, "description", 2);
|
|
8412
8484
|
__decorateClass([
|
|
8413
|
-
(0,
|
|
8485
|
+
(0, import_typeorm70.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
8414
8486
|
], Plan.prototype, "price", 2);
|
|
8415
8487
|
__decorateClass([
|
|
8416
|
-
(0,
|
|
8488
|
+
(0, import_typeorm70.Column)({ name: "billing_period", type: "varchar" })
|
|
8417
8489
|
], Plan.prototype, "billingPeriod", 2);
|
|
8418
8490
|
__decorateClass([
|
|
8419
|
-
(0,
|
|
8491
|
+
(0, import_typeorm70.Column)({ name: "is_current", type: "boolean", default: false })
|
|
8420
8492
|
], Plan.prototype, "isCurrent", 2);
|
|
8421
8493
|
__decorateClass([
|
|
8422
|
-
(0,
|
|
8423
|
-
(0,
|
|
8494
|
+
(0, import_typeorm70.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
8495
|
+
(0, import_typeorm70.JoinTable)()
|
|
8424
8496
|
], Plan.prototype, "features", 2);
|
|
8425
8497
|
Plan = __decorateClass([
|
|
8426
|
-
(0,
|
|
8498
|
+
(0, import_typeorm70.Entity)("plans")
|
|
8427
8499
|
], Plan);
|
|
8428
8500
|
|
|
8429
8501
|
// src/entities/cms.entity.ts
|
|
8430
|
-
var
|
|
8502
|
+
var import_typeorm71 = require("typeorm");
|
|
8431
8503
|
var Cms = class extends BaseEntity {
|
|
8432
8504
|
};
|
|
8433
8505
|
__decorateClass([
|
|
8434
|
-
(0,
|
|
8506
|
+
(0, import_typeorm71.Column)({ name: "title", type: "varchar", nullable: true })
|
|
8435
8507
|
], Cms.prototype, "title", 2);
|
|
8436
8508
|
__decorateClass([
|
|
8437
|
-
(0,
|
|
8509
|
+
(0, import_typeorm71.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8438
8510
|
], Cms.prototype, "slug", 2);
|
|
8439
8511
|
__decorateClass([
|
|
8440
|
-
(0,
|
|
8512
|
+
(0, import_typeorm71.Column)({ name: "content", type: "varchar", nullable: true })
|
|
8441
8513
|
], Cms.prototype, "content", 2);
|
|
8442
8514
|
__decorateClass([
|
|
8443
|
-
(0,
|
|
8515
|
+
(0, import_typeorm71.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8444
8516
|
], Cms.prototype, "isActive", 2);
|
|
8445
8517
|
Cms = __decorateClass([
|
|
8446
|
-
(0,
|
|
8518
|
+
(0, import_typeorm71.Entity)("cms")
|
|
8447
8519
|
], Cms);
|
|
8448
8520
|
|
|
8449
8521
|
// src/entities/lead.entity.ts
|
|
8450
|
-
var
|
|
8522
|
+
var import_typeorm72 = require("typeorm");
|
|
8451
8523
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
8452
8524
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
8453
8525
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -8456,22 +8528,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
8456
8528
|
var Lead = class extends BaseEntity {
|
|
8457
8529
|
};
|
|
8458
8530
|
__decorateClass([
|
|
8459
|
-
(0,
|
|
8531
|
+
(0, import_typeorm72.Column)({ name: "name", type: "varchar", nullable: true })
|
|
8460
8532
|
], Lead.prototype, "name", 2);
|
|
8461
8533
|
__decorateClass([
|
|
8462
|
-
(0,
|
|
8534
|
+
(0, import_typeorm72.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
8463
8535
|
], Lead.prototype, "mobileCode", 2);
|
|
8464
8536
|
__decorateClass([
|
|
8465
|
-
(0,
|
|
8537
|
+
(0, import_typeorm72.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
8466
8538
|
], Lead.prototype, "mobile", 2);
|
|
8467
8539
|
__decorateClass([
|
|
8468
|
-
(0,
|
|
8540
|
+
(0, import_typeorm72.Column)({ name: "email", type: "varchar", nullable: true })
|
|
8469
8541
|
], Lead.prototype, "email", 2);
|
|
8470
8542
|
__decorateClass([
|
|
8471
|
-
(0,
|
|
8543
|
+
(0, import_typeorm72.Column)({ name: "description", type: "varchar", nullable: true })
|
|
8472
8544
|
], Lead.prototype, "description", 2);
|
|
8473
8545
|
__decorateClass([
|
|
8474
|
-
(0,
|
|
8546
|
+
(0, import_typeorm72.Column)({
|
|
8475
8547
|
name: "category",
|
|
8476
8548
|
type: "enum",
|
|
8477
8549
|
enum: CategoryEmum,
|
|
@@ -8479,129 +8551,129 @@ __decorateClass([
|
|
|
8479
8551
|
})
|
|
8480
8552
|
], Lead.prototype, "category", 2);
|
|
8481
8553
|
Lead = __decorateClass([
|
|
8482
|
-
(0,
|
|
8554
|
+
(0, import_typeorm72.Entity)("leads")
|
|
8483
8555
|
], Lead);
|
|
8484
8556
|
|
|
8485
8557
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
8486
|
-
var
|
|
8558
|
+
var import_typeorm73 = require("typeorm");
|
|
8487
8559
|
var JobFreelancerRecommendation = class {
|
|
8488
8560
|
};
|
|
8489
8561
|
__decorateClass([
|
|
8490
|
-
(0,
|
|
8562
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_id" })
|
|
8491
8563
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
8492
8564
|
__decorateClass([
|
|
8493
|
-
(0,
|
|
8565
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_uuid" })
|
|
8494
8566
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
8495
8567
|
__decorateClass([
|
|
8496
|
-
(0,
|
|
8568
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_unique_id" })
|
|
8497
8569
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
8498
8570
|
__decorateClass([
|
|
8499
|
-
(0,
|
|
8571
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_role" })
|
|
8500
8572
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
8501
8573
|
__decorateClass([
|
|
8502
|
-
(0,
|
|
8574
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_openings" })
|
|
8503
8575
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
8504
8576
|
__decorateClass([
|
|
8505
|
-
(0,
|
|
8577
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_location" })
|
|
8506
8578
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
8507
8579
|
__decorateClass([
|
|
8508
|
-
(0,
|
|
8580
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_currency" })
|
|
8509
8581
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
8510
8582
|
__decorateClass([
|
|
8511
|
-
(0,
|
|
8583
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_salary_from" })
|
|
8512
8584
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
8513
8585
|
__decorateClass([
|
|
8514
|
-
(0,
|
|
8586
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_salary_to" })
|
|
8515
8587
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
8516
8588
|
__decorateClass([
|
|
8517
|
-
(0,
|
|
8589
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_employment_type" })
|
|
8518
8590
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
8519
8591
|
__decorateClass([
|
|
8520
|
-
(0,
|
|
8592
|
+
(0, import_typeorm73.ViewColumn)({ name: "application_received" })
|
|
8521
8593
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
8522
8594
|
__decorateClass([
|
|
8523
|
-
(0,
|
|
8595
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_posted_at" })
|
|
8524
8596
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
8525
8597
|
__decorateClass([
|
|
8526
|
-
(0,
|
|
8598
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_id" })
|
|
8527
8599
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
8528
8600
|
__decorateClass([
|
|
8529
|
-
(0,
|
|
8601
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_uuid" })
|
|
8530
8602
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
8531
8603
|
__decorateClass([
|
|
8532
|
-
(0,
|
|
8604
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_unique_id" })
|
|
8533
8605
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
8534
8606
|
__decorateClass([
|
|
8535
|
-
(0,
|
|
8607
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_first_name" })
|
|
8536
8608
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
8537
8609
|
__decorateClass([
|
|
8538
|
-
(0,
|
|
8610
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_last_name" })
|
|
8539
8611
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
8540
8612
|
__decorateClass([
|
|
8541
|
-
(0,
|
|
8613
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_email" })
|
|
8542
8614
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
8543
8615
|
__decorateClass([
|
|
8544
|
-
(0,
|
|
8616
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
8545
8617
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
8546
8618
|
__decorateClass([
|
|
8547
|
-
(0,
|
|
8619
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_is_social" })
|
|
8548
8620
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
8549
8621
|
__decorateClass([
|
|
8550
|
-
(0,
|
|
8622
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_created_at" })
|
|
8551
8623
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
8552
8624
|
__decorateClass([
|
|
8553
|
-
(0,
|
|
8625
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_designation" })
|
|
8554
8626
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
8555
8627
|
__decorateClass([
|
|
8556
|
-
(0,
|
|
8628
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_experience" })
|
|
8557
8629
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
8558
8630
|
__decorateClass([
|
|
8559
|
-
(0,
|
|
8631
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
8560
8632
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
8561
8633
|
__decorateClass([
|
|
8562
|
-
(0,
|
|
8634
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
8563
8635
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
8564
8636
|
__decorateClass([
|
|
8565
|
-
(0,
|
|
8637
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_country_name" })
|
|
8566
8638
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
8567
8639
|
__decorateClass([
|
|
8568
|
-
(0,
|
|
8640
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
8569
8641
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
8570
8642
|
__decorateClass([
|
|
8571
|
-
(0,
|
|
8643
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_id" })
|
|
8572
8644
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
8573
8645
|
__decorateClass([
|
|
8574
|
-
(0,
|
|
8646
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_uuid" })
|
|
8575
8647
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
8576
8648
|
__decorateClass([
|
|
8577
|
-
(0,
|
|
8649
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_first_name" })
|
|
8578
8650
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
8579
8651
|
__decorateClass([
|
|
8580
|
-
(0,
|
|
8652
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_last_name" })
|
|
8581
8653
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
8582
8654
|
__decorateClass([
|
|
8583
|
-
(0,
|
|
8655
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_email" })
|
|
8584
8656
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
8585
8657
|
__decorateClass([
|
|
8586
|
-
(0,
|
|
8658
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_company_logo" })
|
|
8587
8659
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
8588
8660
|
__decorateClass([
|
|
8589
|
-
(0,
|
|
8661
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_company_name" })
|
|
8590
8662
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
8591
8663
|
__decorateClass([
|
|
8592
|
-
(0,
|
|
8664
|
+
(0, import_typeorm73.ViewColumn)({ name: "matching_skills" })
|
|
8593
8665
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
8594
8666
|
__decorateClass([
|
|
8595
|
-
(0,
|
|
8667
|
+
(0, import_typeorm73.ViewColumn)({ name: "matching_skills_count" })
|
|
8596
8668
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
8597
8669
|
__decorateClass([
|
|
8598
|
-
(0,
|
|
8670
|
+
(0, import_typeorm73.ViewColumn)({ name: "required_skills" })
|
|
8599
8671
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
8600
8672
|
__decorateClass([
|
|
8601
|
-
(0,
|
|
8673
|
+
(0, import_typeorm73.ViewColumn)({ name: "required_skills_count" })
|
|
8602
8674
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
8603
8675
|
JobFreelancerRecommendation = __decorateClass([
|
|
8604
|
-
(0,
|
|
8676
|
+
(0, import_typeorm73.ViewEntity)({
|
|
8605
8677
|
name: "job_freelancer_recommendations",
|
|
8606
8678
|
materialized: true,
|
|
8607
8679
|
synchronize: false
|
|
@@ -8610,32 +8682,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
8610
8682
|
], JobFreelancerRecommendation);
|
|
8611
8683
|
|
|
8612
8684
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
8613
|
-
var
|
|
8685
|
+
var import_typeorm74 = require("typeorm");
|
|
8614
8686
|
var JobFreelancerRecommendationV2 = class {
|
|
8615
8687
|
};
|
|
8616
8688
|
__decorateClass([
|
|
8617
|
-
(0,
|
|
8689
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_id" })
|
|
8618
8690
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
8619
8691
|
__decorateClass([
|
|
8620
|
-
(0,
|
|
8692
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_owner_id" })
|
|
8621
8693
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
8622
8694
|
__decorateClass([
|
|
8623
|
-
(0,
|
|
8695
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_id" })
|
|
8624
8696
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
8625
8697
|
__decorateClass([
|
|
8626
|
-
(0,
|
|
8698
|
+
(0, import_typeorm74.ViewColumn)({ name: "matching_skills" })
|
|
8627
8699
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
8628
8700
|
__decorateClass([
|
|
8629
|
-
(0,
|
|
8701
|
+
(0, import_typeorm74.ViewColumn)({ name: "matching_skills_count" })
|
|
8630
8702
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
8631
8703
|
__decorateClass([
|
|
8632
|
-
(0,
|
|
8704
|
+
(0, import_typeorm74.ViewColumn)({ name: "required_skills" })
|
|
8633
8705
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
8634
8706
|
__decorateClass([
|
|
8635
|
-
(0,
|
|
8707
|
+
(0, import_typeorm74.ViewColumn)({ name: "required_skills_count" })
|
|
8636
8708
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
8637
8709
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
8638
|
-
(0,
|
|
8710
|
+
(0, import_typeorm74.ViewEntity)({
|
|
8639
8711
|
name: "job_freelancer_recommendations_v2",
|
|
8640
8712
|
materialized: true,
|
|
8641
8713
|
synchronize: false
|
|
@@ -8644,74 +8716,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
8644
8716
|
], JobFreelancerRecommendationV2);
|
|
8645
8717
|
|
|
8646
8718
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
8647
|
-
var
|
|
8719
|
+
var import_typeorm75 = require("typeorm");
|
|
8648
8720
|
var ClientFreelancerRecommendation = class {
|
|
8649
8721
|
};
|
|
8650
8722
|
__decorateClass([
|
|
8651
|
-
(0,
|
|
8723
|
+
(0, import_typeorm75.ViewColumn)({ name: "client_id" })
|
|
8652
8724
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
8653
8725
|
__decorateClass([
|
|
8654
|
-
(0,
|
|
8726
|
+
(0, import_typeorm75.ViewColumn)({ name: "client_uuid" })
|
|
8655
8727
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
8656
8728
|
__decorateClass([
|
|
8657
|
-
(0,
|
|
8729
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_id" })
|
|
8658
8730
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
8659
8731
|
__decorateClass([
|
|
8660
|
-
(0,
|
|
8732
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_uuid" })
|
|
8661
8733
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
8662
8734
|
__decorateClass([
|
|
8663
|
-
(0,
|
|
8735
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_unique_id" })
|
|
8664
8736
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
8665
8737
|
__decorateClass([
|
|
8666
|
-
(0,
|
|
8738
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_first_name" })
|
|
8667
8739
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
8668
8740
|
__decorateClass([
|
|
8669
|
-
(0,
|
|
8741
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_last_name" })
|
|
8670
8742
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
8671
8743
|
__decorateClass([
|
|
8672
|
-
(0,
|
|
8744
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_email" })
|
|
8673
8745
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
8674
8746
|
__decorateClass([
|
|
8675
|
-
(0,
|
|
8747
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
8676
8748
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
8677
8749
|
__decorateClass([
|
|
8678
|
-
(0,
|
|
8750
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_is_social" })
|
|
8679
8751
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
8680
8752
|
__decorateClass([
|
|
8681
|
-
(0,
|
|
8753
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_created_at" })
|
|
8682
8754
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
8683
8755
|
__decorateClass([
|
|
8684
|
-
(0,
|
|
8756
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_designation" })
|
|
8685
8757
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
8686
8758
|
__decorateClass([
|
|
8687
|
-
(0,
|
|
8759
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_experience" })
|
|
8688
8760
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
8689
8761
|
__decorateClass([
|
|
8690
|
-
(0,
|
|
8762
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
8691
8763
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
8692
8764
|
__decorateClass([
|
|
8693
|
-
(0,
|
|
8765
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
8694
8766
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
8695
8767
|
__decorateClass([
|
|
8696
|
-
(0,
|
|
8768
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_country_name" })
|
|
8697
8769
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
8698
8770
|
__decorateClass([
|
|
8699
|
-
(0,
|
|
8771
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
8700
8772
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
8701
8773
|
__decorateClass([
|
|
8702
|
-
(0,
|
|
8774
|
+
(0, import_typeorm75.ViewColumn)({ name: "matching_skills" })
|
|
8703
8775
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
8704
8776
|
__decorateClass([
|
|
8705
|
-
(0,
|
|
8777
|
+
(0, import_typeorm75.ViewColumn)({ name: "matching_skills_count" })
|
|
8706
8778
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
8707
8779
|
__decorateClass([
|
|
8708
|
-
(0,
|
|
8780
|
+
(0, import_typeorm75.ViewColumn)({ name: "required_skills" })
|
|
8709
8781
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
8710
8782
|
__decorateClass([
|
|
8711
|
-
(0,
|
|
8783
|
+
(0, import_typeorm75.ViewColumn)({ name: "required_skills_count" })
|
|
8712
8784
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
8713
8785
|
ClientFreelancerRecommendation = __decorateClass([
|
|
8714
|
-
(0,
|
|
8786
|
+
(0, import_typeorm75.ViewEntity)({
|
|
8715
8787
|
name: "client_freelancer_recommendations",
|
|
8716
8788
|
materialized: true,
|
|
8717
8789
|
synchronize: false
|
|
@@ -8720,7 +8792,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
8720
8792
|
], ClientFreelancerRecommendation);
|
|
8721
8793
|
|
|
8722
8794
|
// src/entities/commission.entity.ts
|
|
8723
|
-
var
|
|
8795
|
+
var import_typeorm76 = require("typeorm");
|
|
8724
8796
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
8725
8797
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
8726
8798
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -8729,7 +8801,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
8729
8801
|
var Commission = class extends BaseEntity {
|
|
8730
8802
|
};
|
|
8731
8803
|
__decorateClass([
|
|
8732
|
-
(0,
|
|
8804
|
+
(0, import_typeorm76.Column)({
|
|
8733
8805
|
name: "freelancer_commission_type",
|
|
8734
8806
|
type: "enum",
|
|
8735
8807
|
enum: CommissionTypeEnum,
|
|
@@ -8737,10 +8809,10 @@ __decorateClass([
|
|
|
8737
8809
|
})
|
|
8738
8810
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
8739
8811
|
__decorateClass([
|
|
8740
|
-
(0,
|
|
8812
|
+
(0, import_typeorm76.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
8741
8813
|
], Commission.prototype, "freelancerCommission", 2);
|
|
8742
8814
|
__decorateClass([
|
|
8743
|
-
(0,
|
|
8815
|
+
(0, import_typeorm76.Column)({
|
|
8744
8816
|
name: "client_commission_type",
|
|
8745
8817
|
type: "enum",
|
|
8746
8818
|
enum: CommissionTypeEnum,
|
|
@@ -8748,93 +8820,93 @@ __decorateClass([
|
|
|
8748
8820
|
})
|
|
8749
8821
|
], Commission.prototype, "clientCommissionType", 2);
|
|
8750
8822
|
__decorateClass([
|
|
8751
|
-
(0,
|
|
8823
|
+
(0, import_typeorm76.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
8752
8824
|
], Commission.prototype, "clientCommission", 2);
|
|
8753
8825
|
Commission = __decorateClass([
|
|
8754
|
-
(0,
|
|
8826
|
+
(0, import_typeorm76.Entity)("commissions")
|
|
8755
8827
|
], Commission);
|
|
8756
8828
|
|
|
8757
8829
|
// src/entities/calendly-meeting-log.entity.ts
|
|
8758
|
-
var
|
|
8830
|
+
var import_typeorm77 = require("typeorm");
|
|
8759
8831
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
8760
8832
|
};
|
|
8761
8833
|
__decorateClass([
|
|
8762
|
-
(0,
|
|
8763
|
-
(0,
|
|
8834
|
+
(0, import_typeorm77.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
8835
|
+
(0, import_typeorm77.Index)()
|
|
8764
8836
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
8765
8837
|
__decorateClass([
|
|
8766
|
-
(0,
|
|
8838
|
+
(0, import_typeorm77.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
8767
8839
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
8768
8840
|
__decorateClass([
|
|
8769
|
-
(0,
|
|
8841
|
+
(0, import_typeorm77.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8770
8842
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
8771
8843
|
CalendlyMeetingLog = __decorateClass([
|
|
8772
|
-
(0,
|
|
8844
|
+
(0, import_typeorm77.Entity)("calendly_meeting_logs")
|
|
8773
8845
|
], CalendlyMeetingLog);
|
|
8774
8846
|
|
|
8775
8847
|
// src/entities/zoom-meeting-log.entity.ts
|
|
8776
|
-
var
|
|
8848
|
+
var import_typeorm78 = require("typeorm");
|
|
8777
8849
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
8778
8850
|
};
|
|
8779
8851
|
__decorateClass([
|
|
8780
|
-
(0,
|
|
8781
|
-
(0,
|
|
8852
|
+
(0, import_typeorm78.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
8853
|
+
(0, import_typeorm78.Index)()
|
|
8782
8854
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
8783
8855
|
__decorateClass([
|
|
8784
|
-
(0,
|
|
8856
|
+
(0, import_typeorm78.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
8785
8857
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
8786
8858
|
__decorateClass([
|
|
8787
|
-
(0,
|
|
8859
|
+
(0, import_typeorm78.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8788
8860
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
8789
8861
|
ZoomMeetingLog = __decorateClass([
|
|
8790
|
-
(0,
|
|
8862
|
+
(0, import_typeorm78.Entity)("zoom_meeting_logs")
|
|
8791
8863
|
], ZoomMeetingLog);
|
|
8792
8864
|
|
|
8793
8865
|
// src/entities/stripe-logs.entity.ts
|
|
8794
|
-
var
|
|
8866
|
+
var import_typeorm79 = require("typeorm");
|
|
8795
8867
|
var StripeLog = class extends BaseEntity {
|
|
8796
8868
|
};
|
|
8797
8869
|
__decorateClass([
|
|
8798
|
-
(0,
|
|
8870
|
+
(0, import_typeorm79.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
8799
8871
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
8800
8872
|
__decorateClass([
|
|
8801
|
-
(0,
|
|
8873
|
+
(0, import_typeorm79.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
8802
8874
|
], StripeLog.prototype, "eventType", 2);
|
|
8803
8875
|
__decorateClass([
|
|
8804
|
-
(0,
|
|
8876
|
+
(0, import_typeorm79.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
8805
8877
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
8806
8878
|
__decorateClass([
|
|
8807
|
-
(0,
|
|
8879
|
+
(0, import_typeorm79.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8808
8880
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
8809
8881
|
StripeLog = __decorateClass([
|
|
8810
|
-
(0,
|
|
8882
|
+
(0, import_typeorm79.Entity)("stripe_logs")
|
|
8811
8883
|
], StripeLog);
|
|
8812
8884
|
|
|
8813
8885
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
8814
|
-
var
|
|
8886
|
+
var import_typeorm80 = require("typeorm");
|
|
8815
8887
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
8816
8888
|
};
|
|
8817
8889
|
__decorateClass([
|
|
8818
|
-
(0,
|
|
8890
|
+
(0, import_typeorm80.Column)({
|
|
8819
8891
|
type: "varchar",
|
|
8820
8892
|
length: 100,
|
|
8821
8893
|
unique: true,
|
|
8822
8894
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
8823
8895
|
}),
|
|
8824
|
-
(0,
|
|
8896
|
+
(0, import_typeorm80.Index)()
|
|
8825
8897
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
8826
8898
|
__decorateClass([
|
|
8827
|
-
(0,
|
|
8899
|
+
(0, import_typeorm80.Column)({
|
|
8828
8900
|
type: "jsonb",
|
|
8829
8901
|
comment: "JSON object containing weight values",
|
|
8830
8902
|
nullable: true
|
|
8831
8903
|
})
|
|
8832
8904
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
8833
8905
|
__decorateClass([
|
|
8834
|
-
(0,
|
|
8906
|
+
(0, import_typeorm80.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8835
8907
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
8836
8908
|
RecommendationWeightageConfig = __decorateClass([
|
|
8837
|
-
(0,
|
|
8909
|
+
(0, import_typeorm80.Entity)("recommendation_weightage_configs")
|
|
8838
8910
|
], RecommendationWeightageConfig);
|
|
8839
8911
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8840
8912
|
0 && (module.exports = {
|
|
@@ -8983,6 +9055,8 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8983
9055
|
FreelancerUploadResumeDto,
|
|
8984
9056
|
FreelancerWorkShowcaseDto,
|
|
8985
9057
|
FromUsOn,
|
|
9058
|
+
HiredFreelancerNatureOfWorkEnum,
|
|
9059
|
+
Hiring,
|
|
8986
9060
|
INTERVIEW_INVITE_PATTERN,
|
|
8987
9061
|
INVOICE_PATTERN,
|
|
8988
9062
|
InitiatorTypeEnum,
|