@experts_hub/shared 1.0.164 → 1.0.166

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,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
+ onboardingStepCompleted: AssessmentStatusEnum;
18
+ }
@@ -12,15 +12,17 @@ export declare enum ModeOfWork {
12
12
  }
13
13
  export declare enum OnboardingStepEnum {
14
14
  SIGN_UP = "SIGN_UP",
15
- OTP_VERIFIED = "OTP_VERIFIED",
16
15
  UPLOAD_RESUME = "UPLOAD_RESUME",
17
- AI_VIDEO_ASSESMENT = "AI_VIDEO_ASSESMENT",
16
+ PARSE_RESUME = "PARSE_RESUME",
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
  }
21
22
  export declare class FreelancerProfile extends BaseEntity {
22
23
  userId: number;
23
24
  user: User;
25
+ talentId: string;
24
26
  resumeUrl: string;
25
27
  resumeData: string;
26
28
  isDeveloper: boolean;
@@ -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
@@ -591,15 +591,17 @@ declare enum ModeOfWork {
591
591
  }
592
592
  declare enum OnboardingStepEnum {
593
593
  SIGN_UP = "SIGN_UP",
594
- OTP_VERIFIED = "OTP_VERIFIED",
595
594
  UPLOAD_RESUME = "UPLOAD_RESUME",
596
- AI_VIDEO_ASSESMENT = "AI_VIDEO_ASSESMENT",
595
+ PARSE_RESUME = "PARSE_RESUME",
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
  }
600
601
  declare class FreelancerProfile extends BaseEntity {
601
602
  userId: number;
602
603
  user: User;
604
+ talentId: string;
603
605
  resumeUrl: string;
604
606
  resumeData: string;
605
607
  isDeveloper: boolean;
@@ -879,6 +881,23 @@ declare class FreelancerFramework extends BaseEntity {
879
881
  frameworkName: string;
880
882
  }
881
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
+ onboardingStepCompleted: AssessmentStatusEnum;
899
+ }
900
+
882
901
  declare enum AccountType {
883
902
  ADMIN = "ADMIN",
884
903
  SUB_ADMIN = "SUB_ADMIN",
@@ -931,6 +950,7 @@ declare class User extends BaseEntity {
931
950
  senseloafLogs: SenseloafLog[];
932
951
  freelancerProfile: FreelancerProfile;
933
952
  companyProfile: CompanyProfile;
953
+ assessments: FreelancerAssessment[];
934
954
  jobs: Job[];
935
955
  interviews: Interview[];
936
956
  bankDetail: BankDetail[];
@@ -1305,4 +1325,4 @@ declare class Permission extends BaseEntity {
1305
1325
  isActive: boolean;
1306
1326
  }
1307
1327
 
1308
- 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
@@ -591,15 +591,17 @@ declare enum ModeOfWork {
591
591
  }
592
592
  declare enum OnboardingStepEnum {
593
593
  SIGN_UP = "SIGN_UP",
594
- OTP_VERIFIED = "OTP_VERIFIED",
595
594
  UPLOAD_RESUME = "UPLOAD_RESUME",
596
- AI_VIDEO_ASSESMENT = "AI_VIDEO_ASSESMENT",
595
+ PARSE_RESUME = "PARSE_RESUME",
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
  }
600
601
  declare class FreelancerProfile extends BaseEntity {
601
602
  userId: number;
602
603
  user: User;
604
+ talentId: string;
603
605
  resumeUrl: string;
604
606
  resumeData: string;
605
607
  isDeveloper: boolean;
@@ -879,6 +881,23 @@ declare class FreelancerFramework extends BaseEntity {
879
881
  frameworkName: string;
880
882
  }
881
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
+ onboardingStepCompleted: AssessmentStatusEnum;
899
+ }
900
+
882
901
  declare enum AccountType {
883
902
  ADMIN = "ADMIN",
884
903
  SUB_ADMIN = "SUB_ADMIN",
@@ -931,6 +950,7 @@ declare class User extends BaseEntity {
931
950
  senseloafLogs: SenseloafLog[];
932
951
  freelancerProfile: FreelancerProfile;
933
952
  companyProfile: CompanyProfile;
953
+ assessments: FreelancerAssessment[];
934
954
  jobs: Job[];
935
955
  interviews: Interview[];
936
956
  bankDetail: BankDetail[];
@@ -1305,4 +1325,4 @@ declare class Permission extends BaseEntity {
1305
1325
  isActive: boolean;
1306
1326
  }
1307
1327
 
1308
- 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 import_typeorm24 = require("typeorm");
1088
+ var import_typeorm25 = require("typeorm");
1087
1089
 
1088
1090
  // src/entities/user.entity.ts
1089
- var import_typeorm23 = require("typeorm");
1091
+ var import_typeorm24 = require("typeorm");
1090
1092
 
1091
1093
  // src/entities/base.entity.ts
1092
1094
  var import_typeorm = require("typeorm");
@@ -1270,9 +1272,10 @@ var ModeOfWork = /* @__PURE__ */ ((ModeOfWork2) => {
1270
1272
  })(ModeOfWork || {});
1271
1273
  var OnboardingStepEnum = /* @__PURE__ */ ((OnboardingStepEnum2) => {
1272
1274
  OnboardingStepEnum2["SIGN_UP"] = "SIGN_UP";
1273
- OnboardingStepEnum2["OTP_VERIFIED"] = "OTP_VERIFIED";
1274
1275
  OnboardingStepEnum2["UPLOAD_RESUME"] = "UPLOAD_RESUME";
1275
- OnboardingStepEnum2["AI_VIDEO_ASSESMENT"] = "AI_VIDEO_ASSESMENT";
1276
+ OnboardingStepEnum2["PARSE_RESUME"] = "PARSE_RESUME";
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;
@@ -1288,6 +1291,9 @@ __decorateClass([
1288
1291
  (0, import_typeorm5.ManyToOne)(() => User, (user) => user.freelancerProfile),
1289
1292
  (0, import_typeorm5.JoinColumn)({ name: "user_id" })
1290
1293
  ], FreelancerProfile.prototype, "user", 2);
1294
+ __decorateClass([
1295
+ (0, import_typeorm5.Column)({ name: "talent_id", type: "varchar", nullable: true })
1296
+ ], FreelancerProfile.prototype, "talentId", 2);
1291
1297
  __decorateClass([
1292
1298
  (0, import_typeorm5.Column)({ name: "resume_url", type: "text", nullable: true })
1293
1299
  ], FreelancerProfile.prototype, "resumeUrl", 2);
@@ -2190,6 +2196,46 @@ FreelancerFramework = __decorateClass([
2190
2196
  (0, import_typeorm22.Entity)("freelancer_frameworks")
2191
2197
  ], FreelancerFramework);
2192
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, "onboardingStepCompleted", 2);
2235
+ FreelancerAssessment = __decorateClass([
2236
+ (0, import_typeorm23.Entity)("freelancer_assessments")
2237
+ ], FreelancerAssessment);
2238
+
2193
2239
  // src/entities/user.entity.ts
2194
2240
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
2195
2241
  AccountType2["ADMIN"] = "ADMIN";
@@ -2215,55 +2261,55 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
2215
2261
  var User = class extends BaseEntity {
2216
2262
  };
2217
2263
  __decorateClass([
2218
- (0, import_typeorm23.Column)({ name: "unique_id", type: "varchar", unique: true })
2264
+ (0, import_typeorm24.Column)({ name: "unique_id", type: "varchar", unique: true })
2219
2265
  ], User.prototype, "uniqueId", 2);
2220
2266
  __decorateClass([
2221
- (0, import_typeorm23.Column)({ name: "parent_id", type: "integer", nullable: true }),
2222
- (0, import_typeorm23.Index)()
2267
+ (0, import_typeorm24.Column)({ name: "parent_id", type: "integer", nullable: true }),
2268
+ (0, import_typeorm24.Index)()
2223
2269
  ], User.prototype, "parentId", 2);
2224
2270
  __decorateClass([
2225
- (0, import_typeorm23.Column)({ name: "company_role_id", type: "integer", nullable: true }),
2226
- (0, import_typeorm23.Index)()
2271
+ (0, import_typeorm24.Column)({ name: "company_role_id", type: "integer", nullable: true }),
2272
+ (0, import_typeorm24.Index)()
2227
2273
  ], User.prototype, "companyRoleId", 2);
2228
2274
  __decorateClass([
2229
- (0, import_typeorm23.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
2230
- (0, import_typeorm23.JoinColumn)({ name: "parent_id" })
2275
+ (0, import_typeorm24.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
2276
+ (0, import_typeorm24.JoinColumn)({ name: "parent_id" })
2231
2277
  ], User.prototype, "parent", 2);
2232
2278
  __decorateClass([
2233
- (0, import_typeorm23.OneToMany)(() => User, (user) => user.parent)
2279
+ (0, import_typeorm24.OneToMany)(() => User, (user) => user.parent)
2234
2280
  ], User.prototype, "children", 2);
2235
2281
  __decorateClass([
2236
- (0, import_typeorm23.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
2282
+ (0, import_typeorm24.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
2237
2283
  ], User.prototype, "username", 2);
2238
2284
  __decorateClass([
2239
- (0, import_typeorm23.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
2285
+ (0, import_typeorm24.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
2240
2286
  ], User.prototype, "firstName", 2);
2241
2287
  __decorateClass([
2242
- (0, import_typeorm23.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
2288
+ (0, import_typeorm24.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
2243
2289
  ], User.prototype, "lastName", 2);
2244
2290
  __decorateClass([
2245
- (0, import_typeorm23.Column)({ name: "date_of_birth", type: "date", nullable: true })
2291
+ (0, import_typeorm24.Column)({ name: "date_of_birth", type: "date", nullable: true })
2246
2292
  ], User.prototype, "dateOfBirth", 2);
2247
2293
  __decorateClass([
2248
- (0, import_typeorm23.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
2294
+ (0, import_typeorm24.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
2249
2295
  ], User.prototype, "gender", 2);
2250
2296
  __decorateClass([
2251
- (0, import_typeorm23.Column)({ name: "profile_picture_url", type: "text", nullable: true })
2297
+ (0, import_typeorm24.Column)({ name: "profile_picture_url", type: "text", nullable: true })
2252
2298
  ], User.prototype, "profilePictureUrl", 2);
2253
2299
  __decorateClass([
2254
- (0, import_typeorm23.Column)({ name: "email", type: "varchar", unique: true })
2300
+ (0, import_typeorm24.Column)({ name: "email", type: "varchar", unique: true })
2255
2301
  ], User.prototype, "email", 2);
2256
2302
  __decorateClass([
2257
- (0, import_typeorm23.Column)({ name: "mobile_code", type: "varchar", nullable: true })
2303
+ (0, import_typeorm24.Column)({ name: "mobile_code", type: "varchar", nullable: true })
2258
2304
  ], User.prototype, "mobileCode", 2);
2259
2305
  __decorateClass([
2260
- (0, import_typeorm23.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
2306
+ (0, import_typeorm24.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
2261
2307
  ], User.prototype, "mobile", 2);
2262
2308
  __decorateClass([
2263
- (0, import_typeorm23.Column)({ name: "password", type: "varchar", nullable: true })
2309
+ (0, import_typeorm24.Column)({ name: "password", type: "varchar", nullable: true })
2264
2310
  ], User.prototype, "password", 2);
2265
2311
  __decorateClass([
2266
- (0, import_typeorm23.Column)({
2312
+ (0, import_typeorm24.Column)({
2267
2313
  name: "account_type",
2268
2314
  type: "enum",
2269
2315
  enum: AccountType,
@@ -2271,7 +2317,7 @@ __decorateClass([
2271
2317
  })
2272
2318
  ], User.prototype, "accountType", 2);
2273
2319
  __decorateClass([
2274
- (0, import_typeorm23.Column)({
2320
+ (0, import_typeorm24.Column)({
2275
2321
  name: "account_status",
2276
2322
  type: "enum",
2277
2323
  enum: AccountStatus,
@@ -2279,36 +2325,36 @@ __decorateClass([
2279
2325
  })
2280
2326
  ], User.prototype, "accountStatus", 2);
2281
2327
  __decorateClass([
2282
- (0, import_typeorm23.Column)({ name: "is_email_verified", type: "boolean", default: false })
2328
+ (0, import_typeorm24.Column)({ name: "is_email_verified", type: "boolean", default: false })
2283
2329
  ], User.prototype, "isEmailVerified", 2);
2284
2330
  __decorateClass([
2285
- (0, import_typeorm23.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
2331
+ (0, import_typeorm24.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
2286
2332
  ], User.prototype, "isMobileVerified", 2);
2287
2333
  __decorateClass([
2288
- (0, import_typeorm23.Column)({
2334
+ (0, import_typeorm24.Column)({
2289
2335
  name: "last_login_at",
2290
2336
  type: "timestamp with time zone",
2291
2337
  nullable: true
2292
2338
  })
2293
2339
  ], User.prototype, "lastLoginAt", 2);
2294
2340
  __decorateClass([
2295
- (0, import_typeorm23.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
2341
+ (0, import_typeorm24.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
2296
2342
  ], User.prototype, "lastLoginIp", 2);
2297
2343
  __decorateClass([
2298
- (0, import_typeorm23.Column)({ name: "reset_token", type: "varchar", nullable: true })
2344
+ (0, import_typeorm24.Column)({ name: "reset_token", type: "varchar", nullable: true })
2299
2345
  ], User.prototype, "resetToken", 2);
2300
2346
  __decorateClass([
2301
- (0, import_typeorm23.Column)({
2347
+ (0, import_typeorm24.Column)({
2302
2348
  name: "reset_token_expire_at",
2303
2349
  type: "timestamp with time zone",
2304
2350
  nullable: true
2305
2351
  })
2306
2352
  ], User.prototype, "resetTokenExpireAt", 2);
2307
2353
  __decorateClass([
2308
- (0, import_typeorm23.OneToMany)(() => RefreshToken, (token) => token.user)
2354
+ (0, import_typeorm24.OneToMany)(() => RefreshToken, (token) => token.user)
2309
2355
  ], User.prototype, "refreshTokens", 2);
2310
2356
  __decorateClass([
2311
- (0, import_typeorm23.Column)({
2357
+ (0, import_typeorm24.Column)({
2312
2358
  name: "provider",
2313
2359
  type: "enum",
2314
2360
  enum: Provider,
@@ -2317,82 +2363,85 @@ __decorateClass([
2317
2363
  })
2318
2364
  ], User.prototype, "provider", 2);
2319
2365
  __decorateClass([
2320
- (0, import_typeorm23.Column)({ name: "provider_token", type: "varchar", nullable: true })
2366
+ (0, import_typeorm24.Column)({ name: "provider_token", type: "varchar", nullable: true })
2321
2367
  ], User.prototype, "providerToken", 2);
2322
2368
  __decorateClass([
2323
- (0, import_typeorm23.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
2369
+ (0, import_typeorm24.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
2324
2370
  ], User.prototype, "linkedInId", 2);
2325
2371
  __decorateClass([
2326
- (0, import_typeorm23.Column)({ name: "google_id", type: "varchar", nullable: true })
2372
+ (0, import_typeorm24.Column)({ name: "google_id", type: "varchar", nullable: true })
2327
2373
  ], User.prototype, "googleId", 2);
2328
2374
  __decorateClass([
2329
- (0, import_typeorm23.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
2375
+ (0, import_typeorm24.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
2330
2376
  ], User.prototype, "gitLabsId", 2);
2331
2377
  __decorateClass([
2332
- (0, import_typeorm23.OneToMany)(() => Otp, (otp) => otp.user)
2378
+ (0, import_typeorm24.OneToMany)(() => Otp, (otp) => otp.user)
2333
2379
  ], User.prototype, "otps", 2);
2334
2380
  __decorateClass([
2335
- (0, import_typeorm23.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
2381
+ (0, import_typeorm24.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
2336
2382
  ], User.prototype, "senseloafLogs", 2);
2337
2383
  __decorateClass([
2338
- (0, import_typeorm23.OneToOne)(
2384
+ (0, import_typeorm24.OneToOne)(
2339
2385
  () => FreelancerProfile,
2340
2386
  (freelancerProfile) => freelancerProfile.user
2341
2387
  )
2342
2388
  ], User.prototype, "freelancerProfile", 2);
2343
2389
  __decorateClass([
2344
- (0, import_typeorm23.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
2390
+ (0, import_typeorm24.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
2345
2391
  ], User.prototype, "companyProfile", 2);
2346
2392
  __decorateClass([
2347
- (0, import_typeorm23.OneToMany)(() => Job, (job) => job.user)
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)
2348
2397
  ], User.prototype, "jobs", 2);
2349
2398
  __decorateClass([
2350
- (0, import_typeorm23.OneToMany)(() => Interview, (interview) => interview.user)
2399
+ (0, import_typeorm24.OneToMany)(() => Interview, (interview) => interview.user)
2351
2400
  ], User.prototype, "interviews", 2);
2352
2401
  __decorateClass([
2353
- (0, import_typeorm23.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
2402
+ (0, import_typeorm24.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
2354
2403
  ], User.prototype, "bankDetail", 2);
2355
2404
  __decorateClass([
2356
- (0, import_typeorm23.OneToMany)(
2405
+ (0, import_typeorm24.OneToMany)(
2357
2406
  () => SystemPreference,
2358
2407
  (systemPreference) => systemPreference.user
2359
2408
  )
2360
2409
  ], User.prototype, "systemPreference", 2);
2361
2410
  __decorateClass([
2362
- (0, import_typeorm23.OneToMany)(() => Rating, (rating) => rating.reviewer)
2411
+ (0, import_typeorm24.OneToMany)(() => Rating, (rating) => rating.reviewer)
2363
2412
  ], User.prototype, "givenRatings", 2);
2364
2413
  __decorateClass([
2365
- (0, import_typeorm23.OneToMany)(() => Rating, (rating) => rating.reviewee)
2414
+ (0, import_typeorm24.OneToMany)(() => Rating, (rating) => rating.reviewee)
2366
2415
  ], User.prototype, "receivedRatings", 2);
2367
2416
  __decorateClass([
2368
- (0, import_typeorm23.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
2417
+ (0, import_typeorm24.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
2369
2418
  ], User.prototype, "jobApplications", 2);
2370
2419
  __decorateClass([
2371
- (0, import_typeorm23.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
2420
+ (0, import_typeorm24.OneToMany)(() => CompanyRole, (companyRole) => companyRole.user)
2372
2421
  ], User.prototype, "companyRole", 2);
2373
2422
  __decorateClass([
2374
- (0, import_typeorm23.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
2423
+ (0, import_typeorm24.OneToOne)(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
2375
2424
  ], User.prototype, "freelancerExperience", 2);
2376
2425
  __decorateClass([
2377
- (0, import_typeorm23.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
2426
+ (0, import_typeorm24.OneToOne)(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
2378
2427
  ], User.prototype, "freelancerEducation", 2);
2379
2428
  __decorateClass([
2380
- (0, import_typeorm23.OneToOne)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
2429
+ (0, import_typeorm24.OneToOne)(() => FreelancerProject, (freelancerProject) => freelancerProject.user)
2381
2430
  ], User.prototype, "freelancerProject", 2);
2382
2431
  __decorateClass([
2383
- (0, import_typeorm23.OneToOne)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
2432
+ (0, import_typeorm24.OneToOne)(() => FreelancerCaseStudy, (freelancerCaseStudy) => freelancerCaseStudy.user)
2384
2433
  ], User.prototype, "freelancerCaseStudy", 2);
2385
2434
  __decorateClass([
2386
- (0, import_typeorm23.OneToOne)(() => FreelancerCoreSkill, (freelancerCoreSkill) => freelancerCoreSkill.user)
2435
+ (0, import_typeorm24.OneToOne)(() => FreelancerCoreSkill, (freelancerCoreSkill) => freelancerCoreSkill.user)
2387
2436
  ], User.prototype, "freelancerCoreSkill", 2);
2388
2437
  __decorateClass([
2389
- (0, import_typeorm23.OneToOne)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
2438
+ (0, import_typeorm24.OneToOne)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
2390
2439
  ], User.prototype, "freelancerTool", 2);
2391
2440
  __decorateClass([
2392
- (0, import_typeorm23.OneToOne)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
2441
+ (0, import_typeorm24.OneToOne)(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
2393
2442
  ], User.prototype, "freelancerFramework", 2);
2394
2443
  User = __decorateClass([
2395
- (0, import_typeorm23.Entity)("users")
2444
+ (0, import_typeorm24.Entity)("users")
2396
2445
  ], User);
2397
2446
 
2398
2447
  // src/entities/rating.entity.ts
@@ -2404,36 +2453,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
2404
2453
  var Rating = class extends BaseEntity {
2405
2454
  };
2406
2455
  __decorateClass([
2407
- (0, import_typeorm24.Column)({ name: "reviewer_id", type: "integer" }),
2408
- (0, import_typeorm24.Index)()
2456
+ (0, import_typeorm25.Column)({ name: "reviewer_id", type: "integer" }),
2457
+ (0, import_typeorm25.Index)()
2409
2458
  ], Rating.prototype, "reviewer_id", 2);
2410
2459
  __decorateClass([
2411
- (0, import_typeorm24.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2412
- (0, import_typeorm24.JoinColumn)({ name: "reviewer_id" })
2460
+ (0, import_typeorm25.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2461
+ (0, import_typeorm25.JoinColumn)({ name: "reviewer_id" })
2413
2462
  ], Rating.prototype, "reviewer", 2);
2414
2463
  __decorateClass([
2415
- (0, import_typeorm24.Column)({ name: "reviewee_id", type: "integer" }),
2416
- (0, import_typeorm24.Index)()
2464
+ (0, import_typeorm25.Column)({ name: "reviewee_id", type: "integer" }),
2465
+ (0, import_typeorm25.Index)()
2417
2466
  ], Rating.prototype, "reviewee_id", 2);
2418
2467
  __decorateClass([
2419
- (0, import_typeorm24.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2420
- (0, import_typeorm24.JoinColumn)({ name: "reviewee_id" })
2468
+ (0, import_typeorm25.ManyToOne)(() => User, { onDelete: "CASCADE" }),
2469
+ (0, import_typeorm25.JoinColumn)({ name: "reviewee_id" })
2421
2470
  ], Rating.prototype, "reviewee", 2);
2422
2471
  __decorateClass([
2423
- (0, import_typeorm24.Column)({
2472
+ (0, import_typeorm25.Column)({
2424
2473
  type: "enum",
2425
2474
  enum: RatingTypeEnum,
2426
2475
  nullable: true
2427
2476
  })
2428
2477
  ], Rating.prototype, "ratingType", 2);
2429
2478
  __decorateClass([
2430
- (0, import_typeorm24.Column)({ type: "integer", nullable: true })
2479
+ (0, import_typeorm25.Column)({ type: "integer", nullable: true })
2431
2480
  ], Rating.prototype, "rating", 2);
2432
2481
  __decorateClass([
2433
- (0, import_typeorm24.Column)({ type: "text", nullable: true })
2482
+ (0, import_typeorm25.Column)({ type: "text", nullable: true })
2434
2483
  ], Rating.prototype, "review", 2);
2435
2484
  Rating = __decorateClass([
2436
- (0, import_typeorm24.Entity)("ratings")
2485
+ (0, import_typeorm25.Entity)("ratings")
2437
2486
  ], Rating);
2438
2487
 
2439
2488
  // src/modules/rating/dto/add.rating.dto.ts
@@ -2967,7 +3016,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
2967
3016
  };
2968
3017
 
2969
3018
  // src/entities/question.entity.ts
2970
- var import_typeorm25 = require("typeorm");
3019
+ var import_typeorm26 = require("typeorm");
2971
3020
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2972
3021
  QuestionFor2["CLIENT"] = "CLIENT";
2973
3022
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -2976,16 +3025,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
2976
3025
  var Question = class extends BaseEntity {
2977
3026
  };
2978
3027
  __decorateClass([
2979
- (0, import_typeorm25.Column)({ name: "question", type: "varchar" })
3028
+ (0, import_typeorm26.Column)({ name: "question", type: "varchar" })
2980
3029
  ], Question.prototype, "question", 2);
2981
3030
  __decorateClass([
2982
- (0, import_typeorm25.Column)({ name: "hint", type: "varchar", nullable: true })
3031
+ (0, import_typeorm26.Column)({ name: "hint", type: "varchar", nullable: true })
2983
3032
  ], Question.prototype, "hint", 2);
2984
3033
  __decorateClass([
2985
- (0, import_typeorm25.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
3034
+ (0, import_typeorm26.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
2986
3035
  ], Question.prototype, "slug", 2);
2987
3036
  __decorateClass([
2988
- (0, import_typeorm25.Column)({
3037
+ (0, import_typeorm26.Column)({
2989
3038
  name: "question_for",
2990
3039
  type: "enum",
2991
3040
  enum: QuestionFor,
@@ -2993,97 +3042,97 @@ __decorateClass([
2993
3042
  })
2994
3043
  ], Question.prototype, "questionFor", 2);
2995
3044
  __decorateClass([
2996
- (0, import_typeorm25.Column)({ name: "type", type: "varchar", nullable: true })
3045
+ (0, import_typeorm26.Column)({ name: "type", type: "varchar", nullable: true })
2997
3046
  ], Question.prototype, "type", 2);
2998
3047
  __decorateClass([
2999
- (0, import_typeorm25.Column)({ name: "options", type: "jsonb", nullable: true })
3048
+ (0, import_typeorm26.Column)({ name: "options", type: "jsonb", nullable: true })
3000
3049
  ], Question.prototype, "options", 2);
3001
3050
  __decorateClass([
3002
- (0, import_typeorm25.Column)({ name: "is_active", type: "boolean", default: false })
3051
+ (0, import_typeorm26.Column)({ name: "is_active", type: "boolean", default: false })
3003
3052
  ], Question.prototype, "isActive", 2);
3004
3053
  Question = __decorateClass([
3005
- (0, import_typeorm25.Entity)("questions")
3054
+ (0, import_typeorm26.Entity)("questions")
3006
3055
  ], Question);
3007
3056
 
3008
3057
  // src/entities/job-role.entity.ts
3009
- var import_typeorm26 = require("typeorm");
3058
+ var import_typeorm27 = require("typeorm");
3010
3059
  var JobRoles = class extends BaseEntity {
3011
3060
  };
3012
3061
  __decorateClass([
3013
- (0, import_typeorm26.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
3062
+ (0, import_typeorm27.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
3014
3063
  ], JobRoles.prototype, "slug", 2);
3015
3064
  __decorateClass([
3016
- (0, import_typeorm26.Column)({ name: "name", type: "varchar", nullable: true })
3065
+ (0, import_typeorm27.Column)({ name: "name", type: "varchar", nullable: true })
3017
3066
  ], JobRoles.prototype, "name", 2);
3018
3067
  __decorateClass([
3019
- (0, import_typeorm26.Column)({ name: "is_active", type: "boolean", default: true })
3068
+ (0, import_typeorm27.Column)({ name: "is_active", type: "boolean", default: true })
3020
3069
  ], JobRoles.prototype, "isActive", 2);
3021
3070
  JobRoles = __decorateClass([
3022
- (0, import_typeorm26.Entity)("job_roles")
3071
+ (0, import_typeorm27.Entity)("job_roles")
3023
3072
  ], JobRoles);
3024
3073
 
3025
3074
  // src/entities/plan.entity.ts
3026
- var import_typeorm28 = require("typeorm");
3075
+ var import_typeorm29 = require("typeorm");
3027
3076
 
3028
3077
  // src/entities/feature.entity.ts
3029
- var import_typeorm27 = require("typeorm");
3078
+ var import_typeorm28 = require("typeorm");
3030
3079
  var Feature = class extends BaseEntity {
3031
3080
  };
3032
3081
  __decorateClass([
3033
- (0, import_typeorm27.Column)({ name: "name", type: "varchar", unique: true })
3082
+ (0, import_typeorm28.Column)({ name: "name", type: "varchar", unique: true })
3034
3083
  ], Feature.prototype, "name", 2);
3035
3084
  __decorateClass([
3036
- (0, import_typeorm27.ManyToMany)(() => Plan, (plan) => plan.features)
3085
+ (0, import_typeorm28.ManyToMany)(() => Plan, (plan) => plan.features)
3037
3086
  ], Feature.prototype, "plans", 2);
3038
3087
  Feature = __decorateClass([
3039
- (0, import_typeorm27.Entity)("features")
3088
+ (0, import_typeorm28.Entity)("features")
3040
3089
  ], Feature);
3041
3090
 
3042
3091
  // src/entities/plan.entity.ts
3043
3092
  var Plan = class extends BaseEntity {
3044
3093
  };
3045
3094
  __decorateClass([
3046
- (0, import_typeorm28.Column)({ name: "name", type: "varchar", unique: true })
3095
+ (0, import_typeorm29.Column)({ name: "name", type: "varchar", unique: true })
3047
3096
  ], Plan.prototype, "name", 2);
3048
3097
  __decorateClass([
3049
- (0, import_typeorm28.Column)({ name: "description", type: "varchar", nullable: true })
3098
+ (0, import_typeorm29.Column)({ name: "description", type: "varchar", nullable: true })
3050
3099
  ], Plan.prototype, "description", 2);
3051
3100
  __decorateClass([
3052
- (0, import_typeorm28.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
3101
+ (0, import_typeorm29.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
3053
3102
  ], Plan.prototype, "price", 2);
3054
3103
  __decorateClass([
3055
- (0, import_typeorm28.Column)({ name: "billing_period", type: "varchar" })
3104
+ (0, import_typeorm29.Column)({ name: "billing_period", type: "varchar" })
3056
3105
  ], Plan.prototype, "billingPeriod", 2);
3057
3106
  __decorateClass([
3058
- (0, import_typeorm28.Column)({ name: "is_current", type: "boolean", default: false })
3107
+ (0, import_typeorm29.Column)({ name: "is_current", type: "boolean", default: false })
3059
3108
  ], Plan.prototype, "isCurrent", 2);
3060
3109
  __decorateClass([
3061
- (0, import_typeorm28.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
3062
- (0, import_typeorm28.JoinTable)()
3110
+ (0, import_typeorm29.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
3111
+ (0, import_typeorm29.JoinTable)()
3063
3112
  ], Plan.prototype, "features", 2);
3064
3113
  Plan = __decorateClass([
3065
- (0, import_typeorm28.Entity)("plans")
3114
+ (0, import_typeorm29.Entity)("plans")
3066
3115
  ], Plan);
3067
3116
 
3068
3117
  // src/entities/permission.entity.ts
3069
- var import_typeorm29 = require("typeorm");
3118
+ var import_typeorm30 = require("typeorm");
3070
3119
  var Permission = class extends BaseEntity {
3071
3120
  };
3072
3121
  __decorateClass([
3073
- (0, import_typeorm29.Column)({ name: "name", type: "varchar", nullable: true })
3122
+ (0, import_typeorm30.Column)({ name: "name", type: "varchar", nullable: true })
3074
3123
  ], Permission.prototype, "name", 2);
3075
3124
  __decorateClass([
3076
- (0, import_typeorm29.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
3077
- (0, import_typeorm29.Index)()
3125
+ (0, import_typeorm30.Column)({ name: "slug", type: "varchar", nullable: true, unique: true }),
3126
+ (0, import_typeorm30.Index)()
3078
3127
  ], Permission.prototype, "slug", 2);
3079
3128
  __decorateClass([
3080
- (0, import_typeorm29.Column)({ name: "description", type: "text", nullable: true })
3129
+ (0, import_typeorm30.Column)({ name: "description", type: "text", nullable: true })
3081
3130
  ], Permission.prototype, "description", 2);
3082
3131
  __decorateClass([
3083
- (0, import_typeorm29.Column)({ name: "is_active", type: "boolean", default: true })
3132
+ (0, import_typeorm30.Column)({ name: "is_active", type: "boolean", default: true })
3084
3133
  ], Permission.prototype, "isActive", 2);
3085
3134
  Permission = __decorateClass([
3086
- (0, import_typeorm29.Entity)("permissions")
3135
+ (0, import_typeorm30.Entity)("permissions")
3087
3136
  ], Permission);
3088
3137
  // Annotate the CommonJS export names for ESM import in node:
3089
3138
  0 && (module.exports = {
@@ -3091,6 +3140,7 @@ Permission = __decorateClass([
3091
3140
  AccountStatus,
3092
3141
  AccountType,
3093
3142
  ApplicationStatusEnum,
3143
+ AssessmentStatusEnum,
3094
3144
  BANK_PATTERN,
3095
3145
  BankAccountScope,
3096
3146
  BankAccountScopeEnum,
@@ -3123,6 +3173,7 @@ Permission = __decorateClass([
3123
3173
  FREELANCER_SKILL_PATTERN,
3124
3174
  Feature,
3125
3175
  ForgotPasswordDto,
3176
+ FreelancerAssessment,
3126
3177
  FreelancerBankDetailsDto,
3127
3178
  FreelancerCaseStudy,
3128
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 Entity23, Column as Column24, ManyToOne as ManyToOne22, JoinColumn as JoinColumn22, Index as Index20 } from "typeorm";
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 Entity22, Column as Column23, OneToMany as OneToMany7, OneToOne, Index as Index19, ManyToOne as ManyToOne21, JoinColumn as JoinColumn21 } from "typeorm";
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 {
@@ -1250,9 +1250,10 @@ var ModeOfWork = /* @__PURE__ */ ((ModeOfWork2) => {
1250
1250
  })(ModeOfWork || {});
1251
1251
  var OnboardingStepEnum = /* @__PURE__ */ ((OnboardingStepEnum2) => {
1252
1252
  OnboardingStepEnum2["SIGN_UP"] = "SIGN_UP";
1253
- OnboardingStepEnum2["OTP_VERIFIED"] = "OTP_VERIFIED";
1254
1253
  OnboardingStepEnum2["UPLOAD_RESUME"] = "UPLOAD_RESUME";
1255
- OnboardingStepEnum2["AI_VIDEO_ASSESMENT"] = "AI_VIDEO_ASSESMENT";
1254
+ OnboardingStepEnum2["PARSE_RESUME"] = "PARSE_RESUME";
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;
@@ -1268,6 +1269,9 @@ __decorateClass([
1268
1269
  ManyToOne4(() => User, (user) => user.freelancerProfile),
1269
1270
  JoinColumn4({ name: "user_id" })
1270
1271
  ], FreelancerProfile.prototype, "user", 2);
1272
+ __decorateClass([
1273
+ Column5({ name: "talent_id", type: "varchar", nullable: true })
1274
+ ], FreelancerProfile.prototype, "talentId", 2);
1271
1275
  __decorateClass([
1272
1276
  Column5({ name: "resume_url", type: "text", nullable: true })
1273
1277
  ], FreelancerProfile.prototype, "resumeUrl", 2);
@@ -2250,6 +2254,52 @@ FreelancerFramework = __decorateClass([
2250
2254
  Entity21("freelancer_frameworks")
2251
2255
  ], FreelancerFramework);
2252
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, "onboardingStepCompleted", 2);
2299
+ FreelancerAssessment = __decorateClass([
2300
+ Entity22("freelancer_assessments")
2301
+ ], FreelancerAssessment);
2302
+
2253
2303
  // src/entities/user.entity.ts
2254
2304
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
2255
2305
  AccountType2["ADMIN"] = "ADMIN";
@@ -2275,55 +2325,55 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
2275
2325
  var User = class extends BaseEntity {
2276
2326
  };
2277
2327
  __decorateClass([
2278
- Column23({ name: "unique_id", type: "varchar", unique: true })
2328
+ Column24({ name: "unique_id", type: "varchar", unique: true })
2279
2329
  ], User.prototype, "uniqueId", 2);
2280
2330
  __decorateClass([
2281
- Column23({ name: "parent_id", type: "integer", nullable: true }),
2282
- Index19()
2331
+ Column24({ name: "parent_id", type: "integer", nullable: true }),
2332
+ Index20()
2283
2333
  ], User.prototype, "parentId", 2);
2284
2334
  __decorateClass([
2285
- Column23({ name: "company_role_id", type: "integer", nullable: true }),
2286
- Index19()
2335
+ Column24({ name: "company_role_id", type: "integer", nullable: true }),
2336
+ Index20()
2287
2337
  ], User.prototype, "companyRoleId", 2);
2288
2338
  __decorateClass([
2289
- ManyToOne21(() => User, (user) => user.children, { nullable: true }),
2290
- JoinColumn21({ name: "parent_id" })
2339
+ ManyToOne22(() => User, (user) => user.children, { nullable: true }),
2340
+ JoinColumn22({ name: "parent_id" })
2291
2341
  ], User.prototype, "parent", 2);
2292
2342
  __decorateClass([
2293
2343
  OneToMany7(() => User, (user) => user.parent)
2294
2344
  ], User.prototype, "children", 2);
2295
2345
  __decorateClass([
2296
- Column23({ name: "username", type: "varchar", unique: true, nullable: true })
2346
+ Column24({ name: "username", type: "varchar", unique: true, nullable: true })
2297
2347
  ], User.prototype, "username", 2);
2298
2348
  __decorateClass([
2299
- Column23({ name: "first_name", type: "varchar", length: 100, nullable: true })
2349
+ Column24({ name: "first_name", type: "varchar", length: 100, nullable: true })
2300
2350
  ], User.prototype, "firstName", 2);
2301
2351
  __decorateClass([
2302
- Column23({ name: "last_name", type: "varchar", length: 100, nullable: true })
2352
+ Column24({ name: "last_name", type: "varchar", length: 100, nullable: true })
2303
2353
  ], User.prototype, "lastName", 2);
2304
2354
  __decorateClass([
2305
- Column23({ name: "date_of_birth", type: "date", nullable: true })
2355
+ Column24({ name: "date_of_birth", type: "date", nullable: true })
2306
2356
  ], User.prototype, "dateOfBirth", 2);
2307
2357
  __decorateClass([
2308
- Column23({ name: "gender", type: "varchar", length: 10, nullable: true })
2358
+ Column24({ name: "gender", type: "varchar", length: 10, nullable: true })
2309
2359
  ], User.prototype, "gender", 2);
2310
2360
  __decorateClass([
2311
- Column23({ name: "profile_picture_url", type: "text", nullable: true })
2361
+ Column24({ name: "profile_picture_url", type: "text", nullable: true })
2312
2362
  ], User.prototype, "profilePictureUrl", 2);
2313
2363
  __decorateClass([
2314
- Column23({ name: "email", type: "varchar", unique: true })
2364
+ Column24({ name: "email", type: "varchar", unique: true })
2315
2365
  ], User.prototype, "email", 2);
2316
2366
  __decorateClass([
2317
- Column23({ name: "mobile_code", type: "varchar", nullable: true })
2367
+ Column24({ name: "mobile_code", type: "varchar", nullable: true })
2318
2368
  ], User.prototype, "mobileCode", 2);
2319
2369
  __decorateClass([
2320
- Column23({ name: "mobile", type: "varchar", unique: true, nullable: true })
2370
+ Column24({ name: "mobile", type: "varchar", unique: true, nullable: true })
2321
2371
  ], User.prototype, "mobile", 2);
2322
2372
  __decorateClass([
2323
- Column23({ name: "password", type: "varchar", nullable: true })
2373
+ Column24({ name: "password", type: "varchar", nullable: true })
2324
2374
  ], User.prototype, "password", 2);
2325
2375
  __decorateClass([
2326
- Column23({
2376
+ Column24({
2327
2377
  name: "account_type",
2328
2378
  type: "enum",
2329
2379
  enum: AccountType,
@@ -2331,7 +2381,7 @@ __decorateClass([
2331
2381
  })
2332
2382
  ], User.prototype, "accountType", 2);
2333
2383
  __decorateClass([
2334
- Column23({
2384
+ Column24({
2335
2385
  name: "account_status",
2336
2386
  type: "enum",
2337
2387
  enum: AccountStatus,
@@ -2339,26 +2389,26 @@ __decorateClass([
2339
2389
  })
2340
2390
  ], User.prototype, "accountStatus", 2);
2341
2391
  __decorateClass([
2342
- Column23({ name: "is_email_verified", type: "boolean", default: false })
2392
+ Column24({ name: "is_email_verified", type: "boolean", default: false })
2343
2393
  ], User.prototype, "isEmailVerified", 2);
2344
2394
  __decorateClass([
2345
- Column23({ name: "is_mobile_verified", type: "boolean", default: false })
2395
+ Column24({ name: "is_mobile_verified", type: "boolean", default: false })
2346
2396
  ], User.prototype, "isMobileVerified", 2);
2347
2397
  __decorateClass([
2348
- Column23({
2398
+ Column24({
2349
2399
  name: "last_login_at",
2350
2400
  type: "timestamp with time zone",
2351
2401
  nullable: true
2352
2402
  })
2353
2403
  ], User.prototype, "lastLoginAt", 2);
2354
2404
  __decorateClass([
2355
- Column23({ name: "last_login_ip", type: "varchar", nullable: true })
2405
+ Column24({ name: "last_login_ip", type: "varchar", nullable: true })
2356
2406
  ], User.prototype, "lastLoginIp", 2);
2357
2407
  __decorateClass([
2358
- Column23({ name: "reset_token", type: "varchar", nullable: true })
2408
+ Column24({ name: "reset_token", type: "varchar", nullable: true })
2359
2409
  ], User.prototype, "resetToken", 2);
2360
2410
  __decorateClass([
2361
- Column23({
2411
+ Column24({
2362
2412
  name: "reset_token_expire_at",
2363
2413
  type: "timestamp with time zone",
2364
2414
  nullable: true
@@ -2368,7 +2418,7 @@ __decorateClass([
2368
2418
  OneToMany7(() => RefreshToken, (token) => token.user)
2369
2419
  ], User.prototype, "refreshTokens", 2);
2370
2420
  __decorateClass([
2371
- Column23({
2421
+ Column24({
2372
2422
  name: "provider",
2373
2423
  type: "enum",
2374
2424
  enum: Provider,
@@ -2377,16 +2427,16 @@ __decorateClass([
2377
2427
  })
2378
2428
  ], User.prototype, "provider", 2);
2379
2429
  __decorateClass([
2380
- Column23({ name: "provider_token", type: "varchar", nullable: true })
2430
+ Column24({ name: "provider_token", type: "varchar", nullable: true })
2381
2431
  ], User.prototype, "providerToken", 2);
2382
2432
  __decorateClass([
2383
- Column23({ name: "linkedin_id", type: "varchar", nullable: true })
2433
+ Column24({ name: "linkedin_id", type: "varchar", nullable: true })
2384
2434
  ], User.prototype, "linkedInId", 2);
2385
2435
  __decorateClass([
2386
- Column23({ name: "google_id", type: "varchar", nullable: true })
2436
+ Column24({ name: "google_id", type: "varchar", nullable: true })
2387
2437
  ], User.prototype, "googleId", 2);
2388
2438
  __decorateClass([
2389
- Column23({ name: "gitlabs_id", type: "varchar", nullable: true })
2439
+ Column24({ name: "gitlabs_id", type: "varchar", nullable: true })
2390
2440
  ], User.prototype, "gitLabsId", 2);
2391
2441
  __decorateClass([
2392
2442
  OneToMany7(() => Otp, (otp) => otp.user)
@@ -2403,6 +2453,9 @@ __decorateClass([
2403
2453
  __decorateClass([
2404
2454
  OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user, { cascade: true })
2405
2455
  ], User.prototype, "companyProfile", 2);
2456
+ __decorateClass([
2457
+ OneToMany7(() => FreelancerAssessment, (freelancerAssessment) => freelancerAssessment.user)
2458
+ ], User.prototype, "assessments", 2);
2406
2459
  __decorateClass([
2407
2460
  OneToMany7(() => Job, (job) => job.user)
2408
2461
  ], User.prototype, "jobs", 2);
@@ -2452,7 +2505,7 @@ __decorateClass([
2452
2505
  OneToOne(() => FreelancerFramework, (freelancerFramework) => freelancerFramework.user)
2453
2506
  ], User.prototype, "freelancerFramework", 2);
2454
2507
  User = __decorateClass([
2455
- Entity22("users")
2508
+ Entity23("users")
2456
2509
  ], User);
2457
2510
 
2458
2511
  // src/entities/rating.entity.ts
@@ -2464,36 +2517,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
2464
2517
  var Rating = class extends BaseEntity {
2465
2518
  };
2466
2519
  __decorateClass([
2467
- Column24({ name: "reviewer_id", type: "integer" }),
2468
- Index20()
2520
+ Column25({ name: "reviewer_id", type: "integer" }),
2521
+ Index21()
2469
2522
  ], Rating.prototype, "reviewer_id", 2);
2470
2523
  __decorateClass([
2471
- ManyToOne22(() => User, { onDelete: "CASCADE" }),
2472
- JoinColumn22({ name: "reviewer_id" })
2524
+ ManyToOne23(() => User, { onDelete: "CASCADE" }),
2525
+ JoinColumn23({ name: "reviewer_id" })
2473
2526
  ], Rating.prototype, "reviewer", 2);
2474
2527
  __decorateClass([
2475
- Column24({ name: "reviewee_id", type: "integer" }),
2476
- Index20()
2528
+ Column25({ name: "reviewee_id", type: "integer" }),
2529
+ Index21()
2477
2530
  ], Rating.prototype, "reviewee_id", 2);
2478
2531
  __decorateClass([
2479
- ManyToOne22(() => User, { onDelete: "CASCADE" }),
2480
- JoinColumn22({ name: "reviewee_id" })
2532
+ ManyToOne23(() => User, { onDelete: "CASCADE" }),
2533
+ JoinColumn23({ name: "reviewee_id" })
2481
2534
  ], Rating.prototype, "reviewee", 2);
2482
2535
  __decorateClass([
2483
- Column24({
2536
+ Column25({
2484
2537
  type: "enum",
2485
2538
  enum: RatingTypeEnum,
2486
2539
  nullable: true
2487
2540
  })
2488
2541
  ], Rating.prototype, "ratingType", 2);
2489
2542
  __decorateClass([
2490
- Column24({ type: "integer", nullable: true })
2543
+ Column25({ type: "integer", nullable: true })
2491
2544
  ], Rating.prototype, "rating", 2);
2492
2545
  __decorateClass([
2493
- Column24({ type: "text", nullable: true })
2546
+ Column25({ type: "text", nullable: true })
2494
2547
  ], Rating.prototype, "review", 2);
2495
2548
  Rating = __decorateClass([
2496
- Entity23("ratings")
2549
+ Entity24("ratings")
2497
2550
  ], Rating);
2498
2551
 
2499
2552
  // src/modules/rating/dto/add.rating.dto.ts
@@ -3033,7 +3086,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
3033
3086
  };
3034
3087
 
3035
3088
  // src/entities/question.entity.ts
3036
- import { Entity as Entity24, Column as Column25 } from "typeorm";
3089
+ import { Entity as Entity25, Column as Column26 } from "typeorm";
3037
3090
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
3038
3091
  QuestionFor2["CLIENT"] = "CLIENT";
3039
3092
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -3042,16 +3095,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
3042
3095
  var Question = class extends BaseEntity {
3043
3096
  };
3044
3097
  __decorateClass([
3045
- Column25({ name: "question", type: "varchar" })
3098
+ Column26({ name: "question", type: "varchar" })
3046
3099
  ], Question.prototype, "question", 2);
3047
3100
  __decorateClass([
3048
- Column25({ name: "hint", type: "varchar", nullable: true })
3101
+ Column26({ name: "hint", type: "varchar", nullable: true })
3049
3102
  ], Question.prototype, "hint", 2);
3050
3103
  __decorateClass([
3051
- Column25({ name: "slug", type: "varchar", nullable: true, unique: true })
3104
+ Column26({ name: "slug", type: "varchar", nullable: true, unique: true })
3052
3105
  ], Question.prototype, "slug", 2);
3053
3106
  __decorateClass([
3054
- Column25({
3107
+ Column26({
3055
3108
  name: "question_for",
3056
3109
  type: "enum",
3057
3110
  enum: QuestionFor,
@@ -3059,103 +3112,104 @@ __decorateClass([
3059
3112
  })
3060
3113
  ], Question.prototype, "questionFor", 2);
3061
3114
  __decorateClass([
3062
- Column25({ name: "type", type: "varchar", nullable: true })
3115
+ Column26({ name: "type", type: "varchar", nullable: true })
3063
3116
  ], Question.prototype, "type", 2);
3064
3117
  __decorateClass([
3065
- Column25({ name: "options", type: "jsonb", nullable: true })
3118
+ Column26({ name: "options", type: "jsonb", nullable: true })
3066
3119
  ], Question.prototype, "options", 2);
3067
3120
  __decorateClass([
3068
- Column25({ name: "is_active", type: "boolean", default: false })
3121
+ Column26({ name: "is_active", type: "boolean", default: false })
3069
3122
  ], Question.prototype, "isActive", 2);
3070
3123
  Question = __decorateClass([
3071
- Entity24("questions")
3124
+ Entity25("questions")
3072
3125
  ], Question);
3073
3126
 
3074
3127
  // src/entities/job-role.entity.ts
3075
- import { Entity as Entity25, Column as Column26 } from "typeorm";
3128
+ import { Entity as Entity26, Column as Column27 } from "typeorm";
3076
3129
  var JobRoles = class extends BaseEntity {
3077
3130
  };
3078
3131
  __decorateClass([
3079
- Column26({ name: "slug", type: "varchar", nullable: true, unique: true })
3132
+ Column27({ name: "slug", type: "varchar", nullable: true, unique: true })
3080
3133
  ], JobRoles.prototype, "slug", 2);
3081
3134
  __decorateClass([
3082
- Column26({ name: "name", type: "varchar", nullable: true })
3135
+ Column27({ name: "name", type: "varchar", nullable: true })
3083
3136
  ], JobRoles.prototype, "name", 2);
3084
3137
  __decorateClass([
3085
- Column26({ name: "is_active", type: "boolean", default: true })
3138
+ Column27({ name: "is_active", type: "boolean", default: true })
3086
3139
  ], JobRoles.prototype, "isActive", 2);
3087
3140
  JobRoles = __decorateClass([
3088
- Entity25("job_roles")
3141
+ Entity26("job_roles")
3089
3142
  ], JobRoles);
3090
3143
 
3091
3144
  // src/entities/plan.entity.ts
3092
- import { Entity as Entity27, Column as Column28, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
3145
+ import { Entity as Entity28, Column as Column29, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
3093
3146
 
3094
3147
  // src/entities/feature.entity.ts
3095
- import { Entity as Entity26, Column as Column27, ManyToMany } from "typeorm";
3148
+ import { Entity as Entity27, Column as Column28, ManyToMany } from "typeorm";
3096
3149
  var Feature = class extends BaseEntity {
3097
3150
  };
3098
3151
  __decorateClass([
3099
- Column27({ name: "name", type: "varchar", unique: true })
3152
+ Column28({ name: "name", type: "varchar", unique: true })
3100
3153
  ], Feature.prototype, "name", 2);
3101
3154
  __decorateClass([
3102
3155
  ManyToMany(() => Plan, (plan) => plan.features)
3103
3156
  ], Feature.prototype, "plans", 2);
3104
3157
  Feature = __decorateClass([
3105
- Entity26("features")
3158
+ Entity27("features")
3106
3159
  ], Feature);
3107
3160
 
3108
3161
  // src/entities/plan.entity.ts
3109
3162
  var Plan = class extends BaseEntity {
3110
3163
  };
3111
3164
  __decorateClass([
3112
- Column28({ name: "name", type: "varchar", unique: true })
3165
+ Column29({ name: "name", type: "varchar", unique: true })
3113
3166
  ], Plan.prototype, "name", 2);
3114
3167
  __decorateClass([
3115
- Column28({ name: "description", type: "varchar", nullable: true })
3168
+ Column29({ name: "description", type: "varchar", nullable: true })
3116
3169
  ], Plan.prototype, "description", 2);
3117
3170
  __decorateClass([
3118
- Column28({ name: "price", type: "decimal", precision: 10, scale: 2 })
3171
+ Column29({ name: "price", type: "decimal", precision: 10, scale: 2 })
3119
3172
  ], Plan.prototype, "price", 2);
3120
3173
  __decorateClass([
3121
- Column28({ name: "billing_period", type: "varchar" })
3174
+ Column29({ name: "billing_period", type: "varchar" })
3122
3175
  ], Plan.prototype, "billingPeriod", 2);
3123
3176
  __decorateClass([
3124
- Column28({ name: "is_current", type: "boolean", default: false })
3177
+ Column29({ name: "is_current", type: "boolean", default: false })
3125
3178
  ], Plan.prototype, "isCurrent", 2);
3126
3179
  __decorateClass([
3127
3180
  ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
3128
3181
  JoinTable()
3129
3182
  ], Plan.prototype, "features", 2);
3130
3183
  Plan = __decorateClass([
3131
- Entity27("plans")
3184
+ Entity28("plans")
3132
3185
  ], Plan);
3133
3186
 
3134
3187
  // src/entities/permission.entity.ts
3135
- import { Column as Column29, Entity as Entity28, Index as Index21 } from "typeorm";
3188
+ import { Column as Column30, Entity as Entity29, Index as Index22 } from "typeorm";
3136
3189
  var Permission = class extends BaseEntity {
3137
3190
  };
3138
3191
  __decorateClass([
3139
- Column29({ name: "name", type: "varchar", nullable: true })
3192
+ Column30({ name: "name", type: "varchar", nullable: true })
3140
3193
  ], Permission.prototype, "name", 2);
3141
3194
  __decorateClass([
3142
- Column29({ name: "slug", type: "varchar", nullable: true, unique: true }),
3143
- Index21()
3195
+ Column30({ name: "slug", type: "varchar", nullable: true, unique: true }),
3196
+ Index22()
3144
3197
  ], Permission.prototype, "slug", 2);
3145
3198
  __decorateClass([
3146
- Column29({ name: "description", type: "text", nullable: true })
3199
+ Column30({ name: "description", type: "text", nullable: true })
3147
3200
  ], Permission.prototype, "description", 2);
3148
3201
  __decorateClass([
3149
- Column29({ name: "is_active", type: "boolean", default: true })
3202
+ Column30({ name: "is_active", type: "boolean", default: true })
3150
3203
  ], Permission.prototype, "isActive", 2);
3151
3204
  Permission = __decorateClass([
3152
- Entity28("permissions")
3205
+ Entity29("permissions")
3153
3206
  ], Permission);
3154
3207
  export {
3155
3208
  AUTHENTICATION_PATTERN,
3156
3209
  AccountStatus,
3157
3210
  AccountType,
3158
3211
  ApplicationStatusEnum,
3212
+ AssessmentStatusEnum,
3159
3213
  BANK_PATTERN,
3160
3214
  BankAccountScope,
3161
3215
  BankAccountScopeEnum,
@@ -3188,6 +3242,7 @@ export {
3188
3242
  FREELANCER_SKILL_PATTERN,
3189
3243
  Feature,
3190
3244
  ForgotPasswordDto,
3245
+ FreelancerAssessment,
3191
3246
  FreelancerBankDetailsDto,
3192
3247
  FreelancerCaseStudy,
3193
3248
  FreelancerChangePasswordDto,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.164",
3
+ "version": "1.0.166",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",