@experts_hub/shared 1.0.73 → 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
@@ -85,6 +85,11 @@ declare class ClientCreateAccountDto {
85
85
  confirmPassword: string;
86
86
  }
87
87
 
88
+ declare class FreelancerChangePasswordDto {
89
+ oldPassword: string;
90
+ newPassword: string;
91
+ }
92
+
88
93
  declare const RESUME_PARSER_PATTERN: {
89
94
  handleResumeParsing: string;
90
95
  };
@@ -388,11 +393,11 @@ declare class CompanyProfile extends BaseEntity {
388
393
  }
389
394
 
390
395
  declare class UpdateCompanyProfileDto {
391
- userId?: number;
392
396
  companyName?: string;
393
397
  bio?: string;
394
- rating?: number;
395
- agreement?: string;
398
+ webSite?: string;
399
+ aboutCompany?: string;
400
+ isServiceAgreementSigned?: boolean;
396
401
  skills?: string[];
397
402
  requiredFreelancer?: string;
398
403
  kindOfHiring?: KindOfHire;
@@ -423,8 +428,9 @@ interface IUpdateClientProfilePayload {
423
428
  userId?: number;
424
429
  companyName?: string;
425
430
  bio?: string;
426
- rating?: number;
427
- agreement?: string;
431
+ webSite?: string;
432
+ isServiceAgreementSigned?: boolean;
433
+ aboutCompany: string;
428
434
  skills?: string[];
429
435
  requiredFreelancer?: string;
430
436
  kindOfHiring?: string;
@@ -510,4 +516,4 @@ declare class JobRoles extends BaseEntity {
510
516
  isActive: boolean;
511
517
  }
512
518
 
513
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -85,6 +85,11 @@ declare class ClientCreateAccountDto {
85
85
  confirmPassword: string;
86
86
  }
87
87
 
88
+ declare class FreelancerChangePasswordDto {
89
+ oldPassword: string;
90
+ newPassword: string;
91
+ }
92
+
88
93
  declare const RESUME_PARSER_PATTERN: {
89
94
  handleResumeParsing: string;
90
95
  };
@@ -388,11 +393,11 @@ declare class CompanyProfile extends BaseEntity {
388
393
  }
389
394
 
390
395
  declare class UpdateCompanyProfileDto {
391
- userId?: number;
392
396
  companyName?: string;
393
397
  bio?: string;
394
- rating?: number;
395
- agreement?: string;
398
+ webSite?: string;
399
+ aboutCompany?: string;
400
+ isServiceAgreementSigned?: boolean;
396
401
  skills?: string[];
397
402
  requiredFreelancer?: string;
398
403
  kindOfHiring?: KindOfHire;
@@ -423,8 +428,9 @@ interface IUpdateClientProfilePayload {
423
428
  userId?: number;
424
429
  companyName?: string;
425
430
  bio?: string;
426
- rating?: number;
427
- agreement?: string;
431
+ webSite?: string;
432
+ isServiceAgreementSigned?: boolean;
433
+ aboutCompany: string;
428
434
  skills?: string[];
429
435
  requiredFreelancer?: string;
430
436
  kindOfHiring?: string;
@@ -510,4 +516,4 @@ declare class JobRoles extends BaseEntity {
510
516
  isActive: boolean;
511
517
  }
512
518
 
513
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, 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 };
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 };
package/dist/index.js CHANGED
@@ -37,6 +37,7 @@ __export(index_exports, {
37
37
  CompanyProfile: () => CompanyProfile,
38
38
  CreateQuestionDto: () => CreateQuestionDto,
39
39
  CreateSubAdminDto: () => CreateSubAdminDto,
40
+ FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
40
41
  FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
41
42
  FreelancerDevelopmentPreferenceDto: () => FreelancerDevelopmentPreferenceDto,
42
43
  FreelancerProfile: () => FreelancerProfile,
@@ -321,6 +322,24 @@ __decorateClass([
321
322
  Match("password", { message: "Passwords do not match" })
322
323
  ], ClientCreateAccountDto.prototype, "confirmPassword", 2);
323
324
 
325
+ // src/modules/onboarding/dto/freelancer-change-password.dto.ts
326
+ var import_class_validator12 = require("class-validator");
327
+ var FreelancerChangePasswordDto = class {
328
+ };
329
+ __decorateClass([
330
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter Old Password." }),
331
+ (0, import_class_validator12.IsString)()
332
+ ], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
333
+ __decorateClass([
334
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter New Password." }),
335
+ (0, import_class_validator12.IsString)(),
336
+ (0, import_class_validator12.MinLength)(6),
337
+ (0, import_class_validator12.MaxLength)(32),
338
+ (0, import_class_validator12.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
339
+ message: "New Password must include letters, numbers and symbols."
340
+ })
341
+ ], FreelancerChangePasswordDto.prototype, "newPassword", 2);
342
+
324
343
  // src/modules/resume-parser/pattern/pattern.ts
325
344
  var RESUME_PARSER_PATTERN = {
326
345
  handleResumeParsing: "handle.resume.parsing"
@@ -339,75 +358,75 @@ var SUBADMIN_PATTERN = {
339
358
  };
340
359
 
341
360
  // src/modules/user/subadmin/dto/create-subadmin.dto.ts
342
- var import_class_validator12 = require("class-validator");
361
+ var import_class_validator13 = require("class-validator");
343
362
  var CreateSubAdminDto = class {
344
363
  };
345
364
  __decorateClass([
346
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter unique id." })
365
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter unique id." })
347
366
  ], CreateSubAdminDto.prototype, "uniqueId", 2);
348
367
  __decorateClass([
349
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter username." })
368
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter username." })
350
369
  ], CreateSubAdminDto.prototype, "userName", 2);
351
370
  __decorateClass([
352
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter first name." })
371
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter first name." })
353
372
  ], CreateSubAdminDto.prototype, "firstName", 2);
354
373
  __decorateClass([
355
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter last name." })
374
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter last name." })
356
375
  ], CreateSubAdminDto.prototype, "lastName", 2);
357
376
  __decorateClass([
358
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter email." })
377
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter email." })
359
378
  ], CreateSubAdminDto.prototype, "email", 2);
360
379
  __decorateClass([
361
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter mobile number." })
380
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter mobile number." })
362
381
  ], CreateSubAdminDto.prototype, "mobile", 2);
363
382
  __decorateClass([
364
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter the password." })
383
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter the password." })
365
384
  ], CreateSubAdminDto.prototype, "password", 2);
366
385
  __decorateClass([
367
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter account type." })
386
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter account type." })
368
387
  ], CreateSubAdminDto.prototype, "accountType", 2);
369
388
  __decorateClass([
370
- (0, import_class_validator12.IsNotEmpty)({ message: "Please enter account status." })
389
+ (0, import_class_validator13.IsNotEmpty)({ message: "Please enter account status." })
371
390
  ], CreateSubAdminDto.prototype, "accountStatus", 2);
372
391
 
373
392
  // src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
374
- var import_class_validator13 = require("class-validator");
393
+ var import_class_validator14 = require("class-validator");
375
394
  var UpdateSubAdminAccountStatusDto = class {
376
395
  };
377
396
  __decorateClass([
378
- (0, import_class_validator13.IsString)()
397
+ (0, import_class_validator14.IsString)()
379
398
  ], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
380
399
 
381
400
  // src/modules/user/subadmin/dto/update-subadmin.dto.ts
382
- var import_class_validator14 = require("class-validator");
401
+ var import_class_validator15 = require("class-validator");
383
402
  var UpdateSubAdminDto = class {
384
403
  };
385
404
  __decorateClass([
386
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter unique id." })
405
+ (0, import_class_validator15.IsNotEmpty)({ message: "Please enter unique id." })
387
406
  ], UpdateSubAdminDto.prototype, "uniqueId", 2);
388
407
  __decorateClass([
389
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter username." })
408
+ (0, import_class_validator15.IsNotEmpty)({ message: "Please enter username." })
390
409
  ], UpdateSubAdminDto.prototype, "userName", 2);
391
410
  __decorateClass([
392
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter first name." })
411
+ (0, import_class_validator15.IsNotEmpty)({ message: "Please enter first name." })
393
412
  ], UpdateSubAdminDto.prototype, "firstName", 2);
394
413
  __decorateClass([
395
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter last name." })
414
+ (0, import_class_validator15.IsNotEmpty)({ message: "Please enter last name." })
396
415
  ], UpdateSubAdminDto.prototype, "lastName", 2);
397
416
  __decorateClass([
398
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter email." })
417
+ (0, import_class_validator15.IsNotEmpty)({ message: "Please enter email." })
399
418
  ], UpdateSubAdminDto.prototype, "email", 2);
400
419
  __decorateClass([
401
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter mobile number." })
420
+ (0, import_class_validator15.IsNotEmpty)({ message: "Please enter mobile number." })
402
421
  ], UpdateSubAdminDto.prototype, "mobile", 2);
403
422
  __decorateClass([
404
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter the password." })
423
+ (0, import_class_validator15.IsNotEmpty)({ message: "Please enter the password." })
405
424
  ], UpdateSubAdminDto.prototype, "password", 2);
406
425
  __decorateClass([
407
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter account type." })
426
+ (0, import_class_validator15.IsNotEmpty)({ message: "Please enter account type." })
408
427
  ], UpdateSubAdminDto.prototype, "accountType", 2);
409
428
  __decorateClass([
410
- (0, import_class_validator14.IsNotEmpty)({ message: "Please enter account status." })
429
+ (0, import_class_validator15.IsNotEmpty)({ message: "Please enter account status." })
411
430
  ], UpdateSubAdminDto.prototype, "accountStatus", 2);
412
431
 
413
432
  // src/modules/user/client-profile/pattern/pattern.ts
@@ -418,7 +437,7 @@ var CLIENT_PROFILE_PATTERN = {
418
437
  };
419
438
 
420
439
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
421
- var import_class_validator15 = require("class-validator");
440
+ var import_class_validator16 = require("class-validator");
422
441
 
423
442
  // src/entities/company-profile.entity.ts
424
443
  var import_typeorm8 = require("typeorm");
@@ -939,57 +958,58 @@ CompanyProfile = __decorateClass([
939
958
  var UpdateCompanyProfileDto = class {
940
959
  };
941
960
  __decorateClass([
942
- (0, import_class_validator15.IsNumber)({}, { message: "User ID must be a number." })
943
- ], UpdateCompanyProfileDto.prototype, "userId", 2);
944
- __decorateClass([
945
- (0, import_class_validator15.IsString)({ message: "Company name must be a string." })
961
+ (0, import_class_validator16.IsString)({ message: "Company name must be a string." })
946
962
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
947
963
  __decorateClass([
948
- (0, import_class_validator15.IsOptional)(),
949
- (0, import_class_validator15.IsString)({ message: "Company bio must be a string." })
964
+ (0, import_class_validator16.IsOptional)(),
965
+ (0, import_class_validator16.IsString)({ message: "Company bio must be a string." })
950
966
  ], UpdateCompanyProfileDto.prototype, "bio", 2);
951
967
  __decorateClass([
952
- (0, import_class_validator15.IsOptional)(),
953
- (0, import_class_validator15.IsNumber)({}, { message: "Rating must be a numeric value." })
954
- ], UpdateCompanyProfileDto.prototype, "rating", 2);
968
+ (0, import_class_validator16.IsOptional)(),
969
+ (0, import_class_validator16.IsString)({ message: "Company website url must be a string." })
970
+ ], UpdateCompanyProfileDto.prototype, "webSite", 2);
955
971
  __decorateClass([
956
- (0, import_class_validator15.IsString)({ message: "Agreement must be a string (e.g., a file URL or path)." })
957
- ], UpdateCompanyProfileDto.prototype, "agreement", 2);
972
+ (0, import_class_validator16.IsOptional)(),
973
+ (0, import_class_validator16.IsString)({ message: "About company must be a string." })
974
+ ], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
958
975
  __decorateClass([
959
- (0, import_class_validator15.IsOptional)(),
960
- (0, import_class_validator15.IsArray)({ message: "Skills must be an array of strings." }),
961
- (0, import_class_validator15.IsString)({ each: true, message: "Each skill must be a string." })
976
+ (0, import_class_validator16.IsBoolean)({ message: "Service agreement must be boolean" })
977
+ ], UpdateCompanyProfileDto.prototype, "isServiceAgreementSigned", 2);
978
+ __decorateClass([
979
+ (0, import_class_validator16.IsOptional)(),
980
+ (0, import_class_validator16.IsArray)({ message: "Skills must be an array of strings." }),
981
+ (0, import_class_validator16.IsString)({ each: true, message: "Each skill must be a string." })
962
982
  ], UpdateCompanyProfileDto.prototype, "skills", 2);
963
983
  __decorateClass([
964
- (0, import_class_validator15.IsOptional)(),
965
- (0, import_class_validator15.IsString)({ message: "Required freelancer must be a string." })
984
+ (0, import_class_validator16.IsOptional)(),
985
+ (0, import_class_validator16.IsString)({ message: "Required freelancer must be a string." })
966
986
  ], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
967
987
  __decorateClass([
968
- (0, import_class_validator15.IsOptional)(),
969
- (0, import_class_validator15.IsEnum)(KindOfHire, {
988
+ (0, import_class_validator16.IsOptional)(),
989
+ (0, import_class_validator16.IsEnum)(KindOfHire, {
970
990
  message: `Kind of hiring must be one of: ${Object.values(KindOfHire).join(", ")}`
971
991
  })
972
992
  ], UpdateCompanyProfileDto.prototype, "kindOfHiring", 2);
973
993
  __decorateClass([
974
- (0, import_class_validator15.IsOptional)(),
975
- (0, import_class_validator15.IsEnum)(ModeOfHire, {
994
+ (0, import_class_validator16.IsOptional)(),
995
+ (0, import_class_validator16.IsEnum)(ModeOfHire, {
976
996
  message: `Mode of hire must be one of: ${Object.values(ModeOfHire).join(", ")}`
977
997
  })
978
998
  ], UpdateCompanyProfileDto.prototype, "modeOfHire", 2);
979
999
  __decorateClass([
980
- (0, import_class_validator15.IsOptional)(),
981
- (0, import_class_validator15.IsEnum)(FromUsOn, {
1000
+ (0, import_class_validator16.IsOptional)(),
1001
+ (0, import_class_validator16.IsEnum)(FromUsOn, {
982
1002
  message: `Found us on must be one of: ${Object.values(FromUsOn).join(", ")}`
983
1003
  })
984
1004
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
985
1005
 
986
1006
  // src/modules/user/client-profile/dto/update-client-logo.dto.ts
987
- var import_class_validator16 = require("class-validator");
1007
+ var import_class_validator17 = require("class-validator");
988
1008
  var UpdateCompanyLogoDto = class {
989
1009
  };
990
1010
  __decorateClass([
991
- (0, import_class_validator16.IsNotEmpty)({ message: "Please enter uuid." }),
992
- (0, import_class_validator16.IsUUID)()
1011
+ (0, import_class_validator17.IsNotEmpty)({ message: "Please enter uuid." }),
1012
+ (0, import_class_validator17.IsUUID)()
993
1013
  ], UpdateCompanyLogoDto.prototype, "uuid", 2);
994
1014
 
995
1015
  // src/modules/question/pattern/pattern.ts
@@ -998,24 +1018,24 @@ var QUESTION_PATTERN = {
998
1018
  };
999
1019
 
1000
1020
  // src/modules/question/dto/create-question.dto.ts
1001
- var import_class_validator17 = require("class-validator");
1021
+ var import_class_validator18 = require("class-validator");
1002
1022
  var CreateQuestionDto = class {
1003
1023
  };
1004
1024
  __decorateClass([
1005
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter unique id." })
1025
+ (0, import_class_validator18.IsNotEmpty)({ message: "Please enter unique id." })
1006
1026
  ], CreateQuestionDto.prototype, "questionId", 2);
1007
1027
  __decorateClass([
1008
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter question." })
1028
+ (0, import_class_validator18.IsNotEmpty)({ message: "Please enter question." })
1009
1029
  ], CreateQuestionDto.prototype, "question", 2);
1010
1030
  __decorateClass([
1011
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter for whom the question is." })
1031
+ (0, import_class_validator18.IsNotEmpty)({ message: "Please enter for whom the question is." })
1012
1032
  ], CreateQuestionDto.prototype, "questionFor", 2);
1013
1033
  __decorateClass([
1014
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter options." })
1034
+ (0, import_class_validator18.IsNotEmpty)({ message: "Please enter options." })
1015
1035
  ], CreateQuestionDto.prototype, "options", 2);
1016
1036
  __decorateClass([
1017
- (0, import_class_validator17.IsOptional)(),
1018
- (0, import_class_validator17.IsBoolean)({ message: "Whether the question status active" })
1037
+ (0, import_class_validator18.IsOptional)(),
1038
+ (0, import_class_validator18.IsBoolean)({ message: "Whether the question status active" })
1019
1039
  ], CreateQuestionDto.prototype, "isActive", 2);
1020
1040
 
1021
1041
  // src/modules/job/pattern/pattern.ts
@@ -1234,6 +1254,7 @@ JobRoles = __decorateClass([
1234
1254
  CompanyProfile,
1235
1255
  CreateQuestionDto,
1236
1256
  CreateSubAdminDto,
1257
+ FreelancerChangePasswordDto,
1237
1258
  FreelancerCreateAccountDto,
1238
1259
  FreelancerDevelopmentPreferenceDto,
1239
1260
  FreelancerProfile,
package/dist/index.mjs CHANGED
@@ -289,6 +289,30 @@ __decorateClass([
289
289
  Match("password", { message: "Passwords do not match" })
290
290
  ], ClientCreateAccountDto.prototype, "confirmPassword", 2);
291
291
 
292
+ // src/modules/onboarding/dto/freelancer-change-password.dto.ts
293
+ import {
294
+ IsString as IsString6,
295
+ IsNotEmpty as IsNotEmpty11,
296
+ MaxLength as MaxLength3,
297
+ MinLength as MinLength3,
298
+ Matches as Matches3
299
+ } from "class-validator";
300
+ var FreelancerChangePasswordDto = class {
301
+ };
302
+ __decorateClass([
303
+ IsNotEmpty11({ message: "Please enter Old Password." }),
304
+ IsString6()
305
+ ], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
306
+ __decorateClass([
307
+ IsNotEmpty11({ message: "Please enter New Password." }),
308
+ IsString6(),
309
+ MinLength3(6),
310
+ MaxLength3(32),
311
+ Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
312
+ message: "New Password must include letters, numbers and symbols."
313
+ })
314
+ ], FreelancerChangePasswordDto.prototype, "newPassword", 2);
315
+
292
316
  // src/modules/resume-parser/pattern/pattern.ts
293
317
  var RESUME_PARSER_PATTERN = {
294
318
  handleResumeParsing: "handle.resume.parsing"
@@ -308,76 +332,76 @@ var SUBADMIN_PATTERN = {
308
332
 
309
333
  // src/modules/user/subadmin/dto/create-subadmin.dto.ts
310
334
  import {
311
- IsNotEmpty as IsNotEmpty11
335
+ IsNotEmpty as IsNotEmpty12
312
336
  } from "class-validator";
313
337
  var CreateSubAdminDto = class {
314
338
  };
315
339
  __decorateClass([
316
- IsNotEmpty11({ message: "Please enter unique id." })
340
+ IsNotEmpty12({ message: "Please enter unique id." })
317
341
  ], CreateSubAdminDto.prototype, "uniqueId", 2);
318
342
  __decorateClass([
319
- IsNotEmpty11({ message: "Please enter username." })
343
+ IsNotEmpty12({ message: "Please enter username." })
320
344
  ], CreateSubAdminDto.prototype, "userName", 2);
321
345
  __decorateClass([
322
- IsNotEmpty11({ message: "Please enter first name." })
346
+ IsNotEmpty12({ message: "Please enter first name." })
323
347
  ], CreateSubAdminDto.prototype, "firstName", 2);
324
348
  __decorateClass([
325
- IsNotEmpty11({ message: "Please enter last name." })
349
+ IsNotEmpty12({ message: "Please enter last name." })
326
350
  ], CreateSubAdminDto.prototype, "lastName", 2);
327
351
  __decorateClass([
328
- IsNotEmpty11({ message: "Please enter email." })
352
+ IsNotEmpty12({ message: "Please enter email." })
329
353
  ], CreateSubAdminDto.prototype, "email", 2);
330
354
  __decorateClass([
331
- IsNotEmpty11({ message: "Please enter mobile number." })
355
+ IsNotEmpty12({ message: "Please enter mobile number." })
332
356
  ], CreateSubAdminDto.prototype, "mobile", 2);
333
357
  __decorateClass([
334
- IsNotEmpty11({ message: "Please enter the password." })
358
+ IsNotEmpty12({ message: "Please enter the password." })
335
359
  ], CreateSubAdminDto.prototype, "password", 2);
336
360
  __decorateClass([
337
- IsNotEmpty11({ message: "Please enter account type." })
361
+ IsNotEmpty12({ message: "Please enter account type." })
338
362
  ], CreateSubAdminDto.prototype, "accountType", 2);
339
363
  __decorateClass([
340
- IsNotEmpty11({ message: "Please enter account status." })
364
+ IsNotEmpty12({ message: "Please enter account status." })
341
365
  ], CreateSubAdminDto.prototype, "accountStatus", 2);
342
366
 
343
367
  // src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
344
- import { IsString as IsString6 } from "class-validator";
368
+ import { IsString as IsString7 } from "class-validator";
345
369
  var UpdateSubAdminAccountStatusDto = class {
346
370
  };
347
371
  __decorateClass([
348
- IsString6()
372
+ IsString7()
349
373
  ], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
350
374
 
351
375
  // src/modules/user/subadmin/dto/update-subadmin.dto.ts
352
- import { IsNotEmpty as IsNotEmpty12 } from "class-validator";
376
+ import { IsNotEmpty as IsNotEmpty13 } from "class-validator";
353
377
  var UpdateSubAdminDto = class {
354
378
  };
355
379
  __decorateClass([
356
- IsNotEmpty12({ message: "Please enter unique id." })
380
+ IsNotEmpty13({ message: "Please enter unique id." })
357
381
  ], UpdateSubAdminDto.prototype, "uniqueId", 2);
358
382
  __decorateClass([
359
- IsNotEmpty12({ message: "Please enter username." })
383
+ IsNotEmpty13({ message: "Please enter username." })
360
384
  ], UpdateSubAdminDto.prototype, "userName", 2);
361
385
  __decorateClass([
362
- IsNotEmpty12({ message: "Please enter first name." })
386
+ IsNotEmpty13({ message: "Please enter first name." })
363
387
  ], UpdateSubAdminDto.prototype, "firstName", 2);
364
388
  __decorateClass([
365
- IsNotEmpty12({ message: "Please enter last name." })
389
+ IsNotEmpty13({ message: "Please enter last name." })
366
390
  ], UpdateSubAdminDto.prototype, "lastName", 2);
367
391
  __decorateClass([
368
- IsNotEmpty12({ message: "Please enter email." })
392
+ IsNotEmpty13({ message: "Please enter email." })
369
393
  ], UpdateSubAdminDto.prototype, "email", 2);
370
394
  __decorateClass([
371
- IsNotEmpty12({ message: "Please enter mobile number." })
395
+ IsNotEmpty13({ message: "Please enter mobile number." })
372
396
  ], UpdateSubAdminDto.prototype, "mobile", 2);
373
397
  __decorateClass([
374
- IsNotEmpty12({ message: "Please enter the password." })
398
+ IsNotEmpty13({ message: "Please enter the password." })
375
399
  ], UpdateSubAdminDto.prototype, "password", 2);
376
400
  __decorateClass([
377
- IsNotEmpty12({ message: "Please enter account type." })
401
+ IsNotEmpty13({ message: "Please enter account type." })
378
402
  ], UpdateSubAdminDto.prototype, "accountType", 2);
379
403
  __decorateClass([
380
- IsNotEmpty12({ message: "Please enter account status." })
404
+ IsNotEmpty13({ message: "Please enter account status." })
381
405
  ], UpdateSubAdminDto.prototype, "accountStatus", 2);
382
406
 
383
407
  // src/modules/user/client-profile/pattern/pattern.ts
@@ -391,9 +415,9 @@ var CLIENT_PROFILE_PATTERN = {
391
415
  import {
392
416
  IsEnum,
393
417
  IsOptional as IsOptional4,
394
- IsString as IsString8,
395
- IsNumber,
396
- IsArray
418
+ IsString as IsString9,
419
+ IsArray,
420
+ IsBoolean as IsBoolean4
397
421
  } from "class-validator";
398
422
 
399
423
  // src/entities/company-profile.entity.ts
@@ -957,30 +981,31 @@ CompanyProfile = __decorateClass([
957
981
  var UpdateCompanyProfileDto = class {
958
982
  };
959
983
  __decorateClass([
960
- IsNumber({}, { message: "User ID must be a number." })
961
- ], UpdateCompanyProfileDto.prototype, "userId", 2);
962
- __decorateClass([
963
- IsString8({ message: "Company name must be a string." })
984
+ IsString9({ message: "Company name must be a string." })
964
985
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
965
986
  __decorateClass([
966
987
  IsOptional4(),
967
- IsString8({ message: "Company bio must be a string." })
988
+ IsString9({ message: "Company bio must be a string." })
968
989
  ], UpdateCompanyProfileDto.prototype, "bio", 2);
969
990
  __decorateClass([
970
991
  IsOptional4(),
971
- IsNumber({}, { message: "Rating must be a numeric value." })
972
- ], UpdateCompanyProfileDto.prototype, "rating", 2);
992
+ IsString9({ message: "Company website url must be a string." })
993
+ ], UpdateCompanyProfileDto.prototype, "webSite", 2);
973
994
  __decorateClass([
974
- IsString8({ message: "Agreement must be a string (e.g., a file URL or path)." })
975
- ], 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);
976
1001
  __decorateClass([
977
1002
  IsOptional4(),
978
1003
  IsArray({ message: "Skills must be an array of strings." }),
979
- IsString8({ each: true, message: "Each skill must be a string." })
1004
+ IsString9({ each: true, message: "Each skill must be a string." })
980
1005
  ], UpdateCompanyProfileDto.prototype, "skills", 2);
981
1006
  __decorateClass([
982
1007
  IsOptional4(),
983
- IsString8({ message: "Required freelancer must be a string." })
1008
+ IsString9({ message: "Required freelancer must be a string." })
984
1009
  ], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
985
1010
  __decorateClass([
986
1011
  IsOptional4(),
@@ -1002,11 +1027,11 @@ __decorateClass([
1002
1027
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
1003
1028
 
1004
1029
  // src/modules/user/client-profile/dto/update-client-logo.dto.ts
1005
- import { IsNotEmpty as IsNotEmpty13, IsUUID as IsUUID6 } from "class-validator";
1030
+ import { IsNotEmpty as IsNotEmpty14, IsUUID as IsUUID6 } from "class-validator";
1006
1031
  var UpdateCompanyLogoDto = class {
1007
1032
  };
1008
1033
  __decorateClass([
1009
- IsNotEmpty13({ message: "Please enter uuid." }),
1034
+ IsNotEmpty14({ message: "Please enter uuid." }),
1010
1035
  IsUUID6()
1011
1036
  ], UpdateCompanyLogoDto.prototype, "uuid", 2);
1012
1037
 
@@ -1017,27 +1042,27 @@ var QUESTION_PATTERN = {
1017
1042
 
1018
1043
  // src/modules/question/dto/create-question.dto.ts
1019
1044
  import {
1020
- IsNotEmpty as IsNotEmpty14,
1045
+ IsNotEmpty as IsNotEmpty15,
1021
1046
  IsOptional as IsOptional5,
1022
- IsBoolean as IsBoolean4
1047
+ IsBoolean as IsBoolean5
1023
1048
  } from "class-validator";
1024
1049
  var CreateQuestionDto = class {
1025
1050
  };
1026
1051
  __decorateClass([
1027
- IsNotEmpty14({ message: "Please enter unique id." })
1052
+ IsNotEmpty15({ message: "Please enter unique id." })
1028
1053
  ], CreateQuestionDto.prototype, "questionId", 2);
1029
1054
  __decorateClass([
1030
- IsNotEmpty14({ message: "Please enter question." })
1055
+ IsNotEmpty15({ message: "Please enter question." })
1031
1056
  ], CreateQuestionDto.prototype, "question", 2);
1032
1057
  __decorateClass([
1033
- IsNotEmpty14({ message: "Please enter for whom the question is." })
1058
+ IsNotEmpty15({ message: "Please enter for whom the question is." })
1034
1059
  ], CreateQuestionDto.prototype, "questionFor", 2);
1035
1060
  __decorateClass([
1036
- IsNotEmpty14({ message: "Please enter options." })
1061
+ IsNotEmpty15({ message: "Please enter options." })
1037
1062
  ], CreateQuestionDto.prototype, "options", 2);
1038
1063
  __decorateClass([
1039
1064
  IsOptional5(),
1040
- IsBoolean4({ message: "Whether the question status active" })
1065
+ IsBoolean5({ message: "Whether the question status active" })
1041
1066
  ], CreateQuestionDto.prototype, "isActive", 2);
1042
1067
 
1043
1068
  // src/modules/job/pattern/pattern.ts
@@ -1255,6 +1280,7 @@ export {
1255
1280
  CompanyProfile,
1256
1281
  CreateQuestionDto,
1257
1282
  CreateSubAdminDto,
1283
+ FreelancerChangePasswordDto,
1258
1284
  FreelancerCreateAccountDto,
1259
1285
  FreelancerDevelopmentPreferenceDto,
1260
1286
  FreelancerProfile,
@@ -0,0 +1,4 @@
1
+ export declare class FreelancerChangePasswordDto {
2
+ oldPassword: string;
3
+ newPassword: string;
4
+ }
@@ -5,3 +5,4 @@ export * from './freelancer-profile-question.dto';
5
5
  export * from './freelancer-work-showcase.dto';
6
6
  export * from './client-profile-question.dto';
7
7
  export * from './client-create-account.dto';
8
+ export * from './freelancer-change-password.dto';
@@ -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.73",
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/",