@experts_hub/shared 1.0.80 → 1.0.82

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,3 +9,4 @@ export * from './company-profile.entity';
9
9
  export * from './skill.entity';
10
10
  export * from './job-role.entity';
11
11
  export * from './job-entity';
12
+ export * from './job-skill.entity';
@@ -1,5 +1,6 @@
1
1
  import { BaseEntity } from "./base.entity";
2
2
  import { User } from "./user.entity";
3
+ import { JobSkill } from "./job-skill.entity";
3
4
  export declare enum JobLocation {
4
5
  ONSITE = "ONSITE",
5
6
  REMOTE = "REMOTE",
@@ -29,4 +30,5 @@ export declare class Job extends BaseEntity {
29
30
  additionalComment: string;
30
31
  description: string;
31
32
  status: JobStatus;
33
+ jobSkills: JobSkill[];
32
34
  }
@@ -0,0 +1,9 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { Job } from "./job-entity";
3
+ import { Skill } from "./skill.entity";
4
+ export declare class JobSkill extends BaseEntity {
5
+ jobId: number;
6
+ job: Job;
7
+ skillId: number;
8
+ skill: Skill;
9
+ }
@@ -1,6 +1,8 @@
1
1
  import { BaseEntity } from "./base.entity";
2
+ import { JobSkill } from "./job-skill.entity";
2
3
  export declare class Skill extends BaseEntity {
3
4
  name: string;
4
5
  slug: string;
5
6
  isActive: boolean;
7
+ jobSkills: JobSkill[];
6
8
  }
package/dist/index.d.mts CHANGED
@@ -288,6 +288,20 @@ declare class FreelancerProfile extends BaseEntity {
288
288
  portfolioLink: string;
289
289
  }
290
290
 
291
+ declare class Skill extends BaseEntity {
292
+ name: string;
293
+ slug: string;
294
+ isActive: boolean;
295
+ jobSkills: JobSkill[];
296
+ }
297
+
298
+ declare class JobSkill extends BaseEntity {
299
+ jobId: number;
300
+ job: Job;
301
+ skillId: number;
302
+ skill: Skill;
303
+ }
304
+
291
305
  declare enum JobLocation {
292
306
  ONSITE = "ONSITE",
293
307
  REMOTE = "REMOTE",
@@ -317,6 +331,7 @@ declare class Job extends BaseEntity {
317
331
  additionalComment: string;
318
332
  description: string;
319
333
  status: JobStatus;
334
+ jobSkills: JobSkill[];
320
335
  }
321
336
 
322
337
  declare enum AccountType {
@@ -518,16 +533,10 @@ declare class Question extends BaseEntity {
518
533
  isActive: boolean;
519
534
  }
520
535
 
521
- declare class Skill extends BaseEntity {
522
- name: string;
523
- slug: string;
524
- isActive: boolean;
525
- }
526
-
527
536
  declare class JobRoles extends BaseEntity {
528
537
  slug: string;
529
538
  name: string;
530
539
  isActive: boolean;
531
540
  }
532
541
 
533
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
542
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -288,6 +288,20 @@ declare class FreelancerProfile extends BaseEntity {
288
288
  portfolioLink: string;
289
289
  }
290
290
 
291
+ declare class Skill extends BaseEntity {
292
+ name: string;
293
+ slug: string;
294
+ isActive: boolean;
295
+ jobSkills: JobSkill[];
296
+ }
297
+
298
+ declare class JobSkill extends BaseEntity {
299
+ jobId: number;
300
+ job: Job;
301
+ skillId: number;
302
+ skill: Skill;
303
+ }
304
+
291
305
  declare enum JobLocation {
292
306
  ONSITE = "ONSITE",
293
307
  REMOTE = "REMOTE",
@@ -317,6 +331,7 @@ declare class Job extends BaseEntity {
317
331
  additionalComment: string;
318
332
  description: string;
319
333
  status: JobStatus;
334
+ jobSkills: JobSkill[];
320
335
  }
321
336
 
322
337
  declare enum AccountType {
@@ -518,16 +533,10 @@ declare class Question extends BaseEntity {
518
533
  isActive: boolean;
519
534
  }
520
535
 
521
- declare class Skill extends BaseEntity {
522
- name: string;
523
- slug: string;
524
- isActive: boolean;
525
- }
526
-
527
536
  declare class JobRoles extends BaseEntity {
528
537
  slug: string;
529
538
  name: string;
530
539
  isActive: boolean;
531
540
  }
532
541
 
533
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
542
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -50,6 +50,7 @@ __export(index_exports, {
50
50
  JobLocation: () => JobLocation,
51
51
  JobRMQAdapter: () => JobRMQAdapter,
52
52
  JobRoles: () => JobRoles,
53
+ JobSkill: () => JobSkill,
53
54
  JobStatus: () => JobStatus,
54
55
  JobTCPAdapter: () => JobTCPAdapter,
55
56
  KindOfHire: () => KindOfHire,
@@ -424,7 +425,7 @@ var CLIENT_PROFILE_PATTERN = {
424
425
  var import_class_validator15 = require("class-validator");
425
426
 
426
427
  // src/entities/company-profile.entity.ts
427
- var import_typeorm8 = require("typeorm");
428
+ var import_typeorm10 = require("typeorm");
428
429
 
429
430
  // src/entities/base.entity.ts
430
431
  var import_typeorm = require("typeorm");
@@ -464,7 +465,7 @@ __decorateClass([
464
465
  ], BaseEntity.prototype, "deletedAt", 2);
465
466
 
466
467
  // src/entities/user.entity.ts
467
- var import_typeorm7 = require("typeorm");
468
+ var import_typeorm9 = require("typeorm");
468
469
 
469
470
  // src/entities/refresh-token.entity.ts
470
471
  var import_typeorm2 = require("typeorm");
@@ -673,7 +674,55 @@ FreelancerProfile = __decorateClass([
673
674
  ], FreelancerProfile);
674
675
 
675
676
  // src/entities/job-entity.ts
677
+ var import_typeorm8 = require("typeorm");
678
+
679
+ // src/entities/job-skill.entity.ts
680
+ var import_typeorm7 = require("typeorm");
681
+
682
+ // src/entities/skill.entity.ts
676
683
  var import_typeorm6 = require("typeorm");
684
+ var Skill = class extends BaseEntity {
685
+ };
686
+ __decorateClass([
687
+ (0, import_typeorm6.Column)({ name: "name", type: "varchar", nullable: true })
688
+ ], Skill.prototype, "name", 2);
689
+ __decorateClass([
690
+ (0, import_typeorm6.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
691
+ ], Skill.prototype, "slug", 2);
692
+ __decorateClass([
693
+ (0, import_typeorm6.Column)({ name: "is_active", type: "boolean", default: false })
694
+ ], Skill.prototype, "isActive", 2);
695
+ __decorateClass([
696
+ (0, import_typeorm6.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.skill)
697
+ ], Skill.prototype, "jobSkills", 2);
698
+ Skill = __decorateClass([
699
+ (0, import_typeorm6.Entity)("skills")
700
+ ], Skill);
701
+
702
+ // src/entities/job-skill.entity.ts
703
+ var JobSkill = class extends BaseEntity {
704
+ };
705
+ __decorateClass([
706
+ (0, import_typeorm7.Column)({ name: "job_id", type: "integer" }),
707
+ (0, import_typeorm7.Index)()
708
+ ], JobSkill.prototype, "jobId", 2);
709
+ __decorateClass([
710
+ (0, import_typeorm7.ManyToOne)(() => Job, (job) => job.jobSkills, { onDelete: "CASCADE" }),
711
+ (0, import_typeorm7.JoinColumn)({ name: "job_id" })
712
+ ], JobSkill.prototype, "job", 2);
713
+ __decorateClass([
714
+ (0, import_typeorm7.Column)({ name: "skill_id", type: "integer" }),
715
+ (0, import_typeorm7.Index)()
716
+ ], JobSkill.prototype, "skillId", 2);
717
+ __decorateClass([
718
+ (0, import_typeorm7.ManyToOne)(() => Skill, (skill) => skill.jobSkills, { onDelete: "CASCADE" }),
719
+ (0, import_typeorm7.JoinColumn)({ name: "skill_id" })
720
+ ], JobSkill.prototype, "skill", 2);
721
+ JobSkill = __decorateClass([
722
+ (0, import_typeorm7.Entity)("job_skills")
723
+ ], JobSkill);
724
+
725
+ // src/entities/job-entity.ts
677
726
  var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
678
727
  JobLocation2["ONSITE"] = "ONSITE";
679
728
  JobLocation2["REMOTE"] = "REMOTE";
@@ -697,28 +746,28 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
697
746
  var Job = class extends BaseEntity {
698
747
  };
699
748
  __decorateClass([
700
- (0, import_typeorm6.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
749
+ (0, import_typeorm8.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
701
750
  ], Job.prototype, "jobId", 2);
702
751
  // individual index to find jobs by user
703
752
  __decorateClass([
704
- (0, import_typeorm6.Column)({ name: "user_id", type: "integer", nullable: true }),
705
- (0, import_typeorm6.Index)()
753
+ (0, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
754
+ (0, import_typeorm8.Index)()
706
755
  ], Job.prototype, "userId", 2);
707
756
  __decorateClass([
708
- (0, import_typeorm6.ManyToOne)(() => User, (user) => user.jobs),
709
- (0, import_typeorm6.JoinColumn)({ name: "user_id" })
757
+ (0, import_typeorm8.ManyToOne)(() => User, (user) => user.jobs),
758
+ (0, import_typeorm8.JoinColumn)({ name: "user_id" })
710
759
  ], Job.prototype, "user", 2);
711
760
  __decorateClass([
712
- (0, import_typeorm6.Column)({ name: "job_role", type: "varchar", nullable: true })
761
+ (0, import_typeorm8.Column)({ name: "job_role", type: "varchar", nullable: true })
713
762
  ], Job.prototype, "jobRole", 2);
714
763
  __decorateClass([
715
- (0, import_typeorm6.Column)({ name: "note", type: "varchar", nullable: true })
764
+ (0, import_typeorm8.Column)({ name: "note", type: "varchar", nullable: true })
716
765
  ], Job.prototype, "note", 2);
717
766
  __decorateClass([
718
- (0, import_typeorm6.Column)({ name: "openings", type: "integer", default: 0 })
767
+ (0, import_typeorm8.Column)({ name: "openings", type: "integer", default: 0 })
719
768
  ], Job.prototype, "openings", 2);
720
769
  __decorateClass([
721
- (0, import_typeorm6.Column)({
770
+ (0, import_typeorm8.Column)({
722
771
  name: "location",
723
772
  type: "enum",
724
773
  enum: JobLocation,
@@ -726,7 +775,7 @@ __decorateClass([
726
775
  })
727
776
  ], Job.prototype, "location", 2);
728
777
  __decorateClass([
729
- (0, import_typeorm6.Column)({
778
+ (0, import_typeorm8.Column)({
730
779
  name: "type_of_employment",
731
780
  type: "enum",
732
781
  enum: TypeOfEmployment,
@@ -734,21 +783,24 @@ __decorateClass([
734
783
  })
735
784
  ], Job.prototype, "typeOfEmployment", 2);
736
785
  __decorateClass([
737
- (0, import_typeorm6.Column)({ name: "additional_comment", type: "varchar", nullable: true })
786
+ (0, import_typeorm8.Column)({ name: "additional_comment", type: "varchar", nullable: true })
738
787
  ], Job.prototype, "additionalComment", 2);
739
788
  __decorateClass([
740
- (0, import_typeorm6.Column)({ name: "description", type: "varchar", nullable: true })
789
+ (0, import_typeorm8.Column)({ name: "description", type: "varchar", nullable: true })
741
790
  ], Job.prototype, "description", 2);
742
791
  __decorateClass([
743
- (0, import_typeorm6.Column)({
792
+ (0, import_typeorm8.Column)({
744
793
  name: "status",
745
794
  type: "enum",
746
795
  enum: JobStatus,
747
796
  default: "DRAFT" /* DRAFT */
748
797
  })
749
798
  ], Job.prototype, "status", 2);
799
+ __decorateClass([
800
+ (0, import_typeorm8.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
801
+ ], Job.prototype, "jobSkills", 2);
750
802
  Job = __decorateClass([
751
- (0, import_typeorm6.Entity)("jobs")
803
+ (0, import_typeorm8.Entity)("jobs")
752
804
  ], Job);
753
805
 
754
806
  // src/entities/user.entity.ts
@@ -769,40 +821,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
769
821
  var User = class extends BaseEntity {
770
822
  };
771
823
  __decorateClass([
772
- (0, import_typeorm7.Column)({ name: "unique_id", type: "varchar", unique: true })
824
+ (0, import_typeorm9.Column)({ name: "unique_id", type: "varchar", unique: true })
773
825
  ], User.prototype, "uniqueId", 2);
774
826
  __decorateClass([
775
- (0, import_typeorm7.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
827
+ (0, import_typeorm9.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
776
828
  ], User.prototype, "username", 2);
777
829
  __decorateClass([
778
- (0, import_typeorm7.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
830
+ (0, import_typeorm9.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
779
831
  ], User.prototype, "firstName", 2);
780
832
  __decorateClass([
781
- (0, import_typeorm7.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
833
+ (0, import_typeorm9.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
782
834
  ], User.prototype, "lastName", 2);
783
835
  __decorateClass([
784
- (0, import_typeorm7.Column)({ name: "date_of_birth", type: "date", nullable: true })
836
+ (0, import_typeorm9.Column)({ name: "date_of_birth", type: "date", nullable: true })
785
837
  ], User.prototype, "dateOfBirth", 2);
786
838
  __decorateClass([
787
- (0, import_typeorm7.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
839
+ (0, import_typeorm9.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
788
840
  ], User.prototype, "gender", 2);
789
841
  __decorateClass([
790
- (0, import_typeorm7.Column)({ name: "profile_picture_url", type: "text", nullable: true })
842
+ (0, import_typeorm9.Column)({ name: "profile_picture_url", type: "text", nullable: true })
791
843
  ], User.prototype, "profilePictureUrl", 2);
792
844
  __decorateClass([
793
- (0, import_typeorm7.Column)({ name: "email", type: "varchar", unique: true })
845
+ (0, import_typeorm9.Column)({ name: "email", type: "varchar", unique: true })
794
846
  ], User.prototype, "email", 2);
795
847
  __decorateClass([
796
- (0, import_typeorm7.Column)({ name: "mobile_code", type: "varchar", nullable: true })
848
+ (0, import_typeorm9.Column)({ name: "mobile_code", type: "varchar", nullable: true })
797
849
  ], User.prototype, "mobileCode", 2);
798
850
  __decorateClass([
799
- (0, import_typeorm7.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
851
+ (0, import_typeorm9.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
800
852
  ], User.prototype, "mobile", 2);
801
853
  __decorateClass([
802
- (0, import_typeorm7.Column)({ name: "password", type: "varchar" })
854
+ (0, import_typeorm9.Column)({ name: "password", type: "varchar" })
803
855
  ], User.prototype, "password", 2);
804
856
  __decorateClass([
805
- (0, import_typeorm7.Column)({
857
+ (0, import_typeorm9.Column)({
806
858
  name: "account_type",
807
859
  type: "enum",
808
860
  enum: AccountType,
@@ -810,7 +862,7 @@ __decorateClass([
810
862
  })
811
863
  ], User.prototype, "accountType", 2);
812
864
  __decorateClass([
813
- (0, import_typeorm7.Column)({
865
+ (0, import_typeorm9.Column)({
814
866
  name: "account_status",
815
867
  type: "enum",
816
868
  enum: AccountStatus,
@@ -818,44 +870,44 @@ __decorateClass([
818
870
  })
819
871
  ], User.prototype, "accountStatus", 2);
820
872
  __decorateClass([
821
- (0, import_typeorm7.Column)({ name: "is_email_verified", type: "boolean", default: false })
873
+ (0, import_typeorm9.Column)({ name: "is_email_verified", type: "boolean", default: false })
822
874
  ], User.prototype, "isEmailVerified", 2);
823
875
  __decorateClass([
824
- (0, import_typeorm7.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
876
+ (0, import_typeorm9.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
825
877
  ], User.prototype, "isMobileVerified", 2);
826
878
  __decorateClass([
827
- (0, import_typeorm7.Column)({
879
+ (0, import_typeorm9.Column)({
828
880
  name: "last_login_at",
829
881
  type: "timestamp with time zone",
830
882
  nullable: true
831
883
  })
832
884
  ], User.prototype, "lastLoginAt", 2);
833
885
  __decorateClass([
834
- (0, import_typeorm7.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
886
+ (0, import_typeorm9.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
835
887
  ], User.prototype, "lastLoginIp", 2);
836
888
  __decorateClass([
837
- (0, import_typeorm7.OneToMany)(() => RefreshToken, (token) => token.user)
889
+ (0, import_typeorm9.OneToMany)(() => RefreshToken, (token) => token.user)
838
890
  ], User.prototype, "refreshTokens", 2);
839
891
  __decorateClass([
840
- (0, import_typeorm7.OneToMany)(() => Otp, (otp) => otp.user)
892
+ (0, import_typeorm9.OneToMany)(() => Otp, (otp) => otp.user)
841
893
  ], User.prototype, "otps", 2);
842
894
  __decorateClass([
843
- (0, import_typeorm7.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
895
+ (0, import_typeorm9.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
844
896
  ], User.prototype, "resumeParserLogs", 2);
845
897
  __decorateClass([
846
- (0, import_typeorm7.OneToOne)(
898
+ (0, import_typeorm9.OneToOne)(
847
899
  () => FreelancerProfile,
848
900
  (freelancerProfile) => freelancerProfile.user
849
901
  )
850
902
  ], User.prototype, "freelancerProfile", 2);
851
903
  __decorateClass([
852
- (0, import_typeorm7.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
904
+ (0, import_typeorm9.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
853
905
  ], User.prototype, "companyProfile", 2);
854
906
  __decorateClass([
855
- (0, import_typeorm7.OneToMany)(() => Job, (job) => job.user)
907
+ (0, import_typeorm9.OneToMany)(() => Job, (job) => job.user)
856
908
  ], User.prototype, "jobs", 2);
857
909
  User = __decorateClass([
858
- (0, import_typeorm7.Entity)("users")
910
+ (0, import_typeorm9.Entity)("users")
859
911
  ], User);
860
912
 
861
913
  // src/entities/company-profile.entity.ts
@@ -882,42 +934,42 @@ var CompanyProfile = class extends BaseEntity {
882
934
  };
883
935
  // individual index to find company profile by user
884
936
  __decorateClass([
885
- (0, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
886
- (0, import_typeorm8.Index)()
937
+ (0, import_typeorm10.Column)({ name: "user_id", type: "integer", nullable: true }),
938
+ (0, import_typeorm10.Index)()
887
939
  ], CompanyProfile.prototype, "userId", 2);
888
940
  __decorateClass([
889
- (0, import_typeorm8.ManyToOne)(() => User, (user) => user.otps),
890
- (0, import_typeorm8.JoinColumn)({ name: "user_id" })
941
+ (0, import_typeorm10.ManyToOne)(() => User, (user) => user.otps),
942
+ (0, import_typeorm10.JoinColumn)({ name: "user_id" })
891
943
  ], CompanyProfile.prototype, "user", 2);
892
944
  __decorateClass([
893
- (0, import_typeorm8.Column)({ name: "company_name", type: "varchar", nullable: true })
945
+ (0, import_typeorm10.Column)({ name: "company_name", type: "varchar", nullable: true })
894
946
  ], CompanyProfile.prototype, "companyName", 2);
895
947
  __decorateClass([
896
- (0, import_typeorm8.Column)({ name: "bio", type: "varchar", nullable: true })
948
+ (0, import_typeorm10.Column)({ name: "bio", type: "varchar", nullable: true })
897
949
  ], CompanyProfile.prototype, "bio", 2);
898
950
  __decorateClass([
899
- (0, import_typeorm8.Column)({ name: "website", type: "varchar", nullable: true })
951
+ (0, import_typeorm10.Column)({ name: "website", type: "varchar", nullable: true })
900
952
  ], CompanyProfile.prototype, "webSite", 2);
901
953
  __decorateClass([
902
- (0, import_typeorm8.Column)({ name: "about_company", type: "varchar", nullable: true })
954
+ (0, import_typeorm10.Column)({ name: "about_company", type: "varchar", nullable: true })
903
955
  ], CompanyProfile.prototype, "aboutCompany", 2);
904
956
  __decorateClass([
905
- (0, import_typeorm8.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
957
+ (0, import_typeorm10.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
906
958
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
907
959
  __decorateClass([
908
- (0, import_typeorm8.Column)({ name: "company_address", type: "varchar", nullable: true })
960
+ (0, import_typeorm10.Column)({ name: "company_address", type: "varchar", nullable: true })
909
961
  ], CompanyProfile.prototype, "companyAddress", 2);
910
962
  __decorateClass([
911
- (0, import_typeorm8.Column)({ name: "phone_number", type: "varchar", nullable: true })
963
+ (0, import_typeorm10.Column)({ name: "phone_number", type: "varchar", nullable: true })
912
964
  ], CompanyProfile.prototype, "phoneNumber", 2);
913
965
  __decorateClass([
914
- (0, import_typeorm8.Column)({ name: "skills", type: "text", nullable: true })
966
+ (0, import_typeorm10.Column)({ name: "skills", type: "text", nullable: true })
915
967
  ], CompanyProfile.prototype, "skills", 2);
916
968
  __decorateClass([
917
- (0, import_typeorm8.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
969
+ (0, import_typeorm10.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
918
970
  ], CompanyProfile.prototype, "requiredFreelancer", 2);
919
971
  __decorateClass([
920
- (0, import_typeorm8.Column)({
972
+ (0, import_typeorm10.Column)({
921
973
  name: "kind_of_hiring",
922
974
  type: "enum",
923
975
  enum: KindOfHire,
@@ -925,7 +977,7 @@ __decorateClass([
925
977
  })
926
978
  ], CompanyProfile.prototype, "kindOfHiring", 2);
927
979
  __decorateClass([
928
- (0, import_typeorm8.Column)({
980
+ (0, import_typeorm10.Column)({
929
981
  name: "mode_of_hire",
930
982
  type: "enum",
931
983
  enum: ModeOfHire,
@@ -933,7 +985,7 @@ __decorateClass([
933
985
  })
934
986
  ], CompanyProfile.prototype, "modeOfHire", 2);
935
987
  __decorateClass([
936
- (0, import_typeorm8.Column)({
988
+ (0, import_typeorm10.Column)({
937
989
  name: "found_us_on",
938
990
  type: "enum",
939
991
  enum: FromUsOn,
@@ -941,7 +993,7 @@ __decorateClass([
941
993
  })
942
994
  ], CompanyProfile.prototype, "foundUsOn", 2);
943
995
  CompanyProfile = __decorateClass([
944
- (0, import_typeorm8.Entity)("company_profiles")
996
+ (0, import_typeorm10.Entity)("company_profiles")
945
997
  ], CompanyProfile);
946
998
 
947
999
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -1201,7 +1253,7 @@ var JobRMQAdapter = (mode = "microservice") => {
1201
1253
  };
1202
1254
 
1203
1255
  // src/entities/question.entity.ts
1204
- var import_typeorm9 = require("typeorm");
1256
+ var import_typeorm11 = require("typeorm");
1205
1257
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1206
1258
  QuestionFor2["CLIENT"] = "CLIENT";
1207
1259
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -1210,16 +1262,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1210
1262
  var Question = class extends BaseEntity {
1211
1263
  };
1212
1264
  __decorateClass([
1213
- (0, import_typeorm9.Column)({ name: "question", type: "varchar" })
1265
+ (0, import_typeorm11.Column)({ name: "question", type: "varchar" })
1214
1266
  ], Question.prototype, "question", 2);
1215
1267
  __decorateClass([
1216
- (0, import_typeorm9.Column)({ name: "hint", type: "varchar", nullable: true })
1268
+ (0, import_typeorm11.Column)({ name: "hint", type: "varchar", nullable: true })
1217
1269
  ], Question.prototype, "hint", 2);
1218
1270
  __decorateClass([
1219
- (0, import_typeorm9.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1271
+ (0, import_typeorm11.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1220
1272
  ], Question.prototype, "slug", 2);
1221
1273
  __decorateClass([
1222
- (0, import_typeorm9.Column)({
1274
+ (0, import_typeorm11.Column)({
1223
1275
  name: "question_for",
1224
1276
  type: "enum",
1225
1277
  enum: QuestionFor,
@@ -1227,50 +1279,33 @@ __decorateClass([
1227
1279
  })
1228
1280
  ], Question.prototype, "questionFor", 2);
1229
1281
  __decorateClass([
1230
- (0, import_typeorm9.Column)({ name: "type", type: "varchar", nullable: true })
1282
+ (0, import_typeorm11.Column)({ name: "type", type: "varchar", nullable: true })
1231
1283
  ], Question.prototype, "type", 2);
1232
1284
  __decorateClass([
1233
- (0, import_typeorm9.Column)({ name: "options", type: "jsonb", nullable: true })
1285
+ (0, import_typeorm11.Column)({ name: "options", type: "jsonb", nullable: true })
1234
1286
  ], Question.prototype, "options", 2);
1235
1287
  __decorateClass([
1236
- (0, import_typeorm9.Column)({ name: "is_active", type: "boolean", default: false })
1288
+ (0, import_typeorm11.Column)({ name: "is_active", type: "boolean", default: false })
1237
1289
  ], Question.prototype, "isActive", 2);
1238
1290
  Question = __decorateClass([
1239
- (0, import_typeorm9.Entity)("questions")
1291
+ (0, import_typeorm11.Entity)("questions")
1240
1292
  ], Question);
1241
1293
 
1242
- // src/entities/skill.entity.ts
1243
- var import_typeorm10 = require("typeorm");
1244
- var Skill = class extends BaseEntity {
1245
- };
1246
- __decorateClass([
1247
- (0, import_typeorm10.Column)({ name: "name", type: "varchar", nullable: true })
1248
- ], Skill.prototype, "name", 2);
1249
- __decorateClass([
1250
- (0, import_typeorm10.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1251
- ], Skill.prototype, "slug", 2);
1252
- __decorateClass([
1253
- (0, import_typeorm10.Column)({ name: "is_active", type: "boolean", default: false })
1254
- ], Skill.prototype, "isActive", 2);
1255
- Skill = __decorateClass([
1256
- (0, import_typeorm10.Entity)("skills")
1257
- ], Skill);
1258
-
1259
1294
  // src/entities/job-role.entity.ts
1260
- var import_typeorm11 = require("typeorm");
1295
+ var import_typeorm12 = require("typeorm");
1261
1296
  var JobRoles = class extends BaseEntity {
1262
1297
  };
1263
1298
  __decorateClass([
1264
- (0, import_typeorm11.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1299
+ (0, import_typeorm12.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1265
1300
  ], JobRoles.prototype, "slug", 2);
1266
1301
  __decorateClass([
1267
- (0, import_typeorm11.Column)({ name: "name", type: "varchar", nullable: true })
1302
+ (0, import_typeorm12.Column)({ name: "name", type: "varchar", nullable: true })
1268
1303
  ], JobRoles.prototype, "name", 2);
1269
1304
  __decorateClass([
1270
- (0, import_typeorm11.Column)({ name: "is_active", type: "boolean", default: true })
1305
+ (0, import_typeorm12.Column)({ name: "is_active", type: "boolean", default: true })
1271
1306
  ], JobRoles.prototype, "isActive", 2);
1272
1307
  JobRoles = __decorateClass([
1273
- (0, import_typeorm11.Entity)("job_roles")
1308
+ (0, import_typeorm12.Entity)("job_roles")
1274
1309
  ], JobRoles);
1275
1310
  // Annotate the CommonJS export names for ESM import in node:
1276
1311
  0 && (module.exports = {
@@ -1297,6 +1332,7 @@ JobRoles = __decorateClass([
1297
1332
  JobLocation,
1298
1333
  JobRMQAdapter,
1299
1334
  JobRoles,
1335
+ JobSkill,
1300
1336
  JobStatus,
1301
1337
  JobTCPAdapter,
1302
1338
  KindOfHire,
package/dist/index.mjs CHANGED
@@ -399,11 +399,11 @@ import {
399
399
 
400
400
  // src/entities/company-profile.entity.ts
401
401
  import {
402
- Entity as Entity7,
403
- Column as Column8,
404
- ManyToOne as ManyToOne6,
405
- JoinColumn as JoinColumn6,
406
- Index as Index4
402
+ Entity as Entity9,
403
+ Column as Column10,
404
+ ManyToOne as ManyToOne7,
405
+ JoinColumn as JoinColumn7,
406
+ Index as Index5
407
407
  } from "typeorm";
408
408
 
409
409
  // src/entities/base.entity.ts
@@ -451,7 +451,7 @@ __decorateClass([
451
451
  ], BaseEntity.prototype, "deletedAt", 2);
452
452
 
453
453
  // src/entities/user.entity.ts
454
- import { Entity as Entity6, Column as Column7, OneToMany as OneToMany2, OneToOne } from "typeorm";
454
+ import { Entity as Entity8, Column as Column9, OneToMany as OneToMany4, OneToOne } from "typeorm";
455
455
 
456
456
  // src/entities/refresh-token.entity.ts
457
457
  import {
@@ -689,7 +689,55 @@ FreelancerProfile = __decorateClass([
689
689
  ], FreelancerProfile);
690
690
 
691
691
  // src/entities/job-entity.ts
692
- import { Entity as Entity5, Column as Column6, Index as Index3, ManyToOne as ManyToOne5, JoinColumn as JoinColumn5 } from "typeorm";
692
+ import { Entity as Entity7, Column as Column8, Index as Index4, ManyToOne as ManyToOne6, JoinColumn as JoinColumn6, OneToMany as OneToMany3 } from "typeorm";
693
+
694
+ // src/entities/job-skill.entity.ts
695
+ import { Entity as Entity6, Column as Column7, Index as Index3, ManyToOne as ManyToOne5, JoinColumn as JoinColumn5 } from "typeorm";
696
+
697
+ // src/entities/skill.entity.ts
698
+ import { Entity as Entity5, Column as Column6, OneToMany as OneToMany2 } from "typeorm";
699
+ var Skill = class extends BaseEntity {
700
+ };
701
+ __decorateClass([
702
+ Column6({ name: "name", type: "varchar", nullable: true })
703
+ ], Skill.prototype, "name", 2);
704
+ __decorateClass([
705
+ Column6({ name: "slug", type: "varchar", nullable: true, unique: true })
706
+ ], Skill.prototype, "slug", 2);
707
+ __decorateClass([
708
+ Column6({ name: "is_active", type: "boolean", default: false })
709
+ ], Skill.prototype, "isActive", 2);
710
+ __decorateClass([
711
+ OneToMany2(() => JobSkill, (jobSkill) => jobSkill.skill)
712
+ ], Skill.prototype, "jobSkills", 2);
713
+ Skill = __decorateClass([
714
+ Entity5("skills")
715
+ ], Skill);
716
+
717
+ // src/entities/job-skill.entity.ts
718
+ var JobSkill = class extends BaseEntity {
719
+ };
720
+ __decorateClass([
721
+ Column7({ name: "job_id", type: "integer" }),
722
+ Index3()
723
+ ], JobSkill.prototype, "jobId", 2);
724
+ __decorateClass([
725
+ ManyToOne5(() => Job, (job) => job.jobSkills, { onDelete: "CASCADE" }),
726
+ JoinColumn5({ name: "job_id" })
727
+ ], JobSkill.prototype, "job", 2);
728
+ __decorateClass([
729
+ Column7({ name: "skill_id", type: "integer" }),
730
+ Index3()
731
+ ], JobSkill.prototype, "skillId", 2);
732
+ __decorateClass([
733
+ ManyToOne5(() => Skill, (skill) => skill.jobSkills, { onDelete: "CASCADE" }),
734
+ JoinColumn5({ name: "skill_id" })
735
+ ], JobSkill.prototype, "skill", 2);
736
+ JobSkill = __decorateClass([
737
+ Entity6("job_skills")
738
+ ], JobSkill);
739
+
740
+ // src/entities/job-entity.ts
693
741
  var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
694
742
  JobLocation2["ONSITE"] = "ONSITE";
695
743
  JobLocation2["REMOTE"] = "REMOTE";
@@ -713,28 +761,28 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
713
761
  var Job = class extends BaseEntity {
714
762
  };
715
763
  __decorateClass([
716
- Column6({ name: "job_id", type: "varchar", unique: true, nullable: true })
764
+ Column8({ name: "job_id", type: "varchar", unique: true, nullable: true })
717
765
  ], Job.prototype, "jobId", 2);
718
766
  // individual index to find jobs by user
719
767
  __decorateClass([
720
- Column6({ name: "user_id", type: "integer", nullable: true }),
721
- Index3()
768
+ Column8({ name: "user_id", type: "integer", nullable: true }),
769
+ Index4()
722
770
  ], Job.prototype, "userId", 2);
723
771
  __decorateClass([
724
- ManyToOne5(() => User, (user) => user.jobs),
725
- JoinColumn5({ name: "user_id" })
772
+ ManyToOne6(() => User, (user) => user.jobs),
773
+ JoinColumn6({ name: "user_id" })
726
774
  ], Job.prototype, "user", 2);
727
775
  __decorateClass([
728
- Column6({ name: "job_role", type: "varchar", nullable: true })
776
+ Column8({ name: "job_role", type: "varchar", nullable: true })
729
777
  ], Job.prototype, "jobRole", 2);
730
778
  __decorateClass([
731
- Column6({ name: "note", type: "varchar", nullable: true })
779
+ Column8({ name: "note", type: "varchar", nullable: true })
732
780
  ], Job.prototype, "note", 2);
733
781
  __decorateClass([
734
- Column6({ name: "openings", type: "integer", default: 0 })
782
+ Column8({ name: "openings", type: "integer", default: 0 })
735
783
  ], Job.prototype, "openings", 2);
736
784
  __decorateClass([
737
- Column6({
785
+ Column8({
738
786
  name: "location",
739
787
  type: "enum",
740
788
  enum: JobLocation,
@@ -742,7 +790,7 @@ __decorateClass([
742
790
  })
743
791
  ], Job.prototype, "location", 2);
744
792
  __decorateClass([
745
- Column6({
793
+ Column8({
746
794
  name: "type_of_employment",
747
795
  type: "enum",
748
796
  enum: TypeOfEmployment,
@@ -750,21 +798,24 @@ __decorateClass([
750
798
  })
751
799
  ], Job.prototype, "typeOfEmployment", 2);
752
800
  __decorateClass([
753
- Column6({ name: "additional_comment", type: "varchar", nullable: true })
801
+ Column8({ name: "additional_comment", type: "varchar", nullable: true })
754
802
  ], Job.prototype, "additionalComment", 2);
755
803
  __decorateClass([
756
- Column6({ name: "description", type: "varchar", nullable: true })
804
+ Column8({ name: "description", type: "varchar", nullable: true })
757
805
  ], Job.prototype, "description", 2);
758
806
  __decorateClass([
759
- Column6({
807
+ Column8({
760
808
  name: "status",
761
809
  type: "enum",
762
810
  enum: JobStatus,
763
811
  default: "DRAFT" /* DRAFT */
764
812
  })
765
813
  ], Job.prototype, "status", 2);
814
+ __decorateClass([
815
+ OneToMany3(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
816
+ ], Job.prototype, "jobSkills", 2);
766
817
  Job = __decorateClass([
767
- Entity5("jobs")
818
+ Entity7("jobs")
768
819
  ], Job);
769
820
 
770
821
  // src/entities/user.entity.ts
@@ -785,40 +836,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
785
836
  var User = class extends BaseEntity {
786
837
  };
787
838
  __decorateClass([
788
- Column7({ name: "unique_id", type: "varchar", unique: true })
839
+ Column9({ name: "unique_id", type: "varchar", unique: true })
789
840
  ], User.prototype, "uniqueId", 2);
790
841
  __decorateClass([
791
- Column7({ name: "username", type: "varchar", unique: true, nullable: true })
842
+ Column9({ name: "username", type: "varchar", unique: true, nullable: true })
792
843
  ], User.prototype, "username", 2);
793
844
  __decorateClass([
794
- Column7({ name: "first_name", type: "varchar", length: 100, nullable: true })
845
+ Column9({ name: "first_name", type: "varchar", length: 100, nullable: true })
795
846
  ], User.prototype, "firstName", 2);
796
847
  __decorateClass([
797
- Column7({ name: "last_name", type: "varchar", length: 100, nullable: true })
848
+ Column9({ name: "last_name", type: "varchar", length: 100, nullable: true })
798
849
  ], User.prototype, "lastName", 2);
799
850
  __decorateClass([
800
- Column7({ name: "date_of_birth", type: "date", nullable: true })
851
+ Column9({ name: "date_of_birth", type: "date", nullable: true })
801
852
  ], User.prototype, "dateOfBirth", 2);
802
853
  __decorateClass([
803
- Column7({ name: "gender", type: "varchar", length: 10, nullable: true })
854
+ Column9({ name: "gender", type: "varchar", length: 10, nullable: true })
804
855
  ], User.prototype, "gender", 2);
805
856
  __decorateClass([
806
- Column7({ name: "profile_picture_url", type: "text", nullable: true })
857
+ Column9({ name: "profile_picture_url", type: "text", nullable: true })
807
858
  ], User.prototype, "profilePictureUrl", 2);
808
859
  __decorateClass([
809
- Column7({ name: "email", type: "varchar", unique: true })
860
+ Column9({ name: "email", type: "varchar", unique: true })
810
861
  ], User.prototype, "email", 2);
811
862
  __decorateClass([
812
- Column7({ name: "mobile_code", type: "varchar", nullable: true })
863
+ Column9({ name: "mobile_code", type: "varchar", nullable: true })
813
864
  ], User.prototype, "mobileCode", 2);
814
865
  __decorateClass([
815
- Column7({ name: "mobile", type: "varchar", unique: true, nullable: true })
866
+ Column9({ name: "mobile", type: "varchar", unique: true, nullable: true })
816
867
  ], User.prototype, "mobile", 2);
817
868
  __decorateClass([
818
- Column7({ name: "password", type: "varchar" })
869
+ Column9({ name: "password", type: "varchar" })
819
870
  ], User.prototype, "password", 2);
820
871
  __decorateClass([
821
- Column7({
872
+ Column9({
822
873
  name: "account_type",
823
874
  type: "enum",
824
875
  enum: AccountType,
@@ -826,7 +877,7 @@ __decorateClass([
826
877
  })
827
878
  ], User.prototype, "accountType", 2);
828
879
  __decorateClass([
829
- Column7({
880
+ Column9({
830
881
  name: "account_status",
831
882
  type: "enum",
832
883
  enum: AccountStatus,
@@ -834,29 +885,29 @@ __decorateClass([
834
885
  })
835
886
  ], User.prototype, "accountStatus", 2);
836
887
  __decorateClass([
837
- Column7({ name: "is_email_verified", type: "boolean", default: false })
888
+ Column9({ name: "is_email_verified", type: "boolean", default: false })
838
889
  ], User.prototype, "isEmailVerified", 2);
839
890
  __decorateClass([
840
- Column7({ name: "is_mobile_verified", type: "boolean", default: false })
891
+ Column9({ name: "is_mobile_verified", type: "boolean", default: false })
841
892
  ], User.prototype, "isMobileVerified", 2);
842
893
  __decorateClass([
843
- Column7({
894
+ Column9({
844
895
  name: "last_login_at",
845
896
  type: "timestamp with time zone",
846
897
  nullable: true
847
898
  })
848
899
  ], User.prototype, "lastLoginAt", 2);
849
900
  __decorateClass([
850
- Column7({ name: "last_login_ip", type: "varchar", nullable: true })
901
+ Column9({ name: "last_login_ip", type: "varchar", nullable: true })
851
902
  ], User.prototype, "lastLoginIp", 2);
852
903
  __decorateClass([
853
- OneToMany2(() => RefreshToken, (token) => token.user)
904
+ OneToMany4(() => RefreshToken, (token) => token.user)
854
905
  ], User.prototype, "refreshTokens", 2);
855
906
  __decorateClass([
856
- OneToMany2(() => Otp, (otp) => otp.user)
907
+ OneToMany4(() => Otp, (otp) => otp.user)
857
908
  ], User.prototype, "otps", 2);
858
909
  __decorateClass([
859
- OneToMany2(() => ResumeParserLog, (resumeParser) => resumeParser.user)
910
+ OneToMany4(() => ResumeParserLog, (resumeParser) => resumeParser.user)
860
911
  ], User.prototype, "resumeParserLogs", 2);
861
912
  __decorateClass([
862
913
  OneToOne(
@@ -868,10 +919,10 @@ __decorateClass([
868
919
  OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user)
869
920
  ], User.prototype, "companyProfile", 2);
870
921
  __decorateClass([
871
- OneToMany2(() => Job, (job) => job.user)
922
+ OneToMany4(() => Job, (job) => job.user)
872
923
  ], User.prototype, "jobs", 2);
873
924
  User = __decorateClass([
874
- Entity6("users")
925
+ Entity8("users")
875
926
  ], User);
876
927
 
877
928
  // src/entities/company-profile.entity.ts
@@ -898,42 +949,42 @@ var CompanyProfile = class extends BaseEntity {
898
949
  };
899
950
  // individual index to find company profile by user
900
951
  __decorateClass([
901
- Column8({ name: "user_id", type: "integer", nullable: true }),
902
- Index4()
952
+ Column10({ name: "user_id", type: "integer", nullable: true }),
953
+ Index5()
903
954
  ], CompanyProfile.prototype, "userId", 2);
904
955
  __decorateClass([
905
- ManyToOne6(() => User, (user) => user.otps),
906
- JoinColumn6({ name: "user_id" })
956
+ ManyToOne7(() => User, (user) => user.otps),
957
+ JoinColumn7({ name: "user_id" })
907
958
  ], CompanyProfile.prototype, "user", 2);
908
959
  __decorateClass([
909
- Column8({ name: "company_name", type: "varchar", nullable: true })
960
+ Column10({ name: "company_name", type: "varchar", nullable: true })
910
961
  ], CompanyProfile.prototype, "companyName", 2);
911
962
  __decorateClass([
912
- Column8({ name: "bio", type: "varchar", nullable: true })
963
+ Column10({ name: "bio", type: "varchar", nullable: true })
913
964
  ], CompanyProfile.prototype, "bio", 2);
914
965
  __decorateClass([
915
- Column8({ name: "website", type: "varchar", nullable: true })
966
+ Column10({ name: "website", type: "varchar", nullable: true })
916
967
  ], CompanyProfile.prototype, "webSite", 2);
917
968
  __decorateClass([
918
- Column8({ name: "about_company", type: "varchar", nullable: true })
969
+ Column10({ name: "about_company", type: "varchar", nullable: true })
919
970
  ], CompanyProfile.prototype, "aboutCompany", 2);
920
971
  __decorateClass([
921
- Column8({ name: "is_service_aggrement_signed", type: "boolean", default: false })
972
+ Column10({ name: "is_service_aggrement_signed", type: "boolean", default: false })
922
973
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
923
974
  __decorateClass([
924
- Column8({ name: "company_address", type: "varchar", nullable: true })
975
+ Column10({ name: "company_address", type: "varchar", nullable: true })
925
976
  ], CompanyProfile.prototype, "companyAddress", 2);
926
977
  __decorateClass([
927
- Column8({ name: "phone_number", type: "varchar", nullable: true })
978
+ Column10({ name: "phone_number", type: "varchar", nullable: true })
928
979
  ], CompanyProfile.prototype, "phoneNumber", 2);
929
980
  __decorateClass([
930
- Column8({ name: "skills", type: "text", nullable: true })
981
+ Column10({ name: "skills", type: "text", nullable: true })
931
982
  ], CompanyProfile.prototype, "skills", 2);
932
983
  __decorateClass([
933
- Column8({ name: "required_freelancer", type: "varchar", nullable: true })
984
+ Column10({ name: "required_freelancer", type: "varchar", nullable: true })
934
985
  ], CompanyProfile.prototype, "requiredFreelancer", 2);
935
986
  __decorateClass([
936
- Column8({
987
+ Column10({
937
988
  name: "kind_of_hiring",
938
989
  type: "enum",
939
990
  enum: KindOfHire,
@@ -941,7 +992,7 @@ __decorateClass([
941
992
  })
942
993
  ], CompanyProfile.prototype, "kindOfHiring", 2);
943
994
  __decorateClass([
944
- Column8({
995
+ Column10({
945
996
  name: "mode_of_hire",
946
997
  type: "enum",
947
998
  enum: ModeOfHire,
@@ -949,7 +1000,7 @@ __decorateClass([
949
1000
  })
950
1001
  ], CompanyProfile.prototype, "modeOfHire", 2);
951
1002
  __decorateClass([
952
- Column8({
1003
+ Column10({
953
1004
  name: "found_us_on",
954
1005
  type: "enum",
955
1006
  enum: FromUsOn,
@@ -957,7 +1008,7 @@ __decorateClass([
957
1008
  })
958
1009
  ], CompanyProfile.prototype, "foundUsOn", 2);
959
1010
  CompanyProfile = __decorateClass([
960
- Entity7("company_profiles")
1011
+ Entity9("company_profiles")
961
1012
  ], CompanyProfile);
962
1013
 
963
1014
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -1227,7 +1278,7 @@ var JobRMQAdapter = (mode = "microservice") => {
1227
1278
  };
1228
1279
 
1229
1280
  // src/entities/question.entity.ts
1230
- import { Entity as Entity8, Column as Column9 } from "typeorm";
1281
+ import { Entity as Entity10, Column as Column11 } from "typeorm";
1231
1282
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1232
1283
  QuestionFor2["CLIENT"] = "CLIENT";
1233
1284
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -1236,16 +1287,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1236
1287
  var Question = class extends BaseEntity {
1237
1288
  };
1238
1289
  __decorateClass([
1239
- Column9({ name: "question", type: "varchar" })
1290
+ Column11({ name: "question", type: "varchar" })
1240
1291
  ], Question.prototype, "question", 2);
1241
1292
  __decorateClass([
1242
- Column9({ name: "hint", type: "varchar", nullable: true })
1293
+ Column11({ name: "hint", type: "varchar", nullable: true })
1243
1294
  ], Question.prototype, "hint", 2);
1244
1295
  __decorateClass([
1245
- Column9({ name: "slug", type: "varchar", nullable: true, unique: true })
1296
+ Column11({ name: "slug", type: "varchar", nullable: true, unique: true })
1246
1297
  ], Question.prototype, "slug", 2);
1247
1298
  __decorateClass([
1248
- Column9({
1299
+ Column11({
1249
1300
  name: "question_for",
1250
1301
  type: "enum",
1251
1302
  enum: QuestionFor,
@@ -1253,50 +1304,33 @@ __decorateClass([
1253
1304
  })
1254
1305
  ], Question.prototype, "questionFor", 2);
1255
1306
  __decorateClass([
1256
- Column9({ name: "type", type: "varchar", nullable: true })
1307
+ Column11({ name: "type", type: "varchar", nullable: true })
1257
1308
  ], Question.prototype, "type", 2);
1258
1309
  __decorateClass([
1259
- Column9({ name: "options", type: "jsonb", nullable: true })
1310
+ Column11({ name: "options", type: "jsonb", nullable: true })
1260
1311
  ], Question.prototype, "options", 2);
1261
1312
  __decorateClass([
1262
- Column9({ name: "is_active", type: "boolean", default: false })
1313
+ Column11({ name: "is_active", type: "boolean", default: false })
1263
1314
  ], Question.prototype, "isActive", 2);
1264
1315
  Question = __decorateClass([
1265
- Entity8("questions")
1316
+ Entity10("questions")
1266
1317
  ], Question);
1267
1318
 
1268
- // src/entities/skill.entity.ts
1269
- import { Entity as Entity9, Column as Column10 } from "typeorm";
1270
- var Skill = class extends BaseEntity {
1271
- };
1272
- __decorateClass([
1273
- Column10({ name: "name", type: "varchar", nullable: true })
1274
- ], Skill.prototype, "name", 2);
1275
- __decorateClass([
1276
- Column10({ name: "slug", type: "varchar", nullable: true, unique: true })
1277
- ], Skill.prototype, "slug", 2);
1278
- __decorateClass([
1279
- Column10({ name: "is_active", type: "boolean", default: false })
1280
- ], Skill.prototype, "isActive", 2);
1281
- Skill = __decorateClass([
1282
- Entity9("skills")
1283
- ], Skill);
1284
-
1285
1319
  // src/entities/job-role.entity.ts
1286
- import { Entity as Entity10, Column as Column11 } from "typeorm";
1320
+ import { Entity as Entity11, Column as Column12 } from "typeorm";
1287
1321
  var JobRoles = class extends BaseEntity {
1288
1322
  };
1289
1323
  __decorateClass([
1290
- Column11({ name: "slug", type: "varchar", nullable: true, unique: true })
1324
+ Column12({ name: "slug", type: "varchar", nullable: true, unique: true })
1291
1325
  ], JobRoles.prototype, "slug", 2);
1292
1326
  __decorateClass([
1293
- Column11({ name: "name", type: "varchar", nullable: true })
1327
+ Column12({ name: "name", type: "varchar", nullable: true })
1294
1328
  ], JobRoles.prototype, "name", 2);
1295
1329
  __decorateClass([
1296
- Column11({ name: "is_active", type: "boolean", default: true })
1330
+ Column12({ name: "is_active", type: "boolean", default: true })
1297
1331
  ], JobRoles.prototype, "isActive", 2);
1298
1332
  JobRoles = __decorateClass([
1299
- Entity10("job_roles")
1333
+ Entity11("job_roles")
1300
1334
  ], JobRoles);
1301
1335
  export {
1302
1336
  AUTHENTICATION_PATTERN,
@@ -1322,6 +1356,7 @@ export {
1322
1356
  JobLocation,
1323
1357
  JobRMQAdapter,
1324
1358
  JobRoles,
1359
+ JobSkill,
1325
1360
  JobStatus,
1326
1361
  JobTCPAdapter,
1327
1362
  KindOfHire,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",