Regenerate the API client for person review and corrections

This commit is contained in:
Roberto Treviño
2026-11-24 22:35:13 -06:00
parent 0ee30d67f7
commit 4f858fc686
8 changed files with 264 additions and 18 deletions
+36
View File
@@ -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 { Correction } from '../../models/correction';
export interface Correct$Params {
body: Correction
}
export function correct(http: HttpClient, rootUrl: string, params: Correct$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, correct.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;
}>;
})
);
}
correct.PATH = '/review/corrections';
+36
View File
@@ -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 { PersonDecision } from '../../models/person-decision';
export interface DecidePersons$Params {
body: PersonDecision
}
export function decidePersons(http: HttpClient, rootUrl: string, params: DecidePersons$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: string;
}>> {
const rb = new RequestBuilder(rootUrl, decidePersons.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;
}>;
})
);
}
decidePersons.PATH = '/review/persons';
@@ -8,15 +8,17 @@ import { StrictHttpResponse } from '../../strict-http-response';
import { RequestBuilder } from '../../request-builder';
export interface Links$Params {
export interface Persons$Params {
pipeline: string;
node: string;
}
export function links(http: HttpClient, rootUrl: string, params: Links$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
export function persons(http: HttpClient, rootUrl: string, params: Persons$Params, context?: HttpContext): Observable<StrictHttpResponse<{
[key: string]: Array<{
[key: string]: any;
}>>> {
const rb = new RequestBuilder(rootUrl, links.PATH, 'get');
}>;
}>> {
const rb = new RequestBuilder(rootUrl, persons.PATH, 'get');
if (params) {
rb.query('pipeline', params.pipeline, {});
rb.query('node', params.node, {});
@@ -27,11 +29,13 @@ export function links(http: HttpClient, rootUrl: string, params: Links$Params, c
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<Array<{
return r as StrictHttpResponse<{
[key: string]: Array<{
[key: string]: any;
}>>;
}>;
}>;
})
);
}
links.PATH = '/review/links';
persons.PATH = '/review/persons';