@experts_hub/shared 1.0.732 → 1.0.734

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