@experts_hub/shared 1.0.506 → 1.0.508
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/assessment-question.entity.d.ts +3 -0
- package/dist/entities/contract.entity.d.ts +0 -2
- package/dist/entities/index.d.ts +0 -1
- package/dist/entities/job-location.entity.d.ts +15 -0
- package/dist/entities/job.entity.d.ts +9 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +25 -45
- package/dist/index.d.ts +25 -45
- package/dist/index.js +146 -173
- package/dist/index.mjs +309 -327
- package/package.json +1 -1
- package/dist/entities/contract-history.entity.d.ts +0 -42
package/dist/index.js
CHANGED
|
@@ -91,10 +91,6 @@ __export(index_exports, {
|
|
|
91
91
|
CompanyRolePermission: () => CompanyRolePermission,
|
|
92
92
|
CompanySkill: () => CompanySkill,
|
|
93
93
|
Contract: () => Contract,
|
|
94
|
-
ContractHistory: () => ContractHistory,
|
|
95
|
-
ContractHistoryActionEnum: () => ContractHistoryActionEnum,
|
|
96
|
-
ContractHistoryStatusEnum: () => ContractHistoryStatusEnum,
|
|
97
|
-
ContractHistoryTypeEnum: () => ContractHistoryTypeEnum,
|
|
98
94
|
ContractRMQAdapter: () => ContractRMQAdapter,
|
|
99
95
|
ContractStatusEnum: () => ContractStatusEnum,
|
|
100
96
|
ContractTCPAdapter: () => ContractTCPAdapter,
|
|
@@ -322,7 +318,8 @@ __export(index_exports, {
|
|
|
322
318
|
WalletTransaction: () => WalletTransaction,
|
|
323
319
|
WalletTransactionStatusEnum: () => WalletTransactionStatusEnum,
|
|
324
320
|
WalletTransactionTypeEnum: () => WalletTransactionTypeEnum,
|
|
325
|
-
ZoomMeetingLog: () => ZoomMeetingLog
|
|
321
|
+
ZoomMeetingLog: () => ZoomMeetingLog,
|
|
322
|
+
typeOfExperienceEnum: () => typeOfExperienceEnum
|
|
326
323
|
});
|
|
327
324
|
module.exports = __toCommonJS(index_exports);
|
|
328
325
|
|
|
@@ -1229,11 +1226,11 @@ var JOB_PATTERN = {
|
|
|
1229
1226
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1230
1227
|
var import_class_validator33 = require("class-validator");
|
|
1231
1228
|
var import_class_transformer2 = require("class-transformer");
|
|
1232
|
-
var JobLocation = /* @__PURE__ */ ((
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
return
|
|
1229
|
+
var JobLocation = /* @__PURE__ */ ((JobLocation3) => {
|
|
1230
|
+
JobLocation3["ONSITE"] = "ONSITE";
|
|
1231
|
+
JobLocation3["REMOTE"] = "REMOTE";
|
|
1232
|
+
JobLocation3["HYBRID"] = "HYBRID";
|
|
1233
|
+
return JobLocation3;
|
|
1237
1234
|
})(JobLocation || {});
|
|
1238
1235
|
var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
1239
1236
|
EmploymentType2["FULLTIME"] = "FULLTIME";
|
|
@@ -3387,7 +3384,7 @@ JobRecommendation = __decorateClass([
|
|
|
3387
3384
|
], JobRecommendation);
|
|
3388
3385
|
|
|
3389
3386
|
// src/entities/contract.entity.ts
|
|
3390
|
-
var
|
|
3387
|
+
var import_typeorm28 = require("typeorm");
|
|
3391
3388
|
|
|
3392
3389
|
// src/entities/escrow-wallet.entity.ts
|
|
3393
3390
|
var import_typeorm27 = require("typeorm");
|
|
@@ -3820,95 +3817,6 @@ EscrowWallet = __decorateClass([
|
|
|
3820
3817
|
(0, import_typeorm27.Entity)("escrow_wallets")
|
|
3821
3818
|
], EscrowWallet);
|
|
3822
3819
|
|
|
3823
|
-
// src/entities/contract-history.entity.ts
|
|
3824
|
-
var import_typeorm28 = require("typeorm");
|
|
3825
|
-
var ContractHistoryStatusEnum = /* @__PURE__ */ ((ContractHistoryStatusEnum2) => {
|
|
3826
|
-
ContractHistoryStatusEnum2["GENERATED"] = "GENERATED";
|
|
3827
|
-
ContractHistoryStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
3828
|
-
ContractHistoryStatusEnum2["SENT"] = "SENT";
|
|
3829
|
-
ContractHistoryStatusEnum2["SIGNED"] = "SIGNED";
|
|
3830
|
-
ContractHistoryStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
3831
|
-
ContractHistoryStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
3832
|
-
ContractHistoryStatusEnum2["DISPUTED"] = "DISPUTED";
|
|
3833
|
-
ContractHistoryStatusEnum2["REJECTED"] = "REJECTED";
|
|
3834
|
-
ContractHistoryStatusEnum2["RENEWED"] = "RENEWED";
|
|
3835
|
-
ContractHistoryStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
3836
|
-
return ContractHistoryStatusEnum2;
|
|
3837
|
-
})(ContractHistoryStatusEnum || {});
|
|
3838
|
-
var ContractHistoryTypeEnum = /* @__PURE__ */ ((ContractHistoryTypeEnum2) => {
|
|
3839
|
-
ContractHistoryTypeEnum2["NDA"] = "NDA";
|
|
3840
|
-
ContractHistoryTypeEnum2["WORK"] = "WORK";
|
|
3841
|
-
return ContractHistoryTypeEnum2;
|
|
3842
|
-
})(ContractHistoryTypeEnum || {});
|
|
3843
|
-
var ContractHistoryActionEnum = /* @__PURE__ */ ((ContractHistoryActionEnum2) => {
|
|
3844
|
-
ContractHistoryActionEnum2["GENERATED"] = "GENERATED";
|
|
3845
|
-
ContractHistoryActionEnum2["DRAFTED"] = "DRAFTED";
|
|
3846
|
-
ContractHistoryActionEnum2["SENT"] = "SENT";
|
|
3847
|
-
ContractHistoryActionEnum2["SIGNED"] = "SIGNED";
|
|
3848
|
-
ContractHistoryActionEnum2["ACTIVE"] = "ACTIVE";
|
|
3849
|
-
ContractHistoryActionEnum2["CANCELLED"] = "CANCELLED";
|
|
3850
|
-
ContractHistoryActionEnum2["DISPUTED"] = "DISPUTED";
|
|
3851
|
-
ContractHistoryActionEnum2["REJECTED"] = "REJECTED";
|
|
3852
|
-
ContractHistoryActionEnum2["RENEWED"] = "RENEWED";
|
|
3853
|
-
ContractHistoryActionEnum2["EXPIRED"] = "EXPIRED";
|
|
3854
|
-
ContractHistoryActionEnum2["VIEWED"] = "VIEWED";
|
|
3855
|
-
return ContractHistoryActionEnum2;
|
|
3856
|
-
})(ContractHistoryActionEnum || {});
|
|
3857
|
-
var ContractHistory = class extends BaseEntity {
|
|
3858
|
-
};
|
|
3859
|
-
__decorateClass([
|
|
3860
|
-
(0, import_typeorm28.Column)({ name: "contract_id", type: "integer", nullable: false }),
|
|
3861
|
-
(0, import_typeorm28.Index)()
|
|
3862
|
-
], ContractHistory.prototype, "contractId", 2);
|
|
3863
|
-
__decorateClass([
|
|
3864
|
-
(0, import_typeorm28.ManyToOne)(() => Contract, (contract) => contract.history),
|
|
3865
|
-
(0, import_typeorm28.JoinColumn)({ name: "contract_id" })
|
|
3866
|
-
], ContractHistory.prototype, "contract", 2);
|
|
3867
|
-
__decorateClass([
|
|
3868
|
-
(0, import_typeorm28.Column)({ name: "action_by", type: "integer", nullable: true })
|
|
3869
|
-
], ContractHistory.prototype, "actionBy", 2);
|
|
3870
|
-
__decorateClass([
|
|
3871
|
-
(0, import_typeorm28.Column)({ name: "action_by_type", type: "varchar", nullable: true })
|
|
3872
|
-
], ContractHistory.prototype, "actionByType", 2);
|
|
3873
|
-
__decorateClass([
|
|
3874
|
-
(0, import_typeorm28.Column)({
|
|
3875
|
-
name: "previous_status",
|
|
3876
|
-
type: "enum",
|
|
3877
|
-
enum: ContractHistoryStatusEnum,
|
|
3878
|
-
nullable: true
|
|
3879
|
-
})
|
|
3880
|
-
], ContractHistory.prototype, "previousStatus", 2);
|
|
3881
|
-
__decorateClass([
|
|
3882
|
-
(0, import_typeorm28.Column)({
|
|
3883
|
-
name: "new_status",
|
|
3884
|
-
type: "enum",
|
|
3885
|
-
enum: ContractHistoryStatusEnum,
|
|
3886
|
-
nullable: false
|
|
3887
|
-
})
|
|
3888
|
-
], ContractHistory.prototype, "newStatus", 2);
|
|
3889
|
-
__decorateClass([
|
|
3890
|
-
(0, import_typeorm28.Column)({
|
|
3891
|
-
name: "type",
|
|
3892
|
-
type: "enum",
|
|
3893
|
-
enum: ContractHistoryTypeEnum,
|
|
3894
|
-
nullable: true
|
|
3895
|
-
})
|
|
3896
|
-
], ContractHistory.prototype, "type", 2);
|
|
3897
|
-
__decorateClass([
|
|
3898
|
-
(0, import_typeorm28.Column)({
|
|
3899
|
-
name: "action_type",
|
|
3900
|
-
type: "enum",
|
|
3901
|
-
enum: ContractHistoryActionEnum,
|
|
3902
|
-
nullable: false
|
|
3903
|
-
})
|
|
3904
|
-
], ContractHistory.prototype, "actionType", 2);
|
|
3905
|
-
__decorateClass([
|
|
3906
|
-
(0, import_typeorm28.Column)({ name: "remarks", type: "varchar", nullable: true })
|
|
3907
|
-
], ContractHistory.prototype, "remarks", 2);
|
|
3908
|
-
ContractHistory = __decorateClass([
|
|
3909
|
-
(0, import_typeorm28.Entity)("contract_histories")
|
|
3910
|
-
], ContractHistory);
|
|
3911
|
-
|
|
3912
3820
|
// src/entities/contract.entity.ts
|
|
3913
3821
|
var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
|
|
3914
3822
|
ContractStatusEnum2["GENERATED"] = "GENERATED";
|
|
@@ -3931,41 +3839,37 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
|
3931
3839
|
var Contract = class extends BaseEntity {
|
|
3932
3840
|
};
|
|
3933
3841
|
__decorateClass([
|
|
3934
|
-
(0,
|
|
3842
|
+
(0, import_typeorm28.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
3935
3843
|
], Contract.prototype, "contractUniqueId", 2);
|
|
3936
3844
|
__decorateClass([
|
|
3937
|
-
(0,
|
|
3938
|
-
(0,
|
|
3845
|
+
(0, import_typeorm28.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3846
|
+
(0, import_typeorm28.Index)()
|
|
3939
3847
|
], Contract.prototype, "jobId", 2);
|
|
3940
3848
|
__decorateClass([
|
|
3941
|
-
(0,
|
|
3942
|
-
(0,
|
|
3849
|
+
(0, import_typeorm28.ManyToOne)(() => Job, (job) => job.contracts),
|
|
3850
|
+
(0, import_typeorm28.JoinColumn)({ name: "job_id" })
|
|
3943
3851
|
], Contract.prototype, "job", 2);
|
|
3944
3852
|
__decorateClass([
|
|
3945
|
-
(0,
|
|
3946
|
-
(0,
|
|
3853
|
+
(0, import_typeorm28.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3854
|
+
(0, import_typeorm28.Index)()
|
|
3947
3855
|
], Contract.prototype, "clientId", 2);
|
|
3948
3856
|
__decorateClass([
|
|
3949
|
-
(0,
|
|
3950
|
-
(0,
|
|
3857
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.clientContracts),
|
|
3858
|
+
(0, import_typeorm28.JoinColumn)({ name: "client_id" })
|
|
3951
3859
|
], Contract.prototype, "client", 2);
|
|
3952
3860
|
__decorateClass([
|
|
3953
|
-
(0,
|
|
3954
|
-
(0,
|
|
3861
|
+
(0, import_typeorm28.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3862
|
+
(0, import_typeorm28.Index)()
|
|
3955
3863
|
], Contract.prototype, "freelancerId", 2);
|
|
3956
3864
|
__decorateClass([
|
|
3957
|
-
(0,
|
|
3958
|
-
(0,
|
|
3865
|
+
(0, import_typeorm28.ManyToOne)(() => User, (user) => user.freelancerContracts),
|
|
3866
|
+
(0, import_typeorm28.JoinColumn)({ name: "freelancer_id" })
|
|
3959
3867
|
], Contract.prototype, "freelancer", 2);
|
|
3960
3868
|
__decorateClass([
|
|
3961
|
-
(0,
|
|
3962
|
-
(0, import_typeorm29.JoinColumn)({ name: "contract_id" })
|
|
3963
|
-
], Contract.prototype, "history", 2);
|
|
3964
|
-
__decorateClass([
|
|
3965
|
-
(0, import_typeorm29.Column)({ name: "duration", type: "integer", nullable: true })
|
|
3869
|
+
(0, import_typeorm28.Column)({ name: "duration", type: "integer", nullable: true })
|
|
3966
3870
|
], Contract.prototype, "duration", 2);
|
|
3967
3871
|
__decorateClass([
|
|
3968
|
-
(0,
|
|
3872
|
+
(0, import_typeorm28.Column)({
|
|
3969
3873
|
name: "status",
|
|
3970
3874
|
type: "enum",
|
|
3971
3875
|
enum: ContractStatusEnum,
|
|
@@ -3973,7 +3877,7 @@ __decorateClass([
|
|
|
3973
3877
|
})
|
|
3974
3878
|
], Contract.prototype, "status", 2);
|
|
3975
3879
|
__decorateClass([
|
|
3976
|
-
(0,
|
|
3880
|
+
(0, import_typeorm28.Column)({
|
|
3977
3881
|
name: "type",
|
|
3978
3882
|
type: "enum",
|
|
3979
3883
|
enum: ContractTypeEnum,
|
|
@@ -3981,10 +3885,10 @@ __decorateClass([
|
|
|
3981
3885
|
})
|
|
3982
3886
|
], Contract.prototype, "type", 2);
|
|
3983
3887
|
__decorateClass([
|
|
3984
|
-
(0,
|
|
3888
|
+
(0, import_typeorm28.Column)({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
3985
3889
|
], Contract.prototype, "invoicingCycle", 2);
|
|
3986
3890
|
__decorateClass([
|
|
3987
|
-
(0,
|
|
3891
|
+
(0, import_typeorm28.Column)({
|
|
3988
3892
|
name: "escrow_deposite_amount",
|
|
3989
3893
|
type: "decimal",
|
|
3990
3894
|
precision: 10,
|
|
@@ -3993,80 +3897,80 @@ __decorateClass([
|
|
|
3993
3897
|
})
|
|
3994
3898
|
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
3995
3899
|
__decorateClass([
|
|
3996
|
-
(0,
|
|
3900
|
+
(0, import_typeorm28.Column)({
|
|
3997
3901
|
name: "start_date",
|
|
3998
3902
|
type: "timestamp with time zone",
|
|
3999
3903
|
nullable: true
|
|
4000
3904
|
})
|
|
4001
3905
|
], Contract.prototype, "startDate", 2);
|
|
4002
3906
|
__decorateClass([
|
|
4003
|
-
(0,
|
|
3907
|
+
(0, import_typeorm28.Column)({
|
|
4004
3908
|
name: "end_date",
|
|
4005
3909
|
type: "timestamp with time zone",
|
|
4006
3910
|
nullable: true
|
|
4007
3911
|
})
|
|
4008
3912
|
], Contract.prototype, "endDate", 2);
|
|
4009
3913
|
__decorateClass([
|
|
4010
|
-
(0,
|
|
3914
|
+
(0, import_typeorm28.Column)({ name: "original_document_url", type: "varchar", nullable: true })
|
|
4011
3915
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
4012
3916
|
__decorateClass([
|
|
4013
|
-
(0,
|
|
3917
|
+
(0, import_typeorm28.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
4014
3918
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
4015
3919
|
__decorateClass([
|
|
4016
|
-
(0,
|
|
3920
|
+
(0, import_typeorm28.Column)({
|
|
4017
3921
|
name: "client_signed_at",
|
|
4018
3922
|
type: "timestamp with time zone",
|
|
4019
3923
|
nullable: true
|
|
4020
3924
|
})
|
|
4021
3925
|
], Contract.prototype, "clientSignedAt", 2);
|
|
4022
3926
|
__decorateClass([
|
|
4023
|
-
(0,
|
|
3927
|
+
(0, import_typeorm28.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
4024
3928
|
], Contract.prototype, "freelancerViewed", 2);
|
|
4025
3929
|
__decorateClass([
|
|
4026
|
-
(0,
|
|
3930
|
+
(0, import_typeorm28.Column)({
|
|
4027
3931
|
name: "freelancer_viewed_at",
|
|
4028
3932
|
type: "timestamp with time zone",
|
|
4029
3933
|
nullable: true
|
|
4030
3934
|
})
|
|
4031
3935
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
4032
3936
|
__decorateClass([
|
|
4033
|
-
(0,
|
|
3937
|
+
(0, import_typeorm28.Column)({
|
|
4034
3938
|
name: "freelancer_signed_at",
|
|
4035
3939
|
type: "timestamp with time zone",
|
|
4036
3940
|
nullable: true
|
|
4037
3941
|
})
|
|
4038
3942
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
4039
3943
|
__decorateClass([
|
|
4040
|
-
(0,
|
|
3944
|
+
(0, import_typeorm28.Column)({
|
|
4041
3945
|
name: "rejectd_at",
|
|
4042
3946
|
type: "timestamp with time zone",
|
|
4043
3947
|
nullable: true
|
|
4044
3948
|
})
|
|
4045
3949
|
], Contract.prototype, "rejectedAt", 2);
|
|
4046
3950
|
__decorateClass([
|
|
4047
|
-
(0,
|
|
3951
|
+
(0, import_typeorm28.Column)({ name: "reject_reason", type: "varchar", nullable: true })
|
|
4048
3952
|
], Contract.prototype, "rejectReason", 2);
|
|
4049
3953
|
__decorateClass([
|
|
4050
|
-
(0,
|
|
3954
|
+
(0, import_typeorm28.Column)({ name: "resend_count", type: "integer", default: 0 })
|
|
4051
3955
|
], Contract.prototype, "resendCount", 2);
|
|
4052
3956
|
__decorateClass([
|
|
4053
|
-
(0,
|
|
3957
|
+
(0, import_typeorm28.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
4054
3958
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
4055
3959
|
__decorateClass([
|
|
4056
|
-
(0,
|
|
3960
|
+
(0, import_typeorm28.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
4057
3961
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
4058
3962
|
__decorateClass([
|
|
4059
|
-
(0,
|
|
3963
|
+
(0, import_typeorm28.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
4060
3964
|
], Contract.prototype, "signaturePositions", 2);
|
|
4061
3965
|
__decorateClass([
|
|
4062
|
-
(0,
|
|
3966
|
+
(0, import_typeorm28.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
4063
3967
|
], Contract.prototype, "escrowWallet", 2);
|
|
4064
3968
|
Contract = __decorateClass([
|
|
4065
|
-
(0,
|
|
3969
|
+
(0, import_typeorm28.Entity)("contracts")
|
|
4066
3970
|
], Contract);
|
|
4067
3971
|
|
|
4068
3972
|
// src/entities/timesheets.entity.ts
|
|
4069
|
-
var
|
|
3973
|
+
var import_typeorm29 = require("typeorm");
|
|
4070
3974
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
4071
3975
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
4072
3976
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -4079,89 +3983,126 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
4079
3983
|
var Timesheet = class extends BaseEntity {
|
|
4080
3984
|
};
|
|
4081
3985
|
__decorateClass([
|
|
4082
|
-
(0,
|
|
4083
|
-
(0,
|
|
3986
|
+
(0, import_typeorm29.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3987
|
+
(0, import_typeorm29.Index)()
|
|
4084
3988
|
], Timesheet.prototype, "jobId", 2);
|
|
4085
3989
|
__decorateClass([
|
|
4086
|
-
(0,
|
|
4087
|
-
(0,
|
|
3990
|
+
(0, import_typeorm29.ManyToOne)(() => Job, (job) => job.timesheets),
|
|
3991
|
+
(0, import_typeorm29.JoinColumn)({ name: "job_id" })
|
|
4088
3992
|
], Timesheet.prototype, "job", 2);
|
|
4089
3993
|
__decorateClass([
|
|
4090
|
-
(0,
|
|
4091
|
-
(0,
|
|
3994
|
+
(0, import_typeorm29.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3995
|
+
(0, import_typeorm29.Index)()
|
|
4092
3996
|
], Timesheet.prototype, "clientId", 2);
|
|
4093
3997
|
__decorateClass([
|
|
4094
|
-
(0,
|
|
4095
|
-
(0,
|
|
3998
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.clientTimesheets),
|
|
3999
|
+
(0, import_typeorm29.JoinColumn)({ name: "client_id" })
|
|
4096
4000
|
], Timesheet.prototype, "client", 2);
|
|
4097
4001
|
__decorateClass([
|
|
4098
|
-
(0,
|
|
4099
|
-
(0,
|
|
4002
|
+
(0, import_typeorm29.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4003
|
+
(0, import_typeorm29.Index)()
|
|
4100
4004
|
], Timesheet.prototype, "freelancerId", 2);
|
|
4101
4005
|
__decorateClass([
|
|
4102
|
-
(0,
|
|
4103
|
-
(0,
|
|
4006
|
+
(0, import_typeorm29.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
|
|
4007
|
+
(0, import_typeorm29.JoinColumn)({ name: "freelancer_id" })
|
|
4104
4008
|
], Timesheet.prototype, "freelancer", 2);
|
|
4105
4009
|
__decorateClass([
|
|
4106
|
-
(0,
|
|
4010
|
+
(0, import_typeorm29.Column)({
|
|
4107
4011
|
name: "start_date",
|
|
4108
4012
|
type: "date",
|
|
4109
4013
|
nullable: true
|
|
4110
4014
|
})
|
|
4111
4015
|
], Timesheet.prototype, "startDate", 2);
|
|
4112
4016
|
__decorateClass([
|
|
4113
|
-
(0,
|
|
4017
|
+
(0, import_typeorm29.Column)({
|
|
4114
4018
|
name: "end_date",
|
|
4115
4019
|
type: "date",
|
|
4116
4020
|
nullable: true
|
|
4117
4021
|
})
|
|
4118
4022
|
], Timesheet.prototype, "endDate", 2);
|
|
4119
4023
|
__decorateClass([
|
|
4120
|
-
(0,
|
|
4024
|
+
(0, import_typeorm29.Column)({ name: "start_time", type: "varchar", nullable: true })
|
|
4121
4025
|
], Timesheet.prototype, "startTime", 2);
|
|
4122
4026
|
__decorateClass([
|
|
4123
|
-
(0,
|
|
4027
|
+
(0, import_typeorm29.Column)({ name: "end_time", type: "varchar", nullable: true })
|
|
4124
4028
|
], Timesheet.prototype, "endTime", 2);
|
|
4125
4029
|
__decorateClass([
|
|
4126
|
-
(0,
|
|
4030
|
+
(0, import_typeorm29.Column)({ name: "worked_hours", type: "varchar", nullable: true })
|
|
4127
4031
|
], Timesheet.prototype, "workedHours", 2);
|
|
4128
4032
|
__decorateClass([
|
|
4129
|
-
(0,
|
|
4033
|
+
(0, import_typeorm29.Column)({ name: "task_id", type: "integer", nullable: true })
|
|
4130
4034
|
], Timesheet.prototype, "taskId", 2);
|
|
4131
4035
|
__decorateClass([
|
|
4132
|
-
(0,
|
|
4036
|
+
(0, import_typeorm29.Column)({ name: "task_name", type: "varchar", nullable: true })
|
|
4133
4037
|
], Timesheet.prototype, "taskName", 2);
|
|
4134
4038
|
__decorateClass([
|
|
4135
|
-
(0,
|
|
4039
|
+
(0, import_typeorm29.Column)({ name: "description", type: "varchar", nullable: true })
|
|
4136
4040
|
], Timesheet.prototype, "description", 2);
|
|
4137
4041
|
__decorateClass([
|
|
4138
|
-
(0,
|
|
4042
|
+
(0, import_typeorm29.Column)({ name: "week_start_date", type: "date", nullable: true })
|
|
4139
4043
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
4140
4044
|
__decorateClass([
|
|
4141
|
-
(0,
|
|
4045
|
+
(0, import_typeorm29.Column)({ name: "week_end_date", type: "date", nullable: true })
|
|
4142
4046
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
4143
4047
|
__decorateClass([
|
|
4144
|
-
(0,
|
|
4048
|
+
(0, import_typeorm29.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
4145
4049
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
4146
4050
|
__decorateClass([
|
|
4147
|
-
(0,
|
|
4051
|
+
(0, import_typeorm29.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
4148
4052
|
], Timesheet.prototype, "submittedAt", 2);
|
|
4149
4053
|
__decorateClass([
|
|
4150
|
-
(0,
|
|
4054
|
+
(0, import_typeorm29.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
4151
4055
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
4152
4056
|
__decorateClass([
|
|
4153
|
-
(0,
|
|
4057
|
+
(0, import_typeorm29.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
4154
4058
|
], Timesheet.prototype, "approvedAt", 2);
|
|
4155
4059
|
__decorateClass([
|
|
4156
|
-
(0,
|
|
4060
|
+
(0, import_typeorm29.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
4157
4061
|
], Timesheet.prototype, "status", 2);
|
|
4158
4062
|
__decorateClass([
|
|
4159
|
-
(0,
|
|
4063
|
+
(0, import_typeorm29.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
4160
4064
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
4161
4065
|
Timesheet = __decorateClass([
|
|
4162
|
-
(0,
|
|
4066
|
+
(0, import_typeorm29.Entity)("timesheets")
|
|
4163
4067
|
], Timesheet);
|
|
4164
4068
|
|
|
4069
|
+
// src/entities/job-location.entity.ts
|
|
4070
|
+
var import_typeorm30 = require("typeorm");
|
|
4071
|
+
var JobLocation2 = class extends BaseEntity {
|
|
4072
|
+
};
|
|
4073
|
+
__decorateClass([
|
|
4074
|
+
(0, import_typeorm30.Column)({ name: "job_id", type: "integer", nullable: false }),
|
|
4075
|
+
(0, import_typeorm30.Index)()
|
|
4076
|
+
], JobLocation2.prototype, "jobId", 2);
|
|
4077
|
+
__decorateClass([
|
|
4078
|
+
(0, import_typeorm30.ManyToOne)(() => Job, (job) => job.jobLocations),
|
|
4079
|
+
(0, import_typeorm30.JoinColumn)({ name: "job_id" })
|
|
4080
|
+
], JobLocation2.prototype, "job", 2);
|
|
4081
|
+
__decorateClass([
|
|
4082
|
+
(0, import_typeorm30.Column)({ name: "country_id", type: "int", nullable: false })
|
|
4083
|
+
], JobLocation2.prototype, "countryId", 2);
|
|
4084
|
+
__decorateClass([
|
|
4085
|
+
(0, import_typeorm30.ManyToOne)(() => Country),
|
|
4086
|
+
(0, import_typeorm30.JoinColumn)({ name: "country_id" })
|
|
4087
|
+
], JobLocation2.prototype, "country", 2);
|
|
4088
|
+
__decorateClass([
|
|
4089
|
+
(0, import_typeorm30.Column)({ name: "state_id", type: "int", nullable: false })
|
|
4090
|
+
], JobLocation2.prototype, "stateId", 2);
|
|
4091
|
+
__decorateClass([
|
|
4092
|
+
(0, import_typeorm30.ManyToOne)(() => State),
|
|
4093
|
+
(0, import_typeorm30.JoinColumn)({ name: "state_id" })
|
|
4094
|
+
], JobLocation2.prototype, "state", 2);
|
|
4095
|
+
__decorateClass([
|
|
4096
|
+
(0, import_typeorm30.Column)({ name: "city_id", type: "int", nullable: false })
|
|
4097
|
+
], JobLocation2.prototype, "cityId", 2);
|
|
4098
|
+
__decorateClass([
|
|
4099
|
+
(0, import_typeorm30.ManyToOne)(() => City),
|
|
4100
|
+
(0, import_typeorm30.JoinColumn)({ name: "city_id" })
|
|
4101
|
+
], JobLocation2.prototype, "city", 2);
|
|
4102
|
+
JobLocation2 = __decorateClass([
|
|
4103
|
+
(0, import_typeorm30.Entity)("job_locations")
|
|
4104
|
+
], JobLocation2);
|
|
4105
|
+
|
|
4165
4106
|
// src/entities/job.entity.ts
|
|
4166
4107
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
4167
4108
|
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
@@ -4170,6 +4111,11 @@ var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
|
4170
4111
|
JobLocationEnum2["BOTH"] = "BOTH";
|
|
4171
4112
|
return JobLocationEnum2;
|
|
4172
4113
|
})(JobLocationEnum || {});
|
|
4114
|
+
var typeOfExperienceEnum = /* @__PURE__ */ ((typeOfExperienceEnum2) => {
|
|
4115
|
+
typeOfExperienceEnum2["SINGLE"] = "SINGLE";
|
|
4116
|
+
typeOfExperienceEnum2["RANGE"] = "RANGE";
|
|
4117
|
+
return typeOfExperienceEnum2;
|
|
4118
|
+
})(typeOfExperienceEnum || {});
|
|
4173
4119
|
var TypeOfEmploymentEnum = /* @__PURE__ */ ((TypeOfEmploymentEnum2) => {
|
|
4174
4120
|
TypeOfEmploymentEnum2["FULLTIME"] = "FULLTIME";
|
|
4175
4121
|
TypeOfEmploymentEnum2["PARTTIME"] = "PARTTIME";
|
|
@@ -4269,9 +4215,23 @@ __decorateClass([
|
|
|
4269
4215
|
__decorateClass([
|
|
4270
4216
|
(0, import_typeorm31.Column)({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4271
4217
|
], Job.prototype, "academicQualification", 2);
|
|
4218
|
+
__decorateClass([
|
|
4219
|
+
(0, import_typeorm31.Column)({
|
|
4220
|
+
name: "type_of_experience",
|
|
4221
|
+
type: "enum",
|
|
4222
|
+
enum: typeOfExperienceEnum,
|
|
4223
|
+
nullable: true
|
|
4224
|
+
})
|
|
4225
|
+
], Job.prototype, "typeOfExperience", 2);
|
|
4272
4226
|
__decorateClass([
|
|
4273
4227
|
(0, import_typeorm31.Column)({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4274
4228
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4229
|
+
__decorateClass([
|
|
4230
|
+
(0, import_typeorm31.Column)({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4231
|
+
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4232
|
+
__decorateClass([
|
|
4233
|
+
(0, import_typeorm31.Column)({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4234
|
+
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4275
4235
|
__decorateClass([
|
|
4276
4236
|
(0, import_typeorm31.Column)({ name: "business_industry", type: "varchar", nullable: true })
|
|
4277
4237
|
], Job.prototype, "businessIndustry", 2);
|
|
@@ -4455,6 +4415,11 @@ __decorateClass([
|
|
|
4455
4415
|
__decorateClass([
|
|
4456
4416
|
(0, import_typeorm31.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4457
4417
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4418
|
+
__decorateClass([
|
|
4419
|
+
(0, import_typeorm31.OneToMany)(() => JobLocation2, (jobLocation) => jobLocation.job, {
|
|
4420
|
+
cascade: true
|
|
4421
|
+
})
|
|
4422
|
+
], Job.prototype, "jobLocations", 2);
|
|
4458
4423
|
Job = __decorateClass([
|
|
4459
4424
|
(0, import_typeorm31.Entity)("jobs")
|
|
4460
4425
|
], Job);
|
|
@@ -5030,6 +4995,14 @@ __decorateClass([
|
|
|
5030
4995
|
__decorateClass([
|
|
5031
4996
|
(0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5032
4997
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
4998
|
+
__decorateClass([
|
|
4999
|
+
(0, import_typeorm48.Column)({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5000
|
+
(0, import_typeorm48.Index)()
|
|
5001
|
+
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5002
|
+
__decorateClass([
|
|
5003
|
+
(0, import_typeorm48.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5004
|
+
(0, import_typeorm48.JoinColumn)({ name: "candidate_id" })
|
|
5005
|
+
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5033
5006
|
__decorateClass([
|
|
5034
5007
|
(0, import_typeorm48.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5035
5008
|
], AssessmetQuestion.prototype, "options", 2);
|
|
@@ -5836,6 +5809,9 @@ __decorateClass([
|
|
|
5836
5809
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
5837
5810
|
)
|
|
5838
5811
|
], User.prototype, "freelancerDeclaration", 2);
|
|
5812
|
+
__decorateClass([
|
|
5813
|
+
(0, import_typeorm61.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
5814
|
+
], User.prototype, "freelancerMcq", 2);
|
|
5839
5815
|
__decorateClass([
|
|
5840
5816
|
(0, import_typeorm61.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
5841
5817
|
], User.prototype, "freelancerAiInterview", 2);
|
|
@@ -8528,10 +8504,6 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8528
8504
|
CompanyRolePermission,
|
|
8529
8505
|
CompanySkill,
|
|
8530
8506
|
Contract,
|
|
8531
|
-
ContractHistory,
|
|
8532
|
-
ContractHistoryActionEnum,
|
|
8533
|
-
ContractHistoryStatusEnum,
|
|
8534
|
-
ContractHistoryTypeEnum,
|
|
8535
8507
|
ContractRMQAdapter,
|
|
8536
8508
|
ContractStatusEnum,
|
|
8537
8509
|
ContractTCPAdapter,
|
|
@@ -8759,5 +8731,6 @@ RecommendationWeightageConfig = __decorateClass([
|
|
|
8759
8731
|
WalletTransaction,
|
|
8760
8732
|
WalletTransactionStatusEnum,
|
|
8761
8733
|
WalletTransactionTypeEnum,
|
|
8762
|
-
ZoomMeetingLog
|
|
8734
|
+
ZoomMeetingLog,
|
|
8735
|
+
typeOfExperienceEnum
|
|
8763
8736
|
});
|