bookwiz.io / lib / types / pricing-benefits.ts
pricing-benefits.ts
Raw
// Note: PricingTierBenefits has been replaced with the consolidated PricingTier interface in lib/stripe.ts

// Simple interface for feature access checking
export interface BenefitCheck {
  hasAccess: boolean
  reason?: string
  upgradeRequired?: boolean
  suggestedTier?: string
}

// Enum for consistent feature checking (simplified)
export enum PricingFeature {
  SMART_PROMPTS = 'smart_prompts',
  FAST_PROMPTS = 'fast_prompts',
  STORAGE = 'storage',
  CUSTOM_TEMPLATES = 'custom_templates', 
  PRIORITY_SUPPORT = 'priority_support',
  ADVANCED_EXPORTS = 'advanced_exports',
  COLLABORATION = 'collaboration',
  API_ACCESS = 'api_access'
}

// Note: Complex usage tracking has been simplified. See lib/utils/pricing-utils.ts for current implementation.