@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/index.js CHANGED
@@ -2970,36 +2970,91 @@ Interview = __decorateClass([
2970
2970
  ], Interview);
2971
2971
 
2972
2972
  // src/entities/job-recommendation.entity.ts
2973
+ var import_typeorm21 = require("typeorm");
2974
+
2975
+ // src/entities/client-candidate-preference.entity.ts
2973
2976
  var import_typeorm20 = require("typeorm");
2977
+ var ClientCandidatePreferenceEnum = /* @__PURE__ */ ((ClientCandidatePreferenceEnum2) => {
2978
+ ClientCandidatePreferenceEnum2["NOT_SUITABLE"] = "NOT_SUITABLE";
2979
+ ClientCandidatePreferenceEnum2["SHORTLISTED"] = "SHORTLISTED";
2980
+ return ClientCandidatePreferenceEnum2;
2981
+ })(ClientCandidatePreferenceEnum || {});
2982
+ var ClientCandidatePreference = class extends BaseEntity {
2983
+ };
2984
+ __decorateClass([
2985
+ (0, import_typeorm20.Column)({ name: "client_id", type: "integer" }),
2986
+ (0, import_typeorm20.Index)()
2987
+ ], ClientCandidatePreference.prototype, "clientId", 2);
2988
+ __decorateClass([
2989
+ (0, import_typeorm20.ManyToOne)(() => User, (user) => user.clientPreferencesGiven),
2990
+ (0, import_typeorm20.JoinColumn)({ name: "client_id" })
2991
+ ], ClientCandidatePreference.prototype, "client", 2);
2992
+ __decorateClass([
2993
+ (0, import_typeorm20.Column)({ name: "candidate_id", type: "integer" }),
2994
+ (0, import_typeorm20.Index)()
2995
+ ], ClientCandidatePreference.prototype, "candidateId", 2);
2996
+ __decorateClass([
2997
+ (0, import_typeorm20.ManyToOne)(() => User, (user) => user.clientPreferencesReceived),
2998
+ (0, import_typeorm20.JoinColumn)({ name: "candidate_id" })
2999
+ ], ClientCandidatePreference.prototype, "candidate", 2);
3000
+ __decorateClass([
3001
+ (0, import_typeorm20.Column)({ name: "job_id", type: "integer", nullable: true }),
3002
+ (0, import_typeorm20.Index)()
3003
+ ], ClientCandidatePreference.prototype, "jobId", 2);
3004
+ __decorateClass([
3005
+ (0, import_typeorm20.ManyToOne)(() => Job, (job) => job.clientCandidatePreferences, { nullable: true }),
3006
+ (0, import_typeorm20.JoinColumn)({ name: "job_id" })
3007
+ ], ClientCandidatePreference.prototype, "job", 2);
3008
+ __decorateClass([
3009
+ (0, import_typeorm20.Column)({ name: "recommendation_id", type: "integer", nullable: true }),
3010
+ (0, import_typeorm20.Index)()
3011
+ ], ClientCandidatePreference.prototype, "recommendationId", 2);
3012
+ __decorateClass([
3013
+ (0, import_typeorm20.OneToOne)(() => JobRecommendation, (jobRecommendation) => jobRecommendation.preference, { nullable: true }),
3014
+ (0, import_typeorm20.JoinColumn)({ name: "recommendation_id" })
3015
+ ], ClientCandidatePreference.prototype, "recommendation", 2);
3016
+ __decorateClass([
3017
+ (0, import_typeorm20.Column)({
3018
+ name: "preference",
3019
+ type: "enum",
3020
+ enum: ClientCandidatePreferenceEnum
3021
+ }),
3022
+ (0, import_typeorm20.Index)()
3023
+ ], ClientCandidatePreference.prototype, "preference", 2);
3024
+ ClientCandidatePreference = __decorateClass([
3025
+ (0, import_typeorm20.Entity)("client_candidate_preferences")
3026
+ ], ClientCandidatePreference);
3027
+
3028
+ // src/entities/job-recommendation.entity.ts
2974
3029
  var JobRecommendation = class {
2975
3030
  };
2976
3031
  __decorateClass([
2977
- (0, import_typeorm20.PrimaryGeneratedColumn)("increment", { type: "integer" })
3032
+ (0, import_typeorm21.PrimaryGeneratedColumn)("increment", { type: "integer" })
2978
3033
  ], JobRecommendation.prototype, "id", 2);
2979
3034
  __decorateClass([
2980
- (0, import_typeorm20.Column)({ name: "job_id", type: "integer" }),
2981
- (0, import_typeorm20.Index)()
3035
+ (0, import_typeorm21.Column)({ name: "job_id", type: "integer" }),
3036
+ (0, import_typeorm21.Index)()
2982
3037
  ], JobRecommendation.prototype, "jobId", 2);
