Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b3e5a69783 | |||
| 6732893bcc | |||
| 5ce225df5a | |||
| 8b1cbec66a | |||
| 43b5523f99 |
+1252
-5
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,36 @@
|
|||||||
|
/* 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';
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
/* 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';
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { 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';
|
||||||
@@ -7,10 +7,12 @@ 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<{
|
||||||
@@ -19,6 +21,7 @@ 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(
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
/* 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';
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
/* 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';
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { 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';
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
/* 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,17 +7,18 @@ 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<{
|
export function runStatus(http: HttpClient, rootUrl: string, params: RunStatus$Params, context?: HttpContext): Observable<StrictHttpResponse<Run>> {
|
||||||
[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(
|
||||||
@@ -25,9 +26,7 @@ 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<{
|
return r as StrictHttpResponse<Run>;
|
||||||
[key: string]: string;
|
|
||||||
}>;
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ 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';
|
||||||
@@ -33,6 +37,10 @@ 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';
|
||||||
@@ -59,10 +67,16 @@ 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 { 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 { 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 { PostBundle$Params as PostBundle$Params } from './fn/fhir/post-bundle';
|
export type { PostBundle$Params as PostBundle$Params } from './fn/fhir/post-bundle';
|
||||||
|
|||||||
@@ -2,30 +2,45 @@
|
|||||||
/* 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 { 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 { BodyUpload } from './models/body-upload';
|
export type { BodyUpload } from './models/body-upload';
|
||||||
|
export type { Cancel } from './models/cancel';
|
||||||
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 { 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 { 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 { Map } from './models/map';
|
export type { Map } from './models/map';
|
||||||
export type { Metric } from './models/metric';
|
export type { Metric } from './models/metric';
|
||||||
|
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 { Progress } from './models/progress';
|
||||||
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 { 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 { 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 { Training } from './models/training';
|
export type { Training } from './models/training';
|
||||||
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';
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
/* 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;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { Execution } from '../models/execution';
|
||||||
|
export interface Analyze {
|
||||||
|
execution?: (Execution | null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
export interface BodyImportModels {
|
||||||
|
file: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/* 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;
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
/* 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';
|
||||||
|
label?: string;
|
||||||
|
position?: (Position | null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
/* 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);
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
/* 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);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
export interface Options {
|
||||||
|
default_mode: 'sync' | 'local' | 'remote';
|
||||||
|
schedulers: Array<string>;
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
/* 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';
|
||||||
@@ -11,5 +12,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 | Fhir | Join | Link | Target)>;
|
nodes: Array<(Source | Read | Route | Map | Extract | Edf | Fhir | Join | Link | Target)>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
/* 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>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
/* 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;
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
/* 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>;
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
/* 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);
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
export interface Step {
|
||||||
|
ended: (number | null);
|
||||||
|
key: string;
|
||||||
|
started: (number | null);
|
||||||
|
status: string;
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
export interface Tasks {
|
||||||
|
erred?: number;
|
||||||
|
memory?: number;
|
||||||
|
processing?: number;
|
||||||
|
queued?: number;
|
||||||
|
waiting?: number;
|
||||||
|
}
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { Execution } from '../models/execution';
|
||||||
export interface Training {
|
export interface Training {
|
||||||
as_of?: (string | null);
|
as_of?: (string | null);
|
||||||
|
execution?: (Execution | null);
|
||||||
models?: Array<string>;
|
models?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
export interface Worker {
|
||||||
|
cpu_pct: number;
|
||||||
|
executing: number;
|
||||||
|
memory_bytes: number;
|
||||||
|
memory_limit: (number | null);
|
||||||
|
name: string;
|
||||||
|
threads: number;
|
||||||
|
}
|
||||||
@@ -47,7 +47,9 @@ function canvasNode(id: string, point: { x: number; y: number }, label: string):
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export const KINDS: Record<Kind, string> = {
|
/** The kinds the palette offers. A kind the canvas has no form for yet (`edf`, Phase 5) is left
|
||||||
|
* out of the palette and shown by its raw name when a saved pipeline has one. */
|
||||||
|
export const KINDS: Partial<Record<Kind, string>> = {
|
||||||
source: 'Fuente',
|
source: 'Fuente',
|
||||||
read: 'Leer',
|
read: 'Leer',
|
||||||
route: 'Filtrar',
|
route: 'Filtrar',
|
||||||
@@ -312,7 +314,7 @@ export class Conectar {
|
|||||||
return 'concept_map' in d ? (d.concept_map ?? undefined) : undefined;
|
return 'concept_map' in d ? (d.concept_map ?? undefined) : undefined;
|
||||||
}
|
}
|
||||||
protected kindLabel(kind: Doc['kind']): string {
|
protected kindLabel(kind: Doc['kind']): string {
|
||||||
return KINDS[kind ?? 'source'];
|
return kindName(kind);
|
||||||
}
|
}
|
||||||
protected cell(value: unknown): string {
|
protected cell(value: unknown): string {
|
||||||
return typeof value === 'object' && value !== null
|
return typeof value === 'object' && value !== null
|
||||||
@@ -322,7 +324,12 @@ export class Conectar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function text(d: Doc): string {
|
function text(d: Doc): string {
|
||||||
return `${KINDS[d.kind ?? 'source']} · ${d.label || d.id}`;
|
return `${kindName(d.kind)} · ${d.label || d.id}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function kindName(kind: Doc['kind']): string {
|
||||||
|
const k = kind ?? 'source';
|
||||||
|
return KINDS[k] ?? k;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Each node's distance from the sources: its column when it has no saved position. */
|
/** Each node's distance from the sources: its column when it has no saved position. */
|
||||||
|
|||||||
Reference in New Issue
Block a user