@experts_hub/shared 1.0.115 → 1.0.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ import { BaseEntity } from "typeorm";
2
+ import { User } from "./user.entity";
3
+ export declare class CompanyRole extends BaseEntity {
4
+ userId: number;
5
+ user: User;
6
+ name: string;
7
+ slug: string;
8
+ description: string;
9
+ isActive: boolean;
10
+ }
@@ -10,6 +10,7 @@ export * from './skill.entity';
10
10
  export * from './job-role.entity';
11
11
  export * from './job-entity';
12
12
  export * from './job-skill.entity';
13
+ export * from './job-application.entity';
13
14
  export * from './bank-details.entity';
14
15
  export * from './plan.entity';
15
16
  export * from './feature.entity';
@@ -0,0 +1,34 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { Job } from "./job-entity";
3
+ import { User } from "./user.entity";
4
+ export declare enum ApplicationStatusEnum {
5
+ PENDING = "PENDING",
6
+ SHORTLISTED = "SHORTLISTED",
7
+ INTERVIEW_IN_PROGRESS = "INTERVIEW_IN_PROGRESS",
8
+ INTERVIEWED = "INTERVIEWED",
9
+ OFFERED = "OFFERED",
10
+ HIRED = "HIRED",
11
+ REJECTED_BEFORE_INTERVIEW = "REJECTED_BEFORE_INTERVIEW",
12
+ REJECTED_IN_INTERVIEW = "REJECTED_IN_INTERVIEW",
13
+ REJECTED_AFTER_INTERVIEW = "REJECTED_AFTER_INTERVIEW",
14
+ NOT_SUITABLE = "NOT_SUITABLE",
15
+ WITHDRAWN = "WITHDRAWN"
16
+ }
17
+ export declare class JobApplication extends BaseEntity {
18
+ jobApplicationId: string;
19
+ jobId: number;
20
+ job: Job;
21
+ userId: number;
22
+ user: User;
23
+ status: ApplicationStatusEnum;
24
+ appliedAt: Date;
25
+ shortlistedAt: Date;
26
+ interviewStartedAt: Date;
27
+ interviewCompletedAt: Date;
28
+ offeredAt: Date;
29
+ hiredAt: Date;
30
+ rejectedAt: Date;
31
+ rejectionReason: string;
32
+ withdrawnAt: Date;
33
+ withdrawnReason: string;
34
+ }
@@ -1,6 +1,7 @@
1
1
  import { BaseEntity } from "./base.entity";
2
2
  import { User } from "./user.entity";
3
3
  import { JobSkill } from "./job-skill.entity";
