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