@experts_hub/shared 1.0.155 → 1.0.157
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.d.mts
CHANGED
|
@@ -259,8 +259,8 @@ declare class UpdateCompanyProfileDto {
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
declare class ClientChangePasswordDto {
|
|
262
|
-
oldPassword: string;
|
|
263
262
|
newPassword: string;
|
|
263
|
+
confirmPassword: string;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
interface IFetchClientProfileQuery {
|
|
@@ -631,6 +631,7 @@ declare class CompanyProfile extends BaseEntity {
|
|
|
631
631
|
kindOfHiring: KindOfHire;
|
|
632
632
|
modeOfHire: ModeOfHire;
|
|
633
633
|
foundUsOn: FromUsOn;
|
|
634
|
+
foundUsOnDetail: string;
|
|
634
635
|
}
|
|
635
636
|
|
|
636
637
|
declare class Skill extends BaseEntity {
|
package/dist/index.d.ts
CHANGED
|
@@ -259,8 +259,8 @@ declare class UpdateCompanyProfileDto {
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
declare class ClientChangePasswordDto {
|
|
262
|
-
oldPassword: string;
|
|
263
262
|
newPassword: string;
|
|
263
|
+
confirmPassword: string;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
interface IFetchClientProfileQuery {
|
|
@@ -631,6 +631,7 @@ declare class CompanyProfile extends BaseEntity {
|
|
|
631
631
|
kindOfHiring: KindOfHire;
|
|
632
632
|
modeOfHire: ModeOfHire;
|
|
633
633
|
foundUsOn: FromUsOn;
|
|
634
|
+
foundUsOnDetail: string;
|
|
634
635
|
}
|
|
635
636
|
|
|
636
637
|
declare class Skill extends BaseEntity {
|
package/dist/index.js
CHANGED
|
@@ -635,18 +635,16 @@ var import_class_validator19 = require("class-validator");
|
|
|
635
635
|
var ClientChangePasswordDto = class {
|
|
636
636
|
};
|
|
637
637
|
__decorateClass([
|
|
638
|
-
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
639
|
-
(0, import_class_validator19.IsString)()
|
|
640
|
-
], ClientChangePasswordDto.prototype, "oldPassword", 2);
|
|
641
|
-
__decorateClass([
|
|
642
|
-
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
643
638
|
(0, import_class_validator19.IsString)(),
|
|
644
|
-
(0, import_class_validator19.MinLength)(
|
|
645
|
-
(0, import_class_validator19.
|
|
646
|
-
|
|
647
|
-
message: "New Password must include letters, numbers and symbols."
|
|
639
|
+
(0, import_class_validator19.MinLength)(8, { message: "Password must be at least 8 characters long." }),
|
|
640
|
+
(0, import_class_validator19.Matches)(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
641
|
+
message: "Password must contain at least one uppercase letter and one number."
|
|
648
642
|
})
|
|
649
643
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
644
|
+
__decorateClass([
|
|
645
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
646
|
+
Match("newPassword", { message: "Passwords do not match" })
|
|
647
|
+
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
650
648
|
|
|
651
649
|
// src/modules/question/pattern/pattern.ts
|
|
652
650
|
var QUESTION_PATTERN = {
|
|
@@ -1391,6 +1389,9 @@ __decorateClass([
|
|
|
1391
1389
|
nullable: true
|
|
1392
1390
|
})
|
|
1393
1391
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1392
|
+
__decorateClass([
|
|
1393
|
+
(0, import_typeorm6.Column)({ name: "found_us_on_detail", type: "varchar", nullable: true })
|
|
1394
|
+
], CompanyProfile.prototype, "foundUsOnDetail", 2);
|
|
1394
1395
|
CompanyProfile = __decorateClass([
|
|
1395
1396
|
(0, import_typeorm6.Entity)("company_profiles")
|
|
1396
1397
|
], CompanyProfile);
|
package/dist/index.mjs
CHANGED
|
@@ -547,26 +547,23 @@ __decorateClass([
|
|
|
547
547
|
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
548
548
|
import {
|
|
549
549
|
IsString as IsString9,
|
|
550
|
-
IsNotEmpty as IsNotEmpty17,
|
|
551
|
-
MaxLength as MaxLength6,
|
|
552
550
|
MinLength as MinLength6,
|
|
553
|
-
Matches as Matches6
|
|
551
|
+
Matches as Matches6,
|
|
552
|
+
IsNotEmpty as IsNotEmpty17
|
|
554
553
|
} from "class-validator";
|
|
555
554
|
var ClientChangePasswordDto = class {
|
|
556
555
|
};
|
|
557
556
|
__decorateClass([
|
|
558
|
-
IsNotEmpty17({ message: "Please enter Old Password." }),
|
|
559
|
-
IsString9()
|
|
560
|
-
], ClientChangePasswordDto.prototype, "oldPassword", 2);
|
|
561
|
-
__decorateClass([
|
|
562
|
-
IsNotEmpty17({ message: "Please enter New Password." }),
|
|
563
557
|
IsString9(),
|
|
564
|
-
MinLength6(
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
message: "New Password must include letters, numbers and symbols."
|
|
558
|
+
MinLength6(8, { message: "Password must be at least 8 characters long." }),
|
|
559
|
+
Matches6(/^(?=.*[A-Z])(?=.*\d).+$/, {
|
|
560
|
+
message: "Password must contain at least one uppercase letter and one number."
|
|
568
561
|
})
|
|
569
562
|
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
563
|
+
__decorateClass([
|
|
564
|
+
IsNotEmpty17({ message: "Please enter confirm password." }),
|
|
565
|
+
Match("newPassword", { message: "Passwords do not match" })
|
|
566
|
+
], ClientChangePasswordDto.prototype, "confirmPassword", 2);
|
|
570
567
|
|
|
571
568
|
// src/modules/question/pattern/pattern.ts
|
|
572
569
|
var QUESTION_PATTERN = {
|
|
@@ -698,23 +695,23 @@ __decorateClass([
|
|
|
698
695
|
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
699
696
|
|
|
700
697
|
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
701
|
-
import { IsOptional as IsOptional6, IsString as IsString11, MaxLength as
|
|
698
|
+
import { IsOptional as IsOptional6, IsString as IsString11, MaxLength as MaxLength6 } from "class-validator";
|
|
702
699
|
var JobAdditionalCommentDto = class {
|
|
703
700
|
};
|
|
704
701
|
__decorateClass([
|
|
705
702
|
IsOptional6(),
|
|
706
703
|
IsString11({ message: "Additional comment must be a string" }),
|
|
707
|
-
|
|
704
|
+
MaxLength6(500, { message: "Additional comment must not exceed 500 characters" })
|
|
708
705
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
709
706
|
|
|
710
707
|
// src/modules/job/dto/job-description.dto.ts
|
|
711
|
-
import { IsString as IsString12, IsNotEmpty as IsNotEmpty20, MaxLength as
|
|
708
|
+
import { IsString as IsString12, IsNotEmpty as IsNotEmpty20, MaxLength as MaxLength7 } from "class-validator";
|
|
712
709
|
var JobDescriptionDto = class {
|
|
713
710
|
};
|
|
714
711
|
__decorateClass([
|
|
715
712
|
IsNotEmpty20({ message: "Please enter job description" }),
|
|
716
713
|
IsString12({ message: "Description must be a string" }),
|
|
717
|
-
|
|
714
|
+
MaxLength7(5e3, { message: "Description must not exceed 5000 characters" })
|
|
718
715
|
], JobDescriptionDto.prototype, "description", 2);
|
|
719
716
|
|
|
720
717
|
// src/modules/job/dto/job-status.dto.ts
|
|
@@ -758,7 +755,7 @@ var PROFILE_PATTERN = {
|
|
|
758
755
|
import {
|
|
759
756
|
IsString as IsString13,
|
|
760
757
|
IsNotEmpty as IsNotEmpty22,
|
|
761
|
-
MaxLength as
|
|
758
|
+
MaxLength as MaxLength8,
|
|
762
759
|
MinLength as MinLength7,
|
|
763
760
|
Matches as Matches7
|
|
764
761
|
} from "class-validator";
|
|
@@ -772,7 +769,7 @@ __decorateClass([
|
|
|
772
769
|
IsNotEmpty22({ message: "Please enter New Password." }),
|
|
773
770
|
IsString13(),
|
|
774
771
|
MinLength7(6),
|
|
775
|
-
|
|
772
|
+
MaxLength8(32),
|
|
776
773
|
Matches7(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
777
774
|
message: "New Password must include letters, numbers and symbols."
|
|
778
775
|
})
|
|
@@ -1388,6 +1385,9 @@ __decorateClass([
|
|
|
1388
1385
|
nullable: true
|
|
1389
1386
|
})
|
|
1390
1387
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1388
|
+
__decorateClass([
|
|
1389
|
+
Column6({ name: "found_us_on_detail", type: "varchar", nullable: true })
|
|
1390
|
+
], CompanyProfile.prototype, "foundUsOnDetail", 2);
|
|
1391
1391
|
CompanyProfile = __decorateClass([
|
|
1392
1392
|
Entity5("company_profiles")
|
|
1393
1393
|
], CompanyProfile);
|
|
@@ -2443,7 +2443,7 @@ import {
|
|
|
2443
2443
|
IsNotEmpty as IsNotEmpty27,
|
|
2444
2444
|
IsOptional as IsOptional12,
|
|
2445
2445
|
IsString as IsString18,
|
|
2446
|
-
MaxLength as
|
|
2446
|
+
MaxLength as MaxLength10,
|
|
2447
2447
|
ValidateNested
|
|
2448
2448
|
} from "class-validator";
|
|
2449
2449
|
import { Type as Type2 } from "class-transformer";
|
|
@@ -2467,7 +2467,7 @@ __decorateClass([
|
|
|
2467
2467
|
__decorateClass([
|
|
2468
2468
|
IsNotEmpty27(),
|
|
2469
2469
|
IsString18(),
|
|
2470
|
-
|
|
2470
|
+
MaxLength10(500, { message: "Description must not exceed 500 characters" })
|
|
2471
2471
|
], ExperienceDto.prototype, "description", 2);
|
|
2472
2472
|
var FreelancerExperienceDto = class {
|
|
2473
2473
|
};
|
|
@@ -2561,7 +2561,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
2561
2561
|
};
|
|
2562
2562
|
|
|
2563
2563
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
2564
|
-
import { IsArray as IsArray3, ValidateNested as ValidateNested3, IsString as IsString22, IsNotEmpty as IsNotEmpty31, IsOptional as IsOptional16, IsDateString, MaxLength as
|
|
2564
|
+
import { IsArray as IsArray3, ValidateNested as ValidateNested3, IsString as IsString22, IsNotEmpty as IsNotEmpty31, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength12 } from "class-validator";
|
|
2565
2565
|
import { Type as Type4 } from "class-transformer";
|
|
2566
2566
|
var ProjectDto = class {
|
|
2567
2567
|
};
|
|
@@ -2591,7 +2591,7 @@ __decorateClass([
|
|
|
2591
2591
|
__decorateClass([
|
|
2592
2592
|
IsOptional16(),
|
|
2593
2593
|
IsString22(),
|
|
2594
|
-
|
|
2594
|
+
MaxLength12(500, { message: "Description must not exceed 500 characters" })
|
|
2595
2595
|
], ProjectDto.prototype, "description", 2);
|
|
2596
2596
|
var CaseStudyDto = class {
|
|
2597
2597
|
};
|
|
@@ -2609,7 +2609,7 @@ __decorateClass([
|
|
|
2609
2609
|
__decorateClass([
|
|
2610
2610
|
IsOptional16(),
|
|
2611
2611
|
IsString22(),
|
|
2612
|
-
|
|
2612
|
+
MaxLength12(500, { message: "Description must not exceed 500 characters" })
|
|
2613
2613
|
], CaseStudyDto.prototype, "description", 2);
|
|
2614
2614
|
var FreelancerProjectDto = class {
|
|
2615
2615
|
};
|