@experts_hub/shared 1.0.584 → 1.0.585

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.
@@ -17,6 +17,7 @@ import { InterviewInvite } from "./interview-invite.entity";
17
17
  import { EscrowWallet } from "./escrow-wallet.entity";
18
18
  import { JobLocation } from "./job-location.entity";
19
19
  import { Hiring } from "./hiring.entity";
20
+ import { Rating } from "./rating.entity";
20
21
  export declare enum JobLocationEnum {
21
22
  ONSITE = "ONSITE",
22
23
  REMOTE = "REMOTE",
@@ -120,4 +121,5 @@ export declare class Job extends BaseEntity {
120
121
  invoice: Invoice[];
121
122
  clientCandidatePreferences: ClientCandidatePreference[];
122
123
  jobLocations: JobLocation[];
124
+ ratings: Rating[];
123
125
  }
@@ -1,5 +1,6 @@
1
1
  import { User } from "./user.entity";
2
2
  import { BaseEntity } from "./base.entity";
3
+ import { Job } from "./job.entity";
3
4
  export declare enum RatingTypeEnum {
4
5
  FREELANCER_TO_CLIENT = "FREELANCER_TO_CLIENT",
5
6
  CLIENT_TO_FREELANCER = "CLIENT_TO_FREELANCER"
@@ -9,7 +10,19 @@ export declare class Rating extends BaseEntity {
9
10
  reviewer: User;
10
11
  reviewee_id: number;
11
12
  reviewee: User;
13
+ jobId: number;
14
+ job: Job;
12
15
  ratingType: RatingTypeEnum;
13
- rating: number;
14
- review: string;
16
+ reviewer_comment: string;
17
+ overall_experience: number;
18
+ work_quality: number;
19
+ one_time_delivery: number;
20
+ understaning: number;
21
+ communication: number;
22
+ skill_utilized: number;
23
+ communication_clarity: number;
24
+ requirements_clarity: number;
25
+ responsiveness: number;
26
+ payment_promptness: number;
27
+ responsibilities_and_expectations: number;
15
28
  }
package/dist/index.d.mts CHANGED
@@ -1879,6 +1879,7 @@ declare class Job extends BaseEntity {
1879
1879
  invoice: Invoice[];
1880
1880
  clientCandidatePreferences: ClientCandidatePreference[];
1881
1881
  jobLocations: JobLocation[];
1882
+ ratings: Rating[];
1882
1883
  }
1883
1884
 
1884
1885
  declare enum BankAccountTypeEnum {
@@ -2398,16 +2399,39 @@ declare class Rating extends BaseEntity {
2398
2399
  reviewer: User;
2399
2400
  reviewee_id: number;
2400
2401
  reviewee: User;
2402
+ jobId: number;
2403
+ job: Job;
2401
2404
  ratingType: RatingTypeEnum;
2402
- rating: number;
2403
- review: string;
2405
+ reviewer_comment: string;
2406
+ overall_experience: number;
2407
+ work_quality: number;
2408
+ one_time_delivery: number;
2409
+ understaning: number;
2410
+ communication: number;
2411
+ skill_utilized: number;
2412
+ communication_clarity: number;
2413
+ requirements_clarity: number;
2414
+ responsiveness: number;
2415
+ payment_promptness: number;
2416
+ responsibilities_and_expectations: number;
2404
2417
  }
2405
2418
 
2406
2419
  declare class CreateRatingDto {
2407
2420
  revieweeId: number;
2421
+ jobId: number;
2408
2422
  ratingType: RatingTypeEnum;
2409
- rating: number;
2410
- review?: string;
2423
+ reviewerComment?: string;
2424
+ overallExperience?: number;
2425
+ workQuality?: number;
2426
+ oneTimeDelivery?: number;
2427
+ understaning?: number;
2428
+ communication?: number;
2429
+ skillUtilized?: number;
2430
+ communicationClarity?: number;
2431
+ requirementsClarity?: number;
2432
+ responsiveness?: number;
2433
+ paymentPromptness?: number;
2434
+ responsibilitiesAndExpectations?: number;
2411
2435
  }
2412
2436
 
2413
2437
  interface IAddRatingPayload {
package/dist/index.d.ts CHANGED
@@ -1879,6 +1879,7 @@ declare class Job extends BaseEntity {
1879
1879
  invoice: Invoice[];
1880
1880
  clientCandidatePreferences: ClientCandidatePreference[];
1881
1881
  jobLocations: JobLocation[];
1882
+ ratings: Rating[];
1882
1883
  }
1883
1884
 
1884
1885
  declare enum BankAccountTypeEnum {
@@ -2398,16 +2399,39 @@ declare class Rating extends BaseEntity {
2398
2399
  reviewer: User;
2399
2400
  reviewee_id: number;
2400
2401
  reviewee: User;
2402
+ jobId: number;
2403
+ job: Job;
2401
2404
  ratingType: RatingTypeEnum;
2402
- rating: number;
2403
- review: string;
2405
+ reviewer_comment: string;
2406
+ overall_experience: number;
2407
+ work_quality: number;
2408
+ one_time_delivery: number;
2409
+ understaning: number;
2410
+ communication: number;
2411
+ skill_utilized: number;
2412
+ communication_clarity: number;
2413
+ requirements_clarity: number;
2414
+ responsiveness: number;
2415
+ payment_promptness: number;
2416
+ responsibilities_and_expectations: number;
2404
2417
  }
2405
2418
 
2406
2419
  declare class CreateRatingDto {
2407
2420
  revieweeId: number;
2421
+ jobId: number;
2408
2422
  ratingType: RatingTypeEnum;
2409
- rating: number;
2410
- review?: string;
2423
+ reviewerComment?: string;
2424
+ overallExperience?: number;
2425
+ workQuality?: number;
2426
+ oneTimeDelivery?: number;
2427
+ understaning?: number;
2428
+ communication?: number;
2429
+ skillUtilized?: number;
2430
+ communicationClarity?: number;
2431
+ requirementsClarity?: number;
2432
+ responsiveness?: number;
2433
+ paymentPromptness?: number;
2434
+ responsibilitiesAndExpectations?: number;
2411
2435
  }
2412
2436
 
2413
2437
  interface IAddRatingPayload {
package/dist/index.js CHANGED
@@ -5421,6 +5421,11 @@ __decorateClass([
5421
5421
  cascade: true
5422
5422
  })
5423
5423
  ], Job.prototype, "jobLocations", 2);
5424
+ __decorateClass([
5425
+ (0, import_typeorm33.OneToMany)(() => Rating, (rating) => rating.job, {
5426
+ cascade: true
5427
+ })
5428
+ ], Job.prototype, "ratings", 2);
5424
5429
  Job = __decorateClass([
5425
5430
  (0, import_typeorm33.Entity)("jobs")
5426
5431
  ], Job);
@@ -7008,6 +7013,14 @@ __decorateClass([
7008
7013
  (0, import_typeorm65.ManyToOne)(() => User, { onDelete: "CASCADE" }),
7009
7014
  (0, import_typeorm65.JoinColumn)({ name: "reviewee_id" })
7010
7015
  ], Rating.prototype, "reviewee", 2);
7016
+ __decorateClass([
7017
+ (0, import_typeorm65.Column)({ name: "job_id", type: "integer" }),
7018
+ (0, import_typeorm65.Index)()
7019
+ ], Rating.prototype, "jobId", 2);
7020
+ __decorateClass([
7021
+ (0, import_typeorm65.ManyToOne)(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
7022
+ (0, import_typeorm65.JoinColumn)({ name: "job_id" })
7023
+ ], Rating.prototype, "job", 2);
7011
7024
  __decorateClass([
7012
7025
  (0, import_typeorm65.Column)({
7013
7026
  type: "enum",
@@ -7015,12 +7028,60 @@ __decorateClass([
7015
7028
  nullable: true
7016
7029
  })
7017
7030
  ], Rating.prototype, "ratingType", 2);
7018
- __decorateClass([
7019
- (0, import_typeorm65.Column)({ type: "integer", nullable: true })
7020
- ], Rating.prototype, "rating", 2);
7021
7031
  __decorateClass([
7022
7032
  (0, import_typeorm65.Column)({ type: "text", nullable: true })
7023
- ], Rating.prototype, "review", 2);
7033
+ ], Rating.prototype, "reviewer_comment", 2);
7034
+ __decorateClass([
7035
+ (0, import_typeorm65.Column)({
7036
+ type: "float",
7037
+ default: 0
7038
+ })
7039
+ ], Rating.prototype, "overall_experience", 2);
7040
+ __decorateClass([
7041
+ (0, import_typeorm65.Column)({
7042
+ type: "float",
7043
+ default: 0
7044
+ })
7045
+ ], Rating.prototype, "work_quality", 2);
7046
+ __decorateClass([
7047
+ (0, import_typeorm65.Column)({
7048
+ type: "float",
7049
+ default: 0
7050
+ })
7051
+ ], Rating.prototype, "one_time_delivery", 2);
7052
+ __decorateClass([
7053
+ (0, import_typeorm65.Column)({
7054
+ type: "float",
7055
+ default: 0
7056
+ })
7057
+ ], Rating.prototype, "understaning", 2);
7058
+ __decorateClass([
7059
+ (0, import_typeorm65.Column)({
7060
+ type: "float",
7061
+ default: 0
7062
+ })
7063
+ ], Rating.prototype, "communication", 2);
7064
+ __decorateClass([
7065
+ (0, import_typeorm65.Column)({
7066
+ type: "float",
7067
+ default: 0
7068
+ })
7069
+ ], Rating.prototype, "skill_utilized", 2);
7070
+ __decorateClass([
7071
+ (0, import_typeorm65.Column)({ type: "float", default: 0 })
7072
+ ], Rating.prototype, "communication_clarity", 2);
7073
+ __decorateClass([
7074
+ (0, import_typeorm65.Column)({ type: "float", default: 0 })
7075
+ ], Rating.prototype, "requirements_clarity", 2);
7076
+ __decorateClass([
7077
+ (0, import_typeorm65.Column)({ type: "float", default: 0 })
7078
+ ], Rating.prototype, "responsiveness", 2);
7079
+ __decorateClass([
7080
+ (0, import_typeorm65.Column)({ type: "float", default: 0 })
7081
+ ], Rating.prototype, "payment_promptness", 2);
7082
+ __decorateClass([
7083
+ (0, import_typeorm65.Column)({ type: "float", default: 0 })
7084
+ ], Rating.prototype, "responsibilities_and_expectations", 2);
7024
7085
  Rating = __decorateClass([
7025
7086
  (0, import_typeorm65.Entity)("ratings")
7026
7087
  ], Rating);
@@ -7032,20 +7093,85 @@ __decorateClass([
7032
7093
  (0, import_class_validator62.IsInt)({ message: "Reviewee ID must be a valid integer" }),
7033
7094
  (0, import_class_validator62.IsNotEmpty)({ message: "Reviewee ID is required" })
7034
7095
  ], CreateRatingDto.prototype, "revieweeId", 2);
7096
+ __decorateClass([
7097
+ (0, import_class_validator62.IsInt)({ message: "Job ID must be a valid integer" }),
7098
+ (0, import_class_validator62.IsNotEmpty)({ message: "Job ID is required" })
7099
+ ], CreateRatingDto.prototype, "jobId", 2);
7035
7100
  __decorateClass([
7036
7101
  (0, import_class_validator62.IsEnum)(RatingTypeEnum, {
7037
7102
  message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
7038
7103
  })
7039
7104
  ], CreateRatingDto.prototype, "ratingType", 2);
7040
7105
  __decorateClass([
7041
- (0, import_class_validator62.IsInt)({ message: "Rating must be an integer value" }),
7042
- (0, import_class_validator62.Min)(1, { message: "Rating must be at least 1" }),
7043
- (0, import_class_validator62.Max)(5, { message: "Rating must be at most 5" })
7044
- ], CreateRatingDto.prototype, "rating", 2);
7106
+ (0, import_class_validator62.IsOptional)(),
7107
+ (0, import_class_validator62.IsString)({ message: "Reviewer comment must be a string" })
7108
+ ], CreateRatingDto.prototype, "reviewerComment", 2);
7109
+ __decorateClass([
7110
+ (0, import_class_validator62.IsOptional)(),
7111
+ (0, import_class_validator62.IsNumber)(),
7112
+ (0, import_class_validator62.Min)(0),
7113
+ (0, import_class_validator62.Max)(5)
7114
+ ], CreateRatingDto.prototype, "overallExperience", 2);
7115
+ __decorateClass([
7116
+ (0, import_class_validator62.IsOptional)(),
7117
+ (0, import_class_validator62.IsNumber)(),
7118
+ (0, import_class_validator62.Min)(0),
7119
+ (0, import_class_validator62.Max)(5)
7120
+ ], CreateRatingDto.prototype, "workQuality", 2);
7121
+ __decorateClass([
7122
+ (0, import_class_validator62.IsOptional)(),
7123
+ (0, import_class_validator62.IsNumber)(),
7124
+ (0, import_class_validator62.Min)(0),
7125
+ (0, import_class_validator62.Max)(5)
7126
+ ], CreateRatingDto.prototype, "oneTimeDelivery", 2);
7127
+ __decorateClass([
7128
+ (0, import_class_validator62.IsOptional)(),
7129
+ (0, import_class_validator62.IsNumber)(),
7130
+ (0, import_class_validator62.Min)(0),
7131
+ (0, import_class_validator62.Max)(5)
7132
+ ], CreateRatingDto.prototype, "understaning", 2);
7133
+ __decorateClass([
7134
+ (0, import_class_validator62.IsOptional)(),
7135
+ (0, import_class_validator62.IsNumber)(),
7136
+ (0, import_class_validator62.Min)(0),
7137
+ (0, import_class_validator62.Max)(5)
7138
+ ], CreateRatingDto.prototype, "communication", 2);
7139
+ __decorateClass([
7140
+ (0, import_class_validator62.IsOptional)(),
7141
+ (0, import_class_validator62.IsNumber)(),
7142
+ (0, import_class_validator62.Min)(0),
7143
+ (0, import_class_validator62.Max)(5)
7144
+ ], CreateRatingDto.prototype, "skillUtilized", 2);
7145
+ __decorateClass([
7146
+ (0, import_class_validator62.IsOptional)(),
7147
+ (0, import_class_validator62.IsNumber)(),
7148
+ (0, import_class_validator62.Min)(0),
7149
+ (0, import_class_validator62.Max)(5)
7150
+ ], CreateRatingDto.prototype, "communicationClarity", 2);
7151
+ __decorateClass([
7152
+ (0, import_class_validator62.IsOptional)(),
7153
+ (0, import_class_validator62.IsNumber)(),
7154
+ (0, import_class_validator62.Min)(0),
7155
+ (0, import_class_validator62.Max)(5)
7156
+ ], CreateRatingDto.prototype, "requirementsClarity", 2);
7157
+ __decorateClass([
7158
+ (0, import_class_validator62.IsOptional)(),
7159
+ (0, import_class_validator62.IsNumber)(),
7160
+ (0, import_class_validator62.Min)(0),
7161
+ (0, import_class_validator62.Max)(5)
7162
+ ], CreateRatingDto.prototype, "responsiveness", 2);
7163
+ __decorateClass([
7164
+ (0, import_class_validator62.IsOptional)(),
7165
+ (0, import_class_validator62.IsNumber)(),
7166
+ (0, import_class_validator62.Min)(0),
7167
+ (0, import_class_validator62.Max)(5)
7168
+ ], CreateRatingDto.prototype, "paymentPromptness", 2);
7045
7169
  __decorateClass([
7046
7170
  (0, import_class_validator62.IsOptional)(),
7047
- (0, import_class_validator62.IsString)({ message: "Review must be a string" })
7048
- ], CreateRatingDto.prototype, "review", 2);
7171
+ (0, import_class_validator62.IsNumber)(),
7172
+ (0, import_class_validator62.Min)(0),
7173
+ (0, import_class_validator62.Max)(5)
7174
+ ], CreateRatingDto.prototype, "responsibilitiesAndExpectations", 2);
7049
7175
 
7050
7176
  // src/modules/company-role/pattern/pattern.ts
7051
7177
  var COMPANY_ROLES_PATTERNS = {
package/dist/index.mjs CHANGED
@@ -2165,8 +2165,9 @@ import {
2165
2165
  IsNotEmpty as IsNotEmpty51,
2166
2166
  IsOptional as IsOptional28,
2167
2167
  IsString as IsString32,
2168
- Max as Max3,
2169
- Min as Min3
2168
+ IsNumber as IsNumber8,
2169
+ Min as Min3,
2170
+ Max as Max3
2170
2171
  } from "class-validator";
2171
2172
 
2172
2173
  // src/entities/rating.entity.ts
@@ -5267,6 +5268,11 @@ __decorateClass([
5267
5268
  cascade: true
5268
5269
  })
5269
5270
  ], Job.prototype, "jobLocations", 2);
