@experts_hub/shared 1.0.73 → 1.0.74

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
  };
@@ -510,4 +515,4 @@ declare class JobRoles extends BaseEntity {
510
515
  isActive: boolean;
511
516
  }
512
517
 
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 };
518
+ 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
  };
@@ -510,4 +515,4 @@ declare class JobRoles extends BaseEntity {
510
515
  isActive: boolean;
511
516
  }
512
517
 
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 };
518
+ 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,57 @@ 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." })
961
+ (0, import_class_validator16.IsNumber)({}, { message: "User ID must be a number." })
943
962
  ], UpdateCompanyProfileDto.prototype, "userId", 2);
944
963
  __decorateClass([
945
- (0, import_class_validator15.IsString)({ message: "Company name must be a string." })
964
+ (0, import_class_validator16.IsString)({ message: "Company name must be a string." })
946
965
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
947
966
  __decorateClass([
948
- (0, import_class_validator15.IsOptional)(),
949
- (0, import_class_validator15.IsString)({ message: "Company bio must be a string." })
967
+ (0, import_class_validator16.IsOptional)(),
968
+ (0, import_class_validator16.IsString)({ message: "Company bio must be a string." })
950
969
  ], UpdateCompanyProfileDto.prototype, "bio", 2);
951
970
  __decorateClass([
952
- (0, import_class_validator15.IsOptional)(),
953
- (0, import_class_validator15.IsNumber)({}, { message: "Rating must be a numeric value." })
971
+ (0, import_class_validator16.IsOptional)(),
972
+ (0, import_class_validator16.IsNumber)({}, { message: "Rating must be a numeric value." })
954
973
  ], UpdateCompanyProfileDto.prototype, "rating", 2);
955
974
  __decorateClass([
956
- (0, import_class_validator15.IsString)({ message: "Agreement must be a string (e.g., a file URL or path)." })
975
+ (0, import_class_validator16.IsString)({ message: "Agreement must be a string (e.g., a file URL or path)." })
957
976
  ], UpdateCompanyProfileDto.prototype, "agreement", 2);
958
977
  __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." })
978
+ (0, import_class_validator16.IsOptional)(),
979
+ (0, import_class_validator16.IsArray)({ message: "Skills must be an array of strings." }),
980
+ (0, import_class_validator16.IsString)({ each: true, message: "Each skill must be a string." })
962
981
  ], UpdateCompanyProfileDto.prototype, "skills", 2);
