@experts_hub/shared 1.0.70 → 1.0.72

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.
@@ -21,8 +21,9 @@ export declare class CompanyProfile extends BaseEntity {
21
21
  user: User;
22
22
  companyName: string;
23
23
  bio: string;
24
- rating: number;
25
- agreement: string;
24
+ webSite: string;
25
+ aboutCompany: string;
26
+ serviceAgreement: boolean;
26
27
  skills: string[];
27
28
  requiredFreelancer: string;
28
29
  kindOfHiring: KindOfHire;
package/dist/index.d.mts CHANGED
@@ -377,8 +377,9 @@ declare class CompanyProfile extends BaseEntity {
377
377
  user: User;
378
378
  companyName: string;
379
379
  bio: string;
380
- rating: number;
381
- agreement: string;
380
+ webSite: string;
381
+ aboutCompany: string;
382
+ serviceAgreement: boolean;
382
383
  skills: string[];
383
384
  requiredFreelancer: string;
384
385
  kindOfHiring: KindOfHire;
@@ -400,7 +401,7 @@ declare class UpdateCompanyProfileDto {
400
401
  }
401
402
 
402
403
  declare class UpdateCompanyLogoDto {
403
- logo: string;
404
+ uuid: string;
404
405
  }
405
406
 
406
407
  interface IFetchClientProfileQuery {
package/dist/index.d.ts CHANGED
@@ -377,8 +377,9 @@ declare class CompanyProfile extends BaseEntity {
377
377
  user: User;
378
378
  companyName: string;
379
379
  bio: string;
380
- rating: number;
381
- agreement: string;
380
+ webSite: string;
381
+ aboutCompany: string;
382
+ serviceAgreement: boolean;
382
383
  skills: string[];
383
384
  requiredFreelancer: string;
384
385
  kindOfHiring: KindOfHire;
@@ -400,7 +401,7 @@ declare class UpdateCompanyProfileDto {
400
401
  }
401
402
 
402
403
  declare class UpdateCompanyLogoDto {
403
- logo: string;
404
+ uuid: string;
404
405
  }
405
406
 
406
407
  interface IFetchClientProfileQuery {
package/dist/index.js CHANGED
@@ -893,11 +893,14 @@ __decorateClass([
893
893
  (0, import_typeorm8.Column)({ name: "bio", type: "varchar", nullable: true })
894
894
  ], CompanyProfile.prototype, "bio", 2);
895
895
  __decorateClass([
896
- (0, import_typeorm8.Column)({ name: "rating", type: "float", nullable: true })
897
- ], CompanyProfile.prototype, "rating", 2);
896
+ (0, import_typeorm8.Column)({ name: "website", type: "varchar" })
897
+ ], CompanyProfile.prototype, "webSite", 2);
898
898
  __decorateClass([
899
- (0, import_typeorm8.Column)({ name: "agreement", type: "varchar" })
900
- ], CompanyProfile.prototype, "agreement", 2);
899
+ (0, import_typeorm8.Column)({ name: "about_company", type: "varchar" })
900
+ ], CompanyProfile.prototype, "aboutCompany", 2);
901
+ __decorateClass([
902
+ (0, import_typeorm8.Column)({ name: "service_agreement", type: "boolean", default: false })
903
+ ], CompanyProfile.prototype, "serviceAgreement", 2);
901
904
  __decorateClass([
902
905
  (0, import_typeorm8.Column)({ name: "skills", type: "text", nullable: true })
903
906
  ], CompanyProfile.prototype, "skills", 2);
@@ -943,7 +946,7 @@ __decorateClass([
943
946
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
944
947
  __decorateClass([
945
948
  (0, import_class_validator15.IsOptional)(),
946
- (0, import_class_validator15.IsString)({ message: "Bio must be a string." })
949
+ (0, import_class_validator15.IsString)({ message: "Company bio must be a string." })
947
950
  ], UpdateCompanyProfileDto.prototype, "bio", 2);
948
951
  __decorateClass([
949
952
  (0, import_class_validator15.IsOptional)(),
@@ -985,8 +988,9 @@ var import_class_validator16 = require("class-validator");
985
988
  var UpdateCompanyLogoDto = class {
986
989
  };
987
990
  __decorateClass([
988
- (0, import_class_validator16.IsString)({ message: "Logo must be a valid string URL or file path." })
989
- ], UpdateCompanyLogoDto.prototype, "logo", 2);
991
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter uuid." }),
992
+ (0, import_class_validator16.IsUUID)()
993
+ ], UpdateCompanyLogoDto.prototype, "uuid", 2);
990
994
 
991
995
  // src/modules/question/pattern/pattern.ts
992
996
  var QUESTION_PATTERN = {
package/dist/index.mjs CHANGED
@@ -911,11 +911,14 @@ __decorateClass([
911
911
  Column8({ name: "bio", type: "varchar", nullable: true })
912
912
  ], CompanyProfile.prototype, "bio", 2);
913
913
  __decorateClass([
914
- Column8({ name: "rating", type: "float", nullable: true })
915
- ], CompanyProfile.prototype, "rating", 2);
914
+ Column8({ name: "website", type: "varchar" })
915
+ ], CompanyProfile.prototype, "webSite", 2);
916
916
  __decorateClass([
917
- Column8({ name: "agreement", type: "varchar" })
918
- ], CompanyProfile.prototype, "agreement", 2);
917
+ Column8({ name: "about_company", type: "varchar" })
918
+ ], CompanyProfile.prototype, "aboutCompany", 2);
919
+ __decorateClass([
920
+ Column8({ name: "service_agreement", type: "boolean", default: false })
921
+ ], CompanyProfile.prototype, "serviceAgreement", 2);
919
922
  __decorateClass([
920
923
  Column8({ name: "skills", type: "text", nullable: true })
921
924
  ], CompanyProfile.prototype, "skills", 2);