5271
+ __decorateClass([
5272
+ OneToMany13(() => Rating, (rating) => rating.job, {
5273
+ cascade: true
5274
+ })
5275
+ ], Job.prototype, "ratings", 2);
5270
5276
  Job = __decorateClass([
5271
5277
  Entity32("jobs")
5272
5278
  ], Job);
@@ -6964,6 +6970,14 @@ __decorateClass([
6964
6970
  ManyToOne59(() => User, { onDelete: "CASCADE" }),
6965
6971
  JoinColumn60({ name: "reviewee_id" })
6966
6972
  ], Rating.prototype, "reviewee", 2);
6973
+ __decorateClass([
6974
+ Column65({ name: "job_id", type: "integer" }),
6975
+ Index57()
6976
+ ], Rating.prototype, "jobId", 2);
6977
+ __decorateClass([
6978
+ ManyToOne59(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
6979
+ JoinColumn60({ name: "job_id" })
6980
+ ], Rating.prototype, "job", 2);
6967
6981
  __decorateClass([
6968
6982
  Column65({
6969
6983
  type: "enum",
@@ -6971,12 +6985,60 @@ __decorateClass([
6971
6985
  nullable: true
6972
6986
  })
6973
6987
  ], Rating.prototype, "ratingType", 2);
6974
- __decorateClass([
6975
- Column65({ type: "integer", nullable: true })
6976
- ], Rating.prototype, "rating", 2);
6977
6988
  __decorateClass([
6978
6989
  Column65({ type: "text", nullable: true })
6979
- ], Rating.prototype, "review", 2);
6990
+ ], Rating.prototype, "reviewer_comment", 2);
6991
+ __decorateClass([
6992
+ Column65({
6993
+ type: "float",
6994
+ default: 0
6995
+ })
6996
+ ], Rating.prototype, "overall_experience", 2);
6997
+ __decorateClass([
6998
+ Column65({
6999
+ type: "float",
7000
+ default: 0
7001
+ })
7002
+ ], Rating.prototype, "work_quality", 2);
7003
+ __decorateClass([
7004
+ Column65({
7005
+ type: "float",
7006
+ default: 0
7007
+ })
7008
+ ], Rating.prototype, "one_time_delivery", 2);
7009
+ __decorateClass([
7010
+ Column65({
7011
+ type: "float",
7012
+ default: 0
7013
+ })
7014
+ ], Rating.prototype, "understaning", 2);
7015
+ __decorateClass([
7016
+ Column65({
7017
+ type: "float",
7018
+ default: 0
7019
+ })
7020
+ ], Rating.prototype, "communication", 2);
7021
+ __decorateClass([
7022
+ Column65({
7023
+ type: "float",
7024
+ default: 0
7025
+ })
7026
+ ], Rating.prototype, "skill_utilized", 2);
7027
+ __decorateClass([
7028
+ Column65({ type: "float", default: 0 })
7029
+ ], Rating.prototype, "communication_clarity", 2);
7030
+ __decorateClass([
7031
+ Column65({ type: "float", default: 0 })
7032
+ ], Rating.prototype, "requirements_clarity", 2);
7033
+ __decorateClass([
7034
+ Column65({ type: "float", default: 0 })
7035
+ ], Rating.prototype, "responsiveness", 2);
7036
+ __decorateClass([
7037
+ Column65({ type: "float", default: 0 })
7038
+ ], Rating.prototype, "payment_promptness", 2);
7039
+ __decorateClass([
7040
+ Column65({ type: "float", default: 0 })
7041
+ ], Rating.prototype, "responsibilities_and_expectations", 2);
6980
7042
  Rating = __decorateClass([
6981
7043
  Entity64("ratings")
6982
7044
  ], Rating);
@@ -6988,20 +7050,85 @@ __decorateClass([
6988
7050
  IsInt2({ message: "Reviewee ID must be a valid integer" }),
6989
7051
  IsNotEmpty51({ message: "Reviewee ID is required" })
6990
7052
  ], CreateRatingDto.prototype, "revieweeId", 2);
7053
+ __decorateClass([
7054
+ IsInt2({ message: "Job ID must be a valid integer" }),
7055
+ IsNotEmpty51({ message: "Job ID is required" })
7056
+ ], CreateRatingDto.prototype, "jobId", 2);
6991
7057
  __decorateClass([
6992
7058
  IsEnum19(RatingTypeEnum, {
6993
7059
  message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
6994
7060
  })
6995
7061
  ], CreateRatingDto.prototype, "ratingType", 2);
6996
7062
  __decorateClass([
6997
- IsInt2({ message: "Rating must be an integer value" }),
6998
- Min3(1, { message: "Rating must be at least 1" }),
6999
- Max3(5, { message: "Rating must be at most 5" })
7000
- ], CreateRatingDto.prototype, "rating", 2);
7063
+ IsOptional28(),
7064
+ IsString32({ message: "Reviewer comment must be a string" })
7065
+ ], CreateRatingDto.prototype, "reviewerComment", 2);
7066
+ __decorateClass([
7067
+ IsOptional28(),
7068
+ IsNumber8(),
7069
+ Min3(0),
7070
+ Max3(5)
7071
+ ], CreateRatingDto.prototype, "overallExperience", 2);
7072
+ __decorateClass([
7073
+ IsOptional28(),
7074
+ IsNumber8(),
7075
+ Min3(0),
7076
+ Max3(5)
7077
+ ], CreateRatingDto.prototype, "workQuality", 2);
7078
+ __decorateClass([
7079
+ IsOptional28(),
7080
+ IsNumber8(),
7081
+ Min3(0),
7082
+ Max3(5)
7083
+ ], CreateRatingDto.prototype, "oneTimeDelivery", 2);
7084
+ __decorateClass([
7085
+ IsOptional28(),
7086
+ IsNumber8(),
7087
+ Min3(0),
7088
+ Max3(5)
7089
+ ], CreateRatingDto.prototype, "understaning", 2);
7090
+ __decorateClass([
7091
+ IsOptional28(),
7092
+ IsNumber8(),
7093
+ Min3(0),
7094
+ Max3(5)
7095
+ ], CreateRatingDto.prototype, "communication", 2);
7096
+ __decorateClass([
7097
+ IsOptional28(),
7098
+ IsNumber8(),
7099
+ Min3(0),
7100
+ Max3(5)
7101
+ ], CreateRatingDto.prototype, "skillUtilized", 2);
7102
+ __decorateClass([
7103
+ IsOptional28(),
7104
+ IsNumber8(),
7105
+ Min3(0),
7106
+ Max3(5)
7107
+ ], CreateRatingDto.prototype, "communicationClarity", 2);
7108
+ __decorateClass([
7109
+ IsOptional28(),
7110
+ IsNumber8(),
7111
+ Min3(0),
7112
+ Max3(5)
7113
+ ], CreateRatingDto.prototype, "requirementsClarity", 2);
7114
+ __decorateClass([
7115
+ IsOptional28(),
7116
+ IsNumber8(),
7117
+ Min3(0),
7118
+ Max3(5)
7119
+ ], CreateRatingDto.prototype, "responsiveness", 2);
7120
+ __decorateClass([
7121
+ IsOptional28(),
7122
+ IsNumber8(),
7123
+ Min3(0),
7124
+ Max3(5)
7125
+ ], CreateRatingDto.prototype, "paymentPromptness", 2);
7001
7126
  __decorateClass([
7002
7127
  IsOptional28(),
7003
- IsString32({ message: "Review must be a string" })
7004
- ], CreateRatingDto.prototype, "review", 2);
7128
+ IsNumber8(),
7129
+ Min3(0),
7130
+ Max3(5)
7131
+ ], CreateRatingDto.prototype, "responsibilitiesAndExpectations", 2);
7005
7132
 
