@experts_hub/shared 1.0.94 → 1.0.96

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.
@@ -8,7 +8,7 @@ export declare enum BankAccountScope {
8
8
  DOMESTIC = "domestic",
9
9
  INTERNATIONAL = "international"
10
10
  }
11
- export declare class BankDetails extends BaseEntity {
11
+ export declare class BankDetail extends BaseEntity {
12
12
  userId: number;
13
13
  user: User;
14
14
  name: string;
@@ -5,7 +5,7 @@ import { Otp } from "./otp.entity";
5
5
  import { FreelancerProfile } from "./freelancer-profile.entity";
6
6
  import { CompanyProfile } from "./company-profile.entity";
7
7
  import { Job } from "./job-entity";
8
- import { BankDetails } from "./bank-details.entity";
8
+ import { BankDetail } from "./bank-details.entity";
9
9
  export declare enum AccountType {
10
10
  ADMIN = "ADMIN",
11
11
  SUB_ADMIN = "SUB_ADMIN",
@@ -42,5 +42,5 @@ export declare class User extends BaseEntity {
42
42
  freelancerProfile: FreelancerProfile;
43
43
  companyProfile: CompanyProfile;
44
44
  jobs: Job[];
45
- bankDetails: BankDetails[];
45
+ bankDetail: BankDetail[];
46
46
  }
package/dist/index.d.mts CHANGED
@@ -10,9 +10,15 @@ declare const AUTHENTICATION_PATTERN: {
10
10
  revokeSession: string;
11
11
  };
12
12
 
13
+ declare enum ScopeEnum {
14
+ ADMIN = "ADMIN",
15
+ CLIENT = "CLIENT",
16
+ FREELANCER = "FREELANCER"
17
+ }
13
18
  declare class LoginDto {
14
19
  email: string;
15
20
  password: string;
21
+ scope: ScopeEnum;
16
22
  }
17
23
 
18
24
  declare class RefreshDto {
@@ -361,7 +367,7 @@ declare enum BankAccountScope {
361
367
  DOMESTIC = "domestic",
362
368
  INTERNATIONAL = "international"
363
369
  }
364
- declare class BankDetails extends BaseEntity {
370
+ declare class BankDetail extends BaseEntity {
365
371
  userId: number;
366
372
  user: User;
367
373
  name: string;
@@ -415,7 +421,7 @@ declare class User extends BaseEntity {
415
421
  freelancerProfile: FreelancerProfile;
416
422
  companyProfile: CompanyProfile;
417
423
  jobs: Job[];
418
- bankDetails: BankDetails[];
424
+ bankDetail: BankDetail[];
419
425
  }
420
426
 
421
427
  declare enum KindOfHire {
@@ -630,6 +636,8 @@ declare class FreelancerChangePasswordDto {
630
636
 
631
637
  declare const BANK_PATTERN: {
632
638
  addFreelancerBankDetails: string;
639
+ fetchFreelancerBankDetails: string;
640
+ updateFreelancerBankDetails: string;
633
641
  };
634
642
 
635
643
  declare class FreelancerBankDetailsDto {
@@ -680,4 +688,4 @@ declare class JobRoles extends BaseEntity {
680
688
  isActive: boolean;
681
689
  }
682
690
 
683
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BankDetails, 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, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
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 };
package/dist/index.d.ts CHANGED
@@ -10,9 +10,15 @@ declare const AUTHENTICATION_PATTERN: {
10
10
  revokeSession: string;
11
11
  };
12
12
 
13
+ declare enum ScopeEnum {
14
+ ADMIN = "ADMIN",
15
+ CLIENT = "CLIENT",
16
+ FREELANCER = "FREELANCER"
17
+ }
13
18
  declare class LoginDto {
14
19
  email: string;
15
20
  password: string;
21
+ scope: ScopeEnum;
16
22
  }
17
23
 
18
24
  declare class RefreshDto {
@@ -361,7 +367,7 @@ declare enum BankAccountScope {
361
367
  DOMESTIC = "domestic",
362
368
  INTERNATIONAL = "international"
363
369
  }
364
- declare class BankDetails extends BaseEntity {
370
+ declare class BankDetail extends BaseEntity {
365
371
  userId: number;
366
372
  user: User;
367
373
  name: string;
@@ -415,7 +421,7 @@ declare class User extends BaseEntity {
415
421
  freelancerProfile: FreelancerProfile;
416
422
  companyProfile: CompanyProfile;
417
423
  jobs: Job[];
418
- bankDetails: BankDetails[];
424
+ bankDetail: BankDetail[];
419
425
  }
420
426
 
421
427
  declare enum KindOfHire {
@@ -630,6 +636,8 @@ declare class FreelancerChangePasswordDto {
630
636
 
631
637
  declare const BANK_PATTERN: {
632
638
  addFreelancerBankDetails: string;
639
+ fetchFreelancerBankDetails: string;
640
+ updateFreelancerBankDetails: string;
633
641
  };
634
642
 
635
643
  declare class FreelancerBankDetailsDto {
@@ -680,4 +688,4 @@ declare class JobRoles extends BaseEntity {
680
688
  isActive: boolean;
681
689
  }
682
690
 
683
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BankDetails, 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, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
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 };
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ __export(index_exports, {
33
33
  BANK_PATTERN: () => BANK_PATTERN,
34
34
  BankAccountScope: () => BankAccountScope,
35
35
  BankAccountType: () => BankAccountType,
36
- BankDetails: () => BankDetails,
36
+ BankDetail: () => BankDetail,
37
37
  BaseEntity: () => BaseEntity,
38
38
  CLIENT_PROFILE_PATTERN: () => CLIENT_PROFILE_PATTERN,
39
39
  ClientChangePasswordDto: () => ClientChangePasswordDto,
@@ -87,6 +87,7 @@ __export(index_exports, {
87
87
  RefreshToken: () => RefreshToken,
88
88
  ResumeParserLog: () => ResumeParserLog,
89
89
  SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
90
+ ScopeEnum: () => ScopeEnum,
90
91
  Skill: () => Skill,
91
92
  Step: () => Step,
92
93
  TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
@@ -112,6 +113,12 @@ var AUTHENTICATION_PATTERN = {
112
113
 
113
114
  // src/modules/authentication/dto/login.dto.ts
114
115
  var import_class_validator = require("class-validator");
116
+ var ScopeEnum = /* @__PURE__ */ ((ScopeEnum2) => {
117
+ ScopeEnum2["ADMIN"] = "ADMIN";
118
+ ScopeEnum2["CLIENT"] = "CLIENT";
119
+ ScopeEnum2["FREELANCER"] = "FREELANCER";
120
+ return ScopeEnum2;
121
+ })(ScopeEnum || {});
115
122
  var LoginDto = class {
116
123
  };
117
124
  __decorateClass([
@@ -120,6 +127,11 @@ __decorateClass([
120
127
  __decorateClass([
121
128
  (0, import_class_validator.IsNotEmpty)({ message: "Please enter password." })
122
129
  ], LoginDto.prototype, "password", 2);
130
+ __decorateClass([
131
+ (0, import_class_validator.IsEnum)(ScopeEnum, {
132
+ message: `Scope must be one of: ${Object.values(ScopeEnum).join(", ")}`
133
+ })
134
+ ], LoginDto.prototype, "scope", 2);
123
135
 
124
136
  // src/modules/authentication/dto/refresh.dto.ts
125
137
  var import_class_validator2 = require("class-validator");
@@ -899,50 +911,50 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
899
911
  BankAccountScope2["INTERNATIONAL"] = "international";
900
912
  return BankAccountScope2;
901
913
  })(BankAccountScope || {});
902
- var BankDetails = class extends BaseEntity {
914
+ var BankDetail = class extends BaseEntity {
903
915
  };
904
916
  // individual index to find bank details by user
905
917
  __decorateClass([
906
918
  (0, import_typeorm9.Column)({ name: "user_id", type: "integer", nullable: true }),
907
919
  (0, import_typeorm9.Index)()
908
- ], BankDetails.prototype, "userId", 2);
920
+ ], BankDetail.prototype, "userId", 2);
909
921
  __decorateClass([
910
- (0, import_typeorm9.ManyToOne)(() => User, (user) => user.bankDetails),
922
+ (0, import_typeorm9.ManyToOne)(() => User, (user) => user.bankDetail),
911
923
  (0, import_typeorm9.JoinColumn)({ name: "user_id" })
912
- ], BankDetails.prototype, "user", 2);
924
+ ], BankDetail.prototype, "user", 2);
913
925
  __decorateClass([
914
926
  (0, import_typeorm9.Column)({ name: "name", type: "varchar", nullable: true })
915
- ], BankDetails.prototype, "name", 2);
927
+ ], BankDetail.prototype, "name", 2);
916
928
  __decorateClass([
917
929
  (0, import_typeorm9.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
918
- ], BankDetails.prototype, "mobile", 2);
930
+ ], BankDetail.prototype, "mobile", 2);
919
931
  __decorateClass([
920
932
  (0, import_typeorm9.Column)({ name: "email", type: "varchar", unique: true })
921
- ], BankDetails.prototype, "email", 2);
933
+ ], BankDetail.prototype, "email", 2);
922
934
  __decorateClass([
923
935
  (0, import_typeorm9.Column)({ name: "address", type: "varchar", nullable: true })
924
- ], BankDetails.prototype, "address", 2);
936
+ ], BankDetail.prototype, "address", 2);
925
937
  __decorateClass([
926
938
  (0, import_typeorm9.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
927
- ], BankDetails.prototype, "accountNumber", 2);
939
+ ], BankDetail.prototype, "accountNumber", 2);
928
940
  __decorateClass([
929
941
  (0, import_typeorm9.Column)({ name: "bank_name", type: "varchar", nullable: true })
930
- ], BankDetails.prototype, "bankName", 2);
942
+ ], BankDetail.prototype, "bankName", 2);
931
943
  __decorateClass([
932
944
  (0, import_typeorm9.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
933
- ], BankDetails.prototype, "ifscCode", 2);
945
+ ], BankDetail.prototype, "ifscCode", 2);
934
946
  __decorateClass([
935
947
  (0, import_typeorm9.Column)({ name: "branch_name", type: "varchar", nullable: true })
936
- ], BankDetails.prototype, "branchName", 2);
948
+ ], BankDetail.prototype, "branchName", 2);
937
949
  __decorateClass([
938
950
  (0, import_typeorm9.Column)({ name: "routing_no", type: "varchar", nullable: true })
939
- ], BankDetails.prototype, "routingNo", 2);
951
+ ], BankDetail.prototype, "routingNo", 2);
940
952
  __decorateClass([
941
953
  (0, import_typeorm9.Column)({ name: "aba_no", type: "varchar", nullable: true })
942
- ], BankDetails.prototype, "abaNumber", 2);
954
+ ], BankDetail.prototype, "abaNumber", 2);
943
955
  __decorateClass([
944
956
  (0, import_typeorm9.Column)({ name: "iban", type: "varchar", nullable: true })
945
- ], BankDetails.prototype, "iban", 2);
957
+ ], BankDetail.prototype, "iban", 2);
946
958
  __decorateClass([
947
959
  (0, import_typeorm9.Column)({
948
960
  name: "account_type",
@@ -950,7 +962,7 @@ __decorateClass([
950
962
  enum: BankAccountType,
951
963
  default: "PRIMARY" /* PRIMARY */
952
964
  })
953
- ], BankDetails.prototype, "accountType", 2);
965
+ ], BankDetail.prototype, "accountType", 2);
954
966
  __decorateClass([
955
967
  (0, import_typeorm9.Column)({
956
968
  name: "account_scope",
@@ -958,10 +970,10 @@ __decorateClass([
958
970
  enum: BankAccountScope,
959
971
  default: "domestic" /* DOMESTIC */
960
972
  })
961
- ], BankDetails.prototype, "accountScope", 2);
962
- BankDetails = __decorateClass([
973
+ ], BankDetail.prototype, "accountScope", 2);
974
+ BankDetail = __decorateClass([
963
975
  (0, import_typeorm9.Entity)("bank_details")
964
- ], BankDetails);
976
+ ], BankDetail);
965
977
 
