@experts_hub/shared 1.0.83 → 1.0.85

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
@@ -208,6 +208,7 @@ declare const CLIENT_PROFILE_PATTERN: {
208
208
  fetchClientProfile: string;
209
209
  updateClientProfile: string;
210
210
  updateClientLogo: string;
211
+ changeClientPassword: string;
211
212
  };
212
213
 
213
214
  declare abstract class BaseEntity {
@@ -431,6 +432,11 @@ declare class UpdateCompanyProfileDto {
431
432
  foundUsOn?: FromUsOn;
432
433
  }
433
434
 
435
+ declare class ClientChangePasswordDto {
436
+ oldPassword: string;
437
+ newPassword: string;
438
+ }
439
+
434
440
  interface IFetchClientProfileQuery {
435
441
  page_size?: number;
436
442
  page: number;
@@ -461,15 +467,24 @@ interface IUpdateClientProfilePayload {
461
467
  modeOfHire?: string;
462
468
  foundUsOn?: string;
463
469
  }
464
- interface IUpdateClientProfileResponse {
470
+ interface IUpdateClientLogoPayload {
471
+ logo: string;
472
+ }
473
+ interface IUpdateClientLogoResponse {
465
474
  statusCode: number;
466
475
  status: boolean;
467
476
  message: string;
468
477
  }
469
- interface IUpdateClientLogoPayload {
470
- logo: string;
478
+ interface IUpdateClientPasswordPayload {
479
+ oldPassword: string;
480
+ newPassword: string;
471
481
  }
472
- interface IUpdateClientLogoResponse {
482
+ interface IUpdateClientProfileResponse {
483
+ statusCode: number;
484
+ status: boolean;
485
+ message: string;
486
+ }
487
+ interface IUpdateClientProfileResponse {
473
488
  statusCode: number;
474
489
  status: boolean;
475
490
  message: string;
@@ -511,6 +526,7 @@ declare const JOB_ROLE_PATTERN: {
511
526
  declare const PROFILE_PATTERN: {
512
527
  fetchFreelancerProfile: string;
513
528
  changeFreelancerPassword: string;
529
+ uploadFreelancerProfilePic: string;
514
530
  };
515
531
 
516
532
  declare class FreelancerChangePasswordDto {
@@ -550,4 +566,4 @@ declare class JobRoles extends BaseEntity {
550
566
  isActive: boolean;
551
567
  }
552
568
 
553
- 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, JobSkill, 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, Skill, Step, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
569
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, 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 IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobSkill, 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, Skill, Step, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -208,6 +208,7 @@ declare const CLIENT_PROFILE_PATTERN: {
208
208
  fetchClientProfile: string;
209
209
  updateClientProfile: string;
210
210
  updateClientLogo: string;
211
+ changeClientPassword: string;
211
212
  };
212
213
 
213
214
  declare abstract class BaseEntity {
@@ -431,6 +432,11 @@ declare class UpdateCompanyProfileDto {
431
432
  foundUsOn?: FromUsOn;
432
433
  }
433
434
 
435
+ declare class ClientChangePasswordDto {
436
+ oldPassword: string;
437
+ newPassword: string;
438
+ }
439
+
434
440
  interface IFetchClientProfileQuery {
435
441
  page_size?: number;
436
442
  page: number;
@@ -461,15 +467,24 @@ interface IUpdateClientProfilePayload {
461
467
  modeOfHire?: string;
462
468
  foundUsOn?: string;
463
469
  }
464
- interface IUpdateClientProfileResponse {
470
+ interface IUpdateClientLogoPayload {
471
+ logo: string;
472
+ }
473
+ interface IUpdateClientLogoResponse {
465
474
  statusCode: number;
466
475
  status: boolean;
467
476
  message: string;
468
477
  }
469
- interface IUpdateClientLogoPayload {
470
- logo: string;
478
+ interface IUpdateClientPasswordPayload {
479
+ oldPassword: string;
480
+ newPassword: string;
471
481
  }
472
- interface IUpdateClientLogoResponse {
482
+ interface IUpdateClientProfileResponse {
483
+ statusCode: number;
484
+ status: boolean;
485
+ message: string;
486
+ }
487
+ interface IUpdateClientProfileResponse {
473
488
  statusCode: number;
474
489
  status: boolean;
475
490
  message: string;
@@ -511,6 +526,7 @@ declare const JOB_ROLE_PATTERN: {
511
526
  declare const PROFILE_PATTERN: {
512
527
  fetchFreelancerProfile: string;
513
528
  changeFreelancerPassword: string;
529
+ uploadFreelancerProfilePic: string;
514
530
  };
515
531
 
516
532
  declare class FreelancerChangePasswordDto {
@@ -550,4 +566,4 @@ declare class JobRoles extends BaseEntity {
550
566
  isActive: boolean;
551
567
  }
552
568
 
553
- 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, JobSkill, 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, Skill, Step, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
569
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, 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 IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobSkill, 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, Skill, Step, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -32,6 +32,7 @@ __export(index_exports, {
32
32
  AccountType: () => AccountType,
33
33
  BaseEntity: () => BaseEntity,
34
34
  CLIENT_PROFILE_PATTERN: () => CLIENT_PROFILE_PATTERN,
35
+ ClientChangePasswordDto: () => ClientChangePasswordDto,
35
36
  ClientCreateAccountDto: () => ClientCreateAccountDto,
36
37
  ClientProfileQuestionDto: () => ClientProfileQuestionDto,
37
38
  CompanyProfile: () => CompanyProfile,
@@ -419,7 +420,8 @@ __decorateClass([
419
420
  var CLIENT_PROFILE_PATTERN = {
420
421
  fetchClientProfile: "fetch.client.profile",
421
422
  updateClientProfile: "update.client.profile",
422
- updateClientLogo: "update.client.logo"
423
+ updateClientLogo: "update.client.logo",
424
+ changeClientPassword: "change.client.password"
423
425
  };
424
426
 
425
427
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -1083,30 +1085,48 @@ __decorateClass([
1083
1085
  })
1084
1086
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
1085
1087
 
1088
+ // src/modules/user/client-profile/dto/client-change-password.dto.ts
1089
+ var import_class_validator16 = require("class-validator");
1090
+ var ClientChangePasswordDto = class {
1091
+ };
1092
+ __decorateClass([
1093
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter Old Password." }),
1094
+ (0, import_class_validator16.IsString)()
1095
+ ], ClientChangePasswordDto.prototype, "oldPassword", 2);
1096
+ __decorateClass([
1097
+ (0, import_class_validator16.IsNotEmpty)({ message: "Please enter New Password." }),
1098
+ (0, import_class_validator16.IsString)(),
1099
+ (0, import_class_validator16.MinLength)(6),
1100
+ (0, import_class_validator16.MaxLength)(32),
1101
+ (0, import_class_validator16.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1102
+ message: "New Password must include letters, numbers and symbols."
1103
+ })
1104
+ ], ClientChangePasswordDto.prototype, "newPassword", 2);
1105
+
1086
1106
  // src/modules/question/pattern/pattern.ts
1087
1107
  var QUESTION_PATTERN = {
1088
1108
  fetchQuestions: "fetch.questions"
1089
1109
  };
1090
1110
 
1091
1111
  // src/modules/question/dto/create-question.dto.ts
1092
- var import_class_validator16 = require("class-validator");
1112
+ var import_class_validator17 = require("class-validator");
1093
1113
  var CreateQuestionDto = class {
1094
1114
  };
1095
1115
  __decorateClass([
1096
- (0, import_class_validator16.IsNotEmpty)({ message: "Please enter unique id." })
1116
+ (0, import_class_validator17.IsNotEmpty)({ message: "Please enter unique id." })
1097
1117
  ], CreateQuestionDto.prototype, "questionId", 2);
1098
1118
  __decorateClass([
1099
- (0, import_class_validator16.IsNotEmpty)({ message: "Please enter question." })
1119
+ (0, import_class_validator17.IsNotEmpty)({ message: "Please enter question." })
1100
1120
  ], CreateQuestionDto.prototype, "question", 2);
1101
1121
  __decorateClass([
1102
- (0, import_class_validator16.IsNotEmpty)({ message: "Please enter for whom the question is." })
1122
+ (0, import_class_validator17.IsNotEmpty)({ message: "Please enter for whom the question is." })
1103
1123
  ], CreateQuestionDto.prototype, "questionFor", 2);
1104
1124
  __decorateClass([
1105
- (0, import_class_validator16.IsNotEmpty)({ message: "Please enter options." })
1125
+ (0, import_class_validator17.IsNotEmpty)({ message: "Please enter options." })
1106
1126
  ], CreateQuestionDto.prototype, "options", 2);
1107
1127
  __decorateClass([
1108
- (0, import_class_validator16.IsOptional)(),
1109
- (0, import_class_validator16.IsBoolean)({ message: "Whether the question status active" })
1128
+ (0, import_class_validator17.IsOptional)(),
1129
+ (0, import_class_validator17.IsBoolean)({ message: "Whether the question status active" })
1110
1130
  ], CreateQuestionDto.prototype, "isActive", 2);
1111
1131
 
1112
1132
  // src/modules/job/pattern/pattern.ts
@@ -1114,26 +1134,27 @@ var JOB_ROLE_PATTERN = {
1114
1134
  fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
1115
1135
  };
1116
1136
 
1117
- // src/modules/profile/pattern/pattern.ts
1137
+ // src/modules/user/freelancer-profile/pattern/pattern.ts
1118
1138
  var PROFILE_PATTERN = {
1119
1139
  fetchFreelancerProfile: "fetch.freelancer.profile",
1120
- changeFreelancerPassword: "change.freelancer.password"
1140
+ changeFreelancerPassword: "change.freelancer.password",
1141
+ uploadFreelancerProfilePic: "upload.freelancer.profilepic"
1121
1142
  };
1122
1143
 
1123
- // src/modules/profile/dto/freelancer-change-password.dto.ts
1124
- var import_class_validator17 = require("class-validator");
1144
+ // src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
1145
+ var import_class_validator18 = require("class-validator");
1125
1146
  var FreelancerChangePasswordDto = class {
1126
1147
  };
1127
1148
  __decorateClass([
1128
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter Old Password." }),
1129
- (0, import_class_validator17.IsString)()
1149
+ (0, import_class_validator18.IsNotEmpty)({ message: "Please enter Old Password." }),
1150
+ (0, import_class_validator18.IsString)()
1130
1151
  ], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
1131
1152
  __decorateClass([
1132
- (0, import_class_validator17.IsNotEmpty)({ message: "Please enter New Password." }),
1133
- (0, import_class_validator17.IsString)(),
1134
- (0, import_class_validator17.MinLength)(6),
1135
- (0, import_class_validator17.MaxLength)(32),
1136
- (0, import_class_validator17.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1153
+ (0, import_class_validator18.IsNotEmpty)({ message: "Please enter New Password." }),
1154
+ (0, import_class_validator18.IsString)(),
1155
+ (0, import_class_validator18.MinLength)(6),
1156
+ (0, import_class_validator18.MaxLength)(32),
1157
+ (0, import_class_validator18.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1137
1158
  message: "New Password must include letters, numbers and symbols."
1138
1159
  })
1139
1160
  ], FreelancerChangePasswordDto.prototype, "newPassword", 2);
@@ -1344,6 +1365,7 @@ JobRoles = __decorateClass([
1344
1365
  AccountType,
1345
1366
  BaseEntity,
1346
1367
  CLIENT_PROFILE_PATTERN,
1368
+ ClientChangePasswordDto,
1347
1369
  ClientCreateAccountDto,
1348
1370
  ClientProfileQuestionDto,
1349
1371
  CompanyProfile,
package/dist/index.mjs CHANGED
@@ -385,7 +385,8 @@ __decorateClass([
385
385
  var CLIENT_PROFILE_PATTERN = {
386
386
  fetchClientProfile: "fetch.client.profile",
387
387
  updateClientProfile: "update.client.profile",
388
- updateClientLogo: "update.client.logo"
388
+ updateClientLogo: "update.client.logo",
389
+ changeClientPassword: "change.client.password"
389
390
  };
390
391
 
391
392
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -1104,6 +1105,30 @@ __decorateClass([
1104
1105
  })
1105
1106
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
1106
1107
 
1108
+ // src/modules/user/client-profile/dto/client-change-password.dto.ts
1109
+ import {
1110
+ IsString as IsString9,
1111
+ IsNotEmpty as IsNotEmpty13,
1112
+ MaxLength as MaxLength4,
1113
+ MinLength as MinLength4,
1114
+ Matches as Matches3
1115
+ } from "class-validator";
1116
+ var ClientChangePasswordDto = class {
1117
+ };
1118
+ __decorateClass([
1119
+ IsNotEmpty13({ message: "Please enter Old Password." }),
1120
+ IsString9()
1121
+ ], ClientChangePasswordDto.prototype, "oldPassword", 2);
1122
+ __decorateClass([
1123
+ IsNotEmpty13({ message: "Please enter New Password." }),
1124
+ IsString9(),
1125
+ MinLength4(6),
1126
+ MaxLength4(32),
1127
+ Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1128
+ message: "New Password must include letters, numbers and symbols."
1129
+ })
1130
+ ], ClientChangePasswordDto.prototype, "newPassword", 2);
1131
+
1107
1132
  // src/modules/question/pattern/pattern.ts
1108
1133
  var QUESTION_PATTERN = {
1109
1134
  fetchQuestions: "fetch.questions"
@@ -1111,23 +1136,23 @@ var QUESTION_PATTERN = {
1111
1136
 
1112
1137
  // src/modules/question/dto/create-question.dto.ts
1113
1138
  import {
1114
- IsNotEmpty as IsNotEmpty13,
1139
+ IsNotEmpty as IsNotEmpty14,
1115
1140
  IsOptional as IsOptional5,
1116
1141
  IsBoolean as IsBoolean5
1117
1142
  } from "class-validator";
1118
1143
  var CreateQuestionDto = class {
1119
1144
  };
1120
1145
  __decorateClass([
1121
- IsNotEmpty13({ message: "Please enter unique id." })
1146
+ IsNotEmpty14({ message: "Please enter unique id." })
1122
1147
  ], CreateQuestionDto.prototype, "questionId", 2);
1123
1148
  __decorateClass([
1124
- IsNotEmpty13({ message: "Please enter question." })
1149
+ IsNotEmpty14({ message: "Please enter question." })
1125
1150
  ], CreateQuestionDto.prototype, "question", 2);
1126
1151
  __decorateClass([
1127
- IsNotEmpty13({ message: "Please enter for whom the question is." })
1152
+ IsNotEmpty14({ message: "Please enter for whom the question is." })
1128
1153
  ], CreateQuestionDto.prototype, "questionFor", 2);
1129
1154
  __decorateClass([
1130
- IsNotEmpty13({ message: "Please enter options." })
1155
+ IsNotEmpty14({ message: "Please enter options." })
1131
1156
  ], CreateQuestionDto.prototype, "options", 2);
1132
1157
  __decorateClass([
1133
1158
  IsOptional5(),
@@ -1139,32 +1164,33 @@ var JOB_ROLE_PATTERN = {
1139
1164
  fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
1140
1165
  };
1141
1166
 
1142
- // src/modules/profile/pattern/pattern.ts
1167
+ // src/modules/user/freelancer-profile/pattern/pattern.ts
1143
1168
  var PROFILE_PATTERN = {
1144
1169
  fetchFreelancerProfile: "fetch.freelancer.profile",
1145
- changeFreelancerPassword: "change.freelancer.password"
1170
+ changeFreelancerPassword: "change.freelancer.password",
1171
+ uploadFreelancerProfilePic: "upload.freelancer.profilepic"
1146
1172
  };
1147
1173
 
1148
- // src/modules/profile/dto/freelancer-change-password.dto.ts
1174
+ // src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
1149
1175
  import {
1150
- IsString as IsString9,
1151
- IsNotEmpty as IsNotEmpty14,
1152
- MaxLength as MaxLength4,
1153
- MinLength as MinLength4,
1154
- Matches as Matches3
1176
+ IsString as IsString10,
1177
+ IsNotEmpty as IsNotEmpty15,
1178
+ MaxLength as MaxLength5,
1179
+ MinLength as MinLength5,
1180
+ Matches as Matches4
1155
1181
  } from "class-validator";
1156
1182
  var FreelancerChangePasswordDto = class {
1157
1183
  };
1158
1184
  __decorateClass([
1159
- IsNotEmpty14({ message: "Please enter Old Password." }),
1160
- IsString9()
1185
+ IsNotEmpty15({ message: "Please enter Old Password." }),
1186
+ IsString10()
1161
1187
  ], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
1162
1188
  __decorateClass([
1163
- IsNotEmpty14({ message: "Please enter New Password." }),
1164
- IsString9(),
1165
- MinLength4(6),
1166
- MaxLength4(32),
1167
- Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1189
+ IsNotEmpty15({ message: "Please enter New Password." }),
1190
+ IsString10(),
1191
+ MinLength5(6),
1192
+ MaxLength5(32),
1193
+ Matches4(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1168
1194
  message: "New Password must include letters, numbers and symbols."
1169
1195
  })
1170
1196
  ], FreelancerChangePasswordDto.prototype, "newPassword", 2);
@@ -1374,6 +1400,7 @@ export {
1374
1400
  AccountType,
1375
1401
  BaseEntity,
1376
1402
  CLIENT_PROFILE_PATTERN,
1403
+ ClientChangePasswordDto,
1377
1404
  ClientCreateAccountDto,
1378
1405
  ClientProfileQuestionDto,
1379
1406
  CompanyProfile,
@@ -6,4 +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';
9
+ export * from './user/freelancer-profile';
@@ -41,3 +41,12 @@ export interface IUpdateClientLogoResponse {
41
41
  status: boolean;
42
42
  message: string;
43
43
  }
44
+ export interface IUpdateClientPasswordPayload {
45
+ oldPassword: string;
46
+ newPassword: string;
47
+ }
48
+ export interface IUpdateClientProfileResponse {
49
+ statusCode: number;
50
+ status: boolean;
51
+ message: string;
52
+ }
@@ -0,0 +1,4 @@
1
+ export declare class ClientChangePasswordDto {
2
+ oldPassword: string;
3
+ newPassword: string;
4
+ }
@@ -1 +1,2 @@
1
1
  export * from '../dto/update-client-profile.dto';
2
+ export * from './client-change-password.dto';
@@ -2,4 +2,5 @@ export declare const CLIENT_PROFILE_PATTERN: {
2
2
  fetchClientProfile: string;
3
3
  updateClientProfile: string;
4
4
  updateClientLogo: string;
5
+ changeClientPassword: string;
5
6
  };
@@ -1,4 +1,5 @@
1
1
  export declare const PROFILE_PATTERN: {
2
2
  fetchFreelancerProfile: string;
3
3
  changeFreelancerPassword: string;
4
+ uploadFreelancerProfilePic: string;
4
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",