@experts_hub/shared 1.0.140 → 1.0.141

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.
@@ -14,6 +14,7 @@ export * from './job-role.entity';
14
14
  export * from './job.entity';
15
15
  export * from './job-skill.entity';
16
16
  export * from './job-application.entity';
17
+ export * from './interview.entity';
17
18
  export * from './bank-details.entity';
18
19
  export * from './plan.entity';
19
20
  export * from './feature.entity';
@@ -0,0 +1,20 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { User } from "./user.entity";
3
+ import { Job } from "./job.entity";
4
+ export declare enum InterviewStatusEnum {
5
+ DRAFTED = "DRAFTED",
6
+ PUBLISHED = "PUBLISHED",
7
+ INACTIVE = "INACTIVE",
8
+ DISCARDED = "DISCARDED",
9
+ ARCHIVED = "ARCHIVED"
10
+ }
11
+ export declare class Interview extends BaseEntity {
12
+ interviewId: string;
13
+ userId: number;
14
+ user: User;
15
+ interviewName: string;
16
+ jobId: number;
17
+ job: Job;
18
+ interviewType: string;
19
+ status: InterviewStatusEnum;
20
+ }
package/dist/index.d.mts CHANGED
@@ -1154,6 +1154,24 @@ declare class JobRoles extends BaseEntity {
1154
1154
  isActive: boolean;
1155
1155
  }
1156
1156
 
