Merge tea/parity into P3.6
This commit is contained in:
@@ -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';
|
||||
@@ -37,6 +37,10 @@ export type { Models$Params as Models$Params } from './fn/models/models';
|
||||
export { models as models } from './fn/models/models';
|
||||
export type { Analyze$Params as Analyze$Params } from './fn/models/analyze';
|
||||
export { analyze as analyze } from './fn/models/analyze';
|
||||
export type { ExportModels$Params as ExportModels$Params } from './fn/models/export-models';
|
||||
export { exportModels as exportModels } from './fn/models/export-models';
|
||||
export type { ImportModels$Params as ImportModels$Params } from './fn/models/import-models';
|
||||
export { importModels as importModels } from './fn/models/import-models';
|
||||
export type { Score$Params as Score$Params } from './fn/models/score';
|
||||
export { score as score } from './fn/models/score';
|
||||
export type { Train$Params as Train$Params } from './fn/models/train';
|
||||
|
||||
@@ -5,6 +5,7 @@ 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 { BodyImportModels } from './models/body-import-models';
|
||||
export type { BodyUpload } from './models/body-upload';
|
||||
export type { Cancel } from './models/cancel';
|
||||
export type { Condition } from './models/condition';
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface BodyImportModels {
|
||||
file: string;
|
||||
}
|
||||
Reference in New Issue
Block a user