@experts_hub/shared 1.0.200 → 1.0.202

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