@experts_hub/shared 1.0.731 → 1.0.733

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