@experts_hub/shared 1.0.678 → 1.0.682

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.
@@ -85,3 +85,4 @@ export * from './in-app-notification.entity';
85
85
  export * from './plan.entity';
86
86
  export * from './plan-feature.entity';
87
87
  export * from './plan-pricing.entity';
88
+ export * from './subscription-feature.entity';
@@ -3,7 +3,8 @@ import { BaseEntity } from './base.entity';
3
3
  export declare class PlanFeature extends BaseEntity {
4
4
  planId: number;
5
5
  plan: Plan;
6
- label: string;
6
+ name: string;
7
+ slug: string;
7
8
  tooltip: string | null;
8
9
  sortOrder: number;
9
10
  isActive: boolean;
@@ -1,13 +1,13 @@
1
1
  import { Plan } from './plan.entity';
2
2
  import { BaseEntity } from './base.entity';
3
- export declare enum BillingCycle {
3
+ export declare enum PlanPricingBillingCycleEnum {
4
4
  MONTHLY = "monthly",
5
5
  YEARLY = "yearly"
6
6
  }
7
7
  export declare class PlanPricing extends BaseEntity {
8
8
  planId: number;
9
9
  plan: Plan;
10
- billingCycle: BillingCycle;
10
+ billingCycle: PlanPricingBillingCycleEnum;
11
11
  price: number;
12
12
  originalPrice: number | null;
13
13
  discountPct: number | null;
@@ -1,12 +1,17 @@
1
1
  import { BaseEntity } from './base.entity';
2
2
  import { PlanFeature } from './plan-feature.entity';
3
3
  import { PlanPricing } from './plan-pricing.entity';
4
+ export declare enum PlanTypeEnum {
5
+ FREELANCER = "FREELANCER",
6
+ BUSINESS = "BUSINESS"
7
+ }
4
8
  export declare class Plan extends BaseEntity {
5
9
  name: string;
6
10
  slug: string;
7
11
  badgeLabel: string | null;
8
12
  sortOrder: number;
9
13
  isActive: boolean;
14
+ planType: PlanTypeEnum;
10
15
  metadata: Record<string, unknown>;
11
16
  createSlug(): void;
12
17
  features: PlanFeature[];
@@ -0,0 +1,10 @@
1
+ import { BaseEntity } from './base.entity';
2
+ export declare class SubscriptionFeature extends BaseEntity {
3
+ private toSlug;
4
+ name: string;
5
+ slug: string;
6
+ tooltip: string | null;
7
+ sortOrder: number;
8
+ isActive: boolean;
9
+ createSlug(): void;
10
+ }
package/dist/index.d.mts CHANGED
@@ -2562,13 +2562,6 @@ declare const PLAN_PATTERN: {
2562
2562
  fetchPlans: string;
2563
2563
  };
2564
2564
 
2565
- interface IFetchPlanResponse {
2566
- statusCode: number;
2567
- status: boolean;
2568
- message: string;
2569
- data: any;
2570
- }
2571
-
2572
2565
  declare const SYSTEM_PREFERENCES_PATTERN: {
2573
2566
  fetchSystemPreference: string;
2574
2567
  updateSystemPreference: string;
@@ -4671,20 +4664,21 @@ declare class GlobalSetting extends BaseEntity {
4671
4664
  declare class PlanFeature extends BaseEntity {
4672
4665
  planId: number;
4673
4666
  plan: Plan;
4674
- label: string;
4667
+ name: string;
4668
+ slug: string;
4675
4669
  tooltip: string | null;
4676
4670
  sortOrder: number;
4677
4671
  isActive: boolean;
4678
4672
  }
4679
4673
 
4680
- declare enum BillingCycle {
4674
+ declare enum PlanPricingBillingCycleEnum {
4681
4675
  MONTHLY = "monthly",
4682
4676
  YEARLY = "yearly"
4683
4677
  }
4684
4678
  declare class PlanPricing extends BaseEntity {
4685
4679
  planId: number;
4686
4680
  plan: Plan;
4687
- billingCycle: BillingCycle;
4681
+ billingCycle: PlanPricingBillingCycleEnum;
4688
4682
  price: number;
4689
4683
  originalPrice: number | null;
4690
4684
  discountPct: number | null;
@@ -4698,16 +4692,31 @@ declare class PlanPricing extends BaseEntity {
4698
4692
  get savingsAmount(): number | null;
4699
4693
  }
4700
4694
 
4695
+ declare enum PlanTypeEnum {
4696
+ FREELANCER = "FREELANCER",
4697
+ BUSINESS = "BUSINESS"
4698
+ }
4701
4699
  declare class Plan extends BaseEntity {
4702
4700
  name: string;
4703
4701
  slug: string;
4704
4702
  badgeLabel: string | null;
4705
4703
  sortOrder: number;
4706
4704
  isActive: boolean;
4705
+ planType: PlanTypeEnum;
4707
4706
  metadata: Record<string, unknown>;
4708
4707
  createSlug(): void;
4709
4708
  features: PlanFeature[];
4710
4709
  pricing: PlanPricing[];
4711
4710
  }
4712
4711
 
4713
- export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, AI_INTERVIEW_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType$1 as AccountType, AddGlobalSettingDto, AddTopupEscrowAmountDto, AdminCreateJobInformationDto, AdminExportClientV2OptimisedDto, AdminExportFreelancerV2OptimisedDto, AdminFreelancerCreateAccountDto, AdminJobBasicInformationV2Dto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentCreationDto, AiAssessmentStatusEnum, AiInterview, AiInterviewLinkGenerationDto, AiInterviewQuestionGenerateDto, AiInterviewRescheduleRequest, AiInterviewRescheduleRequestStatusEnum, AiInterviewStatusEnum, AiInterviewTemplateGenerationDto, AiQuestionItemDto, AlertBuilder, AlertCategory, type AlertKeyComponents, AlertSeverity, AnswerTypeEnum, ApplicationStatusEnum, ApproveTimesheetsDto, ArchiveSubmissionDto, AssessmentAnswer, AssessmentRequestStatusEnum, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, BillingCycle, BillingCycleEnum, CALENDLY_PATTERN, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_CANDIDATE_PREFERENCE_PATTERN, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMMISSION_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CONTRACT_PATTERN, COUNTRY_PATTERN, CalendlyMeetingLog, CaptureAiAssessmentResultDto, CaptureAiInterviewResultPublicDto, CaseStudyDto, CategoryEmum, ChangeJobApplicationStatusBulkDto, ChangeJobApplicationStatusDto, ChatRMQAdapter, ChatTCPAdapter, CheckResumeEligibilityDto, City, ClientAddFundDto, ClientCandidatePreference, ClientCandidatePreferenceEnum, ClientChangePasswordDto, ClientCreateAccountDto, ClientESignatureDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, ClientServiceAgreementUploadDto, CloseJobDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Contract, ContractRMQAdapter, ContractStatusEnum, ContractSummary, ContractSummaryPreferredEngagementTypeEnum, ContractSummaryStatusEnum, ContractTCPAdapter, ContractTypeEnum, Country, CreateAIInterviewRescheduleRequestDto, CreateAdminRoleDto, CreateCheckoutSessionDto, CreateClientDto, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateDefaultTimesheetLineDto, CreateDisputeDto, CreateF2FInterviewDirectDto, CreateF2FInterviewDto, CreateF2FInterviewRescheduleRequestDto, CreateFreelancerDto, CreateFreelancerTimesheetDto, CreateHiringDto, CreateInAppNotificationDto, CreateInterviewBasicInformationDto, CreateInterviewQuestionsDto, CreateInterviewSkillsDto, CreateInvoiceDto, CreateJobApplicationDto, CreateJobViaAIDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, CreateUserSigningDto, CustomQuestionItemDto, DISPUTE_PATTERN, DOCUSEAL_PATTERN, DebitCommissionFteHiringDto, type DiscordAlertOptions, DiscordAlertService, type DiscordEmbed, type DiscordEmbedField, type DiscordEmbedFooter, DiscordTransport, type DiscordTransportOptions, type DiscordWebhookConfig, type DiscordWebhookPayload, Dispute, DisputeStatusEnum, DocuSeal, DocuSealMessageDto, DocuSealSubmitterDto, DocuSealTypeEnum, DocumentType, DurationTypeEnum, EMAIL_PATTERN, EducationDto, EscrowFundContractDto, EscrowWallet, EscrowWalletTransaction, EscrowWalletTransactionForEnum, EscrowWalletTransactionTypeEnum, EsignContractClientDto, EsignContractFreelancerDto, ExistingCandidateDto, ExperienceDto, F2FInterview, F2FInterviewSchedule, F2F_INTERVIEW_PATTERN, F2fInterviewRescheduleRequest, F2fInterviewRescheduleRequestStatusEnum, F2fInterviewScheduleStatusEnum, F2fInterviewStatusEnum, FREELANCER_ASSESSMENT_REQUEST_PATTERN, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, FetchClientInfoForChatDto, FetchFreelancerInfoForChatDto, ForgotPasswordDto, FreelancerAssessment, FreelancerAssessmentRequest, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerESignatureDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillCategoryEnum, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, GLOBAL_SETTING_PATTERN, GenerateContractDto, GetSubmissionDto, GetSubmitterDto, GetTemplateDto, GlobalSetting, HIRING_PATTERN, HiredFreelancerNatureOfWorkEnum, Hiring, HiringCommissionTypeEnum, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, INTERVIEW_INVITE_PATTERN, INTERVIEW_PATTERN, INVOICE_PATTERN, IN_APP_NOTIFICATION_PATTERN, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, InAppNotification, InitiatorTypeEnum, Interview, InterviewInvite, InterviewInviteDto, InterviewInviteStatusEnum, InterviewQuestion, InterviewQuestionType, InterviewSkill, InterviewSkillItemDto, InterviewStatusEnum, Invoice, InvoicePaymentStatusEnum, InvoiceStatusEnum, InvoiceTypeEnum, JOB_APPLICATION_PATTERN, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobApplicationStatus, JobBasicInformationDto, JobBasicInformationV2Dto, JobDescriptionDto, JobFreelancerRecommendation, JobFreelancerRecommendationV2, JobIdParamDto, JobLocation, JobLocationAdminDto, JobLocationDto, JobLocationEnum$1 as JobLocationEnum, JobRMQAdapter, JobRecommendation, JobRoles, JobSkill, JobSkillCategoryEnum, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, LLM_PATTERN, Lead, LoginDto, LoginUsingUuidDTO, LoginViaOtpDto, LogoutDto, MAINTENANCE_PATTERN, MarkCandidateStatusBulkDto, MarkCandidateStatusDto, McqStatusEnum, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NewCandidateDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, PlanFeature, PlanPricing, PreCheckoutCalculationDto, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, type RateLimitState, RateLimiter, Rating, RatingTypeEnum, RecommendationWeightageConfig, RecordAssessmentAnswerDto, RecordAssessmentAnswersDto, RecordingStatusEnum, RefreshDto, RefreshToken, RejectAIInterviewRescheduleRequestDto, RejectContractDto, RejectF2FInterviewRescheduleRequestDto, RemoveGlobalSettingDto, RequestPasswordChangeOtpForClientDto, RequestPasswordChangeOtpForFreelancerDto, ResetPasswordDto, ResetPasswordTokenValidationDto, ResetUserPasswordByAdminDto, ResubmitTimesheetDto, ResultStatusEnum, ResumeDataProcessingDto, ResumeParsingByUrlDto, SENSELOAF_PATTERN, SIGNATURE_PATTERN, SKILL_PATTERN, SMS_PATTERN, STATE_PATTERN, STRIPE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, SaveSignatureDto, SelectedAnswerTypeEnum, SendAiAssessmentLinkDto, SendBackTimesheetsDto, SendGuestOtpDto, SendInterviewInviteDto, SendLoginOtpDto, SendNdaContractToFreelancerDto, SendOtpDto, SenseloafLog, SequenceGenerator, SetPasswordDto, SignContractForClientDto, SignContractForFreelancerDto, Signature, Skill, SkillCatalog, SkipServiceAgreementFlowDto, SocialAuthDto, State, Step, StripeLog, StripeTransaction, StripeTransactionStatusEnum, StripeTransactionTypeEnum, SubmitTimesheetDto, SystemPreference, SystemPreferenceDto, TIMESHEET_CLIENT_PATTERN, TIMESHEET_FREELANCER_PATTERN, TestNotificationDto, Timesheet, TimesheetLine, TimesheetLineHistory, TimesheetLineHistoryStatusEnum, TimesheetLineStatusEnum, TimesheetLogs, TimesheetStatusEnum, TimesheetSubmissionActionEnum, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TransferFundsDto, TypeOfEmploymentEnum, UpdateAdminClientAccountStatusDto, UpdateAdminClientJobPostingRestrictionDto, UpdateAdminFreelancerAccountStatusDto, UpdateAdminRoleDto, UpdateAdminRoleStatusDto, UpdateAssessmentRequestStatusDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateCmsDto, UpdateCmsStatusDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateFreelancerTimesheetDto, UpdateInterviewBasicInformationDto, UpdateInterviewSettingDto, UpdateInterviewTypeInformationDto, UpdateInvoiceStatusDto, UpdateIsReadDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, ValidateEmailDto, ValidateEmailForLoginDto, ValidateMobileDto, VerifyGuestOtpDto, VerifyOnboardingTokenDto, VerifyOtpDto, VerifyPasswordChangeOtpForClientDto, VerifyPasswordChangeOtpForFreelancerDto, WALLET_ADMIN_PATTERN, WALLET_PATTERN, Wallet, WalletAccountTypeEnum, WalletOnboardingStatusEnum, WalletTransaction, WalletTransactionStatusEnum, WalletTransactionTypeEnum, ZOOM_PATTERN, ZoomMeetingLog, createDiscordTransport, typeOfExperienceEnum };
4712
+ declare class SubscriptionFeature extends BaseEntity {
4713
+ private toSlug;
4714
+ name: string;
4715
+ slug: string;
4716
+ tooltip: string | null;
4717
+ sortOrder: number;
4718
+ isActive: boolean;
4719
+ createSlug(): void;
4720
+ }
4721
+
4722
+ export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, AI_INTERVIEW_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType$1 as AccountType, AddGlobalSettingDto, AddTopupEscrowAmountDto, AdminCreateJobInformationDto, AdminExportClientV2OptimisedDto, AdminExportFreelancerV2OptimisedDto, AdminFreelancerCreateAccountDto, AdminJobBasicInformationV2Dto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentCreationDto, AiAssessmentStatusEnum, AiInterview, AiInterviewLinkGenerationDto, AiInterviewQuestionGenerateDto, AiInterviewRescheduleRequest, AiInterviewRescheduleRequestStatusEnum, AiInterviewStatusEnum, AiInterviewTemplateGenerationDto, AiQuestionItemDto, AlertBuilder, AlertCategory, type AlertKeyComponents, AlertSeverity, AnswerTypeEnum, ApplicationStatusEnum, ApproveTimesheetsDto, ArchiveSubmissionDto, AssessmentAnswer, AssessmentRequestStatusEnum, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, BillingCycleEnum, CALENDLY_PATTERN, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_CANDIDATE_PREFERENCE_PATTERN, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMMISSION_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CONTRACT_PATTERN, COUNTRY_PATTERN, CalendlyMeetingLog, CaptureAiAssessmentResultDto, CaptureAiInterviewResultPublicDto, CaseStudyDto, CategoryEmum, ChangeJobApplicationStatusBulkDto, ChangeJobApplicationStatusDto, ChatRMQAdapter, ChatTCPAdapter, CheckResumeEligibilityDto, City, ClientAddFundDto, ClientCandidatePreference, ClientCandidatePreferenceEnum, ClientChangePasswordDto, ClientCreateAccountDto, ClientESignatureDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, ClientServiceAgreementUploadDto, CloseJobDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Contract, ContractRMQAdapter, ContractStatusEnum, ContractSummary, ContractSummaryPreferredEngagementTypeEnum, ContractSummaryStatusEnum, ContractTCPAdapter, ContractTypeEnum, Country, CreateAIInterviewRescheduleRequestDto, CreateAdminRoleDto, CreateCheckoutSessionDto, CreateClientDto, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateDefaultTimesheetLineDto, CreateDisputeDto, CreateF2FInterviewDirectDto, CreateF2FInterviewDto, CreateF2FInterviewRescheduleRequestDto, CreateFreelancerDto, CreateFreelancerTimesheetDto, CreateHiringDto, CreateInAppNotificationDto, CreateInterviewBasicInformationDto, CreateInterviewQuestionsDto, CreateInterviewSkillsDto, CreateInvoiceDto, CreateJobApplicationDto, CreateJobViaAIDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, CreateUserSigningDto, CustomQuestionItemDto, DISPUTE_PATTERN, DOCUSEAL_PATTERN, DebitCommissionFteHiringDto, type DiscordAlertOptions, DiscordAlertService, type DiscordEmbed, type DiscordEmbedField, type DiscordEmbedFooter, DiscordTransport, type DiscordTransportOptions, type DiscordWebhookConfig, type DiscordWebhookPayload, Dispute, DisputeStatusEnum, DocuSeal, DocuSealMessageDto, DocuSealSubmitterDto, DocuSealTypeEnum, DocumentType, DurationTypeEnum, EMAIL_PATTERN, EducationDto, EscrowFundContractDto, EscrowWallet, EscrowWalletTransaction, EscrowWalletTransactionForEnum, EscrowWalletTransactionTypeEnum, EsignContractClientDto, EsignContractFreelancerDto, ExistingCandidateDto, ExperienceDto, F2FInterview, F2FInterviewSchedule, F2F_INTERVIEW_PATTERN, F2fInterviewRescheduleRequest, F2fInterviewRescheduleRequestStatusEnum, F2fInterviewScheduleStatusEnum, F2fInterviewStatusEnum, FREELANCER_ASSESSMENT_REQUEST_PATTERN, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, FetchClientInfoForChatDto, FetchFreelancerInfoForChatDto, ForgotPasswordDto, FreelancerAssessment, FreelancerAssessmentRequest, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerESignatureDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillCategoryEnum, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, GLOBAL_SETTING_PATTERN, GenerateContractDto, GetSubmissionDto, GetSubmitterDto, GetTemplateDto, GlobalSetting, HIRING_PATTERN, HiredFreelancerNatureOfWorkEnum, Hiring, HiringCommissionTypeEnum, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, INTERVIEW_INVITE_PATTERN, INTERVIEW_PATTERN, INVOICE_PATTERN, IN_APP_NOTIFICATION_PATTERN, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, InAppNotification, InitiatorTypeEnum, Interview, InterviewInvite, InterviewInviteDto, InterviewInviteStatusEnum, InterviewQuestion, InterviewQuestionType, InterviewSkill, InterviewSkillItemDto, InterviewStatusEnum, Invoice, InvoicePaymentStatusEnum, InvoiceStatusEnum, InvoiceTypeEnum, JOB_APPLICATION_PATTERN, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobApplicationStatus, JobBasicInformationDto, JobBasicInformationV2Dto, JobDescriptionDto, JobFreelancerRecommendation, JobFreelancerRecommendationV2, JobIdParamDto, JobLocation, JobLocationAdminDto, JobLocationDto, JobLocationEnum$1 as JobLocationEnum, JobRMQAdapter, JobRecommendation, JobRoles, JobSkill, JobSkillCategoryEnum, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, LLM_PATTERN, Lead, LoginDto, LoginUsingUuidDTO, LoginViaOtpDto, LogoutDto, MAINTENANCE_PATTERN, MarkCandidateStatusBulkDto, MarkCandidateStatusDto, McqStatusEnum, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NewCandidateDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, PlanFeature, PlanPricing, PlanPricingBillingCycleEnum, PlanTypeEnum, PreCheckoutCalculationDto, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, type RateLimitState, RateLimiter, Rating, RatingTypeEnum, RecommendationWeightageConfig, RecordAssessmentAnswerDto, RecordAssessmentAnswersDto, RecordingStatusEnum, RefreshDto, RefreshToken, RejectAIInterviewRescheduleRequestDto, RejectContractDto, RejectF2FInterviewRescheduleRequestDto, RemoveGlobalSettingDto, RequestPasswordChangeOtpForClientDto, RequestPasswordChangeOtpForFreelancerDto, ResetPasswordDto, ResetPasswordTokenValidationDto, ResetUserPasswordByAdminDto, ResubmitTimesheetDto, ResultStatusEnum, ResumeDataProcessingDto, ResumeParsingByUrlDto, SENSELOAF_PATTERN, SIGNATURE_PATTERN, SKILL_PATTERN, SMS_PATTERN, STATE_PATTERN, STRIPE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, SaveSignatureDto, SelectedAnswerTypeEnum, SendAiAssessmentLinkDto, SendBackTimesheetsDto, SendGuestOtpDto, SendInterviewInviteDto, SendLoginOtpDto, SendNdaContractToFreelancerDto, SendOtpDto, SenseloafLog, SequenceGenerator, SetPasswordDto, SignContractForClientDto, SignContractForFreelancerDto, Signature, Skill, SkillCatalog, SkipServiceAgreementFlowDto, SocialAuthDto, State, Step, StripeLog, StripeTransaction, StripeTransactionStatusEnum, StripeTransactionTypeEnum, SubmitTimesheetDto, SubscriptionFeature, SystemPreference, SystemPreferenceDto, TIMESHEET_CLIENT_PATTERN, TIMESHEET_FREELANCER_PATTERN, TestNotificationDto, Timesheet, TimesheetLine, TimesheetLineHistory, TimesheetLineHistoryStatusEnum, TimesheetLineStatusEnum, TimesheetLogs, TimesheetStatusEnum, TimesheetSubmissionActionEnum, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TransferFundsDto, TypeOfEmploymentEnum, UpdateAdminClientAccountStatusDto, UpdateAdminClientJobPostingRestrictionDto, UpdateAdminFreelancerAccountStatusDto, UpdateAdminRoleDto, UpdateAdminRoleStatusDto, UpdateAssessmentRequestStatusDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateCmsDto, UpdateCmsStatusDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateFreelancerTimesheetDto, UpdateInterviewBasicInformationDto, UpdateInterviewSettingDto, UpdateInterviewTypeInformationDto, UpdateInvoiceStatusDto, UpdateIsReadDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, ValidateEmailDto, ValidateEmailForLoginDto, ValidateMobileDto, VerifyGuestOtpDto, VerifyOnboardingTokenDto, VerifyOtpDto, VerifyPasswordChangeOtpForClientDto, VerifyPasswordChangeOtpForFreelancerDto, WALLET_ADMIN_PATTERN, WALLET_PATTERN, Wallet, WalletAccountTypeEnum, WalletOnboardingStatusEnum, WalletTransaction, WalletTransactionStatusEnum, WalletTransactionTypeEnum, ZOOM_PATTERN, ZoomMeetingLog, createDiscordTransport, typeOfExperienceEnum };
package/dist/index.d.ts CHANGED
@@ -2562,13 +2562,6 @@ declare const PLAN_PATTERN: {
2562
2562
  fetchPlans: string;
2563
2563
  };
2564
2564
 
2565
- interface IFetchPlanResponse {
2566
- statusCode: number;
2567
- status: boolean;
2568
- message: string;
2569
- data: any;
2570
- }
2571
-
2572
2565
  declare const SYSTEM_PREFERENCES_PATTERN: {
2573
2566
  fetchSystemPreference: string;
2574
2567
  updateSystemPreference: string;
@@ -4671,20 +4664,21 @@ declare class GlobalSetting extends BaseEntity {
4671
4664
  declare class PlanFeature extends BaseEntity {
4672
4665
  planId: number;
4673
4666
  plan: Plan;
4674
- label: string;
4667
+ name: string;
4668
+ slug: string;
4675
4669
  tooltip: string | null;
4676
4670
  sortOrder: number;
4677
4671
  isActive: boolean;
4678
4672
  }
4679
4673
 
4680
- declare enum BillingCycle {
4674
+ declare enum PlanPricingBillingCycleEnum {
4681
4675
  MONTHLY = "monthly",
4682
4676
  YEARLY = "yearly"
4683
4677
  }
4684
4678
  declare class PlanPricing extends BaseEntity {
4685
4679
  planId: number;
4686
4680
  plan: Plan;
4687
- billingCycle: BillingCycle;
4681
+ billingCycle: PlanPricingBillingCycleEnum;
4688
4682
  price: number;
4689
4683
  originalPrice: number | null;
4690
4684
  discountPct: number | null;
@@ -4698,16 +4692,31 @@ declare class PlanPricing extends BaseEntity {
4698
4692
  get savingsAmount(): number | null;
4699
4693
  }
4700
4694
 
4695
+ declare enum PlanTypeEnum {
4696
+ FREELANCER = "FREELANCER",
4697
+ BUSINESS = "BUSINESS"
4698
+ }
4701
4699
  declare class Plan extends BaseEntity {
4702
4700
  name: string;
4703
4701
  slug: string;
4704
4702
  badgeLabel: string | null;
4705
4703
  sortOrder: number;
4706
4704
  isActive: boolean;
4705
+ planType: PlanTypeEnum;
4707
4706
  metadata: Record<string, unknown>;
4708
4707
  createSlug(): void;
4709
4708
  features: PlanFeature[];
4710
4709
  pricing: PlanPricing[];
4711
4710
  }
4712
4711
 
4713
- export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, AI_INTERVIEW_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType$1 as AccountType, AddGlobalSettingDto, AddTopupEscrowAmountDto, AdminCreateJobInformationDto, AdminExportClientV2OptimisedDto, AdminExportFreelancerV2OptimisedDto, AdminFreelancerCreateAccountDto, AdminJobBasicInformationV2Dto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentCreationDto, AiAssessmentStatusEnum, AiInterview, AiInterviewLinkGenerationDto, AiInterviewQuestionGenerateDto, AiInterviewRescheduleRequest, AiInterviewRescheduleRequestStatusEnum, AiInterviewStatusEnum, AiInterviewTemplateGenerationDto, AiQuestionItemDto, AlertBuilder, AlertCategory, type AlertKeyComponents, AlertSeverity, AnswerTypeEnum, ApplicationStatusEnum, ApproveTimesheetsDto, ArchiveSubmissionDto, AssessmentAnswer, AssessmentRequestStatusEnum, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, BillingCycle, BillingCycleEnum, CALENDLY_PATTERN, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_CANDIDATE_PREFERENCE_PATTERN, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMMISSION_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CONTRACT_PATTERN, COUNTRY_PATTERN, CalendlyMeetingLog, CaptureAiAssessmentResultDto, CaptureAiInterviewResultPublicDto, CaseStudyDto, CategoryEmum, ChangeJobApplicationStatusBulkDto, ChangeJobApplicationStatusDto, ChatRMQAdapter, ChatTCPAdapter, CheckResumeEligibilityDto, City, ClientAddFundDto, ClientCandidatePreference, ClientCandidatePreferenceEnum, ClientChangePasswordDto, ClientCreateAccountDto, ClientESignatureDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, ClientServiceAgreementUploadDto, CloseJobDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Contract, ContractRMQAdapter, ContractStatusEnum, ContractSummary, ContractSummaryPreferredEngagementTypeEnum, ContractSummaryStatusEnum, ContractTCPAdapter, ContractTypeEnum, Country, CreateAIInterviewRescheduleRequestDto, CreateAdminRoleDto, CreateCheckoutSessionDto, CreateClientDto, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateDefaultTimesheetLineDto, CreateDisputeDto, CreateF2FInterviewDirectDto, CreateF2FInterviewDto, CreateF2FInterviewRescheduleRequestDto, CreateFreelancerDto, CreateFreelancerTimesheetDto, CreateHiringDto, CreateInAppNotificationDto, CreateInterviewBasicInformationDto, CreateInterviewQuestionsDto, CreateInterviewSkillsDto, CreateInvoiceDto, CreateJobApplicationDto, CreateJobViaAIDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, CreateUserSigningDto, CustomQuestionItemDto, DISPUTE_PATTERN, DOCUSEAL_PATTERN, DebitCommissionFteHiringDto, type DiscordAlertOptions, DiscordAlertService, type DiscordEmbed, type DiscordEmbedField, type DiscordEmbedFooter, DiscordTransport, type DiscordTransportOptions, type DiscordWebhookConfig, type DiscordWebhookPayload, Dispute, DisputeStatusEnum, DocuSeal, DocuSealMessageDto, DocuSealSubmitterDto, DocuSealTypeEnum, DocumentType, DurationTypeEnum, EMAIL_PATTERN, EducationDto, EscrowFundContractDto, EscrowWallet, EscrowWalletTransaction, EscrowWalletTransactionForEnum, EscrowWalletTransactionTypeEnum, EsignContractClientDto, EsignContractFreelancerDto, ExistingCandidateDto, ExperienceDto, F2FInterview, F2FInterviewSchedule, F2F_INTERVIEW_PATTERN, F2fInterviewRescheduleRequest, F2fInterviewRescheduleRequestStatusEnum, F2fInterviewScheduleStatusEnum, F2fInterviewStatusEnum, FREELANCER_ASSESSMENT_REQUEST_PATTERN, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, FetchClientInfoForChatDto, FetchFreelancerInfoForChatDto, ForgotPasswordDto, FreelancerAssessment, FreelancerAssessmentRequest, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerESignatureDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillCategoryEnum, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, GLOBAL_SETTING_PATTERN, GenerateContractDto, GetSubmissionDto, GetSubmitterDto, GetTemplateDto, GlobalSetting, HIRING_PATTERN, HiredFreelancerNatureOfWorkEnum, Hiring, HiringCommissionTypeEnum, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, INTERVIEW_INVITE_PATTERN, INTERVIEW_PATTERN, INVOICE_PATTERN, IN_APP_NOTIFICATION_PATTERN, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, InAppNotification, InitiatorTypeEnum, Interview, InterviewInvite, InterviewInviteDto, InterviewInviteStatusEnum, InterviewQuestion, InterviewQuestionType, InterviewSkill, InterviewSkillItemDto, InterviewStatusEnum, Invoice, InvoicePaymentStatusEnum, InvoiceStatusEnum, InvoiceTypeEnum, JOB_APPLICATION_PATTERN, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobApplicationStatus, JobBasicInformationDto, JobBasicInformationV2Dto, JobDescriptionDto, JobFreelancerRecommendation, JobFreelancerRecommendationV2, JobIdParamDto, JobLocation, JobLocationAdminDto, JobLocationDto, JobLocationEnum$1 as JobLocationEnum, JobRMQAdapter, JobRecommendation, JobRoles, JobSkill, JobSkillCategoryEnum, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, LLM_PATTERN, Lead, LoginDto, LoginUsingUuidDTO, LoginViaOtpDto, LogoutDto, MAINTENANCE_PATTERN, MarkCandidateStatusBulkDto, MarkCandidateStatusDto, McqStatusEnum, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NewCandidateDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, PlanFeature, PlanPricing, PreCheckoutCalculationDto, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, type RateLimitState, RateLimiter, Rating, RatingTypeEnum, RecommendationWeightageConfig, RecordAssessmentAnswerDto, RecordAssessmentAnswersDto, RecordingStatusEnum, RefreshDto, RefreshToken, RejectAIInterviewRescheduleRequestDto, RejectContractDto, RejectF2FInterviewRescheduleRequestDto, RemoveGlobalSettingDto, RequestPasswordChangeOtpForClientDto, RequestPasswordChangeOtpForFreelancerDto, ResetPasswordDto, ResetPasswordTokenValidationDto, ResetUserPasswordByAdminDto, ResubmitTimesheetDto, ResultStatusEnum, ResumeDataProcessingDto, ResumeParsingByUrlDto, SENSELOAF_PATTERN, SIGNATURE_PATTERN, SKILL_PATTERN, SMS_PATTERN, STATE_PATTERN, STRIPE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, SaveSignatureDto, SelectedAnswerTypeEnum, SendAiAssessmentLinkDto, SendBackTimesheetsDto, SendGuestOtpDto, SendInterviewInviteDto, SendLoginOtpDto, SendNdaContractToFreelancerDto, SendOtpDto, SenseloafLog, SequenceGenerator, SetPasswordDto, SignContractForClientDto, SignContractForFreelancerDto, Signature, Skill, SkillCatalog, SkipServiceAgreementFlowDto, SocialAuthDto, State, Step, StripeLog, StripeTransaction, StripeTransactionStatusEnum, StripeTransactionTypeEnum, SubmitTimesheetDto, SystemPreference, SystemPreferenceDto, TIMESHEET_CLIENT_PATTERN, TIMESHEET_FREELANCER_PATTERN, TestNotificationDto, Timesheet, TimesheetLine, TimesheetLineHistory, TimesheetLineHistoryStatusEnum, TimesheetLineStatusEnum, TimesheetLogs, TimesheetStatusEnum, TimesheetSubmissionActionEnum, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TransferFundsDto, TypeOfEmploymentEnum, UpdateAdminClientAccountStatusDto, UpdateAdminClientJobPostingRestrictionDto, UpdateAdminFreelancerAccountStatusDto, UpdateAdminRoleDto, UpdateAdminRoleStatusDto, UpdateAssessmentRequestStatusDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateCmsDto, UpdateCmsStatusDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateFreelancerTimesheetDto, UpdateInterviewBasicInformationDto, UpdateInterviewSettingDto, UpdateInterviewTypeInformationDto, UpdateInvoiceStatusDto, UpdateIsReadDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, ValidateEmailDto, ValidateEmailForLoginDto, ValidateMobileDto, VerifyGuestOtpDto, VerifyOnboardingTokenDto, VerifyOtpDto, VerifyPasswordChangeOtpForClientDto, VerifyPasswordChangeOtpForFreelancerDto, WALLET_ADMIN_PATTERN, WALLET_PATTERN, Wallet, WalletAccountTypeEnum, WalletOnboardingStatusEnum, WalletTransaction, WalletTransactionStatusEnum, WalletTransactionTypeEnum, ZOOM_PATTERN, ZoomMeetingLog, createDiscordTransport, typeOfExperienceEnum };
4712
+ declare class SubscriptionFeature extends BaseEntity {
4713
+ private toSlug;
4714
+ name: string;
4715
+ slug: string;
4716
+ tooltip: string | null;
4717
+ sortOrder: number;
4718
+ isActive: boolean;
4719
+ createSlug(): void;
4720
+ }
4721
+
4722
+ export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, AI_INTERVIEW_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType$1 as AccountType, AddGlobalSettingDto, AddTopupEscrowAmountDto, AdminCreateJobInformationDto, AdminExportClientV2OptimisedDto, AdminExportFreelancerV2OptimisedDto, AdminFreelancerCreateAccountDto, AdminJobBasicInformationV2Dto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentCreationDto, AiAssessmentStatusEnum, AiInterview, AiInterviewLinkGenerationDto, AiInterviewQuestionGenerateDto, AiInterviewRescheduleRequest, AiInterviewRescheduleRequestStatusEnum, AiInterviewStatusEnum, AiInterviewTemplateGenerationDto, AiQuestionItemDto, AlertBuilder, AlertCategory, type AlertKeyComponents, AlertSeverity, AnswerTypeEnum, ApplicationStatusEnum, ApproveTimesheetsDto, ArchiveSubmissionDto, AssessmentAnswer, AssessmentRequestStatusEnum, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, BillingCycleEnum, CALENDLY_PATTERN, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_CANDIDATE_PREFERENCE_PATTERN, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMMISSION_PATTERN, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CONTRACT_PATTERN, COUNTRY_PATTERN, CalendlyMeetingLog, CaptureAiAssessmentResultDto, CaptureAiInterviewResultPublicDto, CaseStudyDto, CategoryEmum, ChangeJobApplicationStatusBulkDto, ChangeJobApplicationStatusDto, ChatRMQAdapter, ChatTCPAdapter, CheckResumeEligibilityDto, City, ClientAddFundDto, ClientCandidatePreference, ClientCandidatePreferenceEnum, ClientChangePasswordDto, ClientCreateAccountDto, ClientESignatureDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, ClientServiceAgreementUploadDto, CloseJobDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Contract, ContractRMQAdapter, ContractStatusEnum, ContractSummary, ContractSummaryPreferredEngagementTypeEnum, ContractSummaryStatusEnum, ContractTCPAdapter, ContractTypeEnum, Country, CreateAIInterviewRescheduleRequestDto, CreateAdminRoleDto, CreateCheckoutSessionDto, CreateClientDto, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateDefaultTimesheetLineDto, CreateDisputeDto, CreateF2FInterviewDirectDto, CreateF2FInterviewDto, CreateF2FInterviewRescheduleRequestDto, CreateFreelancerDto, CreateFreelancerTimesheetDto, CreateHiringDto, CreateInAppNotificationDto, CreateInterviewBasicInformationDto, CreateInterviewQuestionsDto, CreateInterviewSkillsDto, CreateInvoiceDto, CreateJobApplicationDto, CreateJobViaAIDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, CreateUserSigningDto, CustomQuestionItemDto, DISPUTE_PATTERN, DOCUSEAL_PATTERN, DebitCommissionFteHiringDto, type DiscordAlertOptions, DiscordAlertService, type DiscordEmbed, type DiscordEmbedField, type DiscordEmbedFooter, DiscordTransport, type DiscordTransportOptions, type DiscordWebhookConfig, type DiscordWebhookPayload, Dispute, DisputeStatusEnum, DocuSeal, DocuSealMessageDto, DocuSealSubmitterDto, DocuSealTypeEnum, DocumentType, DurationTypeEnum, EMAIL_PATTERN, EducationDto, EscrowFundContractDto, EscrowWallet, EscrowWalletTransaction, EscrowWalletTransactionForEnum, EscrowWalletTransactionTypeEnum, EsignContractClientDto, EsignContractFreelancerDto, ExistingCandidateDto, ExperienceDto, F2FInterview, F2FInterviewSchedule, F2F_INTERVIEW_PATTERN, F2fInterviewRescheduleRequest, F2fInterviewRescheduleRequestStatusEnum, F2fInterviewScheduleStatusEnum, F2fInterviewStatusEnum, FREELANCER_ASSESSMENT_REQUEST_PATTERN, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, FetchClientInfoForChatDto, FetchFreelancerInfoForChatDto, ForgotPasswordDto, FreelancerAssessment, FreelancerAssessmentRequest, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerESignatureDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillCategoryEnum, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, GLOBAL_SETTING_PATTERN, GenerateContractDto, GetSubmissionDto, GetSubmitterDto, GetTemplateDto, GlobalSetting, HIRING_PATTERN, HiredFreelancerNatureOfWorkEnum, Hiring, HiringCommissionTypeEnum, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, INTERVIEW_INVITE_PATTERN, INTERVIEW_PATTERN, INVOICE_PATTERN, IN_APP_NOTIFICATION_PATTERN, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, InAppNotification, InitiatorTypeEnum, Interview, InterviewInvite, InterviewInviteDto, InterviewInviteStatusEnum, InterviewQuestion, InterviewQuestionType, InterviewSkill, InterviewSkillItemDto, InterviewStatusEnum, Invoice, InvoicePaymentStatusEnum, InvoiceStatusEnum, InvoiceTypeEnum, JOB_APPLICATION_PATTERN, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobApplicationStatus, JobBasicInformationDto, JobBasicInformationV2Dto, JobDescriptionDto, JobFreelancerRecommendation, JobFreelancerRecommendationV2, JobIdParamDto, JobLocation, JobLocationAdminDto, JobLocationDto, JobLocationEnum$1 as JobLocationEnum, JobRMQAdapter, JobRecommendation, JobRoles, JobSkill, JobSkillCategoryEnum, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, LLM_PATTERN, Lead, LoginDto, LoginUsingUuidDTO, LoginViaOtpDto, LogoutDto, MAINTENANCE_PATTERN, MarkCandidateStatusBulkDto, MarkCandidateStatusDto, McqStatusEnum, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NewCandidateDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, PlanFeature, PlanPricing, PlanPricingBillingCycleEnum, PlanTypeEnum, PreCheckoutCalculationDto, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, type RateLimitState, RateLimiter, Rating, RatingTypeEnum, RecommendationWeightageConfig, RecordAssessmentAnswerDto, RecordAssessmentAnswersDto, RecordingStatusEnum, RefreshDto, RefreshToken, RejectAIInterviewRescheduleRequestDto, RejectContractDto, RejectF2FInterviewRescheduleRequestDto, RemoveGlobalSettingDto, RequestPasswordChangeOtpForClientDto, RequestPasswordChangeOtpForFreelancerDto, ResetPasswordDto, ResetPasswordTokenValidationDto, ResetUserPasswordByAdminDto, ResubmitTimesheetDto, ResultStatusEnum, ResumeDataProcessingDto, ResumeParsingByUrlDto, SENSELOAF_PATTERN, SIGNATURE_PATTERN, SKILL_PATTERN, SMS_PATTERN, STATE_PATTERN, STRIPE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, SaveSignatureDto, SelectedAnswerTypeEnum, SendAiAssessmentLinkDto, SendBackTimesheetsDto, SendGuestOtpDto, SendInterviewInviteDto, SendLoginOtpDto, SendNdaContractToFreelancerDto, SendOtpDto, SenseloafLog, SequenceGenerator, SetPasswordDto, SignContractForClientDto, SignContractForFreelancerDto, Signature, Skill, SkillCatalog, SkipServiceAgreementFlowDto, SocialAuthDto, State, Step, StripeLog, StripeTransaction, StripeTransactionStatusEnum, StripeTransactionTypeEnum, SubmitTimesheetDto, SubscriptionFeature, SystemPreference, SystemPreferenceDto, TIMESHEET_CLIENT_PATTERN, TIMESHEET_FREELANCER_PATTERN, TestNotificationDto, Timesheet, TimesheetLine, TimesheetLineHistory, TimesheetLineHistoryStatusEnum, TimesheetLineStatusEnum, TimesheetLogs, TimesheetStatusEnum, TimesheetSubmissionActionEnum, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TransferFundsDto, TypeOfEmploymentEnum, UpdateAdminClientAccountStatusDto, UpdateAdminClientJobPostingRestrictionDto, UpdateAdminFreelancerAccountStatusDto, UpdateAdminRoleDto, UpdateAdminRoleStatusDto, UpdateAssessmentRequestStatusDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateCmsDto, UpdateCmsStatusDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateFreelancerTimesheetDto, UpdateInterviewBasicInformationDto, UpdateInterviewSettingDto, UpdateInterviewTypeInformationDto, UpdateInvoiceStatusDto, UpdateIsReadDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, ValidateEmailDto, ValidateEmailForLoginDto, ValidateMobileDto, VerifyGuestOtpDto, VerifyOnboardingTokenDto, VerifyOtpDto, VerifyPasswordChangeOtpForClientDto, VerifyPasswordChangeOtpForFreelancerDto, WALLET_ADMIN_PATTERN, WALLET_PATTERN, Wallet, WalletAccountTypeEnum, WalletOnboardingStatusEnum, WalletTransaction, WalletTransactionStatusEnum, WalletTransactionTypeEnum, ZOOM_PATTERN, ZoomMeetingLog, createDiscordTransport, typeOfExperienceEnum };
package/dist/index.js CHANGED
@@ -86,7 +86,6 @@ __export(index_exports, {
86
86
  BankAccountTypeEnum: () => BankAccountTypeEnum,
87
87
  BankDetail: () => BankDetail,
88
88
  BaseEntity: () => BaseEntity,
89
- BillingCycle: () => BillingCycle,
90
89
  BillingCycleEnum: () => BillingCycleEnum,
91
90
  CALENDLY_PATTERN: () => CALENDLY_PATTERN,
92
91
  CITY_PATTERN: () => CITY_PATTERN,
@@ -324,6 +323,8 @@ __export(index_exports, {
324
323
  Plan: () => Plan,
325
324
  PlanFeature: () => PlanFeature,
326
325
  PlanPricing: () => PlanPricing,
326
+ PlanPricingBillingCycleEnum: () => PlanPricingBillingCycleEnum,
327
+ PlanTypeEnum: () => PlanTypeEnum,
327
328
  PreCheckoutCalculationDto: () => PreCheckoutCalculationDto,
328
329
  ProjectDto: () => ProjectDto,
329
330
  Provider: () => Provider,
@@ -388,6 +389,7 @@ __export(index_exports, {
388
389
  StripeTransactionStatusEnum: () => StripeTransactionStatusEnum,
389
390
  StripeTransactionTypeEnum: () => StripeTransactionTypeEnum,
390
391
  SubmitTimesheetDto: () => SubmitTimesheetDto,
392
+ SubscriptionFeature: () => SubscriptionFeature,
391
393
  SystemPreference: () => SystemPreference,
392
394
  SystemPreferenceDto: () => SystemPreferenceDto,
393
395
  TIMESHEET_CLIENT_PATTERN: () => TIMESHEET_CLIENT_PATTERN,
@@ -13495,8 +13497,12 @@ __decorateClass([
13495
13497
  (0, import_typeorm85.JoinColumn)({ name: "plan_id" })
13496
13498
  ], PlanFeature.prototype, "plan", 2);
13497
13499
  __decorateClass([
13498
- (0, import_typeorm85.Column)({ name: "label", type: "varchar", length: 200 })
13499
- ], PlanFeature.prototype, "label", 2);
13500
+ (0, import_typeorm85.Column)({ name: "name", type: "varchar", length: 200 })
13501
+ ], PlanFeature.prototype, "name", 2);
13502
+ __decorateClass([
13503
+ (0, import_typeorm85.Column)({ name: "slug", type: "varchar", length: 100 }),
13504
+ (0, import_typeorm85.Index)()
13505
+ ], PlanFeature.prototype, "slug", 2);
13500
13506
  __decorateClass([
13501
13507
  (0, import_typeorm85.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
13502
13508
  ], PlanFeature.prototype, "tooltip", 2);
@@ -13515,11 +13521,11 @@ PlanFeature = __decorateClass([
13515
13521
 
13516
13522
  // src/entities/plan-pricing.entity.ts
13517
13523
  var import_typeorm86 = require("typeorm");
13518
- var BillingCycle = /* @__PURE__ */ ((BillingCycle2) => {
13519
- BillingCycle2["MONTHLY"] = "monthly";
13520
- BillingCycle2["YEARLY"] = "yearly";
13521
- return BillingCycle2;
13522
- })(BillingCycle || {});
13524
+ var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
13525
+ PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
13526
+ PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
13527
+ return PlanPricingBillingCycleEnum2;
13528
+ })(PlanPricingBillingCycleEnum || {});
13523
13529
  var PlanPricing = class extends BaseEntity {
13524
13530
  sanitize() {
13525
13531
  if (this.currency) {
@@ -13583,7 +13589,7 @@ __decorateClass([
13583
13589
  (0, import_typeorm86.Column)({
13584
13590
  name: "billing_cycle",
13585
13591
  type: "enum",
13586
- enum: BillingCycle
13592
+ enum: PlanPricingBillingCycleEnum
13587
13593
  })
13588
13594
  ], PlanPricing.prototype, "billingCycle", 2);
13589
13595
  __decorateClass([
@@ -13627,6 +13633,11 @@ PlanPricing = __decorateClass([
13627
13633
  ], PlanPricing);
13628
13634
 
13629
13635
  // src/entities/plan.entity.ts
13636
+ var PlanTypeEnum = /* @__PURE__ */ ((PlanTypeEnum2) => {
13637
+ PlanTypeEnum2["FREELANCER"] = "FREELANCER";
13638
+ PlanTypeEnum2["BUSINESS"] = "BUSINESS";
13639
+ return PlanTypeEnum2;
13640
+ })(PlanTypeEnum || {});
13630
13641
  var Plan = class extends BaseEntity {
13631
13642
  createSlug() {
13632
13643
  if (!this.slug && this.name) {
@@ -13649,6 +13660,14 @@ __decorateClass([
13649
13660
  __decorateClass([
13650
13661
  (0, import_typeorm87.Column)({ name: "is_active", type: "boolean", default: true })
13651
13662
  ], Plan.prototype, "isActive", 2);
13663
+ __decorateClass([
13664
+ (0, import_typeorm87.Column)({
13665
+ name: "plan_type",
13666
+ type: "enum",
13667
+ enum: PlanTypeEnum,
13668
+ default: "BUSINESS" /* BUSINESS */
13669
+ })
13670
+ ], Plan.prototype, "planType", 2);
13652
13671
  __decorateClass([
13653
13672
  (0, import_typeorm87.Column)({ name: "metadata", type: "jsonb", default: {} })
13654
13673
  ], Plan.prototype, "metadata", 2);
@@ -13672,6 +13691,47 @@ Plan = __decorateClass([
13672
13691
  (0, import_typeorm87.Index)("idx_plans_active_sort", ["isActive", "sortOrder"]),
13673
13692
  (0, import_typeorm87.Check)("chk_plans_sort_order_positive", '"sort_order" >= 0')
13674
13693
  ], Plan);
13694
+
13695
+ // src/entities/subscription-feature.entity.ts
13696
+ var import_typeorm88 = require("typeorm");
13697
+ var SubscriptionFeature = class extends BaseEntity {
13698
+ toSlug(value) {
13699
+ return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
13700
+ }
13701
+ createSlug() {
13702
+ if (this.slug) {
13703
+ this.slug = this.toSlug(this.slug);
13704
+ }
13705
+ if (!this.slug && this.name) {
13706
+ this.slug = this.toSlug(this.name);
13707
+ }
13708
+ }
13709
+ };
13710
+ __decorateClass([
13711
+ (0, import_typeorm88.Column)({ name: "name", type: "varchar", length: 200 })
13712
+ ], SubscriptionFeature.prototype, "name", 2);
13713
+ __decorateClass([
13714
+ (0, import_typeorm88.Column)({ name: "slug", type: "varchar", length: 100 })
13715
+ ], SubscriptionFeature.prototype, "slug", 2);
13716
+ __decorateClass([
13717
+ (0, import_typeorm88.Column)({ name: "tooltip", type: "varchar", length: 300, nullable: true })
13718
+ ], SubscriptionFeature.prototype, "tooltip", 2);
13719
+ __decorateClass([
13720
+ (0, import_typeorm88.Column)({ name: "sort_order", type: "smallint", default: 0 })
13721
+ ], SubscriptionFeature.prototype, "sortOrder", 2);
13722
+ __decorateClass([
13723
+ (0, import_typeorm88.Column)({ name: "is_active", type: "boolean", default: true })
13724
+ ], SubscriptionFeature.prototype, "isActive", 2);
13725
+ __decorateClass([
13726
+ (0, import_typeorm88.BeforeInsert)(),
13727
+ (0, import_typeorm88.BeforeUpdate)()
13728
+ ], SubscriptionFeature.prototype, "createSlug", 1);
13729
+ SubscriptionFeature = __decorateClass([
13730
+ (0, import_typeorm88.Entity)("subscription_features"),
13731
+ (0, import_typeorm88.Index)("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
13732
+ (0, import_typeorm88.Index)("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
13733
+ (0, import_typeorm88.Check)("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
13734
+ ], SubscriptionFeature);
13675
13735
  // Annotate the CommonJS export names for ESM import in node:
13676
13736
  0 && (module.exports = {
13677
13737
  ADMIN_FREELANCER_PATTERN,
@@ -13723,7 +13783,6 @@ Plan = __decorateClass([
13723
13783
  BankAccountTypeEnum,
13724
13784
  BankDetail,
13725
13785
  BaseEntity,
13726
- BillingCycle,
13727
13786
  BillingCycleEnum,
13728
13787
  CALENDLY_PATTERN,
13729
13788
  CITY_PATTERN,
@@ -13961,6 +14020,8 @@ Plan = __decorateClass([
13961
14020
  Plan,
13962
14021
  PlanFeature,
13963
14022
  PlanPricing,
14023
+ PlanPricingBillingCycleEnum,
14024
+ PlanTypeEnum,
13964
14025
  PreCheckoutCalculationDto,
13965
14026
  ProjectDto,
13966
14027
  Provider,
@@ -14025,6 +14086,7 @@ Plan = __decorateClass([
14025
14086
  StripeTransactionStatusEnum,
14026
14087
  StripeTransactionTypeEnum,
14027
14088
  SubmitTimesheetDto,
14089
+ SubscriptionFeature,
14028
14090
  SystemPreference,
14029
14091
  SystemPreferenceDto,
14030
14092
  TIMESHEET_CLIENT_PATTERN,
package/dist/index.mjs CHANGED
@@ -13681,8 +13681,12 @@ __decorateClass([
13681
13681
  JoinColumn64({ name: "plan_id" })
13682
13682
  ], PlanFeature.prototype, "plan", 2);
13683
13683
  __decorateClass([
13684
- Column82({ name: "label", type: "varchar", length: 200 })
13685
- ], PlanFeature.prototype, "label", 2);
13684
+ Column82({ name: "name", type: "varchar", length: 200 })
13685
+ ], PlanFeature.prototype, "name", 2);
13686
+ __decorateClass([
13687
+ Column82({ name: "slug", type: "varchar", length: 100 }),
13688
+ Index66()
13689
+ ], PlanFeature.prototype, "slug", 2);
13686
13690
  __decorateClass([
13687
13691
  Column82({ name: "tooltip", type: "varchar", length: 300, nullable: true })
13688
13692
  ], PlanFeature.prototype, "tooltip", 2);
@@ -13711,11 +13715,11 @@ import {
13711
13715
  BeforeInsert,
13712
13716
  BeforeUpdate
13713
13717
  } from "typeorm";
13714
- var BillingCycle = /* @__PURE__ */ ((BillingCycle2) => {
13715
- BillingCycle2["MONTHLY"] = "monthly";
13716
- BillingCycle2["YEARLY"] = "yearly";
13717
- return BillingCycle2;
13718
- })(BillingCycle || {});
13718
+ var PlanPricingBillingCycleEnum = /* @__PURE__ */ ((PlanPricingBillingCycleEnum2) => {
13719
+ PlanPricingBillingCycleEnum2["MONTHLY"] = "monthly";
13720
+ PlanPricingBillingCycleEnum2["YEARLY"] = "yearly";
13721
+ return PlanPricingBillingCycleEnum2;
13722
+ })(PlanPricingBillingCycleEnum || {});
13719
13723
  var PlanPricing = class extends BaseEntity {
13720
13724
  sanitize() {
13721
13725
  if (this.currency) {
@@ -13779,7 +13783,7 @@ __decorateClass([
13779
13783
  Column83({
13780
13784
  name: "billing_cycle",
13781
13785
  type: "enum",
13782
- enum: BillingCycle
13786
+ enum: PlanPricingBillingCycleEnum
13783
13787
  })
13784
13788
  ], PlanPricing.prototype, "billingCycle", 2);
13785
13789
  __decorateClass([
@@ -13823,6 +13827,11 @@ PlanPricing = __decorateClass([
13823
13827
  ], PlanPricing);
13824
13828
 
13825
13829
  // src/entities/plan.entity.ts
13830
+ var PlanTypeEnum = /* @__PURE__ */ ((PlanTypeEnum2) => {
13831
+ PlanTypeEnum2["FREELANCER"] = "FREELANCER";
13832
+ PlanTypeEnum2["BUSINESS"] = "BUSINESS";
13833
+ return PlanTypeEnum2;
13834
+ })(PlanTypeEnum || {});
13826
13835
  var Plan = class extends BaseEntity {
13827
13836
  createSlug() {
13828
13837
  if (!this.slug && this.name) {
@@ -13845,6 +13854,14 @@ __decorateClass([
13845
13854
  __decorateClass([
13846
13855
  Column84({ name: "is_active", type: "boolean", default: true })
13847
13856
  ], Plan.prototype, "isActive", 2);
13857
+ __decorateClass([
13858
+ Column84({
13859
+ name: "plan_type",
13860
+ type: "enum",
13861
+ enum: PlanTypeEnum,
13862
+ default: "BUSINESS" /* BUSINESS */
13863
+ })
13864
+ ], Plan.prototype, "planType", 2);
13848
13865
  __decorateClass([
13849
13866
  Column84({ name: "metadata", type: "jsonb", default: {} })
13850
13867
  ], Plan.prototype, "metadata", 2);
@@ -13868,6 +13885,54 @@ Plan = __decorateClass([
13868
13885
  Index68("idx_plans_active_sort", ["isActive", "sortOrder"]),
13869
13886
  Check4("chk_plans_sort_order_positive", '"sort_order" >= 0')
13870
13887
  ], Plan);
13888
+
13889
+ // src/entities/subscription-feature.entity.ts
13890
+ import {
13891
+ Entity as Entity84,
13892
+ Column as Column85,
13893
+ Check as Check5,
13894
+ Index as Index69,
13895
+ BeforeInsert as BeforeInsert3,
13896
+ BeforeUpdate as BeforeUpdate3
13897
+ } from "typeorm";
13898
+ var SubscriptionFeature = class extends BaseEntity {
13899
+ toSlug(value) {
13900
+ return value.toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "").replace(/-+/g, "-").replace(/^-|-$/g, "");
13901
+ }
13902
+ createSlug() {
13903
+ if (this.slug) {
13904
+ this.slug = this.toSlug(this.slug);
13905
+ }
13906
+ if (!this.slug && this.name) {
13907
+ this.slug = this.toSlug(this.name);
13908
+ }
13909
+ }
13910
+ };
13911
+ __decorateClass([
13912
+ Column85({ name: "name", type: "varchar", length: 200 })
13913
+ ], SubscriptionFeature.prototype, "name", 2);
13914
+ __decorateClass([
13915
+ Column85({ name: "slug", type: "varchar", length: 100 })
13916
+ ], SubscriptionFeature.prototype, "slug", 2);
13917
+ __decorateClass([
13918
+ Column85({ name: "tooltip", type: "varchar", length: 300, nullable: true })
13919
+ ], SubscriptionFeature.prototype, "tooltip", 2);
13920
+ __decorateClass([
13921
+ Column85({ name: "sort_order", type: "smallint", default: 0 })
13922
+ ], SubscriptionFeature.prototype, "sortOrder", 2);
13923
+ __decorateClass([
13924
+ Column85({ name: "is_active", type: "boolean", default: true })
13925
+ ], SubscriptionFeature.prototype, "isActive", 2);
13926
+ __decorateClass([
13927
+ BeforeInsert3(),
13928
+ BeforeUpdate3()
13929
+ ], SubscriptionFeature.prototype, "createSlug", 1);
13930
+ SubscriptionFeature = __decorateClass([
13931
+ Entity84("subscription_features"),
13932
+ Index69("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
13933
+ Index69("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
13934
+ Check5("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
13935
+ ], SubscriptionFeature);
13871
13936
  export {
13872
13937
  ADMIN_FREELANCER_PATTERN,
13873
13938
  ADMIN_JOB_PATTERN,
@@ -13918,7 +13983,6 @@ export {
13918
13983
  BankAccountTypeEnum,
13919
13984
  BankDetail,
13920
13985
  BaseEntity,
13921
- BillingCycle,
13922
13986
  BillingCycleEnum,
13923
13987
  CALENDLY_PATTERN,
13924
13988
  CITY_PATTERN,
@@ -14156,6 +14220,8 @@ export {
14156
14220
  Plan,
14157
14221
  PlanFeature,
14158
14222
  PlanPricing,
14223
+ PlanPricingBillingCycleEnum,
14224
+ PlanTypeEnum,
14159
14225
  PreCheckoutCalculationDto,
14160
14226
  ProjectDto,
14161
14227
  Provider,
@@ -14220,6 +14286,7 @@ export {
14220
14286
  StripeTransactionStatusEnum,
14221
14287
  StripeTransactionTypeEnum,
14222
14288
  SubmitTimesheetDto,
14289
+ SubscriptionFeature,
14223
14290
  SystemPreference,
14224
14291
  SystemPreferenceDto,
14225
14292
  TIMESHEET_CLIENT_PATTERN,
@@ -1,2 +1 @@
1
1
  export * from './pattern/pattern';
2
- export * from './plan.interface';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.678",
3
+ "version": "1.0.682",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -1,6 +0,0 @@
1
- export interface IFetchPlanResponse {
2
- statusCode: number;
3
- status: boolean;
4
- message: string;
5
- data: any;
6
- }