@experts_hub/shared 1.0.483 → 1.0.485

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
@@ -4919,6 +4919,22 @@ var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
4919
4919
  })(DisputeStatusEnum || {});
4920
4920
  var Dispute = class extends BaseEntity {
4921
4921
  };
4922
+ __decorateClass([
4923
+ Column54({ name: "client_id", type: "integer", nullable: true }),
4924
+ Index46()
4925
+ ], Dispute.prototype, "clientId", 2);
4926
+ __decorateClass([
4927
+ ManyToOne48(() => User, (user) => user.clientDisputes),
4928
+ JoinColumn48({ name: "client_id" })
4929
+ ], Dispute.prototype, "client", 2);
4930
+ __decorateClass([
4931
+ Column54({ name: "freelancer_id", type: "integer", nullable: true }),
4932
+ Index46()
4933
+ ], Dispute.prototype, "freelancerId", 2);
4934
+ __decorateClass([
4935
+ ManyToOne48(() => User, (user) => user.freelancerDisputes),
4936
+ JoinColumn48({ name: "freelancer_id" })
4937
+ ], Dispute.prototype, "freelancer", 2);
4922
4938
  __decorateClass([
4923
4939
  Column54({ name: "dispute_unique_id", type: "varchar", unique: true })
4924
4940
  ], Dispute.prototype, "disputeUniqueId", 2);
