@experts_hub/shared 1.0.78 → 1.0.79

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
@@ -86,11 +86,6 @@ declare class ClientCreateAccountDto {
86
86
  confirmPassword: string;
87
87
  }
88
88
 
89
- declare class FreelancerChangePasswordDto {
90
- oldPassword: string;
91
- newPassword: string;
92
- }
93
-
94
89
  declare const RESUME_PARSER_PATTERN: {
95
90
  handleResumeParsing: string;
96
91
  };
@@ -487,6 +482,16 @@ declare const JOB_ROLE_PATTERN: {
487
482
  fetchJobRolesForDropdown: string;
488
483
  };
489
484
 
485
+ declare const PROFILE_PATTERN: {
486
+ fetchFreelancerProfile: string;
487
+ changeFreelancerPassword: string;
488
+ };
489
+
490
+ declare class FreelancerChangePasswordDto {
491
+ oldPassword: string;
492
+ newPassword: string;
493
+ }
494
+
490
495
  declare const UserTCPAdapter: () => MicroserviceOptions;
491
496
 
492
497
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -519,4 +524,4 @@ declare class JobRoles extends BaseEntity {
519
524
  isActive: boolean;
520
525
  }
521
526
 
522
- 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 };
527
+ 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, PROFILE_PATTERN, 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
@@ -86,11 +86,6 @@ declare class ClientCreateAccountDto {
86
86
  confirmPassword: string;
87
87
  }
88
88
 
89
- declare class FreelancerChangePasswordDto {
90
- oldPassword: string;
91
- newPassword: string;
92
- }
93
-
94
89
  declare const RESUME_PARSER_PATTERN: {
95
90
  handleResumeParsing: string;
96
91
  };
@@ -487,6 +482,16 @@ declare const JOB_ROLE_PATTERN: {
487
482
  fetchJobRolesForDropdown: string;
488
483
  };
489
484
 
485
+ declare const PROFILE_PATTERN: {
486
+ fetchFreelancerProfile: string;
487
+ changeFreelancerPassword: string;
488
+ };
489
+
490
+ declare class FreelancerChangePasswordDto {
491
+ oldPassword: string;
492
+ newPassword: string;
493
+ }
494
+
490
495
  declare const UserTCPAdapter: () => MicroserviceOptions;
491
496
 
492
497
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -519,4 +524,4 @@ declare class JobRoles extends BaseEntity {
519
524
  isActive: boolean;
520
525
  }
521
526
 
