diff --git a/openapi.json b/openapi.json index eb0749a..e3f0dd7 100644 --- a/openapi.json +++ b/openapi.json @@ -2348,31 +2348,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": { @@ -3428,10 +3403,10 @@ "title": "Models", "type": "array" }, - "reference": { + "source": { "anyOf": [ { - "$ref": "#/components/schemas/Reference" + "$ref": "#/components/schemas/TrainingSource" }, { "type": "null" @@ -3472,6 +3447,45 @@ "title": "TrainingConfig", "type": "object" }, + "TrainingSource": { + "additionalProperties": false, + "properties": { + "folder": { + "anyOf": [ + { + "pattern": "^[A-Za-z0-9._-]{1,64}$", + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Carpeta dentro de TEA_REFERENCE_ROOT", + "title": "Carpeta" + }, + "kind": { + "default": "site", + "description": "site: los ni\u00f1os del sitio sin el diagn\u00f3stico a la fecha de corte; folder: una carpeta de EDF con edades.csv (path, age en meses)", + "enum": [ + "site", + "folder" + ], + "title": "Origen", + "type": "string" + }, + "line_hz": { + "default": 50, + "enum": [ + 50, + 60 + ], + "title": "Frecuencia de la red el\u00e9ctrica (Hz)", + "type": "integer" + } + }, + "title": "Datos de entrenamiento", + "type": "object" + }, "Uploaded": { "properties": { "bucket_url": { diff --git a/src/app/api/models.ts b/src/app/api/models.ts index e826919..c3ee195 100644 --- a/src/app/api/models.ts +++ b/src/app/api/models.ts @@ -47,7 +47,6 @@ 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 { Route } from './models/route'; export type { Run } from './models/run'; @@ -68,6 +67,7 @@ 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 { TrainingSource } from './models/training-source'; export type { Uploaded } from './models/uploaded'; export type { UserCreate } from './models/user-create'; export type { UserRead } from './models/user-read'; diff --git a/src/app/api/models/reference.ts b/src/app/api/models/reference.ts deleted file mode 100644 index e28d9ab..0000000 --- a/src/app/api/models/reference.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* eslint-disable */ -/* Code generated by ng-openapi-gen DO NOT EDIT. */ - -export interface Reference { - line_hz?: 50 | 60; - - /** - * Carpeta dentro de TEA_REFERENCE_ROOT con los EDF y edades.csv - */ - name: string; -} diff --git a/src/app/api/models/training-source.ts b/src/app/api/models/training-source.ts new file mode 100644 index 0000000..75bf6bc --- /dev/null +++ b/src/app/api/models/training-source.ts @@ -0,0 +1,16 @@ +/* eslint-disable */ +/* Code generated by ng-openapi-gen DO NOT EDIT. */ + +export interface TrainingSource { + + /** + * Carpeta dentro de TEA_REFERENCE_ROOT + */ + folder?: (string | null); + + /** + * site: los niños del sitio sin el diagnóstico a la fecha de corte; folder: una carpeta de EDF con edades.csv (path, age en meses) + */ + kind?: 'site' | 'folder'; + line_hz?: 50 | 60; +} diff --git a/src/app/api/models/training.ts b/src/app/api/models/training.ts index cba8f8a..2abbf55 100644 --- a/src/app/api/models/training.ts +++ b/src/app/api/models/training.ts @@ -2,7 +2,7 @@ /* Code generated by ng-openapi-gen DO NOT EDIT. */ import { Execution } from '../models/execution'; -import { Reference } from '../models/reference'; +import { TrainingSource } from '../models/training-source'; export interface Training { /** @@ -11,5 +11,5 @@ export interface Training { as_of?: (string | null); execution?: (Execution | null); models?: Array; - reference?: (Reference | null); + source?: (TrainingSource | null); }