export interface SearchOption { title: string; description: string; target: string; keywords: string[]; } export interface SearchResult { title: string; description: string; section: string; keywords: string[]; icon: string; source: 'plugin' | 'users' | 'orders' | 'products'; options?: SearchOption[]; } export const LOCAL_INDEX: SearchResult[] = [ { title: 'Dashboard', description: 'Main control center for automation and status overview.', section: 'dashboard', keywords: ['dashboard', 'overview', 'home', 'main', 'stats', 'status', 'summary', 'web'], icon: 'LayoutGrid', source: 'plugin', options: [ { title: 'Status & Metrics', description: 'View message counts, delivery success rates, and live instance status.', target: 'status-metrics', keywords: ['status', 'metrics', 'counts', 'analytics', 'delivery', 'rates'], }, { title: 'Quick Actions', description: 'Send test messages, force sync database, and clear local caches.', target: 'quick-actions', keywords: ['test', 'force', 'sync', 'cache', 'actions'], } ] }, { title: 'Activity Hub', description: 'Monitor real-time messaging logs and interaction timeline.', section: 'activity_hub', keywords: ['logs', 'activity', 'hub', 'history', 'timeline', 'events', 'trace', 'monitoring', 'web'], icon: 'History', source: 'plugin', options: [ { title: 'Message Logs', description: 'View standard logs of all sent, received, and queued messages.', target: 'message-logs', keywords: ['sent', 'received', 'queued', 'logs', 'list'], }, { title: 'Error Trace Logs', description: 'Debug failed delivery attempts and connection errors.', target: 'error-logs', keywords: ['failed', 'debug', 'errors', 'trace', 'exceptions'], } ] }, { title: 'Automated Notifications', description: 'Configure automated order updates and system notifications.', section: 'notifications', keywords: ['notifications', 'order', 'status', 'updates', 'builder', 'flows', 'zap', 'web'], icon: 'Zap', source: 'plugin', options: [ { title: 'New Order Notification', description: 'Automated SMS or WhatsApp alert sent when a new order is received.', target: 'new-order', keywords: ['new', 'order', 'received', 'created'], }, { title: 'Order Processing Notification', description: 'Alert sent when order status shifts to Processing.', target: 'order-processing', keywords: ['processing', 'status', 'update'], }, { title: 'Order Completed Notification', description: 'Notification sent when order is shipped or marked completed.', target: 'order-completed', keywords: ['completed', 'shipped', 'finished'], }, { title: 'Low Stock Alert', description: 'Notify administrators when product stock falls below defined threshold.', target: 'low-stock', keywords: ['stock', 'low', 'threshold', 'admin', 'inventory'], } ] }, { title: 'Chat Widget', description: 'WhatsApp floating button for instant customer engagement.', section: 'chat_widget', keywords: ['chat', 'widget', 'button', 'floating', 'support', 'whatsapp', 'floating', 'web'], icon: 'MessageCircle', source: 'plugin', options: [ { title: 'Widget Floating Button', description: 'Toggle floating WhatsApp support widget on frontend pages.', target: 'floating-button', keywords: ['button', 'floating', 'widget', 'frontend'], }, { title: 'Call To Action Text', description: 'CTA message displayed inside the WhatsApp support bubble.', target: 'cta-text', keywords: ['cta', 'text', 'call', 'action', 'bubble'], }, { title: 'Agent Phone Numbers', description: 'Configure support agent names and phone numbers.', target: 'agent-numbers', keywords: ['agent', 'numbers', 'phone', 'support', 'contact'], }, { title: 'Display Pages Rules', description: 'Set page conditions and rules for widget visibility.', target: 'display-rules', keywords: ['display', 'rules', 'visibility', 'pages', 'hide'], } ], }, { title: 'Bulk Campaigns', description: 'Create and send large-scale broadcast campaigns.', section: 'campaigns', keywords: ['campaigns', 'bulk', 'broadcast', 'marketing', 'send', 'blast', 'target', 'web'], icon: 'Target', source: 'plugin', options: [ { title: 'Create Broadcast Campaign', description: 'Build new mass messaging and broadcast marketing campaigns.', target: 'create-campaign', keywords: ['create', 'new', 'broadcast', 'campaign', 'marketing'], }, { title: 'Schedule Campaign', description: 'Set timing, dates, and intervals for automatic campaign delivery.', target: 'schedule-campaign', keywords: ['schedule', 'timing', 'dates', 'intervals', 'automatic'], }, { title: 'Sending Delays & Speed Limits', description: 'Manage rate limits and anti-ban delay intervals.', target: 'sending-limits', keywords: ['rate', 'limits', 'delays', 'anti-ban', 'speed'], } ] }, { title: 'Abandoned Carts', description: 'Recovery automation for lost shopping carts.', section: 'abandoned_carts', keywords: ['abandoned', 'carts', 'recovery', 'checkout', 'lost', 'reminders', 'sessions', 'web'], icon: 'ShoppingCart', source: 'plugin', options: [ { title: 'Cart Recovery Intervals', description: 'Define exact delay timings for sending abandoned checkout reminders.', target: 'recovery-intervals', keywords: ['timings', 'delay', 'intervals', 'checkout', 'reminders'], }, { title: 'Coupon & Discount Incentives', description: 'Automatically attach recovery discount coupons inside the message.', target: 'recovery-coupon', keywords: ['coupon', 'discount', 'incentives', 'attach'], }, { title: 'Abandoned Sessions Logs', description: 'Monitor checkout logs and identify recovered customers.', target: 'session-logs', keywords: ['checkout', 'sessions', 'logs', 'recovered', 'list'], } ] }, { title: 'OTP Settings', description: 'Configure one-time password security and messaging.', section: 'passwordless-login', keywords: ['otp', 'password', 'security', 'verification', 'code', 'auth', 'fingerprint', 'web'], icon: 'Fingerprint', source: 'plugin', options: [ { title: 'OTP Code Length', description: 'Set length of generated OTP codes (e.g. 4 or 6 digits).', target: 'otp-length', keywords: ['length', 'digits', 'size'], }, { title: 'OTP Expiry Duration', description: 'Set validity duration for OTP verification codes in minutes.', target: 'otp-expiry', keywords: ['expiry', 'validity', 'time', 'duration', 'minutes'], }, { title: 'SMS / WhatsApp Gateway', description: 'Choose preferred sending gateway for security OTPs.', target: 'otp-gateway', keywords: ['gateway', 'sending', 'sms', 'whatsapp'], }, { title: 'System Timings', description: 'Manage security cooldowns and retry intervals.', target: 'system-timings', keywords: ['cooldown', 'timing', 'security', 'intervals', 'retry'], }, ], }, { title: 'Registration Form', description: 'Custom signup forms with OTP verification.', section: 'registration-form', keywords: ['signup', 'registration', 'form', 'pencil', 'join', 'account', 'web'], icon: 'PencilLine', source: 'plugin', options: [ { title: 'Custom Fields', description: 'Manage custom inputs and fields for the signup form.', target: 'custom-fields', keywords: ['fields', 'inputs', 'attributes'], }, { title: 'OTP Verification Toggle', description: 'Require OTP verification for new registrations.', target: 'otp-verification', keywords: ['require', 'verify', 'validation', 'otp'], }, { title: 'Form Shortcode', description: 'Copy custom shortcodes to display form on any page.', target: 'form-shortcode', keywords: ['shortcode', 'display', 'embed', 'copy'], }, { title: 'Custom CSS Styles', description: 'Apply custom CSS styles to match signup form design.', target: 'custom-css', keywords: ['css', 'styles', 'design', 'customization'], }, ], }, { title: 'Checkout Verification', description: 'Validate customer identity during WooCommerce checkout.', section: 'checkout-verification', keywords: ['checkout', 'verification', 'otp', 'validate', 'fraud', 'payment', 'web'], icon: 'Lock', source: 'plugin', options: [ { title: 'WooCommerce Checkout OTP', description: 'Enable OTP verification at checkout page before order is placed.', target: 'checkout-otp', keywords: ['enable', 'woo', 'woocommerce', 'checkout'], }, { title: 'Verification Experience Messages', description: 'Customize step progress verification texts and headers.', target: 'verification-experience', keywords: ['messages', 'step', 'progress', 'texts', 'headers'], }, { title: 'Email Domain Suggestions', description: 'Set domains list for email autocomplete and suggestions.', target: 'email-domains', keywords: ['email', 'domain', 'autocomplete', 'suggestions'], }, ], }, { title: 'Country Code Settings', description: 'International phone field and country detection rules.', section: 'settings', keywords: ['country', 'code', 'phone', 'field', 'international', 'dial', 'detect', 'globe', 'web'], icon: 'Globe', source: 'plugin', options: [ { title: 'Default Country Code', description: 'Set fallback country code for international phone numbers.', target: 'default-country', keywords: ['default', 'fallback', 'country', 'code'], }, { title: 'Preferred Countries', description: 'Set countries list to show at top of phone dropdown.', target: 'preferred-countries', keywords: ['preferred', 'countries', 'list', 'top'], }, { title: 'IP Detection Rules', description: 'Automatically detect default country via customer IP.', target: 'ip-detection', keywords: ['ip', 'detection', 'auto', 'locate'], }, ], }, { title: 'System Information', description: 'Monitor server health, cron status, and environment diagnostics.', section: 'system_info', keywords: ['system', 'info', 'health', 'diagnostics', 'server', 'cron', 'logs', 'status', 'web'], icon: 'Settings', source: 'plugin', options: [ { title: 'Server Health Check', description: 'Diagnose memory limits, PHP configuration, and extensions status.', target: 'health-check', keywords: ['diagnose', 'memory', 'php', 'extensions'], }, { title: 'Cron Status & Logs', description: 'View upcoming cron runs and diagnostic execution history.', target: 'cron-status', keywords: ['cron', 'jobs', 'schedule', 'tasks'], } ] }, { title: 'Sender Settings', description: 'Manage WhatsApp, Email, and Meta API sending instances.', section: 'senders', keywords: ['senders', 'api', 'instances', 'meta', 'whatsapp', 'email', 'smtp', 'server', 'web'], icon: 'Send', source: 'plugin', options: [ { title: 'WhatsApp Sending Instances', description: 'Toggle and manage connected WhatsApp active instances.', target: 'whatsapp-instances', keywords: ['whatsapp', 'instances', 'toggle', 'manage'], }, { title: 'Email Sending Servers', description: 'View active SMTP, Firebase, and Meta sending gateways.', target: 'email-instances', keywords: ['email', 'gateways', 'active', 'servers'], } ] }, { title: 'WhatsApp Web Sender', description: 'Connect and manage WhatsApp Web automation instances.', section: 'whatsapp-web-sender', keywords: ['whatsapp', 'web', 'sender', 'qr', 'connect', 'instance', 'automation'], icon: 'MessageCircle', source: 'plugin', options: [ { title: 'Connect WhatsApp Instance', description: 'Link and spin up active WhatsApp automation instance.', target: 'connect-instance', keywords: ['link', 'active', 'connect', 'spin'], }, { title: 'QR Code Connection', description: 'Scan QR code using WhatsApp on phone to authorize connection.', target: 'qr-connection', keywords: ['scan', 'qr', 'authorize', 'camera'], }, { title: 'Instance ID and Token', description: 'Retrieve unique API Instance ID and secret bearer token.', target: 'instance-id-token', keywords: ['id', 'token', 'secret', 'bearer'], }, ], }, { title: 'Meta API Sender', description: 'Official WhatsApp Business API integration via Meta.', section: 'meta-api-sender', keywords: ['meta', 'api', 'whatsapp', 'business', 'official', 'facebook', 'web'], icon: 'Globe', source: 'plugin', options: [ { title: 'Phone Number ID', description: 'Enter Phone Number ID generated inside Meta Business Suite.', target: 'phone-number-id', keywords: ['phone', 'number', 'id', 'meta'], }, { title: 'Meta Token / Access Token', description: 'Set permanent system access token for Meta API access.', target: 'access-token', keywords: ['token', 'access', 'permanent'], }, { title: 'WhatsApp Business Account ID', description: 'Configure Meta WhatsApp Business Account ID.', target: 'business-account-id', keywords: ['business', 'account', 'id', 'meta'], }, ], }, { title: 'SMTP / Email Server', description: 'Configure custom SMTP or mail servers for email notifications.', section: 'smtp-sender', keywords: ['smtp', 'email', 'mail', 'server', 'sending', 'host', 'web'], icon: 'Mail', source: 'plugin', options: [ { title: 'SMTP Host', description: 'Set custom SMTP server outgoing address (e.g. smtp.gmail.com).', target: 'smtp-host', keywords: ['host', 'address', 'outgoing', 'server'], }, { title: 'SMTP Port', description: 'Configure custom SMTP port (e.g. 587 or 465).', target: 'smtp-port', keywords: ['port', 'number', 'ssl', 'tls'], }, { title: 'Encryption Type', description: 'Set SSL, TLS or none encryption for connection security.', target: 'encryption-type', keywords: ['encryption', 'ssl', 'tls', 'security'], }, { title: 'Sender Email and Name', description: 'Configure From Email and From Name header for outgoing emails.', target: 'sender-email-name', keywords: ['from', 'sender', 'email', 'name', 'headers'], }, ], }, { title: 'Firebase OTP', description: 'Configure Firebase for secure SMS/OTP authentication.', section: 'firebase-sender', keywords: ['firebase', 'otp', 'sms', 'auth', 'google', 'verification', 'web'], icon: 'Zap', source: 'plugin', options: [ { title: 'Firebase Config JSON', description: 'Set complete Firebase configuration object code from console.', target: 'firebase-config', keywords: ['config', 'json', 'object', 'console'], }, { title: 'Firebase API Key', description: 'Set Firebase project API Key credentials.', target: 'api-key', keywords: ['key', 'api', 'credentials'], }, { title: 'Firebase Auth Domain', description: 'Configure authorized auth Domain for verification redirects.', target: 'auth-domain', keywords: ['auth', 'domain', 'redirects'], }, ], }, { title: 'Subscription', description: 'Manage your plan and license status.', section: 'connector', keywords: ['subscription', 'plan', 'license', 'billing', 'crown', 'pro', 'premium', 'web'], icon: 'Crown', source: 'plugin', options: [ { title: 'License Activation', description: 'Activate your premium license key to unlock advanced features.', target: 'license-activation', keywords: ['license', 'key', 'activate', 'unlock'], }, { title: 'Plan & Billing Status', description: 'View subscription status, renewals, and invoice details.', target: 'plan-status', keywords: ['plan', 'billing', 'subscription', 'renewals', 'invoices'], } ] }, { title: 'Auth Pages', description: 'Customized login and registration page templates.', section: 'authentication-pages', keywords: ['auth', 'pages', 'templates', 'login', 'signup', 'design', 'custom', 'web'], icon: 'Route', source: 'plugin', options: [ { title: 'Login Template Design', description: 'Customize layout, background, and styles for the Login Page.', target: 'login-template', keywords: ['login', 'layout', 'background', 'styles'], }, { title: 'Registration Template Design', description: 'Configure style and design templates for the Registration Page.', target: 'registration-template', keywords: ['registration', 'signup', 'styles', 'templates'], } ] }, { title: 'Google reCAPTCHA', description: 'Spam protection and bot detection settings.', section: 'google_recaptcha', keywords: ['captcha', 'recaptcha', 'google', 'spam', 'bot', 'security', 'shield', 'web'], icon: 'ShieldCheck', source: 'plugin', options: [ { title: 'Site Key', description: 'Set Google reCAPTCHA public Site Key.', target: 'site-key', keywords: ['site', 'key', 'public'], }, { title: 'Secret Key', description: 'Set Google reCAPTCHA private Secret Key.', target: 'secret-key', keywords: ['secret', 'key', 'private'], }, { title: 'reCAPTCHA Version', description: 'Toggle reCAPTCHA v2 checkbox or v3 invisible.', target: 'recaptcha-version', keywords: ['version', 'v2', 'v3'], }, ], }, { title: 'Block Manager', description: 'Manage blocked numbers and spam prevention rules.', section: 'block-manager', keywords: ['block', 'manager', 'spam', 'blacklist', 'ban', 'numbers', 'web'], icon: 'ShieldBan', source: 'plugin', options: [ { title: 'Add Blocked Number', description: 'Add specific phone numbers to standard blacklist.', target: 'add-blocked', keywords: ['add', 'blacklist', 'number', 'ban'], }, { title: 'Spam Prevention Rules', description: 'Configure automatic spam blocking rate thresholds.', target: 'spam-prevention', keywords: ['spam', 'blocking', 'rules', 'thresholds', 'rate'], }, ], }, { title: 'Email Templates', description: 'Create and manage custom email templates for notifications.', section: 'email_templates', keywords: ['email', 'templates', 'design', 'mail', 'newsletter', 'web'], icon: 'Mail', source: 'plugin', options: [ { title: 'Email Builder', description: 'Build rich text and HTML templates for outgoing notifications.', target: 'email-builder', keywords: ['builder', 'rich', 'html', 'editor'], }, { title: 'Template Variables', description: 'View active template replacement variables and shortcodes.', target: 'email-variables', keywords: ['variables', 'shortcodes', 'replacement', 'placeholders'], } ] }, ];