@experts_hub/shared 1.0.524 → 1.0.525

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.mjs CHANGED
@@ -1712,17 +1712,17 @@ import {
1712
1712
  } from "class-validator";
1713
1713
 
1714
1714
  // src/entities/rating.entity.ts
1715
- import { Entity as Entity62, Column as Column63, ManyToOne as ManyToOne57, JoinColumn as JoinColumn58, Index as Index56 } from "typeorm";
1715
+ import { Entity as Entity63, Column as Column64, ManyToOne as ManyToOne58, JoinColumn as JoinColumn59, Index as Index57 } from "typeorm";
1716
1716
 
1717
1717
  // src/entities/user.entity.ts
1718
1718
  import {
1719
- Entity as Entity61,
1720
- Column as Column62,
1719
+ Entity as Entity62,
1720
+ Column as Column63,
1721
1721
  OneToMany as OneToMany21,
1722
1722
  OneToOne as OneToOne12,
1723
- Index as Index55,
1724
- ManyToOne as ManyToOne56,
1725
- JoinColumn as JoinColumn57
1723
+ Index as Index56,
1724
+ ManyToOne as ManyToOne57,
1725
+ JoinColumn as JoinColumn58
1726
1726
  } from "typeorm";
1727
1727
 
1728
1728
  // src/entities/base.entity.ts
@@ -5895,6 +5895,58 @@ Wallet = __decorateClass([
5895
5895
  Entity60("wallets")
5896
5896
  ], Wallet);
5897
5897
 
