@experts_hub/shared 1.0.113 → 1.0.115
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 +33 -1
- package/dist/index.d.ts +33 -1
- package/dist/index.js +35 -1
- package/dist/index.mjs +41 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/job/pattern/pattern.d.ts +1 -0
- package/dist/modules/rating/dto/add.rating.dto.d.ts +7 -0
- package/dist/modules/rating/dto/index.d.ts +1 -0
- package/dist/modules/rating/index.d.ts +3 -0
- package/dist/modules/rating/pattern/pattern.d.ts +4 -0
- package/dist/modules/rating/rating.interface.d.ts +18 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -637,6 +637,7 @@ declare const JOB_PATTERN: {
|
|
|
637
637
|
fetchJobDescription: string;
|
|
638
638
|
updateJobDescription: string;
|
|
639
639
|
updateJobStatus: string;
|
|
640
|
+
searchJobsByRoleAndSkills: string;
|
|
640
641
|
};
|
|
641
642
|
|
|
642
643
|
declare enum JobLocation {
|
|
@@ -753,6 +754,37 @@ declare const NOTIFICATION_PATTERN: {
|
|
|
753
754
|
handleResetLinkNotification: string;
|
|
754
755
|
};
|
|
755
756
|
|
|
757
|
+
declare const RATING_PATTERN: {
|
|
758
|
+
addRating: string;
|
|
759
|
+
fetchRating: string;
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
declare class CreateRatingDto {
|
|
763
|
+
revieweeId: number;
|
|
764
|
+
ratingType: RatingTypeEnum;
|
|
765
|
+
rating: number;
|
|
766
|
+
review?: string;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
interface IAddRatingPayload {
|
|
770
|
+
reviewer_id: number;
|
|
771
|
+
reviewee_id: number;
|
|
772
|
+
ratingType: string;
|
|
773
|
+
rating: number;
|
|
774
|
+
review: string;
|
|
775
|
+
}
|
|
776
|
+
interface ICreateRatingResponse {
|
|
777
|
+
statusCode: number;
|
|
778
|
+
status: boolean;
|
|
779
|
+
message: string;
|
|
780
|
+
}
|
|
781
|
+
interface IFetchRatingResponse {
|
|
782
|
+
statusCode: number;
|
|
783
|
+
status: boolean;
|
|
784
|
+
message: string;
|
|
785
|
+
data: any;
|
|
786
|
+
}
|
|
787
|
+
|
|
756
788
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
757
789
|
|
|
758
790
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -803,4 +835,4 @@ declare class Plan extends BaseEntity {
|
|
|
803
835
|
features: Feature[];
|
|
804
836
|
}
|
|
805
837
|
|
|
806
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
838
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToSubAdminResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -637,6 +637,7 @@ declare const JOB_PATTERN: {
|
|
|
637
637
|
fetchJobDescription: string;
|
|
638
638
|
updateJobDescription: string;
|
|
639
639
|
updateJobStatus: string;
|
|
640
|
+
searchJobsByRoleAndSkills: string;
|
|
640
641
|
};
|
|
641
642
|
|
|
642
643
|
declare enum JobLocation {
|
|
@@ -753,6 +754,37 @@ declare const NOTIFICATION_PATTERN: {
|
|
|
753
754
|
handleResetLinkNotification: string;
|
|
754
755
|
};
|
|
755
756
|
|
|
757
|
+
declare const RATING_PATTERN: {
|
|
758
|
+
addRating: string;
|
|
759
|
+
fetchRating: string;
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
declare class CreateRatingDto {
|
|
763
|
+
revieweeId: number;
|
|
764
|
+
ratingType: RatingTypeEnum;
|
|
765
|
+
rating: number;
|
|
766
|
+
review?: string;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
interface IAddRatingPayload {
|
|
770
|
+
reviewer_id: number;
|
|
771
|
+
reviewee_id: number;
|
|
772
|
+
ratingType: string;
|
|
773
|
+
rating: number;
|
|
774
|
+
review: string;
|
|
775
|
+
}
|
|
776
|
+
interface ICreateRatingResponse {
|
|
777
|
+
statusCode: number;
|
|
778
|
+
status: boolean;
|
|
779
|
+
message: string;
|
|
780
|
+
}
|
|
781
|
+
interface IFetchRatingResponse {
|
|
782
|
+
statusCode: number;
|
|
783
|
+
status: boolean;
|
|
784
|
+
message: string;
|
|
785
|
+
data: any;
|
|
786
|
+
}
|
|
787
|
+
|
|
756
788
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
757
789
|
|
|
758
790
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -803,4 +835,4 @@ declare class Plan extends BaseEntity {
|
|
|
803
835
|
features: Feature[];
|
|
804
836
|
}
|
|
805
837
|
|
|
806
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
838
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToSubAdminResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __export(index_exports, {
|
|
|
42
42
|
ClientProfileQuestionDto: () => ClientProfileQuestionDto,
|
|
43
43
|
CompanyProfile: () => CompanyProfile,
|
|
44
44
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
45
|
+
CreateRatingDto: () => CreateRatingDto,
|
|
45
46
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
46
47
|
EmploymentType: () => EmploymentType,
|
|
47
48
|
Feature: () => Feature,
|
|
@@ -91,6 +92,7 @@ __export(index_exports, {
|
|
|
91
92
|
QUESTION_PATTERN: () => QUESTION_PATTERN,
|
|
92
93
|
Question: () => Question,
|
|
93
94
|
QuestionFor: () => QuestionFor,
|
|
95
|
+
RATING_PATTERN: () => RATING_PATTERN,
|
|
94
96
|
RESUME_PARSER_PATTERN: () => RESUME_PARSER_PATTERN,
|
|
95
97
|
Rating: () => Rating,
|
|
96
98
|
RatingTypeEnum: () => RatingTypeEnum,
|
|
@@ -1475,7 +1477,8 @@ var JOB_PATTERN = {
|
|
|
1475
1477
|
updateJobAdditionalComments: "update.job.additional.comments",
|
|
1476
1478
|
fetchJobDescription: "fetch.job.description",
|
|
1477
1479
|
updateJobDescription: "update.job.description",
|
|
1478
|
-
updateJobStatus: "update.job.status"
|
|
1480
|
+
updateJobStatus: "update.job.status",
|
|
1481
|
+
searchJobsByRoleAndSkills: "search.jobs.by.role.and.skills"
|
|
1479
1482
|
};
|
|
1480
1483
|
|
|
1481
1484
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
@@ -1723,6 +1726,35 @@ var NOTIFICATION_PATTERN = {
|
|
|
1723
1726
|
handleResetLinkNotification: "handle.reset.link.notification"
|
|
1724
1727
|
};
|
|
1725
1728
|
|
|
1729
|
+
// src/modules/rating/pattern/pattern.ts
|
|
1730
|
+
var RATING_PATTERN = {
|
|
1731
|
+
addRating: "add.rating",
|
|
1732
|
+
fetchRating: "fetch.rating"
|
|
1733
|
+
};
|
|
1734
|
+
|
|
1735
|
+
// src/modules/rating/dto/add.rating.dto.ts
|
|
1736
|
+
var import_class_validator28 = require("class-validator");
|
|
1737
|
+
var CreateRatingDto = class {
|
|
1738
|
+
};
|
|
1739
|
+
__decorateClass([
|
|
1740
|
+
(0, import_class_validator28.IsInt)({ message: "Reviewee ID must be a valid integer" }),
|
|
1741
|
+
(0, import_class_validator28.IsNotEmpty)({ message: "Reviewee ID is required" })
|
|
1742
|
+
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
1743
|
+
__decorateClass([
|
|
1744
|
+
(0, import_class_validator28.IsEnum)(RatingTypeEnum, {
|
|
1745
|
+
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
1746
|
+
})
|
|
1747
|
+
], CreateRatingDto.prototype, "ratingType", 2);
|
|
1748
|
+
__decorateClass([
|
|
1749
|
+
(0, import_class_validator28.IsInt)({ message: "Rating must be an integer value" }),
|
|
1750
|
+
(0, import_class_validator28.Min)(1, { message: "Rating must be at least 1" }),
|
|
1751
|
+
(0, import_class_validator28.Max)(5, { message: "Rating must be at most 5" })
|
|
1752
|
+
], CreateRatingDto.prototype, "rating", 2);
|
|
1753
|
+
__decorateClass([
|
|
1754
|
+
(0, import_class_validator28.IsOptional)(),
|
|
1755
|
+
(0, import_class_validator28.IsString)({ message: "Review must be a string" })
|
|
1756
|
+
], CreateRatingDto.prototype, "review", 2);
|
|
1757
|
+
|
|
1726
1758
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1727
1759
|
var import_dotenv = require("dotenv");
|
|
1728
1760
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -2054,6 +2086,7 @@ Plan = __decorateClass([
|
|
|
2054
2086
|
ClientProfileQuestionDto,
|
|
2055
2087
|
CompanyProfile,
|
|
2056
2088
|
CreateQuestionDto,
|
|
2089
|
+
CreateRatingDto,
|
|
2057
2090
|
CreateSubAdminDto,
|
|
2058
2091
|
EmploymentType,
|
|
2059
2092
|
Feature,
|
|
@@ -2103,6 +2136,7 @@ Plan = __decorateClass([
|
|
|
2103
2136
|
QUESTION_PATTERN,
|
|
2104
2137
|
Question,
|
|
2105
2138
|
QuestionFor,
|
|
2139
|
+
RATING_PATTERN,
|
|
2106
2140
|
RESUME_PARSER_PATTERN,
|
|
2107
2141
|
Rating,
|
|
2108
2142
|
RatingTypeEnum,
|
package/dist/index.mjs
CHANGED
|
@@ -1490,7 +1490,8 @@ var JOB_PATTERN = {
|
|
|
1490
1490
|
updateJobAdditionalComments: "update.job.additional.comments",
|
|
1491
1491
|
fetchJobDescription: "fetch.job.description",
|
|
1492
1492
|
updateJobDescription: "update.job.description",
|
|
1493
|
-
updateJobStatus: "update.job.status"
|
|
1493
|
+
updateJobStatus: "update.job.status",
|
|
1494
|
+
searchJobsByRoleAndSkills: "search.jobs.by.role.and.skills"
|
|
1494
1495
|
};
|
|
1495
1496
|
|
|
1496
1497
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
@@ -1761,6 +1762,43 @@ var NOTIFICATION_PATTERN = {
|
|
|
1761
1762
|
handleResetLinkNotification: "handle.reset.link.notification"
|
|
1762
1763
|
};
|
|
1763
1764
|
|
|
1765
|
+
// src/modules/rating/pattern/pattern.ts
|
|
1766
|
+
var RATING_PATTERN = {
|
|
1767
|
+
addRating: "add.rating",
|
|
1768
|
+
fetchRating: "fetch.rating"
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
// src/modules/rating/dto/add.rating.dto.ts
|
|
1772
|
+
import {
|
|
1773
|
+
IsEnum as IsEnum9,
|
|
1774
|
+
IsInt,
|
|
1775
|
+
IsNotEmpty as IsNotEmpty22,
|
|
1776
|
+
IsOptional as IsOptional9,
|
|
1777
|
+
IsString as IsString14,
|
|
1778
|
+
Max,
|
|
1779
|
+
Min as Min2
|
|
1780
|
+
} from "class-validator";
|
|
1781
|
+
var CreateRatingDto = class {
|
|
1782
|
+
};
|
|
1783
|
+
__decorateClass([
|
|
1784
|
+
IsInt({ message: "Reviewee ID must be a valid integer" }),
|
|
1785
|
+
IsNotEmpty22({ message: "Reviewee ID is required" })
|
|
1786
|
+
], CreateRatingDto.prototype, "revieweeId", 2);
|
|
1787
|
+
__decorateClass([
|
|
1788
|
+
IsEnum9(RatingTypeEnum, {
|
|
1789
|
+
message: `Rating type must be one of: ${Object.values(RatingTypeEnum).join(", ")}`
|
|
1790
|
+
})
|
|
1791
|
+
], CreateRatingDto.prototype, "ratingType", 2);
|
|
1792
|
+
__decorateClass([
|
|
1793
|
+
IsInt({ message: "Rating must be an integer value" }),
|
|
1794
|
+
Min2(1, { message: "Rating must be at least 1" }),
|
|
1795
|
+
Max(5, { message: "Rating must be at most 5" })
|
|
1796
|
+
], CreateRatingDto.prototype, "rating", 2);
|
|
1797
|
+
__decorateClass([
|
|
1798
|
+
IsOptional9(),
|
|
1799
|
+
IsString14({ message: "Review must be a string" })
|
|
1800
|
+
], CreateRatingDto.prototype, "review", 2);
|
|
1801
|
+
|
|
1764
1802
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1765
1803
|
import { config } from "dotenv";
|
|
1766
1804
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -2091,6 +2129,7 @@ export {
|
|
|
2091
2129
|
ClientProfileQuestionDto,
|
|
2092
2130
|
CompanyProfile,
|
|
2093
2131
|
CreateQuestionDto,
|
|
2132
|
+
CreateRatingDto,
|
|
2094
2133
|
CreateSubAdminDto,
|
|
2095
2134
|
EmploymentType,
|
|
2096
2135
|
Feature,
|
|
@@ -2140,6 +2179,7 @@ export {
|
|
|
2140
2179
|
QUESTION_PATTERN,
|
|
2141
2180
|
Question,
|
|
2142
2181
|
QuestionFor,
|
|
2182
|
+
RATING_PATTERN,
|
|
2143
2183
|
RESUME_PARSER_PATTERN,
|
|
2144
2184
|
Rating,
|
|
2145
2185
|
RatingTypeEnum,
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './add.rating.dto';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface IAddRatingPayload {
|
|
2
|
+
reviewer_id: number;
|
|
3
|
+
reviewee_id: number;
|
|
4
|
+
ratingType: string;
|
|
5
|
+
rating: number;
|
|
6
|
+
review: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ICreateRatingResponse {
|
|
9
|
+
statusCode: number;
|
|
10
|
+
status: boolean;
|
|
11
|
+
message: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IFetchRatingResponse {
|
|
14
|
+
statusCode: number;
|
|
15
|
+
status: boolean;
|
|
16
|
+
message: string;
|
|
17
|
+
data: any;
|
|
18
|
+
}
|