The generated API client matches the API

This commit is contained in:
Roberto Treviño
2026-11-29 21:15:12 -06:00
parent ca887c29ab
commit 786b199203
3 changed files with 191 additions and 9 deletions
+189 -7
View File
@@ -422,6 +422,7 @@
}, },
"default": {}, "default": {},
"description": "Dato \u2192 columna, sin leer el texto.", "description": "Dato \u2192 columna, sin leer el texto.",
"keys": "field",
"title": "Datos tomados de columnas", "title": "Datos tomados de columnas",
"type": "object" "type": "object"
}, },
@@ -455,13 +456,70 @@
"eeg" "eeg"
], ],
"title": "Estudio", "title": "Estudio",
"type": "string" "type": "string",
"widget": {
"formlyConfig": {
"props": {
"options": [
{
"label": "Identidad de la persona",
"value": "identity"
},
{
"label": "Citolog\u00eda cervical",
"value": "cervical_cytology"
},
{
"label": "Biopsia cervical",
"value": "cervical_biopsy"
},
{
"label": "Mastograf\u00eda",
"value": "mammography"
},
{
"label": "Biopsia de mama",
"value": "breast_biopsy"
},
{
"label": "Tratamiento de c\u00e1ncer de mama",
"value": "breast_treatment"
},
{
"label": "Recurrencia de c\u00e1ncer de mama",
"value": "breast_recurrence"
},
{
"label": "Nota m\u00e9dica",
"value": "clinical_note"
},
{
"label": "Defunci\u00f3n",
"value": "death"
},
{
"label": "M-CHAT-R/F",
"value": "mchat"
},
{
"label": "ADOS-2",
"value": "ados2"
},
{
"label": "Electroencefalograma",
"value": "eeg"
}
]
}
}
}
}, },
"formats": { "formats": {
"additionalProperties": { "additionalProperties": {
"type": "string" "type": "string"
}, },
"default": {}, "default": {},
"keys": "field",
"title": "Formatos de fecha", "title": "Formatos de fecha",
"type": "object" "type": "object"
}, },
@@ -535,6 +593,7 @@
}, },
"default": {}, "default": {},
"description": "Dato \u2192 expresi\u00f3n con un grupo ( ).", "description": "Dato \u2192 expresi\u00f3n con un grupo ( ).",
"keys": "field",
"title": "Patrones", "title": "Patrones",
"type": "object" "type": "object"
}, },
@@ -595,7 +654,63 @@
"eeg" "eeg"
], ],
"title": "Estudio", "title": "Estudio",
"type": "string" "type": "string",
"widget": {
"formlyConfig": {
"props": {
"options": [
{
"label": "Identidad de la persona",
"value": "identity"
},
{
"label": "Citolog\u00eda cervical",
"value": "cervical_cytology"
},
{
"label": "Biopsia cervical",
"value": "cervical_biopsy"
},
{
"label": "Mastograf\u00eda",
"value": "mammography"
},
{
"label": "Biopsia de mama",
"value": "breast_biopsy"
},
{
"label": "Tratamiento de c\u00e1ncer de mama",
"value": "breast_treatment"
},
{
"label": "Recurrencia de c\u00e1ncer de mama",
"value": "breast_recurrence"
},
{
"label": "Nota m\u00e9dica",
"value": "clinical_note"
},
{
"label": "Defunci\u00f3n",
"value": "death"
},
{
"label": "M-CHAT-R/F",
"value": "mchat"
},
{
"label": "ADOS-2",
"value": "ados2"
},
{
"label": "Electroencefalograma",
"value": "eeg"
}
]
}
}
}
}, },
"id": { "id": {
"maxLength": 40, "maxLength": 40,
@@ -705,7 +820,8 @@
"url", "url",
"oauth", "oauth",
"table", "table",
"format" "format",
"columns"
], ],
"title": "Type", "title": "Type",
"type": "string" "type": "string"
@@ -828,7 +944,7 @@
"type": "string" "type": "string"
}, },
"on": { "on": {
"description": "Pares [columna izquierda, derecha].", "description": "Columna de la primera entrada = columna de la segunda.",
"items": { "items": {
"maxItems": 2, "maxItems": 2,
"minItems": 2, "minItems": 2,
@@ -1003,6 +1119,7 @@
"type": "string" "type": "string"
}, },
"description": "Dato de la plataforma \u2192 columna del sitio.", "description": "Dato de la plataforma \u2192 columna del sitio.",
"keys": "field",
"title": "Campos", "title": "Campos",
"type": "object" "type": "object"
}, },
@@ -1012,6 +1129,7 @@
}, },
"default": {}, "default": {},
"description": "Por ejemplo %d/%m/%Y.", "description": "Por ejemplo %d/%m/%Y.",
"keys": "field",
"title": "Formatos de fecha", "title": "Formatos de fecha",
"type": "object" "type": "object"
}, },
@@ -1059,6 +1177,7 @@
}, },
"default": {}, "default": {},
"description": "Un dato igual para todas las filas.", "description": "Un dato igual para todas las filas.",
"keys": "field",
"title": "Valores fijos", "title": "Valores fijos",
"type": "object" "type": "object"
} }
@@ -1710,12 +1829,14 @@
"properties": { "properties": {
"args": { "args": {
"additionalProperties": true, "additionalProperties": true,
"advanced": true,
"default": {}, "default": {},
"description": "Los de la fuente dlt.", "description": "Los de la fuente dlt.",
"title": "Argumentos (JSON)", "title": "Argumentos",
"type": "object" "type": "object"
}, },
"guided": { "guided": {
"advanced": true,
"anyOf": [ "anyOf": [
{ {
"$ref": "#/components/schemas/Guided" "$ref": "#/components/schemas/Guided"
@@ -1723,7 +1844,8 @@
{ {
"type": "null" "type": "null"
} }
] ],
"title": "Asistente"
}, },
"id": { "id": {
"maxLength": 40, "maxLength": 40,
@@ -1764,6 +1886,7 @@
] ]
}, },
"primary_key": { "primary_key": {
"advanced": true,
"default": [], "default": [],
"description": "Columnas que identifican una fila.", "description": "Columnas que identifican una fila.",
"items": { "items": {
@@ -1773,6 +1896,7 @@
"type": "array" "type": "array"
}, },
"resource": { "resource": {
"advanced": true,
"anyOf": [ "anyOf": [
{ {
"type": "string" "type": "string"
@@ -1785,12 +1909,14 @@
"title": "Recurso" "title": "Recurso"
}, },
"source": { "source": {
"advanced": true,
"description": "M\u00f3dulo:funci\u00f3n de la fuente dlt.", "description": "M\u00f3dulo:funci\u00f3n de la fuente dlt.",
"pattern": "^[A-Za-z_][\\w.]*:[A-Za-z_]\\w*$", "pattern": "^[A-Za-z_][\\w.]*:[A-Za-z_]\\w*$",
"title": "Fuente dlt", "title": "Fuente dlt",
"type": "string" "type": "string"
}, },
"then": { "then": {
"advanced": true,
"anyOf": [ "anyOf": [
{ {
"pattern": "^[A-Za-z_][\\w.]*:[A-Za-z_]\\w*$", "pattern": "^[A-Za-z_][\\w.]*:[A-Za-z_]\\w*$",
@@ -2004,7 +2130,63 @@
"eeg" "eeg"
], ],
"title": "Estudio", "title": "Estudio",
"type": "string" "type": "string",
"widget": {
"formlyConfig": {
"props": {
"options": [
{
"label": "Identidad de la persona",
"value": "identity"
},
{
"label": "Citolog\u00eda cervical",
"value": "cervical_cytology"
},
{
"label": "Biopsia cervical",
"value": "cervical_biopsy"
},
{
"label": "Mastograf\u00eda",
"value": "mammography"
},
{
"label": "Biopsia de mama",
"value": "breast_biopsy"
},
{
"label": "Tratamiento de c\u00e1ncer de mama",
"value": "breast_treatment"
},
{
"label": "Recurrencia de c\u00e1ncer de mama",
"value": "breast_recurrence"
},
{
"label": "Nota m\u00e9dica",
"value": "clinical_note"
},
{
"label": "Defunci\u00f3n",
"value": "death"
},
{
"label": "M-CHAT-R/F",
"value": "mchat"
},
{
"label": "ADOS-2",
"value": "ados2"
},
{
"label": "Electroencefalograma",
"value": "eeg"
}
]
}
}
}
}, },
"id": { "id": {
"maxLength": 40, "maxLength": 40,
+1 -1
View File
@@ -11,5 +11,5 @@ export interface FieldSpec {
placeholder?: string; placeholder?: string;
provider?: (string | null); provider?: (string | null);
required?: boolean; required?: boolean;
type?: 'text' | 'number' | 'password' | 'select' | 'folder' | 'server_file' | 'upload' | 'url' | 'oauth' | 'table' | 'format'; type?: 'text' | 'number' | 'password' | 'select' | 'folder' | 'server_file' | 'upload' | 'url' | 'oauth' | 'table' | 'format' | 'columns';
} }
+1 -1
View File
@@ -18,7 +18,7 @@ export interface Join {
label?: string; label?: string;
/** /**
* Pares [columna izquierda, derecha]. * Columna de la primera entrada = columna de la segunda.
*/ */
on: Array<[string, string]>; on: Array<[string, string]>;
position?: (Position | null); position?: (Position | null);