@experts_hub/shared 1.0.80 → 1.0.81

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.
@@ -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,12 +533,6 @@ 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;
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,12 +533,6 @@ 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;
package/dist/index.js CHANGED
@@ -424,7 +424,7 @@ var CLIENT_PROFILE_PATTERN = {
424
424
  var import_class_validator15 = require("class-validator");
425
425
 
426
426
  // src/entities/company-profile.entity.ts
427
- var import_typeorm8 = require("typeorm");
427
+ var import_typeorm10 = require("typeorm");
428
428
 
429
429
  // src/entities/base.entity.ts
430
430
  var import_typeorm = require("typeorm");
@@ -464,7 +464,7 @@ __decorateClass([
464
464
  ], BaseEntity.prototype, "deletedAt", 2);
465
465
 
466
466
  // src/entities/user.entity.ts
467
- var import_typeorm7 = require("typeorm");
467
+ var import_typeorm9 = require("typeorm");
468
468
 
469
469
  // src/entities/refresh-token.entity.ts
470
470
  var import_typeorm2 = require("typeorm");
@@ -673,7 +673,55 @@ FreelancerProfile = __decorateClass([
673
673
  ], FreelancerProfile);
674
674
 
675
675
  // src/entities/job-entity.ts
676
+ var import_typeorm8 = require("typeorm");
677
+
678
+ // src/entities/job-skill.entity.ts
679
+ var import_typeorm7 = require("typeorm");
680
+
681
+ // src/entities/skill.entity.ts
676
682
  var import_typeorm6 = require("typeorm");
683
+ var Skill = class extends BaseEntity {
684
+ };
685
+ __decorateClass([
686
+ (0, import_typeorm6.Column)({ name: "name", type: "varchar", nullable: true })
687
+ ], Skill.prototype, "name", 2);
688
+ __decorateClass([
689
+ (0, import_typeorm6.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
690
+ ], Skill.prototype, "slug", 2);
691
+ __decorateClass([
692
+ (0, import_typeorm6.Column)({ name: "is_active", type: "boolean", default: false })
693
+ ], Skill.prototype, "isActive", 2);
694
+ __decorateClass([
695
+ (0, import_typeorm6.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.skill)
696
+ ], Skill.prototype, "jobSkills", 2);
697
+ Skill = __decorateClass([
698
+ (0, import_typeorm6.Entity)("skills")
699
+ ], Skill);
700
+
701
+ // src/entities/job-skill.entity.ts
702
+ var JobSkill = class extends BaseEntity {
703
+ };
704
+ __decorateClass([
705
+ (0, import_typeorm7.Column)({ name: "job_id", type: "integer" }),
706
+ (0, import_typeorm7.Index)()
707
+ ], JobSkill.prototype, "jobId", 2);
708
+ __decorateClass([
709
+ (0, import_typeorm7.ManyToOne)(() => Job, (job) => job.jobSkills, { onDelete: "CASCADE" }),
710
+ (0, import_typeorm7.JoinColumn)({ name: "job_id" })
711
+ ], JobSkill.prototype, "job", 2);
712
+ __decorateClass([
713
+ (0, import_typeorm7.Column)({ name: "skill_id", type: "integer" }),
714
+ (0, import_typeorm7.Index)()
715
+ ], JobSkill.prototype, "skillId", 2);
716
+ __decorateClass([
717
+ (0, import_typeorm7.ManyToOne)(() => Skill, (skill) => skill.jobSkills, { onDelete: "CASCADE" }),
718
+ (0, import_typeorm7.JoinColumn)({ name: "skill_id" })
719
+ ], JobSkill.prototype, "skill", 2);
720
+ JobSkill = __decorateClass([
721
+ (0, import_typeorm7.Entity)("job_skills")
722
+ ], JobSkill);
723
+
724
+ // src/entities/job-entity.ts
677
725
  var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
678
726
  JobLocation2["ONSITE"] = "ONSITE";
679
727
  JobLocation2["REMOTE"] = "REMOTE";
@@ -697,28 +745,28 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
697
745
  var Job = class extends BaseEntity {
698
746
  };
699
747
  __decorateClass([
700
- (0, import_typeorm6.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
748
+ (0, import_typeorm8.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
701
749
  ], Job.prototype, "jobId", 2);
702
750
  // individual index to find jobs by user
703
751
  __decorateClass([
704
- (0, import_typeorm6.Column)({ name: "user_id", type: "integer", nullable: true }),
705
- (0, import_typeorm6.Index)()
752
+ (0, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
753
+ (0, import_typeorm8.Index)()
706
754
  ], Job.prototype, "userId", 2);
707
755
  __decorateClass([
708
- (0, import_typeorm6.ManyToOne)(() => User, (user) => user.jobs),
709
- (0, import_typeorm6.JoinColumn)({ name: "user_id" })
756
+ (0, import_typeorm8.ManyToOne)(() => User, (user) => user.jobs),
757
+ (0, import_typeorm8.JoinColumn)({ name: "user_id" })
710
758
  ], Job.prototype, "user", 2);
711
759
  __decorateClass([
712
- (0, import_typeorm6.Column)({ name: "job_role", type: "varchar", nullable: true })
760
+ (0, import_typeorm8.Column)({ name: "job_role", type: "varchar", nullable: true })
713
761
  ], Job.prototype, "jobRole", 2);
714
762
  __decorateClass([
715
- (0, import_typeorm6.Column)({ name: "note", type: "varchar", nullable: true })
763
+ (0, import_typeorm8.Column)({ name: "note", type: "varchar", nullable: true })
716
764
  ], Job.prototype, "note", 2);
717
765
  __decorateClass([
718
- (0, import_typeorm6.Column)({ name: "openings", type: "integer", default: 0 })
766
+ (0, import_typeorm8.Column)({ name: "openings", type: "integer", default: 0 })
719
767
  ], Job.prototype, "openings", 2);
720
768
  __decorateClass([
721
- (0, import_typeorm6.Column)({
769
+ (0, import_typeorm8.Column)({
722
770
  name: "location",
723
771
  type: "enum",
724
772
  enum: JobLocation,
@@ -726,7 +774,7 @@ __decorateClass([
726
774
  })
727
775
  ], Job.prototype, "location", 2);
728
776
  __decorateClass([
729
- (0, import_typeorm6.Column)({
777
+ (0, import_typeorm8.Column)({
730
778
  name: "type_of_employment",
731
779
  type: "enum",
732
780
  enum: TypeOfEmployment,
@@ -734,21 +782,24 @@ __decorateClass([
734
782
  })
735
783
  ], Job.prototype, "typeOfEmployment", 2);
736
784
  __decorateClass([
737
- (0, import_typeorm6.Column)({ name: "additional_comment", type: "varchar", nullable: true })
785
+ (0, import_typeorm8.Column)({ name: "additional_comment", type: "varchar", nullable: true })
738
786
  ], Job.prototype, "additionalComment", 2);
739
787
  __decorateClass([
740
- (0, import_typeorm6.Column)({ name: "description", type: "varchar", nullable: true })
788
+ (0, import_typeorm8.Column)({ name: "description", type: "varchar", nullable: true })
741
789
  ], Job.prototype, "description", 2);
742
790
  __decorateClass([
743
- (0, import_typeorm6.Column)({
791
+ (0, import_typeorm8.Column)({
744
792
  name: "status",
745
793
  type: "enum",
746
794
  enum: JobStatus,
747
795
  default: "DRAFT" /* DRAFT */
748
796
  })
749
797
  ], Job.prototype, "status", 2);
798
+ __decorateClass([
799
+ (0, import_typeorm8.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
800
+ ], Job.prototype, "jobSkills", 2);
750
801
  Job = __decorateClass([
751
- (0, import_typeorm6.Entity)("jobs")
802
+ (0, import_typeorm8.Entity)("jobs")
752
803
  ], Job);
753
804
 
754
805
  // src/entities/user.entity.ts
@@ -769,40 +820,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
769
820
  var User = class extends BaseEntity {
770
821
  };
771
822
  __decorateClass([
772
- (0, import_typeorm7.Column)({ name: "unique_id", type: "varchar", unique: true })
823
+ (0, import_typeorm9.Column)({ name: "unique_id", type: "varchar", unique: true })
773
824
  ], User.prototype, "uniqueId", 2);
774
825
  __decorateClass([
775
- (0, import_typeorm7.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
826
+ (0, import_typeorm9.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
776
827
  ], User.prototype, "username", 2);
777
828
  __decorateClass([
778
- (0, import_typeorm7.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
829
+ (0, import_typeorm9.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
779
830
  ], User.prototype, "firstName", 2);
780
831
  __decorateClass([
781
- (0, import_typeorm7.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
832
+ (0, import_typeorm9.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
782
833
  ], User.prototype, "lastName", 2);
783
834
  __decorateClass([
784
- (0, import_typeorm7.Column)({ name: "date_of_birth", type: "date", nullable: true })
835
+ (0, import_typeorm9.Column)({ name: "date_of_birth", type: "date", nullable: true })
785
836
  ], User.prototype, "dateOfBirth", 2);
786
837
  __decorateClass([
787
- (0, import_typeorm7.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
838
+ (0, import_typeorm9.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
788
839
  ], User.prototype, "gender", 2);
789
840
  __decorateClass([
790
- (0, import_typeorm7.Column)({ name: "profile_picture_url", type: "text", nullable: true })
841
+ (0, import_typeorm9.Column)({ name: "profile_picture_url", type: "text", nullable: true })
791
842
  ], User.prototype, "profilePictureUrl", 2);
792
843
  __decorateClass([
793
- (0, import_typeorm7.Column)({ name: "email", type: "varchar", unique: true })
844
+ (0, import_typeorm9.Column)({ name: "email", type: "varchar", unique: true })
794
845
  ], User.prototype, "email", 2);
795
846
  __decorateClass([
796
- (0, import_typeorm7.Column)({ name: "mobile_code", type: "varchar", nullable: true })
847
+ (0, import_typeorm9.Column)({ name: "mobile_code", type: "varchar", nullable: true })
797
848
  ], User.prototype, "mobileCode", 2);
798
849
  __decorateClass([
799
- (0, import_typeorm7.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
850
+ (0, import_typeorm9.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
800
851
  ], User.prototype, "mobile", 2);
801
852
  __decorateClass([
802
- (0, import_typeorm7.Column)({ name: "password", type: "varchar" })
853
+ (0, import_typeorm9.Column)({ name: "password", type: "varchar" })
803
854
  ], User.prototype, "password", 2);
804
855
  __decorateClass([
805
- (0, import_typeorm7.Column)({
856
+ (0, import_typeorm9.Column)({
806
857
  name: "account_type",
807
858
  type: "enum",
808
859
  enum: AccountType,
@@ -810,7 +861,7 @@ __decorateClass([
810
861
  })
811
862
  ], User.prototype, "accountType", 2);
812
863
  __decorateClass([
813
- (0, import_typeorm7.Column)({
864
+ (0, import_typeorm9.Column)({
814
865
  name: "account_status",
815
866
  type: "enum",
816
867
  enum: AccountStatus,
@@ -818,44 +869,44 @@ __decorateClass([
818
869
  })
819
870
  ], User.prototype, "accountStatus", 2);
820
871
  __decorateClass([
821
- (0, import_typeorm7.Column)({ name: "is_email_verified", type: "boolean", default: false })
872
+ (0, import_typeorm9.Column)({ name: "is_email_verified", type: "boolean", default: false })
822
873
  ], User.prototype, "isEmailVerified", 2);
823
874
  __decorateClass([
824
- (0, import_typeorm7.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
875
+ (0, import_typeorm9.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
825
876
  ], User.prototype, "isMobileVerified", 2);
826
877
  __decorateClass([
827
- (0, import_typeorm7.Column)({
878
+ (0, import_typeorm9.Column)({
828
879
  name: "last_login_at",
829
880
  type: "timestamp with time zone",
830
881
  nullable: true
831
882
  })
832
883
  ], User.prototype, "lastLoginAt", 2);
833
884
  __decorateClass([
834
- (0, import_typeorm7.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
885
+ (0, import_typeorm9.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
835
886
  ], User.prototype, "lastLoginIp", 2);
836
887
  __decorateClass([
837
- (0, import_typeorm7.OneToMany)(() => RefreshToken, (token) => token.user)
888
+ (0, import_typeorm9.OneToMany)(() => RefreshToken, (token) => token.user)
838
889
  ], User.prototype, "refreshTokens", 2);
839
890
  __decorateClass([
840
- (0, import_typeorm7.OneToMany)(() => Otp, (otp) => otp.user)
891
+ (0, import_typeorm9.OneToMany)(() => Otp, (otp) => otp.user)
841
892
  ], User.prototype, "otps", 2);
842
893
  __decorateClass([
843
- (0, import_typeorm7.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
894
+ (0, import_typeorm9.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
844
895
  ], User.prototype, "resumeParserLogs", 2);
845
896
  __decorateClass([
846
- (0, import_typeorm7.OneToOne)(
897
+ (0, import_typeorm9.OneToOne)(
847
898
  () => FreelancerProfile,
848
899
  (freelancerProfile) => freelancerProfile.user
849
900
  )
850
901
  ], User.prototype, "freelancerProfile", 2);
851
902
  __decorateClass([
852
- (0, import_typeorm7.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
903
+ (0, import_typeorm9.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
853
904
  ], User.prototype, "companyProfile", 2);
854
905
  __decorateClass([
855
- (0, import_typeorm7.OneToMany)(() => Job, (job) => job.user)
906
+ (0, import_typeorm9.OneToMany)(() => Job, (job) => job.user)
856
907
  ], User.prototype, "jobs", 2);
857
908
  User = __decorateClass([
858
- (0, import_typeorm7.Entity)("users")
909
+ (0, import_typeorm9.Entity)("users")
859
910
  ], User);
860
911
 
861
912
  // src/entities/company-profile.entity.ts
@@ -882,42 +933,42 @@ var CompanyProfile = class extends BaseEntity {
882
933
  };
883
934
  // individual index to find company profile by user
884
935
  __decorateClass([
885
- (0, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
886
- (0, import_typeorm8.Index)()
936
+ (0, import_typeorm10.Column)({ name: "user_id", type: "integer", nullable: true }),
937
+ (0, import_typeorm10.Index)()
887
938
  ], CompanyProfile.prototype, "userId", 2);
888
939
  __decorateClass([
889
- (0, import_typeorm8.ManyToOne)(() => User, (user) => user.otps),
890
- (0, import_typeorm8.JoinColumn)({ name: "user_id" })
940
+ (0, import_typeorm10.ManyToOne)(() => User, (user) => user.otps),
941
+ (0, import_typeorm10.JoinColumn)({ name: "user_id" })
891
942
  ], CompanyProfile.prototype, "user", 2);
892
943
  __decorateClass([
893
- (0, import_typeorm8.Column)({ name: "company_name", type: "varchar", nullable: true })
944
+ (0, import_typeorm10.Column)({ name: "company_name", type: "varchar", nullable: true })
894
945
  ], CompanyProfile.prototype, "companyName", 2);
895
946
  __decorateClass([
896
- (0, import_typeorm8.Column)({ name: "bio", type: "varchar", nullable: true })
947
+ (0, import_typeorm10.Column)({ name: "bio", type: "varchar", nullable: true })
897
948
  ], CompanyProfile.prototype, "bio", 2);
898
949
  __decorateClass([
899
- (0, import_typeorm8.Column)({ name: "website", type: "varchar", nullable: true })
950
+ (0, import_typeorm10.Column)({ name: "website", type: "varchar", nullable: true })
900
951
  ], CompanyProfile.prototype, "webSite", 2);
901
952
  __decorateClass([
902
- (0, import_typeorm8.Column)({ name: "about_company", type: "varchar", nullable: true })
953
+ (0, import_typeorm10.Column)({ name: "about_company", type: "varchar", nullable: true })
903
954
  ], CompanyProfile.prototype, "aboutCompany", 2);
904
955
  __decorateClass([
905
- (0, import_typeorm8.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
956
+ (0, import_typeorm10.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
906
957
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
907
958
  __decorateClass([
908
- (0, import_typeorm8.Column)({ name: "company_address", type: "varchar", nullable: true })
959
+ (0, import_typeorm10.Column)({ name: "company_address", type: "varchar", nullable: true })
909
960
  ], CompanyProfile.prototype, "companyAddress", 2);
910
961
  __decorateClass([
911
- (0, import_typeorm8.Column)({ name: "phone_number", type: "varchar", nullable: true })
962
+ (0, import_typeorm10.Column)({ name: "phone_number", type: "varchar", nullable: true })
912
963
  ], CompanyProfile.prototype, "phoneNumber", 2);
913
964
  __decorateClass([
914
- (0, import_typeorm8.Column)({ name: "skills", type: "text", nullable: true })
965
+ (0, import_typeorm10.Column)({ name: "skills", type: "text", nullable: true })
915
966
  ], CompanyProfile.prototype, "skills", 2);
916
967
  __decorateClass([
917
- (0, import_typeorm8.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
968
+ (0, import_typeorm10.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
918
969
  ], CompanyProfile.prototype, "requiredFreelancer", 2);
919
970
  __decorateClass([
920
- (0, import_typeorm8.Column)({
971
+ (0, import_typeorm10.Column)({
921
972
  name: "kind_of_hiring",
922
973
  type: "enum",
923
974
  enum: KindOfHire,
@@ -925,7 +976,7 @@ __decorateClass([
925
976
  })
926
977
  ], CompanyProfile.prototype, "kindOfHiring", 2);
927
978
  __decorateClass([
928
- (0, import_typeorm8.Column)({
979
+ (0, import_typeorm10.Column)({
929
980
  name: "mode_of_hire",
930
981
  type: "enum",
931
982
  enum: ModeOfHire,
@@ -933,7 +984,7 @@ __decorateClass([
933
984
  })
934
985
  ], CompanyProfile.prototype, "modeOfHire", 2);
935
986
  __decorateClass([
936
- (0, import_typeorm8.Column)({
987
+ (0, import_typeorm10.Column)({
937
988
  name: "found_us_on",
938
989
  type: "enum",
939
990
  enum: FromUsOn,
@@ -941,7 +992,7 @@ __decorateClass([
941
992
  })
942
993
  ], CompanyProfile.prototype, "foundUsOn", 2);
943
994
  CompanyProfile = __decorateClass([
944
- (0, import_typeorm8.Entity)("company_profiles")
995
+ (0, import_typeorm10.Entity)("company_profiles")
945
996
  ], CompanyProfile);
946
997
 
947
998
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -1201,7 +1252,7 @@ var JobRMQAdapter = (mode = "microservice") => {
1201
1252
  };
1202
1253
 
1203
1254
  // src/entities/question.entity.ts
1204
- var import_typeorm9 = require("typeorm");
1255
+ var import_typeorm11 = require("typeorm");
1205
1256
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1206
1257
  QuestionFor2["CLIENT"] = "CLIENT";
1207
1258
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -1210,16 +1261,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1210
1261
  var Question = class extends BaseEntity {
1211
1262
  };
1212
1263
  __decorateClass([
1213
- (0, import_typeorm9.Column)({ name: "question", type: "varchar" })
1264
+ (0, import_typeorm11.Column)({ name: "question", type: "varchar" })
1214
1265
  ], Question.prototype, "question", 2);
1215
1266
  __decorateClass([
1216
- (0, import_typeorm9.Column)({ name: "hint", type: "varchar", nullable: true })
1267
+ (0, import_typeorm11.Column)({ name: "hint", type: "varchar", nullable: true })
1217
1268
  ], Question.prototype, "hint", 2);
1218
1269
  __decorateClass([
1219
- (0, import_typeorm9.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1270
+ (0, import_typeorm11.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1220
1271
  ], Question.prototype, "slug", 2);
1221
1272
  __decorateClass([
1222
- (0, import_typeorm9.Column)({
1273
+ (0, import_typeorm11.Column)({
1223
1274
  name: "question_for",
1224
1275
  type: "enum",
1225
1276
  enum: QuestionFor,
@@ -1227,50 +1278,33 @@ __decorateClass([
1227
1278
  })
1228
1279
  ], Question.prototype, "questionFor", 2);
1229
1280
  __decorateClass([
1230
- (0, import_typeorm9.Column)({ name: "type", type: "varchar", nullable: true })
1281
+ (0, import_typeorm11.Column)({ name: "type", type: "varchar", nullable: true })
1231
1282
  ], Question.prototype, "type", 2);
1232
1283
  __decorateClass([
1233
- (0, import_typeorm9.Column)({ name: "options", type: "jsonb", nullable: true })
1284
+ (0, import_typeorm11.Column)({ name: "options", type: "jsonb", nullable: true })
1234
1285
  ], Question.prototype, "options", 2);
1235
1286
  __decorateClass([
1236
- (0, import_typeorm9.Column)({ name: "is_active", type: "boolean", default: false })
1287
+ (0, import_typeorm11.Column)({ name: "is_active", type: "boolean", default: false })
1237
1288
  ], Question.prototype, "isActive", 2);
1238
1289
  Question = __decorateClass([
1239
- (0, import_typeorm9.Entity)("questions")
1290
+ (0, import_typeorm11.Entity)("questions")
1240
1291
  ], Question);
1241
1292
 
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
1293
  // src/entities/job-role.entity.ts
1260
- var import_typeorm11 = require("typeorm");
1294
+ var import_typeorm12 = require("typeorm");
1261
1295
  var JobRoles = class extends BaseEntity {
1262
1296
  };
1263
1297
  __decorateClass([
1264
- (0, import_typeorm11.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1298
+ (0, import_typeorm12.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1265
1299
  ], JobRoles.prototype, "slug", 2);
1266
1300
  __decorateClass([
1267
- (0, import_typeorm11.Column)({ name: "name", type: "varchar", nullable: true })
1301
+ (0, import_typeorm12.Column)({ name: "name", type: "varchar", nullable: true })
1268
1302
  ], JobRoles.prototype, "name", 2);
1269
1303
  __decorateClass([
1270
- (0, import_typeorm11.Column)({ name: "is_active", type: "boolean", default: true })
1304
+ (0, import_typeorm12.Column)({ name: "is_active", type: "boolean", default: true })
1271
1305
  ], JobRoles.prototype, "isActive", 2);
1272
1306
  JobRoles = __decorateClass([
1273
- (0, import_typeorm11.Entity)("job_roles")
1307
+ (0, import_typeorm12.Entity)("job_roles")
1274
1308
  ], JobRoles);
1275
1309
  // Annotate the CommonJS export names for ESM import in node:
1276
1310
  0 && (module.exports = {
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,
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.81",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",