@experts_hub/shared 1.0.138 → 1.0.139

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.
@@ -0,0 +1,9 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { User } from "./user.entity";
3
+ export declare class FreelancerEducation extends BaseEntity {
4
+ userId: number;
5
+ user: User;
6
+ degree: string;
7
+ university: string;
8
+ yearOfGraduation: string;
9
+ }
@@ -6,6 +6,7 @@ export * from './question.entity';
6
6
  export * from './otp.entity';
7
7
  export * from './freelancer-profile.entity';
8
8
  export * from './freelancer-experience.entity';
9
+ export * from './freelancer-education.entity';
9
10
  export * from './company-profile.entity';
10
11
  export * from './company-role.entity';
11
12
  export * from './skill.entity';
@@ -11,6 +11,7 @@ import { Rating } from "./rating.entity";
11
11
  import { JobApplication } from "./job-application.entity";
12
12
  import { CompanyRole } from "./company-role.entity";
13
13
  import { FreelancerExperience } from "./freelancer-experience.entity";
14
+ import { FreelancerEducation } from "./freelancer-education.entity";
14
15
  export declare enum AccountType {
15
16
  ADMIN = "ADMIN",
16
17
  SUB_ADMIN = "SUB_ADMIN",
@@ -69,4 +70,5 @@ export declare class User extends BaseEntity {
69
70
  jobApplications: JobApplication[];
70
71
  companyRole: CompanyRole[];
71
72
  freelancerExperience: FreelancerExperience;
73
+ freelancerEducation: FreelancerEducation;
72
74
  }
package/dist/index.d.mts CHANGED
@@ -775,6 +775,14 @@ declare class FreelancerExperience extends BaseEntity {
775
775
  description: string;
776
776
  }
777
777
 
778
+ declare class FreelancerEducation extends BaseEntity {
779
+ userId: number;
780
+ user: User;
781
+ degree: string;
782
+ university: string;
783
+ yearOfGraduation: string;
784
+ }
785
+
778
786
  declare enum AccountType {
779
787
  ADMIN = "ADMIN",
780
788
  SUB_ADMIN = "SUB_ADMIN",
@@ -833,6 +841,7 @@ declare class User extends BaseEntity {
833
841
  jobApplications: JobApplication[];
834
842
  companyRole: CompanyRole[];
835
843
  freelancerExperience: FreelancerExperience;
844
+ freelancerEducation: FreelancerEducation;
836
845
  }
837
846
 
838
847
  declare enum RatingTypeEnum {
@@ -1082,6 +1091,31 @@ interface IAttachPermissionsToCompanyMemberResponse {
1082
1091
  message: string;
1083
1092
  }
1084
1093
 
1094
+ declare const FREELANCER_EDUCATION_PATTERN: {
1095
+ fetchFreelancerEducation: string;
1096
+ createFreelancerEducation: string;
1097
+ updateFreelancerEducation: string;
1098
+ };
1099
+
1100
+ declare class CreateEducationDto {
1101
+ degree: string;
1102
+ university: string;
1103
+ yearOfGraduation: string;
1104
+ }
1105
+ declare class CreateFreelancerEducationDto {
1106
+ education: CreateEducationDto[];
1107
+ }
1108
+
1109
+ declare class UpdateEducationDto {
1110
+ uuid?: string;
1111
+ degree: string;
1112
+ university: string;
1113
+ yearOfGraduation: string;
1114
+ }
1115
+ declare class UpdateFreelancerEducationDto {
1116
+ education: UpdateEducationDto[];
1117
+ }
1118
+
1085
1119
  declare const UserTCPAdapter: () => MicroserviceOptions;
1086
1120
 
1087
1121
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -1132,4 +1166,4 @@ declare class Plan extends BaseEntity {
1132
1166
  features: Feature[];
1133
1167
  }
1134
1168
 
1135
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateExperienceDto, CreateFreelancerExperienceDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EmploymentType, FREELANCER_EXPERIENCE_PATTERN, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerExperience, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, 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 IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, 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, NatureOfWorkDto, 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, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SenseloafLog, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateExperienceDto, UpdateFreelancerExperienceDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
1169
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateEducationDto, CreateExperienceDto, CreateFreelancerEducationDto, CreateFreelancerExperienceDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EmploymentType, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerExperience, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, 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 IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, 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, NatureOfWorkDto, 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, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SenseloafLog, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateEducationDto, UpdateExperienceDto, UpdateFreelancerEducationDto, UpdateFreelancerExperienceDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -775,6 +775,14 @@ declare class FreelancerExperience extends BaseEntity {
775
775
  description: string;
776
776
  }
777
777
 
778
+ declare class FreelancerEducation extends BaseEntity {
779
+ userId: number;
780
+ user: User;
781
+ degree: string;
782
+ university: string;
783
+ yearOfGraduation: string;
784
+ }
785
+
778
786
  declare enum AccountType {
779
787
  ADMIN = "ADMIN",
780
788
  SUB_ADMIN = "SUB_ADMIN",
@@ -833,6 +841,7 @@ declare class User extends BaseEntity {
833
841
  jobApplications: JobApplication[];
834
842
  companyRole: CompanyRole[];
835
843
  freelancerExperience: FreelancerExperience;
844
+ freelancerEducation: FreelancerEducation;
836
845
  }
837
846
 
838
847
  declare enum RatingTypeEnum {
@@ -1082,6 +1091,31 @@ interface IAttachPermissionsToCompanyMemberResponse {
1082
1091
  message: string;
1083
1092
  }
1084
1093
 
1094
+ declare const FREELANCER_EDUCATION_PATTERN: {
1095
+ fetchFreelancerEducation: string;
1096
+ createFreelancerEducation: string;
1097
+ updateFreelancerEducation: string;
1098
+ };
1099
+
1100
+ declare class CreateEducationDto {
1101
+ degree: string;
1102
+ university: string;
1103
+ yearOfGraduation: string;
1104
+ }
1105
+ declare class CreateFreelancerEducationDto {
1106
+ education: CreateEducationDto[];
1107
+ }
1108
+
1109
+ declare class UpdateEducationDto {
1110
+ uuid?: string;
1111
+ degree: string;
1112
+ university: string;
1113
+ yearOfGraduation: string;
1114
+ }
1115
+ declare class UpdateFreelancerEducationDto {
1116
+ education: UpdateEducationDto[];
1117
+ }
1118
+
1085
1119
  declare const UserTCPAdapter: () => MicroserviceOptions;
1086
1120
 
1087
1121
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -1132,4 +1166,4 @@ declare class Plan extends BaseEntity {
1132
1166
  features: Feature[];
1133
1167
  }
1134
1168
 
1135
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateExperienceDto, CreateFreelancerExperienceDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EmploymentType, FREELANCER_EXPERIENCE_PATTERN, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerExperience, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, 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 IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, 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, NatureOfWorkDto, 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, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SenseloafLog, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateExperienceDto, UpdateFreelancerExperienceDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
1169
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateEducationDto, CreateExperienceDto, CreateFreelancerEducationDto, CreateFreelancerExperienceDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EmploymentType, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerExperience, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, 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 IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, 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, NatureOfWorkDto, 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, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SenseloafLog, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateEducationDto, UpdateExperienceDto, UpdateFreelancerEducationDto, UpdateFreelancerExperienceDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -47,13 +47,16 @@ __export(index_exports, {
47
47
  CompanyRole: () => CompanyRole,
48
48
  CreateCompanyMemberDto: () => CreateCompanyMemberDto,
49
49
  CreateCompanyRoleDto: () => CreateCompanyRoleDto,
50
+ CreateEducationDto: () => CreateEducationDto,
50
51
  CreateExperienceDto: () => CreateExperienceDto,
52
+ CreateFreelancerEducationDto: () => CreateFreelancerEducationDto,
51
53
  CreateFreelancerExperienceDto: () => CreateFreelancerExperienceDto,
52
54
  CreateQuestionDto: () => CreateQuestionDto,
53
55
  CreateRatingDto: () => CreateRatingDto,
54
56
  CreateSubAdminDto: () => CreateSubAdminDto,
55
57
  DurationTypeEnum: () => DurationTypeEnum,
56
58
  EmploymentType: () => EmploymentType,
59
+ FREELANCER_EDUCATION_PATTERN: () => FREELANCER_EDUCATION_PATTERN,
57
60
  FREELANCER_EXPERIENCE_PATTERN: () => FREELANCER_EXPERIENCE_PATTERN,
58
61
  Feature: () => Feature,
59
62
  ForgotPasswordDto: () => ForgotPasswordDto,
@@ -61,6 +64,7 @@ __export(index_exports, {
61
64
  FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
62
65
  FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
63
66
  FreelancerDevelopmentPreferenceDto: () => FreelancerDevelopmentPreferenceDto,
67
+ FreelancerEducation: () => FreelancerEducation,
64
68
  FreelancerExperience: () => FreelancerExperience,
65
69
  FreelancerProfile: () => FreelancerProfile,
66
70
  FreelancerProfileQuestionDto: () => FreelancerProfileQuestionDto,
@@ -127,7 +131,9 @@ __export(index_exports, {
127
131
  UpdateCompanyMemberDto: () => UpdateCompanyMemberDto,
128
132
  UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
129
133
  UpdateCompanyRoleDto: () => UpdateCompanyRoleDto,
134
+ UpdateEducationDto: () => UpdateEducationDto,
130
135
  UpdateExperienceDto: () => UpdateExperienceDto,
136
+ UpdateFreelancerEducationDto: () => UpdateFreelancerEducationDto,
131
137
  UpdateFreelancerExperienceDto: () => UpdateFreelancerExperienceDto,
132
138
  UpdateFreelancerProfileDto: () => UpdateFreelancerProfileDto,
133
139
  UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
@@ -991,10 +997,10 @@ var RATING_PATTERN = {
991
997
  var import_class_validator29 = require("class-validator");
992
998
 
993
999
  // src/entities/rating.entity.ts
994
- var import_typeorm16 = require("typeorm");
1000
+ var import_typeorm17 = require("typeorm");
995
1001
 
996
1002
  // src/entities/user.entity.ts
997
- var import_typeorm15 = require("typeorm");
1003
+ var import_typeorm16 = require("typeorm");
998
1004
 
999
1005
  // src/entities/base.entity.ts
1000
1006
  var import_typeorm = require("typeorm");
@@ -1842,6 +1848,32 @@ FreelancerExperience = __decorateClass([
1842
1848
  (0, import_typeorm14.Entity)("freelancer_experiences")
1843
1849
  ], FreelancerExperience);
1844
1850
 
1851
+ // src/entities/freelancer-education.entity.ts
1852
+ var import_typeorm15 = require("typeorm");
1853
+ var FreelancerEducation = class extends BaseEntity {
1854
+ };
1855
+ // individual index to find education by user
1856
+ __decorateClass([
1857
+ (0, import_typeorm15.Column)({ name: "user_id", type: "integer", nullable: true }),
1858
+ (0, import_typeorm15.Index)()
1859
+ ], FreelancerEducation.prototype, "userId", 2);
1860
+ __decorateClass([
1861
+ (0, import_typeorm15.ManyToOne)(() => User, (user) => user.freelancerEducation),
1862
+ (0, import_typeorm15.JoinColumn)({ name: "user_id" })
1863
+ ], FreelancerEducation.prototype, "user", 2);
1864
+ __decorateClass([
1865
+ (0, import_typeorm15.Column)({ name: "degree", type: "varchar", nullable: true })
1866
+ ], FreelancerEducation.prototype, "degree", 2);
1867
+ __decorateClass([
1868
+ (0, import_typeorm15.Column)({ name: "university", type: "varchar", nullable: true })
1869
+ ], FreelancerEducation.prototype, "university", 2);
1870
+ __decorateClass([
1871
+ (0, import_typeorm15.Column)({ name: "year_of_graduation", type: "varchar", nullable: true })
1872
+ ], FreelancerEducation.prototype, "yearOfGraduation", 2);
1873
+ FreelancerEducation = __decorateClass([
1874
+ (0, import_typeorm15.Entity)("freelancer_educations")
1875
+ ], FreelancerEducation);
1876
+
1845
1877
  // src/entities/user.entity.ts
1846
1878
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
1847
1879
  AccountType2["ADMIN"] = "ADMIN";
@@ -1866,51 +1898,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
1866
1898
  var User = class extends BaseEntity {
1867
1899
  };
1868
1900
  __decorateClass([
1869
- (0, import_typeorm15.Column)({ name: "unique_id", type: "varchar", unique: true })
1901
+ (0, import_typeorm16.Column)({ name: "unique_id", type: "varchar", unique: true })
1870
1902
  ], User.prototype, "uniqueId", 2);
1871
1903
  __decorateClass([
1872
- (0, import_typeorm15.Column)({ name: "parent_id", type: "integer", nullable: true }),
1873
- (0, import_typeorm15.Index)()
1904
+ (0, import_typeorm16.Column)({ name: "parent_id", type: "integer", nullable: true }),
1905
+ (0, import_typeorm16.Index)()
1874
1906
  ], User.prototype, "parentId", 2);
1875
1907
  __decorateClass([
1876
- (0, import_typeorm15.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
1877
- (0, import_typeorm15.JoinColumn)({ name: "parent_id" })
1908
+ (0, import_typeorm16.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
1909
+ (0, import_typeorm16.JoinColumn)({ name: "parent_id" })
1878
1910
  ], User.prototype, "parent", 2);
1879
1911
  __decorateClass([
1880
- (0, import_typeorm15.OneToMany)(() => User, (user) => user.parent)
1912
+ (0, import_typeorm16.OneToMany)(() => User, (user) => user.parent)
1881
1913
  ], User.prototype, "children", 2);
1882
1914
  __decorateClass([
1883
- (0, import_typeorm15.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1915
+ (0, import_typeorm16.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1884
1916
  ], User.prototype, "username", 2);
1885
1917
  __decorateClass([
1886
- (0, import_typeorm15.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1918
+ (0, import_typeorm16.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
1887
1919
  ], User.prototype, "firstName", 2);
1888
1920
  __decorateClass([
1889
- (0, import_typeorm15.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1921
+ (0, import_typeorm16.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
1890
1922
  ], User.prototype, "lastName", 2);
1891
1923
  __decorateClass([
1892
- (0, import_typeorm15.Column)({ name: "date_of_birth", type: "date", nullable: true })
1924
+ (0, import_typeorm16.Column)({ name: "date_of_birth", type: "date", nullable: true })
1893
1925
  ], User.prototype, "dateOfBirth", 2);
1894
1926
  __decorateClass([
1895
- (0, import_typeorm15.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1927
+ (0, import_typeorm16.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
1896
1928
  ], User.prototype, "gender", 2);
1897
1929
  __decorateClass([
1898
- (0, import_typeorm15.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1930
+ (0, import_typeorm16.Column)({ name: "profile_picture_url", type: "text", nullable: true })
1899
1931
  ], User.prototype, "profilePictureUrl", 2);
1900
1932
  __decorateClass([
1901
- (0, import_typeorm15.Column)({ name: "email", type: "varchar", unique: true })
1933
+ (0, import_typeorm16.Column)({ name: "email", type: "varchar", unique: true })
1902
1934
  ], User.prototype, "email", 2);
1903
1935
  __decorateClass([
1904
- (0, import_typeorm15.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1936
+ (0, import_typeorm16.Column)({ name: "mobile_code", type: "varchar", nullable: true })
1905
1937
  ], User.prototype, "mobileCode", 2);
1906
1938
  __decorateClass([
1907
- (0, import_typeorm15.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1939
+ (0, import_typeorm16.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
1908
1940
  ], User.prototype, "mobile", 2);
1909
1941
  __decorateClass([
1910
- (0, import_typeorm15.Column)({ name: "password", type: "varchar" })
1942
+ (0, import_typeorm16.Column)({ name: "password", type: "varchar" })
1911
1943
  ], User.prototype, "password", 2);
1912
1944
  __decorateClass([
1913
- (0, import_typeorm15.Column)({
1945
+ (0, import_typeorm16.Column)({
1914
1946
  name: "account_type",
1915
1947
  type: "enum",
1916
1948
  enum: AccountType,
@@ -1918,7 +1950,7 @@ __decorateClass([
1918
1950
  })
1919
1951
  ], User.prototype, "accountType", 2);
1920
1952
  __decorateClass([
1921
- (0, import_typeorm15.Column)({
1953
+ (0, import_typeorm16.Column)({
1922
1954
  name: "account_status",
1923
1955
  type: "enum",
1924
1956
  enum: AccountStatus,
@@ -1926,36 +1958,36 @@ __decorateClass([
1926
1958
  })
1927
1959
  ], User.prototype, "accountStatus", 2);
1928
1960
  __decorateClass([
1929
- (0, import_typeorm15.Column)({ name: "is_email_verified", type: "boolean", default: false })
1961
+ (0, import_typeorm16.Column)({ name: "is_email_verified", type: "boolean", default: false })
1930
1962
  ], User.prototype, "isEmailVerified", 2);
1931
1963
  __decorateClass([
1932
- (0, import_typeorm15.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1964
+ (0, import_typeorm16.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
1933
1965
  ], User.prototype, "isMobileVerified", 2);
1934
1966
  __decorateClass([
1935
- (0, import_typeorm15.Column)({
1967
+ (0, import_typeorm16.Column)({
1936
1968
  name: "last_login_at",
1937
1969
  type: "timestamp with time zone",
1938
1970
  nullable: true
1939
1971
  })
1940
1972
  ], User.prototype, "lastLoginAt", 2);
1941
1973
  __decorateClass([
1942
- (0, import_typeorm15.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1974
+ (0, import_typeorm16.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1943
1975
  ], User.prototype, "lastLoginIp", 2);
1944
1976
  __decorateClass([
1945
- (0, import_typeorm15.Column)({ name: "reset_token", type: "varchar", nullable: true })
1977
+ (0, import_typeorm16.Column)({ name: "reset_token", type: "varchar", nullable: true })
1946
1978
  ], User.prototype, "resetToken", 2);
1947
1979
  __decorateClass([
1948
- (0, import_typeorm15.Column)({
1980
+ (0, import_typeorm16.Column)({
1949
1981
  name: "reset_token_expire_at",
1950
1982
  type: "timestamp with time zone",
1951
1983
  nullable: true
1952
1984
  })
1953
1985
  ], User.prototype, "resetTokenExpireAt", 2);
1954
1986
  __decorateClass([
1955
- (0, import_typeorm15.OneToMany)(() => RefreshToken, (token) => token.user)
1987
+ (0, import_typeorm16.OneToMany)(() => RefreshToken, (token) => token.user)
1956
1988
  ], User.prototype, "refreshTokens", 2);
1957
1989
  __decorateClass([
1958
- (0, import_typeorm15.Column)({
1990
+ (0, import_typeorm16.Column)({
1959
1991
  name: "provider",
1960
1992
  type: "enum",
1961
1993
  enum: Provider,
@@ -1964,61 +1996,64 @@ __decorateClass([
1964
1996
  })
1965
1997
  ], User.prototype, "provider", 2);
1966
1998
  __decorateClass([
1967
- (0, import_typeorm15.Column)({ name: "provider_token", type: "varchar", nullable: true })
1999
+ (0, import_typeorm16.Column)({ name: "provider_token", type: "varchar", nullable: true })
1968
2000
  ], User.prototype, "providerToken", 2);
1969
2001
  __decorateClass([
1970
- (0, import_typeorm15.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
2002
+ (0, import_typeorm16.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1971
2003
  ], User.prototype, "linkedInId", 2);
1972
2004
  __decorateClass([
1973
- (0, import_typeorm15.Column)({ name: "google_id", type: "varchar", nullable: true })
2005
+ (0, import_typeorm16.Column)({ name: "google_id", type: "varchar", nullable: true })
1974
2006
  ], User.prototype, "googleId", 2);
1975
2007
  __decorateClass([
1976
- (0, import_typeorm15.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
2008
+ (0, import_typeorm16.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1977
2009
  ], User.prototype, "gitLabsId", 2);
1978
2010
  __decorateClass([
1979
- (0, import_typeorm15.OneToMany)(() => Otp, (otp) => otp.user)
2011
+ (0, import_typeorm16.OneToMany)(() => Otp, (otp) => otp.user)
1980
2012
  ], User.prototype, "otps", 2);
1981
2013
  __decorateClass([
1982
- (0, import_typeorm15.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
2014
+ (0, import_typeorm16.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
1983
2015
  ], User.prototype, "senseloafLogs", 2);
1984
2016
  __decorateClass([
1985
- (0, import_typeorm15.OneToOne)(
2017
+ (0, import_typeorm16.OneToOne)(
1986
2018
  () => FreelancerProfile,
1987
2019
  (freelancerProfile) => freelancerProfile.user
1988
2020
  )
1989
2021
  ], User.prototype, "freelancerProfile", 2);
1990
2022
  __decorateClass([
1991
- (0, import_typeorm15.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
2023
+ (0, import_typeorm16.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
1992
2024
  ], User.prototype, "companyProfile", 2);
1993
2025
  __decorateClass([
1994
- (0, import_typeorm15.OneToMany)(() => Job, (job) => job.user)
2026
+ (0, import_typeorm16.OneToMany)(() => Job, (job) => job.user)
1995
2027
  ], User.prototype, "jobs", 2);
1996
2028
  __decorateClass([
1997
- (0, import_typeorm15.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
2029
+ (0, import_typeorm16.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1998
2030
  ], User.prototype, "bankDetail", 2);
1999
2031
  __decorateClass([
2000
- (0, import_typeorm15.OneToMany)(
2032
+ (0, import_typeorm16.OneToMany)(
2001
2033
  () => SystemPreference,
2002
2034
  (systemPreference) => systemPreference.user
2003
2035
  )
2004
2036
  ], User.prototype, "systemPreference", 2);
2005
2037
  __decorateClass([
2006
- (0, import_typeorm15.OneToMany)(() => Rating, (rating) => rating.reviewer)
2038
+ (0, import_typeorm16.OneToMany)(() => Rating, (rating) => rating.reviewer)
2007
2039
  ], User.prototype, "givenRatings", 2);
2008
2040
  __decorateClass([
2009
- (0, import_typeorm15.OneToMany)(() => Rating, (rating) => rating.reviewee)
2041
+ (0, import_typeorm16.OneToMany)(() => Rating, (rating) => rating.reviewee)
2010
2042
  ], User.prototype, "receivedRatings", 2);
2011
2043
  __decorateClass([
2012
- (0, import_typeorm15.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
2044
+ (0, import_typeorm16.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
2013
2045
  ], User.prototype, "jobApplications", 2);
2014
2046
  __decorateClass([
2015
- (0, import_typeorm15.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
2047
+ (0, import_typeorm16.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
2016
2048
  ], User.prototype, "companyRole", 2);
2017
2049
  __decorateClass([
2018
- (0, import_typeorm15.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
2050
+ (0, import_typeorm16.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
2019
2051
  ], User.prototype, "freelancerExperience", 2);
2052
+ __decorateClass([
2053
+ (0, import_typeorm16.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
2054
+ ], User.prototype, "freelancerEducation", 2);
2020
2055
  User = __decorateClass([
2021
- (0, import_typeorm15.Entity)("users")
2056
+ (0, import_typeorm16.Entity)("users")
2022
2057
  ], User);
2023
2058
 
2024
2059
  // src/entities/rating.entity.ts
@@ -2030,36 +2065,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
2030
2065
  var Rating = class extends BaseEntity {
2031
2066
  };
2032
2067
  __decorateClass([
2033
- (0, import_typeorm16.Column)({ name: "reviewer_id", type: "integer" }),
2034
- (0, import_typeorm16.Index)()
2068
+ (0, import_typeorm17.Column)({ name: "reviewer_id", type: "integer" }),
2069
+ (0, import_typeorm17.Index)()
2035
2070
  ], Rating.prototype, "reviewer_id", 2);
2036
2071
  __decorateClass([
2037
- (0, import_typeorm16.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2038
- (0, import_typeorm16.JoinColumn)({ name: "reviewer_id" })
2072
+ (0, import_typeorm17.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2073
+ (0, import_typeorm17.JoinColumn)({ name: "reviewer_id" })
2039
2074
  ], Rating.prototype, "reviewer", 2);
2040
2075
  __decorateClass([
2041
- (0, import_typeorm16.Column)({ name: "reviewee_id", type: "integer" }),
2042
- (0, import_typeorm16.Index)()
2076
+ (0, import_typeorm17.Column)({ name: "reviewee_id", type: "integer" }),
2077
+ (0, import_typeorm17.Index)()
2043
2078
  ], Rating.prototype, "reviewee_id", 2);
2044
2079
  __decorateClass([
2045
- (0, import_typeorm16.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2046
- (0, import_typeorm16.JoinColumn)({ name: "reviewee_id" })
2080
+ (0, import_typeorm17.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2081
+ (0, import_typeorm17.JoinColumn)({ name: "reviewee_id" })
2047
2082
  ], Rating.prototype, "reviewee", 2);
2048
2083
  __decorateClass([
2049
- (0, import_typeorm16.Column)({
2084
+ (0, import_typeorm17.Column)({
2050
2085
  type: "enum",
2051
2086
  enum: RatingTypeEnum,
2052
2087
  nullable: true
2053
2088
  })
2054
2089
  ], Rating.prototype, "ratingType", 2);
2055
2090
  __decorateClass([
2056
- (0, import_typeorm16.Column)({ type: "integer", nullable: true })
2091
+ (0, import_typeorm17.Column)({ type: "integer", nullable: true })
2057
2092
  ], Rating.prototype, "rating", 2);
2058
2093
  __decorateClass([
2059
- (0, import_typeorm16.Column)({ type: "text", nullable: true })
2094
+ (0, import_typeorm17.Column)({ type: "text", nullable: true })
2060
2095
  ], Rating.prototype, "review", 2);
2061
2096
  Rating = __decorateClass([
2062
- (0, import_typeorm16.Entity)("ratings")
2097
+ (0, import_typeorm17.Entity)("ratings")
2063
2098
  ], Rating);
2064
2099
 
2065
2100
  // src/modules/rating/dto/add.rating.dto.ts
@@ -2248,6 +2283,66 @@ __decorateClass([
2248
2283
  (0, import_class_validator37.IsBoolean)()
2249
2284
  ], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
2250
2285
 
2286
+ // src/modules/user/freelancer-education/pattern/pattern.ts
2287
+ var FREELANCER_EDUCATION_PATTERN = {
2288
+ fetchFreelancerEducation: "fetch.freelancer.education",
2289
+ createFreelancerEducation: "create.freelancer.education",
2290
+ updateFreelancerEducation: "update.freelancer.education"
2291
+ };
2292
+
2293
+ // src/modules/user/freelancer-education/dto/create-freelancer-education.dto.ts
2294
+ var import_class_validator38 = require("class-validator");
2295
+ var import_class_transformer4 = require("class-transformer");
2296
+ var CreateEducationDto = class {
2297
+ };
2298
+ __decorateClass([
2299
+ (0, import_class_validator38.IsString)(),
2300
+ (0, import_class_validator38.IsNotEmpty)()
2301
+ ], CreateEducationDto.prototype, "degree", 2);
2302
+ __decorateClass([
2303
+ (0, import_class_validator38.IsString)(),
2304
+ (0, import_class_validator38.IsNotEmpty)()
2305
+ ], CreateEducationDto.prototype, "university", 2);
2306
+ __decorateClass([
2307
+ (0, import_class_validator38.IsString)(),
2308
+ (0, import_class_validator38.IsNotEmpty)()
2309
+ ], CreateEducationDto.prototype, "yearOfGraduation", 2);
2310
+ var CreateFreelancerEducationDto = class {
2311
+ };
2312
+ __decorateClass([
2313
+ (0, import_class_validator38.IsArray)(),
2314
+ (0, import_class_validator38.ValidateNested)({ each: true }),
2315
+ (0, import_class_transformer4.Type)(() => CreateEducationDto)
2316
+ ], CreateFreelancerEducationDto.prototype, "education", 2);
2317
+
2318
+ // src/modules/user/freelancer-education/dto/update-freelancer-education.dto.ts
2319
+ var import_class_validator39 = require("class-validator");
2320
+ var import_class_transformer5 = require("class-transformer");
2321
+ var UpdateEducationDto = class {
2322
+ };
2323
+ __decorateClass([
2324
+ (0, import_class_validator39.IsOptional)()
2325
+ ], UpdateEducationDto.prototype, "uuid", 2);
2326
+ __decorateClass([
2327
+ (0, import_class_validator39.IsString)(),
2328
+ (0, import_class_validator39.IsNotEmpty)()
2329
+ ], UpdateEducationDto.prototype, "degree", 2);
2330
+ __decorateClass([
2331
+ (0, import_class_validator39.IsString)(),
2332
+ (0, import_class_validator39.IsNotEmpty)()
2333
+ ], UpdateEducationDto.prototype, "university", 2);
2334
+ __decorateClass([
2335
+ (0, import_class_validator39.IsString)(),
2336
+ (0, import_class_validator39.IsNotEmpty)()
2337
+ ], UpdateEducationDto.prototype, "yearOfGraduation", 2);
2338
+ var UpdateFreelancerEducationDto = class {
2339
+ };
2340
+ __decorateClass([
2341
+ (0, import_class_validator39.IsArray)(),
2342
+ (0, import_class_validator39.ValidateNested)({ each: true }),
2343
+ (0, import_class_transformer5.Type)(() => UpdateEducationDto)
2344
+ ], UpdateFreelancerEducationDto.prototype, "education", 2);
2345
+
2251
2346
  // src/adapters/tcp/user.tcp.adapter.ts
2252
2347
  var import_dotenv = require("dotenv");
2253
2348
  var import_microservices = require("@nestjs/microservices");
@@ -2465,7 +2560,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
2465
2560
  };
2466
2561
 
2467
2562
  // src/entities/question.entity.ts
2468
- var import_typeorm17 = require("typeorm");
2563
+ var import_typeorm18 = require("typeorm");
2469
2564
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2470
2565
  QuestionFor2["CLIENT"] = "CLIENT";
2471
2566
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -2474,16 +2569,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2474
2569
  var Question = class extends BaseEntity {
2475
2570
  };
2476
2571
  __decorateClass([
2477
- (0, import_typeorm17.Column)({ name: "question", type: "varchar" })
2572
+ (0, import_typeorm18.Column)({ name: "question", type: "varchar" })
2478
2573
  ], Question.prototype, "question", 2);
2479
2574
  __decorateClass([
2480
- (0, import_typeorm17.Column)({ name: "hint", type: "varchar", nullable: true })
2575
+ (0, import_typeorm18.Column)({ name: "hint", type: "varchar", nullable: true })
2481
2576
  ], Question.prototype, "hint", 2);
2482
2577
  __decorateClass([
2483
- (0, import_typeorm17.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2578
+ (0, import_typeorm18.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2484
2579
  ], Question.prototype, "slug", 2);
2485
2580
  __decorateClass([
2486
- (0, import_typeorm17.Column)({
2581
+ (0, import_typeorm18.Column)({
2487
2582
  name: "question_for",
2488
2583
  type: "enum",
2489
2584
  enum: QuestionFor,
@@ -2491,76 +2586,76 @@ __decorateClass([
2491
2586
  })
2492
2587
  ], Question.prototype, "questionFor", 2);
2493
2588
  __decorateClass([
2494
- (0, import_typeorm17.Column)({ name: "type", type: "varchar", nullable: true })
2589
+ (0, import_typeorm18.Column)({ name: "type", type: "varchar", nullable: true })
2495
2590
  ], Question.prototype, "type", 2);
2496
2591
  __decorateClass([
2497
- (0, import_typeorm17.Column)({ name: "options", type: "jsonb", nullable: true })
2592
+ (0, import_typeorm18.Column)({ name: "options", type: "jsonb", nullable: true })
2498
2593
  ], Question.prototype, "options", 2);
2499
2594
  __decorateClass([
2500
- (0, import_typeorm17.Column)({ name: "is_active", type: "boolean", default: false })
2595
+ (0, import_typeorm18.Column)({ name: "is_active", type: "boolean", default: false })
2501
2596
  ], Question.prototype, "isActive", 2);
2502
2597
  Question = __decorateClass([
2503
- (0, import_typeorm17.Entity)("questions")
2598
+ (0, import_typeorm18.Entity)("questions")
2504
2599
  ], Question);
2505
2600
 
2506
2601
  // src/entities/job-role.entity.ts
2507
- var import_typeorm18 = require("typeorm");
2602
+ var import_typeorm19 = require("typeorm");
2508
2603
  var JobRoles = class extends BaseEntity {
2509
2604
  };
2510
2605
  __decorateClass([
2511
- (0, import_typeorm18.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2606
+ (0, import_typeorm19.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2512
2607
  ], JobRoles.prototype, "slug", 2);
2513
2608
  __decorateClass([
2514
- (0, import_typeorm18.Column)({ name: "name", type: "varchar", nullable: true })
2609
+ (0, import_typeorm19.Column)({ name: "name", type: "varchar", nullable: true })
2515
2610
  ], JobRoles.prototype, "name", 2);
2516
2611
  __decorateClass([
2517
- (0, import_typeorm18.Column)({ name: "is_active", type: "boolean", default: true })
2612
+ (0, import_typeorm19.Column)({ name: "is_active", type: "boolean", default: true })
2518
2613
  ], JobRoles.prototype, "isActive", 2);
2519
2614
  JobRoles = __decorateClass([
2520
- (0, import_typeorm18.Entity)("job_roles")
2615
+ (0, import_typeorm19.Entity)("job_roles")
2521
2616
  ], JobRoles);
2522
2617
 
2523
2618
  // src/entities/plan.entity.ts
2524
- var import_typeorm20 = require("typeorm");
2619
+ var import_typeorm21 = require("typeorm");
2525
2620
 
2526
2621
  // src/entities/feature.entity.ts
2527
- var import_typeorm19 = require("typeorm");
2622
+ var import_typeorm20 = require("typeorm");
2528
2623
  var Feature = class extends BaseEntity {
2529
2624
  };
2530
2625
  __decorateClass([
2531
- (0, import_typeorm19.Column)({ name: "name", type: "varchar", unique: true })
2626
+ (0, import_typeorm20.Column)({ name: "name", type: "varchar", unique: true })
2532
2627
  ], Feature.prototype, "name", 2);
2533
2628
  __decorateClass([
2534
- (0, import_typeorm19.ManyToMany)(() => Plan, (plan) => plan.features)
2629
+ (0, import_typeorm20.ManyToMany)(() => Plan, (plan) => plan.features)
2535
2630
  ], Feature.prototype, "plans", 2);
2536
2631
  Feature = __decorateClass([
2537
- (0, import_typeorm19.Entity)("features")
2632
+ (0, import_typeorm20.Entity)("features")
2538
2633
  ], Feature);
2539
2634
 
2540
2635
  // src/entities/plan.entity.ts
2541
2636
  var Plan = class extends BaseEntity {
2542
2637
  };
2543
2638
  __decorateClass([
2544
- (0, import_typeorm20.Column)({ name: "name", type: "varchar", unique: true })
2639
+ (0, import_typeorm21.Column)({ name: "name", type: "varchar", unique: true })
2545
2640
  ], Plan.prototype, "name", 2);
2546
2641
  __decorateClass([
2547
- (0, import_typeorm20.Column)({ name: "description", type: "varchar", nullable: true })
2642
+ (0, import_typeorm21.Column)({ name: "description", type: "varchar", nullable: true })
2548
2643
  ], Plan.prototype, "description", 2);
2549
2644
  __decorateClass([
2550
- (0, import_typeorm20.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2645
+ (0, import_typeorm21.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2551
2646
  ], Plan.prototype, "price", 2);
2552
2647
  __decorateClass([
2553
- (0, import_typeorm20.Column)({ name: "billing_period", type: "varchar" })
2648
+ (0, import_typeorm21.Column)({ name: "billing_period", type: "varchar" })
2554
2649
  ], Plan.prototype, "billingPeriod", 2);
2555
2650
  __decorateClass([
2556
- (0, import_typeorm20.Column)({ name: "is_current", type: "boolean", default: false })
2651
+ (0, import_typeorm21.Column)({ name: "is_current", type: "boolean", default: false })
2557
2652
  ], Plan.prototype, "isCurrent", 2);
2558
2653
  __decorateClass([
2559
- (0, import_typeorm20.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2560
- (0, import_typeorm20.JoinTable)()
2654
+ (0, import_typeorm21.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2655
+ (0, import_typeorm21.JoinTable)()
2561
2656
  ], Plan.prototype, "features", 2);
2562
2657
  Plan = __decorateClass([
2563
- (0, import_typeorm20.Entity)("plans")
2658
+ (0, import_typeorm21.Entity)("plans")
2564
2659
  ], Plan);
2565
2660
  // Annotate the CommonJS export names for ESM import in node:
2566
2661
  0 && (module.exports = {
@@ -2584,13 +2679,16 @@ Plan = __decorateClass([
2584
2679
  CompanyRole,
2585
2680
  CreateCompanyMemberDto,
2586
2681
  CreateCompanyRoleDto,
2682
+ CreateEducationDto,
2587
2683
  CreateExperienceDto,
2684
+ CreateFreelancerEducationDto,
2588
2685
  CreateFreelancerExperienceDto,
2589
2686
  CreateQuestionDto,
2590
2687
  CreateRatingDto,
2591
2688
  CreateSubAdminDto,
2592
2689
  DurationTypeEnum,
2593
2690
  EmploymentType,
2691
+ FREELANCER_EDUCATION_PATTERN,
2594
2692
  FREELANCER_EXPERIENCE_PATTERN,
2595
2693
  Feature,
2596
2694
  ForgotPasswordDto,
@@ -2598,6 +2696,7 @@ Plan = __decorateClass([
2598
2696
  FreelancerChangePasswordDto,
2599
2697
  FreelancerCreateAccountDto,
2600
2698
  FreelancerDevelopmentPreferenceDto,
2699
+ FreelancerEducation,
2601
2700
  FreelancerExperience,
2602
2701
  FreelancerProfile,
2603
2702
  FreelancerProfileQuestionDto,
@@ -2664,7 +2763,9 @@ Plan = __decorateClass([
2664
2763
  UpdateCompanyMemberDto,
2665
2764
  UpdateCompanyProfileDto,
2666
2765
  UpdateCompanyRoleDto,
2766
+ UpdateEducationDto,
2667
2767
  UpdateExperienceDto,
2768
+ UpdateFreelancerEducationDto,
2668
2769
  UpdateFreelancerExperienceDto,
2669
2770
  UpdateFreelancerProfileDto,
2670
2771
  UpdateSubAdminAccountStatusDto,
package/dist/index.mjs CHANGED
@@ -955,10 +955,10 @@ import {
955
955
  } from "class-validator";
956
956
 
957
957
  // src/entities/rating.entity.ts
958
- import { Entity as Entity15, Column as Column16, ManyToOne as ManyToOne14, JoinColumn as JoinColumn14, Index as Index12 } from "typeorm";
958
+ import { Entity as Entity16, Column as Column17, ManyToOne as ManyToOne15, JoinColumn as JoinColumn15, Index as Index13 } from "typeorm";
959
959
 
960
960
  // src/entities/user.entity.ts
961
- import { Entity as Entity14, Column as Column15, OneToMany as OneToMany6, OneToOne, Index as Index11, ManyToOne as ManyToOne13, JoinColumn as JoinColumn13 } from "typeorm";
961
+ import { Entity as Entity15, Column as Column16, OneToMany as OneToMany6, OneToOne, Index as Index12, ManyToOne as ManyToOne14, JoinColumn as JoinColumn14 } from "typeorm";
962
962
 
963
963
  // src/entities/base.entity.ts
964
964
  import {
@@ -1879,6 +1879,38 @@ FreelancerExperience = __decorateClass([
1879
1879
  Entity13("freelancer_experiences")
1880
1880
  ], FreelancerExperience);
1881
1881
 
1882
+ // src/entities/freelancer-education.entity.ts
1883
+ import {
1884
+ Entity as Entity14,
1885
+ Column as Column15,
1886
+ Index as Index11,
1887
+ ManyToOne as ManyToOne13,
1888
+ JoinColumn as JoinColumn13
1889
+ } from "typeorm";
1890
+ var FreelancerEducation = class extends BaseEntity {
1891
+ };
1892
+ // individual index to find education by user
1893
+ __decorateClass([
1894
+ Column15({ name: "user_id", type: "integer", nullable: true }),
1895
+ Index11()
1896
+ ], FreelancerEducation.prototype, "userId", 2);
1897
+ __decorateClass([
1898
+ ManyToOne13(() => User, (user) => user.freelancerEducation),
1899
+ JoinColumn13({ name: "user_id" })
1900
+ ], FreelancerEducation.prototype, "user", 2);
1901
+ __decorateClass([
1902
+ Column15({ name: "degree", type: "varchar", nullable: true })
1903
+ ], FreelancerEducation.prototype, "degree", 2);
1904
+ __decorateClass([
1905
+ Column15({ name: "university", type: "varchar", nullable: true })
1906
+ ], FreelancerEducation.prototype, "university", 2);
1907
+ __decorateClass([
1908
+ Column15({ name: "year_of_graduation", type: "varchar", nullable: true })
1909
+ ], FreelancerEducation.prototype, "yearOfGraduation", 2);
1910
+ FreelancerEducation = __decorateClass([
1911
+ Entity14("freelancer_educations")
1912
+ ], FreelancerEducation);
1913
+
1882
1914
  // src/entities/user.entity.ts
1883
1915
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
1884
1916
  AccountType2["ADMIN"] = "ADMIN";
@@ -1903,51 +1935,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
1903
1935
  var User = class extends BaseEntity {
1904
1936
  };
1905
1937
  __decorateClass([
1906
- Column15({ name: "unique_id", type: "varchar", unique: true })
1938
+ Column16({ name: "unique_id", type: "varchar", unique: true })
1907
1939
  ], User.prototype, "uniqueId", 2);
1908
1940
  __decorateClass([
1909
- Column15({ name: "parent_id", type: "integer", nullable: true }),
1910
- Index11()
1941
+ Column16({ name: "parent_id", type: "integer", nullable: true }),
1942
+ Index12()
1911
1943
  ], User.prototype, "parentId", 2);
1912
1944
  __decorateClass([
1913
- ManyToOne13(() => User, (user) => user.children, { nullable: true }),
1914
- JoinColumn13({ name: "parent_id" })
1945
+ ManyToOne14(() => User, (user) => user.children, { nullable: true }),
1946
+ JoinColumn14({ name: "parent_id" })
1915
1947
  ], User.prototype, "parent", 2);
1916
1948
  __decorateClass([
1917
1949
  OneToMany6(() => User, (user) => user.parent)
1918
1950
  ], User.prototype, "children", 2);
1919
1951
  __decorateClass([
1920
- Column15({ name: "username", type: "varchar", unique: true, nullable: true })
1952
+ Column16({ name: "username", type: "varchar", unique: true, nullable: true })
1921
1953
  ], User.prototype, "username", 2);
1922
1954
  __decorateClass([
1923
- Column15({ name: "first_name", type: "varchar", length: 100, nullable: true })
1955
+ Column16({ name: "first_name", type: "varchar", length: 100, nullable: true })
1924
1956
  ], User.prototype, "firstName", 2);
1925
1957
  __decorateClass([
1926
- Column15({ name: "last_name", type: "varchar", length: 100, nullable: true })
1958
+ Column16({ name: "last_name", type: "varchar", length: 100, nullable: true })
1927
1959
  ], User.prototype, "lastName", 2);
1928
1960
  __decorateClass([
1929
- Column15({ name: "date_of_birth", type: "date", nullable: true })
1961
+ Column16({ name: "date_of_birth", type: "date", nullable: true })
1930
1962
  ], User.prototype, "dateOfBirth", 2);
1931
1963
  __decorateClass([
1932
- Column15({ name: "gender", type: "varchar", length: 10, nullable: true })
1964
+ Column16({ name: "gender", type: "varchar", length: 10, nullable: true })
1933
1965
  ], User.prototype, "gender", 2);
1934
1966
  __decorateClass([
1935
- Column15({ name: "profile_picture_url", type: "text", nullable: true })
1967
+ Column16({ name: "profile_picture_url", type: "text", nullable: true })
1936
1968
  ], User.prototype, "profilePictureUrl", 2);
1937
1969
  __decorateClass([
1938
- Column15({ name: "email", type: "varchar", unique: true })
1970
+ Column16({ name: "email", type: "varchar", unique: true })
1939
1971
  ], User.prototype, "email", 2);
1940
1972
  __decorateClass([
1941
- Column15({ name: "mobile_code", type: "varchar", nullable: true })
1973
+ Column16({ name: "mobile_code", type: "varchar", nullable: true })
1942
1974
  ], User.prototype, "mobileCode", 2);
1943
1975
  __decorateClass([
1944
- Column15({ name: "mobile", type: "varchar", unique: true, nullable: true })
1976
+ Column16({ name: "mobile", type: "varchar", unique: true, nullable: true })
1945
1977
  ], User.prototype, "mobile", 2);
1946
1978
  __decorateClass([
1947
- Column15({ name: "password", type: "varchar" })
1979
+ Column16({ name: "password", type: "varchar" })
1948
1980
  ], User.prototype, "password", 2);
1949
1981
  __decorateClass([
1950
- Column15({
1982
+ Column16({
1951
1983
  name: "account_type",
1952
1984
  type: "enum",
1953
1985
  enum: AccountType,
@@ -1955,7 +1987,7 @@ __decorateClass([
1955
1987
  })
1956
1988
  ], User.prototype, "accountType", 2);
1957
1989
  __decorateClass([
1958
- Column15({
1990
+ Column16({
1959
1991
  name: "account_status",
1960
1992
  type: "enum",
1961
1993
  enum: AccountStatus,
@@ -1963,26 +1995,26 @@ __decorateClass([
1963
1995
  })
1964
1996
  ], User.prototype, "accountStatus", 2);
1965
1997
  __decorateClass([
1966
- Column15({ name: "is_email_verified", type: "boolean", default: false })
1998
+ Column16({ name: "is_email_verified", type: "boolean", default: false })
1967
1999
  ], User.prototype, "isEmailVerified", 2);
1968
2000
  __decorateClass([
1969
- Column15({ name: "is_mobile_verified", type: "boolean", default: false })
2001
+ Column16({ name: "is_mobile_verified", type: "boolean", default: false })
1970
2002
  ], User.prototype, "isMobileVerified", 2);
1971
2003
  __decorateClass([
1972
- Column15({
2004
+ Column16({
1973
2005
  name: "last_login_at",
1974
2006
  type: "timestamp with time zone",
1975
2007
  nullable: true
1976
2008
  })
1977
2009
  ], User.prototype, "lastLoginAt", 2);
1978
2010
  __decorateClass([
1979
- Column15({ name: "last_login_ip", type: "varchar", nullable: true })
2011
+ Column16({ name: "last_login_ip", type: "varchar", nullable: true })
1980
2012
  ], User.prototype, "lastLoginIp", 2);
1981
2013
  __decorateClass([
1982
- Column15({ name: "reset_token", type: "varchar", nullable: true })
2014
+ Column16({ name: "reset_token", type: "varchar", nullable: true })
1983
2015
  ], User.prototype, "resetToken", 2);
1984
2016
  __decorateClass([
1985
- Column15({
2017
+ Column16({
1986
2018
  name: "reset_token_expire_at",
1987
2019
  type: "timestamp with time zone",
1988
2020
  nullable: true
@@ -1992,7 +2024,7 @@ __decorateClass([
1992
2024
  OneToMany6(() => RefreshToken, (token) => token.user)
1993
2025
  ], User.prototype, "refreshTokens", 2);
1994
2026
  __decorateClass([
1995
- Column15({
2027
+ Column16({
1996
2028
  name: "provider",
1997
2029
  type: "enum",
1998
2030
  enum: Provider,
@@ -2001,16 +2033,16 @@ __decorateClass([
2001
2033
  })
2002
2034
  ], User.prototype, "provider", 2);
2003
2035
  __decorateClass([
2004
- Column15({ name: "provider_token", type: "varchar", nullable: true })
2036
+ Column16({ name: "provider_token", type: "varchar", nullable: true })
2005
2037
  ], User.prototype, "providerToken", 2);
2006
2038
  __decorateClass([
2007
- Column15({ name: "linkedin_id", type: "varchar", nullable: true })
2039
+ Column16({ name: "linkedin_id", type: "varchar", nullable: true })
2008
2040
  ], User.prototype, "linkedInId", 2);
2009
2041
  __decorateClass([
2010
- Column15({ name: "google_id", type: "varchar", nullable: true })
2042
+ Column16({ name: "google_id", type: "varchar", nullable: true })
2011
2043
  ], User.prototype, "googleId", 2);
2012
2044
  __decorateClass([
2013
- Column15({ name: "gitlabs_id", type: "varchar", nullable: true })
2045
+ Column16({ name: "gitlabs_id", type: "varchar", nullable: true })
2014
2046
  ], User.prototype, "gitLabsId", 2);
2015
2047
  __decorateClass([
2016
2048
  OneToMany6(() => Otp, (otp) => otp.user)
@@ -2054,8 +2086,11 @@ __decorateClass([
2054
2086
  __decorateClass([
2055
2087
  OneToOne(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
2056
2088
  ], User.prototype, "freelancerExperience", 2);
2089
+ __decorateClass([
2090
+ OneToOne(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
2091
+ ], User.prototype, "freelancerEducation", 2);
2057
2092
  User = __decorateClass([
2058
- Entity14("users")
2093
+ Entity15("users")
2059
2094
  ], User);
2060
2095
 
2061
2096
  // src/entities/rating.entity.ts
@@ -2067,36 +2102,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
2067
2102
  var Rating = class extends BaseEntity {
2068
2103
  };
2069
2104
  __decorateClass([
2070
- Column16({ name: "reviewer_id", type: "integer" }),
2071
- Index12()
2105
+ Column17({ name: "reviewer_id", type: "integer" }),
2106
+ Index13()
2072
2107
  ], Rating.prototype, "reviewer_id", 2);
2073
2108
  __decorateClass([
2074
- ManyToOne14(() => User, { onDelete: "CASCADE" }),
2075
- JoinColumn14({ name: "reviewer_id" })
2109
+ ManyToOne15(() => User, { onDelete: "CASCADE" }),
2110
+ JoinColumn15({ name: "reviewer_id" })
2076
2111
  ], Rating.prototype, "reviewer", 2);
2077
2112
  __decorateClass([
2078
- Column16({ name: "reviewee_id", type: "integer" }),
2079
- Index12()
2113
+ Column17({ name: "reviewee_id", type: "integer" }),
2114
+ Index13()
2080
2115
  ], Rating.prototype, "reviewee_id", 2);
2081
2116
  __decorateClass([
2082
- ManyToOne14(() => User, { onDelete: "CASCADE" }),
2083
- JoinColumn14({ name: "reviewee_id" })
2117
+ ManyToOne15(() => User, { onDelete: "CASCADE" }),
2118
+ JoinColumn15({ name: "reviewee_id" })
2084
2119
  ], Rating.prototype, "reviewee", 2);
2085
2120
  __decorateClass([
2086
- Column16({
2121
+ Column17({
2087
2122
  type: "enum",
2088
2123
  enum: RatingTypeEnum,
2089
2124
  nullable: true
2090
2125
  })
2091
2126
  ], Rating.prototype, "ratingType", 2);
2092
2127
  __decorateClass([
2093
- Column16({ type: "integer", nullable: true })
2128
+ Column17({ type: "integer", nullable: true })
2094
2129
  ], Rating.prototype, "rating", 2);
2095
2130
  __decorateClass([
2096
- Column16({ type: "text", nullable: true })
2131
+ Column17({ type: "text", nullable: true })
2097
2132
  ], Rating.prototype, "review", 2);
2098
2133
  Rating = __decorateClass([
2099
- Entity15("ratings")
2134
+ Entity16("ratings")
2100
2135
  ], Rating);
2101
2136
 
2102
2137
  // src/modules/rating/dto/add.rating.dto.ts
@@ -2285,6 +2320,66 @@ __decorateClass([
2285
2320
  IsBoolean11()
2286
2321
  ], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
2287
2322
 
2323
+ // src/modules/user/freelancer-education/pattern/pattern.ts
2324
+ var FREELANCER_EDUCATION_PATTERN = {
2325
+ fetchFreelancerEducation: "fetch.freelancer.education",
2326
+ createFreelancerEducation: "create.freelancer.education",
2327
+ updateFreelancerEducation: "update.freelancer.education"
2328
+ };
2329
+
2330
+ // src/modules/user/freelancer-education/dto/create-freelancer-education.dto.ts
2331
+ import { IsArray as IsArray4, ValidateNested as ValidateNested3, IsString as IsString22, IsNotEmpty as IsNotEmpty30 } from "class-validator";
2332
+ import { Type as Type4 } from "class-transformer";
2333
+ var CreateEducationDto = class {
2334
+ };
2335
+ __decorateClass([
2336
+ IsString22(),
2337
+ IsNotEmpty30()
2338
+ ], CreateEducationDto.prototype, "degree", 2);
2339
+ __decorateClass([
2340
+ IsString22(),
2341
+ IsNotEmpty30()
2342
+ ], CreateEducationDto.prototype, "university", 2);
2343
+ __decorateClass([
2344
+ IsString22(),
2345
+ IsNotEmpty30()
2346
+ ], CreateEducationDto.prototype, "yearOfGraduation", 2);
2347
+ var CreateFreelancerEducationDto = class {
2348
+ };
2349
+ __decorateClass([
2350
+ IsArray4(),
2351
+ ValidateNested3({ each: true }),
2352
+ Type4(() => CreateEducationDto)
2353
+ ], CreateFreelancerEducationDto.prototype, "education", 2);
2354
+
2355
+ // src/modules/user/freelancer-education/dto/update-freelancer-education.dto.ts
2356
+ import { IsArray as IsArray5, ValidateNested as ValidateNested4, IsString as IsString23, IsNotEmpty as IsNotEmpty31, IsOptional as IsOptional15 } from "class-validator";
2357
+ import { Type as Type5 } from "class-transformer";
2358
+ var UpdateEducationDto = class {
2359
+ };
2360
+ __decorateClass([
2361
+ IsOptional15()
2362
+ ], UpdateEducationDto.prototype, "uuid", 2);
2363
+ __decorateClass([
2364
+ IsString23(),
2365
+ IsNotEmpty31()
2366
+ ], UpdateEducationDto.prototype, "degree", 2);
2367
+ __decorateClass([
2368
+ IsString23(),
2369
+ IsNotEmpty31()
2370
+ ], UpdateEducationDto.prototype, "university", 2);
2371
+ __decorateClass([
2372
+ IsString23(),
2373
+ IsNotEmpty31()
2374
+ ], UpdateEducationDto.prototype, "yearOfGraduation", 2);
2375
+ var UpdateFreelancerEducationDto = class {
2376
+ };
2377
+ __decorateClass([
2378
+ IsArray5(),
2379
+ ValidateNested4({ each: true }),
2380
+ Type5(() => UpdateEducationDto)
2381
+ ], UpdateFreelancerEducationDto.prototype, "education", 2);
2382
+
2288
2383
  // src/adapters/tcp/user.tcp.adapter.ts
2289
2384
  import { config } from "dotenv";
2290
2385
  import { Transport } from "@nestjs/microservices";
@@ -2502,7 +2597,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
2502
2597
  };
2503
2598
 
2504
2599
  // src/entities/question.entity.ts
2505
- import { Entity as Entity16, Column as Column17 } from "typeorm";
2600
+ import { Entity as Entity17, Column as Column18 } from "typeorm";
2506
2601
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2507
2602
  QuestionFor2["CLIENT"] = "CLIENT";
2508
2603
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -2511,16 +2606,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2511
2606
  var Question = class extends BaseEntity {
2512
2607
  };
2513
2608
  __decorateClass([
2514
- Column17({ name: "question", type: "varchar" })
2609
+ Column18({ name: "question", type: "varchar" })
2515
2610
  ], Question.prototype, "question", 2);
2516
2611
  __decorateClass([
2517
- Column17({ name: "hint", type: "varchar", nullable: true })
2612
+ Column18({ name: "hint", type: "varchar", nullable: true })
2518
2613
  ], Question.prototype, "hint", 2);
2519
2614
  __decorateClass([
2520
- Column17({ name: "slug", type: "varchar", nullable: true, unique: true })
2615
+ Column18({ name: "slug", type: "varchar", nullable: true, unique: true })
2521
2616
  ], Question.prototype, "slug", 2);
2522
2617
  __decorateClass([
2523
- Column17({
2618
+ Column18({
2524
2619
  name: "question_for",
2525
2620
  type: "enum",
2526
2621
  enum: QuestionFor,
@@ -2528,76 +2623,76 @@ __decorateClass([
2528
2623
  })
2529
2624
  ], Question.prototype, "questionFor", 2);
2530
2625
  __decorateClass([
2531
- Column17({ name: "type", type: "varchar", nullable: true })
2626
+ Column18({ name: "type", type: "varchar", nullable: true })
2532
2627
  ], Question.prototype, "type", 2);
2533
2628
  __decorateClass([
2534
- Column17({ name: "options", type: "jsonb", nullable: true })
2629
+ Column18({ name: "options", type: "jsonb", nullable: true })
2535
2630
  ], Question.prototype, "options", 2);
2536
2631
  __decorateClass([
2537
- Column17({ name: "is_active", type: "boolean", default: false })
2632
+ Column18({ name: "is_active", type: "boolean", default: false })
2538
2633
  ], Question.prototype, "isActive", 2);
2539
2634
  Question = __decorateClass([
2540
- Entity16("questions")
2635
+ Entity17("questions")
2541
2636
  ], Question);
2542
2637
 
2543
2638
  // src/entities/job-role.entity.ts
2544
- import { Entity as Entity17, Column as Column18 } from "typeorm";
2639
+ import { Entity as Entity18, Column as Column19 } from "typeorm";
2545
2640
  var JobRoles = class extends BaseEntity {
2546
2641
  };
2547
2642
  __decorateClass([
2548
- Column18({ name: "slug", type: "varchar", nullable: true, unique: true })
2643
+ Column19({ name: "slug", type: "varchar", nullable: true, unique: true })
2549
2644
  ], JobRoles.prototype, "slug", 2);
2550
2645
  __decorateClass([
2551
- Column18({ name: "name", type: "varchar", nullable: true })
2646
+ Column19({ name: "name", type: "varchar", nullable: true })
2552
2647
  ], JobRoles.prototype, "name", 2);
2553
2648
  __decorateClass([
2554
- Column18({ name: "is_active", type: "boolean", default: true })
2649
+ Column19({ name: "is_active", type: "boolean", default: true })
2555
2650
  ], JobRoles.prototype, "isActive", 2);
2556
2651
  JobRoles = __decorateClass([
2557
- Entity17("job_roles")
2652
+ Entity18("job_roles")
2558
2653
  ], JobRoles);
2559
2654
 
2560
2655
  // src/entities/plan.entity.ts
2561
- import { Entity as Entity19, Column as Column20, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
2656
+ import { Entity as Entity20, Column as Column21, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
2562
2657
 
2563
2658
  // src/entities/feature.entity.ts
2564
- import { Entity as Entity18, Column as Column19, ManyToMany } from "typeorm";
2659
+ import { Entity as Entity19, Column as Column20, ManyToMany } from "typeorm";
2565
2660
  var Feature = class extends BaseEntity {
2566
2661
  };
2567
2662
  __decorateClass([
2568
- Column19({ name: "name", type: "varchar", unique: true })
2663
+ Column20({ name: "name", type: "varchar", unique: true })
2569
2664
  ], Feature.prototype, "name", 2);
2570
2665
  __decorateClass([
2571
2666
  ManyToMany(() => Plan, (plan) => plan.features)
2572
2667
  ], Feature.prototype, "plans", 2);
2573
2668
  Feature = __decorateClass([
2574
- Entity18("features")
2669
+ Entity19("features")
2575
2670
  ], Feature);
2576
2671
 
2577
2672
  // src/entities/plan.entity.ts
2578
2673
  var Plan = class extends BaseEntity {
2579
2674
  };
2580
2675
  __decorateClass([
2581
- Column20({ name: "name", type: "varchar", unique: true })
2676
+ Column21({ name: "name", type: "varchar", unique: true })
2582
2677
  ], Plan.prototype, "name", 2);
2583
2678
  __decorateClass([
2584
- Column20({ name: "description", type: "varchar", nullable: true })
2679
+ Column21({ name: "description", type: "varchar", nullable: true })
2585
2680
  ], Plan.prototype, "description", 2);
2586
2681
  __decorateClass([
2587
- Column20({ name: "price", type: "decimal", precision: 10, scale: 2 })
2682
+ Column21({ name: "price", type: "decimal", precision: 10, scale: 2 })
2588
2683
  ], Plan.prototype, "price", 2);
2589
2684
  __decorateClass([
2590
- Column20({ name: "billing_period", type: "varchar" })
2685
+ Column21({ name: "billing_period", type: "varchar" })
2591
2686
  ], Plan.prototype, "billingPeriod", 2);
2592
2687
  __decorateClass([
2593
- Column20({ name: "is_current", type: "boolean", default: false })
2688
+ Column21({ name: "is_current", type: "boolean", default: false })
2594
2689
  ], Plan.prototype, "isCurrent", 2);
2595
2690
  __decorateClass([
2596
2691
  ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
2597
2692
  JoinTable()
2598
2693
  ], Plan.prototype, "features", 2);
2599
2694
  Plan = __decorateClass([
2600
- Entity19("plans")
2695
+ Entity20("plans")
2601
2696
  ], Plan);
2602
2697
  export {
2603
2698
  AUTHENTICATION_PATTERN,
@@ -2620,13 +2715,16 @@ export {
2620
2715
  CompanyRole,
2621
2716
  CreateCompanyMemberDto,
2622
2717
  CreateCompanyRoleDto,
2718
+ CreateEducationDto,
2623
2719
  CreateExperienceDto,
2720
+ CreateFreelancerEducationDto,
2624
2721
  CreateFreelancerExperienceDto,
2625
2722
  CreateQuestionDto,
2626
2723
  CreateRatingDto,
2627
2724
  CreateSubAdminDto,
2628
2725
  DurationTypeEnum,
2629
2726
  EmploymentType,
2727
+ FREELANCER_EDUCATION_PATTERN,
2630
2728
  FREELANCER_EXPERIENCE_PATTERN,
2631
2729
  Feature,
2632
2730
  ForgotPasswordDto,
@@ -2634,6 +2732,7 @@ export {
2634
2732
  FreelancerChangePasswordDto,
2635
2733
  FreelancerCreateAccountDto,
2636
2734
  FreelancerDevelopmentPreferenceDto,
2735
+ FreelancerEducation,
2637
2736
  FreelancerExperience,
2638
2737
  FreelancerProfile,
2639
2738
  FreelancerProfileQuestionDto,
@@ -2700,7 +2799,9 @@ export {
2700
2799
  UpdateCompanyMemberDto,
2701
2800
  UpdateCompanyProfileDto,
2702
2801
  UpdateCompanyRoleDto,
2802
+ UpdateEducationDto,
2703
2803
  UpdateExperienceDto,
2804
+ UpdateFreelancerEducationDto,
2704
2805
  UpdateFreelancerExperienceDto,
2705
2806
  UpdateFreelancerProfileDto,
2706
2807
  UpdateSubAdminAccountStatusDto,
@@ -15,3 +15,4 @@ export * from './rating';
15
15
  export * from './company-role';
16
16
  export * from './user/freelancer-experience';
17
17
  export * from './company-member';
18
+ export * from './user/freelancer-education';
@@ -0,0 +1,8 @@
1
+ export declare class CreateEducationDto {
2
+ degree: string;
3
+ university: string;
4
+ yearOfGraduation: string;
5
+ }
6
+ export declare class CreateFreelancerEducationDto {
7
+ education: CreateEducationDto[];
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './create-freelancer-education.dto';
2
+ export * from './update-freelancer-education.dto';
@@ -0,0 +1,9 @@
1
+ export declare class UpdateEducationDto {
2
+ uuid?: string;
3
+ degree: string;
4
+ university: string;
5
+ yearOfGraduation: string;
6
+ }
7
+ export declare class UpdateFreelancerEducationDto {
8
+ education: UpdateEducationDto[];
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './pattern/pattern';
2
+ export * from './dto';
@@ -0,0 +1,5 @@
1
+ export declare const FREELANCER_EDUCATION_PATTERN: {
2
+ fetchFreelancerEducation: string;
3
+ createFreelancerEducation: string;
4
+ updateFreelancerEducation: string;
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.138",
3
+ "version": "1.0.139",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",