@experts_hub/shared 1.0.120 → 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.
@@ -36,4 +36,7 @@ export declare class FreelancerProfile extends BaseEntity {
36
36
  stackOverflowProfileLink: string;
37
37
  portfolioLink: string;
38
38
  onboardingStepCompleted: OnboardingStepEnum;
39
+ countryId: number;
40
+ freelancerAddress: string;
41
+ freelancerAbout: string;
39
42
  }
package/dist/index.d.mts CHANGED
@@ -326,6 +326,9 @@ declare class FreelancerProfile extends BaseEntity {
326
326
  stackOverflowProfileLink: string;
327
327
  portfolioLink: string;
328
328
  onboardingStepCompleted: OnboardingStepEnum;
329
+ countryId: number;
330
+ freelancerAddress: string;
331
+ freelancerAbout: string;
329
332
  }
330
333
 
331
334
  declare class Skill extends BaseEntity {
@@ -734,6 +737,7 @@ declare const PROFILE_PATTERN: {
734
737
  fetchFreelancerProfile: string;
735
738
  changeFreelancerPassword: string;
736
739
  uploadFreelancerProfilePic: string;
740
+ updateFreelancerProfile: string;
737
741
  };
738
742
 
739
743
  declare class FreelancerChangePasswordDto {
@@ -829,6 +833,100 @@ interface IFetchRatingResponse {
829
833
  data: any;
830
834
  }
831
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
+
832
930
  declare const UserTCPAdapter: () => MicroserviceOptions;
833
931
 
834
932
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -879,4 +977,4 @@ declare class Plan extends BaseEntity {
879
977
  features: Feature[];
880
978
  }
881
979
 
882
- 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
@@ -326,6 +326,9 @@ declare class FreelancerProfile extends BaseEntity {
326
326
  stackOverflowProfileLink: string;
327
327
  portfolioLink: string;
328
328
  onboardingStepCompleted: OnboardingStepEnum;
329
+ countryId: number;
330
+ freelancerAddress: string;
331
+ freelancerAbout: string;
329
332
  }
330
333
 
331
334
  declare class Skill extends BaseEntity {
@@ -734,6 +737,7 @@ declare const PROFILE_PATTERN: {
734
737
  fetchFreelancerProfile: string;
735
738
  changeFreelancerPassword: string;
736
739
  uploadFreelancerProfilePic: string;
740
+ updateFreelancerProfile: string;
737
741
  };
738
742
 
739
743
  declare class FreelancerChangePasswordDto {
@@ -829,6 +833,100 @@ interface IFetchRatingResponse {
829
833
  data: any;
830
834
  }
831
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
+
832
930
  declare const UserTCPAdapter: () => MicroserviceOptions;
833
931
 
834
932
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -879,4 +977,4 @@ declare class Plan extends BaseEntity {
879
977
  features: Feature[];
880
978
  }
881
979
 
882
- 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,
@@ -814,6 +818,15 @@ __decorateClass([
814
818
  nullable: true
815
819
  })
816
820
  ], FreelancerProfile.prototype, "onboardingStepCompleted", 2);
821
+ __decorateClass([
822
+ (0, import_typeorm5.Column)({ name: "country_id", type: "integer", nullable: true })
823
+ ], FreelancerProfile.prototype, "countryId", 2);
824
+ __decorateClass([
825
+ (0, import_typeorm5.Column)({ name: "freelancer_address", type: "varchar", nullable: true })
826
+ ], FreelancerProfile.prototype, "freelancerAddress", 2);
827
+ __decorateClass([
828
+ (0, import_typeorm5.Column)({ name: "freelancer_about", type: "varchar", nullable: true })
829
+ ], FreelancerProfile.prototype, "freelancerAbout", 2);
817
830
  FreelancerProfile = __decorateClass([
818
831
  (0, import_typeorm5.Entity)("freelancer_profiles")
819
832
  ], FreelancerProfile);
@@ -1761,7 +1774,8 @@ __decorateClass([
1761
1774
  var PROFILE_PATTERN = {
1762
1775
  fetchFreelancerProfile: "fetch.freelancer.profile",
1763
1776
  changeFreelancerPassword: "change.freelancer.password",
1764
- uploadFreelancerProfilePic: "upload.freelancer.profilepic"
1777
+ uploadFreelancerProfilePic: "upload.freelancer.profilepic",
1778
+ updateFreelancerProfile: "update.freelancer.profile"
1765
1779
  };
1766
1780
 
1767
1781
  // src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
@@ -1913,6 +1927,62 @@ __decorateClass([
1913
1927
  (0, import_class_validator28.IsString)({ message: "Review must be a string" })
1914
1928
  ], CreateRatingDto.prototype, "review", 2);
1915
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
+
1916
1986
  // src/adapters/tcp/user.tcp.adapter.ts
1917
1987
  var import_dotenv = require("dotenv");
1918
1988
  var import_microservices = require("@nestjs/microservices");
@@ -2240,11 +2310,13 @@ Plan = __decorateClass([
2240
2310
  BankDetail,
2241
2311
  BaseEntity,
2242
2312
  CLIENT_PROFILE_PATTERN,
2313
+ COMPANY_ROLES_PATTERNS,
2243
2314
  ClientChangePasswordDto,
2244
2315
  ClientCreateAccountDto,
2245
2316
  ClientProfileQuestionDto,
2246
2317
  CompanyProfile,
2247
2318
  CompanyRole,
2319
+ CreateCompanyRoleDto,
2248
2320
  CreateQuestionDto,
2249
2321
  CreateRatingDto,
2250
2322
  CreateSubAdminDto,
@@ -2313,8 +2385,10 @@ Plan = __decorateClass([
2313
2385
  SystemPreference,
2314
2386
  SystemPreferenceDto,
2315
2387
  SystemPreferenceKey,
2388
+ ToggleCompanyRoleVisibilityDto,
2316
2389
  TypeOfEmploymentEnum,
2317
2390
  UpdateCompanyProfileDto,
2391
+ UpdateCompanyRoleDto,
2318
2392
  UpdateSubAdminAccountStatusDto,
2319
2393
  UpdateSubAdminDto,
2320
2394
  User,
package/dist/index.mjs CHANGED
@@ -795,6 +795,15 @@ __decorateClass([
795
795
  nullable: true
796
796
  })
797
797
  ], FreelancerProfile.prototype, "onboardingStepCompleted", 2);
798
+ __decorateClass([
799
+ Column5({ name: "country_id", type: "integer", nullable: true })
800
+ ], FreelancerProfile.prototype, "countryId", 2);
801
+ __decorateClass([
802
+ Column5({ name: "freelancer_address", type: "varchar", nullable: true })
803
+ ], FreelancerProfile.prototype, "freelancerAddress", 2);
804
+ __decorateClass([
805
+ Column5({ name: "freelancer_about", type: "varchar", nullable: true })
806
+ ], FreelancerProfile.prototype, "freelancerAbout", 2);
798
807
  FreelancerProfile = __decorateClass([
799
808
  Entity4("freelancer_profiles")
800
809
  ], FreelancerProfile);
@@ -1786,7 +1795,8 @@ __decorateClass([
1786
1795
  var PROFILE_PATTERN = {
1787
1796
  fetchFreelancerProfile: "fetch.freelancer.profile",
1788
1797
  changeFreelancerPassword: "change.freelancer.password",
1789
- uploadFreelancerProfilePic: "upload.freelancer.profilepic"
1798
+ uploadFreelancerProfilePic: "upload.freelancer.profilepic",
1799
+ updateFreelancerProfile: "update.freelancer.profile"
1790
1800
  };
1791
1801
 
1792
1802
  // src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
@@ -1960,6 +1970,62 @@ __decorateClass([
1960
1970
  IsString14({ message: "Review must be a string" })
1961
1971
  ], CreateRatingDto.prototype, "review", 2);
1962
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
+
1963
2029
  // src/adapters/tcp/user.tcp.adapter.ts
1964
2030
  import { config } from "dotenv";
1965
2031
  import { Transport } from "@nestjs/microservices";
@@ -2286,11 +2352,13 @@ export {
2286
2352
  BankDetail,
2287
2353
  BaseEntity,
2288
2354
  CLIENT_PROFILE_PATTERN,
2355
+ COMPANY_ROLES_PATTERNS,
2289
2356
  ClientChangePasswordDto,
2290
2357
  ClientCreateAccountDto,
2291
2358
  ClientProfileQuestionDto,
2292
2359
  CompanyProfile,
2293
2360
  CompanyRole,
2361
+ CreateCompanyRoleDto,
2294
2362
  CreateQuestionDto,
2295
2363
  CreateRatingDto,
2296
2364
  CreateSubAdminDto,
@@ -2359,8 +2427,10 @@ export {
2359
2427
  SystemPreference,
2360
2428
  SystemPreferenceDto,
2361
2429
  SystemPreferenceKey,
2430
+ ToggleCompanyRoleVisibilityDto,
2362
2431
  TypeOfEmploymentEnum,
2363
2432
  UpdateCompanyProfileDto,
2433
+ UpdateCompanyRoleDto,
2364
2434
  UpdateSubAdminAccountStatusDto,
2365
2435
  UpdateSubAdminDto,
2366
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,6 @@
1
+ export declare class CreateCompanyRoleDto {
2
+ name: string;
3
+ slug: string;
4
+ description: string;
5
+ isActive: boolean;
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from './create-company-role.dto';
2
+ export * from './update-company-role.dto';
3
+ export * from './toggle-company-role-visibility.dto';
@@ -0,0 +1,3 @@
1
+ export declare class ToggleCompanyRoleVisibilityDto {
2
+ isActive: boolean;
3
+ }
@@ -0,0 +1,6 @@
1
+ export declare class UpdateCompanyRoleDto {
2
+ name: string;
3
+ slug: string;
4
+ description: string;
5
+ isActive: boolean;
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from './pattern/pattern';
2
+ export * from './dto';
3
+ export * from './company-role.interface';
@@ -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
+ };
@@ -12,3 +12,4 @@ export * from './plan';
12
12
  export * from './system-preference';
13
13
  export * from './notification';
14
14
  export * from './rating';
15
+ export * from './company-role';
@@ -0,0 +1,22 @@
1
+ export declare enum NatureOfWorkDto {
2
+ FULLTIME = "FULLTIME",
3
+ PARTTIME = "PARTTIME",
4
+ BOTH = "BOTH"
5
+ }
6
+ export declare class UpdateFreelancerProfileDto {
7
+ firstName?: string;
8
+ lastName?: string;
9
+ email?: string;
10
+ mobile?: string;
11
+ countryId?: number;
12
+ currency?: string;
13
+ expectedHourlyCompensation?: string;
14
+ natureOfWork: NatureOfWorkDto;
15
+ portfolioLink?: string;
16
+ freelancerAddress?: string;
17
+ freelancerAbout?: string;
18
+ linkedinProfileLink?: string;
19
+ kaggleProfileLink?: string;
20
+ githubProfileLink?: string;
21
+ stackOverflowProfileLink?: string;
22
+ }
@@ -2,4 +2,5 @@ export declare const PROFILE_PATTERN: {
2
2
  fetchFreelancerProfile: string;
3
3
  changeFreelancerPassword: string;
4
4
  uploadFreelancerProfilePic: string;
5
+ updateFreelancerProfile: string;
5
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.120",
3
+ "version": "1.0.122",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",