@experts_hub/shared 1.0.731 → 1.0.733

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
@@ -1065,13 +1065,13 @@ import { IsEnum as IsEnum14 } from "class-validator";
1065
1065
 
1066
1066
  // src/entities/user.entity.ts
1067
1067
  import {
1068
- Entity as Entity79,
1069
- Column as Column80,
1068
+ Entity as Entity80,
1069
+ Column as Column81,
1070
1070
  OneToMany as OneToMany27,
1071
1071
  OneToOne as OneToOne12,
1072
- Index as Index70,
1073
- ManyToOne as ManyToOne74,
1074
- JoinColumn as JoinColumn75
1072
+ Index as Index71,
1073
+ ManyToOne as ManyToOne75,
1074
+ JoinColumn as JoinColumn76
1075
1075
  } from "typeorm";
1076
1076
 
1077
1077
  // src/entities/base.entity.ts
@@ -6691,6 +6691,68 @@ UserSubscription = __decorateClass([
6691
6691
  Entity78("user_subscriptions")
6692
6692
  ], UserSubscription);
6693
6693
 
6694
+ // src/entities/ekyc-verification-session.entity.ts
6695
+ import {
6696
+ Entity as Entity79,
6697
+ Column as Column80,
6698
+ ManyToOne as ManyToOne74,
6699
+ JoinColumn as JoinColumn75,
6700
+ Index as Index70
6701
+ } from "typeorm";
6702
+ var EkycVerificationSessionStatusEnum = /* @__PURE__ */ ((EkycVerificationSessionStatusEnum2) => {
6703
+ EkycVerificationSessionStatusEnum2["NOT_STARTED"] = "NOT_STARTED";
6704
+ EkycVerificationSessionStatusEnum2["NOT_FINISHED"] = "NOT_FINISHED";
6705
+ EkycVerificationSessionStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
6706
+ EkycVerificationSessionStatusEnum2["APPROVED"] = "APPROVED";
6707
+ EkycVerificationSessionStatusEnum2["DECLINED"] = "DECLINED";
6708
+ EkycVerificationSessionStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
6709
+ EkycVerificationSessionStatusEnum2["EXPIRED"] = "EXPIRED";
6710
+ EkycVerificationSessionStatusEnum2["KYC_EXPIRED"] = "KYC_EXPIRED";
6711
+ EkycVerificationSessionStatusEnum2["ABANDONED"] = "ABANDONED";
6712
+ EkycVerificationSessionStatusEnum2["RESUBMITTED"] = "RESUBMITTED";
6713
+ EkycVerificationSessionStatusEnum2["AWAITING_USER"] = "AWAITING_USER";
6714
+ return EkycVerificationSessionStatusEnum2;
6715
+ })(EkycVerificationSessionStatusEnum || {});
6716
+ var EkycVerificationSession = class extends BaseEntity {
6717
+ };
6718
+ __decorateClass([
6719
+ Column80({ name: "user_id", type: "integer" }),
6720
+ Index70()
6721
+ ], EkycVerificationSession.prototype, "userId", 2);
6722
+ __decorateClass([
6723
+ ManyToOne74(() => User, (user) => user.ekycVerificationSessions),
6724
+ JoinColumn75({ name: "user_id" })
6725
+ ], EkycVerificationSession.prototype, "user", 2);
6726
+ __decorateClass([
6727
+ Column80({ name: "session_id", type: "varchar", unique: true })
6728
+ ], EkycVerificationSession.prototype, "sessionId", 2);
6729
+ __decorateClass([
6730
+ Column80({
6731
+ name: "status",
6732
+ type: "enum",
6733
+ enum: EkycVerificationSessionStatusEnum,
6734
+ default: "NOT_STARTED" /* NOT_STARTED */
6735
+ })
6736
+ ], EkycVerificationSession.prototype, "status", 2);
6737
+ __decorateClass([
6738
+ Column80({
6739
+ name: "token",
6740
+ type: "varchar",
6741
+ unique: true,
6742
+ nullable: true
6743
+ })
6744
+ ], EkycVerificationSession.prototype, "token", 2);
6745
+ __decorateClass([
6746
+ Column80({
6747
+ name: "expired_at",
6748
+ type: "timestamp with time zone",
6749
+ nullable: true
6750
+ })
6751
+ ], EkycVerificationSession.prototype, "expiresAt", 2);
6752
+ EkycVerificationSession = __decorateClass([
6753
+ Entity79("ekyc_verification_sessions")
6754
+ ], EkycVerificationSession);
6755
+
6694
6756
  // src/entities/user.entity.ts
6695
6757
  var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
6696
6758
  AccountType4["SUPER_ADMIN"] = "SUPER_ADMIN";
@@ -6717,57 +6779,57 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
6717
6779
  var User = class extends BaseEntity {
6718
6780
  };
6719
6781
  __decorateClass([
6720
- Column80({ name: "unique_id", type: "varchar", unique: true })
6782
+ Column81({ name: "unique_id", type: "varchar", unique: true })
6721
6783
  ], User.prototype, "uniqueId", 2);
6722
6784
  __decorateClass([
6723
- Column80({ name: "parent_id", type: "integer", nullable: true }),
6724
- Index70()
6785
+ Column81({ name: "parent_id", type: "integer", nullable: true }),
6786
+ Index71()
6725
6787
  ], User.prototype, "parentId", 2);
6726
6788
  __decorateClass([
6727
- ManyToOne74(() => User, (user) => user.children, { nullable: true }),
6728
- JoinColumn75({ name: "parent_id" })
6789
+ ManyToOne75(() => User, (user) => user.children, { nullable: true }),
6790
+ JoinColumn76({ name: "parent_id" })
6729
6791
  ], User.prototype, "parent", 2);
6730
6792
  __decorateClass([
6731
6793
  OneToMany27(() => User, (user) => user.parent)
6732
6794
  ], User.prototype, "children", 2);
6733
6795
  __decorateClass([
6734
- Column80({ name: "username", type: "varchar", unique: true, nullable: true })
6796
+ Column81({ name: "username", type: "varchar", unique: true, nullable: true })
6735
6797
  ], User.prototype, "username", 2);
6736
6798
  __decorateClass([
6737
- Column80({ name: "first_name", type: "varchar", length: 100, nullable: true })
6799
+ Column81({ name: "first_name", type: "varchar", length: 100, nullable: true })
6738
6800
  ], User.prototype, "firstName", 2);
6739
6801
  __decorateClass([
6740
- Column80({ name: "last_name", type: "varchar", length: 100, nullable: true })
6802
+ Column81({ name: "last_name", type: "varchar", length: 100, nullable: true })
6741
6803
  ], User.prototype, "lastName", 2);
6742
6804
  __decorateClass([
6743
- Column80({ name: "date_of_birth", type: "date", nullable: true })
6805
+ Column81({ name: "date_of_birth", type: "date", nullable: true })
6744
6806
  ], User.prototype, "dateOfBirth", 2);
6745
6807
  __decorateClass([
6746
- Column80({ name: "gender", type: "varchar", length: 10, nullable: true })
6808
+ Column81({ name: "gender", type: "varchar", length: 10, nullable: true })
6747
6809
  ], User.prototype, "gender", 2);
6748
6810
  __decorateClass([
6749
- Column80({ name: "profile_picture_url", type: "text", nullable: true })
6811
+ Column81({ name: "profile_picture_url", type: "text", nullable: true })
6750
6812
  ], User.prototype, "profilePictureUrl", 2);
6751
6813
  __decorateClass([
6752
- Column80({ name: "presigned_profile_picture_url", type: "text", nullable: true })
6814
+ Column81({ name: "presigned_profile_picture_url", type: "text", nullable: true })
6753
6815
  ], User.prototype, "presignedProfilePictureUrl", 2);
6754
6816
  __decorateClass([
6755
- Column80({ name: "presigned_profile_picture_url_expires_at", type: "timestamp with time zone", nullable: true })
6817
+ Column81({ name: "presigned_profile_picture_url_expires_at", type: "timestamp with time zone", nullable: true })
6756
6818
  ], User.prototype, "presignedProfilePictureUrlExpiresAt", 2);
6757
6819
  __decorateClass([
6758
- Column80({ name: "email", type: "varchar", unique: true })
6820
+ Column81({ name: "email", type: "varchar", unique: true })
6759
6821
  ], User.prototype, "email", 2);
