@experts_hub/shared 1.0.49 → 1.0.51

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,9 +1,24 @@
1
1
  import { BaseEntity } from "./base.entity";
2
2
  import { User } from "./user.entity";
3
+ export declare enum ModeOfWork {
4
+ ONSITE = "ONSITE",
5
+ REMOTE = "REMOTE",
6
+ BOTH = "BOTH"
7
+ }
3
8
  export declare class FreelancerProfile extends BaseEntity {
4
9
  userId: number;
5
10
  user: User;
6
11
  resumeUrl: string;
7
12
  resumeData: string;
8
13
  isDeveloper: boolean;
14
+ currency: string;
15
+ expectedHourlyCompensation: number;
16
+ modeOfWork: ModeOfWork;
17
+ availabilityToJoin: string;
18
+ isImmediateJoiner: boolean;
19
+ linkedinProfileLink: string;
20
+ kaggleProfileLink: string;
21
+ githubProfileLink: string;
22
+ stackOverflowProfileLink: string;
23
+ portfolioLink: string;
9
24
  }
package/dist/index.d.mts CHANGED
@@ -30,6 +30,9 @@ declare const OTP_PATTERN: {
30
30
 
31
31
  declare const ONBOARDING_PATTERN: {
32
32
  handleFreelancerAccountCreation: string;
33
+ handleFreelancerResumeUpload: string;
34
+ handleFreelancerDeveloperPreference: string;
35
+ handleFreelancerProfileQuestion: string;
33
36
  handleClientAccountCreation: string;
34
37
  };
35
38
 
@@ -237,12 +240,27 @@ declare class Otp {
237
240
  user: User;
238
241
  }
239
242
 
243
+ declare enum ModeOfWork {
244
+ ONSITE = "ONSITE",
245
+ REMOTE = "REMOTE",
246
+ BOTH = "BOTH"
247
+ }
240
248
  declare class FreelancerProfile extends BaseEntity {
241
249
  userId: number;
242
250
  user: User;
243
251
  resumeUrl: string;
244
252
  resumeData: string;
245
253
  isDeveloper: boolean;
254
+ currency: string;
255
+ expectedHourlyCompensation: number;
256
+ modeOfWork: ModeOfWork;
257
+ availabilityToJoin: string;
258
+ isImmediateJoiner: boolean;
259
+ linkedinProfileLink: string;
260
+ kaggleProfileLink: string;
261
+ githubProfileLink: string;
262
+ stackOverflowProfileLink: string;
263
+ portfolioLink: string;
246
264
  }
247
265
 
248
266
  declare enum AccountType {
@@ -293,4 +311,4 @@ declare class Question extends BaseEntity {
293
311
  isActive: boolean;
294
312
  }
295
313
 
296
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, 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, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
314
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, 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, 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
@@ -30,6 +30,9 @@ declare const OTP_PATTERN: {
30
30
 
31
31
  declare const ONBOARDING_PATTERN: {
32
32
  handleFreelancerAccountCreation: string;
33
+ handleFreelancerResumeUpload: string;
34
+ handleFreelancerDeveloperPreference: string;
35
+ handleFreelancerProfileQuestion: string;
33
36
  handleClientAccountCreation: string;
34
37
  };
35
38
 
@@ -237,12 +240,27 @@ declare class Otp {
237
240
  user: User;
238
241
  }
239
242
 
243
+ declare enum ModeOfWork {
244
+ ONSITE = "ONSITE",
245
+ REMOTE = "REMOTE",
246
+ BOTH = "BOTH"
247
+ }
240
248
  declare class FreelancerProfile extends BaseEntity {
241
249
  userId: number;
242
250
  user: User;
243
251
  resumeUrl: string;
244
252
  resumeData: string;
245
253
  isDeveloper: boolean;
254
+ currency: string;
255
+ expectedHourlyCompensation: number;
256
+ modeOfWork: ModeOfWork;
257
+ availabilityToJoin: string;
258
+ isImmediateJoiner: boolean;
259
+ linkedinProfileLink: string;
260
+ kaggleProfileLink: string;
261
+ githubProfileLink: string;
262
+ stackOverflowProfileLink: string;
263
+ portfolioLink: string;
246
264
  }
247
265
 
248
266
  declare enum AccountType {
@@ -293,4 +311,4 @@ declare class Question extends BaseEntity {
293
311
  isActive: boolean;
294
312
  }
295
313
 
296
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, 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, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
314
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, 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, 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
@@ -38,6 +38,7 @@ __export(index_exports, {
38
38
  JobTCPAdapter: () => JobTCPAdapter,
39
39
  LoginDto: () => LoginDto,
40
40
  LogoutDto: () => LogoutDto,
41
+ ModeOfWork: () => ModeOfWork,
41
42
  ONBOARDING_PATTERN: () => ONBOARDING_PATTERN,
42
43
  OTP_PATTERN: () => OTP_PATTERN,
43
44
  Otp: () => Otp,
@@ -104,6 +105,9 @@ var OTP_PATTERN = {
104
105
  // src/modules/onboarding/pattern/pattern.ts
105
106
  var ONBOARDING_PATTERN = {
106
107
  handleFreelancerAccountCreation: "handle.freelancer.account.creation",
108
+ handleFreelancerResumeUpload: "handle.freelancer.resume.upload",
109
+ handleFreelancerDeveloperPreference: "handle.freelancer.developer.preference",
110
+ handleFreelancerProfileQuestion: "handle.freelancer.profile.question",
107
111
  handleClientAccountCreation: "handle.client.account.creation"
108
112
  };
109
113
 
@@ -527,6 +531,12 @@ Otp = __decorateClass([
527
531
 
528
532
  // src/entities/freelancer-profile.entity.ts
529
533
  var import_typeorm5 = require("typeorm");
534
+ var ModeOfWork = /* @__PURE__ */ ((ModeOfWork2) => {
535
+ ModeOfWork2["ONSITE"] = "ONSITE";
536
+ ModeOfWork2["REMOTE"] = "REMOTE";
537
+ ModeOfWork2["BOTH"] = "BOTH";
538
+ return ModeOfWork2;
539
+ })(ModeOfWork || {});
530
540
  var FreelancerProfile = class extends BaseEntity {
531
541
  };
532
542
  // individual index to find profile by user
@@ -547,6 +557,46 @@ __decorateClass([
547
557
  __decorateClass([
548
558
  (0, import_typeorm5.Column)({ name: "is_developer", type: "boolean", default: false })
549
559
  ], FreelancerProfile.prototype, "isDeveloper", 2);
560
+ __decorateClass([
561
+ (0, import_typeorm5.Column)({ name: "currency", type: "varchar", default: "USD" })
562
+ ], FreelancerProfile.prototype, "currency", 2);
563
+ __decorateClass([
564
+ (0, import_typeorm5.Column)({
565
+ type: "numeric",
566
+ precision: 10,
567
+ scale: 2,
568
+ nullable: true
569
+ })
570
+ ], FreelancerProfile.prototype, "expectedHourlyCompensation", 2);
571
+ __decorateClass([
572
+ (0, import_typeorm5.Column)({
573
+ name: "mode_of_work",
574
+ type: "enum",
575
+ enum: ModeOfWork,
576
+ nullable: true
577
+ })
578
+ ], FreelancerProfile.prototype, "modeOfWork", 2);
579
+ __decorateClass([
580
+ (0, import_typeorm5.Column)({ name: "availability_to_join", type: "varchar", nullable: true })
581
+ ], FreelancerProfile.prototype, "availabilityToJoin", 2);
582
+ __decorateClass([
583
+ (0, import_typeorm5.Column)({ name: "is_immediate_joiner", type: "boolean", nullable: true })
584
+ ], FreelancerProfile.prototype, "isImmediateJoiner", 2);
585
+ __decorateClass([
586
+ (0, import_typeorm5.Column)({ name: "linkedin_profile_link", type: "varchar", nullable: true })
587
+ ], FreelancerProfile.prototype, "linkedinProfileLink", 2);
588
+ __decorateClass([
589
+ (0, import_typeorm5.Column)({ name: "kaggle_profile_link", type: "varchar", nullable: true })
590
+ ], FreelancerProfile.prototype, "kaggleProfileLink", 2);
591
+ __decorateClass([
592
+ (0, import_typeorm5.Column)({ name: "github_profile_link", type: "varchar", nullable: true })
593
+ ], FreelancerProfile.prototype, "githubProfileLink", 2);
594
+ __decorateClass([
595
+ (0, import_typeorm5.Column)({ name: "stack_overflow_profile_link", type: "varchar", nullable: true })
596
+ ], FreelancerProfile.prototype, "stackOverflowProfileLink", 2);
597
+ __decorateClass([
598
+ (0, import_typeorm5.Column)({ name: "portfolio_link", type: "varchar", nullable: true })
599
+ ], FreelancerProfile.prototype, "portfolioLink", 2);
550
600
  FreelancerProfile = __decorateClass([
551
601
  (0, import_typeorm5.Entity)("freelancer_profiles")
552
602
  ], FreelancerProfile);
@@ -697,6 +747,7 @@ Question = __decorateClass([
697
747
  JobTCPAdapter,
698
748
  LoginDto,
699
749
  LogoutDto,
750
+ ModeOfWork,
700
751
  ONBOARDING_PATTERN,
701
752
  OTP_PATTERN,
702
753
  Otp,
package/dist/index.mjs CHANGED
@@ -62,6 +62,9 @@ var OTP_PATTERN = {
62
62
  // src/modules/onboarding/pattern/pattern.ts
63
63
  var ONBOARDING_PATTERN = {
64
64
  handleFreelancerAccountCreation: "handle.freelancer.account.creation",
65
+ handleFreelancerResumeUpload: "handle.freelancer.resume.upload",
66
+ handleFreelancerDeveloperPreference: "handle.freelancer.developer.preference",
67
+ handleFreelancerProfileQuestion: "handle.freelancer.profile.question",
65
68
  handleClientAccountCreation: "handle.client.account.creation"
66
69
  };
67
70
 
@@ -527,6 +530,12 @@ import {
527
530
  ManyToOne as ManyToOne4,
528
531
  JoinColumn as JoinColumn4
529
532
  } from "typeorm";
533
+ var ModeOfWork = /* @__PURE__ */ ((ModeOfWork2) => {
534
+ ModeOfWork2["ONSITE"] = "ONSITE";
535
+ ModeOfWork2["REMOTE"] = "REMOTE";
536
+ ModeOfWork2["BOTH"] = "BOTH";
537
+ return ModeOfWork2;
538
+ })(ModeOfWork || {});
530
539
  var FreelancerProfile = class extends BaseEntity {
531
540
  };
532
541
  // individual index to find profile by user
@@ -547,6 +556,46 @@ __decorateClass([
547
556
  __decorateClass([
548
557
  Column5({ name: "is_developer", type: "boolean", default: false })
549
558
  ], FreelancerProfile.prototype, "isDeveloper", 2);
559
+ __decorateClass([
560
+ Column5({ name: "currency", type: "varchar", default: "USD" })
561
+ ], FreelancerProfile.prototype, "currency", 2);
562
+ __decorateClass([
563
+ Column5({
564
+ type: "numeric",
565
+ precision: 10,
566
+ scale: 2,
567
+ nullable: true
568
+ })
569
+ ], FreelancerProfile.prototype, "expectedHourlyCompensation", 2);
570
+ __decorateClass([
571
+ Column5({
572
+ name: "mode_of_work",
573
+ type: "enum",
574
+ enum: ModeOfWork,
575
+ nullable: true
576
+ })
577
+ ], FreelancerProfile.prototype, "modeOfWork", 2);
578
+ __decorateClass([
579
+ Column5({ name: "availability_to_join", type: "varchar", nullable: true })
580
+ ], FreelancerProfile.prototype, "availabilityToJoin", 2);
581
+ __decorateClass([
582
+ Column5({ name: "is_immediate_joiner", type: "boolean", nullable: true })
583
+ ], FreelancerProfile.prototype, "isImmediateJoiner", 2);
584
+ __decorateClass([
585
+ Column5({ name: "linkedin_profile_link", type: "varchar", nullable: true })
586
+ ], FreelancerProfile.prototype, "linkedinProfileLink", 2);
587
+ __decorateClass([
588
+ Column5({ name: "kaggle_profile_link", type: "varchar", nullable: true })
589
+ ], FreelancerProfile.prototype, "kaggleProfileLink", 2);
590
+ __decorateClass([
591
+ Column5({ name: "github_profile_link", type: "varchar", nullable: true })
592
+ ], FreelancerProfile.prototype, "githubProfileLink", 2);
593
+ __decorateClass([
594
+ Column5({ name: "stack_overflow_profile_link", type: "varchar", nullable: true })
595
+ ], FreelancerProfile.prototype, "stackOverflowProfileLink", 2);
596
+ __decorateClass([
597
+ Column5({ name: "portfolio_link", type: "varchar", nullable: true })
598
+ ], FreelancerProfile.prototype, "portfolioLink", 2);
550
599
  FreelancerProfile = __decorateClass([
551
600
  Entity4("freelancer_profiles")
552
601
  ], FreelancerProfile);
@@ -696,6 +745,7 @@ export {
696
745
  JobTCPAdapter,
697
746
  LoginDto,
698
747
  LogoutDto,
748
+ ModeOfWork,
699
749
  ONBOARDING_PATTERN,
700
750
  OTP_PATTERN,
701
751
  Otp,
@@ -1,4 +1,7 @@
1
1
  export declare const ONBOARDING_PATTERN: {
2
2
  handleFreelancerAccountCreation: string;
3
+ handleFreelancerResumeUpload: string;
4
+ handleFreelancerDeveloperPreference: string;
5
+ handleFreelancerProfileQuestion: string;
3
6
  handleClientAccountCreation: string;
4
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",