4
+ import { JobApplication } from "./job-application.entity";
4
5
  export declare enum JobLocationEnum {
5
6
  ONSITE = "ONSITE",
6
7
  REMOTE = "REMOTE",
@@ -42,4 +43,5 @@ export declare class Job extends BaseEntity {
42
43
  stepCompleted: Step;
43
44
  status: JobStatusEnum;
44
45
  jobSkills: JobSkill[];
46
+ jobApplications: JobApplication[];
45
47
  }
@@ -8,6 +8,8 @@ import { Job } from "./job-entity";
8
8
  import { BankDetail } from "./bank-details.entity";
9
9
  import { SystemPreference } from "./system-preference.entity";
10
10
  import { Rating } from "./rating.entity";
11
+ import { JobApplication } from "./job-application.entity";
12
+ import { CompanyRole } from "./company-role.entity";
11
13
  export declare enum AccountType {
12
14
  ADMIN = "ADMIN",
13
15
  SUB_ADMIN = "SUB_ADMIN",
@@ -60,4 +62,6 @@ export declare class User extends BaseEntity {
60
62
  systemPreference: SystemPreference[];
61
63
  givenRatings: Rating[];
62
64
  receivedRatings: Rating[];
65
+ jobApplications: JobApplication[];
66
+ companyRole: CompanyRole[];
63
67
  }
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { BaseEntity as BaseEntity$1 } from 'typeorm';
1
2
  import { MicroserviceOptions } from '@nestjs/microservices';
2
3
 
3
4
  declare const AUTHENTICATION_PATTERN: {
@@ -342,6 +343,38 @@ declare class JobSkill extends BaseEntity {
342
343
  skill: Skill;
343
344
  }
344
345
 
346
+ declare enum ApplicationStatusEnum {
347
+ PENDING = "PENDING",
348
+ SHORTLISTED = "SHORTLISTED",
349
+ INTERVIEW_IN_PROGRESS = "INTERVIEW_IN_PROGRESS",
350
+ INTERVIEWED = "INTERVIEWED",
351
+ OFFERED = "OFFERED",
352
+ HIRED = "HIRED",
353
+ REJECTED_BEFORE_INTERVIEW = "REJECTED_BEFORE_INTERVIEW",
354
+ REJECTED_IN_INTERVIEW = "REJECTED_IN_INTERVIEW",
355
+ REJECTED_AFTER_INTERVIEW = "REJECTED_AFTER_INTERVIEW",
356
+ NOT_SUITABLE = "NOT_SUITABLE",
357
+ WITHDRAWN = "WITHDRAWN"
358
+ }
359
+ declare class JobApplication extends BaseEntity {
360
+ jobApplicationId: string;
361
+ jobId: number;
362
+ job: Job;
363
+ userId: number;
364
+ user: User;
365
+ status: ApplicationStatusEnum;
366
+ appliedAt: Date;
367
+ shortlistedAt: Date;
368
+ interviewStartedAt: Date;
369
+ interviewCompletedAt: Date;
370
+ offeredAt: Date;
371
+ hiredAt: Date;
372
+ rejectedAt: Date;
373
+ rejectionReason: string;
374
+ withdrawnAt: Date;
375
+ withdrawnReason: string;
376
+ }
377
+
345
378
  declare enum JobLocationEnum {
346
379
  ONSITE = "ONSITE",
347
380
  REMOTE = "REMOTE",
@@ -383,6 +416,7 @@ declare class Job extends BaseEntity {
383
416
  stepCompleted: Step;
384
417
  status: JobStatusEnum;
385
418
  jobSkills: JobSkill[];
419
+ jobApplications: JobApplication[];
386
420
  }
387
421
 
388
422
  declare enum BankAccountTypeEnum {
@@ -432,6 +466,15 @@ declare class Rating extends BaseEntity {
432
466
  review: string;
433
467
  }
434
468
 
469
+ declare class CompanyRole extends BaseEntity$1 {
470
+ userId: number;
471
+ user: User;
472
+ name: string;
473
+ slug: string;
474
+ description: string;
475
+ isActive: boolean;
476
+ }
477
+
435
478
  declare enum AccountType {
436
479
  ADMIN = "ADMIN",
437
480
  SUB_ADMIN = "SUB_ADMIN",
@@ -484,6 +527,8 @@ declare class User extends BaseEntity {
484
527
  systemPreference: SystemPreference[];
485
528
  givenRatings: Rating[];
486
529
  receivedRatings: Rating[];
530
+ jobApplications: JobApplication[];
531
+ companyRole: CompanyRole[];
487
532
  }
488
533
 
489
534
  declare enum KindOfHire {
@@ -835,4 +880,4 @@ declare class Plan extends BaseEntity {
835
880
  features: Feature[];
836
881
  }
837
882
 
838
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToSubAdminResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, 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, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
883
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToSubAdminResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, 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, 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, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { BaseEntity as BaseEntity$1 } from 'typeorm';
1
2
  import { MicroserviceOptions } from '@nestjs/microservices';
2
3
 
3
4
  declare const AUTHENTICATION_PATTERN: {
@@ -342,6 +343,38 @@ declare class JobSkill extends BaseEntity {
342
343
  skill: Skill;
343
344
  }
344
345
 
346
+ declare enum ApplicationStatusEnum {
347
+ PENDING = "PENDING",
348
+ SHORTLISTED = "SHORTLISTED",
349
+ INTERVIEW_IN_PROGRESS = "INTERVIEW_IN_PROGRESS",
350
+ INTERVIEWED = "INTERVIEWED",
351
+ OFFERED = "OFFERED",
352
+ HIRED = "HIRED",
353
+ REJECTED_BEFORE_INTERVIEW = "REJECTED_BEFORE_INTERVIEW",
354
+ REJECTED_IN_INTERVIEW = "REJECTED_IN_INTERVIEW",
355
+ REJECTED_AFTER_INTERVIEW = "REJECTED_AFTER_INTERVIEW",
356
+ NOT_SUITABLE = "NOT_SUITABLE",
357
+ WITHDRAWN = "WITHDRAWN"
358
+ }
359
+ declare class JobApplication extends BaseEntity {
360
+ jobApplicationId: string;
361
+ jobId: number;
362
+ job: Job;
363
+ userId: number;
364
+ user: User;
365
+ status: ApplicationStatusEnum;
366
+ appliedAt: Date;
367
+ shortlistedAt: Date;
368
+ interviewStartedAt: Date;
369
+ interviewCompletedAt: Date;
370
+ offeredAt: Date;
371
+ hiredAt: Date;
372
+ rejectedAt: Date;
373
+ rejectionReason: string;
374
+ withdrawnAt: Date;
375
+ withdrawnReason: string;
376
+ }
377
+
345
378
  declare enum JobLocationEnum {
346
379
  ONSITE = "ONSITE",
347
380
  REMOTE = "REMOTE",
@@ -383,6 +416,7 @@ declare class Job extends BaseEntity {
383
416
  stepCompleted: Step;
384
417
  status: JobStatusEnum;
385
418
  jobSkills: JobSkill[];
419
+ jobApplications: JobApplication[];
386
420
  }
387
421
 
388
422
  declare enum BankAccountTypeEnum {
@@ -432,6 +466,15 @@ declare class Rating extends BaseEntity {
432
466
  review: string;
433
467
  }
434
468
 
469
+ declare class CompanyRole extends BaseEntity$1 {
470
+ userId: number;
471
+ user: User;
472
+ name: string;
473
+ slug: string;
474
+ description: string;
475
+ isActive: boolean;
476
+ }
477
+
435
478
  declare enum AccountType {
436
479
  ADMIN = "ADMIN",
437
480
  SUB_ADMIN = "SUB_ADMIN",
@@ -484,6 +527,8 @@ declare class User extends BaseEntity {
484
527
  systemPreference: SystemPreference[];
485
528
  givenRatings: Rating[];
486
529
  receivedRatings: Rating[];
530
+ jobApplications: JobApplication[];
531
+ companyRole: CompanyRole[];
487
532
  }
488
533
 
489
534
  declare enum KindOfHire {
@@ -835,4 +880,4 @@ declare class Plan extends BaseEntity {
835
880
  features: Feature[];
836
881
  }
837
882
 
838
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToSubAdminResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, 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, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
883
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToSubAdminResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, 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, 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, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };