@experts_hub/shared 1.0.263 → 1.0.265
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/admin-role.entity.d.ts +7 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/index.d.mts +32 -1
- package/dist/index.d.ts +32 -1
- package/dist/index.js +81 -0
- package/dist/index.mjs +80 -0
- package/dist/modules/admin-role/dto/create-admin-role.dto.d.ts +6 -0
- package/dist/modules/admin-role/dto/index.d.ts +2 -0
- package/dist/modules/admin-role/dto/update-admin-role.dto.d.ts +6 -0
- package/dist/modules/admin-role/index.d.ts +2 -0
- package/dist/modules/admin-role/pattern/pattern.d.ts +9 -0
- package/dist/modules/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1899,6 +1899,30 @@ declare class CreateLeadDto {
|
|
|
1899
1899
|
category: CategoryEmumDto;
|
|
1900
1900
|
}
|
|
1901
1901
|
|
|
1902
|
+
declare const ADMIN_ROLE_PATTERN: {
|
|
1903
|
+
adminFetchRoles: string;
|
|
1904
|
+
adminFetchRoleById: string;
|
|
1905
|
+
adminFetchRolesDropdown: string;
|
|
1906
|
+
adminCountRole: string;
|
|
1907
|
+
adminCreateRole: string;
|
|
1908
|
+
adminUpdateRole: string;
|
|
1909
|
+
adminDeleteRole: string;
|
|
1910
|
+
};
|
|
1911
|
+
|
|
1912
|
+
declare class CreateAdminRoleDto {
|
|
1913
|
+
roleName: string;
|
|
1914
|
+
roleSlug: string;
|
|
1915
|
+
roleDescription?: string;
|
|
1916
|
+
isActive?: boolean;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
declare class UpdateAdminRoleDto {
|
|
1920
|
+
roleName: string;
|
|
1921
|
+
roleSlug: string;
|
|
1922
|
+
roleDescription?: string;
|
|
1923
|
+
isActive?: boolean;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1902
1926
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
1903
1927
|
|
|
1904
1928
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -2007,4 +2031,11 @@ declare class JobFreelancerRecommendation {
|
|
|
2007
2031
|
requiredSkillsCount: number;
|
|
2008
2032
|
}
|
|
2009
2033
|
|
|
2010
|
-
|
|
2034
|
+
declare class AdminRole extends BaseEntity {
|
|
2035
|
+
roleName: string;
|
|
2036
|
+
roleSlug: string;
|
|
2037
|
+
roleDescription: string;
|
|
2038
|
+
isActive: boolean;
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_ROLE_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminRole, AdminUpdateJobInformationDto, AiAssessmentStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, COUNTRY_PATTERN, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, Cms, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.d.ts
CHANGED
|
@@ -1899,6 +1899,30 @@ declare class CreateLeadDto {
|
|
|
1899
1899
|
category: CategoryEmumDto;
|
|
1900
1900
|
}
|
|
1901
1901
|
|
|
1902
|
+
declare const ADMIN_ROLE_PATTERN: {
|
|
1903
|
+
adminFetchRoles: string;
|
|
1904
|
+
adminFetchRoleById: string;
|
|
1905
|
+
adminFetchRolesDropdown: string;
|
|
1906
|
+
adminCountRole: string;
|
|
1907
|
+
adminCreateRole: string;
|
|
1908
|
+
adminUpdateRole: string;
|
|
1909
|
+
adminDeleteRole: string;
|
|
1910
|
+
};
|
|
1911
|
+
|
|
1912
|
+
declare class CreateAdminRoleDto {
|
|
1913
|
+
roleName: string;
|
|
1914
|
+
roleSlug: string;
|
|
1915
|
+
roleDescription?: string;
|
|
1916
|
+
isActive?: boolean;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
declare class UpdateAdminRoleDto {
|
|
1920
|
+
roleName: string;
|
|
1921
|
+
roleSlug: string;
|
|
1922
|
+
roleDescription?: string;
|
|
1923
|
+
isActive?: boolean;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1902
1926
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
1903
1927
|
|
|
1904
1928
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -2007,4 +2031,11 @@ declare class JobFreelancerRecommendation {
|
|
|
2007
2031
|
requiredSkillsCount: number;
|
|
2008
2032
|
}
|
|
2009
2033
|
|
|
2010
|
-
|
|
2034
|
+
declare class AdminRole extends BaseEntity {
|
|
2035
|
+
roleName: string;
|
|
2036
|
+
roleSlug: string;
|
|
2037
|
+
roleDescription: string;
|
|
2038
|
+
isActive: boolean;
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_ROLE_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminRole, AdminUpdateJobInformationDto, AiAssessmentStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, COUNTRY_PATTERN, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, Cms, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.js
CHANGED
|
@@ -29,11 +29,13 @@ var index_exports = {};
|
|
|
29
29
|
__export(index_exports, {
|
|
30
30
|
ADMIN_FREELANCER_PATTERN: () => ADMIN_FREELANCER_PATTERN,
|
|
31
31
|
ADMIN_JOB_PATTERN: () => ADMIN_JOB_PATTERN,
|
|
32
|
+
ADMIN_ROLE_PATTERN: () => ADMIN_ROLE_PATTERN,
|
|
32
33
|
ASSESSMENT_QUESTION_PATTERN: () => ASSESSMENT_QUESTION_PATTERN,
|
|
33
34
|
AUTHENTICATION_PATTERN: () => AUTHENTICATION_PATTERN,
|
|
34
35
|
AccountStatus: () => AccountStatus,
|
|
35
36
|
AccountType: () => AccountType,
|
|
36
37
|
AdminCreateJobInformationDto: () => AdminCreateJobInformationDto,
|
|
38
|
+
AdminRole: () => AdminRole,
|
|
37
39
|
AdminUpdateJobInformationDto: () => AdminUpdateJobInformationDto,
|
|
38
40
|
AiAssessmentStatusEnum: () => AiAssessmentStatusEnum,
|
|
39
41
|
AnswerTypeEnum: () => AnswerTypeEnum,
|
|
@@ -70,6 +72,7 @@ __export(index_exports, {
|
|
|
70
72
|
CompanyRolePermission: () => CompanyRolePermission,
|
|
71
73
|
CompanySkill: () => CompanySkill,
|
|
72
74
|
Country: () => Country,
|
|
75
|
+
CreateAdminRoleDto: () => CreateAdminRoleDto,
|
|
73
76
|
CreateClientDto: () => CreateClientDto,
|
|
74
77
|
CreateClientHiringModeEnum: () => CreateClientHiringModeEnum,
|
|
75
78
|
CreateClientHiringTypeEnum: () => CreateClientHiringTypeEnum,
|
|
@@ -203,6 +206,7 @@ __export(index_exports, {
|
|
|
203
206
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
204
207
|
TypeOfEmploymentEnumDto: () => TypeOfEmploymentEnumDto,
|
|
205
208
|
TypeOfEmploymentEnums: () => TypeOfEmploymentEnums,
|
|
209
|
+
UpdateAdminRoleDto: () => UpdateAdminRoleDto,
|
|
206
210
|
UpdateClientAccountStatusDto: () => UpdateClientAccountStatusDto,
|
|
207
211
|
UpdateClientDto: () => UpdateClientDto,
|
|
208
212
|
UpdateClientHiringModeEnum: () => UpdateClientHiringModeEnum,
|
|
@@ -4288,6 +4292,59 @@ __decorateClass([
|
|
|
4288
4292
|
})
|
|
4289
4293
|
], CreateLeadDto.prototype, "category", 2);
|
|
4290
4294
|
|
|
4295
|
+
// src/modules/admin-role/pattern/pattern.ts
|
|
4296
|
+
var ADMIN_ROLE_PATTERN = {
|
|
4297
|
+
adminFetchRoles: "admin.fetch.roles",
|
|
4298
|
+
adminFetchRoleById: "admin.fetch.role.by.id",
|
|
4299
|
+
adminFetchRolesDropdown: "admin.fetch.roles.dropdown",
|
|
4300
|
+
adminCountRole: "admin.count.role",
|
|
4301
|
+
adminCreateRole: "admin.create.role",
|
|
4302
|
+
adminUpdateRole: "admin.update.role",
|
|
4303
|
+
adminDeleteRole: "admin.delete.role"
|
|
4304
|
+
};
|
|
4305
|
+
|
|
4306
|
+
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4307
|
+
var import_class_validator60 = require("class-validator");
|
|
4308
|
+
var CreateAdminRoleDto = class {
|
|
4309
|
+
};
|
|
4310
|
+
__decorateClass([
|
|
4311
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
4312
|
+
(0, import_class_validator60.IsString)({ message: "Role name must be a string." })
|
|
4313
|
+
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4314
|
+
__decorateClass([
|
|
4315
|
+
(0, import_class_validator60.IsNotEmpty)({ message: "Please enter admin role slug." }),
|
|
4316
|
+
(0, import_class_validator60.IsString)({ message: "Role slug must be a string." })
|
|
4317
|
+
], CreateAdminRoleDto.prototype, "roleSlug", 2);
|
|
4318
|
+
__decorateClass([
|
|
4319
|
+
(0, import_class_validator60.IsOptional)(),
|
|
4320
|
+
(0, import_class_validator60.IsString)({ message: "Role description must be a string." })
|
|
4321
|
+
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4322
|
+
__decorateClass([
|
|
4323
|
+
(0, import_class_validator60.IsOptional)(),
|
|
4324
|
+
(0, import_class_validator60.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
4325
|
+
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
4326
|
+
|
|
4327
|
+
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4328
|
+
var import_class_validator61 = require("class-validator");
|
|
4329
|
+
var UpdateAdminRoleDto = class {
|
|
4330
|
+
};
|
|
4331
|
+
__decorateClass([
|
|
4332
|
+
(0, import_class_validator61.IsNotEmpty)({ message: "Please enter admin role name." }),
|
|
4333
|
+
(0, import_class_validator61.IsString)({ message: "Role name must be a string." })
|
|
4334
|
+
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
4335
|
+
__decorateClass([
|
|
4336
|
+
(0, import_class_validator61.IsNotEmpty)({ message: "Please enter admin role slug." }),
|
|
4337
|
+
(0, import_class_validator61.IsString)({ message: "Role slug must be a string." })
|
|
4338
|
+
], UpdateAdminRoleDto.prototype, "roleSlug", 2);
|
|
4339
|
+
__decorateClass([
|
|
4340
|
+
(0, import_class_validator61.IsOptional)(),
|
|
4341
|
+
(0, import_class_validator61.IsString)({ message: "Role description must be a string." })
|
|
4342
|
+
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4343
|
+
__decorateClass([
|
|
4344
|
+
(0, import_class_validator61.IsOptional)(),
|
|
4345
|
+
(0, import_class_validator61.IsBoolean)({ message: "Is active must be a boolean value." })
|
|
4346
|
+
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
4347
|
+
|
|
4291
4348
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
4292
4349
|
var import_dotenv = require("dotenv");
|
|
4293
4350
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -4797,15 +4854,37 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
4797
4854
|
// ✅ important: prevent auto-sync during migrations
|
|
4798
4855
|
})
|
|
4799
4856
|
], JobFreelancerRecommendation);
|
|
4857
|
+
|
|
4858
|
+
// src/entities/admin-role.entity.ts
|
|
4859
|
+
var import_typeorm45 = require("typeorm");
|
|
4860
|
+
var AdminRole = class extends BaseEntity {
|
|
4861
|
+
};
|
|
4862
|
+
__decorateClass([
|
|
4863
|
+
(0, import_typeorm45.Column)({ name: "role_name", type: "varchar", unique: true, nullable: true })
|
|
4864
|
+
], AdminRole.prototype, "roleName", 2);
|
|
4865
|
+
__decorateClass([
|
|
4866
|
+
(0, import_typeorm45.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true })
|
|
4867
|
+
], AdminRole.prototype, "roleSlug", 2);
|
|
4868
|
+
__decorateClass([
|
|
4869
|
+
(0, import_typeorm45.Column)({ name: "role_description", type: "varchar", unique: true })
|
|
4870
|
+
], AdminRole.prototype, "roleDescription", 2);
|
|
4871
|
+
__decorateClass([
|
|
4872
|
+
(0, import_typeorm45.Column)({ name: "is_active", type: "boolean", default: true })
|
|
4873
|
+
], AdminRole.prototype, "isActive", 2);
|
|
4874
|
+
AdminRole = __decorateClass([
|
|
4875
|
+
(0, import_typeorm45.Entity)("admin_roles")
|
|
4876
|
+
], AdminRole);
|
|
4800
4877
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4801
4878
|
0 && (module.exports = {
|
|
4802
4879
|
ADMIN_FREELANCER_PATTERN,
|
|
4803
4880
|
ADMIN_JOB_PATTERN,
|
|
4881
|
+
ADMIN_ROLE_PATTERN,
|
|
4804
4882
|
ASSESSMENT_QUESTION_PATTERN,
|
|
4805
4883
|
AUTHENTICATION_PATTERN,
|
|
4806
4884
|
AccountStatus,
|
|
4807
4885
|
AccountType,
|
|
4808
4886
|
AdminCreateJobInformationDto,
|
|
4887
|
+
AdminRole,
|
|
4809
4888
|
AdminUpdateJobInformationDto,
|
|
4810
4889
|
AiAssessmentStatusEnum,
|
|
4811
4890
|
AnswerTypeEnum,
|
|
@@ -4842,6 +4921,7 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
4842
4921
|
CompanyRolePermission,
|
|
4843
4922
|
CompanySkill,
|
|
4844
4923
|
Country,
|
|
4924
|
+
CreateAdminRoleDto,
|
|
4845
4925
|
CreateClientDto,
|
|
4846
4926
|
CreateClientHiringModeEnum,
|
|
4847
4927
|
CreateClientHiringTypeEnum,
|
|
@@ -4975,6 +5055,7 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
4975
5055
|
TypeOfEmploymentEnum,
|
|
4976
5056
|
TypeOfEmploymentEnumDto,
|
|
4977
5057
|
TypeOfEmploymentEnums,
|
|
5058
|
+
UpdateAdminRoleDto,
|
|
4978
5059
|
UpdateClientAccountStatusDto,
|
|
4979
5060
|
UpdateClientDto,
|
|
4980
5061
|
UpdateClientHiringModeEnum,
|
package/dist/index.mjs
CHANGED
|
@@ -4436,6 +4436,59 @@ __decorateClass([
|
|
|
4436
4436
|
})
|
|
4437
4437
|
], CreateLeadDto.prototype, "category", 2);
|
|
4438
4438
|
|
|
4439
|
+
// src/modules/admin-role/pattern/pattern.ts
|
|
4440
|
+
var ADMIN_ROLE_PATTERN = {
|
|
4441
|
+
adminFetchRoles: "admin.fetch.roles",
|
|
4442
|
+
adminFetchRoleById: "admin.fetch.role.by.id",
|
|
4443
|
+
adminFetchRolesDropdown: "admin.fetch.roles.dropdown",
|
|
4444
|
+
adminCountRole: "admin.count.role",
|
|
4445
|
+
adminCreateRole: "admin.create.role",
|
|
4446
|
+
adminUpdateRole: "admin.update.role",
|
|
4447
|
+
adminDeleteRole: "admin.delete.role"
|
|
4448
|
+
};
|
|
4449
|
+
|
|
4450
|
+
// src/modules/admin-role/dto/create-admin-role.dto.ts
|
|
4451
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty51, IsOptional as IsOptional28, IsString as IsString34 } from "class-validator";
|
|
4452
|
+
var CreateAdminRoleDto = class {
|
|
4453
|
+
};
|
|
4454
|
+
__decorateClass([
|
|
4455
|
+
IsNotEmpty51({ message: "Please enter admin role name." }),
|
|
4456
|
+
IsString34({ message: "Role name must be a string." })
|
|
4457
|
+
], CreateAdminRoleDto.prototype, "roleName", 2);
|
|
4458
|
+
__decorateClass([
|
|
4459
|
+
IsNotEmpty51({ message: "Please enter admin role slug." }),
|
|
4460
|
+
IsString34({ message: "Role slug must be a string." })
|
|
4461
|
+
], CreateAdminRoleDto.prototype, "roleSlug", 2);
|
|
4462
|
+
__decorateClass([
|
|
4463
|
+
IsOptional28(),
|
|
4464
|
+
IsString34({ message: "Role description must be a string." })
|
|
4465
|
+
], CreateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4466
|
+
__decorateClass([
|
|
4467
|
+
IsOptional28(),
|
|
4468
|
+
IsBoolean14({ message: "Is active must be a boolean value." })
|
|
4469
|
+
], CreateAdminRoleDto.prototype, "isActive", 2);
|
|
4470
|
+
|
|
4471
|
+
// src/modules/admin-role/dto/update-admin-role.dto.ts
|
|
4472
|
+
import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional29, IsString as IsString35 } from "class-validator";
|
|
4473
|
+
var UpdateAdminRoleDto = class {
|
|
4474
|
+
};
|
|
4475
|
+
__decorateClass([
|
|
4476
|
+
IsNotEmpty52({ message: "Please enter admin role name." }),
|
|
4477
|
+
IsString35({ message: "Role name must be a string." })
|
|
4478
|
+
], UpdateAdminRoleDto.prototype, "roleName", 2);
|
|
4479
|
+
__decorateClass([
|
|
4480
|
+
IsNotEmpty52({ message: "Please enter admin role slug." }),
|
|
4481
|
+
IsString35({ message: "Role slug must be a string." })
|
|
4482
|
+
], UpdateAdminRoleDto.prototype, "roleSlug", 2);
|
|
4483
|
+
__decorateClass([
|
|
4484
|
+
IsOptional29(),
|
|
4485
|
+
IsString35({ message: "Role description must be a string." })
|
|
4486
|
+
], UpdateAdminRoleDto.prototype, "roleDescription", 2);
|
|
4487
|
+
__decorateClass([
|
|
4488
|
+
IsOptional29(),
|
|
4489
|
+
IsBoolean15({ message: "Is active must be a boolean value." })
|
|
4490
|
+
], UpdateAdminRoleDto.prototype, "isActive", 2);
|
|
4491
|
+
|
|
4439
4492
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
4440
4493
|
import { config } from "dotenv";
|
|
4441
4494
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -4948,14 +5001,39 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
4948
5001
|
// ✅ important: prevent auto-sync during migrations
|
|
4949
5002
|
})
|
|
4950
5003
|
], JobFreelancerRecommendation);
|
|
5004
|
+
|
|
5005
|
+
// src/entities/admin-role.entity.ts
|
|
5006
|
+
import {
|
|
5007
|
+
Entity as Entity43,
|
|
5008
|
+
Column as Column44
|
|
5009
|
+
} from "typeorm";
|
|
5010
|
+
var AdminRole = class extends BaseEntity {
|
|
5011
|
+
};
|
|
5012
|
+
__decorateClass([
|
|
5013
|
+
Column44({ name: "role_name", type: "varchar", unique: true, nullable: true })
|
|
5014
|
+
], AdminRole.prototype, "roleName", 2);
|
|
5015
|
+
__decorateClass([
|
|
5016
|
+
Column44({ name: "role_slug", type: "varchar", unique: true, nullable: true })
|
|
5017
|
+
], AdminRole.prototype, "roleSlug", 2);
|
|
5018
|
+
__decorateClass([
|
|
5019
|
+
Column44({ name: "role_description", type: "varchar", unique: true })
|
|
5020
|
+
], AdminRole.prototype, "roleDescription", 2);
|
|
5021
|
+
__decorateClass([
|
|
5022
|
+
Column44({ name: "is_active", type: "boolean", default: true })
|
|
5023
|
+
], AdminRole.prototype, "isActive", 2);
|
|
5024
|
+
AdminRole = __decorateClass([
|
|
5025
|
+
Entity43("admin_roles")
|
|
5026
|
+
], AdminRole);
|
|
4951
5027
|
export {
|
|
4952
5028
|
ADMIN_FREELANCER_PATTERN,
|
|
4953
5029
|
ADMIN_JOB_PATTERN,
|
|
5030
|
+
ADMIN_ROLE_PATTERN,
|
|
4954
5031
|
ASSESSMENT_QUESTION_PATTERN,
|
|
4955
5032
|
AUTHENTICATION_PATTERN,
|
|
4956
5033
|
AccountStatus,
|
|
4957
5034
|
AccountType,
|
|
4958
5035
|
AdminCreateJobInformationDto,
|
|
5036
|
+
AdminRole,
|
|
4959
5037
|
AdminUpdateJobInformationDto,
|
|
4960
5038
|
AiAssessmentStatusEnum,
|
|
4961
5039
|
AnswerTypeEnum,
|
|
@@ -4992,6 +5070,7 @@ export {
|
|
|
4992
5070
|
CompanyRolePermission,
|
|
4993
5071
|
CompanySkill,
|
|
4994
5072
|
Country,
|
|
5073
|
+
CreateAdminRoleDto,
|
|
4995
5074
|
CreateClientDto,
|
|
4996
5075
|
CreateClientHiringModeEnum,
|
|
4997
5076
|
CreateClientHiringTypeEnum,
|
|
@@ -5125,6 +5204,7 @@ export {
|
|
|
5125
5204
|
TypeOfEmploymentEnum,
|
|
5126
5205
|
TypeOfEmploymentEnumDto,
|
|
5127
5206
|
TypeOfEmploymentEnums,
|
|
5207
|
+
UpdateAdminRoleDto,
|
|
5128
5208
|
UpdateClientAccountStatusDto,
|
|
5129
5209
|
UpdateClientDto,
|
|
5130
5210
|
UpdateClientHiringModeEnum,
|
package/dist/modules/index.d.ts
CHANGED