256 lines
11 KiB
JavaScript

// MCP Apps for Toast Server
export const apps = [
{
name: 'order-dashboard',
description: 'Real-time order dashboard showing active orders, status, and timeline',
version: '1.0.0',
ui: {
type: 'dashboard',
layout: 'grid',
sections: [
{ id: 'active-orders', title: 'Active Orders', type: 'list', dataSource: 'toast_list_orders' },
{ id: 'order-stats', title: 'Order Statistics', type: 'metrics' },
{ id: 'recent-activity', title: 'Recent Activity', type: 'timeline' },
],
},
},
{
name: 'order-detail',
description: 'Detailed order view with items, payments, and modification history',
version: '1.0.0',
ui: {
type: 'detail',
sections: [
{ id: 'order-info', title: 'Order Information', type: 'info-panel' },
{ id: 'order-items', title: 'Order Items', type: 'table', dataSource: 'toast_list_order_checks' },
{ id: 'order-payments', title: 'Payments', type: 'table' },
{ id: 'order-actions', title: 'Actions', type: 'action-panel' },
],
},
},
{
name: 'order-grid',
description: 'Searchable grid view of all orders with filters and bulk actions',
version: '1.0.0',
ui: {
type: 'grid',
features: ['search', 'filter', 'sort', 'export', 'bulk-actions'],
columns: ['orderNumber', 'date', 'customer', 'total', 'status', 'server'],
filters: ['dateRange', 'status', 'diningOption', 'server'],
actions: ['view', 'edit', 'void', 'print'],
},
},
{
name: 'menu-manager',
description: 'Menu management interface for viewing and editing menus, groups, and items',
version: '1.0.0',
ui: {
type: 'tree-view',
sections: [
{ id: 'menu-tree', title: 'Menu Structure', type: 'hierarchical-tree' },
{ id: 'item-editor', title: 'Item Editor', type: 'form' },
{ id: 'price-manager', title: 'Price Management', type: 'batch-editor' },
],
},
},
{
name: 'menu-item-detail',
description: 'Detailed menu item view with pricing, modifiers, sales data, and images',
version: '1.0.0',
ui: {
type: 'detail',
sections: [
{ id: 'item-info', title: 'Item Information', type: 'info-panel' },
{ id: 'item-pricing', title: 'Pricing & Cost', type: 'pricing-panel' },
{ id: 'item-modifiers', title: 'Modifiers', type: 'table', dataSource: 'toast_list_item_modifiers' },
{ id: 'item-performance', title: 'Sales Performance', type: 'chart' },
],
},
},
{
name: 'employee-dashboard',
description: 'Employee management dashboard with roster, schedules, and performance',
version: '1.0.0',
ui: {
type: 'dashboard',
layout: 'grid',
sections: [
{ id: 'employee-list', title: 'Employees', type: 'list', dataSource: 'toast_list_employees' },
{ id: 'employee-stats', title: 'Statistics', type: 'metrics' },
{ id: 'clock-status', title: 'Clock Status', type: 'status-board' },
{ id: 'employee-actions', title: 'Quick Actions', type: 'action-panel' },
],
},
},
{
name: 'employee-schedule',
description: 'Weekly/monthly schedule view with shift planning and time-off management',
version: '1.0.0',
ui: {
type: 'calendar',
views: ['week', 'month'],
features: ['drag-drop', 'shift-swap', 'time-off-requests'],
dataSource: 'toast_list_shifts',
},
},
{
name: 'labor-dashboard',
description: 'Labor cost and productivity dashboard with real-time metrics',
version: '1.0.0',
ui: {
type: 'dashboard',
layout: 'grid',
sections: [
{ id: 'labor-cost', title: 'Labor Cost', type: 'metrics', dataSource: 'toast_get_labor_cost' },
{ id: 'hours-breakdown', title: 'Hours Breakdown', type: 'chart' },
{ id: 'overtime-tracker', title: 'Overtime', type: 'alert-panel' },
{ id: 'productivity', title: 'Productivity Metrics', type: 'scorecard' },
],
},
},
{
name: 'restaurant-overview',
description: 'Restaurant configuration overview with settings and operational status',
version: '1.0.0',
ui: {
type: 'overview',
sections: [
{ id: 'restaurant-info', title: 'Restaurant Info', type: 'info-panel', dataSource: 'toast_get_restaurant_info' },
{ id: 'revenue-centers', title: 'Revenue Centers', type: 'list', dataSource: 'toast_list_revenue_centers' },
{ id: 'dining-options', title: 'Dining Options', type: 'list', dataSource: 'toast_list_dining_options' },
{ id: 'service-areas', title: 'Service Areas', type: 'list', dataSource: 'toast_list_service_areas' },
],
},
},
{
name: 'table-map',
description: 'Interactive floor plan showing table status, occupancy, and server assignments',
version: '1.0.0',
ui: {
type: 'floor-plan',
features: ['interactive', 'real-time-status', 'drag-drop-assignment'],
dataSource: 'toast_list_tables',
statusColors: {
available: 'green',
occupied: 'red',
reserved: 'yellow',
cleaning: 'blue',
},
},
},
{
name: 'payment-history',
description: 'Payment transaction history with search, filters, and export',
version: '1.0.0',
ui: {
type: 'grid',
features: ['search', 'filter', 'sort', 'export'],
columns: ['date', 'orderId', 'paymentType', 'amount', 'tip', 'status'],
filters: ['dateRange', 'paymentType', 'status', 'server'],
dataSource: 'toast_list_payments',
},
},
{
name: 'inventory-tracker',
description: 'Inventory tracking with stock levels, alerts, and purchase order management',
version: '1.0.0',
ui: {
type: 'dashboard',
layout: 'grid',
sections: [
{ id: 'inventory-list', title: 'Inventory Items', type: 'table', dataSource: 'toast_list_inventory_items' },
{ id: 'low-stock-alerts', title: 'Low Stock Alerts', type: 'alert-panel' },
{ id: 'purchase-orders', title: 'Purchase Orders', type: 'list' },
{ id: 'inventory-actions', title: 'Actions', type: 'action-panel' },
],
},
},
{
name: 'customer-detail',
description: 'Customer profile with order history, preferences, and contact information',
version: '1.0.0',
ui: {
type: 'detail',
sections: [
{ id: 'customer-info', title: 'Customer Information', type: 'info-panel' },
{ id: 'order-history', title: 'Order History', type: 'table' },
{ id: 'customer-stats', title: 'Customer Statistics', type: 'metrics' },
{ id: 'customer-actions', title: 'Actions', type: 'action-panel' },
],
},
},
{
name: 'customer-loyalty',
description: 'Loyalty program dashboard with points, rewards, and tier status',
version: '1.0.0',
ui: {
type: 'dashboard',
layout: 'grid',
sections: [
{ id: 'loyalty-overview', title: 'Loyalty Overview', type: 'metrics' },
{ id: 'points-history', title: 'Points History', type: 'timeline' },
{ id: 'rewards-available', title: 'Available Rewards', type: 'card-grid' },
{ id: 'tier-progress', title: 'Tier Progress', type: 'progress-bar' },
],
},
},
{
name: 'sales-dashboard',
description: 'Comprehensive sales analytics with charts, trends, and comparisons',
version: '1.0.0',
ui: {
type: 'dashboard',
layout: 'grid',
sections: [
{ id: 'sales-overview', title: 'Sales Overview', type: 'metrics', dataSource: 'toast_sales_summary' },
{ id: 'sales-chart', title: 'Sales Trend', type: 'line-chart' },
{ id: 'category-breakdown', title: 'Sales by Category', type: 'pie-chart' },
{ id: 'payment-types', title: 'Payment Methods', type: 'bar-chart' },
],
},
},
{
name: 'menu-performance',
description: 'Menu item performance analytics with best/worst sellers and profitability',
version: '1.0.0',
ui: {
type: 'analytics',
sections: [
{ id: 'top-items', title: 'Top Selling Items', type: 'ranked-list', dataSource: 'toast_menu_item_performance' },
{ id: 'item-trends', title: 'Item Sales Trends', type: 'multi-line-chart' },
{ id: 'profitability', title: 'Profitability Analysis', type: 'table' },
{ id: 'recommendations', title: 'Recommendations', type: 'insight-panel' },
],
},
},
{
name: 'tip-summary',
description: 'Tip tracking and distribution dashboard with employee breakdown',
version: '1.0.0',
ui: {
type: 'dashboard',
layout: 'grid',
sections: [
{ id: 'tip-overview', title: 'Tip Overview', type: 'metrics', dataSource: 'toast_tip_summary' },
{ id: 'tip-by-employee', title: 'Tips by Employee', type: 'table' },
{ id: 'tip-trends', title: 'Tip Trends', type: 'line-chart' },
{ id: 'tip-percentage', title: 'Average Tip %', type: 'gauge' },
],
},
},
{
name: 'revenue-by-hour',
description: 'Hourly revenue breakdown showing peak times and patterns',
version: '1.0.0',
ui: {
type: 'analytics',
sections: [
{ id: 'hourly-chart', title: 'Revenue by Hour', type: 'bar-chart', dataSource: 'toast_revenue_by_hour' },
{ id: 'peak-times', title: 'Peak Times', type: 'highlight-panel' },
{ id: 'day-comparison', title: 'Day-over-Day Comparison', type: 'comparison-chart' },
{ id: 'hourly-metrics', title: 'Hourly Metrics', type: 'table' },
],
},
},
];
//# sourceMappingURL=index.js.map