/** * Frozen N7 App contracts at gsintegrations 0.0.547 (c09caf90). * Shapes are copied from source — not derived via Pick<> from live props. */ import type { OnboardingAnalyticsCallback } from "../../onboarding/analytics"; import type { QuizAccountProvider } from "../../onboarding/components/QuizAccountStep"; import type { OnboardingSignupRole, QualificationAnswersDocument, QuizAnswers, QuizDefinition, QuizOutcome } from "../../onboarding/onboardingQuiz.schemas"; import type { OnboardingShareWithLeaderPayload } from "../../onboarding/shareWithLeader"; import type { PlanRecommendationView } from "../../onboarding/components/PlanRecommendationCard"; import type { BillingInterval, PlanChangePayload } from "../../pages/PlanManagementPage/PlanManagementPage.types"; import type { PlanManagementViewModel } from "../../pages/SystemSettingsPage/SystemSettingsPage.types"; import type { FeatureKey } from "../../components/atoms/SubscriptionGuard/PlanLimits.types"; export type N7OnboardingTrackEvent = { type: "step_view"; stepId: string; } | { type: "step_complete"; stepId: string; } | { type: "quiz_outcome"; outcome: QuizOutcome; } | { type: "plan_selected"; planId: string; } | { type: "auth_attempt"; provider: QuizAccountProvider; consentGranted: boolean; accountType: OnboardingSignupRole; } | { type: "share_with_leader"; channel: "whatsapp"; }; export type N7OnboardingFlowCompletePayload = { outcome: QuizOutcome; answers: QualificationAnswersDocument; planId?: string; accountType: OnboardingSignupRole; }; export type N7OnboardingShareWithLeaderConfig = { shareUrl?: string; messageTemplate?: string; }; export type N7AppOnboardingFlowProps = { definition: QuizDefinition; plans?: PlanRecommendationView[]; getPlanRecommendation?: (input: { answers: QuizAnswers; bandId?: string; }) => PlanRecommendationView; initialAnswers?: QuizAnswers; initialStepId?: string; housePreviewName?: string; onComplete: (payload: N7OnboardingFlowCompletePayload) => void; onSubmit?: (payload: QualificationAnswersDocument) => void; onTrackEvent?: (event: N7OnboardingTrackEvent) => void; onAnalyticsEvent?: OnboardingAnalyticsCallback; sensitiveStepIds?: string[]; onAuth?: (payload: { provider: QuizAccountProvider; consentGranted: boolean; accountType: OnboardingSignupRole; }) => void; onLogin?: () => void; onPrivacyPolicy?: () => void; onFooterLink?: (linkId: string) => void; shareWithLeader?: N7OnboardingShareWithLeaderConfig; onShareWithLeader?: (payload: OnboardingShareWithLeaderPayload) => void; }; export type N7QualificationAnswersDocument = QualificationAnswersDocument; export type N7PlanChangePayload = PlanChangePayload; export type N7PlanManagementPageProps = { planManagement: PlanManagementViewModel; billingInterval?: BillingInterval | null; onChangePlan: (payload: PlanChangePayload) => void; onManageBilling?: () => void; onBack?: () => void; isPersonalProfile?: boolean; }; export type N7PlanRecommendationView = { planId: string; planName: string; reasonText?: string; priceLabel?: string; trial?: { days: number; } | null; }; export type N7PlanRecommendationCardProps = { label: string; recommendation: N7PlanRecommendationView; stepId?: string; onAnalyticsEvent?: OnboardingAnalyticsCallback; sensitiveStepIds?: string[]; trialBadgeTemplate?: string; ctaLabel: string; onSelectPlan: (payload: { planId: string; }) => void; loading?: boolean; }; export type N7QuotaSummaryCardProps = { features?: FeatureKey[]; showDisabled?: boolean; showUnlimited?: boolean; onUpgradeClick?: () => void; className?: string; };