@experts_hub/shared 1.0.63 → 1.0.64

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.
@@ -3,6 +3,7 @@ import { RefreshToken } from "./refresh-token.entity";
3
3
  import { ResumeParserLog } from "./resume-parser-log.entity";
4
4
  import { Otp } from "./otp.entity";
5
5
  import { FreelancerProfile } from "./freelancer-profile.entity";
6
+ import { CompanyProfile } from "./company-profile.entity";
6
7
  export declare enum AccountType {
7
8
  ADMIN = "ADMIN",
8
9
  SUB_ADMIN = "SUB_ADMIN",
@@ -37,4 +38,5 @@ export declare class User extends BaseEntity {
37
38
  otps: Otp[];
38
39
  resumeParserLogs: ResumeParserLog[];
39
40
  freelancerProfile: FreelancerProfile;
41
+ companyProfile: CompanyProfile;
40
42
  }
package/dist/index.d.mts CHANGED
@@ -318,6 +318,33 @@ declare class FreelancerProfile extends BaseEntity {
318
318
  portfolioLink: string;
319
319
  }
320
320
 
321
+ declare enum KindOfHire {
322
+ FULLTIME = "FULLTIME",
323
+ SHORTTIME = "SHORTTIME",
324
+ BOTH = "BOTH"
325
+ }
326
+ declare enum ModeOfHire {
327
+ ONSITE = "ONSITE",
328
+ REMOTE = "REMOTE",
329
+ BOTH = "BOTH"
330
+ }
331
+ declare enum FromUsOn {
332
+ LINKEDIN = "LINKEDIN",
333
+ GOOGLE = "GOOGLE",
334
+ REFERRAL = "REFERRAL",
335
+ OTHER = "OTHER"
336
+ }
337
+ declare class CompanyProfile extends BaseEntity {
338
+ userId: number;
339
+ user: User;
340
+ companyName: string;
341
+ skills: string[];
342
+ requiredFreelancer: string;
343
+ kindOfHiring: KindOfHire;
344
+ modeOfHire: ModeOfHire;
345
+ foundUsOn: FromUsOn;
346
+ }
347
+
321
348
  declare enum AccountType {
322
349
  ADMIN = "ADMIN",
323
350
  SUB_ADMIN = "SUB_ADMIN",
@@ -352,6 +379,7 @@ declare class User extends BaseEntity {
352
379
  otps: Otp[];
353
380
  resumeParserLogs: ResumeParserLog[];
354
381
  freelancerProfile: FreelancerProfile;
382
+ companyProfile: CompanyProfile;
355
383
  }
356
384
 
357
385
  declare enum QuestionFor {
@@ -372,31 +400,4 @@ declare class Question extends BaseEntity {
372
400
  isActive: boolean;
373
401
  }
374
402
 
375
- declare enum KindOfHire {
376
- FULLTIME = "FULLTIME",
377
- SHORTTIME = "SHORTTIME",
378
- BOTH = "BOTH"
379
- }
380
- declare enum ModeOfHire {
381
- ONSITE = "ONSITE",
382
- REMOTE = "REMOTE",
383
- BOTH = "BOTH"
384
- }
385
- declare enum FromUsOn {
386
- LINKEDIN = "LINKEDIN",
387
- GOOGLE = "GOOGLE",
388
- REFERRAL = "REFERRAL",
389
- OTHER = "OTHER"
390
- }
391
- declare class CompanyProfile extends BaseEntity {
392
- userId: number;
393
- user: User;
394
- companyName: string;
395
- skills: string[];
396
- requiredFreelancer: string;
397
- kindOfHiring: KindOfHire;
398
- modeOfHire: ModeOfHire;
399
- foundUsOn: FromUsOn;
400
- }
401
-
402
403
  export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -318,6 +318,33 @@ declare class FreelancerProfile extends BaseEntity {
318
318
  portfolioLink: string;
319
319
  }
320
320
 
321
+ declare enum KindOfHire {
322
+ FULLTIME = "FULLTIME",
323
+ SHORTTIME = "SHORTTIME",
324
+ BOTH = "BOTH"
325
+ }
326
+ declare enum ModeOfHire {
327
+ ONSITE = "ONSITE",
328
+ REMOTE = "REMOTE",
329
+ BOTH = "BOTH"
330
+ }
331
+ declare enum FromUsOn {
332
+ LINKEDIN = "LINKEDIN",
333
+ GOOGLE = "GOOGLE",
334
+ REFERRAL = "REFERRAL",
335
+ OTHER = "OTHER"
336
+ }
337
+ declare class CompanyProfile extends BaseEntity {
338
+ userId: number;
339
+ user: User;
340
+ companyName: string;
341
+ skills: string[];
342
+ requiredFreelancer: string;
343
+ kindOfHiring: KindOfHire;
344
+ modeOfHire: ModeOfHire;
345
+ foundUsOn: FromUsOn;
346
+ }
347
+
321
348
  declare enum AccountType {
322
349
  ADMIN = "ADMIN",
323
350
  SUB_ADMIN = "SUB_ADMIN",
@@ -352,6 +379,7 @@ declare class User extends BaseEntity {
352
379
  otps: Otp[];
353
380
  resumeParserLogs: ResumeParserLog[];
354
381
  freelancerProfile: FreelancerProfile;
382
+ companyProfile: CompanyProfile;
355
383
  }
356
384
 
357
385
  declare enum QuestionFor {
@@ -372,31 +400,4 @@ declare class Question extends BaseEntity {
372
400
  isActive: boolean;
373
401
  }
374
402
 
375
- declare enum KindOfHire {
376
- FULLTIME = "FULLTIME",
377
- SHORTTIME = "SHORTTIME",
378
- BOTH = "BOTH"
379
- }
380
- declare enum ModeOfHire {
381
- ONSITE = "ONSITE",
382
- REMOTE = "REMOTE",
383
- BOTH = "BOTH"
384
- }
385
- declare enum FromUsOn {
386
- LINKEDIN = "LINKEDIN",
387
- GOOGLE = "GOOGLE",
388
- REFERRAL = "REFERRAL",
389
- OTHER = "OTHER"
390
- }
391
- declare class CompanyProfile extends BaseEntity {
392
- userId: number;
393
- user: User;
394
- companyName: string;
395
- skills: string[];
396
- requiredFreelancer: string;
397
- kindOfHiring: KindOfHire;
398
- modeOfHire: ModeOfHire;
399
- foundUsOn: FromUsOn;
400
- }
401
-
402
403
  export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -609,7 +609,7 @@ __decorateClass([
609
609
  ], BaseEntity.prototype, "deletedAt", 2);
610
610
 
611
611
  // src/entities/user.entity.ts
612
- var import_typeorm6 = require("typeorm");
612
+ var import_typeorm7 = require("typeorm");
613
613
 
614
614
  // src/entities/refresh-token.entity.ts
615
615
  var import_typeorm2 = require("typeorm");
@@ -817,6 +817,75 @@ FreelancerProfile = __decorateClass([
817
817
  (0, import_typeorm5.Entity)("freelancer_profiles")
818
818
  ], FreelancerProfile);
819
819
 
820
+ // src/entities/company-profile.entity.ts
821
+ var import_typeorm6 = require("typeorm");
822
+ var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
823
+ KindOfHire2["FULLTIME"] = "FULLTIME";
824
+ KindOfHire2["SHORTTIME"] = "SHORTTIME";
825
+ KindOfHire2["BOTH"] = "BOTH";
826
+ return KindOfHire2;
827
+ })(KindOfHire || {});
828
+ var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
829
+ ModeOfHire2["ONSITE"] = "ONSITE";
830
+ ModeOfHire2["REMOTE"] = "REMOTE";
831
+ ModeOfHire2["BOTH"] = "BOTH";
832
+ return ModeOfHire2;
833
+ })(ModeOfHire || {});
834
+ var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
835
+ FromUsOn2["LINKEDIN"] = "LINKEDIN";
836
+ FromUsOn2["GOOGLE"] = "GOOGLE";
837
+ FromUsOn2["REFERRAL"] = "REFERRAL";
838
+ FromUsOn2["OTHER"] = "OTHER";
839
+ return FromUsOn2;
840
+ })(FromUsOn || {});
841
+ var CompanyProfile = class extends BaseEntity {
842
+ };
843
+ // individual index to find company profile by user
844
+ __decorateClass([
845
+ (0, import_typeorm6.Column)({ name: "user_id", type: "integer", nullable: true }),
846
+ (0, import_typeorm6.Index)()
847
+ ], CompanyProfile.prototype, "userId", 2);
848
+ __decorateClass([
849
+ (0, import_typeorm6.ManyToOne)(() => User, (user) => user.otps),
850
+ (0, import_typeorm6.JoinColumn)({ name: "user_id" })
851
+ ], CompanyProfile.prototype, "user", 2);
852
+ __decorateClass([
853
+ (0, import_typeorm6.Column)({ name: "company_name", type: "varchar", nullable: true })
854
+ ], CompanyProfile.prototype, "companyName", 2);
855
+ __decorateClass([
856
+ (0, import_typeorm6.Column)({ name: "skills", type: "text", nullable: true })
857
+ ], CompanyProfile.prototype, "skills", 2);
858
+ __decorateClass([
859
+ (0, import_typeorm6.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
860
+ ], CompanyProfile.prototype, "requiredFreelancer", 2);
861
+ __decorateClass([
862
+ (0, import_typeorm6.Column)({
863
+ name: "kind_of_hiring",
864
+ type: "enum",
865
+ enum: KindOfHire,
866
+ nullable: true
867
+ })
868
+ ], CompanyProfile.prototype, "kindOfHiring", 2);
869
+ __decorateClass([
870
+ (0, import_typeorm6.Column)({
871
+ name: "mode_of_hire",
872
+ type: "enum",
873
+ enum: ModeOfHire,
874
+ nullable: true
875
+ })
876
+ ], CompanyProfile.prototype, "modeOfHire", 2);
877
+ __decorateClass([
878
+ (0, import_typeorm6.Column)({
879
+ name: "found_us_on",
880
+ type: "enum",
881
+ enum: FromUsOn,
882
+ nullable: true
883
+ })
884
+ ], CompanyProfile.prototype, "foundUsOn", 2);
885
+ CompanyProfile = __decorateClass([
886
+ (0, import_typeorm6.Entity)("company_profiles")
887
+ ], CompanyProfile);
888
+
820
889
  // src/entities/user.entity.ts
821
890
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
822
891
  AccountType2["ADMIN"] = "ADMIN";
@@ -835,40 +904,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
835
904
  var User = class extends BaseEntity {
836
905
  };
837
906
  __decorateClass([
838
- (0, import_typeorm6.Column)({ name: "unique_id", type: "varchar", unique: true })
907
+ (0, import_typeorm7.Column)({ name: "unique_id", type: "varchar", unique: true })
839
908
  ], User.prototype, "uniqueId", 2);
840
909
  __decorateClass([
841
- (0, import_typeorm6.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
910
+ (0, import_typeorm7.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
842
911
  ], User.prototype, "username", 2);
843
912
  __decorateClass([
844
- (0, import_typeorm6.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
913
+ (0, import_typeorm7.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
845
914
  ], User.prototype, "firstName", 2);
846
915
  __decorateClass([
847
- (0, import_typeorm6.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
916
+ (0, import_typeorm7.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
848
917
  ], User.prototype, "lastName", 2);
849
918
  __decorateClass([
850
- (0, import_typeorm6.Column)({ name: "date_of_birth", type: "date", nullable: true })
919
+ (0, import_typeorm7.Column)({ name: "date_of_birth", type: "date", nullable: true })
851
920
  ], User.prototype, "dateOfBirth", 2);
852
921
  __decorateClass([
853
- (0, import_typeorm6.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
922
+ (0, import_typeorm7.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
854
923
  ], User.prototype, "gender", 2);
855
924
  __decorateClass([
856
- (0, import_typeorm6.Column)({ name: "profile_picture_url", type: "text", nullable: true })
925
+ (0, import_typeorm7.Column)({ name: "profile_picture_url", type: "text", nullable: true })
857
926
  ], User.prototype, "profilePictureUrl", 2);
858
927
  __decorateClass([
859
- (0, import_typeorm6.Column)({ name: "email", type: "varchar", unique: true })
928
+ (0, import_typeorm7.Column)({ name: "email", type: "varchar", unique: true })
860
929
  ], User.prototype, "email", 2);
861
930
  __decorateClass([
862
- (0, import_typeorm6.Column)({ name: "mobile_code", type: "varchar", nullable: true })
931
+ (0, import_typeorm7.Column)({ name: "mobile_code", type: "varchar", nullable: true })
863
932
  ], User.prototype, "mobileCode", 2);
864
933
  __decorateClass([
865
- (0, import_typeorm6.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
934
+ (0, import_typeorm7.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
866
935
  ], User.prototype, "mobile", 2);
867
936
  __decorateClass([
868
- (0, import_typeorm6.Column)({ name: "password", type: "varchar" })
937
+ (0, import_typeorm7.Column)({ name: "password", type: "varchar" })
869
938
  ], User.prototype, "password", 2);
870
939
  __decorateClass([
871
- (0, import_typeorm6.Column)({
940
+ (0, import_typeorm7.Column)({
872
941
  name: "account_type",
873
942
  type: "enum",
874
943
  enum: AccountType,
@@ -876,7 +945,7 @@ __decorateClass([
876
945
  })
877
946
  ], User.prototype, "accountType", 2);
878
947
  __decorateClass([
879
- (0, import_typeorm6.Column)({
948
+ (0, import_typeorm7.Column)({
880
949
  name: "account_status",
881
950
  type: "enum",
882
951
  enum: AccountStatus,
@@ -884,42 +953,48 @@ __decorateClass([
884
953
  })
885
954
  ], User.prototype, "accountStatus", 2);
886
955
  __decorateClass([
887
- (0, import_typeorm6.Column)({ name: "is_email_verified", type: "boolean", default: false })
956
+ (0, import_typeorm7.Column)({ name: "is_email_verified", type: "boolean", default: false })
888
957
  ], User.prototype, "isEmailVerified", 2);
889
958
  __decorateClass([
890
- (0, import_typeorm6.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
959
+ (0, import_typeorm7.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
891
960
  ], User.prototype, "isMobileVerified", 2);
892
961
  __decorateClass([
893
- (0, import_typeorm6.Column)({
962
+ (0, import_typeorm7.Column)({
894
963
  name: "last_login_at",
895
964
  type: "timestamp with time zone",
896
965
  nullable: true
897
966
  })
898
967
  ], User.prototype, "lastLoginAt", 2);
899
968
  __decorateClass([
900
- (0, import_typeorm6.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
969
+ (0, import_typeorm7.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
901
970
  ], User.prototype, "lastLoginIp", 2);
902
971
  __decorateClass([
903
- (0, import_typeorm6.OneToMany)(() => RefreshToken, (token) => token.user)
972
+ (0, import_typeorm7.OneToMany)(() => RefreshToken, (token) => token.user)
904
973
  ], User.prototype, "refreshTokens", 2);
905
974
  __decorateClass([
906
- (0, import_typeorm6.OneToMany)(() => Otp, (otp) => otp.user)
975
+ (0, import_typeorm7.OneToMany)(() => Otp, (otp) => otp.user)
907
976
  ], User.prototype, "otps", 2);
908
977
  __decorateClass([
909
- (0, import_typeorm6.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
978
+ (0, import_typeorm7.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
910
979
  ], User.prototype, "resumeParserLogs", 2);
911
980
  __decorateClass([
912
- (0, import_typeorm6.OneToOne)(
981
+ (0, import_typeorm7.OneToOne)(
913
982
  () => FreelancerProfile,
914
983
  (freelancerProfile) => freelancerProfile.user
915
984
  )
916
985
  ], User.prototype, "freelancerProfile", 2);
986
+ __decorateClass([
987
+ (0, import_typeorm7.OneToOne)(
988
+ () => CompanyProfile,
989
+ (companyProfile) => companyProfile.user
990
+ )
991
+ ], User.prototype, "companyProfile", 2);
917
992
  User = __decorateClass([
918
- (0, import_typeorm6.Entity)("users")
993
+ (0, import_typeorm7.Entity)("users")
919
994
  ], User);
920
995
 
921
996
  // src/entities/question.entity.ts
922
- var import_typeorm7 = require("typeorm");
997
+ var import_typeorm8 = require("typeorm");
923
998
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
924
999
  QuestionFor2["CLIENT"] = "CLIENT";
925
1000
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -928,16 +1003,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
928
1003
  var Question = class extends BaseEntity {
929
1004
  };
930
1005
  __decorateClass([
931
- (0, import_typeorm7.Column)({ name: "question", type: "varchar" })
1006
+ (0, import_typeorm8.Column)({ name: "question", type: "varchar" })
932
1007
  ], Question.prototype, "question", 2);
933
1008
  __decorateClass([
934
- (0, import_typeorm7.Column)({ name: "hint", type: "varchar", nullable: true })
1009
+ (0, import_typeorm8.Column)({ name: "hint", type: "varchar", nullable: true })
935
1010
  ], Question.prototype, "hint", 2);
936
1011
  __decorateClass([
937
- (0, import_typeorm7.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
1012
+ (0, import_typeorm8.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
938
1013
  ], Question.prototype, "slug", 2);
939
1014
  __decorateClass([
940
- (0, import_typeorm7.Column)({
1015
+ (0, import_typeorm8.Column)({
941
1016
  name: "question_for",
942
1017
  type: "enum",
943
1018
  enum: QuestionFor,
@@ -945,86 +1020,17 @@ __decorateClass([
945
1020
  })
946
1021
  ], Question.prototype, "questionFor", 2);
947
1022
  __decorateClass([
948
- (0, import_typeorm7.Column)({ name: "type", type: "varchar", nullable: true })
1023
+ (0, import_typeorm8.Column)({ name: "type", type: "varchar", nullable: true })
949
1024
  ], Question.prototype, "type", 2);
950
1025
  __decorateClass([
951
- (0, import_typeorm7.Column)({ name: "options", type: "jsonb", nullable: true })
1026
+ (0, import_typeorm8.Column)({ name: "options", type: "jsonb", nullable: true })
952
1027
  ], Question.prototype, "options", 2);
953
1028
  __decorateClass([
954
- (0, import_typeorm7.Column)({ name: "is_active", type: "boolean", default: false })
1029
+ (0, import_typeorm8.Column)({ name: "is_active", type: "boolean", default: false })
955
1030
  ], Question.prototype, "isActive", 2);
956
1031
  Question = __decorateClass([
957
- (0, import_typeorm7.Entity)("questions")
1032
+ (0, import_typeorm8.Entity)("questions")
958
1033
  ], Question);
959
-
960
- // src/entities/company-profile.entity.ts
961
- var import_typeorm8 = require("typeorm");
962
- var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
963
- KindOfHire2["FULLTIME"] = "FULLTIME";
964
- KindOfHire2["SHORTTIME"] = "SHORTTIME";
965
- KindOfHire2["BOTH"] = "BOTH";
966
- return KindOfHire2;
967
- })(KindOfHire || {});
968
- var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
969
- ModeOfHire2["ONSITE"] = "ONSITE";
970
- ModeOfHire2["REMOTE"] = "REMOTE";
971
- ModeOfHire2["BOTH"] = "BOTH";
972
- return ModeOfHire2;
973
- })(ModeOfHire || {});
974
- var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
975
- FromUsOn2["LINKEDIN"] = "LINKEDIN";
976
- FromUsOn2["GOOGLE"] = "GOOGLE";
977
- FromUsOn2["REFERRAL"] = "REFERRAL";
978
- FromUsOn2["OTHER"] = "OTHER";
979
- return FromUsOn2;
980
- })(FromUsOn || {});
981
- var CompanyProfile = class extends BaseEntity {
982
- };
983
- // individual index to find company profile by user
984
- __decorateClass([
985
- (0, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
986
- (0, import_typeorm8.Index)()
987
- ], CompanyProfile.prototype, "userId", 2);
988
- __decorateClass([
989
- (0, import_typeorm8.ManyToOne)(() => User, (user) => user.otps),
990
- (0, import_typeorm8.JoinColumn)({ name: "user_id" })
991
- ], CompanyProfile.prototype, "user", 2);
992
- __decorateClass([
993
- (0, import_typeorm8.Column)({ name: "company_name", type: "varchar", nullable: true })
994
- ], CompanyProfile.prototype, "companyName", 2);
995
- __decorateClass([
996
- (0, import_typeorm8.Column)({ name: "skills", type: "text", nullable: true })
997
- ], CompanyProfile.prototype, "skills", 2);
998
- __decorateClass([
999
- (0, import_typeorm8.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
1000
- ], CompanyProfile.prototype, "requiredFreelancer", 2);
1001
- __decorateClass([
1002
- (0, import_typeorm8.Column)({
1003
- name: "kind_of_hiring",
1004
- type: "enum",
1005
- enum: KindOfHire,
1006
- nullable: true
1007
- })
1008
- ], CompanyProfile.prototype, "kindOfHiring", 2);
1009
- __decorateClass([
1010
- (0, import_typeorm8.Column)({
1011
- name: "mode_of_hire",
1012
- type: "enum",
1013
- enum: ModeOfHire,
1014
- nullable: true
1015
- })
1016
- ], CompanyProfile.prototype, "modeOfHire", 2);
1017
- __decorateClass([
1018
- (0, import_typeorm8.Column)({
1019
- name: "found_us_on",
1020
- type: "enum",
1021
- enum: FromUsOn,
1022
- nullable: true
1023
- })
1024
- ], CompanyProfile.prototype, "foundUsOn", 2);
1025
- CompanyProfile = __decorateClass([
1026
- (0, import_typeorm8.Entity)("company_profiles")
1027
- ], CompanyProfile);
1028
1034
  // Annotate the CommonJS export names for ESM import in node:
1029
1035
  0 && (module.exports = {
1030
1036
  AUTHENTICATION_PATTERN,
package/dist/index.mjs CHANGED
@@ -599,7 +599,7 @@ __decorateClass([
599
599
  ], BaseEntity.prototype, "deletedAt", 2);
600
600
 
601
601
  // src/entities/user.entity.ts
602
- import { Entity as Entity5, Column as Column6, OneToMany as OneToMany2, OneToOne } from "typeorm";
602
+ import { Entity as Entity6, Column as Column7, OneToMany as OneToMany2, OneToOne } from "typeorm";
603
603
 
604
604
  // src/entities/refresh-token.entity.ts
605
605
  import {
@@ -836,6 +836,81 @@ FreelancerProfile = __decorateClass([
836
836
  Entity4("freelancer_profiles")
837
837
  ], FreelancerProfile);
838
838
 
839
+ // src/entities/company-profile.entity.ts
840
+ import {
841
+ Entity as Entity5,
842
+ Column as Column6,
843
+ ManyToOne as ManyToOne5,
844
+ JoinColumn as JoinColumn5,
845
+ Index as Index3
846
+ } from "typeorm";
847
+ var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
848
+ KindOfHire2["FULLTIME"] = "FULLTIME";
849
+ KindOfHire2["SHORTTIME"] = "SHORTTIME";
850
+ KindOfHire2["BOTH"] = "BOTH";
851
+ return KindOfHire2;
852
+ })(KindOfHire || {});
853
+ var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
854
+ ModeOfHire2["ONSITE"] = "ONSITE";
855
+ ModeOfHire2["REMOTE"] = "REMOTE";
856
+ ModeOfHire2["BOTH"] = "BOTH";
857
+ return ModeOfHire2;
858
+ })(ModeOfHire || {});
859
+ var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
860
+ FromUsOn2["LINKEDIN"] = "LINKEDIN";
861
+ FromUsOn2["GOOGLE"] = "GOOGLE";
862
+ FromUsOn2["REFERRAL"] = "REFERRAL";
863
+ FromUsOn2["OTHER"] = "OTHER";
864
+ return FromUsOn2;
865
+ })(FromUsOn || {});
866
+ var CompanyProfile = class extends BaseEntity {
867
+ };
868
+ // individual index to find company profile by user
869
+ __decorateClass([
870
+ Column6({ name: "user_id", type: "integer", nullable: true }),
871
+ Index3()
872
+ ], CompanyProfile.prototype, "userId", 2);
873
+ __decorateClass([
874
+ ManyToOne5(() => User, (user) => user.otps),
875
+ JoinColumn5({ name: "user_id" })
876
+ ], CompanyProfile.prototype, "user", 2);
877
+ __decorateClass([
878
+ Column6({ name: "company_name", type: "varchar", nullable: true })
879
+ ], CompanyProfile.prototype, "companyName", 2);
880
+ __decorateClass([
881
+ Column6({ name: "skills", type: "text", nullable: true })
882
+ ], CompanyProfile.prototype, "skills", 2);
883
+ __decorateClass([
884
+ Column6({ name: "required_freelancer", type: "varchar", nullable: true })
885
+ ], CompanyProfile.prototype, "requiredFreelancer", 2);
886
+ __decorateClass([
887
+ Column6({
888
+ name: "kind_of_hiring",
889
+ type: "enum",
890
+ enum: KindOfHire,
891
+ nullable: true
892
+ })
893
+ ], CompanyProfile.prototype, "kindOfHiring", 2);
894
+ __decorateClass([
895
+ Column6({
896
+ name: "mode_of_hire",
897
+ type: "enum",
898
+ enum: ModeOfHire,
899
+ nullable: true
900
+ })
901
+ ], CompanyProfile.prototype, "modeOfHire", 2);
902
+ __decorateClass([
903
+ Column6({
904
+ name: "found_us_on",
905
+ type: "enum",
906
+ enum: FromUsOn,
907
+ nullable: true
908
+ })
909
+ ], CompanyProfile.prototype, "foundUsOn", 2);
910
+ CompanyProfile = __decorateClass([
911
+ Entity5("company_profiles")
912
+ ], CompanyProfile);
913
+
839
914
  // src/entities/user.entity.ts
840
915
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
841
916
  AccountType2["ADMIN"] = "ADMIN";
@@ -854,40 +929,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
854
929
  var User = class extends BaseEntity {
855
930
  };
856
931
  __decorateClass([
857
- Column6({ name: "unique_id", type: "varchar", unique: true })
932
+ Column7({ name: "unique_id", type: "varchar", unique: true })
858
933
  ], User.prototype, "uniqueId", 2);
859
934
  __decorateClass([
860
- Column6({ name: "username", type: "varchar", unique: true, nullable: true })
935
+ Column7({ name: "username", type: "varchar", unique: true, nullable: true })
861
936
  ], User.prototype, "username", 2);
862
937
  __decorateClass([
863
- Column6({ name: "first_name", type: "varchar", length: 100, nullable: true })
938
+ Column7({ name: "first_name", type: "varchar", length: 100, nullable: true })
864
939
  ], User.prototype, "firstName", 2);
865
940
  __decorateClass([
866
- Column6({ name: "last_name", type: "varchar", length: 100, nullable: true })
941
+ Column7({ name: "last_name", type: "varchar", length: 100, nullable: true })
867
942
  ], User.prototype, "lastName", 2);
868
943
  __decorateClass([
869
- Column6({ name: "date_of_birth", type: "date", nullable: true })
944
+ Column7({ name: "date_of_birth", type: "date", nullable: true })
870
945
  ], User.prototype, "dateOfBirth", 2);
871
946
  __decorateClass([
872
- Column6({ name: "gender", type: "varchar", length: 10, nullable: true })
947
+ Column7({ name: "gender", type: "varchar", length: 10, nullable: true })
873
948
  ], User.prototype, "gender", 2);
874
949
  __decorateClass([
875
- Column6({ name: "profile_picture_url", type: "text", nullable: true })
950
+ Column7({ name: "profile_picture_url", type: "text", nullable: true })
876
951
  ], User.prototype, "profilePictureUrl", 2);
877
952
  __decorateClass([
878
- Column6({ name: "email", type: "varchar", unique: true })
953
+ Column7({ name: "email", type: "varchar", unique: true })
879
954
  ], User.prototype, "email", 2);
880
955
  __decorateClass([
881
- Column6({ name: "mobile_code", type: "varchar", nullable: true })
956
+ Column7({ name: "mobile_code", type: "varchar", nullable: true })
882
957
  ], User.prototype, "mobileCode", 2);
883
958
  __decorateClass([
884
- Column6({ name: "mobile", type: "varchar", unique: true, nullable: true })
959
+ Column7({ name: "mobile", type: "varchar", unique: true, nullable: true })
885
960
  ], User.prototype, "mobile", 2);
886
961
  __decorateClass([
887
- Column6({ name: "password", type: "varchar" })
962
+ Column7({ name: "password", type: "varchar" })
888
963
  ], User.prototype, "password", 2);
889
964
  __decorateClass([
890
- Column6({
965
+ Column7({
891
966
  name: "account_type",
892
967
  type: "enum",
893
968
  enum: AccountType,
@@ -895,7 +970,7 @@ __decorateClass([
895
970
  })
896
971
  ], User.prototype, "accountType", 2);
897
972
  __decorateClass([
898
- Column6({
973
+ Column7({
899
974
  name: "account_status",
900
975
  type: "enum",
901
976
  enum: AccountStatus,
@@ -903,20 +978,20 @@ __decorateClass([
903
978
  })
904
979
  ], User.prototype, "accountStatus", 2);
905
980
  __decorateClass([
906
- Column6({ name: "is_email_verified", type: "boolean", default: false })
981
+ Column7({ name: "is_email_verified", type: "boolean", default: false })
907
982
  ], User.prototype, "isEmailVerified", 2);
908
983
  __decorateClass([
909
- Column6({ name: "is_mobile_verified", type: "boolean", default: false })
984
+ Column7({ name: "is_mobile_verified", type: "boolean", default: false })
910
985
  ], User.prototype, "isMobileVerified", 2);
911
986
  __decorateClass([
912
- Column6({
987
+ Column7({
913
988
  name: "last_login_at",
914
989
  type: "timestamp with time zone",
915
990
  nullable: true
916
991
  })
917
992
  ], User.prototype, "lastLoginAt", 2);
918
993
  __decorateClass([
919
- Column6({ name: "last_login_ip", type: "varchar", nullable: true })
994
+ Column7({ name: "last_login_ip", type: "varchar", nullable: true })
920
995
  ], User.prototype, "lastLoginIp", 2);
921
996
  __decorateClass([
922
997
  OneToMany2(() => RefreshToken, (token) => token.user)
@@ -933,12 +1008,18 @@ __decorateClass([
933
1008
  (freelancerProfile) => freelancerProfile.user
934
1009
  )
935
1010
  ], User.prototype, "freelancerProfile", 2);
1011
+ __decorateClass([
1012
+ OneToOne(
1013
+ () => CompanyProfile,
1014
+ (companyProfile) => companyProfile.user
1015
+ )
1016
+ ], User.prototype, "companyProfile", 2);
936
1017
  User = __decorateClass([
937
- Entity5("users")
1018
+ Entity6("users")
938
1019
  ], User);
939
1020
 
940
1021
  // src/entities/question.entity.ts
941
- import { Entity as Entity6, Column as Column7 } from "typeorm";
1022
+ import { Entity as Entity7, Column as Column8 } from "typeorm";
942
1023
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
943
1024
  QuestionFor2["CLIENT"] = "CLIENT";
944
1025
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -947,16 +1028,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
947
1028
  var Question = class extends BaseEntity {
948
1029
  };
949
1030
  __decorateClass([
950
- Column7({ name: "question", type: "varchar" })
1031
+ Column8({ name: "question", type: "varchar" })
951
1032
  ], Question.prototype, "question", 2);
952
1033
  __decorateClass([
953
- Column7({ name: "hint", type: "varchar", nullable: true })
1034
+ Column8({ name: "hint", type: "varchar", nullable: true })
954
1035
  ], Question.prototype, "hint", 2);
955
1036
  __decorateClass([
956
- Column7({ name: "slug", type: "varchar", nullable: true, unique: true })
1037
+ Column8({ name: "slug", type: "varchar", nullable: true, unique: true })
957
1038
  ], Question.prototype, "slug", 2);
958
1039
  __decorateClass([
959
- Column7({
1040
+ Column8({
960
1041
  name: "question_for",
961
1042
  type: "enum",
962
1043
  enum: QuestionFor,
@@ -964,92 +1045,17 @@ __decorateClass([
964
1045
  })
965
1046
  ], Question.prototype, "questionFor", 2);
966
1047
  __decorateClass([
967
- Column7({ name: "type", type: "varchar", nullable: true })
1048
+ Column8({ name: "type", type: "varchar", nullable: true })
968
1049
  ], Question.prototype, "type", 2);
969
1050
  __decorateClass([
970
- Column7({ name: "options", type: "jsonb", nullable: true })
1051
+ Column8({ name: "options", type: "jsonb", nullable: true })
971
1052
  ], Question.prototype, "options", 2);
972
1053
  __decorateClass([
973
- Column7({ name: "is_active", type: "boolean", default: false })
1054
+ Column8({ name: "is_active", type: "boolean", default: false })
974
1055
  ], Question.prototype, "isActive", 2);
975
1056
  Question = __decorateClass([
976
- Entity6("questions")
1057
+ Entity7("questions")
977
1058
  ], Question);
978
-
979
- // src/entities/company-profile.entity.ts
980
- import {
981
- Entity as Entity7,
982
- Column as Column8,
983
- ManyToOne as ManyToOne5,
984
- JoinColumn as JoinColumn5,
985
- Index as Index3
986
- } from "typeorm";
987
- var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
988
- KindOfHire2["FULLTIME"] = "FULLTIME";
989
- KindOfHire2["SHORTTIME"] = "SHORTTIME";
990
- KindOfHire2["BOTH"] = "BOTH";
991
- return KindOfHire2;
992
- })(KindOfHire || {});
993
- var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
994
- ModeOfHire2["ONSITE"] = "ONSITE";
995
- ModeOfHire2["REMOTE"] = "REMOTE";
996
- ModeOfHire2["BOTH"] = "BOTH";
997
- return ModeOfHire2;
998
- })(ModeOfHire || {});
999
- var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
1000
- FromUsOn2["LINKEDIN"] = "LINKEDIN";
1001
- FromUsOn2["GOOGLE"] = "GOOGLE";
1002
- FromUsOn2["REFERRAL"] = "REFERRAL";
1003
- FromUsOn2["OTHER"] = "OTHER";
1004
- return FromUsOn2;
1005
- })(FromUsOn || {});
1006
- var CompanyProfile = class extends BaseEntity {
1007
- };
1008
- // individual index to find company profile by user
1009
- __decorateClass([
1010
- Column8({ name: "user_id", type: "integer", nullable: true }),
1011
- Index3()
1012
- ], CompanyProfile.prototype, "userId", 2);
1013
- __decorateClass([
1014
- ManyToOne5(() => User, (user) => user.otps),
1015
- JoinColumn5({ name: "user_id" })
1016
- ], CompanyProfile.prototype, "user", 2);
1017
- __decorateClass([
1018
- Column8({ name: "company_name", type: "varchar", nullable: true })
1019
- ], CompanyProfile.prototype, "companyName", 2);
1020
- __decorateClass([
1021
- Column8({ name: "skills", type: "text", nullable: true })
1022
- ], CompanyProfile.prototype, "skills", 2);
1023
- __decorateClass([
1024
- Column8({ name: "required_freelancer", type: "varchar", nullable: true })
1025
- ], CompanyProfile.prototype, "requiredFreelancer", 2);
1026
- __decorateClass([
1027
- Column8({
1028
- name: "kind_of_hiring",
1029
- type: "enum",
1030
- enum: KindOfHire,
1031
- nullable: true
1032
- })
1033
- ], CompanyProfile.prototype, "kindOfHiring", 2);
1034
- __decorateClass([
1035
- Column8({
1036
- name: "mode_of_hire",
1037
- type: "enum",
1038
- enum: ModeOfHire,
1039
- nullable: true
1040
- })
1041
- ], CompanyProfile.prototype, "modeOfHire", 2);
1042
- __decorateClass([
1043
- Column8({
1044
- name: "found_us_on",
1045
- type: "enum",
1046
- enum: FromUsOn,
1047
- nullable: true
1048
- })
1049
- ], CompanyProfile.prototype, "foundUsOn", 2);
1050
- CompanyProfile = __decorateClass([
1051
- Entity7("company_profiles")
1052
- ], CompanyProfile);
1053
1059
  export {
1054
1060
  AUTHENTICATION_PATTERN,
1055
1061
  AccountStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.63",
3
+ "version": "1.0.64",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",