Files
metabuilder/packages/schema_editor/scripts/functions.json
johndoe6345789 6992c3a650 feat(ui_pages): Add UI Pages Bundle with multi-level navigation and components
- Created package.json for ui_pages with dependencies and exports.
- Added roles.json for access permissions related to UI pages.
- Implemented functions.json for managing UI pages and routing.
- Developed stories.json for Storybook showcasing UI pages components.
- Defined styles tokens for UI pages including colors, spacing, and typography.

feat(ui_permissions): Introduce UI Permissions package for access control

- Created package.json for ui_permissions with permission utilities.
- Added roles.json defining permissions for a 6-level access control system.
- Implemented functions.json for permission checking and level management.
- Developed stories.json for Storybook showcasing permission-related components.
- Defined styles tokens for UI permissions including colors and spacing.
2026-01-02 19:45:10 +00:00

202 lines
5.2 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/json-script.schema.json",
"schemaVersion": "2.2.0",
"package": "schema_editor",
"description": "Schema editor functions for managing database tables, fields, and relations",
"functions": [
{
"id": "fields_define",
"name": "defineField",
"exported": true,
"description": "Define a schema field with type and options",
"category": "fields",
"luaScript": "fields.lua"
},
{
"id": "fields_primary_key",
"name": "primaryKey",
"exported": true,
"description": "Create a primary key field",
"category": "fields",
"luaScript": "fields.lua"
},
{
"id": "fields_foreign_key",
"name": "foreignKey",
"exported": true,
"description": "Create a foreign key field reference",
"category": "fields",
"luaScript": "fields.lua"
},
{
"id": "fields_init_editor",
"name": "initFieldEditor",
"exported": true,
"description": "Initialize the field editor state",
"category": "fields",
"luaScript": "fields.lua"
},
{
"id": "fields_update_name",
"name": "updateFieldName",
"exported": true,
"description": "Update field name",
"category": "fields",
"luaScript": "fields.lua"
},
{
"id": "fields_update_type",
"name": "updateFieldType",
"exported": true,
"description": "Update field data type",
"category": "fields",
"luaScript": "fields.lua"
},
{
"id": "fields_toggle_constraints",
"name": "toggleFieldConstraints",
"exported": true,
"description": "Toggle field constraints (PK, unique, nullable, auto-increment)",
"category": "fields",
"luaScript": "fields.lua"
},
{
"id": "tables_create",
"name": "createTable",
"exported": true,
"description": "Create a new table definition",
"category": "tables",
"luaScript": "tables.lua"
},
{
"id": "tables_render",
"name": "renderTableEditor",
"exported": true,
"description": "Render a table editor component",
"category": "tables",
"luaScript": "tables.lua"
},
{
"id": "tables_add_field",
"name": "addTableField",
"exported": true,
"description": "Add a field to a table",
"category": "tables",
"luaScript": "tables.lua"
},
{
"id": "tables_remove_field",
"name": "removeTableField",
"exported": true,
"description": "Remove a field from a table",
"category": "tables",
"luaScript": "tables.lua"
},
{
"id": "tables_init_editor",
"name": "initTableEditor",
"exported": true,
"description": "Initialize table editor state",
"category": "tables",
"luaScript": "tables.lua"
},
{
"id": "tables_add_index",
"name": "addTableIndex",
"exported": true,
"description": "Add an index to a table",
"category": "tables",
"luaScript": "tables.lua"
},
{
"id": "tables_delete_index",
"name": "deleteTableIndex",
"exported": true,
"description": "Delete an index from a table",
"category": "tables",
"luaScript": "tables.lua"
},
{
"id": "relations_define",
"name": "defineRelation",
"exported": true,
"description": "Define a table relationship",
"category": "relations",
"luaScript": "relations.lua"
},
{
"id": "relations_has_one",
"name": "hasOne",
"exported": true,
"description": "Create a one-to-one relationship",
"category": "relations",
"luaScript": "relations.lua"
},
{
"id": "relations_has_many",
"name": "hasMany",
"exported": true,
"description": "Create a one-to-many relationship",
"category": "relations",
"luaScript": "relations.lua"
},
{
"id": "relations_belongs_to_many",
"name": "belongsToMany",
"exported": true,
"description": "Create a many-to-many relationship with pivot table",
"category": "relations",
"luaScript": "relations.lua"
},
{
"id": "schema_initialize",
"name": "initializeSchema",
"exported": true,
"description": "Initialize schema editor state",
"category": "schema",
"luaScript": "init.lua"
},
{
"id": "schema_save",
"name": "saveSchema",
"exported": true,
"description": "Save schema changes",
"category": "schema",
"luaScript": "init.lua"
},
{
"id": "schema_validate",
"name": "validateSchema",
"exported": true,
"description": "Validate schema configuration",
"category": "schema",
"luaScript": "init.lua"
}
],
"exports": {
"functions": [
"defineField",
"primaryKey",
"foreignKey",
"initFieldEditor",
"updateFieldName",
"updateFieldType",
"toggleFieldConstraints",
"createTable",
"renderTableEditor",
"addTableField",
"removeTableField",
"initTableEditor",
"addTableIndex",
"deleteTableIndex",
"defineRelation",
"hasOne",
"hasMany",
"belongsToMany",
"initializeSchema",
"saveSchema",
"validateSchema"
]
}
}