@@ -961,7 +964,7 @@ __decorateClass([
961
964
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
962
965
  __decorateClass([
963
966
  IsOptional4(),
964
- IsString8({ message: "Bio must be a string." })
967
+ IsString8({ message: "Company bio must be a string." })
965
968
  ], UpdateCompanyProfileDto.prototype, "bio", 2);
966
969
  __decorateClass([
967
970
  IsOptional4(),
@@ -999,12 +1002,13 @@ __decorateClass([
999
1002
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
1000
1003
 
1001
1004
  // src/modules/user/client-profile/dto/update-client-logo.dto.ts
1002
- import { IsString as IsString9 } from "class-validator";
1005
+ import { IsNotEmpty as IsNotEmpty13, IsUUID as IsUUID6 } from "class-validator";
1003
1006
  var UpdateCompanyLogoDto = class {
1004
1007
  };
1005
1008
  __decorateClass([
1006
- IsString9({ message: "Logo must be a valid string URL or file path." })
1007
- ], UpdateCompanyLogoDto.prototype, "logo", 2);
1009
+ IsNotEmpty13({ message: "Please enter uuid." }),
1010
+ IsUUID6()
1011
+ ], UpdateCompanyLogoDto.prototype, "uuid", 2);
1008
1012
 
1009
1013
  // src/modules/question/pattern/pattern.ts
1010
1014
  var QUESTION_PATTERN = {
@@ -1013,23 +1017,23 @@ var QUESTION_PATTERN = {
1013
1017
 
1014
1018
  // src/modules/question/dto/create-question.dto.ts
1015
1019
  import {
1016
- IsNotEmpty as IsNotEmpty13,
1020
+ IsNotEmpty as IsNotEmpty14,
1017
1021
  IsOptional as IsOptional5,
1018
1022
  IsBoolean as IsBoolean4
1019
1023
  } from "class-validator";
1020
1024
  var CreateQuestionDto = class {
1021
1025
  };
1022
1026
  __decorateClass([
1023
- IsNotEmpty13({ message: "Please enter unique id." })
1027
+ IsNotEmpty14({ message: "Please enter unique id." })
1024
1028
  ], CreateQuestionDto.prototype, "questionId", 2);
1025
1029
  __decorateClass([
1026
- IsNotEmpty13({ message: "Please enter question." })
1030
+ IsNotEmpty14({ message: "Please enter question." })
1027
1031
  ], CreateQuestionDto.prototype, "question", 2);
1028
1032
  __decorateClass([
1029
- IsNotEmpty13({ message: "Please enter for whom the question is." })
1033
+ IsNotEmpty14({ message: "Please enter for whom the question is." })
1030
1034
  ], CreateQuestionDto.prototype, "questionFor", 2);
1031
1035
  __decorateClass([
1032
- IsNotEmpty13({ message: "Please enter options." })
1036
+ IsNotEmpty14({ message: "Please enter options." })
1033
1037
  ], CreateQuestionDto.prototype, "options", 2);
1034
1038
  __decorateClass([
1035
1039
  IsOptional5(),
@@ -1,3 +1,3 @@
1
1
  export declare class UpdateCompanyLogoDto {
2
- logo: string;
2
+ uuid: string;
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.70",
3
+ "version": "1.0.72",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",