966
978
  // src/entities/user.entity.ts
967
979
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
@@ -1067,8 +1079,8 @@ __decorateClass([
1067
1079
  (0, import_typeorm10.OneToMany)(() => Job, (job) => job.user)
1068
1080
  ], User.prototype, "jobs", 2);
1069
1081
  __decorateClass([
1070
- (0, import_typeorm10.OneToMany)(() => BankDetails, (bankDetails) => bankDetails.user)
1071
- ], User.prototype, "bankDetails", 2);
1082
+ (0, import_typeorm10.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
1083
+ ], User.prototype, "bankDetail", 2);
1072
1084
  User = __decorateClass([
1073
1085
  (0, import_typeorm10.Entity)("users")
1074
1086
  ], User);
@@ -1424,7 +1436,9 @@ __decorateClass([
1424
1436
 
1425
1437
  // src/modules/bank/pattern/pattern.ts
1426
1438
  var BANK_PATTERN = {
1427
- addFreelancerBankDetails: "add.freelancer.bankdetails"
1439
+ addFreelancerBankDetails: "add.freelancer.bankdetails",
1440
+ fetchFreelancerBankDetails: "fetch.freelancer.bank.details",
1441
+ updateFreelancerBankDetails: "update.freelancer.bank.details"
1428
1442
  };
1429
1443
 
1430
1444
  // src/modules/bank/dto/freelancer-bank-details.dto.ts
@@ -1682,7 +1696,7 @@ JobRoles = __decorateClass([
1682
1696
  BANK_PATTERN,
1683
1697
  BankAccountScope,
1684
1698
  BankAccountType,
1685
- BankDetails,
1699
+ BankDetail,
1686
1700
  BaseEntity,
1687
1701
  CLIENT_PROFILE_PATTERN,
1688
1702
  ClientChangePasswordDto,
@@ -1736,6 +1750,7 @@ JobRoles = __decorateClass([
1736
1750
  RefreshToken,
1737
1751
  ResumeParserLog,
1738
1752
  SUBADMIN_PATTERN,
1753
+ ScopeEnum,
1739
1754
  Skill,
1740
1755
  Step,
1741
1756
  TypeOfEmploymentEnum,
package/dist/index.mjs CHANGED
@@ -21,9 +21,13 @@ var AUTHENTICATION_PATTERN = {
21
21
  };
22
22
 
23
23
  // src/modules/authentication/dto/login.dto.ts
24
- import {
25
- IsNotEmpty
26
- } from "class-validator";
24
+ import { IsEnum, IsNotEmpty } from "class-validator";
25
+ var ScopeEnum = /* @__PURE__ */ ((ScopeEnum2) => {
26
+ ScopeEnum2["ADMIN"] = "ADMIN";
27
+ ScopeEnum2["CLIENT"] = "CLIENT";
28
+ ScopeEnum2["FREELANCER"] = "FREELANCER";
29
+ return ScopeEnum2;
30
+ })(ScopeEnum || {});
27
31
  var LoginDto = class {
28
32
  };
29
33
  __decorateClass([
@@ -32,6 +36,11 @@ __decorateClass([
32
36
  __decorateClass([
33
37
  IsNotEmpty({ message: "Please enter password." })
34
38
  ], LoginDto.prototype, "password", 2);
39
+ __decorateClass([
40
+ IsEnum(ScopeEnum, {
41
+ message: `Scope must be one of: ${Object.values(ScopeEnum).join(", ")}`
42
+ })
43
+ ], LoginDto.prototype, "scope", 2);
35
44
 
36
45
  // src/modules/authentication/dto/refresh.dto.ts
37
46
  import {
@@ -410,7 +419,7 @@ var CLIENT_PROFILE_PATTERN = {
410
419
 
411
420
  // src/modules/user/client-profile/dto/update-client-profile.dto.ts
412
421
  import {
413
- IsEnum,
422
+ IsEnum as IsEnum2,
414
423
  IsOptional as IsOptional4,
415
424
  IsString as IsString8,
416
425
  IsArray,
@@ -911,50 +920,50 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
911
920
  BankAccountScope2["INTERNATIONAL"] = "international";
912
921
  return BankAccountScope2;
913
922
  })(BankAccountScope || {});
914
- var BankDetails = class extends BaseEntity {
923
+ var BankDetail = class extends BaseEntity {
915
924
  };
916
925
  // individual index to find bank details by user
917
926
  __decorateClass([
918
927
  Column9({ name: "user_id", type: "integer", nullable: true }),
919
928
  Index5()
920
- ], BankDetails.prototype, "userId", 2);
929
+ ], BankDetail.prototype, "userId", 2);
921
930
  __decorateClass([
922
- ManyToOne7(() => User, (user) => user.bankDetails),
931
+ ManyToOne7(() => User, (user) => user.bankDetail),
923
932
  JoinColumn7({ name: "user_id" })
924
- ], BankDetails.prototype, "user", 2);
933
+ ], BankDetail.prototype, "user", 2);
925
934
  __decorateClass([
926
935
  Column9({ name: "name", type: "varchar", nullable: true })
927
- ], BankDetails.prototype, "name", 2);
936
+ ], BankDetail.prototype, "name", 2);
928
937
  __decorateClass([
929
938
  Column9({ name: "mobile", type: "varchar", unique: true, nullable: true })
930
- ], BankDetails.prototype, "mobile", 2);
939
+ ], BankDetail.prototype, "mobile", 2);
931
940
  __decorateClass([
932
941
  Column9({ name: "email", type: "varchar", unique: true })
933
- ], BankDetails.prototype, "email", 2);
942
+ ], BankDetail.prototype, "email", 2);
934
943
  __decorateClass([
935
944
  Column9({ name: "address", type: "varchar", nullable: true })
936
- ], BankDetails.prototype, "address", 2);
945
+ ], BankDetail.prototype, "address", 2);
937
946
  __decorateClass([
938
947
  Column9({ name: "account_number", type: "varchar", unique: true, nullable: true })
939
- ], BankDetails.prototype, "accountNumber", 2);
948
+ ], BankDetail.prototype, "accountNumber", 2);
940
949
  __decorateClass([
941
950
  Column9({ name: "bank_name", type: "varchar", nullable: true })
942
- ], BankDetails.prototype, "bankName", 2);
951
+ ], BankDetail.prototype, "bankName", 2);
943
952
  __decorateClass([
944
953
  Column9({ name: "ifsc_code", type: "varchar", nullable: true })
945
- ], BankDetails.prototype, "ifscCode", 2);
954
+ ], BankDetail.prototype, "ifscCode", 2);
946
955
  __decorateClass([
947
956
  Column9({ name: "branch_name", type: "varchar", nullable: true })
948
- ], BankDetails.prototype, "branchName", 2);
957
+ ], BankDetail.prototype, "branchName", 2);
949
958
  __decorateClass([
950
959
  Column9({ name: "routing_no", type: "varchar", nullable: true })
951
- ], BankDetails.prototype, "routingNo", 2);
960
+ ], BankDetail.prototype, "routingNo", 2);
952
961
  __decorateClass([
953
962
  Column9({ name: "aba_no", type: "varchar", nullable: true })
954
- ], BankDetails.prototype, "abaNumber", 2);
963
+ ], BankDetail.prototype, "abaNumber", 2);
955
964
  __decorateClass([
956
965
  Column9({ name: "iban", type: "varchar", nullable: true })
957
- ], BankDetails.prototype, "iban", 2);
966
+ ], BankDetail.prototype, "iban", 2);
958
967
  __decorateClass([
959
968
  Column9({
960
969
  name: "account_type",
@@ -962,7 +971,7 @@ __decorateClass([
962
971
  enum: BankAccountType,
963
972
  default: "PRIMARY" /* PRIMARY */
964
973
  })
965
- ], BankDetails.prototype, "accountType", 2);
974
+ ], BankDetail.prototype, "accountType", 2);
966
975
  __decorateClass([
967
976
  Column9({
968
977
  name: "account_scope",
@@ -970,10 +979,10 @@ __decorateClass([
970
979
  enum: BankAccountScope,
971
980
  default: "domestic" /* DOMESTIC */
972
981
  })
973
- ], BankDetails.prototype, "accountScope", 2);
974
- BankDetails = __decorateClass([
982
+ ], BankDetail.prototype, "accountScope", 2);
983
+ BankDetail = __decorateClass([
975
984
  Entity8("bank_details")
976
- ], BankDetails);
985
+ ], BankDetail);
977
986
 
