@experts_hub/shared 1.0.102 → 1.0.103

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.
@@ -0,0 +1,6 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { Plan } from './plan.entity';
3
+ export declare class Feature extends BaseEntity {
4
+ name: string;
5
+ plans: Plan[];
6
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { Feature } from './feature.entity';
3
+ export declare class Plan extends BaseEntity {
4
+ name: string;
5
+ description: string;
6
+ price: number;
7
+ billingPeriod: string;
8
+ isCurrent: boolean;
9
+ features: Feature[];
10
+ }
package/dist/index.d.mts CHANGED
@@ -672,6 +672,17 @@ declare class FreelancerBankDetailsDto {
672
672
  accountScope: BankAccountScope;
673
673
  }
674
674
 
675
+ declare const PLAN_PATTERN: {
676
+ fetchPlans: string;
677
+ };
678
+
679
+ interface IFetchPlanResponse {
680
+ statusCode: number;
681
+ status: boolean;
682
+ message: string;
683
+ data: any;
684
+ }
685
+
675
686
  declare const UserTCPAdapter: () => MicroserviceOptions;
676
687
 
677
688
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -708,4 +719,4 @@ declare class JobRoles extends BaseEntity {
708
719
  isActive: boolean;
709
720
  }
710
721
 
711
- 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, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
722
+ 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 IFetchPlanResponse, 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, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Provider, 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
@@ -672,6 +672,17 @@ declare class FreelancerBankDetailsDto {
672
672
  accountScope: BankAccountScope;
673
673
  }
674
674
 
675
+ declare const PLAN_PATTERN: {
676
+ fetchPlans: string;
677
+ };
678
+
679
+ interface IFetchPlanResponse {
680
+ statusCode: number;
681
+ status: boolean;
682
+ message: string;
683
+ data: any;
684
+ }
685
+
675
686
  declare const UserTCPAdapter: () => MicroserviceOptions;
676
687
 
677
688
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -708,4 +719,4 @@ declare class JobRoles extends BaseEntity {
708
719
  isActive: boolean;
709
720
  }
710
721
 
711
- 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, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
722
+ 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 IFetchPlanResponse, 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, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PLAN_PATTERN, PROFILE_PATTERN, Provider, 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
@@ -81,6 +81,7 @@ __export(index_exports, {
81
81
  OTP_PATTERN: () => OTP_PATTERN,
82
82
  OnboardingStepEnum: () => OnboardingStepEnum,
83
83
  Otp: () => Otp,
84
+ PLAN_PATTERN: () => PLAN_PATTERN,
84
85
  PROFILE_PATTERN: () => PROFILE_PATTERN,
85
86
  Provider: () => Provider,
86
87
  QUESTION_PATTERN: () => QUESTION_PATTERN,
@@ -1535,6 +1536,11 @@ __decorateClass([
1535
1536
  })
1536
1537
  ], FreelancerBankDetailsDto.prototype, "accountScope", 2);
1537
1538
 
1539
+ // src/modules/plan/pattern/pattern.ts
1540
+ var PLAN_PATTERN = {
1541
+ fetchPlans: "fetch.plans"
1542
+ };
1543
+
1538
1544
  // src/adapters/tcp/user.tcp.adapter.ts
1539
1545
  var import_dotenv = require("dotenv");
1540
1546
  var import_microservices = require("@nestjs/microservices");
@@ -1862,6 +1868,7 @@ JobRoles = __decorateClass([
1862
1868
  OTP_PATTERN,
1863
1869
  OnboardingStepEnum,
1864
1870
  Otp,
1871
+ PLAN_PATTERN,
1865
1872
  PROFILE_PATTERN,
1866
1873
  Provider,
1867
1874
  QUESTION_PATTERN,
package/dist/index.mjs CHANGED
@@ -1570,6 +1570,11 @@ __decorateClass([
1570
1570
  })
1571
1571
  ], FreelancerBankDetailsDto.prototype, "accountScope", 2);
1572
1572
 
1573
+ // src/modules/plan/pattern/pattern.ts
1574
+ var PLAN_PATTERN = {
1575
+ fetchPlans: "fetch.plans"
1576
+ };
1577
+
1573
1578
  // src/adapters/tcp/user.tcp.adapter.ts
1574
1579
  import { config } from "dotenv";
1575
1580
  import { Transport } from "@nestjs/microservices";
@@ -1896,6 +1901,7 @@ export {
1896
1901
  OTP_PATTERN,
1897
1902
  OnboardingStepEnum,
1898
1903
  Otp,
1904
+ PLAN_PATTERN,
1899
1905
  PROFILE_PATTERN,
1900
1906
  Provider,
1901
1907
  QUESTION_PATTERN,
@@ -8,3 +8,4 @@ export * from './question';
8
8
  export * from './job';
9
9
  export * from './user/freelancer-profile';
10
10
  export * from './bank';
11
+ export * from './plan';
@@ -0,0 +1,2 @@
1
+ export * from './pattern/pattern';
2
+ export * from './plan.interface';
@@ -0,0 +1,3 @@
1
+ export declare const PLAN_PATTERN: {
2
+ fetchPlans: string;
3
+ };
@@ -0,0 +1,6 @@
1
+ export interface IFetchPlanResponse {
2
+ statusCode: number;
3
+ status: boolean;
4
+ message: string;
5
+ data: any;
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.102",
3
+ "version": "1.0.103",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",