@experts_hub/shared 1.0.56 → 1.0.58

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,28 @@
1
1
  import { BaseEntity } from "./base.entity";
2
+ import { User } from './user.entity';
3
+ export declare enum KindOfHire {
4
+ FULLTIME = "FULLTIME",
5
+ SHORTTIME = "SHORTTIME",
6
+ BOTH = "BOTH"
7
+ }
8
+ export declare enum ModeOfHire {
9
+ ONSITE = "ONSITE",
10
+ REMOTE = "REMOTE",
11
+ BOTH = "BOTH"
12
+ }
13
+ export declare enum FromUsOn {
14
+ LINKEDIN = "LINKEDIN",
15
+ GOOGLE = "GOOGLE",
16
+ REFERRAL = "REFERRAL",
17
+ OTHER = "OTHER"
18
+ }
2
19
  export declare class CompanyProfile extends BaseEntity {
3
20
  userId: number;
21
+ user: User;
4
22
  companyName: string;
23
+ skills: string[];
24
+ requiredFreelancer: string;
25
+ kindOfHiring: KindOfHire;
26
+ modeOfHire: ModeOfHire;
27
+ foundUsOn: FromUsOn;
5
28
  }
package/dist/index.d.mts CHANGED
@@ -33,6 +33,7 @@ declare const ONBOARDING_PATTERN: {
33
33
  handleFreelancerResumeUpload: string;
34
34
  handleFreelancerDeveloperPreference: string;
35
35
  handleFreelancerProfileQuestion: string;
36
+ handleClientProfileQuestion: string;
36
37
  handleClientAccountCreation: string;
37
38
  };
38
39
 
@@ -323,9 +324,31 @@ declare class Question extends BaseEntity {
323
324
  isActive: boolean;
324
325
  }
325
326
 
327
+ declare enum KindOfHire {
328
+ FULLTIME = "FULLTIME",
329
+ SHORTTIME = "SHORTTIME",
330
+ BOTH = "BOTH"
331
+ }
332
+ declare enum ModeOfHire {
333
+ ONSITE = "ONSITE",
334
+ REMOTE = "REMOTE",
335
+ BOTH = "BOTH"
336
+ }
337
+ declare enum FromUsOn {
338
+ LINKEDIN = "LINKEDIN",
339
+ GOOGLE = "GOOGLE",
340
+ REFERRAL = "REFERRAL",
341
+ OTHER = "OTHER"
342
+ }
326
343
  declare class CompanyProfile extends BaseEntity {
327
344
  userId: number;
345
+ user: User;
328
346
  companyName: string;
347
+ skills: string[];
348
+ requiredFreelancer: string;
349
+ kindOfHiring: KindOfHire;
350
+ modeOfHire: ModeOfHire;
351
+ foundUsOn: FromUsOn;
329
352
  }
330
353
 
331
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerProfile, 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, LoginDto, LogoutDto, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
354
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerProfile, 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
@@ -33,6 +33,7 @@ declare const ONBOARDING_PATTERN: {
33
33
  handleFreelancerResumeUpload: string;
34
34
  handleFreelancerDeveloperPreference: string;
35
35
  handleFreelancerProfileQuestion: string;
36
+ handleClientProfileQuestion: string;
36
37
  handleClientAccountCreation: string;
37
38
  };
38
39
 
@@ -323,9 +324,31 @@ declare class Question extends BaseEntity {
323
324
  isActive: boolean;
324
325
  }
325
326
 
327
+ declare enum KindOfHire {
328
+ FULLTIME = "FULLTIME",
329
+ SHORTTIME = "SHORTTIME",
330
+ BOTH = "BOTH"
331
+ }
332
+ declare enum ModeOfHire {
333
+ ONSITE = "ONSITE",
334
+ REMOTE = "REMOTE",
335
+ BOTH = "BOTH"
336
+ }
337
+ declare enum FromUsOn {
338
+ LINKEDIN = "LINKEDIN",
339
+ GOOGLE = "GOOGLE",
340
+ REFERRAL = "REFERRAL",
341
+ OTHER = "OTHER"
342
+ }
326
343
  declare class CompanyProfile extends BaseEntity {
327
344
  userId: number;
345
+ user: User;
328
346
  companyName: string;
347
+ skills: string[];
348
+ requiredFreelancer: string;
349
+ kindOfHiring: KindOfHire;
350
+ modeOfHire: ModeOfHire;
351
+ foundUsOn: FromUsOn;
329
352
  }
330
353
 