1157
+ declare enum InterviewStatusEnum {
1158
+ DRAFTED = "DRAFTED",
1159
+ PUBLISHED = "PUBLISHED",
1160
+ INACTIVE = "INACTIVE",
1161
+ DISCARDED = "DISCARDED",
1162
+ ARCHIVED = "ARCHIVED"
1163
+ }
1164
+ declare class Interview extends BaseEntity {
1165
+ interviewId: string;
1166
+ userId: number;
1167
+ user: User;
1168
+ interviewName: string;
1169
+ jobId: number;
1170
+ job: Job;
1171
+ interviewType: string;
1172
+ status: InterviewStatusEnum;
1173
+ }
1174
+
1157
1175
  declare class Feature extends BaseEntity {
1158
1176
  name: string;
1159
1177
  plans: Plan[];
@@ -1168,4 +1186,4 @@ declare class Plan extends BaseEntity {
1168
1186
  features: Feature[];
1169
1187
  }
1170
1188
 
1171
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateEducationDto, CreateExperienceDto, CreateFreelancerEducationDto, CreateFreelancerExperienceDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EmploymentType, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerExperience, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SenseloafLog, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateEducationDto, UpdateExperienceDto, UpdateFreelancerEducationDto, UpdateFreelancerExperienceDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
1189
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateEducationDto, CreateExperienceDto, CreateFreelancerEducationDto, CreateFreelancerExperienceDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EmploymentType, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerExperience, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, 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, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SenseloafLog, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateEducationDto, UpdateExperienceDto, UpdateFreelancerEducationDto, UpdateFreelancerExperienceDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -1154,6 +1154,24 @@ declare class JobRoles extends BaseEntity {
1154
1154
  isActive: boolean;
1155
1155
  }
1156
1156
 
1157
+ declare enum InterviewStatusEnum {
1158
+ DRAFTED = "DRAFTED",
1159
+ PUBLISHED = "PUBLISHED",
1160
+ INACTIVE = "INACTIVE",
1161
+ DISCARDED = "DISCARDED",
1162
+ ARCHIVED = "ARCHIVED"
1163
+ }
1164
+ declare class Interview extends BaseEntity {
1165
+ interviewId: string;
1166
+ userId: number;
1167
+ user: User;
1168
+ interviewName: string;
1169
+ jobId: number;
1170
+ job: Job;
1171
+ interviewType: string;
1172
+ status: InterviewStatusEnum;
1173
+ }
1174
+
1157
1175
  declare class Feature extends BaseEntity {
1158
1176
  name: string;
1159
1177
  plans: Plan[];
@@ -1168,4 +1186,4 @@ declare class Plan extends BaseEntity {
1168
1186
  features: Feature[];
1169
1187
  }
1170
1188
 
1171
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateEducationDto, CreateExperienceDto, CreateFreelancerEducationDto, CreateFreelancerExperienceDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EmploymentType, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerExperience, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SenseloafLog, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateEducationDto, UpdateExperienceDto, UpdateFreelancerEducationDto, UpdateFreelancerExperienceDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
1189
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateEducationDto, CreateExperienceDto, CreateFreelancerEducationDto, CreateFreelancerExperienceDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EmploymentType, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerExperience, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, 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, PLAN_PATTERN, PROFILE_PATTERN, Plan, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SenseloafLog, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateEducationDto, UpdateExperienceDto, UpdateFreelancerEducationDto, UpdateFreelancerExperienceDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -71,6 +71,8 @@ __export(index_exports, {
71
71
  FreelancerUploadResumeDto: () => FreelancerUploadResumeDto,
72
72
  FreelancerWorkShowcaseDto: () => FreelancerWorkShowcaseDto,
73
73
  FromUsOn: () => FromUsOn,
74
+ Interview: () => Interview,
75
+ InterviewStatusEnum: () => InterviewStatusEnum,
74
76
  JOB_PATTERN: () => JOB_PATTERN,
75
77
  JOB_ROLE_PATTERN: () => JOB_ROLE_PATTERN,
76
78
  Job: () => Job,
@@ -2621,47 +2623,102 @@ JobRoles = __decorateClass([
2621
2623
  (0, import_typeorm19.Entity)("job_roles")
2622
2624
  ], JobRoles);
2623
2625
 
2626
+ // src/entities/interview.entity.ts
2627
+ var import_typeorm20 = require("typeorm");
2628
+ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
2629
+ InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
2630
+ InterviewStatusEnum2["PUBLISHED"] = "PUBLISHED";
2631
+ InterviewStatusEnum2["INACTIVE"] = "INACTIVE";
2632
+ InterviewStatusEnum2["DISCARDED"] = "DISCARDED";
2633
+ InterviewStatusEnum2["ARCHIVED"] = "ARCHIVED";
2634
+ return InterviewStatusEnum2;
2635
+ })(InterviewStatusEnum || {});
2636
+ var Interview = class extends BaseEntity {
2637
+ };
2638
+ __decorateClass([
2639
+ (0, import_typeorm20.Column)({
2640
+ name: "interview_id",
2641
+ type: "varchar",
2642
+ unique: true,
2643
+ nullable: true
2644
+ }),
2645
+ (0, import_typeorm20.Index)()
2646
+ ], Interview.prototype, "interviewId", 2);
2647
+ __decorateClass([
2648
+ (0, import_typeorm20.Column)({ name: "user_id", type: "integer", nullable: true }),
2649
+ (0, import_typeorm20.Index)()
2650
+ ], Interview.prototype, "userId", 2);
2651
+ __decorateClass([
2652
+ (0, import_typeorm20.ManyToOne)(() => User, (user) => user.jobs),
2653
+ (0, import_typeorm20.JoinColumn)({ name: "user_id" })
2654
+ ], Interview.prototype, "user", 2);
2655
+ __decorateClass([
2656
+ (0, import_typeorm20.Column)({ name: "interview_name", type: "varchar", nullable: true })
2657
+ ], Interview.prototype, "interviewName", 2);
2658
+ __decorateClass([
2659
+ (0, import_typeorm20.Column)({ name: "job_id", type: "integer" }),
2660
+ (0, import_typeorm20.Index)()
2661
+ ], Interview.prototype, "jobId", 2);
2662
+ __decorateClass([
2663
+ (0, import_typeorm20.ManyToOne)(() => Job, (job) => job.jobApplications, { onDelete: "CASCADE" }),
2664
+ (0, import_typeorm20.JoinColumn)({ name: "job_id" })
2665
+ ], Interview.prototype, "job", 2);
2666
+ __decorateClass([
2667
+ (0, import_typeorm20.Column)({ name: "interview_type", type: "varchar", nullable: true })
2668
+ ], Interview.prototype, "interviewType", 2);
2669
+ __decorateClass([
2670
+ (0, import_typeorm20.Column)({
2671
+ name: "status",
2672
+ type: "enum",
2673
+ enum: InterviewStatusEnum,
2674
+ default: "DRAFTED" /* DRAFTED */
2675
+ })
2676
+ ], Interview.prototype, "status", 2);
2677
+ Interview = __decorateClass([
2678
+ (0, import_typeorm20.Entity)("interviews")
2679
+ ], Interview);
2680
+
2624
2681
  // src/entities/plan.entity.ts
2625
- var import_typeorm21 = require("typeorm");
2682
+ var import_typeorm22 = require("typeorm");
2626
2683
 
2627
2684
  // src/entities/feature.entity.ts
2628
- var import_typeorm20 = require("typeorm");
2685
+ var import_typeorm21 = require("typeorm");
2629
2686
  var Feature = class extends BaseEntity {
2630
2687
  };
2631
2688
  __decorateClass([
2632
- (0, import_typeorm20.Column)({ name: "name", type: "varchar", unique: true })
2689
+ (0, import_typeorm21.Column)({ name: "name", type: "varchar", unique: true })
2633
2690
  ], Feature.prototype, "name", 2);
2634
2691
  __decorateClass([
2635
- (0, import_typeorm20.ManyToMany)(() => Plan, (plan) => plan.features)
2692
+ (0, import_typeorm21.ManyToMany)(() => Plan, (plan) => plan.features)
2636
2693
  ], Feature.prototype, "plans", 2);
2637
2694
  Feature = __decorateClass([
2638
- (0, import_typeorm20.Entity)("features")
2695
+ (0, import_typeorm21.Entity)("features")
2639
2696
  ], Feature);
2640
2697
 
2641
2698
  // src/entities/plan.entity.ts
2642
2699
  var Plan = class extends BaseEntity {
2643
2700
  };
2644
2701
  __decorateClass([
2645
- (0, import_typeorm21.Column)({ name: "name", type: "varchar", unique: true })
2702
+ (0, import_typeorm22.Column)({ name: "name", type: "varchar", unique: true })
2646
2703
  ], Plan.prototype, "name", 2);
2647
2704
  __decorateClass([
2648
- (0, import_typeorm21.Column)({ name: "description", type: "varchar", nullable: true })
2705
+ (0, import_typeorm22.Column)({ name: "description", type: "varchar", nullable: true })
2649
2706
  ], Plan.prototype, "description", 2);
2650
2707
  __decorateClass([
2651
- (0, import_typeorm21.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2708
+ (0, import_typeorm22.Column)({ name: "price", type: "decimal", precision: 10, scale: 2 })
2652
2709
  ], Plan.prototype, "price", 2);
2653
2710
  __decorateClass([
2654
- (0, import_typeorm21.Column)({ name: "billing_period", type: "varchar" })
2711
+ (0, import_typeorm22.Column)({ name: "billing_period", type: "varchar" })
2655
2712
  ], Plan.prototype, "billingPeriod", 2);
2656
2713
  __decorateClass([
2657
- (0, import_typeorm21.Column)({ name: "is_current", type: "boolean", default: false })
2714
+ (0, import_typeorm22.Column)({ name: "is_current", type: "boolean", default: false })
2658
2715
  ], Plan.prototype, "isCurrent", 2);
2659
2716
  __decorateClass([
2660
- (0, import_typeorm21.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2661
- (0, import_typeorm21.JoinTable)()
2717
+ (0, import_typeorm22.ManyToMany)(() => Feature, (feature) => feature.plans, { cascade: true }),
2718
+ (0, import_typeorm22.JoinTable)()
2662
2719
  ], Plan.prototype, "features", 2);
2663
2720
  Plan = __decorateClass([
2664
- (0, import_typeorm21.Entity)("plans")
2721
+ (0, import_typeorm22.Entity)("plans")
2665
2722
  ], Plan);
2666
2723
  // Annotate the CommonJS export names for ESM import in node:
2667
2724
  0 && (module.exports = {
@@ -2709,6 +2766,8 @@ Plan = __decorateClass([
2709
2766
  FreelancerUploadResumeDto,
2710
2767
  FreelancerWorkShowcaseDto,
2711
2768
  FromUsOn,
2769
+ Interview,
2770
+ InterviewStatusEnum,
2712
2771
  JOB_PATTERN,
2713
2772
  JOB_ROLE_PATTERN,
2714
2773
  Job,
package/dist/index.mjs CHANGED
@@ -2658,47 +2658,102 @@ JobRoles = __decorateClass([
2658
2658
  Entity18("job_roles")
2659
2659
  ], JobRoles);
2660
2660
 
2661
+ // src/entities/interview.entity.ts
2662
+ import { Entity as Entity19, Column as Column20, Index as Index14, ManyToOne as ManyToOne16, JoinColumn as JoinColumn16 } from "typeorm";
2663
+ var InterviewStatusEnum = /* @__PURE__ */ ((InterviewStatusEnum2) => {
2664
+ InterviewStatusEnum2["DRAFTED"] = "DRAFTED";
2665
+ InterviewStatusEnum2["PUBLISHED"] = "PUBLISHED";
2666
+ InterviewStatusEnum2["INACTIVE"] = "INACTIVE";
2667
+ InterviewStatusEnum2["DISCARDED"] = "DISCARDED";
2668
+ InterviewStatusEnum2["ARCHIVED"] = "ARCHIVED";
2669
+ return InterviewStatusEnum2;
2670
+ })(InterviewStatusEnum || {});
2671
+ var Interview = class extends BaseEntity {
2672
+ };
2673
+ __decorateClass([
2674
+ Column20({
2675
+ name: "interview_id",
2676
+ type: "varchar",
2677
+ unique: true,
2678
+ nullable: true
2679
+ }),
2680
+ Index14()
2681
+ ], Interview.prototype, "interviewId", 2);
2682
+ __decorateClass([
2683
+ Column20({ name: "user_id", type: "integer", nullable: true }),
2684
+ Index14()
2685
+ ], Interview.prototype, "userId", 2);
2686
+ __decorateClass([
2687
+ ManyToOne16(() => User, (user) => user.jobs),
2688
+ JoinColumn16({ name: "user_id" })
2689
+ ], Interview.prototype, "user", 2);
2690
+ __decorateClass([
2691
+ Column20({ name: "interview_name", type: "varchar", nullable: true })
2692
+ ], Interview.prototype, "interviewName", 2);
2693
+ __decorateClass([
2694
+ Column20({ name: "job_id", type: "integer" }),
2695
+ Index14()
2696
+ ], Interview.prototype, "jobId", 2);
2697
+ __decorateClass([
2698
+ ManyToOne16(() => Job, (job) => job.jobApplications, { onDelete: "CASCADE" }),
2699
+ JoinColumn16({ name: "job_id" })
2700
+ ], Interview.prototype, "job", 2);
2701
+ __decorateClass([
2702
+ Column20({ name: "interview_type", type: "varchar", nullable: true })
2703
+ ], Interview.prototype, "interviewType", 2);
2704
+ __decorateClass([
2705
+ Column20({
2706
+ name: "status",
2707
+ type: "enum",
2708
+ enum: InterviewStatusEnum,
2709
+ default: "DRAFTED" /* DRAFTED */
2710
+ })
2711
+ ], Interview.prototype, "status", 2);
2712
+ Interview = __decorateClass([
2713
+ Entity19("interviews")
2714
+ ], Interview);
2715
+
2661
2716
  // src/entities/plan.entity.ts
2662
- import { Entity as Entity20, Column as Column21, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
2717
+ import { Entity as Entity21, Column as Column22, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
2663
2718
 
2664
2719
  // src/entities/feature.entity.ts
2665
- import { Entity as Entity19, Column as Column20, ManyToMany } from "typeorm";
2720
+ import { Entity as Entity20, Column as Column21, ManyToMany } from "typeorm";
2666
2721
  var Feature = class extends BaseEntity {
2667
2722
  };
2668
2723
  __decorateClass([
2669
- Column20({ name: "name", type: "varchar", unique: true })
2724
+ Column21({ name: "name", type: "varchar", unique: true })
2670
2725
  ], Feature.prototype, "name", 2);
2671
2726
  __decorateClass([
2672
2727
  ManyToMany(() => Plan, (plan) => plan.features)
2673
2728
  ], Feature.prototype, "plans", 2);
2674
2729
  Feature = __decorateClass([
2675
- Entity19("features")
2730
+ Entity20("features")
2676
2731
  ], Feature);
2677
2732
 
2678
2733
  // src/entities/plan.entity.ts
2679
2734
  var Plan = class extends BaseEntity {
2680
2735
  };
2681
2736
  __decorateClass([
2682
- Column21({ name: "name", type: "varchar", unique: true })
2737
+ Column22({ name: "name", type: "varchar", unique: true })
2683
2738
  ], Plan.prototype, "name", 2);
2684
2739
  __decorateClass([
2685
- Column21({ name: "description", type: "varchar", nullable: true })
2740
+ Column22({ name: "description", type: "varchar", nullable: true })
2686
2741
  ], Plan.prototype, "description", 2);
2687
2742
  __decorateClass([
2688
- Column21({ name: "price", type: "decimal", precision: 10, scale: 2 })
2743
+ Column22({ name: "price", type: "decimal", precision: 10, scale: 2 })
2689
2744
  ], Plan.prototype, "price", 2);
2690
2745
  __decorateClass([
2691
- Column21({ name: "billing_period", type: "varchar" })
2746
+ Column22({ name: "billing_period", type: "varchar" })
2692
2747
  ], Plan.prototype, "billingPeriod", 2);
2693
2748
  __decorateClass([
2694
- Column21({ name: "is_current", type: "boolean", default: false })
2749
+ Column22({ name: "is_current", type: "boolean", default: false })
2695
2750
  ], Plan.prototype, "isCurrent", 2);
2696
2751
  __decorateClass([
2697
2752
  ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
2698
2753
  JoinTable()
2699
2754
  ], Plan.prototype, "features", 2);
2700
2755
  Plan = __decorateClass([
2701
- Entity20("plans")
2756
+ Entity21("plans")
2702
2757
  ], Plan);
2703
2758
  export {
2704
2759
  AUTHENTICATION_PATTERN,
@@ -2745,6 +2800,8 @@ export {
2745
2800
  FreelancerUploadResumeDto,
2746
2801
  FreelancerWorkShowcaseDto,
2747
2802
  FromUsOn,
2803
+ Interview,
2804
+ InterviewStatusEnum,
2748
2805
  JOB_PATTERN,
2749
2806
  JOB_ROLE_PATTERN,
2750
2807
  Job,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.140",
3
+ "version": "1.0.141",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",