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