@experts_hub/shared 1.0.716 → 1.0.718

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
@@ -125,6 +125,7 @@ __export(index_exports, {
125
125
  Cms: () => Cms,
126
126
  Commission: () => Commission,
127
127
  CommissionTypeEnum: () => CommissionTypeEnum,
128
+ CompanyMember: () => CompanyMember,
128
129
  CompanyMemberRole: () => CompanyMemberRole,
129
130
  CompanyOnboardingStepEnum: () => CompanyOnboardingStepEnum,
130
131
  CompanyProfile: () => CompanyProfile,
@@ -1487,7 +1488,7 @@ __decorateClass([
1487
1488
  var import_class_validator37 = require("class-validator");
1488
1489
 
1489
1490
  // src/entities/user.entity.ts
1490
- var import_typeorm79 = require("typeorm");
1491
+ var import_typeorm80 = require("typeorm");
1491
1492
 
1492
1493
  // src/entities/base.entity.ts
1493
1494
  var import_typeorm = require("typeorm");
@@ -2172,8 +2173,11 @@ __decorateClass([
2172
2173
  (0, import_typeorm9.Column)({ name: "resume_url", type: "text", nullable: true })
2173
2174
  ], FreelancerProfile.prototype, "resumeUrl", 2);
2174
2175
  __decorateClass([
2175
- (0, import_typeorm9.Column)({ name: "resume_uploaded_on", type: "timestamp with time zone", nullable: true })
2176
+ (0, import_typeorm9.Column)({ name: "resume_uploaded_on", type: "timestamp with time zone", nullable: true, comment: "The date and time when the resume was uploaded" })
2176
2177
  ], FreelancerProfile.prototype, "resumeUploadedOn", 2);
2178
+ __decorateClass([
2179
+ (0, import_typeorm9.Column)({ name: "resume_parsed_on", type: "timestamp with time zone", nullable: true, comment: "The date and time when the resume was parsed" })
2180
+ ], FreelancerProfile.prototype, "resumeParsedOn", 2);
2177
2181
  __decorateClass([
2178
2182
  (0, import_typeorm9.Column)({ name: "resume_eligibility", type: "varchar", nullable: true })
2179
2183
  ], FreelancerProfile.prototype, "resumeEligibility", 2);
@@ -2191,6 +2195,12 @@ __decorateClass([
2191
2195
  __decorateClass([
2192
2196
  (0, import_typeorm9.Column)({ name: "mcq_score", type: "float", nullable: true })
2193
2197
  ], FreelancerProfile.prototype, "mcqScore", 2);
2198
+ __decorateClass([
2199
+ (0, import_typeorm9.Column)({ name: "mcq_initiated_on", type: "timestamp with time zone", nullable: true, comment: "The date and time when the MCQ assessment was initiated" })
2200
+ ], FreelancerProfile.prototype, "mcqInitiatedOn", 2);
2201
+ __decorateClass([
2202
+ (0, import_typeorm9.Column)({ name: "mcq_completed_on", type: "timestamp with time zone", nullable: true, comment: "The date and time when the MCQ assessment was completed" })
2203
+ ], FreelancerProfile.prototype, "mcqCompletedOn", 2);
2194
2204
  __decorateClass([
2195
2205
  (0, import_typeorm9.Column)({ name: "is_eligible_for_ai_assessment", type: "boolean", nullable: true })
2196
2206
  ], FreelancerProfile.prototype, "isEligibleForAiAssessment", 2);
@@ -2316,6 +2326,12 @@ __decorateClass([
2316
2326
  }
2317
2327
  })
2318
2328
  ], FreelancerProfile.prototype, "profileCompletedPercentage", 2);
2329
+ __decorateClass([
2330
+ (0, import_typeorm9.Column)({ name: "profile_question_completed_on", type: "timestamp with time zone", nullable: true, comment: "The date and time when the profile question was completed" })
2331
+ ], FreelancerProfile.prototype, "profileQuestionCompletedOn", 2);
2332
+ __decorateClass([
2333
+ (0, import_typeorm9.Column)({ name: "profile_completed_on", type: "timestamp with time zone", nullable: true, comment: "The date and time when the profile was completed" })
2334
+ ], FreelancerProfile.prototype, "profileCompletedOn", 2);
2319
2335
  __decorateClass([
2320
2336
  (0, import_typeorm9.Column)({ name: "original_document_url", type: "varchar", nullable: true })
2321
2337
  ], FreelancerProfile.prototype, "originalDocumentUrl", 2);
@@ -5839,14 +5855,45 @@ CompanyMemberRole = __decorateClass([
5839
5855
  (0, import_typeorm58.Entity)("company_member_roles")
5840
5856
  ], CompanyMemberRole);
5841
5857
 
5858
+ // src/entities/company-member.entity.ts
5859
+ var import_typeorm59 = require("typeorm");
5860
+ var CompanyMember = class extends BaseEntity {
5861
+ };
5862
+ __decorateClass([
5863
+ (0, import_typeorm59.Column)({ name: "user_id", type: "integer", unique: true })
5864
+ ], CompanyMember.prototype, "userId", 2);
5865
+ __decorateClass([
5866
+ (0, import_typeorm59.ManyToOne)(() => User, (user) => user.companyMember),
5867
+ (0, import_typeorm59.JoinColumn)({ name: "user_id" })
5868
+ ], CompanyMember.prototype, "user", 2);
5869
+ __decorateClass([
5870
+ (0, import_typeorm59.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
5871
+ ], CompanyMember.prototype, "firstName", 2);
5872
+ __decorateClass([
5873
+ (0, import_typeorm59.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
5874
+ ], CompanyMember.prototype, "lastName", 2);
5875
+ __decorateClass([
5876
+ (0, import_typeorm59.Column)({ name: "email", type: "varchar", nullable: true }),
5877
+ (0, import_typeorm59.Index)()
5878
+ ], CompanyMember.prototype, "email", 2);
5879
+ __decorateClass([
5880
+ (0, import_typeorm59.Column)({ name: "is_eligibl_for_recruiter_acknowledgement", type: "boolean", default: false })
5881
+ ], CompanyMember.prototype, "isEligibleForRecruiterAcknowledgement", 2);
5882
+ __decorateClass([
5883
+ (0, import_typeorm59.Column)({ name: "is_recruiter_platform_acknowledgement_accepted", type: "boolean", default: false })
5884
+ ], CompanyMember.prototype, "isRecruiterPlatformAcknowledgementAccepted", 2);
5885
+ CompanyMember = __decorateClass([
5886
+ (0, import_typeorm59.Entity)("company_members")
5887
+ ], CompanyMember);
5888
+
5842
5889
  // src/entities/assessment-answer.entity.ts
5843
- var import_typeorm61 = require("typeorm");
5890
+ var import_typeorm62 = require("typeorm");
5844
5891
 
5845
5892
  // src/entities/assessment-question.entity.ts
5846
- var import_typeorm60 = require("typeorm");
5893
+ var import_typeorm61 = require("typeorm");
5847
5894
 
5848
5895
  // src/entities/assessment-question-option.entity.ts
5849
- var import_typeorm59 = require("typeorm");
5896
+ var import_typeorm60 = require("typeorm");
5850
5897
  var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5851
5898
  AnswerTypeEnum2["CORRECT"] = "CORRECT";
5852
5899
  AnswerTypeEnum2["ACCEPTABLE"] = "ACCEPTABLE";
@@ -5856,23 +5903,23 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
5856
5903
  var AssessmetQuestionOption = class extends BaseEntity {
5857
5904
  };
5858
5905
  __decorateClass([
5859
- (0, import_typeorm59.Column)({ name: "question_id", type: "integer", nullable: true }),
5860
- (0, import_typeorm59.Index)()
5906
+ (0, import_typeorm60.Column)({ name: "question_id", type: "integer", nullable: true }),
5907
+ (0, import_typeorm60.Index)()
5861
5908
  ], AssessmetQuestionOption.prototype, "questionId", 2);
5862
5909
  __decorateClass([
5863
- (0, import_typeorm59.ManyToOne)(
5910
+ (0, import_typeorm60.ManyToOne)(
5864
5911
  () => AssessmetQuestion,
5865
5912
  (assessmentQuestion) => assessmentQuestion.options,
5866
5913
  { onDelete: "CASCADE" }
5867
5914
  // ✅ IMPORTANT
5868
5915
  ),
5869
- (0, import_typeorm59.JoinColumn)({ name: "question_id" })
5916
+ (0, import_typeorm60.JoinColumn)({ name: "question_id" })
5870
5917
  ], AssessmetQuestionOption.prototype, "question", 2);
5871
5918
  __decorateClass([
5872
- (0, import_typeorm59.Column)({ name: "text", type: "varchar", nullable: true })
5919
+ (0, import_typeorm60.Column)({ name: "text", type: "varchar", nullable: true })
5873
5920
  ], AssessmetQuestionOption.prototype, "text", 2);
5874
5921
  __decorateClass([
5875
- (0, import_typeorm59.Column)({
5922
+ (0, import_typeorm60.Column)({
5876
5923
  name: "answer_type",
5877
5924
  type: "enum",
5878
5925
  enum: AnswerTypeEnum,
@@ -5880,13 +5927,13 @@ __decorateClass([
5880
5927
  })
5881
5928
  ], AssessmetQuestionOption.prototype, "answerType", 2);
5882
5929
  __decorateClass([
5883
- (0, import_typeorm59.Column)({ name: "is_active", type: "boolean", default: true })
5930
+ (0, import_typeorm60.Column)({ name: "is_active", type: "boolean", default: true })
5884
5931
  ], AssessmetQuestionOption.prototype, "isActive", 2);
5885
5932
  __decorateClass([
5886
- (0, import_typeorm59.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5933
+ (0, import_typeorm60.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
5887
5934
  ], AssessmetQuestionOption.prototype, "selectedOptions", 2);
5888
5935
  AssessmetQuestionOption = __decorateClass([
5889
- (0, import_typeorm59.Entity)("assessment_question_options")
5936
+ (0, import_typeorm60.Entity)("assessment_question_options")
5890
5937
  ], AssessmetQuestionOption);
5891
5938
 
5892
5939
  // src/entities/assessment-question.entity.ts
@@ -5898,10 +5945,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
5898
5945
  var AssessmetQuestion = class extends BaseEntity {
5899
5946
  };
5900
5947
  __decorateClass([
5901
- (0, import_typeorm60.Column)({ name: "text", type: "varchar", nullable: true })
5948
+ (0, import_typeorm61.Column)({ name: "text", type: "varchar", nullable: true })
5902
5949
  ], AssessmetQuestion.prototype, "text", 2);
5903
5950
  __decorateClass([
5904
- (0, import_typeorm60.Column)({
5951
+ (0, import_typeorm61.Column)({
5905
5952
  name: "question_for",
5906
5953
  type: "enum",
5907
5954
  enum: QuestionForEnum,
@@ -5909,24 +5956,24 @@ __decorateClass([
5909
5956
  })
5910
5957
  ], AssessmetQuestion.prototype, "questionFor", 2);
5911
5958
  __decorateClass([
5912
- (0, import_typeorm60.Column)({ name: "is_active", type: "boolean", default: true })
5959
+ (0, import_typeorm61.Column)({ name: "is_active", type: "boolean", default: true })
5913
5960
  ], AssessmetQuestion.prototype, "isActive", 2);
5914
5961
  __decorateClass([
5915
- (0, import_typeorm60.Column)({ name: "candidate_id", type: "integer", nullable: true }),
5916
- (0, import_typeorm60.Index)()
5962
+ (0, import_typeorm61.Column)({ name: "candidate_id", type: "integer", nullable: true }),
5963
+ (0, import_typeorm61.Index)()
5917
5964
  ], AssessmetQuestion.prototype, "candidateId", 2);
5918
5965
  __decorateClass([
5919
- (0, import_typeorm60.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
5920
- (0, import_typeorm60.JoinColumn)({ name: "candidate_id" })
5966
+ (0, import_typeorm61.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
5967
+ (0, import_typeorm61.JoinColumn)({ name: "candidate_id" })
5921
5968
  ], AssessmetQuestion.prototype, "candidate", 2);
5922
5969
  __decorateClass([
5923
- (0, import_typeorm60.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5970
+ (0, import_typeorm61.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5924
5971
  ], AssessmetQuestion.prototype, "options", 2);
5925
5972
  __decorateClass([
5926
- (0, import_typeorm60.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5973
+ (0, import_typeorm61.OneToMany)(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
5927
5974
  ], AssessmetQuestion.prototype, "answers", 2);
5928
5975
  AssessmetQuestion = __decorateClass([
5929
- (0, import_typeorm60.Entity)("assessment_questions")
5976
+ (0, import_typeorm61.Entity)("assessment_questions")
5930
5977
  ], AssessmetQuestion);
5931
5978
 
5932
5979
  // src/entities/assessment-answer.entity.ts
@@ -5939,122 +5986,122 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
5939
5986
  var AssessmentAnswer = class extends BaseEntity {
5940
5987
  };
5941
5988
  __decorateClass([
5942
- (0, import_typeorm61.Column)({ name: "user_id", type: "integer" }),
5943
- (0, import_typeorm61.Index)()
5989
+ (0, import_typeorm62.Column)({ name: "user_id", type: "integer" }),
5990
+ (0, import_typeorm62.Index)()
5944
5991
  ], AssessmentAnswer.prototype, "userId", 2);
5945
5992
  __decorateClass([
5946
- (0, import_typeorm61.ManyToOne)(() => User, (user) => user.assessmentAnswers),
5947
- (0, import_typeorm61.JoinColumn)({ name: "user_id" })
5993
+ (0, import_typeorm62.ManyToOne)(() => User, (user) => user.assessmentAnswers),
5994
+ (0, import_typeorm62.JoinColumn)({ name: "user_id" })
5948
5995
  ], AssessmentAnswer.prototype, "user", 2);
5949
5996
  __decorateClass([
5950
- (0, import_typeorm61.Column)({ name: "question_id", type: "integer" }),
5951
- (0, import_typeorm61.Index)()
5997
+ (0, import_typeorm62.Column)({ name: "question_id", type: "integer" }),
5998
+ (0, import_typeorm62.Index)()
5952
5999
  ], AssessmentAnswer.prototype, "questionId", 2);
5953
6000
  __decorateClass([
5954
- (0, import_typeorm61.ManyToOne)(
6001
+ (0, import_typeorm62.ManyToOne)(
5955
6002
  () => AssessmetQuestion,
5956
6003
  (assessmentQuestion) => assessmentQuestion.answers,
5957
6004
  { onDelete: "CASCADE" }
5958
6005
  // ✅ IMPORTANT
5959
6006
  ),
5960
- (0, import_typeorm61.JoinColumn)({ name: "question_id" })
6007
+ (0, import_typeorm62.JoinColumn)({ name: "question_id" })
5961
6008
  ], AssessmentAnswer.prototype, "question", 2);
5962
6009
  __decorateClass([
5963
- (0, import_typeorm61.Column)({ name: "selected_option_id", type: "integer" }),
5964
- (0, import_typeorm61.Index)()
6010
+ (0, import_typeorm62.Column)({ name: "selected_option_id", type: "integer" }),
6011
+ (0, import_typeorm62.Index)()
5965
6012
  ], AssessmentAnswer.prototype, "selectedOptionId", 2);
5966
6013
  __decorateClass([
5967
- (0, import_typeorm61.ManyToOne)(
6014
+ (0, import_typeorm62.ManyToOne)(
5968
6015
  () => AssessmetQuestionOption,
5969
6016
  (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions,
5970
6017
  { onDelete: "CASCADE" }
5971
6018
  // ✅ IMPORTANT
5972
6019
  ),
5973
- (0, import_typeorm61.JoinColumn)({ name: "selected_option_id" })
6020
+ (0, import_typeorm62.JoinColumn)({ name: "selected_option_id" })
5974
6021
  ], AssessmentAnswer.prototype, "option", 2);
5975
6022
  __decorateClass([
5976
- (0, import_typeorm61.Column)({
6023
+ (0, import_typeorm62.Column)({
5977
6024
  name: "selected_answer_type",
5978
6025
  type: "enum",
5979
6026
  enum: SelectedAnswerTypeEnum
5980
6027
  })
5981
6028
  ], AssessmentAnswer.prototype, "selectedAnswerType", 2);
5982
6029
  __decorateClass([
5983
- (0, import_typeorm61.Column)({ name: "score", type: "float" })
6030
+ (0, import_typeorm62.Column)({ name: "score", type: "float" })
5984
6031
  ], AssessmentAnswer.prototype, "score", 2);
5985
6032
  AssessmentAnswer = __decorateClass([
5986
- (0, import_typeorm61.Entity)("assessment_answers")
6033
+ (0, import_typeorm62.Entity)("assessment_answers")
5987
6034
  ], AssessmentAnswer);
5988
6035
 
5989
6036
  // src/entities/company-skill.entity.ts
5990
- var import_typeorm62 = require("typeorm");
6037
+ var import_typeorm63 = require("typeorm");
5991
6038
  var CompanySkill = class extends BaseEntity {
5992
6039
  };
5993
6040
  // individual index to find core skills by user
5994
6041
  __decorateClass([
5995
- (0, import_typeorm62.Column)({ name: "user_id", type: "integer", nullable: true }),
5996
- (0, import_typeorm62.Index)()
6042
+ (0, import_typeorm63.Column)({ name: "user_id", type: "integer", nullable: true }),
6043
+ (0, import_typeorm63.Index)()
5997
6044
  ], CompanySkill.prototype, "userId", 2);
5998
6045
  __decorateClass([
5999
- (0, import_typeorm62.ManyToOne)(() => User, (user) => user.companySkills),
6000
- (0, import_typeorm62.JoinColumn)({ name: "user_id" })
6046
+ (0, import_typeorm63.ManyToOne)(() => User, (user) => user.companySkills),
6047
+ (0, import_typeorm63.JoinColumn)({ name: "user_id" })
6001
6048
  ], CompanySkill.prototype, "user", 2);
6002
6049
  __decorateClass([
6003
- (0, import_typeorm62.Column)({ name: "skill_name", type: "varchar", nullable: true })
6050
+ (0, import_typeorm63.Column)({ name: "skill_name", type: "varchar", nullable: true })
6004
6051
  ], CompanySkill.prototype, "skillName", 2);
6005
6052
  CompanySkill = __decorateClass([
6006
- (0, import_typeorm62.Entity)("company_skills")
6053
+ (0, import_typeorm63.Entity)("company_skills")
6007
6054
  ], CompanySkill);
6008
6055
 
6009
6056
  // src/entities/admin-user-role.entity.ts
6010
- var import_typeorm66 = require("typeorm");
6057
+ var import_typeorm67 = require("typeorm");
6011
6058
 
6012
6059
  // src/entities/admin-role.entity.ts
6013
- var import_typeorm65 = require("typeorm");
6060
+ var import_typeorm66 = require("typeorm");
6014
6061
 
6015
6062
  // src/entities/admin-role-permission.entity.ts
6016
- var import_typeorm64 = require("typeorm");
6063
+ var import_typeorm65 = require("typeorm");
6017
6064
 
6018
6065
  // src/entities/admin-permission.entity.ts
6019
- var import_typeorm63 = require("typeorm");
6066
+ var import_typeorm64 = require("typeorm");
6020
6067
  var AdminPermission = class extends BaseEntity {
6021
6068
  };
6022
6069
  __decorateClass([
6023
- (0, import_typeorm63.Column)({ name: "permission_name", type: "varchar", nullable: true })
6070
+ (0, import_typeorm64.Column)({ name: "permission_name", type: "varchar", nullable: true })
6024
6071
  ], AdminPermission.prototype, "permissionName", 2);
6025
6072
  __decorateClass([
6026
- (0, import_typeorm63.Column)({
6073
+ (0, import_typeorm64.Column)({
6027
6074
  name: "permission_slug",
6028
6075
  type: "varchar",
6029
6076
  unique: true,
6030
6077
  nullable: true
6031
6078
  }),
6032
- (0, import_typeorm63.Index)()
6079
+ (0, import_typeorm64.Index)()
6033
6080
  ], AdminPermission.prototype, "permissionSlug", 2);
6034
6081
  __decorateClass([
6035
- (0, import_typeorm63.Column)({ name: "permission_description", type: "varchar", nullable: true })
6082
+ (0, import_typeorm64.Column)({ name: "permission_description", type: "varchar", nullable: true })
6036
6083
  ], AdminPermission.prototype, "permissionDescription", 2);
6037
6084
  __decorateClass([
6038
- (0, import_typeorm63.Column)({ name: "module", type: "varchar", nullable: true })
6085
+ (0, import_typeorm64.Column)({ name: "module", type: "varchar", nullable: true })
6039
6086
  ], AdminPermission.prototype, "module", 2);
6040
6087
  __decorateClass([
6041
- (0, import_typeorm63.Column)({ name: "is_active", type: "boolean", default: true })
6088
+ (0, import_typeorm64.Column)({ name: "is_active", type: "boolean", default: true })
6042
6089
  ], AdminPermission.prototype, "isActive", 2);
6043
6090
  __decorateClass([
6044
- (0, import_typeorm63.OneToMany)(
6091
+ (0, import_typeorm64.OneToMany)(
6045
6092
  () => AdminRolePermission,
6046
6093
  (adminRolePermission) => adminRolePermission.adminPermissions
6047
6094
  )
6048
6095
  ], AdminPermission.prototype, "adminRole", 2);
6049
6096
  AdminPermission = __decorateClass([
6050
- (0, import_typeorm63.Entity)("admin_permissions")
6097
+ (0, import_typeorm64.Entity)("admin_permissions")
6051
6098
  ], AdminPermission);
6052
6099
 
6053
6100
  // src/entities/admin-role-permission.entity.ts
6054
6101
  var AdminRolePermission = class extends BaseEntity {
6055
6102
  };
6056
6103
  __decorateClass([
6057
- (0, import_typeorm64.Column)({
6104
+ (0, import_typeorm65.Column)({
6058
6105
  name: "role_id",
6059
6106
  type: "int",
6060
6107
  nullable: true,
@@ -6062,11 +6109,11 @@ __decorateClass([
6062
6109
  })
6063
6110
  ], AdminRolePermission.prototype, "roleId", 2);
6064
6111
  __decorateClass([
6065
- (0, import_typeorm64.ManyToOne)(() => AdminRole),
6066
- (0, import_typeorm64.JoinColumn)({ name: "role_id" })
6112
+ (0, import_typeorm65.ManyToOne)(() => AdminRole),
6113
+ (0, import_typeorm65.JoinColumn)({ name: "role_id" })
6067
6114
  ], AdminRolePermission.prototype, "adminRole", 2);
6068
6115
  __decorateClass([
6069
- (0, import_typeorm64.Column)({
6116
+ (0, import_typeorm65.Column)({
6070
6117
  name: "permission_id",
6071
6118
  type: "int",
6072
6119
  nullable: true,
@@ -6074,47 +6121,47 @@ __decorateClass([
6074
6121
  })
6075
6122
  ], AdminRolePermission.prototype, "permissionId", 2);
6076
6123
  __decorateClass([
6077
- (0, import_typeorm64.ManyToOne)(() => AdminPermission),
6078
- (0, import_typeorm64.JoinColumn)({ name: "permission_id" })
6124
+ (0, import_typeorm65.ManyToOne)(() => AdminPermission),
6125
+ (0, import_typeorm65.JoinColumn)({ name: "permission_id" })
6079
6126
  ], AdminRolePermission.prototype, "adminPermissions", 2);
6080
6127
  AdminRolePermission = __decorateClass([
6081
- (0, import_typeorm64.Entity)("admin_role_permissions")
6128
+ (0, import_typeorm65.Entity)("admin_role_permissions")
6082
6129
  ], AdminRolePermission);
6083
6130
 
6084
6131
  // src/entities/admin-role.entity.ts
6085
6132
  var AdminRole = class extends BaseEntity {
6086
6133
  };
6087
6134
  __decorateClass([
6088
- (0, import_typeorm65.Column)({ name: "role_name", type: "varchar", nullable: true })
6135
+ (0, import_typeorm66.Column)({ name: "role_name", type: "varchar", nullable: true })
6089
6136
  ], AdminRole.prototype, "roleName", 2);
6090
6137
  __decorateClass([
6091
- (0, import_typeorm65.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
6092
- (0, import_typeorm65.Index)()
6138
+ (0, import_typeorm66.Column)({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
6139
+ (0, import_typeorm66.Index)()
6093
6140
  ], AdminRole.prototype, "roleSlug", 2);
6094
6141
  __decorateClass([
6095
- (0, import_typeorm65.Column)({ name: "role_description", type: "varchar", nullable: true })
6142
+ (0, import_typeorm66.Column)({ name: "role_description", type: "varchar", nullable: true })
6096
6143
  ], AdminRole.prototype, "roleDescription", 2);
6097
6144
  __decorateClass([
6098
- (0, import_typeorm65.Column)({ name: "is_active", type: "boolean", default: true })
6145
+ (0, import_typeorm66.Column)({ name: "is_active", type: "boolean", default: true })
6099
6146
  ], AdminRole.prototype, "isActive", 2);
6100
6147
  __decorateClass([
6101
- (0, import_typeorm65.OneToMany)(
6148
+ (0, import_typeorm66.OneToMany)(
6102
6149
  () => AdminRolePermission,
6103
6150
  (addminRolePermission) => addminRolePermission.adminRole
6104
6151
  )
6105
6152
  ], AdminRole.prototype, "adminRolePermission", 2);
6106
6153
  __decorateClass([
6107
- (0, import_typeorm65.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
6154
+ (0, import_typeorm66.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
6108
6155
  ], AdminRole.prototype, "userRoles", 2);
6109
6156
  AdminRole = __decorateClass([
6110
- (0, import_typeorm65.Entity)("admin_roles")
6157
+ (0, import_typeorm66.Entity)("admin_roles")
6111
6158
  ], AdminRole);
6112
6159
 
6113
6160
  // src/entities/admin-user-role.entity.ts
6114
6161
  var AdminUserRole = class extends BaseEntity {
6115
6162
  };
6116
6163
  __decorateClass([
6117
- (0, import_typeorm66.Column)({
6164
+ (0, import_typeorm67.Column)({
6118
6165
  name: "user_id",
6119
6166
  type: "int",
6120
6167
  nullable: true,
@@ -6122,11 +6169,11 @@ __decorateClass([
6122
6169
  })
6123
6170
  ], AdminUserRole.prototype, "userId", 2);
6124
6171
  __decorateClass([
6125
- (0, import_typeorm66.ManyToOne)(() => User),
6126
- (0, import_typeorm66.JoinColumn)({ name: "user_id" })
6172
+ (0, import_typeorm67.ManyToOne)(() => User),
6173
+ (0, import_typeorm67.JoinColumn)({ name: "user_id" })
6127
6174
  ], AdminUserRole.prototype, "user", 2);
6128
6175
  __decorateClass([
6129
- (0, import_typeorm66.Column)({
6176
+ (0, import_typeorm67.Column)({
6130
6177
  name: "role_id",
6131
6178
  type: "int",
6132
6179
  nullable: true,
@@ -6134,58 +6181,58 @@ __decorateClass([
6134
6181
  })
6135
6182
  ], AdminUserRole.prototype, "roleId", 2);
6136
6183
  __decorateClass([
6137
- (0, import_typeorm66.ManyToOne)(() => AdminRole),
6138
- (0, import_typeorm66.JoinColumn)({ name: "role_id" })
6184
+ (0, import_typeorm67.ManyToOne)(() => AdminRole),
6185
+ (0, import_typeorm67.JoinColumn)({ name: "role_id" })
6139
6186
  ], AdminUserRole.prototype, "adminRole", 2);
6140
6187
  AdminUserRole = __decorateClass([
6141
- (0, import_typeorm66.Entity)("admin_user_roles")
6188
+ (0, import_typeorm67.Entity)("admin_user_roles")
6142
6189
  ], AdminUserRole);
6143
6190
 
6144
6191
  // src/entities/freelancer-resume.entity.ts
6145
- var import_typeorm67 = require("typeorm");
6192
+ var import_typeorm68 = require("typeorm");
6146
6193
  var FreelancerResume = class extends BaseEntity {
6147
6194
  };
6148
6195
  // individual index to find profile by user
6149
6196
  __decorateClass([
6150
- (0, import_typeorm67.Column)({ name: "user_id", type: "integer", nullable: true }),
6151
- (0, import_typeorm67.Index)()
6197
+ (0, import_typeorm68.Column)({ name: "user_id", type: "integer", nullable: true }),
6198
+ (0, import_typeorm68.Index)()
6152
6199
  ], FreelancerResume.prototype, "userId", 2);
6153
6200
  __decorateClass([
6154
- (0, import_typeorm67.ManyToOne)(() => User, (user) => user.freelancerProfile),
6155
- (0, import_typeorm67.JoinColumn)({ name: "user_id" })
6201
+ (0, import_typeorm68.ManyToOne)(() => User, (user) => user.freelancerProfile),
6202
+ (0, import_typeorm68.JoinColumn)({ name: "user_id" })
6156
6203
  ], FreelancerResume.prototype, "user", 2);
6157
6204
  __decorateClass([
6158
- (0, import_typeorm67.Column)({ name: "resume_data", type: "jsonb", nullable: true })
6205
+ (0, import_typeorm68.Column)({ name: "resume_data", type: "jsonb", nullable: true })
6159
6206
  ], FreelancerResume.prototype, "resumeData", 2);
6160
6207
  __decorateClass([
6161
- (0, import_typeorm67.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
6208
+ (0, import_typeorm68.Column)({ name: "processed_resume_data", type: "jsonb", nullable: true })
6162
6209
  ], FreelancerResume.prototype, "processedResumeData", 2);
6163
6210
  FreelancerResume = __decorateClass([
6164
- (0, import_typeorm67.Entity)("freelancer_resumes")
6211
+ (0, import_typeorm68.Entity)("freelancer_resumes")
6165
6212
  ], FreelancerResume);
6166
6213
 
6167
6214
  // src/entities/signature.entity.ts
6168
- var import_typeorm68 = require("typeorm");
6215
+ var import_typeorm69 = require("typeorm");
6169
6216
  var Signature = class extends BaseEntity {
6170
6217
  };
6171
6218
  // individual index to find profile by user
6172
6219
  __decorateClass([
6173
- (0, import_typeorm68.Column)({ name: "user_id", type: "integer", nullable: true }),
6174
- (0, import_typeorm68.Index)()
6220
+ (0, import_typeorm69.Column)({ name: "user_id", type: "integer", nullable: true }),
6221
+ (0, import_typeorm69.Index)()
6175
6222
  ], Signature.prototype, "userId", 2);
6176
6223
  __decorateClass([
6177
- (0, import_typeorm68.ManyToOne)(() => User, (user) => user.signatures),
6178
- (0, import_typeorm68.JoinColumn)({ name: "user_id" })
6224
+ (0, import_typeorm69.ManyToOne)(() => User, (user) => user.signatures),
6225
+ (0, import_typeorm69.JoinColumn)({ name: "user_id" })
6179
6226
  ], Signature.prototype, "user", 2);
6180
6227
  __decorateClass([
6181
- (0, import_typeorm68.Column)({ name: "signature_url", type: "text", nullable: true })
6228
+ (0, import_typeorm69.Column)({ name: "signature_url", type: "text", nullable: true })
6182
6229
  ], Signature.prototype, "signatureUrl", 2);
6183
6230
  Signature = __decorateClass([
6184
- (0, import_typeorm68.Entity)("signatures")
6231
+ (0, import_typeorm69.Entity)("signatures")
6185
6232
  ], Signature);
6186
6233
 
6187
6234
  // src/entities/dispute.entity.ts
6188
- var import_typeorm69 = require("typeorm");
6235
+ var import_typeorm70 = require("typeorm");
6189
6236
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
6190
6237
  DisputeStatusEnum2["OPEN"] = "OPEN";
6191
6238
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -6206,36 +6253,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
6206
6253
  var Dispute = class extends BaseEntity {
6207
6254
  };
6208
6255
  __decorateClass([
6209
- (0, import_typeorm69.Column)({ name: "client_id", type: "integer", nullable: true }),
6210
- (0, import_typeorm69.Index)()
6256
+ (0, import_typeorm70.Column)({ name: "client_id", type: "integer", nullable: true }),
6257
+ (0, import_typeorm70.Index)()
6211
6258
  ], Dispute.prototype, "clientId", 2);
6212
6259
  __decorateClass([
6213
- (0, import_typeorm69.ManyToOne)(() => User, (user) => user.clientDisputes),
6214
- (0, import_typeorm69.JoinColumn)({ name: "client_id" })
6260
+ (0, import_typeorm70.ManyToOne)(() => User, (user) => user.clientDisputes),
6261
+ (0, import_typeorm70.JoinColumn)({ name: "client_id" })
6215
6262
  ], Dispute.prototype, "client", 2);
6216
6263
  __decorateClass([
6217
- (0, import_typeorm69.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
6218
- (0, import_typeorm69.Index)()
6264
+ (0, import_typeorm70.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
6265
+ (0, import_typeorm70.Index)()
6219
6266
  ], Dispute.prototype, "freelancerId", 2);
6220
6267
  __decorateClass([
6221
- (0, import_typeorm69.ManyToOne)(() => User, (user) => user.freelancerDisputes),
6222
- (0, import_typeorm69.JoinColumn)({ name: "freelancer_id" })
6268
+ (0, import_typeorm70.ManyToOne)(() => User, (user) => user.freelancerDisputes),
6269
+ (0, import_typeorm70.JoinColumn)({ name: "freelancer_id" })
6223
6270
  ], Dispute.prototype, "freelancer", 2);
6224
6271
  __decorateClass([
6225
- (0, import_typeorm69.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
6272
+ (0, import_typeorm70.Column)({ name: "dispute_unique_id", type: "varchar", unique: true })
6226
6273
  ], Dispute.prototype, "disputeUniqueId", 2);
6227
6274
  __decorateClass([
6228
- (0, import_typeorm69.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
6229
- (0, import_typeorm69.Index)()
6275
+ (0, import_typeorm70.Column)({ name: "dispute_type", type: "varchar", nullable: true }),
6276
+ (0, import_typeorm70.Index)()
6230
6277
  ], Dispute.prototype, "disputeType", 2);
6231
6278
  __decorateClass([
6232
- (0, import_typeorm69.Column)({ name: "description", type: "varchar", nullable: true })
6279
+ (0, import_typeorm70.Column)({ name: "description", type: "varchar", nullable: true })
6233
6280
  ], Dispute.prototype, "description", 2);
6234
6281
  __decorateClass([
6235
- (0, import_typeorm69.Column)({ name: "comment", type: "varchar", nullable: true })
6282
+ (0, import_typeorm70.Column)({ name: "comment", type: "varchar", nullable: true })
6236
6283
  ], Dispute.prototype, "comment", 2);
6237
6284
  __decorateClass([
6238
- (0, import_typeorm69.Column)({
6285
+ (0, import_typeorm70.Column)({
6239
6286
  name: "status",
6240
6287
  type: "enum",
6241
6288
  enum: DisputeStatusEnum,
@@ -6243,7 +6290,7 @@ __decorateClass([
6243
6290
  })
6244
6291
  ], Dispute.prototype, "status", 2);
6245
6292
  __decorateClass([
6246
- (0, import_typeorm69.Column)({
6293
+ (0, import_typeorm70.Column)({
6247
6294
  name: "initiator_type",
6248
6295
  type: "enum",
6249
6296
  enum: InitiatorTypeEnum,
@@ -6252,33 +6299,33 @@ __decorateClass([
6252
6299
  })
6253
6300
  ], Dispute.prototype, "initiatorType", 2);
6254
6301
  __decorateClass([
6255
- (0, import_typeorm69.Column)({ name: "initiator_id", type: "integer" }),
6256
- (0, import_typeorm69.Index)()
6302
+ (0, import_typeorm70.Column)({ name: "initiator_id", type: "integer" }),
6303
+ (0, import_typeorm70.Index)()
6257
6304
  ], Dispute.prototype, "initiatorId", 2);
6258
6305
  __decorateClass([
6259
- (0, import_typeorm69.ManyToOne)(() => User, (user) => user.initiatedDisputes),
6260
- (0, import_typeorm69.JoinColumn)({ name: "initiator_id" })
6306
+ (0, import_typeorm70.ManyToOne)(() => User, (user) => user.initiatedDisputes),
6307
+ (0, import_typeorm70.JoinColumn)({ name: "initiator_id" })
6261
6308
  ], Dispute.prototype, "initiator", 2);
6262
6309
  __decorateClass([
6263
- (0, import_typeorm69.Column)({ name: "respondent_id", type: "integer", nullable: true }),
6264
- (0, import_typeorm69.Index)()
6310
+ (0, import_typeorm70.Column)({ name: "respondent_id", type: "integer", nullable: true }),
6311
+ (0, import_typeorm70.Index)()
6265
6312
  ], Dispute.prototype, "respondentId", 2);
6266
6313
  __decorateClass([
6267
- (0, import_typeorm69.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
6268
- (0, import_typeorm69.JoinColumn)({ name: "respondent_id" })
6314
+ (0, import_typeorm70.ManyToOne)(() => User, (user) => user.respondentDisputes, { nullable: true }),
6315
+ (0, import_typeorm70.JoinColumn)({ name: "respondent_id" })
6269
6316
  ], Dispute.prototype, "respondent", 2);
6270
6317
  __decorateClass([
6271
- (0, import_typeorm69.Column)({ name: "attachments", type: "jsonb", nullable: true })
6318
+ (0, import_typeorm70.Column)({ name: "attachments", type: "jsonb", nullable: true })
6272
6319
  ], Dispute.prototype, "attachments", 2);
6273
6320
  __decorateClass([
6274
- (0, import_typeorm69.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
6321
+ (0, import_typeorm70.Column)({ name: "dynamic_fields", type: "jsonb", nullable: true })
6275
6322
  ], Dispute.prototype, "dynamicFields", 2);
6276
6323
  Dispute = __decorateClass([
6277
- (0, import_typeorm69.Entity)("disputes")
6324
+ (0, import_typeorm70.Entity)("disputes")
6278
6325
  ], Dispute);
6279
6326
 
6280
6327
  // src/entities/stripe-transaction.entity.ts
6281
- var import_typeorm70 = require("typeorm");
6328
+ var import_typeorm71 = require("typeorm");
6282
6329
  var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
6283
6330
  StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
6284
6331
  StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -6300,97 +6347,97 @@ var StripeTransaction = class extends BaseEntity {
6300
6347
  // Full Stripe session response
6301
6348
  };
6302
6349
  __decorateClass([
6303
- (0, import_typeorm70.Column)({ name: "user_id", type: "integer", nullable: true }),
6304
- (0, import_typeorm70.Index)()
6350
+ (0, import_typeorm71.Column)({ name: "user_id", type: "integer", nullable: true }),
6351
+ (0, import_typeorm71.Index)()
6305
6352
  ], StripeTransaction.prototype, "userId", 2);
6306
6353
  __decorateClass([
6307
- (0, import_typeorm70.ManyToOne)(() => User, (user) => user.stripeTransactions),
6308
- (0, import_typeorm70.JoinColumn)({ name: "user_id" })
6354
+ (0, import_typeorm71.ManyToOne)(() => User, (user) => user.stripeTransactions),
6355
+ (0, import_typeorm71.JoinColumn)({ name: "user_id" })
6309
6356
  ], StripeTransaction.prototype, "user", 2);
6310
6357
  __decorateClass([
6311
- (0, import_typeorm70.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
6358
+ (0, import_typeorm71.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
6312
6359
  ], StripeTransaction.prototype, "stripeSessionId", 2);
6313
6360
  __decorateClass([
6314
- (0, import_typeorm70.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
6361
+ (0, import_typeorm71.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
6315
6362
  ], StripeTransaction.prototype, "stripePaymentIntentId", 2);
6316
6363
  __decorateClass([
6317
- (0, import_typeorm70.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
6364
+ (0, import_typeorm71.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
6318
6365
  ], StripeTransaction.prototype, "stripeChargeId", 2);
6319
6366
  __decorateClass([
6320
- (0, import_typeorm70.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
6367
+ (0, import_typeorm71.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
6321
6368
  ], StripeTransaction.prototype, "stripeReceiptUrl", 2);
6322
6369
  __decorateClass([
6323
- (0, import_typeorm70.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
6370
+ (0, import_typeorm71.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
6324
6371
  ], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
6325
6372
  __decorateClass([
6326
- (0, import_typeorm70.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
6373
+ (0, import_typeorm71.Column)({ name: "stripe_payment_method", type: "varchar", nullable: true })
6327
6374
  ], StripeTransaction.prototype, "stripePaymentMethod", 2);
6328
6375
  __decorateClass([
6329
- (0, import_typeorm70.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
6376
+ (0, import_typeorm71.Column)({ name: "stripe_payment_status", type: "varchar", nullable: true })
6330
6377
  ], StripeTransaction.prototype, "stripePaymentStatus", 2);
6331
6378
  __decorateClass([
6332
- (0, import_typeorm70.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
6379
+ (0, import_typeorm71.Column)({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
6333
6380
  ], StripeTransaction.prototype, "type", 2);
6334
6381
  __decorateClass([
6335
- (0, import_typeorm70.Column)({ name: "currency", type: "varchar", nullable: true })
6382
+ (0, import_typeorm71.Column)({ name: "currency", type: "varchar", nullable: true })
6336
6383
  ], StripeTransaction.prototype, "currency", 2);
6337
6384
  __decorateClass([
6338
- (0, import_typeorm70.Column)({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
6385
+ (0, import_typeorm71.Column)({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
6339
6386
  ], StripeTransaction.prototype, "desiredDepositCents", 2);
6340
6387
  __decorateClass([
6341
- (0, import_typeorm70.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
6388
+ (0, import_typeorm71.Column)({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
6342
6389
  ], StripeTransaction.prototype, "platformFeeCents", 2);
6343
6390
  __decorateClass([
6344
- (0, import_typeorm70.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
6391
+ (0, import_typeorm71.Column)({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
6345
6392
  ], StripeTransaction.prototype, "taxCents", 2);
6346
6393
  __decorateClass([
6347
- (0, import_typeorm70.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
6394
+ (0, import_typeorm71.Column)({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
6348
6395
  ], StripeTransaction.prototype, "estimatedStripeFee", 2);
6349
6396
  __decorateClass([
6350
- (0, import_typeorm70.Column)({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
6397
+ (0, import_typeorm71.Column)({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
6351
6398
  ], StripeTransaction.prototype, "estimatedTotalCents", 2);
6352
6399
  __decorateClass([
6353
- (0, import_typeorm70.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
6400
+ (0, import_typeorm71.Column)({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
6354
6401
  ], StripeTransaction.prototype, "actualStripeFee", 2);
6355
6402
  __decorateClass([
6356
- (0, import_typeorm70.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
6403
+ (0, import_typeorm71.Column)({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
6357
6404
  ], StripeTransaction.prototype, "actualTotalPaidCents", 2);
6358
6405
  __decorateClass([
6359
- (0, import_typeorm70.Column)({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
6406
+ (0, import_typeorm71.Column)({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
6360
6407
  ], StripeTransaction.prototype, "netReceivedCents", 2);
6361
6408
  __decorateClass([
6362
- (0, import_typeorm70.Column)({ name: "description", type: "text", nullable: true })
6409
+ (0, import_typeorm71.Column)({ name: "description", type: "text", nullable: true })
6363
6410
  ], StripeTransaction.prototype, "description", 2);
6364
6411
  __decorateClass([
6365
- (0, import_typeorm70.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6412
+ (0, import_typeorm71.Column)({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6366
6413
  ], StripeTransaction.prototype, "status", 2);
6367
6414
  __decorateClass([
6368
- (0, import_typeorm70.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
6415
+ (0, import_typeorm71.Column)({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
6369
6416
  ], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
6370
6417
  __decorateClass([
6371
- (0, import_typeorm70.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
6418
+ (0, import_typeorm71.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
6372
6419
  ], StripeTransaction.prototype, "completedAt", 2);
6373
6420
  __decorateClass([
6374
- (0, import_typeorm70.Column)({ name: "billing_details", type: "jsonb", nullable: true })
6421
+ (0, import_typeorm71.Column)({ name: "billing_details", type: "jsonb", nullable: true })
6375
6422
  ], StripeTransaction.prototype, "billingDetails", 2);
6376
6423
  __decorateClass([
6377
- (0, import_typeorm70.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
6424
+ (0, import_typeorm71.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
6378
6425
  ], StripeTransaction.prototype, "paymentMethodDetails", 2);
6379
6426
  __decorateClass([
6380
- (0, import_typeorm70.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
6427
+ (0, import_typeorm71.Column)({ name: "raw_session_payload", type: "jsonb", nullable: true })
6381
6428
  ], StripeTransaction.prototype, "rawSessionPayload", 2);
6382
6429
  __decorateClass([
6383
- (0, import_typeorm70.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
6430
+ (0, import_typeorm71.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
6384
6431
  ], StripeTransaction.prototype, "rawSessionResponse", 2);
6385
6432
  StripeTransaction = __decorateClass([
6386
- (0, import_typeorm70.Entity)("stripe_transactions")
6433
+ (0, import_typeorm71.Entity)("stripe_transactions")
6387
6434
  ], StripeTransaction);
6388
6435
 
6389
6436
  // src/entities/wallet.entity.ts
6390
- var import_typeorm72 = require("typeorm");
6437
+ var import_typeorm73 = require("typeorm");
6391
6438
 
6392
6439
  // src/entities/wallet-transaction.entity.ts
6393
- var import_typeorm71 = require("typeorm");
6440
+ var import_typeorm72 = require("typeorm");
6394
6441
  var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
6395
6442
  WalletTransactionTypeEnum2["CR"] = "CR";
6396
6443
  WalletTransactionTypeEnum2["DR"] = "DR";
@@ -6407,46 +6454,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
6407
6454
  var WalletTransaction = class extends BaseEntity {
6408
6455
  };
6409
6456
  __decorateClass([
6410
- (0, import_typeorm71.Column)({ name: "wallet_id", type: "integer", nullable: true }),
6411
- (0, import_typeorm71.Index)()
6457
+ (0, import_typeorm72.Column)({ name: "wallet_id", type: "integer", nullable: true }),
6458
+ (0, import_typeorm72.Index)()
6412
6459
  ], WalletTransaction.prototype, "walletId", 2);
6413
6460
  __decorateClass([
6414
- (0, import_typeorm71.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
6415
- (0, import_typeorm71.JoinColumn)({ name: "wallet_id" })
6461
+ (0, import_typeorm72.ManyToOne)(() => Wallet, (wallet) => wallet.walletTransactions),
6462
+ (0, import_typeorm72.JoinColumn)({ name: "wallet_id" })
6416
6463
  ], WalletTransaction.prototype, "wallet", 2);
6417
6464
  __decorateClass([
6418
- (0, import_typeorm71.Column)({ name: "amount", type: "bigint", nullable: true })
6465
+ (0, import_typeorm72.Column)({ name: "amount", type: "bigint", nullable: true })
6419
6466
  ], WalletTransaction.prototype, "amount", 2);
6420
6467
  __decorateClass([
6421
- (0, import_typeorm71.Column)({ name: "balance_before", type: "bigint", nullable: true })
6468
+ (0, import_typeorm72.Column)({ name: "balance_before", type: "bigint", nullable: true })
6422
6469
  ], WalletTransaction.prototype, "balanceBefore", 2);
6423
6470
  __decorateClass([
6424
- (0, import_typeorm71.Column)({ name: "balance_after", type: "bigint", nullable: true })
6471
+ (0, import_typeorm72.Column)({ name: "balance_after", type: "bigint", nullable: true })
6425
6472
  ], WalletTransaction.prototype, "balanceAfter", 2);
6426
6473
  __decorateClass([
6427
- (0, import_typeorm71.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
6474
+ (0, import_typeorm72.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
6428
6475
  ], WalletTransaction.prototype, "type", 2);
6429
6476
  __decorateClass([
6430
- (0, import_typeorm71.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6477
+ (0, import_typeorm72.Column)({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
6431
6478
  ], WalletTransaction.prototype, "status", 2);
6432
6479
  __decorateClass([
6433
- (0, import_typeorm71.Column)({ name: "description", type: "text", nullable: true })
6480
+ (0, import_typeorm72.Column)({ name: "description", type: "text", nullable: true })
6434
6481
  ], WalletTransaction.prototype, "description", 2);
6435
6482
  __decorateClass([
6436
- (0, import_typeorm71.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
6483
+ (0, import_typeorm72.Column)({ name: "completed_at", type: "timestamptz", nullable: true })
6437
6484
  ], WalletTransaction.prototype, "completedAt", 2);
6438
6485
  __decorateClass([
6439
- (0, import_typeorm71.Column)({ name: "transaction_for", type: "varchar", nullable: true })
6486
+ (0, import_typeorm72.Column)({ name: "transaction_for", type: "varchar", nullable: true })
6440
6487
  ], WalletTransaction.prototype, "transactionFor", 2);
6441
6488
  __decorateClass([
6442
- (0, import_typeorm71.Column)({ name: "meta_data", type: "varchar", nullable: true })
6489
+ (0, import_typeorm72.Column)({ name: "meta_data", type: "varchar", nullable: true })
6443
6490
  ], WalletTransaction.prototype, "metaData", 2);
6444
6491
  __decorateClass([
6445
- (0, import_typeorm71.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
6446
- (0, import_typeorm71.Index)()
6492
+ (0, import_typeorm72.Column)({ name: "stripe_transaction_id", type: "integer", nullable: true }),
6493
+ (0, import_typeorm72.Index)()
6447
6494
  ], WalletTransaction.prototype, "stripeTransactionId", 2);
6448
6495
  WalletTransaction = __decorateClass([
6449
- (0, import_typeorm71.Entity)("wallet_transactions")
6496
+ (0, import_typeorm72.Entity)("wallet_transactions")
6450
6497
  ], WalletTransaction);
6451
6498
 
6452
6499
  // src/entities/wallet.entity.ts
@@ -6464,43 +6511,43 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
6464
6511
  var Wallet = class extends BaseEntity {
6465
6512
  };
6466
6513
  __decorateClass([
6467
- (0, import_typeorm72.Column)({ name: "user_id", type: "integer", nullable: true }),
6468
- (0, import_typeorm72.Index)()
6514
+ (0, import_typeorm73.Column)({ name: "user_id", type: "integer", nullable: true }),
6515
+ (0, import_typeorm73.Index)()
6469
6516
  ], Wallet.prototype, "userId", 2);
6470
6517
  __decorateClass([
6471
- (0, import_typeorm72.OneToOne)(() => User, (user) => user.wallet),
6472
- (0, import_typeorm72.JoinColumn)({ name: "user_id" })
6518
+ (0, import_typeorm73.OneToOne)(() => User, (user) => user.wallet),
6519
+ (0, import_typeorm73.JoinColumn)({ name: "user_id" })
6473
6520
  ], Wallet.prototype, "user", 2);
6474
6521
  __decorateClass([
6475
- (0, import_typeorm72.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
6522
+ (0, import_typeorm73.Column)({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
6476
6523
  ], Wallet.prototype, "accountType", 2);
6477
6524
  __decorateClass([
6478
- (0, import_typeorm72.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
6525
+ (0, import_typeorm73.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
6479
6526
  ], Wallet.prototype, "stripeAccountId", 2);
6480
6527
  __decorateClass([
6481
- (0, import_typeorm72.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
6528
+ (0, import_typeorm73.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
6482
6529
  ], Wallet.prototype, "stripeCustomerId", 2);
6483
6530
  __decorateClass([
6484
- (0, import_typeorm72.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
6531
+ (0, import_typeorm73.Column)({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
6485
6532
  ], Wallet.prototype, "walletBalance", 2);
6486
6533
  __decorateClass([
6487
- (0, import_typeorm72.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
6534
+ (0, import_typeorm73.Column)({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
6488
6535
  ], Wallet.prototype, "walletBalanceCents", 2);
6489
6536
  __decorateClass([
6490
- (0, import_typeorm72.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
6537
+ (0, import_typeorm73.Column)({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
6491
6538
  ], Wallet.prototype, "onboardingStatus", 2);
6492
6539
  __decorateClass([
6493
- (0, import_typeorm72.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
6540
+ (0, import_typeorm73.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
6494
6541
  ], Wallet.prototype, "stripeMetadata", 2);
6495
6542
  __decorateClass([
6496
- (0, import_typeorm72.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
6543
+ (0, import_typeorm73.OneToMany)(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
6497
6544
  ], Wallet.prototype, "walletTransactions", 2);
6498
6545
  Wallet = __decorateClass([
6499
- (0, import_typeorm72.Entity)("wallets")
6546
+ (0, import_typeorm73.Entity)("wallets")
6500
6547
  ], Wallet);
6501
6548
 
6502
6549
  // src/entities/freelancer-assessment-request.entity.ts
6503
- var import_typeorm73 = require("typeorm");
6550
+ var import_typeorm74 = require("typeorm");
6504
6551
  var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
6505
6552
  AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
6506
6553
  AssessmentRequestStatusEnum2["APPROVED"] = "APPROVED";
@@ -6510,23 +6557,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
6510
6557
  var FreelancerAssessmentRequest = class extends BaseEntity {
6511
6558
  };
6512
6559
  __decorateClass([
6513
- (0, import_typeorm73.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
6514
- (0, import_typeorm73.Index)()
6560
+ (0, import_typeorm74.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
6561
+ (0, import_typeorm74.Index)()
6515
6562
  ], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
6516
6563
  __decorateClass([
6517
- (0, import_typeorm73.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
6518
- (0, import_typeorm73.JoinColumn)({ name: "freelancer_id" })
6564
+ (0, import_typeorm74.ManyToOne)(() => User, (user) => user.freelancerAssessmentRequests),
6565
+ (0, import_typeorm74.JoinColumn)({ name: "freelancer_id" })
6519
6566
  ], FreelancerAssessmentRequest.prototype, "freelancer", 2);
6520
6567
  __decorateClass([
6521
- (0, import_typeorm73.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
6522
- (0, import_typeorm73.Index)()
6568
+ (0, import_typeorm74.Column)({ name: "approved_by_id", type: "integer", nullable: true }),
6569
+ (0, import_typeorm74.Index)()
6523
6570
  ], FreelancerAssessmentRequest.prototype, "approvedById", 2);
6524
6571
  __decorateClass([
6525
- (0, import_typeorm73.ManyToOne)(() => User, (user) => user.assessmentRequests),
6526
- (0, import_typeorm73.JoinColumn)({ name: "approved_by_id" })
6572
+ (0, import_typeorm74.ManyToOne)(() => User, (user) => user.assessmentRequests),
6573
+ (0, import_typeorm74.JoinColumn)({ name: "approved_by_id" })
6527
6574
  ], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
6528
6575
  __decorateClass([
6529
- (0, import_typeorm73.Column)({
6576
+ (0, import_typeorm74.Column)({
6530
6577
  name: "status",
6531
6578
  type: "enum",
6532
6579
  enum: AssessmentRequestStatusEnum,
@@ -6534,89 +6581,89 @@ __decorateClass([
6534
6581
  })
6535
6582
  ], FreelancerAssessmentRequest.prototype, "status", 2);
6536
6583
  __decorateClass([
6537
- (0, import_typeorm73.Column)({ name: "assessment_link", type: "text", nullable: true })
6584
+ (0, import_typeorm74.Column)({ name: "assessment_link", type: "text", nullable: true })
6538
6585
  ], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
6539
6586
  FreelancerAssessmentRequest = __decorateClass([
6540
- (0, import_typeorm73.Entity)({ name: "freelancer_assessment_requests" })
6587
+ (0, import_typeorm74.Entity)({ name: "freelancer_assessment_requests" })
6541
6588
  ], FreelancerAssessmentRequest);
6542
6589
 
6543
6590
  // src/entities/in-app-notification.entity.ts
6544
- var import_typeorm74 = require("typeorm");
6591
+ var import_typeorm75 = require("typeorm");
6545
6592
  var InAppNotification = class extends BaseEntity {
6546
6593
  };
6547
6594
  __decorateClass([
6548
- (0, import_typeorm74.Column)({ name: "user_id", type: "integer", nullable: true }),
6549
- (0, import_typeorm74.Index)()
6595
+ (0, import_typeorm75.Column)({ name: "user_id", type: "integer", nullable: true }),
6596
+ (0, import_typeorm75.Index)()
6550
6597
  ], InAppNotification.prototype, "userId", 2);
6551
6598
  __decorateClass([
6552
- (0, import_typeorm74.ManyToOne)(() => User, (user) => user.inAppNotifications),
6553
- (0, import_typeorm74.JoinColumn)({ name: "user_id" })
6599
+ (0, import_typeorm75.ManyToOne)(() => User, (user) => user.inAppNotifications),
6600
+ (0, import_typeorm75.JoinColumn)({ name: "user_id" })
6554
6601
  ], InAppNotification.prototype, "user", 2);
6555
6602
  __decorateClass([
6556
- (0, import_typeorm74.Column)({ name: "event", type: "varchar", nullable: true })
6603
+ (0, import_typeorm75.Column)({ name: "event", type: "varchar", nullable: true })
6557
6604
  ], InAppNotification.prototype, "event", 2);
6558
6605
  __decorateClass([
6559
- (0, import_typeorm74.Column)({ name: "title", type: "varchar", nullable: true })
6606
+ (0, import_typeorm75.Column)({ name: "title", type: "varchar", nullable: true })
6560
6607
  ], InAppNotification.prototype, "title", 2);
6561
6608
  __decorateClass([
6562
- (0, import_typeorm74.Column)({ name: "message", type: "varchar", nullable: true })
6609
+ (0, import_typeorm75.Column)({ name: "message", type: "varchar", nullable: true })
6563
6610
  ], InAppNotification.prototype, "message", 2);
6564
6611
  __decorateClass([
6565
- (0, import_typeorm74.Column)({ name: "redirect_url", type: "varchar", nullable: true })
6612
+ (0, import_typeorm75.Column)({ name: "redirect_url", type: "varchar", nullable: true })
6566
6613
  ], InAppNotification.prototype, "redirectUrl", 2);
6567
6614
  __decorateClass([
6568
- (0, import_typeorm74.Column)({ name: "is_read", type: "boolean", default: false })
6615
+ (0, import_typeorm75.Column)({ name: "is_read", type: "boolean", default: false })
6569
6616
  ], InAppNotification.prototype, "isRead", 2);
6570
6617
  __decorateClass([
6571
- (0, import_typeorm74.Column)({ name: "meta_data", type: "jsonb", nullable: true })
6618
+ (0, import_typeorm75.Column)({ name: "meta_data", type: "jsonb", nullable: true })
6572
6619
  ], InAppNotification.prototype, "metaData", 2);
6573
6620
  InAppNotification = __decorateClass([
6574
- (0, import_typeorm74.Entity)("in_app_notifications")
6621
+ (0, import_typeorm75.Entity)("in_app_notifications")
6575
6622
  ], InAppNotification);
6576
6623
 
6577
6624
  // src/entities/user-subscription.entity.ts
6578
- var import_typeorm78 = require("typeorm");
6625
+ var import_typeorm79 = require("typeorm");
6579
6626
 
6580
6627
  // src/entities/user-subscription-plan.entity.ts
6581
- var import_typeorm77 = require("typeorm");
6628
+ var import_typeorm78 = require("typeorm");
6582
6629
 
6583
6630
  // src/entities/user-subscription-plan-feature.entity.ts
6584
- var import_typeorm75 = require("typeorm");
6631
+ var import_typeorm76 = require("typeorm");
6585
6632
  var UserSubscriptionPlanFeature = class extends BaseEntity {
6586
6633
  };
6587
6634
  __decorateClass([
6588
- (0, import_typeorm75.Column)({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
6589
- (0, import_typeorm75.Index)()
6635
+ (0, import_typeorm76.Column)({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
6636
+ (0, import_typeorm76.Index)()
6590
6637
  ], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlanId", 2);
6591
6638
  __decorateClass([
6592
- (0, import_typeorm75.ManyToOne)(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanFeatures, { onDelete: "CASCADE", nullable: false }),
6593
- (0, import_typeorm75.JoinColumn)({ name: "user_subscription_plan_id" })
6639
+ (0, import_typeorm76.ManyToOne)(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanFeatures, { onDelete: "CASCADE", nullable: false }),
6640
+ (0, import_typeorm76.JoinColumn)({ name: "user_subscription_plan_id" })
6594
6641
  ], UserSubscriptionPlanFeature.prototype, "userSubscriptionPlan", 2);
6595
6642
  __decorateClass([
6596
- (0, import_typeorm75.Column)({ name: "plan_feature_id", type: "integer", nullable: false })
6643
+ (0, import_typeorm76.Column)({ name: "plan_feature_id", type: "integer", nullable: false })
6597
6644
  ], UserSubscriptionPlanFeature.prototype, "planFeatureId", 2);
6598
6645
  __decorateClass([
6599
- (0, import_typeorm75.Column)({ name: "name", type: "varchar", length: 200 })
6646
+ (0, import_typeorm76.Column)({ name: "name", type: "varchar", length: 200 })
6600
6647
  ], UserSubscriptionPlanFeature.prototype, "name", 2);
6601
6648
  __decorateClass([
6602
- (0, import_typeorm75.Column)({ name: "slug", type: "varchar", length: 100 }),
6603
- (0, import_typeorm75.Index)()
6649
+ (0, import_typeorm76.Column)({ name: "slug", type: "varchar", length: 100 }),
6650
+ (0, import_typeorm76.Index)()
6604
6651
  ], UserSubscriptionPlanFeature.prototype, "slug", 2);
6605
6652
  __decorateClass([
6606
- (0, import_typeorm75.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
6653
+ (0, import_typeorm76.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
6607
6654
  ], UserSubscriptionPlanFeature.prototype, "tooltip", 2);
6608
6655
  __decorateClass([
6609
- (0, import_typeorm75.Column)({ name: "sort_order", type: "smallint", default: 0 })
6656
+ (0, import_typeorm76.Column)({ name: "sort_order", type: "smallint", default: 0 })
6610
6657
  ], UserSubscriptionPlanFeature.prototype, "sortOrder", 2);
6611
6658
  __decorateClass([
6612
- (0, import_typeorm75.Column)({ name: "is_active", type: "boolean", default: true })
6659
+ (0, import_typeorm76.Column)({ name: "is_active", type: "boolean", default: true })
6613
6660
  ], UserSubscriptionPlanFeature.prototype, "isActive", 2);
6614
6661
  UserSubscriptionPlanFeature = __decorateClass([
6615
- (0, import_typeorm75.Entity)("user_subscription_plan_features")
6662
+ (0, import_typeorm76.Entity)("user_subscription_plan_features")
6616
6663
  ], UserSubscriptionPlanFeature);
6617
6664
 
6618
6665
  // src/entities/user-subscription-plan-pricing.entity.ts
6619
- var import_typeorm76 = require("typeorm");
6666
+ var import_typeorm77 = require("typeorm");
6620
6667
  var UserSubscriptionPlanPricingBillingCycleEnum = /* @__PURE__ */ ((UserSubscriptionPlanPricingBillingCycleEnum2) => {
6621
6668
  UserSubscriptionPlanPricingBillingCycleEnum2["MONTHLY"] = "MONTHLY";
6622
6669
  UserSubscriptionPlanPricingBillingCycleEnum2["YEARLY"] = "YEARLY";
@@ -6625,42 +6672,42 @@ var UserSubscriptionPlanPricingBillingCycleEnum = /* @__PURE__ */ ((UserSubscrip
6625
6672
  var UserSubscriptionPlanPricing = class extends BaseEntity {
6626
6673
  };
6627
6674
  __decorateClass([
6628
- (0, import_typeorm76.Column)({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
6629
- (0, import_typeorm76.Index)()
6675
+ (0, import_typeorm77.Column)({ name: "user_subscription_plan_id", type: "integer", nullable: false }),
6676
+ (0, import_typeorm77.Index)()
6630
6677
  ], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlanId", 2);
6631
6678
  __decorateClass([
6632
- (0, import_typeorm76.ManyToOne)(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanPricing, { onDelete: "CASCADE", nullable: false }),
6633
- (0, import_typeorm76.JoinColumn)({ name: "user_subscription_plan_id" })
6679
+ (0, import_typeorm77.ManyToOne)(() => UserSubscriptionPlan, (plan) => plan.userSubscriptionPlanPricing, { onDelete: "CASCADE", nullable: false }),
6680
+ (0, import_typeorm77.JoinColumn)({ name: "user_subscription_plan_id" })
6634
6681
  ], UserSubscriptionPlanPricing.prototype, "userSubscriptionPlan", 2);
6635
6682
  __decorateClass([
6636
- (0, import_typeorm76.Column)({ name: "plan_pricing_id", type: "integer", nullable: false })
6683
+ (0, import_typeorm77.Column)({ name: "plan_pricing_id", type: "integer", nullable: false })
6637
6684
  ], UserSubscriptionPlanPricing.prototype, "planPricingId", 2);
6638
6685
  __decorateClass([
6639
- (0, import_typeorm76.Column)({ name: "billing_cycle", type: "enum", enum: UserSubscriptionPlanPricingBillingCycleEnum })
6686
+ (0, import_typeorm77.Column)({ name: "billing_cycle", type: "enum", enum: UserSubscriptionPlanPricingBillingCycleEnum })
6640
6687
  ], UserSubscriptionPlanPricing.prototype, "billingCycle", 2);
6641
6688
  __decorateClass([
6642
- (0, import_typeorm76.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
6689
+ (0, import_typeorm77.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
6643
6690
  ], UserSubscriptionPlanPricing.prototype, "price", 2);
6644
6691
  __decorateClass([
6645
- (0, import_typeorm76.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
6692
+ (0, import_typeorm77.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
6646
6693
  ], UserSubscriptionPlanPricing.prototype, "originalPrice", 2);
6647
6694
  __decorateClass([
6648
- (0, import_typeorm76.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
6695
+ (0, import_typeorm77.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
6649
6696
  ], UserSubscriptionPlanPricing.prototype, "discountPct", 2);
6650
6697
  __decorateClass([
6651
- (0, import_typeorm76.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
6698
+ (0, import_typeorm77.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
6652
6699
  ], UserSubscriptionPlanPricing.prototype, "currency", 2);
6653
6700
  __decorateClass([
6654
- (0, import_typeorm76.Column)({ name: "is_free", type: "boolean", default: false })
6701
+ (0, import_typeorm77.Column)({ name: "is_free", type: "boolean", default: false })
6655
6702
  ], UserSubscriptionPlanPricing.prototype, "isFree", 2);
6656
6703
  __decorateClass([
6657
- (0, import_typeorm76.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true })
6704
+ (0, import_typeorm77.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true })
6658
6705
  ], UserSubscriptionPlanPricing.prototype, "stripePriceId", 2);
6659
6706
  __decorateClass([
6660
- (0, import_typeorm76.Column)({ name: "is_active", type: "boolean", default: true })
6707
+ (0, import_typeorm77.Column)({ name: "is_active", type: "boolean", default: true })
6661
6708
  ], UserSubscriptionPlanPricing.prototype, "isActive", 2);
6662
6709
  UserSubscriptionPlanPricing = __decorateClass([
6663
- (0, import_typeorm76.Entity)("user_subscription_plan_pricings")
6710
+ (0, import_typeorm77.Entity)("user_subscription_plan_pricings")
6664
6711
  ], UserSubscriptionPlanPricing);
6665
6712
 
6666
6713
  // src/entities/user-subscription-plan.entity.ts
@@ -6672,44 +6719,44 @@ var UserSubscriptionPlanTypeEnum = /* @__PURE__ */ ((UserSubscriptionPlanTypeEnu
6672
6719
  var UserSubscriptionPlan = class extends BaseEntity {
6673
6720
  };
6674
6721
  __decorateClass([
6675
- (0, import_typeorm77.Column)({ name: "user_subscription_id", type: "integer", nullable: false })
6722
+ (0, import_typeorm78.Column)({ name: "user_subscription_id", type: "integer", nullable: false })
6676
6723
  ], UserSubscriptionPlan.prototype, "userSubscriptionId", 2);
6677
6724
  __decorateClass([
6678
- (0, import_typeorm77.ManyToOne)(() => UserSubscription, (userSubscription) => userSubscription.userSubscriptionPlans, { onDelete: "CASCADE", nullable: false }),
6679
- (0, import_typeorm77.JoinColumn)({ name: "user_subscription_id" })
6725
+ (0, import_typeorm78.ManyToOne)(() => UserSubscription, (userSubscription) => userSubscription.userSubscriptionPlans, { onDelete: "CASCADE", nullable: false }),
6726
+ (0, import_typeorm78.JoinColumn)({ name: "user_subscription_id" })
6680
6727
  ], UserSubscriptionPlan.prototype, "userSubscription", 2);
6681
6728
  __decorateClass([
6682
- (0, import_typeorm77.Column)({ name: "plan_id", type: "integer", nullable: false })
6729
+ (0, import_typeorm78.Column)({ name: "plan_id", type: "integer", nullable: false })
6683
6730
  ], UserSubscriptionPlan.prototype, "planId", 2);
6684
6731
  __decorateClass([
6685
- (0, import_typeorm77.Column)({ name: "name", type: "varchar", length: 100 })
6732
+ (0, import_typeorm78.Column)({ name: "name", type: "varchar", length: 100 })
6686
6733
  ], UserSubscriptionPlan.prototype, "name", 2);
6687
6734
  __decorateClass([
6688
- (0, import_typeorm77.Column)({ name: "slug", type: "varchar", length: 100 })
6735
+ (0, import_typeorm78.Column)({ name: "slug", type: "varchar", length: 100 })
6689
6736
  ], UserSubscriptionPlan.prototype, "slug", 2);
6690
6737
  __decorateClass([
6691
- (0, import_typeorm77.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
6738
+ (0, import_typeorm78.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
6692
6739
  ], UserSubscriptionPlan.prototype, "badgeLabel", 2);
6693
6740
  __decorateClass([
6694
- (0, import_typeorm77.Column)({ name: "sort_order", type: "smallint", default: 0 })
6741
+ (0, import_typeorm78.Column)({ name: "sort_order", type: "smallint", default: 0 })
6695
6742
  ], UserSubscriptionPlan.prototype, "sortOrder", 2);
6696
6743
  __decorateClass([
6697
- (0, import_typeorm77.Column)({ name: "is_active", type: "boolean", default: true })
6744
+ (0, import_typeorm78.Column)({ name: "is_active", type: "boolean", default: true })
6698
6745
  ], UserSubscriptionPlan.prototype, "isActive", 2);
6699
6746
  __decorateClass([
6700
- (0, import_typeorm77.Column)({ name: "plan_type", type: "enum", enum: UserSubscriptionPlanTypeEnum, default: "BUSINESS" /* BUSINESS */ })
6747
+ (0, import_typeorm78.Column)({ name: "plan_type", type: "enum", enum: UserSubscriptionPlanTypeEnum, default: "BUSINESS" /* BUSINESS */ })
6701
6748
  ], UserSubscriptionPlan.prototype, "planType", 2);
6702
6749
  __decorateClass([
6703
- (0, import_typeorm77.Column)({ name: "metadata", type: "jsonb", default: {} })
6750
+ (0, import_typeorm78.Column)({ name: "metadata", type: "jsonb", default: {} })
6704
6751
  ], UserSubscriptionPlan.prototype, "metadata", 2);
6705
6752
  __decorateClass([
6706
- (0, import_typeorm77.OneToMany)(() => UserSubscriptionPlanFeature, (f) => f.userSubscriptionPlan)
6753
+ (0, import_typeorm78.OneToMany)(() => UserSubscriptionPlanFeature, (f) => f.userSubscriptionPlan)
6707
6754
  ], UserSubscriptionPlan.prototype, "userSubscriptionPlanFeatures", 2);
6708
6755
  __decorateClass([
6709
- (0, import_typeorm77.OneToMany)(() => UserSubscriptionPlanPricing, (p) => p.userSubscriptionPlan)
6756
+ (0, import_typeorm78.OneToMany)(() => UserSubscriptionPlanPricing, (p) => p.userSubscriptionPlan)
6710
6757
  ], UserSubscriptionPlan.prototype, "userSubscriptionPlanPricing", 2);
6711
6758
  UserSubscriptionPlan = __decorateClass([
6712
- (0, import_typeorm77.Entity)("user_subscription_plans")
6759
+ (0, import_typeorm78.Entity)("user_subscription_plans")
6713
6760
  ], UserSubscriptionPlan);
6714
6761
 
6715
6762
  // src/entities/user-subscription.entity.ts
@@ -6727,26 +6774,26 @@ var UserSubscriptionStatusEnum = /* @__PURE__ */ ((UserSubscriptionStatusEnum2)
6727
6774
  var UserSubscription = class extends BaseEntity {
6728
6775
  };
6729
6776
  __decorateClass([
6730
- (0, import_typeorm78.Column)({ name: "user_id", type: "integer", nullable: false })
6777
+ (0, import_typeorm79.Column)({ name: "user_id", type: "integer", nullable: false })
6731
6778
  ], UserSubscription.prototype, "userId", 2);
6732
6779
  __decorateClass([
6733
- (0, import_typeorm78.ManyToOne)(() => User, (user) => user.userSubscriptions, { onDelete: "CASCADE", nullable: false }),
6734
- (0, import_typeorm78.JoinColumn)({ name: "user_id" })
6780
+ (0, import_typeorm79.ManyToOne)(() => User, (user) => user.userSubscriptions, { onDelete: "CASCADE", nullable: false }),
6781
+ (0, import_typeorm79.JoinColumn)({ name: "user_id" })
6735
6782
  ], UserSubscription.prototype, "user", 2);
6736
6783
  __decorateClass([
6737
- (0, import_typeorm78.OneToMany)(() => UserSubscriptionPlan, (plan) => plan.userSubscription)
6784
+ (0, import_typeorm79.OneToMany)(() => UserSubscriptionPlan, (plan) => plan.userSubscription)
6738
6785
  ], UserSubscription.prototype, "userSubscriptionPlans", 2);
6739
6786
  __decorateClass([
6740
- (0, import_typeorm78.Column)({ name: "subscription_amount", type: "integer", nullable: false })
6787
+ (0, import_typeorm79.Column)({ name: "subscription_amount", type: "integer", nullable: false })
6741
6788
  ], UserSubscription.prototype, "subscriptionAmount", 2);
6742
6789
  __decorateClass([
6743
- (0, import_typeorm78.Column)({ name: "total_tax_amount", type: "integer", nullable: false })
6790
+ (0, import_typeorm79.Column)({ name: "total_tax_amount", type: "integer", nullable: false })
6744
6791
  ], UserSubscription.prototype, "totalTaxAmount", 2);
6745
6792
  __decorateClass([
6746
- (0, import_typeorm78.Column)({ name: "total_amount", type: "integer", nullable: false })
6793
+ (0, import_typeorm79.Column)({ name: "total_amount", type: "integer", nullable: false })
6747
6794
  ], UserSubscription.prototype, "totalAmount", 2);
6748
6795
  __decorateClass([
6749
- (0, import_typeorm78.Column)({
6796
+ (0, import_typeorm79.Column)({
6750
6797
  name: "status",
6751
6798
  type: "enum",
6752
6799
  enum: UserSubscriptionStatusEnum,
@@ -6754,35 +6801,35 @@ __decorateClass([
6754
6801
  })
6755
6802
  ], UserSubscription.prototype, "status", 2);
6756
6803
  __decorateClass([
6757
- (0, import_typeorm78.Column)({
6804
+ (0, import_typeorm79.Column)({
6758
6805
  name: "subscription_start_date",
6759
6806
  type: "timestamptz",
6760
6807
  nullable: true
6761
6808
  })
6762
6809
  ], UserSubscription.prototype, "subscriptionStartDate", 2);
6763
6810
  __decorateClass([
6764
- (0, import_typeorm78.Column)({
6811
+ (0, import_typeorm79.Column)({
6765
6812
  name: "subscription_start_date_timestamp",
6766
6813
  type: "integer",
6767
6814
  nullable: true
6768
6815
  })
6769
6816
  ], UserSubscription.prototype, "subscriptionStartDateTimestamp", 2);
6770
6817
  __decorateClass([
6771
- (0, import_typeorm78.Column)({
6818
+ (0, import_typeorm79.Column)({
6772
6819
  name: "subscription_end_date",
6773
6820
  type: "timestamptz",
6774
6821
  nullable: true
6775
6822
  })
6776
6823
  ], UserSubscription.prototype, "subscriptionEndDate", 2);
6777
6824
  __decorateClass([
6778
- (0, import_typeorm78.Column)({
6825
+ (0, import_typeorm79.Column)({
6779
6826
  name: "subscription_end_date_timestamp",
6780
6827
  type: "integer",
6781
6828
  nullable: true
6782
6829
  })
6783
6830
  ], UserSubscription.prototype, "subscriptionEndDateTimestamp", 2);
6784
6831
  __decorateClass([
6785
- (0, import_typeorm78.Column)({
6832
+ (0, import_typeorm79.Column)({
6786
6833
  name: "stripe_price_id",
6787
6834
  type: "varchar",
6788
6835
  length: 100,
@@ -6790,7 +6837,7 @@ __decorateClass([
6790
6837
  })
6791
6838
  ], UserSubscription.prototype, "stripePriceId", 2);
6792
6839
  __decorateClass([
6793
- (0, import_typeorm78.Column)({
6840
+ (0, import_typeorm79.Column)({
6794
6841
  name: "stripe_product_id",
6795
6842
  type: "varchar",
6796
6843
  length: 100,
@@ -6798,7 +6845,7 @@ __decorateClass([
6798
6845
  })
6799
6846
  ], UserSubscription.prototype, "stripeProductId", 2);
6800
6847
  __decorateClass([
6801
- (0, import_typeorm78.Column)({
6848
+ (0, import_typeorm79.Column)({
6802
6849
  name: "stripe_customer_id",
6803
6850
  type: "varchar",
6804
6851
  length: 64,
@@ -6806,7 +6853,7 @@ __decorateClass([
6806
6853
  })
6807
6854
  ], UserSubscription.prototype, "stripeCustomerId", 2);
6808
6855
  __decorateClass([
6809
- (0, import_typeorm78.Column)({
6856
+ (0, import_typeorm79.Column)({
6810
6857
  name: "stripe_subscription_id",
6811
6858
  type: "varchar",
6812
6859
  length: 64,
@@ -6815,7 +6862,7 @@ __decorateClass([
6815
6862
  })
6816
6863
  ], UserSubscription.prototype, "stripeSubscriptionId", 2);
6817
6864
  __decorateClass([
6818
- (0, import_typeorm78.Column)({
6865
+ (0, import_typeorm79.Column)({
6819
6866
  name: "stripe_checkout_session_id",
6820
6867
  type: "varchar",
6821
6868
  length: 255,
@@ -6823,7 +6870,7 @@ __decorateClass([
6823
6870
  })
6824
6871
  ], UserSubscription.prototype, "stripeCheckoutSessionId", 2);
6825
6872
  UserSubscription = __decorateClass([
6826
- (0, import_typeorm78.Entity)("user_subscriptions")
6873
+ (0, import_typeorm79.Entity)("user_subscriptions")
6827
6874
  ], UserSubscription);
6828
6875
 
6829
6876
  // src/entities/user.entity.ts
@@ -6852,57 +6899,57 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
6852
6899
  var User = class extends BaseEntity {
6853
6900
  };
6854
6901
  __decorateClass([
6855
- (0, import_typeorm79.Column)({ name: "unique_id", type: "varchar", unique: true })
6902
+ (0, import_typeorm80.Column)({ name: "unique_id", type: "varchar", unique: true })
6856
6903
  ], User.prototype, "uniqueId", 2);
6857
6904
  __decorateClass([
6858
- (0, import_typeorm79.Column)({ name: "parent_id", type: "integer", nullable: true }),
6859
- (0, import_typeorm79.Index)()
6905
+ (0, import_typeorm80.Column)({ name: "parent_id", type: "integer", nullable: true }),
6906
+ (0, import_typeorm80.Index)()
6860
6907
  ], User.prototype, "parentId", 2);
6861
6908
  __decorateClass([
6862
- (0, import_typeorm79.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
6863
- (0, import_typeorm79.JoinColumn)({ name: "parent_id" })
6909
+ (0, import_typeorm80.ManyToOne)(() => User, (user) => user.children, { nullable: true }),
6910
+ (0, import_typeorm80.JoinColumn)({ name: "parent_id" })
6864
6911
  ], User.prototype, "parent", 2);
6865
6912
  __decorateClass([
6866
- (0, import_typeorm79.OneToMany)(() => User, (user) => user.parent)
6913
+ (0, import_typeorm80.OneToMany)(() => User, (user) => user.parent)
6867
6914
  ], User.prototype, "children", 2);
6868
6915
  __decorateClass([
6869
- (0, import_typeorm79.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
6916
+ (0, import_typeorm80.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
6870
6917
  ], User.prototype, "username", 2);
6871
6918
  __decorateClass([
6872
- (0, import_typeorm79.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
6919
+ (0, import_typeorm80.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
6873
6920
  ], User.prototype, "firstName", 2);
6874
6921
  __decorateClass([
6875
- (0, import_typeorm79.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
6922
+ (0, import_typeorm80.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
6876
6923
  ], User.prototype, "lastName", 2);
6877
6924
  __decorateClass([
6878
- (0, import_typeorm79.Column)({ name: "date_of_birth", type: "date", nullable: true })
6925
+ (0, import_typeorm80.Column)({ name: "date_of_birth", type: "date", nullable: true })
6879
6926
  ], User.prototype, "dateOfBirth", 2);
6880
6927
  __decorateClass([
6881
- (0, import_typeorm79.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
6928
+ (0, import_typeorm80.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
6882
6929
  ], User.prototype, "gender", 2);
6883
6930
  __decorateClass([
6884
- (0, import_typeorm79.Column)({ name: "profile_picture_url", type: "text", nullable: true })
6931
+ (0, import_typeorm80.Column)({ name: "profile_picture_url", type: "text", nullable: true })
6885
6932
  ], User.prototype, "profilePictureUrl", 2);
6886
6933
  __decorateClass([
6887
- (0, import_typeorm79.Column)({ name: "presigned_profile_picture_url", type: "text", nullable: true })
6934
+ (0, import_typeorm80.Column)({ name: "presigned_profile_picture_url", type: "text", nullable: true })
6888
6935
  ], User.prototype, "presignedProfilePictureUrl", 2);
6889
6936
  __decorateClass([
6890
- (0, import_typeorm79.Column)({ name: "presigned_profile_picture_url_expires_at", type: "timestamp with time zone", nullable: true })
6937
+ (0, import_typeorm80.Column)({ name: "presigned_profile_picture_url_expires_at", type: "timestamp with time zone", nullable: true })
6891
6938
  ], User.prototype, "presignedProfilePictureUrlExpiresAt", 2);
6892
6939
  __decorateClass([
6893
- (0, import_typeorm79.Column)({ name: "email", type: "varchar", unique: true })
6940
+ (0, import_typeorm80.Column)({ name: "email", type: "varchar", unique: true })
6894
6941
  ], User.prototype, "email", 2);
6895
6942
  __decorateClass([
6896
- (0, import_typeorm79.Column)({ name: "mobile_code", type: "varchar", nullable: true })
6943
+ (0, import_typeorm80.Column)({ name: "mobile_code", type: "varchar", nullable: true })
6897
6944
  ], User.prototype, "mobileCode", 2);
6898
6945
  __decorateClass([
6899
- (0, import_typeorm79.Column)({ name: "mobile", type: "varchar", nullable: true })
6946
+ (0, import_typeorm80.Column)({ name: "mobile", type: "varchar", nullable: true })
6900
6947
  ], User.prototype, "mobile", 2);
6901
6948
  __decorateClass([
6902
- (0, import_typeorm79.Column)({ name: "password", type: "varchar", nullable: true })
6949
+ (0, import_typeorm80.Column)({ name: "password", type: "varchar", nullable: true })
6903
6950
  ], User.prototype, "password", 2);
6904
6951
  __decorateClass([
6905
- (0, import_typeorm79.Column)({
6952
+ (0, import_typeorm80.Column)({
6906
6953
  name: "account_type",
6907
6954
  type: "enum",
6908
6955
  enum: AccountType2,
@@ -6910,7 +6957,7 @@ __decorateClass([
6910
6957
  })
6911
6958
  ], User.prototype, "accountType", 2);
6912
6959
  __decorateClass([
6913
- (0, import_typeorm79.Column)({
6960
+ (0, import_typeorm80.Column)({
6914
6961
  name: "account_status",
6915
6962
  type: "enum",
6916
6963
  enum: AccountStatus,
@@ -6918,45 +6965,45 @@ __decorateClass([
6918
6965
  })
6919
6966
  ], User.prototype, "accountStatus", 2);
6920
6967
  __decorateClass([
6921
- (0, import_typeorm79.Column)({ name: "is_email_verified", type: "boolean", default: false })
6968
+ (0, import_typeorm80.Column)({ name: "is_email_verified", type: "boolean", default: false })
6922
6969
  ], User.prototype, "isEmailVerified", 2);
6923
6970
  __decorateClass([
6924
- (0, import_typeorm79.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
6971
+ (0, import_typeorm80.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
6925
6972
  ], User.prototype, "isMobileVerified", 2);
6926
6973
  __decorateClass([
6927
- (0, import_typeorm79.Column)({ name: "is_social", type: "boolean", default: false })
6974
+ (0, import_typeorm80.Column)({ name: "is_social", type: "boolean", default: false })
6928
6975
  ], User.prototype, "isSocial", 2);
6929
6976
  __decorateClass([
6930
- (0, import_typeorm79.Column)({ name: "is_referral_user", type: "boolean", default: false })
6977
+ (0, import_typeorm80.Column)({ name: "is_referral_user", type: "boolean", default: false })
6931
6978
  ], User.prototype, "isReferralUser", 2);
6932
6979
  __decorateClass([
6933
- (0, import_typeorm79.Column)({
6980
+ (0, import_typeorm80.Column)({
6934
6981
  name: "last_login_at",
6935
6982
  type: "timestamp with time zone",
6936
6983
  nullable: true
6937
6984
  })
6938
6985
  ], User.prototype, "lastLoginAt", 2);
6939
6986
  __decorateClass([
6940
- (0, import_typeorm79.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
6987
+ (0, import_typeorm80.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
6941
6988
  ], User.prototype, "lastLoginIp", 2);
6942
6989
  __decorateClass([
6943
- (0, import_typeorm79.Column)({ name: "reset_token", type: "varchar", nullable: true })
6990
+ (0, import_typeorm80.Column)({ name: "reset_token", type: "varchar", nullable: true })
6944
6991
  ], User.prototype, "resetToken", 2);
6945
6992
  __decorateClass([
6946
- (0, import_typeorm79.Column)({
6993
+ (0, import_typeorm80.Column)({
6947
6994
  name: "reset_token_expire_at",
6948
6995
  type: "timestamp with time zone",
6949
6996
  nullable: true
6950
6997
  })
6951
6998
  ], User.prototype, "resetTokenExpireAt", 2);
6952
6999
  __decorateClass([
6953
- (0, import_typeorm79.Column)({ name: "set_password_token", type: "varchar", nullable: true })
7000
+ (0, import_typeorm80.Column)({ name: "set_password_token", type: "varchar", nullable: true })
6954
7001
  ], User.prototype, "setPasswordToken", 2);
6955
7002
  __decorateClass([
6956
- (0, import_typeorm79.OneToMany)(() => RefreshToken, (token) => token.user)
7003
+ (0, import_typeorm80.OneToMany)(() => RefreshToken, (token) => token.user)
6957
7004
  ], User.prototype, "refreshTokens", 2);
6958
7005
  __decorateClass([
6959
- (0, import_typeorm79.Column)({
7006
+ (0, import_typeorm80.Column)({
6960
7007
  name: "provider",
6961
7008
  type: "enum",
6962
7009
  enum: Provider,
@@ -6965,272 +7012,275 @@ __decorateClass([
6965
7012
  })
6966
7013
  ], User.prototype, "provider", 2);
6967
7014
  __decorateClass([
6968
- (0, import_typeorm79.Column)({ name: "provider_token", type: "varchar", nullable: true })
7015
+ (0, import_typeorm80.Column)({ name: "provider_token", type: "varchar", nullable: true })
6969
7016
  ], User.prototype, "providerToken", 2);
6970
7017
  __decorateClass([
6971
- (0, import_typeorm79.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
7018
+ (0, import_typeorm80.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
6972
7019
  ], User.prototype, "linkedInId", 2);
6973
7020
  __decorateClass([
6974
- (0, import_typeorm79.Column)({ name: "google_id", type: "varchar", nullable: true })
7021
+ (0, import_typeorm80.Column)({ name: "google_id", type: "varchar", nullable: true })
6975
7022
  ], User.prototype, "googleId", 2);
6976
7023
  __decorateClass([
6977
- (0, import_typeorm79.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
7024
+ (0, import_typeorm80.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
6978
7025
  ], User.prototype, "gitLabsId", 2);
6979
7026
  __decorateClass([
6980
- (0, import_typeorm79.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
7027
+ (0, import_typeorm80.Column)({ name: "onboarded_by", type: "varchar", nullable: true })
6981
7028
  ], User.prototype, "onBoardedBy", 2);
6982
7029
  __decorateClass([
6983
- (0, import_typeorm79.Column)({ name: "ip", type: "varchar", nullable: true })
7030
+ (0, import_typeorm80.Column)({ name: "ip", type: "varchar", nullable: true })
6984
7031
  ], User.prototype, "ip", 2);
6985
7032
  __decorateClass([
6986
- (0, import_typeorm79.OneToMany)(() => Otp, (otp) => otp.user)
7033
+ (0, import_typeorm80.OneToMany)(() => Otp, (otp) => otp.user)
6987
7034
  ], User.prototype, "otps", 2);
6988
7035
  __decorateClass([
6989
- (0, import_typeorm79.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
7036
+ (0, import_typeorm80.OneToMany)(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
6990
7037
  ], User.prototype, "senseloafLogs", 2);
6991
7038
  __decorateClass([
6992
- (0, import_typeorm79.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
7039
+ (0, import_typeorm80.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
6993
7040
  ], User.prototype, "companyProfile", 2);
6994
7041
  __decorateClass([
6995
- (0, import_typeorm79.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
7042
+ (0, import_typeorm80.OneToMany)(() => CompanySkill, (companySkill) => companySkill.user)
6996
7043
  ], User.prototype, "companySkills", 2);
6997
7044
  __decorateClass([
6998
- (0, import_typeorm79.OneToMany)(
7045
+ (0, import_typeorm80.OneToMany)(
6999
7046
  () => CompanyMemberRole,
7000
7047
  (companyMemberRole) => companyMemberRole.user
7001
7048
  )
7002
7049
  ], User.prototype, "companyMemberRoles", 2);
7003
7050
  __decorateClass([
7004
- (0, import_typeorm79.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
7051
+ (0, import_typeorm80.OneToOne)(() => CompanyMember, (companyMember) => companyMember.user)
7052
+ ], User.prototype, "companyMember", 2);
7053
+ __decorateClass([
7054
+ (0, import_typeorm80.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.interviwer)
7005
7055
  ], User.prototype, "companyAiInterview", 2);
7006
7056
  __decorateClass([
7007
- (0, import_typeorm79.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
7057
+ (0, import_typeorm80.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
7008
7058
  ], User.prototype, "clientF2FInterviews", 2);
7009
7059
  __decorateClass([
7010
- (0, import_typeorm79.OneToOne)(
7060
+ (0, import_typeorm80.OneToOne)(
7011
7061
  () => FreelancerProfile,
7012
7062
  (freelancerProfile) => freelancerProfile.user
7013
7063
  )
7014
7064
  ], User.prototype, "freelancerProfile", 2);
7015
7065
  __decorateClass([
7016
- (0, import_typeorm79.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
7066
+ (0, import_typeorm80.OneToOne)(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
7017
7067
  ], User.prototype, "freelancerResume", 2);
7018
7068
  __decorateClass([
7019
- (0, import_typeorm79.OneToMany)(
7069
+ (0, import_typeorm80.OneToMany)(
7020
7070
  () => FreelancerAssessmentRequest,
7021
7071
  (freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
7022
7072
  )
7023
7073
  ], User.prototype, "freelancerAssessmentRequests", 2);
7024
7074
  __decorateClass([
7025
- (0, import_typeorm79.OneToMany)(
7075
+ (0, import_typeorm80.OneToMany)(
7026
7076
  () => FreelancerAssessmentRequest,
7027
7077
  (freelancerAssessment) => freelancerAssessment.approvedBy
7028
7078
  )
7029
7079
  ], User.prototype, "assessmentRequests", 2);
7030
7080
  __decorateClass([
7031
- (0, import_typeorm79.OneToMany)(
7081
+ (0, import_typeorm80.OneToMany)(
7032
7082
  () => FreelancerAssessment,
7033
7083
  (freelancerAssessment) => freelancerAssessment.user
7034
7084
  )
7035
7085
  ], User.prototype, "assessments", 2);
7036
7086
  __decorateClass([
7037
- (0, import_typeorm79.OneToMany)(
7087
+ (0, import_typeorm80.OneToMany)(
7038
7088
  () => AssessmentAnswer,
7039
7089
  (assessmentAnswer) => assessmentAnswer.user
7040
7090
  )
7041
7091
  ], User.prototype, "assessmentAnswers", 2);
7042
7092
  __decorateClass([
7043
- (0, import_typeorm79.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
7093
+ (0, import_typeorm80.OneToMany)(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
7044
7094
  ], User.prototype, "freelancerSkills", 2);
7045
7095
  __decorateClass([
7046
- (0, import_typeorm79.OneToMany)(
7096
+ (0, import_typeorm80.OneToMany)(
7047
7097
  () => FreelancerExperience,
7048
7098
  (freelancerExperience) => freelancerExperience.user
7049
7099
  )
7050
7100
  ], User.prototype, "freelancerExperience", 2);
7051
7101
  __decorateClass([
7052
- (0, import_typeorm79.OneToMany)(
7102
+ (0, import_typeorm80.OneToMany)(
7053
7103
  () => FreelancerEducation,
7054
7104
  (freelancerEducation) => freelancerEducation.user
7055
7105
  )
7056
7106
  ], User.prototype, "freelancerEducation", 2);
7057
7107
  __decorateClass([
7058
- (0, import_typeorm79.OneToMany)(
7108
+ (0, import_typeorm80.OneToMany)(
7059
7109
  () => FreelancerProject,
7060
7110
  (freelancerProject) => freelancerProject.user
7061
7111
  )
7062
7112
  ], User.prototype, "freelancerProject", 2);
7063
7113
  __decorateClass([
7064
- (0, import_typeorm79.OneToMany)(
7114
+ (0, import_typeorm80.OneToMany)(
7065
7115
  () => FreelancerCaseStudy,
7066
7116
  (freelancerCaseStudy) => freelancerCaseStudy.user
7067
7117
  )
7068
7118
  ], User.prototype, "freelancerCaseStudy", 2);
7069
7119
  __decorateClass([
7070
- (0, import_typeorm79.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
7120
+ (0, import_typeorm80.OneToMany)(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
7071
7121
  ], User.prototype, "freelancerTool", 2);
7072
7122
  __decorateClass([
7073
- (0, import_typeorm79.OneToMany)(
7123
+ (0, import_typeorm80.OneToMany)(
7074
7124
  () => FreelancerFramework,
7075
7125
  (freelancerFramework) => freelancerFramework.user
7076
7126
  )
7077
7127
  ], User.prototype, "freelancerFramework", 2);
7078
7128
  __decorateClass([
7079
- (0, import_typeorm79.OneToOne)(
7129
+ (0, import_typeorm80.OneToOne)(
7080
7130
  () => FreelancerDeclaration,
7081
7131
  (freelancerDeclaration) => freelancerDeclaration.user
7082
7132
  )
7083
7133
  ], User.prototype, "freelancerDeclaration", 2);
7084
7134
  __decorateClass([
7085
- (0, import_typeorm79.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
7135
+ (0, import_typeorm80.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
7086
7136
  ], User.prototype, "freelancerMcq", 2);
7087
7137
  __decorateClass([
7088
- (0, import_typeorm79.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
7138
+ (0, import_typeorm80.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
7089
7139
  ], User.prototype, "freelancerAiInterview", 2);
7090
7140
  __decorateClass([
7091
- (0, import_typeorm79.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
7141
+ (0, import_typeorm80.OneToMany)(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
7092
7142
  ], User.prototype, "freelancerF2FInterviews", 2);
7093
7143
  __decorateClass([
7094
- (0, import_typeorm79.OneToMany)(
7144
+ (0, import_typeorm80.OneToMany)(
7095
7145
  () => F2fInterviewRescheduleRequest,
7096
7146
  (f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
7097
7147
  )
7098
7148
  ], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
7099
7149
  __decorateClass([
7100
- (0, import_typeorm79.OneToMany)(
7150
+ (0, import_typeorm80.OneToMany)(
7101
7151
  () => AiInterviewRescheduleRequest,
7102
7152
  (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
7103
7153
  )
7104
7154
  ], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
7105
7155
  __decorateClass([
7106
- (0, import_typeorm79.OneToMany)(
7156
+ (0, import_typeorm80.OneToMany)(
7107
7157
  () => AiInterviewRescheduleRequest,
7108
7158
  (aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
7109
7159
  )
7110
7160
  ], User.prototype, "clientAiInterviewRescheduleRequests", 2);
7111
7161
  __decorateClass([
7112
- (0, import_typeorm79.OneToMany)(() => Job, (job) => job.user)
7162
+ (0, import_typeorm80.OneToMany)(() => Job, (job) => job.user)
7113
7163
  ], User.prototype, "jobs", 2);
7114
7164
  __decorateClass([
7115
- (0, import_typeorm79.OneToMany)(() => Task, (task) => task.client)
7165
+ (0, import_typeorm80.OneToMany)(() => Task, (task) => task.client)
7116
7166
  ], User.prototype, "clientTasks", 2);
7117
7167
  __decorateClass([
7118
- (0, import_typeorm79.OneToMany)(() => Task, (task) => task.freelancer)
7168
+ (0, import_typeorm80.OneToMany)(() => Task, (task) => task.freelancer)
7119
7169
  ], User.prototype, "freelancerTasks", 2);
7120
7170
  __decorateClass([
7121
- (0, import_typeorm79.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
7171
+ (0, import_typeorm80.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
7122
7172
  ], User.prototype, "raisedTaskQueries", 2);
7123
7173
  __decorateClass([
7124
- (0, import_typeorm79.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
7174
+ (0, import_typeorm80.OneToMany)(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
7125
7175
  ], User.prototype, "assignedTaskQueries", 2);
7126
7176
  __decorateClass([
7127
- (0, import_typeorm79.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
7177
+ (0, import_typeorm80.OneToMany)(() => TaskQueryMessage, (message) => message.senderUser)
7128
7178
  ], User.prototype, "taskQueryMessages", 2);
7129
7179
  __decorateClass([
7130
- (0, import_typeorm79.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
7180
+ (0, import_typeorm80.OneToMany)(() => JobApplication, (jobApplication) => jobApplication.user)
7131
7181
  ], User.prototype, "jobApplications", 2);
7132
7182
  __decorateClass([
7133
- (0, import_typeorm79.OneToMany)(() => Interview, (interview) => interview.user)
7183
+ (0, import_typeorm80.OneToMany)(() => Interview, (interview) => interview.user)
7134
7184
  ], User.prototype, "interviews", 2);
7135
7185
  __decorateClass([
7136
- (0, import_typeorm79.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
7186
+ (0, import_typeorm80.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
7137
7187
  ], User.prototype, "bankDetail", 2);
7138
7188
  __decorateClass([
7139
- (0, import_typeorm79.OneToMany)(
7189
+ (0, import_typeorm80.OneToMany)(
7140
7190
  () => SystemPreference,
7141
7191
  (systemPreference) => systemPreference.user
7142
7192
  )
7143
7193
  ], User.prototype, "systemPreference", 2);
7144
7194
  __decorateClass([
7145
- (0, import_typeorm79.OneToMany)(() => Rating, (rating) => rating.reviewer)
7195
+ (0, import_typeorm80.OneToMany)(() => Rating, (rating) => rating.reviewer)
7146
7196
  ], User.prototype, "givenRatings", 2);
7147
7197
  __decorateClass([
7148
- (0, import_typeorm79.OneToMany)(() => Rating, (rating) => rating.reviewee)
7198
+ (0, import_typeorm80.OneToMany)(() => Rating, (rating) => rating.reviewee)
7149
7199
  ], User.prototype, "receivedRatings", 2);
7150
7200
  __decorateClass([
7151
- (0, import_typeorm79.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
7201
+ (0, import_typeorm80.OneToMany)(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
7152
7202
  ], User.prototype, "adminUserRoles", 2);
7153
7203
  __decorateClass([
7154
- (0, import_typeorm79.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
7204
+ (0, import_typeorm80.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
7155
7205
  cascade: true
7156
7206
  })
7157
7207
  ], User.prototype, "clientContractSummaries", 2);
7158
7208
  __decorateClass([
7159
- (0, import_typeorm79.OneToMany)(() => Contract, (contract) => contract.client)
7209
+ (0, import_typeorm80.OneToMany)(() => Contract, (contract) => contract.client)
7160
7210
  ], User.prototype, "clientContracts", 2);
7161
7211
  __decorateClass([
7162
- (0, import_typeorm79.OneToMany)(() => Hiring, (hiring) => hiring.client)
7212
+ (0, import_typeorm80.OneToMany)(() => Hiring, (hiring) => hiring.client)
7163
7213
  ], User.prototype, "clientHirings", 2);
7164
7214
  __decorateClass([
7165
- (0, import_typeorm79.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
7215
+ (0, import_typeorm80.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
7166
7216
  ], User.prototype, "clientEscrowWallets", 2);
7167
7217
  __decorateClass([
7168
- (0, import_typeorm79.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
7218
+ (0, import_typeorm80.OneToMany)(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
7169
7219
  cascade: true
7170
7220
  })
7171
7221
  ], User.prototype, "freelancerContractSummaries", 2);
7172
7222
  __decorateClass([
7173
- (0, import_typeorm79.OneToMany)(() => Contract, (contract) => contract.freelancer)
7223
+ (0, import_typeorm80.OneToMany)(() => Contract, (contract) => contract.freelancer)
7174
7224
  ], User.prototype, "freelancerContracts", 2);
7175
7225
  __decorateClass([
7176
- (0, import_typeorm79.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
7226
+ (0, import_typeorm80.OneToMany)(() => Hiring, (hiring) => hiring.freelancer)
7177
7227
  ], User.prototype, "freelancerHirings", 2);
7178
7228
  __decorateClass([
7179
- (0, import_typeorm79.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
7229
+ (0, import_typeorm80.OneToMany)(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
7180
7230
  ], User.prototype, "freelancerEscrowWallets", 2);
7181
7231
  __decorateClass([
7182
- (0, import_typeorm79.OneToOne)(() => Signature, (signature) => signature.user)
7232
+ (0, import_typeorm80.OneToOne)(() => Signature, (signature) => signature.user)
7183
7233
  ], User.prototype, "signatures", 2);
7184
7234
  __decorateClass([
7185
- (0, import_typeorm79.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
7235
+ (0, import_typeorm80.OneToMany)(() => Timesheet, (timesheet) => timesheet.client)
7186
7236
  ], User.prototype, "clientTimesheets", 2);
7187
7237
  __decorateClass([
7188
- (0, import_typeorm79.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
7238
+ (0, import_typeorm80.OneToMany)(() => Timesheet, (timesheet) => timesheet.freelancer)
7189
7239
  ], User.prototype, "freelancerTimesheets", 2);
7190
7240
  __decorateClass([
7191
- (0, import_typeorm79.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
7241
+ (0, import_typeorm80.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
7192
7242
  ], User.prototype, "clientTimesheetLine", 2);
7193
7243
  __decorateClass([
7194
- (0, import_typeorm79.OneToMany)(() => Invoice, (invoice) => invoice.client)
7244
+ (0, import_typeorm80.OneToMany)(() => Invoice, (invoice) => invoice.client)
7195
7245
  ], User.prototype, "clientInvoice", 2);
7196
7246
  __decorateClass([
7197
- (0, import_typeorm79.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
7247
+ (0, import_typeorm80.OneToMany)(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
7198
7248
  ], User.prototype, "freelancerTimesheetLine", 2);
7199
7249
  __decorateClass([
7200
- (0, import_typeorm79.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
7250
+ (0, import_typeorm80.OneToMany)(() => Invoice, (invoice) => invoice.freelancer)
7201
7251
  ], User.prototype, "freelancerInvoice", 2);
7202
7252
  __decorateClass([
7203
- (0, import_typeorm79.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
7253
+ (0, import_typeorm80.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
7204
7254
  ], User.prototype, "clientPreferencesGiven", 2);
7205
7255
  __decorateClass([
7206
- (0, import_typeorm79.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
7256
+ (0, import_typeorm80.OneToMany)(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
7207
7257
  ], User.prototype, "clientPreferencesReceived", 2);
7208
7258
  __decorateClass([
7209
- (0, import_typeorm79.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
7259
+ (0, import_typeorm80.OneToMany)(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
7210
7260
  ], User.prototype, "initiatedDisputes", 2);
7211
7261
  __decorateClass([
7212
- (0, import_typeorm79.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
7262
+ (0, import_typeorm80.OneToMany)(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
7213
7263
  ], User.prototype, "respondentDisputes", 2);
7214
7264
  __decorateClass([
7215
- (0, import_typeorm79.OneToOne)(() => Wallet, (wallet) => wallet.user)
7265
+ (0, import_typeorm80.OneToOne)(() => Wallet, (wallet) => wallet.user)
7216
7266
  ], User.prototype, "wallet", 2);
7217
7267
  __decorateClass([
7218
- (0, import_typeorm79.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
7268
+ (0, import_typeorm80.OneToMany)(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
7219
7269
  ], User.prototype, "stripeTransactions", 2);
7220
7270
  __decorateClass([
7221
- (0, import_typeorm79.OneToMany)(() => Dispute, (dispute) => dispute.client)
7271
+ (0, import_typeorm80.OneToMany)(() => Dispute, (dispute) => dispute.client)
7222
7272
  ], User.prototype, "clientDisputes", 2);
7223
7273
  __decorateClass([
7224
- (0, import_typeorm79.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
7274
+ (0, import_typeorm80.OneToMany)(() => Dispute, (dispute) => dispute.freelancer)
7225
7275
  ], User.prototype, "freelancerDisputes", 2);
7226
7276
  __decorateClass([
7227
- (0, import_typeorm79.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
7277
+ (0, import_typeorm80.OneToMany)(() => InAppNotification, (inAppNotification) => inAppNotification.user)
7228
7278
  ], User.prototype, "inAppNotifications", 2);
7229
7279
  __decorateClass([
7230
- (0, import_typeorm79.OneToMany)(() => UserSubscription, (userSubscription) => userSubscription.user)
7280
+ (0, import_typeorm80.OneToMany)(() => UserSubscription, (userSubscription) => userSubscription.user)
7231
7281
  ], User.prototype, "userSubscriptions", 2);
7232
7282
  User = __decorateClass([
7233
- (0, import_typeorm79.Entity)("users")
7283
+ (0, import_typeorm80.Entity)("users")
7234
7284
  ], User);
7235
7285
 
7236
7286
  // src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
@@ -14367,11 +14417,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
14367
14417
  };
14368
14418
 
14369
14419
  // src/entities/sequence-generator.entity.ts
14370
- var import_typeorm80 = require("typeorm");
14420
+ var import_typeorm81 = require("typeorm");
14371
14421
  var SequenceGenerator = class extends BaseEntity {
14372
14422
  };
14373
14423
  __decorateClass([
14374
- (0, import_typeorm80.Column)({
14424
+ (0, import_typeorm81.Column)({
14375
14425
  name: "module",
14376
14426
  type: "varchar",
14377
14427
  length: 50,
@@ -14380,7 +14430,7 @@ __decorateClass([
14380
14430
  })
14381
14431
  ], SequenceGenerator.prototype, "module", 2);
14382
14432
  __decorateClass([
14383
- (0, import_typeorm80.Column)({
14433
+ (0, import_typeorm81.Column)({
14384
14434
  name: "prefix",
14385
14435
  type: "varchar",
14386
14436
  length: 10,
@@ -14389,7 +14439,7 @@ __decorateClass([
14389
14439
  })
14390
14440
  ], SequenceGenerator.prototype, "prefix", 2);
14391
14441
  __decorateClass([
14392
- (0, import_typeorm80.Column)({
14442
+ (0, import_typeorm81.Column)({
14393
14443
  name: "last_sequence",
14394
14444
  type: "int",
14395
14445
  nullable: false,
@@ -14397,7 +14447,7 @@ __decorateClass([
14397
14447
  })
14398
14448
  ], SequenceGenerator.prototype, "lastSequence", 2);
14399
14449
  __decorateClass([
14400
- (0, import_typeorm80.Column)({
14450
+ (0, import_typeorm81.Column)({
14401
14451
  name: "year",
14402
14452
  type: "int",
14403
14453
  nullable: true,
@@ -14405,11 +14455,11 @@ __decorateClass([
14405
14455
  })
14406
14456
  ], SequenceGenerator.prototype, "year", 2);
14407
14457
  SequenceGenerator = __decorateClass([
14408
- (0, import_typeorm80.Entity)("sequence_generators")
14458
+ (0, import_typeorm81.Entity)("sequence_generators")
14409
14459
  ], SequenceGenerator);
14410
14460
 
14411
14461
  // src/entities/question.entity.ts
14412
- var import_typeorm81 = require("typeorm");
14462
+ var import_typeorm82 = require("typeorm");
14413
14463
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
14414
14464
  QuestionFor2["CLIENT"] = "CLIENT";
14415
14465
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -14418,16 +14468,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
14418
14468
  var Question = class extends BaseEntity {
14419
14469
  };
14420
14470
  __decorateClass([
14421
- (0, import_typeorm81.Column)({ name: "question", type: "varchar" })
14471
+ (0, import_typeorm82.Column)({ name: "question", type: "varchar" })
14422
14472
  ], Question.prototype, "question", 2);
14423
14473
  __decorateClass([
14424
- (0, import_typeorm81.Column)({ name: "hint", type: "varchar", nullable: true })
14474
+ (0, import_typeorm82.Column)({ name: "hint", type: "varchar", nullable: true })
14425
14475
  ], Question.prototype, "hint", 2);
14426
14476
  __decorateClass([
14427
- (0, import_typeorm81.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14477
+ (0, import_typeorm82.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14428
14478
  ], Question.prototype, "slug", 2);
14429
14479
  __decorateClass([
14430
- (0, import_typeorm81.Column)({
14480
+ (0, import_typeorm82.Column)({
14431
14481
  name: "question_for",
14432
14482
  type: "enum",
14433
14483
  enum: QuestionFor,
@@ -14435,45 +14485,45 @@ __decorateClass([
14435
14485
  })
14436
14486
  ], Question.prototype, "questionFor", 2);
14437
14487
  __decorateClass([
14438
- (0, import_typeorm81.Column)({ name: "type", type: "varchar", nullable: true })
14488
+ (0, import_typeorm82.Column)({ name: "type", type: "varchar", nullable: true })
14439
14489
  ], Question.prototype, "type", 2);
14440
14490
  __decorateClass([
14441
- (0, import_typeorm81.Column)({ name: "options", type: "jsonb", nullable: true })
14491
+ (0, import_typeorm82.Column)({ name: "options", type: "jsonb", nullable: true })
14442
14492
  ], Question.prototype, "options", 2);
14443
14493
  __decorateClass([
14444
- (0, import_typeorm81.Column)({ name: "is_active", type: "boolean", default: false })
14494
+ (0, import_typeorm82.Column)({ name: "is_active", type: "boolean", default: false })
14445
14495
  ], Question.prototype, "isActive", 2);
14446
14496
  Question = __decorateClass([
14447
- (0, import_typeorm81.Entity)("questions")
14497
+ (0, import_typeorm82.Entity)("questions")
14448
14498
  ], Question);
14449
14499
 
14450
14500
  // src/entities/skill.entity.ts
14451
- var import_typeorm82 = require("typeorm");
14501
+ var import_typeorm83 = require("typeorm");
14452
14502
  var Skill = class extends BaseEntity {
14453
14503
  };
14454
14504
  __decorateClass([
14455
- (0, import_typeorm82.Column)({ name: "name", type: "varchar", nullable: true })
14505
+ (0, import_typeorm83.Column)({ name: "name", type: "varchar", nullable: true })
14456
14506
  ], Skill.prototype, "name", 2);
14457
14507
  __decorateClass([
14458
- (0, import_typeorm82.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14508
+ (0, import_typeorm83.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14459
14509
  ], Skill.prototype, "slug", 2);
14460
14510
  __decorateClass([
14461
- (0, import_typeorm82.Column)({ name: "is_active", type: "boolean", default: false })
14511
+ (0, import_typeorm83.Column)({ name: "is_active", type: "boolean", default: false })
14462
14512
  ], Skill.prototype, "isActive", 2);
14463
14513
  Skill = __decorateClass([
14464
- (0, import_typeorm82.Entity)("skills")
14514
+ (0, import_typeorm83.Entity)("skills")
14465
14515
  ], Skill);
14466
14516
 
14467
14517
  // src/entities/skill-catalog.entity.ts
14468
- var import_typeorm83 = require("typeorm");
14518
+ var import_typeorm84 = require("typeorm");
14469
14519
  var SkillCatalog = class extends BaseEntity {
14470
14520
  };
14471
14521
  __decorateClass([
14472
- (0, import_typeorm83.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14473
- (0, import_typeorm83.Index)()
14522
+ (0, import_typeorm84.Column)({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
14523
+ (0, import_typeorm84.Index)()
14474
14524
  ], SkillCatalog.prototype, "canonicalName", 2);
14475
14525
  __decorateClass([
14476
- (0, import_typeorm83.Column)({
14526
+ (0, import_typeorm84.Column)({
14477
14527
  name: "aliases",
14478
14528
  type: "text",
14479
14529
  array: true,
@@ -14481,20 +14531,20 @@ __decorateClass([
14481
14531
  })
14482
14532
  ], SkillCatalog.prototype, "aliases", 2);
14483
14533
  __decorateClass([
14484
- (0, import_typeorm83.Column)({
14534
+ (0, import_typeorm84.Column)({
14485
14535
  name: "variations",
14486
14536
  type: "jsonb",
14487
14537
  default: "{}"
14488
14538
  })
14489
14539
  ], SkillCatalog.prototype, "variations", 2);
14490
14540
  __decorateClass([
14491
- (0, import_typeorm83.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
14541
+ (0, import_typeorm84.Column)({ name: "category", type: "varchar", length: 50, nullable: true })
14492
14542
  ], SkillCatalog.prototype, "category", 2);
14493
14543
  __decorateClass([
14494
- (0, import_typeorm83.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
14544
+ (0, import_typeorm84.Column)({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
14495
14545
  ], SkillCatalog.prototype, "parentSkill", 2);
14496
14546
  __decorateClass([
14497
- (0, import_typeorm83.Column)({
14547
+ (0, import_typeorm84.Column)({
14498
14548
  name: "related_skills",
14499
14549
  type: "text",
14500
14550
  array: true,
@@ -14502,68 +14552,68 @@ __decorateClass([
14502
14552
  })
14503
14553
  ], SkillCatalog.prototype, "relatedSkills", 2);
14504
14554
  __decorateClass([
14505
- (0, import_typeorm83.Column)({ name: "usage_count", type: "integer", default: 0 }),
14506
- (0, import_typeorm83.Index)()
14555
+ (0, import_typeorm84.Column)({ name: "usage_count", type: "integer", default: 0 }),
14556
+ (0, import_typeorm84.Index)()
14507
14557
  ], SkillCatalog.prototype, "usageCount", 2);
14508
14558
  __decorateClass([
14509
- (0, import_typeorm83.Column)({ name: "is_verified", type: "boolean", default: false })
14559
+ (0, import_typeorm84.Column)({ name: "is_verified", type: "boolean", default: false })
14510
14560
  ], SkillCatalog.prototype, "isVerified", 2);
14511
14561
  __decorateClass([
14512
- (0, import_typeorm83.Column)({ name: "first_seen_date", type: "date" })
14562
+ (0, import_typeorm84.Column)({ name: "first_seen_date", type: "date" })
14513
14563
  ], SkillCatalog.prototype, "firstSeenDate", 2);
14514
14564
  __decorateClass([
14515
- (0, import_typeorm83.Column)({ name: "last_updated_date", type: "date" })
14565
+ (0, import_typeorm84.Column)({ name: "last_updated_date", type: "date" })
14516
14566
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
14517
14567
  __decorateClass([
14518
- (0, import_typeorm83.Column)({
14568
+ (0, import_typeorm84.Column)({
14519
14569
  name: "search_vector",
14520
14570
  type: "tsvector",
14521
14571
  nullable: true
14522
14572
  })
14523
14573
  ], SkillCatalog.prototype, "searchVector", 2);
14524
14574
  SkillCatalog = __decorateClass([
14525
- (0, import_typeorm83.Entity)("skill_catalogs")
14575
+ (0, import_typeorm84.Entity)("skill_catalogs")
14526
14576
  ], SkillCatalog);
14527
14577
 
14528
14578
  // src/entities/job-role.entity.ts
14529
- var import_typeorm84 = require("typeorm");
14579
+ var import_typeorm85 = require("typeorm");
14530
14580
  var JobRoles = class extends BaseEntity {
14531
14581
  };
14532
14582
  __decorateClass([
14533
- (0, import_typeorm84.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14583
+ (0, import_typeorm85.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14534
14584
  ], JobRoles.prototype, "slug", 2);
14535
14585
  __decorateClass([
14536
- (0, import_typeorm84.Column)({ name: "name", type: "varchar", nullable: true })
14586
+ (0, import_typeorm85.Column)({ name: "name", type: "varchar", nullable: true })
14537
14587
  ], JobRoles.prototype, "name", 2);
14538
14588
  __decorateClass([
14539
- (0, import_typeorm84.Column)({ name: "is_active", type: "boolean", default: true })
14589
+ (0, import_typeorm85.Column)({ name: "is_active", type: "boolean", default: true })
14540
14590
  ], JobRoles.prototype, "isActive", 2);
14541
14591
  JobRoles = __decorateClass([
14542
- (0, import_typeorm84.Entity)("job_roles")
14592
+ (0, import_typeorm85.Entity)("job_roles")
14543
14593
  ], JobRoles);
14544
14594
 
14545
14595
  // src/entities/cms.entity.ts
14546
- var import_typeorm85 = require("typeorm");
14596
+ var import_typeorm86 = require("typeorm");
14547
14597
  var Cms = class extends BaseEntity {
14548
14598
  };
14549
14599
  __decorateClass([
14550
- (0, import_typeorm85.Column)({ name: "title", type: "varchar", nullable: true })
14600
+ (0, import_typeorm86.Column)({ name: "title", type: "varchar", nullable: true })
14551
14601
  ], Cms.prototype, "title", 2);
14552
14602
  __decorateClass([
14553
- (0, import_typeorm85.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14603
+ (0, import_typeorm86.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
14554
14604
  ], Cms.prototype, "slug", 2);
14555
14605
  __decorateClass([
14556
- (0, import_typeorm85.Column)({ name: "content", type: "varchar", nullable: true })
14606
+ (0, import_typeorm86.Column)({ name: "content", type: "varchar", nullable: true })
14557
14607
  ], Cms.prototype, "content", 2);
14558
14608
  __decorateClass([
14559
- (0, import_typeorm85.Column)({ name: "is_active", type: "boolean", default: true })
14609
+ (0, import_typeorm86.Column)({ name: "is_active", type: "boolean", default: true })
14560
14610
  ], Cms.prototype, "isActive", 2);
14561
14611
  Cms = __decorateClass([
14562
- (0, import_typeorm85.Entity)("cms")
14612
+ (0, import_typeorm86.Entity)("cms")
14563
14613
  ], Cms);
14564
14614
 
14565
14615
  // src/entities/lead.entity.ts
14566
- var import_typeorm86 = require("typeorm");
14616
+ var import_typeorm87 = require("typeorm");
14567
14617
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14568
14618
  CategoryEmum2["BUSINESS"] = "BUSINESS";
14569
14619
  CategoryEmum2["FREELANCER"] = "FREELANCER";
@@ -14572,22 +14622,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
14572
14622
  var Lead = class extends BaseEntity {
14573
14623
  };
14574
14624
  __decorateClass([
14575
- (0, import_typeorm86.Column)({ name: "name", type: "varchar", nullable: true })
14625
+ (0, import_typeorm87.Column)({ name: "name", type: "varchar", nullable: true })
14576
14626
  ], Lead.prototype, "name", 2);
14577
14627
  __decorateClass([
14578
- (0, import_typeorm86.Column)({ name: "mobile_code", type: "varchar", nullable: true })
14628
+ (0, import_typeorm87.Column)({ name: "mobile_code", type: "varchar", nullable: true })
14579
14629
  ], Lead.prototype, "mobileCode", 2);
14580
14630
  __decorateClass([
14581
- (0, import_typeorm86.Column)({ name: "mobile", type: "varchar", nullable: true })
14631
+ (0, import_typeorm87.Column)({ name: "mobile", type: "varchar", nullable: true })
14582
14632
  ], Lead.prototype, "mobile", 2);
14583
14633
  __decorateClass([
14584
- (0, import_typeorm86.Column)({ name: "email", type: "varchar", nullable: true })
14634
+ (0, import_typeorm87.Column)({ name: "email", type: "varchar", nullable: true })
14585
14635
  ], Lead.prototype, "email", 2);
14586
14636
  __decorateClass([
14587
- (0, import_typeorm86.Column)({ name: "description", type: "varchar", nullable: true })
14637
+ (0, import_typeorm87.Column)({ name: "description", type: "varchar", nullable: true })
14588
14638
  ], Lead.prototype, "description", 2);
14589
14639
  __decorateClass([
14590
- (0, import_typeorm86.Column)({
14640
+ (0, import_typeorm87.Column)({
14591
14641
  name: "category",
14592
14642
  type: "enum",
14593
14643
  enum: CategoryEmum,
@@ -14595,129 +14645,129 @@ __decorateClass([
14595
14645
  })
14596
14646
  ], Lead.prototype, "category", 2);
14597
14647
  Lead = __decorateClass([
14598
- (0, import_typeorm86.Entity)("leads")
14648
+ (0, import_typeorm87.Entity)("leads")
14599
14649
  ], Lead);
14600
14650
 
14601
14651
  // src/entities/job-freelancer-recommendation.entity.ts
14602
- var import_typeorm87 = require("typeorm");
14652
+ var import_typeorm88 = require("typeorm");
14603
14653
  var JobFreelancerRecommendation = class {
14604
14654
  };
14605
14655
  __decorateClass([
14606
- (0, import_typeorm87.ViewColumn)({ name: "job_id" })
14656
+ (0, import_typeorm88.ViewColumn)({ name: "job_id" })
14607
14657
  ], JobFreelancerRecommendation.prototype, "jobId", 2);
14608
14658
  __decorateClass([
14609
- (0, import_typeorm87.ViewColumn)({ name: "job_uuid" })
14659
+ (0, import_typeorm88.ViewColumn)({ name: "job_uuid" })
14610
14660
  ], JobFreelancerRecommendation.prototype, "jobUuid", 2);
14611
14661
  __decorateClass([
14612
- (0, import_typeorm87.ViewColumn)({ name: "job_unique_id" })
14662
+ (0, import_typeorm88.ViewColumn)({ name: "job_unique_id" })
14613
14663
  ], JobFreelancerRecommendation.prototype, "jobUniqueId", 2);
14614
14664
  __decorateClass([
14615
- (0, import_typeorm87.ViewColumn)({ name: "job_role" })
14665
+ (0, import_typeorm88.ViewColumn)({ name: "job_role" })
14616
14666
  ], JobFreelancerRecommendation.prototype, "jobRole", 2);
14617
14667
  __decorateClass([
14618
- (0, import_typeorm87.ViewColumn)({ name: "job_openings" })
14668
+ (0, import_typeorm88.ViewColumn)({ name: "job_openings" })
14619
14669
  ], JobFreelancerRecommendation.prototype, "jobOpenings", 2);
14620
14670
  __decorateClass([
14621
- (0, import_typeorm87.ViewColumn)({ name: "job_location" })
14671
+ (0, import_typeorm88.ViewColumn)({ name: "job_location" })
14622
14672
  ], JobFreelancerRecommendation.prototype, "jobLocation", 2);
14623
14673
  __decorateClass([
14624
- (0, import_typeorm87.ViewColumn)({ name: "job_currency" })
14674
+ (0, import_typeorm88.ViewColumn)({ name: "job_currency" })
14625
14675
  ], JobFreelancerRecommendation.prototype, "jobCurrency", 2);
14626
14676
  __decorateClass([
14627
- (0, import_typeorm87.ViewColumn)({ name: "job_salary_from" })
14677
+ (0, import_typeorm88.ViewColumn)({ name: "job_salary_from" })
14628
14678
  ], JobFreelancerRecommendation.prototype, "jobSalaryFrom", 2);
14629
14679
  __decorateClass([
14630
- (0, import_typeorm87.ViewColumn)({ name: "job_salary_to" })
14680
+ (0, import_typeorm88.ViewColumn)({ name: "job_salary_to" })
14631
14681
  ], JobFreelancerRecommendation.prototype, "jobSalaryTo", 2);
14632
14682
  __decorateClass([
14633
- (0, import_typeorm87.ViewColumn)({ name: "job_employment_type" })
14683
+ (0, import_typeorm88.ViewColumn)({ name: "job_employment_type" })
14634
14684
  ], JobFreelancerRecommendation.prototype, "jobEmploymentType", 2);
14635
14685
  __decorateClass([
14636
- (0, import_typeorm87.ViewColumn)({ name: "application_received" })
14686
+ (0, import_typeorm88.ViewColumn)({ name: "application_received" })
14637
14687
  ], JobFreelancerRecommendation.prototype, "applicationReceived", 2);
14638
14688
  __decorateClass([
14639
- (0, import_typeorm87.ViewColumn)({ name: "job_posted_at" })
14689
+ (0, import_typeorm88.ViewColumn)({ name: "job_posted_at" })
14640
14690
  ], JobFreelancerRecommendation.prototype, "jobPostedAt", 2);
14641
14691
  __decorateClass([
14642
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_id" })
14692
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_id" })
14643
14693
  ], JobFreelancerRecommendation.prototype, "freelancerId", 2);
14644
14694
  __decorateClass([
14645
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_uuid" })
14695
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_uuid" })
14646
14696
  ], JobFreelancerRecommendation.prototype, "freelancerUuid", 2);
14647
14697
  __decorateClass([
14648
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_unique_id" })
14698
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_unique_id" })
14649
14699
  ], JobFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
14650
14700
  __decorateClass([
14651
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_first_name" })
14701
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_first_name" })
14652
14702
  ], JobFreelancerRecommendation.prototype, "freelancerFirstName", 2);
14653
14703
  __decorateClass([
14654
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_last_name" })
14704
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_last_name" })
14655
14705
  ], JobFreelancerRecommendation.prototype, "freelancerLastName", 2);
14656
14706
  __decorateClass([
14657
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_email" })
14707
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_email" })
14658
14708
  ], JobFreelancerRecommendation.prototype, "freelancerEmail", 2);
14659
14709
  __decorateClass([
14660
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_profile_picture" })
14710
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_profile_picture" })
14661
14711
  ], JobFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
14662
14712
  __decorateClass([
14663
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_is_social" })
14713
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_is_social" })
14664
14714
  ], JobFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
14665
14715
  __decorateClass([
14666
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_created_at" })
14716
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_created_at" })
14667
14717
  ], JobFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
14668
14718
  __decorateClass([
14669
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_designation" })
14719
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_designation" })
14670
14720
  ], JobFreelancerRecommendation.prototype, "freelancerDesignation", 2);
14671
14721
  __decorateClass([
14672
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_experience" })
14722
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_experience" })
14673
14723
  ], JobFreelancerRecommendation.prototype, "freelancerExperience", 2);
14674
14724
  __decorateClass([
14675
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_expertshub_verified" })
14725
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_expertshub_verified" })
14676
14726
  ], JobFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
14677
14727
  __decorateClass([
14678
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_hourly_compensation" })
14728
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_hourly_compensation" })
14679
14729
  ], JobFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
14680
14730
  __decorateClass([
14681
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_country_name" })
14731
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_country_name" })
14682
14732
  ], JobFreelancerRecommendation.prototype, "freelancerCountryName", 2);
14683
14733
  __decorateClass([
14684
- (0, import_typeorm87.ViewColumn)({ name: "freelancer_country_iso_code" })
14734
+ (0, import_typeorm88.ViewColumn)({ name: "freelancer_country_iso_code" })
14685
14735
  ], JobFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
14686
14736
  __decorateClass([
14687
- (0, import_typeorm87.ViewColumn)({ name: "client_id" })
14737
+ (0, import_typeorm88.ViewColumn)({ name: "client_id" })
14688
14738
  ], JobFreelancerRecommendation.prototype, "clientId", 2);
14689
14739
  __decorateClass([
14690
- (0, import_typeorm87.ViewColumn)({ name: "client_uuid" })
14740
+ (0, import_typeorm88.ViewColumn)({ name: "client_uuid" })
14691
14741
  ], JobFreelancerRecommendation.prototype, "clientUuid", 2);
14692
14742
  __decorateClass([
14693
- (0, import_typeorm87.ViewColumn)({ name: "client_first_name" })
14743
+ (0, import_typeorm88.ViewColumn)({ name: "client_first_name" })
14694
14744
  ], JobFreelancerRecommendation.prototype, "clientFirstName", 2);
14695
14745
  __decorateClass([
14696
- (0, import_typeorm87.ViewColumn)({ name: "client_last_name" })
14746
+ (0, import_typeorm88.ViewColumn)({ name: "client_last_name" })
14697
14747
  ], JobFreelancerRecommendation.prototype, "clientLastName", 2);
14698
14748
  __decorateClass([
14699
- (0, import_typeorm87.ViewColumn)({ name: "client_email" })
14749
+ (0, import_typeorm88.ViewColumn)({ name: "client_email" })
14700
14750
  ], JobFreelancerRecommendation.prototype, "clientEmail", 2);
14701
14751
  __decorateClass([
14702
- (0, import_typeorm87.ViewColumn)({ name: "client_company_logo" })
14752
+ (0, import_typeorm88.ViewColumn)({ name: "client_company_logo" })
14703
14753
  ], JobFreelancerRecommendation.prototype, "clientCompanyLogo", 2);
14704
14754
  __decorateClass([
14705
- (0, import_typeorm87.ViewColumn)({ name: "client_company_name" })
14755
+ (0, import_typeorm88.ViewColumn)({ name: "client_company_name" })
14706
14756
  ], JobFreelancerRecommendation.prototype, "clientCompanyName", 2);
14707
14757
  __decorateClass([
14708
- (0, import_typeorm87.ViewColumn)({ name: "matching_skills" })
14758
+ (0, import_typeorm88.ViewColumn)({ name: "matching_skills" })
14709
14759
  ], JobFreelancerRecommendation.prototype, "matchingSkills", 2);
14710
14760
  __decorateClass([
14711
- (0, import_typeorm87.ViewColumn)({ name: "matching_skills_count" })
14761
+ (0, import_typeorm88.ViewColumn)({ name: "matching_skills_count" })
14712
14762
  ], JobFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
14713
14763
  __decorateClass([
14714
- (0, import_typeorm87.ViewColumn)({ name: "required_skills" })
14764
+ (0, import_typeorm88.ViewColumn)({ name: "required_skills" })
14715
14765
  ], JobFreelancerRecommendation.prototype, "requiredSkills", 2);
14716
14766
  __decorateClass([
14717
- (0, import_typeorm87.ViewColumn)({ name: "required_skills_count" })
14767
+ (0, import_typeorm88.ViewColumn)({ name: "required_skills_count" })
14718
14768
  ], JobFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
14719
14769
  JobFreelancerRecommendation = __decorateClass([
14720
- (0, import_typeorm87.ViewEntity)({
14770
+ (0, import_typeorm88.ViewEntity)({
14721
14771
  name: "job_freelancer_recommendations",
14722
14772
  materialized: true,
14723
14773
  synchronize: false
@@ -14726,32 +14776,32 @@ JobFreelancerRecommendation = __decorateClass([
14726
14776
  ], JobFreelancerRecommendation);
14727
14777
 
14728
14778
  // src/entities/job-freelancer-recommendation-v2.entity.ts
14729
- var import_typeorm88 = require("typeorm");
14779
+ var import_typeorm89 = require("typeorm");
14730
14780
  var JobFreelancerRecommendationV2 = class {
14731
14781
  };
14732
14782
  __decorateClass([
14733
- (0, import_typeorm88.ViewColumn)({ name: "job_id" })
14783
+ (0, import_typeorm89.ViewColumn)({ name: "job_id" })
14734
14784
  ], JobFreelancerRecommendationV2.prototype, "jobId", 2);
14735
14785
  __decorateClass([
14736
- (0, import_typeorm88.ViewColumn)({ name: "job_owner_id" })
14786
+ (0, import_typeorm89.ViewColumn)({ name: "job_owner_id" })
14737
14787
  ], JobFreelancerRecommendationV2.prototype, "jobOwnerId", 2);
14738
14788
  __decorateClass([
14739
- (0, import_typeorm88.ViewColumn)({ name: "freelancer_id" })
14789
+ (0, import_typeorm89.ViewColumn)({ name: "freelancer_id" })
14740
14790
  ], JobFreelancerRecommendationV2.prototype, "freelancerId", 2);
14741
14791
  __decorateClass([
14742
- (0, import_typeorm88.ViewColumn)({ name: "matching_skills" })
14792
+ (0, import_typeorm89.ViewColumn)({ name: "matching_skills" })
14743
14793
  ], JobFreelancerRecommendationV2.prototype, "matchingSkills", 2);
14744
14794
  __decorateClass([
14745
- (0, import_typeorm88.ViewColumn)({ name: "matching_skills_count" })
14795
+ (0, import_typeorm89.ViewColumn)({ name: "matching_skills_count" })
14746
14796
  ], JobFreelancerRecommendationV2.prototype, "matchingSkillsCount", 2);
14747
14797
  __decorateClass([
14748
- (0, import_typeorm88.ViewColumn)({ name: "required_skills" })
14798
+ (0, import_typeorm89.ViewColumn)({ name: "required_skills" })
14749
14799
  ], JobFreelancerRecommendationV2.prototype, "requiredSkills", 2);
14750
14800
  __decorateClass([
14751
- (0, import_typeorm88.ViewColumn)({ name: "required_skills_count" })
14801
+ (0, import_typeorm89.ViewColumn)({ name: "required_skills_count" })
14752
14802
  ], JobFreelancerRecommendationV2.prototype, "requiredSkillsCount", 2);
14753
14803
  JobFreelancerRecommendationV2 = __decorateClass([
14754
- (0, import_typeorm88.ViewEntity)({
14804
+ (0, import_typeorm89.ViewEntity)({
14755
14805
  name: "job_freelancer_recommendations_v2",
14756
14806
  materialized: true,
14757
14807
  synchronize: false
@@ -14760,74 +14810,74 @@ JobFreelancerRecommendationV2 = __decorateClass([
14760
14810
  ], JobFreelancerRecommendationV2);
14761
14811
 
14762
14812
  // src/entities/client-freelancer-recommendation.entity.ts
14763
- var import_typeorm89 = require("typeorm");
14813
+ var import_typeorm90 = require("typeorm");
14764
14814
  var ClientFreelancerRecommendation = class {
14765
14815
  };
14766
14816
  __decorateClass([
14767
- (0, import_typeorm89.ViewColumn)({ name: "client_id" })
14817
+ (0, import_typeorm90.ViewColumn)({ name: "client_id" })
14768
14818
  ], ClientFreelancerRecommendation.prototype, "clientId", 2);
14769
14819
  __decorateClass([
14770
- (0, import_typeorm89.ViewColumn)({ name: "client_uuid" })
14820
+ (0, import_typeorm90.ViewColumn)({ name: "client_uuid" })
14771
14821
  ], ClientFreelancerRecommendation.prototype, "clientUuid", 2);
14772
14822
  __decorateClass([
14773
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_id" })
14823
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_id" })
14774
14824
  ], ClientFreelancerRecommendation.prototype, "freelancerId", 2);
14775
14825
  __decorateClass([
14776
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_uuid" })
14826
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_uuid" })
14777
14827
  ], ClientFreelancerRecommendation.prototype, "freelancerUuid", 2);
14778
14828
  __decorateClass([
14779
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_unique_id" })
14829
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_unique_id" })
14780
14830
  ], ClientFreelancerRecommendation.prototype, "freelancerUniqueId", 2);
14781
14831
  __decorateClass([
14782
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_first_name" })
14832
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_first_name" })
14783
14833
  ], ClientFreelancerRecommendation.prototype, "freelancerFirstName", 2);
14784
14834
  __decorateClass([
14785
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_last_name" })
14835
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_last_name" })
14786
14836
  ], ClientFreelancerRecommendation.prototype, "freelancerLastName", 2);
14787
14837
  __decorateClass([
14788
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_email" })
14838
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_email" })
14789
14839
  ], ClientFreelancerRecommendation.prototype, "freelancerEmail", 2);
14790
14840
  __decorateClass([
14791
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_profile_picture" })
14841
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_profile_picture" })
14792
14842
  ], ClientFreelancerRecommendation.prototype, "freelancerProfilePicture", 2);
14793
14843
  __decorateClass([
14794
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_is_social" })
14844
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_is_social" })
14795
14845
  ], ClientFreelancerRecommendation.prototype, "freelancerIsSocial", 2);
14796
14846
  __decorateClass([
14797
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_created_at" })
14847
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_created_at" })
14798
14848
  ], ClientFreelancerRecommendation.prototype, "freelancerCreatedAt", 2);
14799
14849
  __decorateClass([
14800
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_designation" })
14850
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_designation" })
14801
14851
  ], ClientFreelancerRecommendation.prototype, "freelancerDesignation", 2);
14802
14852
  __decorateClass([
14803
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_experience" })
14853
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_experience" })
14804
14854
  ], ClientFreelancerRecommendation.prototype, "freelancerExperience", 2);
14805
14855
  __decorateClass([
14806
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_expertshub_verified" })
14856
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_expertshub_verified" })
14807
14857
  ], ClientFreelancerRecommendation.prototype, "freelancerExpertshubVerified", 2);
14808
14858
  __decorateClass([
14809
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_hourly_compensation" })
14859
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_hourly_compensation" })
14810
14860
  ], ClientFreelancerRecommendation.prototype, "freelancerHourlyCompensation", 2);
14811
14861
  __decorateClass([
14812
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_country_name" })
14862
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_country_name" })
14813
14863
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryName", 2);
14814
14864
  __decorateClass([
14815
- (0, import_typeorm89.ViewColumn)({ name: "freelancer_country_iso_code" })
14865
+ (0, import_typeorm90.ViewColumn)({ name: "freelancer_country_iso_code" })
14816
14866
  ], ClientFreelancerRecommendation.prototype, "freelancerCountryIsoCode", 2);
14817
14867
  __decorateClass([
14818
- (0, import_typeorm89.ViewColumn)({ name: "matching_skills" })
14868
+ (0, import_typeorm90.ViewColumn)({ name: "matching_skills" })
14819
14869
  ], ClientFreelancerRecommendation.prototype, "matchingSkills", 2);
14820
14870
  __decorateClass([
14821
- (0, import_typeorm89.ViewColumn)({ name: "matching_skills_count" })
14871
+ (0, import_typeorm90.ViewColumn)({ name: "matching_skills_count" })
14822
14872
  ], ClientFreelancerRecommendation.prototype, "matchingSkillsCount", 2);
14823
14873
  __decorateClass([
14824
- (0, import_typeorm89.ViewColumn)({ name: "required_skills" })
14874
+ (0, import_typeorm90.ViewColumn)({ name: "required_skills" })
14825
14875
  ], ClientFreelancerRecommendation.prototype, "requiredSkills", 2);
14826
14876
  __decorateClass([
14827
- (0, import_typeorm89.ViewColumn)({ name: "required_skills_count" })
14877
+ (0, import_typeorm90.ViewColumn)({ name: "required_skills_count" })
14828
14878
  ], ClientFreelancerRecommendation.prototype, "requiredSkillsCount", 2);
14829
14879
  ClientFreelancerRecommendation = __decorateClass([
14830
- (0, import_typeorm89.ViewEntity)({
14880
+ (0, import_typeorm90.ViewEntity)({
14831
14881
  name: "client_freelancer_recommendations",
14832
14882
  materialized: true,
14833
14883
  synchronize: false
@@ -14836,7 +14886,7 @@ ClientFreelancerRecommendation = __decorateClass([
14836
14886
  ], ClientFreelancerRecommendation);
14837
14887
 
14838
14888
  // src/entities/commission.entity.ts
14839
- var import_typeorm90 = require("typeorm");
14889
+ var import_typeorm91 = require("typeorm");
14840
14890
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
14841
14891
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
14842
14892
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -14845,7 +14895,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
14845
14895
  var Commission = class extends BaseEntity {
14846
14896
  };
14847
14897
  __decorateClass([
14848
- (0, import_typeorm90.Column)({
14898
+ (0, import_typeorm91.Column)({
14849
14899
  name: "freelancer_commission_type",
14850
14900
  type: "enum",
14851
14901
  enum: CommissionTypeEnum,
@@ -14853,10 +14903,10 @@ __decorateClass([
14853
14903
  })
14854
14904
  ], Commission.prototype, "freelancerCommissionType", 2);
14855
14905
  __decorateClass([
14856
- (0, import_typeorm90.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
14906
+ (0, import_typeorm91.Column)({ name: "freelancer_commission", type: "integer", default: 0 })
14857
14907
  ], Commission.prototype, "freelancerCommission", 2);
14858
14908
  __decorateClass([
14859
- (0, import_typeorm90.Column)({
14909
+ (0, import_typeorm91.Column)({
14860
14910
  name: "client_commission_type",
14861
14911
  type: "enum",
14862
14912
  enum: CommissionTypeEnum,
@@ -14864,50 +14914,50 @@ __decorateClass([
14864
14914
  })
14865
14915
  ], Commission.prototype, "clientCommissionType", 2);
14866
14916
  __decorateClass([
14867
- (0, import_typeorm90.Column)({ name: "client_commission", type: "integer", default: 0 })
14917
+ (0, import_typeorm91.Column)({ name: "client_commission", type: "integer", default: 0 })
14868
14918
  ], Commission.prototype, "clientCommission", 2);
14869
14919
  Commission = __decorateClass([
14870
- (0, import_typeorm90.Entity)("commissions")
14920
+ (0, import_typeorm91.Entity)("commissions")
14871
14921
  ], Commission);
14872
14922
 
14873
14923
  // src/entities/calendly-meeting-log.entity.ts
14874
- var import_typeorm91 = require("typeorm");
14924
+ var import_typeorm92 = require("typeorm");
14875
14925
  var CalendlyMeetingLog = class extends BaseEntity {
14876
14926
  };
14877
14927
  __decorateClass([
14878
- (0, import_typeorm91.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
14879
- (0, import_typeorm91.Index)()
14928
+ (0, import_typeorm92.Column)({ name: "calendly_event_id", type: "varchar", nullable: true }),
14929
+ (0, import_typeorm92.Index)()
14880
14930
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
14881
14931
  __decorateClass([
14882
- (0, import_typeorm91.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
14932
+ (0, import_typeorm92.Column)({ name: "calendly_event_type", type: "varchar", nullable: true })
14883
14933
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
14884
14934
  __decorateClass([
14885
- (0, import_typeorm91.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14935
+ (0, import_typeorm92.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14886
14936
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
14887
14937
  CalendlyMeetingLog = __decorateClass([
14888
- (0, import_typeorm91.Entity)("calendly_meeting_logs")
14938
+ (0, import_typeorm92.Entity)("calendly_meeting_logs")
14889
14939
  ], CalendlyMeetingLog);
14890
14940
 
14891
14941
  // src/entities/zoom-meeting-log.entity.ts
14892
- var import_typeorm92 = require("typeorm");
14942
+ var import_typeorm93 = require("typeorm");
14893
14943
  var ZoomMeetingLog = class extends BaseEntity {
14894
14944
  };
14895
14945
  __decorateClass([
14896
- (0, import_typeorm92.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
14897
- (0, import_typeorm92.Index)()
14946
+ (0, import_typeorm93.Column)({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
14947
+ (0, import_typeorm93.Index)()
14898
14948
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
14899
14949
  __decorateClass([
14900
- (0, import_typeorm92.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
14950
+ (0, import_typeorm93.Column)({ name: "zoom_event_type", type: "varchar", nullable: true })
14901
14951
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
14902
14952
  __decorateClass([
14903
- (0, import_typeorm92.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14953
+ (0, import_typeorm93.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14904
14954
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
14905
14955
  ZoomMeetingLog = __decorateClass([
14906
- (0, import_typeorm92.Entity)("zoom_meeting_logs")
14956
+ (0, import_typeorm93.Entity)("zoom_meeting_logs")
14907
14957
  ], ZoomMeetingLog);
14908
14958
 
14909
14959
  // src/entities/docuseal.entity.ts
14910
- var import_typeorm93 = require("typeorm");
14960
+ var import_typeorm94 = require("typeorm");
14911
14961
  var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
14912
14962
  DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
14913
14963
  DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
@@ -14917,132 +14967,132 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
14917
14967
  var DocuSeal = class extends BaseEntity {
14918
14968
  };
14919
14969
  __decorateClass([
14920
- (0, import_typeorm93.Column)({ name: "reference_id", type: "integer", nullable: false }),
14921
- (0, import_typeorm93.Index)()
14970
+ (0, import_typeorm94.Column)({ name: "reference_id", type: "integer", nullable: false }),
14971
+ (0, import_typeorm94.Index)()
14922
14972
  ], DocuSeal.prototype, "referenceId", 2);
14923
14973
  __decorateClass([
14924
- (0, import_typeorm93.Column)({ name: "submitter_id", type: "integer", nullable: true }),
14925
- (0, import_typeorm93.Index)()
14974
+ (0, import_typeorm94.Column)({ name: "submitter_id", type: "integer", nullable: true }),
14975
+ (0, import_typeorm94.Index)()
14926
14976
  ], DocuSeal.prototype, "submitterId", 2);
14927
14977
  __decorateClass([
14928
- (0, import_typeorm93.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
14978
+ (0, import_typeorm94.Column)({ name: "submitter_response", type: "jsonb", nullable: true })
14929
14979
  ], DocuSeal.prototype, "submitterResponse", 2);
14930
14980
  __decorateClass([
14931
- (0, import_typeorm93.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
14981
+ (0, import_typeorm94.Column)({ name: "webhook_response", type: "jsonb", nullable: true })
14932
14982
  ], DocuSeal.prototype, "webhookResponse", 2);
14933
14983
  __decorateClass([
14934
- (0, import_typeorm93.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
14984
+ (0, import_typeorm94.Column)({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
14935
14985
  ], DocuSeal.prototype, "type", 2);
14936
14986
  DocuSeal = __decorateClass([
14937
- (0, import_typeorm93.Entity)("docuseal")
14987
+ (0, import_typeorm94.Entity)("docuseal")
14938
14988
  ], DocuSeal);
14939
14989
 
14940
14990
  // src/entities/stripe-logs.entity.ts
14941
- var import_typeorm94 = require("typeorm");
14991
+ var import_typeorm95 = require("typeorm");
14942
14992
  var StripeLog = class extends BaseEntity {
14943
14993
  };
14944
14994
  __decorateClass([
14945
- (0, import_typeorm94.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
14995
+ (0, import_typeorm95.Column)({ name: "stripe_event_id", type: "varchar", nullable: true })
14946
14996
  ], StripeLog.prototype, "stripeEventId", 2);
14947
14997
  __decorateClass([
14948
- (0, import_typeorm94.Column)({ name: "event_type", type: "varchar", nullable: true })
14998
+ (0, import_typeorm95.Column)({ name: "event_type", type: "varchar", nullable: true })
14949
14999
  ], StripeLog.prototype, "eventType", 2);
14950
15000
  __decorateClass([
14951
- (0, import_typeorm94.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
15001
+ (0, import_typeorm95.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
14952
15002
  ], StripeLog.prototype, "stripeAccountId", 2);
14953
15003
  __decorateClass([
14954
- (0, import_typeorm94.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
15004
+ (0, import_typeorm95.Column)({ name: "raw_webhook_data", type: "jsonb", nullable: true })
14955
15005
  ], StripeLog.prototype, "rawWebhookData", 2);
14956
15006
  StripeLog = __decorateClass([
14957
- (0, import_typeorm94.Entity)("stripe_logs")
15007
+ (0, import_typeorm95.Entity)("stripe_logs")
14958
15008
  ], StripeLog);
14959
15009
 
14960
15010
  // src/entities/recommendation-weightage-config.entity.ts
14961
- var import_typeorm95 = require("typeorm");
15011
+ var import_typeorm96 = require("typeorm");
14962
15012
  var RecommendationWeightageConfig = class extends BaseEntity {
14963
15013
  };
14964
15014
  __decorateClass([
14965
- (0, import_typeorm95.Column)({
15015
+ (0, import_typeorm96.Column)({
14966
15016
  type: "varchar",
14967
15017
  length: 100,
14968
15018
  unique: true,
14969
15019
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
14970
15020
  }),
14971
- (0, import_typeorm95.Index)()
15021
+ (0, import_typeorm96.Index)()
14972
15022
  ], RecommendationWeightageConfig.prototype, "key", 2);
14973
15023
  __decorateClass([
14974
- (0, import_typeorm95.Column)({
15024
+ (0, import_typeorm96.Column)({
14975
15025
  type: "jsonb",
14976
15026
  comment: "JSON object containing weight values",
14977
15027
  nullable: true
14978
15028
  })
14979
15029
  ], RecommendationWeightageConfig.prototype, "value", 2);
14980
15030
  __decorateClass([
14981
- (0, import_typeorm95.Column)({ name: "is_active", type: "boolean", default: true })
15031
+ (0, import_typeorm96.Column)({ name: "is_active", type: "boolean", default: true })
14982
15032
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
14983
15033
  RecommendationWeightageConfig = __decorateClass([
14984
- (0, import_typeorm95.Entity)("recommendation_weightage_configs")
15034
+ (0, import_typeorm96.Entity)("recommendation_weightage_configs")
14985
15035
  ], RecommendationWeightageConfig);
14986
15036
 
14987
15037
  // src/entities/global-setting.entity.ts
14988
- var import_typeorm96 = require("typeorm");
15038
+ var import_typeorm97 = require("typeorm");
14989
15039
  var GlobalSetting = class extends BaseEntity {
14990
15040
  };
14991
15041
  __decorateClass([
14992
- (0, import_typeorm96.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
15042
+ (0, import_typeorm97.Column)({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
14993
15043
  ], GlobalSetting.prototype, "key", 2);
14994
15044
  __decorateClass([
14995
- (0, import_typeorm96.Column)({ name: "value", type: "text", nullable: false })
15045
+ (0, import_typeorm97.Column)({ name: "value", type: "text", nullable: false })
14996
15046
  ], GlobalSetting.prototype, "value", 2);
14997
15047
  GlobalSetting = __decorateClass([
14998
- (0, import_typeorm96.Entity)("global_settings"),
14999
- (0, import_typeorm96.Index)(["key"], { unique: true })
15048
+ (0, import_typeorm97.Entity)("global_settings"),
15049
+ (0, import_typeorm97.Index)(["key"], { unique: true })
15000
15050
  ], GlobalSetting);
15001
15051
 
15002
15052
  // src/entities/plan.entity.ts
15003
- var import_typeorm99 = require("typeorm");
15053
+ var import_typeorm100 = require("typeorm");
15004
15054
 
15005
15055
  // src/entities/plan-feature.entity.ts
15006
- var import_typeorm97 = require("typeorm");
15056
+ var import_typeorm98 = require("typeorm");
15007
15057
  var PlanFeature = class extends BaseEntity {
15008
15058
  };
15009
15059
  // individual index to find features by plan
15010
15060
  __decorateClass([
15011
- (0, import_typeorm97.Column)({ name: "plan_id", type: "integer", nullable: false }),
15012
- (0, import_typeorm97.Index)()
15061
+ (0, import_typeorm98.Column)({ name: "plan_id", type: "integer", nullable: false }),
15062
+ (0, import_typeorm98.Index)()
15013
15063
  ], PlanFeature.prototype, "planId", 2);
15014
15064
  __decorateClass([
15015
- (0, import_typeorm97.ManyToOne)(() => Plan, (plan) => plan.features, {
15065
+ (0, import_typeorm98.ManyToOne)(() => Plan, (plan) => plan.features, {
15016
15066
  onDelete: "CASCADE",
15017
15067
  nullable: false
15018
15068
  }),
15019
- (0, import_typeorm97.JoinColumn)({ name: "plan_id" })
15069
+ (0, import_typeorm98.JoinColumn)({ name: "plan_id" })
15020
15070
  ], PlanFeature.prototype, "plan", 2);
15021
15071
  __decorateClass([
15022
- (0, import_typeorm97.Column)({ name: "name", type: "varchar", length: 200 })
15072
+ (0, import_typeorm98.Column)({ name: "name", type: "varchar", length: 200 })
15023
15073
  ], PlanFeature.prototype, "name", 2);
15024
15074
  __decorateClass([
15025
- (0, import_typeorm97.Column)({ name: "slug", type: "varchar", length: 100 }),
15026
- (0, import_typeorm97.Index)()
15075
+ (0, import_typeorm98.Column)({ name: "slug", type: "varchar", length: 100 }),
15076
+ (0, import_typeorm98.Index)()
15027
15077
  ], PlanFeature.prototype, "slug", 2);
15028
15078
  __decorateClass([
15029
- (0, import_typeorm97.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15079
+ (0, import_typeorm98.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15030
15080
  ], PlanFeature.prototype, "tooltip", 2);
15031
15081
  __decorateClass([
15032
- (0, import_typeorm97.Column)({ name: "sort_order", type: "smallint", default: 0 })
15082
+ (0, import_typeorm98.Column)({ name: "sort_order", type: "smallint", default: 0 })
15033
15083
  ], PlanFeature.prototype, "sortOrder", 2);
15034
15084
  __decorateClass([
15035
- (0, import_typeorm97.Column)({ name: "is_active", type: "boolean", default: true })
15085
+ (0, import_typeorm98.Column)({ name: "is_active", type: "boolean", default: true })
15036
15086
  ], PlanFeature.prototype, "isActive", 2);
15037
15087
  PlanFeature = __decorateClass([
15038
- (0, import_typeorm97.Entity)("plan_features"),
15039
- (0, import_typeorm97.Index)("idx_plan_features_plan_id", ["planId"]),
15040
- (0, import_typeorm97.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
15041
- (0, import_typeorm97.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
15088
+ (0, import_typeorm98.Entity)("plan_features"),
15089
+ (0, import_typeorm98.Index)("idx_plan_features_plan_id", ["planId"]),
15090
+ (0, import_typeorm98.Index)("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
15091
+ (0, import_typeorm98.Check)("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
15042
15092
  ], PlanFeature);
15043
15093
 
15044
15094
  // src/entities/plan-pricing.entity.ts
15045
- var import_typeorm98 = require("typeorm");
15095
+ var import_typeorm99 = require("typeorm");
15046
15096
  var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
15047
15097
  PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
15048
15098
  PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
@@ -15097,61 +15147,61 @@ var PlanPricing = class extends BaseEntity {
15097
15147
  };
15098
15148
  // individual index to find pricing by plan
15099
15149
  __decorateClass([
15100
- (0, import_typeorm98.Column)({ name: "plan_id", type: "integer", nullable: false }),
15101
- (0, import_typeorm98.Index)()
15150
+ (0, import_typeorm99.Column)({ name: "plan_id", type: "integer", nullable: false }),
15151
+ (0, import_typeorm99.Index)()
15102
15152
  ], PlanPricing.prototype, "planId", 2);
15103
15153
  __decorateClass([
15104
- (0, import_typeorm98.ManyToOne)(() => Plan, (plan) => plan.pricing, {
15154
+ (0, import_typeorm99.ManyToOne)(() => Plan, (plan) => plan.pricing, {
15105
15155
  onDelete: "CASCADE",
15106
15156
  nullable: false
15107
15157
  }),
15108
- (0, import_typeorm98.JoinColumn)({ name: "plan_id" })
15158
+ (0, import_typeorm99.JoinColumn)({ name: "plan_id" })
15109
15159
  ], PlanPricing.prototype, "plan", 2);
15110
15160
  __decorateClass([
15111
- (0, import_typeorm98.Column)({
15161
+ (0, import_typeorm99.Column)({
15112
15162
  name: "billing_cycle",
15113
15163
  type: "enum",
15114
15164
  enum: PlanPricingBillingCycleEnum
15115
15165
  })
15116
15166
  ], PlanPricing.prototype, "billingCycle", 2);
15117
15167
  __decorateClass([
15118
- (0, import_typeorm98.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
15168
+ (0, import_typeorm99.Column)({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
15119
15169
  ], PlanPricing.prototype, "price", 2);
15120
15170
  __decorateClass([
15121
- (0, import_typeorm98.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
15171
+ (0, import_typeorm99.Column)({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
15122
15172
  ], PlanPricing.prototype, "originalPrice", 2);
15123
15173
  __decorateClass([
15124
- (0, import_typeorm98.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
15174
+ (0, import_typeorm99.Column)({ name: "discount_pct", type: "decimal", precision: 5, scale: 2, nullable: true })
15125
15175
  ], PlanPricing.prototype, "discountPct", 2);
15126
15176
  __decorateClass([
15127
- (0, import_typeorm98.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
15177
+ (0, import_typeorm99.Column)({ name: "currency", type: "varchar", length: 3, default: "USD" })
15128
15178
  ], PlanPricing.prototype, "currency", 2);
15129
15179
  __decorateClass([
15130
- (0, import_typeorm98.Column)({ name: "is_free", type: "boolean", default: false })
15180
+ (0, import_typeorm99.Column)({ name: "is_free", type: "boolean", default: false })
15131
15181
  ], PlanPricing.prototype, "isFree", 2);
15132
15182
  __decorateClass([
15133
- (0, import_typeorm98.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
15183
+ (0, import_typeorm99.Column)({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
15134
15184
  ], PlanPricing.prototype, "stripePriceId", 2);
15135
15185
  __decorateClass([
15136
- (0, import_typeorm98.Column)({ name: "trial_days", type: "smallint", default: 0 })
15186
+ (0, import_typeorm99.Column)({ name: "trial_days", type: "smallint", default: 0 })
15137
15187
  ], PlanPricing.prototype, "trialDays", 2);
15138
15188
  __decorateClass([
15139
- (0, import_typeorm98.Column)({ name: "is_active", type: "boolean", default: true })
15189
+ (0, import_typeorm99.Column)({ name: "is_active", type: "boolean", default: true })
15140
15190
  ], PlanPricing.prototype, "isActive", 2);
15141
15191
  __decorateClass([
15142
- (0, import_typeorm98.BeforeInsert)(),
15143
- (0, import_typeorm98.BeforeUpdate)()
15192
+ (0, import_typeorm99.BeforeInsert)(),
15193
+ (0, import_typeorm99.BeforeUpdate)()
15144
15194
  ], PlanPricing.prototype, "sanitize", 1);
15145
15195
  PlanPricing = __decorateClass([
15146
- (0, import_typeorm98.Entity)("plan_pricings"),
15147
- (0, import_typeorm98.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
15148
- (0, import_typeorm98.Index)("idx_plan_pricings_plan_id", ["planId"]),
15149
- (0, import_typeorm98.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
15150
- (0, import_typeorm98.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
15151
- (0, import_typeorm98.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
15152
- (0, import_typeorm98.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
15153
- (0, import_typeorm98.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
15154
- (0, import_typeorm98.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
15196
+ (0, import_typeorm99.Entity)("plan_pricings"),
15197
+ (0, import_typeorm99.Unique)("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
15198
+ (0, import_typeorm99.Index)("idx_plan_pricings_plan_id", ["planId"]),
15199
+ (0, import_typeorm99.Index)("idx_plan_pricings_active", ["isActive", "billingCycle"]),
15200
+ (0, import_typeorm99.Check)("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
15201
+ (0, import_typeorm99.Check)("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
15202
+ (0, import_typeorm99.Check)("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
15203
+ (0, import_typeorm99.Check)("chk_plan_pricings_original_gte_price", '"original_price" IS NULL OR "original_price" >= "price"'),
15204
+ (0, import_typeorm99.Check)("chk_plan_pricings_original_price_non_negative", '"original_price" IS NULL OR "original_price" >= 0')
15155
15205
  ], PlanPricing);
15156
15206
 
15157
15207
  // src/entities/plan.entity.ts
@@ -15168,22 +15218,22 @@ var Plan = class extends BaseEntity {
15168
15218
  }
15169
15219
  };
15170
15220
  __decorateClass([
15171
- (0, import_typeorm99.Column)({ name: "name", type: "varchar", length: 100 })
15221
+ (0, import_typeorm100.Column)({ name: "name", type: "varchar", length: 100 })
15172
15222
  ], Plan.prototype, "name", 2);
15173
15223
  __decorateClass([
15174
- (0, import_typeorm99.Column)({ name: "slug", type: "varchar", length: 100 })
15224
+ (0, import_typeorm100.Column)({ name: "slug", type: "varchar", length: 100 })
15175
15225
  ], Plan.prototype, "slug", 2);
15176
15226
  __decorateClass([
15177
- (0, import_typeorm99.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
15227
+ (0, import_typeorm100.Column)({ name: "badge_label", type: "varchar", length: 60, nullable: true })
15178
15228
  ], Plan.prototype, "badgeLabel", 2);
15179
15229
  __decorateClass([
15180
- (0, import_typeorm99.Column)({ name: "sort_order", type: "smallint", default: 0 })
15230
+ (0, import_typeorm100.Column)({ name: "sort_order", type: "smallint", default: 0 })
15181
15231
  ], Plan.prototype, "sortOrder", 2);
15182
15232
  __decorateClass([
15183
- (0, import_typeorm99.Column)({ name: "is_active", type: "boolean", default: true })
15233
+ (0, import_typeorm100.Column)({ name: "is_active", type: "boolean", default: true })
15184
15234
  ], Plan.prototype, "isActive", 2);
15185
15235
  __decorateClass([
15186
- (0, import_typeorm99.Column)({
15236
+ (0, import_typeorm100.Column)({
15187
15237
  name: "plan_type",
15188
15238
  type: "enum",
15189
15239
  enum: PlanTypeEnum,
@@ -15191,37 +15241,37 @@ __decorateClass([
15191
15241
  })
15192
15242
  ], Plan.prototype, "planType", 2);
15193
15243
  __decorateClass([
15194
- (0, import_typeorm99.Column)({ name: "metadata", type: "jsonb", default: {} })
15244
+ (0, import_typeorm100.Column)({ name: "metadata", type: "jsonb", default: {} })
15195
15245
  ], Plan.prototype, "metadata", 2);
15196
15246
  __decorateClass([
15197
- (0, import_typeorm99.Column)({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
15247
+ (0, import_typeorm100.Column)({ name: "stripe_product_id", type: "varchar", length: 100, nullable: true })
15198
15248
  ], Plan.prototype, "stripeProductId", 2);
15199
15249
  __decorateClass([
15200
- (0, import_typeorm99.BeforeInsert)(),
15201
- (0, import_typeorm99.BeforeUpdate)()
15250
+ (0, import_typeorm100.BeforeInsert)(),
15251
+ (0, import_typeorm100.BeforeUpdate)()
15202
15252
  ], Plan.prototype, "createSlug", 1);
15203
15253
  __decorateClass([
15204
- (0, import_typeorm99.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
15254
+ (0, import_typeorm100.OneToMany)(() => PlanFeature, (feature) => feature.plan, {
15205
15255
  cascade: ["insert", "update"]
15206
15256
  })
15207
15257
  ], Plan.prototype, "features", 2);
15208
15258
  __decorateClass([
15209
- (0, import_typeorm99.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
15259
+ (0, import_typeorm100.OneToMany)(() => PlanPricing, (pricing) => pricing.plan, {
15210
15260
  cascade: ["insert", "update"]
15211
15261
  })
15212
15262
  ], Plan.prototype, "pricing", 2);
15213
15263
  Plan = __decorateClass([
15214
- (0, import_typeorm99.Entity)("plans"),
15215
- (0, import_typeorm99.Index)("idx_plans_slug_plan_type", ["slug", "planType"], {
15264
+ (0, import_typeorm100.Entity)("plans"),
15265
+ (0, import_typeorm100.Index)("idx_plans_slug_plan_type", ["slug", "planType"], {
15216
15266
  unique: true,
15217
15267
  where: '"is_deleted" IS FALSE'
15218
15268
  }),
15219
- (0, import_typeorm99.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
15220
- (0, import_typeorm99.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
15269
+ (0, import_typeorm100.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
15270
+ (0, import_typeorm100.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
15221
15271
  ], Plan);
15222
15272
 
15223
15273
  // src/entities/subscription-feature.entity.ts
15224
- var import_typeorm100 = require("typeorm");
15274
+ var import_typeorm101 = require("typeorm");
15225
15275
  var SubscriptionFeature = class extends BaseEntity {
15226
15276
  toSlug(value) {
15227
15277
  return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
@@ -15236,33 +15286,33 @@ var SubscriptionFeature = class extends BaseEntity {
15236
15286
  }
15237
15287
  };
15238
15288
  __decorateClass([
15239
- (0, import_typeorm100.Column)({ name: "name", type: "varchar", length: 200 })
15289
+ (0, import_typeorm101.Column)({ name: "name", type: "varchar", length: 200 })
15240
15290
  ], SubscriptionFeature.prototype, "name", 2);
15241
15291
  __decorateClass([
15242
- (0, import_typeorm100.Column)({ name: "slug", type: "varchar", length: 100 })
15292
+ (0, import_typeorm101.Column)({ name: "slug", type: "varchar", length: 100 })
15243
15293
  ], SubscriptionFeature.prototype, "slug", 2);
15244
15294
  __decorateClass([
15245
- (0, import_typeorm100.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15295
+ (0, import_typeorm101.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
15246
15296
  ], SubscriptionFeature.prototype, "tooltip", 2);
15247
15297
  __decorateClass([
15248
- (0, import_typeorm100.Column)({ name: "sort_order", type: "smallint", default: 0 })
15298
+ (0, import_typeorm101.Column)({ name: "sort_order", type: "smallint", default: 0 })
15249
15299
  ], SubscriptionFeature.prototype, "sortOrder", 2);
15250
15300
  __decorateClass([
15251
- (0, import_typeorm100.Column)({ name: "is_active", type: "boolean", default: true })
15301
+ (0, import_typeorm101.Column)({ name: "is_active", type: "boolean", default: true })
15252
15302
  ], SubscriptionFeature.prototype, "isActive", 2);
15253
15303
  __decorateClass([
15254
- (0, import_typeorm100.BeforeInsert)(),
15255
- (0, import_typeorm100.BeforeUpdate)()
15304
+ (0, import_typeorm101.BeforeInsert)(),
15305
+ (0, import_typeorm101.BeforeUpdate)()
15256
15306
  ], SubscriptionFeature.prototype, "createSlug", 1);
15257
15307
  SubscriptionFeature = __decorateClass([
15258
- (0, import_typeorm100.Entity)("subscription_features"),
15259
- (0, import_typeorm100.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15260
- (0, import_typeorm100.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
15261
- (0, import_typeorm100.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
15308
+ (0, import_typeorm101.Entity)("subscription_features"),
15309
+ (0, import_typeorm101.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
15310
+ (0, import_typeorm101.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
15311
+ (0, import_typeorm101.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
15262
15312
  ], SubscriptionFeature);
15263
15313
 
15264
15314
  // src/entities/user-subscription-transaction.entity.ts
15265
- var import_typeorm101 = require("typeorm");
15315
+ var import_typeorm102 = require("typeorm");
15266
15316
  var UserSubscriptionTransactionTypeEnum = /* @__PURE__ */ ((UserSubscriptionTransactionTypeEnum2) => {
15267
15317
  UserSubscriptionTransactionTypeEnum2["SUBSCRIPTION_INITIATED"] = "SUBSCRIPTION_INITIATED";
15268
15318
  UserSubscriptionTransactionTypeEnum2["CHECKOUT_SESSION_CREATED"] = "CHECKOUT_SESSION_CREATED";
@@ -15280,25 +15330,25 @@ var UserSubscriptionTransactionStatusEnum = /* @__PURE__ */ ((UserSubscriptionTr
15280
15330
  var UserSubscriptionTransaction = class extends BaseEntity {
15281
15331
  };
15282
15332
  __decorateClass([
15283
- (0, import_typeorm101.Column)({ name: "user_subscription_id", type: "integer", nullable: false }),
15284
- (0, import_typeorm101.Index)()
15333
+ (0, import_typeorm102.Column)({ name: "user_subscription_id", type: "integer", nullable: false }),
15334
+ (0, import_typeorm102.Index)()
15285
15335
  ], UserSubscriptionTransaction.prototype, "userSubscriptionId", 2);
15286
15336
  __decorateClass([
15287
- (0, import_typeorm101.ManyToOne)(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
15288
- (0, import_typeorm101.JoinColumn)({ name: "user_subscription_id" })
15337
+ (0, import_typeorm102.ManyToOne)(() => UserSubscription, { onDelete: "CASCADE", nullable: false }),
15338
+ (0, import_typeorm102.JoinColumn)({ name: "user_subscription_id" })
15289
15339
  ], UserSubscriptionTransaction.prototype, "userSubscription", 2);
15290
15340
  __decorateClass([
15291
- (0, import_typeorm101.Column)({ name: "user_id", type: "integer", nullable: false })
15341
+ (0, import_typeorm102.Column)({ name: "user_id", type: "integer", nullable: false })
15292
15342
  ], UserSubscriptionTransaction.prototype, "userId", 2);
15293
15343
  __decorateClass([
15294
- (0, import_typeorm101.Column)({
15344
+ (0, import_typeorm102.Column)({
15295
15345
  name: "type",
15296
15346
  type: "enum",
15297
15347
  enum: UserSubscriptionTransactionTypeEnum
15298
15348
  })
15299
15349
  ], UserSubscriptionTransaction.prototype, "type", 2);
15300
15350
  __decorateClass([
15301
- (0, import_typeorm101.Column)({
15351
+ (0, import_typeorm102.Column)({
15302
15352
  name: "status",
15303
15353
  type: "enum",
15304
15354
  enum: UserSubscriptionTransactionStatusEnum,
@@ -15306,49 +15356,49 @@ __decorateClass([
15306
15356
  })
15307
15357
  ], UserSubscriptionTransaction.prototype, "status", 2);
15308
15358
  __decorateClass([
15309
- (0, import_typeorm101.Column)({ name: "plan_name", type: "text", nullable: true })
15359
+ (0, import_typeorm102.Column)({ name: "plan_name", type: "text", nullable: true })
15310
15360
  ], UserSubscriptionTransaction.prototype, "planName", 2);
15311
15361
  __decorateClass([
15312
- (0, import_typeorm101.Column)({ name: "amount_minor", type: "integer", nullable: true })
15362
+ (0, import_typeorm102.Column)({ name: "amount_minor", type: "integer", nullable: true })
15313
15363
  ], UserSubscriptionTransaction.prototype, "amountMinor", 2);
15314
15364
  __decorateClass([
15315
- (0, import_typeorm101.Column)({ name: "currency", type: "varchar", length: 3, nullable: true })
15365
+ (0, import_typeorm102.Column)({ name: "currency", type: "varchar", length: 3, nullable: true })
15316
15366
  ], UserSubscriptionTransaction.prototype, "currency", 2);
15317
15367
  __decorateClass([
15318
- (0, import_typeorm101.Column)({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
15368
+ (0, import_typeorm102.Column)({ name: "stripe_event_id", type: "varchar", length: 255, nullable: true })
15319
15369
  ], UserSubscriptionTransaction.prototype, "stripeEventId", 2);
15320
15370
  __decorateClass([
15321
- (0, import_typeorm101.Column)({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
15371
+ (0, import_typeorm102.Column)({ name: "stripe_event_type", type: "varchar", length: 120, nullable: true })
15322
15372
  ], UserSubscriptionTransaction.prototype, "stripeEventType", 2);
15323
15373
  __decorateClass([
15324
- (0, import_typeorm101.Column)({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
15374
+ (0, import_typeorm102.Column)({ name: "stripe_subscription_id", type: "varchar", length: 64, nullable: true })
15325
15375
  ], UserSubscriptionTransaction.prototype, "stripeSubscriptionId", 2);
15326
15376
  __decorateClass([
15327
- (0, import_typeorm101.Column)({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
15377
+ (0, import_typeorm102.Column)({ name: "stripe_invoice_id", type: "varchar", length: 255, nullable: true })
15328
15378
  ], UserSubscriptionTransaction.prototype, "stripeInvoiceId", 2);
15329
15379
  __decorateClass([
15330
- (0, import_typeorm101.Column)({ name: "description", type: "text", nullable: true })
15380
+ (0, import_typeorm102.Column)({ name: "description", type: "text", nullable: true })
15331
15381
  ], UserSubscriptionTransaction.prototype, "description", 2);
15332
15382
  __decorateClass([
15333
- (0, import_typeorm101.Column)({ name: "invoice_url", type: "text", nullable: true })
15383
+ (0, import_typeorm102.Column)({ name: "invoice_url", type: "text", nullable: true })
15334
15384
  ], UserSubscriptionTransaction.prototype, "invoiceUrl", 2);
15335
15385
  __decorateClass([
15336
- (0, import_typeorm101.Column)({ name: "checkout_request_payload", type: "jsonb", nullable: true })
15386
+ (0, import_typeorm102.Column)({ name: "checkout_request_payload", type: "jsonb", nullable: true })
15337
15387
  ], UserSubscriptionTransaction.prototype, "checkoutRequestPayload", 2);
15338
15388
  __decorateClass([
15339
- (0, import_typeorm101.Column)({ name: "checkout_response_payload", type: "jsonb", nullable: true })
15389
+ (0, import_typeorm102.Column)({ name: "checkout_response_payload", type: "jsonb", nullable: true })
15340
15390
  ], UserSubscriptionTransaction.prototype, "checkoutResponsePayload", 2);
15341
15391
  __decorateClass([
15342
- (0, import_typeorm101.Column)({ name: "webhook_payload", type: "jsonb", nullable: true })
15392
+ (0, import_typeorm102.Column)({ name: "webhook_payload", type: "jsonb", nullable: true })
15343
15393
  ], UserSubscriptionTransaction.prototype, "webhookPayload", 2);
15344
15394
  __decorateClass([
15345
- (0, import_typeorm101.Column)({ name: "metadata", type: "jsonb", nullable: true, default: {} })
15395
+ (0, import_typeorm102.Column)({ name: "metadata", type: "jsonb", nullable: true, default: {} })
15346
15396
  ], UserSubscriptionTransaction.prototype, "metadata", 2);
15347
15397
  UserSubscriptionTransaction = __decorateClass([
15348
- (0, import_typeorm101.Entity)("user_subscription_transactions"),
15349
- (0, import_typeorm101.Index)("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
15350
- (0, import_typeorm101.Index)("idx_user_sub_tx_user_id", ["userId"]),
15351
- (0, import_typeorm101.Index)("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
15398
+ (0, import_typeorm102.Entity)("user_subscription_transactions"),
15399
+ (0, import_typeorm102.Index)("idx_user_sub_tx_user_subscription_id", ["userSubscriptionId"]),
15400
+ (0, import_typeorm102.Index)("idx_user_sub_tx_user_id", ["userId"]),
15401
+ (0, import_typeorm102.Index)("idx_user_sub_tx_stripe_event_id", ["stripeEventId"])
15352
15402
  ], UserSubscriptionTransaction);
15353
15403
  // Annotate the CommonJS export names for ESM import in node:
15354
15404
  0 && (module.exports = {
@@ -15440,6 +15490,7 @@ UserSubscriptionTransaction = __decorateClass([
15440
15490
  Cms,
15441
15491
  Commission,
15442
15492
  CommissionTypeEnum,
15493
+ CompanyMember,
15443
15494
  CompanyMemberRole,
15444
15495
  CompanyOnboardingStepEnum,
15445
15496
  CompanyProfile,