522
- 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 };
527
+ 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, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -61,6 +61,7 @@ __export(index_exports, {
61
61
  ONBOARDING_PATTERN: () => ONBOARDING_PATTERN,
62
62
  OTP_PATTERN: () => OTP_PATTERN,
63
63
  Otp: () => Otp,
64
+ PROFILE_PATTERN: () => PROFILE_PATTERN,
64
65
  QUESTION_PATTERN: () => QUESTION_PATTERN,
65
66
  Question: () => Question,
66
67
  QuestionFor: () => QuestionFor,
@@ -322,24 +323,6 @@ __decorateClass([
322
323
  Match("password", { message: "Passwords do not match" })
323
324
  ], ClientCreateAccountDto.prototype, "confirmPassword", 2);
324
325
 
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
-
343
326
  // src/modules/resume-parser/pattern/pattern.ts
344
327
  var RESUME_PARSER_PATTERN = {
345
328
  handleResumeParsing: "handle.resume.parsing"
@@ -358,75 +341,75 @@ var SUBADMIN_PATTERN = {
358
341
  };
359
342
 
360
343
  // src/modules/user/subadmin/dto/create-subadmin.dto.ts
361
- var import_class_validator13 = require("class-validator");
344
+ var import_class_validator12 = require("class-validator");
362
345
  var CreateSubAdminDto = class {
363
346
  };
364
347
  __decorateClass([
365
- (0, import_class_validator13.IsNotEmpty)({ message: "Please enter unique id." })
348
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter unique id." })
366
349
  ], CreateSubAdminDto.prototype, "uniqueId", 2);
367
350
  __decorateClass([
368
- (0, import_class_validator13.IsNotEmpty)({ message: "Please enter username." })
351
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter username." })
369
352
  ], CreateSubAdminDto.prototype, "userName", 2);
370
353
  __decorateClass([
371
- (0, import_class_validator13.IsNotEmpty)({ message: "Please enter first name." })
354
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter first name." })
372
355
  ], CreateSubAdminDto.prototype, "firstName", 2);
373
356
  __decorateClass([
374
- (0, import_class_validator13.IsNotEmpty)({ message: "Please enter last name." })
357
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter last name." })
375
358
  ], CreateSubAdminDto.prototype, "lastName", 2);
376
359
  __decorateClass([
377
- (0, import_class_validator13.IsNotEmpty)({ message: "Please enter email." })
360
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter email." })
378
361
  ], CreateSubAdminDto.prototype, "email", 2);
379
362
  __decorateClass([
380
- (0, import_class_validator13.IsNotEmpty)({ message: "Please enter mobile number." })
363
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter mobile number." })
381
364
  ], CreateSubAdminDto.prototype, "mobile", 2);
382
365
  __decorateClass([
383
- (0, import_class_validator13.IsNotEmpty)({ message: "Please enter the password." })
366
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter the password." })
384
367
  ], CreateSubAdminDto.prototype, "password", 2);
385
368
  __decorateClass([
386
- (0, import_class_validator13.IsNotEmpty)({ message: "Please enter account type." })
369
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter account type." })
387
370
  ], CreateSubAdminDto.prototype, "accountType", 2);
388
371
  __decorateClass([
389
- (0, import_class_validator13.IsNotEmpty)({ message: "Please enter account status." })
372
+ (0, import_class_validator12.IsNotEmpty)({ message: "Please enter account status." })
390
373
  ], CreateSubAdminDto.prototype, "accountStatus", 2);
391
374
 
392
375
  // src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
393
- var import_class_validator14 = require("class-validator");
376
+ var import_class_validator13 = require("class-validator");
394
377
  var UpdateSubAdminAccountStatusDto = class {
395
378
  };
396
379
  __decorateClass([
397
- (0, import_class_validator14.IsString)()
380
+ (0, import_class_validator13.IsString)()
398
381
  ], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
399
382
 
400
383
  // src/modules/user/subadmin/dto/update-subadmin.dto.ts
401
- var import_class_validator15 = require("class-validator");
384
+ var import_class_validator14 = require("class-validator");
402
385
  var UpdateSubAdminDto = class {
403
386
  };
404
387
  __decorateClass([
405
- (0, import_class_validator15.IsNotEmpty)({ message: "Please enter unique id." })
388
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter unique id." })
406
389
  ], UpdateSubAdminDto.prototype, "uniqueId", 2);
407
390
  __decorateClass([
408
- (0, import_class_validator15.IsNotEmpty)({ message: "Please enter username." })
391
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter username." })
409
392
  ], UpdateSubAdminDto.prototype, "userName", 2);
410
393
  __decorateClass([
411
- (0, import_class_validator15.IsNotEmpty)({ message: "Please enter first name." })
394
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter first name." })
412
395
  ], UpdateSubAdminDto.prototype, "firstName", 2);
413
396
  __decorateClass([
414
- (0, import_class_validator15.IsNotEmpty)({ message: "Please enter last name." })
397
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter last name." })
415
398
  ], UpdateSubAdminDto.prototype, "lastName", 2);
416
399
  __decorateClass([
417
- (0, import_class_validator15.IsNotEmpty)({ message: "Please enter email." })
400
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter email." })
418
401
  ], UpdateSubAdminDto.prototype, "email", 2);
419
402
  __decorateClass([
420
- (0, import_class_validator15.IsNotEmpty)({ message: "Please enter mobile number." })
403
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter mobile number." })
421
404
  ], UpdateSubAdminDto.prototype, "mobile", 2);
422
405
  __decorateClass([
423
- (0, import_class_validator15.IsNotEmpty)({ message: "Please enter the password." })
406
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter the password." })
424
407
  ], UpdateSubAdminDto.prototype, "password", 2);
425
408
  __decorateClass([
426
- (0, import_class_validator15.IsNotEmpty)({ message: "Please enter account type." })
409
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter account type." })
427
410
  ], UpdateSubAdminDto.prototype, "accountType", 2);
428
411
  __decorateClass([
429
- (0, import_class_validator15.IsNotEmpty)({ message: "Please enter account status." })
412
+ (0, import_class_validator14.IsNotEmpty)({ message: "Please enter account status." })
430
413
  ], UpdateSubAdminDto.prototype, "accountStatus", 2);
431
414
 
432
415
  // src/modules/user/client-profile/pattern/pattern.ts
@@ -437,7 +420,7 @@ var CLIENT_PROFILE_PATTERN = {
437
420
  };
438
421
 
439
422
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
440
- var import_class_validator16 = require("class-validator");
423
+ var import_class_validator15 = require("class-validator");
441
424
 
442
425
  // src/entities/company-profile.entity.ts
443
426
  var import_typeorm8 = require("typeorm");
@@ -964,55 +947,55 @@ CompanyProfile = __decorateClass([
964
947
  var UpdateCompanyProfileDto = class {
965
948
  };
966
949
  __decorateClass([
967
- (0, import_class_validator16.IsString)({ message: "Company name must be a string." })
950
+ (0, import_class_validator15.IsString)({ message: "Company name must be a string." })
968
951
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
969
952
  __decorateClass([
970
- (0, import_class_validator16.IsOptional)(),
971
- (0, import_class_validator16.IsString)({ message: "Company bio must be a string." })
953
+ (0, import_class_validator15.IsOptional)(),
954
+ (0, import_class_validator15.IsString)({ message: "Company bio must be a string." })
972
955
  ], UpdateCompanyProfileDto.prototype, "bio", 2);
973
956
  __decorateClass([
974
- (0, import_class_validator16.IsOptional)(),
975
- (0, import_class_validator16.IsString)({ message: "Company website url must be a string." })
957
+ (0, import_class_validator15.IsOptional)(),
958
+ (0, import_class_validator15.IsString)({ message: "Company website url must be a string." })
976
959
  ], UpdateCompanyProfileDto.prototype, "webSite", 2);
977
960
  __decorateClass([
978
- (0, import_class_validator16.IsOptional)(),
979
- (0, import_class_validator16.IsString)({ message: "About company must be a string." })
961
+ (0, import_class_validator15.IsOptional)(),
962
+ (0, import_class_validator15.IsString)({ message: "About company must be a string." })
980
963
  ], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
981
964
  __decorateClass([
982
- (0, import_class_validator16.IsBoolean)({ message: "Service agreement must be boolean" })
965
+ (0, import_class_validator15.IsBoolean)({ message: "Service agreement must be boolean" })
983
966
  ], UpdateCompanyProfileDto.prototype, "isServiceAgreementSigned", 2);
984
967
  __decorateClass([
985
- (0, import_class_validator16.IsOptional)(),
986
- (0, import_class_validator16.IsString)({ message: "Company address must be a string." })
968
+ (0, import_class_validator15.IsOptional)(),
969
+ (0, import_class_validator15.IsString)({ message: "Company address must be a string." })
987
970
  ], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
988
971
  __decorateClass([
989
- (0, import_class_validator16.IsOptional)(),
990
- (0, import_class_validator16.IsString)({ message: "Phone number must be a string." })
972
+ (0, import_class_validator15.IsOptional)(),
973
+ (0, import_class_validator15.IsString)({ message: "Phone number must be a string." })
991
974
  ], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
992
975
  __decorateClass([
993
- (0, import_class_validator16.IsOptional)(),
994
- (0, import_class_validator16.IsArray)({ message: "Skills must be an array of strings." }),
995
- (0, import_class_validator16.IsString)({ each: true, message: "Each skill must be a string." })
976
+ (0, import_class_validator15.IsOptional)(),
977
+ (0, import_class_validator15.IsArray)({ message: "Skills must be an array of strings." }),
978
+ (0, import_class_validator15.IsString)({ each: true, message: "Each skill must be a string." })
996
979
  ], UpdateCompanyProfileDto.prototype, "skills", 2);
997
980
  __decorateClass([
998
- (0, import_class_validator16.IsOptional)(),
999
- (0, import_class_validator16.IsString)({ message: "Required freelancer must be a string." })
981
+ (0, import_class_validator15.IsOptional)(),
982
+ (0, import_class_validator15.IsString)({ message: "Required freelancer must be a string." })
1000
983
  ], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
1001
984
  __decorateClass([
1002
- (0, import_class_validator16.IsOptional)(),
1003
- (0, import_class_validator16.IsEnum)(KindOfHire, {
985
+ (0, import_class_validator15.IsOptional)(),
986
+ (0, import_class_validator15.IsEnum)(KindOfHire, {
1004
987
  message: `Kind of hiring must be one of: ${Object.values(KindOfHire).join(", ")}`
1005
988
  })
1006
989
  ], UpdateCompanyProfileDto.prototype, "kindOfHiring", 2);
1007
990
  __decorateClass([
1008
- (0, import_class_validator16.IsOptional)(),
1009
- (0, import_class_validator16.IsEnum)(ModeOfHire, {
991
+ (0, import_class_validator15.IsOptional)(),
992
+ (0, import_class_validator15.IsEnum)(ModeOfHire, {
1010
993
  message: `Mode of hire must be one of: ${Object.values(ModeOfHire).join(", ")}`
1011
994
  })
1012
995
  ], UpdateCompanyProfileDto.prototype, "modeOfHire", 2);
1013
996
  __decorateClass([
1014
- (0, import_class_validator16.IsOptional)(),
1015
- (0, import_class_validator16.IsEnum)(FromUsOn, {
997
+ (0, import_class_validator15.IsOptional)(),
998
+ (0, import_class_validator15.IsEnum)(FromUsOn, {
1016
999
  message: `Found us on must be one of: ${Object.values(FromUsOn).join(", ")}`
1017
1000
  })
1018
1001
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
@@ -1023,24 +1006,24 @@ var QUESTION_PATTERN = {
1023
1006
  };
1024
1007
 
1025
1008
  // src/modules/question/dto/create-question.dto.ts
1026
- var import_class_validator17 = require("class-validator");
1009
+ var import_class_validator16 = require("class-validator");
1027
1010
  var CreateQuestionDto = class {
1028
1011
  };
1029
1012
  __decorateClass([
1030
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter unique id." })
1013
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter unique id." })
1031
1014
  ], CreateQuestionDto.prototype, "questionId", 2);
1032
1015
  __decorateClass([
1033
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter question." })
1016
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter question." })
1034
1017
  ], CreateQuestionDto.prototype, "question", 2);
1035
1018
  __decorateClass([
1036
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter for whom the question is." })
1019
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter for whom the question is." })
1037
1020
  ], CreateQuestionDto.prototype, "questionFor", 2);
1038
1021
  __decorateClass([
1039
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter options." })
1022
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter options." })
1040
1023
  ], CreateQuestionDto.prototype, "options", 2);
1041
1024
  __decorateClass([
1042
- (0, import_class_validator17.IsOptional)(),
1043
- (0, import_class_validator17.IsBoolean)({ message: "Whether the question status active" })
1025
+ (0, import_class_validator16.IsOptional)(),
1026
+ (0, import_class_validator16.IsBoolean)({ message: "Whether the question status active" })
1044
1027
  ], CreateQuestionDto.prototype, "isActive", 2);
1045
1028
 
1046
1029
  // src/modules/job/pattern/pattern.ts
@@ -1048,6 +1031,30 @@ var JOB_ROLE_PATTERN = {
1048
1031
  fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
1049
1032
  };
1050
1033
 
1034
+ // src/modules/profile/pattern/pattern.ts
1035
+ var PROFILE_PATTERN = {
1036
+ fetchFreelancerProfile: "fetch.freelancer.profile",
1037
+ changeFreelancerPassword: "change.freelancer.password"
1038
+ };
1039
+
1040
+ // src/modules/profile/dto/freelancer-change-password.dto.ts
1041
+ var import_class_validator17 = require("class-validator");
1042
+ var FreelancerChangePasswordDto = class {
1043
+ };
1044
+ __decorateClass([
1045
+ (0, import_class_validator17.IsNotEmpty)({ message: "Please enter Old Password." }),
1046
+ (0, import_class_validator17.IsString)()
1047
+ ], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
1048
+ __decorateClass([
1049
+ (0, import_class_validator17.IsNotEmpty)({ message: "Please enter New Password." }),
1050
+ (0, import_class_validator17.IsString)(),
1051
+ (0, import_class_validator17.MinLength)(6),
1052
+ (0, import_class_validator17.MaxLength)(32),
1053
+ (0, import_class_validator17.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1054
+ message: "New Password must include letters, numbers and symbols."
1055
+ })
1056
+ ], FreelancerChangePasswordDto.prototype, "newPassword", 2);
1057
+
1051
1058
  // src/adapters/tcp/user.tcp.adapter.ts
1052
1059
  var import_dotenv = require("dotenv");
1053
1060
  var import_microservices = require("@nestjs/microservices");
@@ -1283,6 +1290,7 @@ JobRoles = __decorateClass([
1283
1290
  ONBOARDING_PATTERN,
1284
1291
  OTP_PATTERN,
1285
1292
  Otp,
1293
+ PROFILE_PATTERN,
1286
1294
  QUESTION_PATTERN,
1287
1295
  Question,
1288
1296
  QuestionFor,
package/dist/index.mjs CHANGED
@@ -290,30 +290,6 @@ __decorateClass([
290
290
  Match("password", { message: "Passwords do not match" })
291
291
  ], ClientCreateAccountDto.prototype, "confirmPassword", 2);
292
292
 
293
- // src/modules/onboarding/dto/freelancer-change-password.dto.ts
294
- import {
295
- IsString as IsString6,
296
- IsNotEmpty as IsNotEmpty11,
297
- MaxLength as MaxLength3,
298
- MinLength as MinLength3,
299
- Matches as Matches3
300
- } from "class-validator";
301
- var FreelancerChangePasswordDto = class {
302
- };
303
- __decorateClass([
304
- IsNotEmpty11({ message: "Please enter Old Password." }),
305
- IsString6()
306
- ], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
307
- __decorateClass([
308
- IsNotEmpty11({ message: "Please enter New Password." }),
309
- IsString6(),
310
- MinLength3(6),
311
- MaxLength3(32),
312
- Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
313
- message: "New Password must include letters, numbers and symbols."
314
- })
315
- ], FreelancerChangePasswordDto.prototype, "newPassword", 2);
316
-
317
293
  // src/modules/resume-parser/pattern/pattern.ts
318
294
  var RESUME_PARSER_PATTERN = {
319
295
  handleResumeParsing: "handle.resume.parsing"
@@ -333,76 +309,76 @@ var SUBADMIN_PATTERN = {
333
309
 
334
310
  // src/modules/user/subadmin/dto/create-subadmin.dto.ts
335
311
  import {
336
- IsNotEmpty as IsNotEmpty12
312
+ IsNotEmpty as IsNotEmpty11
337
313
  } from "class-validator";
338
314
  var CreateSubAdminDto = class {
339
315
  };
340
316
  __decorateClass([
341
- IsNotEmpty12({ message: "Please enter unique id." })
317
+ IsNotEmpty11({ message: "Please enter unique id." })
342
318
  ], CreateSubAdminDto.prototype, "uniqueId", 2);
343
319
  __decorateClass([
344
- IsNotEmpty12({ message: "Please enter username." })
320
+ IsNotEmpty11({ message: "Please enter username." })
345
321
  ], CreateSubAdminDto.prototype, "userName", 2);
346
322
  __decorateClass([
347
- IsNotEmpty12({ message: "Please enter first name." })
323
+ IsNotEmpty11({ message: "Please enter first name." })
348
324
  ], CreateSubAdminDto.prototype, "firstName", 2);
349
325
  __decorateClass([
350
- IsNotEmpty12({ message: "Please enter last name." })
326
+ IsNotEmpty11({ message: "Please enter last name." })
351
327
  ], CreateSubAdminDto.prototype, "lastName", 2);
352
328
  __decorateClass([
353
- IsNotEmpty12({ message: "Please enter email." })
329
+ IsNotEmpty11({ message: "Please enter email." })
354
330
  ], CreateSubAdminDto.prototype, "email", 2);
355
331
  __decorateClass([
356
- IsNotEmpty12({ message: "Please enter mobile number." })
332
+ IsNotEmpty11({ message: "Please enter mobile number." })
357
333
  ], CreateSubAdminDto.prototype, "mobile", 2);
358
334
  __decorateClass([
359
- IsNotEmpty12({ message: "Please enter the password." })
335
+ IsNotEmpty11({ message: "Please enter the password." })
360
336
  ], CreateSubAdminDto.prototype, "password", 2);
361
337
  __decorateClass([
362
- IsNotEmpty12({ message: "Please enter account type." })
338
+ IsNotEmpty11({ message: "Please enter account type." })
363
339
  ], CreateSubAdminDto.prototype, "accountType", 2);
364
340
  __decorateClass([
365
- IsNotEmpty12({ message: "Please enter account status." })
341
+ IsNotEmpty11({ message: "Please enter account status." })
366
342
  ], CreateSubAdminDto.prototype, "accountStatus", 2);
367
343
 
368
344
  // src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
369
- import { IsString as IsString7 } from "class-validator";
345
+ import { IsString as IsString6 } from "class-validator";
370
346
  var UpdateSubAdminAccountStatusDto = class {
371
347
  };
372
348
  __decorateClass([
373
- IsString7()
349
+ IsString6()
374
350
  ], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
375
351
 
376
352
  // src/modules/user/subadmin/dto/update-subadmin.dto.ts
377
- import { IsNotEmpty as IsNotEmpty13 } from "class-validator";
353
+ import { IsNotEmpty as IsNotEmpty12 } from "class-validator";
378
354
  var UpdateSubAdminDto = class {
379
355
  };
380
356
  __decorateClass([
381
- IsNotEmpty13({ message: "Please enter unique id." })
357
+ IsNotEmpty12({ message: "Please enter unique id." })
382
358
  ], UpdateSubAdminDto.prototype, "uniqueId", 2);
383
359
  __decorateClass([
384
- IsNotEmpty13({ message: "Please enter username." })
360
+ IsNotEmpty12({ message: "Please enter username." })
385
361
  ], UpdateSubAdminDto.prototype, "userName", 2);
386
362
  __decorateClass([
387
- IsNotEmpty13({ message: "Please enter first name." })
363
+ IsNotEmpty12({ message: "Please enter first name." })
388
364
  ], UpdateSubAdminDto.prototype, "firstName", 2);
389
365
  __decorateClass([
390
- IsNotEmpty13({ message: "Please enter last name." })
366
+ IsNotEmpty12({ message: "Please enter last name." })
391
367
  ], UpdateSubAdminDto.prototype, "lastName", 2);
392
368
  __decorateClass([
393
- IsNotEmpty13({ message: "Please enter email." })
369
+ IsNotEmpty12({ message: "Please enter email." })
394
370
  ], UpdateSubAdminDto.prototype, "email", 2);
395
371
  __decorateClass([
396
- IsNotEmpty13({ message: "Please enter mobile number." })
372
+ IsNotEmpty12({ message: "Please enter mobile number." })
397
373
  ], UpdateSubAdminDto.prototype, "mobile", 2);
398
374
  __decorateClass([
399
- IsNotEmpty13({ message: "Please enter the password." })
375
+ IsNotEmpty12({ message: "Please enter the password." })
400
376
  ], UpdateSubAdminDto.prototype, "password", 2);
401
377
  __decorateClass([
402
- IsNotEmpty13({ message: "Please enter account type." })
378
+ IsNotEmpty12({ message: "Please enter account type." })
403
379
  ], UpdateSubAdminDto.prototype, "accountType", 2);
404
380
  __decorateClass([
405
- IsNotEmpty13({ message: "Please enter account status." })
381
+ IsNotEmpty12({ message: "Please enter account status." })
406
382
  ], UpdateSubAdminDto.prototype, "accountStatus", 2);
407
383
 
408
384
  // src/modules/user/client-profile/pattern/pattern.ts
@@ -416,7 +392,7 @@ var CLIENT_PROFILE_PATTERN = {
416
392
  import {
417
393
  IsEnum,
418
394
  IsOptional as IsOptional4,
419
- IsString as IsString9,
395
+ IsString as IsString8,
420
396
  IsArray,
421
397
  IsBoolean as IsBoolean4
422
398
  } from "class-validator";
@@ -988,39 +964,39 @@ CompanyProfile = __decorateClass([
988
964
  var UpdateCompanyProfileDto = class {
989
965
  };
990
966
  __decorateClass([
991
- IsString9({ message: "Company name must be a string." })
967
+ IsString8({ message: "Company name must be a string." })
992
968
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
993
969
  __decorateClass([
994
970
  IsOptional4(),
995
- IsString9({ message: "Company bio must be a string." })
971
+ IsString8({ message: "Company bio must be a string." })
996
972
  ], UpdateCompanyProfileDto.prototype, "bio", 2);
997
973
  __decorateClass([
998
974
  IsOptional4(),
999
- IsString9({ message: "Company website url must be a string." })
975
+ IsString8({ message: "Company website url must be a string." })
1000
976
  ], UpdateCompanyProfileDto.prototype, "webSite", 2);
1001
977
  __decorateClass([
1002
978
  IsOptional4(),
1003
- IsString9({ message: "About company must be a string." })
979
+ IsString8({ message: "About company must be a string." })
1004
980
  ], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
1005
981
  __decorateClass([
1006
982
  IsBoolean4({ message: "Service agreement must be boolean" })
1007
983
  ], UpdateCompanyProfileDto.prototype, "isServiceAgreementSigned", 2);
1008
984
  __decorateClass([
1009
985
  IsOptional4(),
1010
- IsString9({ message: "Company address must be a string." })
986
+ IsString8({ message: "Company address must be a string." })
1011
987
  ], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
1012
988
  __decorateClass([
1013
989
  IsOptional4(),
1014
- IsString9({ message: "Phone number must be a string." })
990
+ IsString8({ message: "Phone number must be a string." })
1015
991
  ], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
1016
992
  __decorateClass([
1017
993
  IsOptional4(),
1018
994
  IsArray({ message: "Skills must be an array of strings." }),
1019
- IsString9({ each: true, message: "Each skill must be a string." })
995
+ IsString8({ each: true, message: "Each skill must be a string." })
1020
996
  ], UpdateCompanyProfileDto.prototype, "skills", 2);
1021
997
  __decorateClass([
1022
998
  IsOptional4(),
1023
- IsString9({ message: "Required freelancer must be a string." })
999
+ IsString8({ message: "Required freelancer must be a string." })
1024
1000
  ], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
1025
1001
  __decorateClass([
1026
1002
  IsOptional4(),
@@ -1048,23 +1024,23 @@ var QUESTION_PATTERN = {
1048
1024
 
1049
1025
  // src/modules/question/dto/create-question.dto.ts
1050
1026
  import {
1051
- IsNotEmpty as IsNotEmpty14,
1027
+ IsNotEmpty as IsNotEmpty13,
1052
1028
  IsOptional as IsOptional5,
1053
1029
  IsBoolean as IsBoolean5
1054
1030
  } from "class-validator";
1055
1031
  var CreateQuestionDto = class {
1056
1032
  };
1057
1033
  __decorateClass([
1058
- IsNotEmpty14({ message: "Please enter unique id." })
1034
+ IsNotEmpty13({ message: "Please enter unique id." })
1059
1035
  ], CreateQuestionDto.prototype, "questionId", 2);
1060
1036
  __decorateClass([
1061
- IsNotEmpty14({ message: "Please enter question." })
1037
+ IsNotEmpty13({ message: "Please enter question." })
1062
1038
  ], CreateQuestionDto.prototype, "question", 2);
1063
1039
  __decorateClass([
1064
- IsNotEmpty14({ message: "Please enter for whom the question is." })
1040
+ IsNotEmpty13({ message: "Please enter for whom the question is." })
1065
1041
  ], CreateQuestionDto.prototype, "questionFor", 2);
1066
1042
  __decorateClass([
1067
- IsNotEmpty14({ message: "Please enter options." })
1043
+ IsNotEmpty13({ message: "Please enter options." })
1068
1044
  ], CreateQuestionDto.prototype, "options", 2);
1069
1045
  __decorateClass([
1070
1046
  IsOptional5(),
@@ -1076,6 +1052,36 @@ var JOB_ROLE_PATTERN = {
1076
1052
  fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
1077
1053
  };
1078
1054
 
1055
+ // src/modules/profile/pattern/pattern.ts
1056
+ var PROFILE_PATTERN = {
1057
+ fetchFreelancerProfile: "fetch.freelancer.profile",
1058
+ changeFreelancerPassword: "change.freelancer.password"
1059
+ };
1060
+
1061
+ // src/modules/profile/dto/freelancer-change-password.dto.ts
1062
+ import {
1063
+ IsString as IsString9,
1064
+ IsNotEmpty as IsNotEmpty14,
1065
+ MaxLength as MaxLength4,
1066
+ MinLength as MinLength4,
1067
+ Matches as Matches3
1068
+ } from "class-validator";
1069
+ var FreelancerChangePasswordDto = class {
1070
+ };
1071
+ __decorateClass([
1072
+ IsNotEmpty14({ message: "Please enter Old Password." }),
1073
+ IsString9()
1074
+ ], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
1075
+ __decorateClass([
1076
+ IsNotEmpty14({ message: "Please enter New Password." }),
1077
+ IsString9(),
1078
+ MinLength4(6),
1079
+ MaxLength4(32),
1080
+ Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1081
+ message: "New Password must include letters, numbers and symbols."
1082
+ })
1083
+ ], FreelancerChangePasswordDto.prototype, "newPassword", 2);
1084
+
1079
1085
  // src/adapters/tcp/user.tcp.adapter.ts
1080
1086
  import { config } from "dotenv";
1081
1087
  import { Transport } from "@nestjs/microservices";
@@ -1310,6 +1316,7 @@ export {
1310
1316
  ONBOARDING_PATTERN,
1311
1317
  OTP_PATTERN,
1312
1318
  Otp,
1319
+ PROFILE_PATTERN,
1313
1320
  QUESTION_PATTERN,
1314
1321
  Question,
1315
1322
  QuestionFor,
@@ -6,3 +6,4 @@ export * from './user/subadmin';
6
6
  export * from './user/client-profile';
7
7
  export * from './question';
8
8
  export * from './job';
9
+ export * from './profile';
@@ -5,4 +5,3 @@ 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';
@@ -0,0 +1 @@
1
+ export * from './freelancer-change-password.dto';
@@ -0,0 +1,2 @@
1
+ export * from './pattern/pattern';
2
+ export * from './dto';
@@ -0,0 +1,4 @@
1
+ export declare const PROFILE_PATTERN: {
2
+ fetchFreelancerProfile: string;
3
+ changeFreelancerPassword: string;
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",