manager-app/manager_api_new/lib/api/section_scene3_d_api.dart
Thomas Fransolet c8947880ba Ecran VR, section Scene3D et medias immersifs
Canal VR
- L'entree VR affiche VrScreen au lieu de « non configuree » : sous-onglet
  Configuration (AppConfigurationLinkScreen reutilise) et sous-onglet Casques
  (pincode d'appairage, etat, batterie, version, dernier vu).
- Le dialogue de plan SuperAdmin porte aussi les canaux et les add-ons
  (assistant, contenu immersif). Activer un canal cree son
  ApplicationInstance s'il n'existe pas ; le desactiver ne supprime rien.

Medias immersifs
- Types Image360, Video360, Model3D : icones, libelles, extensions, apercu
  dans la Mediatheque et facettes.
- Au depot, la pastille de type bascule Image <-> Image 360 et
  Video <-> Video 360 : rien dans un .jpg ne dit qu'il est
  equirectangulaire. Un .glb est reconnu seul.
- ImageCompressor ne touche plus aux 360 ni aux GLB, sur les deux chemins
  d'upload : ramenee a 2560 px, une equirectangulaire devient illisible dans
  un casque.

Scene3D
- Nouveau type de section (famille des lieux) et son ecran de configuration :
  modele, mode objet/decor, points d'interet.
- Fond immersif d'une configuration, visible si l'instance a l'add-on : le
  type est deduit de la ressource choisie, avec une image de repli.

Client API edite a la main en miroir du backend : SectionScene3DApi,
Scene3DDTO, ImmersiveBackgroundDTO, Position3D, AppType sur les devices,
ResourceType etendu. Libelles FR/EN/NL.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-13 16:54:13 +02:00

168 lines
5.2 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;
/// Les points d'interet d'une section maquette 3D (item E7 du lot XR-4).
///
/// Meme objet que les points d'une carte — un `GeoPointDTO` — sur une autre
/// collection : ce qui change, c'est `localTransform` au lieu de `geometry`.
class SectionScene3DApi {
SectionScene3DApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
final ApiClient apiClient;
/// Performs an HTTP 'GET /api/SectionScene3D/{sectionId}/points' operation.
Future<Response> sectionScene3DGetPointsWithHttpInfo(String sectionId,) async {
final path = r'/api/SectionScene3D/{sectionId}/points'
.replaceAll('{sectionId}', sectionId);
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,
);
}
Future<List<GeoPointDTO>?> sectionScene3DGetPoints(String sectionId,) async {
final response = await sectionScene3DGetPointsWithHttpInfo(sectionId,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
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 'POST /api/SectionScene3D/{sectionId}/points' operation.
Future<Response> sectionScene3DCreatePointWithHttpInfo(
String sectionId,
GeoPointDTO geoPointDTO,
) async {
final path = r'/api/SectionScene3D/{sectionId}/points'
.replaceAll('{sectionId}', sectionId);
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,
);
}
Future<GeoPointDTO?> sectionScene3DCreatePoint(
String sectionId,
GeoPointDTO geoPointDTO,
) async {
final response = await sectionScene3DCreatePointWithHttpInfo(sectionId, geoPointDTO,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response), 'GeoPointDTO',) as GeoPointDTO;
}
return null;
}
/// Performs an HTTP 'PUT /api/SectionScene3D/points' operation.
Future<Response> sectionScene3DUpdatePointWithHttpInfo(GeoPointDTO geoPointDTO,) async {
final path = r'/api/SectionScene3D/points';
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,
);
}
Future<GeoPointDTO?> sectionScene3DUpdatePoint(GeoPointDTO geoPointDTO,) async {
final response = await sectionScene3DUpdatePointWithHttpInfo(geoPointDTO,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response), 'GeoPointDTO',) as GeoPointDTO;
}
return null;
}
/// Performs an HTTP 'DELETE /api/SectionScene3D/points/{id}' operation.
Future<Response> sectionScene3DDeletePointWithHttpInfo(int id,) async {
final path = r'/api/SectionScene3D/points/{id}'
.replaceAll('{id}', id.toString());
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,
);
}
Future<void> sectionScene3DDeletePoint(int id,) async {
final response = await sectionScene3DDeletePointWithHttpInfo(id,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}
}