manager-app/manager_api_new/lib/api/section_map_api.dart
2025-07-17 12:11:59 +02:00

712 lines
22 KiB
Dart

//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.18
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
part of openapi.api;
class SectionMapApi {
SectionMapApi([ApiClient? apiClient])
: apiClient = apiClient ?? defaultApiClient;
final ApiClient apiClient;
/// Performs an HTTP 'POST /api/SectionMap/{sectionId}/points' operation and returns the [Response].
/// Parameters:
///
/// * [String] sectionId (required):
///
/// * [GeoPointDTO] geoPointDTO (required):
Future<Response> sectionMapCreateWithHttpInfo(
String sectionId,
GeoPointDTO geoPointDTO,
) async {
// ignore: prefer_const_declarations
final path = r'/api/SectionMap/{sectionId}/points'
.replaceAll('{sectionId}', sectionId);
// ignore: prefer_final_locals
Object? postBody = geoPointDTO;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}
/// Parameters:
///
/// * [String] sectionId (required):
///
/// * [GeoPointDTO] geoPointDTO (required):
Future<GeoPointDTO?> sectionMapCreate(
String sectionId,
GeoPointDTO geoPointDTO,
) async {
final response = await sectionMapCreateWithHttpInfo(
sectionId,
geoPointDTO,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty &&
response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response),
'GeoPointDTO',
) as GeoPointDTO;
}
return null;
}
/// Performs an HTTP 'POST /api/SectionMap/{sectionMapId}/guided-path' operation and returns the [Response].
/// Parameters:
///
/// * [String] sectionMapId (required):
///
/// * [GuidedPathDTO] guidedPathDTO (required):
Future<Response> sectionMapCreateGuidedPathWithHttpInfo(
String sectionMapId,
GuidedPathDTO guidedPathDTO,
) async {
// ignore: prefer_const_declarations
final path = r'/api/SectionMap/{sectionMapId}/guided-path'
.replaceAll('{sectionMapId}', sectionMapId);
// ignore: prefer_final_locals
Object? postBody = guidedPathDTO;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}
/// Parameters:
///
/// * [String] sectionMapId (required):
///
/// * [GuidedPathDTO] guidedPathDTO (required):
Future<GuidedPathDTO?> sectionMapCreateGuidedPath(
String sectionMapId,
GuidedPathDTO guidedPathDTO,
) async {
final response = await sectionMapCreateGuidedPathWithHttpInfo(
sectionMapId,
guidedPathDTO,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty &&
response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response),
'GuidedPathDTO',
) as GuidedPathDTO;
}
return null;
}
/// Performs an HTTP 'POST /api/SectionMap/guided-path/{guidedPathId}/guided-step' operation and returns the [Response].
/// Parameters:
///
/// * [String] guidedPathId (required):
///
/// * [GuidedStepDTO] guidedStepDTO (required):
Future<Response> sectionMapCreateGuidedStepWithHttpInfo(
String guidedPathId,
GuidedStepDTO guidedStepDTO,
) async {
// ignore: prefer_const_declarations
final path = r'/api/SectionMap/guided-path/{guidedPathId}/guided-step'
.replaceAll('{guidedPathId}', guidedPathId);
// ignore: prefer_final_locals
Object? postBody = guidedStepDTO;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}
/// Parameters:
///
/// * [String] guidedPathId (required):
///
/// * [GuidedStepDTO] guidedStepDTO (required):
Future<GuidedStepDTO?> sectionMapCreateGuidedStep(
String guidedPathId,
GuidedStepDTO guidedStepDTO,
) async {
final response = await sectionMapCreateGuidedStepWithHttpInfo(
guidedPathId,
guidedStepDTO,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty &&
response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response),
'GuidedStepDTO',
) as GuidedStepDTO;
}
return null;
}
/// Performs an HTTP 'DELETE /api/SectionMap/points/{geoPointId}' operation and returns the [Response].
/// Parameters:
///
/// * [int] geoPointId (required):
Future<Response> sectionMapDeleteWithHttpInfo(
int geoPointId,
) async {
// ignore: prefer_const_declarations
final path = r'/api/SectionMap/points/{geoPointId}'
.replaceAll('{geoPointId}', geoPointId.toString());
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}
/// Parameters:
///
/// * [int] geoPointId (required):
Future<String?> sectionMapDelete(
int geoPointId,
) async {
final response = await sectionMapDeleteWithHttpInfo(
geoPointId,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty &&
response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response),
'String',
) as String;
}
return null;
}
/// Performs an HTTP 'DELETE /api/SectionMap/guided-path/{guidedPathId}' operation and returns the [Response].
/// Parameters:
///
/// * [String] guidedPathId (required):
Future<Response> sectionMapDeleteGuidedPathWithHttpInfo(
String guidedPathId,
) async {
// ignore: prefer_const_declarations
final path = r'/api/SectionMap/guided-path/{guidedPathId}'
.replaceAll('{guidedPathId}', guidedPathId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}
/// Parameters:
///
/// * [String] guidedPathId (required):
Future<String?> sectionMapDeleteGuidedPath(
String guidedPathId,
) async {
final response = await sectionMapDeleteGuidedPathWithHttpInfo(
guidedPathId,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty &&
response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response),
'String',
) as String;
}
return null;
}
/// Performs an HTTP 'DELETE /api/SectionMap/guided-step/{guidedStepId}' operation and returns the [Response].
/// Parameters:
///
/// * [String] guidedStepId (required):
Future<Response> sectionMapDeleteGuidedStepWithHttpInfo(
String guidedStepId,
) async {
// ignore: prefer_const_declarations
final path = r'/api/SectionMap/guided-step/{guidedStepId}'
.replaceAll('{guidedStepId}', guidedStepId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}
/// Parameters:
///
/// * [String] guidedStepId (required):
Future<String?> sectionMapDeleteGuidedStep(
String guidedStepId,
) async {
final response = await sectionMapDeleteGuidedStepWithHttpInfo(
guidedStepId,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty &&
response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response),
'String',
) as String;
}
return null;
}
/// Performs an HTTP 'GET /api/SectionMap/{sectionId}/points' operation and returns the [Response].
/// Parameters:
///
/// * [String] sectionId (required):
Future<Response> sectionMapGetAllGeoPointsFromSectionWithHttpInfo(
String sectionId,
) async {
// ignore: prefer_const_declarations
final path = r'/api/SectionMap/{sectionId}/points'
.replaceAll('{sectionId}', sectionId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}
/// Parameters:
///
/// * [String] sectionId (required):
Future<List<GeoPointDTO>?> sectionMapGetAllGeoPointsFromSection(
String sectionId,
) async {
final response = await sectionMapGetAllGeoPointsFromSectionWithHttpInfo(
sectionId,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty &&
response.statusCode != HttpStatus.noContent) {
final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(
responseBody, 'List<GeoPointDTO>') as List)
.cast<GeoPointDTO>()
.toList(growable: false);
}
return null;
}
/// Performs an HTTP 'GET /api/SectionMap/{sectionMapId}/guided-path' operation and returns the [Response].
/// Parameters:
///
/// * [String] sectionMapId (required):
Future<Response> sectionMapGetAllGuidedPathFromSectionWithHttpInfo(
String sectionMapId,
) async {
// ignore: prefer_const_declarations
final path = r'/api/SectionMap/{sectionMapId}/guided-path'
.replaceAll('{sectionMapId}', sectionMapId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}
/// Parameters:
///
/// * [String] sectionMapId (required):
Future<List<GuidedPathDTO>?> sectionMapGetAllGuidedPathFromSection(
String sectionMapId,
) async {
final response = await sectionMapGetAllGuidedPathFromSectionWithHttpInfo(
sectionMapId,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty &&
response.statusCode != HttpStatus.noContent) {
final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(
responseBody, 'List<GuidedPathDTO>') as List)
.cast<GuidedPathDTO>()
.toList(growable: false);
}
return null;
}
/// Performs an HTTP 'GET /api/SectionMap/guided-path/{guidedPathId}/guided-step' operation and returns the [Response].
/// Parameters:
///
/// * [String] guidedPathId (required):
Future<Response> sectionMapGetAllGuidedStepFromGuidedPathWithHttpInfo(
String guidedPathId,
) async {
// ignore: prefer_const_declarations
final path = r'/api/SectionMap/guided-path/{guidedPathId}/guided-step'
.replaceAll('{guidedPathId}', guidedPathId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}
/// Parameters:
///
/// * [String] guidedPathId (required):
Future<List<GuidedStepDTO>?> sectionMapGetAllGuidedStepFromGuidedPath(
String guidedPathId,
) async {
final response = await sectionMapGetAllGuidedStepFromGuidedPathWithHttpInfo(
guidedPathId,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty &&
response.statusCode != HttpStatus.noContent) {
final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(
responseBody, 'List<GuidedStepDTO>') as List)
.cast<GuidedStepDTO>()
.toList(growable: false);
}
return null;
}
/// Performs an HTTP 'PUT /api/SectionMap' operation and returns the [Response].
/// Parameters:
///
/// * [GeoPointDTO] geoPointDTO (required):
Future<Response> sectionMapUpdateWithHttpInfo(
GeoPointDTO geoPointDTO,
) async {
// ignore: prefer_const_declarations
final path = r'/api/SectionMap';
// ignore: prefer_final_locals
Object? postBody = geoPointDTO;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}
/// Parameters:
///
/// * [GeoPointDTO] geoPointDTO (required):
Future<GeoPoint?> sectionMapUpdate(
GeoPointDTO geoPointDTO,
) async {
final response = await sectionMapUpdateWithHttpInfo(
geoPointDTO,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty &&
response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response),
'GeoPoint',
) as GeoPoint;
}
return null;
}
/// Performs an HTTP 'PUT /api/SectionMap/guided-path' operation and returns the [Response].
/// Parameters:
///
/// * [GuidedPathDTO] guidedPathDTO (required):
Future<Response> sectionMapUpdateGuidedPathWithHttpInfo(
GuidedPathDTO guidedPathDTO,
) async {
// ignore: prefer_const_declarations
final path = r'/api/SectionMap/guided-path';
// ignore: prefer_final_locals
Object? postBody = guidedPathDTO;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}
/// Parameters:
///
/// * [GuidedPathDTO] guidedPathDTO (required):
Future<GuidedPathDTO?> sectionMapUpdateGuidedPath(
GuidedPathDTO guidedPathDTO,
) async {
final response = await sectionMapUpdateGuidedPathWithHttpInfo(
guidedPathDTO,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty &&
response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response),
'GuidedPathDTO',
) as GuidedPathDTO;
}
return null;
}
/// Performs an HTTP 'PUT /api/SectionMap/guided-step' operation and returns the [Response].
/// Parameters:
///
/// * [GuidedStepDTO] guidedStepDTO (required):
Future<Response> sectionMapUpdateGuidedStepWithHttpInfo(
GuidedStepDTO guidedStepDTO,
) async {
// ignore: prefer_const_declarations
final path = r'/api/SectionMap/guided-step';
// ignore: prefer_final_locals
Object? postBody = guidedStepDTO;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}
/// Parameters:
///
/// * [GuidedStepDTO] guidedStepDTO (required):
Future<GuidedStepDTO?> sectionMapUpdateGuidedStep(
GuidedStepDTO guidedStepDTO,
) async {
final response = await sectionMapUpdateGuidedStepWithHttpInfo(
guidedStepDTO,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty &&
response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response),
'GuidedStepDTO',
) as GuidedStepDTO;
}
return null;
}
}