@experts_hub/shared 1.0.75 → 1.0.76

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.
@@ -24,6 +24,8 @@ export declare class CompanyProfile extends BaseEntity {
24
24
  webSite: string;
25
25
  aboutCompany: string;
26
26
  isServiceAgreementSigned: boolean;
27
+ companyAddress: string;
28
+ phoneNumber: string;
27
29
  skills: string[];
28
30
  requiredFreelancer: string;
29
31
  kindOfHiring: KindOfHire;
package/dist/index.d.mts CHANGED
@@ -385,6 +385,8 @@ declare class CompanyProfile extends BaseEntity {
385
385
  webSite: string;
386
386
  aboutCompany: string;
387
387
  isServiceAgreementSigned: boolean;
388
+ companyAddress: string;
389
+ phoneNumber: string;
388
390
  skills: string[];
389
391
  requiredFreelancer: string;
390
392
  kindOfHiring: KindOfHire;
@@ -398,6 +400,8 @@ declare class UpdateCompanyProfileDto {
398
400
  webSite?: string;
399
401
  aboutCompany?: string;
400
402
  isServiceAgreementSigned?: boolean;
403
+ companyAddress?: string;
404
+ phoneNumber?: string;
401
405
  skills?: string[];
402
406
  requiredFreelancer?: string;
403
407
  kindOfHiring?: KindOfHire;
@@ -405,10 +409,6 @@ declare class UpdateCompanyProfileDto {
405
409
  foundUsOn?: FromUsOn;
406
410
  }
407
411
 
408
- declare class UpdateCompanyLogoDto {
409
- uuid: string;
410
- }
411
-
412
412
  interface IFetchClientProfileQuery {
413
413
  page_size?: number;
414
414
  page: number;
@@ -431,6 +431,8 @@ interface IUpdateClientProfilePayload {
431
431
  webSite?: string;
432
432
  isServiceAgreementSigned?: boolean;
433
433
  aboutCompany: string;
434
+ companyAddress: string;
435
+ phoneNumber: string;
434
436
  skills?: string[];
435
437
  requiredFreelancer?: string;
436
438
  kindOfHiring?: string;
@@ -516,4 +518,4 @@ declare class JobRoles extends BaseEntity {
516
518
  isActive: boolean;
517
519
  }
518
520
 
519
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, TypeOfEmployment, UpdateCompanyLogoDto, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
521
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -385,6 +385,8 @@ declare class CompanyProfile extends BaseEntity {
385
385
  webSite: string;
386
386
  aboutCompany: string;
387
387
  isServiceAgreementSigned: boolean;
388
+ companyAddress: string;
389
+ phoneNumber: string;
388
390
  skills: string[];
389
391
  requiredFreelancer: string;
390
392
  kindOfHiring: KindOfHire;
@@ -398,6 +400,8 @@ declare class UpdateCompanyProfileDto {
398
400
  webSite?: string;
399
401
  aboutCompany?: string;
400
402
  isServiceAgreementSigned?: boolean;
403
+ companyAddress?: string;
404
+ phoneNumber?: string;
401
405
  skills?: string[];
402
406
  requiredFreelancer?: string;
403
407
  kindOfHiring?: KindOfHire;
@@ -405,10 +409,6 @@ declare class UpdateCompanyProfileDto {
405
409
  foundUsOn?: FromUsOn;
406
410
  }
407
411
 
408
- declare class UpdateCompanyLogoDto {
409
- uuid: string;
410
- }
411
-
412
412
  interface IFetchClientProfileQuery {
413
413
  page_size?: number;
414
414
  page: number;
@@ -431,6 +431,8 @@ interface IUpdateClientProfilePayload {
431
431
  webSite?: string;
432
432
  isServiceAgreementSigned?: boolean;
433
433
  aboutCompany: string;
434
+ companyAddress: string;
435
+ phoneNumber: string;
434
436
  skills?: string[];
435
437
  requiredFreelancer?: string;
436
438
  kindOfHiring?: string;
@@ -516,4 +518,4 @@ declare class JobRoles extends BaseEntity {
516
518
  isActive: boolean;
517
519
  }
518
520
 
519
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, TypeOfEmployment, UpdateCompanyLogoDto, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
521
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -70,7 +70,6 @@ __export(index_exports, {
70
70
  ResumeParserLog: () => ResumeParserLog,
71
71
  SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
72
72
  TypeOfEmployment: () => TypeOfEmployment,
73
- UpdateCompanyLogoDto: () => UpdateCompanyLogoDto,
74
73
  UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
75
74
  UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
76
75
  UpdateSubAdminDto: () => UpdateSubAdminDto,
@@ -920,6 +919,12 @@ __decorateClass([
920
919
  __decorateClass([
921
920
  (0, import_typeorm8.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
922
921
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
922
+ __decorateClass([
923
+ (0, import_typeorm8.Column)({ name: "company_address", type: "varchar", nullable: true })
924
+ ], CompanyProfile.prototype, "companyAddress", 2);
925
+ __decorateClass([
926
+ (0, import_typeorm8.Column)({ name: "phone_number", type: "varchar", nullable: true })
927
+ ], CompanyProfile.prototype, "phoneNumber", 2);
923
928
  __decorateClass([
924
929
  (0, import_typeorm8.Column)({ name: "skills", type: "text", nullable: true })
925
930
  ], CompanyProfile.prototype, "skills", 2);
@@ -975,6 +980,14 @@ __decorateClass([
975
980
  __decorateClass([
976
981
  (0, import_class_validator16.IsBoolean)({ message: "Service agreement must be boolean" })
977
982
  ], UpdateCompanyProfileDto.prototype, "isServiceAgreementSigned", 2);
983
+ __decorateClass([
984
+ (0, import_class_validator16.IsOptional)(),
985
+ (0, import_class_validator16.IsString)({ message: "Company address must be a string." })
986
+ ], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
987
+ __decorateClass([
988
+ (0, import_class_validator16.IsOptional)(),
989
+ (0, import_class_validator16.IsString)({ message: "Phone number must be a string." })
990
+ ], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
978
991
  __decorateClass([
979
992
  (0, import_class_validator16.IsOptional)(),
980
993
  (0, import_class_validator16.IsArray)({ message: "Skills must be an array of strings." }),
@@ -1003,39 +1016,30 @@ __decorateClass([
1003
1016
  })
1004
1017
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
1005
1018
 
1006
- // src/modules/user/client-profile/dto/update-client-logo.dto.ts
1007
- var import_class_validator17 = require("class-validator");
1008
- var UpdateCompanyLogoDto = class {
1009
- };
1010
- __decorateClass([
1011
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter uuid." }),
1012
- (0, import_class_validator17.IsUUID)()
1013
- ], UpdateCompanyLogoDto.prototype, "uuid", 2);
1014
-
1015
1019
  // src/modules/question/pattern/pattern.ts
1016
1020
  var QUESTION_PATTERN = {
1017
1021
  fetchQuestions: "fetch.questions"
1018
1022
  };
1019
1023
 
1020
1024
  // src/modules/question/dto/create-question.dto.ts
1021
- var import_class_validator18 = require("class-validator");
1025
+ var import_class_validator17 = require("class-validator");
1022
1026
  var CreateQuestionDto = class {
1023
1027
  };
1024
1028
  __decorateClass([
1025
- (0, import_class_validator18.IsNotEmpty)({ message: "Please enter unique id." })
1029
+ (0, import_class_validator17.IsNotEmpty)({ message: "Please enter unique id." })
1026
1030
  ], CreateQuestionDto.prototype, "questionId", 2);
1027
1031
  __decorateClass([
1028
- (0, import_class_validator18.IsNotEmpty)({ message: "Please enter question." })
1032
+ (0, import_class_validator17.IsNotEmpty)({ message: "Please enter question." })
1029
1033
  ], CreateQuestionDto.prototype, "question", 2);
1030
1034
  __decorateClass([
1031
- (0, import_class_validator18.IsNotEmpty)({ message: "Please enter for whom the question is." })
1035
+ (0, import_class_validator17.IsNotEmpty)({ message: "Please enter for whom the question is." })
1032
1036
  ], CreateQuestionDto.prototype, "questionFor", 2);
1033
1037
  __decorateClass([
1034
- (0, import_class_validator18.IsNotEmpty)({ message: "Please enter options." })
1038
+ (0, import_class_validator17.IsNotEmpty)({ message: "Please enter options." })
1035
1039
  ], CreateQuestionDto.prototype, "options", 2);
1036
1040
  __decorateClass([
1037
- (0, import_class_validator18.IsOptional)(),
1038
- (0, import_class_validator18.IsBoolean)({ message: "Whether the question status active" })
1041
+ (0, import_class_validator17.IsOptional)(),
1042
+ (0, import_class_validator17.IsBoolean)({ message: "Whether the question status active" })
1039
1043
  ], CreateQuestionDto.prototype, "isActive", 2);
1040
1044
 
1041
1045
  // src/modules/job/pattern/pattern.ts
@@ -1287,7 +1291,6 @@ JobRoles = __decorateClass([
1287
1291
  ResumeParserLog,
1288
1292
  SUBADMIN_PATTERN,
1289
1293
  TypeOfEmployment,
1290
- UpdateCompanyLogoDto,
1291
1294
  UpdateCompanyProfileDto,
1292
1295
  UpdateSubAdminAccountStatusDto,
1293
1296
  UpdateSubAdminDto,
package/dist/index.mjs CHANGED
@@ -943,6 +943,12 @@ __decorateClass([
943
943
  __decorateClass([
944
944
  Column8({ name: "is_service_aggrement_signed", type: "boolean", default: false })
945
945
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
946
+ __decorateClass([
947
+ Column8({ name: "company_address", type: "varchar", nullable: true })
948
+ ], CompanyProfile.prototype, "companyAddress", 2);
949
+ __decorateClass([
950
+ Column8({ name: "phone_number", type: "varchar", nullable: true })
951
+ ], CompanyProfile.prototype, "phoneNumber", 2);
946
952
  __decorateClass([
947
953
  Column8({ name: "skills", type: "text", nullable: true })
948
954
  ], CompanyProfile.prototype, "skills", 2);
@@ -998,6 +1004,14 @@ __decorateClass([
998
1004
  __decorateClass([
999
1005
  IsBoolean4({ message: "Service agreement must be boolean" })
1000
1006
  ], UpdateCompanyProfileDto.prototype, "isServiceAgreementSigned", 2);
1007
+ __decorateClass([
1008
+ IsOptional4(),
1009
+ IsString9({ message: "Company address must be a string." })
1010
+ ], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
1011
+ __decorateClass([
1012
+ IsOptional4(),
1013
+ IsString9({ message: "Phone number must be a string." })
1014
+ ], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
1001
1015
  __decorateClass([
1002
1016
  IsOptional4(),
1003
1017
  IsArray({ message: "Skills must be an array of strings." }),
@@ -1026,15 +1040,6 @@ __decorateClass([
1026
1040
  })
1027
1041
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
1028
1042
 
1029
- // src/modules/user/client-profile/dto/update-client-logo.dto.ts
1030
- import { IsNotEmpty as IsNotEmpty14, IsUUID as IsUUID6 } from "class-validator";
1031
- var UpdateCompanyLogoDto = class {
1032
- };
1033
- __decorateClass([
1034
- IsNotEmpty14({ message: "Please enter uuid." }),
1035
- IsUUID6()
1036
- ], UpdateCompanyLogoDto.prototype, "uuid", 2);
1037
-
1038
1043
  // src/modules/question/pattern/pattern.ts
1039
1044
  var QUESTION_PATTERN = {
1040
1045
  fetchQuestions: "fetch.questions"
@@ -1042,23 +1047,23 @@ var QUESTION_PATTERN = {
1042
1047
 
1043
1048
  // src/modules/question/dto/create-question.dto.ts
1044
1049
  import {
1045
- IsNotEmpty as IsNotEmpty15,
1050
+ IsNotEmpty as IsNotEmpty14,
1046
1051
  IsOptional as IsOptional5,
1047
1052
  IsBoolean as IsBoolean5
1048
1053
  } from "class-validator";
1049
1054
  var CreateQuestionDto = class {
1050
1055
  };
1051
1056
  __decorateClass([
1052
- IsNotEmpty15({ message: "Please enter unique id." })
1057
+ IsNotEmpty14({ message: "Please enter unique id." })
1053
1058
  ], CreateQuestionDto.prototype, "questionId", 2);
1054
1059
  __decorateClass([
1055
- IsNotEmpty15({ message: "Please enter question." })
1060
+ IsNotEmpty14({ message: "Please enter question." })
1056
1061
  ], CreateQuestionDto.prototype, "question", 2);
1057
1062
  __decorateClass([
1058
- IsNotEmpty15({ message: "Please enter for whom the question is." })
1063
+ IsNotEmpty14({ message: "Please enter for whom the question is." })
1059
1064
  ], CreateQuestionDto.prototype, "questionFor", 2);
1060
1065
  __decorateClass([
1061
- IsNotEmpty15({ message: "Please enter options." })
1066
+ IsNotEmpty14({ message: "Please enter options." })
1062
1067
  ], CreateQuestionDto.prototype, "options", 2);
1063
1068
  __decorateClass([
1064
1069
  IsOptional5(),
@@ -1313,7 +1318,6 @@ export {
1313
1318
  ResumeParserLog,
1314
1319
  SUBADMIN_PATTERN,
1315
1320
  TypeOfEmployment,
1316
- UpdateCompanyLogoDto,
1317
1321
  UpdateCompanyProfileDto,
1318
1322
  UpdateSubAdminAccountStatusDto,
1319
1323
  UpdateSubAdminDto,
@@ -20,6 +20,8 @@ export interface IUpdateClientProfilePayload {
20
20
  webSite?: string;
21
21
  isServiceAgreementSigned?: boolean;
22
22
  aboutCompany: string;
23
+ companyAddress: string;
24
+ phoneNumber: string;
23
25
  skills?: string[];
24
26
  requiredFreelancer?: string;
25
27
  kindOfHiring?: string;
@@ -1,2 +1 @@
1
1
  export * from '../dto/update-client-profile.dto';
2
- export * from '../dto/update-client-logo.dto';
@@ -5,6 +5,8 @@ export declare class UpdateCompanyProfileDto {
5
5
  webSite?: string;
6
6
  aboutCompany?: string;
7
7
  isServiceAgreementSigned?: boolean;
8
+ companyAddress?: string;
9
+ phoneNumber?: string;
8
10
  skills?: string[];
9
11
  requiredFreelancer?: string;
10
12
  kindOfHiring?: KindOfHire;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -1,3 +0,0 @@
1
- export declare class UpdateCompanyLogoDto {
2
- uuid: string;
3
- }