Add facilities, contracts, orders, value lists, audit log, and desktop app modules

Extends omsorgCore with full CRUD for Facility/Contract/Order plus
configurable value lists and an audit trail, and wires the omsorgapp
frontend up to the new facilities, settings, and audit-log modules;
includes a sidebar active-nav-item highlight.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Felix Kemmler
2026-08-08 23:29:16 +02:00
co-authored by Claude Sonnet 5
parent ee74ed65f5
commit e9e96a57dc
528 changed files with 96814 additions and 456 deletions
@@ -0,0 +1,529 @@
# OmsorgCoreClient\AuthApi
All URIs are relative to http://localhost, except if the operation defines another base path.
| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**apiAuthChangePasswordPost()**](AuthApi.md#apiAuthChangePasswordPost) | **POST** /api/auth/change-password | |
| [**apiAuthForgotPasswordRequestPost()**](AuthApi.md#apiAuthForgotPasswordRequestPost) | **POST** /api/auth/forgot-password/request | |
| [**apiAuthForgotPasswordResetPost()**](AuthApi.md#apiAuthForgotPasswordResetPost) | **POST** /api/auth/forgot-password/reset | |
| [**apiAuthForgotPasswordVerifyPost()**](AuthApi.md#apiAuthForgotPasswordVerifyPost) | **POST** /api/auth/forgot-password/verify | |
| [**apiAuthLoginPost()**](AuthApi.md#apiAuthLoginPost) | **POST** /api/auth/login | |
| [**apiAuthLogoutPost()**](AuthApi.md#apiAuthLogoutPost) | **POST** /api/auth/logout | |
| [**apiAuthMeGet()**](AuthApi.md#apiAuthMeGet) | **GET** /api/auth/me | |
| [**apiAuthPasswordPolicyGet()**](AuthApi.md#apiAuthPasswordPolicyGet) | **GET** /api/auth/password-policy | |
| [**apiAuthRefreshPost()**](AuthApi.md#apiAuthRefreshPost) | **POST** /api/auth/refresh | |
## `apiAuthChangePasswordPost()`
```php
apiAuthChangePasswordPost($change_password_request)
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\AuthApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$change_password_request = new \OmsorgCoreClient\Model\ChangePasswordRequest(); // \OmsorgCoreClient\Model\ChangePasswordRequest
try {
$apiInstance->apiAuthChangePasswordPost($change_password_request);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->apiAuthChangePasswordPost: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **change_password_request** | [**\OmsorgCoreClient\Model\ChangePasswordRequest**](../Model/ChangePasswordRequest.md)| | [optional] |
### Return type
void (empty response body)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: `application/json`, `text/json`, `application/*+json`
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
## `apiAuthForgotPasswordRequestPost()`
```php
apiAuthForgotPasswordRequestPost($forgot_password_request_request): \OmsorgCoreClient\Model\ForgotPasswordRequestResponse
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\AuthApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$forgot_password_request_request = new \OmsorgCoreClient\Model\ForgotPasswordRequestRequest(); // \OmsorgCoreClient\Model\ForgotPasswordRequestRequest
try {
$result = $apiInstance->apiAuthForgotPasswordRequestPost($forgot_password_request_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->apiAuthForgotPasswordRequestPost: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **forgot_password_request_request** | [**\OmsorgCoreClient\Model\ForgotPasswordRequestRequest**](../Model/ForgotPasswordRequestRequest.md)| | [optional] |
### Return type
[**\OmsorgCoreClient\Model\ForgotPasswordRequestResponse**](../Model/ForgotPasswordRequestResponse.md)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: `application/json`, `text/json`, `application/*+json`
- **Accept**: `text/plain`, `application/json`, `text/json`
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
## `apiAuthForgotPasswordResetPost()`
```php
apiAuthForgotPasswordResetPost($forgot_password_reset_request)
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\AuthApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$forgot_password_reset_request = new \OmsorgCoreClient\Model\ForgotPasswordResetRequest(); // \OmsorgCoreClient\Model\ForgotPasswordResetRequest
try {
$apiInstance->apiAuthForgotPasswordResetPost($forgot_password_reset_request);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->apiAuthForgotPasswordResetPost: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **forgot_password_reset_request** | [**\OmsorgCoreClient\Model\ForgotPasswordResetRequest**](../Model/ForgotPasswordResetRequest.md)| | [optional] |
### Return type
void (empty response body)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: `application/json`, `text/json`, `application/*+json`
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
## `apiAuthForgotPasswordVerifyPost()`
```php
apiAuthForgotPasswordVerifyPost($forgot_password_verify_request): \OmsorgCoreClient\Model\ForgotPasswordVerifyResponse
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\AuthApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$forgot_password_verify_request = new \OmsorgCoreClient\Model\ForgotPasswordVerifyRequest(); // \OmsorgCoreClient\Model\ForgotPasswordVerifyRequest
try {
$result = $apiInstance->apiAuthForgotPasswordVerifyPost($forgot_password_verify_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->apiAuthForgotPasswordVerifyPost: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **forgot_password_verify_request** | [**\OmsorgCoreClient\Model\ForgotPasswordVerifyRequest**](../Model/ForgotPasswordVerifyRequest.md)| | [optional] |
### Return type
[**\OmsorgCoreClient\Model\ForgotPasswordVerifyResponse**](../Model/ForgotPasswordVerifyResponse.md)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: `application/json`, `text/json`, `application/*+json`
- **Accept**: `text/plain`, `application/json`, `text/json`
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
## `apiAuthLoginPost()`
```php
apiAuthLoginPost($login_request): \OmsorgCoreClient\Model\LoginResponse
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\AuthApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$login_request = new \OmsorgCoreClient\Model\LoginRequest(); // \OmsorgCoreClient\Model\LoginRequest
try {
$result = $apiInstance->apiAuthLoginPost($login_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->apiAuthLoginPost: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **login_request** | [**\OmsorgCoreClient\Model\LoginRequest**](../Model/LoginRequest.md)| | [optional] |
### Return type
[**\OmsorgCoreClient\Model\LoginResponse**](../Model/LoginResponse.md)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: `application/json`, `text/json`, `application/*+json`
- **Accept**: `text/plain`, `application/json`, `text/json`
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
## `apiAuthLogoutPost()`
```php
apiAuthLogoutPost($logout_request)
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\AuthApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$logout_request = new \OmsorgCoreClient\Model\LogoutRequest(); // \OmsorgCoreClient\Model\LogoutRequest
try {
$apiInstance->apiAuthLogoutPost($logout_request);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->apiAuthLogoutPost: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **logout_request** | [**\OmsorgCoreClient\Model\LogoutRequest**](../Model/LogoutRequest.md)| | [optional] |
### Return type
void (empty response body)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: `application/json`, `text/json`, `application/*+json`
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
## `apiAuthMeGet()`
```php
apiAuthMeGet(): \OmsorgCoreClient\Model\MeResponse
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\AuthApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->apiAuthMeGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->apiAuthMeGet: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**\OmsorgCoreClient\Model\MeResponse**](../Model/MeResponse.md)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: `text/plain`, `application/json`, `text/json`
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
## `apiAuthPasswordPolicyGet()`
```php
apiAuthPasswordPolicyGet(): \OmsorgCoreClient\Model\PasswordPolicyResponse
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\AuthApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->apiAuthPasswordPolicyGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->apiAuthPasswordPolicyGet: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**\OmsorgCoreClient\Model\PasswordPolicyResponse**](../Model/PasswordPolicyResponse.md)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: `text/plain`, `application/json`, `text/json`
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
## `apiAuthRefreshPost()`
```php
apiAuthRefreshPost($refresh_request): \OmsorgCoreClient\Model\LoginResponse
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\AuthApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$refresh_request = new \OmsorgCoreClient\Model\RefreshRequest(); // \OmsorgCoreClient\Model\RefreshRequest
try {
$result = $apiInstance->apiAuthRefreshPost($refresh_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->apiAuthRefreshPost: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **refresh_request** | [**\OmsorgCoreClient\Model\RefreshRequest**](../Model/RefreshRequest.md)| | [optional] |
### Return type
[**\OmsorgCoreClient\Model\LoginResponse**](../Model/LoginResponse.md)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: `application/json`, `text/json`, `application/*+json`
- **Accept**: `text/plain`, `application/json`, `text/json`
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)