@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.js CHANGED
@@ -188,6 +188,10 @@ __export(index_exports, {
188
188
  DurationTypeEnum: () => DurationTypeEnum,
189
189
  EMAIL_PATTERN: () => EMAIL_PATTERN,
190
190
  EducationDto: () => EducationDto,
191
+ EkycVerifcationLog: () => EkycVerifcationLog,
192
+ EkycVerificationLogStatusEnum: () => EkycVerificationLogStatusEnum,
193
+ EkycVerificationSession: () => EkycVerificationSession,
194
+ EkycVerificationSessionStatusEnum: () => EkycVerificationSessionStatusEnum,
191
195
  EscrowFundContractDto: () => EscrowFundContractDto,
192
196
  EscrowWallet: () => EscrowWallet,
193
197
  EscrowWalletTransaction: () => EscrowWalletTransaction,
@@ -1496,7 +1500,7 @@ __decorateClass([
1496
1500
  var import_class_validator37 = require("class-validator");
1497
1501
 
1498
1502
  // src/entities/user.entity.ts
1499
- var import_typeorm80 = require("typeorm");
1503
+ var import_typeorm81 = require("typeorm");
1500
1504
 
1501
1505
  // src/entities/base.entity.ts
1502
1506
  var import_typeorm = require("typeorm");
@@ -6481,6 +6485,14 @@ __decorateClass([
6481
6485
  (0, import_typeorm72.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
6482
6486
  (0, import_typeorm72.JoinColumn)({ name: "wallet_id" })
6483
6487
  ], WalletTransaction.prototype, "wallet", 2);
6488
+ __decorateClass([
6489
+ (0, import_typeorm72.Column)({ name: "from_user_id", type: "integer", nullable: true }),
6490
+ (0, import_typeorm72.Index)()
6491
+ ], WalletTransaction.prototype, "fromUserId", 2);
6492
+ __decorateClass([
6493
+ (0, import_typeorm72.ManyToOne)(() => User, (user) => user.sentTransactions),
6494
+ (0, import_typeorm72.JoinColumn)({ name: "from_user_id" })
6495
+ ], WalletTransaction.prototype, "fromUser", 2);
6484
6496
  __decorateClass([
6485
6497
  (0, import_typeorm72.Column)({ name: "amount", type: "bigint", nullable: true })
6486
6498
  ], WalletTransaction.prototype, "amount", 2);
@@ -6497,7 +6509,12 @@ __decorateClass([
6497
6509
  (0, import_typeorm72.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
6498
6510
  ], WalletTransaction.prototype, "type", 2);
6499
6511
  __decorateClass([
6500
- (0, import_typeorm72.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6512
+ (0, import_typeorm72.Column)({
6513
+ name: "status",
6514
+ type: "enum",
6515
+ enum: WalletTransactionStatusEnum,
6516
+ default: "PENDING" /* PENDING */
6517
+ })
6501
6518
  ], WalletTransaction.prototype, "status", 2);
6502
6519
  __decorateClass([
6503
6520
  (0, import_typeorm72.Column)({ name: "description", type: "text", nullable: true })
@@ -6896,6 +6913,62 @@ UserSubscription = __decorateClass([
6896
6913
  (0, import_typeorm79.Entity)("user_subscriptions")
6897
6914
  ], UserSubscription);
6898
6915
 
6916
+ // src/entities/ekyc-verification-session.entity.ts
6917
+ var import_typeorm80 = require("typeorm");
6918
+ var EkycVerificationSessionStatusEnum = /* @__PURE__ */ ((EkycVerificationSessionStatusEnum2) => {
6919
+ EkycVerificationSessionStatusEnum2["NOT_STARTED"] = "NOT_STARTED";
6920
+ EkycVerificationSessionStatusEnum2["NOT_FINISHED"] = "NOT_FINISHED";
6921
+ EkycVerificationSessionStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
6922
+ EkycVerificationSessionStatusEnum2["APPROVED"] = "APPROVED";
6923
+ EkycVerificationSessionStatusEnum2["DECLINED"] = "DECLINED";
6924
+ EkycVerificationSessionStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
6925
+ EkycVerificationSessionStatusEnum2["EXPIRED"] = "EXPIRED";
6926
+ EkycVerificationSessionStatusEnum2["KYC_EXPIRED"] = "KYC_EXPIRED";
6927
+ EkycVerificationSessionStatusEnum2["ABANDONED"] = "ABANDONED";
6928
+ EkycVerificationSessionStatusEnum2["RESUBMITTED"] = "RESUBMITTED";
6929
+ EkycVerificationSessionStatusEnum2["AWAITING_USER"] = "AWAITING_USER";
6930
+ return EkycVerificationSessionStatusEnum2;
6931
+ })(EkycVerificationSessionStatusEnum || {});
6932
+ var EkycVerificationSession = class extends BaseEntity {
6933
+ };
6934
+ __decorateClass([
6935
+ (0, import_typeorm80.Column)({ name: "user_id", type: "integer" }),
6936
+ (0, import_typeorm80.Index)()
6937
+ ], EkycVerificationSession.prototype, "userId", 2);
6938
+ __decorateClass([
6939
+ (0, import_typeorm80.ManyToOne)(() => User, (user) => user.ekycVerificationSessions),
6940
+ (0, import_typeorm80.JoinColumn)({ name: "user_id" })
6941
+ ], EkycVerificationSession.prototype, "user", 2);
6942
+ __decorateClass([
6943
+ (0, import_typeorm80.Column)({ name: "session_id", type: "varchar", unique: true })
6944
+ ], EkycVerificationSession.prototype, "sessionId", 2);
6945
+ __decorateClass([
6946
+ (0, import_typeorm80.Column)({
6947
+ name: "status",
6948
+ type: "enum",
6949
+ enum: EkycVerificationSessionStatusEnum,
6950
+ default: "NOT_STARTED" /* NOT_STARTED */
6951
+ })
6952
+ ], EkycVerificationSession.prototype, "status", 2);
6953
+ __decorateClass([
6954
+ (0, import_typeorm80.Column)({
6955
+ name: "token",
6956
+ type: "varchar",
6957
+ unique: true,
6958
+ nullable: true
6959
+ })
6960
+ ], EkycVerificationSession.prototype, "token", 2);
6961
+ __decorateClass([
6962
+ (0, import_typeorm80.Column)({
6963
+ name: "expired_at",
6964
+ type: "timestamp with time zone",
6965
+ nullable: true
6966
+ })
6967
+ ], EkycVerificationSession.prototype, "expiresAt", 2);
6968
+ EkycVerificationSession = __decorateClass([
6969
+ (0, import_typeorm80.Entity)("ekyc_verification_sessions")
6970
+ ], EkycVerificationSession);
6971
+
6899
6972
  // src/entities/user.entity.ts
6900
6973
  var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
6901
6974
  AccountType4["SUPER_ADMIN"] = "SUPER_ADMIN";
@@ -6922,57 +6995,57 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
6922
6995
  var User = class extends BaseEntity {
6923
6996
  };
6924
6997
  __decorateClass([
6925
- (0, import_typeorm80.Column)({ name: "unique_id", type: "varchar", unique: true })
6998
+ (0, import_typeorm81.Column)({ name: "unique_id", type: "varchar", unique: true })
6926
6999
  ], User.prototype, "uniqueId", 2);
6927
7000
  __decorateClass([
6928
- (0, import_typeorm80.Column)({ name: "parent_id", type: "integer", nullable: true }),
6929
- (0, import_typeorm80.Index)()
7001
+ (0, import_typeorm81.Column)({ name: "parent_id", type: "integer", nullable: true }),
7002
+ (0, import_typeorm81.Index)()
6930
7003
  ], User.prototype, "parentId", 2);
6931
7004
  __decorateClass([
6932
- (0, import_typeorm80.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
6933
- (0, import_typeorm80.JoinColumn)({ name: "parent_id" })
7005
+ (0, import_typeorm81.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
7006
+ (0, import_typeorm81.JoinColumn)({ name: "parent_id" })
6934
7007
  ], User.prototype, "parent", 2);
6935
7008
  __decorateClass([
6936
- (0, import_typeorm80.OneToMany)(() => User, (user) => user.parent)
7009
+ (0, import_typeorm81.OneToMany)(() => User, (user) => user.parent)
6937
7010
  ], User.prototype, "children", 2);
6938
7011
  __decorateClass([
6939
- (0, import_typeorm80.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
7012
+ (0, import_typeorm81.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
6940
7013
  ], User.prototype, "username", 2);
6941
7014
  __decorateClass([
6942
- (0, import_typeorm80.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
7015
+ (0, import_typeorm81.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
6943
7016
  ], User.prototype, "firstName", 2);
6944
7017
  __decorateClass([
6945
- (0, import_typeorm80.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
7018
+ (0, import_typeorm81.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
6946
7019
  ], User.prototype, "lastName", 2);
6947
7020
  __decorateClass([
6948
- (0, import_typeorm80.Column)({ name: "date_of_birth", type: "date", nullable: true })
7021
+ (0, import_typeorm81.Column)({ name: "date_of_birth", type: "date", nullable: true })
6949
7022
  ], User.prototype, "dateOfBirth", 2);
6950
7023
  __decorateClass([
6951
- (0, import_typeorm80.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
7024
+ (0, import_typeorm81.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
6952
7025
  ], User.prototype, "gender", 2);
6953
7026
  __decorateClass([
6954
- (0, import_typeorm80.Column)({ name: "profile_picture_url", type: "text", nullable: true })
7027
+ (0, import_typeorm81.Column)({ name: "profile_picture_url", type: "text", nullable: true })
6955
7028
  ], User.prototype, "profilePictureUrl", 2);
6956
7029
  __decorateClass([
6957
- (0, import_typeorm80.Column)({ name: "presigned_profile_picture_url", type: "text", nullable: true })
7030
+ (0, import_typeorm81.Column)({ name: "presigned_profile_picture_url", type: "text", nullable: true })
6958
7031
  ], User.prototype, "presignedProfilePictureUrl", 2);
6959
7032
  __decorateClass([
6960
- (0, import_typeorm80.Column)({ name: "presigned_profile_picture_url_expires_at", type: "timestamp with time zone", nullable: true })
7033
+ (0, import_typeorm81.Column)({ name: "presigned_profile_picture_url_expires_at", type: "timestamp with time zone", nullable: true })
6961
7034
  ], User.prototype, "presignedProfilePictureUrlExpiresAt", 2);
6962
7035
  __decorateClass([
6963
- (0, import_typeorm80.Column)({ name: "email", type: "varchar", unique: true })
7036
+ (0, import_typeorm81.Column)({ name: "email", type: "varchar", unique: true })
6964
7037
  ], User.prototype, "email", 2);
6965
7038
  __decorateClass([
6966
- (0, import_typeorm80.Column)({ name: "mobile_code", type: "varchar", nullable: true })
7039
+ (0, import_typeorm81.Column)({ name: "mobile_code", type: "varchar", nullable: true })
6967
7040
  ], User.prototype, "mobileCode", 2);
6968
7041
  __decorateClass([
6969
- (0, import_typeorm80.Column)({ name: "mobile", type: "varchar", nullable: true })
7042
+ (0, import_typeorm81.Column)({ name: "mobile", type: "varchar", nullable: true })
6970
7043
  ], User.prototype, "mobile", 2);
6971
7044
  __decorateClass([
6972
- (0, import_typeorm80.Column)({ name: "password", type: "varchar", nullable: true })
7045
+ (0, import_typeorm81.Column)({ name: "password", type: "varchar", nullable: true })
6973
7046
  ], User.prototype, "password", 2);
6974
7047
  __decorateClass([
6975
- (0, import_typeorm80.Column)({
7048
+ (0, import_typeorm81.Column)({
6976
7049
  name: "account_type",
6977
7050
  type: "enum",
6978
7051
  enum: AccountType2,
@@ -6980,7 +7053,7 @@ __decorateClass([
6980
7053
  })
6981
7054
  ], User.prototype, "accountType", 2);
6982
7055
  __decorateClass([
6983
- (0, import_typeorm80.Column)({
7056
+ (0, import_typeorm81.Column)({
6984
7057
  name: "account_status",
6985
7058
  type: "enum",
6986
7059
  enum: AccountStatus,
@@ -6988,45 +7061,45 @@ __decorateClass([
6988
7061
  })
6989
7062
  ], User.prototype, "accountStatus", 2);
6990
7063
  __decorateClass([
6991
- (0, import_typeorm80.Column)({ name: "is_email_verified", type: "boolean", default: false })
7064
+ (0, import_typeorm81.Column)({ name: "is_email_verified", type: "boolean", default: false })
6992
7065
  ], User.prototype, "isEmailVerified", 2);
6993
7066
  __decorateClass([
6994
- (0, import_typeorm80.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
7067
+ (0, import_typeorm81.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
6995
7068
  ], User.prototype, "isMobileVerified", 2);
6996
7069
  __decorateClass([
6997
- (0, import_typeorm80.Column)({ name: "is_social", type: "boolean", default: false })
7070
+ (0, import_typeorm81.Column)({ name: "is_social", type: "boolean", default: false })
6998
7071
  ], User.prototype, "isSocial", 2);
6999
7072
  __decorateClass([
7000
- (0, import_typeorm80.Column)({ name: "is_referral_user", type: "boolean", default: false })
7073
+ (0, import_typeorm81.Column)({ name: "is_referral_user", type: "boolean", default: false })
7001
7074
  ], User.prototype, "isReferralUser", 2);
7002
7075
  __decorateClass([
7003
- (0, import_typeorm80.Column)({
7076
+ (0, import_typeorm81.Column)({
7004
7077
  name: "last_login_at",
7005
7078
  type: "timestamp with time zone",
7006
7079
  nullable: true
7007
7080
  })
7008
7081
  ], User.prototype, "lastLoginAt", 2);
7009
7082
  __decorateClass([
7010
- (0, import_typeorm80.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
7083
+ (0, import_typeorm81.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
7011
7084
  ], User.prototype, "lastLoginIp", 2);
7012
7085
  __decorateClass([
7013
- (0, import_typeorm80.Column)({ name: "reset_token", type: "varchar", nullable: true })
7086
+ (0, import_typeorm81.Column)({ name: "reset_token", type: "varchar", nullable: true })
7014
7087
  ], User.prototype, "resetToken", 2);
7015
7088
  __decorateClass([
7016
- (0, import_typeorm80.Column)({
7089
+ (0, import_typeorm81.Column)({
7017
7090
  name: "reset_token_expire_at",
7018
7091
  type: "timestamp with time zone",
7019
7092
  nullable: true
7020
7093
  })
7021
7094
  ], User.prototype, "resetTokenExpireAt", 2);
7022
7095
  __decorateClass([
7023
- (0, import_typeorm80.Column)({ name: "set_password_token", type: "varchar", nullable: true })
7096
+ (0, import_typeorm81.Column)({ name: "set_password_token", type: "varchar", nullable: true })
7024
7097
  ], User.prototype, "setPasswordToken", 2);
7025
7098
  __decorateClass([
7026
- (0, import_typeorm80.OneToMany)(() => RefreshToken, (token) => token.user)
7099
+ (0, import_typeorm81.OneToMany)(() => RefreshToken, (token) => token.user)
7027
7100
  ], User.prototype, "refreshTokens", 2);
7028
7101
  __decorateClass([
7029
- (0, import_typeorm80.Column)({
7102
+ (0, import_typeorm81.Column)({
7030
7103
  name: "provider",
7031
7104
  type: "enum",
7032
7105
  enum: Provider,
@@ -7035,275 +7108,281 @@ __decorateClass([
7035
7108
  })
7036
7109
  ], User.prototype, "provider", 2);
7037
7110
  __decorateClass([
7038
- (0, import_typeorm80.Column)({ name: "provider_token", type: "varchar", nullable: true })
7111
+ (0, import_typeorm81.Column)({ name: "provider_token", type: "varchar", nullable: true })
7039
7112
  ], User.prototype, "providerToken", 2);
7040
7113
  __decorateClass([
7041
- (0, import_typeorm80.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
7114
+ (0, import_typeorm81.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
7042
7115
  ], User.prototype, "linkedInId", 2);
7043
7116
  __decorateClass([
7044
- (0, import_typeorm80.Column)({ name: "google_id", type: "varchar", nullable: true })
7117
+ (0, import_typeorm81.Column)({ name: "google_id", type: "varchar", nullable: true })
7045
7118
  ], User.prototype, "googleId", 2);
7046
7119
  __decorateClass([
7047
- (0, import_typeorm80.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
7120
+ (0, import_typeorm81.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
7048
7121
  ], User.prototype, "gitLabsId", 2);
7049
7122
  __decorateClass([
7050
- (0, import_typeorm80.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
7123
+ (0, import_typeorm81.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
7051
7124
  ], User.prototype, "onBoardedBy", 2);
7052
7125
  __decorateClass([
7053
- (0, import_typeorm80.Column)({ name: "ip", type: "varchar", nullable: true })
7126
+ (0, import_typeorm81.Column)({ name: "ip", type: "varchar", nullable: true })
7054
7127
  ], User.prototype, "ip", 2);
7055
7128
  __decorateClass([
7056
- (0, import_typeorm80.OneToMany)(() => Otp, (otp) => otp.user)
7129
+ (0, import_typeorm81.OneToMany)(() => Otp, (otp) => otp.user)
7057
7130
  ], User.prototype, "otps", 2);
7058
7131
  __decorateClass([
7059
- (0, import_typeorm80.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
7132
+ (0, import_typeorm81.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
7060
7133
  ], User.prototype, "senseloafLogs", 2);
7061
7134
  __decorateClass([
7062
- (0, import_typeorm80.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
7135
+ (0, import_typeorm81.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
7063
7136
  ], User.prototype, "companyProfile", 2);
7064
7137
  __decorateClass([
7065
- (0, import_typeorm80.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
7138
+ (0, import_typeorm81.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
7066
7139
  ], User.prototype, "companySkills", 2);
7067
7140
  __decorateClass([
7068
- (0, import_typeorm80.OneToMany)(
7141
+ (0, import_typeorm81.OneToMany)(
7069
7142
  () => CompanyMemberRole,
7070
7143
  (companyMemberRole) => companyMemberRole.user
7071
7144
  )
7072
7145
  ], User.prototype, "companyMemberRoles", 2);
7073
7146
  __decorateClass([
7074
- (0, import_typeorm80.OneToOne)(() => CompanyMember, (companyMember) => companyMember.user)
7147
+ (0, import_typeorm81.OneToOne)(() => CompanyMember, (companyMember) => companyMember.user)
7075
7148
  ], User.prototype, "companyMember", 2);
7076
7149
  __decorateClass([
7077
- (0, import_typeorm80.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
7150
+ (0, import_typeorm81.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
7078
7151
  ], User.prototype, "companyAiInterview", 2);
7079
7152
  __decorateClass([
7080
- (0, import_typeorm80.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
7153
+ (0, import_typeorm81.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
7081
7154
  ], User.prototype, "clientF2FInterviews", 2);
7082
7155
  __decorateClass([
7083
- (0, import_typeorm80.OneToOne)(
7156
+ (0, import_typeorm81.OneToOne)(
7084
7157
  () => FreelancerProfile,
7085
7158
  (freelancerProfile) => freelancerProfile.user
7086
7159
  )
7087
7160
  ], User.prototype, "freelancerProfile", 2);
7088
7161
  __decorateClass([
7089
- (0, import_typeorm80.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
7162
+ (0, import_typeorm81.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
7090
7163
  ], User.prototype, "freelancerResume", 2);
7091
7164
  __decorateClass([
7092
- (0, import_typeorm80.OneToMany)(
7165
+ (0, import_typeorm81.OneToMany)(
7093
7166
  () => FreelancerAssessmentRequest,
7094
7167
  (freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
7095
7168
  )
7096
7169
  ], User.prototype, "freelancerAssessmentRequests", 2);
7097
7170
  __decorateClass([
7098
- (0, import_typeorm80.OneToMany)(
7171
+ (0, import_typeorm81.OneToMany)(
7099
7172
  () => FreelancerAssessmentRequest,
7100
7173
  (freelancerAssessment) => freelancerAssessment.approvedBy
7101
7174
  )
7102
7175
  ], User.prototype, "assessmentRequests", 2);
7103
7176
  __decorateClass([
7104
- (0, import_typeorm80.OneToMany)(
7177
+ (0, import_typeorm81.OneToMany)(
7105
7178
  () => FreelancerAssessment,
7106
7179
  (freelancerAssessment) => freelancerAssessment.user
7107
7180
  )
7108
7181
  ], User.prototype, "assessments", 2);
7109
7182
  __decorateClass([
7110
- (0, import_typeorm80.OneToMany)(
7183
+ (0, import_typeorm81.OneToMany)(
7111
7184
  () => AssessmentAnswer,
7112
7185
  (assessmentAnswer) => assessmentAnswer.user
7113
7186
  )
7114
7187
  ], User.prototype, "assessmentAnswers", 2);
7115
7188
  __decorateClass([
7116
- (0, import_typeorm80.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
7189
+ (0, import_typeorm81.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
7117
7190
  ], User.prototype, "freelancerSkills", 2);
7118
7191
  __decorateClass([
7119
- (0, import_typeorm80.OneToMany)(
7192
+ (0, import_typeorm81.OneToMany)(
7120
7193
  () => FreelancerExperience,
7121
7194
  (freelancerExperience) => freelancerExperience.user
7122
7195
  )
7123
7196
  ], User.prototype, "freelancerExperience", 2);
7124
7197
  __decorateClass([
7125
- (0, import_typeorm80.OneToMany)(
7198
+ (0, import_typeorm81.OneToMany)(
7126
7199
  () => FreelancerEducation,
7127
7200
  (freelancerEducation) => freelancerEducation.user
7128
7201
  )
7129
7202
  ], User.prototype, "freelancerEducation", 2);
7130
7203
  __decorateClass([
7131
- (0, import_typeorm80.OneToMany)(
7204
+ (0, import_typeorm81.OneToMany)(
7132
7205
  () => FreelancerProject,
7133
7206
  (freelancerProject) => freelancerProject.user
7134
7207
  )
7135
7208
  ], User.prototype, "freelancerProject", 2);
7136
7209
  __decorateClass([
7137
- (0, import_typeorm80.OneToMany)(
7210
+ (0, import_typeorm81.OneToMany)(
7138
7211
  () => FreelancerCaseStudy,
7139
7212
  (freelancerCaseStudy) => freelancerCaseStudy.user
7140
7213
  )
7141
7214
  ], User.prototype, "freelancerCaseStudy", 2);
7142
7215
  __decorateClass([
7143
- (0, import_typeorm80.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
7216
+ (0, import_typeorm81.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
7144
7217
  ], User.prototype, "freelancerTool", 2);
7145
7218
  __decorateClass([
7146
- (0, import_typeorm80.OneToMany)(
7219
+ (0, import_typeorm81.OneToMany)(
7147
7220
  () => FreelancerFramework,
7148
7221
  (freelancerFramework) => freelancerFramework.user
7149
7222
  )
7150
7223
  ], User.prototype, "freelancerFramework", 2);
7151
7224
  __decorateClass([
7152
- (0, import_typeorm80.OneToOne)(
7225
+ (0, import_typeorm81.OneToOne)(
7153
7226
  () => FreelancerDeclaration,
7154
7227
  (freelancerDeclaration) => freelancerDeclaration.user
7155
7228
  )
7156
7229
  ], User.prototype, "freelancerDeclaration", 2);
7157
7230
  __decorateClass([
7158
- (0, import_typeorm80.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
7231
+ (0, import_typeorm81.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
7159
7232
  ], User.prototype, "freelancerMcq", 2);
7160
7233
  __decorateClass([
7161
- (0, import_typeorm80.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
7234
+ (0, import_typeorm81.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
7162
7235
  ], User.prototype, "freelancerAiInterview", 2);
7163
7236
  __decorateClass([
7164
- (0, import_typeorm80.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
7237
+ (0, import_typeorm81.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
7165
7238
  ], User.prototype, "freelancerF2FInterviews", 2);
7166
7239
  __decorateClass([
7167
- (0, import_typeorm80.OneToMany)(
7240
+ (0, import_typeorm81.OneToMany)(
7168
7241
  () => F2fInterviewRescheduleRequest,
7169
7242
  (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
7170
7243
  )
7171
7244
  ], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
7172
7245
  __decorateClass([
7173
- (0, import_typeorm80.OneToMany)(
7246
+ (0, import_typeorm81.OneToMany)(
7174
7247
  () => AiInterviewRescheduleRequest,
7175
7248
  (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
7176
7249
  )
7177
7250
  ], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
7178
7251
  __decorateClass([
7179
- (0, import_typeorm80.OneToMany)(
7252
+ (0, import_typeorm81.OneToMany)(
7180
7253
  () => AiInterviewRescheduleRequest,
7181
7254
  (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
7182
7255
  )
7183
7256
  ], User.prototype, "clientAiInterviewRescheduleRequests", 2);
7184
7257
  __decorateClass([
7185
- (0, import_typeorm80.OneToMany)(() => Job, (job) => job.user)
7258
+ (0, import_typeorm81.OneToMany)(() => Job, (job) => job.user)
7186
7259
  ], User.prototype, "jobs", 2);
7187
7260
  __decorateClass([
7188
- (0, import_typeorm80.OneToMany)(() => Task, (task) => task.client)
7261
+ (0, import_typeorm81.OneToMany)(() => Task, (task) => task.client)
7189
7262
  ], User.prototype, "clientTasks", 2);
7190
7263
  __decorateClass([
7191
- (0, import_typeorm80.OneToMany)(() => Task, (task) => task.freelancer)
7264
+ (0, import_typeorm81.OneToMany)(() => Task, (task) => task.freelancer)
7192
7265
  ], User.prototype, "freelancerTasks", 2);
7193
7266
  __decorateClass([
7194
- (0, import_typeorm80.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
7267
+ (0, import_typeorm81.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
7195
7268
  ], User.prototype, "raisedTaskQueries", 2);
7196
7269
  __decorateClass([
7197
- (0, import_typeorm80.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
7270
+ (0, import_typeorm81.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
7198
7271
  ], User.prototype, "assignedTaskQueries", 2);
7199
7272
  __decorateClass([
7200
- (0, import_typeorm80.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
7273
+ (0, import_typeorm81.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
7201
7274
  ], User.prototype, "taskQueryMessages", 2);
7202
7275
  __decorateClass([
7203
- (0, import_typeorm80.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
7276
+ (0, import_typeorm81.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
7204
7277
  ], User.prototype, "jobApplications", 2);
7205
7278
  __decorateClass([
7206
- (0, import_typeorm80.OneToMany)(() => Interview, (interview) => interview.user)
7279
+ (0, import_typeorm81.OneToMany)(() => Interview, (interview) => interview.user)
7207
7280
  ], User.prototype, "interviews", 2);
7208
7281
  __decorateClass([
7209
- (0, import_typeorm80.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
7282
+ (0, import_typeorm81.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
7210
7283
  ], User.prototype, "bankDetail", 2);
7211
7284
  __decorateClass([
7212
- (0, import_typeorm80.OneToMany)(
7285
+ (0, import_typeorm81.OneToMany)(
7213
7286
  () => SystemPreference,
7214
7287
  (systemPreference) => systemPreference.user
7215
7288
  )
7216
7289
  ], User.prototype, "systemPreference", 2);
7217
7290
  __decorateClass([
7218
- (0, import_typeorm80.OneToMany)(() => Rating, (rating) => rating.reviewer)
7291
+ (0, import_typeorm81.OneToMany)(() => Rating, (rating) => rating.reviewer)
7219
7292
  ], User.prototype, "givenRatings", 2);
7220
7293
  __decorateClass([
7221
- (0, import_typeorm80.OneToMany)(() => Rating, (rating) => rating.reviewee)
7294
+ (0, import_typeorm81.OneToMany)(() => Rating, (rating) => rating.reviewee)
7222
7295
  ], User.prototype, "receivedRatings", 2);
7223
7296
  __decorateClass([
7224
- (0, import_typeorm80.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
7297
+ (0, import_typeorm81.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
7225
7298
  ], User.prototype, "adminUserRoles", 2);
7226
7299
  __decorateClass([
7227
- (0, import_typeorm80.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
7300
+ (0, import_typeorm81.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
7228
7301
  cascade: true
7229
7302
  })
7230
7303
  ], User.prototype, "clientContractSummaries", 2);
7231
7304
  __decorateClass([
7232
- (0, import_typeorm80.OneToMany)(() => Contract, (contract) => contract.client)
7305
+ (0, import_typeorm81.OneToMany)(() => Contract, (contract) => contract.client)
7233
7306
  ], User.prototype, "clientContracts", 2);
7234
7307
  __decorateClass([
7235
- (0, import_typeorm80.OneToMany)(() => Hiring, (hiring) => hiring.client)
7308
+ (0, import_typeorm81.OneToMany)(() => Hiring, (hiring) => hiring.client)
7236
7309
  ], User.prototype, "clientHirings", 2);
7237
7310
  __decorateClass([
7238
- (0, import_typeorm80.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
7311
+ (0, import_typeorm81.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
7239
7312
  ], User.prototype, "clientEscrowWallets", 2);
7240
7313
  __decorateClass([
7241
- (0, import_typeorm80.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
7314
+ (0, import_typeorm81.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
7242
7315
  cascade: true
7243
7316
  })
7244
7317
  ], User.prototype, "freelancerContractSummaries", 2);
7245
7318
  __decorateClass([
7246
- (0, import_typeorm80.OneToMany)(() => Contract, (contract) => contract.freelancer)
7319
+ (0, import_typeorm81.OneToMany)(() => Contract, (contract) => contract.freelancer)
7247
7320
  ], User.prototype, "freelancerContracts", 2);
7248
7321
  __decorateClass([
7249
- (0, import_typeorm80.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
7322
+ (0, import_typeorm81.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
7250
7323
  ], User.prototype, "freelancerHirings", 2);
7251
7324
  __decorateClass([
7252
- (0, import_typeorm80.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
7325
+ (0, import_typeorm81.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
7253
7326
  ], User.prototype, "freelancerEscrowWallets", 2);
7254
7327
  __decorateClass([
7255
- (0, import_typeorm80.OneToOne)(() => Signature, (signature) => signature.user)
7328
+ (0, import_typeorm81.OneToOne)(() => Signature, (signature) => signature.user)
7256
7329
  ], User.prototype, "signatures", 2);
7257
7330
  __decorateClass([
7258
- (0, import_typeorm80.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
7331
+ (0, import_typeorm81.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
7259
7332
  ], User.prototype, "clientTimesheets", 2);
7260
7333
  __decorateClass([
7261
- (0, import_typeorm80.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
7334
+ (0, import_typeorm81.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
7262
7335
  ], User.prototype, "freelancerTimesheets", 2);
7263
7336
  __decorateClass([
7264
- (0, import_typeorm80.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
7337
+ (0, import_typeorm81.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
7265
7338
  ], User.prototype, "clientTimesheetLine", 2);
7266
7339
  __decorateClass([
7267
- (0, import_typeorm80.OneToMany)(() => Invoice, (invoice) => invoice.client)
7340
+ (0, import_typeorm81.OneToMany)(() => Invoice, (invoice) => invoice.client)
7268
7341
  ], User.prototype, "clientInvoice", 2);
7269
7342
  __decorateClass([
7270
- (0, import_typeorm80.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
7343
+ (0, import_typeorm81.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
7271
7344
  ], User.prototype, "freelancerTimesheetLine", 2);
7272
7345
  __decorateClass([
7273
- (0, import_typeorm80.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
7346
+ (0, import_typeorm81.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
7274
7347
  ], User.prototype, "freelancerInvoice", 2);
7275
7348
  __decorateClass([
7276
- (0, import_typeorm80.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
7349
+ (0, import_typeorm81.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
7277
7350
  ], User.prototype, "clientPreferencesGiven", 2);
7278
7351
  __decorateClass([
7279
- (0, import_typeorm80.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
7352
+ (0, import_typeorm81.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
7280
7353
  ], User.prototype, "clientPreferencesReceived", 2);
7281
7354
  __decorateClass([
7282
- (0, import_typeorm80.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
7355
+ (0, import_typeorm81.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
7283
7356
  ], User.prototype, "initiatedDisputes", 2);
7284
7357
  __decorateClass([
7285
- (0, import_typeorm80.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
7358
+ (0, import_typeorm81.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
7286
7359
  ], User.prototype, "respondentDisputes", 2);
7287
7360
  __decorateClass([
7288
- (0, import_typeorm80.OneToOne)(() => Wallet, (wallet) => wallet.user)
7361
+ (0, import_typeorm81.OneToOne)(() => Wallet, (wallet) => wallet.user)
7289
7362
  ], User.prototype, "wallet", 2);
7290
7363
  __decorateClass([
7291
- (0, import_typeorm80.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
7364
+ (0, import_typeorm81.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
7292
7365
  ], User.prototype, "stripeTransactions", 2);
7293
7366
  __decorateClass([
7294
- (0, import_typeorm80.OneToMany)(() => Dispute, (dispute) => dispute.client)
7367
+ (0, import_typeorm81.OneToMany)(() => Dispute, (dispute) => dispute.client)
7295
7368
  ], User.prototype, "clientDisputes", 2);
7296
7369
  __decorateClass([
7297
- (0, import_typeorm80.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
7370
+ (0, import_typeorm81.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
7298
7371
  ], User.prototype, "freelancerDisputes", 2);
7299
7372
  __decorateClass([
7300
- (0, import_typeorm80.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
7373
+ (0, import_typeorm81.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
7301
7374
  ], User.prototype, "inAppNotifications", 2);
7302
7375
  __decorateClass([
7303
- (0, import_typeorm80.OneToMany)(() => UserSubscription, (userSubscription) => userSubscription.user)
7376
+ (0, import_typeorm81.OneToMany)(() => UserSubscription, (userSubscription) => userSubscription.user)
7304
7377
  ], User.prototype, "userSubscriptions", 2);
7378
+ __decorateClass([
7379
+ (0, import_typeorm81.OneToMany)(() => EkycVerificationSession, (ekycVerificationSession) => ekycVerificationSession.user)
7380
+ ], User.prototype, "ekycVerificationSessions", 2);
7381
+ __decorateClass([
7382
+ (0, import_typeorm81.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.fromUser)
7383
+ ], User.prototype, "sentTransactions", 2);
7305
7384
  User = __decorateClass([
7306
- (0, import_typeorm80.Entity)("users")
7385
+ (0, import_typeorm81.Entity)("users")
7307
7386
  ], User);
7308
7387
 
7309
7388
  // src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
@@ -14492,11 +14571,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
14492
14571
  };
14493
14572
 
14494
14573
  // src/entities/sequence-generator.entity.ts
14495
- var import_typeorm81 = require("typeorm");
14574
+ var import_typeorm82 = require("typeorm");
14496
14575
  var SequenceGenerator = class extends BaseEntity {
14497
14576
  };
14498
14577
  __decorateClass([
14499
- (0, import_typeorm81.Column)({
14578
+ (0, import_typeorm82.Column)({
14500
14579
  name: "module",
14501
14580
  type: "varchar",
14502
14581
  length: 50,
@@ -14505,7 +14584,7 @@ __decorateClass([
14505
14584
  })
14506
14585
  ], SequenceGenerator.prototype, "module", 2);
14507
14586
  __decorateClass([
14508
- (0, import_typeorm81.Column)({
14587
+ (0, import_typeorm82.Column)({
14509
14588
  name: "prefix",
14510
14589
  type: "varchar",
14511
14590
  length: 10,
@@ -14514,7 +14593,7 @@ __decorateClass([
14514
14593
  })
14515
14594
  ], SequenceGenerator.prototype, "prefix", 2);
14516
14595
  __decorateClass([
14517
- (0, import_typeorm81.Column)({
14596
+ (0, import_typeorm82.Column)({
14518
14597
  name: "last_sequence",
14519
14598
  type: "int",
14520
14599
  nullable: false,
@@ -14522,7 +14601,7 @@ __decorateClass([
14522
14601
  })
14523
14602
  ], SequenceGenerator.prototype, "lastSequence", 2);
14524
14603
  __decorateClass([
14525
- (0, import_typeorm81.Column)({
14604
+ (0, import_typeorm82.Column)({
14526
14605
  name: "year",
14527
14606
  type: "int",
14528
14607
  nullable: true,
@@ -14530,11 +14609,11 @@ __decorateClass([
14530
14609
  })
14531
14610
  ], SequenceGenerator.prototype, "year", 2);
14532
14611
  SequenceGenerator = __decorateClass([
14533
- (0, import_typeorm81.Entity)("sequence_generators")
14612
+ (0, import_typeorm82.Entity)("sequence_generators")
14534
14613
  ], SequenceGenerator);
14535
14614
 
14536
14615
  // src/entities/question.entity.ts
14537
- var import_typeorm82 = require("typeorm");
14616
+ var import_typeorm83 = require("typeorm");
14538
14617
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
14539
14618
  QuestionFor2["CLIENT"] = "CLIENT";
14540
14619
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -14543,16 +14622,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
14543
14622
  var Question = class extends BaseEntity {
14544
14623
  };
14545
14624
  __decorateClass([
14546
- (0, import_typeorm82.Column)({ name: "question", type: "varchar" })
14625
+ (0, import_typeorm83.Column)({ name: "question", type: "varchar" })
14547
14626
  ], Question.prototype, "question", 2);
14548
14627
  __decorateClass([
14549
- (0, import_typeorm82.Column)({ name: "hint", type: "varchar", nullable: true })
14628
+ (0, import_typeorm83.Column)({ name: "hint", type: "varchar", nullable: true })
14550
14629
  ], Question.prototype, "hint", 2);
14551
14630
  __decorateClass([
14552
- (0, import_typeorm82.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14631
+ (0, import_typeorm83.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14553
14632
  ], Question.prototype, "slug", 2);
14554
14633
  __decorateClass([
14555
- (0, import_typeorm82.Column)({
14634
+ (0, import_typeorm83.Column)({
14556
14635
  name: "question_for",
14557
14636
  type: "enum",
14558
14637
  enum: QuestionFor,
@@ -14560,45 +14639,45 @@ __decorateClass([
14560
14639
  })
14561
14640
  ], Question.prototype, "questionFor", 2);
14562
14641
  __decorateClass([
14563
- (0, import_typeorm82.Column)({ name: "type", type: "varchar", nullable: true })
14642
+ (0, import_typeorm83.Column)({ name: "type", type: "varchar", nullable: true })
14564
14643
  ], Question.prototype, "type", 2);
14565
14644
  __decorateClass([
14566
- (0, import_typeorm82.Column)({ name: "options", type: "jsonb", nullable: true })
14645
+ (0, import_typeorm83.Column)({ name: "options", type: "jsonb", nullable: true })
14567
14646
  ], Question.prototype, "options", 2);
14568
14647
  __decorateClass([
14569
- (0, import_typeorm82.Column)({ name: "is_active", type: "boolean", default: false })
14648
+ (0, import_typeorm83.Column)({ name: "is_active", type: "boolean", default: false })
14570
14649
  ], Question.prototype, "isActive", 2);
14571
14650
  Question = __decorateClass([
14572
- (0, import_typeorm82.Entity)("questions")
14651
+ (0, import_typeorm83.Entity)("questions")
14573
14652
  ], Question);
14574
14653
 
14575
14654
  // src/entities/skill.entity.ts
14576
- var import_typeorm83 = require("typeorm");
14655
+ var import_typeorm84 = require("typeorm");
14577
14656
  var Skill = class extends BaseEntity {
14578
14657
  };
14579
14658
  __decorateClass([
14580
- (0, import_typeorm83.Column)({ name: "name", type: "varchar", nullable: true })
14659
+ (0, import_typeorm84.Column)({ name: "name", type: "varchar", nullable: true })
14581
14660
  ], Skill.prototype, "name", 2);
14582
14661
  __decorateClass([
14583
- (0, import_typeorm83.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14662
+ (0, import_typeorm84.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14584
14663
  ], Skill.prototype, "slug", 2);
14585
14664
  __decorateClass([
14586
- (0, import_typeorm83.Column)({ name: "is_active", type: "boolean", default: false })
14665
+ (0, import_typeorm84.Column)({ name: "is_active", type: "boolean", default: false })
14587
14666
  ], Skill.prototype, "isActive", 2);
14588
14667
  Skill = __decorateClass([
14589
- (0, import_typeorm83.Entity)("skills")
14668
+ (0, import_typeorm84.Entity)("skills")
14590
14669
  ], Skill);
14591
14670
 
14592
14671
  // src/entities/skill-catalog.entity.ts
14593
- var import_typeorm84 = require("typeorm");
14672
+ var import_typeorm85 = require("typeorm");
14594
14673
  var SkillCatalog = class extends BaseEntity {
14595
14674
  };
14596
14675
  __decorateClass([
14597
- (0, import_typeorm84.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14598
- (0, import_typeorm84.Index)()
14676
+ (0, import_typeorm85.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14677
+ (0, import_typeorm85.Index)()
14599
14678
  ], SkillCatalog.prototype, "canonicalName", 2);
14600
14679
  __decorateClass([
14601
- (0, import_typeorm84.Column)({
14680
+ (0, import_typeorm85.Column)({
14602
14681
  name: "aliases",
14603
14682
  type: "text",
14604
14683
  array: true,
@@ -14606,20 +14685,20 @@ __decorateClass([
14606
14685
  })
14607
14686
  ], SkillCatalog.prototype, "aliases", 2);
14608
14687
  __decorateClass([
14609
- (0, import_typeorm84.Column)({
14688
+ (0, import_typeorm85.Column)({
14610
14689
  name: "variations",
14611
14690
  type: "jsonb",
14612
14691
  default: "{}"
14613
14692
  })
14614
14693
  ], SkillCatalog.prototype, "variations", 2);
14615
14694
  __decorateClass([
14616
- (0, import_typeorm84.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
14695
+ (0, import_typeorm85.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
14617
14696
  ], SkillCatalog.prototype, "category", 2);
14618
14697
  __decorateClass([
14619
- (0, import_typeorm84.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
14698
+ (0, import_typeorm85.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
14620
14699
  ], SkillCatalog.prototype, "parentSkill", 2);
14621
14700
  __decorateClass([
14622
- (0, import_typeorm84.Column)({
14701
+ (0, import_typeorm85.Column)({
14623
14702
  name: "related_skills",
14624
14703
  type: "text",
14625
14704
  array: true,
@@ -14627,68 +14706,68 @@ __decorateClass([
14627
14706
  })
14628
14707
  ], SkillCatalog.prototype, "relatedSkills", 2);
14629
14708
  __decorateClass([
14630
- (0, import_typeorm84.Column)({ name: "usage_count", type: "integer", default: 0 }),
14631
- (0, import_typeorm84.Index)()
14709
+ (0, import_typeorm85.Column)({ name: "usage_count", type: "integer", default: 0 }),
14710
+ (0, import_typeorm85.Index)()
14632
14711
  ], SkillCatalog.prototype, "usageCount", 2);
14633
14712
  __decorateClass([
14634
- (0, import_typeorm84.Column)({ name: "is_verified", type: "boolean", default: false })
14713
+ (0, import_typeorm85.Column)({ name: "is_verified", type: "boolean", default: false })
14635
14714
  ], SkillCatalog.prototype, "isVerified", 2);
14636
14715
  __decorateClass([
14637
- (0, import_typeorm84.Column)({ name: "first_seen_date", type: "date" })
14716
+ (0, import_typeorm85.Column)({ name: "first_seen_date", type: "date" })
14638
14717
  ], SkillCatalog.prototype, "firstSeenDate", 2);
14639
14718
  __decorateClass([
14640
- (0, import_typeorm84.Column)({ name: "last_updated_date", type: "date" })
14719
+ (0, import_typeorm85.Column)({ name: "last_updated_date", type: "date" })
14641
14720
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
14642
14721
  __decorateClass([
14643
- (0, import_typeorm84.Column)({
14722
+ (0, import_typeorm85.Column)({
14644
14723
  name: "search_vector",
14645
14724
  type: "tsvector",
14646
14725
  nullable: true
14647
14726
  })
14648
14727
  ], SkillCatalog.prototype, "searchVector", 2);
14649
14728
  SkillCatalog = __decorateClass([
14650
- (0, import_typeorm84.Entity)("skill_catalogs")
14729
+ (0, import_typeorm85.Entity)("skill_catalogs")
14651
14730
  ], SkillCatalog);
14652
14731
 
14653
14732
  // src/entities/job-role.entity.ts
14654
- var import_typeorm85 = require("typeorm");
14733
+ var import_typeorm86 = require("typeorm");
14655
14734
  var JobRoles = class extends BaseEntity {
14656
14735
  };
14657
14736
  __decorateClass([
14658
- (0, import_typeorm85.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14737
+ (0, import_typeorm86.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14659
14738
  ], JobRoles.prototype, "slug", 2);
14660
14739
  __decorateClass([
14661
- (0, import_typeorm85.Column)({ name: "name", type: "varchar", nullable: true })
14740
+ (0, import_typeorm86.Column)({ name: "name", type: "varchar", nullable: true })
14662
14741
  ], JobRoles.prototype, "name", 2);
14663
14742
  __decorateClass([
14664
- (0, import_typeorm85.Column)({ name: "is_active", type: "boolean", default: true })
14743
+ (0, import_typeorm86.Column)({ name: "is_active", type: "boolean", default: true })
14665
14744
  ], JobRoles.prototype, "isActive", 2);
14666
14745
  JobRoles = __decorateClass([
14667
- (0, import_typeorm85.Entity)("job_roles")
14746
+ (0, import_typeorm86.Entity)("job_roles")
14668
14747
  ], JobRoles);
14669
14748
 
14670
14749
  // src/entities/cms.entity.ts
14671
- var import_typeorm86 = require("typeorm");
14750
+ var import_typeorm87 = require("typeorm");
14672
14751
  var Cms = class extends BaseEntity {
14673
14752
  };
14674
14753
  __decorateClass([
14675
- (0, import_typeorm86.Column)({ name: "title", type: "varchar", nullable: true })
14754
+ (0, import_typeorm87.Column)({ name: "title", type: "varchar", nullable: true })
14676
14755
  ], Cms.prototype, "title", 2);
14677
14756
  __decorateClass([
14678
- (0, import_typeorm86.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14757
+ (0, import_typeorm87.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14679
14758
  ], Cms.prototype, "slug", 2);
14680
14759
  __decorateClass([
14681
- (0, import_typeorm86.Column)({ name: "content", type: "varchar", nullable: true })
14760
+ (0, import_typeorm87.Column)({ name: "content", type: "varchar", nullable: true })
14682
14761
  ], Cms.prototype, "content", 2);
14683
14762
  __decorateClass([
14684
- (0, import_typeorm86.Column)({ name: "is_active", type: "boolean", default: true })
14763
+ (0, import_typeorm87.Column)({ name: "is_active", type: "boolean", default: true })
14685
14764
  ], Cms.prototype, "isActive", 2);
14686
14765
  Cms = __decorateClass([
14687
- (0, import_typeorm86.Entity)("cms")
14766
+ (0, import_typeorm87.Entity)("cms")
14688
14767
  ], Cms);
14689
14768
 
14690
14769
  // src/entities/lead.entity.ts
14691
- var import_typeorm87 = require("typeorm");
14770
+ var import_typeorm88 = require("typeorm");
14692
14771
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14693
14772
  CategoryEmum2["BUSINESS"] = "BUSINESS";
14694
14773
  CategoryEmum2["FREELANCER"] = "FREELANCER";
@@ -14697,22 +14776,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14697
14776
  var Lead = class extends BaseEntity {
14698
14777
  };
14699
14778
  __decorateClass([
14700
- (0, import_typeorm87.Column)({ name: "name", type: "varchar", nullable: true })
14779
+ (0, import_typeorm88.Column)({ name: "name", type: "varchar", nullable: true })
14701
14780
  ], Lead.prototype, "name", 2);
14702
14781
  __decorateClass([
14703
- (0, import_typeorm87.Column)({ name: "mobile_code", type: "varchar", nullable: true })
14782
+ (0, import_typeorm88.Column)({ name: "mobile_code", type: "varchar", nullable: true })
14704
14783
  ], Lead.prototype, "mobileCode", 2);
14705
14784
  __decorateClass([
14706
- (0, import_typeorm87.Column)({ name: "mobile", type: "varchar", nullable: true })
14785
+ (0, import_typeorm88.Column)({ name: "mobile", type: "varchar", nullable: true })
14707
14786
  ], Lead.prototype, "mobile", 2);
14708
14787
  __decorateClass([
14709
- (0, import_typeorm87.Column)({ name: "email", type: "varchar", nullable: true })
14788
+ (0, import_typeorm88.Column)({ name: "email", type: "varchar", nullable: true })
14710
14789
  ], Lead.prototype, "email", 2);
14711
14790
  __decorateClass([
14712
- (0, import_typeorm87.Column)({ name: "description", type: "varchar", nullable: true })
14791
+ (0, import_typeorm88.Column)({ name: "description", type: "varchar", nullable: true })
14713
14792
  ], Lead.prototype, "description", 2);
14714
14793
  __decorateClass([
14715
- (0, import_typeorm87.Column)({
14794
+ (0, import_typeorm88.Column)({
14716
14795
  name: "category",
14717
14796
  type: "enum",
14718
14797
  enum: CategoryEmum,
@@ -14720,129 +14799,129 @@ __decorateClass([
14720
14799
  })
14721
14800
  ], Lead.prototype, "category", 2);
14722
14801
  Lead = __decorateClass([
14723
- (0, import_typeorm87.Entity)("leads")
14802
+ (0, import_typeorm88.Entity)("leads")
14724
14803
  ], Lead);
14725
14804
 
14726
14805
  // src/entities/job-freelancer-recommendation.entity.ts
14727
- var import_typeorm88 = require("typeorm");
14806
+ var import_typeorm89 = require("typeorm");
14728
14807
  var JobFreelancerRecommendation = class {
14729
14808
  };
14730
14809
  __decorateClass([
14731
- (0, import_typeorm88.ViewColumn)({ name: "job_id" })
14810
+ (0, import_typeorm89.ViewColumn)({ name: "job_id" })
14732
14811
  ], JobFreelancerRecommendation.prototype, "jobId", 2);
14733
14812
  __decorateClass([
14734
- (0, import_typeorm88.ViewColumn)({ name: "job_uuid" })
14813
+ (0, import_typeorm89.ViewColumn)({ name: "job_uuid" })
14735
14814
  ], JobFreelancerRecommendation.prototype, "jobUuid", 2);
14736
14815
  __decorateClass([
14737
- (0, import_typeorm88.ViewColumn)({ name: "job_unique_id" })
14816
+ (0, import_typeorm89.ViewColumn)({ name: "job_unique_id" })
14738
14817
  ], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
14739
14818
  __decorateClass([
14740
- (0, import_typeorm88.ViewColumn)({ name: "job_role" })
14819
+ (0, import_typeorm89.ViewColumn)({ name: "job_role" })
14741
14820
  ], JobFreelancerRecommendation.prototype, "jobRole", 2);
14742
14821
  __decorateClass([
14743
- (0, import_typeorm88.ViewColumn)({ name: "job_openings" })
14822
+ (0, import_typeorm89.ViewColumn)({ name: "job_openings" })
14744
14823
  ], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
14745
14824
  __decorateClass([
14746
- (0, import_typeorm88.ViewColumn)({ name: "job_location" })
14825
+ (0, import_typeorm89.ViewColumn)({ name: "job_location" })
14747
14826
  ], JobFreelancerRecommendation.prototype, "jobLocation", 2);
14748
14827
  __decorateClass([
14749
- (0, import_typeorm88.ViewColumn)({ name: "job_currency" })
14828
+ (0, import_typeorm89.ViewColumn)({ name: "job_currency" })
14750
14829
  ], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
14751
14830
  __decorateClass([
14752
- (0, import_typeorm88.ViewColumn)({ name: "job_salary_from" })
14831
+ (0, import_typeorm89.ViewColumn)({ name: "job_salary_from" })
14753
14832
  ], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
14754
14833
  __decorateClass([
14755
- (0, import_typeorm88.ViewColumn)({ name: "job_salary_to" })
14834
+ (0, import_typeorm89.ViewColumn)({ name: "job_salary_to" })
14756
14835
  ], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
14757
14836
  __decorateClass([
14758
- (0, import_typeorm88.ViewColumn)({ name: "job_employment_type" })
14837
+ (0, import_typeorm89.ViewColumn)({ name: "job_employment_type" })
14759
14838
  ], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
14760
14839
  __decorateClass([
14761
- (0, import_typeorm88.ViewColumn)({ name: "application_received" })
14840
+ (0, import_typeorm89.ViewColumn)({ name: "application_received" })
14762
14841
  ], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
14763
14842
  __decorateClass([
14764
- (0, import_typeorm88.ViewColumn)({ name: "job_posted_at" })
14843
+ (0, import_typeorm89.ViewColumn)({ name: "job_posted_at" })
14765
14844
  ], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
14766
14845
  __decorateClass([
14767
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_id" })
14846
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_id" })
14768
14847
  ], JobFreelancerRecommendation.prototype, "freelancerId", 2);
14769
14848
  __decorateClass([
14770
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_uuid" })
14849
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_uuid" })
14771
14850
  ], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
14772
14851
  __decorateClass([
14773
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_unique_id" })
14852
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_unique_id" })
14774
14853
  ], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
14775
14854
  __decorateClass([
14776
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_first_name" })
14855
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_first_name" })
14777
14856
  ], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
14778
14857
  __decorateClass([
14779
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_last_name" })
14858
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_last_name" })
14780
14859
  ], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
14781
14860
  __decorateClass([
14782
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_email" })
14861
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_email" })
14783
14862
  ], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
14784
14863
  __decorateClass([
14785
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_profile_picture" })
14864
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_profile_picture" })
14786
14865
  ], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
14787
14866
  __decorateClass([
14788
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_is_social" })
14867
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_is_social" })
14789
14868
  ], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
14790
14869
  __decorateClass([
14791
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_created_at" })
14870
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_created_at" })
14792
14871
  ], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
14793
14872
  __decorateClass([
14794
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_designation" })
14873
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_designation" })
14795
14874
  ], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
14796
14875
  __decorateClass([
14797
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_experience" })
14876
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_experience" })
14798
14877
  ], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
14799
14878
  __decorateClass([
14800
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_expertshub_verified" })
14879
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_expertshub_verified" })
14801
14880
  ], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
14802
14881
  __decorateClass([
14803
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_hourly_compensation" })
14882
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_hourly_compensation" })
14804
14883
  ], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
14805
14884
  __decorateClass([
14806
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_country_name" })
14885
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_country_name" })
14807
14886
  ], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
14808
14887
  __decorateClass([
14809
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_country_iso_code" })
14888
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_country_iso_code" })
14810
14889
  ], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
14811
14890
  __decorateClass([
14812
- (0, import_typeorm88.ViewColumn)({ name: "client_id" })
14891
+ (0, import_typeorm89.ViewColumn)({ name: "client_id" })
14813
14892
  ], JobFreelancerRecommendation.prototype, "clientId", 2);
14814
14893
  __decorateClass([
14815
- (0, import_typeorm88.ViewColumn)({ name: "client_uuid" })
14894
+ (0, import_typeorm89.ViewColumn)({ name: "client_uuid" })
14816
14895
  ], JobFreelancerRecommendation.prototype, "clientUuid", 2);
14817
14896
  __decorateClass([
14818
- (0, import_typeorm88.ViewColumn)({ name: "client_first_name" })
14897
+ (0, import_typeorm89.ViewColumn)({ name: "client_first_name" })
14819
14898
  ], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
14820
14899
  __decorateClass([
14821
- (0, import_typeorm88.ViewColumn)({ name: "client_last_name" })
14900
+ (0, import_typeorm89.ViewColumn)({ name: "client_last_name" })
14822
14901
  ], JobFreelancerRecommendation.prototype, "clientLastName", 2);
14823
14902
  __decorateClass([
14824
- (0, import_typeorm88.ViewColumn)({ name: "client_email" })
14903
+ (0, import_typeorm89.ViewColumn)({ name: "client_email" })
14825
14904
  ], JobFreelancerRecommendation.prototype, "clientEmail", 2);
14826
14905
  __decorateClass([
14827
- (0, import_typeorm88.ViewColumn)({ name: "client_company_logo" })
14906
+ (0, import_typeorm89.ViewColumn)({ name: "client_company_logo" })
14828
14907
  ], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
14829
14908
  __decorateClass([
14830
- (0, import_typeorm88.ViewColumn)({ name: "client_company_name" })
14909
+ (0, import_typeorm89.ViewColumn)({ name: "client_company_name" })
14831
14910
  ], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
14832
14911
  __decorateClass([
14833
- (0, import_typeorm88.ViewColumn)({ name: "matching_skills" })
14912
+ (0, import_typeorm89.ViewColumn)({ name: "matching_skills" })
14834
14913
  ], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
14835
14914
  __decorateClass([
14836
- (0, import_typeorm88.ViewColumn)({ name: "matching_skills_count" })
14915
+ (0, import_typeorm89.ViewColumn)({ name: "matching_skills_count" })
14837
14916
  ], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
14838
14917
  __decorateClass([
14839
- (0, import_typeorm88.ViewColumn)({ name: "required_skills" })
14918
+ (0, import_typeorm89.ViewColumn)({ name: "required_skills" })
14840
14919
  ], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
14841
14920
  __decorateClass([
14842
- (0, import_typeorm88.ViewColumn)({ name: "required_skills_count" })
14921
+ (0, import_typeorm89.ViewColumn)({ name: "required_skills_count" })
14843
14922
  ], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
14844
14923
  JobFreelancerRecommendation = __decorateClass([
14845
- (0, import_typeorm88.ViewEntity)({
14924
+ (0, import_typeorm89.ViewEntity)({
14846
14925
  name: "job_freelancer_recommendations",
14847
14926
  materialized: true,
14848
14927
  synchronize: false
@@ -14851,32 +14930,32 @@ JobFreelancerRecommendation = __decorateClass([
14851
14930
  ], JobFreelancerRecommendation);
14852
14931
 
14853
14932
  // src/entities/job-freelancer-recommendation-v2.entity.ts
14854
- var import_typeorm89 = require("typeorm");
14933
+ var import_typeorm90 = require("typeorm");
14855
14934
  var JobFreelancerRecommendationV2 = class {
14856
14935
  };
14857
14936
  __decorateClass([
14858
- (0, import_typeorm89.ViewColumn)({ name: "job_id" })
14937
+ (0, import_typeorm90.ViewColumn)({ name: "job_id" })
14859
14938
  ], JobFreelancerRecommendationV2.prototype, "jobId", 2);
14860
14939
  __decorateClass([
14861
- (0, import_typeorm89.ViewColumn)({ name: "job_owner_id" })
14940
+ (0, import_typeorm90.ViewColumn)({ name: "job_owner_id" })
14862
14941
  ], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
14863
14942
  __decorateClass([
14864
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_id" })
14943
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_id" })
14865
14944
  ], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
14866
14945
  __decorateClass([
14867
- (0, import_typeorm89.ViewColumn)({ name: "matching_skills" })
14946
+ (0, import_typeorm90.ViewColumn)({ name: "matching_skills" })
14868
14947
  ], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
14869
14948
  __decorateClass([
14870
- (0, import_typeorm89.ViewColumn)({ name: "matching_skills_count" })
14949
+ (0, import_typeorm90.ViewColumn)({ name: "matching_skills_count" })
14871
14950
  ], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
14872
14951
  __decorateClass([
14873
- (0, import_typeorm89.ViewColumn)({ name: "required_skills" })
14952
+ (0, import_typeorm90.ViewColumn)({ name: "required_skills" })
14874
14953
  ], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
14875
14954
  __decorateClass([
14876
- (0, import_typeorm89.ViewColumn)({ name: "required_skills_count" })
14955
+ (0, import_typeorm90.ViewColumn)({ name: "required_skills_count" })
14877
14956
  ], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
14878
14957
  JobFreelancerRecommendationV2 = __decorateClass([
14879
- (0, import_typeorm89.ViewEntity)({
14958
+ (0, import_typeorm90.ViewEntity)({
14880
14959
  name: "job_freelancer_recommendations_v2",
14881
14960
  materialized: true,
14882
14961
  synchronize: false
@@ -14885,74 +14964,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
14885
14964
  ], JobFreelancerRecommendationV2);
14886
14965
 
14887
14966
  // src/entities/client-freelancer-recommendation.entity.ts
14888
- var import_typeorm90 = require("typeorm");
14967
+ var import_typeorm91 = require("typeorm");
14889
14968
  var ClientFreelancerRecommendation = class {
14890
14969
  };
14891
14970
  __decorateClass([
14892
- (0, import_typeorm90.ViewColumn)({ name: "client_id" })
14971
+ (0, import_typeorm91.ViewColumn)({ name: "client_id" })
14893
14972
  ], ClientFreelancerRecommendation.prototype, "clientId", 2);
14894
14973
  __decorateClass([
14895
- (0, import_typeorm90.ViewColumn)({ name: "client_uuid" })
14974
+ (0, import_typeorm91.ViewColumn)({ name: "client_uuid" })
14896
14975
  ], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
14897
14976
  __decorateClass([
14898
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_id" })
14977
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_id" })
14899
14978
  ], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
14900
14979
  __decorateClass([
14901
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_uuid" })
14980
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_uuid" })
14902
14981
  ], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
14903
14982
  __decorateClass([
14904
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_unique_id" })
14983
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_unique_id" })
14905
14984
  ], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
14906
14985
  __decorateClass([
14907
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_first_name" })
14986
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_first_name" })
14908
14987
  ], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
14909
14988
  __decorateClass([
14910
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_last_name" })
14989
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_last_name" })
14911
14990
  ], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
14912
14991
  __decorateClass([
14913
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_email" })
14992
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_email" })
14914
14993
  ], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
14915
14994
  __decorateClass([
14916
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_profile_picture" })
14995
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_profile_picture" })
14917
14996
  ], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
14918
14997
  __decorateClass([
14919
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_is_social" })
14998
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_is_social" })
14920
14999
  ], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
14921
15000
  __decorateClass([
14922
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_created_at" })
15001
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_created_at" })
14923
15002
  ], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
14924
15003
  __decorateClass([
14925
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_designation" })
15004
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_designation" })
14926
15005
  ], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
14927
15006
  __decorateClass([
14928
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_experience" })
15007
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_experience" })
14929
15008
  ], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
14930
15009
  __decorateClass([
14931
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_expertshub_verified" })
15010
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_expertshub_verified" })
14932
15011
  ], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
14933
15012
  __decorateClass([
14934
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_hourly_compensation" })
15013
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_hourly_compensation" })
14935
15014
  ], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
14936
15015
  __decorateClass([
14937
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_country_name" })
15016
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_country_name" })
14938
15017
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
14939
15018
  __decorateClass([
14940
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_country_iso_code" })
15019
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_country_iso_code" })
14941
15020
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
14942
15021
  __decorateClass([
14943
- (0, import_typeorm90.ViewColumn)({ name: "matching_skills" })
15022
+ (0, import_typeorm91.ViewColumn)({ name: "matching_skills" })
14944
15023
  ], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
14945
15024
  __decorateClass([
14946
- (0, import_typeorm90.ViewColumn)({ name: "matching_skills_count" })
15025
+ (0, import_typeorm91.ViewColumn)({ name: "matching_skills_count" })
14947
15026
  ], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
14948
15027
  __decorateClass([
14949
- (0, import_typeorm90.ViewColumn)({ name: "required_skills" })
15028
+ (0, import_typeorm91.ViewColumn)({ name: "required_skills" })
14950
15029
  ], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
14951
15030
  __decorateClass([
14952
- (0, import_typeorm90.ViewColumn)({ name: "required_skills_count" })
15031
+ (0, import_typeorm91.ViewColumn)({ name: "required_skills_count" })
14953
15032
  ], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
14954
15033
  ClientFreelancerRecommendation = __decorateClass([
14955
- (0, import_typeorm90.ViewEntity)({
15034
+ (0, import_typeorm91.ViewEntity)({
14956
15035
  name: "client_freelancer_recommendations",
14957
15036
  materialized: true,
14958
15037
  synchronize: false
@@ -14961,7 +15040,7 @@ ClientFreelancerRecommendation = __decorateClass([
14961
15040
  ], ClientFreelancerRecommendation);
14962
15041
 
14963
15042
  // src/entities/commission.entity.ts
14964
- var import_typeorm91 = require("typeorm");
15043
+ var import_typeorm92 = require("typeorm");
14965
15044
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
14966
15045
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
14967
15046
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -14970,7 +15049,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
14970
15049
  var Commission = class extends BaseEntity {
14971
15050
  };
14972
15051
  __decorateClass([
14973
- (0, import_typeorm91.Column)({
15052
+ (0, import_typeorm92.Column)({
14974
15053
  name: "freelancer_commission_type",
14975
15054
  type: "enum",
14976
15055
  enum: CommissionTypeEnum,
@@ -14978,10 +15057,10 @@ __decorateClass([
14978
15057
  })
14979
15058
  ], Commission.prototype, "freelancerCommissionType", 2);
14980
15059
  __decorateClass([
14981
- (0, import_typeorm91.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
15060
+ (0, import_typeorm92.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
14982
15061
  ], Commission.prototype, "freelancerCommission", 2);
14983
15062
  __decorateClass([
14984
- (0, import_typeorm91.Column)({
15063
+ (0, import_typeorm92.Column)({
14985
15064
  name: "client_commission_type",
14986
15065
  type: "enum",
14987
15066
  enum: CommissionTypeEnum,
@@ -14989,50 +15068,50 @@ __decorateClass([
14989
15068
  })
14990
15069
  ], Commission.prototype, "clientCommissionType", 2);
14991
15070
  __decorateClass([
14992
- (0, import_typeorm91.Column)({ name: "client_commission", type: "integer", default: 0 })
15071
+ (0, import_typeorm92.Column)({ name: "client_commission", type: "integer", default: 0 })
14993
15072
  ], Commission.prototype, "clientCommission", 2);
14994
15073
  Commission = __decorateClass([
14995
- (0, import_typeorm91.Entity)("commissions")
15074
+ (0, import_typeorm92.Entity)("commissions")
14996
15075
  ], Commission);
14997
15076
 
14998
15077
  // src/entities/calendly-meeting-log.entity.ts
14999
- var import_typeorm92 = require("typeorm");
15078
+ var import_typeorm93 = require("typeorm");
15000
15079
  var CalendlyMeetingLog = class extends BaseEntity {
15001
15080
  };
15002
15081
  __decorateClass([
15003
- (0, import_typeorm92.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
15004
- (0, import_typeorm92.Index)()
15082
+ (0, import_typeorm93.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
15083
+ (0, import_typeorm93.Index)()
15005
15084
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
15006
15085
  __decorateClass([
15007
- (0, import_typeorm92.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
15086
+ (0, import_typeorm93.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
15008
15087
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
15009
15088
  __decorateClass([
15010
- (0, import_typeorm92.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15089
+ (0, import_typeorm93.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15011
15090
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
15012
15091
  CalendlyMeetingLog = __decorateClass([
15013
- (0, import_typeorm92.Entity)("calendly_meeting_logs")
15092
+ (0, import_typeorm93.Entity)("calendly_meeting_logs")
15014
15093
  ], CalendlyMeetingLog);
15015
15094
 
15016
15095
  // src/entities/zoom-meeting-log.entity.ts
15017
- var import_typeorm93 = require("typeorm");
15096
+ var import_typeorm94 = require("typeorm");
15018
15097
  var ZoomMeetingLog = class extends BaseEntity {
15019
15098
  };
15020
15099
  __decorateClass([
15021
- (0, import_typeorm93.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
15022
- (0, import_typeorm93.Index)()
15100
+ (0, import_typeorm94.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
15101
+ (0, import_typeorm94.Index)()
15023
15102
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
15024
15103
  __decorateClass([
15025
- (0, import_typeorm93.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
15104
+ (0, import_typeorm94.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
15026
15105
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
15027
15106
  __decorateClass([
15028
- (0, import_typeorm93.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15107
+ (0, import_typeorm94.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15029
15108
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
15030
15109
  ZoomMeetingLog = __decorateClass([
15031
- (0, import_typeorm93.Entity)("zoom_meeting_logs")
15110
+ (0, import_typeorm94.Entity)("zoom_meeting_logs")
15032
15111
  ], ZoomMeetingLog);
15033
15112
 
15034
15113
  // src/entities/docuseal.entity.ts
15035
- var import_typeorm94 = require("typeorm");
15114
+ var import_typeorm95 = require("typeorm");
15036
15115
  var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
15037
15116
  DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
15038
15117
  DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
@@ -15042,132 +15121,132 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
15042
15121
  var DocuSeal = class extends BaseEntity {
15043
15122
  };
15044
15123
  __decorateClass([
15045
- (0, import_typeorm94.Column)({ name: "reference_id", type: "integer", nullable: false }),
15046
- (0, import_typeorm94.Index)()
15124
+ (0, import_typeorm95.Column)({ name: "reference_id", type: "integer", nullable: false }),
15125
+ (0, import_typeorm95.Index)()
15047
15126
  ], DocuSeal.prototype, "referenceId", 2);
15048
15127
  __decorateClass([
15049
- (0, import_typeorm94.Column)({ name: "submitter_id", type: "integer", nullable: true }),
15050
- (0, import_typeorm94.Index)()
15128
+ (0, import_typeorm95.Column)({ name: "submitter_id", type: "integer", nullable: true }),
15129
+ (0, import_typeorm95.Index)()
15051
15130
  ], DocuSeal.prototype, "submitterId", 2);
15052
15131
  __decorateClass([
15053
- (0, import_typeorm94.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
15132
+ (0, import_typeorm95.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
15054
15133
  ], DocuSeal.prototype, "submitterResponse", 2);
15055
15134
  __decorateClass([
15056
- (0, import_typeorm94.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
15135
+ (0, import_typeorm95.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
15057
15136
  ], DocuSeal.prototype, "webhookResponse", 2);
15058
15137
  __decorateClass([
15059
- (0, import_typeorm94.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
15138
+ (0, import_typeorm95.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
15060
15139
  ], DocuSeal.prototype, "type", 2);
15061
15140
  DocuSeal = __decorateClass([
15062
- (0, import_typeorm94.Entity)("docuseal")
15141
+ (0, import_typeorm95.Entity)("docuseal")
15063
15142
  ], DocuSeal);
15064
15143
 
15065
15144
  // src/entities/stripe-logs.entity.ts
15066
- var import_typeorm95 = require("typeorm");
15145
+ var import_typeorm96 = require("typeorm");
15067
15146
  var StripeLog = class extends BaseEntity {
15068
15147
  };
15069
15148
  __decorateClass([
15070
- (0, import_typeorm95.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
15149
+ (0, import_typeorm96.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
15071
15150
  ], StripeLog.prototype, "stripeEventId", 2);
15072
15151
  __decorateClass([
15073
- (0, import_typeorm95.Column)({ name: "event_type", type: "varchar", nullable: true })
15152
+ (0, import_typeorm96.Column)({ name: "event_type", type: "varchar", nullable: true })
15074
15153
  ], StripeLog.prototype, "eventType", 2);
15075
15154
  __decorateClass([
15076
- (0, import_typeorm95.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
15155
+ (0, import_typeorm96.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
15077
15156
  ], StripeLog.prototype, "stripeAccountId", 2);
15078
15157
  __decorateClass([
15079
- (0, import_typeorm95.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15158
+ (0, import_typeorm96.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15080
15159
  ], StripeLog.prototype, "rawWebhookData", 2);
15081
15160
  StripeLog = __decorateClass([
15082
- (0, import_typeorm95.Entity)("stripe_logs")
15161
+ (0, import_typeorm96.Entity)("stripe_logs")
15083
15162
  ], StripeLog);
15084
15163
 
15085
15164
  // src/entities/recommendation-weightage-config.entity.ts
15086
- var import_typeorm96 = require("typeorm");
15165
+ var import_typeorm97 = require("typeorm");
15087
15166
  var RecommendationWeightageConfig = class extends BaseEntity {
15088
15167
  };
15089
15168
  __decorateClass([
15090
- (0, import_typeorm96.Column)({
15169
+ (0, import_typeorm97.Column)({
15091
15170
  type: "varchar",
15092
15171
  length: 100,
15093
15172
  unique: true,
15094
15173
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
15095
15174
  }),
15096
- (0, import_typeorm96.Index)()
15175
+ (0, import_typeorm97.Index)()
15097
15176
  ], RecommendationWeightageConfig.prototype, "key", 2);
15098
15177
  __decorateClass([
15099
- (0, import_typeorm96.Column)({
15178
+ (0, import_typeorm97.Column)({
15100
15179
  type: "jsonb",
15101
15180
  comment: "JSON object containing weight values",
15102
15181
  nullable: true
15103
15182
  })
15104
15183
  ], RecommendationWeightageConfig.prototype, "value", 2);
15105
15184
  __decorateClass([
15106
- (0, import_typeorm96.Column)({ name: "is_active", type: "boolean", default: true })
15185
+ (0, import_typeorm97.Column)({ name: "is_active", type: "boolean", default: true })
15107
15186
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
15108
15187
  RecommendationWeightageConfig = __decorateClass([
15109
- (0, import_typeorm96.Entity)("recommendation_weightage_configs")
15188
+ (0, import_typeorm97.Entity)("recommendation_weightage_configs")
15110
15189
  ], RecommendationWeightageConfig);
15111
15190
 
15112
15191
  // src/entities/global-setting.entity.ts
15113
- var import_typeorm97 = require("typeorm");
15192
+ var import_typeorm98 = require("typeorm");
15114
15193
  var GlobalSetting = class extends BaseEntity {
15115
15194
  };
15116
15195
  __decorateClass([
15117
- (0, import_typeorm97.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
15196
+ (0, import_typeorm98.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
15118
15197
  ], GlobalSetting.prototype, "key", 2);
15119
15198
  __decorateClass([
15120
- (0, import_typeorm97.Column)({ name: "value", type: "text", nullable: false })
15199
+ (0, import_typeorm98.Column)({ name: "value", type: "text", nullable: false })
15121
15200
  ], GlobalSetting.prototype, "value", 2);
15122
15201
  GlobalSetting = __decorateClass([
15123
- (0, import_typeorm97.Entity)("global_settings"),
15124
- (0, import_typeorm97.Index)(["key"], { unique: true })
15202
+ (0, import_typeorm98.Entity)("global_settings"),
15203
+ (0, import_typeorm98.Index)(["key"], { unique: true })
15125
15204
  ], GlobalSetting);
15126
15205
 
15127
15206
  // src/entities/plan.entity.ts
15128
- var import_typeorm100 = require("typeorm");
15207
+ var import_typeorm101 = require("typeorm");
15129
15208
 
15130
15209
  // src/entities/plan-feature.entity.ts
15131
- var import_typeorm98 = require("typeorm");
15210
+ var import_typeorm99 = require("typeorm");
15132
15211
  var PlanFeature = class extends BaseEntity {
15133
15212
  };
15134
15213
  // individual index to find features by plan
15135
15214
  __decorateClass([
15136
- (0, import_typeorm98.Column)({ name: "plan_id", type: "integer", nullable: false }),
15137
- (0, import_typeorm98.Index)()
15215
+ (0, import_typeorm99.Column)({ name: "plan_id", type: "integer", nullable: false }),
15216
+ (0, import_typeorm99.Index)()
15138
15217
  ], PlanFeature.prototype, "planId", 2);
15139
15218
  __decorateClass([
15140
- (0, import_typeorm98.ManyToOne)(() => Plan, (plan) => plan.features, {
15219
+ (0, import_typeorm99.ManyToOne)(() => Plan, (plan) => plan.features, {
15141
15220
  onDelete: "CASCADE",
15142
15221
  nullable: false
15143
15222
  }),
15144
- (0, import_typeorm98.JoinColumn)({ name: "plan_id" })
15223
+ (0, import_typeorm99.JoinColumn)({ name: "plan_id" })
15145
15224
  ], PlanFeature.prototype, "plan", 2);
15146
15225
  __decorateClass([
15147
- (0, import_typeorm98.Column)({ name: "name", type: "varchar", length: 200 })
15226
+ (0, import_typeorm99.Column)({ name: "name", type: "varchar", length: 200 })
15148
15227
  ], PlanFeature.prototype, "name", 2);
15149
15228
  __decorateClass([
15150
- (0, import_typeorm98.Column)({ name: "slug", type: "varchar", length: 100 }),
15151
- (0, import_typeorm98.Index)()
15229
+ (0, import_typeorm99.Column)({ name: "slug", type: "varchar", length: 100 }),
15230
+ (0, import_typeorm99.Index)()
15152
15231
  ], PlanFeature.prototype, "slug", 2);
15153
15232
  __decorateClass([
15154
- (0, import_typeorm98.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15233
+ (0, import_typeorm99.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15155
15234
  ], PlanFeature.prototype, "tooltip", 2);
15156
15235
  __decorateClass([
15157
- (0, import_typeorm98.Column)({ name: "sort_order", type: "smallint", default: 0 })
15236
+ (0, import_typeorm99.Column)({ name: "sort_order", type: "smallint", default: 0 })
15158
15237
  ], PlanFeature.prototype, "sortOrder", 2);
15159
15238
  __decorateClass([
15160
- (0, import_typeorm98.Column)({ name: "is_active", type: "boolean", default: true })
15239
+ (0, import_typeorm99.Column)({ name: "is_active", type: "boolean", default: true })
15161
15240
  ], PlanFeature.prototype, "isActive", 2);
15162
15241
  PlanFeature = __decorateClass([
15163
- (0, import_typeorm98.Entity)("plan_features"),
15164
- (0, import_typeorm98.Index)("idx_plan_features_plan_id", ["planId"]),
15165
- (0, import_typeorm98.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
15166
- (0, import_typeorm98.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
15242
+ (0, import_typeorm99.Entity)("plan_features"),
15243
+ (0, import_typeorm99.Index)("idx_plan_features_plan_id", ["planId"]),
15244
+ (0, import_typeorm99.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
15245
+ (0, import_typeorm99.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
15167
15246
  ], PlanFeature);
15168
15247
 
15169
15248
  // src/entities/plan-pricing.entity.ts
15170
- var import_typeorm99 = require("typeorm");
15249
+ var import_typeorm100 = require("typeorm");
15171
15250
  var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
15172
15251
  PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
15173
15252
  PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
@@ -15222,61 +15301,61 @@ var PlanPricing = class extends BaseEntity {
15222
15301
  };
15223
15302
  // individual index to find pricing by plan
15224
15303
  __decorateClass([
15225
- (0, import_typeorm99.Column)({ name: "plan_id", type: "integer", nullable: false }),
15226
- (0, import_typeorm99.Index)()
15304
+ (0, import_typeorm100.Column)({ name: "plan_id", type: "integer", nullable: false }),
15305
+ (0, import_typeorm100.Index)()
15227
15306
  ], PlanPricing.prototype, "planId", 2);
15228
15307
  __decorateClass([
15229
- (0, import_typeorm99.ManyToOne)(() => Plan, (plan) => plan.pricing, {
15308
+ (0, import_typeorm100.ManyToOne)(() => Plan, (plan) => plan.pricing, {
15230
15309
  onDelete: "CASCADE",
15231
15310
  nullable: false
15232
15311
  }),
15233
- (0, import_typeorm99.JoinColumn)({ name: "plan_id" })
15312
+ (0, import_typeorm100.JoinColumn)({ name: "plan_id" })
15234
15313
  ], PlanPricing.prototype, "plan", 2);
15235
15314
  __decorateClass([
15236
- (0, import_typeorm99.Column)({
15315
+ (0, import_typeorm100.Column)({
15237
15316
  name: "billing_cycle",
15238
15317
  type: "enum",
15239
15318
  enum: PlanPricingBillingCycleEnum
15240
15319
  })
15241
15320
  ], PlanPricing.prototype, "billingCycle", 2);
15242
15321
  __decorateClass([
15243
- (0, import_typeorm99.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
15322
+ (0, import_typeorm100.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
15244
15323
  ], PlanPricing.prototype, "price", 2);
15245
15324
  __decorateClass([
15246
- (0, import_typeorm99.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
15325
+ (0, import_typeorm100.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
15247
15326
  ], PlanPricing.prototype, "originalPrice", 2);
15248
15327
  __decorateClass([
15249
- (0, import_typeorm99.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
15328
+ (0, import_typeorm100.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
15250
15329
  ], PlanPricing.prototype, "discountPct", 2);
15251
15330
  __decorateClass([
15252
- (0, import_typeorm99.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
15331
+ (0, import_typeorm100.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
15253
15332
  ], PlanPricing.prototype, "currency", 2);
15254
15333
  __decorateClass([
15255
- (0, import_typeorm99.Column)({ name: "is_free", type: "boolean", default: false })
15334
+ (0, import_typeorm100.Column)({ name: "is_free", type: "boolean", default: false })
15256
15335
  ], PlanPricing.prototype, "isFree", 2);
15257
15336
  __decorateClass([
15258
- (0, import_typeorm99.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
15337
+ (0, import_typeorm100.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
15259
15338
  ], PlanPricing.prototype, "stripePriceId", 2);
15260
15339
  __decorateClass([
15261
- (0, import_typeorm99.Column)({ name: "trial_days", type: "smallint", default: 0 })
15340
+ (0, import_typeorm100.Column)({ name: "trial_days", type: "smallint", default: 0 })
15262
15341
  ], PlanPricing.prototype, "trialDays", 2);
15263
15342
  __decorateClass([
15264
- (0, import_typeorm99.Column)({ name: "is_active", type: "boolean", default: true })
15343
+ (0, import_typeorm100.Column)({ name: "is_active", type: "boolean", default: true })
15265
15344
  ], PlanPricing.prototype, "isActive", 2);
15266
15345
  __decorateClass([
15267
- (0, import_typeorm99.BeforeInsert)(),
15268
- (0, import_typeorm99.BeforeUpdate)()
15346
+ (0, import_typeorm100.BeforeInsert)(),
15347
+ (0, import_typeorm100.BeforeUpdate)()
15269
15348
  ], PlanPricing.prototype, "sanitize", 1);
15270
15349
  PlanPricing = __decorateClass([
15271
- (0, import_typeorm99.Entity)("plan_pricings"),
15272
- (0, import_typeorm99.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
15273
- (0, import_typeorm99.Index)("idx_plan_pricings_plan_id", ["planId"]),
15274
- (0, import_typeorm99.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
15275
- (0, import_typeorm99.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
15276
- (0, import_typeorm99.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
15277
- (0, import_typeorm99.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
15278
- (0, import_typeorm99.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
15279
- (0, import_typeorm99.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
15350
+ (0, import_typeorm100.Entity)("plan_pricings"),
15351
+ (0, import_typeorm100.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
15352
+ (0, import_typeorm100.Index)("idx_plan_pricings_plan_id", ["planId"]),
15353
+ (0, import_typeorm100.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
15354
+ (0, import_typeorm100.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
15355
+ (0, import_typeorm100.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
15356
+ (0, import_typeorm100.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
15357
+ (0, import_typeorm100.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
15358
+ (0, import_typeorm100.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
15280
15359
  ], PlanPricing);
15281
15360
 
15282
15361
  // src/entities/plan.entity.ts
@@ -15293,22 +15372,22 @@ var Plan = class extends BaseEntity {
15293
15372
  }
15294
15373
  };
15295
15374
  __decorateClass([
15296
- (0, import_typeorm100.Column)({ name: "name", type: "varchar", length: 100 })
15375
+ (0, import_typeorm101.Column)({ name: "name", type: "varchar", length: 100 })
15297
15376
  ], Plan.prototype, "name", 2);
15298
15377
  __decorateClass([
15299
- (0, import_typeorm100.Column)({ name: "slug", type: "varchar", length: 100 })
15378
+ (0, import_typeorm101.Column)({ name: "slug", type: "varchar", length: 100 })
15300
15379
  ], Plan.prototype, "slug", 2);
15301
15380
  __decorateClass([
15302
- (0, import_typeorm100.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
15381
+ (0, import_typeorm101.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
15303
15382
  ], Plan.prototype, "badgeLabel", 2);
15304
15383
  __decorateClass([
15305
- (0, import_typeorm100.Column)({ name: "sort_order", type: "smallint", default: 0 })
15384
+ (0, import_typeorm101.Column)({ name: "sort_order", type: "smallint", default: 0 })
15306
15385
  ], Plan.prototype, "sortOrder", 2);
15307
15386
  __decorateClass([
15308
- (0, import_typeorm100.Column)({ name: "is_active", type: "boolean", default: true })
15387
+ (0, import_typeorm101.Column)({ name: "is_active", type: "boolean", default: true })
15309
15388
  ], Plan.prototype, "isActive", 2);
15310
15389
  __decorateClass([
15311
- (0, import_typeorm100.Column)({
15390
+ (0, import_typeorm101.Column)({
15312
15391
  name: "plan_type",
15313
15392
  type: "enum",
15314
15393
  enum: PlanTypeEnum,
@@ -15316,37 +15395,37 @@ __decorateClass([
15316
15395
  })
15317
15396
  ], Plan.prototype, "planType", 2);
15318
15397
  __decorateClass([
15319
- (0, import_typeorm100.Column)({ name: "metadata", type: "jsonb", default: {} })
15398
+ (0, import_typeorm101.Column)({ name: "metadata", type: "jsonb", default: {} })
15320
15399
  ], Plan.prototype, "metadata", 2);
15321
15400
  __decorateClass([
15322
- (0, import_typeorm100.Column)({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
15401
+ (0, import_typeorm101.Column)({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
15323
15402
  ], Plan.prototype, "stripeProductId", 2);
15324
15403
  __decorateClass([
15325
- (0, import_typeorm100.BeforeInsert)(),
15326
- (0, import_typeorm100.BeforeUpdate)()
15404
+ (0, import_typeorm101.BeforeInsert)(),
15405
+ (0, import_typeorm101.BeforeUpdate)()
15327
15406
  ], Plan.prototype, "createSlug", 1);
15328
15407
  __decorateClass([
15329
- (0, import_typeorm100.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
15408
+ (0, import_typeorm101.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
15330
15409
  cascade: ["insert", "update"]
15331
15410
  })
15332
15411
  ], Plan.prototype, "features", 2);
15333
15412
  __decorateClass([
15334
- (0, import_typeorm100.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
15413
+ (0, import_typeorm101.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
15335
15414
  cascade: ["insert", "update"]
15336
15415
  })
15337
15416
  ], Plan.prototype, "pricing", 2);
15338
15417
  Plan = __decorateClass([
15339
- (0, import_typeorm100.Entity)("plans"),
15340
- (0, import_typeorm100.Index)("idx_plans_slug_plan_type", ["slug", "planType"], {
15418
+ (0, import_typeorm101.Entity)("plans"),
15419
+ (0, import_typeorm101.Index)("idx_plans_slug_plan_type", ["slug", "planType"], {
15341
15420
  unique: true,
15342
15421
  where: '"is_deleted" IS FALSE'
15343
15422
  }),
15344
- (0, import_typeorm100.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
15345
- (0, import_typeorm100.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
15423
+ (0, import_typeorm101.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
15424
+ (0, import_typeorm101.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
15346
15425
  ], Plan);
15347
15426
 
15348
15427
  // src/entities/subscription-feature.entity.ts
15349
- var import_typeorm101 = require("typeorm");
15428
+ var import_typeorm102 = require("typeorm");
15350
15429
  var SubscriptionFeature = class extends BaseEntity {
15351
15430
  toSlug(value) {
15352
15431
  return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
@@ -15361,33 +15440,33 @@ var SubscriptionFeature = class extends BaseEntity {
15361
15440
  }
15362
15441
  };
15363
15442
  __decorateClass([
15364
- (0, import_typeorm101.Column)({ name: "name", type: "varchar", length: 200 })
15443
+ (0, import_typeorm102.Column)({ name: "name", type: "varchar", length: 200 })
15365
15444
  ], SubscriptionFeature.prototype, "name", 2);
15366
15445
  __decorateClass([
15367
- (0, import_typeorm101.Column)({ name: "slug", type: "varchar", length: 100 })
15446
+ (0, import_typeorm102.Column)({ name: "slug", type: "varchar", length: 100 })
15368
15447
  ], SubscriptionFeature.prototype, "slug", 2);
15369
15448
  __decorateClass([
15370
- (0, import_typeorm101.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15449
+ (0, import_typeorm102.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15371
15450
  ], SubscriptionFeature.prototype, "tooltip", 2);
15372
15451
  __decorateClass([
15373
- (0, import_typeorm101.Column)({ name: "sort_order", type: "smallint", default: 0 })
15452
+ (0, import_typeorm102.Column)({ name: "sort_order", type: "smallint", default: 0 })
15374
15453
  ], SubscriptionFeature.prototype, "sortOrder", 2);
15375
15454
  __decorateClass([
15376
- (0, import_typeorm101.Column)({ name: "is_active", type: "boolean", default: true })
15455
+ (0, import_typeorm102.Column)({ name: "is_active", type: "boolean", default: true })
15377
15456
  ], SubscriptionFeature.prototype, "isActive", 2);
15378
15457
  __decorateClass([
15379
- (0, import_typeorm101.BeforeInsert)(),
15380
- (0, import_typeorm101.BeforeUpdate)()
15458
+ (0, import_typeorm102.BeforeInsert)(),
15459
+ (0, import_typeorm102.BeforeUpdate)()
15381
15460
  ], SubscriptionFeature.prototype, "createSlug", 1);
15382
15461
  SubscriptionFeature = __decorateClass([
15383
- (0, import_typeorm101.Entity)("subscription_features"),
15384
- (0, import_typeorm101.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15385
- (0, import_typeorm101.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
15386
- (0, import_typeorm101.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
15462
+ (0, import_typeorm102.Entity)("subscription_features"),
15463
+ (0, import_typeorm102.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15464
+ (0, import_typeorm102.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
15465
+ (0, import_typeorm102.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
15387
15466
  ], SubscriptionFeature);
15388
15467
 
15389
15468
  // src/entities/user-subscription-transaction.entity.ts
15390
- var import_typeorm102 = require("typeorm");
15469
+ var import_typeorm103 = require("typeorm");
15391
15470
  var UserSubscriptionTransactionTypeEnum = /* @__PURE__ */ ((UserSubscriptionTransactionTypeEnum2) => {
15392
15471
  UserSubscriptionTransactionTypeEnum2["SUBSCRIPTION_INITIATED"] = "SUBSCRIPTION_INITIATED";
15393
15472
  UserSubscriptionTransactionTypeEnum2["CHECKOUT_SESSION_CREATED"] = "CHECKOUT_SESSION_CREATED";
@@ -15405,25 +15484,25 @@ var UserSubscriptionTransactionStatusEnum = /* @__PURE__ */ ((UserSubscriptionTr
15405
15484
  var UserSubscriptionTransaction = class extends BaseEntity {
15406
15485
  };
15407
15486
  __decorateClass([
15408
- (0, import_typeorm102.Column)({ name: "user_subscription_id", type: "integer", nullable: false }),
15409
- (0, import_typeorm102.Index)()
15487
+ (0, import_typeorm103.Column)({ name: "user_subscription_id", type: "integer", nullable: false }),
15488
+ (0, import_typeorm103.Index)()
15410
15489
  ], UserSubscriptionTransaction.prototype, "userSubscriptionId", 2);
15411
15490
  __decorateClass([
15412
- (0, import_typeorm102.ManyToOne)(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
15413
- (0, import_typeorm102.JoinColumn)({ name: "user_subscription_id" })
15491
+ (0, import_typeorm103.ManyToOne)(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
15492
+ (0, import_typeorm103.JoinColumn)({ name: "user_subscription_id" })
15414
15493
  ], UserSubscriptionTransaction.prototype, "userSubscription", 2);
15415
15494
  __decorateClass([
15416
- (0, import_typeorm102.Column)({ name: "user_id", type: "integer", nullable: false })
15495
+ (0, import_typeorm103.Column)({ name: "user_id", type: "integer", nullable: false })
15417
15496
  ], UserSubscriptionTransaction.prototype, "userId", 2);
15418
15497
  __decorateClass([
15419
- (0, import_typeorm102.Column)({
15498
+ (0, import_typeorm103.Column)({
15420
15499
  name: "type",
15421
15500
  type: "enum",
15422
15501
  enum: UserSubscriptionTransactionTypeEnum
15423
15502
  })
15424
15503
  ], UserSubscriptionTransaction.prototype, "type", 2);
15425
15504
  __decorateClass([
15426
- (0, import_typeorm102.Column)({
15505
+ (0, import_typeorm103.Column)({
15427
15506
  name: "status",
15428
15507
  type: "enum",
15429
15508
  enum: UserSubscriptionTransactionStatusEnum,
@@ -15431,73 +15510,129 @@ __decorateClass([
15431
15510
  })
15432
15511
  ], UserSubscriptionTransaction.prototype, "status", 2);
15433
15512
  __decorateClass([
15434
- (0, import_typeorm102.Column)({ name: "plan_name", type: "text", nullable: true })
15513
+ (0, import_typeorm103.Column)({ name: "plan_name", type: "text", nullable: true })
15435
15514
  ], UserSubscriptionTransaction.prototype, "planName", 2);
15436
15515
  __decorateClass([
15437
- (0, import_typeorm102.Column)({ name: "amount_minor", type: "integer", nullable: true })
15516
+ (0, import_typeorm103.Column)({ name: "amount_minor", type: "integer", nullable: true })
15438
15517
  ], UserSubscriptionTransaction.prototype, "amountMinor", 2);
15439
15518
  __decorateClass([
15440
- (0, import_typeorm102.Column)({ name: "currency", type: "varchar", length: 3, nullable: true })
15519
+ (0, import_typeorm103.Column)({ name: "currency", type: "varchar", length: 3, nullable: true })
15441
15520
  ], UserSubscriptionTransaction.prototype, "currency", 2);
15442
15521
  __decorateClass([
15443
- (0, import_typeorm102.Column)({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
15522
+ (0, import_typeorm103.Column)({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
15444
15523
  ], UserSubscriptionTransaction.prototype, "stripeEventId", 2);
15445
15524
  __decorateClass([
15446
- (0, import_typeorm102.Column)({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
15525
+ (0, import_typeorm103.Column)({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
15447
15526
  ], UserSubscriptionTransaction.prototype, "stripeEventType", 2);
15448
15527
  __decorateClass([
15449
- (0, import_typeorm102.Column)({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
15528
+ (0, import_typeorm103.Column)({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
15450
15529
  ], UserSubscriptionTransaction.prototype, "stripeSubscriptionId", 2);
15451
15530
  __decorateClass([
15452
- (0, import_typeorm102.Column)({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
15531
+ (0, import_typeorm103.Column)({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
15453
15532
  ], UserSubscriptionTransaction.prototype, "stripeInvoiceId", 2);
15454
15533
  __decorateClass([
15455
- (0, import_typeorm102.Column)({ name: "description", type: "text", nullable: true })
15534
+ (0, import_typeorm103.Column)({ name: "description", type: "text", nullable: true })
15456
15535
  ], UserSubscriptionTransaction.prototype, "description", 2);
15457
15536
  __decorateClass([
15458
- (0, import_typeorm102.Column)({ name: "invoice_url", type: "text", nullable: true })
15537
+ (0, import_typeorm103.Column)({ name: "invoice_url", type: "text", nullable: true })
15459
15538
  ], UserSubscriptionTransaction.prototype, "invoiceUrl", 2);
15460
15539
  __decorateClass([
15461
- (0, import_typeorm102.Column)({ name: "checkout_request_payload", type: "jsonb", nullable: true })
15540
+ (0, import_typeorm103.Column)({ name: "checkout_request_payload", type: "jsonb", nullable: true })
15462
15541
  ], UserSubscriptionTransaction.prototype, "checkoutRequestPayload", 2);
15463
15542
  __decorateClass([
15464
- (0, import_typeorm102.Column)({ name: "checkout_response_payload", type: "jsonb", nullable: true })
15543
+ (0, import_typeorm103.Column)({ name: "checkout_response_payload", type: "jsonb", nullable: true })
15465
15544
  ], UserSubscriptionTransaction.prototype, "checkoutResponsePayload", 2);
15466
15545
  __decorateClass([
15467
- (0, import_typeorm102.Column)({ name: "webhook_payload", type: "jsonb", nullable: true })
15546
+ (0, import_typeorm103.Column)({ name: "webhook_payload", type: "jsonb", nullable: true })
15468
15547
  ], UserSubscriptionTransaction.prototype, "webhookPayload", 2);
15469
15548
  __decorateClass([
15470
- (0, import_typeorm102.Column)({ name: "metadata", type: "jsonb", nullable: true, default: {} })
15549
+ (0, import_typeorm103.Column)({ name: "metadata", type: "jsonb", nullable: true, default: {} })
15471
15550
  ], UserSubscriptionTransaction.prototype, "metadata", 2);
15472
15551
  UserSubscriptionTransaction = __decorateClass([
15473
- (0, import_typeorm102.Entity)("user_subscription_transactions"),
15474
- (0, import_typeorm102.Index)("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
15475
- (0, import_typeorm102.Index)("idx_user_sub_tx_user_id", ["userId"]),
15476
- (0, import_typeorm102.Index)("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
15552
+ (0, import_typeorm103.Entity)("user_subscription_transactions"),
15553
+ (0, import_typeorm103.Index)("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
15554
+ (0, import_typeorm103.Index)("idx_user_sub_tx_user_id", ["userId"]),
15555
+ (0, import_typeorm103.Index)("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
15477
15556
  ], UserSubscriptionTransaction);
15478
15557
 
15479
15558
  // src/entities/vendor-api-configuration.entity.ts
15480
- var import_typeorm103 = require("typeorm");
15559
+ var import_typeorm104 = require("typeorm");
15481
15560
  var VendorApiConfiguration = class extends BaseEntity {
15482
15561
  };
15483
15562
  __decorateClass([
15484
- (0, import_typeorm103.Column)({ name: "vendor_name", type: "varchar", length: 255 })
15563
+ (0, import_typeorm104.Column)({ name: "vendor_name", type: "varchar", length: 255 })
15485
15564
  ], VendorApiConfiguration.prototype, "vendorName", 2);
15486
15565
  __decorateClass([
15487
- (0, import_typeorm103.Column)({ name: "vendor_api_key", type: "varchar", length: 255 })
15566
+ (0, import_typeorm104.Column)({ name: "vendor_api_key", type: "varchar", length: 255 })
15488
15567
  ], VendorApiConfiguration.prototype, "vendorApiKey", 2);
15489
15568
  __decorateClass([
15490
- (0, import_typeorm103.Column)({ name: "vendor_api_secret_key", type: "text" })
15569
+ (0, import_typeorm104.Column)({ name: "vendor_api_secret_key", type: "text" })
15491
15570
  ], VendorApiConfiguration.prototype, "vendorApiSecretKey", 2);
15492
15571
  __decorateClass([
15493
- (0, import_typeorm103.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
15572
+ (0, import_typeorm104.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
15494
15573
  ], VendorApiConfiguration.prototype, "slug", 2);
15495
15574
  __decorateClass([
15496
- (0, import_typeorm103.Column)({ name: "is_active", type: "boolean", default: true })
15575
+ (0, import_typeorm104.Column)({ name: "is_active", type: "boolean", default: true })
15497
15576
  ], VendorApiConfiguration.prototype, "isActive", 2);
15498
15577
  VendorApiConfiguration = __decorateClass([
15499
- (0, import_typeorm103.Entity)("vendor_api_configurations")
15578
+ (0, import_typeorm104.Entity)("vendor_api_configurations")
15500
15579
  ], VendorApiConfiguration);
15580
+
15581
+ // src/entities/ekyc-verification-log.entity.ts
15582
+ var import_typeorm105 = require("typeorm");
15583
+ var EkycVerificationLogStatusEnum = /* @__PURE__ */ ((EkycVerificationLogStatusEnum2) => {
15584
+ EkycVerificationLogStatusEnum2["NOT_STARTED"] = "NOT_STARTED";
15585
+ EkycVerificationLogStatusEnum2["NOT_FINISHED"] = "NOT_FINISHED";
15586
+ EkycVerificationLogStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
15587
+ EkycVerificationLogStatusEnum2["APPROVED"] = "APPROVED";
15588
+ EkycVerificationLogStatusEnum2["DECLINED"] = "DECLINED";
15589
+ EkycVerificationLogStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
15590
+ EkycVerificationLogStatusEnum2["EXPIRED"] = "EXPIRED";
15591
+ EkycVerificationLogStatusEnum2["KYC_EXPIRED"] = "KYC_EXPIRED";
15592
+ EkycVerificationLogStatusEnum2["ABANDONED"] = "ABANDONED";
15593
+ EkycVerificationLogStatusEnum2["RESUBMITTED"] = "RESUBMITTED";
15594
+ EkycVerificationLogStatusEnum2["AWAITING_USER"] = "AWAITING_USER";
15595
+ return EkycVerificationLogStatusEnum2;
15596
+ })(EkycVerificationLogStatusEnum || {});
15597
+ var EkycVerifcationLog = class {
15598
+ };
15599
+ __decorateClass([
15600
+ (0, import_typeorm105.PrimaryGeneratedColumn)("increment", { type: "integer" })
15601
+ ], EkycVerifcationLog.prototype, "id", 2);
15602
+ __decorateClass([
15603
+ (0, import_typeorm105.Column)({ name: "session_id", type: "varchar", unique: true })
15604
+ ], EkycVerifcationLog.prototype, "sessionId", 2);
15605
+ __decorateClass([
15606
+ (0, import_typeorm105.Column)({ name: "workflow_id", type: "varchar", unique: true })
15607
+ ], EkycVerifcationLog.prototype, "workflowId", 2);
15608
+ __decorateClass([
15609
+ (0, import_typeorm105.Column)({ name: "callback_url", type: "varchar", unique: true })
15610
+ ], EkycVerifcationLog.prototype, "callBackUrl", 2);
15611
+ __decorateClass([
15612
+ (0, import_typeorm105.Column)({
15613
+ type: "enum",
15614
+ enum: EkycVerificationLogStatusEnum,
15615
+ nullable: true
15616
+ })
15617
+ ], EkycVerifcationLog.prototype, "status", 2);
15618
+ __decorateClass([
15619
+ (0, import_typeorm105.Column)({ name: "signature_method", type: "varchar", nullable: true })
15620
+ ], EkycVerifcationLog.prototype, "signatureMethod", 2);
15621
+ __decorateClass([
15622
+ (0, import_typeorm105.Column)({ name: "is_signature_valid", type: "boolean", default: false })
15623
+ ], EkycVerifcationLog.prototype, "isSignatureValid", 2);
15624
+ __decorateClass([
15625
+ (0, import_typeorm105.Column)({ name: "raw_payload", type: "text", nullable: true })
15626
+ ], EkycVerifcationLog.prototype, "rawPayload", 2);
15627
+ __decorateClass([
15628
+ (0, import_typeorm105.Column)({ name: "headers", type: "jsonb", nullable: true })
15629
+ ], EkycVerifcationLog.prototype, "headers", 2);
15630
+ __decorateClass([
15631
+ (0, import_typeorm105.Column)({ name: "error_message", type: "text", nullable: true })
15632
+ ], EkycVerifcationLog.prototype, "errorMessage", 2);
15633
+ EkycVerifcationLog = __decorateClass([
15634
+ (0, import_typeorm105.Entity)("ekyc_verification_logs")
15635
+ ], EkycVerifcationLog);
15501
15636
  // Annotate the CommonJS export names for ESM import in node:
15502
15637
  0 && (module.exports = {
15503
15638
  ADMIN_FREELANCER_PATTERN,
@@ -15651,6 +15786,10 @@ VendorApiConfiguration = __decorateClass([
15651
15786
  DurationTypeEnum,
15652
15787
  EMAIL_PATTERN,
15653
15788
  EducationDto,
15789
+ EkycVerifcationLog,
15790
+ EkycVerificationLogStatusEnum,
15791
+ EkycVerificationSession,
15792
+ EkycVerificationSessionStatusEnum,
15654
15793
  EscrowFundContractDto,
15655
15794
  EscrowWallet,
15656
15795
  EscrowWalletTransaction,