@experts_hub/shared 1.0.587 → 1.0.590

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.
@@ -63,4 +63,5 @@ export declare class CompanyProfile extends BaseEntity {
63
63
  signaturePositions: any;
64
64
  hiringCommisionTypeForFte: HiringCommissionTypeEnum;
65
65
  hiringCommissionValueForFte: number;
66
+ rating: number;
66
67
  }
@@ -47,5 +47,6 @@ export declare class Contract extends BaseEntity {
47
47
  isWorkContractSent: boolean;
48
48
  isEscrowDeposited: boolean;
49
49
  signaturePositions: any;
50
+ metaData: any;
50
51
  escrowWallet: EscrowWallet;
51
52
  }
@@ -88,4 +88,5 @@ export declare class FreelancerProfile extends BaseEntity {
88
88
  isExpertshubVerified: boolean;
89
89
  isFollowedOnLinkedIn: boolean;
90
90
  signaturePositions: any;
91
+ rating: number;
91
92
  }
package/dist/index.d.mts CHANGED
@@ -1079,6 +1079,7 @@ declare class CompanyProfile extends BaseEntity {
1079
1079
  signaturePositions: any;
1080
1080
  hiringCommisionTypeForFte: HiringCommissionTypeEnum;
1081
1081
  hiringCommissionValueForFte: number;
1082
+ rating: number;
1082
1083
  }
1083
1084
 
