mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 06:44:58 +00:00
139 lines
3.8 KiB
JSON
139 lines
3.8 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/json-script.schema.json",
|
|
"schemaVersion": "2.2.0",
|
|
"package": "audit_log",
|
|
"description": "Business logic functions for audit log package",
|
|
"functions": [
|
|
{
|
|
"id": "init",
|
|
"name": "init",
|
|
"exported": true,
|
|
"description": "Package initialization and main entry point",
|
|
"category": "lifecycle",
|
|
"luaScript": "init.lua"
|
|
},
|
|
{
|
|
"id": "stats_calculate",
|
|
"name": "calculateStats",
|
|
"exported": true,
|
|
"description": "Calculate audit log statistics",
|
|
"category": "analytics",
|
|
"luaScript": "stats.lua"
|
|
},
|
|
{
|
|
"id": "stats_prepare_display",
|
|
"name": "prepareStatsDisplay",
|
|
"exported": true,
|
|
"description": "Prepare statistics for display",
|
|
"category": "analytics",
|
|
"luaScript": "stats.lua"
|
|
},
|
|
{
|
|
"id": "filters_apply",
|
|
"name": "applyFilters",
|
|
"exported": true,
|
|
"description": "Apply filters to audit log entries",
|
|
"category": "data",
|
|
"luaScript": "filters.lua"
|
|
},
|
|
{
|
|
"id": "filters_by_username",
|
|
"name": "filterByUsername",
|
|
"exported": true,
|
|
"description": "Filter logs by username",
|
|
"category": "data",
|
|
"luaScript": "filters/filter_by_username.lua"
|
|
},
|
|
{
|
|
"id": "filters_by_operation",
|
|
"name": "filterByOperation",
|
|
"exported": true,
|
|
"description": "Filter logs by operation type",
|
|
"category": "data",
|
|
"luaScript": "filters/filter_by_operation.lua"
|
|
},
|
|
{
|
|
"id": "filters_by_resource",
|
|
"name": "filterByResource",
|
|
"exported": true,
|
|
"description": "Filter logs by resource",
|
|
"category": "data",
|
|
"luaScript": "filters/filter_by_resource.lua"
|
|
},
|
|
{
|
|
"id": "filters_by_date_range",
|
|
"name": "filterByDateRange",
|
|
"exported": true,
|
|
"description": "Filter logs by date range",
|
|
"category": "data",
|
|
"luaScript": "filters/filter_by_date_range.lua"
|
|
},
|
|
{
|
|
"id": "formatting_format_all",
|
|
"name": "formatAllLogs",
|
|
"exported": true,
|
|
"description": "Format all log entries for display",
|
|
"category": "ui",
|
|
"luaScript": "formatting.lua"
|
|
},
|
|
{
|
|
"id": "formatting_format_entry",
|
|
"name": "formatLogEntry",
|
|
"exported": true,
|
|
"description": "Format a single log entry",
|
|
"category": "ui",
|
|
"luaScript": "formatting/format_log_entry.lua"
|
|
},
|
|
{
|
|
"id": "formatting_format_timestamp",
|
|
"name": "formatTimestamp",
|
|
"exported": true,
|
|
"description": "Format timestamp for display",
|
|
"category": "ui",
|
|
"luaScript": "formatting/format_timestamp.lua"
|
|
},
|
|
{
|
|
"id": "formatting_get_operation_color",
|
|
"name": "getOperationColor",
|
|
"exported": true,
|
|
"description": "Get color for operation type",
|
|
"category": "ui",
|
|
"luaScript": "formatting/get_operation_color.lua"
|
|
},
|
|
{
|
|
"id": "formatting_get_resource_icon",
|
|
"name": "getResourceIcon",
|
|
"exported": true,
|
|
"description": "Get icon for resource type",
|
|
"category": "ui",
|
|
"luaScript": "formatting/get_resource_icon.lua"
|
|
},
|
|
{
|
|
"id": "formatting_get_status_badge",
|
|
"name": "getStatusBadge",
|
|
"exported": true,
|
|
"description": "Get status badge styling",
|
|
"category": "ui",
|
|
"luaScript": "formatting/get_status_badge.lua"
|
|
}
|
|
],
|
|
"exports": {
|
|
"functions": [
|
|
"init",
|
|
"calculateStats",
|
|
"prepareStatsDisplay",
|
|
"applyFilters",
|
|
"filterByUsername",
|
|
"filterByOperation",
|
|
"filterByResource",
|
|
"filterByDateRange",
|
|
"formatAllLogs",
|
|
"formatLogEntry",
|
|
"formatTimestamp",
|
|
"getOperationColor",
|
|
"getResourceIcon",
|
|
"getStatusBadge"
|
|
]
|
|
}
|
|
}
|