@experts_hub/shared 1.0.732 → 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
@@ -14630,11 +14695,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
14630
14695
  };
14631
14696
 
14632
14697
  // src/entities/sequence-generator.entity.ts
14633
- import { Entity as Entity80, Column as Column81 } from "typeorm";
14698
+ import { Entity as Entity81, Column as Column82 } from "typeorm";
14634
14699
  var SequenceGenerator = class extends BaseEntity {
14635
14700
  };
14636
14701
  __decorateClass([
14637
- Column81({
14702
+ Column82({
14638
14703
  name: "module",
14639
14704
  type: "varchar",
14640
14705
  length: 50,
@@ -14643,7 +14708,7 @@ __decorateClass([
14643
14708
  })
14644
14709
  ], SequenceGenerator.prototype, "module", 2);
14645
14710
  __decorateClass([
14646
- Column81({
14711
+ Column82({
14647
14712
  name: "prefix",
14648
14713
  type: "varchar",
14649
14714
  length: 10,
@@ -14652,7 +14717,7 @@ __decorateClass([
14652
14717
  })
14653
14718
  ], SequenceGenerator.prototype, "prefix", 2);
14654
14719
  __decorateClass([
14655
- Column81({
14720
+ Column82({
14656
14721
  name: "last_sequence",
14657
14722
  type: "int",
14658
14723
  nullable: false,
@@ -14660,7 +14725,7 @@ __decorateClass([
14660
14725
  })
14661
14726
  ], SequenceGenerator.prototype, "lastSequence", 2);
14662
14727
  __decorateClass([
14663
- Column81({
14728
+ Column82({
14664
14729
  name: "year",
14665
14730
  type: "int",
14666
14731
  nullable: true,
@@ -14668,11 +14733,11 @@ __decorateClass([
14668
14733
  })
14669
14734
  ], SequenceGenerator.prototype, "year", 2);
14670
14735
  SequenceGenerator = __decorateClass([
14671
- Entity80("sequence_generators")
14736
+ Entity81("sequence_generators")
14672
14737
  ], SequenceGenerator);
14673
14738
 
14674
14739
  // src/entities/question.entity.ts
14675
- import { Entity as Entity81, Column as Column82 } from "typeorm";
14740
+ import { Entity as Entity82, Column as Column83 } from "typeorm";
14676
14741
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
14677
14742
  QuestionFor2["CLIENT"] = "CLIENT";
14678
14743
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -14681,16 +14746,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
14681
14746
  var Question = class extends BaseEntity {
14682
14747
  };
14683
14748
  __decorateClass([
14684
- Column82({ name: "question", type: "varchar" })
14749
+ Column83({ name: "question", type: "varchar" })
14685
14750
  ], Question.prototype, "question", 2);
14686
14751
  __decorateClass([
14687
- Column82({ name: "hint", type: "varchar", nullable: true })
14752
+ Column83({ name: "hint", type: "varchar", nullable: true })
14688
14753
  ], Question.prototype, "hint", 2);
14689
14754
  __decorateClass([
14690
- Column82({ name: "slug", type: "varchar", nullable: true, unique: true })
14755
+ Column83({ name: "slug", type: "varchar", nullable: true, unique: true })
14691
14756
  ], Question.prototype, "slug", 2);
14692
14757
  __decorateClass([
14693
- Column82({
14758
+ Column83({
14694
14759
  name: "question_for",
14695
14760
  type: "enum",
14696
14761
  enum: QuestionFor,
@@ -14698,49 +14763,49 @@ __decorateClass([
14698
14763
  })
14699
14764
  ], Question.prototype, "questionFor", 2);
14700
14765
  __decorateClass([
14701
- Column82({ name: "type", type: "varchar", nullable: true })
14766
+ Column83({ name: "type", type: "varchar", nullable: true })
14702
14767
  ], Question.prototype, "type", 2);
14703
14768
  __decorateClass([
14704
- Column82({ name: "options", type: "jsonb", nullable: true })
14769
+ Column83({ name: "options", type: "jsonb", nullable: true })
14705
14770
  ], Question.prototype, "options", 2);
14706
14771
  __decorateClass([
14707
- Column82({ name: "is_active", type: "boolean", default: false })
14772
+ Column83({ name: "is_active", type: "boolean", default: false })
14708
14773
  ], Question.prototype, "isActive", 2);
14709
14774
  Question = __decorateClass([
14710
- Entity81("questions")
14775
+ Entity82("questions")
14711
14776
  ], Question);
14712
14777
 
14713
14778
  // src/entities/skill.entity.ts
14714
- import { Entity as Entity82, Column as Column83 } from "typeorm";
14779
+ import { Entity as Entity83, Column as Column84 } from "typeorm";
14715
14780
  var Skill = class extends BaseEntity {
14716
14781
  };
14717
14782
  __decorateClass([
14718
- Column83({ name: "name", type: "varchar", nullable: true })
14783
+ Column84({ name: "name", type: "varchar", nullable: true })
14719
14784
  ], Skill.prototype, "name", 2);
14720
14785
  __decorateClass([
14721
- Column83({ name: "slug", type: "varchar", nullable: true, unique: true })
14786
+ Column84({ name: "slug", type: "varchar", nullable: true, unique: true })
14722
14787
  ], Skill.prototype, "slug", 2);
14723
14788
  __decorateClass([
14724
- Column83({ name: "is_active", type: "boolean", default: false })
14789
+ Column84({ name: "is_active", type: "boolean", default: false })
14725
14790
  ], Skill.prototype, "isActive", 2);
14726
14791
  Skill = __decorateClass([
14727
- Entity82("skills")
14792
+ Entity83("skills")
14728
14793
  ], Skill);
14729
14794
 
14730
14795
  // src/entities/skill-catalog.entity.ts
14731
14796
  import {
14732
- Entity as Entity83,
14733
- Column as Column84,
14734
- Index as Index71
14797
+ Entity as Entity84,
14798
+ Column as Column85,
14799
+ Index as Index72
14735
14800
  } from "typeorm";
14736
14801
  var SkillCatalog = class extends BaseEntity {
14737
14802
  };
14738
14803
  __decorateClass([
14739
- Column84({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14740
- Index71()
14804
+ Column85({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14805
+ Index72()
14741
14806
  ], SkillCatalog.prototype, "canonicalName", 2);
14742
14807
  __decorateClass([
14743
- Column84({
14808
+ Column85({
14744
14809
  name: "aliases",
14745
14810
  type: "text",
14746
14811
  array: true,
@@ -14748,20 +14813,20 @@ __decorateClass([
14748
14813
  })
14749
14814
  ], SkillCatalog.prototype, "aliases", 2);
14750
14815
  __decorateClass([
14751
- Column84({
14816
+ Column85({
14752
14817
  name: "variations",
14753
14818
  type: "jsonb",
14754
14819
  default: "{}"
14755
14820
  })
14756
14821
  ], SkillCatalog.prototype, "variations", 2);
14757
14822
  __decorateClass([
14758
- Column84({ name: "category", type: "varchar", length: 50, nullable: true })
14823
+ Column85({ name: "category", type: "varchar", length: 50, nullable: true })
14759
14824
  ], SkillCatalog.prototype, "category", 2);
14760
14825
  __decorateClass([
14761
- Column84({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
14826
+ Column85({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
14762
14827
  ], SkillCatalog.prototype, "parentSkill", 2);
14763
14828
  __decorateClass([
14764
- Column84({
14829
+ Column85({
14765
14830
  name: "related_skills",
14766
14831
  type: "text",
14767
14832
  array: true,
@@ -14769,70 +14834,70 @@ __decorateClass([
14769
14834
  })
14770
14835
  ], SkillCatalog.prototype, "relatedSkills", 2);
14771
14836
  __decorateClass([
14772
- Column84({ name: "usage_count", type: "integer", default: 0 }),
14773
- Index71()
14837
+ Column85({ name: "usage_count", type: "integer", default: 0 }),
14838
+ Index72()
14774
14839
  ], SkillCatalog.prototype, "usageCount", 2);
14775
14840
  __decorateClass([
14776
- Column84({ name: "is_verified", type: "boolean", default: false })
14841
+ Column85({ name: "is_verified", type: "boolean", default: false })
14777
14842
  ], SkillCatalog.prototype, "isVerified", 2);
14778
14843
  __decorateClass([
14779
- Column84({ name: "first_seen_date", type: "date" })
14844
+ Column85({ name: "first_seen_date", type: "date" })
14780
14845
  ], SkillCatalog.prototype, "firstSeenDate", 2);
14781
14846
  __decorateClass([
14782
- Column84({ name: "last_updated_date", type: "date" })
14847
+ Column85({ name: "last_updated_date", type: "date" })
14783
14848
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
14784
14849
  __decorateClass([
14785
- Column84({
14850
+ Column85({
14786
14851
  name: "search_vector",
14787
14852
  type: "tsvector",
14788
14853
  nullable: true
14789
14854
  })
14790
14855
  ], SkillCatalog.prototype, "searchVector", 2);
14791
14856
  SkillCatalog = __decorateClass([
14792
- Entity83("skill_catalogs")
14857
+ Entity84("skill_catalogs")
14793
14858
  ], SkillCatalog);
14794
14859
 
14795
14860
  // src/entities/job-role.entity.ts
14796
- import { Entity as Entity84, Column as Column85 } from "typeorm";
14861
+ import { Entity as Entity85, Column as Column86 } from "typeorm";
14797
14862
  var JobRoles = class extends BaseEntity {
14798
14863
  };
14799
14864
  __decorateClass([
14800
- Column85({ name: "slug", type: "varchar", nullable: true, unique: true })
14865
+ Column86({ name: "slug", type: "varchar", nullable: true, unique: true })
14801
14866
  ], JobRoles.prototype, "slug", 2);
14802
14867
  __decorateClass([
14803
- Column85({ name: "name", type: "varchar", nullable: true })
14868
+ Column86({ name: "name", type: "varchar", nullable: true })
14804
14869
  ], JobRoles.prototype, "name", 2);
14805
14870
  __decorateClass([
14806
- Column85({ name: "is_active", type: "boolean", default: true })
14871
+ Column86({ name: "is_active", type: "boolean", default: true })
14807
14872
  ], JobRoles.prototype, "isActive", 2);
14808
14873
  JobRoles = __decorateClass([
14809
- Entity84("job_roles")
14874
+ Entity85("job_roles")
14810
14875
  ], JobRoles);
14811
14876
 
14812
14877
  // src/entities/cms.entity.ts
14813
- import { Entity as Entity85, Column as Column86 } from "typeorm";
14878
+ import { Entity as Entity86, Column as Column87 } from "typeorm";
14814
14879
  var Cms = class extends BaseEntity {
14815
14880
  };
14816
14881
  __decorateClass([
14817
- Column86({ name: "title", type: "varchar", nullable: true })
14882
+ Column87({ name: "title", type: "varchar", nullable: true })
14818
14883
  ], Cms.prototype, "title", 2);
14819
14884
  __decorateClass([
14820
- Column86({ name: "slug", type: "varchar", nullable: true, unique: true })
14885
+ Column87({ name: "slug", type: "varchar", nullable: true, unique: true })
14821
14886
  ], Cms.prototype, "slug", 2);
14822
14887
  __decorateClass([
14823
- Column86({ name: "content", type: "varchar", nullable: true })
14888
+ Column87({ name: "content", type: "varchar", nullable: true })
14824
14889
  ], Cms.prototype, "content", 2);
14825
14890
  __decorateClass([
14826
- Column86({ name: "is_active", type: "boolean", default: true })
14891
+ Column87({ name: "is_active", type: "boolean", default: true })
14827
14892
  ], Cms.prototype, "isActive", 2);
14828
14893
  Cms = __decorateClass([
14829
- Entity85("cms")
14894
+ Entity86("cms")
14830
14895
  ], Cms);
14831
14896
 
14832
14897
  // src/entities/lead.entity.ts
14833
14898
  import {
14834
- Entity as Entity86,
14835
- Column as Column87
14899
+ Entity as Entity87,
14900
+ Column as Column88
14836
14901
  } from "typeorm";
14837
14902
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14838
14903
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -14842,22 +14907,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14842
14907
  var Lead = class extends BaseEntity {
14843
14908
  };
14844
14909
  __decorateClass([
14845
- Column87({ name: "name", type: "varchar", nullable: true })
14910
+ Column88({ name: "name", type: "varchar", nullable: true })
14846
14911
  ], Lead.prototype, "name", 2);
14847
14912
  __decorateClass([
14848
- Column87({ name: "mobile_code", type: "varchar", nullable: true })
14913
+ Column88({ name: "mobile_code", type: "varchar", nullable: true })
14849
14914
  ], Lead.prototype, "mobileCode", 2);
14850
14915
  __decorateClass([
14851
- Column87({ name: "mobile", type: "varchar", nullable: true })
14916
+ Column88({ name: "mobile", type: "varchar", nullable: true })
14852
14917
  ], Lead.prototype, "mobile", 2);
14853
14918
  __decorateClass([
14854
- Column87({ name: "email", type: "varchar", nullable: true })
14919
+ Column88({ name: "email", type: "varchar", nullable: true })
14855
14920
  ], Lead.prototype, "email", 2);
14856
14921
  __decorateClass([
14857
- Column87({ name: "description", type: "varchar", nullable: true })
14922
+ Column88({ name: "description", type: "varchar", nullable: true })
14858
14923
  ], Lead.prototype, "description", 2);
14859
14924
  __decorateClass([
14860
- Column87({
14925
+ Column88({
14861
14926
  name: "category",
14862
14927
  type: "enum",
14863
14928
  enum: CategoryEmum,
@@ -14865,7 +14930,7 @@ __decorateClass([
14865
14930
  })
14866
14931
  ], Lead.prototype, "category", 2);
14867
14932
  Lead = __decorateClass([
14868
- Entity86("leads")
14933
+ Entity87("leads")
14869
14934
  ], Lead);
14870
14935
 
14871
14936
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -15106,7 +15171,7 @@ ClientFreelancerRecommendation = __decorateClass([
15106
15171
  ], ClientFreelancerRecommendation);
15107
15172
 
15108
15173
  // src/entities/commission.entity.ts
15109
- import { Entity as Entity87, Column as Column88 } from "typeorm";
15174
+ import { Entity as Entity88, Column as Column89 } from "typeorm";
15110
15175
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
15111
15176
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
15112
15177
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -15115,7 +15180,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
15115
15180
  var Commission = class extends BaseEntity {
15116
15181
  };
15117
15182
  __decorateClass([
15118
- Column88({
15183
+ Column89({
15119
15184
  name: "freelancer_commission_type",
15120
15185
  type: "enum",
15121
15186
  enum: CommissionTypeEnum,
@@ -15123,10 +15188,10 @@ __decorateClass([
15123
15188
  })
15124
15189
  ], Commission.prototype, "freelancerCommissionType", 2);
15125
15190
  __decorateClass([
15126
- Column88({ name: "freelancer_commission", type: "integer", default: 0 })
15191
+ Column89({ name: "freelancer_commission", type: "integer", default: 0 })
15127
15192
  ], Commission.prototype, "freelancerCommission", 2);
15128
15193
  __decorateClass([
15129
- Column88({
15194
+ Column89({
15130
15195
  name: "client_commission_type",
15131
15196
  type: "enum",
15132
15197
  enum: CommissionTypeEnum,
@@ -15134,58 +15199,58 @@ __decorateClass([
15134
15199
  })
15135
15200
  ], Commission.prototype, "clientCommissionType", 2);
15136
15201
  __decorateClass([
15137
- Column88({ name: "client_commission", type: "integer", default: 0 })
15202
+ Column89({ name: "client_commission", type: "integer", default: 0 })
15138
15203
  ], Commission.prototype, "clientCommission", 2);
15139
15204
  Commission = __decorateClass([
15140
- Entity87("commissions")
15205
+ Entity88("commissions")
15141
15206
  ], Commission);
15142
15207
 
15143
15208
  // src/entities/calendly-meeting-log.entity.ts
15144
15209
  import {
15145
- Entity as Entity88,
15146
- Column as Column89,
15147
- Index as Index72
15210
+ Entity as Entity89,
15211
+ Column as Column90,
15212
+ Index as Index73
15148
15213
  } from "typeorm";
15149
15214
  var CalendlyMeetingLog = class extends BaseEntity {
15150
15215
  };
15151
15216
  __decorateClass([
15152
- Column89({ name: "calendly_event_id", type: "varchar", nullable: true }),
15153
- Index72()
15217
+ Column90({ name: "calendly_event_id", type: "varchar", nullable: true }),
15218
+ Index73()
15154
15219
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
15155
15220
  __decorateClass([
15156
- Column89({ name: "calendly_event_type", type: "varchar", nullable: true })
15221
+ Column90({ name: "calendly_event_type", type: "varchar", nullable: true })
15157
15222
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
15158
15223
  __decorateClass([
15159
- Column89({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15224
+ Column90({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15160
15225
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
15161
15226
  CalendlyMeetingLog = __decorateClass([
15162
- Entity88("calendly_meeting_logs")
15227
+ Entity89("calendly_meeting_logs")
15163
15228
  ], CalendlyMeetingLog);
15164
15229
 
15165
15230
  // src/entities/zoom-meeting-log.entity.ts
15166
15231
  import {
15167
- Entity as Entity89,
15168
- Column as Column90,
15169
- Index as Index73
15232
+ Entity as Entity90,
15233
+ Column as Column91,
15234
+ Index as Index74
15170
15235
  } from "typeorm";
15171
15236
  var ZoomMeetingLog = class extends BaseEntity {
15172
15237
  };
15173
15238
  __decorateClass([
15174
- Column90({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
15175
- Index73()
15239
+ Column91({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
15240
+ Index74()
15176
15241
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
15177
15242
  __decorateClass([
15178
- Column90({ name: "zoom_event_type", type: "varchar", nullable: true })
15243
+ Column91({ name: "zoom_event_type", type: "varchar", nullable: true })
15179
15244
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
15180
15245
  __decorateClass([
15181
- Column90({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15246
+ Column91({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15182
15247
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
15183
15248
  ZoomMeetingLog = __decorateClass([
15184
- Entity89("zoom_meeting_logs")
15249
+ Entity90("zoom_meeting_logs")
15185
15250
  ], ZoomMeetingLog);
15186
15251
 
15187
15252
  // src/entities/docuseal.entity.ts
15188
- 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";
15189
15254
  var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
15190
15255
  DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
15191
15256
  DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
@@ -15195,101 +15260,101 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
15195
15260
  var DocuSeal = class extends BaseEntity {
15196
15261
  };
15197
15262
  __decorateClass([
15198
- Column91({ name: "reference_id", type: "integer", nullable: false }),
15199
- Index74()
15263
+ Column92({ name: "reference_id", type: "integer", nullable: false }),
15264
+ Index75()
15200
15265
  ], DocuSeal.prototype, "referenceId", 2);
15201
15266
  __decorateClass([
15202
- Column91({ name: "submitter_id", type: "integer", nullable: true }),
15203
- Index74()
15267
+ Column92({ name: "submitter_id", type: "integer", nullable: true }),
15268
+ Index75()
15204
15269
  ], DocuSeal.prototype, "submitterId", 2);
15205
15270
  __decorateClass([
15206
- Column91({ name: "submitter_response", type: "jsonb", nullable: true })
15271
+ Column92({ name: "submitter_response", type: "jsonb", nullable: true })
15207
15272
  ], DocuSeal.prototype, "submitterResponse", 2);
15208
15273
  __decorateClass([
15209
- Column91({ name: "webhook_response", type: "jsonb", nullable: true })
15274
+ Column92({ name: "webhook_response", type: "jsonb", nullable: true })
15210
15275
  ], DocuSeal.prototype, "webhookResponse", 2);
15211
15276
  __decorateClass([
15212
- Column91({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
15277
+ Column92({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
15213
15278
  ], DocuSeal.prototype, "type", 2);
15214
15279
  DocuSeal = __decorateClass([
15215
- Entity90("docuseal")
15280
+ Entity91("docuseal")
15216
15281
  ], DocuSeal);
15217
15282
 
15218
15283
  // src/entities/stripe-logs.entity.ts
15219
- import { Entity as Entity91, Column as Column92 } from "typeorm";
15284
+ import { Entity as Entity92, Column as Column93 } from "typeorm";
15220
15285
  var StripeLog = class extends BaseEntity {
15221
15286
  };
15222
15287
  __decorateClass([
15223
- Column92({ name: "stripe_event_id", type: "varchar", nullable: true })
15288
+ Column93({ name: "stripe_event_id", type: "varchar", nullable: true })
15224
15289
  ], StripeLog.prototype, "stripeEventId", 2);
15225
15290
  __decorateClass([
15226
- Column92({ name: "event_type", type: "varchar", nullable: true })
15291
+ Column93({ name: "event_type", type: "varchar", nullable: true })
15227
15292
  ], StripeLog.prototype, "eventType", 2);
15228
15293
  __decorateClass([
15229
- Column92({ name: "stripe_account_id", type: "varchar", nullable: true })
15294
+ Column93({ name: "stripe_account_id", type: "varchar", nullable: true })
15230
15295
  ], StripeLog.prototype, "stripeAccountId", 2);
15231
15296
  __decorateClass([
15232
- Column92({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15297
+ Column93({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15233
15298
  ], StripeLog.prototype, "rawWebhookData", 2);
15234
15299
  StripeLog = __decorateClass([
15235
- Entity91("stripe_logs")
15300
+ Entity92("stripe_logs")
15236
15301
  ], StripeLog);
15237
15302
 
15238
15303
  // src/entities/recommendation-weightage-config.entity.ts
15239
15304
  import {
15240
- Entity as Entity92,
15241
- Column as Column93,
15242
- Index as Index75
15305
+ Entity as Entity93,
15306
+ Column as Column94,
15307
+ Index as Index76
15243
15308
  } from "typeorm";
15244
15309
  var RecommendationWeightageConfig = class extends BaseEntity {
15245
15310
  };
15246
15311
  __decorateClass([
15247
- Column93({
15312
+ Column94({
15248
15313
  type: "varchar",
15249
15314
  length: 100,
15250
15315
  unique: true,
15251
15316
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
15252
15317
  }),
15253
- Index75()
15318
+ Index76()
15254
15319
  ], RecommendationWeightageConfig.prototype, "key", 2);
15255
15320
  __decorateClass([
15256
- Column93({
15321
+ Column94({
15257
15322
  type: "jsonb",
15258
15323
  comment: "JSON object containing weight values",
15259
15324
  nullable: true
15260
15325
  })
15261
15326
  ], RecommendationWeightageConfig.prototype, "value", 2);
15262
15327
  __decorateClass([
15263
- Column93({ name: "is_active", type: "boolean", default: true })
15328
+ Column94({ name: "is_active", type: "boolean", default: true })
15264
15329
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
15265
15330
  RecommendationWeightageConfig = __decorateClass([
15266
- Entity92("recommendation_weightage_configs")
15331
+ Entity93("recommendation_weightage_configs")
15267
15332
  ], RecommendationWeightageConfig);
15268
15333
 
15269
15334
  // src/entities/global-setting.entity.ts
15270
15335
  import {
15271
- Entity as Entity93,
15272
- Column as Column94,
15273
- Index as Index76
15336
+ Entity as Entity94,
15337
+ Column as Column95,
15338
+ Index as Index77
15274
15339
  } from "typeorm";
15275
15340
  var GlobalSetting = class extends BaseEntity {
15276
15341
  };
15277
15342
  __decorateClass([
15278
- Column94({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
15343
+ Column95({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
15279
15344
  ], GlobalSetting.prototype, "key", 2);
15280
15345
  __decorateClass([
15281
- Column94({ name: "value", type: "text", nullable: false })
15346
+ Column95({ name: "value", type: "text", nullable: false })
15282
15347
  ], GlobalSetting.prototype, "value", 2);
15283
15348
  GlobalSetting = __decorateClass([
15284
- Entity93("global_settings"),
15285
- Index76(["key"], { unique: true })
15349
+ Entity94("global_settings"),
15350
+ Index77(["key"], { unique: true })
15286
15351
  ], GlobalSetting);
15287
15352
 
15288
15353
  // src/entities/plan.entity.ts
15289
15354
  import {
15290
- Entity as Entity96,
15291
- Column as Column97,
15292
- Index as Index79,
15355
+ Entity as Entity97,
15356
+ Column as Column98,
15357
+ Index as Index80,
15293
15358
  Check as Check4,
15294
15359
  BeforeInsert as BeforeInsert2,
15295
15360
  BeforeUpdate as BeforeUpdate2,
@@ -15298,57 +15363,57 @@ import {
15298
15363
 
15299
15364
  // src/entities/plan-feature.entity.ts
15300
15365
  import {
15301
- Entity as Entity94,
15302
- Column as Column95,
15303
- ManyToOne as ManyToOne76,
15304
- JoinColumn as JoinColumn77,
15305
- Index as Index77,
15366
+ Entity as Entity95,
15367
+ Column as Column96,
15368
+ ManyToOne as ManyToOne77,
15369
+ JoinColumn as JoinColumn78,
15370
+ Index as Index78,
15306
15371
  Check as Check2
15307
15372
  } from "typeorm";
15308
15373
  var PlanFeature = class extends BaseEntity {
15309
15374
  };
15310
15375
  // individual index to find features by plan
15311
15376
  __decorateClass([
15312
- Column95({ name: "plan_id", type: "integer", nullable: false }),
15313
- Index77()
15377
+ Column96({ name: "plan_id", type: "integer", nullable: false }),
15378
+ Index78()
15314
15379
  ], PlanFeature.prototype, "planId", 2);
15315
15380
  __decorateClass([
15316
- ManyToOne76(() => Plan, (plan) => plan.features, {
15381
+ ManyToOne77(() => Plan, (plan) => plan.features, {
15317
15382
  onDelete: "CASCADE",
15318
15383
  nullable: false
15319
15384
  }),
15320
- JoinColumn77({ name: "plan_id" })
15385
+ JoinColumn78({ name: "plan_id" })
15321
15386
  ], PlanFeature.prototype, "plan", 2);
15322
15387
  __decorateClass([
15323
- Column95({ name: "name", type: "varchar", length: 200 })
15388
+ Column96({ name: "name", type: "varchar", length: 200 })
15324
15389
  ], PlanFeature.prototype, "name", 2);
15325
15390
  __decorateClass([
15326
- Column95({ name: "slug", type: "varchar", length: 100 }),
15327
- Index77()
15391
+ Column96({ name: "slug", type: "varchar", length: 100 }),
15392
+ Index78()
15328
15393
  ], PlanFeature.prototype, "slug", 2);
15329
15394
  __decorateClass([
15330
- Column95({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15395
+ Column96({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15331
15396
  ], PlanFeature.prototype, "tooltip", 2);
15332
15397
  __decorateClass([
15333
- Column95({ name: "sort_order", type: "smallint", default: 0 })
15398
+ Column96({ name: "sort_order", type: "smallint", default: 0 })
15334
15399
  ], PlanFeature.prototype, "sortOrder", 2);
15335
15400
  __decorateClass([
15336
- Column95({ name: "is_active", type: "boolean", default: true })
15401
+ Column96({ name: "is_active", type: "boolean", default: true })
15337
15402
  ], PlanFeature.prototype, "isActive", 2);
15338
15403
  PlanFeature = __decorateClass([
15339
- Entity94("plan_features"),
15340
- Index77("idx_plan_features_plan_id", ["planId"]),
15341
- 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"]),
15342
15407
  Check2("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
15343
15408
  ], PlanFeature);
15344
15409
 
15345
15410
  // src/entities/plan-pricing.entity.ts
15346
15411
  import {
15347
- Entity as Entity95,
15348
- Column as Column96,
15349
- ManyToOne as ManyToOne77,
15350
- JoinColumn as JoinColumn78,
15351
- Index as Index78,
15412
+ Entity as Entity96,
15413
+ Column as Column97,
15414
+ ManyToOne as ManyToOne78,
15415
+ JoinColumn as JoinColumn79,
15416
+ Index as Index79,
15352
15417
  Unique,
15353
15418
  Check as Check3,
15354
15419
  BeforeInsert,
@@ -15408,56 +15473,56 @@ var PlanPricing = class extends BaseEntity {
15408
15473
  };
15409
15474
  // individual index to find pricing by plan
15410
15475
  __decorateClass([
15411
- Column96({ name: "plan_id", type: "integer", nullable: false }),
15412
- Index78()
15476
+ Column97({ name: "plan_id", type: "integer", nullable: false }),
15477
+ Index79()
15413
15478
  ], PlanPricing.prototype, "planId", 2);
15414
15479
  __decorateClass([
15415
- ManyToOne77(() => Plan, (plan) => plan.pricing, {
15480
+ ManyToOne78(() => Plan, (plan) => plan.pricing, {
15416
15481
  onDelete: "CASCADE",
15417
15482
  nullable: false
15418
15483
  }),
15419
- JoinColumn78({ name: "plan_id" })
15484
+ JoinColumn79({ name: "plan_id" })
15420
15485
  ], PlanPricing.prototype, "plan", 2);
15421
15486
  __decorateClass([
15422
- Column96({
15487
+ Column97({
15423
15488
  name: "billing_cycle",
15424
15489
  type: "enum",
15425
15490
  enum: PlanPricingBillingCycleEnum
15426
15491
  })
15427
15492
  ], PlanPricing.prototype, "billingCycle", 2);
15428
15493
  __decorateClass([
15429
- Column96({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
15494
+ Column97({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
15430
15495
  ], PlanPricing.prototype, "price", 2);
15431
15496
  __decorateClass([
15432
- 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 })
15433
15498
  ], PlanPricing.prototype, "originalPrice", 2);
15434
15499
  __decorateClass([
15435
- 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 })
15436
15501
  ], PlanPricing.prototype, "discountPct", 2);
15437
15502
  __decorateClass([
15438
- Column96({ name: "currency", type: "varchar", length: 3, default: "USD" })
15503
+ Column97({ name: "currency", type: "varchar", length: 3, default: "USD" })
15439
15504
  ], PlanPricing.prototype, "currency", 2);
15440
15505
  __decorateClass([
15441
- Column96({ name: "is_free", type: "boolean", default: false })
15506
+ Column97({ name: "is_free", type: "boolean", default: false })
15442
15507
  ], PlanPricing.prototype, "isFree", 2);
15443
15508
  __decorateClass([
15444
- 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 })
15445
15510
  ], PlanPricing.prototype, "stripePriceId", 2);
15446
15511
  __decorateClass([
15447
- Column96({ name: "trial_days", type: "smallint", default: 0 })
15512
+ Column97({ name: "trial_days", type: "smallint", default: 0 })
15448
15513
  ], PlanPricing.prototype, "trialDays", 2);
15449
15514
  __decorateClass([
15450
- Column96({ name: "is_active", type: "boolean", default: true })
15515
+ Column97({ name: "is_active", type: "boolean", default: true })
15451
15516
  ], PlanPricing.prototype, "isActive", 2);
15452
15517
  __decorateClass([
15453
15518
  BeforeInsert(),
15454
15519
  BeforeUpdate()
15455
15520
  ], PlanPricing.prototype, "sanitize", 1);
15456
15521
  PlanPricing = __decorateClass([
15457
- Entity95("plan_pricings"),
15522
+ Entity96("plan_pricings"),
15458
15523
  Unique("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
15459
- Index78("idx_plan_pricings_plan_id", ["planId"]),
15460
- Index78("idx_plan_pricings_active", ["isActive", "billingCycle"]),
15524
+ Index79("idx_plan_pricings_plan_id", ["planId"]),
15525
+ Index79("idx_plan_pricings_active", ["isActive", "billingCycle"]),
15461
15526
  Check3("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
15462
15527
  Check3("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
15463
15528
  Check3("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
@@ -15479,22 +15544,22 @@ var Plan = class extends BaseEntity {
15479
15544
  }
15480
15545
  };
15481
15546
  __decorateClass([
15482
- Column97({ name: "name", type: "varchar", length: 100 })
15547
+ Column98({ name: "name", type: "varchar", length: 100 })
15483
15548
  ], Plan.prototype, "name", 2);
15484
15549
  __decorateClass([
15485
- Column97({ name: "slug", type: "varchar", length: 100 })
15550
+ Column98({ name: "slug", type: "varchar", length: 100 })
15486
15551
  ], Plan.prototype, "slug", 2);
15487
15552
  __decorateClass([
15488
- Column97({ name: "badge_label", type: "varchar", length: 60, nullable: true })
15553
+ Column98({ name: "badge_label", type: "varchar", length: 60, nullable: true })
15489
15554
  ], Plan.prototype, "badgeLabel", 2);
15490
15555
  __decorateClass([
15491
- Column97({ name: "sort_order", type: "smallint", default: 0 })
15556
+ Column98({ name: "sort_order", type: "smallint", default: 0 })
15492
15557
  ], Plan.prototype, "sortOrder", 2);
15493
15558
  __decorateClass([
15494
- Column97({ name: "is_active", type: "boolean", default: true })
15559
+ Column98({ name: "is_active", type: "boolean", default: true })
15495
15560
  ], Plan.prototype, "isActive", 2);
15496
15561
  __decorateClass([
15497
- Column97({
15562
+ Column98({
15498
15563
  name: "plan_type",
15499
15564
  type: "enum",
15500
15565
  enum: PlanTypeEnum,
@@ -15502,10 +15567,10 @@ __decorateClass([
15502
15567
  })
15503
15568
  ], Plan.prototype, "planType", 2);
15504
15569
  __decorateClass([
15505
- Column97({ name: "metadata", type: "jsonb", default: {} })
15570
+ Column98({ name: "metadata", type: "jsonb", default: {} })
15506
15571
  ], Plan.prototype, "metadata", 2);
15507
15572
  __decorateClass([
15508
- Column97({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
15573
+ Column98({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
15509
15574
  ], Plan.prototype, "stripeProductId", 2);
15510
15575
  __decorateClass([
15511
15576
  BeforeInsert2(),
@@ -15522,21 +15587,21 @@ __decorateClass([
15522
15587
  })
15523
15588
  ], Plan.prototype, "pricing", 2);
15524
15589
  Plan = __decorateClass([
15525
- Entity96("plans"),
15526
- Index79("idx_plans_slug_plan_type", ["slug", "planType"], {
15590
+ Entity97("plans"),
15591
+ Index80("idx_plans_slug_plan_type", ["slug", "planType"], {
15527
15592
  unique: true,
15528
15593
  where: '"is_deleted" IS FALSE'
15529
15594
  }),
15530
- Index79("idx_plans_active_sort", ["isActive", "sortOrder"]),
15595
+ Index80("idx_plans_active_sort", ["isActive", "sortOrder"]),
15531
15596
  Check4("chk_plans_sort_order_positive", '"sort_order" >= 0')
15532
15597
  ], Plan);
15533
15598
 
15534
15599
  // src/entities/subscription-feature.entity.ts
15535
15600
  import {
15536
- Entity as Entity97,
15537
- Column as Column98,
15601
+ Entity as Entity98,
15602
+ Column as Column99,
15538
15603
  Check as Check5,
15539
- Index as Index80,
15604
+ Index as Index81,
15540
15605
  BeforeInsert as BeforeInsert3,
15541
15606
  BeforeUpdate as BeforeUpdate3
15542
15607
  } from "typeorm";
@@ -15554,33 +15619,33 @@ var SubscriptionFeature = class extends BaseEntity {
15554
15619
  }
15555
15620
  };
15556
15621
  __decorateClass([
15557
- Column98({ name: "name", type: "varchar", length: 200 })
15622
+ Column99({ name: "name", type: "varchar", length: 200 })
15558
15623
  ], SubscriptionFeature.prototype, "name", 2);
15559
15624
  __decorateClass([
15560
- Column98({ name: "slug", type: "varchar", length: 100 })
15625
+ Column99({ name: "slug", type: "varchar", length: 100 })
15561
15626
  ], SubscriptionFeature.prototype, "slug", 2);
15562
15627
  __decorateClass([
15563
- Column98({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15628
+ Column99({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15564
15629
  ], SubscriptionFeature.prototype, "tooltip", 2);
15565
15630
  __decorateClass([
15566
- Column98({ name: "sort_order", type: "smallint", default: 0 })
15631
+ Column99({ name: "sort_order", type: "smallint", default: 0 })
15567
15632
  ], SubscriptionFeature.prototype, "sortOrder", 2);
15568
15633
  __decorateClass([
15569
- Column98({ name: "is_active", type: "boolean", default: true })
15634
+ Column99({ name: "is_active", type: "boolean", default: true })
15570
15635
  ], SubscriptionFeature.prototype, "isActive", 2);
15571
15636
  __decorateClass([
15572
15637
  BeforeInsert3(),
15573
15638
  BeforeUpdate3()
15574
15639
  ], SubscriptionFeature.prototype, "createSlug", 1);
15575
15640
  SubscriptionFeature = __decorateClass([
15576
- Entity97("subscription_features"),
15577
- Index80("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15578
- 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"]),
15579
15644
  Check5("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
15580
15645
  ], SubscriptionFeature);
15581
15646
 
15582
15647
  // src/entities/user-subscription-transaction.entity.ts
15583
- 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";
15584
15649
  var UserSubscriptionTransactionTypeEnum = /* @__PURE__ */ ((UserSubscriptionTransactionTypeEnum2) => {
15585
15650
  UserSubscriptionTransactionTypeEnum2["SUBSCRIPTION_INITIATED"] = "SUBSCRIPTION_INITIATED";
15586
15651
  UserSubscriptionTransactionTypeEnum2["CHECKOUT_SESSION_CREATED"] = "CHECKOUT_SESSION_CREATED";
@@ -15598,25 +15663,25 @@ var UserSubscriptionTransactionStatusEnum = /* @__PURE__ */ ((UserSubscriptionTr
15598
15663
  var UserSubscriptionTransaction = class extends BaseEntity {
15599
15664
  };
15600
15665
  __decorateClass([
15601
- Column99({ name: "user_subscription_id", type: "integer", nullable: false }),
15602
- Index81()
15666
+ Column100({ name: "user_subscription_id", type: "integer", nullable: false }),
15667
+ Index82()
15603
15668
  ], UserSubscriptionTransaction.prototype, "userSubscriptionId", 2);
15604
15669
  __decorateClass([
15605
- ManyToOne78(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
15606
- JoinColumn79({ name: "user_subscription_id" })
15670
+ ManyToOne79(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
15671
+ JoinColumn80({ name: "user_subscription_id" })
15607
15672
  ], UserSubscriptionTransaction.prototype, "userSubscription", 2);
15608
15673
  __decorateClass([
15609
- Column99({ name: "user_id", type: "integer", nullable: false })
15674
+ Column100({ name: "user_id", type: "integer", nullable: false })
15610
15675
  ], UserSubscriptionTransaction.prototype, "userId", 2);
15611
15676
  __decorateClass([
15612
- Column99({
15677
+ Column100({
15613
15678
  name: "type",
15614
15679
  type: "enum",
15615
15680
  enum: UserSubscriptionTransactionTypeEnum
15616
15681
  })
15617
15682
  ], UserSubscriptionTransaction.prototype, "type", 2);
15618
15683
  __decorateClass([
15619
- Column99({
15684
+ Column100({
15620
15685
  name: "status",
15621
15686
  type: "enum",
15622
15687
  enum: UserSubscriptionTransactionStatusEnum,
@@ -15624,73 +15689,133 @@ __decorateClass([
15624
15689
  })
15625
15690
  ], UserSubscriptionTransaction.prototype, "status", 2);
15626
15691
  __decorateClass([
15627
- Column99({ name: "plan_name", type: "text", nullable: true })
15692
+ Column100({ name: "plan_name", type: "text", nullable: true })
15628
15693
  ], UserSubscriptionTransaction.prototype, "planName", 2);
15629
15694
  __decorateClass([
15630
- Column99({ name: "amount_minor", type: "integer", nullable: true })
15695
+ Column100({ name: "amount_minor", type: "integer", nullable: true })
15631
15696
  ], UserSubscriptionTransaction.prototype, "amountMinor", 2);
15632
15697
  __decorateClass([
15633
- Column99({ name: "currency", type: "varchar", length: 3, nullable: true })
15698
+ Column100({ name: "currency", type: "varchar", length: 3, nullable: true })
15634
15699
  ], UserSubscriptionTransaction.prototype, "currency", 2);
15635
15700
  __decorateClass([
15636
- Column99({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
15701
+ Column100({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
15637
15702
  ], UserSubscriptionTransaction.prototype, "stripeEventId", 2);
15638
15703
  __decorateClass([
15639
- Column99({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
15704
+ Column100({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
15640
15705
  ], UserSubscriptionTransaction.prototype, "stripeEventType", 2);
15641
15706
  __decorateClass([
15642
- Column99({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
15707
+ Column100({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
15643
15708
  ], UserSubscriptionTransaction.prototype, "stripeSubscriptionId", 2);
15644
15709
  __decorateClass([
15645
- Column99({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
15710
+ Column100({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
15646
15711
  ], UserSubscriptionTransaction.prototype, "stripeInvoiceId", 2);
15647
15712
  __decorateClass([
15648
- Column99({ name: "description", type: "text", nullable: true })
15713
+ Column100({ name: "description", type: "text", nullable: true })
15649
15714
  ], UserSubscriptionTransaction.prototype, "description", 2);
15650
15715
  __decorateClass([
15651
- Column99({ name: "invoice_url", type: "text", nullable: true })
15716
+ Column100({ name: "invoice_url", type: "text", nullable: true })
15652
15717
  ], UserSubscriptionTransaction.prototype, "invoiceUrl", 2);
15653
15718
  __decorateClass([
15654
- Column99({ name: "checkout_request_payload", type: "jsonb", nullable: true })
15719
+ Column100({ name: "checkout_request_payload", type: "jsonb", nullable: true })
15655
15720
  ], UserSubscriptionTransaction.prototype, "checkoutRequestPayload", 2);
15656
15721
  __decorateClass([
15657
- Column99({ name: "checkout_response_payload", type: "jsonb", nullable: true })
15722
+ Column100({ name: "checkout_response_payload", type: "jsonb", nullable: true })
15658
15723
  ], UserSubscriptionTransaction.prototype, "checkoutResponsePayload", 2);
15659
15724
  __decorateClass([
15660
- Column99({ name: "webhook_payload", type: "jsonb", nullable: true })
15725
+ Column100({ name: "webhook_payload", type: "jsonb", nullable: true })
15661
15726
  ], UserSubscriptionTransaction.prototype, "webhookPayload", 2);
15662
15727
  __decorateClass([
15663
- Column99({ name: "metadata", type: "jsonb", nullable: true, default: {} })
15728
+ Column100({ name: "metadata", type: "jsonb", nullable: true, default: {} })
15664
15729
  ], UserSubscriptionTransaction.prototype, "metadata", 2);
15665
15730
  UserSubscriptionTransaction = __decorateClass([
15666
- Entity98("user_subscription_transactions"),
15667
- Index81("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
15668
- Index81("idx_user_sub_tx_user_id", ["userId"]),
15669
- 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"])
15670
15735
  ], UserSubscriptionTransaction);
15671
15736
 
15672
15737
  // src/entities/vendor-api-configuration.entity.ts
15673
- import { Column as Column100, Entity as Entity99 } from "typeorm";
15738
+ import { Column as Column101, Entity as Entity100 } from "typeorm";
15674
15739
  var VendorApiConfiguration = class extends BaseEntity {
15675
15740
  };
15676
15741
  __decorateClass([
15677
- Column100({ name: "vendor_name", type: "varchar", length: 255 })
15742
+ Column101({ name: "vendor_name", type: "varchar", length: 255 })
15678
15743
  ], VendorApiConfiguration.prototype, "vendorName", 2);
15679
15744
  __decorateClass([
15680
- Column100({ name: "vendor_api_key", type: "varchar", length: 255 })
15745
+ Column101({ name: "vendor_api_key", type: "varchar", length: 255 })
15681
15746
  ], VendorApiConfiguration.prototype, "vendorApiKey", 2);
15682
15747
  __decorateClass([
15683
- Column100({ name: "vendor_api_secret_key", type: "text" })
15748
+ Column101({ name: "vendor_api_secret_key", type: "text" })
15684
15749
  ], VendorApiConfiguration.prototype, "vendorApiSecretKey", 2);
15685
15750
  __decorateClass([
15686
- Column100({ name: "slug", type: "varchar", nullable: true, unique: true })
15751
+ Column101({ name: "slug", type: "varchar", nullable: true, unique: true })
15687
15752
  ], VendorApiConfiguration.prototype, "slug", 2);
15688
15753
  __decorateClass([
15689
- Column100({ name: "is_active", type: "boolean", default: true })
15754
+ Column101({ name: "is_active", type: "boolean", default: true })
15690
15755
  ], VendorApiConfiguration.prototype, "isActive", 2);
15691
15756
  VendorApiConfiguration = __decorateClass([
15692
- Entity99("vendor_api_configurations")
15757
+ Entity100("vendor_api_configurations")
15693
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);
15694
15819
  export {
15695
15820
  ADMIN_FREELANCER_PATTERN,
15696
15821
  ADMIN_JOB_PATTERN,
@@ -15843,6 +15968,10 @@ export {
15843
15968
  DurationTypeEnum,
15844
15969
  EMAIL_PATTERN,
15845
15970
  EducationDto,
15971
+ EkycVerifcationLog,
15972
+ EkycVerificationLogStatusEnum,
15973
+ EkycVerificationSession,
15974
+ EkycVerificationSessionStatusEnum,
15846
15975
  EscrowFundContractDto,
15847
15976
  EscrowWallet,
15848
15977
  EscrowWalletTransaction,