ISSSTELEON WebApp
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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 { Browsed } from '../../models/browsed';
|
||||
export interface Browse$Params {
|
||||
path?: string | null;
|
||||
}
|
||||
export function browse(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params?: Browse$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<StrictHttpResponse<Browsed>> {
|
||||
const rb = new RequestBuilder(rootUrl, browse.PATH, 'get');
|
||||
if (params) {
|
||||
rb.query('path', params.path, {});
|
||||
}
|
||||
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<Browsed>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
browse.PATH = '/ingest/sources/browse';
|
||||
@@ -0,0 +1,33 @@
|
||||
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';
|
||||
export interface ConceptMaps$Params {}
|
||||
export function conceptMaps(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params?: ConceptMaps$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<
|
||||
StrictHttpResponse<
|
||||
Array<{
|
||||
[key: string]: any;
|
||||
}>
|
||||
>
|
||||
> {
|
||||
const rb = new RequestBuilder(rootUrl, conceptMaps.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<
|
||||
Array<{
|
||||
[key: string]: any;
|
||||
}>
|
||||
>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
conceptMaps.PATH = '/ingest/concept-maps';
|
||||
@@ -0,0 +1,32 @@
|
||||
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';
|
||||
export interface GetConceptMap$Params {
|
||||
map_id: string;
|
||||
}
|
||||
export function getConceptMap(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params: GetConceptMap$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<
|
||||
StrictHttpResponse<{
|
||||
[key: string]: any;
|
||||
}>
|
||||
> {
|
||||
const rb = new RequestBuilder(rootUrl, getConceptMap.PATH, 'get');
|
||||
if (params) {
|
||||
rb.path('map_id', params.map_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<{
|
||||
[key: string]: any;
|
||||
}>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
getConceptMap.PATH = '/ingest/concept-maps/{map_id}';
|
||||
@@ -0,0 +1,40 @@
|
||||
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';
|
||||
export interface NodeRows$Params {
|
||||
pipeline_id: string;
|
||||
node_id: string;
|
||||
limit?: number;
|
||||
}
|
||||
export function nodeRows(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params: NodeRows$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<
|
||||
StrictHttpResponse<
|
||||
Array<{
|
||||
[key: string]: any;
|
||||
}>
|
||||
>
|
||||
> {
|
||||
const rb = new RequestBuilder(rootUrl, nodeRows.PATH, 'get');
|
||||
if (params) {
|
||||
rb.path('pipeline_id', params.pipeline_id, {});
|
||||
rb.path('node_id', params.node_id, {});
|
||||
rb.query('limit', params.limit, {});
|
||||
}
|
||||
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]: any;
|
||||
}>
|
||||
>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
nodeRows.PATH = '/ingest/pipelines/{pipeline_id}/nodes/{node_id}/rows';
|
||||
@@ -0,0 +1,29 @@
|
||||
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 { SignIn } from '../../models/sign-in';
|
||||
export interface OauthStart$Params {
|
||||
provider: string;
|
||||
origin: string;
|
||||
}
|
||||
export function oauthStart(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params: OauthStart$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<StrictHttpResponse<SignIn>> {
|
||||
const rb = new RequestBuilder(rootUrl, oauthStart.PATH, 'get');
|
||||
if (params) {
|
||||
rb.path('provider', params.provider, {});
|
||||
rb.query('origin', params.origin, {});
|
||||
}
|
||||
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<SignIn>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
oauthStart.PATH = '/ingest/sources/oauth/{provider}/start';
|
||||
@@ -0,0 +1,29 @@
|
||||
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 { SavedPipeline } from '../../models/saved-pipeline';
|
||||
export interface Pipeline$Params {
|
||||
pipeline_id: string;
|
||||
version?: number | null;
|
||||
}
|
||||
export function pipeline(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params: Pipeline$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<StrictHttpResponse<SavedPipeline>> {
|
||||
const rb = new RequestBuilder(rootUrl, pipeline.PATH, 'get');
|
||||
if (params) {
|
||||
rb.path('pipeline_id', params.pipeline_id, {});
|
||||
rb.query('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<SavedPipeline>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
pipeline.PATH = '/ingest/pipelines/{pipeline_id}';
|
||||
@@ -0,0 +1,33 @@
|
||||
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';
|
||||
export interface Pipelines$Params {}
|
||||
export function pipelines(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params?: Pipelines$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<
|
||||
StrictHttpResponse<
|
||||
Array<{
|
||||
[key: string]: any;
|
||||
}>
|
||||
>
|
||||
> {
|
||||
const rb = new RequestBuilder(rootUrl, pipelines.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<
|
||||
Array<{
|
||||
[key: string]: any;
|
||||
}>
|
||||
>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
pipelines.PATH = '/ingest/pipelines';
|
||||
@@ -0,0 +1,36 @@
|
||||
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';
|
||||
export interface SaveConceptMap$Params {
|
||||
map_id: string;
|
||||
body: {
|
||||
[key: string]: any;
|
||||
};
|
||||
}
|
||||
export function saveConceptMap(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params: SaveConceptMap$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<
|
||||
StrictHttpResponse<{
|
||||
[key: string]: number;
|
||||
}>
|
||||
> {
|
||||
const rb = new RequestBuilder(rootUrl, saveConceptMap.PATH, 'put');
|
||||
if (params) {
|
||||
rb.path('map_id', params.map_id, {});
|
||||
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]: number;
|
||||
}>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
saveConceptMap.PATH = '/ingest/concept-maps/{map_id}';
|
||||
@@ -0,0 +1,35 @@
|
||||
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 { Pipeline } from '../../models/pipeline';
|
||||
export interface SavePipeline$Params {
|
||||
pipeline_id: string;
|
||||
body: Pipeline;
|
||||
}
|
||||
export function savePipeline(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params: SavePipeline$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<
|
||||
StrictHttpResponse<{
|
||||
[key: string]: number;
|
||||
}>
|
||||
> {
|
||||
const rb = new RequestBuilder(rootUrl, savePipeline.PATH, 'put');
|
||||
if (params) {
|
||||
rb.path('pipeline_id', params.pipeline_id, {});
|
||||
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]: number;
|
||||
}>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
savePipeline.PATH = '/ingest/pipelines/{pipeline_id}';
|
||||
@@ -0,0 +1,29 @@
|
||||
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';
|
||||
export interface Schema$Params {}
|
||||
export function schema(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params?: Schema$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<
|
||||
StrictHttpResponse<{
|
||||
[key: string]: any;
|
||||
}>
|
||||
> {
|
||||
const rb = new RequestBuilder(rootUrl, schema.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<{
|
||||
[key: string]: any;
|
||||
}>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
schema.PATH = '/ingest/schema';
|
||||
@@ -0,0 +1,39 @@
|
||||
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 { Source } from '../../models/source';
|
||||
export interface SourcePreview$Params {
|
||||
limit?: number;
|
||||
body: Source;
|
||||
}
|
||||
export function sourcePreview(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params: SourcePreview$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<
|
||||
StrictHttpResponse<
|
||||
Array<{
|
||||
[key: string]: any;
|
||||
}>
|
||||
>
|
||||
> {
|
||||
const rb = new RequestBuilder(rootUrl, sourcePreview.PATH, 'post');
|
||||
if (params) {
|
||||
rb.query('limit', params.limit, {});
|
||||
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<
|
||||
Array<{
|
||||
[key: string]: any;
|
||||
}>
|
||||
>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
sourcePreview.PATH = '/ingest/sources/preview';
|
||||
@@ -0,0 +1,27 @@
|
||||
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 { SourceRef } from '../../models/source-ref';
|
||||
export interface SourceResources$Params {
|
||||
body: SourceRef;
|
||||
}
|
||||
export function sourceResources(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params: SourceResources$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<StrictHttpResponse<Array<string>>> {
|
||||
const rb = new RequestBuilder(rootUrl, sourceResources.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<Array<string>>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
sourceResources.PATH = '/ingest/sources/resources';
|
||||
@@ -0,0 +1,24 @@
|
||||
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 { Catalog } from '../../models/catalog';
|
||||
export interface SourceTypes$Params {}
|
||||
export function sourceTypes(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params?: SourceTypes$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<StrictHttpResponse<Catalog>> {
|
||||
const rb = new RequestBuilder(rootUrl, sourceTypes.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<Catalog>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
sourceTypes.PATH = '/ingest/sources/types';
|
||||
@@ -0,0 +1,35 @@
|
||||
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 { RunRequest } from '../../models/run-request';
|
||||
export interface StartRun$Params {
|
||||
pipeline_id: string;
|
||||
body: RunRequest;
|
||||
}
|
||||
export function startRun(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params: StartRun$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<
|
||||
StrictHttpResponse<{
|
||||
[key: string]: string;
|
||||
}>
|
||||
> {
|
||||
const rb = new RequestBuilder(rootUrl, startRun.PATH, 'post');
|
||||
if (params) {
|
||||
rb.path('pipeline_id', params.pipeline_id, {});
|
||||
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;
|
||||
}>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
startRun.PATH = '/ingest/pipelines/{pipeline_id}/runs';
|
||||
@@ -0,0 +1,30 @@
|
||||
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 { Answers } from '../../models/answers';
|
||||
import { Tested } from '../../models/tested';
|
||||
export interface TestSource$Params {
|
||||
limit?: number;
|
||||
body: Answers;
|
||||
}
|
||||
export function testSource(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params: TestSource$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<StrictHttpResponse<Tested>> {
|
||||
const rb = new RequestBuilder(rootUrl, testSource.PATH, 'post');
|
||||
if (params) {
|
||||
rb.query('limit', params.limit, {});
|
||||
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<Tested>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
testSource.PATH = '/ingest/sources/test';
|
||||
@@ -0,0 +1,28 @@
|
||||
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 { BodyUpload } from '../../models/body-upload';
|
||||
import { Uploaded } from '../../models/uploaded';
|
||||
export interface Upload$Params {
|
||||
body: BodyUpload;
|
||||
}
|
||||
export function upload(
|
||||
http: HttpClient,
|
||||
rootUrl: string,
|
||||
params: Upload$Params,
|
||||
context?: HttpContext,
|
||||
): Observable<StrictHttpResponse<Uploaded>> {
|
||||
const rb = new RequestBuilder(rootUrl, upload.PATH, 'post');
|
||||
if (params) {
|
||||
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<Uploaded>;
|
||||
}),
|
||||
);
|
||||
}
|
||||
upload.PATH = '/ingest/uploads';
|
||||
Reference in New Issue
Block a user