@experts_hub/shared 1.0.242 → 1.0.244
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-profile.entity.d.ts +2 -0
- package/dist/index.d.mts +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.js +36 -18
- package/dist/index.mjs +132 -107
- package/dist/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.d.ts +10 -8
- package/package.json +1 -1
|
@@ -61,6 +61,8 @@ export declare class FreelancerProfile extends BaseEntity {
|
|
|
61
61
|
stackOverflowProfileLink: string;
|
|
62
62
|
portfolioLink: string;
|
|
63
63
|
onboardingStepCompleted: OnboardingStepEnum;
|
|
64
|
+
designation: string;
|
|
65
|
+
experience: string;
|
|
64
66
|
address: string;
|
|
65
67
|
about: string;
|
|
66
68
|
profileCompletedPercentage: Record<string, 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;
|
|
@@ -712,6 +714,8 @@ declare class FreelancerProfile extends BaseEntity {
|
|
|
712
714
|
stackOverflowProfileLink: string;
|
|
713
715
|
portfolioLink: string;
|
|
714
716
|
onboardingStepCompleted: OnboardingStepEnum;
|
|
717
|
+
designation: string;
|
|
718
|
+
experience: string;
|
|
715
719
|
address: string;
|
|
716
720
|
about: string;
|
|
717
721
|
profileCompletedPercentage: Record<string, 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;
|
|
@@ -712,6 +714,8 @@ declare class FreelancerProfile extends BaseEntity {
|
|
|
712
714
|
stackOverflowProfileLink: string;
|
|
713
715
|
portfolioLink: string;
|
|
714
716
|
onboardingStepCompleted: OnboardingStepEnum;
|
|
717
|
+
designation: string;
|
|
718
|
+
experience: string;
|
|
715
719
|
address: string;
|
|
716
720
|
about: string;
|
|
717
721
|
profileCompletedPercentage: Record<string, 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([
|
|
@@ -1746,6 +1758,12 @@ __decorateClass([
|
|
|
1746
1758
|
nullable: true
|
|
1747
1759
|
})
|
|
1748
1760
|
], FreelancerProfile.prototype, "onboardingStepCompleted", 2);
|
|
1761
|
+
__decorateClass([
|
|
1762
|
+
(0, import_typeorm8.Column)({ name: "designation", type: "varchar", nullable: true })
|
|
1763
|
+
], FreelancerProfile.prototype, "designation", 2);
|
|
1764
|
+
__decorateClass([
|
|
1765
|
+
(0, import_typeorm8.Column)({ name: "experience", type: "varchar", nullable: true })
|
|
1766
|
+
], FreelancerProfile.prototype, "experience", 2);
|
|
1749
1767
|
__decorateClass([
|
|
1750
1768
|
(0, import_typeorm8.Column)({ name: "address", type: "varchar", nullable: true })
|
|
1751
1769
|
], FreelancerProfile.prototype, "address", 2);
|
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,
|
|
@@ -1692,6 +1711,12 @@ __decorateClass([
|
|
|
1692
1711
|
nullable: true
|
|
1693
1712
|
})
|
|
1694
1713
|
], FreelancerProfile.prototype, "onboardingStepCompleted", 2);
|
|
1714
|
+
__decorateClass([
|
|
1715
|
+
Column8({ name: "designation", type: "varchar", nullable: true })
|
|
1716
|
+
], FreelancerProfile.prototype, "designation", 2);
|
|
1717
|
+
__decorateClass([
|
|
1718
|
+
Column8({ name: "experience", type: "varchar", nullable: true })
|
|
1719
|
+
], FreelancerProfile.prototype, "experience", 2);
|
|
1695
1720
|
__decorateClass([
|
|
1696
1721
|
Column8({ name: "address", type: "varchar", nullable: true })
|
|
1697
1722
|
], FreelancerProfile.prototype, "address", 2);
|
|
@@ -3287,7 +3312,7 @@ var CreateRatingDto = class {
|
|
|
3287
3312
|
};
|
|
3288
3313
|
__decorateClass([
|
|
3289
3314
|
IsInt({ message: "Reviewee ID must be a valid integer" }),
|
|
3290
|
-
|
|
3315
|
+
IsNotEmpty32({ message: "Reviewee ID is required" })
|
|
3291
3316
|
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
3292
3317
|
__decorateClass([
|
|
3293
3318
|
IsEnum12(RatingTypeEnum, {
|
|
@@ -3317,17 +3342,17 @@ var COMPANY_ROLES_PATTERNS = {
|
|
|
3317
3342
|
};
|
|
3318
3343
|
|
|
3319
3344
|
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
3320
|
-
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean6, IsInt as IsInt2, IsNotEmpty as
|
|
3345
|
+
import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean6, IsInt as IsInt2, IsNotEmpty as IsNotEmpty33, IsOptional as IsOptional11 } from "class-validator";
|
|
3321
3346
|
var CreateCompanyRoleDto = class {
|
|
3322
3347
|
};
|
|
3323
3348
|
__decorateClass([
|
|
3324
|
-
|
|
3349
|
+
IsNotEmpty33({ message: "Please enter company role name." })
|
|
3325
3350
|
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
3326
3351
|
__decorateClass([
|
|
3327
|
-
|
|
3352
|
+
IsNotEmpty33({ message: "Please enter company role slug" })
|
|
3328
3353
|
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
3329
3354
|
__decorateClass([
|
|
3330
|
-
|
|
3355
|
+
IsNotEmpty33({ message: "Please enter description" })
|
|
3331
3356
|
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
3332
3357
|
__decorateClass([
|
|
3333
3358
|
IsArray2({ message: "Permission IDs must be an array." }),
|
|
@@ -3340,17 +3365,17 @@ __decorateClass([
|
|
|
3340
3365
|
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
3341
3366
|
|
|
3342
3367
|
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
3343
|
-
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean7, IsInt as IsInt3, IsNotEmpty as
|
|
3368
|
+
import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean7, IsInt as IsInt3, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional12 } from "class-validator";
|
|
3344
3369
|
var UpdateCompanyRoleDto = class {
|
|
3345
3370
|
};
|
|
3346
3371
|
__decorateClass([
|
|
3347
|
-
|
|
3372
|
+
IsNotEmpty34({ message: "Please enter company name." })
|
|
3348
3373
|
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
3349
3374
|
__decorateClass([
|
|
3350
|
-
|
|
3375
|
+
IsNotEmpty34({ message: "Please enter slug" })
|
|
3351
3376
|
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
3352
3377
|
__decorateClass([
|
|
3353
|
-
|
|
3378
|
+
IsNotEmpty34({ message: "Please enter description" })
|
|
3354
3379
|
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
3355
3380
|
__decorateClass([
|
|
3356
3381
|
IsArray3({ message: "Permission IDs must be an array." }),
|
|
@@ -3379,7 +3404,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
3379
3404
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
3380
3405
|
import {
|
|
3381
3406
|
ArrayMinSize,
|
|
3382
|
-
IsNotEmpty as
|
|
3407
|
+
IsNotEmpty as IsNotEmpty35,
|
|
3383
3408
|
IsOptional as IsOptional13,
|
|
3384
3409
|
IsString as IsString20,
|
|
3385
3410
|
MaxLength as MaxLength10,
|
|
@@ -3392,19 +3417,19 @@ __decorateClass([
|
|
|
3392
3417
|
IsOptional13()
|
|
3393
3418
|
], ExperienceDto.prototype, "uuid", 2);
|
|
3394
3419
|
__decorateClass([
|
|
3395
|
-
|
|
3420
|
+
IsNotEmpty35(),
|
|
3396
3421
|
IsString20()
|
|
3397
3422
|
], ExperienceDto.prototype, "companyName", 2);
|
|
3398
3423
|
__decorateClass([
|
|
3399
|
-
|
|
3424
|
+
IsNotEmpty35(),
|
|
3400
3425
|
IsString20()
|
|
3401
3426
|
], ExperienceDto.prototype, "designation", 2);
|
|
3402
3427
|
__decorateClass([
|
|
3403
|
-
|
|
3428
|
+
IsNotEmpty35(),
|
|
3404
3429
|
IsString20()
|
|
3405
3430
|
], ExperienceDto.prototype, "jobDuration", 2);
|
|
3406
3431
|
__decorateClass([
|
|
3407
|
-
|
|
3432
|
+
IsNotEmpty35(),
|
|
3408
3433
|
IsString20(),
|
|
3409
3434
|
MaxLength10(500, { message: "Description must not exceed 500 characters" })
|
|
3410
3435
|
], ExperienceDto.prototype, "description", 2);
|
|
@@ -3429,14 +3454,14 @@ var COMPANY_MEMBERS_PATTERNS = {
|
|
|
3429
3454
|
};
|
|
3430
3455
|
|
|
3431
3456
|
// src/modules/company-member/dto/create-company-member.dto.ts
|
|
3432
|
-
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as
|
|
3457
|
+
import { ArrayNotEmpty as ArrayNotEmpty4, IsArray as IsArray4, IsInt as IsInt4, IsNotEmpty as IsNotEmpty36 } from "class-validator";
|
|
3433
3458
|
var CreateCompanyMemberDto = class {
|
|
3434
3459
|
};
|
|
3435
3460
|
__decorateClass([
|
|
3436
|
-
|
|
3461
|
+
IsNotEmpty36({ message: "Please enter name." })
|
|
3437
3462
|
], CreateCompanyMemberDto.prototype, "name", 2);
|
|
3438
3463
|
__decorateClass([
|
|
3439
|
-
|
|
3464
|
+
IsNotEmpty36({ message: "Please enter email" })
|
|
3440
3465
|
], CreateCompanyMemberDto.prototype, "email", 2);
|
|
3441
3466
|
__decorateClass([
|
|
3442
3467
|
IsArray4({ message: "Role IDs must be an array." }),
|
|
@@ -3445,14 +3470,14 @@ __decorateClass([
|
|
|
3445
3470
|
], CreateCompanyMemberDto.prototype, "roleIds", 2);
|
|
3446
3471
|
|
|
3447
3472
|
// src/modules/company-member/dto/update-company-member.dto.ts
|
|
3448
|
-
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as
|
|
3473
|
+
import { ArrayNotEmpty as ArrayNotEmpty5, IsArray as IsArray5, IsInt as IsInt5, IsNotEmpty as IsNotEmpty37 } from "class-validator";
|
|
3449
3474
|
var UpdateCompanyMemberDto = class {
|
|
3450
3475
|
};
|
|
3451
3476
|
__decorateClass([
|
|
3452
|
-
|
|
3477
|
+
IsNotEmpty37({ message: "Please enter name." })
|
|
3453
3478
|
], UpdateCompanyMemberDto.prototype, "name", 2);
|
|
3454
3479
|
__decorateClass([
|
|
3455
|
-
|
|
3480
|
+
IsNotEmpty37({ message: "Please enter email" })
|
|
3456
3481
|
], UpdateCompanyMemberDto.prototype, "email", 2);
|
|
3457
3482
|
__decorateClass([
|
|
3458
3483
|
IsArray5({ message: "Role IDs must be an array." }),
|
|
@@ -3475,7 +3500,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
3475
3500
|
};
|
|
3476
3501
|
|
|
3477
3502
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
3478
|
-
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as
|
|
3503
|
+
import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString23, IsNotEmpty as IsNotEmpty38, IsOptional as IsOptional16, ArrayMinSize as ArrayMinSize2 } from "class-validator";
|
|
3479
3504
|
import { Type as Type3 } from "class-transformer";
|
|
3480
3505
|
var EducationDto = class {
|
|
3481
3506
|
};
|
|
@@ -3484,15 +3509,15 @@ __decorateClass([
|
|
|
3484
3509
|
], EducationDto.prototype, "uuid", 2);
|
|
3485
3510
|
__decorateClass([
|
|
3486
3511
|
IsString23(),
|
|
3487
|
-
|
|
3512
|
+
IsNotEmpty38({ message: "Please Enter Degree " })
|
|
3488
3513
|
], EducationDto.prototype, "degree", 2);
|
|
3489
3514
|
__decorateClass([
|
|
3490
3515
|
IsString23(),
|
|
3491
|
-
|
|
3516
|
+
IsNotEmpty38({ message: "Please Enter University " })
|
|
3492
3517
|
], EducationDto.prototype, "university", 2);
|
|
3493
3518
|
__decorateClass([
|
|
3494
3519
|
IsString23(),
|
|
3495
|
-
|
|
3520
|
+
IsNotEmpty38({ message: "Please Enter Year of Graduation " })
|
|
3496
3521
|
], EducationDto.prototype, "yearOfGraduation", 2);
|
|
3497
3522
|
var FreelancerEducationDto = class {
|
|
3498
3523
|
};
|
|
@@ -3510,7 +3535,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
3510
3535
|
};
|
|
3511
3536
|
|
|
3512
3537
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
3513
|
-
import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString24, IsNotEmpty as
|
|
3538
|
+
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";
|
|
3514
3539
|
import { Type as Type4 } from "class-transformer";
|
|
3515
3540
|
var ProjectDto = class {
|
|
3516
3541
|
};
|
|
@@ -3519,15 +3544,15 @@ __decorateClass([
|
|
|
3519
3544
|
], ProjectDto.prototype, "uuid", 2);
|
|
3520
3545
|
__decorateClass([
|
|
3521
3546
|
IsString24(),
|
|
3522
|
-
|
|
3547
|
+
IsNotEmpty39({ message: "Please Enter Project Name " })
|
|
3523
3548
|
], ProjectDto.prototype, "projectName", 2);
|
|
3524
3549
|
__decorateClass([
|
|
3525
3550
|
IsDateString(),
|
|
3526
|
-
|
|
3551
|
+
IsNotEmpty39({ message: "Please Enter Start Date " })
|
|
3527
3552
|
], ProjectDto.prototype, "startDate", 2);
|
|
3528
3553
|
__decorateClass([
|
|
3529
3554
|
IsDateString(),
|
|
3530
|
-
|
|
3555
|
+
IsNotEmpty39({ message: "Please Enter End Date " })
|
|
3531
3556
|
], ProjectDto.prototype, "endDate", 2);
|
|
3532
3557
|
__decorateClass([
|
|
3533
3558
|
IsOptional17(),
|
|
@@ -3549,11 +3574,11 @@ __decorateClass([
|
|
|
3549
3574
|
], CaseStudyDto.prototype, "uuid", 2);
|
|
3550
3575
|
__decorateClass([
|
|
3551
3576
|
IsString24(),
|
|
3552
|
-
|
|
3577
|
+
IsNotEmpty39({ message: "Please Enter Project Name " })
|
|
3553
3578
|
], CaseStudyDto.prototype, "projectName", 2);
|
|
3554
3579
|
__decorateClass([
|
|
3555
3580
|
IsString24(),
|
|
3556
|
-
|
|
3581
|
+
IsNotEmpty39({ message: "Please Enter Case Study Link " })
|
|
3557
3582
|
], CaseStudyDto.prototype, "caseStudyLink", 2);
|
|
3558
3583
|
__decorateClass([
|
|
3559
3584
|
IsOptional17(),
|
|
@@ -3637,7 +3662,7 @@ import {
|
|
|
3637
3662
|
IsUrl as IsUrl3,
|
|
3638
3663
|
Min as Min3,
|
|
3639
3664
|
MaxLength as MaxLength14,
|
|
3640
|
-
IsNotEmpty as
|
|
3665
|
+
IsNotEmpty as IsNotEmpty41,
|
|
3641
3666
|
MinLength as MinLength12,
|
|
3642
3667
|
Matches as Matches8,
|
|
3643
3668
|
ValidateIf as ValidateIf3
|
|
@@ -3671,7 +3696,7 @@ __decorateClass([
|
|
|
3671
3696
|
IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
|
|
3672
3697
|
], CreateFreelancerDto.prototype, "mobile", 2);
|
|
3673
3698
|
__decorateClass([
|
|
3674
|
-
|
|
3699
|
+
IsNotEmpty41({ message: "Please enter password." }),
|
|
3675
3700
|
MinLength12(6),
|
|
3676
3701
|
MaxLength14(32),
|
|
3677
3702
|
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -3679,7 +3704,7 @@ __decorateClass([
|
|
|
3679
3704
|
})
|
|
3680
3705
|
], CreateFreelancerDto.prototype, "password", 2);
|
|
3681
3706
|
__decorateClass([
|
|
3682
|
-
|
|
3707
|
+
IsNotEmpty41({ message: "Please enter confirm password." }),
|
|
3683
3708
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3684
3709
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
3685
3710
|
__decorateClass([
|
|
@@ -3711,7 +3736,7 @@ __decorateClass([
|
|
|
3711
3736
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3712
3737
|
__decorateClass([
|
|
3713
3738
|
ValidateIf3((o) => o.isImmediateJoiner === false),
|
|
3714
|
-
|
|
3739
|
+
IsNotEmpty41({ message: "Please enter availability to join." })
|
|
3715
3740
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3716
3741
|
__decorateClass([
|
|
3717
3742
|
IsOptional19(),
|
|
@@ -3747,7 +3772,7 @@ import {
|
|
|
3747
3772
|
MaxLength as MaxLength15,
|
|
3748
3773
|
MinLength as MinLength13,
|
|
3749
3774
|
Matches as Matches9,
|
|
3750
|
-
IsNotEmpty as
|
|
3775
|
+
IsNotEmpty as IsNotEmpty42,
|
|
3751
3776
|
ValidateIf as ValidateIf4
|
|
3752
3777
|
} from "class-validator";
|
|
3753
3778
|
import { Type as Type7 } from "class-transformer";
|
|
@@ -3824,7 +3849,7 @@ __decorateClass([
|
|
|
3824
3849
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
3825
3850
|
__decorateClass([
|
|
3826
3851
|
ValidateIf4((o) => o.isImmediateJoiner === false),
|
|
3827
|
-
|
|
3852
|
+
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
3828
3853
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
3829
3854
|
__decorateClass([
|
|
3830
3855
|
IsOptional20(),
|
|
@@ -3862,7 +3887,7 @@ var CLIENT_ADMIN_PATTERNS = {
|
|
|
3862
3887
|
|
|
3863
3888
|
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3864
3889
|
import {
|
|
3865
|
-
IsNotEmpty as
|
|
3890
|
+
IsNotEmpty as IsNotEmpty43,
|
|
3866
3891
|
IsEmail as IsEmail13,
|
|
3867
3892
|
IsOptional as IsOptional21,
|
|
3868
3893
|
IsString as IsString28,
|
|
@@ -3887,19 +3912,19 @@ var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2)
|
|
|
3887
3912
|
var CreateClientDto = class {
|
|
3888
3913
|
};
|
|
3889
3914
|
__decorateClass([
|
|
3890
|
-
|
|
3915
|
+
IsNotEmpty43({ message: "Please enter first name." }),
|
|
3891
3916
|
IsString28()
|
|
3892
3917
|
], CreateClientDto.prototype, "firstName", 2);
|
|
3893
3918
|
__decorateClass([
|
|
3894
|
-
|
|
3919
|
+
IsNotEmpty43({ message: "Please enter last name." }),
|
|
3895
3920
|
IsString28()
|
|
3896
3921
|
], CreateClientDto.prototype, "lastName", 2);
|
|
3897
3922
|
__decorateClass([
|
|
3898
|
-
|
|
3923
|
+
IsNotEmpty43({ message: "Please enter email." }),
|
|
3899
3924
|
IsEmail13()
|
|
3900
3925
|
], CreateClientDto.prototype, "email", 2);
|
|
3901
3926
|
__decorateClass([
|
|
3902
|
-
|
|
3927
|
+
IsNotEmpty43({ message: "Please enter password." }),
|
|
3903
3928
|
MinLength14(6),
|
|
3904
3929
|
MaxLength16(32),
|
|
3905
3930
|
Matches10(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -3907,31 +3932,31 @@ __decorateClass([
|
|
|
3907
3932
|
})
|
|
3908
3933
|
], CreateClientDto.prototype, "password", 2);
|
|
3909
3934
|
__decorateClass([
|
|
3910
|
-
|
|
3935
|
+
IsNotEmpty43({ message: "Please enter confirm password." }),
|
|
3911
3936
|
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3912
3937
|
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3913
3938
|
__decorateClass([
|
|
3914
|
-
|
|
3939
|
+
IsNotEmpty43({ message: "Please enter company name." }),
|
|
3915
3940
|
IsString28()
|
|
3916
3941
|
], CreateClientDto.prototype, "companyName", 2);
|
|
3917
3942
|
__decorateClass([
|
|
3918
3943
|
IsArray9({ message: "Skills should be an array." }),
|
|
3919
|
-
|
|
3944
|
+
IsNotEmpty43({ message: "Please enter skills." })
|
|
3920
3945
|
], CreateClientDto.prototype, "skills", 2);
|
|
3921
3946
|
__decorateClass([
|
|
3922
|
-
|
|
3947
|
+
IsNotEmpty43({ message: "Please specify required freelancer count." }),
|
|
3923
3948
|
IsString28()
|
|
3924
3949
|
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3925
3950
|
__decorateClass([
|
|
3926
|
-
|
|
3951
|
+
IsNotEmpty43({ message: "Please specify the kind of hiring." }),
|
|
3927
3952
|
IsEnum15(CreateClientHiringTypeEnum)
|
|
3928
3953
|
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
3929
3954
|
__decorateClass([
|
|
3930
|
-
|
|
3955
|
+
IsNotEmpty43({ message: "Please specify the mode of hire." }),
|
|
3931
3956
|
IsEnum15(CreateClientHiringModeEnum)
|
|
3932
3957
|
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
3933
3958
|
__decorateClass([
|
|
3934
|
-
|
|
3959
|
+
IsNotEmpty43({ message: "Please let us know how you found us." }),
|
|
3935
3960
|
IsString28()
|
|
3936
3961
|
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3937
3962
|
__decorateClass([
|
|
@@ -3940,17 +3965,17 @@ __decorateClass([
|
|
|
3940
3965
|
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3941
3966
|
|
|
3942
3967
|
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
3943
|
-
import { IsString as IsString29, IsNotEmpty as
|
|
3968
|
+
import { IsString as IsString29, IsNotEmpty as IsNotEmpty44 } from "class-validator";
|
|
3944
3969
|
var UpdateClientAccountStatusDto = class {
|
|
3945
3970
|
};
|
|
3946
3971
|
__decorateClass([
|
|
3947
|
-
|
|
3972
|
+
IsNotEmpty44({ message: "Please enter account status." }),
|
|
3948
3973
|
IsString29()
|
|
3949
3974
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
3950
3975
|
|
|
3951
3976
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
3952
3977
|
import {
|
|
3953
|
-
IsNotEmpty as
|
|
3978
|
+
IsNotEmpty as IsNotEmpty45,
|
|
3954
3979
|
IsEmail as IsEmail14,
|
|
3955
3980
|
IsOptional as IsOptional22,
|
|
3956
3981
|
IsString as IsString30,
|
|
@@ -3975,15 +4000,15 @@ var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2)
|
|
|
3975
4000
|
var UpdateClientDto = class {
|
|
3976
4001
|
};
|
|
3977
4002
|
__decorateClass([
|
|
3978
|
-
|
|
4003
|
+
IsNotEmpty45({ message: "Please enter first name." }),
|
|
3979
4004
|
IsString30()
|
|
3980
4005
|
], UpdateClientDto.prototype, "firstName", 2);
|
|
3981
4006
|
__decorateClass([
|
|
3982
|
-
|
|
4007
|
+
IsNotEmpty45({ message: "Please enter last name." }),
|
|
3983
4008
|
IsString30()
|
|
3984
4009
|
], UpdateClientDto.prototype, "lastName", 2);
|
|
3985
4010
|
__decorateClass([
|
|
3986
|
-
|
|
4011
|
+
IsNotEmpty45({ message: "Please enter email." }),
|
|
3987
4012
|
IsEmail14()
|
|
3988
4013
|
], UpdateClientDto.prototype, "email", 2);
|
|
3989
4014
|
__decorateClass([
|
|
@@ -3995,27 +4020,27 @@ __decorateClass([
|
|
|
3995
4020
|
})
|
|
3996
4021
|
], UpdateClientDto.prototype, "password", 2);
|
|
3997
4022
|
__decorateClass([
|
|
3998
|
-
|
|
4023
|
+
IsNotEmpty45({ message: "Please enter company name." }),
|
|
3999
4024
|
IsString30()
|
|
4000
4025
|
], UpdateClientDto.prototype, "companyName", 2);
|
|
4001
4026
|
__decorateClass([
|
|
4002
4027
|
IsArray10({ message: "Skills should be an array." }),
|
|
4003
|
-
|
|
4028
|
+
IsNotEmpty45({ message: "Please enter skills." })
|
|
4004
4029
|
], UpdateClientDto.prototype, "skills", 2);
|
|
4005
4030
|
__decorateClass([
|
|
4006
|
-
|
|
4031
|
+
IsNotEmpty45({ message: "Please specify required freelancer count." }),
|
|
4007
4032
|
IsString30()
|
|
4008
4033
|
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
4009
4034
|
__decorateClass([
|
|
4010
|
-
|
|
4035
|
+
IsNotEmpty45({ message: "Please specify the kind of hiring." }),
|
|
4011
4036
|
IsEnum16(UpdateClientHiringTypeEnum)
|
|
4012
4037
|
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
4013
4038
|
__decorateClass([
|
|
4014
|
-
|
|
4039
|
+
IsNotEmpty45({ message: "Please specify the mode of hire." }),
|
|
4015
4040
|
IsEnum16(UpdateClientHiringModeEnum)
|
|
4016
4041
|
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
4017
4042
|
__decorateClass([
|
|
4018
|
-
|
|
4043
|
+
IsNotEmpty45({ message: "Please let us know how you found us." }),
|
|
4019
4044
|
IsString30()
|
|
4020
4045
|
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
4021
4046
|
__decorateClass([
|
|
@@ -4030,7 +4055,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
4030
4055
|
};
|
|
4031
4056
|
|
|
4032
4057
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
4033
|
-
import { IsOptional as IsOptional23, IsEnum as IsEnum17, IsString as IsString31, IsNotEmpty as
|
|
4058
|
+
import { IsOptional as IsOptional23, IsEnum as IsEnum17, IsString as IsString31, IsNotEmpty as IsNotEmpty46, IsIn as IsIn3 } from "class-validator";
|
|
4034
4059
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
4035
4060
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
4036
4061
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -4048,7 +4073,7 @@ __decorateClass([
|
|
|
4048
4073
|
IsEnum17(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
4049
4074
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
4050
4075
|
__decorateClass([
|
|
4051
|
-
|
|
4076
|
+
IsNotEmpty46({ message: "Please accept the declaration " }),
|
|
4052
4077
|
IsString31(),
|
|
4053
4078
|
IsIn3([
|
|
4054
4079
|
"true"
|
|
@@ -4065,11 +4090,11 @@ var CMS_PATTERNS = {
|
|
|
4065
4090
|
};
|
|
4066
4091
|
|
|
4067
4092
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
4068
|
-
import { IsBoolean as IsBoolean14, IsNotEmpty as
|
|
4093
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty47, IsOptional as IsOptional24 } from "class-validator";
|
|
4069
4094
|
var CreateCmsDto = class {
|
|
4070
4095
|
};
|
|
4071
4096
|
__decorateClass([
|
|
4072
|
-
|
|
4097
|
+
IsNotEmpty47({ message: "Please enter name." })
|
|
4073
4098
|
], CreateCmsDto.prototype, "title", 2);
|
|
4074
4099
|
__decorateClass([
|
|
4075
4100
|
IsOptional24()
|
|
@@ -4080,14 +4105,14 @@ __decorateClass([
|
|
|
4080
4105
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
4081
4106
|
|
|
4082
4107
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
4083
|
-
import { IsBoolean as IsBoolean15, IsNotEmpty as
|
|
4108
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional25 } from "class-validator";
|
|
4084
4109
|
var UpdateCmsDto = class {
|
|
4085
4110
|
};
|
|
4086
4111
|
__decorateClass([
|
|
4087
4112
|
IsOptional25()
|
|
4088
4113
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
4089
4114
|
__decorateClass([
|
|
4090
|
-
|
|
4115
|
+
IsNotEmpty48({ message: "Please enter name." })
|
|
4091
4116
|
], UpdateCmsDto.prototype, "title", 2);
|
|
4092
4117
|
__decorateClass([
|
|
4093
4118
|
IsOptional25()
|
|
@@ -4128,7 +4153,7 @@ import {
|
|
|
4128
4153
|
IsOptional as IsOptional26,
|
|
4129
4154
|
IsArray as IsArray11,
|
|
4130
4155
|
IsDateString as IsDateString4,
|
|
4131
|
-
IsNotEmpty as
|
|
4156
|
+
IsNotEmpty as IsNotEmpty49,
|
|
4132
4157
|
ArrayNotEmpty as ArrayNotEmpty6,
|
|
4133
4158
|
Min as Min5,
|
|
4134
4159
|
IsNumber as IsNumber5
|
|
@@ -4149,7 +4174,7 @@ var AdminCreateJobInformationDto = class {
|
|
|
4149
4174
|
};
|
|
4150
4175
|
__decorateClass([
|
|
4151
4176
|
IsString32({ message: "Job role must be a string." }),
|
|
4152
|
-
|
|
4177
|
+
IsNotEmpty49({ message: "Job role is required." })
|
|
4153
4178
|
], AdminCreateJobInformationDto.prototype, "jobRole", 2);
|
|
4154
4179
|
__decorateClass([
|
|
4155
4180
|
IsOptional26(),
|
|
@@ -4177,15 +4202,15 @@ __decorateClass([
|
|
|
4177
4202
|
], AdminCreateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4178
4203
|
__decorateClass([
|
|
4179
4204
|
IsString32({ message: "Onboarding Days must be a string." }),
|
|
4180
|
-
|
|
4205
|
+
IsNotEmpty49({ message: "Onboarding Days is required." })
|
|
4181
4206
|
], AdminCreateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4182
4207
|
__decorateClass([
|
|
4183
4208
|
IsString32({ message: "Communication skills must be a string." }),
|
|
4184
|
-
|
|
4209
|
+
IsNotEmpty49({ message: "Communication skills are required." })
|
|
4185
4210
|
], AdminCreateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4186
4211
|
__decorateClass([
|
|
4187
4212
|
IsString32({ message: "Currency must be a string." }),
|
|
4188
|
-
|
|
4213
|
+
IsNotEmpty49({ message: "Currency is required." })
|
|
4189
4214
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
4190
4215
|
__decorateClass([
|
|
4191
4216
|
Type8(() => Number),
|
|
@@ -4227,7 +4252,7 @@ import {
|
|
|
4227
4252
|
IsOptional as IsOptional27,
|
|
4228
4253
|
IsArray as IsArray12,
|
|
4229
4254
|
IsDateString as IsDateString5,
|
|
4230
|
-
IsNotEmpty as
|
|
4255
|
+
IsNotEmpty as IsNotEmpty50,
|
|
4231
4256
|
ArrayNotEmpty as ArrayNotEmpty7,
|
|
4232
4257
|
Min as Min6,
|
|
4233
4258
|
IsNumber as IsNumber6
|
|
@@ -4248,7 +4273,7 @@ var AdminUpdateJobInformationDto = class {
|
|
|
4248
4273
|
};
|
|
4249
4274
|
__decorateClass([
|
|
4250
4275
|
IsString33({ message: "Job role must be a string." }),
|
|
4251
|
-
|
|
4276
|
+
IsNotEmpty50({ message: "Job role is required." })
|
|
4252
4277
|
], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
|
|
4253
4278
|
__decorateClass([
|
|
4254
4279
|
IsOptional27(),
|
|
@@ -4276,15 +4301,15 @@ __decorateClass([
|
|
|
4276
4301
|
], AdminUpdateJobInformationDto.prototype, "typeOfEmployment", 2);
|
|
4277
4302
|
__decorateClass([
|
|
4278
4303
|
IsString33({ message: "Onboarding Days must be a string." }),
|
|
4279
|
-
|
|
4304
|
+
IsNotEmpty50({ message: "Onboarding Days is required." })
|
|
4280
4305
|
], AdminUpdateJobInformationDto.prototype, "onboardingTat", 2);
|
|
4281
4306
|
__decorateClass([
|
|
4282
4307
|
IsString33({ message: "Communication skills must be a string." }),
|
|
4283
|
-
|
|
4308
|
+
IsNotEmpty50({ message: "Communication skills are required." })
|
|
4284
4309
|
], AdminUpdateJobInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
4285
4310
|
__decorateClass([
|
|
4286
4311
|
IsString33({ message: "Currency must be a string." }),
|
|
4287
|
-
|
|
4312
|
+
IsNotEmpty50({ message: "Currency is required." })
|
|
4288
4313
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
4289
4314
|
__decorateClass([
|
|
4290
4315
|
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;
|