@experts_hub/shared 1.0.335 → 1.0.336
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.d.mts
CHANGED
|
@@ -119,6 +119,7 @@ declare class FreelancerCreateAccountDto {
|
|
|
119
119
|
mobile: string;
|
|
120
120
|
password: string;
|
|
121
121
|
confirmPassword: string;
|
|
122
|
+
onBoardedBy: string;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
declare class FreelancerUploadResumeDto {
|
|
@@ -183,6 +184,7 @@ declare class ClientCreateAccountDto {
|
|
|
183
184
|
companyName: string;
|
|
184
185
|
password: string;
|
|
185
186
|
confirmPassword: string;
|
|
187
|
+
onBoardedBy: string;
|
|
186
188
|
}
|
|
187
189
|
|
|
188
190
|
declare const RESUME_PARSER_PATTERN: {
|
package/dist/index.d.ts
CHANGED
|
@@ -119,6 +119,7 @@ declare class FreelancerCreateAccountDto {
|
|
|
119
119
|
mobile: string;
|
|
120
120
|
password: string;
|
|
121
121
|
confirmPassword: string;
|
|
122
|
+
onBoardedBy: string;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
declare class FreelancerUploadResumeDto {
|
|
@@ -183,6 +184,7 @@ declare class ClientCreateAccountDto {
|
|
|
183
184
|
companyName: string;
|
|
184
185
|
password: string;
|
|
185
186
|
confirmPassword: string;
|
|
187
|
+
onBoardedBy: string;
|
|
186
188
|
}
|
|
187
189
|
|
|
188
190
|
declare const RESUME_PARSER_PATTERN: {
|
package/dist/index.js
CHANGED
|
@@ -661,6 +661,9 @@ __decorateClass([
|
|
|
661
661
|
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
662
662
|
Match("password", { message: "Passwords do not match" })
|
|
663
663
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
664
|
+
__decorateClass([
|
|
665
|
+
(0, import_class_validator13.IsOptional)()
|
|
666
|
+
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
664
667
|
|
|
665
668
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
666
669
|
var import_class_validator14 = require("class-validator");
|
|
@@ -880,6 +883,9 @@ __decorateClass([
|
|
|
880
883
|
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
881
884
|
Match("password", { message: "Passwords do not match" })
|
|
882
885
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
886
|
+
__decorateClass([
|
|
887
|
+
(0, import_class_validator24.IsOptional)()
|
|
888
|
+
], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
883
889
|
|
|
884
890
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
885
891
|
var RESUME_PARSER_PATTERN = {
|
package/dist/index.mjs
CHANGED
|
@@ -248,7 +248,8 @@ import {
|
|
|
248
248
|
Matches as Matches3,
|
|
249
249
|
MinLength as MinLength3,
|
|
250
250
|
MaxLength as MaxLength3,
|
|
251
|
-
IsString as IsString3
|
|
251
|
+
IsString as IsString3,
|
|
252
|
+
IsOptional as IsOptional2
|
|
252
253
|
} from "class-validator";
|
|
253
254
|
|
|
254
255
|
// src/decorators/match.decorator.ts
|
|
@@ -453,6 +454,9 @@ __decorateClass([
|
|
|
453
454
|
IsNotEmpty10({ message: "Please enter confirm password." }),
|
|
454
455
|
Match("password", { message: "Passwords do not match" })
|
|
455
456
|
], FreelancerCreateAccountDto.prototype, "confirmPassword", 2);
|
|
457
|
+
__decorateClass([
|
|
458
|
+
IsOptional2()
|
|
459
|
+
], FreelancerCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
456
460
|
|
|
457
461
|
// src/modules/onboarding/dto/freelancer-upload-resume.dto.ts
|
|
458
462
|
import { IsUUID, IsNotEmpty as IsNotEmpty11 } from "class-validator";
|
|
@@ -500,7 +504,7 @@ __decorateClass([
|
|
|
500
504
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
501
505
|
|
|
502
506
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
503
|
-
import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty16, IsOptional as
|
|
507
|
+
import { IsUUID as IsUUID6, IsNotEmpty as IsNotEmpty16, IsOptional as IsOptional3 } from "class-validator";
|
|
504
508
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
505
509
|
};
|
|
506
510
|
__decorateClass([
|
|
@@ -514,7 +518,7 @@ __decorateClass([
|
|
|
514
518
|
IsNotEmpty16({ message: "Please enter assessment status." })
|
|
515
519
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
516
520
|
__decorateClass([
|
|
517
|
-
|
|
521
|
+
IsOptional3()
|
|
518
522
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
519
523
|
|
|
520
524
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
@@ -536,7 +540,7 @@ import {
|
|
|
536
540
|
IsString as IsString4,
|
|
537
541
|
IsNotEmpty as IsNotEmpty18,
|
|
538
542
|
IsIn,
|
|
539
|
-
IsOptional as
|
|
543
|
+
IsOptional as IsOptional4
|
|
540
544
|
} from "class-validator";
|
|
541
545
|
var FreelancerProfileQuestionDto = class {
|
|
542
546
|
};
|
|
@@ -559,13 +563,13 @@ __decorateClass([
|
|
|
559
563
|
IsNotEmpty18({ message: "Please enter answer." })
|
|
560
564
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
561
565
|
__decorateClass([
|
|
562
|
-
|
|
566
|
+
IsOptional4()
|
|
563
567
|
], FreelancerProfileQuestionDto.prototype, "currency", 2);
|
|
564
568
|
|
|
565
569
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
566
570
|
import {
|
|
567
571
|
IsNotEmpty as IsNotEmpty19,
|
|
568
|
-
IsOptional as
|
|
572
|
+
IsOptional as IsOptional5,
|
|
569
573
|
IsUrl,
|
|
570
574
|
IsString as IsString5,
|
|
571
575
|
IsUUID as IsUUID9
|
|
@@ -587,7 +591,7 @@ __decorateClass([
|
|
|
587
591
|
)
|
|
588
592
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
589
593
|
__decorateClass([
|
|
590
|
-
|
|
594
|
+
IsOptional5(),
|
|
591
595
|
IsUrl(
|
|
592
596
|
{ require_protocol: false },
|
|
593
597
|
{
|
|
@@ -596,7 +600,7 @@ __decorateClass([
|
|
|
596
600
|
)
|
|
597
601
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
598
602
|
__decorateClass([
|
|
599
|
-
|
|
603
|
+
IsOptional5(),
|
|
600
604
|
IsUrl(
|
|
601
605
|
{ require_protocol: false },
|
|
602
606
|
{
|
|
@@ -605,7 +609,7 @@ __decorateClass([
|
|
|
605
609
|
)
|
|
606
610
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
607
611
|
__decorateClass([
|
|
608
|
-
|
|
612
|
+
IsOptional5(),
|
|
609
613
|
IsUrl(
|
|
610
614
|
{ require_protocol: false },
|
|
611
615
|
{
|
|
@@ -614,7 +618,7 @@ __decorateClass([
|
|
|
614
618
|
)
|
|
615
619
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
616
620
|
__decorateClass([
|
|
617
|
-
|
|
621
|
+
IsOptional5(),
|
|
618
622
|
IsUrl(
|
|
619
623
|
{ require_protocol: false },
|
|
620
624
|
{
|
|
@@ -664,7 +668,8 @@ import {
|
|
|
664
668
|
Matches as Matches4,
|
|
665
669
|
MinLength as MinLength4,
|
|
666
670
|
MaxLength as MaxLength4,
|
|
667
|
-
IsString as IsString7
|
|
671
|
+
IsString as IsString7,
|
|
672
|
+
IsOptional as IsOptional6
|
|
668
673
|
} from "class-validator";
|
|
669
674
|
var ClientCreateAccountDto = class {
|
|
670
675
|
};
|
|
@@ -697,6 +702,9 @@ __decorateClass([
|
|
|
697
702
|
IsNotEmpty21({ message: "Please enter confirm password." }),
|
|
698
703
|
Match("password", { message: "Passwords do not match" })
|
|
699
704
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
705
|
+
__decorateClass([
|
|
706
|
+
IsOptional6()
|
|
707
|
+
], ClientCreateAccountDto.prototype, "onBoardedBy", 2);
|
|
700
708
|
|
|
701
709
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
702
710
|
var RESUME_PARSER_PATTERN = {
|
|
@@ -756,7 +764,7 @@ __decorateClass([
|
|
|
756
764
|
|
|
757
765
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
758
766
|
import { Transform } from "class-transformer";
|
|
759
|
-
import { IsNotEmpty as IsNotEmpty23, IsOptional as
|
|
767
|
+
import { IsNotEmpty as IsNotEmpty23, IsOptional as IsOptional7, Matches as Matches5, MaxLength as MaxLength5, MinLength as MinLength5 } from "class-validator";
|
|
760
768
|
var UpdateSubAdminDto = class {
|
|
761
769
|
};
|
|
762
770
|
__decorateClass([
|
|
@@ -778,7 +786,7 @@ __decorateClass([
|
|
|
778
786
|
IsNotEmpty23({ message: "Please enter mobile number." })
|
|
779
787
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
780
788
|
__decorateClass([
|
|
781
|
-
|
|
789
|
+
IsOptional7(),
|
|
782
790
|
Transform(({ value }) => value === null || value === "" ? void 0 : value),
|
|
783
791
|
MinLength5(6, { message: "Password must be at least 6 characters." }),
|
|
784
792
|
MaxLength5(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -807,7 +815,7 @@ import {
|
|
|
807
815
|
IsEmail as IsEmail4,
|
|
808
816
|
Length as Length2,
|
|
809
817
|
IsUrl as IsUrl2,
|
|
810
|
-
IsOptional as
|
|
818
|
+
IsOptional as IsOptional8,
|
|
811
819
|
ValidateIf as ValidateIf2
|
|
812
820
|
} from "class-validator";
|
|
813
821
|
var UpdateCompanyProfileDto = class {
|
|
@@ -820,7 +828,7 @@ __decorateClass([
|
|
|
820
828
|
})
|
|
821
829
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
822
830
|
__decorateClass([
|
|
823
|
-
|
|
831
|
+
IsOptional8(),
|
|
824
832
|
ValidateIf2((o) => o.webSite !== ""),
|
|
825
833
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
826
834
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
@@ -845,7 +853,7 @@ __decorateClass([
|
|
|
845
853
|
IsEmail4()
|
|
846
854
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
847
855
|
__decorateClass([
|
|
848
|
-
|
|
856
|
+
IsOptional8(),
|
|
849
857
|
IsString9({ message: "About company must be a string." })
|
|
850
858
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
851
859
|
|
|
@@ -881,7 +889,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
881
889
|
// src/modules/question/dto/create-question.dto.ts
|
|
882
890
|
import {
|
|
883
891
|
IsNotEmpty as IsNotEmpty26,
|
|
884
|
-
IsOptional as
|
|
892
|
+
IsOptional as IsOptional9,
|
|
885
893
|
IsBoolean as IsBoolean2
|
|
886
894
|
} from "class-validator";
|
|
887
895
|
var CreateQuestionDto = class {
|
|
@@ -899,7 +907,7 @@ __decorateClass([
|
|
|
899
907
|
IsNotEmpty26({ message: "Please enter options." })
|
|
900
908
|
], CreateQuestionDto.prototype, "options", 2);
|
|
901
909
|
__decorateClass([
|
|
902
|
-
|
|
910
|
+
IsOptional9(),
|
|
903
911
|
IsBoolean2({ message: "Whether the question status active" })
|
|
904
912
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
905
913
|
|
|
@@ -935,7 +943,7 @@ import {
|
|
|
935
943
|
IsArray,
|
|
936
944
|
ArrayNotEmpty,
|
|
937
945
|
IsNumber,
|
|
938
|
-
IsOptional as
|
|
946
|
+
IsOptional as IsOptional10,
|
|
939
947
|
IsEnum as IsEnum8,
|
|
940
948
|
Min,
|
|
941
949
|
ValidateIf as ValidateIf3
|
|
@@ -959,7 +967,7 @@ var JobBasicInformationDto = class {
|
|
|
959
967
|
}
|
|
960
968
|
};
|
|
961
969
|
__decorateClass([
|
|
962
|
-
|
|
970
|
+
IsOptional10(),
|
|
963
971
|
Type(() => Boolean)
|
|
964
972
|
], JobBasicInformationDto.prototype, "isDraft", 2);
|
|
965
973
|
__decorateClass([
|
|
@@ -967,7 +975,7 @@ __decorateClass([
|
|
|
967
975
|
IsString11({ message: "Job role must be a string" })
|
|
968
976
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
969
977
|
__decorateClass([
|
|
970
|
-
|
|
978
|
+
IsOptional10(),
|
|
971
979
|
IsString11({ message: "Note must be a string" })
|
|
972
980
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
973
981
|
__decorateClass([
|
|
@@ -1043,12 +1051,12 @@ __decorateClass([
|
|
|
1043
1051
|
__decorateClass([
|
|
1044
1052
|
ValidateIf3((o) => !o.isDraft),
|
|
1045
1053
|
IsString11({ message: "Onboarding TAT must be a string" }),
|
|
1046
|
-
|
|
1054
|
+
IsOptional10()
|
|
1047
1055
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1048
1056
|
__decorateClass([
|
|
1049
1057
|
ValidateIf3((o) => !o.isDraft),
|
|
1050
1058
|
IsString11({ message: "Candidate communication skills must be a string" }),
|
|
1051
|
-
|
|
1059
|
+
IsOptional10()
|
|
1052
1060
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1053
1061
|
__decorateClass([
|
|
1054
1062
|
ValidateIf3((o) => !o.isDraft),
|
|
@@ -1067,11 +1075,11 @@ __decorateClass([
|
|
|
1067
1075
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
1068
1076
|
|
|
1069
1077
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1070
|
-
import { IsOptional as
|
|
1078
|
+
import { IsOptional as IsOptional11, IsString as IsString12, MaxLength as MaxLength6 } from "class-validator";
|
|
1071
1079
|
var JobAdditionalCommentDto = class {
|
|
1072
1080
|
};
|
|
1073
1081
|
__decorateClass([
|
|
1074
|
-
|
|
1082
|
+
IsOptional11(),
|
|
1075
1083
|
IsString12({ message: "Additional comment must be a string" }),
|
|
1076
1084
|
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1077
1085
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
@@ -1153,7 +1161,7 @@ __decorateClass([
|
|
|
1153
1161
|
|
|
1154
1162
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
1155
1163
|
import {
|
|
1156
|
-
IsOptional as
|
|
1164
|
+
IsOptional as IsOptional12,
|
|
1157
1165
|
IsString as IsString15,
|
|
1158
1166
|
IsEmail as IsEmail5,
|
|
1159
1167
|
IsNumber as IsNumber2,
|
|
@@ -1203,7 +1211,7 @@ __decorateClass([
|
|
|
1203
1211
|
IsString15({ message: "Please enter valid mobile number." })
|
|
1204
1212
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1205
1213
|
__decorateClass([
|
|
1206
|
-
|
|
1214
|
+
IsOptional12(),
|
|
1207
1215
|
IsNumber2()
|
|
1208
1216
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1209
1217
|
__decorateClass([
|
|
@@ -1231,35 +1239,35 @@ __decorateClass([
|
|
|
1231
1239
|
})
|
|
1232
1240
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1233
1241
|
__decorateClass([
|
|
1234
|
-
|
|
1242
|
+
IsOptional12(),
|
|
1235
1243
|
IsString15()
|
|
1236
1244
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
1237
1245
|
__decorateClass([
|
|
1238
|
-
|
|
1246
|
+
IsOptional12(),
|
|
1239
1247
|
IsString15()
|
|
1240
1248
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
1241
1249
|
__decorateClass([
|
|
1242
|
-
|
|
1250
|
+
IsOptional12(),
|
|
1243
1251
|
IsString15()
|
|
1244
1252
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
1245
1253
|
__decorateClass([
|
|
1246
|
-
|
|
1254
|
+
IsOptional12(),
|
|
1247
1255
|
IsString15()
|
|
1248
1256
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
1249
1257
|
__decorateClass([
|
|
1250
|
-
|
|
1258
|
+
IsOptional12(),
|
|
1251
1259
|
IsString15()
|
|
1252
1260
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
1253
1261
|
__decorateClass([
|
|
1254
|
-
|
|
1262
|
+
IsOptional12(),
|
|
1255
1263
|
IsString15()
|
|
1256
1264
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
1257
1265
|
__decorateClass([
|
|
1258
|
-
|
|
1266
|
+
IsOptional12(),
|
|
1259
1267
|
IsString15()
|
|
1260
1268
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
1261
1269
|
__decorateClass([
|
|
1262
|
-
|
|
1270
|
+
IsOptional12(),
|
|
1263
1271
|
IsString15()
|
|
1264
1272
|
], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
|
|
1265
1273
|
|
|
@@ -1274,7 +1282,7 @@ var BANK_PATTERN = {
|
|
|
1274
1282
|
import {
|
|
1275
1283
|
IsEnum as IsEnum11,
|
|
1276
1284
|
IsNotEmpty as IsNotEmpty32,
|
|
1277
|
-
IsOptional as
|
|
1285
|
+
IsOptional as IsOptional13,
|
|
1278
1286
|
ValidateIf as ValidateIf4
|
|
1279
1287
|
} from "class-validator";
|
|
1280
1288
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -1294,7 +1302,7 @@ __decorateClass([
|
|
|
1294
1302
|
IsNotEmpty32({ message: "Please enter Email." })
|
|
1295
1303
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1296
1304
|
__decorateClass([
|
|
1297
|
-
|
|
1305
|
+
IsOptional13()
|
|
1298
1306
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1299
1307
|
__decorateClass([
|
|
1300
1308
|
IsNotEmpty32({ message: "Please enter Account Number." })
|
|
@@ -1322,7 +1330,7 @@ __decorateClass([
|
|
|
1322
1330
|
IsNotEmpty32({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1323
1331
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1324
1332
|
__decorateClass([
|
|
1325
|
-
|
|
1333
|
+
IsOptional13()
|
|
1326
1334
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1327
1335
|
__decorateClass([
|
|
1328
1336
|
IsEnum11(BankAccountScope, {
|
|
@@ -1384,7 +1392,7 @@ import {
|
|
|
1384
1392
|
IsEnum as IsEnum13,
|
|
1385
1393
|
IsInt,
|
|
1386
1394
|
IsNotEmpty as IsNotEmpty33,
|
|
1387
|
-
IsOptional as
|
|
1395
|
+
IsOptional as IsOptional14,
|
|
1388
1396
|
IsString as IsString16,
|
|
1389
1397
|
Max,
|
|
1390
1398
|
Min as Min2
|
|
@@ -4159,7 +4167,7 @@ __decorateClass([
|
|
|
4159
4167
|
Max(5, { message: "Rating must be at most 5" })
|
|
4160
4168
|
], CreateRatingDto.prototype, "rating", 2);
|
|
4161
4169
|
__decorateClass([
|
|
4162
|
-
|
|
4170
|
+
IsOptional14(),
|
|
4163
4171
|
IsString16({ message: "Review must be a string" })
|
|
4164
4172
|
], CreateRatingDto.prototype, "review", 2);
|
|
4165
4173
|
|
|
@@ -4176,7 +4184,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
4176
4184
|
};
|
|
4177
4185
|
|
|
4178
4186
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
4179
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as
|
|
4187
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional15 } from "class-validator";
|
|
4180
4188
|
var CreateCompanyRoleDto = class {
|
|
4181
4189
|
};
|
|
4182
4190
|
__decorateClass([
|
|
@@ -4194,12 +4202,12 @@ __decorateClass([
|
|
|
4194
4202
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
4195
4203
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
4196
4204
|
__decorateClass([
|
|
4197
|
-
|
|
4205
|
+
IsOptional15(),
|
|
4198
4206
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
4199
4207
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
4200
4208
|
|
|
4201
4209
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
4202
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as
|
|
4210
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional16 } from "class-validator";
|
|
4203
4211
|
var UpdateCompanyRoleDto = class {
|
|
4204
4212
|
};
|
|
4205
4213
|
__decorateClass([
|
|
@@ -4217,7 +4225,7 @@ __decorateClass([
|
|
|
4217
4225
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
4218
4226
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
4219
4227
|
__decorateClass([
|
|
4220
|
-
|
|
4228
|
+
IsOptional16(),
|
|
4221
4229
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
4222
4230
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
4223
4231
|
|
|
@@ -4239,7 +4247,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
4239
4247
|
import {
|
|
4240
4248
|
ArrayMinSize,
|
|
4241
4249
|
IsNotEmpty as IsNotEmpty36,
|
|
4242
|
-
IsOptional as
|
|
4250
|
+
IsOptional as IsOptional17,
|
|
4243
4251
|
IsString as IsString19,
|
|
4244
4252
|
MaxLength as MaxLength10,
|
|
4245
4253
|
ValidateNested
|
|
@@ -4248,7 +4256,7 @@ import { Type as Type2 } from "class-transformer";
|
|
|
4248
4256
|
var ExperienceDto = class {
|
|
4249
4257
|
};
|
|
4250
4258
|
__decorateClass([
|
|
4251
|
-
|
|
4259
|
+
IsOptional17()
|
|
4252
4260
|
], ExperienceDto.prototype, "uuid", 2);
|
|
4253
4261
|
__decorateClass([
|
|
4254
4262
|
IsNotEmpty36(),
|
|
@@ -4263,7 +4271,7 @@ __decorateClass([
|
|
|
4263
4271
|
IsString19()
|
|
4264
4272
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
4265
4273
|
__decorateClass([
|
|
4266
|
-
|
|
4274
|
+
IsOptional17(),
|
|
4267
4275
|
IsString19(),
|
|
4268
4276
|
MaxLength10(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4269
4277
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -4334,12 +4342,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
4334
4342
|
};
|
|
4335
4343
|
|
|
4336
4344
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
4337
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as
|
|
4345
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional20, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
4338
4346
|
import { Type as Type3 } from "class-transformer";
|
|
4339
4347
|
var EducationDto = class {
|
|
4340
4348
|
};
|
|
4341
4349
|
__decorateClass([
|
|
4342
|
-
|
|
4350
|
+
IsOptional20()
|
|
4343
4351
|
], EducationDto.prototype, "uuid", 2);
|
|
4344
4352
|
__decorateClass([
|
|
4345
4353
|
IsString22(),
|
|
@@ -4369,12 +4377,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
4369
4377
|
};
|
|
4370
4378
|
|
|
4371
4379
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4372
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as
|
|
4380
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional21, IsDateString, MaxLength as MaxLength12, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
4373
4381
|
import { Type as Type4 } from "class-transformer";
|
|
4374
4382
|
var ProjectDto = class {
|
|
4375
4383
|
};
|
|
4376
4384
|
__decorateClass([
|
|
4377
|
-
|
|
4385
|
+
IsOptional21()
|
|
4378
4386
|
], ProjectDto.prototype, "uuid", 2);
|
|
4379
4387
|
__decorateClass([
|
|
4380
4388
|
IsString23(),
|
|
@@ -4389,33 +4397,33 @@ __decorateClass([
|
|
|
4389
4397
|
IsNotEmpty40({ message: "Please Enter End Date " })
|
|
4390
4398
|
], ProjectDto.prototype, "endDate", 2);
|
|
4391
4399
|
__decorateClass([
|
|
4392
|
-
|
|
4400
|
+
IsOptional21(),
|
|
4393
4401
|
IsString23()
|
|
4394
4402
|
], ProjectDto.prototype, "clientName", 2);
|
|
4395
4403
|
__decorateClass([
|
|
4396
|
-
|
|
4404
|
+
IsOptional21(),
|
|
4397
4405
|
IsString23()
|
|
4398
4406
|
], ProjectDto.prototype, "gitLink", 2);
|
|
4399
4407
|
__decorateClass([
|
|
4400
|
-
|
|
4408
|
+
IsOptional21(),
|
|
4401
4409
|
IsString23(),
|
|
4402
4410
|
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4403
4411
|
], ProjectDto.prototype, "description", 2);
|
|
4404
4412
|
var CaseStudyDto = class {
|
|
4405
4413
|
};
|
|
4406
4414
|
__decorateClass([
|
|
4407
|
-
|
|
4415
|
+
IsOptional21()
|
|
4408
4416
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4409
4417
|
__decorateClass([
|
|
4410
4418
|
IsString23(),
|
|
4411
4419
|
IsNotEmpty40({ message: "Please Enter Project Name " })
|
|
4412
4420
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4413
4421
|
__decorateClass([
|
|
4414
|
-
|
|
4422
|
+
IsOptional21(),
|
|
4415
4423
|
IsString23()
|
|
4416
4424
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
4417
4425
|
__decorateClass([
|
|
4418
|
-
|
|
4426
|
+
IsOptional21(),
|
|
4419
4427
|
IsString23(),
|
|
4420
4428
|
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4421
4429
|
], CaseStudyDto.prototype, "description", 2);
|
|
@@ -4445,7 +4453,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4445
4453
|
};
|
|
4446
4454
|
|
|
4447
4455
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4448
|
-
import { IsArray as IsArray8, IsString as IsString24, IsOptional as
|
|
4456
|
+
import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional22 } from "class-validator";
|
|
4449
4457
|
import { Type as Type5 } from "class-transformer";
|
|
4450
4458
|
var FreelancerSkillDto = class {
|
|
4451
4459
|
constructor() {
|
|
@@ -4455,19 +4463,19 @@ var FreelancerSkillDto = class {
|
|
|
4455
4463
|
}
|
|
4456
4464
|
};
|
|
4457
4465
|
__decorateClass([
|
|
4458
|
-
|
|
4466
|
+
IsOptional22(),
|
|
4459
4467
|
IsArray8(),
|
|
4460
4468
|
Type5(() => String),
|
|
4461
4469
|
IsString24({ each: true })
|
|
4462
4470
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4463
4471
|
__decorateClass([
|
|
4464
|
-
|
|
4472
|
+
IsOptional22(),
|
|
4465
4473
|
IsArray8(),
|
|
4466
4474
|
Type5(() => String),
|
|
4467
4475
|
IsString24({ each: true })
|
|
4468
4476
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4469
4477
|
__decorateClass([
|
|
4470
|
-
|
|
4478
|
+
IsOptional22(),
|
|
4471
4479
|
IsArray8(),
|
|
4472
4480
|
Type5(() => String),
|
|
4473
4481
|
IsString24({ each: true })
|
|
@@ -4490,7 +4498,7 @@ import {
|
|
|
4490
4498
|
IsString as IsString25,
|
|
4491
4499
|
IsEmail as IsEmail10,
|
|
4492
4500
|
IsBoolean as IsBoolean10,
|
|
4493
|
-
IsOptional as
|
|
4501
|
+
IsOptional as IsOptional23,
|
|
4494
4502
|
IsEnum as IsEnum14,
|
|
4495
4503
|
IsNumber as IsNumber3,
|
|
4496
4504
|
IsUrl as IsUrl3,
|
|
@@ -4573,23 +4581,23 @@ __decorateClass([
|
|
|
4573
4581
|
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
4574
4582
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4575
4583
|
__decorateClass([
|
|
4576
|
-
|
|
4584
|
+
IsOptional23(),
|
|
4577
4585
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4578
4586
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4579
4587
|
__decorateClass([
|
|
4580
|
-
|
|
4588
|
+
IsOptional23(),
|
|
4581
4589
|
IsString25({ message: "Kaggle profile link must be a string" })
|
|
4582
4590
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4583
4591
|
__decorateClass([
|
|
4584
|
-
|
|
4592
|
+
IsOptional23(),
|
|
4585
4593
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
4586
4594
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4587
4595
|
__decorateClass([
|
|
4588
|
-
|
|
4596
|
+
IsOptional23(),
|
|
4589
4597
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4590
4598
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4591
4599
|
__decorateClass([
|
|
4592
|
-
|
|
4600
|
+
IsOptional23(),
|
|
4593
4601
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
4594
4602
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4595
4603
|
|
|
@@ -4598,7 +4606,7 @@ import {
|
|
|
4598
4606
|
IsString as IsString26,
|
|
4599
4607
|
IsEmail as IsEmail11,
|
|
4600
4608
|
IsBoolean as IsBoolean11,
|
|
4601
|
-
IsOptional as
|
|
4609
|
+
IsOptional as IsOptional24,
|
|
4602
4610
|
IsEnum as IsEnum15,
|
|
4603
4611
|
IsNumber as IsNumber4,
|
|
4604
4612
|
IsUrl as IsUrl4,
|
|
@@ -4625,24 +4633,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4625
4633
|
var UpdateFreelancerDto = class {
|
|
4626
4634
|
};
|
|
4627
4635
|
__decorateClass([
|
|
4628
|
-
|
|
4636
|
+
IsOptional24(),
|
|
4629
4637
|
IsString26({ message: "Full name must be a string" }),
|
|
4630
4638
|
MaxLength15(100, { message: "Full name must not exceed 100 characters" })
|
|
4631
4639
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4632
4640
|
__decorateClass([
|
|
4633
|
-
|
|
4641
|
+
IsOptional24(),
|
|
4634
4642
|
IsEmail11({}, { message: "Invalid email address" })
|
|
4635
4643
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4636
4644
|
__decorateClass([
|
|
4637
|
-
|
|
4645
|
+
IsOptional24(),
|
|
4638
4646
|
IsString26({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4639
4647
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4640
4648
|
__decorateClass([
|
|
4641
|
-
|
|
4649
|
+
IsOptional24(),
|
|
4642
4650
|
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4643
4651
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4644
4652
|
__decorateClass([
|
|
4645
|
-
|
|
4653
|
+
IsOptional24(),
|
|
4646
4654
|
Transform2(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4647
4655
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
4648
4656
|
MaxLength15(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -4651,12 +4659,12 @@ __decorateClass([
|
|
|
4651
4659
|
})
|
|
4652
4660
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4653
4661
|
__decorateClass([
|
|
4654
|
-
|
|
4662
|
+
IsOptional24(),
|
|
4655
4663
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
4656
4664
|
Type7(() => Boolean)
|
|
4657
4665
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4658
4666
|
__decorateClass([
|
|
4659
|
-
|
|
4667
|
+
IsOptional24(),
|
|
4660
4668
|
IsEnum15(NatureOfWorkEnum2, {
|
|
4661
4669
|
message: `Nature of work must be one of: ${Object.values(
|
|
4662
4670
|
NatureOfWorkEnum2
|
|
@@ -4664,13 +4672,13 @@ __decorateClass([
|
|
|
4664
4672
|
})
|
|
4665
4673
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4666
4674
|
__decorateClass([
|
|
4667
|
-
|
|
4675
|
+
IsOptional24(),
|
|
4668
4676
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
4669
4677
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4670
4678
|
Type7(() => Number)
|
|
4671
4679
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4672
4680
|
__decorateClass([
|
|
4673
|
-
|
|
4681
|
+
IsOptional24(),
|
|
4674
4682
|
IsEnum15(ModeOfWorkEnum2, {
|
|
4675
4683
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4676
4684
|
", "
|
|
@@ -4678,7 +4686,7 @@ __decorateClass([
|
|
|
4678
4686
|
})
|
|
4679
4687
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4680
4688
|
__decorateClass([
|
|
4681
|
-
|
|
4689
|
+
IsOptional24(),
|
|
4682
4690
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
4683
4691
|
Type7(() => Boolean)
|
|
4684
4692
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
@@ -4687,23 +4695,23 @@ __decorateClass([
|
|
|
4687
4695
|
IsNotEmpty43({ message: "Please enter availability to join." })
|
|
4688
4696
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4689
4697
|
__decorateClass([
|
|
4690
|
-
|
|
4698
|
+
IsOptional24(),
|
|
4691
4699
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4692
4700
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4693
4701
|
__decorateClass([
|
|
4694
|
-
|
|
4702
|
+
IsOptional24(),
|
|
4695
4703
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
4696
4704
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4697
4705
|
__decorateClass([
|
|
4698
|
-
|
|
4706
|
+
IsOptional24(),
|
|
4699
4707
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
4700
4708
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4701
4709
|
__decorateClass([
|
|
4702
|
-
|
|
4710
|
+
IsOptional24(),
|
|
4703
4711
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4704
4712
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4705
4713
|
__decorateClass([
|
|
4706
|
-
|
|
4714
|
+
IsOptional24(),
|
|
4707
4715
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
4708
4716
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4709
4717
|
|
|
@@ -4724,7 +4732,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4724
4732
|
import {
|
|
4725
4733
|
IsNotEmpty as IsNotEmpty44,
|
|
4726
4734
|
IsEmail as IsEmail12,
|
|
4727
|
-
IsOptional as
|
|
4735
|
+
IsOptional as IsOptional25,
|
|
4728
4736
|
IsString as IsString27,
|
|
4729
4737
|
IsArray as IsArray9,
|
|
4730
4738
|
MinLength as MinLength14,
|
|
@@ -4795,7 +4803,7 @@ __decorateClass([
|
|
|
4795
4803
|
IsString27()
|
|
4796
4804
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4797
4805
|
__decorateClass([
|
|
4798
|
-
|
|
4806
|
+
IsOptional25(),
|
|
4799
4807
|
IsString27()
|
|
4800
4808
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4801
4809
|
|
|
@@ -4813,7 +4821,7 @@ import { Transform as Transform3 } from "class-transformer";
|
|
|
4813
4821
|
import {
|
|
4814
4822
|
IsNotEmpty as IsNotEmpty46,
|
|
4815
4823
|
IsEmail as IsEmail13,
|
|
4816
|
-
IsOptional as
|
|
4824
|
+
IsOptional as IsOptional26,
|
|
4817
4825
|
IsString as IsString29,
|
|
4818
4826
|
IsArray as IsArray10,
|
|
4819
4827
|
MinLength as MinLength15,
|
|
@@ -4848,7 +4856,7 @@ __decorateClass([
|
|
|
4848
4856
|
IsEmail13()
|
|
4849
4857
|
], UpdateClientDto.prototype, "email", 2);
|
|
4850
4858
|
__decorateClass([
|
|
4851
|
-
|
|
4859
|
+
IsOptional26(),
|
|
4852
4860
|
Transform3(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4853
4861
|
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
4854
4862
|
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -4881,7 +4889,7 @@ __decorateClass([
|
|
|
4881
4889
|
IsString29()
|
|
4882
4890
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4883
4891
|
__decorateClass([
|
|
4884
|
-
|
|
4892
|
+
IsOptional26(),
|
|
4885
4893
|
IsString29()
|
|
4886
4894
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4887
4895
|
|
|
@@ -4892,7 +4900,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4892
4900
|
};
|
|
4893
4901
|
|
|
4894
4902
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4895
|
-
import { IsOptional as
|
|
4903
|
+
import { IsOptional as IsOptional27, IsEnum as IsEnum18, IsString as IsString30, IsNotEmpty as IsNotEmpty47, IsIn as IsIn3 } from "class-validator";
|
|
4896
4904
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4897
4905
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4898
4906
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4903,7 +4911,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4903
4911
|
var FreelancerDeclarationDto = class {
|
|
4904
4912
|
};
|
|
4905
4913
|
__decorateClass([
|
|
4906
|
-
|
|
4914
|
+
IsOptional27(),
|
|
4907
4915
|
IsString30({ message: "UUID must be a string" })
|
|
4908
4916
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4909
4917
|
__decorateClass([
|
|
@@ -4927,35 +4935,35 @@ var CMS_PATTERNS = {
|
|
|
4927
4935
|
};
|
|
4928
4936
|
|
|
4929
4937
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4930
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as
|
|
4938
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional28 } from "class-validator";
|
|
4931
4939
|
var CreateCmsDto = class {
|
|
4932
4940
|
};
|
|
4933
4941
|
__decorateClass([
|
|
4934
4942
|
IsNotEmpty48({ message: "Please enter name." })
|
|
4935
4943
|
], CreateCmsDto.prototype, "title", 2);
|
|
4936
4944
|
__decorateClass([
|
|
4937
|
-
|
|
4945
|
+
IsOptional28()
|
|
4938
4946
|
], CreateCmsDto.prototype, "content", 2);
|
|
4939
4947
|
__decorateClass([
|
|
4940
|
-
|
|
4948
|
+
IsOptional28(),
|
|
4941
4949
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
4942
4950
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4943
4951
|
|
|
4944
4952
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4945
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as
|
|
4953
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional29 } from "class-validator";
|
|
4946
4954
|
var UpdateCmsDto = class {
|
|
4947
4955
|
};
|
|
4948
4956
|
__decorateClass([
|
|
4949
|
-
|
|
4957
|
+
IsOptional29()
|
|
4950
4958
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4951
4959
|
__decorateClass([
|
|
4952
4960
|
IsNotEmpty49({ message: "Please enter name." })
|
|
4953
4961
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4954
4962
|
__decorateClass([
|
|
4955
|
-
|
|
4963
|
+
IsOptional29()
|
|
4956
4964
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4957
4965
|
__decorateClass([
|
|
4958
|
-
|
|
4966
|
+
IsOptional29(),
|
|
4959
4967
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
4960
4968
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4961
4969
|
|
|
@@ -4988,7 +4996,7 @@ import {
|
|
|
4988
4996
|
IsString as IsString31,
|
|
4989
4997
|
IsEnum as IsEnum19,
|
|
4990
4998
|
IsInt as IsInt6,
|
|
4991
|
-
IsOptional as
|
|
4999
|
+
IsOptional as IsOptional30,
|
|
4992
5000
|
IsArray as IsArray11,
|
|
4993
5001
|
IsDateString as IsDateString4,
|
|
4994
5002
|
IsNotEmpty as IsNotEmpty50,
|
|
@@ -5015,7 +5023,7 @@ __decorateClass([
|
|
|
5015
5023
|
IsNotEmpty50({ message: "Job role is required." })
|
|
5016
5024
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
5017
5025
|
__decorateClass([
|
|
5018
|
-
|
|
5026
|
+
IsOptional30(),
|
|
5019
5027
|
IsString31({ message: "Note must be a string." })
|
|
5020
5028
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
5021
5029
|
__decorateClass([
|
|
@@ -5065,7 +5073,7 @@ __decorateClass([
|
|
|
5065
5073
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
5066
5074
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5067
5075
|
__decorateClass([
|
|
5068
|
-
|
|
5076
|
+
IsOptional30(),
|
|
5069
5077
|
IsString31({ message: "Additional comment must be a string." })
|
|
5070
5078
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
5071
5079
|
__decorateClass([
|
|
@@ -5087,7 +5095,7 @@ import {
|
|
|
5087
5095
|
IsString as IsString32,
|
|
5088
5096
|
IsEnum as IsEnum20,
|
|
5089
5097
|
IsInt as IsInt7,
|
|
5090
|
-
IsOptional as
|
|
5098
|
+
IsOptional as IsOptional31,
|
|
5091
5099
|
IsArray as IsArray12,
|
|
5092
5100
|
IsDateString as IsDateString5,
|
|
5093
5101
|
IsNotEmpty as IsNotEmpty51,
|
|
@@ -5114,7 +5122,7 @@ __decorateClass([
|
|
|
5114
5122
|
IsNotEmpty51({ message: "Job role is required." })
|
|
5115
5123
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
5116
5124
|
__decorateClass([
|
|
5117
|
-
|
|
5125
|
+
IsOptional31(),
|
|
5118
5126
|
IsString32({ message: "Note must be a string." })
|
|
5119
5127
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
5120
5128
|
__decorateClass([
|
|
@@ -5164,7 +5172,7 @@ __decorateClass([
|
|
|
5164
5172
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
5165
5173
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5166
5174
|
__decorateClass([
|
|
5167
|
-
|
|
5175
|
+
IsOptional31(),
|
|
5168
5176
|
IsString32({ message: "Additional comment must be a string." })
|
|
5169
5177
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
5170
5178
|
__decorateClass([
|
|
@@ -5187,7 +5195,7 @@ var LEAD_PATTERN = {
|
|
|
5187
5195
|
};
|
|
5188
5196
|
|
|
5189
5197
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
5190
|
-
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as
|
|
5198
|
+
import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional32, IsEnum as IsEnum21 } from "class-validator";
|
|
5191
5199
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
5192
5200
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
5193
5201
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -5208,7 +5216,7 @@ __decorateClass([
|
|
|
5208
5216
|
IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
5209
5217
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
5210
5218
|
__decorateClass([
|
|
5211
|
-
|
|
5219
|
+
IsOptional32(),
|
|
5212
5220
|
IsString33({ message: "Description must be a string" })
|
|
5213
5221
|
], CreateLeadDto.prototype, "description", 2);
|
|
5214
5222
|
__decorateClass([
|
|
@@ -5232,7 +5240,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
5232
5240
|
};
|
|
5233
5241
|
|
|
5234
5242
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
5235
|
-
import { IsNotEmpty as IsNotEmpty52, IsOptional as
|
|
5243
|
+
import { IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional33, IsString as IsString34 } from "class-validator";
|
|
5236
5244
|
var CreateAdminRoleDto = class {
|
|
5237
5245
|
};
|
|
5238
5246
|
__decorateClass([
|
|
@@ -5240,12 +5248,12 @@ __decorateClass([
|
|
|
5240
5248
|
IsString34({ message: "Role name must be a string." })
|
|
5241
5249
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
5242
5250
|
__decorateClass([
|
|
5243
|
-
|
|
5251
|
+
IsOptional33(),
|
|
5244
5252
|
IsString34({ message: "Role description must be a string." })
|
|
5245
5253
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5246
5254
|
|
|
5247
5255
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
5248
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as
|
|
5256
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as IsOptional34, IsString as IsString35 } from "class-validator";
|
|
5249
5257
|
var UpdateAdminRoleDto = class {
|
|
5250
5258
|
};
|
|
5251
5259
|
__decorateClass([
|
|
@@ -5253,11 +5261,11 @@ __decorateClass([
|
|
|
5253
5261
|
IsString35({ message: "Role name must be a string." })
|
|
5254
5262
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
5255
5263
|
__decorateClass([
|
|
5256
|
-
|
|
5264
|
+
IsOptional34(),
|
|
5257
5265
|
IsString35({ message: "Role description must be a string." })
|
|
5258
5266
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5259
5267
|
__decorateClass([
|
|
5260
|
-
|
|
5268
|
+
IsOptional34(),
|
|
5261
5269
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
5262
5270
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
5263
5271
|
|