@experts_hub/shared 1.0.432 → 1.0.433
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/client-candidate-preference.entity.d.ts +3 -0
- package/dist/entities/job-recommendation.entity.d.ts +2 -0
- package/dist/index.d.mts +17 -14
- package/dist/index.d.ts +17 -14
- package/dist/index.js +187 -174
- package/dist/index.mjs +202 -187
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1449,7 +1449,7 @@ import {
|
|
|
1449
1449
|
Entity as Entity55,
|
|
1450
1450
|
Column as Column56,
|
|
1451
1451
|
OneToMany as OneToMany19,
|
|
1452
|
-
OneToOne as
|
|
1452
|
+
OneToOne as OneToOne7,
|
|
1453
1453
|
Index as Index48,
|
|
1454
1454
|
ManyToOne as ManyToOne49,
|
|
1455
1455
|
JoinColumn as JoinColumn50
|
|
@@ -2888,43 +2888,106 @@ Interview = __decorateClass([
|
|
|
2888
2888
|
], Interview);
|
|
2889
2889
|
|
|
2890
2890
|
// src/entities/job-recommendation.entity.ts
|
|
2891
|
+
import {
|
|
2892
|
+
Entity as Entity20,
|
|
2893
|
+
Column as Column21,
|
|
2894
|
+
Index as Index14,
|
|
2895
|
+
ManyToOne as ManyToOne19,
|
|
2896
|
+
JoinColumn as JoinColumn19,
|
|
2897
|
+
PrimaryGeneratedColumn as PrimaryGeneratedColumn5,
|
|
2898
|
+
OneToOne as OneToOne3
|
|
2899
|
+
} from "typeorm";
|
|
2900
|
+
|
|
2901
|
+
// src/entities/client-candidate-preference.entity.ts
|
|
2891
2902
|
import {
|
|
2892
2903
|
Entity as Entity19,
|
|
2893
2904
|
Column as Column20,
|
|
2894
2905
|
Index as Index13,
|
|
2895
2906
|
ManyToOne as ManyToOne18,
|
|
2896
2907
|
JoinColumn as JoinColumn18,
|
|
2897
|
-
|
|
2908
|
+
OneToOne as OneToOne2
|
|
2898
2909
|
} from "typeorm";
|
|
2910
|
+
var ClientCandidatePreferenceEnum = /* @__PURE__ */ ((ClientCandidatePreferenceEnum2) => {
|
|
2911
|
+
ClientCandidatePreferenceEnum2["NOT_SUITABLE"] = "NOT_SUITABLE";
|
|
2912
|
+
ClientCandidatePreferenceEnum2["SHORTLISTED"] = "SHORTLISTED";
|
|
2913
|
+
return ClientCandidatePreferenceEnum2;
|
|
2914
|
+
})(ClientCandidatePreferenceEnum || {});
|
|
2915
|
+
var ClientCandidatePreference = class extends BaseEntity {
|
|
2916
|
+
};
|
|
2917
|
+
__decorateClass([
|
|
2918
|
+
Column20({ name: "client_id", type: "integer" }),
|
|
2919
|
+
Index13()
|
|
2920
|
+
], ClientCandidatePreference.prototype, "clientId", 2);
|
|
2921
|
+
__decorateClass([
|
|
2922
|
+
ManyToOne18(() => User, (user) => user.clientPreferencesGiven),
|
|
2923
|
+
JoinColumn18({ name: "client_id" })
|
|
2924
|
+
], ClientCandidatePreference.prototype, "client", 2);
|
|
2925
|
+
__decorateClass([
|
|
2926
|
+
Column20({ name: "candidate_id", type: "integer" }),
|
|
2927
|
+
Index13()
|
|
2928
|
+
], ClientCandidatePreference.prototype, "candidateId", 2);
|
|
2929
|
+
__decorateClass([
|
|
2930
|
+
ManyToOne18(() => User, (user) => user.clientPreferencesReceived),
|
|
2931
|
+
JoinColumn18({ name: "candidate_id" })
|
|
2932
|
+
], ClientCandidatePreference.prototype, "candidate", 2);
|
|
2933
|
+
__decorateClass([
|
|
2934
|
+
Column20({ name: "job_id", type: "integer", nullable: true }),
|
|
2935
|
+
Index13()
|
|
2936
|
+
], ClientCandidatePreference.prototype, "jobId", 2);
|
|
2937
|
+
__decorateClass([
|
|
2938
|
+
ManyToOne18(() => Job, (job) => job.clientCandidatePreferences, { nullable: true }),
|
|
2939
|
+
JoinColumn18({ name: "job_id" })
|
|
2940
|
+
], ClientCandidatePreference.prototype, "job", 2);
|
|
2941
|
+
__decorateClass([
|
|
2942
|
+
Column20({ name: "recommendation_id", type: "integer", nullable: true }),
|
|
2943
|
+
Index13()
|
|
2944
|
+
], ClientCandidatePreference.prototype, "recommendationId", 2);
|
|
2945
|
+
__decorateClass([
|
|
2946
|
+
OneToOne2(() => JobRecommendation, (jobRecommendation) => jobRecommendation.preference, { nullable: true }),
|
|
2947
|
+
JoinColumn18({ name: "recommendation_id" })
|
|
2948
|
+
], ClientCandidatePreference.prototype, "recommendation", 2);
|
|
2949
|
+
__decorateClass([
|
|
2950
|
+
Column20({
|
|
2951
|
+
name: "preference",
|
|
2952
|
+
type: "enum",
|
|
2953
|
+
enum: ClientCandidatePreferenceEnum
|
|
2954
|
+
}),
|
|
2955
|
+
Index13()
|
|
2956
|
+
], ClientCandidatePreference.prototype, "preference", 2);
|
|
2957
|
+
ClientCandidatePreference = __decorateClass([
|
|
2958
|
+
Entity19("client_candidate_preferences")
|
|
2959
|
+
], ClientCandidatePreference);
|
|
2960
|
+
|
|
2961
|
+
// src/entities/job-recommendation.entity.ts
|
|
2899
2962
|
var JobRecommendation = class {
|
|
2900
2963
|
};
|
|
2901
2964
|
__decorateClass([
|
|
2902
2965
|
PrimaryGeneratedColumn5("increment", { type: "integer" })
|
|
2903
2966
|
], JobRecommendation.prototype, "id", 2);
|
|
2904
2967
|
__decorateClass([
|
|
2905
|
-
|
|
2906
|
-
|
|
2968
|
+
Column21({ name: "job_id", type: "integer" }),
|
|
2969
|
+
Index14()
|
|
2907
2970
|
], JobRecommendation.prototype, "jobId", 2);
|
|
2908
2971
|
__decorateClass([
|
|
2909
|
-
|
|
2910
|
-
|
|
2972
|
+
ManyToOne19(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
|
|
2973
|
+
JoinColumn19({ name: "job_id" })
|
|
2911
2974
|
], JobRecommendation.prototype, "job", 2);
|
|
2912
2975
|
__decorateClass([
|
|
2913
|
-
|
|
2914
|
-
|
|
2976
|
+
Column21({ name: "freelancer_id", type: "integer" }),
|
|
2977
|
+
Index14()
|
|
2915
2978
|
], JobRecommendation.prototype, "freelancerId", 2);
|
|
2916
2979
|
__decorateClass([
|
|
2917
|
-
|
|
2918
|
-
|
|
2980
|
+
Column21({ name: "client_id", type: "integer" }),
|
|
2981
|
+
Index14()
|
|
2919
2982
|
], JobRecommendation.prototype, "clientId", 2);
|
|
2920
2983
|
__decorateClass([
|
|
2921
|
-
|
|
2984
|
+
Column21({ name: "match_score", type: "numeric", precision: 5, scale: 2 })
|
|
2922
2985
|
], JobRecommendation.prototype, "matchScore", 2);
|
|
2923
2986
|
__decorateClass([
|
|
2924
|
-
|
|
2987
|
+
Column21({ name: "match_score_summary", type: "jsonb", nullable: true })
|
|
2925
2988
|
], JobRecommendation.prototype, "matchScoreSummary", 2);
|
|
2926
2989
|
__decorateClass([
|
|
2927
|
-
|
|
2990
|
+
Column21({
|
|
2928
2991
|
name: "matching_skills",
|
|
2929
2992
|
type: "text",
|
|
2930
2993
|
array: true,
|
|
@@ -2932,10 +2995,10 @@ __decorateClass([
|
|
|
2932
2995
|
})
|
|
2933
2996
|
], JobRecommendation.prototype, "matchingSkills", 2);
|
|
2934
2997
|
__decorateClass([
|
|
2935
|
-
|
|
2998
|
+
Column21({ name: "matching_skills_count", type: "int", nullable: true })
|
|
2936
2999
|
], JobRecommendation.prototype, "matchingSkillsCount", 2);
|
|
2937
3000
|
__decorateClass([
|
|
2938
|
-
|
|
3001
|
+
Column21({
|
|
2939
3002
|
name: "required_skills",
|
|
2940
3003
|
type: "text",
|
|
2941
3004
|
array: true,
|
|
@@ -2943,21 +3006,24 @@ __decorateClass([
|
|
|
2943
3006
|
})
|
|
2944
3007
|
], JobRecommendation.prototype, "requiredSkills", 2);
|
|
2945
3008
|
__decorateClass([
|
|
2946
|
-
|
|
3009
|
+
Column21({ name: "required_skills_count", type: "int", nullable: true })
|
|
2947
3010
|
], JobRecommendation.prototype, "requiredSkillsCount", 2);
|
|
2948
3011
|
__decorateClass([
|
|
2949
|
-
|
|
3012
|
+
Column21({
|
|
2950
3013
|
name: "last_calculated_at",
|
|
2951
3014
|
type: "timestamp with time zone",
|
|
2952
3015
|
nullable: true
|
|
2953
3016
|
})
|
|
2954
3017
|
], JobRecommendation.prototype, "lastCalculatedAt", 2);
|
|
3018
|
+
__decorateClass([
|
|
3019
|
+
OneToOne3(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.recommendation)
|
|
3020
|
+
], JobRecommendation.prototype, "preference", 2);
|
|
2955
3021
|
JobRecommendation = __decorateClass([
|
|
2956
|
-
|
|
3022
|
+
Entity20("job_recommendations")
|
|
2957
3023
|
], JobRecommendation);
|
|
2958
3024
|
|
|
2959
3025
|
// src/entities/contract.entity.ts
|
|
2960
|
-
import { Entity as
|
|
3026
|
+
import { Entity as Entity21, Column as Column22, Index as Index15, ManyToOne as ManyToOne20, JoinColumn as JoinColumn20 } from "typeorm";
|
|
2961
3027
|
var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
|
|
2962
3028
|
ContractStatusEnum2["GENERATED"] = "GENERATED";
|
|
2963
3029
|
ContractStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
@@ -2980,37 +3046,37 @@ var Contract = class extends BaseEntity {
|
|
|
2980
3046
|
// stores the positions JSON
|
|
2981
3047
|
};
|
|
2982
3048
|
__decorateClass([
|
|
2983
|
-
|
|
3049
|
+
Column22({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
|
|
2984
3050
|
], Contract.prototype, "contractUniqueId", 2);
|
|
2985
3051
|
__decorateClass([
|
|
2986
|
-
|
|
2987
|
-
|
|
3052
|
+
Column22({ name: "job_id", type: "integer", nullable: true }),
|
|
3053
|
+
Index15()
|
|
2988
3054
|
], Contract.prototype, "jobId", 2);
|
|
2989
3055
|
__decorateClass([
|
|
2990
|
-
|
|
2991
|
-
|
|
3056
|
+
ManyToOne20(() => Job, (job) => job.contracts),
|
|
3057
|
+
JoinColumn20({ name: "job_id" })
|
|
2992
3058
|
], Contract.prototype, "job", 2);
|
|
2993
3059
|
__decorateClass([
|
|
2994
|
-
|
|
2995
|
-
|
|
3060
|
+
Column22({ name: "client_id", type: "integer", nullable: true }),
|
|
3061
|
+
Index15()
|
|
2996
3062
|
], Contract.prototype, "clientId", 2);
|
|
2997
3063
|
__decorateClass([
|
|
2998
|
-
|
|
2999
|
-
|
|
3064
|
+
ManyToOne20(() => User, (user) => user.clientContracts),
|
|
3065
|
+
JoinColumn20({ name: "client_id" })
|
|
3000
3066
|
], Contract.prototype, "client", 2);
|
|
3001
3067
|
__decorateClass([
|
|
3002
|
-
|
|
3003
|
-
|
|
3068
|
+
Column22({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3069
|
+
Index15()
|
|
3004
3070
|
], Contract.prototype, "freelancerId", 2);
|
|
3005
3071
|
__decorateClass([
|
|
3006
|
-
|
|
3007
|
-
|
|
3072
|
+
ManyToOne20(() => User, (user) => user.freelancerContracts),
|
|
3073
|
+
JoinColumn20({ name: "freelancer_id" })
|
|
3008
3074
|
], Contract.prototype, "freelancer", 2);
|
|
3009
3075
|
__decorateClass([
|
|
3010
|
-
|
|
3076
|
+
Column22({ name: "duration", type: "integer", nullable: true })
|
|
3011
3077
|
], Contract.prototype, "duration", 2);
|
|
3012
3078
|
__decorateClass([
|
|
3013
|
-
|
|
3079
|
+
Column22({
|
|
3014
3080
|
name: "status",
|
|
3015
3081
|
type: "enum",
|
|
3016
3082
|
enum: ContractStatusEnum,
|
|
@@ -3018,7 +3084,7 @@ __decorateClass([
|
|
|
3018
3084
|
})
|
|
3019
3085
|
], Contract.prototype, "status", 2);
|
|
3020
3086
|
__decorateClass([
|
|
3021
|
-
|
|
3087
|
+
Column22({
|
|
3022
3088
|
name: "type",
|
|
3023
3089
|
type: "enum",
|
|
3024
3090
|
enum: ContractTypeEnum,
|
|
@@ -3026,74 +3092,74 @@ __decorateClass([
|
|
|
3026
3092
|
})
|
|
3027
3093
|
], Contract.prototype, "type", 2);
|
|
3028
3094
|
__decorateClass([
|
|
3029
|
-
|
|
3095
|
+
Column22({
|
|
3030
3096
|
name: "start_date",
|
|
3031
3097
|
type: "timestamp with time zone",
|
|
3032
3098
|
nullable: true
|
|
3033
3099
|
})
|
|
3034
3100
|
], Contract.prototype, "startDate", 2);
|
|
3035
3101
|
__decorateClass([
|
|
3036
|
-
|
|
3102
|
+
Column22({
|
|
3037
3103
|
name: "end_date",
|
|
3038
3104
|
type: "timestamp with time zone",
|
|
3039
3105
|
nullable: true
|
|
3040
3106
|
})
|
|
3041
3107
|
], Contract.prototype, "endDate", 2);
|
|
3042
3108
|
__decorateClass([
|
|
3043
|
-
|
|
3109
|
+
Column22({ name: "original_document_url", type: "varchar", nullable: true })
|
|
3044
3110
|
], Contract.prototype, "originalDocumentUrl", 2);
|
|
3045
3111
|
__decorateClass([
|
|
3046
|
-
|
|
3112
|
+
Column22({ name: "contract_document_url", type: "varchar", nullable: true })
|
|
3047
3113
|
], Contract.prototype, "contractDocumentUrl", 2);
|
|
3048
3114
|
__decorateClass([
|
|
3049
|
-
|
|
3115
|
+
Column22({
|
|
3050
3116
|
name: "client_signed_at",
|
|
3051
3117
|
type: "timestamp with time zone",
|
|
3052
3118
|
nullable: true
|
|
3053
3119
|
})
|
|
3054
3120
|
], Contract.prototype, "clientSignedAt", 2);
|
|
3055
3121
|
__decorateClass([
|
|
3056
|
-
|
|
3122
|
+
Column22({ name: "freelancer_viewed", type: "boolean", default: false })
|
|
3057
3123
|
], Contract.prototype, "freelancerViewed", 2);
|
|
3058
3124
|
__decorateClass([
|
|
3059
|
-
|
|
3125
|
+
Column22({
|
|
3060
3126
|
name: "freelancer_viewed_at",
|
|
3061
3127
|
type: "timestamp with time zone",
|
|
3062
3128
|
nullable: true
|
|
3063
3129
|
})
|
|
3064
3130
|
], Contract.prototype, "freelancerViewedAt", 2);
|
|
3065
3131
|
__decorateClass([
|
|
3066
|
-
|
|
3132
|
+
Column22({
|
|
3067
3133
|
name: "freelancer_signed_at",
|
|
3068
3134
|
type: "timestamp with time zone",
|
|
3069
3135
|
nullable: true
|
|
3070
3136
|
})
|
|
3071
3137
|
], Contract.prototype, "freelancerSignedAt", 2);
|
|
3072
3138
|
__decorateClass([
|
|
3073
|
-
|
|
3139
|
+
Column22({
|
|
3074
3140
|
name: "rejectd_at",
|
|
3075
3141
|
type: "timestamp with time zone",
|
|
3076
3142
|
nullable: true
|
|
3077
3143
|
})
|
|
3078
3144
|
], Contract.prototype, "rejectedAt", 2);
|
|
3079
3145
|
__decorateClass([
|
|
3080
|
-
|
|
3146
|
+
Column22({ name: "reject_reason", type: "varchar", nullable: true })
|
|
3081
3147
|
], Contract.prototype, "rejectReason", 2);
|
|
3082
3148
|
__decorateClass([
|
|
3083
|
-
|
|
3149
|
+
Column22({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
3084
3150
|
], Contract.prototype, "isWorkContractSent", 2);
|
|
3085
3151
|
__decorateClass([
|
|
3086
|
-
|
|
3152
|
+
Column22({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
3087
3153
|
], Contract.prototype, "isEscrowDeposited", 2);
|
|
3088
3154
|
__decorateClass([
|
|
3089
|
-
|
|
3155
|
+
Column22({ name: "signature_positions", type: "jsonb", nullable: true })
|
|
3090
3156
|
], Contract.prototype, "signaturePositions", 2);
|
|
3091
3157
|
Contract = __decorateClass([
|
|
3092
|
-
|
|
3158
|
+
Entity21("contracts")
|
|
3093
3159
|
], Contract);
|
|
3094
3160
|
|
|
3095
3161
|
// src/entities/timesheets.entity.ts
|
|
3096
|
-
import { Entity as
|
|
3162
|
+
import { Entity as Entity22, Column as Column23, Index as Index16, JoinColumn as JoinColumn21, ManyToOne as ManyToOne21 } from "typeorm";
|
|
3097
3163
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
3098
3164
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
3099
3165
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -3106,148 +3172,148 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
3106
3172
|
var Timesheet = class extends BaseEntity {
|
|
3107
3173
|
};
|
|
3108
3174
|
__decorateClass([
|
|
3109
|
-
|
|
3110
|
-
|
|
3175
|
+
Column23({ name: "job_id", type: "integer", nullable: true }),
|
|
3176
|
+
Index16()
|
|
3111
3177
|
], Timesheet.prototype, "jobId", 2);
|
|
3112
3178
|
__decorateClass([
|
|
3113
|
-
|
|
3114
|
-
|
|
3179
|
+
ManyToOne21(() => Job, (job) => job.timesheets),
|
|
3180
|
+
JoinColumn21({ name: "job_id" })
|
|
3115
3181
|
], Timesheet.prototype, "job", 2);
|
|
3116
3182
|
__decorateClass([
|
|
3117
|
-
|
|
3118
|
-
|
|
3183
|
+
Column23({ name: "client_id", type: "integer", nullable: true }),
|
|
3184
|
+
Index16()
|
|
3119
3185
|
], Timesheet.prototype, "clientId", 2);
|
|
3120
3186
|
__decorateClass([
|
|
3121
|
-
|
|
3122
|
-
|
|
3187
|
+
ManyToOne21(() => User, (user) => user.clientTimesheets),
|
|
3188
|
+
JoinColumn21({ name: "client_id" })
|
|
3123
3189
|
], Timesheet.prototype, "client", 2);
|
|
3124
3190
|
__decorateClass([
|
|
3125
|
-
|
|
3126
|
-
|
|
3191
|
+
Column23({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3192
|
+
Index16()
|
|
3127
3193
|
], Timesheet.prototype, "freelancerId", 2);
|
|
3128
3194
|
__decorateClass([
|
|
3129
|
-
|
|
3130
|
-
|
|
3195
|
+
ManyToOne21(() => User, (user) => user.freelancerTimesheets),
|
|
3196
|
+
JoinColumn21({ name: "freelancer_id" })
|
|
3131
3197
|
], Timesheet.prototype, "freelancer", 2);
|
|
3132
3198
|
__decorateClass([
|
|
3133
|
-
|
|
3199
|
+
Column23({
|
|
3134
3200
|
name: "start_date",
|
|
3135
3201
|
type: "date",
|
|
3136
3202
|
nullable: true
|
|
3137
3203
|
})
|
|
3138
3204
|
], Timesheet.prototype, "startDate", 2);
|
|
3139
3205
|
__decorateClass([
|
|
3140
|
-
|
|
3206
|
+
Column23({
|
|
3141
3207
|
name: "end_date",
|
|
3142
3208
|
type: "date",
|
|
3143
3209
|
nullable: true
|
|
3144
3210
|
})
|
|
3145
3211
|
], Timesheet.prototype, "endDate", 2);
|
|
3146
3212
|
__decorateClass([
|
|
3147
|
-
|
|
3213
|
+
Column23({ name: "start_time", type: "varchar", nullable: true })
|
|
3148
3214
|
], Timesheet.prototype, "startTime", 2);
|
|
3149
3215
|
__decorateClass([
|
|
3150
|
-
|
|
3216
|
+
Column23({ name: "end_time", type: "varchar", nullable: true })
|
|
3151
3217
|
], Timesheet.prototype, "endTime", 2);
|
|
3152
3218
|
__decorateClass([
|
|
3153
|
-
|
|
3219
|
+
Column23({ name: "worked_hours", type: "varchar", nullable: true })
|
|
3154
3220
|
], Timesheet.prototype, "workedHours", 2);
|
|
3155
3221
|
__decorateClass([
|
|
3156
|
-
|
|
3222
|
+
Column23({ name: "task_id", type: "integer", nullable: true })
|
|
3157
3223
|
], Timesheet.prototype, "taskId", 2);
|
|
3158
3224
|
__decorateClass([
|
|
3159
|
-
|
|
3225
|
+
Column23({ name: "task_name", type: "varchar", nullable: true })
|
|
3160
3226
|
], Timesheet.prototype, "taskName", 2);
|
|
3161
3227
|
__decorateClass([
|
|
3162
|
-
|
|
3228
|
+
Column23({ name: "description", type: "varchar", nullable: true })
|
|
3163
3229
|
], Timesheet.prototype, "description", 2);
|
|
3164
3230
|
__decorateClass([
|
|
3165
|
-
|
|
3231
|
+
Column23({ name: "week_start_date", type: "date", nullable: true })
|
|
3166
3232
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
3167
3233
|
__decorateClass([
|
|
3168
|
-
|
|
3234
|
+
Column23({ name: "week_end_date", type: "date", nullable: true })
|
|
3169
3235
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
3170
3236
|
__decorateClass([
|
|
3171
|
-
|
|
3237
|
+
Column23({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
3172
3238
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
3173
3239
|
__decorateClass([
|
|
3174
|
-
|
|
3240
|
+
Column23({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
3175
3241
|
], Timesheet.prototype, "submittedAt", 2);
|
|
3176
3242
|
__decorateClass([
|
|
3177
|
-
|
|
3243
|
+
Column23({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
3178
3244
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
3179
3245
|
__decorateClass([
|
|
3180
|
-
|
|
3246
|
+
Column23({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
3181
3247
|
], Timesheet.prototype, "approvedAt", 2);
|
|
3182
3248
|
__decorateClass([
|
|
3183
|
-
|
|
3249
|
+
Column23({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
3184
3250
|
], Timesheet.prototype, "status", 2);
|
|
3185
3251
|
__decorateClass([
|
|
3186
|
-
|
|
3252
|
+
Column23({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
3187
3253
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
3188
3254
|
Timesheet = __decorateClass([
|
|
3189
|
-
|
|
3255
|
+
Entity22("timesheets")
|
|
3190
3256
|
], Timesheet);
|
|
3191
3257
|
|
|
3192
3258
|
// src/entities/timesheet-line.entity.ts
|
|
3193
|
-
import { Entity as
|
|
3259
|
+
import { Entity as Entity25, Column as Column26, Index as Index19, JoinColumn as JoinColumn24, OneToMany as OneToMany9, ManyToOne as ManyToOne24 } from "typeorm";
|
|
3194
3260
|
|
|
3195
3261
|
// src/entities/timesheet-logs.entity.ts
|
|
3196
|
-
import { Entity as
|
|
3262
|
+
import { Entity as Entity23, Column as Column24, Index as Index17, ManyToOne as ManyToOne22, JoinColumn as JoinColumn22 } from "typeorm";
|
|
3197
3263
|
var TimesheetLogs = class extends BaseEntity {
|
|
3198
3264
|
};
|
|
3199
3265
|
__decorateClass([
|
|
3200
|
-
|
|
3201
|
-
|
|
3266
|
+
Column24({ name: "timesheet_line_id", type: "integer", nullable: false }),
|
|
3267
|
+
Index17()
|
|
3202
3268
|
], TimesheetLogs.prototype, "timesheetLineId", 2);
|
|
3203
3269
|
__decorateClass([
|
|
3204
|
-
|
|
3205
|
-
|
|
3270
|
+
ManyToOne22(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLogs),
|
|
3271
|
+
JoinColumn22({ name: "timesheet_line_id" })
|
|
3206
3272
|
], TimesheetLogs.prototype, "timesheetLine", 2);
|
|
3207
3273
|
__decorateClass([
|
|
3208
|
-
|
|
3274
|
+
Column24({
|
|
3209
3275
|
name: "start_date",
|
|
3210
3276
|
type: "date",
|
|
3211
3277
|
nullable: true
|
|
3212
3278
|
})
|
|
3213
3279
|
], TimesheetLogs.prototype, "startDate", 2);
|
|
3214
3280
|
__decorateClass([
|
|
3215
|
-
|
|
3281
|
+
Column24({
|
|
3216
3282
|
name: "end_date",
|
|
3217
3283
|
type: "date",
|
|
3218
3284
|
nullable: true
|
|
3219
3285
|
})
|
|
3220
3286
|
], TimesheetLogs.prototype, "endDate", 2);
|
|
3221
3287
|
__decorateClass([
|
|
3222
|
-
|
|
3288
|
+
Column24({ name: "start_time", type: "varchar", nullable: true })
|
|
3223
3289
|
], TimesheetLogs.prototype, "startTime", 2);
|
|
3224
3290
|
__decorateClass([
|
|
3225
|
-
|
|
3291
|
+
Column24({ name: "end_time", type: "varchar", nullable: true })
|
|
3226
3292
|
], TimesheetLogs.prototype, "endTime", 2);
|
|
3227
3293
|
__decorateClass([
|
|
3228
|
-
|
|
3294
|
+
Column24({ name: "worked_hours", type: "varchar", nullable: true })
|
|
3229
3295
|
], TimesheetLogs.prototype, "workedHours", 2);
|
|
3230
3296
|
__decorateClass([
|
|
3231
|
-
|
|
3297
|
+
Column24({ name: "task_id", type: "integer", nullable: true })
|
|
3232
3298
|
], TimesheetLogs.prototype, "taskId", 2);
|
|
3233
3299
|
__decorateClass([
|
|
3234
|
-
|
|
3300
|
+
Column24({ name: "project_name", type: "varchar", nullable: true })
|
|
3235
3301
|
], TimesheetLogs.prototype, "projectName", 2);
|
|
3236
3302
|
__decorateClass([
|
|
3237
|
-
|
|
3303
|
+
Column24({ name: "deliverable", type: "varchar", nullable: true })
|
|
3238
3304
|
], TimesheetLogs.prototype, "deliverable", 2);
|
|
3239
3305
|
__decorateClass([
|
|
3240
|
-
|
|
3306
|
+
Column24({ name: "task_name", type: "varchar", nullable: true })
|
|
3241
3307
|
], TimesheetLogs.prototype, "taskName", 2);
|
|
3242
3308
|
__decorateClass([
|
|
3243
|
-
|
|
3309
|
+
Column24({ name: "description", type: "varchar", nullable: true })
|
|
3244
3310
|
], TimesheetLogs.prototype, "description", 2);
|
|
3245
3311
|
TimesheetLogs = __decorateClass([
|
|
3246
|
-
|
|
3312
|
+
Entity23("timesheet_logs")
|
|
3247
3313
|
], TimesheetLogs);
|
|
3248
3314
|
|
|
3249
3315
|
// src/entities/timesheet-line-history.entity.ts
|
|
3250
|
-
import { Entity as
|
|
3316
|
+
import { Entity as Entity24, Column as Column25, Index as Index18, ManyToOne as ManyToOne23, JoinColumn as JoinColumn23 } from "typeorm";
|
|
3251
3317
|
var TimesheetLineHistoryStatusEnum = /* @__PURE__ */ ((TimesheetLineHistoryStatusEnum2) => {
|
|
3252
3318
|
TimesheetLineHistoryStatusEnum2["DRAFT"] = "DRAFT";
|
|
3253
3319
|
TimesheetLineHistoryStatusEnum2["SEND"] = "SEND";
|
|
@@ -3271,19 +3337,19 @@ var TimesheetSubmissionActionEnum = /* @__PURE__ */ ((TimesheetSubmissionActionE
|
|
|
3271
3337
|
var TimesheetLineHistory = class extends BaseEntity {
|
|
3272
3338
|
};
|
|
3273
3339
|
__decorateClass([
|
|
3274
|
-
|
|
3275
|
-
|
|
3340
|
+
Column25({ name: "timesheet_line_id", type: "integer", nullable: false }),
|
|
3341
|
+
Index18()
|
|
3276
3342
|
], TimesheetLineHistory.prototype, "timesheetLineId", 2);
|
|
3277
3343
|
__decorateClass([
|
|
3278
|
-
|
|
3279
|
-
|
|
3344
|
+
ManyToOne23(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLineHistory),
|
|
3345
|
+
JoinColumn23({ name: "timesheet_line_id" })
|
|
3280
3346
|
], TimesheetLineHistory.prototype, "timesheetLine", 2);
|
|
3281
3347
|
__decorateClass([
|
|
3282
|
-
|
|
3283
|
-
|
|
3348
|
+
Column25({ name: "changed_by", type: "integer", nullable: true }),
|
|
3349
|
+
Index18()
|
|
3284
3350
|
], TimesheetLineHistory.prototype, "changedBy", 2);
|
|
3285
3351
|
__decorateClass([
|
|
3286
|
-
|
|
3352
|
+
Column25({
|
|
3287
3353
|
name: "previous_status",
|
|
3288
3354
|
type: "enum",
|
|
3289
3355
|
enum: TimesheetLineHistoryStatusEnum,
|
|
@@ -3291,7 +3357,7 @@ __decorateClass([
|
|
|
3291
3357
|
})
|
|
3292
3358
|
], TimesheetLineHistory.prototype, "previousStatus", 2);
|
|
3293
3359
|
__decorateClass([
|
|
3294
|
-
|
|
3360
|
+
Column25({
|
|
3295
3361
|
name: "new_status",
|
|
3296
3362
|
type: "enum",
|
|
3297
3363
|
enum: TimesheetLineHistoryStatusEnum,
|
|
@@ -3299,7 +3365,7 @@ __decorateClass([
|
|
|
3299
3365
|
})
|
|
3300
3366
|
], TimesheetLineHistory.prototype, "newStatus", 2);
|
|
3301
3367
|
__decorateClass([
|
|
3302
|
-
|
|
3368
|
+
Column25({
|
|
3303
3369
|
name: "action_type",
|
|
3304
3370
|
type: "enum",
|
|
3305
3371
|
enum: TimesheetSubmissionActionEnum,
|
|
@@ -3307,10 +3373,10 @@ __decorateClass([
|
|
|
3307
3373
|
})
|
|
3308
3374
|
], TimesheetLineHistory.prototype, "actionType", 2);
|
|
3309
3375
|
__decorateClass([
|
|
3310
|
-
|
|
3376
|
+
Column25({ name: "remarks", type: "varchar", nullable: true })
|
|
3311
3377
|
], TimesheetLineHistory.prototype, "remarks", 2);
|
|
3312
3378
|
TimesheetLineHistory = __decorateClass([
|
|
3313
|
-
|
|
3379
|
+
Entity24("timesheet_line_histories")
|
|
3314
3380
|
], TimesheetLineHistory);
|
|
3315
3381
|
|
|
3316
3382
|
// src/entities/timesheet-line.entity.ts
|
|
@@ -3328,28 +3394,28 @@ var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
|
|
|
3328
3394
|
var TimesheetLine = class extends BaseEntity {
|
|
3329
3395
|
};
|
|
3330
3396
|
__decorateClass([
|
|
3331
|
-
|
|
3332
|
-
|
|
3397
|
+
Column26({ name: "job_id", type: "integer", nullable: true }),
|
|
3398
|
+
Index19()
|
|
3333
3399
|
], TimesheetLine.prototype, "jobId", 2);
|
|
3334
3400
|
__decorateClass([
|
|
3335
|
-
|
|
3336
|
-
|
|
3401
|
+
ManyToOne24(() => Job, (job) => job.timesheetLine),
|
|
3402
|
+
JoinColumn24({ name: "job_id" })
|
|
3337
3403
|
], TimesheetLine.prototype, "job", 2);
|
|
3338
3404
|
__decorateClass([
|
|
3339
|
-
|
|
3340
|
-
|
|
3405
|
+
Column26({ name: "client_id", type: "integer", nullable: true }),
|
|
3406
|
+
Index19()
|
|
3341
3407
|
], TimesheetLine.prototype, "clientId", 2);
|
|
3342
3408
|
__decorateClass([
|
|
3343
|
-
|
|
3344
|
-
|
|
3409
|
+
ManyToOne24(() => User, (user) => user.clientTimesheetLine),
|
|
3410
|
+
JoinColumn24({ name: "client_id" })
|
|
3345
3411
|
], TimesheetLine.prototype, "client", 2);
|
|
3346
3412
|
__decorateClass([
|
|
3347
|
-
|
|
3348
|
-
|
|
3413
|
+
Column26({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3414
|
+
Index19()
|
|
3349
3415
|
], TimesheetLine.prototype, "freelancerId", 2);
|
|
3350
3416
|
__decorateClass([
|
|
3351
|
-
|
|
3352
|
-
|
|
3417
|
+
ManyToOne24(() => User, (user) => user.freelancerTimesheetLine),
|
|
3418
|
+
JoinColumn24({ name: "freelancer_id" })
|
|
3353
3419
|
], TimesheetLine.prototype, "freelancer", 2);
|
|
3354
3420
|
__decorateClass([
|
|
3355
3421
|
OneToMany9(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
|
|
@@ -3358,89 +3424,38 @@ __decorateClass([
|
|
|
3358
3424
|
OneToMany9(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
|
|
3359
3425
|
], TimesheetLine.prototype, "timesheetLineHistory", 2);
|
|
3360
3426
|
__decorateClass([
|
|
3361
|
-
|
|
3427
|
+
Column26({ name: "unique_id", type: "varchar", nullable: true })
|
|
3362
3428
|
], TimesheetLine.prototype, "uniqueId", 2);
|
|
3363
3429
|
__decorateClass([
|
|
3364
|
-
|
|
3430
|
+
Column26({
|
|
3365
3431
|
name: "week_start_date",
|
|
3366
3432
|
type: "date",
|
|
3367
3433
|
nullable: true
|
|
3368
3434
|
})
|
|
3369
3435
|
], TimesheetLine.prototype, "weekStartDate", 2);
|
|
3370
3436
|
__decorateClass([
|
|
3371
|
-
|
|
3437
|
+
Column26({
|
|
3372
3438
|
name: "week_end_date",
|
|
3373
3439
|
type: "date",
|
|
3374
3440
|
nullable: true
|
|
3375
3441
|
})
|
|
3376
3442
|
], TimesheetLine.prototype, "weekEndDate", 2);
|
|
3377
3443
|
__decorateClass([
|
|
3378
|
-
|
|
3444
|
+
Column26({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
|
|
3379
3445
|
], TimesheetLine.prototype, "status", 2);
|
|
3380
3446
|
__decorateClass([
|
|
3381
|
-
|
|
3447
|
+
Column26({ name: "weekly_hours_sum", type: "varchar", nullable: true })
|
|
3382
3448
|
], TimesheetLine.prototype, "weeklyHoursSum", 2);
|
|
3383
3449
|
__decorateClass([
|
|
3384
|
-
|
|
3450
|
+
Column26({ name: "is_invoice_genrated", type: "boolean", default: false })
|
|
3385
3451
|
], TimesheetLine.prototype, "isInvoiceGenrated", 2);
|
|
3386
3452
|
__decorateClass([
|
|
3387
|
-
|
|
3453
|
+
Column26({ name: "is_invoice_approved", type: "boolean", default: false })
|
|
3388
3454
|
], TimesheetLine.prototype, "isInvoiceApproved", 2);
|
|
3389
3455
|
TimesheetLine = __decorateClass([
|
|
3390
|
-
|
|
3456
|
+
Entity25("timesheet_lines")
|
|
3391
3457
|
], TimesheetLine);
|
|
3392
3458
|
|
|
3393
|
-
// src/entities/client-candidate-preference.entity.ts
|
|
3394
|
-
import {
|
|
3395
|
-
Entity as Entity25,
|
|
3396
|
-
Column as Column26,
|
|
3397
|
-
Index as Index19,
|
|
3398
|
-
ManyToOne as ManyToOne24,
|
|
3399
|
-
JoinColumn as JoinColumn24
|
|
3400
|
-
} from "typeorm";
|
|
3401
|
-
var ClientCandidatePreferenceEnum = /* @__PURE__ */ ((ClientCandidatePreferenceEnum2) => {
|
|
3402
|
-
ClientCandidatePreferenceEnum2["NOT_SUITABLE"] = "NOT_SUITABLE";
|
|
3403
|
-
ClientCandidatePreferenceEnum2["SHORTLISTED"] = "SHORTLISTED";
|
|
3404
|
-
return ClientCandidatePreferenceEnum2;
|
|
3405
|
-
})(ClientCandidatePreferenceEnum || {});
|
|
3406
|
-
var ClientCandidatePreference = class extends BaseEntity {
|
|
3407
|
-
};
|
|
3408
|
-
__decorateClass([
|
|
3409
|
-
Column26({ name: "client_id", type: "integer" }),
|
|
3410
|
-
Index19()
|
|
3411
|
-
], ClientCandidatePreference.prototype, "clientId", 2);
|
|
3412
|
-
__decorateClass([
|
|
3413
|
-
ManyToOne24(() => User, (user) => user.clientPreferencesGiven),
|
|
3414
|
-
JoinColumn24({ name: "client_id" })
|
|
3415
|
-
], ClientCandidatePreference.prototype, "client", 2);
|
|
3416
|
-
__decorateClass([
|
|
3417
|
-
Column26({ name: "candidate_id", type: "integer" }),
|
|
3418
|
-
Index19()
|
|
3419
|
-
], ClientCandidatePreference.prototype, "candidateId", 2);
|
|
3420
|
-
__decorateClass([
|
|
3421
|
-
ManyToOne24(() => User, (user) => user.clientPreferencesReceived),
|
|
3422
|
-
JoinColumn24({ name: "candidate_id" })
|
|
3423
|
-
], ClientCandidatePreference.prototype, "candidate", 2);
|
|
3424
|
-
__decorateClass([
|
|
3425
|
-
Column26({ name: "job_id", type: "integer", nullable: true }),
|
|
3426
|
-
Index19()
|
|
3427
|
-
], ClientCandidatePreference.prototype, "jobId", 2);
|
|
3428
|
-
__decorateClass([
|
|
3429
|
-
ManyToOne24(() => Job, (job) => job.clientCandidatePreferences, { nullable: true }),
|
|
3430
|
-
JoinColumn24({ name: "job_id" })
|
|
3431
|
-
], ClientCandidatePreference.prototype, "job", 2);
|
|
3432
|
-
__decorateClass([
|
|
3433
|
-
Column26({
|
|
3434
|
-
name: "preference",
|
|
3435
|
-
type: "enum",
|
|
3436
|
-
enum: ClientCandidatePreferenceEnum
|
|
3437
|
-
}),
|
|
3438
|
-
Index19()
|
|
3439
|
-
], ClientCandidatePreference.prototype, "preference", 2);
|
|
3440
|
-
ClientCandidatePreference = __decorateClass([
|
|
3441
|
-
Entity25("client_candidate_preferences")
|
|
3442
|
-
], ClientCandidatePreference);
|
|
3443
|
-
|
|
3444
3459
|
// src/entities/invoice.entity.ts
|
|
3445
3460
|
import { Entity as Entity26, Column as Column27, Index as Index20, JoinColumn as JoinColumn25, ManyToOne as ManyToOne25 } from "typeorm";
|
|
3446
3461
|
var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
|
|
@@ -4706,7 +4721,7 @@ FreelancerResume = __decorateClass([
|
|
|
4706
4721
|
], FreelancerResume);
|
|
4707
4722
|
|
|
4708
4723
|
// src/entities/stripe-wallet.entity.ts
|
|
4709
|
-
import { Entity as Entity53, Column as Column54, Index as Index46, JoinColumn as JoinColumn48, OneToOne as
|
|
4724
|
+
import { Entity as Entity53, Column as Column54, Index as Index46, JoinColumn as JoinColumn48, OneToOne as OneToOne6, OneToMany as OneToMany18 } from "typeorm";
|
|
4710
4725
|
|
|
4711
4726
|
// src/entities/stripe-wallet-transaction.entity.ts
|
|
4712
4727
|
import { Entity as Entity52, Column as Column53, Index as Index45, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
|
|
@@ -4806,7 +4821,7 @@ __decorateClass([
|
|
|
4806
4821
|
Index46()
|
|
4807
4822
|
], StripeWallet.prototype, "userId", 2);
|
|
4808
4823
|
__decorateClass([
|
|
4809
|
-
|
|
4824
|
+
OneToOne6(() => User, (user) => user.stripeWallet),
|
|
4810
4825
|
JoinColumn48({ name: "user_id" })
|
|
4811
4826
|
], StripeWallet.prototype, "user", 2);
|
|
4812
4827
|
__decorateClass([
|
|
@@ -5013,7 +5028,7 @@ __decorateClass([
|
|
|
5013
5028
|
OneToMany19(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
5014
5029
|
], User.prototype, "senseloafLogs", 2);
|
|
5015
5030
|
__decorateClass([
|
|
5016
|
-
|
|
5031
|
+
OneToOne7(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
5017
5032
|
], User.prototype, "companyProfile", 2);
|
|
5018
5033
|
__decorateClass([
|
|
5019
5034
|
OneToMany19(() => CompanySkill, (companySkill) => companySkill.user)
|
|
@@ -5031,13 +5046,13 @@ __decorateClass([
|
|
|
5031
5046
|
OneToMany19(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
5032
5047
|
], User.prototype, "clientF2FInterviews", 2);
|
|
5033
5048
|
__decorateClass([
|
|
5034
|
-
|
|
5049
|
+
OneToOne7(
|
|
5035
5050
|
() => FreelancerProfile,
|
|
5036
5051
|
(freelancerProfile) => freelancerProfile.user
|
|
5037
5052
|
)
|
|
5038
5053
|
], User.prototype, "freelancerProfile", 2);
|
|
5039
5054
|
__decorateClass([
|
|
5040
|
-
|
|
5055
|
+
OneToOne7(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
5041
5056
|
], User.prototype, "freelancerResume", 2);
|
|
5042
5057
|
__decorateClass([
|
|
5043
5058
|
OneToMany19(
|
|
@@ -5088,7 +5103,7 @@ __decorateClass([
|
|
|
5088
5103
|
)
|
|
5089
5104
|
], User.prototype, "freelancerFramework", 2);
|
|
5090
5105
|
__decorateClass([
|
|
5091
|
-
|
|
5106
|
+
OneToOne7(
|
|
5092
5107
|
() => FreelancerDeclaration,
|
|
5093
5108
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
5094
5109
|
)
|
|
@@ -5139,10 +5154,10 @@ __decorateClass([
|
|
|
5139
5154
|
OneToMany19(() => Contract, (contract) => contract.freelancer)
|
|
5140
5155
|
], User.prototype, "freelancerContracts", 2);
|
|
5141
5156
|
__decorateClass([
|
|
5142
|
-
|
|
5157
|
+
OneToOne7(() => StripeWallet, (stripeWallet) => stripeWallet.user)
|
|
5143
5158
|
], User.prototype, "stripeWallet", 2);
|
|
5144
5159
|
__decorateClass([
|
|
5145
|
-
|
|
5160
|
+
OneToOne7(() => Signature, (signature) => signature.user)
|
|
5146
5161
|
], User.prototype, "signatures", 2);
|
|
5147
5162
|
__decorateClass([
|
|
5148
5163
|
OneToMany19(() => Timesheet, (timesheet) => timesheet.client)
|