@experts_hub/shared 1.0.517 → 1.0.520
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/hiring.entity.d.ts +20 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/invoice.entity.d.ts +2 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +3 -0
- package/dist/index.d.mts +78 -1
- package/dist/index.d.ts +78 -1
- package/dist/index.js +1246 -978
- package/dist/index.mjs +1209 -931
- package/dist/modules/job-admin/dto/admin-job-basic-information-v2.dto.d.ts +54 -0
- package/dist/modules/job-admin/dto/index.d.ts +1 -0
- package/dist/modules/job-admin/pattern/pattern.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __export(index_exports, {
|
|
|
36
36
|
AccountStatus: () => AccountStatus,
|
|
37
37
|
AccountType: () => AccountType,
|
|
38
38
|
AdminCreateJobInformationDto: () => AdminCreateJobInformationDto,
|
|
39
|
+
AdminJobBasicInformationV2Dto: () => AdminJobBasicInformationV2Dto,
|
|
39
40
|
AdminPermission: () => AdminPermission,
|
|
40
41
|
AdminRole: () => AdminRole,
|
|
41
42
|
AdminRolePermission: () => AdminRolePermission,
|
|
@@ -171,6 +172,8 @@ __export(index_exports, {
|
|
|
171
172
|
FreelancerUploadResumeDto: () => FreelancerUploadResumeDto,
|
|
172
173
|
FreelancerWorkShowcaseDto: () => FreelancerWorkShowcaseDto,
|
|
173
174
|
FromUsOn: () => FromUsOn,
|
|
175
|
+
HiredFreelancerNatureOfWorkEnum: () => HiredFreelancerNatureOfWorkEnum,
|
|
176
|
+
Hiring: () => Hiring,
|
|
174
177
|
INTERVIEW_INVITE_PATTERN: () => INTERVIEW_INVITE_PATTERN,
|
|
175
178
|
INVOICE_PATTERN: () => INVOICE_PATTERN,
|
|
176
179
|
InitiatorTypeEnum: () => InitiatorTypeEnum,
|
|
@@ -198,6 +201,7 @@ __export(index_exports, {
|
|
|
198
201
|
JobFreelancerRecommendationV2: () => JobFreelancerRecommendationV2,
|
|
199
202
|
JobIdParamDto: () => JobIdParamDto,
|
|
200
203
|
JobLocation: () => JobLocation,
|
|
204
|
+
JobLocationAdminDto: () => JobLocationAdminDto,
|
|
201
205
|
JobLocationDto: () => JobLocationDto,
|
|
202
206
|
JobLocationEnum: () => JobLocationEnum2,
|
|
203
207
|
JobLocationEnumDto: () => JobLocationEnumDto,
|
|
@@ -1898,10 +1902,10 @@ var RATING_PATTERN = {
|
|
|
1898
1902
|
var import_class_validator43 = require("class-validator");
|
|
1899
1903
|
|
|
1900
1904
|
// src/entities/rating.entity.ts
|
|
1901
|
-
var
|
|
1905
|
+
var import_typeorm63 = require("typeorm");
|
|
1902
1906
|
|
|
1903
1907
|
// src/entities/user.entity.ts
|
|
1904
|
-
var
|
|
1908
|
+
var import_typeorm62 = require("typeorm");
|
|
1905
1909
|
|
|
1906
1910
|
// src/entities/base.entity.ts
|
|
1907
1911
|
var import_typeorm = require("typeorm");
|
|
@@ -2675,7 +2679,7 @@ FreelancerProfile = __decorateClass([
|
|
|
2675
2679
|
], FreelancerProfile);
|
|
2676
2680
|
|
|
2677
2681
|
// src/entities/job.entity.ts
|
|
2678
|
-
var
|
|
2682
|
+
var import_typeorm32 = require("typeorm");
|
|
2679
2683
|
|
|
2680
2684
|
// src/entities/job-skill.entity.ts
|
|
2681
2685
|
var import_typeorm10 = require("typeorm");
|
|
@@ -3578,16 +3582,16 @@ JobRecommendation = __decorateClass([
|
|
|
3578
3582
|
], JobRecommendation);
|
|
3579
3583
|
|
|
3580
3584
|
// src/entities/contract.entity.ts
|
|
3581
|
-
var
|
|
3585
|
+
var import_typeorm29 = require("typeorm");
|
|
3582
3586
|
|
|
3583
3587
|
// src/entities/escrow-wallet.entity.ts
|
|
3584
|
-
var
|
|
3588
|
+
var import_typeorm28 = require("typeorm");
|
|
3585
3589
|
|
|
3586
3590
|
// src/entities/escrow-wallet-transaction.entity.ts
|
|
3587
|
-
var
|
|
3591
|
+
var import_typeorm27 = require("typeorm");
|
|
3588
3592
|
|
|
3589
3593
|
// src/entities/invoice.entity.ts
|
|
3590
|
-
var
|
|
3594
|
+
var import_typeorm26 = require("typeorm");
|
|
3591
3595
|
|
|
3592
3596
|
// src/entities/timesheet-line.entity.ts
|
|
3593
3597
|
var import_typeorm24 = require("typeorm");
|
|
@@ -3795,6 +3799,62 @@ TimesheetLine = __decorateClass([
|
|
|
3795
3799
|
(0, import_typeorm24.Entity)("timesheet_lines")
|
|
3796
3800
|
], TimesheetLine);
|
|
3797
3801
|
|
|
3802
|
+
// src/entities/hiring.entity.ts
|
|
3803
|
+
var import_typeorm25 = require("typeorm");
|
|
3804
|
+
var HiredFreelancerNatureOfWorkEnum = /* @__PURE__ */ ((HiredFreelancerNatureOfWorkEnum2) => {
|
|
3805
|
+
HiredFreelancerNatureOfWorkEnum2["FTE"] = "FTE";
|
|
3806
|
+
HiredFreelancerNatureOfWorkEnum2["FREELANCE"] = "FREELANCE";
|
|
3807
|
+
return HiredFreelancerNatureOfWorkEnum2;
|
|
3808
|
+
})(HiredFreelancerNatureOfWorkEnum || {});
|
|
3809
|
+
var Hiring = class extends BaseEntity {
|
|
3810
|
+
};
|
|
3811
|
+
__decorateClass([
|
|
3812
|
+
(0, import_typeorm25.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3813
|
+
(0, import_typeorm25.Index)()
|
|
3814
|
+
], Hiring.prototype, "jobId", 2);
|
|
3815
|
+
__decorateClass([
|
|
3816
|
+
(0, import_typeorm25.ManyToOne)(() => Job, (job) => job.hirings),
|
|
3817
|
+
(0, import_typeorm25.JoinColumn)({ name: "job_id" })
|
|
3818
|
+
], Hiring.prototype, "job", 2);
|
|
3819
|
+
__decorateClass([
|
|
3820
|
+
(0, import_typeorm25.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3821
|
+
(0, import_typeorm25.Index)()
|
|
3822
|
+
], Hiring.prototype, "clientId", 2);
|
|
3823
|
+
__decorateClass([
|
|
3824
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.clientHirings),
|
|
3825
|
+
(0, import_typeorm25.JoinColumn)({ name: "client_id" })
|
|
3826
|
+
], Hiring.prototype, "client", 2);
|
|
3827
|
+
__decorateClass([
|
|
3828
|
+
(0, import_typeorm25.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3829
|
+
(0, import_typeorm25.Index)()
|
|
3830
|
+
], Hiring.prototype, "freelancerId", 2);
|
|
3831
|
+
__decorateClass([
|
|
3832
|
+
(0, import_typeorm25.ManyToOne)(() => User, (user) => user.freelancerHirings),
|
|
3833
|
+
(0, import_typeorm25.JoinColumn)({ name: "freelancer_id" })
|
|
3834
|
+
], Hiring.prototype, "freelancer", 2);
|
|
3835
|
+
__decorateClass([
|
|
3836
|
+
(0, import_typeorm25.Column)({ name: "invoice_id", type: "integer", nullable: true }),
|
|
3837
|
+
(0, import_typeorm25.Index)()
|
|
3838
|
+
], Hiring.prototype, "invoiceId", 2);
|
|
3839
|
+
__decorateClass([
|
|
3840
|
+
(0, import_typeorm25.OneToOne)(() => Invoice, (invoice) => invoice.hiring),
|
|
3841
|
+
(0, import_typeorm25.JoinColumn)({ name: "invoice_id" })
|
|
3842
|
+
], Hiring.prototype, "invoice", 2);
|
|
3843
|
+
__decorateClass([
|
|
3844
|
+
(0, import_typeorm25.Column)({
|
|
3845
|
+
name: "freelancer_nature_of_work",
|
|
3846
|
+
type: "enum",
|
|
3847
|
+
enum: HiredFreelancerNatureOfWorkEnum,
|
|
3848
|
+
nullable: true
|
|
3849
|
+
})
|
|
3850
|
+
], Hiring.prototype, "freelancerNatureOfWork", 2);
|
|
3851
|
+
__decorateClass([
|
|
3852
|
+
(0, import_typeorm25.Column)({ name: "is_invoice_genrated", type: "boolean", default: false })
|
|
3853
|
+
], Hiring.prototype, "isInvoiceGenrated", 2);
|
|
3854
|
+
Hiring = __decorateClass([
|
|
3855
|
+
(0, import_typeorm25.Entity)("hirings")
|
|
3856
|
+
], Hiring);
|
|
3857
|
+
|
|
3798
3858
|
// src/entities/invoice.entity.ts
|
|
3799
3859
|
var InvoiceTypeEnum = /* @__PURE__ */ ((InvoiceTypeEnum2) => {
|
|
3800
3860
|
InvoiceTypeEnum2["WEEKLY"] = "WEEKLY";
|
|
@@ -3819,97 +3879,100 @@ var InvoicePaymentStatusEnum = /* @__PURE__ */ ((InvoicePaymentStatusEnum2) => {
|
|
|
3819
3879
|
var Invoice = class extends BaseEntity {
|
|
3820
3880
|
};
|
|
3821
3881
|
__decorateClass([
|
|
3822
|
-
(0,
|
|
3823
|
-
(0,
|
|
3882
|
+
(0, import_typeorm26.Column)({ name: "timesheet_line_id", type: "integer", nullable: true }),
|
|
3883
|
+
(0, import_typeorm26.Index)()
|
|
3824
3884
|
], Invoice.prototype, "timesheetLineId", 2);
|
|
3825
3885
|
__decorateClass([
|
|
3826
|
-
(0,
|
|
3827
|
-
(0,
|
|
3886
|
+
(0, import_typeorm26.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
|
|
3887
|
+
(0, import_typeorm26.JoinColumn)({ name: "timesheet_line_id" })
|
|
3828
3888
|
], Invoice.prototype, "timesheetLine", 2);
|
|
3829
3889
|
__decorateClass([
|
|
3830
|
-
(0,
|
|
3831
|
-
(0,
|
|
3890
|
+
(0, import_typeorm26.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3891
|
+
(0, import_typeorm26.Index)()
|
|
3832
3892
|
], Invoice.prototype, "jobId", 2);
|
|
3833
3893
|
__decorateClass([
|
|
3834
|
-
(0,
|
|
3835
|
-
(0,
|
|
3894
|
+
(0, import_typeorm26.ManyToOne)(() => Job, (job) => job.invoice),
|
|
3895
|
+
(0, import_typeorm26.JoinColumn)({ name: "job_id" })
|
|
3836
3896
|
], Invoice.prototype, "job", 2);
|
|
3837
3897
|
__decorateClass([
|
|
3838
|
-
(0,
|
|
3839
|
-
(0,
|
|
3898
|
+
(0, import_typeorm26.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3899
|
+
(0, import_typeorm26.Index)()
|
|
3840
3900
|
], Invoice.prototype, "clientId", 2);
|
|
3841
3901
|
__decorateClass([
|
|
3842
|
-
(0,
|
|
3843
|
-
(0,
|
|
3902
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.clientInvoice),
|
|
3903
|
+
(0, import_typeorm26.JoinColumn)({ name: "client_id" })
|
|
3844
3904
|
], Invoice.prototype, "client", 2);
|
|
3845
3905
|
__decorateClass([
|
|
3846
|
-
(0,
|
|
3847
|
-
(0,
|
|
3906
|
+
(0, import_typeorm26.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3907
|
+
(0, import_typeorm26.Index)()
|
|
3848
3908
|
], Invoice.prototype, "freelancerId", 2);
|
|
3849
3909
|
__decorateClass([
|
|
3850
|
-
(0,
|
|
3851
|
-
(0,
|
|
3910
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerInvoice),
|
|
3911
|
+
(0, import_typeorm26.JoinColumn)({ name: "freelancer_id" })
|
|
3852
3912
|
], Invoice.prototype, "freelancer", 2);
|
|
3853
3913
|
__decorateClass([
|
|
3854
|
-
(0,
|
|
3914
|
+
(0, import_typeorm26.Column)({ name: "invoice_unique_id", type: "varchar", nullable: true })
|
|
3855
3915
|
], Invoice.prototype, "invoiceUniqueId", 2);
|
|
3856
3916
|
__decorateClass([
|
|
3857
|
-
(0,
|
|
3917
|
+
(0, import_typeorm26.Column)({
|
|
3858
3918
|
name: "issued_at",
|
|
3859
3919
|
type: "date",
|
|
3860
3920
|
nullable: true
|
|
3861
3921
|
})
|
|
3862
3922
|
], Invoice.prototype, "issuedAt", 2);
|
|
3863
3923
|
__decorateClass([
|
|
3864
|
-
(0,
|
|
3924
|
+
(0, import_typeorm26.Column)({
|
|
3865
3925
|
name: "due_at",
|
|
3866
3926
|
type: "date",
|
|
3867
3927
|
nullable: true
|
|
3868
3928
|
})
|
|
3869
3929
|
], Invoice.prototype, "dueAt", 2);
|
|
3870
3930
|
__decorateClass([
|
|
3871
|
-
(0,
|
|
3931
|
+
(0, import_typeorm26.Column)({
|
|
3872
3932
|
name: "billing_cycle_from",
|
|
3873
3933
|
type: "date",
|
|
3874
3934
|
nullable: true
|
|
3875
3935
|
})
|
|
3876
3936
|
], Invoice.prototype, "billingCycleFrom", 2);
|
|
3877
3937
|
__decorateClass([
|
|
3878
|
-
(0,
|
|
3938
|
+
(0, import_typeorm26.Column)({
|
|
3879
3939
|
name: "billing_cycle_to",
|
|
3880
3940
|
type: "date",
|
|
3881
3941
|
nullable: true
|
|
3882
3942
|
})
|
|
3883
3943
|
], Invoice.prototype, "billingCycleTo", 2);
|
|
3884
3944
|
__decorateClass([
|
|
3885
|
-
(0,
|
|
3945
|
+
(0, import_typeorm26.Column)({ name: "billing_hours", type: "varchar", nullable: true })
|
|
3886
3946
|
], Invoice.prototype, "billingHours", 2);
|
|
3887
3947
|
__decorateClass([
|
|
3888
|
-
(0,
|
|
3948
|
+
(0, import_typeorm26.Column)({ name: "hourly_rate", type: "varchar", nullable: true })
|
|
3889
3949
|
], Invoice.prototype, "hourlyRate", 2);
|
|
3890
3950
|
__decorateClass([
|
|
3891
|
-
(0,
|
|
3951
|
+
(0, import_typeorm26.Column)({ name: "billing_amount", type: "varchar", nullable: true })
|
|
3892
3952
|
], Invoice.prototype, "billingAmount", 2);
|
|
3893
3953
|
__decorateClass([
|
|
3894
|
-
(0,
|
|
3954
|
+
(0, import_typeorm26.Column)({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
|
|
3895
3955
|
], Invoice.prototype, "invoiceType", 2);
|
|
3896
3956
|
__decorateClass([
|
|
3897
|
-
(0,
|
|
3957
|
+
(0, import_typeorm26.Column)({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
|
|
3898
3958
|
], Invoice.prototype, "status", 2);
|
|
3899
3959
|
__decorateClass([
|
|
3900
|
-
(0,
|
|
3960
|
+
(0, import_typeorm26.Column)({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
|
|
3901
3961
|
], Invoice.prototype, "paymentStatus", 2);
|
|
3902
3962
|
__decorateClass([
|
|
3903
|
-
(0,
|
|
3963
|
+
(0, import_typeorm26.Column)({ name: "client_invoice_url", type: "varchar", nullable: true })
|
|
3904
3964
|
], Invoice.prototype, "clientInvoiceUrl", 2);
|
|
3905
3965
|
__decorateClass([
|
|
3906
|
-
(0,
|
|
3966
|
+
(0, import_typeorm26.Column)({ name: "freelancer_invoice_url", type: "varchar", nullable: true })
|
|
3907
3967
|
], Invoice.prototype, "freelancerInvoiceUrl", 2);
|
|
3908
3968
|
__decorateClass([
|
|
3909
|
-
(0,
|
|
3969
|
+
(0, import_typeorm26.OneToOne)(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.invoice)
|
|
3910
3970
|
], Invoice.prototype, "escrowWalletTransaction", 2);
|
|
3971
|
+
__decorateClass([
|
|
3972
|
+
(0, import_typeorm26.OneToOne)(() => Hiring, (hiring) => hiring.invoice)
|
|
3973
|
+
], Invoice.prototype, "hiring", 2);
|
|
3911
3974
|
Invoice = __decorateClass([
|
|
3912
|
-
(0,
|
|
3975
|
+
(0, import_typeorm26.Entity)("invoices")
|
|
3913
3976
|
], Invoice);
|
|
3914
3977
|
|
|
3915
3978
|
// src/entities/escrow-wallet-transaction.entity.ts
|
|
@@ -3926,89 +3989,89 @@ var EscrowWalletTransactionForEnum = /* @__PURE__ */ ((EscrowWalletTransactionFo
|
|
|
3926
3989
|
var EscrowWalletTransaction = class extends BaseEntity {
|
|
3927
3990
|
};
|
|
3928
3991
|
__decorateClass([
|
|
3929
|
-
(0,
|
|
3930
|
-
(0,
|
|
3992
|
+
(0, import_typeorm27.Column)({ name: "escrow_wallet_id", type: "integer", nullable: true }),
|
|
3993
|
+
(0, import_typeorm27.Index)()
|
|
3931
3994
|
], EscrowWalletTransaction.prototype, "escrowWalletId", 2);
|
|
3932
3995
|
__decorateClass([
|
|
3933
|
-
(0,
|
|
3934
|
-
(0,
|
|
3996
|
+
(0, import_typeorm27.ManyToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.escrowWalletTransactions),
|
|
3997
|
+
(0, import_typeorm27.JoinColumn)({ name: "wallet_id" })
|
|
3935
3998
|
], EscrowWalletTransaction.prototype, "escrowWallet", 2);
|
|
3936
3999
|
__decorateClass([
|
|
3937
|
-
(0,
|
|
3938
|
-
(0,
|
|
4000
|
+
(0, import_typeorm27.Column)({ name: "invoice_id", type: "integer", nullable: true }),
|
|
4001
|
+
(0, import_typeorm27.Index)()
|
|
3939
4002
|
], EscrowWalletTransaction.prototype, "invoiceId", 2);
|
|
3940
4003
|
__decorateClass([
|
|
3941
|
-
(0,
|
|
3942
|
-
(0,
|
|
4004
|
+
(0, import_typeorm27.OneToOne)(() => Invoice, (invoice) => invoice.escrowWalletTransaction),
|
|
4005
|
+
(0, import_typeorm27.JoinColumn)({ name: "invoice_id" })
|
|
3943
4006
|
], EscrowWalletTransaction.prototype, "invoice", 2);
|
|
3944
4007
|
__decorateClass([
|
|
3945
|
-
(0,
|
|
4008
|
+
(0, import_typeorm27.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
3946
4009
|
], EscrowWalletTransaction.prototype, "amount", 2);
|
|
3947
4010
|
__decorateClass([
|
|
3948
|
-
(0,
|
|
4011
|
+
(0, import_typeorm27.Column)({ name: "escrow_type", type: "enum", enum: EscrowWalletTransactionTypeEnum })
|
|
3949
4012
|
], EscrowWalletTransaction.prototype, "escrowType", 2);
|
|
3950
4013
|
__decorateClass([
|
|
3951
|
-
(0,
|
|
4014
|
+
(0, import_typeorm27.Column)({ name: "description", type: "text", nullable: true })
|
|
3952
4015
|
], EscrowWalletTransaction.prototype, "description", 2);
|
|
3953
4016
|
__decorateClass([
|
|
3954
|
-
(0,
|
|
4017
|
+
(0, import_typeorm27.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
3955
4018
|
], EscrowWalletTransaction.prototype, "completedAt", 2);
|
|
3956
4019
|
__decorateClass([
|
|
3957
|
-
(0,
|
|
4020
|
+
(0, import_typeorm27.Column)({ name: "escrow_transaction_for", type: "enum", enum: EscrowWalletTransactionForEnum })
|
|
3958
4021
|
], EscrowWalletTransaction.prototype, "escrowTransactionFor", 2);
|
|
3959
4022
|
__decorateClass([
|
|
3960
|
-
(0,
|
|
4023
|
+
(0, import_typeorm27.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
3961
4024
|
], EscrowWalletTransaction.prototype, "metaData", 2);
|
|
3962
4025
|
EscrowWalletTransaction = __decorateClass([
|
|
3963
|
-
(0,
|
|
4026
|
+
(0, import_typeorm27.Entity)("escrow_wallet_transactions")
|
|
3964
4027
|
], EscrowWalletTransaction);
|
|
3965
4028
|
|
|
3966
4029
|
// src/entities/escrow-wallet.entity.ts
|
|
3967
4030
|
var EscrowWallet = class extends BaseEntity {
|
|
3968
4031
|
};
|
|
3969
4032
|
__decorateClass([
|
|
3970
|
-
(0,
|
|
3971
|
-
(0,
|
|
4033
|
+
(0, import_typeorm28.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4034
|
+
(0, import_typeorm28.Index)()
|
|
3972
4035
|
], EscrowWallet.prototype, "jobId", 2);
|
|
3973
4036
|
__decorateClass([
|
|
3974
|
-
(0,
|
|
3975
|
-
(0,
|
|
4037
|
+
(0, import_typeorm28.ManyToOne)(() => Job, (job) => job.escrowWallets),
|
|
4038
|
+
(0, import_typeorm28.JoinColumn)({ name: "job_id" })
|
|
3976
4039
|
], EscrowWallet.prototype, "job", 2);
|
|
3977
4040
|
__decorateClass([
|
|
3978
|
-
(0,
|
|
3979
|
-
(0,
|
|
4041
|
+
(0, import_typeorm28.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4042
|
+
(0, import_typeorm28.Index)()
|
|
3980
4043
|
], EscrowWallet.prototype, "clientId", 2);
|
|
3981
4044
|
__decorateClass([
|
|
3982
|
-
(0,
|
|
3983
|
-
(0,
|
|
4045
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.clientEscrowWallets),
|
|
4046
|
+
(0, import_typeorm28.JoinColumn)({ name: "client_id" })
|
|
3984
4047
|
], EscrowWallet.prototype, "client", 2);
|
|
3985
4048
|
__decorateClass([
|
|
3986
|
-
(0,
|
|
3987
|
-
(0,
|
|
4049
|
+
(0, import_typeorm28.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4050
|
+
(0, import_typeorm28.Index)()
|
|
3988
4051
|
], EscrowWallet.prototype, "freelancerId", 2);
|
|
3989
4052
|
__decorateClass([
|
|
3990
|
-
(0,
|
|
3991
|
-
(0,
|
|
4053
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.freelancerEscrowWallets),
|
|
4054
|
+
(0, import_typeorm28.JoinColumn)({ name: "freelancer_id" })
|
|
3992
4055
|
], EscrowWallet.prototype, "freelancer", 2);
|
|
3993
4056
|
__decorateClass([
|
|
3994
|
-
(0,
|
|
3995
|
-
(0,
|
|
4057
|
+
(0, import_typeorm28.Column)({ name: "contract_id", type: "integer", nullable: true }),
|
|
4058
|
+
(0, import_typeorm28.Index)()
|
|
3996
4059
|
], EscrowWallet.prototype, "contractId", 2);
|
|
3997
4060
|
__decorateClass([
|
|
3998
|
-
(0,
|
|
3999
|
-
(0,
|
|
4061
|
+
(0, import_typeorm28.OneToOne)(() => Contract, (contract) => contract.escrowWallet),
|
|
4062
|
+
(0, import_typeorm28.JoinColumn)({ name: "contract_id" })
|
|
4000
4063
|
], EscrowWallet.prototype, "contract", 2);
|
|
4001
4064
|
__decorateClass([
|
|
4002
|
-
(0,
|
|
4065
|
+
(0, import_typeorm28.Column)({ name: "wallet_balance", type: "varchar", default: "0" })
|
|
4003
4066
|
], EscrowWallet.prototype, "escrowBalance", 2);
|
|
4004
4067
|
__decorateClass([
|
|
4005
|
-
(0,
|
|
4068
|
+
(0, import_typeorm28.Column)({ name: "metadata", type: "jsonb", nullable: true })
|
|
4006
4069
|
], EscrowWallet.prototype, "metadata", 2);
|
|
4007
4070
|
__decorateClass([
|
|
4008
|
-
(0,
|
|
4071
|
+
(0, import_typeorm28.OneToMany)(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.escrowWallet)
|
|
4009
4072
|
], EscrowWallet.prototype, "escrowWalletTransactions", 2);
|
|
4010
4073
|
EscrowWallet = __decorateClass([
|
|
4011
|
-
(0,
|
|
4074
|
+
(0, import_typeorm28.Entity)("escrow_wallets")
|
|
4012
4075
|
], EscrowWallet);
|
|
4013
4076
|
|
|
4014
4077
|
// src/entities/contract.entity.ts
|
|
@@ -4033,37 +4096,37 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
|
4033
4096
|
var Contract = class extends BaseEntity {
|
|
4034
4097
|
};
|
|
4035
4098
|
__decorateClass([
|
|
4036
|
-
(0,
|
|
4099
|
+
(0, import_typeorm29.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
4037
4100
|
], Contract.prototype, "contractUniqueId", 2);
|
|
4038
4101
|
__decorateClass([
|
|
4039
|
-
(0,
|
|
4040
|
-
(0,
|
|
4102
|
+
(0, import_typeorm29.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4103
|
+
(0, import_typeorm29.Index)()
|
|
4041
4104
|
], Contract.prototype, "jobId", 2);
|
|
4042
4105
|
__decorateClass([
|
|
4043
|
-
(0,
|
|
4044
|
-
(0,
|
|
4106
|
+
(0, import_typeorm29.ManyToOne)(() => Job, (job) => job.contracts),
|
|
4107
|
+
(0, import_typeorm29.JoinColumn)({ name: "job_id" })
|
|
4045
4108
|
], Contract.prototype, "job", 2);
|
|
4046
4109
|
__decorateClass([
|
|
4047
|
-
(0,
|
|
4048
|
-
(0,
|
|
4110
|
+
(0, import_typeorm29.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4111
|
+
(0, import_typeorm29.Index)()
|
|
4049
4112
|
], Contract.prototype, "clientId", 2);
|
|
4050
4113
|
__decorateClass([
|
|
4051
|
-
(0,
|
|
4052
|
-
(0,
|
|
4114
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.clientContracts),
|
|
4115
|
+
(0, import_typeorm29.JoinColumn)({ name: "client_id" })
|
|
4053
4116
|
], Contract.prototype, "client", 2);
|
|
4054
4117
|
__decorateClass([
|
|
4055
|
-
(0,
|
|
4056
|
-
(0,
|
|
4118
|
+
(0, import_typeorm29.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4119
|
+
(0, import_typeorm29.Index)()
|
|
4057
4120
|
], Contract.prototype, "freelancerId", 2);
|
|
4058
4121
|
__decorateClass([
|
|
4059
|
-
(0,
|
|
4060
|
-
(0,
|
|
4122
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.freelancerContracts),
|
|
4123
|
+
(0, import_typeorm29.JoinColumn)({ name: "freelancer_id" })
|
|
4061
4124
|
], Contract.prototype, "freelancer", 2);
|
|
4062
4125
|
__decorateClass([
|
|
4063
|
-
(0,
|
|
4126
|
+
(0, import_typeorm29.Column)({ name: "duration", type: "integer", nullable: true })
|
|
4064
4127
|
], Contract.prototype, "duration", 2);
|
|
4065
4128
|
__decorateClass([
|
|
4066
|
-
(0,
|
|
4129
|
+
(0, import_typeorm29.Column)({
|
|
4067
4130
|
name: "status",
|
|
4068
4131
|
type: "enum",
|
|
4069
4132
|
enum: ContractStatusEnum,
|
|
@@ -4071,7 +4134,7 @@ __decorateClass([
|
|
|
4071
4134
|
})
|
|
4072
4135
|
], Contract.prototype, "status", 2);
|
|
4073
4136
|
__decorateClass([
|
|
4074
|
-
(0,
|
|
4137
|
+
(0, import_typeorm29.Column)({
|
|
4075
4138
|
name: "type",
|
|
4076
4139
|
type: "enum",
|
|
4077
4140
|
enum: ContractTypeEnum,
|
|
@@ -4079,10 +4142,10 @@ __decorateClass([
|
|
|
4079
4142
|
})
|
|
4080
4143
|
], Contract.prototype, "type", 2);
|
|
4081
4144
|
__decorateClass([
|
|
4082
|
-
(0,
|
|
4145
|
+
(0, import_typeorm29.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
4083
4146
|
], Contract.prototype, "invoicingCycle", 2);
|
|
4084
4147
|
__decorateClass([
|
|
4085
|
-
(0,
|
|
4148
|
+
(0, import_typeorm29.Column)({
|
|
4086
4149
|
name: "escrow_deposite_amount",
|
|
4087
4150
|
type: "decimal",
|
|
4088
4151
|
precision: 10,
|
|
@@ -4091,80 +4154,80 @@ __decorateClass([
|
|
|
4091
4154
|
})
|
|
4092
4155
|
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
4093
4156
|
__decorateClass([
|
|
4094
|
-
(0,
|
|
4157
|
+
(0, import_typeorm29.Column)({
|
|
4095
4158
|
name: "start_date",
|
|
4096
4159
|
type: "timestamp with time zone",
|
|
4097
4160
|
nullable: true
|
|
4098
4161
|
})
|
|
4099
4162
|
], Contract.prototype, "startDate", 2);
|
|
4100
4163
|
__decorateClass([
|
|
4101
|
-
(0,
|
|
4164
|
+
(0, import_typeorm29.Column)({
|
|
4102
4165
|
name: "end_date",
|
|
4103
4166
|
type: "timestamp with time zone",
|
|
4104
4167
|
nullable: true
|
|
4105
4168
|
})
|
|
4106
4169
|
], Contract.prototype, "endDate", 2);
|
|
4107
4170
|
__decorateClass([
|
|
4108
|
-
(0,
|
|
4171
|
+
(0, import_typeorm29.Column)({ name: "original_document_url", type: "varchar", nullable: true })
|
|
4109
4172
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
4110
4173
|
__decorateClass([
|
|
4111
|
-
(0,
|
|
4174
|
+
(0, import_typeorm29.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
4112
4175
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
4113
4176
|
__decorateClass([
|
|
4114
|
-
(0,
|
|
4177
|
+
(0, import_typeorm29.Column)({
|
|
4115
4178
|
name: "client_signed_at",
|
|
4116
4179
|
type: "timestamp with time zone",
|
|
4117
4180
|
nullable: true
|
|
4118
4181
|
})
|
|
4119
4182
|
], Contract.prototype, "clientSignedAt", 2);
|
|
4120
4183
|
__decorateClass([
|
|
4121
|
-
(0,
|
|
4184
|
+
(0, import_typeorm29.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
4122
4185
|
], Contract.prototype, "freelancerViewed", 2);
|
|
4123
4186
|
__decorateClass([
|
|
4124
|
-
(0,
|
|
4187
|
+
(0, import_typeorm29.Column)({
|
|
4125
4188
|
name: "freelancer_viewed_at",
|
|
4126
4189
|
type: "timestamp with time zone",
|
|
4127
4190
|
nullable: true
|
|
4128
4191
|
})
|
|
4129
4192
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
4130
4193
|
__decorateClass([
|
|
4131
|
-
(0,
|
|
4194
|
+
(0, import_typeorm29.Column)({
|
|
4132
4195
|
name: "freelancer_signed_at",
|
|
4133
4196
|
type: "timestamp with time zone",
|
|
4134
4197
|
nullable: true
|
|
4135
4198
|
})
|
|
4136
4199
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
4137
4200
|
__decorateClass([
|
|
4138
|
-
(0,
|
|
4201
|
+
(0, import_typeorm29.Column)({
|
|
4139
4202
|
name: "rejectd_at",
|
|
4140
4203
|
type: "timestamp with time zone",
|
|
4141
4204
|
nullable: true
|
|
4142
4205
|
})
|
|
4143
4206
|
], Contract.prototype, "rejectedAt", 2);
|
|
4144
4207
|
__decorateClass([
|
|
4145
|
-
(0,
|
|
4208
|
+
(0, import_typeorm29.Column)({ name: "reject_reason", type: "varchar", nullable: true })
|
|
4146
4209
|
], Contract.prototype, "rejectReason", 2);
|
|
4147
4210
|
__decorateClass([
|
|
4148
|
-
(0,
|
|
4211
|
+
(0, import_typeorm29.Column)({ name: "resend_count", type: "integer", default: 0 })
|
|
4149
4212
|
], Contract.prototype, "resendCount", 2);
|
|
4150
4213
|
__decorateClass([
|
|
4151
|
-
(0,
|
|
4214
|
+
(0, import_typeorm29.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
4152
4215
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
4153
4216
|
__decorateClass([
|
|
4154
|
-
(0,
|
|
4217
|
+
(0, import_typeorm29.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
4155
4218
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
4156
4219
|
__decorateClass([
|
|
4157
|
-
(0,
|
|
4220
|
+
(0, import_typeorm29.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
4158
4221
|
], Contract.prototype, "signaturePositions", 2);
|
|
4159
4222
|
__decorateClass([
|
|
4160
|
-
(0,
|
|
4223
|
+
(0, import_typeorm29.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
4161
4224
|
], Contract.prototype, "escrowWallet", 2);
|
|
4162
4225
|
Contract = __decorateClass([
|
|
4163
|
-
(0,
|
|
4226
|
+
(0, import_typeorm29.Entity)("contracts")
|
|
4164
4227
|
], Contract);
|
|
4165
4228
|
|
|
4166
4229
|
// src/entities/timesheets.entity.ts
|
|
4167
|
-
var
|
|
4230
|
+
var import_typeorm30 = require("typeorm");
|
|
4168
4231
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
4169
4232
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
4170
4233
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -4177,136 +4240,136 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
4177
4240
|
var Timesheet = class extends BaseEntity {
|
|
4178
4241
|
};
|
|
4179
4242
|
__decorateClass([
|
|
4180
|
-
(0,
|
|
4181
|
-
(0,
|
|
4243
|
+
(0, import_typeorm30.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
4244
|
+
(0, import_typeorm30.Index)()
|
|
4182
4245
|
], Timesheet.prototype, "jobId", 2);
|
|
4183
4246
|
__decorateClass([
|
|
4184
|
-
(0,
|
|
4185
|
-
(0,
|
|
4247
|
+
(0, import_typeorm30.ManyToOne)(() => Job, (job) => job.timesheets),
|
|
4248
|
+
(0, import_typeorm30.JoinColumn)({ name: "job_id" })
|
|
4186
4249
|
], Timesheet.prototype, "job", 2);
|
|
4187
4250
|
__decorateClass([
|
|
4188
|
-
(0,
|
|
4189
|
-
(0,
|
|
4251
|
+
(0, import_typeorm30.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
4252
|
+
(0, import_typeorm30.Index)()
|
|
4190
4253
|
], Timesheet.prototype, "clientId", 2);
|
|
4191
4254
|
__decorateClass([
|
|
4192
|
-
(0,
|
|
4193
|
-
(0,
|
|
4255
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.clientTimesheets),
|
|
4256
|
+
(0, import_typeorm30.JoinColumn)({ name: "client_id" })
|
|
4194
4257
|
], Timesheet.prototype, "client", 2);
|
|
4195
4258
|
__decorateClass([
|
|
4196
|
-
(0,
|
|
4197
|
-
(0,
|
|
4259
|
+
(0, import_typeorm30.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4260
|
+
(0, import_typeorm30.Index)()
|
|
4198
4261
|
], Timesheet.prototype, "freelancerId", 2);
|
|
4199
4262
|
__decorateClass([
|
|
4200
|
-
(0,
|
|
4201
|
-
(0,
|
|
4263
|
+
(0, import_typeorm30.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
|
|
4264
|
+
(0, import_typeorm30.JoinColumn)({ name: "freelancer_id" })
|
|
4202
4265
|
], Timesheet.prototype, "freelancer", 2);
|
|
4203
4266
|
__decorateClass([
|
|
4204
|
-
(0,
|
|
4267
|
+
(0, import_typeorm30.Column)({
|
|
4205
4268
|
name: "start_date",
|
|
4206
4269
|
type: "date",
|
|
4207
4270
|
nullable: true
|
|
4208
4271
|
})
|
|
4209
4272
|
], Timesheet.prototype, "startDate", 2);
|
|
4210
4273
|
__decorateClass([
|
|
4211
|
-
(0,
|
|
4274
|
+
(0, import_typeorm30.Column)({
|
|
4212
4275
|
name: "end_date",
|
|
4213
4276
|
type: "date",
|
|
4214
4277
|
nullable: true
|
|
4215
4278
|
})
|
|
4216
4279
|
], Timesheet.prototype, "endDate", 2);
|
|
4217
4280
|
__decorateClass([
|
|
4218
|
-
(0,
|
|
4281
|
+
(0, import_typeorm30.Column)({ name: "start_time", type: "varchar", nullable: true })
|
|
4219
4282
|
], Timesheet.prototype, "startTime", 2);
|
|
4220
4283
|
__decorateClass([
|
|
4221
|
-
(0,
|
|
4284
|
+
(0, import_typeorm30.Column)({ name: "end_time", type: "varchar", nullable: true })
|
|
4222
4285
|
], Timesheet.prototype, "endTime", 2);
|
|
4223
4286
|
__decorateClass([
|
|
4224
|
-
(0,
|
|
4287
|
+
(0, import_typeorm30.Column)({ name: "worked_hours", type: "varchar", nullable: true })
|
|
4225
4288
|
], Timesheet.prototype, "workedHours", 2);
|
|
4226
4289
|
__decorateClass([
|
|
4227
|
-
(0,
|
|
4290
|
+
(0, import_typeorm30.Column)({ name: "task_id", type: "integer", nullable: true })
|
|
4228
4291
|
], Timesheet.prototype, "taskId", 2);
|
|
4229
4292
|
__decorateClass([
|
|
4230
|
-
(0,
|
|
4293
|
+
(0, import_typeorm30.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
4231
4294
|
], Timesheet.prototype, "taskName", 2);
|
|
4232
4295
|
__decorateClass([
|
|
4233
|
-
(0,
|
|
4296
|
+
(0, import_typeorm30.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4234
4297
|
], Timesheet.prototype, "description", 2);
|
|
4235
4298
|
__decorateClass([
|
|
4236
|
-
(0,
|
|
4299
|
+
(0, import_typeorm30.Column)({ name: "week_start_date", type: "date", nullable: true })
|
|
4237
4300
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
4238
4301
|
__decorateClass([
|
|
4239
|
-
(0,
|
|
4302
|
+
(0, import_typeorm30.Column)({ name: "week_end_date", type: "date", nullable: true })
|
|
4240
4303
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
4241
4304
|
__decorateClass([
|
|
4242
|
-
(0,
|
|
4305
|
+
(0, import_typeorm30.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
4243
4306
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
4244
4307
|
__decorateClass([
|
|
4245
|
-
(0,
|
|
4308
|
+
(0, import_typeorm30.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
4246
4309
|
], Timesheet.prototype, "submittedAt", 2);
|
|
4247
4310
|
__decorateClass([
|
|
4248
|
-
(0,
|
|
4311
|
+
(0, import_typeorm30.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
4249
4312
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
4250
4313
|
__decorateClass([
|
|
4251
|
-
(0,
|
|
4314
|
+
(0, import_typeorm30.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
4252
4315
|
], Timesheet.prototype, "approvedAt", 2);
|
|
4253
4316
|
__decorateClass([
|
|
4254
|
-
(0,
|
|
4317
|
+
(0, import_typeorm30.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
4255
4318
|
], Timesheet.prototype, "status", 2);
|
|
4256
4319
|
__decorateClass([
|
|
4257
|
-
(0,
|
|
4320
|
+
(0, import_typeorm30.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
4258
4321
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
4259
4322
|
Timesheet = __decorateClass([
|
|
4260
|
-
(0,
|
|
4323
|
+
(0, import_typeorm30.Entity)("timesheets")
|
|
4261
4324
|
], Timesheet);
|
|
4262
4325
|
|
|
4263
4326
|
// src/entities/job-location.entity.ts
|
|
4264
|
-
var
|
|
4327
|
+
var import_typeorm31 = require("typeorm");
|
|
4265
4328
|
var JobLocation = class extends BaseEntity {
|
|
4266
4329
|
};
|
|
4267
4330
|
__decorateClass([
|
|
4268
|
-
(0,
|
|
4269
|
-
(0,
|
|
4331
|
+
(0, import_typeorm31.Column)({ name: "job_id", type: "integer", nullable: false }),
|
|
4332
|
+
(0, import_typeorm31.Index)()
|
|
4270
4333
|
], JobLocation.prototype, "jobId", 2);
|
|
4271
4334
|
__decorateClass([
|
|
4272
|
-
(0,
|
|
4273
|
-
(0,
|
|
4335
|
+
(0, import_typeorm31.ManyToOne)(() => Job, (job) => job.jobLocations),
|
|
4336
|
+
(0, import_typeorm31.JoinColumn)({ name: "job_id" })
|
|
4274
4337
|
], JobLocation.prototype, "job", 2);
|
|
4275
4338
|
__decorateClass([
|
|
4276
|
-
(0,
|
|
4339
|
+
(0, import_typeorm31.Column)({ name: "country_id", type: "int", nullable: false })
|
|
4277
4340
|
], JobLocation.prototype, "countryId", 2);
|
|
4278
4341
|
__decorateClass([
|
|
4279
|
-
(0,
|
|
4342
|
+
(0, import_typeorm31.Column)({ name: "country_name", type: "varchar", nullable: true })
|
|
4280
4343
|
], JobLocation.prototype, "countryName", 2);
|
|
4281
4344
|
__decorateClass([
|
|
4282
|
-
(0,
|
|
4283
|
-
(0,
|
|
4345
|
+
(0, import_typeorm31.ManyToOne)(() => Country),
|
|
4346
|
+
(0, import_typeorm31.JoinColumn)({ name: "country_id" })
|
|
4284
4347
|
], JobLocation.prototype, "country", 2);
|
|
4285
4348
|
__decorateClass([
|
|
4286
|
-
(0,
|
|
4349
|
+
(0, import_typeorm31.Column)({ name: "state_id", type: "int", nullable: false })
|
|
4287
4350
|
], JobLocation.prototype, "stateId", 2);
|
|
4288
4351
|
__decorateClass([
|
|
4289
|
-
(0,
|
|
4352
|
+
(0, import_typeorm31.Column)({ name: "state_name", type: "varchar", nullable: true })
|
|
4290
4353
|
], JobLocation.prototype, "stateName", 2);
|
|
4291
4354
|
__decorateClass([
|
|
4292
|
-
(0,
|
|
4293
|
-
(0,
|
|
4355
|
+
(0, import_typeorm31.ManyToOne)(() => State),
|
|
4356
|
+
(0, import_typeorm31.JoinColumn)({ name: "state_id" })
|
|
4294
4357
|
], JobLocation.prototype, "state", 2);
|
|
4295
4358
|
__decorateClass([
|
|
4296
|
-
(0,
|
|
4359
|
+
(0, import_typeorm31.Column)({ name: "city_id", type: "int", nullable: false })
|
|
4297
4360
|
], JobLocation.prototype, "cityId", 2);
|
|
4298
4361
|
__decorateClass([
|
|
4299
|
-
(0,
|
|
4362
|
+
(0, import_typeorm31.Column)({ name: "city_name", type: "varchar", nullable: true })
|
|
4300
4363
|
], JobLocation.prototype, "cityName", 2);
|
|
4301
4364
|
__decorateClass([
|
|
4302
|
-
(0,
|
|
4303
|
-
(0,
|
|
4365
|
+
(0, import_typeorm31.ManyToOne)(() => City),
|
|
4366
|
+
(0, import_typeorm31.JoinColumn)({ name: "city_id" })
|
|
4304
4367
|
], JobLocation.prototype, "city", 2);
|
|
4305
4368
|
__decorateClass([
|
|
4306
|
-
(0,
|
|
4369
|
+
(0, import_typeorm31.Column)({ name: "location_wise_openings", type: "int", default: 0 })
|
|
4307
4370
|
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
4308
4371
|
JobLocation = __decorateClass([
|
|
4309
|
-
(0,
|
|
4372
|
+
(0, import_typeorm31.Entity)("job_locations")
|
|
4310
4373
|
], JobLocation);
|
|
4311
4374
|
|
|
4312
4375
|
// src/entities/job.entity.ts
|
|
@@ -4355,55 +4418,55 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4355
4418
|
var Job = class extends BaseEntity {
|
|
4356
4419
|
};
|
|
4357
4420
|
__decorateClass([
|
|
4358
|
-
(0,
|
|
4421
|
+
(0, import_typeorm32.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4359
4422
|
], Job.prototype, "jobId", 2);
|
|
4360
4423
|
// individual index to find jobs by user
|
|
4361
4424
|
__decorateClass([
|
|
4362
|
-
(0,
|
|
4363
|
-
(0,
|
|
4425
|
+
(0, import_typeorm32.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4426
|
+
(0, import_typeorm32.Index)()
|
|
4364
4427
|
], Job.prototype, "userId", 2);
|
|
4365
4428
|
__decorateClass([
|
|
4366
|
-
(0,
|
|
4367
|
-
(0,
|
|
4429
|
+
(0, import_typeorm32.ManyToOne)(() => User, (user) => user.jobs),
|
|
4430
|
+
(0, import_typeorm32.JoinColumn)({ name: "user_id" })
|
|
4368
4431
|
], Job.prototype, "user", 2);
|
|
4369
4432
|
__decorateClass([
|
|
4370
|
-
(0,
|
|
4433
|
+
(0, import_typeorm32.Column)({ name: "country_id", type: "int", nullable: true })
|
|
4371
4434
|
], Job.prototype, "countryId", 2);
|
|
4372
4435
|
__decorateClass([
|
|
4373
|
-
(0,
|
|
4374
|
-
(0,
|
|
4436
|
+
(0, import_typeorm32.ManyToOne)(() => Country),
|
|
4437
|
+
(0, import_typeorm32.JoinColumn)({ name: "country_id" })
|
|
4375
4438
|
], Job.prototype, "country", 2);
|
|
4376
4439
|
__decorateClass([
|
|
4377
|
-
(0,
|
|
4440
|
+
(0, import_typeorm32.Column)({ name: "state_id", type: "int", nullable: true })
|
|
4378
4441
|
], Job.prototype, "stateId", 2);
|
|
4379
4442
|
__decorateClass([
|
|
4380
|
-
(0,
|
|
4381
|
-
(0,
|
|
4443
|
+
(0, import_typeorm32.ManyToOne)(() => State),
|
|
4444
|
+
(0, import_typeorm32.JoinColumn)({ name: "state_id" })
|
|
4382
4445
|
], Job.prototype, "state", 2);
|
|
4383
4446
|
__decorateClass([
|
|
4384
|
-
(0,
|
|
4447
|
+
(0, import_typeorm32.Column)({ name: "city_id", type: "int", nullable: true })
|
|
4385
4448
|
], Job.prototype, "cityId", 2);
|
|
4386
4449
|
__decorateClass([
|
|
4387
|
-
(0,
|
|
4388
|
-
(0,
|
|
4450
|
+
(0, import_typeorm32.ManyToOne)(() => City),
|
|
4451
|
+
(0, import_typeorm32.JoinColumn)({ name: "city_id" })
|
|
4389
4452
|
], Job.prototype, "city", 2);
|
|
4390
4453
|
__decorateClass([
|
|
4391
|
-
(0,
|
|
4454
|
+
(0, import_typeorm32.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
4392
4455
|
], Job.prototype, "jobRole", 2);
|
|
4393
4456
|
__decorateClass([
|
|
4394
|
-
(0,
|
|
4457
|
+
(0, import_typeorm32.Column)({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4395
4458
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4396
4459
|
__decorateClass([
|
|
4397
|
-
(0,
|
|
4460
|
+
(0, import_typeorm32.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4398
4461
|
], Job.prototype, "projectName", 2);
|
|
4399
4462
|
__decorateClass([
|
|
4400
|
-
(0,
|
|
4463
|
+
(0, import_typeorm32.Column)({ name: "note", type: "varchar", nullable: true })
|
|
4401
4464
|
], Job.prototype, "note", 2);
|
|
4402
4465
|
__decorateClass([
|
|
4403
|
-
(0,
|
|
4466
|
+
(0, import_typeorm32.Column)({ name: "openings", type: "integer", default: 0 })
|
|
4404
4467
|
], Job.prototype, "openings", 2);
|
|
4405
4468
|
__decorateClass([
|
|
4406
|
-
(0,
|
|
4469
|
+
(0, import_typeorm32.Column)({
|
|
4407
4470
|
name: "location",
|
|
4408
4471
|
type: "enum",
|
|
4409
4472
|
enum: JobLocationEnum2,
|
|
@@ -4411,7 +4474,7 @@ __decorateClass([
|
|
|
4411
4474
|
})
|
|
4412
4475
|
], Job.prototype, "location", 2);
|
|
4413
4476
|
__decorateClass([
|
|
4414
|
-
(0,
|
|
4477
|
+
(0, import_typeorm32.Column)({
|
|
4415
4478
|
name: "type_of_employment",
|
|
4416
4479
|
type: "enum",
|
|
4417
4480
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4419,10 +4482,10 @@ __decorateClass([
|
|
|
4419
4482
|
})
|
|
4420
4483
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4421
4484
|
__decorateClass([
|
|
4422
|
-
(0,
|
|
4485
|
+
(0, import_typeorm32.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4423
4486
|
], Job.prototype, "academicQualification", 2);
|
|
4424
4487
|
__decorateClass([
|
|
4425
|
-
(0,
|
|
4488
|
+
(0, import_typeorm32.Column)({
|
|
4426
4489
|
name: "type_of_experience",
|
|
4427
4490
|
type: "enum",
|
|
4428
4491
|
enum: typeOfExperienceEnum,
|
|
@@ -4430,22 +4493,22 @@ __decorateClass([
|
|
|
4430
4493
|
})
|
|
4431
4494
|
], Job.prototype, "typeOfExperience", 2);
|
|
4432
4495
|
__decorateClass([
|
|
4433
|
-
(0,
|
|
4496
|
+
(0, import_typeorm32.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4434
4497
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4435
4498
|
__decorateClass([
|
|
4436
|
-
(0,
|
|
4499
|
+
(0, import_typeorm32.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4437
4500
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4438
4501
|
__decorateClass([
|
|
4439
|
-
(0,
|
|
4502
|
+
(0, import_typeorm32.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4440
4503
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4441
4504
|
__decorateClass([
|
|
4442
|
-
(0,
|
|
4505
|
+
(0, import_typeorm32.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
4443
4506
|
], Job.prototype, "businessIndustry", 2);
|
|
4444
4507
|
__decorateClass([
|
|
4445
|
-
(0,
|
|
4508
|
+
(0, import_typeorm32.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
4446
4509
|
], Job.prototype, "currency", 2);
|
|
4447
4510
|
__decorateClass([
|
|
4448
|
-
(0,
|
|
4511
|
+
(0, import_typeorm32.Column)({
|
|
4449
4512
|
name: "expected_salary_from",
|
|
4450
4513
|
type: "decimal",
|
|
4451
4514
|
precision: 10,
|
|
@@ -4454,14 +4517,14 @@ __decorateClass([
|
|
|
4454
4517
|
})
|
|
4455
4518
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4456
4519
|
__decorateClass([
|
|
4457
|
-
(0,
|
|
4520
|
+
(0, import_typeorm32.Column)({
|
|
4458
4521
|
name: "hide_expected_salary_from",
|
|
4459
4522
|
type: "boolean",
|
|
4460
4523
|
default: false
|
|
4461
4524
|
})
|
|
4462
4525
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4463
4526
|
__decorateClass([
|
|
4464
|
-
(0,
|
|
4527
|
+
(0, import_typeorm32.Column)({
|
|
4465
4528
|
name: "expected_salary_to",
|
|
4466
4529
|
type: "decimal",
|
|
4467
4530
|
precision: 10,
|
|
@@ -4470,32 +4533,32 @@ __decorateClass([
|
|
|
4470
4533
|
})
|
|
4471
4534
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4472
4535
|
__decorateClass([
|
|
4473
|
-
(0,
|
|
4536
|
+
(0, import_typeorm32.Column)({
|
|
4474
4537
|
name: "hide_expected_salary_to",
|
|
4475
4538
|
type: "boolean",
|
|
4476
4539
|
default: false
|
|
4477
4540
|
})
|
|
4478
4541
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4479
4542
|
__decorateClass([
|
|
4480
|
-
(0,
|
|
4543
|
+
(0, import_typeorm32.Column)({ name: "years", type: "varchar", nullable: true })
|
|
4481
4544
|
], Job.prototype, "years", 2);
|
|
4482
4545
|
__decorateClass([
|
|
4483
|
-
(0,
|
|
4546
|
+
(0, import_typeorm32.Column)({ name: "months", type: "varchar", nullable: true })
|
|
4484
4547
|
], Job.prototype, "months", 2);
|
|
4485
4548
|
__decorateClass([
|
|
4486
|
-
(0,
|
|
4549
|
+
(0, import_typeorm32.Column)({ name: "weeks", type: "varchar", nullable: true })
|
|
4487
4550
|
], Job.prototype, "weeks", 2);
|
|
4488
4551
|
__decorateClass([
|
|
4489
|
-
(0,
|
|
4552
|
+
(0, import_typeorm32.Column)({ name: "days", type: "varchar", nullable: true })
|
|
4490
4553
|
], Job.prototype, "days", 2);
|
|
4491
4554
|
__decorateClass([
|
|
4492
|
-
(0,
|
|
4555
|
+
(0, import_typeorm32.Column)({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4493
4556
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4494
4557
|
__decorateClass([
|
|
4495
|
-
(0,
|
|
4558
|
+
(0, import_typeorm32.Column)({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4496
4559
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4497
4560
|
__decorateClass([
|
|
4498
|
-
(0,
|
|
4561
|
+
(0, import_typeorm32.Column)({
|
|
4499
4562
|
name: "duration_type",
|
|
4500
4563
|
type: "enum",
|
|
4501
4564
|
enum: DurationTypeEnum,
|
|
@@ -4503,10 +4566,10 @@ __decorateClass([
|
|
|
4503
4566
|
})
|
|
4504
4567
|
], Job.prototype, "durationType", 2);
|
|
4505
4568
|
__decorateClass([
|
|
4506
|
-
(0,
|
|
4569
|
+
(0, import_typeorm32.Column)({ name: "duration", type: "varchar", nullable: true })
|
|
4507
4570
|
], Job.prototype, "duration", 2);
|
|
4508
4571
|
__decorateClass([
|
|
4509
|
-
(0,
|
|
4572
|
+
(0, import_typeorm32.Column)({
|
|
4510
4573
|
name: "number_of_hours",
|
|
4511
4574
|
type: "decimal",
|
|
4512
4575
|
precision: 4,
|
|
@@ -4515,13 +4578,13 @@ __decorateClass([
|
|
|
4515
4578
|
})
|
|
4516
4579
|
], Job.prototype, "numberOfHours", 2);
|
|
4517
4580
|
__decorateClass([
|
|
4518
|
-
(0,
|
|
4581
|
+
(0, import_typeorm32.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4519
4582
|
], Job.prototype, "description", 2);
|
|
4520
4583
|
__decorateClass([
|
|
4521
|
-
(0,
|
|
4584
|
+
(0, import_typeorm32.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4522
4585
|
], Job.prototype, "additionalComment", 2);
|
|
4523
4586
|
__decorateClass([
|
|
4524
|
-
(0,
|
|
4587
|
+
(0, import_typeorm32.Column)({
|
|
4525
4588
|
name: "onboarding_tat",
|
|
4526
4589
|
type: "varchar",
|
|
4527
4590
|
length: 50,
|
|
@@ -4529,14 +4592,14 @@ __decorateClass([
|
|
|
4529
4592
|
})
|
|
4530
4593
|
], Job.prototype, "onboardingTat", 2);
|
|
4531
4594
|
__decorateClass([
|
|
4532
|
-
(0,
|
|
4595
|
+
(0, import_typeorm32.Column)({
|
|
4533
4596
|
name: "candidate_communication_skills",
|
|
4534
4597
|
type: "varchar",
|
|
4535
4598
|
nullable: true
|
|
4536
4599
|
})
|
|
4537
4600
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4538
4601
|
__decorateClass([
|
|
4539
|
-
(0,
|
|
4602
|
+
(0, import_typeorm32.Column)({
|
|
4540
4603
|
name: "step_completed",
|
|
4541
4604
|
type: "enum",
|
|
4542
4605
|
enum: Step,
|
|
@@ -4544,7 +4607,7 @@ __decorateClass([
|
|
|
4544
4607
|
})
|
|
4545
4608
|
], Job.prototype, "stepCompleted", 2);
|
|
4546
4609
|
__decorateClass([
|
|
4547
|
-
(0,
|
|
4610
|
+
(0, import_typeorm32.Column)({
|
|
4548
4611
|
name: "status",
|
|
4549
4612
|
type: "enum",
|
|
4550
4613
|
enum: JobStatusEnum,
|
|
@@ -4552,40 +4615,40 @@ __decorateClass([
|
|
|
4552
4615
|
})
|
|
4553
4616
|
], Job.prototype, "status", 2);
|
|
4554
4617
|
__decorateClass([
|
|
4555
|
-
(0,
|
|
4618
|
+
(0, import_typeorm32.Column)({ name: "viewed_count", type: "integer", default: 0 })
|
|
4556
4619
|
], Job.prototype, "viewedCount", 2);
|
|
4557
4620
|
__decorateClass([
|
|
4558
|
-
(0,
|
|
4621
|
+
(0, import_typeorm32.Column)({ name: "application_count", type: "integer", default: 0 })
|
|
4559
4622
|
], Job.prototype, "applicationCount", 2);
|
|
4560
4623
|
__decorateClass([
|
|
4561
|
-
(0,
|
|
4624
|
+
(0, import_typeorm32.Column)({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4562
4625
|
], Job.prototype, "isContractSigned", 2);
|
|
4563
4626
|
__decorateClass([
|
|
4564
|
-
(0,
|
|
4627
|
+
(0, import_typeorm32.Column)({ name: "is_interview_created", type: "boolean", default: false })
|
|
4565
4628
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4566
4629
|
__decorateClass([
|
|
4567
|
-
(0,
|
|
4630
|
+
(0, import_typeorm32.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4568
4631
|
], Job.prototype, "interviewInvites", 2);
|
|
4569
4632
|
__decorateClass([
|
|
4570
|
-
(0,
|
|
4633
|
+
(0, import_typeorm32.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4571
4634
|
], Job.prototype, "jobSkills", 2);
|
|
4572
4635
|
__decorateClass([
|
|
4573
|
-
(0,
|
|
4636
|
+
(0, import_typeorm32.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4574
4637
|
cascade: true
|
|
4575
4638
|
})
|
|
4576
4639
|
], Job.prototype, "jobApplications", 2);
|
|
4577
4640
|
__decorateClass([
|
|
4578
|
-
(0,
|
|
4641
|
+
(0, import_typeorm32.OneToMany)(() => Interview, (interview) => interview.job, {
|
|
4579
4642
|
cascade: true
|
|
4580
4643
|
})
|
|
4581
4644
|
], Job.prototype, "interviews", 2);
|
|
4582
4645
|
__decorateClass([
|
|
4583
|
-
(0,
|
|
4646
|
+
(0, import_typeorm32.OneToMany)(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4584
4647
|
cascade: true
|
|
4585
4648
|
})
|
|
4586
4649
|
], Job.prototype, "f2fInterviews", 2);
|
|
4587
4650
|
__decorateClass([
|
|
4588
|
-
(0,
|
|
4651
|
+
(0, import_typeorm32.OneToMany)(
|
|
4589
4652
|
() => JobRecommendation,
|
|
4590
4653
|
(jobRecommendation) => jobRecommendation.job,
|
|
4591
4654
|
{
|
|
@@ -4594,44 +4657,49 @@ __decorateClass([
|
|
|
4594
4657
|
)
|
|
4595
4658
|
], Job.prototype, "recommendations", 2);
|
|
4596
4659
|
__decorateClass([
|
|
4597
|
-
(0,
|
|
4660
|
+
(0, import_typeorm32.OneToMany)(() => Contract, (contract) => contract.job, {
|
|
4598
4661
|
cascade: true
|
|
4599
4662
|
})
|
|
4600
4663
|
], Job.prototype, "contracts", 2);
|
|
4601
4664
|
__decorateClass([
|
|
4602
|
-
(0,
|
|
4665
|
+
(0, import_typeorm32.OneToMany)(() => Hiring, (hiring) => hiring.job, {
|
|
4666
|
+
cascade: true
|
|
4667
|
+
})
|
|
4668
|
+
], Job.prototype, "hirings", 2);
|
|
4669
|
+
__decorateClass([
|
|
4670
|
+
(0, import_typeorm32.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4603
4671
|
cascade: true
|
|
4604
4672
|
})
|
|
4605
4673
|
], Job.prototype, "escrowWallets", 2);
|
|
4606
4674
|
__decorateClass([
|
|
4607
|
-
(0,
|
|
4675
|
+
(0, import_typeorm32.OneToMany)(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4608
4676
|
cascade: true
|
|
4609
4677
|
})
|
|
4610
4678
|
], Job.prototype, "timesheets", 2);
|
|
4611
4679
|
__decorateClass([
|
|
4612
|
-
(0,
|
|
4680
|
+
(0, import_typeorm32.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4613
4681
|
cascade: true
|
|
4614
4682
|
})
|
|
4615
4683
|
], Job.prototype, "timesheetLine", 2);
|
|
4616
4684
|
__decorateClass([
|
|
4617
|
-
(0,
|
|
4685
|
+
(0, import_typeorm32.OneToMany)(() => Invoice, (invoice) => invoice.job, {
|
|
4618
4686
|
cascade: true
|
|
4619
4687
|
})
|
|
4620
4688
|
], Job.prototype, "invoice", 2);
|
|
4621
4689
|
__decorateClass([
|
|
4622
|
-
(0,
|
|
4690
|
+
(0, import_typeorm32.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4623
4691
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4624
4692
|
__decorateClass([
|
|
4625
|
-
(0,
|
|
4693
|
+
(0, import_typeorm32.OneToMany)(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
4626
4694
|
cascade: true
|
|
4627
4695
|
})
|
|
4628
4696
|
], Job.prototype, "jobLocations", 2);
|
|
4629
4697
|
Job = __decorateClass([
|
|
4630
|
-
(0,
|
|
4698
|
+
(0, import_typeorm32.Entity)("jobs")
|
|
4631
4699
|
], Job);
|
|
4632
4700
|
|
|
4633
4701
|
// src/entities/bank-details.entity.ts
|
|
4634
|
-
var
|
|
4702
|
+
var import_typeorm33 = require("typeorm");
|
|
4635
4703
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4636
4704
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
4637
4705
|
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
@@ -4646,51 +4714,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4646
4714
|
};
|
|
4647
4715
|
// individual index to find bank details by user
|
|
4648
4716
|
__decorateClass([
|
|
4649
|
-
(0,
|
|
4650
|
-
(0,
|
|
4717
|
+
(0, import_typeorm33.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4718
|
+
(0, import_typeorm33.Index)()
|
|
4651
4719
|
], BankDetail.prototype, "userId", 2);
|
|
4652
4720
|
__decorateClass([
|
|
4653
|
-
(0,
|
|
4654
|
-
(0,
|
|
4721
|
+
(0, import_typeorm33.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
4722
|
+
(0, import_typeorm33.JoinColumn)({ name: "user_id" })
|
|
4655
4723
|
], BankDetail.prototype, "user", 2);
|
|
4656
4724
|
__decorateClass([
|
|
4657
|
-
(0,
|
|
4725
|
+
(0, import_typeorm33.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4658
4726
|
], BankDetail.prototype, "name", 2);
|
|
4659
4727
|
__decorateClass([
|
|
4660
|
-
(0,
|
|
4728
|
+
(0, import_typeorm33.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4661
4729
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4662
4730
|
__decorateClass([
|
|
4663
|
-
(0,
|
|
4731
|
+
(0, import_typeorm33.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
4664
4732
|
], BankDetail.prototype, "mobile", 2);
|
|
4665
4733
|
__decorateClass([
|
|
4666
|
-
(0,
|
|
4734
|
+
(0, import_typeorm33.Column)({ name: "email", type: "varchar" })
|
|
4667
4735
|
], BankDetail.prototype, "email", 2);
|
|
4668
4736
|
__decorateClass([
|
|
4669
|
-
(0,
|
|
4737
|
+
(0, import_typeorm33.Column)({ name: "address", type: "varchar", nullable: true })
|
|
4670
4738
|
], BankDetail.prototype, "address", 2);
|
|
4671
4739
|
__decorateClass([
|
|
4672
|
-
(0,
|
|
4740
|
+
(0, import_typeorm33.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4673
4741
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4674
4742
|
__decorateClass([
|
|
4675
|
-
(0,
|
|
4743
|
+
(0, import_typeorm33.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
4676
4744
|
], BankDetail.prototype, "bankName", 2);
|
|
4677
4745
|
__decorateClass([
|
|
4678
|
-
(0,
|
|
4746
|
+
(0, import_typeorm33.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4679
4747
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4680
4748
|
__decorateClass([
|
|
4681
|
-
(0,
|
|
4749
|
+
(0, import_typeorm33.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
4682
4750
|
], BankDetail.prototype, "branchName", 2);
|
|
4683
4751
|
__decorateClass([
|
|
4684
|
-
(0,
|
|
4752
|
+
(0, import_typeorm33.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
4685
4753
|
], BankDetail.prototype, "routingNo", 2);
|
|
4686
4754
|
__decorateClass([
|
|
4687
|
-
(0,
|
|
4755
|
+
(0, import_typeorm33.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
4688
4756
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4689
4757
|
__decorateClass([
|
|
4690
|
-
(0,
|
|
4758
|
+
(0, import_typeorm33.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
4691
4759
|
], BankDetail.prototype, "iban", 2);
|
|
4692
4760
|
__decorateClass([
|
|
4693
|
-
(0,
|
|
4761
|
+
(0, import_typeorm33.Column)({
|
|
4694
4762
|
name: "account_type",
|
|
4695
4763
|
type: "enum",
|
|
4696
4764
|
enum: BankAccountTypeEnum,
|
|
@@ -4698,7 +4766,7 @@ __decorateClass([
|
|
|
4698
4766
|
})
|
|
4699
4767
|
], BankDetail.prototype, "accountType", 2);
|
|
4700
4768
|
__decorateClass([
|
|
4701
|
-
(0,
|
|
4769
|
+
(0, import_typeorm33.Column)({
|
|
4702
4770
|
name: "account_scope",
|
|
4703
4771
|
type: "enum",
|
|
4704
4772
|
enum: BankAccountScopeEnum,
|
|
@@ -4706,150 +4774,150 @@ __decorateClass([
|
|
|
4706
4774
|
})
|
|
4707
4775
|
], BankDetail.prototype, "accountScope", 2);
|
|
4708
4776
|
BankDetail = __decorateClass([
|
|
4709
|
-
(0,
|
|
4777
|
+
(0, import_typeorm33.Entity)("bank_details")
|
|
4710
4778
|
], BankDetail);
|
|
4711
4779
|
|
|
4712
4780
|
// src/entities/system-preference.entity.ts
|
|
4713
|
-
var
|
|
4781
|
+
var import_typeorm34 = require("typeorm");
|
|
4714
4782
|
var SystemPreference = class extends BaseEntity {
|
|
4715
4783
|
};
|
|
4716
4784
|
// individual index to find system preference by user
|
|
4717
4785
|
__decorateClass([
|
|
4718
|
-
(0,
|
|
4719
|
-
(0,
|
|
4786
|
+
(0, import_typeorm34.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4787
|
+
(0, import_typeorm34.Index)()
|
|
4720
4788
|
], SystemPreference.prototype, "userId", 2);
|
|
4721
4789
|
__decorateClass([
|
|
4722
|
-
(0,
|
|
4723
|
-
(0,
|
|
4790
|
+
(0, import_typeorm34.ManyToOne)(() => User, (user) => user.systemPreference),
|
|
4791
|
+
(0, import_typeorm34.JoinColumn)({ name: "user_id" })
|
|
4724
4792
|
], SystemPreference.prototype, "user", 2);
|
|
4725
4793
|
__decorateClass([
|
|
4726
|
-
(0,
|
|
4794
|
+
(0, import_typeorm34.Column)({ name: "key", type: "varchar", nullable: false })
|
|
4727
4795
|
], SystemPreference.prototype, "key", 2);
|
|
4728
4796
|
__decorateClass([
|
|
4729
|
-
(0,
|
|
4797
|
+
(0, import_typeorm34.Column)({ name: "value", type: "boolean", default: false })
|
|
4730
4798
|
], SystemPreference.prototype, "value", 2);
|
|
4731
4799
|
SystemPreference = __decorateClass([
|
|
4732
|
-
(0,
|
|
4800
|
+
(0, import_typeorm34.Entity)("system_preferences")
|
|
4733
4801
|
], SystemPreference);
|
|
4734
4802
|
|
|
4735
4803
|
// src/entities/freelancer-experience.entity.ts
|
|
4736
|
-
var
|
|
4804
|
+
var import_typeorm35 = require("typeorm");
|
|
4737
4805
|
var FreelancerExperience = class extends BaseEntity {
|
|
4738
4806
|
};
|
|
4739
4807
|
// individual index to find experence by user
|
|
4740
4808
|
__decorateClass([
|
|
4741
|
-
(0,
|
|
4742
|
-
(0,
|
|
4809
|
+
(0, import_typeorm35.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4810
|
+
(0, import_typeorm35.Index)()
|
|
4743
4811
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4744
4812
|
__decorateClass([
|
|
4745
|
-
(0,
|
|
4746
|
-
(0,
|
|
4813
|
+
(0, import_typeorm35.ManyToOne)(() => User, (user) => user.freelancerExperience),
|
|
4814
|
+
(0, import_typeorm35.JoinColumn)({ name: "user_id" })
|
|
4747
4815
|
], FreelancerExperience.prototype, "user", 2);
|
|
4748
4816
|
__decorateClass([
|
|
4749
|
-
(0,
|
|
4817
|
+
(0, import_typeorm35.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
4750
4818
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4751
4819
|
__decorateClass([
|
|
4752
|
-
(0,
|
|
4820
|
+
(0, import_typeorm35.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
4753
4821
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4754
4822
|
__decorateClass([
|
|
4755
|
-
(0,
|
|
4823
|
+
(0, import_typeorm35.Column)({ name: "job_duration", type: "varchar", nullable: true })
|
|
4756
4824
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4757
4825
|
__decorateClass([
|
|
4758
|
-
(0,
|
|
4826
|
+
(0, import_typeorm35.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4759
4827
|
], FreelancerExperience.prototype, "description", 2);
|
|
4760
4828
|
FreelancerExperience = __decorateClass([
|
|
4761
|
-
(0,
|
|
4829
|
+
(0, import_typeorm35.Entity)("freelancer_experiences")
|
|
4762
4830
|
], FreelancerExperience);
|
|
4763
4831
|
|
|
4764
4832
|
// src/entities/freelancer-education.entity.ts
|
|
4765
|
-
var
|
|
4833
|
+
var import_typeorm36 = require("typeorm");
|
|
4766
4834
|
var FreelancerEducation = class extends BaseEntity {
|
|
4767
4835
|
};
|
|
4768
4836
|
// individual index to find education by user
|
|
4769
4837
|
__decorateClass([
|
|
4770
|
-
(0,
|
|
4771
|
-
(0,
|
|
4838
|
+
(0, import_typeorm36.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4839
|
+
(0, import_typeorm36.Index)()
|
|
4772
4840
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4773
4841
|
__decorateClass([
|
|
4774
|
-
(0,
|
|
4775
|
-
(0,
|
|
4842
|
+
(0, import_typeorm36.ManyToOne)(() => User, (user) => user.freelancerEducation),
|
|
4843
|
+
(0, import_typeorm36.JoinColumn)({ name: "user_id" })
|
|
4776
4844
|
], FreelancerEducation.prototype, "user", 2);
|
|
4777
4845
|
__decorateClass([
|
|
4778
|
-
(0,
|
|
4846
|
+
(0, import_typeorm36.Column)({ name: "degree", type: "varchar", nullable: true })
|
|
4779
4847
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4780
4848
|
__decorateClass([
|
|
4781
|
-
(0,
|
|
4849
|
+
(0, import_typeorm36.Column)({ name: "university", type: "varchar", nullable: true })
|
|
4782
4850
|
], FreelancerEducation.prototype, "university", 2);
|
|
4783
4851
|
__decorateClass([
|
|
4784
|
-
(0,
|
|
4852
|
+
(0, import_typeorm36.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4785
4853
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4786
4854
|
FreelancerEducation = __decorateClass([
|
|
4787
|
-
(0,
|
|
4855
|
+
(0, import_typeorm36.Entity)("freelancer_educations")
|
|
4788
4856
|
], FreelancerEducation);
|
|
4789
4857
|
|
|
4790
4858
|
// src/entities/freelancer-project.entity.ts
|
|
4791
|
-
var
|
|
4859
|
+
var import_typeorm37 = require("typeorm");
|
|
4792
4860
|
var FreelancerProject = class extends BaseEntity {
|
|
4793
4861
|
};
|
|
4794
4862
|
// individual index to find project by user
|
|
4795
4863
|
__decorateClass([
|
|
4796
|
-
(0,
|
|
4797
|
-
(0,
|
|
4864
|
+
(0, import_typeorm37.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4865
|
+
(0, import_typeorm37.Index)()
|
|
4798
4866
|
], FreelancerProject.prototype, "userId", 2);
|
|
4799
4867
|
__decorateClass([
|
|
4800
|
-
(0,
|
|
4801
|
-
(0,
|
|
4868
|
+
(0, import_typeorm37.ManyToOne)(() => User, (user) => user.freelancerProject),
|
|
4869
|
+
(0, import_typeorm37.JoinColumn)({ name: "user_id" })
|
|
4802
4870
|
], FreelancerProject.prototype, "user", 2);
|
|
4803
4871
|
__decorateClass([
|
|
4804
|
-
(0,
|
|
4872
|
+
(0, import_typeorm37.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4805
4873
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4806
4874
|
__decorateClass([
|
|
4807
|
-
(0,
|
|
4875
|
+
(0, import_typeorm37.Column)({ name: "start_date", type: "date", nullable: true })
|
|
4808
4876
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4809
4877
|
__decorateClass([
|
|
4810
|
-
(0,
|
|
4878
|
+
(0, import_typeorm37.Column)({ name: "end_date", type: "date", nullable: true })
|
|
4811
4879
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4812
4880
|
__decorateClass([
|
|
4813
|
-
(0,
|
|
4881
|
+
(0, import_typeorm37.Column)({ name: "client_name", type: "varchar", nullable: true })
|
|
4814
4882
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4815
4883
|
__decorateClass([
|
|
4816
|
-
(0,
|
|
4884
|
+
(0, import_typeorm37.Column)({ name: "git_link", type: "varchar", nullable: true })
|
|
4817
4885
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4818
4886
|
__decorateClass([
|
|
4819
|
-
(0,
|
|
4887
|
+
(0, import_typeorm37.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4820
4888
|
], FreelancerProject.prototype, "description", 2);
|
|
4821
4889
|
FreelancerProject = __decorateClass([
|
|
4822
|
-
(0,
|
|
4890
|
+
(0, import_typeorm37.Entity)("freelancer_projects")
|
|
4823
4891
|
], FreelancerProject);
|
|
4824
4892
|
|
|
4825
4893
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4826
|
-
var
|
|
4894
|
+
var import_typeorm38 = require("typeorm");
|
|
4827
4895
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4828
4896
|
};
|
|
4829
4897
|
// individual index to find case study by user
|
|
4830
4898
|
__decorateClass([
|
|
4831
|
-
(0,
|
|
4832
|
-
(0,
|
|
4899
|
+
(0, import_typeorm38.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4900
|
+
(0, import_typeorm38.Index)()
|
|
4833
4901
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4834
4902
|
__decorateClass([
|
|
4835
|
-
(0,
|
|
4836
|
-
(0,
|
|
4903
|
+
(0, import_typeorm38.ManyToOne)(() => User, (user) => user.freelancerCaseStudy),
|
|
4904
|
+
(0, import_typeorm38.JoinColumn)({ name: "user_id" })
|
|
4837
4905
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4838
4906
|
__decorateClass([
|
|
4839
|
-
(0,
|
|
4907
|
+
(0, import_typeorm38.Column)({ name: "project_name", type: "varchar", nullable: true })
|
|
4840
4908
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4841
4909
|
__decorateClass([
|
|
4842
|
-
(0,
|
|
4910
|
+
(0, import_typeorm38.Column)({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4843
4911
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4844
4912
|
__decorateClass([
|
|
4845
|
-
(0,
|
|
4913
|
+
(0, import_typeorm38.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4846
4914
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4847
4915
|
FreelancerCaseStudy = __decorateClass([
|
|
4848
|
-
(0,
|
|
4916
|
+
(0, import_typeorm38.Entity)("freelancer_case_studies")
|
|
4849
4917
|
], FreelancerCaseStudy);
|
|
4850
4918
|
|
|
4851
4919
|
// src/entities/freelancer-skill.entity.ts
|
|
4852
|
-
var
|
|
4920
|
+
var import_typeorm39 = require("typeorm");
|
|
4853
4921
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4854
4922
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
4855
4923
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["MUST_HAVE"] = 1] = "MUST_HAVE";
|
|
@@ -4859,18 +4927,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4859
4927
|
};
|
|
4860
4928
|
// individual index to find core skills by user
|
|
4861
4929
|
__decorateClass([
|
|
4862
|
-
(0,
|
|
4863
|
-
(0,
|
|
4930
|
+
(0, import_typeorm39.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4931
|
+
(0, import_typeorm39.Index)()
|
|
4864
4932
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4865
4933
|
__decorateClass([
|
|
4866
|
-
(0,
|
|
4867
|
-
(0,
|
|
4934
|
+
(0, import_typeorm39.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
4935
|
+
(0, import_typeorm39.JoinColumn)({ name: "user_id" })
|
|
4868
4936
|
], FreelancerSkill.prototype, "user", 2);
|
|
4869
4937
|
__decorateClass([
|
|
4870
|
-
(0,
|
|
4938
|
+
(0, import_typeorm39.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
4871
4939
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4872
4940
|
__decorateClass([
|
|
4873
|
-
(0,
|
|
4941
|
+
(0, import_typeorm39.Column)({
|
|
4874
4942
|
name: "skill_category",
|
|
4875
4943
|
type: "smallint",
|
|
4876
4944
|
default: 1,
|
|
@@ -4878,51 +4946,51 @@ __decorateClass([
|
|
|
4878
4946
|
})
|
|
4879
4947
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4880
4948
|
FreelancerSkill = __decorateClass([
|
|
4881
|
-
(0,
|
|
4949
|
+
(0, import_typeorm39.Entity)("freelancer_skills")
|
|
4882
4950
|
], FreelancerSkill);
|
|
4883
4951
|
|
|
4884
4952
|
// src/entities/freelancer-tool.entity.ts
|
|
4885
|
-
var
|
|
4953
|
+
var import_typeorm40 = require("typeorm");
|
|
4886
4954
|
var FreelancerTool = class extends BaseEntity {
|
|
4887
4955
|
};
|
|
4888
4956
|
// individual index to find tool by user
|
|
4889
4957
|
__decorateClass([
|
|
4890
|
-
(0,
|
|
4891
|
-
(0,
|
|
4958
|
+
(0, import_typeorm40.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4959
|
+
(0, import_typeorm40.Index)()
|
|
4892
4960
|
], FreelancerTool.prototype, "userId", 2);
|
|
4893
4961
|
__decorateClass([
|
|
4894
|
-
(0,
|
|
4895
|
-
(0,
|
|
4962
|
+
(0, import_typeorm40.ManyToOne)(() => User, (user) => user.freelancerTool),
|
|
4963
|
+
(0, import_typeorm40.JoinColumn)({ name: "user_id" })
|
|
4896
4964
|
], FreelancerTool.prototype, "user", 2);
|
|
4897
4965
|
__decorateClass([
|
|
4898
|
-
(0,
|
|
4966
|
+
(0, import_typeorm40.Column)({ name: "tool_name", type: "varchar", nullable: true })
|
|
4899
4967
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4900
4968
|
FreelancerTool = __decorateClass([
|
|
4901
|
-
(0,
|
|
4969
|
+
(0, import_typeorm40.Entity)("freelancer_tools")
|
|
4902
4970
|
], FreelancerTool);
|
|
4903
4971
|
|
|
4904
4972
|
// src/entities/freelancer-framework.entity.ts
|
|
4905
|
-
var
|
|
4973
|
+
var import_typeorm41 = require("typeorm");
|
|
4906
4974
|
var FreelancerFramework = class extends BaseEntity {
|
|
4907
4975
|
};
|
|
4908
4976
|
// individual index to find framework by user
|
|
4909
4977
|
__decorateClass([
|
|
4910
|
-
(0,
|
|
4911
|
-
(0,
|
|
4978
|
+
(0, import_typeorm41.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4979
|
+
(0, import_typeorm41.Index)()
|
|
4912
4980
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4913
4981
|
__decorateClass([
|
|
4914
|
-
(0,
|
|
4915
|
-
(0,
|
|
4982
|
+
(0, import_typeorm41.ManyToOne)(() => User, (user) => user.freelancerFramework),
|
|
4983
|
+
(0, import_typeorm41.JoinColumn)({ name: "user_id" })
|
|
4916
4984
|
], FreelancerFramework.prototype, "user", 2);
|
|
4917
4985
|
__decorateClass([
|
|
4918
|
-
(0,
|
|
4986
|
+
(0, import_typeorm41.Column)({ name: "framework_name", type: "varchar", nullable: true })
|
|
4919
4987
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4920
4988
|
FreelancerFramework = __decorateClass([
|
|
4921
|
-
(0,
|
|
4989
|
+
(0, import_typeorm41.Entity)("freelancer_frameworks")
|
|
4922
4990
|
], FreelancerFramework);
|
|
4923
4991
|
|
|
4924
4992
|
// src/entities/freelancer-assessment.entity.ts
|
|
4925
|
-
var
|
|
4993
|
+
var import_typeorm42 = require("typeorm");
|
|
4926
4994
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4927
4995
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
4928
4996
|
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
@@ -4938,30 +5006,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4938
5006
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4939
5007
|
};
|
|
4940
5008
|
__decorateClass([
|
|
4941
|
-
(0,
|
|
4942
|
-
(0,
|
|
5009
|
+
(0, import_typeorm42.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5010
|
+
(0, import_typeorm42.Index)()
|
|
4943
5011
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4944
5012
|
__decorateClass([
|
|
4945
|
-
(0,
|
|
4946
|
-
(0,
|
|
5013
|
+
(0, import_typeorm42.ManyToOne)(() => User, (user) => user.assessments),
|
|
5014
|
+
(0, import_typeorm42.JoinColumn)({ name: "user_id" })
|
|
4947
5015
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4948
5016
|
__decorateClass([
|
|
4949
|
-
(0,
|
|
5017
|
+
(0, import_typeorm42.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
4950
5018
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4951
5019
|
__decorateClass([
|
|
4952
|
-
(0,
|
|
5020
|
+
(0, import_typeorm42.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
4953
5021
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4954
5022
|
__decorateClass([
|
|
4955
|
-
(0,
|
|
5023
|
+
(0, import_typeorm42.Column)({ name: "recording_link", type: "text", nullable: true })
|
|
4956
5024
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4957
5025
|
__decorateClass([
|
|
4958
|
-
(0,
|
|
5026
|
+
(0, import_typeorm42.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4959
5027
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4960
5028
|
__decorateClass([
|
|
4961
|
-
(0,
|
|
5029
|
+
(0, import_typeorm42.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4962
5030
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4963
5031
|
__decorateClass([
|
|
4964
|
-
(0,
|
|
5032
|
+
(0, import_typeorm42.Column)({
|
|
4965
5033
|
name: "status",
|
|
4966
5034
|
type: "enum",
|
|
4967
5035
|
enum: AssessmentStatusEnum,
|
|
@@ -4969,11 +5037,11 @@ __decorateClass([
|
|
|
4969
5037
|
})
|
|
4970
5038
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4971
5039
|
FreelancerAssessment = __decorateClass([
|
|
4972
|
-
(0,
|
|
5040
|
+
(0, import_typeorm42.Entity)("freelancer_assessments")
|
|
4973
5041
|
], FreelancerAssessment);
|
|
4974
5042
|
|
|
4975
5043
|
// src/entities/freelancer-declaration.entity.ts
|
|
4976
|
-
var
|
|
5044
|
+
var import_typeorm43 = require("typeorm");
|
|
4977
5045
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4978
5046
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4979
5047
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4985,15 +5053,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4985
5053
|
};
|
|
4986
5054
|
// individual index to find declaration by user
|
|
4987
5055
|
__decorateClass([
|
|
4988
|
-
(0,
|
|
4989
|
-
(0,
|
|
5056
|
+
(0, import_typeorm43.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5057
|
+
(0, import_typeorm43.Index)()
|
|
4990
5058
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4991
5059
|
__decorateClass([
|
|
4992
|
-
(0,
|
|
4993
|
-
(0,
|
|
5060
|
+
(0, import_typeorm43.ManyToOne)(() => User, (user) => user.freelancerDeclaration),
|
|
5061
|
+
(0, import_typeorm43.JoinColumn)({ name: "user_id" })
|
|
4994
5062
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4995
5063
|
__decorateClass([
|
|
4996
|
-
(0,
|
|
5064
|
+
(0, import_typeorm43.Column)({
|
|
4997
5065
|
name: "document_type",
|
|
4998
5066
|
type: "enum",
|
|
4999
5067
|
enum: DocumentType,
|
|
@@ -5001,144 +5069,144 @@ __decorateClass([
|
|
|
5001
5069
|
})
|
|
5002
5070
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
5003
5071
|
__decorateClass([
|
|
5004
|
-
(0,
|
|
5072
|
+
(0, import_typeorm43.Column)({ name: "front_document_url", type: "varchar", nullable: true })
|
|
5005
5073
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
5006
5074
|
__decorateClass([
|
|
5007
|
-
(0,
|
|
5075
|
+
(0, import_typeorm43.Column)({ name: "back_document_url", type: "varchar", nullable: true })
|
|
5008
5076
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
5009
5077
|
__decorateClass([
|
|
5010
|
-
(0,
|
|
5078
|
+
(0, import_typeorm43.Column)({ name: "declaration_accepted", type: "boolean", default: false })
|
|
5011
5079
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
5012
5080
|
__decorateClass([
|
|
5013
|
-
(0,
|
|
5081
|
+
(0, import_typeorm43.Column)({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
5014
5082
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
5015
5083
|
FreelancerDeclaration = __decorateClass([
|
|
5016
|
-
(0,
|
|
5084
|
+
(0, import_typeorm43.Entity)("freelancer_declaration")
|
|
5017
5085
|
], FreelancerDeclaration);
|
|
5018
5086
|
|
|
5019
5087
|
// src/entities/company-members-roles.entity.ts
|
|
5020
|
-
var
|
|
5088
|
+
var import_typeorm47 = require("typeorm");
|
|
5021
5089
|
|
|
5022
5090
|
// src/entities/company-role.entity.ts
|
|
5023
|
-
var
|
|
5091
|
+
var import_typeorm46 = require("typeorm");
|
|
5024
5092
|
|
|
5025
5093
|
// src/entities/company-role-permission.entity.ts
|
|
5026
|
-
var
|
|
5094
|
+
var import_typeorm45 = require("typeorm");
|
|
5027
5095
|
|
|
5028
5096
|
// src/entities/permission.entity.ts
|
|
5029
|
-
var
|
|
5097
|
+
var import_typeorm44 = require("typeorm");
|
|
5030
5098
|
var Permission = class extends BaseEntity {
|
|
5031
5099
|
};
|
|
5032
5100
|
__decorateClass([
|
|
5033
|
-
(0,
|
|
5101
|
+
(0, import_typeorm44.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5034
5102
|
], Permission.prototype, "name", 2);
|
|
5035
5103
|
__decorateClass([
|
|
5036
|
-
(0,
|
|
5037
|
-
(0,
|
|
5104
|
+
(0, import_typeorm44.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5105
|
+
(0, import_typeorm44.Index)()
|
|
5038
5106
|
], Permission.prototype, "slug", 2);
|
|
5039
5107
|
__decorateClass([
|
|
5040
|
-
(0,
|
|
5108
|
+
(0, import_typeorm44.Column)({ name: "description", type: "text", nullable: true })
|
|
5041
5109
|
], Permission.prototype, "description", 2);
|
|
5042
5110
|
__decorateClass([
|
|
5043
|
-
(0,
|
|
5111
|
+
(0, import_typeorm44.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5044
5112
|
], Permission.prototype, "isActive", 2);
|
|
5045
5113
|
Permission = __decorateClass([
|
|
5046
|
-
(0,
|
|
5114
|
+
(0, import_typeorm44.Entity)("permissions")
|
|
5047
5115
|
], Permission);
|
|
5048
5116
|
|
|
5049
5117
|
// src/entities/company-role-permission.entity.ts
|
|
5050
5118
|
var CompanyRolePermission = class extends BaseEntity {
|
|
5051
5119
|
};
|
|
5052
5120
|
__decorateClass([
|
|
5053
|
-
(0,
|
|
5054
|
-
(0,
|
|
5121
|
+
(0, import_typeorm45.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5122
|
+
(0, import_typeorm45.Index)()
|
|
5055
5123
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
5056
5124
|
__decorateClass([
|
|
5057
|
-
(0,
|
|
5125
|
+
(0, import_typeorm45.ManyToOne)(() => CompanyRole, (role) => role.rolePermissions, {
|
|
5058
5126
|
onDelete: "CASCADE"
|
|
5059
5127
|
}),
|
|
5060
|
-
(0,
|
|
5128
|
+
(0, import_typeorm45.JoinColumn)({ name: "company_role_id" })
|
|
5061
5129
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
5062
5130
|
__decorateClass([
|
|
5063
|
-
(0,
|
|
5064
|
-
(0,
|
|
5131
|
+
(0, import_typeorm45.Column)({ name: "permission_id", type: "integer" }),
|
|
5132
|
+
(0, import_typeorm45.Index)()
|
|
5065
5133
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
5066
5134
|
__decorateClass([
|
|
5067
|
-
(0,
|
|
5068
|
-
(0,
|
|
5135
|
+
(0, import_typeorm45.ManyToOne)(() => Permission, { onDelete: "CASCADE" }),
|
|
5136
|
+
(0, import_typeorm45.JoinColumn)({ name: "permission_id" })
|
|
5069
5137
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
5070
5138
|
__decorateClass([
|
|
5071
|
-
(0,
|
|
5139
|
+
(0, import_typeorm45.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5072
5140
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
5073
5141
|
CompanyRolePermission = __decorateClass([
|
|
5074
|
-
(0,
|
|
5142
|
+
(0, import_typeorm45.Entity)("company_role_permissions")
|
|
5075
5143
|
], CompanyRolePermission);
|
|
5076
5144
|
|
|
5077
5145
|
// src/entities/company-role.entity.ts
|
|
5078
5146
|
var CompanyRole = class extends BaseEntity {
|
|
5079
5147
|
};
|
|
5080
5148
|
__decorateClass([
|
|
5081
|
-
(0,
|
|
5082
|
-
(0,
|
|
5149
|
+
(0, import_typeorm46.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5150
|
+
(0, import_typeorm46.Index)()
|
|
5083
5151
|
], CompanyRole.prototype, "userId", 2);
|
|
5084
5152
|
__decorateClass([
|
|
5085
|
-
(0,
|
|
5086
|
-
(0,
|
|
5153
|
+
(0, import_typeorm46.ManyToOne)(() => User, (user) => user.otps),
|
|
5154
|
+
(0, import_typeorm46.JoinColumn)({ name: "user_id" })
|
|
5087
5155
|
], CompanyRole.prototype, "user", 2);
|
|
5088
5156
|
__decorateClass([
|
|
5089
|
-
(0,
|
|
5157
|
+
(0, import_typeorm46.Column)({ name: "name", type: "varchar" })
|
|
5090
5158
|
], CompanyRole.prototype, "name", 2);
|
|
5091
5159
|
__decorateClass([
|
|
5092
|
-
(0,
|
|
5093
|
-
(0,
|
|
5160
|
+
(0, import_typeorm46.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5161
|
+
(0, import_typeorm46.Index)()
|
|
5094
5162
|
], CompanyRole.prototype, "slug", 2);
|
|
5095
5163
|
__decorateClass([
|
|
5096
|
-
(0,
|
|
5164
|
+
(0, import_typeorm46.Column)({ name: "description", type: "text", nullable: true })
|
|
5097
5165
|
], CompanyRole.prototype, "description", 2);
|
|
5098
5166
|
__decorateClass([
|
|
5099
|
-
(0,
|
|
5167
|
+
(0, import_typeorm46.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5100
5168
|
], CompanyRole.prototype, "isActive", 2);
|
|
5101
5169
|
__decorateClass([
|
|
5102
|
-
(0,
|
|
5170
|
+
(0, import_typeorm46.OneToMany)(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
5103
5171
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
5104
5172
|
CompanyRole = __decorateClass([
|
|
5105
|
-
(0,
|
|
5173
|
+
(0, import_typeorm46.Entity)("company_roles")
|
|
5106
5174
|
], CompanyRole);
|
|
5107
5175
|
|
|
5108
5176
|
// src/entities/company-members-roles.entity.ts
|
|
5109
5177
|
var CompanyMemberRole = class extends BaseEntity {
|
|
5110
5178
|
};
|
|
5111
5179
|
__decorateClass([
|
|
5112
|
-
(0,
|
|
5113
|
-
(0,
|
|
5180
|
+
(0, import_typeorm47.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5181
|
+
(0, import_typeorm47.Index)()
|
|
5114
5182
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
5115
5183
|
__decorateClass([
|
|
5116
|
-
(0,
|
|
5117
|
-
(0,
|
|
5184
|
+
(0, import_typeorm47.ManyToOne)(() => User),
|
|
5185
|
+
(0, import_typeorm47.JoinColumn)({ name: "user_id" })
|
|
5118
5186
|
], CompanyMemberRole.prototype, "user", 2);
|
|
5119
5187
|
__decorateClass([
|
|
5120
|
-
(0,
|
|
5121
|
-
(0,
|
|
5188
|
+
(0, import_typeorm47.ManyToOne)(() => CompanyRole),
|
|
5189
|
+
(0, import_typeorm47.JoinColumn)({ name: "company_role_id" })
|
|
5122
5190
|
], CompanyMemberRole.prototype, "role", 2);
|
|
5123
5191
|
__decorateClass([
|
|
5124
|
-
(0,
|
|
5125
|
-
(0,
|
|
5192
|
+
(0, import_typeorm47.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5193
|
+
(0, import_typeorm47.Index)()
|
|
5126
5194
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
5127
5195
|
__decorateClass([
|
|
5128
|
-
(0,
|
|
5196
|
+
(0, import_typeorm47.Column)({ name: "assigned_by", type: "integer", nullable: true })
|
|
5129
5197
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
5130
5198
|
CompanyMemberRole = __decorateClass([
|
|
5131
|
-
(0,
|
|
5199
|
+
(0, import_typeorm47.Entity)("company_member_roles")
|
|
5132
5200
|
], CompanyMemberRole);
|
|
5133
5201
|
|
|
5134
5202
|
// src/entities/assessment-answer.entity.ts
|
|
5135
|
-
var
|
|
5203
|
+
var import_typeorm50 = require("typeorm");
|
|
5136
5204
|
|
|
5137
5205
|
// src/entities/assessment-question.entity.ts
|
|
5138
|
-
var
|
|
5206
|
+
var import_typeorm49 = require("typeorm");
|
|
5139
5207
|
|
|
5140
5208
|
// src/entities/assessment-question-option.entity.ts
|
|
5141
|
-
var
|
|
5209
|
+
var import_typeorm48 = require("typeorm");
|
|
5142
5210
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5143
5211
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
5144
5212
|
AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
|
|
@@ -5148,21 +5216,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5148
5216
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5149
5217
|
};
|
|
5150
5218
|
__decorateClass([
|
|
5151
|
-
(0,
|
|
5152
|
-
(0,
|
|
5219
|
+
(0, import_typeorm48.Column)({ name: "question_id", type: "integer", nullable: true }),
|
|
5220
|
+
(0, import_typeorm48.Index)()
|
|
5153
5221
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5154
5222
|
__decorateClass([
|
|
5155
|
-
(0,
|
|
5223
|
+
(0, import_typeorm48.ManyToOne)(
|
|
5156
5224
|
() => AssessmetQuestion,
|
|
5157
5225
|
(assessmentQuestion) => assessmentQuestion.options
|
|
5158
5226
|
),
|
|
5159
|
-
(0,
|
|
5227
|
+
(0, import_typeorm48.JoinColumn)({ name: "question_id" })
|
|
5160
5228
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5161
5229
|
__decorateClass([
|
|
5162
|
-
(0,
|
|
5230
|
+
(0, import_typeorm48.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5163
5231
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5164
5232
|
__decorateClass([
|
|
5165
|
-
(0,
|
|
5233
|
+
(0, import_typeorm48.Column)({
|
|
5166
5234
|
name: "answer_type",
|
|
5167
5235
|
type: "enum",
|
|
5168
5236
|
enum: AnswerTypeEnum,
|
|
@@ -5170,13 +5238,13 @@ __decorateClass([
|
|
|
5170
5238
|
})
|
|
5171
5239
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5172
5240
|
__decorateClass([
|
|
5173
|
-
(0,
|
|
5241
|
+
(0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5174
5242
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5175
5243
|
__decorateClass([
|
|
5176
|
-
(0,
|
|
5244
|
+
(0, import_typeorm48.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5177
5245
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5178
5246
|
AssessmetQuestionOption = __decorateClass([
|
|
5179
|
-
(0,
|
|
5247
|
+
(0, import_typeorm48.Entity)("assessment_question_options")
|
|
5180
5248
|
], AssessmetQuestionOption);
|
|
5181
5249
|
|
|
5182
5250
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5188,10 +5256,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5188
5256
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5189
5257
|
};
|
|
5190
5258
|
__decorateClass([
|
|
5191
|
-
(0,
|
|
5259
|
+
(0, import_typeorm49.Column)({ name: "text", type: "varchar", nullable: true })
|
|
5192
5260
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5193
5261
|
__decorateClass([
|
|
5194
|
-
(0,
|
|
5262
|
+
(0, import_typeorm49.Column)({
|
|
5195
5263
|
name: "question_for",
|
|
5196
5264
|
type: "enum",
|
|
5197
5265
|
enum: QuestionForEnum,
|
|
@@ -5199,24 +5267,24 @@ __decorateClass([
|
|
|
5199
5267
|
})
|
|
5200
5268
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5201
5269
|
__decorateClass([
|
|
5202
|
-
(0,
|
|
5270
|
+
(0, import_typeorm49.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5203
5271
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5204
5272
|
__decorateClass([
|
|
5205
|
-
(0,
|
|
5206
|
-
(0,
|
|
5273
|
+
(0, import_typeorm49.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5274
|
+
(0, import_typeorm49.Index)()
|
|
5207
5275
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5208
5276
|
__decorateClass([
|
|
5209
|
-
(0,
|
|
5210
|
-
(0,
|
|
5277
|
+
(0, import_typeorm49.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5278
|
+
(0, import_typeorm49.JoinColumn)({ name: "candidate_id" })
|
|
5211
5279
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5212
5280
|
__decorateClass([
|
|
5213
|
-
(0,
|
|
5281
|
+
(0, import_typeorm49.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5214
5282
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5215
5283
|
__decorateClass([
|
|
5216
|
-
(0,
|
|
5284
|
+
(0, import_typeorm49.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5217
5285
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5218
5286
|
AssessmetQuestion = __decorateClass([
|
|
5219
|
-
(0,
|
|
5287
|
+
(0, import_typeorm49.Entity)("assessment_questions")
|
|
5220
5288
|
], AssessmetQuestion);
|
|
5221
5289
|
|
|
5222
5290
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5229,118 +5297,118 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5229
5297
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5230
5298
|
};
|
|
5231
5299
|
__decorateClass([
|
|
5232
|
-
(0,
|
|
5233
|
-
(0,
|
|
5300
|
+
(0, import_typeorm50.Column)({ name: "user_id", type: "integer" }),
|
|
5301
|
+
(0, import_typeorm50.Index)()
|
|
5234
5302
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5235
5303
|
__decorateClass([
|
|
5236
|
-
(0,
|
|
5237
|
-
(0,
|
|
5304
|
+
(0, import_typeorm50.ManyToOne)(() => User, (user) => user.assessmentAnswers),
|
|
5305
|
+
(0, import_typeorm50.JoinColumn)({ name: "user_id" })
|
|
5238
5306
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5239
5307
|
__decorateClass([
|
|
5240
|
-
(0,
|
|
5241
|
-
(0,
|
|
5308
|
+
(0, import_typeorm50.Column)({ name: "question_id", type: "integer" }),
|
|
5309
|
+
(0, import_typeorm50.Index)()
|
|
5242
5310
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5243
5311
|
__decorateClass([
|
|
5244
|
-
(0,
|
|
5312
|
+
(0, import_typeorm50.ManyToOne)(
|
|
5245
5313
|
() => AssessmetQuestion,
|
|
5246
5314
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5247
5315
|
),
|
|
5248
|
-
(0,
|
|
5316
|
+
(0, import_typeorm50.JoinColumn)({ name: "question_id" })
|
|
5249
5317
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5250
5318
|
__decorateClass([
|
|
5251
|
-
(0,
|
|
5252
|
-
(0,
|
|
5319
|
+
(0, import_typeorm50.Column)({ name: "selected_option_id", type: "integer" }),
|
|
5320
|
+
(0, import_typeorm50.Index)()
|
|
5253
5321
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5254
5322
|
__decorateClass([
|
|
5255
|
-
(0,
|
|
5323
|
+
(0, import_typeorm50.ManyToOne)(
|
|
5256
5324
|
() => AssessmetQuestionOption,
|
|
5257
5325
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5258
5326
|
),
|
|
5259
|
-
(0,
|
|
5327
|
+
(0, import_typeorm50.JoinColumn)({ name: "selected_option_id" })
|
|
5260
5328
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5261
5329
|
__decorateClass([
|
|
5262
|
-
(0,
|
|
5330
|
+
(0, import_typeorm50.Column)({
|
|
5263
5331
|
name: "selected_answer_type",
|
|
5264
5332
|
type: "enum",
|
|
5265
5333
|
enum: SelectedAnswerTypeEnum
|
|
5266
5334
|
})
|
|
5267
5335
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5268
5336
|
__decorateClass([
|
|
5269
|
-
(0,
|
|
5337
|
+
(0, import_typeorm50.Column)({ name: "score", type: "float" })
|
|
5270
5338
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5271
5339
|
AssessmentAnswer = __decorateClass([
|
|
5272
|
-
(0,
|
|
5340
|
+
(0, import_typeorm50.Entity)("assessment_answers")
|
|
5273
5341
|
], AssessmentAnswer);
|
|
5274
5342
|
|
|
5275
5343
|
// src/entities/company-skill.entity.ts
|
|
5276
|
-
var
|
|
5344
|
+
var import_typeorm51 = require("typeorm");
|
|
5277
5345
|
var CompanySkill = class extends BaseEntity {
|
|
5278
5346
|
};
|
|
5279
5347
|
// individual index to find core skills by user
|
|
5280
5348
|
__decorateClass([
|
|
5281
|
-
(0,
|
|
5282
|
-
(0,
|
|
5349
|
+
(0, import_typeorm51.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5350
|
+
(0, import_typeorm51.Index)()
|
|
5283
5351
|
], CompanySkill.prototype, "userId", 2);
|
|
5284
5352
|
__decorateClass([
|
|
5285
|
-
(0,
|
|
5286
|
-
(0,
|
|
5353
|
+
(0, import_typeorm51.ManyToOne)(() => User, (user) => user.freelancerSkills),
|
|
5354
|
+
(0, import_typeorm51.JoinColumn)({ name: "user_id" })
|
|
5287
5355
|
], CompanySkill.prototype, "user", 2);
|
|
5288
5356
|
__decorateClass([
|
|
5289
|
-
(0,
|
|
5357
|
+
(0, import_typeorm51.Column)({ name: "skill_name", type: "varchar", nullable: true })
|
|
5290
5358
|
], CompanySkill.prototype, "skillName", 2);
|
|
5291
5359
|
CompanySkill = __decorateClass([
|
|
5292
|
-
(0,
|
|
5360
|
+
(0, import_typeorm51.Entity)("company_skills")
|
|
5293
5361
|
], CompanySkill);
|
|
5294
5362
|
|
|
5295
5363
|
// src/entities/admin-user-role.entity.ts
|
|
5296
|
-
var
|
|
5364
|
+
var import_typeorm55 = require("typeorm");
|
|
5297
5365
|
|
|
5298
5366
|
// src/entities/admin-role.entity.ts
|
|
5299
|
-
var
|
|
5367
|
+
var import_typeorm54 = require("typeorm");
|
|
5300
5368
|
|
|
5301
5369
|
// src/entities/admin-role-permission.entity.ts
|
|
5302
|
-
var
|
|
5370
|
+
var import_typeorm53 = require("typeorm");
|
|
5303
5371
|
|
|
5304
5372
|
// src/entities/admin-permission.entity.ts
|
|
5305
|
-
var
|
|
5373
|
+
var import_typeorm52 = require("typeorm");
|
|
5306
5374
|
var AdminPermission = class extends BaseEntity {
|
|
5307
5375
|
};
|
|
5308
5376
|
__decorateClass([
|
|
5309
|
-
(0,
|
|
5377
|
+
(0, import_typeorm52.Column)({ name: "permission_name", type: "varchar", nullable: true })
|
|
5310
5378
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5311
5379
|
__decorateClass([
|
|
5312
|
-
(0,
|
|
5380
|
+
(0, import_typeorm52.Column)({
|
|
5313
5381
|
name: "permission_slug",
|
|
5314
5382
|
type: "varchar",
|
|
5315
5383
|
unique: true,
|
|
5316
5384
|
nullable: true
|
|
5317
5385
|
}),
|
|
5318
|
-
(0,
|
|
5386
|
+
(0, import_typeorm52.Index)()
|
|
5319
5387
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5320
5388
|
__decorateClass([
|
|
5321
|
-
(0,
|
|
5389
|
+
(0, import_typeorm52.Column)({ name: "permission_description", type: "varchar", nullable: true })
|
|
5322
5390
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5323
5391
|
__decorateClass([
|
|
5324
|
-
(0,
|
|
5392
|
+
(0, import_typeorm52.Column)({ name: "module", type: "varchar", nullable: true })
|
|
5325
5393
|
], AdminPermission.prototype, "module", 2);
|
|
5326
5394
|
__decorateClass([
|
|
5327
|
-
(0,
|
|
5395
|
+
(0, import_typeorm52.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5328
5396
|
], AdminPermission.prototype, "isActive", 2);
|
|
5329
5397
|
__decorateClass([
|
|
5330
|
-
(0,
|
|
5398
|
+
(0, import_typeorm52.OneToMany)(
|
|
5331
5399
|
() => AdminRolePermission,
|
|
5332
5400
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5333
5401
|
)
|
|
5334
5402
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5335
5403
|
AdminPermission = __decorateClass([
|
|
5336
|
-
(0,
|
|
5404
|
+
(0, import_typeorm52.Entity)("admin_permissions")
|
|
5337
5405
|
], AdminPermission);
|
|
5338
5406
|
|
|
5339
5407
|
// src/entities/admin-role-permission.entity.ts
|
|
5340
5408
|
var AdminRolePermission = class extends BaseEntity {
|
|
5341
5409
|
};
|
|
5342
5410
|
__decorateClass([
|
|
5343
|
-
(0,
|
|
5411
|
+
(0, import_typeorm53.Column)({
|
|
5344
5412
|
name: "role_id",
|
|
5345
5413
|
type: "int",
|
|
5346
5414
|
nullable: true,
|
|
@@ -5348,11 +5416,11 @@ __decorateClass([
|
|
|
5348
5416
|
})
|
|
5349
5417
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5350
5418
|
__decorateClass([
|
|
5351
|
-
(0,
|
|
5352
|
-
(0,
|
|
5419
|
+
(0, import_typeorm53.ManyToOne)(() => AdminRole),
|
|
5420
|
+
(0, import_typeorm53.JoinColumn)({ name: "role_id" })
|
|
5353
5421
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5354
5422
|
__decorateClass([
|
|
5355
|
-
(0,
|
|
5423
|
+
(0, import_typeorm53.Column)({
|
|
5356
5424
|
name: "permission_id",
|
|
5357
5425
|
type: "int",
|
|
5358
5426
|
nullable: true,
|
|
@@ -5360,47 +5428,47 @@ __decorateClass([
|
|
|
5360
5428
|
})
|
|
5361
5429
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5362
5430
|
__decorateClass([
|
|
5363
|
-
(0,
|
|
5364
|
-
(0,
|
|
5431
|
+
(0, import_typeorm53.ManyToOne)(() => AdminPermission),
|
|
5432
|
+
(0, import_typeorm53.JoinColumn)({ name: "permission_id" })
|
|
5365
5433
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5366
5434
|
AdminRolePermission = __decorateClass([
|
|
5367
|
-
(0,
|
|
5435
|
+
(0, import_typeorm53.Entity)("admin_role_permissions")
|
|
5368
5436
|
], AdminRolePermission);
|
|
5369
5437
|
|
|
5370
5438
|
// src/entities/admin-role.entity.ts
|
|
5371
5439
|
var AdminRole = class extends BaseEntity {
|
|
5372
5440
|
};
|
|
5373
5441
|
__decorateClass([
|
|
5374
|
-
(0,
|
|
5442
|
+
(0, import_typeorm54.Column)({ name: "role_name", type: "varchar", nullable: true })
|
|
5375
5443
|
], AdminRole.prototype, "roleName", 2);
|
|
5376
5444
|
__decorateClass([
|
|
5377
|
-
(0,
|
|
5378
|
-
(0,
|
|
5445
|
+
(0, import_typeorm54.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5446
|
+
(0, import_typeorm54.Index)()
|
|
5379
5447
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5380
5448
|
__decorateClass([
|
|
5381
|
-
(0,
|
|
5449
|
+
(0, import_typeorm54.Column)({ name: "role_description", type: "varchar", nullable: true })
|
|
5382
5450
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5383
5451
|
__decorateClass([
|
|
5384
|
-
(0,
|
|
5452
|
+
(0, import_typeorm54.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5385
5453
|
], AdminRole.prototype, "isActive", 2);
|
|
5386
5454
|
__decorateClass([
|
|
5387
|
-
(0,
|
|
5455
|
+
(0, import_typeorm54.OneToMany)(
|
|
5388
5456
|
() => AdminRolePermission,
|
|
5389
5457
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5390
5458
|
)
|
|
5391
5459
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5392
5460
|
__decorateClass([
|
|
5393
|
-
(0,
|
|
5461
|
+
(0, import_typeorm54.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5394
5462
|
], AdminRole.prototype, "userRoles", 2);
|
|
5395
5463
|
AdminRole = __decorateClass([
|
|
5396
|
-
(0,
|
|
5464
|
+
(0, import_typeorm54.Entity)("admin_roles")
|
|
5397
5465
|
], AdminRole);
|
|
5398
5466
|
|
|
5399
5467
|
// src/entities/admin-user-role.entity.ts
|
|
5400
5468
|
var AdminUserRole = class extends BaseEntity {
|
|
5401
5469
|
};
|
|
5402
5470
|
__decorateClass([
|
|
5403
|
-
(0,
|
|
5471
|
+
(0, import_typeorm55.Column)({
|
|
5404
5472
|
name: "user_id",
|
|
5405
5473
|
type: "int",
|
|
5406
5474
|
nullable: true,
|
|
@@ -5408,11 +5476,11 @@ __decorateClass([
|
|
|
5408
5476
|
})
|
|
5409
5477
|
], AdminUserRole.prototype, "userId", 2);
|
|
5410
5478
|
__decorateClass([
|
|
5411
|
-
(0,
|
|
5412
|
-
(0,
|
|
5479
|
+
(0, import_typeorm55.ManyToOne)(() => User),
|
|
5480
|
+
(0, import_typeorm55.JoinColumn)({ name: "user_id" })
|
|
5413
5481
|
], AdminUserRole.prototype, "user", 2);
|
|
5414
5482
|
__decorateClass([
|
|
5415
|
-
(0,
|
|
5483
|
+
(0, import_typeorm55.Column)({
|
|
5416
5484
|
name: "role_id",
|
|
5417
5485
|
type: "int",
|
|
5418
5486
|
nullable: true,
|
|
@@ -5420,58 +5488,58 @@ __decorateClass([
|
|
|
5420
5488
|
})
|
|
5421
5489
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5422
5490
|
__decorateClass([
|
|
5423
|
-
(0,
|
|
5424
|
-
(0,
|
|
5491
|
+
(0, import_typeorm55.ManyToOne)(() => AdminRole),
|
|
5492
|
+
(0, import_typeorm55.JoinColumn)({ name: "role_id" })
|
|
5425
5493
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5426
5494
|
AdminUserRole = __decorateClass([
|
|
5427
|
-
(0,
|
|
5495
|
+
(0, import_typeorm55.Entity)("admin_user_roles")
|
|
5428
5496
|
], AdminUserRole);
|
|
5429
5497
|
|
|
5430
5498
|
// src/entities/freelancer-resume.entity.ts
|
|
5431
|
-
var
|
|
5499
|
+
var import_typeorm56 = require("typeorm");
|
|
5432
5500
|
var FreelancerResume = class extends BaseEntity {
|
|
5433
5501
|
};
|
|
5434
5502
|
// individual index to find profile by user
|
|
5435
5503
|
__decorateClass([
|
|
5436
|
-
(0,
|
|
5437
|
-
(0,
|
|
5504
|
+
(0, import_typeorm56.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5505
|
+
(0, import_typeorm56.Index)()
|
|
5438
5506
|
], FreelancerResume.prototype, "userId", 2);
|
|
5439
5507
|
__decorateClass([
|
|
5440
|
-
(0,
|
|
5441
|
-
(0,
|
|
5508
|
+
(0, import_typeorm56.ManyToOne)(() => User, (user) => user.freelancerProfile),
|
|
5509
|
+
(0, import_typeorm56.JoinColumn)({ name: "user_id" })
|
|
5442
5510
|
], FreelancerResume.prototype, "user", 2);
|
|
5443
5511
|
__decorateClass([
|
|
5444
|
-
(0,
|
|
5512
|
+
(0, import_typeorm56.Column)({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5445
5513
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5446
5514
|
__decorateClass([
|
|
5447
|
-
(0,
|
|
5515
|
+
(0, import_typeorm56.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5448
5516
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5449
5517
|
FreelancerResume = __decorateClass([
|
|
5450
|
-
(0,
|
|
5518
|
+
(0, import_typeorm56.Entity)("freelancer_resumes")
|
|
5451
5519
|
], FreelancerResume);
|
|
5452
5520
|
|
|
5453
5521
|
// src/entities/signature.entity.ts
|
|
5454
|
-
var
|
|
5522
|
+
var import_typeorm57 = require("typeorm");
|
|
5455
5523
|
var Signature = class extends BaseEntity {
|
|
5456
5524
|
};
|
|
5457
5525
|
// individual index to find profile by user
|
|
5458
5526
|
__decorateClass([
|
|
5459
|
-
(0,
|
|
5460
|
-
(0,
|
|
5527
|
+
(0, import_typeorm57.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5528
|
+
(0, import_typeorm57.Index)()
|
|
5461
5529
|
], Signature.prototype, "userId", 2);
|
|
5462
5530
|
__decorateClass([
|
|
5463
|
-
(0,
|
|
5464
|
-
(0,
|
|
5531
|
+
(0, import_typeorm57.ManyToOne)(() => User, (user) => user.signatures),
|
|
5532
|
+
(0, import_typeorm57.JoinColumn)({ name: "user_id" })
|
|
5465
5533
|
], Signature.prototype, "user", 2);
|
|
5466
5534
|
__decorateClass([
|
|
5467
|
-
(0,
|
|
5535
|
+
(0, import_typeorm57.Column)({ name: "signature_url", type: "text", nullable: true })
|
|
5468
5536
|
], Signature.prototype, "signatureUrl", 2);
|
|
5469
5537
|
Signature = __decorateClass([
|
|
5470
|
-
(0,
|
|
5538
|
+
(0, import_typeorm57.Entity)("signatures")
|
|
5471
5539
|
], Signature);
|
|
5472
5540
|
|
|
5473
5541
|
// src/entities/dispute.entity.ts
|
|
5474
|
-
var
|
|
5542
|
+
var import_typeorm58 = require("typeorm");
|
|
5475
5543
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5476
5544
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5477
5545
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5492,36 +5560,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5492
5560
|
var Dispute = class extends BaseEntity {
|
|
5493
5561
|
};
|
|
5494
5562
|
__decorateClass([
|
|
5495
|
-
(0,
|
|
5496
|
-
(0,
|
|
5563
|
+
(0, import_typeorm58.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
5564
|
+
(0, import_typeorm58.Index)()
|
|
5497
5565
|
], Dispute.prototype, "clientId", 2);
|
|
5498
5566
|
__decorateClass([
|
|
5499
|
-
(0,
|
|
5500
|
-
(0,
|
|
5567
|
+
(0, import_typeorm58.ManyToOne)(() => User, (user) => user.clientDisputes),
|
|
5568
|
+
(0, import_typeorm58.JoinColumn)({ name: "client_id" })
|
|
5501
5569
|
], Dispute.prototype, "client", 2);
|
|
5502
5570
|
__decorateClass([
|
|
5503
|
-
(0,
|
|
5504
|
-
(0,
|
|
5571
|
+
(0, import_typeorm58.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5572
|
+
(0, import_typeorm58.Index)()
|
|
5505
5573
|
], Dispute.prototype, "freelancerId", 2);
|
|
5506
5574
|
__decorateClass([
|
|
5507
|
-
(0,
|
|
5508
|
-
(0,
|
|
5575
|
+
(0, import_typeorm58.ManyToOne)(() => User, (user) => user.freelancerDisputes),
|
|
5576
|
+
(0, import_typeorm58.JoinColumn)({ name: "freelancer_id" })
|
|
5509
5577
|
], Dispute.prototype, "freelancer", 2);
|
|
5510
5578
|
__decorateClass([
|
|
5511
|
-
(0,
|
|
5579
|
+
(0, import_typeorm58.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5512
5580
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5513
5581
|
__decorateClass([
|
|
5514
|
-
(0,
|
|
5515
|
-
(0,
|
|
5582
|
+
(0, import_typeorm58.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5583
|
+
(0, import_typeorm58.Index)()
|
|
5516
5584
|
], Dispute.prototype, "disputeType", 2);
|
|
5517
5585
|
__decorateClass([
|
|
5518
|
-
(0,
|
|
5586
|
+
(0, import_typeorm58.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5519
5587
|
], Dispute.prototype, "description", 2);
|
|
5520
5588
|
__decorateClass([
|
|
5521
|
-
(0,
|
|
5589
|
+
(0, import_typeorm58.Column)({ name: "comment", type: "varchar", nullable: true })
|
|
5522
5590
|
], Dispute.prototype, "comment", 2);
|
|
5523
5591
|
__decorateClass([
|
|
5524
|
-
(0,
|
|
5592
|
+
(0, import_typeorm58.Column)({
|
|
5525
5593
|
name: "status",
|
|
5526
5594
|
type: "enum",
|
|
5527
5595
|
enum: DisputeStatusEnum,
|
|
@@ -5529,7 +5597,7 @@ __decorateClass([
|
|
|
5529
5597
|
})
|
|
5530
5598
|
], Dispute.prototype, "status", 2);
|
|
5531
5599
|
__decorateClass([
|
|
5532
|
-
(0,
|
|
5600
|
+
(0, import_typeorm58.Column)({
|
|
5533
5601
|
name: "initiator_type",
|
|
5534
5602
|
type: "enum",
|
|
5535
5603
|
enum: InitiatorTypeEnum,
|
|
@@ -5538,33 +5606,33 @@ __decorateClass([
|
|
|
5538
5606
|
})
|
|
5539
5607
|
], Dispute.prototype, "initiatorType", 2);
|
|
5540
5608
|
__decorateClass([
|
|
5541
|
-
(0,
|
|
5542
|
-
(0,
|
|
5609
|
+
(0, import_typeorm58.Column)({ name: "initiator_id", type: "integer" }),
|
|
5610
|
+
(0, import_typeorm58.Index)()
|
|
5543
5611
|
], Dispute.prototype, "initiatorId", 2);
|
|
5544
5612
|
__decorateClass([
|
|
5545
|
-
(0,
|
|
5546
|
-
(0,
|
|
5613
|
+
(0, import_typeorm58.ManyToOne)(() => User, (user) => user.initiatedDisputes),
|
|
5614
|
+
(0, import_typeorm58.JoinColumn)({ name: "initiator_id" })
|
|
5547
5615
|
], Dispute.prototype, "initiator", 2);
|
|
5548
5616
|
__decorateClass([
|
|
5549
|
-
(0,
|
|
5550
|
-
(0,
|
|
5617
|
+
(0, import_typeorm58.Column)({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5618
|
+
(0, import_typeorm58.Index)()
|
|
5551
5619
|
], Dispute.prototype, "respondentId", 2);
|
|
5552
5620
|
__decorateClass([
|
|
5553
|
-
(0,
|
|
5554
|
-
(0,
|
|
5621
|
+
(0, import_typeorm58.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5622
|
+
(0, import_typeorm58.JoinColumn)({ name: "respondent_id" })
|
|
5555
5623
|
], Dispute.prototype, "respondent", 2);
|
|
5556
5624
|
__decorateClass([
|
|
5557
|
-
(0,
|
|
5625
|
+
(0, import_typeorm58.Column)({ name: "attachments", type: "jsonb", nullable: true })
|
|
5558
5626
|
], Dispute.prototype, "attachments", 2);
|
|
5559
5627
|
__decorateClass([
|
|
5560
|
-
(0,
|
|
5628
|
+
(0, import_typeorm58.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5561
5629
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5562
5630
|
Dispute = __decorateClass([
|
|
5563
|
-
(0,
|
|
5631
|
+
(0, import_typeorm58.Entity)("disputes")
|
|
5564
5632
|
], Dispute);
|
|
5565
5633
|
|
|
5566
5634
|
// src/entities/stripe-transaction.entity.ts
|
|
5567
|
-
var
|
|
5635
|
+
var import_typeorm59 = require("typeorm");
|
|
5568
5636
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5569
5637
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5570
5638
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5586,97 +5654,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5586
5654
|
// Full Stripe session response
|
|
5587
5655
|
};
|
|
5588
5656
|
__decorateClass([
|
|
5589
|
-
(0,
|
|
5590
|
-
(0,
|
|
5657
|
+
(0, import_typeorm59.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5658
|
+
(0, import_typeorm59.Index)()
|
|
5591
5659
|
], StripeTransaction.prototype, "userId", 2);
|
|
5592
5660
|
__decorateClass([
|
|
5593
|
-
(0,
|
|
5594
|
-
(0,
|
|
5661
|
+
(0, import_typeorm59.ManyToOne)(() => User, (user) => user.stripeTransactions),
|
|
5662
|
+
(0, import_typeorm59.JoinColumn)({ name: "user_id" })
|
|
5595
5663
|
], StripeTransaction.prototype, "user", 2);
|
|
5596
5664
|
__decorateClass([
|
|
5597
|
-
(0,
|
|
5665
|
+
(0, import_typeorm59.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5598
5666
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5599
5667
|
__decorateClass([
|
|
5600
|
-
(0,
|
|
5668
|
+
(0, import_typeorm59.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5601
5669
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5602
5670
|
__decorateClass([
|
|
5603
|
-
(0,
|
|
5671
|
+
(0, import_typeorm59.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5604
5672
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5605
5673
|
__decorateClass([
|
|
5606
|
-
(0,
|
|
5674
|
+
(0, import_typeorm59.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5607
5675
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5608
5676
|
__decorateClass([
|
|
5609
|
-
(0,
|
|
5677
|
+
(0, import_typeorm59.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5610
5678
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5611
5679
|
__decorateClass([
|
|
5612
|
-
(0,
|
|
5680
|
+
(0, import_typeorm59.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5613
5681
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5614
5682
|
__decorateClass([
|
|
5615
|
-
(0,
|
|
5683
|
+
(0, import_typeorm59.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5616
5684
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5617
5685
|
__decorateClass([
|
|
5618
|
-
(0,
|
|
5686
|
+
(0, import_typeorm59.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5619
5687
|
], StripeTransaction.prototype, "type", 2);
|
|
5620
5688
|
__decorateClass([
|
|
5621
|
-
(0,
|
|
5689
|
+
(0, import_typeorm59.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
5622
5690
|
], StripeTransaction.prototype, "currency", 2);
|
|
5623
5691
|
__decorateClass([
|
|
5624
|
-
(0,
|
|
5692
|
+
(0, import_typeorm59.Column)({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
|
|
5625
5693
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5626
5694
|
__decorateClass([
|
|
5627
|
-
(0,
|
|
5695
|
+
(0, import_typeorm59.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5628
5696
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5629
5697
|
__decorateClass([
|
|
5630
|
-
(0,
|
|
5698
|
+
(0, import_typeorm59.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5631
5699
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5632
5700
|
__decorateClass([
|
|
5633
|
-
(0,
|
|
5701
|
+
(0, import_typeorm59.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5634
5702
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5635
5703
|
__decorateClass([
|
|
5636
|
-
(0,
|
|
5704
|
+
(0, import_typeorm59.Column)({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
|
|
5637
5705
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5638
5706
|
__decorateClass([
|
|
5639
|
-
(0,
|
|
5707
|
+
(0, import_typeorm59.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5640
5708
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5641
5709
|
__decorateClass([
|
|
5642
|
-
(0,
|
|
5710
|
+
(0, import_typeorm59.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5643
5711
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5644
5712
|
__decorateClass([
|
|
5645
|
-
(0,
|
|
5713
|
+
(0, import_typeorm59.Column)({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
|
|
5646
5714
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5647
5715
|
__decorateClass([
|
|
5648
|
-
(0,
|
|
5716
|
+
(0, import_typeorm59.Column)({ name: "description", type: "text", nullable: true })
|
|
5649
5717
|
], StripeTransaction.prototype, "description", 2);
|
|
5650
5718
|
__decorateClass([
|
|
5651
|
-
(0,
|
|
5719
|
+
(0, import_typeorm59.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5652
5720
|
], StripeTransaction.prototype, "status", 2);
|
|
5653
5721
|
__decorateClass([
|
|
5654
|
-
(0,
|
|
5722
|
+
(0, import_typeorm59.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5655
5723
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5656
5724
|
__decorateClass([
|
|
5657
|
-
(0,
|
|
5725
|
+
(0, import_typeorm59.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5658
5726
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5659
5727
|
__decorateClass([
|
|
5660
|
-
(0,
|
|
5728
|
+
(0, import_typeorm59.Column)({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5661
5729
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5662
5730
|
__decorateClass([
|
|
5663
|
-
(0,
|
|
5731
|
+
(0, import_typeorm59.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5664
5732
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5665
5733
|
__decorateClass([
|
|
5666
|
-
(0,
|
|
5734
|
+
(0, import_typeorm59.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5667
5735
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5668
5736
|
__decorateClass([
|
|
5669
|
-
(0,
|
|
5737
|
+
(0, import_typeorm59.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5670
5738
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5671
5739
|
StripeTransaction = __decorateClass([
|
|
5672
|
-
(0,
|
|
5740
|
+
(0, import_typeorm59.Entity)("stripe_transactions")
|
|
5673
5741
|
], StripeTransaction);
|
|
5674
5742
|
|
|
5675
5743
|
// src/entities/wallet.entity.ts
|
|
5676
|
-
var
|
|
5744
|
+
var import_typeorm61 = require("typeorm");
|
|
5677
5745
|
|
|
5678
5746
|
// src/entities/wallet-transaction.entity.ts
|
|
5679
|
-
var
|
|
5747
|
+
var import_typeorm60 = require("typeorm");
|
|
5680
5748
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5681
5749
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5682
5750
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5693,46 +5761,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5693
5761
|
var WalletTransaction = class extends BaseEntity {
|
|
5694
5762
|
};
|
|
5695
5763
|
__decorateClass([
|
|
5696
|
-
(0,
|
|
5697
|
-
(0,
|
|
5764
|
+
(0, import_typeorm60.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5765
|
+
(0, import_typeorm60.Index)()
|
|
5698
5766
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5699
5767
|
__decorateClass([
|
|
5700
|
-
(0,
|
|
5701
|
-
(0,
|
|
5768
|
+
(0, import_typeorm60.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5769
|
+
(0, import_typeorm60.JoinColumn)({ name: "wallet_id" })
|
|
5702
5770
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5703
5771
|
__decorateClass([
|
|
5704
|
-
(0,
|
|
5772
|
+
(0, import_typeorm60.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
5705
5773
|
], WalletTransaction.prototype, "amount", 2);
|
|
5706
5774
|
__decorateClass([
|
|
5707
|
-
(0,
|
|
5775
|
+
(0, import_typeorm60.Column)({ name: "balance_before", type: "bigint", nullable: true })
|
|
5708
5776
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5709
5777
|
__decorateClass([
|
|
5710
|
-
(0,
|
|
5778
|
+
(0, import_typeorm60.Column)({ name: "balance_after", type: "bigint", nullable: true })
|
|
5711
5779
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5712
5780
|
__decorateClass([
|
|
5713
|
-
(0,
|
|
5781
|
+
(0, import_typeorm60.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5714
5782
|
], WalletTransaction.prototype, "type", 2);
|
|
5715
5783
|
__decorateClass([
|
|
5716
|
-
(0,
|
|
5784
|
+
(0, import_typeorm60.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5717
5785
|
], WalletTransaction.prototype, "status", 2);
|
|
5718
5786
|
__decorateClass([
|
|
5719
|
-
(0,
|
|
5787
|
+
(0, import_typeorm60.Column)({ name: "description", type: "text", nullable: true })
|
|
5720
5788
|
], WalletTransaction.prototype, "description", 2);
|
|
5721
5789
|
__decorateClass([
|
|
5722
|
-
(0,
|
|
5790
|
+
(0, import_typeorm60.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5723
5791
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5724
5792
|
__decorateClass([
|
|
5725
|
-
(0,
|
|
5793
|
+
(0, import_typeorm60.Column)({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5726
5794
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5727
5795
|
__decorateClass([
|
|
5728
|
-
(0,
|
|
5796
|
+
(0, import_typeorm60.Column)({ name: "meta_data", type: "varchar", nullable: true })
|
|
5729
5797
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5730
5798
|
__decorateClass([
|
|
5731
|
-
(0,
|
|
5732
|
-
(0,
|
|
5799
|
+
(0, import_typeorm60.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5800
|
+
(0, import_typeorm60.Index)()
|
|
5733
5801
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5734
5802
|
WalletTransaction = __decorateClass([
|
|
5735
|
-
(0,
|
|
5803
|
+
(0, import_typeorm60.Entity)("wallet_transactions")
|
|
5736
5804
|
], WalletTransaction);
|
|
5737
5805
|
|
|
5738
5806
|
// src/entities/wallet.entity.ts
|
|
@@ -5750,39 +5818,39 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5750
5818
|
var Wallet = class extends BaseEntity {
|
|
5751
5819
|
};
|
|
5752
5820
|
__decorateClass([
|
|
5753
|
-
(0,
|
|
5754
|
-
(0,
|
|
5821
|
+
(0, import_typeorm61.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
5822
|
+
(0, import_typeorm61.Index)()
|
|
5755
5823
|
], Wallet.prototype, "userId", 2);
|
|
5756
5824
|
__decorateClass([
|
|
5757
|
-
(0,
|
|
5758
|
-
(0,
|
|
5825
|
+
(0, import_typeorm61.OneToOne)(() => User, (user) => user.wallet),
|
|
5826
|
+
(0, import_typeorm61.JoinColumn)({ name: "user_id" })
|
|
5759
5827
|
], Wallet.prototype, "user", 2);
|
|
5760
5828
|
__decorateClass([
|
|
5761
|
-
(0,
|
|
5829
|
+
(0, import_typeorm61.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5762
5830
|
], Wallet.prototype, "accountType", 2);
|
|
5763
5831
|
__decorateClass([
|
|
5764
|
-
(0,
|
|
5832
|
+
(0, import_typeorm61.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5765
5833
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5766
5834
|
__decorateClass([
|
|
5767
|
-
(0,
|
|
5835
|
+
(0, import_typeorm61.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5768
5836
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5769
5837
|
__decorateClass([
|
|
5770
|
-
(0,
|
|
5838
|
+
(0, import_typeorm61.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
5771
5839
|
], Wallet.prototype, "walletBalance", 2);
|
|
5772
5840
|
__decorateClass([
|
|
5773
|
-
(0,
|
|
5841
|
+
(0, import_typeorm61.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
|
|
5774
5842
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5775
5843
|
__decorateClass([
|
|
5776
|
-
(0,
|
|
5844
|
+
(0, import_typeorm61.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5777
5845
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5778
5846
|
__decorateClass([
|
|
5779
|
-
(0,
|
|
5847
|
+
(0, import_typeorm61.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5780
5848
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5781
5849
|
__decorateClass([
|
|
5782
|
-
(0,
|
|
5850
|
+
(0, import_typeorm61.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5783
5851
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5784
5852
|
Wallet = __decorateClass([
|
|
5785
|
-
(0,
|
|
5853
|
+
(0, import_typeorm61.Entity)("wallets")
|
|
5786
5854
|
], Wallet);
|
|
5787
5855
|
|
|
5788
5856
|
// src/entities/user.entity.ts
|
|
@@ -5810,51 +5878,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5810
5878
|
var User = class extends BaseEntity {
|
|
5811
5879
|
};
|
|
5812
5880
|
__decorateClass([
|
|
5813
|
-
(0,
|
|
5881
|
+
(0, import_typeorm62.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
5814
5882
|
], User.prototype, "uniqueId", 2);
|
|
5815
5883
|
__decorateClass([
|
|
5816
|
-
(0,
|
|
5817
|
-
(0,
|
|
5884
|
+
(0, import_typeorm62.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
5885
|
+
(0, import_typeorm62.Index)()
|
|
5818
5886
|
], User.prototype, "parentId", 2);
|
|
5819
5887
|
__decorateClass([
|
|
5820
|
-
(0,
|
|
5821
|
-
(0,
|
|
5888
|
+
(0, import_typeorm62.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
5889
|
+
(0, import_typeorm62.JoinColumn)({ name: "parent_id" })
|
|
5822
5890
|
], User.prototype, "parent", 2);
|
|
5823
5891
|
__decorateClass([
|
|
5824
|
-
(0,
|
|
5892
|
+
(0, import_typeorm62.OneToMany)(() => User, (user) => user.parent)
|
|
5825
5893
|
], User.prototype, "children", 2);
|
|
5826
5894
|
__decorateClass([
|
|
5827
|
-
(0,
|
|
5895
|
+
(0, import_typeorm62.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5828
5896
|
], User.prototype, "username", 2);
|
|
5829
5897
|
__decorateClass([
|
|
5830
|
-
(0,
|
|
5898
|
+
(0, import_typeorm62.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5831
5899
|
], User.prototype, "firstName", 2);
|
|
5832
5900
|
__decorateClass([
|
|
5833
|
-
(0,
|
|
5901
|
+
(0, import_typeorm62.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5834
5902
|
], User.prototype, "lastName", 2);
|
|
5835
5903
|
__decorateClass([
|
|
5836
|
-
(0,
|
|
5904
|
+
(0, import_typeorm62.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
5837
5905
|
], User.prototype, "dateOfBirth", 2);
|
|
5838
5906
|
__decorateClass([
|
|
5839
|
-
(0,
|
|
5907
|
+
(0, import_typeorm62.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5840
5908
|
], User.prototype, "gender", 2);
|
|
5841
5909
|
__decorateClass([
|
|
5842
|
-
(0,
|
|
5910
|
+
(0, import_typeorm62.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5843
5911
|
], User.prototype, "profilePictureUrl", 2);
|
|
5844
5912
|
__decorateClass([
|
|
5845
|
-
(0,
|
|
5913
|
+
(0, import_typeorm62.Column)({ name: "email", type: "varchar", unique: true })
|
|
5846
5914
|
], User.prototype, "email", 2);
|
|
5847
5915
|
__decorateClass([
|
|
5848
|
-
(0,
|
|
5916
|
+
(0, import_typeorm62.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5849
5917
|
], User.prototype, "mobileCode", 2);
|
|
5850
5918
|
__decorateClass([
|
|
5851
|
-
(0,
|
|
5919
|
+
(0, import_typeorm62.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5852
5920
|
], User.prototype, "mobile", 2);
|
|
5853
5921
|
__decorateClass([
|
|
5854
|
-
(0,
|
|
5922
|
+
(0, import_typeorm62.Column)({ name: "password", type: "varchar", nullable: true })
|
|
5855
5923
|
], User.prototype, "password", 2);
|
|
5856
5924
|
__decorateClass([
|
|
5857
|
-
(0,
|
|
5925
|
+
(0, import_typeorm62.Column)({
|
|
5858
5926
|
name: "account_type",
|
|
5859
5927
|
type: "enum",
|
|
5860
5928
|
enum: AccountType,
|
|
@@ -5862,7 +5930,7 @@ __decorateClass([
|
|
|
5862
5930
|
})
|
|
5863
5931
|
], User.prototype, "accountType", 2);
|
|
5864
5932
|
__decorateClass([
|
|
5865
|
-
(0,
|
|
5933
|
+
(0, import_typeorm62.Column)({
|
|
5866
5934
|
name: "account_status",
|
|
5867
5935
|
type: "enum",
|
|
5868
5936
|
enum: AccountStatus,
|
|
@@ -5870,42 +5938,42 @@ __decorateClass([
|
|
|
5870
5938
|
})
|
|
5871
5939
|
], User.prototype, "accountStatus", 2);
|
|
5872
5940
|
__decorateClass([
|
|
5873
|
-
(0,
|
|
5941
|
+
(0, import_typeorm62.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
5874
5942
|
], User.prototype, "isEmailVerified", 2);
|
|
5875
5943
|
__decorateClass([
|
|
5876
|
-
(0,
|
|
5944
|
+
(0, import_typeorm62.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5877
5945
|
], User.prototype, "isMobileVerified", 2);
|
|
5878
5946
|
__decorateClass([
|
|
5879
|
-
(0,
|
|
5947
|
+
(0, import_typeorm62.Column)({ name: "is_social", type: "boolean", default: false })
|
|
5880
5948
|
], User.prototype, "isSocial", 2);
|
|
5881
5949
|
__decorateClass([
|
|
5882
|
-
(0,
|
|
5950
|
+
(0, import_typeorm62.Column)({
|
|
5883
5951
|
name: "last_login_at",
|
|
5884
5952
|
type: "timestamp with time zone",
|
|
5885
5953
|
nullable: true
|
|
5886
5954
|
})
|
|
5887
5955
|
], User.prototype, "lastLoginAt", 2);
|
|
5888
5956
|
__decorateClass([
|
|
5889
|
-
(0,
|
|
5957
|
+
(0, import_typeorm62.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5890
5958
|
], User.prototype, "lastLoginIp", 2);
|
|
5891
5959
|
__decorateClass([
|
|
5892
|
-
(0,
|
|
5960
|
+
(0, import_typeorm62.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
5893
5961
|
], User.prototype, "resetToken", 2);
|
|
5894
5962
|
__decorateClass([
|
|
5895
|
-
(0,
|
|
5963
|
+
(0, import_typeorm62.Column)({
|
|
5896
5964
|
name: "reset_token_expire_at",
|
|
5897
5965
|
type: "timestamp with time zone",
|
|
5898
5966
|
nullable: true
|
|
5899
5967
|
})
|
|
5900
5968
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5901
5969
|
__decorateClass([
|
|
5902
|
-
(0,
|
|
5970
|
+
(0, import_typeorm62.Column)({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5903
5971
|
], User.prototype, "setPasswordToken", 2);
|
|
5904
5972
|
__decorateClass([
|
|
5905
|
-
(0,
|
|
5973
|
+
(0, import_typeorm62.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
5906
5974
|
], User.prototype, "refreshTokens", 2);
|
|
5907
5975
|
__decorateClass([
|
|
5908
|
-
(0,
|
|
5976
|
+
(0, import_typeorm62.Column)({
|
|
5909
5977
|
name: "provider",
|
|
5910
5978
|
type: "enum",
|
|
5911
5979
|
enum: Provider,
|
|
@@ -5914,208 +5982,214 @@ __decorateClass([
|
|
|
5914
5982
|
})
|
|
5915
5983
|
], User.prototype, "provider", 2);
|
|
5916
5984
|
__decorateClass([
|
|
5917
|
-
(0,
|
|
5985
|
+
(0, import_typeorm62.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
5918
5986
|
], User.prototype, "providerToken", 2);
|
|
5919
5987
|
__decorateClass([
|
|
5920
|
-
(0,
|
|
5988
|
+
(0, import_typeorm62.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5921
5989
|
], User.prototype, "linkedInId", 2);
|
|
5922
5990
|
__decorateClass([
|
|
5923
|
-
(0,
|
|
5991
|
+
(0, import_typeorm62.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
5924
5992
|
], User.prototype, "googleId", 2);
|
|
5925
5993
|
__decorateClass([
|
|
5926
|
-
(0,
|
|
5994
|
+
(0, import_typeorm62.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5927
5995
|
], User.prototype, "gitLabsId", 2);
|
|
5928
5996
|
__decorateClass([
|
|
5929
|
-
(0,
|
|
5997
|
+
(0, import_typeorm62.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5930
5998
|
], User.prototype, "onBoardedBy", 2);
|
|
5931
5999
|
__decorateClass([
|
|
5932
|
-
(0,
|
|
6000
|
+
(0, import_typeorm62.OneToMany)(() => Otp, (otp) => otp.user)
|
|
5933
6001
|
], User.prototype, "otps", 2);
|
|
5934
6002
|
__decorateClass([
|
|
5935
|
-
(0,
|
|
6003
|
+
(0, import_typeorm62.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
5936
6004
|
], User.prototype, "senseloafLogs", 2);
|
|
5937
6005
|
__decorateClass([
|
|
5938
|
-
(0,
|
|
6006
|
+
(0, import_typeorm62.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
5939
6007
|
], User.prototype, "companyProfile", 2);
|
|
5940
6008
|
__decorateClass([
|
|
5941
|
-
(0,
|
|
6009
|
+
(0, import_typeorm62.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
|
|
5942
6010
|
], User.prototype, "companySkills", 2);
|
|
5943
6011
|
__decorateClass([
|
|
5944
|
-
(0,
|
|
6012
|
+
(0, import_typeorm62.OneToMany)(
|
|
5945
6013
|
() => CompanyMemberRole,
|
|
5946
6014
|
(companyMemberRole) => companyMemberRole.user
|
|
5947
6015
|
)
|
|
5948
6016
|
], User.prototype, "companyMemberRoles", 2);
|
|
5949
6017
|
__decorateClass([
|
|
5950
|
-
(0,
|
|
6018
|
+
(0, import_typeorm62.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
5951
6019
|
], User.prototype, "companyAiInterview", 2);
|
|
5952
6020
|
__decorateClass([
|
|
5953
|
-
(0,
|
|
6021
|
+
(0, import_typeorm62.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
5954
6022
|
], User.prototype, "clientF2FInterviews", 2);
|
|
5955
6023
|
__decorateClass([
|
|
5956
|
-
(0,
|
|
6024
|
+
(0, import_typeorm62.OneToOne)(
|
|
5957
6025
|
() => FreelancerProfile,
|
|
5958
6026
|
(freelancerProfile) => freelancerProfile.user
|
|
5959
6027
|
)
|
|
5960
6028
|
], User.prototype, "freelancerProfile", 2);
|
|
5961
6029
|
__decorateClass([
|
|
5962
|
-
(0,
|
|
6030
|
+
(0, import_typeorm62.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
5963
6031
|
], User.prototype, "freelancerResume", 2);
|
|
5964
6032
|
__decorateClass([
|
|
5965
|
-
(0,
|
|
6033
|
+
(0, import_typeorm62.OneToMany)(
|
|
5966
6034
|
() => FreelancerAssessment,
|
|
5967
6035
|
(freelancerAssessment) => freelancerAssessment.user
|
|
5968
6036
|
)
|
|
5969
6037
|
], User.prototype, "assessments", 2);
|
|
5970
6038
|
__decorateClass([
|
|
5971
|
-
(0,
|
|
6039
|
+
(0, import_typeorm62.OneToMany)(
|
|
5972
6040
|
() => AssessmentAnswer,
|
|
5973
6041
|
(assessmentAnswer) => assessmentAnswer.user
|
|
5974
6042
|
)
|
|
5975
6043
|
], User.prototype, "assessmentAnswers", 2);
|
|
5976
6044
|
__decorateClass([
|
|
5977
|
-
(0,
|
|
6045
|
+
(0, import_typeorm62.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
5978
6046
|
], User.prototype, "freelancerSkills", 2);
|
|
5979
6047
|
__decorateClass([
|
|
5980
|
-
(0,
|
|
6048
|
+
(0, import_typeorm62.OneToMany)(
|
|
5981
6049
|
() => FreelancerExperience,
|
|
5982
6050
|
(freelancerExperience) => freelancerExperience.user
|
|
5983
6051
|
)
|
|
5984
6052
|
], User.prototype, "freelancerExperience", 2);
|
|
5985
6053
|
__decorateClass([
|
|
5986
|
-
(0,
|
|
6054
|
+
(0, import_typeorm62.OneToMany)(
|
|
5987
6055
|
() => FreelancerEducation,
|
|
5988
6056
|
(freelancerEducation) => freelancerEducation.user
|
|
5989
6057
|
)
|
|
5990
6058
|
], User.prototype, "freelancerEducation", 2);
|
|
5991
6059
|
__decorateClass([
|
|
5992
|
-
(0,
|
|
6060
|
+
(0, import_typeorm62.OneToMany)(
|
|
5993
6061
|
() => FreelancerProject,
|
|
5994
6062
|
(freelancerProject) => freelancerProject.user
|
|
5995
6063
|
)
|
|
5996
6064
|
], User.prototype, "freelancerProject", 2);
|
|
5997
6065
|
__decorateClass([
|
|
5998
|
-
(0,
|
|
6066
|
+
(0, import_typeorm62.OneToMany)(
|
|
5999
6067
|
() => FreelancerCaseStudy,
|
|
6000
6068
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6001
6069
|
)
|
|
6002
6070
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6003
6071
|
__decorateClass([
|
|
6004
|
-
(0,
|
|
6072
|
+
(0, import_typeorm62.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6005
6073
|
], User.prototype, "freelancerTool", 2);
|
|
6006
6074
|
__decorateClass([
|
|
6007
|
-
(0,
|
|
6075
|
+
(0, import_typeorm62.OneToMany)(
|
|
6008
6076
|
() => FreelancerFramework,
|
|
6009
6077
|
(freelancerFramework) => freelancerFramework.user
|
|
6010
6078
|
)
|
|
6011
6079
|
], User.prototype, "freelancerFramework", 2);
|
|
6012
6080
|
__decorateClass([
|
|
6013
|
-
(0,
|
|
6081
|
+
(0, import_typeorm62.OneToOne)(
|
|
6014
6082
|
() => FreelancerDeclaration,
|
|
6015
6083
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
6016
6084
|
)
|
|
6017
6085
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6018
6086
|
__decorateClass([
|
|
6019
|
-
(0,
|
|
6087
|
+
(0, import_typeorm62.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6020
6088
|
], User.prototype, "freelancerMcq", 2);
|
|
6021
6089
|
__decorateClass([
|
|
6022
|
-
(0,
|
|
6090
|
+
(0, import_typeorm62.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6023
6091
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6024
6092
|
__decorateClass([
|
|
6025
|
-
(0,
|
|
6093
|
+
(0, import_typeorm62.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6026
6094
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6027
6095
|
__decorateClass([
|
|
6028
|
-
(0,
|
|
6096
|
+
(0, import_typeorm62.OneToMany)(
|
|
6029
6097
|
() => F2fInterviewRescheduleRequest,
|
|
6030
6098
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6031
6099
|
)
|
|
6032
6100
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6033
6101
|
__decorateClass([
|
|
6034
|
-
(0,
|
|
6102
|
+
(0, import_typeorm62.OneToMany)(() => Job, (job) => job.user)
|
|
6035
6103
|
], User.prototype, "jobs", 2);
|
|
6036
6104
|
__decorateClass([
|
|
6037
|
-
(0,
|
|
6105
|
+
(0, import_typeorm62.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6038
6106
|
], User.prototype, "jobApplications", 2);
|
|
6039
6107
|
__decorateClass([
|
|
6040
|
-
(0,
|
|
6108
|
+
(0, import_typeorm62.OneToMany)(() => Interview, (interview) => interview.user)
|
|
6041
6109
|
], User.prototype, "interviews", 2);
|
|
6042
6110
|
__decorateClass([
|
|
6043
|
-
(0,
|
|
6111
|
+
(0, import_typeorm62.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6044
6112
|
], User.prototype, "bankDetail", 2);
|
|
6045
6113
|
__decorateClass([
|
|
6046
|
-
(0,
|
|
6114
|
+
(0, import_typeorm62.OneToMany)(
|
|
6047
6115
|
() => SystemPreference,
|
|
6048
6116
|
(systemPreference) => systemPreference.user
|
|
6049
6117
|
)
|
|
6050
6118
|
], User.prototype, "systemPreference", 2);
|
|
6051
6119
|
__decorateClass([
|
|
6052
|
-
(0,
|
|
6120
|
+
(0, import_typeorm62.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
6053
6121
|
], User.prototype, "givenRatings", 2);
|
|
6054
6122
|
__decorateClass([
|
|
6055
|
-
(0,
|
|
6123
|
+
(0, import_typeorm62.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
6056
6124
|
], User.prototype, "receivedRatings", 2);
|
|
6057
6125
|
__decorateClass([
|
|
6058
|
-
(0,
|
|
6126
|
+
(0, import_typeorm62.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6059
6127
|
], User.prototype, "adminUserRoles", 2);
|
|
6060
6128
|
__decorateClass([
|
|
6061
|
-
(0,
|
|
6129
|
+
(0, import_typeorm62.OneToMany)(() => Contract, (contract) => contract.client)
|
|
6062
6130
|
], User.prototype, "clientContracts", 2);
|
|
6063
6131
|
__decorateClass([
|
|
6064
|
-
(0,
|
|
6132
|
+
(0, import_typeorm62.OneToMany)(() => Hiring, (hiring) => hiring.client)
|
|
6133
|
+
], User.prototype, "clientHirings", 2);
|
|
6134
|
+
__decorateClass([
|
|
6135
|
+
(0, import_typeorm62.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6065
6136
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6066
6137
|
__decorateClass([
|
|
6067
|
-
(0,
|
|
6138
|
+
(0, import_typeorm62.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
6068
6139
|
], User.prototype, "freelancerContracts", 2);
|
|
6069
6140
|
__decorateClass([
|
|
6070
|
-
(0,
|
|
6141
|
+
(0, import_typeorm62.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
|
|
6142
|
+
], User.prototype, "freelancerHirings", 2);
|
|
6143
|
+
__decorateClass([
|
|
6144
|
+
(0, import_typeorm62.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6071
6145
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6072
6146
|
__decorateClass([
|
|
6073
|
-
(0,
|
|
6147
|
+
(0, import_typeorm62.OneToOne)(() => Signature, (signature) => signature.user)
|
|
6074
6148
|
], User.prototype, "signatures", 2);
|
|
6075
6149
|
__decorateClass([
|
|
6076
|
-
(0,
|
|
6150
|
+
(0, import_typeorm62.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
|
|
6077
6151
|
], User.prototype, "clientTimesheets", 2);
|
|
6078
6152
|
__decorateClass([
|
|
6079
|
-
(0,
|
|
6153
|
+
(0, import_typeorm62.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6080
6154
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6081
6155
|
__decorateClass([
|
|
6082
|
-
(0,
|
|
6156
|
+
(0, import_typeorm62.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6083
6157
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6084
6158
|
__decorateClass([
|
|
6085
|
-
(0,
|
|
6159
|
+
(0, import_typeorm62.OneToMany)(() => Invoice, (invoice) => invoice.client)
|
|
6086
6160
|
], User.prototype, "clientInvoice", 2);
|
|
6087
6161
|
__decorateClass([
|
|
6088
|
-
(0,
|
|
6162
|
+
(0, import_typeorm62.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6089
6163
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6090
6164
|
__decorateClass([
|
|
6091
|
-
(0,
|
|
6165
|
+
(0, import_typeorm62.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
|
|
6092
6166
|
], User.prototype, "freelancerInvoice", 2);
|
|
6093
6167
|
__decorateClass([
|
|
6094
|
-
(0,
|
|
6168
|
+
(0, import_typeorm62.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6095
6169
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6096
6170
|
__decorateClass([
|
|
6097
|
-
(0,
|
|
6171
|
+
(0, import_typeorm62.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6098
6172
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6099
6173
|
__decorateClass([
|
|
6100
|
-
(0,
|
|
6174
|
+
(0, import_typeorm62.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6101
6175
|
], User.prototype, "initiatedDisputes", 2);
|
|
6102
6176
|
__decorateClass([
|
|
6103
|
-
(0,
|
|
6177
|
+
(0, import_typeorm62.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6104
6178
|
], User.prototype, "respondentDisputes", 2);
|
|
6105
6179
|
__decorateClass([
|
|
6106
|
-
(0,
|
|
6180
|
+
(0, import_typeorm62.OneToOne)(() => Wallet, (wallet) => wallet.user)
|
|
6107
6181
|
], User.prototype, "wallet", 2);
|
|
6108
6182
|
__decorateClass([
|
|
6109
|
-
(0,
|
|
6183
|
+
(0, import_typeorm62.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6110
6184
|
], User.prototype, "stripeTransactions", 2);
|
|
6111
6185
|
__decorateClass([
|
|
6112
|
-
(0,
|
|
6186
|
+
(0, import_typeorm62.OneToMany)(() => Dispute, (dispute) => dispute.client)
|
|
6113
6187
|
], User.prototype, "clientDisputes", 2);
|
|
6114
6188
|
__decorateClass([
|
|
6115
|
-
(0,
|
|
6189
|
+
(0, import_typeorm62.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
|
|
6116
6190
|
], User.prototype, "freelancerDisputes", 2);
|
|
6117
6191
|
User = __decorateClass([
|
|
6118
|
-
(0,
|
|
6192
|
+
(0, import_typeorm62.Entity)("users")
|
|
6119
6193
|
], User);
|
|
6120
6194
|
|
|
6121
6195
|
// src/entities/rating.entity.ts
|
|
@@ -6127,36 +6201,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
6127
6201
|
var Rating = class extends BaseEntity {
|
|
6128
6202
|
};
|
|
6129
6203
|
__decorateClass([
|
|
6130
|
-
(0,
|
|
6131
|
-
(0,
|
|
6204
|
+
(0, import_typeorm63.Column)({ name: "reviewer_id", type: "integer" }),
|
|
6205
|
+
(0, import_typeorm63.Index)()
|
|
6132
6206
|
], Rating.prototype, "reviewer_id", 2);
|
|
6133
6207
|
__decorateClass([
|
|
6134
|
-
(0,
|
|
6135
|
-
(0,
|
|
6208
|
+
(0, import_typeorm63.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
6209
|
+
(0, import_typeorm63.JoinColumn)({ name: "reviewer_id" })
|
|
6136
6210
|
], Rating.prototype, "reviewer", 2);
|
|
6137
6211
|
__decorateClass([
|
|
6138
|
-
(0,
|
|
6139
|
-
(0,
|
|
6212
|
+
(0, import_typeorm63.Column)({ name: "reviewee_id", type: "integer" }),
|
|
6213
|
+
(0, import_typeorm63.Index)()
|
|
6140
6214
|
], Rating.prototype, "reviewee_id", 2);
|
|
6141
6215
|
__decorateClass([
|
|
6142
|
-
(0,
|
|
6143
|
-
(0,
|
|
6216
|
+
(0, import_typeorm63.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
6217
|
+
(0, import_typeorm63.JoinColumn)({ name: "reviewee_id" })
|
|
6144
6218
|
], Rating.prototype, "reviewee", 2);
|
|
6145
6219
|
__decorateClass([
|
|
6146
|
-
(0,
|
|
6220
|
+
(0, import_typeorm63.Column)({
|
|
6147
6221
|
type: "enum",
|
|
6148
6222
|
enum: RatingTypeEnum,
|
|
6149
6223
|
nullable: true
|
|
6150
6224
|
})
|
|
6151
6225
|
], Rating.prototype, "ratingType", 2);
|
|
6152
6226
|
__decorateClass([
|
|
6153
|
-
(0,
|
|
6227
|
+
(0, import_typeorm63.Column)({ type: "integer", nullable: true })
|
|
6154
6228
|
], Rating.prototype, "rating", 2);
|
|
6155
6229
|
__decorateClass([
|
|
6156
|
-
(0,
|
|
6230
|
+
(0, import_typeorm63.Column)({ type: "text", nullable: true })
|
|
6157
6231
|
], Rating.prototype, "review", 2);
|
|
6158
6232
|
Rating = __decorateClass([
|
|
6159
|
-
(0,
|
|
6233
|
+
(0, import_typeorm63.Entity)("ratings")
|
|
6160
6234
|
], Rating);
|
|
6161
6235
|
|
|
6162
6236
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -6947,6 +7021,8 @@ var ADMIN_JOB_PATTERN = {
|
|
|
6947
7021
|
adminFetchJobById: "admin.fetch.job.by.id",
|
|
6948
7022
|
adminCreateJob: "admin.create.job",
|
|
6949
7023
|
adminUpdateJob: "admin.update.job",
|
|
7024
|
+
adminCreateJobV2: "admin.create.job.v2",
|
|
7025
|
+
adminUpdateJobV2: "admin.update.job.v2",
|
|
6950
7026
|
adminDeleteJob: "admin.delete.job",
|
|
6951
7027
|
adminCountJob: "admin.count.job",
|
|
6952
7028
|
adminFetchGraphCount: "admin.fetch.graph.count"
|
|
@@ -7146,6 +7222,194 @@ __decorateClass([
|
|
|
7146
7222
|
(0, import_class_validator63.IsInt)({ message: "Client ID must be a valid integer." })
|
|
7147
7223
|
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
7148
7224
|
|
|
7225
|
+
// src/modules/job-admin/dto/admin-job-basic-information-v2.dto.ts
|
|
7226
|
+
var import_class_validator64 = require("class-validator");
|
|
7227
|
+
var import_class_transformer14 = require("class-transformer");
|
|
7228
|
+
var JobLocationAdminEnumDto = /* @__PURE__ */ ((JobLocationAdminEnumDto2) => {
|
|
7229
|
+
JobLocationAdminEnumDto2["ONSITE"] = "ONSITE";
|
|
7230
|
+
JobLocationAdminEnumDto2["REMOTE"] = "REMOTE";
|
|
7231
|
+
JobLocationAdminEnumDto2["HYBRID"] = "HYBRID";
|
|
7232
|
+
return JobLocationAdminEnumDto2;
|
|
7233
|
+
})(JobLocationAdminEnumDto || {});
|
|
7234
|
+
var EmploymentTypeAdminEnumDto = /* @__PURE__ */ ((EmploymentTypeAdminEnumDto2) => {
|
|
7235
|
+
EmploymentTypeAdminEnumDto2["FULLTIME"] = "FULLTIME";
|
|
7236
|
+
EmploymentTypeAdminEnumDto2["PARTTIME"] = "PARTTIME";
|
|
7237
|
+
EmploymentTypeAdminEnumDto2["BOTH"] = "BOTH";
|
|
7238
|
+
EmploymentTypeAdminEnumDto2["HOURLY"] = "HOURLY";
|
|
7239
|
+
EmploymentTypeAdminEnumDto2["FREELANCE"] = "FREELANCE";
|
|
7240
|
+
EmploymentTypeAdminEnumDto2["FTE"] = "FTE";
|
|
7241
|
+
return EmploymentTypeAdminEnumDto2;
|
|
7242
|
+
})(EmploymentTypeAdminEnumDto || {});
|
|
7243
|
+
var typeOfExperienceAdminEnumDto = /* @__PURE__ */ ((typeOfExperienceAdminEnumDto2) => {
|
|
7244
|
+
typeOfExperienceAdminEnumDto2["SINGLE"] = "SINGLE";
|
|
7245
|
+
typeOfExperienceAdminEnumDto2["RANGE"] = "RANGE";
|
|
7246
|
+
return typeOfExperienceAdminEnumDto2;
|
|
7247
|
+
})(typeOfExperienceAdminEnumDto || {});
|
|
7248
|
+
var JobLocationAdminDto = class {
|
|
7249
|
+
};
|
|
7250
|
+
__decorateClass([
|
|
7251
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7252
|
+
(0, import_class_validator64.IsNumber)()
|
|
7253
|
+
], JobLocationAdminDto.prototype, "countryId", 2);
|
|
7254
|
+
__decorateClass([
|
|
7255
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7256
|
+
(0, import_class_validator64.IsNumber)()
|
|
7257
|
+
], JobLocationAdminDto.prototype, "stateId", 2);
|
|
7258
|
+
__decorateClass([
|
|
7259
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7260
|
+
(0, import_class_validator64.IsNumber)()
|
|
7261
|
+
], JobLocationAdminDto.prototype, "cityId", 2);
|
|
7262
|
+
var AdminJobBasicInformationV2Dto = class {
|
|
7263
|
+
constructor() {
|
|
7264
|
+
this.isDraft = false;
|
|
7265
|
+
}
|
|
7266
|
+
};
|
|
7267
|
+
__decorateClass([
|
|
7268
|
+
(0, import_class_validator64.IsInt)({ message: "Client ID must be a valid integer." })
|
|
7269
|
+
], AdminJobBasicInformationV2Dto.prototype, "clientId", 2);
|
|
7270
|
+
__decorateClass([
|
|
7271
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7272
|
+
(0, import_class_transformer14.Type)(() => Boolean)
|
|
7273
|
+
], AdminJobBasicInformationV2Dto.prototype, "isDraft", 2);
|
|
7274
|
+
__decorateClass([
|
|
7275
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Please enter job role" }),
|
|
7276
|
+
(0, import_class_validator64.IsString)({ message: "Job role must be a string" })
|
|
7277
|
+
], AdminJobBasicInformationV2Dto.prototype, "jobRole", 2);
|
|
7278
|
+
__decorateClass([
|
|
7279
|
+
(0, import_class_validator64.IsOptional)()
|
|
7280
|
+
], AdminJobBasicInformationV2Dto.prototype, "jobRoleCanonicalName", 2);
|
|
7281
|
+
__decorateClass([
|
|
7282
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7283
|
+
(0, import_class_validator64.IsString)({ message: "Project name must be a string" })
|
|
7284
|
+
], AdminJobBasicInformationV2Dto.prototype, "projectName", 2);
|
|
7285
|
+
__decorateClass([
|
|
7286
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7287
|
+
(0, import_class_validator64.IsString)({ message: "Note must be a string" })
|
|
7288
|
+
], AdminJobBasicInformationV2Dto.prototype, "note", 2);
|
|
7289
|
+
__decorateClass([
|
|
7290
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7291
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7292
|
+
(0, import_class_validator64.IsArray)({ message: "Skills must be an array" }),
|
|
7293
|
+
(0, import_class_validator64.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
7294
|
+
(0, import_class_validator64.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
7295
|
+
(0, import_class_transformer14.Type)(() => String)
|
|
7296
|
+
], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
|
|
7297
|
+
__decorateClass([
|
|
7298
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7299
|
+
(0, import_class_validator64.IsArray)({ message: "Good to have skills must be an array" }),
|
|
7300
|
+
(0, import_class_validator64.IsString)({ each: true, message: "Each skill must be a string" }),
|
|
7301
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7302
|
+
(0, import_class_transformer14.Type)(() => String)
|
|
7303
|
+
], AdminJobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
7304
|
+
__decorateClass([
|
|
7305
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7306
|
+
(0, import_class_validator64.IsArray)({ message: "locations must be an array" }),
|
|
7307
|
+
(0, import_class_validator64.ArrayNotEmpty)({ message: "Please select at least one location" }),
|
|
7308
|
+
(0, import_class_validator64.ValidateNested)({ each: true }),
|
|
7309
|
+
(0, import_class_transformer14.Type)(() => JobLocationAdminDto),
|
|
7310
|
+
(0, import_class_validator64.IsOptional)()
|
|
7311
|
+
], AdminJobBasicInformationV2Dto.prototype, "locations", 2);
|
|
7312
|
+
__decorateClass([
|
|
7313
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7314
|
+
(0, import_class_validator64.IsNumber)({}, { message: "Openings must be a number" }),
|
|
7315
|
+
(0, import_class_validator64.Min)(1, { message: "There must be at least 1 opening" }),
|
|
7316
|
+
(0, import_class_transformer14.Type)(() => Number)
|
|
7317
|
+
], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
|
|
7318
|
+
__decorateClass([
|
|
7319
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7320
|
+
(0, import_class_validator64.IsEnum)(JobLocationAdminEnumDto, {
|
|
7321
|
+
message: `Location must be one of: ${Object.values(JobLocationAdminEnumDto).join(
|
|
7322
|
+
", "
|
|
7323
|
+
)}`
|
|
7324
|
+
})
|
|
7325
|
+
], AdminJobBasicInformationV2Dto.prototype, "location", 2);
|
|
7326
|
+
__decorateClass([
|
|
7327
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7328
|
+
(0, import_class_validator64.IsEnum)(EmploymentTypeAdminEnumDto, {
|
|
7329
|
+
message: `Type of employment must be one of: ${Object.values(
|
|
7330
|
+
EmploymentTypeAdminEnumDto
|
|
7331
|
+
).join(", ")}`
|
|
7332
|
+
})
|
|
7333
|
+
], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
|
|
7334
|
+
__decorateClass([
|
|
7335
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7336
|
+
(0, import_class_validator64.IsString)({ message: "Currency must be a string" })
|
|
7337
|
+
], AdminJobBasicInformationV2Dto.prototype, "currency", 2);
|
|
7338
|
+
__decorateClass([
|
|
7339
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7340
|
+
(0, import_class_validator64.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
7341
|
+
(0, import_class_validator64.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
7342
|
+
(0, import_class_transformer14.Type)(() => Number)
|
|
7343
|
+
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
|
|
7344
|
+
__decorateClass([
|
|
7345
|
+
(0, import_class_validator64.IsOptional)()
|
|
7346
|
+
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryFrom", 2);
|
|
7347
|
+
__decorateClass([
|
|
7348
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7349
|
+
(0, import_class_validator64.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
7350
|
+
(0, import_class_validator64.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
7351
|
+
(0, import_class_transformer14.Type)(() => Number)
|
|
7352
|
+
], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
|
|
7353
|
+
__decorateClass([
|
|
7354
|
+
(0, import_class_validator64.IsOptional)()
|
|
7355
|
+
], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
|
|
7356
|
+
__decorateClass([
|
|
7357
|
+
(0, import_class_validator64.IsOptional)()
|
|
7358
|
+
], AdminJobBasicInformationV2Dto.prototype, "years", 2);
|
|
7359
|
+
__decorateClass([
|
|
7360
|
+
(0, import_class_validator64.IsOptional)()
|
|
7361
|
+
], AdminJobBasicInformationV2Dto.prototype, "months", 2);
|
|
7362
|
+
__decorateClass([
|
|
7363
|
+
(0, import_class_validator64.IsOptional)()
|
|
7364
|
+
], AdminJobBasicInformationV2Dto.prototype, "weeks", 2);
|
|
7365
|
+
__decorateClass([
|
|
7366
|
+
(0, import_class_validator64.IsOptional)()
|
|
7367
|
+
], AdminJobBasicInformationV2Dto.prototype, "days", 2);
|
|
7368
|
+
__decorateClass([
|
|
7369
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7370
|
+
(0, import_class_validator64.IsNumber)({}, { message: "Number of hours must be a number" }),
|
|
7371
|
+
(0, import_class_validator64.Min)(0, { message: "Number of hours cannot be negative" }),
|
|
7372
|
+
(0, import_class_validator64.Max)(40, { message: "Number of hours cannot exceed 40" }),
|
|
7373
|
+
(0, import_class_transformer14.Type)(() => Number)
|
|
7374
|
+
], AdminJobBasicInformationV2Dto.prototype, "numberOfHours", 2);
|
|
7375
|
+
__decorateClass([
|
|
7376
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7377
|
+
(0, import_class_validator64.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
7378
|
+
(0, import_class_validator64.IsOptional)()
|
|
7379
|
+
], AdminJobBasicInformationV2Dto.prototype, "candidateCommunicationSkills", 2);
|
|
7380
|
+
__decorateClass([
|
|
7381
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7382
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Please enter the academic qualification" }),
|
|
7383
|
+
(0, import_class_validator64.IsString)({ message: "Academic qualification must be a string" })
|
|
7384
|
+
], AdminJobBasicInformationV2Dto.prototype, "academicQualification", 2);
|
|
7385
|
+
__decorateClass([
|
|
7386
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7387
|
+
(0, import_class_validator64.IsEnum)(typeOfExperienceAdminEnumDto, {
|
|
7388
|
+
message: `Type of experience must be one of: ${Object.values(
|
|
7389
|
+
typeOfExperienceAdminEnumDto
|
|
7390
|
+
).join(", ")}`
|
|
7391
|
+
})
|
|
7392
|
+
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceType", 2);
|
|
7393
|
+
__decorateClass([
|
|
7394
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7395
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Please enter the years of experience" }),
|
|
7396
|
+
(0, import_class_validator64.IsString)({ message: "Years of experience must be a string" })
|
|
7397
|
+
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceFrom", 2);
|
|
7398
|
+
__decorateClass([
|
|
7399
|
+
(0, import_class_validator64.ValidateIf)((o) => !o.isDraft),
|
|
7400
|
+
(0, import_class_validator64.IsNotEmpty)({ message: "Please enter the years of experience upto" }),
|
|
7401
|
+
(0, import_class_validator64.IsString)({ message: "Years of experience must be a string" })
|
|
7402
|
+
], AdminJobBasicInformationV2Dto.prototype, "yearsOfExperienceTo", 2);
|
|
7403
|
+
__decorateClass([
|
|
7404
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7405
|
+
(0, import_class_validator64.IsString)({ message: "Business industry must be a string" })
|
|
7406
|
+
], AdminJobBasicInformationV2Dto.prototype, "businessIndustry", 2);
|
|
7407
|
+
__decorateClass([
|
|
7408
|
+
(0, import_class_validator64.IsOptional)(),
|
|
7409
|
+
(0, import_class_validator64.IsString)({ message: "Additional comment must be a string" }),
|
|
7410
|
+
(0, import_class_validator64.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
7411
|
+
], AdminJobBasicInformationV2Dto.prototype, "additionalComment", 2);
|
|
7412
|
+
|
|
7149
7413
|
// src/modules/lead/pattern/pattern.ts
|
|
7150
7414
|
var LEAD_PATTERN = {
|
|
7151
7415
|
fetchLead: "fetch.lead",
|
|
@@ -7153,7 +7417,7 @@ var LEAD_PATTERN = {
|
|
|
7153
7417
|
};
|
|
7154
7418
|
|
|
7155
7419
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
7156
|
-
var
|
|
7420
|
+
var import_class_validator65 = require("class-validator");
|
|
7157
7421
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
7158
7422
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
7159
7423
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -7162,23 +7426,23 @@ var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
|
7162
7426
|
var CreateLeadDto = class {
|
|
7163
7427
|
};
|
|
7164
7428
|
__decorateClass([
|
|
7165
|
-
(0,
|
|
7429
|
+
(0, import_class_validator65.IsString)({ message: "Name must be a string" })
|
|
7166
7430
|
], CreateLeadDto.prototype, "name", 2);
|
|
7167
7431
|
__decorateClass([
|
|
7168
|
-
(0,
|
|
7432
|
+
(0, import_class_validator65.IsEmail)({}, { message: "Invalid email address" })
|
|
7169
7433
|
], CreateLeadDto.prototype, "email", 2);
|
|
7170
7434
|
__decorateClass([
|
|
7171
|
-
(0,
|
|
7435
|
+
(0, import_class_validator65.IsString)({ message: "Mobile code must be a string (e.g., +1)" })
|
|
7172
7436
|
], CreateLeadDto.prototype, "mobileCode", 2);
|
|
7173
7437
|
__decorateClass([
|
|
7174
|
-
(0,
|
|
7438
|
+
(0, import_class_validator65.IsString)({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
7175
7439
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
7176
7440
|
__decorateClass([
|
|
7177
|
-
(0,
|
|
7178
|
-
(0,
|
|
7441
|
+
(0, import_class_validator65.IsOptional)(),
|
|
7442
|
+
(0, import_class_validator65.IsString)({ message: "Description must be a string" })
|
|
7179
7443
|
], CreateLeadDto.prototype, "description", 2);
|
|
7180
7444
|
__decorateClass([
|
|
7181
|
-
(0,
|
|
7445
|
+
(0, import_class_validator65.IsEnum)(CategoryEmumDto, {
|
|
7182
7446
|
message: `Type of category must be one of: ${Object.values(
|
|
7183
7447
|
CategoryEmumDto
|
|
7184
7448
|
).join(", ")}`
|
|
@@ -7198,46 +7462,46 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
7198
7462
|
};
|
|
7199
7463
|
|
|
7200
7464
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
7201
|
-
var
|
|
7465
|
+
var import_class_validator66 = require("class-validator");
|
|
7202
7466
|
var CreateAdminRoleDto = class {
|
|
7203
7467
|
};
|
|
7204
7468
|
__decorateClass([
|
|
7205
|
-
(0,
|
|
7206
|
-
(0,
|
|
7469
|
+
(0, import_class_validator66.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
7470
|
+
(0, import_class_validator66.IsString)({ message: "Role name must be a string." })
|
|
7207
7471
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
7208
7472
|
__decorateClass([
|
|
7209
|
-
(0,
|
|
7210
|
-
(0,
|
|
7473
|
+
(0, import_class_validator66.IsOptional)(),
|
|
7474
|
+
(0, import_class_validator66.IsString)({ message: "Role description must be a string." })
|
|
7211
7475
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7212
7476
|
|
|
7213
7477
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
7214
|
-
var
|
|
7478
|
+
var import_class_validator67 = require("class-validator");
|
|
7215
7479
|
var UpdateAdminRoleDto = class {
|
|
7216
7480
|
};
|
|
7217
7481
|
__decorateClass([
|
|
7218
|
-
(0,
|
|
7219
|
-
(0,
|
|
7482
|
+
(0, import_class_validator67.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
7483
|
+
(0, import_class_validator67.IsString)({ message: "Role name must be a string." })
|
|
7220
7484
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
7221
7485
|
__decorateClass([
|
|
7222
|
-
(0,
|
|
7223
|
-
(0,
|
|
7486
|
+
(0, import_class_validator67.IsOptional)(),
|
|
7487
|
+
(0, import_class_validator67.IsString)({ message: "Role description must be a string." })
|
|
7224
7488
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
7225
7489
|
__decorateClass([
|
|
7226
|
-
(0,
|
|
7227
|
-
(0,
|
|
7490
|
+
(0, import_class_validator67.IsOptional)(),
|
|
7491
|
+
(0, import_class_validator67.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
7228
7492
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
7229
7493
|
|
|
7230
7494
|
// src/modules/admin-role/dto/attach-permissions-to-role.dto.ts
|
|
7231
|
-
var
|
|
7495
|
+
var import_class_validator68 = require("class-validator");
|
|
7232
7496
|
var AttachPermissionsToRoleDto = class {
|
|
7233
7497
|
};
|
|
7234
7498
|
__decorateClass([
|
|
7235
|
-
(0,
|
|
7236
|
-
(0,
|
|
7499
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Please enter admin role ID." }),
|
|
7500
|
+
(0, import_class_validator68.IsString)({ message: "Role ID must be a string." })
|
|
7237
7501
|
], AttachPermissionsToRoleDto.prototype, "roleId", 2);
|
|
7238
7502
|
__decorateClass([
|
|
7239
|
-
(0,
|
|
7240
|
-
(0,
|
|
7503
|
+
(0, import_class_validator68.IsNotEmpty)({ message: "Please enter permission IDs." }),
|
|
7504
|
+
(0, import_class_validator68.IsString)({ message: "Permission IDs must be a comma-separated string." })
|
|
7241
7505
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
7242
7506
|
|
|
7243
7507
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
@@ -7263,8 +7527,8 @@ var CALENDLY_PATTERN = {
|
|
|
7263
7527
|
};
|
|
7264
7528
|
|
|
7265
7529
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
7266
|
-
var
|
|
7267
|
-
var
|
|
7530
|
+
var import_class_validator69 = require("class-validator");
|
|
7531
|
+
var import_class_transformer15 = require("class-transformer");
|
|
7268
7532
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
7269
7533
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
7270
7534
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -7275,107 +7539,107 @@ var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
|
7275
7539
|
var ExistingCandidateDto = class {
|
|
7276
7540
|
};
|
|
7277
7541
|
__decorateClass([
|
|
7278
|
-
(0,
|
|
7542
|
+
(0, import_class_validator69.IsUUID)()
|
|
7279
7543
|
], ExistingCandidateDto.prototype, "id", 2);
|
|
7280
7544
|
__decorateClass([
|
|
7281
|
-
(0,
|
|
7545
|
+
(0, import_class_validator69.IsEnum)(CandidateType, {
|
|
7282
7546
|
message: "type must be one of SHORTLISTED, APPLICATNTS, or RECOMMENDED"
|
|
7283
7547
|
})
|
|
7284
7548
|
], ExistingCandidateDto.prototype, "type", 2);
|
|
7285
7549
|
var NewCandidateDto = class {
|
|
7286
7550
|
};
|
|
7287
7551
|
__decorateClass([
|
|
7288
|
-
(0,
|
|
7289
|
-
(0,
|
|
7552
|
+
(0, import_class_validator69.IsNotEmpty)({ message: "Please enter the candidate name" }),
|
|
7553
|
+
(0, import_class_validator69.IsString)({ message: "Name must be a string" })
|
|
7290
7554
|
], NewCandidateDto.prototype, "name", 2);
|
|
7291
7555
|
__decorateClass([
|
|
7292
|
-
(0,
|
|
7556
|
+
(0, import_class_validator69.IsEmail)({}, { message: "Please enter a valid email." })
|
|
7293
7557
|
], NewCandidateDto.prototype, "email", 2);
|
|
7294
7558
|
__decorateClass([
|
|
7295
|
-
(0,
|
|
7559
|
+
(0, import_class_validator69.IsEnum)(CandidateType, {
|
|
7296
7560
|
message: "type must be NEW"
|
|
7297
7561
|
})
|
|
7298
7562
|
], NewCandidateDto.prototype, "type", 2);
|
|
7299
7563
|
var CandidatesDto = class {
|
|
7300
7564
|
};
|
|
7301
7565
|
__decorateClass([
|
|
7302
|
-
(0,
|
|
7303
|
-
(0,
|
|
7304
|
-
(0,
|
|
7305
|
-
(0,
|
|
7306
|
-
(0,
|
|
7566
|
+
(0, import_class_validator69.ValidateIf)((o) => o.exixtingCandidates?.length > 0),
|
|
7567
|
+
(0, import_class_validator69.IsArray)({ message: "Existing candidates should be an array." }),
|
|
7568
|
+
(0, import_class_validator69.ArrayNotEmpty)({ message: "Please select at least one candidate." }),
|
|
7569
|
+
(0, import_class_validator69.ValidateNested)({ each: true }),
|
|
7570
|
+
(0, import_class_transformer15.Type)(() => ExistingCandidateDto)
|
|
7307
7571
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
7308
7572
|
__decorateClass([
|
|
7309
|
-
(0,
|
|
7310
|
-
(0,
|
|
7311
|
-
(0,
|
|
7312
|
-
(0,
|
|
7313
|
-
(0,
|
|
7573
|
+
(0, import_class_validator69.ValidateIf)((o) => o.newCandidates?.length > 0),
|
|
7574
|
+
(0, import_class_validator69.IsArray)({ message: "New candidates should be an array." }),
|
|
7575
|
+
(0, import_class_validator69.ArrayNotEmpty)({ message: "Please add at least one candidate." }),
|
|
7576
|
+
(0, import_class_validator69.ValidateNested)({ each: true }),
|
|
7577
|
+
(0, import_class_transformer15.Type)(() => NewCandidateDto)
|
|
7314
7578
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
7315
7579
|
var InterviewInviteDto = class {
|
|
7316
7580
|
};
|
|
7317
7581
|
__decorateClass([
|
|
7318
|
-
(0,
|
|
7582
|
+
(0, import_class_validator69.IsUUID)()
|
|
7319
7583
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
7320
7584
|
__decorateClass([
|
|
7321
|
-
(0,
|
|
7322
|
-
(0,
|
|
7585
|
+
(0, import_class_validator69.ValidateNested)({ each: true }),
|
|
7586
|
+
(0, import_class_transformer15.Type)(() => CandidatesDto)
|
|
7323
7587
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
7324
7588
|
|
|
7325
7589
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
7326
|
-
var
|
|
7590
|
+
var import_class_validator70 = require("class-validator");
|
|
7327
7591
|
var CreateF2FInterviewDto = class {
|
|
7328
7592
|
};
|
|
7329
7593
|
__decorateClass([
|
|
7330
|
-
(0,
|
|
7331
|
-
(0,
|
|
7594
|
+
(0, import_class_validator70.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
7595
|
+
(0, import_class_validator70.IsNotEmpty)({ message: "Invitee email is required." })
|
|
7332
7596
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
7333
7597
|
__decorateClass([
|
|
7334
|
-
(0,
|
|
7335
|
-
(0,
|
|
7598
|
+
(0, import_class_validator70.IsString)({ message: "Invitee name must be a string." }),
|
|
7599
|
+
(0, import_class_validator70.IsNotEmpty)({ message: "Invitee name is required." })
|
|
7336
7600
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
7337
7601
|
__decorateClass([
|
|
7338
|
-
(0,
|
|
7602
|
+
(0, import_class_validator70.IsNumber)({}, { message: "Interview ID must be a number." })
|
|
7339
7603
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
7340
7604
|
__decorateClass([
|
|
7341
|
-
(0,
|
|
7605
|
+
(0, import_class_validator70.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
7342
7606
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
7343
7607
|
|
|
7344
7608
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
7345
|
-
var
|
|
7609
|
+
var import_class_validator71 = require("class-validator");
|
|
7346
7610
|
var CreateF2FInterviewDirectDto = class {
|
|
7347
7611
|
};
|
|
7348
7612
|
__decorateClass([
|
|
7349
|
-
(0,
|
|
7350
|
-
(0,
|
|
7613
|
+
(0, import_class_validator71.IsEmail)({}, { message: "Please enter a valid email address." }),
|
|
7614
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Invitee email is required." })
|
|
7351
7615
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
7352
7616
|
__decorateClass([
|
|
7353
|
-
(0,
|
|
7354
|
-
(0,
|
|
7617
|
+
(0, import_class_validator71.IsString)({ message: "Invitee name must be a string." }),
|
|
7618
|
+
(0, import_class_validator71.IsNotEmpty)({ message: "Invitee name is required." })
|
|
7355
7619
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
7356
7620
|
__decorateClass([
|
|
7357
|
-
(0,
|
|
7621
|
+
(0, import_class_validator71.IsNumber)({}, { message: "Job ID must be a number." })
|
|
7358
7622
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
7359
7623
|
__decorateClass([
|
|
7360
|
-
(0,
|
|
7624
|
+
(0, import_class_validator71.IsNumber)({}, { message: "Candidate ID must be a number." })
|
|
7361
7625
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
7362
7626
|
|
|
7363
7627
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
7364
|
-
var
|
|
7628
|
+
var import_class_validator72 = require("class-validator");
|
|
7365
7629
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
7366
7630
|
};
|
|
7367
7631
|
__decorateClass([
|
|
7368
|
-
(0,
|
|
7632
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "F2F Interview ID is required." })
|
|
7369
7633
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
7370
7634
|
__decorateClass([
|
|
7371
|
-
(0,
|
|
7635
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Rescheduled date is required." })
|
|
7372
7636
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
7373
7637
|
__decorateClass([
|
|
7374
|
-
(0,
|
|
7375
|
-
(0,
|
|
7638
|
+
(0, import_class_validator72.IsString)({ message: "Rescheduled slot must be a string." }),
|
|
7639
|
+
(0, import_class_validator72.IsNotEmpty)({ message: "Rescheduled slot is required." })
|
|
7376
7640
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
7377
7641
|
__decorateClass([
|
|
7378
|
-
(0,
|
|
7642
|
+
(0, import_class_validator72.IsString)({ message: "Freelancer reason must be a string." })
|
|
7379
7643
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "freelancerRequestReason", 2);
|
|
7380
7644
|
|
|
7381
7645
|
// src/modules/contract/pattern/pattern.ts
|
|
@@ -7399,43 +7663,43 @@ var CONTRACT_PATTERN = {
|
|
|
7399
7663
|
};
|
|
7400
7664
|
|
|
7401
7665
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
7402
|
-
var
|
|
7403
|
-
var
|
|
7666
|
+
var import_class_validator73 = require("class-validator");
|
|
7667
|
+
var import_class_transformer16 = require("class-transformer");
|
|
7404
7668
|
var SignContractForClientDto = class {
|
|
7405
7669
|
};
|
|
7406
7670
|
__decorateClass([
|
|
7407
|
-
(0,
|
|
7408
|
-
(0,
|
|
7409
|
-
(0,
|
|
7671
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Job Id is required." }),
|
|
7672
|
+
(0, import_class_transformer16.Type)(() => Number),
|
|
7673
|
+
(0, import_class_validator73.IsNumber)({}, { message: "Job ID must be a number." })
|
|
7410
7674
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
7411
7675
|
__decorateClass([
|
|
7412
|
-
(0,
|
|
7413
|
-
(0,
|
|
7414
|
-
(0,
|
|
7676
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Freelancer ID is required." }),
|
|
7677
|
+
(0, import_class_transformer16.Type)(() => Number),
|
|
7678
|
+
(0, import_class_validator73.IsNumber)({}, { message: "Freelancer ID must be a number." })
|
|
7415
7679
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
7416
7680
|
__decorateClass([
|
|
7417
|
-
(0,
|
|
7418
|
-
(0,
|
|
7681
|
+
(0, import_class_validator73.IsNotEmpty)({ message: "Contract type is required." }),
|
|
7682
|
+
(0, import_class_validator73.IsEnum)(ContractTypeEnum)
|
|
7419
7683
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
7420
7684
|
|
|
7421
7685
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
7422
|
-
var
|
|
7423
|
-
var
|
|
7686
|
+
var import_class_validator74 = require("class-validator");
|
|
7687
|
+
var import_class_transformer17 = require("class-transformer");
|
|
7424
7688
|
var SignContractForFreelancerDto = class {
|
|
7425
7689
|
};
|
|
7426
7690
|
__decorateClass([
|
|
7427
|
-
(0,
|
|
7428
|
-
(0,
|
|
7429
|
-
(0,
|
|
7691
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Job Id is required." }),
|
|
7692
|
+
(0, import_class_transformer17.Type)(() => Number),
|
|
7693
|
+
(0, import_class_validator74.IsNumber)({}, { message: "Job ID must be a number." })
|
|
7430
7694
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
7431
7695
|
__decorateClass([
|
|
7432
|
-
(0,
|
|
7433
|
-
(0,
|
|
7434
|
-
(0,
|
|
7696
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Client ID is required." }),
|
|
7697
|
+
(0, import_class_transformer17.Type)(() => Number),
|
|
7698
|
+
(0, import_class_validator74.IsNumber)({}, { message: "Client ID must be a number." })
|
|
7435
7699
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
7436
7700
|
__decorateClass([
|
|
7437
|
-
(0,
|
|
7438
|
-
(0,
|
|
7701
|
+
(0, import_class_validator74.IsNotEmpty)({ message: "Contract type is required." }),
|
|
7702
|
+
(0, import_class_validator74.IsEnum)(ContractTypeEnum)
|
|
7439
7703
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
7440
7704
|
|
|
7441
7705
|
// src/modules/stripe/pattern/pattern.ts
|
|
@@ -7453,11 +7717,11 @@ var STRIPE_PATTERN = {
|
|
|
7453
7717
|
};
|
|
7454
7718
|
|
|
7455
7719
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
7456
|
-
var
|
|
7720
|
+
var import_class_validator75 = require("class-validator");
|
|
7457
7721
|
var CreateCheckoutSessionDto = class {
|
|
7458
7722
|
};
|
|
7459
7723
|
__decorateClass([
|
|
7460
|
-
(0,
|
|
7724
|
+
(0, import_class_validator75.IsNotEmpty)({ message: "Amount is required" })
|
|
7461
7725
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
7462
7726
|
|
|
7463
7727
|
// src/modules/timesheet/pattern/pattern.ts
|
|
@@ -7478,99 +7742,99 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
7478
7742
|
};
|
|
7479
7743
|
|
|
7480
7744
|
// src/modules/timesheet/dto/create-freelancer-timesheet.dto.ts
|
|
7481
|
-
var
|
|
7745
|
+
var import_class_validator76 = require("class-validator");
|
|
7482
7746
|
var CreateFreelancerTimesheetDto = class {
|
|
7483
7747
|
};
|
|
7484
7748
|
__decorateClass([
|
|
7485
|
-
(0,
|
|
7486
|
-
(0,
|
|
7749
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "Job id is required" }),
|
|
7750
|
+
(0, import_class_validator76.IsNumber)({}, { message: "Job id must be a number" })
|
|
7487
7751
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7488
7752
|
__decorateClass([
|
|
7489
|
-
(0,
|
|
7490
|
-
(0,
|
|
7753
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "start date is required" }),
|
|
7754
|
+
(0, import_class_validator76.IsDateString)()
|
|
7491
7755
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
7492
7756
|
__decorateClass([
|
|
7493
|
-
(0,
|
|
7494
|
-
(0,
|
|
7757
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "end date is required" }),
|
|
7758
|
+
(0, import_class_validator76.IsDateString)()
|
|
7495
7759
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
7496
7760
|
__decorateClass([
|
|
7497
|
-
(0,
|
|
7498
|
-
(0,
|
|
7761
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "start time is required" }),
|
|
7762
|
+
(0, import_class_validator76.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7499
7763
|
message: "startTime must be in HH:mm:ss format"
|
|
7500
7764
|
})
|
|
7501
7765
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
7502
7766
|
__decorateClass([
|
|
7503
|
-
(0,
|
|
7504
|
-
(0,
|
|
7767
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "end time is required" }),
|
|
7768
|
+
(0, import_class_validator76.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7505
7769
|
message: "endTime must be in HH:mm:ss format"
|
|
7506
7770
|
})
|
|
7507
7771
|
], CreateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
7508
7772
|
__decorateClass([
|
|
7509
|
-
(0,
|
|
7510
|
-
(0,
|
|
7773
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7774
|
+
(0, import_class_validator76.IsInt)()
|
|
7511
7775
|
], CreateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
7512
7776
|
__decorateClass([
|
|
7513
|
-
(0,
|
|
7514
|
-
(0,
|
|
7777
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7778
|
+
(0, import_class_validator76.IsString)()
|
|
7515
7779
|
], CreateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
7516
7780
|
__decorateClass([
|
|
7517
|
-
(0,
|
|
7518
|
-
(0,
|
|
7781
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7782
|
+
(0, import_class_validator76.IsString)()
|
|
7519
7783
|
], CreateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
7520
7784
|
__decorateClass([
|
|
7521
|
-
(0,
|
|
7522
|
-
(0,
|
|
7785
|
+
(0, import_class_validator76.IsOptional)(),
|
|
7786
|
+
(0, import_class_validator76.IsString)()
|
|
7523
7787
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
7524
7788
|
__decorateClass([
|
|
7525
|
-
(0,
|
|
7789
|
+
(0, import_class_validator76.IsNotEmpty)({ message: "Description is required" })
|
|
7526
7790
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
7527
7791
|
|
|
7528
7792
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
7529
|
-
var
|
|
7793
|
+
var import_class_validator77 = require("class-validator");
|
|
7530
7794
|
var UpdateFreelancerTimesheetDto = class {
|
|
7531
7795
|
};
|
|
7532
7796
|
__decorateClass([
|
|
7533
|
-
(0,
|
|
7534
|
-
(0,
|
|
7797
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "Job id is required" }),
|
|
7798
|
+
(0, import_class_validator77.IsNumber)({}, { message: "Job id must be a number" })
|
|
7535
7799
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
7536
7800
|
__decorateClass([
|
|
7537
|
-
(0,
|
|
7538
|
-
(0,
|
|
7801
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "start date is required" }),
|
|
7802
|
+
(0, import_class_validator77.IsDateString)()
|
|
7539
7803
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
7540
7804
|
__decorateClass([
|
|
7541
|
-
(0,
|
|
7542
|
-
(0,
|
|
7805
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "end date is required" }),
|
|
7806
|
+
(0, import_class_validator77.IsDateString)()
|
|
7543
7807
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
7544
7808
|
__decorateClass([
|
|
7545
|
-
(0,
|
|
7546
|
-
(0,
|
|
7809
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "start time is required" }),
|
|
7810
|
+
(0, import_class_validator77.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7547
7811
|
message: "startTime must be in HH:mm:ss format"
|
|
7548
7812
|
})
|
|
7549
7813
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
7550
7814
|
__decorateClass([
|
|
7551
|
-
(0,
|
|
7552
|
-
(0,
|
|
7815
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "end time is required" }),
|
|
7816
|
+
(0, import_class_validator77.Matches)(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
7553
7817
|
message: "endTime must be in HH:mm:ss format"
|
|
7554
7818
|
})
|
|
7555
7819
|
], UpdateFreelancerTimesheetDto.prototype, "endTime", 2);
|
|
7556
7820
|
__decorateClass([
|
|
7557
|
-
(0,
|
|
7558
|
-
(0,
|
|
7821
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7822
|
+
(0, import_class_validator77.IsInt)()
|
|
7559
7823
|
], UpdateFreelancerTimesheetDto.prototype, "taskId", 2);
|
|
7560
7824
|
__decorateClass([
|
|
7561
|
-
(0,
|
|
7562
|
-
(0,
|
|
7825
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7826
|
+
(0, import_class_validator77.IsString)()
|
|
7563
7827
|
], UpdateFreelancerTimesheetDto.prototype, "projectName", 2);
|
|
7564
7828
|
__decorateClass([
|
|
7565
|
-
(0,
|
|
7566
|
-
(0,
|
|
7829
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7830
|
+
(0, import_class_validator77.IsString)()
|
|
7567
7831
|
], UpdateFreelancerTimesheetDto.prototype, "deliverable", 2);
|
|
7568
7832
|
__decorateClass([
|
|
7569
|
-
(0,
|
|
7570
|
-
(0,
|
|
7833
|
+
(0, import_class_validator77.IsOptional)(),
|
|
7834
|
+
(0, import_class_validator77.IsString)()
|
|
7571
7835
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
7572
7836
|
__decorateClass([
|
|
7573
|
-
(0,
|
|
7837
|
+
(0, import_class_validator77.IsNotEmpty)({ message: "Description is required" })
|
|
7574
7838
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
7575
7839
|
|
|
7576
7840
|
// src/modules/invoice/pattern/pattern.ts
|
|
@@ -7585,54 +7849,54 @@ var INVOICE_PATTERN = {
|
|
|
7585
7849
|
};
|
|
7586
7850
|
|
|
7587
7851
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
7588
|
-
var
|
|
7852
|
+
var import_class_validator78 = require("class-validator");
|
|
7589
7853
|
var UpdateInvoiceStatusDto = class {
|
|
7590
7854
|
};
|
|
7591
7855
|
__decorateClass([
|
|
7592
|
-
(0,
|
|
7593
|
-
(0,
|
|
7856
|
+
(0, import_class_validator78.IsNotEmpty)({ message: "Please provide invoice status." }),
|
|
7857
|
+
(0, import_class_validator78.IsEnum)(InvoiceStatusEnum, {
|
|
7594
7858
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
7595
7859
|
})
|
|
7596
7860
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
7597
7861
|
|
|
7598
7862
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
7599
|
-
var
|
|
7600
|
-
var
|
|
7863
|
+
var import_class_validator79 = require("class-validator");
|
|
7864
|
+
var import_class_transformer18 = require("class-transformer");
|
|
7601
7865
|
var CreateDisputeDto = class {
|
|
7602
7866
|
};
|
|
7603
7867
|
__decorateClass([
|
|
7604
|
-
(0,
|
|
7605
|
-
(0,
|
|
7606
|
-
(0,
|
|
7868
|
+
(0, import_class_validator79.ValidateIf)((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
7869
|
+
(0, import_class_validator79.IsNumber)({}, { message: "Client id must be a number" }),
|
|
7870
|
+
(0, import_class_transformer18.Type)(() => Number)
|
|
7607
7871
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
7608
7872
|
__decorateClass([
|
|
7609
|
-
(0,
|
|
7610
|
-
(0,
|
|
7611
|
-
(0,
|
|
7873
|
+
(0, import_class_validator79.ValidateIf)((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
7874
|
+
(0, import_class_validator79.IsNumber)({}, { message: "Freelancer id must be a number" }),
|
|
7875
|
+
(0, import_class_transformer18.Type)(() => Number)
|
|
7612
7876
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
7613
7877
|
__decorateClass([
|
|
7614
|
-
(0,
|
|
7615
|
-
(0,
|
|
7616
|
-
(0,
|
|
7878
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Please select dispute type." }),
|
|
7879
|
+
(0, import_class_validator79.IsString)(),
|
|
7880
|
+
(0, import_class_validator79.IsIn)(["JOB", "INVOICE"])
|
|
7617
7881
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
7618
7882
|
__decorateClass([
|
|
7619
|
-
(0,
|
|
7620
|
-
(0,
|
|
7883
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Please provide initiator type." }),
|
|
7884
|
+
(0, import_class_validator79.IsString)()
|
|
7621
7885
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
7622
7886
|
__decorateClass([
|
|
7623
|
-
(0,
|
|
7624
|
-
(0,
|
|
7625
|
-
(0,
|
|
7887
|
+
(0, import_class_validator79.IsNotEmpty)({ message: "Please enter description." }),
|
|
7888
|
+
(0, import_class_validator79.IsString)({ message: "Description must be a string" }),
|
|
7889
|
+
(0, import_class_validator79.MaxLength)(500, { message: "Description must not exceed 500 characters" })
|
|
7626
7890
|
], CreateDisputeDto.prototype, "description", 2);
|
|
7627
7891
|
__decorateClass([
|
|
7628
|
-
(0,
|
|
7629
|
-
(0,
|
|
7630
|
-
(0,
|
|
7892
|
+
(0, import_class_validator79.IsOptional)(),
|
|
7893
|
+
(0, import_class_validator79.IsString)({ message: "Comment must be a string" }),
|
|
7894
|
+
(0, import_class_validator79.MaxLength)(500, { message: "Comment must not exceed 500 characters" })
|
|
7631
7895
|
], CreateDisputeDto.prototype, "comment", 2);
|
|
7632
7896
|
__decorateClass([
|
|
7633
|
-
(0,
|
|
7634
|
-
(0,
|
|
7635
|
-
(0,
|
|
7897
|
+
(0, import_class_validator79.IsOptional)(),
|
|
7898
|
+
(0, import_class_validator79.IsObject)({ message: "Dynamic fields must be a valid object" }),
|
|
7899
|
+
(0, import_class_transformer18.Transform)(({ value }) => {
|
|
7636
7900
|
if (typeof value === "string") {
|
|
7637
7901
|
try {
|
|
7638
7902
|
return JSON.parse(value);
|
|
@@ -7645,14 +7909,14 @@ __decorateClass([
|
|
|
7645
7909
|
], CreateDisputeDto.prototype, "dynamicFields", 2);
|
|
7646
7910
|
|
|
7647
7911
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
7648
|
-
var
|
|
7912
|
+
var import_class_validator80 = require("class-validator");
|
|
7649
7913
|
var AiInterviewQuestionGenerateDto = class {
|
|
7650
7914
|
};
|
|
7651
7915
|
__decorateClass([
|
|
7652
|
-
(0,
|
|
7916
|
+
(0, import_class_validator80.IsNotEmpty)({ message: "Please enter job description." })
|
|
7653
7917
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
7654
7918
|
__decorateClass([
|
|
7655
|
-
(0,
|
|
7919
|
+
(0, import_class_validator80.IsNotEmpty)({ message: "Please enter number of questions." })
|
|
7656
7920
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
7657
7921
|
|
|
7658
7922
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -8016,11 +8280,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
8016
8280
|
};
|
|
8017
8281
|
|
|
8018
8282
|
// src/entities/sequence-generator.entity.ts
|
|
8019
|
-
var
|
|
8283
|
+
var import_typeorm64 = require("typeorm");
|
|
8020
8284
|
var SequenceGenerator = class extends BaseEntity {
|
|
8021
8285
|
};
|
|
8022
8286
|
__decorateClass([
|
|
8023
|
-
(0,
|
|
8287
|
+
(0, import_typeorm64.Column)({
|
|
8024
8288
|
name: "module",
|
|
8025
8289
|
type: "varchar",
|
|
8026
8290
|
length: 50,
|
|
@@ -8029,7 +8293,7 @@ __decorateClass([
|
|
|
8029
8293
|
})
|
|
8030
8294
|
], SequenceGenerator.prototype, "module", 2);
|
|
8031
8295
|
__decorateClass([
|
|
8032
|
-
(0,
|
|
8296
|
+
(0, import_typeorm64.Column)({
|
|
8033
8297
|
name: "prefix",
|
|
8034
8298
|
type: "varchar",
|
|
8035
8299
|
length: 10,
|
|
@@ -8038,7 +8302,7 @@ __decorateClass([
|
|
|
8038
8302
|
})
|
|
8039
8303
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
8040
8304
|
__decorateClass([
|
|
8041
|
-
(0,
|
|
8305
|
+
(0, import_typeorm64.Column)({
|
|
8042
8306
|
name: "last_sequence",
|
|
8043
8307
|
type: "int",
|
|
8044
8308
|
nullable: false,
|
|
@@ -8046,7 +8310,7 @@ __decorateClass([
|
|
|
8046
8310
|
})
|
|
8047
8311
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
8048
8312
|
__decorateClass([
|
|
8049
|
-
(0,
|
|
8313
|
+
(0, import_typeorm64.Column)({
|
|
8050
8314
|
name: "year",
|
|
8051
8315
|
type: "int",
|
|
8052
8316
|
nullable: true,
|
|
@@ -8054,11 +8318,11 @@ __decorateClass([
|
|
|
8054
8318
|
})
|
|
8055
8319
|
], SequenceGenerator.prototype, "year", 2);
|
|
8056
8320
|
SequenceGenerator = __decorateClass([
|
|
8057
|
-
(0,
|
|
8321
|
+
(0, import_typeorm64.Entity)("sequence_generators")
|
|
8058
8322
|
], SequenceGenerator);
|
|
8059
8323
|
|
|
8060
8324
|
// src/entities/question.entity.ts
|
|
8061
|
-
var
|
|
8325
|
+
var import_typeorm65 = require("typeorm");
|
|
8062
8326
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
8063
8327
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
8064
8328
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -8067,16 +8331,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
8067
8331
|
var Question = class extends BaseEntity {
|
|
8068
8332
|
};
|
|
8069
8333
|
__decorateClass([
|
|
8070
|
-
(0,
|
|
8334
|
+
(0, import_typeorm65.Column)({ name: "question", type: "varchar" })
|
|
8071
8335
|
], Question.prototype, "question", 2);
|
|
8072
8336
|
__decorateClass([
|
|
8073
|
-
(0,
|
|
8337
|
+
(0, import_typeorm65.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
8074
8338
|
], Question.prototype, "hint", 2);
|
|
8075
8339
|
__decorateClass([
|
|
8076
|
-
(0,
|
|
8340
|
+
(0, import_typeorm65.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8077
8341
|
], Question.prototype, "slug", 2);
|
|
8078
8342
|
__decorateClass([
|
|
8079
|
-
(0,
|
|
8343
|
+
(0, import_typeorm65.Column)({
|
|
8080
8344
|
name: "question_for",
|
|
8081
8345
|
type: "enum",
|
|
8082
8346
|
enum: QuestionFor,
|
|
@@ -8084,45 +8348,45 @@ __decorateClass([
|
|
|
8084
8348
|
})
|
|
8085
8349
|
], Question.prototype, "questionFor", 2);
|
|
8086
8350
|
__decorateClass([
|
|
8087
|
-
(0,
|
|
8351
|
+
(0, import_typeorm65.Column)({ name: "type", type: "varchar", nullable: true })
|
|
8088
8352
|
], Question.prototype, "type", 2);
|
|
8089
8353
|
__decorateClass([
|
|
8090
|
-
(0,
|
|
8354
|
+
(0, import_typeorm65.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
8091
8355
|
], Question.prototype, "options", 2);
|
|
8092
8356
|
__decorateClass([
|
|
8093
|
-
(0,
|
|
8357
|
+
(0, import_typeorm65.Column)({ name: "is_active", type: "boolean", default: false })
|
|
8094
8358
|
], Question.prototype, "isActive", 2);
|
|
8095
8359
|
Question = __decorateClass([
|
|
8096
|
-
(0,
|
|
8360
|
+
(0, import_typeorm65.Entity)("questions")
|
|
8097
8361
|
], Question);
|
|
8098
8362
|
|
|
8099
8363
|
// src/entities/skill.entity.ts
|
|
8100
|
-
var
|
|
8364
|
+
var import_typeorm66 = require("typeorm");
|
|
8101
8365
|
var Skill = class extends BaseEntity {
|
|
8102
8366
|
};
|
|
8103
8367
|
__decorateClass([
|
|
8104
|
-
(0,
|
|
8368
|
+
(0, import_typeorm66.Column)({ name: "name", type: "varchar", nullable: true })
|
|
8105
8369
|
], Skill.prototype, "name", 2);
|
|
8106
8370
|
__decorateClass([
|
|
8107
|
-
(0,
|
|
8371
|
+
(0, import_typeorm66.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8108
8372
|
], Skill.prototype, "slug", 2);
|
|
8109
8373
|
__decorateClass([
|
|
8110
|
-
(0,
|
|
8374
|
+
(0, import_typeorm66.Column)({ name: "is_active", type: "boolean", default: false })
|
|
8111
8375
|
], Skill.prototype, "isActive", 2);
|
|
8112
8376
|
Skill = __decorateClass([
|
|
8113
|
-
(0,
|
|
8377
|
+
(0, import_typeorm66.Entity)("skills")
|
|
8114
8378
|
], Skill);
|
|
8115
8379
|
|
|
8116
8380
|
// src/entities/skill-catalog.entity.ts
|
|
8117
|
-
var
|
|
8381
|
+
var import_typeorm67 = require("typeorm");
|
|
8118
8382
|
var SkillCatalog = class extends BaseEntity {
|
|
8119
8383
|
};
|
|
8120
8384
|
__decorateClass([
|
|
8121
|
-
(0,
|
|
8122
|
-
(0,
|
|
8385
|
+
(0, import_typeorm67.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
8386
|
+
(0, import_typeorm67.Index)()
|
|
8123
8387
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
8124
8388
|
__decorateClass([
|
|
8125
|
-
(0,
|
|
8389
|
+
(0, import_typeorm67.Column)({
|
|
8126
8390
|
name: "aliases",
|
|
8127
8391
|
type: "text",
|
|
8128
8392
|
array: true,
|
|
@@ -8130,20 +8394,20 @@ __decorateClass([
|
|
|
8130
8394
|
})
|
|
8131
8395
|
], SkillCatalog.prototype, "aliases", 2);
|
|
8132
8396
|
__decorateClass([
|
|
8133
|
-
(0,
|
|
8397
|
+
(0, import_typeorm67.Column)({
|
|
8134
8398
|
name: "variations",
|
|
8135
8399
|
type: "jsonb",
|
|
8136
8400
|
default: "{}"
|
|
8137
8401
|
})
|
|
8138
8402
|
], SkillCatalog.prototype, "variations", 2);
|
|
8139
8403
|
__decorateClass([
|
|
8140
|
-
(0,
|
|
8404
|
+
(0, import_typeorm67.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
8141
8405
|
], SkillCatalog.prototype, "category", 2);
|
|
8142
8406
|
__decorateClass([
|
|
8143
|
-
(0,
|
|
8407
|
+
(0, import_typeorm67.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
8144
8408
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
8145
8409
|
__decorateClass([
|
|
8146
|
-
(0,
|
|
8410
|
+
(0, import_typeorm67.Column)({
|
|
8147
8411
|
name: "related_skills",
|
|
8148
8412
|
type: "text",
|
|
8149
8413
|
array: true,
|
|
@@ -8151,111 +8415,111 @@ __decorateClass([
|
|
|
8151
8415
|
})
|
|
8152
8416
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
8153
8417
|
__decorateClass([
|
|
8154
|
-
(0,
|
|
8155
|
-
(0,
|
|
8418
|
+
(0, import_typeorm67.Column)({ name: "usage_count", type: "integer", default: 0 }),
|
|
8419
|
+
(0, import_typeorm67.Index)()
|
|
8156
8420
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
8157
8421
|
__decorateClass([
|
|
8158
|
-
(0,
|
|
8422
|
+
(0, import_typeorm67.Column)({ name: "is_verified", type: "boolean", default: false })
|
|
8159
8423
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
8160
8424
|
__decorateClass([
|
|
8161
|
-
(0,
|
|
8425
|
+
(0, import_typeorm67.Column)({ name: "first_seen_date", type: "date" })
|
|
8162
8426
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
8163
8427
|
__decorateClass([
|
|
8164
|
-
(0,
|
|
8428
|
+
(0, import_typeorm67.Column)({ name: "last_updated_date", type: "date" })
|
|
8165
8429
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
8166
8430
|
__decorateClass([
|
|
8167
|
-
(0,
|
|
8431
|
+
(0, import_typeorm67.Column)({
|
|
8168
8432
|
name: "search_vector",
|
|
8169
8433
|
type: "tsvector",
|
|
8170
8434
|
nullable: true
|
|
8171
8435
|
})
|
|
8172
8436
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
8173
8437
|
SkillCatalog = __decorateClass([
|
|
8174
|
-
(0,
|
|
8438
|
+
(0, import_typeorm67.Entity)("skill_catalogs")
|
|
8175
8439
|
], SkillCatalog);
|
|
8176
8440
|
|
|
8177
8441
|
// src/entities/job-role.entity.ts
|
|
8178
|
-
var
|
|
8442
|
+
var import_typeorm68 = require("typeorm");
|
|
8179
8443
|
var JobRoles = class extends BaseEntity {
|
|
8180
8444
|
};
|
|
8181
8445
|
__decorateClass([
|
|
8182
|
-
(0,
|
|
8446
|
+
(0, import_typeorm68.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8183
8447
|
], JobRoles.prototype, "slug", 2);
|
|
8184
8448
|
__decorateClass([
|
|
8185
|
-
(0,
|
|
8449
|
+
(0, import_typeorm68.Column)({ name: "name", type: "varchar", nullable: true })
|
|
8186
8450
|
], JobRoles.prototype, "name", 2);
|
|
8187
8451
|
__decorateClass([
|
|
8188
|
-
(0,
|
|
8452
|
+
(0, import_typeorm68.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8189
8453
|
], JobRoles.prototype, "isActive", 2);
|
|
8190
8454
|
JobRoles = __decorateClass([
|
|
8191
|
-
(0,
|
|
8455
|
+
(0, import_typeorm68.Entity)("job_roles")
|
|
8192
8456
|
], JobRoles);
|
|
8193
8457
|
|
|
8194
8458
|
// src/entities/plan.entity.ts
|
|
8195
|
-
var
|
|
8459
|
+
var import_typeorm70 = require("typeorm");
|
|
8196
8460
|
|
|
8197
8461
|
// src/entities/feature.entity.ts
|
|
8198
|
-
var
|
|
8462
|
+
var import_typeorm69 = require("typeorm");
|
|
8199
8463
|
var Feature = class extends BaseEntity {
|
|
8200
8464
|
};
|
|
8201
8465
|
__decorateClass([
|
|
8202
|
-
(0,
|
|
8466
|
+
(0, import_typeorm69.Column)({ name: "name", type: "varchar", unique: true })
|
|
8203
8467
|
], Feature.prototype, "name", 2);
|
|
8204
8468
|
__decorateClass([
|
|
8205
|
-
(0,
|
|
8469
|
+
(0, import_typeorm69.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
8206
8470
|
], Feature.prototype, "plans", 2);
|
|
8207
8471
|
Feature = __decorateClass([
|
|
8208
|
-
(0,
|
|
8472
|
+
(0, import_typeorm69.Entity)("features")
|
|
8209
8473
|
], Feature);
|
|
8210
8474
|
|
|
8211
8475
|
// src/entities/plan.entity.ts
|
|
8212
8476
|
var Plan = class extends BaseEntity {
|
|
8213
8477
|
};
|
|
8214
8478
|
__decorateClass([
|
|
8215
|
-
(0,
|
|
8479
|
+
(0, import_typeorm70.Column)({ name: "name", type: "varchar", unique: true })
|
|
8216
8480
|
], Plan.prototype, "name", 2);
|
|
8217
8481
|
__decorateClass([
|
|
8218
|
-
(0,
|
|
8482
|
+
(0, import_typeorm70.Column)({ name: "description", type: "varchar", nullable: true })
|
|
8219
8483
|
], Plan.prototype, "description", 2);
|
|
8220
8484
|
__decorateClass([
|
|
8221
|
-
(0,
|
|
8485
|
+
(0, import_typeorm70.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
8222
8486
|
], Plan.prototype, "price", 2);
|
|
8223
8487
|
__decorateClass([
|
|
8224
|
-
(0,
|
|
8488
|
+
(0, import_typeorm70.Column)({ name: "billing_period", type: "varchar" })
|
|
8225
8489
|
], Plan.prototype, "billingPeriod", 2);
|
|
8226
8490
|
__decorateClass([
|
|
8227
|
-
(0,
|
|
8491
|
+
(0, import_typeorm70.Column)({ name: "is_current", type: "boolean", default: false })
|
|
8228
8492
|
], Plan.prototype, "isCurrent", 2);
|
|
8229
8493
|
__decorateClass([
|
|
8230
|
-
(0,
|
|
8231
|
-
(0,
|
|
8494
|
+
(0, import_typeorm70.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
8495
|
+
(0, import_typeorm70.JoinTable)()
|
|
8232
8496
|
], Plan.prototype, "features", 2);
|
|
8233
8497
|
Plan = __decorateClass([
|
|
8234
|
-
(0,
|
|
8498
|
+
(0, import_typeorm70.Entity)("plans")
|
|
8235
8499
|
], Plan);
|
|
8236
8500
|
|
|
8237
8501
|
// src/entities/cms.entity.ts
|
|
8238
|
-
var
|
|
8502
|
+
var import_typeorm71 = require("typeorm");
|
|
8239
8503
|
var Cms = class extends BaseEntity {
|
|
8240
8504
|
};
|
|
8241
8505
|
__decorateClass([
|
|
8242
|
-
(0,
|
|
8506
|
+
(0, import_typeorm71.Column)({ name: "title", type: "varchar", nullable: true })
|
|
8243
8507
|
], Cms.prototype, "title", 2);
|
|
8244
8508
|
__decorateClass([
|
|
8245
|
-
(0,
|
|
8509
|
+
(0, import_typeorm71.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8246
8510
|
], Cms.prototype, "slug", 2);
|
|
8247
8511
|
__decorateClass([
|
|
8248
|
-
(0,
|
|
8512
|
+
(0, import_typeorm71.Column)({ name: "content", type: "varchar", nullable: true })
|
|
8249
8513
|
], Cms.prototype, "content", 2);
|
|
8250
8514
|
__decorateClass([
|
|
8251
|
-
(0,
|
|
8515
|
+
(0, import_typeorm71.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8252
8516
|
], Cms.prototype, "isActive", 2);
|
|
8253
8517
|
Cms = __decorateClass([
|
|
8254
|
-
(0,
|
|
8518
|
+
(0, import_typeorm71.Entity)("cms")
|
|
8255
8519
|
], Cms);
|
|
8256
8520
|
|
|
8257
8521
|
// src/entities/lead.entity.ts
|
|
8258
|
-
var
|
|
8522
|
+
var import_typeorm72 = require("typeorm");
|
|
8259
8523
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
8260
8524
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
8261
8525
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -8264,22 +8528,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
8264
8528
|
var Lead = class extends BaseEntity {
|
|
8265
8529
|
};
|
|
8266
8530
|
__decorateClass([
|
|
8267
|
-
(0,
|
|
8531
|
+
(0, import_typeorm72.Column)({ name: "name", type: "varchar", nullable: true })
|
|
8268
8532
|
], Lead.prototype, "name", 2);
|
|
8269
8533
|
__decorateClass([
|
|
8270
|
-
(0,
|
|
8534
|
+
(0, import_typeorm72.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
8271
8535
|
], Lead.prototype, "mobileCode", 2);
|
|
8272
8536
|
__decorateClass([
|
|
8273
|
-
(0,
|
|
8537
|
+
(0, import_typeorm72.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
8274
8538
|
], Lead.prototype, "mobile", 2);
|
|
8275
8539
|
__decorateClass([
|
|
8276
|
-
(0,
|
|
8540
|
+
(0, import_typeorm72.Column)({ name: "email", type: "varchar", nullable: true })
|
|
8277
8541
|
], Lead.prototype, "email", 2);
|
|
8278
8542
|
__decorateClass([
|
|
8279
|
-
(0,
|
|
8543
|
+
(0, import_typeorm72.Column)({ name: "description", type: "varchar", nullable: true })
|
|
8280
8544
|
], Lead.prototype, "description", 2);
|
|
8281
8545
|
__decorateClass([
|
|
8282
|
-
(0,
|
|
8546
|
+
(0, import_typeorm72.Column)({
|
|
8283
8547
|
name: "category",
|
|
8284
8548
|
type: "enum",
|
|
8285
8549
|
enum: CategoryEmum,
|
|
@@ -8287,129 +8551,129 @@ __decorateClass([
|
|
|
8287
8551
|
})
|
|
8288
8552
|
], Lead.prototype, "category", 2);
|
|
8289
8553
|
Lead = __decorateClass([
|
|
8290
|
-
(0,
|
|
8554
|
+
(0, import_typeorm72.Entity)("leads")
|
|
8291
8555
|
], Lead);
|
|
8292
8556
|
|
|
8293
8557
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
8294
|
-
var
|
|
8558
|
+
var import_typeorm73 = require("typeorm");
|
|
8295
8559
|
var JobFreelancerRecommendation = class {
|
|
8296
8560
|
};
|
|
8297
8561
|
__decorateClass([
|
|
8298
|
-
(0,
|
|
8562
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_id" })
|
|
8299
8563
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
8300
8564
|
__decorateClass([
|
|
8301
|
-
(0,
|
|
8565
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_uuid" })
|
|
8302
8566
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
8303
8567
|
__decorateClass([
|
|
8304
|
-
(0,
|
|
8568
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_unique_id" })
|
|
8305
8569
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
8306
8570
|
__decorateClass([
|
|
8307
|
-
(0,
|
|
8571
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_role" })
|
|
8308
8572
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
8309
8573
|
__decorateClass([
|
|
8310
|
-
(0,
|
|
8574
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_openings" })
|
|
8311
8575
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
8312
8576
|
__decorateClass([
|
|
8313
|
-
(0,
|
|
8577
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_location" })
|
|
8314
8578
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
8315
8579
|
__decorateClass([
|
|
8316
|
-
(0,
|
|
8580
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_currency" })
|
|
8317
8581
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
8318
8582
|
__decorateClass([
|
|
8319
|
-
(0,
|
|
8583
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_salary_from" })
|
|
8320
8584
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
8321
8585
|
__decorateClass([
|
|
8322
|
-
(0,
|
|
8586
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_salary_to" })
|
|
8323
8587
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
8324
8588
|
__decorateClass([
|
|
8325
|
-
(0,
|
|
8589
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_employment_type" })
|
|
8326
8590
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
8327
8591
|
__decorateClass([
|
|
8328
|
-
(0,
|
|
8592
|
+
(0, import_typeorm73.ViewColumn)({ name: "application_received" })
|
|
8329
8593
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
8330
8594
|
__decorateClass([
|
|
8331
|
-
(0,
|
|
8595
|
+
(0, import_typeorm73.ViewColumn)({ name: "job_posted_at" })
|
|
8332
8596
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
8333
8597
|
__decorateClass([
|
|
8334
|
-
(0,
|
|
8598
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_id" })
|
|
8335
8599
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
8336
8600
|
__decorateClass([
|
|
8337
|
-
(0,
|
|
8601
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_uuid" })
|
|
8338
8602
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
8339
8603
|
__decorateClass([
|
|
8340
|
-
(0,
|
|
8604
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_unique_id" })
|
|
8341
8605
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
8342
8606
|
__decorateClass([
|
|
8343
|
-
(0,
|
|
8607
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_first_name" })
|
|
8344
8608
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
8345
8609
|
__decorateClass([
|
|
8346
|
-
(0,
|
|
8610
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_last_name" })
|
|
8347
8611
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
8348
8612
|
__decorateClass([
|
|
8349
|
-
(0,
|
|
8613
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_email" })
|
|
8350
8614
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
8351
8615
|
__decorateClass([
|
|
8352
|
-
(0,
|
|
8616
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
8353
8617
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
8354
8618
|
__decorateClass([
|
|
8355
|
-
(0,
|
|
8619
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_is_social" })
|
|
8356
8620
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
8357
8621
|
__decorateClass([
|
|
8358
|
-
(0,
|
|
8622
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_created_at" })
|
|
8359
8623
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
8360
8624
|
__decorateClass([
|
|
8361
|
-
(0,
|
|
8625
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_designation" })
|
|
8362
8626
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
8363
8627
|
__decorateClass([
|
|
8364
|
-
(0,
|
|
8628
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_experience" })
|
|
8365
8629
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
8366
8630
|
__decorateClass([
|
|
8367
|
-
(0,
|
|
8631
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
8368
8632
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
8369
8633
|
__decorateClass([
|
|
8370
|
-
(0,
|
|
8634
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
8371
8635
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
8372
8636
|
__decorateClass([
|
|
8373
|
-
(0,
|
|
8637
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_country_name" })
|
|
8374
8638
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
8375
8639
|
__decorateClass([
|
|
8376
|
-
(0,
|
|
8640
|
+
(0, import_typeorm73.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
8377
8641
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
8378
8642
|
__decorateClass([
|
|
8379
|
-
(0,
|
|
8643
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_id" })
|
|
8380
8644
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
8381
8645
|
__decorateClass([
|
|
8382
|
-
(0,
|
|
8646
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_uuid" })
|
|
8383
8647
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
8384
8648
|
__decorateClass([
|
|
8385
|
-
(0,
|
|
8649
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_first_name" })
|
|
8386
8650
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
8387
8651
|
__decorateClass([
|
|
8388
|
-
(0,
|
|
8652
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_last_name" })
|
|
8389
8653
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
8390
8654
|
__decorateClass([
|
|
8391
|
-
(0,
|
|
8655
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_email" })
|
|
8392
8656
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
8393
8657
|
__decorateClass([
|
|
8394
|
-
(0,
|
|
8658
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_company_logo" })
|
|
8395
8659
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
8396
8660
|
__decorateClass([
|
|
8397
|
-
(0,
|
|
8661
|
+
(0, import_typeorm73.ViewColumn)({ name: "client_company_name" })
|
|
8398
8662
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
8399
8663
|
__decorateClass([
|
|
8400
|
-
(0,
|
|
8664
|
+
(0, import_typeorm73.ViewColumn)({ name: "matching_skills" })
|
|
8401
8665
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
8402
8666
|
__decorateClass([
|
|
8403
|
-
(0,
|
|
8667
|
+
(0, import_typeorm73.ViewColumn)({ name: "matching_skills_count" })
|
|
8404
8668
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
8405
8669
|
__decorateClass([
|
|
8406
|
-
(0,
|
|
8670
|
+
(0, import_typeorm73.ViewColumn)({ name: "required_skills" })
|
|
8407
8671
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
8408
8672
|
__decorateClass([
|
|
8409
|
-
(0,
|
|
8673
|
+
(0, import_typeorm73.ViewColumn)({ name: "required_skills_count" })
|
|
8410
8674
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
8411
8675
|
JobFreelancerRecommendation = __decorateClass([
|
|
8412
|
-
(0,
|
|
8676
|
+
(0, import_typeorm73.ViewEntity)({
|
|
8413
8677
|
name: "job_freelancer_recommendations",
|
|
8414
8678
|
materialized: true,
|
|
8415
8679
|
synchronize: false
|
|
@@ -8418,32 +8682,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
8418
8682
|
], JobFreelancerRecommendation);
|
|
8419
8683
|
|
|
8420
8684
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
8421
|
-
var
|
|
8685
|
+
var import_typeorm74 = require("typeorm");
|
|
8422
8686
|
var JobFreelancerRecommendationV2 = class {
|
|
8423
8687
|
};
|
|
8424
8688
|
__decorateClass([
|
|
8425
|
-
(0,
|
|
8689
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_id" })
|
|
8426
8690
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
8427
8691
|
__decorateClass([
|
|
8428
|
-
(0,
|
|
8692
|
+
(0, import_typeorm74.ViewColumn)({ name: "job_owner_id" })
|
|
8429
8693
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
8430
8694
|
__decorateClass([
|
|
8431
|
-
(0,
|
|
8695
|
+
(0, import_typeorm74.ViewColumn)({ name: "freelancer_id" })
|
|
8432
8696
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
8433
8697
|
__decorateClass([
|
|
8434
|
-
(0,
|
|
8698
|
+
(0, import_typeorm74.ViewColumn)({ name: "matching_skills" })
|
|
8435
8699
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
8436
8700
|
__decorateClass([
|
|
8437
|
-
(0,
|
|
8701
|
+
(0, import_typeorm74.ViewColumn)({ name: "matching_skills_count" })
|
|
8438
8702
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
8439
8703
|
__decorateClass([
|
|
8440
|
-
(0,
|
|
8704
|
+
(0, import_typeorm74.ViewColumn)({ name: "required_skills" })
|
|
8441
8705
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
8442
8706
|
__decorateClass([
|
|
8443
|
-
(0,
|
|
8707
|
+
(0, import_typeorm74.ViewColumn)({ name: "required_skills_count" })
|
|
8444
8708
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
8445
8709
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
8446
|
-
(0,
|
|
8710
|
+
(0, import_typeorm74.ViewEntity)({
|
|
8447
8711
|
name: "job_freelancer_recommendations_v2",
|
|
8448
8712
|
materialized: true,
|
|
8449
8713
|
synchronize: false
|
|
@@ -8452,74 +8716,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
8452
8716
|
], JobFreelancerRecommendationV2);
|
|
8453
8717
|
|
|
8454
8718
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
8455
|
-
var
|
|
8719
|
+
var import_typeorm75 = require("typeorm");
|
|
8456
8720
|
var ClientFreelancerRecommendation = class {
|
|
8457
8721
|
};
|
|
8458
8722
|
__decorateClass([
|
|
8459
|
-
(0,
|
|
8723
|
+
(0, import_typeorm75.ViewColumn)({ name: "client_id" })
|
|
8460
8724
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
8461
8725
|
__decorateClass([
|
|
8462
|
-
(0,
|
|
8726
|
+
(0, import_typeorm75.ViewColumn)({ name: "client_uuid" })
|
|
8463
8727
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
8464
8728
|
__decorateClass([
|
|
8465
|
-
(0,
|
|
8729
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_id" })
|
|
8466
8730
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
8467
8731
|
__decorateClass([
|
|
8468
|
-
(0,
|
|
8732
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_uuid" })
|
|
8469
8733
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
8470
8734
|
__decorateClass([
|
|
8471
|
-
(0,
|
|
8735
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_unique_id" })
|
|
8472
8736
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
8473
8737
|
__decorateClass([
|
|
8474
|
-
(0,
|
|
8738
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_first_name" })
|
|
8475
8739
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
8476
8740
|
__decorateClass([
|
|
8477
|
-
(0,
|
|
8741
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_last_name" })
|
|
8478
8742
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
8479
8743
|
__decorateClass([
|
|
8480
|
-
(0,
|
|
8744
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_email" })
|
|
8481
8745
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
8482
8746
|
__decorateClass([
|
|
8483
|
-
(0,
|
|
8747
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
8484
8748
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
8485
8749
|
__decorateClass([
|
|
8486
|
-
(0,
|
|
8750
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_is_social" })
|
|
8487
8751
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
8488
8752
|
__decorateClass([
|
|
8489
|
-
(0,
|
|
8753
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_created_at" })
|
|
8490
8754
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
8491
8755
|
__decorateClass([
|
|
8492
|
-
(0,
|
|
8756
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_designation" })
|
|
8493
8757
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
8494
8758
|
__decorateClass([
|
|
8495
|
-
(0,
|
|
8759
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_experience" })
|
|
8496
8760
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
8497
8761
|
__decorateClass([
|
|
8498
|
-
(0,
|
|
8762
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
8499
8763
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
8500
8764
|
__decorateClass([
|
|
8501
|
-
(0,
|
|
8765
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
8502
8766
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
8503
8767
|
__decorateClass([
|
|
8504
|
-
(0,
|
|
8768
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_country_name" })
|
|
8505
8769
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
8506
8770
|
__decorateClass([
|
|
8507
|
-
(0,
|
|
8771
|
+
(0, import_typeorm75.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
8508
8772
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
8509
8773
|
__decorateClass([
|
|
8510
|
-
(0,
|
|
8774
|
+
(0, import_typeorm75.ViewColumn)({ name: "matching_skills" })
|
|
8511
8775
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
8512
8776
|
__decorateClass([
|
|
8513
|
-
(0,
|
|
8777
|
+
(0, import_typeorm75.ViewColumn)({ name: "matching_skills_count" })
|
|
8514
8778
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
8515
8779
|
__decorateClass([
|
|
8516
|
-
(0,
|
|
8780
|
+
(0, import_typeorm75.ViewColumn)({ name: "required_skills" })
|
|
8517
8781
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
8518
8782
|
__decorateClass([
|
|
8519
|
-
(0,
|
|
8783
|
+
(0, import_typeorm75.ViewColumn)({ name: "required_skills_count" })
|
|
8520
8784
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
8521
8785
|
ClientFreelancerRecommendation = __decorateClass([
|
|
8522
|
-
(0,
|
|
8786
|
+
(0, import_typeorm75.ViewEntity)({
|
|
8523
8787
|
name: "client_freelancer_recommendations",
|
|
8524
8788
|
materialized: true,
|
|
8525
8789
|
synchronize: false
|
|
@@ -8528,7 +8792,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
8528
8792
|
], ClientFreelancerRecommendation);
|
|
8529
8793
|
|
|
8530
8794
|
// src/entities/commission.entity.ts
|
|
8531
|
-
var
|
|
8795
|
+
var import_typeorm76 = require("typeorm");
|
|
8532
8796
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
8533
8797
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
8534
8798
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -8537,7 +8801,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
8537
8801
|
var Commission = class extends BaseEntity {
|
|
8538
8802
|
};
|
|
8539
8803
|
__decorateClass([
|
|
8540
|
-
(0,
|
|
8804
|
+
(0, import_typeorm76.Column)({
|
|
8541
8805
|
name: "freelancer_commission_type",
|
|
8542
8806
|
type: "enum",
|
|
8543
8807
|
enum: CommissionTypeEnum,
|
|
@@ -8545,10 +8809,10 @@ __decorateClass([
|
|
|
8545
8809
|
})
|
|
8546
8810
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
8547
8811
|
__decorateClass([
|
|
8548
|
-
(0,
|
|
8812
|
+
(0, import_typeorm76.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
8549
8813
|
], Commission.prototype, "freelancerCommission", 2);
|
|
8550
8814
|
__decorateClass([
|
|
8551
|
-
(0,
|
|
8815
|
+
(0, import_typeorm76.Column)({
|
|
8552
8816
|
name: "client_commission_type",
|
|
8553
8817
|
type: "enum",
|
|
8554
8818
|
enum: CommissionTypeEnum,
|
|
@@ -8556,93 +8820,93 @@ __decorateClass([
|
|
|
8556
8820
|
})
|
|
8557
8821
|
], Commission.prototype, "clientCommissionType", 2);
|
|
8558
8822
|
__decorateClass([
|
|
8559
|
-
(0,
|
|
8823
|
+
(0, import_typeorm76.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
8560
8824
|
], Commission.prototype, "clientCommission", 2);
|
|
8561
8825
|
Commission = __decorateClass([
|
|
8562
|
-
(0,
|
|
8826
|
+
(0, import_typeorm76.Entity)("commissions")
|
|
8563
8827
|
], Commission);
|
|
8564
8828
|
|
|
8565
8829
|
// src/entities/calendly-meeting-log.entity.ts
|
|
8566
|
-
var
|
|
8830
|
+
var import_typeorm77 = require("typeorm");
|
|
8567
8831
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
8568
8832
|
};
|
|
8569
8833
|
__decorateClass([
|
|
8570
|
-
(0,
|
|
8571
|
-
(0,
|
|
8834
|
+
(0, import_typeorm77.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
8835
|
+
(0, import_typeorm77.Index)()
|
|
8572
8836
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
8573
8837
|
__decorateClass([
|
|
8574
|
-
(0,
|
|
8838
|
+
(0, import_typeorm77.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
8575
8839
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
8576
8840
|
__decorateClass([
|
|
8577
|
-
(0,
|
|
8841
|
+
(0, import_typeorm77.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8578
8842
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
8579
8843
|
CalendlyMeetingLog = __decorateClass([
|
|
8580
|
-
(0,
|
|
8844
|
+
(0, import_typeorm77.Entity)("calendly_meeting_logs")
|
|
8581
8845
|
], CalendlyMeetingLog);
|
|
8582
8846
|
|
|
8583
8847
|
// src/entities/zoom-meeting-log.entity.ts
|
|
8584
|
-
var
|
|
8848
|
+
var import_typeorm78 = require("typeorm");
|
|
8585
8849
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
8586
8850
|
};
|
|
8587
8851
|
__decorateClass([
|
|
8588
|
-
(0,
|
|
8589
|
-
(0,
|
|
8852
|
+
(0, import_typeorm78.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
8853
|
+
(0, import_typeorm78.Index)()
|
|
8590
8854
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
8591
8855
|
__decorateClass([
|
|
8592
|
-
(0,
|
|
8856
|
+
(0, import_typeorm78.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
8593
8857
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
8594
8858
|
__decorateClass([
|
|
8595
|
-
(0,
|
|
8859
|
+
(0, import_typeorm78.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8596
8860
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
8597
8861
|
ZoomMeetingLog = __decorateClass([
|
|
8598
|
-
(0,
|
|
8862
|
+
(0, import_typeorm78.Entity)("zoom_meeting_logs")
|
|
8599
8863
|
], ZoomMeetingLog);
|
|
8600
8864
|
|
|
8601
8865
|
// src/entities/stripe-logs.entity.ts
|
|
8602
|
-
var
|
|
8866
|
+
var import_typeorm79 = require("typeorm");
|
|
8603
8867
|
var StripeLog = class extends BaseEntity {
|
|
8604
8868
|
};
|
|
8605
8869
|
__decorateClass([
|
|
8606
|
-
(0,
|
|
8870
|
+
(0, import_typeorm79.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
8607
8871
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
8608
8872
|
__decorateClass([
|
|
8609
|
-
(0,
|
|
8873
|
+
(0, import_typeorm79.Column)({ name: "event_type", type: "varchar", nullable: true })
|
|
8610
8874
|
], StripeLog.prototype, "eventType", 2);
|
|
8611
8875
|
__decorateClass([
|
|
8612
|
-
(0,
|
|
8876
|
+
(0, import_typeorm79.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
8613
8877
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
8614
8878
|
__decorateClass([
|
|
8615
|
-
(0,
|
|
8879
|
+
(0, import_typeorm79.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
8616
8880
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
8617
8881
|
StripeLog = __decorateClass([
|
|
8618
|
-
(0,
|
|
8882
|
+
(0, import_typeorm79.Entity)("stripe_logs")
|
|
8619
8883
|
], StripeLog);
|
|
8620
8884
|
|
|
8621
8885
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
8622
|
-
var
|
|
8886
|
+
var import_typeorm80 = require("typeorm");
|
|
8623
8887
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
8624
8888
|
};
|
|
8625
8889
|
__decorateClass([
|
|
8626
|
-
(0,
|
|
8890
|
+
(0, import_typeorm80.Column)({
|
|
8627
8891
|
type: "varchar",
|
|
8628
8892
|
length: 100,
|
|
8629
8893
|
unique: true,
|
|
8630
8894
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
8631
8895
|
}),
|
|
8632
|
-
(0,
|
|
8896
|
+
(0, import_typeorm80.Index)()
|
|
8633
8897
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
8634
8898
|
__decorateClass([
|
|
8635
|
-
(0,
|
|
8899
|
+
(0, import_typeorm80.Column)({
|
|
8636
8900
|
type: "jsonb",
|
|
8637
8901
|
comment: "JSON object containing weight values",
|
|
8638
8902
|
nullable: true
|
|
8639
8903
|
})
|
|
8640
8904
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
8641
8905
|
__decorateClass([
|
|
8642
|
-
(0,
|
|
8906
|
+
(0, import_typeorm80.Column)({ name: "is_active", type: "boolean", default: true })
|
|
8643
8907
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
8644
8908
|
RecommendationWeightageConfig = __decorateClass([
|
|
8645
|
-
(0,
|
|
8909
|
+
(0, import_typeorm80.Entity)("recommendation_weightage_configs")
|
|
8646
8910
|
], RecommendationWeightageConfig);
|
|
8647
8911
|
// Annotate the CommonJS export names for ESM import in node:
|
|
8648
8912
|
0 && (module.exports = {
|
|
@@ -8655,6 +8919,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8655
8919
|
AccountStatus,
|
|
8656
8920
|
AccountType,
|
|
8657
8921
|
AdminCreateJobInformationDto,
|
|
8922
|
+
AdminJobBasicInformationV2Dto,
|
|
8658
8923
|
AdminPermission,
|
|
8659
8924
|
AdminRole,
|
|
8660
8925
|
AdminRolePermission,
|
|
@@ -8790,6 +9055,8 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8790
9055
|
FreelancerUploadResumeDto,
|
|
8791
9056
|
FreelancerWorkShowcaseDto,
|
|
8792
9057
|
FromUsOn,
|
|
9058
|
+
HiredFreelancerNatureOfWorkEnum,
|
|
9059
|
+
Hiring,
|
|
8793
9060
|
INTERVIEW_INVITE_PATTERN,
|
|
8794
9061
|
INVOICE_PATTERN,
|
|
8795
9062
|
InitiatorTypeEnum,
|
|
@@ -8817,6 +9084,7 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8817
9084
|
JobFreelancerRecommendationV2,
|
|
8818
9085
|
JobIdParamDto,
|
|
8819
9086
|
JobLocation,
|
|
9087
|
+
JobLocationAdminDto,
|
|
8820
9088
|
JobLocationDto,
|
|
8821
9089
|
JobLocationEnum,
|
|
8822
9090
|
JobLocationEnumDto,
|