@experts_hub/shared 1.0.165 → 1.0.167
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-assessment.entity.d.ts +18 -0
- package/dist/entities/freelancer-profile.entity.d.ts +2 -1
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +21 -2
- package/dist/index.d.ts +21 -2
- package/dist/index.js +149 -101
- package/dist/index.mjs +129 -77
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseEntity } from "./base.entity";
|
|
2
|
+
import { User } from "./user.entity";
|
|
3
|
+
export declare enum AssessmentStatusEnum {
|
|
4
|
+
NOT_ATTEMPTED = "NOT_ATTEMPTED",
|
|
5
|
+
ACTIVE = "ACTIVE",
|
|
6
|
+
PASSED = "PASSED",
|
|
7
|
+
FAILED = "FAILED",
|
|
8
|
+
EXPIRED = "EXPIRED",
|
|
9
|
+
POSTPONED = "POSTPONED",
|
|
10
|
+
RESCHEDULED = "RESCHEDULED"
|
|
11
|
+
}
|
|
12
|
+
export declare class FreelancerAssessment extends BaseEntity {
|
|
13
|
+
userId: number;
|
|
14
|
+
user: User;
|
|
15
|
+
interviewId: string;
|
|
16
|
+
interviewLink: string;
|
|
17
|
+
status: AssessmentStatusEnum;
|
|
18
|
+
}
|
|
@@ -14,7 +14,8 @@ export declare enum OnboardingStepEnum {
|
|
|
14
14
|
SIGN_UP = "SIGN_UP",
|
|
15
15
|
UPLOAD_RESUME = "UPLOAD_RESUME",
|
|
16
16
|
PARSE_RESUME = "PARSE_RESUME",
|
|
17
|
-
|
|
17
|
+
AI_ASSESSMENT_INITIATED = "AI_ASSESSMENT_INITIATED",
|
|
18
|
+
AI_ASSESSMENT_COMPLETED = "AI_ASSESSMENT_COMPLETED",
|
|
18
19
|
CODING_CHALLENGE = "CODING_CHALLENGE",
|
|
19
20
|
PROFILE_COMPLETION = "PROFILE_COMPLETION"
|
|
20
21
|
}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './senseloaf-log.entity';
|
|
|
5
5
|
export * from './question.entity';
|
|
6
6
|
export * from './otp.entity';
|
|
7
7
|
export * from './freelancer-profile.entity';
|
|
8
|
+
export * from './freelancer-assessment.entity';
|
|
8
9
|
export * from './freelancer-experience.entity';
|
|
9
10
|
export * from './freelancer-education.entity';
|
|
10
11
|
export * from './freelancer-project.entity';
|
|
@@ -18,6 +18,7 @@ import { FreelancerCaseStudy } from "./freelancer-casestudy.entity";
|
|
|
18
18
|
import { FreelancerCoreSkill } from "./freelancer-coreskill.entity";
|
|
19
19
|
import { FreelancerTool } from "./freelancer-tool.entity";
|
|
20
20
|
import { FreelancerFramework } from "./freelancer-framework.entity";
|
|
21
|
+
import { FreelancerAssessment } from "./freelancer-assessment.entity";
|
|
21
22
|
export declare enum AccountType {
|
|
22
23
|
ADMIN = "ADMIN",
|
|
23
24
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -70,6 +71,7 @@ export declare class User extends BaseEntity {
|
|
|
70
71
|
senseloafLogs: SenseloafLog[];
|
|
71
72
|
freelancerProfile: FreelancerProfile;
|
|
72
73
|
companyProfile: CompanyProfile;
|
|
74
|
+
assessments: FreelancerAssessment[];
|
|
73
75
|
jobs: Job[];
|
|
74
76
|
interviews: Interview[];
|
|
75
77
|
bankDetail: BankDetail[];
|
package/dist/index.d.mts
CHANGED
|
@@ -593,7 +593,8 @@ declare enum OnboardingStepEnum {
|
|
|
593
593
|
SIGN_UP = "SIGN_UP",
|
|
594
594
|
UPLOAD_RESUME = "UPLOAD_RESUME",
|
|
595
595
|
PARSE_RESUME = "PARSE_RESUME",
|
|
596
|
-
|
|
596
|
+
AI_ASSESSMENT_INITIATED = "AI_ASSESSMENT_INITIATED",
|
|
597
|
+
AI_ASSESSMENT_COMPLETED = "AI_ASSESSMENT_COMPLETED",
|
|
597
598
|
CODING_CHALLENGE = "CODING_CHALLENGE",
|
|
598
599
|
PROFILE_COMPLETION = "PROFILE_COMPLETION"
|
|
599
600
|
}
|
|
@@ -880,6 +881,23 @@ declare class FreelancerFramework extends BaseEntity {
|
|
|
880
881
|
frameworkName: string;
|
|
881
882
|
}
|
|
882
883
|
|
|
884
|
+
declare enum AssessmentStatusEnum {
|
|
885
|
+
NOT_ATTEMPTED = "NOT_ATTEMPTED",
|
|
886
|
+
ACTIVE = "ACTIVE",
|
|
887
|
+
PASSED = "PASSED",
|
|
888
|
+
FAILED = "FAILED",
|
|
889
|
+
EXPIRED = "EXPIRED",
|
|
890
|
+
POSTPONED = "POSTPONED",
|
|
891
|
+
RESCHEDULED = "RESCHEDULED"
|
|
892
|
+
}
|
|
893
|
+
declare class FreelancerAssessment extends BaseEntity {
|
|
894
|
+
userId: number;
|
|
895
|
+
user: User;
|
|
896
|
+
interviewId: string;
|
|
897
|
+
interviewLink: string;
|
|
898
|
+
status: AssessmentStatusEnum;
|
|
899
|
+
}
|
|
900
|
+
|
|
883
901
|
declare enum AccountType {
|
|
884
902
|
ADMIN = "ADMIN",
|
|
885
903
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -932,6 +950,7 @@ declare class User extends BaseEntity {
|
|
|
932
950
|
senseloafLogs: SenseloafLog[];
|
|
933
951
|
freelancerProfile: FreelancerProfile;
|
|
934
952
|
companyProfile: CompanyProfile;
|
|
953
|
+
assessments: FreelancerAssessment[];
|
|
935
954
|
jobs: Job[];
|
|
936
955
|
interviews: Interview[];
|
|
937
956
|
bankDetail: BankDetail[];
|
|
@@ -1306,4 +1325,4 @@ declare class Permission extends BaseEntity {
|
|
|
1306
1325
|
isActive: boolean;
|
|
1307
1326
|
}
|
|
1308
1327
|
|
|
1309
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CaseStudyDto, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_ADMIN_PATTERNS, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, 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, Interview, InterviewSkill, InterviewStatusEnum, 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, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
|
1328
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, AssessmentStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CaseStudyDto, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_ADMIN_PATTERNS, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, 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, Interview, InterviewSkill, InterviewStatusEnum, 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, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.d.ts
CHANGED
|
@@ -593,7 +593,8 @@ declare enum OnboardingStepEnum {
|
|
|
593
593
|
SIGN_UP = "SIGN_UP",
|
|
594
594
|
UPLOAD_RESUME = "UPLOAD_RESUME",
|
|
595
595
|
PARSE_RESUME = "PARSE_RESUME",
|
|
596
|
-
|
|
596
|
+
AI_ASSESSMENT_INITIATED = "AI_ASSESSMENT_INITIATED",
|
|
597
|
+
AI_ASSESSMENT_COMPLETED = "AI_ASSESSMENT_COMPLETED",
|
|
597
598
|
CODING_CHALLENGE = "CODING_CHALLENGE",
|
|
598
599
|
PROFILE_COMPLETION = "PROFILE_COMPLETION"
|
|
599
600
|
}
|
|
@@ -880,6 +881,23 @@ declare class FreelancerFramework extends BaseEntity {
|
|
|
880
881
|
frameworkName: string;
|
|
881
882
|
}
|
|
882
883
|
|
|
884
|
+
declare enum AssessmentStatusEnum {
|
|
885
|
+
NOT_ATTEMPTED = "NOT_ATTEMPTED",
|
|
886
|
+
ACTIVE = "ACTIVE",
|
|
887
|
+
PASSED = "PASSED",
|
|
888
|
+
FAILED = "FAILED",
|
|
889
|
+
EXPIRED = "EXPIRED",
|
|
890
|
+
POSTPONED = "POSTPONED",
|
|
891
|
+
RESCHEDULED = "RESCHEDULED"
|
|
892
|
+
}
|
|
893
|
+
declare class FreelancerAssessment extends BaseEntity {
|
|
894
|
+
userId: number;
|
|
895
|
+
user: User;
|
|
896
|
+
interviewId: string;
|
|
897
|
+
interviewLink: string;
|
|
898
|
+
status: AssessmentStatusEnum;
|
|
899
|
+
}
|
|
900
|
+
|
|
883
901
|
declare enum AccountType {
|
|
884
902
|
ADMIN = "ADMIN",
|
|
885
903
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -932,6 +950,7 @@ declare class User extends BaseEntity {
|
|
|
932
950
|
senseloafLogs: SenseloafLog[];
|
|
933
951
|
freelancerProfile: FreelancerProfile;
|
|
934
952
|
companyProfile: CompanyProfile;
|
|
953
|
+
assessments: FreelancerAssessment[];
|
|
935
954
|
jobs: Job[];
|
|
936
955
|
interviews: Interview[];
|
|
937
956
|
bankDetail: BankDetail[];
|
|
@@ -1306,4 +1325,4 @@ declare class Permission extends BaseEntity {
|
|
|
1306
1325
|
isActive: boolean;
|
|
1307
1326
|
}
|
|
1308
1327
|
|
|
1309
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CaseStudyDto, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_ADMIN_PATTERNS, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, 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, Interview, InterviewSkill, InterviewStatusEnum, 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, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
|
1328
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, AssessmentStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CaseStudyDto, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_ADMIN_PATTERNS, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, 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, Interview, InterviewSkill, InterviewStatusEnum, 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, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __export(index_exports, {
|
|
|
31
31
|
AccountStatus: () => AccountStatus,
|
|
32
32
|
AccountType: () => AccountType,
|
|
33
33
|
ApplicationStatusEnum: () => ApplicationStatusEnum,
|
|
34
|
+
AssessmentStatusEnum: () => AssessmentStatusEnum,
|
|
34
35
|
BANK_PATTERN: () => BANK_PATTERN,
|
|
35
36
|
BankAccountScope: () => BankAccountScope,
|
|
36
37
|
BankAccountScopeEnum: () => BankAccountScopeEnum,
|
|
@@ -63,6 +64,7 @@ __export(index_exports, {
|
|
|
63
64
|
FREELANCER_SKILL_PATTERN: () => FREELANCER_SKILL_PATTERN,
|
|
64
65
|
Feature: () => Feature,
|
|
65
66
|
ForgotPasswordDto: () => ForgotPasswordDto,
|
|
67
|
+
FreelancerAssessment: () => FreelancerAssessment,
|
|
66
68
|
FreelancerBankDetailsDto: () => FreelancerBankDetailsDto,
|
|
67
69
|
FreelancerCaseStudy: () => FreelancerCaseStudy,
|
|
68
70
|
FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
|
|
@@ -1083,10 +1085,10 @@ var RATING_PATTERN = {
|
|
|
1083
1085
|
var import_class_validator32 = require("class-validator");
|
|
1084
1086
|
|
|
1085
1087
|
// src/entities/rating.entity.ts
|
|
1086
|
-
var
|
|
1088
|
+
var import_typeorm25 = require("typeorm");
|
|
1087
1089
|
|
|
1088
1090
|
// src/entities/user.entity.ts
|
|
1089
|
-
var
|
|
1091
|
+
var import_typeorm24 = require("typeorm");
|
|
1090
1092
|
|
|
1091
1093
|
// src/entities/base.entity.ts
|
|
1092
1094
|
var import_typeorm = require("typeorm");
|
|
@@ -1272,7 +1274,8 @@ var OnboardingStepEnum = /* @__PURE__ */ ((OnboardingStepEnum2) => {
|
|
|
1272
1274
|
OnboardingStepEnum2["SIGN_UP"] = "SIGN_UP";
|
|
1273
1275
|
OnboardingStepEnum2["UPLOAD_RESUME"] = "UPLOAD_RESUME";
|
|
1274
1276
|
OnboardingStepEnum2["PARSE_RESUME"] = "PARSE_RESUME";
|
|
1275
|
-
OnboardingStepEnum2["
|
|
1277
|
+
OnboardingStepEnum2["AI_ASSESSMENT_INITIATED"] = "AI_ASSESSMENT_INITIATED";
|
|
1278
|
+
OnboardingStepEnum2["AI_ASSESSMENT_COMPLETED"] = "AI_ASSESSMENT_COMPLETED";
|
|
1276
1279
|
OnboardingStepEnum2["CODING_CHALLENGE"] = "CODING_CHALLENGE";
|
|
1277
1280
|
OnboardingStepEnum2["PROFILE_COMPLETION"] = "PROFILE_COMPLETION";
|
|
1278
1281
|
return OnboardingStepEnum2;
|
|
@@ -2193,6 +2196,46 @@ FreelancerFramework = __decorateClass([
|
|
|
2193
2196
|
(0, import_typeorm22.Entity)("freelancer_frameworks")
|
|
2194
2197
|
], FreelancerFramework);
|
|
2195
2198
|
|
|
2199
|
+
// src/entities/freelancer-assessment.entity.ts
|
|
2200
|
+
var import_typeorm23 = require("typeorm");
|
|
2201
|
+
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2202
|
+
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2203
|
+
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
2204
|
+
AssessmentStatusEnum2["PASSED"] = "PASSED";
|
|
2205
|
+
AssessmentStatusEnum2["FAILED"] = "FAILED";
|
|
2206
|
+
AssessmentStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2207
|
+
AssessmentStatusEnum2["POSTPONED"] = "POSTPONED";
|
|
2208
|
+
AssessmentStatusEnum2["RESCHEDULED"] = "RESCHEDULED";
|
|
2209
|
+
return AssessmentStatusEnum2;
|
|
2210
|
+
})(AssessmentStatusEnum || {});
|
|
2211
|
+
var FreelancerAssessment = class extends BaseEntity {
|
|
2212
|
+
};
|
|
2213
|
+
__decorateClass([
|
|
2214
|
+
(0, import_typeorm23.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
2215
|
+
(0, import_typeorm23.Index)()
|
|
2216
|
+
], FreelancerAssessment.prototype, "userId", 2);
|
|
2217
|
+
__decorateClass([
|
|
2218
|
+
(0, import_typeorm23.ManyToOne)(() => User, (user) => user.assessments),
|
|
2219
|
+
(0, import_typeorm23.JoinColumn)({ name: "user_id" })
|
|
2220
|
+
], FreelancerAssessment.prototype, "user", 2);
|
|
2221
|
+
__decorateClass([
|
|
2222
|
+
(0, import_typeorm23.Column)({ name: "interview_id", type: "varchar", nullable: true })
|
|
2223
|
+
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2224
|
+
__decorateClass([
|
|
2225
|
+
(0, import_typeorm23.Column)({ name: "interview_link", type: "text", nullable: true })
|
|
2226
|
+
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2227
|
+
__decorateClass([
|
|
2228
|
+
(0, import_typeorm23.Column)({
|
|
2229
|
+
name: "status",
|
|
2230
|
+
type: "enum",
|
|
2231
|
+
enum: AssessmentStatusEnum,
|
|
2232
|
+
nullable: true
|
|
2233
|
+
})
|
|
2234
|
+
], FreelancerAssessment.prototype, "status", 2);
|
|
2235
|
+
FreelancerAssessment = __decorateClass([
|
|
2236
|
+
(0, import_typeorm23.Entity)("freelancer_assessments")
|
|
2237
|
+
], FreelancerAssessment);
|
|
2238
|
+
|
|
2196
2239
|
// src/entities/user.entity.ts
|
|
2197
2240
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
2198
2241
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2218,55 +2261,55 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2218
2261
|
var User = class extends BaseEntity {
|
|
2219
2262
|
};
|
|
2220
2263
|
__decorateClass([
|
|
2221
|
-
(0,
|
|
2264
|
+
(0, import_typeorm24.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
2222
2265
|
], User.prototype, "uniqueId", 2);
|
|
2223
2266
|
__decorateClass([
|
|
2224
|
-
(0,
|
|
2225
|
-
(0,
|
|
2267
|
+
(0, import_typeorm24.Column)({ name: "parent_id", type: "integer", nullable: true }),
|
|
2268
|
+
(0, import_typeorm24.Index)()
|
|
2226
2269
|
], User.prototype, "parentId", 2);
|
|
2227
2270
|
__decorateClass([
|
|
2228
|
-
(0,
|
|
2229
|
-
(0,
|
|
2271
|
+
(0, import_typeorm24.Column)({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2272
|
+
(0, import_typeorm24.Index)()
|
|
2230
2273
|
], User.prototype, "companyRoleId", 2);
|
|
2231
2274
|
__decorateClass([
|
|
2232
|
-
(0,
|
|
2233
|
-
(0,
|
|
2275
|
+
(0, import_typeorm24.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
|
|
2276
|
+
(0, import_typeorm24.JoinColumn)({ name: "parent_id" })
|
|
2234
2277
|
], User.prototype, "parent", 2);
|
|
2235
2278
|
__decorateClass([
|
|
2236
|
-
(0,
|
|
2279
|
+
(0, import_typeorm24.OneToMany)(() => User, (user) => user.parent)
|
|
2237
2280
|
], User.prototype, "children", 2);
|
|
2238
2281
|
__decorateClass([
|
|
2239
|
-
(0,
|
|
2282
|
+
(0, import_typeorm24.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2240
2283
|
], User.prototype, "username", 2);
|
|
2241
2284
|
__decorateClass([
|
|
2242
|
-
(0,
|
|
2285
|
+
(0, import_typeorm24.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2243
2286
|
], User.prototype, "firstName", 2);
|
|
2244
2287
|
__decorateClass([
|
|
2245
|
-
(0,
|
|
2288
|
+
(0, import_typeorm24.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2246
2289
|
], User.prototype, "lastName", 2);
|
|
2247
2290
|
__decorateClass([
|
|
2248
|
-
(0,
|
|
2291
|
+
(0, import_typeorm24.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
2249
2292
|
], User.prototype, "dateOfBirth", 2);
|
|
2250
2293
|
__decorateClass([
|
|
2251
|
-
(0,
|
|
2294
|
+
(0, import_typeorm24.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2252
2295
|
], User.prototype, "gender", 2);
|
|
2253
2296
|
__decorateClass([
|
|
2254
|
-
(0,
|
|
2297
|
+
(0, import_typeorm24.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2255
2298
|
], User.prototype, "profilePictureUrl", 2);
|
|
2256
2299
|
__decorateClass([
|
|
2257
|
-
(0,
|
|
2300
|
+
(0, import_typeorm24.Column)({ name: "email", type: "varchar", unique: true })
|
|
2258
2301
|
], User.prototype, "email", 2);
|
|
2259
2302
|
__decorateClass([
|
|
2260
|
-
(0,
|
|
2303
|
+
(0, import_typeorm24.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2261
2304
|
], User.prototype, "mobileCode", 2);
|
|
2262
2305
|
__decorateClass([
|
|
2263
|
-
(0,
|
|
2306
|
+
(0, import_typeorm24.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2264
2307
|
], User.prototype, "mobile", 2);
|
|
2265
2308
|
__decorateClass([
|
|
2266
|
-
(0,
|
|
2309
|
+
(0, import_typeorm24.Column)({ name: "password", type: "varchar", nullable: true })
|
|
2267
2310
|
], User.prototype, "password", 2);
|
|
2268
2311
|
__decorateClass([
|
|
2269
|
-
(0,
|
|
2312
|
+
(0, import_typeorm24.Column)({
|
|
2270
2313
|
name: "account_type",
|
|
2271
2314
|
type: "enum",
|
|
2272
2315
|
enum: AccountType,
|
|
@@ -2274,7 +2317,7 @@ __decorateClass([
|
|
|
2274
2317
|
})
|
|
2275
2318
|
], User.prototype, "accountType", 2);
|
|
2276
2319
|
__decorateClass([
|
|
2277
|
-
(0,
|
|
2320
|
+
(0, import_typeorm24.Column)({
|
|
2278
2321
|
name: "account_status",
|
|
2279
2322
|
type: "enum",
|
|
2280
2323
|
enum: AccountStatus,
|
|
@@ -2282,36 +2325,36 @@ __decorateClass([
|
|
|
2282
2325
|
})
|
|
2283
2326
|
], User.prototype, "accountStatus", 2);
|
|
2284
2327
|
__decorateClass([
|
|
2285
|
-
(0,
|
|
2328
|
+
(0, import_typeorm24.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
2286
2329
|
], User.prototype, "isEmailVerified", 2);
|
|
2287
2330
|
__decorateClass([
|
|
2288
|
-
(0,
|
|
2331
|
+
(0, import_typeorm24.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2289
2332
|
], User.prototype, "isMobileVerified", 2);
|
|
2290
2333
|
__decorateClass([
|
|
2291
|
-
(0,
|
|
2334
|
+
(0, import_typeorm24.Column)({
|
|
2292
2335
|
name: "last_login_at",
|
|
2293
2336
|
type: "timestamp with time zone",
|
|
2294
2337
|
nullable: true
|
|
2295
2338
|
})
|
|
2296
2339
|
], User.prototype, "lastLoginAt", 2);
|
|
2297
2340
|
__decorateClass([
|
|
2298
|
-
(0,
|
|
2341
|
+
(0, import_typeorm24.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2299
2342
|
], User.prototype, "lastLoginIp", 2);
|
|
2300
2343
|
__decorateClass([
|
|
2301
|
-
(0,
|
|
2344
|
+
(0, import_typeorm24.Column)({ name: "reset_token", type: "varchar", nullable: true })
|
|
2302
2345
|
], User.prototype, "resetToken", 2);
|
|
2303
2346
|
__decorateClass([
|
|
2304
|
-
(0,
|
|
2347
|
+
(0, import_typeorm24.Column)({
|
|
2305
2348
|
name: "reset_token_expire_at",
|
|
2306
2349
|
type: "timestamp with time zone",
|
|
2307
2350
|
nullable: true
|
|
2308
2351
|
})
|
|
2309
2352
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
2310
2353
|
__decorateClass([
|
|
2311
|
-
(0,
|
|
2354
|
+
(0, import_typeorm24.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
2312
2355
|
], User.prototype, "refreshTokens", 2);
|
|
2313
2356
|
__decorateClass([
|
|
2314
|
-
(0,
|
|
2357
|
+
(0, import_typeorm24.Column)({
|
|
2315
2358
|
name: "provider",
|
|
2316
2359
|
type: "enum",
|
|
2317
2360
|
enum: Provider,
|
|
@@ -2320,82 +2363,85 @@ __decorateClass([
|
|
|
2320
2363
|
})
|
|
2321
2364
|
], User.prototype, "provider", 2);
|
|
2322
2365
|
__decorateClass([
|
|
2323
|
-
(0,
|
|
2366
|
+
(0, import_typeorm24.Column)({ name: "provider_token", type: "varchar", nullable: true })
|
|
2324
2367
|
], User.prototype, "providerToken", 2);
|
|
2325
2368
|
__decorateClass([
|
|
2326
|
-
(0,
|
|
2369
|
+
(0, import_typeorm24.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2327
2370
|
], User.prototype, "linkedInId", 2);
|
|
2328
2371
|
__decorateClass([
|
|
2329
|
-
(0,
|
|
2372
|
+
(0, import_typeorm24.Column)({ name: "google_id", type: "varchar", nullable: true })
|
|
2330
2373
|
], User.prototype, "googleId", 2);
|
|
2331
2374
|
__decorateClass([
|
|
2332
|
-
(0,
|
|
2375
|
+
(0, import_typeorm24.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2333
2376
|
], User.prototype, "gitLabsId", 2);
|
|
2334
2377
|
__decorateClass([
|
|
2335
|
-
(0,
|
|
2378
|
+
(0, import_typeorm24.OneToMany)(() => Otp, (otp) => otp.user)
|
|
2336
2379
|
], User.prototype, "otps", 2);
|
|
2337
2380
|
__decorateClass([
|
|
2338
|
-
(0,
|
|
2381
|
+
(0, import_typeorm24.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
2339
2382
|
], User.prototype, "senseloafLogs", 2);
|
|
2340
2383
|
__decorateClass([
|
|
2341
|
-
(0,
|
|
2384
|
+
(0, import_typeorm24.OneToOne)(
|
|
2342
2385
|
() => FreelancerProfile,
|
|
2343
2386
|
(freelancerProfile) => freelancerProfile.user
|
|
2344
2387
|
)
|
|
2345
2388
|
], User.prototype, "freelancerProfile", 2);
|
|
2346
2389
|
__decorateClass([
|
|
2347
|
-
(0,
|
|
2390
|
+
(0, import_typeorm24.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
2348
2391
|
], User.prototype, "companyProfile", 2);
|
|
2349
2392
|
__decorateClass([
|
|
2350
|
-
(0,
|
|
2393
|
+
(0, import_typeorm24.OneToMany)(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
2394
|
+
], User.prototype, "assessments", 2);
|
|
2395
|
+
__decorateClass([
|
|
2396
|
+
(0, import_typeorm24.OneToMany)(() => Job, (job) => job.user)
|
|
2351
2397
|
], User.prototype, "jobs", 2);
|
|
2352
2398
|
__decorateClass([
|
|
2353
|
-
(0,
|
|
2399
|
+
(0, import_typeorm24.OneToMany)(() => Interview, (interview) => interview.user)
|
|
2354
2400
|
], User.prototype, "interviews", 2);
|
|
2355
2401
|
__decorateClass([
|
|
2356
|
-
(0,
|
|
2402
|
+
(0, import_typeorm24.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
2357
2403
|
], User.prototype, "bankDetail", 2);
|
|
2358
2404
|
__decorateClass([
|
|
2359
|
-
(0,
|
|
2405
|
+
(0, import_typeorm24.OneToMany)(
|
|
2360
2406
|
() => SystemPreference,
|
|
2361
2407
|
(systemPreference) => systemPreference.user
|
|
2362
2408
|
)
|
|
2363
2409
|
], User.prototype, "systemPreference", 2);
|
|
2364
2410
|
__decorateClass([
|
|
2365
|
-
(0,
|
|
2411
|
+
(0, import_typeorm24.OneToMany)(() => Rating, (rating) => rating.reviewer)
|
|
2366
2412
|
], User.prototype, "givenRatings", 2);
|
|
2367
2413
|
__decorateClass([
|
|
2368
|
-
(0,
|
|
2414
|
+
(0, import_typeorm24.OneToMany)(() => Rating, (rating) => rating.reviewee)
|
|
2369
2415
|
], User.prototype, "receivedRatings", 2);
|
|
2370
2416
|
__decorateClass([
|
|
2371
|
-
(0,
|
|
2417
|
+
(0, import_typeorm24.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
2372
2418
|
], User.prototype, "jobApplications", 2);
|
|
2373
2419
|
__decorateClass([
|
|
2374
|
-
(0,
|
|
2420
|
+
(0, import_typeorm24.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
|
|
2375
2421
|
], User.prototype, "companyRole", 2);
|
|
2376
2422
|
__decorateClass([
|
|
2377
|
-
(0,
|
|
2423
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2378
2424
|
], User.prototype, "freelancerExperience", 2);
|
|
2379
2425
|
__decorateClass([
|
|
2380
|
-
(0,
|
|
2426
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2381
2427
|
], User.prototype, "freelancerEducation", 2);
|
|
2382
2428
|
__decorateClass([
|
|
2383
|
-
(0,
|
|
2429
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
|
|
2384
2430
|
], User.prototype, "freelancerProject", 2);
|
|
2385
2431
|
__decorateClass([
|
|
2386
|
-
(0,
|
|
2432
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
|
|
2387
2433
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
2388
2434
|
__decorateClass([
|
|
2389
|
-
(0,
|
|
2435
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerCoreSkill, (freelancerCoreSkill) => freelancerCoreSkill.user)
|
|
2390
2436
|
], User.prototype, "freelancerCoreSkill", 2);
|
|
2391
2437
|
__decorateClass([
|
|
2392
|
-
(0,
|
|
2438
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
2393
2439
|
], User.prototype, "freelancerTool", 2);
|
|
2394
2440
|
__decorateClass([
|
|
2395
|
-
(0,
|
|
2441
|
+
(0, import_typeorm24.OneToOne)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
2396
2442
|
], User.prototype, "freelancerFramework", 2);
|
|
2397
2443
|
User = __decorateClass([
|
|
2398
|
-
(0,
|
|
2444
|
+
(0, import_typeorm24.Entity)("users")
|
|
2399
2445
|
], User);
|
|
2400
2446
|
|
|
2401
2447
|
// src/entities/rating.entity.ts
|
|
@@ -2407,36 +2453,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2407
2453
|
var Rating = class extends BaseEntity {
|
|
2408
2454
|
};
|
|
2409
2455
|
__decorateClass([
|
|
2410
|
-
(0,
|
|
2411
|
-
(0,
|
|
2456
|
+
(0, import_typeorm25.Column)({ name: "reviewer_id", type: "integer" }),
|
|
2457
|
+
(0, import_typeorm25.Index)()
|
|
2412
2458
|
], Rating.prototype, "reviewer_id", 2);
|
|
2413
2459
|
__decorateClass([
|
|
2414
|
-
(0,
|
|
2415
|
-
(0,
|
|
2460
|
+
(0, import_typeorm25.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2461
|
+
(0, import_typeorm25.JoinColumn)({ name: "reviewer_id" })
|
|
2416
2462
|
], Rating.prototype, "reviewer", 2);
|
|
2417
2463
|
__decorateClass([
|
|
2418
|
-
(0,
|
|
2419
|
-
(0,
|
|
2464
|
+
(0, import_typeorm25.Column)({ name: "reviewee_id", type: "integer" }),
|
|
2465
|
+
(0, import_typeorm25.Index)()
|
|
2420
2466
|
], Rating.prototype, "reviewee_id", 2);
|
|
2421
2467
|
__decorateClass([
|
|
2422
|
-
(0,
|
|
2423
|
-
(0,
|
|
2468
|
+
(0, import_typeorm25.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
2469
|
+
(0, import_typeorm25.JoinColumn)({ name: "reviewee_id" })
|
|
2424
2470
|
], Rating.prototype, "reviewee", 2);
|
|
2425
2471
|
__decorateClass([
|
|
2426
|
-
(0,
|
|
2472
|
+
(0, import_typeorm25.Column)({
|
|
2427
2473
|
type: "enum",
|
|
2428
2474
|
enum: RatingTypeEnum,
|
|
2429
2475
|
nullable: true
|
|
2430
2476
|
})
|
|
2431
2477
|
], Rating.prototype, "ratingType", 2);
|
|
2432
2478
|
__decorateClass([
|
|
2433
|
-
(0,
|
|
2479
|
+
(0, import_typeorm25.Column)({ type: "integer", nullable: true })
|
|
2434
2480
|
], Rating.prototype, "rating", 2);
|
|
2435
2481
|
__decorateClass([
|
|
2436
|
-
(0,
|
|
2482
|
+
(0, import_typeorm25.Column)({ type: "text", nullable: true })
|
|
2437
2483
|
], Rating.prototype, "review", 2);
|
|
2438
2484
|
Rating = __decorateClass([
|
|
2439
|
-
(0,
|
|
2485
|
+
(0, import_typeorm25.Entity)("ratings")
|
|
2440
2486
|
], Rating);
|
|
2441
2487
|
|
|
2442
2488
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2970,7 +3016,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2970
3016
|
};
|
|
2971
3017
|
|
|
2972
3018
|
// src/entities/question.entity.ts
|
|
2973
|
-
var
|
|
3019
|
+
var import_typeorm26 = require("typeorm");
|
|
2974
3020
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2975
3021
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2976
3022
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2979,16 +3025,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2979
3025
|
var Question = class extends BaseEntity {
|
|
2980
3026
|
};
|
|
2981
3027
|
__decorateClass([
|
|
2982
|
-
(0,
|
|
3028
|
+
(0, import_typeorm26.Column)({ name: "question", type: "varchar" })
|
|
2983
3029
|
], Question.prototype, "question", 2);
|
|
2984
3030
|
__decorateClass([
|
|
2985
|
-
(0,
|
|
3031
|
+
(0, import_typeorm26.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
2986
3032
|
], Question.prototype, "hint", 2);
|
|
2987
3033
|
__decorateClass([
|
|
2988
|
-
(0,
|
|
3034
|
+
(0, import_typeorm26.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2989
3035
|
], Question.prototype, "slug", 2);
|
|
2990
3036
|
__decorateClass([
|
|
2991
|
-
(0,
|
|
3037
|
+
(0, import_typeorm26.Column)({
|
|
2992
3038
|
name: "question_for",
|
|
2993
3039
|
type: "enum",
|
|
2994
3040
|
enum: QuestionFor,
|
|
@@ -2996,97 +3042,97 @@ __decorateClass([
|
|
|
2996
3042
|
})
|
|
2997
3043
|
], Question.prototype, "questionFor", 2);
|
|
2998
3044
|
__decorateClass([
|
|
2999
|
-
(0,
|
|
3045
|
+
(0, import_typeorm26.Column)({ name: "type", type: "varchar", nullable: true })
|
|
3000
3046
|
], Question.prototype, "type", 2);
|
|
3001
3047
|
__decorateClass([
|
|
3002
|
-
(0,
|
|
3048
|
+
(0, import_typeorm26.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
3003
3049
|
], Question.prototype, "options", 2);
|
|
3004
3050
|
__decorateClass([
|
|
3005
|
-
(0,
|
|
3051
|
+
(0, import_typeorm26.Column)({ name: "is_active", type: "boolean", default: false })
|
|
3006
3052
|
], Question.prototype, "isActive", 2);
|
|
3007
3053
|
Question = __decorateClass([
|
|
3008
|
-
(0,
|
|
3054
|
+
(0, import_typeorm26.Entity)("questions")
|
|
3009
3055
|
], Question);
|
|
3010
3056
|
|
|
3011
3057
|
// src/entities/job-role.entity.ts
|
|
3012
|
-
var
|
|
3058
|
+
var import_typeorm27 = require("typeorm");
|
|
3013
3059
|
var JobRoles = class extends BaseEntity {
|
|
3014
3060
|
};
|
|
3015
3061
|
__decorateClass([
|
|
3016
|
-
(0,
|
|
3062
|
+
(0, import_typeorm27.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3017
3063
|
], JobRoles.prototype, "slug", 2);
|
|
3018
3064
|
__decorateClass([
|
|
3019
|
-
(0,
|
|
3065
|
+
(0, import_typeorm27.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3020
3066
|
], JobRoles.prototype, "name", 2);
|
|
3021
3067
|
__decorateClass([
|
|
3022
|
-
(0,
|
|
3068
|
+
(0, import_typeorm27.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3023
3069
|
], JobRoles.prototype, "isActive", 2);
|
|
3024
3070
|
JobRoles = __decorateClass([
|
|
3025
|
-
(0,
|
|
3071
|
+
(0, import_typeorm27.Entity)("job_roles")
|
|
3026
3072
|
], JobRoles);
|
|
3027
3073
|
|
|
3028
3074
|
// src/entities/plan.entity.ts
|
|
3029
|
-
var
|
|
3075
|
+
var import_typeorm29 = require("typeorm");
|
|
3030
3076
|
|
|
3031
3077
|
// src/entities/feature.entity.ts
|
|
3032
|
-
var
|
|
3078
|
+
var import_typeorm28 = require("typeorm");
|
|
3033
3079
|
var Feature = class extends BaseEntity {
|
|
3034
3080
|
};
|
|
3035
3081
|
__decorateClass([
|
|
3036
|
-
(0,
|
|
3082
|
+
(0, import_typeorm28.Column)({ name: "name", type: "varchar", unique: true })
|
|
3037
3083
|
], Feature.prototype, "name", 2);
|
|
3038
3084
|
__decorateClass([
|
|
3039
|
-
(0,
|
|
3085
|
+
(0, import_typeorm28.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
3040
3086
|
], Feature.prototype, "plans", 2);
|
|
3041
3087
|
Feature = __decorateClass([
|
|
3042
|
-
(0,
|
|
3088
|
+
(0, import_typeorm28.Entity)("features")
|
|
3043
3089
|
], Feature);
|
|
3044
3090
|
|
|
3045
3091
|
// src/entities/plan.entity.ts
|
|
3046
3092
|
var Plan = class extends BaseEntity {
|
|
3047
3093
|
};
|
|
3048
3094
|
__decorateClass([
|
|
3049
|
-
(0,
|
|
3095
|
+
(0, import_typeorm29.Column)({ name: "name", type: "varchar", unique: true })
|
|
3050
3096
|
], Plan.prototype, "name", 2);
|
|
3051
3097
|
__decorateClass([
|
|
3052
|
-
(0,
|
|
3098
|
+
(0, import_typeorm29.Column)({ name: "description", type: "varchar", nullable: true })
|
|
3053
3099
|
], Plan.prototype, "description", 2);
|
|
3054
3100
|
__decorateClass([
|
|
3055
|
-
(0,
|
|
3101
|
+
(0, import_typeorm29.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3056
3102
|
], Plan.prototype, "price", 2);
|
|
3057
3103
|
__decorateClass([
|
|
3058
|
-
(0,
|
|
3104
|
+
(0, import_typeorm29.Column)({ name: "billing_period", type: "varchar" })
|
|
3059
3105
|
], Plan.prototype, "billingPeriod", 2);
|
|
3060
3106
|
__decorateClass([
|
|
3061
|
-
(0,
|
|
3107
|
+
(0, import_typeorm29.Column)({ name: "is_current", type: "boolean", default: false })
|
|
3062
3108
|
], Plan.prototype, "isCurrent", 2);
|
|
3063
3109
|
__decorateClass([
|
|
3064
|
-
(0,
|
|
3065
|
-
(0,
|
|
3110
|
+
(0, import_typeorm29.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3111
|
+
(0, import_typeorm29.JoinTable)()
|
|
3066
3112
|
], Plan.prototype, "features", 2);
|
|
3067
3113
|
Plan = __decorateClass([
|
|
3068
|
-
(0,
|
|
3114
|
+
(0, import_typeorm29.Entity)("plans")
|
|
3069
3115
|
], Plan);
|
|
3070
3116
|
|
|
3071
3117
|
// src/entities/permission.entity.ts
|
|
3072
|
-
var
|
|
3118
|
+
var import_typeorm30 = require("typeorm");
|
|
3073
3119
|
var Permission = class extends BaseEntity {
|
|
3074
3120
|
};
|
|
3075
3121
|
__decorateClass([
|
|
3076
|
-
(0,
|
|
3122
|
+
(0, import_typeorm30.Column)({ name: "name", type: "varchar", nullable: true })
|
|
3077
3123
|
], Permission.prototype, "name", 2);
|
|
3078
3124
|
__decorateClass([
|
|
3079
|
-
(0,
|
|
3080
|
-
(0,
|
|
3125
|
+
(0, import_typeorm30.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3126
|
+
(0, import_typeorm30.Index)()
|
|
3081
3127
|
], Permission.prototype, "slug", 2);
|
|
3082
3128
|
__decorateClass([
|
|
3083
|
-
(0,
|
|
3129
|
+
(0, import_typeorm30.Column)({ name: "description", type: "text", nullable: true })
|
|
3084
3130
|
], Permission.prototype, "description", 2);
|
|
3085
3131
|
__decorateClass([
|
|
3086
|
-
(0,
|
|
3132
|
+
(0, import_typeorm30.Column)({ name: "is_active", type: "boolean", default: true })
|
|
3087
3133
|
], Permission.prototype, "isActive", 2);
|
|
3088
3134
|
Permission = __decorateClass([
|
|
3089
|
-
(0,
|
|
3135
|
+
(0, import_typeorm30.Entity)("permissions")
|
|
3090
3136
|
], Permission);
|
|
3091
3137
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3092
3138
|
0 && (module.exports = {
|
|
@@ -3094,6 +3140,7 @@ Permission = __decorateClass([
|
|
|
3094
3140
|
AccountStatus,
|
|
3095
3141
|
AccountType,
|
|
3096
3142
|
ApplicationStatusEnum,
|
|
3143
|
+
AssessmentStatusEnum,
|
|
3097
3144
|
BANK_PATTERN,
|
|
3098
3145
|
BankAccountScope,
|
|
3099
3146
|
BankAccountScopeEnum,
|
|
@@ -3126,6 +3173,7 @@ Permission = __decorateClass([
|
|
|
3126
3173
|
FREELANCER_SKILL_PATTERN,
|
|
3127
3174
|
Feature,
|
|
3128
3175
|
ForgotPasswordDto,
|
|
3176
|
+
FreelancerAssessment,
|
|
3129
3177
|
FreelancerBankDetailsDto,
|
|
3130
3178
|
FreelancerCaseStudy,
|
|
3131
3179
|
FreelancerChangePasswordDto,
|
package/dist/index.mjs
CHANGED
|
@@ -1027,10 +1027,10 @@ import {
|
|
|
1027
1027
|
} from "class-validator";
|
|
1028
1028
|
|
|
1029
1029
|
// src/entities/rating.entity.ts
|
|
1030
|
-
import { Entity as
|
|
1030
|
+
import { Entity as Entity24, Column as Column25, ManyToOne as ManyToOne23, JoinColumn as JoinColumn23, Index as Index21 } from "typeorm";
|
|
1031
1031
|
|
|
1032
1032
|
// src/entities/user.entity.ts
|
|
1033
|
-
import { Entity as
|
|
1033
|
+
import { Entity as Entity23, Column as Column24, OneToMany as OneToMany7, OneToOne, Index as Index20, ManyToOne as ManyToOne22, JoinColumn as JoinColumn22 } from "typeorm";
|
|
1034
1034
|
|
|
1035
1035
|
// src/entities/base.entity.ts
|
|
1036
1036
|
import {
|
|
@@ -1252,7 +1252,8 @@ var OnboardingStepEnum = /* @__PURE__ */ ((OnboardingStepEnum2) => {
|
|
|
1252
1252
|
OnboardingStepEnum2["SIGN_UP"] = "SIGN_UP";
|
|
1253
1253
|
OnboardingStepEnum2["UPLOAD_RESUME"] = "UPLOAD_RESUME";
|
|
1254
1254
|
OnboardingStepEnum2["PARSE_RESUME"] = "PARSE_RESUME";
|
|
1255
|
-
OnboardingStepEnum2["
|
|
1255
|
+
OnboardingStepEnum2["AI_ASSESSMENT_INITIATED"] = "AI_ASSESSMENT_INITIATED";
|
|
1256
|
+
OnboardingStepEnum2["AI_ASSESSMENT_COMPLETED"] = "AI_ASSESSMENT_COMPLETED";
|
|
1256
1257
|
OnboardingStepEnum2["CODING_CHALLENGE"] = "CODING_CHALLENGE";
|
|
1257
1258
|
OnboardingStepEnum2["PROFILE_COMPLETION"] = "PROFILE_COMPLETION";
|
|
1258
1259
|
return OnboardingStepEnum2;
|
|
@@ -2253,6 +2254,52 @@ FreelancerFramework = __decorateClass([
|
|
|
2253
2254
|
Entity21("freelancer_frameworks")
|
|
2254
2255
|
], FreelancerFramework);
|
|
2255
2256
|
|
|
2257
|
+
// src/entities/freelancer-assessment.entity.ts
|
|
2258
|
+
import {
|
|
2259
|
+
Entity as Entity22,
|
|
2260
|
+
Column as Column23,
|
|
2261
|
+
Index as Index19,
|
|
2262
|
+
ManyToOne as ManyToOne21,
|
|
2263
|
+
JoinColumn as JoinColumn21
|
|
2264
|
+
} from "typeorm";
|
|
2265
|
+
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
2266
|
+
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
2267
|
+
AssessmentStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
2268
|
+
AssessmentStatusEnum2["PASSED"] = "PASSED";
|
|
2269
|
+
AssessmentStatusEnum2["FAILED"] = "FAILED";
|
|
2270
|
+
AssessmentStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
2271
|
+
AssessmentStatusEnum2["POSTPONED"] = "POSTPONED";
|
|
2272
|
+
AssessmentStatusEnum2["RESCHEDULED"] = "RESCHEDULED";
|
|
2273
|
+
return AssessmentStatusEnum2;
|
|
2274
|
+
})(AssessmentStatusEnum || {});
|
|
2275
|
+
var FreelancerAssessment = class extends BaseEntity {
|
|
2276
|
+
};
|
|
2277
|
+
__decorateClass([
|
|
2278
|
+
Column23({ name: "user_id", type: "integer", nullable: true }),
|
|
2279
|
+
Index19()
|
|
2280
|
+
], FreelancerAssessment.prototype, "userId", 2);
|
|
2281
|
+
__decorateClass([
|
|
2282
|
+
ManyToOne21(() => User, (user) => user.assessments),
|
|
2283
|
+
JoinColumn21({ name: "user_id" })
|
|
2284
|
+
], FreelancerAssessment.prototype, "user", 2);
|
|
2285
|
+
__decorateClass([
|
|
2286
|
+
Column23({ name: "interview_id", type: "varchar", nullable: true })
|
|
2287
|
+
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
2288
|
+
__decorateClass([
|
|
2289
|
+
Column23({ name: "interview_link", type: "text", nullable: true })
|
|
2290
|
+
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
2291
|
+
__decorateClass([
|
|
2292
|
+
Column23({
|
|
2293
|
+
name: "status",
|
|
2294
|
+
type: "enum",
|
|
2295
|
+
enum: AssessmentStatusEnum,
|
|
2296
|
+
nullable: true
|
|
2297
|
+
})
|
|
2298
|
+
], FreelancerAssessment.prototype, "status", 2);
|
|
2299
|
+
FreelancerAssessment = __decorateClass([
|
|
2300
|
+
Entity22("freelancer_assessments")
|
|
2301
|
+
], FreelancerAssessment);
|
|
2302
|
+
|
|
2256
2303
|
// src/entities/user.entity.ts
|
|
2257
2304
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
2258
2305
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -2278,55 +2325,55 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
2278
2325
|
var User = class extends BaseEntity {
|
|
2279
2326
|
};
|
|
2280
2327
|
__decorateClass([
|
|
2281
|
-
|
|
2328
|
+
Column24({ name: "unique_id", type: "varchar", unique: true })
|
|
2282
2329
|
], User.prototype, "uniqueId", 2);
|
|
2283
2330
|
__decorateClass([
|
|
2284
|
-
|
|
2285
|
-
|
|
2331
|
+
Column24({ name: "parent_id", type: "integer", nullable: true }),
|
|
2332
|
+
Index20()
|
|
2286
2333
|
], User.prototype, "parentId", 2);
|
|
2287
2334
|
__decorateClass([
|
|
2288
|
-
|
|
2289
|
-
|
|
2335
|
+
Column24({ name: "company_role_id", type: "integer", nullable: true }),
|
|
2336
|
+
Index20()
|
|
2290
2337
|
], User.prototype, "companyRoleId", 2);
|
|
2291
2338
|
__decorateClass([
|
|
2292
|
-
|
|
2293
|
-
|
|
2339
|
+
ManyToOne22(() => User, (user) => user.children, { nullable: true }),
|
|
2340
|
+
JoinColumn22({ name: "parent_id" })
|
|
2294
2341
|
], User.prototype, "parent", 2);
|
|
2295
2342
|
__decorateClass([
|
|
2296
2343
|
OneToMany7(() => User, (user) => user.parent)
|
|
2297
2344
|
], User.prototype, "children", 2);
|
|
2298
2345
|
__decorateClass([
|
|
2299
|
-
|
|
2346
|
+
Column24({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
2300
2347
|
], User.prototype, "username", 2);
|
|
2301
2348
|
__decorateClass([
|
|
2302
|
-
|
|
2349
|
+
Column24({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
2303
2350
|
], User.prototype, "firstName", 2);
|
|
2304
2351
|
__decorateClass([
|
|
2305
|
-
|
|
2352
|
+
Column24({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
2306
2353
|
], User.prototype, "lastName", 2);
|
|
2307
2354
|
__decorateClass([
|
|
2308
|
-
|
|
2355
|
+
Column24({ name: "date_of_birth", type: "date", nullable: true })
|
|
2309
2356
|
], User.prototype, "dateOfBirth", 2);
|
|
2310
2357
|
__decorateClass([
|
|
2311
|
-
|
|
2358
|
+
Column24({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
2312
2359
|
], User.prototype, "gender", 2);
|
|
2313
2360
|
__decorateClass([
|
|
2314
|
-
|
|
2361
|
+
Column24({ name: "profile_picture_url", type: "text", nullable: true })
|
|
2315
2362
|
], User.prototype, "profilePictureUrl", 2);
|
|
2316
2363
|
__decorateClass([
|
|
2317
|
-
|
|
2364
|
+
Column24({ name: "email", type: "varchar", unique: true })
|
|
2318
2365
|
], User.prototype, "email", 2);
|
|
2319
2366
|
__decorateClass([
|
|
2320
|
-
|
|
2367
|
+
Column24({ name: "mobile_code", type: "varchar", nullable: true })
|
|
2321
2368
|
], User.prototype, "mobileCode", 2);
|
|
2322
2369
|
__decorateClass([
|
|
2323
|
-
|
|
2370
|
+
Column24({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
2324
2371
|
], User.prototype, "mobile", 2);
|
|
2325
2372
|
__decorateClass([
|
|
2326
|
-
|
|
2373
|
+
Column24({ name: "password", type: "varchar", nullable: true })
|
|
2327
2374
|
], User.prototype, "password", 2);
|
|
2328
2375
|
__decorateClass([
|
|
2329
|
-
|
|
2376
|
+
Column24({
|
|
2330
2377
|
name: "account_type",
|
|
2331
2378
|
type: "enum",
|
|
2332
2379
|
enum: AccountType,
|
|
@@ -2334,7 +2381,7 @@ __decorateClass([
|
|
|
2334
2381
|
})
|
|
2335
2382
|
], User.prototype, "accountType", 2);
|
|
2336
2383
|
__decorateClass([
|
|
2337
|
-
|
|
2384
|
+
Column24({
|
|
2338
2385
|
name: "account_status",
|
|
2339
2386
|
type: "enum",
|
|
2340
2387
|
enum: AccountStatus,
|
|
@@ -2342,26 +2389,26 @@ __decorateClass([
|
|
|
2342
2389
|
})
|
|
2343
2390
|
], User.prototype, "accountStatus", 2);
|
|
2344
2391
|
__decorateClass([
|
|
2345
|
-
|
|
2392
|
+
Column24({ name: "is_email_verified", type: "boolean", default: false })
|
|
2346
2393
|
], User.prototype, "isEmailVerified", 2);
|
|
2347
2394
|
__decorateClass([
|
|
2348
|
-
|
|
2395
|
+
Column24({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
2349
2396
|
], User.prototype, "isMobileVerified", 2);
|
|
2350
2397
|
__decorateClass([
|
|
2351
|
-
|
|
2398
|
+
Column24({
|
|
2352
2399
|
name: "last_login_at",
|
|
2353
2400
|
type: "timestamp with time zone",
|
|
2354
2401
|
nullable: true
|
|
2355
2402
|
})
|
|
2356
2403
|
], User.prototype, "lastLoginAt", 2);
|
|
2357
2404
|
__decorateClass([
|
|
2358
|
-
|
|
2405
|
+
Column24({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
2359
2406
|
], User.prototype, "lastLoginIp", 2);
|
|
2360
2407
|
__decorateClass([
|
|
2361
|
-
|
|
2408
|
+
Column24({ name: "reset_token", type: "varchar", nullable: true })
|
|
2362
2409
|
], User.prototype, "resetToken", 2);
|
|
2363
2410
|
__decorateClass([
|
|
2364
|
-
|
|
2411
|
+
Column24({
|
|
2365
2412
|
name: "reset_token_expire_at",
|
|
2366
2413
|
type: "timestamp with time zone",
|
|
2367
2414
|
nullable: true
|
|
@@ -2371,7 +2418,7 @@ __decorateClass([
|
|
|
2371
2418
|
OneToMany7(() => RefreshToken, (token) => token.user)
|
|
2372
2419
|
], User.prototype, "refreshTokens", 2);
|
|
2373
2420
|
__decorateClass([
|
|
2374
|
-
|
|
2421
|
+
Column24({
|
|
2375
2422
|
name: "provider",
|
|
2376
2423
|
type: "enum",
|
|
2377
2424
|
enum: Provider,
|
|
@@ -2380,16 +2427,16 @@ __decorateClass([
|
|
|
2380
2427
|
})
|
|
2381
2428
|
], User.prototype, "provider", 2);
|
|
2382
2429
|
__decorateClass([
|
|
2383
|
-
|
|
2430
|
+
Column24({ name: "provider_token", type: "varchar", nullable: true })
|
|
2384
2431
|
], User.prototype, "providerToken", 2);
|
|
2385
2432
|
__decorateClass([
|
|
2386
|
-
|
|
2433
|
+
Column24({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2387
2434
|
], User.prototype, "linkedInId", 2);
|
|
2388
2435
|
__decorateClass([
|
|
2389
|
-
|
|
2436
|
+
Column24({ name: "google_id", type: "varchar", nullable: true })
|
|
2390
2437
|
], User.prototype, "googleId", 2);
|
|
2391
2438
|
__decorateClass([
|
|
2392
|
-
|
|
2439
|
+
Column24({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2393
2440
|
], User.prototype, "gitLabsId", 2);
|
|
2394
2441
|
__decorateClass([
|
|
2395
2442
|
OneToMany7(() => Otp, (otp) => otp.user)
|
|
@@ -2406,6 +2453,9 @@ __decorateClass([
|
|
|
2406
2453
|
__decorateClass([
|
|
2407
2454
|
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
|
|
2408
2455
|
], User.prototype, "companyProfile", 2);
|
|
2456
|
+
__decorateClass([
|
|
2457
|
+
OneToMany7(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
|
|
2458
|
+
], User.prototype, "assessments", 2);
|
|
2409
2459
|
__decorateClass([
|
|
2410
2460
|
OneToMany7(() => Job, (job) => job.user)
|
|
2411
2461
|
], User.prototype, "jobs", 2);
|
|
@@ -2455,7 +2505,7 @@ __decorateClass([
|
|
|
2455
2505
|
OneToOne(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
|
|
2456
2506
|
], User.prototype, "freelancerFramework", 2);
|
|
2457
2507
|
User = __decorateClass([
|
|
2458
|
-
|
|
2508
|
+
Entity23("users")
|
|
2459
2509
|
], User);
|
|
2460
2510
|
|
|
2461
2511
|
// src/entities/rating.entity.ts
|
|
@@ -2467,36 +2517,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2467
2517
|
var Rating = class extends BaseEntity {
|
|
2468
2518
|
};
|
|
2469
2519
|
__decorateClass([
|
|
2470
|
-
|
|
2471
|
-
|
|
2520
|
+
Column25({ name: "reviewer_id", type: "integer" }),
|
|
2521
|
+
Index21()
|
|
2472
2522
|
], Rating.prototype, "reviewer_id", 2);
|
|
2473
2523
|
__decorateClass([
|
|
2474
|
-
|
|
2475
|
-
|
|
2524
|
+
ManyToOne23(() => User, { onDelete: "CASCADE" }),
|
|
2525
|
+
JoinColumn23({ name: "reviewer_id" })
|
|
2476
2526
|
], Rating.prototype, "reviewer", 2);
|
|
2477
2527
|
__decorateClass([
|
|
2478
|
-
|
|
2479
|
-
|
|
2528
|
+
Column25({ name: "reviewee_id", type: "integer" }),
|
|
2529
|
+
Index21()
|
|
2480
2530
|
], Rating.prototype, "reviewee_id", 2);
|
|
2481
2531
|
__decorateClass([
|
|
2482
|
-
|
|
2483
|
-
|
|
2532
|
+
ManyToOne23(() => User, { onDelete: "CASCADE" }),
|
|
2533
|
+
JoinColumn23({ name: "reviewee_id" })
|
|
2484
2534
|
], Rating.prototype, "reviewee", 2);
|
|
2485
2535
|
__decorateClass([
|
|
2486
|
-
|
|
2536
|
+
Column25({
|
|
2487
2537
|
type: "enum",
|
|
2488
2538
|
enum: RatingTypeEnum,
|
|
2489
2539
|
nullable: true
|
|
2490
2540
|
})
|
|
2491
2541
|
], Rating.prototype, "ratingType", 2);
|
|
2492
2542
|
__decorateClass([
|
|
2493
|
-
|
|
2543
|
+
Column25({ type: "integer", nullable: true })
|
|
2494
2544
|
], Rating.prototype, "rating", 2);
|
|
2495
2545
|
__decorateClass([
|
|
2496
|
-
|
|
2546
|
+
Column25({ type: "text", nullable: true })
|
|
2497
2547
|
], Rating.prototype, "review", 2);
|
|
2498
2548
|
Rating = __decorateClass([
|
|
2499
|
-
|
|
2549
|
+
Entity24("ratings")
|
|
2500
2550
|
], Rating);
|
|
2501
2551
|
|
|
2502
2552
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -3036,7 +3086,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
3036
3086
|
};
|
|
3037
3087
|
|
|
3038
3088
|
// src/entities/question.entity.ts
|
|
3039
|
-
import { Entity as
|
|
3089
|
+
import { Entity as Entity25, Column as Column26 } from "typeorm";
|
|
3040
3090
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
3041
3091
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
3042
3092
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -3045,16 +3095,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
3045
3095
|
var Question = class extends BaseEntity {
|
|
3046
3096
|
};
|
|
3047
3097
|
__decorateClass([
|
|
3048
|
-
|
|
3098
|
+
Column26({ name: "question", type: "varchar" })
|
|
3049
3099
|
], Question.prototype, "question", 2);
|
|
3050
3100
|
__decorateClass([
|
|
3051
|
-
|
|
3101
|
+
Column26({ name: "hint", type: "varchar", nullable: true })
|
|
3052
3102
|
], Question.prototype, "hint", 2);
|
|
3053
3103
|
__decorateClass([
|
|
3054
|
-
|
|
3104
|
+
Column26({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3055
3105
|
], Question.prototype, "slug", 2);
|
|
3056
3106
|
__decorateClass([
|
|
3057
|
-
|
|
3107
|
+
Column26({
|
|
3058
3108
|
name: "question_for",
|
|
3059
3109
|
type: "enum",
|
|
3060
3110
|
enum: QuestionFor,
|
|
@@ -3062,103 +3112,104 @@ __decorateClass([
|
|
|
3062
3112
|
})
|
|
3063
3113
|
], Question.prototype, "questionFor", 2);
|
|
3064
3114
|
__decorateClass([
|
|
3065
|
-
|
|
3115
|
+
Column26({ name: "type", type: "varchar", nullable: true })
|
|
3066
3116
|
], Question.prototype, "type", 2);
|
|
3067
3117
|
__decorateClass([
|
|
3068
|
-
|
|
3118
|
+
Column26({ name: "options", type: "jsonb", nullable: true })
|
|
3069
3119
|
], Question.prototype, "options", 2);
|
|
3070
3120
|
__decorateClass([
|
|
3071
|
-
|
|
3121
|
+
Column26({ name: "is_active", type: "boolean", default: false })
|
|
3072
3122
|
], Question.prototype, "isActive", 2);
|
|
3073
3123
|
Question = __decorateClass([
|
|
3074
|
-
|
|
3124
|
+
Entity25("questions")
|
|
3075
3125
|
], Question);
|
|
3076
3126
|
|
|
3077
3127
|
// src/entities/job-role.entity.ts
|
|
3078
|
-
import { Entity as
|
|
3128
|
+
import { Entity as Entity26, Column as Column27 } from "typeorm";
|
|
3079
3129
|
var JobRoles = class extends BaseEntity {
|
|
3080
3130
|
};
|
|
3081
3131
|
__decorateClass([
|
|
3082
|
-
|
|
3132
|
+
Column27({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
3083
3133
|
], JobRoles.prototype, "slug", 2);
|
|
3084
3134
|
__decorateClass([
|
|
3085
|
-
|
|
3135
|
+
Column27({ name: "name", type: "varchar", nullable: true })
|
|
3086
3136
|
], JobRoles.prototype, "name", 2);
|
|
3087
3137
|
__decorateClass([
|
|
3088
|
-
|
|
3138
|
+
Column27({ name: "is_active", type: "boolean", default: true })
|
|
3089
3139
|
], JobRoles.prototype, "isActive", 2);
|
|
3090
3140
|
JobRoles = __decorateClass([
|
|
3091
|
-
|
|
3141
|
+
Entity26("job_roles")
|
|
3092
3142
|
], JobRoles);
|
|
3093
3143
|
|
|
3094
3144
|
// src/entities/plan.entity.ts
|
|
3095
|
-
import { Entity as
|
|
3145
|
+
import { Entity as Entity28, Column as Column29, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
3096
3146
|
|
|
3097
3147
|
// src/entities/feature.entity.ts
|
|
3098
|
-
import { Entity as
|
|
3148
|
+
import { Entity as Entity27, Column as Column28, ManyToMany } from "typeorm";
|
|
3099
3149
|
var Feature = class extends BaseEntity {
|
|
3100
3150
|
};
|
|
3101
3151
|
__decorateClass([
|
|
3102
|
-
|
|
3152
|
+
Column28({ name: "name", type: "varchar", unique: true })
|
|
3103
3153
|
], Feature.prototype, "name", 2);
|
|
3104
3154
|
__decorateClass([
|
|
3105
3155
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
3106
3156
|
], Feature.prototype, "plans", 2);
|
|
3107
3157
|
Feature = __decorateClass([
|
|
3108
|
-
|
|
3158
|
+
Entity27("features")
|
|
3109
3159
|
], Feature);
|
|
3110
3160
|
|
|
3111
3161
|
// src/entities/plan.entity.ts
|
|
3112
3162
|
var Plan = class extends BaseEntity {
|
|
3113
3163
|
};
|
|
3114
3164
|
__decorateClass([
|
|
3115
|
-
|
|
3165
|
+
Column29({ name: "name", type: "varchar", unique: true })
|
|
3116
3166
|
], Plan.prototype, "name", 2);
|
|
3117
3167
|
__decorateClass([
|
|
3118
|
-
|
|
3168
|
+
Column29({ name: "description", type: "varchar", nullable: true })
|
|
3119
3169
|
], Plan.prototype, "description", 2);
|
|
3120
3170
|
__decorateClass([
|
|
3121
|
-
|
|
3171
|
+
Column29({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
3122
3172
|
], Plan.prototype, "price", 2);
|
|
3123
3173
|
__decorateClass([
|
|
3124
|
-
|
|
3174
|
+
Column29({ name: "billing_period", type: "varchar" })
|
|
3125
3175
|
], Plan.prototype, "billingPeriod", 2);
|
|
3126
3176
|
__decorateClass([
|
|
3127
|
-
|
|
3177
|
+
Column29({ name: "is_current", type: "boolean", default: false })
|
|
3128
3178
|
], Plan.prototype, "isCurrent", 2);
|
|
3129
3179
|
__decorateClass([
|
|
3130
3180
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
3131
3181
|
JoinTable()
|
|
3132
3182
|
], Plan.prototype, "features", 2);
|
|
3133
3183
|
Plan = __decorateClass([
|
|
3134
|
-
|
|
3184
|
+
Entity28("plans")
|
|
3135
3185
|
], Plan);
|
|
3136
3186
|
|
|
3137
3187
|
// src/entities/permission.entity.ts
|
|
3138
|
-
import { Column as
|
|
3188
|
+
import { Column as Column30, Entity as Entity29, Index as Index22 } from "typeorm";
|
|
3139
3189
|
var Permission = class extends BaseEntity {
|
|
3140
3190
|
};
|
|
3141
3191
|
__decorateClass([
|
|
3142
|
-
|
|
3192
|
+
Column30({ name: "name", type: "varchar", nullable: true })
|
|
3143
3193
|
], Permission.prototype, "name", 2);
|
|
3144
3194
|
__decorateClass([
|
|
3145
|
-
|
|
3146
|
-
|
|
3195
|
+
Column30({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
3196
|
+
Index22()
|
|
3147
3197
|
], Permission.prototype, "slug", 2);
|
|
3148
3198
|
__decorateClass([
|
|
3149
|
-
|
|
3199
|
+
Column30({ name: "description", type: "text", nullable: true })
|
|
3150
3200
|
], Permission.prototype, "description", 2);
|
|
3151
3201
|
__decorateClass([
|
|
3152
|
-
|
|
3202
|
+
Column30({ name: "is_active", type: "boolean", default: true })
|
|
3153
3203
|
], Permission.prototype, "isActive", 2);
|
|
3154
3204
|
Permission = __decorateClass([
|
|
3155
|
-
|
|
3205
|
+
Entity29("permissions")
|
|
3156
3206
|
], Permission);
|
|
3157
3207
|
export {
|
|
3158
3208
|
AUTHENTICATION_PATTERN,
|
|
3159
3209
|
AccountStatus,
|
|
3160
3210
|
AccountType,
|
|
3161
3211
|
ApplicationStatusEnum,
|
|
3212
|
+
AssessmentStatusEnum,
|
|
3162
3213
|
BANK_PATTERN,
|
|
3163
3214
|
BankAccountScope,
|
|
3164
3215
|
BankAccountScopeEnum,
|
|
@@ -3191,6 +3242,7 @@ export {
|
|
|
3191
3242
|
FREELANCER_SKILL_PATTERN,
|
|
3192
3243
|
Feature,
|
|
3193
3244
|
ForgotPasswordDto,
|
|
3245
|
+
FreelancerAssessment,
|
|
3194
3246
|
FreelancerBankDetailsDto,
|
|
3195
3247
|
FreelancerCaseStudy,
|
|
3196
3248
|
FreelancerChangePasswordDto,
|