@experts_hub/shared 1.0.199 → 1.0.201

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.
package/dist/index.mjs CHANGED
@@ -650,8 +650,11 @@ __decorateClass([
650
650
  ], ClientChangePasswordDto.prototype, "confirmPassword", 2);
651
651
 
652
652
  // src/modules/question/pattern/pattern.ts
653
- var QUESTION_PATTERN = {
654
- fetchQuestions: "fetch.questions"
653
+ var ONBOARDING_QUESTION_PATTERN = {
654
+ fetchOnboardingQuestions: "fetch.onboarding.questions"
655
+ };
656
+ var ASSESSMENT_QUESTION_PATTERN = {
657
+ fetchAssessmentQuestions: "fetch.assessment.questions"
655
658
  };
656
659
 
657
660
  // src/modules/question/dto/create-question.dto.ts
@@ -1060,17 +1063,17 @@ import {
1060
1063
  } from "class-validator";
1061
1064
 
1062
1065
  // src/entities/rating.entity.ts
1063
- import { Entity as Entity28, Column as Column29, ManyToOne as ManyToOne26, JoinColumn as JoinColumn26, Index as Index25 } from "typeorm";
1066
+ import { Entity as Entity31, Column as Column32, ManyToOne as ManyToOne28, JoinColumn as JoinColumn28, Index as Index27 } from "typeorm";
1064
1067
 
1065
1068
  // src/entities/user.entity.ts
1066
1069
  import {
1067
- Entity as Entity27,
1068
- Column as Column28,
1069
- OneToMany as OneToMany8,
1070
+ Entity as Entity30,
1071
+ Column as Column31,
1072
+ OneToMany as OneToMany11,
1070
1073
  OneToOne,
1071
- Index as Index24,
1072
- ManyToOne as ManyToOne25,
1073
- JoinColumn as JoinColumn25
1074
+ Index as Index26,
1075
+ ManyToOne as ManyToOne27,
1076
+ JoinColumn as JoinColumn27
1074
1077
  } from "typeorm";
1075
1078
 
1076
1079
  // src/entities/base.entity.ts
@@ -2509,6 +2512,152 @@ CompanyMemberRole = __decorateClass([
2509
2512
  Entity26("company_member_roles")
2510
2513
  ], CompanyMemberRole);
2511
2514
 
2515
+ // src/entities/assessment-answer.entity.ts
2516
+ import {
2517
+ Entity as Entity29,
2518
+ Column as Column30,
2519
+ ManyToOne as ManyToOne26,
2520
+ Index as Index25,
2521
+ JoinColumn as JoinColumn26
2522
+ } from "typeorm";
2523
+
2524
+ // src/entities/assessment-question.entity.ts
2525
+ import { Entity as Entity28, Column as Column29, OneToMany as OneToMany9 } from "typeorm";
2526
+
2527
+ // src/entities/assessment-question-option.entity.ts
2528
+ import {
2529
+ Entity as Entity27,
2530
+ Column as Column28,
2531
+ OneToMany as OneToMany8,
2532
+ ManyToOne as ManyToOne25,
2533
+ Index as Index24,
2534
+ JoinColumn as JoinColumn25
2535
+ } from "typeorm";
2536
+ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
2537
+ AnswerTypeEnum2["CORRECT"] = "CORRECT";
2538
+ AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
2539
+ AnswerTypeEnum2["ELIMINATE"] = "ELIMINATE";
2540
+ return AnswerTypeEnum2;
2541
+ })(AnswerTypeEnum || {});
2542
+ var AssessmetQuestionOption = class extends BaseEntity {
2543
+ };
2544
+ __decorateClass([
2545
+ Column28({ name: "question_id", type: "integer", nullable: true }),
2546
+ Index24()
2547
+ ], AssessmetQuestionOption.prototype, "questionId", 2);
2548
+ __decorateClass([
2549
+ ManyToOne25(
2550
+ () => AssessmetQuestion,
2551
+ (assessmentQuestion) => assessmentQuestion.options
2552
+ ),
2553
+ JoinColumn25({ name: "question_id" })
2554
+ ], AssessmetQuestionOption.prototype, "question", 2);
2555
+ __decorateClass([
2556
+ Column28({ name: "text", type: "varchar", nullable: true })
2557
+ ], AssessmetQuestionOption.prototype, "text", 2);
2558
+ __decorateClass([
2559
+ Column28({
2560
+ name: "answer_type",
2561
+ type: "enum",
2562
+ enum: AnswerTypeEnum,
2563
+ default: "ELIMINATE" /* ELIMINATE */
2564
+ })
2565
+ ], AssessmetQuestionOption.prototype, "answerType", 2);
2566
+ __decorateClass([
2567
+ Column28({ name: "is_active", type: "boolean", default: true })
2568
+ ], AssessmetQuestionOption.prototype, "isActive", 2);
2569
+ __decorateClass([
2570
+ OneToMany8(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
2571
+ ], AssessmetQuestionOption.prototype, "selectedOptions", 2);
2572
+ AssessmetQuestionOption = __decorateClass([
2573
+ Entity27("assessment_question_options")
2574
+ ], AssessmetQuestionOption);
2575
+
2576
+ // src/entities/assessment-question.entity.ts
2577
+ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
2578
+ QuestionForEnum2["ASSESSMENT"] = "ASSESSMENT";
2579
+ QuestionForEnum2["INTERVIEW"] = "INTERVIEW";
2580
+ return QuestionForEnum2;
2581
+ })(QuestionForEnum || {});
2582
+ var AssessmetQuestion = class extends BaseEntity {
2583
+ };
2584
+ __decorateClass([
2585
+ Column29({ name: "text", type: "varchar", nullable: true })
2586
+ ], AssessmetQuestion.prototype, "text", 2);
2587
+ __decorateClass([
2588
+ Column29({
2589
+ name: "question_for",
2590
+ type: "enum",
2591
+ enum: QuestionForEnum,
2592
+ nullable: true
2593
+ })
2594
+ ], AssessmetQuestion.prototype, "questionFor", 2);
2595
+ __decorateClass([
2596
+ Column29({ name: "is_active", type: "boolean", default: true })
2597
+ ], AssessmetQuestion.prototype, "isActive", 2);
2598
+ __decorateClass([
2599
+ OneToMany9(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
2600
+ ], AssessmetQuestion.prototype, "options", 2);
2601
+ __decorateClass([
2602
+ OneToMany9(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
2603
+ ], AssessmetQuestion.prototype, "answers", 2);
2604
+ AssessmetQuestion = __decorateClass([
2605
+ Entity28("assessment_questions")
2606
+ ], AssessmetQuestion);
2607
+
2608
+ // src/entities/assessment-answer.entity.ts
2609
+ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
2610
+ SelectedAnswerTypeEnum2["CORRECT"] = "CORRECT";
2611
+ SelectedAnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
2612
+ SelectedAnswerTypeEnum2["ELIMINATE"] = "ELIMINATE";
2613
+ return SelectedAnswerTypeEnum2;
2614
+ })(SelectedAnswerTypeEnum || {});
2615
+ var AssessmentAnswer = class extends BaseEntity {
2616
+ };
2617
+ __decorateClass([
2618
+ Column30({ name: "user_id", type: "integer" }),
2619
+ Index25()
2620
+ ], AssessmentAnswer.prototype, "userId", 2);
2621
+ __decorateClass([
2622
+ ManyToOne26(() => User, (user) => user.assessmentAnswers),
2623
+ JoinColumn26({ name: "user_id" })
2624
+ ], AssessmentAnswer.prototype, "user", 2);
2625
+ __decorateClass([
2626
+ Column30({ name: "question_id", type: "integer" }),
2627
+ Index25()
2628
+ ], AssessmentAnswer.prototype, "questionId", 2);
2629
+ __decorateClass([
2630
+ ManyToOne26(
2631
+ () => AssessmetQuestion,
2632
+ (assessmentQuestion) => assessmentQuestion.answers
2633
+ ),
2634
+ JoinColumn26({ name: "question_id" })
2635
+ ], AssessmentAnswer.prototype, "question", 2);
2636
+ __decorateClass([
2637
+ Column30({ name: "selected_option_id", type: "integer" }),
2638
+ Index25()
2639
+ ], AssessmentAnswer.prototype, "selectedOptionId", 2);
2640
+ __decorateClass([
2641
+ ManyToOne26(
2642
+ () => AssessmetQuestionOption,
2643
+ (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
2644
+ ),
2645
+ JoinColumn26({ name: "selected_option_id" })
2646
+ ], AssessmentAnswer.prototype, "option", 2);
2647
+ __decorateClass([
2648
+ Column30({
2649
+ name: "selected_answer_type",
2650
+ type: "enum",
2651
+ enum: SelectedAnswerTypeEnum
2652
+ })
2653
+ ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
2654
+ __decorateClass([
2655
+ Column30({ name: "score", type: "integer" })
2656
+ ], AssessmentAnswer.prototype, "score", 2);
2657
+ AssessmentAnswer = __decorateClass([
2658
+ Entity29("assessment_answers")
2659
+ ], AssessmentAnswer);
2660
+
2512
2661
  // src/entities/user.entity.ts
2513
2662
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
2514
2663
  AccountType2["ADMIN"] = "ADMIN";
@@ -2534,51 +2683,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
2534
2683
  var User = class extends BaseEntity {
2535
2684
  };
2536
2685
  __decorateClass([
2537
- Column28({ name: "unique_id", type: "varchar", unique: true })
2686
+ Column31({ name: "unique_id", type: "varchar", unique: true })
2538
2687
  ], User.prototype, "uniqueId", 2);
2539
2688
  __decorateClass([
2540
- Column28({ name: "parent_id", type: "integer", nullable: true }),
2541
- Index24()
2689
+ Column31({ name: "parent_id", type: "integer", nullable: true }),
2690
+ Index26()
2542
2691
  ], User.prototype, "parentId", 2);
2543
2692
  __decorateClass([
2544
- ManyToOne25(() => User, (user) => user.children, { nullable: true }),
2545
- JoinColumn25({ name: "parent_id" })
2693
+ ManyToOne27(() => User, (user) => user.children, { nullable: true }),
2694
+ JoinColumn27({ name: "parent_id" })
2546
2695
  ], User.prototype, "parent", 2);
2547
2696
  __decorateClass([
2548
- OneToMany8(() => User, (user) => user.parent)
2697
+ OneToMany11(() => User, (user) => user.parent)
2549
2698
  ], User.prototype, "children", 2);
2550
2699
  __decorateClass([
2551
- Column28({ name: "username", type: "varchar", unique: true, nullable: true })
2700
+ Column31({ name: "username", type: "varchar", unique: true, nullable: true })
2552
2701
  ], User.prototype, "username", 2);
2553
2702
  __decorateClass([
2554
- Column28({ name: "first_name", type: "varchar", length: 100, nullable: true })
2703
+ Column31({ name: "first_name", type: "varchar", length: 100, nullable: true })
2555
2704
  ], User.prototype, "firstName", 2);
2556
2705
  __decorateClass([
2557
- Column28({ name: "last_name", type: "varchar", length: 100, nullable: true })
2706
+ Column31({ name: "last_name", type: "varchar", length: 100, nullable: true })
2558
2707
  ], User.prototype, "lastName", 2);
2559
2708
  __decorateClass([
2560
- Column28({ name: "date_of_birth", type: "date", nullable: true })
2709
+ Column31({ name: "date_of_birth", type: "date", nullable: true })
2561
2710
  ], User.prototype, "dateOfBirth", 2);
2562
2711
  __decorateClass([
2563
- Column28({ name: "gender", type: "varchar", length: 10, nullable: true })
2712
+ Column31({ name: "gender", type: "varchar", length: 10, nullable: true })
2564
2713
  ], User.prototype, "gender", 2);
2565
2714
  __decorateClass([
2566
- Column28({ name: "profile_picture_url", type: "text", nullable: true })
2715
+ Column31({ name: "profile_picture_url", type: "text", nullable: true })
2567
2716
  ], User.prototype, "profilePictureUrl", 2);
2568
2717
  __decorateClass([
2569
- Column28({ name: "email", type: "varchar", unique: true })
2718
+ Column31({ name: "email", type: "varchar", unique: true })
2570
2719
  ], User.prototype, "email", 2);
2571
2720
  __decorateClass([
2572
- Column28({ name: "mobile_code", type: "varchar", nullable: true })
2721
+ Column31({ name: "mobile_code", type: "varchar", nullable: true })
2573
2722
  ], User.prototype, "mobileCode", 2);
2574
2723
  __decorateClass([
2575
- Column28({ name: "mobile", type: "varchar", nullable: true })
2724
+ Column31({ name: "mobile", type: "varchar", nullable: true })
2576
2725
  ], User.prototype, "mobile", 2);
2577
2726
  __decorateClass([
2578
- Column28({ name: "password", type: "varchar", nullable: true })
2727
+ Column31({ name: "password", type: "varchar", nullable: true })
2579
2728
  ], User.prototype, "password", 2);
2580
2729
  __decorateClass([
2581
- Column28({
2730
+ Column31({
2582
2731
  name: "account_type",
2583
2732
  type: "enum",
2584
2733
  enum: AccountType,
@@ -2586,7 +2735,7 @@ __decorateClass([
2586
2735
  })
2587
2736
  ], User.prototype, "accountType", 2);
2588
2737
  __decorateClass([
2589
- Column28({
2738
+ Column31({
2590
2739
  name: "account_status",
2591
2740
  type: "enum",
2592
2741
  enum: AccountStatus,
@@ -2594,36 +2743,36 @@ __decorateClass([
2594
2743
  })
2595
2744
  ], User.prototype, "accountStatus", 2);
2596
2745
  __decorateClass([
2597
- Column28({ name: "is_email_verified", type: "boolean", default: false })
2746
+ Column31({ name: "is_email_verified", type: "boolean", default: false })
2598
2747
  ], User.prototype, "isEmailVerified", 2);
2599
2748
  __decorateClass([
2600
- Column28({ name: "is_mobile_verified", type: "boolean", default: false })
2749
+ Column31({ name: "is_mobile_verified", type: "boolean", default: false })
2601
2750
  ], User.prototype, "isMobileVerified", 2);
2602
2751
  __decorateClass([
2603
- Column28({
2752
+ Column31({
2604
2753
  name: "last_login_at",
2605
2754
  type: "timestamp with time zone",
2606
2755
  nullable: true
2607
2756
  })
2608
2757
  ], User.prototype, "lastLoginAt", 2);
2609
2758
  __decorateClass([
2610
- Column28({ name: "last_login_ip", type: "varchar", nullable: true })
2759
+ Column31({ name: "last_login_ip", type: "varchar", nullable: true })
2611
2760
  ], User.prototype, "lastLoginIp", 2);
2612
2761
  __decorateClass([
2613
- Column28({ name: "reset_token", type: "varchar", nullable: true })
2762
+ Column31({ name: "reset_token", type: "varchar", nullable: true })
2614
2763
  ], User.prototype, "resetToken", 2);
2615
2764
  __decorateClass([
2616
- Column28({
2765
+ Column31({
2617
2766
  name: "reset_token_expire_at",
2618
2767
  type: "timestamp with time zone",
2619
2768
  nullable: true
2620
2769
  })
2621
2770
  ], User.prototype, "resetTokenExpireAt", 2);
2622
2771
  __decorateClass([
2623
- OneToMany8(() => RefreshToken, (token) => token.user)
2772
+ OneToMany11(() => RefreshToken, (token) => token.user)
2624
2773
  ], User.prototype, "refreshTokens", 2);
2625
2774
  __decorateClass([
2626
- Column28({
2775
+ Column31({
2627
2776
  name: "provider",
2628
2777
  type: "enum",
2629
2778
  enum: Provider,
@@ -2632,22 +2781,22 @@ __decorateClass([
2632
2781
  })
2633
2782
  ], User.prototype, "provider", 2);
2634
2783
  __decorateClass([
2635
- Column28({ name: "provider_token", type: "varchar", nullable: true })
2784
+ Column31({ name: "provider_token", type: "varchar", nullable: true })
2636
2785
  ], User.prototype, "providerToken", 2);
2637
2786
  __decorateClass([
2638
- Column28({ name: "linkedin_id", type: "varchar", nullable: true })
2787
+ Column31({ name: "linkedin_id", type: "varchar", nullable: true })
2639
2788
  ], User.prototype, "linkedInId", 2);
2640
2789
  __decorateClass([
2641
- Column28({ name: "google_id", type: "varchar", nullable: true })
2790
+ Column31({ name: "google_id", type: "varchar", nullable: true })
2642
2791
  ], User.prototype, "googleId", 2);
2643
2792
  __decorateClass([
2644
- Column28({ name: "gitlabs_id", type: "varchar", nullable: true })
2793
+ Column31({ name: "gitlabs_id", type: "varchar", nullable: true })
2645
2794
  ], User.prototype, "gitLabsId", 2);
2646
2795
  __decorateClass([
2647
- OneToMany8(() => Otp, (otp) => otp.user)
2796
+ OneToMany11(() => Otp, (otp) => otp.user)
2648
2797
  ], User.prototype, "otps", 2);
2649
2798
  __decorateClass([
2650
- OneToMany8(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
2799
+ OneToMany11(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
2651
2800
  ], User.prototype, "senseloafLogs", 2);
2652
2801
  __decorateClass([
2653
2802
  OneToOne(() => FreelancerProfile, (freelancerProfile) => freelancerProfile.user, { cascade: true })
@@ -2658,37 +2807,43 @@ __decorateClass([
2658
2807
  })
2659
2808
  ], User.prototype, "companyProfile", 2);
2660
2809
  __decorateClass([
2661
- OneToMany8(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
2810
+ OneToMany11(() => CompanyMemberRole, (companyMemberRole) => companyMemberRole.user)
2662
2811
  ], User.prototype, "companyMemberRoles", 2);
2663
2812
  __decorateClass([
2664
- OneToMany8(
2813
+ OneToMany11(
2665
2814
  () => FreelancerAssessment,
2666
2815
  (freelancerAssessment) => freelancerAssessment.user
2667
2816
  )
2668
2817
  ], User.prototype, "assessments", 2);
2669
2818
  __decorateClass([
2670
- OneToMany8(() => Job, (job) => job.user)
2819
+ OneToMany11(
2820
+ () => AssessmentAnswer,
2821
+ (assessmentAnswer) => assessmentAnswer.user
2822
+ )
2823
+ ], User.prototype, "assessmentAnswers", 2);
2824
+ __decorateClass([
2825
+ OneToMany11(() => Job, (job) => job.user)
2671
2826
  ], User.prototype, "jobs", 2);
2672
2827
  __decorateClass([
2673
- OneToMany8(() => Interview, (interview) => interview.user)
2828
+ OneToMany11(() => Interview, (interview) => interview.user)
2674
2829
  ], User.prototype, "interviews", 2);
2675
2830
  __decorateClass([
2676
- OneToMany8(() => BankDetail, (bankDetail) => bankDetail.user)
2831
+ OneToMany11(() => BankDetail, (bankDetail) => bankDetail.user)
2677
2832
  ], User.prototype, "bankDetail", 2);
2678
2833
  __decorateClass([
2679
- OneToMany8(
2834
+ OneToMany11(
2680
2835
  () => SystemPreference,
2681
2836
  (systemPreference) => systemPreference.user
2682
2837
  )
2683
2838
  ], User.prototype, "systemPreference", 2);
2684
2839
  __decorateClass([
2685
- OneToMany8(() => Rating, (rating) => rating.reviewer)
2840
+ OneToMany11(() => Rating, (rating) => rating.reviewer)
2686
2841
  ], User.prototype, "givenRatings", 2);
2687
2842
  __decorateClass([
2688
- OneToMany8(() => Rating, (rating) => rating.reviewee)
2843
+ OneToMany11(() => Rating, (rating) => rating.reviewee)
2689
2844
  ], User.prototype, "receivedRatings", 2);
2690
2845
  __decorateClass([
2691
- OneToMany8(() => JobApplication, (jobApplication) => jobApplication.user)
2846
+ OneToMany11(() => JobApplication, (jobApplication) => jobApplication.user)
2692
2847
  ], User.prototype, "jobApplications", 2);
2693
2848
  __decorateClass([
2694
2849
  OneToOne(
@@ -2736,7 +2891,7 @@ __decorateClass([
2736
2891
  )
2737
2892
  ], User.prototype, "freelancerDeclaration", 2);
2738
2893
  User = __decorateClass([
2739
- Entity27("users")
2894
+ Entity30("users")
2740
2895
  ], User);
2741
2896
 
2742
2897
  // src/entities/rating.entity.ts
@@ -2748,36 +2903,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
2748
2903
  var Rating = class extends BaseEntity {
2749
2904
  };
2750
2905
  __decorateClass([
2751
- Column29({ name: "reviewer_id", type: "integer" }),
2752
- Index25()
2906
+ Column32({ name: "reviewer_id", type: "integer" }),
2907
+ Index27()
2753
2908
  ], Rating.prototype, "reviewer_id", 2);
2754
2909
  __decorateClass([
2755
- ManyToOne26(() => User, { onDelete: "CASCADE" }),
2756
- JoinColumn26({ name: "reviewer_id" })
2910
+ ManyToOne28(() => User, { onDelete: "CASCADE" }),
2911
+ JoinColumn28({ name: "reviewer_id" })
2757
2912
  ], Rating.prototype, "reviewer", 2);
2758
2913
  __decorateClass([
2759
- Column29({ name: "reviewee_id", type: "integer" }),
2760
- Index25()
2914
+ Column32({ name: "reviewee_id", type: "integer" }),
2915
+ Index27()
2761
2916
  ], Rating.prototype, "reviewee_id", 2);
2762
2917
  __decorateClass([
2763
- ManyToOne26(() => User, { onDelete: "CASCADE" }),
2764
- JoinColumn26({ name: "reviewee_id" })
2918
+ ManyToOne28(() => User, { onDelete: "CASCADE" }),
2919
+ JoinColumn28({ name: "reviewee_id" })
2765
2920
  ], Rating.prototype, "reviewee", 2);
2766
2921
  __decorateClass([
2767
- Column29({
2922
+ Column32({
2768
2923
  type: "enum",
2769
2924
  enum: RatingTypeEnum,
2770
2925
  nullable: true
2771
2926
  })
2772
2927
  ], Rating.prototype, "ratingType", 2);
2773
2928
  __decorateClass([
2774
- Column29({ type: "integer", nullable: true })
2929
+ Column32({ type: "integer", nullable: true })
2775
2930
  ], Rating.prototype, "rating", 2);
2776
2931
  __decorateClass([
2777
- Column29({ type: "text", nullable: true })
2932
+ Column32({ type: "text", nullable: true })
2778
2933
  ], Rating.prototype, "review", 2);
2779
2934
  Rating = __decorateClass([
2780
- Entity28("ratings")
2935
+ Entity31("ratings")
2781
2936
  ], Rating);
2782
2937
 
2783
2938
  // src/modules/rating/dto/add.rating.dto.ts
@@ -3590,7 +3745,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
3590
3745
  };
3591
3746
 
3592
3747
  // src/entities/question.entity.ts
3593
- import { Entity as Entity29, Column as Column30 } from "typeorm";
3748
+ import { Entity as Entity32, Column as Column33 } from "typeorm";
3594
3749
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
3595
3750
  QuestionFor2["CLIENT"] = "CLIENT";
3596
3751
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -3599,16 +3754,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
3599
3754
  var Question = class extends BaseEntity {
3600
3755
  };
3601
3756
  __decorateClass([
3602
- Column30({ name: "question", type: "varchar" })
3757
+ Column33({ name: "question", type: "varchar" })
3603
3758
  ], Question.prototype, "question", 2);
3604
3759
  __decorateClass([
3605
- Column30({ name: "hint", type: "varchar", nullable: true })
3760
+ Column33({ name: "hint", type: "varchar", nullable: true })
3606
3761
  ], Question.prototype, "hint", 2);
3607
3762
  __decorateClass([
3608
- Column30({ name: "slug", type: "varchar", nullable: true, unique: true })
3763
+ Column33({ name: "slug", type: "varchar", nullable: true, unique: true })
3609
3764
  ], Question.prototype, "slug", 2);
3610
3765
  __decorateClass([
3611
- Column30({
3766
+ Column33({
3612
3767
  name: "question_for",
3613
3768
  type: "enum",
3614
3769
  enum: QuestionFor,
@@ -3616,125 +3771,125 @@ __decorateClass([
3616
3771
  })
3617
3772
  ], Question.prototype, "questionFor", 2);
3618
3773
  __decorateClass([
3619
- Column30({ name: "type", type: "varchar", nullable: true })
3774
+ Column33({ name: "type", type: "varchar", nullable: true })
3620
3775
  ], Question.prototype, "type", 2);
3621
3776
  __decorateClass([
3622
- Column30({ name: "options", type: "jsonb", nullable: true })
3777
+ Column33({ name: "options", type: "jsonb", nullable: true })
3623
3778
  ], Question.prototype, "options", 2);
3624
3779
  __decorateClass([
3625
- Column30({ name: "is_active", type: "boolean", default: false })
3780
+ Column33({ name: "is_active", type: "boolean", default: false })
3626
3781
  ], Question.prototype, "isActive", 2);
3627
3782
  Question = __decorateClass([
3628
- Entity29("questions")
3783
+ Entity32("questions")
3629
3784
  ], Question);
3630
3785
 
3631
3786
  // src/entities/job-role.entity.ts
3632
- import { Entity as Entity30, Column as Column31 } from "typeorm";
3787
+ import { Entity as Entity33, Column as Column34 } from "typeorm";
3633
3788
  var JobRoles = class extends BaseEntity {
3634
3789
  };
3635
3790
  __decorateClass([
3636
- Column31({ name: "slug", type: "varchar", nullable: true, unique: true })
3791
+ Column34({ name: "slug", type: "varchar", nullable: true, unique: true })
3637
3792
  ], JobRoles.prototype, "slug", 2);
3638
3793
  __decorateClass([
3639
- Column31({ name: "name", type: "varchar", nullable: true })
3794
+ Column34({ name: "name", type: "varchar", nullable: true })
3640
3795
  ], JobRoles.prototype, "name", 2);
3641
3796
  __decorateClass([
3642
- Column31({ name: "is_active", type: "boolean", default: true })
3797
+ Column34({ name: "is_active", type: "boolean", default: true })
3643
3798
  ], JobRoles.prototype, "isActive", 2);
3644
3799
  JobRoles = __decorateClass([
3645
- Entity30("job_roles")
3800
+ Entity33("job_roles")
3646
3801
  ], JobRoles);
3647
3802
 
3648
3803
  // src/entities/plan.entity.ts
3649
- import { Entity as Entity32, Column as Column33, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
3804
+ import { Entity as Entity35, Column as Column36, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
3650
3805
 
3651
3806
  // src/entities/feature.entity.ts
3652
- import { Entity as Entity31, Column as Column32, ManyToMany as ManyToMany2 } from "typeorm";
3807
+ import { Entity as Entity34, Column as Column35, ManyToMany as ManyToMany2 } from "typeorm";
3653
3808
  var Feature = class extends BaseEntity {
3654
3809
  };
3655
3810
  __decorateClass([
3656
- Column32({ name: "name", type: "varchar", unique: true })
3811
+ Column35({ name: "name", type: "varchar", unique: true })
3657
3812
  ], Feature.prototype, "name", 2);
3658
3813
  __decorateClass([
3659
3814
  ManyToMany2(() => Plan, (plan) => plan.features)
3660
3815
  ], Feature.prototype, "plans", 2);
3661
3816
  Feature = __decorateClass([
3662
- Entity31("features")
3817
+ Entity34("features")
3663
3818
  ], Feature);
3664
3819
 
3665
3820
  // src/entities/plan.entity.ts
3666
3821
  var Plan = class extends BaseEntity {
3667
3822
  };
3668
3823
  __decorateClass([
3669
- Column33({ name: "name", type: "varchar", unique: true })
3824
+ Column36({ name: "name", type: "varchar", unique: true })
3670
3825
  ], Plan.prototype, "name", 2);
3671
3826
  __decorateClass([
3672
- Column33({ name: "description", type: "varchar", nullable: true })
3827
+ Column36({ name: "description", type: "varchar", nullable: true })
3673
3828
  ], Plan.prototype, "description", 2);
3674
3829
  __decorateClass([
3675
- Column33({ name: "price", type: "decimal", precision: 10, scale: 2 })
3830
+ Column36({ name: "price", type: "decimal", precision: 10, scale: 2 })
3676
3831
  ], Plan.prototype, "price", 2);
3677
3832
  __decorateClass([
3678
- Column33({ name: "billing_period", type: "varchar" })
3833
+ Column36({ name: "billing_period", type: "varchar" })
3679
3834
  ], Plan.prototype, "billingPeriod", 2);
3680
3835
  __decorateClass([
3681
- Column33({ name: "is_current", type: "boolean", default: false })
3836
+ Column36({ name: "is_current", type: "boolean", default: false })
3682
3837
  ], Plan.prototype, "isCurrent", 2);
3683
3838
  __decorateClass([
3684
3839
  ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
3685
3840
  JoinTable()
3686
3841
  ], Plan.prototype, "features", 2);
3687
3842
  Plan = __decorateClass([
3688
- Entity32("plans")
3843
+ Entity35("plans")
3689
3844
  ], Plan);
3690
3845
 
3691
3846
  // src/entities/cms.entity.ts
3692
- import { Entity as Entity33, Column as Column34 } from "typeorm";
3847
+ import { Entity as Entity36, Column as Column37 } from "typeorm";
3693
3848
  var Cms = class extends BaseEntity {
3694
3849
  };
3695
3850
  __decorateClass([
3696
- Column34({ name: "title", type: "varchar", nullable: true })
3851
+ Column37({ name: "title", type: "varchar", nullable: true })
3697
3852
  ], Cms.prototype, "title", 2);
3698
3853
  __decorateClass([
3699
- Column34({ name: "slug", type: "varchar", nullable: true, unique: true })
3854
+ Column37({ name: "slug", type: "varchar", nullable: true, unique: true })
3700
3855
  ], Cms.prototype, "slug", 2);
3701
3856
  __decorateClass([
3702
- Column34({ name: "content", type: "varchar", nullable: true })
3857
+ Column37({ name: "content", type: "varchar", nullable: true })
3703
3858
  ], Cms.prototype, "content", 2);
3704
3859
  __decorateClass([
3705
- Column34({ name: "is_active", type: "boolean", default: true })
3860
+ Column37({ name: "is_active", type: "boolean", default: true })
3706
3861
  ], Cms.prototype, "isActive", 2);
3707
3862
  Cms = __decorateClass([
3708
- Entity33("cms")
3863
+ Entity36("cms")
3709
3864
  ], Cms);
3710
3865
 
3711
3866
  // src/entities/country.entity.ts
3712
3867
  import {
3713
- Entity as Entity36,
3714
- Column as Column37,
3715
- OneToMany as OneToMany13
3868
+ Entity as Entity39,
3869
+ Column as Column40,
3870
+ OneToMany as OneToMany16
3716
3871
  } from "typeorm";
3717
3872
 
3718
3873
  // src/entities/state.entity.ts
3719
3874
  import {
3720
- Entity as Entity35,
3721
- Column as Column36,
3722
- ManyToOne as ManyToOne28,
3723
- JoinColumn as JoinColumn28,
3724
- OneToMany as OneToMany12
3875
+ Entity as Entity38,
3876
+ Column as Column39,
3877
+ ManyToOne as ManyToOne30,
3878
+ JoinColumn as JoinColumn30,
3879
+ OneToMany as OneToMany15
3725
3880
  } from "typeorm";
3726
3881
 
3727
3882
  // src/entities/city.entity.ts
3728
3883
  import {
3729
- Entity as Entity34,
3730
- Column as Column35,
3731
- ManyToOne as ManyToOne27,
3732
- JoinColumn as JoinColumn27
3884
+ Entity as Entity37,
3885
+ Column as Column38,
3886
+ ManyToOne as ManyToOne29,
3887
+ JoinColumn as JoinColumn29
3733
3888
  } from "typeorm";
3734
3889
  var City = class extends BaseEntity {
3735
3890
  };
3736
3891
  __decorateClass([
3737
- Column35({
3892
+ Column38({
3738
3893
  name: "country_id",
3739
3894
  type: "int",
3740
3895
  nullable: true,
@@ -3742,11 +3897,11 @@ __decorateClass([
3742
3897
  })
3743
3898
  ], City.prototype, "countryId", 2);
3744
3899
  __decorateClass([
3745
- ManyToOne27(() => Country),
3746
- JoinColumn27({ name: "country_id" })
3900
+ ManyToOne29(() => Country),
3901
+ JoinColumn29({ name: "country_id" })
3747
3902
  ], City.prototype, "country", 2);
3748
3903
  __decorateClass([
3749
- Column35({
3904
+ Column38({
3750
3905
  name: "state_id",
3751
3906
  type: "int",
3752
3907
  nullable: false,
@@ -3754,11 +3909,11 @@ __decorateClass([
3754
3909
  })
3755
3910
  ], City.prototype, "stateId", 2);
3756
3911
  __decorateClass([
3757
- ManyToOne27(() => State, (state) => state.cities),
3758
- JoinColumn27({ name: "state_id" })
3912
+ ManyToOne29(() => State, (state) => state.cities),
3913
+ JoinColumn29({ name: "state_id" })
3759
3914
  ], City.prototype, "state", 2);
3760
3915
  __decorateClass([
3761
- Column35({
3916
+ Column38({
3762
3917
  name: "city_code",
3763
3918
  type: "varchar",
3764
3919
  length: 100,
@@ -3768,7 +3923,7 @@ __decorateClass([
3768
3923
  })
3769
3924
  ], City.prototype, "cityCode", 2);
3770
3925
  __decorateClass([
3771
- Column35({
3926
+ Column38({
3772
3927
  name: "city_name",
3773
3928
  type: "varchar",
3774
3929
  length: 100,
@@ -3777,7 +3932,7 @@ __decorateClass([
3777
3932
  })
3778
3933
  ], City.prototype, "cityName", 2);
3779
3934
  __decorateClass([
3780
- Column35({
3935
+ Column38({
3781
3936
  name: "is_active",
3782
3937
  type: "boolean",
3783
3938
  default: true,
@@ -3785,14 +3940,14 @@ __decorateClass([
3785
3940
  })
3786
3941
  ], City.prototype, "isActive", 2);
3787
3942
  City = __decorateClass([
3788
- Entity34("cities")
3943
+ Entity37("cities")
3789
3944
  ], City);
3790
3945
 
3791
3946
  // src/entities/state.entity.ts
3792
3947
  var State = class extends BaseEntity {
3793
3948
  };
3794
3949
  __decorateClass([
3795
- Column36({
3950
+ Column39({
3796
3951
  name: "country_id",
3797
3952
  type: "int",
3798
3953
  nullable: false,
@@ -3800,14 +3955,14 @@ __decorateClass([
3800
3955
  })
3801
3956
  ], State.prototype, "countryId", 2);
3802
3957
  __decorateClass([
3803
- ManyToOne28(() => Country, (country) => country.states),
3804
- JoinColumn28({ name: "country_id" })
3958
+ ManyToOne30(() => Country, (country) => country.states),
3959
+ JoinColumn30({ name: "country_id" })
3805
3960
  ], State.prototype, "country", 2);
3806
3961
  __decorateClass([
3807
- OneToMany12(() => City, (city) => city.state)
3962
+ OneToMany15(() => City, (city) => city.state)
3808
3963
  ], State.prototype, "cities", 2);
3809
3964
  __decorateClass([
3810
- Column36({
3965
+ Column39({
3811
3966
  name: "state_name",
3812
3967
  type: "varchar",
3813
3968
  length: 100,
@@ -3816,7 +3971,7 @@ __decorateClass([
3816
3971
  })
3817
3972
  ], State.prototype, "stateName", 2);
3818
3973
  __decorateClass([
3819
- Column36({
3974
+ Column39({
3820
3975
  name: "is_active",
3821
3976
  type: "boolean",
3822
3977
  default: true,
@@ -3824,17 +3979,17 @@ __decorateClass([
3824
3979
  })
3825
3980
  ], State.prototype, "isActive", 2);
3826
3981
  State = __decorateClass([
3827
- Entity35("states")
3982
+ Entity38("states")
3828
3983
  ], State);
3829
3984
 
3830
3985
  // src/entities/country.entity.ts
3831
3986
  var Country = class extends BaseEntity {
3832
3987
  };
3833
3988
  __decorateClass([
3834
- OneToMany13(() => State, (state) => state.country)
3989
+ OneToMany16(() => State, (state) => state.country)
3835
3990
  ], Country.prototype, "states", 2);
3836
3991
  __decorateClass([
3837
- Column37({
3992
+ Column40({
3838
3993
  name: "country_name",
3839
3994
  type: "varchar",
3840
3995
  length: 100,
@@ -3844,7 +3999,7 @@ __decorateClass([
3844
3999
  })
3845
4000
  ], Country.prototype, "countryName", 2);
3846
4001
  __decorateClass([
3847
- Column37({
4002
+ Column40({
3848
4003
  name: "country_iso_code",
3849
4004
  type: "varchar",
3850
4005
  length: 2,
@@ -3855,7 +4010,7 @@ __decorateClass([
3855
4010
  })
3856
4011
  ], Country.prototype, "countryIsoCode", 2);
3857
4012
  __decorateClass([
3858
- Column37({
4013
+ Column40({
3859
4014
  name: "country_phone_code",
3860
4015
  type: "varchar",
3861
4016
  length: 10,
@@ -3864,7 +4019,7 @@ __decorateClass([
3864
4019
  })
3865
4020
  ], Country.prototype, "countryPhoneCode", 2);
3866
4021
  __decorateClass([
3867
- Column37({
4022
+ Column40({
3868
4023
  name: "currency",
3869
4024
  type: "varchar",
3870
4025
  length: 3,
@@ -3873,7 +4028,7 @@ __decorateClass([
3873
4028
  })
3874
4029
  ], Country.prototype, "currency", 2);
3875
4030
  __decorateClass([
3876
- Column37({
4031
+ Column40({
3877
4032
  name: "is_active",
3878
4033
  type: "boolean",
3879
4034
  default: true,
@@ -3881,91 +4036,16 @@ __decorateClass([
3881
4036
  })
3882
4037
  ], Country.prototype, "isActive", 2);
3883
4038
  Country = __decorateClass([
3884
- Entity36("countries")
4039
+ Entity39("countries")
3885
4040
  ], Country);
3886
-
3887
- // src/entities/assessment-question.entity.ts
3888
- import { Entity as Entity38, Column as Column39, OneToMany as OneToMany15 } from "typeorm";
3889
-
3890
- // src/entities/assessment-question-option.ts
3891
- import {
3892
- Entity as Entity37,
3893
- Column as Column38,
3894
- ManyToOne as ManyToOne29,
3895
- Index as Index26,
3896
- JoinColumn as JoinColumn29
3897
- } from "typeorm";
3898
- var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
3899
- AnswerTypeEnum2["CORRECT"] = "CORRECT";
3900
- AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
3901
- AnswerTypeEnum2["ELIMINATE"] = "ELIMINATE";
3902
- return AnswerTypeEnum2;
3903
- })(AnswerTypeEnum || {});
3904
- var AssessmetQuestionOption = class extends BaseEntity {
3905
- };
3906
- __decorateClass([
3907
- Column38({ name: "question_id", type: "integer", nullable: true }),
3908
- Index26()
3909
- ], AssessmetQuestionOption.prototype, "questionId", 2);
3910
- __decorateClass([
3911
- ManyToOne29(
3912
- () => AssessmetQuestion,
3913
- (assessmentQuestion) => assessmentQuestion.options
3914
- ),
3915
- JoinColumn29({ name: "question_id" })
3916
- ], AssessmetQuestionOption.prototype, "question", 2);
3917
- __decorateClass([
3918
- Column38({ name: "text", type: "varchar", nullable: true })
3919
- ], AssessmetQuestionOption.prototype, "text", 2);
3920
- __decorateClass([
3921
- Column38({
3922
- name: "answer_type",
3923
- type: "enum",
3924
- enum: AnswerTypeEnum,
3925
- default: "ELIMINATE" /* ELIMINATE */
3926
- })
3927
- ], AssessmetQuestionOption.prototype, "answerType", 2);
3928
- __decorateClass([
3929
- Column38({ name: "is_active", type: "boolean", default: true })
3930
- ], AssessmetQuestionOption.prototype, "isActive", 2);
3931
- AssessmetQuestionOption = __decorateClass([
3932
- Entity37("assessment_question_options")
3933
- ], AssessmetQuestionOption);
3934
-
3935
- // src/entities/assessment-question.entity.ts
3936
- var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
3937
- QuestionForEnum2["ASSESSMENT"] = "ASSESSMENT";
3938
- QuestionForEnum2["INTERVIEW"] = "INTERVIEW";
3939
- return QuestionForEnum2;
3940
- })(QuestionForEnum || {});
3941
- var AssessmetQuestion = class extends BaseEntity {
3942
- };
3943
- __decorateClass([
3944
- Column39({ name: "text", type: "varchar", nullable: true })
3945
- ], AssessmetQuestion.prototype, "text", 2);
3946
- __decorateClass([
3947
- Column39({
3948
- name: "question_for",
3949
- type: "enum",
3950
- enum: QuestionForEnum,
3951
- nullable: true
3952
- })
3953
- ], AssessmetQuestion.prototype, "questionFor", 2);
3954
- __decorateClass([
3955
- Column39({ name: "is_active", type: "boolean", default: true })
3956
- ], AssessmetQuestion.prototype, "isActive", 2);
3957
- __decorateClass([
3958
- OneToMany15(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
3959
- ], AssessmetQuestion.prototype, "options", 2);
3960
- AssessmetQuestion = __decorateClass([
3961
- Entity38("assessment_questions")
3962
- ], AssessmetQuestion);
3963
4041
  export {
4042
+ ASSESSMENT_QUESTION_PATTERN,
3964
4043
  AUTHENTICATION_PATTERN,
3965
4044
  AccountStatus,
3966
4045
  AccountType,
3967
4046
  AnswerTypeEnum,
3968
4047
  ApplicationStatusEnum,
4048
+ AssessmentAnswer,
3969
4049
  AssessmentStatusEnum,
3970
4050
  AssessmetQuestion,
3971
4051
  AssessmetQuestionOption,
@@ -4072,6 +4152,7 @@ export {
4072
4152
  NotificationRMQAdapter,
4073
4153
  NotificationTCPAdapter,
4074
4154
  ONBOARDING_PATTERN,
4155
+ ONBOARDING_QUESTION_PATTERN,
4075
4156
  OTP_PATTERN,
4076
4157
  OnboardingStepEnum,
4077
4158
  Otp,
@@ -4082,7 +4163,6 @@ export {
4082
4163
  Plan,
4083
4164
  ProjectDto,
4084
4165
  Provider,
4085
- QUESTION_PATTERN,
4086
4166
  Question,
4087
4167
  QuestionFor,
4088
4168
  QuestionForEnum,
@@ -4096,6 +4176,7 @@ export {
4096
4176
  SUBADMIN_PATTERN,
4097
4177
  SYSTEM_PREFERENCES_PATTERN,
4098
4178
  ScopeEnum,
4179
+ SelectedAnswerTypeEnum,
4099
4180
  SendGuestOtpDto,
4100
4181
  SendGuestOtpPurposeEnum,
4101
4182
  SenseloafLog,