@experts_hub/shared 1.0.45 → 1.0.47

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.
@@ -0,0 +1,9 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { User } from "./user.entity";
3
+ export declare class FreelancerProfile extends BaseEntity {
4
+ userId: number;
5
+ user: User;
6
+ resumeUrl: string;
7
+ resumeData: string;
8
+ isDeveloper: boolean;
9
+ }
@@ -4,3 +4,4 @@ export * from './refresh-token.entity';
4
4
  export * from './resume-parser-log.entity';
5
5
  export * from './question.entity';
6
6
  export * from './otp.entity';
7
+ export * from './freelancer-profile.entity';
@@ -1,7 +1,8 @@
1
- import { BaseEntity } from './base.entity';
2
- import { RefreshToken } from './refresh-token.entity';
3
- import { ResumeParserLog } from './resume-parser-log.entity';
4
- import { Otp } from './otp.entity';
1
+ import { BaseEntity } from "./base.entity";
2
+ import { RefreshToken } from "./refresh-token.entity";
3
+ import { ResumeParserLog } from "./resume-parser-log.entity";
4
+ import { Otp } from "./otp.entity";
5
+ import { FreelancerProfile } from "./freelancer-profile.entity";
5
6
  export declare enum AccountType {
6
7
  ADMIN = "ADMIN",
7
8
  SUB_ADMIN = "SUB_ADMIN",
@@ -23,6 +24,7 @@ export declare class User extends BaseEntity {
23
24
  gender: string;
24
25
  profilePictureUrl: string;
25
26
  email: string;
27
+ mobileCode: string;
26
28
  mobile: string;
27
29
  password: string;
28
30
  accountType: AccountType;
@@ -34,4 +36,5 @@ export declare class User extends BaseEntity {
34
36
  refreshTokens: RefreshToken[];
35
37
  otps: Otp[];
36
38
  resumeParserLogs: ResumeParserLog[];
39
+ freelancerProfile: FreelancerProfile;
37
40
  }
package/dist/index.d.mts CHANGED
@@ -236,6 +236,14 @@ declare class Otp {
236
236
  user: User;
237
237
  }
238
238
 
239
+ declare class FreelancerProfile extends BaseEntity {
240
+ userId: number;
241
+ user: User;
242
+ resumeUrl: string;
243
+ resumeData: string;
244
+ isDeveloper: boolean;
245
+ }
246
+
239
247
  declare enum AccountType {
240
248
  ADMIN = "ADMIN",
241
249
  SUB_ADMIN = "SUB_ADMIN",
@@ -257,6 +265,7 @@ declare class User extends BaseEntity {
257
265
  gender: string;
258
266
  profilePictureUrl: string;
259
267
  email: string;
268
+ mobileCode: string;
260
269
  mobile: string;
261
270
  password: string;
262
271
  accountType: AccountType;
@@ -268,6 +277,7 @@ declare class User extends BaseEntity {
268
277
  refreshTokens: RefreshToken[];
269
278
  otps: Otp[];
270
279
  resumeParserLogs: ResumeParserLog[];
280
+ freelancerProfile: FreelancerProfile;
271
281
  }
272
282
 
273
283
  declare enum QuestionFor {
@@ -282,4 +292,4 @@ declare class Question extends BaseEntity {
282
292
  isActive: boolean;
283
293
  }
284
294
 
285
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateQuestionDto, CreateSubAdminDto, 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 };
295
+ 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 };
package/dist/index.d.ts CHANGED
@@ -236,6 +236,14 @@ declare class Otp {
236
236
  user: User;
237
237
  }
238
238
 
239
+ declare class FreelancerProfile extends BaseEntity {
240
+ userId: number;
241
+ user: User;
242
+ resumeUrl: string;
243
+ resumeData: string;
244
+ isDeveloper: boolean;
245
+ }
246
+
239
247
  declare enum AccountType {
240
248
  ADMIN = "ADMIN",
241
249
  SUB_ADMIN = "SUB_ADMIN",
@@ -257,6 +265,7 @@ declare class User extends BaseEntity {
257
265
  gender: string;
258
266
  profilePictureUrl: string;
259
267
  email: string;
268
+ mobileCode: string;
260
269
  mobile: string;
261
270
  password: string;
262
271
  accountType: AccountType;
@@ -268,6 +277,7 @@ declare class User extends BaseEntity {
268
277
  refreshTokens: RefreshToken[];
269
278
  otps: Otp[];
270
279
  resumeParserLogs: ResumeParserLog[];
280
+ freelancerProfile: FreelancerProfile;
271
281
  }
272
282
 
273
283
  declare enum QuestionFor {
@@ -282,4 +292,4 @@ declare class Question extends BaseEntity {
282
292
  isActive: boolean;
283
293
  }
284
294
 
285
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateQuestionDto, CreateSubAdminDto, 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 };
295
+ 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 };
package/dist/index.js CHANGED
@@ -33,6 +33,7 @@ __export(index_exports, {
33
33
  BaseEntity: () => BaseEntity,
34
34
  CreateQuestionDto: () => CreateQuestionDto,
35
35
  CreateSubAdminDto: () => CreateSubAdminDto,
36
+ FreelancerProfile: () => FreelancerProfile,
36
37
  JobRMQAdapter: () => JobRMQAdapter,
37
38
  JobTCPAdapter: () => JobTCPAdapter,
38
39
  LoginDto: () => LoginDto,
@@ -402,7 +403,7 @@ __decorateClass([
402
403
  ], BaseEntity.prototype, "deletedAt", 2);
403
404
 
404
405
  // src/entities/user.entity.ts
405
- var import_typeorm5 = require("typeorm");
406
+ var import_typeorm6 = require("typeorm");
406
407
 
407
408
  // src/entities/refresh-token.entity.ts
408
409
  var import_typeorm2 = require("typeorm");
@@ -523,6 +524,32 @@ Otp = __decorateClass([
523
524
  (0, import_typeorm4.Index)(["userId", "otp", "otpPurpose", "isUsed"])
524
525
  ], Otp);
525
526
 
527
+ // src/entities/freelancer-profile.entity.ts
528
+ var import_typeorm5 = require("typeorm");
529
+ var FreelancerProfile = class extends BaseEntity {
530
+ };
531
+ // individual index to find profile by user
532
+ __decorateClass([
533
+ (0, import_typeorm5.Column)({ name: "user_id", type: "integer", nullable: true }),
534
+ (0, import_typeorm5.Index)()
535
+ ], FreelancerProfile.prototype, "userId", 2);
536
+ __decorateClass([
537
+ (0, import_typeorm5.ManyToOne)(() => User, (user) => user.otps),
538
+ (0, import_typeorm5.JoinColumn)({ name: "user_id" })
539
+ ], FreelancerProfile.prototype, "user", 2);
540
+ __decorateClass([
541
+ (0, import_typeorm5.Column)({ name: "resume_url", type: "text", nullable: true })
542
+ ], FreelancerProfile.prototype, "resumeUrl", 2);
543
+ __decorateClass([
544
+ (0, import_typeorm5.Column)({ name: "resume_data", type: "jsonb", nullable: true })
545
+ ], FreelancerProfile.prototype, "resumeData", 2);
546
+ __decorateClass([
547
+ (0, import_typeorm5.Column)({ name: "is_developer", type: "boolean", default: false })
548
+ ], FreelancerProfile.prototype, "isDeveloper", 2);
549
+ FreelancerProfile = __decorateClass([
550
+ (0, import_typeorm5.Entity)("freelancer_profiles")
551
+ ], FreelancerProfile);
552
+
526
553
  // src/entities/user.entity.ts
527
554
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
528
555
  AccountType2["ADMIN"] = "ADMIN";
@@ -541,37 +568,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
541
568
  var User = class extends BaseEntity {
542
569
  };
543
570
  __decorateClass([
544
- (0, import_typeorm5.Column)({ name: "unique_id", type: "varchar", unique: true })
571
+ (0, import_typeorm6.Column)({ name: "unique_id", type: "varchar", unique: true })
545
572
  ], User.prototype, "uniqueId", 2);
546
573
  __decorateClass([
547
- (0, import_typeorm5.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
574
+ (0, import_typeorm6.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
548
575
  ], User.prototype, "username", 2);
549
576
  __decorateClass([
550
- (0, import_typeorm5.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
577
+ (0, import_typeorm6.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
551
578
  ], User.prototype, "firstName", 2);
552
579
  __decorateClass([
553
- (0, import_typeorm5.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
580
+ (0, import_typeorm6.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
554
581
  ], User.prototype, "lastName", 2);
555
582
  __decorateClass([
556
- (0, import_typeorm5.Column)({ name: "date_of_birth", type: "date", nullable: true })
583
+ (0, import_typeorm6.Column)({ name: "date_of_birth", type: "date", nullable: true })
557
584
  ], User.prototype, "dateOfBirth", 2);
558
585
  __decorateClass([
559
- (0, import_typeorm5.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
586
+ (0, import_typeorm6.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
560
587
  ], User.prototype, "gender", 2);
561
588
  __decorateClass([
562
- (0, import_typeorm5.Column)({ name: "profile_picture_url", type: "text", nullable: true })
589
+ (0, import_typeorm6.Column)({ name: "profile_picture_url", type: "text", nullable: true })
563
590
  ], User.prototype, "profilePictureUrl", 2);
564
591
  __decorateClass([
565
- (0, import_typeorm5.Column)({ name: "email", type: "varchar", unique: true })
592
+ (0, import_typeorm6.Column)({ name: "email", type: "varchar", unique: true })
566
593
  ], User.prototype, "email", 2);
567
594
  __decorateClass([
568
- (0, import_typeorm5.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
595
+ (0, import_typeorm6.Column)({ name: "mobile_code", type: "varchar", nullable: true })
596
+ ], User.prototype, "mobileCode", 2);
597
+ __decorateClass([
598
+ (0, import_typeorm6.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
569
599
  ], User.prototype, "mobile", 2);
570
600
  __decorateClass([
571
- (0, import_typeorm5.Column)({ name: "password", type: "varchar" })
601
+ (0, import_typeorm6.Column)({ name: "password", type: "varchar" })
572
602
  ], User.prototype, "password", 2);
573
603
  __decorateClass([
574
- (0, import_typeorm5.Column)({
604
+ (0, import_typeorm6.Column)({
575
605
  name: "account_type",
576
606
  type: "enum",
577
607
  enum: AccountType,
@@ -579,7 +609,7 @@ __decorateClass([
579
609
  })
580
610
  ], User.prototype, "accountType", 2);
581
611
  __decorateClass([
582
- (0, import_typeorm5.Column)({
612
+ (0, import_typeorm6.Column)({
583
613
  name: "account_status",
584
614
  type: "enum",
585
615
  enum: AccountStatus,
@@ -587,32 +617,42 @@ __decorateClass([
587
617
  })
588
618
  ], User.prototype, "accountStatus", 2);
589
619
  __decorateClass([
590
- (0, import_typeorm5.Column)({ name: "is_email_verified", type: "boolean", default: false })
620
+ (0, import_typeorm6.Column)({ name: "is_email_verified", type: "boolean", default: false })
591
621
  ], User.prototype, "isEmailVerified", 2);
592
622
  __decorateClass([
593
- (0, import_typeorm5.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
623
+ (0, import_typeorm6.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
594
624
  ], User.prototype, "isMobileVerified", 2);
595
625
  __decorateClass([
596
- (0, import_typeorm5.Column)({ name: "last_login_at", type: "timestamp with time zone", nullable: true })
626
+ (0, import_typeorm6.Column)({
627
+ name: "last_login_at",
628
+ type: "timestamp with time zone",
629
+ nullable: true
630
+ })
597
631
  ], User.prototype, "lastLoginAt", 2);
598
632
  __decorateClass([
599
- (0, import_typeorm5.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
633
+ (0, import_typeorm6.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
600
634
  ], User.prototype, "lastLoginIp", 2);
601
635
  __decorateClass([
602
- (0, import_typeorm5.OneToMany)(() => RefreshToken, (token) => token.user)
636
+ (0, import_typeorm6.OneToMany)(() => RefreshToken, (token) => token.user)
603
637
  ], User.prototype, "refreshTokens", 2);
604
638
  __decorateClass([
605
- (0, import_typeorm5.OneToMany)(() => Otp, (otp) => otp.user)
639
+ (0, import_typeorm6.OneToMany)(() => Otp, (otp) => otp.user)
606
640
  ], User.prototype, "otps", 2);
607
641
  __decorateClass([
608
- (0, import_typeorm5.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
642
+ (0, import_typeorm6.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
609
643
  ], User.prototype, "resumeParserLogs", 2);
644
+ __decorateClass([
645
+ (0, import_typeorm6.OneToOne)(
646
+ () => FreelancerProfile,
647
+ (freelancerProfile) => freelancerProfile.user
648
+ )
649
+ ], User.prototype, "freelancerProfile", 2);
610
650
  User = __decorateClass([
611
- (0, import_typeorm5.Entity)("users")
651
+ (0, import_typeorm6.Entity)("users")
612
652
  ], User);
613
653
 
614
654
  // src/entities/question.entity.ts
615
- var import_typeorm6 = require("typeorm");
655
+ var import_typeorm7 = require("typeorm");
616
656
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
617
657
  QuestionFor2["CLIENT"] = "CLIENT";
618
658
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -621,13 +661,13 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
621
661
  var Question = class extends BaseEntity {
622
662
  };
623
663
  __decorateClass([
624
- (0, import_typeorm6.Column)({ name: "question_id", type: "integer" })
664
+ (0, import_typeorm7.Column)({ name: "question_id", type: "integer" })
625
665
  ], Question.prototype, "questionId", 2);
626
666
  __decorateClass([
627
- (0, import_typeorm6.Column)({ name: "question", type: "varchar", unique: true })
667
+ (0, import_typeorm7.Column)({ name: "question", type: "varchar", unique: true })
628
668
  ], Question.prototype, "question", 2);
629
669
  __decorateClass([
630
- (0, import_typeorm6.Column)({
670
+ (0, import_typeorm7.Column)({
631
671
  name: "question_for",
632
672
  type: "enum",
633
673
  enum: QuestionFor,
@@ -635,13 +675,13 @@ __decorateClass([
635
675
  })
636
676
  ], Question.prototype, "questionFor", 2);
637
677
  __decorateClass([
638
- (0, import_typeorm6.Column)({ name: "options", type: "varchar", array: true })
678
+ (0, import_typeorm7.Column)({ name: "options", type: "varchar", array: true })
639
679
  ], Question.prototype, "options", 2);
640
680
  __decorateClass([
641
- (0, import_typeorm6.Column)({ name: "is_active", type: "boolean", default: false })
681
+ (0, import_typeorm7.Column)({ name: "is_active", type: "boolean", default: false })
642
682
  ], Question.prototype, "isActive", 2);
643
683
  Question = __decorateClass([
644
- (0, import_typeorm6.Entity)("questions")
684
+ (0, import_typeorm7.Entity)("questions")
645
685
  ], Question);
646
686
  // Annotate the CommonJS export names for ESM import in node:
647
687
  0 && (module.exports = {
@@ -651,6 +691,7 @@ Question = __decorateClass([
651
691
  BaseEntity,
652
692
  CreateQuestionDto,
653
693
  CreateSubAdminDto,
694
+ FreelancerProfile,
654
695
  JobRMQAdapter,
655
696
  JobTCPAdapter,
656
697
  LoginDto,
package/dist/index.mjs CHANGED
@@ -374,7 +374,7 @@ __decorateClass([
374
374
  ], BaseEntity.prototype, "deletedAt", 2);
375
375
 
376
376
  // src/entities/user.entity.ts
377
- import { Entity as Entity4, Column as Column5, OneToMany } from "typeorm";
377
+ import { Entity as Entity5, Column as Column6, OneToMany as OneToMany2, OneToOne } from "typeorm";
378
378
 
379
379
  // src/entities/refresh-token.entity.ts
380
380
  import {
@@ -518,6 +518,38 @@ Otp = __decorateClass([
518
518
  Index(["userId", "otp", "otpPurpose", "isUsed"])
519
519
  ], Otp);
520
520
 
521
+ // src/entities/freelancer-profile.entity.ts
522
+ import {
523
+ Entity as Entity4,
524
+ Column as Column5,
525
+ Index as Index2,
526
+ ManyToOne as ManyToOne4,
527
+ JoinColumn as JoinColumn4
528
+ } from "typeorm";
529
+ var FreelancerProfile = class extends BaseEntity {
530
+ };
531
+ // individual index to find profile by user
532
+ __decorateClass([
533
+ Column5({ name: "user_id", type: "integer", nullable: true }),
534
+ Index2()
535
+ ], FreelancerProfile.prototype, "userId", 2);
536
+ __decorateClass([
537
+ ManyToOne4(() => User, (user) => user.otps),
538
+ JoinColumn4({ name: "user_id" })
539
+ ], FreelancerProfile.prototype, "user", 2);
540
+ __decorateClass([
541
+ Column5({ name: "resume_url", type: "text", nullable: true })
542
+ ], FreelancerProfile.prototype, "resumeUrl", 2);
543
+ __decorateClass([
544
+ Column5({ name: "resume_data", type: "jsonb", nullable: true })
545
+ ], FreelancerProfile.prototype, "resumeData", 2);
546
+ __decorateClass([
547
+ Column5({ name: "is_developer", type: "boolean", default: false })
548
+ ], FreelancerProfile.prototype, "isDeveloper", 2);
549
+ FreelancerProfile = __decorateClass([
550
+ Entity4("freelancer_profiles")
551
+ ], FreelancerProfile);
552
+
521
553
  // src/entities/user.entity.ts
522
554
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
523
555
  AccountType2["ADMIN"] = "ADMIN";
@@ -536,37 +568,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
536
568
  var User = class extends BaseEntity {
537
569
  };
538
570
  __decorateClass([
539
- Column5({ name: "unique_id", type: "varchar", unique: true })
571
+ Column6({ name: "unique_id", type: "varchar", unique: true })
540
572
  ], User.prototype, "uniqueId", 2);
541
573
  __decorateClass([
542
- Column5({ name: "username", type: "varchar", unique: true, nullable: true })
574
+ Column6({ name: "username", type: "varchar", unique: true, nullable: true })
543
575
  ], User.prototype, "username", 2);
544
576
  __decorateClass([
545
- Column5({ name: "first_name", type: "varchar", length: 100, nullable: true })
577
+ Column6({ name: "first_name", type: "varchar", length: 100, nullable: true })
546
578
  ], User.prototype, "firstName", 2);
547
579
  __decorateClass([
548
- Column5({ name: "last_name", type: "varchar", length: 100, nullable: true })
580
+ Column6({ name: "last_name", type: "varchar", length: 100, nullable: true })
549
581
  ], User.prototype, "lastName", 2);
550
582
  __decorateClass([
551
- Column5({ name: "date_of_birth", type: "date", nullable: true })
583
+ Column6({ name: "date_of_birth", type: "date", nullable: true })
552
584
  ], User.prototype, "dateOfBirth", 2);
553
585
  __decorateClass([
554
- Column5({ name: "gender", type: "varchar", length: 10, nullable: true })
586
+ Column6({ name: "gender", type: "varchar", length: 10, nullable: true })
555
587
  ], User.prototype, "gender", 2);
556
588
  __decorateClass([
557
- Column5({ name: "profile_picture_url", type: "text", nullable: true })
589
+ Column6({ name: "profile_picture_url", type: "text", nullable: true })
558
590
  ], User.prototype, "profilePictureUrl", 2);
559
591
  __decorateClass([
560
- Column5({ name: "email", type: "varchar", unique: true })
592
+ Column6({ name: "email", type: "varchar", unique: true })
561
593
  ], User.prototype, "email", 2);
562
594
  __decorateClass([
563
- Column5({ name: "mobile", type: "varchar", unique: true, nullable: true })
595
+ Column6({ name: "mobile_code", type: "varchar", nullable: true })
596
+ ], User.prototype, "mobileCode", 2);
597
+ __decorateClass([
598
+ Column6({ name: "mobile", type: "varchar", unique: true, nullable: true })
564
599
  ], User.prototype, "mobile", 2);
565
600
  __decorateClass([
566
- Column5({ name: "password", type: "varchar" })
601
+ Column6({ name: "password", type: "varchar" })
567
602
  ], User.prototype, "password", 2);
568
603
  __decorateClass([
569
- Column5({
604
+ Column6({
570
605
  name: "account_type",
571
606
  type: "enum",
572
607
  enum: AccountType,
@@ -574,7 +609,7 @@ __decorateClass([
574
609
  })
575
610
  ], User.prototype, "accountType", 2);
576
611
  __decorateClass([
577
- Column5({
612
+ Column6({
578
613
  name: "account_status",
579
614
  type: "enum",
580
615
  enum: AccountStatus,
@@ -582,32 +617,42 @@ __decorateClass([
582
617
  })
583
618
  ], User.prototype, "accountStatus", 2);
584
619
  __decorateClass([
585
- Column5({ name: "is_email_verified", type: "boolean", default: false })
620
+ Column6({ name: "is_email_verified", type: "boolean", default: false })
586
621
  ], User.prototype, "isEmailVerified", 2);
587
622
  __decorateClass([
588
- Column5({ name: "is_mobile_verified", type: "boolean", default: false })
623
+ Column6({ name: "is_mobile_verified", type: "boolean", default: false })
589
624
  ], User.prototype, "isMobileVerified", 2);
590
625
  __decorateClass([
591
- Column5({ name: "last_login_at", type: "timestamp with time zone", nullable: true })
626
+ Column6({
627
+ name: "last_login_at",
628
+ type: "timestamp with time zone",
629
+ nullable: true
630
+ })
592
631
  ], User.prototype, "lastLoginAt", 2);
593
632
  __decorateClass([
594
- Column5({ name: "last_login_ip", type: "varchar", nullable: true })
633
+ Column6({ name: "last_login_ip", type: "varchar", nullable: true })
595
634
  ], User.prototype, "lastLoginIp", 2);
596
635
  __decorateClass([
597
- OneToMany(() => RefreshToken, (token) => token.user)
636
+ OneToMany2(() => RefreshToken, (token) => token.user)
598
637
  ], User.prototype, "refreshTokens", 2);
599
638
  __decorateClass([
600
- OneToMany(() => Otp, (otp) => otp.user)
639
+ OneToMany2(() => Otp, (otp) => otp.user)
601
640
  ], User.prototype, "otps", 2);
602
641
  __decorateClass([
603
- OneToMany(() => ResumeParserLog, (resumeParser) => resumeParser.user)
642
+ OneToMany2(() => ResumeParserLog, (resumeParser) => resumeParser.user)
604
643
  ], User.prototype, "resumeParserLogs", 2);
644
+ __decorateClass([
645
+ OneToOne(
646
+ () => FreelancerProfile,
647
+ (freelancerProfile) => freelancerProfile.user
648
+ )
649
+ ], User.prototype, "freelancerProfile", 2);
605
650
  User = __decorateClass([
606
- Entity4("users")
651
+ Entity5("users")
607
652
  ], User);
608
653
 
609
654
  // src/entities/question.entity.ts
610
- import { Entity as Entity5, Column as Column6 } from "typeorm";
655
+ import { Entity as Entity6, Column as Column7 } from "typeorm";
611
656
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
612
657
  QuestionFor2["CLIENT"] = "CLIENT";
613
658
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -616,13 +661,13 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
616
661
  var Question = class extends BaseEntity {
617
662
  };
618
663
  __decorateClass([
619
- Column6({ name: "question_id", type: "integer" })
664
+ Column7({ name: "question_id", type: "integer" })
620
665
  ], Question.prototype, "questionId", 2);
621
666
  __decorateClass([
622
- Column6({ name: "question", type: "varchar", unique: true })
667
+ Column7({ name: "question", type: "varchar", unique: true })
623
668
  ], Question.prototype, "question", 2);
624
669
  __decorateClass([
625
- Column6({
670
+ Column7({
626
671
  name: "question_for",
627
672
  type: "enum",
628
673
  enum: QuestionFor,
@@ -630,13 +675,13 @@ __decorateClass([
630
675
  })
631
676
  ], Question.prototype, "questionFor", 2);
632
677
  __decorateClass([
633
- Column6({ name: "options", type: "varchar", array: true })
678
+ Column7({ name: "options", type: "varchar", array: true })
634
679
  ], Question.prototype, "options", 2);
635
680
  __decorateClass([
636
- Column6({ name: "is_active", type: "boolean", default: false })
681
+ Column7({ name: "is_active", type: "boolean", default: false })
637
682
  ], Question.prototype, "isActive", 2);
638
683
  Question = __decorateClass([
639
- Entity5("questions")
684
+ Entity6("questions")
640
685
  ], Question);
641
686
  export {
642
687
  AUTHENTICATION_PATTERN,
@@ -645,6 +690,7 @@ export {
645
690
  BaseEntity,
646
691
  CreateQuestionDto,
647
692
  CreateSubAdminDto,
693
+ FreelancerProfile,
648
694
  JobRMQAdapter,
649
695
  JobTCPAdapter,
650
696
  LoginDto,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",