2983
3038
  __decorateClass([
2984
- (0, import_typeorm20.ManyToOne)(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
2985
- (0, import_typeorm20.JoinColumn)({ name: "job_id" })
3039
+ (0, import_typeorm21.ManyToOne)(() => Job, (job) => job.recommendations, { onDelete: "CASCADE" }),
3040
+ (0, import_typeorm21.JoinColumn)({ name: "job_id" })
2986
3041
  ], JobRecommendation.prototype, "job", 2);
2987
3042
  __decorateClass([
2988
- (0, import_typeorm20.Column)({ name: "freelancer_id", type: "integer" }),
2989
- (0, import_typeorm20.Index)()
3043
+ (0, import_typeorm21.Column)({ name: "freelancer_id", type: "integer" }),
3044
+ (0, import_typeorm21.Index)()
2990
3045
  ], JobRecommendation.prototype, "freelancerId", 2);
2991
3046
  __decorateClass([
2992
- (0, import_typeorm20.Column)({ name: "client_id", type: "integer" }),
2993
- (0, import_typeorm20.Index)()
3047
+ (0, import_typeorm21.Column)({ name: "client_id", type: "integer" }),
3048
+ (0, import_typeorm21.Index)()
2994
3049
  ], JobRecommendation.prototype, "clientId", 2);
2995
3050
  __decorateClass([
2996
- (0, import_typeorm20.Column)({ name: "match_score", type: "numeric", precision: 5, scale: 2 })
3051
+ (0, import_typeorm21.Column)({ name: "match_score", type: "numeric", precision: 5, scale: 2 })
2997
3052
  ], JobRecommendation.prototype, "matchScore", 2);
2998
3053
  __decorateClass([
2999
- (0, import_typeorm20.Column)({ name: "match_score_summary", type: "jsonb", nullable: true })
3054
+ (0, import_typeorm21.Column)({ name: "match_score_summary", type: "jsonb", nullable: true })
3000
3055
  ], JobRecommendation.prototype, "matchScoreSummary", 2);
3001
3056
  __decorateClass([
3002
- (0, import_typeorm20.Column)({
3057
+ (0, import_typeorm21.Column)({
3003
3058
  name: "matching_skills",
3004
3059
  type: "text",
3005
3060
  array: true,
@@ -3007,10 +3062,10 @@ __decorateClass([
3007
3062
  })
3008
3063
  ], JobRecommendation.prototype, "matchingSkills", 2);
3009
3064
  __decorateClass([
3010
- (0, import_typeorm20.Column)({ name: "matching_skills_count", type: "int", nullable: true })
3065
+ (0, import_typeorm21.Column)({ name: "matching_skills_count", type: "int", nullable: true })
3011
3066
  ], JobRecommendation.prototype, "matchingSkillsCount", 2);
3012
3067
  __decorateClass([
3013
- (0, import_typeorm20.Column)({
3068
+ (0, import_typeorm21.Column)({
3014
3069
  name: "required_skills",
3015
3070
  type: "text",
3016
3071
  array: true,
@@ -3018,21 +3073,24 @@ __decorateClass([
3018
3073
  })
3019
3074
  ], JobRecommendation.prototype, "requiredSkills", 2);
3020
3075
  __decorateClass([
3021
- (0, import_typeorm20.Column)({ name: "required_skills_count", type: "int", nullable: true })
3076
+ (0, import_typeorm21.Column)({ name: "required_skills_count", type: "int", nullable: true })
3022
3077
  ], JobRecommendation.prototype, "requiredSkillsCount", 2);
3023
3078
  __decorateClass([
3024
- (0, import_typeorm20.Column)({
3079
+ (0, import_typeorm21.Column)({
3025
3080
  name: "last_calculated_at",
3026
3081
  type: "timestamp with time zone",
3027
3082
  nullable: true
3028
3083
  })
3029
3084
  ], JobRecommendation.prototype, "lastCalculatedAt", 2);
3085
+ __decorateClass([
3086
+ (0, import_typeorm21.OneToOne)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.recommendation)
3087
+ ], JobRecommendation.prototype, "preference", 2);
3030
3088
  JobRecommendation = __decorateClass([
3031
- (0, import_typeorm20.Entity)("job_recommendations")
3089
+ (0, import_typeorm21.Entity)("job_recommendations")
3032
3090
  ], JobRecommendation);
3033
3091
 
3034
3092
  // src/entities/contract.entity.ts
3035
- var import_typeorm21 = require("typeorm");
3093
+ var import_typeorm22 = require("typeorm");
3036
3094
  var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
3037
3095
  ContractStatusEnum2["GENERATED"] = "GENERATED";
3038
3096
  ContractStatusEnum2["DRAFTED"] = "DRAFTED";
@@ -3055,37 +3113,37 @@ var Contract = class extends BaseEntity {
3055
3113
  // stores the positions JSON
3056
3114
  };
3057
3115
  __decorateClass([
3058
- (0, import_typeorm21.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3116
+ (0, import_typeorm22.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
3059
3117
  ], Contract.prototype, "contractUniqueId", 2);
3060
3118
  __decorateClass([
3061
- (0, import_typeorm21.Column)({ name: "job_id", type: "integer", nullable: true }),
3062
- (0, import_typeorm21.Index)()
3119
+ (0, import_typeorm22.Column)({ name: "job_id", type: "integer", nullable: true }),
3120
+ (0, import_typeorm22.Index)()
3063
3121
  ], Contract.prototype, "jobId", 2);
3064
3122
  __decorateClass([
3065
- (0, import_typeorm21.ManyToOne)(() => Job, (job) => job.contracts),
3066
- (0, import_typeorm21.JoinColumn)({ name: "job_id" })
3123
+ (0, import_typeorm22.ManyToOne)(() => Job, (job) => job.contracts),
3124
+ (0, import_typeorm22.JoinColumn)({ name: "job_id" })
3067
3125
  ], Contract.prototype, "job", 2);
3068
3126
  __decorateClass([
3069
- (0, import_typeorm21.Column)({ name: "client_id", type: "integer", nullable: true }),
3070
- (0, import_typeorm21.Index)()
3127
+ (0, import_typeorm22.Column)({ name: "client_id", type: "integer", nullable: true }),
3128
+ (0, import_typeorm22.Index)()
3071
3129
  ], Contract.prototype, "clientId", 2);
3072
3130
  __decorateClass([
3073
- (0, import_typeorm21.ManyToOne)(() => User, (user) => user.clientContracts),
3074
- (0, import_typeorm21.JoinColumn)({ name: "client_id" })
3131
+ (0, import_typeorm22.ManyToOne)(() => User, (user) => user.clientContracts),
3132
+ (0, import_typeorm22.JoinColumn)({ name: "client_id" })
3075
3133
  ], Contract.prototype, "client", 2);
3076
3134
  __decorateClass([
3077
- (0, import_typeorm21.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3078
- (0, import_typeorm21.Index)()
3135
+ (0, import_typeorm22.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3136
+ (0, import_typeorm22.Index)()
3079
3137
  ], Contract.prototype, "freelancerId", 2);
3080
3138
  __decorateClass([
3081
- (0, import_typeorm21.ManyToOne)(() => User, (user) => user.freelancerContracts),
3082
- (0, import_typeorm21.JoinColumn)({ name: "freelancer_id" })
3139
+ (0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerContracts),
3140
+ (0, import_typeorm22.JoinColumn)({ name: "freelancer_id" })
3083
3141
  ], Contract.prototype, "freelancer", 2);
3084
3142
  __decorateClass([
3085
- (0, import_typeorm21.Column)({ name: "duration", type: "integer", nullable: true })
3143
+ (0, import_typeorm22.Column)({ name: "duration", type: "integer", nullable: true })
3086
3144
  ], Contract.prototype, "duration", 2);
3087
3145
  __decorateClass([
3088
- (0, import_typeorm21.Column)({
3146
+ (0, import_typeorm22.Column)({
3089
3147
  name: "status",
3090
3148
  type: "enum",
3091
3149
  enum: ContractStatusEnum,
@@ -3093,7 +3151,7 @@ __decorateClass([
3093
3151
  })
3094
3152
  ], Contract.prototype, "status", 2);
3095
3153
  __decorateClass([
3096
- (0, import_typeorm21.Column)({
3154
+ (0, import_typeorm22.Column)({
3097
3155
  name: "type",
3098
3156
  type: "enum",
3099
3157
  enum: ContractTypeEnum,
@@ -3101,74 +3159,74 @@ __decorateClass([
3101
3159
  })
3102
3160
  ], Contract.prototype, "type", 2);
3103
3161
  __decorateClass([
3104
- (0, import_typeorm21.Column)({
3162
+ (0, import_typeorm22.Column)({
3105
3163
  name: "start_date",
3106
3164
  type: "timestamp with time zone",
3107
3165
  nullable: true
3108
3166
  })
3109
3167
  ], Contract.prototype, "startDate", 2);
3110
3168
  __decorateClass([
3111
- (0, import_typeorm21.Column)({
3169
+ (0, import_typeorm22.Column)({
3112
3170
  name: "end_date",
3113
3171
  type: "timestamp with time zone",
3114
3172
  nullable: true
3115
3173
  })
3116
3174
  ], Contract.prototype, "endDate", 2);
3117
3175
  __decorateClass([
3118
- (0, import_typeorm21.Column)({ name: "original_document_url", type: "varchar", nullable: true })
3176
+ (0, import_typeorm22.Column)({ name: "original_document_url", type: "varchar", nullable: true })
3119
3177
  ], Contract.prototype, "originalDocumentUrl", 2);
3120
3178
  __decorateClass([
3121
- (0, import_typeorm21.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
3179
+ (0, import_typeorm22.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
3122
3180
  ], Contract.prototype, "contractDocumentUrl", 2);
3123
3181
  __decorateClass([
3124
- (0, import_typeorm21.Column)({
3182
+ (0, import_typeorm22.Column)({
3125
3183
  name: "client_signed_at",
3126
3184
  type: "timestamp with time zone",
3127
3185
  nullable: true
3128
3186
  })
3129
3187
  ], Contract.prototype, "clientSignedAt", 2);
3130
3188
  __decorateClass([
3131
- (0, import_typeorm21.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
3189
+ (0, import_typeorm22.Column)({ name: "freelancer_viewed", type: "boolean", default: false })
3132
3190
  ], Contract.prototype, "freelancerViewed", 2);
3133
3191
  __decorateClass([
3134
- (0, import_typeorm21.Column)({
3192
+ (0, import_typeorm22.Column)({
3135
3193
  name: "freelancer_viewed_at",
3136
3194
  type: "timestamp with time zone",
3137
3195
  nullable: true
3138
3196
  })
3139
3197
  ], Contract.prototype, "freelancerViewedAt", 2);
3140
3198
  __decorateClass([
3141
- (0, import_typeorm21.Column)({
3199
+ (0, import_typeorm22.Column)({
3142
3200
  name: "freelancer_signed_at",
3143
3201
  type: "timestamp with time zone",
3144
3202
  nullable: true
3145
3203
  })
3146
3204
  ], Contract.prototype, "freelancerSignedAt", 2);
3147
3205
  __decorateClass([
3148
- (0, import_typeorm21.Column)({
3206
+ (0, import_typeorm22.Column)({
3149
3207
  name: "rejectd_at",
3150
3208
  type: "timestamp with time zone",
3151
3209
  nullable: true
3152
3210
  })
3153
3211
  ], Contract.prototype, "rejectedAt", 2);
3154
3212
  __decorateClass([
3155
- (0, import_typeorm21.Column)({ name: "reject_reason", type: "varchar", nullable: true })
3213
+ (0, import_typeorm22.Column)({ name: "reject_reason", type: "varchar", nullable: true })
3156
3214
  ], Contract.prototype, "rejectReason", 2);
3157
3215
  __decorateClass([
3158
- (0, import_typeorm21.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
3216
+ (0, import_typeorm22.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
3159
3217
  ], Contract.prototype, "isWorkContractSent", 2);
3160
3218
  __decorateClass([
3161
- (0, import_typeorm21.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
3219
+ (0, import_typeorm22.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
3162
3220
  ], Contract.prototype, "isEscrowDeposited", 2);
3163
3221
  __decorateClass([
3164
- (0, import_typeorm21.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
3222
+ (0, import_typeorm22.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
3165
3223
  ], Contract.prototype, "signaturePositions", 2);
3166
3224
  Contract = __decorateClass([
3167
- (0, import_typeorm21.Entity)("contracts")
3225
+ (0, import_typeorm22.Entity)("contracts")
3168
3226
  ], Contract);
3169
3227
 
3170
3228
  // src/entities/timesheets.entity.ts
3171
- var import_typeorm22 = require("typeorm");
3229
+ var import_typeorm23 = require("typeorm");
3172
3230
  var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
3173
3231
  TimesheetStatusEnum2["DRAFT"] = "DRAFT";
3174
3232
  TimesheetStatusEnum2["SEND"] = "SEND";
@@ -3181,148 +3239,148 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
3181
3239
  var Timesheet = class extends BaseEntity {
3182
3240
  };
3183
3241
  __decorateClass([
3184
- (0, import_typeorm22.Column)({ name: "job_id", type: "integer", nullable: true }),
3185
- (0, import_typeorm22.Index)()
3242
+ (0, import_typeorm23.Column)({ name: "job_id", type: "integer", nullable: true }),
3243
+ (0, import_typeorm23.Index)()
3186
3244
  ], Timesheet.prototype, "jobId", 2);
3187
3245
  __decorateClass([
3188
- (0, import_typeorm22.ManyToOne)(() => Job, (job) => job.timesheets),
3189
- (0, import_typeorm22.JoinColumn)({ name: "job_id" })
3246
+ (0, import_typeorm23.ManyToOne)(() => Job, (job) => job.timesheets),
3247
+ (0, import_typeorm23.JoinColumn)({ name: "job_id" })
3190
3248
  ], Timesheet.prototype, "job", 2);
3191
3249
  __decorateClass([
3192
- (0, import_typeorm22.Column)({ name: "client_id", type: "integer", nullable: true }),
3193
- (0, import_typeorm22.Index)()
3250
+ (0, import_typeorm23.Column)({ name: "client_id", type: "integer", nullable: true }),
3251
+ (0, import_typeorm23.Index)()
3194
3252
  ], Timesheet.prototype, "clientId", 2);
3195
3253
  __decorateClass([
3196
- (0, import_typeorm22.ManyToOne)(() => User, (user) => user.clientTimesheets),
3197
- (0, import_typeorm22.JoinColumn)({ name: "client_id" })
3254
+ (0, import_typeorm23.ManyToOne)(() => User, (user) => user.clientTimesheets),
3255
+ (0, import_typeorm23.JoinColumn)({ name: "client_id" })
3198
3256
  ], Timesheet.prototype, "client", 2);
3199
3257
  __decorateClass([
3200
- (0, import_typeorm22.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3201
- (0, import_typeorm22.Index)()
3258
+ (0, import_typeorm23.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3259
+ (0, import_typeorm23.Index)()
3202
3260
  ], Timesheet.prototype, "freelancerId", 2);
3203
3261
  __decorateClass([
3204
- (0, import_typeorm22.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
3205
- (0, import_typeorm22.JoinColumn)({ name: "freelancer_id" })
3262
+ (0, import_typeorm23.ManyToOne)(() => User, (user) => user.freelancerTimesheets),
3263
+ (0, import_typeorm23.JoinColumn)({ name: "freelancer_id" })
3206
3264
  ], Timesheet.prototype, "freelancer", 2);
3207
3265
  __decorateClass([
3208
- (0, import_typeorm22.Column)({
3266
+ (0, import_typeorm23.Column)({
3209
3267
  name: "start_date",
3210
3268
  type: "date",
3211
3269
  nullable: true
3212
3270
  })
3213
3271
  ], Timesheet.prototype, "startDate", 2);
3214
3272
  __decorateClass([
3215
- (0, import_typeorm22.Column)({
3273
+ (0, import_typeorm23.Column)({
3216
3274
  name: "end_date",
3217
3275
  type: "date",
3218
3276
  nullable: true
3219
3277
  })
3220
3278
  ], Timesheet.prototype, "endDate", 2);
3221
3279
  __decorateClass([
3222
- (0, import_typeorm22.Column)({ name: "start_time", type: "varchar", nullable: true })
3280
+ (0, import_typeorm23.Column)({ name: "start_time", type: "varchar", nullable: true })
3223
3281
  ], Timesheet.prototype, "startTime", 2);
3224
3282
  __decorateClass([
3225
- (0, import_typeorm22.Column)({ name: "end_time", type: "varchar", nullable: true })
3283
+ (0, import_typeorm23.Column)({ name: "end_time", type: "varchar", nullable: true })
3226
3284
  ], Timesheet.prototype, "endTime", 2);
3227
3285
  __decorateClass([
3228
- (0, import_typeorm22.Column)({ name: "worked_hours", type: "varchar", nullable: true })
3286
+ (0, import_typeorm23.Column)({ name: "worked_hours", type: "varchar", nullable: true })
3229
3287
  ], Timesheet.prototype, "workedHours", 2);
3230
3288
  __decorateClass([
3231
- (0, import_typeorm22.Column)({ name: "task_id", type: "integer", nullable: true })
3289
+ (0, import_typeorm23.Column)({ name: "task_id", type: "integer", nullable: true })
3232
3290
  ], Timesheet.prototype, "taskId", 2);
3233
3291
  __decorateClass([
3234
- (0, import_typeorm22.Column)({ name: "task_name", type: "varchar", nullable: true })
3292
+ (0, import_typeorm23.Column)({ name: "task_name", type: "varchar", nullable: true })
3235
3293
  ], Timesheet.prototype, "taskName", 2);
3236
3294
  __decorateClass([
3237
- (0, import_typeorm22.Column)({ name: "description", type: "varchar", nullable: true })
3295
+ (0, import_typeorm23.Column)({ name: "description", type: "varchar", nullable: true })
3238
3296
  ], Timesheet.prototype, "description", 2);
3239
3297
  __decorateClass([
3240
- (0, import_typeorm22.Column)({ name: "week_start_date", type: "date", nullable: true })
3298
+ (0, import_typeorm23.Column)({ name: "week_start_date", type: "date", nullable: true })
3241
3299
  ], Timesheet.prototype, "weekStartDate", 2);
3242
3300
  __decorateClass([
3243
- (0, import_typeorm22.Column)({ name: "week_end_date", type: "date", nullable: true })
3301
+ (0, import_typeorm23.Column)({ name: "week_end_date", type: "date", nullable: true })
3244
3302
  ], Timesheet.prototype, "weekEndDate", 2);
3245
3303
  __decorateClass([
3246
- (0, import_typeorm22.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
3304
+ (0, import_typeorm23.Column)({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
3247
3305
  ], Timesheet.prototype, "rejectedAt", 2);
3248
3306
  __decorateClass([
3249
- (0, import_typeorm22.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
3307
+ (0, import_typeorm23.Column)({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
3250
3308
  ], Timesheet.prototype, "submittedAt", 2);
3251
3309
  __decorateClass([
3252
- (0, import_typeorm22.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
3310
+ (0, import_typeorm23.Column)({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
3253
3311
  ], Timesheet.prototype, "resubmittedAt", 2);
3254
3312
  __decorateClass([
3255
- (0, import_typeorm22.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
3313
+ (0, import_typeorm23.Column)({ name: "approved_at", type: "timestamp with time zone", nullable: true })
3256
3314
  ], Timesheet.prototype, "approvedAt", 2);
3257
3315
  __decorateClass([
3258
- (0, import_typeorm22.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
3316
+ (0, import_typeorm23.Column)({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
3259
3317
  ], Timesheet.prototype, "status", 2);
3260
3318
  __decorateClass([
3261
- (0, import_typeorm22.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
3319
+ (0, import_typeorm23.Column)({ name: "client_send_back_reason", type: "varchar", nullable: true })
3262
3320
  ], Timesheet.prototype, "clientSendBackReason", 2);
3263
3321
  Timesheet = __decorateClass([
3264
- (0, import_typeorm22.Entity)("timesheets")
3322
+ (0, import_typeorm23.Entity)("timesheets")
3265
3323
  ], Timesheet);
3266
3324
 
3267
3325
  // src/entities/timesheet-line.entity.ts
3268
- var import_typeorm25 = require("typeorm");
3326
+ var import_typeorm26 = require("typeorm");
3269
3327
 
3270
3328
  // src/entities/timesheet-logs.entity.ts
3271
- var import_typeorm23 = require("typeorm");
3329
+ var import_typeorm24 = require("typeorm");
3272
3330
  var TimesheetLogs = class extends BaseEntity {
3273
3331
  };
3274
3332
  __decorateClass([
3275
- (0, import_typeorm23.Column)({ name: "timesheet_line_id", type: "integer", nullable: false }),
3276
- (0, import_typeorm23.Index)()
3333
+ (0, import_typeorm24.Column)({ name: "timesheet_line_id", type: "integer", nullable: false }),
3334
+ (0, import_typeorm24.Index)()
3277
3335
  ], TimesheetLogs.prototype, "timesheetLineId", 2);
3278
3336
  __decorateClass([
3279
- (0, import_typeorm23.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLogs),
3280
- (0, import_typeorm23.JoinColumn)({ name: "timesheet_line_id" })
3337
+ (0, import_typeorm24.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLogs),
3338
+ (0, import_typeorm24.JoinColumn)({ name: "timesheet_line_id" })
3281
3339
  ], TimesheetLogs.prototype, "timesheetLine", 2);
3282
3340
  __decorateClass([
3283
- (0, import_typeorm23.Column)({
3341
+ (0, import_typeorm24.Column)({
3284
3342
  name: "start_date",
3285
3343
  type: "date",
3286
3344
  nullable: true
3287
3345
  })
3288
3346
  ], TimesheetLogs.prototype, "startDate", 2);
3289
3347
  __decorateClass([
3290
- (0, import_typeorm23.Column)({
3348
+ (0, import_typeorm24.Column)({
3291
3349
  name: "end_date",
3292
3350
  type: "date",
3293
3351
  nullable: true
3294
3352
  })
3295
3353
  ], TimesheetLogs.prototype, "endDate", 2);
3296
3354
  __decorateClass([
3297
- (0, import_typeorm23.Column)({ name: "start_time", type: "varchar", nullable: true })
3355
+ (0, import_typeorm24.Column)({ name: "start_time", type: "varchar", nullable: true })
3298
3356
  ], TimesheetLogs.prototype, "startTime", 2);
3299
3357
  __decorateClass([
3300
- (0, import_typeorm23.Column)({ name: "end_time", type: "varchar", nullable: true })
3358
+ (0, import_typeorm24.Column)({ name: "end_time", type: "varchar", nullable: true })
3301
3359
  ], TimesheetLogs.prototype, "endTime", 2);
3302
3360
  __decorateClass([
3303
- (0, import_typeorm23.Column)({ name: "worked_hours", type: "varchar", nullable: true })
3361
+ (0, import_typeorm24.Column)({ name: "worked_hours", type: "varchar", nullable: true })
3304
3362
  ], TimesheetLogs.prototype, "workedHours", 2);
3305
3363
  __decorateClass([
3306
- (0, import_typeorm23.Column)({ name: "task_id", type: "integer", nullable: true })
3364
+ (0, import_typeorm24.Column)({ name: "task_id", type: "integer", nullable: true })
3307
3365
  ], TimesheetLogs.prototype, "taskId", 2);
3308
3366
  __decorateClass([
3309
- (0, import_typeorm23.Column)({ name: "project_name", type: "varchar", nullable: true })
3367
+ (0, import_typeorm24.Column)({ name: "project_name", type: "varchar", nullable: true })
3310
3368
  ], TimesheetLogs.prototype, "projectName", 2);
3311
3369
  __decorateClass([
3312
- (0, import_typeorm23.Column)({ name: "deliverable", type: "varchar", nullable: true })
3370
+ (0, import_typeorm24.Column)({ name: "deliverable", type: "varchar", nullable: true })
3313
3371
  ], TimesheetLogs.prototype, "deliverable", 2);
3314
3372
  __decorateClass([
3315
- (0, import_typeorm23.Column)({ name: "task_name", type: "varchar", nullable: true })
3373
+ (0, import_typeorm24.Column)({ name: "task_name", type: "varchar", nullable: true })
3316
3374
  ], TimesheetLogs.prototype, "taskName", 2);
3317
3375
  __decorateClass([
3318
- (0, import_typeorm23.Column)({ name: "description", type: "varchar", nullable: true })
3376
+ (0, import_typeorm24.Column)({ name: "description", type: "varchar", nullable: true })
3319
3377
  ], TimesheetLogs.prototype, "description", 2);
3320
3378
  TimesheetLogs = __decorateClass([
3321
- (0, import_typeorm23.Entity)("timesheet_logs")
3379
+ (0, import_typeorm24.Entity)("timesheet_logs")
3322
3380
  ], TimesheetLogs);
3323
3381
 
3324
3382
  // src/entities/timesheet-line-history.entity.ts
3325
- var import_typeorm24 = require("typeorm");
3383
+ var import_typeorm25 = require("typeorm");
3326
3384
  var TimesheetLineHistoryStatusEnum = /* @__PURE__ */ ((TimesheetLineHistoryStatusEnum2) => {
3327
3385
  TimesheetLineHistoryStatusEnum2["DRAFT"] = "DRAFT";
3328
3386
  TimesheetLineHistoryStatusEnum2["SEND"] = "SEND";
@@ -3346,19 +3404,19 @@ var TimesheetSubmissionActionEnum = /* @__PURE__ */ ((TimesheetSubmissionActionE
3346
3404
  var TimesheetLineHistory = class extends BaseEntity {
3347
3405
  };
3348
3406
  __decorateClass([
3349
- (0, import_typeorm24.Column)({ name: "timesheet_line_id", type: "integer", nullable: false }),
3350
- (0, import_typeorm24.Index)()
3407
+ (0, import_typeorm25.Column)({ name: "timesheet_line_id", type: "integer", nullable: false }),
3408
+ (0, import_typeorm25.Index)()
3351
3409
  ], TimesheetLineHistory.prototype, "timesheetLineId", 2);
3352
3410
  __decorateClass([
3353
- (0, import_typeorm24.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLineHistory),
3354
- (0, import_typeorm24.JoinColumn)({ name: "timesheet_line_id" })
3411
+ (0, import_typeorm25.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.timesheetLineHistory),
3412
+ (0, import_typeorm25.JoinColumn)({ name: "timesheet_line_id" })
3355
3413
  ], TimesheetLineHistory.prototype, "timesheetLine", 2);
3356
3414
  __decorateClass([
3357
- (0, import_typeorm24.Column)({ name: "changed_by", type: "integer", nullable: true }),
3358
- (0, import_typeorm24.Index)()
3415
+ (0, import_typeorm25.Column)({ name: "changed_by", type: "integer", nullable: true }),
3416
+ (0, import_typeorm25.Index)()
3359
3417
  ], TimesheetLineHistory.prototype, "changedBy", 2);
3360
3418
  __decorateClass([
3361
- (0, import_typeorm24.Column)({
3419
+ (0, import_typeorm25.Column)({
3362
3420
  name: "previous_status",
3363
3421
  type: "enum",
3364
3422
  enum: TimesheetLineHistoryStatusEnum,
@@ -3366,7 +3424,7 @@ __decorateClass([
3366
3424
  })
3367
3425
  ], TimesheetLineHistory.prototype, "previousStatus", 2);
3368
3426
  __decorateClass([
3369
- (0, import_typeorm24.Column)({
3427
+ (0, import_typeorm25.Column)({
3370
3428
  name: "new_status",
3371
3429
  type: "enum",
3372
3430
  enum: TimesheetLineHistoryStatusEnum,
@@ -3374,7 +3432,7 @@ __decorateClass([
3374
3432
  })
3375
3433
  ], TimesheetLineHistory.prototype, "newStatus", 2);
3376
3434
  __decorateClass([
3377
- (0, import_typeorm24.Column)({
3435
+ (0, import_typeorm25.Column)({
3378
3436
  name: "action_type",
3379
3437
  type: "enum",
3380
3438
  enum: TimesheetSubmissionActionEnum,
@@ -3382,10 +3440,10 @@ __decorateClass([
3382
3440
  })
3383
3441
  ], TimesheetLineHistory.prototype, "actionType", 2);
3384
3442
  __decorateClass([
3385
- (0, import_typeorm24.Column)({ name: "remarks", type: "varchar", nullable: true })
3443
+ (0, import_typeorm25.Column)({ name: "remarks", type: "varchar", nullable: true })
3386
3444
  ], TimesheetLineHistory.prototype, "remarks", 2);
3387
3445
  TimesheetLineHistory = __decorateClass([
3388
- (0, import_typeorm24.Entity)("timesheet_line_histories")
3446
+ (0, import_typeorm25.Entity)("timesheet_line_histories")
3389
3447
  ], TimesheetLineHistory);
3390
3448
 
3391
3449
  // src/entities/timesheet-line.entity.ts
@@ -3403,113 +3461,68 @@ var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
3403
3461
  var TimesheetLine = class extends BaseEntity {
3404
3462
  };
3405
3463
  __decorateClass([
3406
- (0, import_typeorm25.Column)({ name: "job_id", type: "integer", nullable: true }),
3407
- (0, import_typeorm25.Index)()
3464
+ (0, import_typeorm26.Column)({ name: "job_id", type: "integer", nullable: true }),
3465
+ (0, import_typeorm26.Index)()
3408
3466
  ], TimesheetLine.prototype, "jobId", 2);
3409
3467
  __decorateClass([
3410
- (0, import_typeorm25.ManyToOne)(() => Job, (job) => job.timesheetLine),
3411
- (0, import_typeorm25.JoinColumn)({ name: "job_id" })
3468
+ (0, import_typeorm26.ManyToOne)(() => Job, (job) => job.timesheetLine),
3469
+ (0, import_typeorm26.JoinColumn)({ name: "job_id" })
3412
3470
  ], TimesheetLine.prototype, "job", 2);
3413
3471
  __decorateClass([
3414
- (0, import_typeorm25.Column)({ name: "client_id", type: "integer", nullable: true }),
3415
- (0, import_typeorm25.Index)()
3472
+ (0, import_typeorm26.Column)({ name: "client_id", type: "integer", nullable: true }),
3473
+ (0, import_typeorm26.Index)()
3416
3474
  ], TimesheetLine.prototype, "clientId", 2);
3417
3475
  __decorateClass([
3418
- (0, import_typeorm25.ManyToOne)(() => User, (user) => user.clientTimesheetLine),
3419
- (0, import_typeorm25.JoinColumn)({ name: "client_id" })
3476
+ (0, import_typeorm26.ManyToOne)(() => User, (user) => user.clientTimesheetLine),
3477
+ (0, import_typeorm26.JoinColumn)({ name: "client_id" })
3420
3478
  ], TimesheetLine.prototype, "client", 2);
3421
3479
  __decorateClass([
3422
- (0, import_typeorm25.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3423
- (0, import_typeorm25.Index)()
3480
+ (0, import_typeorm26.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
3481
+ (0, import_typeorm26.Index)()
3424
3482
  ], TimesheetLine.prototype, "freelancerId", 2);
3425
3483
  __decorateClass([
3426
- (0, import_typeorm25.ManyToOne)(() => User, (user) => user.freelancerTimesheetLine),
3427
- (0, import_typeorm25.JoinColumn)({ name: "freelancer_id" })
3484
+ (0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerTimesheetLine),
3485
+ (0, import_typeorm26.JoinColumn)({ name: "freelancer_id" })
3428
3486
  ], TimesheetLine.prototype, "freelancer", 2);
3429
3487
  __decorateClass([
3430
- (0, import_typeorm25.OneToMany)(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
3488
+ (0, import_typeorm26.OneToMany)(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
3431
3489
  ], TimesheetLine.prototype, "timesheetLogs", 2);
3432
3490
  __decorateClass([
3433
- (0, import_typeorm25.OneToMany)(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
3491
+ (0, import_typeorm26.OneToMany)(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
3434
3492
  ], TimesheetLine.prototype, "timesheetLineHistory", 2);
3435
3493
  __decorateClass([
3436
- (0, import_typeorm25.Column)({ name: "unique_id", type: "varchar", nullable: true })
3494
+ (0, import_typeorm26.Column)({ name: "unique_id", type: "varchar", nullable: true })
3437
3495
  ], TimesheetLine.prototype, "uniqueId", 2);
3438
3496
  __decorateClass([
3439
- (0, import_typeorm25.Column)({
3497
+ (0, import_typeorm26.Column)({
3440
3498
  name: "week_start_date",
3441
3499
  type: "date",
3442
3500
  nullable: true
3443
3501
  })
3444
3502
  ], TimesheetLine.prototype, "weekStartDate", 2);
3445
3503
  __decorateClass([
3446
- (0, import_typeorm25.Column)({
3504
+ (0, import_typeorm26.Column)({
3447
3505
  name: "week_end_date",
3448
3506
  type: "date",
3449
3507
  nullable: true
3450
3508
  })
3451
3509
  ], TimesheetLine.prototype, "weekEndDate", 2);
3452
3510
  __decorateClass([
3453
- (0, import_typeorm25.Column)({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
3511
+ (0, import_typeorm26.Column)({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
3454
3512
  ], TimesheetLine.prototype, "status", 2);
3455
3513
  __decorateClass([
3456
- (0, import_typeorm25.Column)({ name: "weekly_hours_sum", type: "varchar", nullable: true })
3514
+ (0, import_typeorm26.Column)({ name: "weekly_hours_sum", type: "varchar", nullable: true })
3457
3515
  ], TimesheetLine.prototype, "weeklyHoursSum", 2);
3458
3516
  __decorateClass([
3459
- (0, import_typeorm25.Column)({ name: "is_invoice_genrated", type: "boolean", default: false })
3517
+ (0, import_typeorm26.Column)({ name: "is_invoice_genrated", type: "boolean", default: false })
3460
3518
  ], TimesheetLine.prototype, "isInvoiceGenrated", 2);
3461
3519
  __decorateClass([
3462
- (0, import_typeorm25.Column)({ name: "is_invoice_approved", type: "boolean", default: false })
3520
+ (0, import_typeorm26.Column)({ name: "is_invoice_approved", type: "boolean", default: false })
3463
3521
  ], TimesheetLine.prototype, "isInvoiceApproved", 2);
3464
3522
  TimesheetLine = __decorateClass([
3465
- (0, import_typeorm25.Entity)("timesheet_lines")
3523
+ (0, import_typeorm26.Entity)("timesheet_lines")
3466
3524
  ], TimesheetLine);
3467
3525
 
3468
- // src/entities/client-candidate-preference.entity.ts
3469
- var import_typeorm26 = require("typeorm");
3470
- var ClientCandidatePreferenceEnum = /* @__PURE__ */ ((ClientCandidatePreferenceEnum2) => {
3471
- ClientCandidatePreferenceEnum2["NOT_SUITABLE"] = "NOT_SUITABLE";
3472
- ClientCandidatePreferenceEnum2["SHORTLISTED"] = "SHORTLISTED";
3473
- return ClientCandidatePreferenceEnum2;
3474
- })(ClientCandidatePreferenceEnum || {});
3475
- var ClientCandidatePreference = class extends BaseEntity {
3476
- };
3477
- __decorateClass([
3478
- (0, import_typeorm26.Column)({ name: "client_id", type: "integer" }),
3479
- (0, import_typeorm26.Index)()
3480
- ], ClientCandidatePreference.prototype, "clientId", 2);
3481
- __decorateClass([
3482
- (0, import_typeorm26.ManyToOne)(() => User, (user) => user.clientPreferencesGiven),
3483
- (0, import_typeorm26.JoinColumn)({ name: "client_id" })
3484
- ], ClientCandidatePreference.prototype, "client", 2);
3485
- __decorateClass([
3486
- (0, import_typeorm26.Column)({ name: "candidate_id", type: "integer" }),
3487
- (0, import_typeorm26.Index)()
3488
- ], ClientCandidatePreference.prototype, "candidateId", 2);
3489
- __decorateClass([
3490
- (0, import_typeorm26.ManyToOne)(() => User, (user) => user.clientPreferencesReceived),
3491
- (0, import_typeorm26.JoinColumn)({ name: "candidate_id" })
3492
- ], ClientCandidatePreference.prototype, "candidate", 2);
3493
- __decorateClass([
3494
- (0, import_typeorm26.Column)({ name: "job_id", type: "integer", nullable: true }),
3495
- (0, import_typeorm26.Index)()
3496
- ], ClientCandidatePreference.prototype, "jobId", 2);
3497
- __decorateClass([
3498
- (0, import_typeorm26.ManyToOne)(() => Job, (job) => job.clientCandidatePreferences, { nullable: true }),
3499
- (0, import_typeorm26.JoinColumn)({ name: "job_id" })
3500
- ], ClientCandidatePreference.prototype, "job", 2);
3501
- __decorateClass([
3502
- (0, import_typeorm26.Column)({
3503
- name: "preference",
3504
- type: "enum",
3505
- enum: ClientCandidatePreferenceEnum
3506
- }),
3507
- (0, import_typeorm26.Index)()
3508
- ], ClientCandidatePreference.prototype, "preference", 2);
3509
- ClientCandidatePreference = __decorateClass([
3510
- (0, import_typeorm26.Entity)("client_candidate_preferences")
3511
- ], ClientCandidatePreference);
3512
-
3513
3526
  // src/entities/invoice.entity.ts
3514
3527
  var import_typeorm27 = require("typeorm");
3515
3528
  var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {