@experts_hub/shared 1.0.243 → 1.0.245
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 +2 -1
- package/dist/entities/freelancer-profile.entity.d.ts +2 -1
- package/dist/index.d.mts +14 -10
- package/dist/index.d.ts +14 -10
- package/dist/index.js +32 -18
- package/dist/index.mjs +128 -107
- package/dist/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.d.ts +10 -8
- package/package.json +1 -1
|
@@ -7,7 +7,8 @@ export declare enum AssessmentStatusEnum {
|
|
|
7
7
|
FAILED = "FAILED",
|
|
8
8
|
EXPIRED = "EXPIRED",
|
|
9
9
|
POSTPONED = "POSTPONED",
|
|
10
|
-
RESCHEDULED = "RESCHEDULED"
|
|
10
|
+
RESCHEDULED = "RESCHEDULED",
|
|
11
|
+
EXITED = "EXITED"
|
|
11
12
|
}
|
|
12
13
|
export declare class FreelancerAssessment extends BaseEntity {
|
|
13
14
|
userId: number;
|
|
@@ -31,7 +31,8 @@ export declare enum AiAssessmentStatusEnum {
|
|
|
31
31
|
NOT_ATTEMPTED = "NOT_ATTEMPTED",
|
|
32
32
|
PASSED = "PASSED",
|
|
33
33
|
FAILED = "FAILED",
|
|
34
|
-
SKIPPED = "SKIPPED"
|
|
34
|
+
SKIPPED = "SKIPPED",
|
|
35
|
+
EXITED = "EXITED"
|
|
35
36
|
}
|
|
36
37
|
export declare class FreelancerProfile extends BaseEntity {
|
|
37
38
|
userId: number;
|
package/dist/index.d.mts
CHANGED
|
@@ -490,14 +490,16 @@ declare enum ModeOfWorkDto {
|
|
|
490
490
|
BOTH = "BOTH"
|
|
491
491
|
}
|
|
492
492
|
declare class UpdateFreelancerProfileDto {
|
|
493
|
-
firstName
|
|
494
|
-
lastName
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
493
|
+
firstName: string;
|
|
494
|
+
lastName: string;
|
|
495
|
+
designation: string;
|
|
496
|
+
experience: string;
|
|
497
|
+
email: string;
|
|
498
|
+
mobileCode: string;
|
|
499
|
+
mobile: string;
|
|
500
|
+
countryId: number;
|
|
501
|
+
currency: string;
|
|
502
|
+
expectedHourlyCompensation: string;
|
|
501
503
|
natureOfWork: NatureOfWorkDto;
|
|
502
504
|
modeOfWork: ModeOfWorkDto;
|
|
503
505
|
portfolioLink?: string;
|
|
@@ -682,7 +684,8 @@ declare enum AiAssessmentStatusEnum {
|
|
|
682
684
|
NOT_ATTEMPTED = "NOT_ATTEMPTED",
|
|
683
685
|
PASSED = "PASSED",
|
|
684
686
|
FAILED = "FAILED",
|
|
685
|
-
SKIPPED = "SKIPPED"
|
|
687
|
+
SKIPPED = "SKIPPED",
|
|
688
|
+
EXITED = "EXITED"
|
|
686
689
|
}
|
|
687
690
|
declare class FreelancerProfile extends BaseEntity {
|
|
688
691
|
userId: number;
|
|
@@ -992,7 +995,8 @@ declare enum AssessmentStatusEnum {
|
|
|
992
995
|
FAILED = "FAILED",
|
|
993
996
|
EXPIRED = "EXPIRED",
|
|
994
997
|
POSTPONED = "POSTPONED",
|
|
995
|
-
RESCHEDULED = "RESCHEDULED"
|
|
998
|
+
RESCHEDULED = "RESCHEDULED",
|
|
999
|
+
EXITED = "EXITED"
|
|
996
1000
|
}
|
|
997
1001
|
declare class FreelancerAssessment extends BaseEntity {
|
|
998
1002
|
userId: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -490,14 +490,16 @@ declare enum ModeOfWorkDto {
|
|
|
490
490
|
BOTH = "BOTH"
|
|
491
491
|
}
|
|
492
492
|
declare class UpdateFreelancerProfileDto {
|
|
493
|
-
firstName
|
|
494
|
-
lastName
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
493
|
+
firstName: string;
|
|
494
|
+
lastName: string;
|
|
495
|
+
designation: string;
|
|
496
|
+
experience: string;
|
|
497
|
+
email: string;
|
|
498
|
+
mobileCode: string;
|
|
499
|
+
mobile: string;
|
|
500
|
+
countryId: number;
|
|
501
|
+
currency: string;
|
|
502
|
+
expectedHourlyCompensation: string;
|
|
501
503
|
natureOfWork: NatureOfWorkDto;
|
|
502
504
|
modeOfWork: ModeOfWorkDto;
|
|
503
505
|
portfolioLink?: string;
|
|
@@ -682,7 +684,8 @@ declare enum AiAssessmentStatusEnum {
|
|
|
682
684
|
NOT_ATTEMPTED = "NOT_ATTEMPTED",
|
|
683
685
|
PASSED = "PASSED",
|
|
684
686
|
FAILED = "FAILED",
|
|
685
|
-
SKIPPED = "SKIPPED"
|
|
687
|
+
SKIPPED = "SKIPPED",
|
|
688
|
+
EXITED = "EXITED"
|
|
686
689
|
}
|
|
687
690
|
declare class FreelancerProfile extends BaseEntity {
|
|
688
691
|
userId: number;
|
|
@@ -992,7 +995,8 @@ declare enum AssessmentStatusEnum {
|
|
|
992
995
|
FAILED = "FAILED",
|
|
993
996
|
EXPIRED = "EXPIRED",
|
|
994
997
|
POSTPONED = "POSTPONED",
|
|
995
|
-
RESCHEDULED = "RESCHEDULED"
|
|
998
|
+
RESCHEDULED = "RESCHEDULED",
|
|
999
|
+
EXITED = "EXITED"
|
|
996
1000
|
}
|
|
997
1001
|
declare class FreelancerAssessment extends BaseEntity {
|
|
998
1002
|
userId: number;
|
package/dist/index.js
CHANGED
|
@@ -1060,47 +1060,59 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
1060
1060
|
var UpdateFreelancerProfileDto = class {
|
|
1061
1061
|
};
|
|
1062
1062
|
__decorateClass([
|
|
1063
|
-
(0, import_class_validator34.
|
|
1064
|
-
(0, import_class_validator34.IsString)()
|
|
1063
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter first name." }),
|
|
1064
|
+
(0, import_class_validator34.IsString)({ message: "Please enter valid first name." })
|
|
1065
1065
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
1066
1066
|
__decorateClass([
|
|
1067
|
-
(0, import_class_validator34.
|
|
1068
|
-
(0, import_class_validator34.IsString)()
|
|
1067
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter last name." }),
|
|
1068
|
+
(0, import_class_validator34.IsString)({ message: "Please enter valid last name." })
|
|
1069
1069
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
1070
1070
|
__decorateClass([
|
|
1071
|
-
(0, import_class_validator34.
|
|
1071
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter designation." }),
|
|
1072
|
+
(0, import_class_validator34.IsString)({ message: "Please enter valid designation." })
|
|
1073
|
+
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
1074
|
+
__decorateClass([
|
|
1075
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter experience." }),
|
|
1076
|
+
(0, import_class_validator34.IsString)({ message: "Please enter valid experience." })
|
|
1077
|
+
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
1078
|
+
__decorateClass([
|
|
1079
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter email id." }),
|
|
1072
1080
|
(0, import_class_validator34.IsEmail)()
|
|
1073
1081
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
1074
1082
|
__decorateClass([
|
|
1075
|
-
(0, import_class_validator34.
|
|
1076
|
-
(0, import_class_validator34.IsString)()
|
|
1083
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter mobile code." }),
|
|
1084
|
+
(0, import_class_validator34.IsString)({ message: "Please enter valid mobile code." })
|
|
1077
1085
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
1078
1086
|
__decorateClass([
|
|
1079
|
-
(0, import_class_validator34.
|
|
1080
|
-
(0, import_class_validator34.IsString)()
|
|
1087
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter mobile number." }),
|
|
1088
|
+
(0, import_class_validator34.IsString)({ message: "Please enter valid mobile number." })
|
|
1081
1089
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
1082
1090
|
__decorateClass([
|
|
1083
|
-
(0, import_class_validator34.
|
|
1091
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please select country." }),
|
|
1084
1092
|
(0, import_class_validator34.IsNumber)()
|
|
1085
1093
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
1086
1094
|
__decorateClass([
|
|
1087
|
-
(0, import_class_validator34.
|
|
1088
|
-
(0, import_class_validator34.IsString)()
|
|
1095
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please select currency." }),
|
|
1096
|
+
(0, import_class_validator34.IsString)({ message: "Please enter valid currency." })
|
|
1089
1097
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
1090
1098
|
__decorateClass([
|
|
1091
|
-
(0, import_class_validator34.
|
|
1092
|
-
(0, import_class_validator34.IsString)()
|
|
1099
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please enter expected hourly compensation." }),
|
|
1100
|
+
(0, import_class_validator34.IsString)({ message: "Please enter valid expected hourly compensation." })
|
|
1093
1101
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
1094
1102
|
__decorateClass([
|
|
1095
|
-
(0, import_class_validator34.
|
|
1103
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please select engagement type." }),
|
|
1096
1104
|
(0, import_class_validator34.IsEnum)(NatureOfWorkDto, {
|
|
1097
|
-
message: `Engagement Type must be one of: ${Object.values(
|
|
1105
|
+
message: `Engagement Type must be one of: ${Object.values(
|
|
1106
|
+
NatureOfWorkDto
|
|
1107
|
+
).join(", ")}`
|
|
1098
1108
|
})
|
|
1099
1109
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
1100
1110
|
__decorateClass([
|
|
1101
|
-
(0, import_class_validator34.
|
|
1111
|
+
(0, import_class_validator34.IsNotEmpty)({ message: "Please select mode of work." }),
|
|
1102
1112
|
(0, import_class_validator34.IsEnum)(ModeOfWorkDto, {
|
|
1103
|
-
message: `
|
|
1113
|
+
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
1114
|
+
", "
|
|
1115
|
+
)}`
|
|
1104
1116
|
})
|
|
1105
1117
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
1106
1118
|
__decorateClass([
|
|
@@ -1622,6 +1634,7 @@ var AiAssessmentStatusEnum = /* @__PURE__ */ ((AiAssessmentStatusEnum2) => {
|
|
|
1622
1634
|
AiAssessmentStatusEnum2["PASSED"] = "PASSED";
|
|
1623
1635
|
AiAssessmentStatusEnum2["FAILED"] = "FAILED";
|
|
1624
1636
|
AiAssessmentStatusEnum2["SKIPPED"] = "SKIPPED";
|
|
1637
|
+
AiAssessmentStatusEnum2["EXITED"] = "EXITED";
|
|
1625
1638
|
return AiAssessmentStatusEnum2;
|
|
1626
1639
|
})(AiAssessmentStatusEnum || {});
|
|
1627
1640
|
var FreelancerProfile = class extends BaseEntity {
|
|
@@ -2628,6 +2641,7 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2628
2641
|
AssessmentStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2629
2642
|
AssessmentStatusEnum2["POSTPONED"] = "POSTPONED";
|
|
2630
2643
|
AssessmentStatusEnum2["RESCHEDULED"] = "RESCHEDULED";
|
|
2644
|
+
AssessmentStatusEnum2["EXITED"] = "EXITED";
|
|
2631
2645
|
return AssessmentStatusEnum2;
|
|
2632
2646
|
})(AssessmentStatusEnum || {});
|
|
2633
2647
|
var FreelancerAssessment = class extends BaseEntity {
|
package/dist/index.mjs
CHANGED
|
@@ -915,7 +915,14 @@ __decorateClass([
|
|
|
915
915
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
916
916
|
|
|
917
917
|
// src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
|
|
918
|
-
import {
|
|
918
|
+
import {
|
|
919
|
+
IsOptional as IsOptional8,
|
|
920
|
+
IsString as IsString16,
|
|
921
|
+
IsEmail as IsEmail6,
|
|
922
|
+
IsNumber as IsNumber2,
|
|
923
|
+
IsEnum as IsEnum9,
|
|
924
|
+
IsNotEmpty as IsNotEmpty30
|
|
925
|
+
} from "class-validator";
|
|
919
926
|
var NatureOfWorkDto = /* @__PURE__ */ ((NatureOfWorkDto2) => {
|
|
920
927
|
NatureOfWorkDto2["FULLTIME"] = "FULLTIME";
|
|
921
928
|
NatureOfWorkDto2["PARTTIME"] = "PARTTIME";
|
|
@@ -931,47 +938,59 @@ var ModeOfWorkDto = /* @__PURE__ */ ((ModeOfWorkDto2) => {
|
|
|
931
938
|
var UpdateFreelancerProfileDto = class {
|
|
932
939
|
};
|
|
933
940
|
__decorateClass([
|
|
934
|
-
|
|
935
|
-
IsString16()
|
|
941
|
+
IsNotEmpty30({ message: "Please enter first name." }),
|
|
942
|
+
IsString16({ message: "Please enter valid first name." })
|
|
936
943
|
], UpdateFreelancerProfileDto.prototype, "firstName", 2);
|
|
937
944
|
__decorateClass([
|
|
938
|
-
|
|
939
|
-
IsString16()
|
|
945
|
+
IsNotEmpty30({ message: "Please enter last name." }),
|
|
946
|
+
IsString16({ message: "Please enter valid last name." })
|
|
940
947
|
], UpdateFreelancerProfileDto.prototype, "lastName", 2);
|
|
941
948
|
__decorateClass([
|
|
942
|
-
|
|
949
|
+
IsNotEmpty30({ message: "Please enter designation." }),
|
|
950
|
+
IsString16({ message: "Please enter valid designation." })
|
|
951
|
+
], UpdateFreelancerProfileDto.prototype, "designation", 2);
|
|
952
|
+
__decorateClass([
|
|
953
|
+
IsNotEmpty30({ message: "Please enter experience." }),
|
|
954
|
+
IsString16({ message: "Please enter valid experience." })
|
|
955
|
+
], UpdateFreelancerProfileDto.prototype, "experience", 2);
|
|
956
|
+
__decorateClass([
|
|
957
|
+
IsNotEmpty30({ message: "Please enter email id." }),
|
|
943
958
|
IsEmail6()
|
|
944
959
|
], UpdateFreelancerProfileDto.prototype, "email", 2);
|
|
945
960
|
__decorateClass([
|
|
946
|
-
|
|
947
|
-
IsString16()
|
|
961
|
+
IsNotEmpty30({ message: "Please enter mobile code." }),
|
|
962
|
+
IsString16({ message: "Please enter valid mobile code." })
|
|
948
963
|
], UpdateFreelancerProfileDto.prototype, "mobileCode", 2);
|
|
949
964
|
__decorateClass([
|
|
950
|
-
|
|
951
|
-
IsString16()
|
|
965
|
+
IsNotEmpty30({ message: "Please enter mobile number." }),
|
|
966
|
+
IsString16({ message: "Please enter valid mobile number." })
|
|
952
967
|
], UpdateFreelancerProfileDto.prototype, "mobile", 2);
|
|
953
968
|
__decorateClass([
|
|
954
|
-
|
|
969
|
+
IsNotEmpty30({ message: "Please select country." }),
|
|
955
970
|
IsNumber2()
|
|
956
971
|
], UpdateFreelancerProfileDto.prototype, "countryId", 2);
|
|
957
972
|
__decorateClass([
|
|
958
|
-
|
|
959
|
-
IsString16()
|
|
973
|
+
IsNotEmpty30({ message: "Please select currency." }),
|
|
974
|
+
IsString16({ message: "Please enter valid currency." })
|
|
960
975
|
], UpdateFreelancerProfileDto.prototype, "currency", 2);
|
|
961
976
|
__decorateClass([
|
|
962
|
-
|
|
963
|
-
IsString16()
|
|
977
|
+
IsNotEmpty30({ message: "Please enter expected hourly compensation." }),
|
|
978
|
+
IsString16({ message: "Please enter valid expected hourly compensation." })
|
|
964
979
|
], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
|
|
965
980
|
__decorateClass([
|
|
966
|
-
|
|
981
|
+
IsNotEmpty30({ message: "Please select engagement type." }),
|
|
967
982
|
IsEnum9(NatureOfWorkDto, {
|
|
968
|
-
message: `Engagement Type must be one of: ${Object.values(
|
|
983
|
+
message: `Engagement Type must be one of: ${Object.values(
|
|
984
|
+
NatureOfWorkDto
|
|
985
|
+
).join(", ")}`
|
|
969
986
|
})
|
|
970
987
|
], UpdateFreelancerProfileDto.prototype, "natureOfWork", 2);
|
|
971
988
|
__decorateClass([
|
|
972
|
-
|
|
989
|
+
IsNotEmpty30({ message: "Please select mode of work." }),
|
|
973
990
|
IsEnum9(ModeOfWorkDto, {
|
|
974
|
-
message: `
|
|
991
|
+
message: `Mode of work must be one of: ${Object.values(ModeOfWorkDto).join(
|
|
992
|
+
", "
|
|
993
|
+
)}`
|
|
975
994
|
})
|
|
976
995
|
], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
|
|
977
996
|
__decorateClass([
|
|
@@ -1017,7 +1036,7 @@ var BANK_PATTERN = {
|
|
|
1017
1036
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1018
1037
|
import {
|
|
1019
1038
|
IsEnum as IsEnum10,
|
|
1020
|
-
IsNotEmpty as
|
|
1039
|
+
IsNotEmpty as IsNotEmpty31,
|
|
1021
1040
|
IsOptional as IsOptional9,
|
|
1022
1041
|
ValidateIf as ValidateIf2
|
|
1023
1042
|
} from "class-validator";
|
|
@@ -1029,41 +1048,41 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
1029
1048
|
var FreelancerBankDetailsDto = class {
|
|
1030
1049
|
};
|
|
1031
1050
|
__decorateClass([
|
|
1032
|
-
|
|
1051
|
+
IsNotEmpty31({ message: "Please enter Account Holder Name." })
|
|
1033
1052
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1034
1053
|
__decorateClass([
|
|
1035
|
-
|
|
1054
|
+
IsNotEmpty31({ message: "Please enter Mobile Number." })
|
|
1036
1055
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1037
1056
|
__decorateClass([
|
|
1038
|
-
|
|
1057
|
+
IsNotEmpty31({ message: "Please enter Email." })
|
|
1039
1058
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1040
1059
|
__decorateClass([
|
|
1041
1060
|
IsOptional9()
|
|
1042
1061
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1043
1062
|
__decorateClass([
|
|
1044
|
-
|
|
1063
|
+
IsNotEmpty31({ message: "Please enter Account Number." })
|
|
1045
1064
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1046
1065
|
__decorateClass([
|
|
1047
|
-
|
|
1066
|
+
IsNotEmpty31({ message: "Please enter Bank Name." })
|
|
1048
1067
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1049
1068
|
__decorateClass([
|
|
1050
|
-
|
|
1069
|
+
IsNotEmpty31({ message: "Please enter Branch Name." })
|
|
1051
1070
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1052
1071
|
__decorateClass([
|
|
1053
1072
|
ValidateIf2((dto) => dto.accountScope === "DOMESTIC"),
|
|
1054
|
-
|
|
1073
|
+
IsNotEmpty31({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1055
1074
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1056
1075
|
__decorateClass([
|
|
1057
1076
|
ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1058
|
-
|
|
1077
|
+
IsNotEmpty31({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1059
1078
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1060
1079
|
__decorateClass([
|
|
1061
1080
|
ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1062
|
-
|
|
1081
|
+
IsNotEmpty31({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1063
1082
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1064
1083
|
__decorateClass([
|
|
1065
1084
|
ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1066
|
-
|
|
1085
|
+
IsNotEmpty31({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1067
1086
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1068
1087
|
__decorateClass([
|
|
1069
1088
|
IsOptional9()
|
|
@@ -1127,7 +1146,7 @@ var RATING_PATTERN = {
|
|
|
1127
1146
|
import {
|
|
1128
1147
|
IsEnum as IsEnum12,
|
|
1129
1148
|
IsInt,
|
|
1130
|
-
IsNotEmpty as
|
|
1149
|
+
IsNotEmpty as IsNotEmpty32,
|
|
1131
1150
|
IsOptional as IsOptional10,
|
|
1132
1151
|
IsString as IsString17,
|
|
1133
1152
|
Max,
|
|
@@ -1568,6 +1587,7 @@ var AiAssessmentStatusEnum = /* @__PURE__ */ ((AiAssessmentStatusEnum2) => {
|
|
|
1568
1587
|
AiAssessmentStatusEnum2["PASSED"] = "PASSED";
|
|
1569
1588
|
AiAssessmentStatusEnum2["FAILED"] = "FAILED";
|
|
1570
1589
|
AiAssessmentStatusEnum2["SKIPPED"] = "SKIPPED";
|
|
1590
|
+
AiAssessmentStatusEnum2["EXITED"] = "EXITED";
|
|
1571
1591
|
return AiAssessmentStatusEnum2;
|
|
1572
1592
|
})(AiAssessmentStatusEnum || {});
|
|
1573
1593
|
var FreelancerProfile = class extends BaseEntity {
|
|
@@ -2654,6 +2674,7 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
2654
2674
|
AssessmentStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2655
2675
|
AssessmentStatusEnum2["POSTPONED"] = "POSTPONED";
|
|
2656
2676
|
AssessmentStatusEnum2["RESCHEDULED"] = "RESCHEDULED";
|
|
2677
|
+
AssessmentStatusEnum2["EXITED"] = "EXITED";
|
|
2657
2678
|
return AssessmentStatusEnum2;
|
|
2658
2679
|
})(AssessmentStatusEnum || {});
|
|
2659
2680
|
var FreelancerAssessment = class extends BaseEntity {
|
|
@@ -3293,7 +3314,7 @@ var CreateRatingDto = class {
|
|
|
3293
3314
|
};
|
|
3294
3315
|
__decorateClass([
|
|
3295
3316
|
IsInt({ message: "Reviewee ID must be a valid integer" }),
|
|
3296
|
-
|
|
3317
|
+
IsNotEmpty32({ message: "Reviewee ID is required" })
|
|
3297
3318
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
3298
3319
|
__decorateClass([
|
|
3299
3320
|
IsEnum12(RatingTypeEnum, {
|
|
@@ -3323,17 +3344,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3323
3344
|
};
|
|
3324
3345
|
|
|
3325
3346
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3326
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean6, IsInt as IsInt2, IsNotEmpty as
|
|
3347
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean6, IsInt as IsInt2, IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional11 } from "class-validator";
|
|
3327
3348
|
var CreateCompanyRoleDto = class {
|
|
3328
3349
|
};
|
|
3329
3350
|
__decorateClass([
|
|
3330
|
-
|
|
3351
|
+
IsNotEmpty33({ message: "Please enter company role name." })
|
|
3331
3352
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
3332
3353
|
__decorateClass([
|
|
3333
|
-
|
|
3354
|
+
IsNotEmpty33({ message: "Please enter company role slug" })
|
|
3334
3355
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
3335
3356
|
__decorateClass([
|
|
3336
|
-
|
|
3357
|
+
IsNotEmpty33({ message: "Please enter description" })
|
|
3337
3358
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
3338
3359
|
__decorateClass([
|
|
3339
3360
|
IsArray2({ message: "Permission IDs must be an array." }),
|
|
@@ -3346,17 +3367,17 @@ __decorateClass([
|
|
|
3346
3367
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3347
3368
|
|
|
3348
3369
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3349
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean7, IsInt as IsInt3, IsNotEmpty as
|
|
3370
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean7, IsInt as IsInt3, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional12 } from "class-validator";
|
|
3350
3371
|
var UpdateCompanyRoleDto = class {
|
|
3351
3372
|
};
|
|
3352
3373
|
__decorateClass([
|
|
3353
|
-
|
|
3374
|
+
IsNotEmpty34({ message: "Please enter company name." })
|
|
3354
3375
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
3355
3376
|
__decorateClass([
|
|
3356
|
-
|
|
3377
|
+
IsNotEmpty34({ message: "Please enter slug" })
|
|
3357
3378
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
3358
3379
|
__decorateClass([
|
|
3359
|
-
|
|
3380
|
+
IsNotEmpty34({ message: "Please enter description" })
|
|
3360
3381
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
3361
3382
|
__decorateClass([
|
|
3362
3383
|
IsArray3({ message: "Permission IDs must be an array." }),
|
|
@@ -3385,7 +3406,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3385
3406
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
3386
3407
|
import {
|
|
3387
3408
|
ArrayMinSize,
|
|
3388
|
-
IsNotEmpty as
|
|
3409
|
+
IsNotEmpty as IsNotEmpty35,
|
|
3389
3410
|
IsOptional as IsOptional13,
|
|
3390
3411
|
IsString as IsString20,
|
|
3391
3412
|
MaxLength as MaxLength10,
|
|
@@ -3398,19 +3419,19 @@ __decorateClass([
|
|
|
3398
3419
|
IsOptional13()
|
|
3399
3420
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3400
3421
|
__decorateClass([
|
|
3401
|
-
|
|
3422
|
+
IsNotEmpty35(),
|
|
3402
3423
|
IsString20()
|
|
3403
3424
|
], ExperienceDto.prototype, "companyName", 2);
|
|
3404
3425
|
__decorateClass([
|
|
3405
|
-
|
|
3426
|
+
IsNotEmpty35(),
|
|
3406
3427
|
IsString20()
|
|
3407
3428
|
], ExperienceDto.prototype, "designation", 2);
|
|
3408
3429
|
__decorateClass([
|
|
3409
|
-
|
|
3430
|
+
IsNotEmpty35(),
|
|
3410
3431
|
IsString20()
|
|
3411
3432
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3412
3433
|
__decorateClass([
|
|
3413
|
-
|
|
3434
|
+
IsNotEmpty35(),
|
|
3414
3435
|
IsString20(),
|
|
3415
3436
|
MaxLength10(500, { message: "Description must not exceed 500 characters" })
|
|
3416
3437
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -3435,14 +3456,14 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
3435
3456
|
};
|
|
3436
3457
|
|
|
3437
3458
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
3438
|
-
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as
|
|
3459
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as IsNotEmpty36 } from "class-validator";
|
|
3439
3460
|
var CreateCompanyMemberDto = class {
|
|
3440
3461
|
};
|
|
3441
3462
|
__decorateClass([
|
|
3442
|
-
|
|
3463
|
+
IsNotEmpty36({ message: "Please enter name." })
|
|
3443
3464
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
3444
3465
|
__decorateClass([
|
|
3445
|
-
|
|
3466
|
+
IsNotEmpty36({ message: "Please enter email" })
|
|
3446
3467
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
3447
3468
|
__decorateClass([
|
|
3448
3469
|
IsArray4({ message: "Role IDs must be an array." }),
|
|
@@ -3451,14 +3472,14 @@ __decorateClass([
|
|
|
3451
3472
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3452
3473
|
|
|
3453
3474
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
3454
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as
|
|
3475
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as IsNotEmpty37 } from "class-validator";
|
|
3455
3476
|
var UpdateCompanyMemberDto = class {
|
|
3456
3477
|
};
|
|
3457
3478
|
__decorateClass([
|
|
3458
|
-
|
|
3479
|
+
IsNotEmpty37({ message: "Please enter name." })
|
|
3459
3480
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
3460
3481
|
__decorateClass([
|
|
3461
|
-
|
|
3482
|
+
IsNotEmpty37({ message: "Please enter email" })
|
|
3462
3483
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
3463
3484
|
__decorateClass([
|
|
3464
3485
|
IsArray5({ message: "Role IDs must be an array." }),
|
|
@@ -3481,7 +3502,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3481
3502
|
};
|
|
3482
3503
|
|
|
3483
3504
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3484
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as
|
|
3505
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty38, IsOptional as IsOptional16, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
3485
3506
|
import { Type as Type3 } from "class-transformer";
|
|
3486
3507
|
var EducationDto = class {
|
|
3487
3508
|
};
|
|
@@ -3490,15 +3511,15 @@ __decorateClass([
|
|
|
3490
3511
|
], EducationDto.prototype, "uuid", 2);
|
|
3491
3512
|
__decorateClass([
|
|
3492
3513
|
IsString23(),
|
|
3493
|
-
|
|
3514
|
+
IsNotEmpty38({ message: "Please Enter Degree " })
|
|
3494
3515
|
], EducationDto.prototype, "degree", 2);
|
|
3495
3516
|
__decorateClass([
|
|
3496
3517
|
IsString23(),
|
|
3497
|
-
|
|
3518
|
+
IsNotEmpty38({ message: "Please Enter University " })
|
|
3498
3519
|
], EducationDto.prototype, "university", 2);
|
|
3499
3520
|
__decorateClass([
|
|
3500
3521
|
IsString23(),
|
|
3501
|
-
|
|
3522
|
+
IsNotEmpty38({ message: "Please Enter Year of Graduation " })
|
|
3502
3523
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
3503
3524
|
var FreelancerEducationDto = class {
|
|
3504
3525
|
};
|
|
@@ -3516,7 +3537,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3516
3537
|
};
|
|
3517
3538
|
|
|
3518
3539
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3519
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as
|
|
3540
|
+
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional17, IsDateString, MaxLength as MaxLength12, ArrayMinSize as ArrayMinSize3 } from "class-validator";
|
|
3520
3541
|
import { Type as Type4 } from "class-transformer";
|
|
3521
3542
|
var ProjectDto = class {
|
|
3522
3543
|
};
|
|
@@ -3525,15 +3546,15 @@ __decorateClass([
|
|
|
3525
3546
|
], ProjectDto.prototype, "uuid", 2);
|
|
3526
3547
|
__decorateClass([
|
|
3527
3548
|
IsString24(),
|
|
3528
|
-
|
|
3549
|
+
IsNotEmpty39({ message: "Please Enter Project Name " })
|
|
3529
3550
|
], ProjectDto.prototype, "projectName", 2);
|
|
3530
3551
|
__decorateClass([
|
|
3531
3552
|
IsDateString(),
|
|
3532
|
-
|
|
3553
|
+
IsNotEmpty39({ message: "Please Enter Start Date " })
|
|
3533
3554
|
], ProjectDto.prototype, "startDate", 2);
|
|
3534
3555
|
__decorateClass([
|
|
3535
3556
|
IsDateString(),
|
|
3536
|
-
|
|
3557
|
+
IsNotEmpty39({ message: "Please Enter End Date " })
|
|
3537
3558
|
], ProjectDto.prototype, "endDate", 2);
|
|
3538
3559
|
__decorateClass([
|
|
3539
3560
|
IsOptional17(),
|
|
@@ -3555,11 +3576,11 @@ __decorateClass([
|
|
|
3555
3576
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3556
3577
|
__decorateClass([
|
|
3557
3578
|
IsString24(),
|
|
3558
|
-
|
|
3579
|
+
IsNotEmpty39({ message: "Please Enter Project Name " })
|
|
3559
3580
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
3560
3581
|
__decorateClass([
|
|
3561
3582
|
IsString24(),
|
|
3562
|
-
|
|
3583
|
+
IsNotEmpty39({ message: "Please Enter Case Study Link " })
|
|
3563
3584
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3564
3585
|
__decorateClass([
|
|
3565
3586
|
IsOptional17(),
|
|
@@ -3643,7 +3664,7 @@ import {
|
|
|
3643
3664
|
IsUrl as IsUrl3,
|
|
3644
3665
|
Min as Min3,
|
|
3645
3666
|
MaxLength as MaxLength14,
|
|
3646
|
-
IsNotEmpty as
|
|
3667
|
+
IsNotEmpty as IsNotEmpty41,
|
|
3647
3668
|
MinLength as MinLength12,
|
|
3648
3669
|
Matches as Matches8,
|
|
3649
3670
|
ValidateIf as ValidateIf3
|
|
@@ -3677,7 +3698,7 @@ __decorateClass([
|
|
|
3677
3698
|
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3678
3699
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
3679
3700
|
__decorateClass([
|
|
3680
|
-
|
|
3701
|
+
IsNotEmpty41({ message: "Please enter password." }),
|
|
3681
3702
|
MinLength12(6),
|
|
3682
3703
|
MaxLength14(32),
|
|
3683
3704
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -3685,7 +3706,7 @@ __decorateClass([
|
|
|
3685
3706
|
})
|
|
3686
3707
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
3687
3708
|
__decorateClass([
|
|
3688
|
-
|
|
3709
|
+
IsNotEmpty41({ message: "Please enter confirm password." }),
|
|
3689
3710
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3690
3711
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
3691
3712
|
__decorateClass([
|
|
@@ -3717,7 +3738,7 @@ __decorateClass([
|
|
|
3717
3738
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3718
3739
|
__decorateClass([
|
|
3719
3740
|
ValidateIf3((o) => o.isImmediateJoiner === false),
|
|
3720
|
-
|
|
3741
|
+
IsNotEmpty41({ message: "Please enter availability to join." })
|
|
3721
3742
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3722
3743
|
__decorateClass([
|
|
3723
3744
|
IsOptional19(),
|
|
@@ -3753,7 +3774,7 @@ import {
|
|
|
3753
3774
|
MaxLength as MaxLength15,
|
|
3754
3775
|
MinLength as MinLength13,
|
|
3755
3776
|
Matches as Matches9,
|
|
3756
|
-
IsNotEmpty as
|
|
3777
|
+
IsNotEmpty as IsNotEmpty42,
|
|
3757
3778
|
ValidateIf as ValidateIf4
|
|
3758
3779
|
} from "class-validator";
|
|
3759
3780
|
import { Type as Type7 } from "class-transformer";
|
|
@@ -3830,7 +3851,7 @@ __decorateClass([
|
|
|
3830
3851
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3831
3852
|
__decorateClass([
|
|
3832
3853
|
ValidateIf4((o) => o.isImmediateJoiner === false),
|
|
3833
|
-
|
|
3854
|
+
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
3834
3855
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3835
3856
|
__decorateClass([
|
|
3836
3857
|
IsOptional20(),
|
|
@@ -3868,7 +3889,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3868
3889
|
|
|
3869
3890
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3870
3891
|
import {
|
|
3871
|
-
IsNotEmpty as
|
|
3892
|
+
IsNotEmpty as IsNotEmpty43,
|
|
3872
3893
|
IsEmail as IsEmail13,
|
|
3873
3894
|
IsOptional as IsOptional21,
|
|
3874
3895
|
IsString as IsString28,
|
|
@@ -3893,19 +3914,19 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
3893
3914
|
var CreateClientDto = class {
|
|
3894
3915
|
};
|
|
3895
3916
|
__decorateClass([
|
|
3896
|
-
|
|
3917
|
+
IsNotEmpty43({ message: "Please enter first name." }),
|
|
3897
3918
|
IsString28()
|
|
3898
3919
|
], CreateClientDto.prototype, "firstName", 2);
|
|
3899
3920
|
__decorateClass([
|
|
3900
|
-
|
|
3921
|
+
IsNotEmpty43({ message: "Please enter last name." }),
|
|
3901
3922
|
IsString28()
|
|
3902
3923
|
], CreateClientDto.prototype, "lastName", 2);
|
|
3903
3924
|
__decorateClass([
|
|
3904
|
-
|
|
3925
|
+
IsNotEmpty43({ message: "Please enter email." }),
|
|
3905
3926
|
IsEmail13()
|
|
3906
3927
|
], CreateClientDto.prototype, "email", 2);
|
|
3907
3928
|
__decorateClass([
|
|
3908
|
-
|
|
3929
|
+
IsNotEmpty43({ message: "Please enter password." }),
|
|
3909
3930
|
MinLength14(6),
|
|
3910
3931
|
MaxLength16(32),
|
|
3911
3932
|
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -3913,31 +3934,31 @@ __decorateClass([
|
|
|
3913
3934
|
})
|
|
3914
3935
|
], CreateClientDto.prototype, "password", 2);
|
|
3915
3936
|
__decorateClass([
|
|
3916
|
-
|
|
3937
|
+
IsNotEmpty43({ message: "Please enter confirm password." }),
|
|
3917
3938
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3918
3939
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3919
3940
|
__decorateClass([
|
|
3920
|
-
|
|
3941
|
+
IsNotEmpty43({ message: "Please enter company name." }),
|
|
3921
3942
|
IsString28()
|
|
3922
3943
|
], CreateClientDto.prototype, "companyName", 2);
|
|
3923
3944
|
__decorateClass([
|
|
3924
3945
|
IsArray9({ message: "Skills should be an array." }),
|
|
3925
|
-
|
|
3946
|
+
IsNotEmpty43({ message: "Please enter skills." })
|
|
3926
3947
|
], CreateClientDto.prototype, "skills", 2);
|
|
3927
3948
|
__decorateClass([
|
|
3928
|
-
|
|
3949
|
+
IsNotEmpty43({ message: "Please specify required freelancer count." }),
|
|
3929
3950
|
IsString28()
|
|
3930
3951
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3931
3952
|
__decorateClass([
|
|
3932
|
-
|
|
3953
|
+
IsNotEmpty43({ message: "Please specify the kind of hiring." }),
|
|
3933
3954
|
IsEnum15(CreateClientHiringTypeEnum)
|
|
3934
3955
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
3935
3956
|
__decorateClass([
|
|
3936
|
-
|
|
3957
|
+
IsNotEmpty43({ message: "Please specify the mode of hire." }),
|
|
3937
3958
|
IsEnum15(CreateClientHiringModeEnum)
|
|
3938
3959
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
3939
3960
|
__decorateClass([
|
|
3940
|
-
|
|
3961
|
+
IsNotEmpty43({ message: "Please let us know how you found us." }),
|
|
3941
3962
|
IsString28()
|
|
3942
3963
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3943
3964
|
__decorateClass([
|
|
@@ -3946,17 +3967,17 @@ __decorateClass([
|
|
|
3946
3967
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3947
3968
|
|
|
3948
3969
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
3949
|
-
import { IsString as IsString29, IsNotEmpty as
|
|
3970
|
+
import { IsString as IsString29, IsNotEmpty as IsNotEmpty44 } from "class-validator";
|
|
3950
3971
|
var UpdateClientAccountStatusDto = class {
|
|
3951
3972
|
};
|
|
3952
3973
|
__decorateClass([
|
|
3953
|
-
|
|
3974
|
+
IsNotEmpty44({ message: "Please enter account status." }),
|
|
3954
3975
|
IsString29()
|
|
3955
3976
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
3956
3977
|
|
|
3957
3978
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
3958
3979
|
import {
|
|
3959
|
-
IsNotEmpty as
|
|
3980
|
+
IsNotEmpty as IsNotEmpty45,
|
|
3960
3981
|
IsEmail as IsEmail14,
|
|
3961
3982
|
IsOptional as IsOptional22,
|
|
3962
3983
|
IsString as IsString30,
|
|
@@ -3981,15 +4002,15 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
3981
4002
|
var UpdateClientDto = class {
|
|
3982
4003
|
};
|
|
3983
4004
|
__decorateClass([
|
|
3984
|
-
|
|
4005
|
+
IsNotEmpty45({ message: "Please enter first name." }),
|
|
3985
4006
|
IsString30()
|
|
3986
4007
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
3987
4008
|
__decorateClass([
|
|
3988
|
-
|
|
4009
|
+
IsNotEmpty45({ message: "Please enter last name." }),
|
|
3989
4010
|
IsString30()
|
|
3990
4011
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
3991
4012
|
__decorateClass([
|
|
3992
|
-
|
|
4013
|
+
IsNotEmpty45({ message: "Please enter email." }),
|
|
3993
4014
|
IsEmail14()
|
|
3994
4015
|
], UpdateClientDto.prototype, "email", 2);
|
|
3995
4016
|
__decorateClass([
|
|
@@ -4001,27 +4022,27 @@ __decorateClass([
|
|
|
4001
4022
|
})
|
|
4002
4023
|
], UpdateClientDto.prototype, "password", 2);
|
|
4003
4024
|
__decorateClass([
|
|
4004
|
-
|
|
4025
|
+
IsNotEmpty45({ message: "Please enter company name." }),
|
|
4005
4026
|
IsString30()
|
|
4006
4027
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
4007
4028
|
__decorateClass([
|
|
4008
4029
|
IsArray10({ message: "Skills should be an array." }),
|
|
4009
|
-
|
|
4030
|
+
IsNotEmpty45({ message: "Please enter skills." })
|
|
4010
4031
|
], UpdateClientDto.prototype, "skills", 2);
|
|
4011
4032
|
__decorateClass([
|
|
4012
|
-
|
|
4033
|
+
IsNotEmpty45({ message: "Please specify required freelancer count." }),
|
|
4013
4034
|
IsString30()
|
|
4014
4035
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
4015
4036
|
__decorateClass([
|
|
4016
|
-
|
|
4037
|
+
IsNotEmpty45({ message: "Please specify the kind of hiring." }),
|
|
4017
4038
|
IsEnum16(UpdateClientHiringTypeEnum)
|
|
4018
4039
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
4019
4040
|
__decorateClass([
|
|
4020
|
-
|
|
4041
|
+
IsNotEmpty45({ message: "Please specify the mode of hire." }),
|
|
4021
4042
|
IsEnum16(UpdateClientHiringModeEnum)
|
|
4022
4043
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
4023
4044
|
__decorateClass([
|
|
4024
|
-
|
|
4045
|
+
IsNotEmpty45({ message: "Please let us know how you found us." }),
|
|
4025
4046
|
IsString30()
|
|
4026
4047
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4027
4048
|
__decorateClass([
|
|
@@ -4036,7 +4057,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4036
4057
|
};
|
|
4037
4058
|
|
|
4038
4059
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4039
|
-
import { IsOptional as IsOptional23, IsEnum as IsEnum17, IsString as IsString31, IsNotEmpty as
|
|
4060
|
+
import { IsOptional as IsOptional23, IsEnum as IsEnum17, IsString as IsString31, IsNotEmpty as IsNotEmpty46, IsIn as IsIn3 } from "class-validator";
|
|
4040
4061
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4041
4062
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4042
4063
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4054,7 +4075,7 @@ __decorateClass([
|
|
|
4054
4075
|
IsEnum17(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4055
4076
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4056
4077
|
__decorateClass([
|
|
4057
|
-
|
|
4078
|
+
IsNotEmpty46({ message: "Please accept the declaration " }),
|
|
4058
4079
|
IsString31(),
|
|
4059
4080
|
IsIn3([
|
|
4060
4081
|
"true"
|
|
@@ -4071,11 +4092,11 @@ var CMS_PATTERNS = {
|
|
|
4071
4092
|
};
|
|
4072
4093
|
|
|
4073
4094
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4074
|
-
import { IsBoolean as IsBoolean14, IsNotEmpty as
|
|
4095
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty47, IsOptional as IsOptional24 } from "class-validator";
|
|
4075
4096
|
var CreateCmsDto = class {
|
|
4076
4097
|
};
|
|
4077
4098
|
__decorateClass([
|
|
4078
|
-
|
|
4099
|
+
IsNotEmpty47({ message: "Please enter name." })
|
|
4079
4100
|
], CreateCmsDto.prototype, "title", 2);
|
|
4080
4101
|
__decorateClass([
|
|
4081
4102
|
IsOptional24()
|
|
@@ -4086,14 +4107,14 @@ __decorateClass([
|
|
|
4086
4107
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4087
4108
|
|
|
4088
4109
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4089
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
4110
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional25 } from "class-validator";
|
|
4090
4111
|
var UpdateCmsDto = class {
|
|
4091
4112
|
};
|
|
4092
4113
|
__decorateClass([
|
|
4093
4114
|
IsOptional25()
|
|
4094
4115
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4095
4116
|
__decorateClass([
|
|
4096
|
-
|
|
4117
|
+
IsNotEmpty48({ message: "Please enter name." })
|
|
4097
4118
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4098
4119
|
__decorateClass([
|
|
4099
4120
|
IsOptional25()
|
|
@@ -4134,7 +4155,7 @@ import {
|
|
|
4134
4155
|
IsOptional as IsOptional26,
|
|
4135
4156
|
IsArray as IsArray11,
|
|
4136
4157
|
IsDateString as IsDateString4,
|
|
4137
|
-
IsNotEmpty as
|
|
4158
|
+
IsNotEmpty as IsNotEmpty49,
|
|
4138
4159
|
ArrayNotEmpty as ArrayNotEmpty6,
|
|
4139
4160
|
Min as Min5,
|
|
4140
4161
|
IsNumber as IsNumber5
|
|
@@ -4155,7 +4176,7 @@ var AdminCreateJobInformationDto = class {
|
|
|
4155
4176
|
};
|
|
4156
4177
|
__decorateClass([
|
|
4157
4178
|
IsString32({ message: "Job role must be a string." }),
|
|
4158
|
-
|
|
4179
|
+
IsNotEmpty49({ message: "Job role is required." })
|
|
4159
4180
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4160
4181
|
__decorateClass([
|
|
4161
4182
|
IsOptional26(),
|
|
@@ -4183,15 +4204,15 @@ __decorateClass([
|
|
|
4183
4204
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4184
4205
|
__decorateClass([
|
|
4185
4206
|
IsString32({ message: "Onboarding Days must be a string." }),
|
|
4186
|
-
|
|
4207
|
+
IsNotEmpty49({ message: "Onboarding Days is required." })
|
|
4187
4208
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4188
4209
|
__decorateClass([
|
|
4189
4210
|
IsString32({ message: "Communication skills must be a string." }),
|
|
4190
|
-
|
|
4211
|
+
IsNotEmpty49({ message: "Communication skills are required." })
|
|
4191
4212
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4192
4213
|
__decorateClass([
|
|
4193
4214
|
IsString32({ message: "Currency must be a string." }),
|
|
4194
|
-
|
|
4215
|
+
IsNotEmpty49({ message: "Currency is required." })
|
|
4195
4216
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4196
4217
|
__decorateClass([
|
|
4197
4218
|
Type8(() => Number),
|
|
@@ -4233,7 +4254,7 @@ import {
|
|
|
4233
4254
|
IsOptional as IsOptional27,
|
|
4234
4255
|
IsArray as IsArray12,
|
|
4235
4256
|
IsDateString as IsDateString5,
|
|
4236
|
-
IsNotEmpty as
|
|
4257
|
+
IsNotEmpty as IsNotEmpty50,
|
|
4237
4258
|
ArrayNotEmpty as ArrayNotEmpty7,
|
|
4238
4259
|
Min as Min6,
|
|
4239
4260
|
IsNumber as IsNumber6
|
|
@@ -4254,7 +4275,7 @@ var AdminUpdateJobInformationDto = class {
|
|
|
4254
4275
|
};
|
|
4255
4276
|
__decorateClass([
|
|
4256
4277
|
IsString33({ message: "Job role must be a string." }),
|
|
4257
|
-
|
|
4278
|
+
IsNotEmpty50({ message: "Job role is required." })
|
|
4258
4279
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4259
4280
|
__decorateClass([
|
|
4260
4281
|
IsOptional27(),
|
|
@@ -4282,15 +4303,15 @@ __decorateClass([
|
|
|
4282
4303
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4283
4304
|
__decorateClass([
|
|
4284
4305
|
IsString33({ message: "Onboarding Days must be a string." }),
|
|
4285
|
-
|
|
4306
|
+
IsNotEmpty50({ message: "Onboarding Days is required." })
|
|
4286
4307
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4287
4308
|
__decorateClass([
|
|
4288
4309
|
IsString33({ message: "Communication skills must be a string." }),
|
|
4289
|
-
|
|
4310
|
+
IsNotEmpty50({ message: "Communication skills are required." })
|
|
4290
4311
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4291
4312
|
__decorateClass([
|
|
4292
4313
|
IsString33({ message: "Currency must be a string." }),
|
|
4293
|
-
|
|
4314
|
+
IsNotEmpty50({ message: "Currency is required." })
|
|
4294
4315
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4295
4316
|
__decorateClass([
|
|
4296
4317
|
Type9(() => Number),
|
|
@@ -9,14 +9,16 @@ export declare enum ModeOfWorkDto {
|
|
|
9
9
|
BOTH = "BOTH"
|
|
10
10
|
}
|
|
11
11
|
export declare class UpdateFreelancerProfileDto {
|
|
12
|
-
firstName
|
|
13
|
-
lastName
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
firstName: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
designation: string;
|
|
15
|
+
experience: string;
|
|
16
|
+
email: string;
|
|
17
|
+
mobileCode: string;
|
|
18
|
+
mobile: string;
|
|
19
|
+
countryId: number;
|
|
20
|
+
currency: string;
|
|
21
|
+
expectedHourlyCompensation: string;
|
|
20
22
|
natureOfWork: NatureOfWorkDto;
|
|
21
23
|
modeOfWork: ModeOfWorkDto;
|
|
22
24
|
portfolioLink?: string;
|