@@ -5502,6 +5518,12 @@ __decorateClass([
5502
5518
  __decorateClass([
5503
5519
  OneToMany19(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
5504
5520
  ], User.prototype, "stripeTransactions", 2);
5521
+ __decorateClass([
5522
+ OneToMany19(() => Dispute, (dispute) => dispute.client)
5523
+ ], User.prototype, "clientDisputes", 2);
5524
+ __decorateClass([
5525
+ OneToMany19(() => Dispute, (dispute) => dispute.freelancer)
5526
+ ], User.prototype, "freelancerDisputes", 2);
5505
5527
  User = __decorateClass([
5506
5528
  Entity57("users")
5507
5529
  ], User);
@@ -7593,90 +7615,155 @@ Skill = __decorateClass([
7593
7615
  Entity61("skills")
7594
7616
  ], Skill);
7595
7617
 
7618
+ // src/entities/skill-catalog.entity.ts
7619
+ import {
7620
+ Entity as Entity62,
7621
+ Column as Column63,
7622
+ Index as Index52
7623
+ } from "typeorm";
7624
+ var SkillCatalog = class extends BaseEntity {
7625
+ };
7626
+ __decorateClass([
7627
+ Column63({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
7628
+ Index52()
7629
+ ], SkillCatalog.prototype, "canonicalName", 2);
7630
+ __decorateClass([
7631
+ Column63({
7632
+ name: "aliases",
7633
+ type: "text",
7634
+ array: true,
7635
+ default: "{}"
7636
+ })
7637
+ ], SkillCatalog.prototype, "aliases", 2);
7638
+ __decorateClass([
7639
+ Column63({
7640
+ name: "variations",
7641
+ type: "jsonb",
7642
+ default: "{}"
7643
+ })
7644
+ ], SkillCatalog.prototype, "variations", 2);
7645
+ __decorateClass([
7646
+ Column63({ name: "category", type: "varchar", length: 50, nullable: true })
7647
+ ], SkillCatalog.prototype, "category", 2);
7648
+ __decorateClass([
7649
+ Column63({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
7650
+ ], SkillCatalog.prototype, "parentSkill", 2);
7651
+ __decorateClass([
7652
+ Column63({
7653
+ name: "related_skills",
7654
+ type: "text",
7655
+ array: true,
7656
+ default: "{}"
7657
+ })
7658
+ ], SkillCatalog.prototype, "relatedSkills", 2);
7659
+ __decorateClass([
7660
+ Column63({ name: "usage_count", type: "integer", default: 0 }),
7661
+ Index52()
7662
+ ], SkillCatalog.prototype, "usageCount", 2);
7663
+ __decorateClass([
7664
+ Column63({ name: "is_verified", type: "boolean", default: false })
7665
+ ], SkillCatalog.prototype, "isVerified", 2);
7666
+ __decorateClass([
7667
+ Column63({ name: "first_seen_date", type: "date" })
7668
+ ], SkillCatalog.prototype, "firstSeenDate", 2);
7669
+ __decorateClass([
7670
+ Column63({ name: "last_updated_date", type: "date" })
7671
+ ], SkillCatalog.prototype, "lastUpdatedDate", 2);
7672
+ __decorateClass([
7673
+ Column63({
7674
+ name: "search_vector",
7675
+ type: "tsvector",
7676
+ nullable: true
7677
+ })
7678
+ ], SkillCatalog.prototype, "searchVector", 2);
7679
+ SkillCatalog = __decorateClass([
7680
+ Entity62("skill_catalogs")
7681
+ ], SkillCatalog);
7682
+
7596
7683
  // src/entities/job-role.entity.ts
7597
- import { Entity as Entity62, Column as Column63 } from "typeorm";
7684
+ import { Entity as Entity63, Column as Column64 } from "typeorm";
7598
7685
  var JobRoles = class extends BaseEntity {
7599
7686
  };
7600
7687
  __decorateClass([
7601
- Column63({ name: "slug", type: "varchar", nullable: true, unique: true })
7688
+ Column64({ name: "slug", type: "varchar", nullable: true, unique: true })
7602
7689
  ], JobRoles.prototype, "slug", 2);
7603
7690
  __decorateClass([
7604
- Column63({ name: "name", type: "varchar", nullable: true })
7691
+ Column64({ name: "name", type: "varchar", nullable: true })
7605
7692
  ], JobRoles.prototype, "name", 2);
7606
7693
  __decorateClass([
7607
- Column63({ name: "is_active", type: "boolean", default: true })
7694
+ Column64({ name: "is_active", type: "boolean", default: true })
7608
7695
  ], JobRoles.prototype, "isActive", 2);
7609
7696
  JobRoles = __decorateClass([
7610
- Entity62("job_roles")
7697
+ Entity63("job_roles")
7611
7698
  ], JobRoles);
7612
7699
 
7613
7700
  // src/entities/plan.entity.ts
7614
- import { Entity as Entity64, Column as Column65, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
7701
+ import { Entity as Entity65, Column as Column66, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
7615
7702
 
7616
7703
  // src/entities/feature.entity.ts
7617
- import { Entity as Entity63, Column as Column64, ManyToMany as ManyToMany2 } from "typeorm";
7704
+ import { Entity as Entity64, Column as Column65, ManyToMany as ManyToMany2 } from "typeorm";
7618
7705
  var Feature = class extends BaseEntity {
7619
7706
  };
7620
7707
  __decorateClass([
7621
- Column64({ name: "name", type: "varchar", unique: true })
7708
+ Column65({ name: "name", type: "varchar", unique: true })
7622
7709
  ], Feature.prototype, "name", 2);
7623
7710
  __decorateClass([
7624
7711
  ManyToMany2(() => Plan, (plan) => plan.features)
7625
7712
  ], Feature.prototype, "plans", 2);
7626
7713
  Feature = __decorateClass([
7627
- Entity63("features")
7714
+ Entity64("features")
7628
7715
  ], Feature);
7629
7716
 
7630
7717
  // src/entities/plan.entity.ts
7631
7718
  var Plan = class extends BaseEntity {
7632
7719
  };
7633
7720
  __decorateClass([
7634
- Column65({ name: "name", type: "varchar", unique: true })
7721
+ Column66({ name: "name", type: "varchar", unique: true })
7635
7722
  ], Plan.prototype, "name", 2);
7636
7723
  __decorateClass([
7637
- Column65({ name: "description", type: "varchar", nullable: true })
7724
+ Column66({ name: "description", type: "varchar", nullable: true })
7638
7725
  ], Plan.prototype, "description", 2);
7639
7726
  __decorateClass([
7640
- Column65({ name: "price", type: "decimal", precision: 10, scale: 2 })
7727
+ Column66({ name: "price", type: "decimal", precision: 10, scale: 2 })
7641
7728
  ], Plan.prototype, "price", 2);
7642
7729
  __decorateClass([
7643
- Column65({ name: "billing_period", type: "varchar" })
7730
+ Column66({ name: "billing_period", type: "varchar" })
7644
7731
  ], Plan.prototype, "billingPeriod", 2);
7645
7732
  __decorateClass([
7646
- Column65({ name: "is_current", type: "boolean", default: false })
7733
+ Column66({ name: "is_current", type: "boolean", default: false })
7647
7734
  ], Plan.prototype, "isCurrent", 2);
7648
7735
  __decorateClass([
7649
7736
  ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
7650
7737
  JoinTable()
7651
7738
  ], Plan.prototype, "features", 2);
7652
7739
  Plan = __decorateClass([
7653
- Entity64("plans")
7740
+ Entity65("plans")
7654
7741
  ], Plan);
7655
7742
 
7656
7743
  // src/entities/cms.entity.ts
7657
- import { Entity as Entity65, Column as Column66 } from "typeorm";
7744
+ import { Entity as Entity66, Column as Column67 } from "typeorm";
7658
7745
  var Cms = class extends BaseEntity {
7659
7746
  };
7660
7747
  __decorateClass([
7661
- Column66({ name: "title", type: "varchar", nullable: true })
7748
+ Column67({ name: "title", type: "varchar", nullable: true })
7662
7749
  ], Cms.prototype, "title", 2);
7663
7750
  __decorateClass([
7664
- Column66({ name: "slug", type: "varchar", nullable: true, unique: true })
7751
+ Column67({ name: "slug", type: "varchar", nullable: true, unique: true })
7665
7752
  ], Cms.prototype, "slug", 2);
7666
7753
  __decorateClass([
7667
- Column66({ name: "content", type: "varchar", nullable: true })
7754
+ Column67({ name: "content", type: "varchar", nullable: true })
7668
7755
  ], Cms.prototype, "content", 2);
7669
7756
  __decorateClass([
7670
- Column66({ name: "is_active", type: "boolean", default: true })
7757
+ Column67({ name: "is_active", type: "boolean", default: true })
7671
7758
  ], Cms.prototype, "isActive", 2);
7672
7759
  Cms = __decorateClass([
7673
- Entity65("cms")
7760
+ Entity66("cms")
7674
7761
  ], Cms);
7675
7762
 
7676
7763
  // src/entities/lead.entity.ts
7677
7764
  import {
7678
- Entity as Entity66,
7679
- Column as Column67
7765
+ Entity as Entity67,
7766
+ Column as Column68
7680
7767
  } from "typeorm";
7681
7768
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7682
7769
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -7686,22 +7773,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7686
7773
  var Lead = class extends BaseEntity {
7687
7774
  };
7688
7775
  __decorateClass([
7689
- Column67({ name: "name", type: "varchar", nullable: true })
7776
+ Column68({ name: "name", type: "varchar", nullable: true })
7690
7777
  ], Lead.prototype, "name", 2);
7691
7778
  __decorateClass([
7692
- Column67({ name: "mobile_code", type: "varchar", nullable: true })
7779
+ Column68({ name: "mobile_code", type: "varchar", nullable: true })
7693
7780
  ], Lead.prototype, "mobileCode", 2);
7694
7781
  __decorateClass([
7695
- Column67({ name: "mobile", type: "varchar", nullable: true })
7782
+ Column68({ name: "mobile", type: "varchar", nullable: true })
7696
7783
  ], Lead.prototype, "mobile", 2);
7697
7784
  __decorateClass([
7698
- Column67({ name: "email", type: "varchar", nullable: true })
7785
+ Column68({ name: "email", type: "varchar", nullable: true })
7699
7786
  ], Lead.prototype, "email", 2);
7700
7787
  __decorateClass([
7701
- Column67({ name: "description", type: "varchar", nullable: true })
7788
+ Column68({ name: "description", type: "varchar", nullable: true })
7702
7789
  ], Lead.prototype, "description", 2);
7703
7790
  __decorateClass([
7704
- Column67({
7791
+ Column68({
7705
7792
  name: "category",
7706
7793
  type: "enum",
7707
7794
  enum: CategoryEmum,
@@ -7709,7 +7796,7 @@ __decorateClass([
7709
7796
  })
7710
7797
  ], Lead.prototype, "category", 2);
7711
7798
  Lead = __decorateClass([
7712
- Entity66("leads")
7799
+ Entity67("leads")
7713
7800
  ], Lead);
7714
7801
 
7715
7802
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -7950,7 +8037,7 @@ ClientFreelancerRecommendation = __decorateClass([
7950
8037
  ], ClientFreelancerRecommendation);
7951
8038
 
7952
8039
  // src/entities/commission.entity.ts
7953
- import { Entity as Entity67, Column as Column68 } from "typeorm";
8040
+ import { Entity as Entity68, Column as Column69 } from "typeorm";
7954
8041
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
7955
8042
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
7956
8043
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -7959,7 +8046,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
7959
8046
  var Commission = class extends BaseEntity {
7960
8047
  };
7961
8048
  __decorateClass([
7962
- Column68({
8049
+ Column69({
7963
8050
  name: "freelancer_commission_type",
7964
8051
  type: "enum",
7965
8052
  enum: CommissionTypeEnum,
@@ -7967,10 +8054,10 @@ __decorateClass([
7967
8054
  })
7968
8055
  ], Commission.prototype, "freelancerCommissionType", 2);
7969
8056
  __decorateClass([
7970
- Column68({ name: "freelancer_commission", type: "integer", default: 0 })
8057
+ Column69({ name: "freelancer_commission", type: "integer", default: 0 })
7971
8058
  ], Commission.prototype, "freelancerCommission", 2);
7972
8059
  __decorateClass([
7973
- Column68({
8060
+ Column69({
7974
8061
  name: "client_commission_type",
7975
8062
  type: "enum",
7976
8063
  enum: CommissionTypeEnum,
@@ -7978,105 +8065,105 @@ __decorateClass([
7978
8065
  })
7979
8066
  ], Commission.prototype, "clientCommissionType", 2);
7980
8067
  __decorateClass([
7981
- Column68({ name: "client_commission", type: "integer", default: 0 })
8068
+ Column69({ name: "client_commission", type: "integer", default: 0 })
7982
8069
  ], Commission.prototype, "clientCommission", 2);
7983
8070
  Commission = __decorateClass([
7984
- Entity67("commissions")
8071
+ Entity68("commissions")
7985
8072
  ], Commission);
7986
8073
 
7987
8074
  // src/entities/calendly-meeting-log.entity.ts
7988
8075
  import {
7989
- Entity as Entity68,
7990
- Column as Column69,
7991
- Index as Index52
8076
+ Entity as Entity69,
8077
+ Column as Column70,
8078
+ Index as Index53
7992
8079
  } from "typeorm";
7993
8080
  var CalendlyMeetingLog = class extends BaseEntity {
7994
8081
  };
7995
8082
  __decorateClass([
7996
- Column69({ name: "calendly_event_id", type: "varchar", nullable: true }),
7997
- Index52()
8083
+ Column70({ name: "calendly_event_id", type: "varchar", nullable: true }),
8084
+ Index53()
7998
8085
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
7999
8086
  __decorateClass([
8000
- Column69({ name: "calendly_event_type", type: "varchar", nullable: true })
8087
+ Column70({ name: "calendly_event_type", type: "varchar", nullable: true })
8001
8088
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
8002
8089
  __decorateClass([
8003
- Column69({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8090
+ Column70({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8004
8091
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
8005
8092
  CalendlyMeetingLog = __decorateClass([
8006
- Entity68("calendly_meeting_logs")
8093
+ Entity69("calendly_meeting_logs")
8007
8094
  ], CalendlyMeetingLog);
8008
8095
 
8009
8096
  // src/entities/zoom-meeting-log.entity.ts
8010
8097
  import {
8011
- Entity as Entity69,
8012
- Column as Column70,
8013
- Index as Index53
8098
+ Entity as Entity70,
8099
+ Column as Column71,
8100
+ Index as Index54
8014
8101
  } from "typeorm";
8015
8102
  var ZoomMeetingLog = class extends BaseEntity {
8016
8103
  };
8017
8104
  __decorateClass([
8018
- Column70({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
8019
- Index53()
8105
+ Column71({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
8106
+ Index54()
8020
8107
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
8021
8108
  __decorateClass([
8022
- Column70({ name: "zoom_event_type", type: "varchar", nullable: true })
8109
+ Column71({ name: "zoom_event_type", type: "varchar", nullable: true })
8023
8110
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
8024
8111
  __decorateClass([
8025
- Column70({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8112
+ Column71({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8026
8113
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
8027
8114
  ZoomMeetingLog = __decorateClass([
8028
- Entity69("zoom_meeting_logs")
8115
+ Entity70("zoom_meeting_logs")
8029
8116
  ], ZoomMeetingLog);
8030
8117
 
8031
8118
  // src/entities/stripe-logs.entity.ts
8032
- import { Entity as Entity70, Column as Column71 } from "typeorm";
8119
+ import { Entity as Entity71, Column as Column72 } from "typeorm";
8033
8120
  var StripeLog = class extends BaseEntity {
8034
8121
  };
8035
8122
  __decorateClass([
8036
- Column71({ name: "stripe_event_id", type: "varchar", nullable: true })
8123
+ Column72({ name: "stripe_event_id", type: "varchar", nullable: true })
8037
8124
  ], StripeLog.prototype, "stripeEventId", 2);
8038
8125
  __decorateClass([
8039
- Column71({ name: "event_type", type: "varchar", nullable: true })
8126
+ Column72({ name: "event_type", type: "varchar", nullable: true })
8040
8127
  ], StripeLog.prototype, "eventType", 2);
8041
8128
  __decorateClass([
8042
- Column71({ name: "stripe_account_id", type: "varchar", nullable: true })
8129
+ Column72({ name: "stripe_account_id", type: "varchar", nullable: true })
8043
8130
  ], StripeLog.prototype, "stripeAccountId", 2);
8044
8131
  __decorateClass([
8045
- Column71({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8132
+ Column72({ name: "raw_webhook_data", type: "jsonb", nullable: true })
8046
8133
  ], StripeLog.prototype, "rawWebhookData", 2);
8047
8134
  StripeLog = __decorateClass([
8048
- Entity70("stripe_logs")
8135
+ Entity71("stripe_logs")
8049
8136
  ], StripeLog);
8050
8137
 
8051
8138
  // src/entities/recommendation-weightage-config.entity.ts
8052
8139
  import {
8053
- Entity as Entity71,
8054
- Column as Column72,
8055
- Index as Index54
8140
+ Entity as Entity72,
8141
+ Column as Column73,
8142
+ Index as Index55
8056
8143
  } from "typeorm";
8057
8144
  var RecommendationWeightageConfig = class extends BaseEntity {
8058
8145
  };
8059
8146
  __decorateClass([
8060
- Column72({
8147
+ Column73({
8061
8148
  type: "varchar",
8062
8149
  length: 100,
8063
8150
  unique: true,
8064
8151
  comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
8065
8152
  }),
8066
- Index54()
8153
+ Index55()
8067
8154
  ], RecommendationWeightageConfig.prototype, "key", 2);
8068
8155
  __decorateClass([
8069
- Column72({
8156
+ Column73({
8070
8157
  type: "jsonb",
8071
8158
  comment: "JSON object containing weight values",
8072
8159
  nullable: true
8073
8160
  })
8074
8161
  ], RecommendationWeightageConfig.prototype, "value", 2);
8075
8162
  __decorateClass([
8076
- Column72({ name: "is_active", type: "boolean", default: true })
8163
+ Column73({ name: "is_active", type: "boolean", default: true })
8077
8164
  ], RecommendationWeightageConfig.prototype, "isActive", 2);
8078
8165
  RecommendationWeightageConfig = __decorateClass([
8079
- Entity71("recommendation_weightage_configs")
8166
+ Entity72("recommendation_weightage_configs")
8080
8167
  ], RecommendationWeightageConfig);
8081
8168
  export {
8082
8169
  ADMIN_FREELANCER_PATTERN,
@@ -8312,6 +8399,7 @@ export {
8312
8399
  SignContractForFreelancerDto,
8313
8400
  Signature,
8314
8401
  Skill,
8402
+ SkillCatalog,
8315
8403
  State,
8316
8404
  Step,
8317
8405
  StripeLog,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.483",
3
+ "version": "1.0.485",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",