963
982
  __decorateClass([
964
- (0, import_class_validator15.IsOptional)(),
965
- (0, import_class_validator15.IsString)({ message: "Required freelancer must be a string." })
983
+ (0, import_class_validator16.IsOptional)(),
984
+ (0, import_class_validator16.IsString)({ message: "Required freelancer must be a string." })
966
985
  ], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
967
986
  __decorateClass([
968
- (0, import_class_validator15.IsOptional)(),
969
- (0, import_class_validator15.IsEnum)(KindOfHire, {
987
+ (0, import_class_validator16.IsOptional)(),
988
+ (0, import_class_validator16.IsEnum)(KindOfHire, {
970
989
  message: `Kind of hiring must be one of: ${Object.values(KindOfHire).join(", ")}`
971
990
  })
972
991
  ], UpdateCompanyProfileDto.prototype, "kindOfHiring", 2);
973
992
  __decorateClass([
974
- (0, import_class_validator15.IsOptional)(),
975
- (0, import_class_validator15.IsEnum)(ModeOfHire, {
993
+ (0, import_class_validator16.IsOptional)(),
994
+ (0, import_class_validator16.IsEnum)(ModeOfHire, {
976
995
  message: `Mode of hire must be one of: ${Object.values(ModeOfHire).join(", ")}`
977
996
  })
978
997
  ], UpdateCompanyProfileDto.prototype, "modeOfHire", 2);
979
998
  __decorateClass([
980
- (0, import_class_validator15.IsOptional)(),
981
- (0, import_class_validator15.IsEnum)(FromUsOn, {
999
+ (0, import_class_validator16.IsOptional)(),
1000
+ (0, import_class_validator16.IsEnum)(FromUsOn, {
982
1001
  message: `Found us on must be one of: ${Object.values(FromUsOn).join(", ")}`
983
1002
  })
984
1003
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
985
1004
 
986
1005
  // src/modules/user/client-profile/dto/update-client-logo.dto.ts
987
- var import_class_validator16 = require("class-validator");
1006
+ var import_class_validator17 = require("class-validator");
988
1007
  var UpdateCompanyLogoDto = class {
989
1008
  };
990
1009
  __decorateClass([
991
- (0, import_class_validator16.IsNotEmpty)({ message: "Please enter uuid." }),
992
- (0, import_class_validator16.IsUUID)()
1010
+ (0, import_class_validator17.IsNotEmpty)({ message: "Please enter uuid." }),
1011
+ (0, import_class_validator17.IsUUID)()
993
1012
  ], UpdateCompanyLogoDto.prototype, "uuid", 2);
994
1013
 
995
1014
  // src/modules/question/pattern/pattern.ts
@@ -998,24 +1017,24 @@ var QUESTION_PATTERN = {
998
1017
  };
999
1018
 
1000
1019
  // src/modules/question/dto/create-question.dto.ts
1001
- var import_class_validator17 = require("class-validator");
1020
+ var import_class_validator18 = require("class-validator");
1002
1021
  var CreateQuestionDto = class {
1003
1022
  };
1004
1023
  __decorateClass([
1005
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter unique id." })
1024
+ (0, import_class_validator18.IsNotEmpty)({ message: "Please enter unique id." })
1006
1025
  ], CreateQuestionDto.prototype, "questionId", 2);
1007
1026
  __decorateClass([
1008
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter question." })
1027
+ (0, import_class_validator18.IsNotEmpty)({ message: "Please enter question." })
1009
1028
  ], CreateQuestionDto.prototype, "question", 2);
1010
1029
  __decorateClass([
1011
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter for whom the question is." })
1030
+ (0, import_class_validator18.IsNotEmpty)({ message: "Please enter for whom the question is." })
1012
1031
  ], CreateQuestionDto.prototype, "questionFor", 2);
1013
1032
  __decorateClass([
1014
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter options." })
1033
+ (0, import_class_validator18.IsNotEmpty)({ message: "Please enter options." })
1015
1034
  ], CreateQuestionDto.prototype, "options", 2);
1016
1035
  __decorateClass([
1017
- (0, import_class_validator17.IsOptional)(),
1018
- (0, import_class_validator17.IsBoolean)({ message: "Whether the question status active" })
1036
+ (0, import_class_validator18.IsOptional)(),
1037
+ (0, import_class_validator18.IsBoolean)({ message: "Whether the question status active" })
1019
1038
  ], CreateQuestionDto.prototype, "isActive", 2);
1020
1039
 
1021
1040
  // src/modules/job/pattern/pattern.ts
@@ -1234,6 +1253,7 @@ JobRoles = __decorateClass([
1234
1253
  CompanyProfile,
1235
1254
  CreateQuestionDto,
1236
1255
  CreateSubAdminDto,
1256
+ FreelancerChangePasswordDto,
1237
1257
  FreelancerCreateAccountDto,
1238
1258
  FreelancerDevelopmentPreferenceDto,
1239
1259
  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,7 +415,7 @@ var CLIENT_PROFILE_PATTERN = {
391
415
  import {
392
416
  IsEnum,
393
417
  IsOptional as IsOptional4,
394
- IsString as IsString8,
418
+ IsString as IsString9,
395
419
  IsNumber,
396
420
  IsArray
397
421
  } from "class-validator";
@@ -960,27 +984,27 @@ __decorateClass([
960
984
  IsNumber({}, { message: "User ID must be a number." })
961
985
  ], UpdateCompanyProfileDto.prototype, "userId", 2);
962
986
  __decorateClass([
963
- IsString8({ message: "Company name must be a string." })
987
+ IsString9({ message: "Company name must be a string." })
964
988
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
965
989
  __decorateClass([
966
990
  IsOptional4(),
967
- IsString8({ message: "Company bio must be a string." })
991
+ IsString9({ message: "Company bio must be a string." })
968
992
  ], UpdateCompanyProfileDto.prototype, "bio", 2);
969
993
  __decorateClass([
970
994
  IsOptional4(),
971
995
  IsNumber({}, { message: "Rating must be a numeric value." })
972
996
  ], UpdateCompanyProfileDto.prototype, "rating", 2);
973
997
  __decorateClass([
974
- IsString8({ message: "Agreement must be a string (e.g., a file URL or path)." })
998
+ IsString9({ message: "Agreement must be a string (e.g., a file URL or path)." })
975
999
  ], UpdateCompanyProfileDto.prototype, "agreement", 2);
976
1000
  __decorateClass([
977
1001
  IsOptional4(),
978
1002
  IsArray({ message: "Skills must be an array of strings." }),
979
- IsString8({ each: true, message: "Each skill must be a string." })
1003
+ IsString9({ each: true, message: "Each skill must be a string." })
980
1004
  ], UpdateCompanyProfileDto.prototype, "skills", 2);
981
1005
  __decorateClass([
982
1006
  IsOptional4(),
983
- IsString8({ message: "Required freelancer must be a string." })
1007
+ IsString9({ message: "Required freelancer must be a string." })
984
1008
  ], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
985
1009
  __decorateClass([
986
1010
  IsOptional4(),
@@ -1002,11 +1026,11 @@ __decorateClass([
1002
1026
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
1003
1027
 
1004
1028
  // src/modules/user/client-profile/dto/update-client-logo.dto.ts
1005
- import { IsNotEmpty as IsNotEmpty13, IsUUID as IsUUID6 } from "class-validator";
1029
+ import { IsNotEmpty as IsNotEmpty14, IsUUID as IsUUID6 } from "class-validator";
1006
1030
  var UpdateCompanyLogoDto = class {
1007
1031
  };
1008
1032
  __decorateClass([
1009
- IsNotEmpty13({ message: "Please enter uuid." }),
1033
+ IsNotEmpty14({ message: "Please enter uuid." }),
1010
1034
  IsUUID6()
1011
1035
  ], UpdateCompanyLogoDto.prototype, "uuid", 2);
1012
1036
 
@@ -1017,23 +1041,23 @@ var QUESTION_PATTERN = {
1017
1041
 
1018
1042
  // src/modules/question/dto/create-question.dto.ts
1019
1043
  import {
1020
- IsNotEmpty as IsNotEmpty14,
1044
+ IsNotEmpty as IsNotEmpty15,
1021
1045
  IsOptional as IsOptional5,
1022
1046
  IsBoolean as IsBoolean4
1023
1047
  } from "class-validator";
1024
1048
  var CreateQuestionDto = class {
1025
1049
  };
1026
1050
  __decorateClass([
1027
- IsNotEmpty14({ message: "Please enter unique id." })
1051
+ IsNotEmpty15({ message: "Please enter unique id." })
1028
1052
  ], CreateQuestionDto.prototype, "questionId", 2);
1029
1053
  __decorateClass([
1030
- IsNotEmpty14({ message: "Please enter question." })
1054
+ IsNotEmpty15({ message: "Please enter question." })
1031
1055
  ], CreateQuestionDto.prototype, "question", 2);
1032
1056
  __decorateClass([
1033
- IsNotEmpty14({ message: "Please enter for whom the question is." })
1057
+ IsNotEmpty15({ message: "Please enter for whom the question is." })
1034
1058
  ], CreateQuestionDto.prototype, "questionFor", 2);
1035
1059
  __decorateClass([
1036
- IsNotEmpty14({ message: "Please enter options." })
1060
+ IsNotEmpty15({ message: "Please enter options." })
1037
1061
  ], CreateQuestionDto.prototype, "options", 2);
1038
1062
  __decorateClass([
1039
1063
  IsOptional5(),
@@ -1255,6 +1279,7 @@ export {
1255
1279
  CompanyProfile,
1256
1280
  CreateQuestionDto,
1257
1281
  CreateSubAdminDto,
1282
+ FreelancerChangePasswordDto,
1258
1283
  FreelancerCreateAccountDto,
1259
1284
  FreelancerDevelopmentPreferenceDto,
1260
1285
  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';
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.74",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",