add bitacora page, self-hosted fonts/icons, review fixes for the install package
This commit is contained in:
@@ -2,9 +2,6 @@ import { HttpClient, HttpParams } from '@angular/common/http';
|
||||
import { Injectable, inject } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
import {
|
||||
CohortExclusionsResponse,
|
||||
CohortScenario,
|
||||
CohortVersion,
|
||||
ModelLineage,
|
||||
ModelVersion,
|
||||
PromotionCheck,
|
||||
@@ -15,7 +12,7 @@ import {
|
||||
OcrRunSummary,
|
||||
} from './governance.types';
|
||||
|
||||
/** `/governance/*`: model and cohort versions, artifacts, and the OCR review queue. */
|
||||
/** `/governance/*`: model versions, artifacts, and the OCR review queue. */
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class GovernanceApi {
|
||||
private readonly http = inject(HttpClient);
|
||||
@@ -56,22 +53,6 @@ export class GovernanceApi {
|
||||
return this.http.post<ModelVersion>(`/governance/model-versions/${domain}/${scenario}/${version}/artifacts`, form);
|
||||
}
|
||||
|
||||
listCohortScenarios(): Observable<{ scenarios: CohortScenario[] }> {
|
||||
return this.http.get<{ scenarios: CohortScenario[] }>('/governance/cohort-scenarios');
|
||||
}
|
||||
|
||||
buildCohortVersion(domain: string, scenario: string, description?: string): Observable<CohortVersion> {
|
||||
return this.http.post<CohortVersion>('/governance/cohort-versions', { domain, scenario, ...(description ? { description } : {}) });
|
||||
}
|
||||
|
||||
listCohortVersions(filters: { domain?: string; scenario?: string } = {}): Observable<{ cohort_versions: CohortVersion[] }> {
|
||||
return this.http.get<{ cohort_versions: CohortVersion[] }>('/governance/cohort-versions', { params: toParams(filters) });
|
||||
}
|
||||
|
||||
getCohortExclusions(cohortVersionId: number): Observable<CohortExclusionsResponse> {
|
||||
return this.http.get<CohortExclusionsResponse>(`/governance/cohort-versions/${cohortVersionId}/exclusions`);
|
||||
}
|
||||
|
||||
listOcrJobs(): Observable<{ jobs: OcrJob[] }> {
|
||||
return this.http.get<{ jobs: OcrJob[] }>('/governance/ocr/jobs');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user