@experts_hub/shared 1.0.84 → 1.0.86

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.mjs CHANGED
@@ -83,7 +83,8 @@ import {
83
83
 
84
84
  // src/decorators/match.decorator.ts
85
85
  import {
86
- registerDecorator
86
+ registerDecorator,
87
+ ValidatorConstraint
87
88
  } from "class-validator";
88
89
  function Match(property, validationOptions) {
89
90
  return function(object, propertyName) {
@@ -107,6 +108,35 @@ function Match(property, validationOptions) {
107
108
  });
108
109
  };
109
110
  }
111
+ var IfscOrOtherFieldsConstraint = class {
112
+ validate(value, args) {
113
+ const [relatedFields] = args.constraints;
114
+ const dto = args.object;
115
+ if (!value) {
116
+ return relatedFields.some((field) => !!dto[field]);
117
+ }
118
+ return true;
119
+ }
120
+ defaultMessage(args) {
121
+ const [relatedFields] = args.constraints;
122
+ const fieldNames = relatedFields.join(", ");
123
+ return `IFSC Code is required .`;
124
+ }
125
+ };
126
+ IfscOrOtherFieldsConstraint = __decorateClass([
127
+ ValidatorConstraint({ async: false })
128
+ ], IfscOrOtherFieldsConstraint);
129
+ function IfscOrOtherFields(relatedFields, validationOptions) {
130
+ return function(object, propertyName) {
131
+ registerDecorator({
132
+ target: object.constructor,
133
+ propertyName,
134
+ options: validationOptions,
135
+ constraints: [relatedFields],
136
+ validator: IfscOrOtherFieldsConstraint
137
+ });
138
+ };
139
+ }
110
140
 
111
141
  // src/modules/onboarding/dto/freelancer-create-account.dto.ts
