@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.
@@ -1,2 +1,7 @@
1
- import { ValidationOptions } from "class-validator";
1
+ import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from "class-validator";
2
2
  export declare function Match(property: string, validationOptions?: ValidationOptions): (object: any, propertyName: string) => void;
3
+ export declare class IfscOrOtherFieldsConstraint implements ValidatorConstraintInterface {
4
+ validate(value: any, args: ValidationArguments): any;
5
+ defaultMessage(args: ValidationArguments): string;
6
+ }
7
+ export declare function IfscOrOtherFields(relatedFields: string[], validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
@@ -0,0 +1,27 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { User } from "./user.entity";
3
+ export declare enum BankAccountType {
4
+ PRIMARY = "PRIMARY",
5
+ SECONDARY = "SECONDARY"
6
+ }
7
+ export declare enum BankAccountScope {
8
+ DOMESTIC = "domestic",
9
+ INTERNATIONAL = "international"
10
+ }
11
+ export declare class bankDetails extends BaseEntity {
12
+ userId: number;
13
+ user: User;
14
+ name: string;
15
+ mobile: string;
16
+ email: string;
17
+ address: string;
18
+ accountNumber: string;
19
+ bankName: string;
20
+ ifscCode: string;
21
+ branchName: string;
22
+ routingNo: string;
23
+ abaNumber: string;
24
+ iban: string;
25
+ accountType: BankAccountType;
26
+ accountScope: BankAccountScope;
27
+ }
@@ -10,3 +10,4 @@ export * from './skill.entity';
10
10
  export * from './job-role.entity';
11
11
  export * from './job-entity';
12
12
  export * from './job-skill.entity';
13
+ export * from './bank-details.entity';
@@ -5,6 +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
9
  export declare enum AccountType {
9
10
  ADMIN = "ADMIN",
10
11
  SUB_ADMIN = "SUB_ADMIN",
@@ -41,4 +42,5 @@ export declare class User extends BaseEntity {
41
42
  freelancerProfile: FreelancerProfile;
42
43
  companyProfile: CompanyProfile;
43
44
  jobs: Job[];
45
+ bankDetails: bankDetails[];
44
46
  }
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 {
@@ -345,6 +346,32 @@ declare class Job extends BaseEntity {
345
346
  jobSkills: JobSkill[];
346
347
  }
347
348
 
349
+ declare enum BankAccountType {
350
+ PRIMARY = "PRIMARY",
351
+ SECONDARY = "SECONDARY"
352
+ }
353
+ declare enum BankAccountScope {
354
+ DOMESTIC = "domestic",
355
+ INTERNATIONAL = "international"
356
+ }
357
+ declare class bankDetails extends BaseEntity {
358
+ userId: number;
359
+ user: User;
360
+ name: string;
361
+ mobile: string;
362
+ email: string;
363
+ address: string;
364
+ accountNumber: string;
365
+ bankName: string;
366
+ ifscCode: string;
367
+ branchName: string;
368
+ routingNo: string;
369
+ abaNumber: string;
370
+ iban: string;
371
+ accountType: BankAccountType;
372
+ accountScope: BankAccountScope;
373
+ }
374
+
348
375
  declare enum AccountType {
349
376
  ADMIN = "ADMIN",
350
377
  SUB_ADMIN = "SUB_ADMIN",
@@ -381,6 +408,7 @@ declare class User extends BaseEntity {
381
408
  freelancerProfile: FreelancerProfile;
382
409
  companyProfile: CompanyProfile;
383
410
  jobs: Job[];
411
+ bankDetails: bankDetails[];
384
412
  }
385
413
 
386
414
  declare enum KindOfHire {
@@ -431,6 +459,11 @@ declare class UpdateCompanyProfileDto {
431
459
  foundUsOn?: FromUsOn;
432
460
  }
433
461
 
462
+ declare class ClientChangePasswordDto {
463
+ oldPassword: string;
464
+ newPassword: string;
465
+ }
466
+
434
467
  interface IFetchClientProfileQuery {
435
468
  page_size?: number;
436
469
  page: number;
@@ -461,15 +494,24 @@ interface IUpdateClientProfilePayload {
461
494
  modeOfHire?: string;
462
495
  foundUsOn?: string;
463
496
  }
464
- interface IUpdateClientProfileResponse {
497
+ interface IUpdateClientLogoPayload {
498
+ logo: string;
499
+ }
500
+ interface IUpdateClientLogoResponse {
465
501
  statusCode: number;
466
502
  status: boolean;
467
503
  message: string;
468
504
  }
469
- interface IUpdateClientLogoPayload {
470
- logo: string;
505
+ interface IUpdateClientPasswordPayload {
506
+ oldPassword: string;
507
+ newPassword: string;
471
508
  }
472
- interface IUpdateClientLogoResponse {
509
+ interface IUpdateClientProfileResponse {
510
+ statusCode: number;
511
+ status: boolean;
512
+ message: string;
513
+ }
514
+ interface IUpdateClientProfileResponse {
473
515
  statusCode: number;
474
516
  status: boolean;
475
517
  message: string;
@@ -519,6 +561,25 @@ declare class FreelancerChangePasswordDto {
519
561
  newPassword: string;
520
562
  }
521
563
 
564
+ declare const BANK_PATTERN: {
565
+ addFreelancerBankDetails: string;
566
+ };
567
+
568
+ declare class FreelancerBankDetailsDto {
569
+ name: string;
570
+ mobile: string;
571
+ email: string;
572
+ address: string;
573
+ accountNumber: string;
574
+ bankName: string;
575
+ branchName: string;
576
+ ifscCode: string;
577
+ routingNo: string;
578
+ abaNumber: string;
579
+ iban: string;
580
+ accountType: string;
581
+ }
582
+
522
583
  declare const UserTCPAdapter: () => MicroserviceOptions;
523
584
 
524
585
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -551,4 +612,4 @@ declare class JobRoles extends BaseEntity {
551
612
  isActive: boolean;
552
613
  }
553
614
 
554
- 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 };
615
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, 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_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, bankDetails };
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 {
@@ -345,6 +346,32 @@ declare class Job extends BaseEntity {
345
346
  jobSkills: JobSkill[];
346
347
  }
347
348
 
349
+ declare enum BankAccountType {
350
+ PRIMARY = "PRIMARY",
351
+ SECONDARY = "SECONDARY"
352
+ }
353
+ declare enum BankAccountScope {
354
+ DOMESTIC = "domestic",
355
+ INTERNATIONAL = "international"
356
+ }
357
+ declare class bankDetails extends BaseEntity {
358
+ userId: number;
359
+ user: User;
360
+ name: string;
361
+ mobile: string;
362
+ email: string;
363
+ address: string;
364
+ accountNumber: string;
365
+ bankName: string;
366
+ ifscCode: string;
367
+ branchName: string;
368
+ routingNo: string;
369
+ abaNumber: string;
370
+ iban: string;
371
+ accountType: BankAccountType;
372
+ accountScope: BankAccountScope;
373
+ }
374
+
348
375
  declare enum AccountType {
349
376
  ADMIN = "ADMIN",
350
377
  SUB_ADMIN = "SUB_ADMIN",
@@ -381,6 +408,7 @@ declare class User extends BaseEntity {
381
408
  freelancerProfile: FreelancerProfile;
382
409
  companyProfile: CompanyProfile;
383
410
  jobs: Job[];
411
+ bankDetails: bankDetails[];
384
412
  }
385
413
 
386
414
  declare enum KindOfHire {
@@ -431,6 +459,11 @@ declare class UpdateCompanyProfileDto {
431
459
  foundUsOn?: FromUsOn;
432
460
  }
433
461
 
462
+ declare class ClientChangePasswordDto {
463
+ oldPassword: string;
464
+ newPassword: string;
465
+ }
466
+
434
467
  interface IFetchClientProfileQuery {
435
468
  page_size?: number;
436
469
  page: number;
@@ -461,15 +494,24 @@ interface IUpdateClientProfilePayload {
461
494
  modeOfHire?: string;
462
495
  foundUsOn?: string;
463
496
  }
464
- interface IUpdateClientProfileResponse {
497
+ interface IUpdateClientLogoPayload {
498
+ logo: string;
499
+ }
500
+ interface IUpdateClientLogoResponse {
465
501
  statusCode: number;
466
502
  status: boolean;
467
503
  message: string;
468
504
  }
469
- interface IUpdateClientLogoPayload {
470
- logo: string;
505
+ interface IUpdateClientPasswordPayload {
506
+ oldPassword: string;
507
+ newPassword: string;
471
508
  }
472
- interface IUpdateClientLogoResponse {
509
+ interface IUpdateClientProfileResponse {
510
+ statusCode: number;
511
+ status: boolean;
512
+ message: string;
513
+ }
514
+ interface IUpdateClientProfileResponse {
473
515
  statusCode: number;
474
516
  status: boolean;
475
517
  message: string;
@@ -519,6 +561,25 @@ declare class FreelancerChangePasswordDto {
519
561
  newPassword: string;
520
562
  }
521
563
 
564
+ declare const BANK_PATTERN: {
565
+ addFreelancerBankDetails: string;
566
+ };
567
+
568
+ declare class FreelancerBankDetailsDto {
569
+ name: string;
570
+ mobile: string;
571
+ email: string;
572
+ address: string;
573
+ accountNumber: string;
574
+ bankName: string;
575
+ branchName: string;
576
+ ifscCode: string;
577
+ routingNo: string;
578
+ abaNumber: string;
579
+ iban: string;
580
+ accountType: string;
581
+ }
582
+
522
583
  declare const UserTCPAdapter: () => MicroserviceOptions;
523
584
 
524
585
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -551,4 +612,4 @@ declare class JobRoles extends BaseEntity {
551
612
  isActive: boolean;
552
613
  }
553
614
 
554
- 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 };
615
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, 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_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, bankDetails };