@experts_hub/shared 1.0.302 → 1.0.303
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/index.js +1 -0
- package/dist/index.mjs +30 -28
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -970,6 +970,7 @@ __decorateClass([
|
|
|
970
970
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
971
971
|
__decorateClass([
|
|
972
972
|
(0, import_class_validator28.IsOptional)(),
|
|
973
|
+
(0, import_class_validator28.ValidateIf)((o) => o.webSite !== ""),
|
|
973
974
|
(0, import_class_validator28.IsUrl)({}, { message: "Invalid website URL format" })
|
|
974
975
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
975
976
|
__decorateClass([
|
package/dist/index.mjs
CHANGED
|
@@ -796,7 +796,8 @@ import {
|
|
|
796
796
|
IsEmail as IsEmail4,
|
|
797
797
|
Length as Length2,
|
|
798
798
|
IsUrl as IsUrl2,
|
|
799
|
-
IsOptional as IsOptional4
|
|
799
|
+
IsOptional as IsOptional4,
|
|
800
|
+
ValidateIf as ValidateIf2
|
|
800
801
|
} from "class-validator";
|
|
801
802
|
var UpdateCompanyProfileDto = class {
|
|
802
803
|
};
|
|
@@ -809,6 +810,7 @@ __decorateClass([
|
|
|
809
810
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
810
811
|
__decorateClass([
|
|
811
812
|
IsOptional4(),
|
|
813
|
+
ValidateIf2((o) => o.webSite !== ""),
|
|
812
814
|
IsUrl2({}, { message: "Invalid website URL format" })
|
|
813
815
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
814
816
|
__decorateClass([
|
|
@@ -925,7 +927,7 @@ import {
|
|
|
925
927
|
IsOptional as IsOptional6,
|
|
926
928
|
IsEnum as IsEnum8,
|
|
927
929
|
Min,
|
|
928
|
-
ValidateIf as
|
|
930
|
+
ValidateIf as ValidateIf3
|
|
929
931
|
} from "class-validator";
|
|
930
932
|
import { Type } from "class-transformer";
|
|
931
933
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
@@ -958,20 +960,20 @@ __decorateClass([
|
|
|
958
960
|
IsString11({ message: "Note must be a string" })
|
|
959
961
|
], JobBasicInformationDto.prototype, "note", 2);
|
|
960
962
|
__decorateClass([
|
|
961
|
-
|
|
963
|
+
ValidateIf3((o) => !o.isDraft),
|
|
962
964
|
IsArray({ message: "Skills must be an array" }),
|
|
963
965
|
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
964
966
|
IsNumber({}, { each: true, message: "Each skill must be a number" }),
|
|
965
967
|
Type(() => Number)
|
|
966
968
|
], JobBasicInformationDto.prototype, "skills", 2);
|
|
967
969
|
__decorateClass([
|
|
968
|
-
|
|
970
|
+
ValidateIf3((o) => !o.isDraft),
|
|
969
971
|
IsNumber({}, { message: "Openings must be a number" }),
|
|
970
972
|
Min(1, { message: "There must be at least 1 opening" }),
|
|
971
973
|
Type(() => Number)
|
|
972
974
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
973
975
|
__decorateClass([
|
|
974
|
-
|
|
976
|
+
ValidateIf3((o) => !o.isDraft),
|
|
975
977
|
IsEnum8(JobLocation, {
|
|
976
978
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
977
979
|
", "
|
|
@@ -979,22 +981,22 @@ __decorateClass([
|
|
|
979
981
|
})
|
|
980
982
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
981
983
|
__decorateClass([
|
|
982
|
-
|
|
984
|
+
ValidateIf3((o) => !o.isDraft),
|
|
983
985
|
IsNumber({}, { message: "Country id must be a number" }),
|
|
984
986
|
Type(() => Number)
|
|
985
987
|
], JobBasicInformationDto.prototype, "countryId", 2);
|
|
986
988
|
__decorateClass([
|
|
987
|
-
|
|
989
|
+
ValidateIf3((o) => !o.isDraft),
|
|
988
990
|
IsNumber({}, { message: "State id must be a number" }),
|
|
989
991
|
Type(() => Number)
|
|
990
992
|
], JobBasicInformationDto.prototype, "stateId", 2);
|
|
991
993
|
__decorateClass([
|
|
992
|
-
|
|
994
|
+
ValidateIf3((o) => !o.isDraft),
|
|
993
995
|
IsNumber({}, { message: "City id must be a number" }),
|
|
994
996
|
Type(() => Number)
|
|
995
997
|
], JobBasicInformationDto.prototype, "cityId", 2);
|
|
996
998
|
__decorateClass([
|
|
997
|
-
|
|
999
|
+
ValidateIf3((o) => !o.isDraft),
|
|
998
1000
|
IsEnum8(EmploymentType, {
|
|
999
1001
|
message: `Type of employment must be one of: ${Object.values(
|
|
1000
1002
|
EmploymentType
|
|
@@ -1002,53 +1004,53 @@ __decorateClass([
|
|
|
1002
1004
|
})
|
|
1003
1005
|
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
1004
1006
|
__decorateClass([
|
|
1005
|
-
|
|
1007
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1006
1008
|
IsString11({ message: "Currency must be a string" })
|
|
1007
1009
|
], JobBasicInformationDto.prototype, "currency", 2);
|
|
1008
1010
|
__decorateClass([
|
|
1009
|
-
|
|
1011
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1010
1012
|
IsNumber({}, { message: "Expected salary (from) must be a number" }),
|
|
1011
1013
|
Min(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1012
1014
|
Type(() => Number)
|
|
1013
1015
|
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1014
1016
|
__decorateClass([
|
|
1015
|
-
|
|
1017
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1016
1018
|
IsNumber({}, { message: "Expected salary (to) must be a number" }),
|
|
1017
1019
|
Min(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1018
1020
|
Type(() => Number)
|
|
1019
1021
|
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1020
1022
|
__decorateClass([
|
|
1021
|
-
|
|
1023
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1022
1024
|
IsNotEmpty27({ message: "Please enter start date" }),
|
|
1023
1025
|
IsString11({ message: "Start date must be valid" })
|
|
1024
1026
|
], JobBasicInformationDto.prototype, "tentativeStartDate", 2);
|
|
1025
1027
|
__decorateClass([
|
|
1026
|
-
|
|
1028
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1027
1029
|
IsNotEmpty27({ message: "Please enter end date" }),
|
|
1028
1030
|
IsString11({ message: "End date must be valid" })
|
|
1029
1031
|
], JobBasicInformationDto.prototype, "tentativeEndDate", 2);
|
|
1030
1032
|
__decorateClass([
|
|
1031
|
-
|
|
1033
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1032
1034
|
IsString11({ message: "Onboarding TAT must be a string" }),
|
|
1033
1035
|
IsOptional6()
|
|
1034
1036
|
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1035
1037
|
__decorateClass([
|
|
1036
|
-
|
|
1038
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1037
1039
|
IsString11({ message: "Candidate communication skills must be a string" }),
|
|
1038
1040
|
IsOptional6()
|
|
1039
1041
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1040
1042
|
__decorateClass([
|
|
1041
|
-
|
|
1043
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1042
1044
|
IsNotEmpty27({ message: "Please enter the academic qualification" }),
|
|
1043
1045
|
IsString11({ message: "Academic qualification must be a string" })
|
|
1044
1046
|
], JobBasicInformationDto.prototype, "academicQualification", 2);
|
|
1045
1047
|
__decorateClass([
|
|
1046
|
-
|
|
1048
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1047
1049
|
IsNotEmpty27({ message: "Please enter the years of experience" }),
|
|
1048
1050
|
IsString11({ message: "Years of experience must be a string" })
|
|
1049
1051
|
], JobBasicInformationDto.prototype, "yearsOfExperience", 2);
|
|
1050
1052
|
__decorateClass([
|
|
1051
|
-
|
|
1053
|
+
ValidateIf3((o) => !o.isDraft),
|
|
1052
1054
|
IsNotEmpty27({ message: "Please enter the business industry" }),
|
|
1053
1055
|
IsString11({ message: "Business industry must be a string" })
|
|
1054
1056
|
], JobBasicInformationDto.prototype, "businessIndustry", 2);
|
|
@@ -1262,7 +1264,7 @@ import {
|
|
|
1262
1264
|
IsEnum as IsEnum11,
|
|
1263
1265
|
IsNotEmpty as IsNotEmpty32,
|
|
1264
1266
|
IsOptional as IsOptional9,
|
|
1265
|
-
ValidateIf as
|
|
1267
|
+
ValidateIf as ValidateIf4
|
|
1266
1268
|
} from "class-validator";
|
|
1267
1269
|
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1268
1270
|
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
@@ -1293,19 +1295,19 @@ __decorateClass([
|
|
|
1293
1295
|
IsNotEmpty32({ message: "Please enter Branch Name." })
|
|
1294
1296
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1295
1297
|
__decorateClass([
|
|
1296
|
-
|
|
1298
|
+
ValidateIf4((dto) => dto.accountScope === "DOMESTIC"),
|
|
1297
1299
|
IsNotEmpty32({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1298
1300
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1299
1301
|
__decorateClass([
|
|
1300
|
-
|
|
1302
|
+
ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1301
1303
|
IsNotEmpty32({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1302
1304
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1303
1305
|
__decorateClass([
|
|
1304
|
-
|
|
1306
|
+
ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1305
1307
|
IsNotEmpty32({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1306
1308
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1307
1309
|
__decorateClass([
|
|
1308
|
-
|
|
1310
|
+
ValidateIf4((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1309
1311
|
IsNotEmpty32({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1310
1312
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1311
1313
|
__decorateClass([
|
|
@@ -4121,7 +4123,7 @@ import {
|
|
|
4121
4123
|
IsNotEmpty as IsNotEmpty42,
|
|
4122
4124
|
MinLength as MinLength11,
|
|
4123
4125
|
Matches as Matches8,
|
|
4124
|
-
ValidateIf as
|
|
4126
|
+
ValidateIf as ValidateIf5
|
|
4125
4127
|
} from "class-validator";
|
|
4126
4128
|
import { Type as Type6 } from "class-transformer";
|
|
4127
4129
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
@@ -4191,7 +4193,7 @@ __decorateClass([
|
|
|
4191
4193
|
Type6(() => Boolean)
|
|
4192
4194
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4193
4195
|
__decorateClass([
|
|
4194
|
-
|
|
4196
|
+
ValidateIf5((o) => o.isImmediateJoiner === false),
|
|
4195
4197
|
IsNotEmpty42({ message: "Please enter availability to join." })
|
|
4196
4198
|
], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4197
4199
|
__decorateClass([
|
|
@@ -4229,7 +4231,7 @@ import {
|
|
|
4229
4231
|
MinLength as MinLength12,
|
|
4230
4232
|
Matches as Matches9,
|
|
4231
4233
|
IsNotEmpty as IsNotEmpty43,
|
|
4232
|
-
ValidateIf as
|
|
4234
|
+
ValidateIf as ValidateIf6
|
|
4233
4235
|
} from "class-validator";
|
|
4234
4236
|
import { Type as Type7 } from "class-transformer";
|
|
4235
4237
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
@@ -4304,7 +4306,7 @@ __decorateClass([
|
|
|
4304
4306
|
Type7(() => Boolean)
|
|
4305
4307
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
4306
4308
|
__decorateClass([
|
|
4307
|
-
|
|
4309
|
+
ValidateIf6((o) => o.isImmediateJoiner === false),
|
|
4308
4310
|
IsNotEmpty43({ message: "Please enter availability to join." })
|
|
4309
4311
|
], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
|
|
4310
4312
|
__decorateClass([
|