@experts_hub/shared 1.0.334 → 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/entities/user.entity.d.ts +1 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +9 -0
- package/dist/index.mjs +121 -110
- package/dist/modules/onboarding/dto/client-create-account.dto.d.ts +1 -0
- package/dist/modules/onboarding/dto/freelancer-create-account.dto.d.ts +1 -0
- package/package.json +1 -1
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: {
|
|
@@ -1342,6 +1344,7 @@ declare class User extends BaseEntity {
|
|
|
1342
1344
|
linkedInId: string;
|
|
1343
1345
|
googleId: string;
|
|
1344
1346
|
gitLabsId: string;
|
|
1347
|
+
onBoardedBy: string;
|
|
1345
1348
|
otps: Otp[];
|
|
1346
1349
|
senseloafLogs: SenseloafLog[];
|
|
1347
1350
|
companyProfile: CompanyProfile;
|
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: {
|
|
@@ -1342,6 +1344,7 @@ declare class User extends BaseEntity {
|
|
|
1342
1344
|
linkedInId: string;
|
|
1343
1345
|
googleId: string;
|
|
1344
1346
|
gitLabsId: string;
|
|
1347
|
+
onBoardedBy: string;
|
|
1345
1348
|
otps: Otp[];
|
|
1346
1349
|
senseloafLogs: SenseloafLog[];
|
|
1347
1350
|
companyProfile: CompanyProfile;
|
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 = {
|
|
@@ -3941,6 +3947,9 @@ __decorateClass([
|
|
|
3941
3947
|
__decorateClass([
|
|
3942
3948
|
(0, import_typeorm45.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
3943
3949
|
], User.prototype, "gitLabsId", 2);
|
|
3950
|
+
__decorateClass([
|
|
3951
|
+
(0, import_typeorm45.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
3952
|
+
], User.prototype, "onBoardedBy", 2);
|
|
3944
3953
|
__decorateClass([
|
|
3945
3954
|
(0, import_typeorm45.OneToMany)(() => Otp, (otp) => otp.user)
|
|
3946
3955
|
], User.prototype, "otps", 2);
|
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
|
|
@@ -4006,6 +4014,9 @@ __decorateClass([
|
|
|
4006
4014
|
__decorateClass([
|
|
4007
4015
|
Column45({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
4008
4016
|
], User.prototype, "gitLabsId", 2);
|
|
4017
|
+
__decorateClass([
|
|
4018
|
+
Column45({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
4019
|
+
], User.prototype, "onBoardedBy", 2);
|
|
4009
4020
|
__decorateClass([
|
|
4010
4021
|
OneToMany14(() => Otp, (otp) => otp.user)
|
|
4011
4022
|
], User.prototype, "otps", 2);
|
|
@@ -4156,7 +4167,7 @@ __decorateClass([
|
|
|
4156
4167
|
Max(5, { message: "Rating must be at most 5" })
|
|
4157
4168
|
], CreateRatingDto.prototype, "rating", 2);
|
|
4158
4169
|
__decorateClass([
|
|
4159
|
-
|
|
4170
|
+
IsOptional14(),
|
|
4160
4171
|
IsString16({ message: "Review must be a string" })
|
|
4161
4172
|
], CreateRatingDto.prototype, "review", 2);
|
|
4162
4173
|
|
|
@@ -4173,7 +4184,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
4173
4184
|
};
|
|
4174
4185
|
|
|
4175
4186
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
4176
|
-
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";
|
|
4177
4188
|
var CreateCompanyRoleDto = class {
|
|
4178
4189
|
};
|
|
4179
4190
|
__decorateClass([
|
|
@@ -4191,12 +4202,12 @@ __decorateClass([
|
|
|
4191
4202
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
4192
4203
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
4193
4204
|
__decorateClass([
|
|
4194
|
-
|
|
4205
|
+
IsOptional15(),
|
|
4195
4206
|
IsBoolean4({ message: "Is active must be a boolean value" })
|
|
4196
4207
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
4197
4208
|
|
|
4198
4209
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
4199
|
-
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";
|
|
4200
4211
|
var UpdateCompanyRoleDto = class {
|
|
4201
4212
|
};
|
|
4202
4213
|
__decorateClass([
|
|
@@ -4214,7 +4225,7 @@ __decorateClass([
|
|
|
4214
4225
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
4215
4226
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
4216
4227
|
__decorateClass([
|
|
4217
|
-
|
|
4228
|
+
IsOptional16(),
|
|
4218
4229
|
IsBoolean5({ message: "Is active must be a boolean value" })
|
|
4219
4230
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
4220
4231
|
|
|
@@ -4236,7 +4247,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
4236
4247
|
import {
|
|
4237
4248
|
ArrayMinSize,
|
|
4238
4249
|
IsNotEmpty as IsNotEmpty36,
|
|
4239
|
-
IsOptional as
|
|
4250
|
+
IsOptional as IsOptional17,
|
|
4240
4251
|
IsString as IsString19,
|
|
4241
4252
|
MaxLength as MaxLength10,
|
|
4242
4253
|
ValidateNested
|
|
@@ -4245,7 +4256,7 @@ import { Type as Type2 } from "class-transformer";
|
|
|
4245
4256
|
var ExperienceDto = class {
|
|
4246
4257
|
};
|
|
4247
4258
|
__decorateClass([
|
|
4248
|
-
|
|
4259
|
+
IsOptional17()
|
|
4249
4260
|
], ExperienceDto.prototype, "uuid", 2);
|
|
4250
4261
|
__decorateClass([
|
|
4251
4262
|
IsNotEmpty36(),
|
|
@@ -4260,7 +4271,7 @@ __decorateClass([
|
|
|
4260
4271
|
IsString19()
|
|
4261
4272
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
4262
4273
|
__decorateClass([
|
|
4263
|
-
|
|
4274
|
+
IsOptional17(),
|
|
4264
4275
|
IsString19(),
|
|
4265
4276
|
MaxLength10(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4266
4277
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -4331,12 +4342,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
4331
4342
|
};
|
|
4332
4343
|
|
|
4333
4344
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
4334
|
-
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";
|
|
4335
4346
|
import { Type as Type3 } from "class-transformer";
|
|
4336
4347
|
var EducationDto = class {
|
|
4337
4348
|
};
|
|
4338
4349
|
__decorateClass([
|
|
4339
|
-
|
|
4350
|
+
IsOptional20()
|
|
4340
4351
|
], EducationDto.prototype, "uuid", 2);
|
|
4341
4352
|
__decorateClass([
|
|
4342
4353
|
IsString22(),
|
|
@@ -4366,12 +4377,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
4366
4377
|
};
|
|
4367
4378
|
|
|
4368
4379
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
4369
|
-
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";
|
|
4370
4381
|
import { Type as Type4 } from "class-transformer";
|
|
4371
4382
|
var ProjectDto = class {
|
|
4372
4383
|
};
|
|
4373
4384
|
__decorateClass([
|
|
4374
|
-
|
|
4385
|
+
IsOptional21()
|
|
4375
4386
|
], ProjectDto.prototype, "uuid", 2);
|
|
4376
4387
|
__decorateClass([
|
|
4377
4388
|
IsString23(),
|
|
@@ -4386,33 +4397,33 @@ __decorateClass([
|
|
|
4386
4397
|
IsNotEmpty40({ message: "Please Enter End Date " })
|
|
4387
4398
|
], ProjectDto.prototype, "endDate", 2);
|
|
4388
4399
|
__decorateClass([
|
|
4389
|
-
|
|
4400
|
+
IsOptional21(),
|
|
4390
4401
|
IsString23()
|
|
4391
4402
|
], ProjectDto.prototype, "clientName", 2);
|
|
4392
4403
|
__decorateClass([
|
|
4393
|
-
|
|
4404
|
+
IsOptional21(),
|
|
4394
4405
|
IsString23()
|
|
4395
4406
|
], ProjectDto.prototype, "gitLink", 2);
|
|
4396
4407
|
__decorateClass([
|
|
4397
|
-
|
|
4408
|
+
IsOptional21(),
|
|
4398
4409
|
IsString23(),
|
|
4399
4410
|
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4400
4411
|
], ProjectDto.prototype, "description", 2);
|
|
4401
4412
|
var CaseStudyDto = class {
|
|
4402
4413
|
};
|
|
4403
4414
|
__decorateClass([
|
|
4404
|
-
|
|
4415
|
+
IsOptional21()
|
|
4405
4416
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
4406
4417
|
__decorateClass([
|
|
4407
4418
|
IsString23(),
|
|
4408
4419
|
IsNotEmpty40({ message: "Please Enter Project Name " })
|
|
4409
4420
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
4410
4421
|
__decorateClass([
|
|
4411
|
-
|
|
4422
|
+
IsOptional21(),
|
|
4412
4423
|
IsString23()
|
|
4413
4424
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
4414
4425
|
__decorateClass([
|
|
4415
|
-
|
|
4426
|
+
IsOptional21(),
|
|
4416
4427
|
IsString23(),
|
|
4417
4428
|
MaxLength12(5e3, { message: "Description must not exceed 5000 characters" })
|
|
4418
4429
|
], CaseStudyDto.prototype, "description", 2);
|
|
@@ -4442,7 +4453,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
4442
4453
|
};
|
|
4443
4454
|
|
|
4444
4455
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
4445
|
-
import { IsArray as IsArray8, IsString as IsString24, IsOptional as
|
|
4456
|
+
import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional22 } from "class-validator";
|
|
4446
4457
|
import { Type as Type5 } from "class-transformer";
|
|
4447
4458
|
var FreelancerSkillDto = class {
|
|
4448
4459
|
constructor() {
|
|
@@ -4452,19 +4463,19 @@ var FreelancerSkillDto = class {
|
|
|
4452
4463
|
}
|
|
4453
4464
|
};
|
|
4454
4465
|
__decorateClass([
|
|
4455
|
-
|
|
4466
|
+
IsOptional22(),
|
|
4456
4467
|
IsArray8(),
|
|
4457
4468
|
Type5(() => String),
|
|
4458
4469
|
IsString24({ each: true })
|
|
4459
4470
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
4460
4471
|
__decorateClass([
|
|
4461
|
-
|
|
4472
|
+
IsOptional22(),
|
|
4462
4473
|
IsArray8(),
|
|
4463
4474
|
Type5(() => String),
|
|
4464
4475
|
IsString24({ each: true })
|
|
4465
4476
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
4466
4477
|
__decorateClass([
|
|
4467
|
-
|
|
4478
|
+
IsOptional22(),
|
|
4468
4479
|
IsArray8(),
|
|
4469
4480
|
Type5(() => String),
|
|
4470
4481
|
IsString24({ each: true })
|
|
@@ -4487,7 +4498,7 @@ import {
|
|
|
4487
4498
|
IsString as IsString25,
|
|
4488
4499
|
IsEmail as IsEmail10,
|
|
4489
4500
|
IsBoolean as IsBoolean10,
|
|
4490
|
-
IsOptional as
|
|
4501
|
+
IsOptional as IsOptional23,
|
|
4491
4502
|
IsEnum as IsEnum14,
|
|
4492
4503
|
IsNumber as IsNumber3,
|
|
4493
4504
|
IsUrl as IsUrl3,
|
|
@@ -4570,23 +4581,23 @@ __decorateClass([
|
|
|
4570
4581
|
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
4571
4582
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4572
4583
|
__decorateClass([
|
|
4573
|
-
|
|
4584
|
+
IsOptional23(),
|
|
4574
4585
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4575
4586
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4576
4587
|
__decorateClass([
|
|
4577
|
-
|
|
4588
|
+
IsOptional23(),
|
|
4578
4589
|
IsString25({ message: "Kaggle profile link must be a string" })
|
|
4579
4590
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4580
4591
|
__decorateClass([
|
|
4581
|
-
|
|
4592
|
+
IsOptional23(),
|
|
4582
4593
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
4583
4594
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4584
4595
|
__decorateClass([
|
|
4585
|
-
|
|
4596
|
+
IsOptional23(),
|
|
4586
4597
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4587
4598
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4588
4599
|
__decorateClass([
|
|
4589
|
-
|
|
4600
|
+
IsOptional23(),
|
|
4590
4601
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
4591
4602
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4592
4603
|
|
|
@@ -4595,7 +4606,7 @@ import {
|
|
|
4595
4606
|
IsString as IsString26,
|
|
4596
4607
|
IsEmail as IsEmail11,
|
|
4597
4608
|
IsBoolean as IsBoolean11,
|
|
4598
|
-
IsOptional as
|
|
4609
|
+
IsOptional as IsOptional24,
|
|
4599
4610
|
IsEnum as IsEnum15,
|
|
4600
4611
|
IsNumber as IsNumber4,
|
|
4601
4612
|
IsUrl as IsUrl4,
|
|
@@ -4622,24 +4633,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
4622
4633
|
var UpdateFreelancerDto = class {
|
|
4623
4634
|
};
|
|
4624
4635
|
__decorateClass([
|
|
4625
|
-
|
|
4636
|
+
IsOptional24(),
|
|
4626
4637
|
IsString26({ message: "Full name must be a string" }),
|
|
4627
4638
|
MaxLength15(100, { message: "Full name must not exceed 100 characters" })
|
|
4628
4639
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
4629
4640
|
__decorateClass([
|
|
4630
|
-
|
|
4641
|
+
IsOptional24(),
|
|
4631
4642
|
IsEmail11({}, { message: "Invalid email address" })
|
|
4632
4643
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
4633
4644
|
__decorateClass([
|
|
4634
|
-
|
|
4645
|
+
IsOptional24(),
|
|
4635
4646
|
IsString26({ message: "Mobile code must be a string (e.g., +1)" })
|
|
4636
4647
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
4637
4648
|
__decorateClass([
|
|
4638
|
-
|
|
4649
|
+
IsOptional24(),
|
|
4639
4650
|
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4640
4651
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
4641
4652
|
__decorateClass([
|
|
4642
|
-
|
|
4653
|
+
IsOptional24(),
|
|
4643
4654
|
Transform2(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4644
4655
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
4645
4656
|
MaxLength15(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -4648,12 +4659,12 @@ __decorateClass([
|
|
|
4648
4659
|
})
|
|
4649
4660
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
4650
4661
|
__decorateClass([
|
|
4651
|
-
|
|
4662
|
+
IsOptional24(),
|
|
4652
4663
|
IsBoolean11({ message: "Developer flag must be true or false" }),
|
|
4653
4664
|
Type7(() => Boolean)
|
|
4654
4665
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
4655
4666
|
__decorateClass([
|
|
4656
|
-
|
|
4667
|
+
IsOptional24(),
|
|
4657
4668
|
IsEnum15(NatureOfWorkEnum2, {
|
|
4658
4669
|
message: `Nature of work must be one of: ${Object.values(
|
|
4659
4670
|
NatureOfWorkEnum2
|
|
@@ -4661,13 +4672,13 @@ __decorateClass([
|
|
|
4661
4672
|
})
|
|
4662
4673
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
4663
4674
|
__decorateClass([
|
|
4664
|
-
|
|
4675
|
+
IsOptional24(),
|
|
4665
4676
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
4666
4677
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
4667
4678
|
Type7(() => Number)
|
|
4668
4679
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
4669
4680
|
__decorateClass([
|
|
4670
|
-
|
|
4681
|
+
IsOptional24(),
|
|
4671
4682
|
IsEnum15(ModeOfWorkEnum2, {
|
|
4672
4683
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
4673
4684
|
", "
|
|
@@ -4675,7 +4686,7 @@ __decorateClass([
|
|
|
4675
4686
|
})
|
|
4676
4687
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
4677
4688
|
__decorateClass([
|
|
4678
|
-
|
|
4689
|
+
IsOptional24(),
|
|
4679
4690
|
IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
|
|
4680
4691
|
Type7(() => Boolean)
|
|
4681
4692
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
@@ -4684,23 +4695,23 @@ __decorateClass([
|
|
|
4684
4695
|
IsNotEmpty43({ message: "Please enter availability to join." })
|
|
4685
4696
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4686
4697
|
__decorateClass([
|
|
4687
|
-
|
|
4698
|
+
IsOptional24(),
|
|
4688
4699
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
4689
4700
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
4690
4701
|
__decorateClass([
|
|
4691
|
-
|
|
4702
|
+
IsOptional24(),
|
|
4692
4703
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
4693
4704
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
4694
4705
|
__decorateClass([
|
|
4695
|
-
|
|
4706
|
+
IsOptional24(),
|
|
4696
4707
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
4697
4708
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
4698
4709
|
__decorateClass([
|
|
4699
|
-
|
|
4710
|
+
IsOptional24(),
|
|
4700
4711
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
4701
4712
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
4702
4713
|
__decorateClass([
|
|
4703
|
-
|
|
4714
|
+
IsOptional24(),
|
|
4704
4715
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
4705
4716
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
4706
4717
|
|
|
@@ -4721,7 +4732,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
4721
4732
|
import {
|
|
4722
4733
|
IsNotEmpty as IsNotEmpty44,
|
|
4723
4734
|
IsEmail as IsEmail12,
|
|
4724
|
-
IsOptional as
|
|
4735
|
+
IsOptional as IsOptional25,
|
|
4725
4736
|
IsString as IsString27,
|
|
4726
4737
|
IsArray as IsArray9,
|
|
4727
4738
|
MinLength as MinLength14,
|
|
@@ -4792,7 +4803,7 @@ __decorateClass([
|
|
|
4792
4803
|
IsString27()
|
|
4793
4804
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
4794
4805
|
__decorateClass([
|
|
4795
|
-
|
|
4806
|
+
IsOptional25(),
|
|
4796
4807
|
IsString27()
|
|
4797
4808
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4798
4809
|
|
|
@@ -4810,7 +4821,7 @@ import { Transform as Transform3 } from "class-transformer";
|
|
|
4810
4821
|
import {
|
|
4811
4822
|
IsNotEmpty as IsNotEmpty46,
|
|
4812
4823
|
IsEmail as IsEmail13,
|
|
4813
|
-
IsOptional as
|
|
4824
|
+
IsOptional as IsOptional26,
|
|
4814
4825
|
IsString as IsString29,
|
|
4815
4826
|
IsArray as IsArray10,
|
|
4816
4827
|
MinLength as MinLength15,
|
|
@@ -4845,7 +4856,7 @@ __decorateClass([
|
|
|
4845
4856
|
IsEmail13()
|
|
4846
4857
|
], UpdateClientDto.prototype, "email", 2);
|
|
4847
4858
|
__decorateClass([
|
|
4848
|
-
|
|
4859
|
+
IsOptional26(),
|
|
4849
4860
|
Transform3(({ value }) => value === null || value === "" ? void 0 : value),
|
|
4850
4861
|
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
4851
4862
|
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
@@ -4878,7 +4889,7 @@ __decorateClass([
|
|
|
4878
4889
|
IsString29()
|
|
4879
4890
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4880
4891
|
__decorateClass([
|
|
4881
|
-
|
|
4892
|
+
IsOptional26(),
|
|
4882
4893
|
IsString29()
|
|
4883
4894
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
4884
4895
|
|
|
@@ -4889,7 +4900,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4889
4900
|
};
|
|
4890
4901
|
|
|
4891
4902
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4892
|
-
import { IsOptional as
|
|
4903
|
+
import { IsOptional as IsOptional27, IsEnum as IsEnum18, IsString as IsString30, IsNotEmpty as IsNotEmpty47, IsIn as IsIn3 } from "class-validator";
|
|
4893
4904
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4894
4905
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4895
4906
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4900,7 +4911,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
4900
4911
|
var FreelancerDeclarationDto = class {
|
|
4901
4912
|
};
|
|
4902
4913
|
__decorateClass([
|
|
4903
|
-
|
|
4914
|
+
IsOptional27(),
|
|
4904
4915
|
IsString30({ message: "UUID must be a string" })
|
|
4905
4916
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
4906
4917
|
__decorateClass([
|
|
@@ -4924,35 +4935,35 @@ var CMS_PATTERNS = {
|
|
|
4924
4935
|
};
|
|
4925
4936
|
|
|
4926
4937
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4927
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as
|
|
4938
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional28 } from "class-validator";
|
|
4928
4939
|
var CreateCmsDto = class {
|
|
4929
4940
|
};
|
|
4930
4941
|
__decorateClass([
|
|
4931
4942
|
IsNotEmpty48({ message: "Please enter name." })
|
|
4932
4943
|
], CreateCmsDto.prototype, "title", 2);
|
|
4933
4944
|
__decorateClass([
|
|
4934
|
-
|
|
4945
|
+
IsOptional28()
|
|
4935
4946
|
], CreateCmsDto.prototype, "content", 2);
|
|
4936
4947
|
__decorateClass([
|
|
4937
|
-
|
|
4948
|
+
IsOptional28(),
|
|
4938
4949
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
4939
4950
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4940
4951
|
|
|
4941
4952
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4942
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as
|
|
4953
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional29 } from "class-validator";
|
|
4943
4954
|
var UpdateCmsDto = class {
|
|
4944
4955
|
};
|
|
4945
4956
|
__decorateClass([
|
|
4946
|
-
|
|
4957
|
+
IsOptional29()
|
|
4947
4958
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4948
4959
|
__decorateClass([
|
|
4949
4960
|
IsNotEmpty49({ message: "Please enter name." })
|
|
4950
4961
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4951
4962
|
__decorateClass([
|
|
4952
|
-
|
|
4963
|
+
IsOptional29()
|
|
4953
4964
|
], UpdateCmsDto.prototype, "content", 2);
|
|
4954
4965
|
__decorateClass([
|
|
4955
|
-
|
|
4966
|
+
IsOptional29(),
|
|
4956
4967
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
4957
4968
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
4958
4969
|
|
|
@@ -4985,7 +4996,7 @@ import {
|
|
|
4985
4996
|
IsString as IsString31,
|
|
4986
4997
|
IsEnum as IsEnum19,
|
|
4987
4998
|
IsInt as IsInt6,
|
|
4988
|
-
IsOptional as
|
|
4999
|
+
IsOptional as IsOptional30,
|
|
4989
5000
|
IsArray as IsArray11,
|
|
4990
5001
|
IsDateString as IsDateString4,
|
|
4991
5002
|
IsNotEmpty as IsNotEmpty50,
|
|
@@ -5012,7 +5023,7 @@ __decorateClass([
|
|
|
5012
5023
|
IsNotEmpty50({ message: "Job role is required." })
|
|
5013
5024
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
5014
5025
|
__decorateClass([
|
|
5015
|
-
|
|
5026
|
+
IsOptional30(),
|
|
5016
5027
|
IsString31({ message: "Note must be a string." })
|
|
5017
5028
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
5018
5029
|
__decorateClass([
|
|
@@ -5062,7 +5073,7 @@ __decorateClass([
|
|
|
5062
5073
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
5063
5074
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5064
5075
|
__decorateClass([
|
|
5065
|
-
|
|
5076
|
+
IsOptional30(),
|
|
5066
5077
|
IsString31({ message: "Additional comment must be a string." })
|
|
5067
5078
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
5068
5079
|
__decorateClass([
|
|
@@ -5084,7 +5095,7 @@ import {
|
|
|
5084
5095
|
IsString as IsString32,
|
|
5085
5096
|
IsEnum as IsEnum20,
|
|
5086
5097
|
IsInt as IsInt7,
|
|
5087
|
-
IsOptional as
|
|
5098
|
+
IsOptional as IsOptional31,
|
|
5088
5099
|
IsArray as IsArray12,
|
|
5089
5100
|
IsDateString as IsDateString5,
|
|
5090
5101
|
IsNotEmpty as IsNotEmpty51,
|
|
@@ -5111,7 +5122,7 @@ __decorateClass([
|
|
|
5111
5122
|
IsNotEmpty51({ message: "Job role is required." })
|
|
5112
5123
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
5113
5124
|
__decorateClass([
|
|
5114
|
-
|
|
5125
|
+
IsOptional31(),
|
|
5115
5126
|
IsString32({ message: "Note must be a string." })
|
|
5116
5127
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
5117
5128
|
__decorateClass([
|
|
@@ -5161,7 +5172,7 @@ __decorateClass([
|
|
|
5161
5172
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
5162
5173
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
5163
5174
|
__decorateClass([
|
|
5164
|
-
|
|
5175
|
+
IsOptional31(),
|
|
5165
5176
|
IsString32({ message: "Additional comment must be a string." })
|
|
5166
5177
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
5167
5178
|
__decorateClass([
|
|
@@ -5184,7 +5195,7 @@ var LEAD_PATTERN = {
|
|
|
5184
5195
|
};
|
|
5185
5196
|
|
|
5186
5197
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
5187
|
-
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";
|
|
5188
5199
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
5189
5200
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
5190
5201
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -5205,7 +5216,7 @@ __decorateClass([
|
|
|
5205
5216
|
IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
5206
5217
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
5207
5218
|
__decorateClass([
|
|
5208
|
-
|
|
5219
|
+
IsOptional32(),
|
|
5209
5220
|
IsString33({ message: "Description must be a string" })
|
|
5210
5221
|
], CreateLeadDto.prototype, "description", 2);
|
|
5211
5222
|
__decorateClass([
|
|
@@ -5229,7 +5240,7 @@ var ADMIN_ROLE_PATTERN = {
|
|
|
5229
5240
|
};
|
|
5230
5241
|
|
|
5231
5242
|
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
5232
|
-
import { IsNotEmpty as IsNotEmpty52, IsOptional as
|
|
5243
|
+
import { IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional33, IsString as IsString34 } from "class-validator";
|
|
5233
5244
|
var CreateAdminRoleDto = class {
|
|
5234
5245
|
};
|
|
5235
5246
|
__decorateClass([
|
|
@@ -5237,12 +5248,12 @@ __decorateClass([
|
|
|
5237
5248
|
IsString34({ message: "Role name must be a string." })
|
|
5238
5249
|
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
5239
5250
|
__decorateClass([
|
|
5240
|
-
|
|
5251
|
+
IsOptional33(),
|
|
5241
5252
|
IsString34({ message: "Role description must be a string." })
|
|
5242
5253
|
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5243
5254
|
|
|
5244
5255
|
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
5245
|
-
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";
|
|
5246
5257
|
var UpdateAdminRoleDto = class {
|
|
5247
5258
|
};
|
|
5248
5259
|
__decorateClass([
|
|
@@ -5250,11 +5261,11 @@ __decorateClass([
|
|
|
5250
5261
|
IsString35({ message: "Role name must be a string." })
|
|
5251
5262
|
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
5252
5263
|
__decorateClass([
|
|
5253
|
-
|
|
5264
|
+
IsOptional34(),
|
|
5254
5265
|
IsString35({ message: "Role description must be a string." })
|
|
5255
5266
|
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
5256
5267
|
__decorateClass([
|
|
5257
|
-
|
|
5268
|
+
IsOptional34(),
|
|
5258
5269
|
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
5259
5270
|
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
5260
5271
|
|