Ajustes de estructura

This commit is contained in:
Jordan Diaz
2026-04-28 20:25:09 +00:00
parent 6881d64a08
commit 3af875ed11
6 changed files with 279 additions and 84 deletions

View File

@@ -29,7 +29,27 @@ Destructive cases:
drops HTML). The backend returns 'warnings' in the response — surface them
to the user.
Table names WITHOUT 'cms_' prefix.`,
Table names WITHOUT 'cms_' prefix.
MULTITEXT FIELDS — when 'props' touches multitext config:
- descriptionjson: JSON STRING (not object) with the array of sub-fields.
Each: {id_campo, nombre_campo, tipo} where tipo is '0'(texto)|'1'(tabla)|
'3'(fecha)|'4'(color)|'5'(icono). For tipo='1' also include tabla,
campo_valor, campo_muestra.
⚠ MUST be JSON-encoded string. Backend rejects objects directly.
Example: "descriptionjson":"[{\\"id_campo\\":\\"pregunta\\",\\"nombre_campo\\":\\"Pregunta\\",\\"tipo\\":\\"0\\"}]"
LIST FIELDS — when 'props' touches list config:
- listType: 'pulldown' | 'radios' | 'pulldownMulti' | 'checkboxes' (NOT 'select').
- optionsType: 'text' | 'table' | 'query'.
- optionsText (for optionsType='text'): one option per LINE, separated by
'\\n' (real newline). Each line is 'value|Label' or just 'label'.
⚠ Do NOT use commas as the option separator — commas are valid inside
a label. Example (correct): "indef|Indefinido\\ntemp|Temporal".
- optionsTablename / optionsValueField / optionsLabelField / filterField
for optionsType='table'.
- optionsQuery for optionsType='query' — column 0 is the value, column 1
the label (positional, 'AS value/label' aliases are ignored).`,
withAuthParams({
tableName: z.string().describe("Table name without 'cms_' prefix"),
fieldName: z.string().describe("Current field name"),