5898
+ // src/entities/freelancer-assessment-request.entity.ts
5899
+ import {
5900
+ Entity as Entity61,
5901
+ Column as Column62,
5902
+ ManyToOne as ManyToOne56,
5903
+ Index as Index55,
5904
+ JoinColumn as JoinColumn57
5905
+ } from "typeorm";
5906
+ var AssessmentRequestStatus = /* @__PURE__ */ ((AssessmentRequestStatus2) => {
5907
+ AssessmentRequestStatus2["PENDING"] = "PENDING";
5908
+ AssessmentRequestStatus2["APPROVED"] = "APPROVED";
5909
+ AssessmentRequestStatus2["REJECTED"] = "REJECTED";
5910
+ return AssessmentRequestStatus2;
5911
+ })(AssessmentRequestStatus || {});
5912
+ var FreelancerAssessmentRequest = class extends BaseEntity {
5913
+ };
5914
+ __decorateClass([
5915
+ Column62({ name: "requested_by", type: "integer", nullable: true }),
5916
+ Index55()
5917
+ ], FreelancerAssessmentRequest.prototype, "requestedBy", 2);
5918
+ __decorateClass([
5919
+ ManyToOne56(() => User, (requestedByUser) => requestedByUser.assessmentRequests),
5920
+ JoinColumn57({ name: "requested_by" })
5921
+ ], FreelancerAssessmentRequest.prototype, "requestedByUser", 2);
5922
+ __decorateClass([
5923
+ Column62({ name: "approved_by", type: "integer", nullable: true }),
5924
+ Index55()
5925
+ ], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
5926
+ __decorateClass([
5927
+ ManyToOne56(() => User, (user) => user.assessmentRequests),
5928
+ JoinColumn57({ name: "approved_by" })
5929
+ ], FreelancerAssessmentRequest.prototype, "approvedByUser", 2);
5930
+ __decorateClass([
5931
+ Column62({
5932
+ type: "enum",
5933
+ enum: AssessmentRequestStatus,
5934
+ default: "PENDING" /* PENDING */
5935
+ })
5936
+ ], FreelancerAssessmentRequest.prototype, "status", 2);
5937
+ __decorateClass([
5938
+ Column62({
5939
+ name: "status",
5940
+ type: "enum",
5941
+ enum: AssessmentRequestStatus,
5942
+ default: "PENDING" /* PENDING */
5943
+ }),
5944
+ Column62({ name: "assessment_link", type: "text", nullable: true })
5945
+ ], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
5946
+ FreelancerAssessmentRequest = __decorateClass([
5947
+ Entity61({ name: "freelancer_assessment_requests" })
5948
+ ], FreelancerAssessmentRequest);
5949
+
5898
5950
  // src/entities/user.entity.ts
5899
5951
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
5900
5952
  AccountType2["ADMIN"] = "ADMIN";
@@ -5920,51 +5972,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
5920
5972
  var User = class extends BaseEntity {
5921
5973
  };
5922
5974
  __decorateClass([
5923
- Column62({ name: "unique_id", type: "varchar", unique: true })
5975
+ Column63({ name: "unique_id", type: "varchar", unique: true })
5924
5976
  ], User.prototype, "uniqueId", 2);
5925
5977
  __decorateClass([
5926
- Column62({ name: "parent_id", type: "integer", nullable: true }),
5927
- Index55()
5978
+ Column63({ name: "parent_id", type: "integer", nullable: true }),
5979
+ Index56()
5928
5980
  ], User.prototype, "parentId", 2);
5929
5981
  __decorateClass([
5930
- ManyToOne56(() => User, (user) => user.children, { nullable: true }),
5931
- JoinColumn57({ name: "parent_id" })
5982
+ ManyToOne57(() => User, (user) => user.children, { nullable: true }),
5983
+ JoinColumn58({ name: "parent_id" })
5932
5984
  ], User.prototype, "parent", 2);
5933
5985
  __decorateClass([
5934
5986
  OneToMany21(() => User, (user) => user.parent)
5935
5987
  ], User.prototype, "children", 2);
5936
5988
  __decorateClass([
5937
- Column62({ name: "username", type: "varchar", unique: true, nullable: true })
5989
+ Column63({ name: "username", type: "varchar", unique: true, nullable: true })
5938
5990
  ], User.prototype, "username", 2);
5939
5991
  __decorateClass([
5940
- Column62({ name: "first_name", type: "varchar", length: 100, nullable: true })
5992
+ Column63({ name: "first_name", type: "varchar", length: 100, nullable: true })
5941
5993
  ], User.prototype, "firstName", 2);
5942
5994
  __decorateClass([
5943
- Column62({ name: "last_name", type: "varchar", length: 100, nullable: true })
5995
+ Column63({ name: "last_name", type: "varchar", length: 100, nullable: true })
5944
5996
  ], User.prototype, "lastName", 2);
5945
5997
  __decorateClass([
5946
- Column62({ name: "date_of_birth", type: "date", nullable: true })
5998
+ Column63({ name: "date_of_birth", type: "date", nullable: true })
5947
5999
  ], User.prototype, "dateOfBirth", 2);
5948
6000
  __decorateClass([
5949
- Column62({ name: "gender", type: "varchar", length: 10, nullable: true })
6001
+ Column63({ name: "gender", type: "varchar", length: 10, nullable: true })
5950
6002
  ], User.prototype, "gender", 2);
5951
6003
  __decorateClass([
5952
- Column62({ name: "profile_picture_url", type: "text", nullable: true })
6004
+ Column63({ name: "profile_picture_url", type: "text", nullable: true })
5953
6005
  ], User.prototype, "profilePictureUrl", 2);
5954
6006
  __decorateClass([
5955
- Column62({ name: "email", type: "varchar", unique: true })
6007
+ Column63({ name: "email", type: "varchar", unique: true })
5956
6008
  ], User.prototype, "email", 2);
5957
6009
  __decorateClass([
5958
- Column62({ name: "mobile_code", type: "varchar", nullable: true })
6010
+ Column63({ name: "mobile_code", type: "varchar", nullable: true })
5959
6011
  ], User.prototype, "mobileCode", 2);
5960
6012
  __decorateClass([
5961
- Column62({ name: "mobile", type: "varchar", nullable: true })
6013
+ Column63({ name: "mobile", type: "varchar", nullable: true })
5962
6014
  ], User.prototype, "mobile", 2);
5963
6015
  __decorateClass([
5964
- Column62({ name: "password", type: "varchar", nullable: true })
6016
+ Column63({ name: "password", type: "varchar", nullable: true })
5965
6017
  ], User.prototype, "password", 2);
5966
6018
  __decorateClass([
5967
- Column62({
6019
+ Column63({
5968
6020
  name: "account_type",
5969
6021
  type: "enum",
5970
6022
  enum: AccountType,
@@ -5972,7 +6024,7 @@ __decorateClass([
5972
6024
  })
5973
6025
  ], User.prototype, "accountType", 2);
5974
6026
  __decorateClass([
5975
- Column62({
6027
+ Column63({
5976
6028
  name: "account_status",
5977
6029
  type: "enum",
5978
6030
  enum: AccountStatus,
@@ -5980,42 +6032,42 @@ __decorateClass([
5980
6032
  })
5981
6033
  ], User.prototype, "accountStatus", 2);
5982
6034
  __decorateClass([
5983
- Column62({ name: "is_email_verified", type: "boolean", default: false })
6035
+ Column63({ name: "is_email_verified", type: "boolean", default: false })
5984
6036
  ], User.prototype, "isEmailVerified", 2);
5985
6037
  __decorateClass([
5986
- Column62({ name: "is_mobile_verified", type: "boolean", default: false })
6038
+ Column63({ name: "is_mobile_verified", type: "boolean", default: false })
5987
6039
  ], User.prototype, "isMobileVerified", 2);
5988
6040
  __decorateClass([
5989
- Column62({ name: "is_social", type: "boolean", default: false })
6041
+ Column63({ name: "is_social", type: "boolean", default: false })
5990
6042
  ], User.prototype, "isSocial", 2);
5991
6043
  __decorateClass([
5992
- Column62({
6044
+ Column63({
5993
6045
  name: "last_login_at",
5994
6046
  type: "timestamp with time zone",
5995
6047
  nullable: true
5996
6048
  })
5997
6049
  ], User.prototype, "lastLoginAt", 2);
5998
6050
  __decorateClass([
5999
- Column62({ name: "last_login_ip", type: "varchar", nullable: true })
6051
+ Column63({ name: "last_login_ip", type: "varchar", nullable: true })
6000
6052
  ], User.prototype, "lastLoginIp", 2);
6001
6053
  __decorateClass([
6002
- Column62({ name: "reset_token", type: "varchar", nullable: true })
6054
+ Column63({ name: "reset_token", type: "varchar", nullable: true })
6003
6055
  ], User.prototype, "resetToken", 2);
6004
6056
  __decorateClass([
6005
- Column62({
6057
+ Column63({
6006
6058
  name: "reset_token_expire_at",
6007
6059
  type: "timestamp with time zone",
6008
6060
  nullable: true
6009
6061
  })
6010
6062
  ], User.prototype, "resetTokenExpireAt", 2);
6011
6063
  __decorateClass([
6012
- Column62({ name: "set_password_token", type: "varchar", nullable: true })
6064
+ Column63({ name: "set_password_token", type: "varchar", nullable: true })
6013
6065
  ], User.prototype, "setPasswordToken", 2);
6014
6066
  __decorateClass([
6015
6067
  OneToMany21(() => RefreshToken, (token) => token.user)
6016
6068
  ], User.prototype, "refreshTokens", 2);
6017
6069
  __decorateClass([
6018
- Column62({
6070
+ Column63({
6019
6071
  name: "provider",
6020
6072
  type: "enum",
6021
6073
  enum: Provider,
@@ -6024,19 +6076,19 @@ __decorateClass([
6024
6076
  })
6025
6077
  ], User.prototype, "provider", 2);
6026
6078
  __decorateClass([
6027
- Column62({ name: "provider_token", type: "varchar", nullable: true })
6079
+ Column63({ name: "provider_token", type: "varchar", nullable: true })
6028
6080
  ], User.prototype, "providerToken", 2);
6029
6081
  __decorateClass([
6030
- Column62({ name: "linkedin_id", type: "varchar", nullable: true })
6082
+ Column63({ name: "linkedin_id", type: "varchar", nullable: true })
6031
6083
  ], User.prototype, "linkedInId", 2);
6032
6084
  __decorateClass([
6033
- Column62({ name: "google_id", type: "varchar", nullable: true })
6085
+ Column63({ name: "google_id", type: "varchar", nullable: true })
6034
6086
  ], User.prototype, "googleId", 2);
6035
6087
  __decorateClass([
6036
- Column62({ name: "gitlabs_id", type: "varchar", nullable: true })
6088
+ Column63({ name: "gitlabs_id", type: "varchar", nullable: true })
6037
6089
  ], User.prototype, "gitLabsId", 2);
6038
6090
  __decorateClass([
6039
- Column62({ name: "onboarded_by", type: "varchar", nullable: true })
6091
+ Column63({ name: "onboarded_by", type: "varchar", nullable: true })
6040
6092
  ], User.prototype, "onBoardedBy", 2);
6041
6093
  __decorateClass([
6042
6094
  OneToMany21(() => Otp, (otp) => otp.user)
@@ -6077,6 +6129,18 @@ __decorateClass([
6077
6129
  (freelancerAssessment) => freelancerAssessment.user
6078
6130
  )
6079
6131
  ], User.prototype, "assessments", 2);
6132
+ __decorateClass([
6133
+ OneToMany21(
6134
+ () => FreelancerAssessmentRequest,
6135
+ (freelancerAssessment) => freelancerAssessment.requestedBy
6136
+ )
6137
+ ], User.prototype, "assessmentRequests", 2);
6138
+ __decorateClass([
6139
+ OneToMany21(
6140
+ () => FreelancerAssessmentRequest,
6141
+ (freelancerAssessmentRequest) => freelancerAssessmentRequest.approvedBy
6142
+ )
6143
+ ], User.prototype, "approvedAssessmentRequests", 2);
6080
6144
  __decorateClass([
6081
6145
  OneToMany21(
6082
6146
  () => AssessmentAnswer,
@@ -6231,7 +6295,7 @@ __decorateClass([
6231
6295
  OneToMany21(() => Dispute, (dispute) => dispute.freelancer)
6232
6296
  ], User.prototype, "freelancerDisputes", 2);
6233
6297
  User = __decorateClass([
6234
- Entity61("users")
6298
+ Entity62("users")
6235
6299
  ], User);
6236
6300
 
6237
6301
  // src/entities/rating.entity.ts
@@ -6243,36 +6307,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
6243
6307
  var Rating = class extends BaseEntity {
6244
6308
  };
6245
6309
  __decorateClass([
6246
- Column63({ name: "reviewer_id", type: "integer" }),
6247
- Index56()
6310
+ Column64({ name: "reviewer_id", type: "integer" }),
6311
+ Index57()
6248
6312
  ], Rating.prototype, "reviewer_id", 2);
6249
6313
  __decorateClass([
6250
- ManyToOne57(() => User, { onDelete: "CASCADE" }),
6251
- JoinColumn58({ name: "reviewer_id" })
6314
+ ManyToOne58(() => User, { onDelete: "CASCADE" }),
6315
+ JoinColumn59({ name: "reviewer_id" })
6252
6316
  ], Rating.prototype, "reviewer", 2);
6253
6317
  __decorateClass([
6254
- Column63({ name: "reviewee_id", type: "integer" }),
6255
- Index56()
6318
+ Column64({ name: "reviewee_id", type: "integer" }),
6319
+ Index57()
6256
6320
  ], Rating.prototype, "reviewee_id", 2);
6257
6321
  __decorateClass([
6258
- ManyToOne57(() => User, { onDelete: "CASCADE" }),
6259
- JoinColumn58({ name: "reviewee_id" })
6322
+ ManyToOne58(() => User, { onDelete: "CASCADE" }),
6323
+ JoinColumn59({ name: "reviewee_id" })
6260
6324
  ], Rating.prototype, "reviewee", 2);
6261
6325
  __decorateClass([
6262
- Column63({
6326
+ Column64({
6263
6327
  type: "enum",
6264
6328
  enum: RatingTypeEnum,
6265
6329
  nullable: true
6266
6330
  })
6267
6331
  ], Rating.prototype, "ratingType", 2);
6268
6332
  __decorateClass([
6269
- Column63({ type: "integer", nullable: true })
6333
+ Column64({ type: "integer", nullable: true })
6270
6334
  ], Rating.prototype, "rating", 2);
6271
6335
  __decorateClass([
6272
- Column63({ type: "text", nullable: true })
6336
+ Column64({ type: "text", nullable: true })
6273
6337
  ], Rating.prototype, "review", 2);
6274
6338
  Rating = __decorateClass([
6275
- Entity62("ratings")
6339
+ Entity63("ratings")
6276
6340
  ], Rating);
6277
6341
 
6278
6342
  // src/modules/rating/dto/add.rating.dto.ts
@@ -6939,6 +7003,14 @@ __decorateClass([
6939
7003
  IsOptional29(),
6940
7004
  IsString30()
6941
7005
  ], CreateClientDto.prototype, "foundUsOnDetail", 2);
7006
+ __decorateClass([
7007
+ IsOptional29(),
7008
+ IsString30()
7009
+ ], CreateClientDto.prototype, "hiringCommisionTypeForFte", 2);
7010
+ __decorateClass([
7011
+ IsOptional29(),
7012
+ IsString30()
7013
+ ], CreateClientDto.prototype, "hiringCommissionValueForFte", 2);
6942
7014
 
6943
7015
  // src/modules/client-admin/dto/update-client-status.dto.ts
6944
7016
  import { IsString as IsString31, IsNotEmpty as IsNotEmpty48 } from "class-validator";
@@ -7025,6 +7097,14 @@ __decorateClass([
7025
7097
  IsOptional30(),
7026
7098
  IsString32()
7027
7099
  ], UpdateClientDto.prototype, "foundUsOnDetail", 2);
7100
+ __decorateClass([
7101
+ IsOptional30(),
7102
+ IsString32()
7103
+ ], UpdateClientDto.prototype, "hiringCommisionTypeForFte", 2);
7104
+ __decorateClass([
7105
+ IsOptional30(),
7106
+ IsString32()
7107
+ ], UpdateClientDto.prototype, "hiringCommissionValueForFte", 2);
7028
7108
 
7029
7109
  // src/modules/user/freelancer-declaration/pattern/pattern.ts
7030
7110
  var FREELANCER_DECLARATION_PATTERN = {
@@ -8482,11 +8562,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
8482
8562
  };
8483
8563
 
8484
8564
  // src/entities/sequence-generator.entity.ts
8485
- import { Entity as Entity63, Column as Column64 } from "typeorm";
8565
+ import { Entity as Entity64, Column as Column65 } from "typeorm";
8486
8566
  var SequenceGenerator = class extends BaseEntity {
8487
8567
  };
8488
8568
  __decorateClass([
8489
- Column64({
8569
+ Column65({
8490
8570
  name: "module",
8491
8571
  type: "varchar",
8492
8572
  length: 50,
@@ -8495,7 +8575,7 @@ __decorateClass([
8495
8575
  })
8496
8576
  ], SequenceGenerator.prototype, "module", 2);
8497
8577
  __decorateClass([
8498
- Column64({
8578
+ Column65({
8499
8579
  name: "prefix",
8500
8580
  type: "varchar",
8501
8581
  length: 10,
@@ -8504,7 +8584,7 @@ __decorateClass([
8504
8584
  })
8505
8585
  ], SequenceGenerator.prototype, "prefix", 2);
8506
8586
  __decorateClass([
8507
- Column64({
8587
+ Column65({
8508
8588
  name: "last_sequence",
8509
8589
  type: "int",
8510
8590
  nullable: false,
@@ -8512,7 +8592,7 @@ __decorateClass([
8512
8592
  })
8513
8593
  ], SequenceGenerator.prototype, "lastSequence", 2);
8514
8594
  __decorateClass([
8515
- Column64({
8595
+ Column65({
8516
8596
  name: "year",
8517
8597
  type: "int",
8518
8598
  nullable: true,
@@ -8520,11 +8600,11 @@ __decorateClass([
8520
8600
  })
8521
8601
  ], SequenceGenerator.prototype, "year", 2);
8522
8602
  SequenceGenerator = __decorateClass([
8523
- Entity63("sequence_generators")
8603
+ Entity64("sequence_generators")
8524
8604
  ], SequenceGenerator);
8525
8605
 
8526
8606
  // src/entities/question.entity.ts
8527
- import { Entity as Entity64, Column as Column65 } from "typeorm";
8607
+ import { Entity as Entity65, Column as Column66 } from "typeorm";
8528
8608
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
8529
8609
  QuestionFor2["CLIENT"] = "CLIENT";
8530
8610
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -8533,16 +8613,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
8533
8613
  var Question = class extends BaseEntity {
8534
8614
  };
8535
8615
  __decorateClass([
8536
- Column65({ name: "question", type: "varchar" })
8616
+ Column66({ name: "question", type: "varchar" })
8537
8617
  ], Question.prototype, "question", 2);
8538
8618
  __decorateClass([
8539
- Column65({ name: "hint", type: "varchar", nullable: true })
8619
+ Column66({ name: "hint", type: "varchar", nullable: true })
8540
8620
  ], Question.prototype, "hint", 2);
8541
8621
  __decorateClass([
8542
- Column65({ name: "slug", type: "varchar", nullable: true, unique: true })
8622
+ Column66({ name: "slug", type: "varchar", nullable: true, unique: true })
8543
8623
  ], Question.prototype, "slug", 2);
8544
8624
  __decorateClass([
8545
- Column65({
8625
+ Column66({
8546
8626
  name: "question_for",
8547
8627
  type: "enum",
8548
8628
  enum: QuestionFor,
@@ -8550,49 +8630,49 @@ __decorateClass([
8550
8630
  })
8551
8631
  ], Question.prototype, "questionFor", 2);
8552
8632
  __decorateClass([
8553
- Column65({ name: "type", type: "varchar", nullable: true })
8633
+ Column66({ name: "type", type: "varchar", nullable: true })
8554
8634
  ], Question.prototype, "type", 2);
8555
8635
  __decorateClass([
8556
- Column65({ name: "options", type: "jsonb", nullable: true })
8636
+ Column66({ name: "options", type: "jsonb", nullable: true })
8557
8637
  ], Question.prototype, "options", 2);
8558
8638
  __decorateClass([
8559
- Column65({ name: "is_active", type: "boolean", default: false })
8639
+ Column66({ name: "is_active", type: "boolean", default: false })
8560
8640
  ], Question.prototype, "isActive", 2);
8561
8641
  Question = __decorateClass([
8562
- Entity64("questions")
8642
+ Entity65("questions")
8563
8643
  ], Question);
8564
8644
 
8565
8645
  // src/entities/skill.entity.ts
8566
- import { Entity as Entity65, Column as Column66 } from "typeorm";
8646
+ import { Entity as Entity66, Column as Column67 } from "typeorm";
8567
8647
  var Skill = class extends BaseEntity {
8568
8648
  };
8569
8649
  __decorateClass([
8570
- Column66({ name: "name", type: "varchar", nullable: true })
8650
+ Column67({ name: "name", type: "varchar", nullable: true })
8571
8651
  ], Skill.prototype, "name", 2);
8572
8652
  __decorateClass([
8573
- Column66({ name: "slug", type: "varchar", nullable: true, unique: true })
8653
+ Column67({ name: "slug", type: "varchar", nullable: true, unique: true })
8574
8654
  ], Skill.prototype, "slug", 2);
8575
8655
  __decorateClass([
8576
- Column66({ name: "is_active", type: "boolean", default: false })
8656
+ Column67({ name: "is_active", type: "boolean", default: false })
8577
8657
  ], Skill.prototype, "isActive", 2);
8578
8658
  Skill = __decorateClass([
8579
- Entity65("skills")
8659
+ Entity66("skills")
8580
8660
  ], Skill);
8581
8661
 
8582
8662
  // src/entities/skill-catalog.entity.ts
8583
8663
  import {
8584
- Entity as Entity66,
8585
- Column as Column67,
8586
- Index as Index57
8664
+ Entity as Entity67,
8665
+ Column as Column68,
8666
+ Index as Index58
8587
8667
  } from "typeorm";
8588
8668
  var SkillCatalog = class extends BaseEntity {
8589
8669
  };
8590
8670
  __decorateClass([
8591
- Column67({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
8592
- Index57()
8671
+ Column68({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
8672
+ Index58()
8593
8673
  ], SkillCatalog.prototype, "canonicalName", 2);
8594
8674
  __decorateClass([
8595
- Column67({
8675
+ Column68({
8596
8676
  name: "aliases",
8597
8677
  type: "text",
8598
8678
  array: true,
@@ -8600,20 +8680,20 @@ __decorateClass([
8600
8680
  })
8601
8681
  ], SkillCatalog.prototype, "aliases", 2);
8602
8682
  __decorateClass([
8603
- Column67({
8683
+ Column68({
8604
8684
  name: "variations",
8605
8685
  type: "jsonb",
8606
8686
  default: "{}"
8607
8687
  })
8608
8688
  ], SkillCatalog.prototype, "variations", 2);
8609
8689
  __decorateClass([
8610
- Column67({ name: "category", type: "varchar", length: 50, nullable: true })
8690
+ Column68({ name: "category", type: "varchar", length: 50, nullable: true })
8611
8691
  ], SkillCatalog.prototype, "category", 2);
8612
8692
  __decorateClass([
8613
- Column67({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
8693
+ Column68({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
8614
8694
  ], SkillCatalog.prototype, "parentSkill", 2);
8615
8695
  __decorateClass([
8616
- Column67({
8696
+ Column68({
8617
8697
  name: "related_skills",
8618
8698
  type: "text",
8619
8699
  array: true,
@@ -8621,113 +8701,113 @@ __decorateClass([
8621
8701
  })
8622
8702
  ], SkillCatalog.prototype, "relatedSkills", 2);
8623
8703
  __decorateClass([
8624
- Column67({ name: "usage_count", type: "integer", default: 0 }),
8625
- Index57()
8704
+ Column68({ name: "usage_count", type: "integer", default: 0 }),
8705
+ Index58()
8626
8706
  ], SkillCatalog.prototype, "usageCount", 2);
8627
8707
  __decorateClass([
8628
- Column67({ name: "is_verified", type: "boolean", default: false })
8708
+ Column68({ name: "is_verified", type: "boolean", default: false })
8629
8709
  ], SkillCatalog.prototype, "isVerified", 2);
8630
8710
  __decorateClass([
8631
- Column67({ name: "first_seen_date", type: "date" })
8711
+ Column68({ name: "first_seen_date", type: "date" })
8632
8712
  ], SkillCatalog.prototype, "firstSeenDate", 2);
8633
8713
  __decorateClass([
8634
- Column67({ name: "last_updated_date", type: "date" })
8714
+ Column68({ name: "last_updated_date", type: "date" })
8635
8715
  ], SkillCatalog.prototype, "lastUpdatedDate", 2);
8636
8716
  __decorateClass([
8637
- Column67({
8717
+ Column68({
8638
8718
  name: "search_vector",
8639
8719
  type: "tsvector",
8640
8720
  nullable: true
8641
8721
  })
8642
8722
  ], SkillCatalog.prototype, "searchVector", 2);
8643
8723
  SkillCatalog = __decorateClass([
8644
- Entity66("skill_catalogs")
8724
+ Entity67("skill_catalogs")
8645
8725
  ], SkillCatalog);
8646
8726
 
8647
8727
  // src/entities/job-role.entity.ts
8648
- import { Entity as Entity67, Column as Column68 } from "typeorm";
8728
+ import { Entity as Entity68, Column as Column69 } from "typeorm";
8649
8729
  var JobRoles = class extends BaseEntity {
8650
8730
  };
8651
8731
  __decorateClass([
8652
- Column68({ name: "slug", type: "varchar", nullable: true, unique: true })
8732
+ Column69({ name: "slug", type: "varchar", nullable: true, unique: true })
8653
8733
  ], JobRoles.prototype, "slug", 2);
8654
8734
  __decorateClass([
8655
- Column68({ name: "name", type: "varchar", nullable: true })
8735
+ Column69({ name: "name", type: "varchar", nullable: true })
8656
8736
  ], JobRoles.prototype, "name", 2);
8657
8737
  __decorateClass([
8658
- Column68({ name: "is_active", type: "boolean", default: true })
8738
+ Column69({ name: "is_active", type: "boolean", default: true })
8659
8739
  ], JobRoles.prototype, "isActive", 2);
8660
8740
  JobRoles = __decorateClass([
8661
- Entity67("job_roles")
8741
+ Entity68("job_roles")
8662
8742
  ], JobRoles);
8663
8743
 
8664
8744
  // src/entities/plan.entity.ts
8665
- import { Entity as Entity69, Column as Column70, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
8745
+ import { Entity as Entity70, Column as Column71, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
8666
8746
 
8667
8747
  // src/entities/feature.entity.ts
8668
- import { Entity as Entity68, Column as Column69, ManyToMany as ManyToMany2 } from "typeorm";
8748
+ import { Entity as Entity69, Column as Column70, ManyToMany as ManyToMany2 } from "typeorm";
8669
8749
  var Feature = class extends BaseEntity {
8670
8750
  };
8671
8751
  __decorateClass([
8672
- Column69({ name: "name", type: "varchar", unique: true })
8752
+ Column70({ name: "name", type: "varchar", unique: true })
8673
8753
  ], Feature.prototype, "name", 2);
8674
8754
  __decorateClass([
8675
8755
  ManyToMany2(() => Plan, (plan) => plan.features)
8676
8756
  ], Feature.prototype, "plans", 2);
8677
8757
  Feature = __decorateClass([
8678
- Entity68("features")
8758
+ Entity69("features")
8679
8759
  ], Feature);
8680
8760
 
8681
8761
  // src/entities/plan.entity.ts
8682
8762
  var Plan = class extends BaseEntity {
8683
8763
  };
8684
8764
  __decorateClass([
8685
- Column70({ name: "name", type: "varchar", unique: true })
8765
+ Column71({ name: "name", type: "varchar", unique: true })
8686
8766
  ], Plan.prototype, "name", 2);
8687
8767
  __decorateClass([
8688
- Column70({ name: "description", type: "varchar", nullable: true })
8768
+ Column71({ name: "description", type: "varchar", nullable: true })
8689
8769
  ], Plan.prototype, "description", 2);
8690
8770
  __decorateClass([
8691
- Column70({ name: "price", type: "decimal", precision: 10, scale: 2 })
8771
+ Column71({ name: "price", type: "decimal", precision: 10, scale: 2 })
8692
8772
  ], Plan.prototype, "price", 2);
8693
8773
  __decorateClass([
8694
- Column70({ name: "billing_period", type: "varchar" })
8774
+ Column71({ name: "billing_period", type: "varchar" })
8695
8775
  ], Plan.prototype, "billingPeriod", 2);
8696
8776
  __decorateClass([
8697
- Column70({ name: "is_current", type: "boolean", default: false })
8777
+ Column71({ name: "is_current", type: "boolean", default: false })
8698
8778
  ], Plan.prototype, "isCurrent", 2);
8699
8779
  __decorateClass([
8700
8780
  ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
8701
8781
  JoinTable()
8702
8782
  ], Plan.prototype, "features", 2);
8703
8783
  Plan = __decorateClass([
8704
- Entity69("plans")
8784
+ Entity70("plans")
8705
8785
  ], Plan);
8706
8786
 
8707
8787
  // src/entities/cms.entity.ts
8708
- import { Entity as Entity70, Column as Column71 } from "typeorm";
8788
+ import { Entity as Entity71, Column as Column72 } from "typeorm";
8709
8789
  var Cms = class extends BaseEntity {
8710
8790
  };
8711
8791
  __decorateClass([
8712
- Column71({ name: "title", type: "varchar", nullable: true })
8792
+ Column72({ name: "title", type: "varchar", nullable: true })
8713
8793
  ], Cms.prototype, "title", 2);
8714
8794
  __decorateClass([
8715
- Column71({ name: "slug", type: "varchar", nullable: true, unique: true })
8795
+ Column72({ name: "slug", type: "varchar", nullable: true, unique: true })
8716
8796
  ], Cms.prototype, "slug", 2);
8717
8797
  __decorateClass([
8718
- Column71({ name: "content", type: "varchar", nullable: true })
8798
+ Column72({ name: "content", type: "varchar", nullable: true })
8719
8799
  ], Cms.prototype, "content", 2);
8720
8800
  __decorateClass([
8721
- Column71({ name: "is_active", type: "boolean", default: true })
8801
+ Column72({ name: "is_active", type: "boolean", default: true })
8722
8802
  ], Cms.prototype, "isActive", 2);
8723
8803
  Cms = __decorateClass([
8724
- Entity70("cms")
8804
+ Entity71("cms")
8725
8805
  ], Cms);
8726
8806
 
8727
8807
  // src/entities/lead.entity.ts
8728
8808
  import {
8729
- Entity as Entity71,
8730
- Column as Column72
8809
+ Entity as Entity72,
8810
+ Column as Column73
8731
8811
  } from "typeorm";
8732
8812
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
8733
8813
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -8737,22 +8817,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
8737
8817
  var Lead = class extends BaseEntity {
8738
8818
  };
8739
8819
  __decorateClass([
8740
- Column72({ name: "name", type: "varchar", nullable: true })
8820
+ Column73({ name: "name", type: "varchar", nullable: true })
8741
8821
  ], Lead.prototype, "name", 2);
8742
8822
  __decorateClass([
8743
- Column72({ name: "mobile_code", type: "varchar", nullable: true })
8823
+ Column73({ name: "mobile_code", type: "varchar", nullable: true })
8744
8824
  ], Lead.prototype, "mobileCode", 2);
8745
8825
  __decorateClass([
8746
- Column72({ name: "mobile", type: "varchar", nullable: true })
8826
+ Column73({ name: "mobile", type: "varchar", nullable: true })
8747
8827
  ], Lead.prototype, "mobile", 2);
8748
8828
  __decorateClass([
8749
- Column72({ name: "email", type: "varchar", nullable: true })
8829
+ Column73({ name: "email", type: "varchar", nullable: true })
8750
8830
  ], Lead.prototype, "email", 2);
8751
8831
  __decorateClass([
8752
- Column72({ name: "description", type: "varchar", nullable: true })
8832
+ Column73({ name: "description", type: "varchar", nullable: true })
8753
8833
  ], Lead.prototype, "description", 2);
8754
8834
  __decorateClass([
8755
- Column72({
8835
+ Column73({
8756
8836
  name: "category",
8757
8837
  type: "enum",
8758
8838
  enum: CategoryEmum,
@@ -8760,7 +8840,7 @@ __decorateClass([
8760
8840
  })
8761
8841
  ], Lead.prototype, "category", 2);
8762
8842
  Lead = __decorateClass([
8763
- Entity71("leads")
8843
+ Entity72("leads")
8764
8844
  ], Lead);
8765
8845
 
8766
8846
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -9001,7 +9081,7 @@ ClientFreelancerRecommendation = __decorateClass([
9001
9081
  ], ClientFreelancerRecommendation);
9002
9082
 
9003
9083
  // src/entities/commission.entity.ts
9004
- import { Entity as Entity72, Column as Column73 } from "typeorm";
9084
+ import { Entity as Entity73, Column as Column74 } from "typeorm";
9005
9085
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
9006
9086
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
9007
9087
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -9010,7 +9090,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
9010
9090
  var Commission = class extends BaseEntity {
9011
9091
  };
9012
9092
  __decorateClass([
9013
- Column73({
9093
+ Column74({
9014
9094
  name: "freelancer_commission_type",
9015
9095
  type: "enum",
9016
9096
  enum: CommissionTypeEnum,
@@ -9018,10 +9098,10 @@ __decorateClass([
9018
9098
  })
9019
9099
  ], Commission.prototype, "freelancerCommissionType", 2);
9020
9100
  __decorateClass([
9021
- Column73({ name: "freelancer_commission", type: "integer", default: 0 })
9101
+ Column74({ name: "freelancer_commission", type: "integer", default: 0 })
9022
9102
  ], Commission.prototype, "freelancerCommission", 2);
9023
9103
  __decorateClass([
9024
- Column73({
9104
+ Column74({
9025
9105
  name: "client_commission_type",
9026
9106
  type: "enum",
9027
9107
  enum: CommissionTypeEnum,
@@ -9029,105 +9109,105 @@ __decorateClass([
9029
9109
  })
9030
9110
  ], Commission.prototype, "clientCommissionType", 2);
9031
9111
  __decorateClass([
9032
- Column73({ name: "client_commission", type: "integer", default: 0 })
9112
+ Column74({ name: "client_commission", type: "integer", default: 0 })
9033
9113
  ], Commission.prototype, "clientCommission", 2);
9034
9114
  Commission = __decorateClass([
9035
- Entity72("commissions")
9115
+ Entity73("commissions")
9036
9116
  ], Commission);
9037
9117
 
9038
9118
  // src/entities/calendly-meeting-log.entity.ts
9039
9119
  import {
9040
- Entity as Entity73,
9041
- Column as Column74,
9042
- Index as Index58
9120
+ Entity as Entity74,
9121
+ Column as Column75,
9122
+ Index as Index59
9043
9123
  } from "typeorm";
9044
9124
  var CalendlyMeetingLog = class extends BaseEntity {
9045
9125
  };
9046
9126
  __decorateClass([
9047
- Column74({ name: "calendly_event_id", type: "varchar", nullable: true }),
9048
- Index58()
9127
+ Column75({ name: "calendly_event_id", type: "varchar", nullable: true }),
9128
+ Index59()
9049
9129
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
9050
9130
  __decorateClass([
9051
- Column74({ name: "calendly_event_type", type: "varchar", nullable: true })
9131
+ Column75({ name: "calendly_event_type", type: "varchar", nullable: true })
9052
9132
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
9053
9133
  __decorateClass([
9054
- Column74({ name: "raw_webhook_data", type: "jsonb", nullable: true })
9134
+ Column75({ name: "raw_webhook_data", type: "jsonb", nullable: true })
9055
9135
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
9056
9136
  CalendlyMeetingLog = __decorateClass([
9057
- Entity73("calendly_meeting_logs")
9137
+ Entity74("calendly_meeting_logs")
9058
9138
  ], CalendlyMeetingLog);
9059
9139
 
9060
9140
  // src/entities/zoom-meeting-log.entity.ts
9061
9141
  import {
9062
- Entity as Entity74,
9063
- Column as Column75,
9064
- Index as Index59
9142
+ Entity as Entity75,
9143
+ Column as Column76,
9144
+ Index as Index60
9065
9145
  } from "typeorm";
9066
9146
  var ZoomMeetingLog = class extends BaseEntity {
9067
9147
  };
9068
9148
  __decorateClass([
9069
- Column75({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
9070
- Index59()
9149
+ Column76({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
9150
+ Index60()
9071
9151
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
9072
9152
  __decorateClass([
9073
- Column75({ name: "zoom_event_type", type: "varchar", nullable: true })
9153
+ Column76({ name: "zoom_event_type", type: "varchar", nullable: true })
9074
9154
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
9075
9155
  __decorateClass([
9076
- Column75({ name: "raw_webhook_data", type: "jsonb", nullable: true })
9156
+ Column76({ name: "raw_webhook_data", type: "jsonb", nullable: true })
9077
9157
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
9078
9158
  ZoomMeetingLog = __decorateClass([
9079
- Entity74("zoom_meeting_logs")
9159
+ Entity75("zoom_meeting_logs")
9080
9160
  ], ZoomMeetingLog);
9081
9161
 
9082
9162
  // src/entities/stripe-logs.entity.ts
9083
- import { Entity as Entity75, Column as Column76 } from "typeorm";
9163
+ import { Entity as Entity76, Column as Column77 } from "typeorm";
9084
9164
  var StripeLog = class extends BaseEntity {
9085
9165
  };
9086
9166
  __decorateClass([
9087
- Column76({ name: "stripe_event_id", type: "varchar", nullable: true })
9167
+ Column77({ name: "stripe_event_id", type: "varchar", nullable: true })
9088
9168
  ], StripeLog.prototype, "stripeEventId", 2);
9089
9169
  __decorateClass([
9090
- Column76({ name: "event_type", type: "varchar", nullable: true })
9170
+ Column77({ name: "event_type", type: "varchar", nullable: true })
9091
9171
  ], StripeLog.prototype, "eventType", 2);
9092
9172
  __decorateClass([
9093
- Column76({ name: "stripe_account_id", type: "varchar", nullable: true })
9173
+ Column77({ name: "stripe_account_id", type: "varchar", nullable: true })
9094
9174
  ], StripeLog.prototype, "stripeAccountId", 2);
9095
9175
  __decorateClass([
9096
- Column76({ name: "raw_webhook_data", type: "jsonb", nullable: true })
9176
+ Column77({ name: "raw_webhook_data", type: "jsonb", nullable: true })
9097
9177
  ], StripeLog.prototype, "rawWebhookData", 2);
9098
9178
  StripeLog = __decorateClass([
9099
- Entity75("stripe_logs")
9179
+ Entity76("stripe_logs")
9100
9180
  ], StripeLog);
9101
9181
 
9102
9182
  // src/entities/recommendation-weightage-config.entity.ts
9103
9183
  import {
9104
- Entity as Entity76,
9105
- Column as Column77,
9106
- Index as Index60
9184
+ Entity as Entity77,
9185
+ Column as Column78,
9186
+ Index as Index61
9107
9187
  } from "typeorm";
9108
9188
  var RecommendationWeightageConfig = class extends BaseEntity {
9109
9189
  };
9110
9190
  __decorateClass([
9111
- Column77({
9191
+ Column78({
9112
9192
  type: "varchar",
9113
9193
  length: 100,
9114
9194
  unique: true,
9115
9195
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
9116
9196
  }),
9117
- Index60()
9197
+ Index61()
9118
9198
  ], RecommendationWeightageConfig.prototype, "key", 2);
9119
9199
  __decorateClass([
9120
- Column77({
9200
+ Column78({
9121
9201
  type: "jsonb",
9122
9202
  comment: "JSON object containing weight values",
9123
9203
  nullable: true
9124
9204
  })
9125
9205
  ], RecommendationWeightageConfig.prototype, "value", 2);
9126
9206
  __decorateClass([
9127
- Column77({ name: "is_active", type: "boolean", default: true })
9207
+ Column78({ name: "is_active", type: "boolean", default: true })
9128
9208
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
9129
9209
  RecommendationWeightageConfig = __decorateClass([
9130
- Entity76("recommendation_weightage_configs")
9210
+ Entity77("recommendation_weightage_configs")
9131
9211
  ], RecommendationWeightageConfig);
9132
9212
  export {
9133
9213
  ADMIN_FREELANCER_PATTERN,