@experts_hub/shared 1.0.137 → 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.
- package/dist/entities/freelancer-education.entity.d.ts +9 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +186 -84
- package/dist/index.mjs +169 -67
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/user/freelancer-education/dto/create-freelancer-education.dto.d.ts +8 -0
- package/dist/modules/user/freelancer-education/dto/index.d.ts +2 -0
- package/dist/modules/user/freelancer-education/dto/update-freelancer-education.dto.d.ts +9 -0
- package/dist/modules/user/freelancer-education/index.d.ts +2 -0
- package/dist/modules/user/freelancer-education/pattern/pattern.d.ts +5 -0
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -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,
|
|
@@ -593,6 +599,7 @@ __decorateClass([
|
|
|
593
599
|
(0, import_class_validator17.IsEmail)()
|
|
594
600
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
595
601
|
__decorateClass([
|
|
602
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter something about company." }),
|
|
596
603
|
(0, import_class_validator17.IsString)({ message: "About company must be a string." })
|
|
597
604
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
598
605
|
|
|
@@ -990,10 +997,10 @@ var RATING_PATTERN = {
|
|
|
990
997
|
var import_class_validator29 = require("class-validator");
|
|
991
998
|
|
|
992
999
|
// src/entities/rating.entity.ts
|
|
993
|
-
var
|
|
1000
|
+
var import_typeorm17 = require("typeorm");
|
|
994
1001
|
|
|
995
1002
|
// src/entities/user.entity.ts
|
|
996
|
-
var
|
|
1003
|
+
var import_typeorm16 = require("typeorm");
|
|
997
1004
|
|
|
998
1005
|
// src/entities/base.entity.ts
|
|
999
1006
|
var import_typeorm = require("typeorm");
|
|
@@ -1841,6 +1848,32 @@ FreelancerExperience = __decorateClass([
|
|
|
1841
1848
|
(0, import_typeorm14.Entity)("freelancer_experiences")
|
|
1842
1849
|
], FreelancerExperience);
|
|
1843
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
|
+
|
|
1844
1877
|
// src/entities/user.entity.ts
|
|
1845
1878
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1846
1879
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1865,51 +1898,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1865
1898
|
var User = class extends BaseEntity {
|
|
1866
1899
|
};
|
|
1867
1900
|
__decorateClass([
|
|
1868
|
-
(0,
|
|
1901
|
+
(0, import_typeorm16.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
1869
1902
|
], User.prototype, "uniqueId", 2);
|
|
1870
1903
|
__decorateClass([
|
|
1871
|
-
(0,
|
|
1872
|
-
(0,
|
|
1904
|
+
(0, import_typeorm16.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
1905
|
+
(0, import_typeorm16.Index)()
|
|
1873
1906
|
], User.prototype, "parentId", 2);
|
|
1874
1907
|
__decorateClass([
|
|
1875
|
-
(0,
|
|
1876
|
-
(0,
|
|
1908
|
+
(0, import_typeorm16.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
1909
|
+
(0, import_typeorm16.JoinColumn)({ name: "parent_id" })
|
|
1877
1910
|
], User.prototype, "parent", 2);
|
|
1878
1911
|
__decorateClass([
|
|
1879
|
-
(0,
|
|
1912
|
+
(0, import_typeorm16.OneToMany)(() => User, (user) => user.parent)
|
|
1880
1913
|
], User.prototype, "children", 2);
|
|
1881
1914
|
__decorateClass([
|
|
1882
|
-
(0,
|
|
1915
|
+
(0, import_typeorm16.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1883
1916
|
], User.prototype, "username", 2);
|
|
1884
1917
|
__decorateClass([
|
|
1885
|
-
(0,
|
|
1918
|
+
(0, import_typeorm16.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1886
1919
|
], User.prototype, "firstName", 2);
|
|
1887
1920
|
__decorateClass([
|
|
1888
|
-
(0,
|
|
1921
|
+
(0, import_typeorm16.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1889
1922
|
], User.prototype, "lastName", 2);
|
|
1890
1923
|
__decorateClass([
|
|
1891
|
-
(0,
|
|
1924
|
+
(0, import_typeorm16.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
1892
1925
|
], User.prototype, "dateOfBirth", 2);
|
|
1893
1926
|
__decorateClass([
|
|
1894
|
-
(0,
|
|
1927
|
+
(0, import_typeorm16.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1895
1928
|
], User.prototype, "gender", 2);
|
|
1896
1929
|
__decorateClass([
|
|
1897
|
-
(0,
|
|
1930
|
+
(0, import_typeorm16.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1898
1931
|
], User.prototype, "profilePictureUrl", 2);
|
|
1899
1932
|
__decorateClass([
|
|
1900
|
-
(0,
|
|
1933
|
+
(0, import_typeorm16.Column)({ name: "email", type: "varchar", unique: true })
|
|
1901
1934
|
], User.prototype, "email", 2);
|
|
1902
1935
|
__decorateClass([
|
|
1903
|
-
(0,
|
|
1936
|
+
(0, import_typeorm16.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1904
1937
|
], User.prototype, "mobileCode", 2);
|
|
1905
1938
|
__decorateClass([
|
|
1906
|
-
(0,
|
|
1939
|
+
(0, import_typeorm16.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1907
1940
|
], User.prototype, "mobile", 2);
|
|
1908
1941
|
__decorateClass([
|
|
1909
|
-
(0,
|
|
1942
|
+
(0, import_typeorm16.Column)({ name: "password", type: "varchar" })
|
|
1910
1943
|
], User.prototype, "password", 2);
|
|
1911
1944
|
__decorateClass([
|
|
1912
|
-
(0,
|
|
1945
|
+
(0, import_typeorm16.Column)({
|
|
1913
1946
|
name: "account_type",
|
|
1914
1947
|
type: "enum",
|
|
1915
1948
|
enum: AccountType,
|
|
@@ -1917,7 +1950,7 @@ __decorateClass([
|
|
|
1917
1950
|
})
|
|
1918
1951
|
], User.prototype, "accountType", 2);
|
|
1919
1952
|
__decorateClass([
|
|
1920
|
-
(0,
|
|
1953
|
+
(0, import_typeorm16.Column)({
|
|
1921
1954
|
name: "account_status",
|
|
1922
1955
|
type: "enum",
|
|
1923
1956
|
enum: AccountStatus,
|
|
@@ -1925,36 +1958,36 @@ __decorateClass([
|
|
|
1925
1958
|
})
|
|
1926
1959
|
], User.prototype, "accountStatus", 2);
|
|
1927
1960
|
__decorateClass([
|
|
1928
|
-
(0,
|
|
1961
|
+
(0, import_typeorm16.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
1929
1962
|
], User.prototype, "isEmailVerified", 2);
|
|
1930
1963
|
__decorateClass([
|
|
1931
|
-
(0,
|
|
1964
|
+
(0, import_typeorm16.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1932
1965
|
], User.prototype, "isMobileVerified", 2);
|
|
1933
1966
|
__decorateClass([
|
|
1934
|
-
(0,
|
|
1967
|
+
(0, import_typeorm16.Column)({
|
|
1935
1968
|
name: "last_login_at",
|
|
1936
1969
|
type: "timestamp with time zone",
|
|
1937
1970
|
nullable: true
|
|
1938
1971
|
})
|
|
1939
1972
|
], User.prototype, "lastLoginAt", 2);
|
|
1940
1973
|
__decorateClass([
|
|
1941
|
-
(0,
|
|
1974
|
+
(0, import_typeorm16.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1942
1975
|
], User.prototype, "lastLoginIp", 2);
|
|
1943
1976
|
__decorateClass([
|
|
1944
|
-
(0,
|
|
1977
|
+
(0, import_typeorm16.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
1945
1978
|
], User.prototype, "resetToken", 2);
|
|
1946
1979
|
__decorateClass([
|
|
1947
|
-
(0,
|
|
1980
|
+
(0, import_typeorm16.Column)({
|
|
1948
1981
|
name: "reset_token_expire_at",
|
|
1949
1982
|
type: "timestamp with time zone",
|
|
1950
1983
|
nullable: true
|
|
1951
1984
|
})
|
|
1952
1985
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
1953
1986
|
__decorateClass([
|
|
1954
|
-
(0,
|
|
1987
|
+
(0, import_typeorm16.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
1955
1988
|
], User.prototype, "refreshTokens", 2);
|
|
1956
1989
|
__decorateClass([
|
|
1957
|
-
(0,
|
|
1990
|
+
(0, import_typeorm16.Column)({
|
|
1958
1991
|
name: "provider",
|
|
1959
1992
|
type: "enum",
|
|
1960
1993
|
enum: Provider,
|
|
@@ -1963,61 +1996,64 @@ __decorateClass([
|
|
|
1963
1996
|
})
|
|
1964
1997
|
], User.prototype, "provider", 2);
|
|
1965
1998
|
__decorateClass([
|
|
1966
|
-
(0,
|
|
1999
|
+
(0, import_typeorm16.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
1967
2000
|
], User.prototype, "providerToken", 2);
|
|
1968
2001
|
__decorateClass([
|
|
1969
|
-
(0,
|
|
2002
|
+
(0, import_typeorm16.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
1970
2003
|
], User.prototype, "linkedInId", 2);
|
|
1971
2004
|
__decorateClass([
|
|
1972
|
-
(0,
|
|
2005
|
+
(0, import_typeorm16.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
1973
2006
|
], User.prototype, "googleId", 2);
|
|
1974
2007
|
__decorateClass([
|
|
1975
|
-
(0,
|
|
2008
|
+
(0, import_typeorm16.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
1976
2009
|
], User.prototype, "gitLabsId", 2);
|
|
1977
2010
|
__decorateClass([
|
|
1978
|
-
(0,
|
|
2011
|
+
(0, import_typeorm16.OneToMany)(() => Otp, (otp) => otp.user)
|
|
1979
2012
|
], User.prototype, "otps", 2);
|
|
1980
2013
|
__decorateClass([
|
|
1981
|
-
(0,
|
|
2014
|
+
(0, import_typeorm16.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
1982
2015
|
], User.prototype, "senseloafLogs", 2);
|
|
1983
2016
|
__decorateClass([
|
|
1984
|
-
(0,
|
|
2017
|
+
(0, import_typeorm16.OneToOne)(
|
|
1985
2018
|
() => FreelancerProfile,
|
|
1986
2019
|
(freelancerProfile) => freelancerProfile.user
|
|
1987
2020
|
)
|
|
1988
2021
|
], User.prototype, "freelancerProfile", 2);
|
|
1989
2022
|
__decorateClass([
|
|
1990
|
-
(0,
|
|
2023
|
+
(0, import_typeorm16.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
1991
2024
|
], User.prototype, "companyProfile", 2);
|
|
1992
2025
|
__decorateClass([
|
|
1993
|
-
(0,
|
|
2026
|
+
(0, import_typeorm16.OneToMany)(() => Job, (job) => job.user)
|
|
1994
2027
|
], User.prototype, "jobs", 2);
|
|
1995
2028
|
__decorateClass([
|
|
1996
|
-
(0,
|
|
2029
|
+
(0, import_typeorm16.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
1997
2030
|
], User.prototype, "bankDetail", 2);
|
|
1998
2031
|
__decorateClass([
|
|
1999
|
-
(0,
|
|
2032
|
+
(0, import_typeorm16.OneToMany)(
|
|
2000
2033
|
() => SystemPreference,
|
|
2001
2034
|
(systemPreference) => systemPreference.user
|
|
2002
2035
|
)
|
|
2003
2036
|
], User.prototype, "systemPreference", 2);
|
|
2004
2037
|
__decorateClass([
|
|
2005
|
-
(0,
|
|
2038
|
+
(0, import_typeorm16.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2006
2039
|
], User.prototype, "givenRatings", 2);
|
|
2007
2040
|
__decorateClass([
|
|
2008
|
-
(0,
|
|
2041
|
+
(0, import_typeorm16.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2009
2042
|
], User.prototype, "receivedRatings", 2);
|
|
2010
2043
|
__decorateClass([
|
|
2011
|
-
(0,
|
|
2044
|
+
(0, import_typeorm16.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2012
2045
|
], User.prototype, "jobApplications", 2);
|
|
2013
2046
|
__decorateClass([
|
|
2014
|
-
(0,
|
|
2047
|
+
(0, import_typeorm16.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
|
|
2015
2048
|
], User.prototype, "companyRole", 2);
|
|
2016
2049
|
__decorateClass([
|
|
2017
|
-
(0,
|
|
2050
|
+
(0, import_typeorm16.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2018
2051
|
], User.prototype, "freelancerExperience", 2);
|
|
2052
|
+
__decorateClass([
|
|
2053
|
+
(0, import_typeorm16.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2054
|
+
], User.prototype, "freelancerEducation", 2);
|
|
2019
2055
|
User = __decorateClass([
|
|
2020
|
-
(0,
|
|
2056
|
+
(0, import_typeorm16.Entity)("users")
|
|
2021
2057
|
], User);
|
|
2022
2058
|
|
|
2023
2059
|
// src/entities/rating.entity.ts
|
|
@@ -2029,36 +2065,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2029
2065
|
var Rating = class extends BaseEntity {
|
|
2030
2066
|
};
|
|
2031
2067
|
__decorateClass([
|
|
2032
|
-
(0,
|
|
2033
|
-
(0,
|
|
2068
|
+
(0, import_typeorm17.Column)({ name: "reviewer_id", type: "integer" }),
|
|
2069
|
+
(0, import_typeorm17.Index)()
|
|
2034
2070
|
], Rating.prototype, "reviewer_id", 2);
|
|
2035
2071
|
__decorateClass([
|
|
2036
|
-
(0,
|
|
2037
|
-
(0,
|
|
2072
|
+
(0, import_typeorm17.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2073
|
+
(0, import_typeorm17.JoinColumn)({ name: "reviewer_id" })
|
|
2038
2074
|
], Rating.prototype, "reviewer", 2);
|
|
2039
2075
|
__decorateClass([
|
|
2040
|
-
(0,
|
|
2041
|
-
(0,
|
|
2076
|
+
(0, import_typeorm17.Column)({ name: "reviewee_id", type: "integer" }),
|
|
2077
|
+
(0, import_typeorm17.Index)()
|
|
2042
2078
|
], Rating.prototype, "reviewee_id", 2);
|
|
2043
2079
|
__decorateClass([
|
|
2044
|
-
(0,
|
|
2045
|
-
(0,
|
|
2080
|
+
(0, import_typeorm17.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2081
|
+
(0, import_typeorm17.JoinColumn)({ name: "reviewee_id" })
|
|
2046
2082
|
], Rating.prototype, "reviewee", 2);
|
|
2047
2083
|
__decorateClass([
|
|
2048
|
-
(0,
|
|
2084
|
+
(0, import_typeorm17.Column)({
|
|
2049
2085
|
type: "enum",
|
|
2050
2086
|
enum: RatingTypeEnum,
|
|
2051
2087
|
nullable: true
|
|
2052
2088
|
})
|
|
2053
2089
|
], Rating.prototype, "ratingType", 2);
|
|
2054
2090
|
__decorateClass([
|
|
2055
|
-
(0,
|
|
2091
|
+
(0, import_typeorm17.Column)({ type: "integer", nullable: true })
|
|
2056
2092
|
], Rating.prototype, "rating", 2);
|
|
2057
2093
|
__decorateClass([
|
|
2058
|
-
(0,
|
|
2094
|
+
(0, import_typeorm17.Column)({ type: "text", nullable: true })
|
|
2059
2095
|
], Rating.prototype, "review", 2);
|
|
2060
2096
|
Rating = __decorateClass([
|
|
2061
|
-
(0,
|
|
2097
|
+
(0, import_typeorm17.Entity)("ratings")
|
|
2062
2098
|
], Rating);
|
|
2063
2099
|
|
|
2064
2100
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2247,6 +2283,66 @@ __decorateClass([
|
|
|
2247
2283
|
(0, import_class_validator37.IsBoolean)()
|
|
2248
2284
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
2249
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
|
+
|
|
2250
2346
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2251
2347
|
var import_dotenv = require("dotenv");
|
|
2252
2348
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -2464,7 +2560,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2464
2560
|
};
|
|
2465
2561
|
|
|
2466
2562
|
// src/entities/question.entity.ts
|
|
2467
|
-
var
|
|
2563
|
+
var import_typeorm18 = require("typeorm");
|
|
2468
2564
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2469
2565
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2470
2566
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2473,16 +2569,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2473
2569
|
var Question = class extends BaseEntity {
|
|
2474
2570
|
};
|
|
2475
2571
|
__decorateClass([
|
|
2476
|
-
(0,
|
|
2572
|
+
(0, import_typeorm18.Column)({ name: "question", type: "varchar" })
|
|
2477
2573
|
], Question.prototype, "question", 2);
|
|
2478
2574
|
__decorateClass([
|
|
2479
|
-
(0,
|
|
2575
|
+
(0, import_typeorm18.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
2480
2576
|
], Question.prototype, "hint", 2);
|
|
2481
2577
|
__decorateClass([
|
|
2482
|
-
(0,
|
|
2578
|
+
(0, import_typeorm18.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2483
2579
|
], Question.prototype, "slug", 2);
|
|
2484
2580
|
__decorateClass([
|
|
2485
|
-
(0,
|
|
2581
|
+
(0, import_typeorm18.Column)({
|
|
2486
2582
|
name: "question_for",
|
|
2487
2583
|
type: "enum",
|
|
2488
2584
|
enum: QuestionFor,
|
|
@@ -2490,76 +2586,76 @@ __decorateClass([
|
|
|
2490
2586
|
})
|
|
2491
2587
|
], Question.prototype, "questionFor", 2);
|
|
2492
2588
|
__decorateClass([
|
|
2493
|
-
(0,
|
|
2589
|
+
(0, import_typeorm18.Column)({ name: "type", type: "varchar", nullable: true })
|
|
2494
2590
|
], Question.prototype, "type", 2);
|
|
2495
2591
|
__decorateClass([
|
|
2496
|
-
(0,
|
|
2592
|
+
(0, import_typeorm18.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
2497
2593
|
], Question.prototype, "options", 2);
|
|
2498
2594
|
__decorateClass([
|
|
2499
|
-
(0,
|
|
2595
|
+
(0, import_typeorm18.Column)({ name: "is_active", type: "boolean", default: false })
|
|
2500
2596
|
], Question.prototype, "isActive", 2);
|
|
2501
2597
|
Question = __decorateClass([
|
|
2502
|
-
(0,
|
|
2598
|
+
(0, import_typeorm18.Entity)("questions")
|
|
2503
2599
|
], Question);
|
|
2504
2600
|
|
|
2505
2601
|
// src/entities/job-role.entity.ts
|
|
2506
|
-
var
|
|
2602
|
+
var import_typeorm19 = require("typeorm");
|
|
2507
2603
|
var JobRoles = class extends BaseEntity {
|
|
2508
2604
|
};
|
|
2509
2605
|
__decorateClass([
|
|
2510
|
-
(0,
|
|
2606
|
+
(0, import_typeorm19.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2511
2607
|
], JobRoles.prototype, "slug", 2);
|
|
2512
2608
|
__decorateClass([
|
|
2513
|
-
(0,
|
|
2609
|
+
(0, import_typeorm19.Column)({ name: "name", type: "varchar", nullable: true })
|
|
2514
2610
|
], JobRoles.prototype, "name", 2);
|
|
2515
2611
|
__decorateClass([
|
|
2516
|
-
(0,
|
|
2612
|
+
(0, import_typeorm19.Column)({ name: "is_active", type: "boolean", default: true })
|
|
2517
2613
|
], JobRoles.prototype, "isActive", 2);
|
|
2518
2614
|
JobRoles = __decorateClass([
|
|
2519
|
-
(0,
|
|
2615
|
+
(0, import_typeorm19.Entity)("job_roles")
|
|
2520
2616
|
], JobRoles);
|
|
2521
2617
|
|
|
2522
2618
|
// src/entities/plan.entity.ts
|
|
2523
|
-
var
|
|
2619
|
+
var import_typeorm21 = require("typeorm");
|
|
2524
2620
|
|
|
2525
2621
|
// src/entities/feature.entity.ts
|
|
2526
|
-
var
|
|
2622
|
+
var import_typeorm20 = require("typeorm");
|
|
2527
2623
|
var Feature = class extends BaseEntity {
|
|
2528
2624
|
};
|
|
2529
2625
|
__decorateClass([
|
|
2530
|
-
(0,
|
|
2626
|
+
(0, import_typeorm20.Column)({ name: "name", type: "varchar", unique: true })
|
|
2531
2627
|
], Feature.prototype, "name", 2);
|
|
2532
2628
|
__decorateClass([
|
|
2533
|
-
(0,
|
|
2629
|
+
(0, import_typeorm20.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
2534
2630
|
], Feature.prototype, "plans", 2);
|
|
2535
2631
|
Feature = __decorateClass([
|
|
2536
|
-
(0,
|
|
2632
|
+
(0, import_typeorm20.Entity)("features")
|
|
2537
2633
|
], Feature);
|
|
2538
2634
|
|
|
2539
2635
|
// src/entities/plan.entity.ts
|
|
2540
2636
|
var Plan = class extends BaseEntity {
|
|
2541
2637
|
};
|
|
2542
2638
|
__decorateClass([
|
|
2543
|
-
(0,
|
|
2639
|
+
(0, import_typeorm21.Column)({ name: "name", type: "varchar", unique: true })
|
|
2544
2640
|
], Plan.prototype, "name", 2);
|
|
2545
2641
|
__decorateClass([
|
|
2546
|
-
(0,
|
|
2642
|
+
(0, import_typeorm21.Column)({ name: "description", type: "varchar", nullable: true })
|
|
2547
2643
|
], Plan.prototype, "description", 2);
|
|
2548
2644
|
__decorateClass([
|
|
2549
|
-
(0,
|
|
2645
|
+
(0, import_typeorm21.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2550
2646
|
], Plan.prototype, "price", 2);
|
|
2551
2647
|
__decorateClass([
|
|
2552
|
-
(0,
|
|
2648
|
+
(0, import_typeorm21.Column)({ name: "billing_period", type: "varchar" })
|
|
2553
2649
|
], Plan.prototype, "billingPeriod", 2);
|
|
2554
2650
|
__decorateClass([
|
|
2555
|
-
(0,
|
|
2651
|
+
(0, import_typeorm21.Column)({ name: "is_current", type: "boolean", default: false })
|
|
2556
2652
|
], Plan.prototype, "isCurrent", 2);
|
|
2557
2653
|
__decorateClass([
|
|
2558
|
-
(0,
|
|
2559
|
-
(0,
|
|
2654
|
+
(0, import_typeorm21.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2655
|
+
(0, import_typeorm21.JoinTable)()
|
|
2560
2656
|
], Plan.prototype, "features", 2);
|
|
2561
2657
|
Plan = __decorateClass([
|
|
2562
|
-
(0,
|
|
2658
|
+
(0, import_typeorm21.Entity)("plans")
|
|
2563
2659
|
], Plan);
|
|
2564
2660
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2565
2661
|
0 && (module.exports = {
|
|
@@ -2583,13 +2679,16 @@ Plan = __decorateClass([
|
|
|
2583
2679
|
CompanyRole,
|
|
2584
2680
|
CreateCompanyMemberDto,
|
|
2585
2681
|
CreateCompanyRoleDto,
|
|
2682
|
+
CreateEducationDto,
|
|
2586
2683
|
CreateExperienceDto,
|
|
2684
|
+
CreateFreelancerEducationDto,
|
|
2587
2685
|
CreateFreelancerExperienceDto,
|
|
2588
2686
|
CreateQuestionDto,
|
|
2589
2687
|
CreateRatingDto,
|
|
2590
2688
|
CreateSubAdminDto,
|
|
2591
2689
|
DurationTypeEnum,
|
|
2592
2690
|
EmploymentType,
|
|
2691
|
+
FREELANCER_EDUCATION_PATTERN,
|
|
2593
2692
|
FREELANCER_EXPERIENCE_PATTERN,
|
|
2594
2693
|
Feature,
|
|
2595
2694
|
ForgotPasswordDto,
|
|
@@ -2597,6 +2696,7 @@ Plan = __decorateClass([
|
|
|
2597
2696
|
FreelancerChangePasswordDto,
|
|
2598
2697
|
FreelancerCreateAccountDto,
|
|
2599
2698
|
FreelancerDevelopmentPreferenceDto,
|
|
2699
|
+
FreelancerEducation,
|
|
2600
2700
|
FreelancerExperience,
|
|
2601
2701
|
FreelancerProfile,
|
|
2602
2702
|
FreelancerProfileQuestionDto,
|
|
@@ -2663,7 +2763,9 @@ Plan = __decorateClass([
|
|
|
2663
2763
|
UpdateCompanyMemberDto,
|
|
2664
2764
|
UpdateCompanyProfileDto,
|
|
2665
2765
|
UpdateCompanyRoleDto,
|
|
2766
|
+
UpdateEducationDto,
|
|
2666
2767
|
UpdateExperienceDto,
|
|
2768
|
+
UpdateFreelancerEducationDto,
|
|
2667
2769
|
UpdateFreelancerExperienceDto,
|
|
2668
2770
|
UpdateFreelancerProfileDto,
|
|
2669
2771
|
UpdateSubAdminAccountStatusDto,
|
package/dist/index.mjs
CHANGED
|
@@ -516,6 +516,7 @@ __decorateClass([
|
|
|
516
516
|
IsEmail5()
|
|
517
517
|
], UpdateCompanyProfileDto.prototype, "email", 2);
|
|
518
518
|
__decorateClass([
|
|
519
|
+
IsNotEmpty15({ message: "Please enter something about company." }),
|
|
519
520
|
IsString8({ message: "About company must be a string." })
|
|
520
521
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
521
522
|
|
|
@@ -954,10 +955,10 @@ import {
|
|
|
954
955
|
} from "class-validator";
|
|
955
956
|
|
|
956
957
|
// src/entities/rating.entity.ts
|
|
957
|
-
import { Entity as
|
|
958
|
+
import { Entity as Entity16, Column as Column17, ManyToOne as ManyToOne15, JoinColumn as JoinColumn15, Index as Index13 } from "typeorm";
|
|
958
959
|
|
|
959
960
|
// src/entities/user.entity.ts
|
|
960
|
-
import { Entity as
|
|
961
|
+
import { Entity as Entity15, Column as Column16, OneToMany as OneToMany6, OneToOne, Index as Index12, ManyToOne as ManyToOne14, JoinColumn as JoinColumn14 } from "typeorm";
|
|
961
962
|
|
|
962
963
|
// src/entities/base.entity.ts
|
|
963
964
|
import {
|
|
@@ -1878,6 +1879,38 @@ FreelancerExperience = __decorateClass([
|
|
|
1878
1879
|
Entity13("freelancer_experiences")
|
|
1879
1880
|
], FreelancerExperience);
|
|
1880
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
|
+
|
|
1881
1914
|
// src/entities/user.entity.ts
|
|
1882
1915
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1883
1916
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1902,51 +1935,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1902
1935
|
var User = class extends BaseEntity {
|
|
1903
1936
|
};
|
|
1904
1937
|
__decorateClass([
|
|
1905
|
-
|
|
1938
|
+
Column16({ name: "unique_id", type: "varchar", unique: true })
|
|
1906
1939
|
], User.prototype, "uniqueId", 2);
|
|
1907
1940
|
__decorateClass([
|
|
1908
|
-
|
|
1909
|
-
|
|
1941
|
+
Column16({ name: "parent_id", type: "integer", nullable: true }),
|
|
1942
|
+
Index12()
|
|
1910
1943
|
], User.prototype, "parentId", 2);
|
|
1911
1944
|
__decorateClass([
|
|
1912
|
-
|
|
1913
|
-
|
|
1945
|
+
ManyToOne14(() => User, (user) => user.children, { nullable: true }),
|
|
1946
|
+
JoinColumn14({ name: "parent_id" })
|
|
1914
1947
|
], User.prototype, "parent", 2);
|
|
1915
1948
|
__decorateClass([
|
|
1916
1949
|
OneToMany6(() => User, (user) => user.parent)
|
|
1917
1950
|
], User.prototype, "children", 2);
|
|
1918
1951
|
__decorateClass([
|
|
1919
|
-
|
|
1952
|
+
Column16({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1920
1953
|
], User.prototype, "username", 2);
|
|
1921
1954
|
__decorateClass([
|
|
1922
|
-
|
|
1955
|
+
Column16({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1923
1956
|
], User.prototype, "firstName", 2);
|
|
1924
1957
|
__decorateClass([
|
|
1925
|
-
|
|
1958
|
+
Column16({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1926
1959
|
], User.prototype, "lastName", 2);
|
|
1927
1960
|
__decorateClass([
|
|
1928
|
-
|
|
1961
|
+
Column16({ name: "date_of_birth", type: "date", nullable: true })
|
|
1929
1962
|
], User.prototype, "dateOfBirth", 2);
|
|
1930
1963
|
__decorateClass([
|
|
1931
|
-
|
|
1964
|
+
Column16({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1932
1965
|
], User.prototype, "gender", 2);
|
|
1933
1966
|
__decorateClass([
|
|
1934
|
-
|
|
1967
|
+
Column16({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1935
1968
|
], User.prototype, "profilePictureUrl", 2);
|
|
1936
1969
|
__decorateClass([
|
|
1937
|
-
|
|
1970
|
+
Column16({ name: "email", type: "varchar", unique: true })
|
|
1938
1971
|
], User.prototype, "email", 2);
|
|
1939
1972
|
__decorateClass([
|
|
1940
|
-
|
|
1973
|
+
Column16({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1941
1974
|
], User.prototype, "mobileCode", 2);
|
|
1942
1975
|
__decorateClass([
|
|
1943
|
-
|
|
1976
|
+
Column16({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1944
1977
|
], User.prototype, "mobile", 2);
|
|
1945
1978
|
__decorateClass([
|
|
1946
|
-
|
|
1979
|
+
Column16({ name: "password", type: "varchar" })
|
|
1947
1980
|
], User.prototype, "password", 2);
|
|
1948
1981
|
__decorateClass([
|
|
1949
|
-
|
|
1982
|
+
Column16({
|
|
1950
1983
|
name: "account_type",
|
|
1951
1984
|
type: "enum",
|
|
1952
1985
|
enum: AccountType,
|
|
@@ -1954,7 +1987,7 @@ __decorateClass([
|
|
|
1954
1987
|
})
|
|
1955
1988
|
], User.prototype, "accountType", 2);
|
|
1956
1989
|
__decorateClass([
|
|
1957
|
-
|
|
1990
|
+
Column16({
|
|
1958
1991
|
name: "account_status",
|
|
1959
1992
|
type: "enum",
|
|
1960
1993
|
enum: AccountStatus,
|
|
@@ -1962,26 +1995,26 @@ __decorateClass([
|
|
|
1962
1995
|
})
|
|
1963
1996
|
], User.prototype, "accountStatus", 2);
|
|
1964
1997
|
__decorateClass([
|
|
1965
|
-
|
|
1998
|
+
Column16({ name: "is_email_verified", type: "boolean", default: false })
|
|
1966
1999
|
], User.prototype, "isEmailVerified", 2);
|
|
1967
2000
|
__decorateClass([
|
|
1968
|
-
|
|
2001
|
+
Column16({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1969
2002
|
], User.prototype, "isMobileVerified", 2);
|
|
1970
2003
|
__decorateClass([
|
|
1971
|
-
|
|
2004
|
+
Column16({
|
|
1972
2005
|
name: "last_login_at",
|
|
1973
2006
|
type: "timestamp with time zone",
|
|
1974
2007
|
nullable: true
|
|
1975
2008
|
})
|
|
1976
2009
|
], User.prototype, "lastLoginAt", 2);
|
|
1977
2010
|
__decorateClass([
|
|
1978
|
-
|
|
2011
|
+
Column16({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1979
2012
|
], User.prototype, "lastLoginIp", 2);
|
|
1980
2013
|
__decorateClass([
|
|
1981
|
-
|
|
2014
|
+
Column16({ name: "reset_token", type: "varchar", nullable: true })
|
|
1982
2015
|
], User.prototype, "resetToken", 2);
|
|
1983
2016
|
__decorateClass([
|
|
1984
|
-
|
|
2017
|
+
Column16({
|
|
1985
2018
|
name: "reset_token_expire_at",
|
|
1986
2019
|
type: "timestamp with time zone",
|
|
1987
2020
|
nullable: true
|
|
@@ -1991,7 +2024,7 @@ __decorateClass([
|
|
|
1991
2024
|
OneToMany6(() => RefreshToken, (token) => token.user)
|
|
1992
2025
|
], User.prototype, "refreshTokens", 2);
|
|
1993
2026
|
__decorateClass([
|
|
1994
|
-
|
|
2027
|
+
Column16({
|
|
1995
2028
|
name: "provider",
|
|
1996
2029
|
type: "enum",
|
|
1997
2030
|
enum: Provider,
|
|
@@ -2000,16 +2033,16 @@ __decorateClass([
|
|
|
2000
2033
|
})
|
|
2001
2034
|
], User.prototype, "provider", 2);
|
|
2002
2035
|
__decorateClass([
|
|
2003
|
-
|
|
2036
|
+
Column16({ name: "provider_token", type: "varchar", nullable: true })
|
|
2004
2037
|
], User.prototype, "providerToken", 2);
|
|
2005
2038
|
__decorateClass([
|
|
2006
|
-
|
|
2039
|
+
Column16({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2007
2040
|
], User.prototype, "linkedInId", 2);
|
|
2008
2041
|
__decorateClass([
|
|
2009
|
-
|
|
2042
|
+
Column16({ name: "google_id", type: "varchar", nullable: true })
|
|
2010
2043
|
], User.prototype, "googleId", 2);
|
|
2011
2044
|
__decorateClass([
|
|
2012
|
-
|
|
2045
|
+
Column16({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2013
2046
|
], User.prototype, "gitLabsId", 2);
|
|
2014
2047
|
__decorateClass([
|
|
2015
2048
|
OneToMany6(() => Otp, (otp) => otp.user)
|
|
@@ -2053,8 +2086,11 @@ __decorateClass([
|
|
|
2053
2086
|
__decorateClass([
|
|
2054
2087
|
OneToOne(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2055
2088
|
], User.prototype, "freelancerExperience", 2);
|
|
2089
|
+
__decorateClass([
|
|
2090
|
+
OneToOne(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2091
|
+
], User.prototype, "freelancerEducation", 2);
|
|
2056
2092
|
User = __decorateClass([
|
|
2057
|
-
|
|
2093
|
+
Entity15("users")
|
|
2058
2094
|
], User);
|
|
2059
2095
|
|
|
2060
2096
|
// src/entities/rating.entity.ts
|
|
@@ -2066,36 +2102,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2066
2102
|
var Rating = class extends BaseEntity {
|
|
2067
2103
|
};
|
|
2068
2104
|
__decorateClass([
|
|
2069
|
-
|
|
2070
|
-
|
|
2105
|
+
Column17({ name: "reviewer_id", type: "integer" }),
|
|
2106
|
+
Index13()
|
|
2071
2107
|
], Rating.prototype, "reviewer_id", 2);
|
|
2072
2108
|
__decorateClass([
|
|
2073
|
-
|
|
2074
|
-
|
|
2109
|
+
ManyToOne15(() => User, { onDelete: "CASCADE" }),
|
|
2110
|
+
JoinColumn15({ name: "reviewer_id" })
|
|
2075
2111
|
], Rating.prototype, "reviewer", 2);
|
|
2076
2112
|
__decorateClass([
|
|
2077
|
-
|
|
2078
|
-
|
|
2113
|
+
Column17({ name: "reviewee_id", type: "integer" }),
|
|
2114
|
+
Index13()
|
|
2079
2115
|
], Rating.prototype, "reviewee_id", 2);
|
|
2080
2116
|
__decorateClass([
|
|
2081
|
-
|
|
2082
|
-
|
|
2117
|
+
ManyToOne15(() => User, { onDelete: "CASCADE" }),
|
|
2118
|
+
JoinColumn15({ name: "reviewee_id" })
|
|
2083
2119
|
], Rating.prototype, "reviewee", 2);
|
|
2084
2120
|
__decorateClass([
|
|
2085
|
-
|
|
2121
|
+
Column17({
|
|
2086
2122
|
type: "enum",
|
|
2087
2123
|
enum: RatingTypeEnum,
|
|
2088
2124
|
nullable: true
|
|
2089
2125
|
})
|
|
2090
2126
|
], Rating.prototype, "ratingType", 2);
|
|
2091
2127
|
__decorateClass([
|
|
2092
|
-
|
|
2128
|
+
Column17({ type: "integer", nullable: true })
|
|
2093
2129
|
], Rating.prototype, "rating", 2);
|
|
2094
2130
|
__decorateClass([
|
|
2095
|
-
|
|
2131
|
+
Column17({ type: "text", nullable: true })
|
|
2096
2132
|
], Rating.prototype, "review", 2);
|
|
2097
2133
|
Rating = __decorateClass([
|
|
2098
|
-
|
|
2134
|
+
Entity16("ratings")
|
|
2099
2135
|
], Rating);
|
|
2100
2136
|
|
|
2101
2137
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2284,6 +2320,66 @@ __decorateClass([
|
|
|
2284
2320
|
IsBoolean11()
|
|
2285
2321
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
2286
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
|
+
|
|
2287
2383
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2288
2384
|
import { config } from "dotenv";
|
|
2289
2385
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -2501,7 +2597,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2501
2597
|
};
|
|
2502
2598
|
|
|
2503
2599
|
// src/entities/question.entity.ts
|
|
2504
|
-
import { Entity as
|
|
2600
|
+
import { Entity as Entity17, Column as Column18 } from "typeorm";
|
|
2505
2601
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2506
2602
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2507
2603
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2510,16 +2606,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2510
2606
|
var Question = class extends BaseEntity {
|
|
2511
2607
|
};
|
|
2512
2608
|
__decorateClass([
|
|
2513
|
-
|
|
2609
|
+
Column18({ name: "question", type: "varchar" })
|
|
2514
2610
|
], Question.prototype, "question", 2);
|
|
2515
2611
|
__decorateClass([
|
|
2516
|
-
|
|
2612
|
+
Column18({ name: "hint", type: "varchar", nullable: true })
|
|
2517
2613
|
], Question.prototype, "hint", 2);
|
|
2518
2614
|
__decorateClass([
|
|
2519
|
-
|
|
2615
|
+
Column18({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2520
2616
|
], Question.prototype, "slug", 2);
|
|
2521
2617
|
__decorateClass([
|
|
2522
|
-
|
|
2618
|
+
Column18({
|
|
2523
2619
|
name: "question_for",
|
|
2524
2620
|
type: "enum",
|
|
2525
2621
|
enum: QuestionFor,
|
|
@@ -2527,76 +2623,76 @@ __decorateClass([
|
|
|
2527
2623
|
})
|
|
2528
2624
|
], Question.prototype, "questionFor", 2);
|
|
2529
2625
|
__decorateClass([
|
|
2530
|
-
|
|
2626
|
+
Column18({ name: "type", type: "varchar", nullable: true })
|
|
2531
2627
|
], Question.prototype, "type", 2);
|
|
2532
2628
|
__decorateClass([
|
|
2533
|
-
|
|
2629
|
+
Column18({ name: "options", type: "jsonb", nullable: true })
|
|
2534
2630
|
], Question.prototype, "options", 2);
|
|
2535
2631
|
__decorateClass([
|
|
2536
|
-
|
|
2632
|
+
Column18({ name: "is_active", type: "boolean", default: false })
|
|
2537
2633
|
], Question.prototype, "isActive", 2);
|
|
2538
2634
|
Question = __decorateClass([
|
|
2539
|
-
|
|
2635
|
+
Entity17("questions")
|
|
2540
2636
|
], Question);
|
|
2541
2637
|
|
|
2542
2638
|
// src/entities/job-role.entity.ts
|
|
2543
|
-
import { Entity as
|
|
2639
|
+
import { Entity as Entity18, Column as Column19 } from "typeorm";
|
|
2544
2640
|
var JobRoles = class extends BaseEntity {
|
|
2545
2641
|
};
|
|
2546
2642
|
__decorateClass([
|
|
2547
|
-
|
|
2643
|
+
Column19({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2548
2644
|
], JobRoles.prototype, "slug", 2);
|
|
2549
2645
|
__decorateClass([
|
|
2550
|
-
|
|
2646
|
+
Column19({ name: "name", type: "varchar", nullable: true })
|
|
2551
2647
|
], JobRoles.prototype, "name", 2);
|
|
2552
2648
|
__decorateClass([
|
|
2553
|
-
|
|
2649
|
+
Column19({ name: "is_active", type: "boolean", default: true })
|
|
2554
2650
|
], JobRoles.prototype, "isActive", 2);
|
|
2555
2651
|
JobRoles = __decorateClass([
|
|
2556
|
-
|
|
2652
|
+
Entity18("job_roles")
|
|
2557
2653
|
], JobRoles);
|
|
2558
2654
|
|
|
2559
2655
|
// src/entities/plan.entity.ts
|
|
2560
|
-
import { Entity as
|
|
2656
|
+
import { Entity as Entity20, Column as Column21, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
2561
2657
|
|
|
2562
2658
|
// src/entities/feature.entity.ts
|
|
2563
|
-
import { Entity as
|
|
2659
|
+
import { Entity as Entity19, Column as Column20, ManyToMany } from "typeorm";
|
|
2564
2660
|
var Feature = class extends BaseEntity {
|
|
2565
2661
|
};
|
|
2566
2662
|
__decorateClass([
|
|
2567
|
-
|
|
2663
|
+
Column20({ name: "name", type: "varchar", unique: true })
|
|
2568
2664
|
], Feature.prototype, "name", 2);
|
|
2569
2665
|
__decorateClass([
|
|
2570
2666
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
2571
2667
|
], Feature.prototype, "plans", 2);
|
|
2572
2668
|
Feature = __decorateClass([
|
|
2573
|
-
|
|
2669
|
+
Entity19("features")
|
|
2574
2670
|
], Feature);
|
|
2575
2671
|
|
|
2576
2672
|
// src/entities/plan.entity.ts
|
|
2577
2673
|
var Plan = class extends BaseEntity {
|
|
2578
2674
|
};
|
|
2579
2675
|
__decorateClass([
|
|
2580
|
-
|
|
2676
|
+
Column21({ name: "name", type: "varchar", unique: true })
|
|
2581
2677
|
], Plan.prototype, "name", 2);
|
|
2582
2678
|
__decorateClass([
|
|
2583
|
-
|
|
2679
|
+
Column21({ name: "description", type: "varchar", nullable: true })
|
|
2584
2680
|
], Plan.prototype, "description", 2);
|
|
2585
2681
|
__decorateClass([
|
|
2586
|
-
|
|
2682
|
+
Column21({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2587
2683
|
], Plan.prototype, "price", 2);
|
|
2588
2684
|
__decorateClass([
|
|
2589
|
-
|
|
2685
|
+
Column21({ name: "billing_period", type: "varchar" })
|
|
2590
2686
|
], Plan.prototype, "billingPeriod", 2);
|
|
2591
2687
|
__decorateClass([
|
|
2592
|
-
|
|
2688
|
+
Column21({ name: "is_current", type: "boolean", default: false })
|
|
2593
2689
|
], Plan.prototype, "isCurrent", 2);
|
|
2594
2690
|
__decorateClass([
|
|
2595
2691
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2596
2692
|
JoinTable()
|
|
2597
2693
|
], Plan.prototype, "features", 2);
|
|
2598
2694
|
Plan = __decorateClass([
|
|
2599
|
-
|
|
2695
|
+
Entity20("plans")
|
|
2600
2696
|
], Plan);
|
|
2601
2697
|
export {
|
|
2602
2698
|
AUTHENTICATION_PATTERN,
|
|
@@ -2619,13 +2715,16 @@ export {
|
|
|
2619
2715
|
CompanyRole,
|
|
2620
2716
|
CreateCompanyMemberDto,
|
|
2621
2717
|
CreateCompanyRoleDto,
|
|
2718
|
+
CreateEducationDto,
|
|
2622
2719
|
CreateExperienceDto,
|
|
2720
|
+
CreateFreelancerEducationDto,
|
|
2623
2721
|
CreateFreelancerExperienceDto,
|
|
2624
2722
|
CreateQuestionDto,
|
|
2625
2723
|
CreateRatingDto,
|
|
2626
2724
|
CreateSubAdminDto,
|
|
2627
2725
|
DurationTypeEnum,
|
|
2628
2726
|
EmploymentType,
|
|
2727
|
+
FREELANCER_EDUCATION_PATTERN,
|
|
2629
2728
|
FREELANCER_EXPERIENCE_PATTERN,
|
|
2630
2729
|
Feature,
|
|
2631
2730
|
ForgotPasswordDto,
|
|
@@ -2633,6 +2732,7 @@ export {
|
|
|
2633
2732
|
FreelancerChangePasswordDto,
|
|
2634
2733
|
FreelancerCreateAccountDto,
|
|
2635
2734
|
FreelancerDevelopmentPreferenceDto,
|
|
2735
|
+
FreelancerEducation,
|
|
2636
2736
|
FreelancerExperience,
|
|
2637
2737
|
FreelancerProfile,
|
|
2638
2738
|
FreelancerProfileQuestionDto,
|
|
@@ -2699,7 +2799,9 @@ export {
|
|
|
2699
2799
|
UpdateCompanyMemberDto,
|
|
2700
2800
|
UpdateCompanyProfileDto,
|
|
2701
2801
|
UpdateCompanyRoleDto,
|
|
2802
|
+
UpdateEducationDto,
|
|
2702
2803
|
UpdateExperienceDto,
|
|
2804
|
+
UpdateFreelancerEducationDto,
|
|
2703
2805
|
UpdateFreelancerExperienceDto,
|
|
2704
2806
|
UpdateFreelancerProfileDto,
|
|
2705
2807
|
UpdateSubAdminAccountStatusDto,
|
package/dist/modules/index.d.ts
CHANGED