@experts_hub/shared 1.0.681 → 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.
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/plan-feature.entity.d.ts +2 -1
- package/dist/entities/plan.entity.d.ts +5 -0
- package/dist/entities/subscription-feature.entity.d.ts +10 -0
- package/dist/index.d.mts +18 -9
- package/dist/index.d.ts +18 -9
- package/dist/index.js +64 -2
- package/dist/index.mjs +69 -2
- package/dist/modules/plan/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/modules/plan/plan.interface.d.ts +0 -6
package/dist/entities/index.d.ts
CHANGED
|
@@ -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[];
|
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,7 +4664,8 @@ declare class GlobalSetting extends BaseEntity {
|
|
|
4671
4664
|
declare class PlanFeature extends BaseEntity {
|
|
4672
4665
|
planId: number;
|
|
4673
4666
|
plan: Plan;
|
|
4674
|
-
|
|
4667
|
+
name: string;
|
|
4668
|
+
slug: string;
|
|
4675
4669
|
tooltip: string | null;
|
|
4676
4670
|
sortOrder: number;
|
|
4677
4671
|
isActive: boolean;
|
|
@@ -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, 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, PlanPricingBillingCycleEnum, 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,7 +4664,8 @@ declare class GlobalSetting extends BaseEntity {
|
|
|
4671
4664
|
declare class PlanFeature extends BaseEntity {
|
|
4672
4665
|
planId: number;
|
|
4673
4666
|
plan: Plan;
|
|
4674
|
-
|
|
4667
|
+
name: string;
|
|
4668
|
+
slug: string;
|
|
4675
4669
|
tooltip: string | null;
|
|
4676
4670
|
sortOrder: number;
|
|
4677
4671
|
isActive: boolean;
|
|
@@ -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, 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, PlanPricingBillingCycleEnum, 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
|
@@ -324,6 +324,7 @@ __export(index_exports, {
|
|
|
324
324
|
PlanFeature: () => PlanFeature,
|
|
325
325
|
PlanPricing: () => PlanPricing,
|
|
326
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: "
|
|
13499
|
-
], PlanFeature.prototype, "
|
|
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);
|
|
@@ -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,
|
|
@@ -13961,6 +14021,7 @@ Plan = __decorateClass([
|
|
|
13961
14021
|
PlanFeature,
|
|
13962
14022
|
PlanPricing,
|
|
13963
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: "
|
|
13685
|
-
], PlanFeature.prototype, "
|
|
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);
|
|
@@ -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,
|
|
@@ -14156,6 +14221,7 @@ export {
|
|
|
14156
14221
|
PlanFeature,
|
|
14157
14222
|
PlanPricing,
|
|
14158
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,
|
package/package.json
CHANGED