331
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerProfile, 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, LoginDto, LogoutDto, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
354
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerProfile, 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
@@ -35,10 +35,13 @@ __export(index_exports, {
35
35
  CreateQuestionDto: () => CreateQuestionDto,
36
36
  CreateSubAdminDto: () => CreateSubAdminDto,
37
37
  FreelancerProfile: () => FreelancerProfile,
38
+ FromUsOn: () => FromUsOn,
38
39
  JobRMQAdapter: () => JobRMQAdapter,
39
40
  JobTCPAdapter: () => JobTCPAdapter,
41
+ KindOfHire: () => KindOfHire,
40
42
  LoginDto: () => LoginDto,
41
43
  LogoutDto: () => LogoutDto,
44
+ ModeOfHire: () => ModeOfHire,
42
45
  ModeOfWork: () => ModeOfWork,
43
46
  NatureOfWork: () => NatureOfWork,
44
47
  ONBOARDING_PATTERN: () => ONBOARDING_PATTERN,
@@ -110,6 +113,7 @@ var ONBOARDING_PATTERN = {
110
113
  handleFreelancerResumeUpload: "handle.freelancer.resume.upload",
111
114
  handleFreelancerDeveloperPreference: "handle.freelancer.developer.preference",
112
115
  handleFreelancerProfileQuestion: "handle.freelancer.profile.question",
116
+ handleClientProfileQuestion: "handle.client.profile.question",
113
117
  handleClientAccountCreation: "handle.client.account.creation"
114
118
  };
115
119
 
@@ -760,6 +764,25 @@ Question = __decorateClass([
760
764
 
761
765
  // src/entities/company-profile.entity.ts
762
766
  var import_typeorm8 = require("typeorm");
767
+ var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
768
+ KindOfHire2["FULLTIME"] = "FULLTIME";
769
+ KindOfHire2["SHORTTIME"] = "SHORTTIME";
770
+ KindOfHire2["BOTH"] = "BOTH";
771
+ return KindOfHire2;
772
+ })(KindOfHire || {});
773
+ var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
774
+ ModeOfHire2["ONSITE"] = "ONSITE";
775
+ ModeOfHire2["REMOTE"] = "REMOTE";
776
+ ModeOfHire2["BOTH"] = "BOTH";
777
+ return ModeOfHire2;
778
+ })(ModeOfHire || {});
779
+ var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
780
+ FromUsOn2["LINKEDIN"] = "LINKEDIN";
781
+ FromUsOn2["GOOGLE"] = "GOOGLE";
782
+ FromUsOn2["REFERRAL"] = "REFERRAL";
783
+ FromUsOn2["OTHER"] = "OTHER";
784
+ return FromUsOn2;
785
+ })(FromUsOn || {});
763
786
  var CompanyProfile = class extends BaseEntity {
764
787
  };
765
788
  // individual index to find company profile by user
@@ -768,8 +791,42 @@ __decorateClass([
768
791
  (0, import_typeorm8.Index)()
769
792
  ], CompanyProfile.prototype, "userId", 2);
770
793
  __decorateClass([
771
- (0, import_typeorm8.Column)({ name: "company_name", type: "varchar" })
794
+ (0, import_typeorm8.ManyToOne)(() => User, (user) => user.otps),
795
+ (0, import_typeorm8.JoinColumn)({ name: "user_id" })
796
+ ], CompanyProfile.prototype, "user", 2);
797
+ __decorateClass([
798
+ (0, import_typeorm8.Column)({ name: "company_name", type: "varchar", nullable: true })
772
799
  ], CompanyProfile.prototype, "companyName", 2);