978
987
  // src/entities/user.entity.ts
979
988
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
@@ -1079,8 +1088,8 @@ __decorateClass([
1079
1088
  OneToMany5(() => Job, (job) => job.user)
1080
1089
  ], User.prototype, "jobs", 2);
1081
1090
  __decorateClass([
1082
- OneToMany5(() => BankDetails, (bankDetails) => bankDetails.user)
1083
- ], User.prototype, "bankDetails", 2);
1091
+ OneToMany5(() => BankDetail, (bankDetail) => bankDetail.user)
1092
+ ], User.prototype, "bankDetail", 2);
1084
1093
  User = __decorateClass([
1085
1094
  Entity9("users")
1086
1095
  ], User);
@@ -1211,19 +1220,19 @@ __decorateClass([
1211
1220
  ], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
1212
1221
  __decorateClass([
1213
1222
  IsOptional4(),
1214
- IsEnum(KindOfHire, {
1223
+ IsEnum2(KindOfHire, {
1215
1224
  message: `Kind of hiring must be one of: ${Object.values(KindOfHire).join(", ")}`
1216
1225
  })
1217
1226
  ], UpdateCompanyProfileDto.prototype, "kindOfHiring", 2);
1218
1227
  __decorateClass([
1219
1228
  IsOptional4(),
1220
- IsEnum(ModeOfHire, {
1229
+ IsEnum2(ModeOfHire, {
1221
1230
  message: `Mode of hire must be one of: ${Object.values(ModeOfHire).join(", ")}`
1222
1231
  })
1223
1232
  ], UpdateCompanyProfileDto.prototype, "modeOfHire", 2);
1224
1233
  __decorateClass([
1225
1234
  IsOptional4(),
1226
- IsEnum(FromUsOn, {
1235
+ IsEnum2(FromUsOn, {
1227
1236
  message: `Found us on must be one of: ${Object.values(FromUsOn).join(", ")}`
1228
1237
  })
1229
1238
  ], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
@@ -1309,7 +1318,7 @@ import {
1309
1318
  ArrayNotEmpty,
1310
1319
  IsNumber as IsNumber2,
1311
1320
  IsOptional as IsOptional6,
1312
- IsEnum as IsEnum2,
1321
+ IsEnum as IsEnum3,
1313
1322
  Min
1314
1323
  } from "class-validator";
1315
1324
  import { Type } from "class-transformer";
@@ -1347,14 +1356,14 @@ __decorateClass([
1347
1356
  Type(() => Number)
1348
1357
  ], JobBasicInformationDto.prototype, "openings", 2);
1349
1358
  __decorateClass([
1350
- IsEnum2(JobLocation, {
1359
+ IsEnum3(JobLocation, {
1351
1360
  message: `Location must be one of: ${Object.values(JobLocation).join(
1352
1361
  ", "
1353
1362
  )}`
1354
1363
  })
1355
1364
  ], JobBasicInformationDto.prototype, "location", 2);
1356
1365
  __decorateClass([
1357
- IsEnum2(EmploymentType, {
1366
+ IsEnum3(EmploymentType, {
1358
1367
  message: `Type of employment must be one of: ${Object.values(
1359
1368
  EmploymentType
1360
1369
  ).join(", ")}`
@@ -1400,7 +1409,7 @@ __decorateClass([
1400
1409
  ], JobDescriptionDto.prototype, "description", 2);
1401
1410
 
1402
1411
  // src/modules/job/dto/job-status.dto.ts
1403
- import { IsEnum as IsEnum3, IsNotEmpty as IsNotEmpty17 } from "class-validator";
1412
+ import { IsEnum as IsEnum4, IsNotEmpty as IsNotEmpty17 } from "class-validator";
1404
1413
  var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
1405
1414
  JobStatus2["ACTIVE"] = "ACTIVE";
1406
1415
  JobStatus2["OPEN"] = "OPEN";
@@ -1413,7 +1422,7 @@ var JobStatusDto = class {
1413
1422
  };
1414
1423
  __decorateClass([
1415
1424
  IsNotEmpty17({ message: "Please provide a job status" }),
1416
- IsEnum3(JobStatus, {
1425
+ IsEnum4(JobStatus, {
1417
1426
  message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
1418
1427
  })
1419
1428
  ], JobStatusDto.prototype, "status", 2);
@@ -1461,7 +1470,9 @@ __decorateClass([
1461
1470
 
1462
1471
  // src/modules/bank/pattern/pattern.ts
1463
1472
  var BANK_PATTERN = {
1464
- addFreelancerBankDetails: "add.freelancer.bankdetails"
1473
+ addFreelancerBankDetails: "add.freelancer.bankdetails",
1474
+ fetchFreelancerBankDetails: "fetch.freelancer.bank.details",
1475
+ updateFreelancerBankDetails: "update.freelancer.bank.details"
1465
1476
  };
1466
1477
 
1467
1478
  // src/modules/bank/dto/freelancer-bank-details.dto.ts
@@ -1722,7 +1733,7 @@ export {
1722
1733
  BANK_PATTERN,
1723
1734
  BankAccountScope,
1724
1735
  BankAccountType,
1725
- BankDetails,
1736
+ BankDetail,
1726
1737
  BaseEntity,
1727
1738
  CLIENT_PROFILE_PATTERN,
1728
1739
  ClientChangePasswordDto,
@@ -1776,6 +1787,7 @@ export {
1776
1787
  RefreshToken,
1777
1788
  ResumeParserLog,
1778
1789
  SUBADMIN_PATTERN,
1790
+ ScopeEnum,
1779
1791
  Skill,
1780
1792
  Step,
1781
1793
  TypeOfEmploymentEnum,
@@ -1,4 +1,10 @@
1
+ export declare enum ScopeEnum {
2
+ ADMIN = "ADMIN",
3
+ CLIENT = "CLIENT",
4
+ FREELANCER = "FREELANCER"
5
+ }
1
6
  export declare class LoginDto {
2
7
  email: string;
3
8
  password: string;
9
+ scope: ScopeEnum;
4
10
  }
@@ -1,3 +1,5 @@
1
1
  export declare const BANK_PATTERN: {
2
2
  addFreelancerBankDetails: string;
3
+ fetchFreelancerBankDetails: string;
4
+ updateFreelancerBankDetails: string;
3
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.94",
3
+ "version": "1.0.96",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",