@experts_hub/shared 1.0.317 → 1.0.319
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/ai-interview.entity.d.ts +43 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/interview-invite.entity.d.ts +4 -3
- package/dist/index.d.mts +43 -3
- package/dist/index.d.ts +43 -3
- package/dist/index.js +262 -110
- package/dist/index.mjs +184 -36
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BaseEntity } from "./base.entity";
|
|
2
|
+
import { Interview } from "./interview.entity";
|
|
3
|
+
import { InterviewInvite } from "./interview-invite.entity";
|
|
4
|
+
import { User } from "./user.entity";
|
|
5
|
+
import { Job } from "./job.entity";
|
|
6
|
+
export declare enum AIInterviewStatusEnum {
|
|
7
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
8
|
+
COMPLETED = "COMPLETED",
|
|
9
|
+
FAILED = "FAILED",
|
|
10
|
+
TIMEOUT = "TIMEOUT",
|
|
11
|
+
CANCELLED = "CANCELLED"
|
|
12
|
+
}
|
|
13
|
+
export declare enum AIInterviewTypeEnum {
|
|
14
|
+
AI_INTERVIEW = "AI_INTERVIEW",
|
|
15
|
+
AI_INTERVIEW_AND_CODING_EXERCISE = "AI_INTERVIEW_AND_CODING_EXERCISE",
|
|
16
|
+
AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE = "AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE",
|
|
17
|
+
CODING_EXERCISE = "CODING_EXERCISE"
|
|
18
|
+
}
|
|
19
|
+
export declare enum AIInterviewResultEnum {
|
|
20
|
+
PASSED = "PASSED",
|
|
21
|
+
FAILED = "FAILED",
|
|
22
|
+
NEEDS_REVIEW = "NEEDS_REVIEW",
|
|
23
|
+
INCOMPLETE = "INCOMPLETE"
|
|
24
|
+
}
|
|
25
|
+
export declare class AIInterview extends BaseEntity {
|
|
26
|
+
interviewId: number;
|
|
27
|
+
interviewInviteId: number;
|
|
28
|
+
candidateId: number;
|
|
29
|
+
jobId: number;
|
|
30
|
+
inviteToken: string;
|
|
31
|
+
interviewType: AIInterviewTypeEnum;
|
|
32
|
+
interviewName: string;
|
|
33
|
+
jobTitle: string;
|
|
34
|
+
status: AIInterviewStatusEnum;
|
|
35
|
+
startedAt: Date;
|
|
36
|
+
completedAt: Date;
|
|
37
|
+
durationMinutes: number;
|
|
38
|
+
overallScore: number;
|
|
39
|
+
interview: Interview;
|
|
40
|
+
interviewInvite: InterviewInvite;
|
|
41
|
+
candidate: User;
|
|
42
|
+
job: Job;
|
|
43
|
+
}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from './interview.entity';
|
|
|
29
29
|
export * from './interview-skill.entity';
|
|
30
30
|
export * from './interview-question.entity';
|
|
31
31
|
export * from './interview-invite.entity';
|
|
32
|
+
export * from './ai-interview.entity';
|
|
32
33
|
export * from './bank-details.entity';
|
|
33
34
|
export * from './plan.entity';
|
|
34
35
|
export * from './feature.entity';
|
|
@@ -3,8 +3,9 @@ import { Interview } from "./interview.entity";
|
|
|
3
3
|
import { User } from "./user.entity";
|
|
4
4
|
export declare enum InterviewInviteStatusEnum {
|
|
5
5
|
PENDING = "PENDING",
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
ACCEPTED = "ACCEPTED",
|
|
7
|
+
REJECTED = "REJECTED",
|
|
8
|
+
EXPIRED = "EXPIRED"
|
|
8
9
|
}
|
|
9
10
|
export declare class InterviewInvite extends BaseEntity {
|
|
10
11
|
interviewId: number;
|
|
@@ -17,5 +18,5 @@ export declare class InterviewInvite extends BaseEntity {
|
|
|
17
18
|
sentAt: Date;
|
|
18
19
|
expiresAt: Date;
|
|
19
20
|
respondedAt?: Date;
|
|
20
|
-
|
|
21
|
+
token: string;
|
|
21
22
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -2047,8 +2047,9 @@ declare class JobRoles extends BaseEntity {
|
|
|
2047
2047
|
|
|
2048
2048
|
declare enum InterviewInviteStatusEnum {
|
|
2049
2049
|
PENDING = "PENDING",
|
|
2050
|
-
|
|
2051
|
-
|
|
2050
|
+
ACCEPTED = "ACCEPTED",
|
|
2051
|
+
REJECTED = "REJECTED",
|
|
2052
|
+
EXPIRED = "EXPIRED"
|
|
2052
2053
|
}
|
|
2053
2054
|
declare class InterviewInvite extends BaseEntity {
|
|
2054
2055
|
interviewId: number;
|
|
@@ -2061,7 +2062,46 @@ declare class InterviewInvite extends BaseEntity {
|
|
|
2061
2062
|
sentAt: Date;
|
|
2062
2063
|
expiresAt: Date;
|
|
2063
2064
|
respondedAt?: Date;
|
|
2065
|
+
token: string;
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
declare enum AIInterviewStatusEnum {
|
|
2069
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
2070
|
+
COMPLETED = "COMPLETED",
|
|
2071
|
+
FAILED = "FAILED",
|
|
2072
|
+
TIMEOUT = "TIMEOUT",
|
|
2073
|
+
CANCELLED = "CANCELLED"
|
|
2074
|
+
}
|
|
2075
|
+
declare enum AIInterviewTypeEnum {
|
|
2076
|
+
AI_INTERVIEW = "AI_INTERVIEW",
|
|
2077
|
+
AI_INTERVIEW_AND_CODING_EXERCISE = "AI_INTERVIEW_AND_CODING_EXERCISE",
|
|
2078
|
+
AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE = "AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE",
|
|
2079
|
+
CODING_EXERCISE = "CODING_EXERCISE"
|
|
2080
|
+
}
|
|
2081
|
+
declare enum AIInterviewResultEnum {
|
|
2082
|
+
PASSED = "PASSED",
|
|
2083
|
+
FAILED = "FAILED",
|
|
2084
|
+
NEEDS_REVIEW = "NEEDS_REVIEW",
|
|
2085
|
+
INCOMPLETE = "INCOMPLETE"
|
|
2086
|
+
}
|
|
2087
|
+
declare class AIInterview extends BaseEntity {
|
|
2088
|
+
interviewId: number;
|
|
2089
|
+
interviewInviteId: number;
|
|
2090
|
+
candidateId: number;
|
|
2091
|
+
jobId: number;
|
|
2064
2092
|
inviteToken: string;
|
|
2093
|
+
interviewType: AIInterviewTypeEnum;
|
|
2094
|
+
interviewName: string;
|
|
2095
|
+
jobTitle: string;
|
|
2096
|
+
status: AIInterviewStatusEnum;
|
|
2097
|
+
startedAt: Date;
|
|
2098
|
+
completedAt: Date;
|
|
2099
|
+
durationMinutes: number;
|
|
2100
|
+
overallScore: number;
|
|
2101
|
+
interview: Interview;
|
|
2102
|
+
interviewInvite: InterviewInvite;
|
|
2103
|
+
candidate: User;
|
|
2104
|
+
job: Job;
|
|
2065
2105
|
}
|
|
2066
2106
|
|
|
2067
2107
|
declare class Feature extends BaseEntity {
|
|
@@ -2184,4 +2224,4 @@ declare class Commission extends BaseEntity {
|
|
|
2184
2224
|
clientCommission: number;
|
|
2185
2225
|
}
|
|
2186
2226
|
|
|
2187
|
-
export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, COUNTRY_PATTERN, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, 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 IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewInvite, InterviewInviteStatusEnum, InterviewQuestion, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobFreelancerRecommendationV2, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResetPasswordTokenValidationDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
|
2227
|
+
export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, AIInterview, AIInterviewResultEnum, AIInterviewStatusEnum, AIInterviewTypeEnum, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, COUNTRY_PATTERN, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, 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 IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewInvite, InterviewInviteStatusEnum, InterviewQuestion, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobFreelancerRecommendationV2, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResetPasswordTokenValidationDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.d.ts
CHANGED
|
@@ -2047,8 +2047,9 @@ declare class JobRoles extends BaseEntity {
|
|
|
2047
2047
|
|
|
2048
2048
|
declare enum InterviewInviteStatusEnum {
|
|
2049
2049
|
PENDING = "PENDING",
|
|
2050
|
-
|
|
2051
|
-
|
|
2050
|
+
ACCEPTED = "ACCEPTED",
|
|
2051
|
+
REJECTED = "REJECTED",
|
|
2052
|
+
EXPIRED = "EXPIRED"
|
|
2052
2053
|
}
|
|
2053
2054
|
declare class InterviewInvite extends BaseEntity {
|
|
2054
2055
|
interviewId: number;
|
|
@@ -2061,7 +2062,46 @@ declare class InterviewInvite extends BaseEntity {
|
|
|
2061
2062
|
sentAt: Date;
|
|
2062
2063
|
expiresAt: Date;
|
|
2063
2064
|
respondedAt?: Date;
|
|
2065
|
+
token: string;
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2068
|
+
declare enum AIInterviewStatusEnum {
|
|
2069
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
2070
|
+
COMPLETED = "COMPLETED",
|
|
2071
|
+
FAILED = "FAILED",
|
|
2072
|
+
TIMEOUT = "TIMEOUT",
|
|
2073
|
+
CANCELLED = "CANCELLED"
|
|
2074
|
+
}
|
|
2075
|
+
declare enum AIInterviewTypeEnum {
|
|
2076
|
+
AI_INTERVIEW = "AI_INTERVIEW",
|
|
2077
|
+
AI_INTERVIEW_AND_CODING_EXERCISE = "AI_INTERVIEW_AND_CODING_EXERCISE",
|
|
2078
|
+
AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE = "AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE",
|
|
2079
|
+
CODING_EXERCISE = "CODING_EXERCISE"
|
|
2080
|
+
}
|
|
2081
|
+
declare enum AIInterviewResultEnum {
|
|
2082
|
+
PASSED = "PASSED",
|
|
2083
|
+
FAILED = "FAILED",
|
|
2084
|
+
NEEDS_REVIEW = "NEEDS_REVIEW",
|
|
2085
|
+
INCOMPLETE = "INCOMPLETE"
|
|
2086
|
+
}
|
|
2087
|
+
declare class AIInterview extends BaseEntity {
|
|
2088
|
+
interviewId: number;
|
|
2089
|
+
interviewInviteId: number;
|
|
2090
|
+
candidateId: number;
|
|
2091
|
+
jobId: number;
|
|
2064
2092
|
inviteToken: string;
|
|
2093
|
+
interviewType: AIInterviewTypeEnum;
|
|
2094
|
+
interviewName: string;
|
|
2095
|
+
jobTitle: string;
|
|
2096
|
+
status: AIInterviewStatusEnum;
|
|
2097
|
+
startedAt: Date;
|
|
2098
|
+
completedAt: Date;
|
|
2099
|
+
durationMinutes: number;
|
|
2100
|
+
overallScore: number;
|
|
2101
|
+
interview: Interview;
|
|
2102
|
+
interviewInvite: InterviewInvite;
|
|
2103
|
+
candidate: User;
|
|
2104
|
+
job: Job;
|
|
2065
2105
|
}
|
|
2066
2106
|
|
|
2067
2107
|
declare class Feature extends BaseEntity {
|
|
@@ -2184,4 +2224,4 @@ declare class Commission extends BaseEntity {
|
|
|
2184
2224
|
clientCommission: number;
|
|
2185
2225
|
}
|
|
2186
2226
|
|
|
2187
|
-
export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, COUNTRY_PATTERN, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, 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 IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewInvite, InterviewInviteStatusEnum, InterviewQuestion, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobFreelancerRecommendationV2, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResetPasswordTokenValidationDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
|
2227
|
+
export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, AIInterview, AIInterviewResultEnum, AIInterviewStatusEnum, AIInterviewTypeEnum, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, COUNTRY_PATTERN, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, 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 IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewInvite, InterviewInviteStatusEnum, InterviewQuestion, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobFreelancerRecommendationV2, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResetPasswordTokenValidationDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,10 @@ __export(index_exports, {
|
|
|
31
31
|
ADMIN_JOB_PATTERN: () => ADMIN_JOB_PATTERN,
|
|
32
32
|
ADMIN_PERMISSION_PATTERN: () => ADMIN_PERMISSION_PATTERN,
|
|
33
33
|
ADMIN_ROLE_PATTERN: () => ADMIN_ROLE_PATTERN,
|
|
34
|
+
AIInterview: () => AIInterview,
|
|
35
|
+
AIInterviewResultEnum: () => AIInterviewResultEnum,
|
|
36
|
+
AIInterviewStatusEnum: () => AIInterviewStatusEnum,
|
|
37
|
+
AIInterviewTypeEnum: () => AIInterviewTypeEnum,
|
|
34
38
|
ASSESSMENT_QUESTION_PATTERN: () => ASSESSMENT_QUESTION_PATTERN,
|
|
35
39
|
AUTHENTICATION_PATTERN: () => AUTHENTICATION_PATTERN,
|
|
36
40
|
AccountStatus: () => AccountStatus,
|
|
@@ -5072,8 +5076,9 @@ JobRoles = __decorateClass([
|
|
|
5072
5076
|
var import_typeorm46 = require("typeorm");
|
|
5073
5077
|
var InterviewInviteStatusEnum = /* @__PURE__ */ ((InterviewInviteStatusEnum2) => {
|
|
5074
5078
|
InterviewInviteStatusEnum2["PENDING"] = "PENDING";
|
|
5079
|
+
InterviewInviteStatusEnum2["ACCEPTED"] = "ACCEPTED";
|
|
5080
|
+
InterviewInviteStatusEnum2["REJECTED"] = "REJECTED";
|
|
5075
5081
|
InterviewInviteStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
5076
|
-
InterviewInviteStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
5077
5082
|
return InterviewInviteStatusEnum2;
|
|
5078
5083
|
})(InterviewInviteStatusEnum || {});
|
|
5079
5084
|
var InterviewInvite = class extends BaseEntity {
|
|
@@ -5082,7 +5087,7 @@ __decorateClass([
|
|
|
5082
5087
|
(0, import_typeorm46.Column)({
|
|
5083
5088
|
name: "interview_id",
|
|
5084
5089
|
type: "integer",
|
|
5085
|
-
comment: "
|
|
5090
|
+
comment: "Column to specify interview id"
|
|
5086
5091
|
}),
|
|
5087
5092
|
(0, import_typeorm46.Index)()
|
|
5088
5093
|
], InterviewInvite.prototype, "interviewId", 2);
|
|
@@ -5124,7 +5129,8 @@ __decorateClass([
|
|
|
5124
5129
|
name: "status",
|
|
5125
5130
|
type: "enum",
|
|
5126
5131
|
enum: InterviewInviteStatusEnum,
|
|
5127
|
-
default: "PENDING" /* PENDING
|
|
5132
|
+
default: "PENDING" /* PENDING */,
|
|
5133
|
+
comment: "To manage invite status"
|
|
5128
5134
|
})
|
|
5129
5135
|
], InterviewInvite.prototype, "status", 2);
|
|
5130
5136
|
__decorateClass([
|
|
@@ -5153,83 +5159,225 @@ __decorateClass([
|
|
|
5153
5159
|
], InterviewInvite.prototype, "respondedAt", 2);
|
|
5154
5160
|
__decorateClass([
|
|
5155
5161
|
(0, import_typeorm46.Column)({
|
|
5156
|
-
name: "
|
|
5162
|
+
name: "token",
|
|
5157
5163
|
type: "varchar",
|
|
5158
5164
|
unique: true,
|
|
5159
5165
|
comment: "Secure unique token sent in email link for invite tracking",
|
|
5160
5166
|
nullable: true
|
|
5161
5167
|
}),
|
|
5162
5168
|
(0, import_typeorm46.Index)()
|
|
5163
|
-
], InterviewInvite.prototype, "
|
|
5169
|
+
], InterviewInvite.prototype, "token", 2);
|
|
5164
5170
|
InterviewInvite = __decorateClass([
|
|
5165
5171
|
(0, import_typeorm46.Entity)("interview_invites")
|
|
5166
5172
|
], InterviewInvite);
|
|
5167
5173
|
|
|
5174
|
+
// src/entities/ai-interview.entity.ts
|
|
5175
|
+
var import_typeorm47 = require("typeorm");
|
|
5176
|
+
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|
|
5177
|
+
AIInterviewStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
5178
|
+
AIInterviewStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
5179
|
+
AIInterviewStatusEnum2["FAILED"] = "FAILED";
|
|
5180
|
+
AIInterviewStatusEnum2["TIMEOUT"] = "TIMEOUT";
|
|
5181
|
+
AIInterviewStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
5182
|
+
return AIInterviewStatusEnum2;
|
|
5183
|
+
})(AIInterviewStatusEnum || {});
|
|
5184
|
+
var AIInterviewTypeEnum = /* @__PURE__ */ ((AIInterviewTypeEnum2) => {
|
|
5185
|
+
AIInterviewTypeEnum2["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
5186
|
+
AIInterviewTypeEnum2["AI_INTERVIEW_AND_CODING_EXERCISE"] = "AI_INTERVIEW_AND_CODING_EXERCISE";
|
|
5187
|
+
AIInterviewTypeEnum2["AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE"] = "AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE";
|
|
5188
|
+
AIInterviewTypeEnum2["CODING_EXERCISE"] = "CODING_EXERCISE";
|
|
5189
|
+
return AIInterviewTypeEnum2;
|
|
5190
|
+
})(AIInterviewTypeEnum || {});
|
|
5191
|
+
var AIInterviewResultEnum = /* @__PURE__ */ ((AIInterviewResultEnum2) => {
|
|
5192
|
+
AIInterviewResultEnum2["PASSED"] = "PASSED";
|
|
5193
|
+
AIInterviewResultEnum2["FAILED"] = "FAILED";
|
|
5194
|
+
AIInterviewResultEnum2["NEEDS_REVIEW"] = "NEEDS_REVIEW";
|
|
5195
|
+
AIInterviewResultEnum2["INCOMPLETE"] = "INCOMPLETE";
|
|
5196
|
+
return AIInterviewResultEnum2;
|
|
5197
|
+
})(AIInterviewResultEnum || {});
|
|
5198
|
+
var AIInterview = class extends BaseEntity {
|
|
5199
|
+
};
|
|
5200
|
+
__decorateClass([
|
|
5201
|
+
(0, import_typeorm47.Column)({
|
|
5202
|
+
name: "interview_id",
|
|
5203
|
+
type: "integer",
|
|
5204
|
+
comment: "Redundant explicit interview_id column (optional if using only relation"
|
|
5205
|
+
}),
|
|
5206
|
+
(0, import_typeorm47.Index)()
|
|
5207
|
+
], AIInterview.prototype, "interviewId", 2);
|
|
5208
|
+
__decorateClass([
|
|
5209
|
+
(0, import_typeorm47.Column)({
|
|
5210
|
+
name: "interview_invite_id",
|
|
5211
|
+
type: "integer",
|
|
5212
|
+
comment: "Redundant explicit interview_invite_id column (optional if using only relation"
|
|
5213
|
+
})
|
|
5214
|
+
], AIInterview.prototype, "interviewInviteId", 2);
|
|
5215
|
+
__decorateClass([
|
|
5216
|
+
(0, import_typeorm47.Column)({
|
|
5217
|
+
name: "candidate_id",
|
|
5218
|
+
type: "integer",
|
|
5219
|
+
comment: "Redundant explicit candidate_id column (optional if using only relation"
|
|
5220
|
+
}),
|
|
5221
|
+
(0, import_typeorm47.Index)()
|
|
5222
|
+
], AIInterview.prototype, "candidateId", 2);
|
|
5223
|
+
__decorateClass([
|
|
5224
|
+
(0, import_typeorm47.Column)({
|
|
5225
|
+
name: "job_id",
|
|
5226
|
+
type: "integer",
|
|
5227
|
+
comment: "Redundant explicit job_id column (optional if using only relation"
|
|
5228
|
+
})
|
|
5229
|
+
], AIInterview.prototype, "jobId", 2);
|
|
5230
|
+
__decorateClass([
|
|
5231
|
+
(0, import_typeorm47.Column)({
|
|
5232
|
+
name: "invite_token",
|
|
5233
|
+
type: "varchar",
|
|
5234
|
+
unique: true,
|
|
5235
|
+
comment: "Secure unique token sent in email link for invite tracking",
|
|
5236
|
+
nullable: true
|
|
5237
|
+
})
|
|
5238
|
+
], AIInterview.prototype, "inviteToken", 2);
|
|
5239
|
+
__decorateClass([
|
|
5240
|
+
(0, import_typeorm47.Column)({ name: "interview_type", type: "enum", enum: AIInterviewTypeEnum })
|
|
5241
|
+
], AIInterview.prototype, "interviewType", 2);
|
|
5242
|
+
__decorateClass([
|
|
5243
|
+
(0, import_typeorm47.Column)({
|
|
5244
|
+
name: "interview_name",
|
|
5245
|
+
type: "varchar",
|
|
5246
|
+
comment: "Name of the interview"
|
|
5247
|
+
})
|
|
5248
|
+
], AIInterview.prototype, "interviewName", 2);
|
|
5249
|
+
__decorateClass([
|
|
5250
|
+
(0, import_typeorm47.Column)({
|
|
5251
|
+
name: "job_title",
|
|
5252
|
+
type: "varchar",
|
|
5253
|
+
comment: "Name of the job title for that the AI interview was conducted"
|
|
5254
|
+
})
|
|
5255
|
+
], AIInterview.prototype, "jobTitle", 2);
|
|
5256
|
+
__decorateClass([
|
|
5257
|
+
(0, import_typeorm47.Column)({
|
|
5258
|
+
type: "enum",
|
|
5259
|
+
enum: AIInterviewStatusEnum,
|
|
5260
|
+
default: "IN_PROGRESS" /* IN_PROGRESS */
|
|
5261
|
+
})
|
|
5262
|
+
], AIInterview.prototype, "status", 2);
|
|
5263
|
+
__decorateClass([
|
|
5264
|
+
(0, import_typeorm47.Column)({
|
|
5265
|
+
name: "started_at",
|
|
5266
|
+
type: "timestamp with time zone",
|
|
5267
|
+
comment: "Timestamp when the interview was started"
|
|
5268
|
+
})
|
|
5269
|
+
], AIInterview.prototype, "startedAt", 2);
|
|
5270
|
+
__decorateClass([
|
|
5271
|
+
(0, import_typeorm47.Column)({
|
|
5272
|
+
name: "completed_at",
|
|
5273
|
+
type: "timestamp with time zone",
|
|
5274
|
+
nullable: true,
|
|
5275
|
+
comment: "Timestamp when the interview was completed"
|
|
5276
|
+
})
|
|
5277
|
+
], AIInterview.prototype, "completedAt", 2);
|
|
5278
|
+
__decorateClass([
|
|
5279
|
+
(0, import_typeorm47.Column)({
|
|
5280
|
+
name: "duration_minutes",
|
|
5281
|
+
type: "integer",
|
|
5282
|
+
nullable: true,
|
|
5283
|
+
comment: "Duration of the AI interview"
|
|
5284
|
+
})
|
|
5285
|
+
], AIInterview.prototype, "durationMinutes", 2);
|
|
5286
|
+
__decorateClass([
|
|
5287
|
+
(0, import_typeorm47.Column)({
|
|
5288
|
+
name: "overall_score",
|
|
5289
|
+
type: "decimal",
|
|
5290
|
+
precision: 5,
|
|
5291
|
+
scale: 2,
|
|
5292
|
+
nullable: true,
|
|
5293
|
+
comment: "Overall score of the AI interview"
|
|
5294
|
+
})
|
|
5295
|
+
], AIInterview.prototype, "overallScore", 2);
|
|
5296
|
+
__decorateClass([
|
|
5297
|
+
(0, import_typeorm47.ManyToOne)(() => Interview, { onDelete: "CASCADE" }),
|
|
5298
|
+
(0, import_typeorm47.JoinColumn)({ name: "interview_id" })
|
|
5299
|
+
], AIInterview.prototype, "interview", 2);
|
|
5300
|
+
__decorateClass([
|
|
5301
|
+
(0, import_typeorm47.ManyToOne)(() => InterviewInvite, { onDelete: "CASCADE" }),
|
|
5302
|
+
(0, import_typeorm47.JoinColumn)({ name: "interview_invite_id" })
|
|
5303
|
+
], AIInterview.prototype, "interviewInvite", 2);
|
|
5304
|
+
__decorateClass([
|
|
5305
|
+
(0, import_typeorm47.ManyToOne)(() => User, { onDelete: "CASCADE" }),
|
|
5306
|
+
(0, import_typeorm47.JoinColumn)({ name: "candidate_id" })
|
|
5307
|
+
], AIInterview.prototype, "candidate", 2);
|
|
5308
|
+
__decorateClass([
|
|
5309
|
+
(0, import_typeorm47.ManyToOne)(() => Job, { onDelete: "CASCADE" }),
|
|
5310
|
+
(0, import_typeorm47.JoinColumn)({ name: "job_id" })
|
|
5311
|
+
], AIInterview.prototype, "job", 2);
|
|
5312
|
+
AIInterview = __decorateClass([
|
|
5313
|
+
(0, import_typeorm47.Entity)("ai_interviews")
|
|
5314
|
+
], AIInterview);
|
|
5315
|
+
|
|
5168
5316
|
// src/entities/plan.entity.ts
|
|
5169
|
-
var
|
|
5317
|
+
var import_typeorm49 = require("typeorm");
|
|
5170
5318
|
|
|
5171
5319
|
// src/entities/feature.entity.ts
|
|
5172
|
-
var
|
|
5320
|
+
var import_typeorm48 = require("typeorm");
|
|
5173
5321
|
var Feature = class extends BaseEntity {
|
|
5174
5322
|
};
|
|
5175
5323
|
__decorateClass([
|
|
5176
|
-
(0,
|
|
5324
|
+
(0, import_typeorm48.Column)({ name: "name", type: "varchar", unique: true })
|
|
5177
5325
|
], Feature.prototype, "name", 2);
|
|
5178
5326
|
__decorateClass([
|
|
5179
|
-
(0,
|
|
5327
|
+
(0, import_typeorm48.ManyToMany)(() => Plan, (plan) => plan.features)
|
|
5180
5328
|
], Feature.prototype, "plans", 2);
|
|
5181
5329
|
Feature = __decorateClass([
|
|
5182
|
-
(0,
|
|
5330
|
+
(0, import_typeorm48.Entity)("features")
|
|
5183
5331
|
], Feature);
|
|
5184
5332
|
|
|
5185
5333
|
// src/entities/plan.entity.ts
|
|
5186
5334
|
var Plan = class extends BaseEntity {
|
|
5187
5335
|
};
|
|
5188
5336
|
__decorateClass([
|
|
5189
|
-
(0,
|
|
5337
|
+
(0, import_typeorm49.Column)({ name: "name", type: "varchar", unique: true })
|
|
5190
5338
|
], Plan.prototype, "name", 2);
|
|
5191
5339
|
__decorateClass([
|
|
5192
|
-
(0,
|
|
5340
|
+
(0, import_typeorm49.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5193
5341
|
], Plan.prototype, "description", 2);
|
|
5194
5342
|
__decorateClass([
|
|
5195
|
-
(0,
|
|
5343
|
+
(0, import_typeorm49.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5196
5344
|
], Plan.prototype, "price", 2);
|
|
5197
5345
|
__decorateClass([
|
|
5198
|
-
(0,
|
|
5346
|
+
(0, import_typeorm49.Column)({ name: "billing_period", type: "varchar" })
|
|
5199
5347
|
], Plan.prototype, "billingPeriod", 2);
|
|
5200
5348
|
__decorateClass([
|
|
5201
|
-
(0,
|
|
5349
|
+
(0, import_typeorm49.Column)({ name: "is_current", type: "boolean", default: false })
|
|
5202
5350
|
], Plan.prototype, "isCurrent", 2);
|
|
5203
5351
|
__decorateClass([
|
|
5204
|
-
(0,
|
|
5205
|
-
(0,
|
|
5352
|
+
(0, import_typeorm49.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5353
|
+
(0, import_typeorm49.JoinTable)()
|
|
5206
5354
|
], Plan.prototype, "features", 2);
|
|
5207
5355
|
Plan = __decorateClass([
|
|
5208
|
-
(0,
|
|
5356
|
+
(0, import_typeorm49.Entity)("plans")
|
|
5209
5357
|
], Plan);
|
|
5210
5358
|
|
|
5211
5359
|
// src/entities/cms.entity.ts
|
|
5212
|
-
var
|
|
5360
|
+
var import_typeorm50 = require("typeorm");
|
|
5213
5361
|
var Cms = class extends BaseEntity {
|
|
5214
5362
|
};
|
|
5215
5363
|
__decorateClass([
|
|
5216
|
-
(0,
|
|
5364
|
+
(0, import_typeorm50.Column)({ name: "title", type: "varchar", nullable: true })
|
|
5217
5365
|
], Cms.prototype, "title", 2);
|
|
5218
5366
|
__decorateClass([
|
|
5219
|
-
(0,
|
|
5367
|
+
(0, import_typeorm50.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5220
5368
|
], Cms.prototype, "slug", 2);
|
|
5221
5369
|
__decorateClass([
|
|
5222
|
-
(0,
|
|
5370
|
+
(0, import_typeorm50.Column)({ name: "content", type: "varchar", nullable: true })
|
|
5223
5371
|
], Cms.prototype, "content", 2);
|
|
5224
5372
|
__decorateClass([
|
|
5225
|
-
(0,
|
|
5373
|
+
(0, import_typeorm50.Column)({ name: "is_active", type: "boolean", default: true })
|
|
5226
5374
|
], Cms.prototype, "isActive", 2);
|
|
5227
5375
|
Cms = __decorateClass([
|
|
5228
|
-
(0,
|
|
5376
|
+
(0, import_typeorm50.Entity)("cms")
|
|
5229
5377
|
], Cms);
|
|
5230
5378
|
|
|
5231
5379
|
// src/entities/lead.entity.ts
|
|
5232
|
-
var
|
|
5380
|
+
var import_typeorm51 = require("typeorm");
|
|
5233
5381
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5234
5382
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
5235
5383
|
CategoryEmum2["FREELANCER"] = "FREELANCER";
|
|
@@ -5238,22 +5386,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5238
5386
|
var Lead = class extends BaseEntity {
|
|
5239
5387
|
};
|
|
5240
5388
|
__decorateClass([
|
|
5241
|
-
(0,
|
|
5389
|
+
(0, import_typeorm51.Column)({ name: "name", type: "varchar", nullable: true })
|
|
5242
5390
|
], Lead.prototype, "name", 2);
|
|
5243
5391
|
__decorateClass([
|
|
5244
|
-
(0,
|
|
5392
|
+
(0, import_typeorm51.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5245
5393
|
], Lead.prototype, "mobileCode", 2);
|
|
5246
5394
|
__decorateClass([
|
|
5247
|
-
(0,
|
|
5395
|
+
(0, import_typeorm51.Column)({ name: "mobile", type: "varchar", nullable: true })
|
|
5248
5396
|
], Lead.prototype, "mobile", 2);
|
|
5249
5397
|
__decorateClass([
|
|
5250
|
-
(0,
|
|
5398
|
+
(0, import_typeorm51.Column)({ name: "email", type: "varchar", nullable: true })
|
|
5251
5399
|
], Lead.prototype, "email", 2);
|
|
5252
5400
|
__decorateClass([
|
|
5253
|
-
(0,
|
|
5401
|
+
(0, import_typeorm51.Column)({ name: "description", type: "varchar", nullable: true })
|
|
5254
5402
|
], Lead.prototype, "description", 2);
|
|
5255
5403
|
__decorateClass([
|
|
5256
|
-
(0,
|
|
5404
|
+
(0, import_typeorm51.Column)({
|
|
5257
5405
|
name: "category",
|
|
5258
5406
|
type: "enum",
|
|
5259
5407
|
enum: CategoryEmum,
|
|
@@ -5261,129 +5409,129 @@ __decorateClass([
|
|
|
5261
5409
|
})
|
|
5262
5410
|
], Lead.prototype, "category", 2);
|
|
5263
5411
|
Lead = __decorateClass([
|
|
5264
|
-
(0,
|
|
5412
|
+
(0, import_typeorm51.Entity)("leads")
|
|
5265
5413
|
], Lead);
|
|
5266
5414
|
|
|
5267
5415
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
5268
|
-
var
|
|
5416
|
+
var import_typeorm52 = require("typeorm");
|
|
5269
5417
|
var JobFreelancerRecommendation = class {
|
|
5270
5418
|
};
|
|
5271
5419
|
__decorateClass([
|
|
5272
|
-
(0,
|
|
5420
|
+
(0, import_typeorm52.ViewColumn)({ name: "job_id" })
|
|
5273
5421
|
], JobFreelancerRecommendation.prototype, "jobId", 2);
|
|
5274
5422
|
__decorateClass([
|
|
5275
|
-
(0,
|
|
5423
|
+
(0, import_typeorm52.ViewColumn)({ name: "job_uuid" })
|
|
5276
5424
|
], JobFreelancerRecommendation.prototype, "jobUuid", 2);
|
|
5277
5425
|
__decorateClass([
|
|
5278
|
-
(0,
|
|
5426
|
+
(0, import_typeorm52.ViewColumn)({ name: "job_unique_id" })
|
|
5279
5427
|
], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
|
|
5280
5428
|
__decorateClass([
|
|
5281
|
-
(0,
|
|
5429
|
+
(0, import_typeorm52.ViewColumn)({ name: "job_role" })
|
|
5282
5430
|
], JobFreelancerRecommendation.prototype, "jobRole", 2);
|
|
5283
5431
|
__decorateClass([
|
|
5284
|
-
(0,
|
|
5432
|
+
(0, import_typeorm52.ViewColumn)({ name: "job_openings" })
|
|
5285
5433
|
], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
|
|
5286
5434
|
__decorateClass([
|
|
5287
|
-
(0,
|
|
5435
|
+
(0, import_typeorm52.ViewColumn)({ name: "job_location" })
|
|
5288
5436
|
], JobFreelancerRecommendation.prototype, "jobLocation", 2);
|
|
5289
5437
|
__decorateClass([
|
|
5290
|
-
(0,
|
|
5438
|
+
(0, import_typeorm52.ViewColumn)({ name: "job_currency" })
|
|
5291
5439
|
], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
|
|
5292
5440
|
__decorateClass([
|
|
5293
|
-
(0,
|
|
5441
|
+
(0, import_typeorm52.ViewColumn)({ name: "job_salary_from" })
|
|
5294
5442
|
], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
|
|
5295
5443
|
__decorateClass([
|
|
5296
|
-
(0,
|
|
5444
|
+
(0, import_typeorm52.ViewColumn)({ name: "job_salary_to" })
|
|
5297
5445
|
], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
|
|
5298
5446
|
__decorateClass([
|
|
5299
|
-
(0,
|
|
5447
|
+
(0, import_typeorm52.ViewColumn)({ name: "job_employment_type" })
|
|
5300
5448
|
], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
|
|
5301
5449
|
__decorateClass([
|
|
5302
|
-
(0,
|
|
5450
|
+
(0, import_typeorm52.ViewColumn)({ name: "application_received" })
|
|
5303
5451
|
], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
|
|
5304
5452
|
__decorateClass([
|
|
5305
|
-
(0,
|
|
5453
|
+
(0, import_typeorm52.ViewColumn)({ name: "job_posted_at" })
|
|
5306
5454
|
], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
|
|
5307
5455
|
__decorateClass([
|
|
5308
|
-
(0,
|
|
5456
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_id" })
|
|
5309
5457
|
], JobFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5310
5458
|
__decorateClass([
|
|
5311
|
-
(0,
|
|
5459
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_uuid" })
|
|
5312
5460
|
], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5313
5461
|
__decorateClass([
|
|
5314
|
-
(0,
|
|
5462
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5315
5463
|
], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5316
5464
|
__decorateClass([
|
|
5317
|
-
(0,
|
|
5465
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_first_name" })
|
|
5318
5466
|
], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5319
5467
|
__decorateClass([
|
|
5320
|
-
(0,
|
|
5468
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_last_name" })
|
|
5321
5469
|
], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5322
5470
|
__decorateClass([
|
|
5323
|
-
(0,
|
|
5471
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_email" })
|
|
5324
5472
|
], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5325
5473
|
__decorateClass([
|
|
5326
|
-
(0,
|
|
5474
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5327
5475
|
], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5328
5476
|
__decorateClass([
|
|
5329
|
-
(0,
|
|
5477
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_is_social" })
|
|
5330
5478
|
], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5331
5479
|
__decorateClass([
|
|
5332
|
-
(0,
|
|
5480
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_created_at" })
|
|
5333
5481
|
], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5334
5482
|
__decorateClass([
|
|
5335
|
-
(0,
|
|
5483
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_designation" })
|
|
5336
5484
|
], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5337
5485
|
__decorateClass([
|
|
5338
|
-
(0,
|
|
5486
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_experience" })
|
|
5339
5487
|
], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5340
5488
|
__decorateClass([
|
|
5341
|
-
(0,
|
|
5489
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5342
5490
|
], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5343
5491
|
__decorateClass([
|
|
5344
|
-
(0,
|
|
5492
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5345
5493
|
], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5346
5494
|
__decorateClass([
|
|
5347
|
-
(0,
|
|
5495
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_country_name" })
|
|
5348
5496
|
], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5349
5497
|
__decorateClass([
|
|
5350
|
-
(0,
|
|
5498
|
+
(0, import_typeorm52.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5351
5499
|
], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5352
5500
|
__decorateClass([
|
|
5353
|
-
(0,
|
|
5501
|
+
(0, import_typeorm52.ViewColumn)({ name: "client_id" })
|
|
5354
5502
|
], JobFreelancerRecommendation.prototype, "clientId", 2);
|
|
5355
5503
|
__decorateClass([
|
|
5356
|
-
(0,
|
|
5504
|
+
(0, import_typeorm52.ViewColumn)({ name: "client_uuid" })
|
|
5357
5505
|
], JobFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5358
5506
|
__decorateClass([
|
|
5359
|
-
(0,
|
|
5507
|
+
(0, import_typeorm52.ViewColumn)({ name: "client_first_name" })
|
|
5360
5508
|
], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
|
|
5361
5509
|
__decorateClass([
|
|
5362
|
-
(0,
|
|
5510
|
+
(0, import_typeorm52.ViewColumn)({ name: "client_last_name" })
|
|
5363
5511
|
], JobFreelancerRecommendation.prototype, "clientLastName", 2);
|
|
5364
5512
|
__decorateClass([
|
|
5365
|
-
(0,
|
|
5513
|
+
(0, import_typeorm52.ViewColumn)({ name: "client_email" })
|
|
5366
5514
|
], JobFreelancerRecommendation.prototype, "clientEmail", 2);
|
|
5367
5515
|
__decorateClass([
|
|
5368
|
-
(0,
|
|
5516
|
+
(0, import_typeorm52.ViewColumn)({ name: "client_company_logo" })
|
|
5369
5517
|
], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
|
|
5370
5518
|
__decorateClass([
|
|
5371
|
-
(0,
|
|
5519
|
+
(0, import_typeorm52.ViewColumn)({ name: "client_company_name" })
|
|
5372
5520
|
], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
|
|
5373
5521
|
__decorateClass([
|
|
5374
|
-
(0,
|
|
5522
|
+
(0, import_typeorm52.ViewColumn)({ name: "matching_skills" })
|
|
5375
5523
|
], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5376
5524
|
__decorateClass([
|
|
5377
|
-
(0,
|
|
5525
|
+
(0, import_typeorm52.ViewColumn)({ name: "matching_skills_count" })
|
|
5378
5526
|
], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5379
5527
|
__decorateClass([
|
|
5380
|
-
(0,
|
|
5528
|
+
(0, import_typeorm52.ViewColumn)({ name: "required_skills" })
|
|
5381
5529
|
], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5382
5530
|
__decorateClass([
|
|
5383
|
-
(0,
|
|
5531
|
+
(0, import_typeorm52.ViewColumn)({ name: "required_skills_count" })
|
|
5384
5532
|
], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5385
5533
|
JobFreelancerRecommendation = __decorateClass([
|
|
5386
|
-
(0,
|
|
5534
|
+
(0, import_typeorm52.ViewEntity)({
|
|
5387
5535
|
name: "job_freelancer_recommendations",
|
|
5388
5536
|
materialized: true,
|
|
5389
5537
|
synchronize: false
|
|
@@ -5392,32 +5540,32 @@ JobFreelancerRecommendation = __decorateClass([
|
|
|
5392
5540
|
], JobFreelancerRecommendation);
|
|
5393
5541
|
|
|
5394
5542
|
// src/entities/job-freelancer-recommendation-v2.entity.ts
|
|
5395
|
-
var
|
|
5543
|
+
var import_typeorm53 = require("typeorm");
|
|
5396
5544
|
var JobFreelancerRecommendationV2 = class {
|
|
5397
5545
|
};
|
|
5398
5546
|
__decorateClass([
|
|
5399
|
-
(0,
|
|
5547
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_id" })
|
|
5400
5548
|
], JobFreelancerRecommendationV2.prototype, "jobId", 2);
|
|
5401
5549
|
__decorateClass([
|
|
5402
|
-
(0,
|
|
5550
|
+
(0, import_typeorm53.ViewColumn)({ name: "job_owner_id" })
|
|
5403
5551
|
], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
|
|
5404
5552
|
__decorateClass([
|
|
5405
|
-
(0,
|
|
5553
|
+
(0, import_typeorm53.ViewColumn)({ name: "freelancer_id" })
|
|
5406
5554
|
], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
|
|
5407
5555
|
__decorateClass([
|
|
5408
|
-
(0,
|
|
5556
|
+
(0, import_typeorm53.ViewColumn)({ name: "matching_skills" })
|
|
5409
5557
|
], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
|
|
5410
5558
|
__decorateClass([
|
|
5411
|
-
(0,
|
|
5559
|
+
(0, import_typeorm53.ViewColumn)({ name: "matching_skills_count" })
|
|
5412
5560
|
], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
|
|
5413
5561
|
__decorateClass([
|
|
5414
|
-
(0,
|
|
5562
|
+
(0, import_typeorm53.ViewColumn)({ name: "required_skills" })
|
|
5415
5563
|
], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
|
|
5416
5564
|
__decorateClass([
|
|
5417
|
-
(0,
|
|
5565
|
+
(0, import_typeorm53.ViewColumn)({ name: "required_skills_count" })
|
|
5418
5566
|
], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
|
|
5419
5567
|
JobFreelancerRecommendationV2 = __decorateClass([
|
|
5420
|
-
(0,
|
|
5568
|
+
(0, import_typeorm53.ViewEntity)({
|
|
5421
5569
|
name: "job_freelancer_recommendations_v2",
|
|
5422
5570
|
materialized: true,
|
|
5423
5571
|
synchronize: false
|
|
@@ -5426,74 +5574,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
|
|
|
5426
5574
|
], JobFreelancerRecommendationV2);
|
|
5427
5575
|
|
|
5428
5576
|
// src/entities/client-freelancer-recommendation.entity.ts
|
|
5429
|
-
var
|
|
5577
|
+
var import_typeorm54 = require("typeorm");
|
|
5430
5578
|
var ClientFreelancerRecommendation = class {
|
|
5431
5579
|
};
|
|
5432
5580
|
__decorateClass([
|
|
5433
|
-
(0,
|
|
5581
|
+
(0, import_typeorm54.ViewColumn)({ name: "client_id" })
|
|
5434
5582
|
], ClientFreelancerRecommendation.prototype, "clientId", 2);
|
|
5435
5583
|
__decorateClass([
|
|
5436
|
-
(0,
|
|
5584
|
+
(0, import_typeorm54.ViewColumn)({ name: "client_uuid" })
|
|
5437
5585
|
], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
|
|
5438
5586
|
__decorateClass([
|
|
5439
|
-
(0,
|
|
5587
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_id" })
|
|
5440
5588
|
], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
|
|
5441
5589
|
__decorateClass([
|
|
5442
|
-
(0,
|
|
5590
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_uuid" })
|
|
5443
5591
|
], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
|
|
5444
5592
|
__decorateClass([
|
|
5445
|
-
(0,
|
|
5593
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_unique_id" })
|
|
5446
5594
|
], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
|
|
5447
5595
|
__decorateClass([
|
|
5448
|
-
(0,
|
|
5596
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_first_name" })
|
|
5449
5597
|
], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
|
|
5450
5598
|
__decorateClass([
|
|
5451
|
-
(0,
|
|
5599
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_last_name" })
|
|
5452
5600
|
], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
|
|
5453
5601
|
__decorateClass([
|
|
5454
|
-
(0,
|
|
5602
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_email" })
|
|
5455
5603
|
], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
|
|
5456
5604
|
__decorateClass([
|
|
5457
|
-
(0,
|
|
5605
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_profile_picture" })
|
|
5458
5606
|
], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
|
|
5459
5607
|
__decorateClass([
|
|
5460
|
-
(0,
|
|
5608
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_is_social" })
|
|
5461
5609
|
], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
|
|
5462
5610
|
__decorateClass([
|
|
5463
|
-
(0,
|
|
5611
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_created_at" })
|
|
5464
5612
|
], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
|
|
5465
5613
|
__decorateClass([
|
|
5466
|
-
(0,
|
|
5614
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_designation" })
|
|
5467
5615
|
], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
|
|
5468
5616
|
__decorateClass([
|
|
5469
|
-
(0,
|
|
5617
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_experience" })
|
|
5470
5618
|
], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
|
|
5471
5619
|
__decorateClass([
|
|
5472
|
-
(0,
|
|
5620
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_expertshub_verified" })
|
|
5473
5621
|
], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
|
|
5474
5622
|
__decorateClass([
|
|
5475
|
-
(0,
|
|
5623
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_hourly_compensation" })
|
|
5476
5624
|
], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
|
|
5477
5625
|
__decorateClass([
|
|
5478
|
-
(0,
|
|
5626
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_country_name" })
|
|
5479
5627
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
|
|
5480
5628
|
__decorateClass([
|
|
5481
|
-
(0,
|
|
5629
|
+
(0, import_typeorm54.ViewColumn)({ name: "freelancer_country_iso_code" })
|
|
5482
5630
|
], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
|
|
5483
5631
|
__decorateClass([
|
|
5484
|
-
(0,
|
|
5632
|
+
(0, import_typeorm54.ViewColumn)({ name: "matching_skills" })
|
|
5485
5633
|
], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
|
|
5486
5634
|
__decorateClass([
|
|
5487
|
-
(0,
|
|
5635
|
+
(0, import_typeorm54.ViewColumn)({ name: "matching_skills_count" })
|
|
5488
5636
|
], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
|
|
5489
5637
|
__decorateClass([
|
|
5490
|
-
(0,
|
|
5638
|
+
(0, import_typeorm54.ViewColumn)({ name: "required_skills" })
|
|
5491
5639
|
], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
|
|
5492
5640
|
__decorateClass([
|
|
5493
|
-
(0,
|
|
5641
|
+
(0, import_typeorm54.ViewColumn)({ name: "required_skills_count" })
|
|
5494
5642
|
], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
|
|
5495
5643
|
ClientFreelancerRecommendation = __decorateClass([
|
|
5496
|
-
(0,
|
|
5644
|
+
(0, import_typeorm54.ViewEntity)({
|
|
5497
5645
|
name: "client_freelancer_recommendations",
|
|
5498
5646
|
materialized: true,
|
|
5499
5647
|
synchronize: false
|
|
@@ -5502,7 +5650,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
5502
5650
|
], ClientFreelancerRecommendation);
|
|
5503
5651
|
|
|
5504
5652
|
// src/entities/commission.entity.ts
|
|
5505
|
-
var
|
|
5653
|
+
var import_typeorm55 = require("typeorm");
|
|
5506
5654
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
5507
5655
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
5508
5656
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -5511,7 +5659,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
5511
5659
|
var Commission = class extends BaseEntity {
|
|
5512
5660
|
};
|
|
5513
5661
|
__decorateClass([
|
|
5514
|
-
(0,
|
|
5662
|
+
(0, import_typeorm55.Column)({
|
|
5515
5663
|
name: "freelancer_commission_type",
|
|
5516
5664
|
type: "enum",
|
|
5517
5665
|
enum: CommissionTypeEnum,
|
|
@@ -5519,10 +5667,10 @@ __decorateClass([
|
|
|
5519
5667
|
})
|
|
5520
5668
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
5521
5669
|
__decorateClass([
|
|
5522
|
-
(0,
|
|
5670
|
+
(0, import_typeorm55.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
5523
5671
|
], Commission.prototype, "freelancerCommission", 2);
|
|
5524
5672
|
__decorateClass([
|
|
5525
|
-
(0,
|
|
5673
|
+
(0, import_typeorm55.Column)({
|
|
5526
5674
|
name: "client_commission_type",
|
|
5527
5675
|
type: "enum",
|
|
5528
5676
|
enum: CommissionTypeEnum,
|
|
@@ -5530,10 +5678,10 @@ __decorateClass([
|
|
|
5530
5678
|
})
|
|
5531
5679
|
], Commission.prototype, "clientCommissionType", 2);
|
|
5532
5680
|
__decorateClass([
|
|
5533
|
-
(0,
|
|
5681
|
+
(0, import_typeorm55.Column)({ name: "client_commission", type: "integer", default: 0 })
|
|
5534
5682
|
], Commission.prototype, "clientCommission", 2);
|
|
5535
5683
|
Commission = __decorateClass([
|
|
5536
|
-
(0,
|
|
5684
|
+
(0, import_typeorm55.Entity)("commissions")
|
|
5537
5685
|
], Commission);
|
|
5538
5686
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5539
5687
|
0 && (module.exports = {
|
|
@@ -5541,6 +5689,10 @@ Commission = __decorateClass([
|
|
|
5541
5689
|
ADMIN_JOB_PATTERN,
|
|
5542
5690
|
ADMIN_PERMISSION_PATTERN,
|
|
5543
5691
|
ADMIN_ROLE_PATTERN,
|
|
5692
|
+
AIInterview,
|
|
5693
|
+
AIInterviewResultEnum,
|
|
5694
|
+
AIInterviewStatusEnum,
|
|
5695
|
+
AIInterviewTypeEnum,
|
|
5544
5696
|
ASSESSMENT_QUESTION_PATTERN,
|
|
5545
5697
|
AUTHENTICATION_PATTERN,
|
|
5546
5698
|
AccountStatus,
|
package/dist/index.mjs
CHANGED
|
@@ -5212,8 +5212,9 @@ JobRoles = __decorateClass([
|
|
|
5212
5212
|
import { Entity as Entity45, Column as Column46, ManyToOne as ManyToOne36, JoinColumn as JoinColumn36, Index as Index36 } from "typeorm";
|
|
5213
5213
|
var InterviewInviteStatusEnum = /* @__PURE__ */ ((InterviewInviteStatusEnum2) => {
|
|
5214
5214
|
InterviewInviteStatusEnum2["PENDING"] = "PENDING";
|
|
5215
|
+
InterviewInviteStatusEnum2["ACCEPTED"] = "ACCEPTED";
|
|
5216
|
+
InterviewInviteStatusEnum2["REJECTED"] = "REJECTED";
|
|
5215
5217
|
InterviewInviteStatusEnum2["EXPIRED"] = "EXPIRED";
|
|
5216
|
-
InterviewInviteStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
5217
5218
|
return InterviewInviteStatusEnum2;
|
|
5218
5219
|
})(InterviewInviteStatusEnum || {});
|
|
5219
5220
|
var InterviewInvite = class extends BaseEntity {
|
|
@@ -5222,7 +5223,7 @@ __decorateClass([
|
|
|
5222
5223
|
Column46({
|
|
5223
5224
|
name: "interview_id",
|
|
5224
5225
|
type: "integer",
|
|
5225
|
-
comment: "
|
|
5226
|
+
comment: "Column to specify interview id"
|
|
5226
5227
|
}),
|
|
5227
5228
|
Index36()
|
|
5228
5229
|
], InterviewInvite.prototype, "interviewId", 2);
|
|
@@ -5264,7 +5265,8 @@ __decorateClass([
|
|
|
5264
5265
|
name: "status",
|
|
5265
5266
|
type: "enum",
|
|
5266
5267
|
enum: InterviewInviteStatusEnum,
|
|
5267
|
-
default: "PENDING" /* PENDING
|
|
5268
|
+
default: "PENDING" /* PENDING */,
|
|
5269
|
+
comment: "To manage invite status"
|
|
5268
5270
|
})
|
|
5269
5271
|
], InterviewInvite.prototype, "status", 2);
|
|
5270
5272
|
__decorateClass([
|
|
@@ -5293,85 +5295,227 @@ __decorateClass([
|
|
|
5293
5295
|
], InterviewInvite.prototype, "respondedAt", 2);
|
|
5294
5296
|
__decorateClass([
|
|
5295
5297
|
Column46({
|
|
5296
|
-
name: "
|
|
5298
|
+
name: "token",
|
|
5297
5299
|
type: "varchar",
|
|
5298
5300
|
unique: true,
|
|
5299
5301
|
comment: "Secure unique token sent in email link for invite tracking",
|
|
5300
5302
|
nullable: true
|
|
5301
5303
|
}),
|
|
5302
5304
|
Index36()
|
|
5303
|
-
], InterviewInvite.prototype, "
|
|
5305
|
+
], InterviewInvite.prototype, "token", 2);
|
|
5304
5306
|
InterviewInvite = __decorateClass([
|
|
5305
5307
|
Entity45("interview_invites")
|
|
5306
5308
|
], InterviewInvite);
|
|
5307
5309
|
|
|
5310
|
+
// src/entities/ai-interview.entity.ts
|
|
5311
|
+
import { Entity as Entity46, Column as Column47, ManyToOne as ManyToOne37, JoinColumn as JoinColumn37, Index as Index37 } from "typeorm";
|
|
5312
|
+
var AIInterviewStatusEnum = /* @__PURE__ */ ((AIInterviewStatusEnum2) => {
|
|
5313
|
+
AIInterviewStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
5314
|
+
AIInterviewStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
5315
|
+
AIInterviewStatusEnum2["FAILED"] = "FAILED";
|
|
5316
|
+
AIInterviewStatusEnum2["TIMEOUT"] = "TIMEOUT";
|
|
5317
|
+
AIInterviewStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
5318
|
+
return AIInterviewStatusEnum2;
|
|
5319
|
+
})(AIInterviewStatusEnum || {});
|
|
5320
|
+
var AIInterviewTypeEnum = /* @__PURE__ */ ((AIInterviewTypeEnum2) => {
|
|
5321
|
+
AIInterviewTypeEnum2["AI_INTERVIEW"] = "AI_INTERVIEW";
|
|
5322
|
+
AIInterviewTypeEnum2["AI_INTERVIEW_AND_CODING_EXERCISE"] = "AI_INTERVIEW_AND_CODING_EXERCISE";
|
|
5323
|
+
AIInterviewTypeEnum2["AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE"] = "AI_INTERVIEW_AND_CODING_EXERCISE_AND_RLHF_EXCERCISE";
|
|
5324
|
+
AIInterviewTypeEnum2["CODING_EXERCISE"] = "CODING_EXERCISE";
|
|
5325
|
+
return AIInterviewTypeEnum2;
|
|
5326
|
+
})(AIInterviewTypeEnum || {});
|
|
5327
|
+
var AIInterviewResultEnum = /* @__PURE__ */ ((AIInterviewResultEnum2) => {
|
|
5328
|
+
AIInterviewResultEnum2["PASSED"] = "PASSED";
|
|
5329
|
+
AIInterviewResultEnum2["FAILED"] = "FAILED";
|
|
5330
|
+
AIInterviewResultEnum2["NEEDS_REVIEW"] = "NEEDS_REVIEW";
|
|
5331
|
+
AIInterviewResultEnum2["INCOMPLETE"] = "INCOMPLETE";
|
|
5332
|
+
return AIInterviewResultEnum2;
|
|
5333
|
+
})(AIInterviewResultEnum || {});
|
|
5334
|
+
var AIInterview = class extends BaseEntity {
|
|
5335
|
+
};
|
|
5336
|
+
__decorateClass([
|
|
5337
|
+
Column47({
|
|
5338
|
+
name: "interview_id",
|
|
5339
|
+
type: "integer",
|
|
5340
|
+
comment: "Redundant explicit interview_id column (optional if using only relation"
|
|
5341
|
+
}),
|
|
5342
|
+
Index37()
|
|
5343
|
+
], AIInterview.prototype, "interviewId", 2);
|
|
5344
|
+
__decorateClass([
|
|
5345
|
+
Column47({
|
|
5346
|
+
name: "interview_invite_id",
|
|
5347
|
+
type: "integer",
|
|
5348
|
+
comment: "Redundant explicit interview_invite_id column (optional if using only relation"
|
|
5349
|
+
})
|
|
5350
|
+
], AIInterview.prototype, "interviewInviteId", 2);
|
|
5351
|
+
__decorateClass([
|
|
5352
|
+
Column47({
|
|
5353
|
+
name: "candidate_id",
|
|
5354
|
+
type: "integer",
|
|
5355
|
+
comment: "Redundant explicit candidate_id column (optional if using only relation"
|
|
5356
|
+
}),
|
|
5357
|
+
Index37()
|
|
5358
|
+
], AIInterview.prototype, "candidateId", 2);
|
|
5359
|
+
__decorateClass([
|
|
5360
|
+
Column47({
|
|
5361
|
+
name: "job_id",
|
|
5362
|
+
type: "integer",
|
|
5363
|
+
comment: "Redundant explicit job_id column (optional if using only relation"
|
|
5364
|
+
})
|
|
5365
|
+
], AIInterview.prototype, "jobId", 2);
|
|
5366
|
+
__decorateClass([
|
|
5367
|
+
Column47({
|
|
5368
|
+
name: "invite_token",
|
|
5369
|
+
type: "varchar",
|
|
5370
|
+
unique: true,
|
|
5371
|
+
comment: "Secure unique token sent in email link for invite tracking",
|
|
5372
|
+
nullable: true
|
|
5373
|
+
})
|
|
5374
|
+
], AIInterview.prototype, "inviteToken", 2);
|
|
5375
|
+
__decorateClass([
|
|
5376
|
+
Column47({ name: "interview_type", type: "enum", enum: AIInterviewTypeEnum })
|
|
5377
|
+
], AIInterview.prototype, "interviewType", 2);
|
|
5378
|
+
__decorateClass([
|
|
5379
|
+
Column47({
|
|
5380
|
+
name: "interview_name",
|
|
5381
|
+
type: "varchar",
|
|
5382
|
+
comment: "Name of the interview"
|
|
5383
|
+
})
|
|
5384
|
+
], AIInterview.prototype, "interviewName", 2);
|
|
5385
|
+
__decorateClass([
|
|
5386
|
+
Column47({
|
|
5387
|
+
name: "job_title",
|
|
5388
|
+
type: "varchar",
|
|
5389
|
+
comment: "Name of the job title for that the AI interview was conducted"
|
|
5390
|
+
})
|
|
5391
|
+
], AIInterview.prototype, "jobTitle", 2);
|
|
5392
|
+
__decorateClass([
|
|
5393
|
+
Column47({
|
|
5394
|
+
type: "enum",
|
|
5395
|
+
enum: AIInterviewStatusEnum,
|
|
5396
|
+
default: "IN_PROGRESS" /* IN_PROGRESS */
|
|
5397
|
+
})
|
|
5398
|
+
], AIInterview.prototype, "status", 2);
|
|
5399
|
+
__decorateClass([
|
|
5400
|
+
Column47({
|
|
5401
|
+
name: "started_at",
|
|
5402
|
+
type: "timestamp with time zone",
|
|
5403
|
+
comment: "Timestamp when the interview was started"
|
|
5404
|
+
})
|
|
5405
|
+
], AIInterview.prototype, "startedAt", 2);
|
|
5406
|
+
__decorateClass([
|
|
5407
|
+
Column47({
|
|
5408
|
+
name: "completed_at",
|
|
5409
|
+
type: "timestamp with time zone",
|
|
5410
|
+
nullable: true,
|
|
5411
|
+
comment: "Timestamp when the interview was completed"
|
|
5412
|
+
})
|
|
5413
|
+
], AIInterview.prototype, "completedAt", 2);
|
|
5414
|
+
__decorateClass([
|
|
5415
|
+
Column47({
|
|
5416
|
+
name: "duration_minutes",
|
|
5417
|
+
type: "integer",
|
|
5418
|
+
nullable: true,
|
|
5419
|
+
comment: "Duration of the AI interview"
|
|
5420
|
+
})
|
|
5421
|
+
], AIInterview.prototype, "durationMinutes", 2);
|
|
5422
|
+
__decorateClass([
|
|
5423
|
+
Column47({
|
|
5424
|
+
name: "overall_score",
|
|
5425
|
+
type: "decimal",
|
|
5426
|
+
precision: 5,
|
|
5427
|
+
scale: 2,
|
|
5428
|
+
nullable: true,
|
|
5429
|
+
comment: "Overall score of the AI interview"
|
|
5430
|
+
})
|
|
5431
|
+
], AIInterview.prototype, "overallScore", 2);
|
|
5432
|
+
__decorateClass([
|
|
5433
|
+
ManyToOne37(() => Interview, { onDelete: "CASCADE" }),
|
|
5434
|
+
JoinColumn37({ name: "interview_id" })
|
|
5435
|
+
], AIInterview.prototype, "interview", 2);
|
|
5436
|
+
__decorateClass([
|
|
5437
|
+
ManyToOne37(() => InterviewInvite, { onDelete: "CASCADE" }),
|
|
5438
|
+
JoinColumn37({ name: "interview_invite_id" })
|
|
5439
|
+
], AIInterview.prototype, "interviewInvite", 2);
|
|
5440
|
+
__decorateClass([
|
|
5441
|
+
ManyToOne37(() => User, { onDelete: "CASCADE" }),
|
|
5442
|
+
JoinColumn37({ name: "candidate_id" })
|
|
5443
|
+
], AIInterview.prototype, "candidate", 2);
|
|
5444
|
+
__decorateClass([
|
|
5445
|
+
ManyToOne37(() => Job, { onDelete: "CASCADE" }),
|
|
5446
|
+
JoinColumn37({ name: "job_id" })
|
|
5447
|
+
], AIInterview.prototype, "job", 2);
|
|
5448
|
+
AIInterview = __decorateClass([
|
|
5449
|
+
Entity46("ai_interviews")
|
|
5450
|
+
], AIInterview);
|
|
5451
|
+
|
|
5308
5452
|
// src/entities/plan.entity.ts
|
|
5309
|
-
import { Entity as
|
|
5453
|
+
import { Entity as Entity48, Column as Column49, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
|
|
5310
5454
|
|
|
5311
5455
|
// src/entities/feature.entity.ts
|
|
5312
|
-
import { Entity as
|
|
5456
|
+
import { Entity as Entity47, Column as Column48, ManyToMany as ManyToMany2 } from "typeorm";
|
|
5313
5457
|
var Feature = class extends BaseEntity {
|
|
5314
5458
|
};
|
|
5315
5459
|
__decorateClass([
|
|
5316
|
-
|
|
5460
|
+
Column48({ name: "name", type: "varchar", unique: true })
|
|
5317
5461
|
], Feature.prototype, "name", 2);
|
|
5318
5462
|
__decorateClass([
|
|
5319
5463
|
ManyToMany2(() => Plan, (plan) => plan.features)
|
|
5320
5464
|
], Feature.prototype, "plans", 2);
|
|
5321
5465
|
Feature = __decorateClass([
|
|
5322
|
-
|
|
5466
|
+
Entity47("features")
|
|
5323
5467
|
], Feature);
|
|
5324
5468
|
|
|
5325
5469
|
// src/entities/plan.entity.ts
|
|
5326
5470
|
var Plan = class extends BaseEntity {
|
|
5327
5471
|
};
|
|
5328
5472
|
__decorateClass([
|
|
5329
|
-
|
|
5473
|
+
Column49({ name: "name", type: "varchar", unique: true })
|
|
5330
5474
|
], Plan.prototype, "name", 2);
|
|
5331
5475
|
__decorateClass([
|
|
5332
|
-
|
|
5476
|
+
Column49({ name: "description", type: "varchar", nullable: true })
|
|
5333
5477
|
], Plan.prototype, "description", 2);
|
|
5334
5478
|
__decorateClass([
|
|
5335
|
-
|
|
5479
|
+
Column49({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
5336
5480
|
], Plan.prototype, "price", 2);
|
|
5337
5481
|
__decorateClass([
|
|
5338
|
-
|
|
5482
|
+
Column49({ name: "billing_period", type: "varchar" })
|
|
5339
5483
|
], Plan.prototype, "billingPeriod", 2);
|
|
5340
5484
|
__decorateClass([
|
|
5341
|
-
|
|
5485
|
+
Column49({ name: "is_current", type: "boolean", default: false })
|
|
5342
5486
|
], Plan.prototype, "isCurrent", 2);
|
|
5343
5487
|
__decorateClass([
|
|
5344
5488
|
ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
5345
5489
|
JoinTable()
|
|
5346
5490
|
], Plan.prototype, "features", 2);
|
|
5347
5491
|
Plan = __decorateClass([
|
|
5348
|
-
|
|
5492
|
+
Entity48("plans")
|
|
5349
5493
|
], Plan);
|
|
5350
5494
|
|
|
5351
5495
|
// src/entities/cms.entity.ts
|
|
5352
|
-
import { Entity as
|
|
5496
|
+
import { Entity as Entity49, Column as Column50 } from "typeorm";
|
|
5353
5497
|
var Cms = class extends BaseEntity {
|
|
5354
5498
|
};
|
|
5355
5499
|
__decorateClass([
|
|
5356
|
-
|
|
5500
|
+
Column50({ name: "title", type: "varchar", nullable: true })
|
|
5357
5501
|
], Cms.prototype, "title", 2);
|
|
5358
5502
|
__decorateClass([
|
|
5359
|
-
|
|
5503
|
+
Column50({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
5360
5504
|
], Cms.prototype, "slug", 2);
|
|
5361
5505
|
__decorateClass([
|
|
5362
|
-
|
|
5506
|
+
Column50({ name: "content", type: "varchar", nullable: true })
|
|
5363
5507
|
], Cms.prototype, "content", 2);
|
|
5364
5508
|
__decorateClass([
|
|
5365
|
-
|
|
5509
|
+
Column50({ name: "is_active", type: "boolean", default: true })
|
|
5366
5510
|
], Cms.prototype, "isActive", 2);
|
|
5367
5511
|
Cms = __decorateClass([
|
|
5368
|
-
|
|
5512
|
+
Entity49("cms")
|
|
5369
5513
|
], Cms);
|
|
5370
5514
|
|
|
5371
5515
|
// src/entities/lead.entity.ts
|
|
5372
5516
|
import {
|
|
5373
|
-
Entity as
|
|
5374
|
-
Column as
|
|
5517
|
+
Entity as Entity50,
|
|
5518
|
+
Column as Column51
|
|
5375
5519
|
} from "typeorm";
|
|
5376
5520
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
5377
5521
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -5381,22 +5525,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
5381
5525
|
var Lead = class extends BaseEntity {
|
|
5382
5526
|
};
|
|
5383
5527
|
__decorateClass([
|
|
5384
|
-
|
|
5528
|
+
Column51({ name: "name", type: "varchar", nullable: true })
|
|
5385
5529
|
], Lead.prototype, "name", 2);
|
|
5386
5530
|
__decorateClass([
|
|
5387
|
-
|
|
5531
|
+
Column51({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5388
5532
|
], Lead.prototype, "mobileCode", 2);
|
|
5389
5533
|
__decorateClass([
|
|
5390
|
-
|
|
5534
|
+
Column51({ name: "mobile", type: "varchar", nullable: true })
|
|
5391
5535
|
], Lead.prototype, "mobile", 2);
|
|
5392
5536
|
__decorateClass([
|
|
5393
|
-
|
|
5537
|
+
Column51({ name: "email", type: "varchar", nullable: true })
|
|
5394
5538
|
], Lead.prototype, "email", 2);
|
|
5395
5539
|
__decorateClass([
|
|
5396
|
-
|
|
5540
|
+
Column51({ name: "description", type: "varchar", nullable: true })
|
|
5397
5541
|
], Lead.prototype, "description", 2);
|
|
5398
5542
|
__decorateClass([
|
|
5399
|
-
|
|
5543
|
+
Column51({
|
|
5400
5544
|
name: "category",
|
|
5401
5545
|
type: "enum",
|
|
5402
5546
|
enum: CategoryEmum,
|
|
@@ -5404,7 +5548,7 @@ __decorateClass([
|
|
|
5404
5548
|
})
|
|
5405
5549
|
], Lead.prototype, "category", 2);
|
|
5406
5550
|
Lead = __decorateClass([
|
|
5407
|
-
|
|
5551
|
+
Entity50("leads")
|
|
5408
5552
|
], Lead);
|
|
5409
5553
|
|
|
5410
5554
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -5645,7 +5789,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
5645
5789
|
], ClientFreelancerRecommendation);
|
|
5646
5790
|
|
|
5647
5791
|
// src/entities/commission.entity.ts
|
|
5648
|
-
import { Entity as
|
|
5792
|
+
import { Entity as Entity51, Column as Column52 } from "typeorm";
|
|
5649
5793
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
5650
5794
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
5651
5795
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -5654,7 +5798,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
5654
5798
|
var Commission = class extends BaseEntity {
|
|
5655
5799
|
};
|
|
5656
5800
|
__decorateClass([
|
|
5657
|
-
|
|
5801
|
+
Column52({
|
|
5658
5802
|
name: "freelancer_commission_type",
|
|
5659
5803
|
type: "enum",
|
|
5660
5804
|
enum: CommissionTypeEnum,
|
|
@@ -5662,10 +5806,10 @@ __decorateClass([
|
|
|
5662
5806
|
})
|
|
5663
5807
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
5664
5808
|
__decorateClass([
|
|
5665
|
-
|
|
5809
|
+
Column52({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
5666
5810
|
], Commission.prototype, "freelancerCommission", 2);
|
|
5667
5811
|
__decorateClass([
|
|
5668
|
-
|
|
5812
|
+
Column52({
|
|
5669
5813
|
name: "client_commission_type",
|
|
5670
5814
|
type: "enum",
|
|
5671
5815
|
enum: CommissionTypeEnum,
|
|
@@ -5673,16 +5817,20 @@ __decorateClass([
|
|
|
5673
5817
|
})
|
|
5674
5818
|
], Commission.prototype, "clientCommissionType", 2);
|
|
5675
5819
|
__decorateClass([
|
|
5676
|
-
|
|
5820
|
+
Column52({ name: "client_commission", type: "integer", default: 0 })
|
|
5677
5821
|
], Commission.prototype, "clientCommission", 2);
|
|
5678
5822
|
Commission = __decorateClass([
|
|
5679
|
-
|
|
5823
|
+
Entity51("commissions")
|
|
5680
5824
|
], Commission);
|
|
5681
5825
|
export {
|
|
5682
5826
|
ADMIN_FREELANCER_PATTERN,
|
|
5683
5827
|
ADMIN_JOB_PATTERN,
|
|
5684
5828
|
ADMIN_PERMISSION_PATTERN,
|
|
5685
5829
|
ADMIN_ROLE_PATTERN,
|
|
5830
|
+
AIInterview,
|
|
5831
|
+
AIInterviewResultEnum,
|
|
5832
|
+
AIInterviewStatusEnum,
|
|
5833
|
+
AIInterviewTypeEnum,
|
|
5686
5834
|
ASSESSMENT_QUESTION_PATTERN,
|
|
5687
5835
|
AUTHENTICATION_PATTERN,
|
|
5688
5836
|
AccountStatus,
|