@experts_hub/shared 1.0.531 → 1.0.535
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/ai-interview-reschedule-request.entity.d.ts +18 -0
- package/dist/entities/ai-interview.entity.d.ts +2 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +1 -0
- package/dist/index.d.mts +23 -5
- package/dist/index.d.ts +23 -5
- package/dist/index.js +1148 -1082
- package/dist/index.mjs +1063 -994
- package/dist/modules/job/dto/job-basic-information-v2.dto.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1255,15 +1255,21 @@ var JobLocationDto = class {
|
|
|
1255
1255
|
};
|
|
1256
1256
|
__decorateClass([
|
|
1257
1257
|
IsOptional15(),
|
|
1258
|
-
|
|
1258
|
+
ValidateIf4((o) => o.countryId !== null && o.countryId !== void 0),
|
|
1259
|
+
IsNumber3({}, { message: "Country id must be a number" }),
|
|
1260
|
+
Type3(() => Number)
|
|
1259
1261
|
], JobLocationDto.prototype, "countryId", 2);
|
|
1260
1262
|
__decorateClass([
|
|
1261
1263
|
IsOptional15(),
|
|
1262
|
-
|
|
1264
|
+
ValidateIf4((o) => o.stateId !== null && o.stateId !== void 0),
|
|
1265
|
+
IsNumber3({}, { message: "State id must be a number" }),
|
|
1266
|
+
Type3(() => Number)
|
|
1263
1267
|
], JobLocationDto.prototype, "stateId", 2);
|
|
1264
1268
|
__decorateClass([
|
|
1265
1269
|
IsOptional15(),
|
|
1266
|
-
|
|
1270
|
+
ValidateIf4((o) => o.cityId !== null && o.cityId !== void 0),
|
|
1271
|
+
IsNumber3({}, { message: "City id must be a number" }),
|
|
1272
|
+
Type3(() => Number)
|
|
1267
1273
|
], JobLocationDto.prototype, "cityId", 2);
|
|
1268
1274
|
var JobBasicInformationV2Dto = class {
|
|
1269
1275
|
constructor() {
|
|
@@ -1304,14 +1310,6 @@ __decorateClass([
|
|
|
1304
1310
|
IsOptional15(),
|
|
1305
1311
|
Type3(() => String)
|
|
1306
1312
|
], JobBasicInformationV2Dto.prototype, "goodToHaveSkills", 2);
|
|
1307
|
-
__decorateClass([
|
|
1308
|
-
ValidateIf4((o) => !o.isDraft && (o.locationMode === "ONSITE" /* ONSITE */ || o.locationMode === "HYBRID" /* HYBRID */)),
|
|
1309
|
-
IsArray2({ message: "locations must be an array" }),
|
|
1310
|
-
ArrayNotEmpty2({ message: "Please select at least one location" }),
|
|
1311
|
-
ValidateNested({ each: true }),
|
|
1312
|
-
Type3(() => JobLocationDto),
|
|
1313
|
-
IsOptional15()
|
|
1314
|
-
], JobBasicInformationV2Dto.prototype, "locations", 2);
|
|
1315
1313
|
__decorateClass([
|
|
1316
1314
|
ValidateIf4((o) => !o.isDraft),
|
|
1317
1315
|
IsNumber3({}, { message: "Openings must be a number" }),
|
|
@@ -1326,6 +1324,13 @@ __decorateClass([
|
|
|
1326
1324
|
)}`
|
|
1327
1325
|
})
|
|
1328
1326
|
], JobBasicInformationV2Dto.prototype, "locationMode", 2);
|
|
1327
|
+
__decorateClass([
|
|
1328
|
+
ValidateIf4((o) => !o.isDraft && (o.locationMode === "ONSITE" /* ONSITE */ || o.locationMode === "HYBRID" /* HYBRID */)),
|
|
1329
|
+
IsArray2({ message: "locations must be an array" }),
|
|
1330
|
+
ValidateNested({ each: true }),
|
|
1331
|
+
Type3(() => JobLocationDto),
|
|
1332
|
+
IsOptional15()
|
|
1333
|
+
], JobBasicInformationV2Dto.prototype, "locations", 2);
|
|
1329
1334
|
__decorateClass([
|
|
1330
1335
|
ValidateIf4((o) => !o.isDraft),
|
|
1331
1336
|
IsEnum12(EmploymentTypeV2, {
|
|
@@ -1470,6 +1475,7 @@ __decorateClass([
|
|
|
1470
1475
|
IsString17({ message: "Please enter valid first name." })
|
|
1471
1476
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1472
1477
|
__decorateClass([
|
|
1478
|
+
IsOptional16(),
|
|
1473
1479
|
IsNotEmpty34({ message: "Please enter last name." }),
|
|
1474
1480
|
IsString17({ message: "Please enter valid last name." })
|
|
1475
1481
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
@@ -1704,17 +1710,17 @@ import {
|
|
|
1704
1710
|
} from "class-validator";
|
|
1705
1711
|
|
|
1706
1712
|
// src/entities/rating.entity.ts
|
|
1707
|
-
import { Entity as
|
|
1713
|
+
import { Entity as Entity64, Column as Column65, ManyToOne as ManyToOne59, JoinColumn as JoinColumn60, Index as Index57 } from "typeorm";
|
|
1708
1714
|
|
|
1709
1715
|
// src/entities/user.entity.ts
|
|
1710
1716
|
import {
|
|
1711
|
-
Entity as
|
|
1712
|
-
Column as
|
|
1713
|
-
OneToMany as
|
|
1717
|
+
Entity as Entity63,
|
|
1718
|
+
Column as Column64,
|
|
1719
|
+
OneToMany as OneToMany22,
|
|
1714
1720
|
OneToOne as OneToOne12,
|
|
1715
1721
|
Index as Index56,
|
|
1716
|
-
ManyToOne as
|
|
1717
|
-
JoinColumn as
|
|
1722
|
+
ManyToOne as ManyToOne58,
|
|
1723
|
+
JoinColumn as JoinColumn59
|
|
1718
1724
|
} from "typeorm";
|
|
1719
1725
|
|
|
1720
1726
|
// src/entities/base.entity.ts
|
|
@@ -2551,12 +2557,12 @@ FreelancerProfile = __decorateClass([
|
|
|
2551
2557
|
|
|
2552
2558
|
// src/entities/job.entity.ts
|
|
2553
2559
|
import {
|
|
2554
|
-
Entity as
|
|
2555
|
-
Column as
|
|
2560
|
+
Entity as Entity32,
|
|
2561
|
+
Column as Column33,
|
|
2556
2562
|
Index as Index25,
|
|
2557
|
-
ManyToOne as
|
|
2558
|
-
JoinColumn as
|
|
2559
|
-
OneToMany as
|
|
2563
|
+
ManyToOne as ManyToOne31,
|
|
2564
|
+
JoinColumn as JoinColumn31,
|
|
2565
|
+
OneToMany as OneToMany13
|
|
2560
2566
|
} from "typeorm";
|
|
2561
2567
|
|
|
2562
2568
|
// src/entities/job-skill.entity.ts
|
|
@@ -2715,12 +2721,12 @@ JobApplication = __decorateClass([
|
|
|
2715
2721
|
|
|
2716
2722
|
// src/entities/interview.entity.ts
|
|
2717
2723
|
import {
|
|
2718
|
-
Entity as
|
|
2719
|
-
Column as
|
|
2724
|
+
Entity as Entity19,
|
|
2725
|
+
Column as Column20,
|
|
2720
2726
|
Index as Index12,
|
|
2721
|
-
ManyToOne as
|
|
2722
|
-
JoinColumn as
|
|
2723
|
-
OneToMany as
|
|
2727
|
+
ManyToOne as ManyToOne18,
|
|
2728
|
+
JoinColumn as JoinColumn18,
|
|
2729
|
+
OneToMany as OneToMany9
|
|
2724
2730
|
} from "typeorm";
|
|
2725
2731
|
|
|
2726
2732
|
// src/entities/interview-skill.entity.ts
|
|
@@ -2923,7 +2929,59 @@ InterviewInvite = __decorateClass([
|
|
|
2923
2929
|
], InterviewInvite);
|
|
2924
2930
|
|
|
2925
2931
|
// src/entities/ai-interview.entity.ts
|
|
2926
|
-
import { Entity as
|
|
2932
|
+
import { Entity as Entity15, Column as Column16, Index as Index10, ManyToOne as ManyToOne14, JoinColumn as JoinColumn14, OneToMany as OneToMany6 } from "typeorm";
|
|
2933
|
+
|
|
2934
|
+
// src/entities/ai-interview-reschedule-request.entity.ts
|
|
2935
|
+
import {
|
|
2936
|
+
Entity as Entity14,
|
|
2937
|
+
Column as Column15,
|
|
2938
|
+
ManyToOne as ManyToOne13,
|
|
2939
|
+
JoinColumn as JoinColumn13
|
|
2940
|
+
} from "typeorm";
|
|
2941
|
+
var AiInterviewRescheduleRequestStatusEnum = /* @__PURE__ */ ((AiInterviewRescheduleRequestStatusEnum2) => {
|
|
2942
|
+
AiInterviewRescheduleRequestStatusEnum2["PENDING"] = "PENDING";
|
|
2943
|
+
AiInterviewRescheduleRequestStatusEnum2["APPROVED"] = "APPROVED";
|
|
2944
|
+
AiInterviewRescheduleRequestStatusEnum2["REJECTED"] = "REJECTED";
|
|
2945
|
+
return AiInterviewRescheduleRequestStatusEnum2;
|
|
2946
|
+
})(AiInterviewRescheduleRequestStatusEnum || {});
|
|
2947
|
+
var AiInterviewRescheduleRequest = class extends BaseEntity {
|
|
2948
|
+
};
|
|
2949
|
+
__decorateClass([
|
|
2950
|
+
Column15({ name: "candidate_id", type: "integer", nullable: true })
|
|
2951
|
+
], AiInterviewRescheduleRequest.prototype, "candidateId", 2);
|
|
2952
|
+
__decorateClass([
|
|
2953
|
+
ManyToOne13(() => User, (user) => user.freelancerAiInterviewRescheduleRequests, { nullable: true }),
|
|
2954
|
+
JoinColumn13({ name: "candidate_id" })
|
|
2955
|
+
], AiInterviewRescheduleRequest.prototype, "candidate", 2);
|
|
2956
|
+
__decorateClass([
|
|
2957
|
+
Column15({ name: "aiinterview_id", type: "integer", nullable: true })
|
|
2958
|
+
], AiInterviewRescheduleRequest.prototype, "aiInterviewId", 2);
|
|
2959
|
+
__decorateClass([
|
|
2960
|
+
ManyToOne13(() => AiInterview, (aiInterview) => aiInterview.rescheduleRequests),
|
|
2961
|
+
JoinColumn13({ name: "aiinterview_id" })
|
|
2962
|
+
], AiInterviewRescheduleRequest.prototype, "aiInterview", 2);
|
|
2963
|
+
__decorateClass([
|
|
2964
|
+
Column15({ name: "rescheduled_date", type: "timestamp with time zone", nullable: true })
|
|
2965
|
+
], AiInterviewRescheduleRequest.prototype, "rescheduledDate", 2);
|
|
2966
|
+
__decorateClass([
|
|
2967
|
+
Column15({
|
|
2968
|
+
name: "status",
|
|
2969
|
+
type: "enum",
|
|
2970
|
+
enum: AiInterviewRescheduleRequestStatusEnum,
|
|
2971
|
+
default: "PENDING" /* PENDING */
|
|
2972
|
+
})
|
|
2973
|
+
], AiInterviewRescheduleRequest.prototype, "status", 2);
|
|
2974
|
+
__decorateClass([
|
|
2975
|
+
Column15({ name: "client_reject_reason", type: "varchar", nullable: true })
|
|
2976
|
+
], AiInterviewRescheduleRequest.prototype, "clientRejectReason", 2);
|
|
2977
|
+
__decorateClass([
|
|
2978
|
+
Column15({ name: "freelancer_request_reason", type: "varchar", nullable: true })
|
|
2979
|
+
], AiInterviewRescheduleRequest.prototype, "freelancerRequestReason", 2);
|
|
2980
|
+
AiInterviewRescheduleRequest = __decorateClass([
|
|
2981
|
+
Entity14("ai_interview_reschedule_requests")
|
|
2982
|
+
], AiInterviewRescheduleRequest);
|
|
2983
|
+
|
|
2984
|
+
// src/entities/ai-interview.entity.ts
|
|
2927
2985
|
var AiInterviewStatusEnum = /* @__PURE__ */ ((AiInterviewStatusEnum2) => {
|
|
2928
2986
|
AiInterviewStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2929
2987
|
AiInterviewStatusEnum2["ATTEMPTED"] = "ATTEMPTED";
|
|
@@ -2948,43 +3006,43 @@ var ResultStatusEnum = /* @__PURE__ */ ((ResultStatusEnum2) => {
|
|
|
2948
3006
|
var AiInterview = class extends BaseEntity {
|
|
2949
3007
|
};
|
|
2950
3008
|
__decorateClass([
|
|
2951
|
-
|
|
3009
|
+
Column16({ name: "ai_interview_unique_id", type: "varchar", nullable: true, unique: true })
|
|
2952
3010
|
], AiInterview.prototype, "aiInterviewUniqueId", 2);
|
|
2953
3011
|
__decorateClass([
|
|
2954
|
-
|
|
3012
|
+
Column16({ name: "candidate_id", type: "integer", nullable: true }),
|
|
2955
3013
|
Index10()
|
|
2956
3014
|
], AiInterview.prototype, "candidateId", 2);
|
|
2957
3015
|
__decorateClass([
|
|
2958
|
-
|
|
2959
|
-
|
|
3016
|
+
ManyToOne14(() => User, (user) => user.freelancerAiInterview),
|
|
3017
|
+
JoinColumn14({ name: "candidate_id" })
|
|
2960
3018
|
], AiInterview.prototype, "candidate", 2);
|
|
2961
3019
|
__decorateClass([
|
|
2962
|
-
|
|
3020
|
+
Column16({ name: "interviwer_id", type: "integer", nullable: true }),
|
|
2963
3021
|
Index10()
|
|
2964
3022
|
], AiInterview.prototype, "interviwerId", 2);
|
|
2965
3023
|
__decorateClass([
|
|
2966
|
-
|
|
2967
|
-
|
|
3024
|
+
ManyToOne14(() => User, (user) => user.companyAiInterview),
|
|
3025
|
+
JoinColumn14({ name: "interviwer_id" })
|
|
2968
3026
|
], AiInterview.prototype, "interviwer", 2);
|
|
2969
3027
|
__decorateClass([
|
|
2970
|
-
|
|
3028
|
+
Column16({ name: "interview_id", type: "integer", nullable: true })
|
|
2971
3029
|
], AiInterview.prototype, "interviewId", 2);
|
|
2972
3030
|
__decorateClass([
|
|
2973
|
-
|
|
2974
|
-
|
|
3031
|
+
ManyToOne14(() => Interview, (interview) => interview.aiInterviews),
|
|
3032
|
+
JoinColumn14({ name: "interview_id" })
|
|
2975
3033
|
], AiInterview.prototype, "interview", 2);
|
|
2976
3034
|
__decorateClass([
|
|
2977
|
-
|
|
3035
|
+
Column16({ name: "invite_id", type: "integer", nullable: true })
|
|
2978
3036
|
], AiInterview.prototype, "inviteId", 2);
|
|
2979
3037
|
__decorateClass([
|
|
2980
|
-
|
|
3038
|
+
Column16({
|
|
2981
3039
|
name: "candidate_interview_id",
|
|
2982
3040
|
type: "varchar",
|
|
2983
3041
|
nullable: true
|
|
2984
3042
|
})
|
|
2985
3043
|
], AiInterview.prototype, "candidateInterviewId", 2);
|
|
2986
3044
|
__decorateClass([
|
|
2987
|
-
|
|
3045
|
+
Column16({
|
|
2988
3046
|
name: "candidate_interview_link",
|
|
2989
3047
|
type: "varchar",
|
|
2990
3048
|
nullable: true
|
|
@@ -2992,22 +3050,22 @@ __decorateClass([
|
|
|
2992
3050
|
Index10()
|
|
2993
3051
|
], AiInterview.prototype, "candidateInterviewLink", 2);
|
|
2994
3052
|
__decorateClass([
|
|
2995
|
-
|
|
3053
|
+
Column16({ name: "has_attempted", type: "boolean", default: false })
|
|
2996
3054
|
], AiInterview.prototype, "hasAttempted", 2);
|
|
2997
3055
|
__decorateClass([
|
|
2998
|
-
|
|
3056
|
+
Column16({ name: "attempted_at", type: "timestamp", nullable: true })
|
|
2999
3057
|
], AiInterview.prototype, "attemptedAt", 2);
|
|
3000
3058
|
__decorateClass([
|
|
3001
|
-
|
|
3059
|
+
Column16({ name: "completed_at", type: "timestamp", nullable: true })
|
|
3002
3060
|
], AiInterview.prototype, "completedAt", 2);
|
|
3003
3061
|
__decorateClass([
|
|
3004
|
-
|
|
3062
|
+
Column16({ name: "exited_at", type: "timestamp", nullable: true })
|
|
3005
3063
|
], AiInterview.prototype, "exitedAt", 2);
|
|
3006
3064
|
__decorateClass([
|
|
3007
|
-
|
|
3065
|
+
Column16({ name: "expired_at", type: "timestamp", nullable: true })
|
|
3008
3066
|
], AiInterview.prototype, "expiredAt", 2);
|
|
3009
3067
|
__decorateClass([
|
|
3010
|
-
|
|
3068
|
+
Column16({
|
|
3011
3069
|
name: "status",
|
|
3012
3070
|
type: "enum",
|
|
3013
3071
|
enum: AiInterviewStatusEnum,
|
|
@@ -3015,7 +3073,7 @@ __decorateClass([
|
|
|
3015
3073
|
})
|
|
3016
3074
|
], AiInterview.prototype, "status", 2);
|
|
3017
3075
|
__decorateClass([
|
|
3018
|
-
|
|
3076
|
+
Column16({
|
|
3019
3077
|
name: "result_status",
|
|
3020
3078
|
type: "enum",
|
|
3021
3079
|
enum: ResultStatusEnum,
|
|
@@ -3023,36 +3081,39 @@ __decorateClass([
|
|
|
3023
3081
|
})
|
|
3024
3082
|
], AiInterview.prototype, "resultStatus", 2);
|
|
3025
3083
|
__decorateClass([
|
|
3026
|
-
|
|
3084
|
+
Column16({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
3027
3085
|
], AiInterview.prototype, "iframeResponse", 2);
|
|
3028
3086
|
__decorateClass([
|
|
3029
|
-
|
|
3087
|
+
Column16({ name: "interview_insight", type: "jsonb", nullable: true })
|
|
3030
3088
|
], AiInterview.prototype, "interviewInsight", 2);
|
|
3031
3089
|
__decorateClass([
|
|
3032
|
-
|
|
3090
|
+
Column16({ name: "is_f2f_interview_scheduled", type: "boolean", default: false })
|
|
3033
3091
|
], AiInterview.prototype, "isF2fInterviewScheduled", 2);
|
|
3034
3092
|
__decorateClass([
|
|
3035
|
-
|
|
3093
|
+
Column16({ name: "is_contract_sent", type: "boolean", default: false })
|
|
3036
3094
|
], AiInterview.prototype, "isContractSent", 2);
|
|
3095
|
+
__decorateClass([
|
|
3096
|
+
OneToMany6(() => AiInterviewRescheduleRequest, (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.aiInterview)
|
|
3097
|
+
], AiInterview.prototype, "rescheduleRequests", 2);
|
|
3037
3098
|
AiInterview = __decorateClass([
|
|
3038
|
-
|
|
3099
|
+
Entity15("ai_interviews")
|
|
3039
3100
|
], AiInterview);
|
|
3040
3101
|
|
|
3041
3102
|
// src/entities/f2f-interview.entity.ts
|
|
3042
3103
|
import {
|
|
3043
|
-
Entity as
|
|
3044
|
-
Column as
|
|
3045
|
-
ManyToOne as
|
|
3046
|
-
JoinColumn as
|
|
3047
|
-
OneToMany as
|
|
3104
|
+
Entity as Entity18,
|
|
3105
|
+
Column as Column19,
|
|
3106
|
+
ManyToOne as ManyToOne17,
|
|
3107
|
+
JoinColumn as JoinColumn17,
|
|
3108
|
+
OneToMany as OneToMany8
|
|
3048
3109
|
} from "typeorm";
|
|
3049
3110
|
|
|
3050
3111
|
// src/entities/f2f-interview-reschedule-request.entity.ts
|
|
3051
3112
|
import {
|
|
3052
|
-
Entity as
|
|
3053
|
-
Column as
|
|
3054
|
-
ManyToOne as
|
|
3055
|
-
JoinColumn as
|
|
3113
|
+
Entity as Entity16,
|
|
3114
|
+
Column as Column17,
|
|
3115
|
+
ManyToOne as ManyToOne15,
|
|
3116
|
+
JoinColumn as JoinColumn15
|
|
3056
3117
|
} from "typeorm";
|
|
3057
3118
|
var F2fInterviewRescheduleRequestStatusEnum = /* @__PURE__ */ ((F2fInterviewRescheduleRequestStatusEnum2) => {
|
|
3058
3119
|
F2fInterviewRescheduleRequestStatusEnum2["PENDING"] = "PENDING";
|
|
@@ -3065,27 +3126,27 @@ var F2fInterviewRescheduleRequestStatusEnum = /* @__PURE__ */ ((F2fInterviewResc
|
|
|
3065
3126
|
var F2fInterviewRescheduleRequest = class extends BaseEntity {
|
|
3066
3127
|
};
|
|
3067
3128
|
__decorateClass([
|
|
3068
|
-
|
|
3129
|
+
Column17({ name: "candidate_id", type: "integer", nullable: true })
|
|
3069
3130
|
], F2fInterviewRescheduleRequest.prototype, "candidateId", 2);
|
|
3070
3131
|
__decorateClass([
|
|
3071
|
-
|
|
3072
|
-
|
|
3132
|
+
ManyToOne15(() => User, (user) => user.freelancerF2FInterviewRescheduleRequests, { nullable: true }),
|
|
3133
|
+
JoinColumn15({ name: "candidate_id" })
|
|
3073
3134
|
], F2fInterviewRescheduleRequest.prototype, "candidate", 2);
|
|
3074
3135
|
__decorateClass([
|
|
3075
|
-
|
|
3136
|
+
Column17({ name: "f2finterview_id", type: "integer", nullable: true })
|
|
3076
3137
|
], F2fInterviewRescheduleRequest.prototype, "f2fInterviewId", 2);
|
|
3077
3138
|
__decorateClass([
|
|
3078
|
-
|
|
3079
|
-
|
|
3139
|
+
ManyToOne15(() => F2FInterview, (f2FInterview) => f2FInterview.rescheduleRequests),
|
|
3140
|
+
JoinColumn15({ name: "f2finterview_id" })
|
|
3080
3141
|
], F2fInterviewRescheduleRequest.prototype, "f2fInterview", 2);
|
|
3081
3142
|
__decorateClass([
|
|
3082
|
-
|
|
3143
|
+
Column17({ name: "rescheduled_date", type: "timestamp with time zone", nullable: true })
|
|
3083
3144
|
], F2fInterviewRescheduleRequest.prototype, "rescheduledDate", 2);
|
|
3084
3145
|
__decorateClass([
|
|
3085
|
-
|
|
3146
|
+
Column17({ name: "rescheduled_slot", type: "varchar", nullable: true })
|
|
3086
3147
|
], F2fInterviewRescheduleRequest.prototype, "rescheduledSlot", 2);
|
|
3087
3148
|
__decorateClass([
|
|
3088
|
-
|
|
3149
|
+
Column17({
|
|
3089
3150
|
name: "status",
|
|
3090
3151
|
type: "enum",
|
|
3091
3152
|
enum: F2fInterviewRescheduleRequestStatusEnum,
|
|
@@ -3093,21 +3154,21 @@ __decorateClass([
|
|
|
3093
3154
|
})
|
|
3094
3155
|
], F2fInterviewRescheduleRequest.prototype, "status", 2);
|
|
3095
3156
|
__decorateClass([
|
|
3096
|
-
|
|
3157
|
+
Column17({ name: "client_reject_reason", type: "varchar", nullable: true })
|
|
3097
3158
|
], F2fInterviewRescheduleRequest.prototype, "clientRejectReason", 2);
|
|
3098
3159
|
__decorateClass([
|
|
3099
|
-
|
|
3160
|
+
Column17({ name: "freelancer_request_reason", type: "varchar", nullable: true })
|
|
3100
3161
|
], F2fInterviewRescheduleRequest.prototype, "freelancerRequestReason", 2);
|
|
3101
3162
|
F2fInterviewRescheduleRequest = __decorateClass([
|
|
3102
|
-
|
|
3163
|
+
Entity16("f2f_interview_reschedule_requests")
|
|
3103
3164
|
], F2fInterviewRescheduleRequest);
|
|
3104
3165
|
|
|
3105
3166
|
// src/entities/f2f-interview-schedule.entity.ts
|
|
3106
3167
|
import {
|
|
3107
|
-
Entity as
|
|
3108
|
-
Column as
|
|
3109
|
-
ManyToOne as
|
|
3110
|
-
JoinColumn as
|
|
3168
|
+
Entity as Entity17,
|
|
3169
|
+
Column as Column18,
|
|
3170
|
+
ManyToOne as ManyToOne16,
|
|
3171
|
+
JoinColumn as JoinColumn16,
|
|
3111
3172
|
Index as Index11
|
|
3112
3173
|
} from "typeorm";
|
|
3113
3174
|
var F2fInterviewScheduleStatusEnum = /* @__PURE__ */ ((F2fInterviewScheduleStatusEnum2) => {
|
|
@@ -3120,33 +3181,33 @@ var F2fInterviewScheduleStatusEnum = /* @__PURE__ */ ((F2fInterviewScheduleStatu
|
|
|
3120
3181
|
var F2FInterviewSchedule = class extends BaseEntity {
|
|
3121
3182
|
};
|
|
3122
3183
|
__decorateClass([
|
|
3123
|
-
|
|
3184
|
+
Column18({ name: "f2f_interview_id", type: "integer", nullable: true })
|
|
3124
3185
|
], F2FInterviewSchedule.prototype, "f2fInterviewId", 2);
|
|
3125
3186
|
__decorateClass([
|
|
3126
|
-
|
|
3127
|
-
|
|
3187
|
+
ManyToOne16(() => F2FInterview, (f2fInterview) => f2fInterview.schedules),
|
|
3188
|
+
JoinColumn16({ name: "f2f_interview_id" })
|
|
3128
3189
|
], F2FInterviewSchedule.prototype, "f2fInterview", 2);
|
|
3129
3190
|
__decorateClass([
|
|
3130
|
-
|
|
3191
|
+
Column18({ name: "event_id", type: "varchar", nullable: true }),
|
|
3131
3192
|
Index11()
|
|
3132
3193
|
], F2FInterviewSchedule.prototype, "eventId", 2);
|
|
3133
3194
|
__decorateClass([
|
|
3134
|
-
|
|
3195
|
+
Column18({ name: "zoom_link", type: "varchar", nullable: true })
|
|
3135
3196
|
], F2FInterviewSchedule.prototype, "meetingZoomLink", 2);
|
|
3136
3197
|
__decorateClass([
|
|
3137
|
-
|
|
3198
|
+
Column18({ name: "meeting_id", type: "varchar", nullable: true })
|
|
3138
3199
|
], F2FInterviewSchedule.prototype, "meetingId", 2);
|
|
3139
3200
|
__decorateClass([
|
|
3140
|
-
|
|
3201
|
+
Column18({ name: "meeting_passcode", type: "varchar", nullable: true })
|
|
3141
3202
|
], F2FInterviewSchedule.prototype, "meetingPasscode", 2);
|
|
3142
3203
|
__decorateClass([
|
|
3143
|
-
|
|
3204
|
+
Column18({ name: "reschedule_url", type: "varchar", nullable: true })
|
|
3144
3205
|
], F2FInterviewSchedule.prototype, "rescheduleUrl", 2);
|
|
3145
3206
|
__decorateClass([
|
|
3146
|
-
|
|
3207
|
+
Column18({ name: "cancel_url", type: "varchar", nullable: true })
|
|
3147
3208
|
], F2FInterviewSchedule.prototype, "cancelUrl", 2);
|
|
3148
3209
|
__decorateClass([
|
|
3149
|
-
|
|
3210
|
+
Column18({
|
|
3150
3211
|
name: "status",
|
|
3151
3212
|
type: "enum",
|
|
3152
3213
|
enum: F2fInterviewScheduleStatusEnum,
|
|
@@ -3154,47 +3215,47 @@ __decorateClass([
|
|
|
3154
3215
|
})
|
|
3155
3216
|
], F2FInterviewSchedule.prototype, "status", 2);
|
|
3156
3217
|
__decorateClass([
|
|
3157
|
-
|
|
3218
|
+
Column18({
|
|
3158
3219
|
name: "meeting_start_time",
|
|
3159
3220
|
type: "timestamp with time zone",
|
|
3160
3221
|
nullable: true
|
|
3161
3222
|
})
|
|
3162
3223
|
], F2FInterviewSchedule.prototype, "meetingStartTime", 2);
|
|
3163
3224
|
__decorateClass([
|
|
3164
|
-
|
|
3225
|
+
Column18({
|
|
3165
3226
|
name: "meeting_end_time",
|
|
3166
3227
|
type: "timestamp with time zone",
|
|
3167
3228
|
nullable: true
|
|
3168
3229
|
})
|
|
3169
3230
|
], F2FInterviewSchedule.prototype, "meetingEndTime", 2);
|
|
3170
3231
|
__decorateClass([
|
|
3171
|
-
|
|
3232
|
+
Column18({
|
|
3172
3233
|
name: "meeting_eligible_start_time",
|
|
3173
3234
|
type: "timestamp with time zone",
|
|
3174
3235
|
nullable: true
|
|
3175
3236
|
})
|
|
3176
3237
|
], F2FInterviewSchedule.prototype, "meetingEligibleStartTime", 2);
|
|
3177
3238
|
__decorateClass([
|
|
3178
|
-
|
|
3239
|
+
Column18({
|
|
3179
3240
|
name: "meeting_eligible_expiry_time",
|
|
3180
3241
|
type: "timestamp with time zone",
|
|
3181
3242
|
nullable: true
|
|
3182
3243
|
})
|
|
3183
3244
|
], F2FInterviewSchedule.prototype, "meetingEligibleExpiryTime", 2);
|
|
3184
3245
|
__decorateClass([
|
|
3185
|
-
|
|
3246
|
+
Column18({ name: "meeting_video_recording_url", type: "varchar", nullable: true })
|
|
3186
3247
|
], F2FInterviewSchedule.prototype, "meetingVideoRecordingUrl", 2);
|
|
3187
3248
|
__decorateClass([
|
|
3188
|
-
|
|
3249
|
+
Column18({ name: "meeting_audio_recording_url", type: "varchar", nullable: true })
|
|
3189
3250
|
], F2FInterviewSchedule.prototype, "meetingAudioRecordingUrl", 2);
|
|
3190
3251
|
__decorateClass([
|
|
3191
|
-
|
|
3252
|
+
Column18({ name: "meeting_transcript", type: "jsonb", nullable: true })
|
|
3192
3253
|
], F2FInterviewSchedule.prototype, "meetingTranscript", 2);
|
|
3193
3254
|
__decorateClass([
|
|
3194
|
-
|
|
3255
|
+
Column18({ name: "meeting_recordings", type: "jsonb", nullable: true })
|
|
3195
3256
|
], F2FInterviewSchedule.prototype, "meetingRecordings", 2);
|
|
3196
3257
|
F2FInterviewSchedule = __decorateClass([
|
|
3197
|
-
|
|
3258
|
+
Entity17("f2f_interview_schedules")
|
|
3198
3259
|
], F2FInterviewSchedule);
|
|
3199
3260
|
|
|
3200
3261
|
// src/entities/f2f-interview.entity.ts
|
|
@@ -3213,50 +3274,50 @@ var F2fInterviewStatusEnum = /* @__PURE__ */ ((F2fInterviewStatusEnum2) => {
|
|
|
3213
3274
|
var F2FInterview = class extends BaseEntity {
|
|
3214
3275
|
};
|
|
3215
3276
|
__decorateClass([
|
|
3216
|
-
|
|
3277
|
+
Column19({ name: "interview_unique_id", type: "varchar", nullable: true, unique: true })
|
|
3217
3278
|
], F2FInterview.prototype, "interviewUniqueId", 2);
|
|
3218
3279
|
__decorateClass([
|
|
3219
|
-
|
|
3280
|
+
Column19({ name: "round", type: "varchar", nullable: true })
|
|
3220
3281
|
], F2FInterview.prototype, "round", 2);
|
|
3221
3282
|
__decorateClass([
|
|
3222
|
-
|
|
3283
|
+
Column19({ name: "job_id", type: "integer", nullable: true })
|
|
3223
3284
|
], F2FInterview.prototype, "jobId", 2);
|
|
3224
3285
|
__decorateClass([
|
|
3225
|
-
|
|
3226
|
-
|
|
3286
|
+
ManyToOne17(() => Job, (job) => job.f2fInterviews, { nullable: true }),
|
|
3287
|
+
JoinColumn17({ name: "job_id" })
|
|
3227
3288
|
], F2FInterview.prototype, "job", 2);
|
|
3228
3289
|
__decorateClass([
|
|
3229
|
-
|
|
3290
|
+
Column19({ name: "interview_id", type: "integer", nullable: true })
|
|
3230
3291
|
], F2FInterview.prototype, "interviewId", 2);
|
|
3231
3292
|
__decorateClass([
|
|
3232
|
-
|
|
3233
|
-
|
|
3293
|
+
ManyToOne17(() => Interview, (interview) => interview.f2fInterviews, { nullable: true }),
|
|
3294
|
+
JoinColumn17({ name: "interview_id" })
|
|
3234
3295
|
], F2FInterview.prototype, "interview", 2);
|
|
3235
3296
|
__decorateClass([
|
|
3236
|
-
|
|
3297
|
+
Column19({ name: "interviwer_id", type: "integer", nullable: true })
|
|
3237
3298
|
], F2FInterview.prototype, "interviwerId", 2);
|
|
3238
3299
|
__decorateClass([
|
|
3239
|
-
|
|
3240
|
-
|
|
3300
|
+
ManyToOne17(() => User, (user) => user.clientF2FInterviews),
|
|
3301
|
+
JoinColumn17({ name: "interviwer_id" })
|
|
3241
3302
|
], F2FInterview.prototype, "interviwer", 2);
|
|
3242
3303
|
__decorateClass([
|
|
3243
|
-
|
|
3304
|
+
Column19({ name: "candidate_id", type: "integer", nullable: true })
|
|
3244
3305
|
], F2FInterview.prototype, "candidateId", 2);
|
|
3245
3306
|
__decorateClass([
|
|
3246
|
-
|
|
3247
|
-
|
|
3307
|
+
ManyToOne17(() => User, (user) => user.freelancerF2FInterviews, { nullable: true }),
|
|
3308
|
+
JoinColumn17({ name: "candidate_id" })
|
|
3248
3309
|
], F2FInterview.prototype, "candidate", 2);
|
|
3249
3310
|
__decorateClass([
|
|
3250
|
-
|
|
3311
|
+
Column19({ name: "invitee_email", type: "varchar", nullable: true })
|
|
3251
3312
|
], F2FInterview.prototype, "inviteeEmail", 2);
|
|
3252
3313
|
__decorateClass([
|
|
3253
|
-
|
|
3314
|
+
Column19({ name: "invitee_name", type: "varchar", nullable: true })
|
|
3254
3315
|
], F2FInterview.prototype, "inviteeName", 2);
|
|
3255
3316
|
__decorateClass([
|
|
3256
|
-
|
|
3317
|
+
Column19({ name: "event_name", type: "varchar", nullable: true })
|
|
3257
3318
|
], F2FInterview.prototype, "eventName", 2);
|
|
3258
3319
|
__decorateClass([
|
|
3259
|
-
|
|
3320
|
+
Column19({
|
|
3260
3321
|
name: "status",
|
|
3261
3322
|
type: "enum",
|
|
3262
3323
|
enum: F2fInterviewStatusEnum,
|
|
@@ -3264,45 +3325,45 @@ __decorateClass([
|
|
|
3264
3325
|
})
|
|
3265
3326
|
], F2FInterview.prototype, "status", 2);
|
|
3266
3327
|
__decorateClass([
|
|
3267
|
-
|
|
3328
|
+
Column19({ name: "is_rescheduled", type: "boolean", default: false })
|
|
3268
3329
|
], F2FInterview.prototype, "isRescheduled", 2);
|
|
3269
3330
|
__decorateClass([
|
|
3270
|
-
|
|
3331
|
+
Column19({ name: "last_rescheduled_at", type: "timestamp with time zone", nullable: true })
|
|
3271
3332
|
], F2FInterview.prototype, "lastRescheduledAt", 2);
|
|
3272
3333
|
__decorateClass([
|
|
3273
|
-
|
|
3334
|
+
Column19({ name: "cancelled_at", type: "timestamp with time zone", nullable: true })
|
|
3274
3335
|
], F2FInterview.prototype, "cancelledAt", 2);
|
|
3275
3336
|
__decorateClass([
|
|
3276
|
-
|
|
3337
|
+
Column19({ name: "cancel_reason", type: "varchar", nullable: true })
|
|
3277
3338
|
], F2FInterview.prototype, "cancelReason", 2);
|
|
3278
3339
|
__decorateClass([
|
|
3279
|
-
|
|
3340
|
+
Column19({ name: "provider", type: "varchar", nullable: true })
|
|
3280
3341
|
], F2FInterview.prototype, "provider", 2);
|
|
3281
3342
|
__decorateClass([
|
|
3282
|
-
|
|
3343
|
+
Column19({
|
|
3283
3344
|
name: "meeting_started_on",
|
|
3284
3345
|
type: "timestamp with time zone",
|
|
3285
3346
|
nullable: true
|
|
3286
3347
|
})
|
|
3287
3348
|
], F2FInterview.prototype, "meetingStartedOn", 2);
|
|
3288
3349
|
__decorateClass([
|
|
3289
|
-
|
|
3350
|
+
Column19({
|
|
3290
3351
|
name: "meeting_ended_on",
|
|
3291
3352
|
type: "timestamp with time zone",
|
|
3292
3353
|
nullable: true
|
|
3293
3354
|
})
|
|
3294
3355
|
], F2FInterview.prototype, "meetingEndedOn", 2);
|
|
3295
3356
|
__decorateClass([
|
|
3296
|
-
|
|
3357
|
+
Column19({ name: "is_contract_sent", type: "boolean", default: false })
|
|
3297
3358
|
], F2FInterview.prototype, "isContractSent", 2);
|
|
3298
3359
|
__decorateClass([
|
|
3299
|
-
|
|
3360
|
+
OneToMany8(() => F2FInterviewSchedule, (f2fInterviewSchedule) => f2fInterviewSchedule.f2fInterview)
|
|
3300
3361
|
], F2FInterview.prototype, "schedules", 2);
|
|
3301
3362
|
__decorateClass([
|
|
3302
|
-
|
|
3363
|
+
OneToMany8(() => F2fInterviewRescheduleRequest, (f2FInterviewRescheduleRequest) => f2FInterviewRescheduleRequest.f2fInterview)
|
|
3303
3364
|
], F2FInterview.prototype, "rescheduleRequests", 2);
|
|
3304
3365
|
F2FInterview = __decorateClass([
|
|
3305
|
-
|
|
3366
|
+
Entity18("f2f_interviews")
|
|
3306
3367
|
], F2FInterview);
|
|
3307
3368
|
|
|
3308
3369
|
// src/entities/interview.entity.ts
|
|
@@ -3317,7 +3378,7 @@ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
|
|
|
3317
3378
|
var Interview = class extends BaseEntity {
|
|
3318
3379
|
};
|
|
3319
3380
|
__decorateClass([
|
|
3320
|
-
|
|
3381
|
+
Column20({
|
|
3321
3382
|
name: "interview_id",
|
|
3322
3383
|
type: "varchar",
|
|
3323
3384
|
unique: true,
|
|
@@ -3326,53 +3387,53 @@ __decorateClass([
|
|
|
3326
3387
|
Index12()
|
|
3327
3388
|
], Interview.prototype, "interviewId", 2);
|
|
3328
3389
|
__decorateClass([
|
|
3329
|
-
|
|
3390
|
+
Column20({ name: "user_id", type: "integer", nullable: true }),
|
|
3330
3391
|
Index12()
|
|
3331
3392
|
], Interview.prototype, "userId", 2);
|
|
3332
3393
|
__decorateClass([
|
|
3333
|
-
|
|
3334
|
-
|
|
3394
|
+
ManyToOne18(() => User, (user) => user.interviews),
|
|
3395
|
+
JoinColumn18({ name: "user_id" })
|
|
3335
3396
|
], Interview.prototype, "user", 2);
|
|
3336
3397
|
__decorateClass([
|
|
3337
|
-
|
|
3398
|
+
Column20({ name: "interview_name", type: "varchar", nullable: true })
|
|
3338
3399
|
], Interview.prototype, "interviewName", 2);
|
|
3339
3400
|
__decorateClass([
|
|
3340
|
-
|
|
3401
|
+
Column20({ name: "job_id", type: "integer" }),
|
|
3341
3402
|
Index12()
|
|
3342
3403
|
], Interview.prototype, "jobId", 2);
|
|
3343
3404
|
__decorateClass([
|
|
3344
|
-
|
|
3345
|
-
|
|
3405
|
+
ManyToOne18(() => Job, (job) => job.interviews, { onDelete: "CASCADE" }),
|
|
3406
|
+
JoinColumn18({ name: "job_id" })
|
|
3346
3407
|
], Interview.prototype, "job", 2);
|
|
3347
3408
|
__decorateClass([
|
|
3348
|
-
|
|
3409
|
+
Column20({ name: "interview_type", type: "varchar", nullable: true })
|
|
3349
3410
|
], Interview.prototype, "interviewType", 2);
|
|
3350
3411
|
__decorateClass([
|
|
3351
|
-
|
|
3412
|
+
Column20({ name: "interview_language", type: "varchar", nullable: true })
|
|
3352
3413
|
], Interview.prototype, "interviewLanguage", 2);
|
|
3353
3414
|
__decorateClass([
|
|
3354
|
-
|
|
3415
|
+
Column20({ name: "allow_proctoring", type: "boolean", default: false })
|
|
3355
3416
|
], Interview.prototype, "allowProctoring", 2);
|
|
3356
3417
|
__decorateClass([
|
|
3357
|
-
|
|
3418
|
+
Column20({ name: "interview_duration", type: "varchar", nullable: true })
|
|
3358
3419
|
], Interview.prototype, "interviewDuration", 2);
|
|
3359
3420
|
__decorateClass([
|
|
3360
|
-
|
|
3421
|
+
Column20({ name: "interview_validity_period", type: "varchar", nullable: true })
|
|
3361
3422
|
], Interview.prototype, "interviewValidityPeriod", 2);
|
|
3362
3423
|
__decorateClass([
|
|
3363
|
-
|
|
3424
|
+
Column20({ name: "maximum_attempts_allowed", type: "varchar", nullable: true })
|
|
3364
3425
|
], Interview.prototype, "maximumAttemptsAllowed", 2);
|
|
3365
3426
|
__decorateClass([
|
|
3366
|
-
|
|
3427
|
+
Column20({ name: "start_interview_prompt", type: "varchar", nullable: true })
|
|
3367
3428
|
], Interview.prototype, "startInterviewPrompt", 2);
|
|
3368
3429
|
__decorateClass([
|
|
3369
|
-
|
|
3430
|
+
Column20({ name: "end_interview_prompt", type: "varchar", nullable: true })
|
|
3370
3431
|
], Interview.prototype, "endInterviewPrompt", 2);
|
|
3371
3432
|
__decorateClass([
|
|
3372
|
-
|
|
3433
|
+
Column20({ name: "interview_template_id", type: "varchar", nullable: true })
|
|
3373
3434
|
], Interview.prototype, "interviewTemplateId", 2);
|
|
3374
3435
|
__decorateClass([
|
|
3375
|
-
|
|
3436
|
+
Column20({
|
|
3376
3437
|
name: "status",
|
|
3377
3438
|
type: "enum",
|
|
3378
3439
|
enum: InterviewStatusEnum,
|
|
@@ -3380,50 +3441,50 @@ __decorateClass([
|
|
|
3380
3441
|
})
|
|
3381
3442
|
], Interview.prototype, "status", 2);
|
|
3382
3443
|
__decorateClass([
|
|
3383
|
-
|
|
3444
|
+
OneToMany9(
|
|
3384
3445
|
() => InterviewSkill,
|
|
3385
3446
|
(interviewSkill) => interviewSkill.interview,
|
|
3386
3447
|
{ cascade: true }
|
|
3387
3448
|
)
|
|
3388
3449
|
], Interview.prototype, "interviewSkills", 2);
|
|
3389
3450
|
__decorateClass([
|
|
3390
|
-
|
|
3451
|
+
OneToMany9(
|
|
3391
3452
|
() => InterviewQuestion,
|
|
3392
3453
|
(interviewQuestion) => interviewQuestion.interview,
|
|
3393
3454
|
{ cascade: true }
|
|
3394
3455
|
)
|
|
3395
3456
|
], Interview.prototype, "interviewQuestions", 2);
|
|
3396
3457
|
__decorateClass([
|
|
3397
|
-
|
|
3458
|
+
OneToMany9(() => InterviewInvite, (interviewInvite) => interviewInvite.interview)
|
|
3398
3459
|
], Interview.prototype, "invites", 2);
|
|
3399
3460
|
__decorateClass([
|
|
3400
|
-
|
|
3461
|
+
OneToMany9(() => AiInterview, (aiInterview) => aiInterview.interview)
|
|
3401
3462
|
], Interview.prototype, "aiInterviews", 2);
|
|
3402
3463
|
__decorateClass([
|
|
3403
|
-
|
|
3464
|
+
OneToMany9(() => F2FInterview, (f2fInterview) => f2fInterview.interview)
|
|
3404
3465
|
], Interview.prototype, "f2fInterviews", 2);
|
|
3405
3466
|
Interview = __decorateClass([
|
|
3406
|
-
|
|
3467
|
+
Entity19("interviews")
|
|
3407
3468
|
], Interview);
|
|
3408
3469
|
|
|
3409
3470
|
// src/entities/job-recommendation.entity.ts
|
|
3410
3471
|
import {
|
|
3411
|
-
Entity as
|
|
3412
|
-
Column as
|
|
3472
|
+
Entity as Entity21,
|
|
3473
|
+
Column as Column22,
|
|
3413
3474
|
Index as Index14,
|
|
3414
|
-
ManyToOne as
|
|
3415
|
-
JoinColumn as
|
|
3475
|
+
ManyToOne as ManyToOne20,
|
|
3476
|
+
JoinColumn as JoinColumn20,
|
|
3416
3477
|
PrimaryGeneratedColumn as PrimaryGeneratedColumn5,
|
|
3417
3478
|
OneToOne as OneToOne3
|
|
3418
3479
|
} from "typeorm";
|
|
3419
3480
|
|
|
3420
3481
|
// src/entities/client-candidate-preference.entity.ts
|
|
3421
3482
|
import {
|
|
3422
|
-
Entity as
|
|
3423
|
-
Column as
|
|
3483
|
+
Entity as Entity20,
|
|
3484
|
+
Column as Column21,
|
|
3424
3485
|
Index as Index13,
|
|
3425
|
-
ManyToOne as
|
|
3426
|
-
JoinColumn as
|
|
3486
|
+
ManyToOne as ManyToOne19,
|
|
3487
|
+
JoinColumn as JoinColumn19,
|
|
3427
3488
|
OneToOne as OneToOne2
|
|
3428
3489
|
} from "typeorm";
|
|
3429
3490
|
var ClientCandidatePreferenceEnum = /* @__PURE__ */ ((ClientCandidatePreferenceEnum2) => {
|
|
@@ -3434,39 +3495,39 @@ var ClientCandidatePreferenceEnum = /* @__PURE__ */ ((ClientCandidatePreferenceE
|
|
|
3434
3495
|
var ClientCandidatePreference = class extends BaseEntity {
|
|
3435
3496
|
};
|
|
3436
3497
|
__decorateClass([
|
|
3437
|
-
|
|
3498
|
+
Column21({ name: "client_id", type: "integer" }),
|
|
3438
3499
|
Index13()
|
|
3439
3500
|
], ClientCandidatePreference.prototype, "clientId", 2);
|
|
3440
3501
|
__decorateClass([
|
|
3441
|
-
|
|
3442
|
-
|
|
3502
|
+
ManyToOne19(() => User, (user) => user.clientPreferencesGiven),
|
|
3503
|
+
JoinColumn19({ name: "client_id" })
|
|
3443
3504
|
], ClientCandidatePreference.prototype, "client", 2);
|
|
3444
3505
|
__decorateClass([
|
|
3445
|
-
|
|
3506
|
+
Column21({ name: "candidate_id", type: "integer" }),
|
|
3446
3507
|
Index13()
|
|
3447
3508
|
], ClientCandidatePreference.prototype, "candidateId", 2);
|
|
3448
3509
|
__decorateClass([
|
|
3449
|
-
|
|
3450
|
-
|
|
3510
|
+
ManyToOne19(() => User, (user) => user.clientPreferencesReceived),
|
|
3511
|
+
JoinColumn19({ name: "candidate_id" })
|
|
3451
3512
|
], ClientCandidatePreference.prototype, "candidate", 2);
|
|
3452
3513
|
__decorateClass([
|
|
3453
|
-
|
|
3514
|
+
Column21({ name: "job_id", type: "integer", nullable: true }),
|
|
3454
3515
|
Index13()
|
|
3455
3516
|
], ClientCandidatePreference.prototype, "jobId", 2);
|
|
3456
3517
|
__decorateClass([
|
|
3457
|
-
|
|
3458
|
-
|
|
3518
|
+
ManyToOne19(() => Job, (job) => job.clientCandidatePreferences, { nullable: true }),
|
|
3519
|
+
JoinColumn19({ name: "job_id" })
|
|
3459
3520
|
], ClientCandidatePreference.prototype, "job", 2);
|
|
3460
3521
|
__decorateClass([
|
|
3461
|
-
|
|
3522
|
+
Column21({ name: "recommendation_id", type: "integer", nullable: true }),
|
|
3462
3523
|
Index13()
|
|
3463
3524
|
], ClientCandidatePreference.prototype, "recommendationId", 2);
|
|
3464
3525
|
__decorateClass([
|
|
3465
3526
|
OneToOne2(() => JobRecommendation, (jobRecommendation) => jobRecommendation.preference, { nullable: true }),
|
|
3466
|
-
|
|
3527
|
+
JoinColumn19({ name: "recommendation_id" })
|
|
3467
3528
|
], ClientCandidatePreference.prototype, "recommendation", 2);
|
|
3468
3529
|
__decorateClass([
|
|
3469
|
-
|
|
3530
|
+
Column21({
|
|
3470
3531
|
name: "preference",
|
|
3471
3532
|
type: "enum",
|
|
3472
3533
|
enum: ClientCandidatePreferenceEnum
|
|
@@ -3474,7 +3535,7 @@ __decorateClass([
|
|
|
3474
3535
|
Index13()
|
|
3475
3536
|
], ClientCandidatePreference.prototype, "preference", 2);
|
|
3476
3537
|
ClientCandidatePreference = __decorateClass([
|
|
3477
|
-
|
|
3538
|
+
Entity20("client_candidate_preferences")
|
|
3478
3539
|
], ClientCandidatePreference);
|
|
3479
3540
|
|
|
3480
3541
|
// src/entities/job-recommendation.entity.ts
|
|
@@ -3484,29 +3545,29 @@ __decorateClass([
|
|
|
3484
3545
|
PrimaryGeneratedColumn5("increment", { type: "integer" })
|
|
3485
3546
|
], JobRecommendation.prototype, "id", 2);
|
|
3486
3547
|
__decorateClass([
|
|
3487
|
-
|
|
3548
|
+
Column22({ name: "job_id", type: "integer" }),
|
|
3488
3549
|
Index14()
|
|
3489
3550
|
], JobRecommendation.prototype, "jobId", 2);
|
|
3490
3551
|
__decorateClass([
|
|
3491
|
-
|
|
3492
|
-
|
|
3552
|
+
ManyToOne20(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
3553
|
+
JoinColumn20({ name: "job_id" })
|
|
3493
3554
|
], JobRecommendation.prototype, "job", 2);
|
|
3494
3555
|
__decorateClass([
|
|
3495
|
-
|
|
3556
|
+
Column22({ name: "freelancer_id", type: "integer" }),
|
|
3496
3557
|
Index14()
|
|
3497
3558
|
], JobRecommendation.prototype, "freelancerId", 2);
|
|
3498
3559
|
__decorateClass([
|
|
3499
|
-
|
|
3560
|
+
Column22({ name: "client_id", type: "integer" }),
|
|
3500
3561
|
Index14()
|
|
3501
3562
|
], JobRecommendation.prototype, "clientId", 2);
|
|
3502
3563
|
__decorateClass([
|
|
3503
|
-
|
|
3564
|
+
Column22({ name: "match_score", type: "numeric", precision: 5, scale: 2 })
|
|
3504
3565
|
], JobRecommendation.prototype, "matchScore", 2);
|
|
3505
3566
|
__decorateClass([
|
|
3506
|
-
|
|
3567
|
+
Column22({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
3507
3568
|
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
3508
3569
|
__decorateClass([
|
|
3509
|
-
|
|
3570
|
+
Column22({
|
|
3510
3571
|
name: "matching_skills",
|
|
3511
3572
|
type: "text",
|
|
3512
3573
|
array: true,
|
|
@@ -3514,10 +3575,10 @@ __decorateClass([
|
|
|
3514
3575
|
})
|
|
3515
3576
|
], JobRecommendation.prototype, "matchingSkills", 2);
|
|
3516
3577
|
__decorateClass([
|
|
3517
|
-
|
|
3578
|
+
Column22({ name: "matching_skills_count", type: "int", nullable: true })
|
|
3518
3579
|
], JobRecommendation.prototype, "matchingSkillsCount", 2);
|
|
3519
3580
|
__decorateClass([
|
|
3520
|
-
|
|
3581
|
+
Column22({
|
|
3521
3582
|
name: "required_skills",
|
|
3522
3583
|
type: "text",
|
|
3523
3584
|
array: true,
|
|
@@ -3525,10 +3586,10 @@ __decorateClass([
|
|
|
3525
3586
|
})
|
|
3526
3587
|
], JobRecommendation.prototype, "requiredSkills", 2);
|
|
3527
3588
|
__decorateClass([
|
|
3528
|
-
|
|
3589
|
+
Column22({ name: "required_skills_count", type: "int", nullable: true })
|
|
3529
3590
|
], JobRecommendation.prototype, "requiredSkillsCount", 2);
|
|
3530
3591
|
__decorateClass([
|
|
3531
|
-
|
|
3592
|
+
Column22({
|
|
3532
3593
|
name: "last_calculated_at",
|
|
3533
3594
|
type: "timestamp with time zone",
|
|
3534
3595
|
nullable: true
|
|
@@ -3538,80 +3599,80 @@ __decorateClass([
|
|
|
3538
3599
|
OneToOne3(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.recommendation)
|
|
3539
3600
|
], JobRecommendation.prototype, "preference", 2);
|
|
3540
3601
|
JobRecommendation = __decorateClass([
|
|
3541
|
-
|
|
3602
|
+
Entity21("job_recommendations")
|
|
3542
3603
|
], JobRecommendation);
|
|
3543
3604
|
|
|
3544
3605
|
// src/entities/contract.entity.ts
|
|
3545
|
-
import { Entity as
|
|
3606
|
+
import { Entity as Entity29, Column as Column30, Index as Index22, ManyToOne as ManyToOne28, JoinColumn as JoinColumn28, OneToOne as OneToOne9 } from "typeorm";
|
|
3546
3607
|
|
|
3547
3608
|
// src/entities/escrow-wallet.entity.ts
|
|
3548
|
-
import { Entity as
|
|
3609
|
+
import { Entity as Entity28, Column as Column29, Index as Index21, JoinColumn as JoinColumn27, OneToOne as OneToOne8, OneToMany as OneToMany11, ManyToOne as ManyToOne27 } from "typeorm";
|
|
3549
3610
|
|
|
3550
3611
|
// src/entities/escrow-wallet-transaction.entity.ts
|
|
3551
|
-
import { Entity as
|
|
3612
|
+
import { Entity as Entity27, Column as Column28, Index as Index20, ManyToOne as ManyToOne26, JoinColumn as JoinColumn26, OneToOne as OneToOne7 } from "typeorm";
|
|
3552
3613
|
|
|
3553
3614
|
// src/entities/invoice.entity.ts
|
|
3554
|
-
import { Entity as
|
|
3615
|
+
import { Entity as Entity26, Column as Column27, Index as Index19, JoinColumn as JoinColumn25, ManyToOne as ManyToOne25, OneToOne as OneToOne6 } from "typeorm";
|
|
3555
3616
|
|
|
3556
3617
|
// src/entities/timesheet-line.entity.ts
|
|
3557
|
-
import { Entity as
|
|
3618
|
+
import { Entity as Entity24, Column as Column25, Index as Index17, JoinColumn as JoinColumn23, OneToMany as OneToMany10, ManyToOne as ManyToOne23 } from "typeorm";
|
|
3558
3619
|
|
|
3559
3620
|
// src/entities/timesheet-logs.entity.ts
|
|
3560
|
-
import { Entity as
|
|
3621
|
+
import { Entity as Entity22, Column as Column23, Index as Index15, ManyToOne as ManyToOne21, JoinColumn as JoinColumn21 } from "typeorm";
|
|
3561
3622
|
var TimesheetLogs = class extends BaseEntity {
|
|
3562
3623
|
};
|
|
3563
3624
|
__decorateClass([
|
|
3564
|
-
|
|
3625
|
+
Column23({ name: "timesheet_line_id", type: "integer", nullable: false }),
|
|
3565
3626
|
Index15()
|
|
3566
3627
|
], TimesheetLogs.prototype, "timesheetLineId", 2);
|
|
3567
3628
|
__decorateClass([
|
|
3568
|
-
|
|
3569
|
-
|
|
3629
|
+
ManyToOne21(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLogs),
|
|
3630
|
+
JoinColumn21({ name: "timesheet_line_id" })
|
|
3570
3631
|
], TimesheetLogs.prototype, "timesheetLine", 2);
|
|
3571
3632
|
__decorateClass([
|
|
3572
|
-
|
|
3633
|
+
Column23({
|
|
3573
3634
|
name: "start_date",
|
|
3574
3635
|
type: "date",
|
|
3575
3636
|
nullable: true
|
|
3576
3637
|
})
|
|
3577
3638
|
], TimesheetLogs.prototype, "startDate", 2);
|
|
3578
3639
|
__decorateClass([
|
|
3579
|
-
|
|
3640
|
+
Column23({
|
|
3580
3641
|
name: "end_date",
|
|
3581
3642
|
type: "date",
|
|
3582
3643
|
nullable: true
|
|
3583
3644
|
})
|
|
3584
3645
|
], TimesheetLogs.prototype, "endDate", 2);
|
|
3585
3646
|
__decorateClass([
|
|
3586
|
-
|
|
3647
|
+
Column23({ name: "start_time", type: "varchar", nullable: true })
|
|
3587
3648
|
], TimesheetLogs.prototype, "startTime", 2);
|
|
3588
3649
|
__decorateClass([
|
|
3589
|
-
|
|
3650
|
+
Column23({ name: "end_time", type: "varchar", nullable: true })
|
|
3590
3651
|
], TimesheetLogs.prototype, "endTime", 2);
|
|
3591
3652
|
__decorateClass([
|
|
3592
|
-
|
|
3653
|
+
Column23({ name: "worked_hours", type: "varchar", nullable: true })
|
|
3593
3654
|
], TimesheetLogs.prototype, "workedHours", 2);
|
|
3594
3655
|
__decorateClass([
|
|
3595
|
-
|
|
3656
|
+
Column23({ name: "task_id", type: "integer", nullable: true })
|
|
3596
3657
|
], TimesheetLogs.prototype, "taskId", 2);
|
|
3597
3658
|
__decorateClass([
|
|
3598
|
-
|
|
3659
|
+
Column23({ name: "project_name", type: "varchar", nullable: true })
|
|
3599
3660
|
], TimesheetLogs.prototype, "projectName", 2);
|
|
3600
3661
|
__decorateClass([
|
|
3601
|
-
|
|
3662
|
+
Column23({ name: "deliverable", type: "varchar", nullable: true })
|
|
3602
3663
|
], TimesheetLogs.prototype, "deliverable", 2);
|
|
3603
3664
|
__decorateClass([
|
|
3604
|
-
|
|
3665
|
+
Column23({ name: "task_name", type: "varchar", nullable: true })
|
|
3605
3666
|
], TimesheetLogs.prototype, "taskName", 2);
|
|
3606
3667
|
__decorateClass([
|
|
3607
|
-
|
|
3668
|
+
Column23({ name: "description", type: "varchar", nullable: true })
|
|
3608
3669
|
], TimesheetLogs.prototype, "description", 2);
|
|
3609
3670
|
TimesheetLogs = __decorateClass([
|
|
3610
|
-
|
|
3671
|
+
Entity22("timesheet_logs")
|
|
3611
3672
|
], TimesheetLogs);
|
|
3612
3673
|
|
|
3613
3674
|
// src/entities/timesheet-line-history.entity.ts
|
|
3614
|
-
import { Entity as
|
|
3675
|
+
import { Entity as Entity23, Column as Column24, Index as Index16, ManyToOne as ManyToOne22, JoinColumn as JoinColumn22 } from "typeorm";
|
|
3615
3676
|
var TimesheetLineHistoryStatusEnum = /* @__PURE__ */ ((TimesheetLineHistoryStatusEnum2) => {
|
|
3616
3677
|
TimesheetLineHistoryStatusEnum2["DRAFT"] = "DRAFT";
|
|
3617
3678
|
TimesheetLineHistoryStatusEnum2["SEND"] = "SEND";
|
|
@@ -3635,19 +3696,19 @@ var TimesheetSubmissionActionEnum = /* @__PURE__ */ ((TimesheetSubmissionActionE
|
|
|
3635
3696
|
var TimesheetLineHistory = class extends BaseEntity {
|
|
3636
3697
|
};
|
|
3637
3698
|
__decorateClass([
|
|
3638
|
-
|
|
3699
|
+
Column24({ name: "timesheet_line_id", type: "integer", nullable: false }),
|
|
3639
3700
|
Index16()
|
|
3640
3701
|
], TimesheetLineHistory.prototype, "timesheetLineId", 2);
|
|
3641
3702
|
__decorateClass([
|
|
3642
|
-
|
|
3643
|
-
|
|
3703
|
+
ManyToOne22(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLineHistory),
|
|
3704
|
+
JoinColumn22({ name: "timesheet_line_id" })
|
|
3644
3705
|
], TimesheetLineHistory.prototype, "timesheetLine", 2);
|
|
3645
3706
|
__decorateClass([
|
|
3646
|
-
|
|
3707
|
+
Column24({ name: "changed_by", type: "integer", nullable: true }),
|
|
3647
3708
|
Index16()
|
|
3648
3709
|
], TimesheetLineHistory.prototype, "changedBy", 2);
|
|
3649
3710
|
__decorateClass([
|
|
3650
|
-
|
|
3711
|
+
Column24({
|
|
3651
3712
|
name: "previous_status",
|
|
3652
3713
|
type: "enum",
|
|
3653
3714
|
enum: TimesheetLineHistoryStatusEnum,
|
|
@@ -3655,7 +3716,7 @@ __decorateClass([
|
|
|
3655
3716
|
})
|
|
3656
3717
|
], TimesheetLineHistory.prototype, "previousStatus", 2);
|
|
3657
3718
|
__decorateClass([
|
|
3658
|
-
|
|
3719
|
+
Column24({
|
|
3659
3720
|
name: "new_status",
|
|
3660
3721
|
type: "enum",
|
|
3661
3722
|
enum: TimesheetLineHistoryStatusEnum,
|
|
@@ -3663,7 +3724,7 @@ __decorateClass([
|
|
|
3663
3724
|
})
|
|
3664
3725
|
], TimesheetLineHistory.prototype, "newStatus", 2);
|
|
3665
3726
|
__decorateClass([
|
|
3666
|
-
|
|
3727
|
+
Column24({
|
|
3667
3728
|
name: "action_type",
|
|
3668
3729
|
type: "enum",
|
|
3669
3730
|
enum: TimesheetSubmissionActionEnum,
|
|
@@ -3671,10 +3732,10 @@ __decorateClass([
|
|
|
3671
3732
|
})
|
|
3672
3733
|
], TimesheetLineHistory.prototype, "actionType", 2);
|
|
3673
3734
|
__decorateClass([
|
|
3674
|
-
|
|
3735
|
+
Column24({ name: "remarks", type: "varchar", nullable: true })
|
|
3675
3736
|
], TimesheetLineHistory.prototype, "remarks", 2);
|
|
3676
3737
|
TimesheetLineHistory = __decorateClass([
|
|
3677
|
-
|
|
3738
|
+
Entity23("timesheet_line_histories")
|
|
3678
3739
|
], TimesheetLineHistory);
|
|
3679
3740
|
|
|
3680
3741
|
// src/entities/timesheet-line.entity.ts
|
|
@@ -3692,75 +3753,75 @@ var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
|
|
|
3692
3753
|
var TimesheetLine = class extends BaseEntity {
|
|
3693
3754
|
};
|
|
3694
3755
|
__decorateClass([
|
|
3695
|
-
|
|
3756
|
+
Column25({ name: "job_id", type: "integer", nullable: true }),
|
|
3696
3757
|
Index17()
|
|
3697
3758
|
], TimesheetLine.prototype, "jobId", 2);
|
|
3698
3759
|
__decorateClass([
|
|
3699
|
-
|
|
3700
|
-
|
|
3760
|
+
ManyToOne23(() => Job, (job) => job.timesheetLine),
|
|
3761
|
+
JoinColumn23({ name: "job_id" })
|
|
3701
3762
|
], TimesheetLine.prototype, "job", 2);
|
|
3702
3763
|
__decorateClass([
|
|
3703
|
-
|
|
3764
|
+
Column25({ name: "client_id", type: "integer", nullable: true }),
|
|
3704
3765
|
Index17()
|
|
3705
3766
|
], TimesheetLine.prototype, "clientId", 2);
|
|
3706
3767
|
__decorateClass([
|
|
3707
|
-
|
|
3708
|
-
|
|
3768
|
+
ManyToOne23(() => User, (user) => user.clientTimesheetLine),
|
|
3769
|
+
JoinColumn23({ name: "client_id" })
|
|
3709
3770
|
], TimesheetLine.prototype, "client", 2);
|
|
3710
3771
|
__decorateClass([
|
|
3711
|
-
|
|
3772
|
+
Column25({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3712
3773
|
Index17()
|
|
3713
3774
|
], TimesheetLine.prototype, "freelancerId", 2);
|
|
3714
3775
|
__decorateClass([
|
|
3715
|
-
|
|
3716
|
-
|
|
3776
|
+
ManyToOne23(() => User, (user) => user.freelancerTimesheetLine),
|
|
3777
|
+
JoinColumn23({ name: "freelancer_id" })
|
|
3717
3778
|
], TimesheetLine.prototype, "freelancer", 2);
|
|
3718
3779
|
__decorateClass([
|
|
3719
|
-
|
|
3780
|
+
OneToMany10(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
|
|
3720
3781
|
], TimesheetLine.prototype, "timesheetLogs", 2);
|
|
3721
3782
|
__decorateClass([
|
|
3722
|
-
|
|
3783
|
+
OneToMany10(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
|
|
3723
3784
|
], TimesheetLine.prototype, "timesheetLineHistory", 2);
|
|
3724
3785
|
__decorateClass([
|
|
3725
|
-
|
|
3786
|
+
Column25({ name: "unique_id", type: "varchar", nullable: true })
|
|
3726
3787
|
], TimesheetLine.prototype, "uniqueId", 2);
|
|
3727
3788
|
__decorateClass([
|
|
3728
|
-
|
|
3789
|
+
Column25({
|
|
3729
3790
|
name: "week_start_date",
|
|
3730
3791
|
type: "date",
|
|
3731
3792
|
nullable: true
|
|
3732
3793
|
})
|
|
3733
3794
|
], TimesheetLine.prototype, "weekStartDate", 2);
|
|
3734
3795
|
__decorateClass([
|
|
3735
|
-
|
|
3796
|
+
Column25({
|
|
3736
3797
|
name: "week_end_date",
|
|
3737
3798
|
type: "date",
|
|
3738
3799
|
nullable: true
|
|
3739
3800
|
})
|
|
3740
3801
|
], TimesheetLine.prototype, "weekEndDate", 2);
|
|
3741
3802
|
__decorateClass([
|
|
3742
|
-
|
|
3803
|
+
Column25({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
|
|
3743
3804
|
], TimesheetLine.prototype, "status", 2);
|
|
3744
3805
|
__decorateClass([
|
|
3745
|
-
|
|
3806
|
+
Column25({ name: "weekly_hours_sum", type: "varchar", nullable: true })
|
|
3746
3807
|
], TimesheetLine.prototype, "weeklyHoursSum", 2);
|
|
3747
3808
|
__decorateClass([
|
|
3748
|
-
|
|
3809
|
+
Column25({ name: "is_invoice_genrated", type: "boolean", default: false })
|
|
3749
3810
|
], TimesheetLine.prototype, "isInvoiceGenrated", 2);
|
|
3750
3811
|
__decorateClass([
|
|
3751
|
-
|
|
3812
|
+
Column25({ name: "is_invoice_approved", type: "boolean", default: false })
|
|
3752
3813
|
], TimesheetLine.prototype, "isInvoiceApproved", 2);
|
|
3753
3814
|
__decorateClass([
|
|
3754
|
-
|
|
3815
|
+
OneToMany10(() => Invoice, (invoice) => invoice.timesheetLine, {
|
|
3755
3816
|
cascade: true
|
|
3756
3817
|
})
|
|
3757
3818
|
], TimesheetLine.prototype, "invoice", 2);
|
|
3758
3819
|
TimesheetLine = __decorateClass([
|
|
3759
|
-
|
|
3820
|
+
Entity24("timesheet_lines")
|
|
3760
3821
|
], TimesheetLine);
|
|
3761
3822
|
|
|
3762
3823
|
// src/entities/hiring.entity.ts
|
|
3763
|
-
import { Entity as
|
|
3824
|
+
import { Entity as Entity25, Column as Column26, Index as Index18, ManyToOne as ManyToOne24, JoinColumn as JoinColumn24, OneToOne as OneToOne5 } from "typeorm";
|
|
3764
3825
|
var HiredFreelancerNatureOfWorkEnum = /* @__PURE__ */ ((HiredFreelancerNatureOfWorkEnum2) => {
|
|
3765
3826
|
HiredFreelancerNatureOfWorkEnum2["FTE"] = "FTE";
|
|
3766
3827
|
HiredFreelancerNatureOfWorkEnum2["FREELANCE"] = "FREELANCE";
|
|
@@ -3769,39 +3830,39 @@ var HiredFreelancerNatureOfWorkEnum = /* @__PURE__ */ ((HiredFreelancerNatureOfW
|
|
|
3769
3830
|
var Hiring = class extends BaseEntity {
|
|
3770
3831
|
};
|
|
3771
3832
|
__decorateClass([
|
|
3772
|
-
|
|
3833
|
+
Column26({ name: "job_id", type: "integer", nullable: true }),
|
|
3773
3834
|
Index18()
|
|
3774
3835
|
], Hiring.prototype, "jobId", 2);
|
|
3775
3836
|
__decorateClass([
|
|
3776
|
-
|
|
3777
|
-
|
|
3837
|
+
ManyToOne24(() => Job, (job) => job.hirings),
|
|
3838
|
+
JoinColumn24({ name: "job_id" })
|
|
3778
3839
|
], Hiring.prototype, "job", 2);
|
|
3779
3840
|
__decorateClass([
|
|
3780
|
-
|
|
3841
|
+
Column26({ name: "client_id", type: "integer", nullable: true }),
|
|
3781
3842
|
Index18()
|
|
3782
3843
|
], Hiring.prototype, "clientId", 2);
|
|
3783
3844
|
__decorateClass([
|
|
3784
|
-
|
|
3785
|
-
|
|
3845
|
+
ManyToOne24(() => User, (user) => user.clientHirings),
|
|
3846
|
+
JoinColumn24({ name: "client_id" })
|
|
3786
3847
|
], Hiring.prototype, "client", 2);
|
|
3787
3848
|
__decorateClass([
|
|
3788
|
-
|
|
3849
|
+
Column26({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3789
3850
|
Index18()
|
|
3790
3851
|
], Hiring.prototype, "freelancerId", 2);
|
|
3791
3852
|
__decorateClass([
|
|
3792
|
-
|
|
3793
|
-
|
|
3853
|
+
ManyToOne24(() => User, (user) => user.freelancerHirings),
|
|
3854
|
+
JoinColumn24({ name: "freelancer_id" })
|
|
3794
3855
|
], Hiring.prototype, "freelancer", 2);
|
|
3795
3856
|
__decorateClass([
|
|
3796
|
-
|
|
3857
|
+
Column26({ name: "invoice_id", type: "integer", nullable: true }),
|
|
3797
3858
|
Index18()
|
|
3798
3859
|
], Hiring.prototype, "invoiceId", 2);
|
|
3799
3860
|
__decorateClass([
|
|
3800
3861
|
OneToOne5(() => Invoice, (invoice) => invoice.hiring),
|
|
3801
|
-
|
|
3862
|
+
JoinColumn24({ name: "invoice_id" })
|
|
3802
3863
|
], Hiring.prototype, "invoice", 2);
|
|
3803
3864
|
__decorateClass([
|
|
3804
|
-
|
|
3865
|
+
Column26({
|
|
3805
3866
|
name: "freelancer_nature_of_work",
|
|
3806
3867
|
type: "enum",
|
|
3807
3868
|
enum: HiredFreelancerNatureOfWorkEnum,
|
|
@@ -3809,10 +3870,10 @@ __decorateClass([
|
|
|
3809
3870
|
})
|
|
3810
3871
|
], Hiring.prototype, "freelancerNatureOfWork", 2);
|
|
3811
3872
|
__decorateClass([
|
|
3812
|
-
|
|
3873
|
+
Column26({ name: "is_invoice_genrated", type: "boolean", default: false })
|
|
3813
3874
|
], Hiring.prototype, "isInvoiceGenrated", 2);
|
|
3814
3875
|
Hiring = __decorateClass([
|
|
3815
|
-
|
|
3876
|
+
Entity25("hirings")
|
|
3816
3877
|
], Hiring);
|
|
3817
3878
|
|
|
3818
3879
|
// src/entities/invoice.entity.ts
|
|
@@ -3840,91 +3901,91 @@ var InvoicePaymentStatusEnum = /* @__PURE__ */ ((InvoicePaymentStatusEnum2) => {
|
|
|
3840
3901
|
var Invoice = class extends BaseEntity {
|
|
3841
3902
|
};
|
|
3842
3903
|
__decorateClass([
|
|
3843
|
-
|
|
3904
|
+
Column27({ name: "timesheet_line_id", type: "integer", nullable: true }),
|
|
3844
3905
|
Index19()
|
|
3845
3906
|
], Invoice.prototype, "timesheetLineId", 2);
|
|
3846
3907
|
__decorateClass([
|
|
3847
|
-
|
|
3848
|
-
|
|
3908
|
+
ManyToOne25(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
|
|
3909
|
+
JoinColumn25({ name: "timesheet_line_id" })
|
|
3849
3910
|
], Invoice.prototype, "timesheetLine", 2);
|
|
3850
3911
|
__decorateClass([
|
|
3851
|
-
|
|
3912
|
+
Column27({ name: "job_id", type: "integer", nullable: true }),
|
|
3852
3913
|
Index19()
|
|
3853
3914
|
], Invoice.prototype, "jobId", 2);
|
|
3854
3915
|
__decorateClass([
|
|
3855
|
-
|
|
3856
|
-
|
|
3916
|
+
ManyToOne25(() => Job, (job) => job.invoice),
|
|
3917
|
+
JoinColumn25({ name: "job_id" })
|
|
3857
3918
|
], Invoice.prototype, "job", 2);
|
|
3858
3919
|
__decorateClass([
|
|
3859
|
-
|
|
3920
|
+
Column27({ name: "client_id", type: "integer", nullable: true }),
|
|
3860
3921
|
Index19()
|
|
3861
3922
|
], Invoice.prototype, "clientId", 2);
|
|
3862
3923
|
__decorateClass([
|
|
3863
|
-
|
|
3864
|
-
|
|
3924
|
+
ManyToOne25(() => User, (user) => user.clientInvoice),
|
|
3925
|
+
JoinColumn25({ name: "client_id" })
|
|
3865
3926
|
], Invoice.prototype, "client", 2);
|
|
3866
3927
|
__decorateClass([
|
|
3867
|
-
|
|
3928
|
+
Column27({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3868
3929
|
Index19()
|
|
3869
3930
|
], Invoice.prototype, "freelancerId", 2);
|
|
3870
3931
|
__decorateClass([
|
|
3871
|
-
|
|
3872
|
-
|
|
3932
|
+
ManyToOne25(() => User, (user) => user.freelancerInvoice),
|
|
3933
|
+
JoinColumn25({ name: "freelancer_id" })
|
|
3873
3934
|
], Invoice.prototype, "freelancer", 2);
|
|
3874
3935
|
__decorateClass([
|
|
3875
|
-
|
|
3936
|
+
Column27({ name: "invoice_unique_id", type: "varchar", nullable: true })
|
|
3876
3937
|
], Invoice.prototype, "invoiceUniqueId", 2);
|
|
3877
3938
|
__decorateClass([
|
|
3878
|
-
|
|
3939
|
+
Column27({
|
|
3879
3940
|
name: "issued_at",
|
|
3880
3941
|
type: "date",
|
|
3881
3942
|
nullable: true
|
|
3882
3943
|
})
|
|
3883
3944
|
], Invoice.prototype, "issuedAt", 2);
|
|
3884
3945
|
__decorateClass([
|
|
3885
|
-
|
|
3946
|
+
Column27({
|
|
3886
3947
|
name: "due_at",
|
|
3887
3948
|
type: "date",
|
|
3888
3949
|
nullable: true
|
|
3889
3950
|
})
|
|
3890
3951
|
], Invoice.prototype, "dueAt", 2);
|
|
3891
3952
|
__decorateClass([
|
|
3892
|
-
|
|
3953
|
+
Column27({
|
|
3893
3954
|
name: "billing_cycle_from",
|
|
3894
3955
|
type: "date",
|
|
3895
3956
|
nullable: true
|
|
3896
3957
|
})
|
|
3897
3958
|
], Invoice.prototype, "billingCycleFrom", 2);
|
|
3898
3959
|
__decorateClass([
|
|
3899
|
-
|
|
3960
|
+
Column27({
|
|
3900
3961
|
name: "billing_cycle_to",
|
|
3901
3962
|
type: "date",
|
|
3902
3963
|
nullable: true
|
|
3903
3964
|
})
|
|
3904
3965
|
], Invoice.prototype, "billingCycleTo", 2);
|
|
3905
3966
|
__decorateClass([
|
|
3906
|
-
|
|
3967
|
+
Column27({ name: "billing_hours", type: "varchar", nullable: true })
|
|
3907
3968
|
], Invoice.prototype, "billingHours", 2);
|
|
3908
3969
|
__decorateClass([
|
|
3909
|
-
|
|
3970
|
+
Column27({ name: "hourly_rate", type: "varchar", nullable: true })
|
|
3910
3971
|
], Invoice.prototype, "hourlyRate", 2);
|
|
3911
3972
|
__decorateClass([
|
|
3912
|
-
|
|
3973
|
+
Column27({ name: "billing_amount", type: "varchar", nullable: true })
|
|
3913
3974
|
], Invoice.prototype, "billingAmount", 2);
|
|
3914
3975
|
__decorateClass([
|
|
3915
|
-
|
|
3976
|
+
Column27({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
|
|
3916
3977
|
], Invoice.prototype, "invoiceType", 2);
|
|
3917
3978
|
__decorateClass([
|
|
3918
|
-
|
|
3979
|
+
Column27({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
|
|
3919
3980
|
], Invoice.prototype, "status", 2);
|
|
3920
3981
|
__decorateClass([
|
|
3921
|
-
|
|
3982
|
+
Column27({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
|
|
3922
3983
|
], Invoice.prototype, "paymentStatus", 2);
|
|
3923
3984
|
__decorateClass([
|
|
3924
|
-
|
|
3985
|
+
Column27({ name: "client_invoice_url", type: "varchar", nullable: true })
|
|
3925
3986
|
], Invoice.prototype, "clientInvoiceUrl", 2);
|
|
3926
3987
|
__decorateClass([
|
|
3927
|
-
|
|
3988
|
+
Column27({ name: "freelancer_invoice_url", type: "varchar", nullable: true })
|
|
3928
3989
|
], Invoice.prototype, "freelancerInvoiceUrl", 2);
|
|
3929
3990
|
__decorateClass([
|
|
3930
3991
|
OneToOne6(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.invoice)
|
|
@@ -3933,7 +3994,7 @@ __decorateClass([
|
|
|
3933
3994
|
OneToOne6(() => Hiring, (hiring) => hiring.invoice)
|
|
3934
3995
|
], Invoice.prototype, "hiring", 2);
|
|
3935
3996
|
Invoice = __decorateClass([
|
|
3936
|
-
|
|
3997
|
+
Entity26("invoices")
|
|
3937
3998
|
], Invoice);
|
|
3938
3999
|
|
|
3939
4000
|
// src/entities/escrow-wallet-transaction.entity.ts
|
|
@@ -3950,89 +4011,89 @@ var EscrowWalletTransactionForEnum = /* @__PURE__ */ ((EscrowWalletTransactionFo
|
|
|
3950
4011
|
var EscrowWalletTransaction = class extends BaseEntity {
|
|
3951
4012
|
};
|
|
3952
4013
|
__decorateClass([
|
|
3953
|
-
|
|
4014
|
+
Column28({ name: "escrow_wallet_id", type: "integer", nullable: true }),
|
|
3954
4015
|
Index20()
|
|
3955
4016
|
], EscrowWalletTransaction.prototype, "escrowWalletId", 2);
|
|
3956
4017
|
__decorateClass([
|
|
3957
|
-
|
|
3958
|
-
|
|
4018
|
+
ManyToOne26(() => EscrowWallet, (escrowWallet) => escrowWallet.escrowWalletTransactions),
|
|
4019
|
+
JoinColumn26({ name: "wallet_id" })
|
|
3959
4020
|
], EscrowWalletTransaction.prototype, "escrowWallet", 2);
|
|
3960
4021
|
__decorateClass([
|
|
3961
|
-
|
|
4022
|
+
Column28({ name: "invoice_id", type: "integer", nullable: true }),
|
|
3962
4023
|
Index20()
|
|
3963
4024
|
], EscrowWalletTransaction.prototype, "invoiceId", 2);
|
|
3964
4025
|
__decorateClass([
|
|
3965
4026
|
OneToOne7(() => Invoice, (invoice) => invoice.escrowWalletTransaction),
|
|
3966
|
-
|
|
4027
|
+
JoinColumn26({ name: "invoice_id" })
|
|
3967
4028
|
], EscrowWalletTransaction.prototype, "invoice", 2);
|
|
3968
4029
|
__decorateClass([
|
|
3969
|
-
|
|
4030
|
+
Column28({ name: "amount", type: "bigint", nullable: true })
|
|
3970
4031
|
], EscrowWalletTransaction.prototype, "amount", 2);
|
|
3971
4032
|
__decorateClass([
|
|
3972
|
-
|
|
4033
|
+
Column28({ name: "escrow_type", type: "enum", enum: EscrowWalletTransactionTypeEnum })
|
|
3973
4034
|
], EscrowWalletTransaction.prototype, "escrowType", 2);
|
|
3974
4035
|
__decorateClass([
|
|
3975
|
-
|
|
4036
|
+
Column28({ name: "description", type: "text", nullable: true })
|
|
3976
4037
|
], EscrowWalletTransaction.prototype, "description", 2);
|
|
3977
4038
|
__decorateClass([
|
|
3978
|
-
|
|
4039
|
+
Column28({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
3979
4040
|
], EscrowWalletTransaction.prototype, "completedAt", 2);
|
|
3980
4041
|
__decorateClass([
|
|
3981
|
-
|
|
4042
|
+
Column28({ name: "escrow_transaction_for", type: "enum", enum: EscrowWalletTransactionForEnum })
|
|
3982
4043
|
], EscrowWalletTransaction.prototype, "escrowTransactionFor", 2);
|
|
3983
4044
|
__decorateClass([
|
|
3984
|
-
|
|
4045
|
+
Column28({ name: "meta_data", type: "varchar", nullable: true })
|
|
3985
4046
|
], EscrowWalletTransaction.prototype, "metaData", 2);
|
|
3986
4047
|
EscrowWalletTransaction = __decorateClass([
|
|
3987
|
-
|
|
4048
|
+
Entity27("escrow_wallet_transactions")
|
|
3988
4049
|
], EscrowWalletTransaction);
|
|
3989
4050
|
|
|
3990
4051
|
// src/entities/escrow-wallet.entity.ts
|
|
3991
4052
|
var EscrowWallet = class extends BaseEntity {
|
|
3992
4053
|
};
|
|
3993
4054
|
__decorateClass([
|
|
3994
|
-
|
|
4055
|
+
Column29({ name: "job_id", type: "integer", nullable: true }),
|
|
3995
4056
|
Index21()
|
|
3996
4057
|
], EscrowWallet.prototype, "jobId", 2);
|
|
3997
4058
|
__decorateClass([
|
|
3998
|
-
|
|
3999
|
-
|
|
4059
|
+
ManyToOne27(() => Job, (job) => job.escrowWallets),
|
|
4060
|
+
JoinColumn27({ name: "job_id" })
|
|
4000
4061
|
], EscrowWallet.prototype, "job", 2);
|
|
4001
4062
|
__decorateClass([
|
|
4002
|
-
|
|
4063
|
+
Column29({ name: "client_id", type: "integer", nullable: true }),
|
|
4003
4064
|
Index21()
|
|
4004
4065
|
], EscrowWallet.prototype, "clientId", 2);
|
|
4005
4066
|
__decorateClass([
|
|
4006
|
-
|
|
4007
|
-
|
|
4067
|
+
ManyToOne27(() => User, (user) => user.clientEscrowWallets),
|
|
4068
|
+
JoinColumn27({ name: "client_id" })
|
|
4008
4069
|
], EscrowWallet.prototype, "client", 2);
|
|
4009
4070
|
__decorateClass([
|
|
4010
|
-
|
|
4071
|
+
Column29({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4011
4072
|
Index21()
|
|
4012
4073
|
], EscrowWallet.prototype, "freelancerId", 2);
|
|
4013
4074
|
__decorateClass([
|
|
4014
|
-
|
|
4015
|
-
|
|
4075
|
+
ManyToOne27(() => User, (user) => user.freelancerEscrowWallets),
|
|
4076
|
+
JoinColumn27({ name: "freelancer_id" })
|
|
4016
4077
|
], EscrowWallet.prototype, "freelancer", 2);
|
|
4017
4078
|
__decorateClass([
|
|
4018
|
-
|
|
4079
|
+
Column29({ name: "contract_id", type: "integer", nullable: true }),
|
|
4019
4080
|
Index21()
|
|
4020
4081
|
], EscrowWallet.prototype, "contractId", 2);
|
|
4021
4082
|
__decorateClass([
|
|
4022
4083
|
OneToOne8(() => Contract, (contract) => contract.escrowWallet),
|
|
4023
|
-
|
|
4084
|
+
JoinColumn27({ name: "contract_id" })
|
|
4024
4085
|
], EscrowWallet.prototype, "contract", 2);
|
|
4025
4086
|
__decorateClass([
|
|
4026
|
-
|
|
4087
|
+
Column29({ name: "wallet_balance", type: "varchar", default: "0" })
|
|
4027
4088
|
], EscrowWallet.prototype, "escrowBalance", 2);
|
|
4028
4089
|
__decorateClass([
|
|
4029
|
-
|
|
4090
|
+
Column29({ name: "metadata", type: "jsonb", nullable: true })
|
|
4030
4091
|
], EscrowWallet.prototype, "metadata", 2);
|
|
4031
4092
|
__decorateClass([
|
|
4032
|
-
|
|
4093
|
+
OneToMany11(() => EscrowWalletTransaction, (escrowWalletTransaction) => escrowWalletTransaction.escrowWallet)
|
|
4033
4094
|
], EscrowWallet.prototype, "escrowWalletTransactions", 2);
|
|
4034
4095
|
EscrowWallet = __decorateClass([
|
|
4035
|
-
|
|
4096
|
+
Entity28("escrow_wallets")
|
|
4036
4097
|
], EscrowWallet);
|
|
4037
4098
|
|
|
4038
4099
|
// src/entities/contract.entity.ts
|
|
@@ -4057,37 +4118,37 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
|
|
|
4057
4118
|
var Contract = class extends BaseEntity {
|
|
4058
4119
|
};
|
|
4059
4120
|
__decorateClass([
|
|
4060
|
-
|
|
4121
|
+
Column30({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
4061
4122
|
], Contract.prototype, "contractUniqueId", 2);
|
|
4062
4123
|
__decorateClass([
|
|
4063
|
-
|
|
4124
|
+
Column30({ name: "job_id", type: "integer", nullable: true }),
|
|
4064
4125
|
Index22()
|
|
4065
4126
|
], Contract.prototype, "jobId", 2);
|
|
4066
4127
|
__decorateClass([
|
|
4067
|
-
|
|
4068
|
-
|
|
4128
|
+
ManyToOne28(() => Job, (job) => job.contracts),
|
|
4129
|
+
JoinColumn28({ name: "job_id" })
|
|
4069
4130
|
], Contract.prototype, "job", 2);
|
|
4070
4131
|
__decorateClass([
|
|
4071
|
-
|
|
4132
|
+
Column30({ name: "client_id", type: "integer", nullable: true }),
|
|
4072
4133
|
Index22()
|
|
4073
4134
|
], Contract.prototype, "clientId", 2);
|
|
4074
4135
|
__decorateClass([
|
|
4075
|
-
|
|
4076
|
-
|
|
4136
|
+
ManyToOne28(() => User, (user) => user.clientContracts),
|
|
4137
|
+
JoinColumn28({ name: "client_id" })
|
|
4077
4138
|
], Contract.prototype, "client", 2);
|
|
4078
4139
|
__decorateClass([
|
|
4079
|
-
|
|
4140
|
+
Column30({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4080
4141
|
Index22()
|
|
4081
4142
|
], Contract.prototype, "freelancerId", 2);
|
|
4082
4143
|
__decorateClass([
|
|
4083
|
-
|
|
4084
|
-
|
|
4144
|
+
ManyToOne28(() => User, (user) => user.freelancerContracts),
|
|
4145
|
+
JoinColumn28({ name: "freelancer_id" })
|
|
4085
4146
|
], Contract.prototype, "freelancer", 2);
|
|
4086
4147
|
__decorateClass([
|
|
4087
|
-
|
|
4148
|
+
Column30({ name: "duration", type: "integer", nullable: true })
|
|
4088
4149
|
], Contract.prototype, "duration", 2);
|
|
4089
4150
|
__decorateClass([
|
|
4090
|
-
|
|
4151
|
+
Column30({
|
|
4091
4152
|
name: "status",
|
|
4092
4153
|
type: "enum",
|
|
4093
4154
|
enum: ContractStatusEnum,
|
|
@@ -4095,7 +4156,7 @@ __decorateClass([
|
|
|
4095
4156
|
})
|
|
4096
4157
|
], Contract.prototype, "status", 2);
|
|
4097
4158
|
__decorateClass([
|
|
4098
|
-
|
|
4159
|
+
Column30({
|
|
4099
4160
|
name: "type",
|
|
4100
4161
|
type: "enum",
|
|
4101
4162
|
enum: ContractTypeEnum,
|
|
@@ -4103,10 +4164,10 @@ __decorateClass([
|
|
|
4103
4164
|
})
|
|
4104
4165
|
], Contract.prototype, "type", 2);
|
|
4105
4166
|
__decorateClass([
|
|
4106
|
-
|
|
4167
|
+
Column30({ name: "invoicing_cycle", type: "varchar", nullable: true })
|
|
4107
4168
|
], Contract.prototype, "invoicingCycle", 2);
|
|
4108
4169
|
__decorateClass([
|
|
4109
|
-
|
|
4170
|
+
Column30({
|
|
4110
4171
|
name: "escrow_deposite_amount",
|
|
4111
4172
|
type: "decimal",
|
|
4112
4173
|
precision: 10,
|
|
@@ -4115,80 +4176,80 @@ __decorateClass([
|
|
|
4115
4176
|
})
|
|
4116
4177
|
], Contract.prototype, "escrowDepositeAmount", 2);
|
|
4117
4178
|
__decorateClass([
|
|
4118
|
-
|
|
4179
|
+
Column30({
|
|
4119
4180
|
name: "start_date",
|
|
4120
4181
|
type: "timestamp with time zone",
|
|
4121
4182
|
nullable: true
|
|
4122
4183
|
})
|
|
4123
4184
|
], Contract.prototype, "startDate", 2);
|
|
4124
4185
|
__decorateClass([
|
|
4125
|
-
|
|
4186
|
+
Column30({
|
|
4126
4187
|
name: "end_date",
|
|
4127
4188
|
type: "timestamp with time zone",
|
|
4128
4189
|
nullable: true
|
|
4129
4190
|
})
|
|
4130
4191
|
], Contract.prototype, "endDate", 2);
|
|
4131
4192
|
__decorateClass([
|
|
4132
|
-
|
|
4193
|
+
Column30({ name: "original_document_url", type: "varchar", nullable: true })
|
|
4133
4194
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
4134
4195
|
__decorateClass([
|
|
4135
|
-
|
|
4196
|
+
Column30({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
4136
4197
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
4137
4198
|
__decorateClass([
|
|
4138
|
-
|
|
4199
|
+
Column30({
|
|
4139
4200
|
name: "client_signed_at",
|
|
4140
4201
|
type: "timestamp with time zone",
|
|
4141
4202
|
nullable: true
|
|
4142
4203
|
})
|
|
4143
4204
|
], Contract.prototype, "clientSignedAt", 2);
|
|
4144
4205
|
__decorateClass([
|
|
4145
|
-
|
|
4206
|
+
Column30({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
4146
4207
|
], Contract.prototype, "freelancerViewed", 2);
|
|
4147
4208
|
__decorateClass([
|
|
4148
|
-
|
|
4209
|
+
Column30({
|
|
4149
4210
|
name: "freelancer_viewed_at",
|
|
4150
4211
|
type: "timestamp with time zone",
|
|
4151
4212
|
nullable: true
|
|
4152
4213
|
})
|
|
4153
4214
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
4154
4215
|
__decorateClass([
|
|
4155
|
-
|
|
4216
|
+
Column30({
|
|
4156
4217
|
name: "freelancer_signed_at",
|
|
4157
4218
|
type: "timestamp with time zone",
|
|
4158
4219
|
nullable: true
|
|
4159
4220
|
})
|
|
4160
4221
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
4161
4222
|
__decorateClass([
|
|
4162
|
-
|
|
4223
|
+
Column30({
|
|
4163
4224
|
name: "rejectd_at",
|
|
4164
4225
|
type: "timestamp with time zone",
|
|
4165
4226
|
nullable: true
|
|
4166
4227
|
})
|
|
4167
4228
|
], Contract.prototype, "rejectedAt", 2);
|
|
4168
4229
|
__decorateClass([
|
|
4169
|
-
|
|
4230
|
+
Column30({ name: "reject_reason", type: "varchar", nullable: true })
|
|
4170
4231
|
], Contract.prototype, "rejectReason", 2);
|
|
4171
4232
|
__decorateClass([
|
|
4172
|
-
|
|
4233
|
+
Column30({ name: "resend_count", type: "integer", default: 0 })
|
|
4173
4234
|
], Contract.prototype, "resendCount", 2);
|
|
4174
4235
|
__decorateClass([
|
|
4175
|
-
|
|
4236
|
+
Column30({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
4176
4237
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
4177
4238
|
__decorateClass([
|
|
4178
|
-
|
|
4239
|
+
Column30({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
4179
4240
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
4180
4241
|
__decorateClass([
|
|
4181
|
-
|
|
4242
|
+
Column30({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
4182
4243
|
], Contract.prototype, "signaturePositions", 2);
|
|
4183
4244
|
__decorateClass([
|
|
4184
4245
|
OneToOne9(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
|
|
4185
4246
|
], Contract.prototype, "escrowWallet", 2);
|
|
4186
4247
|
Contract = __decorateClass([
|
|
4187
|
-
|
|
4248
|
+
Entity29("contracts")
|
|
4188
4249
|
], Contract);
|
|
4189
4250
|
|
|
4190
4251
|
// src/entities/timesheets.entity.ts
|
|
4191
|
-
import { Entity as
|
|
4252
|
+
import { Entity as Entity30, Column as Column31, Index as Index23, JoinColumn as JoinColumn29, ManyToOne as ManyToOne29 } from "typeorm";
|
|
4192
4253
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
4193
4254
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
4194
4255
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -4201,142 +4262,142 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
4201
4262
|
var Timesheet = class extends BaseEntity {
|
|
4202
4263
|
};
|
|
4203
4264
|
__decorateClass([
|
|
4204
|
-
|
|
4265
|
+
Column31({ name: "job_id", type: "integer", nullable: true }),
|
|
4205
4266
|
Index23()
|
|
4206
4267
|
], Timesheet.prototype, "jobId", 2);
|
|
4207
4268
|
__decorateClass([
|
|
4208
|
-
|
|
4209
|
-
|
|
4269
|
+
ManyToOne29(() => Job, (job) => job.timesheets),
|
|
4270
|
+
JoinColumn29({ name: "job_id" })
|
|
4210
4271
|
], Timesheet.prototype, "job", 2);
|
|
4211
4272
|
__decorateClass([
|
|
4212
|
-
|
|
4273
|
+
Column31({ name: "client_id", type: "integer", nullable: true }),
|
|
4213
4274
|
Index23()
|
|
4214
4275
|
], Timesheet.prototype, "clientId", 2);
|
|
4215
4276
|
__decorateClass([
|
|
4216
|
-
|
|
4217
|
-
|
|
4277
|
+
ManyToOne29(() => User, (user) => user.clientTimesheets),
|
|
4278
|
+
JoinColumn29({ name: "client_id" })
|
|
4218
4279
|
], Timesheet.prototype, "client", 2);
|
|
4219
4280
|
__decorateClass([
|
|
4220
|
-
|
|
4281
|
+
Column31({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4221
4282
|
Index23()
|
|
4222
4283
|
], Timesheet.prototype, "freelancerId", 2);
|
|
4223
4284
|
__decorateClass([
|
|
4224
|
-
|
|
4225
|
-
|
|
4285
|
+
ManyToOne29(() => User, (user) => user.freelancerTimesheets),
|
|
4286
|
+
JoinColumn29({ name: "freelancer_id" })
|
|
4226
4287
|
], Timesheet.prototype, "freelancer", 2);
|
|
4227
4288
|
__decorateClass([
|
|
4228
|
-
|
|
4289
|
+
Column31({
|
|
4229
4290
|
name: "start_date",
|
|
4230
4291
|
type: "date",
|
|
4231
4292
|
nullable: true
|
|
4232
4293
|
})
|
|
4233
4294
|
], Timesheet.prototype, "startDate", 2);
|
|
4234
4295
|
__decorateClass([
|
|
4235
|
-
|
|
4296
|
+
Column31({
|
|
4236
4297
|
name: "end_date",
|
|
4237
4298
|
type: "date",
|
|
4238
4299
|
nullable: true
|
|
4239
4300
|
})
|
|
4240
4301
|
], Timesheet.prototype, "endDate", 2);
|
|
4241
4302
|
__decorateClass([
|
|
4242
|
-
|
|
4303
|
+
Column31({ name: "start_time", type: "varchar", nullable: true })
|
|
4243
4304
|
], Timesheet.prototype, "startTime", 2);
|
|
4244
4305
|
__decorateClass([
|
|
4245
|
-
|
|
4306
|
+
Column31({ name: "end_time", type: "varchar", nullable: true })
|
|
4246
4307
|
], Timesheet.prototype, "endTime", 2);
|
|
4247
4308
|
__decorateClass([
|
|
4248
|
-
|
|
4309
|
+
Column31({ name: "worked_hours", type: "varchar", nullable: true })
|
|
4249
4310
|
], Timesheet.prototype, "workedHours", 2);
|
|
4250
4311
|
__decorateClass([
|
|
4251
|
-
|
|
4312
|
+
Column31({ name: "task_id", type: "integer", nullable: true })
|
|
4252
4313
|
], Timesheet.prototype, "taskId", 2);
|
|
4253
4314
|
__decorateClass([
|
|
4254
|
-
|
|
4315
|
+
Column31({ name: "task_name", type: "varchar", nullable: true })
|
|
4255
4316
|
], Timesheet.prototype, "taskName", 2);
|
|
4256
4317
|
__decorateClass([
|
|
4257
|
-
|
|
4318
|
+
Column31({ name: "description", type: "varchar", nullable: true })
|
|
4258
4319
|
], Timesheet.prototype, "description", 2);
|
|
4259
4320
|
__decorateClass([
|
|
4260
|
-
|
|
4321
|
+
Column31({ name: "week_start_date", type: "date", nullable: true })
|
|
4261
4322
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
4262
4323
|
__decorateClass([
|
|
4263
|
-
|
|
4324
|
+
Column31({ name: "week_end_date", type: "date", nullable: true })
|
|
4264
4325
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
4265
4326
|
__decorateClass([
|
|
4266
|
-
|
|
4327
|
+
Column31({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
4267
4328
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
4268
4329
|
__decorateClass([
|
|
4269
|
-
|
|
4330
|
+
Column31({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
4270
4331
|
], Timesheet.prototype, "submittedAt", 2);
|
|
4271
4332
|
__decorateClass([
|
|
4272
|
-
|
|
4333
|
+
Column31({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
4273
4334
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
4274
4335
|
__decorateClass([
|
|
4275
|
-
|
|
4336
|
+
Column31({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
4276
4337
|
], Timesheet.prototype, "approvedAt", 2);
|
|
4277
4338
|
__decorateClass([
|
|
4278
|
-
|
|
4339
|
+
Column31({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
4279
4340
|
], Timesheet.prototype, "status", 2);
|
|
4280
4341
|
__decorateClass([
|
|
4281
|
-
|
|
4342
|
+
Column31({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
4282
4343
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
4283
4344
|
Timesheet = __decorateClass([
|
|
4284
|
-
|
|
4345
|
+
Entity30("timesheets")
|
|
4285
4346
|
], Timesheet);
|
|
4286
4347
|
|
|
4287
4348
|
// src/entities/job-location.entity.ts
|
|
4288
4349
|
import {
|
|
4289
|
-
Entity as
|
|
4290
|
-
Column as
|
|
4291
|
-
ManyToOne as
|
|
4292
|
-
JoinColumn as
|
|
4350
|
+
Entity as Entity31,
|
|
4351
|
+
Column as Column32,
|
|
4352
|
+
ManyToOne as ManyToOne30,
|
|
4353
|
+
JoinColumn as JoinColumn30,
|
|
4293
4354
|
Index as Index24
|
|
4294
4355
|
} from "typeorm";
|
|
4295
4356
|
var JobLocation = class extends BaseEntity {
|
|
4296
4357
|
};
|
|
4297
4358
|
__decorateClass([
|
|
4298
|
-
|
|
4359
|
+
Column32({ name: "job_id", type: "integer", nullable: false }),
|
|
4299
4360
|
Index24()
|
|
4300
4361
|
], JobLocation.prototype, "jobId", 2);
|
|
4301
4362
|
__decorateClass([
|
|
4302
|
-
|
|
4303
|
-
|
|
4363
|
+
ManyToOne30(() => Job, (job) => job.jobLocations),
|
|
4364
|
+
JoinColumn30({ name: "job_id" })
|
|
4304
4365
|
], JobLocation.prototype, "job", 2);
|
|
4305
4366
|
__decorateClass([
|
|
4306
|
-
|
|
4367
|
+
Column32({ name: "country_id", type: "int", nullable: false })
|
|
4307
4368
|
], JobLocation.prototype, "countryId", 2);
|
|
4308
4369
|
__decorateClass([
|
|
4309
|
-
|
|
4370
|
+
Column32({ name: "country_name", type: "varchar", nullable: true })
|
|
4310
4371
|
], JobLocation.prototype, "countryName", 2);
|
|
4311
4372
|
__decorateClass([
|
|
4312
|
-
|
|
4313
|
-
|
|
4373
|
+
ManyToOne30(() => Country),
|
|
4374
|
+
JoinColumn30({ name: "country_id" })
|
|
4314
4375
|
], JobLocation.prototype, "country", 2);
|
|
4315
4376
|
__decorateClass([
|
|
4316
|
-
|
|
4377
|
+
Column32({ name: "state_id", type: "int", nullable: false })
|
|
4317
4378
|
], JobLocation.prototype, "stateId", 2);
|
|
4318
4379
|
__decorateClass([
|
|
4319
|
-
|
|
4380
|
+
Column32({ name: "state_name", type: "varchar", nullable: true })
|
|
4320
4381
|
], JobLocation.prototype, "stateName", 2);
|
|
4321
4382
|
__decorateClass([
|
|
4322
|
-
|
|
4323
|
-
|
|
4383
|
+
ManyToOne30(() => State),
|
|
4384
|
+
JoinColumn30({ name: "state_id" })
|
|
4324
4385
|
], JobLocation.prototype, "state", 2);
|
|
4325
4386
|
__decorateClass([
|
|
4326
|
-
|
|
4387
|
+
Column32({ name: "city_id", type: "int", nullable: false })
|
|
4327
4388
|
], JobLocation.prototype, "cityId", 2);
|
|
4328
4389
|
__decorateClass([
|
|
4329
|
-
|
|
4390
|
+
Column32({ name: "city_name", type: "varchar", nullable: true })
|
|
4330
4391
|
], JobLocation.prototype, "cityName", 2);
|
|
4331
4392
|
__decorateClass([
|
|
4332
|
-
|
|
4333
|
-
|
|
4393
|
+
ManyToOne30(() => City),
|
|
4394
|
+
JoinColumn30({ name: "city_id" })
|
|
4334
4395
|
], JobLocation.prototype, "city", 2);
|
|
4335
4396
|
__decorateClass([
|
|
4336
|
-
|
|
4397
|
+
Column32({ name: "location_wise_openings", type: "int", default: 0 })
|
|
4337
4398
|
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
4338
4399
|
JobLocation = __decorateClass([
|
|
4339
|
-
|
|
4400
|
+
Entity31("job_locations")
|
|
4340
4401
|
], JobLocation);
|
|
4341
4402
|
|
|
4342
4403
|
// src/entities/job.entity.ts
|
|
@@ -4385,55 +4446,55 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4385
4446
|
var Job = class extends BaseEntity {
|
|
4386
4447
|
};
|
|
4387
4448
|
__decorateClass([
|
|
4388
|
-
|
|
4449
|
+
Column33({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4389
4450
|
], Job.prototype, "jobId", 2);
|
|
4390
4451
|
// individual index to find jobs by user
|
|
4391
4452
|
__decorateClass([
|
|
4392
|
-
|
|
4453
|
+
Column33({ name: "user_id", type: "integer", nullable: true }),
|
|
4393
4454
|
Index25()
|
|
4394
4455
|
], Job.prototype, "userId", 2);
|
|
4395
4456
|
__decorateClass([
|
|
4396
|
-
|
|
4397
|
-
|
|
4457
|
+
ManyToOne31(() => User, (user) => user.jobs),
|
|
4458
|
+
JoinColumn31({ name: "user_id" })
|
|
4398
4459
|
], Job.prototype, "user", 2);
|
|
4399
4460
|
__decorateClass([
|
|
4400
|
-
|
|
4461
|
+
Column33({ name: "country_id", type: "int", nullable: true })
|
|
4401
4462
|
], Job.prototype, "countryId", 2);
|
|
4402
4463
|
__decorateClass([
|
|
4403
|
-
|
|
4404
|
-
|
|
4464
|
+
ManyToOne31(() => Country),
|
|
4465
|
+
JoinColumn31({ name: "country_id" })
|
|
4405
4466
|
], Job.prototype, "country", 2);
|
|
4406
4467
|
__decorateClass([
|
|
4407
|
-
|
|
4468
|
+
Column33({ name: "state_id", type: "int", nullable: true })
|
|
4408
4469
|
], Job.prototype, "stateId", 2);
|
|
4409
4470
|
__decorateClass([
|
|
4410
|
-
|
|
4411
|
-
|
|
4471
|
+
ManyToOne31(() => State),
|
|
4472
|
+
JoinColumn31({ name: "state_id" })
|
|
4412
4473
|
], Job.prototype, "state", 2);
|
|
4413
4474
|
__decorateClass([
|
|
4414
|
-
|
|
4475
|
+
Column33({ name: "city_id", type: "int", nullable: true })
|
|
4415
4476
|
], Job.prototype, "cityId", 2);
|
|
4416
4477
|
__decorateClass([
|
|
4417
|
-
|
|
4418
|
-
|
|
4478
|
+
ManyToOne31(() => City),
|
|
4479
|
+
JoinColumn31({ name: "city_id" })
|
|
4419
4480
|
], Job.prototype, "city", 2);
|
|
4420
4481
|
__decorateClass([
|
|
4421
|
-
|
|
4482
|
+
Column33({ name: "job_role", type: "varchar", nullable: true })
|
|
4422
4483
|
], Job.prototype, "jobRole", 2);
|
|
4423
4484
|
__decorateClass([
|
|
4424
|
-
|
|
4485
|
+
Column33({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4425
4486
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4426
4487
|
__decorateClass([
|
|
4427
|
-
|
|
4488
|
+
Column33({ name: "project_name", type: "varchar", nullable: true })
|
|
4428
4489
|
], Job.prototype, "projectName", 2);
|
|
4429
4490
|
__decorateClass([
|
|
4430
|
-
|
|
4491
|
+
Column33({ name: "note", type: "varchar", nullable: true })
|
|
4431
4492
|
], Job.prototype, "note", 2);
|
|
4432
4493
|
__decorateClass([
|
|
4433
|
-
|
|
4494
|
+
Column33({ name: "openings", type: "integer", default: 0 })
|
|
4434
4495
|
], Job.prototype, "openings", 2);
|
|
4435
4496
|
__decorateClass([
|
|
4436
|
-
|
|
4497
|
+
Column33({
|
|
4437
4498
|
name: "location",
|
|
4438
4499
|
type: "enum",
|
|
4439
4500
|
enum: JobLocationEnum2,
|
|
@@ -4441,7 +4502,7 @@ __decorateClass([
|
|
|
4441
4502
|
})
|
|
4442
4503
|
], Job.prototype, "location", 2);
|
|
4443
4504
|
__decorateClass([
|
|
4444
|
-
|
|
4505
|
+
Column33({
|
|
4445
4506
|
name: "type_of_employment",
|
|
4446
4507
|
type: "enum",
|
|
4447
4508
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4449,10 +4510,10 @@ __decorateClass([
|
|
|
4449
4510
|
})
|
|
4450
4511
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4451
4512
|
__decorateClass([
|
|
4452
|
-
|
|
4513
|
+
Column33({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4453
4514
|
], Job.prototype, "academicQualification", 2);
|
|
4454
4515
|
__decorateClass([
|
|
4455
|
-
|
|
4516
|
+
Column33({
|
|
4456
4517
|
name: "type_of_experience",
|
|
4457
4518
|
type: "enum",
|
|
4458
4519
|
enum: typeOfExperienceEnum,
|
|
@@ -4460,22 +4521,22 @@ __decorateClass([
|
|
|
4460
4521
|
})
|
|
4461
4522
|
], Job.prototype, "typeOfExperience", 2);
|
|
4462
4523
|
__decorateClass([
|
|
4463
|
-
|
|
4524
|
+
Column33({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4464
4525
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4465
4526
|
__decorateClass([
|
|
4466
|
-
|
|
4527
|
+
Column33({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4467
4528
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4468
4529
|
__decorateClass([
|
|
4469
|
-
|
|
4530
|
+
Column33({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4470
4531
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4471
4532
|
__decorateClass([
|
|
4472
|
-
|
|
4533
|
+
Column33({ name: "business_industry", type: "varchar", nullable: true })
|
|
4473
4534
|
], Job.prototype, "businessIndustry", 2);
|
|
4474
4535
|
__decorateClass([
|
|
4475
|
-
|
|
4536
|
+
Column33({ name: "currency", type: "varchar", default: "USD" })
|
|
4476
4537
|
], Job.prototype, "currency", 2);
|
|
4477
4538
|
__decorateClass([
|
|
4478
|
-
|
|
4539
|
+
Column33({
|
|
4479
4540
|
name: "expected_salary_from",
|
|
4480
4541
|
type: "decimal",
|
|
4481
4542
|
precision: 10,
|
|
@@ -4484,14 +4545,14 @@ __decorateClass([
|
|
|
4484
4545
|
})
|
|
4485
4546
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4486
4547
|
__decorateClass([
|
|
4487
|
-
|
|
4548
|
+
Column33({
|
|
4488
4549
|
name: "hide_expected_salary_from",
|
|
4489
4550
|
type: "boolean",
|
|
4490
4551
|
default: false
|
|
4491
4552
|
})
|
|
4492
4553
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4493
4554
|
__decorateClass([
|
|
4494
|
-
|
|
4555
|
+
Column33({
|
|
4495
4556
|
name: "expected_salary_to",
|
|
4496
4557
|
type: "decimal",
|
|
4497
4558
|
precision: 10,
|
|
@@ -4500,32 +4561,32 @@ __decorateClass([
|
|
|
4500
4561
|
})
|
|
4501
4562
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4502
4563
|
__decorateClass([
|
|
4503
|
-
|
|
4564
|
+
Column33({
|
|
4504
4565
|
name: "hide_expected_salary_to",
|
|
4505
4566
|
type: "boolean",
|
|
4506
4567
|
default: false
|
|
4507
4568
|
})
|
|
4508
4569
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4509
4570
|
__decorateClass([
|
|
4510
|
-
|
|
4571
|
+
Column33({ name: "years", type: "varchar", nullable: true })
|
|
4511
4572
|
], Job.prototype, "years", 2);
|
|
4512
4573
|
__decorateClass([
|
|
4513
|
-
|
|
4574
|
+
Column33({ name: "months", type: "varchar", nullable: true })
|
|
4514
4575
|
], Job.prototype, "months", 2);
|
|
4515
4576
|
__decorateClass([
|
|
4516
|
-
|
|
4577
|
+
Column33({ name: "weeks", type: "varchar", nullable: true })
|
|
4517
4578
|
], Job.prototype, "weeks", 2);
|
|
4518
4579
|
__decorateClass([
|
|
4519
|
-
|
|
4580
|
+
Column33({ name: "days", type: "varchar", nullable: true })
|
|
4520
4581
|
], Job.prototype, "days", 2);
|
|
4521
4582
|
__decorateClass([
|
|
4522
|
-
|
|
4583
|
+
Column33({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4523
4584
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4524
4585
|
__decorateClass([
|
|
4525
|
-
|
|
4586
|
+
Column33({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4526
4587
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4527
4588
|
__decorateClass([
|
|
4528
|
-
|
|
4589
|
+
Column33({
|
|
4529
4590
|
name: "duration_type",
|
|
4530
4591
|
type: "enum",
|
|
4531
4592
|
enum: DurationTypeEnum,
|
|
@@ -4533,10 +4594,10 @@ __decorateClass([
|
|
|
4533
4594
|
})
|
|
4534
4595
|
], Job.prototype, "durationType", 2);
|
|
4535
4596
|
__decorateClass([
|
|
4536
|
-
|
|
4597
|
+
Column33({ name: "duration", type: "varchar", nullable: true })
|
|
4537
4598
|
], Job.prototype, "duration", 2);
|
|
4538
4599
|
__decorateClass([
|
|
4539
|
-
|
|
4600
|
+
Column33({
|
|
4540
4601
|
name: "number_of_hours",
|
|
4541
4602
|
type: "decimal",
|
|
4542
4603
|
precision: 4,
|
|
@@ -4545,13 +4606,13 @@ __decorateClass([
|
|
|
4545
4606
|
})
|
|
4546
4607
|
], Job.prototype, "numberOfHours", 2);
|
|
4547
4608
|
__decorateClass([
|
|
4548
|
-
|
|
4609
|
+
Column33({ name: "description", type: "varchar", nullable: true })
|
|
4549
4610
|
], Job.prototype, "description", 2);
|
|
4550
4611
|
__decorateClass([
|
|
4551
|
-
|
|
4612
|
+
Column33({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4552
4613
|
], Job.prototype, "additionalComment", 2);
|
|
4553
4614
|
__decorateClass([
|
|
4554
|
-
|
|
4615
|
+
Column33({
|
|
4555
4616
|
name: "onboarding_tat",
|
|
4556
4617
|
type: "varchar",
|
|
4557
4618
|
length: 50,
|
|
@@ -4559,14 +4620,14 @@ __decorateClass([
|
|
|
4559
4620
|
})
|
|
4560
4621
|
], Job.prototype, "onboardingTat", 2);
|
|
4561
4622
|
__decorateClass([
|
|
4562
|
-
|
|
4623
|
+
Column33({
|
|
4563
4624
|
name: "candidate_communication_skills",
|
|
4564
4625
|
type: "varchar",
|
|
4565
4626
|
nullable: true
|
|
4566
4627
|
})
|
|
4567
4628
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4568
4629
|
__decorateClass([
|
|
4569
|
-
|
|
4630
|
+
Column33({
|
|
4570
4631
|
name: "step_completed",
|
|
4571
4632
|
type: "enum",
|
|
4572
4633
|
enum: Step,
|
|
@@ -4574,7 +4635,7 @@ __decorateClass([
|
|
|
4574
4635
|
})
|
|
4575
4636
|
], Job.prototype, "stepCompleted", 2);
|
|
4576
4637
|
__decorateClass([
|
|
4577
|
-
|
|
4638
|
+
Column33({
|
|
4578
4639
|
name: "status",
|
|
4579
4640
|
type: "enum",
|
|
4580
4641
|
enum: JobStatusEnum,
|
|
@@ -4582,40 +4643,40 @@ __decorateClass([
|
|
|
4582
4643
|
})
|
|
4583
4644
|
], Job.prototype, "status", 2);
|
|
4584
4645
|
__decorateClass([
|
|
4585
|
-
|
|
4646
|
+
Column33({ name: "viewed_count", type: "integer", default: 0 })
|
|
4586
4647
|
], Job.prototype, "viewedCount", 2);
|
|
4587
4648
|
__decorateClass([
|
|
4588
|
-
|
|
4649
|
+
Column33({ name: "application_count", type: "integer", default: 0 })
|
|
4589
4650
|
], Job.prototype, "applicationCount", 2);
|
|
4590
4651
|
__decorateClass([
|
|
4591
|
-
|
|
4652
|
+
Column33({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4592
4653
|
], Job.prototype, "isContractSigned", 2);
|
|
4593
4654
|
__decorateClass([
|
|
4594
|
-
|
|
4655
|
+
Column33({ name: "is_interview_created", type: "boolean", default: false })
|
|
4595
4656
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4596
4657
|
__decorateClass([
|
|
4597
|
-
|
|
4658
|
+
OneToMany13(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
4598
4659
|
], Job.prototype, "interviewInvites", 2);
|
|
4599
4660
|
__decorateClass([
|
|
4600
|
-
|
|
4661
|
+
OneToMany13(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
4601
4662
|
], Job.prototype, "jobSkills", 2);
|
|
4602
4663
|
__decorateClass([
|
|
4603
|
-
|
|
4664
|
+
OneToMany13(() => JobApplication, (jobApplication) => jobApplication.job, {
|
|
4604
4665
|
cascade: true
|
|
4605
4666
|
})
|
|
4606
4667
|
], Job.prototype, "jobApplications", 2);
|
|
4607
4668
|
__decorateClass([
|
|
4608
|
-
|
|
4669
|
+
OneToMany13(() => Interview, (interview) => interview.job, {
|
|
4609
4670
|
cascade: true
|
|
4610
4671
|
})
|
|
4611
4672
|
], Job.prototype, "interviews", 2);
|
|
4612
4673
|
__decorateClass([
|
|
4613
|
-
|
|
4674
|
+
OneToMany13(() => F2FInterview, (f2fInterview) => f2fInterview.job, {
|
|
4614
4675
|
cascade: true
|
|
4615
4676
|
})
|
|
4616
4677
|
], Job.prototype, "f2fInterviews", 2);
|
|
4617
4678
|
__decorateClass([
|
|
4618
|
-
|
|
4679
|
+
OneToMany13(
|
|
4619
4680
|
() => JobRecommendation,
|
|
4620
4681
|
(jobRecommendation) => jobRecommendation.job,
|
|
4621
4682
|
{
|
|
@@ -4624,54 +4685,54 @@ __decorateClass([
|
|
|
4624
4685
|
)
|
|
4625
4686
|
], Job.prototype, "recommendations", 2);
|
|
4626
4687
|
__decorateClass([
|
|
4627
|
-
|
|
4688
|
+
OneToMany13(() => Contract, (contract) => contract.job, {
|
|
4628
4689
|
cascade: true
|
|
4629
4690
|
})
|
|
4630
4691
|
], Job.prototype, "contracts", 2);
|
|
4631
4692
|
__decorateClass([
|
|
4632
|
-
|
|
4693
|
+
OneToMany13(() => Hiring, (hiring) => hiring.job, {
|
|
4633
4694
|
cascade: true
|
|
4634
4695
|
})
|
|
4635
4696
|
], Job.prototype, "hirings", 2);
|
|
4636
4697
|
__decorateClass([
|
|
4637
|
-
|
|
4698
|
+
OneToMany13(() => EscrowWallet, (escrowWallet) => escrowWallet.job, {
|
|
4638
4699
|
cascade: true
|
|
4639
4700
|
})
|
|
4640
4701
|
], Job.prototype, "escrowWallets", 2);
|
|
4641
4702
|
__decorateClass([
|
|
4642
|
-
|
|
4703
|
+
OneToMany13(() => Timesheet, (timesheet) => timesheet.job, {
|
|
4643
4704
|
cascade: true
|
|
4644
4705
|
})
|
|
4645
4706
|
], Job.prototype, "timesheets", 2);
|
|
4646
4707
|
__decorateClass([
|
|
4647
|
-
|
|
4708
|
+
OneToMany13(() => TimesheetLine, (timesheetLine) => timesheetLine.job, {
|
|
4648
4709
|
cascade: true
|
|
4649
4710
|
})
|
|
4650
4711
|
], Job.prototype, "timesheetLine", 2);
|
|
4651
4712
|
__decorateClass([
|
|
4652
|
-
|
|
4713
|
+
OneToMany13(() => Invoice, (invoice) => invoice.job, {
|
|
4653
4714
|
cascade: true
|
|
4654
4715
|
})
|
|
4655
4716
|
], Job.prototype, "invoice", 2);
|
|
4656
4717
|
__decorateClass([
|
|
4657
|
-
|
|
4718
|
+
OneToMany13(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.job)
|
|
4658
4719
|
], Job.prototype, "clientCandidatePreferences", 2);
|
|
4659
4720
|
__decorateClass([
|
|
4660
|
-
|
|
4721
|
+
OneToMany13(() => JobLocation, (jobLocation) => jobLocation.job, {
|
|
4661
4722
|
cascade: true
|
|
4662
4723
|
})
|
|
4663
4724
|
], Job.prototype, "jobLocations", 2);
|
|
4664
4725
|
Job = __decorateClass([
|
|
4665
|
-
|
|
4726
|
+
Entity32("jobs")
|
|
4666
4727
|
], Job);
|
|
4667
4728
|
|
|
4668
4729
|
// src/entities/bank-details.entity.ts
|
|
4669
4730
|
import {
|
|
4670
|
-
Entity as
|
|
4671
|
-
Column as
|
|
4731
|
+
Entity as Entity33,
|
|
4732
|
+
Column as Column34,
|
|
4672
4733
|
Index as Index26,
|
|
4673
|
-
ManyToOne as
|
|
4674
|
-
JoinColumn as
|
|
4734
|
+
ManyToOne as ManyToOne32,
|
|
4735
|
+
JoinColumn as JoinColumn32
|
|
4675
4736
|
} from "typeorm";
|
|
4676
4737
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4677
4738
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -4687,51 +4748,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4687
4748
|
};
|
|
4688
4749
|
// individual index to find bank details by user
|
|
4689
4750
|
__decorateClass([
|
|
4690
|
-
|
|
4751
|
+
Column34({ name: "user_id", type: "integer", nullable: true }),
|
|
4691
4752
|
Index26()
|
|
4692
4753
|
], BankDetail.prototype, "userId", 2);
|
|
4693
4754
|
__decorateClass([
|
|
4694
|
-
|
|
4695
|
-
|
|
4755
|
+
ManyToOne32(() => User, (user) => user.bankDetail),
|
|
4756
|
+
JoinColumn32({ name: "user_id" })
|
|
4696
4757
|
], BankDetail.prototype, "user", 2);
|
|
4697
4758
|
__decorateClass([
|
|
4698
|
-
|
|
4759
|
+
Column34({ name: "name", type: "varchar", nullable: true })
|
|
4699
4760
|
], BankDetail.prototype, "name", 2);
|
|
4700
4761
|
__decorateClass([
|
|
4701
|
-
|
|
4762
|
+
Column34({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4702
4763
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4703
4764
|
__decorateClass([
|
|
4704
|
-
|
|
4765
|
+
Column34({ name: "mobile", type: "varchar", nullable: true })
|
|
4705
4766
|
], BankDetail.prototype, "mobile", 2);
|
|
4706
4767
|
__decorateClass([
|
|
4707
|
-
|
|
4768
|
+
Column34({ name: "email", type: "varchar" })
|
|
4708
4769
|
], BankDetail.prototype, "email", 2);
|
|
4709
4770
|
__decorateClass([
|
|
4710
|
-
|
|
4771
|
+
Column34({ name: "address", type: "varchar", nullable: true })
|
|
4711
4772
|
], BankDetail.prototype, "address", 2);
|
|
4712
4773
|
__decorateClass([
|
|
4713
|
-
|
|
4774
|
+
Column34({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4714
4775
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4715
4776
|
__decorateClass([
|
|
4716
|
-
|
|
4777
|
+
Column34({ name: "bank_name", type: "varchar", nullable: true })
|
|
4717
4778
|
], BankDetail.prototype, "bankName", 2);
|
|
4718
4779
|
__decorateClass([
|
|
4719
|
-
|
|
4780
|
+
Column34({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4720
4781
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4721
4782
|
__decorateClass([
|
|
4722
|
-
|
|
4783
|
+
Column34({ name: "branch_name", type: "varchar", nullable: true })
|
|
4723
4784
|
], BankDetail.prototype, "branchName", 2);
|
|
4724
4785
|
__decorateClass([
|
|
4725
|
-
|
|
4786
|
+
Column34({ name: "routing_no", type: "varchar", nullable: true })
|
|
4726
4787
|
], BankDetail.prototype, "routingNo", 2);
|
|
4727
4788
|
__decorateClass([
|
|
4728
|
-
|
|
4789
|
+
Column34({ name: "aba_no", type: "varchar", nullable: true })
|
|
4729
4790
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4730
4791
|
__decorateClass([
|
|
4731
|
-
|
|
4792
|
+
Column34({ name: "iban", type: "varchar", nullable: true })
|
|
4732
4793
|
], BankDetail.prototype, "iban", 2);
|
|
4733
4794
|
__decorateClass([
|
|
4734
|
-
|
|
4795
|
+
Column34({
|
|
4735
4796
|
name: "account_type",
|
|
4736
4797
|
type: "enum",
|
|
4737
4798
|
enum: BankAccountTypeEnum,
|
|
@@ -4739,7 +4800,7 @@ __decorateClass([
|
|
|
4739
4800
|
})
|
|
4740
4801
|
], BankDetail.prototype, "accountType", 2);
|
|
4741
4802
|
__decorateClass([
|
|
4742
|
-
|
|
4803
|
+
Column34({
|
|
4743
4804
|
name: "account_scope",
|
|
4744
4805
|
type: "enum",
|
|
4745
4806
|
enum: BankAccountScopeEnum,
|
|
@@ -4747,185 +4808,185 @@ __decorateClass([
|
|
|
4747
4808
|
})
|
|
4748
4809
|
], BankDetail.prototype, "accountScope", 2);
|
|
4749
4810
|
BankDetail = __decorateClass([
|
|
4750
|
-
|
|
4811
|
+
Entity33("bank_details")
|
|
4751
4812
|
], BankDetail);
|
|
4752
4813
|
|
|
4753
4814
|
// src/entities/system-preference.entity.ts
|
|
4754
4815
|
import {
|
|
4755
|
-
Entity as
|
|
4756
|
-
Column as
|
|
4816
|
+
Entity as Entity34,
|
|
4817
|
+
Column as Column35,
|
|
4757
4818
|
Index as Index27,
|
|
4758
|
-
ManyToOne as
|
|
4759
|
-
JoinColumn as
|
|
4819
|
+
ManyToOne as ManyToOne33,
|
|
4820
|
+
JoinColumn as JoinColumn33
|
|
4760
4821
|
} from "typeorm";
|
|
4761
4822
|
var SystemPreference = class extends BaseEntity {
|
|
4762
4823
|
};
|
|
4763
4824
|
// individual index to find system preference by user
|
|
4764
4825
|
__decorateClass([
|
|
4765
|
-
|
|
4826
|
+
Column35({ name: "user_id", type: "integer", nullable: true }),
|
|
4766
4827
|
Index27()
|
|
4767
4828
|
], SystemPreference.prototype, "userId", 2);
|
|
4768
4829
|
__decorateClass([
|
|
4769
|
-
|
|
4770
|
-
|
|
4830
|
+
ManyToOne33(() => User, (user) => user.systemPreference),
|
|
4831
|
+
JoinColumn33({ name: "user_id" })
|
|
4771
4832
|
], SystemPreference.prototype, "user", 2);
|
|
4772
4833
|
__decorateClass([
|
|
4773
|
-
|
|
4834
|
+
Column35({ name: "key", type: "varchar", nullable: false })
|
|
4774
4835
|
], SystemPreference.prototype, "key", 2);
|
|
4775
4836
|
__decorateClass([
|
|
4776
|
-
|
|
4837
|
+
Column35({ name: "value", type: "boolean", default: false })
|
|
4777
4838
|
], SystemPreference.prototype, "value", 2);
|
|
4778
4839
|
SystemPreference = __decorateClass([
|
|
4779
|
-
|
|
4840
|
+
Entity34("system_preferences")
|
|
4780
4841
|
], SystemPreference);
|
|
4781
4842
|
|
|
4782
4843
|
// src/entities/freelancer-experience.entity.ts
|
|
4783
4844
|
import {
|
|
4784
|
-
Entity as
|
|
4785
|
-
Column as
|
|
4845
|
+
Entity as Entity35,
|
|
4846
|
+
Column as Column36,
|
|
4786
4847
|
Index as Index28,
|
|
4787
|
-
ManyToOne as
|
|
4788
|
-
JoinColumn as
|
|
4848
|
+
ManyToOne as ManyToOne34,
|
|
4849
|
+
JoinColumn as JoinColumn34
|
|
4789
4850
|
} from "typeorm";
|
|
4790
4851
|
var FreelancerExperience = class extends BaseEntity {
|
|
4791
4852
|
};
|
|
4792
4853
|
// individual index to find experence by user
|
|
4793
4854
|
__decorateClass([
|
|
4794
|
-
|
|
4855
|
+
Column36({ name: "user_id", type: "integer", nullable: true }),
|
|
4795
4856
|
Index28()
|
|
4796
4857
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4797
4858
|
__decorateClass([
|
|
4798
|
-
|
|
4799
|
-
|
|
4859
|
+
ManyToOne34(() => User, (user) => user.freelancerExperience),
|
|
4860
|
+
JoinColumn34({ name: "user_id" })
|
|
4800
4861
|
], FreelancerExperience.prototype, "user", 2);
|
|
4801
4862
|
__decorateClass([
|
|
4802
|
-
|
|
4863
|
+
Column36({ name: "company_name", type: "varchar", nullable: true })
|
|
4803
4864
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4804
4865
|
__decorateClass([
|
|
4805
|
-
|
|
4866
|
+
Column36({ name: "designation", type: "varchar", nullable: true })
|
|
4806
4867
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4807
4868
|
__decorateClass([
|
|
4808
|
-
|
|
4869
|
+
Column36({ name: "job_duration", type: "varchar", nullable: true })
|
|
4809
4870
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4810
4871
|
__decorateClass([
|
|
4811
|
-
|
|
4872
|
+
Column36({ name: "description", type: "varchar", nullable: true })
|
|
4812
4873
|
], FreelancerExperience.prototype, "description", 2);
|
|
4813
4874
|
FreelancerExperience = __decorateClass([
|
|
4814
|
-
|
|
4875
|
+
Entity35("freelancer_experiences")
|
|
4815
4876
|
], FreelancerExperience);
|
|
4816
4877
|
|
|
4817
4878
|
// src/entities/freelancer-education.entity.ts
|
|
4818
4879
|
import {
|
|
4819
|
-
Entity as
|
|
4820
|
-
Column as
|
|
4880
|
+
Entity as Entity36,
|
|
4881
|
+
Column as Column37,
|
|
4821
4882
|
Index as Index29,
|
|
4822
|
-
ManyToOne as
|
|
4823
|
-
JoinColumn as
|
|
4883
|
+
ManyToOne as ManyToOne35,
|
|
4884
|
+
JoinColumn as JoinColumn35
|
|
4824
4885
|
} from "typeorm";
|
|
4825
4886
|
var FreelancerEducation = class extends BaseEntity {
|
|
4826
4887
|
};
|
|
4827
4888
|
// individual index to find education by user
|
|
4828
4889
|
__decorateClass([
|
|
4829
|
-
|
|
4890
|
+
Column37({ name: "user_id", type: "integer", nullable: true }),
|
|
4830
4891
|
Index29()
|
|
4831
4892
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4832
4893
|
__decorateClass([
|
|
4833
|
-
|
|
4834
|
-
|
|
4894
|
+
ManyToOne35(() => User, (user) => user.freelancerEducation),
|
|
4895
|
+
JoinColumn35({ name: "user_id" })
|
|
4835
4896
|
], FreelancerEducation.prototype, "user", 2);
|
|
4836
4897
|
__decorateClass([
|
|
4837
|
-
|
|
4898
|
+
Column37({ name: "degree", type: "varchar", nullable: true })
|
|
4838
4899
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4839
4900
|
__decorateClass([
|
|
4840
|
-
|
|
4901
|
+
Column37({ name: "university", type: "varchar", nullable: true })
|
|
4841
4902
|
], FreelancerEducation.prototype, "university", 2);
|
|
4842
4903
|
__decorateClass([
|
|
4843
|
-
|
|
4904
|
+
Column37({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4844
4905
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4845
4906
|
FreelancerEducation = __decorateClass([
|
|
4846
|
-
|
|
4907
|
+
Entity36("freelancer_educations")
|
|
4847
4908
|
], FreelancerEducation);
|
|
4848
4909
|
|
|
4849
4910
|
// src/entities/freelancer-project.entity.ts
|
|
4850
4911
|
import {
|
|
4851
|
-
Entity as
|
|
4852
|
-
Column as
|
|
4912
|
+
Entity as Entity37,
|
|
4913
|
+
Column as Column38,
|
|
4853
4914
|
Index as Index30,
|
|
4854
|
-
ManyToOne as
|
|
4855
|
-
JoinColumn as
|
|
4915
|
+
ManyToOne as ManyToOne36,
|
|
4916
|
+
JoinColumn as JoinColumn36
|
|
4856
4917
|
} from "typeorm";
|
|
4857
4918
|
var FreelancerProject = class extends BaseEntity {
|
|
4858
4919
|
};
|
|
4859
4920
|
// individual index to find project by user
|
|
4860
4921
|
__decorateClass([
|
|
4861
|
-
|
|
4922
|
+
Column38({ name: "user_id", type: "integer", nullable: true }),
|
|
4862
4923
|
Index30()
|
|
4863
4924
|
], FreelancerProject.prototype, "userId", 2);
|
|
4864
4925
|
__decorateClass([
|
|
4865
|
-
|
|
4866
|
-
|
|
4926
|
+
ManyToOne36(() => User, (user) => user.freelancerProject),
|
|
4927
|
+
JoinColumn36({ name: "user_id" })
|
|
4867
4928
|
], FreelancerProject.prototype, "user", 2);
|
|
4868
4929
|
__decorateClass([
|
|
4869
|
-
|
|
4930
|
+
Column38({ name: "project_name", type: "varchar", nullable: true })
|
|
4870
4931
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4871
4932
|
__decorateClass([
|
|
4872
|
-
|
|
4933
|
+
Column38({ name: "start_date", type: "date", nullable: true })
|
|
4873
4934
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4874
4935
|
__decorateClass([
|
|
4875
|
-
|
|
4936
|
+
Column38({ name: "end_date", type: "date", nullable: true })
|
|
4876
4937
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4877
4938
|
__decorateClass([
|
|
4878
|
-
|
|
4939
|
+
Column38({ name: "client_name", type: "varchar", nullable: true })
|
|
4879
4940
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4880
4941
|
__decorateClass([
|
|
4881
|
-
|
|
4942
|
+
Column38({ name: "git_link", type: "varchar", nullable: true })
|
|
4882
4943
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4883
4944
|
__decorateClass([
|
|
4884
|
-
|
|
4945
|
+
Column38({ name: "description", type: "varchar", nullable: true })
|
|
4885
4946
|
], FreelancerProject.prototype, "description", 2);
|
|
4886
4947
|
FreelancerProject = __decorateClass([
|
|
4887
|
-
|
|
4948
|
+
Entity37("freelancer_projects")
|
|
4888
4949
|
], FreelancerProject);
|
|
4889
4950
|
|
|
4890
4951
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4891
4952
|
import {
|
|
4892
|
-
Entity as
|
|
4893
|
-
Column as
|
|
4953
|
+
Entity as Entity38,
|
|
4954
|
+
Column as Column39,
|
|
4894
4955
|
Index as Index31,
|
|
4895
|
-
ManyToOne as
|
|
4896
|
-
JoinColumn as
|
|
4956
|
+
ManyToOne as ManyToOne37,
|
|
4957
|
+
JoinColumn as JoinColumn37
|
|
4897
4958
|
} from "typeorm";
|
|
4898
4959
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4899
4960
|
};
|
|
4900
4961
|
// individual index to find case study by user
|
|
4901
4962
|
__decorateClass([
|
|
4902
|
-
|
|
4963
|
+
Column39({ name: "user_id", type: "integer", nullable: true }),
|
|
4903
4964
|
Index31()
|
|
4904
4965
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4905
4966
|
__decorateClass([
|
|
4906
|
-
|
|
4907
|
-
|
|
4967
|
+
ManyToOne37(() => User, (user) => user.freelancerCaseStudy),
|
|
4968
|
+
JoinColumn37({ name: "user_id" })
|
|
4908
4969
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4909
4970
|
__decorateClass([
|
|
4910
|
-
|
|
4971
|
+
Column39({ name: "project_name", type: "varchar", nullable: true })
|
|
4911
4972
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4912
4973
|
__decorateClass([
|
|
4913
|
-
|
|
4974
|
+
Column39({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4914
4975
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4915
4976
|
__decorateClass([
|
|
4916
|
-
|
|
4977
|
+
Column39({ name: "description", type: "varchar", nullable: true })
|
|
4917
4978
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4918
4979
|
FreelancerCaseStudy = __decorateClass([
|
|
4919
|
-
|
|
4980
|
+
Entity38("freelancer_case_studies")
|
|
4920
4981
|
], FreelancerCaseStudy);
|
|
4921
4982
|
|
|
4922
4983
|
// src/entities/freelancer-skill.entity.ts
|
|
4923
4984
|
import {
|
|
4924
|
-
Entity as
|
|
4925
|
-
Column as
|
|
4985
|
+
Entity as Entity39,
|
|
4986
|
+
Column as Column40,
|
|
4926
4987
|
Index as Index32,
|
|
4927
|
-
ManyToOne as
|
|
4928
|
-
JoinColumn as
|
|
4988
|
+
ManyToOne as ManyToOne38,
|
|
4989
|
+
JoinColumn as JoinColumn38
|
|
4929
4990
|
} from "typeorm";
|
|
4930
4991
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4931
4992
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
@@ -4936,18 +4997,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4936
4997
|
};
|
|
4937
4998
|
// individual index to find core skills by user
|
|
4938
4999
|
__decorateClass([
|
|
4939
|
-
|
|
5000
|
+
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
4940
5001
|
Index32()
|
|
4941
5002
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4942
5003
|
__decorateClass([
|
|
4943
|
-
|
|
4944
|
-
|
|
5004
|
+
ManyToOne38(() => User, (user) => user.freelancerSkills),
|
|
5005
|
+
JoinColumn38({ name: "user_id" })
|
|
4945
5006
|
], FreelancerSkill.prototype, "user", 2);
|
|
4946
5007
|
__decorateClass([
|
|
4947
|
-
|
|
5008
|
+
Column40({ name: "skill_name", type: "varchar", nullable: true })
|
|
4948
5009
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4949
5010
|
__decorateClass([
|
|
4950
|
-
|
|
5011
|
+
Column40({
|
|
4951
5012
|
name: "skill_category",
|
|
4952
5013
|
type: "smallint",
|
|
4953
5014
|
default: 1,
|
|
@@ -4955,68 +5016,68 @@ __decorateClass([
|
|
|
4955
5016
|
})
|
|
4956
5017
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4957
5018
|
FreelancerSkill = __decorateClass([
|
|
4958
|
-
|
|
5019
|
+
Entity39("freelancer_skills")
|
|
4959
5020
|
], FreelancerSkill);
|
|
4960
5021
|
|
|
4961
5022
|
// src/entities/freelancer-tool.entity.ts
|
|
4962
5023
|
import {
|
|
4963
|
-
Entity as
|
|
4964
|
-
Column as
|
|
5024
|
+
Entity as Entity40,
|
|
5025
|
+
Column as Column41,
|
|
4965
5026
|
Index as Index33,
|
|
4966
|
-
ManyToOne as
|
|
4967
|
-
JoinColumn as
|
|
5027
|
+
ManyToOne as ManyToOne39,
|
|
5028
|
+
JoinColumn as JoinColumn39
|
|
4968
5029
|
} from "typeorm";
|
|
4969
5030
|
var FreelancerTool = class extends BaseEntity {
|
|
4970
5031
|
};
|
|
4971
5032
|
// individual index to find tool by user
|
|
4972
5033
|
__decorateClass([
|
|
4973
|
-
|
|
5034
|
+
Column41({ name: "user_id", type: "integer", nullable: true }),
|
|
4974
5035
|
Index33()
|
|
4975
5036
|
], FreelancerTool.prototype, "userId", 2);
|
|
4976
5037
|
__decorateClass([
|
|
4977
|
-
|
|
4978
|
-
|
|
5038
|
+
ManyToOne39(() => User, (user) => user.freelancerTool),
|
|
5039
|
+
JoinColumn39({ name: "user_id" })
|
|
4979
5040
|
], FreelancerTool.prototype, "user", 2);
|
|
4980
5041
|
__decorateClass([
|
|
4981
|
-
|
|
5042
|
+
Column41({ name: "tool_name", type: "varchar", nullable: true })
|
|
4982
5043
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4983
5044
|
FreelancerTool = __decorateClass([
|
|
4984
|
-
|
|
5045
|
+
Entity40("freelancer_tools")
|
|
4985
5046
|
], FreelancerTool);
|
|
4986
5047
|
|
|
4987
5048
|
// src/entities/freelancer-framework.entity.ts
|
|
4988
5049
|
import {
|
|
4989
|
-
Entity as
|
|
4990
|
-
Column as
|
|
5050
|
+
Entity as Entity41,
|
|
5051
|
+
Column as Column42,
|
|
4991
5052
|
Index as Index34,
|
|
4992
|
-
ManyToOne as
|
|
4993
|
-
JoinColumn as
|
|
5053
|
+
ManyToOne as ManyToOne40,
|
|
5054
|
+
JoinColumn as JoinColumn40
|
|
4994
5055
|
} from "typeorm";
|
|
4995
5056
|
var FreelancerFramework = class extends BaseEntity {
|
|
4996
5057
|
};
|
|
4997
5058
|
// individual index to find framework by user
|
|
4998
5059
|
__decorateClass([
|
|
4999
|
-
|
|
5060
|
+
Column42({ name: "user_id", type: "integer", nullable: true }),
|
|
5000
5061
|
Index34()
|
|
5001
5062
|
], FreelancerFramework.prototype, "userId", 2);
|
|
5002
5063
|
__decorateClass([
|
|
5003
|
-
|
|
5004
|
-
|
|
5064
|
+
ManyToOne40(() => User, (user) => user.freelancerFramework),
|
|
5065
|
+
JoinColumn40({ name: "user_id" })
|
|
5005
5066
|
], FreelancerFramework.prototype, "user", 2);
|
|
5006
5067
|
__decorateClass([
|
|
5007
|
-
|
|
5068
|
+
Column42({ name: "framework_name", type: "varchar", nullable: true })
|
|
5008
5069
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
5009
5070
|
FreelancerFramework = __decorateClass([
|
|
5010
|
-
|
|
5071
|
+
Entity41("freelancer_frameworks")
|
|
5011
5072
|
], FreelancerFramework);
|
|
5012
5073
|
|
|
5013
5074
|
// src/entities/freelancer-assessment.entity.ts
|
|
5014
5075
|
import {
|
|
5015
|
-
Entity as
|
|
5016
|
-
Column as
|
|
5076
|
+
Entity as Entity42,
|
|
5077
|
+
Column as Column43,
|
|
5017
5078
|
Index as Index35,
|
|
5018
|
-
ManyToOne as
|
|
5019
|
-
JoinColumn as
|
|
5079
|
+
ManyToOne as ManyToOne41,
|
|
5080
|
+
JoinColumn as JoinColumn41
|
|
5020
5081
|
} from "typeorm";
|
|
5021
5082
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
5022
5083
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -5033,30 +5094,30 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
5033
5094
|
var FreelancerAssessment = class extends BaseEntity {
|
|
5034
5095
|
};
|
|
5035
5096
|
__decorateClass([
|
|
5036
|
-
|
|
5097
|
+
Column43({ name: "user_id", type: "integer", nullable: true }),
|
|
5037
5098
|
Index35()
|
|
5038
5099
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
5039
5100
|
__decorateClass([
|
|
5040
|
-
|
|
5041
|
-
|
|
5101
|
+
ManyToOne41(() => User, (user) => user.assessments),
|
|
5102
|
+
JoinColumn41({ name: "user_id" })
|
|
5042
5103
|
], FreelancerAssessment.prototype, "user", 2);
|
|
5043
5104
|
__decorateClass([
|
|
5044
|
-
|
|
5105
|
+
Column43({ name: "interview_id", type: "varchar", nullable: true })
|
|
5045
5106
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
5046
5107
|
__decorateClass([
|
|
5047
|
-
|
|
5108
|
+
Column43({ name: "interview_link", type: "text", nullable: true })
|
|
5048
5109
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
5049
5110
|
__decorateClass([
|
|
5050
|
-
|
|
5111
|
+
Column43({ name: "recording_link", type: "text", nullable: true })
|
|
5051
5112
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
5052
5113
|
__decorateClass([
|
|
5053
|
-
|
|
5114
|
+
Column43({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
5054
5115
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
5055
5116
|
__decorateClass([
|
|
5056
|
-
|
|
5117
|
+
Column43({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
5057
5118
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
5058
5119
|
__decorateClass([
|
|
5059
|
-
|
|
5120
|
+
Column43({
|
|
5060
5121
|
name: "status",
|
|
5061
5122
|
type: "enum",
|
|
5062
5123
|
enum: AssessmentStatusEnum,
|
|
@@ -5064,11 +5125,11 @@ __decorateClass([
|
|
|
5064
5125
|
})
|
|
5065
5126
|
], FreelancerAssessment.prototype, "status", 2);
|
|
5066
5127
|
FreelancerAssessment = __decorateClass([
|
|
5067
|
-
|
|
5128
|
+
Entity42("freelancer_assessments")
|
|
5068
5129
|
], FreelancerAssessment);
|
|
5069
5130
|
|
|
5070
5131
|
// src/entities/freelancer-declaration.entity.ts
|
|
5071
|
-
import { Entity as
|
|
5132
|
+
import { Entity as Entity43, Column as Column44, Index as Index36, ManyToOne as ManyToOne42, JoinColumn as JoinColumn42 } from "typeorm";
|
|
5072
5133
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
5073
5134
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
5074
5135
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -5080,15 +5141,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
5080
5141
|
};
|
|
5081
5142
|
// individual index to find declaration by user
|
|
5082
5143
|
__decorateClass([
|
|
5083
|
-
|
|
5144
|
+
Column44({ name: "user_id", type: "integer", nullable: true }),
|
|
5084
5145
|
Index36()
|
|
5085
5146
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
5086
5147
|
__decorateClass([
|
|
5087
|
-
|
|
5088
|
-
|
|
5148
|
+
ManyToOne42(() => User, (user) => user.freelancerDeclaration),
|
|
5149
|
+
JoinColumn42({ name: "user_id" })
|
|
5089
5150
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
5090
5151
|
__decorateClass([
|
|
5091
|
-
|
|
5152
|
+
Column44({
|
|
5092
5153
|
name: "document_type",
|
|
5093
5154
|
type: "enum",
|
|
5094
5155
|
enum: DocumentType,
|
|
@@ -5096,175 +5157,175 @@ __decorateClass([
|
|
|
5096
5157
|
})
|
|
5097
5158
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
5098
5159
|
__decorateClass([
|
|
5099
|
-
|
|
5160
|
+
Column44({ name: "front_document_url", type: "varchar", nullable: true })
|
|
5100
5161
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
5101
5162
|
__decorateClass([
|
|
5102
|
-
|
|
5163
|
+
Column44({ name: "back_document_url", type: "varchar", nullable: true })
|
|
5103
5164
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
5104
5165
|
__decorateClass([
|
|
5105
|
-
|
|
5166
|
+
Column44({ name: "declaration_accepted", type: "boolean", default: false })
|
|
5106
5167
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
5107
5168
|
__decorateClass([
|
|
5108
|
-
|
|
5169
|
+
Column44({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
5109
5170
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
5110
5171
|
FreelancerDeclaration = __decorateClass([
|
|
5111
|
-
|
|
5172
|
+
Entity43("freelancer_declaration")
|
|
5112
5173
|
], FreelancerDeclaration);
|
|
5113
5174
|
|
|
5114
5175
|
// src/entities/company-members-roles.entity.ts
|
|
5115
5176
|
import {
|
|
5116
|
-
Column as
|
|
5117
|
-
Entity as
|
|
5118
|
-
ManyToOne as
|
|
5119
|
-
JoinColumn as
|
|
5177
|
+
Column as Column48,
|
|
5178
|
+
Entity as Entity47,
|
|
5179
|
+
ManyToOne as ManyToOne45,
|
|
5180
|
+
JoinColumn as JoinColumn45,
|
|
5120
5181
|
Index as Index40
|
|
5121
5182
|
} from "typeorm";
|
|
5122
5183
|
|
|
5123
5184
|
// src/entities/company-role.entity.ts
|
|
5124
5185
|
import {
|
|
5125
|
-
Column as
|
|
5126
|
-
Entity as
|
|
5186
|
+
Column as Column47,
|
|
5187
|
+
Entity as Entity46,
|
|
5127
5188
|
Index as Index39,
|
|
5128
|
-
JoinColumn as
|
|
5129
|
-
ManyToOne as
|
|
5130
|
-
OneToMany as
|
|
5189
|
+
JoinColumn as JoinColumn44,
|
|
5190
|
+
ManyToOne as ManyToOne44,
|
|
5191
|
+
OneToMany as OneToMany15
|
|
5131
5192
|
} from "typeorm";
|
|
5132
5193
|
|
|
5133
5194
|
// src/entities/company-role-permission.entity.ts
|
|
5134
5195
|
import {
|
|
5135
|
-
Column as
|
|
5136
|
-
Entity as
|
|
5137
|
-
ManyToOne as
|
|
5138
|
-
JoinColumn as
|
|
5196
|
+
Column as Column46,
|
|
5197
|
+
Entity as Entity45,
|
|
5198
|
+
ManyToOne as ManyToOne43,
|
|
5199
|
+
JoinColumn as JoinColumn43,
|
|
5139
5200
|
Index as Index38
|
|
5140
5201
|
} from "typeorm";
|
|
5141
5202
|
|
|
5142
5203
|
// src/entities/permission.entity.ts
|
|
5143
|
-
import { Column as
|
|
5204
|
+
import { Column as Column45, Entity as Entity44, Index as Index37 } from "typeorm";
|
|
5144
5205
|
var Permission = class extends BaseEntity {
|
|
5145
5206
|
};
|
|
5146
5207
|
__decorateClass([
|
|
5147
|
-
|
|
5208
|
+
Column45({ name: "name", type: "varchar", nullable: true })
|
|
5148
5209
|
], Permission.prototype, "name", 2);
|
|
5149
5210
|
__decorateClass([
|
|
5150
|
-
|
|
5211
|
+
Column45({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5151
5212
|
Index37()
|
|
5152
5213
|
], Permission.prototype, "slug", 2);
|
|
5153
5214
|
__decorateClass([
|
|
5154
|
-
|
|
5215
|
+
Column45({ name: "description", type: "text", nullable: true })
|
|
5155
5216
|
], Permission.prototype, "description", 2);
|
|
5156
5217
|
__decorateClass([
|
|
5157
|
-
|
|
5218
|
+
Column45({ name: "is_active", type: "boolean", default: true })
|
|
5158
5219
|
], Permission.prototype, "isActive", 2);
|
|
5159
5220
|
Permission = __decorateClass([
|
|
5160
|
-
|
|
5221
|
+
Entity44("permissions")
|
|
5161
5222
|
], Permission);
|
|
5162
5223
|
|
|
5163
5224
|
// src/entities/company-role-permission.entity.ts
|
|
5164
5225
|
var CompanyRolePermission = class extends BaseEntity {
|
|
5165
5226
|
};
|
|
5166
5227
|
__decorateClass([
|
|
5167
|
-
|
|
5228
|
+
Column46({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5168
5229
|
Index38()
|
|
5169
5230
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
5170
5231
|
__decorateClass([
|
|
5171
|
-
|
|
5232
|
+
ManyToOne43(() => CompanyRole, (role) => role.rolePermissions, {
|
|
5172
5233
|
onDelete: "CASCADE"
|
|
5173
5234
|
}),
|
|
5174
|
-
|
|
5235
|
+
JoinColumn43({ name: "company_role_id" })
|
|
5175
5236
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
5176
5237
|
__decorateClass([
|
|
5177
|
-
|
|
5238
|
+
Column46({ name: "permission_id", type: "integer" }),
|
|
5178
5239
|
Index38()
|
|
5179
5240
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
5180
5241
|
__decorateClass([
|
|
5181
|
-
|
|
5182
|
-
|
|
5242
|
+
ManyToOne43(() => Permission, { onDelete: "CASCADE" }),
|
|
5243
|
+
JoinColumn43({ name: "permission_id" })
|
|
5183
5244
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
5184
5245
|
__decorateClass([
|
|
5185
|
-
|
|
5246
|
+
Column46({ name: "assigned_by", type: "integer", nullable: true })
|
|
5186
5247
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
5187
5248
|
CompanyRolePermission = __decorateClass([
|
|
5188
|
-
|
|
5249
|
+
Entity45("company_role_permissions")
|
|
5189
5250
|
], CompanyRolePermission);
|
|
5190
5251
|
|
|
5191
5252
|
// src/entities/company-role.entity.ts
|
|
5192
5253
|
var CompanyRole = class extends BaseEntity {
|
|
5193
5254
|
};
|
|
5194
5255
|
__decorateClass([
|
|
5195
|
-
|
|
5256
|
+
Column47({ name: "user_id", type: "integer", nullable: true }),
|
|
5196
5257
|
Index39()
|
|
5197
5258
|
], CompanyRole.prototype, "userId", 2);
|
|
5198
5259
|
__decorateClass([
|
|
5199
|
-
|
|
5200
|
-
|
|
5260
|
+
ManyToOne44(() => User, (user) => user.otps),
|
|
5261
|
+
JoinColumn44({ name: "user_id" })
|
|
5201
5262
|
], CompanyRole.prototype, "user", 2);
|
|
5202
5263
|
__decorateClass([
|
|
5203
|
-
|
|
5264
|
+
Column47({ name: "name", type: "varchar" })
|
|
5204
5265
|
], CompanyRole.prototype, "name", 2);
|
|
5205
5266
|
__decorateClass([
|
|
5206
|
-
|
|
5267
|
+
Column47({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5207
5268
|
Index39()
|
|
5208
5269
|
], CompanyRole.prototype, "slug", 2);
|
|
5209
5270
|
__decorateClass([
|
|
5210
|
-
|
|
5271
|
+
Column47({ name: "description", type: "text", nullable: true })
|
|
5211
5272
|
], CompanyRole.prototype, "description", 2);
|
|
5212
5273
|
__decorateClass([
|
|
5213
|
-
|
|
5274
|
+
Column47({ name: "is_active", type: "boolean", default: true })
|
|
5214
5275
|
], CompanyRole.prototype, "isActive", 2);
|
|
5215
5276
|
__decorateClass([
|
|
5216
|
-
|
|
5277
|
+
OneToMany15(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
5217
5278
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
5218
5279
|
CompanyRole = __decorateClass([
|
|
5219
|
-
|
|
5280
|
+
Entity46("company_roles")
|
|
5220
5281
|
], CompanyRole);
|
|
5221
5282
|
|
|
5222
5283
|
// src/entities/company-members-roles.entity.ts
|
|
5223
5284
|
var CompanyMemberRole = class extends BaseEntity {
|
|
5224
5285
|
};
|
|
5225
5286
|
__decorateClass([
|
|
5226
|
-
|
|
5287
|
+
Column48({ name: "user_id", type: "integer", nullable: true }),
|
|
5227
5288
|
Index40()
|
|
5228
5289
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
5229
5290
|
__decorateClass([
|
|
5230
|
-
|
|
5231
|
-
|
|
5291
|
+
ManyToOne45(() => User),
|
|
5292
|
+
JoinColumn45({ name: "user_id" })
|
|
5232
5293
|
], CompanyMemberRole.prototype, "user", 2);
|
|
5233
5294
|
__decorateClass([
|
|
5234
|
-
|
|
5235
|
-
|
|
5295
|
+
ManyToOne45(() => CompanyRole),
|
|
5296
|
+
JoinColumn45({ name: "company_role_id" })
|
|
5236
5297
|
], CompanyMemberRole.prototype, "role", 2);
|
|
5237
5298
|
__decorateClass([
|
|
5238
|
-
|
|
5299
|
+
Column48({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5239
5300
|
Index40()
|
|
5240
5301
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
5241
5302
|
__decorateClass([
|
|
5242
|
-
|
|
5303
|
+
Column48({ name: "assigned_by", type: "integer", nullable: true })
|
|
5243
5304
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
5244
5305
|
CompanyMemberRole = __decorateClass([
|
|
5245
|
-
|
|
5306
|
+
Entity47("company_member_roles")
|
|
5246
5307
|
], CompanyMemberRole);
|
|
5247
5308
|
|
|
5248
5309
|
// src/entities/assessment-answer.entity.ts
|
|
5249
5310
|
import {
|
|
5250
|
-
Entity as
|
|
5251
|
-
Column as
|
|
5252
|
-
ManyToOne as
|
|
5311
|
+
Entity as Entity50,
|
|
5312
|
+
Column as Column51,
|
|
5313
|
+
ManyToOne as ManyToOne48,
|
|
5253
5314
|
Index as Index43,
|
|
5254
|
-
JoinColumn as
|
|
5315
|
+
JoinColumn as JoinColumn48
|
|
5255
5316
|
} from "typeorm";
|
|
5256
5317
|
|
|
5257
5318
|
// src/entities/assessment-question.entity.ts
|
|
5258
|
-
import { Entity as
|
|
5319
|
+
import { Entity as Entity49, Column as Column50, OneToMany as OneToMany17, Index as Index42, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
|
|
5259
5320
|
|
|
5260
5321
|
// src/entities/assessment-question-option.entity.ts
|
|
5261
5322
|
import {
|
|
5262
|
-
Entity as
|
|
5263
|
-
Column as
|
|
5264
|
-
OneToMany as
|
|
5265
|
-
ManyToOne as
|
|
5323
|
+
Entity as Entity48,
|
|
5324
|
+
Column as Column49,
|
|
5325
|
+
OneToMany as OneToMany16,
|
|
5326
|
+
ManyToOne as ManyToOne46,
|
|
5266
5327
|
Index as Index41,
|
|
5267
|
-
JoinColumn as
|
|
5328
|
+
JoinColumn as JoinColumn46
|
|
5268
5329
|
} from "typeorm";
|
|
5269
5330
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5270
5331
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -5275,21 +5336,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5275
5336
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5276
5337
|
};
|
|
5277
5338
|
__decorateClass([
|
|
5278
|
-
|
|
5339
|
+
Column49({ name: "question_id", type: "integer", nullable: true }),
|
|
5279
5340
|
Index41()
|
|
5280
5341
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5281
5342
|
__decorateClass([
|
|
5282
|
-
|
|
5343
|
+
ManyToOne46(
|
|
5283
5344
|
() => AssessmetQuestion,
|
|
5284
5345
|
(assessmentQuestion) => assessmentQuestion.options
|
|
5285
5346
|
),
|
|
5286
|
-
|
|
5347
|
+
JoinColumn46({ name: "question_id" })
|
|
5287
5348
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5288
5349
|
__decorateClass([
|
|
5289
|
-
|
|
5350
|
+
Column49({ name: "text", type: "varchar", nullable: true })
|
|
5290
5351
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5291
5352
|
__decorateClass([
|
|
5292
|
-
|
|
5353
|
+
Column49({
|
|
5293
5354
|
name: "answer_type",
|
|
5294
5355
|
type: "enum",
|
|
5295
5356
|
enum: AnswerTypeEnum,
|
|
@@ -5297,13 +5358,13 @@ __decorateClass([
|
|
|
5297
5358
|
})
|
|
5298
5359
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5299
5360
|
__decorateClass([
|
|
5300
|
-
|
|
5361
|
+
Column49({ name: "is_active", type: "boolean", default: true })
|
|
5301
5362
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5302
5363
|
__decorateClass([
|
|
5303
|
-
|
|
5364
|
+
OneToMany16(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5304
5365
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5305
5366
|
AssessmetQuestionOption = __decorateClass([
|
|
5306
|
-
|
|
5367
|
+
Entity48("assessment_question_options")
|
|
5307
5368
|
], AssessmetQuestionOption);
|
|
5308
5369
|
|
|
5309
5370
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5315,10 +5376,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5315
5376
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5316
5377
|
};
|
|
5317
5378
|
__decorateClass([
|
|
5318
|
-
|
|
5379
|
+
Column50({ name: "text", type: "varchar", nullable: true })
|
|
5319
5380
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5320
5381
|
__decorateClass([
|
|
5321
|
-
|
|
5382
|
+
Column50({
|
|
5322
5383
|
name: "question_for",
|
|
5323
5384
|
type: "enum",
|
|
5324
5385
|
enum: QuestionForEnum,
|
|
@@ -5326,24 +5387,24 @@ __decorateClass([
|
|
|
5326
5387
|
})
|
|
5327
5388
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5328
5389
|
__decorateClass([
|
|
5329
|
-
|
|
5390
|
+
Column50({ name: "is_active", type: "boolean", default: true })
|
|
5330
5391
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5331
5392
|
__decorateClass([
|
|
5332
|
-
|
|
5393
|
+
Column50({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5333
5394
|
Index42()
|
|
5334
5395
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5335
5396
|
__decorateClass([
|
|
5336
|
-
|
|
5337
|
-
|
|
5397
|
+
ManyToOne47(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5398
|
+
JoinColumn47({ name: "candidate_id" })
|
|
5338
5399
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5339
5400
|
__decorateClass([
|
|
5340
|
-
|
|
5401
|
+
OneToMany17(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
5341
5402
|
], AssessmetQuestion.prototype, "options", 2);
|
|
5342
5403
|
__decorateClass([
|
|
5343
|
-
|
|
5404
|
+
OneToMany17(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5344
5405
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5345
5406
|
AssessmetQuestion = __decorateClass([
|
|
5346
|
-
|
|
5407
|
+
Entity49("assessment_questions")
|
|
5347
5408
|
], AssessmetQuestion);
|
|
5348
5409
|
|
|
5349
5410
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5356,87 +5417,87 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5356
5417
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5357
5418
|
};
|
|
5358
5419
|
__decorateClass([
|
|
5359
|
-
|
|
5420
|
+
Column51({ name: "user_id", type: "integer" }),
|
|
5360
5421
|
Index43()
|
|
5361
5422
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5362
5423
|
__decorateClass([
|
|
5363
|
-
|
|
5364
|
-
|
|
5424
|
+
ManyToOne48(() => User, (user) => user.assessmentAnswers),
|
|
5425
|
+
JoinColumn48({ name: "user_id" })
|
|
5365
5426
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5366
5427
|
__decorateClass([
|
|
5367
|
-
|
|
5428
|
+
Column51({ name: "question_id", type: "integer" }),
|
|
5368
5429
|
Index43()
|
|
5369
5430
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5370
5431
|
__decorateClass([
|
|
5371
|
-
|
|
5432
|
+
ManyToOne48(
|
|
5372
5433
|
() => AssessmetQuestion,
|
|
5373
5434
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5374
5435
|
),
|
|
5375
|
-
|
|
5436
|
+
JoinColumn48({ name: "question_id" })
|
|
5376
5437
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5377
5438
|
__decorateClass([
|
|
5378
|
-
|
|
5439
|
+
Column51({ name: "selected_option_id", type: "integer" }),
|
|
5379
5440
|
Index43()
|
|
5380
5441
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5381
5442
|
__decorateClass([
|
|
5382
|
-
|
|
5443
|
+
ManyToOne48(
|
|
5383
5444
|
() => AssessmetQuestionOption,
|
|
5384
5445
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5385
5446
|
),
|
|
5386
|
-
|
|
5447
|
+
JoinColumn48({ name: "selected_option_id" })
|
|
5387
5448
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5388
5449
|
__decorateClass([
|
|
5389
|
-
|
|
5450
|
+
Column51({
|
|
5390
5451
|
name: "selected_answer_type",
|
|
5391
5452
|
type: "enum",
|
|
5392
5453
|
enum: SelectedAnswerTypeEnum
|
|
5393
5454
|
})
|
|
5394
5455
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5395
5456
|
__decorateClass([
|
|
5396
|
-
|
|
5457
|
+
Column51({ name: "score", type: "float" })
|
|
5397
5458
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5398
5459
|
AssessmentAnswer = __decorateClass([
|
|
5399
|
-
|
|
5460
|
+
Entity50("assessment_answers")
|
|
5400
5461
|
], AssessmentAnswer);
|
|
5401
5462
|
|
|
5402
5463
|
// src/entities/company-skill.entity.ts
|
|
5403
|
-
import { Entity as
|
|
5464
|
+
import { Entity as Entity51, Column as Column52, Index as Index44, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
|
|
5404
5465
|
var CompanySkill = class extends BaseEntity {
|
|
5405
5466
|
};
|
|
5406
5467
|
// individual index to find core skills by user
|
|
5407
5468
|
__decorateClass([
|
|
5408
|
-
|
|
5469
|
+
Column52({ name: "user_id", type: "integer", nullable: true }),
|
|
5409
5470
|
Index44()
|
|
5410
5471
|
], CompanySkill.prototype, "userId", 2);
|
|
5411
5472
|
__decorateClass([
|
|
5412
|
-
|
|
5413
|
-
|
|
5473
|
+
ManyToOne49(() => User, (user) => user.freelancerSkills),
|
|
5474
|
+
JoinColumn49({ name: "user_id" })
|
|
5414
5475
|
], CompanySkill.prototype, "user", 2);
|
|
5415
5476
|
__decorateClass([
|
|
5416
|
-
|
|
5477
|
+
Column52({ name: "skill_name", type: "varchar", nullable: true })
|
|
5417
5478
|
], CompanySkill.prototype, "skillName", 2);
|
|
5418
5479
|
CompanySkill = __decorateClass([
|
|
5419
|
-
|
|
5480
|
+
Entity51("company_skills")
|
|
5420
5481
|
], CompanySkill);
|
|
5421
5482
|
|
|
5422
5483
|
// src/entities/admin-user-role.entity.ts
|
|
5423
|
-
import { Entity as
|
|
5484
|
+
import { Entity as Entity55, Column as Column56, ManyToOne as ManyToOne51, JoinColumn as JoinColumn51 } from "typeorm";
|
|
5424
5485
|
|
|
5425
5486
|
// src/entities/admin-role.entity.ts
|
|
5426
|
-
import { Entity as
|
|
5487
|
+
import { Entity as Entity54, Column as Column55, Index as Index47, OneToMany as OneToMany20 } from "typeorm";
|
|
5427
5488
|
|
|
5428
5489
|
// src/entities/admin-role-permission.entity.ts
|
|
5429
|
-
import { Entity as
|
|
5490
|
+
import { Entity as Entity53, Column as Column54, ManyToOne as ManyToOne50, JoinColumn as JoinColumn50 } from "typeorm";
|
|
5430
5491
|
|
|
5431
5492
|
// src/entities/admin-permission.entity.ts
|
|
5432
|
-
import { Entity as
|
|
5493
|
+
import { Entity as Entity52, Column as Column53, Index as Index45, OneToMany as OneToMany19 } from "typeorm";
|
|
5433
5494
|
var AdminPermission = class extends BaseEntity {
|
|
5434
5495
|
};
|
|
5435
5496
|
__decorateClass([
|
|
5436
|
-
|
|
5497
|
+
Column53({ name: "permission_name", type: "varchar", nullable: true })
|
|
5437
5498
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5438
5499
|
__decorateClass([
|
|
5439
|
-
|
|
5500
|
+
Column53({
|
|
5440
5501
|
name: "permission_slug",
|
|
5441
5502
|
type: "varchar",
|
|
5442
5503
|
unique: true,
|
|
@@ -5445,29 +5506,29 @@ __decorateClass([
|
|
|
5445
5506
|
Index45()
|
|
5446
5507
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5447
5508
|
__decorateClass([
|
|
5448
|
-
|
|
5509
|
+
Column53({ name: "permission_description", type: "varchar", nullable: true })
|
|
5449
5510
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5450
5511
|
__decorateClass([
|
|
5451
|
-
|
|
5512
|
+
Column53({ name: "module", type: "varchar", nullable: true })
|
|
5452
5513
|
], AdminPermission.prototype, "module", 2);
|
|
5453
5514
|
__decorateClass([
|
|
5454
|
-
|
|
5515
|
+
Column53({ name: "is_active", type: "boolean", default: true })
|
|
5455
5516
|
], AdminPermission.prototype, "isActive", 2);
|
|
5456
5517
|
__decorateClass([
|
|
5457
|
-
|
|
5518
|
+
OneToMany19(
|
|
5458
5519
|
() => AdminRolePermission,
|
|
5459
5520
|
(adminRolePermission) => adminRolePermission.adminPermissions
|
|
5460
5521
|
)
|
|
5461
5522
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5462
5523
|
AdminPermission = __decorateClass([
|
|
5463
|
-
|
|
5524
|
+
Entity52("admin_permissions")
|
|
5464
5525
|
], AdminPermission);
|
|
5465
5526
|
|
|
5466
5527
|
// src/entities/admin-role-permission.entity.ts
|
|
5467
5528
|
var AdminRolePermission = class extends BaseEntity {
|
|
5468
5529
|
};
|
|
5469
5530
|
__decorateClass([
|
|
5470
|
-
|
|
5531
|
+
Column54({
|
|
5471
5532
|
name: "role_id",
|
|
5472
5533
|
type: "int",
|
|
5473
5534
|
nullable: true,
|
|
@@ -5475,11 +5536,11 @@ __decorateClass([
|
|
|
5475
5536
|
})
|
|
5476
5537
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5477
5538
|
__decorateClass([
|
|
5478
|
-
|
|
5479
|
-
|
|
5539
|
+
ManyToOne50(() => AdminRole),
|
|
5540
|
+
JoinColumn50({ name: "role_id" })
|
|
5480
5541
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5481
5542
|
__decorateClass([
|
|
5482
|
-
|
|
5543
|
+
Column54({
|
|
5483
5544
|
name: "permission_id",
|
|
5484
5545
|
type: "int",
|
|
5485
5546
|
nullable: true,
|
|
@@ -5487,47 +5548,47 @@ __decorateClass([
|
|
|
5487
5548
|
})
|
|
5488
5549
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5489
5550
|
__decorateClass([
|
|
5490
|
-
|
|
5491
|
-
|
|
5551
|
+
ManyToOne50(() => AdminPermission),
|
|
5552
|
+
JoinColumn50({ name: "permission_id" })
|
|
5492
5553
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5493
5554
|
AdminRolePermission = __decorateClass([
|
|
5494
|
-
|
|
5555
|
+
Entity53("admin_role_permissions")
|
|
5495
5556
|
], AdminRolePermission);
|
|
5496
5557
|
|
|
5497
5558
|
// src/entities/admin-role.entity.ts
|
|
5498
5559
|
var AdminRole = class extends BaseEntity {
|
|
5499
5560
|
};
|
|
5500
5561
|
__decorateClass([
|
|
5501
|
-
|
|
5562
|
+
Column55({ name: "role_name", type: "varchar", nullable: true })
|
|
5502
5563
|
], AdminRole.prototype, "roleName", 2);
|
|
5503
5564
|
__decorateClass([
|
|
5504
|
-
|
|
5565
|
+
Column55({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5505
5566
|
Index47()
|
|
5506
5567
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5507
5568
|
__decorateClass([
|
|
5508
|
-
|
|
5569
|
+
Column55({ name: "role_description", type: "varchar", nullable: true })
|
|
5509
5570
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5510
5571
|
__decorateClass([
|
|
5511
|
-
|
|
5572
|
+
Column55({ name: "is_active", type: "boolean", default: true })
|
|
5512
5573
|
], AdminRole.prototype, "isActive", 2);
|
|
5513
5574
|
__decorateClass([
|
|
5514
|
-
|
|
5575
|
+
OneToMany20(
|
|
5515
5576
|
() => AdminRolePermission,
|
|
5516
5577
|
(addminRolePermission) => addminRolePermission.adminRole
|
|
5517
5578
|
)
|
|
5518
5579
|
], AdminRole.prototype, "adminRolePermission", 2);
|
|
5519
5580
|
__decorateClass([
|
|
5520
|
-
|
|
5581
|
+
OneToMany20(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5521
5582
|
], AdminRole.prototype, "userRoles", 2);
|
|
5522
5583
|
AdminRole = __decorateClass([
|
|
5523
|
-
|
|
5584
|
+
Entity54("admin_roles")
|
|
5524
5585
|
], AdminRole);
|
|
5525
5586
|
|
|
5526
5587
|
// src/entities/admin-user-role.entity.ts
|
|
5527
5588
|
var AdminUserRole = class extends BaseEntity {
|
|
5528
5589
|
};
|
|
5529
5590
|
__decorateClass([
|
|
5530
|
-
|
|
5591
|
+
Column56({
|
|
5531
5592
|
name: "user_id",
|
|
5532
5593
|
type: "int",
|
|
5533
5594
|
nullable: true,
|
|
@@ -5535,11 +5596,11 @@ __decorateClass([
|
|
|
5535
5596
|
})
|
|
5536
5597
|
], AdminUserRole.prototype, "userId", 2);
|
|
5537
5598
|
__decorateClass([
|
|
5538
|
-
|
|
5539
|
-
|
|
5599
|
+
ManyToOne51(() => User),
|
|
5600
|
+
JoinColumn51({ name: "user_id" })
|
|
5540
5601
|
], AdminUserRole.prototype, "user", 2);
|
|
5541
5602
|
__decorateClass([
|
|
5542
|
-
|
|
5603
|
+
Column56({
|
|
5543
5604
|
name: "role_id",
|
|
5544
5605
|
type: "int",
|
|
5545
5606
|
nullable: true,
|
|
@@ -5547,70 +5608,70 @@ __decorateClass([
|
|
|
5547
5608
|
})
|
|
5548
5609
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5549
5610
|
__decorateClass([
|
|
5550
|
-
|
|
5551
|
-
|
|
5611
|
+
ManyToOne51(() => AdminRole),
|
|
5612
|
+
JoinColumn51({ name: "role_id" })
|
|
5552
5613
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5553
5614
|
AdminUserRole = __decorateClass([
|
|
5554
|
-
|
|
5615
|
+
Entity55("admin_user_roles")
|
|
5555
5616
|
], AdminUserRole);
|
|
5556
5617
|
|
|
5557
5618
|
// src/entities/freelancer-resume.entity.ts
|
|
5558
5619
|
import {
|
|
5559
|
-
Entity as
|
|
5560
|
-
Column as
|
|
5620
|
+
Entity as Entity56,
|
|
5621
|
+
Column as Column57,
|
|
5561
5622
|
Index as Index49,
|
|
5562
|
-
ManyToOne as
|
|
5563
|
-
JoinColumn as
|
|
5623
|
+
ManyToOne as ManyToOne52,
|
|
5624
|
+
JoinColumn as JoinColumn52
|
|
5564
5625
|
} from "typeorm";
|
|
5565
5626
|
var FreelancerResume = class extends BaseEntity {
|
|
5566
5627
|
};
|
|
5567
5628
|
// individual index to find profile by user
|
|
5568
5629
|
__decorateClass([
|
|
5569
|
-
|
|
5630
|
+
Column57({ name: "user_id", type: "integer", nullable: true }),
|
|
5570
5631
|
Index49()
|
|
5571
5632
|
], FreelancerResume.prototype, "userId", 2);
|
|
5572
5633
|
__decorateClass([
|
|
5573
|
-
|
|
5574
|
-
|
|
5634
|
+
ManyToOne52(() => User, (user) => user.freelancerProfile),
|
|
5635
|
+
JoinColumn52({ name: "user_id" })
|
|
5575
5636
|
], FreelancerResume.prototype, "user", 2);
|
|
5576
5637
|
__decorateClass([
|
|
5577
|
-
|
|
5638
|
+
Column57({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5578
5639
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5579
5640
|
__decorateClass([
|
|
5580
|
-
|
|
5641
|
+
Column57({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5581
5642
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5582
5643
|
FreelancerResume = __decorateClass([
|
|
5583
|
-
|
|
5644
|
+
Entity56("freelancer_resumes")
|
|
5584
5645
|
], FreelancerResume);
|
|
5585
5646
|
|
|
5586
5647
|
// src/entities/signature.entity.ts
|
|
5587
5648
|
import {
|
|
5588
|
-
Entity as
|
|
5589
|
-
Column as
|
|
5649
|
+
Entity as Entity57,
|
|
5650
|
+
Column as Column58,
|
|
5590
5651
|
Index as Index50,
|
|
5591
|
-
ManyToOne as
|
|
5592
|
-
JoinColumn as
|
|
5652
|
+
ManyToOne as ManyToOne53,
|
|
5653
|
+
JoinColumn as JoinColumn53
|
|
5593
5654
|
} from "typeorm";
|
|
5594
5655
|
var Signature = class extends BaseEntity {
|
|
5595
5656
|
};
|
|
5596
5657
|
// individual index to find profile by user
|
|
5597
5658
|
__decorateClass([
|
|
5598
|
-
|
|
5659
|
+
Column58({ name: "user_id", type: "integer", nullable: true }),
|
|
5599
5660
|
Index50()
|
|
5600
5661
|
], Signature.prototype, "userId", 2);
|
|
5601
5662
|
__decorateClass([
|
|
5602
|
-
|
|
5603
|
-
|
|
5663
|
+
ManyToOne53(() => User, (user) => user.signatures),
|
|
5664
|
+
JoinColumn53({ name: "user_id" })
|
|
5604
5665
|
], Signature.prototype, "user", 2);
|
|
5605
5666
|
__decorateClass([
|
|
5606
|
-
|
|
5667
|
+
Column58({ name: "signature_url", type: "text", nullable: true })
|
|
5607
5668
|
], Signature.prototype, "signatureUrl", 2);
|
|
5608
5669
|
Signature = __decorateClass([
|
|
5609
|
-
|
|
5670
|
+
Entity57("signatures")
|
|
5610
5671
|
], Signature);
|
|
5611
5672
|
|
|
5612
5673
|
// src/entities/dispute.entity.ts
|
|
5613
|
-
import { Entity as
|
|
5674
|
+
import { Entity as Entity58, Column as Column59, Index as Index51, JoinColumn as JoinColumn54, ManyToOne as ManyToOne54 } from "typeorm";
|
|
5614
5675
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5615
5676
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5616
5677
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5631,36 +5692,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5631
5692
|
var Dispute = class extends BaseEntity {
|
|
5632
5693
|
};
|
|
5633
5694
|
__decorateClass([
|
|
5634
|
-
|
|
5695
|
+
Column59({ name: "client_id", type: "integer", nullable: true }),
|
|
5635
5696
|
Index51()
|
|
5636
5697
|
], Dispute.prototype, "clientId", 2);
|
|
5637
5698
|
__decorateClass([
|
|
5638
|
-
|
|
5639
|
-
|
|
5699
|
+
ManyToOne54(() => User, (user) => user.clientDisputes),
|
|
5700
|
+
JoinColumn54({ name: "client_id" })
|
|
5640
5701
|
], Dispute.prototype, "client", 2);
|
|
5641
5702
|
__decorateClass([
|
|
5642
|
-
|
|
5703
|
+
Column59({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5643
5704
|
Index51()
|
|
5644
5705
|
], Dispute.prototype, "freelancerId", 2);
|
|
5645
5706
|
__decorateClass([
|
|
5646
|
-
|
|
5647
|
-
|
|
5707
|
+
ManyToOne54(() => User, (user) => user.freelancerDisputes),
|
|
5708
|
+
JoinColumn54({ name: "freelancer_id" })
|
|
5648
5709
|
], Dispute.prototype, "freelancer", 2);
|
|
5649
5710
|
__decorateClass([
|
|
5650
|
-
|
|
5711
|
+
Column59({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5651
5712
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5652
5713
|
__decorateClass([
|
|
5653
|
-
|
|
5714
|
+
Column59({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5654
5715
|
Index51()
|
|
5655
5716
|
], Dispute.prototype, "disputeType", 2);
|
|
5656
5717
|
__decorateClass([
|
|
5657
|
-
|
|
5718
|
+
Column59({ name: "description", type: "varchar", nullable: true })
|
|
5658
5719
|
], Dispute.prototype, "description", 2);
|
|
5659
5720
|
__decorateClass([
|
|
5660
|
-
|
|
5721
|
+
Column59({ name: "comment", type: "varchar", nullable: true })
|
|
5661
5722
|
], Dispute.prototype, "comment", 2);
|
|
5662
5723
|
__decorateClass([
|
|
5663
|
-
|
|
5724
|
+
Column59({
|
|
5664
5725
|
name: "status",
|
|
5665
5726
|
type: "enum",
|
|
5666
5727
|
enum: DisputeStatusEnum,
|
|
@@ -5668,7 +5729,7 @@ __decorateClass([
|
|
|
5668
5729
|
})
|
|
5669
5730
|
], Dispute.prototype, "status", 2);
|
|
5670
5731
|
__decorateClass([
|
|
5671
|
-
|
|
5732
|
+
Column59({
|
|
5672
5733
|
name: "initiator_type",
|
|
5673
5734
|
type: "enum",
|
|
5674
5735
|
enum: InitiatorTypeEnum,
|
|
@@ -5677,33 +5738,33 @@ __decorateClass([
|
|
|
5677
5738
|
})
|
|
5678
5739
|
], Dispute.prototype, "initiatorType", 2);
|
|
5679
5740
|
__decorateClass([
|
|
5680
|
-
|
|
5741
|
+
Column59({ name: "initiator_id", type: "integer" }),
|
|
5681
5742
|
Index51()
|
|
5682
5743
|
], Dispute.prototype, "initiatorId", 2);
|
|
5683
5744
|
__decorateClass([
|
|
5684
|
-
|
|
5685
|
-
|
|
5745
|
+
ManyToOne54(() => User, (user) => user.initiatedDisputes),
|
|
5746
|
+
JoinColumn54({ name: "initiator_id" })
|
|
5686
5747
|
], Dispute.prototype, "initiator", 2);
|
|
5687
5748
|
__decorateClass([
|
|
5688
|
-
|
|
5749
|
+
Column59({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5689
5750
|
Index51()
|
|
5690
5751
|
], Dispute.prototype, "respondentId", 2);
|
|
5691
5752
|
__decorateClass([
|
|
5692
|
-
|
|
5693
|
-
|
|
5753
|
+
ManyToOne54(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5754
|
+
JoinColumn54({ name: "respondent_id" })
|
|
5694
5755
|
], Dispute.prototype, "respondent", 2);
|
|
5695
5756
|
__decorateClass([
|
|
5696
|
-
|
|
5757
|
+
Column59({ name: "attachments", type: "jsonb", nullable: true })
|
|
5697
5758
|
], Dispute.prototype, "attachments", 2);
|
|
5698
5759
|
__decorateClass([
|
|
5699
|
-
|
|
5760
|
+
Column59({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5700
5761
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5701
5762
|
Dispute = __decorateClass([
|
|
5702
|
-
|
|
5763
|
+
Entity58("disputes")
|
|
5703
5764
|
], Dispute);
|
|
5704
5765
|
|
|
5705
5766
|
// src/entities/stripe-transaction.entity.ts
|
|
5706
|
-
import { Entity as
|
|
5767
|
+
import { Entity as Entity59, Column as Column60, Index as Index52, ManyToOne as ManyToOne55, JoinColumn as JoinColumn55 } from "typeorm";
|
|
5707
5768
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5708
5769
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5709
5770
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5725,97 +5786,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5725
5786
|
// Full Stripe session response
|
|
5726
5787
|
};
|
|
5727
5788
|
__decorateClass([
|
|
5728
|
-
|
|
5789
|
+
Column60({ name: "user_id", type: "integer", nullable: true }),
|
|
5729
5790
|
Index52()
|
|
5730
5791
|
], StripeTransaction.prototype, "userId", 2);
|
|
5731
5792
|
__decorateClass([
|
|
5732
|
-
|
|
5733
|
-
|
|
5793
|
+
ManyToOne55(() => User, (user) => user.stripeTransactions),
|
|
5794
|
+
JoinColumn55({ name: "user_id" })
|
|
5734
5795
|
], StripeTransaction.prototype, "user", 2);
|
|
5735
5796
|
__decorateClass([
|
|
5736
|
-
|
|
5797
|
+
Column60({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5737
5798
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5738
5799
|
__decorateClass([
|
|
5739
|
-
|
|
5800
|
+
Column60({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5740
5801
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5741
5802
|
__decorateClass([
|
|
5742
|
-
|
|
5803
|
+
Column60({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5743
5804
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5744
5805
|
__decorateClass([
|
|
5745
|
-
|
|
5806
|
+
Column60({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5746
5807
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5747
5808
|
__decorateClass([
|
|
5748
|
-
|
|
5809
|
+
Column60({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5749
5810
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5750
5811
|
__decorateClass([
|
|
5751
|
-
|
|
5812
|
+
Column60({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5752
5813
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5753
5814
|
__decorateClass([
|
|
5754
|
-
|
|
5815
|
+
Column60({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5755
5816
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5756
5817
|
__decorateClass([
|
|
5757
|
-
|
|
5818
|
+
Column60({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5758
5819
|
], StripeTransaction.prototype, "type", 2);
|
|
5759
5820
|
__decorateClass([
|
|
5760
|
-
|
|
5821
|
+
Column60({ name: "currency", type: "varchar", nullable: true })
|
|
5761
5822
|
], StripeTransaction.prototype, "currency", 2);
|
|
5762
5823
|
__decorateClass([
|
|
5763
|
-
|
|
5824
|
+
Column60({ 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" })
|
|
5764
5825
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5765
5826
|
__decorateClass([
|
|
5766
|
-
|
|
5827
|
+
Column60({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5767
5828
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5768
5829
|
__decorateClass([
|
|
5769
|
-
|
|
5830
|
+
Column60({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5770
5831
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5771
5832
|
__decorateClass([
|
|
5772
|
-
|
|
5833
|
+
Column60({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5773
5834
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5774
5835
|
__decorateClass([
|
|
5775
|
-
|
|
5836
|
+
Column60({ 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" })
|
|
5776
5837
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5777
5838
|
__decorateClass([
|
|
5778
|
-
|
|
5839
|
+
Column60({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5779
5840
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5780
5841
|
__decorateClass([
|
|
5781
|
-
|
|
5842
|
+
Column60({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5782
5843
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5783
5844
|
__decorateClass([
|
|
5784
|
-
|
|
5845
|
+
Column60({ 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" })
|
|
5785
5846
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5786
5847
|
__decorateClass([
|
|
5787
|
-
|
|
5848
|
+
Column60({ name: "description", type: "text", nullable: true })
|
|
5788
5849
|
], StripeTransaction.prototype, "description", 2);
|
|
5789
5850
|
__decorateClass([
|
|
5790
|
-
|
|
5851
|
+
Column60({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5791
5852
|
], StripeTransaction.prototype, "status", 2);
|
|
5792
5853
|
__decorateClass([
|
|
5793
|
-
|
|
5854
|
+
Column60({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5794
5855
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5795
5856
|
__decorateClass([
|
|
5796
|
-
|
|
5857
|
+
Column60({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5797
5858
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5798
5859
|
__decorateClass([
|
|
5799
|
-
|
|
5860
|
+
Column60({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5800
5861
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5801
5862
|
__decorateClass([
|
|
5802
|
-
|
|
5863
|
+
Column60({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5803
5864
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5804
5865
|
__decorateClass([
|
|
5805
|
-
|
|
5866
|
+
Column60({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5806
5867
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5807
5868
|
__decorateClass([
|
|
5808
|
-
|
|
5869
|
+
Column60({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5809
5870
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5810
5871
|
StripeTransaction = __decorateClass([
|
|
5811
|
-
|
|
5872
|
+
Entity59("stripe_transactions")
|
|
5812
5873
|
], StripeTransaction);
|
|
5813
5874
|
|
|
5814
5875
|
// src/entities/wallet.entity.ts
|
|
5815
|
-
import { Entity as
|
|
5876
|
+
import { Entity as Entity61, Column as Column62, Index as Index54, JoinColumn as JoinColumn57, OneToOne as OneToOne11, OneToMany as OneToMany21 } from "typeorm";
|
|
5816
5877
|
|
|
5817
5878
|
// src/entities/wallet-transaction.entity.ts
|
|
5818
|
-
import { Entity as
|
|
5879
|
+
import { Entity as Entity60, Column as Column61, Index as Index53, ManyToOne as ManyToOne56, JoinColumn as JoinColumn56 } from "typeorm";
|
|
5819
5880
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5820
5881
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5821
5882
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5832,46 +5893,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5832
5893
|
var WalletTransaction = class extends BaseEntity {
|
|
5833
5894
|
};
|
|
5834
5895
|
__decorateClass([
|
|
5835
|
-
|
|
5896
|
+
Column61({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5836
5897
|
Index53()
|
|
5837
5898
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5838
5899
|
__decorateClass([
|
|
5839
|
-
|
|
5840
|
-
|
|
5900
|
+
ManyToOne56(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5901
|
+
JoinColumn56({ name: "wallet_id" })
|
|
5841
5902
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5842
5903
|
__decorateClass([
|
|
5843
|
-
|
|
5904
|
+
Column61({ name: "amount", type: "bigint", nullable: true })
|
|
5844
5905
|
], WalletTransaction.prototype, "amount", 2);
|
|
5845
5906
|
__decorateClass([
|
|
5846
|
-
|
|
5907
|
+
Column61({ name: "balance_before", type: "bigint", nullable: true })
|
|
5847
5908
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5848
5909
|
__decorateClass([
|
|
5849
|
-
|
|
5910
|
+
Column61({ name: "balance_after", type: "bigint", nullable: true })
|
|
5850
5911
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5851
5912
|
__decorateClass([
|
|
5852
|
-
|
|
5913
|
+
Column61({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5853
5914
|
], WalletTransaction.prototype, "type", 2);
|
|
5854
5915
|
__decorateClass([
|
|
5855
|
-
|
|
5916
|
+
Column61({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5856
5917
|
], WalletTransaction.prototype, "status", 2);
|
|
5857
5918
|
__decorateClass([
|
|
5858
|
-
|
|
5919
|
+
Column61({ name: "description", type: "text", nullable: true })
|
|
5859
5920
|
], WalletTransaction.prototype, "description", 2);
|
|
5860
5921
|
__decorateClass([
|
|
5861
|
-
|
|
5922
|
+
Column61({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5862
5923
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5863
5924
|
__decorateClass([
|
|
5864
|
-
|
|
5925
|
+
Column61({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5865
5926
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5866
5927
|
__decorateClass([
|
|
5867
|
-
|
|
5928
|
+
Column61({ name: "meta_data", type: "varchar", nullable: true })
|
|
5868
5929
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5869
5930
|
__decorateClass([
|
|
5870
|
-
|
|
5931
|
+
Column61({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5871
5932
|
Index53()
|
|
5872
5933
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5873
5934
|
WalletTransaction = __decorateClass([
|
|
5874
|
-
|
|
5935
|
+
Entity60("wallet_transactions")
|
|
5875
5936
|
], WalletTransaction);
|
|
5876
5937
|
|
|
5877
5938
|
// src/entities/wallet.entity.ts
|
|
@@ -5889,48 +5950,48 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5889
5950
|
var Wallet = class extends BaseEntity {
|
|
5890
5951
|
};
|
|
5891
5952
|
__decorateClass([
|
|
5892
|
-
|
|
5953
|
+
Column62({ name: "user_id", type: "integer", nullable: true }),
|
|
5893
5954
|
Index54()
|
|
5894
5955
|
], Wallet.prototype, "userId", 2);
|
|
5895
5956
|
__decorateClass([
|
|
5896
5957
|
OneToOne11(() => User, (user) => user.wallet),
|
|
5897
|
-
|
|
5958
|
+
JoinColumn57({ name: "user_id" })
|
|
5898
5959
|
], Wallet.prototype, "user", 2);
|
|
5899
5960
|
__decorateClass([
|
|
5900
|
-
|
|
5961
|
+
Column62({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5901
5962
|
], Wallet.prototype, "accountType", 2);
|
|
5902
5963
|
__decorateClass([
|
|
5903
|
-
|
|
5964
|
+
Column62({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5904
5965
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5905
5966
|
__decorateClass([
|
|
5906
|
-
|
|
5967
|
+
Column62({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5907
5968
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5908
5969
|
__decorateClass([
|
|
5909
|
-
|
|
5970
|
+
Column62({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
5910
5971
|
], Wallet.prototype, "walletBalance", 2);
|
|
5911
5972
|
__decorateClass([
|
|
5912
|
-
|
|
5973
|
+
Column62({ 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" })
|
|
5913
5974
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5914
5975
|
__decorateClass([
|
|
5915
|
-
|
|
5976
|
+
Column62({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5916
5977
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5917
5978
|
__decorateClass([
|
|
5918
|
-
|
|
5979
|
+
Column62({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5919
5980
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5920
5981
|
__decorateClass([
|
|
5921
|
-
|
|
5982
|
+
OneToMany21(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5922
5983
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5923
5984
|
Wallet = __decorateClass([
|
|
5924
|
-
|
|
5985
|
+
Entity61("wallets")
|
|
5925
5986
|
], Wallet);
|
|
5926
5987
|
|
|
5927
5988
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
5928
5989
|
import {
|
|
5929
|
-
Entity as
|
|
5930
|
-
Column as
|
|
5931
|
-
ManyToOne as
|
|
5990
|
+
Entity as Entity62,
|
|
5991
|
+
Column as Column63,
|
|
5992
|
+
ManyToOne as ManyToOne57,
|
|
5932
5993
|
Index as Index55,
|
|
5933
|
-
JoinColumn as
|
|
5994
|
+
JoinColumn as JoinColumn58
|
|
5934
5995
|
} from "typeorm";
|
|
5935
5996
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
5936
5997
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
@@ -5941,23 +6002,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
5941
6002
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
5942
6003
|
};
|
|
5943
6004
|
__decorateClass([
|
|
5944
|
-
|
|
6005
|
+
Column63({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5945
6006
|
Index55()
|
|
5946
6007
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
5947
6008
|
__decorateClass([
|
|
5948
|
-
|
|
5949
|
-
|
|
6009
|
+
ManyToOne57(() => User, (user) => user.freelancerAssessmentRequests),
|
|
6010
|
+
JoinColumn58({ name: "freelancer_id" })
|
|
5950
6011
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
5951
6012
|
__decorateClass([
|
|
5952
|
-
|
|
6013
|
+
Column63({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
5953
6014
|
Index55()
|
|
5954
6015
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
5955
6016
|
__decorateClass([
|
|
5956
|
-
|
|
5957
|
-
|
|
6017
|
+
ManyToOne57(() => User, (user) => user.assessmentRequests),
|
|
6018
|
+
JoinColumn58({ name: "approved_by_id" })
|
|
5958
6019
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
5959
6020
|
__decorateClass([
|
|
5960
|
-
|
|
6021
|
+
Column63({
|
|
5961
6022
|
name: "status",
|
|
5962
6023
|
type: "enum",
|
|
5963
6024
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -5965,10 +6026,10 @@ __decorateClass([
|
|
|
5965
6026
|
})
|
|
5966
6027
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
5967
6028
|
__decorateClass([
|
|
5968
|
-
|
|
6029
|
+
Column63({ name: "assessment_link", type: "text", nullable: true })
|
|
5969
6030
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
5970
6031
|
FreelancerAssessmentRequest = __decorateClass([
|
|
5971
|
-
|
|
6032
|
+
Entity62({ name: "freelancer_assessment_requests" })
|
|
5972
6033
|
], FreelancerAssessmentRequest);
|
|
5973
6034
|
|
|
5974
6035
|
// src/entities/user.entity.ts
|
|
@@ -5996,51 +6057,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5996
6057
|
var User = class extends BaseEntity {
|
|
5997
6058
|
};
|
|
5998
6059
|
__decorateClass([
|
|
5999
|
-
|
|
6060
|
+
Column64({ name: "unique_id", type: "varchar", unique: true })
|
|
6000
6061
|
], User.prototype, "uniqueId", 2);
|
|
6001
6062
|
__decorateClass([
|
|
6002
|
-
|
|
6063
|
+
Column64({ name: "parent_id", type: "integer", nullable: true }),
|
|
6003
6064
|
Index56()
|
|
6004
6065
|
], User.prototype, "parentId", 2);
|
|
6005
6066
|
__decorateClass([
|
|
6006
|
-
|
|
6007
|
-
|
|
6067
|
+
ManyToOne58(() => User, (user) => user.children, { nullable: true }),
|
|
6068
|
+
JoinColumn59({ name: "parent_id" })
|
|
6008
6069
|
], User.prototype, "parent", 2);
|
|
6009
6070
|
__decorateClass([
|
|
6010
|
-
|
|
6071
|
+
OneToMany22(() => User, (user) => user.parent)
|
|
6011
6072
|
], User.prototype, "children", 2);
|
|
6012
6073
|
__decorateClass([
|
|
6013
|
-
|
|
6074
|
+
Column64({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
6014
6075
|
], User.prototype, "username", 2);
|
|
6015
6076
|
__decorateClass([
|
|
6016
|
-
|
|
6077
|
+
Column64({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
6017
6078
|
], User.prototype, "firstName", 2);
|
|
6018
6079
|
__decorateClass([
|
|
6019
|
-
|
|
6080
|
+
Column64({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
6020
6081
|
], User.prototype, "lastName", 2);
|
|
6021
6082
|
__decorateClass([
|
|
6022
|
-
|
|
6083
|
+
Column64({ name: "date_of_birth", type: "date", nullable: true })
|
|
6023
6084
|
], User.prototype, "dateOfBirth", 2);
|
|
6024
6085
|
__decorateClass([
|
|
6025
|
-
|
|
6086
|
+
Column64({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
6026
6087
|
], User.prototype, "gender", 2);
|
|
6027
6088
|
__decorateClass([
|
|
6028
|
-
|
|
6089
|
+
Column64({ name: "profile_picture_url", type: "text", nullable: true })
|
|
6029
6090
|
], User.prototype, "profilePictureUrl", 2);
|
|
6030
6091
|
__decorateClass([
|
|
6031
|
-
|
|
6092
|
+
Column64({ name: "email", type: "varchar", unique: true })
|
|
6032
6093
|
], User.prototype, "email", 2);
|
|
6033
6094
|
__decorateClass([
|
|
6034
|
-
|
|
6095
|
+
Column64({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6035
6096
|
], User.prototype, "mobileCode", 2);
|
|
6036
6097
|
__decorateClass([
|
|
6037
|
-
|
|
6098
|
+
Column64({ name: "mobile", type: "varchar", nullable: true })
|
|
6038
6099
|
], User.prototype, "mobile", 2);
|
|
6039
6100
|
__decorateClass([
|
|
6040
|
-
|
|
6101
|
+
Column64({ name: "password", type: "varchar", nullable: true })
|
|
6041
6102
|
], User.prototype, "password", 2);
|
|
6042
6103
|
__decorateClass([
|
|
6043
|
-
|
|
6104
|
+
Column64({
|
|
6044
6105
|
name: "account_type",
|
|
6045
6106
|
type: "enum",
|
|
6046
6107
|
enum: AccountType,
|
|
@@ -6048,7 +6109,7 @@ __decorateClass([
|
|
|
6048
6109
|
})
|
|
6049
6110
|
], User.prototype, "accountType", 2);
|
|
6050
6111
|
__decorateClass([
|
|
6051
|
-
|
|
6112
|
+
Column64({
|
|
6052
6113
|
name: "account_status",
|
|
6053
6114
|
type: "enum",
|
|
6054
6115
|
enum: AccountStatus,
|
|
@@ -6056,42 +6117,42 @@ __decorateClass([
|
|
|
6056
6117
|
})
|
|
6057
6118
|
], User.prototype, "accountStatus", 2);
|
|
6058
6119
|
__decorateClass([
|
|
6059
|
-
|
|
6120
|
+
Column64({ name: "is_email_verified", type: "boolean", default: false })
|
|
6060
6121
|
], User.prototype, "isEmailVerified", 2);
|
|
6061
6122
|
__decorateClass([
|
|
6062
|
-
|
|
6123
|
+
Column64({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6063
6124
|
], User.prototype, "isMobileVerified", 2);
|
|
6064
6125
|
__decorateClass([
|
|
6065
|
-
|
|
6126
|
+
Column64({ name: "is_social", type: "boolean", default: false })
|
|
6066
6127
|
], User.prototype, "isSocial", 2);
|
|
6067
6128
|
__decorateClass([
|
|
6068
|
-
|
|
6129
|
+
Column64({
|
|
6069
6130
|
name: "last_login_at",
|
|
6070
6131
|
type: "timestamp with time zone",
|
|
6071
6132
|
nullable: true
|
|
6072
6133
|
})
|
|
6073
6134
|
], User.prototype, "lastLoginAt", 2);
|
|
6074
6135
|
__decorateClass([
|
|
6075
|
-
|
|
6136
|
+
Column64({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6076
6137
|
], User.prototype, "lastLoginIp", 2);
|
|
6077
6138
|
__decorateClass([
|
|
6078
|
-
|
|
6139
|
+
Column64({ name: "reset_token", type: "varchar", nullable: true })
|
|
6079
6140
|
], User.prototype, "resetToken", 2);
|
|
6080
6141
|
__decorateClass([
|
|
6081
|
-
|
|
6142
|
+
Column64({
|
|
6082
6143
|
name: "reset_token_expire_at",
|
|
6083
6144
|
type: "timestamp with time zone",
|
|
6084
6145
|
nullable: true
|
|
6085
6146
|
})
|
|
6086
6147
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6087
6148
|
__decorateClass([
|
|
6088
|
-
|
|
6149
|
+
Column64({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6089
6150
|
], User.prototype, "setPasswordToken", 2);
|
|
6090
6151
|
__decorateClass([
|
|
6091
|
-
|
|
6152
|
+
OneToMany22(() => RefreshToken, (token) => token.user)
|
|
6092
6153
|
], User.prototype, "refreshTokens", 2);
|
|
6093
6154
|
__decorateClass([
|
|
6094
|
-
|
|
6155
|
+
Column64({
|
|
6095
6156
|
name: "provider",
|
|
6096
6157
|
type: "enum",
|
|
6097
6158
|
enum: Provider,
|
|
@@ -6100,43 +6161,43 @@ __decorateClass([
|
|
|
6100
6161
|
})
|
|
6101
6162
|
], User.prototype, "provider", 2);
|
|
6102
6163
|
__decorateClass([
|
|
6103
|
-
|
|
6164
|
+
Column64({ name: "provider_token", type: "varchar", nullable: true })
|
|
6104
6165
|
], User.prototype, "providerToken", 2);
|
|
6105
6166
|
__decorateClass([
|
|
6106
|
-
|
|
6167
|
+
Column64({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6107
6168
|
], User.prototype, "linkedInId", 2);
|
|
6108
6169
|
__decorateClass([
|
|
6109
|
-
|
|
6170
|
+
Column64({ name: "google_id", type: "varchar", nullable: true })
|
|
6110
6171
|
], User.prototype, "googleId", 2);
|
|
6111
6172
|
__decorateClass([
|
|
6112
|
-
|
|
6173
|
+
Column64({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6113
6174
|
], User.prototype, "gitLabsId", 2);
|
|
6114
6175
|
__decorateClass([
|
|
6115
|
-
|
|
6176
|
+
Column64({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6116
6177
|
], User.prototype, "onBoardedBy", 2);
|
|
6117
6178
|
__decorateClass([
|
|
6118
|
-
|
|
6179
|
+
OneToMany22(() => Otp, (otp) => otp.user)
|
|
6119
6180
|
], User.prototype, "otps", 2);
|
|
6120
6181
|
__decorateClass([
|
|
6121
|
-
|
|
6182
|
+
OneToMany22(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6122
6183
|
], User.prototype, "senseloafLogs", 2);
|
|
6123
6184
|
__decorateClass([
|
|
6124
6185
|
OneToOne12(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6125
6186
|
], User.prototype, "companyProfile", 2);
|
|
6126
6187
|
__decorateClass([
|
|
6127
|
-
|
|
6188
|
+
OneToMany22(() => CompanySkill, (companySkill) => companySkill.user)
|
|
6128
6189
|
], User.prototype, "companySkills", 2);
|
|
6129
6190
|
__decorateClass([
|
|
6130
|
-
|
|
6191
|
+
OneToMany22(
|
|
6131
6192
|
() => CompanyMemberRole,
|
|
6132
6193
|
(companyMemberRole) => companyMemberRole.user
|
|
6133
6194
|
)
|
|
6134
6195
|
], User.prototype, "companyMemberRoles", 2);
|
|
6135
6196
|
__decorateClass([
|
|
6136
|
-
|
|
6197
|
+
OneToMany22(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6137
6198
|
], User.prototype, "companyAiInterview", 2);
|
|
6138
6199
|
__decorateClass([
|
|
6139
|
-
|
|
6200
|
+
OneToMany22(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6140
6201
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6141
6202
|
__decorateClass([
|
|
6142
6203
|
OneToOne12(
|
|
@@ -6148,61 +6209,61 @@ __decorateClass([
|
|
|
6148
6209
|
OneToOne12(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6149
6210
|
], User.prototype, "freelancerResume", 2);
|
|
6150
6211
|
__decorateClass([
|
|
6151
|
-
|
|
6212
|
+
OneToMany22(
|
|
6152
6213
|
() => FreelancerAssessmentRequest,
|
|
6153
6214
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
6154
6215
|
)
|
|
6155
6216
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
6156
6217
|
__decorateClass([
|
|
6157
|
-
|
|
6218
|
+
OneToMany22(
|
|
6158
6219
|
() => FreelancerAssessmentRequest,
|
|
6159
6220
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
6160
6221
|
)
|
|
6161
6222
|
], User.prototype, "assessmentRequests", 2);
|
|
6162
6223
|
__decorateClass([
|
|
6163
|
-
|
|
6224
|
+
OneToMany22(
|
|
6164
6225
|
() => FreelancerAssessment,
|
|
6165
6226
|
(freelancerAssessment) => freelancerAssessment.user
|
|
6166
6227
|
)
|
|
6167
6228
|
], User.prototype, "assessments", 2);
|
|
6168
6229
|
__decorateClass([
|
|
6169
|
-
|
|
6230
|
+
OneToMany22(
|
|
6170
6231
|
() => AssessmentAnswer,
|
|
6171
6232
|
(assessmentAnswer) => assessmentAnswer.user
|
|
6172
6233
|
)
|
|
6173
6234
|
], User.prototype, "assessmentAnswers", 2);
|
|
6174
6235
|
__decorateClass([
|
|
6175
|
-
|
|
6236
|
+
OneToMany22(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
6176
6237
|
], User.prototype, "freelancerSkills", 2);
|
|
6177
6238
|
__decorateClass([
|
|
6178
|
-
|
|
6239
|
+
OneToMany22(
|
|
6179
6240
|
() => FreelancerExperience,
|
|
6180
6241
|
(freelancerExperience) => freelancerExperience.user
|
|
6181
6242
|
)
|
|
6182
6243
|
], User.prototype, "freelancerExperience", 2);
|
|
6183
6244
|
__decorateClass([
|
|
6184
|
-
|
|
6245
|
+
OneToMany22(
|
|
6185
6246
|
() => FreelancerEducation,
|
|
6186
6247
|
(freelancerEducation) => freelancerEducation.user
|
|
6187
6248
|
)
|
|
6188
6249
|
], User.prototype, "freelancerEducation", 2);
|
|
6189
6250
|
__decorateClass([
|
|
6190
|
-
|
|
6251
|
+
OneToMany22(
|
|
6191
6252
|
() => FreelancerProject,
|
|
6192
6253
|
(freelancerProject) => freelancerProject.user
|
|
6193
6254
|
)
|
|
6194
6255
|
], User.prototype, "freelancerProject", 2);
|
|
6195
6256
|
__decorateClass([
|
|
6196
|
-
|
|
6257
|
+
OneToMany22(
|
|
6197
6258
|
() => FreelancerCaseStudy,
|
|
6198
6259
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6199
6260
|
)
|
|
6200
6261
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6201
6262
|
__decorateClass([
|
|
6202
|
-
|
|
6263
|
+
OneToMany22(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6203
6264
|
], User.prototype, "freelancerTool", 2);
|
|
6204
6265
|
__decorateClass([
|
|
6205
|
-
|
|
6266
|
+
OneToMany22(
|
|
6206
6267
|
() => FreelancerFramework,
|
|
6207
6268
|
(freelancerFramework) => freelancerFramework.user
|
|
6208
6269
|
)
|
|
@@ -6214,112 +6275,118 @@ __decorateClass([
|
|
|
6214
6275
|
)
|
|
6215
6276
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6216
6277
|
__decorateClass([
|
|
6217
|
-
|
|
6278
|
+
OneToMany22(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6218
6279
|
], User.prototype, "freelancerMcq", 2);
|
|
6219
6280
|
__decorateClass([
|
|
6220
|
-
|
|
6281
|
+
OneToMany22(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6221
6282
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6222
6283
|
__decorateClass([
|
|
6223
|
-
|
|
6284
|
+
OneToMany22(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6224
6285
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6225
6286
|
__decorateClass([
|
|
6226
|
-
|
|
6287
|
+
OneToMany22(
|
|
6227
6288
|
() => F2fInterviewRescheduleRequest,
|
|
6228
6289
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6229
6290
|
)
|
|
6230
6291
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6231
6292
|
__decorateClass([
|
|
6232
|
-
|
|
6293
|
+
OneToMany22(
|
|
6294
|
+
() => AiInterviewRescheduleRequest,
|
|
6295
|
+
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
6296
|
+
)
|
|
6297
|
+
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
6298
|
+
__decorateClass([
|
|
6299
|
+
OneToMany22(() => Job, (job) => job.user)
|
|
6233
6300
|
], User.prototype, "jobs", 2);
|
|
6234
6301
|
__decorateClass([
|
|
6235
|
-
|
|
6302
|
+
OneToMany22(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6236
6303
|
], User.prototype, "jobApplications", 2);
|
|
6237
6304
|
__decorateClass([
|
|
6238
|
-
|
|
6305
|
+
OneToMany22(() => Interview, (interview) => interview.user)
|
|
6239
6306
|
], User.prototype, "interviews", 2);
|
|
6240
6307
|
__decorateClass([
|
|
6241
|
-
|
|
6308
|
+
OneToMany22(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6242
6309
|
], User.prototype, "bankDetail", 2);
|
|
6243
6310
|
__decorateClass([
|
|
6244
|
-
|
|
6311
|
+
OneToMany22(
|
|
6245
6312
|
() => SystemPreference,
|
|
6246
6313
|
(systemPreference) => systemPreference.user
|
|
6247
6314
|
)
|
|
6248
6315
|
], User.prototype, "systemPreference", 2);
|
|
6249
6316
|
__decorateClass([
|
|
6250
|
-
|
|
6317
|
+
OneToMany22(() => Rating, (rating) => rating.reviewer)
|
|
6251
6318
|
], User.prototype, "givenRatings", 2);
|
|
6252
6319
|
__decorateClass([
|
|
6253
|
-
|
|
6320
|
+
OneToMany22(() => Rating, (rating) => rating.reviewee)
|
|
6254
6321
|
], User.prototype, "receivedRatings", 2);
|
|
6255
6322
|
__decorateClass([
|
|
6256
|
-
|
|
6323
|
+
OneToMany22(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6257
6324
|
], User.prototype, "adminUserRoles", 2);
|
|
6258
6325
|
__decorateClass([
|
|
6259
|
-
|
|
6326
|
+
OneToMany22(() => Contract, (contract) => contract.client)
|
|
6260
6327
|
], User.prototype, "clientContracts", 2);
|
|
6261
6328
|
__decorateClass([
|
|
6262
|
-
|
|
6329
|
+
OneToMany22(() => Hiring, (hiring) => hiring.client)
|
|
6263
6330
|
], User.prototype, "clientHirings", 2);
|
|
6264
6331
|
__decorateClass([
|
|
6265
|
-
|
|
6332
|
+
OneToMany22(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6266
6333
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6267
6334
|
__decorateClass([
|
|
6268
|
-
|
|
6335
|
+
OneToMany22(() => Contract, (contract) => contract.freelancer)
|
|
6269
6336
|
], User.prototype, "freelancerContracts", 2);
|
|
6270
6337
|
__decorateClass([
|
|
6271
|
-
|
|
6338
|
+
OneToMany22(() => Hiring, (hiring) => hiring.freelancer)
|
|
6272
6339
|
], User.prototype, "freelancerHirings", 2);
|
|
6273
6340
|
__decorateClass([
|
|
6274
|
-
|
|
6341
|
+
OneToMany22(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6275
6342
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6276
6343
|
__decorateClass([
|
|
6277
6344
|
OneToOne12(() => Signature, (signature) => signature.user)
|
|
6278
6345
|
], User.prototype, "signatures", 2);
|
|
6279
6346
|
__decorateClass([
|
|
6280
|
-
|
|
6347
|
+
OneToMany22(() => Timesheet, (timesheet) => timesheet.client)
|
|
6281
6348
|
], User.prototype, "clientTimesheets", 2);
|
|
6282
6349
|
__decorateClass([
|
|
6283
|
-
|
|
6350
|
+
OneToMany22(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6284
6351
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6285
6352
|
__decorateClass([
|
|
6286
|
-
|
|
6353
|
+
OneToMany22(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6287
6354
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6288
6355
|
__decorateClass([
|
|
6289
|
-
|
|
6356
|
+
OneToMany22(() => Invoice, (invoice) => invoice.client)
|
|
6290
6357
|
], User.prototype, "clientInvoice", 2);
|
|
6291
6358
|
__decorateClass([
|
|
6292
|
-
|
|
6359
|
+
OneToMany22(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6293
6360
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6294
6361
|
__decorateClass([
|
|
6295
|
-
|
|
6362
|
+
OneToMany22(() => Invoice, (invoice) => invoice.freelancer)
|
|
6296
6363
|
], User.prototype, "freelancerInvoice", 2);
|
|
6297
6364
|
__decorateClass([
|
|
6298
|
-
|
|
6365
|
+
OneToMany22(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6299
6366
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6300
6367
|
__decorateClass([
|
|
6301
|
-
|
|
6368
|
+
OneToMany22(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6302
6369
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6303
6370
|
__decorateClass([
|
|
6304
|
-
|
|
6371
|
+
OneToMany22(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6305
6372
|
], User.prototype, "initiatedDisputes", 2);
|
|
6306
6373
|
__decorateClass([
|
|
6307
|
-
|
|
6374
|
+
OneToMany22(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6308
6375
|
], User.prototype, "respondentDisputes", 2);
|
|
6309
6376
|
__decorateClass([
|
|
6310
6377
|
OneToOne12(() => Wallet, (wallet) => wallet.user)
|
|
6311
6378
|
], User.prototype, "wallet", 2);
|
|
6312
6379
|
__decorateClass([
|
|
6313
|
-
|
|
6380
|
+
OneToMany22(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6314
6381
|
], User.prototype, "stripeTransactions", 2);
|
|
6315
6382
|
__decorateClass([
|
|
6316
|
-
|
|
6383
|
+
OneToMany22(() => Dispute, (dispute) => dispute.client)
|
|
6317
6384
|
], User.prototype, "clientDisputes", 2);
|
|
6318
6385
|
__decorateClass([
|
|
6319
|
-
|
|
6386
|
+
OneToMany22(() => Dispute, (dispute) => dispute.freelancer)
|
|
6320
6387
|
], User.prototype, "freelancerDisputes", 2);
|
|
6321
6388
|
User = __decorateClass([
|
|
6322
|
-
|
|
6389
|
+
Entity63("users")
|
|
6323
6390
|
], User);
|
|
6324
6391
|
|
|
6325
6392
|
// src/entities/rating.entity.ts
|
|
@@ -6331,36 +6398,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
6331
6398
|
var Rating = class extends BaseEntity {
|
|
6332
6399
|
};
|
|
6333
6400
|
__decorateClass([
|
|
6334
|
-
|
|
6401
|
+
Column65({ name: "reviewer_id", type: "integer" }),
|
|
6335
6402
|
Index57()
|
|
6336
6403
|
], Rating.prototype, "reviewer_id", 2);
|
|
6337
6404
|
__decorateClass([
|
|
6338
|
-
|
|
6339
|
-
|
|
6405
|
+
ManyToOne59(() => User, { onDelete: "CASCADE" }),
|
|
6406
|
+
JoinColumn60({ name: "reviewer_id" })
|
|
6340
6407
|
], Rating.prototype, "reviewer", 2);
|
|
6341
6408
|
__decorateClass([
|
|
6342
|
-
|
|
6409
|
+
Column65({ name: "reviewee_id", type: "integer" }),
|
|
6343
6410
|
Index57()
|
|
6344
6411
|
], Rating.prototype, "reviewee_id", 2);
|
|
6345
6412
|
__decorateClass([
|
|
6346
|
-
|
|
6347
|
-
|
|
6413
|
+
ManyToOne59(() => User, { onDelete: "CASCADE" }),
|
|
6414
|
+
JoinColumn60({ name: "reviewee_id" })
|
|
6348
6415
|
], Rating.prototype, "reviewee", 2);
|
|
6349
6416
|
__decorateClass([
|
|
6350
|
-
|
|
6417
|
+
Column65({
|
|
6351
6418
|
type: "enum",
|
|
6352
6419
|
enum: RatingTypeEnum,
|
|
6353
6420
|
nullable: true
|
|
6354
6421
|
})
|
|
6355
6422
|
], Rating.prototype, "ratingType", 2);
|
|
6356
6423
|
__decorateClass([
|
|
6357
|
-
|
|
6424
|
+
Column65({ type: "integer", nullable: true })
|
|
6358
6425
|
], Rating.prototype, "rating", 2);
|
|
6359
6426
|
__decorateClass([
|
|
6360
|
-
|
|
6427
|
+
Column65({ type: "text", nullable: true })
|
|
6361
6428
|
], Rating.prototype, "review", 2);
|
|
6362
6429
|
Rating = __decorateClass([
|
|
6363
|
-
|
|
6430
|
+
Entity64("ratings")
|
|
6364
6431
|
], Rating);
|
|
6365
6432
|
|
|
6366
6433
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -8560,11 +8627,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
8560
8627
|
};
|
|
8561
8628
|
|
|
8562
8629
|
// src/entities/sequence-generator.entity.ts
|
|
8563
|
-
import { Entity as
|
|
8630
|
+
import { Entity as Entity65, Column as Column66 } from "typeorm";
|
|
8564
8631
|
var SequenceGenerator = class extends BaseEntity {
|
|
8565
8632
|
};
|
|
8566
8633
|
__decorateClass([
|
|
8567
|
-
|
|
8634
|
+
Column66({
|
|
8568
8635
|
name: "module",
|
|
8569
8636
|
type: "varchar",
|
|
8570
8637
|
length: 50,
|
|
@@ -8573,7 +8640,7 @@ __decorateClass([
|
|
|
8573
8640
|
})
|
|
8574
8641
|
], SequenceGenerator.prototype, "module", 2);
|
|
8575
8642
|
__decorateClass([
|
|
8576
|
-
|
|
8643
|
+
Column66({
|
|
8577
8644
|
name: "prefix",
|
|
8578
8645
|
type: "varchar",
|
|
8579
8646
|
length: 10,
|
|
@@ -8582,7 +8649,7 @@ __decorateClass([
|
|
|
8582
8649
|
})
|
|
8583
8650
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
8584
8651
|
__decorateClass([
|
|
8585
|
-
|
|
8652
|
+
Column66({
|
|
8586
8653
|
name: "last_sequence",
|
|
8587
8654
|
type: "int",
|
|
8588
8655
|
nullable: false,
|
|
@@ -8590,7 +8657,7 @@ __decorateClass([
|
|
|
8590
8657
|
})
|
|
8591
8658
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
8592
8659
|
__decorateClass([
|
|
8593
|
-
|
|
8660
|
+
Column66({
|
|
8594
8661
|
name: "year",
|
|
8595
8662
|
type: "int",
|
|
8596
8663
|
nullable: true,
|
|
@@ -8598,11 +8665,11 @@ __decorateClass([
|
|
|
8598
8665
|
})
|
|
8599
8666
|
], SequenceGenerator.prototype, "year", 2);
|
|
8600
8667
|
SequenceGenerator = __decorateClass([
|
|
8601
|
-
|
|
8668
|
+
Entity65("sequence_generators")
|
|
8602
8669
|
], SequenceGenerator);
|
|
8603
8670
|
|
|
8604
8671
|
// src/entities/question.entity.ts
|
|
8605
|
-
import { Entity as
|
|
8672
|
+
import { Entity as Entity66, Column as Column67 } from "typeorm";
|
|
8606
8673
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
8607
8674
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
8608
8675
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -8611,16 +8678,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
8611
8678
|
var Question = class extends BaseEntity {
|
|
8612
8679
|
};
|
|
8613
8680
|
__decorateClass([
|
|
8614
|
-
|
|
8681
|
+
Column67({ name: "question", type: "varchar" })
|
|
8615
8682
|
], Question.prototype, "question", 2);
|
|
8616
8683
|
__decorateClass([
|
|
8617
|
-
|
|
8684
|
+
Column67({ name: "hint", type: "varchar", nullable: true })
|
|
8618
8685
|
], Question.prototype, "hint", 2);
|
|
8619
8686
|
__decorateClass([
|
|
8620
|
-
|
|
8687
|
+
Column67({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8621
8688
|
], Question.prototype, "slug", 2);
|
|
8622
8689
|
__decorateClass([
|
|
8623
|
-
|
|
8690
|
+
Column67({
|
|
8624
8691
|
name: "question_for",
|
|
8625
8692
|
type: "enum",
|
|
8626
8693
|
enum: QuestionFor,
|
|
@@ -8628,49 +8695,49 @@ __decorateClass([
|
|
|
8628
8695
|
})
|
|
8629
8696
|
], Question.prototype, "questionFor", 2);
|
|
8630
8697
|
__decorateClass([
|
|
8631
|
-
|
|
8698
|
+
Column67({ name: "type", type: "varchar", nullable: true })
|
|
8632
8699
|
], Question.prototype, "type", 2);
|
|
8633
8700
|
__decorateClass([
|
|
8634
|
-
|
|
8701
|
+
Column67({ name: "options", type: "jsonb", nullable: true })
|
|
8635
8702
|
], Question.prototype, "options", 2);
|
|
8636
8703
|
__decorateClass([
|
|
8637
|
-
|
|
8704
|
+
Column67({ name: "is_active", type: "boolean", default: false })
|
|
8638
8705
|
], Question.prototype, "isActive", 2);
|
|
8639
8706
|
Question = __decorateClass([
|
|
8640
|
-
|
|
8707
|
+
Entity66("questions")
|
|
8641
8708
|
], Question);
|
|
8642
8709
|
|
|
8643
8710
|
// src/entities/skill.entity.ts
|
|
8644
|
-
import { Entity as
|
|
8711
|
+
import { Entity as Entity67, Column as Column68 } from "typeorm";
|
|
8645
8712
|
var Skill = class extends BaseEntity {
|
|
8646
8713
|
};
|
|
8647
8714
|
__decorateClass([
|
|
8648
|
-
|
|
8715
|
+
Column68({ name: "name", type: "varchar", nullable: true })
|
|
8649
8716
|
], Skill.prototype, "name", 2);
|
|
8650
8717
|
__decorateClass([
|
|
8651
|
-
|
|
8718
|
+
Column68({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8652
8719
|
], Skill.prototype, "slug", 2);
|
|
8653
8720
|
__decorateClass([
|
|
8654
|
-
|
|
8721
|
+
Column68({ name: "is_active", type: "boolean", default: false })
|
|
8655
8722
|
], Skill.prototype, "isActive", 2);
|
|
8656
8723
|
Skill = __decorateClass([
|
|
8657
|
-
|
|
8724
|
+
Entity67("skills")
|
|
8658
8725
|
], Skill);
|
|
8659
8726
|
|
|
8660
8727
|
// src/entities/skill-catalog.entity.ts
|
|
8661
8728
|
import {
|
|
8662
|
-
Entity as
|
|
8663
|
-
Column as
|
|
8729
|
+
Entity as Entity68,
|
|
8730
|
+
Column as Column69,
|
|
8664
8731
|
Index as Index58
|
|
8665
8732
|
} from "typeorm";
|
|
8666
8733
|
var SkillCatalog = class extends BaseEntity {
|
|
8667
8734
|
};
|
|
8668
8735
|
__decorateClass([
|
|
8669
|
-
|
|
8736
|
+
Column69({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
8670
8737
|
Index58()
|
|
8671
8738
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
8672
8739
|
__decorateClass([
|
|
8673
|
-
|
|
8740
|
+
Column69({
|
|
8674
8741
|
name: "aliases",
|
|
8675
8742
|
type: "text",
|
|
8676
8743
|
array: true,
|
|
@@ -8678,20 +8745,20 @@ __decorateClass([
|
|
|
8678
8745
|
})
|
|
8679
8746
|
], SkillCatalog.prototype, "aliases", 2);
|
|
8680
8747
|
__decorateClass([
|
|
8681
|
-
|
|
8748
|
+
Column69({
|
|
8682
8749
|
name: "variations",
|
|
8683
8750
|
type: "jsonb",
|
|
8684
8751
|
default: "{}"
|
|
8685
8752
|
})
|
|
8686
8753
|
], SkillCatalog.prototype, "variations", 2);
|
|
8687
8754
|
__decorateClass([
|
|
8688
|
-
|
|
8755
|
+
Column69({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
8689
8756
|
], SkillCatalog.prototype, "category", 2);
|
|
8690
8757
|
__decorateClass([
|
|
8691
|
-
|
|
8758
|
+
Column69({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
8692
8759
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
8693
8760
|
__decorateClass([
|
|
8694
|
-
|
|
8761
|
+
Column69({
|
|
8695
8762
|
name: "related_skills",
|
|
8696
8763
|
type: "text",
|
|
8697
8764
|
array: true,
|
|
@@ -8699,113 +8766,113 @@ __decorateClass([
|
|
|
8699
8766
|
})
|
|
8700
8767
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
8701
8768
|
__decorateClass([
|
|
8702
|
-
|
|
8769
|
+
Column69({ name: "usage_count", type: "integer", default: 0 }),
|
|
8703
8770
|
Index58()
|
|
8704
8771
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
8705
8772
|
__decorateClass([
|
|
8706
|
-
|
|
8773
|
+
Column69({ name: "is_verified", type: "boolean", default: false })
|
|
8707
8774
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
8708
8775
|
__decorateClass([
|
|
8709
|
-
|
|
8776
|
+
Column69({ name: "first_seen_date", type: "date" })
|
|
8710
8777
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
8711
8778
|
__decorateClass([
|
|
8712
|
-
|
|
8779
|
+
Column69({ name: "last_updated_date", type: "date" })
|
|
8713
8780
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
8714
8781
|
__decorateClass([
|
|
8715
|
-
|
|
8782
|
+
Column69({
|
|
8716
8783
|
name: "search_vector",
|
|
8717
8784
|
type: "tsvector",
|
|
8718
8785
|
nullable: true
|
|
8719
8786
|
})
|
|
8720
8787
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
8721
8788
|
SkillCatalog = __decorateClass([
|
|
8722
|
-
|
|
8789
|
+
Entity68("skill_catalogs")
|
|
8723
8790
|
], SkillCatalog);
|
|
8724
8791
|
|
|
8725
8792
|
// src/entities/job-role.entity.ts
|
|
8726
|
-
import { Entity as
|
|
8793
|
+
import { Entity as Entity69, Column as Column70 } from "typeorm";
|
|
8727
8794
|
var JobRoles = class extends BaseEntity {
|
|
8728
8795
|
};
|
|
8729
8796
|
__decorateClass([
|
|
8730
|
-
|
|
8797
|
+
Column70({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8731
8798
|
], JobRoles.prototype, "slug", 2);
|
|
8732
8799
|
__decorateClass([
|
|
8733
|
-
|
|
8800
|
+
Column70({ name: "name", type: "varchar", nullable: true })
|
|
8734
8801
|
], JobRoles.prototype, "name", 2);
|
|
8735
8802
|
__decorateClass([
|
|
8736
|
-
|
|
8803
|
+
Column70({ name: "is_active", type: "boolean", default: true })
|
|
8737
8804
|
], JobRoles.prototype, "isActive", 2);
|
|
8738
8805
|
JobRoles = __decorateClass([
|
|
8739
|
-
|
|
8806
|
+
Entity69("job_roles")
|
|
8740
8807
|
], JobRoles);
|
|
8741
8808
|
|
|
8742
8809
|
// src/entities/plan.entity.ts
|
|
8743
|
-
import { Entity as
|
|
8810
|
+
import { Entity as Entity71, Column as Column72, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
8744
8811
|
|
|
8745
8812
|
// src/entities/feature.entity.ts
|
|
8746
|
-
import { Entity as
|
|
8813
|
+
import { Entity as Entity70, Column as Column71, ManyToMany as ManyToMany2 } from "typeorm";
|
|
8747
8814
|
var Feature = class extends BaseEntity {
|
|
8748
8815
|
};
|
|
8749
8816
|
__decorateClass([
|
|
8750
|
-
|
|
8817
|
+
Column71({ name: "name", type: "varchar", unique: true })
|
|
8751
8818
|
], Feature.prototype, "name", 2);
|
|
8752
8819
|
__decorateClass([
|
|
8753
8820
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
8754
8821
|
], Feature.prototype, "plans", 2);
|
|
8755
8822
|
Feature = __decorateClass([
|
|
8756
|
-
|
|
8823
|
+
Entity70("features")
|
|
8757
8824
|
], Feature);
|
|
8758
8825
|
|
|
8759
8826
|
// src/entities/plan.entity.ts
|
|
8760
8827
|
var Plan = class extends BaseEntity {
|
|
8761
8828
|
};
|
|
8762
8829
|
__decorateClass([
|
|
8763
|
-
|
|
8830
|
+
Column72({ name: "name", type: "varchar", unique: true })
|
|
8764
8831
|
], Plan.prototype, "name", 2);
|
|
8765
8832
|
__decorateClass([
|
|
8766
|
-
|
|
8833
|
+
Column72({ name: "description", type: "varchar", nullable: true })
|
|
8767
8834
|
], Plan.prototype, "description", 2);
|
|
8768
8835
|
__decorateClass([
|
|
8769
|
-
|
|
8836
|
+
Column72({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
8770
8837
|
], Plan.prototype, "price", 2);
|
|
8771
8838
|
__decorateClass([
|
|
8772
|
-
|
|
8839
|
+
Column72({ name: "billing_period", type: "varchar" })
|
|
8773
8840
|
], Plan.prototype, "billingPeriod", 2);
|
|
8774
8841
|
__decorateClass([
|
|
8775
|
-
|
|
8842
|
+
Column72({ name: "is_current", type: "boolean", default: false })
|
|
8776
8843
|
], Plan.prototype, "isCurrent", 2);
|
|
8777
8844
|
__decorateClass([
|
|
8778
8845
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
8779
8846
|
JoinTable()
|
|
8780
8847
|
], Plan.prototype, "features", 2);
|
|
8781
8848
|
Plan = __decorateClass([
|
|
8782
|
-
|
|
8849
|
+
Entity71("plans")
|
|
8783
8850
|
], Plan);
|
|
8784
8851
|
|
|
8785
8852
|
// src/entities/cms.entity.ts
|
|
8786
|
-
import { Entity as
|
|
8853
|
+
import { Entity as Entity72, Column as Column73 } from "typeorm";
|
|
8787
8854
|
var Cms = class extends BaseEntity {
|
|
8788
8855
|
};
|
|
8789
8856
|
__decorateClass([
|
|
8790
|
-
|
|
8857
|
+
Column73({ name: "title", type: "varchar", nullable: true })
|
|
8791
8858
|
], Cms.prototype, "title", 2);
|
|
8792
8859
|
__decorateClass([
|
|
8793
|
-
|
|
8860
|
+
Column73({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
8794
8861
|
], Cms.prototype, "slug", 2);
|
|
8795
8862
|
__decorateClass([
|
|
8796
|
-
|
|
8863
|
+
Column73({ name: "content", type: "varchar", nullable: true })
|
|
8797
8864
|
], Cms.prototype, "content", 2);
|
|
8798
8865
|
__decorateClass([
|
|
8799
|
-
|
|
8866
|
+
Column73({ name: "is_active", type: "boolean", default: true })
|
|
8800
8867
|
], Cms.prototype, "isActive", 2);
|
|
8801
8868
|
Cms = __decorateClass([
|
|
8802
|
-
|
|
8869
|
+
Entity72("cms")
|
|
8803
8870
|
], Cms);
|
|
8804
8871
|
|
|
8805
8872
|
// src/entities/lead.entity.ts
|
|
8806
8873
|
import {
|
|
8807
|
-
Entity as
|
|
8808
|
-
Column as
|
|
8874
|
+
Entity as Entity73,
|
|
8875
|
+
Column as Column74
|
|
8809
8876
|
} from "typeorm";
|
|
8810
8877
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
8811
8878
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -8815,22 +8882,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
8815
8882
|
var Lead = class extends BaseEntity {
|
|
8816
8883
|
};
|
|
8817
8884
|
__decorateClass([
|
|
8818
|
-
|
|
8885
|
+
Column74({ name: "name", type: "varchar", nullable: true })
|
|
8819
8886
|
], Lead.prototype, "name", 2);
|
|
8820
8887
|
__decorateClass([
|
|
8821
|
-
|
|
8888
|
+
Column74({ name: "mobile_code", type: "varchar", nullable: true })
|
|
8822
8889
|
], Lead.prototype, "mobileCode", 2);
|
|
8823
8890
|
__decorateClass([
|
|
8824
|
-
|
|
8891
|
+
Column74({ name: "mobile", type: "varchar", nullable: true })
|
|
8825
8892
|
], Lead.prototype, "mobile", 2);
|
|
8826
8893
|
__decorateClass([
|
|
8827
|
-
|
|
8894
|
+
Column74({ name: "email", type: "varchar", nullable: true })
|
|
8828
8895
|
], Lead.prototype, "email", 2);
|
|
8829
8896
|
__decorateClass([
|
|
8830
|
-
|
|
8897
|
+
Column74({ name: "description", type: "varchar", nullable: true })
|
|
8831
8898
|
], Lead.prototype, "description", 2);
|
|
8832
8899
|
__decorateClass([
|
|
8833
|
-
|
|
8900
|
+
Column74({
|
|
8834
8901
|
name: "category",
|
|
8835
8902
|
type: "enum",
|
|
8836
8903
|
enum: CategoryEmum,
|
|
@@ -8838,7 +8905,7 @@ __decorateClass([
|
|
|
8838
8905
|
})
|
|
8839
8906
|
], Lead.prototype, "category", 2);
|
|
8840
8907
|
Lead = __decorateClass([
|
|
8841
|
-
|
|
8908
|
+
Entity73("leads")
|
|
8842
8909
|
], Lead);
|
|
8843
8910
|
|
|
8844
8911
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -9079,7 +9146,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
9079
9146
|
], ClientFreelancerRecommendation);
|
|
9080
9147
|
|
|
9081
9148
|
// src/entities/commission.entity.ts
|
|
9082
|
-
import { Entity as
|
|
9149
|
+
import { Entity as Entity74, Column as Column75 } from "typeorm";
|
|
9083
9150
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
9084
9151
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
9085
9152
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -9088,7 +9155,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
9088
9155
|
var Commission = class extends BaseEntity {
|
|
9089
9156
|
};
|
|
9090
9157
|
__decorateClass([
|
|
9091
|
-
|
|
9158
|
+
Column75({
|
|
9092
9159
|
name: "freelancer_commission_type",
|
|
9093
9160
|
type: "enum",
|
|
9094
9161
|
enum: CommissionTypeEnum,
|
|
@@ -9096,10 +9163,10 @@ __decorateClass([
|
|
|
9096
9163
|
})
|
|
9097
9164
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
9098
9165
|
__decorateClass([
|
|
9099
|
-
|
|
9166
|
+
Column75({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
9100
9167
|
], Commission.prototype, "freelancerCommission", 2);
|
|
9101
9168
|
__decorateClass([
|
|
9102
|
-
|
|
9169
|
+
Column75({
|
|
9103
9170
|
name: "client_commission_type",
|
|
9104
9171
|
type: "enum",
|
|
9105
9172
|
enum: CommissionTypeEnum,
|
|
@@ -9107,86 +9174,86 @@ __decorateClass([
|
|
|
9107
9174
|
})
|
|
9108
9175
|
], Commission.prototype, "clientCommissionType", 2);
|
|
9109
9176
|
__decorateClass([
|
|
9110
|
-
|
|
9177
|
+
Column75({ name: "client_commission", type: "integer", default: 0 })
|
|
9111
9178
|
], Commission.prototype, "clientCommission", 2);
|
|
9112
9179
|
Commission = __decorateClass([
|
|
9113
|
-
|
|
9180
|
+
Entity74("commissions")
|
|
9114
9181
|
], Commission);
|
|
9115
9182
|
|
|
9116
9183
|
// src/entities/calendly-meeting-log.entity.ts
|
|
9117
9184
|
import {
|
|
9118
|
-
Entity as
|
|
9119
|
-
Column as
|
|
9185
|
+
Entity as Entity75,
|
|
9186
|
+
Column as Column76,
|
|
9120
9187
|
Index as Index59
|
|
9121
9188
|
} from "typeorm";
|
|
9122
9189
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
9123
9190
|
};
|
|
9124
9191
|
__decorateClass([
|
|
9125
|
-
|
|
9192
|
+
Column76({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
9126
9193
|
Index59()
|
|
9127
9194
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
9128
9195
|
__decorateClass([
|
|
9129
|
-
|
|
9196
|
+
Column76({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
9130
9197
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
9131
9198
|
__decorateClass([
|
|
9132
|
-
|
|
9199
|
+
Column76({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
9133
9200
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
9134
9201
|
CalendlyMeetingLog = __decorateClass([
|
|
9135
|
-
|
|
9202
|
+
Entity75("calendly_meeting_logs")
|
|
9136
9203
|
], CalendlyMeetingLog);
|
|
9137
9204
|
|
|
9138
9205
|
// src/entities/zoom-meeting-log.entity.ts
|
|
9139
9206
|
import {
|
|
9140
|
-
Entity as
|
|
9141
|
-
Column as
|
|
9207
|
+
Entity as Entity76,
|
|
9208
|
+
Column as Column77,
|
|
9142
9209
|
Index as Index60
|
|
9143
9210
|
} from "typeorm";
|
|
9144
9211
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
9145
9212
|
};
|
|
9146
9213
|
__decorateClass([
|
|
9147
|
-
|
|
9214
|
+
Column77({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
9148
9215
|
Index60()
|
|
9149
9216
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
9150
9217
|
__decorateClass([
|
|
9151
|
-
|
|
9218
|
+
Column77({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
9152
9219
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
9153
9220
|
__decorateClass([
|
|
9154
|
-
|
|
9221
|
+
Column77({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
9155
9222
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
9156
9223
|
ZoomMeetingLog = __decorateClass([
|
|
9157
|
-
|
|
9224
|
+
Entity76("zoom_meeting_logs")
|
|
9158
9225
|
], ZoomMeetingLog);
|
|
9159
9226
|
|
|
9160
9227
|
// src/entities/stripe-logs.entity.ts
|
|
9161
|
-
import { Entity as
|
|
9228
|
+
import { Entity as Entity77, Column as Column78 } from "typeorm";
|
|
9162
9229
|
var StripeLog = class extends BaseEntity {
|
|
9163
9230
|
};
|
|
9164
9231
|
__decorateClass([
|
|
9165
|
-
|
|
9232
|
+
Column78({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
9166
9233
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
9167
9234
|
__decorateClass([
|
|
9168
|
-
|
|
9235
|
+
Column78({ name: "event_type", type: "varchar", nullable: true })
|
|
9169
9236
|
], StripeLog.prototype, "eventType", 2);
|
|
9170
9237
|
__decorateClass([
|
|
9171
|
-
|
|
9238
|
+
Column78({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
9172
9239
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
9173
9240
|
__decorateClass([
|
|
9174
|
-
|
|
9241
|
+
Column78({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
9175
9242
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
9176
9243
|
StripeLog = __decorateClass([
|
|
9177
|
-
|
|
9244
|
+
Entity77("stripe_logs")
|
|
9178
9245
|
], StripeLog);
|
|
9179
9246
|
|
|
9180
9247
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
9181
9248
|
import {
|
|
9182
|
-
Entity as
|
|
9183
|
-
Column as
|
|
9249
|
+
Entity as Entity78,
|
|
9250
|
+
Column as Column79,
|
|
9184
9251
|
Index as Index61
|
|
9185
9252
|
} from "typeorm";
|
|
9186
9253
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
9187
9254
|
};
|
|
9188
9255
|
__decorateClass([
|
|
9189
|
-
|
|
9256
|
+
Column79({
|
|
9190
9257
|
type: "varchar",
|
|
9191
9258
|
length: 100,
|
|
9192
9259
|
unique: true,
|
|
@@ -9195,17 +9262,17 @@ __decorateClass([
|
|
|
9195
9262
|
Index61()
|
|
9196
9263
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
9197
9264
|
__decorateClass([
|
|
9198
|
-
|
|
9265
|
+
Column79({
|
|
9199
9266
|
type: "jsonb",
|
|
9200
9267
|
comment: "JSON object containing weight values",
|
|
9201
9268
|
nullable: true
|
|
9202
9269
|
})
|
|
9203
9270
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
9204
9271
|
__decorateClass([
|
|
9205
|
-
|
|
9272
|
+
Column79({ name: "is_active", type: "boolean", default: true })
|
|
9206
9273
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
9207
9274
|
RecommendationWeightageConfig = __decorateClass([
|
|
9208
|
-
|
|
9275
|
+
Entity78("recommendation_weightage_configs")
|
|
9209
9276
|
], RecommendationWeightageConfig);
|
|
9210
9277
|
export {
|
|
9211
9278
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -9226,6 +9293,8 @@ export {
|
|
|
9226
9293
|
AiAssessmentStatusEnum,
|
|
9227
9294
|
AiInterview,
|
|
9228
9295
|
AiInterviewQuestionGenerateDto,
|
|
9296
|
+
AiInterviewRescheduleRequest,
|
|
9297
|
+
AiInterviewRescheduleRequestStatusEnum,
|
|
9229
9298
|
AiInterviewStatusEnum,
|
|
9230
9299
|
AnswerTypeEnum,
|
|
9231
9300
|
ApplicationStatusEnum,
|