Skip to content

Commit

Permalink
npm run ng-openapi-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin committed Jan 27, 2025
1 parent 5a60992 commit ae125ab
Show file tree
Hide file tree
Showing 19 changed files with 78 additions and 14 deletions.
3 changes: 3 additions & 0 deletions src/app/core/api/api-configuration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* tslint:disable */
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

import { Injectable } from '@angular/core';

/**
Expand Down
4 changes: 3 additions & 1 deletion src/app/core/api/api.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* tslint:disable */

/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { ApiConfiguration, ApiConfigurationParams } from './api-configuration';
Expand Down
4 changes: 3 additions & 1 deletion src/app/core/api/base-service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* tslint:disable */

/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { ApiConfiguration } from './api-configuration';
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/api/fn/ahb/get-ahb-csv.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* tslint:disable */
/* 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';
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/api/fn/ahb/get-ahb-json.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* tslint:disable */
/* 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';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* tslint:disable */
/* 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';
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/api/fn/ahb/get-format-versions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* tslint:disable */
/* 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';
Expand Down
12 changes: 10 additions & 2 deletions src/app/core/api/fn/ahb/get-pruefis.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* tslint:disable */
/* 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';
Expand All @@ -16,7 +18,10 @@ export interface GetPruefis$Params {
'format-version': FormatVersion;
}

export function getPruefis(http: HttpClient, rootUrl: string, params: GetPruefis$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<string>>> {
export function getPruefis(http: HttpClient, rootUrl: string, params: GetPruefis$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
'pruefidentifikator'?: string;
'name'?: string;
}>>> {
const rb = new RequestBuilder(rootUrl, getPruefis.PATH, 'get');
if (params) {
rb.path('format-version', params['format-version'], {});
Expand All @@ -27,7 +32,10 @@ export function getPruefis(http: HttpClient, rootUrl: string, params: GetPruefis
).pipe(
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
map((r: HttpResponse<any>) => {
return r as StrictHttpResponse<Array<string>>;
return r as StrictHttpResponse<Array<{
'pruefidentifikator'?: string;
'name'?: string;
}>>;
})
);
}
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/api/fn/maintenance/version-get.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* tslint:disable */
/* 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';
Expand Down
4 changes: 4 additions & 0 deletions src/app/core/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* tslint:disable */
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

export { ApiConfiguration } from './api-configuration';
export { BaseService } from './base-service';
export { RequestBuilder } from './request-builder';
Expand Down
4 changes: 3 additions & 1 deletion src/app/core/api/models.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* tslint:disable */

/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

export { Ahb } from './models/ahb';
export { FormatVersion } from './models/format-version';
export { Version } from './models/version';
4 changes: 3 additions & 1 deletion src/app/core/api/models/ahb.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* tslint:disable */

/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

export interface Ahb {
lines: Array<{
'ahb_expression': string;
Expand Down
4 changes: 3 additions & 1 deletion src/app/core/api/models/format-version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* tslint:disable */

/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

export type FormatVersion = string;
4 changes: 3 additions & 1 deletion src/app/core/api/models/version.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* tslint:disable */

/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

export interface Version {
buildBranch?: string;
buildDate?: string;
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/api/request-builder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* tslint:disable */
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

import { HttpRequest, HttpParameterCodec, HttpParams, HttpHeaders, HttpContext } from '@angular/common/http';

/**
Expand Down
4 changes: 4 additions & 0 deletions src/app/core/api/services.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/* tslint:disable */
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

export { AhbService } from './services/ahb.service';
export { MaintenanceService } from './services/maintenance.service';
23 changes: 19 additions & 4 deletions src/app/core/api/services/ahb.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

/* tslint:disable */
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

import { HttpClient, HttpContext } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
Expand Down Expand Up @@ -169,7 +172,10 @@ export class AhbService extends BaseService {
*
* This method doesn't expect any request body.
*/
getPruefis$Response(params: GetPruefis$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<string>>> {
getPruefis$Response(params: GetPruefis$Params, context?: HttpContext): Observable<StrictHttpResponse<Array<{
'pruefidentifikator'?: string;
'name'?: string;
}>>> {
return getPruefis(this.http, this.rootUrl, params, context);
}

Expand All @@ -183,9 +189,18 @@ export class AhbService extends BaseService {
*
* This method doesn't expect any request body.
*/
getPruefis(params: GetPruefis$Params, context?: HttpContext): Observable<Array<string>> {
getPruefis(params: GetPruefis$Params, context?: HttpContext): Observable<Array<{
'pruefidentifikator'?: string;
'name'?: string;
}>> {
return this.getPruefis$Response(params, context).pipe(
map((r: StrictHttpResponse<Array<string>>): Array<string> => r.body)
map((r: StrictHttpResponse<Array<{
'pruefidentifikator'?: string;
'name'?: string;
}>>): Array<{
'pruefidentifikator'?: string;
'name'?: string;
}> => r.body)
);
}

Expand Down
5 changes: 4 additions & 1 deletion src/app/core/api/services/maintenance.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

/* tslint:disable */
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

import { HttpClient, HttpContext } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
Expand Down
5 changes: 4 additions & 1 deletion src/app/core/api/strict-http-response.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

/* tslint:disable */
/* eslint-disable */
/* Code generated by ng-openapi-gen DO NOT EDIT. */

import { HttpResponse } from '@angular/common/http';

/**
Expand Down

0 comments on commit ae125ab

Please sign in to comment.