@experts_hub/shared 1.0.584 → 1.0.586
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/entities/rating.entity.d.ts +15 -2
- package/dist/index.d.mts +35 -5
- package/dist/index.d.ts +35 -5
- package/dist/index.js +447 -305
- package/dist/index.mjs +330 -188
- package/dist/modules/admin-role/dto/create-admin-role.dto.d.ts +1 -0
- package/dist/modules/admin-role/dto/index.d.ts +1 -0
- package/dist/modules/admin-role/dto/update-admin-role-status.dto.d.ts +3 -0
- package/dist/modules/admin-role/pattern/pattern.d.ts +1 -0
- package/dist/modules/rating/dto/add.rating.dto.d.ts +13 -2
- package/package.json +1 -1
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
|
-
|
|
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, "
|
|
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
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
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);
|
|
7001
7120
|
__decorateClass([
|
|
7002
7121
|
IsOptional28(),
|
|
7003
|
-
|
|
7004
|
-
|
|
7122
|
+
IsNumber8(),
|
|
7123
|
+
Min3(0),
|
|
7124
|
+
Max3(5)
|
|
7125
|
+
], CreateRatingDto.prototype, "paymentPromptness", 2);
|
|
7126
|
+
__decorateClass([
|
|
7127
|
+
IsOptional28(),
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
8152
|
+
IsNumber14({}, { message: "Expected salary from must be a number." })
|
|
8026
8153
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
8027
8154
|
__decorateClass([
|
|
8028
8155
|
Type10(() => Number),
|
|
8029
|
-
|
|
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
|
|
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
|
-
|
|
8263
|
+
IsNumber15({}, { message: "Expected salary from must be a number." })
|
|
8137
8264
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
8138
8265
|
__decorateClass([
|
|
8139
8266
|
Type11(() => Number),
|
|
8140
|
-
|
|
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
|
|
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
|
-
|
|
8346
|
+
IsNumber16()
|
|
8220
8347
|
], JobLocationAdminDto.prototype, "countryId", 2);
|
|
8221
8348
|
__decorateClass([
|
|
8222
8349
|
IsOptional47(),
|
|
8223
|
-
|
|
8350
|
+
IsNumber16()
|
|
8224
8351
|
], JobLocationAdminDto.prototype, "stateId", 2);
|
|
8225
8352
|
__decorateClass([
|
|
8226
8353
|
IsOptional47(),
|
|
8227
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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)
|
|
@@ -8439,11 +8566,12 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
8439
8566
|
adminUpdateRole: "admin.update.role",
|
|
8440
8567
|
adminDeleteRole: "admin.delete.role",
|
|
8441
8568
|
attachPermissionsToRole: "attach.permissions.to.role",
|
|
8442
|
-
fetchAdminRolePermissions: "fetch.admin.role.permissions"
|
|
8569
|
+
fetchAdminRolePermissions: "fetch.admin.role.permissions",
|
|
8570
|
+
updateAdminRoleStatus: "update.admin.role.status"
|
|
8443
8571
|
};
|
|
8444
8572
|
|
|
8445
8573
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
8446
|
-
import { IsNotEmpty as IsNotEmpty73, IsOptional as IsOptional49, IsString as IsString52 } from "class-validator";
|
|
8574
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty73, IsOptional as IsOptional49, IsString as IsString52 } from "class-validator";
|
|
8447
8575
|
var CreateAdminRoleDto = class {
|
|
8448
8576
|
};
|
|
8449
8577
|
__decorateClass([
|
|
@@ -8454,6 +8582,10 @@ __decorateClass([
|
|
|
8454
8582
|
IsOptional49(),
|
|
8455
8583
|
IsString52({ message: "Role description must be a string." })
|
|
8456
8584
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
8585
|
+
__decorateClass([
|
|
8586
|
+
IsOptional49(),
|
|
8587
|
+
IsBoolean15({ message: "Is active must be a boolean value" })
|
|
8588
|
+
], CreateAdminRoleDto.prototype, "iaActive", 2);
|
|
8457
8589
|
|
|
8458
8590
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
8459
8591
|
import { IsBoolean as IsBoolean16, IsNotEmpty as IsNotEmpty74, IsOptional as IsOptional50, IsString as IsString53 } from "class-validator";
|
|
@@ -8485,6 +8617,15 @@ __decorateClass([
|
|
|
8485
8617
|
IsString54({ message: "Permission IDs must be a comma-separated string." })
|
|
8486
8618
|
], AttachPermissionsToRoleDto.prototype, "permissionIds", 2);
|
|
8487
8619
|
|
|
8620
|
+
// src/modules/admin-role/dto/update-admin-role-status.dto.ts
|
|
8621
|
+
import { IsBoolean as IsBoolean17, IsNotEmpty as IsNotEmpty76 } from "class-validator";
|
|
8622
|
+
var UpdateAdminRoleStatusDto = class {
|
|
8623
|
+
};
|
|
8624
|
+
__decorateClass([
|
|
8625
|
+
IsNotEmpty76({ message: "Please specify admin role status." }),
|
|
8626
|
+
IsBoolean17({ message: "Is active must be a boolean value" })
|
|
8627
|
+
], UpdateAdminRoleStatusDto.prototype, "isActive", 2);
|
|
8628
|
+
|
|
8488
8629
|
// src/modules/admin-permission/pattern/pattern.ts
|
|
8489
8630
|
var ADMIN_PERMISSION_PATTERN = {
|
|
8490
8631
|
fetchAdminPermissions: "fetch.admin.permissions"
|
|
@@ -8564,7 +8705,7 @@ var INTERVIEW_PATTERN = {
|
|
|
8564
8705
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
8565
8706
|
import {
|
|
8566
8707
|
IsString as IsString55,
|
|
8567
|
-
IsNotEmpty as
|
|
8708
|
+
IsNotEmpty as IsNotEmpty77,
|
|
8568
8709
|
IsArray as IsArray18,
|
|
8569
8710
|
ArrayNotEmpty as ArrayNotEmpty12,
|
|
8570
8711
|
IsEmail as IsEmail17,
|
|
@@ -8594,7 +8735,7 @@ __decorateClass([
|
|
|
8594
8735
|
var NewCandidateDto = class {
|
|
8595
8736
|
};
|
|
8596
8737
|
__decorateClass([
|
|
8597
|
-
|
|
8738
|
+
IsNotEmpty77({ message: "Please enter the candidate name" }),
|
|
8598
8739
|
IsString55({ message: "Name must be a string" })
|
|
8599
8740
|
], NewCandidateDto.prototype, "name", 2);
|
|
8600
8741
|
__decorateClass([
|
|
@@ -8634,67 +8775,67 @@ __decorateClass([
|
|
|
8634
8775
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
8635
8776
|
import {
|
|
8636
8777
|
IsString as IsString56,
|
|
8637
|
-
IsNotEmpty as
|
|
8778
|
+
IsNotEmpty as IsNotEmpty78,
|
|
8638
8779
|
IsEmail as IsEmail18,
|
|
8639
|
-
IsNumber as
|
|
8780
|
+
IsNumber as IsNumber17
|
|
8640
8781
|
} from "class-validator";
|
|
8641
8782
|
var CreateF2FInterviewDto = class {
|
|
8642
8783
|
};
|
|
8643
8784
|
__decorateClass([
|
|
8644
8785
|
IsEmail18({}, { message: "Please enter a valid email address." }),
|
|
8645
|
-
|
|
8786
|
+
IsNotEmpty78({ message: "Invitee email is required." })
|
|
8646
8787
|
], CreateF2FInterviewDto.prototype, "inviteeEmail", 2);
|
|
8647
8788
|
__decorateClass([
|
|
8648
8789
|
IsString56({ message: "Invitee name must be a string." }),
|
|
8649
|
-
|
|
8790
|
+
IsNotEmpty78({ message: "Invitee name is required." })
|
|
8650
8791
|
], CreateF2FInterviewDto.prototype, "inviteeName", 2);
|
|
8651
8792
|
__decorateClass([
|
|
8652
|
-
|
|
8793
|
+
IsNumber17({}, { message: "Interview ID must be a number." })
|
|
8653
8794
|
], CreateF2FInterviewDto.prototype, "interviewId", 2);
|
|
8654
8795
|
__decorateClass([
|
|
8655
|
-
|
|
8796
|
+
IsNumber17({}, { message: "Candidate ID must be a number." })
|
|
8656
8797
|
], CreateF2FInterviewDto.prototype, "candidateId", 2);
|
|
8657
8798
|
|
|
8658
8799
|
// src/modules/interview/dto/create-f2f-interview-direct.dto.ts
|
|
8659
8800
|
import {
|
|
8660
8801
|
IsString as IsString57,
|
|
8661
|
-
IsNotEmpty as
|
|
8802
|
+
IsNotEmpty as IsNotEmpty79,
|
|
8662
8803
|
IsEmail as IsEmail19,
|
|
8663
|
-
IsNumber as
|
|
8804
|
+
IsNumber as IsNumber18
|
|
8664
8805
|
} from "class-validator";
|
|
8665
8806
|
var CreateF2FInterviewDirectDto = class {
|
|
8666
8807
|
};
|
|
8667
8808
|
__decorateClass([
|
|
8668
8809
|
IsEmail19({}, { message: "Please enter a valid email address." }),
|
|
8669
|
-
|
|
8810
|
+
IsNotEmpty79({ message: "Invitee email is required." })
|
|
8670
8811
|
], CreateF2FInterviewDirectDto.prototype, "inviteeEmail", 2);
|
|
8671
8812
|
__decorateClass([
|
|
8672
8813
|
IsString57({ message: "Invitee name must be a string." }),
|
|
8673
|
-
|
|
8814
|
+
IsNotEmpty79({ message: "Invitee name is required." })
|
|
8674
8815
|
], CreateF2FInterviewDirectDto.prototype, "inviteeName", 2);
|
|
8675
8816
|
__decorateClass([
|
|
8676
|
-
|
|
8817
|
+
IsNumber18({}, { message: "Job ID must be a number." })
|
|
8677
8818
|
], CreateF2FInterviewDirectDto.prototype, "jobId", 2);
|
|
8678
8819
|
__decorateClass([
|
|
8679
|
-
|
|
8820
|
+
IsNumber18({}, { message: "Candidate ID must be a number." })
|
|
8680
8821
|
], CreateF2FInterviewDirectDto.prototype, "candidateId", 2);
|
|
8681
8822
|
|
|
8682
8823
|
// src/modules/interview/dto/create-f2f-interview-reschedule-request.dto.ts
|
|
8683
8824
|
import {
|
|
8684
8825
|
IsString as IsString58,
|
|
8685
|
-
IsNotEmpty as
|
|
8826
|
+
IsNotEmpty as IsNotEmpty80
|
|
8686
8827
|
} from "class-validator";
|
|
8687
8828
|
var CreateF2FInterviewRescheduleRequestDto = class {
|
|
8688
8829
|
};
|
|
8689
8830
|
__decorateClass([
|
|
8690
|
-
|
|
8831
|
+
IsNotEmpty80({ message: "F2F Interview ID is required." })
|
|
8691
8832
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "f2FInterviewId", 2);
|
|
8692
8833
|
__decorateClass([
|
|
8693
|
-
|
|
8834
|
+
IsNotEmpty80({ message: "Rescheduled date is required." })
|
|
8694
8835
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledDate", 2);
|
|
8695
8836
|
__decorateClass([
|
|
8696
8837
|
IsString58({ message: "Rescheduled slot must be a string." }),
|
|
8697
|
-
|
|
8838
|
+
IsNotEmpty80({ message: "Rescheduled slot is required." })
|
|
8698
8839
|
], CreateF2FInterviewRescheduleRequestDto.prototype, "rescheduledSlot", 2);
|
|
8699
8840
|
__decorateClass([
|
|
8700
8841
|
IsString58({ message: "Freelancer reason must be a string." })
|
|
@@ -8703,12 +8844,12 @@ __decorateClass([
|
|
|
8703
8844
|
// src/modules/interview/dto/create-ai-interview-reschedule-request.dto.ts
|
|
8704
8845
|
import {
|
|
8705
8846
|
IsString as IsString59,
|
|
8706
|
-
IsNotEmpty as
|
|
8847
|
+
IsNotEmpty as IsNotEmpty81
|
|
8707
8848
|
} from "class-validator";
|
|
8708
8849
|
var CreateAIInterviewRescheduleRequestDto = class {
|
|
8709
8850
|
};
|
|
8710
8851
|
__decorateClass([
|
|
8711
|
-
|
|
8852
|
+
IsNotEmpty81({ message: "AI Interview ID is required." })
|
|
8712
8853
|
], CreateAIInterviewRescheduleRequestDto.prototype, "aiInterviewId", 2);
|
|
8713
8854
|
__decorateClass([
|
|
8714
8855
|
IsString59({ message: "Freelancer reason must be a string." })
|
|
@@ -8734,11 +8875,11 @@ __decorateClass([
|
|
|
8734
8875
|
], RejectF2FInterviewRescheduleRequestDto.prototype, "reason", 2);
|
|
8735
8876
|
|
|
8736
8877
|
// src/modules/interview/dto/capture-ai-interview-result-public.dto.ts
|
|
8737
|
-
import { IsNotEmpty as
|
|
8878
|
+
import { IsNotEmpty as IsNotEmpty82, IsString as IsString62, IsOptional as IsOptional55, IsObject as IsObject6 } from "class-validator";
|
|
8738
8879
|
var CaptureAiInterviewResultPublicDto = class {
|
|
8739
8880
|
};
|
|
8740
8881
|
__decorateClass([
|
|
8741
|
-
|
|
8882
|
+
IsNotEmpty82({ message: "AI Interview UUID is required" }),
|
|
8742
8883
|
IsString62({ message: "AI Interview UUID must be a string" })
|
|
8743
8884
|
], CaptureAiInterviewResultPublicDto.prototype, "aiInterviewUuid", 2);
|
|
8744
8885
|
__decorateClass([
|
|
@@ -8751,20 +8892,20 @@ __decorateClass([
|
|
|
8751
8892
|
], CaptureAiInterviewResultPublicDto.prototype, "status", 2);
|
|
8752
8893
|
|
|
8753
8894
|
// src/modules/interview/dto/create-interview-basic-information.dto.ts
|
|
8754
|
-
import { IsNotEmpty as
|
|
8895
|
+
import { IsNotEmpty as IsNotEmpty83, IsString as IsString63, IsNumber as IsNumber19 } from "class-validator";
|
|
8755
8896
|
var CreateInterviewBasicInformationDto = class {
|
|
8756
8897
|
};
|
|
8757
8898
|
__decorateClass([
|
|
8758
|
-
|
|
8759
|
-
|
|
8899
|
+
IsNotEmpty83({ message: "Job ID is required" }),
|
|
8900
|
+
IsNumber19({}, { message: "Job ID must be a number" })
|
|
8760
8901
|
], CreateInterviewBasicInformationDto.prototype, "jobId", 2);
|
|
8761
8902
|
__decorateClass([
|
|
8762
|
-
|
|
8903
|
+
IsNotEmpty83({ message: "Interview name is required" }),
|
|
8763
8904
|
IsString63({ message: "Interview name must be a string" })
|
|
8764
8905
|
], CreateInterviewBasicInformationDto.prototype, "interviewName", 2);
|
|
8765
8906
|
|
|
8766
8907
|
// src/modules/interview/dto/update-interview-basic-information.dto.ts
|
|
8767
|
-
import { IsOptional as IsOptional57, IsString as IsString64, IsNumber as
|
|
8908
|
+
import { IsOptional as IsOptional57, IsString as IsString64, IsNumber as IsNumber20, IsArray as IsArray20, IsDateString as IsDateString8 } from "class-validator";
|
|
8768
8909
|
var UpdateInterviewBasicInformationDto = class {
|
|
8769
8910
|
};
|
|
8770
8911
|
__decorateClass([
|
|
@@ -8781,12 +8922,12 @@ __decorateClass([
|
|
|
8781
8922
|
], UpdateInterviewBasicInformationDto.prototype, "scheduledAt", 2);
|
|
8782
8923
|
__decorateClass([
|
|
8783
8924
|
IsOptional57(),
|
|
8784
|
-
|
|
8925
|
+
IsNumber20({}, { message: "Duration must be a number" })
|
|
8785
8926
|
], UpdateInterviewBasicInformationDto.prototype, "duration", 2);
|
|
8786
8927
|
__decorateClass([
|
|
8787
8928
|
IsOptional57(),
|
|
8788
8929
|
IsArray20(),
|
|
8789
|
-
|
|
8930
|
+
IsNumber20({}, { each: true, message: "Each skill ID must be a number" })
|
|
8790
8931
|
], UpdateInterviewBasicInformationDto.prototype, "skillIds", 2);
|
|
8791
8932
|
__decorateClass([
|
|
8792
8933
|
IsOptional57(),
|
|
@@ -8828,52 +8969,52 @@ var CONTRACT_PATTERN = {
|
|
|
8828
8969
|
};
|
|
8829
8970
|
|
|
8830
8971
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
8831
|
-
import { IsEnum as IsEnum31, IsNotEmpty as
|
|
8972
|
+
import { IsEnum as IsEnum31, IsNotEmpty as IsNotEmpty84, IsNumber as IsNumber21 } from "class-validator";
|
|
8832
8973
|
import { Type as Type14 } from "class-transformer";
|
|
8833
8974
|
var SignContractForClientDto = class {
|
|
8834
8975
|
};
|
|
8835
8976
|
__decorateClass([
|
|
8836
|
-
|
|
8977
|
+
IsNotEmpty84({ message: "Job Id is required." }),
|
|
8837
8978
|
Type14(() => Number),
|
|
8838
|
-
|
|
8979
|
+
IsNumber21({}, { message: "Job ID must be a number." })
|
|
8839
8980
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
8840
8981
|
__decorateClass([
|
|
8841
|
-
|
|
8982
|
+
IsNotEmpty84({ message: "Freelancer ID is required." }),
|
|
8842
8983
|
Type14(() => Number),
|
|
8843
|
-
|
|
8984
|
+
IsNumber21({}, { message: "Freelancer ID must be a number." })
|
|
8844
8985
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
8845
8986
|
__decorateClass([
|
|
8846
|
-
|
|
8987
|
+
IsNotEmpty84({ message: "Contract type is required." }),
|
|
8847
8988
|
IsEnum31(ContractTypeEnum)
|
|
8848
8989
|
], SignContractForClientDto.prototype, "contractType", 2);
|
|
8849
8990
|
|
|
8850
8991
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
8851
|
-
import { IsEnum as IsEnum32, IsNotEmpty as
|
|
8992
|
+
import { IsEnum as IsEnum32, IsNotEmpty as IsNotEmpty85, IsNumber as IsNumber22 } from "class-validator";
|
|
8852
8993
|
import { Type as Type15 } from "class-transformer";
|
|
8853
8994
|
var SignContractForFreelancerDto = class {
|
|
8854
8995
|
};
|
|
8855
8996
|
__decorateClass([
|
|
8856
|
-
|
|
8997
|
+
IsNotEmpty85({ message: "Job Id is required." }),
|
|
8857
8998
|
Type15(() => Number),
|
|
8858
|
-
|
|
8999
|
+
IsNumber22({}, { message: "Job ID must be a number." })
|
|
8859
9000
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
8860
9001
|
__decorateClass([
|
|
8861
|
-
|
|
9002
|
+
IsNotEmpty85({ message: "Client ID is required." }),
|
|
8862
9003
|
Type15(() => Number),
|
|
8863
|
-
|
|
9004
|
+
IsNumber22({}, { message: "Client ID must be a number." })
|
|
8864
9005
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
8865
9006
|
__decorateClass([
|
|
8866
|
-
|
|
9007
|
+
IsNotEmpty85({ message: "Contract type is required." }),
|
|
8867
9008
|
IsEnum32(ContractTypeEnum)
|
|
8868
9009
|
], SignContractForFreelancerDto.prototype, "contractType", 2);
|
|
8869
9010
|
|
|
8870
9011
|
// src/modules/contract/dto/generate-contract.dto.ts
|
|
8871
|
-
import { IsNotEmpty as
|
|
9012
|
+
import { IsNotEmpty as IsNotEmpty86, IsNumber as IsNumber23, IsOptional as IsOptional58, IsString as IsString65 } from "class-validator";
|
|
8872
9013
|
var GenerateContractDto = class {
|
|
8873
9014
|
};
|
|
8874
9015
|
__decorateClass([
|
|
8875
|
-
|
|
8876
|
-
|
|
9016
|
+
IsNotEmpty86({ message: "Hiring ID is required" }),
|
|
9017
|
+
IsNumber23({}, { message: "Hiring ID must be a number" })
|
|
8877
9018
|
], GenerateContractDto.prototype, "hiringId", 2);
|
|
8878
9019
|
__decorateClass([
|
|
8879
9020
|
IsOptional58(),
|
|
@@ -8885,34 +9026,34 @@ __decorateClass([
|
|
|
8885
9026
|
], GenerateContractDto.prototype, "templateId", 2);
|
|
8886
9027
|
|
|
8887
9028
|
// src/modules/contract/dto/esign-contract-client.dto.ts
|
|
8888
|
-
import { IsNotEmpty as
|
|
9029
|
+
import { IsNotEmpty as IsNotEmpty87, IsString as IsString66 } from "class-validator";
|
|
8889
9030
|
var EsignContractClientDto = class {
|
|
8890
9031
|
};
|
|
8891
9032
|
__decorateClass([
|
|
8892
|
-
|
|
9033
|
+
IsNotEmpty87({ message: "Contract UUID is required" }),
|
|
8893
9034
|
IsString66({ message: "Contract UUID must be a string" })
|
|
8894
9035
|
], EsignContractClientDto.prototype, "contractUuid", 2);
|
|
8895
9036
|
|
|
8896
9037
|
// src/modules/contract/dto/esign-contract-freelancer.dto.ts
|
|
8897
|
-
import { IsNotEmpty as
|
|
9038
|
+
import { IsNotEmpty as IsNotEmpty88, IsString as IsString67 } from "class-validator";
|
|
8898
9039
|
var EsignContractFreelancerDto = class {
|
|
8899
9040
|
};
|
|
8900
9041
|
__decorateClass([
|
|
8901
|
-
|
|
9042
|
+
IsNotEmpty88({ message: "Contract UUID is required" }),
|
|
8902
9043
|
IsString67({ message: "Contract UUID must be a string" })
|
|
8903
9044
|
], EsignContractFreelancerDto.prototype, "contractUuid", 2);
|
|
8904
9045
|
|
|
8905
9046
|
// src/modules/contract/dto/escrow-fund-contract.dto.ts
|
|
8906
|
-
import { IsNotEmpty as
|
|
9047
|
+
import { IsNotEmpty as IsNotEmpty89, IsNumber as IsNumber24, IsOptional as IsOptional59, IsString as IsString68 } from "class-validator";
|
|
8907
9048
|
var EscrowFundContractDto = class {
|
|
8908
9049
|
};
|
|
8909
9050
|
__decorateClass([
|
|
8910
|
-
|
|
8911
|
-
|
|
9051
|
+
IsNotEmpty89({ message: "Contract ID is required" }),
|
|
9052
|
+
IsNumber24({}, { message: "Contract ID must be a number" })
|
|
8912
9053
|
], EscrowFundContractDto.prototype, "contractId", 2);
|
|
8913
9054
|
__decorateClass([
|
|
8914
|
-
|
|
8915
|
-
|
|
9055
|
+
IsNotEmpty89({ message: "Amount is required" }),
|
|
9056
|
+
IsNumber24({}, { message: "Amount must be a number" })
|
|
8916
9057
|
], EscrowFundContractDto.prototype, "amount", 2);
|
|
8917
9058
|
__decorateClass([
|
|
8918
9059
|
IsOptional59(),
|
|
@@ -8945,21 +9086,21 @@ var STRIPE_PATTERN = {
|
|
|
8945
9086
|
|
|
8946
9087
|
// src/modules/stripe/dto/create-checkout-session.dto.ts
|
|
8947
9088
|
import {
|
|
8948
|
-
IsNotEmpty as
|
|
9089
|
+
IsNotEmpty as IsNotEmpty90
|
|
8949
9090
|
} from "class-validator";
|
|
8950
9091
|
var CreateCheckoutSessionDto = class {
|
|
8951
9092
|
};
|
|
8952
9093
|
__decorateClass([
|
|
8953
|
-
|
|
9094
|
+
IsNotEmpty90({ message: "Amount is required" })
|
|
8954
9095
|
], CreateCheckoutSessionDto.prototype, "amount", 2);
|
|
8955
9096
|
|
|
8956
9097
|
// src/modules/stripe/dto/pre-checkout-calculation.dto.ts
|
|
8957
|
-
import { IsNotEmpty as
|
|
9098
|
+
import { IsNotEmpty as IsNotEmpty91, IsNumber as IsNumber25, IsOptional as IsOptional60, IsString as IsString69 } from "class-validator";
|
|
8958
9099
|
var PreCheckoutCalculationDto = class {
|
|
8959
9100
|
};
|
|
8960
9101
|
__decorateClass([
|
|
8961
|
-
|
|
8962
|
-
|
|
9102
|
+
IsNotEmpty91({ message: "Amount is required" }),
|
|
9103
|
+
IsNumber25({}, { message: "Amount must be a number" })
|
|
8963
9104
|
], PreCheckoutCalculationDto.prototype, "amount", 2);
|
|
8964
9105
|
__decorateClass([
|
|
8965
9106
|
IsOptional60(),
|
|
@@ -8971,12 +9112,12 @@ __decorateClass([
|
|
|
8971
9112
|
], PreCheckoutCalculationDto.prototype, "description", 2);
|
|
8972
9113
|
|
|
8973
9114
|
// src/modules/stripe/dto/client-add-fund.dto.ts
|
|
8974
|
-
import { IsNotEmpty as
|
|
9115
|
+
import { IsNotEmpty as IsNotEmpty92, IsNumber as IsNumber26, IsOptional as IsOptional61, IsString as IsString70 } from "class-validator";
|
|
8975
9116
|
var ClientAddFundDto = class {
|
|
8976
9117
|
};
|
|
8977
9118
|
__decorateClass([
|
|
8978
|
-
|
|
8979
|
-
|
|
9119
|
+
IsNotEmpty92({ message: "Amount is required" }),
|
|
9120
|
+
IsNumber26({}, { message: "Amount must be a number" })
|
|
8980
9121
|
], ClientAddFundDto.prototype, "amount", 2);
|
|
8981
9122
|
__decorateClass([
|
|
8982
9123
|
IsOptional61(),
|
|
@@ -8988,15 +9129,15 @@ __decorateClass([
|
|
|
8988
9129
|
], ClientAddFundDto.prototype, "description", 2);
|
|
8989
9130
|
|
|
8990
9131
|
// src/modules/stripe/dto/transfer-funds.dto.ts
|
|
8991
|
-
import { IsNotEmpty as
|
|
9132
|
+
import { IsNotEmpty as IsNotEmpty93, IsNumber as IsNumber27, IsOptional as IsOptional62, IsString as IsString71 } from "class-validator";
|
|
8992
9133
|
var TransferFundsDto = class {
|
|
8993
9134
|
};
|
|
8994
9135
|
__decorateClass([
|
|
8995
|
-
|
|
8996
|
-
|
|
9136
|
+
IsNotEmpty93({ message: "Amount is required" }),
|
|
9137
|
+
IsNumber27({}, { message: "Amount must be a number" })
|
|
8997
9138
|
], TransferFundsDto.prototype, "amount", 2);
|
|
8998
9139
|
__decorateClass([
|
|
8999
|
-
|
|
9140
|
+
IsNotEmpty93({ message: "Connected account ID is required" }),
|
|
9000
9141
|
IsString71({ message: "Connected account ID must be a string" })
|
|
9001
9142
|
], TransferFundsDto.prototype, "connectedAccountId", 2);
|
|
9002
9143
|
__decorateClass([
|
|
@@ -9005,15 +9146,15 @@ __decorateClass([
|
|
|
9005
9146
|
], TransferFundsDto.prototype, "description", 2);
|
|
9006
9147
|
|
|
9007
9148
|
// src/modules/stripe/dto/create-payout.dto.ts
|
|
9008
|
-
import { IsNotEmpty as
|
|
9149
|
+
import { IsNotEmpty as IsNotEmpty94, IsNumber as IsNumber28, IsOptional as IsOptional63, IsString as IsString72 } from "class-validator";
|
|
9009
9150
|
var CreatePayoutDto = class {
|
|
9010
9151
|
};
|
|
9011
9152
|
__decorateClass([
|
|
9012
|
-
|
|
9013
|
-
|
|
9153
|
+
IsNotEmpty94({ message: "Amount is required" }),
|
|
9154
|
+
IsNumber28({}, { message: "Amount must be a number" })
|
|
9014
9155
|
], CreatePayoutDto.prototype, "amount", 2);
|
|
9015
9156
|
__decorateClass([
|
|
9016
|
-
|
|
9157
|
+
IsNotEmpty94({ message: "Connected account ID is required" }),
|
|
9017
9158
|
IsString72({ message: "Connected account ID must be a string" })
|
|
9018
9159
|
], CreatePayoutDto.prototype, "connectedAccountId", 2);
|
|
9019
9160
|
__decorateClass([
|
|
@@ -9069,34 +9210,34 @@ var TIMESHEET_CLIENT_PATTERN = {
|
|
|
9069
9210
|
import {
|
|
9070
9211
|
IsDateString as IsDateString9,
|
|
9071
9212
|
IsInt as IsInt12,
|
|
9072
|
-
IsNotEmpty as
|
|
9213
|
+
IsNotEmpty as IsNotEmpty95,
|
|
9073
9214
|
IsOptional as IsOptional64,
|
|
9074
9215
|
IsString as IsString73,
|
|
9075
9216
|
Matches as Matches13,
|
|
9076
|
-
IsNumber as
|
|
9217
|
+
IsNumber as IsNumber29
|
|
9077
9218
|
} from "class-validator";
|
|
9078
9219
|
var CreateFreelancerTimesheetDto = class {
|
|
9079
9220
|
};
|
|
9080
9221
|
__decorateClass([
|
|
9081
|
-
|
|
9082
|
-
|
|
9222
|
+
IsNotEmpty95({ message: "Job id is required" }),
|
|
9223
|
+
IsNumber29({}, { message: "Job id must be a number" })
|
|
9083
9224
|
], CreateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
9084
9225
|
__decorateClass([
|
|
9085
|
-
|
|
9226
|
+
IsNotEmpty95({ message: "start date is required" }),
|
|
9086
9227
|
IsDateString9()
|
|
9087
9228
|
], CreateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
9088
9229
|
__decorateClass([
|
|
9089
|
-
|
|
9230
|
+
IsNotEmpty95({ message: "end date is required" }),
|
|
9090
9231
|
IsDateString9()
|
|
9091
9232
|
], CreateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
9092
9233
|
__decorateClass([
|
|
9093
|
-
|
|
9234
|
+
IsNotEmpty95({ message: "start time is required" }),
|
|
9094
9235
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
9095
9236
|
message: "startTime must be in HH:mm:ss format"
|
|
9096
9237
|
})
|
|
9097
9238
|
], CreateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
9098
9239
|
__decorateClass([
|
|
9099
|
-
|
|
9240
|
+
IsNotEmpty95({ message: "end time is required" }),
|
|
9100
9241
|
Matches13(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
9101
9242
|
message: "endTime must be in HH:mm:ss format"
|
|
9102
9243
|
})
|
|
@@ -9118,41 +9259,41 @@ __decorateClass([
|
|
|
9118
9259
|
IsString73()
|
|
9119
9260
|
], CreateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
9120
9261
|
__decorateClass([
|
|
9121
|
-
|
|
9262
|
+
IsNotEmpty95({ message: "Description is required" })
|
|
9122
9263
|
], CreateFreelancerTimesheetDto.prototype, "description", 2);
|
|
9123
9264
|
|
|
9124
9265
|
// src/modules/timesheet/dto/update-freelancer-timesheet.dto.ts
|
|
9125
9266
|
import {
|
|
9126
9267
|
IsDateString as IsDateString10,
|
|
9127
9268
|
IsInt as IsInt13,
|
|
9128
|
-
IsNotEmpty as
|
|
9269
|
+
IsNotEmpty as IsNotEmpty96,
|
|
9129
9270
|
IsOptional as IsOptional65,
|
|
9130
9271
|
IsString as IsString74,
|
|
9131
9272
|
Matches as Matches14,
|
|
9132
|
-
IsNumber as
|
|
9273
|
+
IsNumber as IsNumber30
|
|
9133
9274
|
} from "class-validator";
|
|
9134
9275
|
var UpdateFreelancerTimesheetDto = class {
|
|
9135
9276
|
};
|
|
9136
9277
|
__decorateClass([
|
|
9137
|
-
|
|
9138
|
-
|
|
9278
|
+
IsNotEmpty96({ message: "Job id is required" }),
|
|
9279
|
+
IsNumber30({}, { message: "Job id must be a number" })
|
|
9139
9280
|
], UpdateFreelancerTimesheetDto.prototype, "jobId", 2);
|
|
9140
9281
|
__decorateClass([
|
|
9141
|
-
|
|
9282
|
+
IsNotEmpty96({ message: "start date is required" }),
|
|
9142
9283
|
IsDateString10()
|
|
9143
9284
|
], UpdateFreelancerTimesheetDto.prototype, "startDate", 2);
|
|
9144
9285
|
__decorateClass([
|
|
9145
|
-
|
|
9286
|
+
IsNotEmpty96({ message: "end date is required" }),
|
|
9146
9287
|
IsDateString10()
|
|
9147
9288
|
], UpdateFreelancerTimesheetDto.prototype, "endDate", 2);
|
|
9148
9289
|
__decorateClass([
|
|
9149
|
-
|
|
9290
|
+
IsNotEmpty96({ message: "start time is required" }),
|
|
9150
9291
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
9151
9292
|
message: "startTime must be in HH:mm:ss format"
|
|
9152
9293
|
})
|
|
9153
9294
|
], UpdateFreelancerTimesheetDto.prototype, "startTime", 2);
|
|
9154
9295
|
__decorateClass([
|
|
9155
|
-
|
|
9296
|
+
IsNotEmpty96({ message: "end time is required" }),
|
|
9156
9297
|
Matches14(/^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/, {
|
|
9157
9298
|
message: "endTime must be in HH:mm:ss format"
|
|
9158
9299
|
})
|
|
@@ -9174,45 +9315,45 @@ __decorateClass([
|
|
|
9174
9315
|
IsString74()
|
|
9175
9316
|
], UpdateFreelancerTimesheetDto.prototype, "taskName", 2);
|
|
9176
9317
|
__decorateClass([
|
|
9177
|
-
|
|
9318
|
+
IsNotEmpty96({ message: "Description is required" })
|
|
9178
9319
|
], UpdateFreelancerTimesheetDto.prototype, "description", 2);
|
|
9179
9320
|
|
|
9180
9321
|
// src/modules/timesheet/dto/submit-timesheet.dto.ts
|
|
9181
|
-
import { IsNotEmpty as
|
|
9322
|
+
import { IsNotEmpty as IsNotEmpty97, IsNumber as IsNumber31 } from "class-validator";
|
|
9182
9323
|
var SubmitTimesheetDto = class {
|
|
9183
9324
|
};
|
|
9184
9325
|
__decorateClass([
|
|
9185
|
-
|
|
9186
|
-
|
|
9326
|
+
IsNotEmpty97({ message: "Timesheet line ID is required" }),
|
|
9327
|
+
IsNumber31({}, { message: "Timesheet line ID must be a number" })
|
|
9187
9328
|
], SubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
9188
9329
|
|
|
9189
9330
|
// src/modules/timesheet/dto/resubmit-timesheet.dto.ts
|
|
9190
|
-
import { IsNotEmpty as
|
|
9331
|
+
import { IsNotEmpty as IsNotEmpty98, IsNumber as IsNumber32 } from "class-validator";
|
|
9191
9332
|
var ResubmitTimesheetDto = class {
|
|
9192
9333
|
};
|
|
9193
9334
|
__decorateClass([
|
|
9194
|
-
|
|
9195
|
-
|
|
9335
|
+
IsNotEmpty98({ message: "Timesheet line ID is required" }),
|
|
9336
|
+
IsNumber32({}, { message: "Timesheet line ID must be a number" })
|
|
9196
9337
|
], ResubmitTimesheetDto.prototype, "timesheetLineId", 2);
|
|
9197
9338
|
|
|
9198
9339
|
// src/modules/timesheet/dto/approve-timesheets.dto.ts
|
|
9199
|
-
import { ArrayNotEmpty as ArrayNotEmpty13, IsArray as IsArray21, IsNumber as
|
|
9340
|
+
import { ArrayNotEmpty as ArrayNotEmpty13, IsArray as IsArray21, IsNumber as IsNumber33 } from "class-validator";
|
|
9200
9341
|
var ApproveTimesheetsDto = class {
|
|
9201
9342
|
};
|
|
9202
9343
|
__decorateClass([
|
|
9203
9344
|
IsArray21({ message: "Timesheet line IDs must be an array" }),
|
|
9204
9345
|
ArrayNotEmpty13({ message: "At least one timesheet line ID is required" }),
|
|
9205
|
-
|
|
9346
|
+
IsNumber33({}, { each: true, message: "Each timesheet line ID must be a number" })
|
|
9206
9347
|
], ApproveTimesheetsDto.prototype, "timesheetLineIds", 2);
|
|
9207
9348
|
|
|
9208
9349
|
// src/modules/timesheet/dto/send-back-timesheets.dto.ts
|
|
9209
|
-
import { ArrayNotEmpty as ArrayNotEmpty14, IsArray as IsArray22, IsNumber as
|
|
9350
|
+
import { ArrayNotEmpty as ArrayNotEmpty14, IsArray as IsArray22, IsNumber as IsNumber34, IsOptional as IsOptional66, IsString as IsString75 } from "class-validator";
|
|
9210
9351
|
var SendBackTimesheetsDto = class {
|
|
9211
9352
|
};
|
|
9212
9353
|
__decorateClass([
|
|
9213
9354
|
IsArray22({ message: "Timesheet line IDs must be an array" }),
|
|
9214
9355
|
ArrayNotEmpty14({ message: "At least one timesheet line ID is required" }),
|
|
9215
|
-
|
|
9356
|
+
IsNumber34({}, { each: true, message: "Each timesheet line ID must be a number" })
|
|
9216
9357
|
], SendBackTimesheetsDto.prototype, "timesheetLineIds", 2);
|
|
9217
9358
|
__decorateClass([
|
|
9218
9359
|
IsOptional66(),
|
|
@@ -9220,20 +9361,20 @@ __decorateClass([
|
|
|
9220
9361
|
], SendBackTimesheetsDto.prototype, "reason", 2);
|
|
9221
9362
|
|
|
9222
9363
|
// src/modules/timesheet/dto/create-default-timesheet-line.dto.ts
|
|
9223
|
-
import { IsNotEmpty as
|
|
9364
|
+
import { IsNotEmpty as IsNotEmpty99, IsNumber as IsNumber35 } from "class-validator";
|
|
9224
9365
|
var CreateDefaultTimesheetLineDto = class {
|
|
9225
9366
|
};
|
|
9226
9367
|
__decorateClass([
|
|
9227
|
-
|
|
9228
|
-
|
|
9368
|
+
IsNotEmpty99({ message: "Contract ID is required" }),
|
|
9369
|
+
IsNumber35({}, { message: "Contract ID must be a number" })
|
|
9229
9370
|
], CreateDefaultTimesheetLineDto.prototype, "contractId", 2);
|
|
9230
9371
|
__decorateClass([
|
|
9231
|
-
|
|
9232
|
-
|
|
9372
|
+
IsNotEmpty99({ message: "Freelancer ID is required" }),
|
|
9373
|
+
IsNumber35({}, { message: "Freelancer ID must be a number" })
|
|
9233
9374
|
], CreateDefaultTimesheetLineDto.prototype, "freelancerId", 2);
|
|
9234
9375
|
__decorateClass([
|
|
9235
|
-
|
|
9236
|
-
|
|
9376
|
+
IsNotEmpty99({ message: "Client ID is required" }),
|
|
9377
|
+
IsNumber35({}, { message: "Client ID must be a number" })
|
|
9237
9378
|
], CreateDefaultTimesheetLineDto.prototype, "clientId", 2);
|
|
9238
9379
|
|
|
9239
9380
|
// src/modules/invoice/pattern/pattern.ts
|
|
@@ -9255,23 +9396,23 @@ var INVOICE_PATTERN = {
|
|
|
9255
9396
|
};
|
|
9256
9397
|
|
|
9257
9398
|
// src/modules/invoice/dto/update-invoice-status.dto.ts
|
|
9258
|
-
import { IsEnum as IsEnum35, IsNotEmpty as
|
|
9399
|
+
import { IsEnum as IsEnum35, IsNotEmpty as IsNotEmpty100 } from "class-validator";
|
|
9259
9400
|
var UpdateInvoiceStatusDto = class {
|
|
9260
9401
|
};
|
|
9261
9402
|
__decorateClass([
|
|
9262
|
-
|
|
9403
|
+
IsNotEmpty100({ message: "Please provide invoice status." }),
|
|
9263
9404
|
IsEnum35(InvoiceStatusEnum, {
|
|
9264
9405
|
message: "Status must be one of: APPROVED, REJECTED"
|
|
9265
9406
|
})
|
|
9266
9407
|
], UpdateInvoiceStatusDto.prototype, "status", 2);
|
|
9267
9408
|
|
|
9268
9409
|
// src/modules/invoice/dto/create-invoice.dto.ts
|
|
9269
|
-
import { IsNotEmpty as
|
|
9410
|
+
import { IsNotEmpty as IsNotEmpty101, IsNumber as IsNumber36 } from "class-validator";
|
|
9270
9411
|
var CreateInvoiceDto = class {
|
|
9271
9412
|
};
|
|
9272
9413
|
__decorateClass([
|
|
9273
|
-
|
|
9274
|
-
|
|
9414
|
+
IsNotEmpty101({ message: "Timesheet line ID is required" }),
|
|
9415
|
+
IsNumber36({}, { message: "Timesheet line ID must be a number" })
|
|
9275
9416
|
], CreateInvoiceDto.prototype, "timeSheetLineId", 2);
|
|
9276
9417
|
|
|
9277
9418
|
// src/modules/dispute/pattern/pattern.ts
|
|
@@ -9284,12 +9425,12 @@ var DISPUTE_PATTERN = {
|
|
|
9284
9425
|
// src/modules/dispute/dto/create-dispute.dto.ts
|
|
9285
9426
|
import {
|
|
9286
9427
|
IsString as IsString76,
|
|
9287
|
-
IsNotEmpty as
|
|
9428
|
+
IsNotEmpty as IsNotEmpty102,
|
|
9288
9429
|
IsIn as IsIn4,
|
|
9289
9430
|
IsOptional as IsOptional67,
|
|
9290
9431
|
MaxLength as MaxLength21,
|
|
9291
9432
|
IsObject as IsObject7,
|
|
9292
|
-
IsNumber as
|
|
9433
|
+
IsNumber as IsNumber37,
|
|
9293
9434
|
ValidateIf as ValidateIf11
|
|
9294
9435
|
} from "class-validator";
|
|
9295
9436
|
import { Transform as Transform4, Type as Type16 } from "class-transformer";
|
|
@@ -9297,25 +9438,25 @@ var CreateDisputeDto = class {
|
|
|
9297
9438
|
};
|
|
9298
9439
|
__decorateClass([
|
|
9299
9440
|
ValidateIf11((o) => o.initiatorType === "FREELANCER" /* FREELANCER */),
|
|
9300
|
-
|
|
9441
|
+
IsNumber37({}, { message: "Client id must be a number" }),
|
|
9301
9442
|
Type16(() => Number)
|
|
9302
9443
|
], CreateDisputeDto.prototype, "clientId", 2);
|
|
9303
9444
|
__decorateClass([
|
|
9304
9445
|
ValidateIf11((o) => o.initiatorType === "CLIENT" /* CLIENT */),
|
|
9305
|
-
|
|
9446
|
+
IsNumber37({}, { message: "Freelancer id must be a number" }),
|
|
9306
9447
|
Type16(() => Number)
|
|
9307
9448
|
], CreateDisputeDto.prototype, "freelancerId", 2);
|
|
9308
9449
|
__decorateClass([
|
|
9309
|
-
|
|
9450
|
+
IsNotEmpty102({ message: "Please select dispute type." }),
|
|
9310
9451
|
IsString76(),
|
|
9311
9452
|
IsIn4(["JOB", "INVOICE"])
|
|
9312
9453
|
], CreateDisputeDto.prototype, "disputeType", 2);
|
|
9313
9454
|
__decorateClass([
|
|
9314
|
-
|
|
9455
|
+
IsNotEmpty102({ message: "Please provide initiator type." }),
|
|
9315
9456
|
IsString76()
|
|
9316
9457
|
], CreateDisputeDto.prototype, "initiatorType", 2);
|
|
9317
9458
|
__decorateClass([
|
|
9318
|
-
|
|
9459
|
+
IsNotEmpty102({ message: "Please enter description." }),
|
|
9319
9460
|
IsString76({ message: "Description must be a string" }),
|
|
9320
9461
|
MaxLength21(500, { message: "Description must not exceed 500 characters" })
|
|
9321
9462
|
], CreateDisputeDto.prototype, "description", 2);
|
|
@@ -9348,23 +9489,23 @@ var SENSELOAF_PATTERN = {
|
|
|
9348
9489
|
|
|
9349
9490
|
// src/modules/senseloaf/dto/ai-interview-question-generate.dto.ts
|
|
9350
9491
|
import {
|
|
9351
|
-
IsNotEmpty as
|
|
9492
|
+
IsNotEmpty as IsNotEmpty103
|
|
9352
9493
|
} from "class-validator";
|
|
9353
9494
|
var AiInterviewQuestionGenerateDto = class {
|
|
9354
9495
|
};
|
|
9355
9496
|
__decorateClass([
|
|
9356
|
-
|
|
9497
|
+
IsNotEmpty103({ message: "Please enter job description." })
|
|
9357
9498
|
], AiInterviewQuestionGenerateDto.prototype, "jobDescription", 2);
|
|
9358
9499
|
__decorateClass([
|
|
9359
|
-
|
|
9500
|
+
IsNotEmpty103({ message: "Please enter number of questions." })
|
|
9360
9501
|
], AiInterviewQuestionGenerateDto.prototype, "numQuestions", 2);
|
|
9361
9502
|
|
|
9362
9503
|
// src/modules/senseloaf/dto/resume-parsing-by-url.dto.ts
|
|
9363
|
-
import { IsNotEmpty as
|
|
9504
|
+
import { IsNotEmpty as IsNotEmpty104, IsString as IsString77, IsOptional as IsOptional68 } from "class-validator";
|
|
9364
9505
|
var ResumeParsingByUrlDto = class {
|
|
9365
9506
|
};
|
|
9366
9507
|
__decorateClass([
|
|
9367
|
-
|
|
9508
|
+
IsNotEmpty104({ message: "Resume URL is required" }),
|
|
9368
9509
|
IsString77({ message: "Resume URL must be a string" })
|
|
9369
9510
|
], ResumeParsingByUrlDto.prototype, "resumeUrl", 2);
|
|
9370
9511
|
__decorateClass([
|
|
@@ -9373,11 +9514,11 @@ __decorateClass([
|
|
|
9373
9514
|
], ResumeParsingByUrlDto.prototype, "fileName", 2);
|
|
9374
9515
|
|
|
9375
9516
|
// src/modules/senseloaf/dto/resume-data-processing.dto.ts
|
|
9376
|
-
import { IsNotEmpty as
|
|
9517
|
+
import { IsNotEmpty as IsNotEmpty105, IsString as IsString78, IsOptional as IsOptional69, IsObject as IsObject8 } from "class-validator";
|
|
9377
9518
|
var ResumeDataProcessingDto = class {
|
|
9378
9519
|
};
|
|
9379
9520
|
__decorateClass([
|
|
9380
|
-
|
|
9521
|
+
IsNotEmpty105({ message: "Resume data is required" }),
|
|
9381
9522
|
IsObject8()
|
|
9382
9523
|
], ResumeDataProcessingDto.prototype, "resumeData", 2);
|
|
9383
9524
|
__decorateClass([
|
|
@@ -9390,11 +9531,11 @@ __decorateClass([
|
|
|
9390
9531
|
], ResumeDataProcessingDto.prototype, "processingType", 2);
|
|
9391
9532
|
|
|
9392
9533
|
// src/modules/senseloaf/dto/check-resume-eligibility.dto.ts
|
|
9393
|
-
import { IsNotEmpty as
|
|
9534
|
+
import { IsNotEmpty as IsNotEmpty106, IsString as IsString79, IsOptional as IsOptional70, IsObject as IsObject9 } from "class-validator";
|
|
9394
9535
|
var CheckResumeEligibilityDto = class {
|
|
9395
9536
|
};
|
|
9396
9537
|
__decorateClass([
|
|
9397
|
-
|
|
9538
|
+
IsNotEmpty106({ message: "Resume data is required" }),
|
|
9398
9539
|
IsObject9()
|
|
9399
9540
|
], CheckResumeEligibilityDto.prototype, "resumeData", 2);
|
|
9400
9541
|
__decorateClass([
|
|
@@ -9407,11 +9548,11 @@ __decorateClass([
|
|
|
9407
9548
|
], CheckResumeEligibilityDto.prototype, "userId", 2);
|
|
9408
9549
|
|
|
9409
9550
|
// src/modules/senseloaf/dto/ai-interview-template-generation.dto.ts
|
|
9410
|
-
import { IsNotEmpty as
|
|
9551
|
+
import { IsNotEmpty as IsNotEmpty107, IsString as IsString80, IsOptional as IsOptional71, IsArray as IsArray23, IsNumber as IsNumber38 } from "class-validator";
|
|
9411
9552
|
var AiInterviewTemplateGenerationDto = class {
|
|
9412
9553
|
};
|
|
9413
9554
|
__decorateClass([
|
|
9414
|
-
|
|
9555
|
+
IsNotEmpty107({ message: "Job ID is required" }),
|
|
9415
9556
|
IsString80({ message: "Job ID must be a string" })
|
|
9416
9557
|
], AiInterviewTemplateGenerationDto.prototype, "jobId", 2);
|
|
9417
9558
|
__decorateClass([
|
|
@@ -9421,7 +9562,7 @@ __decorateClass([
|
|
|
9421
9562
|
], AiInterviewTemplateGenerationDto.prototype, "skills", 2);
|
|
9422
9563
|
__decorateClass([
|
|
9423
9564
|
IsOptional71(),
|
|
9424
|
-
|
|
9565
|
+
IsNumber38({}, { message: "Number of questions must be a number" })
|
|
9425
9566
|
], AiInterviewTemplateGenerationDto.prototype, "numberOfQuestions", 2);
|
|
9426
9567
|
__decorateClass([
|
|
9427
9568
|
IsOptional71(),
|
|
@@ -9429,15 +9570,15 @@ __decorateClass([
|
|
|
9429
9570
|
], AiInterviewTemplateGenerationDto.prototype, "difficulty", 2);
|
|
9430
9571
|
|
|
9431
9572
|
// src/modules/senseloaf/dto/ai-interview-link-generation.dto.ts
|
|
9432
|
-
import { IsNotEmpty as
|
|
9573
|
+
import { IsNotEmpty as IsNotEmpty108, IsString as IsString81, IsOptional as IsOptional72, IsNumber as IsNumber39 } from "class-validator";
|
|
9433
9574
|
var AiInterviewLinkGenerationDto = class {
|
|
9434
9575
|
};
|
|
9435
9576
|
__decorateClass([
|
|
9436
|
-
|
|
9577
|
+
IsNotEmpty108({ message: "Template ID is required" }),
|
|
9437
9578
|
IsString81({ message: "Template ID must be a string" })
|
|
9438
9579
|
], AiInterviewLinkGenerationDto.prototype, "templateId", 2);
|
|
9439
9580
|
__decorateClass([
|
|
9440
|
-
|
|
9581
|
+
IsNotEmpty108({ message: "Freelancer ID is required" }),
|
|
9441
9582
|
IsString81({ message: "Freelancer ID must be a string" })
|
|
9442
9583
|
], AiInterviewLinkGenerationDto.prototype, "freelancerId", 2);
|
|
9443
9584
|
__decorateClass([
|
|
@@ -9446,15 +9587,15 @@ __decorateClass([
|
|
|
9446
9587
|
], AiInterviewLinkGenerationDto.prototype, "jobId", 2);
|
|
9447
9588
|
__decorateClass([
|
|
9448
9589
|
IsOptional72(),
|
|
9449
|
-
|
|
9590
|
+
IsNumber39({}, { message: "Expiry hours must be a number" })
|
|
9450
9591
|
], AiInterviewLinkGenerationDto.prototype, "expiryHours", 2);
|
|
9451
9592
|
|
|
9452
9593
|
// src/modules/senseloaf/dto/ai-assessment-creation.dto.ts
|
|
9453
|
-
import { IsNotEmpty as
|
|
9594
|
+
import { IsNotEmpty as IsNotEmpty109, IsString as IsString82, IsOptional as IsOptional73, IsNumber as IsNumber40 } from "class-validator";
|
|
9454
9595
|
var AiAssessmentCreationDto = class {
|
|
9455
9596
|
};
|
|
9456
9597
|
__decorateClass([
|
|
9457
|
-
|
|
9598
|
+
IsNotEmpty109({ message: "User ID is required" }),
|
|
9458
9599
|
IsString82({ message: "User ID must be a string" })
|
|
9459
9600
|
], AiAssessmentCreationDto.prototype, "userId", 2);
|
|
9460
9601
|
__decorateClass([
|
|
@@ -9463,7 +9604,7 @@ __decorateClass([
|
|
|
9463
9604
|
], AiAssessmentCreationDto.prototype, "assessmentType", 2);
|
|
9464
9605
|
__decorateClass([
|
|
9465
9606
|
IsOptional73(),
|
|
9466
|
-
|
|
9607
|
+
IsNumber40({}, { message: "Number of questions must be a number" })
|
|
9467
9608
|
], AiAssessmentCreationDto.prototype, "numberOfQuestions", 2);
|
|
9468
9609
|
__decorateClass([
|
|
9469
9610
|
IsOptional73(),
|
|
@@ -9483,16 +9624,16 @@ var HIRING_PATTERN = {
|
|
|
9483
9624
|
};
|
|
9484
9625
|
|
|
9485
9626
|
// src/modules/hiring/dto/create-hiring.dto.ts
|
|
9486
|
-
import { IsNotEmpty as
|
|
9627
|
+
import { IsNotEmpty as IsNotEmpty110, IsNumber as IsNumber41 } from "class-validator";
|
|
9487
9628
|
var CreateHiringDto = class {
|
|
9488
9629
|
};
|
|
9489
9630
|
__decorateClass([
|
|
9490
|
-
|
|
9491
|
-
|
|
9631
|
+
IsNotEmpty110({ message: "Freelancer ID is required" }),
|
|
9632
|
+
IsNumber41({}, { message: "Freelancer ID must be a number" })
|
|
9492
9633
|
], CreateHiringDto.prototype, "freelancerId", 2);
|
|
9493
9634
|
__decorateClass([
|
|
9494
|
-
|
|
9495
|
-
|
|
9635
|
+
IsNotEmpty110({ message: "Job ID is required" }),
|
|
9636
|
+
IsNumber41({}, { message: "Job ID must be a number" })
|
|
9496
9637
|
], CreateHiringDto.prototype, "jobId", 2);
|
|
9497
9638
|
|
|
9498
9639
|
// src/modules/llm/pattern/pattern.ts
|
|
@@ -9540,25 +9681,25 @@ var WALLET_ADMIN_PATTERN = {
|
|
|
9540
9681
|
};
|
|
9541
9682
|
|
|
9542
9683
|
// src/modules/wallet/dto/add-topup-escrow-amount.dto.ts
|
|
9543
|
-
import { IsNotEmpty as
|
|
9684
|
+
import { IsNotEmpty as IsNotEmpty111, IsNumber as IsNumber42 } from "class-validator";
|
|
9544
9685
|
var AddTopupEscrowAmountDto = class {
|
|
9545
9686
|
};
|
|
9546
9687
|
__decorateClass([
|
|
9547
|
-
|
|
9548
|
-
|
|
9688
|
+
IsNotEmpty111({ message: "Amount is required" }),
|
|
9689
|
+
IsNumber42({}, { message: "Amount must be a number" })
|
|
9549
9690
|
], AddTopupEscrowAmountDto.prototype, "amount", 2);
|
|
9550
9691
|
|
|
9551
9692
|
// src/modules/wallet/dto/debit-commission-fte-hiring.dto.ts
|
|
9552
|
-
import { IsNotEmpty as
|
|
9693
|
+
import { IsNotEmpty as IsNotEmpty112, IsNumber as IsNumber43 } from "class-validator";
|
|
9553
9694
|
var DebitCommissionFteHiringDto = class {
|
|
9554
9695
|
};
|
|
9555
9696
|
__decorateClass([
|
|
9556
|
-
|
|
9557
|
-
|
|
9697
|
+
IsNotEmpty112({ message: "Hiring ID is required" }),
|
|
9698
|
+
IsNumber43({}, { message: "Hiring ID must be a number" })
|
|
9558
9699
|
], DebitCommissionFteHiringDto.prototype, "hiringId", 2);
|
|
9559
9700
|
__decorateClass([
|
|
9560
|
-
|
|
9561
|
-
|
|
9701
|
+
IsNotEmpty112({ message: "Amount is required" }),
|
|
9702
|
+
IsNumber43({}, { message: "Amount must be a number" })
|
|
9562
9703
|
], DebitCommissionFteHiringDto.prototype, "amount", 2);
|
|
9563
9704
|
|
|
9564
9705
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -10916,6 +11057,7 @@ export {
|
|
|
10916
11057
|
TypeOfEmploymentEnumDto,
|
|
10917
11058
|
TypeOfEmploymentEnums,
|
|
10918
11059
|
UpdateAdminRoleDto,
|
|
11060
|
+
UpdateAdminRoleStatusDto,
|
|
10919
11061
|
UpdateAssessmentRequestStatusDto,
|
|
10920
11062
|
UpdateClientAccountStatusDto,
|
|
10921
11063
|
UpdateClientDto,
|