@experts_hub/shared 1.0.589 → 1.0.591

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
  }
@@ -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
  }
@@ -42,6 +42,7 @@ import { Hiring } from "./hiring.entity";
42
42
  import { FreelancerAssessmentRequest } from "./freelancer-assessment-request.entity";
43
43
  import { AiInterviewRescheduleRequest } from "./ai-interview-reschedule-request.entity";
44
44
  export declare enum AccountType {
45
+ SUPER_ADMIN = "SUPER_ADMIN",
45
46
  ADMIN = "ADMIN",
46
47
  SUB_ADMIN = "SUB_ADMIN",
47
48
  CLIENT = "CLIENT",
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 {
@@ -2284,6 +2286,7 @@ declare class FreelancerAssessmentRequest extends BaseEntity {
2284
2286
  }
2285
2287
 
2286
2288
  declare enum AccountType {
2289
+ SUPER_ADMIN = "SUPER_ADMIN",
2287
2290
  ADMIN = "ADMIN",
2288
2291
  SUB_ADMIN = "SUB_ADMIN",
2289
2292
  CLIENT = "CLIENT",
@@ -2419,6 +2422,7 @@ declare class Rating extends BaseEntity {
2419
2422
 
2420
2423
  declare class CreateRatingDto {
2421
2424
  revieweeId: number;
2425
+ reviewerId: number;
2422
2426
  jobId: number;
2423
2427
  ratingType: RatingTypeEnum;
2424
2428
  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 {
@@ -2284,6 +2286,7 @@ declare class FreelancerAssessmentRequest extends BaseEntity {
2284
2286
  }
2285
2287
 
2286
2288
  declare enum AccountType {
2289
+ SUPER_ADMIN = "SUPER_ADMIN",
2287
2290
  ADMIN = "ADMIN",
2288
2291
  SUB_ADMIN = "SUB_ADMIN",
2289
2292
  CLIENT = "CLIENT",
@@ -2419,6 +2422,7 @@ declare class Rating extends BaseEntity {
2419
2422
 
2420
2423
  declare class CreateRatingDto {
2421
2424
  revieweeId: number;
2425
+ reviewerId: number;
2422
2426
  jobId: number;
2423
2427
  ratingType: RatingTypeEnum;
2424
2428
  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);
@@ -6632,6 +6643,7 @@ FreelancerAssessmentRequest = __decorateClass([
6632
6643
 
6633
6644
  // src/entities/user.entity.ts
6634
6645
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
6646
+ AccountType2["SUPER_ADMIN"] = "SUPER_ADMIN";
6635
6647
  AccountType2["ADMIN"] = "ADMIN";
6636
6648
  AccountType2["SUB_ADMIN"] = "SUB_ADMIN";
6637
6649
  AccountType2["CLIENT"] = "CLIENT";
@@ -7097,6 +7109,10 @@ __decorateClass([
7097
7109
  (0, import_class_validator62.IsInt)({ message: "Reviewee ID must be a valid integer" }),
7098
7110
  (0, import_class_validator62.IsNotEmpty)({ message: "Reviewee ID is required" })
7099
7111
  ], CreateRatingDto.prototype, "revieweeId", 2);
7112
+ __decorateClass([
7113
+ (0, import_class_validator62.IsInt)({ message: "Reviewer ID must be a valid integer" }),
7114
+ (0, import_class_validator62.IsNotEmpty)({ message: "Reviewer ID is required" })
7115
+ ], CreateRatingDto.prototype, "reviewerId", 2);
7100
7116
  __decorateClass([
7101
7117
  (0, import_class_validator62.IsInt)({ message: "Job ID must be a valid integer" }),
7102
7118
  (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);
@@ -6588,6 +6599,7 @@ FreelancerAssessmentRequest = __decorateClass([
6588
6599
 
6589
6600
  // src/entities/user.entity.ts
6590
6601
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
6602
+ AccountType2["SUPER_ADMIN"] = "SUPER_ADMIN";
6591
6603
  AccountType2["ADMIN"] = "ADMIN";
6592
6604
  AccountType2["SUB_ADMIN"] = "SUB_ADMIN";
6593
6605
  AccountType2["CLIENT"] = "CLIENT";
@@ -7053,6 +7065,10 @@ __decorateClass([
7053
7065
  IsInt2({ message: "Reviewee ID must be a valid integer" }),
7054
7066
  IsNotEmpty51({ message: "Reviewee ID is required" })
7055
7067
  ], CreateRatingDto.prototype, "revieweeId", 2);
7068
+ __decorateClass([
7069
+ IsInt2({ message: "Reviewer ID must be a valid integer" }),
7070
+ IsNotEmpty51({ message: "Reviewer ID is required" })
7071
+ ], CreateRatingDto.prototype, "reviewerId", 2);
7056
7072
  __decorateClass([
7057
7073
  IsInt2({ message: "Job ID must be a valid integer" }),
7058
7074
  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.589",
3
+ "version": "1.0.591",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",