@experts_hub/shared 1.0.218 → 1.0.220
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/{freelancer-coreskill.entity.d.ts → freelancer-skill.entity.d.ts} +1 -1
- package/dist/entities/index.d.ts +1 -1
- package/dist/entities/user.entity.d.ts +10 -10
- package/dist/index.d.mts +14 -12
- package/dist/index.d.ts +14 -12
- package/dist/index.js +50 -78
- package/dist/index.mjs +148 -176
- package/dist/modules/job-admin/pattern/pattern.d.ts +2 -1
- package/dist/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -322,7 +322,7 @@ __decorateClass([
|
|
|
322
322
|
], FreelancerInitiateAiAssessmentDto.prototype, "uuid", 2);
|
|
323
323
|
|
|
324
324
|
// src/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.ts
|
|
325
|
-
import { IsUUID as IsUUID4, IsNotEmpty as IsNotEmpty13 } from "class-validator";
|
|
325
|
+
import { IsUUID as IsUUID4, IsNotEmpty as IsNotEmpty13, IsOptional } from "class-validator";
|
|
326
326
|
var FreelancerCaptureAiAssessmentStatusDto = class {
|
|
327
327
|
};
|
|
328
328
|
__decorateClass([
|
|
@@ -335,6 +335,9 @@ __decorateClass([
|
|
|
335
335
|
__decorateClass([
|
|
336
336
|
IsNotEmpty13({ message: "Please enter assessment status." })
|
|
337
337
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
338
|
+
__decorateClass([
|
|
339
|
+
IsOptional()
|
|
340
|
+
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
338
341
|
|
|
339
342
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
340
343
|
import { IsUUID as IsUUID5, IsNotEmpty as IsNotEmpty14, IsBoolean } from "class-validator";
|
|
@@ -380,7 +383,7 @@ __decorateClass([
|
|
|
380
383
|
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
381
384
|
import {
|
|
382
385
|
IsNotEmpty as IsNotEmpty16,
|
|
383
|
-
IsOptional,
|
|
386
|
+
IsOptional as IsOptional2,
|
|
384
387
|
IsUrl,
|
|
385
388
|
IsString as IsString5,
|
|
386
389
|
IsUUID as IsUUID7
|
|
@@ -397,19 +400,19 @@ __decorateClass([
|
|
|
397
400
|
IsUrl({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
398
401
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
399
402
|
__decorateClass([
|
|
400
|
-
|
|
403
|
+
IsOptional2(),
|
|
401
404
|
IsUrl({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
402
405
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
403
406
|
__decorateClass([
|
|
404
|
-
|
|
407
|
+
IsOptional2(),
|
|
405
408
|
IsUrl({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
406
409
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
407
410
|
__decorateClass([
|
|
408
|
-
|
|
411
|
+
IsOptional2(),
|
|
409
412
|
IsUrl({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
410
413
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
411
414
|
__decorateClass([
|
|
412
|
-
|
|
415
|
+
IsOptional2(),
|
|
413
416
|
IsUrl({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
|
|
414
417
|
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
415
418
|
|
|
@@ -660,7 +663,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
|
|
|
660
663
|
// src/modules/question/dto/create-question.dto.ts
|
|
661
664
|
import {
|
|
662
665
|
IsNotEmpty as IsNotEmpty23,
|
|
663
|
-
IsOptional as
|
|
666
|
+
IsOptional as IsOptional5,
|
|
664
667
|
IsBoolean as IsBoolean4
|
|
665
668
|
} from "class-validator";
|
|
666
669
|
var CreateQuestionDto = class {
|
|
@@ -678,7 +681,7 @@ __decorateClass([
|
|
|
678
681
|
IsNotEmpty23({ message: "Please enter options." })
|
|
679
682
|
], CreateQuestionDto.prototype, "options", 2);
|
|
680
683
|
__decorateClass([
|
|
681
|
-
|
|
684
|
+
IsOptional5(),
|
|
682
685
|
IsBoolean4({ message: "Whether the question status active" })
|
|
683
686
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
684
687
|
|
|
@@ -710,7 +713,7 @@ import {
|
|
|
710
713
|
IsArray,
|
|
711
714
|
ArrayNotEmpty,
|
|
712
715
|
IsNumber,
|
|
713
|
-
IsOptional as
|
|
716
|
+
IsOptional as IsOptional6,
|
|
714
717
|
IsEnum as IsEnum7,
|
|
715
718
|
Min
|
|
716
719
|
} from "class-validator";
|
|
@@ -734,7 +737,7 @@ __decorateClass([
|
|
|
734
737
|
IsString12({ message: "Job role must be a string" })
|
|
735
738
|
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
736
739
|
__decorateClass([
|
|
737
|
-
|
|
740
|
+
IsOptional6(),
|
|
738
741
|
IsString12({ message: "Note must be a string" })
|
|
739
742
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
740
743
|
__decorateClass([
|
|
@@ -774,19 +777,19 @@ __decorateClass([
|
|
|
774
777
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
775
778
|
__decorateClass([
|
|
776
779
|
IsString12({ message: "Onboarding TAT must be a string" }),
|
|
777
|
-
|
|
780
|
+
IsOptional6()
|
|
778
781
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
779
782
|
__decorateClass([
|
|
780
783
|
IsString12({ message: "Candidate communication skills must be a string" }),
|
|
781
|
-
|
|
784
|
+
IsOptional6()
|
|
782
785
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
783
786
|
|
|
784
787
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
785
|
-
import { IsOptional as
|
|
788
|
+
import { IsOptional as IsOptional7, IsString as IsString13, MaxLength as MaxLength6 } from "class-validator";
|
|
786
789
|
var JobAdditionalCommentDto = class {
|
|
787
790
|
};
|
|
788
791
|
__decorateClass([
|
|
789
|
-
|
|
792
|
+
IsOptional7(),
|
|
790
793
|
IsString13({ message: "Additional comment must be a string" }),
|
|
791
794
|
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
792
795
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
@@ -864,7 +867,7 @@ __decorateClass([
|
|
|
864
867
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
865
868
|
|
|
866
869
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
867
|
-
import { IsOptional as
|
|
870
|
+
import { IsOptional as IsOptional8, IsString as IsString16, IsEmail as IsEmail6, IsNumber as IsNumber2, IsEnum as IsEnum9 } from "class-validator";
|
|
868
871
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
869
872
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
870
873
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -874,65 +877,65 @@ var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
|
874
877
|
var UpdateFreelancerProfileDto = class {
|
|
875
878
|
};
|
|
876
879
|
__decorateClass([
|
|
877
|
-
|
|
880
|
+
IsOptional8(),
|
|
878
881
|
IsString16()
|
|
879
882
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
880
883
|
__decorateClass([
|
|
881
|
-
|
|
884
|
+
IsOptional8(),
|
|
882
885
|
IsString16()
|
|
883
886
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
884
887
|
__decorateClass([
|
|
885
|
-
|
|
888
|
+
IsOptional8(),
|
|
886
889
|
IsEmail6()
|
|
887
890
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
888
891
|
__decorateClass([
|
|
889
|
-
|
|
892
|
+
IsOptional8(),
|
|
890
893
|
IsString16()
|
|
891
894
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
892
895
|
__decorateClass([
|
|
893
|
-
|
|
896
|
+
IsOptional8(),
|
|
894
897
|
IsNumber2()
|
|
895
898
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
896
899
|
__decorateClass([
|
|
897
|
-
|
|
900
|
+
IsOptional8(),
|
|
898
901
|
IsString16()
|
|
899
902
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
900
903
|
__decorateClass([
|
|
901
|
-
|
|
904
|
+
IsOptional8(),
|
|
902
905
|
IsString16()
|
|
903
906
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
904
907
|
__decorateClass([
|
|
905
|
-
|
|
908
|
+
IsOptional8(),
|
|
906
909
|
IsEnum9(NatureOfWorkDto, {
|
|
907
910
|
message: `Engagement Type must be one of: ${Object.values(NatureOfWorkDto).join(", ")}`
|
|
908
911
|
})
|
|
909
912
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
910
913
|
__decorateClass([
|
|
911
|
-
|
|
914
|
+
IsOptional8(),
|
|
912
915
|
IsString16()
|
|
913
916
|
], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
|
|
914
917
|
__decorateClass([
|
|
915
|
-
|
|
918
|
+
IsOptional8(),
|
|
916
919
|
IsString16()
|
|
917
920
|
], UpdateFreelancerProfileDto.prototype, "address", 2);
|
|
918
921
|
__decorateClass([
|
|
919
|
-
|
|
922
|
+
IsOptional8(),
|
|
920
923
|
IsString16()
|
|
921
924
|
], UpdateFreelancerProfileDto.prototype, "about", 2);
|
|
922
925
|
__decorateClass([
|
|
923
|
-
|
|
926
|
+
IsOptional8(),
|
|
924
927
|
IsString16()
|
|
925
928
|
], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
|
|
926
929
|
__decorateClass([
|
|
927
|
-
|
|
930
|
+
IsOptional8(),
|
|
928
931
|
IsString16()
|
|
929
932
|
], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
|
|
930
933
|
__decorateClass([
|
|
931
|
-
|
|
934
|
+
IsOptional8(),
|
|
932
935
|
IsString16()
|
|
933
936
|
], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
|
|
934
937
|
__decorateClass([
|
|
935
|
-
|
|
938
|
+
IsOptional8(),
|
|
936
939
|
IsString16()
|
|
937
940
|
], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
|
|
938
941
|
|
|
@@ -947,7 +950,7 @@ var BANK_PATTERN = {
|
|
|
947
950
|
import {
|
|
948
951
|
IsEnum as IsEnum10,
|
|
949
952
|
IsNotEmpty as IsNotEmpty28,
|
|
950
|
-
IsOptional as
|
|
953
|
+
IsOptional as IsOptional9,
|
|
951
954
|
ValidateIf as ValidateIf2
|
|
952
955
|
} from "class-validator";
|
|
953
956
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
@@ -967,7 +970,7 @@ __decorateClass([
|
|
|
967
970
|
IsNotEmpty28({ message: "Please enter Email." })
|
|
968
971
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
969
972
|
__decorateClass([
|
|
970
|
-
|
|
973
|
+
IsOptional9()
|
|
971
974
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
972
975
|
__decorateClass([
|
|
973
976
|
IsNotEmpty28({ message: "Please enter Account Number." })
|
|
@@ -995,7 +998,7 @@ __decorateClass([
|
|
|
995
998
|
IsNotEmpty28({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
996
999
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
997
1000
|
__decorateClass([
|
|
998
|
-
|
|
1001
|
+
IsOptional9()
|
|
999
1002
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1000
1003
|
__decorateClass([
|
|
1001
1004
|
IsEnum10(BankAccountScope, {
|
|
@@ -1057,7 +1060,7 @@ import {
|
|
|
1057
1060
|
IsEnum as IsEnum12,
|
|
1058
1061
|
IsInt,
|
|
1059
1062
|
IsNotEmpty as IsNotEmpty29,
|
|
1060
|
-
IsOptional as
|
|
1063
|
+
IsOptional as IsOptional10,
|
|
1061
1064
|
IsString as IsString17,
|
|
1062
1065
|
Max,
|
|
1063
1066
|
Min as Min2
|
|
@@ -2414,7 +2417,7 @@ FreelancerCaseStudy = __decorateClass([
|
|
|
2414
2417
|
Entity20("freelancer_case_studies")
|
|
2415
2418
|
], FreelancerCaseStudy);
|
|
2416
2419
|
|
|
2417
|
-
// src/entities/freelancer-
|
|
2420
|
+
// src/entities/freelancer-skill.entity.ts
|
|
2418
2421
|
import {
|
|
2419
2422
|
Entity as Entity21,
|
|
2420
2423
|
Column as Column22,
|
|
@@ -2422,23 +2425,23 @@ import {
|
|
|
2422
2425
|
ManyToOne as ManyToOne19,
|
|
2423
2426
|
JoinColumn as JoinColumn19
|
|
2424
2427
|
} from "typeorm";
|
|
2425
|
-
var
|
|
2428
|
+
var FreelancerSkill = class extends BaseEntity {
|
|
2426
2429
|
};
|
|
2427
2430
|
// individual index to find core skills by user
|
|
2428
2431
|
__decorateClass([
|
|
2429
2432
|
Column22({ name: "user_id", type: "integer", nullable: true }),
|
|
2430
2433
|
Index15()
|
|
2431
|
-
],
|
|
2434
|
+
], FreelancerSkill.prototype, "userId", 2);
|
|
2432
2435
|
__decorateClass([
|
|
2433
|
-
ManyToOne19(() => User, (user) => user.
|
|
2436
|
+
ManyToOne19(() => User, (user) => user.freelancerSkills),
|
|
2434
2437
|
JoinColumn19({ name: "user_id" })
|
|
2435
|
-
],
|
|
2438
|
+
], FreelancerSkill.prototype, "user", 2);
|
|
2436
2439
|
__decorateClass([
|
|
2437
2440
|
Column22({ name: "skill_name", type: "varchar", nullable: true })
|
|
2438
|
-
],
|
|
2439
|
-
|
|
2440
|
-
Entity21("
|
|
2441
|
-
],
|
|
2441
|
+
], FreelancerSkill.prototype, "skillName", 2);
|
|
2442
|
+
FreelancerSkill = __decorateClass([
|
|
2443
|
+
Entity21("freelancer_skills")
|
|
2444
|
+
], FreelancerSkill);
|
|
2442
2445
|
|
|
2443
2446
|
// src/entities/freelancer-tool.entity.ts
|
|
2444
2447
|
import {
|
|
@@ -3018,28 +3021,47 @@ __decorateClass([
|
|
|
3018
3021
|
OneToOne(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
|
|
3019
3022
|
], User.prototype, "freelancerProfile", 2);
|
|
3020
3023
|
__decorateClass([
|
|
3021
|
-
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user, {
|
|
3022
|
-
cascade: true
|
|
3023
|
-
})
|
|
3024
|
+
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
3024
3025
|
], User.prototype, "companyProfile", 2);
|
|
3025
3026
|
__decorateClass([
|
|
3026
3027
|
OneToMany13(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
|
|
3027
3028
|
], User.prototype, "companyMemberRoles", 2);
|
|
3028
3029
|
__decorateClass([
|
|
3029
|
-
OneToMany13(
|
|
3030
|
-
() => FreelancerAssessment,
|
|
3031
|
-
(freelancerAssessment) => freelancerAssessment.user
|
|
3032
|
-
)
|
|
3030
|
+
OneToMany13(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
3033
3031
|
], User.prototype, "assessments", 2);
|
|
3034
3032
|
__decorateClass([
|
|
3035
|
-
OneToMany13(
|
|
3036
|
-
() => AssessmentAnswer,
|
|
3037
|
-
(assessmentAnswer) => assessmentAnswer.user
|
|
3038
|
-
)
|
|
3033
|
+
OneToMany13(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.user)
|
|
3039
3034
|
], User.prototype, "assessmentAnswers", 2);
|
|
3035
|
+
__decorateClass([
|
|
3036
|
+
OneToMany13(() => FreelancerSkill, (FreelancerSkill2) => FreelancerSkill2.user)
|
|
3037
|
+
], User.prototype, "freelancerSkills", 2);
|
|
3038
|
+
__decorateClass([
|
|
3039
|
+
OneToMany13(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
3040
|
+
], User.prototype, "freelancerExperience", 2);
|
|
3041
|
+
__decorateClass([
|
|
3042
|
+
OneToMany13(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
3043
|
+
], User.prototype, "freelancerEducation", 2);
|
|
3044
|
+
__decorateClass([
|
|
3045
|
+
OneToMany13(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
3046
|
+
], User.prototype, "freelancerProject", 2);
|
|
3047
|
+
__decorateClass([
|
|
3048
|
+
OneToMany13(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
3049
|
+
], User.prototype, "freelancerCaseStudy", 2);
|
|
3050
|
+
__decorateClass([
|
|
3051
|
+
OneToMany13(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3052
|
+
], User.prototype, "freelancerTool", 2);
|
|
3053
|
+
__decorateClass([
|
|
3054
|
+
OneToMany13(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
3055
|
+
], User.prototype, "freelancerFramework", 2);
|
|
3056
|
+
__decorateClass([
|
|
3057
|
+
OneToOne(() => FreelancerDeclaration, (freelancerDeclaration) => freelancerDeclaration.user)
|
|
3058
|
+
], User.prototype, "freelancerDeclaration", 2);
|
|
3040
3059
|
__decorateClass([
|
|
3041
3060
|
OneToMany13(() => Job, (job) => job.user)
|
|
3042
3061
|
], User.prototype, "jobs", 2);
|
|
3062
|
+
__decorateClass([
|
|
3063
|
+
OneToMany13(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
3064
|
+
], User.prototype, "jobApplications", 2);
|
|
3043
3065
|
__decorateClass([
|
|
3044
3066
|
OneToMany13(() => Interview, (interview) => interview.user)
|
|
3045
3067
|
], User.prototype, "interviews", 2);
|
|
@@ -3047,10 +3069,7 @@ __decorateClass([
|
|
|
3047
3069
|
OneToMany13(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
3048
3070
|
], User.prototype, "bankDetail", 2);
|
|
3049
3071
|
__decorateClass([
|
|
3050
|
-
OneToMany13(
|
|
3051
|
-
() => SystemPreference,
|
|
3052
|
-
(systemPreference) => systemPreference.user
|
|
3053
|
-
)
|
|
3072
|
+
OneToMany13(() => SystemPreference, (systemPreference) => systemPreference.user)
|
|
3054
3073
|
], User.prototype, "systemPreference", 2);
|
|
3055
3074
|
__decorateClass([
|
|
3056
3075
|
OneToMany13(() => Rating, (rating) => rating.reviewer)
|
|
@@ -3058,54 +3077,6 @@ __decorateClass([
|
|
|
3058
3077
|
__decorateClass([
|
|
3059
3078
|
OneToMany13(() => Rating, (rating) => rating.reviewee)
|
|
3060
3079
|
], User.prototype, "receivedRatings", 2);
|
|
3061
|
-
__decorateClass([
|
|
3062
|
-
OneToMany13(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
3063
|
-
], User.prototype, "jobApplications", 2);
|
|
3064
|
-
__decorateClass([
|
|
3065
|
-
OneToOne(
|
|
3066
|
-
() => FreelancerExperience,
|
|
3067
|
-
(freelancerExperience) => freelancerExperience.user
|
|
3068
|
-
)
|
|
3069
|
-
], User.prototype, "freelancerExperience", 2);
|
|
3070
|
-
__decorateClass([
|
|
3071
|
-
OneToOne(
|
|
3072
|
-
() => FreelancerEducation,
|
|
3073
|
-
(freelancerEducation) => freelancerEducation.user
|
|
3074
|
-
)
|
|
3075
|
-
], User.prototype, "freelancerEducation", 2);
|
|
3076
|
-
__decorateClass([
|
|
3077
|
-
OneToOne(
|
|
3078
|
-
() => FreelancerProject,
|
|
3079
|
-
(freelancerProject) => freelancerProject.user
|
|
3080
|
-
)
|
|
3081
|
-
], User.prototype, "freelancerProject", 2);
|
|
3082
|
-
__decorateClass([
|
|
3083
|
-
OneToOne(
|
|
3084
|
-
() => FreelancerCaseStudy,
|
|
3085
|
-
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
3086
|
-
)
|
|
3087
|
-
], User.prototype, "freelancerCaseStudy", 2);
|
|
3088
|
-
__decorateClass([
|
|
3089
|
-
OneToOne(
|
|
3090
|
-
() => FreelancerCoreSkill,
|
|
3091
|
-
(freelancerCoreSkill) => freelancerCoreSkill.user
|
|
3092
|
-
)
|
|
3093
|
-
], User.prototype, "freelancerCoreSkill", 2);
|
|
3094
|
-
__decorateClass([
|
|
3095
|
-
OneToOne(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
3096
|
-
], User.prototype, "freelancerTool", 2);
|
|
3097
|
-
__decorateClass([
|
|
3098
|
-
OneToOne(
|
|
3099
|
-
() => FreelancerFramework,
|
|
3100
|
-
(freelancerFramework) => freelancerFramework.user
|
|
3101
|
-
)
|
|
3102
|
-
], User.prototype, "freelancerFramework", 2);
|
|
3103
|
-
__decorateClass([
|
|
3104
|
-
OneToOne(
|
|
3105
|
-
() => FreelancerDeclaration,
|
|
3106
|
-
(freelancerDeclaration) => freelancerDeclaration.user
|
|
3107
|
-
)
|
|
3108
|
-
], User.prototype, "freelancerDeclaration", 2);
|
|
3109
3080
|
User = __decorateClass([
|
|
3110
3081
|
Entity33("users")
|
|
3111
3082
|
], User);
|
|
@@ -3169,7 +3140,7 @@ __decorateClass([
|
|
|
3169
3140
|
Max(5, { message: "Rating must be at most 5" })
|
|
3170
3141
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3171
3142
|
__decorateClass([
|
|
3172
|
-
|
|
3143
|
+
IsOptional10(),
|
|
3173
3144
|
IsString17({ message: "Review must be a string" })
|
|
3174
3145
|
], CreateRatingDto.prototype, "review", 2);
|
|
3175
3146
|
|
|
@@ -3186,7 +3157,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3186
3157
|
};
|
|
3187
3158
|
|
|
3188
3159
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3189
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean6, IsInt as IsInt2, IsNotEmpty as IsNotEmpty30, IsOptional as
|
|
3160
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean6, IsInt as IsInt2, IsNotEmpty as IsNotEmpty30, IsOptional as IsOptional11 } from "class-validator";
|
|
3190
3161
|
var CreateCompanyRoleDto = class {
|
|
3191
3162
|
};
|
|
3192
3163
|
__decorateClass([
|
|
@@ -3204,12 +3175,12 @@ __decorateClass([
|
|
|
3204
3175
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
3205
3176
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3206
3177
|
__decorateClass([
|
|
3207
|
-
|
|
3178
|
+
IsOptional11(),
|
|
3208
3179
|
IsBoolean6({ message: "Is active must be a boolean value" })
|
|
3209
3180
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3210
3181
|
|
|
3211
3182
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3212
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean7, IsInt as IsInt3, IsNotEmpty as IsNotEmpty31, IsOptional as
|
|
3183
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean7, IsInt as IsInt3, IsNotEmpty as IsNotEmpty31, IsOptional as IsOptional12 } from "class-validator";
|
|
3213
3184
|
var UpdateCompanyRoleDto = class {
|
|
3214
3185
|
};
|
|
3215
3186
|
__decorateClass([
|
|
@@ -3227,7 +3198,7 @@ __decorateClass([
|
|
|
3227
3198
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
3228
3199
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3229
3200
|
__decorateClass([
|
|
3230
|
-
|
|
3201
|
+
IsOptional12(),
|
|
3231
3202
|
IsBoolean7({ message: "Is active must be a boolean value" })
|
|
3232
3203
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3233
3204
|
|
|
@@ -3249,7 +3220,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3249
3220
|
import {
|
|
3250
3221
|
ArrayMinSize,
|
|
3251
3222
|
IsNotEmpty as IsNotEmpty32,
|
|
3252
|
-
IsOptional as
|
|
3223
|
+
IsOptional as IsOptional13,
|
|
3253
3224
|
IsString as IsString20,
|
|
3254
3225
|
MaxLength as MaxLength10,
|
|
3255
3226
|
ValidateNested
|
|
@@ -3258,7 +3229,7 @@ import { Type as Type2 } from "class-transformer";
|
|
|
3258
3229
|
var ExperienceDto = class {
|
|
3259
3230
|
};
|
|
3260
3231
|
__decorateClass([
|
|
3261
|
-
|
|
3232
|
+
IsOptional13()
|
|
3262
3233
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3263
3234
|
__decorateClass([
|
|
3264
3235
|
IsNotEmpty32(),
|
|
@@ -3344,12 +3315,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3344
3315
|
};
|
|
3345
3316
|
|
|
3346
3317
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3347
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty35, IsOptional as
|
|
3318
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional16, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
3348
3319
|
import { Type as Type3 } from "class-transformer";
|
|
3349
3320
|
var EducationDto = class {
|
|
3350
3321
|
};
|
|
3351
3322
|
__decorateClass([
|
|
3352
|
-
|
|
3323
|
+
IsOptional16()
|
|
3353
3324
|
], EducationDto.prototype, "uuid", 2);
|
|
3354
3325
|
__decorateClass([
|
|
3355
3326
|
IsString23(),
|
|
@@ -3379,12 +3350,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3379
3350
|
};
|
|
3380
3351
|
|
|
3381
3352
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3382
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty36, IsOptional as
|
|
3353
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty36, IsOptional as IsOptional17, IsDateString, MaxLength as MaxLength12, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
3383
3354
|
import { Type as Type4 } from "class-transformer";
|
|
3384
3355
|
var ProjectDto = class {
|
|
3385
3356
|
};
|
|
3386
3357
|
__decorateClass([
|
|
3387
|
-
|
|
3358
|
+
IsOptional17()
|
|
3388
3359
|
], ProjectDto.prototype, "uuid", 2);
|
|
3389
3360
|
__decorateClass([
|
|
3390
3361
|
IsString24(),
|
|
@@ -3399,22 +3370,22 @@ __decorateClass([
|
|
|
3399
3370
|
IsNotEmpty36({ message: "Please Enter End Date " })
|
|
3400
3371
|
], ProjectDto.prototype, "endDate", 2);
|
|
3401
3372
|
__decorateClass([
|
|
3402
|
-
|
|
3373
|
+
IsOptional17(),
|
|
3403
3374
|
IsString24()
|
|
3404
3375
|
], ProjectDto.prototype, "clientName", 2);
|
|
3405
3376
|
__decorateClass([
|
|
3406
|
-
|
|
3377
|
+
IsOptional17(),
|
|
3407
3378
|
IsString24()
|
|
3408
3379
|
], ProjectDto.prototype, "gitLink", 2);
|
|
3409
3380
|
__decorateClass([
|
|
3410
|
-
|
|
3381
|
+
IsOptional17(),
|
|
3411
3382
|
IsString24(),
|
|
3412
3383
|
MaxLength12(500, { message: "Description must not exceed 500 characters" })
|
|
3413
3384
|
], ProjectDto.prototype, "description", 2);
|
|
3414
3385
|
var CaseStudyDto = class {
|
|
3415
3386
|
};
|
|
3416
3387
|
__decorateClass([
|
|
3417
|
-
|
|
3388
|
+
IsOptional17()
|
|
3418
3389
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3419
3390
|
__decorateClass([
|
|
3420
3391
|
IsString24(),
|
|
@@ -3425,7 +3396,7 @@ __decorateClass([
|
|
|
3425
3396
|
IsNotEmpty36({ message: "Please Enter Case Study Link " })
|
|
3426
3397
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3427
3398
|
__decorateClass([
|
|
3428
|
-
|
|
3399
|
+
IsOptional17(),
|
|
3429
3400
|
IsString24(),
|
|
3430
3401
|
MaxLength12(500, { message: "Description must not exceed 500 characters" })
|
|
3431
3402
|
], CaseStudyDto.prototype, "description", 2);
|
|
@@ -3455,7 +3426,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
3455
3426
|
};
|
|
3456
3427
|
|
|
3457
3428
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
3458
|
-
import { IsArray as IsArray8, IsString as IsString25, IsOptional as
|
|
3429
|
+
import { IsArray as IsArray8, IsString as IsString25, IsOptional as IsOptional18 } from "class-validator";
|
|
3459
3430
|
import { Type as Type5 } from "class-transformer";
|
|
3460
3431
|
var FreelancerSkillDto = class {
|
|
3461
3432
|
constructor() {
|
|
@@ -3465,19 +3436,19 @@ var FreelancerSkillDto = class {
|
|
|
3465
3436
|
}
|
|
3466
3437
|
};
|
|
3467
3438
|
__decorateClass([
|
|
3468
|
-
|
|
3439
|
+
IsOptional18(),
|
|
3469
3440
|
IsArray8(),
|
|
3470
3441
|
Type5(() => String),
|
|
3471
3442
|
IsString25({ each: true })
|
|
3472
3443
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
3473
3444
|
__decorateClass([
|
|
3474
|
-
|
|
3445
|
+
IsOptional18(),
|
|
3475
3446
|
IsArray8(),
|
|
3476
3447
|
Type5(() => String),
|
|
3477
3448
|
IsString25({ each: true })
|
|
3478
3449
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
3479
3450
|
__decorateClass([
|
|
3480
|
-
|
|
3451
|
+
IsOptional18(),
|
|
3481
3452
|
IsArray8(),
|
|
3482
3453
|
Type5(() => String),
|
|
3483
3454
|
IsString25({ each: true })
|
|
@@ -3499,7 +3470,7 @@ import {
|
|
|
3499
3470
|
IsString as IsString26,
|
|
3500
3471
|
IsEmail as IsEmail11,
|
|
3501
3472
|
IsBoolean as IsBoolean12,
|
|
3502
|
-
IsOptional as
|
|
3473
|
+
IsOptional as IsOptional19,
|
|
3503
3474
|
IsEnum as IsEnum13,
|
|
3504
3475
|
IsNumber as IsNumber3,
|
|
3505
3476
|
IsUrl as IsUrl3,
|
|
@@ -3582,23 +3553,23 @@ __decorateClass([
|
|
|
3582
3553
|
IsNotEmpty38({ message: "Please enter availability to join." })
|
|
3583
3554
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3584
3555
|
__decorateClass([
|
|
3585
|
-
|
|
3556
|
+
IsOptional19(),
|
|
3586
3557
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3587
3558
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3588
3559
|
__decorateClass([
|
|
3589
|
-
|
|
3560
|
+
IsOptional19(),
|
|
3590
3561
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
3591
3562
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3592
3563
|
__decorateClass([
|
|
3593
|
-
|
|
3564
|
+
IsOptional19(),
|
|
3594
3565
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
3595
3566
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3596
3567
|
__decorateClass([
|
|
3597
|
-
|
|
3568
|
+
IsOptional19(),
|
|
3598
3569
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3599
3570
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3600
3571
|
__decorateClass([
|
|
3601
|
-
|
|
3572
|
+
IsOptional19(),
|
|
3602
3573
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
3603
3574
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3604
3575
|
|
|
@@ -3607,7 +3578,7 @@ import {
|
|
|
3607
3578
|
IsString as IsString27,
|
|
3608
3579
|
IsEmail as IsEmail12,
|
|
3609
3580
|
IsBoolean as IsBoolean13,
|
|
3610
|
-
IsOptional as
|
|
3581
|
+
IsOptional as IsOptional20,
|
|
3611
3582
|
IsEnum as IsEnum14,
|
|
3612
3583
|
IsNumber as IsNumber4,
|
|
3613
3584
|
IsUrl as IsUrl4,
|
|
@@ -3634,24 +3605,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3634
3605
|
var UpdateFreelancerDto = class {
|
|
3635
3606
|
};
|
|
3636
3607
|
__decorateClass([
|
|
3637
|
-
|
|
3608
|
+
IsOptional20(),
|
|
3638
3609
|
IsString27({ message: "Full name must be a string" }),
|
|
3639
3610
|
MaxLength15(100, { message: "Full name must not exceed 100 characters" })
|
|
3640
3611
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3641
3612
|
__decorateClass([
|
|
3642
|
-
|
|
3613
|
+
IsOptional20(),
|
|
3643
3614
|
IsEmail12({}, { message: "Invalid email address" })
|
|
3644
3615
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3645
3616
|
__decorateClass([
|
|
3646
|
-
|
|
3617
|
+
IsOptional20(),
|
|
3647
3618
|
IsString27({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3648
3619
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3649
3620
|
__decorateClass([
|
|
3650
|
-
|
|
3621
|
+
IsOptional20(),
|
|
3651
3622
|
IsString27({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3652
3623
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3653
3624
|
__decorateClass([
|
|
3654
|
-
|
|
3625
|
+
IsOptional20(),
|
|
3655
3626
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
3656
3627
|
MaxLength15(32, { message: "Password must not exceed 32 characters." }),
|
|
3657
3628
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -3659,12 +3630,12 @@ __decorateClass([
|
|
|
3659
3630
|
})
|
|
3660
3631
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3661
3632
|
__decorateClass([
|
|
3662
|
-
|
|
3633
|
+
IsOptional20(),
|
|
3663
3634
|
IsBoolean13({ message: "Developer flag must be true or false" }),
|
|
3664
3635
|
Type7(() => Boolean)
|
|
3665
3636
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3666
3637
|
__decorateClass([
|
|
3667
|
-
|
|
3638
|
+
IsOptional20(),
|
|
3668
3639
|
IsEnum14(NatureOfWorkEnum2, {
|
|
3669
3640
|
message: `Nature of work must be one of: ${Object.values(
|
|
3670
3641
|
NatureOfWorkEnum2
|
|
@@ -3672,13 +3643,13 @@ __decorateClass([
|
|
|
3672
3643
|
})
|
|
3673
3644
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3674
3645
|
__decorateClass([
|
|
3675
|
-
|
|
3646
|
+
IsOptional20(),
|
|
3676
3647
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
3677
3648
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3678
3649
|
Type7(() => Number)
|
|
3679
3650
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3680
3651
|
__decorateClass([
|
|
3681
|
-
|
|
3652
|
+
IsOptional20(),
|
|
3682
3653
|
IsEnum14(ModeOfWorkEnum2, {
|
|
3683
3654
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
3684
3655
|
", "
|
|
@@ -3686,7 +3657,7 @@ __decorateClass([
|
|
|
3686
3657
|
})
|
|
3687
3658
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3688
3659
|
__decorateClass([
|
|
3689
|
-
|
|
3660
|
+
IsOptional20(),
|
|
3690
3661
|
IsBoolean13({ message: "isImmediateJoiner must be true or false" }),
|
|
3691
3662
|
Type7(() => Boolean)
|
|
3692
3663
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
@@ -3695,23 +3666,23 @@ __decorateClass([
|
|
|
3695
3666
|
IsNotEmpty39({ message: "Please enter availability to join." })
|
|
3696
3667
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3697
3668
|
__decorateClass([
|
|
3698
|
-
|
|
3669
|
+
IsOptional20(),
|
|
3699
3670
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3700
3671
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3701
3672
|
__decorateClass([
|
|
3702
|
-
|
|
3673
|
+
IsOptional20(),
|
|
3703
3674
|
IsString27({ message: "Kaggle profile link must be a string" })
|
|
3704
3675
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3705
3676
|
__decorateClass([
|
|
3706
|
-
|
|
3677
|
+
IsOptional20(),
|
|
3707
3678
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
3708
3679
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3709
3680
|
__decorateClass([
|
|
3710
|
-
|
|
3681
|
+
IsOptional20(),
|
|
3711
3682
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3712
3683
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3713
3684
|
__decorateClass([
|
|
3714
|
-
|
|
3685
|
+
IsOptional20(),
|
|
3715
3686
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
3716
3687
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3717
3688
|
|
|
@@ -3731,7 +3702,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3731
3702
|
import {
|
|
3732
3703
|
IsNotEmpty as IsNotEmpty40,
|
|
3733
3704
|
IsEmail as IsEmail13,
|
|
3734
|
-
IsOptional as
|
|
3705
|
+
IsOptional as IsOptional21,
|
|
3735
3706
|
IsString as IsString28,
|
|
3736
3707
|
IsArray as IsArray9,
|
|
3737
3708
|
MinLength as MinLength14,
|
|
@@ -3802,11 +3773,11 @@ __decorateClass([
|
|
|
3802
3773
|
IsString28()
|
|
3803
3774
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3804
3775
|
__decorateClass([
|
|
3805
|
-
|
|
3776
|
+
IsOptional21(),
|
|
3806
3777
|
IsString28()
|
|
3807
3778
|
], CreateClientDto.prototype, "OTHER", 2);
|
|
3808
3779
|
__decorateClass([
|
|
3809
|
-
|
|
3780
|
+
IsOptional21(),
|
|
3810
3781
|
IsString28()
|
|
3811
3782
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3812
3783
|
|
|
@@ -3823,7 +3794,7 @@ __decorateClass([
|
|
|
3823
3794
|
import {
|
|
3824
3795
|
IsNotEmpty as IsNotEmpty42,
|
|
3825
3796
|
IsEmail as IsEmail14,
|
|
3826
|
-
IsOptional as
|
|
3797
|
+
IsOptional as IsOptional22,
|
|
3827
3798
|
IsString as IsString30,
|
|
3828
3799
|
IsArray as IsArray10,
|
|
3829
3800
|
MinLength as MinLength15,
|
|
@@ -3858,7 +3829,7 @@ __decorateClass([
|
|
|
3858
3829
|
IsEmail14()
|
|
3859
3830
|
], UpdateClientDto.prototype, "email", 2);
|
|
3860
3831
|
__decorateClass([
|
|
3861
|
-
|
|
3832
|
+
IsOptional22(),
|
|
3862
3833
|
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
3863
3834
|
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
3864
3835
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -3890,11 +3861,11 @@ __decorateClass([
|
|
|
3890
3861
|
IsString30()
|
|
3891
3862
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
3892
3863
|
__decorateClass([
|
|
3893
|
-
|
|
3864
|
+
IsOptional22(),
|
|
3894
3865
|
IsString30()
|
|
3895
3866
|
], UpdateClientDto.prototype, "OTHER", 2);
|
|
3896
3867
|
__decorateClass([
|
|
3897
|
-
|
|
3868
|
+
IsOptional22(),
|
|
3898
3869
|
IsString30()
|
|
3899
3870
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3900
3871
|
|
|
@@ -3905,7 +3876,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
3905
3876
|
};
|
|
3906
3877
|
|
|
3907
3878
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
3908
|
-
import { IsOptional as
|
|
3879
|
+
import { IsOptional as IsOptional23, IsEnum as IsEnum17, IsString as IsString31, IsNotEmpty as IsNotEmpty43, IsIn as IsIn3 } from "class-validator";
|
|
3909
3880
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
3910
3881
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
3911
3882
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -3916,7 +3887,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
3916
3887
|
var FreelancerDeclarationDto = class {
|
|
3917
3888
|
};
|
|
3918
3889
|
__decorateClass([
|
|
3919
|
-
|
|
3890
|
+
IsOptional23(),
|
|
3920
3891
|
IsString31({ message: "UUID must be a string" })
|
|
3921
3892
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
3922
3893
|
__decorateClass([
|
|
@@ -3940,35 +3911,35 @@ var CMS_PATTERNS = {
|
|
|
3940
3911
|
};
|
|
3941
3912
|
|
|
3942
3913
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
3943
|
-
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty44, IsOptional as
|
|
3914
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty44, IsOptional as IsOptional24 } from "class-validator";
|
|
3944
3915
|
var CreateCmsDto = class {
|
|
3945
3916
|
};
|
|
3946
3917
|
__decorateClass([
|
|
3947
3918
|
IsNotEmpty44({ message: "Please enter name." })
|
|
3948
3919
|
], CreateCmsDto.prototype, "title", 2);
|
|
3949
3920
|
__decorateClass([
|
|
3950
|
-
|
|
3921
|
+
IsOptional24()
|
|
3951
3922
|
], CreateCmsDto.prototype, "content", 2);
|
|
3952
3923
|
__decorateClass([
|
|
3953
|
-
|
|
3924
|
+
IsOptional24(),
|
|
3954
3925
|
IsBoolean14({ message: "Is active must be a boolean value" })
|
|
3955
3926
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
3956
3927
|
|
|
3957
3928
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
3958
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty45, IsOptional as
|
|
3929
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty45, IsOptional as IsOptional25 } from "class-validator";
|
|
3959
3930
|
var UpdateCmsDto = class {
|
|
3960
3931
|
};
|
|
3961
3932
|
__decorateClass([
|
|
3962
|
-
|
|
3933
|
+
IsOptional25()
|
|
3963
3934
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
3964
3935
|
__decorateClass([
|
|
3965
3936
|
IsNotEmpty45({ message: "Please enter name." })
|
|
3966
3937
|
], UpdateCmsDto.prototype, "title", 2);
|
|
3967
3938
|
__decorateClass([
|
|
3968
|
-
|
|
3939
|
+
IsOptional25()
|
|
3969
3940
|
], UpdateCmsDto.prototype, "content", 2);
|
|
3970
3941
|
__decorateClass([
|
|
3971
|
-
|
|
3942
|
+
IsOptional25(),
|
|
3972
3943
|
IsBoolean15({ message: "Is active must be a boolean value" })
|
|
3973
3944
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
3974
3945
|
|
|
@@ -3984,12 +3955,13 @@ var CITY_PATTERN = {
|
|
|
3984
3955
|
};
|
|
3985
3956
|
|
|
3986
3957
|
// src/modules/job-admin/pattern/pattern.ts
|
|
3987
|
-
var
|
|
3958
|
+
var ADMIN_JOB_PATTERN = {
|
|
3988
3959
|
adminFetchJobs: "admin.fetch.jobs",
|
|
3989
3960
|
adminFetchJobById: "admin.fetch.job.by.id",
|
|
3990
3961
|
adminCreateJob: "admin.create.job",
|
|
3991
3962
|
adminUpdateJob: "admin.update.job",
|
|
3992
|
-
adminDeleteJob: "admin.delete.job"
|
|
3963
|
+
adminDeleteJob: "admin.delete.job",
|
|
3964
|
+
adminCountJob: "admin.count.job"
|
|
3993
3965
|
};
|
|
3994
3966
|
|
|
3995
3967
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
@@ -3998,7 +3970,7 @@ import {
|
|
|
3998
3970
|
IsString as IsString32,
|
|
3999
3971
|
IsEnum as IsEnum18,
|
|
4000
3972
|
IsInt as IsInt6,
|
|
4001
|
-
IsOptional as
|
|
3973
|
+
IsOptional as IsOptional26,
|
|
4002
3974
|
IsArray as IsArray11,
|
|
4003
3975
|
IsDateString as IsDateString4,
|
|
4004
3976
|
IsNotEmpty as IsNotEmpty46,
|
|
@@ -4025,7 +3997,7 @@ __decorateClass([
|
|
|
4025
3997
|
IsNotEmpty46({ message: "Job role is required." })
|
|
4026
3998
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4027
3999
|
__decorateClass([
|
|
4028
|
-
|
|
4000
|
+
IsOptional26(),
|
|
4029
4001
|
IsString32({ message: "Note must be a string." })
|
|
4030
4002
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4031
4003
|
__decorateClass([
|
|
@@ -4075,7 +4047,7 @@ __decorateClass([
|
|
|
4075
4047
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4076
4048
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4077
4049
|
__decorateClass([
|
|
4078
|
-
|
|
4050
|
+
IsOptional26(),
|
|
4079
4051
|
IsString32({ message: "Additional comment must be a string." })
|
|
4080
4052
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4081
4053
|
__decorateClass([
|
|
@@ -4097,7 +4069,7 @@ import {
|
|
|
4097
4069
|
IsString as IsString33,
|
|
4098
4070
|
IsEnum as IsEnum19,
|
|
4099
4071
|
IsInt as IsInt7,
|
|
4100
|
-
IsOptional as
|
|
4072
|
+
IsOptional as IsOptional27,
|
|
4101
4073
|
IsArray as IsArray12,
|
|
4102
4074
|
IsDateString as IsDateString5,
|
|
4103
4075
|
IsNotEmpty as IsNotEmpty47,
|
|
@@ -4124,7 +4096,7 @@ __decorateClass([
|
|
|
4124
4096
|
IsNotEmpty47({ message: "Job role is required." })
|
|
4125
4097
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4126
4098
|
__decorateClass([
|
|
4127
|
-
|
|
4099
|
+
IsOptional27(),
|
|
4128
4100
|
IsString33({ message: "Note must be a string." })
|
|
4129
4101
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4130
4102
|
__decorateClass([
|
|
@@ -4174,7 +4146,7 @@ __decorateClass([
|
|
|
4174
4146
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4175
4147
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4176
4148
|
__decorateClass([
|
|
4177
|
-
|
|
4149
|
+
IsOptional27(),
|
|
4178
4150
|
IsString33({ message: "Additional comment must be a string." })
|
|
4179
4151
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4180
4152
|
__decorateClass([
|
|
@@ -4197,7 +4169,7 @@ var LEAD_PATTERN = {
|
|
|
4197
4169
|
};
|
|
4198
4170
|
|
|
4199
4171
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4200
|
-
import { IsString as IsString34, IsEmail as IsEmail15, IsOptional as
|
|
4172
|
+
import { IsString as IsString34, IsEmail as IsEmail15, IsOptional as IsOptional28, IsEnum as IsEnum20 } from "class-validator";
|
|
4201
4173
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4202
4174
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4203
4175
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4218,7 +4190,7 @@ __decorateClass([
|
|
|
4218
4190
|
IsString34({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4219
4191
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4220
4192
|
__decorateClass([
|
|
4221
|
-
|
|
4193
|
+
IsOptional28(),
|
|
4222
4194
|
IsString34({ message: "Description must be a string" })
|
|
4223
4195
|
], CreateLeadDto.prototype, "description", 2);
|
|
4224
4196
|
__decorateClass([
|
|
@@ -4604,6 +4576,7 @@ Lead = __decorateClass([
|
|
|
4604
4576
|
], Lead);
|
|
4605
4577
|
export {
|
|
4606
4578
|
ADMIN_FREELANCER_PATTERN,
|
|
4579
|
+
ADMIN_JOB_PATTERN,
|
|
4607
4580
|
ASSESSMENT_QUESTION_PATTERN,
|
|
4608
4581
|
AUTHENTICATION_PATTERN,
|
|
4609
4582
|
AccountStatus,
|
|
@@ -4672,7 +4645,6 @@ export {
|
|
|
4672
4645
|
FreelancerCaptureAiAssessmentStatusDto,
|
|
4673
4646
|
FreelancerCaseStudy,
|
|
4674
4647
|
FreelancerChangePasswordDto,
|
|
4675
|
-
FreelancerCoreSkill,
|
|
4676
4648
|
FreelancerCreateAccountDto,
|
|
4677
4649
|
FreelancerDeclaration,
|
|
4678
4650
|
FreelancerDeclarationDto,
|
|
@@ -4688,6 +4660,7 @@ export {
|
|
|
4688
4660
|
FreelancerProfileQuestionDto,
|
|
4689
4661
|
FreelancerProject,
|
|
4690
4662
|
FreelancerProjectDto,
|
|
4663
|
+
FreelancerSkill,
|
|
4691
4664
|
FreelancerSkillDto,
|
|
4692
4665
|
FreelancerTool,
|
|
4693
4666
|
FreelancerUploadResumeDto,
|
|
@@ -4696,7 +4669,6 @@ export {
|
|
|
4696
4669
|
Interview,
|
|
4697
4670
|
InterviewSkill,
|
|
4698
4671
|
InterviewStatusEnum,
|
|
4699
|
-
JOB_ADMIN_PATTERN,
|
|
4700
4672
|
JOB_PATTERN,
|
|
4701
4673
|
JOB_ROLE_PATTERN,
|
|
4702
4674
|
Job,
|