Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c0e4920159 | |||
| 31400c77b1 |
@@ -39,9 +39,6 @@
|
|||||||
"material-symbols/outlined.css",
|
"material-symbols/outlined.css",
|
||||||
"src/styles.scss"
|
"src/styles.scss"
|
||||||
],
|
],
|
||||||
"define": {
|
|
||||||
"global": "globalThis"
|
|
||||||
},
|
|
||||||
"allowedCommonJsDependencies": [
|
"allowedCommonJsDependencies": [
|
||||||
"plotly.js-cartesian-dist-min"
|
"plotly.js-cartesian-dist-min"
|
||||||
]
|
]
|
||||||
|
|||||||
+91
-109
@@ -1,6 +1,6 @@
|
|||||||
import { statSync } from 'node:fs';
|
import { expect, Page, test } from '@playwright/test';
|
||||||
import { expect, Locator, Page, test } from '@playwright/test';
|
|
||||||
|
|
||||||
|
/** Every page loads from the API with no failed request and no console error. */
|
||||||
function watch(page: Page): string[] {
|
function watch(page: Page): string[] {
|
||||||
const problems: string[] = [];
|
const problems: string[] = [];
|
||||||
page.on('console', (m) => m.type() === 'error' && problems.push(`console: ${m.text()}`));
|
page.on('console', (m) => m.type() === 'error' && problems.push(`console: ${m.text()}`));
|
||||||
@@ -9,130 +9,112 @@ function watch(page: Page): string[] {
|
|||||||
return problems;
|
return problems;
|
||||||
}
|
}
|
||||||
|
|
||||||
test.beforeEach(async ({ page }) => {
|
test("indicators: the KPIs are the API's MeasureReports, every tab and the patient view load", async ({
|
||||||
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<string> {
|
|
||||||
const [file] = await Promise.all([page.waitForEvent('download'), button.click()]);
|
|
||||||
const name = file.suggestedFilename();
|
|
||||||
expect(name).toMatch(new RegExp(`^tea-[a-z]+-\\d{4}-\\d{2}-\\d{2}\\.${kind}$`));
|
|
||||||
expect(name).not.toMatch(/N-?\d{4}/);
|
|
||||||
expect(statSync(await file.path()).size).toBeGreaterThan(0);
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
test('tea indicators: every tab loads, and the follow-up list exports to Excel', async ({
|
|
||||||
page,
|
page,
|
||||||
}) => {
|
}) => {
|
||||||
const problems = watch(page);
|
const problems = watch(page);
|
||||||
const listed = page.waitForResponse(
|
const report = page.waitForResponse(
|
||||||
(r) => r.url().includes('/tea/fhir/Measure') && !r.url().includes('MeasureReport'),
|
(r) =>
|
||||||
|
r.url().includes('MeasureReport') &&
|
||||||
|
r.url().includes('measure=cacu-eu7') &&
|
||||||
|
!r.url().includes('%2C'),
|
||||||
);
|
);
|
||||||
await page.goto('/indicadores/tea');
|
const catalog = page.waitForResponse((r) => r.url().endsWith('/cacu/fhir/Measure'));
|
||||||
const measures = (await (await listed).json()).entry.length;
|
await page.goto('/indicadores/cacu');
|
||||||
await expect(page.getByRole('tab', { name: 'Resumen' })).toBeVisible();
|
const measures = await (await catalog).json();
|
||||||
await expect(page.locator('app-tab-indicadores [data-measure]').first()).toBeVisible();
|
const eu7 = await (await report).json();
|
||||||
|
const count = eu7.entry[0].resource.group[0].population.find(
|
||||||
|
(p: any) => p.code.coding[0].code === 'initial-population',
|
||||||
|
).count;
|
||||||
|
await expect(page.locator('[data-measure="CACU_EU7"] mat-card-subtitle')).toContainText(String(count));
|
||||||
|
await expect(page.locator('app-tab-indicadores app-plot').first()).toBeVisible();
|
||||||
|
|
||||||
await page.getByRole('tab', { name: 'Trazabilidad' }).click();
|
await page.getByRole('tab', { name: 'Trazabilidad' }).click();
|
||||||
await expect(page.getByText('Progresión del proceso diagnóstico')).toBeVisible();
|
await expect(page.locator('app-tab-trazabilidad mat-card')).toHaveCount(measures.total);
|
||||||
await expect(page.locator('app-tab-trazabilidad app-plot').first()).toBeVisible();
|
|
||||||
|
|
||||||
await page.getByRole('tab', { name: 'Seguimiento' }).click();
|
|
||||||
const rows = page.locator('app-tab-seguimiento table tbody tr');
|
|
||||||
await expect(rows.first().locator('td').first()).toHaveText(/^N-?\d{4}$/);
|
|
||||||
const name = await downloaded(
|
|
||||||
page,
|
|
||||||
page.getByRole('button', { name: 'Exportar a Excel' }),
|
|
||||||
'xlsx',
|
|
||||||
);
|
|
||||||
expect(name).toMatch(/^tea-seguimiento-/);
|
|
||||||
|
|
||||||
await page.getByRole('tab', { name: 'Análisis de riesgo' }).click();
|
|
||||||
await expect(page.locator('app-tab-riesgos app-tea-list')).toBeVisible();
|
|
||||||
await expect(page.getByText('Cargando pacientes…')).toHaveCount(0);
|
|
||||||
|
|
||||||
await page.getByRole('tab', { name: 'Datos y definiciones' }).click();
|
await page.getByRole('tab', { name: 'Datos y definiciones' }).click();
|
||||||
await expect(page.locator('app-tab-definiciones details')).toHaveCount(measures);
|
await expect(page.locator('app-tab-definiciones tbody tr')).toHaveCount(measures.total);
|
||||||
expect(problems).toEqual([]);
|
|
||||||
});
|
|
||||||
|
|
||||||
test('tea patient: the record and the risk page load and export to PDF', async ({ page }) => {
|
const list = page.waitForResponse((r) => r.url().includes('/fhir/Patient?'));
|
||||||
const problems = watch(page);
|
await page.getByRole('tab', { name: 'Análisis de riesgos' }).click();
|
||||||
await page.goto('/indicadores/tea');
|
const bundle = await (await list).json();
|
||||||
|
const patient = bundle.entry.find((e: any) => e.search.mode === 'match').resource;
|
||||||
|
const first = patient.name?.[0]?.text ?? patient.id.slice(0, 10);
|
||||||
|
const rows = page.locator('table.worklist tbody tr');
|
||||||
|
await expect(rows).toHaveCount(Math.min(20, bundle.total));
|
||||||
|
await expect(rows.first().locator('a').first()).toHaveText(first);
|
||||||
|
await page.getByRole('button', { name: 'Siguiente' }).click();
|
||||||
|
await expect(page.getByText(`21–`)).toBeVisible();
|
||||||
|
|
||||||
|
await page.getByRole('button', { name: 'Anterior' }).click();
|
||||||
|
await rows.first().locator('a').first().click();
|
||||||
|
await expect(page.getByText('Historial médico')).toBeVisible();
|
||||||
|
await expect(page.getByText('Pruebas y resultados')).toBeVisible();
|
||||||
|
await expect(
|
||||||
|
page.locator('app-paciente table').nth(1).locator('tbody tr').first(),
|
||||||
|
).not.toContainText('Sin estudios');
|
||||||
|
|
||||||
|
await page.goto('/indicadores/cama');
|
||||||
|
await expect(page.getByRole('tab', { name: 'Indicadores' })).toBeVisible();
|
||||||
await page.getByRole('tab', { name: 'Seguimiento' }).click();
|
await page.getByRole('tab', { name: 'Seguimiento' }).click();
|
||||||
const first = page.locator('app-tab-seguimiento table tbody tr').first();
|
await page.locator('mat-form-field', { hasText: 'Ventana' }).click();
|
||||||
await expect(first.locator('td').first()).toHaveText(/^N-?\d{4}$/);
|
await page.getByRole('option', { name: '12 meses' }).click();
|
||||||
await first.getByRole('link', { name: 'Expediente' }).click();
|
const camaRows = page.locator('table.worklist tbody tr');
|
||||||
|
await expect(camaRows.first()).toContainText('BI-RADS');
|
||||||
await expect(page).toHaveURL(/\/indicadores\/tea\/pacientes\/[^/]+$/);
|
await page.goto('/indicadores/tea');
|
||||||
await expect(page.getByRole('heading', { level: 1 })).toBeVisible();
|
await expect(page.getByRole('tab', { name: 'Indicadores' })).toBeVisible();
|
||||||
await expect(page.locator('app-tea-section').first()).toBeVisible();
|
|
||||||
const record = await downloaded(page, page.getByRole('button', { name: 'Exportar PDF' }), 'pdf');
|
|
||||||
expect(record).toMatch(/^tea-seguimiento-/);
|
|
||||||
|
|
||||||
await page.getByRole('link', { name: 'Riesgo' }).click();
|
|
||||||
await expect(page.getByRole('heading', { name: 'Análisis de riesgo TEA' })).toBeVisible();
|
|
||||||
await expect(page.locator('app-tea-section').first()).toBeVisible();
|
|
||||||
expect(await downloaded(page, page.getByRole('button', { name: 'Exportar PDF' }), 'pdf')).toMatch(
|
|
||||||
/^tea-riesgos-/,
|
|
||||||
);
|
|
||||||
expect(problems).toEqual([]);
|
expect(problems).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('tea gobernanza: every section in sync mode, and the preview saved as PDF', async ({
|
test('conectar: open the hospital pipeline, preview a source, run it to success', async ({
|
||||||
page,
|
page,
|
||||||
}) => {
|
}) => {
|
||||||
const problems = watch(page);
|
const problems = watch(page);
|
||||||
await page.goto('/gobernanza/tea');
|
await page.goto('/conectar');
|
||||||
await page.getByLabel('Modo').selectOption('sync');
|
await page.getByText('cacu', { exact: true }).click();
|
||||||
await expect(page.getByRole('status').filter({ hasText: 'Disponible' })).toBeVisible();
|
await expect(page.locator('vflow')).toBeVisible();
|
||||||
|
await page.getByText('Fuente · Patients').click();
|
||||||
await page.getByRole('button', { name: 'Entrenar modelos' }).click();
|
await expect(page.locator('formly-form')).toBeVisible();
|
||||||
await expect(page.getByRole('heading', { name: 'Entrenar modelos', level: 3 })).toBeVisible();
|
await page.getByRole('button', { name: 'Vista previa' }).click();
|
||||||
await expect(page.locator('app-governance-training formly-form')).toBeVisible();
|
await expect(page.locator('.preview tr[mat-row]').first()).toBeVisible();
|
||||||
|
// A map node shows the site's codes in platform terms (its ConceptMap), editable as rows.
|
||||||
const monitor = page.locator('app-gobernanza > section > section app-run-monitor');
|
await page.getByText('Mapear · cytology', { exact: true }).click();
|
||||||
await page.getByRole('button', { name: 'Analizar EEG' }).click();
|
await expect(page.getByText('Códigos del sitio')).toBeVisible();
|
||||||
await expect(page.getByRole('heading', { name: 'Análisis de EEG' })).toBeVisible();
|
await expect
|
||||||
await expect(monitor.getByRole('status')).toHaveText('SUCCESS', { timeout: 10 * 60_000 });
|
.poll(() =>
|
||||||
await page.getByRole('button', { name: 'Calcular riesgos' }).click();
|
page
|
||||||
await expect(page.getByRole('heading', { name: 'Cálculo de riesgos' })).toBeVisible();
|
.locator('app-concept-map-editor input')
|
||||||
await expect(monitor.getByRole('status')).toHaveText('SUCCESS', { timeout: 10 * 60_000 });
|
.evaluateAll((els) => els.map((e) => (e as HTMLInputElement).value)),
|
||||||
await page.getByRole('button', { name: 'Promover candidatas' }).click();
|
)
|
||||||
await expect(page.getByText('No hay candidatas que se puedan promover.')).toBeVisible();
|
.toContain('LIEAG');
|
||||||
|
await page.getByRole('button', { name: 'Ejecutar' }).click();
|
||||||
const studies = page.locator('app-eeg-studies');
|
await expect(page.getByText('SUCCESS')).toBeVisible({ timeout: 10 * 60_000 });
|
||||||
await expect(studies.locator('table.eegs tbody tr').first()).toContainText(/Válido|No válido/);
|
expect(problems).toEqual([]);
|
||||||
await studies.locator('table.eegs tbody button:enabled').first().click();
|
|
||||||
await expect(studies.getByRole('heading', { name: /^EEG .* meses$/ })).toBeVisible();
|
|
||||||
await studies.getByRole('button', { name: 'Analizar', exact: true }).click();
|
|
||||||
await expect(studies.locator('app-run-monitor').first().getByRole('status')).toHaveText(
|
|
||||||
'SUCCESS',
|
|
||||||
{ timeout: 10 * 60_000 },
|
|
||||||
);
|
|
||||||
|
|
||||||
const preview = page.locator('app-eeg-preview');
|
|
||||||
await preview.getByLabel('EDF').setInputFiles(process.env['TEA_EDF']!);
|
|
||||||
await preview.getByLabel('ADOS-2 (PDF)').setInputFiles(process.env['TEA_ADOS2']!);
|
|
||||||
await preview.getByLabel('Fecha de nacimiento').fill(process.env['TEA_BIRTH']!);
|
|
||||||
await preview.getByRole('button', { name: 'Vista previa' }).click();
|
|
||||||
const dialog = page.getByRole('dialog', { name: 'Vista previa del estudio' });
|
|
||||||
await expect(dialog.getByText('Resultado de la vista previa')).toBeVisible({
|
|
||||||
timeout: 10 * 60_000,
|
|
||||||
});
|
});
|
||||||
await expect(dialog.locator('dt').first()).toHaveText(/^[AB]-\d+ \S/);
|
|
||||||
expect(
|
|
||||||
await downloaded(page, dialog.getByRole('button', { name: 'Guardar como PDF' }), 'pdf'),
|
|
||||||
).toMatch(/^tea-gobernanza-/);
|
|
||||||
await dialog.getByRole('button', { name: 'Cerrar' }).click();
|
|
||||||
|
|
||||||
const bundles = page.locator('app-governance-bundles');
|
test('revision: what the hospital source holds, and a decision through the page', async ({ page }) => {
|
||||||
await bundles.getByLabel('Versiones').selectOption('all');
|
const problems = watch(page);
|
||||||
await bundles.getByRole('button', { name: 'Exportar bundle' }).click();
|
await page.goto('/revision');
|
||||||
await expect(bundles.getByRole('alert')).toContainText('nothing to export');
|
await page.getByRole('tab', { name: 'Personas' }).click();
|
||||||
|
await page.locator('mat-form-field', { hasText: 'Canalización' }).click();
|
||||||
|
await page.getByRole('option', { name: 'site', exact: true }).click();
|
||||||
|
await expect(page.getByText(/Posibles pacientes duplicadas \([1-9]/)).toBeVisible();
|
||||||
|
await page.getByRole('button', { name: 'Distintas' }).first().click();
|
||||||
|
await expect(page.getByText('Decisión registrada.')).toBeVisible();
|
||||||
|
expect(problems).toEqual([]);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('gobernanza: a version with its reports, its curves, and promotion refused without validation', async ({
|
||||||
|
page,
|
||||||
|
}) => {
|
||||||
|
const problems = watch(page);
|
||||||
|
await page.goto('/gobernanza/cama');
|
||||||
|
await expect(page.getByRole('heading', { name: 'survival' })).toBeVisible();
|
||||||
|
const version = page.locator('tr', { hasText: 'v1' });
|
||||||
|
await expect(version.getByRole('link', { name: 'Validación técnica' })).toBeVisible();
|
||||||
|
await version.getByRole('button', { name: 'Ver gráficas' }).click();
|
||||||
|
await expect(page.locator('app-plot .plot svg').first()).toBeVisible();
|
||||||
|
await version.getByRole('button', { name: 'Promover' }).click();
|
||||||
|
await expect(page.getByText('No se promovió')).toContainText('clinical_validation');
|
||||||
expect(problems.filter((p) => !p.includes('409'))).toEqual([]);
|
expect(problems.filter((p) => !p.includes('409'))).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ server {
|
|||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://api:8000/;
|
proxy_pass http://api:8000/;
|
||||||
proxy_read_timeout 120s;
|
proxy_read_timeout 30s;
|
||||||
}
|
}
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
|
|||||||
+70
-4527
File diff suppressed because it is too large
Load Diff
Generated
+130
-2266
File diff suppressed because it is too large
Load Diff
+2
-5
@@ -29,11 +29,9 @@
|
|||||||
"d3-zoom": "3.0.0",
|
"d3-zoom": "3.0.0",
|
||||||
"material-symbols": "0.48.3",
|
"material-symbols": "0.48.3",
|
||||||
"ngx-vflow": "2.7.0",
|
"ngx-vflow": "2.7.0",
|
||||||
"pdfmake": "0.3.15",
|
"plotly.js-cartesian-dist-min": "4.1.2",
|
||||||
"plotly.js": "4.1.2",
|
|
||||||
"rxjs": "~7.8.0",
|
"rxjs": "~7.8.0",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0"
|
||||||
"write-excel-file": "4.1.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/build": "^22.3.0",
|
"@angular/build": "^22.3.0",
|
||||||
@@ -44,7 +42,6 @@
|
|||||||
"@types/d3-selection": "3.0.13",
|
"@types/d3-selection": "3.0.13",
|
||||||
"@types/d3-zoom": "3.0.9",
|
"@types/d3-zoom": "3.0.9",
|
||||||
"@types/fhir": "0.0.44",
|
"@types/fhir": "0.0.44",
|
||||||
"@types/pdfmake": "0.3.3",
|
|
||||||
"@types/plotly.js": "3.0.15",
|
"@types/plotly.js": "3.0.15",
|
||||||
"jsdom": "^31.0.0",
|
"jsdom": "^31.0.0",
|
||||||
"ng-openapi-gen": "^1.1.0",
|
"ng-openapi-gen": "^1.1.0",
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
import { defineConfig } from '@playwright/test';
|
import { defineConfig } from '@playwright/test';
|
||||||
|
|
||||||
|
/** The pages against a running API (API_URL), served by the dev server with the same
|
||||||
|
* proxy the app uses in production (`/api`). Run by WebApi/tests/test_webapp.py, which
|
||||||
|
* starts the platform and loads the synthetic hospital first. */
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
testDir: 'e2e',
|
testDir: 'e2e',
|
||||||
timeout: 15 * 60_000,
|
timeout: 15 * 60_000,
|
||||||
@@ -9,9 +12,10 @@ export default defineConfig({
|
|||||||
use: {
|
use: {
|
||||||
baseURL: 'http://127.0.0.1:4310',
|
baseURL: 'http://127.0.0.1:4310',
|
||||||
viewport: { width: 1440, height: 1000 },
|
viewport: { width: 1440, height: 1000 },
|
||||||
actionTimeout: 60_000,
|
actionTimeout: 60_000, // a stuck step fails, not the whole run
|
||||||
},
|
},
|
||||||
webServer: {
|
webServer: {
|
||||||
|
// IPv4 explicitly: `localhost` may resolve to ::1 only (CI containers), where the url below never answers.
|
||||||
command: 'npx ng serve --host 127.0.0.1 --port 4310 --proxy-config proxy.e2e.mjs',
|
command: 'npx ng serve --host 127.0.0.1 --port 4310 --proxy-config proxy.e2e.mjs',
|
||||||
env: { NG_CLI_ANALYTICS: 'false' },
|
env: { NG_CLI_ANALYTICS: 'false' },
|
||||||
url: 'http://127.0.0.1:4310',
|
url: 'http://127.0.0.1:4310',
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
|
// `/api` to the API the e2e run started (API_URL).
|
||||||
export default { '/api': { target: process.env.API_URL, pathRewrite: { '^/api': '' } } };
|
export default { '/api': { target: process.env.API_URL, pathRewrite: { '^/api': '' } } };
|
||||||
|
|||||||
@@ -1,100 +0,0 @@
|
|||||||
import type { Observation, ObservationComponent } from 'fhir/r4';
|
|
||||||
import { describe, expect, it } from 'vitest';
|
|
||||||
import { ados2Component, ados2Groups } from './ados2';
|
|
||||||
import { EXT } from './fhir';
|
|
||||||
|
|
||||||
function item(
|
|
||||||
field: string,
|
|
||||||
domain: string,
|
|
||||||
subdomain: string,
|
|
||||||
code: string,
|
|
||||||
title: string,
|
|
||||||
value?: number,
|
|
||||||
): ObservationComponent {
|
|
||||||
return {
|
|
||||||
code: {
|
|
||||||
coding: [{ code: `ados2.${field}` }, { code, display: title }],
|
|
||||||
text: title,
|
|
||||||
},
|
|
||||||
extension: [
|
|
||||||
{ url: EXT + 'ados2-domain', valueCoding: { code: domain[0], display: domain } },
|
|
||||||
{ url: EXT + 'ados2-subdomain', valueCoding: { code: subdomain, display: subdomain } },
|
|
||||||
],
|
|
||||||
valueQuantity: value == null ? undefined : { value },
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
const AS = 'Afectación social (AS)';
|
|
||||||
const CRR = 'Comportamiento restringido y repetitivo (CRR)';
|
|
||||||
|
|
||||||
const observation: Observation = {
|
|
||||||
resourceType: 'Observation',
|
|
||||||
status: 'final',
|
|
||||||
code: { coding: [{ code: 'ados2' }] },
|
|
||||||
component: [
|
|
||||||
{ code: { coding: [{ code: 'ados2.module' }] }, valueCodeableConcept: { text: 'Módulo 1' } },
|
|
||||||
item('pointing', AS, 'Comunicación', 'A-7', 'Señalar', 2),
|
|
||||||
item('gestures', AS, 'Comunicación', 'A-8', 'Gestos', 1),
|
|
||||||
item(
|
|
||||||
'unusual_eye_contact',
|
|
||||||
AS,
|
|
||||||
'Interacción social recíproca',
|
|
||||||
'B-1',
|
|
||||||
'Contacto visual inusual',
|
|
||||||
),
|
|
||||||
item(
|
|
||||||
'intonation',
|
|
||||||
CRR,
|
|
||||||
'Comportamientos restringidos y repetitivos',
|
|
||||||
'A-3',
|
|
||||||
'Entonación de las vocalizaciones o verbalizaciones',
|
|
||||||
3,
|
|
||||||
),
|
|
||||||
{ code: { coding: [{ code: 'ados2.response_to_name' }] } },
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
describe('Ítems del ADOS-2', () => {
|
|
||||||
it('agrupa los ítems del módulo por dominio y subdominio en su orden', () => {
|
|
||||||
expect(ados2Groups(observation)).toEqual([
|
|
||||||
{
|
|
||||||
domain: AS,
|
|
||||||
subdomains: [
|
|
||||||
{
|
|
||||||
subdomain: 'Comunicación',
|
|
||||||
items: [
|
|
||||||
{ code: 'A-7', title: 'Señalar', score: 2 },
|
|
||||||
{ code: 'A-8', title: 'Gestos', score: 1 },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
subdomain: 'Interacción social recíproca',
|
|
||||||
items: [{ code: 'B-1', title: 'Contacto visual inusual', score: undefined }],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
domain: CRR,
|
|
||||||
subdomains: [
|
|
||||||
{
|
|
||||||
subdomain: 'Comportamientos restringidos y repetitivos',
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
code: 'A-3',
|
|
||||||
title: 'Entonación de las vocalizaciones o verbalizaciones',
|
|
||||||
score: 3,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
expect(ados2Groups(undefined)).toEqual([]);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('encuentra el ítem de una asociación por su número', () => {
|
|
||||||
expect(ados2Component(observation, 2)?.code.text).toBe('Señalar');
|
|
||||||
expect(ados2Component(observation, 8)?.code.coding?.[0].code).toBe('ados2.response_to_name');
|
|
||||||
expect(ados2Component(observation, 0)).toBeUndefined();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
import type { Observation, ObservationComponent } from 'fhir/r4';
|
|
||||||
import { code, ext } from './fhir';
|
|
||||||
|
|
||||||
export const ADOS2_ITEMS = [
|
|
||||||
'vocalization_directed',
|
|
||||||
'pointing',
|
|
||||||
'gestures',
|
|
||||||
'unusual_eye_contact',
|
|
||||||
'facial_expressions',
|
|
||||||
'gaze_integration',
|
|
||||||
'shared_enjoyment',
|
|
||||||
'response_to_name',
|
|
||||||
'ignoring',
|
|
||||||
'requesting',
|
|
||||||
'showing',
|
|
||||||
'joint_attention_initiation',
|
|
||||||
'joint_attention_response',
|
|
||||||
'social_overtures_quality',
|
|
||||||
'social_overtures_caregiver',
|
|
||||||
'reciprocal_communication',
|
|
||||||
'rapport_quality',
|
|
||||||
'intonation',
|
|
||||||
'stereotyped_language',
|
|
||||||
'unusual_sensory_interest',
|
|
||||||
'hand_finger_mannerisms',
|
|
||||||
'repetitive_interests',
|
|
||||||
];
|
|
||||||
|
|
||||||
export interface Ados2Item {
|
|
||||||
code: string;
|
|
||||||
title: string;
|
|
||||||
score?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Ados2Subdomain {
|
|
||||||
subdomain: string;
|
|
||||||
items: Ados2Item[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Ados2Domain {
|
|
||||||
domain: string;
|
|
||||||
subdomains: Ados2Subdomain[];
|
|
||||||
}
|
|
||||||
|
|
||||||
function coded(component: ObservationComponent, name: string): string {
|
|
||||||
const coding = ext(component, name)?.valueCoding;
|
|
||||||
return coding?.display ?? coding?.code ?? '';
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ados2Groups(observation: Observation | undefined): Ados2Domain[] {
|
|
||||||
const groups: Ados2Domain[] = [];
|
|
||||||
for (const component of observation?.component ?? []) {
|
|
||||||
const item = component.code.coding?.[1];
|
|
||||||
if (!ext(component, 'ados2-domain') || !item?.code) continue;
|
|
||||||
const domain = coded(component, 'ados2-domain');
|
|
||||||
const subdomain = coded(component, 'ados2-subdomain');
|
|
||||||
let group = groups.at(-1);
|
|
||||||
if (!group || group.domain !== domain) {
|
|
||||||
group = { domain, subdomains: [] };
|
|
||||||
groups.push(group);
|
|
||||||
}
|
|
||||||
let sub = group.subdomains.at(-1);
|
|
||||||
if (!sub || sub.subdomain !== subdomain) {
|
|
||||||
sub = { subdomain, items: [] };
|
|
||||||
group.subdomains.push(sub);
|
|
||||||
}
|
|
||||||
sub.items.push({
|
|
||||||
code: item.code,
|
|
||||||
title: component.code.text ?? item.display ?? item.code,
|
|
||||||
score: component.valueQuantity?.value,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return groups;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function ados2Component(
|
|
||||||
observation: Observation | undefined,
|
|
||||||
number: number,
|
|
||||||
): ObservationComponent | undefined {
|
|
||||||
const field = ADOS2_ITEMS[number - 1];
|
|
||||||
return observation?.component?.find((c) => field && code(c.code) === `ados2.${field}`);
|
|
||||||
}
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
/* 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<StrictHttpResponse<any>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<any>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
authCookieLogin.PATH = '/auth/login';
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
/* 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<StrictHttpResponse<any>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<any>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
authCookieLogout.PATH = '/auth/logout';
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
/* 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 { AnalyzeRequest } from '../../models/analyze-request';
|
|
||||||
|
|
||||||
export interface AnalyzeEegs$Params {
|
|
||||||
body: AnalyzeRequest
|
|
||||||
}
|
|
||||||
|
|
||||||
export function analyzeEegs(http: HttpClient, rootUrl: string, params: AnalyzeEegs$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
|
||||||
}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, analyzeEegs.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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
|
||||||
}>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
analyzeEegs.PATH = '/tea/eegs/analyze';
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
/* 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 EegStudiesSummary$Params {
|
|
||||||
}
|
|
||||||
|
|
||||||
export function eegStudiesSummary(http: HttpClient, rootUrl: string, params?: EegStudiesSummary$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
||||||
[key: string]: number;
|
|
||||||
}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, eegStudiesSummary.PATH, 'get');
|
|
||||||
if (params) {
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<{
|
|
||||||
[key: string]: number;
|
|
||||||
}>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
eegStudiesSummary.PATH = '/tea/eegs/summary';
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
/* 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 { Health } from '../../models/health';
|
|
||||||
|
|
||||||
export interface ExecutionHealth$Params {
|
|
||||||
mode?: ('sync' | 'local' | 'remote' | null);
|
|
||||||
scheduler?: (string | null);
|
|
||||||
reference?: (string | null);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function executionHealth(http: HttpClient, rootUrl: string, params?: ExecutionHealth$Params, context?: HttpContext): Observable<StrictHttpResponse<Health>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, executionHealth.PATH, 'get');
|
|
||||||
if (params) {
|
|
||||||
rb.query('mode', params.mode, {});
|
|
||||||
rb.query('scheduler', params.scheduler, {});
|
|
||||||
rb.query('reference', params.reference, {});
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<Health>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
executionHealth.PATH = '/execution/health';
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
/* 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 { Options } from '../../models/options';
|
|
||||||
|
|
||||||
export interface ExecutionOptions$Params {
|
|
||||||
}
|
|
||||||
|
|
||||||
export function executionOptions(http: HttpClient, rootUrl: string, params?: ExecutionOptions$Params, context?: HttpContext): Observable<StrictHttpResponse<Options>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, executionOptions.PATH, 'get');
|
|
||||||
if (params) {
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<Options>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
executionOptions.PATH = '/execution/options';
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
/* 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 { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface EegSummary$Params {
|
|
||||||
domain: Domain;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* months: the domain's follow-up list over that window up to the cut-off
|
|
||||||
*/
|
|
||||||
'follow-up-window'?: (number | null);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* explicit window start that overrides follow-up-window
|
|
||||||
*/
|
|
||||||
'follow-up-start'?: (string | null);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* default: the last day with data
|
|
||||||
*/
|
|
||||||
'follow-up-cutoff'?: (string | null);
|
|
||||||
'follow-up-status'?: (string | null);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function eegSummary(http: HttpClient, rootUrl: string, params: EegSummary$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
||||||
}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, eegSummary.PATH, 'get');
|
|
||||||
if (params) {
|
|
||||||
rb.path('domain', params.domain, {});
|
|
||||||
rb.query('follow-up-window', params['follow-up-window'], {});
|
|
||||||
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'], {});
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/fhir+json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<{
|
|
||||||
}>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
eegSummary.PATH = '/{domain}/fhir/Patient/$eeg-summary';
|
|
||||||
@@ -18,27 +18,12 @@ export interface SearchPatient$Params {
|
|||||||
*/
|
*/
|
||||||
'follow-up-window'?: (number | null);
|
'follow-up-window'?: (number | null);
|
||||||
|
|
||||||
/**
|
|
||||||
* explicit window start that overrides follow-up-window
|
|
||||||
*/
|
|
||||||
'follow-up-start'?: (string | null);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* default: the last day with data
|
* default: the last day with data
|
||||||
*/
|
*/
|
||||||
'follow-up-cutoff'?: (string | null);
|
'follow-up-cutoff'?: (string | null);
|
||||||
'follow-up-status'?: (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-<outcome>
|
* -recent or -risk-<outcome>
|
||||||
*/
|
*/
|
||||||
@@ -69,11 +54,8 @@ export function searchPatient(http: HttpClient, rootUrl: string, params: SearchP
|
|||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
rb.query('_id', params['_id'], {});
|
rb.query('_id', params['_id'], {});
|
||||||
rb.query('follow-up-window', params['follow-up-window'], {});
|
rb.query('follow-up-window', params['follow-up-window'], {});
|
||||||
rb.query('follow-up-start', params['follow-up-start'], {});
|
|
||||||
rb.query('follow-up-cutoff', params['follow-up-cutoff'], {});
|
rb.query('follow-up-cutoff', params['follow-up-cutoff'], {});
|
||||||
rb.query('follow-up-status', params['follow-up-status'], {});
|
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('_sort', params['_sort'], {});
|
||||||
rb.query('risk-horizon', params['risk-horizon'], {});
|
rb.query('risk-horizon', params['risk-horizon'], {});
|
||||||
rb.query('_revinclude', params['_revinclude'], {});
|
rb.query('_revinclude', params['_revinclude'], {});
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
/* 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<StrictHttpResponse<Browsed>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<Browsed>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
browse.PATH = '/ingest/sources/browse';
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
/* 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<StrictHttpResponse<SignIn>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<SignIn>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
oauthStart.PATH = '/ingest/sources/oauth/{provider}/start';
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
/* 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<StrictHttpResponse<Catalog>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<Catalog>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceTypes.PATH = '/ingest/sources/types';
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
/* 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<StrictHttpResponse<Tested>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<Tested>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
testSource.PATH = '/ingest/sources/test';
|
|
||||||
@@ -8,13 +8,14 @@ import { StrictHttpResponse } from '../../strict-http-response';
|
|||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { BodyUpload } from '../../models/body-upload';
|
import { BodyUpload } from '../../models/body-upload';
|
||||||
import { Uploaded } from '../../models/uploaded';
|
|
||||||
|
|
||||||
export interface Upload$Params {
|
export interface Upload$Params {
|
||||||
body: BodyUpload
|
body: BodyUpload
|
||||||
}
|
}
|
||||||
|
|
||||||
export function upload(http: HttpClient, rootUrl: string, params: Upload$Params, context?: HttpContext): Observable<StrictHttpResponse<Uploaded>> {
|
export function upload(http: HttpClient, rootUrl: string, params: Upload$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>> {
|
||||||
const rb = new RequestBuilder(rootUrl, upload.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, upload.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.body(params.body, 'multipart/form-data');
|
rb.body(params.body, 'multipart/form-data');
|
||||||
@@ -25,7 +26,9 @@ export function upload(http: HttpClient, rootUrl: string, params: Upload$Params,
|
|||||||
).pipe(
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Uploaded>;
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,12 +7,10 @@ import { filter, map } from 'rxjs/operators';
|
|||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Analyze } from '../../models/analyze';
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
|
|
||||||
export interface Analyze$Params {
|
export interface Analyze$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
body?: Analyze
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function analyze(http: HttpClient, rootUrl: string, params: Analyze$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
export function analyze(http: HttpClient, rootUrl: string, params: Analyze$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
@@ -21,7 +19,6 @@ export function analyze(http: HttpClient, rootUrl: string, params: Analyze$Param
|
|||||||
const rb = new RequestBuilder(rootUrl, analyze.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, analyze.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
rb.body(params.body, 'application/json');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return http.request(
|
return http.request(
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
/* 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 { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface Curve$Params {
|
|
||||||
domain: Domain;
|
|
||||||
name: string;
|
|
||||||
version: number;
|
|
||||||
feature?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function curve(http: HttpClient, rootUrl: string, params: Curve$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, curve.PATH, 'get');
|
|
||||||
if (params) {
|
|
||||||
rb.path('domain', params.domain, {});
|
|
||||||
rb.path('name', params.name, {});
|
|
||||||
rb.path('version', params.version, {});
|
|
||||||
rb.query('feature', params.feature, {});
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<Array<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
curve.PATH = '/models/{domain}/{name}/versions/{version}/curve';
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
/* 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 { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface ExportModels$Params {
|
|
||||||
domain: Domain;
|
|
||||||
names?: (Array<string> | null);
|
|
||||||
versions?: 'champion' | 'latest' | 'all';
|
|
||||||
}
|
|
||||||
|
|
||||||
export function exportModels(http: HttpClient, rootUrl: string, params: ExportModels$Params, context?: HttpContext): Observable<StrictHttpResponse<any>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, exportModels.PATH, 'get');
|
|
||||||
if (params) {
|
|
||||||
rb.path('domain', params.domain, {});
|
|
||||||
rb.query('names', params.names, {});
|
|
||||||
rb.query('versions', params.versions, {});
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'blob', accept: 'application/zip', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<any>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
exportModels.PATH = '/models/{domain}/export';
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
/* 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 { BodyImportModels } from '../../models/body-import-models';
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface ImportModels$Params {
|
|
||||||
domain: Domain;
|
|
||||||
sha256: string;
|
|
||||||
body: BodyImportModels
|
|
||||||
}
|
|
||||||
|
|
||||||
export function importModels(http: HttpClient, rootUrl: string, params: ImportModels$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
|
||||||
}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, importModels.PATH, 'post');
|
|
||||||
if (params) {
|
|
||||||
rb.path('domain', params.domain, {});
|
|
||||||
rb.query('sha256', params.sha256, {});
|
|
||||||
rb.body(params.body, 'multipart/form-data');
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
|
||||||
}>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
importModels.PATH = '/models/{domain}/import';
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
/* 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 { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface Lineage$Params {
|
|
||||||
domain: Domain;
|
|
||||||
name: string;
|
|
||||||
version: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function lineage(http: HttpClient, rootUrl: string, params: Lineage$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, lineage.PATH, 'get');
|
|
||||||
if (params) {
|
|
||||||
rb.path('domain', params.domain, {});
|
|
||||||
rb.path('name', params.name, {});
|
|
||||||
rb.path('version', params.version, {});
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
lineage.PATH = '/models/{domain}/{name}/versions/{version}/lineage';
|
|
||||||
@@ -8,13 +8,12 @@ import { StrictHttpResponse } from '../../strict-http-response';
|
|||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Domain } from '../../models/domain';
|
import { Domain } from '../../models/domain';
|
||||||
import { Model } from '../../models/model';
|
|
||||||
|
|
||||||
export interface Models$Params {
|
export interface Models$Params {
|
||||||
domain: Domain;
|
domain: Domain;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function models(http: HttpClient, rootUrl: string, params: Models$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<Model>>> {
|
export function models(http: HttpClient, rootUrl: string, params: Models$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<string>>> {
|
||||||
const rb = new RequestBuilder(rootUrl, models.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, models.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('domain', params.domain, {});
|
rb.path('domain', params.domain, {});
|
||||||
@@ -25,7 +24,7 @@ export function models(http: HttpClient, rootUrl: string, params: Models$Params,
|
|||||||
).pipe(
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Array<Model>>;
|
return r as StrictHttpResponse<Array<string>>;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
/* 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 { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface Retire$Params {
|
|
||||||
domain: Domain;
|
|
||||||
name: string;
|
|
||||||
version: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function retire(http: HttpClient, rootUrl: string, params: Retire$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
|
||||||
}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, retire.PATH, 'post');
|
|
||||||
if (params) {
|
|
||||||
rb.path('domain', params.domain, {});
|
|
||||||
rb.path('name', params.name, {});
|
|
||||||
rb.path('version', params.version, {});
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
|
||||||
}>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
retire.PATH = '/models/{domain}/{name}/versions/{version}/retire';
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
/* 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 { Domain } from '../../models/domain';
|
|
||||||
import { TrainingConfig } from '../../models/training-config';
|
|
||||||
|
|
||||||
export interface TrainingConfig$Params {
|
|
||||||
domain: Domain;
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function trainingConfig(http: HttpClient, rootUrl: string, params: TrainingConfig$Params, context?: HttpContext): Observable<StrictHttpResponse<TrainingConfig>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, trainingConfig.PATH, 'get');
|
|
||||||
if (params) {
|
|
||||||
rb.path('domain', params.domain, {});
|
|
||||||
rb.path('name', params.name, {});
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<TrainingConfig>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
trainingConfig.PATH = '/models/{domain}/{name}/training-config';
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
/* 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 { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface TrainingInputs$Params {
|
|
||||||
domain: Domain;
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function trainingInputs(http: HttpClient, rootUrl: string, params: TrainingInputs$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, trainingInputs.PATH, 'get');
|
|
||||||
if (params) {
|
|
||||||
rb.path('domain', params.domain, {});
|
|
||||||
rb.path('name', params.name, {});
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
trainingInputs.PATH = '/models/{domain}/{name}/inputs';
|
|
||||||
@@ -1,43 +0,0 @@
|
|||||||
/* 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 { BodyUploadTrainingInputs } from '../../models/body-upload-training-inputs';
|
|
||||||
import { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface UploadTrainingInputs$Params {
|
|
||||||
domain: Domain;
|
|
||||||
name: string;
|
|
||||||
set: string;
|
|
||||||
body: BodyUploadTrainingInputs
|
|
||||||
}
|
|
||||||
|
|
||||||
export function uploadTrainingInputs(http: HttpClient, rootUrl: string, params: UploadTrainingInputs$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, uploadTrainingInputs.PATH, 'post');
|
|
||||||
if (params) {
|
|
||||||
rb.path('domain', params.domain, {});
|
|
||||||
rb.path('name', params.name, {});
|
|
||||||
rb.path('set', params.set, {});
|
|
||||||
rb.body(params.body, 'multipart/form-data');
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
uploadTrainingInputs.PATH = '/models/{domain}/{name}/inputs/{set}/files';
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
/* 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 { Domain } from '../../models/domain';
|
|
||||||
|
|
||||||
export interface VersionChecks$Params {
|
|
||||||
domain: Domain;
|
|
||||||
name: string;
|
|
||||||
version: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function versionChecks(http: HttpClient, rootUrl: string, params: VersionChecks$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, versionChecks.PATH, 'get');
|
|
||||||
if (params) {
|
|
||||||
rb.path('domain', params.domain, {});
|
|
||||||
rb.path('name', params.name, {});
|
|
||||||
rb.path('version', params.version, {});
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
versionChecks.PATH = '/models/{domain}/{name}/versions/{version}/checks';
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
/* 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 { PreviewStatus } from '../../models/preview-status';
|
|
||||||
|
|
||||||
export interface PreviewStatus$Params {
|
|
||||||
run_id: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function previewStatus(http: HttpClient, rootUrl: string, params: PreviewStatus$Params, context?: HttpContext): Observable<StrictHttpResponse<PreviewStatus>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, previewStatus.PATH, 'get');
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<PreviewStatus>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
previewStatus.PATH = '/tea/preview/{run_id}';
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
/* 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 { BodyStartPreview } from '../../models/body-start-preview';
|
|
||||||
|
|
||||||
export interface StartPreview$Params {
|
|
||||||
body: BodyStartPreview
|
|
||||||
}
|
|
||||||
|
|
||||||
export function startPreview(http: HttpClient, rootUrl: string, params: StartPreview$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
|
||||||
}>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, startPreview.PATH, 'post');
|
|
||||||
if (params) {
|
|
||||||
rb.body(params.body, 'multipart/form-data');
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<{
|
|
||||||
[key: string]: string;
|
|
||||||
}>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
startPreview.PATH = '/tea/preview';
|
|
||||||
@@ -9,7 +9,7 @@ import { RequestBuilder } from '../../request-builder';
|
|||||||
|
|
||||||
|
|
||||||
export interface Conflicts$Params {
|
export interface Conflicts$Params {
|
||||||
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||||
}
|
}
|
||||||
|
|
||||||
export function conflicts(http: HttpClient, rootUrl: string, params: Conflicts$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
export function conflicts(http: HttpClient, rootUrl: string, params: Conflicts$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { RequestBuilder } from '../../request-builder';
|
|||||||
|
|
||||||
|
|
||||||
export interface Held$Params {
|
export interface Held$Params {
|
||||||
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||||
}
|
}
|
||||||
|
|
||||||
export function held(http: HttpClient, rootUrl: string, params: Held$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
export function held(http: HttpClient, rootUrl: string, params: Held$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
/* 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 Unrecognised$Params {
|
|
||||||
pipeline: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function unrecognised(http: HttpClient, rootUrl: string, params: Unrecognised$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<Array<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
unrecognised.PATH = '/review/unrecognised';
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
/* 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 { Cancel } from '../../models/cancel';
|
|
||||||
|
|
||||||
export interface CancelRun$Params {
|
|
||||||
run_id: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function cancelRun(http: HttpClient, rootUrl: string, params: CancelRun$Params, context?: HttpContext): Observable<StrictHttpResponse<Cancel>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, cancelRun.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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<Cancel>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
cancelRun.PATH = '/runs/{run_id}/cancel';
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
/* 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 { Domain } from '../../models/domain';
|
|
||||||
import { RunSummary } from '../../models/run-summary';
|
|
||||||
|
|
||||||
export interface RunHistory$Params {
|
|
||||||
job?: (string | null);
|
|
||||||
domain?: (Domain | null);
|
|
||||||
limit?: number;
|
|
||||||
before?: (string | null);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function runHistory(http: HttpClient, rootUrl: string, params?: RunHistory$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<RunSummary>>> {
|
|
||||||
const rb = new RequestBuilder(rootUrl, runHistory.PATH, 'get');
|
|
||||||
if (params) {
|
|
||||||
rb.query('job', params.job, {});
|
|
||||||
rb.query('domain', params.domain, {});
|
|
||||||
rb.query('limit', params.limit, {});
|
|
||||||
rb.query('before', params.before, {});
|
|
||||||
}
|
|
||||||
|
|
||||||
return http.request(
|
|
||||||
rb.build({ responseType: 'json', accept: 'application/json', context })
|
|
||||||
).pipe(
|
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<Array<RunSummary>>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
runHistory.PATH = '/runs';
|
|
||||||
@@ -7,18 +7,17 @@ import { filter, map } from 'rxjs/operators';
|
|||||||
import { StrictHttpResponse } from '../../strict-http-response';
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
import { RequestBuilder } from '../../request-builder';
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
import { Run } from '../../models/run';
|
|
||||||
|
|
||||||
export interface RunStatus$Params {
|
export interface RunStatus$Params {
|
||||||
run_id: string;
|
run_id: string;
|
||||||
outputs?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function runStatus(http: HttpClient, rootUrl: string, params: RunStatus$Params, context?: HttpContext): Observable<StrictHttpResponse<Run>> {
|
export function runStatus(http: HttpClient, rootUrl: string, params: RunStatus$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>> {
|
||||||
const rb = new RequestBuilder(rootUrl, runStatus.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, runStatus.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('run_id', params.run_id, {});
|
rb.path('run_id', params.run_id, {});
|
||||||
rb.query('outputs', params.outputs, {});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return http.request(
|
return http.request(
|
||||||
@@ -26,7 +25,9 @@ export function runStatus(http: HttpClient, rootUrl: string, params: RunStatus$P
|
|||||||
).pipe(
|
).pipe(
|
||||||
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
map((r: HttpResponse<any>) => {
|
map((r: HttpResponse<any>) => {
|
||||||
return r as StrictHttpResponse<Run>;
|
return r as StrictHttpResponse<{
|
||||||
|
[key: string]: string;
|
||||||
|
}>;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
/* 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<StrictHttpResponse<UserRead>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<UserRead>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
registerRegister.PATH = '/users/register';
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
/* 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<StrictHttpResponse<UserRead>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<UserRead>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
usersCurrentUser.PATH = '/users/me';
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
/* 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<StrictHttpResponse<void>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return (r as HttpResponse<any>).clone({ body: undefined }) as StrictHttpResponse<void>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
usersDeleteUser.PATH = '/users/{id}';
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
/* 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<StrictHttpResponse<UserRead>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<UserRead>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
usersPatchCurrentUser.PATH = '/users/me';
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
/* 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<StrictHttpResponse<UserRead>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<UserRead>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
usersPatchUser.PATH = '/users/{id}';
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
/* 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<StrictHttpResponse<UserRead>> {
|
|
||||||
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<any> => r instanceof HttpResponse),
|
|
||||||
map((r: HttpResponse<any>) => {
|
|
||||||
return r as StrictHttpResponse<UserRead>;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
usersUser.PATH = '/users/{id}';
|
|
||||||
@@ -1,18 +1,10 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
/* 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 type { Domains$Params as Domains$Params } from './fn/operations/domains';
|
||||||
export { domains as domains } from './fn/operations/domains';
|
export { domains as domains } from './fn/operations/domains';
|
||||||
export type { Health$Params as Health$Params } from './fn/operations/health';
|
export type { Health$Params as Health$Params } from './fn/operations/health';
|
||||||
export { health as health } 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 type { ConceptMaps$Params as ConceptMaps$Params } from './fn/ingest/concept-maps';
|
||||||
export { conceptMaps as conceptMaps } 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';
|
export type { GetConceptMap$Params as GetConceptMap$Params } from './fn/ingest/get-concept-map';
|
||||||
@@ -31,46 +23,22 @@ export type { StartRun$Params as StartRun$Params } from './fn/ingest/start-run';
|
|||||||
export { startRun as startRun } 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 type { Schema$Params as Schema$Params } from './fn/ingest/schema';
|
||||||
export { schema as schema } 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 type { SourcePreview$Params as SourcePreview$Params } from './fn/ingest/source-preview';
|
||||||
export { sourcePreview as sourcePreview } 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 type { SourceResources$Params as SourceResources$Params } from './fn/ingest/source-resources';
|
||||||
export { sourceResources as sourceResources } 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 type { Upload$Params as Upload$Params } from './fn/ingest/upload';
|
||||||
export { upload as upload } from './fn/ingest/upload';
|
export { upload as upload } from './fn/ingest/upload';
|
||||||
export type { Models$Params as Models$Params } from './fn/models/models';
|
export type { Models$Params as Models$Params } from './fn/models/models';
|
||||||
export { models as models } from './fn/models/models';
|
export { models as models } from './fn/models/models';
|
||||||
export type { Analyze$Params as Analyze$Params } from './fn/models/analyze';
|
export type { Analyze$Params as Analyze$Params } from './fn/models/analyze';
|
||||||
export { analyze as analyze } 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 type { Score$Params as Score$Params } from './fn/models/score';
|
||||||
export { score as score } from './fn/models/score';
|
export { score as score } from './fn/models/score';
|
||||||
export type { Train$Params as Train$Params } from './fn/models/train';
|
export type { Train$Params as Train$Params } from './fn/models/train';
|
||||||
export { train as train } 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 type { Versions$Params as Versions$Params } from './fn/models/versions';
|
||||||
export { versions as versions } 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 type { Promote$Params as Promote$Params } from './fn/models/promote';
|
||||||
export { promote as promote } 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';
|
export type { AddClinicalValidation$Params as AddClinicalValidation$Params } from './fn/models/add-clinical-validation';
|
||||||
@@ -79,8 +47,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 { 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 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 { 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 type { Conflicts$Params as Conflicts$Params } from './fn/review/conflicts';
|
||||||
export { conflicts as conflicts } from './fn/review/conflicts';
|
export { conflicts as conflicts } from './fn/review/conflicts';
|
||||||
export type { Correct$Params as Correct$Params } from './fn/review/correct';
|
export type { Correct$Params as Correct$Params } from './fn/review/correct';
|
||||||
@@ -93,38 +59,12 @@ export type { DecidePersons$Params as DecidePersons$Params } from './fn/review/d
|
|||||||
export { decidePersons as decidePersons } from './fn/review/decide-persons';
|
export { decidePersons as decidePersons } from './fn/review/decide-persons';
|
||||||
export type { Reject$Params as Reject$Params } from './fn/review/reject';
|
export type { Reject$Params as Reject$Params } from './fn/review/reject';
|
||||||
export { reject as reject } from './fn/review/reject';
|
export { reject as reject } from './fn/review/reject';
|
||||||
export type { Unrecognised$Params as Unrecognised$Params } from './fn/review/unrecognised';
|
|
||||||
export { unrecognised as unrecognised } from './fn/review/unrecognised';
|
|
||||||
export type { RunHistory$Params as RunHistory$Params } from './fn/runs/run-history';
|
|
||||||
export { runHistory as runHistory } from './fn/runs/run-history';
|
|
||||||
export type { RunStatus$Params as RunStatus$Params } from './fn/runs/run-status';
|
export type { RunStatus$Params as RunStatus$Params } from './fn/runs/run-status';
|
||||||
export { runStatus as runStatus } 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 { Studies$Params as Studies$Params } from './fn/eeg/studies';
|
export type { Studies$Params as Studies$Params } from './fn/eeg/studies';
|
||||||
export { studies as studies } 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 type { Study$Params as Study$Params } from './fn/eeg/study';
|
||||||
export { study as study } 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 type { PostBundle$Params as PostBundle$Params } from './fn/fhir/post-bundle';
|
||||||
export { postBundle as postBundle } 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';
|
export type { SearchCondition$Params as SearchCondition$Params } from './fn/fhir/search-condition';
|
||||||
@@ -143,8 +83,6 @@ export type { SearchObservation$Params as SearchObservation$Params } from './fn/
|
|||||||
export { searchObservation as searchObservation } from './fn/fhir/search-observation';
|
export { searchObservation as searchObservation } from './fn/fhir/search-observation';
|
||||||
export type { SearchPatient$Params as SearchPatient$Params } from './fn/fhir/search-patient';
|
export type { SearchPatient$Params as SearchPatient$Params } from './fn/fhir/search-patient';
|
||||||
export { searchPatient as searchPatient } 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 type { ReadPatient$Params as ReadPatient$Params } from './fn/fhir/read-patient';
|
||||||
export { readPatient as readPatient } 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';
|
export type { SearchProcedure$Params as SearchProcedure$Params } from './fn/fhir/search-procedure';
|
||||||
|
|||||||
@@ -2,76 +2,30 @@
|
|||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export type { Analysis } from './models/analysis';
|
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 { 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 { BodyUpload } from './models/body-upload';
|
||||||
export type { BodyUploadTrainingInputs } from './models/body-upload-training-inputs';
|
|
||||||
export type { Browsed } from './models/browsed';
|
|
||||||
export type { Cancel } from './models/cancel';
|
|
||||||
export type { Catalog } from './models/catalog';
|
|
||||||
export type { Condition } from './models/condition';
|
export type { Condition } from './models/condition';
|
||||||
export type { Correction } from './models/correction';
|
export type { Correction } from './models/correction';
|
||||||
export type { Domain } from './models/domain';
|
export type { Domain } from './models/domain';
|
||||||
export type { Edf } from './models/edf';
|
|
||||||
export type { Entry } from './models/entry';
|
|
||||||
export type { ErrorModel } from './models/error-model';
|
|
||||||
export type { Execution } from './models/execution';
|
|
||||||
export type { Extract } from './models/extract';
|
export type { Extract } from './models/extract';
|
||||||
export type { Fhir } from './models/fhir';
|
export type { Fhir } from './models/fhir';
|
||||||
export type { FieldSpec } from './models/field-spec';
|
|
||||||
export type { Group } from './models/group';
|
|
||||||
export type { Guided } from './models/guided';
|
|
||||||
export type { Health } from './models/health';
|
|
||||||
export type { HttpValidationError } from './models/http-validation-error';
|
export type { HttpValidationError } from './models/http-validation-error';
|
||||||
export type { Join } from './models/join';
|
export type { Join } from './models/join';
|
||||||
export type { Link } from './models/link';
|
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 { Map } from './models/map';
|
||||||
export type { Metric } from './models/metric';
|
export type { Metric } from './models/metric';
|
||||||
export type { Model } from './models/model';
|
|
||||||
export type { Option } from './models/option';
|
|
||||||
export type { Options } from './models/options';
|
|
||||||
export type { PersonDecision } from './models/person-decision';
|
export type { PersonDecision } from './models/person-decision';
|
||||||
export type { Pipeline } from './models/pipeline';
|
export type { Pipeline } from './models/pipeline';
|
||||||
export type { Position } from './models/position';
|
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 { Read } from './models/read';
|
||||||
export type { Rejection } from './models/rejection';
|
export type { Rejection } from './models/rejection';
|
||||||
export type { Route } from './models/route';
|
export type { Route } from './models/route';
|
||||||
export type { Run } from './models/run';
|
|
||||||
export type { RunRequest } from './models/run-request';
|
export type { RunRequest } from './models/run-request';
|
||||||
export type { RunSummary } from './models/run-summary';
|
|
||||||
export type { SavedPipeline } from './models/saved-pipeline';
|
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 { Source } from './models/source';
|
||||||
export type { SourceRef } from './models/source-ref';
|
export type { SourceRef } from './models/source-ref';
|
||||||
export type { SourceType } from './models/source-type';
|
|
||||||
export type { Step } from './models/step';
|
|
||||||
export type { Study } from './models/study';
|
export type { Study } from './models/study';
|
||||||
export type { Target } from './models/target';
|
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 { 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';
|
|
||||||
export type { UserUpdate } from './models/user-update';
|
|
||||||
export type { ValidationError } from './models/validation-error';
|
export type { ValidationError } from './models/validation-error';
|
||||||
export type { Version } from './models/version';
|
export type { Version } from './models/version';
|
||||||
export type { Worker } from './models/worker';
|
|
||||||
|
|||||||
@@ -4,14 +4,8 @@
|
|||||||
import { Metric } from '../models/metric';
|
import { Metric } from '../models/metric';
|
||||||
export interface Analysis {
|
export interface Analysis {
|
||||||
age_months: (number | null);
|
age_months: (number | null);
|
||||||
checks: Array<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>;
|
|
||||||
id: string;
|
id: string;
|
||||||
level: (string | null);
|
level: (string | null);
|
||||||
metrics: Array<Metric>;
|
metrics: Array<Metric>;
|
||||||
regions: Array<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>;
|
|
||||||
valid: (boolean | null);
|
valid: (boolean | null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { Execution } from '../models/execution';
|
|
||||||
import { Scope } from '../models/scope';
|
|
||||||
export interface AnalyzeRequest {
|
|
||||||
execution?: (Execution | null);
|
|
||||||
scope?: Scope;
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { Execution } from '../models/execution';
|
|
||||||
export interface Analyze {
|
|
||||||
execution?: (Execution | null);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
/* 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;
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface BodyImportModels {
|
|
||||||
file: string;
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface BodyStartPreview {
|
|
||||||
ados2?: (Blob | null);
|
|
||||||
birth_date?: (string | null);
|
|
||||||
edf: Blob;
|
|
||||||
pipeline?: string;
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface BodyUploadTrainingInputs {
|
|
||||||
files: Array<Blob>;
|
|
||||||
}
|
|
||||||
@@ -2,6 +2,5 @@
|
|||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export interface BodyUpload {
|
export interface BodyUpload {
|
||||||
files: Array<string>;
|
file: string;
|
||||||
folder?: (string | null);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { Entry } from '../models/entry';
|
|
||||||
export interface Browsed {
|
|
||||||
entries: Array<Entry>;
|
|
||||||
parent: (string | null);
|
|
||||||
path: (string | null);
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface Cancel {
|
|
||||||
id: string;
|
|
||||||
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
|
|
||||||
status: string;
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
/* 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<Option>;
|
|
||||||
groups: {
|
|
||||||
[key: string]: Group;
|
|
||||||
};
|
|
||||||
providers: {
|
|
||||||
[key: string]: Provider;
|
|
||||||
};
|
|
||||||
types: {
|
|
||||||
[key: string]: SourceType;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -2,15 +2,7 @@
|
|||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export interface Condition {
|
export interface Condition {
|
||||||
|
|
||||||
/**
|
|
||||||
* Por ejemplo «text», el texto leído del documento.
|
|
||||||
*/
|
|
||||||
column: string;
|
column: string;
|
||||||
op: 'equals' | 'contains' | 'matches' | 'present';
|
op: 'equals' | 'contains' | 'matches' | 'present';
|
||||||
|
|
||||||
/**
|
|
||||||
* Lo que se busca; por ejemplo «citología».
|
|
||||||
*/
|
|
||||||
value?: string;
|
value?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* field (a mistyped record number) or a study's (a stage the scan made unreadable).
|
* field (a mistyped record number) or a study's (a stage the scan made unreadable).
|
||||||
*/
|
*/
|
||||||
export interface Correction {
|
export interface Correction {
|
||||||
entity?: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
entity?: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||||
field: string;
|
field: string;
|
||||||
record: string;
|
record: string;
|
||||||
value: string;
|
value: string;
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { Position } from '../models/position';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* EDF files (a column of file hashes) to the facts their header holds: patient code, sex,
|
|
||||||
* birth date, recording date, record code, duration and channel count, as `edf_*` columns.
|
|
||||||
* An unreadable file keeps its row with `edf_error` set.
|
|
||||||
*
|
|
||||||
* Use a filesystem source (`dlt.sources.filesystem:filesystem`) with the uploads folder as
|
|
||||||
* `bucket_url`, `file_glob: "*.edf"`, and `then: "persistance.readers:read_bytes"`. Read its
|
|
||||||
* `content` column with this node. Map `edf_patient_code`, `edf_birth_date`, and `edf_sex` to
|
|
||||||
* identity's `record_number`, `birth_date`, and `sex`, using the site's formats and ConceptMap.
|
|
||||||
*
|
|
||||||
* The patient code must match the hospital's record number including its prefix. Feed the
|
|
||||||
* identity map into the pipeline's link node alongside the hospital identity source. Map
|
|
||||||
* `edf_study_date` to `study_date` (format `%Y-%m-%d`), `edf_record_code` to `lab_record_id`,
|
|
||||||
* and `content` to `edf`, then feed that map and the link into a target with entity `eeg`.
|
|
||||||
*/
|
|
||||||
export interface Edf {
|
|
||||||
column: string;
|
|
||||||
id: string;
|
|
||||||
inputs?: Array<string>;
|
|
||||||
kind?: 'edf';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Cómo se ve en el diagrama.
|
|
||||||
*/
|
|
||||||
label?: string;
|
|
||||||
position?: (Position | null);
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface Entry {
|
|
||||||
kind: 'folder' | 'file';
|
|
||||||
name: string;
|
|
||||||
path: string;
|
|
||||||
size?: (number | null);
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface ErrorModel {
|
|
||||||
detail: (string | {
|
|
||||||
[key: string]: string;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* What a request or a job config carries: None means the deployment's default.
|
|
||||||
*/
|
|
||||||
export interface Execution {
|
|
||||||
mode?: ('sync' | 'local' | 'remote' | null);
|
|
||||||
scheduler?: (string | null);
|
|
||||||
}
|
|
||||||
@@ -13,40 +13,17 @@ import { Position } from '../models/position';
|
|||||||
*/
|
*/
|
||||||
export interface Extract {
|
export interface Extract {
|
||||||
column: (string | Array<string>);
|
column: (string | Array<string>);
|
||||||
|
|
||||||
/**
|
|
||||||
* Dato → columna, sin leer el texto.
|
|
||||||
*/
|
|
||||||
columns?: {
|
|
||||||
[key: string]: string;
|
|
||||||
};
|
|
||||||
concept_map?: (string | null);
|
concept_map?: (string | null);
|
||||||
|
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||||
/**
|
|
||||||
* Qué estudio se saca del documento.
|
|
||||||
*/
|
|
||||||
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
|
||||||
formats?: {
|
formats?: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Para el modelo de lenguaje.
|
|
||||||
*/
|
|
||||||
hints?: string;
|
hints?: string;
|
||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'extract';
|
kind?: 'extract';
|
||||||
|
|
||||||
/**
|
|
||||||
* Cómo se ve en el diagrama.
|
|
||||||
*/
|
|
||||||
label?: string;
|
label?: string;
|
||||||
method?: 'auto' | 'llm' | 'patterns';
|
method?: 'auto' | 'llm' | 'patterns';
|
||||||
|
|
||||||
/**
|
|
||||||
* Dato → expresión con un grupo ( ).
|
|
||||||
*/
|
|
||||||
patterns?: {
|
patterns?: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -11,14 +11,10 @@ import { Position } from '../models/position';
|
|||||||
export interface Fhir {
|
export interface Fhir {
|
||||||
column?: string;
|
column?: string;
|
||||||
concept_map?: (string | null);
|
concept_map?: (string | null);
|
||||||
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'fhir';
|
kind?: 'fhir';
|
||||||
|
|
||||||
/**
|
|
||||||
* Cómo se ve en el diagrama.
|
|
||||||
*/
|
|
||||||
label?: string;
|
label?: string;
|
||||||
position?: (Position | null);
|
position?: (Position | null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { Option } from '../models/option';
|
|
||||||
export interface FieldSpec {
|
|
||||||
advanced?: boolean;
|
|
||||||
default?: any;
|
|
||||||
help?: string;
|
|
||||||
label: string;
|
|
||||||
options?: Array<Option>;
|
|
||||||
placeholder?: string;
|
|
||||||
provider?: (string | null);
|
|
||||||
required?: boolean;
|
|
||||||
type?: 'text' | 'number' | 'password' | 'select' | 'folder' | 'server_file' | 'upload' | 'url' | 'oauth' | 'table' | 'format' | 'columns';
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface Group {
|
|
||||||
description: string;
|
|
||||||
title: string;
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* How the Conectar dialog drew a source: its type (core.sources) and the answers given.
|
|
||||||
* The node's dlt fields are made from them; drawn by hand ("Avanzado"), a node has none.
|
|
||||||
*/
|
|
||||||
export interface Guided {
|
|
||||||
answers?: {
|
|
||||||
[key: string]: any;
|
|
||||||
};
|
|
||||||
type: string;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface Health {
|
|
||||||
dashboard_ok?: (boolean | null);
|
|
||||||
dashboard_url?: (string | null);
|
|
||||||
error?: (string | null);
|
|
||||||
expected_workers?: (number | null);
|
|
||||||
latency_ms?: (number | null);
|
|
||||||
mode: 'sync' | 'local' | 'remote';
|
|
||||||
reachable: boolean;
|
|
||||||
reference?: ({
|
|
||||||
[key: string]: any;
|
|
||||||
} | null);
|
|
||||||
scheduler: (string | null);
|
|
||||||
threads?: (number | null);
|
|
||||||
version_error?: (string | null);
|
|
||||||
versions_ok?: (boolean | null);
|
|
||||||
workers?: (number | null);
|
|
||||||
}
|
|
||||||
@@ -11,15 +11,7 @@ export interface Join {
|
|||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'join';
|
kind?: 'join';
|
||||||
|
|
||||||
/**
|
|
||||||
* Cómo se ve en el diagrama.
|
|
||||||
*/
|
|
||||||
label?: string;
|
label?: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* Columna de la primera entrada = columna de la segunda.
|
|
||||||
*/
|
|
||||||
on: Array<[string, string]>;
|
on: Array<[string, string]>;
|
||||||
position?: (Position | null);
|
position?: (Position | null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,20 +16,8 @@ export interface Link {
|
|||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'link';
|
kind?: 'link';
|
||||||
|
|
||||||
/**
|
|
||||||
* Cómo se ve en el diagrama.
|
|
||||||
*/
|
|
||||||
label?: string;
|
label?: string;
|
||||||
position?: (Position | null);
|
position?: (Position | null);
|
||||||
|
|
||||||
/**
|
|
||||||
* Parecidos por encima de esto los ve un revisor.
|
|
||||||
*/
|
|
||||||
review?: number;
|
review?: number;
|
||||||
|
|
||||||
/**
|
|
||||||
* Vacío: las de siempre (mismo identificador, o misma fecha de nacimiento y nombre).
|
|
||||||
*/
|
|
||||||
rules?: Array<string>;
|
rules?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* What "Probar conexión" shows: a database's tables (the resources of `source`, built
|
|
||||||
* from `args`), or the first rows the type's own node reads (files, records).
|
|
||||||
*/
|
|
||||||
export interface Listing {
|
|
||||||
args?: {
|
|
||||||
[key: string]: any;
|
|
||||||
};
|
|
||||||
kind: 'tables' | 'rows';
|
|
||||||
source?: (string | null);
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface Login {
|
|
||||||
client_id?: (string | null);
|
|
||||||
client_secret?: (string | null);
|
|
||||||
grant_type?: (string | null);
|
|
||||||
password: string;
|
|
||||||
scope?: string;
|
|
||||||
username: string;
|
|
||||||
}
|
|
||||||
@@ -8,38 +8,18 @@ import { Position } from '../models/position';
|
|||||||
* (core.concept_map), and its date formats.
|
* (core.concept_map), and its date formats.
|
||||||
*/
|
*/
|
||||||
export interface Map {
|
export interface Map {
|
||||||
|
|
||||||
/**
|
|
||||||
* La tabla de códigos del sitio.
|
|
||||||
*/
|
|
||||||
concept_map?: (string | null);
|
concept_map?: (string | null);
|
||||||
|
|
||||||
/**
|
|
||||||
* Dato de la plataforma → columna del sitio.
|
|
||||||
*/
|
|
||||||
fields: {
|
fields: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Por ejemplo %d/%m/%Y.
|
|
||||||
*/
|
|
||||||
formats?: {
|
formats?: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'map';
|
kind?: 'map';
|
||||||
|
|
||||||
/**
|
|
||||||
* Cómo se ve en el diagrama.
|
|
||||||
*/
|
|
||||||
label?: string;
|
label?: string;
|
||||||
position?: (Position | null);
|
position?: (Position | null);
|
||||||
|
|
||||||
/**
|
|
||||||
* Un dato igual para todas las filas.
|
|
||||||
*/
|
|
||||||
values?: {
|
values?: {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface Model {
|
|
||||||
name: string;
|
|
||||||
title: string;
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface Option {
|
|
||||||
label: string;
|
|
||||||
value: any;
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface Options {
|
|
||||||
default_mode: 'sync' | 'local' | 'remote';
|
|
||||||
schedulers: Array<string>;
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Edf } from '../models/edf';
|
|
||||||
import { Extract } from '../models/extract';
|
import { Extract } from '../models/extract';
|
||||||
import { Fhir } from '../models/fhir';
|
import { Fhir } from '../models/fhir';
|
||||||
import { Join } from '../models/join';
|
import { Join } from '../models/join';
|
||||||
@@ -12,5 +11,5 @@ import { Route } from '../models/route';
|
|||||||
import { Source } from '../models/source';
|
import { Source } from '../models/source';
|
||||||
import { Target } from '../models/target';
|
import { Target } from '../models/target';
|
||||||
export interface Pipeline {
|
export interface Pipeline {
|
||||||
nodes: Array<(Source | Read | Route | Map | Extract | Edf | Fhir | Join | Link | Target)>;
|
nodes: Array<(Source | Read | Route | Map | Extract | Fhir | Join | Link | Target)>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface PreviewAdos2 {
|
|
||||||
classification: (string | null);
|
|
||||||
css: (number | null);
|
|
||||||
evaluation_date: (string | null);
|
|
||||||
items: {
|
|
||||||
[key: string]: (number | null);
|
|
||||||
};
|
|
||||||
module: (string | null);
|
|
||||||
read: Array<string>;
|
|
||||||
titles: {
|
|
||||||
[key: string]: string;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { PreviewMetric } from '../models/preview-metric';
|
|
||||||
export interface PreviewEeg {
|
|
||||||
age_months: (number | null);
|
|
||||||
bad_channels: (number | null);
|
|
||||||
channels: (number | null);
|
|
||||||
checks: Array<{
|
|
||||||
[key: string]: any;
|
|
||||||
}>;
|
|
||||||
clean_fraction: (number | null);
|
|
||||||
duration_min: (number | null);
|
|
||||||
error: (string | null);
|
|
||||||
level: string;
|
|
||||||
line_noise_db: (number | null);
|
|
||||||
metrics: Array<PreviewMetric>;
|
|
||||||
recorded_on: (string | null);
|
|
||||||
sleep: (boolean | null);
|
|
||||||
valid: (boolean | null);
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { Score } from '../models/score';
|
|
||||||
import { Site } from '../models/site';
|
|
||||||
export interface PreviewMetric {
|
|
||||||
code: string;
|
|
||||||
electrodes: {
|
|
||||||
[key: string]: Site;
|
|
||||||
};
|
|
||||||
model: (string | null);
|
|
||||||
score: (Score | null);
|
|
||||||
value: (number | null);
|
|
||||||
zones: {
|
|
||||||
[key: string]: Site;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { PreviewAdos2 } from '../models/preview-ados-2';
|
|
||||||
import { PreviewEeg } from '../models/preview-eeg';
|
|
||||||
export interface PreviewResult {
|
|
||||||
ados2: (PreviewAdos2 | null);
|
|
||||||
eeg: PreviewEeg;
|
|
||||||
warnings: Array<string>;
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { PreviewResult } from '../models/preview-result';
|
|
||||||
export interface PreviewStatus {
|
|
||||||
result: (PreviewResult | null);
|
|
||||||
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { Tasks } from '../models/tasks';
|
|
||||||
import { Worker } from '../models/worker';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The run tag's JSON; the API returns it as it is.
|
|
||||||
*/
|
|
||||||
export interface Progress {
|
|
||||||
done: number;
|
|
||||||
elapsed_s: number;
|
|
||||||
eta_s: (number | null);
|
|
||||||
mode: 'sync' | 'local' | 'remote';
|
|
||||||
phase: string;
|
|
||||||
scheduler: (string | null);
|
|
||||||
tasks?: (Tasks | null);
|
|
||||||
total: number;
|
|
||||||
updated_at: string;
|
|
||||||
workers?: Array<Worker>;
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A sign-in button's OAuth 2.0 provider (authorization code flow).
|
|
||||||
*/
|
|
||||||
export interface Provider {
|
|
||||||
authorize_params?: {
|
|
||||||
[key: string]: string;
|
|
||||||
};
|
|
||||||
authorize_url: string;
|
|
||||||
env: string;
|
|
||||||
scope: string;
|
|
||||||
title: string;
|
|
||||||
token_url: string;
|
|
||||||
}
|
|
||||||
@@ -7,18 +7,10 @@ import { Position } from '../models/position';
|
|||||||
* Files in a column (PDF, Word, Excel, scans...) to text (MarkItDown, OCRmyPDF).
|
* Files in a column (PDF, Word, Excel, scans...) to text (MarkItDown, OCRmyPDF).
|
||||||
*/
|
*/
|
||||||
export interface Read {
|
export interface Read {
|
||||||
|
|
||||||
/**
|
|
||||||
* Donde la entrada trae cada documento.
|
|
||||||
*/
|
|
||||||
column: string;
|
column: string;
|
||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'read';
|
kind?: 'read';
|
||||||
|
|
||||||
/**
|
|
||||||
* Cómo se ve en el diagrama.
|
|
||||||
*/
|
|
||||||
label?: string;
|
label?: string;
|
||||||
position?: (Position | null);
|
position?: (Position | null);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
export interface Rejection {
|
export interface Rejection {
|
||||||
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'breast_recurrence' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
entity: 'identity' | 'cervical_cytology' | 'cervical_biopsy' | 'mammography' | 'breast_biopsy' | 'breast_treatment' | 'clinical_note' | 'death' | 'mchat' | 'ados2' | 'eeg';
|
||||||
reason: string;
|
reason: string;
|
||||||
record: string;
|
record: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,24 +5,13 @@ import { Condition } from '../models/condition';
|
|||||||
import { Position } from '../models/position';
|
import { Position } from '../models/position';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Only the rows where every condition holds (e.g. reports titled "Citología"). An
|
* Only the rows where every condition holds (e.g. reports titled "Citología").
|
||||||
* `otherwise` route takes the rows of its input that none of the other routes on that
|
|
||||||
* input take (documents nobody recognises, for a reviewer), then its own conditions.
|
|
||||||
*/
|
*/
|
||||||
export interface Route {
|
export interface Route {
|
||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'route';
|
kind?: 'route';
|
||||||
|
|
||||||
/**
|
|
||||||
* Cómo se ve en el diagrama.
|
|
||||||
*/
|
|
||||||
label?: string;
|
label?: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* Recoge lo que nadie reconoce, para revisarlo.
|
|
||||||
*/
|
|
||||||
otherwise?: boolean;
|
|
||||||
position?: (Position | null);
|
position?: (Position | null);
|
||||||
when?: Array<Condition>;
|
when: Array<Condition>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface RunSummary {
|
|
||||||
domain: (string | null);
|
|
||||||
ended: (number | null);
|
|
||||||
id: string;
|
|
||||||
job: string;
|
|
||||||
started: (number | null);
|
|
||||||
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
|
|
||||||
status: string;
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { Progress } from '../models/progress';
|
|
||||||
import { Step } from '../models/step';
|
|
||||||
export interface Run {
|
|
||||||
domain: (string | null);
|
|
||||||
ended: (number | null);
|
|
||||||
error: (string | null);
|
|
||||||
id: string;
|
|
||||||
info: Array<string>;
|
|
||||||
job: string;
|
|
||||||
outputs?: ({
|
|
||||||
[key: string]: any;
|
|
||||||
} | null);
|
|
||||||
progress: (Progress | null);
|
|
||||||
started: (number | null);
|
|
||||||
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
|
|
||||||
status: string;
|
|
||||||
steps: Array<Step>;
|
|
||||||
warnings: Array<string>;
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Which EEGs an analysis takes: the pending ones, the first `n` of them, or the named
|
|
||||||
* ones (re-analysis), each named by the `id` that `/tea/eegs` shows.
|
|
||||||
*/
|
|
||||||
export interface Scope {
|
|
||||||
ids?: Array<string>;
|
|
||||||
mode?: 'pending' | 'first_n' | 'ids';
|
|
||||||
n?: (number | null);
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface Score {
|
|
||||||
median: (number | null);
|
|
||||||
outside: (number | null);
|
|
||||||
p5: (number | null);
|
|
||||||
p95: (number | null);
|
|
||||||
z: (number | null);
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
export interface SignIn {
|
|
||||||
state: string;
|
|
||||||
url: string;
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { Score } from '../models/score';
|
|
||||||
export interface Site {
|
|
||||||
score: (Score | null);
|
|
||||||
value: (number | null);
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
|
||||||
|
|
||||||
import { FieldSpec } from '../models/field-spec';
|
|
||||||
import { Listing } from '../models/listing';
|
|
||||||
export interface SourceType {
|
|
||||||
args?: {
|
|
||||||
[key: string]: any;
|
|
||||||
};
|
|
||||||
description: string;
|
|
||||||
fields: {
|
|
||||||
[key: string]: FieldSpec;
|
|
||||||
};
|
|
||||||
group: string;
|
|
||||||
icon: string;
|
|
||||||
listing?: (Listing | null);
|
|
||||||
primary_key?: Array<string>;
|
|
||||||
resource?: (string | null);
|
|
||||||
source: string;
|
|
||||||
then?: (string | null);
|
|
||||||
title: string;
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
import { Guided } from '../models/guided';
|
|
||||||
import { Position } from '../models/position';
|
import { Position } from '../models/position';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -9,41 +8,16 @@ import { Position } from '../models/position';
|
|||||||
* own primary key or `primary_key`; replaced whole when it has none.
|
* own primary key or `primary_key`; replaced whole when it has none.
|
||||||
*/
|
*/
|
||||||
export interface Source {
|
export interface Source {
|
||||||
|
|
||||||
/**
|
|
||||||
* Los de la fuente dlt.
|
|
||||||
*/
|
|
||||||
args?: {
|
args?: {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
};
|
};
|
||||||
guided?: (Guided | null);
|
|
||||||
id: string;
|
id: string;
|
||||||
inputs?: Array<string>;
|
inputs?: Array<string>;
|
||||||
kind?: 'source';
|
kind?: 'source';
|
||||||
|
|
||||||
/**
|
|
||||||
* Cómo se ve en el diagrama.
|
|
||||||
*/
|
|
||||||
label?: string;
|
label?: string;
|
||||||
position?: (Position | null);
|
position?: (Position | null);
|
||||||
|
|
||||||
/**
|
|
||||||
* Columnas que identifican una fila.
|
|
||||||
*/
|
|
||||||
primary_key?: Array<string>;
|
primary_key?: Array<string>;
|
||||||
|
|
||||||
/**
|
|
||||||
* Cuál, si la fuente ofrece varios (una tabla).
|
|
||||||
*/
|
|
||||||
resource?: (string | null);
|
resource?: (string | null);
|
||||||
|
|
||||||
/**
|
|
||||||
* Módulo:función de la fuente dlt.
|
|
||||||
*/
|
|
||||||
source: string;
|
source: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* Transformador dlt para los archivos.
|
|
||||||
*/
|
|
||||||
then?: (string | null);
|
then?: (string | null);
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user