generated from it-at-m/oss-repository-en-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
albrecht.schaenzel
committed
Oct 30, 2023
1 parent
afc4dd1
commit 1a079bd
Showing
46 changed files
with
3,702 additions
and
243 deletions.
There are no files selected for viewing
270 changes: 270 additions & 0 deletions
270
frontend/src/api/api-client/isi-backend/apis/AbfrageApi.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,270 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* ISI Backend API | ||
* ISI Backend - Service für das Informationssystem für soziale Infrastrukturplanung | ||
* | ||
* The version of the OpenAPI document: 1.0.0 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
|
||
import * as runtime from '../runtime'; | ||
import { | ||
InformationResponseDto, | ||
InformationResponseDtoFromJSON, | ||
InformationResponseDtoToJSON, | ||
InfrastrukturabfrageAngelegtDto, | ||
InfrastrukturabfrageAngelegtDtoFromJSON, | ||
InfrastrukturabfrageAngelegtDtoToJSON, | ||
InfrastrukturabfrageDto, | ||
InfrastrukturabfrageDtoFromJSON, | ||
InfrastrukturabfrageDtoToJSON, | ||
InfrastrukturabfrageInBearbeitungFachreferateDto, | ||
InfrastrukturabfrageInBearbeitungFachreferateDtoFromJSON, | ||
InfrastrukturabfrageInBearbeitungFachreferateDtoToJSON, | ||
InfrastrukturabfrageInBearbeitungSachbearbeitungDto, | ||
InfrastrukturabfrageInBearbeitungSachbearbeitungDtoFromJSON, | ||
InfrastrukturabfrageInBearbeitungSachbearbeitungDtoToJSON, | ||
} from '../models'; | ||
|
||
export interface CreateInfrastrukturabfrageRequest { | ||
infrastrukturabfrageAngelegtDto: InfrastrukturabfrageAngelegtDto; | ||
} | ||
|
||
export interface DeleteInfrastrukturabfrageByIdRequest { | ||
id: string; | ||
} | ||
|
||
export interface GetInfrastrukturabfrageByIdRequest { | ||
id: string; | ||
} | ||
|
||
export interface PatchAbfrageAngelegtRequest { | ||
id: string; | ||
infrastrukturabfrageAngelegtDto: InfrastrukturabfrageAngelegtDto; | ||
} | ||
|
||
export interface PatchAbfrageInBearbeitungFachreferateRequest { | ||
id: string; | ||
infrastrukturabfrageInBearbeitungFachreferateDto: InfrastrukturabfrageInBearbeitungFachreferateDto; | ||
} | ||
|
||
export interface PatchAbfrageInBearbeitungSachbearbeitungRequest { | ||
id: string; | ||
infrastrukturabfrageInBearbeitungSachbearbeitungDto: InfrastrukturabfrageInBearbeitungSachbearbeitungDto; | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
export class AbfrageApi extends runtime.BaseAPI { | ||
|
||
/** | ||
* Anlegen einer neuen Infrastrukturabfrage | ||
*/ | ||
async createInfrastrukturabfrageRaw(requestParameters: CreateInfrastrukturabfrageRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<InfrastrukturabfrageDto>> { | ||
if (requestParameters.infrastrukturabfrageAngelegtDto === null || requestParameters.infrastrukturabfrageAngelegtDto === undefined) { | ||
throw new runtime.RequiredError('infrastrukturabfrageAngelegtDto','Required parameter requestParameters.infrastrukturabfrageAngelegtDto was null or undefined when calling createInfrastrukturabfrage.'); | ||
} | ||
|
||
const queryParameters: any = {}; | ||
|
||
const headerParameters: runtime.HTTPHeaders = {}; | ||
|
||
headerParameters['Content-Type'] = 'application/json'; | ||
|
||
const response = await this.request({ | ||
path: `/infrastruktur-abfragen`, | ||
method: 'POST', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
body: InfrastrukturabfrageAngelegtDtoToJSON(requestParameters.infrastrukturabfrageAngelegtDto), | ||
}, initOverrides); | ||
|
||
return new runtime.JSONApiResponse(response, (jsonValue) => InfrastrukturabfrageDtoFromJSON(jsonValue)); | ||
} | ||
|
||
/** | ||
* Anlegen einer neuen Infrastrukturabfrage | ||
*/ | ||
async createInfrastrukturabfrage(requestParameters: CreateInfrastrukturabfrageRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<InfrastrukturabfrageDto> { | ||
const response = await this.createInfrastrukturabfrageRaw(requestParameters, initOverrides); | ||
return await response.value(); | ||
} | ||
|
||
/** | ||
* Löschen einer Infrastrukturabfrage | ||
*/ | ||
async deleteInfrastrukturabfrageByIdRaw(requestParameters: DeleteInfrastrukturabfrageByIdRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>> { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteInfrastrukturabfrageById.'); | ||
} | ||
|
||
const queryParameters: any = {}; | ||
|
||
const headerParameters: runtime.HTTPHeaders = {}; | ||
|
||
const response = await this.request({ | ||
path: `/infrastruktur-abfragen/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
method: 'DELETE', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
|
||
return new runtime.VoidApiResponse(response); | ||
} | ||
|
||
/** | ||
* Löschen einer Infrastrukturabfrage | ||
*/ | ||
async deleteInfrastrukturabfrageById(requestParameters: DeleteInfrastrukturabfrageByIdRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void> { | ||
await this.deleteInfrastrukturabfrageByIdRaw(requestParameters, initOverrides); | ||
} | ||
|
||
/** | ||
* Lesen einer Infrastrukturabfrage | ||
*/ | ||
async getInfrastrukturabfrageByIdRaw(requestParameters: GetInfrastrukturabfrageByIdRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<InfrastrukturabfrageDto>> { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getInfrastrukturabfrageById.'); | ||
} | ||
|
||
const queryParameters: any = {}; | ||
|
||
const headerParameters: runtime.HTTPHeaders = {}; | ||
|
||
const response = await this.request({ | ||
path: `/infrastruktur-abfragen/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
method: 'GET', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
}, initOverrides); | ||
|
||
return new runtime.JSONApiResponse(response, (jsonValue) => InfrastrukturabfrageDtoFromJSON(jsonValue)); | ||
} | ||
|
||
/** | ||
* Lesen einer Infrastrukturabfrage | ||
*/ | ||
async getInfrastrukturabfrageById(requestParameters: GetInfrastrukturabfrageByIdRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<InfrastrukturabfrageDto> { | ||
const response = await this.getInfrastrukturabfrageByIdRaw(requestParameters, initOverrides); | ||
return await response.value(); | ||
} | ||
|
||
/** | ||
* Aktualisierung einer Infrastrukturabfrage im Status ANGELEGT. | ||
*/ | ||
async patchAbfrageAngelegtRaw(requestParameters: PatchAbfrageAngelegtRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<InfrastrukturabfrageDto>> { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling patchAbfrageAngelegt.'); | ||
} | ||
|
||
if (requestParameters.infrastrukturabfrageAngelegtDto === null || requestParameters.infrastrukturabfrageAngelegtDto === undefined) { | ||
throw new runtime.RequiredError('infrastrukturabfrageAngelegtDto','Required parameter requestParameters.infrastrukturabfrageAngelegtDto was null or undefined when calling patchAbfrageAngelegt.'); | ||
} | ||
|
||
const queryParameters: any = {}; | ||
|
||
const headerParameters: runtime.HTTPHeaders = {}; | ||
|
||
headerParameters['Content-Type'] = 'application/json'; | ||
|
||
const response = await this.request({ | ||
path: `/infrastruktur-abfragen/abfrage-angelegt/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
method: 'PATCH', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
body: InfrastrukturabfrageAngelegtDtoToJSON(requestParameters.infrastrukturabfrageAngelegtDto), | ||
}, initOverrides); | ||
|
||
return new runtime.JSONApiResponse(response, (jsonValue) => InfrastrukturabfrageDtoFromJSON(jsonValue)); | ||
} | ||
|
||
/** | ||
* Aktualisierung einer Infrastrukturabfrage im Status ANGELEGT. | ||
*/ | ||
async patchAbfrageAngelegt(requestParameters: PatchAbfrageAngelegtRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<InfrastrukturabfrageDto> { | ||
const response = await this.patchAbfrageAngelegtRaw(requestParameters, initOverrides); | ||
return await response.value(); | ||
} | ||
|
||
/** | ||
* Aktualisierung einer Infrastrukturabfrage im Status IN_BEARBEITUNG_FACHREFERATE. | ||
*/ | ||
async patchAbfrageInBearbeitungFachreferateRaw(requestParameters: PatchAbfrageInBearbeitungFachreferateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<InfrastrukturabfrageDto>> { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling patchAbfrageInBearbeitungFachreferate.'); | ||
} | ||
|
||
if (requestParameters.infrastrukturabfrageInBearbeitungFachreferateDto === null || requestParameters.infrastrukturabfrageInBearbeitungFachreferateDto === undefined) { | ||
throw new runtime.RequiredError('infrastrukturabfrageInBearbeitungFachreferateDto','Required parameter requestParameters.infrastrukturabfrageInBearbeitungFachreferateDto was null or undefined when calling patchAbfrageInBearbeitungFachreferate.'); | ||
} | ||
|
||
const queryParameters: any = {}; | ||
|
||
const headerParameters: runtime.HTTPHeaders = {}; | ||
|
||
headerParameters['Content-Type'] = 'application/json'; | ||
|
||
const response = await this.request({ | ||
path: `/infrastruktur-abfragen/abfrage-in-bearbeitung-fachreferate/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
method: 'PATCH', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
body: InfrastrukturabfrageInBearbeitungFachreferateDtoToJSON(requestParameters.infrastrukturabfrageInBearbeitungFachreferateDto), | ||
}, initOverrides); | ||
|
||
return new runtime.JSONApiResponse(response, (jsonValue) => InfrastrukturabfrageDtoFromJSON(jsonValue)); | ||
} | ||
|
||
/** | ||
* Aktualisierung einer Infrastrukturabfrage im Status IN_BEARBEITUNG_FACHREFERATE. | ||
*/ | ||
async patchAbfrageInBearbeitungFachreferate(requestParameters: PatchAbfrageInBearbeitungFachreferateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<InfrastrukturabfrageDto> { | ||
const response = await this.patchAbfrageInBearbeitungFachreferateRaw(requestParameters, initOverrides); | ||
return await response.value(); | ||
} | ||
|
||
/** | ||
* Aktualisierung einer Infrastrukturabfrage im Status IN_BEARBEITUNG_SACHBEARBEITUNG. | ||
*/ | ||
async patchAbfrageInBearbeitungSachbearbeitungRaw(requestParameters: PatchAbfrageInBearbeitungSachbearbeitungRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<InfrastrukturabfrageDto>> { | ||
if (requestParameters.id === null || requestParameters.id === undefined) { | ||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling patchAbfrageInBearbeitungSachbearbeitung.'); | ||
} | ||
|
||
if (requestParameters.infrastrukturabfrageInBearbeitungSachbearbeitungDto === null || requestParameters.infrastrukturabfrageInBearbeitungSachbearbeitungDto === undefined) { | ||
throw new runtime.RequiredError('infrastrukturabfrageInBearbeitungSachbearbeitungDto','Required parameter requestParameters.infrastrukturabfrageInBearbeitungSachbearbeitungDto was null or undefined when calling patchAbfrageInBearbeitungSachbearbeitung.'); | ||
} | ||
|
||
const queryParameters: any = {}; | ||
|
||
const headerParameters: runtime.HTTPHeaders = {}; | ||
|
||
headerParameters['Content-Type'] = 'application/json'; | ||
|
||
const response = await this.request({ | ||
path: `/infrastruktur-abfragen/abfrage-in-bearbeitung-sachbearbeitung/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))), | ||
method: 'PATCH', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
body: InfrastrukturabfrageInBearbeitungSachbearbeitungDtoToJSON(requestParameters.infrastrukturabfrageInBearbeitungSachbearbeitungDto), | ||
}, initOverrides); | ||
|
||
return new runtime.JSONApiResponse(response, (jsonValue) => InfrastrukturabfrageDtoFromJSON(jsonValue)); | ||
} | ||
|
||
/** | ||
* Aktualisierung einer Infrastrukturabfrage im Status IN_BEARBEITUNG_SACHBEARBEITUNG. | ||
*/ | ||
async patchAbfrageInBearbeitungSachbearbeitung(requestParameters: PatchAbfrageInBearbeitungSachbearbeitungRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<InfrastrukturabfrageDto> { | ||
const response = await this.patchAbfrageInBearbeitungSachbearbeitungRaw(requestParameters, initOverrides); | ||
return await response.value(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.