800
+ __decorateClass([
801
+ (0, import_typeorm8.Column)({ name: "skills", type: "text", nullable: true })
802
+ ], CompanyProfile.prototype, "skills", 2);
803
+ __decorateClass([
804
+ (0, import_typeorm8.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
805
+ ], CompanyProfile.prototype, "requiredFreelancer", 2);
806
+ __decorateClass([
807
+ (0, import_typeorm8.Column)({
808
+ name: "kind_of_hiring",
809
+ type: "enum",
810
+ enum: KindOfHire,
811
+ nullable: true
812
+ })
813
+ ], CompanyProfile.prototype, "kindOfHiring", 2);
814
+ __decorateClass([
815
+ (0, import_typeorm8.Column)({
816
+ name: "mode_of_hire",
817
+ type: "enum",
818
+ enum: ModeOfHire,
819
+ nullable: true
820
+ })
821
+ ], CompanyProfile.prototype, "modeOfHire", 2);
822
+ __decorateClass([
823
+ (0, import_typeorm8.Column)({
824
+ name: "found_us_on",
825
+ type: "enum",
826
+ enum: FromUsOn,
827
+ nullable: true
828
+ })
829
+ ], CompanyProfile.prototype, "foundUsOn", 2);
773
830
  CompanyProfile = __decorateClass([
774
831
  (0, import_typeorm8.Entity)("company_profiles")
775
832
  ], CompanyProfile);
@@ -783,10 +840,13 @@ CompanyProfile = __decorateClass([
783
840
  CreateQuestionDto,
784
841
  CreateSubAdminDto,
785
842
  FreelancerProfile,
843
+ FromUsOn,
786
844
  JobRMQAdapter,
787
845
  JobTCPAdapter,
846
+ KindOfHire,
788
847
  LoginDto,
789
848
  LogoutDto,
849
+ ModeOfHire,
790
850
  ModeOfWork,
791
851
  NatureOfWork,
792
852
  ONBOARDING_PATTERN,
package/dist/index.mjs CHANGED
@@ -65,6 +65,7 @@ var ONBOARDING_PATTERN = {
65
65
  handleFreelancerResumeUpload: "handle.freelancer.resume.upload",
66
66
  handleFreelancerDeveloperPreference: "handle.freelancer.developer.preference",
67
67
  handleFreelancerProfileQuestion: "handle.freelancer.profile.question",
68
+ handleClientProfileQuestion: "handle.client.profile.question",
68
69
  handleClientAccountCreation: "handle.client.account.creation"
69
70
  };
70
71
 
@@ -759,8 +760,29 @@ Question = __decorateClass([
759
760
  import {
760
761
  Entity as Entity7,
761
762
  Column as Column8,
763
+ ManyToOne as ManyToOne5,
764
+ JoinColumn as JoinColumn5,
762
765
  Index as Index3
763
766
  } from "typeorm";
767
+ var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
768
+ KindOfHire2["FULLTIME"] = "FULLTIME";
769
+ KindOfHire2["SHORTTIME"] = "SHORTTIME";
770
+ KindOfHire2["BOTH"] = "BOTH";
771
+ return KindOfHire2;
772
+ })(KindOfHire || {});
773
+ var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
774
+ ModeOfHire2["ONSITE"] = "ONSITE";
775
+ ModeOfHire2["REMOTE"] = "REMOTE";
776
+ ModeOfHire2["BOTH"] = "BOTH";
777
+ return ModeOfHire2;
778
+ })(ModeOfHire || {});
779
+ var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
780
+ FromUsOn2["LINKEDIN"] = "LINKEDIN";
781
+ FromUsOn2["GOOGLE"] = "GOOGLE";
782
+ FromUsOn2["REFERRAL"] = "REFERRAL";
783
+ FromUsOn2["OTHER"] = "OTHER";
784
+ return FromUsOn2;
785
+ })(FromUsOn || {});
764
786
  var CompanyProfile = class extends BaseEntity {
765
787
  };
766
788
  // individual index to find company profile by user
@@ -769,8 +791,42 @@ __decorateClass([
769
791
  Index3()
770
792
  ], CompanyProfile.prototype, "userId", 2);
771
793
  __decorateClass([
772
- Column8({ name: "company_name", type: "varchar" })
794
+ ManyToOne5(() => User, (user) => user.otps),
795
+ JoinColumn5({ name: "user_id" })
796
+ ], CompanyProfile.prototype, "user", 2);
797
+ __decorateClass([
798
+ Column8({ name: "company_name", type: "varchar", nullable: true })
773
799
  ], CompanyProfile.prototype, "companyName", 2);
800
+ __decorateClass([
801
+ Column8({ name: "skills", type: "text", nullable: true })
802
+ ], CompanyProfile.prototype, "skills", 2);
803
+ __decorateClass([
804
+ Column8({ name: "required_freelancer", type: "varchar", nullable: true })
805
+ ], CompanyProfile.prototype, "requiredFreelancer", 2);
806
+ __decorateClass([
807
+ Column8({
808
+ name: "kind_of_hiring",
809
+ type: "enum",
810
+ enum: KindOfHire,
811
+ nullable: true
812
+ })
813
+ ], CompanyProfile.prototype, "kindOfHiring", 2);
814
+ __decorateClass([
815
+ Column8({
816
+ name: "mode_of_hire",
817
+ type: "enum",
818
+ enum: ModeOfHire,
819
+ nullable: true
820
+ })
821
+ ], CompanyProfile.prototype, "modeOfHire", 2);
822
+ __decorateClass([
823
+ Column8({
824
+ name: "found_us_on",
825
+ type: "enum",
826
+ enum: FromUsOn,
827
+ nullable: true
828
+ })
829
+ ], CompanyProfile.prototype, "foundUsOn", 2);
774
830
  CompanyProfile = __decorateClass([
775
831
  Entity7("company_profiles")
776
832
  ], CompanyProfile);
@@ -783,10 +839,13 @@ export {
783
839
  CreateQuestionDto,
784
840
  CreateSubAdminDto,
785
841
  FreelancerProfile,
842
+ FromUsOn,
786
843
  JobRMQAdapter,
787
844
  JobTCPAdapter,
845
+ KindOfHire,
788
846
  LoginDto,
789
847
  LogoutDto,
848
+ ModeOfHire,
790
849
  ModeOfWork,
791
850
  NatureOfWork,
792
851
  ONBOARDING_PATTERN,
@@ -3,5 +3,6 @@ export declare const ONBOARDING_PATTERN: {
3
3
  handleFreelancerResumeUpload: string;
4
4
  handleFreelancerDeveloperPreference: string;
5
5
  handleFreelancerProfileQuestion: string;
6
+ handleClientProfileQuestion: string;
6
7
  handleClientAccountCreation: string;
7
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",