1084
1085
  declare class City extends BaseEntity {
@@ -1200,6 +1201,7 @@ declare class FreelancerProfile extends BaseEntity {
1200
1201
  isExpertshubVerified: boolean;
1201
1202
  isFollowedOnLinkedIn: boolean;
1202
1203
  signaturePositions: any;
1204
+ rating: number;
1203
1205
  }
1204
1206
 
1205
1207
  declare enum JobSkillCategoryEnum {
@@ -1725,6 +1727,7 @@ declare class Contract extends BaseEntity {
1725
1727
  isWorkContractSent: boolean;
1726
1728
  isEscrowDeposited: boolean;
1727
1729
  signaturePositions: any;
1730
+ metaData: any;
1728
1731
  escrowWallet: EscrowWallet;
1729
1732
  }
1730
1733
 
@@ -2418,6 +2421,7 @@ declare class Rating extends BaseEntity {
2418
2421
 
2419
2422
  declare class CreateRatingDto {
2420
2423
  revieweeId: number;
2424
+ reviewerId: number;
2421
2425
  jobId: number;
2422
2426
  ratingType: RatingTypeEnum;
2423
2427
  reviewerComment?: string;
package/dist/index.d.ts CHANGED
@@ -1079,6 +1079,7 @@ declare class CompanyProfile extends BaseEntity {
1079
1079
  signaturePositions: any;
1080
1080
  hiringCommisionTypeForFte: HiringCommissionTypeEnum;
1081
1081
  hiringCommissionValueForFte: number;
1082
+ rating: number;
1082
1083
  }
1083
1084
 
1084
1085
  declare class City extends BaseEntity {
@@ -1200,6 +1201,7 @@ declare class FreelancerProfile extends BaseEntity {
1200
1201
  isExpertshubVerified: boolean;
1201
1202
  isFollowedOnLinkedIn: boolean;
1202
1203
  signaturePositions: any;
1204
+ rating: number;
1203
1205
  }
1204
1206
 
1205
1207
  declare enum JobSkillCategoryEnum {
@@ -1725,6 +1727,7 @@ declare class Contract extends BaseEntity {
1725
1727
  isWorkContractSent: boolean;
1726
1728
  isEscrowDeposited: boolean;
1727
1729
  signaturePositions: any;
1730
+ metaData: any;
1728
1731
  escrowWallet: EscrowWallet;
1729
1732
  }
1730
1733
 
@@ -2418,6 +2421,7 @@ declare class Rating extends BaseEntity {
2418
2421
 
2419
2422
  declare class CreateRatingDto {
2420
2423
  revieweeId: number;
2424
+ reviewerId: number;
2421
2425
  jobId: number;
2422
2426
  ratingType: RatingTypeEnum;
2423
2427
  reviewerComment?: string;
package/dist/index.js CHANGED
@@ -2800,6 +2800,12 @@ __decorateClass([
2800
2800
  __decorateClass([
2801
2801
  (0, import_typeorm5.Column)({ name: "hiring_commission_value_for_fte", type: "integer", nullable: true })
2802
2802
  ], CompanyProfile.prototype, "hiringCommissionValueForFte", 2);
2803
+ __decorateClass([
2804
+ (0, import_typeorm5.Column)({
2805
+ type: "float",
2806
+ default: 0
2807
+ })
2808
+ ], CompanyProfile.prototype, "rating", 2);
2803
2809
  CompanyProfile = __decorateClass([
2804
2810
  (0, import_typeorm5.Entity)("company_profiles")
2805
2811
  ], CompanyProfile);
@@ -3030,7 +3036,6 @@ var AiAssessmentStatusEnum = /* @__PURE__ */ ((AiAssessmentStatusEnum2) => {
3030
3036
  return AiAssessmentStatusEnum2;
3031
3037
  })(AiAssessmentStatusEnum || {});
3032
3038
  var FreelancerProfile = class extends BaseEntity {
3033
- // stores the positions JSON
3034
3039
  };
3035
3040
  // individual index to find profile by user
3036
3041
  __decorateClass([
@@ -3238,6 +3243,12 @@ __decorateClass([
3238
3243
  __decorateClass([
3239
3244
  (0, import_typeorm9.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
3240
3245
  ], FreelancerProfile.prototype, "signaturePositions", 2);
3246
+ __decorateClass([
3247
+ (0, import_typeorm9.Column)({
3248
+ type: "float",
3249
+ default: 0
3250
+ })
3251
+ ], FreelancerProfile.prototype, "rating", 2);
3241
3252
  FreelancerProfile = __decorateClass([
3242
3253
  (0, import_typeorm9.Entity)("freelancer_profiles")
3243
3254
  ], FreelancerProfile);
@@ -4911,6 +4922,9 @@ __decorateClass([
4911
4922
  __decorateClass([
4912
4923
  (0, import_typeorm30.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
4913
4924
  ], Contract.prototype, "signaturePositions", 2);
4925
+ __decorateClass([
4926
+ (0, import_typeorm30.Column)({ name: "meta_data", type: "jsonb", nullable: true })
4927
+ ], Contract.prototype, "metaData", 2);
4914
4928
  __decorateClass([
4915
4929
  (0, import_typeorm30.OneToOne)(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
4916
4930
  ], Contract.prototype, "escrowWallet", 2);
@@ -7094,6 +7108,10 @@ __decorateClass([
7094
7108
  (0, import_class_validator62.IsInt)({ message: "Reviewee ID must be a valid integer" }),
7095
7109
  (0, import_class_validator62.IsNotEmpty)({ message: "Reviewee ID is required" })
7096
7110
  ], CreateRatingDto.prototype, "revieweeId", 2);
7111
+ __decorateClass([
7112
+ (0, import_class_validator62.IsInt)({ message: "Reviewer ID must be a valid integer" }),
7113
+ (0, import_class_validator62.IsNotEmpty)({ message: "Reviewer ID is required" })
7114
+ ], CreateRatingDto.prototype, "reviewerId", 2);
7097
7115
  __decorateClass([
7098
7116
  (0, import_class_validator62.IsInt)({ message: "Job ID must be a valid integer" }),
7099
7117
  (0, import_class_validator62.IsNotEmpty)({ message: "Job ID is required" })
package/dist/index.mjs CHANGED
@@ -2583,6 +2583,12 @@ __decorateClass([
2583
2583
  __decorateClass([
2584
2584
  Column5({ name: "hiring_commission_value_for_fte", type: "integer", nullable: true })
2585
2585
  ], CompanyProfile.prototype, "hiringCommissionValueForFte", 2);
2586
+ __decorateClass([
2587
+ Column5({
2588
+ type: "float",
2589
+ default: 0
2590
+ })
2591
+ ], CompanyProfile.prototype, "rating", 2);
2586
2592
  CompanyProfile = __decorateClass([
2587
2593
  Entity4("company_profiles")
2588
2594
  ], CompanyProfile);
@@ -2813,7 +2819,6 @@ var AiAssessmentStatusEnum = /* @__PURE__ */ ((AiAssessmentStatusEnum2) => {
2813
2819
  return AiAssessmentStatusEnum2;
2814
2820
  })(AiAssessmentStatusEnum || {});
2815
2821
  var FreelancerProfile = class extends BaseEntity {
2816
- // stores the positions JSON
2817
2822
  };
2818
2823
  // individual index to find profile by user
2819
2824
  __decorateClass([
@@ -3021,6 +3026,12 @@ __decorateClass([
3021
3026
  __decorateClass([
3022
3027
  Column9({ name: "signature_positions", type: "jsonb", nullable: true })
3023
3028
  ], FreelancerProfile.prototype, "signaturePositions", 2);
3029
+ __decorateClass([
3030
+ Column9({
3031
+ type: "float",
3032
+ default: 0
3033
+ })
3034
+ ], FreelancerProfile.prototype, "rating", 2);
3024
3035
  FreelancerProfile = __decorateClass([
3025
3036
  Entity8("freelancer_profiles")
3026
3037
  ], FreelancerProfile);
@@ -4751,6 +4762,9 @@ __decorateClass([
4751
4762
  __decorateClass([
4752
4763
  Column30({ name: "signature_positions", type: "jsonb", nullable: true })
4753
4764
  ], Contract.prototype, "signaturePositions", 2);
4765
+ __decorateClass([
4766
+ Column30({ name: "meta_data", type: "jsonb", nullable: true })
4767
+ ], Contract.prototype, "metaData", 2);
4754
4768
  __decorateClass([
4755
4769
  OneToOne9(() => EscrowWallet, (escrowWallet) => escrowWallet.contract)
4756
4770
  ], Contract.prototype, "escrowWallet", 2);
@@ -7050,6 +7064,10 @@ __decorateClass([
7050
7064
  IsInt2({ message: "Reviewee ID must be a valid integer" }),
7051
7065
  IsNotEmpty51({ message: "Reviewee ID is required" })
7052
7066
  ], CreateRatingDto.prototype, "revieweeId", 2);
7067
+ __decorateClass([
7068
+ IsInt2({ message: "Reviewer ID must be a valid integer" }),
7069
+ IsNotEmpty51({ message: "Reviewer ID is required" })
7070
+ ], CreateRatingDto.prototype, "reviewerId", 2);
7053
7071
  __decorateClass([
7054
7072
  IsInt2({ message: "Job ID must be a valid integer" }),
7055
7073
  IsNotEmpty51({ message: "Job ID is required" })
@@ -1,6 +1,7 @@
1
1
  import { RatingTypeEnum } from '../../../entities/rating.entity';
2
2
  export declare class CreateRatingDto {
3
3
  revieweeId: number;
4
+ reviewerId: number;
4
5
  jobId: number;
5
6
  ratingType: RatingTypeEnum;
6
7
  reviewerComment?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.587",
3
+ "version": "1.0.590",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",