@experts_hub/shared 1.0.125 → 1.0.127

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.
@@ -9,7 +9,7 @@ export * from './company-profile.entity';
9
9
  export * from './company-role.entity';
10
10
  export * from './skill.entity';
11
11
  export * from './job-role.entity';
12
- export * from './job-entity';
12
+ export * from './job.entity';
13
13
  export * from './job-skill.entity';
14
14
  export * from './job-application.entity';
15
15
  export * from './bank-details.entity';
@@ -1,5 +1,5 @@
1
1
  import { BaseEntity } from "./base.entity";
2
- import { Job } from "./job-entity";
2
+ import { Job } from "./job.entity";
3
3
  import { User } from "./user.entity";
4
4
  export declare enum ApplicationStatusEnum {
5
5
  PENDING = "PENDING",
@@ -1,5 +1,5 @@
1
1
  import { BaseEntity } from "./base.entity";
2
- import { Job } from "./job-entity";
2
+ import { Job } from "./job.entity";
3
3
  import { Skill } from "./skill.entity";
4
4
  export declare class JobSkill extends BaseEntity {
5
5
  jobId: number;
@@ -24,6 +24,12 @@ export declare enum JobStatusEnum {
24
24
  ONHOLD = "ONHOLD",
25
25
  CLOSED = "CLOSED"
26
26
  }
27
+ export declare enum DurationTypeEnum {
28
+ DAY = "DAY",
29
+ WEEK = "WEEK",
30
+ MONTH = "MONTH",
31
+ YEAR = "YEAR"
32
+ }
27
33
  export declare class Job extends BaseEntity {
28
34
  jobId: string;
29
35
  userId: number;
@@ -36,6 +42,9 @@ export declare class Job extends BaseEntity {
36
42
  currency: string;
37
43
  expectedSalaryFrom: number;
38
44
  expectedSalaryTo: number;
45
+ tentativeStartDate: Date;
46
+ duration: string;
47
+ durationType: DurationTypeEnum;
39
48
  description: string;
40
49
  additionalComment: string;
41
50
  onboardingTat: string;
@@ -4,7 +4,7 @@ import { ResumeParserLog } from "./resume-parser-log.entity";
4
4
  import { Otp } from "./otp.entity";
5
5
  import { FreelancerProfile } from "./freelancer-profile.entity";
6
6
  import { CompanyProfile } from "./company-profile.entity";
7
- import { Job } from "./job-entity";
7
+ 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";
@@ -29,6 +29,9 @@ export declare enum Provider {
29
29
  }
30
30
  export declare class User extends BaseEntity {
31
31
  uniqueId: string;
32
+ parentId: number;
33
+ parent: User;
34
+ children: User[];
32
35
  username: string;
33
36
  firstName: string;
34
37
  lastName: string;
package/dist/index.d.mts CHANGED
@@ -399,6 +399,12 @@ declare enum JobStatusEnum {
399
399
  ONHOLD = "ONHOLD",
400
400
  CLOSED = "CLOSED"
401
401
  }
402
+ declare enum DurationTypeEnum {
403
+ DAY = "DAY",
404
+ WEEK = "WEEK",
405
+ MONTH = "MONTH",
406
+ YEAR = "YEAR"
407
+ }
402
408
  declare class Job extends BaseEntity {
403
409
  jobId: string;
404
410
  userId: number;
@@ -411,6 +417,9 @@ declare class Job extends BaseEntity {
411
417
  currency: string;
412
418
  expectedSalaryFrom: number;
413
419
  expectedSalaryTo: number;
420
+ tentativeStartDate: Date;
421
+ duration: string;
422
+ durationType: DurationTypeEnum;
414
423
  description: string;
415
424
  additionalComment: string;
416
425
  onboardingTat: string;
@@ -496,6 +505,9 @@ declare enum Provider {
496
505
  }
497
506
  declare class User extends BaseEntity {
498
507
  uniqueId: string;
508
+ parentId: number;
509
+ parent: User;
510
+ children: User[];
499
511
  username: string;
500
512
  firstName: string;
501
513
  lastName: string;
@@ -1000,4 +1012,4 @@ declare class Plan extends BaseEntity {
1000
1012
  features: Feature[];
1001
1013
  }
1002
1014
 
1003
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, 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 IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, 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, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
1015
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, 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 IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, 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, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -399,6 +399,12 @@ declare enum JobStatusEnum {
399
399
  ONHOLD = "ONHOLD",
400
400
  CLOSED = "CLOSED"
401
401
  }
402
+ declare enum DurationTypeEnum {
403
+ DAY = "DAY",
404
+ WEEK = "WEEK",
405
+ MONTH = "MONTH",
406
+ YEAR = "YEAR"
407
+ }
402
408
  declare class Job extends BaseEntity {
403
409
  jobId: string;
404
410
  userId: number;
@@ -411,6 +417,9 @@ declare class Job extends BaseEntity {
411
417
  currency: string;
412
418
  expectedSalaryFrom: number;
413
419
  expectedSalaryTo: number;
420
+ tentativeStartDate: Date;
421
+ duration: string;
422
+ durationType: DurationTypeEnum;
414
423
  description: string;
415
424
  additionalComment: string;
416
425
  onboardingTat: string;
@@ -496,6 +505,9 @@ declare enum Provider {
496
505
  }
497
506
  declare class User extends BaseEntity {
498
507
  uniqueId: string;
508
+ parentId: number;
509
+ parent: User;
510
+ children: User[];
499
511
  username: string;
500
512
  firstName: string;
501
513
  lastName: string;
@@ -1000,4 +1012,4 @@ declare class Plan extends BaseEntity {
1000
1012
  features: Feature[];
1001
1013
  }
1002
1014
 
1003
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, 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 IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, 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, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
1015
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, COMPANY_ROLES_PATTERNS, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CompanyRole, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DurationTypeEnum, EmploymentType, Feature, ForgotPasswordDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, 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 IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, 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, ResumeParserLog, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -48,6 +48,7 @@ __export(index_exports, {
48
48
  CreateQuestionDto: () => CreateQuestionDto,
49
49
  CreateRatingDto: () => CreateRatingDto,
50
50
  CreateSubAdminDto: () => CreateSubAdminDto,
51
+ DurationTypeEnum: () => DurationTypeEnum,
51
52
  EmploymentType: () => EmploymentType,
52
53
  Feature: () => Feature,
53
54
  ForgotPasswordDto: () => ForgotPasswordDto,
@@ -833,7 +834,7 @@ FreelancerProfile = __decorateClass([
833
834
  (0, import_typeorm5.Entity)("freelancer_profiles")
834
835
  ], FreelancerProfile);
835
836
 
836
- // src/entities/job-entity.ts
837
+ // src/entities/job.entity.ts
837
838
  var import_typeorm9 = require("typeorm");
838
839
 
839
840
  // src/entities/job-skill.entity.ts
@@ -998,7 +999,7 @@ JobApplication = __decorateClass([
998
999
  (0, import_typeorm8.Entity)("job_applications")
999
1000
  ], JobApplication);
1000
1001
 
1001
- // src/entities/job-entity.ts
1002
+ // src/entities/job.entity.ts
1002
1003
  var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
1003
1004
  JobLocationEnum2["ONSITE"] = "ONSITE";
1004
1005
  JobLocationEnum2["REMOTE"] = "REMOTE";
@@ -1025,6 +1026,13 @@ var JobStatusEnum = /* @__PURE__ */ ((JobStatusEnum2) => {
1025
1026
  JobStatusEnum2["CLOSED"] = "CLOSED";
1026
1027
  return JobStatusEnum2;
1027
1028
  })(JobStatusEnum || {});
1029
+ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
1030
+ DurationTypeEnum2["DAY"] = "DAY";
1031
+ DurationTypeEnum2["WEEK"] = "WEEK";
1032
+ DurationTypeEnum2["MONTH"] = "MONTH";
1033
+ DurationTypeEnum2["YEAR"] = "YEAR";
1034
+ return DurationTypeEnum2;
1035
+ })(DurationTypeEnum || {});
1028
1036
  var Job = class extends BaseEntity {
1029
1037
  };
1030
1038
  __decorateClass([
@@ -1068,11 +1076,37 @@ __decorateClass([
1068
1076
  (0, import_typeorm9.Column)({ name: "currency", type: "varchar", default: "USD" })
1069
1077
  ], Job.prototype, "currency", 2);
1070
1078
  __decorateClass([
1071
- (0, import_typeorm9.Column)({ name: "expected_salary_from", type: "decimal", precision: 10, scale: 2, default: 0 })
1079
+ (0, import_typeorm9.Column)({
1080
+ name: "expected_salary_from",
1081
+ type: "decimal",
1082
+ precision: 10,
1083
+ scale: 2,
1084
+ default: 0
1085
+ })
1072
1086
  ], Job.prototype, "expectedSalaryFrom", 2);
1073
1087
  __decorateClass([
1074
- (0, import_typeorm9.Column)({ name: "expected_salary_to", type: "decimal", precision: 10, scale: 2, default: 0 })
1088
+ (0, import_typeorm9.Column)({
1089
+ name: "expected_salary_to",
1090
+ type: "decimal",
1091
+ precision: 10,
1092
+ scale: 2,
1093
+ default: 0
1094
+ })
1075
1095
  ], Job.prototype, "expectedSalaryTo", 2);
1096
+ __decorateClass([
1097
+ (0, import_typeorm9.Column)({ name: "tentative_start_date", type: "date", nullable: true })
1098
+ ], Job.prototype, "tentativeStartDate", 2);
1099
+ __decorateClass([
1100
+ (0, import_typeorm9.Column)({ name: "duration", type: "varchar", nullable: true })
1101
+ ], Job.prototype, "duration", 2);
1102
+ __decorateClass([
1103
+ (0, import_typeorm9.Column)({
1104
+ name: "duration_type",
1105
+ type: "enum",
1106
+ enum: DurationTypeEnum,
1107
+ nullable: true
1108
+ })
1109
+ ], Job.prototype, "durationType", 2);
1076
1110
  __decorateClass([
1077
1111
  (0, import_typeorm9.Column)({ name: "description", type: "varchar", nullable: true })
1078
1112
  ], Job.prototype, "description", 2);
@@ -1080,10 +1114,19 @@ __decorateClass([
1080
1114
  (0, import_typeorm9.Column)({ name: "additional_comment", type: "varchar", nullable: true })
1081
1115
  ], Job.prototype, "additionalComment", 2);
1082
1116
  __decorateClass([
1083
- (0, import_typeorm9.Column)({ name: "onboarding_tat", type: "varchar", length: 50, nullable: true })
1117
+ (0, import_typeorm9.Column)({
1118
+ name: "onboarding_tat",
1119
+ type: "varchar",
1120
+ length: 50,
1121
+ nullable: true
1122
+ })
1084
1123
  ], Job.prototype, "onboardingTat", 2);
1085
1124
  __decorateClass([
1086
- (0, import_typeorm9.Column)({ name: "candidate_communication_skills", type: "varchar", nullable: true })
1125
+ (0, import_typeorm9.Column)({
1126
+ name: "candidate_communication_skills",
1127
+ type: "varchar",
1128
+ nullable: true
1129
+ })
1087
1130
  ], Job.prototype, "candidateCommunicationSkills", 2);
1088
1131
  __decorateClass([
1089
1132
  (0, import_typeorm9.Column)({
@@ -1105,7 +1148,9 @@ __decorateClass([
1105
1148
  (0, import_typeorm9.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
1106
1149
  ], Job.prototype, "jobSkills", 2);
1107
1150
  __decorateClass([
1108
- (0, import_typeorm9.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, { cascade: true })
1151
+ (0, import_typeorm9.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.job, {
1152
+ cascade: true
1153
+ })
1109
1154
  ], Job.prototype, "jobApplications", 2);
1110
1155
  Job = __decorateClass([
1111
1156
  (0, import_typeorm9.Entity)("jobs")
@@ -1308,6 +1353,17 @@ var User = class extends BaseEntity {
1308
1353
  __decorateClass([
1309
1354
  (0, import_typeorm14.Column)({ name: "unique_id", type: "varchar", unique: true })
1310
1355
  ], User.prototype, "uniqueId", 2);
1356
+ __decorateClass([
1357
+ (0, import_typeorm14.Column)({ name: "parent_id", type: "integer", nullable: true }),
1358
+ (0, import_typeorm14.Index)()
1359
+ ], User.prototype, "parentId", 2);
1360
+ __decorateClass([
1361
+ (0, import_typeorm14.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
1362
+ (0, import_typeorm14.JoinColumn)({ name: "parent_id" })
1363
+ ], User.prototype, "parent", 2);
1364
+ __decorateClass([
1365
+ (0, import_typeorm14.OneToMany)(() => User, (user) => user.parent)
1366
+ ], User.prototype, "children", 2);
1311
1367
  __decorateClass([
1312
1368
  (0, import_typeorm14.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
1313
1369
  ], User.prototype, "username", 2);
@@ -2395,6 +2451,7 @@ Plan = __decorateClass([
2395
2451
  CreateQuestionDto,
2396
2452
  CreateRatingDto,
2397
2453
  CreateSubAdminDto,
2454
+ DurationTypeEnum,
2398
2455
  EmploymentType,
2399
2456
  Feature,
2400
2457
  ForgotPasswordDto,
package/dist/index.mjs CHANGED
@@ -491,9 +491,9 @@ import {
491
491
  import {
492
492
  Entity as Entity14,
493
493
  Column as Column15,
494
- ManyToOne as ManyToOne12,
495
- JoinColumn as JoinColumn12,
496
- Index as Index10
494
+ ManyToOne as ManyToOne13,
495
+ JoinColumn as JoinColumn13,
496
+ Index as Index11
497
497
  } from "typeorm";
498
498
 
499
499
  // src/entities/base.entity.ts
@@ -541,7 +541,7 @@ __decorateClass([
541
541
  ], BaseEntity.prototype, "deletedAt", 2);
542
542
 
543
543
  // src/entities/user.entity.ts
544
- import { Entity as Entity13, Column as Column14, OneToMany as OneToMany6, OneToOne } from "typeorm";
544
+ import { Entity as Entity13, Column as Column14, OneToMany as OneToMany6, OneToOne, Index as Index10, ManyToOne as ManyToOne12, JoinColumn as JoinColumn12 } from "typeorm";
545
545
 
546
546
  // src/entities/refresh-token.entity.ts
547
547
  import {
@@ -808,7 +808,7 @@ FreelancerProfile = __decorateClass([
808
808
  Entity4("freelancer_profiles")
809
809
  ], FreelancerProfile);
810
810
 
811
- // src/entities/job-entity.ts
811
+ // src/entities/job.entity.ts
812
812
  import {
813
813
  Entity as Entity8,
814
814
  Column as Column9,
@@ -986,7 +986,7 @@ JobApplication = __decorateClass([
986
986
  Entity7("job_applications")
987
987
  ], JobApplication);
988
988
 
989
- // src/entities/job-entity.ts
989
+ // src/entities/job.entity.ts
990
990
  var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
991
991
  JobLocationEnum2["ONSITE"] = "ONSITE";
992
992
  JobLocationEnum2["REMOTE"] = "REMOTE";
@@ -1013,6 +1013,13 @@ var JobStatusEnum = /* @__PURE__ */ ((JobStatusEnum2) => {
1013
1013
  JobStatusEnum2["CLOSED"] = "CLOSED";
1014
1014
  return JobStatusEnum2;
1015
1015
  })(JobStatusEnum || {});
1016
+ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
1017
+ DurationTypeEnum2["DAY"] = "DAY";
1018
+ DurationTypeEnum2["WEEK"] = "WEEK";
1019
+ DurationTypeEnum2["MONTH"] = "MONTH";
1020
+ DurationTypeEnum2["YEAR"] = "YEAR";
1021
+ return DurationTypeEnum2;
1022
+ })(DurationTypeEnum || {});
1016
1023
  var Job = class extends BaseEntity {
1017
1024
  };
1018
1025
  __decorateClass([
@@ -1056,11 +1063,37 @@ __decorateClass([
1056
1063
  Column9({ name: "currency", type: "varchar", default: "USD" })
1057
1064
  ], Job.prototype, "currency", 2);
1058
1065
  __decorateClass([
1059
- Column9({ name: "expected_salary_from", type: "decimal", precision: 10, scale: 2, default: 0 })
1066
+ Column9({
1067
+ name: "expected_salary_from",
1068
+ type: "decimal",
1069
+ precision: 10,
1070
+ scale: 2,
1071
+ default: 0
1072
+ })
1060
1073
  ], Job.prototype, "expectedSalaryFrom", 2);
1061
1074
  __decorateClass([
1062
- Column9({ name: "expected_salary_to", type: "decimal", precision: 10, scale: 2, default: 0 })
1075
+ Column9({
1076
+ name: "expected_salary_to",
1077
+ type: "decimal",
1078
+ precision: 10,
1079
+ scale: 2,
1080
+ default: 0
1081
+ })
1063
1082
  ], Job.prototype, "expectedSalaryTo", 2);
1083
+ __decorateClass([
1084
+ Column9({ name: "tentative_start_date", type: "date", nullable: true })
1085
+ ], Job.prototype, "tentativeStartDate", 2);
1086
+ __decorateClass([
1087
+ Column9({ name: "duration", type: "varchar", nullable: true })
1088
+ ], Job.prototype, "duration", 2);
1089
+ __decorateClass([
1090
+ Column9({
1091
+ name: "duration_type",
1092
+ type: "enum",
1093
+ enum: DurationTypeEnum,
1094
+ nullable: true
1095
+ })
1096
+ ], Job.prototype, "durationType", 2);
1064
1097
  __decorateClass([
1065
1098
  Column9({ name: "description", type: "varchar", nullable: true })
1066
1099
  ], Job.prototype, "description", 2);
@@ -1068,10 +1101,19 @@ __decorateClass([
1068
1101
  Column9({ name: "additional_comment", type: "varchar", nullable: true })
1069
1102
  ], Job.prototype, "additionalComment", 2);
1070
1103
  __decorateClass([
1071
- Column9({ name: "onboarding_tat", type: "varchar", length: 50, nullable: true })
1104
+ Column9({
1105
+ name: "onboarding_tat",
1106
+ type: "varchar",
1107
+ length: 50,
1108
+ nullable: true
1109
+ })
1072
1110
  ], Job.prototype, "onboardingTat", 2);
1073
1111
  __decorateClass([
1074
- Column9({ name: "candidate_communication_skills", type: "varchar", nullable: true })
1112
+ Column9({
1113
+ name: "candidate_communication_skills",
1114
+ type: "varchar",
1115
+ nullable: true
1116
+ })
1075
1117
  ], Job.prototype, "candidateCommunicationSkills", 2);
1076
1118
  __decorateClass([
1077
1119
  Column9({
@@ -1093,7 +1135,9 @@ __decorateClass([
1093
1135
  OneToMany4(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
1094
1136
  ], Job.prototype, "jobSkills", 2);
1095
1137
  __decorateClass([
1096
- OneToMany4(() => JobApplication, (jobApplication) => jobApplication.job, { cascade: true })
1138
+ OneToMany4(() => JobApplication, (jobApplication) => jobApplication.job, {
1139
+ cascade: true
1140
+ })
1097
1141
  ], Job.prototype, "jobApplications", 2);
1098
1142
  Job = __decorateClass([
1099
1143
  Entity8("jobs")
@@ -1308,6 +1352,17 @@ var User = class extends BaseEntity {
1308
1352
  __decorateClass([
1309
1353
  Column14({ name: "unique_id", type: "varchar", unique: true })
1310
1354
  ], User.prototype, "uniqueId", 2);
1355
+ __decorateClass([
1356
+ Column14({ name: "parent_id", type: "integer", nullable: true }),
1357
+ Index10()
1358
+ ], User.prototype, "parentId", 2);
1359
+ __decorateClass([
1360
+ ManyToOne12(() => User, (user) => user.children, { nullable: true }),
1361
+ JoinColumn12({ name: "parent_id" })
1362
+ ], User.prototype, "parent", 2);
1363
+ __decorateClass([
1364
+ OneToMany6(() => User, (user) => user.parent)
1365
+ ], User.prototype, "children", 2);
1311
1366
  __decorateClass([
1312
1367
  Column14({ name: "username", type: "varchar", unique: true, nullable: true })
1313
1368
  ], User.prototype, "username", 2);
@@ -1472,11 +1527,11 @@ var CompanyProfile = class extends BaseEntity {
1472
1527
  // individual index to find company profile by user
1473
1528
  __decorateClass([
1474
1529
  Column15({ name: "user_id", type: "integer", nullable: true }),
1475
- Index10()
1530
+ Index11()
1476
1531
  ], CompanyProfile.prototype, "userId", 2);
1477
1532
  __decorateClass([
1478
- ManyToOne12(() => User, (user) => user.otps),
1479
- JoinColumn12({ name: "user_id" })
1533
+ ManyToOne13(() => User, (user) => user.otps),
1534
+ JoinColumn13({ name: "user_id" })
1480
1535
  ], CompanyProfile.prototype, "user", 2);
1481
1536
  __decorateClass([
1482
1537
  Column15({ name: "company_name", type: "varchar", nullable: true })
@@ -2435,6 +2490,7 @@ export {
2435
2490
  CreateQuestionDto,
2436
2491
  CreateRatingDto,
2437
2492
  CreateSubAdminDto,
2493
+ DurationTypeEnum,
2438
2494
  EmploymentType,
2439
2495
  Feature,
2440
2496
  ForgotPasswordDto,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.125",
3
+ "version": "1.0.127",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",