Regenerate the API client for model governance and measures
This commit is contained in:
+567
@@ -1,6 +1,20 @@
|
||||
{
|
||||
"components": {
|
||||
"schemas": {
|
||||
"Body_add_clinical_validation": {
|
||||
"properties": {
|
||||
"file": {
|
||||
"contentMediaType": "application/octet-stream",
|
||||
"title": "File",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"file"
|
||||
],
|
||||
"title": "Body_add_clinical_validation",
|
||||
"type": "object"
|
||||
},
|
||||
"Body_upload": {
|
||||
"properties": {
|
||||
"file": {
|
||||
@@ -780,6 +794,24 @@
|
||||
"title": "Target",
|
||||
"type": "object"
|
||||
},
|
||||
"Training": {
|
||||
"properties": {
|
||||
"as_of": {
|
||||
"anyOf": [
|
||||
{
|
||||
"format": "date",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "As Of"
|
||||
}
|
||||
},
|
||||
"title": "Training",
|
||||
"type": "object"
|
||||
},
|
||||
"ValidationError": {
|
||||
"properties": {
|
||||
"ctx": {
|
||||
@@ -819,6 +851,56 @@
|
||||
],
|
||||
"title": "ValidationError",
|
||||
"type": "object"
|
||||
},
|
||||
"Version": {
|
||||
"properties": {
|
||||
"aliases": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Aliases",
|
||||
"type": "array"
|
||||
},
|
||||
"created": {
|
||||
"title": "Created",
|
||||
"type": "integer"
|
||||
},
|
||||
"metrics": {
|
||||
"additionalProperties": {
|
||||
"type": "number"
|
||||
},
|
||||
"title": "Metrics",
|
||||
"type": "object"
|
||||
},
|
||||
"params": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Params",
|
||||
"type": "object"
|
||||
},
|
||||
"reports": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Reports",
|
||||
"type": "array"
|
||||
},
|
||||
"version": {
|
||||
"title": "Version",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"created",
|
||||
"aliases",
|
||||
"metrics",
|
||||
"params",
|
||||
"reports"
|
||||
],
|
||||
"title": "Version",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1325,6 +1407,341 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/models/{domain}": {
|
||||
"get": {
|
||||
"operationId": "models",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "domain",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Domain"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Response Models",
|
||||
"type": "array"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"summary": "Models",
|
||||
"tags": [
|
||||
"models"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/models/{domain}/score": {
|
||||
"post": {
|
||||
"description": "Starts a risk batch from each model's champion; follow it at /runs.",
|
||||
"operationId": "score",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "domain",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Domain"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Response Score",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"summary": "Score",
|
||||
"tags": [
|
||||
"models"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/models/{domain}/train": {
|
||||
"post": {
|
||||
"description": "Starts training a new version of every model of the domain; follow it at /runs.",
|
||||
"operationId": "train",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "domain",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Domain"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Training"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Response Train",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"summary": "Train",
|
||||
"tags": [
|
||||
"models"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/models/{domain}/{name}/versions": {
|
||||
"get": {
|
||||
"operationId": "versions",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "domain",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Domain"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "name",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Version"
|
||||
},
|
||||
"title": "Response Versions",
|
||||
"type": "array"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"summary": "Versions",
|
||||
"tags": [
|
||||
"models"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/models/{domain}/{name}/versions/{version}/promote": {
|
||||
"post": {
|
||||
"description": "The version risk batches come from from now on; refused (409) without its three\nreports: technical validation, interpretability and clinical validation.",
|
||||
"operationId": "promote",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "domain",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Domain"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "name",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "version",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Version",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"additionalProperties": true,
|
||||
"title": "Response Promote",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"summary": "Promote",
|
||||
"tags": [
|
||||
"models"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/models/{domain}/{name}/versions/{version}/reports/clinical_validation": {
|
||||
"post": {
|
||||
"description": "The clinical team's validation of a version: the third report promotion needs.",
|
||||
"operationId": "add_clinical_validation",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "domain",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Domain"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "name",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "version",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Version",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"multipart/form-data": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Body_add_clinical_validation"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"additionalProperties": true,
|
||||
"title": "Response Add Clinical Validation",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"summary": "Add Clinical Validation",
|
||||
"tags": [
|
||||
"models"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/review/conflicts": {
|
||||
"get": {
|
||||
"description": "Rows of one person and date that disagree; reject the wrong ones.",
|
||||
@@ -1684,6 +2101,156 @@
|
||||
"runs"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/{domain}/measures": {
|
||||
"get": {
|
||||
"operationId": "measures",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "domain",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Domain"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"items": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"title": "Response Measures",
|
||||
"type": "array"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"summary": "Measures",
|
||||
"tags": [
|
||||
"measures"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/{domain}/measures/{measure_id}": {
|
||||
"get": {
|
||||
"description": "A Bundle (searchset) with the measure's MeasureReport for each period.",
|
||||
"operationId": "measure",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "path",
|
||||
"name": "domain",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/Domain"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "measure_id",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"title": "Measure Id",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "comma-separated semesters (2025-S1) or months (2025-03)",
|
||||
"in": "query",
|
||||
"name": "periods",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"description": "comma-separated semesters (2025-S1) or months (2025-03)",
|
||||
"title": "Periods",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "count only what was known by then",
|
||||
"in": "query",
|
||||
"name": "as_of",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "count only what was known by then",
|
||||
"title": "As Of"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "durations count to this day",
|
||||
"in": "query",
|
||||
"name": "event_cutoff",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"anyOf": [
|
||||
{
|
||||
"format": "date",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "durations count to this day",
|
||||
"title": "Event Cutoff"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"additionalProperties": true,
|
||||
"title": "Response Measure",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
},
|
||||
"422": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Validation Error"
|
||||
}
|
||||
},
|
||||
"summary": "Measure",
|
||||
"tags": [
|
||||
"measures"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/* 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 Measure$Params {
|
||||
domain: Domain;
|
||||
measure_id: string;
|
||||
|
||||
/**
|
||||
* comma-separated semesters (2025-S1) or months (2025-03)
|
||||
*/
|
||||
periods: string;
|
||||
|
||||
/**
|
||||
* count only what was known by then
|
||||
*/
|
||||
as_of?: (string | null);
|
||||
|
||||
/**
|
||||
* durations count to this day
|
||||
*/
|
||||
event_cutoff?: (string | null);
|
||||
}
|
||||
|
||||
export function measure(http: HttpClient, rootUrl: string, params: Measure$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||
[key: string]: any;
|
||||
}>> {
|
||||
const rb = new RequestBuilder(rootUrl, measure.PATH, 'get');
|
||||
if (params) {
|
||||
rb.path('domain', params.domain, {});
|
||||
rb.path('measure_id', params.measure_id, {});
|
||||
rb.query('periods', params.periods, {});
|
||||
rb.query('as_of', params.as_of, {});
|
||||
rb.query('event_cutoff', params.event_cutoff, {});
|
||||
}
|
||||
|
||||
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;
|
||||
}>;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
measure.PATH = '/{domain}/measures/{measure_id}';
|
||||
@@ -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 Measures$Params {
|
||||
domain: Domain;
|
||||
}
|
||||
|
||||
export function measures(http: HttpClient, rootUrl: string, params: Measures$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
|
||||
[key: string]: string;
|
||||
}>>> {
|
||||
const rb = new RequestBuilder(rootUrl, measures.PATH, 'get');
|
||||
if (params) {
|
||||
rb.path('domain', params.domain, {});
|
||||
}
|
||||
|
||||
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]: string;
|
||||
}>>;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
measures.PATH = '/{domain}/measures';
|
||||
@@ -0,0 +1,43 @@
|
||||
/* 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 { BodyAddClinicalValidation } from '../../models/body-add-clinical-validation';
|
||||
import { Domain } from '../../models/domain';
|
||||
|
||||
export interface AddClinicalValidation$Params {
|
||||
domain: Domain;
|
||||
name: string;
|
||||
version: number;
|
||||
body: BodyAddClinicalValidation
|
||||
}
|
||||
|
||||
export function addClinicalValidation(http: HttpClient, rootUrl: string, params: AddClinicalValidation$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||
[key: string]: any;
|
||||
}>> {
|
||||
const rb = new RequestBuilder(rootUrl, addClinicalValidation.PATH, 'post');
|
||||
if (params) {
|
||||
rb.path('domain', params.domain, {});
|
||||
rb.path('name', params.name, {});
|
||||
rb.path('version', params.version, {});
|
||||
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;
|
||||
}>;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
addClinicalValidation.PATH = '/models/{domain}/{name}/versions/{version}/reports/clinical_validation';
|
||||
@@ -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 { Domain } from '../../models/domain';
|
||||
|
||||
export interface Models$Params {
|
||||
domain: Domain;
|
||||
}
|
||||
|
||||
export function models(http: HttpClient, rootUrl: string, params: Models$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<string>>> {
|
||||
const rb = new RequestBuilder(rootUrl, models.PATH, 'get');
|
||||
if (params) {
|
||||
rb.path('domain', params.domain, {});
|
||||
}
|
||||
|
||||
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<string>>;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
models.PATH = '/models/{domain}';
|
||||
@@ -0,0 +1,40 @@
|
||||
/* 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 Promote$Params {
|
||||
domain: Domain;
|
||||
name: string;
|
||||
version: number;
|
||||
}
|
||||
|
||||
export function promote(http: HttpClient, rootUrl: string, params: Promote$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||
[key: string]: any;
|
||||
}>> {
|
||||
const rb = new RequestBuilder(rootUrl, promote.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]: any;
|
||||
}>;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
promote.PATH = '/models/{domain}/{name}/versions/{version}/promote';
|
||||
@@ -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 Score$Params {
|
||||
domain: Domain;
|
||||
}
|
||||
|
||||
export function score(http: HttpClient, rootUrl: string, params: Score$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||
[key: string]: string;
|
||||
}>> {
|
||||
const rb = new RequestBuilder(rootUrl, score.PATH, 'post');
|
||||
if (params) {
|
||||
rb.path('domain', params.domain, {});
|
||||
}
|
||||
|
||||
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;
|
||||
}>;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
score.PATH = '/models/{domain}/score';
|
||||
@@ -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 { Training } from '../../models/training';
|
||||
|
||||
export interface Train$Params {
|
||||
domain: Domain;
|
||||
body: Training
|
||||
}
|
||||
|
||||
export function train(http: HttpClient, rootUrl: string, params: Train$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||
[key: string]: string;
|
||||
}>> {
|
||||
const rb = new RequestBuilder(rootUrl, train.PATH, 'post');
|
||||
if (params) {
|
||||
rb.path('domain', params.domain, {});
|
||||
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;
|
||||
}>;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
train.PATH = '/models/{domain}/train';
|
||||
@@ -0,0 +1,35 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { filter, map } from 'rxjs/operators';
|
||||
import { StrictHttpResponse } from '../../strict-http-response';
|
||||
import { RequestBuilder } from '../../request-builder';
|
||||
|
||||
import { Domain } from '../../models/domain';
|
||||
import { Version } from '../../models/version';
|
||||
|
||||
export interface Versions$Params {
|
||||
domain: Domain;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export function versions(http: HttpClient, rootUrl: string, params: Versions$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<Version>>> {
|
||||
const rb = new RequestBuilder(rootUrl, versions.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<Array<Version>>;
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
versions.PATH = '/models/{domain}/{name}/versions';
|
||||
@@ -23,6 +23,18 @@ export type { SourceResources$Params as SourceResources$Params } from './fn/inge
|
||||
export { sourceResources as sourceResources } from './fn/ingest/source-resources';
|
||||
export type { Upload$Params as Upload$Params } from './fn/ingest/upload';
|
||||
export { upload as upload } from './fn/ingest/upload';
|
||||
export type { Models$Params as Models$Params } from './fn/models/models';
|
||||
export { models as models } from './fn/models/models';
|
||||
export type { Score$Params as Score$Params } from './fn/models/score';
|
||||
export { score as score } from './fn/models/score';
|
||||
export type { Train$Params as Train$Params } from './fn/models/train';
|
||||
export { train as train } from './fn/models/train';
|
||||
export type { Versions$Params as Versions$Params } from './fn/models/versions';
|
||||
export { versions as versions } from './fn/models/versions';
|
||||
export type { Promote$Params as Promote$Params } from './fn/models/promote';
|
||||
export { promote as promote } from './fn/models/promote';
|
||||
export type { AddClinicalValidation$Params as AddClinicalValidation$Params } from './fn/models/add-clinical-validation';
|
||||
export { addClinicalValidation as addClinicalValidation } from './fn/models/add-clinical-validation';
|
||||
export type { Conflicts$Params as Conflicts$Params } from './fn/review/conflicts';
|
||||
export { conflicts as conflicts } from './fn/review/conflicts';
|
||||
export type { Correct$Params as Correct$Params } from './fn/review/correct';
|
||||
@@ -37,3 +49,7 @@ export type { Reject$Params as Reject$Params } from './fn/review/reject';
|
||||
export { reject as reject } from './fn/review/reject';
|
||||
export type { RunStatus$Params as RunStatus$Params } from './fn/runs/run-status';
|
||||
export { runStatus as runStatus } from './fn/runs/run-status';
|
||||
export type { Measures$Params as Measures$Params } from './fn/measures/measures';
|
||||
export { measures as measures } from './fn/measures/measures';
|
||||
export type { Measure$Params as Measure$Params } from './fn/measures/measure';
|
||||
export { measure as measure } from './fn/measures/measure';
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export type { BodyAddClinicalValidation } from './models/body-add-clinical-validation';
|
||||
export type { BodyUpload } from './models/body-upload';
|
||||
export type { Condition } from './models/condition';
|
||||
export type { Correction } from './models/correction';
|
||||
@@ -20,4 +21,6 @@ export type { SavedPipeline } from './models/saved-pipeline';
|
||||
export type { Source } from './models/source';
|
||||
export type { SourceRef } from './models/source-ref';
|
||||
export type { Target } from './models/target';
|
||||
export type { Training } from './models/training';
|
||||
export type { ValidationError } from './models/validation-error';
|
||||
export type { Version } from './models/version';
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface BodyAddClinicalValidation {
|
||||
file: string;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Training {
|
||||
as_of?: (string | null);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/* eslint-disable */
|
||||
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||
|
||||
export interface Version {
|
||||
aliases: Array<string>;
|
||||
created: number;
|
||||
metrics: {
|
||||
[key: string]: number;
|
||||
};
|
||||
params: {
|
||||
[key: string]: string;
|
||||
};
|
||||
reports: Array<string>;
|
||||
version: number;
|
||||
}
|
||||
Reference in New Issue
Block a user