6760
6822
  __decorateClass([
6761
- Column80({ name: "mobile_code", type: "varchar", nullable: true })
6823
+ Column81({ name: "mobile_code", type: "varchar", nullable: true })
6762
6824
  ], User.prototype, "mobileCode", 2);
6763
6825
  __decorateClass([
6764
- Column80({ name: "mobile", type: "varchar", nullable: true })
6826
+ Column81({ name: "mobile", type: "varchar", nullable: true })
6765
6827
  ], User.prototype, "mobile", 2);
6766
6828
  __decorateClass([
6767
- Column80({ name: "password", type: "varchar", nullable: true })
6829
+ Column81({ name: "password", type: "varchar", nullable: true })
6768
6830
  ], User.prototype, "password", 2);
6769
6831
  __decorateClass([
6770
- Column80({
6832
+ Column81({
6771
6833
  name: "account_type",
6772
6834
  type: "enum",
6773
6835
  enum: AccountType2,
@@ -6775,7 +6837,7 @@ __decorateClass([
6775
6837
  })
6776
6838
  ], User.prototype, "accountType", 2);
6777
6839
  __decorateClass([
6778
- Column80({
6840
+ Column81({
6779
6841
  name: "account_status",
6780
6842
  type: "enum",
6781
6843
  enum: AccountStatus,
@@ -6783,45 +6845,45 @@ __decorateClass([
6783
6845
  })
6784
6846
  ], User.prototype, "accountStatus", 2);
6785
6847
  __decorateClass([
6786
- Column80({ name: "is_email_verified", type: "boolean", default: false })
6848
+ Column81({ name: "is_email_verified", type: "boolean", default: false })
6787
6849
  ], User.prototype, "isEmailVerified", 2);
6788
6850
  __decorateClass([
6789
- Column80({ name: "is_mobile_verified", type: "boolean", default: false })
6851
+ Column81({ name: "is_mobile_verified", type: "boolean", default: false })
6790
6852
  ], User.prototype, "isMobileVerified", 2);
6791
6853
  __decorateClass([
6792
- Column80({ name: "is_social", type: "boolean", default: false })
6854
+ Column81({ name: "is_social", type: "boolean", default: false })
6793
6855
  ], User.prototype, "isSocial", 2);
6794
6856
  __decorateClass([
6795
- Column80({ name: "is_referral_user", type: "boolean", default: false })
6857
+ Column81({ name: "is_referral_user", type: "boolean", default: false })
6796
6858
  ], User.prototype, "isReferralUser", 2);
6797
6859
  __decorateClass([
6798
- Column80({
6860
+ Column81({
6799
6861
  name: "last_login_at",
6800
6862
  type: "timestamp with time zone",
6801
6863
  nullable: true
6802
6864
  })
6803
6865
  ], User.prototype, "lastLoginAt", 2);
6804
6866
  __decorateClass([
6805
- Column80({ name: "last_login_ip", type: "varchar", nullable: true })
6867
+ Column81({ name: "last_login_ip", type: "varchar", nullable: true })
6806
6868
  ], User.prototype, "lastLoginIp", 2);
6807
6869
  __decorateClass([
6808
- Column80({ name: "reset_token", type: "varchar", nullable: true })
6870
+ Column81({ name: "reset_token", type: "varchar", nullable: true })
6809
6871
  ], User.prototype, "resetToken", 2);
6810
6872
  __decorateClass([
6811
- Column80({
6873
+ Column81({
6812
6874
  name: "reset_token_expire_at",
6813
6875
  type: "timestamp with time zone",
6814
6876
  nullable: true
6815
6877
  })
6816
6878
  ], User.prototype, "resetTokenExpireAt", 2);
6817
6879
  __decorateClass([
6818
- Column80({ name: "set_password_token", type: "varchar", nullable: true })
6880
+ Column81({ name: "set_password_token", type: "varchar", nullable: true })
6819
6881
  ], User.prototype, "setPasswordToken", 2);
6820
6882
  __decorateClass([
6821
6883
  OneToMany27(() => RefreshToken, (token) => token.user)
6822
6884
  ], User.prototype, "refreshTokens", 2);
6823
6885
  __decorateClass([
6824
- Column80({
6886
+ Column81({
6825
6887
  name: "provider",
6826
6888
  type: "enum",
6827
6889
  enum: Provider,
@@ -6830,22 +6892,22 @@ __decorateClass([
6830
6892
  })
6831
6893
  ], User.prototype, "provider", 2);
6832
6894
  __decorateClass([
6833
- Column80({ name: "provider_token", type: "varchar", nullable: true })
6895
+ Column81({ name: "provider_token", type: "varchar", nullable: true })
6834
6896
  ], User.prototype, "providerToken", 2);
6835
6897
  __decorateClass([
6836
- Column80({ name: "linkedin_id", type: "varchar", nullable: true })
6898
+ Column81({ name: "linkedin_id", type: "varchar", nullable: true })
6837
6899
  ], User.prototype, "linkedInId", 2);
6838
6900
  __decorateClass([
6839
- Column80({ name: "google_id", type: "varchar", nullable: true })
6901
+ Column81({ name: "google_id", type: "varchar", nullable: true })
6840
6902
  ], User.prototype, "googleId", 2);
6841
6903
  __decorateClass([
6842
- Column80({ name: "gitlabs_id", type: "varchar", nullable: true })
6904
+ Column81({ name: "gitlabs_id", type: "varchar", nullable: true })
6843
6905
  ], User.prototype, "gitLabsId", 2);
6844
6906
  __decorateClass([
6845
- Column80({ name: "onboarded_by", type: "varchar", nullable: true })
6907
+ Column81({ name: "onboarded_by", type: "varchar", nullable: true })
6846
6908
  ], User.prototype, "onBoardedBy", 2);
6847
6909
  __decorateClass([
6848
- Column80({ name: "ip", type: "varchar", nullable: true })
6910
+ Column81({ name: "ip", type: "varchar", nullable: true })
6849
6911
  ], User.prototype, "ip", 2);
6850
6912
  __decorateClass([
6851
6913
  OneToMany27(() => Otp, (otp) => otp.user)
@@ -7097,8 +7159,11 @@ __decorateClass([
7097
7159
  __decorateClass([
7098
7160
  OneToMany27(() => UserSubscription, (userSubscription) => userSubscription.user)
7099
7161
  ], User.prototype, "userSubscriptions", 2);
7162
+ __decorateClass([
7163
+ OneToMany27(() => EkycVerificationSession, (ekycVerificationSession) => ekycVerificationSession.user)
7164
+ ], User.prototype, "ekycVerificationSessions", 2);
7100
7165
  User = __decorateClass([
7101
- Entity79("users")
7166
+ Entity80("users")
7102
7167
  ], User);
7103
7168
 
7104
7169
  // src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
@@ -8930,6 +8995,7 @@ var NOTIFICATION_PATTERN = {
8930
8995
  handleSetPasswordLinkNotification: "handle.set.password.link.notification",
8931
8996
  handleLeadNotificationToAdmin: "handle.lead.notification.to.admin",
8932
8997
  handleDailyFreelancerReportToStakeHolders: "handle.daily.freelancer.report.to.stake.holders",
8998
+ handleDailyFreelancerProfileReminderNotification: "handle.daily.freelancer.profile.reminder.notification",
8933
8999
  handleAiAssessmentLinkNotification: "handle.ai.assessment.link.notification",
8934
9000
  handleRecordingProcessingErrorNotification: "handle.recording.processing.error.notification",
8935
9001
  handleResumeParserErrorNotification: "handle.resume.parser.error.notification",
@@ -14629,11 +14695,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
14629
14695
  };
14630
14696
 
14631
14697
  // src/entities/sequence-generator.entity.ts
14632
- import { Entity as Entity80, Column as Column81 } from "typeorm";
14698
+ import { Entity as Entity81, Column as Column82 } from "typeorm";
14633
14699
  var SequenceGenerator = class extends BaseEntity {
14634
14700
  };
14635
14701
  __decorateClass([
14636
- Column81({
14702
+ Column82({
14637
14703
  name: "module",
14638
14704
  type: "varchar",
14639
14705
  length: 50,
@@ -14642,7 +14708,7 @@ __decorateClass([
14642
14708
  })
14643
14709
  ], SequenceGenerator.prototype, "module", 2);
14644
14710
  __decorateClass([
14645
- Column81({
14711
+ Column82({
14646
14712
  name: "prefix",
14647
14713
  type: "varchar",
14648
14714
  length: 10,
@@ -14651,7 +14717,7 @@ __decorateClass([
14651
14717
  })
14652
14718
  ], SequenceGenerator.prototype, "prefix", 2);
14653
14719
  __decorateClass([
14654
- Column81({
14720
+ Column82({
14655
14721
  name: "last_sequence",
14656
14722
  type: "int",
14657
14723
  nullable: false,
@@ -14659,7 +14725,7 @@ __decorateClass([
14659
14725
  })
14660
14726
  ], SequenceGenerator.prototype, "lastSequence", 2);
14661
14727
  __decorateClass([
14662
- Column81({
14728
+ Column82({
14663
14729
  name: "year",
14664
14730
  type: "int",
14665
14731
  nullable: true,
@@ -14667,11 +14733,11 @@ __decorateClass([
14667
14733
  })
14668
14734
  ], SequenceGenerator.prototype, "year", 2);
14669
14735
  SequenceGenerator = __decorateClass([
14670
- Entity80("sequence_generators")
14736
+ Entity81("sequence_generators")
14671
14737
  ], SequenceGenerator);
14672
14738
 
14673
14739
  // src/entities/question.entity.ts
14674
- import { Entity as Entity81, Column as Column82 } from "typeorm";
14740
+ import { Entity as Entity82, Column as Column83 } from "typeorm";
14675
14741
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
14676
14742
  QuestionFor2["CLIENT"] = "CLIENT";
14677
14743
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -14680,16 +14746,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
14680
14746
  var Question = class extends BaseEntity {
14681
14747
  };
14682
14748
  __decorateClass([
14683
- Column82({ name: "question", type: "varchar" })
14749
+ Column83({ name: "question", type: "varchar" })
14684
14750
  ], Question.prototype, "question", 2);
14685
14751
  __decorateClass([
14686
- Column82({ name: "hint", type: "varchar", nullable: true })
14752
+ Column83({ name: "hint", type: "varchar", nullable: true })
14687
14753
  ], Question.prototype, "hint", 2);
14688
14754
  __decorateClass([
14689
- Column82({ name: "slug", type: "varchar", nullable: true, unique: true })
14755
+ Column83({ name: "slug", type: "varchar", nullable: true, unique: true })
14690
14756
  ], Question.prototype, "slug", 2);
14691
14757
  __decorateClass([
14692
- Column82({
14758
+ Column83({
14693
14759
  name: "question_for",
14694
14760
  type: "enum",
14695
14761
  enum: QuestionFor,
@@ -14697,49 +14763,49 @@ __decorateClass([
14697
14763
  })
14698
14764
  ], Question.prototype, "questionFor", 2);
14699
14765
  __decorateClass([
14700
- Column82({ name: "type", type: "varchar", nullable: true })
14766
+ Column83({ name: "type", type: "varchar", nullable: true })
14701
14767
  ], Question.prototype, "type", 2);
14702
14768
  __decorateClass([
14703
- Column82({ name: "options", type: "jsonb", nullable: true })
14769
+ Column83({ name: "options", type: "jsonb", nullable: true })
14704
14770
  ], Question.prototype, "options", 2);
14705
14771
  __decorateClass([
14706
- Column82({ name: "is_active", type: "boolean", default: false })
14772
+ Column83({ name: "is_active", type: "boolean", default: false })
14707
14773
  ], Question.prototype, "isActive", 2);
14708
14774
  Question = __decorateClass([
14709
- Entity81("questions")
14775
+ Entity82("questions")
14710
14776
  ], Question);
14711
14777
 
14712
14778
  // src/entities/skill.entity.ts
14713
- import { Entity as Entity82, Column as Column83 } from "typeorm";
14779
+ import { Entity as Entity83, Column as Column84 } from "typeorm";
14714
14780
  var Skill = class extends BaseEntity {
14715
14781
  };
14716
14782
  __decorateClass([
14717
- Column83({ name: "name", type: "varchar", nullable: true })
14783
+ Column84({ name: "name", type: "varchar", nullable: true })
14718
14784
  ], Skill.prototype, "name", 2);
14719
14785
  __decorateClass([
14720
- Column83({ name: "slug", type: "varchar", nullable: true, unique: true })
14786
+ Column84({ name: "slug", type: "varchar", nullable: true, unique: true })
14721
14787
  ], Skill.prototype, "slug", 2);
14722
14788
  __decorateClass([
14723
- Column83({ name: "is_active", type: "boolean", default: false })
14789
+ Column84({ name: "is_active", type: "boolean", default: false })
14724
14790
  ], Skill.prototype, "isActive", 2);
14725
14791
  Skill = __decorateClass([
14726
- Entity82("skills")
14792
+ Entity83("skills")
14727
14793
  ], Skill);
14728
14794
 
14729
14795
  // src/entities/skill-catalog.entity.ts
14730
14796
  import {
14731
- Entity as Entity83,
14732
- Column as Column84,
14733
- Index as Index71
14797
+ Entity as Entity84,
14798
+ Column as Column85,
14799
+ Index as Index72
14734
14800
  } from "typeorm";
14735
14801
  var SkillCatalog = class extends BaseEntity {
14736
14802
  };
14737
14803
  __decorateClass([
14738
- Column84({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14739
- Index71()
14804
+ Column85({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14805
+ Index72()
14740
14806
  ], SkillCatalog.prototype, "canonicalName", 2);
14741
14807
  __decorateClass([
14742
- Column84({
14808
+ Column85({
14743
14809
  name: "aliases",
14744
14810
  type: "text",
14745
14811
  array: true,
@@ -14747,20 +14813,20 @@ __decorateClass([
14747
14813
  })
14748
14814
  ], SkillCatalog.prototype, "aliases", 2);
14749
14815
  __decorateClass([
14750
- Column84({
14816
+ Column85({
14751
14817
  name: "variations",
14752
14818
  type: "jsonb",
14753
14819
  default: "{}"
14754
14820
  })
14755
14821
  ], SkillCatalog.prototype, "variations", 2);
14756
14822
  __decorateClass([
14757
- Column84({ name: "category", type: "varchar", length: 50, nullable: true })
14823
+ Column85({ name: "category", type: "varchar", length: 50, nullable: true })
14758
14824
  ], SkillCatalog.prototype, "category", 2);
14759
14825
  __decorateClass([
14760
- Column84({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
14826
+ Column85({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
14761
14827
  ], SkillCatalog.prototype, "parentSkill", 2);
14762
14828
  __decorateClass([
14763
- Column84({
14829
+ Column85({
14764
14830
  name: "related_skills",
14765
14831
  type: "text",
14766
14832
  array: true,
@@ -14768,70 +14834,70 @@ __decorateClass([
14768
14834
  })
14769
14835
  ], SkillCatalog.prototype, "relatedSkills", 2);
14770
14836
  __decorateClass([
14771
- Column84({ name: "usage_count", type: "integer", default: 0 }),
14772
- Index71()
14837
+ Column85({ name: "usage_count", type: "integer", default: 0 }),
14838
+ Index72()
14773
14839
  ], SkillCatalog.prototype, "usageCount", 2);
14774
14840
  __decorateClass([
14775
- Column84({ name: "is_verified", type: "boolean", default: false })
14841
+ Column85({ name: "is_verified", type: "boolean", default: false })
14776
14842
  ], SkillCatalog.prototype, "isVerified", 2);
14777
14843
  __decorateClass([
14778
- Column84({ name: "first_seen_date", type: "date" })
14844
+ Column85({ name: "first_seen_date", type: "date" })
14779
14845
  ], SkillCatalog.prototype, "firstSeenDate", 2);
14780
14846
  __decorateClass([
14781
- Column84({ name: "last_updated_date", type: "date" })
14847
+ Column85({ name: "last_updated_date", type: "date" })
14782
14848
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
14783
14849
  __decorateClass([
14784
- Column84({
14850
+ Column85({
14785
14851
  name: "search_vector",
14786
14852
  type: "tsvector",
14787
14853
  nullable: true
14788
14854
  })
14789
14855
  ], SkillCatalog.prototype, "searchVector", 2);
14790
14856
  SkillCatalog = __decorateClass([
14791
- Entity83("skill_catalogs")
14857
+ Entity84("skill_catalogs")
14792
14858
  ], SkillCatalog);
14793
14859
 
14794
14860
  // src/entities/job-role.entity.ts
14795
- import { Entity as Entity84, Column as Column85 } from "typeorm";
14861
+ import { Entity as Entity85, Column as Column86 } from "typeorm";
14796
14862
  var JobRoles = class extends BaseEntity {
14797
14863
  };
14798
14864
  __decorateClass([
14799
- Column85({ name: "slug", type: "varchar", nullable: true, unique: true })
14865
+ Column86({ name: "slug", type: "varchar", nullable: true, unique: true })
14800
14866
  ], JobRoles.prototype, "slug", 2);
14801
14867
  __decorateClass([
14802
- Column85({ name: "name", type: "varchar", nullable: true })
14868
+ Column86({ name: "name", type: "varchar", nullable: true })
14803
14869
  ], JobRoles.prototype, "name", 2);
14804
14870
  __decorateClass([
14805
- Column85({ name: "is_active", type: "boolean", default: true })
14871
+ Column86({ name: "is_active", type: "boolean", default: true })
14806
14872
  ], JobRoles.prototype, "isActive", 2);
14807
14873
  JobRoles = __decorateClass([
14808
- Entity84("job_roles")
14874
+ Entity85("job_roles")
14809
14875
  ], JobRoles);
14810
14876
 
14811
14877
  // src/entities/cms.entity.ts
14812
- import { Entity as Entity85, Column as Column86 } from "typeorm";
14878
+ import { Entity as Entity86, Column as Column87 } from "typeorm";
14813
14879
  var Cms = class extends BaseEntity {
14814
14880
  };
14815
14881
  __decorateClass([
14816
- Column86({ name: "title", type: "varchar", nullable: true })
14882
+ Column87({ name: "title", type: "varchar", nullable: true })
14817
14883
  ], Cms.prototype, "title", 2);
14818
14884
  __decorateClass([
14819
- Column86({ name: "slug", type: "varchar", nullable: true, unique: true })
14885
+ Column87({ name: "slug", type: "varchar", nullable: true, unique: true })
14820
14886
  ], Cms.prototype, "slug", 2);
14821
14887
  __decorateClass([
14822
- Column86({ name: "content", type: "varchar", nullable: true })
14888
+ Column87({ name: "content", type: "varchar", nullable: true })
14823
14889
  ], Cms.prototype, "content", 2);
14824
14890
  __decorateClass([
14825
- Column86({ name: "is_active", type: "boolean", default: true })
14891
+ Column87({ name: "is_active", type: "boolean", default: true })
14826
14892
  ], Cms.prototype, "isActive", 2);
14827
14893
  Cms = __decorateClass([
14828
- Entity85("cms")
14894
+ Entity86("cms")
14829
14895
  ], Cms);
14830
14896
 
14831
14897
  // src/entities/lead.entity.ts
14832
14898
  import {
14833
- Entity as Entity86,
14834
- Column as Column87
14899
+ Entity as Entity87,
14900
+ Column as Column88
14835
14901
  } from "typeorm";
14836
14902
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14837
14903
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -14841,22 +14907,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14841
14907
  var Lead = class extends BaseEntity {
14842
14908
  };
14843
14909
  __decorateClass([
14844
- Column87({ name: "name", type: "varchar", nullable: true })
14910
+ Column88({ name: "name", type: "varchar", nullable: true })
14845
14911
  ], Lead.prototype, "name", 2);
14846
14912
  __decorateClass([
14847
- Column87({ name: "mobile_code", type: "varchar", nullable: true })
14913
+ Column88({ name: "mobile_code", type: "varchar", nullable: true })
14848
14914
  ], Lead.prototype, "mobileCode", 2);
14849
14915
  __decorateClass([
14850
- Column87({ name: "mobile", type: "varchar", nullable: true })
14916
+ Column88({ name: "mobile", type: "varchar", nullable: true })
14851
14917
  ], Lead.prototype, "mobile", 2);
14852
14918
  __decorateClass([
14853
- Column87({ name: "email", type: "varchar", nullable: true })
14919
+ Column88({ name: "email", type: "varchar", nullable: true })
14854
14920
  ], Lead.prototype, "email", 2);
14855
14921
  __decorateClass([
14856
- Column87({ name: "description", type: "varchar", nullable: true })
14922
+ Column88({ name: "description", type: "varchar", nullable: true })
14857
14923
  ], Lead.prototype, "description", 2);
14858
14924
  __decorateClass([
14859
- Column87({
14925
+ Column88({
14860
14926
  name: "category",
14861
14927
  type: "enum",
14862
14928
  enum: CategoryEmum,
@@ -14864,7 +14930,7 @@ __decorateClass([
14864
14930
  })
14865
14931
  ], Lead.prototype, "category", 2);
14866
14932
  Lead = __decorateClass([
14867
- Entity86("leads")
14933
+ Entity87("leads")
14868
14934
  ], Lead);
14869
14935
 
14870
14936
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -15105,7 +15171,7 @@ ClientFreelancerRecommendation = __decorateClass([
15105
15171
  ], ClientFreelancerRecommendation);
15106
15172
 
15107
15173
  // src/entities/commission.entity.ts
15108
- import { Entity as Entity87, Column as Column88 } from "typeorm";
15174
+ import { Entity as Entity88, Column as Column89 } from "typeorm";
15109
15175
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
15110
15176
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
15111
15177
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -15114,7 +15180,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
15114
15180
  var Commission = class extends BaseEntity {
15115
15181
  };
15116
15182
  __decorateClass([
15117
- Column88({
15183
+ Column89({
15118
15184
  name: "freelancer_commission_type",
15119
15185
  type: "enum",
15120
15186
  enum: CommissionTypeEnum,
@@ -15122,10 +15188,10 @@ __decorateClass([
15122
15188
  })
15123
15189
  ], Commission.prototype, "freelancerCommissionType", 2);
15124
15190
  __decorateClass([
15125
- Column88({ name: "freelancer_commission", type: "integer", default: 0 })
15191
+ Column89({ name: "freelancer_commission", type: "integer", default: 0 })
15126
15192
  ], Commission.prototype, "freelancerCommission", 2);
15127
15193
  __decorateClass([
15128
- Column88({
15194
+ Column89({
15129
15195
  name: "client_commission_type",
15130
15196
  type: "enum",
15131
15197
  enum: CommissionTypeEnum,
@@ -15133,58 +15199,58 @@ __decorateClass([
15133
15199
  })
15134
15200
  ], Commission.prototype, "clientCommissionType", 2);
15135
15201
  __decorateClass([
15136
- Column88({ name: "client_commission", type: "integer", default: 0 })
15202
+ Column89({ name: "client_commission", type: "integer", default: 0 })
15137
15203
  ], Commission.prototype, "clientCommission", 2);
15138
15204
  Commission = __decorateClass([
15139
- Entity87("commissions")
15205
+ Entity88("commissions")
15140
15206
  ], Commission);
15141
15207
 
15142
15208
  // src/entities/calendly-meeting-log.entity.ts
15143
15209
  import {
15144
- Entity as Entity88,
15145
- Column as Column89,
15146
- Index as Index72
15210
+ Entity as Entity89,
15211
+ Column as Column90,
15212
+ Index as Index73
15147
15213
  } from "typeorm";
15148
15214
  var CalendlyMeetingLog = class extends BaseEntity {
15149
15215
  };
15150
15216
  __decorateClass([
15151
- Column89({ name: "calendly_event_id", type: "varchar", nullable: true }),
15152
- Index72()
15217
+ Column90({ name: "calendly_event_id", type: "varchar", nullable: true }),
15218
+ Index73()
15153
15219
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
15154
15220
  __decorateClass([
15155
- Column89({ name: "calendly_event_type", type: "varchar", nullable: true })
15221
+ Column90({ name: "calendly_event_type", type: "varchar", nullable: true })
15156
15222
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
15157
15223
  __decorateClass([
15158
- Column89({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15224
+ Column90({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15159
15225
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
15160
15226
  CalendlyMeetingLog = __decorateClass([
15161
- Entity88("calendly_meeting_logs")
15227
+ Entity89("calendly_meeting_logs")
15162
15228
  ], CalendlyMeetingLog);
15163
15229
 
15164
15230
  // src/entities/zoom-meeting-log.entity.ts
15165
15231
  import {
15166
- Entity as Entity89,
15167
- Column as Column90,
15168
- Index as Index73
15232
+ Entity as Entity90,
15233
+ Column as Column91,
15234
+ Index as Index74
15169
15235
  } from "typeorm";
15170
15236
  var ZoomMeetingLog = class extends BaseEntity {
15171
15237
  };
15172
15238
  __decorateClass([
15173
- Column90({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
15174
- Index73()
15239
+ Column91({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
15240
+ Index74()
15175
15241
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
15176
15242
  __decorateClass([
15177
- Column90({ name: "zoom_event_type", type: "varchar", nullable: true })
15243
+ Column91({ name: "zoom_event_type", type: "varchar", nullable: true })
15178
15244
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
15179
15245
  __decorateClass([
15180
- Column90({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15246
+ Column91({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15181
15247
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
15182
15248
  ZoomMeetingLog = __decorateClass([
15183
- Entity89("zoom_meeting_logs")
15249
+ Entity90("zoom_meeting_logs")
15184
15250
  ], ZoomMeetingLog);
15185
15251
 
15186
15252
  // src/entities/docuseal.entity.ts
15187
- import { Entity as Entity90, Column as Column91, Index as Index74 } from "typeorm";
15253
+ import { Entity as Entity91, Column as Column92, Index as Index75 } from "typeorm";
15188
15254
  var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
15189
15255
  DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
15190
15256
  DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
@@ -15194,101 +15260,101 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
15194
15260
  var DocuSeal = class extends BaseEntity {
15195
15261
  };
15196
15262
  __decorateClass([
15197
- Column91({ name: "reference_id", type: "integer", nullable: false }),
15198
- Index74()
15263
+ Column92({ name: "reference_id", type: "integer", nullable: false }),
15264
+ Index75()
15199
15265
  ], DocuSeal.prototype, "referenceId", 2);
15200
15266
  __decorateClass([
15201
- Column91({ name: "submitter_id", type: "integer", nullable: true }),
15202
- Index74()
15267
+ Column92({ name: "submitter_id", type: "integer", nullable: true }),
15268
+ Index75()
15203
15269
  ], DocuSeal.prototype, "submitterId", 2);
15204
15270
  __decorateClass([
15205
- Column91({ name: "submitter_response", type: "jsonb", nullable: true })
15271
+ Column92({ name: "submitter_response", type: "jsonb", nullable: true })
15206
15272
  ], DocuSeal.prototype, "submitterResponse", 2);
15207
15273
  __decorateClass([
15208
- Column91({ name: "webhook_response", type: "jsonb", nullable: true })
15274
+ Column92({ name: "webhook_response", type: "jsonb", nullable: true })
15209
15275
  ], DocuSeal.prototype, "webhookResponse", 2);
15210
15276
  __decorateClass([
15211
- Column91({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
15277
+ Column92({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
15212
15278
  ], DocuSeal.prototype, "type", 2);
15213
15279
  DocuSeal = __decorateClass([
15214
- Entity90("docuseal")
15280
+ Entity91("docuseal")
15215
15281
  ], DocuSeal);
15216
15282
 
15217
15283
  // src/entities/stripe-logs.entity.ts
15218
- import { Entity as Entity91, Column as Column92 } from "typeorm";
15284
+ import { Entity as Entity92, Column as Column93 } from "typeorm";
15219
15285
  var StripeLog = class extends BaseEntity {
15220
15286
  };
15221
15287
  __decorateClass([
15222
- Column92({ name: "stripe_event_id", type: "varchar", nullable: true })
15288
+ Column93({ name: "stripe_event_id", type: "varchar", nullable: true })
15223
15289
  ], StripeLog.prototype, "stripeEventId", 2);
15224
15290
  __decorateClass([
15225
- Column92({ name: "event_type", type: "varchar", nullable: true })
15291
+ Column93({ name: "event_type", type: "varchar", nullable: true })
15226
15292
  ], StripeLog.prototype, "eventType", 2);
15227
15293
  __decorateClass([
15228
- Column92({ name: "stripe_account_id", type: "varchar", nullable: true })
15294
+ Column93({ name: "stripe_account_id", type: "varchar", nullable: true })
15229
15295
  ], StripeLog.prototype, "stripeAccountId", 2);
15230
15296
  __decorateClass([
15231
- Column92({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15297
+ Column93({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15232
15298
  ], StripeLog.prototype, "rawWebhookData", 2);
15233
15299
  StripeLog = __decorateClass([
15234
- Entity91("stripe_logs")
15300
+ Entity92("stripe_logs")
15235
15301
  ], StripeLog);
15236
15302
 
15237
15303
  // src/entities/recommendation-weightage-config.entity.ts
15238
15304
  import {
15239
- Entity as Entity92,
15240
- Column as Column93,
15241
- Index as Index75
15305
+ Entity as Entity93,
15306
+ Column as Column94,
15307
+ Index as Index76
15242
15308
  } from "typeorm";
15243
15309
  var RecommendationWeightageConfig = class extends BaseEntity {
15244
15310
  };
15245
15311
  __decorateClass([
15246
- Column93({
15312
+ Column94({
15247
15313
  type: "varchar",
15248
15314
  length: 100,
15249
15315
  unique: true,
15250
15316
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
15251
15317
  }),
15252
- Index75()
15318
+ Index76()
15253
15319
  ], RecommendationWeightageConfig.prototype, "key", 2);
15254
15320
  __decorateClass([
15255
- Column93({
15321
+ Column94({
15256
15322
  type: "jsonb",
15257
15323
  comment: "JSON object containing weight values",
15258
15324
  nullable: true
15259
15325
  })
15260
15326
  ], RecommendationWeightageConfig.prototype, "value", 2);
15261
15327
  __decorateClass([
15262
- Column93({ name: "is_active", type: "boolean", default: true })
15328
+ Column94({ name: "is_active", type: "boolean", default: true })
15263
15329
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
15264
15330
  RecommendationWeightageConfig = __decorateClass([
15265
- Entity92("recommendation_weightage_configs")
15331
+ Entity93("recommendation_weightage_configs")
15266
15332
  ], RecommendationWeightageConfig);
15267
15333
 
15268
15334
  // src/entities/global-setting.entity.ts
15269
15335
  import {
15270
- Entity as Entity93,
15271
- Column as Column94,
15272
- Index as Index76
15336
+ Entity as Entity94,
15337
+ Column as Column95,
15338
+ Index as Index77
15273
15339
  } from "typeorm";
15274
15340
  var GlobalSetting = class extends BaseEntity {
15275
15341
  };
15276
15342
  __decorateClass([
15277
- Column94({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
15343
+ Column95({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
15278
15344
  ], GlobalSetting.prototype, "key", 2);
15279
15345
  __decorateClass([
15280
- Column94({ name: "value", type: "text", nullable: false })
15346
+ Column95({ name: "value", type: "text", nullable: false })
15281
15347
  ], GlobalSetting.prototype, "value", 2);
15282
15348
  GlobalSetting = __decorateClass([
15283
- Entity93("global_settings"),
15284
- Index76(["key"], { unique: true })
15349
+ Entity94("global_settings"),
15350
+ Index77(["key"], { unique: true })
15285
15351
  ], GlobalSetting);
15286
15352
 
15287
15353
  // src/entities/plan.entity.ts
15288
15354
  import {
15289
- Entity as Entity96,
15290
- Column as Column97,
15291
- Index as Index79,
15355
+ Entity as Entity97,
15356
+ Column as Column98,
15357
+ Index as Index80,
15292
15358
  Check as Check4,
15293
15359
  BeforeInsert as BeforeInsert2,
15294
15360
  BeforeUpdate as BeforeUpdate2,
@@ -15297,57 +15363,57 @@ import {
15297
15363
 
15298
15364
  // src/entities/plan-feature.entity.ts
15299
15365
  import {
15300
- Entity as Entity94,
15301
- Column as Column95,
15302
- ManyToOne as ManyToOne76,
15303
- JoinColumn as JoinColumn77,
15304
- Index as Index77,
15366
+ Entity as Entity95,
15367
+ Column as Column96,
15368
+ ManyToOne as ManyToOne77,
15369
+ JoinColumn as JoinColumn78,
15370
+ Index as Index78,
15305
15371
  Check as Check2
15306
15372
  } from "typeorm";
15307
15373
  var PlanFeature = class extends BaseEntity {
15308
15374
  };
15309
15375
  // individual index to find features by plan
15310
15376
  __decorateClass([
15311
- Column95({ name: "plan_id", type: "integer", nullable: false }),
15312
- Index77()
15377
+ Column96({ name: "plan_id", type: "integer", nullable: false }),
15378
+ Index78()
15313
15379
  ], PlanFeature.prototype, "planId", 2);
15314
15380
  __decorateClass([
15315
- ManyToOne76(() => Plan, (plan) => plan.features, {
15381
+ ManyToOne77(() => Plan, (plan) => plan.features, {
15316
15382
  onDelete: "CASCADE",
15317
15383
  nullable: false
15318
15384
  }),
15319
- JoinColumn77({ name: "plan_id" })
15385
+ JoinColumn78({ name: "plan_id" })
15320
15386
  ], PlanFeature.prototype, "plan", 2);
15321
15387
  __decorateClass([
15322
- Column95({ name: "name", type: "varchar", length: 200 })
15388
+ Column96({ name: "name", type: "varchar", length: 200 })
15323
15389
  ], PlanFeature.prototype, "name", 2);
15324
15390
  __decorateClass([
15325
- Column95({ name: "slug", type: "varchar", length: 100 }),
15326
- Index77()
15391
+ Column96({ name: "slug", type: "varchar", length: 100 }),
15392
+ Index78()
15327
15393
  ], PlanFeature.prototype, "slug", 2);
15328
15394
  __decorateClass([
15329
- Column95({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15395
+ Column96({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15330
15396
  ], PlanFeature.prototype, "tooltip", 2);
15331
15397
  __decorateClass([
15332
- Column95({ name: "sort_order", type: "smallint", default: 0 })
15398
+ Column96({ name: "sort_order", type: "smallint", default: 0 })
15333
15399
  ], PlanFeature.prototype, "sortOrder", 2);
15334
15400
  __decorateClass([
15335
- Column95({ name: "is_active", type: "boolean", default: true })
15401
+ Column96({ name: "is_active", type: "boolean", default: true })
15336
15402
  ], PlanFeature.prototype, "isActive", 2);
15337
15403
  PlanFeature = __decorateClass([
15338
- Entity94("plan_features"),
15339
- Index77("idx_plan_features_plan_id", ["planId"]),
15340
- Index77("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
15404
+ Entity95("plan_features"),
15405
+ Index78("idx_plan_features_plan_id", ["planId"]),
15406
+ Index78("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
15341
15407
  Check2("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
15342
15408
  ], PlanFeature);
15343
15409
 
15344
15410
  // src/entities/plan-pricing.entity.ts
15345
15411
  import {
15346
- Entity as Entity95,
15347
- Column as Column96,
15348
- ManyToOne as ManyToOne77,
15349
- JoinColumn as JoinColumn78,
15350
- Index as Index78,
15412
+ Entity as Entity96,
15413
+ Column as Column97,
15414
+ ManyToOne as ManyToOne78,
15415
+ JoinColumn as JoinColumn79,
15416
+ Index as Index79,
15351
15417
  Unique,
15352
15418
  Check as Check3,
15353
15419
  BeforeInsert,
@@ -15407,56 +15473,56 @@ var PlanPricing = class extends BaseEntity {
15407
15473
  };
15408
15474
  // individual index to find pricing by plan
15409
15475
  __decorateClass([
15410
- Column96({ name: "plan_id", type: "integer", nullable: false }),
15411
- Index78()
15476
+ Column97({ name: "plan_id", type: "integer", nullable: false }),
15477
+ Index79()
15412
15478
  ], PlanPricing.prototype, "planId", 2);
15413
15479
  __decorateClass([
15414
- ManyToOne77(() => Plan, (plan) => plan.pricing, {
15480
+ ManyToOne78(() => Plan, (plan) => plan.pricing, {
15415
15481
  onDelete: "CASCADE",
15416
15482
  nullable: false
15417
15483
  }),
15418
- JoinColumn78({ name: "plan_id" })
15484
+ JoinColumn79({ name: "plan_id" })
15419
15485
  ], PlanPricing.prototype, "plan", 2);
15420
15486
  __decorateClass([
15421
- Column96({
15487
+ Column97({
15422
15488
  name: "billing_cycle",
15423
15489
  type: "enum",
15424
15490
  enum: PlanPricingBillingCycleEnum
15425
15491
  })
15426
15492
  ], PlanPricing.prototype, "billingCycle", 2);
15427
15493
  __decorateClass([
15428
- Column96({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
15494
+ Column97({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
15429
15495
  ], PlanPricing.prototype, "price", 2);
15430
15496
  __decorateClass([
15431
- Column96({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
15497
+ Column97({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
15432
15498
  ], PlanPricing.prototype, "originalPrice", 2);
15433
15499
  __decorateClass([
15434
- Column96({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
15500
+ Column97({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
15435
15501
  ], PlanPricing.prototype, "discountPct", 2);
15436
15502
  __decorateClass([
15437
- Column96({ name: "currency", type: "varchar", length: 3, default: "USD" })
15503
+ Column97({ name: "currency", type: "varchar", length: 3, default: "USD" })
15438
15504
  ], PlanPricing.prototype, "currency", 2);
15439
15505
  __decorateClass([
15440
- Column96({ name: "is_free", type: "boolean", default: false })
15506
+ Column97({ name: "is_free", type: "boolean", default: false })
15441
15507
  ], PlanPricing.prototype, "isFree", 2);
15442
15508
  __decorateClass([
15443
- Column96({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
15509
+ Column97({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
15444
15510
  ], PlanPricing.prototype, "stripePriceId", 2);
15445
15511
  __decorateClass([
15446
- Column96({ name: "trial_days", type: "smallint", default: 0 })
15512
+ Column97({ name: "trial_days", type: "smallint", default: 0 })
15447
15513
  ], PlanPricing.prototype, "trialDays", 2);
15448
15514
  __decorateClass([
15449
- Column96({ name: "is_active", type: "boolean", default: true })
15515
+ Column97({ name: "is_active", type: "boolean", default: true })
15450
15516
  ], PlanPricing.prototype, "isActive", 2);
15451
15517
  __decorateClass([
15452
15518
  BeforeInsert(),
15453
15519
  BeforeUpdate()
15454
15520
  ], PlanPricing.prototype, "sanitize", 1);
15455
15521
  PlanPricing = __decorateClass([
15456
- Entity95("plan_pricings"),
15522
+ Entity96("plan_pricings"),
15457
15523
  Unique("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
15458
- Index78("idx_plan_pricings_plan_id", ["planId"]),
15459
- Index78("idx_plan_pricings_active", ["isActive", "billingCycle"]),
15524
+ Index79("idx_plan_pricings_plan_id", ["planId"]),
15525
+ Index79("idx_plan_pricings_active", ["isActive", "billingCycle"]),
15460
15526
  Check3("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
15461
15527
  Check3("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
15462
15528
  Check3("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
@@ -15478,22 +15544,22 @@ var Plan = class extends BaseEntity {
15478
15544
  }
15479
15545
  };
15480
15546
  __decorateClass([
15481
- Column97({ name: "name", type: "varchar", length: 100 })
15547
+ Column98({ name: "name", type: "varchar", length: 100 })
15482
15548
  ], Plan.prototype, "name", 2);
15483
15549
  __decorateClass([
15484
- Column97({ name: "slug", type: "varchar", length: 100 })
15550
+ Column98({ name: "slug", type: "varchar", length: 100 })
15485
15551
  ], Plan.prototype, "slug", 2);
15486
15552
  __decorateClass([
15487
- Column97({ name: "badge_label", type: "varchar", length: 60, nullable: true })
15553
+ Column98({ name: "badge_label", type: "varchar", length: 60, nullable: true })
15488
15554
  ], Plan.prototype, "badgeLabel", 2);
15489
15555
  __decorateClass([
15490
- Column97({ name: "sort_order", type: "smallint", default: 0 })
15556
+ Column98({ name: "sort_order", type: "smallint", default: 0 })
15491
15557
  ], Plan.prototype, "sortOrder", 2);
15492
15558
  __decorateClass([
15493
- Column97({ name: "is_active", type: "boolean", default: true })
15559
+ Column98({ name: "is_active", type: "boolean", default: true })
15494
15560
  ], Plan.prototype, "isActive", 2);
15495
15561
  __decorateClass([
15496
- Column97({
15562
+ Column98({
15497
15563
  name: "plan_type",
15498
15564
  type: "enum",
15499
15565
  enum: PlanTypeEnum,
@@ -15501,10 +15567,10 @@ __decorateClass([
15501
15567
  })
15502
15568
  ], Plan.prototype, "planType", 2);
15503
15569
  __decorateClass([
15504
- Column97({ name: "metadata", type: "jsonb", default: {} })
15570
+ Column98({ name: "metadata", type: "jsonb", default: {} })
15505
15571
  ], Plan.prototype, "metadata", 2);
15506
15572
  __decorateClass([
15507
- Column97({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
15573
+ Column98({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
15508
15574
  ], Plan.prototype, "stripeProductId", 2);
15509
15575
  __decorateClass([
15510
15576
  BeforeInsert2(),
@@ -15521,21 +15587,21 @@ __decorateClass([
15521
15587
  })
15522
15588
  ], Plan.prototype, "pricing", 2);
15523
15589
  Plan = __decorateClass([
15524
- Entity96("plans"),
15525
- Index79("idx_plans_slug_plan_type", ["slug", "planType"], {
15590
+ Entity97("plans"),
15591
+ Index80("idx_plans_slug_plan_type", ["slug", "planType"], {
15526
15592
  unique: true,
15527
15593
  where: '"is_deleted" IS FALSE'
15528
15594
  }),
15529
- Index79("idx_plans_active_sort", ["isActive", "sortOrder"]),
15595
+ Index80("idx_plans_active_sort", ["isActive", "sortOrder"]),
15530
15596
  Check4("chk_plans_sort_order_positive", '"sort_order" >= 0')
15531
15597
  ], Plan);
15532
15598
 
15533
15599
  // src/entities/subscription-feature.entity.ts
15534
15600
  import {
15535
- Entity as Entity97,
15536
- Column as Column98,
15601
+ Entity as Entity98,
15602
+ Column as Column99,
15537
15603
  Check as Check5,
15538
- Index as Index80,
15604
+ Index as Index81,
15539
15605
  BeforeInsert as BeforeInsert3,
15540
15606
  BeforeUpdate as BeforeUpdate3
15541
15607
  } from "typeorm";
@@ -15553,33 +15619,33 @@ var SubscriptionFeature = class extends BaseEntity {
15553
15619
  }
15554
15620
  };
15555
15621
  __decorateClass([
15556
- Column98({ name: "name", type: "varchar", length: 200 })
15622
+ Column99({ name: "name", type: "varchar", length: 200 })
15557
15623
  ], SubscriptionFeature.prototype, "name", 2);
15558
15624
  __decorateClass([
15559
- Column98({ name: "slug", type: "varchar", length: 100 })
15625
+ Column99({ name: "slug", type: "varchar", length: 100 })
15560
15626
  ], SubscriptionFeature.prototype, "slug", 2);
15561
15627
  __decorateClass([
15562
- Column98({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15628
+ Column99({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15563
15629
  ], SubscriptionFeature.prototype, "tooltip", 2);
15564
15630
  __decorateClass([
15565
- Column98({ name: "sort_order", type: "smallint", default: 0 })
15631
+ Column99({ name: "sort_order", type: "smallint", default: 0 })
15566
15632
  ], SubscriptionFeature.prototype, "sortOrder", 2);
15567
15633
  __decorateClass([
15568
- Column98({ name: "is_active", type: "boolean", default: true })
15634
+ Column99({ name: "is_active", type: "boolean", default: true })
15569
15635
  ], SubscriptionFeature.prototype, "isActive", 2);
15570
15636
  __decorateClass([
15571
15637
  BeforeInsert3(),
15572
15638
  BeforeUpdate3()
15573
15639
  ], SubscriptionFeature.prototype, "createSlug", 1);
15574
15640
  SubscriptionFeature = __decorateClass([
15575
- Entity97("subscription_features"),
15576
- Index80("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15577
- Index80("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
15641
+ Entity98("subscription_features"),
15642
+ Index81("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15643
+ Index81("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
15578
15644
  Check5("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
15579
15645
  ], SubscriptionFeature);
15580
15646
 
15581
15647
  // src/entities/user-subscription-transaction.entity.ts
15582
- import { Entity as Entity98, Column as Column99, Index as Index81, ManyToOne as ManyToOne78, JoinColumn as JoinColumn79 } from "typeorm";
15648
+ import { Entity as Entity99, Column as Column100, Index as Index82, ManyToOne as ManyToOne79, JoinColumn as JoinColumn80 } from "typeorm";
15583
15649
  var UserSubscriptionTransactionTypeEnum = /* @__PURE__ */ ((UserSubscriptionTransactionTypeEnum2) => {
15584
15650
  UserSubscriptionTransactionTypeEnum2["SUBSCRIPTION_INITIATED"] = "SUBSCRIPTION_INITIATED";
15585
15651
  UserSubscriptionTransactionTypeEnum2["CHECKOUT_SESSION_CREATED"] = "CHECKOUT_SESSION_CREATED";
@@ -15597,25 +15663,25 @@ var UserSubscriptionTransactionStatusEnum = /* @__PURE__ */ ((UserSubscriptionTr
15597
15663
  var UserSubscriptionTransaction = class extends BaseEntity {
15598
15664
  };
15599
15665
  __decorateClass([
15600
- Column99({ name: "user_subscription_id", type: "integer", nullable: false }),
15601
- Index81()
15666
+ Column100({ name: "user_subscription_id", type: "integer", nullable: false }),
15667
+ Index82()
15602
15668
  ], UserSubscriptionTransaction.prototype, "userSubscriptionId", 2);
15603
15669
  __decorateClass([
15604
- ManyToOne78(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
15605
- JoinColumn79({ name: "user_subscription_id" })
15670
+ ManyToOne79(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
15671
+ JoinColumn80({ name: "user_subscription_id" })
15606
15672
  ], UserSubscriptionTransaction.prototype, "userSubscription", 2);
15607
15673
  __decorateClass([
15608
- Column99({ name: "user_id", type: "integer", nullable: false })
15674
+ Column100({ name: "user_id", type: "integer", nullable: false })
15609
15675
  ], UserSubscriptionTransaction.prototype, "userId", 2);
15610
15676
  __decorateClass([
15611
- Column99({
15677
+ Column100({
15612
15678
  name: "type",
15613
15679
  type: "enum",
15614
15680
  enum: UserSubscriptionTransactionTypeEnum
15615
15681
  })
15616
15682
  ], UserSubscriptionTransaction.prototype, "type", 2);
15617
15683
  __decorateClass([
15618
- Column99({
15684
+ Column100({
15619
15685
  name: "status",
15620
15686
  type: "enum",
15621
15687
  enum: UserSubscriptionTransactionStatusEnum,
@@ -15623,73 +15689,133 @@ __decorateClass([
15623
15689
  })
15624
15690
  ], UserSubscriptionTransaction.prototype, "status", 2);
15625
15691
  __decorateClass([
15626
- Column99({ name: "plan_name", type: "text", nullable: true })
15692
+ Column100({ name: "plan_name", type: "text", nullable: true })
15627
15693
  ], UserSubscriptionTransaction.prototype, "planName", 2);
15628
15694
  __decorateClass([
15629
- Column99({ name: "amount_minor", type: "integer", nullable: true })
15695
+ Column100({ name: "amount_minor", type: "integer", nullable: true })
15630
15696
  ], UserSubscriptionTransaction.prototype, "amountMinor", 2);
15631
15697
  __decorateClass([
15632
- Column99({ name: "currency", type: "varchar", length: 3, nullable: true })
15698
+ Column100({ name: "currency", type: "varchar", length: 3, nullable: true })
15633
15699
  ], UserSubscriptionTransaction.prototype, "currency", 2);
15634
15700
  __decorateClass([
15635
- Column99({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
15701
+ Column100({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
15636
15702
  ], UserSubscriptionTransaction.prototype, "stripeEventId", 2);
15637
15703
  __decorateClass([
15638
- Column99({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
15704
+ Column100({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
15639
15705
  ], UserSubscriptionTransaction.prototype, "stripeEventType", 2);
15640
15706
  __decorateClass([
15641
- Column99({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
15707
+ Column100({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
15642
15708
  ], UserSubscriptionTransaction.prototype, "stripeSubscriptionId", 2);
15643
15709
  __decorateClass([
15644
- Column99({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
15710
+ Column100({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
15645
15711
  ], UserSubscriptionTransaction.prototype, "stripeInvoiceId", 2);
15646
15712
  __decorateClass([
15647
- Column99({ name: "description", type: "text", nullable: true })
15713
+ Column100({ name: "description", type: "text", nullable: true })
15648
15714
  ], UserSubscriptionTransaction.prototype, "description", 2);
15649
15715
  __decorateClass([
15650
- Column99({ name: "invoice_url", type: "text", nullable: true })
15716
+ Column100({ name: "invoice_url", type: "text", nullable: true })
15651
15717
  ], UserSubscriptionTransaction.prototype, "invoiceUrl", 2);
15652
15718
  __decorateClass([
15653
- Column99({ name: "checkout_request_payload", type: "jsonb", nullable: true })
15719
+ Column100({ name: "checkout_request_payload", type: "jsonb", nullable: true })
15654
15720
  ], UserSubscriptionTransaction.prototype, "checkoutRequestPayload", 2);
15655
15721
  __decorateClass([
15656
- Column99({ name: "checkout_response_payload", type: "jsonb", nullable: true })
15722
+ Column100({ name: "checkout_response_payload", type: "jsonb", nullable: true })
15657
15723
  ], UserSubscriptionTransaction.prototype, "checkoutResponsePayload", 2);
15658
15724
  __decorateClass([
15659
- Column99({ name: "webhook_payload", type: "jsonb", nullable: true })
15725
+ Column100({ name: "webhook_payload", type: "jsonb", nullable: true })
15660
15726
  ], UserSubscriptionTransaction.prototype, "webhookPayload", 2);
15661
15727
  __decorateClass([
15662
- Column99({ name: "metadata", type: "jsonb", nullable: true, default: {} })
15728
+ Column100({ name: "metadata", type: "jsonb", nullable: true, default: {} })
15663
15729
  ], UserSubscriptionTransaction.prototype, "metadata", 2);
15664
15730
  UserSubscriptionTransaction = __decorateClass([
15665
- Entity98("user_subscription_transactions"),
15666
- Index81("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
15667
- Index81("idx_user_sub_tx_user_id", ["userId"]),
15668
- Index81("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
15731
+ Entity99("user_subscription_transactions"),
15732
+ Index82("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
15733
+ Index82("idx_user_sub_tx_user_id", ["userId"]),
15734
+ Index82("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
15669
15735
  ], UserSubscriptionTransaction);
15670
15736
 
15671
15737
  // src/entities/vendor-api-configuration.entity.ts
15672
- import { Column as Column100, Entity as Entity99 } from "typeorm";
15738
+ import { Column as Column101, Entity as Entity100 } from "typeorm";
15673
15739
  var VendorApiConfiguration = class extends BaseEntity {
15674
15740
  };
15675
15741
  __decorateClass([
15676
- Column100({ name: "vendor_name", type: "varchar", length: 255 })
15742
+ Column101({ name: "vendor_name", type: "varchar", length: 255 })
15677
15743
  ], VendorApiConfiguration.prototype, "vendorName", 2);
15678
15744
  __decorateClass([
15679
- Column100({ name: "vendor_api_key", type: "varchar", length: 255 })
15745
+ Column101({ name: "vendor_api_key", type: "varchar", length: 255 })
15680
15746
  ], VendorApiConfiguration.prototype, "vendorApiKey", 2);
15681
15747
  __decorateClass([
15682
- Column100({ name: "vendor_api_secret_key", type: "text" })
15748
+ Column101({ name: "vendor_api_secret_key", type: "text" })
15683
15749
  ], VendorApiConfiguration.prototype, "vendorApiSecretKey", 2);
15684
15750
  __decorateClass([
15685
- Column100({ name: "slug", type: "varchar", nullable: true, unique: true })
15751
+ Column101({ name: "slug", type: "varchar", nullable: true, unique: true })
15686
15752
  ], VendorApiConfiguration.prototype, "slug", 2);
15687
15753
  __decorateClass([
15688
- Column100({ name: "is_active", type: "boolean", default: true })
15754
+ Column101({ name: "is_active", type: "boolean", default: true })
15689
15755
  ], VendorApiConfiguration.prototype, "isActive", 2);
15690
15756
  VendorApiConfiguration = __decorateClass([
15691
- Entity99("vendor_api_configurations")
15757
+ Entity100("vendor_api_configurations")
15692
15758
  ], VendorApiConfiguration);
15759
+
15760
+ // src/entities/ekyc-verification-log.entity.ts
15761
+ import {
15762
+ Entity as Entity101,
15763
+ Column as Column102,
15764
+ PrimaryGeneratedColumn as PrimaryGeneratedColumn7
15765
+ } from "typeorm";
15766
+ var EkycVerificationLogStatusEnum = /* @__PURE__ */ ((EkycVerificationLogStatusEnum2) => {
15767
+ EkycVerificationLogStatusEnum2["NOT_STARTED"] = "NOT_STARTED";
15768
+ EkycVerificationLogStatusEnum2["NOT_FINISHED"] = "NOT_FINISHED";
15769
+ EkycVerificationLogStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
15770
+ EkycVerificationLogStatusEnum2["APPROVED"] = "APPROVED";
15771
+ EkycVerificationLogStatusEnum2["DECLINED"] = "DECLINED";
15772
+ EkycVerificationLogStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
15773
+ EkycVerificationLogStatusEnum2["EXPIRED"] = "EXPIRED";
15774
+ EkycVerificationLogStatusEnum2["KYC_EXPIRED"] = "KYC_EXPIRED";
15775
+ EkycVerificationLogStatusEnum2["ABANDONED"] = "ABANDONED";
15776
+ EkycVerificationLogStatusEnum2["RESUBMITTED"] = "RESUBMITTED";
15777
+ EkycVerificationLogStatusEnum2["AWAITING_USER"] = "AWAITING_USER";
15778
+ return EkycVerificationLogStatusEnum2;
15779
+ })(EkycVerificationLogStatusEnum || {});
15780
+ var EkycVerifcationLog = class {
15781
+ };
15782
+ __decorateClass([
15783
+ PrimaryGeneratedColumn7("increment", { type: "integer" })
15784
+ ], EkycVerifcationLog.prototype, "id", 2);
15785
+ __decorateClass([
15786
+ Column102({ name: "session_id", type: "varchar", unique: true })
15787
+ ], EkycVerifcationLog.prototype, "sessionId", 2);
15788
+ __decorateClass([
15789
+ Column102({ name: "workflow_id", type: "varchar", unique: true })
15790
+ ], EkycVerifcationLog.prototype, "workflowId", 2);
15791
+ __decorateClass([
15792
+ Column102({ name: "callback_url", type: "varchar", unique: true })
15793
+ ], EkycVerifcationLog.prototype, "callBackUrl", 2);
15794
+ __decorateClass([
15795
+ Column102({
15796
+ type: "enum",
15797
+ enum: EkycVerificationLogStatusEnum,
15798
+ nullable: true
15799
+ })
15800
+ ], EkycVerifcationLog.prototype, "status", 2);
15801
+ __decorateClass([
15802
+ Column102({ name: "signature_method", type: "varchar", nullable: true })
15803
+ ], EkycVerifcationLog.prototype, "signatureMethod", 2);
15804
+ __decorateClass([
15805
+ Column102({ name: "is_signature_valid", type: "boolean", default: false })
15806
+ ], EkycVerifcationLog.prototype, "isSignatureValid", 2);
15807
+ __decorateClass([
15808
+ Column102({ name: "raw_payload", type: "text", nullable: true })
15809
+ ], EkycVerifcationLog.prototype, "rawPayload", 2);
15810
+ __decorateClass([
15811
+ Column102({ name: "headers", type: "jsonb", nullable: true })
15812
+ ], EkycVerifcationLog.prototype, "headers", 2);
15813
+ __decorateClass([
15814
+ Column102({ name: "error_message", type: "text", nullable: true })
15815
+ ], EkycVerifcationLog.prototype, "errorMessage", 2);
15816
+ EkycVerifcationLog = __decorateClass([
15817
+ Entity101("ekyc_verification_logs")
15818
+ ], EkycVerifcationLog);
15693
15819
  export {
15694
15820
  ADMIN_FREELANCER_PATTERN,
15695
15821
  ADMIN_JOB_PATTERN,
@@ -15842,6 +15968,10 @@ export {
15842
15968
  DurationTypeEnum,
15843
15969
  EMAIL_PATTERN,
15844
15970
  EducationDto,
15971
+ EkycVerifcationLog,
15972
+ EkycVerificationLogStatusEnum,
15973
+ EkycVerificationSession,
15974
+ EkycVerificationSessionStatusEnum,
15845
15975
  EscrowFundContractDto,
15846
15976
  EscrowWallet,
15847
15977
  EscrowWalletTransaction,