@experts_hub/shared 1.0.732 → 1.0.733

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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
@@ -14492,11 +14555,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
14492
14555
  };
14493
14556
 
14494
14557
  // src/entities/sequence-generator.entity.ts
14495
- var import_typeorm81 = require("typeorm");
14558
+ var import_typeorm82 = require("typeorm");
14496
14559
  var SequenceGenerator = class extends BaseEntity {
14497
14560
  };
14498
14561
  __decorateClass([
14499
- (0, import_typeorm81.Column)({
14562
+ (0, import_typeorm82.Column)({
14500
14563
  name: "module",
14501
14564
  type: "varchar",
14502
14565
  length: 50,
@@ -14505,7 +14568,7 @@ __decorateClass([
14505
14568
  })
14506
14569
  ], SequenceGenerator.prototype, "module", 2);
14507
14570
  __decorateClass([
14508
- (0, import_typeorm81.Column)({
14571
+ (0, import_typeorm82.Column)({
14509
14572
  name: "prefix",
14510
14573
  type: "varchar",
14511
14574
  length: 10,
@@ -14514,7 +14577,7 @@ __decorateClass([
14514
14577
  })
14515
14578
  ], SequenceGenerator.prototype, "prefix", 2);
14516
14579
  __decorateClass([
14517
- (0, import_typeorm81.Column)({
14580
+ (0, import_typeorm82.Column)({
14518
14581
  name: "last_sequence",
14519
14582
  type: "int",
14520
14583
  nullable: false,
@@ -14522,7 +14585,7 @@ __decorateClass([
14522
14585
  })
14523
14586
  ], SequenceGenerator.prototype, "lastSequence", 2);
14524
14587
  __decorateClass([
14525
- (0, import_typeorm81.Column)({
14588
+ (0, import_typeorm82.Column)({
14526
14589
  name: "year",
14527
14590
  type: "int",
14528
14591
  nullable: true,
@@ -14530,11 +14593,11 @@ __decorateClass([
14530
14593
  })
14531
14594
  ], SequenceGenerator.prototype, "year", 2);
14532
14595
  SequenceGenerator = __decorateClass([
14533
- (0, import_typeorm81.Entity)("sequence_generators")
14596
+ (0, import_typeorm82.Entity)("sequence_generators")
14534
14597
  ], SequenceGenerator);
14535
14598
 
14536
14599
  // src/entities/question.entity.ts
14537
- var import_typeorm82 = require("typeorm");
14600
+ var import_typeorm83 = require("typeorm");
14538
14601
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
14539
14602
  QuestionFor2["CLIENT"] = "CLIENT";
14540
14603
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -14543,16 +14606,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
14543
14606
  var Question = class extends BaseEntity {
14544
14607
  };
14545
14608
  __decorateClass([
14546
- (0, import_typeorm82.Column)({ name: "question", type: "varchar" })
14609
+ (0, import_typeorm83.Column)({ name: "question", type: "varchar" })
14547
14610
  ], Question.prototype, "question", 2);
14548
14611
  __decorateClass([
14549
- (0, import_typeorm82.Column)({ name: "hint", type: "varchar", nullable: true })
14612
+ (0, import_typeorm83.Column)({ name: "hint", type: "varchar", nullable: true })
14550
14613
  ], Question.prototype, "hint", 2);
14551
14614
  __decorateClass([
14552
- (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 })
14553
14616
  ], Question.prototype, "slug", 2);
14554
14617
  __decorateClass([
14555
- (0, import_typeorm82.Column)({
14618
+ (0, import_typeorm83.Column)({
14556
14619
  name: "question_for",
14557
14620
  type: "enum",
14558
14621
  enum: QuestionFor,
@@ -14560,45 +14623,45 @@ __decorateClass([
14560
14623
  })
14561
14624
  ], Question.prototype, "questionFor", 2);
14562
14625
  __decorateClass([
14563
- (0, import_typeorm82.Column)({ name: "type", type: "varchar", nullable: true })
14626
+ (0, import_typeorm83.Column)({ name: "type", type: "varchar", nullable: true })
14564
14627
  ], Question.prototype, "type", 2);
14565
14628
  __decorateClass([
14566
- (0, import_typeorm82.Column)({ name: "options", type: "jsonb", nullable: true })
14629
+ (0, import_typeorm83.Column)({ name: "options", type: "jsonb", nullable: true })
14567
14630
  ], Question.prototype, "options", 2);
14568
14631
  __decorateClass([
14569
- (0, import_typeorm82.Column)({ name: "is_active", type: "boolean", default: false })
14632
+ (0, import_typeorm83.Column)({ name: "is_active", type: "boolean", default: false })
14570
14633
  ], Question.prototype, "isActive", 2);
14571
14634
  Question = __decorateClass([
14572
- (0, import_typeorm82.Entity)("questions")
14635
+ (0, import_typeorm83.Entity)("questions")
14573
14636
  ], Question);
14574
14637
 
14575
14638
  // src/entities/skill.entity.ts
14576
- var import_typeorm83 = require("typeorm");
14639
+ var import_typeorm84 = require("typeorm");
14577
14640
  var Skill = class extends BaseEntity {
14578
14641
  };
14579
14642
  __decorateClass([
14580
- (0, import_typeorm83.Column)({ name: "name", type: "varchar", nullable: true })
14643
+ (0, import_typeorm84.Column)({ name: "name", type: "varchar", nullable: true })
14581
14644
  ], Skill.prototype, "name", 2);
14582
14645
  __decorateClass([
14583
- (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 })
14584
14647
  ], Skill.prototype, "slug", 2);
14585
14648
  __decorateClass([
14586
- (0, import_typeorm83.Column)({ name: "is_active", type: "boolean", default: false })
14649
+ (0, import_typeorm84.Column)({ name: "is_active", type: "boolean", default: false })
14587
14650
  ], Skill.prototype, "isActive", 2);
14588
14651
  Skill = __decorateClass([
14589
- (0, import_typeorm83.Entity)("skills")
14652
+ (0, import_typeorm84.Entity)("skills")
14590
14653
  ], Skill);
14591
14654
 
14592
14655
  // src/entities/skill-catalog.entity.ts
14593
- var import_typeorm84 = require("typeorm");
14656
+ var import_typeorm85 = require("typeorm");
14594
14657
  var SkillCatalog = class extends BaseEntity {
14595
14658
  };
14596
14659
  __decorateClass([
14597
- (0, import_typeorm84.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14598
- (0, import_typeorm84.Index)()
14660
+ (0, import_typeorm85.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14661
+ (0, import_typeorm85.Index)()
14599
14662
  ], SkillCatalog.prototype, "canonicalName", 2);
14600
14663
  __decorateClass([
14601
- (0, import_typeorm84.Column)({
14664
+ (0, import_typeorm85.Column)({
14602
14665
  name: "aliases",
14603
14666
  type: "text",
14604
14667
  array: true,
@@ -14606,20 +14669,20 @@ __decorateClass([
14606
14669
  })
14607
14670
  ], SkillCatalog.prototype, "aliases", 2);
14608
14671
  __decorateClass([
14609
- (0, import_typeorm84.Column)({
14672
+ (0, import_typeorm85.Column)({
14610
14673
  name: "variations",
14611
14674
  type: "jsonb",
14612
14675
  default: "{}"
14613
14676
  })
14614
14677
  ], SkillCatalog.prototype, "variations", 2);
14615
14678
  __decorateClass([
14616
- (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 })
14617
14680
  ], SkillCatalog.prototype, "category", 2);
14618
14681
  __decorateClass([
14619
- (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 })
14620
14683
  ], SkillCatalog.prototype, "parentSkill", 2);
14621
14684
  __decorateClass([
14622
- (0, import_typeorm84.Column)({
14685
+ (0, import_typeorm85.Column)({
14623
14686
  name: "related_skills",
14624
14687
  type: "text",
14625
14688
  array: true,
@@ -14627,68 +14690,68 @@ __decorateClass([
14627
14690
  })
14628
14691
  ], SkillCatalog.prototype, "relatedSkills", 2);
14629
14692
  __decorateClass([
14630
- (0, import_typeorm84.Column)({ name: "usage_count", type: "integer", default: 0 }),
14631
- (0, import_typeorm84.Index)()
14693
+ (0, import_typeorm85.Column)({ name: "usage_count", type: "integer", default: 0 }),
14694
+ (0, import_typeorm85.Index)()
14632
14695
  ], SkillCatalog.prototype, "usageCount", 2);
14633
14696
  __decorateClass([
14634
- (0, import_typeorm84.Column)({ name: "is_verified", type: "boolean", default: false })
14697
+ (0, import_typeorm85.Column)({ name: "is_verified", type: "boolean", default: false })
14635
14698
  ], SkillCatalog.prototype, "isVerified", 2);
14636
14699
  __decorateClass([
14637
- (0, import_typeorm84.Column)({ name: "first_seen_date", type: "date" })
14700
+ (0, import_typeorm85.Column)({ name: "first_seen_date", type: "date" })
14638
14701
  ], SkillCatalog.prototype, "firstSeenDate", 2);
14639
14702
  __decorateClass([
14640
- (0, import_typeorm84.Column)({ name: "last_updated_date", type: "date" })
14703
+ (0, import_typeorm85.Column)({ name: "last_updated_date", type: "date" })
14641
14704
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
14642
14705
  __decorateClass([
14643
- (0, import_typeorm84.Column)({
14706
+ (0, import_typeorm85.Column)({
14644
14707
  name: "search_vector",
14645
14708
  type: "tsvector",
14646
14709
  nullable: true
14647
14710
  })
14648
14711
  ], SkillCatalog.prototype, "searchVector", 2);
14649
14712
  SkillCatalog = __decorateClass([
14650
- (0, import_typeorm84.Entity)("skill_catalogs")
14713
+ (0, import_typeorm85.Entity)("skill_catalogs")
14651
14714
  ], SkillCatalog);
14652
14715
 
14653
14716
  // src/entities/job-role.entity.ts
14654
- var import_typeorm85 = require("typeorm");
14717
+ var import_typeorm86 = require("typeorm");
14655
14718
  var JobRoles = class extends BaseEntity {
14656
14719
  };
14657
14720
  __decorateClass([
14658
- (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 })
14659
14722
  ], JobRoles.prototype, "slug", 2);
14660
14723
  __decorateClass([
14661
- (0, import_typeorm85.Column)({ name: "name", type: "varchar", nullable: true })
14724
+ (0, import_typeorm86.Column)({ name: "name", type: "varchar", nullable: true })
14662
14725
  ], JobRoles.prototype, "name", 2);
14663
14726
  __decorateClass([
14664
- (0, import_typeorm85.Column)({ name: "is_active", type: "boolean", default: true })
14727
+ (0, import_typeorm86.Column)({ name: "is_active", type: "boolean", default: true })
14665
14728
  ], JobRoles.prototype, "isActive", 2);
14666
14729
  JobRoles = __decorateClass([
14667
- (0, import_typeorm85.Entity)("job_roles")
14730
+ (0, import_typeorm86.Entity)("job_roles")
14668
14731
  ], JobRoles);
14669
14732
 
14670
14733
  // src/entities/cms.entity.ts
14671
- var import_typeorm86 = require("typeorm");
14734
+ var import_typeorm87 = require("typeorm");
14672
14735
  var Cms = class extends BaseEntity {
14673
14736
  };
14674
14737
  __decorateClass([
14675
- (0, import_typeorm86.Column)({ name: "title", type: "varchar", nullable: true })
14738
+ (0, import_typeorm87.Column)({ name: "title", type: "varchar", nullable: true })
14676
14739
  ], Cms.prototype, "title", 2);
14677
14740
  __decorateClass([
14678
- (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 })
14679
14742
  ], Cms.prototype, "slug", 2);
14680
14743
  __decorateClass([
14681
- (0, import_typeorm86.Column)({ name: "content", type: "varchar", nullable: true })
14744
+ (0, import_typeorm87.Column)({ name: "content", type: "varchar", nullable: true })
14682
14745
  ], Cms.prototype, "content", 2);
14683
14746
  __decorateClass([
14684
- (0, import_typeorm86.Column)({ name: "is_active", type: "boolean", default: true })
14747
+ (0, import_typeorm87.Column)({ name: "is_active", type: "boolean", default: true })
14685
14748
  ], Cms.prototype, "isActive", 2);
14686
14749
  Cms = __decorateClass([
14687
- (0, import_typeorm86.Entity)("cms")
14750
+ (0, import_typeorm87.Entity)("cms")
14688
14751
  ], Cms);
14689
14752
 
14690
14753
  // src/entities/lead.entity.ts
14691
- var import_typeorm87 = require("typeorm");
14754
+ var import_typeorm88 = require("typeorm");
14692
14755
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14693
14756
  CategoryEmum2["BUSINESS"] = "BUSINESS";
14694
14757
  CategoryEmum2["FREELANCER"] = "FREELANCER";
@@ -14697,22 +14760,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14697
14760
  var Lead = class extends BaseEntity {
14698
14761
  };
14699
14762
  __decorateClass([
14700
- (0, import_typeorm87.Column)({ name: "name", type: "varchar", nullable: true })
14763
+ (0, import_typeorm88.Column)({ name: "name", type: "varchar", nullable: true })
14701
14764
  ], Lead.prototype, "name", 2);
14702
14765
  __decorateClass([
14703
- (0, import_typeorm87.Column)({ name: "mobile_code", type: "varchar", nullable: true })
14766
+ (0, import_typeorm88.Column)({ name: "mobile_code", type: "varchar", nullable: true })
14704
14767
  ], Lead.prototype, "mobileCode", 2);
14705
14768
  __decorateClass([
14706
- (0, import_typeorm87.Column)({ name: "mobile", type: "varchar", nullable: true })
14769
+ (0, import_typeorm88.Column)({ name: "mobile", type: "varchar", nullable: true })
14707
14770
  ], Lead.prototype, "mobile", 2);
14708
14771
  __decorateClass([
14709
- (0, import_typeorm87.Column)({ name: "email", type: "varchar", nullable: true })
14772
+ (0, import_typeorm88.Column)({ name: "email", type: "varchar", nullable: true })
14710
14773
  ], Lead.prototype, "email", 2);
14711
14774
  __decorateClass([
14712
- (0, import_typeorm87.Column)({ name: "description", type: "varchar", nullable: true })
14775
+ (0, import_typeorm88.Column)({ name: "description", type: "varchar", nullable: true })
14713
14776
  ], Lead.prototype, "description", 2);
14714
14777
  __decorateClass([
14715
- (0, import_typeorm87.Column)({
14778
+ (0, import_typeorm88.Column)({
14716
14779
  name: "category",
14717
14780
  type: "enum",
14718
14781
  enum: CategoryEmum,
@@ -14720,129 +14783,129 @@ __decorateClass([
14720
14783
  })
14721
14784
  ], Lead.prototype, "category", 2);
14722
14785
  Lead = __decorateClass([
14723
- (0, import_typeorm87.Entity)("leads")
14786
+ (0, import_typeorm88.Entity)("leads")
14724
14787
  ], Lead);
14725
14788
 
14726
14789
  // src/entities/job-freelancer-recommendation.entity.ts
14727
- var import_typeorm88 = require("typeorm");
14790
+ var import_typeorm89 = require("typeorm");
14728
14791
  var JobFreelancerRecommendation = class {
14729
14792
  };
14730
14793
  __decorateClass([
14731
- (0, import_typeorm88.ViewColumn)({ name: "job_id" })
14794
+ (0, import_typeorm89.ViewColumn)({ name: "job_id" })
14732
14795
  ], JobFreelancerRecommendation.prototype, "jobId", 2);
14733
14796
  __decorateClass([
14734
- (0, import_typeorm88.ViewColumn)({ name: "job_uuid" })
14797
+ (0, import_typeorm89.ViewColumn)({ name: "job_uuid" })
14735
14798
  ], JobFreelancerRecommendation.prototype, "jobUuid", 2);
14736
14799
  __decorateClass([
14737
- (0, import_typeorm88.ViewColumn)({ name: "job_unique_id" })
14800
+ (0, import_typeorm89.ViewColumn)({ name: "job_unique_id" })
14738
14801
  ], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
14739
14802
  __decorateClass([
14740
- (0, import_typeorm88.ViewColumn)({ name: "job_role" })
14803
+ (0, import_typeorm89.ViewColumn)({ name: "job_role" })
14741
14804
  ], JobFreelancerRecommendation.prototype, "jobRole", 2);
14742
14805
  __decorateClass([
14743
- (0, import_typeorm88.ViewColumn)({ name: "job_openings" })
14806
+ (0, import_typeorm89.ViewColumn)({ name: "job_openings" })
14744
14807
  ], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
14745
14808
  __decorateClass([
14746
- (0, import_typeorm88.ViewColumn)({ name: "job_location" })
14809
+ (0, import_typeorm89.ViewColumn)({ name: "job_location" })
14747
14810
  ], JobFreelancerRecommendation.prototype, "jobLocation", 2);
14748
14811
  __decorateClass([
14749
- (0, import_typeorm88.ViewColumn)({ name: "job_currency" })
14812
+ (0, import_typeorm89.ViewColumn)({ name: "job_currency" })
14750
14813
  ], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
14751
14814
  __decorateClass([
14752
- (0, import_typeorm88.ViewColumn)({ name: "job_salary_from" })
14815
+ (0, import_typeorm89.ViewColumn)({ name: "job_salary_from" })
14753
14816
  ], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
14754
14817
  __decorateClass([
14755
- (0, import_typeorm88.ViewColumn)({ name: "job_salary_to" })
14818
+ (0, import_typeorm89.ViewColumn)({ name: "job_salary_to" })
14756
14819
  ], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
14757
14820
  __decorateClass([
14758
- (0, import_typeorm88.ViewColumn)({ name: "job_employment_type" })
14821
+ (0, import_typeorm89.ViewColumn)({ name: "job_employment_type" })
14759
14822
  ], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
14760
14823
  __decorateClass([
14761
- (0, import_typeorm88.ViewColumn)({ name: "application_received" })
14824
+ (0, import_typeorm89.ViewColumn)({ name: "application_received" })
14762
14825
  ], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
14763
14826
  __decorateClass([
14764
- (0, import_typeorm88.ViewColumn)({ name: "job_posted_at" })
14827
+ (0, import_typeorm89.ViewColumn)({ name: "job_posted_at" })
14765
14828
  ], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
14766
14829
  __decorateClass([
14767
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_id" })
14830
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_id" })
14768
14831
  ], JobFreelancerRecommendation.prototype, "freelancerId", 2);
14769
14832
  __decorateClass([
14770
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_uuid" })
14833
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_uuid" })
14771
14834
  ], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
14772
14835
  __decorateClass([
14773
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_unique_id" })
14836
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_unique_id" })
14774
14837
  ], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
14775
14838
  __decorateClass([
14776
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_first_name" })
14839
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_first_name" })
14777
14840
  ], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
14778
14841
  __decorateClass([
14779
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_last_name" })
14842
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_last_name" })
14780
14843
  ], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
14781
14844
  __decorateClass([
14782
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_email" })
14845
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_email" })
14783
14846
  ], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
14784
14847
  __decorateClass([
14785
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_profile_picture" })
14848
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_profile_picture" })
14786
14849
  ], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
14787
14850
  __decorateClass([
14788
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_is_social" })
14851
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_is_social" })
14789
14852
  ], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
14790
14853
  __decorateClass([
14791
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_created_at" })
14854
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_created_at" })
14792
14855
  ], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
14793
14856
  __decorateClass([
14794
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_designation" })
14857
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_designation" })
14795
14858
  ], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
14796
14859
  __decorateClass([
14797
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_experience" })
14860
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_experience" })
14798
14861
  ], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
14799
14862
  __decorateClass([
14800
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_expertshub_verified" })
14863
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_expertshub_verified" })
14801
14864
  ], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
14802
14865
  __decorateClass([
14803
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_hourly_compensation" })
14866
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_hourly_compensation" })
14804
14867
  ], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
14805
14868
  __decorateClass([
14806
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_country_name" })
14869
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_country_name" })
14807
14870
  ], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
14808
14871
  __decorateClass([
14809
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_country_iso_code" })
14872
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_country_iso_code" })
14810
14873
  ], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
14811
14874
  __decorateClass([
14812
- (0, import_typeorm88.ViewColumn)({ name: "client_id" })
14875
+ (0, import_typeorm89.ViewColumn)({ name: "client_id" })
14813
14876
  ], JobFreelancerRecommendation.prototype, "clientId", 2);
14814
14877
  __decorateClass([
14815
- (0, import_typeorm88.ViewColumn)({ name: "client_uuid" })
14878
+ (0, import_typeorm89.ViewColumn)({ name: "client_uuid" })
14816
14879
  ], JobFreelancerRecommendation.prototype, "clientUuid", 2);
14817
14880
  __decorateClass([
14818
- (0, import_typeorm88.ViewColumn)({ name: "client_first_name" })
14881
+ (0, import_typeorm89.ViewColumn)({ name: "client_first_name" })
14819
14882
  ], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
14820
14883
  __decorateClass([
14821
- (0, import_typeorm88.ViewColumn)({ name: "client_last_name" })
14884
+ (0, import_typeorm89.ViewColumn)({ name: "client_last_name" })
14822
14885
  ], JobFreelancerRecommendation.prototype, "clientLastName", 2);
14823
14886
  __decorateClass([
14824
- (0, import_typeorm88.ViewColumn)({ name: "client_email" })
14887
+ (0, import_typeorm89.ViewColumn)({ name: "client_email" })
14825
14888
  ], JobFreelancerRecommendation.prototype, "clientEmail", 2);
14826
14889
  __decorateClass([
14827
- (0, import_typeorm88.ViewColumn)({ name: "client_company_logo" })
14890
+ (0, import_typeorm89.ViewColumn)({ name: "client_company_logo" })
14828
14891
  ], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
14829
14892
  __decorateClass([
14830
- (0, import_typeorm88.ViewColumn)({ name: "client_company_name" })
14893
+ (0, import_typeorm89.ViewColumn)({ name: "client_company_name" })
14831
14894
  ], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
14832
14895
  __decorateClass([
14833
- (0, import_typeorm88.ViewColumn)({ name: "matching_skills" })
14896
+ (0, import_typeorm89.ViewColumn)({ name: "matching_skills" })
14834
14897
  ], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
14835
14898
  __decorateClass([
14836
- (0, import_typeorm88.ViewColumn)({ name: "matching_skills_count" })
14899
+ (0, import_typeorm89.ViewColumn)({ name: "matching_skills_count" })
14837
14900
  ], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
14838
14901
  __decorateClass([
14839
- (0, import_typeorm88.ViewColumn)({ name: "required_skills" })
14902
+ (0, import_typeorm89.ViewColumn)({ name: "required_skills" })
14840
14903
  ], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
14841
14904
  __decorateClass([
14842
- (0, import_typeorm88.ViewColumn)({ name: "required_skills_count" })
14905
+ (0, import_typeorm89.ViewColumn)({ name: "required_skills_count" })
14843
14906
  ], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
14844
14907
  JobFreelancerRecommendation = __decorateClass([
14845
- (0, import_typeorm88.ViewEntity)({
14908
+ (0, import_typeorm89.ViewEntity)({
14846
14909
  name: "job_freelancer_recommendations",
14847
14910
  materialized: true,
14848
14911
  synchronize: false
@@ -14851,32 +14914,32 @@ JobFreelancerRecommendation = __decorateClass([
14851
14914
  ], JobFreelancerRecommendation);
14852
14915
 
14853
14916
  // src/entities/job-freelancer-recommendation-v2.entity.ts
14854
- var import_typeorm89 = require("typeorm");
14917
+ var import_typeorm90 = require("typeorm");
14855
14918
  var JobFreelancerRecommendationV2 = class {
14856
14919
  };
14857
14920
  __decorateClass([
14858
- (0, import_typeorm89.ViewColumn)({ name: "job_id" })
14921
+ (0, import_typeorm90.ViewColumn)({ name: "job_id" })
14859
14922
  ], JobFreelancerRecommendationV2.prototype, "jobId", 2);
14860
14923
  __decorateClass([
14861
- (0, import_typeorm89.ViewColumn)({ name: "job_owner_id" })
14924
+ (0, import_typeorm90.ViewColumn)({ name: "job_owner_id" })
14862
14925
  ], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
14863
14926
  __decorateClass([
14864
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_id" })
14927
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_id" })
14865
14928
  ], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
14866
14929
  __decorateClass([
14867
- (0, import_typeorm89.ViewColumn)({ name: "matching_skills" })
14930
+ (0, import_typeorm90.ViewColumn)({ name: "matching_skills" })
14868
14931
  ], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
14869
14932
  __decorateClass([
14870
- (0, import_typeorm89.ViewColumn)({ name: "matching_skills_count" })
14933
+ (0, import_typeorm90.ViewColumn)({ name: "matching_skills_count" })
14871
14934
  ], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
14872
14935
  __decorateClass([
14873
- (0, import_typeorm89.ViewColumn)({ name: "required_skills" })
14936
+ (0, import_typeorm90.ViewColumn)({ name: "required_skills" })
14874
14937
  ], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
14875
14938
  __decorateClass([
14876
- (0, import_typeorm89.ViewColumn)({ name: "required_skills_count" })
14939
+ (0, import_typeorm90.ViewColumn)({ name: "required_skills_count" })
14877
14940
  ], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
14878
14941
  JobFreelancerRecommendationV2 = __decorateClass([
14879
- (0, import_typeorm89.ViewEntity)({
14942
+ (0, import_typeorm90.ViewEntity)({
14880
14943
  name: "job_freelancer_recommendations_v2",
14881
14944
  materialized: true,
14882
14945
  synchronize: false
@@ -14885,74 +14948,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
14885
14948
  ], JobFreelancerRecommendationV2);
14886
14949
 
14887
14950
  // src/entities/client-freelancer-recommendation.entity.ts
14888
- var import_typeorm90 = require("typeorm");
14951
+ var import_typeorm91 = require("typeorm");
14889
14952
  var ClientFreelancerRecommendation = class {
14890
14953
  };
14891
14954
  __decorateClass([
14892
- (0, import_typeorm90.ViewColumn)({ name: "client_id" })
14955
+ (0, import_typeorm91.ViewColumn)({ name: "client_id" })
14893
14956
  ], ClientFreelancerRecommendation.prototype, "clientId", 2);
14894
14957
  __decorateClass([
14895
- (0, import_typeorm90.ViewColumn)({ name: "client_uuid" })
14958
+ (0, import_typeorm91.ViewColumn)({ name: "client_uuid" })
14896
14959
  ], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
14897
14960
  __decorateClass([
14898
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_id" })
14961
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_id" })
14899
14962
  ], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
14900
14963
  __decorateClass([
14901
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_uuid" })
14964
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_uuid" })
14902
14965
  ], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
14903
14966
  __decorateClass([
14904
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_unique_id" })
14967
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_unique_id" })
14905
14968
  ], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
14906
14969
  __decorateClass([
14907
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_first_name" })
14970
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_first_name" })
14908
14971
  ], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
14909
14972
  __decorateClass([
14910
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_last_name" })
14973
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_last_name" })
14911
14974
  ], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
14912
14975
  __decorateClass([
14913
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_email" })
14976
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_email" })
14914
14977
  ], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
14915
14978
  __decorateClass([
14916
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_profile_picture" })
14979
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_profile_picture" })
14917
14980
  ], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
14918
14981
  __decorateClass([
14919
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_is_social" })
14982
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_is_social" })
14920
14983
  ], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
14921
14984
  __decorateClass([
14922
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_created_at" })
14985
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_created_at" })
14923
14986
  ], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
14924
14987
  __decorateClass([
14925
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_designation" })
14988
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_designation" })
14926
14989
  ], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
14927
14990
  __decorateClass([
14928
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_experience" })
14991
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_experience" })
14929
14992
  ], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
14930
14993
  __decorateClass([
14931
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_expertshub_verified" })
14994
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_expertshub_verified" })
14932
14995
  ], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
14933
14996
  __decorateClass([
14934
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_hourly_compensation" })
14997
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_hourly_compensation" })
14935
14998
  ], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
14936
14999
  __decorateClass([
14937
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_country_name" })
15000
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_country_name" })
14938
15001
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
14939
15002
  __decorateClass([
14940
- (0, import_typeorm90.ViewColumn)({ name: "freelancer_country_iso_code" })
15003
+ (0, import_typeorm91.ViewColumn)({ name: "freelancer_country_iso_code" })
14941
15004
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
14942
15005
  __decorateClass([
14943
- (0, import_typeorm90.ViewColumn)({ name: "matching_skills" })
15006
+ (0, import_typeorm91.ViewColumn)({ name: "matching_skills" })
14944
15007
  ], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
14945
15008
  __decorateClass([
14946
- (0, import_typeorm90.ViewColumn)({ name: "matching_skills_count" })
15009
+ (0, import_typeorm91.ViewColumn)({ name: "matching_skills_count" })
14947
15010
  ], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
14948
15011
  __decorateClass([
14949
- (0, import_typeorm90.ViewColumn)({ name: "required_skills" })
15012
+ (0, import_typeorm91.ViewColumn)({ name: "required_skills" })
14950
15013
  ], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
14951
15014
  __decorateClass([
14952
- (0, import_typeorm90.ViewColumn)({ name: "required_skills_count" })
15015
+ (0, import_typeorm91.ViewColumn)({ name: "required_skills_count" })
14953
15016
  ], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
14954
15017
  ClientFreelancerRecommendation = __decorateClass([
14955
- (0, import_typeorm90.ViewEntity)({
15018
+ (0, import_typeorm91.ViewEntity)({
14956
15019
  name: "client_freelancer_recommendations",
14957
15020
  materialized: true,
14958
15021
  synchronize: false
@@ -14961,7 +15024,7 @@ ClientFreelancerRecommendation = __decorateClass([
14961
15024
  ], ClientFreelancerRecommendation);
14962
15025
 
14963
15026
  // src/entities/commission.entity.ts
14964
- var import_typeorm91 = require("typeorm");
15027
+ var import_typeorm92 = require("typeorm");
14965
15028
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
14966
15029
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
14967
15030
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -14970,7 +15033,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
14970
15033
  var Commission = class extends BaseEntity {
14971
15034
  };
14972
15035
  __decorateClass([
14973
- (0, import_typeorm91.Column)({
15036
+ (0, import_typeorm92.Column)({
14974
15037
  name: "freelancer_commission_type",
14975
15038
  type: "enum",
14976
15039
  enum: CommissionTypeEnum,
@@ -14978,10 +15041,10 @@ __decorateClass([
14978
15041
  })
14979
15042
  ], Commission.prototype, "freelancerCommissionType", 2);
14980
15043
  __decorateClass([
14981
- (0, import_typeorm91.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
15044
+ (0, import_typeorm92.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
14982
15045
  ], Commission.prototype, "freelancerCommission", 2);
14983
15046
  __decorateClass([
14984
- (0, import_typeorm91.Column)({
15047
+ (0, import_typeorm92.Column)({
14985
15048
  name: "client_commission_type",
14986
15049
  type: "enum",
14987
15050
  enum: CommissionTypeEnum,
@@ -14989,50 +15052,50 @@ __decorateClass([
14989
15052
  })
14990
15053
  ], Commission.prototype, "clientCommissionType", 2);
14991
15054
  __decorateClass([
14992
- (0, import_typeorm91.Column)({ name: "client_commission", type: "integer", default: 0 })
15055
+ (0, import_typeorm92.Column)({ name: "client_commission", type: "integer", default: 0 })
14993
15056
  ], Commission.prototype, "clientCommission", 2);
14994
15057
  Commission = __decorateClass([
14995
- (0, import_typeorm91.Entity)("commissions")
15058
+ (0, import_typeorm92.Entity)("commissions")
14996
15059
  ], Commission);
14997
15060
 
14998
15061
  // src/entities/calendly-meeting-log.entity.ts
14999
- var import_typeorm92 = require("typeorm");
15062
+ var import_typeorm93 = require("typeorm");
15000
15063
  var CalendlyMeetingLog = class extends BaseEntity {
15001
15064
  };
15002
15065
  __decorateClass([
15003
- (0, import_typeorm92.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
15004
- (0, import_typeorm92.Index)()
15066
+ (0, import_typeorm93.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
15067
+ (0, import_typeorm93.Index)()
15005
15068
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
15006
15069
  __decorateClass([
15007
- (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 })
15008
15071
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
15009
15072
  __decorateClass([
15010
- (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 })
15011
15074
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
15012
15075
  CalendlyMeetingLog = __decorateClass([
15013
- (0, import_typeorm92.Entity)("calendly_meeting_logs")
15076
+ (0, import_typeorm93.Entity)("calendly_meeting_logs")
15014
15077
  ], CalendlyMeetingLog);
15015
15078
 
15016
15079
  // src/entities/zoom-meeting-log.entity.ts
15017
- var import_typeorm93 = require("typeorm");
15080
+ var import_typeorm94 = require("typeorm");
15018
15081
  var ZoomMeetingLog = class extends BaseEntity {
15019
15082
  };
15020
15083
  __decorateClass([
15021
- (0, import_typeorm93.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
15022
- (0, import_typeorm93.Index)()
15084
+ (0, import_typeorm94.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
15085
+ (0, import_typeorm94.Index)()
15023
15086
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
15024
15087
  __decorateClass([
15025
- (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 })
15026
15089
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
15027
15090
  __decorateClass([
15028
- (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 })
15029
15092
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
15030
15093
  ZoomMeetingLog = __decorateClass([
15031
- (0, import_typeorm93.Entity)("zoom_meeting_logs")
15094
+ (0, import_typeorm94.Entity)("zoom_meeting_logs")
15032
15095
  ], ZoomMeetingLog);
15033
15096
 
15034
15097
  // src/entities/docuseal.entity.ts
15035
- var import_typeorm94 = require("typeorm");
15098
+ var import_typeorm95 = require("typeorm");
15036
15099
  var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
15037
15100
  DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
15038
15101
  DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
@@ -15042,132 +15105,132 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
15042
15105
  var DocuSeal = class extends BaseEntity {
15043
15106
  };
15044
15107
  __decorateClass([
15045
- (0, import_typeorm94.Column)({ name: "reference_id", type: "integer", nullable: false }),
15046
- (0, import_typeorm94.Index)()
15108
+ (0, import_typeorm95.Column)({ name: "reference_id", type: "integer", nullable: false }),
15109
+ (0, import_typeorm95.Index)()
15047
15110
  ], DocuSeal.prototype, "referenceId", 2);
15048
15111
  __decorateClass([
15049
- (0, import_typeorm94.Column)({ name: "submitter_id", type: "integer", nullable: true }),
15050
- (0, import_typeorm94.Index)()
15112
+ (0, import_typeorm95.Column)({ name: "submitter_id", type: "integer", nullable: true }),
15113
+ (0, import_typeorm95.Index)()
15051
15114
  ], DocuSeal.prototype, "submitterId", 2);
15052
15115
  __decorateClass([
15053
- (0, import_typeorm94.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
15116
+ (0, import_typeorm95.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
15054
15117
  ], DocuSeal.prototype, "submitterResponse", 2);
15055
15118
  __decorateClass([
15056
- (0, import_typeorm94.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
15119
+ (0, import_typeorm95.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
15057
15120
  ], DocuSeal.prototype, "webhookResponse", 2);
15058
15121
  __decorateClass([
15059
- (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 })
15060
15123
  ], DocuSeal.prototype, "type", 2);
15061
15124
  DocuSeal = __decorateClass([
15062
- (0, import_typeorm94.Entity)("docuseal")
15125
+ (0, import_typeorm95.Entity)("docuseal")
15063
15126
  ], DocuSeal);
15064
15127
 
15065
15128
  // src/entities/stripe-logs.entity.ts
15066
- var import_typeorm95 = require("typeorm");
15129
+ var import_typeorm96 = require("typeorm");
15067
15130
  var StripeLog = class extends BaseEntity {
15068
15131
  };
15069
15132
  __decorateClass([
15070
- (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 })
15071
15134
  ], StripeLog.prototype, "stripeEventId", 2);
15072
15135
  __decorateClass([
15073
- (0, import_typeorm95.Column)({ name: "event_type", type: "varchar", nullable: true })
15136
+ (0, import_typeorm96.Column)({ name: "event_type", type: "varchar", nullable: true })
15074
15137
  ], StripeLog.prototype, "eventType", 2);
15075
15138
  __decorateClass([
15076
- (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 })
15077
15140
  ], StripeLog.prototype, "stripeAccountId", 2);
15078
15141
  __decorateClass([
15079
- (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 })
15080
15143
  ], StripeLog.prototype, "rawWebhookData", 2);
15081
15144
  StripeLog = __decorateClass([
15082
- (0, import_typeorm95.Entity)("stripe_logs")
15145
+ (0, import_typeorm96.Entity)("stripe_logs")
15083
15146
  ], StripeLog);
15084
15147
 
15085
15148
  // src/entities/recommendation-weightage-config.entity.ts
15086
- var import_typeorm96 = require("typeorm");
15149
+ var import_typeorm97 = require("typeorm");
15087
15150
  var RecommendationWeightageConfig = class extends BaseEntity {
15088
15151
  };
15089
15152
  __decorateClass([
15090
- (0, import_typeorm96.Column)({
15153
+ (0, import_typeorm97.Column)({
15091
15154
  type: "varchar",
15092
15155
  length: 100,
15093
15156
  unique: true,
15094
15157
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
15095
15158
  }),
15096
- (0, import_typeorm96.Index)()
15159
+ (0, import_typeorm97.Index)()
15097
15160
  ], RecommendationWeightageConfig.prototype, "key", 2);
15098
15161
  __decorateClass([
15099
- (0, import_typeorm96.Column)({
15162
+ (0, import_typeorm97.Column)({
15100
15163
  type: "jsonb",
15101
15164
  comment: "JSON object containing weight values",
15102
15165
  nullable: true
15103
15166
  })
15104
15167
  ], RecommendationWeightageConfig.prototype, "value", 2);
15105
15168
  __decorateClass([
15106
- (0, import_typeorm96.Column)({ name: "is_active", type: "boolean", default: true })
15169
+ (0, import_typeorm97.Column)({ name: "is_active", type: "boolean", default: true })
15107
15170
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
15108
15171
  RecommendationWeightageConfig = __decorateClass([
15109
- (0, import_typeorm96.Entity)("recommendation_weightage_configs")
15172
+ (0, import_typeorm97.Entity)("recommendation_weightage_configs")
15110
15173
  ], RecommendationWeightageConfig);
15111
15174
 
15112
15175
  // src/entities/global-setting.entity.ts
15113
- var import_typeorm97 = require("typeorm");
15176
+ var import_typeorm98 = require("typeorm");
15114
15177
  var GlobalSetting = class extends BaseEntity {
15115
15178
  };
15116
15179
  __decorateClass([
15117
- (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 })
15118
15181
  ], GlobalSetting.prototype, "key", 2);
15119
15182
  __decorateClass([
15120
- (0, import_typeorm97.Column)({ name: "value", type: "text", nullable: false })
15183
+ (0, import_typeorm98.Column)({ name: "value", type: "text", nullable: false })
15121
15184
  ], GlobalSetting.prototype, "value", 2);
15122
15185
  GlobalSetting = __decorateClass([
15123
- (0, import_typeorm97.Entity)("global_settings"),
15124
- (0, import_typeorm97.Index)(["key"], { unique: true })
15186
+ (0, import_typeorm98.Entity)("global_settings"),
15187
+ (0, import_typeorm98.Index)(["key"], { unique: true })
15125
15188
  ], GlobalSetting);
15126
15189
 
15127
15190
  // src/entities/plan.entity.ts
15128
- var import_typeorm100 = require("typeorm");
15191
+ var import_typeorm101 = require("typeorm");
15129
15192
 
15130
15193
  // src/entities/plan-feature.entity.ts
15131
- var import_typeorm98 = require("typeorm");
15194
+ var import_typeorm99 = require("typeorm");
15132
15195
  var PlanFeature = class extends BaseEntity {
15133
15196
  };
15134
15197
  // individual index to find features by plan
15135
15198
  __decorateClass([
15136
- (0, import_typeorm98.Column)({ name: "plan_id", type: "integer", nullable: false }),
15137
- (0, import_typeorm98.Index)()
15199
+ (0, import_typeorm99.Column)({ name: "plan_id", type: "integer", nullable: false }),
15200
+ (0, import_typeorm99.Index)()
15138
15201
  ], PlanFeature.prototype, "planId", 2);
15139
15202
  __decorateClass([
15140
- (0, import_typeorm98.ManyToOne)(() => Plan, (plan) => plan.features, {
15203
+ (0, import_typeorm99.ManyToOne)(() => Plan, (plan) => plan.features, {
15141
15204
  onDelete: "CASCADE",
15142
15205
  nullable: false
15143
15206
  }),
15144
- (0, import_typeorm98.JoinColumn)({ name: "plan_id" })
15207
+ (0, import_typeorm99.JoinColumn)({ name: "plan_id" })
15145
15208
  ], PlanFeature.prototype, "plan", 2);
15146
15209
  __decorateClass([
15147
- (0, import_typeorm98.Column)({ name: "name", type: "varchar", length: 200 })
15210
+ (0, import_typeorm99.Column)({ name: "name", type: "varchar", length: 200 })
15148
15211
  ], PlanFeature.prototype, "name", 2);
15149
15212
  __decorateClass([
15150
- (0, import_typeorm98.Column)({ name: "slug", type: "varchar", length: 100 }),
15151
- (0, import_typeorm98.Index)()
15213
+ (0, import_typeorm99.Column)({ name: "slug", type: "varchar", length: 100 }),
15214
+ (0, import_typeorm99.Index)()
15152
15215
  ], PlanFeature.prototype, "slug", 2);
15153
15216
  __decorateClass([
15154
- (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 })
15155
15218
  ], PlanFeature.prototype, "tooltip", 2);
15156
15219
  __decorateClass([
15157
- (0, import_typeorm98.Column)({ name: "sort_order", type: "smallint", default: 0 })
15220
+ (0, import_typeorm99.Column)({ name: "sort_order", type: "smallint", default: 0 })
15158
15221
  ], PlanFeature.prototype, "sortOrder", 2);
15159
15222
  __decorateClass([
15160
- (0, import_typeorm98.Column)({ name: "is_active", type: "boolean", default: true })
15223
+ (0, import_typeorm99.Column)({ name: "is_active", type: "boolean", default: true })
15161
15224
  ], PlanFeature.prototype, "isActive", 2);
15162
15225
  PlanFeature = __decorateClass([
15163
- (0, import_typeorm98.Entity)("plan_features"),
15164
- (0, import_typeorm98.Index)("idx_plan_features_plan_id", ["planId"]),
15165
- (0, import_typeorm98.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
15166
- (0, import_typeorm98.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
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')
15167
15230
  ], PlanFeature);
15168
15231
 
15169
15232
  // src/entities/plan-pricing.entity.ts
15170
- var import_typeorm99 = require("typeorm");
15233
+ var import_typeorm100 = require("typeorm");
15171
15234
  var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
15172
15235
  PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
15173
15236
  PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
@@ -15222,61 +15285,61 @@ var PlanPricing = class extends BaseEntity {
15222
15285
  };
15223
15286
  // individual index to find pricing by plan
15224
15287
  __decorateClass([
15225
- (0, import_typeorm99.Column)({ name: "plan_id", type: "integer", nullable: false }),
15226
- (0, import_typeorm99.Index)()
15288
+ (0, import_typeorm100.Column)({ name: "plan_id", type: "integer", nullable: false }),
15289
+ (0, import_typeorm100.Index)()
15227
15290
  ], PlanPricing.prototype, "planId", 2);
15228
15291
  __decorateClass([
15229
- (0, import_typeorm99.ManyToOne)(() => Plan, (plan) => plan.pricing, {
15292
+ (0, import_typeorm100.ManyToOne)(() => Plan, (plan) => plan.pricing, {
15230
15293
  onDelete: "CASCADE",
15231
15294
  nullable: false
15232
15295
  }),
15233
- (0, import_typeorm99.JoinColumn)({ name: "plan_id" })
15296
+ (0, import_typeorm100.JoinColumn)({ name: "plan_id" })
15234
15297
  ], PlanPricing.prototype, "plan", 2);
15235
15298
  __decorateClass([
15236
- (0, import_typeorm99.Column)({
15299
+ (0, import_typeorm100.Column)({
15237
15300
  name: "billing_cycle",
15238
15301
  type: "enum",
15239
15302
  enum: PlanPricingBillingCycleEnum
15240
15303
  })
15241
15304
  ], PlanPricing.prototype, "billingCycle", 2);
15242
15305
  __decorateClass([
15243
- (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 })
15244
15307
  ], PlanPricing.prototype, "price", 2);
15245
15308
  __decorateClass([
15246
- (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 })
15247
15310
  ], PlanPricing.prototype, "originalPrice", 2);
15248
15311
  __decorateClass([
15249
- (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 })
15250
15313
  ], PlanPricing.prototype, "discountPct", 2);
15251
15314
  __decorateClass([
15252
- (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" })
15253
15316
  ], PlanPricing.prototype, "currency", 2);
15254
15317
  __decorateClass([
15255
- (0, import_typeorm99.Column)({ name: "is_free", type: "boolean", default: false })
15318
+ (0, import_typeorm100.Column)({ name: "is_free", type: "boolean", default: false })
15256
15319
  ], PlanPricing.prototype, "isFree", 2);
15257
15320
  __decorateClass([
15258
- (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 })
15259
15322
  ], PlanPricing.prototype, "stripePriceId", 2);
15260
15323
  __decorateClass([
15261
- (0, import_typeorm99.Column)({ name: "trial_days", type: "smallint", default: 0 })
15324
+ (0, import_typeorm100.Column)({ name: "trial_days", type: "smallint", default: 0 })
15262
15325
  ], PlanPricing.prototype, "trialDays", 2);
15263
15326
  __decorateClass([
15264
- (0, import_typeorm99.Column)({ name: "is_active", type: "boolean", default: true })
15327
+ (0, import_typeorm100.Column)({ name: "is_active", type: "boolean", default: true })
15265
15328
  ], PlanPricing.prototype, "isActive", 2);
15266
15329
  __decorateClass([
15267
- (0, import_typeorm99.BeforeInsert)(),
15268
- (0, import_typeorm99.BeforeUpdate)()
15330
+ (0, import_typeorm100.BeforeInsert)(),
15331
+ (0, import_typeorm100.BeforeUpdate)()
15269
15332
  ], PlanPricing.prototype, "sanitize", 1);
15270
15333
  PlanPricing = __decorateClass([
15271
- (0, import_typeorm99.Entity)("plan_pricings"),
15272
- (0, import_typeorm99.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
15273
- (0, import_typeorm99.Index)("idx_plan_pricings_plan_id", ["planId"]),
15274
- (0, import_typeorm99.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
15275
- (0, import_typeorm99.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
15276
- (0, import_typeorm99.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
15277
- (0, import_typeorm99.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
15278
- (0, import_typeorm99.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
15279
- (0, import_typeorm99.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
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')
15280
15343
  ], PlanPricing);
15281
15344
 
15282
15345
  // src/entities/plan.entity.ts
@@ -15293,22 +15356,22 @@ var Plan = class extends BaseEntity {
15293
15356
  }
15294
15357
  };
15295
15358
  __decorateClass([
15296
- (0, import_typeorm100.Column)({ name: "name", type: "varchar", length: 100 })
15359
+ (0, import_typeorm101.Column)({ name: "name", type: "varchar", length: 100 })
15297
15360
  ], Plan.prototype, "name", 2);
15298
15361
  __decorateClass([
15299
- (0, import_typeorm100.Column)({ name: "slug", type: "varchar", length: 100 })
15362
+ (0, import_typeorm101.Column)({ name: "slug", type: "varchar", length: 100 })
15300
15363
  ], Plan.prototype, "slug", 2);
15301
15364
  __decorateClass([
15302
- (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 })
15303
15366
  ], Plan.prototype, "badgeLabel", 2);
15304
15367
  __decorateClass([
15305
- (0, import_typeorm100.Column)({ name: "sort_order", type: "smallint", default: 0 })
15368
+ (0, import_typeorm101.Column)({ name: "sort_order", type: "smallint", default: 0 })
15306
15369
  ], Plan.prototype, "sortOrder", 2);
15307
15370
  __decorateClass([
15308
- (0, import_typeorm100.Column)({ name: "is_active", type: "boolean", default: true })
15371
+ (0, import_typeorm101.Column)({ name: "is_active", type: "boolean", default: true })
15309
15372
  ], Plan.prototype, "isActive", 2);
15310
15373
  __decorateClass([
15311
- (0, import_typeorm100.Column)({
15374
+ (0, import_typeorm101.Column)({
15312
15375
  name: "plan_type",
15313
15376
  type: "enum",
15314
15377
  enum: PlanTypeEnum,
@@ -15316,37 +15379,37 @@ __decorateClass([
15316
15379
  })
15317
15380
  ], Plan.prototype, "planType", 2);
15318
15381
  __decorateClass([
15319
- (0, import_typeorm100.Column)({ name: "metadata", type: "jsonb", default: {} })
15382
+ (0, import_typeorm101.Column)({ name: "metadata", type: "jsonb", default: {} })
15320
15383
  ], Plan.prototype, "metadata", 2);
15321
15384
  __decorateClass([
15322
- (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 })
15323
15386
  ], Plan.prototype, "stripeProductId", 2);
15324
15387
  __decorateClass([
15325
- (0, import_typeorm100.BeforeInsert)(),
15326
- (0, import_typeorm100.BeforeUpdate)()
15388
+ (0, import_typeorm101.BeforeInsert)(),
15389
+ (0, import_typeorm101.BeforeUpdate)()
15327
15390
  ], Plan.prototype, "createSlug", 1);
15328
15391
  __decorateClass([
15329
- (0, import_typeorm100.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
15392
+ (0, import_typeorm101.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
15330
15393
  cascade: ["insert", "update"]
15331
15394
  })
15332
15395
  ], Plan.prototype, "features", 2);
15333
15396
  __decorateClass([
15334
- (0, import_typeorm100.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
15397
+ (0, import_typeorm101.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
15335
15398
  cascade: ["insert", "update"]
15336
15399
  })
15337
15400
  ], Plan.prototype, "pricing", 2);
15338
15401
  Plan = __decorateClass([
15339
- (0, import_typeorm100.Entity)("plans"),
15340
- (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"], {
15341
15404
  unique: true,
15342
15405
  where: '"is_deleted" IS FALSE'
15343
15406
  }),
15344
- (0, import_typeorm100.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
15345
- (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')
15346
15409
  ], Plan);
15347
15410
 
15348
15411
  // src/entities/subscription-feature.entity.ts
15349
- var import_typeorm101 = require("typeorm");
15412
+ var import_typeorm102 = require("typeorm");
15350
15413
  var SubscriptionFeature = class extends BaseEntity {
15351
15414
  toSlug(value) {
15352
15415
  return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
@@ -15361,33 +15424,33 @@ var SubscriptionFeature = class extends BaseEntity {
15361
15424
  }
15362
15425
  };
15363
15426
  __decorateClass([
15364
- (0, import_typeorm101.Column)({ name: "name", type: "varchar", length: 200 })
15427
+ (0, import_typeorm102.Column)({ name: "name", type: "varchar", length: 200 })
15365
15428
  ], SubscriptionFeature.prototype, "name", 2);
15366
15429
  __decorateClass([
15367
- (0, import_typeorm101.Column)({ name: "slug", type: "varchar", length: 100 })
15430
+ (0, import_typeorm102.Column)({ name: "slug", type: "varchar", length: 100 })
15368
15431
  ], SubscriptionFeature.prototype, "slug", 2);
15369
15432
  __decorateClass([
15370
- (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 })
15371
15434
  ], SubscriptionFeature.prototype, "tooltip", 2);
15372
15435
  __decorateClass([
15373
- (0, import_typeorm101.Column)({ name: "sort_order", type: "smallint", default: 0 })
15436
+ (0, import_typeorm102.Column)({ name: "sort_order", type: "smallint", default: 0 })
15374
15437
  ], SubscriptionFeature.prototype, "sortOrder", 2);
15375
15438
  __decorateClass([
15376
- (0, import_typeorm101.Column)({ name: "is_active", type: "boolean", default: true })
15439
+ (0, import_typeorm102.Column)({ name: "is_active", type: "boolean", default: true })
15377
15440
  ], SubscriptionFeature.prototype, "isActive", 2);
15378
15441
  __decorateClass([
15379
- (0, import_typeorm101.BeforeInsert)(),
15380
- (0, import_typeorm101.BeforeUpdate)()
15442
+ (0, import_typeorm102.BeforeInsert)(),
15443
+ (0, import_typeorm102.BeforeUpdate)()
15381
15444
  ], SubscriptionFeature.prototype, "createSlug", 1);
15382
15445
  SubscriptionFeature = __decorateClass([
15383
- (0, import_typeorm101.Entity)("subscription_features"),
15384
- (0, import_typeorm101.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15385
- (0, import_typeorm101.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
15386
- (0, import_typeorm101.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
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')
15387
15450
  ], SubscriptionFeature);
15388
15451
 
15389
15452
  // src/entities/user-subscription-transaction.entity.ts
15390
- var import_typeorm102 = require("typeorm");
15453
+ var import_typeorm103 = require("typeorm");
15391
15454
  var UserSubscriptionTransactionTypeEnum = /* @__PURE__ */ ((UserSubscriptionTransactionTypeEnum2) => {
15392
15455
  UserSubscriptionTransactionTypeEnum2["SUBSCRIPTION_INITIATED"] = "SUBSCRIPTION_INITIATED";
15393
15456
  UserSubscriptionTransactionTypeEnum2["CHECKOUT_SESSION_CREATED"] = "CHECKOUT_SESSION_CREATED";
@@ -15405,25 +15468,25 @@ var UserSubscriptionTransactionStatusEnum = /* @__PURE__ */ ((UserSubscriptionTr
15405
15468
  var UserSubscriptionTransaction = class extends BaseEntity {
15406
15469
  };
15407
15470
  __decorateClass([
15408
- (0, import_typeorm102.Column)({ name: "user_subscription_id", type: "integer", nullable: false }),
15409
- (0, import_typeorm102.Index)()
15471
+ (0, import_typeorm103.Column)({ name: "user_subscription_id", type: "integer", nullable: false }),
15472
+ (0, import_typeorm103.Index)()
15410
15473
  ], UserSubscriptionTransaction.prototype, "userSubscriptionId", 2);
15411
15474
  __decorateClass([
15412
- (0, import_typeorm102.ManyToOne)(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
15413
- (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" })
15414
15477
  ], UserSubscriptionTransaction.prototype, "userSubscription", 2);
15415
15478
  __decorateClass([
15416
- (0, import_typeorm102.Column)({ name: "user_id", type: "integer", nullable: false })
15479
+ (0, import_typeorm103.Column)({ name: "user_id", type: "integer", nullable: false })
15417
15480
  ], UserSubscriptionTransaction.prototype, "userId", 2);
15418
15481
  __decorateClass([
15419
- (0, import_typeorm102.Column)({
15482
+ (0, import_typeorm103.Column)({
15420
15483
  name: "type",
15421
15484
  type: "enum",
15422
15485
  enum: UserSubscriptionTransactionTypeEnum
15423
15486
  })
15424
15487
  ], UserSubscriptionTransaction.prototype, "type", 2);
15425
15488
  __decorateClass([
15426
- (0, import_typeorm102.Column)({
15489
+ (0, import_typeorm103.Column)({
15427
15490
  name: "status",
15428
15491
  type: "enum",
15429
15492
  enum: UserSubscriptionTransactionStatusEnum,
@@ -15431,73 +15494,129 @@ __decorateClass([
15431
15494
  })
15432
15495
  ], UserSubscriptionTransaction.prototype, "status", 2);
15433
15496
  __decorateClass([
15434
- (0, import_typeorm102.Column)({ name: "plan_name", type: "text", nullable: true })
15497
+ (0, import_typeorm103.Column)({ name: "plan_name", type: "text", nullable: true })
15435
15498
  ], UserSubscriptionTransaction.prototype, "planName", 2);
15436
15499
  __decorateClass([
15437
- (0, import_typeorm102.Column)({ name: "amount_minor", type: "integer", nullable: true })
15500
+ (0, import_typeorm103.Column)({ name: "amount_minor", type: "integer", nullable: true })
15438
15501
  ], UserSubscriptionTransaction.prototype, "amountMinor", 2);
15439
15502
  __decorateClass([
15440
- (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 })
15441
15504
  ], UserSubscriptionTransaction.prototype, "currency", 2);
15442
15505
  __decorateClass([
15443
- (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 })
15444
15507
  ], UserSubscriptionTransaction.prototype, "stripeEventId", 2);
15445
15508
  __decorateClass([
15446
- (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 })
15447
15510
  ], UserSubscriptionTransaction.prototype, "stripeEventType", 2);
15448
15511
  __decorateClass([
15449
- (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 })
15450
15513
  ], UserSubscriptionTransaction.prototype, "stripeSubscriptionId", 2);
15451
15514
  __decorateClass([
15452
- (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 })
15453
15516
  ], UserSubscriptionTransaction.prototype, "stripeInvoiceId", 2);
15454
15517
  __decorateClass([
15455
- (0, import_typeorm102.Column)({ name: "description", type: "text", nullable: true })
15518
+ (0, import_typeorm103.Column)({ name: "description", type: "text", nullable: true })
15456
15519
  ], UserSubscriptionTransaction.prototype, "description", 2);
15457
15520
  __decorateClass([
15458
- (0, import_typeorm102.Column)({ name: "invoice_url", type: "text", nullable: true })
15521
+ (0, import_typeorm103.Column)({ name: "invoice_url", type: "text", nullable: true })
15459
15522
  ], UserSubscriptionTransaction.prototype, "invoiceUrl", 2);
15460
15523
  __decorateClass([
15461
- (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 })
15462
15525
  ], UserSubscriptionTransaction.prototype, "checkoutRequestPayload", 2);
15463
15526
  __decorateClass([
15464
- (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 })
15465
15528
  ], UserSubscriptionTransaction.prototype, "checkoutResponsePayload", 2);
15466
15529
  __decorateClass([
15467
- (0, import_typeorm102.Column)({ name: "webhook_payload", type: "jsonb", nullable: true })
15530
+ (0, import_typeorm103.Column)({ name: "webhook_payload", type: "jsonb", nullable: true })
15468
15531
  ], UserSubscriptionTransaction.prototype, "webhookPayload", 2);
15469
15532
  __decorateClass([
15470
- (0, import_typeorm102.Column)({ name: "metadata", type: "jsonb", nullable: true, default: {} })
15533
+ (0, import_typeorm103.Column)({ name: "metadata", type: "jsonb", nullable: true, default: {} })
15471
15534
  ], UserSubscriptionTransaction.prototype, "metadata", 2);
15472
15535
  UserSubscriptionTransaction = __decorateClass([
15473
- (0, import_typeorm102.Entity)("user_subscription_transactions"),
15474
- (0, import_typeorm102.Index)("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
15475
- (0, import_typeorm102.Index)("idx_user_sub_tx_user_id", ["userId"]),
15476
- (0, import_typeorm102.Index)("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
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"])
15477
15540
  ], UserSubscriptionTransaction);
15478
15541
 
15479
15542
  // src/entities/vendor-api-configuration.entity.ts
15480
- var import_typeorm103 = require("typeorm");
15543
+ var import_typeorm104 = require("typeorm");
15481
15544
  var VendorApiConfiguration = class extends BaseEntity {
15482
15545
  };
15483
15546
  __decorateClass([
15484
- (0, import_typeorm103.Column)({ name: "vendor_name", type: "varchar", length: 255 })
15547
+ (0, import_typeorm104.Column)({ name: "vendor_name", type: "varchar", length: 255 })
15485
15548
  ], VendorApiConfiguration.prototype, "vendorName", 2);
15486
15549
  __decorateClass([
15487
- (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 })
15488
15551
  ], VendorApiConfiguration.prototype, "vendorApiKey", 2);
15489
15552
  __decorateClass([
15490
- (0, import_typeorm103.Column)({ name: "vendor_api_secret_key", type: "text" })
15553
+ (0, import_typeorm104.Column)({ name: "vendor_api_secret_key", type: "text" })
15491
15554
  ], VendorApiConfiguration.prototype, "vendorApiSecretKey", 2);
15492
15555
  __decorateClass([
15493
- (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 })
15494
15557
  ], VendorApiConfiguration.prototype, "slug", 2);
15495
15558
  __decorateClass([
15496
- (0, import_typeorm103.Column)({ name: "is_active", type: "boolean", default: true })
15559
+ (0, import_typeorm104.Column)({ name: "is_active", type: "boolean", default: true })
15497
15560
  ], VendorApiConfiguration.prototype, "isActive", 2);
15498
15561
  VendorApiConfiguration = __decorateClass([
15499
- (0, import_typeorm103.Entity)("vendor_api_configurations")
15562
+ (0, import_typeorm104.Entity)("vendor_api_configurations")
15500
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);
15501
15620
  // Annotate the CommonJS export names for ESM import in node:
15502
15621
  0 && (module.exports = {
15503
15622
  ADMIN_FREELANCER_PATTERN,
@@ -15651,6 +15770,10 @@ VendorApiConfiguration = __decorateClass([
15651
15770
  DurationTypeEnum,
15652
15771
  EMAIL_PATTERN,
15653
15772
  EducationDto,
15773
+ EkycVerifcationLog,
15774
+ EkycVerificationLogStatusEnum,
15775
+ EkycVerificationSession,
15776
+ EkycVerificationSessionStatusEnum,
15654
15777
  EscrowFundContractDto,
15655
15778
  EscrowWallet,
15656
15779
  EscrowWalletTransaction,