insightfy-bloom-ms-ans / table_widgets_config.json
MukeshKapoor25's picture
feat(ans): Implement comprehensive chart widgets architecture and documentation
9f7c551
[
{
"_id": "table-001",
"widget_id": "wid_recent_orders_001",
"type": "table",
"title": "Recent Orders",
"data_config": {
"source": "orders_api",
"params": {
"limit": 10,
"sort": "created_at",
"order": "desc"
}
},
"roles": {
"admin": true,
"manager": true,
"associate": true
},
"endpoint": "/api/v1/tables/recent-orders",
"cache_ttl": 300,
"description": "Latest transactions across all statuses"
},
{
"_id": "table-002",
"widget_id": "wid_pending_orders_001",
"type": "table",
"title": "Pending Orders",
"data_config": {
"source": "orders_api",
"params": {
"status": "pending",
"limit": 20
}
},
"roles": {
"admin": true,
"manager": true,
"associate": false
},
"endpoint": "/api/v1/tables/pending-orders",
"cache_ttl": 180,
"description": "Orders awaiting processing"
},
{
"_id": "table-003",
"widget_id": "wid_low_stock_items_001",
"type": "table",
"title": "Low Stock Items",
"data_config": {
"source": "inventory_api",
"params": {
"filter": "low_stock",
"limit": 50
}
},
"roles": {
"admin": true,
"manager": true,
"associate": true
},
"endpoint": "/api/v1/tables/low-stock",
"cache_ttl": 300,
"description": "Products below reorder level"
},
{
"_id": "table-006",
"widget_id": "wid_top_customers_30d_001",
"type": "table",
"title": "Top Customers (30 Days)",
"data_config": {
"source": "customers_api",
"params": {
"window_days": 30,
"sort": "total_spent",
"order": "desc",
"limit": 20
}
},
"roles": {
"admin": true,
"manager": true,
"associate": false
},
"endpoint": "/api/v1/tables/top-customers",
"cache_ttl": 600,
"description": "Best customers by spending in last 30 days"
},
{
"_id": "table-008",
"widget_id": "wid_top_refunded_orders_001",
"type": "table",
"title": "Refund / Cancelled Orders",
"data_config": {
"source": "orders_api",
"params": {
"status": ["refunded", "cancelled"],
"limit": 20,
"sort": "created_at",
"order": "desc"
}
},
"roles": {
"admin": true,
"manager": true,
"associate": false
},
"endpoint": "/api/v1/tables/refunded-orders",
"cache_ttl": 600,
"description": "Refunded or cancelled transactions"
},
{
"_id": "table-009",
"widget_id": "wid_expiring_stock_001",
"type": "table",
"title": "Expiring Stock (Next 30 Days)",
"data_config": {
"source": "inventory_api",
"params": {
"expiry_within_days": 30,
"sort": "expiry_date",
"order": "asc",
"limit": 50
}
},
"roles": {
"admin": true,
"manager": true,
"associate": false
},
"endpoint": "/api/v1/tables/expiring-stock",
"cache_ttl": 600,
"description": "Products expiring in next 30 days"
},
{
"_id": "table-010",
"widget_id": "wid_product_reorder_list_001",
"type": "table",
"title": "Products Needing Reorder",
"data_config": {
"source": "inventory_api",
"params": {
"filter": "reorder_required",
"limit": 30
}
},
"roles": {
"admin": true,
"manager": true,
"associate": true
},
"endpoint": "/api/v1/tables/reorder-required",
"cache_ttl": 600,
"description": "Items requiring reorder based on stock levels"
}
]