@experts_hub/shared 1.0.121 → 1.0.122
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 +95 -1
- package/dist/index.d.ts +95 -1
- package/dist/index.js +64 -0
- package/dist/index.mjs +60 -0
- package/dist/modules/company-role/company-role.interface.d.ts +64 -0
- package/dist/modules/company-role/dto/create-company-role.dto.d.ts +6 -0
- package/dist/modules/company-role/dto/index.d.ts +3 -0
- package/dist/modules/company-role/dto/toggle-company-role-visibility.dto.d.ts +3 -0
- package/dist/modules/company-role/dto/update-company-role.dto.d.ts +6 -0
- package/dist/modules/company-role/index.d.ts +3 -0
- package/dist/modules/company-role/pattern/pattern.d.ts +10 -0
- package/dist/modules/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -833,6 +833,100 @@ interface IFetchRatingResponse {
|
|
|
833
833
|
data: any;
|
|
834
834
|
}
|
|
835
835
|
|
|
836
|
+
declare const COMPANY_ROLES_PATTERNS: {
|
|
837
|
+
fetchCompanyRoles: string;
|
|
838
|
+
fetchAllCompanyRolesDropdown: string;
|
|
839
|
+
findCompanyRoleById: string;
|
|
840
|
+
createCompanyRole: string;
|
|
841
|
+
updateCompanyRole: string;
|
|
842
|
+
deleteCompanyRole: string;
|
|
843
|
+
toggleCompanyRoleStatus: string;
|
|
844
|
+
fetchAllDeletedCompanyRoles: string;
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
declare class CreateCompanyRoleDto {
|
|
848
|
+
name: string;
|
|
849
|
+
slug: string;
|
|
850
|
+
description: string;
|
|
851
|
+
isActive: boolean;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
declare class UpdateCompanyRoleDto {
|
|
855
|
+
name: string;
|
|
856
|
+
slug: string;
|
|
857
|
+
description: string;
|
|
858
|
+
isActive: boolean;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
declare class ToggleCompanyRoleVisibilityDto {
|
|
862
|
+
isActive: boolean;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
interface IFetchCompanyRoleQuery {
|
|
866
|
+
page_size?: number;
|
|
867
|
+
page: number;
|
|
868
|
+
searchText?: string;
|
|
869
|
+
name: string;
|
|
870
|
+
right: string;
|
|
871
|
+
sortColumn?: string;
|
|
872
|
+
sortBy?: string;
|
|
873
|
+
}
|
|
874
|
+
interface IFetchCompanyRolesResponse {
|
|
875
|
+
statusCode: number;
|
|
876
|
+
status: boolean;
|
|
877
|
+
message: string;
|
|
878
|
+
data: any;
|
|
879
|
+
}
|
|
880
|
+
interface IFetchCompanyRoleByIdQuery {
|
|
881
|
+
permission?: string;
|
|
882
|
+
}
|
|
883
|
+
interface IFetchCompanyRoleByIdResponse {
|
|
884
|
+
statusCode: number;
|
|
885
|
+
status: boolean;
|
|
886
|
+
message: string;
|
|
887
|
+
data: any;
|
|
888
|
+
}
|
|
889
|
+
interface ICreateCompanyRolePayload {
|
|
890
|
+
name: string;
|
|
891
|
+
slug: string;
|
|
892
|
+
description: string;
|
|
893
|
+
isActive: boolean;
|
|
894
|
+
}
|
|
895
|
+
interface ICreateCompanyRoleResponse {
|
|
896
|
+
statusCode: number;
|
|
897
|
+
status: boolean;
|
|
898
|
+
message: string;
|
|
899
|
+
}
|
|
900
|
+
interface IUpdateCompanyRolePayload {
|
|
901
|
+
name: string;
|
|
902
|
+
slug: string;
|
|
903
|
+
description: string;
|
|
904
|
+
isActive: boolean;
|
|
905
|
+
}
|
|
906
|
+
interface IUpdateCompanyRoleResponse {
|
|
907
|
+
statusCode: number;
|
|
908
|
+
status: boolean;
|
|
909
|
+
message: string;
|
|
910
|
+
}
|
|
911
|
+
interface IToggleCompanyRoleVisibilityPayload {
|
|
912
|
+
isActive: boolean;
|
|
913
|
+
}
|
|
914
|
+
interface IToggleCompanyRoleVisibilityResponse {
|
|
915
|
+
statusCode: number;
|
|
916
|
+
status: boolean;
|
|
917
|
+
message: string;
|
|
918
|
+
}
|
|
919
|
+
interface IDeleteCompanyRoleResponse {
|
|
920
|
+
statusCode: number;
|
|
921
|
+
status: boolean;
|
|
922
|
+
message: string;
|
|
923
|
+
}
|
|
924
|
+
interface IAttachPermissionsToCompanyRoleResponse {
|
|
925
|
+
statusCode: number;
|
|
926
|
+
status: boolean;
|
|
927
|
+
message: string;
|
|
928
|
+
}
|
|
929
|
+
|
|
836
930
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
837
931
|
|
|
838
932
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -883,4 +977,4 @@ declare class Plan extends BaseEntity {
|
|
|
883
977
|
features: Feature[];
|
|
884
978
|
}
|
|
885
979
|
|
|
886
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, 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, JobApplication, 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 };
|
|
980
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, 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, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -833,6 +833,100 @@ interface IFetchRatingResponse {
|
|
|
833
833
|
data: any;
|
|
834
834
|
}
|
|
835
835
|
|
|
836
|
+
declare const COMPANY_ROLES_PATTERNS: {
|
|
837
|
+
fetchCompanyRoles: string;
|
|
838
|
+
fetchAllCompanyRolesDropdown: string;
|
|
839
|
+
findCompanyRoleById: string;
|
|
840
|
+
createCompanyRole: string;
|
|
841
|
+
updateCompanyRole: string;
|
|
842
|
+
deleteCompanyRole: string;
|
|
843
|
+
toggleCompanyRoleStatus: string;
|
|
844
|
+
fetchAllDeletedCompanyRoles: string;
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
declare class CreateCompanyRoleDto {
|
|
848
|
+
name: string;
|
|
849
|
+
slug: string;
|
|
850
|
+
description: string;
|
|
851
|
+
isActive: boolean;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
declare class UpdateCompanyRoleDto {
|
|
855
|
+
name: string;
|
|
856
|
+
slug: string;
|
|
857
|
+
description: string;
|
|
858
|
+
isActive: boolean;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
declare class ToggleCompanyRoleVisibilityDto {
|
|
862
|
+
isActive: boolean;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
interface IFetchCompanyRoleQuery {
|
|
866
|
+
page_size?: number;
|
|
867
|
+
page: number;
|
|
868
|
+
searchText?: string;
|
|
869
|
+
name: string;
|
|
870
|
+
right: string;
|
|
871
|
+
sortColumn?: string;
|
|
872
|
+
sortBy?: string;
|
|
873
|
+
}
|
|
874
|
+
interface IFetchCompanyRolesResponse {
|
|
875
|
+
statusCode: number;
|
|
876
|
+
status: boolean;
|
|
877
|
+
message: string;
|
|
878
|
+
data: any;
|
|
879
|
+
}
|
|
880
|
+
interface IFetchCompanyRoleByIdQuery {
|
|
881
|
+
permission?: string;
|
|
882
|
+
}
|
|
883
|
+
interface IFetchCompanyRoleByIdResponse {
|
|
884
|
+
statusCode: number;
|
|
885
|
+
status: boolean;
|
|
886
|
+
message: string;
|
|
887
|
+
data: any;
|
|
888
|
+
}
|
|
889
|
+
interface ICreateCompanyRolePayload {
|
|
890
|
+
name: string;
|
|
891
|
+
slug: string;
|
|
892
|
+
description: string;
|
|
893
|
+
isActive: boolean;
|
|
894
|
+
}
|
|
895
|
+
interface ICreateCompanyRoleResponse {
|
|
896
|
+
statusCode: number;
|
|
897
|
+
status: boolean;
|
|
898
|
+
message: string;
|
|
899
|
+
}
|
|
900
|
+
interface IUpdateCompanyRolePayload {
|
|
901
|
+
name: string;
|
|
902
|
+
slug: string;
|
|
903
|
+
description: string;
|
|
904
|
+
isActive: boolean;
|
|
905
|
+
}
|
|
906
|
+
interface IUpdateCompanyRoleResponse {
|
|
907
|
+
statusCode: number;
|
|
908
|
+
status: boolean;
|
|
909
|
+
message: string;
|
|
910
|
+
}
|
|
911
|
+
interface IToggleCompanyRoleVisibilityPayload {
|
|
912
|
+
isActive: boolean;
|
|
913
|
+
}
|
|
914
|
+
interface IToggleCompanyRoleVisibilityResponse {
|
|
915
|
+
statusCode: number;
|
|
916
|
+
status: boolean;
|
|
917
|
+
message: string;
|
|
918
|
+
}
|
|
919
|
+
interface IDeleteCompanyRoleResponse {
|
|
920
|
+
statusCode: number;
|
|
921
|
+
status: boolean;
|
|
922
|
+
message: string;
|
|
923
|
+
}
|
|
924
|
+
interface IAttachPermissionsToCompanyRoleResponse {
|
|
925
|
+
statusCode: number;
|
|
926
|
+
status: boolean;
|
|
927
|
+
message: string;
|
|
928
|
+
}
|
|
929
|
+
|
|
836
930
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
837
931
|
|
|
838
932
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -883,4 +977,4 @@ declare class Plan extends BaseEntity {
|
|
|
883
977
|
features: Feature[];
|
|
884
978
|
}
|
|
885
979
|
|
|
886
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, 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, JobApplication, 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 };
|
|
980
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, 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, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -38,11 +38,13 @@ __export(index_exports, {
|
|
|
38
38
|
BankDetail: () => BankDetail,
|
|
39
39
|
BaseEntity: () => BaseEntity,
|
|
40
40
|
CLIENT_PROFILE_PATTERN: () => CLIENT_PROFILE_PATTERN,
|
|
41
|
+
COMPANY_ROLES_PATTERNS: () => COMPANY_ROLES_PATTERNS,
|
|
41
42
|
ClientChangePasswordDto: () => ClientChangePasswordDto,
|
|
42
43
|
ClientCreateAccountDto: () => ClientCreateAccountDto,
|
|
43
44
|
ClientProfileQuestionDto: () => ClientProfileQuestionDto,
|
|
44
45
|
CompanyProfile: () => CompanyProfile,
|
|
45
46
|
CompanyRole: () => CompanyRole,
|
|
47
|
+
CreateCompanyRoleDto: () => CreateCompanyRoleDto,
|
|
46
48
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
47
49
|
CreateRatingDto: () => CreateRatingDto,
|
|
48
50
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
@@ -111,8 +113,10 @@ __export(index_exports, {
|
|
|
111
113
|
SystemPreference: () => SystemPreference,
|
|
112
114
|
SystemPreferenceDto: () => SystemPreferenceDto,
|
|
113
115
|
SystemPreferenceKey: () => SystemPreferenceKey,
|
|
116
|
+
ToggleCompanyRoleVisibilityDto: () => ToggleCompanyRoleVisibilityDto,
|
|
114
117
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
115
118
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
119
|
+
UpdateCompanyRoleDto: () => UpdateCompanyRoleDto,
|
|
116
120
|
UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
|
|
117
121
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
118
122
|
User: () => User,
|
|
@@ -1923,6 +1927,62 @@ __decorateClass([
|
|
|
1923
1927
|
(0, import_class_validator28.IsString)({ message: "Review must be a string" })
|
|
1924
1928
|
], CreateRatingDto.prototype, "review", 2);
|
|
1925
1929
|
|
|
1930
|
+
// src/modules/company-role/pattern/pattern.ts
|
|
1931
|
+
var COMPANY_ROLES_PATTERNS = {
|
|
1932
|
+
fetchCompanyRoles: "company.roles.fetch",
|
|
1933
|
+
fetchAllCompanyRolesDropdown: "company.role.fetch_dropdown",
|
|
1934
|
+
findCompanyRoleById: "company.role.find_by_id",
|
|
1935
|
+
createCompanyRole: "company.role.create",
|
|
1936
|
+
updateCompanyRole: "company.role.update",
|
|
1937
|
+
deleteCompanyRole: "company.role.delete",
|
|
1938
|
+
toggleCompanyRoleStatus: "company.role.toggle_status",
|
|
1939
|
+
fetchAllDeletedCompanyRoles: "company.roles.fetch_deleted"
|
|
1940
|
+
};
|
|
1941
|
+
|
|
1942
|
+
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
1943
|
+
var import_class_validator29 = require("class-validator");
|
|
1944
|
+
var CreateCompanyRoleDto = class {
|
|
1945
|
+
};
|
|
1946
|
+
__decorateClass([
|
|
1947
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter company name." })
|
|
1948
|
+
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
1949
|
+
__decorateClass([
|
|
1950
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter slug" })
|
|
1951
|
+
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
1952
|
+
__decorateClass([
|
|
1953
|
+
(0, import_class_validator29.IsNotEmpty)({ message: "Please enter description" })
|
|
1954
|
+
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
1955
|
+
__decorateClass([
|
|
1956
|
+
(0, import_class_validator29.IsOptional)(),
|
|
1957
|
+
(0, import_class_validator29.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
1958
|
+
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
1959
|
+
|
|
1960
|
+
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
1961
|
+
var import_class_validator30 = require("class-validator");
|
|
1962
|
+
var UpdateCompanyRoleDto = class {
|
|
1963
|
+
};
|
|
1964
|
+
__decorateClass([
|
|
1965
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter company name." })
|
|
1966
|
+
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
1967
|
+
__decorateClass([
|
|
1968
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter slug" })
|
|
1969
|
+
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
1970
|
+
__decorateClass([
|
|
1971
|
+
(0, import_class_validator30.IsNotEmpty)({ message: "Please enter description" })
|
|
1972
|
+
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
1973
|
+
__decorateClass([
|
|
1974
|
+
(0, import_class_validator30.IsOptional)(),
|
|
1975
|
+
(0, import_class_validator30.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
1976
|
+
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
1977
|
+
|
|
1978
|
+
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
1979
|
+
var import_class_validator31 = require("class-validator");
|
|
1980
|
+
var ToggleCompanyRoleVisibilityDto = class {
|
|
1981
|
+
};
|
|
1982
|
+
__decorateClass([
|
|
1983
|
+
(0, import_class_validator31.IsBoolean)()
|
|
1984
|
+
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
1985
|
+
|
|
1926
1986
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1927
1987
|
var import_dotenv = require("dotenv");
|
|
1928
1988
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -2250,11 +2310,13 @@ Plan = __decorateClass([
|
|
|
2250
2310
|
BankDetail,
|
|
2251
2311
|
BaseEntity,
|
|
2252
2312
|
CLIENT_PROFILE_PATTERN,
|
|
2313
|
+
COMPANY_ROLES_PATTERNS,
|
|
2253
2314
|
ClientChangePasswordDto,
|
|
2254
2315
|
ClientCreateAccountDto,
|
|
2255
2316
|
ClientProfileQuestionDto,
|
|
2256
2317
|
CompanyProfile,
|
|
2257
2318
|
CompanyRole,
|
|
2319
|
+
CreateCompanyRoleDto,
|
|
2258
2320
|
CreateQuestionDto,
|
|
2259
2321
|
CreateRatingDto,
|
|
2260
2322
|
CreateSubAdminDto,
|
|
@@ -2323,8 +2385,10 @@ Plan = __decorateClass([
|
|
|
2323
2385
|
SystemPreference,
|
|
2324
2386
|
SystemPreferenceDto,
|
|
2325
2387
|
SystemPreferenceKey,
|
|
2388
|
+
ToggleCompanyRoleVisibilityDto,
|
|
2326
2389
|
TypeOfEmploymentEnum,
|
|
2327
2390
|
UpdateCompanyProfileDto,
|
|
2391
|
+
UpdateCompanyRoleDto,
|
|
2328
2392
|
UpdateSubAdminAccountStatusDto,
|
|
2329
2393
|
UpdateSubAdminDto,
|
|
2330
2394
|
User,
|
package/dist/index.mjs
CHANGED
|
@@ -1970,6 +1970,62 @@ __decorateClass([
|
|
|
1970
1970
|
IsString14({ message: "Review must be a string" })
|
|
1971
1971
|
], CreateRatingDto.prototype, "review", 2);
|
|
1972
1972
|
|
|
1973
|
+
// src/modules/company-role/pattern/pattern.ts
|
|
1974
|
+
var COMPANY_ROLES_PATTERNS = {
|
|
1975
|
+
fetchCompanyRoles: "company.roles.fetch",
|
|
1976
|
+
fetchAllCompanyRolesDropdown: "company.role.fetch_dropdown",
|
|
1977
|
+
findCompanyRoleById: "company.role.find_by_id",
|
|
1978
|
+
createCompanyRole: "company.role.create",
|
|
1979
|
+
updateCompanyRole: "company.role.update",
|
|
1980
|
+
deleteCompanyRole: "company.role.delete",
|
|
1981
|
+
toggleCompanyRoleStatus: "company.role.toggle_status",
|
|
1982
|
+
fetchAllDeletedCompanyRoles: "company.roles.fetch_deleted"
|
|
1983
|
+
};
|
|
1984
|
+
|
|
1985
|
+
// src/modules/company-role/dto/create-company-role.dto.ts
|
|
1986
|
+
import { IsBoolean as IsBoolean7, IsNotEmpty as IsNotEmpty23, IsOptional as IsOptional10 } from "class-validator";
|
|
1987
|
+
var CreateCompanyRoleDto = class {
|
|
1988
|
+
};
|
|
1989
|
+
__decorateClass([
|
|
1990
|
+
IsNotEmpty23({ message: "Please enter company name." })
|
|
1991
|
+
], CreateCompanyRoleDto.prototype, "name", 2);
|
|
1992
|
+
__decorateClass([
|
|
1993
|
+
IsNotEmpty23({ message: "Please enter slug" })
|
|
1994
|
+
], CreateCompanyRoleDto.prototype, "slug", 2);
|
|
1995
|
+
__decorateClass([
|
|
1996
|
+
IsNotEmpty23({ message: "Please enter description" })
|
|
1997
|
+
], CreateCompanyRoleDto.prototype, "description", 2);
|
|
1998
|
+
__decorateClass([
|
|
1999
|
+
IsOptional10(),
|
|
2000
|
+
IsBoolean7({ message: "Is active must be a boolean value" })
|
|
2001
|
+
], CreateCompanyRoleDto.prototype, "isActive", 2);
|
|
2002
|
+
|
|
2003
|
+
// src/modules/company-role/dto/update-company-role.dto.ts
|
|
2004
|
+
import { IsBoolean as IsBoolean8, IsNotEmpty as IsNotEmpty24, IsOptional as IsOptional11 } from "class-validator";
|
|
2005
|
+
var UpdateCompanyRoleDto = class {
|
|
2006
|
+
};
|
|
2007
|
+
__decorateClass([
|
|
2008
|
+
IsNotEmpty24({ message: "Please enter company name." })
|
|
2009
|
+
], UpdateCompanyRoleDto.prototype, "name", 2);
|
|
2010
|
+
__decorateClass([
|
|
2011
|
+
IsNotEmpty24({ message: "Please enter slug" })
|
|
2012
|
+
], UpdateCompanyRoleDto.prototype, "slug", 2);
|
|
2013
|
+
__decorateClass([
|
|
2014
|
+
IsNotEmpty24({ message: "Please enter description" })
|
|
2015
|
+
], UpdateCompanyRoleDto.prototype, "description", 2);
|
|
2016
|
+
__decorateClass([
|
|
2017
|
+
IsOptional11(),
|
|
2018
|
+
IsBoolean8({ message: "Is active must be a boolean value" })
|
|
2019
|
+
], UpdateCompanyRoleDto.prototype, "isActive", 2);
|
|
2020
|
+
|
|
2021
|
+
// src/modules/company-role/dto/toggle-company-role-visibility.dto.ts
|
|
2022
|
+
import { IsBoolean as IsBoolean9 } from "class-validator";
|
|
2023
|
+
var ToggleCompanyRoleVisibilityDto = class {
|
|
2024
|
+
};
|
|
2025
|
+
__decorateClass([
|
|
2026
|
+
IsBoolean9()
|
|
2027
|
+
], ToggleCompanyRoleVisibilityDto.prototype, "isActive", 2);
|
|
2028
|
+
|
|
1973
2029
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1974
2030
|
import { config } from "dotenv";
|
|
1975
2031
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -2296,11 +2352,13 @@ export {
|
|
|
2296
2352
|
BankDetail,
|
|
2297
2353
|
BaseEntity,
|
|
2298
2354
|
CLIENT_PROFILE_PATTERN,
|
|
2355
|
+
COMPANY_ROLES_PATTERNS,
|
|
2299
2356
|
ClientChangePasswordDto,
|
|
2300
2357
|
ClientCreateAccountDto,
|
|
2301
2358
|
ClientProfileQuestionDto,
|
|
2302
2359
|
CompanyProfile,
|
|
2303
2360
|
CompanyRole,
|
|
2361
|
+
CreateCompanyRoleDto,
|
|
2304
2362
|
CreateQuestionDto,
|
|
2305
2363
|
CreateRatingDto,
|
|
2306
2364
|
CreateSubAdminDto,
|
|
@@ -2369,8 +2427,10 @@ export {
|
|
|
2369
2427
|
SystemPreference,
|
|
2370
2428
|
SystemPreferenceDto,
|
|
2371
2429
|
SystemPreferenceKey,
|
|
2430
|
+
ToggleCompanyRoleVisibilityDto,
|
|
2372
2431
|
TypeOfEmploymentEnum,
|
|
2373
2432
|
UpdateCompanyProfileDto,
|
|
2433
|
+
UpdateCompanyRoleDto,
|
|
2374
2434
|
UpdateSubAdminAccountStatusDto,
|
|
2375
2435
|
UpdateSubAdminDto,
|
|
2376
2436
|
User,
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export interface IFetchCompanyRoleQuery {
|
|
2
|
+
page_size?: number;
|
|
3
|
+
page: number;
|
|
4
|
+
searchText?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
right: string;
|
|
7
|
+
sortColumn?: string;
|
|
8
|
+
sortBy?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IFetchCompanyRolesResponse {
|
|
11
|
+
statusCode: number;
|
|
12
|
+
status: boolean;
|
|
13
|
+
message: string;
|
|
14
|
+
data: any;
|
|
15
|
+
}
|
|
16
|
+
export interface IFetchCompanyRoleByIdQuery {
|
|
17
|
+
permission?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IFetchCompanyRoleByIdResponse {
|
|
20
|
+
statusCode: number;
|
|
21
|
+
status: boolean;
|
|
22
|
+
message: string;
|
|
23
|
+
data: any;
|
|
24
|
+
}
|
|
25
|
+
export interface ICreateCompanyRolePayload {
|
|
26
|
+
name: string;
|
|
27
|
+
slug: string;
|
|
28
|
+
description: string;
|
|
29
|
+
isActive: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface ICreateCompanyRoleResponse {
|
|
32
|
+
statusCode: number;
|
|
33
|
+
status: boolean;
|
|
34
|
+
message: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IUpdateCompanyRolePayload {
|
|
37
|
+
name: string;
|
|
38
|
+
slug: string;
|
|
39
|
+
description: string;
|
|
40
|
+
isActive: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface IUpdateCompanyRoleResponse {
|
|
43
|
+
statusCode: number;
|
|
44
|
+
status: boolean;
|
|
45
|
+
message: string;
|
|
46
|
+
}
|
|
47
|
+
export interface IToggleCompanyRoleVisibilityPayload {
|
|
48
|
+
isActive: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface IToggleCompanyRoleVisibilityResponse {
|
|
51
|
+
statusCode: number;
|
|
52
|
+
status: boolean;
|
|
53
|
+
message: string;
|
|
54
|
+
}
|
|
55
|
+
export interface IDeleteCompanyRoleResponse {
|
|
56
|
+
statusCode: number;
|
|
57
|
+
status: boolean;
|
|
58
|
+
message: string;
|
|
59
|
+
}
|
|
60
|
+
export interface IAttachPermissionsToCompanyRoleResponse {
|
|
61
|
+
statusCode: number;
|
|
62
|
+
status: boolean;
|
|
63
|
+
message: string;
|
|
64
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const COMPANY_ROLES_PATTERNS: {
|
|
2
|
+
fetchCompanyRoles: string;
|
|
3
|
+
fetchAllCompanyRolesDropdown: string;
|
|
4
|
+
findCompanyRoleById: string;
|
|
5
|
+
createCompanyRole: string;
|
|
6
|
+
updateCompanyRole: string;
|
|
7
|
+
deleteCompanyRole: string;
|
|
8
|
+
toggleCompanyRoleStatus: string;
|
|
9
|
+
fetchAllDeletedCompanyRoles: string;
|
|
10
|
+
};
|
package/dist/modules/index.d.ts
CHANGED