7006
7133
  // src/modules/company-role/pattern/pattern.ts
7007
7134
  var COMPANY_ROLES_PATTERNS = {
@@ -7351,7 +7478,7 @@ import {
7351
7478
  IsBoolean as IsBoolean11,
7352
7479
  IsOptional as IsOptional37,
7353
7480
  IsEnum as IsEnum20,
7354
- IsNumber as IsNumber8,
7481
+ IsNumber as IsNumber9,
7355
7482
  IsUrl as IsUrl3,
7356
7483
  Min as Min4,
7357
7484
  MaxLength as MaxLength16,
@@ -7419,7 +7546,7 @@ __decorateClass([
7419
7546
  })
7420
7547
  ], CreateFreelancerDto.prototype, "natureOfWork", 2);
7421
7548
  __decorateClass([
7422
- IsNumber8({}, { message: "Expected hourly compensation must be a number" }),
7549
+ IsNumber9({}, { message: "Expected hourly compensation must be a number" }),
7423
7550
  Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
7424
7551
  Type8(() => Number)
7425
7552
  ], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
@@ -7475,7 +7602,7 @@ import {
7475
7602
  IsBoolean as IsBoolean12,
7476
7603
  IsOptional as IsOptional38,
7477
7604
  IsEnum as IsEnum21,
7478
- IsNumber as IsNumber9,
7605
+ IsNumber as IsNumber10,
7479
7606
  IsUrl as IsUrl4,
7480
7607
  Min as Min5,
7481
7608
  MaxLength as MaxLength17,
@@ -7541,7 +7668,7 @@ __decorateClass([
7541
7668
  ], UpdateFreelancerDto.prototype, "natureOfWork", 2);
7542
7669
  __decorateClass([
7543
7670
  IsOptional38(),
7544
- IsNumber9({}, { message: "Expected hourly compensation must be a number" }),
7671
+ IsNumber10({}, { message: "Expected hourly compensation must be a number" }),
7545
7672
  Min5(0, { message: "Expected hourly compensation must be 0 or more" }),
7546
7673
  Type9(() => Number)
7547
7674
  ], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
@@ -7595,12 +7722,12 @@ __decorateClass([
7595
7722
  ], UpdateFreelancerDto.prototype, "portfolioLink", 2);
7596
7723
 
7597
7724
  // src/modules/freelancer-admin/dto/send-ai-assessment-link.dto.ts
7598
- import { IsNotEmpty as IsNotEmpty62, IsNumber as IsNumber10 } from "class-validator";
7725
+ import { IsNotEmpty as IsNotEmpty62, IsNumber as IsNumber11 } from "class-validator";
7599
7726
  var SendAiAssessmentLinkDto = class {
7600
7727
  };
7601
7728
  __decorateClass([
7602
7729
  IsNotEmpty62({ message: "User ID is required" }),
7603
- IsNumber10({}, { message: "User ID must be a number" })
7730
+ IsNumber11({}, { message: "User ID must be a number" })
7604
7731
  ], SendAiAssessmentLinkDto.prototype, "userId", 2);
7605
7732
 
7606
7733
  // src/modules/freelancer-admin/dto/update-assessment-request-status.dto.ts
@@ -7860,22 +7987,22 @@ var CLIENT_CANDIDATE_PREFERENCE_PATTERN = {
7860
7987
  };
7861
7988
 
7862
7989
  // src/modules/user/client-candidate-preference/dto/mark-candidate-status.dto.ts
7863
- import { IsNotEmpty as IsNotEmpty67, IsNumber as IsNumber11 } from "class-validator";
7990
+ import { IsNotEmpty as IsNotEmpty67, IsNumber as IsNumber12 } from "class-validator";
7864
7991
  var MarkCandidateStatusDto = class {
7865
7992
  };
7866
7993
  __decorateClass([
7867
7994
  IsNotEmpty67({ message: "Candidate ID is required" }),
7868
- IsNumber11({}, { message: "Candidate ID must be a number" })
7995
+ IsNumber12({}, { message: "Candidate ID must be a number" })
7869
7996
  ], MarkCandidateStatusDto.prototype, "candidateId", 2);
7870
7997
 
7871
7998
  // src/modules/user/client-candidate-preference/dto/mark-candidate-status-bulk.dto.ts
7872
- import { ArrayNotEmpty as ArrayNotEmpty8, IsArray as IsArray14, IsNumber as IsNumber12 } from "class-validator";
7999
+ import { ArrayNotEmpty as ArrayNotEmpty8, IsArray as IsArray14, IsNumber as IsNumber13 } from "class-validator";
7873
8000
  var MarkCandidateStatusBulkDto = class {
7874
8001
  };
7875
8002
  __decorateClass([
7876
8003
  IsArray14({ message: "Candidate IDs must be an array" }),
7877
8004
  ArrayNotEmpty8({ message: "At least one candidate ID is required" }),
7878
- IsNumber12({}, { each: true, message: "Each candidate ID must be a number" })
8005
+ IsNumber13({}, { each: true, message: "Each candidate ID must be a number" })
7879
8006
  ], MarkCandidateStatusBulkDto.prototype, "candidateIds", 2);
7880
8007
 
7881
8008
  // src/modules/cms/pattern/pattern.ts
@@ -7961,7 +8088,7 @@ import {
7961
8088
  IsNotEmpty as IsNotEmpty70,
7962
8089
  ArrayNotEmpty as ArrayNotEmpty9,
7963
8090
  Min as Min6,
7964
- IsNumber as IsNumber13
8091
+ IsNumber as IsNumber14
7965
8092
  } from "class-validator";
7966
8093
  var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
7967
8094
  JobLocationEnumDto2["ONSITE"] = "ONSITE";
@@ -8022,11 +8149,11 @@ __decorateClass([
8022
8149
  ], AdminCreateJobInformationDto.prototype, "currency", 2);
8023
8150
  __decorateClass([
8024
8151
  Type10(() => Number),
8025
- IsNumber13({}, { message: "Expected salary from must be a number." })
8152
+ IsNumber14({}, { message: "Expected salary from must be a number." })
8026
8153
  ], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
8027
8154
  __decorateClass([
8028
8155
  Type10(() => Number),
8029
- IsNumber13({}, { message: "Expected salary to must be a number." })
8156
+ IsNumber14({}, { message: "Expected salary to must be a number." })
8030
8157
  ], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
8031
8158
  __decorateClass([
8032
8159
  IsDateString4(
@@ -8072,7 +8199,7 @@ import {
8072
8199
  IsNotEmpty as IsNotEmpty71,
8073
8200
  ArrayNotEmpty as ArrayNotEmpty10,
8074
8201
  Min as Min7,
8075
- IsNumber as IsNumber14
8202
+ IsNumber as IsNumber15
8076
8203
  } from "class-validator";
8077
8204
  var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
8078
8205
  JobLocationEnums2["ONSITE"] = "ONSITE";
@@ -8133,11 +8260,11 @@ __decorateClass([
8133
8260
  ], AdminUpdateJobInformationDto.prototype, "currency", 2);
8134
8261
  __decorateClass([
8135
8262
  Type11(() => Number),
8136
- IsNumber14({}, { message: "Expected salary from must be a number." })
8263
+ IsNumber15({}, { message: "Expected salary from must be a number." })
8137
8264
  ], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
8138
8265
  __decorateClass([
8139
8266
  Type11(() => Number),
8140
- IsNumber14({}, { message: "Expected salary to must be a number." })
8267
+ IsNumber15({}, { message: "Expected salary to must be a number." })
8141
8268
  ], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
8142
8269
  __decorateClass([
8143
8270
  IsDateString5(
@@ -8177,7 +8304,7 @@ import {
8177
8304
  IsNotEmpty as IsNotEmpty72,
8178
8305
  IsArray as IsArray17,
8179
8306
  ArrayNotEmpty as ArrayNotEmpty11,
8180
- IsNumber as IsNumber15,
8307
+ IsNumber as IsNumber16,
8181
8308
  IsOptional as IsOptional47,
8182
8309
  IsEnum as IsEnum28,
8183
8310
  Min as Min8,
@@ -8216,15 +8343,15 @@ var JobLocationAdminDto = class {
8216
8343
  };
8217
8344
  __decorateClass([
8218
8345
  IsOptional47(),
8219
- IsNumber15()
8346
+ IsNumber16()
8220
8347
  ], JobLocationAdminDto.prototype, "countryId", 2);
8221
8348
  __decorateClass([
8222
8349
  IsOptional47(),
8223
- IsNumber15()
8350
+ IsNumber16()
8224
8351
  ], JobLocationAdminDto.prototype, "stateId", 2);
8225
8352
  __decorateClass([
8226
8353
  IsOptional47(),
8227
- IsNumber15()
8354
+ IsNumber16()
8228
8355
  ], JobLocationAdminDto.prototype, "cityId", 2);
8229
8356
  var AdminJobBasicInformationV2Dto = class {
8230
8357
  constructor() {
@@ -8256,7 +8383,7 @@ __decorateClass([
8256
8383
  ], AdminJobBasicInformationV2Dto.prototype, "skills", 2);
8257
8384
  __decorateClass([
8258
8385
  ValidateIf9((o) => !o.isDraft),
8259
- IsNumber15({}, { message: "Openings must be a number" }),
8386
+ IsNumber16({}, { message: "Openings must be a number" }),
8260
8387
  Min8(1, { message: "There must be at least 1 opening" }),
8261
8388
  Type12(() => Number)
8262
8389
  ], AdminJobBasicInformationV2Dto.prototype, "openings", 2);
@@ -8278,13 +8405,13 @@ __decorateClass([
8278
8405
  ], AdminJobBasicInformationV2Dto.prototype, "typeOfEmployment", 2);
8279
8406
  __decorateClass([
8280
8407
  IsOptional47(),
8281
- IsNumber15({}, { message: "Expected salary (from) must be a number" }),
8408
+ IsNumber16({}, { message: "Expected salary (from) must be a number" }),
8282
8409
  Min8(0, { message: "Expected salary (from) cannot be negative" }),
8283
8410
  Type12(() => Number)
8284
8411
  ], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryFrom", 2);
8285
8412
  __decorateClass([
8286
8413
  IsOptional47(),
8287
- IsNumber15({}, { message: "Expected salary (to) must be a number" }),
8414
+ IsNumber16({}, { message: "Expected salary (to) must be a number" }),
8288
8415
  Min8(0, { message: "Expected salary (to) cannot be negative" }),
8289
8416
  Type12(() => Number)
8290
8417
  ], AdminJobBasicInformationV2Dto.prototype, "expectedSalaryTo", 2);
@@ -8331,7 +8458,7 @@ __decorateClass([
8331
8458
  ], AdminJobBasicInformationV2Dto.prototype, "hideExpectedSalaryTo", 2);
8332
8459
  __decorateClass([
8333
8460
  IsOptional47(),
8334
- IsNumber15({}, { message: "Expected annual budget (from) must be a number" }),
8461
+ IsNumber16({}, { message: "Expected annual budget (from) must be a number" }),
8335
8462
  Min8(0, { message: "Expected annual budget (from) cannot be negative" }),
8336
8463
  Type12(() => Number)
8337
8464
  ], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetFrom", 2);
@@ -8340,7 +8467,7 @@ __decorateClass([
8340
8467
  ], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetFrom", 2);
8341
8468
  __decorateClass([
8342
8469
  IsOptional47(),
8343
- IsNumber15({}, { message: "Expected annual budget (to) must be a number" }),
8470
+ IsNumber16({}, { message: "Expected annual budget (to) must be a number" }),
8344
8471
  Min8(0, { message: "Expected annual budget (to) cannot be negative" }),
8345
8472
  Type12(() => Number)
8346
8473
  ], AdminJobBasicInformationV2Dto.prototype, "expectedAnnualBudgetTo", 2);
@@ -8349,7 +8476,7 @@ __decorateClass([
8349
8476
  ], AdminJobBasicInformationV2Dto.prototype, "hideExpectedAnnualBudgetTo", 2);
8350
8477
  __decorateClass([
8351
8478
  IsOptional47(),
8352
- IsNumber15({}, { message: "Number of hours must be a number" }),
8479
+ IsNumber16({}, { message: "Number of hours must be a number" }),
8353
8480
  Min8(0, { message: "Number of hours cannot be negative" }),
8354
8481
  Max4(40, { message: "Number of hours cannot exceed 40" }),
8355
8482
  Type12(() => Number)
@@ -8636,7 +8763,7 @@ import {
8636
8763
  IsString as IsString56,
8637
8764
  IsNotEmpty as IsNotEmpty77,
8638
8765
  IsEmail as IsEmail18,
8639
- IsNumber as IsNumber16
8766
+ IsNumber as IsNumber17
8640
8767
  } from "class-validator";
8641
8768
  var CreateF2FInterviewDto = class {
8642
8769
  };
@@ -8649,10 +8776,10 @@ __decorateClass([
8649
8776
  IsNotEmpty77({ message: "Invitee name is required." })
8650
8777
  ], CreateF2FInterviewDto.prototype, "inviteeName", 2);
8651
8778
  __decorateClass([
8652
- IsNumber16({}, { message: "Interview ID must be a number." })
8779
+ IsNumber17({}, { message: "Interview ID must be a number." })
8653
8780
  ], CreateF2FInterviewDto.prototype, "interviewId", 2);
8654
8781
  __decorateClass([
8655
- IsNumber16({}, { message: "Candidate ID must be a number." })
8782
+ IsNumber17({}, { message: "Candidate ID must be a number." })
8656
8783
  ], CreateF2FInterviewDto.prototype, "candidateId", 2);
8657
8784
 
8658
8785
  // src/modules/interview/dto/create-f2f-interview-direct.dto.ts
@@ -8660,7 +8787,7 @@ import {
8660
8787
  IsString as IsString57,
8661
8788
  IsNotEmpty as IsNotEmpty78,
8662
8789
  IsEmail as IsEmail19,
8663
- IsNumber as IsNumber17
8790
+ IsNumber as IsNumber18
8664
8791
  } from "class-validator";
8665
8792
  var CreateF2FInterviewDirectDto = class {
8666
8793
  };
@@ -8673,10 +8800,10 @@ __decorateClass([
8673
8800
  IsNotEmpty78({ message: "Invitee name is required." })
8674
8801
  ], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
8675
8802
  __decorateClass([
8676
- IsNumber17({}, { message: "Job ID must be a number." })
8803
+ IsNumber18({}, { message: "Job ID must be a number." })
8677
8804
  ], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
8678
8805
  __decorateClass([
8679
- IsNumber17({}, { message: "Candidate ID must be a number." })
8806
+ IsNumber18({}, { message: "Candidate ID must be a number." })
8680
8807
  ], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
8681
8808
 
8682
8809
  // src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
@@ -8751,12 +8878,12 @@ __decorateClass([
8751
8878
  ], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
8752
8879
 
8753
8880
  // src/modules/interview/dto/create-interview-basic-information.dto.ts
8754
- import { IsNotEmpty as IsNotEmpty82, IsString as IsString63, IsNumber as IsNumber18 } from "class-validator";
8881
+ import { IsNotEmpty as IsNotEmpty82, IsString as IsString63, IsNumber as IsNumber19 } from "class-validator";
8755
8882
  var CreateInterviewBasicInformationDto = class {
8756
8883
  };
8757
8884
  __decorateClass([
8758
8885
  IsNotEmpty82({ message: "Job ID is required" }),
8759
- IsNumber18({}, { message: "Job ID must be a number" })
8886
+ IsNumber19({}, { message: "Job ID must be a number" })
8760
8887
  ], CreateInterviewBasicInformationDto.prototype, "jobId", 2);
8761
8888
  __decorateClass([
8762
8889
  IsNotEmpty82({ message: "Interview name is required" }),
@@ -8764,7 +8891,7 @@ __decorateClass([
8764
8891
  ], CreateInterviewBasicInformationDto.prototype, "interviewName", 2);
8765
8892
 
8766
8893
  // src/modules/interview/dto/update-interview-basic-information.dto.ts
8767
- import { IsOptional as IsOptional57, IsString as IsString64, IsNumber as IsNumber19, IsArray as IsArray20, IsDateString as IsDateString8 } from "class-validator";
8894
+ import { IsOptional as IsOptional57, IsString as IsString64, IsNumber as IsNumber20, IsArray as IsArray20, IsDateString as IsDateString8 } from "class-validator";
8768
8895
  var UpdateInterviewBasicInformationDto = class {
8769
8896
  };
8770
8897
  __decorateClass([
@@ -8781,12 +8908,12 @@ __decorateClass([
8781
8908
  ], UpdateInterviewBasicInformationDto.prototype, "scheduledAt", 2);
8782
8909
  __decorateClass([
8783
8910
  IsOptional57(),
8784
- IsNumber19({}, { message: "Duration must be a number" })
8911
+ IsNumber20({}, { message: "Duration must be a number" })
8785
8912
  ], UpdateInterviewBasicInformationDto.prototype, "duration", 2);
8786
8913
  __decorateClass([
8787
8914
  IsOptional57(),
8788
8915
  IsArray20(),
8789
- IsNumber19({}, { each: true, message: "Each skill ID must be a number" })
8916
+ IsNumber20({}, { each: true, message: "Each skill ID must be a number" })
8790
8917
  ], UpdateInterviewBasicInformationDto.prototype, "skillIds", 2);
8791
8918
  __decorateClass([
8792
8919
  IsOptional57(),
@@ -8828,19 +8955,19 @@ var CONTRACT_PATTERN = {
8828
8955
  };
8829
8956
 
8830
8957
  // src/modules/contract/dto/sign-contract-for-client.dto.ts
8831
- import { IsEnum as IsEnum31, IsNotEmpty as IsNotEmpty83, IsNumber as IsNumber20 } from "class-validator";
8958
+ import { IsEnum as IsEnum31, IsNotEmpty as IsNotEmpty83, IsNumber as IsNumber21 } from "class-validator";
8832
8959
  import { Type as Type14 } from "class-transformer";
8833
8960
  var SignContractForClientDto = class {
8834
8961
  };
8835
8962
  __decorateClass([
8836
8963
  IsNotEmpty83({ message: "Job Id is required." }),
8837
8964
  Type14(() => Number),
8838
- IsNumber20({}, { message: "Job ID must be a number." })
8965
+ IsNumber21({}, { message: "Job ID must be a number." })
8839
8966
  ], SignContractForClientDto.prototype, "jobId", 2);
8840
8967
  __decorateClass([
8841
8968
  IsNotEmpty83({ message: "Freelancer ID is required." }),
8842
8969
  Type14(() => Number),
8843
- IsNumber20({}, { message: "Freelancer ID must be a number." })
8970
+ IsNumber21({}, { message: "Freelancer ID must be a number." })
8844
8971
  ], SignContractForClientDto.prototype, "freelancerId", 2);
8845
8972
  __decorateClass([
8846
8973
  IsNotEmpty83({ message: "Contract type is required." }),
@@ -8848,19 +8975,19 @@ __decorateClass([
8848
8975
  ], SignContractForClientDto.prototype, "contractType", 2);
8849
8976
 
8850
8977
  // src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
8851
- import { IsEnum as IsEnum32, IsNotEmpty as IsNotEmpty84, IsNumber as IsNumber21 } from "class-validator";
8978
+ import { IsEnum as IsEnum32, IsNotEmpty as IsNotEmpty84, IsNumber as IsNumber22 } from "class-validator";
8852
8979
  import { Type as Type15 } from "class-transformer";
8853
8980
  var SignContractForFreelancerDto = class {
8854
8981
  };
8855
8982
  __decorateClass([
8856
8983
  IsNotEmpty84({ message: "Job Id is required." }),
8857
8984
  Type15(() => Number),
8858
- IsNumber21({}, { message: "Job ID must be a number." })
8985
+ IsNumber22({}, { message: "Job ID must be a number." })
8859
8986
  ], SignContractForFreelancerDto.prototype, "jobId", 2);
8860
8987
  __decorateClass([
8861
8988
  IsNotEmpty84({ message: "Client ID is required." }),
8862
8989
  Type15(() => Number),
8863
- IsNumber21({}, { message: "Client ID must be a number." })
8990
+ IsNumber22({}, { message: "Client ID must be a number." })
8864
8991
  ], SignContractForFreelancerDto.prototype, "clientId", 2);
8865
8992
  __decorateClass([
8866
8993
  IsNotEmpty84({ message: "Contract type is required." }),
@@ -8868,12 +8995,12 @@ __decorateClass([
8868
8995
  ], SignContractForFreelancerDto.prototype, "contractType", 2);
8869
8996
 
8870
8997
  // src/modules/contract/dto/generate-contract.dto.ts
8871
- import { IsNotEmpty as IsNotEmpty85, IsNumber as IsNumber22, IsOptional as IsOptional58, IsString as IsString65 } from "class-validator";
8998
+ import { IsNotEmpty as IsNotEmpty85, IsNumber as IsNumber23, IsOptional as IsOptional58, IsString as IsString65 } from "class-validator";
8872
8999
  var GenerateContractDto = class {
8873
9000
  };
8874
9001
  __decorateClass([
8875
9002
  IsNotEmpty85({ message: "Hiring ID is required" }),
8876
- IsNumber22({}, { message: "Hiring ID must be a number" })
9003
+ IsNumber23({}, { message: "Hiring ID must be a number" })
8877
9004
  ], GenerateContractDto.prototype, "hiringId", 2);
8878
9005
  __decorateClass([
8879
9006
  IsOptional58(),
@@ -8903,16 +9030,16 @@ __decorateClass([
8903
9030
  ], EsignContractFreelancerDto.prototype, "contractUuid", 2);
8904
9031
 
8905
9032
  // src/modules/contract/dto/escrow-fund-contract.dto.ts
8906
- import { IsNotEmpty as IsNotEmpty88, IsNumber as IsNumber23, IsOptional as IsOptional59, IsString as IsString68 } from "class-validator";
9033
+ import { IsNotEmpty as IsNotEmpty88, IsNumber as IsNumber24, IsOptional as IsOptional59, IsString as IsString68 } from "class-validator";
8907
9034
  var EscrowFundContractDto = class {
8908
9035
  };
8909
9036
  __decorateClass([
8910
9037
  IsNotEmpty88({ message: "Contract ID is required" }),
8911
- IsNumber23({}, { message: "Contract ID must be a number" })
9038
+ IsNumber24({}, { message: "Contract ID must be a number" })
8912
9039
  ], EscrowFundContractDto.prototype, "contractId", 2);
8913
9040
  __decorateClass([
8914
9041
  IsNotEmpty88({ message: "Amount is required" }),
8915
- IsNumber23({}, { message: "Amount must be a number" })
9042
+ IsNumber24({}, { message: "Amount must be a number" })
8916
9043
  ], EscrowFundContractDto.prototype, "amount", 2);
8917
9044
  __decorateClass([
8918
9045
  IsOptional59(),
@@ -8954,12 +9081,12 @@ __decorateClass([
8954
9081
  ], CreateCheckoutSessionDto.prototype, "amount", 2);
8955
9082
 
8956
9083
  // src/modules/stripe/dto/pre-checkout-calculation.dto.ts
8957
- import { IsNotEmpty as IsNotEmpty90, IsNumber as IsNumber24, IsOptional as IsOptional60, IsString as IsString69 } from "class-validator";
9084
+ import { IsNotEmpty as IsNotEmpty90, IsNumber as IsNumber25, IsOptional as IsOptional60, IsString as IsString69 } from "class-validator";
8958
9085
  var PreCheckoutCalculationDto = class {
8959
9086
  };
8960
9087
  __decorateClass([
8961
9088
  IsNotEmpty90({ message: "Amount is required" }),
8962
- IsNumber24({}, { message: "Amount must be a number" })
9089
+ IsNumber25({}, { message: "Amount must be a number" })
8963
9090
  ], PreCheckoutCalculationDto.prototype, "amount", 2);
8964
9091
  __decorateClass([
8965
9092
  IsOptional60(),
@@ -8971,12 +9098,12 @@ __decorateClass([
8971
9098
  ], PreCheckoutCalculationDto.prototype, "description", 2);
8972
9099
 
8973
9100
  // src/modules/stripe/dto/client-add-fund.dto.ts
8974
- import { IsNotEmpty as IsNotEmpty91, IsNumber as IsNumber25, IsOptional as IsOptional61, IsString as IsString70 } from "class-validator";
9101
+ import { IsNotEmpty as IsNotEmpty91, IsNumber as IsNumber26, IsOptional as IsOptional61, IsString as IsString70 } from "class-validator";
8975
9102
  var ClientAddFundDto = class {
8976
9103
  };
8977
9104
  __decorateClass([
8978
9105
  IsNotEmpty91({ message: "Amount is required" }),
8979
- IsNumber25({}, { message: "Amount must be a number" })
9106
+ IsNumber26({}, { message: "Amount must be a number" })
8980
9107
  ], ClientAddFundDto.prototype, "amount", 2);
8981
9108
  __decorateClass([
8982
9109
  IsOptional61(),
@@ -8988,12 +9115,12 @@ __decorateClass([
8988
9115
  ], ClientAddFundDto.prototype, "description", 2);
8989
9116
 
8990
9117
  // src/modules/stripe/dto/transfer-funds.dto.ts
8991
- import { IsNotEmpty as IsNotEmpty92, IsNumber as IsNumber26, IsOptional as IsOptional62, IsString as IsString71 } from "class-validator";
9118
+ import { IsNotEmpty as IsNotEmpty92, IsNumber as IsNumber27, IsOptional as IsOptional62, IsString as IsString71 } from "class-validator";
8992
9119
  var TransferFundsDto = class {
8993
9120
  };
8994
9121
  __decorateClass([
8995
9122
  IsNotEmpty92({ message: "Amount is required" }),
8996
- IsNumber26({}, { message: "Amount must be a number" })
9123
+ IsNumber27({}, { message: "Amount must be a number" })
8997
9124
  ], TransferFundsDto.prototype, "amount", 2);
8998
9125
  __decorateClass([
8999
9126
  IsNotEmpty92({ message: "Connected account ID is required" }),
@@ -9005,12 +9132,12 @@ __decorateClass([
9005
9132
  ], TransferFundsDto.prototype, "description", 2);
9006
9133
 
9007
9134
  // src/modules/stripe/dto/create-payout.dto.ts
9008
- import { IsNotEmpty as IsNotEmpty93, IsNumber as IsNumber27, IsOptional as IsOptional63, IsString as IsString72 } from "class-validator";
9135
+ import { IsNotEmpty as IsNotEmpty93, IsNumber as IsNumber28, IsOptional as IsOptional63, IsString as IsString72 } from "class-validator";
9009
9136
  var CreatePayoutDto = class {
9010
9137
  };
9011
9138
  __decorateClass([
9012
9139
  IsNotEmpty93({ message: "Amount is required" }),
9013
- IsNumber27({}, { message: "Amount must be a number" })
9140
+ IsNumber28({}, { message: "Amount must be a number" })
9014
9141
  ], CreatePayoutDto.prototype, "amount", 2);
9015
9142
  __decorateClass([
9016
9143
  IsNotEmpty93({ message: "Connected account ID is required" }),
@@ -9073,13 +9200,13 @@ import {
9073
9200
  IsOptional as IsOptional64,
9074
9201
  IsString as IsString73,
9075
9202
  Matches as Matches13,
9076
- IsNumber as IsNumber28
9203
+ IsNumber as IsNumber29
9077
9204
  } from "class-validator";
9078
9205
  var CreateFreelancerTimesheetDto = class {
9079
9206
  };
9080
9207
  __decorateClass([
9081
9208
  IsNotEmpty94({ message: "Job id is required" }),
9082
- IsNumber28({}, { message: "Job id must be a number" })
9209
+ IsNumber29({}, { message: "Job id must be a number" })
9083
9210
  ], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
9084
9211
  __decorateClass([
9085
9212
  IsNotEmpty94({ message: "start date is required" }),
@@ -9129,13 +9256,13 @@ import {
9129
9256
  IsOptional as IsOptional65,
9130
9257
  IsString as IsString74,
9131
9258
  Matches as Matches14,
9132
- IsNumber as IsNumber29
9259
+ IsNumber as IsNumber30
9133
9260
  } from "class-validator";
9134
9261
  var UpdateFreelancerTimesheetDto = class {
9135
9262
  };
9136
9263
  __decorateClass([
9137
9264
  IsNotEmpty95({ message: "Job id is required" }),
9138
- IsNumber29({}, { message: "Job id must be a number" })
9265
+ IsNumber30({}, { message: "Job id must be a number" })
9139
9266
  ], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
9140
9267
  __decorateClass([
9141
9268
  IsNotEmpty95({ message: "start date is required" }),
@@ -9178,41 +9305,41 @@ __decorateClass([
9178
9305
  ], UpdateFreelancerTimesheetDto.prototype, "description", 2);
9179
9306
 
9180
9307
  // src/modules/timesheet/dto/submit-timesheet.dto.ts
9181
- import { IsNotEmpty as IsNotEmpty96, IsNumber as IsNumber30 } from "class-validator";
9308
+ import { IsNotEmpty as IsNotEmpty96, IsNumber as IsNumber31 } from "class-validator";
9182
9309
  var SubmitTimesheetDto = class {
9183
9310
  };
9184
9311
  __decorateClass([
9185
9312
  IsNotEmpty96({ message: "Timesheet line ID is required" }),
9186
- IsNumber30({}, { message: "Timesheet line ID must be a number" })
9313
+ IsNumber31({}, { message: "Timesheet line ID must be a number" })
9187
9314
  ], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
9188
9315
 
9189
9316
  // src/modules/timesheet/dto/resubmit-timesheet.dto.ts
9190
- import { IsNotEmpty as IsNotEmpty97, IsNumber as IsNumber31 } from "class-validator";
9317
+ import { IsNotEmpty as IsNotEmpty97, IsNumber as IsNumber32 } from "class-validator";
9191
9318
  var ResubmitTimesheetDto = class {
9192
9319
  };
9193
9320
  __decorateClass([
9194
9321
  IsNotEmpty97({ message: "Timesheet line ID is required" }),
9195
- IsNumber31({}, { message: "Timesheet line ID must be a number" })
9322
+ IsNumber32({}, { message: "Timesheet line ID must be a number" })
9196
9323
  ], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
9197
9324
 
9198
9325
  // src/modules/timesheet/dto/approve-timesheets.dto.ts
9199
- import { ArrayNotEmpty as ArrayNotEmpty13, IsArray as IsArray21, IsNumber as IsNumber32 } from "class-validator";
9326
+ import { ArrayNotEmpty as ArrayNotEmpty13, IsArray as IsArray21, IsNumber as IsNumber33 } from "class-validator";
9200
9327
  var ApproveTimesheetsDto = class {
9201
9328
  };
9202
9329
  __decorateClass([
9203
9330
  IsArray21({ message: "Timesheet line IDs must be an array" }),
9204
9331
  ArrayNotEmpty13({ message: "At least one timesheet line ID is required" }),
9205
- IsNumber32({}, { each: true, message: "Each timesheet line ID must be a number" })
9332
+ IsNumber33({}, { each: true, message: "Each timesheet line ID must be a number" })
9206
9333
  ], ApproveTimesheetsDto.prototype, "timesheetLineIds", 2);
9207
9334
 
9208
9335
  // src/modules/timesheet/dto/send-back-timesheets.dto.ts
9209
- import { ArrayNotEmpty as ArrayNotEmpty14, IsArray as IsArray22, IsNumber as IsNumber33, IsOptional as IsOptional66, IsString as IsString75 } from "class-validator";
9336
+ import { ArrayNotEmpty as ArrayNotEmpty14, IsArray as IsArray22, IsNumber as IsNumber34, IsOptional as IsOptional66, IsString as IsString75 } from "class-validator";
9210
9337
  var SendBackTimesheetsDto = class {
9211
9338
  };
9212
9339
  __decorateClass([
9213
9340
  IsArray22({ message: "Timesheet line IDs must be an array" }),
9214
9341
  ArrayNotEmpty14({ message: "At least one timesheet line ID is required" }),
9215
- IsNumber33({}, { each: true, message: "Each timesheet line ID must be a number" })
9342
+ IsNumber34({}, { each: true, message: "Each timesheet line ID must be a number" })
9216
9343
  ], SendBackTimesheetsDto.prototype, "timesheetLineIds", 2);
9217
9344
  __decorateClass([
9218
9345
  IsOptional66(),
@@ -9220,20 +9347,20 @@ __decorateClass([
9220
9347
  ], SendBackTimesheetsDto.prototype, "reason", 2);
9221
9348
 
9222
9349
  // src/modules/timesheet/dto/create-default-timesheet-line.dto.ts
9223
- import { IsNotEmpty as IsNotEmpty98, IsNumber as IsNumber34 } from "class-validator";
9350
+ import { IsNotEmpty as IsNotEmpty98, IsNumber as IsNumber35 } from "class-validator";
9224
9351
  var CreateDefaultTimesheetLineDto = class {
9225
9352
  };
9226
9353
  __decorateClass([
9227
9354
  IsNotEmpty98({ message: "Contract ID is required" }),
9228
- IsNumber34({}, { message: "Contract ID must be a number" })
9355
+ IsNumber35({}, { message: "Contract ID must be a number" })
9229
9356
  ], CreateDefaultTimesheetLineDto.prototype, "contractId", 2);
9230
9357
  __decorateClass([
9231
9358
  IsNotEmpty98({ message: "Freelancer ID is required" }),
9232
- IsNumber34({}, { message: "Freelancer ID must be a number" })
9359
+ IsNumber35({}, { message: "Freelancer ID must be a number" })
9233
9360
  ], CreateDefaultTimesheetLineDto.prototype, "freelancerId", 2);
9234
9361
  __decorateClass([
9235
9362
  IsNotEmpty98({ message: "Client ID is required" }),
9236
- IsNumber34({}, { message: "Client ID must be a number" })
9363
+ IsNumber35({}, { message: "Client ID must be a number" })
9237
9364
  ], CreateDefaultTimesheetLineDto.prototype, "clientId", 2);
9238
9365
 
9239
9366
  // src/modules/invoice/pattern/pattern.ts
@@ -9266,12 +9393,12 @@ __decorateClass([
9266
9393
  ], UpdateInvoiceStatusDto.prototype, "status", 2);
9267
9394
 
9268
9395
  // src/modules/invoice/dto/create-invoice.dto.ts
9269
- import { IsNotEmpty as IsNotEmpty100, IsNumber as IsNumber35 } from "class-validator";
9396
+ import { IsNotEmpty as IsNotEmpty100, IsNumber as IsNumber36 } from "class-validator";
9270
9397
  var CreateInvoiceDto = class {
9271
9398
  };
9272
9399
  __decorateClass([
9273
9400
  IsNotEmpty100({ message: "Timesheet line ID is required" }),
9274
- IsNumber35({}, { message: "Timesheet line ID must be a number" })
9401
+ IsNumber36({}, { message: "Timesheet line ID must be a number" })
9275
9402
  ], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
9276
9403
 
9277
9404
  // src/modules/dispute/pattern/pattern.ts
@@ -9289,7 +9416,7 @@ import {
9289
9416
  IsOptional as IsOptional67,
9290
9417
  MaxLength as MaxLength21,
9291
9418
  IsObject as IsObject7,
9292
- IsNumber as IsNumber36,
9419
+ IsNumber as IsNumber37,
9293
9420
  ValidateIf as ValidateIf11
9294
9421
  } from "class-validator";
9295
9422
  import { Transform as Transform4, Type as Type16 } from "class-transformer";
@@ -9297,12 +9424,12 @@ var CreateDisputeDto = class {
9297
9424
  };
9298
9425
  __decorateClass([
9299
9426
  ValidateIf11((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
9300
- IsNumber36({}, { message: "Client id must be a number" }),
9427
+ IsNumber37({}, { message: "Client id must be a number" }),
9301
9428
  Type16(() => Number)
9302
9429
  ], CreateDisputeDto.prototype, "clientId", 2);
9303
9430
  __decorateClass([
9304
9431
  ValidateIf11((o) => o.initiatorType === "CLIENT" /* CLIENT */),
9305
- IsNumber36({}, { message: "Freelancer id must be a number" }),
9432
+ IsNumber37({}, { message: "Freelancer id must be a number" }),
9306
9433
  Type16(() => Number)
9307
9434
  ], CreateDisputeDto.prototype, "freelancerId", 2);
9308
9435
  __decorateClass([
@@ -9407,7 +9534,7 @@ __decorateClass([
9407
9534
  ], CheckResumeEligibilityDto.prototype, "userId", 2);
9408
9535
 
9409
9536
  // src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
9410
- import { IsNotEmpty as IsNotEmpty106, IsString as IsString80, IsOptional as IsOptional71, IsArray as IsArray23, IsNumber as IsNumber37 } from "class-validator";
9537
+ import { IsNotEmpty as IsNotEmpty106, IsString as IsString80, IsOptional as IsOptional71, IsArray as IsArray23, IsNumber as IsNumber38 } from "class-validator";
9411
9538
  var AiInterviewTemplateGenerationDto = class {
9412
9539
  };
9413
9540
  __decorateClass([
@@ -9421,7 +9548,7 @@ __decorateClass([
9421
9548
  ], AiInterviewTemplateGenerationDto.prototype, "skills", 2);
9422
9549
  __decorateClass([
9423
9550
  IsOptional71(),
9424
- IsNumber37({}, { message: "Number of questions must be a number" })
9551
+ IsNumber38({}, { message: "Number of questions must be a number" })
9425
9552
  ], AiInterviewTemplateGenerationDto.prototype, "numberOfQuestions", 2);
9426
9553
  __decorateClass([
9427
9554
  IsOptional71(),
@@ -9429,7 +9556,7 @@ __decorateClass([
9429
9556
  ], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
9430
9557
 
9431
9558
  // src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
9432
- import { IsNotEmpty as IsNotEmpty107, IsString as IsString81, IsOptional as IsOptional72, IsNumber as IsNumber38 } from "class-validator";
9559
+ import { IsNotEmpty as IsNotEmpty107, IsString as IsString81, IsOptional as IsOptional72, IsNumber as IsNumber39 } from "class-validator";
9433
9560
  var AiInterviewLinkGenerationDto = class {
9434
9561
  };
9435
9562
  __decorateClass([
@@ -9446,11 +9573,11 @@ __decorateClass([
9446
9573
  ], AiInterviewLinkGenerationDto.prototype, "jobId", 2);
9447
9574
  __decorateClass([
9448
9575
  IsOptional72(),
9449
- IsNumber38({}, { message: "Expiry hours must be a number" })
9576
+ IsNumber39({}, { message: "Expiry hours must be a number" })
9450
9577
  ], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
9451
9578
 
9452
9579
  // src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
9453
- import { IsNotEmpty as IsNotEmpty108, IsString as IsString82, IsOptional as IsOptional73, IsNumber as IsNumber39 } from "class-validator";
9580
+ import { IsNotEmpty as IsNotEmpty108, IsString as IsString82, IsOptional as IsOptional73, IsNumber as IsNumber40 } from "class-validator";
9454
9581
  var AiAssessmentCreationDto = class {
9455
9582
  };
9456
9583
  __decorateClass([
@@ -9463,7 +9590,7 @@ __decorateClass([
9463
9590
  ], AiAssessmentCreationDto.prototype, "assessmentType", 2);
9464
9591
  __decorateClass([
9465
9592
  IsOptional73(),
9466
- IsNumber39({}, { message: "Number of questions must be a number" })
9593
+ IsNumber40({}, { message: "Number of questions must be a number" })
9467
9594
  ], AiAssessmentCreationDto.prototype, "numberOfQuestions", 2);
9468
9595
  __decorateClass([
9469
9596
  IsOptional73(),
@@ -9483,16 +9610,16 @@ var HIRING_PATTERN = {
9483
9610
  };
9484
9611
 
9485
9612
  // src/modules/hiring/dto/create-hiring.dto.ts
9486
- import { IsNotEmpty as IsNotEmpty109, IsNumber as IsNumber40 } from "class-validator";
9613
+ import { IsNotEmpty as IsNotEmpty109, IsNumber as IsNumber41 } from "class-validator";
9487
9614
  var CreateHiringDto = class {
9488
9615
  };
9489
9616
  __decorateClass([
9490
9617
  IsNotEmpty109({ message: "Freelancer ID is required" }),
9491
- IsNumber40({}, { message: "Freelancer ID must be a number" })
9618
+ IsNumber41({}, { message: "Freelancer ID must be a number" })
9492
9619
  ], CreateHiringDto.prototype, "freelancerId", 2);
9493
9620
  __decorateClass([
9494
9621
  IsNotEmpty109({ message: "Job ID is required" }),
9495
- IsNumber40({}, { message: "Job ID must be a number" })
9622
+ IsNumber41({}, { message: "Job ID must be a number" })
9496
9623
  ], CreateHiringDto.prototype, "jobId", 2);
9497
9624
 
9498
9625
  // src/modules/llm/pattern/pattern.ts
@@ -9540,25 +9667,25 @@ var WALLET_ADMIN_PATTERN = {
9540
9667
  };
9541
9668
 
9542
9669
  // src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
9543
- import { IsNotEmpty as IsNotEmpty110, IsNumber as IsNumber41 } from "class-validator";
9670
+ import { IsNotEmpty as IsNotEmpty110, IsNumber as IsNumber42 } from "class-validator";
9544
9671
  var AddTopupEscrowAmountDto = class {
9545
9672
  };
9546
9673
  __decorateClass([
9547
9674
  IsNotEmpty110({ message: "Amount is required" }),
9548
- IsNumber41({}, { message: "Amount must be a number" })
9675
+ IsNumber42({}, { message: "Amount must be a number" })
9549
9676
  ], AddTopupEscrowAmountDto.prototype, "amount", 2);
9550
9677
 
9551
9678
  // src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
9552
- import { IsNotEmpty as IsNotEmpty111, IsNumber as IsNumber42 } from "class-validator";
9679
+ import { IsNotEmpty as IsNotEmpty111, IsNumber as IsNumber43 } from "class-validator";
9553
9680
  var DebitCommissionFteHiringDto = class {
9554
9681
  };
9555
9682
  __decorateClass([
9556
9683
  IsNotEmpty111({ message: "Hiring ID is required" }),
9557
- IsNumber42({}, { message: "Hiring ID must be a number" })
9684
+ IsNumber43({}, { message: "Hiring ID must be a number" })
9558
9685
  ], DebitCommissionFteHiringDto.prototype, "hiringId", 2);
9559
9686
  __decorateClass([
9560
9687
  IsNotEmpty111({ message: "Amount is required" }),
9561
- IsNumber42({}, { message: "Amount must be a number" })
9688
+ IsNumber43({}, { message: "Amount must be a number" })
9562
9689
  ], DebitCommissionFteHiringDto.prototype, "amount", 2);
9563
9690
 
9564
9691
  // src/adapters/tcp/user.tcp.adapter.ts
@@ -1,7 +1,18 @@
1
1
  import { RatingTypeEnum } from '../../../entities/rating.entity';
2
2
  export declare class CreateRatingDto {
3
3
  revieweeId: number;
4
+ jobId: number;
4
5
  ratingType: RatingTypeEnum;
5
- rating: number;
6
- review?: string;
6
+ reviewerComment?: string;
7
+ overallExperience?: number;
8
+ workQuality?: number;
9
+ oneTimeDelivery?: number;
10
+ understaning?: number;
11
+ communication?: number;
12
+ skillUtilized?: number;
13
+ communicationClarity?: number;
14
+ requirementsClarity?: number;
15
+ responsiveness?: number;
16
+ paymentPromptness?: number;
17
+ responsibilitiesAndExpectations?: number;
7
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.584",
3
+ "version": "1.0.585",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",