112
142
  var FreelancerCreateAccountDto = class {
@@ -385,7 +415,8 @@ __decorateClass([
385
415
  var CLIENT_PROFILE_PATTERN = {
386
416
  fetchClientProfile: "fetch.client.profile",
387
417
  updateClientProfile: "update.client.profile",
388
- updateClientLogo: "update.client.logo"
418
+ updateClientLogo: "update.client.logo",
419
+ changeClientPassword: "change.client.password"
389
420
  };
390
421
 
391
422
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -399,11 +430,11 @@ import {
399
430
 
400
431
  // src/entities/company-profile.entity.ts
401
432
  import {
402
- Entity as Entity9,
403
- Column as Column10,
404
- ManyToOne as ManyToOne7,
405
- JoinColumn as JoinColumn7,
406
- Index as Index5
433
+ Entity as Entity10,
434
+ Column as Column11,
435
+ ManyToOne as ManyToOne8,
436
+ JoinColumn as JoinColumn8,
437
+ Index as Index6
407
438
  } from "typeorm";
408
439
 
409
440
  // src/entities/base.entity.ts
@@ -451,7 +482,7 @@ __decorateClass([
451
482
  ], BaseEntity.prototype, "deletedAt", 2);
452
483
 
453
484
  // src/entities/user.entity.ts
454
- import { Entity as Entity8, Column as Column9, OneToMany as OneToMany4, OneToOne } from "typeorm";
485
+ import { Entity as Entity9, Column as Column10, OneToMany as OneToMany5, OneToOne } from "typeorm";
455
486
 
456
487
  // src/entities/refresh-token.entity.ts
457
488
  import {
@@ -854,6 +885,88 @@ Job = __decorateClass([
854
885
  Entity7("jobs")
855
886
  ], Job);
856
887
 
888
+ // src/entities/bank-details.entity.ts
889
+ import {
890
+ Entity as Entity8,
891
+ Column as Column9,
892
+ Index as Index5,
893
+ ManyToOne as ManyToOne7,
894
+ JoinColumn as JoinColumn7
895
+ } from "typeorm";
896
+ var BankAccountType = /* @__PURE__ */ ((BankAccountType2) => {
897
+ BankAccountType2["PRIMARY"] = "PRIMARY";
898
+ BankAccountType2["SECONDARY"] = "SECONDARY";
899
+ return BankAccountType2;
900
+ })(BankAccountType || {});
901
+ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
902
+ BankAccountScope2["DOMESTIC"] = "domestic";
903
+ BankAccountScope2["INTERNATIONAL"] = "international";
904
+ return BankAccountScope2;
905
+ })(BankAccountScope || {});
906
+ var bankDetails = class extends BaseEntity {
907
+ };
908
+ // individual index to find bank details by user
909
+ __decorateClass([
910
+ Column9({ name: "user_id", type: "integer", nullable: true }),
911
+ Index5()
912
+ ], bankDetails.prototype, "userId", 2);
913
+ __decorateClass([
914
+ ManyToOne7(() => User, (user) => user.bankDetails),
915
+ JoinColumn7({ name: "user_id" })
916
+ ], bankDetails.prototype, "user", 2);
917
+ __decorateClass([
918
+ Column9({ name: "name", type: "varchar", nullable: true })
919
+ ], bankDetails.prototype, "name", 2);
920
+ __decorateClass([
921
+ Column9({ name: "mobile", type: "varchar", unique: true, nullable: true })
922
+ ], bankDetails.prototype, "mobile", 2);
923
+ __decorateClass([
924
+ Column9({ name: "email", type: "varchar", unique: true })
925
+ ], bankDetails.prototype, "email", 2);
926
+ __decorateClass([
927
+ Column9({ name: "address", type: "varchar", nullable: true })
928
+ ], bankDetails.prototype, "address", 2);
929
+ __decorateClass([
930
+ Column9({ name: "account_number", type: "varchar", unique: true, nullable: true })
931
+ ], bankDetails.prototype, "accountNumber", 2);
932
+ __decorateClass([
933
+ Column9({ name: "bank_name", type: "varchar", nullable: true })
934
+ ], bankDetails.prototype, "bankName", 2);
935
+ __decorateClass([
936
+ Column9({ name: "ifsc_code", type: "varchar", nullable: true })
937
+ ], bankDetails.prototype, "ifscCode", 2);
938
+ __decorateClass([
939
+ Column9({ name: "branch_name", type: "varchar", nullable: true })
940
+ ], bankDetails.prototype, "branchName", 2);
941
+ __decorateClass([
942
+ Column9({ name: "routing_no", type: "varchar", nullable: true })
943
+ ], bankDetails.prototype, "routingNo", 2);
944
+ __decorateClass([
945
+ Column9({ name: "aba_no", type: "varchar", nullable: true })
946
+ ], bankDetails.prototype, "abaNumber", 2);
947
+ __decorateClass([
948
+ Column9({ name: "iban", type: "varchar", nullable: true })
949
+ ], bankDetails.prototype, "iban", 2);
950
+ __decorateClass([
951
+ Column9({
952
+ name: "account_type",
953
+ type: "enum",
954
+ enum: BankAccountType,
955
+ default: "PRIMARY" /* PRIMARY */
956
+ })
957
+ ], bankDetails.prototype, "accountType", 2);
958
+ __decorateClass([
959
+ Column9({
960
+ name: "account_scope",
961
+ type: "enum",
962
+ enum: BankAccountScope,
963
+ default: "domestic" /* DOMESTIC */
964
+ })
965
+ ], bankDetails.prototype, "accountScope", 2);
966
+ bankDetails = __decorateClass([
967
+ Entity8("bank_details")
968
+ ], bankDetails);
969
+
857
970
  // src/entities/user.entity.ts
858
971
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
859
972
  AccountType2["ADMIN"] = "ADMIN";
@@ -872,40 +985,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
872
985
  var User = class extends BaseEntity {
873
986
  };
874
987
  __decorateClass([
875
- Column9({ name: "unique_id", type: "varchar", unique: true })
988
+ Column10({ name: "unique_id", type: "varchar", unique: true })
876
989
  ], User.prototype, "uniqueId", 2);
877
990
  __decorateClass([
878
- Column9({ name: "username", type: "varchar", unique: true, nullable: true })
991
+ Column10({ name: "username", type: "varchar", unique: true, nullable: true })
879
992
  ], User.prototype, "username", 2);
880
993
  __decorateClass([
881
- Column9({ name: "first_name", type: "varchar", length: 100, nullable: true })
994
+ Column10({ name: "first_name", type: "varchar", length: 100, nullable: true })
882
995
  ], User.prototype, "firstName", 2);
883
996
  __decorateClass([
884
- Column9({ name: "last_name", type: "varchar", length: 100, nullable: true })
997
+ Column10({ name: "last_name", type: "varchar", length: 100, nullable: true })
885
998
  ], User.prototype, "lastName", 2);
886
999
  __decorateClass([
887
- Column9({ name: "date_of_birth", type: "date", nullable: true })
1000
+ Column10({ name: "date_of_birth", type: "date", nullable: true })
888
1001
  ], User.prototype, "dateOfBirth", 2);
889
1002
  __decorateClass([
890
- Column9({ name: "gender", type: "varchar", length: 10, nullable: true })
1003
+ Column10({ name: "gender", type: "varchar", length: 10, nullable: true })
891
1004
  ], User.prototype, "gender", 2);
892
1005
  __decorateClass([
893
- Column9({ name: "profile_picture_url", type: "text", nullable: true })
1006
+ Column10({ name: "profile_picture_url", type: "text", nullable: true })
894
1007
  ], User.prototype, "profilePictureUrl", 2);
895
1008
  __decorateClass([
896
- Column9({ name: "email", type: "varchar", unique: true })
1009
+ Column10({ name: "email", type: "varchar", unique: true })
897
1010
  ], User.prototype, "email", 2);
898
1011
  __decorateClass([
899
- Column9({ name: "mobile_code", type: "varchar", nullable: true })
1012
+ Column10({ name: "mobile_code", type: "varchar", nullable: true })
900
1013
  ], User.prototype, "mobileCode", 2);
901
1014
  __decorateClass([
902
- Column9({ name: "mobile", type: "varchar", unique: true, nullable: true })
1015
+ Column10({ name: "mobile", type: "varchar", unique: true, nullable: true })
903
1016
  ], User.prototype, "mobile", 2);
904
1017
  __decorateClass([
905
- Column9({ name: "password", type: "varchar" })
1018
+ Column10({ name: "password", type: "varchar" })
906
1019
  ], User.prototype, "password", 2);
907
1020
  __decorateClass([
908
- Column9({
1021
+ Column10({
909
1022
  name: "account_type",
910
1023
  type: "enum",
911
1024
  enum: AccountType,
@@ -913,7 +1026,7 @@ __decorateClass([
913
1026
  })
914
1027
  ], User.prototype, "accountType", 2);
915
1028
  __decorateClass([
916
- Column9({
1029
+ Column10({
917
1030
  name: "account_status",
918
1031
  type: "enum",
919
1032
  enum: AccountStatus,
@@ -921,29 +1034,29 @@ __decorateClass([
921
1034
  })
922
1035
  ], User.prototype, "accountStatus", 2);
923
1036
  __decorateClass([
924
- Column9({ name: "is_email_verified", type: "boolean", default: false })
1037
+ Column10({ name: "is_email_verified", type: "boolean", default: false })
925
1038
  ], User.prototype, "isEmailVerified", 2);
926
1039
  __decorateClass([
927
- Column9({ name: "is_mobile_verified", type: "boolean", default: false })
1040
+ Column10({ name: "is_mobile_verified", type: "boolean", default: false })
928
1041
  ], User.prototype, "isMobileVerified", 2);
929
1042
  __decorateClass([
930
- Column9({
1043
+ Column10({
931
1044
  name: "last_login_at",
932
1045
  type: "timestamp with time zone",
933
1046
  nullable: true
934
1047
  })
935
1048
  ], User.prototype, "lastLoginAt", 2);
936
1049
  __decorateClass([
937
- Column9({ name: "last_login_ip", type: "varchar", nullable: true })
1050
+ Column10({ name: "last_login_ip", type: "varchar", nullable: true })
938
1051
  ], User.prototype, "lastLoginIp", 2);
939
1052
  __decorateClass([
940
- OneToMany4(() => RefreshToken, (token) => token.user)
1053
+ OneToMany5(() => RefreshToken, (token) => token.user)
941
1054
  ], User.prototype, "refreshTokens", 2);
942
1055
  __decorateClass([
943
- OneToMany4(() => Otp, (otp) => otp.user)
1056
+ OneToMany5(() => Otp, (otp) => otp.user)
944
1057
  ], User.prototype, "otps", 2);
945
1058
  __decorateClass([
946
- OneToMany4(() => ResumeParserLog, (resumeParser) => resumeParser.user)
1059
+ OneToMany5(() => ResumeParserLog, (resumeParser) => resumeParser.user)
947
1060
  ], User.prototype, "resumeParserLogs", 2);
948
1061
  __decorateClass([
949
1062
  OneToOne(
@@ -955,10 +1068,13 @@ __decorateClass([
955
1068
  OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user)
956
1069
  ], User.prototype, "companyProfile", 2);
957
1070
  __decorateClass([
958
- OneToMany4(() => Job, (job) => job.user)
1071
+ OneToMany5(() => Job, (job) => job.user)
959
1072
  ], User.prototype, "jobs", 2);
1073
+ __decorateClass([
1074
+ OneToMany5(() => bankDetails, (bankDetails2) => bankDetails2.user)
1075
+ ], User.prototype, "bankDetails", 2);
960
1076
  User = __decorateClass([
961
- Entity8("users")
1077
+ Entity9("users")
962
1078
  ], User);
963
1079
 
964
1080
  // src/entities/company-profile.entity.ts
@@ -985,42 +1101,42 @@ var CompanyProfile = class extends BaseEntity {
985
1101
  };
986
1102
  // individual index to find company profile by user
987
1103
  __decorateClass([
988
- Column10({ name: "user_id", type: "integer", nullable: true }),
989
- Index5()
1104
+ Column11({ name: "user_id", type: "integer", nullable: true }),
1105
+ Index6()
990
1106
  ], CompanyProfile.prototype, "userId", 2);
991
1107
  __decorateClass([
992
- ManyToOne7(() => User, (user) => user.otps),
993
- JoinColumn7({ name: "user_id" })
1108
+ ManyToOne8(() => User, (user) => user.otps),
1109
+ JoinColumn8({ name: "user_id" })
994
1110
  ], CompanyProfile.prototype, "user", 2);
995
1111
  __decorateClass([
996
- Column10({ name: "company_name", type: "varchar", nullable: true })
1112
+ Column11({ name: "company_name", type: "varchar", nullable: true })
997
1113
  ], CompanyProfile.prototype, "companyName", 2);
998
1114
  __decorateClass([
999
- Column10({ name: "bio", type: "varchar", nullable: true })
1115
+ Column11({ name: "bio", type: "varchar", nullable: true })
1000
1116
  ], CompanyProfile.prototype, "bio", 2);
1001
1117
  __decorateClass([
1002
- Column10({ name: "website", type: "varchar", nullable: true })
1118
+ Column11({ name: "website", type: "varchar", nullable: true })
1003
1119
  ], CompanyProfile.prototype, "webSite", 2);
1004
1120
  __decorateClass([
1005
- Column10({ name: "about_company", type: "varchar", nullable: true })
1121
+ Column11({ name: "about_company", type: "varchar", nullable: true })
1006
1122
  ], CompanyProfile.prototype, "aboutCompany", 2);
1007
1123
  __decorateClass([
1008
- Column10({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1124
+ Column11({ name: "is_service_aggrement_signed", type: "boolean", default: false })
1009
1125
  ], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
1010
1126
  __decorateClass([
1011
- Column10({ name: "company_address", type: "varchar", nullable: true })
1127
+ Column11({ name: "company_address", type: "varchar", nullable: true })
1012
1128
  ], CompanyProfile.prototype, "companyAddress", 2);
1013
1129
  __decorateClass([
1014
- Column10({ name: "phone_number", type: "varchar", nullable: true })
1130
+ Column11({ name: "phone_number", type: "varchar", nullable: true })
1015
1131
  ], CompanyProfile.prototype, "phoneNumber", 2);
1016
1132
  __decorateClass([
1017
- Column10({ name: "skills", type: "text", nullable: true })
1133
+ Column11({ name: "skills", type: "text", nullable: true })
1018
1134
  ], CompanyProfile.prototype, "skills", 2);
1019
1135
  __decorateClass([
1020
- Column10({ name: "required_freelancer", type: "varchar", nullable: true })
1136
+ Column11({ name: "required_freelancer", type: "varchar", nullable: true })
1021
1137
  ], CompanyProfile.prototype, "requiredFreelancer", 2);
1022
1138
  __decorateClass([
1023
- Column10({
1139
+ Column11({
1024
1140
  name: "kind_of_hiring",
1025
1141
  type: "enum",
1026
1142
  enum: KindOfHire,
@@ -1028,7 +1144,7 @@ __decorateClass([
1028
1144
  })
1029
1145
  ], CompanyProfile.prototype, "kindOfHiring", 2);
1030
1146
  __decorateClass([
1031
- Column10({
1147
+ Column11({
1032
1148
  name: "mode_of_hire",
1033
1149
  type: "enum",
1034
1150
  enum: ModeOfHire,
@@ -1036,7 +1152,7 @@ __decorateClass([
1036
1152
  })
1037
1153
  ], CompanyProfile.prototype, "modeOfHire", 2);
1038
1154
  __decorateClass([
1039
- Column10({
1155
+ Column11({
1040
1156
  name: "found_us_on",
1041
1157
  type: "enum",
1042
1158
  enum: FromUsOn,
@@ -1044,7 +1160,7 @@ __decorateClass([
1044
1160
  })
1045
1161
  ], CompanyProfile.prototype, "foundUsOn", 2);
1046
1162
  CompanyProfile = __decorateClass([
1047
- Entity9("company_profiles")
1163
+ Entity10("company_profiles")
1048
1164
  ], CompanyProfile);
1049
1165
 
1050
1166
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
@@ -1104,6 +1220,30 @@ __decorateClass([
1104
1220
  })
1105
1221
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
1106
1222
 
1223
+ // src/modules/user/client-profile/dto/client-change-password.dto.ts
1224
+ import {
1225
+ IsString as IsString9,
1226
+ IsNotEmpty as IsNotEmpty13,
1227
+ MaxLength as MaxLength4,
1228
+ MinLength as MinLength4,
1229
+ Matches as Matches3
1230
+ } from "class-validator";
1231
+ var ClientChangePasswordDto = class {
1232
+ };
1233
+ __decorateClass([
1234
+ IsNotEmpty13({ message: "Please enter Old Password." }),
1235
+ IsString9()
1236
+ ], ClientChangePasswordDto.prototype, "oldPassword", 2);
1237
+ __decorateClass([
1238
+ IsNotEmpty13({ message: "Please enter New Password." }),
1239
+ IsString9(),
1240
+ MinLength4(6),
1241
+ MaxLength4(32),
1242
+ Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1243
+ message: "New Password must include letters, numbers and symbols."
1244
+ })
1245
+ ], ClientChangePasswordDto.prototype, "newPassword", 2);
1246
+
1107
1247
  // src/modules/question/pattern/pattern.ts
1108
1248
  var QUESTION_PATTERN = {
1109
1249
  fetchQuestions: "fetch.questions"
@@ -1111,23 +1251,23 @@ var QUESTION_PATTERN = {
1111
1251
 
1112
1252
  // src/modules/question/dto/create-question.dto.ts
1113
1253
  import {
1114
- IsNotEmpty as IsNotEmpty13,
1254
+ IsNotEmpty as IsNotEmpty14,
1115
1255
  IsOptional as IsOptional5,
1116
1256
  IsBoolean as IsBoolean5
1117
1257
  } from "class-validator";
1118
1258
  var CreateQuestionDto = class {
1119
1259
  };
1120
1260
  __decorateClass([
1121
- IsNotEmpty13({ message: "Please enter unique id." })
1261
+ IsNotEmpty14({ message: "Please enter unique id." })
1122
1262
  ], CreateQuestionDto.prototype, "questionId", 2);
1123
1263
  __decorateClass([
1124
- IsNotEmpty13({ message: "Please enter question." })
1264
+ IsNotEmpty14({ message: "Please enter question." })
1125
1265
  ], CreateQuestionDto.prototype, "question", 2);
1126
1266
  __decorateClass([
1127
- IsNotEmpty13({ message: "Please enter for whom the question is." })
1267
+ IsNotEmpty14({ message: "Please enter for whom the question is." })
1128
1268
  ], CreateQuestionDto.prototype, "questionFor", 2);
1129
1269
  __decorateClass([
1130
- IsNotEmpty13({ message: "Please enter options." })
1270
+ IsNotEmpty14({ message: "Please enter options." })
1131
1271
  ], CreateQuestionDto.prototype, "options", 2);
1132
1272
  __decorateClass([
1133
1273
  IsOptional5(),
@@ -1148,28 +1288,84 @@ var PROFILE_PATTERN = {
1148
1288
 
1149
1289
  // src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
1150
1290
  import {
1151
- IsString as IsString9,
1152
- IsNotEmpty as IsNotEmpty14,
1153
- MaxLength as MaxLength4,
1154
- MinLength as MinLength4,
1155
- Matches as Matches3
1291
+ IsString as IsString10,
1292
+ IsNotEmpty as IsNotEmpty15,
1293
+ MaxLength as MaxLength5,
1294
+ MinLength as MinLength5,
1295
+ Matches as Matches4
1156
1296
  } from "class-validator";
1157
1297
  var FreelancerChangePasswordDto = class {
1158
1298
  };
1159
1299
  __decorateClass([
1160
- IsNotEmpty14({ message: "Please enter Old Password." }),
1161
- IsString9()
1300
+ IsNotEmpty15({ message: "Please enter Old Password." }),
1301
+ IsString10()
1162
1302
  ], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
1163
1303
  __decorateClass([
1164
- IsNotEmpty14({ message: "Please enter New Password." }),
1165
- IsString9(),
1166
- MinLength4(6),
1167
- MaxLength4(32),
1168
- Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1304
+ IsNotEmpty15({ message: "Please enter New Password." }),
1305
+ IsString10(),
1306
+ MinLength5(6),
1307
+ MaxLength5(32),
1308
+ Matches4(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
1169
1309
  message: "New Password must include letters, numbers and symbols."
1170
1310
  })
1171
1311
  ], FreelancerChangePasswordDto.prototype, "newPassword", 2);
1172
1312
 
1313
+ // src/modules/bank/pattern/pattern.ts
1314
+ var BANK_PATTERN = {
1315
+ addFreelancerBankDetails: "add.freelancer.bankdetails"
1316
+ };
1317
+
1318
+ // src/modules/bank/dto/freelancer-bank-details.dto.ts
1319
+ import {
1320
+ IsNotEmpty as IsNotEmpty16,
1321
+ IsOptional as IsOptional6,
1322
+ ValidateIf
1323
+ } from "class-validator";
1324
+ var FreelancerBankDetailsDto = class {
1325
+ };
1326
+ __decorateClass([
1327
+ IsNotEmpty16({ message: "Please enter Account Holder Name." })
1328
+ ], FreelancerBankDetailsDto.prototype, "name", 2);
1329
+ __decorateClass([
1330
+ IsNotEmpty16({ message: "Please enter Mobile Number." })
1331
+ ], FreelancerBankDetailsDto.prototype, "mobile", 2);
1332
+ __decorateClass([
1333
+ IsNotEmpty16({ message: "Please enter Email." })
1334
+ ], FreelancerBankDetailsDto.prototype, "email", 2);
1335
+ __decorateClass([
1336
+ IsOptional6()
1337
+ ], FreelancerBankDetailsDto.prototype, "address", 2);
1338
+ __decorateClass([
1339
+ IsNotEmpty16({ message: "Please enter Account Number." })
1340
+ ], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
1341
+ __decorateClass([
1342
+ IsNotEmpty16({ message: "Please enter Bank Name." })
1343
+ ], FreelancerBankDetailsDto.prototype, "bankName", 2);
1344
+ __decorateClass([
1345
+ IsNotEmpty16({ message: "Please enter Branch Name." })
1346
+ ], FreelancerBankDetailsDto.prototype, "branchName", 2);
1347
+ __decorateClass([
1348
+ IsOptional6(),
1349
+ IfscOrOtherFields(["routingNo", "abaNumber", "iban"], {
1350
+ message: "IFSC Code is required ."
1351
+ })
1352
+ ], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
1353
+ __decorateClass([
1354
+ ValidateIf((dto) => !dto.ifscCode),
1355
+ IsNotEmpty16({ message: "Routing Number/Sort Code is required " })
1356
+ ], FreelancerBankDetailsDto.prototype, "routingNo", 2);
1357
+ __decorateClass([
1358
+ ValidateIf((dto) => !dto.ifscCode),
1359
+ IsNotEmpty16({ message: "ABA Number is required " })
1360
+ ], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
1361
+ __decorateClass([
1362
+ ValidateIf((dto) => !dto.ifscCode),
1363
+ IsNotEmpty16({ message: "IBAN is required " })
1364
+ ], FreelancerBankDetailsDto.prototype, "iban", 2);
1365
+ __decorateClass([
1366
+ IsOptional6()
1367
+ ], FreelancerBankDetailsDto.prototype, "accountType", 2);
1368
+
1173
1369
  // src/adapters/tcp/user.tcp.adapter.ts
1174
1370
  import { config } from "dotenv";
1175
1371
  import { Transport } from "@nestjs/microservices";
@@ -1315,7 +1511,7 @@ var JobRMQAdapter = (mode = "microservice") => {
1315
1511
  };
1316
1512
 
1317
1513
  // src/entities/question.entity.ts
1318
- import { Entity as Entity10, Column as Column11 } from "typeorm";
1514
+ import { Entity as Entity11, Column as Column12 } from "typeorm";
1319
1515
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1320
1516
  QuestionFor2["CLIENT"] = "CLIENT";
1321
1517
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -1324,16 +1520,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
1324
1520
  var Question = class extends BaseEntity {
1325
1521
  };
1326
1522
  __decorateClass([
1327
- Column11({ name: "question", type: "varchar" })
1523
+ Column12({ name: "question", type: "varchar" })
1328
1524
  ], Question.prototype, "question", 2);
1329
1525
  __decorateClass([
1330
- Column11({ name: "hint", type: "varchar", nullable: true })
1526
+ Column12({ name: "hint", type: "varchar", nullable: true })
1331
1527
  ], Question.prototype, "hint", 2);
1332
1528
  __decorateClass([
1333
- Column11({ name: "slug", type: "varchar", nullable: true, unique: true })
1529
+ Column12({ name: "slug", type: "varchar", nullable: true, unique: true })
1334
1530
  ], Question.prototype, "slug", 2);
1335
1531
  __decorateClass([
1336
- Column11({
1532
+ Column12({
1337
1533
  name: "question_for",
1338
1534
  type: "enum",
1339
1535
  enum: QuestionFor,
@@ -1341,45 +1537,50 @@ __decorateClass([
1341
1537
  })
1342
1538
  ], Question.prototype, "questionFor", 2);
1343
1539
  __decorateClass([
1344
- Column11({ name: "type", type: "varchar", nullable: true })
1540
+ Column12({ name: "type", type: "varchar", nullable: true })
1345
1541
  ], Question.prototype, "type", 2);
1346
1542
  __decorateClass([
1347
- Column11({ name: "options", type: "jsonb", nullable: true })
1543
+ Column12({ name: "options", type: "jsonb", nullable: true })
1348
1544
  ], Question.prototype, "options", 2);
1349
1545
  __decorateClass([
1350
- Column11({ name: "is_active", type: "boolean", default: false })
1546
+ Column12({ name: "is_active", type: "boolean", default: false })
1351
1547
  ], Question.prototype, "isActive", 2);
1352
1548
  Question = __decorateClass([
1353
- Entity10("questions")
1549
+ Entity11("questions")
1354
1550
  ], Question);
1355
1551
 
1356
1552
  // src/entities/job-role.entity.ts
1357
- import { Entity as Entity11, Column as Column12 } from "typeorm";
1553
+ import { Entity as Entity12, Column as Column13 } from "typeorm";
1358
1554
  var JobRoles = class extends BaseEntity {
1359
1555
  };
1360
1556
  __decorateClass([
1361
- Column12({ name: "slug", type: "varchar", nullable: true, unique: true })
1557
+ Column13({ name: "slug", type: "varchar", nullable: true, unique: true })
1362
1558
  ], JobRoles.prototype, "slug", 2);
1363
1559
  __decorateClass([
1364
- Column12({ name: "name", type: "varchar", nullable: true })
1560
+ Column13({ name: "name", type: "varchar", nullable: true })
1365
1561
  ], JobRoles.prototype, "name", 2);
1366
1562
  __decorateClass([
1367
- Column12({ name: "is_active", type: "boolean", default: true })
1563
+ Column13({ name: "is_active", type: "boolean", default: true })
1368
1564
  ], JobRoles.prototype, "isActive", 2);
1369
1565
  JobRoles = __decorateClass([
1370
- Entity11("job_roles")
1566
+ Entity12("job_roles")
1371
1567
  ], JobRoles);
1372
1568
  export {
1373
1569
  AUTHENTICATION_PATTERN,
1374
1570
  AccountStatus,
1375
1571
  AccountType,
1572
+ BANK_PATTERN,
1573
+ BankAccountScope,
1574
+ BankAccountType,
1376
1575
  BaseEntity,
1377
1576
  CLIENT_PROFILE_PATTERN,
1577
+ ClientChangePasswordDto,
1378
1578
  ClientCreateAccountDto,
1379
1579
  ClientProfileQuestionDto,
1380
1580
  CompanyProfile,
1381
1581
  CreateQuestionDto,
1382
1582
  CreateSubAdminDto,
1583
+ FreelancerBankDetailsDto,
1383
1584
  FreelancerChangePasswordDto,
1384
1585
  FreelancerCreateAccountDto,
1385
1586
  FreelancerDevelopmentPreferenceDto,
@@ -1422,5 +1623,6 @@ export {
1422
1623
  UpdateSubAdminDto,
1423
1624
  User,
1424
1625
  UserRMQAdapter,
1425
- UserTCPAdapter
1626
+ UserTCPAdapter,
1627
+ bankDetails
1426
1628
  };
@@ -0,0 +1,14 @@
1
+ export declare class FreelancerBankDetailsDto {
2
+ name: string;
3
+ mobile: string;
4
+ email: string;
5
+ address: string;
6
+ accountNumber: string;
7
+ bankName: string;
8
+ branchName: string;
9
+ ifscCode: string;
10
+ routingNo: string;
11
+ abaNumber: string;
12
+ iban: string;
13
+ accountType: string;
14
+ }
@@ -0,0 +1 @@
1
+ export * from './freelancer-bank-details.dto';
@@ -0,0 +1,2 @@
1
+ export * from './pattern/pattern';
2
+ export * from './dto';
@@ -0,0 +1,3 @@
1
+ export declare const BANK_PATTERN: {
2
+ addFreelancerBankDetails: string;
3
+ };
@@ -7,3 +7,4 @@ export * from './user/client-profile';
7
7
  export * from './question';
8
8
  export * from './job';
9
9
  export * from './user/freelancer-profile';
10
+ export * from './bank';
@@ -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';