@experts_hub/shared 1.0.217 → 1.0.219
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-assessment.entity.d.ts +1 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +14 -1
- package/dist/index.mjs +114 -101
- package/dist/modules/client-admin/pattern/pattern.d.ts +1 -0
- package/dist/modules/job-admin/dto/admin-create-job-information.dto.d.ts +1 -0
- package/dist/modules/job-admin/dto/admin-update-job-information.dto.d.ts +1 -0
- package/dist/modules/onboarding/dto/freelancer-capture-ai-assessment-status.dto.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -119,6 +119,7 @@ declare class FreelancerCaptureAiAssessmentStatusDto {
|
|
|
119
119
|
uuid: string;
|
|
120
120
|
assessmentId: string;
|
|
121
121
|
assessmentStatus: string;
|
|
122
|
+
iframeEventData: object;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
declare class FreelancerDevelopmentPreferenceDto {
|
|
@@ -947,6 +948,7 @@ declare class FreelancerAssessment extends BaseEntity {
|
|
|
947
948
|
user: User;
|
|
948
949
|
interviewId: string;
|
|
949
950
|
interviewLink: string;
|
|
951
|
+
iframeResponse: string;
|
|
950
952
|
interviewSummary: string;
|
|
951
953
|
status: AssessmentStatusEnum;
|
|
952
954
|
}
|
|
@@ -1557,6 +1559,7 @@ declare const CLIENT_ADMIN_PATTERNS: {
|
|
|
1557
1559
|
deleteAdminClient: string;
|
|
1558
1560
|
exportAdminClients: string;
|
|
1559
1561
|
fetchClientCount: string;
|
|
1562
|
+
fetchClientDropdown: string;
|
|
1560
1563
|
};
|
|
1561
1564
|
|
|
1562
1565
|
declare enum CreateClientHiringModeEnum {
|
|
@@ -1770,6 +1773,7 @@ declare class AdminCreateJobInformationDto {
|
|
|
1770
1773
|
countryId: number;
|
|
1771
1774
|
stateId: number;
|
|
1772
1775
|
cityId: number;
|
|
1776
|
+
clientId: number;
|
|
1773
1777
|
}
|
|
1774
1778
|
|
|
1775
1779
|
declare enum JobLocationEnums {
|
|
@@ -1800,6 +1804,7 @@ declare class AdminUpdateJobInformationDto {
|
|
|
1800
1804
|
countryId: number;
|
|
1801
1805
|
stateId: number;
|
|
1802
1806
|
cityId: number;
|
|
1807
|
+
clientId: number;
|
|
1803
1808
|
}
|
|
1804
1809
|
|
|
1805
1810
|
declare const LEAD_PATTERN: {
|
package/dist/index.d.ts
CHANGED
|
@@ -119,6 +119,7 @@ declare class FreelancerCaptureAiAssessmentStatusDto {
|
|
|
119
119
|
uuid: string;
|
|
120
120
|
assessmentId: string;
|
|
121
121
|
assessmentStatus: string;
|
|
122
|
+
iframeEventData: object;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
declare class FreelancerDevelopmentPreferenceDto {
|
|
@@ -947,6 +948,7 @@ declare class FreelancerAssessment extends BaseEntity {
|
|
|
947
948
|
user: User;
|
|
948
949
|
interviewId: string;
|
|
949
950
|
interviewLink: string;
|
|
951
|
+
iframeResponse: string;
|
|
950
952
|
interviewSummary: string;
|
|
951
953
|
status: AssessmentStatusEnum;
|
|
952
954
|
}
|
|
@@ -1557,6 +1559,7 @@ declare const CLIENT_ADMIN_PATTERNS: {
|
|
|
1557
1559
|
deleteAdminClient: string;
|
|
1558
1560
|
exportAdminClients: string;
|
|
1559
1561
|
fetchClientCount: string;
|
|
1562
|
+
fetchClientDropdown: string;
|
|
1560
1563
|
};
|
|
1561
1564
|
|
|
1562
1565
|
declare enum CreateClientHiringModeEnum {
|
|
@@ -1770,6 +1773,7 @@ declare class AdminCreateJobInformationDto {
|
|
|
1770
1773
|
countryId: number;
|
|
1771
1774
|
stateId: number;
|
|
1772
1775
|
cityId: number;
|
|
1776
|
+
clientId: number;
|
|
1773
1777
|
}
|
|
1774
1778
|
|
|
1775
1779
|
declare enum JobLocationEnums {
|
|
@@ -1800,6 +1804,7 @@ declare class AdminUpdateJobInformationDto {
|
|
|
1800
1804
|
countryId: number;
|
|
1801
1805
|
stateId: number;
|
|
1802
1806
|
cityId: number;
|
|
1807
|
+
clientId: number;
|
|
1803
1808
|
}
|
|
1804
1809
|
|
|
1805
1810
|
declare const LEAD_PATTERN: {
|
package/dist/index.js
CHANGED
|
@@ -515,6 +515,9 @@ __decorateClass([
|
|
|
515
515
|
__decorateClass([
|
|
516
516
|
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter assessment status." })
|
|
517
517
|
], FreelancerCaptureAiAssessmentStatusDto.prototype, "assessmentStatus", 2);
|
|
518
|
+
__decorateClass([
|
|
519
|
+
(0, import_class_validator14.IsOptional)()
|
|
520
|
+
], FreelancerCaptureAiAssessmentStatusDto.prototype, "iframeEventData", 2);
|
|
518
521
|
|
|
519
522
|
// src/modules/onboarding/dto/freelancer-development-preference.dto.ts
|
|
520
523
|
var import_class_validator15 = require("class-validator");
|
|
@@ -2494,6 +2497,9 @@ __decorateClass([
|
|
|
2494
2497
|
__decorateClass([
|
|
2495
2498
|
(0, import_typeorm25.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
2496
2499
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2500
|
+
__decorateClass([
|
|
2501
|
+
(0, import_typeorm25.Column)({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
2502
|
+
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
2497
2503
|
__decorateClass([
|
|
2498
2504
|
(0, import_typeorm25.Column)({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
2499
2505
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
@@ -3615,7 +3621,8 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3615
3621
|
fetchAdminClientById: "fetch.admin.client_by_id",
|
|
3616
3622
|
deleteAdminClient: "delete.admin.client",
|
|
3617
3623
|
exportAdminClients: "export.admin.clients",
|
|
3618
|
-
fetchClientCount: "fetch.client.count"
|
|
3624
|
+
fetchClientCount: "fetch.client.count",
|
|
3625
|
+
fetchClientDropdown: "fetch.client.dropdown"
|
|
3619
3626
|
};
|
|
3620
3627
|
|
|
3621
3628
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
@@ -3947,6 +3954,9 @@ __decorateClass([
|
|
|
3947
3954
|
__decorateClass([
|
|
3948
3955
|
(0, import_class_validator54.IsInt)({ message: "City ID must be a valid integer." })
|
|
3949
3956
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
3957
|
+
__decorateClass([
|
|
3958
|
+
(0, import_class_validator54.IsInt)({ message: "Client ID must be a valid integer." })
|
|
3959
|
+
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
3950
3960
|
|
|
3951
3961
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
3952
3962
|
var import_class_transformer9 = require("class-transformer");
|
|
@@ -4032,6 +4042,9 @@ __decorateClass([
|
|
|
4032
4042
|
__decorateClass([
|
|
4033
4043
|
(0, import_class_validator55.IsInt)({ message: "City ID must be a valid integer." })
|
|
4034
4044
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
4045
|
+
__decorateClass([
|
|
4046
|
+
(0, import_class_validator55.IsInt)({ message: "Client ID must be a valid integer." })
|
|
4047
|
+
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
4035
4048
|
|
|
4036
4049
|
// src/modules/lead/pattern/pattern.ts
|
|
4037
4050
|
var LEAD_PATTERN = {
|
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
|
|
@@ -2526,6 +2529,9 @@ __decorateClass([
|
|
|
2526
2529
|
__decorateClass([
|
|
2527
2530
|
Column25({ name: "interview_link", type: "text", nullable: true })
|
|
2528
2531
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2532
|
+
__decorateClass([
|
|
2533
|
+
Column25({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
2534
|
+
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
2529
2535
|
__decorateClass([
|
|
2530
2536
|
Column25({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
2531
2537
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
@@ -3166,7 +3172,7 @@ __decorateClass([
|
|
|
3166
3172
|
Max(5, { message: "Rating must be at most 5" })
|
|
3167
3173
|
], CreateRatingDto.prototype, "rating", 2);
|
|
3168
3174
|
__decorateClass([
|
|
3169
|
-
|
|
3175
|
+
IsOptional10(),
|
|
3170
3176
|
IsString17({ message: "Review must be a string" })
|
|
3171
3177
|
], CreateRatingDto.prototype, "review", 2);
|
|
3172
3178
|
|
|
@@ -3183,7 +3189,7 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3183
3189
|
};
|
|
3184
3190
|
|
|
3185
3191
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3186
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean6, IsInt as IsInt2, IsNotEmpty as IsNotEmpty30, IsOptional as
|
|
3192
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean6, IsInt as IsInt2, IsNotEmpty as IsNotEmpty30, IsOptional as IsOptional11 } from "class-validator";
|
|
3187
3193
|
var CreateCompanyRoleDto = class {
|
|
3188
3194
|
};
|
|
3189
3195
|
__decorateClass([
|
|
@@ -3201,12 +3207,12 @@ __decorateClass([
|
|
|
3201
3207
|
IsInt2({ each: true, message: "Each permission ID must be an integer." })
|
|
3202
3208
|
], CreateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3203
3209
|
__decorateClass([
|
|
3204
|
-
|
|
3210
|
+
IsOptional11(),
|
|
3205
3211
|
IsBoolean6({ message: "Is active must be a boolean value" })
|
|
3206
3212
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3207
3213
|
|
|
3208
3214
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3209
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean7, IsInt as IsInt3, IsNotEmpty as IsNotEmpty31, IsOptional as
|
|
3215
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean7, IsInt as IsInt3, IsNotEmpty as IsNotEmpty31, IsOptional as IsOptional12 } from "class-validator";
|
|
3210
3216
|
var UpdateCompanyRoleDto = class {
|
|
3211
3217
|
};
|
|
3212
3218
|
__decorateClass([
|
|
@@ -3224,7 +3230,7 @@ __decorateClass([
|
|
|
3224
3230
|
IsInt3({ each: true, message: "Each permission ID must be an integer." })
|
|
3225
3231
|
], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
|
|
3226
3232
|
__decorateClass([
|
|
3227
|
-
|
|
3233
|
+
IsOptional12(),
|
|
3228
3234
|
IsBoolean7({ message: "Is active must be a boolean value" })
|
|
3229
3235
|
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
3230
3236
|
|
|
@@ -3246,7 +3252,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3246
3252
|
import {
|
|
3247
3253
|
ArrayMinSize,
|
|
3248
3254
|
IsNotEmpty as IsNotEmpty32,
|
|
3249
|
-
IsOptional as
|
|
3255
|
+
IsOptional as IsOptional13,
|
|
3250
3256
|
IsString as IsString20,
|
|
3251
3257
|
MaxLength as MaxLength10,
|
|
3252
3258
|
ValidateNested
|
|
@@ -3255,7 +3261,7 @@ import { Type as Type2 } from "class-transformer";
|
|
|
3255
3261
|
var ExperienceDto = class {
|
|
3256
3262
|
};
|
|
3257
3263
|
__decorateClass([
|
|
3258
|
-
|
|
3264
|
+
IsOptional13()
|
|
3259
3265
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3260
3266
|
__decorateClass([
|
|
3261
3267
|
IsNotEmpty32(),
|
|
@@ -3341,12 +3347,12 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3341
3347
|
};
|
|
3342
3348
|
|
|
3343
3349
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3344
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty35, IsOptional as
|
|
3350
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional16, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
3345
3351
|
import { Type as Type3 } from "class-transformer";
|
|
3346
3352
|
var EducationDto = class {
|
|
3347
3353
|
};
|
|
3348
3354
|
__decorateClass([
|
|
3349
|
-
|
|
3355
|
+
IsOptional16()
|
|
3350
3356
|
], EducationDto.prototype, "uuid", 2);
|
|
3351
3357
|
__decorateClass([
|
|
3352
3358
|
IsString23(),
|
|
@@ -3376,12 +3382,12 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3376
3382
|
};
|
|
3377
3383
|
|
|
3378
3384
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3379
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty36, IsOptional as
|
|
3385
|
+
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";
|
|
3380
3386
|
import { Type as Type4 } from "class-transformer";
|
|
3381
3387
|
var ProjectDto = class {
|
|
3382
3388
|
};
|
|
3383
3389
|
__decorateClass([
|
|
3384
|
-
|
|
3390
|
+
IsOptional17()
|
|
3385
3391
|
], ProjectDto.prototype, "uuid", 2);
|
|
3386
3392
|
__decorateClass([
|
|
3387
3393
|
IsString24(),
|
|
@@ -3396,22 +3402,22 @@ __decorateClass([
|
|
|
3396
3402
|
IsNotEmpty36({ message: "Please Enter End Date " })
|
|
3397
3403
|
], ProjectDto.prototype, "endDate", 2);
|
|
3398
3404
|
__decorateClass([
|
|
3399
|
-
|
|
3405
|
+
IsOptional17(),
|
|
3400
3406
|
IsString24()
|
|
3401
3407
|
], ProjectDto.prototype, "clientName", 2);
|
|
3402
3408
|
__decorateClass([
|
|
3403
|
-
|
|
3409
|
+
IsOptional17(),
|
|
3404
3410
|
IsString24()
|
|
3405
3411
|
], ProjectDto.prototype, "gitLink", 2);
|
|
3406
3412
|
__decorateClass([
|
|
3407
|
-
|
|
3413
|
+
IsOptional17(),
|
|
3408
3414
|
IsString24(),
|
|
3409
3415
|
MaxLength12(500, { message: "Description must not exceed 500 characters" })
|
|
3410
3416
|
], ProjectDto.prototype, "description", 2);
|
|
3411
3417
|
var CaseStudyDto = class {
|
|
3412
3418
|
};
|
|
3413
3419
|
__decorateClass([
|
|
3414
|
-
|
|
3420
|
+
IsOptional17()
|
|
3415
3421
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3416
3422
|
__decorateClass([
|
|
3417
3423
|
IsString24(),
|
|
@@ -3422,7 +3428,7 @@ __decorateClass([
|
|
|
3422
3428
|
IsNotEmpty36({ message: "Please Enter Case Study Link " })
|
|
3423
3429
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3424
3430
|
__decorateClass([
|
|
3425
|
-
|
|
3431
|
+
IsOptional17(),
|
|
3426
3432
|
IsString24(),
|
|
3427
3433
|
MaxLength12(500, { message: "Description must not exceed 500 characters" })
|
|
3428
3434
|
], CaseStudyDto.prototype, "description", 2);
|
|
@@ -3452,7 +3458,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
3452
3458
|
};
|
|
3453
3459
|
|
|
3454
3460
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
3455
|
-
import { IsArray as IsArray8, IsString as IsString25, IsOptional as
|
|
3461
|
+
import { IsArray as IsArray8, IsString as IsString25, IsOptional as IsOptional18 } from "class-validator";
|
|
3456
3462
|
import { Type as Type5 } from "class-transformer";
|
|
3457
3463
|
var FreelancerSkillDto = class {
|
|
3458
3464
|
constructor() {
|
|
@@ -3462,19 +3468,19 @@ var FreelancerSkillDto = class {
|
|
|
3462
3468
|
}
|
|
3463
3469
|
};
|
|
3464
3470
|
__decorateClass([
|
|
3465
|
-
|
|
3471
|
+
IsOptional18(),
|
|
3466
3472
|
IsArray8(),
|
|
3467
3473
|
Type5(() => String),
|
|
3468
3474
|
IsString25({ each: true })
|
|
3469
3475
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
3470
3476
|
__decorateClass([
|
|
3471
|
-
|
|
3477
|
+
IsOptional18(),
|
|
3472
3478
|
IsArray8(),
|
|
3473
3479
|
Type5(() => String),
|
|
3474
3480
|
IsString25({ each: true })
|
|
3475
3481
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
3476
3482
|
__decorateClass([
|
|
3477
|
-
|
|
3483
|
+
IsOptional18(),
|
|
3478
3484
|
IsArray8(),
|
|
3479
3485
|
Type5(() => String),
|
|
3480
3486
|
IsString25({ each: true })
|
|
@@ -3496,7 +3502,7 @@ import {
|
|
|
3496
3502
|
IsString as IsString26,
|
|
3497
3503
|
IsEmail as IsEmail11,
|
|
3498
3504
|
IsBoolean as IsBoolean12,
|
|
3499
|
-
IsOptional as
|
|
3505
|
+
IsOptional as IsOptional19,
|
|
3500
3506
|
IsEnum as IsEnum13,
|
|
3501
3507
|
IsNumber as IsNumber3,
|
|
3502
3508
|
IsUrl as IsUrl3,
|
|
@@ -3579,23 +3585,23 @@ __decorateClass([
|
|
|
3579
3585
|
IsNotEmpty38({ message: "Please enter availability to join." })
|
|
3580
3586
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3581
3587
|
__decorateClass([
|
|
3582
|
-
|
|
3588
|
+
IsOptional19(),
|
|
3583
3589
|
IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3584
3590
|
], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3585
3591
|
__decorateClass([
|
|
3586
|
-
|
|
3592
|
+
IsOptional19(),
|
|
3587
3593
|
IsString26({ message: "Kaggle profile link must be a string" })
|
|
3588
3594
|
], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3589
3595
|
__decorateClass([
|
|
3590
|
-
|
|
3596
|
+
IsOptional19(),
|
|
3591
3597
|
IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
|
|
3592
3598
|
], CreateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3593
3599
|
__decorateClass([
|
|
3594
|
-
|
|
3600
|
+
IsOptional19(),
|
|
3595
3601
|
IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3596
3602
|
], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3597
3603
|
__decorateClass([
|
|
3598
|
-
|
|
3604
|
+
IsOptional19(),
|
|
3599
3605
|
IsUrl3({}, { message: "Portfolio link must be a valid URL" })
|
|
3600
3606
|
], CreateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3601
3607
|
|
|
@@ -3604,7 +3610,7 @@ import {
|
|
|
3604
3610
|
IsString as IsString27,
|
|
3605
3611
|
IsEmail as IsEmail12,
|
|
3606
3612
|
IsBoolean as IsBoolean13,
|
|
3607
|
-
IsOptional as
|
|
3613
|
+
IsOptional as IsOptional20,
|
|
3608
3614
|
IsEnum as IsEnum14,
|
|
3609
3615
|
IsNumber as IsNumber4,
|
|
3610
3616
|
IsUrl as IsUrl4,
|
|
@@ -3631,24 +3637,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
|
|
|
3631
3637
|
var UpdateFreelancerDto = class {
|
|
3632
3638
|
};
|
|
3633
3639
|
__decorateClass([
|
|
3634
|
-
|
|
3640
|
+
IsOptional20(),
|
|
3635
3641
|
IsString27({ message: "Full name must be a string" }),
|
|
3636
3642
|
MaxLength15(100, { message: "Full name must not exceed 100 characters" })
|
|
3637
3643
|
], UpdateFreelancerDto.prototype, "fullName", 2);
|
|
3638
3644
|
__decorateClass([
|
|
3639
|
-
|
|
3645
|
+
IsOptional20(),
|
|
3640
3646
|
IsEmail12({}, { message: "Invalid email address" })
|
|
3641
3647
|
], UpdateFreelancerDto.prototype, "email", 2);
|
|
3642
3648
|
__decorateClass([
|
|
3643
|
-
|
|
3649
|
+
IsOptional20(),
|
|
3644
3650
|
IsString27({ message: "Mobile code must be a string (e.g., +1)" })
|
|
3645
3651
|
], UpdateFreelancerDto.prototype, "mobileCode", 2);
|
|
3646
3652
|
__decorateClass([
|
|
3647
|
-
|
|
3653
|
+
IsOptional20(),
|
|
3648
3654
|
IsString27({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3649
3655
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
3650
3656
|
__decorateClass([
|
|
3651
|
-
|
|
3657
|
+
IsOptional20(),
|
|
3652
3658
|
MinLength13(6, { message: "Password must be at least 6 characters." }),
|
|
3653
3659
|
MaxLength15(32, { message: "Password must not exceed 32 characters." }),
|
|
3654
3660
|
Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -3656,12 +3662,12 @@ __decorateClass([
|
|
|
3656
3662
|
})
|
|
3657
3663
|
], UpdateFreelancerDto.prototype, "password", 2);
|
|
3658
3664
|
__decorateClass([
|
|
3659
|
-
|
|
3665
|
+
IsOptional20(),
|
|
3660
3666
|
IsBoolean13({ message: "Developer flag must be true or false" }),
|
|
3661
3667
|
Type7(() => Boolean)
|
|
3662
3668
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
3663
3669
|
__decorateClass([
|
|
3664
|
-
|
|
3670
|
+
IsOptional20(),
|
|
3665
3671
|
IsEnum14(NatureOfWorkEnum2, {
|
|
3666
3672
|
message: `Nature of work must be one of: ${Object.values(
|
|
3667
3673
|
NatureOfWorkEnum2
|
|
@@ -3669,13 +3675,13 @@ __decorateClass([
|
|
|
3669
3675
|
})
|
|
3670
3676
|
], UpdateFreelancerDto.prototype, "natureOfWork", 2);
|
|
3671
3677
|
__decorateClass([
|
|
3672
|
-
|
|
3678
|
+
IsOptional20(),
|
|
3673
3679
|
IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
|
|
3674
3680
|
Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
3675
3681
|
Type7(() => Number)
|
|
3676
3682
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
3677
3683
|
__decorateClass([
|
|
3678
|
-
|
|
3684
|
+
IsOptional20(),
|
|
3679
3685
|
IsEnum14(ModeOfWorkEnum2, {
|
|
3680
3686
|
message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
|
|
3681
3687
|
", "
|
|
@@ -3683,7 +3689,7 @@ __decorateClass([
|
|
|
3683
3689
|
})
|
|
3684
3690
|
], UpdateFreelancerDto.prototype, "modeOfWork", 2);
|
|
3685
3691
|
__decorateClass([
|
|
3686
|
-
|
|
3692
|
+
IsOptional20(),
|
|
3687
3693
|
IsBoolean13({ message: "isImmediateJoiner must be true or false" }),
|
|
3688
3694
|
Type7(() => Boolean)
|
|
3689
3695
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
@@ -3692,23 +3698,23 @@ __decorateClass([
|
|
|
3692
3698
|
IsNotEmpty39({ message: "Please enter availability to join." })
|
|
3693
3699
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3694
3700
|
__decorateClass([
|
|
3695
|
-
|
|
3701
|
+
IsOptional20(),
|
|
3696
3702
|
IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
|
|
3697
3703
|
], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
|
|
3698
3704
|
__decorateClass([
|
|
3699
|
-
|
|
3705
|
+
IsOptional20(),
|
|
3700
3706
|
IsString27({ message: "Kaggle profile link must be a string" })
|
|
3701
3707
|
], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
|
|
3702
3708
|
__decorateClass([
|
|
3703
|
-
|
|
3709
|
+
IsOptional20(),
|
|
3704
3710
|
IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
|
|
3705
3711
|
], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
|
|
3706
3712
|
__decorateClass([
|
|
3707
|
-
|
|
3713
|
+
IsOptional20(),
|
|
3708
3714
|
IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
|
|
3709
3715
|
], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
|
|
3710
3716
|
__decorateClass([
|
|
3711
|
-
|
|
3717
|
+
IsOptional20(),
|
|
3712
3718
|
IsUrl4({}, { message: "Portfolio link must be a valid URL" })
|
|
3713
3719
|
], UpdateFreelancerDto.prototype, "portfolioLink", 2);
|
|
3714
3720
|
|
|
@@ -3720,14 +3726,15 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3720
3726
|
fetchAdminClientById: "fetch.admin.client_by_id",
|
|
3721
3727
|
deleteAdminClient: "delete.admin.client",
|
|
3722
3728
|
exportAdminClients: "export.admin.clients",
|
|
3723
|
-
fetchClientCount: "fetch.client.count"
|
|
3729
|
+
fetchClientCount: "fetch.client.count",
|
|
3730
|
+
fetchClientDropdown: "fetch.client.dropdown"
|
|
3724
3731
|
};
|
|
3725
3732
|
|
|
3726
3733
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3727
3734
|
import {
|
|
3728
3735
|
IsNotEmpty as IsNotEmpty40,
|
|
3729
3736
|
IsEmail as IsEmail13,
|
|
3730
|
-
IsOptional as
|
|
3737
|
+
IsOptional as IsOptional21,
|
|
3731
3738
|
IsString as IsString28,
|
|
3732
3739
|
IsArray as IsArray9,
|
|
3733
3740
|
MinLength as MinLength14,
|
|
@@ -3798,11 +3805,11 @@ __decorateClass([
|
|
|
3798
3805
|
IsString28()
|
|
3799
3806
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3800
3807
|
__decorateClass([
|
|
3801
|
-
|
|
3808
|
+
IsOptional21(),
|
|
3802
3809
|
IsString28()
|
|
3803
3810
|
], CreateClientDto.prototype, "OTHER", 2);
|
|
3804
3811
|
__decorateClass([
|
|
3805
|
-
|
|
3812
|
+
IsOptional21(),
|
|
3806
3813
|
IsString28()
|
|
3807
3814
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3808
3815
|
|
|
@@ -3819,7 +3826,7 @@ __decorateClass([
|
|
|
3819
3826
|
import {
|
|
3820
3827
|
IsNotEmpty as IsNotEmpty42,
|
|
3821
3828
|
IsEmail as IsEmail14,
|
|
3822
|
-
IsOptional as
|
|
3829
|
+
IsOptional as IsOptional22,
|
|
3823
3830
|
IsString as IsString30,
|
|
3824
3831
|
IsArray as IsArray10,
|
|
3825
3832
|
MinLength as MinLength15,
|
|
@@ -3854,7 +3861,7 @@ __decorateClass([
|
|
|
3854
3861
|
IsEmail14()
|
|
3855
3862
|
], UpdateClientDto.prototype, "email", 2);
|
|
3856
3863
|
__decorateClass([
|
|
3857
|
-
|
|
3864
|
+
IsOptional22(),
|
|
3858
3865
|
MinLength15(6, { message: "Password must be at least 6 characters." }),
|
|
3859
3866
|
MaxLength17(32, { message: "Password must not exceed 32 characters." }),
|
|
3860
3867
|
Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -3886,11 +3893,11 @@ __decorateClass([
|
|
|
3886
3893
|
IsString30()
|
|
3887
3894
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
3888
3895
|
__decorateClass([
|
|
3889
|
-
|
|
3896
|
+
IsOptional22(),
|
|
3890
3897
|
IsString30()
|
|
3891
3898
|
], UpdateClientDto.prototype, "OTHER", 2);
|
|
3892
3899
|
__decorateClass([
|
|
3893
|
-
|
|
3900
|
+
IsOptional22(),
|
|
3894
3901
|
IsString30()
|
|
3895
3902
|
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3896
3903
|
|
|
@@ -3901,7 +3908,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
3901
3908
|
};
|
|
3902
3909
|
|
|
3903
3910
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
3904
|
-
import { IsOptional as
|
|
3911
|
+
import { IsOptional as IsOptional23, IsEnum as IsEnum17, IsString as IsString31, IsNotEmpty as IsNotEmpty43, IsIn as IsIn3 } from "class-validator";
|
|
3905
3912
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
3906
3913
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
3907
3914
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -3912,7 +3919,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
3912
3919
|
var FreelancerDeclarationDto = class {
|
|
3913
3920
|
};
|
|
3914
3921
|
__decorateClass([
|
|
3915
|
-
|
|
3922
|
+
IsOptional23(),
|
|
3916
3923
|
IsString31({ message: "UUID must be a string" })
|
|
3917
3924
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
3918
3925
|
__decorateClass([
|
|
@@ -3936,35 +3943,35 @@ var CMS_PATTERNS = {
|
|
|
3936
3943
|
};
|
|
3937
3944
|
|
|
3938
3945
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
3939
|
-
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty44, IsOptional as
|
|
3946
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty44, IsOptional as IsOptional24 } from "class-validator";
|
|
3940
3947
|
var CreateCmsDto = class {
|
|
3941
3948
|
};
|
|
3942
3949
|
__decorateClass([
|
|
3943
3950
|
IsNotEmpty44({ message: "Please enter name." })
|
|
3944
3951
|
], CreateCmsDto.prototype, "title", 2);
|
|
3945
3952
|
__decorateClass([
|
|
3946
|
-
|
|
3953
|
+
IsOptional24()
|
|
3947
3954
|
], CreateCmsDto.prototype, "content", 2);
|
|
3948
3955
|
__decorateClass([
|
|
3949
|
-
|
|
3956
|
+
IsOptional24(),
|
|
3950
3957
|
IsBoolean14({ message: "Is active must be a boolean value" })
|
|
3951
3958
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
3952
3959
|
|
|
3953
3960
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
3954
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty45, IsOptional as
|
|
3961
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty45, IsOptional as IsOptional25 } from "class-validator";
|
|
3955
3962
|
var UpdateCmsDto = class {
|
|
3956
3963
|
};
|
|
3957
3964
|
__decorateClass([
|
|
3958
|
-
|
|
3965
|
+
IsOptional25()
|
|
3959
3966
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
3960
3967
|
__decorateClass([
|
|
3961
3968
|
IsNotEmpty45({ message: "Please enter name." })
|
|
3962
3969
|
], UpdateCmsDto.prototype, "title", 2);
|
|
3963
3970
|
__decorateClass([
|
|
3964
|
-
|
|
3971
|
+
IsOptional25()
|
|
3965
3972
|
], UpdateCmsDto.prototype, "content", 2);
|
|
3966
3973
|
__decorateClass([
|
|
3967
|
-
|
|
3974
|
+
IsOptional25(),
|
|
3968
3975
|
IsBoolean15({ message: "Is active must be a boolean value" })
|
|
3969
3976
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
3970
3977
|
|
|
@@ -3994,7 +4001,7 @@ import {
|
|
|
3994
4001
|
IsString as IsString32,
|
|
3995
4002
|
IsEnum as IsEnum18,
|
|
3996
4003
|
IsInt as IsInt6,
|
|
3997
|
-
IsOptional as
|
|
4004
|
+
IsOptional as IsOptional26,
|
|
3998
4005
|
IsArray as IsArray11,
|
|
3999
4006
|
IsDateString as IsDateString4,
|
|
4000
4007
|
IsNotEmpty as IsNotEmpty46,
|
|
@@ -4021,7 +4028,7 @@ __decorateClass([
|
|
|
4021
4028
|
IsNotEmpty46({ message: "Job role is required." })
|
|
4022
4029
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4023
4030
|
__decorateClass([
|
|
4024
|
-
|
|
4031
|
+
IsOptional26(),
|
|
4025
4032
|
IsString32({ message: "Note must be a string." })
|
|
4026
4033
|
], AdminCreateJobInformationDto.prototype, "note", 2);
|
|
4027
4034
|
__decorateClass([
|
|
@@ -4071,7 +4078,7 @@ __decorateClass([
|
|
|
4071
4078
|
IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4072
4079
|
], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4073
4080
|
__decorateClass([
|
|
4074
|
-
|
|
4081
|
+
IsOptional26(),
|
|
4075
4082
|
IsString32({ message: "Additional comment must be a string." })
|
|
4076
4083
|
], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
|
|
4077
4084
|
__decorateClass([
|
|
@@ -4083,6 +4090,9 @@ __decorateClass([
|
|
|
4083
4090
|
__decorateClass([
|
|
4084
4091
|
IsInt6({ message: "City ID must be a valid integer." })
|
|
4085
4092
|
], AdminCreateJobInformationDto.prototype, "cityId", 2);
|
|
4093
|
+
__decorateClass([
|
|
4094
|
+
IsInt6({ message: "Client ID must be a valid integer." })
|
|
4095
|
+
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
4086
4096
|
|
|
4087
4097
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
4088
4098
|
import { Type as Type9 } from "class-transformer";
|
|
@@ -4090,7 +4100,7 @@ import {
|
|
|
4090
4100
|
IsString as IsString33,
|
|
4091
4101
|
IsEnum as IsEnum19,
|
|
4092
4102
|
IsInt as IsInt7,
|
|
4093
|
-
IsOptional as
|
|
4103
|
+
IsOptional as IsOptional27,
|
|
4094
4104
|
IsArray as IsArray12,
|
|
4095
4105
|
IsDateString as IsDateString5,
|
|
4096
4106
|
IsNotEmpty as IsNotEmpty47,
|
|
@@ -4117,7 +4127,7 @@ __decorateClass([
|
|
|
4117
4127
|
IsNotEmpty47({ message: "Job role is required." })
|
|
4118
4128
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4119
4129
|
__decorateClass([
|
|
4120
|
-
|
|
4130
|
+
IsOptional27(),
|
|
4121
4131
|
IsString33({ message: "Note must be a string." })
|
|
4122
4132
|
], AdminUpdateJobInformationDto.prototype, "note", 2);
|
|
4123
4133
|
__decorateClass([
|
|
@@ -4167,7 +4177,7 @@ __decorateClass([
|
|
|
4167
4177
|
IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
|
|
4168
4178
|
], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
|
|
4169
4179
|
__decorateClass([
|
|
4170
|
-
|
|
4180
|
+
IsOptional27(),
|
|
4171
4181
|
IsString33({ message: "Additional comment must be a string." })
|
|
4172
4182
|
], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
|
|
4173
4183
|
__decorateClass([
|
|
@@ -4179,6 +4189,9 @@ __decorateClass([
|
|
|
4179
4189
|
__decorateClass([
|
|
4180
4190
|
IsInt7({ message: "City ID must be a valid integer." })
|
|
4181
4191
|
], AdminUpdateJobInformationDto.prototype, "cityId", 2);
|
|
4192
|
+
__decorateClass([
|
|
4193
|
+
IsInt7({ message: "Client ID must be a valid integer." })
|
|
4194
|
+
], AdminUpdateJobInformationDto.prototype, "clientId", 2);
|
|
4182
4195
|
|
|
4183
4196
|
// src/modules/lead/pattern/pattern.ts
|
|
4184
4197
|
var LEAD_PATTERN = {
|
|
@@ -4187,7 +4200,7 @@ var LEAD_PATTERN = {
|
|
|
4187
4200
|
};
|
|
4188
4201
|
|
|
4189
4202
|
// src/modules/lead/dto/create-lead.dto.ts
|
|
4190
|
-
import { IsString as IsString34, IsEmail as IsEmail15, IsOptional as
|
|
4203
|
+
import { IsString as IsString34, IsEmail as IsEmail15, IsOptional as IsOptional28, IsEnum as IsEnum20 } from "class-validator";
|
|
4191
4204
|
var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
|
|
4192
4205
|
CategoryEmumDto2["BUSINESS"] = "BUSINESS";
|
|
4193
4206
|
CategoryEmumDto2["FREELANCER"] = "FREELANCER";
|
|
@@ -4208,7 +4221,7 @@ __decorateClass([
|
|
|
4208
4221
|
IsString34({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
4209
4222
|
], CreateLeadDto.prototype, "mobile", 2);
|
|
4210
4223
|
__decorateClass([
|
|
4211
|
-
|
|
4224
|
+
IsOptional28(),
|
|
4212
4225
|
IsString34({ message: "Description must be a string" })
|
|
4213
4226
|
], CreateLeadDto.prototype, "description", 2);
|
|
4214
4227
|
__decorateClass([
|