@experts_hub/shared 1.0.96 → 1.0.99

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.
@@ -1,12 +1,12 @@
1
1
  import { BaseEntity } from "./base.entity";
2
2
  import { User } from "./user.entity";
3
- export declare enum BankAccountType {
3
+ export declare enum BankAccountTypeEnum {
4
4
  PRIMARY = "PRIMARY",
5
5
  SECONDARY = "SECONDARY"
6
6
  }
7
- export declare enum BankAccountScope {
8
- DOMESTIC = "domestic",
9
- INTERNATIONAL = "international"
7
+ export declare enum BankAccountScopeEnum {
8
+ DOMESTIC = "DOMESTIC",
9
+ INTERNATIONAL = "INTERNATIONAL"
10
10
  }
11
11
  export declare class BankDetail extends BaseEntity {
12
12
  userId: number;
@@ -22,6 +22,6 @@ export declare class BankDetail extends BaseEntity {
22
22
  routingNo: string;
23
23
  abaNumber: string;
24
24
  iban: string;
25
- accountType: BankAccountType;
26
- accountScope: BankAccountScope;
25
+ accountType: BankAccountTypeEnum;
26
+ accountScope: BankAccountScopeEnum;
27
27
  }
@@ -36,6 +36,8 @@ export declare class User extends BaseEntity {
36
36
  isMobileVerified: boolean;
37
37
  lastLoginAt: Date;
38
38
  lastLoginIp: string;
39
+ resetToken: string;
40
+ resetTokenExpireAt: Date;
39
41
  refreshTokens: RefreshToken[];
40
42
  otps: Otp[];
41
43
  resumeParserLogs: ResumeParserLog[];
package/dist/index.d.mts CHANGED
@@ -359,13 +359,13 @@ declare class Job extends BaseEntity {
359
359
  jobSkills: JobSkill[];
360
360
  }
361
361
 
362
- declare enum BankAccountType {
362
+ declare enum BankAccountTypeEnum {
363
363
  PRIMARY = "PRIMARY",
364
364
  SECONDARY = "SECONDARY"
365
365
  }
366
- declare enum BankAccountScope {
367
- DOMESTIC = "domestic",
368
- INTERNATIONAL = "international"
366
+ declare enum BankAccountScopeEnum {
367
+ DOMESTIC = "DOMESTIC",
368
+ INTERNATIONAL = "INTERNATIONAL"
369
369
  }
370
370
  declare class BankDetail extends BaseEntity {
371
371
  userId: number;
@@ -381,8 +381,8 @@ declare class BankDetail extends BaseEntity {
381
381
  routingNo: string;
382
382
  abaNumber: string;
383
383
  iban: string;
384
- accountType: BankAccountType;
385
- accountScope: BankAccountScope;
384
+ accountType: BankAccountTypeEnum;
385
+ accountScope: BankAccountScopeEnum;
386
386
  }
387
387
 
388
388
  declare enum AccountType {
@@ -415,6 +415,8 @@ declare class User extends BaseEntity {
415
415
  isMobileVerified: boolean;
416
416
  lastLoginAt: Date;
417
417
  lastLoginIp: string;
418
+ resetToken: string;
419
+ resetTokenExpireAt: Date;
418
420
  refreshTokens: RefreshToken[];
419
421
  otps: Otp[];
420
422
  resumeParserLogs: ResumeParserLog[];
@@ -640,6 +642,10 @@ declare const BANK_PATTERN: {
640
642
  updateFreelancerBankDetails: string;
641
643
  };
642
644
 
645
+ declare enum BankAccountScope {
646
+ DOMESTIC = "DOMESTIC",
647
+ INTERNATIONAL = "INTERNATIONAL"
648
+ }
643
649
  declare class FreelancerBankDetailsDto {
644
650
  name: string;
645
651
  mobile: string;
@@ -653,7 +659,7 @@ declare class FreelancerBankDetailsDto {
653
659
  abaNumber: string;
654
660
  iban: string;
655
661
  accountType: string;
656
- accountScope: string;
662
+ accountScope: BankAccountScope;
657
663
  }
658
664
 
659
665
  declare const UserTCPAdapter: () => MicroserviceOptions;
@@ -688,4 +694,4 @@ declare class JobRoles extends BaseEntity {
688
694
  isActive: boolean;
689
695
  }
690
696
 
691
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, 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_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
697
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, 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_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -359,13 +359,13 @@ declare class Job extends BaseEntity {
359
359
  jobSkills: JobSkill[];
360
360
  }
361
361
 
362
- declare enum BankAccountType {
362
+ declare enum BankAccountTypeEnum {
363
363
  PRIMARY = "PRIMARY",
364
364
  SECONDARY = "SECONDARY"
365
365
  }
366
- declare enum BankAccountScope {
367
- DOMESTIC = "domestic",
368
- INTERNATIONAL = "international"
366
+ declare enum BankAccountScopeEnum {
367
+ DOMESTIC = "DOMESTIC",
368
+ INTERNATIONAL = "INTERNATIONAL"
369
369
  }
370
370
  declare class BankDetail extends BaseEntity {
371
371
  userId: number;
@@ -381,8 +381,8 @@ declare class BankDetail extends BaseEntity {
381
381
  routingNo: string;
382
382
  abaNumber: string;
383
383
  iban: string;
384
- accountType: BankAccountType;
385
- accountScope: BankAccountScope;
384
+ accountType: BankAccountTypeEnum;
385
+ accountScope: BankAccountScopeEnum;
386
386
  }
387
387
 
388
388
  declare enum AccountType {
@@ -415,6 +415,8 @@ declare class User extends BaseEntity {
415
415
  isMobileVerified: boolean;
416
416
  lastLoginAt: Date;
417
417
  lastLoginIp: string;
418
+ resetToken: string;
419
+ resetTokenExpireAt: Date;
418
420
  refreshTokens: RefreshToken[];
419
421
  otps: Otp[];
420
422
  resumeParserLogs: ResumeParserLog[];
@@ -640,6 +642,10 @@ declare const BANK_PATTERN: {
640
642
  updateFreelancerBankDetails: string;
641
643
  };
642
644
 
645
+ declare enum BankAccountScope {
646
+ DOMESTIC = "DOMESTIC",
647
+ INTERNATIONAL = "INTERNATIONAL"
648
+ }
643
649
  declare class FreelancerBankDetailsDto {
644
650
  name: string;
645
651
  mobile: string;
@@ -653,7 +659,7 @@ declare class FreelancerBankDetailsDto {
653
659
  abaNumber: string;
654
660
  iban: string;
655
661
  accountType: string;
656
- accountScope: string;
662
+ accountScope: BankAccountScope;
657
663
  }
658
664
 
659
665
  declare const UserTCPAdapter: () => MicroserviceOptions;
@@ -688,4 +694,4 @@ declare class JobRoles extends BaseEntity {
688
694
  isActive: boolean;
689
695
  }
690
696
 
691
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, 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_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
697
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, 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_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -32,7 +32,8 @@ __export(index_exports, {
32
32
  AccountType: () => AccountType,
33
33
  BANK_PATTERN: () => BANK_PATTERN,
34
34
  BankAccountScope: () => BankAccountScope,
35
- BankAccountType: () => BankAccountType,
35
+ BankAccountScopeEnum: () => BankAccountScopeEnum,
36
+ BankAccountTypeEnum: () => BankAccountTypeEnum,
36
37
  BankDetail: () => BankDetail,
37
38
  BaseEntity: () => BaseEntity,
38
39
  CLIENT_PROFILE_PATTERN: () => CLIENT_PROFILE_PATTERN,
@@ -901,16 +902,16 @@ Job = __decorateClass([
901
902
 
902
903
  // src/entities/bank-details.entity.ts
903
904
  var import_typeorm9 = require("typeorm");
904
- var BankAccountType = /* @__PURE__ */ ((BankAccountType2) => {
905
- BankAccountType2["PRIMARY"] = "PRIMARY";
906
- BankAccountType2["SECONDARY"] = "SECONDARY";
907
- return BankAccountType2;
908
- })(BankAccountType || {});
909
- var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
910
- BankAccountScope2["DOMESTIC"] = "domestic";
911
- BankAccountScope2["INTERNATIONAL"] = "international";
912
- return BankAccountScope2;
913
- })(BankAccountScope || {});
905
+ var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
906
+ BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
907
+ BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
908
+ return BankAccountTypeEnum2;
909
+ })(BankAccountTypeEnum || {});
910
+ var BankAccountScopeEnum = /* @__PURE__ */ ((BankAccountScopeEnum2) => {
911
+ BankAccountScopeEnum2["DOMESTIC"] = "DOMESTIC";
912
+ BankAccountScopeEnum2["INTERNATIONAL"] = "INTERNATIONAL";
913
+ return BankAccountScopeEnum2;
914
+ })(BankAccountScopeEnum || {});
914
915
  var BankDetail = class extends BaseEntity {
915
916
  };
916
917
  // individual index to find bank details by user
@@ -959,7 +960,7 @@ __decorateClass([
959
960
  (0, import_typeorm9.Column)({
960
961
  name: "account_type",
961
962
  type: "enum",
962
- enum: BankAccountType,
963
+ enum: BankAccountTypeEnum,
963
964
  default: "PRIMARY" /* PRIMARY */
964
965
  })
965
966
  ], BankDetail.prototype, "accountType", 2);
@@ -967,8 +968,8 @@ __decorateClass([
967
968
  (0, import_typeorm9.Column)({
968
969
  name: "account_scope",
969
970
  type: "enum",
970
- enum: BankAccountScope,
971
- default: "domestic" /* DOMESTIC */
971
+ enum: BankAccountScopeEnum,
972
+ default: "DOMESTIC" /* DOMESTIC */
972
973
  })
973
974
  ], BankDetail.prototype, "accountScope", 2);
974
975
  BankDetail = __decorateClass([
@@ -1057,6 +1058,12 @@ __decorateClass([
1057
1058
  __decorateClass([
1058
1059
  (0, import_typeorm10.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
1059
1060
  ], User.prototype, "lastLoginIp", 2);
1061
+ __decorateClass([
1062
+ (0, import_typeorm10.Column)({ name: "reset_token", type: "varchar", nullable: true })
1063
+ ], User.prototype, "resetToken", 2);
1064
+ __decorateClass([
1065
+ (0, import_typeorm10.Column)({ name: "reset_token_expire_at", type: "timestamp with time zone", nullable: true })
1066
+ ], User.prototype, "resetTokenExpireAt", 2);
1060
1067
  __decorateClass([
1061
1068
  (0, import_typeorm10.OneToMany)(() => RefreshToken, (token) => token.user)
1062
1069
  ], User.prototype, "refreshTokens", 2);
@@ -1443,6 +1450,11 @@ var BANK_PATTERN = {
1443
1450
 
1444
1451
  // src/modules/bank/dto/freelancer-bank-details.dto.ts
1445
1452
  var import_class_validator24 = require("class-validator");
1453
+ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
1454
+ BankAccountScope2["DOMESTIC"] = "DOMESTIC";
1455
+ BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
1456
+ return BankAccountScope2;
1457
+ })(BankAccountScope || {});
1446
1458
  var FreelancerBankDetailsDto = class {
1447
1459
  };
1448
1460
  __decorateClass([
@@ -1467,26 +1479,30 @@ __decorateClass([
1467
1479
  (0, import_class_validator24.IsNotEmpty)({ message: "Please enter Branch Name." })
1468
1480
  ], FreelancerBankDetailsDto.prototype, "branchName", 2);
1469
1481
  __decorateClass([
1470
- (0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "domestic"),
1471
- (0, import_class_validator24.IsNotEmpty)({ message: "IFSC Code is required for domestic accounts." })
1482
+ (0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
1483
+ (0, import_class_validator24.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
1472
1484
  ], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
1473
1485
  __decorateClass([
1474
- (0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "international"),
1475
- (0, import_class_validator24.IsNotEmpty)({ message: "Routing Number/Sort Code is required for international accounts." })
1486
+ (0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
1487
+ (0, import_class_validator24.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
1476
1488
  ], FreelancerBankDetailsDto.prototype, "routingNo", 2);
1477
1489
  __decorateClass([
1478
- (0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "international"),
1479
- (0, import_class_validator24.IsNotEmpty)({ message: "ABA Number is required for international accounts." })
1490
+ (0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
1491
+ (0, import_class_validator24.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
1480
1492
  ], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
1481
1493
  __decorateClass([
1482
- (0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "international"),
1483
- (0, import_class_validator24.IsNotEmpty)({ message: "IBAN is required for international accounts." })
1494
+ (0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
1495
+ (0, import_class_validator24.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
1484
1496
  ], FreelancerBankDetailsDto.prototype, "iban", 2);
1485
1497
  __decorateClass([
1486
1498
  (0, import_class_validator24.IsOptional)()
1487
1499
  ], FreelancerBankDetailsDto.prototype, "accountType", 2);
1488
1500
  __decorateClass([
1489
- (0, import_class_validator24.IsOptional)()
1501
+ (0, import_class_validator24.IsEnum)(BankAccountScope, {
1502
+ message: `Type of Account Scope must be one of: ${Object.values(
1503
+ BankAccountScope
1504
+ ).join(", ")}`
1505
+ })
1490
1506
  ], FreelancerBankDetailsDto.prototype, "accountScope", 2);
1491
1507
 
1492
1508
  // src/adapters/tcp/user.tcp.adapter.ts
@@ -1695,7 +1711,8 @@ JobRoles = __decorateClass([
1695
1711
  AccountType,
1696
1712
  BANK_PATTERN,
1697
1713
  BankAccountScope,
1698
- BankAccountType,
1714
+ BankAccountScopeEnum,
1715
+ BankAccountTypeEnum,
1699
1716
  BankDetail,
1700
1717
  BaseEntity,
1701
1718
  CLIENT_PROFILE_PATTERN,
package/dist/index.mjs CHANGED
@@ -910,16 +910,16 @@ import {
910
910
  ManyToOne as ManyToOne7,
911
911
  JoinColumn as JoinColumn7
912
912
  } from "typeorm";
913
- var BankAccountType = /* @__PURE__ */ ((BankAccountType2) => {
914
- BankAccountType2["PRIMARY"] = "PRIMARY";
915
- BankAccountType2["SECONDARY"] = "SECONDARY";
916
- return BankAccountType2;
917
- })(BankAccountType || {});
918
- var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
919
- BankAccountScope2["DOMESTIC"] = "domestic";
920
- BankAccountScope2["INTERNATIONAL"] = "international";
921
- return BankAccountScope2;
922
- })(BankAccountScope || {});
913
+ var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
914
+ BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
915
+ BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
916
+ return BankAccountTypeEnum2;
917
+ })(BankAccountTypeEnum || {});
918
+ var BankAccountScopeEnum = /* @__PURE__ */ ((BankAccountScopeEnum2) => {
919
+ BankAccountScopeEnum2["DOMESTIC"] = "DOMESTIC";
920
+ BankAccountScopeEnum2["INTERNATIONAL"] = "INTERNATIONAL";
921
+ return BankAccountScopeEnum2;
922
+ })(BankAccountScopeEnum || {});
923
923
  var BankDetail = class extends BaseEntity {
924
924
  };
925
925
  // individual index to find bank details by user
@@ -968,7 +968,7 @@ __decorateClass([
968
968
  Column9({
969
969
  name: "account_type",
970
970
  type: "enum",
971
- enum: BankAccountType,
971
+ enum: BankAccountTypeEnum,
972
972
  default: "PRIMARY" /* PRIMARY */
973
973
  })
974
974
  ], BankDetail.prototype, "accountType", 2);
@@ -976,8 +976,8 @@ __decorateClass([
976
976
  Column9({
977
977
  name: "account_scope",
978
978
  type: "enum",
979
- enum: BankAccountScope,
980
- default: "domestic" /* DOMESTIC */
979
+ enum: BankAccountScopeEnum,
980
+ default: "DOMESTIC" /* DOMESTIC */
981
981
  })
982
982
  ], BankDetail.prototype, "accountScope", 2);
983
983
  BankDetail = __decorateClass([
@@ -1066,6 +1066,12 @@ __decorateClass([
1066
1066
  __decorateClass([
1067
1067
  Column10({ name: "last_login_ip", type: "varchar", nullable: true })
1068
1068
  ], User.prototype, "lastLoginIp", 2);
1069
+ __decorateClass([
1070
+ Column10({ name: "reset_token", type: "varchar", nullable: true })
1071
+ ], User.prototype, "resetToken", 2);
1072
+ __decorateClass([
1073
+ Column10({ name: "reset_token_expire_at", type: "timestamp with time zone", nullable: true })
1074
+ ], User.prototype, "resetTokenExpireAt", 2);
1069
1075
  __decorateClass([
1070
1076
  OneToMany5(() => RefreshToken, (token) => token.user)
1071
1077
  ], User.prototype, "refreshTokens", 2);
@@ -1477,10 +1483,16 @@ var BANK_PATTERN = {
1477
1483
 
1478
1484
  // src/modules/bank/dto/freelancer-bank-details.dto.ts
1479
1485
  import {
1486
+ IsEnum as IsEnum5,
1480
1487
  IsNotEmpty as IsNotEmpty19,
1481
1488
  IsOptional as IsOptional8,
1482
1489
  ValidateIf
1483
1490
  } from "class-validator";
1491
+ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
1492
+ BankAccountScope2["DOMESTIC"] = "DOMESTIC";
1493
+ BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
1494
+ return BankAccountScope2;
1495
+ })(BankAccountScope || {});
1484
1496
  var FreelancerBankDetailsDto = class {
1485
1497
  };
1486
1498
  __decorateClass([
@@ -1505,26 +1517,30 @@ __decorateClass([
1505
1517
  IsNotEmpty19({ message: "Please enter Branch Name." })
1506
1518
  ], FreelancerBankDetailsDto.prototype, "branchName", 2);
1507
1519
  __decorateClass([
1508
- ValidateIf((dto) => dto.accountScope === "domestic"),
1509
- IsNotEmpty19({ message: "IFSC Code is required for domestic accounts." })
1520
+ ValidateIf((dto) => dto.accountScope === "DOMESTIC"),
1521
+ IsNotEmpty19({ message: "IFSC Code is required for DOMESTIC accounts." })
1510
1522
  ], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
1511
1523
  __decorateClass([
1512
- ValidateIf((dto) => dto.accountScope === "international"),
1513
- IsNotEmpty19({ message: "Routing Number/Sort Code is required for international accounts." })
1524
+ ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
1525
+ IsNotEmpty19({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
1514
1526
  ], FreelancerBankDetailsDto.prototype, "routingNo", 2);
1515
1527
  __decorateClass([
1516
- ValidateIf((dto) => dto.accountScope === "international"),
1517
- IsNotEmpty19({ message: "ABA Number is required for international accounts." })
1528
+ ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
1529
+ IsNotEmpty19({ message: "ABA Number is required for INTERNATIONAL accounts." })
1518
1530
  ], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
1519
1531
  __decorateClass([
1520
- ValidateIf((dto) => dto.accountScope === "international"),
1521
- IsNotEmpty19({ message: "IBAN is required for international accounts." })
1532
+ ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
1533
+ IsNotEmpty19({ message: "IBAN is required for INTERNATIONAL accounts." })
1522
1534
  ], FreelancerBankDetailsDto.prototype, "iban", 2);
1523
1535
  __decorateClass([
1524
1536
  IsOptional8()
1525
1537
  ], FreelancerBankDetailsDto.prototype, "accountType", 2);
1526
1538
  __decorateClass([
1527
- IsOptional8()
1539
+ IsEnum5(BankAccountScope, {
1540
+ message: `Type of Account Scope must be one of: ${Object.values(
1541
+ BankAccountScope
1542
+ ).join(", ")}`
1543
+ })
1528
1544
  ], FreelancerBankDetailsDto.prototype, "accountScope", 2);
1529
1545
 
1530
1546
  // src/adapters/tcp/user.tcp.adapter.ts
@@ -1732,7 +1748,8 @@ export {
1732
1748
  AccountType,
1733
1749
  BANK_PATTERN,
1734
1750
  BankAccountScope,
1735
- BankAccountType,
1751
+ BankAccountScopeEnum,
1752
+ BankAccountTypeEnum,
1736
1753
  BankDetail,
1737
1754
  BaseEntity,
1738
1755
  CLIENT_PROFILE_PATTERN,
@@ -1,3 +1,7 @@
1
+ export declare enum BankAccountScope {
2
+ DOMESTIC = "DOMESTIC",
3
+ INTERNATIONAL = "INTERNATIONAL"
4
+ }
1
5
  export declare class FreelancerBankDetailsDto {
2
6
  name: string;
3
7
  mobile: string;
@@ -11,5 +15,5 @@ export declare class FreelancerBankDetailsDto {
11
15
  abaNumber: string;
12
16
  iban: string;
13
17
  accountType: string;
14
- accountScope: string;
18
+ accountScope: BankAccountScope;
15
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.96",
3
+ "version": "1.0.99",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",