@experts_hub/shared 1.0.74 → 1.0.75

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.d.mts CHANGED
@@ -393,11 +393,11 @@ declare class CompanyProfile extends BaseEntity {
393
393
  }
394
394
 
395
395
  declare class UpdateCompanyProfileDto {
396
- userId?: number;
397
396
  companyName?: string;
398
397
  bio?: string;
399
- rating?: number;
400
- agreement?: string;
398
+ webSite?: string;
399
+ aboutCompany?: string;
400
+ isServiceAgreementSigned?: boolean;
401
401
  skills?: string[];
402
402
  requiredFreelancer?: string;
403
403
  kindOfHiring?: KindOfHire;
@@ -428,8 +428,9 @@ interface IUpdateClientProfilePayload {
428
428
  userId?: number;
429
429
  companyName?: string;
430
430
  bio?: string;
431
- rating?: number;
432
- agreement?: string;
431
+ webSite?: string;
432
+ isServiceAgreementSigned?: boolean;
433
+ aboutCompany: string;
433
434
  skills?: string[];
434
435
  requiredFreelancer?: string;
435
436
  kindOfHiring?: string;
package/dist/index.d.ts CHANGED
@@ -393,11 +393,11 @@ declare class CompanyProfile extends BaseEntity {
393
393
  }
394
394
 
395
395
  declare class UpdateCompanyProfileDto {
396
- userId?: number;
397
396
  companyName?: string;
398
397
  bio?: string;
399
- rating?: number;
400
- agreement?: string;
398
+ webSite?: string;
399
+ aboutCompany?: string;
400
+ isServiceAgreementSigned?: boolean;
401
401
  skills?: string[];
402
402
  requiredFreelancer?: string;
403
403
  kindOfHiring?: KindOfHire;
@@ -428,8 +428,9 @@ interface IUpdateClientProfilePayload {
428
428
  userId?: number;
429
429
  companyName?: string;
430
430
  bio?: string;
431
- rating?: number;
432
- agreement?: string;
431
+ webSite?: string;
432
+ isServiceAgreementSigned?: boolean;
433
+ aboutCompany: string;
433
434
  skills?: string[];
434
435
  requiredFreelancer?: string;
435
436
  kindOfHiring?: string;
package/dist/index.js CHANGED
@@ -957,9 +957,6 @@ CompanyProfile = __decorateClass([
957
957
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
958
958
  var UpdateCompanyProfileDto = class {
959
959
  };
960
- __decorateClass([
961
- (0, import_class_validator16.IsNumber)({}, { message: "User ID must be a number." })
962
- ], UpdateCompanyProfileDto.prototype, "userId", 2);
963
960
  __decorateClass([
964
961
  (0, import_class_validator16.IsString)({ message: "Company name must be a string." })
965
962
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
@@ -969,11 +966,15 @@ __decorateClass([
969
966
  ], UpdateCompanyProfileDto.prototype, "bio", 2);
970
967
  __decorateClass([
971
968
  (0, import_class_validator16.IsOptional)(),
972
- (0, import_class_validator16.IsNumber)({}, { message: "Rating must be a numeric value." })
973
- ], UpdateCompanyProfileDto.prototype, "rating", 2);
969
+ (0, import_class_validator16.IsString)({ message: "Company website url must be a string." })
970
+ ], UpdateCompanyProfileDto.prototype, "webSite", 2);
971
+ __decorateClass([
972
+ (0, import_class_validator16.IsOptional)(),
973
+ (0, import_class_validator16.IsString)({ message: "About company must be a string." })
974
+ ], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
974
975
  __decorateClass([
975
- (0, import_class_validator16.IsString)({ message: "Agreement must be a string (e.g., a file URL or path)." })
976
- ], UpdateCompanyProfileDto.prototype, "agreement", 2);
976
+ (0, import_class_validator16.IsBoolean)({ message: "Service agreement must be boolean" })
977
+ ], UpdateCompanyProfileDto.prototype, "isServiceAgreementSigned", 2);
977
978
  __decorateClass([
978
979
  (0, import_class_validator16.IsOptional)(),
979
980
  (0, import_class_validator16.IsArray)({ message: "Skills must be an array of strings." }),
package/dist/index.mjs CHANGED
@@ -416,8 +416,8 @@ import {
416
416
  IsEnum,
417
417
  IsOptional as IsOptional4,
418
418
  IsString as IsString9,
419
- IsNumber,
420
- IsArray
419
+ IsArray,
420
+ IsBoolean as IsBoolean4
421
421
  } from "class-validator";
422
422
 
423
423
  // src/entities/company-profile.entity.ts
@@ -980,9 +980,6 @@ CompanyProfile = __decorateClass([
980
980
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
981
981
  var UpdateCompanyProfileDto = class {
982
982
  };
983
- __decorateClass([
984
- IsNumber({}, { message: "User ID must be a number." })
985
- ], UpdateCompanyProfileDto.prototype, "userId", 2);
986
983
  __decorateClass([
987
984
  IsString9({ message: "Company name must be a string." })
988
985
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
@@ -992,11 +989,15 @@ __decorateClass([
992
989
  ], UpdateCompanyProfileDto.prototype, "bio", 2);
993
990
  __decorateClass([
994
991
  IsOptional4(),
995
- IsNumber({}, { message: "Rating must be a numeric value." })
996
- ], UpdateCompanyProfileDto.prototype, "rating", 2);
992
+ IsString9({ message: "Company website url must be a string." })
993
+ ], UpdateCompanyProfileDto.prototype, "webSite", 2);
997
994
  __decorateClass([
998
- IsString9({ message: "Agreement must be a string (e.g., a file URL or path)." })
999
- ], UpdateCompanyProfileDto.prototype, "agreement", 2);
995
+ IsOptional4(),
996
+ IsString9({ message: "About company must be a string." })
997
+ ], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
998
+ __decorateClass([
999
+ IsBoolean4({ message: "Service agreement must be boolean" })
1000
+ ], UpdateCompanyProfileDto.prototype, "isServiceAgreementSigned", 2);
1000
1001
  __decorateClass([
1001
1002
  IsOptional4(),
1002
1003
  IsArray({ message: "Skills must be an array of strings." }),
@@ -1043,7 +1044,7 @@ var QUESTION_PATTERN = {
1043
1044
  import {
1044
1045
  IsNotEmpty as IsNotEmpty15,
1045
1046
  IsOptional as IsOptional5,
1046
- IsBoolean as IsBoolean4
1047
+ IsBoolean as IsBoolean5
1047
1048
  } from "class-validator";
1048
1049
  var CreateQuestionDto = class {
1049
1050
  };
@@ -1061,7 +1062,7 @@ __decorateClass([
1061
1062
  ], CreateQuestionDto.prototype, "options", 2);
1062
1063
  __decorateClass([
1063
1064
  IsOptional5(),
1064
- IsBoolean4({ message: "Whether the question status active" })
1065
+ IsBoolean5({ message: "Whether the question status active" })
1065
1066
  ], CreateQuestionDto.prototype, "isActive", 2);
1066
1067
 
1067
1068
  // src/modules/job/pattern/pattern.ts
@@ -17,8 +17,9 @@ export interface IUpdateClientProfilePayload {
17
17
  userId?: number;
18
18
  companyName?: string;
19
19
  bio?: string;
20
- rating?: number;
21
- agreement?: string;
20
+ webSite?: string;
21
+ isServiceAgreementSigned?: boolean;
22
+ aboutCompany: string;
22
23
  skills?: string[];
23
24
  requiredFreelancer?: string;
24
25
  kindOfHiring?: string;
@@ -1,10 +1,10 @@
1
1
  import { KindOfHire, ModeOfHire, FromUsOn } from '../../../../entities/company-profile.entity';
2
2
  export declare class UpdateCompanyProfileDto {
3
- userId?: number;
4
3
  companyName?: string;
5
4
  bio?: string;
6
- rating?: number;
7
- agreement?: string;
5
+ webSite?: string;
6
+ aboutCompany?: string;
7
+ isServiceAgreementSigned?: boolean;
8
8
  skills?: string[];
9
9
  requiredFreelancer?: string;
10
10
  kindOfHiring?: KindOfHire;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.74",
3
+ "version": "1.0.75",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",