diff --git a/e2e/pages.spec.ts b/e2e/pages.spec.ts index c475742..da8f927 100644 --- a/e2e/pages.spec.ts +++ b/e2e/pages.spec.ts @@ -9,6 +9,13 @@ function watch(page: Page): string[] { return problems; } +test.beforeEach(async ({ page }) => { + const signed = await page.request.post('/api/auth/login', { + form: { username: 'admin@isssteleon.mx', password: 'solo-para-pruebas' }, + }); + expect(signed.status()).toBe(204); +}); + async function downloaded(page: Page, button: Locator, kind: 'pdf' | 'xlsx'): Promise { const [file] = await Promise.all([page.waitForEvent('download'), button.click()]); const name = file.suggestedFilename(); @@ -28,7 +35,7 @@ test('tea indicators: every tab loads, and the follow-up list exports to Excel', await page.goto('/indicadores/tea'); const measures = (await (await listed).json()).entry.length; await expect(page.getByRole('tab', { name: 'Resumen' })).toBeVisible(); - await expect(page.locator('app-tab-indicadores mat-card[data-measure]').first()).toBeVisible(); + await expect(page.locator('app-tab-indicadores [data-measure]').first()).toBeVisible(); await page.getByRole('tab', { name: 'Trazabilidad' }).click(); await expect(page.getByText('Progresión del proceso diagnóstico')).toBeVisible(); @@ -49,7 +56,7 @@ test('tea indicators: every tab loads, and the follow-up list exports to Excel', await expect(page.getByText('Cargando pacientes…')).toHaveCount(0); await page.getByRole('tab', { name: 'Datos y definiciones' }).click(); - await expect(page.locator('app-tab-definiciones tbody tr')).toHaveCount(measures); + await expect(page.locator('app-tab-definiciones details')).toHaveCount(measures); expect(problems).toEqual([]); }); diff --git a/nginx.conf b/nginx.conf index 494bf9c..1f6c008 100644 --- a/nginx.conf +++ b/nginx.conf @@ -3,7 +3,7 @@ server { root /usr/share/nginx/html; location /api/ { proxy_pass http://api:8000/; - proxy_read_timeout 30s; + proxy_read_timeout 120s; } location / { try_files $uri $uri/ /index.html; diff --git a/openapi.json b/openapi.json index 941b031..4eda5c5 100644 --- a/openapi.json +++ b/openapi.json @@ -14,14 +14,6 @@ ], "title": "Age Months" }, - "checks": { - "items": { - "additionalProperties": true, - "type": "object" - }, - "title": "Checks", - "type": "array" - }, "id": { "title": "Id", "type": "string" @@ -44,12 +36,12 @@ "title": "Metrics", "type": "array" }, - "regions": { + "relation": { + "default": [], "items": { - "additionalProperties": true, - "type": "object" + "$ref": "#/components/schemas/Relation" }, - "title": "Regions", + "title": "Relation", "type": "array" }, "valid": { @@ -69,50 +61,50 @@ "valid", "level", "age_months", - "metrics", - "checks", - "regions" + "metrics" ], "title": "Analysis", "type": "object" }, - "Analyze": { + "Answers": { "properties": { - "execution": { - "anyOf": [ - { - "$ref": "#/components/schemas/Execution" - }, - { - "type": "null" - } - ] - } - }, - "title": "Analyze", - "type": "object" - }, - "AnalyzeRequest": { - "properties": { - "execution": { - "anyOf": [ - { - "$ref": "#/components/schemas/Execution" - }, - { - "type": "null" - } - ] + "answers": { + "additionalProperties": true, + "default": {}, + "title": "Answers", + "type": "object" }, - "scope": { - "$ref": "#/components/schemas/Scope", - "default": { - "ids": [], - "mode": "pending" - } + "node": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Node" + }, + "pipeline": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Pipeline" + }, + "type": { + "title": "Type", + "type": "string" } }, - "title": "AnalyzeRequest", + "required": [ + "type" + ], + "title": "Answers", "type": "object" }, "Body_add_clinical_validation": { @@ -129,130 +121,120 @@ "title": "Body_add_clinical_validation", "type": "object" }, - "Body_import_models": { - "properties": { - "file": { - "contentMediaType": "application/octet-stream", - "title": "File", - "type": "string" - } - }, - "required": [ - "file" - ], - "title": "Body_import_models", - "type": "object" - }, - "Body_start_preview": { - "properties": { - "ados2": { - "anyOf": [ - { - "format": "binary", - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Ados2" - }, - "birth_date": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Birth Date" - }, - "edf": { - "format": "binary", - "title": "Edf", - "type": "string" - }, - "pipeline": { - "default": "tea", - "title": "Pipeline", - "type": "string" - } - }, - "required": [ - "edf" - ], - "title": "Body_start_preview", - "type": "object" - }, "Body_upload": { - "properties": { - "file": { - "contentMediaType": "application/octet-stream", - "title": "File", - "type": "string" - } - }, - "required": [ - "file" - ], - "title": "Body_upload", - "type": "object" - }, - "Body_upload_training_inputs": { "properties": { "files": { "items": { - "format": "binary", + "contentMediaType": "application/octet-stream", "type": "string" }, - "minItems": 1, "title": "Files", "type": "array" + }, + "folder": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Folder" } }, "required": [ "files" ], - "title": "Body_upload_training_inputs", + "title": "Body_upload", "type": "object" }, - "Cancel": { + "Browsed": { "properties": { - "id": { - "title": "Id", - "type": "string" + "entries": { + "items": { + "$ref": "#/components/schemas/Entry" + }, + "title": "Entries", + "type": "array" }, - "state": { - "enum": [ - "queued", - "running", - "succeeded", - "failed", - "cancelling", - "cancelled" + "parent": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } ], - "title": "State", - "type": "string" + "title": "Parent" }, - "status": { - "title": "Status", - "type": "string" + "path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Path" } }, "required": [ - "id", - "status", - "state" + "path", + "parent", + "entries" ], - "title": "Cancel", + "title": "Browsed", + "type": "object" + }, + "Catalog": { + "additionalProperties": false, + "properties": { + "formats": { + "items": { + "$ref": "#/components/schemas/Option" + }, + "title": "Formats", + "type": "array" + }, + "groups": { + "additionalProperties": { + "$ref": "#/components/schemas/Group" + }, + "title": "Groups", + "type": "object" + }, + "providers": { + "additionalProperties": { + "$ref": "#/components/schemas/Provider" + }, + "title": "Providers", + "type": "object" + }, + "types": { + "additionalProperties": { + "$ref": "#/components/schemas/SourceType" + }, + "title": "Types", + "type": "object" + } + }, + "required": [ + "groups", + "providers", + "formats", + "types" + ], + "title": "Catalog", "type": "object" }, "Condition": { "properties": { "column": { - "title": "Column", + "description": "Por ejemplo \u00abtext\u00bb, el texto le\u00eddo del documento.", + "title": "Columna", "type": "string" }, "op": { @@ -262,12 +244,37 @@ "matches", "present" ], - "title": "Op", - "type": "string" + "title": "Condici\u00f3n", + "type": "string", + "widget": { + "formlyConfig": { + "props": { + "options": [ + { + "label": "es igual a", + "value": "equals" + }, + { + "label": "contiene", + "value": "contains" + }, + { + "label": "coincide con la expresi\u00f3n", + "value": "matches" + }, + { + "label": "tiene alg\u00fan valor", + "value": "present" + } + ] + } + } + } }, "value": { "default": "", - "title": "Value", + "description": "Lo que se busca; por ejemplo \u00abcitolog\u00eda\u00bb.", + "title": "Valor", "type": "string" } }, @@ -290,6 +297,7 @@ "mammography", "breast_biopsy", "breast_treatment", + "breast_recurrence", "clinical_note", "death", "mchat", @@ -329,92 +337,65 @@ "title": "Domain", "type": "string" }, - "Edf": { - "additionalProperties": false, - "description": "EDF files (a column of file hashes) to the facts their header holds: patient code, sex,\nbirth date, recording date, record code, duration and channel count, as `edf_*` columns.\nAn unreadable file keeps its row with `edf_error` set.\n\nUse a filesystem source (`dlt.sources.filesystem:filesystem`) with the uploads folder as\n`bucket_url`, `file_glob: \"*.edf\"`, and `then: \"persistance.readers:read_bytes\"`. Read its\n`content` column with this node. Map `edf_patient_code`, `edf_birth_date`, and `edf_sex` to\nidentity's `record_number`, `birth_date`, and `sex`, using the site's formats and ConceptMap.\n\nThe patient code must match the hospital's record number including its prefix. Feed the\nidentity map into the pipeline's link node alongside the hospital identity source. Map\n`edf_study_date` to `study_date` (format `%Y-%m-%d`), `edf_record_code` to `lab_record_id`,\nand `content` to `edf`, then feed that map and the link into a target with entity `eeg`.", + "Entry": { "properties": { - "column": { - "title": "Column", - "type": "string" - }, - "id": { - "maxLength": 40, - "pattern": "^[a-z][a-z0-9_]*$", - "title": "Id", - "type": "string" - }, - "inputs": { - "default": [], - "items": { - "maxLength": 40, - "pattern": "^[a-z][a-z0-9_]*$", - "type": "string" - }, - "title": "Inputs", - "type": "array" - }, "kind": { - "const": "edf", - "default": "edf", + "enum": [ + "folder", + "file" + ], "title": "Kind", "type": "string" }, - "label": { - "default": "", - "title": "Label", + "name": { + "title": "Name", "type": "string" }, - "position": { + "path": { + "title": "Path", + "type": "string" + }, + "size": { "anyOf": [ { - "$ref": "#/components/schemas/Position" + "type": "integer" }, { "type": "null" } - ] + ], + "title": "Size" } }, "required": [ - "id", - "column" + "name", + "path", + "kind" ], - "title": "Edf", + "title": "Entry", "type": "object" }, - "Execution": { - "additionalProperties": false, - "description": "What a request or a job config carries: None means the deployment's default.", + "ErrorModel": { "properties": { - "mode": { - "anyOf": [ - { - "enum": [ - "sync", - "local", - "remote" - ], - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Modo" - }, - "scheduler": { + "detail": { "anyOf": [ { "type": "string" }, { - "type": "null" + "additionalProperties": { + "type": "string" + }, + "type": "object" } ], - "title": "Planificador Dask" + "title": "Detail" } }, - "title": "Ejecuci\u00f3n", + "required": [ + "detail" + ], + "title": "ErrorModel", "type": "object" }, "Extract": { @@ -433,7 +414,17 @@ "type": "array" } ], - "title": "Column" + "title": "Columna con el texto" + }, + "columns": { + "additionalProperties": { + "type": "string" + }, + "default": {}, + "description": "Dato \u2192 columna, sin leer el texto.", + "keys": "field", + "title": "Datos tomados de columnas", + "type": "object" }, "concept_map": { "anyOf": [ @@ -446,9 +437,10 @@ "type": "null" } ], - "title": "Concept Map" + "title": "Equivalencias de c\u00f3digos" }, "entity": { + "description": "Qu\u00e9 estudio se saca del documento.", "enum": [ "identity", "cervical_cytology", @@ -456,26 +448,85 @@ "mammography", "breast_biopsy", "breast_treatment", + "breast_recurrence", "clinical_note", "death", "mchat", "ados2", "eeg" ], - "title": "Entity", - "type": "string" + "title": "Estudio", + "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": { "additionalProperties": { "type": "string" }, "default": {}, - "title": "Formats", + "keys": "field", + "title": "Formatos de fecha", "type": "object" }, "hints": { "default": "", - "title": "Hints", + "description": "Para el modelo de lenguaje.", + "title": "Indicaciones", "type": "string" }, "id": { @@ -502,7 +553,8 @@ }, "label": { "default": "", - "title": "Label", + "description": "C\u00f3mo se ve en el diagrama.", + "title": "Nombre", "type": "string" }, "method": { @@ -512,15 +564,37 @@ "llm", "patterns" ], - "title": "Method", - "type": "string" + "title": "C\u00f3mo leer", + "type": "string", + "widget": { + "formlyConfig": { + "props": { + "options": [ + { + "label": "Autom\u00e1tico", + "value": "auto" + }, + { + "label": "Con el modelo de lenguaje", + "value": "llm" + }, + { + "label": "Con patrones", + "value": "patterns" + } + ] + } + } + } }, "patterns": { "additionalProperties": { "type": "string" }, "default": {}, - "title": "Patterns", + "description": "Dato \u2192 expresi\u00f3n con un grupo ( ).", + "keys": "field", + "title": "Patrones", "type": "object" }, "position": { @@ -548,7 +622,7 @@ "properties": { "column": { "default": "doc", - "title": "Column", + "title": "Columna con el FHIR", "type": "string" }, "concept_map": { @@ -562,7 +636,7 @@ "type": "null" } ], - "title": "Concept Map" + "title": "Equivalencias de c\u00f3digos" }, "entity": { "enum": [ @@ -572,14 +646,71 @@ "mammography", "breast_biopsy", "breast_treatment", + "breast_recurrence", "clinical_note", "death", "mchat", "ados2", "eeg" ], - "title": "Entity", - "type": "string" + "title": "Estudio", + "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": { "maxLength": 40, @@ -605,7 +736,8 @@ }, "label": { "default": "", - "title": "Label", + "description": "C\u00f3mo se ve en el diagrama.", + "title": "Nombre", "type": "string" }, "position": { @@ -626,6 +758,121 @@ "title": "Fhir", "type": "object" }, + "FieldSpec": { + "additionalProperties": false, + "properties": { + "advanced": { + "default": false, + "title": "Advanced", + "type": "boolean" + }, + "default": { + "title": "Default" + }, + "help": { + "default": "", + "title": "Help", + "type": "string" + }, + "label": { + "title": "Label", + "type": "string" + }, + "options": { + "default": [], + "items": { + "$ref": "#/components/schemas/Option" + }, + "title": "Options", + "type": "array" + }, + "placeholder": { + "default": "", + "title": "Placeholder", + "type": "string" + }, + "provider": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Provider" + }, + "required": { + "default": true, + "title": "Required", + "type": "boolean" + }, + "type": { + "default": "text", + "enum": [ + "text", + "number", + "password", + "select", + "folder", + "server_file", + "upload", + "url", + "oauth", + "table", + "format", + "columns" + ], + "title": "Type", + "type": "string" + } + }, + "required": [ + "label" + ], + "title": "FieldSpec", + "type": "object" + }, + "Group": { + "additionalProperties": false, + "properties": { + "description": { + "title": "Description", + "type": "string" + }, + "title": { + "title": "Title", + "type": "string" + } + }, + "required": [ + "title", + "description" + ], + "title": "Group", + "type": "object" + }, + "Guided": { + "additionalProperties": false, + "description": "How the Conectar dialog drew a source: its type (core.sources) and the answers given.\nThe node's dlt fields are made from them; drawn by hand (\"Avanzado\"), a node has none.", + "properties": { + "answers": { + "additionalProperties": true, + "default": {}, + "title": "Answers", + "type": "object" + }, + "type": { + "title": "Type", + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "Guided", + "type": "object" + }, "HTTPValidationError": { "properties": { "detail": { @@ -639,152 +886,6 @@ "title": "HTTPValidationError", "type": "object" }, - "Health": { - "properties": { - "dashboard_ok": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Dashboard Ok" - }, - "dashboard_url": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Dashboard Url" - }, - "error": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Error" - }, - "expected_workers": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Expected Workers" - }, - "latency_ms": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Latency Ms" - }, - "mode": { - "enum": [ - "sync", - "local", - "remote" - ], - "title": "Mode", - "type": "string" - }, - "reachable": { - "title": "Reachable", - "type": "boolean" - }, - "reference": { - "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Reference" - }, - "scheduler": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Scheduler" - }, - "threads": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Threads" - }, - "version_error": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Version Error" - }, - "versions_ok": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Versions Ok" - }, - "workers": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Workers" - } - }, - "required": [ - "mode", - "scheduler", - "reachable" - ], - "title": "Health", - "type": "object" - }, "Join": { "additionalProperties": false, "description": "Two inputs side by side where their columns match.", @@ -795,8 +896,24 @@ "inner", "left" ], - "title": "How", - "type": "string" + "title": "Cu\u00e1les quedan", + "type": "string", + "widget": { + "formlyConfig": { + "props": { + "options": [ + { + "label": "Solo las que tienen pareja", + "value": "inner" + }, + { + "label": "Todas las de la izquierda", + "value": "left" + } + ] + } + } + } }, "id": { "maxLength": 40, @@ -822,10 +939,12 @@ }, "label": { "default": "", - "title": "Label", + "description": "C\u00f3mo se ve en el diagrama.", + "title": "Nombre", "type": "string" }, "on": { + "description": "Columna de la primera entrada = columna de la segunda.", "items": { "maxItems": 2, "minItems": 2, @@ -839,7 +958,7 @@ ], "type": "array" }, - "title": "On", + "title": "Columnas iguales", "type": "array" }, "position": { @@ -876,7 +995,7 @@ "items": { "type": "string" }, - "title": "Fields", + "title": "Datos que comparar", "type": "array" }, "id": { @@ -903,7 +1022,8 @@ }, "label": { "default": "", - "title": "Label", + "description": "C\u00f3mo se ve en el diagrama.", + "title": "Nombre", "type": "string" }, "position": { @@ -918,17 +1038,19 @@ }, "review": { "default": 0.5, + "description": "Parecidos por encima de esto los ve un revisor.", "exclusiveMinimum": 0.0, "maximum": 1.0, - "title": "Review", + "title": "Umbral para revisar", "type": "number" }, "rules": { "default": [], + "description": "Vac\u00edo: las de siempre (mismo identificador, o misma fecha de nacimiento y nombre).", "items": { "type": "string" }, - "title": "Rules", + "title": "Reglas", "type": "array" } }, @@ -938,6 +1060,42 @@ "title": "Link", "type": "object" }, + "Listing": { + "additionalProperties": false, + "description": "What \"Probar conexi\u00f3n\" shows: a database's tables (the resources of `source`, built\nfrom `args`), or the first rows the type's own node reads (files, records).", + "properties": { + "args": { + "additionalProperties": true, + "default": {}, + "title": "Args", + "type": "object" + }, + "kind": { + "enum": [ + "tables", + "rows" + ], + "title": "Kind", + "type": "string" + }, + "source": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Source" + } + }, + "required": [ + "kind" + ], + "title": "Listing", + "type": "object" + }, "Map": { "additionalProperties": false, "description": "Columns to platform fields, the site's codes translated by its ConceptMap\n(core.concept_map), and its date formats.", @@ -953,13 +1111,16 @@ "type": "null" } ], - "title": "Concept Map" + "description": "La tabla de c\u00f3digos del sitio.", + "title": "Equivalencias de c\u00f3digos" }, "fields": { "additionalProperties": { "type": "string" }, - "title": "Fields", + "description": "Dato de la plataforma \u2192 columna del sitio.", + "keys": "field", + "title": "Campos", "type": "object" }, "formats": { @@ -967,7 +1128,9 @@ "type": "string" }, "default": {}, - "title": "Formats", + "description": "Por ejemplo %d/%m/%Y.", + "keys": "field", + "title": "Formatos de fecha", "type": "object" }, "id": { @@ -994,7 +1157,8 @@ }, "label": { "default": "", - "title": "Label", + "description": "C\u00f3mo se ve en el diagrama.", + "title": "Nombre", "type": "string" }, "position": { @@ -1012,7 +1176,9 @@ "type": "string" }, "default": {}, - "title": "Values", + "description": "Un dato igual para todas las filas.", + "keys": "field", + "title": "Valores fijos", "type": "object" } }, @@ -1029,6 +1195,25 @@ "title": "Code", "type": "string" }, + "electrodes": { + "default": [], + "items": { + "$ref": "#/components/schemas/Site" + }, + "title": "Electrodes", + "type": "array" + }, + "median": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Median" + }, "model": { "anyOf": [ { @@ -1051,6 +1236,28 @@ ], "title": "Outside" }, + "p5": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "P5" + }, + "p95": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "P95" + }, "value": { "title": "Value", "type": "number" @@ -1065,6 +1272,14 @@ } ], "title": "Z" + }, + "zones": { + "default": [], + "items": { + "$ref": "#/components/schemas/Site" + }, + "title": "Zones", + "type": "array" } }, "required": [ @@ -1077,30 +1292,40 @@ "title": "Metric", "type": "object" }, - "Options": { + "Model": { "properties": { - "default_mode": { - "enum": [ - "sync", - "local", - "remote" - ], - "title": "Default Mode", + "name": { + "title": "Name", "type": "string" }, - "schedulers": { - "items": { - "type": "string" - }, - "title": "Schedulers", - "type": "array" + "title": { + "title": "Title", + "type": "string" } }, "required": [ - "default_mode", - "schedulers" + "name", + "title" ], - "title": "Options", + "title": "Model", + "type": "object" + }, + "Option": { + "additionalProperties": false, + "properties": { + "label": { + "title": "Label", + "type": "string" + }, + "value": { + "title": "Value" + } + }, + "required": [ + "value", + "label" + ], + "title": "Option", "type": "object" }, "PersonDecision": { @@ -1132,7 +1357,6 @@ "items": { "discriminator": { "mapping": { - "edf": "#/components/schemas/Edf", "extract": "#/components/schemas/Extract", "fhir": "#/components/schemas/Fhir", "join": "#/components/schemas/Join", @@ -1161,9 +1385,6 @@ { "$ref": "#/components/schemas/Extract" }, - { - "$ref": "#/components/schemas/Edf" - }, { "$ref": "#/components/schemas/Fhir" }, @@ -1206,456 +1427,47 @@ "title": "Position", "type": "object" }, - "PreviewAdos2": { + "Provider": { + "additionalProperties": false, + "description": "A sign-in button's OAuth 2.0 provider (authorization code flow).", "properties": { - "classification": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Classification" - }, - "css": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Css" - }, - "evaluation_date": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Evaluation Date" - }, - "items": { - "additionalProperties": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ] - }, - "title": "Items", - "type": "object" - }, - "module": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Module" - }, - "read": { - "items": { - "type": "string" - }, - "title": "Read", - "type": "array" - }, - "titles": { + "authorize_params": { "additionalProperties": { "type": "string" }, - "title": "Titles", - "type": "object" - } - }, - "required": [ - "module", - "evaluation_date", - "items", - "titles", - "css", - "classification", - "read" - ], - "title": "PreviewAdos2", - "type": "object" - }, - "PreviewEeg": { - "properties": { - "age_months": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Age Months" - }, - "bad_channels": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Bad Channels" - }, - "channels": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Channels" - }, - "checks": { - "items": { - "additionalProperties": true, - "type": "object" - }, - "title": "Checks", - "type": "array" - }, - "clean_fraction": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Clean Fraction" - }, - "duration_min": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Duration Min" - }, - "error": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Error" - }, - "level": { - "title": "Level", - "type": "string" - }, - "line_noise_db": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Line Noise Db" - }, - "metrics": { - "items": { - "$ref": "#/components/schemas/PreviewMetric" - }, - "title": "Metrics", - "type": "array" - }, - "recorded_on": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Recorded On" - }, - "sleep": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Sleep" - }, - "valid": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "title": "Valid" - } - }, - "required": [ - "valid", - "level", - "recorded_on", - "age_months", - "clean_fraction", - "bad_channels", - "channels", - "duration_min", - "line_noise_db", - "sleep", - "checks", - "metrics", - "error" - ], - "title": "PreviewEeg", - "type": "object" - }, - "PreviewMetric": { - "properties": { - "code": { - "title": "Code", - "type": "string" - }, - "electrodes": { - "additionalProperties": { - "$ref": "#/components/schemas/Site" - }, - "title": "Electrodes", + "default": {}, + "title": "Authorize Params", "type": "object" }, - "model": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Model" + "authorize_url": { + "title": "Authorize Url", + "type": "string" }, - "score": { - "anyOf": [ - { - "$ref": "#/components/schemas/Score" - }, - { - "type": "null" - } - ] + "env": { + "title": "Env", + "type": "string" }, - "value": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Value" + "scope": { + "title": "Scope", + "type": "string" }, - "zones": { - "additionalProperties": { - "$ref": "#/components/schemas/Site" - }, - "title": "Zones", - "type": "object" - } - }, - "required": [ - "code", - "value", - "score", - "model", - "electrodes", - "zones" - ], - "title": "PreviewMetric", - "type": "object" - }, - "PreviewResult": { - "properties": { - "ados2": { - "anyOf": [ - { - "$ref": "#/components/schemas/PreviewAdos2" - }, - { - "type": "null" - } - ] + "title": { + "title": "Title", + "type": "string" }, - "eeg": { - "$ref": "#/components/schemas/PreviewEeg" - }, - "warnings": { - "items": { - "type": "string" - }, - "title": "Warnings", - "type": "array" - } - }, - "required": [ - "eeg", - "ados2", - "warnings" - ], - "title": "PreviewResult", - "type": "object" - }, - "PreviewStatus": { - "properties": { - "result": { - "anyOf": [ - { - "$ref": "#/components/schemas/PreviewResult" - }, - { - "type": "null" - } - ] - }, - "state": { - "enum": [ - "queued", - "running", - "succeeded", - "failed", - "cancelling", - "cancelled" - ], - "title": "State", + "token_url": { + "title": "Token Url", "type": "string" } }, "required": [ - "state", - "result" + "title", + "env", + "authorize_url", + "token_url", + "scope" ], - "title": "PreviewStatus", - "type": "object" - }, - "Progress": { - "description": "The run tag's JSON; the API returns it as it is.", - "properties": { - "done": { - "title": "Done", - "type": "integer" - }, - "elapsed_s": { - "title": "Elapsed S", - "type": "number" - }, - "eta_s": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Eta S" - }, - "mode": { - "enum": [ - "sync", - "local", - "remote" - ], - "title": "Mode", - "type": "string" - }, - "phase": { - "title": "Phase", - "type": "string" - }, - "scheduler": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Scheduler" - }, - "tasks": { - "anyOf": [ - { - "$ref": "#/components/schemas/Tasks" - }, - { - "type": "null" - } - ] - }, - "total": { - "title": "Total", - "type": "integer" - }, - "updated_at": { - "title": "Updated At", - "type": "string" - }, - "workers": { - "default": [], - "items": { - "$ref": "#/components/schemas/Worker" - }, - "title": "Workers", - "type": "array" - } - }, - "required": [ - "phase", - "done", - "total", - "elapsed_s", - "eta_s", - "mode", - "scheduler", - "updated_at" - ], - "title": "Progress", + "title": "Provider", "type": "object" }, "Read": { @@ -1663,7 +1475,8 @@ "description": "Files in a column (PDF, Word, Excel, scans...) to text (MarkItDown, OCRmyPDF).", "properties": { "column": { - "title": "Column", + "description": "Donde la entrada trae cada documento.", + "title": "Columna con los archivos", "type": "string" }, "id": { @@ -1690,7 +1503,8 @@ }, "label": { "default": "", - "title": "Label", + "description": "C\u00f3mo se ve en el diagrama.", + "title": "Nombre", "type": "string" }, "position": { @@ -1711,31 +1525,6 @@ "title": "Read", "type": "object" }, - "Reference": { - "additionalProperties": false, - "properties": { - "line_hz": { - "default": 50, - "enum": [ - 50, - 60 - ], - "title": "Frecuencia de la red el\u00e9ctrica (Hz)", - "type": "integer" - }, - "name": { - "description": "Carpeta dentro de TEA_REFERENCE_ROOT con los EDF y edades.csv", - "pattern": "^[A-Za-z0-9._-]{1,64}$", - "title": "Cohorte de referencia", - "type": "string" - } - }, - "required": [ - "name" - ], - "title": "Reference", - "type": "object" - }, "Rejection": { "properties": { "entity": { @@ -1746,6 +1535,7 @@ "mammography", "breast_biopsy", "breast_treatment", + "breast_recurrence", "clinical_note", "death", "mchat", @@ -1772,9 +1562,125 @@ "title": "Rejection", "type": "object" }, + "Relation": { + "description": "One pair of the champion EEG\u2013ADOS-2 association, for this EEG (models.tea.association).", + "properties": { + "biomarker": { + "title": "Biomarker", + "type": "string" + }, + "ci_high": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Ci High" + }, + "ci_low": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Ci Low" + }, + "event": { + "title": "Event", + "type": "string" + }, + "kind": { + "title": "Kind", + "type": "string" + }, + "metric": { + "title": "Metric", + "type": "string" + }, + "model": { + "title": "Model", + "type": "string" + }, + "n": { + "title": "N", + "type": "number" + }, + "observed": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Observed" + }, + "odds_ratio": { + "title": "Odds Ratio", + "type": "number" + }, + "outcome_code": { + "title": "Outcome Code", + "type": "string" + }, + "probability": { + "title": "Probability", + "type": "number" + }, + "q": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "title": "Q" + }, + "reference_probability": { + "title": "Reference Probability", + "type": "number" + }, + "z": { + "title": "Z", + "type": "number" + }, + "zone": { + "title": "Zone", + "type": "string" + } + }, + "required": [ + "biomarker", + "metric", + "zone", + "outcome_code", + "kind", + "event", + "z", + "probability", + "reference_probability", + "odds_ratio", + "ci_low", + "ci_high", + "q", + "n", + "model" + ], + "title": "Relation", + "type": "object" + }, "Route": { "additionalProperties": false, - "description": "Only the rows where every condition holds (e.g. reports titled \"Citolog\u00eda\").", + "description": "Only the rows where every condition holds (e.g. reports titled \"Citolog\u00eda\"). An\n`otherwise` route takes the rows of its input that none of the other routes on that\ninput take (documents nobody recognises, for a reviewer), then its own conditions.", "properties": { "id": { "maxLength": 40, @@ -1800,9 +1706,16 @@ }, "label": { "default": "", - "title": "Label", + "description": "C\u00f3mo se ve en el diagrama.", + "title": "Nombre", "type": "string" }, + "otherwise": { + "default": false, + "description": "Recoge lo que nadie reconoce, para revisarlo.", + "title": "Lo que ning\u00fan otro tome", + "type": "boolean" + }, "position": { "anyOf": [ { @@ -1814,151 +1727,20 @@ ] }, "when": { + "default": [], "items": { "$ref": "#/components/schemas/Condition" }, - "title": "When", + "title": "Pasan las filas donde", "type": "array" } }, "required": [ - "id", - "when" + "id" ], "title": "Route", "type": "object" }, - "Run": { - "properties": { - "domain": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Domain" - }, - "ended": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Ended" - }, - "error": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Error" - }, - "id": { - "title": "Id", - "type": "string" - }, - "info": { - "items": { - "type": "string" - }, - "title": "Info", - "type": "array" - }, - "job": { - "title": "Job", - "type": "string" - }, - "outputs": { - "anyOf": [ - { - "additionalProperties": true, - "type": "object" - }, - { - "type": "null" - } - ], - "title": "Outputs" - }, - "progress": { - "anyOf": [ - { - "$ref": "#/components/schemas/Progress" - }, - { - "type": "null" - } - ] - }, - "started": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Started" - }, - "state": { - "enum": [ - "queued", - "running", - "succeeded", - "failed", - "cancelling", - "cancelled" - ], - "title": "State", - "type": "string" - }, - "status": { - "title": "Status", - "type": "string" - }, - "steps": { - "items": { - "$ref": "#/components/schemas/Step" - }, - "title": "Steps", - "type": "array" - }, - "warnings": { - "items": { - "type": "string" - }, - "title": "Warnings", - "type": "array" - } - }, - "required": [ - "id", - "job", - "domain", - "status", - "state", - "started", - "ended", - "progress", - "steps", - "info", - "warnings", - "error" - ], - "title": "Run", - "type": "object" - }, "RunRequest": { "properties": { "version": { @@ -1976,78 +1758,6 @@ "title": "RunRequest", "type": "object" }, - "RunSummary": { - "properties": { - "domain": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Domain" - }, - "ended": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Ended" - }, - "id": { - "title": "Id", - "type": "string" - }, - "job": { - "title": "Job", - "type": "string" - }, - "started": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Started" - }, - "state": { - "enum": [ - "queued", - "running", - "succeeded", - "failed", - "cancelling", - "cancelled" - ], - "title": "State", - "type": "string" - }, - "status": { - "title": "Status", - "type": "string" - } - }, - "required": [ - "id", - "job", - "domain", - "status", - "state", - "started", - "ended" - ], - "title": "RunSummary", - "type": "object" - }, "SavedPipeline": { "properties": { "pipeline": { @@ -2065,89 +1775,33 @@ "title": "SavedPipeline", "type": "object" }, - "Scope": { - "additionalProperties": false, - "description": "Which EEGs an analysis takes: the pending ones, the first `n` of them, or the named\nones (re-analysis), each named by the `id` that `/tea/eegs` shows.", + "SignIn": { "properties": { - "ids": { - "default": [], - "items": { - "type": "string" - }, - "title": "Ids", - "type": "array" - }, - "mode": { - "default": "pending", - "enum": [ - "pending", - "first_n", - "ids" - ], - "title": "Mode", + "state": { + "title": "State", "type": "string" }, - "n": { - "anyOf": [ - { - "minimum": 1.0, - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "N" + "url": { + "title": "Url", + "type": "string" } }, - "title": "Scope", + "required": [ + "url", + "state" + ], + "title": "SignIn", "type": "object" }, - "Score": { + "Site": { "properties": { - "median": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Median" + "site": { + "title": "Site", + "type": "string" }, - "outside": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Outside" - }, - "p5": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "P5" - }, - "p95": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "P95" + "value": { + "title": "Value", + "type": "number" }, "z": { "anyOf": [ @@ -2162,42 +1816,9 @@ } }, "required": [ - "z", - "outside", - "p5", - "median", - "p95" - ], - "title": "Score", - "type": "object" - }, - "Site": { - "properties": { - "score": { - "anyOf": [ - { - "$ref": "#/components/schemas/Score" - }, - { - "type": "null" - } - ] - }, - "value": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Value" - } - }, - "required": [ + "site", "value", - "score" + "z" ], "title": "Site", "type": "object" @@ -2208,10 +1829,24 @@ "properties": { "args": { "additionalProperties": true, + "advanced": true, "default": {}, - "title": "Args", + "description": "Los de la fuente dlt.", + "title": "Argumentos", "type": "object" }, + "guided": { + "advanced": true, + "anyOf": [ + { + "$ref": "#/components/schemas/Guided" + }, + { + "type": "null" + } + ], + "title": "Asistente" + }, "id": { "maxLength": 40, "pattern": "^[a-z][a-z0-9_]*$", @@ -2236,7 +1871,8 @@ }, "label": { "default": "", - "title": "Label", + "description": "C\u00f3mo se ve en el diagrama.", + "title": "Nombre", "type": "string" }, "position": { @@ -2250,14 +1886,17 @@ ] }, "primary_key": { + "advanced": true, "default": [], + "description": "Columnas que identifican una fila.", "items": { "type": "string" }, - "title": "Primary Key", + "title": "Llave", "type": "array" }, "resource": { + "advanced": true, "anyOf": [ { "type": "string" @@ -2266,14 +1905,18 @@ "type": "null" } ], - "title": "Resource" + "description": "Cu\u00e1l, si la fuente ofrece varios (una tabla).", + "title": "Recurso" }, "source": { + "advanced": true, + "description": "M\u00f3dulo:funci\u00f3n de la fuente dlt.", "pattern": "^[A-Za-z_][\\w.]*:[A-Za-z_]\\w*$", - "title": "Source", + "title": "Fuente dlt", "type": "string" }, "then": { + "advanced": true, "anyOf": [ { "pattern": "^[A-Za-z_][\\w.]*:[A-Za-z_]\\w*$", @@ -2283,7 +1926,8 @@ "type": "null" } ], - "title": "Then" + "description": "Transformador dlt para los archivos.", + "title": "Lector" } }, "required": [ @@ -2313,46 +1957,92 @@ "title": "SourceRef", "type": "object" }, - "Step": { + "SourceType": { + "additionalProperties": false, "properties": { - "ended": { - "anyOf": [ - { - "type": "number" - }, - { - "type": "null" - } - ], - "title": "Ended" + "args": { + "additionalProperties": true, + "default": {}, + "title": "Args", + "type": "object" }, - "key": { - "title": "Key", + "description": { + "title": "Description", "type": "string" }, - "started": { + "fields": { + "additionalProperties": { + "$ref": "#/components/schemas/FieldSpec" + }, + "title": "Fields", + "type": "object" + }, + "group": { + "title": "Group", + "type": "string" + }, + "icon": { + "title": "Icon", + "type": "string" + }, + "listing": { "anyOf": [ { - "type": "number" + "$ref": "#/components/schemas/Listing" + }, + { + "type": "null" + } + ] + }, + "primary_key": { + "default": [], + "items": { + "type": "string" + }, + "title": "Primary Key", + "type": "array" + }, + "resource": { + "anyOf": [ + { + "type": "string" }, { "type": "null" } ], - "title": "Started" + "title": "Resource" }, - "status": { - "title": "Status", + "source": { + "title": "Source", + "type": "string" + }, + "then": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Then" + }, + "title": { + "title": "Title", "type": "string" } }, "required": [ - "key", - "status", - "started", - "ended" + "group", + "title", + "description", + "icon", + "fields", + "source" ], - "title": "Step", + "title": "SourceType", "type": "object" }, "Study": { @@ -2424,6 +2114,7 @@ "description": "Rows of platform fields into one platform entity, each row given its person by the\none `link` node among the inputs. Rule breaks are held for review.", "properties": { "entity": { + "description": "En qu\u00e9 estudio de la plataforma se guarda.", "enum": [ "identity", "cervical_cytology", @@ -2431,14 +2122,71 @@ "mammography", "breast_biopsy", "breast_treatment", + "breast_recurrence", "clinical_note", "death", "mchat", "ados2", "eeg" ], - "title": "Entity", - "type": "string" + "title": "Estudio", + "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": { "maxLength": 40, @@ -2464,7 +2212,8 @@ }, "label": { "default": "", - "title": "Label", + "description": "C\u00f3mo se ve en el diagrama.", + "title": "Nombre", "type": "string" }, "position": { @@ -2485,35 +2234,50 @@ "title": "Target", "type": "object" }, - "Tasks": { + "Tested": { "properties": { - "erred": { - "default": 0, - "title": "Erred", - "type": "integer" + "detail": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Detail" }, - "memory": { - "default": 0, - "title": "Memory", - "type": "integer" + "message": { + "title": "Message", + "type": "string" }, - "processing": { - "default": 0, - "title": "Processing", - "type": "integer" + "ok": { + "title": "Ok", + "type": "boolean" }, - "queued": { - "default": 0, - "title": "Queued", - "type": "integer" + "rows": { + "default": [], + "items": { + "additionalProperties": true, + "type": "object" + }, + "title": "Rows", + "type": "array" }, - "waiting": { - "default": 0, - "title": "Waiting", - "type": "integer" + "tables": { + "default": [], + "items": { + "type": "string" + }, + "title": "Tables", + "type": "array" } }, - "title": "Tasks", + "required": [ + "ok", + "message" + ], + "title": "Tested", "type": "object" }, "Training": { @@ -2528,18 +2292,7 @@ "type": "null" } ], - "description": "Fecha de corte de los datos (por omisi\u00f3n, hoy)", - "title": "Datos hasta" - }, - "execution": { - "anyOf": [ - { - "$ref": "#/components/schemas/Execution" - }, - { - "type": "null" - } - ] + "title": "As Of" }, "models": { "default": [], @@ -2548,49 +2301,233 @@ }, "title": "Models", "type": "array" - }, - "reference": { - "anyOf": [ - { - "$ref": "#/components/schemas/Reference" - }, - { - "type": "null" - } - ] } }, "title": "Training", "type": "object" }, - "TrainingConfig": { + "Uploaded": { "properties": { - "defaults": { - "additionalProperties": true, - "title": "Defaults", - "type": "object" - }, - "domain": { - "title": "Domain", + "bucket_url": { + "title": "Bucket Url", "type": "string" }, - "json_schema": { - "additionalProperties": true, - "title": "Json Schema", - "type": "object" + "files": { + "items": { + "type": "string" + }, + "title": "Files", + "type": "array" + } + }, + "required": [ + "bucket_url", + "files" + ], + "title": "Uploaded", + "type": "object" + }, + "UserCreate": { + "properties": { + "domains": { + "default": [], + "items": { + "$ref": "#/components/schemas/Domain" + }, + "title": "Domains", + "type": "array" + }, + "email": { + "format": "email", + "title": "Email", + "type": "string" + }, + "is_active": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": true, + "title": "Is Active" + }, + "is_superuser": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": false, + "title": "Is Superuser" + }, + "is_verified": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": false, + "title": "Is Verified" }, "name": { + "default": "", + "title": "Name", + "type": "string" + }, + "password": { + "title": "Password", + "type": "string" + } + }, + "required": [ + "email", + "password" + ], + "title": "UserCreate", + "type": "object" + }, + "UserRead": { + "properties": { + "domains": { + "default": [], + "items": { + "$ref": "#/components/schemas/Domain" + }, + "title": "Domains", + "type": "array" + }, + "email": { + "format": "email", + "title": "Email", + "type": "string" + }, + "id": { + "format": "uuid", + "title": "Id", + "type": "string" + }, + "is_active": { + "default": true, + "title": "Is Active", + "type": "boolean" + }, + "is_superuser": { + "default": false, + "title": "Is Superuser", + "type": "boolean" + }, + "is_verified": { + "default": false, + "title": "Is Verified", + "type": "boolean" + }, + "name": { + "default": "", "title": "Name", "type": "string" } }, "required": [ - "domain", - "name", - "json_schema", - "defaults" + "id", + "email" ], - "title": "TrainingConfig", + "title": "UserRead", + "type": "object" + }, + "UserUpdate": { + "properties": { + "domains": { + "anyOf": [ + { + "items": { + "$ref": "#/components/schemas/Domain" + }, + "type": "array" + }, + { + "type": "null" + } + ], + "title": "Domains" + }, + "email": { + "anyOf": [ + { + "format": "email", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Email" + }, + "is_active": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Is Active" + }, + "is_superuser": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Is Superuser" + }, + "is_verified": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "title": "Is Verified" + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Name" + }, + "password": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Password" + } + }, + "title": "UserUpdate", "type": "object" }, "ValidationError": { @@ -2667,15 +2604,6 @@ "title": "Reports", "type": "array" }, - "status": { - "enum": [ - "champion", - "retired", - "candidate" - ], - "title": "Status", - "type": "string" - }, "version": { "title": "Version", "type": "integer" @@ -2687,57 +2615,77 @@ "aliases", "metrics", "params", - "reports", - "status" + "reports" ], "title": "Version", "type": "object" }, - "Worker": { + "login": { "properties": { - "cpu_pct": { - "title": "Cpu Pct", - "type": "number" - }, - "executing": { - "title": "Executing", - "type": "integer" - }, - "memory_bytes": { - "title": "Memory Bytes", - "type": "integer" - }, - "memory_limit": { + "client_id": { "anyOf": [ { - "type": "integer" + "type": "string" }, { "type": "null" } ], - "title": "Memory Limit" + "title": "Client Id" }, - "name": { - "title": "Name", + "client_secret": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "format": "password", + "title": "Client Secret" + }, + "grant_type": { + "anyOf": [ + { + "pattern": "^password$", + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Grant Type" + }, + "password": { + "format": "password", + "title": "Password", "type": "string" }, - "threads": { - "title": "Threads", - "type": "integer" + "scope": { + "default": "", + "title": "Scope", + "type": "string" + }, + "username": { + "title": "Username", + "type": "string" } }, "required": [ - "name", - "cpu_pct", - "memory_bytes", - "memory_limit", - "executing", - "threads" + "username", + "password" ], - "title": "Worker", + "title": "Body_auth:cookie.login", "type": "object" } + }, + "securitySchemes": { + "APIKeyCookie": { + "in": "cookie", + "name": "isssteleon_session", + "type": "apiKey" + } } }, "info": { @@ -2746,6 +2694,102 @@ }, "openapi": "3.1.0", "paths": { + "/auth/login": { + "post": { + "operationId": "auth:cookie.login", + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/login" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": {} + } + }, + "description": "Successful Response" + }, + "204": { + "description": "No Content" + }, + "400": { + "content": { + "application/json": { + "examples": { + "LOGIN_BAD_CREDENTIALS": { + "summary": "Bad credentials or the user is inactive.", + "value": { + "detail": "LOGIN_BAD_CREDENTIALS" + } + }, + "LOGIN_USER_NOT_VERIFIED": { + "summary": "The user is not verified.", + "value": { + "detail": "LOGIN_USER_NOT_VERIFIED" + } + } + }, + "schema": { + "$ref": "#/components/schemas/ErrorModel" + } + } + }, + "description": "Bad Request" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Auth:Cookie.Login", + "tags": [ + "auth" + ] + } + }, + "/auth/logout": { + "post": { + "operationId": "auth:cookie.logout", + "responses": { + "200": { + "content": { + "application/json": { + "schema": {} + } + }, + "description": "Successful Response" + }, + "204": { + "description": "No Content" + }, + "401": { + "description": "Missing token or inactive user." + } + }, + "security": [ + { + "APIKeyCookie": [] + } + ], + "summary": "Auth:Cookie.Logout", + "tags": [ + "auth" + ] + } + }, "/domains": { "get": { "operationId": "domains", @@ -2768,113 +2812,6 @@ "summary": "Domains" } }, - "/execution/health": { - "get": { - "operationId": "execution_health", - "parameters": [ - { - "in": "query", - "name": "mode", - "required": false, - "schema": { - "anyOf": [ - { - "enum": [ - "sync", - "local", - "remote" - ], - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Mode" - } - }, - { - "in": "query", - "name": "scheduler", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Scheduler" - } - }, - { - "in": "query", - "name": "reference", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Reference" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Health" - } - } - }, - "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" - } - }, - "summary": "Execution Health", - "tags": [ - "execution" - ] - } - }, - "/execution/options": { - "get": { - "operationId": "execution_options", - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Options" - } - } - }, - "description": "Successful Response" - } - }, - "summary": "Execution Options", - "tags": [ - "execution" - ] - } - }, "/health": { "get": { "operationId": "health", @@ -3330,6 +3267,108 @@ ] } }, + "/ingest/sources/browse": { + "get": { + "description": "The server folders a source may read: the roots, or what one folder under them\nholds. Nothing outside the roots is shown.", + "operationId": "browse", + "parameters": [ + { + "in": "query", + "name": "path", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Path" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Browsed" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Browse", + "tags": [ + "ingest" + ] + } + }, + "/ingest/sources/oauth/{provider}/start": { + "get": { + "description": "The provider's sign-in address. `origin` is the web app's (where the user returns:\n`{origin}/api/\u2026/callback`, the address IT registered).", + "operationId": "oauth_start", + "parameters": [ + { + "in": "path", + "name": "provider", + "required": true, + "schema": { + "title": "Provider", + "type": "string" + } + }, + { + "in": "query", + "name": "origin", + "required": true, + "schema": { + "title": "Origin", + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SignIn" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Oauth Start", + "tags": [ + "ingest" + ] + } + }, "/ingest/sources/preview": { "post": { "description": "The first rows a source node would load.", @@ -3437,9 +3476,87 @@ ] } }, + "/ingest/sources/test": { + "post": { + "description": "\"Probar conexi\u00f3n\": reaches the source with the answers given. A database lists its\ntables (until one is picked; then its first rows); files and records show their first\nrows. Never a server error: what went wrong comes back in plain words.", + "operationId": "test_source", + "parameters": [ + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "default": 20, + "maximum": 100, + "minimum": 1, + "title": "Limit", + "type": "integer" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Answers" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Tested" + } + } + }, + "description": "Successful Response" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "summary": "Test Source", + "tags": [ + "ingest" + ] + } + }, + "/ingest/sources/types": { + "get": { + "description": "Every kind of source the dialog offers, grouped, with the fields each one asks.", + "operationId": "source_types", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Catalog" + } + } + }, + "description": "Successful Response" + } + }, + "summary": "Source Types", + "tags": [ + "ingest" + ] + } + }, "/ingest/uploads": { "post": { - "description": "A CSV, Excel or document file for a `filesystem` source: use `bucket_url`.", + "description": "Files from the operator's computer (one, many, or a whole folder), kept on the\nserver for a `filesystem` source; streamed to disk, so large recordings fit. Send\n`folder` from a previous answer to add to the same set.", "operationId": "upload", "requestBody": { "content": { @@ -3456,11 +3573,7 @@ "content": { "application/json": { "schema": { - "additionalProperties": { - "type": "string" - }, - "title": "Response Upload", - "type": "object" + "$ref": "#/components/schemas/Uploaded" } } }, @@ -3485,6 +3598,7 @@ }, "/models/{domain}": { "get": { + "description": "The domain's registered models, with their names on screen.", "operationId": "models", "parameters": [ { @@ -3502,7 +3616,7 @@ "application/json": { "schema": { "items": { - "type": "string" + "$ref": "#/components/schemas/Model" }, "title": "Response Models", "type": "array" @@ -3542,16 +3656,6 @@ } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Analyze", - "default": {} - } - } - } - }, "responses": { "200": { "content": { @@ -3584,142 +3688,6 @@ ] } }, - "/models/{domain}/export": { - "get": { - "operationId": "export_models", - "parameters": [ - { - "in": "path", - "name": "domain", - "required": true, - "schema": { - "$ref": "#/components/schemas/Domain" - } - }, - { - "in": "query", - "name": "names", - "required": false, - "schema": { - "anyOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "type": "null" - } - ], - "title": "Names" - } - }, - { - "in": "query", - "name": "versions", - "required": false, - "schema": { - "default": "champion", - "enum": [ - "champion", - "latest", - "all" - ], - "title": "Versions", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/zip": {} - }, - "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" - } - }, - "summary": "Export Models", - "tags": [ - "models" - ] - } - }, - "/models/{domain}/import": { - "post": { - "operationId": "import_models", - "parameters": [ - { - "in": "path", - "name": "domain", - "required": true, - "schema": { - "$ref": "#/components/schemas/Domain" - } - }, - { - "in": "query", - "name": "sha256", - "required": true, - "schema": { - "pattern": "^[0-9a-fA-F]{64}$", - "title": "Sha256", - "type": "string" - } - } - ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/Body_import_models" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "additionalProperties": { - "type": "string" - }, - "title": "Response Import Models", - "type": "object" - } - } - }, - "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" - } - }, - "summary": "Import Models", - "tags": [ - "models" - ] - } - }, "/models/{domain}/score": { "post": { "description": "Starts a risk batch from each model's champion; follow it at /runs.", @@ -3822,179 +3790,6 @@ ] } }, - "/models/{domain}/{name}/inputs": { - "get": { - "operationId": "training_inputs", - "parameters": [ - { - "in": "path", - "name": "domain", - "required": true, - "schema": { - "$ref": "#/components/schemas/Domain" - } - }, - { - "in": "path", - "name": "name", - "required": true, - "schema": { - "title": "Name", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "additionalProperties": true, - "title": "Response Training Inputs", - "type": "object" - } - } - }, - "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" - } - }, - "summary": "Training Inputs", - "tags": [ - "models" - ] - } - }, - "/models/{domain}/{name}/inputs/{set}/files": { - "post": { - "operationId": "upload_training_inputs", - "parameters": [ - { - "in": "path", - "name": "domain", - "required": true, - "schema": { - "$ref": "#/components/schemas/Domain" - } - }, - { - "in": "path", - "name": "name", - "required": true, - "schema": { - "title": "Name", - "type": "string" - } - }, - { - "in": "path", - "name": "set", - "required": true, - "schema": { - "title": "Set", - "type": "string" - } - } - ], - "requestBody": { - "content": { - "multipart/form-data": { - "schema": { - "$ref": "#/components/schemas/Body_upload_training_inputs" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "additionalProperties": true, - "title": "Response Upload Training Inputs", - "type": "object" - } - } - }, - "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" - } - }, - "summary": "Upload Training Inputs", - "tags": [ - "models" - ] - } - }, - "/models/{domain}/{name}/training-config": { - "get": { - "operationId": "training_config", - "parameters": [ - { - "in": "path", - "name": "domain", - "required": true, - "schema": { - "$ref": "#/components/schemas/Domain" - } - }, - { - "in": "path", - "name": "name", - "required": true, - "schema": { - "title": "Name", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TrainingConfig" - } - } - }, - "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" - } - }, - "summary": "Training Config", - "tags": [ - "models" - ] - } - }, "/models/{domain}/{name}/versions": { "get": { "operationId": "versions", @@ -4049,205 +3844,9 @@ ] } }, - "/models/{domain}/{name}/versions/{version}/checks": { - "get": { - "operationId": "version_checks", - "parameters": [ - { - "in": "path", - "name": "domain", - "required": true, - "schema": { - "$ref": "#/components/schemas/Domain" - } - }, - { - "in": "path", - "name": "name", - "required": true, - "schema": { - "title": "Name", - "type": "string" - } - }, - { - "in": "path", - "name": "version", - "required": true, - "schema": { - "title": "Version", - "type": "integer" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "additionalProperties": true, - "title": "Response Version Checks", - "type": "object" - } - } - }, - "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" - } - }, - "summary": "Version Checks", - "tags": [ - "models" - ] - } - }, - "/models/{domain}/{name}/versions/{version}/curve": { - "get": { - "operationId": "curve", - "parameters": [ - { - "in": "path", - "name": "domain", - "required": true, - "schema": { - "$ref": "#/components/schemas/Domain" - } - }, - { - "in": "path", - "name": "name", - "required": true, - "schema": { - "title": "Name", - "type": "string" - } - }, - { - "in": "path", - "name": "version", - "required": true, - "schema": { - "title": "Version", - "type": "integer" - } - }, - { - "in": "query", - "name": "feature", - "required": false, - "schema": { - "default": "value", - "title": "Feature", - "type": "string" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "items": { - "additionalProperties": true, - "type": "object" - }, - "title": "Response Curve", - "type": "array" - } - } - }, - "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" - } - }, - "summary": "Curve", - "tags": [ - "models" - ] - } - }, - "/models/{domain}/{name}/versions/{version}/lineage": { - "get": { - "operationId": "lineage", - "parameters": [ - { - "in": "path", - "name": "domain", - "required": true, - "schema": { - "$ref": "#/components/schemas/Domain" - } - }, - { - "in": "path", - "name": "name", - "required": true, - "schema": { - "title": "Name", - "type": "string" - } - }, - { - "in": "path", - "name": "version", - "required": true, - "schema": { - "title": "Version", - "type": "integer" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "additionalProperties": true, - "title": "Response Lineage", - "type": "object" - } - } - }, - "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" - } - }, - "summary": "Lineage", - "tags": [ - "models" - ] - } - }, "/models/{domain}/{name}/versions/{version}/promote": { "post": { - "description": "The version risk batches come from from now on; refused (409) without its three\nreports: technical validation, interpretability and clinical validation.", + "description": "The version risk batches come from from now on; refused (409) without the reports\nthe site requires (PROMOTION_REPORTS; default: technical validation, interpretability\nand clinical validation).", "operationId": "promote", "parameters": [ { @@ -4309,7 +3908,7 @@ }, "/models/{domain}/{name}/versions/{version}/reports/clinical_validation": { "post": { - "description": "The clinical team's validation of a version: the third report promotion needs.", + "description": "The clinical team's validation of a version: the third report, which promotion needs\nunless the site left it out of PROMOTION_REPORTS.", "operationId": "add_clinical_validation", "parameters": [ { @@ -4445,69 +4044,6 @@ ] } }, - "/models/{domain}/{name}/versions/{version}/retire": { - "post": { - "operationId": "retire", - "parameters": [ - { - "in": "path", - "name": "domain", - "required": true, - "schema": { - "$ref": "#/components/schemas/Domain" - } - }, - { - "in": "path", - "name": "name", - "required": true, - "schema": { - "title": "Name", - "type": "string" - } - }, - { - "in": "path", - "name": "version", - "required": true, - "schema": { - "title": "Version", - "type": "integer" - } - } - ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "additionalProperties": { - "type": "string" - }, - "title": "Response Retire", - "type": "object" - } - } - }, - "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" - } - }, - "summary": "Retire", - "tags": [ - "models" - ] - } - }, "/review/conflicts": { "get": { "description": "Rows of one person and date that disagree; reject the wrong ones.", @@ -4525,6 +4061,7 @@ "mammography", "breast_biopsy", "breast_treatment", + "breast_recurrence", "clinical_note", "death", "mchat", @@ -4632,6 +4169,7 @@ "mammography", "breast_biopsy", "breast_treatment", + "breast_recurrence", "clinical_note", "death", "mchat", @@ -4678,7 +4216,7 @@ }, "/review/persons": { "get": { - "description": "Persons to settle (with their possible owners) and torn persons (with their\nrecords) left by a pipeline's link node.", + "description": "Persons to settle (with their possible owners), torn persons and persons nothing\nnames (with their records) left by a pipeline's link node.", "operationId": "persons", "parameters": [ { @@ -4830,68 +4368,20 @@ ] } }, - "/runs": { + "/review/unrecognised": { "get": { - "operationId": "run_history", + "description": "Documents a pipeline's routes don't recognise (what its `otherwise` routes took):\na new layout, a study the platform doesn't know, a scan nothing could read.", + "operationId": "unrecognised", "parameters": [ { "in": "query", - "name": "job", - "required": false, + "name": "pipeline", + "required": true, "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Job" - } - }, - { - "in": "query", - "name": "domain", - "required": false, - "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/Domain" - }, - { - "type": "null" - } - ], - "title": "Domain" - } - }, - { - "in": "query", - "name": "limit", - "required": false, - "schema": { - "default": 50, - "maximum": 200, - "minimum": 1, - "title": "Limit", - "type": "integer" - } - }, - { - "in": "query", - "name": "before", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Before" + "maxLength": 40, + "pattern": "^[a-z][a-z0-9_]*$", + "title": "Pipeline", + "type": "string" } } ], @@ -4901,9 +4391,10 @@ "application/json": { "schema": { "items": { - "$ref": "#/components/schemas/RunSummary" + "additionalProperties": true, + "type": "object" }, - "title": "Response Run History", + "title": "Response Unrecognised", "type": "array" } } @@ -4921,9 +4412,9 @@ "description": "Validation Error" } }, - "summary": "Run History", + "summary": "Unrecognised", "tags": [ - "runs" + "review" ] } }, @@ -4939,16 +4430,6 @@ "title": "Run Id", "type": "string" } - }, - { - "in": "query", - "name": "outputs", - "required": false, - "schema": { - "default": false, - "title": "Outputs", - "type": "boolean" - } } ], "responses": { @@ -4956,7 +4437,11 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Run" + "additionalProperties": { + "type": "string" + }, + "title": "Response Run Status", + "type": "object" } } }, @@ -4979,9 +4464,10 @@ ] } }, - "/runs/{run_id}/cancel": { + "/runs/{run_id}/terminate": { "post": { - "operationId": "cancel_run", + "description": "Stop a run (one started by mistake): Dagster cancels it.", + "operationId": "terminate_run", "parameters": [ { "in": "path", @@ -4998,7 +4484,11 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Cancel" + "additionalProperties": { + "type": "string" + }, + "title": "Response Terminate Run", + "type": "object" } } }, @@ -5015,7 +4505,7 @@ "description": "Validation Error" } }, - "summary": "Cancel Run", + "summary": "Terminate Run", "tags": [ "runs" ] @@ -5046,77 +4536,6 @@ ] } }, - "/tea/eegs/analyze": { - "post": { - "description": "Starts `tea_eeg`: analyse the EEGs in scope, score the curves, rebuild gold.", - "operationId": "analyze_eegs", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AnalyzeRequest" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "additionalProperties": { - "type": "string" - }, - "title": "Response Analyze Eegs", - "type": "object" - } - } - }, - "description": "Successful Response" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" - } - }, - "summary": "Analyze Eegs", - "tags": [ - "eeg" - ] - } - }, - "/tea/eegs/summary": { - "get": { - "operationId": "eeg_studies_summary", - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "additionalProperties": { - "type": "integer" - }, - "title": "Response Eeg Studies Summary", - "type": "object" - } - } - }, - "description": "Successful Response" - } - }, - "summary": "Eeg Studies Summary", - "tags": [ - "eeg" - ] - } - }, "/tea/eegs/{eeg_id}": { "get": { "operationId": "study", @@ -5159,14 +4578,41 @@ ] } }, - "/tea/preview": { - "post": { - "operationId": "start_preview", + "/users/me": { + "get": { + "operationId": "users:current_user", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserRead" + } + } + }, + "description": "Successful Response" + }, + "401": { + "description": "Missing token or inactive user." + } + }, + "security": [ + { + "APIKeyCookie": [] + } + ], + "summary": "Users:Current User", + "tags": [ + "users" + ] + }, + "patch": { + "operationId": "users:patch_current_user", "requestBody": { "content": { - "multipart/form-data": { + "application/json": { "schema": { - "$ref": "#/components/schemas/Body_start_preview" + "$ref": "#/components/schemas/UserUpdate" } } }, @@ -5177,16 +4623,42 @@ "content": { "application/json": { "schema": { - "additionalProperties": { - "type": "string" - }, - "title": "Response Start Preview", - "type": "object" + "$ref": "#/components/schemas/UserRead" } } }, "description": "Successful Response" }, + "400": { + "content": { + "application/json": { + "examples": { + "UPDATE_USER_EMAIL_ALREADY_EXISTS": { + "summary": "A user with this email already exists.", + "value": { + "detail": "UPDATE_USER_EMAIL_ALREADY_EXISTS" + } + }, + "UPDATE_USER_INVALID_PASSWORD": { + "summary": "Password validation failed.", + "value": { + "detail": { + "code": "UPDATE_USER_INVALID_PASSWORD", + "reason": "Password should beat least 3 characters" + } + } + } + }, + "schema": { + "$ref": "#/components/schemas/ErrorModel" + } + } + }, + "description": "Bad Request" + }, + "401": { + "description": "Missing token or inactive user." + }, "422": { "content": { "application/json": { @@ -5198,22 +4670,147 @@ "description": "Validation Error" } }, - "summary": "Start Preview", + "security": [ + { + "APIKeyCookie": [] + } + ], + "summary": "Users:Patch Current User", "tags": [ - "preview" + "users" ] } }, - "/tea/preview/{run_id}": { - "get": { - "operationId": "preview_status", + "/users/register": { + "post": { + "operationId": "register:register", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserCreate" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserRead" + } + } + }, + "description": "Successful Response" + }, + "400": { + "content": { + "application/json": { + "examples": { + "REGISTER_INVALID_PASSWORD": { + "summary": "Password validation failed.", + "value": { + "detail": { + "code": "REGISTER_INVALID_PASSWORD", + "reason": "Password should beat least 3 characters" + } + } + }, + "REGISTER_USER_ALREADY_EXISTS": { + "summary": "A user with this email already exists.", + "value": { + "detail": "REGISTER_USER_ALREADY_EXISTS" + } + } + }, + "schema": { + "$ref": "#/components/schemas/ErrorModel" + } + } + }, + "description": "Bad Request" + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "security": [ + { + "APIKeyCookie": [] + } + ], + "summary": "Register:Register", + "tags": [ + "users" + ] + } + }, + "/users/{id}": { + "delete": { + "operationId": "users:delete_user", "parameters": [ { "in": "path", - "name": "run_id", + "name": "id", "required": true, "schema": { - "title": "Run Id", + "title": "Id", + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Successful Response" + }, + "401": { + "description": "Missing token or inactive user." + }, + "403": { + "description": "Not a superuser." + }, + "404": { + "description": "The user does not exist." + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "security": [ + { + "APIKeyCookie": [] + } + ], + "summary": "Users:Delete User", + "tags": [ + "users" + ] + }, + "get": { + "operationId": "users:user", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "title": "Id", "type": "string" } } @@ -5223,12 +4820,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PreviewStatus" + "$ref": "#/components/schemas/UserRead" } } }, "description": "Successful Response" }, + "401": { + "description": "Missing token or inactive user." + }, + "403": { + "description": "Not a superuser." + }, + "404": { + "description": "The user does not exist." + }, "422": { "content": { "application/json": { @@ -5240,9 +4846,105 @@ "description": "Validation Error" } }, - "summary": "Preview Status", + "security": [ + { + "APIKeyCookie": [] + } + ], + "summary": "Users:User", "tags": [ - "preview" + "users" + ] + }, + "patch": { + "operationId": "users:patch_user", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "title": "Id", + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserUpdate" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserRead" + } + } + }, + "description": "Successful Response" + }, + "400": { + "content": { + "application/json": { + "examples": { + "UPDATE_USER_EMAIL_ALREADY_EXISTS": { + "summary": "A user with this email already exists.", + "value": { + "detail": "UPDATE_USER_EMAIL_ALREADY_EXISTS" + } + }, + "UPDATE_USER_INVALID_PASSWORD": { + "summary": "Password validation failed.", + "value": { + "detail": { + "code": "UPDATE_USER_INVALID_PASSWORD", + "reason": "Password should beat least 3 characters" + } + } + } + }, + "schema": { + "$ref": "#/components/schemas/ErrorModel" + } + } + }, + "description": "Bad Request" + }, + "401": { + "description": "Missing token or inactive user." + }, + "403": { + "description": "Not a superuser." + }, + "404": { + "description": "The user does not exist." + }, + "422": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HTTPValidationError" + } + } + }, + "description": "Validation Error" + } + }, + "security": [ + { + "APIKeyCookie": [] + } + ], + "summary": "Users:Patch User", + "tags": [ + "users" ] } }, @@ -5319,7 +5021,7 @@ }, "/{domain}/fhir/Condition": { "get": { - "description": "What clinical notes diagnosed.", + "description": "What clinical notes diagnosed (CaMa: and each recurrence).", "operationId": "search_condition", "parameters": [ { @@ -5909,7 +5611,7 @@ }, "/{domain}/fhir/Patient": { "get": { - "description": "Patients, or the domain's follow-up list selected by window or start.\n\nFor TEA, a cutoff or a TEA filter also selects the follow-up list. Patients without\nfollow-up episodes appear only in the plain search.", + "description": "Patients; with `follow-up-window`, the domain's follow-up list at the cut-off,\nfiltered by status and in reading order, with what the list shows of each patient\nincluded.", "operationId": "search_patient", "parameters": [ { @@ -5954,25 +5656,6 @@ "title": "Follow-Up-Window" } }, - { - "description": "explicit window start that overrides follow-up-window", - "in": "query", - "name": "follow-up-start", - "required": false, - "schema": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "type": "null" - } - ], - "description": "explicit window start that overrides follow-up-window", - "title": "Follow-Up-Start" - } - }, { "description": "default: the last day with data", "in": "query", @@ -6008,6 +5691,42 @@ "title": "Follow-Up-Status" } }, + { + "description": "each word starts a word of her name (case and accents ignored)", + "in": "query", + "name": "name", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "each word starts a word of her name (case and accents ignored)", + "title": "Name" + } + }, + { + "description": "[system|]value: a CURP or record number (case ignored)", + "in": "query", + "name": "identifier", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "[system|]value: a CURP or record number (case ignored)", + "title": "Identifier" + } + }, { "description": "-recent or -risk-", "in": "query", @@ -6123,120 +5842,6 @@ ] } }, - "/{domain}/fhir/Patient/$eeg-summary": { - "get": { - "description": "EEG counts for the follow-up list. Without a window or start, use the whole history.", - "operationId": "eeg_summary", - "parameters": [ - { - "in": "path", - "name": "domain", - "required": true, - "schema": { - "$ref": "#/components/schemas/Domain" - } - }, - { - "description": "months: the domain's follow-up list over that window up to the cut-off", - "in": "query", - "name": "follow-up-window", - "required": false, - "schema": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "description": "months: the domain's follow-up list over that window up to the cut-off", - "title": "Follow-Up-Window" - } - }, - { - "description": "explicit window start that overrides follow-up-window", - "in": "query", - "name": "follow-up-start", - "required": false, - "schema": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "type": "null" - } - ], - "description": "explicit window start that overrides follow-up-window", - "title": "Follow-Up-Start" - } - }, - { - "description": "default: the last day with data", - "in": "query", - "name": "follow-up-cutoff", - "required": false, - "schema": { - "anyOf": [ - { - "format": "date", - "type": "string" - }, - { - "type": "null" - } - ], - "description": "default: the last day with data", - "title": "Follow-Up-Cutoff" - } - }, - { - "in": "query", - "name": "follow-up-status", - "required": false, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Follow-Up-Status" - } - } - ], - "responses": { - "200": { - "content": { - "application/fhir+json": { - "schema": { - "type": "object" - } - } - }, - "description": "FHIR" - }, - "422": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/HTTPValidationError" - } - } - }, - "description": "Validation Error" - } - }, - "summary": "Eeg Summary", - "tags": [ - "fhir" - ] - } - }, "/{domain}/fhir/Patient/{id}": { "get": { "operationId": "read_patient", @@ -6289,7 +5894,7 @@ }, "/{domain}/fhir/Procedure": { "get": { - "description": "The procedures the domain's timeline infers (CaCu: colposcopies and treatments).", + "description": "The procedures the domain's timeline infers (CaCu: colposcopies and treatments;\nCaMa: each treatment, by its kind).", "operationId": "search_procedure", "parameters": [ { diff --git a/src/app/api/fn/auth/auth-cookie-login.ts b/src/app/api/fn/auth/auth-cookie-login.ts new file mode 100644 index 0000000..01a450b --- /dev/null +++ b/src/app/api/fn/auth/auth-cookie-login.ts @@ -0,0 +1,32 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { Login } from '../../models/login'; + +export interface AuthCookieLogin$Params { + body: Login +} + +export function authCookieLogin(http: HttpClient, rootUrl: string, params: AuthCookieLogin$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, authCookieLogin.PATH, 'post'); + if (params) { + rb.body(params.body, 'application/x-www-form-urlencoded'); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse; + }) + ); +} + +authCookieLogin.PATH = '/auth/login'; diff --git a/src/app/api/fn/auth/auth-cookie-logout.ts b/src/app/api/fn/auth/auth-cookie-logout.ts new file mode 100644 index 0000000..ff5ac75 --- /dev/null +++ b/src/app/api/fn/auth/auth-cookie-logout.ts @@ -0,0 +1,29 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + + +export interface AuthCookieLogout$Params { +} + +export function authCookieLogout(http: HttpClient, rootUrl: string, params?: AuthCookieLogout$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, authCookieLogout.PATH, 'post'); + if (params) { + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse; + }) + ); +} + +authCookieLogout.PATH = '/auth/logout'; diff --git a/src/app/api/fn/fhir/search-patient.ts b/src/app/api/fn/fhir/search-patient.ts index a2bd489..ffb423f 100644 --- a/src/app/api/fn/fhir/search-patient.ts +++ b/src/app/api/fn/fhir/search-patient.ts @@ -29,6 +29,16 @@ export interface SearchPatient$Params { 'follow-up-cutoff'?: (string | null); 'follow-up-status'?: (string | null); +/** + * each word starts a word of her name (case and accents ignored) + */ + name?: (string | null); + +/** + * [system|]value: a CURP or record number (case ignored) + */ + identifier?: (string | null); + /** * -recent or -risk- */ @@ -62,6 +72,8 @@ export function searchPatient(http: HttpClient, rootUrl: string, params: SearchP rb.query('follow-up-start', params['follow-up-start'], {}); rb.query('follow-up-cutoff', params['follow-up-cutoff'], {}); rb.query('follow-up-status', params['follow-up-status'], {}); + rb.query('name', params.name, {}); + rb.query('identifier', params.identifier, {}); rb.query('_sort', params['_sort'], {}); rb.query('risk-horizon', params['risk-horizon'], {}); rb.query('_revinclude', params['_revinclude'], {}); diff --git a/src/app/api/fn/ingest/browse.ts b/src/app/api/fn/ingest/browse.ts new file mode 100644 index 0000000..ba99f04 --- /dev/null +++ b/src/app/api/fn/ingest/browse.ts @@ -0,0 +1,32 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { Browsed } from '../../models/browsed'; + +export interface Browse$Params { + path?: (string | null); +} + +export function browse(http: HttpClient, rootUrl: string, params?: Browse$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, browse.PATH, 'get'); + if (params) { + rb.query('path', params.path, {}); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse; + }) + ); +} + +browse.PATH = '/ingest/sources/browse'; diff --git a/src/app/api/fn/ingest/oauth-start.ts b/src/app/api/fn/ingest/oauth-start.ts new file mode 100644 index 0000000..0e61283 --- /dev/null +++ b/src/app/api/fn/ingest/oauth-start.ts @@ -0,0 +1,34 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { SignIn } from '../../models/sign-in'; + +export interface OauthStart$Params { + provider: string; + origin: string; +} + +export function oauthStart(http: HttpClient, rootUrl: string, params: OauthStart$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, oauthStart.PATH, 'get'); + if (params) { + rb.path('provider', params.provider, {}); + rb.query('origin', params.origin, {}); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse; + }) + ); +} + +oauthStart.PATH = '/ingest/sources/oauth/{provider}/start'; diff --git a/src/app/api/fn/ingest/source-types.ts b/src/app/api/fn/ingest/source-types.ts new file mode 100644 index 0000000..62b7206 --- /dev/null +++ b/src/app/api/fn/ingest/source-types.ts @@ -0,0 +1,30 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { Catalog } from '../../models/catalog'; + +export interface SourceTypes$Params { +} + +export function sourceTypes(http: HttpClient, rootUrl: string, params?: SourceTypes$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, sourceTypes.PATH, 'get'); + if (params) { + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse; + }) + ); +} + +sourceTypes.PATH = '/ingest/sources/types'; diff --git a/src/app/api/fn/ingest/test-source.ts b/src/app/api/fn/ingest/test-source.ts new file mode 100644 index 0000000..3f2b67c --- /dev/null +++ b/src/app/api/fn/ingest/test-source.ts @@ -0,0 +1,35 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { Answers } from '../../models/answers'; +import { Tested } from '../../models/tested'; + +export interface TestSource$Params { + limit?: number; + body: Answers +} + +export function testSource(http: HttpClient, rootUrl: string, params: TestSource$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, testSource.PATH, 'post'); + if (params) { + rb.query('limit', params.limit, {}); + rb.body(params.body, 'application/json'); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse; + }) + ); +} + +testSource.PATH = '/ingest/sources/test'; diff --git a/src/app/api/fn/ingest/upload.ts b/src/app/api/fn/ingest/upload.ts index f5055fe..c35dc19 100644 --- a/src/app/api/fn/ingest/upload.ts +++ b/src/app/api/fn/ingest/upload.ts @@ -8,14 +8,13 @@ import { StrictHttpResponse } from '../../strict-http-response'; import { RequestBuilder } from '../../request-builder'; import { BodyUpload } from '../../models/body-upload'; +import { Uploaded } from '../../models/uploaded'; export interface Upload$Params { body: BodyUpload } -export function upload(http: HttpClient, rootUrl: string, params: Upload$Params, context?: HttpContext): Observable> { +export function upload(http: HttpClient, rootUrl: string, params: Upload$Params, context?: HttpContext): Observable> { const rb = new RequestBuilder(rootUrl, upload.PATH, 'post'); if (params) { rb.body(params.body, 'multipart/form-data'); @@ -26,9 +25,7 @@ export function upload(http: HttpClient, rootUrl: string, params: Upload$Params, ).pipe( filter((r: any): r is HttpResponse => r instanceof HttpResponse), map((r: HttpResponse) => { - return r as StrictHttpResponse<{ - [key: string]: string; - }>; + return r as StrictHttpResponse; }) ); } diff --git a/src/app/api/fn/models/models.ts b/src/app/api/fn/models/models.ts index 8489857..f64e379 100644 --- a/src/app/api/fn/models/models.ts +++ b/src/app/api/fn/models/models.ts @@ -8,12 +8,13 @@ import { StrictHttpResponse } from '../../strict-http-response'; import { RequestBuilder } from '../../request-builder'; import { Domain } from '../../models/domain'; +import { Model } from '../../models/model'; export interface Models$Params { domain: Domain; } -export function models(http: HttpClient, rootUrl: string, params: Models$Params, context?: HttpContext): Observable>> { +export function models(http: HttpClient, rootUrl: string, params: Models$Params, context?: HttpContext): Observable>> { const rb = new RequestBuilder(rootUrl, models.PATH, 'get'); if (params) { rb.path('domain', params.domain, {}); @@ -24,7 +25,7 @@ export function models(http: HttpClient, rootUrl: string, params: Models$Params, ).pipe( filter((r: any): r is HttpResponse => r instanceof HttpResponse), map((r: HttpResponse) => { - return r as StrictHttpResponse>; + return r as StrictHttpResponse>; }) ); } diff --git a/src/app/api/fn/review/conflicts.ts b/src/app/api/fn/review/conflicts.ts index 4632473..db06c9b 100644 --- a/src/app/api/fn/review/conflicts.ts +++ b/src/app/api/fn/review/conflicts.ts @@ -9,7 +9,7 @@ import { RequestBuilder } from '../../request-builder'; export interface Conflicts$Params { - entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg'; + entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg'; } export function conflicts(http: HttpClient, rootUrl: string, params: Conflicts$Params, context?: HttpContext): Observable>> { + const rb = new RequestBuilder(rootUrl, unrecognised.PATH, 'get'); + if (params) { + rb.query('pipeline', params.pipeline, {}); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse>; + }) + ); +} + +unrecognised.PATH = '/review/unrecognised'; diff --git a/src/app/api/fn/runs/terminate-run.ts b/src/app/api/fn/runs/terminate-run.ts new file mode 100644 index 0000000..c4c97b1 --- /dev/null +++ b/src/app/api/fn/runs/terminate-run.ts @@ -0,0 +1,35 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + + +export interface TerminateRun$Params { + run_id: string; +} + +export function terminateRun(http: HttpClient, rootUrl: string, params: TerminateRun$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, terminateRun.PATH, 'post'); + if (params) { + rb.path('run_id', params.run_id, {}); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse<{ + [key: string]: string; + }>; + }) + ); +} + +terminateRun.PATH = '/runs/{run_id}/terminate'; diff --git a/src/app/api/fn/users/register-register.ts b/src/app/api/fn/users/register-register.ts new file mode 100644 index 0000000..7c1d739 --- /dev/null +++ b/src/app/api/fn/users/register-register.ts @@ -0,0 +1,33 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { UserCreate } from '../../models/user-create'; +import { UserRead } from '../../models/user-read'; + +export interface RegisterRegister$Params { + body: UserCreate +} + +export function registerRegister(http: HttpClient, rootUrl: string, params: RegisterRegister$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, registerRegister.PATH, 'post'); + if (params) { + rb.body(params.body, 'application/json'); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse; + }) + ); +} + +registerRegister.PATH = '/users/register'; diff --git a/src/app/api/fn/users/users-current-user.ts b/src/app/api/fn/users/users-current-user.ts new file mode 100644 index 0000000..c208f35 --- /dev/null +++ b/src/app/api/fn/users/users-current-user.ts @@ -0,0 +1,30 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { UserRead } from '../../models/user-read'; + +export interface UsersCurrentUser$Params { +} + +export function usersCurrentUser(http: HttpClient, rootUrl: string, params?: UsersCurrentUser$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, usersCurrentUser.PATH, 'get'); + if (params) { + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse; + }) + ); +} + +usersCurrentUser.PATH = '/users/me'; diff --git a/src/app/api/fn/users/users-delete-user.ts b/src/app/api/fn/users/users-delete-user.ts new file mode 100644 index 0000000..256549f --- /dev/null +++ b/src/app/api/fn/users/users-delete-user.ts @@ -0,0 +1,31 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + + +export interface UsersDeleteUser$Params { + id: string; +} + +export function usersDeleteUser(http: HttpClient, rootUrl: string, params: UsersDeleteUser$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, usersDeleteUser.PATH, 'delete'); + if (params) { + rb.path('id', params.id, {}); + } + + return http.request( + rb.build({ responseType: 'text', accept: '*/*', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return (r as HttpResponse).clone({ body: undefined }) as StrictHttpResponse; + }) + ); +} + +usersDeleteUser.PATH = '/users/{id}'; diff --git a/src/app/api/fn/users/users-patch-current-user.ts b/src/app/api/fn/users/users-patch-current-user.ts new file mode 100644 index 0000000..5e611bf --- /dev/null +++ b/src/app/api/fn/users/users-patch-current-user.ts @@ -0,0 +1,33 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { UserRead } from '../../models/user-read'; +import { UserUpdate } from '../../models/user-update'; + +export interface UsersPatchCurrentUser$Params { + body: UserUpdate +} + +export function usersPatchCurrentUser(http: HttpClient, rootUrl: string, params: UsersPatchCurrentUser$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, usersPatchCurrentUser.PATH, 'patch'); + if (params) { + rb.body(params.body, 'application/json'); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse; + }) + ); +} + +usersPatchCurrentUser.PATH = '/users/me'; diff --git a/src/app/api/fn/users/users-patch-user.ts b/src/app/api/fn/users/users-patch-user.ts new file mode 100644 index 0000000..c1534d7 --- /dev/null +++ b/src/app/api/fn/users/users-patch-user.ts @@ -0,0 +1,35 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { UserRead } from '../../models/user-read'; +import { UserUpdate } from '../../models/user-update'; + +export interface UsersPatchUser$Params { + id: string; + body: UserUpdate +} + +export function usersPatchUser(http: HttpClient, rootUrl: string, params: UsersPatchUser$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, usersPatchUser.PATH, 'patch'); + if (params) { + rb.path('id', params.id, {}); + rb.body(params.body, 'application/json'); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse; + }) + ); +} + +usersPatchUser.PATH = '/users/{id}'; diff --git a/src/app/api/fn/users/users-user.ts b/src/app/api/fn/users/users-user.ts new file mode 100644 index 0000000..f58fe4e --- /dev/null +++ b/src/app/api/fn/users/users-user.ts @@ -0,0 +1,32 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { filter, map } from 'rxjs/operators'; +import { StrictHttpResponse } from '../../strict-http-response'; +import { RequestBuilder } from '../../request-builder'; + +import { UserRead } from '../../models/user-read'; + +export interface UsersUser$Params { + id: string; +} + +export function usersUser(http: HttpClient, rootUrl: string, params: UsersUser$Params, context?: HttpContext): Observable> { + const rb = new RequestBuilder(rootUrl, usersUser.PATH, 'get'); + if (params) { + rb.path('id', params.id, {}); + } + + return http.request( + rb.build({ responseType: 'json', accept: 'application/json', context }) + ).pipe( + filter((r: any): r is HttpResponse => r instanceof HttpResponse), + map((r: HttpResponse) => { + return r as StrictHttpResponse; + }) + ); +} + +usersUser.PATH = '/users/{id}'; diff --git a/src/app/api/functions.ts b/src/app/api/functions.ts index f108374..422bdb6 100644 --- a/src/app/api/functions.ts +++ b/src/app/api/functions.ts @@ -1,14 +1,14 @@ /* eslint-disable */ /* Code generated by ng-openapi-gen DO NOT EDIT. */ +export type { AuthCookieLogin$Params as AuthCookieLogin$Params } from './fn/auth/auth-cookie-login'; +export { authCookieLogin as authCookieLogin } from './fn/auth/auth-cookie-login'; +export type { AuthCookieLogout$Params as AuthCookieLogout$Params } from './fn/auth/auth-cookie-logout'; +export { authCookieLogout as authCookieLogout } from './fn/auth/auth-cookie-logout'; export type { Domains$Params as Domains$Params } from './fn/operations/domains'; export { domains as domains } from './fn/operations/domains'; export type { Health$Params as Health$Params } from './fn/operations/health'; export { health as health } from './fn/operations/health'; -export type { ExecutionHealth$Params as ExecutionHealth$Params } from './fn/execution/execution-health'; -export { executionHealth as executionHealth } from './fn/execution/execution-health'; -export type { ExecutionOptions$Params as ExecutionOptions$Params } from './fn/execution/execution-options'; -export { executionOptions as executionOptions } from './fn/execution/execution-options'; export type { ConceptMaps$Params as ConceptMaps$Params } from './fn/ingest/concept-maps'; export { conceptMaps as conceptMaps } from './fn/ingest/concept-maps'; export type { GetConceptMap$Params as GetConceptMap$Params } from './fn/ingest/get-concept-map'; @@ -27,38 +27,30 @@ export type { StartRun$Params as StartRun$Params } from './fn/ingest/start-run'; export { startRun as startRun } from './fn/ingest/start-run'; export type { Schema$Params as Schema$Params } from './fn/ingest/schema'; export { schema as schema } from './fn/ingest/schema'; +export type { Browse$Params as Browse$Params } from './fn/ingest/browse'; +export { browse as browse } from './fn/ingest/browse'; +export type { OauthStart$Params as OauthStart$Params } from './fn/ingest/oauth-start'; +export { oauthStart as oauthStart } from './fn/ingest/oauth-start'; export type { SourcePreview$Params as SourcePreview$Params } from './fn/ingest/source-preview'; export { sourcePreview as sourcePreview } from './fn/ingest/source-preview'; export type { SourceResources$Params as SourceResources$Params } from './fn/ingest/source-resources'; export { sourceResources as sourceResources } from './fn/ingest/source-resources'; +export type { TestSource$Params as TestSource$Params } from './fn/ingest/test-source'; +export { testSource as testSource } from './fn/ingest/test-source'; +export type { SourceTypes$Params as SourceTypes$Params } from './fn/ingest/source-types'; +export { sourceTypes as sourceTypes } from './fn/ingest/source-types'; export type { Upload$Params as Upload$Params } from './fn/ingest/upload'; export { upload as upload } from './fn/ingest/upload'; export type { Models$Params as Models$Params } from './fn/models/models'; export { models as models } from './fn/models/models'; export type { Analyze$Params as Analyze$Params } from './fn/models/analyze'; export { analyze as analyze } from './fn/models/analyze'; -export type { ExportModels$Params as ExportModels$Params } from './fn/models/export-models'; -export { exportModels as exportModels } from './fn/models/export-models'; -export type { ImportModels$Params as ImportModels$Params } from './fn/models/import-models'; -export { importModels as importModels } from './fn/models/import-models'; export type { Score$Params as Score$Params } from './fn/models/score'; export { score as score } from './fn/models/score'; export type { Train$Params as Train$Params } from './fn/models/train'; export { train as train } from './fn/models/train'; -export type { TrainingInputs$Params as TrainingInputs$Params } from './fn/models/training-inputs'; -export { trainingInputs as trainingInputs } from './fn/models/training-inputs'; -export type { UploadTrainingInputs$Params as UploadTrainingInputs$Params } from './fn/models/upload-training-inputs'; -export { uploadTrainingInputs as uploadTrainingInputs } from './fn/models/upload-training-inputs'; -export type { TrainingConfig$Params as TrainingConfig$Params } from './fn/models/training-config'; -export { trainingConfig as trainingConfig } from './fn/models/training-config'; export type { Versions$Params as Versions$Params } from './fn/models/versions'; export { versions as versions } from './fn/models/versions'; -export type { VersionChecks$Params as VersionChecks$Params } from './fn/models/version-checks'; -export { versionChecks as versionChecks } from './fn/models/version-checks'; -export type { Curve$Params as Curve$Params } from './fn/models/curve'; -export { curve as curve } from './fn/models/curve'; -export type { Lineage$Params as Lineage$Params } from './fn/models/lineage'; -export { lineage as lineage } from './fn/models/lineage'; export type { Promote$Params as Promote$Params } from './fn/models/promote'; export { promote as promote } from './fn/models/promote'; export type { AddClinicalValidation$Params as AddClinicalValidation$Params } from './fn/models/add-clinical-validation'; @@ -67,8 +59,6 @@ export type { ReadReport$Json$Params as ReadReport$Json$Params } from './fn/mode export { readReport$Json as readReport$Json } from './fn/models/read-report-json'; export type { ReadReport$Any$Params as ReadReport$Any$Params } from './fn/models/read-report-any'; export { readReport$Any as readReport$Any } from './fn/models/read-report-any'; -export type { Retire$Params as Retire$Params } from './fn/models/retire'; -export { retire as retire } from './fn/models/retire'; export type { Conflicts$Params as Conflicts$Params } from './fn/review/conflicts'; export { conflicts as conflicts } from './fn/review/conflicts'; export type { Correct$Params as Correct$Params } from './fn/review/correct'; @@ -81,24 +71,28 @@ export type { DecidePersons$Params as DecidePersons$Params } from './fn/review/d export { decidePersons as decidePersons } from './fn/review/decide-persons'; export type { Reject$Params as Reject$Params } from './fn/review/reject'; export { reject as reject } from './fn/review/reject'; -export type { RunHistory$Params as RunHistory$Params } from './fn/runs/run-history'; -export { runHistory as runHistory } from './fn/runs/run-history'; +export type { Unrecognised$Params as Unrecognised$Params } from './fn/review/unrecognised'; +export { unrecognised as unrecognised } from './fn/review/unrecognised'; export type { RunStatus$Params as RunStatus$Params } from './fn/runs/run-status'; export { runStatus as runStatus } from './fn/runs/run-status'; -export type { CancelRun$Params as CancelRun$Params } from './fn/runs/cancel-run'; -export { cancelRun as cancelRun } from './fn/runs/cancel-run'; +export type { TerminateRun$Params as TerminateRun$Params } from './fn/runs/terminate-run'; +export { terminateRun as terminateRun } from './fn/runs/terminate-run'; export type { Studies$Params as Studies$Params } from './fn/eeg/studies'; export { studies as studies } from './fn/eeg/studies'; -export type { AnalyzeEegs$Params as AnalyzeEegs$Params } from './fn/eeg/analyze-eegs'; -export { analyzeEegs as analyzeEegs } from './fn/eeg/analyze-eegs'; -export type { EegStudiesSummary$Params as EegStudiesSummary$Params } from './fn/eeg/eeg-studies-summary'; -export { eegStudiesSummary as eegStudiesSummary } from './fn/eeg/eeg-studies-summary'; export type { Study$Params as Study$Params } from './fn/eeg/study'; export { study as study } from './fn/eeg/study'; -export type { StartPreview$Params as StartPreview$Params } from './fn/preview/start-preview'; -export { startPreview as startPreview } from './fn/preview/start-preview'; -export type { PreviewStatus$Params as PreviewStatus$Params } from './fn/preview/preview-status'; -export { previewStatus as previewStatus } from './fn/preview/preview-status'; +export type { UsersCurrentUser$Params as UsersCurrentUser$Params } from './fn/users/users-current-user'; +export { usersCurrentUser as usersCurrentUser } from './fn/users/users-current-user'; +export type { UsersPatchCurrentUser$Params as UsersPatchCurrentUser$Params } from './fn/users/users-patch-current-user'; +export { usersPatchCurrentUser as usersPatchCurrentUser } from './fn/users/users-patch-current-user'; +export type { RegisterRegister$Params as RegisterRegister$Params } from './fn/users/register-register'; +export { registerRegister as registerRegister } from './fn/users/register-register'; +export type { UsersUser$Params as UsersUser$Params } from './fn/users/users-user'; +export { usersUser as usersUser } from './fn/users/users-user'; +export type { UsersDeleteUser$Params as UsersDeleteUser$Params } from './fn/users/users-delete-user'; +export { usersDeleteUser as usersDeleteUser } from './fn/users/users-delete-user'; +export type { UsersPatchUser$Params as UsersPatchUser$Params } from './fn/users/users-patch-user'; +export { usersPatchUser as usersPatchUser } from './fn/users/users-patch-user'; export type { PostBundle$Params as PostBundle$Params } from './fn/fhir/post-bundle'; export { postBundle as postBundle } from './fn/fhir/post-bundle'; export type { SearchCondition$Params as SearchCondition$Params } from './fn/fhir/search-condition'; @@ -117,8 +111,6 @@ export type { SearchObservation$Params as SearchObservation$Params } from './fn/ export { searchObservation as searchObservation } from './fn/fhir/search-observation'; export type { SearchPatient$Params as SearchPatient$Params } from './fn/fhir/search-patient'; export { searchPatient as searchPatient } from './fn/fhir/search-patient'; -export type { EegSummary$Params as EegSummary$Params } from './fn/fhir/eeg-summary'; -export { eegSummary as eegSummary } from './fn/fhir/eeg-summary'; export type { ReadPatient$Params as ReadPatient$Params } from './fn/fhir/read-patient'; export { readPatient as readPatient } from './fn/fhir/read-patient'; export type { SearchProcedure$Params as SearchProcedure$Params } from './fn/fhir/search-procedure'; diff --git a/src/app/api/models.ts b/src/app/api/models.ts index 64f8ce5..c0d0dac 100644 --- a/src/app/api/models.ts +++ b/src/app/api/models.ts @@ -2,56 +2,52 @@ /* Code generated by ng-openapi-gen DO NOT EDIT. */ export type { Analysis } from './models/analysis'; -export type { Analyze } from './models/analyze'; -export type { AnalyzeRequest } from './models/analyze-request'; +export type { Answers } from './models/answers'; export type { BodyAddClinicalValidation } from './models/body-add-clinical-validation'; -export type { BodyImportModels } from './models/body-import-models'; -export type { BodyStartPreview } from './models/body-start-preview'; export type { BodyUpload } from './models/body-upload'; -export type { BodyUploadTrainingInputs } from './models/body-upload-training-inputs'; -export type { Cancel } from './models/cancel'; +export type { Browsed } from './models/browsed'; +export type { Catalog } from './models/catalog'; export type { Condition } from './models/condition'; export type { Correction } from './models/correction'; export type { Domain } from './models/domain'; -export type { Edf } from './models/edf'; -export type { Execution } from './models/execution'; +export type { Entry } from './models/entry'; +export type { ErrorModel } from './models/error-model'; export type { Extract } from './models/extract'; export type { Fhir } from './models/fhir'; -export type { Health } from './models/health'; +export type { FieldSpec } from './models/field-spec'; +export type { Group } from './models/group'; +export type { Guided } from './models/guided'; export type { HttpValidationError } from './models/http-validation-error'; export type { Join } from './models/join'; export type { Link } from './models/link'; +export type { Listing } from './models/listing'; +export type { Login } from './models/login'; export type { Map } from './models/map'; export type { Metric } from './models/metric'; -export type { Options } from './models/options'; +export type { Model } from './models/model'; +export type { Option } from './models/option'; export type { PersonDecision } from './models/person-decision'; export type { Pipeline } from './models/pipeline'; export type { Position } from './models/position'; -export type { PreviewAdos2 } from './models/preview-ados-2'; -export type { PreviewEeg } from './models/preview-eeg'; -export type { PreviewMetric } from './models/preview-metric'; -export type { PreviewResult } from './models/preview-result'; -export type { PreviewStatus } from './models/preview-status'; -export type { Progress } from './models/progress'; +export type { Provider } from './models/provider'; export type { Read } from './models/read'; -export type { Reference } from './models/reference'; export type { Rejection } from './models/rejection'; +export type { Relation } from './models/relation'; export type { Route } from './models/route'; -export type { Run } from './models/run'; export type { RunRequest } from './models/run-request'; -export type { RunSummary } from './models/run-summary'; export type { SavedPipeline } from './models/saved-pipeline'; -export type { Scope } from './models/scope'; -export type { Score } from './models/score'; +export type { SignIn } from './models/sign-in'; export type { Site } from './models/site'; export type { Source } from './models/source'; export type { SourceRef } from './models/source-ref'; -export type { Step } from './models/step'; +export type { SourceType } from './models/source-type'; export type { Study } from './models/study'; export type { Target } from './models/target'; -export type { Tasks } from './models/tasks'; +export type { Tested } from './models/tested'; export type { Training } from './models/training'; -export type { TrainingConfig } from './models/training-config'; +export type { Uploaded } from './models/uploaded'; +export type { UserCreate } from './models/user-create'; +export type { UserRead } from './models/user-read'; +export type { UserUpdate } from './models/user-update'; export type { ValidationError } from './models/validation-error'; export type { Version } from './models/version'; -export type { Worker } from './models/worker'; diff --git a/src/app/api/models/analysis.ts b/src/app/api/models/analysis.ts index eee29c9..4ae857d 100644 --- a/src/app/api/models/analysis.ts +++ b/src/app/api/models/analysis.ts @@ -2,16 +2,12 @@ /* Code generated by ng-openapi-gen DO NOT EDIT. */ import { Metric } from '../models/metric'; +import { Relation } from '../models/relation'; export interface Analysis { age_months: (number | null); - checks: Array<{ -[key: string]: any; -}>; id: string; level: (string | null); metrics: Array; - regions: Array<{ -[key: string]: any; -}>; + relation?: Array; valid: (boolean | null); } diff --git a/src/app/api/models/answers.ts b/src/app/api/models/answers.ts new file mode 100644 index 0000000..45da8fa --- /dev/null +++ b/src/app/api/models/answers.ts @@ -0,0 +1,11 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +export interface Answers { + answers?: { +[key: string]: any; +}; + node?: (string | null); + pipeline?: (string | null); + type: string; +} diff --git a/src/app/api/models/body-upload.ts b/src/app/api/models/body-upload.ts index 0600f02..28c29b7 100644 --- a/src/app/api/models/body-upload.ts +++ b/src/app/api/models/body-upload.ts @@ -2,5 +2,6 @@ /* Code generated by ng-openapi-gen DO NOT EDIT. */ export interface BodyUpload { - file: string; + files: Array; + folder?: (string | null); } diff --git a/src/app/api/models/browsed.ts b/src/app/api/models/browsed.ts new file mode 100644 index 0000000..7a18d7e --- /dev/null +++ b/src/app/api/models/browsed.ts @@ -0,0 +1,9 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { Entry } from '../models/entry'; +export interface Browsed { + entries: Array; + parent: (string | null); + path: (string | null); +} diff --git a/src/app/api/models/catalog.ts b/src/app/api/models/catalog.ts new file mode 100644 index 0000000..f377243 --- /dev/null +++ b/src/app/api/models/catalog.ts @@ -0,0 +1,19 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +import { Group } from '../models/group'; +import { Option } from '../models/option'; +import { Provider } from '../models/provider'; +import { SourceType } from '../models/source-type'; +export interface Catalog { + formats: Array