@experts_hub/shared 1.0.408 → 1.0.409
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -3
- package/dist/index.mjs +46 -48
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -824,7 +824,6 @@ __decorateClass([
|
|
|
824
824
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
825
825
|
|
|
826
826
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
827
|
-
var import_types = require("class-transformer/types");
|
|
828
827
|
var import_class_validator23 = require("class-validator");
|
|
829
828
|
var FreelancerProfileQuestionDto = class {
|
|
830
829
|
};
|
|
@@ -847,8 +846,7 @@ __decorateClass([
|
|
|
847
846
|
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter answer." })
|
|
848
847
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
849
848
|
__decorateClass([
|
|
850
|
-
(0, import_class_validator23.IsOptional)()
|
|
851
|
-
(0, import_types.Type)(() => Number)
|
|
849
|
+
(0, import_class_validator23.IsOptional)()
|
|
852
850
|
], FreelancerProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
853
851
|
__decorateClass([
|
|
854
852
|
(0, import_class_validator23.IsOptional)()
|
package/dist/index.mjs
CHANGED
|
@@ -572,7 +572,6 @@ __decorateClass([
|
|
|
572
572
|
], FreelancerDevelopmentPreferenceDto.prototype, "developer", 2);
|
|
573
573
|
|
|
574
574
|
// src/modules/onboarding/dto/freelancer-profile-question.dto.ts
|
|
575
|
-
import { Type } from "class-transformer/types";
|
|
576
575
|
import {
|
|
577
576
|
IsUUID as IsUUID8,
|
|
578
577
|
IsString as IsString5,
|
|
@@ -601,8 +600,7 @@ __decorateClass([
|
|
|
601
600
|
IsNotEmpty20({ message: "Please enter answer." })
|
|
602
601
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
603
602
|
__decorateClass([
|
|
604
|
-
IsOptional5()
|
|
605
|
-
Type(() => Number)
|
|
603
|
+
IsOptional5()
|
|
606
604
|
], FreelancerProfileQuestionDto.prototype, "numberOfHours", 2);
|
|
607
605
|
__decorateClass([
|
|
608
606
|
IsOptional5()
|
|
@@ -973,7 +971,7 @@ import {
|
|
|
973
971
|
MaxLength as MaxLength6,
|
|
974
972
|
Max
|
|
975
973
|
} from "class-validator";
|
|
976
|
-
import { Type
|
|
974
|
+
import { Type } from "class-transformer";
|
|
977
975
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
978
976
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
979
977
|
JobLocation2["REMOTE"] = "REMOTE";
|
|
@@ -995,7 +993,7 @@ var JobBasicInformationDto = class {
|
|
|
995
993
|
};
|
|
996
994
|
__decorateClass([
|
|
997
995
|
IsOptional11(),
|
|
998
|
-
|
|
996
|
+
Type(() => Boolean)
|
|
999
997
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
1000
998
|
__decorateClass([
|
|
1001
999
|
IsNotEmpty29({ message: "Please enter job role" }),
|
|
@@ -1014,13 +1012,13 @@ __decorateClass([
|
|
|
1014
1012
|
IsArray({ message: "Skills must be an array" }),
|
|
1015
1013
|
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
1016
1014
|
IsString12({ each: true, message: "Each skill must be a string" }),
|
|
1017
|
-
|
|
1015
|
+
Type(() => String)
|
|
1018
1016
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1019
1017
|
__decorateClass([
|
|
1020
1018
|
ValidateIf3((o) => !o.isDraft),
|
|
1021
1019
|
IsNumber({}, { message: "Openings must be a number" }),
|
|
1022
1020
|
Min(1, { message: "There must be at least 1 opening" }),
|
|
1023
|
-
|
|
1021
|
+
Type(() => Number)
|
|
1024
1022
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1025
1023
|
__decorateClass([
|
|
1026
1024
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1033,17 +1031,17 @@ __decorateClass([
|
|
|
1033
1031
|
__decorateClass([
|
|
1034
1032
|
ValidateIf3((o) => !o.isDraft),
|
|
1035
1033
|
IsNumber({}, { message: "Country id must be a number" }),
|
|
1036
|
-
|
|
1034
|
+
Type(() => Number)
|
|
1037
1035
|
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
1038
1036
|
__decorateClass([
|
|
1039
1037
|
ValidateIf3((o) => !o.isDraft),
|
|
1040
1038
|
IsNumber({}, { message: "State id must be a number" }),
|
|
1041
|
-
|
|
1039
|
+
Type(() => Number)
|
|
1042
1040
|
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
1043
1041
|
__decorateClass([
|
|
1044
1042
|
ValidateIf3((o) => !o.isDraft),
|
|
1045
1043
|
IsNumber({}, { message: "City id must be a number" }),
|
|
1046
|
-
|
|
1044
|
+
Type(() => Number)
|
|
1047
1045
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
1048
1046
|
__decorateClass([
|
|
1049
1047
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1061,7 +1059,7 @@ __decorateClass([
|
|
|
1061
1059
|
ValidateIf3((o) => !o.isDraft),
|
|
1062
1060
|
IsNumber({}, { message: "Expected salary (from) must be a number" }),
|
|
1063
1061
|
Min(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1064
|
-
|
|
1062
|
+
Type(() => Number)
|
|
1065
1063
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1066
1064
|
__decorateClass([
|
|
1067
1065
|
IsOptional11()
|
|
@@ -1070,7 +1068,7 @@ __decorateClass([
|
|
|
1070
1068
|
ValidateIf3((o) => !o.isDraft),
|
|
1071
1069
|
IsNumber({}, { message: "Expected salary (to) must be a number" }),
|
|
1072
1070
|
Min(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1073
|
-
|
|
1071
|
+
Type(() => Number)
|
|
1074
1072
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1075
1073
|
__decorateClass([
|
|
1076
1074
|
IsOptional11()
|
|
@@ -1090,7 +1088,7 @@ __decorateClass([
|
|
|
1090
1088
|
IsNumber({}, { message: "Number of hours must be a number" }),
|
|
1091
1089
|
Min(0, { message: "Number of hours cannot be negative" }),
|
|
1092
1090
|
Max(40, { message: "Number of hours cannot exceed 40" }),
|
|
1093
|
-
|
|
1091
|
+
Type(() => Number)
|
|
1094
1092
|
], JobBasicInformationDto.prototype, "numberOfHours", 2);
|
|
1095
1093
|
__decorateClass([
|
|
1096
1094
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -5100,7 +5098,7 @@ import {
|
|
|
5100
5098
|
MaxLength as MaxLength11,
|
|
5101
5099
|
ValidateNested
|
|
5102
5100
|
} from "class-validator";
|
|
5103
|
-
import { Type as
|
|
5101
|
+
import { Type as Type2 } from "class-transformer";
|
|
5104
5102
|
var ExperienceDto = class {
|
|
5105
5103
|
};
|
|
5106
5104
|
__decorateClass([
|
|
@@ -5128,7 +5126,7 @@ var FreelancerExperienceDto = class {
|
|
|
5128
5126
|
__decorateClass([
|
|
5129
5127
|
ValidateNested({ each: true }),
|
|
5130
5128
|
ArrayMinSize(1, { message: "At least one experience is required." }),
|
|
5131
|
-
|
|
5129
|
+
Type2(() => ExperienceDto)
|
|
5132
5130
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
5133
5131
|
|
|
5134
5132
|
// src/modules/company-member/pattern/pattern.ts
|
|
@@ -5191,7 +5189,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
5191
5189
|
|
|
5192
5190
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
5193
5191
|
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty41, IsOptional as IsOptional21, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
5194
|
-
import { Type as
|
|
5192
|
+
import { Type as Type3 } from "class-transformer";
|
|
5195
5193
|
var EducationDto = class {
|
|
5196
5194
|
};
|
|
5197
5195
|
__decorateClass([
|
|
@@ -5215,7 +5213,7 @@ __decorateClass([
|
|
|
5215
5213
|
IsArray6(),
|
|
5216
5214
|
ArrayMinSize2(1, { message: "At least one education is required." }),
|
|
5217
5215
|
ValidateNested2({ each: true }),
|
|
5218
|
-
|
|
5216
|
+
Type3(() => EducationDto)
|
|
5219
5217
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
5220
5218
|
|
|
5221
5219
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
@@ -5226,7 +5224,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
5226
5224
|
|
|
5227
5225
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
5228
5226
|
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty42, IsOptional as IsOptional22, IsDateString, MaxLength as MaxLength13, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
5229
|
-
import { Type as
|
|
5227
|
+
import { Type as Type4 } from "class-transformer";
|
|
5230
5228
|
var ProjectDto = class {
|
|
5231
5229
|
};
|
|
5232
5230
|
__decorateClass([
|
|
@@ -5281,12 +5279,12 @@ __decorateClass([
|
|
|
5281
5279
|
IsArray7(),
|
|
5282
5280
|
ArrayMinSize3(1, { message: "At least one project is required." }),
|
|
5283
5281
|
ValidateNested3({ each: true }),
|
|
5284
|
-
|
|
5282
|
+
Type4(() => ProjectDto)
|
|
5285
5283
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
5286
5284
|
__decorateClass([
|
|
5287
5285
|
IsArray7(),
|
|
5288
5286
|
ValidateNested3({ each: true }),
|
|
5289
|
-
|
|
5287
|
+
Type4(() => CaseStudyDto)
|
|
5290
5288
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
5291
5289
|
|
|
5292
5290
|
// src/modules/permission/pattern/pattern.ts
|
|
@@ -5302,7 +5300,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
5302
5300
|
|
|
5303
5301
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
5304
5302
|
import { IsArray as IsArray8, IsString as IsString25, IsOptional as IsOptional23 } from "class-validator";
|
|
5305
|
-
import { Type as
|
|
5303
|
+
import { Type as Type5 } from "class-transformer";
|
|
5306
5304
|
var FreelancerSkillDto = class {
|
|
5307
5305
|
constructor() {
|
|
5308
5306
|
this.coreSkills = [];
|
|
@@ -5313,19 +5311,19 @@ var FreelancerSkillDto = class {
|
|
|
5313
5311
|
__decorateClass([
|
|
5314
5312
|
IsOptional23(),
|
|
5315
5313
|
IsArray8(),
|
|
5316
|
-
|
|
5314
|
+
Type5(() => String),
|
|
5317
5315
|
IsString25({ each: true })
|
|
5318
5316
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
5319
5317
|
__decorateClass([
|
|
5320
5318
|
IsOptional23(),
|
|
5321
5319
|
IsArray8(),
|
|
5322
|
-
|
|
5320
|
+
Type5(() => String),
|
|
5323
5321
|
IsString25({ each: true })
|
|
5324
5322
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
5325
5323
|
__decorateClass([
|
|
5326
5324
|
IsOptional23(),
|
|
5327
5325
|
IsArray8(),
|
|
5328
|
-
|
|
5326
|
+
Type5(() => String),
|
|
5329
5327
|
IsString25({ each: true })
|
|
5330
5328
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
5331
5329
|
|
|
@@ -5357,7 +5355,7 @@ import {
|
|
|
5357
5355
|
Matches as Matches9,
|
|
5358
5356
|
ValidateIf as ValidateIf5
|
|
5359
5357
|
} from "class-validator";
|
|
5360
|
-
import { Type as
|
|
5358
|
+
import { Type as Type6 } from "class-transformer";
|
|
5361
5359
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
5362
5360
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
5363
5361
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -5399,7 +5397,7 @@ __decorateClass([
|
|
|
5399
5397
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
5400
5398
|
__decorateClass([
|
|
5401
5399
|
IsBoolean10({ message: "Developer flag must be true or false" }),
|
|
5402
|
-
|
|
5400
|
+
Type6(() => Boolean)
|
|
5403
5401
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
5404
5402
|
__decorateClass([
|
|
5405
5403
|
IsEnum16(NatureOfWorkEnum, {
|
|
@@ -5411,7 +5409,7 @@ __decorateClass([
|
|
|
5411
5409
|
__decorateClass([
|
|
5412
5410
|
IsNumber3({}, { message: "Expected hourly compensation must be a number" }),
|
|
5413
5411
|
Min3(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
5414
|
-
|
|
5412
|
+
Type6(() => Number)
|
|
5415
5413
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
5416
5414
|
__decorateClass([
|
|
5417
5415
|
IsEnum16(ModeOfWorkEnum, {
|
|
@@ -5422,7 +5420,7 @@ __decorateClass([
|
|
|
5422
5420
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
5423
5421
|
__decorateClass([
|
|
5424
5422
|
IsBoolean10({ message: "isImmediateJoiner must be true or false" }),
|
|
5425
|
-
|
|
5423
|
+
Type6(() => Boolean)
|
|
5426
5424
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
5427
5425
|
__decorateClass([
|
|
5428
5426
|
ValidateIf5((o) => o.isImmediateJoiner === false),
|
|
@@ -5465,7 +5463,7 @@ import {
|
|
|
5465
5463
|
IsNotEmpty as IsNotEmpty45,
|
|
5466
5464
|
ValidateIf as ValidateIf6
|
|
5467
5465
|
} from "class-validator";
|
|
5468
|
-
import { Transform as Transform2, Type as
|
|
5466
|
+
import { Transform as Transform2, Type as Type7 } from "class-transformer";
|
|
5469
5467
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
5470
5468
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
5471
5469
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -5509,7 +5507,7 @@ __decorateClass([
|
|
|
5509
5507
|
__decorateClass([
|
|
5510
5508
|
IsOptional25(),
|
|
5511
5509
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
5512
|
-
|
|
5510
|
+
Type7(() => Boolean)
|
|
5513
5511
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
5514
5512
|
__decorateClass([
|
|
5515
5513
|
IsOptional25(),
|
|
@@ -5523,7 +5521,7 @@ __decorateClass([
|
|
|
5523
5521
|
IsOptional25(),
|
|
5524
5522
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
5525
5523
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
5526
|
-
|
|
5524
|
+
Type7(() => Number)
|
|
5527
5525
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
5528
5526
|
__decorateClass([
|
|
5529
5527
|
IsOptional25(),
|
|
@@ -5536,7 +5534,7 @@ __decorateClass([
|
|
|
5536
5534
|
__decorateClass([
|
|
5537
5535
|
IsOptional25(),
|
|
5538
5536
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
5539
|
-
|
|
5537
|
+
Type7(() => Boolean)
|
|
5540
5538
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
5541
5539
|
__decorateClass([
|
|
5542
5540
|
ValidateIf6((o) => o.isImmediateJoiner === false),
|
|
@@ -5839,7 +5837,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
5839
5837
|
};
|
|
5840
5838
|
|
|
5841
5839
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
5842
|
-
import { Type as
|
|
5840
|
+
import { Type as Type8 } from "class-transformer";
|
|
5843
5841
|
import {
|
|
5844
5842
|
IsString as IsString32,
|
|
5845
5843
|
IsEnum as IsEnum21,
|
|
@@ -5910,11 +5908,11 @@ __decorateClass([
|
|
|
5910
5908
|
IsNotEmpty52({ message: "Currency is required." })
|
|
5911
5909
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
5912
5910
|
__decorateClass([
|
|
5913
|
-
|
|
5911
|
+
Type8(() => Number),
|
|
5914
5912
|
IsNumber5({}, { message: "Expected salary from must be a number." })
|
|
5915
5913
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
5916
5914
|
__decorateClass([
|
|
5917
|
-
|
|
5915
|
+
Type8(() => Number),
|
|
5918
5916
|
IsNumber5({}, { message: "Expected salary to must be a number." })
|
|
5919
5917
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
5920
5918
|
__decorateClass([
|
|
@@ -5947,7 +5945,7 @@ __decorateClass([
|
|
|
5947
5945
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
5948
5946
|
|
|
5949
5947
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
5950
|
-
import { Type as
|
|
5948
|
+
import { Type as Type9 } from "class-transformer";
|
|
5951
5949
|
import {
|
|
5952
5950
|
IsString as IsString33,
|
|
5953
5951
|
IsEnum as IsEnum22,
|
|
@@ -6018,11 +6016,11 @@ __decorateClass([
|
|
|
6018
6016
|
IsNotEmpty53({ message: "Currency is required." })
|
|
6019
6017
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
6020
6018
|
__decorateClass([
|
|
6021
|
-
|
|
6019
|
+
Type9(() => Number),
|
|
6022
6020
|
IsNumber6({}, { message: "Expected salary from must be a number." })
|
|
6023
6021
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6024
6022
|
__decorateClass([
|
|
6025
|
-
|
|
6023
|
+
Type9(() => Number),
|
|
6026
6024
|
IsNumber6({}, { message: "Expected salary to must be a number." })
|
|
6027
6025
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6028
6026
|
__decorateClass([
|
|
@@ -6182,7 +6180,7 @@ import {
|
|
|
6182
6180
|
ValidateIf as ValidateIf7,
|
|
6183
6181
|
ValidateNested as ValidateNested5
|
|
6184
6182
|
} from "class-validator";
|
|
6185
|
-
import { Type as
|
|
6183
|
+
import { Type as Type10 } from "class-transformer";
|
|
6186
6184
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
6187
6185
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
6188
6186
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -6221,14 +6219,14 @@ __decorateClass([
|
|
|
6221
6219
|
IsArray13({ message: "Existing candidates should be an array." }),
|
|
6222
6220
|
ArrayNotEmpty8({ message: "Please select at least one candidate." }),
|
|
6223
6221
|
ValidateNested5({ each: true }),
|
|
6224
|
-
|
|
6222
|
+
Type10(() => ExistingCandidateDto)
|
|
6225
6223
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
6226
6224
|
__decorateClass([
|
|
6227
6225
|
ValidateIf7((o) => o.newCandidates?.length > 0),
|
|
6228
6226
|
IsArray13({ message: "New candidates should be an array." }),
|
|
6229
6227
|
ArrayNotEmpty8({ message: "Please add at least one candidate." }),
|
|
6230
6228
|
ValidateNested5({ each: true }),
|
|
6231
|
-
|
|
6229
|
+
Type10(() => NewCandidateDto)
|
|
6232
6230
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
6233
6231
|
var InterviewInviteDto = class {
|
|
6234
6232
|
};
|
|
@@ -6237,7 +6235,7 @@ __decorateClass([
|
|
|
6237
6235
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
6238
6236
|
__decorateClass([
|
|
6239
6237
|
ValidateNested5({ each: true }),
|
|
6240
|
-
|
|
6238
|
+
Type10(() => CandidatesDto)
|
|
6241
6239
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
6242
6240
|
|
|
6243
6241
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
@@ -6306,17 +6304,17 @@ var CONTRACT_PATTERN = {
|
|
|
6306
6304
|
|
|
6307
6305
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
6308
6306
|
import { IsEnum as IsEnum25, IsNotEmpty as IsNotEmpty60, IsNumber as IsNumber8 } from "class-validator";
|
|
6309
|
-
import { Type as
|
|
6307
|
+
import { Type as Type11 } from "class-transformer";
|
|
6310
6308
|
var SignContractForClientDto = class {
|
|
6311
6309
|
};
|
|
6312
6310
|
__decorateClass([
|
|
6313
6311
|
IsNotEmpty60({ message: "Job Id is required." }),
|
|
6314
|
-
|
|
6312
|
+
Type11(() => Number),
|
|
6315
6313
|
IsNumber8({}, { message: "Job ID must be a number." })
|
|
6316
6314
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
6317
6315
|
__decorateClass([
|
|
6318
6316
|
IsNotEmpty60({ message: "Freelancer ID is required." }),
|
|
6319
|
-
|
|
6317
|
+
Type11(() => Number),
|
|
6320
6318
|
IsNumber8({}, { message: "Freelancer ID must be a number." })
|
|
6321
6319
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
6322
6320
|
__decorateClass([
|
|
@@ -6326,17 +6324,17 @@ __decorateClass([
|
|
|
6326
6324
|
|
|
6327
6325
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
6328
6326
|
import { IsEnum as IsEnum26, IsNotEmpty as IsNotEmpty61, IsNumber as IsNumber9 } from "class-validator";
|
|
6329
|
-
import { Type as
|
|
6327
|
+
import { Type as Type12 } from "class-transformer";
|
|
6330
6328
|
var SignContractForFreelancerDto = class {
|
|
6331
6329
|
};
|
|
6332
6330
|
__decorateClass([
|
|
6333
6331
|
IsNotEmpty61({ message: "Job Id is required." }),
|
|
6334
|
-
|
|
6332
|
+
Type12(() => Number),
|
|
6335
6333
|
IsNumber9({}, { message: "Job ID must be a number." })
|
|
6336
6334
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
6337
6335
|
__decorateClass([
|
|
6338
6336
|
IsNotEmpty61({ message: "Client ID is required." }),
|
|
6339
|
-
|
|
6337
|
+
Type12(() => Number),
|
|
6340
6338
|
IsNumber9({}, { message: "Client ID must be a number." })
|
|
6341
6339
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
6342
6340
|
__decorateClass([
|