@experts_hub/shared 1.0.506 → 1.0.507

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.
@@ -1,6 +1,7 @@
1
1
  import { BaseEntity } from "./base.entity";
2
2
  import { AssessmetQuestionOption } from "./assessment-question-option.entity";
3
3
  import { AssessmentAnswer } from "./assessment-answer.entity";
4
+ import { User } from "./user.entity";
4
5
  export declare enum QuestionForEnum {
5
6
  ASSESSMENT = "ASSESSMENT",
6
7
  INTERVIEW = "INTERVIEW"
@@ -9,6 +10,8 @@ export declare class AssessmetQuestion extends BaseEntity {
9
10
  text: string;
10
11
  questionFor: QuestionForEnum;
11
12
  isActive: boolean;
13
+ candidateId: number;
14
+ candidate: User;
12
15
  options: AssessmetQuestionOption[];
13
16
  answers: AssessmentAnswer[];
14
17
  }
@@ -37,6 +37,7 @@ import { Dispute } from "./dispute.entity";
37
37
  import { StripeTransaction } from "./stripe-transaction.entity";
38
38
  import { Wallet } from "./wallet.entity";
39
39
  import { EscrowWallet } from "./escrow-wallet.entity";
40
+ import { AssessmetQuestion } from "./assessment-question.entity";
40
41
  export declare enum AccountType {
41
42
  ADMIN = "ADMIN",
42
43
  SUB_ADMIN = "SUB_ADMIN",
@@ -106,6 +107,7 @@ export declare class User extends BaseEntity {
106
107
  freelancerTool: FreelancerTool[];
107
108
  freelancerFramework: FreelancerFramework[];
108
109
  freelancerDeclaration: FreelancerDeclaration;
110
+ freelancerMcq: AssessmetQuestion[];
109
111
  freelancerAiInterview: AiInterview[];
110
112
  freelancerF2FInterviews: F2FInterview[];
111
113
  freelancerF2FInterviewRescheduleRequests: F2fInterviewRescheduleRequest[];
package/dist/index.d.mts CHANGED
@@ -1687,6 +1687,8 @@ declare class AssessmetQuestion extends BaseEntity {
1687
1687
  text: string;
1688
1688
  questionFor: QuestionForEnum;
1689
1689
  isActive: boolean;
1690
+ candidateId: number;
1691
+ candidate: User;
1690
1692
  options: AssessmetQuestionOption[];
1691
1693
  answers: AssessmentAnswer[];
1692
1694
  }
@@ -1954,6 +1956,7 @@ declare class User extends BaseEntity {
1954
1956
  freelancerTool: FreelancerTool[];
1955
1957
  freelancerFramework: FreelancerFramework[];
1956
1958
  freelancerDeclaration: FreelancerDeclaration;
1959
+ freelancerMcq: AssessmetQuestion[];
1957
1960
  freelancerAiInterview: AiInterview[];
1958
1961
  freelancerF2FInterviews: F2FInterview[];
1959
1962
  freelancerF2FInterviewRescheduleRequests: F2fInterviewRescheduleRequest[];
package/dist/index.d.ts CHANGED
@@ -1687,6 +1687,8 @@ declare class AssessmetQuestion extends BaseEntity {
1687
1687
  text: string;
1688
1688
  questionFor: QuestionForEnum;
1689
1689
  isActive: boolean;
1690
+ candidateId: number;
1691
+ candidate: User;
1690
1692
  options: AssessmetQuestionOption[];
1691
1693
  answers: AssessmentAnswer[];
1692
1694
  }
@@ -1954,6 +1956,7 @@ declare class User extends BaseEntity {
1954
1956
  freelancerTool: FreelancerTool[];
1955
1957
  freelancerFramework: FreelancerFramework[];
1956
1958
  freelancerDeclaration: FreelancerDeclaration;
1959
+ freelancerMcq: AssessmetQuestion[];
1957
1960
  freelancerAiInterview: AiInterview[];
1958
1961
  freelancerF2FInterviews: F2FInterview[];
1959
1962
  freelancerF2FInterviewRescheduleRequests: F2fInterviewRescheduleRequest[];
package/dist/index.js CHANGED
@@ -5030,6 +5030,14 @@ __decorateClass([
5030
5030
  __decorateClass([
5031
5031
  (0, import_typeorm48.Column)({ name: "is_active", type: "boolean", default: true })
5032
5032
  ], AssessmetQuestion.prototype, "isActive", 2);
5033
+ __decorateClass([
5034
+ (0, import_typeorm48.Column)({ name: "candidate_id", type: "integer", nullable: true }),
5035
+ (0, import_typeorm48.Index)()
5036
+ ], AssessmetQuestion.prototype, "candidateId", 2);
5037
+ __decorateClass([
5038
+ (0, import_typeorm48.ManyToOne)(() => User, (user) => user.freelancerMcq, { nullable: true }),
5039
+ (0, import_typeorm48.JoinColumn)({ name: "candidate_id" })
5040
+ ], AssessmetQuestion.prototype, "candidate", 2);
5033
5041
  __decorateClass([
5034
5042
  (0, import_typeorm48.OneToMany)(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5035
5043
  ], AssessmetQuestion.prototype, "options", 2);
@@ -5836,6 +5844,9 @@ __decorateClass([
5836
5844
  (freelancerDeclaration) => freelancerDeclaration.user
5837
5845
  )
5838
5846
  ], User.prototype, "freelancerDeclaration", 2);
5847
+ __decorateClass([
5848
+ (0, import_typeorm61.OneToMany)(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
5849
+ ], User.prototype, "freelancerMcq", 2);
5839
5850
  __decorateClass([
5840
5851
  (0, import_typeorm61.OneToMany)(() => AiInterview, (aiInterview) => aiInterview.candidate)
5841
5852
  ], User.prototype, "freelancerAiInterview", 2);
package/dist/index.mjs CHANGED
@@ -1515,7 +1515,7 @@ import {
1515
1515
  } from "class-validator";
1516
1516
 
1517
1517
  // src/entities/rating.entity.ts
1518
- import { Entity as Entity61, Column as Column62, ManyToOne as ManyToOne55, JoinColumn as JoinColumn56, Index as Index54 } from "typeorm";
1518
+ import { Entity as Entity61, Column as Column62, ManyToOne as ManyToOne56, JoinColumn as JoinColumn57, Index as Index55 } from "typeorm";
1519
1519
 
1520
1520
  // src/entities/user.entity.ts
1521
1521
  import {
@@ -1523,9 +1523,9 @@ import {
1523
1523
  Column as Column61,
1524
1524
  OneToMany as OneToMany22,
1525
1525
  OneToOne as OneToOne11,
1526
- Index as Index53,
1527
- ManyToOne as ManyToOne54,
1528
- JoinColumn as JoinColumn55
1526
+ Index as Index54,
1527
+ ManyToOne as ManyToOne55,
1528
+ JoinColumn as JoinColumn56
1529
1529
  } from "typeorm";
1530
1530
 
1531
1531
  // src/entities/base.entity.ts
@@ -4953,13 +4953,13 @@ CompanyMemberRole = __decorateClass([
4953
4953
  import {
4954
4954
  Entity as Entity48,
4955
4955
  Column as Column49,
4956
- ManyToOne as ManyToOne45,
4957
- Index as Index41,
4958
- JoinColumn as JoinColumn45
4956
+ ManyToOne as ManyToOne46,
4957
+ Index as Index42,
4958
+ JoinColumn as JoinColumn46
4959
4959
  } from "typeorm";
4960
4960
 
4961
4961
  // src/entities/assessment-question.entity.ts
4962
- import { Entity as Entity47, Column as Column48, OneToMany as OneToMany17 } from "typeorm";
4962
+ import { Entity as Entity47, Column as Column48, OneToMany as OneToMany17, Index as Index41, ManyToOne as ManyToOne45, JoinColumn as JoinColumn45 } from "typeorm";
4963
4963
 
4964
4964
  // src/entities/assessment-question-option.entity.ts
4965
4965
  import {
@@ -5032,6 +5032,14 @@ __decorateClass([
5032
5032
  __decorateClass([
5033
5033
  Column48({ name: "is_active", type: "boolean", default: true })
5034
5034
  ], AssessmetQuestion.prototype, "isActive", 2);
5035
+ __decorateClass([
5036
+ Column48({ name: "candidate_id", type: "integer", nullable: true }),
5037
+ Index41()
5038
+ ], AssessmetQuestion.prototype, "candidateId", 2);
5039
+ __decorateClass([
5040
+ ManyToOne45(() => User, (user) => user.freelancerMcq, { nullable: true }),
5041
+ JoinColumn45({ name: "candidate_id" })
5042
+ ], AssessmetQuestion.prototype, "candidate", 2);
5035
5043
  __decorateClass([
5036
5044
  OneToMany17(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
5037
5045
  ], AssessmetQuestion.prototype, "options", 2);
@@ -5053,33 +5061,33 @@ var AssessmentAnswer = class extends BaseEntity {
5053
5061
  };
5054
5062
  __decorateClass([
5055
5063
  Column49({ name: "user_id", type: "integer" }),
5056
- Index41()
5064
+ Index42()
5057
5065
  ], AssessmentAnswer.prototype, "userId", 2);
5058
5066
  __decorateClass([
5059
- ManyToOne45(() => User, (user) => user.assessmentAnswers),
5060
- JoinColumn45({ name: "user_id" })
5067
+ ManyToOne46(() => User, (user) => user.assessmentAnswers),
5068
+ JoinColumn46({ name: "user_id" })
5061
5069
  ], AssessmentAnswer.prototype, "user", 2);
5062
5070
  __decorateClass([
5063
5071
  Column49({ name: "question_id", type: "integer" }),
5064
- Index41()
5072
+ Index42()
5065
5073
  ], AssessmentAnswer.prototype, "questionId", 2);
5066
5074
  __decorateClass([
5067
- ManyToOne45(
5075
+ ManyToOne46(
5068
5076
  () => AssessmetQuestion,
5069
5077
  (assessmentQuestion) => assessmentQuestion.answers
5070
5078
  ),
5071
- JoinColumn45({ name: "question_id" })
5079
+ JoinColumn46({ name: "question_id" })
5072
5080
  ], AssessmentAnswer.prototype, "question", 2);
5073
5081
  __decorateClass([
5074
5082
  Column49({ name: "selected_option_id", type: "integer" }),
5075
- Index41()
5083
+ Index42()
5076
5084
  ], AssessmentAnswer.prototype, "selectedOptionId", 2);
5077
5085
  __decorateClass([
5078
- ManyToOne45(
5086
+ ManyToOne46(
5079
5087
  () => AssessmetQuestionOption,
5080
5088
  (assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
5081
5089
  ),
5082
- JoinColumn45({ name: "selected_option_id" })
5090
+ JoinColumn46({ name: "selected_option_id" })
5083
5091
  ], AssessmentAnswer.prototype, "option", 2);
5084
5092
  __decorateClass([
5085
5093
  Column49({
@@ -5096,17 +5104,17 @@ AssessmentAnswer = __decorateClass([
5096
5104
  ], AssessmentAnswer);
5097
5105
 
5098
5106
  // src/entities/company-skill.entity.ts
5099
- import { Entity as Entity49, Column as Column50, Index as Index42, ManyToOne as ManyToOne46, JoinColumn as JoinColumn46 } from "typeorm";
5107
+ import { Entity as Entity49, Column as Column50, Index as Index43, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
5100
5108
  var CompanySkill = class extends BaseEntity {
5101
5109
  };
5102
5110
  // individual index to find core skills by user
5103
5111
  __decorateClass([
5104
5112
  Column50({ name: "user_id", type: "integer", nullable: true }),
5105
- Index42()
5113
+ Index43()
5106
5114
  ], CompanySkill.prototype, "userId", 2);
5107
5115
  __decorateClass([
5108
- ManyToOne46(() => User, (user) => user.freelancerSkills),
5109
- JoinColumn46({ name: "user_id" })
5116
+ ManyToOne47(() => User, (user) => user.freelancerSkills),
5117
+ JoinColumn47({ name: "user_id" })
5110
5118
  ], CompanySkill.prototype, "user", 2);
5111
5119
  __decorateClass([
5112
5120
  Column50({ name: "skill_name", type: "varchar", nullable: true })
@@ -5116,16 +5124,16 @@ CompanySkill = __decorateClass([
5116
5124
  ], CompanySkill);
5117
5125
 
5118
5126
  // src/entities/admin-user-role.entity.ts
5119
- import { Entity as Entity53, Column as Column54, ManyToOne as ManyToOne48, JoinColumn as JoinColumn48 } from "typeorm";
5127
+ import { Entity as Entity53, Column as Column54, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
5120
5128
 
5121
5129
  // src/entities/admin-role.entity.ts
5122
- import { Entity as Entity52, Column as Column53, Index as Index45, OneToMany as OneToMany20 } from "typeorm";
5130
+ import { Entity as Entity52, Column as Column53, Index as Index46, OneToMany as OneToMany20 } from "typeorm";
5123
5131
 
5124
5132
  // src/entities/admin-role-permission.entity.ts
5125
- import { Entity as Entity51, Column as Column52, ManyToOne as ManyToOne47, JoinColumn as JoinColumn47 } from "typeorm";
5133
+ import { Entity as Entity51, Column as Column52, ManyToOne as ManyToOne48, JoinColumn as JoinColumn48 } from "typeorm";
5126
5134
 
5127
5135
  // src/entities/admin-permission.entity.ts
5128
- import { Entity as Entity50, Column as Column51, Index as Index43, OneToMany as OneToMany19 } from "typeorm";
5136
+ import { Entity as Entity50, Column as Column51, Index as Index44, OneToMany as OneToMany19 } from "typeorm";
5129
5137
  var AdminPermission = class extends BaseEntity {
5130
5138
  };
5131
5139
  __decorateClass([
@@ -5138,7 +5146,7 @@ __decorateClass([
5138
5146
  unique: true,
5139
5147
  nullable: true
5140
5148
  }),
5141
- Index43()
5149
+ Index44()
5142
5150
  ], AdminPermission.prototype, "permissionSlug", 2);
5143
5151
  __decorateClass([
5144
5152
  Column51({ name: "permission_description", type: "varchar", nullable: true })
@@ -5171,8 +5179,8 @@ __decorateClass([
5171
5179
  })
5172
5180
  ], AdminRolePermission.prototype, "roleId", 2);
5173
5181
  __decorateClass([
5174
- ManyToOne47(() => AdminRole),
5175
- JoinColumn47({ name: "role_id" })
5182
+ ManyToOne48(() => AdminRole),
5183
+ JoinColumn48({ name: "role_id" })
5176
5184
  ], AdminRolePermission.prototype, "adminRole", 2);
5177
5185
  __decorateClass([
5178
5186
  Column52({
@@ -5183,8 +5191,8 @@ __decorateClass([
5183
5191
  })
5184
5192
  ], AdminRolePermission.prototype, "permissionId", 2);
5185
5193
  __decorateClass([
5186
- ManyToOne47(() => AdminPermission),
5187
- JoinColumn47({ name: "permission_id" })
5194
+ ManyToOne48(() => AdminPermission),
5195
+ JoinColumn48({ name: "permission_id" })
5188
5196
  ], AdminRolePermission.prototype, "adminPermissions", 2);
5189
5197
  AdminRolePermission = __decorateClass([
5190
5198
  Entity51("admin_role_permissions")
@@ -5198,7 +5206,7 @@ __decorateClass([
5198
5206
  ], AdminRole.prototype, "roleName", 2);
5199
5207
  __decorateClass([
5200
5208
  Column53({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
5201
- Index45()
5209
+ Index46()
5202
5210
  ], AdminRole.prototype, "roleSlug", 2);
5203
5211
  __decorateClass([
5204
5212
  Column53({ name: "role_description", type: "varchar", nullable: true })
@@ -5231,8 +5239,8 @@ __decorateClass([
5231
5239
  })
5232
5240
  ], AdminUserRole.prototype, "userId", 2);
5233
5241
  __decorateClass([
5234
- ManyToOne48(() => User),
5235
- JoinColumn48({ name: "user_id" })
5242
+ ManyToOne49(() => User),
5243
+ JoinColumn49({ name: "user_id" })
5236
5244
  ], AdminUserRole.prototype, "user", 2);
5237
5245
  __decorateClass([
5238
5246
  Column54({
@@ -5243,8 +5251,8 @@ __decorateClass([
5243
5251
  })
5244
5252
  ], AdminUserRole.prototype, "roleId", 2);
5245
5253
  __decorateClass([
5246
- ManyToOne48(() => AdminRole),
5247
- JoinColumn48({ name: "role_id" })
5254
+ ManyToOne49(() => AdminRole),
5255
+ JoinColumn49({ name: "role_id" })
5248
5256
  ], AdminUserRole.prototype, "adminRole", 2);
5249
5257
  AdminUserRole = __decorateClass([
5250
5258
  Entity53("admin_user_roles")
@@ -5254,20 +5262,20 @@ AdminUserRole = __decorateClass([
5254
5262
  import {
5255
5263
  Entity as Entity54,
5256
5264
  Column as Column55,
5257
- Index as Index47,
5258
- ManyToOne as ManyToOne49,
5259
- JoinColumn as JoinColumn49
5265
+ Index as Index48,
5266
+ ManyToOne as ManyToOne50,
5267
+ JoinColumn as JoinColumn50
5260
5268
  } from "typeorm";
5261
5269
  var FreelancerResume = class extends BaseEntity {
5262
5270
  };
5263
5271
  // individual index to find profile by user
5264
5272
  __decorateClass([
5265
5273
  Column55({ name: "user_id", type: "integer", nullable: true }),
5266
- Index47()
5274
+ Index48()
5267
5275
  ], FreelancerResume.prototype, "userId", 2);
5268
5276
  __decorateClass([
5269
- ManyToOne49(() => User, (user) => user.freelancerProfile),
5270
- JoinColumn49({ name: "user_id" })
5277
+ ManyToOne50(() => User, (user) => user.freelancerProfile),
5278
+ JoinColumn50({ name: "user_id" })
5271
5279
  ], FreelancerResume.prototype, "user", 2);
5272
5280
  __decorateClass([
5273
5281
  Column55({ name: "resume_data", type: "jsonb", nullable: true })
@@ -5283,20 +5291,20 @@ FreelancerResume = __decorateClass([
5283
5291
  import {
5284
5292
  Entity as Entity55,
5285
5293
  Column as Column56,
5286
- Index as Index48,
5287
- ManyToOne as ManyToOne50,
5288
- JoinColumn as JoinColumn50
5294
+ Index as Index49,
5295
+ ManyToOne as ManyToOne51,
5296
+ JoinColumn as JoinColumn51
5289
5297
  } from "typeorm";
5290
5298
  var Signature = class extends BaseEntity {
5291
5299
  };
5292
5300
  // individual index to find profile by user
5293
5301
  __decorateClass([
5294
5302
  Column56({ name: "user_id", type: "integer", nullable: true }),
5295
- Index48()
5303
+ Index49()
5296
5304
  ], Signature.prototype, "userId", 2);
5297
5305
  __decorateClass([
5298
- ManyToOne50(() => User, (user) => user.signatures),
5299
- JoinColumn50({ name: "user_id" })
5306
+ ManyToOne51(() => User, (user) => user.signatures),
5307
+ JoinColumn51({ name: "user_id" })
5300
5308
  ], Signature.prototype, "user", 2);
5301
5309
  __decorateClass([
5302
5310
  Column56({ name: "signature_url", type: "text", nullable: true })
@@ -5306,7 +5314,7 @@ Signature = __decorateClass([
5306
5314
  ], Signature);
5307
5315
 
5308
5316
  // src/entities/dispute.entity.ts
5309
- import { Entity as Entity56, Column as Column57, Index as Index49, JoinColumn as JoinColumn51, ManyToOne as ManyToOne51 } from "typeorm";
5317
+ import { Entity as Entity56, Column as Column57, Index as Index50, JoinColumn as JoinColumn52, ManyToOne as ManyToOne52 } from "typeorm";
5310
5318
  var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
5311
5319
  DisputeStatusEnum2["OPEN"] = "OPEN";
5312
5320
  DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
@@ -5328,26 +5336,26 @@ var Dispute = class extends BaseEntity {
5328
5336
  };
5329
5337
  __decorateClass([
5330
5338
  Column57({ name: "client_id", type: "integer", nullable: true }),
5331
- Index49()
5339
+ Index50()
5332
5340
  ], Dispute.prototype, "clientId", 2);
5333
5341
  __decorateClass([
5334
- ManyToOne51(() => User, (user) => user.clientDisputes),
5335
- JoinColumn51({ name: "client_id" })
5342
+ ManyToOne52(() => User, (user) => user.clientDisputes),
5343
+ JoinColumn52({ name: "client_id" })
5336
5344
  ], Dispute.prototype, "client", 2);
5337
5345
  __decorateClass([
5338
5346
  Column57({ name: "freelancer_id", type: "integer", nullable: true }),
5339
- Index49()
5347
+ Index50()
5340
5348
  ], Dispute.prototype, "freelancerId", 2);
5341
5349
  __decorateClass([
5342
- ManyToOne51(() => User, (user) => user.freelancerDisputes),
5343
- JoinColumn51({ name: "freelancer_id" })
5350
+ ManyToOne52(() => User, (user) => user.freelancerDisputes),
5351
+ JoinColumn52({ name: "freelancer_id" })
5344
5352
  ], Dispute.prototype, "freelancer", 2);
5345
5353
  __decorateClass([
5346
5354
  Column57({ name: "dispute_unique_id", type: "varchar", unique: true })
5347
5355
  ], Dispute.prototype, "disputeUniqueId", 2);
5348
5356
  __decorateClass([
5349
5357
  Column57({ name: "dispute_type", type: "varchar", nullable: true }),
5350
- Index49()
5358
+ Index50()
5351
5359
  ], Dispute.prototype, "disputeType", 2);
5352
5360
  __decorateClass([
5353
5361
  Column57({ name: "description", type: "varchar", nullable: true })
@@ -5374,19 +5382,19 @@ __decorateClass([
5374
5382
  ], Dispute.prototype, "initiatorType", 2);
5375
5383
  __decorateClass([
5376
5384
  Column57({ name: "initiator_id", type: "integer" }),
5377
- Index49()
5385
+ Index50()
5378
5386
  ], Dispute.prototype, "initiatorId", 2);
5379
5387
  __decorateClass([
5380
- ManyToOne51(() => User, (user) => user.initiatedDisputes),
5381
- JoinColumn51({ name: "initiator_id" })
5388
+ ManyToOne52(() => User, (user) => user.initiatedDisputes),
5389
+ JoinColumn52({ name: "initiator_id" })
5382
5390
  ], Dispute.prototype, "initiator", 2);
5383
5391
  __decorateClass([
5384
5392
  Column57({ name: "respondent_id", type: "integer", nullable: true }),
5385
- Index49()
5393
+ Index50()
5386
5394
  ], Dispute.prototype, "respondentId", 2);
5387
5395
  __decorateClass([
5388
- ManyToOne51(() => User, (user) => user.respondentDisputes, { nullable: true }),
5389
- JoinColumn51({ name: "respondent_id" })
5396
+ ManyToOne52(() => User, (user) => user.respondentDisputes, { nullable: true }),
5397
+ JoinColumn52({ name: "respondent_id" })
5390
5398
  ], Dispute.prototype, "respondent", 2);
5391
5399
  __decorateClass([
5392
5400
  Column57({ name: "attachments", type: "jsonb", nullable: true })
@@ -5399,7 +5407,7 @@ Dispute = __decorateClass([
5399
5407
  ], Dispute);
5400
5408
 
5401
5409
  // src/entities/stripe-transaction.entity.ts
5402
- import { Entity as Entity57, Column as Column58, Index as Index50, ManyToOne as ManyToOne52, JoinColumn as JoinColumn52 } from "typeorm";
5410
+ import { Entity as Entity57, Column as Column58, Index as Index51, ManyToOne as ManyToOne53, JoinColumn as JoinColumn53 } from "typeorm";
5403
5411
  var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
5404
5412
  StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
5405
5413
  StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
@@ -5422,11 +5430,11 @@ var StripeTransaction = class extends BaseEntity {
5422
5430
  };
5423
5431
  __decorateClass([
5424
5432
  Column58({ name: "user_id", type: "integer", nullable: true }),
5425
- Index50()
5433
+ Index51()
5426
5434
  ], StripeTransaction.prototype, "userId", 2);
5427
5435
  __decorateClass([
5428
- ManyToOne52(() => User, (user) => user.stripeTransactions),
5429
- JoinColumn52({ name: "user_id" })
5436
+ ManyToOne53(() => User, (user) => user.stripeTransactions),
5437
+ JoinColumn53({ name: "user_id" })
5430
5438
  ], StripeTransaction.prototype, "user", 2);
5431
5439
  __decorateClass([
5432
5440
  Column58({ name: "stripe_session_id", type: "varchar", nullable: true })
@@ -5508,10 +5516,10 @@ StripeTransaction = __decorateClass([
5508
5516
  ], StripeTransaction);
5509
5517
 
5510
5518
  // src/entities/wallet.entity.ts
5511
- import { Entity as Entity59, Column as Column60, Index as Index52, JoinColumn as JoinColumn54, OneToOne as OneToOne10, OneToMany as OneToMany21 } from "typeorm";
5519
+ import { Entity as Entity59, Column as Column60, Index as Index53, JoinColumn as JoinColumn55, OneToOne as OneToOne10, OneToMany as OneToMany21 } from "typeorm";
5512
5520
 
5513
5521
  // src/entities/wallet-transaction.entity.ts
5514
- import { Entity as Entity58, Column as Column59, Index as Index51, ManyToOne as ManyToOne53, JoinColumn as JoinColumn53 } from "typeorm";
5522
+ import { Entity as Entity58, Column as Column59, Index as Index52, ManyToOne as ManyToOne54, JoinColumn as JoinColumn54 } from "typeorm";
5515
5523
  var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
5516
5524
  WalletTransactionTypeEnum2["CR"] = "CR";
5517
5525
  WalletTransactionTypeEnum2["DR"] = "DR";
@@ -5529,11 +5537,11 @@ var WalletTransaction = class extends BaseEntity {
5529
5537
  };
5530
5538
  __decorateClass([
5531
5539
  Column59({ name: "wallet_id", type: "integer", nullable: true }),
5532
- Index51()
5540
+ Index52()
5533
5541
  ], WalletTransaction.prototype, "walletId", 2);
5534
5542
  __decorateClass([
5535
- ManyToOne53(() => Wallet, (wallet) => wallet.walletTransactions),
5536
- JoinColumn53({ name: "wallet_id" })
5543
+ ManyToOne54(() => Wallet, (wallet) => wallet.walletTransactions),
5544
+ JoinColumn54({ name: "wallet_id" })
5537
5545
  ], WalletTransaction.prototype, "wallet", 2);
5538
5546
  __decorateClass([
5539
5547
  Column59({ name: "amount", type: "bigint", nullable: true })
@@ -5564,7 +5572,7 @@ __decorateClass([
5564
5572
  ], WalletTransaction.prototype, "metaData", 2);
5565
5573
  __decorateClass([
5566
5574
  Column59({ name: "stripe_transaction_id", type: "integer", nullable: true }),
5567
- Index51()
5575
+ Index52()
5568
5576
  ], WalletTransaction.prototype, "stripeTransactionId", 2);
5569
5577
  WalletTransaction = __decorateClass([
5570
5578
  Entity58("wallet_transactions")
@@ -5586,11 +5594,11 @@ var Wallet = class extends BaseEntity {
5586
5594
  };
5587
5595
  __decorateClass([
5588
5596
  Column60({ name: "user_id", type: "integer", nullable: true }),
5589
- Index52()
5597
+ Index53()
5590
5598
  ], Wallet.prototype, "userId", 2);
5591
5599
  __decorateClass([
5592
5600
  OneToOne10(() => User, (user) => user.wallet),
5593
- JoinColumn54({ name: "user_id" })
5601
+ JoinColumn55({ name: "user_id" })
5594
5602
  ], Wallet.prototype, "user", 2);
5595
5603
  __decorateClass([
5596
5604
  Column60({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
@@ -5649,11 +5657,11 @@ __decorateClass([
5649
5657
  ], User.prototype, "uniqueId", 2);
5650
5658
  __decorateClass([
5651
5659
  Column61({ name: "parent_id", type: "integer", nullable: true }),
5652
- Index53()
5660
+ Index54()
5653
5661
  ], User.prototype, "parentId", 2);
5654
5662
  __decorateClass([
5655
- ManyToOne54(() => User, (user) => user.children, { nullable: true }),
5656
- JoinColumn55({ name: "parent_id" })
5663
+ ManyToOne55(() => User, (user) => user.children, { nullable: true }),
5664
+ JoinColumn56({ name: "parent_id" })
5657
5665
  ], User.prototype, "parent", 2);
5658
5666
  __decorateClass([
5659
5667
  OneToMany22(() => User, (user) => user.parent)
@@ -5850,6 +5858,9 @@ __decorateClass([
5850
5858
  (freelancerDeclaration) => freelancerDeclaration.user
5851
5859
  )
5852
5860
  ], User.prototype, "freelancerDeclaration", 2);
5861
+ __decorateClass([
5862
+ OneToMany22(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
5863
+ ], User.prototype, "freelancerMcq", 2);
5853
5864
  __decorateClass([
5854
5865
  OneToMany22(() => AiInterview, (aiInterview) => aiInterview.candidate)
5855
5866
  ], User.prototype, "freelancerAiInterview", 2);
@@ -5960,19 +5971,19 @@ var Rating = class extends BaseEntity {
5960
5971
  };
5961
5972
  __decorateClass([
5962
5973
  Column62({ name: "reviewer_id", type: "integer" }),
5963
- Index54()
5974
+ Index55()
5964
5975
  ], Rating.prototype, "reviewer_id", 2);
5965
5976
  __decorateClass([
5966
- ManyToOne55(() => User, { onDelete: "CASCADE" }),
5967
- JoinColumn56({ name: "reviewer_id" })
5977
+ ManyToOne56(() => User, { onDelete: "CASCADE" }),
5978
+ JoinColumn57({ name: "reviewer_id" })
5968
5979
  ], Rating.prototype, "reviewer", 2);
5969
5980
  __decorateClass([
5970
5981
  Column62({ name: "reviewee_id", type: "integer" }),
5971
- Index54()
5982
+ Index55()
5972
5983
  ], Rating.prototype, "reviewee_id", 2);
5973
5984
  __decorateClass([
5974
- ManyToOne55(() => User, { onDelete: "CASCADE" }),
5975
- JoinColumn56({ name: "reviewee_id" })
5985
+ ManyToOne56(() => User, { onDelete: "CASCADE" }),
5986
+ JoinColumn57({ name: "reviewee_id" })
5976
5987
  ], Rating.prototype, "reviewee", 2);
5977
5988
  __decorateClass([
5978
5989
  Column62({
@@ -8078,13 +8089,13 @@ Skill = __decorateClass([
8078
8089
  import {
8079
8090
  Entity as Entity65,
8080
8091
  Column as Column66,
8081
- Index as Index55
8092
+ Index as Index56
8082
8093
  } from "typeorm";
8083
8094
  var SkillCatalog = class extends BaseEntity {
8084
8095
  };
8085
8096
  __decorateClass([
8086
8097
  Column66({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
8087
- Index55()
8098
+ Index56()
8088
8099
  ], SkillCatalog.prototype, "canonicalName", 2);
8089
8100
  __decorateClass([
8090
8101
  Column66({
@@ -8117,7 +8128,7 @@ __decorateClass([
8117
8128
  ], SkillCatalog.prototype, "relatedSkills", 2);
8118
8129
  __decorateClass([
8119
8130
  Column66({ name: "usage_count", type: "integer", default: 0 }),
8120
- Index55()
8131
+ Index56()
8121
8132
  ], SkillCatalog.prototype, "usageCount", 2);
8122
8133
  __decorateClass([
8123
8134
  Column66({ name: "is_verified", type: "boolean", default: false })
@@ -8534,13 +8545,13 @@ Commission = __decorateClass([
8534
8545
  import {
8535
8546
  Entity as Entity72,
8536
8547
  Column as Column73,
8537
- Index as Index56
8548
+ Index as Index57
8538
8549
  } from "typeorm";
8539
8550
  var CalendlyMeetingLog = class extends BaseEntity {
8540
8551
  };
8541
8552
  __decorateClass([
8542
8553
  Column73({ name: "calendly_event_id", type: "varchar", nullable: true }),
8543
- Index56()
8554
+ Index57()
8544
8555
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
8545
8556
  __decorateClass([
8546
8557
  Column73({ name: "calendly_event_type", type: "varchar", nullable: true })
@@ -8556,13 +8567,13 @@ CalendlyMeetingLog = __decorateClass([
8556
8567
  import {
8557
8568
  Entity as Entity73,
8558
8569
  Column as Column74,
8559
- Index as Index57
8570
+ Index as Index58
8560
8571
  } from "typeorm";
8561
8572
  var ZoomMeetingLog = class extends BaseEntity {
8562
8573
  };
8563
8574
  __decorateClass([
8564
8575
  Column74({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
8565
- Index57()
8576
+ Index58()
8566
8577
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
8567
8578
  __decorateClass([
8568
8579
  Column74({ name: "zoom_event_type", type: "varchar", nullable: true })
@@ -8598,7 +8609,7 @@ StripeLog = __decorateClass([
8598
8609
  import {
8599
8610
  Entity as Entity75,
8600
8611
  Column as Column76,
8601
- Index as Index58
8612
+ Index as Index59
8602
8613
  } from "typeorm";
8603
8614
  var RecommendationWeightageConfig = class extends BaseEntity {
8604
8615
  };
@@ -8609,7 +8620,7 @@ __decorateClass([
8609
8620
  unique: true,
8610
8621
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
8611
8622
  }),
8612
- Index58()
8623
+ Index59()
8613
8624
  ], RecommendationWeightageConfig.prototype, "key", 2);
8614
8625
  __decorateClass([
8615
8626
  Column76({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.506",
3
+ "version": "1.0.507",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",